From a8177873e1b2232e36234f87d553ddefec94d7d2 Mon Sep 17 00:00:00 2001 From: AsamaSumer Date: Wed, 18 Sep 2024 12:07:04 +0530 Subject: [PATCH 01/16] Update go.mod --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 84ac401e8..3e168f7ba 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/netbox-community/go-netbox/v4 +module github.com/asama-ai/go-netbox go 1.18 From d4575dd5aa7fe2fdff116f92ee862aae753d71bd Mon Sep 17 00:00:00 2001 From: Felix Edelmann Date: Tue, 25 Jun 2024 12:19:14 +0200 Subject: [PATCH 02/16] Quick fix for netbox-community/go-netbox#165: Make some *_count fields non-required --- api/openapi.yaml | 8 ----- docs/Cluster.md | 9 ++++-- docs/DeviceRole.md | 16 ++++++++-- docs/DeviceType.md | 9 ++++-- docs/Manufacturer.md | 9 ++++-- docs/Platform.md | 16 ++++++++-- docs/Rack.md | 9 ++++-- model_cluster.go | 36 +++++++++++++--------- model_device_role.go | 70 ++++++++++++++++++++++++++----------------- model_device_type.go | 36 +++++++++++++--------- model_manufacturer.go | 36 +++++++++++++--------- model_platform.go | 70 ++++++++++++++++++++++++++----------------- model_rack.go | 36 +++++++++++++--------- scripts/fix-spec.py | 11 ++++++- 14 files changed, 238 insertions(+), 133 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 75765d650..a995bf63b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -102497,7 +102497,6 @@ components: - id - name - url - - virtualmachine_count ClusterGroup: type: object description: Adds support for custom fields and tags. @@ -105609,13 +105608,11 @@ components: format: int64 readOnly: true required: - - device_count - display - id - name - slug - url - - virtualmachine_count DeviceRoleRequest: type: object description: Adds support for custom fields and tags. @@ -105685,7 +105682,6 @@ components: format: int64 readOnly: true required: - - device_count - display - id - manufacturer @@ -113955,7 +113951,6 @@ components: format: int64 readOnly: true required: - - devicetype_count - display - id - name @@ -126667,13 +126662,11 @@ components: format: int64 readOnly: true required: - - device_count - display - id - name - slug - url - - virtualmachine_count PlatformRequest: type: object description: Adds support for custom fields and tags. @@ -129230,7 +129223,6 @@ components: format: int64 readOnly: true required: - - device_count - display - id - name diff --git a/docs/Cluster.md b/docs/Cluster.md index 53f6ac8f2..00443ca40 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**VirtualmachineCount** | **int64** | | [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewCluster -`func NewCluster(id int32, url string, display string, name string, virtualmachineCount int64, ) *Cluster` +`func NewCluster(id int32, url string, display string, name string, ) *Cluster` NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, @@ -154,6 +154,11 @@ and a boolean to check if the value has been set. SetVirtualmachineCount sets VirtualmachineCount field to given value. +### HasVirtualmachineCount + +`func (o *Cluster) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/docs/DeviceRole.md b/docs/DeviceRole.md index 69757a60f..99ecb82bc 100644 --- a/docs/DeviceRole.md +++ b/docs/DeviceRole.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] -**VirtualmachineCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewDeviceRole -`func NewDeviceRole(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -176,6 +176,11 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *DeviceRole) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. ### GetVirtualmachineCount @@ -196,6 +201,11 @@ and a boolean to check if the value has been set. SetVirtualmachineCount sets VirtualmachineCount field to given value. +### HasVirtualmachineCount + +`func (o *DeviceRole) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/docs/DeviceType.md b/docs/DeviceType.md index 0fd8ee228..9d02d28e7 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Model** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewDeviceType -`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, deviceCount int64, ) *DeviceType` +`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, ) *DeviceType` NewDeviceType instantiates a new DeviceType object This constructor will assign default values to properties that have it defined, @@ -196,6 +196,11 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *DeviceType) HasDeviceCount() bool` + +HasDeviceCount 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/docs/Manufacturer.md b/docs/Manufacturer.md index c4c2211ad..753c72fe6 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**DevicetypeCount** | **int64** | | [readonly] +**DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64, ) *Manufacturer` +`func NewManufacturer(id int32, url string, display string, name string, slug string, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetDevicetypeCount sets DevicetypeCount field to given value. +### HasDevicetypeCount + +`func (o *Manufacturer) HasDevicetypeCount() bool` + +HasDevicetypeCount 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/docs/Platform.md b/docs/Platform.md index abceb730a..d4c3b9c56 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] -**VirtualmachineCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewPlatform -`func NewPlatform(id int32, url string, display string, name string, slug string, deviceCount int64, virtualmachineCount int64, ) *Platform` +`func NewPlatform(id int32, url string, display string, name string, slug string, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -176,6 +176,11 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *Platform) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. ### GetVirtualmachineCount @@ -196,6 +201,11 @@ and a boolean to check if the value has been set. SetVirtualmachineCount sets VirtualmachineCount field to given value. +### HasVirtualmachineCount + +`func (o *Platform) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/docs/Rack.md b/docs/Rack.md index 5628a5efc..20e4a6cb2 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -9,13 +9,13 @@ Name | Type | Description | Notes **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**DeviceCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, display string, name string, deviceCount int64, ) *Rack` +`func NewRack(id int32, url string, display string, name string, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -154,6 +154,11 @@ and a boolean to check if the value has been set. SetDeviceCount sets DeviceCount field to given value. +### HasDeviceCount + +`func (o *Rack) HasDeviceCount() bool` + +HasDeviceCount 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/model_cluster.go b/model_cluster.go index ac931d63f..64f264c1c 100644 --- a/model_cluster.go +++ b/model_cluster.go @@ -25,7 +25,7 @@ type Cluster struct { Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,13 +35,12 @@ type _Cluster Cluster // 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 NewCluster(id int32, url string, display string, name string, virtualmachineCount int64) *Cluster { +func NewCluster(id int32, url string, display string, name string) *Cluster { this := Cluster{} this.Id = id this.Url = url this.Display = display this.Name = name - this.VirtualmachineCount = virtualmachineCount return &this } @@ -181,28 +180,36 @@ func (o *Cluster) SetDescription(v string) { o.Description = &v } -// GetVirtualmachineCount returns the VirtualmachineCount field value +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *Cluster) GetVirtualmachineCount() int64 { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { var ret int64 return ret } - - return o.VirtualmachineCount + return *o.VirtualmachineCount } -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Cluster) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { return nil, false } - return &o.VirtualmachineCount, true + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Cluster) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false } -// SetVirtualmachineCount sets field value +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. func (o *Cluster) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = v + o.VirtualmachineCount = &v } func (o Cluster) MarshalJSON() ([]byte, error) { @@ -222,7 +229,9 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["virtualmachine_count"] = o.VirtualmachineCount + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,7 +249,6 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "virtualmachine_count", } allProperties := make(map[string]interface{}) diff --git a/model_device_role.go b/model_device_role.go index 1c2cf2a0c..bcd70a8fe 100644 --- a/model_device_role.go +++ b/model_device_role.go @@ -26,8 +26,8 @@ type DeviceRole struct { Name string `json:"name"` Slug string `json:"slug"` Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,15 +37,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, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *DeviceRole { +func NewDeviceRole(id int32, url string, display string, name string, slug string) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.DeviceCount = deviceCount - this.VirtualmachineCount = virtualmachineCount return &this } @@ -209,52 +207,68 @@ func (o *DeviceRole) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceRole) GetDeviceCount() int64 { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { var ret int64 return ret } - - return o.DeviceCount + return *o.DeviceCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceRole) GetDeviceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { return nil, false } - return &o.DeviceCount, true + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *DeviceRole) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false } -// SetDeviceCount sets field value +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. func (o *DeviceRole) SetDeviceCount(v int64) { - o.DeviceCount = v + o.DeviceCount = &v } -// GetVirtualmachineCount returns the VirtualmachineCount field value +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *DeviceRole) GetVirtualmachineCount() int64 { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { var ret int64 return ret } - - return o.VirtualmachineCount + return *o.VirtualmachineCount } -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceRole) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { return nil, false } - return &o.VirtualmachineCount, true + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *DeviceRole) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false } -// SetVirtualmachineCount sets field value +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. func (o *DeviceRole) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = v + o.VirtualmachineCount = &v } func (o DeviceRole) MarshalJSON() ([]byte, error) { @@ -275,8 +289,12 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount - toSerialize["virtualmachine_count"] = o.VirtualmachineCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,8 +313,6 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "device_count", - "virtualmachine_count", } allProperties := make(map[string]interface{}) diff --git a/model_device_type.go b/model_device_type.go index 6b71ca2b4..491bcc177 100644 --- a/model_device_type.go +++ b/model_device_type.go @@ -27,7 +27,7 @@ type DeviceType struct { Model string `json:"model"` Slug string `json:"slug"` Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` + DeviceCount *int64 `json:"device_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _DeviceType DeviceType // 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 NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, deviceCount int64) *DeviceType { +func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string) *DeviceType { this := DeviceType{} this.Id = id this.Url = url @@ -45,7 +45,6 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur this.Manufacturer = manufacturer this.Model = model this.Slug = slug - this.DeviceCount = deviceCount return &this } @@ -233,28 +232,36 @@ func (o *DeviceType) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceType) GetDeviceCount() int64 { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { var ret int64 return ret } - - return o.DeviceCount + return *o.DeviceCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *DeviceType) GetDeviceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { return nil, false } - return &o.DeviceCount, true + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *DeviceType) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false } -// SetDeviceCount sets field value +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. func (o *DeviceType) SetDeviceCount(v int64) { - o.DeviceCount = v + o.DeviceCount = &v } func (o DeviceType) MarshalJSON() ([]byte, error) { @@ -276,7 +283,9 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -296,7 +305,6 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { "manufacturer", "model", "slug", - "device_count", } allProperties := make(map[string]interface{}) diff --git a/model_manufacturer.go b/model_manufacturer.go index 6b8dcd909..5be331410 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -26,7 +26,7 @@ type Manufacturer struct { Name string `json:"name"` Slug string `json:"slug"` Description *string `json:"description,omitempty"` - DevicetypeCount int64 `json:"devicetype_count"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,14 +36,13 @@ type _Manufacturer Manufacturer // 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 NewManufacturer(id int32, url string, display string, name string, slug string, devicetypeCount int64) *Manufacturer { +func NewManufacturer(id int32, url string, display string, name string, slug string) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.DevicetypeCount = devicetypeCount return &this } @@ -207,28 +206,36 @@ func (o *Manufacturer) SetDescription(v string) { o.Description = &v } -// GetDevicetypeCount returns the DevicetypeCount field value +// GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. func (o *Manufacturer) GetDevicetypeCount() int64 { - if o == nil { + if o == nil || IsNil(o.DevicetypeCount) { var ret int64 return ret } - - return o.DevicetypeCount + return *o.DevicetypeCount } -// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value +// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Manufacturer) GetDevicetypeCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DevicetypeCount) { return nil, false } - return &o.DevicetypeCount, true + return o.DevicetypeCount, true +} + +// HasDevicetypeCount returns a boolean if a field has been set. +func (o *Manufacturer) HasDevicetypeCount() bool { + if o != nil && !IsNil(o.DevicetypeCount) { + return true + } + + return false } -// SetDevicetypeCount sets field value +// SetDevicetypeCount gets a reference to the given int64 and assigns it to the DevicetypeCount field. func (o *Manufacturer) SetDevicetypeCount(v int64) { - o.DevicetypeCount = v + o.DevicetypeCount = &v } func (o Manufacturer) MarshalJSON() ([]byte, error) { @@ -249,7 +256,9 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["devicetype_count"] = o.DevicetypeCount + if !IsNil(o.DevicetypeCount) { + toSerialize["devicetype_count"] = o.DevicetypeCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -268,7 +277,6 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "devicetype_count", } allProperties := make(map[string]interface{}) diff --git a/model_platform.go b/model_platform.go index 5ab96ce26..95143bd8e 100644 --- a/model_platform.go +++ b/model_platform.go @@ -26,8 +26,8 @@ type Platform struct { Name string `json:"name"` Slug string `json:"slug"` Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` - VirtualmachineCount int64 `json:"virtualmachine_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,15 +37,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, display string, name string, slug string, deviceCount int64, virtualmachineCount int64) *Platform { +func NewPlatform(id int32, url string, display string, name string, slug string) *Platform { this := Platform{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.DeviceCount = deviceCount - this.VirtualmachineCount = virtualmachineCount return &this } @@ -209,52 +207,68 @@ func (o *Platform) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Platform) GetDeviceCount() int64 { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { var ret int64 return ret } - - return o.DeviceCount + return *o.DeviceCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Platform) GetDeviceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { return nil, false } - return &o.DeviceCount, true + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Platform) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false } -// SetDeviceCount sets field value +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. func (o *Platform) SetDeviceCount(v int64) { - o.DeviceCount = v + o.DeviceCount = &v } -// GetVirtualmachineCount returns the VirtualmachineCount field value +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *Platform) GetVirtualmachineCount() int64 { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { var ret int64 return ret } - - return o.VirtualmachineCount + return *o.VirtualmachineCount } -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Platform) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VirtualmachineCount) { return nil, false } - return &o.VirtualmachineCount, true + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Platform) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false } -// SetVirtualmachineCount sets field value +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. func (o *Platform) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = v + o.VirtualmachineCount = &v } func (o Platform) MarshalJSON() ([]byte, error) { @@ -275,8 +289,12 @@ func (o Platform) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount - toSerialize["virtualmachine_count"] = o.VirtualmachineCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -295,8 +313,6 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "device_count", - "virtualmachine_count", } allProperties := make(map[string]interface{}) diff --git a/model_rack.go b/model_rack.go index 471e264e1..95c82770b 100644 --- a/model_rack.go +++ b/model_rack.go @@ -25,7 +25,7 @@ type Rack struct { Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` - DeviceCount int64 `json:"device_count"` + DeviceCount *int64 `json:"device_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,13 +35,12 @@ type _Rack Rack // 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 NewRack(id int32, url string, display string, name string, deviceCount int64) *Rack { +func NewRack(id int32, url string, display string, name string) *Rack { this := Rack{} this.Id = id this.Url = url this.Display = display this.Name = name - this.DeviceCount = deviceCount return &this } @@ -181,28 +180,36 @@ func (o *Rack) SetDescription(v string) { o.Description = &v } -// GetDeviceCount returns the DeviceCount field value +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Rack) GetDeviceCount() int64 { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { var ret int64 return ret } - - return o.DeviceCount + return *o.DeviceCount } -// GetDeviceCountOk returns a tuple with the DeviceCount field value +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Rack) GetDeviceCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceCount) { return nil, false } - return &o.DeviceCount, true + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Rack) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false } -// SetDeviceCount sets field value +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. func (o *Rack) SetDeviceCount(v int64) { - o.DeviceCount = v + o.DeviceCount = &v } func (o Rack) MarshalJSON() ([]byte, error) { @@ -222,7 +229,9 @@ func (o Rack) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["device_count"] = o.DeviceCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,7 +249,6 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "device_count", } allProperties := make(map[string]interface{}) diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index fac390124..e63690bef 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -39,7 +39,16 @@ for ntype in non_nullable_types: if ntype in schema['properties']: if schema['properties'][ntype]['format'] == 'binary': - schema['properties'][ntype].pop('nullable') + schema['properties'][ntype].pop('nullable', None) + + if 'required' in schema: + non_required_props = [ + 'devicetype_count', + 'device_count', + 'virtualmachine_count', + ] + + schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] # Save the spec file with open(SPEC_PATH, 'w') as file: From f831158f956169fb1087c3733b7242390c469cee Mon Sep 17 00:00:00 2001 From: Felix Edelmann Date: Fri, 28 Jun 2024 15:12:42 +0200 Subject: [PATCH 03/16] Fix required props in Device entity --- api/openapi.yaml | 21 +- docs/Device.md | 135 +++++++-- model_device.go | 661 +++++++++++++++++++++++++++----------------- scripts/fix-spec.py | 10 +- 4 files changed, 521 insertions(+), 306 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index a995bf63b..24f3a606c 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -105384,26 +105384,11 @@ components: type: integer readOnly: true required: - - console_port_count - - console_server_port_count - - created - - device_bay_count - - device_type - - display - - front_port_count - id - - interface_count - - inventory_item_count - - last_updated - - module_bay_count - - parent_device - - power_outlet_count - - power_port_count - - primary_ip - - rear_port_count - - role - - site - url + - display + - name + - description DeviceBay: type: object description: Adds support for custom fields and tags. diff --git a/docs/Device.md b/docs/Device.md index ee4593df2..c83083a9c 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -7,24 +7,24 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | +**Name** | **NullableString** | | +**DeviceType** | Pointer to [**DeviceType**](DeviceType.md) | | [optional] +**Role** | Pointer to [**DeviceRole**](DeviceRole.md) | | [optional] **Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | +**Site** | Pointer to [**Site**](Site.md) | | [optional] **Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] **Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] -**ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] +**ParentDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] +**PrimaryIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] [readonly] **PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] **PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] **OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] @@ -32,30 +32,30 @@ Name | Type | Description | Notes **VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] -**Description** | Pointer to **string** | | [optional] +**Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**ConsolePortCount** | **int32** | | [readonly] -**ConsoleServerPortCount** | **int32** | | [readonly] -**PowerPortCount** | **int32** | | [readonly] -**PowerOutletCount** | **int32** | | [readonly] -**InterfaceCount** | **int32** | | [readonly] -**FrontPortCount** | **int32** | | [readonly] -**RearPortCount** | **int32** | | [readonly] -**DeviceBayCount** | **int32** | | [readonly] -**ModuleBayCount** | **int32** | | [readonly] -**InventoryItemCount** | **int32** | | [readonly] +**Created** | Pointer to **NullableTime** | | [optional] [readonly] +**LastUpdated** | Pointer to **NullableTime** | | [optional] [readonly] +**ConsolePortCount** | Pointer to **int32** | | [optional] [readonly] +**ConsoleServerPortCount** | Pointer to **int32** | | [optional] [readonly] +**PowerPortCount** | Pointer to **int32** | | [optional] [readonly] +**PowerOutletCount** | Pointer to **int32** | | [optional] [readonly] +**InterfaceCount** | Pointer to **int32** | | [optional] [readonly] +**FrontPortCount** | Pointer to **int32** | | [optional] [readonly] +**RearPortCount** | Pointer to **int32** | | [optional] [readonly] +**DeviceBayCount** | Pointer to **int32** | | [optional] [readonly] +**ModuleBayCount** | Pointer to **int32** | | [optional] [readonly] +**InventoryItemCount** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewDevice -`func NewDevice(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *Device` +`func NewDevice(id int32, url string, display string, name NullableString, description string, ) *Device` NewDevice instantiates a new Device object This constructor will assign default values to properties that have it defined, @@ -149,11 +149,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### HasName - -`func (o *Device) HasName() bool` - -HasName returns a boolean if a field has been set. ### SetNameNil @@ -184,6 +179,11 @@ and a boolean to check if the value has been set. SetDeviceType sets DeviceType field to given value. +### HasDeviceType + +`func (o *Device) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. ### GetRole @@ -204,6 +204,11 @@ and a boolean to check if the value has been set. SetRole sets Role field to given value. +### HasRole + +`func (o *Device) HasRole() bool` + +HasRole returns a boolean if a field has been set. ### GetTenant @@ -354,6 +359,11 @@ and a boolean to check if the value has been set. SetSite sets Site field to given value. +### HasSite + +`func (o *Device) HasSite() bool` + +HasSite returns a boolean if a field has been set. ### GetLocation @@ -574,6 +584,11 @@ and a boolean to check if the value has been set. SetParentDevice sets ParentDevice field to given value. +### HasParentDevice + +`func (o *Device) HasParentDevice() bool` + +HasParentDevice returns a boolean if a field has been set. ### SetParentDeviceNil @@ -654,6 +669,11 @@ and a boolean to check if the value has been set. SetPrimaryIp sets PrimaryIp field to given value. +### HasPrimaryIp + +`func (o *Device) HasPrimaryIp() bool` + +HasPrimaryIp returns a boolean if a field has been set. ### SetPrimaryIpNil @@ -929,11 +949,6 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. -### HasDescription - -`func (o *Device) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. ### GetComments @@ -1099,6 +1114,11 @@ and a boolean to check if the value has been set. SetCreated sets Created field to given value. +### HasCreated + +`func (o *Device) HasCreated() bool` + +HasCreated returns a boolean if a field has been set. ### SetCreatedNil @@ -1129,6 +1149,11 @@ and a boolean to check if the value has been set. SetLastUpdated sets LastUpdated field to given value. +### HasLastUpdated + +`func (o *Device) HasLastUpdated() bool` + +HasLastUpdated returns a boolean if a field has been set. ### SetLastUpdatedNil @@ -1159,6 +1184,11 @@ and a boolean to check if the value has been set. SetConsolePortCount sets ConsolePortCount field to given value. +### HasConsolePortCount + +`func (o *Device) HasConsolePortCount() bool` + +HasConsolePortCount returns a boolean if a field has been set. ### GetConsoleServerPortCount @@ -1179,6 +1209,11 @@ and a boolean to check if the value has been set. SetConsoleServerPortCount sets ConsoleServerPortCount field to given value. +### HasConsoleServerPortCount + +`func (o *Device) HasConsoleServerPortCount() bool` + +HasConsoleServerPortCount returns a boolean if a field has been set. ### GetPowerPortCount @@ -1199,6 +1234,11 @@ and a boolean to check if the value has been set. SetPowerPortCount sets PowerPortCount field to given value. +### HasPowerPortCount + +`func (o *Device) HasPowerPortCount() bool` + +HasPowerPortCount returns a boolean if a field has been set. ### GetPowerOutletCount @@ -1219,6 +1259,11 @@ and a boolean to check if the value has been set. SetPowerOutletCount sets PowerOutletCount field to given value. +### HasPowerOutletCount + +`func (o *Device) HasPowerOutletCount() bool` + +HasPowerOutletCount returns a boolean if a field has been set. ### GetInterfaceCount @@ -1239,6 +1284,11 @@ and a boolean to check if the value has been set. SetInterfaceCount sets InterfaceCount field to given value. +### HasInterfaceCount + +`func (o *Device) HasInterfaceCount() bool` + +HasInterfaceCount returns a boolean if a field has been set. ### GetFrontPortCount @@ -1259,6 +1309,11 @@ and a boolean to check if the value has been set. SetFrontPortCount sets FrontPortCount field to given value. +### HasFrontPortCount + +`func (o *Device) HasFrontPortCount() bool` + +HasFrontPortCount returns a boolean if a field has been set. ### GetRearPortCount @@ -1279,6 +1334,11 @@ and a boolean to check if the value has been set. SetRearPortCount sets RearPortCount field to given value. +### HasRearPortCount + +`func (o *Device) HasRearPortCount() bool` + +HasRearPortCount returns a boolean if a field has been set. ### GetDeviceBayCount @@ -1299,6 +1359,11 @@ and a boolean to check if the value has been set. SetDeviceBayCount sets DeviceBayCount field to given value. +### HasDeviceBayCount + +`func (o *Device) HasDeviceBayCount() bool` + +HasDeviceBayCount returns a boolean if a field has been set. ### GetModuleBayCount @@ -1319,6 +1384,11 @@ and a boolean to check if the value has been set. SetModuleBayCount sets ModuleBayCount field to given value. +### HasModuleBayCount + +`func (o *Device) HasModuleBayCount() bool` + +HasModuleBayCount returns a boolean if a field has been set. ### GetInventoryItemCount @@ -1339,6 +1409,11 @@ and a boolean to check if the value has been set. SetInventoryItemCount sets InventoryItemCount field to given value. +### HasInventoryItemCount + +`func (o *Device) HasInventoryItemCount() bool` + +HasInventoryItemCount 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/model_device.go b/model_device.go index 7585fb9dd..701b56150 100644 --- a/model_device.go +++ b/model_device.go @@ -24,16 +24,16 @@ type Device struct { Id int32 `json:"id"` Url string `json:"url"` Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` + Name NullableString `json:"name"` + DeviceType *DeviceType `json:"device_type,omitempty"` + Role *DeviceRole `json:"role,omitempty"` Tenant NullableTenant `json:"tenant,omitempty"` Platform NullablePlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` - Site Site `json:"site"` + Site *Site `json:"site,omitempty"` Location NullableLocation `json:"location,omitempty"` Rack NullableRack `json:"rack,omitempty"` Position NullableFloat64 `json:"position,omitempty"` @@ -42,10 +42,10 @@ type Device struct { Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device"` + ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` Status *DeviceStatus `json:"status,omitempty"` Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` + PrimaryIp NullableIPAddress `json:"primary_ip,omitempty"` PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` OobIp NullableIPAddress `json:"oob_ip,omitempty"` @@ -54,25 +54,25 @@ type Device struct { VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` + Description string `json:"description"` Comments *string `json:"comments,omitempty"` ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - ConsolePortCount int32 `json:"console_port_count"` - ConsoleServerPortCount int32 `json:"console_server_port_count"` - PowerPortCount int32 `json:"power_port_count"` - PowerOutletCount int32 `json:"power_outlet_count"` - InterfaceCount int32 `json:"interface_count"` - FrontPortCount int32 `json:"front_port_count"` - RearPortCount int32 `json:"rear_port_count"` - DeviceBayCount int32 `json:"device_bay_count"` - ModuleBayCount int32 `json:"module_bay_count"` - InventoryItemCount int32 `json:"inventory_item_count"` + Created NullableTime `json:"created,omitempty"` + LastUpdated NullableTime `json:"last_updated,omitempty"` + ConsolePortCount *int32 `json:"console_port_count,omitempty"` + ConsoleServerPortCount *int32 `json:"console_server_port_count,omitempty"` + PowerPortCount *int32 `json:"power_port_count,omitempty"` + PowerOutletCount *int32 `json:"power_outlet_count,omitempty"` + InterfaceCount *int32 `json:"interface_count,omitempty"` + FrontPortCount *int32 `json:"front_port_count,omitempty"` + RearPortCount *int32 `json:"rear_port_count,omitempty"` + DeviceBayCount *int32 `json:"device_bay_count,omitempty"` + ModuleBayCount *int32 `json:"module_bay_count,omitempty"` + InventoryItemCount *int32 `json:"inventory_item_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,28 +82,13 @@ type _Device Device // 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 NewDevice(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *Device { +func NewDevice(id int32, url string, display string, name NullableString, description string) *Device { this := Device{} this.Id = id this.Url = url this.Display = display - this.DeviceType = deviceType - this.Role = role - this.Site = site - this.ParentDevice = parentDevice - this.PrimaryIp = primaryIp - this.Created = created - this.LastUpdated = lastUpdated - this.ConsolePortCount = consolePortCount - this.ConsoleServerPortCount = consoleServerPortCount - this.PowerPortCount = powerPortCount - this.PowerOutletCount = powerOutletCount - this.InterfaceCount = interfaceCount - this.FrontPortCount = frontPortCount - this.RearPortCount = rearPortCount - this.DeviceBayCount = deviceBayCount - this.ModuleBayCount = moduleBayCount - this.InventoryItemCount = inventoryItemCount + this.Name = name + this.Description = description return &this } @@ -187,16 +172,18 @@ func (o *Device) SetDisplay(v string) { o.Display = v } -// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +// GetName returns the Name field value +// If the value is explicit nil, the zero value for string will be returned func (o *Device) GetName() string { - if o == nil || IsNil(o.Name.Get()) { + if o == nil || o.Name.Get() == nil { var ret string return ret } + return *o.Name.Get() } -// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Device) GetNameOk() (*string, bool) { @@ -206,76 +193,73 @@ func (o *Device) GetNameOk() (*string, bool) { return o.Name.Get(), o.Name.IsSet() } -// HasName returns a boolean if a field has been set. -func (o *Device) HasName() bool { - if o != nil && o.Name.IsSet() { - return true - } - - return false -} - -// SetName gets a reference to the given NullableString and assigns it to the Name field. +// SetName sets field value func (o *Device) SetName(v string) { o.Name.Set(&v) } -// SetNameNil sets the value for Name to be an explicit nil -func (o *Device) SetNameNil() { - o.Name.Set(nil) -} - -// UnsetName ensures that no value is present for Name, not even an explicit nil -func (o *Device) UnsetName() { - o.Name.Unset() -} - -// GetDeviceType returns the DeviceType field value +// GetDeviceType returns the DeviceType field value if set, zero value otherwise. func (o *Device) GetDeviceType() DeviceType { - if o == nil { + if o == nil || IsNil(o.DeviceType) { var ret DeviceType return ret } - - return o.DeviceType + return *o.DeviceType } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceType) { return nil, false } - return &o.DeviceType, true + return o.DeviceType, true +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *Device) HasDeviceType() bool { + if o != nil && !IsNil(o.DeviceType) { + return true + } + + return false } -// SetDeviceType sets field value +// SetDeviceType gets a reference to the given DeviceType and assigns it to the DeviceType field. func (o *Device) SetDeviceType(v DeviceType) { - o.DeviceType = v + o.DeviceType = &v } -// GetRole returns the Role field value +// GetRole returns the Role field value if set, zero value otherwise. func (o *Device) GetRole() DeviceRole { - if o == nil { + if o == nil || IsNil(o.Role) { var ret DeviceRole return ret } - - return o.Role + return *o.Role } -// GetRoleOk returns a tuple with the Role field value +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetRoleOk() (*DeviceRole, bool) { - if o == nil { + if o == nil || IsNil(o.Role) { return nil, false } - return &o.Role, true + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *Device) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false } -// SetRole sets field value +// SetRole gets a reference to the given DeviceRole and assigns it to the Role field. func (o *Device) SetRole(v DeviceRole) { - o.Role = v + o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). @@ -439,28 +423,36 @@ func (o *Device) UnsetAssetTag() { o.AssetTag.Unset() } -// GetSite returns the Site field value +// GetSite returns the Site field value if set, zero value otherwise. func (o *Device) GetSite() Site { - if o == nil { + if o == nil || IsNil(o.Site) { var ret Site return ret } - - return o.Site + return *o.Site } -// GetSiteOk returns a tuple with the Site field value +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetSiteOk() (*Site, bool) { - if o == nil { + if o == nil || IsNil(o.Site) { return nil, false } - return &o.Site, true + return o.Site, true +} + +// HasSite returns a boolean if a field has been set. +func (o *Device) HasSite() bool { + if o != nil && !IsNil(o.Site) { + return true + } + + return false } -// SetSite sets field value +// SetSite gets a reference to the given Site and assigns it to the Site field. func (o *Device) SetSite(v Site) { - o.Site = v + o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). @@ -710,18 +702,16 @@ func (o *Device) UnsetLongitude() { o.Longitude.Unset() } -// GetParentDevice returns the ParentDevice field value -// If the value is explicit nil, the zero value for NestedDevice will be returned +// GetParentDevice returns the ParentDevice field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetParentDevice() NestedDevice { - if o == nil || o.ParentDevice.Get() == nil { + if o == nil || IsNil(o.ParentDevice.Get()) { var ret NestedDevice return ret } - return *o.ParentDevice.Get() } -// GetParentDeviceOk returns a tuple with the ParentDevice field value +// GetParentDeviceOk returns a tuple with the ParentDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Device) GetParentDeviceOk() (*NestedDevice, bool) { @@ -731,11 +721,30 @@ func (o *Device) GetParentDeviceOk() (*NestedDevice, bool) { return o.ParentDevice.Get(), o.ParentDevice.IsSet() } -// SetParentDevice sets field value +// HasParentDevice returns a boolean if a field has been set. +func (o *Device) HasParentDevice() bool { + if o != nil && o.ParentDevice.IsSet() { + return true + } + + return false +} + +// SetParentDevice gets a reference to the given NullableNestedDevice and assigns it to the ParentDevice field. func (o *Device) SetParentDevice(v NestedDevice) { o.ParentDevice.Set(&v) } +// SetParentDeviceNil sets the value for ParentDevice to be an explicit nil +func (o *Device) SetParentDeviceNil() { + o.ParentDevice.Set(nil) +} + +// UnsetParentDevice ensures that no value is present for ParentDevice, not even an explicit nil +func (o *Device) UnsetParentDevice() { + o.ParentDevice.Unset() +} + // GetStatus returns the Status field value if set, zero value otherwise. func (o *Device) GetStatus() DeviceStatus { if o == nil || IsNil(o.Status) { @@ -800,18 +809,16 @@ func (o *Device) SetAirflow(v DeviceAirflow) { o.Airflow = &v } -// GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned +// GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetPrimaryIp() IPAddress { - if o == nil || o.PrimaryIp.Get() == nil { + if o == nil || IsNil(o.PrimaryIp.Get()) { var ret IPAddress return ret } - return *o.PrimaryIp.Get() } -// GetPrimaryIpOk returns a tuple with the PrimaryIp field value +// GetPrimaryIpOk returns a tuple with the PrimaryIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { @@ -821,11 +828,30 @@ func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { return o.PrimaryIp.Get(), o.PrimaryIp.IsSet() } -// SetPrimaryIp sets field value +// HasPrimaryIp returns a boolean if a field has been set. +func (o *Device) HasPrimaryIp() bool { + if o != nil && o.PrimaryIp.IsSet() { + return true + } + + return false +} + +// SetPrimaryIp gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp field. func (o *Device) SetPrimaryIp(v IPAddress) { o.PrimaryIp.Set(&v) } +// SetPrimaryIpNil sets the value for PrimaryIp to be an explicit nil +func (o *Device) SetPrimaryIpNil() { + o.PrimaryIp.Set(nil) +} + +// UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil +func (o *Device) UnsetPrimaryIp() { + o.PrimaryIp.Unset() +} + // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetPrimaryIp4() IPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { @@ -1127,36 +1153,28 @@ func (o *Device) UnsetVcPriority() { o.VcPriority.Unset() } -// GetDescription returns the Description field value if set, zero value otherwise. +// GetDescription returns the Description field value func (o *Device) GetDescription() string { - if o == nil || IsNil(o.Description) { + if o == nil { var ret string return ret } - return *o.Description + + return o.Description } -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. func (o *Device) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { + if o == nil { return nil, false } - return o.Description, true + return &o.Description, true } -// HasDescription returns a boolean if a field has been set. -func (o *Device) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. +// SetDescription sets field value func (o *Device) SetDescription(v string) { - o.Description = &v + o.Description = v } // GetComments returns the Comments field value if set, zero value otherwise. @@ -1331,18 +1349,16 @@ func (o *Device) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned +// GetCreated returns the Created field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { + if o == nil || IsNil(o.Created.Get()) { var ret time.Time return ret } - return *o.Created.Get() } -// GetCreatedOk returns a tuple with the Created field value +// GetCreatedOk returns a tuple with the Created field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Device) GetCreatedOk() (*time.Time, bool) { @@ -1352,23 +1368,40 @@ func (o *Device) GetCreatedOk() (*time.Time, bool) { return o.Created.Get(), o.Created.IsSet() } -// SetCreated sets field value +// HasCreated returns a boolean if a field has been set. +func (o *Device) HasCreated() bool { + if o != nil && o.Created.IsSet() { + return true + } + + return false +} + +// SetCreated gets a reference to the given NullableTime and assigns it to the Created field. func (o *Device) SetCreated(v time.Time) { o.Created.Set(&v) } -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned +// SetCreatedNil sets the value for Created to be an explicit nil +func (o *Device) SetCreatedNil() { + o.Created.Set(nil) +} + +// UnsetCreated ensures that no value is present for Created, not even an explicit nil +func (o *Device) UnsetCreated() { + o.Created.Unset() +} + +// GetLastUpdated returns the LastUpdated field value if set, zero value otherwise (both if not set or set to explicit null). func (o *Device) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { + if o == nil || IsNil(o.LastUpdated.Get()) { var ret time.Time return ret } - return *o.LastUpdated.Get() } -// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// GetLastUpdatedOk returns a tuple with the LastUpdated field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Device) GetLastUpdatedOk() (*time.Time, bool) { @@ -1378,249 +1411,348 @@ func (o *Device) GetLastUpdatedOk() (*time.Time, bool) { return o.LastUpdated.Get(), o.LastUpdated.IsSet() } -// SetLastUpdated sets field value +// HasLastUpdated returns a boolean if a field has been set. +func (o *Device) HasLastUpdated() bool { + if o != nil && o.LastUpdated.IsSet() { + return true + } + + return false +} + +// SetLastUpdated gets a reference to the given NullableTime and assigns it to the LastUpdated field. func (o *Device) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } -// GetConsolePortCount returns the ConsolePortCount field value +// SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil +func (o *Device) SetLastUpdatedNil() { + o.LastUpdated.Set(nil) +} + +// UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +func (o *Device) UnsetLastUpdated() { + o.LastUpdated.Unset() +} + +// GetConsolePortCount returns the ConsolePortCount field value if set, zero value otherwise. func (o *Device) GetConsolePortCount() int32 { - if o == nil { + if o == nil || IsNil(o.ConsolePortCount) { var ret int32 return ret } - - return o.ConsolePortCount + return *o.ConsolePortCount } -// GetConsolePortCountOk returns a tuple with the ConsolePortCount field value +// GetConsolePortCountOk returns a tuple with the ConsolePortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetConsolePortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ConsolePortCount) { return nil, false } - return &o.ConsolePortCount, true + return o.ConsolePortCount, true +} + +// HasConsolePortCount returns a boolean if a field has been set. +func (o *Device) HasConsolePortCount() bool { + if o != nil && !IsNil(o.ConsolePortCount) { + return true + } + + return false } -// SetConsolePortCount sets field value +// SetConsolePortCount gets a reference to the given int32 and assigns it to the ConsolePortCount field. func (o *Device) SetConsolePortCount(v int32) { - o.ConsolePortCount = v + o.ConsolePortCount = &v } -// GetConsoleServerPortCount returns the ConsoleServerPortCount field value +// GetConsoleServerPortCount returns the ConsoleServerPortCount field value if set, zero value otherwise. func (o *Device) GetConsoleServerPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.ConsoleServerPortCount) { var ret int32 return ret } - - return o.ConsoleServerPortCount + return *o.ConsoleServerPortCount } -// GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field value +// GetConsoleServerPortCountOk returns a tuple with the ConsoleServerPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetConsoleServerPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ConsoleServerPortCount) { return nil, false } - return &o.ConsoleServerPortCount, true + return o.ConsoleServerPortCount, true } -// SetConsoleServerPortCount sets field value +// HasConsoleServerPortCount returns a boolean if a field has been set. +func (o *Device) HasConsoleServerPortCount() bool { + if o != nil && !IsNil(o.ConsoleServerPortCount) { + return true + } + + return false +} + +// SetConsoleServerPortCount gets a reference to the given int32 and assigns it to the ConsoleServerPortCount field. func (o *Device) SetConsoleServerPortCount(v int32) { - o.ConsoleServerPortCount = v + o.ConsoleServerPortCount = &v } -// GetPowerPortCount returns the PowerPortCount field value +// GetPowerPortCount returns the PowerPortCount field value if set, zero value otherwise. func (o *Device) GetPowerPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.PowerPortCount) { var ret int32 return ret } - - return o.PowerPortCount + return *o.PowerPortCount } -// GetPowerPortCountOk returns a tuple with the PowerPortCount field value +// GetPowerPortCountOk returns a tuple with the PowerPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetPowerPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.PowerPortCount) { return nil, false } - return &o.PowerPortCount, true + return o.PowerPortCount, true } -// SetPowerPortCount sets field value +// HasPowerPortCount returns a boolean if a field has been set. +func (o *Device) HasPowerPortCount() bool { + if o != nil && !IsNil(o.PowerPortCount) { + return true + } + + return false +} + +// SetPowerPortCount gets a reference to the given int32 and assigns it to the PowerPortCount field. func (o *Device) SetPowerPortCount(v int32) { - o.PowerPortCount = v + o.PowerPortCount = &v } -// GetPowerOutletCount returns the PowerOutletCount field value +// GetPowerOutletCount returns the PowerOutletCount field value if set, zero value otherwise. func (o *Device) GetPowerOutletCount() int32 { - if o == nil { + if o == nil || IsNil(o.PowerOutletCount) { var ret int32 return ret } - - return o.PowerOutletCount + return *o.PowerOutletCount } -// GetPowerOutletCountOk returns a tuple with the PowerOutletCount field value +// GetPowerOutletCountOk returns a tuple with the PowerOutletCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetPowerOutletCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.PowerOutletCount) { return nil, false } - return &o.PowerOutletCount, true + return o.PowerOutletCount, true +} + +// HasPowerOutletCount returns a boolean if a field has been set. +func (o *Device) HasPowerOutletCount() bool { + if o != nil && !IsNil(o.PowerOutletCount) { + return true + } + + return false } -// SetPowerOutletCount sets field value +// SetPowerOutletCount gets a reference to the given int32 and assigns it to the PowerOutletCount field. func (o *Device) SetPowerOutletCount(v int32) { - o.PowerOutletCount = v + o.PowerOutletCount = &v } -// GetInterfaceCount returns the InterfaceCount field value +// GetInterfaceCount returns the InterfaceCount field value if set, zero value otherwise. func (o *Device) GetInterfaceCount() int32 { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { var ret int32 return ret } - - return o.InterfaceCount + return *o.InterfaceCount } -// GetInterfaceCountOk returns a tuple with the InterfaceCount field value +// GetInterfaceCountOk returns a tuple with the InterfaceCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetInterfaceCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.InterfaceCount) { return nil, false } - return &o.InterfaceCount, true + return o.InterfaceCount, true } -// SetInterfaceCount sets field value +// HasInterfaceCount returns a boolean if a field has been set. +func (o *Device) HasInterfaceCount() bool { + if o != nil && !IsNil(o.InterfaceCount) { + return true + } + + return false +} + +// SetInterfaceCount gets a reference to the given int32 and assigns it to the InterfaceCount field. func (o *Device) SetInterfaceCount(v int32) { - o.InterfaceCount = v + o.InterfaceCount = &v } -// GetFrontPortCount returns the FrontPortCount field value +// GetFrontPortCount returns the FrontPortCount field value if set, zero value otherwise. func (o *Device) GetFrontPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.FrontPortCount) { var ret int32 return ret } - - return o.FrontPortCount + return *o.FrontPortCount } -// GetFrontPortCountOk returns a tuple with the FrontPortCount field value +// GetFrontPortCountOk returns a tuple with the FrontPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetFrontPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.FrontPortCount) { return nil, false } - return &o.FrontPortCount, true + return o.FrontPortCount, true +} + +// HasFrontPortCount returns a boolean if a field has been set. +func (o *Device) HasFrontPortCount() bool { + if o != nil && !IsNil(o.FrontPortCount) { + return true + } + + return false } -// SetFrontPortCount sets field value +// SetFrontPortCount gets a reference to the given int32 and assigns it to the FrontPortCount field. func (o *Device) SetFrontPortCount(v int32) { - o.FrontPortCount = v + o.FrontPortCount = &v } -// GetRearPortCount returns the RearPortCount field value +// GetRearPortCount returns the RearPortCount field value if set, zero value otherwise. func (o *Device) GetRearPortCount() int32 { - if o == nil { + if o == nil || IsNil(o.RearPortCount) { var ret int32 return ret } - - return o.RearPortCount + return *o.RearPortCount } -// GetRearPortCountOk returns a tuple with the RearPortCount field value +// GetRearPortCountOk returns a tuple with the RearPortCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetRearPortCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.RearPortCount) { return nil, false } - return &o.RearPortCount, true + return o.RearPortCount, true } -// SetRearPortCount sets field value +// HasRearPortCount returns a boolean if a field has been set. +func (o *Device) HasRearPortCount() bool { + if o != nil && !IsNil(o.RearPortCount) { + return true + } + + return false +} + +// SetRearPortCount gets a reference to the given int32 and assigns it to the RearPortCount field. func (o *Device) SetRearPortCount(v int32) { - o.RearPortCount = v + o.RearPortCount = &v } -// GetDeviceBayCount returns the DeviceBayCount field value +// GetDeviceBayCount returns the DeviceBayCount field value if set, zero value otherwise. func (o *Device) GetDeviceBayCount() int32 { - if o == nil { + if o == nil || IsNil(o.DeviceBayCount) { var ret int32 return ret } - - return o.DeviceBayCount + return *o.DeviceBayCount } -// GetDeviceBayCountOk returns a tuple with the DeviceBayCount field value +// GetDeviceBayCountOk returns a tuple with the DeviceBayCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetDeviceBayCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.DeviceBayCount) { return nil, false } - return &o.DeviceBayCount, true + return o.DeviceBayCount, true } -// SetDeviceBayCount sets field value +// HasDeviceBayCount returns a boolean if a field has been set. +func (o *Device) HasDeviceBayCount() bool { + if o != nil && !IsNil(o.DeviceBayCount) { + return true + } + + return false +} + +// SetDeviceBayCount gets a reference to the given int32 and assigns it to the DeviceBayCount field. func (o *Device) SetDeviceBayCount(v int32) { - o.DeviceBayCount = v + o.DeviceBayCount = &v } -// GetModuleBayCount returns the ModuleBayCount field value +// GetModuleBayCount returns the ModuleBayCount field value if set, zero value otherwise. func (o *Device) GetModuleBayCount() int32 { - if o == nil { + if o == nil || IsNil(o.ModuleBayCount) { var ret int32 return ret } - - return o.ModuleBayCount + return *o.ModuleBayCount } -// GetModuleBayCountOk returns a tuple with the ModuleBayCount field value +// GetModuleBayCountOk returns a tuple with the ModuleBayCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetModuleBayCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.ModuleBayCount) { return nil, false } - return &o.ModuleBayCount, true + return o.ModuleBayCount, true +} + +// HasModuleBayCount returns a boolean if a field has been set. +func (o *Device) HasModuleBayCount() bool { + if o != nil && !IsNil(o.ModuleBayCount) { + return true + } + + return false } -// SetModuleBayCount sets field value +// SetModuleBayCount gets a reference to the given int32 and assigns it to the ModuleBayCount field. func (o *Device) SetModuleBayCount(v int32) { - o.ModuleBayCount = v + o.ModuleBayCount = &v } -// GetInventoryItemCount returns the InventoryItemCount field value +// GetInventoryItemCount returns the InventoryItemCount field value if set, zero value otherwise. func (o *Device) GetInventoryItemCount() int32 { - if o == nil { + if o == nil || IsNil(o.InventoryItemCount) { var ret int32 return ret } - - return o.InventoryItemCount + return *o.InventoryItemCount } -// GetInventoryItemCountOk returns a tuple with the InventoryItemCount field value +// GetInventoryItemCountOk returns a tuple with the InventoryItemCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Device) GetInventoryItemCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.InventoryItemCount) { return nil, false } - return &o.InventoryItemCount, true + return o.InventoryItemCount, true +} + +// HasInventoryItemCount returns a boolean if a field has been set. +func (o *Device) HasInventoryItemCount() bool { + if o != nil && !IsNil(o.InventoryItemCount) { + return true + } + + return false } -// SetInventoryItemCount sets field value +// SetInventoryItemCount gets a reference to the given int32 and assigns it to the InventoryItemCount field. func (o *Device) SetInventoryItemCount(v int32) { - o.InventoryItemCount = v + o.InventoryItemCount = &v } func (o Device) MarshalJSON() ([]byte, error) { @@ -1636,11 +1768,13 @@ func (o Device) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - if o.Name.IsSet() { - toSerialize["name"] = o.Name.Get() + toSerialize["name"] = o.Name.Get() + if !IsNil(o.DeviceType) { + toSerialize["device_type"] = o.DeviceType + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role } - toSerialize["device_type"] = o.DeviceType - toSerialize["role"] = o.Role if o.Tenant.IsSet() { toSerialize["tenant"] = o.Tenant.Get() } @@ -1653,7 +1787,9 @@ func (o Device) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - toSerialize["site"] = o.Site + if !IsNil(o.Site) { + toSerialize["site"] = o.Site + } if o.Location.IsSet() { toSerialize["location"] = o.Location.Get() } @@ -1672,14 +1808,18 @@ func (o Device) ToMap() (map[string]interface{}, error) { if o.Longitude.IsSet() { toSerialize["longitude"] = o.Longitude.Get() } - toSerialize["parent_device"] = o.ParentDevice.Get() + if o.ParentDevice.IsSet() { + toSerialize["parent_device"] = o.ParentDevice.Get() + } if !IsNil(o.Status) { toSerialize["status"] = o.Status } if !IsNil(o.Airflow) { toSerialize["airflow"] = o.Airflow } - toSerialize["primary_ip"] = o.PrimaryIp.Get() + if o.PrimaryIp.IsSet() { + toSerialize["primary_ip"] = o.PrimaryIp.Get() + } if o.PrimaryIp4.IsSet() { toSerialize["primary_ip4"] = o.PrimaryIp4.Get() } @@ -1701,9 +1841,7 @@ func (o Device) ToMap() (map[string]interface{}, error) { if o.VcPriority.IsSet() { toSerialize["vc_priority"] = o.VcPriority.Get() } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } + toSerialize["description"] = o.Description if !IsNil(o.Comments) { toSerialize["comments"] = o.Comments } @@ -1719,18 +1857,42 @@ func (o Device) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["console_port_count"] = o.ConsolePortCount - toSerialize["console_server_port_count"] = o.ConsoleServerPortCount - toSerialize["power_port_count"] = o.PowerPortCount - toSerialize["power_outlet_count"] = o.PowerOutletCount - toSerialize["interface_count"] = o.InterfaceCount - toSerialize["front_port_count"] = o.FrontPortCount - toSerialize["rear_port_count"] = o.RearPortCount - toSerialize["device_bay_count"] = o.DeviceBayCount - toSerialize["module_bay_count"] = o.ModuleBayCount - toSerialize["inventory_item_count"] = o.InventoryItemCount + if o.Created.IsSet() { + toSerialize["created"] = o.Created.Get() + } + if o.LastUpdated.IsSet() { + toSerialize["last_updated"] = o.LastUpdated.Get() + } + if !IsNil(o.ConsolePortCount) { + toSerialize["console_port_count"] = o.ConsolePortCount + } + if !IsNil(o.ConsoleServerPortCount) { + toSerialize["console_server_port_count"] = o.ConsoleServerPortCount + } + if !IsNil(o.PowerPortCount) { + toSerialize["power_port_count"] = o.PowerPortCount + } + if !IsNil(o.PowerOutletCount) { + toSerialize["power_outlet_count"] = o.PowerOutletCount + } + if !IsNil(o.InterfaceCount) { + toSerialize["interface_count"] = o.InterfaceCount + } + if !IsNil(o.FrontPortCount) { + toSerialize["front_port_count"] = o.FrontPortCount + } + if !IsNil(o.RearPortCount) { + toSerialize["rear_port_count"] = o.RearPortCount + } + if !IsNil(o.DeviceBayCount) { + toSerialize["device_bay_count"] = o.DeviceBayCount + } + if !IsNil(o.ModuleBayCount) { + toSerialize["module_bay_count"] = o.ModuleBayCount + } + if !IsNil(o.InventoryItemCount) { + toSerialize["inventory_item_count"] = o.InventoryItemCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1747,23 +1909,8 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "device_type", - "role", - "site", - "parent_device", - "primary_ip", - "created", - "last_updated", - "console_port_count", - "console_server_port_count", - "power_port_count", - "power_outlet_count", - "interface_count", - "front_port_count", - "rear_port_count", - "device_bay_count", - "module_bay_count", - "inventory_item_count", + "name", + "description", } allProperties := make(map[string]interface{}) diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index e63690bef..32e1f0493 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -13,7 +13,7 @@ for name, schema in data['components']['schemas'].items(): if 'properties' in schema: # Remove "null" item from nullable enums - for name, prop in schema['properties'].items(): + for propName, prop in schema['properties'].items(): if 'enum' in prop and None in prop['enum']: prop['enum'].remove(None) if 'properties' in prop and 'value' in prop['properties'] and 'enum' in prop['properties']['value'] and None in prop['properties']['value']['enum']: @@ -50,6 +50,14 @@ schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] +data['components']['schemas']['Device']['required'] = [ + 'id', + 'url', + 'display', + 'name', + 'description', +] + # Save the spec file with open(SPEC_PATH, 'w') as file: yaml.dump(data, file, Dumper=yaml.CDumper, sort_keys=False) From 6381e852455717314b22ee09d5e3bb7d0f60f8a4 Mon Sep 17 00:00:00 2001 From: Felix Edelmann Date: Wed, 3 Jul 2024 19:36:43 +0200 Subject: [PATCH 04/16] Ignore prefix_count --- api/openapi.yaml | 2 -- docs/Role.md | 9 +++++++-- docs/VRF.md | 9 +++++++-- model_role.go | 36 ++++++++++++++++++++++-------------- model_vrf.go | 36 ++++++++++++++++++++++-------------- scripts/fix-spec.py | 1 + 6 files changed, 59 insertions(+), 34 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 24f3a606c..4474f7ddd 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -130116,7 +130116,6 @@ components: - display - id - name - - prefix_count - slug - url - vlan_count @@ -131827,7 +131826,6 @@ components: - display - id - name - - prefix_count - url VRFRequest: type: object diff --git a/docs/Role.md b/docs/Role.md index 5054c3ea7..2129bc8e4 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**PrefixCount** | **int64** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] **VlanCount** | **int64** | | [readonly] ## Methods ### NewRole -`func NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64, ) *Role` +`func NewRole(id int32, url string, display string, name string, slug string, vlanCount int64, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -176,6 +176,11 @@ and a boolean to check if the value has been set. SetPrefixCount sets PrefixCount field to given value. +### HasPrefixCount + +`func (o *Role) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. ### GetVlanCount diff --git a/docs/VRF.md b/docs/VRF.md index e30a5c20e..efb68c006 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] **Description** | Pointer to **string** | | [optional] -**PrefixCount** | **int64** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, display string, name string, prefixCount int64, ) *VRF` +`func NewVRF(id int32, url string, display string, name string, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -190,6 +190,11 @@ and a boolean to check if the value has been set. SetPrefixCount sets PrefixCount field to given value. +### HasPrefixCount + +`func (o *VRF) HasPrefixCount() bool` + +HasPrefixCount 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/model_role.go b/model_role.go index 41ad3c7c5..7e651644c 100644 --- a/model_role.go +++ b/model_role.go @@ -26,7 +26,7 @@ type Role struct { Name string `json:"name"` Slug string `json:"slug"` Description *string `json:"description,omitempty"` - PrefixCount int64 `json:"prefix_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _Role Role // 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 NewRole(id int32, url string, display string, name string, slug string, prefixCount int64, vlanCount int64) *Role { +func NewRole(id int32, url string, display string, name string, slug string, vlanCount int64) *Role { this := Role{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.PrefixCount = prefixCount this.VlanCount = vlanCount return &this } @@ -209,28 +208,36 @@ func (o *Role) SetDescription(v string) { o.Description = &v } -// GetPrefixCount returns the PrefixCount field value +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *Role) GetPrefixCount() int64 { - if o == nil { + if o == nil || IsNil(o.PrefixCount) { var ret int64 return ret } - - return o.PrefixCount + return *o.PrefixCount } -// GetPrefixCountOk returns a tuple with the PrefixCount field value +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetPrefixCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PrefixCount) { return nil, false } - return &o.PrefixCount, true + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Role) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false } -// SetPrefixCount sets field value +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. func (o *Role) SetPrefixCount(v int64) { - o.PrefixCount = v + o.PrefixCount = &v } // GetVlanCount returns the VlanCount field value @@ -275,7 +282,9 @@ func (o Role) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["prefix_count"] = o.PrefixCount + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } toSerialize["vlan_count"] = o.VlanCount for key, value := range o.AdditionalProperties { @@ -295,7 +304,6 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "prefix_count", "vlan_count", } diff --git a/model_vrf.go b/model_vrf.go index 6f16484c9..e060fd153 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -27,7 +27,7 @@ type VRF struct { // Unique route distinguisher (as defined in RFC 4364) Rd NullableString `json:"rd,omitempty"` Description *string `json:"description,omitempty"` - PrefixCount int64 `json:"prefix_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _VRF VRF // 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 NewVRF(id int32, url string, display string, name string, prefixCount int64) *VRF { +func NewVRF(id int32, url string, display string, name string) *VRF { this := VRF{} this.Id = id this.Url = url this.Display = display this.Name = name - this.PrefixCount = prefixCount return &this } @@ -226,28 +225,36 @@ func (o *VRF) SetDescription(v string) { o.Description = &v } -// GetPrefixCount returns the PrefixCount field value +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *VRF) GetPrefixCount() int64 { - if o == nil { + if o == nil || IsNil(o.PrefixCount) { var ret int64 return ret } - - return o.PrefixCount + return *o.PrefixCount } -// GetPrefixCountOk returns a tuple with the PrefixCount field value +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VRF) GetPrefixCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.PrefixCount) { return nil, false } - return &o.PrefixCount, true + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *VRF) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false } -// SetPrefixCount sets field value +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. func (o *VRF) SetPrefixCount(v int64) { - o.PrefixCount = v + o.PrefixCount = &v } func (o VRF) MarshalJSON() ([]byte, error) { @@ -270,7 +277,9 @@ func (o VRF) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["prefix_count"] = o.PrefixCount + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -288,7 +297,6 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "prefix_count", } allProperties := make(map[string]interface{}) diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index 32e1f0493..d2dabc4e5 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -46,6 +46,7 @@ 'devicetype_count', 'device_count', 'virtualmachine_count', + 'prefix_count', ] schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] From f93a0b22d902b6ea16c86a6e12f808a6023afff1 Mon Sep 17 00:00:00 2001 From: AsamaSumer Date: Thu, 19 Sep 2024 11:54:21 +0530 Subject: [PATCH 05/16] go-netbox code gen --- .openapi-generator/FILES | 568 +- Makefile | 2 +- api/netbox_docker_version | 2 +- api/netbox_version | 2 +- api/openapi.yaml | 91386 +++++++++------- api_circuits.go | 4097 +- api_core.go | 1154 +- api_dcim.go | 7020 +- api_extras.go | 7471 +- api_ipam.go | 575 +- api_schema.go | 2 +- api_status.go | 2 +- api_tenancy.go | 120 +- api_users.go | 312 +- api_virtualization.go | 331 +- api_vpn.go | 178 +- api_wireless.go | 205 +- client.go | 4 +- configuration.go | 4 +- docs/ASN.md | 39 +- docs/ASNRange.md | 39 +- docs/ASNRangeRequest.md | 18 +- docs/ASNRequest.md | 16 +- docs/Aggregate.md | 39 +- docs/AggregateRequest.md | 18 +- docs/AvailableIP.md | 10 +- docs/AvailablePrefix.md | 10 +- docs/AvailableVLAN.md | 10 +- docs/Bookmark.md | 10 +- docs/BookmarkRequest.md | 10 +- docs/BriefCable.md | 145 + docs/BriefCableRequest.md | 82 + docs/BriefCircuit.md | 161 + docs/BriefCircuitGroup.md | 114 + docs/BriefCircuitGroupAssignmentSerializer.md | 140 + ...ircuitGroupAssignmentSerializerPriority.md | 82 + ...tGroupAssignmentSerializerPriorityLabel.md | 17 + ...tGroupAssignmentSerializerPriorityValue.md | 19 + ...CircuitGroupAssignmentSerializerRequest.md | 77 + docs/BriefCircuitGroupRequest.md | 51 + docs/BriefCircuitRequest.md | 98 + docs/BriefCircuitType.md | 182 + docs/BriefCircuitTypeRequest.md | 98 + docs/BriefCluster.md | 166 + docs/BriefClusterGroup.md | 182 + docs/BriefClusterGroupRequest.md | 98 + docs/BriefClusterRequest.md | 77 + docs/BriefClusterType.md | 182 + docs/BriefClusterTypeRequest.md | 98 + docs/BriefConfigTemplate.md | 140 + docs/BriefConfigTemplateRequest.md | 77 + docs/BriefContact.md | 140 + docs/BriefContactGroup.md | 203 + docs/BriefContactGroupRequest.md | 98 + docs/BriefContactRequest.md | 77 + docs/BriefContactRole.md | 161 + docs/BriefContactRoleRequest.md | 98 + docs/BriefCustomFieldChoiceSet.md | 161 + docs/BriefCustomFieldChoiceSetRequest.md | 77 + docs/BriefDataFile.md | 114 + docs/BriefDataSource.md | 140 + docs/BriefDataSourceRequest.md | 77 + docs/BriefDevice.md | 155 + docs/BriefDeviceRequest.md | 92 + docs/BriefDeviceRole.md | 213 + docs/BriefDeviceRoleRequest.md | 98 + docs/BriefDeviceType.md | 208 + docs/BriefDeviceTypeRequest.md | 119 + docs/BriefFHRPGroup.md | 161 + docs/BriefFHRPGroupProtocol.md | 23 + docs/BriefFHRPGroupRequest.md | 98 + docs/BriefIKEPolicy.md | 140 + docs/BriefIKEPolicyRequest.md | 77 + docs/BriefIPAddress.md | 161 + docs/BriefIPAddressRequest.md | 77 + docs/BriefIPSecPolicy.md | 140 + docs/BriefIPSecPolicyRequest.md | 77 + docs/BriefIPSecProfile.md | 140 + docs/BriefIPSecProfileRequest.md | 77 + docs/BriefInterface.md | 213 + docs/BriefInterfaceRequest.md | 98 + docs/BriefInventoryItemRole.md | 182 + docs/BriefInventoryItemRoleRequest.md | 98 + docs/BriefJob.md | 150 + docs/BriefJobRequest.md | 66 + docs/BriefJobStatus.md | 82 + docs/BriefJobStatusLabel.md | 21 + docs/BriefJobStatusValue.md | 21 + docs/BriefL2VPN.md | 223 + docs/BriefL2VPNRequest.md | 160 + docs/BriefL2VPNTermination.md | 114 + docs/BriefL2VPNTerminationRequest.md | 51 + docs/BriefL2VPNType.md | 82 + docs/BriefL2VPNTypeLabel.md | 33 + docs/BriefL2VPNTypeValue.md | 33 + docs/BriefLocation.md | 203 + docs/BriefLocationRequest.md | 98 + docs/BriefManufacturer.md | 187 + docs/BriefManufacturerRequest.md | 98 + docs/BriefModule.md | 135 + docs/BriefModuleRequest.md | 72 + docs/BriefModuleType.md | 161 + docs/BriefModuleTypeRequest.md | 98 + docs/BriefPlatform.md | 213 + docs/BriefPlatformRequest.md | 98 + docs/BriefPowerPanel.md | 161 + docs/BriefPowerPanelRequest.md | 77 + docs/BriefPowerPort.md | 213 + docs/BriefPowerPortRequest.md | 98 + docs/BriefPowerPortTemplate.md | 140 + docs/BriefPowerPortTemplateRequest.md | 77 + docs/BriefProvider.md | 182 + docs/BriefProviderAccount.md | 166 + docs/BriefProviderAccountRequest.md | 103 + docs/BriefProviderNetwork.md | 140 + docs/BriefProviderNetworkRequest.md | 77 + docs/BriefProviderRequest.md | 98 + docs/BriefRIR.md | 182 + docs/BriefRIRRequest.md | 98 + docs/BriefRack.md | 166 + docs/BriefRackRequest.md | 77 + docs/BriefRackRole.md | 182 + docs/BriefRackRoleRequest.md | 98 + docs/BriefRackType.md | 182 + docs/BriefRackTypeRequest.md | 119 + docs/BriefRearPortTemplate.md | 140 + docs/BriefRearPortTemplateRequest.md | 77 + docs/BriefRegion.md | 203 + docs/BriefRegionRequest.md | 98 + docs/BriefRole.md | 208 + docs/BriefRoleRequest.md | 98 + docs/BriefSite.md | 161 + docs/BriefSiteGroup.md | 203 + docs/BriefSiteGroupRequest.md | 98 + docs/BriefSiteRequest.md | 98 + docs/BriefTenant.md | 161 + docs/BriefTenantGroup.md | 203 + docs/BriefTenantGroupRequest.md | 98 + docs/BriefTenantRequest.md | 98 + docs/BriefTunnel.md | 140 + docs/BriefTunnelGroup.md | 182 + docs/BriefTunnelGroupRequest.md | 98 + docs/BriefTunnelRequest.md | 77 + docs/BriefUser.md | 114 + docs/BriefUserRequest.md | 51 + docs/BriefVLAN.md | 161 + docs/BriefVLANGroup.md | 182 + docs/BriefVLANGroupRequest.md | 98 + docs/BriefVLANRequest.md | 98 + docs/BriefVRF.md | 202 + docs/BriefVRFRequest.md | 113 + docs/BriefVirtualChassis.md | 197 + docs/BriefVirtualChassisRequest.md | 113 + docs/BriefVirtualMachine.md | 140 + docs/BriefVirtualMachineRequest.md | 77 + docs/BriefWirelessLANGroup.md | 203 + docs/BriefWirelessLANGroupRequest.md | 98 + docs/Cable.md | 401 +- docs/CableLengthUnit.md | 82 + docs/CableLengthUnitLabel.md | 21 + docs/CableLengthUnitValue.md | 23 + docs/CableRequest.md | 316 + docs/CableRequestLengthUnit.md | 23 + docs/CableStatus.md | 82 + docs/CableStatusLabel.md | 15 + docs/CableStatusValue.md | 15 + docs/CableType.md | 59 + docs/Circuit.md | 499 +- docs/CircuitCircuitTermination.md | 300 + docs/CircuitCircuitTerminationRequest.md | 216 + docs/CircuitGroup.md | 353 + docs/CircuitGroupAssignment.md | 270 + docs/CircuitGroupAssignmentRequest.md | 124 + docs/CircuitGroupRequest.md | 186 + docs/CircuitRequest.md | 354 +- docs/CircuitStatus.md | 82 + docs/CircuitStatusLabel.md | 21 + docs/CircuitStatusValue.md | 21 + docs/CircuitTermination.md | 67 +- docs/CircuitTerminationRequest.md | 26 +- docs/CircuitType.md | 23 +- docs/CircuitsAPI.md | 1602 +- ...itGroupAssignmentsListPriorityParameter.md | 17 + docs/Cluster.md | 344 +- docs/ClusterGroup.md | 23 +- docs/ClusterRequest.md | 235 +- docs/ClusterStatus.md | 82 + docs/ClusterStatusLabel.md | 19 + docs/ClusterStatusValue.md | 19 + docs/ClusterType.md | 23 +- docs/ConfigContext.md | 39 +- docs/ConfigContextRequest.md | 8 +- docs/ConfigTemplate.md | 272 +- docs/ConfigTemplateRequest.md | 111 +- docs/ConsolePort.md | 81 +- docs/ConsolePortRequest.md | 18 +- docs/ConsolePortTemplate.md | 16 +- docs/ConsolePortTemplateRequest.md | 16 +- docs/ConsoleServerPort.md | 81 +- docs/ConsoleServerPortRequest.md | 18 +- docs/ConsoleServerPortTemplate.md | 16 +- docs/ConsoleServerPortTemplateRequest.md | 16 +- docs/Contact.md | 329 +- docs/ContactAssignment.md | 26 +- docs/ContactAssignmentRequest.md | 26 +- docs/ContactGroup.md | 23 +- docs/ContactRequest.md | 244 + docs/ContactRole.md | 137 +- docs/ContactRoleRequest.md | 52 + docs/CoreAPI.md | 267 +- docs/CoreObjectChangesListActionParameter.md | 15 + docs/CustomField.md | 95 +- docs/CustomFieldChoiceSet.md | 23 +- docs/CustomFieldRequest.md | 72 +- docs/CustomLink.md | 23 +- docs/CustomLinkButtonClass.md | 2 +- docs/DataFile.md | 31 +- docs/DataSource.md | 340 +- docs/DataSourceRequest.md | 62 +- docs/DataSourceStatus.md | 82 + docs/DataSourceStatusLabel.md | 19 + docs/DataSourceStatusValue.md | 19 + docs/DataSourceType.md | 82 + docs/DataSourceTypeLabel.md | 17 + docs/DataSourceTypeValue.md | 15 + docs/DcimAPI.md | 2778 +- docs/DcimModuleTypesListAirflowParameter.md | 21 + docs/DcimRackTypesListOuterUnitParameter.md | 13 + docs/DcimRacksListAirflowParameter.md | 13 + docs/Device.md | 138 +- docs/DeviceBay.md | 39 +- docs/DeviceBayRequest.md | 18 +- docs/DeviceBayTemplate.md | 10 +- docs/DeviceBayTemplateRequest.md | 10 +- docs/DeviceRole.md | 225 +- docs/DeviceRoleRequest.md | 8 +- docs/DeviceType.md | 737 +- docs/DeviceTypeAirflow.md | 82 + docs/DeviceTypeRequest.md | 424 +- docs/DeviceTypeRequestAirflow.md | 25 + docs/DeviceTypeRequestSubdeviceRole.md | 15 + docs/DeviceTypeRequestWeightUnit.md | 19 + docs/DeviceTypeSubdeviceRole.md | 82 + docs/DeviceTypeSubdeviceRoleLabel.md | 13 + docs/DeviceTypeSubdeviceRoleValue.md | 15 + docs/DeviceTypeWeightUnit.md | 82 + docs/DeviceTypeWeightUnitLabel.md | 17 + docs/DeviceTypeWeightUnitValue.md | 19 + docs/DeviceWithConfigContext.md | 135 +- docs/DeviceWithConfigContextRequest.md | 106 +- docs/Event.md | 23 + docs/EventRule.md | 174 +- docs/EventRuleActionTypeLabel.md | 2 + docs/EventRuleActionTypeValue.md | 2 + docs/EventRuleEventTypesInner.md | 23 + docs/EventRuleRequest.md | 153 +- docs/ExportTemplate.md | 39 +- docs/ExportTemplateRequest.md | 8 +- docs/ExtrasAPI.md | 2844 +- ...trasCustomLinksListButtonClassParameter.md | 4 +- docs/FHRPGroup.md | 270 +- docs/FHRPGroupAssignment.md | 10 +- docs/FHRPGroupAssignmentRequest.md | 10 +- docs/FHRPGroupRequest.md | 166 +- docs/FrontPort.md | 59 +- docs/FrontPortRearPort.md | 23 +- docs/FrontPortRequest.md | 18 +- docs/FrontPortTemplate.md | 26 +- docs/FrontPortTemplateRequest.md | 26 +- docs/FrontPortTypeLabel.md | 16 + docs/FrontPortTypeValue.md | 16 + docs/GenericObject.md | 103 + docs/Group.md | 23 +- docs/IKEPolicy.md | 30 +- docs/IKEPolicyRequest.md | 9 +- docs/IKEProposal.md | 30 +- docs/IKEProposalRequest.md | 9 +- docs/IPAddress.md | 473 +- docs/IPAddressRequest.md | 336 + docs/IPAddressRole.md | 82 + docs/IPAddressRoleLabel.md | 25 + docs/IPAddressRoleValue.md | 27 + docs/IPAddressStatus.md | 82 + docs/IPAddressStatusLabel.md | 19 + docs/IPAddressStatusValue.md | 19 + docs/IPRange.md | 47 +- docs/IPRangeRequest.md | 24 +- docs/IPSecPolicy.md | 23 +- docs/IPSecProfile.md | 39 +- docs/IPSecProfileRequest.md | 18 +- docs/IPSecProposal.md | 23 +- docs/ImageAttachment.md | 4 +- docs/ImageAttachmentRequest.md | 44 +- docs/Interface.md | 105 +- docs/InterfaceRequest.md | 34 +- docs/InterfaceTemplate.md | 16 +- docs/InterfaceTemplateRequest.md | 16 +- docs/InterfaceTypeLabel.md | 4 + docs/InterfaceTypeValue.md | 4 + docs/InventoryItem.md | 47 +- docs/InventoryItemRequest.md | 26 +- docs/InventoryItemRole.md | 23 +- docs/InventoryItemTemplate.md | 26 +- docs/InventoryItemTemplateRequest.md | 26 +- docs/IpamAPI.md | 298 +- docs/Job.md | 39 +- docs/JournalEntry.md | 23 +- docs/L2VPN.md | 259 +- docs/L2VPNRequest.md | 174 +- docs/L2VPNTermination.md | 218 +- docs/L2VPNTerminationRequest.md | 104 +- docs/Location.md | 308 +- docs/LocationRequest.md | 199 +- docs/LocationStatus.md | 82 + docs/LocationStatusLabel.md | 19 + docs/LocationStatusValue.md | 19 + docs/Manufacturer.md | 179 +- docs/ManufacturerRequest.md | 52 + docs/Module.md | 306 +- docs/ModuleBay.md | 75 +- docs/ModuleBayRequest.md | 54 +- docs/ModuleBayTemplate.md | 61 +- docs/ModuleBayTemplateRequest.md | 61 +- docs/ModuleRequest.md | 223 +- docs/ModuleStatus.md | 82 + docs/ModuleStatusLabel.md | 21 + docs/ModuleStatusValue.md | 21 + docs/ModuleType.md | 305 +- docs/ModuleTypeAirflow.md | 82 + docs/ModuleTypeAirflowLabel.md | 21 + docs/ModuleTypeAirflowValue.md | 23 + docs/ModuleTypeRequest.md | 222 +- docs/ModuleTypeRequestAirflow.md | 23 + docs/NestedContactGroup.md | 23 +- docs/NestedDevice.md | 23 +- docs/NestedGroup.md | 23 +- docs/NestedIPAddress.md | 156 + docs/NestedIPAddressRequest.md | 51 + docs/NestedInterface.md | 23 +- docs/NestedLocation.md | 177 + docs/NestedLocationRequest.md | 72 + docs/NestedModuleBay.md | 55 +- docs/NestedModuleBayRequest.md | 36 - docs/NestedProviderAccount.md | 161 + docs/NestedRegion.md | 23 +- docs/NestedSiteGroup.md | 23 +- docs/NestedTag.md | 23 +- docs/NestedTenantGroup.md | 23 +- docs/NestedUser.md | 23 +- docs/NestedVMInterface.md | 23 +- docs/NestedVirtualMachine.md | 23 +- docs/NestedWirelessLANGroup.md | 177 + docs/NestedWirelessLink.md | 23 +- docs/Notification.md | 265 + docs/NotificationGroup.md | 213 + docs/NotificationGroupRequest.md | 129 + docs/NotificationRequest.md | 150 + docs/ObjectChange.md | 31 +- docs/ObjectPermission.md | 23 +- docs/PaginatedCircuitGroupAssignmentList.md | 144 + docs/PaginatedCircuitGroupList.md | 144 + docs/PaginatedNotificationGroupList.md | 144 + docs/PaginatedNotificationList.md | 144 + docs/PaginatedRackTypeList.md | 144 + docs/PaginatedSubscriptionList.md | 144 + docs/PatchedASNRangeRequest.md | 16 +- docs/PatchedASNRequest.md | 16 +- docs/PatchedBookmarkRequest.md | 8 +- docs/PatchedCircuitGroupRequest.md | 196 + docs/PatchedCircuitTerminationRequest.md | 24 +- docs/PatchedConfigContextRequest.md | 8 +- docs/PatchedConfigTemplateRequest.md | 8 +- docs/PatchedContactRequest.md | 8 +- docs/PatchedDeviceBayRequest.md | 16 +- docs/PatchedDeviceBayTemplateRequest.md | 8 +- docs/PatchedDeviceRoleRequest.md | 8 +- docs/PatchedExportTemplateRequest.md | 8 +- docs/PatchedFHRPGroupAssignmentRequest.md | 8 +- docs/PatchedFHRPGroupRequest.md | 8 +- docs/PatchedImageAttachmentRequest.md | 52 - docs/PatchedInventoryItemRequest.md | 24 +- docs/PatchedInventoryItemTemplateRequest.md | 24 +- docs/PatchedL2VPNTerminationRequest.md | 8 +- docs/PatchedModuleBayRequest.md | 52 +- docs/PatchedModuleBayTemplateRequest.md | 54 +- docs/PatchedNotificationGroupRequest.md | 134 + docs/PatchedNotificationRequest.md | 170 + docs/PatchedPlatformRequest.md | 16 +- docs/PatchedPowerPanelRequest.md | 16 +- docs/PatchedProviderAccountRequest.md | 8 +- docs/PatchedProviderNetworkRequest.md | 8 +- docs/PatchedRackReservationRequest.md | 24 +- docs/PatchedRouteTargetRequest.md | 8 +- docs/PatchedScriptInputRequest.md | 164 + docs/PatchedSubscriptionRequest.md | 108 + docs/PatchedTenantRequest.md | 8 +- docs/PatchedTokenRequest.md | 8 +- docs/PatchedVLANGroupRequest.md | 52 - docs/PatchedVRFRequest.md | 8 +- docs/PatchedVirtualDiskRequest.md | 8 +- docs/PatchedWritableAggregateRequest.md | 16 +- docs/PatchedWritableCableRequest.md | 32 +- ...edWritableCircuitGroupAssignmentRequest.md | 134 + docs/PatchedWritableCircuitRequest.md | 66 +- docs/PatchedWritableClusterRequest.md | 40 +- docs/PatchedWritableConsolePortRequest.md | 16 +- ...tchedWritableConsolePortTemplateRequest.md | 16 +- ...PatchedWritableConsoleServerPortRequest.md | 16 +- ...ritableConsoleServerPortTemplateRequest.md | 16 +- ...PatchedWritableContactAssignmentRequest.md | 24 +- docs/PatchedWritableCustomFieldRequest.md | 72 +- docs/PatchedWritableDataSourceRequest.md | 52 +- docs/PatchedWritableDeviceTypeRequest.md | 24 +- ...dWritableDeviceWithConfigContextRequest.md | 104 +- docs/PatchedWritableEventRuleRequest.md | 154 +- docs/PatchedWritableFrontPortRequest.md | 16 +- ...PatchedWritableFrontPortTemplateRequest.md | 24 +- docs/PatchedWritableIPAddressRequest.md | 16 +- docs/PatchedWritableIPRangeRequest.md | 24 +- docs/PatchedWritableIPSecProfileRequest.md | 16 +- docs/PatchedWritableInterfaceRequest.md | 32 +- ...PatchedWritableInterfaceTemplateRequest.md | 16 +- docs/PatchedWritableL2VPNRequest.md | 16 +- docs/PatchedWritableLocationRequest.md | 24 +- docs/PatchedWritableModuleRequest.md | 24 +- docs/PatchedWritableModuleTypeRequest.md | 42 +- docs/PatchedWritablePowerFeedRequest.md | 24 +- docs/PatchedWritablePowerOutletRequest.md | 24 +- docs/PatchedWritablePowerOutletRequestType.md | 2 + ...tchedWritablePowerOutletTemplateRequest.md | 24 +- ...dWritablePowerOutletTemplateRequestType.md | 2 + docs/PatchedWritablePowerPortRequest.md | 16 +- docs/PatchedWritablePowerPortRequestType.md | 2 + ...PatchedWritablePowerPortTemplateRequest.md | 16 +- ...hedWritablePowerPortTemplateRequestType.md | 2 + docs/PatchedWritablePrefixRequest.md | 40 +- docs/PatchedWritableRackRequest.md | 128 +- docs/PatchedWritableRackRequestAirflow.md | 15 + docs/PatchedWritableRackRequestFormFactor.md | 25 + docs/PatchedWritableRackTypeRequest.md | 574 + ...atchedWritableRackTypeRequestFormFactor.md | 23 + docs/PatchedWritableRearPortRequest.md | 16 +- .../PatchedWritableRearPortTemplateRequest.md | 16 +- docs/PatchedWritableServiceRequest.md | 16 +- docs/PatchedWritableSiteRequest.md | 32 +- docs/PatchedWritableTunnelRequest.md | 24 +- ...PatchedWritableTunnelTerminationRequest.md | 16 +- docs/PatchedWritableVLANRequest.md | 32 +- docs/PatchedWritableVMInterfaceRequest.md | 24 +- ...chedWritableVirtualDeviceContextRequest.md | 32 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/PatchedWritableWirelessLANRequest.md | 24 +- docs/PatchedWritableWirelessLinkRequest.md | 94 +- ...WritableWirelessLinkRequestDistanceUnit.md | 19 + docs/Platform.md | 209 +- docs/PlatformRequest.md | 124 + docs/PowerFeed.md | 89 +- docs/PowerFeedRequest.md | 26 +- docs/PowerOutlet.md | 89 +- docs/PowerOutletRequest.md | 26 +- docs/PowerOutletRequestType.md | 2 + docs/PowerOutletTemplate.md | 24 +- docs/PowerOutletTemplateRequest.md | 24 +- docs/PowerOutletTypeLabel.md | 2 + docs/PowerPanel.md | 220 +- docs/PowerPanelRequest.md | 137 +- docs/PowerPort.md | 505 +- docs/PowerPortRequest.md | 258 +- docs/PowerPortRequestType.md | 219 + docs/PowerPortTemplate.md | 270 +- docs/PowerPortTemplateRequest.md | 206 + docs/PowerPortType.md | 82 + docs/PowerPortTypeLabel.md | 217 + docs/Prefix.md | 63 +- docs/PrefixRequest.md | 40 +- docs/Provider.md | 215 +- docs/ProviderAccount.md | 31 +- docs/ProviderAccountRequest.md | 101 +- docs/ProviderNetwork.md | 210 +- docs/ProviderNetworkRequest.md | 127 +- docs/ProviderRequest.md | 130 + docs/RIR.md | 163 +- docs/RIRRequest.md | 78 + docs/Rack.md | 891 +- docs/RackAirflow.md | 82 + docs/RackAirflowLabel.md | 13 + docs/RackFormFactor.md | 82 + docs/RackFormFactorLabel.md | 23 + docs/RackOuterUnit.md | 82 + docs/RackOuterUnitLabel.md | 13 + docs/RackRequest.md | 787 +- docs/RackRequestFormFactor.md | 25 + docs/RackRequestOuterUnit.md | 15 + docs/RackReservation.md | 47 +- docs/RackReservationRequest.md | 26 +- docs/RackRole.md | 23 +- docs/RackStatus.md | 82 + docs/RackStatusLabel.md | 19 + docs/RackType.md | 735 + docs/RackTypeRequest.md | 589 + docs/RackUnit.md | 10 +- docs/RackWidth.md | 82 + docs/RackWidthLabel.md | 17 + docs/RackWidthValue.md | 17 + docs/RearPort.md | 59 +- docs/RearPortRequest.md | 18 +- docs/RearPortTemplate.md | 235 +- docs/RearPortTemplateRequest.md | 173 +- docs/Region.md | 23 +- docs/Role.md | 163 +- docs/RoleRequest.md | 78 + docs/RouteTarget.md | 31 +- docs/RouteTargetRequest.md | 8 +- docs/SavedFilter.md | 23 +- docs/SchemaAPI.md | 2 +- docs/SchemaRetrieveLangParameter.md | 10 + docs/Script.md | 43 +- docs/ScriptInputRequest.md | 154 + docs/Service.md | 39 +- docs/ServiceRequest.md | 16 +- docs/ServiceTemplate.md | 23 +- docs/Site.md | 650 +- docs/SiteGroup.md | 23 +- docs/SiteRequest.md | 424 + docs/Subscription.md | 208 + docs/SubscriptionRequest.md | 93 + docs/Tag.md | 23 +- docs/TenancyAPI.md | 106 +- docs/Tenant.md | 424 +- docs/TenantGroup.md | 23 +- docs/TenantRequest.md | 114 + docs/Token.md | 31 +- docs/TokenProvision.md | 31 +- docs/TokenRequest.md | 10 +- docs/Tunnel.md | 370 +- docs/TunnelEncapsulation.md | 82 + docs/TunnelEncapsulationLabel.md | 17 + docs/TunnelGroup.md | 23 +- docs/TunnelRequest.md | 266 +- docs/TunnelStatus.md | 82 + docs/TunnelStatusLabel.md | 15 + docs/TunnelTermination.md | 39 +- docs/TunnelTerminationRequest.md | 18 +- docs/User.md | 267 +- docs/UserRequest.md | 267 +- docs/UsersAPI.md | 36 +- docs/VLAN.md | 390 +- docs/VLANGroup.md | 75 +- docs/VLANGroupRequest.md | 52 - docs/VLANRequest.md | 248 + docs/VMInterface.md | 55 +- docs/VMInterfaceRequest.md | 26 +- docs/VRF.md | 298 +- docs/VRFRequest.md | 192 + docs/VirtualChassis.md | 210 +- docs/VirtualChassisRequest.md | 104 + docs/VirtualDeviceContext.md | 63 +- docs/VirtualDeviceContextRequest.md | 34 +- docs/VirtualDisk.md | 31 +- docs/VirtualDiskRequest.md | 10 +- docs/VirtualMachineWithConfigContext.md | 137 +- .../VirtualMachineWithConfigContextRequest.md | 106 +- docs/VirtualizationAPI.md | 176 +- docs/VpnAPI.md | 108 +- docs/Webhook.md | 23 +- docs/WirelessAPI.md | 96 +- docs/WirelessLAN.md | 47 +- docs/WirelessLANGroup.md | 173 +- docs/WirelessLANRequest.md | 24 +- docs/WirelessLink.md | 127 +- docs/WirelessLinkDistanceUnit.md | 82 + docs/WirelessLinkDistanceUnitLabel.md | 17 + docs/WirelessLinkRequest.md | 106 +- docs/WirelessLinkRequestDistanceUnit.md | 19 + ...sWirelessLinksListDistanceUnitParameter.md | 17 + docs/WritableAggregateRequest.md | 18 +- docs/WritableCableRequest.md | 32 +- docs/WritableCircuitGroupAssignmentRequest.md | 124 + docs/WritableCircuitRequest.md | 68 +- docs/WritableClusterRequest.md | 42 +- docs/WritableConsolePortRequest.md | 18 +- docs/WritableConsolePortTemplateRequest.md | 16 +- docs/WritableConsoleServerPortRequest.md | 18 +- ...ritableConsoleServerPortTemplateRequest.md | 16 +- docs/WritableContactAssignmentRequest.md | 26 +- docs/WritableCustomFieldRequest.md | 72 +- docs/WritableDataSourceRequest.md | 52 +- docs/WritableDeviceTypeRequest.md | 26 +- .../WritableDeviceWithConfigContextRequest.md | 106 +- docs/WritableEventRuleRequest.md | 153 +- docs/WritableFrontPortRequest.md | 18 +- docs/WritableFrontPortTemplateRequest.md | 26 +- docs/WritableIPAddressRequest.md | 16 +- docs/WritableIPRangeRequest.md | 24 +- docs/WritableIPSecProfileRequest.md | 18 +- docs/WritableInterfaceRequest.md | 34 +- docs/WritableInterfaceTemplateRequest.md | 16 +- docs/WritableL2VPNRequest.md | 18 +- docs/WritableLocationRequest.md | 26 +- docs/WritableModuleRequest.md | 26 +- docs/WritableModuleTypeRequest.md | 44 +- docs/WritablePowerFeedRequest.md | 26 +- docs/WritablePowerOutletRequest.md | 26 +- docs/WritablePowerOutletTemplateRequest.md | 24 +- docs/WritablePowerPortRequest.md | 18 +- docs/WritablePowerPortTemplateRequest.md | 16 +- docs/WritablePrefixRequest.md | 40 +- docs/WritableRackRequest.md | 130 +- docs/WritableRackTypeRequest.md | 554 + docs/WritableRearPortRequest.md | 18 +- docs/WritableRearPortTemplateRequest.md | 16 +- docs/WritableServiceRequest.md | 16 +- docs/WritableSiteRequest.md | 32 +- docs/WritableTunnelRequest.md | 24 +- docs/WritableTunnelTerminationRequest.md | 18 +- docs/WritableVLANRequest.md | 32 +- docs/WritableVMInterfaceRequest.md | 26 +- docs/WritableVirtualDeviceContextRequest.md | 34 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/WritableWirelessLANRequest.md | 24 +- docs/WritableWirelessLinkRequest.md | 96 +- go.mod | 2 +- model_aggregate.go | 55 +- model_aggregate_family.go | 2 +- model_aggregate_family_label.go | 2 +- model_aggregate_family_value.go | 2 +- model_aggregate_request.go | 38 +- model_asn.go | 63 +- model_asn_range.go | 55 +- model_asn_range_request.go | 40 +- model_asn_request.go | 36 +- model_authentication.go | 2 +- model_authentication_cipher.go | 2 +- model_authentication_type.go | 2 +- model_authentication_type_1.go | 2 +- model_available_asn.go | 2 +- model_available_ip.go | 22 +- model_available_prefix.go | 20 +- model_available_vlan.go | 18 +- model_bookmark.go | 14 +- model_bookmark_request.go | 18 +- model_brief_cable.go | 300 + model_brief_cable_request.go | 192 + model_brief_circuit.go | 322 + model_brief_circuit_group.go | 255 + ...ef_circuit_group_assignment_serializer_.go | 292 + ...t_group_assignment_serializer__priority.go | 192 + ...p_assignment_serializer__priority_label.go | 115 + ...p_assignment_serializer__priority_value.go | 117 + ...uit_group_assignment_serializer_request.go | 205 + model_brief_circuit_group_request.go | 168 + model_brief_circuit_request.go | 235 + model_brief_circuit_type.go | 350 + model_brief_circuit_type_request.go | 234 + model_brief_cluster.go | 329 + model_brief_cluster_group.go | 350 + model_brief_cluster_group_request.go | 234 + model_brief_cluster_request.go | 205 + model_brief_cluster_type.go | 350 + model_brief_cluster_type_request.go | 234 + model_brief_config_template.go | 292 + model_brief_config_template_request.go | 205 + model_brief_contact.go | 292 + model_brief_contact_group.go | 379 + model_brief_contact_group_request.go | 234 + model_brief_contact_request.go | 205 + model_brief_contact_role.go | 321 + model_brief_contact_role_request.go | 234 + model_brief_custom_field_choice_set.go | 321 + ...l_brief_custom_field_choice_set_request.go | 205 + model_brief_data_file.go | 256 + model_brief_data_source.go | 292 + model_brief_data_source_request.go | 205 + model_brief_device.go | 310 + model_brief_device_request.go | 202 + model_brief_device_role.go | 395 + model_brief_device_role_request.go | 234 + model_brief_device_type.go | 387 + model_brief_device_type_request.go | 263 + model_brief_fhrp_group.go | 321 + model_brief_fhrp_group_protocol.go | 121 + model_brief_fhrp_group_request.go | 234 + model_brief_ike_policy.go | 292 + model_brief_ike_policy_request.go | 205 + model_brief_interface.go | 381 + model_brief_interface_request.go | 234 + model_brief_inventory_item_role.go | 350 + model_brief_inventory_item_role_request.go | 234 + model_brief_ip_address.go | 321 + model_brief_ip_address_request.go | 205 + model_brief_ip_sec_policy.go | 292 + model_brief_ip_sec_policy_request.go | 205 + model_brief_ip_sec_profile.go | 292 + model_brief_ip_sec_profile_request.go | 205 + model_brief_job.go | 303 + model_brief_job_request.go | 166 + model_brief_job_status.go | 192 + model_brief_job_status_label.go | 119 + model_brief_job_status_value.go | 119 + model_brief_l2_vpn.go | 405 + model_brief_l2_vpn_request.go | 318 + model_brief_l2_vpn_termination.go | 255 + model_brief_l2_vpn_termination_request.go | 168 + model_brief_l2_vpn_type.go | 192 + model_brief_l2_vpn_type_label.go | 131 + model_brief_l2_vpn_type_value.go | 131 + model_brief_location.go | 379 + model_brief_location_request.go | 234 + model_brief_manufacturer.go | 358 + model_brief_manufacturer_request.go | 234 + model_brief_module.go | 284 + model_brief_module_request.go | 197 + model_brief_module_type.go | 321 + model_brief_module_type_request.go | 234 + model_brief_platform.go | 395 + model_brief_platform_request.go | 234 + model_brief_power_panel.go | 321 + model_brief_power_panel_request.go | 205 + model_brief_power_port.go | 381 + model_brief_power_port_request.go | 234 + model_brief_power_port_template.go | 293 + model_brief_power_port_template_request.go | 206 + model_brief_provider.go | 351 + model_brief_provider_account.go | 333 + model_brief_provider_account_request.go | 246 + model_brief_provider_network.go | 292 + model_brief_provider_network_request.go | 205 + model_brief_provider_request.go | 235 + model_brief_rack.go | 329 + model_brief_rack_request.go | 205 + model_brief_rack_role.go | 350 + model_brief_rack_role_request.go | 234 + model_brief_rack_type.go | 350 + model_brief_rack_type_request.go | 263 + model_brief_rear_port_template.go | 293 + model_brief_rear_port_template_request.go | 206 + model_brief_region.go | 379 + model_brief_region_request.go | 234 + model_brief_rir.go | 350 + model_brief_rir_request.go | 234 + model_brief_role.go | 387 + model_brief_role_request.go | 234 + model_brief_site.go | 322 + model_brief_site_group.go | 379 + model_brief_site_group_request.go | 234 + model_brief_site_request.go | 235 + model_brief_tenant.go | 321 + model_brief_tenant_group.go | 379 + model_brief_tenant_group_request.go | 234 + model_brief_tenant_request.go | 234 + model_brief_tunnel.go | 292 + model_brief_tunnel_group.go | 350 + model_brief_tunnel_group_request.go | 234 + model_brief_tunnel_request.go | 205 + model_brief_user.go | 256 + model_brief_user_request.go | 169 + model_brief_virtual_chassis.go | 368 + model_brief_virtual_chassis_request.go | 252 + model_brief_virtual_machine.go | 292 + model_brief_virtual_machine_request.go | 205 + model_brief_vlan.go | 322 + model_brief_vlan_group.go | 350 + model_brief_vlan_group_request.go | 234 + model_brief_vlan_request.go | 235 + model_brief_vrf.go | 377 + model_brief_vrf_request.go | 253 + model_brief_wireless_lan_group.go | 379 + model_brief_wireless_lan_group_request.go | 234 + model_cable.go | 546 +- model_cable_length_unit.go | 192 + model_cable_length_unit_label.go | 119 + model_cable_length_unit_value.go | 121 + model_cable_request.go | 446 +- model_cable_request_length_unit.go | 121 + model_cable_status.go | 192 + model_cable_status_label.go | 113 + model_cable_status_value.go | 113 + model_cable_termination.go | 2 +- model_cable_termination_request.go | 2 +- model_cable_type.go | 157 + model_circuit.go | 652 +- model_circuit_circuit_termination.go | 488 + model_circuit_circuit_termination_request.go | 372 + model_circuit_group.go | 563 + model_circuit_group_assignment.go | 450 + model_circuit_group_assignment_request.go | 271 + model_circuit_group_request.go | 355 + model_circuit_request.go | 492 +- model_circuit_status.go | 192 + model_circuit_status_label.go | 119 + model_circuit_status_value.go | 119 + model_circuit_termination.go | 107 +- model_circuit_termination_request.go | 40 +- model_circuit_type.go | 33 +- model_circuit_type_request.go | 2 +- ...oup_assignments_list_priority_parameter.go | 115 + ...t_terminations_list_cable_end_parameter.go | 2 +- model_cluster.go | 466 +- model_cluster_group.go | 33 +- model_cluster_group_request.go | 2 +- model_cluster_request.go | 329 +- model_cluster_status.go | 192 + model_cluster_status_label.go | 117 + model_cluster_status_value.go | 117 + model_cluster_type.go | 33 +- model_cluster_type_request.go | 2 +- model_config_context.go | 105 +- model_config_context_request.go | 50 +- model_config_template.go | 347 +- model_config_template_request.go | 151 +- model_console_port.go | 117 +- model_console_port_request.go | 28 +- model_console_port_request_speed.go | 2 +- model_console_port_speed.go | 2 +- model_console_port_speed_label.go | 2 +- model_console_port_speed_value.go | 2 +- model_console_port_template.go | 32 +- model_console_port_template_request.go | 26 +- model_console_port_type.go | 2 +- model_console_port_type_label.go | 2 +- model_console_port_type_value.go | 2 +- model_console_server_port.go | 117 +- model_console_server_port_request.go | 28 +- model_console_server_port_template.go | 32 +- model_console_server_port_template_request.go | 26 +- model_contact.go | 450 +- model_contact_assignment.go | 58 +- model_contact_assignment_request.go | 46 +- model_contact_group.go | 33 +- model_contact_group_request.go | 2 +- model_contact_request.go | 350 +- model_contact_role.go | 182 +- model_contact_role_request.go | 82 +- ...re_object_changes_list_action_parameter.go | 113 + model_custom_field.go | 132 +- model_custom_field_choice_set.go | 33 +- model_custom_field_choice_set_base_choices.go | 2 +- ...tom_field_choice_set_base_choices_label.go | 2 +- ...tom_field_choice_set_base_choices_value.go | 2 +- model_custom_field_choice_set_request.go | 2 +- model_custom_field_filter_logic.go | 2 +- model_custom_field_filter_logic_label.go | 2 +- model_custom_field_filter_logic_value.go | 2 +- model_custom_field_request.go | 97 +- model_custom_field_type.go | 2 +- model_custom_field_type_label.go | 2 +- model_custom_field_type_value.go | 2 +- model_custom_field_ui_editable.go | 2 +- model_custom_field_ui_editable_label.go | 2 +- model_custom_field_ui_editable_value.go | 2 +- model_custom_field_ui_visible.go | 2 +- model_custom_field_ui_visible_label.go | 2 +- model_custom_field_ui_visible_value.go | 2 +- model_custom_link.go | 33 +- model_custom_link_button_class.go | 36 +- model_custom_link_request.go | 2 +- model_dashboard.go | 2 +- model_dashboard_request.go | 2 +- model_data_file.go | 49 +- model_data_source.go | 440 +- model_data_source_request.go | 98 +- model_data_source_status.go | 192 + model_data_source_status_label.go | 117 + model_data_source_status_value.go | 117 + model_data_source_type.go | 192 + model_data_source_type_label.go | 115 + model_data_source_type_value.go | 113 + ..._dcim_cables_list_length_unit_parameter.go | 2 +- ...sole_port_templates_list_type_parameter.go | 2 +- ...dcim_console_ports_list_speed_parameter.go | 2 +- ...cim_device_types_list_airflow_parameter.go | 2 +- ...device_types_list_weight_unit_parameter.go | 2 +- ...s_render_config_create_format_parameter.go | 2 +- model_dcim_interfaces_list_mode_parameter.go | 2 +- ...cim_module_types_list_airflow_parameter.go | 119 + ...l_dcim_power_feeds_list_phase_parameter.go | 2 +- ..._dcim_power_feeds_list_supply_parameter.go | 2 +- model_dcim_power_feeds_list_type_parameter.go | 2 +- ...er_outlet_templates_list_type_parameter.go | 2 +- ...ower_port_templates_list_type_parameter.go | 2 +- ...im_rack_types_list_outer_unit_parameter.go | 111 + ...racks_elevation_retrieve_face_parameter.go | 2 +- ...cks_elevation_retrieve_render_parameter.go | 2 +- model_dcim_racks_list_airflow_parameter.go | 111 + model_device.go | 237 +- model_device_airflow.go | 2 +- model_device_airflow_label.go | 2 +- model_device_airflow_value.go | 2 +- model_device_bay.go | 63 +- model_device_bay_request.go | 36 +- model_device_bay_template.go | 20 +- model_device_bay_template_request.go | 14 +- model_device_face.go | 2 +- model_device_face_label.go | 2 +- model_device_face_value.go | 2 +- model_device_role.go | 309 +- model_device_role_request.go | 22 +- model_device_status.go | 2 +- model_device_status_label.go | 2 +- model_device_status_value.go | 2 +- model_device_type.go | 1014 +- model_device_type_airflow.go | 192 + model_device_type_request.go | 601 +- model_device_type_request_airflow.go | 123 + model_device_type_request_subdevice_role.go | 113 + model_device_type_request_weight_unit.go | 117 + model_device_type_subdevice_role.go | 192 + model_device_type_subdevice_role_label.go | 111 + model_device_type_subdevice_role_value.go | 113 + model_device_type_weight_unit.go | 192 + model_device_type_weight_unit_label.go | 115 + model_device_type_weight_unit_value.go | 117 + model_device_with_config_context.go | 227 +- model_device_with_config_context_request.go | 176 +- model_encryption.go | 2 +- model_end.go | 2 +- model_end_1.go | 2 +- model_event.go | 121 + model_event_rule.go | 255 +- model_event_rule_action_type.go | 2 +- model_event_rule_action_type_label.go | 8 +- model_event_rule_action_type_value.go | 10 +- model_event_rule_event_types_inner.go | 121 + model_event_rule_request.go | 226 +- model_export_template.go | 65 +- model_export_template_request.go | 16 +- ...choice_sets_list_base_choices_parameter.go | 2 +- ...stom_fields_list_filter_logic_parameter.go | 2 +- ...ustom_fields_list_ui_editable_parameter.go | 2 +- ...custom_fields_list_ui_visible_parameter.go | 2 +- ...ustom_links_list_button_class_parameter.go | 34 +- model_fhrp_group.go | 367 +- model_fhrp_group_assignment.go | 32 +- model_fhrp_group_assignment_request.go | 20 +- model_fhrp_group_request.go | 240 +- model_front_port.go | 95 +- model_front_port_rear_port.go | 41 +- model_front_port_rear_port_request.go | 2 +- model_front_port_request.go | 28 +- model_front_port_template.go | 58 +- model_front_port_template_request.go | 48 +- model_front_port_type.go | 2 +- model_front_port_type_label.go | 112 +- model_front_port_type_value.go | 114 +- model_generic_object.go | 230 + model_generic_object_request.go | 2 +- model_group.go | 33 +- model_group_request.go | 2 +- model_ike_policy.go | 67 +- model_ike_policy_mode.go | 2 +- model_ike_policy_mode_label.go | 2 +- model_ike_policy_mode_value.go | 2 +- model_ike_policy_request.go | 38 +- model_ike_policy_version.go | 2 +- model_ike_policy_version_label.go | 2 +- model_ike_policy_version_value.go | 2 +- model_ike_proposal.go | 83 +- ...l_ike_proposal_authentication_algorithm.go | 2 +- ...proposal_authentication_algorithm_label.go | 2 +- ...proposal_authentication_algorithm_value.go | 2 +- model_ike_proposal_authentication_method.go | 2 +- ...ke_proposal_authentication_method_label.go | 2 +- ...ke_proposal_authentication_method_value.go | 2 +- model_ike_proposal_encryption_algorithm.go | 2 +- ...ike_proposal_encryption_algorithm_label.go | 2 +- ...ike_proposal_encryption_algorithm_value.go | 2 +- model_ike_proposal_group.go | 2 +- model_ike_proposal_group_label.go | 2 +- model_ike_proposal_group_value.go | 2 +- model_ike_proposal_request.go | 48 +- model_image_attachment.go | 2 +- model_image_attachment_request.go | 62 +- model_interface.go | 175 +- model_interface_duplex.go | 2 +- model_interface_duplex_label.go | 2 +- model_interface_duplex_value.go | 2 +- model_interface_mode.go | 2 +- model_interface_mode_label.go | 2 +- model_interface_mode_value.go | 2 +- model_interface_poe_mode.go | 2 +- model_interface_poe_mode_label.go | 2 +- model_interface_poe_mode_value.go | 2 +- model_interface_poe_type.go | 2 +- model_interface_poe_type_label.go | 2 +- model_interface_poe_type_value.go | 2 +- model_interface_request.go | 68 +- model_interface_request_duplex.go | 2 +- model_interface_rf_channel.go | 2 +- model_interface_rf_channel_label.go | 2 +- model_interface_rf_channel_value.go | 2 +- model_interface_rf_role.go | 2 +- model_interface_rf_role_label.go | 2 +- model_interface_rf_role_value.go | 2 +- model_interface_template.go | 32 +- model_interface_template_poe_mode.go | 2 +- model_interface_template_poe_type.go | 2 +- model_interface_template_request.go | 26 +- model_interface_template_request_poe_mode.go | 2 +- model_interface_template_request_poe_type.go | 2 +- model_interface_template_request_rf_role.go | 2 +- model_interface_template_rf_role.go | 2 +- model_interface_type.go | 2 +- model_interface_type_label.go | 6 +- model_interface_type_value.go | 8 +- model_inventory_item.go | 79 +- model_inventory_item_request.go | 44 +- model_inventory_item_role.go | 33 +- model_inventory_item_role_request.go | 2 +- model_inventory_item_template.go | 48 +- model_inventory_item_template_request.go | 42 +- model_ip_address.go | 633 +- model_ip_address_request.go | 469 +- model_ip_address_role.go | 192 + model_ip_address_role_label.go | 123 + model_ip_address_role_value.go | 125 + model_ip_address_status.go | 192 + model_ip_address_status_label.go | 117 + model_ip_address_status_value.go | 117 + model_ip_range.go | 69 +- model_ip_range_request.go | 52 +- model_ip_range_status.go | 2 +- model_ip_range_status_label.go | 2 +- model_ip_range_status_value.go | 2 +- model_ip_sec_policy.go | 33 +- model_ip_sec_policy_request.go | 2 +- model_ip_sec_profile.go | 53 +- model_ip_sec_profile_mode.go | 2 +- model_ip_sec_profile_mode_label.go | 2 +- model_ip_sec_profile_mode_value.go | 2 +- model_ip_sec_profile_request.go | 36 +- model_ip_sec_proposal.go | 33 +- model_ip_sec_proposal_request.go | 2 +- ...rvice_templates_list_protocol_parameter.go | 2 +- model_job.go | 69 +- model_journal_entry.go | 33 +- model_journal_entry_kind.go | 2 +- model_journal_entry_kind_label.go | 2 +- model_journal_entry_kind_value.go | 2 +- model_journal_entry_request.go | 2 +- model_l2_vpn.go | 355 +- model_l2_vpn_request.go | 255 +- model_l2_vpn_termination.go | 277 +- model_l2_vpn_termination_request.go | 146 +- model_location.go | 423 +- model_location_request.go | 284 +- model_location_status.go | 192 + model_location_status_label.go | 117 + model_location_status_value.go | 117 + model_manufacturer.go | 242 +- model_manufacturer_request.go | 82 +- model_module.go | 414 +- model_module_bay.go | 111 +- model_module_bay_request.go | 76 +- model_module_bay_template.go | 107 +- model_module_bay_template_request.go | 101 +- model_module_request.go | 316 +- model_module_status.go | 192 + model_module_status_label.go | 119 + model_module_status_value.go | 119 + model_module_type.go | 409 +- model_module_type_airflow.go | 192 + model_module_type_airflow_label.go | 119 + model_module_type_airflow_value.go | 121 + model_module_type_request.go | 311 +- model_module_type_request_airflow.go | 121 + model_nested_contact_group.go | 33 +- model_nested_contact_group_request.go | 2 +- model_nested_device.go | 33 +- model_nested_device_request.go | 2 +- model_nested_group.go | 33 +- model_nested_interface.go | 33 +- model_nested_interface_request.go | 2 +- model_nested_interface_template.go | 2 +- model_nested_interface_template_request.go | 2 +- model_nested_ip_address.go | 313 + model_nested_ip_address_request.go | 168 + model_nested_location.go | 342 + model_nested_location_request.go | 197 + model_nested_module_bay.go | 83 +- model_nested_module_bay_request.go | 52 +- model_nested_provider_account.go | 321 + model_nested_region.go | 33 +- model_nested_region_request.go | 2 +- model_nested_site_group.go | 33 +- model_nested_site_group_request.go | 2 +- model_nested_tag.go | 33 +- model_nested_tag_request.go | 2 +- model_nested_tenant_group.go | 33 +- model_nested_tenant_group_request.go | 2 +- model_nested_user.go | 39 +- model_nested_virtual_machine.go | 33 +- model_nested_virtual_machine_request.go | 2 +- model_nested_vm_interface.go | 33 +- model_nested_vm_interface_request.go | 2 +- model_nested_wireless_lan_group.go | 342 + model_nested_wireless_lan_group_request.go | 2 +- model_nested_wireless_link.go | 33 +- model_nested_wireless_link_request.go | 2 +- model_notification.go | 452 + model_notification_group.go | 395 + model_notification_group_request.go | 279 + model_notification_request.go | 303 + model_object_change.go | 43 +- model_object_change_action.go | 2 +- model_object_change_action_label.go | 2 +- model_object_change_action_value.go | 2 +- model_object_permission.go | 33 +- model_object_permission_request.go | 2 +- model_object_type.go | 2 +- model_paginated_aggregate_list.go | 2 +- model_paginated_asn_list.go | 2 +- model_paginated_asn_range_list.go | 2 +- model_paginated_bookmark_list.go | 2 +- model_paginated_cable_list.go | 2 +- model_paginated_cable_termination_list.go | 2 +- ...paginated_circuit_group_assignment_list.go | 291 + model_paginated_circuit_group_list.go | 291 + model_paginated_circuit_list.go | 2 +- model_paginated_circuit_termination_list.go | 2 +- model_paginated_circuit_type_list.go | 2 +- model_paginated_cluster_group_list.go | 2 +- model_paginated_cluster_list.go | 2 +- model_paginated_cluster_type_list.go | 2 +- model_paginated_config_context_list.go | 2 +- model_paginated_config_template_list.go | 2 +- model_paginated_console_port_list.go | 2 +- model_paginated_console_port_template_list.go | 2 +- model_paginated_console_server_port_list.go | 2 +- ...nated_console_server_port_template_list.go | 2 +- model_paginated_contact_assignment_list.go | 2 +- model_paginated_contact_group_list.go | 2 +- model_paginated_contact_list.go | 2 +- model_paginated_contact_role_list.go | 2 +- ..._paginated_custom_field_choice_set_list.go | 2 +- model_paginated_custom_field_list.go | 2 +- model_paginated_custom_link_list.go | 2 +- model_paginated_data_file_list.go | 2 +- model_paginated_data_source_list.go | 2 +- model_paginated_device_bay_list.go | 2 +- model_paginated_device_bay_template_list.go | 2 +- model_paginated_device_role_list.go | 2 +- model_paginated_device_type_list.go | 2 +- ...ginated_device_with_config_context_list.go | 2 +- model_paginated_event_rule_list.go | 2 +- model_paginated_export_template_list.go | 2 +- model_paginated_fhrp_group_assignment_list.go | 2 +- model_paginated_fhrp_group_list.go | 2 +- model_paginated_front_port_list.go | 2 +- model_paginated_front_port_template_list.go | 2 +- model_paginated_group_list.go | 2 +- model_paginated_ike_policy_list.go | 2 +- model_paginated_ike_proposal_list.go | 2 +- model_paginated_image_attachment_list.go | 2 +- model_paginated_interface_list.go | 2 +- model_paginated_interface_template_list.go | 2 +- model_paginated_inventory_item_list.go | 2 +- model_paginated_inventory_item_role_list.go | 2 +- ..._paginated_inventory_item_template_list.go | 2 +- model_paginated_ip_address_list.go | 2 +- model_paginated_ip_range_list.go | 2 +- model_paginated_ip_sec_policy_list.go | 2 +- model_paginated_ip_sec_profile_list.go | 2 +- model_paginated_ip_sec_proposal_list.go | 2 +- model_paginated_job_list.go | 2 +- model_paginated_journal_entry_list.go | 2 +- model_paginated_l2_vpn_list.go | 2 +- model_paginated_l2_vpn_termination_list.go | 2 +- model_paginated_location_list.go | 2 +- model_paginated_manufacturer_list.go | 2 +- model_paginated_module_bay_list.go | 2 +- model_paginated_module_bay_template_list.go | 2 +- model_paginated_module_list.go | 2 +- model_paginated_module_type_list.go | 2 +- model_paginated_notification_group_list.go | 291 + model_paginated_notification_list.go | 291 + model_paginated_object_change_list.go | 2 +- model_paginated_object_permission_list.go | 2 +- model_paginated_object_type_list.go | 2 +- model_paginated_platform_list.go | 2 +- model_paginated_power_feed_list.go | 2 +- model_paginated_power_outlet_list.go | 2 +- model_paginated_power_outlet_template_list.go | 2 +- model_paginated_power_panel_list.go | 2 +- model_paginated_power_port_list.go | 2 +- model_paginated_power_port_template_list.go | 2 +- model_paginated_prefix_list.go | 2 +- model_paginated_provider_account_list.go | 2 +- model_paginated_provider_list.go | 2 +- model_paginated_provider_network_list.go | 2 +- model_paginated_rack_list.go | 2 +- model_paginated_rack_reservation_list.go | 2 +- model_paginated_rack_role_list.go | 2 +- model_paginated_rack_type_list.go | 291 + model_paginated_rack_unit_list.go | 2 +- model_paginated_rear_port_list.go | 2 +- model_paginated_rear_port_template_list.go | 2 +- model_paginated_region_list.go | 2 +- model_paginated_rir_list.go | 2 +- model_paginated_role_list.go | 2 +- model_paginated_route_target_list.go | 2 +- model_paginated_saved_filter_list.go | 2 +- model_paginated_script_list.go | 2 +- model_paginated_service_list.go | 2 +- model_paginated_service_template_list.go | 2 +- model_paginated_site_group_list.go | 2 +- model_paginated_site_list.go | 2 +- model_paginated_subscription_list.go | 291 + model_paginated_tag_list.go | 2 +- model_paginated_tenant_group_list.go | 2 +- model_paginated_tenant_list.go | 2 +- model_paginated_token_list.go | 2 +- model_paginated_tunnel_group_list.go | 2 +- model_paginated_tunnel_list.go | 2 +- model_paginated_tunnel_termination_list.go | 2 +- model_paginated_user_list.go | 2 +- model_paginated_virtual_chassis_list.go | 2 +- ...l_paginated_virtual_device_context_list.go | 2 +- model_paginated_virtual_disk_list.go | 2 +- ...irtual_machine_with_config_context_list.go | 2 +- model_paginated_vlan_group_list.go | 2 +- model_paginated_vlan_list.go | 2 +- model_paginated_vm_interface_list.go | 2 +- model_paginated_vrf_list.go | 2 +- model_paginated_webhook_list.go | 2 +- model_paginated_wireless_lan_group_list.go | 2 +- model_paginated_wireless_lan_list.go | 2 +- model_paginated_wireless_link_list.go | 2 +- model_parent_child_status.go | 2 +- model_parent_child_status_1.go | 2 +- model_patched_asn_range_request.go | 40 +- model_patched_asn_request.go | 36 +- model_patched_bookmark_request.go | 18 +- model_patched_cable_termination_request.go | 2 +- model_patched_circuit_group_request.go | 350 + model_patched_circuit_termination_request.go | 40 +- model_patched_circuit_type_request.go | 2 +- model_patched_cluster_group_request.go | 2 +- model_patched_cluster_type_request.go | 2 +- model_patched_config_context_request.go | 50 +- model_patched_config_template_request.go | 18 +- model_patched_contact_request.go | 34 +- model_patched_contact_role_request.go | 2 +- model_patched_custom_link_request.go | 2 +- model_patched_dashboard_request.go | 2 +- model_patched_device_bay_request.go | 36 +- model_patched_device_bay_template_request.go | 14 +- model_patched_device_role_request.go | 22 +- model_patched_export_template_request.go | 16 +- ...l_patched_fhrp_group_assignment_request.go | 20 +- model_patched_fhrp_group_request.go | 30 +- model_patched_group_request.go | 2 +- model_patched_image_attachment_request.go | 76 +- model_patched_inventory_item_request.go | 44 +- model_patched_inventory_item_role_request.go | 2 +- ...patched_inventory_item_template_request.go | 42 +- model_patched_l2_vpn_termination_request.go | 14 +- model_patched_manufacturer_request.go | 2 +- model_patched_module_bay_request.go | 76 +- model_patched_module_bay_template_request.go | 91 +- model_patched_notification_group_request.go | 266 + model_patched_notification_request.go | 314 + model_patched_object_permission_request.go | 2 +- model_patched_platform_request.go | 36 +- model_patched_power_panel_request.go | 36 +- model_patched_provider_account_request.go | 14 +- model_patched_provider_network_request.go | 14 +- model_patched_provider_request.go | 2 +- model_patched_rack_reservation_request.go | 48 +- model_patched_rack_role_request.go | 2 +- model_patched_rir_request.go | 2 +- model_patched_role_request.go | 2 +- model_patched_route_target_request.go | 24 +- model_patched_saved_filter_request.go | 2 +- model_patched_script_input_request.go | 288 + model_patched_subscription_request.go | 229 + model_patched_tag_request.go | 2 +- model_patched_tenant_request.go | 26 +- model_patched_token_request.go | 20 +- model_patched_tunnel_group_request.go | 2 +- model_patched_user_request.go | 2 +- model_patched_virtual_disk_request.go | 24 +- model_patched_vlan_group_request.go | 86 +- model_patched_vrf_request.go | 16 +- model_patched_webhook_request.go | 2 +- model_patched_webhook_request_http_method.go | 2 +- model_patched_writable_aggregate_request.go | 38 +- model_patched_writable_cable_request.go | 68 +- ...itable_circuit_group_assignment_request.go | 266 + model_patched_writable_circuit_request.go | 115 +- model_patched_writable_cluster_request.go | 72 +- ...l_patched_writable_console_port_request.go | 28 +- ...hed_writable_console_port_request_speed.go | 2 +- ...ched_writable_console_port_request_type.go | 2 +- ..._writable_console_port_template_request.go | 26 +- ...ed_writable_console_server_port_request.go | 28 +- ...le_console_server_port_template_request.go | 26 +- ...hed_writable_contact_assignment_request.go | 46 +- ..._patched_writable_contact_group_request.go | 2 +- ...ritable_custom_field_choice_set_request.go | 2 +- ...m_field_choice_set_request_base_choices.go | 2 +- ...l_patched_writable_custom_field_request.go | 97 +- ...table_custom_field_request_filter_logic.go | 2 +- ...ched_writable_custom_field_request_type.go | 2 +- ...itable_custom_field_request_ui_editable.go | 2 +- ...ritable_custom_field_request_ui_visible.go | 2 +- model_patched_writable_data_source_request.go | 76 +- model_patched_writable_device_type_request.go | 62 +- ...able_device_with_config_context_request.go | 180 +- model_patched_writable_event_rule_request.go | 226 +- model_patched_writable_front_port_request.go | 28 +- ...ed_writable_front_port_template_request.go | 48 +- model_patched_writable_ike_policy_request.go | 2 +- ...atched_writable_ike_policy_request_mode.go | 2 +- ...hed_writable_ike_policy_request_version.go | 2 +- ...l_patched_writable_ike_proposal_request.go | 2 +- ...oposal_request_authentication_algorithm.go | 2 +- ...hed_writable_ike_proposal_request_group.go | 2 +- model_patched_writable_interface_request.go | 68 +- ...patched_writable_interface_request_mode.go | 2 +- ...hed_writable_interface_template_request.go | 26 +- model_patched_writable_ip_address_request.go | 26 +- ...atched_writable_ip_address_request_role.go | 2 +- ...ched_writable_ip_address_request_status.go | 2 +- model_patched_writable_ip_range_request.go | 38 +- ...atched_writable_ip_range_request_status.go | 2 +- ..._patched_writable_ip_sec_policy_request.go | 2 +- ...ritable_ip_sec_policy_request_pfs_group.go | 2 +- ...patched_writable_ip_sec_profile_request.go | 38 +- ...atched_writable_ip_sec_proposal_request.go | 2 +- ..._patched_writable_journal_entry_request.go | 2 +- model_patched_writable_l2_vpn_request.go | 44 +- model_patched_writable_location_request.go | 44 +- model_patched_writable_module_request.go | 42 +- model_patched_writable_module_type_request.go | 77 +- model_patched_writable_power_feed_request.go | 48 +- ...tched_writable_power_feed_request_phase.go | 2 +- ...ched_writable_power_feed_request_status.go | 2 +- ...ched_writable_power_feed_request_supply.go | 2 +- ...atched_writable_power_feed_request_type.go | 2 +- ...l_patched_writable_power_outlet_request.go | 40 +- ..._writable_power_outlet_request_feed_leg.go | 2 +- ...ched_writable_power_outlet_request_type.go | 6 +- ..._writable_power_outlet_template_request.go | 38 +- ...able_power_outlet_template_request_type.go | 6 +- model_patched_writable_power_port_request.go | 28 +- ...atched_writable_power_port_request_type.go | 6 +- ...ed_writable_power_port_template_request.go | 26 +- ...itable_power_port_template_request_type.go | 6 +- model_patched_writable_prefix_request.go | 62 +- ..._patched_writable_prefix_request_status.go | 2 +- model_patched_writable_rack_request.go | 201 +- ...l_patched_writable_rack_request_airflow.go | 113 + ...tched_writable_rack_request_form_factor.go | 123 + ...atched_writable_rack_request_outer_unit.go | 2 +- model_patched_writable_rack_request_status.go | 2 +- model_patched_writable_rack_request_width.go | 2 +- model_patched_writable_rack_type_request.go | 878 + ..._writable_rack_type_request_form_factor.go | 121 + model_patched_writable_rear_port_request.go | 28 +- ...hed_writable_rear_port_template_request.go | 26 +- model_patched_writable_region_request.go | 2 +- model_patched_writable_service_request.go | 26 +- ...tched_writable_service_request_protocol.go | 2 +- ...tched_writable_service_template_request.go | 2 +- model_patched_writable_site_group_request.go | 2 +- model_patched_writable_site_request.go | 54 +- ...l_patched_writable_tenant_group_request.go | 2 +- model_patched_writable_tunnel_request.go | 38 +- ...d_writable_tunnel_request_encapsulation.go | 2 +- ..._patched_writable_tunnel_request_status.go | 2 +- ...hed_writable_tunnel_termination_request.go | 26 +- ...ritable_tunnel_termination_request_role.go | 2 +- ...atched_writable_virtual_chassis_request.go | 2 +- ...writable_virtual_device_context_request.go | 50 +- ...e_virtual_device_context_request_status.go | 2 +- ...ual_machine_with_config_context_request.go | 171 +- model_patched_writable_vlan_request.go | 50 +- model_patched_writable_vlan_request_status.go | 2 +- ...l_patched_writable_vm_interface_request.go | 38 +- ...hed_writable_wireless_lan_group_request.go | 2 +- ...l_patched_writable_wireless_lan_request.go | 38 +- ...ed_writable_wireless_lan_request_status.go | 2 +- ..._patched_writable_wireless_link_request.go | 151 +- ...ble_wireless_link_request_distance_unit.go | 117 + model_platform.go | 282 +- model_platform_request.go | 178 +- model_power_feed.go | 141 +- model_power_feed_phase.go | 2 +- model_power_feed_phase_label.go | 2 +- model_power_feed_request.go | 48 +- model_power_feed_status.go | 2 +- model_power_feed_status_label.go | 2 +- model_power_feed_supply.go | 2 +- model_power_feed_supply_label.go | 2 +- model_power_feed_type.go | 2 +- model_power_feed_type_label.go | 2 +- model_power_outlet.go | 129 +- model_power_outlet_feed_leg.go | 2 +- model_power_outlet_feed_leg_label.go | 2 +- model_power_outlet_feed_leg_value.go | 2 +- model_power_outlet_request.go | 40 +- model_power_outlet_request_feed_leg.go | 2 +- model_power_outlet_request_type.go | 6 +- model_power_outlet_template.go | 56 +- model_power_outlet_template_request.go | 46 +- model_power_outlet_type.go | 2 +- model_power_outlet_type_label.go | 4 +- model_power_panel.go | 296 +- model_power_panel_request.go | 196 +- model_power_port.go | 659 +- model_power_port_request.go | 362 +- model_power_port_request_type.go | 317 + model_power_port_template.go | 357 +- model_power_port_template_request.go | 286 +- model_power_port_type.go | 192 + model_power_port_type_label.go | 315 + model_prefix.go | 105 +- model_prefix_request.go | 66 +- model_prefix_status.go | 2 +- model_prefix_status_label.go | 2 +- model_prefix_status_value.go | 2 +- model_provider.go | 295 +- model_provider_account.go | 43 +- model_provider_account_request.go | 150 +- model_provider_network.go | 283 +- model_provider_network_request.go | 185 +- model_provider_request.go | 193 +- model_rack.go | 1252 +- model_rack_airflow.go | 192 + model_rack_airflow_label.go | 111 + model_rack_face.go | 2 +- model_rack_face_1.go | 2 +- model_rack_form_factor.go | 192 + model_rack_form_factor_label.go | 121 + model_rack_outer_unit.go | 192 + model_rack_outer_unit_label.go | 111 + model_rack_request.go | 1087 +- model_rack_request_form_factor.go | 123 + model_rack_request_outer_unit.go | 113 + model_rack_reservation.go | 65 +- model_rack_reservation_request.go | 46 +- model_rack_role.go | 33 +- model_rack_role_request.go | 2 +- model_rack_status.go | 192 + model_rack_status_label.go | 117 + model_rack_type.go | 1084 + model_rack_type_request.go | 905 + model_rack_unit.go | 14 +- model_rack_unit_face.go | 2 +- model_rack_unit_face_value.go | 2 +- model_rack_width.go | 192 + model_rack_width_label.go | 115 + model_rack_width_value.go | 115 + model_rear_port.go | 95 +- model_rear_port_request.go | 28 +- model_rear_port_template.go | 314 +- model_rear_port_template_request.go | 245 +- model_region.go | 33 +- model_region_request.go | 2 +- model_rir.go | 222 +- model_rir_request.go | 120 +- model_role.go | 223 +- model_role_request.go | 119 +- model_route_target.go | 51 +- model_route_target_request.go | 24 +- model_saved_filter.go | 33 +- model_saved_filter_request.go | 2 +- model_schema_retrieve_format_parameter.go | 2 +- model_schema_retrieve_lang_parameter.go | 12 +- model_script.go | 71 +- model_script_input_request.go | 296 + model_service.go | 83 +- model_service_protocol.go | 2 +- model_service_protocol_label.go | 2 +- model_service_request.go | 26 +- model_service_template.go | 33 +- model_service_template_request.go | 2 +- model_site.go | 895 +- model_site_group.go | 33 +- model_site_group_request.go | 2 +- model_site_request.go | 597 +- model_subscription.go | 376 + model_subscription_request.go | 226 + model_tag.go | 33 +- model_tag_request.go | 2 +- model_tenant.go | 581 +- model_tenant_group.go | 33 +- model_tenant_group_request.go | 2 +- model_tenant_request.go | 167 +- model_termination.go | 2 +- model_termination_1.go | 2 +- model_token.go | 57 +- model_token_provision.go | 57 +- model_token_provision_request.go | 2 +- model_token_request.go | 20 +- model_tunnel.go | 496 +- model_tunnel_encapsulation.go | 192 + model_tunnel_encapsulation_label.go | 115 + model_tunnel_group.go | 33 +- model_tunnel_group_request.go | 2 +- model_tunnel_request.go | 369 +- model_tunnel_status.go | 192 + model_tunnel_status_label.go | 113 + model_tunnel_termination.go | 55 +- model_tunnel_termination_request.go | 26 +- model_tunnel_termination_role.go | 2 +- model_tunnel_termination_role_label.go | 2 +- model_user.go | 388 +- model_user_request.go | 382 +- model_virtual_chassis.go | 287 +- model_virtual_chassis_request.go | 150 +- model_virtual_device_context.go | 91 +- model_virtual_device_context_request.go | 50 +- model_virtual_device_context_status.go | 2 +- model_virtual_device_context_status_label.go | 2 +- model_virtual_disk.go | 43 +- model_virtual_disk_request.go | 24 +- model_virtual_machine_with_config_context.go | 220 +- ...ual_machine_with_config_context_request.go | 171 +- model_vlan.go | 516 +- model_vlan_group.go | 125 +- model_vlan_group_request.go | 86 +- model_vlan_request.go | 348 +- model_vm_interface.go | 115 +- model_vm_interface_request.go | 38 +- model_vrf.go | 410 +- model_vrf_request.go | 277 +- model_webhook.go | 33 +- model_webhook_request.go | 2 +- model_wireless_channel.go | 2 +- model_wireless_lan.go | 97 +- model_wireless_lan_auth_cipher.go | 2 +- model_wireless_lan_auth_cipher_label.go | 2 +- model_wireless_lan_auth_cipher_value.go | 2 +- model_wireless_lan_auth_type.go | 2 +- model_wireless_lan_auth_type_label.go | 2 +- model_wireless_lan_auth_type_value.go | 2 +- model_wireless_lan_group.go | 234 +- model_wireless_lan_group_request.go | 2 +- model_wireless_lan_request.go | 56 +- model_wireless_lan_status.go | 2 +- model_wireless_lan_status_label.go | 2 +- model_wireless_lan_status_value.go | 2 +- model_wireless_link.go | 199 +- model_wireless_link_distance_unit.go | 192 + model_wireless_link_distance_unit_label.go | 115 + model_wireless_link_request.go | 160 +- model_wireless_link_request_distance_unit.go | 117 + model_wireless_role.go | 2 +- ...less_links_list_distance_unit_parameter.go | 115 + model_writable_aggregate_request.go | 38 +- model_writable_cable_request.go | 68 +- ...itable_circuit_group_assignment_request.go | 271 + model_writable_circuit_request.go | 113 +- model_writable_cluster_request.go | 72 +- model_writable_console_port_request.go | 28 +- ..._writable_console_port_template_request.go | 26 +- model_writable_console_server_port_request.go | 28 +- ...le_console_server_port_template_request.go | 26 +- model_writable_contact_assignment_request.go | 46 +- model_writable_contact_group_request.go | 2 +- ...ritable_custom_field_choice_set_request.go | 2 +- model_writable_custom_field_request.go | 97 +- model_writable_data_source_request.go | 76 +- model_writable_device_type_request.go | 62 +- ...able_device_with_config_context_request.go | 176 +- model_writable_event_rule_request.go | 226 +- model_writable_front_port_request.go | 28 +- model_writable_front_port_template_request.go | 48 +- model_writable_ike_policy_request.go | 2 +- model_writable_ike_proposal_request.go | 2 +- model_writable_interface_request.go | 68 +- model_writable_interface_template_request.go | 26 +- model_writable_ip_address_request.go | 26 +- model_writable_ip_range_request.go | 38 +- model_writable_ip_sec_policy_request.go | 2 +- model_writable_ip_sec_profile_request.go | 36 +- model_writable_ip_sec_proposal_request.go | 2 +- model_writable_journal_entry_request.go | 2 +- model_writable_l2_vpn_request.go | 44 +- model_writable_location_request.go | 44 +- model_writable_module_request.go | 40 +- model_writable_module_type_request.go | 77 +- model_writable_power_feed_request.go | 48 +- model_writable_power_outlet_request.go | 40 +- ..._writable_power_outlet_template_request.go | 38 +- model_writable_power_port_request.go | 28 +- model_writable_power_port_template_request.go | 26 +- model_writable_prefix_request.go | 62 +- model_writable_rack_request.go | 201 +- model_writable_rack_type_request.go | 867 + model_writable_rear_port_request.go | 28 +- model_writable_rear_port_template_request.go | 26 +- model_writable_region_request.go | 2 +- model_writable_service_request.go | 26 +- model_writable_service_template_request.go | 2 +- model_writable_site_group_request.go | 2 +- model_writable_site_request.go | 54 +- model_writable_tenant_group_request.go | 2 +- model_writable_tunnel_request.go | 38 +- model_writable_tunnel_termination_request.go | 26 +- model_writable_virtual_chassis_request.go | 2 +- ...writable_virtual_device_context_request.go | 50 +- ...ual_machine_with_config_context_request.go | 171 +- model_writable_vlan_request.go | 50 +- model_writable_vm_interface_request.go | 38 +- model_writable_wireless_lan_group_request.go | 2 +- model_writable_wireless_lan_request.go | 38 +- model_writable_wireless_link_request.go | 149 +- response.go | 2 +- scripts/fetch-spec.sh | 2 +- utils.go | 2 +- 1612 files changed, 220890 insertions(+), 57215 deletions(-) create mode 100644 docs/BriefCable.md create mode 100644 docs/BriefCableRequest.md create mode 100644 docs/BriefCircuit.md create mode 100644 docs/BriefCircuitGroup.md create mode 100644 docs/BriefCircuitGroupAssignmentSerializer.md create mode 100644 docs/BriefCircuitGroupAssignmentSerializerPriority.md create mode 100644 docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md create mode 100644 docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md create mode 100644 docs/BriefCircuitGroupAssignmentSerializerRequest.md create mode 100644 docs/BriefCircuitGroupRequest.md create mode 100644 docs/BriefCircuitRequest.md create mode 100644 docs/BriefCircuitType.md create mode 100644 docs/BriefCircuitTypeRequest.md create mode 100644 docs/BriefCluster.md create mode 100644 docs/BriefClusterGroup.md create mode 100644 docs/BriefClusterGroupRequest.md create mode 100644 docs/BriefClusterRequest.md create mode 100644 docs/BriefClusterType.md create mode 100644 docs/BriefClusterTypeRequest.md create mode 100644 docs/BriefConfigTemplate.md create mode 100644 docs/BriefConfigTemplateRequest.md create mode 100644 docs/BriefContact.md create mode 100644 docs/BriefContactGroup.md create mode 100644 docs/BriefContactGroupRequest.md create mode 100644 docs/BriefContactRequest.md create mode 100644 docs/BriefContactRole.md create mode 100644 docs/BriefContactRoleRequest.md create mode 100644 docs/BriefCustomFieldChoiceSet.md create mode 100644 docs/BriefCustomFieldChoiceSetRequest.md create mode 100644 docs/BriefDataFile.md create mode 100644 docs/BriefDataSource.md create mode 100644 docs/BriefDataSourceRequest.md create mode 100644 docs/BriefDevice.md create mode 100644 docs/BriefDeviceRequest.md create mode 100644 docs/BriefDeviceRole.md create mode 100644 docs/BriefDeviceRoleRequest.md create mode 100644 docs/BriefDeviceType.md create mode 100644 docs/BriefDeviceTypeRequest.md create mode 100644 docs/BriefFHRPGroup.md create mode 100644 docs/BriefFHRPGroupProtocol.md create mode 100644 docs/BriefFHRPGroupRequest.md create mode 100644 docs/BriefIKEPolicy.md create mode 100644 docs/BriefIKEPolicyRequest.md create mode 100644 docs/BriefIPAddress.md create mode 100644 docs/BriefIPAddressRequest.md create mode 100644 docs/BriefIPSecPolicy.md create mode 100644 docs/BriefIPSecPolicyRequest.md create mode 100644 docs/BriefIPSecProfile.md create mode 100644 docs/BriefIPSecProfileRequest.md create mode 100644 docs/BriefInterface.md create mode 100644 docs/BriefInterfaceRequest.md create mode 100644 docs/BriefInventoryItemRole.md create mode 100644 docs/BriefInventoryItemRoleRequest.md create mode 100644 docs/BriefJob.md create mode 100644 docs/BriefJobRequest.md create mode 100644 docs/BriefJobStatus.md create mode 100644 docs/BriefJobStatusLabel.md create mode 100644 docs/BriefJobStatusValue.md create mode 100644 docs/BriefL2VPN.md create mode 100644 docs/BriefL2VPNRequest.md create mode 100644 docs/BriefL2VPNTermination.md create mode 100644 docs/BriefL2VPNTerminationRequest.md create mode 100644 docs/BriefL2VPNType.md create mode 100644 docs/BriefL2VPNTypeLabel.md create mode 100644 docs/BriefL2VPNTypeValue.md create mode 100644 docs/BriefLocation.md create mode 100644 docs/BriefLocationRequest.md create mode 100644 docs/BriefManufacturer.md create mode 100644 docs/BriefManufacturerRequest.md create mode 100644 docs/BriefModule.md create mode 100644 docs/BriefModuleRequest.md create mode 100644 docs/BriefModuleType.md create mode 100644 docs/BriefModuleTypeRequest.md create mode 100644 docs/BriefPlatform.md create mode 100644 docs/BriefPlatformRequest.md create mode 100644 docs/BriefPowerPanel.md create mode 100644 docs/BriefPowerPanelRequest.md create mode 100644 docs/BriefPowerPort.md create mode 100644 docs/BriefPowerPortRequest.md create mode 100644 docs/BriefPowerPortTemplate.md create mode 100644 docs/BriefPowerPortTemplateRequest.md create mode 100644 docs/BriefProvider.md create mode 100644 docs/BriefProviderAccount.md create mode 100644 docs/BriefProviderAccountRequest.md create mode 100644 docs/BriefProviderNetwork.md create mode 100644 docs/BriefProviderNetworkRequest.md create mode 100644 docs/BriefProviderRequest.md create mode 100644 docs/BriefRIR.md create mode 100644 docs/BriefRIRRequest.md create mode 100644 docs/BriefRack.md create mode 100644 docs/BriefRackRequest.md create mode 100644 docs/BriefRackRole.md create mode 100644 docs/BriefRackRoleRequest.md create mode 100644 docs/BriefRackType.md create mode 100644 docs/BriefRackTypeRequest.md create mode 100644 docs/BriefRearPortTemplate.md create mode 100644 docs/BriefRearPortTemplateRequest.md create mode 100644 docs/BriefRegion.md create mode 100644 docs/BriefRegionRequest.md create mode 100644 docs/BriefRole.md create mode 100644 docs/BriefRoleRequest.md create mode 100644 docs/BriefSite.md create mode 100644 docs/BriefSiteGroup.md create mode 100644 docs/BriefSiteGroupRequest.md create mode 100644 docs/BriefSiteRequest.md create mode 100644 docs/BriefTenant.md create mode 100644 docs/BriefTenantGroup.md create mode 100644 docs/BriefTenantGroupRequest.md create mode 100644 docs/BriefTenantRequest.md create mode 100644 docs/BriefTunnel.md create mode 100644 docs/BriefTunnelGroup.md create mode 100644 docs/BriefTunnelGroupRequest.md create mode 100644 docs/BriefTunnelRequest.md create mode 100644 docs/BriefUser.md create mode 100644 docs/BriefUserRequest.md create mode 100644 docs/BriefVLAN.md create mode 100644 docs/BriefVLANGroup.md create mode 100644 docs/BriefVLANGroupRequest.md create mode 100644 docs/BriefVLANRequest.md create mode 100644 docs/BriefVRF.md create mode 100644 docs/BriefVRFRequest.md create mode 100644 docs/BriefVirtualChassis.md create mode 100644 docs/BriefVirtualChassisRequest.md create mode 100644 docs/BriefVirtualMachine.md create mode 100644 docs/BriefVirtualMachineRequest.md create mode 100644 docs/BriefWirelessLANGroup.md create mode 100644 docs/BriefWirelessLANGroupRequest.md create mode 100644 docs/CableLengthUnit.md create mode 100644 docs/CableLengthUnitLabel.md create mode 100644 docs/CableLengthUnitValue.md create mode 100644 docs/CableRequestLengthUnit.md create mode 100644 docs/CableStatus.md create mode 100644 docs/CableStatusLabel.md create mode 100644 docs/CableStatusValue.md create mode 100644 docs/CableType.md create mode 100644 docs/CircuitCircuitTermination.md create mode 100644 docs/CircuitCircuitTerminationRequest.md create mode 100644 docs/CircuitGroup.md create mode 100644 docs/CircuitGroupAssignment.md create mode 100644 docs/CircuitGroupAssignmentRequest.md create mode 100644 docs/CircuitGroupRequest.md create mode 100644 docs/CircuitStatus.md create mode 100644 docs/CircuitStatusLabel.md create mode 100644 docs/CircuitStatusValue.md create mode 100644 docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md create mode 100644 docs/ClusterStatus.md create mode 100644 docs/ClusterStatusLabel.md create mode 100644 docs/ClusterStatusValue.md create mode 100644 docs/CoreObjectChangesListActionParameter.md create mode 100644 docs/DataSourceStatus.md create mode 100644 docs/DataSourceStatusLabel.md create mode 100644 docs/DataSourceStatusValue.md create mode 100644 docs/DataSourceType.md create mode 100644 docs/DataSourceTypeLabel.md create mode 100644 docs/DataSourceTypeValue.md create mode 100644 docs/DcimModuleTypesListAirflowParameter.md create mode 100644 docs/DcimRackTypesListOuterUnitParameter.md create mode 100644 docs/DcimRacksListAirflowParameter.md create mode 100644 docs/DeviceTypeAirflow.md create mode 100644 docs/DeviceTypeRequestAirflow.md create mode 100644 docs/DeviceTypeRequestSubdeviceRole.md create mode 100644 docs/DeviceTypeRequestWeightUnit.md create mode 100644 docs/DeviceTypeSubdeviceRole.md create mode 100644 docs/DeviceTypeSubdeviceRoleLabel.md create mode 100644 docs/DeviceTypeSubdeviceRoleValue.md create mode 100644 docs/DeviceTypeWeightUnit.md create mode 100644 docs/DeviceTypeWeightUnitLabel.md create mode 100644 docs/DeviceTypeWeightUnitValue.md create mode 100644 docs/Event.md create mode 100644 docs/EventRuleEventTypesInner.md create mode 100644 docs/GenericObject.md create mode 100644 docs/IPAddressRole.md create mode 100644 docs/IPAddressRoleLabel.md create mode 100644 docs/IPAddressRoleValue.md create mode 100644 docs/IPAddressStatus.md create mode 100644 docs/IPAddressStatusLabel.md create mode 100644 docs/IPAddressStatusValue.md create mode 100644 docs/LocationStatus.md create mode 100644 docs/LocationStatusLabel.md create mode 100644 docs/LocationStatusValue.md create mode 100644 docs/ModuleStatus.md create mode 100644 docs/ModuleStatusLabel.md create mode 100644 docs/ModuleStatusValue.md create mode 100644 docs/ModuleTypeAirflow.md create mode 100644 docs/ModuleTypeAirflowLabel.md create mode 100644 docs/ModuleTypeAirflowValue.md create mode 100644 docs/ModuleTypeRequestAirflow.md create mode 100644 docs/NestedIPAddress.md create mode 100644 docs/NestedIPAddressRequest.md create mode 100644 docs/NestedLocation.md create mode 100644 docs/NestedLocationRequest.md create mode 100644 docs/NestedProviderAccount.md create mode 100644 docs/NestedWirelessLANGroup.md create mode 100644 docs/Notification.md create mode 100644 docs/NotificationGroup.md create mode 100644 docs/NotificationGroupRequest.md create mode 100644 docs/NotificationRequest.md create mode 100644 docs/PaginatedCircuitGroupAssignmentList.md create mode 100644 docs/PaginatedCircuitGroupList.md create mode 100644 docs/PaginatedNotificationGroupList.md create mode 100644 docs/PaginatedNotificationList.md create mode 100644 docs/PaginatedRackTypeList.md create mode 100644 docs/PaginatedSubscriptionList.md create mode 100644 docs/PatchedCircuitGroupRequest.md create mode 100644 docs/PatchedNotificationGroupRequest.md create mode 100644 docs/PatchedNotificationRequest.md create mode 100644 docs/PatchedScriptInputRequest.md create mode 100644 docs/PatchedSubscriptionRequest.md create mode 100644 docs/PatchedWritableCircuitGroupAssignmentRequest.md create mode 100644 docs/PatchedWritableRackRequestAirflow.md create mode 100644 docs/PatchedWritableRackRequestFormFactor.md create mode 100644 docs/PatchedWritableRackTypeRequest.md create mode 100644 docs/PatchedWritableRackTypeRequestFormFactor.md create mode 100644 docs/PatchedWritableWirelessLinkRequestDistanceUnit.md create mode 100644 docs/PowerPortRequestType.md create mode 100644 docs/PowerPortType.md create mode 100644 docs/PowerPortTypeLabel.md create mode 100644 docs/RackAirflow.md create mode 100644 docs/RackAirflowLabel.md create mode 100644 docs/RackFormFactor.md create mode 100644 docs/RackFormFactorLabel.md create mode 100644 docs/RackOuterUnit.md create mode 100644 docs/RackOuterUnitLabel.md create mode 100644 docs/RackRequestFormFactor.md create mode 100644 docs/RackRequestOuterUnit.md create mode 100644 docs/RackStatus.md create mode 100644 docs/RackStatusLabel.md create mode 100644 docs/RackType.md create mode 100644 docs/RackTypeRequest.md create mode 100644 docs/RackWidth.md create mode 100644 docs/RackWidthLabel.md create mode 100644 docs/RackWidthValue.md create mode 100644 docs/ScriptInputRequest.md create mode 100644 docs/Subscription.md create mode 100644 docs/SubscriptionRequest.md create mode 100644 docs/TunnelEncapsulation.md create mode 100644 docs/TunnelEncapsulationLabel.md create mode 100644 docs/TunnelStatus.md create mode 100644 docs/TunnelStatusLabel.md create mode 100644 docs/WirelessLinkDistanceUnit.md create mode 100644 docs/WirelessLinkDistanceUnitLabel.md create mode 100644 docs/WirelessLinkRequestDistanceUnit.md create mode 100644 docs/WirelessWirelessLinksListDistanceUnitParameter.md create mode 100644 docs/WritableCircuitGroupAssignmentRequest.md create mode 100644 docs/WritableRackTypeRequest.md create mode 100644 model_brief_cable.go create mode 100644 model_brief_cable_request.go create mode 100644 model_brief_circuit.go create mode 100644 model_brief_circuit_group.go create mode 100644 model_brief_circuit_group_assignment_serializer_.go create mode 100644 model_brief_circuit_group_assignment_serializer__priority.go create mode 100644 model_brief_circuit_group_assignment_serializer__priority_label.go create mode 100644 model_brief_circuit_group_assignment_serializer__priority_value.go create mode 100644 model_brief_circuit_group_assignment_serializer_request.go create mode 100644 model_brief_circuit_group_request.go create mode 100644 model_brief_circuit_request.go create mode 100644 model_brief_circuit_type.go create mode 100644 model_brief_circuit_type_request.go create mode 100644 model_brief_cluster.go create mode 100644 model_brief_cluster_group.go create mode 100644 model_brief_cluster_group_request.go create mode 100644 model_brief_cluster_request.go create mode 100644 model_brief_cluster_type.go create mode 100644 model_brief_cluster_type_request.go create mode 100644 model_brief_config_template.go create mode 100644 model_brief_config_template_request.go create mode 100644 model_brief_contact.go create mode 100644 model_brief_contact_group.go create mode 100644 model_brief_contact_group_request.go create mode 100644 model_brief_contact_request.go create mode 100644 model_brief_contact_role.go create mode 100644 model_brief_contact_role_request.go create mode 100644 model_brief_custom_field_choice_set.go create mode 100644 model_brief_custom_field_choice_set_request.go create mode 100644 model_brief_data_file.go create mode 100644 model_brief_data_source.go create mode 100644 model_brief_data_source_request.go create mode 100644 model_brief_device.go create mode 100644 model_brief_device_request.go create mode 100644 model_brief_device_role.go create mode 100644 model_brief_device_role_request.go create mode 100644 model_brief_device_type.go create mode 100644 model_brief_device_type_request.go create mode 100644 model_brief_fhrp_group.go create mode 100644 model_brief_fhrp_group_protocol.go create mode 100644 model_brief_fhrp_group_request.go create mode 100644 model_brief_ike_policy.go create mode 100644 model_brief_ike_policy_request.go create mode 100644 model_brief_interface.go create mode 100644 model_brief_interface_request.go create mode 100644 model_brief_inventory_item_role.go create mode 100644 model_brief_inventory_item_role_request.go create mode 100644 model_brief_ip_address.go create mode 100644 model_brief_ip_address_request.go create mode 100644 model_brief_ip_sec_policy.go create mode 100644 model_brief_ip_sec_policy_request.go create mode 100644 model_brief_ip_sec_profile.go create mode 100644 model_brief_ip_sec_profile_request.go create mode 100644 model_brief_job.go create mode 100644 model_brief_job_request.go create mode 100644 model_brief_job_status.go create mode 100644 model_brief_job_status_label.go create mode 100644 model_brief_job_status_value.go create mode 100644 model_brief_l2_vpn.go create mode 100644 model_brief_l2_vpn_request.go create mode 100644 model_brief_l2_vpn_termination.go create mode 100644 model_brief_l2_vpn_termination_request.go create mode 100644 model_brief_l2_vpn_type.go create mode 100644 model_brief_l2_vpn_type_label.go create mode 100644 model_brief_l2_vpn_type_value.go create mode 100644 model_brief_location.go create mode 100644 model_brief_location_request.go create mode 100644 model_brief_manufacturer.go create mode 100644 model_brief_manufacturer_request.go create mode 100644 model_brief_module.go create mode 100644 model_brief_module_request.go create mode 100644 model_brief_module_type.go create mode 100644 model_brief_module_type_request.go create mode 100644 model_brief_platform.go create mode 100644 model_brief_platform_request.go create mode 100644 model_brief_power_panel.go create mode 100644 model_brief_power_panel_request.go create mode 100644 model_brief_power_port.go create mode 100644 model_brief_power_port_request.go create mode 100644 model_brief_power_port_template.go create mode 100644 model_brief_power_port_template_request.go create mode 100644 model_brief_provider.go create mode 100644 model_brief_provider_account.go create mode 100644 model_brief_provider_account_request.go create mode 100644 model_brief_provider_network.go create mode 100644 model_brief_provider_network_request.go create mode 100644 model_brief_provider_request.go create mode 100644 model_brief_rack.go create mode 100644 model_brief_rack_request.go create mode 100644 model_brief_rack_role.go create mode 100644 model_brief_rack_role_request.go create mode 100644 model_brief_rack_type.go create mode 100644 model_brief_rack_type_request.go create mode 100644 model_brief_rear_port_template.go create mode 100644 model_brief_rear_port_template_request.go create mode 100644 model_brief_region.go create mode 100644 model_brief_region_request.go create mode 100644 model_brief_rir.go create mode 100644 model_brief_rir_request.go create mode 100644 model_brief_role.go create mode 100644 model_brief_role_request.go create mode 100644 model_brief_site.go create mode 100644 model_brief_site_group.go create mode 100644 model_brief_site_group_request.go create mode 100644 model_brief_site_request.go create mode 100644 model_brief_tenant.go create mode 100644 model_brief_tenant_group.go create mode 100644 model_brief_tenant_group_request.go create mode 100644 model_brief_tenant_request.go create mode 100644 model_brief_tunnel.go create mode 100644 model_brief_tunnel_group.go create mode 100644 model_brief_tunnel_group_request.go create mode 100644 model_brief_tunnel_request.go create mode 100644 model_brief_user.go create mode 100644 model_brief_user_request.go create mode 100644 model_brief_virtual_chassis.go create mode 100644 model_brief_virtual_chassis_request.go create mode 100644 model_brief_virtual_machine.go create mode 100644 model_brief_virtual_machine_request.go create mode 100644 model_brief_vlan.go create mode 100644 model_brief_vlan_group.go create mode 100644 model_brief_vlan_group_request.go create mode 100644 model_brief_vlan_request.go create mode 100644 model_brief_vrf.go create mode 100644 model_brief_vrf_request.go create mode 100644 model_brief_wireless_lan_group.go create mode 100644 model_brief_wireless_lan_group_request.go create mode 100644 model_cable_length_unit.go create mode 100644 model_cable_length_unit_label.go create mode 100644 model_cable_length_unit_value.go create mode 100644 model_cable_request_length_unit.go create mode 100644 model_cable_status.go create mode 100644 model_cable_status_label.go create mode 100644 model_cable_status_value.go create mode 100644 model_cable_type.go create mode 100644 model_circuit_circuit_termination.go create mode 100644 model_circuit_circuit_termination_request.go create mode 100644 model_circuit_group.go create mode 100644 model_circuit_group_assignment.go create mode 100644 model_circuit_group_assignment_request.go create mode 100644 model_circuit_group_request.go create mode 100644 model_circuit_status.go create mode 100644 model_circuit_status_label.go create mode 100644 model_circuit_status_value.go create mode 100644 model_circuits_circuit_group_assignments_list_priority_parameter.go create mode 100644 model_cluster_status.go create mode 100644 model_cluster_status_label.go create mode 100644 model_cluster_status_value.go create mode 100644 model_core_object_changes_list_action_parameter.go create mode 100644 model_data_source_status.go create mode 100644 model_data_source_status_label.go create mode 100644 model_data_source_status_value.go create mode 100644 model_data_source_type.go create mode 100644 model_data_source_type_label.go create mode 100644 model_data_source_type_value.go create mode 100644 model_dcim_module_types_list_airflow_parameter.go create mode 100644 model_dcim_rack_types_list_outer_unit_parameter.go create mode 100644 model_dcim_racks_list_airflow_parameter.go create mode 100644 model_device_type_airflow.go create mode 100644 model_device_type_request_airflow.go create mode 100644 model_device_type_request_subdevice_role.go create mode 100644 model_device_type_request_weight_unit.go create mode 100644 model_device_type_subdevice_role.go create mode 100644 model_device_type_subdevice_role_label.go create mode 100644 model_device_type_subdevice_role_value.go create mode 100644 model_device_type_weight_unit.go create mode 100644 model_device_type_weight_unit_label.go create mode 100644 model_device_type_weight_unit_value.go create mode 100644 model_event.go create mode 100644 model_event_rule_event_types_inner.go create mode 100644 model_generic_object.go create mode 100644 model_ip_address_role.go create mode 100644 model_ip_address_role_label.go create mode 100644 model_ip_address_role_value.go create mode 100644 model_ip_address_status.go create mode 100644 model_ip_address_status_label.go create mode 100644 model_ip_address_status_value.go create mode 100644 model_location_status.go create mode 100644 model_location_status_label.go create mode 100644 model_location_status_value.go create mode 100644 model_module_status.go create mode 100644 model_module_status_label.go create mode 100644 model_module_status_value.go create mode 100644 model_module_type_airflow.go create mode 100644 model_module_type_airflow_label.go create mode 100644 model_module_type_airflow_value.go create mode 100644 model_module_type_request_airflow.go create mode 100644 model_nested_ip_address.go create mode 100644 model_nested_ip_address_request.go create mode 100644 model_nested_location.go create mode 100644 model_nested_location_request.go create mode 100644 model_nested_provider_account.go create mode 100644 model_nested_wireless_lan_group.go create mode 100644 model_notification.go create mode 100644 model_notification_group.go create mode 100644 model_notification_group_request.go create mode 100644 model_notification_request.go create mode 100644 model_paginated_circuit_group_assignment_list.go create mode 100644 model_paginated_circuit_group_list.go create mode 100644 model_paginated_notification_group_list.go create mode 100644 model_paginated_notification_list.go create mode 100644 model_paginated_rack_type_list.go create mode 100644 model_paginated_subscription_list.go create mode 100644 model_patched_circuit_group_request.go create mode 100644 model_patched_notification_group_request.go create mode 100644 model_patched_notification_request.go create mode 100644 model_patched_script_input_request.go create mode 100644 model_patched_subscription_request.go create mode 100644 model_patched_writable_circuit_group_assignment_request.go create mode 100644 model_patched_writable_rack_request_airflow.go create mode 100644 model_patched_writable_rack_request_form_factor.go create mode 100644 model_patched_writable_rack_type_request.go create mode 100644 model_patched_writable_rack_type_request_form_factor.go create mode 100644 model_patched_writable_wireless_link_request_distance_unit.go create mode 100644 model_power_port_request_type.go create mode 100644 model_power_port_type.go create mode 100644 model_power_port_type_label.go create mode 100644 model_rack_airflow.go create mode 100644 model_rack_airflow_label.go create mode 100644 model_rack_form_factor.go create mode 100644 model_rack_form_factor_label.go create mode 100644 model_rack_outer_unit.go create mode 100644 model_rack_outer_unit_label.go create mode 100644 model_rack_request_form_factor.go create mode 100644 model_rack_request_outer_unit.go create mode 100644 model_rack_status.go create mode 100644 model_rack_status_label.go create mode 100644 model_rack_type.go create mode 100644 model_rack_type_request.go create mode 100644 model_rack_width.go create mode 100644 model_rack_width_label.go create mode 100644 model_rack_width_value.go create mode 100644 model_script_input_request.go create mode 100644 model_subscription.go create mode 100644 model_subscription_request.go create mode 100644 model_tunnel_encapsulation.go create mode 100644 model_tunnel_encapsulation_label.go create mode 100644 model_tunnel_status.go create mode 100644 model_tunnel_status_label.go create mode 100644 model_wireless_link_distance_unit.go create mode 100644 model_wireless_link_distance_unit_label.go create mode 100644 model_wireless_link_request_distance_unit.go create mode 100644 model_wireless_wireless_links_list_distance_unit_parameter.go create mode 100644 model_writable_circuit_group_assignment_request.go create mode 100644 model_writable_rack_type_request.go diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 75c3406fa..b0e110764 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -31,22 +31,170 @@ docs/AvailablePrefix.md docs/AvailableVLAN.md docs/Bookmark.md docs/BookmarkRequest.md +docs/BriefCable.md +docs/BriefCableRequest.md +docs/BriefCircuit.md +docs/BriefCircuitGroup.md +docs/BriefCircuitGroupAssignmentSerializer.md +docs/BriefCircuitGroupAssignmentSerializerPriority.md +docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md +docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md +docs/BriefCircuitGroupAssignmentSerializerRequest.md +docs/BriefCircuitGroupRequest.md +docs/BriefCircuitRequest.md +docs/BriefCircuitType.md +docs/BriefCircuitTypeRequest.md +docs/BriefCluster.md +docs/BriefClusterGroup.md +docs/BriefClusterGroupRequest.md +docs/BriefClusterRequest.md +docs/BriefClusterType.md +docs/BriefClusterTypeRequest.md +docs/BriefConfigTemplate.md +docs/BriefConfigTemplateRequest.md +docs/BriefContact.md +docs/BriefContactGroup.md +docs/BriefContactGroupRequest.md +docs/BriefContactRequest.md +docs/BriefContactRole.md +docs/BriefContactRoleRequest.md +docs/BriefCustomFieldChoiceSet.md +docs/BriefCustomFieldChoiceSetRequest.md +docs/BriefDataFile.md +docs/BriefDataSource.md +docs/BriefDataSourceRequest.md +docs/BriefDevice.md +docs/BriefDeviceRequest.md +docs/BriefDeviceRole.md +docs/BriefDeviceRoleRequest.md +docs/BriefDeviceType.md +docs/BriefDeviceTypeRequest.md +docs/BriefFHRPGroup.md +docs/BriefFHRPGroupProtocol.md +docs/BriefFHRPGroupRequest.md +docs/BriefIKEPolicy.md +docs/BriefIKEPolicyRequest.md +docs/BriefIPAddress.md +docs/BriefIPAddressRequest.md +docs/BriefIPSecPolicy.md +docs/BriefIPSecPolicyRequest.md +docs/BriefIPSecProfile.md +docs/BriefIPSecProfileRequest.md +docs/BriefInterface.md +docs/BriefInterfaceRequest.md +docs/BriefInventoryItemRole.md +docs/BriefInventoryItemRoleRequest.md +docs/BriefJob.md +docs/BriefJobRequest.md +docs/BriefJobStatus.md +docs/BriefJobStatusLabel.md +docs/BriefJobStatusValue.md +docs/BriefL2VPN.md +docs/BriefL2VPNRequest.md +docs/BriefL2VPNTermination.md +docs/BriefL2VPNTerminationRequest.md +docs/BriefL2VPNType.md +docs/BriefL2VPNTypeLabel.md +docs/BriefL2VPNTypeValue.md +docs/BriefLocation.md +docs/BriefLocationRequest.md +docs/BriefManufacturer.md +docs/BriefManufacturerRequest.md +docs/BriefModule.md +docs/BriefModuleRequest.md +docs/BriefModuleType.md +docs/BriefModuleTypeRequest.md +docs/BriefPlatform.md +docs/BriefPlatformRequest.md +docs/BriefPowerPanel.md +docs/BriefPowerPanelRequest.md +docs/BriefPowerPort.md +docs/BriefPowerPortRequest.md +docs/BriefPowerPortTemplate.md +docs/BriefPowerPortTemplateRequest.md +docs/BriefProvider.md +docs/BriefProviderAccount.md +docs/BriefProviderAccountRequest.md +docs/BriefProviderNetwork.md +docs/BriefProviderNetworkRequest.md +docs/BriefProviderRequest.md +docs/BriefRIR.md +docs/BriefRIRRequest.md +docs/BriefRack.md +docs/BriefRackRequest.md +docs/BriefRackRole.md +docs/BriefRackRoleRequest.md +docs/BriefRackType.md +docs/BriefRackTypeRequest.md +docs/BriefRearPortTemplate.md +docs/BriefRearPortTemplateRequest.md +docs/BriefRegion.md +docs/BriefRegionRequest.md +docs/BriefRole.md +docs/BriefRoleRequest.md +docs/BriefSite.md +docs/BriefSiteGroup.md +docs/BriefSiteGroupRequest.md +docs/BriefSiteRequest.md +docs/BriefTenant.md +docs/BriefTenantGroup.md +docs/BriefTenantGroupRequest.md +docs/BriefTenantRequest.md +docs/BriefTunnel.md +docs/BriefTunnelGroup.md +docs/BriefTunnelGroupRequest.md +docs/BriefTunnelRequest.md +docs/BriefUser.md +docs/BriefUserRequest.md +docs/BriefVLAN.md +docs/BriefVLANGroup.md +docs/BriefVLANGroupRequest.md +docs/BriefVLANRequest.md +docs/BriefVRF.md +docs/BriefVRFRequest.md +docs/BriefVirtualChassis.md +docs/BriefVirtualChassisRequest.md +docs/BriefVirtualMachine.md +docs/BriefVirtualMachineRequest.md +docs/BriefWirelessLANGroup.md +docs/BriefWirelessLANGroupRequest.md docs/Cable.md +docs/CableLengthUnit.md +docs/CableLengthUnitLabel.md +docs/CableLengthUnitValue.md docs/CableRequest.md +docs/CableRequestLengthUnit.md +docs/CableStatus.md +docs/CableStatusLabel.md +docs/CableStatusValue.md docs/CableTermination.md docs/CableTerminationRequest.md +docs/CableType.md docs/Circuit.md +docs/CircuitCircuitTermination.md +docs/CircuitCircuitTerminationRequest.md +docs/CircuitGroup.md +docs/CircuitGroupAssignment.md +docs/CircuitGroupAssignmentRequest.md +docs/CircuitGroupRequest.md docs/CircuitRequest.md +docs/CircuitStatus.md +docs/CircuitStatusLabel.md +docs/CircuitStatusValue.md docs/CircuitTermination.md docs/CircuitTerminationRequest.md docs/CircuitType.md docs/CircuitTypeRequest.md docs/CircuitsAPI.md +docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md docs/CircuitsCircuitTerminationsListCableEndParameter.md docs/Cluster.md docs/ClusterGroup.md docs/ClusterGroupRequest.md docs/ClusterRequest.md +docs/ClusterStatus.md +docs/ClusterStatusLabel.md +docs/ClusterStatusValue.md docs/ClusterType.md docs/ClusterTypeRequest.md docs/ConfigContext.md @@ -70,9 +218,6 @@ docs/ConsoleServerPortTemplate.md docs/ConsoleServerPortTemplateRequest.md docs/Contact.md docs/ContactAssignment.md -docs/ContactAssignmentPriority.md -docs/ContactAssignmentPriorityLabel.md -docs/ContactAssignmentPriorityValue.md docs/ContactAssignmentRequest.md docs/ContactGroup.md docs/ContactGroupRequest.md @@ -80,6 +225,7 @@ docs/ContactRequest.md docs/ContactRole.md docs/ContactRoleRequest.md docs/CoreAPI.md +docs/CoreObjectChangesListActionParameter.md docs/CustomField.md docs/CustomFieldChoiceSet.md docs/CustomFieldChoiceSetBaseChoices.md @@ -107,7 +253,12 @@ docs/DashboardRequest.md docs/DataFile.md docs/DataSource.md docs/DataSourceRequest.md -docs/DataSourceRequestType.md +docs/DataSourceStatus.md +docs/DataSourceStatusLabel.md +docs/DataSourceStatusValue.md +docs/DataSourceType.md +docs/DataSourceTypeLabel.md +docs/DataSourceTypeValue.md docs/DcimAPI.md docs/DcimCablesListLengthUnitParameter.md docs/DcimConsolePortTemplatesListTypeParameter.md @@ -116,14 +267,16 @@ docs/DcimDeviceTypesListAirflowParameter.md docs/DcimDeviceTypesListWeightUnitParameter.md docs/DcimDevicesRenderConfigCreateFormatParameter.md docs/DcimInterfacesListModeParameter.md +docs/DcimModuleTypesListAirflowParameter.md docs/DcimPowerFeedsListPhaseParameter.md docs/DcimPowerFeedsListSupplyParameter.md docs/DcimPowerFeedsListTypeParameter.md docs/DcimPowerOutletTemplatesListTypeParameter.md docs/DcimPowerPortTemplatesListTypeParameter.md +docs/DcimRackTypesListOuterUnitParameter.md docs/DcimRacksElevationRetrieveFaceParameter.md docs/DcimRacksElevationRetrieveRenderParameter.md -docs/DcimRacksListOuterUnitParameter.md +docs/DcimRacksListAirflowParameter.md docs/Device.md docs/DeviceAirflow.md docs/DeviceAirflowLabel.md @@ -135,23 +288,34 @@ docs/DeviceBayTemplateRequest.md docs/DeviceFace.md docs/DeviceFaceLabel.md docs/DeviceFaceValue.md -docs/DeviceRequest.md docs/DeviceRole.md docs/DeviceRoleRequest.md docs/DeviceStatus.md docs/DeviceStatusLabel.md docs/DeviceStatusValue.md docs/DeviceType.md +docs/DeviceTypeAirflow.md docs/DeviceTypeRequest.md +docs/DeviceTypeRequestAirflow.md +docs/DeviceTypeRequestSubdeviceRole.md +docs/DeviceTypeRequestWeightUnit.md +docs/DeviceTypeSubdeviceRole.md +docs/DeviceTypeSubdeviceRoleLabel.md +docs/DeviceTypeSubdeviceRoleValue.md +docs/DeviceTypeWeightUnit.md +docs/DeviceTypeWeightUnitLabel.md +docs/DeviceTypeWeightUnitValue.md docs/DeviceWithConfigContext.md docs/DeviceWithConfigContextRequest.md docs/Encryption.md docs/End.md docs/End1.md +docs/Event.md docs/EventRule.md docs/EventRuleActionType.md docs/EventRuleActionTypeLabel.md docs/EventRuleActionTypeValue.md +docs/EventRuleEventTypesInner.md docs/EventRuleRequest.md docs/ExportTemplate.md docs/ExportTemplateRequest.md @@ -161,11 +325,9 @@ docs/ExtrasCustomFieldsListFilterLogicParameter.md docs/ExtrasCustomFieldsListUiEditableParameter.md docs/ExtrasCustomFieldsListUiVisibleParameter.md docs/ExtrasCustomLinksListButtonClassParameter.md -docs/ExtrasObjectChangesListActionParameter.md docs/FHRPGroup.md docs/FHRPGroupAssignment.md docs/FHRPGroupAssignmentRequest.md -docs/FHRPGroupProtocol.md docs/FHRPGroupRequest.md docs/FrontPort.md docs/FrontPortRearPort.md @@ -176,6 +338,7 @@ docs/FrontPortTemplateRequest.md docs/FrontPortType.md docs/FrontPortTypeLabel.md docs/FrontPortTypeValue.md +docs/GenericObject.md docs/GenericObjectRequest.md docs/Group.md docs/GroupRequest.md @@ -203,6 +366,12 @@ docs/IKEProposalGroupValue.md docs/IKEProposalRequest.md docs/IPAddress.md docs/IPAddressRequest.md +docs/IPAddressRole.md +docs/IPAddressRoleLabel.md +docs/IPAddressRoleValue.md +docs/IPAddressStatus.md +docs/IPAddressStatusLabel.md +docs/IPAddressStatusValue.md docs/IPRange.md docs/IPRangeRequest.md docs/IPRangeStatus.md @@ -260,10 +429,6 @@ docs/InventoryItemTemplateRequest.md docs/IpamAPI.md docs/IpamServiceTemplatesListProtocolParameter.md docs/Job.md -docs/JobRequest.md -docs/JobStatus.md -docs/JobStatusLabel.md -docs/JobStatusValue.md docs/JournalEntry.md docs/JournalEntryKind.md docs/JournalEntryKindLabel.md @@ -273,34 +438,44 @@ docs/L2VPN.md docs/L2VPNRequest.md docs/L2VPNTermination.md docs/L2VPNTerminationRequest.md -docs/L2VPNType.md -docs/L2VPNTypeLabel.md -docs/L2VPNTypeValue.md docs/Location.md docs/LocationRequest.md +docs/LocationStatus.md +docs/LocationStatusLabel.md +docs/LocationStatusValue.md docs/Manufacturer.md docs/ManufacturerRequest.md docs/Module.md docs/ModuleBay.md -docs/ModuleBayNestedModule.md -docs/ModuleBayNestedModuleRequest.md docs/ModuleBayRequest.md docs/ModuleBayTemplate.md docs/ModuleBayTemplateRequest.md docs/ModuleRequest.md +docs/ModuleStatus.md +docs/ModuleStatusLabel.md +docs/ModuleStatusValue.md docs/ModuleType.md +docs/ModuleTypeAirflow.md +docs/ModuleTypeAirflowLabel.md +docs/ModuleTypeAirflowValue.md docs/ModuleTypeRequest.md +docs/ModuleTypeRequestAirflow.md docs/NestedContactGroup.md docs/NestedContactGroupRequest.md docs/NestedDevice.md docs/NestedDeviceRequest.md docs/NestedGroup.md +docs/NestedIPAddress.md +docs/NestedIPAddressRequest.md docs/NestedInterface.md docs/NestedInterfaceRequest.md docs/NestedInterfaceTemplate.md docs/NestedInterfaceTemplateRequest.md +docs/NestedLocation.md +docs/NestedLocationRequest.md docs/NestedModuleBay.md docs/NestedModuleBayRequest.md +docs/NestedProviderAccount.md docs/NestedRegion.md docs/NestedRegionRequest.md docs/NestedSiteGroup.md @@ -314,9 +489,14 @@ docs/NestedVMInterface.md docs/NestedVMInterfaceRequest.md docs/NestedVirtualMachine.md docs/NestedVirtualMachineRequest.md +docs/NestedWirelessLANGroup.md docs/NestedWirelessLANGroupRequest.md docs/NestedWirelessLink.md docs/NestedWirelessLinkRequest.md +docs/Notification.md +docs/NotificationGroup.md +docs/NotificationGroupRequest.md +docs/NotificationRequest.md docs/ObjectChange.md docs/ObjectChangeAction.md docs/ObjectChangeActionLabel.md @@ -330,6 +510,8 @@ docs/PaginatedAggregateList.md docs/PaginatedBookmarkList.md docs/PaginatedCableList.md docs/PaginatedCableTerminationList.md +docs/PaginatedCircuitGroupAssignmentList.md +docs/PaginatedCircuitGroupList.md docs/PaginatedCircuitList.md docs/PaginatedCircuitTerminationList.md docs/PaginatedCircuitTypeList.md @@ -386,6 +568,8 @@ docs/PaginatedModuleBayList.md docs/PaginatedModuleBayTemplateList.md docs/PaginatedModuleList.md docs/PaginatedModuleTypeList.md +docs/PaginatedNotificationGroupList.md +docs/PaginatedNotificationList.md docs/PaginatedObjectChangeList.md docs/PaginatedObjectPermissionList.md docs/PaginatedObjectTypeList.md @@ -404,6 +588,7 @@ docs/PaginatedRIRList.md docs/PaginatedRackList.md docs/PaginatedRackReservationList.md docs/PaginatedRackRoleList.md +docs/PaginatedRackTypeList.md docs/PaginatedRackUnitList.md docs/PaginatedRearPortList.md docs/PaginatedRearPortTemplateList.md @@ -416,6 +601,7 @@ docs/PaginatedServiceList.md docs/PaginatedServiceTemplateList.md docs/PaginatedSiteGroupList.md docs/PaginatedSiteList.md +docs/PaginatedSubscriptionList.md docs/PaginatedTagList.md docs/PaginatedTenantGroupList.md docs/PaginatedTenantList.md @@ -442,6 +628,7 @@ docs/PatchedASNRangeRequest.md docs/PatchedASNRequest.md docs/PatchedBookmarkRequest.md docs/PatchedCableTerminationRequest.md +docs/PatchedCircuitGroupRequest.md docs/PatchedCircuitTerminationRequest.md docs/PatchedCircuitTypeRequest.md docs/PatchedClusterGroupRequest.md @@ -467,6 +654,8 @@ docs/PatchedL2VPNTerminationRequest.md docs/PatchedManufacturerRequest.md docs/PatchedModuleBayRequest.md docs/PatchedModuleBayTemplateRequest.md +docs/PatchedNotificationGroupRequest.md +docs/PatchedNotificationRequest.md docs/PatchedObjectPermissionRequest.md docs/PatchedPlatformRequest.md docs/PatchedPowerPanelRequest.md @@ -479,6 +668,8 @@ docs/PatchedRackRoleRequest.md docs/PatchedRoleRequest.md docs/PatchedRouteTargetRequest.md docs/PatchedSavedFilterRequest.md +docs/PatchedScriptInputRequest.md +docs/PatchedSubscriptionRequest.md docs/PatchedTagRequest.md docs/PatchedTenantRequest.md docs/PatchedTokenRequest.md @@ -491,13 +682,9 @@ docs/PatchedWebhookRequest.md docs/PatchedWebhookRequestHttpMethod.md docs/PatchedWritableAggregateRequest.md docs/PatchedWritableCableRequest.md -docs/PatchedWritableCableRequestLengthUnit.md -docs/PatchedWritableCableRequestStatus.md -docs/PatchedWritableCableRequestType.md +docs/PatchedWritableCircuitGroupAssignmentRequest.md docs/PatchedWritableCircuitRequest.md -docs/PatchedWritableCircuitRequestStatus.md docs/PatchedWritableClusterRequest.md -docs/PatchedWritableClusterRequestStatus.md docs/PatchedWritableConsolePortRequest.md docs/PatchedWritableConsolePortRequestSpeed.md docs/PatchedWritableConsolePortRequestType.md @@ -515,7 +702,6 @@ docs/PatchedWritableCustomFieldRequestUiEditable.md docs/PatchedWritableCustomFieldRequestUiVisible.md docs/PatchedWritableDataSourceRequest.md docs/PatchedWritableDeviceTypeRequest.md -docs/PatchedWritableDeviceTypeRequestWeightUnit.md docs/PatchedWritableDeviceWithConfigContextRequest.md docs/PatchedWritableEventRuleRequest.md docs/PatchedWritableFrontPortRequest.md @@ -541,9 +727,7 @@ docs/PatchedWritableInterfaceTemplateRequest.md docs/PatchedWritableJournalEntryRequest.md docs/PatchedWritableL2VPNRequest.md docs/PatchedWritableLocationRequest.md -docs/PatchedWritableLocationRequestStatus.md docs/PatchedWritableModuleRequest.md -docs/PatchedWritableModuleRequestStatus.md docs/PatchedWritableModuleTypeRequest.md docs/PatchedWritablePowerFeedRequest.md docs/PatchedWritablePowerFeedRequestPhase.md @@ -562,10 +746,13 @@ docs/PatchedWritablePowerPortTemplateRequestType.md docs/PatchedWritablePrefixRequest.md docs/PatchedWritablePrefixRequestStatus.md docs/PatchedWritableRackRequest.md +docs/PatchedWritableRackRequestAirflow.md +docs/PatchedWritableRackRequestFormFactor.md docs/PatchedWritableRackRequestOuterUnit.md docs/PatchedWritableRackRequestStatus.md -docs/PatchedWritableRackRequestType.md docs/PatchedWritableRackRequestWidth.md +docs/PatchedWritableRackTypeRequest.md +docs/PatchedWritableRackTypeRequestFormFactor.md docs/PatchedWritableRearPortRequest.md docs/PatchedWritableRearPortTemplateRequest.md docs/PatchedWritableRegionRequest.md @@ -591,6 +778,7 @@ docs/PatchedWritableWirelessLANGroupRequest.md docs/PatchedWritableWirelessLANRequest.md docs/PatchedWritableWirelessLANRequestStatus.md docs/PatchedWritableWirelessLinkRequest.md +docs/PatchedWritableWirelessLinkRequestDistanceUnit.md docs/Platform.md docs/PlatformRequest.md docs/PowerFeed.md @@ -618,8 +806,11 @@ docs/PowerPanel.md docs/PowerPanelRequest.md docs/PowerPort.md docs/PowerPortRequest.md +docs/PowerPortRequestType.md docs/PowerPortTemplate.md docs/PowerPortTemplateRequest.md +docs/PowerPortType.md +docs/PowerPortTypeLabel.md docs/Prefix.md docs/PrefixRequest.md docs/PrefixStatus.md @@ -634,16 +825,31 @@ docs/ProviderRequest.md docs/RIR.md docs/RIRRequest.md docs/Rack.md +docs/RackAirflow.md +docs/RackAirflowLabel.md docs/RackFace.md docs/RackFace1.md +docs/RackFormFactor.md +docs/RackFormFactorLabel.md +docs/RackOuterUnit.md +docs/RackOuterUnitLabel.md docs/RackRequest.md +docs/RackRequestFormFactor.md +docs/RackRequestOuterUnit.md docs/RackReservation.md docs/RackReservationRequest.md docs/RackRole.md docs/RackRoleRequest.md +docs/RackStatus.md +docs/RackStatusLabel.md +docs/RackType.md +docs/RackTypeRequest.md docs/RackUnit.md docs/RackUnitFace.md docs/RackUnitFaceValue.md +docs/RackWidth.md +docs/RackWidthLabel.md +docs/RackWidthValue.md docs/RearPort.md docs/RearPortRequest.md docs/RearPortTemplate.md @@ -660,6 +866,7 @@ docs/SchemaAPI.md docs/SchemaRetrieveFormatParameter.md docs/SchemaRetrieveLangParameter.md docs/Script.md +docs/ScriptInputRequest.md docs/Service.md docs/ServiceProtocol.md docs/ServiceProtocolLabel.md @@ -671,10 +878,11 @@ docs/SiteGroup.md docs/SiteGroupRequest.md docs/SiteRequest.md docs/StatusAPI.md +docs/Subscription.md +docs/SubscriptionRequest.md docs/Tag.md docs/TagRequest.md docs/TenancyAPI.md -docs/TenancyContactAssignmentsListPriorityParameter.md docs/Tenant.md docs/TenantGroup.md docs/TenantGroupRequest.md @@ -686,9 +894,13 @@ docs/TokenProvision.md docs/TokenProvisionRequest.md docs/TokenRequest.md docs/Tunnel.md +docs/TunnelEncapsulation.md +docs/TunnelEncapsulationLabel.md docs/TunnelGroup.md docs/TunnelGroupRequest.md docs/TunnelRequest.md +docs/TunnelStatus.md +docs/TunnelStatusLabel.md docs/TunnelTermination.md docs/TunnelTerminationRequest.md docs/TunnelTerminationRole.md @@ -712,12 +924,8 @@ docs/VirtualDeviceContextStatus.md docs/VirtualDeviceContextStatusLabel.md docs/VirtualDisk.md docs/VirtualDiskRequest.md -docs/VirtualMachine.md -docs/VirtualMachineRequest.md docs/VirtualMachineWithConfigContext.md docs/VirtualMachineWithConfigContextRequest.md -docs/VirtualMachineWithConfigContextStatus.md -docs/VirtualMachineWithConfigContextStatusLabel.md docs/VirtualizationAPI.md docs/VpnAPI.md docs/Webhook.md @@ -738,12 +946,15 @@ docs/WirelessLANStatus.md docs/WirelessLANStatusLabel.md docs/WirelessLANStatusValue.md docs/WirelessLink.md +docs/WirelessLinkDistanceUnit.md +docs/WirelessLinkDistanceUnitLabel.md docs/WirelessLinkRequest.md -docs/WirelessLinkStatus.md -docs/WirelessLinkStatusLabel.md +docs/WirelessLinkRequestDistanceUnit.md docs/WirelessRole.md +docs/WirelessWirelessLinksListDistanceUnitParameter.md docs/WritableAggregateRequest.md docs/WritableCableRequest.md +docs/WritableCircuitGroupAssignmentRequest.md docs/WritableCircuitRequest.md docs/WritableClusterRequest.md docs/WritableConsolePortRequest.md @@ -781,6 +992,7 @@ docs/WritablePowerPortRequest.md docs/WritablePowerPortTemplateRequest.md docs/WritablePrefixRequest.md docs/WritableRackRequest.md +docs/WritableRackTypeRequest.md docs/WritableRearPortRequest.md docs/WritableRearPortTemplateRequest.md docs/WritableRegionRequest.md @@ -820,21 +1032,169 @@ model_available_prefix.go model_available_vlan.go model_bookmark.go model_bookmark_request.go +model_brief_cable.go +model_brief_cable_request.go +model_brief_circuit.go +model_brief_circuit_group.go +model_brief_circuit_group_assignment_serializer_.go +model_brief_circuit_group_assignment_serializer__priority.go +model_brief_circuit_group_assignment_serializer__priority_label.go +model_brief_circuit_group_assignment_serializer__priority_value.go +model_brief_circuit_group_assignment_serializer_request.go +model_brief_circuit_group_request.go +model_brief_circuit_request.go +model_brief_circuit_type.go +model_brief_circuit_type_request.go +model_brief_cluster.go +model_brief_cluster_group.go +model_brief_cluster_group_request.go +model_brief_cluster_request.go +model_brief_cluster_type.go +model_brief_cluster_type_request.go +model_brief_config_template.go +model_brief_config_template_request.go +model_brief_contact.go +model_brief_contact_group.go +model_brief_contact_group_request.go +model_brief_contact_request.go +model_brief_contact_role.go +model_brief_contact_role_request.go +model_brief_custom_field_choice_set.go +model_brief_custom_field_choice_set_request.go +model_brief_data_file.go +model_brief_data_source.go +model_brief_data_source_request.go +model_brief_device.go +model_brief_device_request.go +model_brief_device_role.go +model_brief_device_role_request.go +model_brief_device_type.go +model_brief_device_type_request.go +model_brief_fhrp_group.go +model_brief_fhrp_group_protocol.go +model_brief_fhrp_group_request.go +model_brief_ike_policy.go +model_brief_ike_policy_request.go +model_brief_interface.go +model_brief_interface_request.go +model_brief_inventory_item_role.go +model_brief_inventory_item_role_request.go +model_brief_ip_address.go +model_brief_ip_address_request.go +model_brief_ip_sec_policy.go +model_brief_ip_sec_policy_request.go +model_brief_ip_sec_profile.go +model_brief_ip_sec_profile_request.go +model_brief_job.go +model_brief_job_request.go +model_brief_job_status.go +model_brief_job_status_label.go +model_brief_job_status_value.go +model_brief_l2_vpn.go +model_brief_l2_vpn_request.go +model_brief_l2_vpn_termination.go +model_brief_l2_vpn_termination_request.go +model_brief_l2_vpn_type.go +model_brief_l2_vpn_type_label.go +model_brief_l2_vpn_type_value.go +model_brief_location.go +model_brief_location_request.go +model_brief_manufacturer.go +model_brief_manufacturer_request.go +model_brief_module.go +model_brief_module_request.go +model_brief_module_type.go +model_brief_module_type_request.go +model_brief_platform.go +model_brief_platform_request.go +model_brief_power_panel.go +model_brief_power_panel_request.go +model_brief_power_port.go +model_brief_power_port_request.go +model_brief_power_port_template.go +model_brief_power_port_template_request.go +model_brief_provider.go +model_brief_provider_account.go +model_brief_provider_account_request.go +model_brief_provider_network.go +model_brief_provider_network_request.go +model_brief_provider_request.go +model_brief_rack.go +model_brief_rack_request.go +model_brief_rack_role.go +model_brief_rack_role_request.go +model_brief_rack_type.go +model_brief_rack_type_request.go +model_brief_rear_port_template.go +model_brief_rear_port_template_request.go +model_brief_region.go +model_brief_region_request.go +model_brief_rir.go +model_brief_rir_request.go +model_brief_role.go +model_brief_role_request.go +model_brief_site.go +model_brief_site_group.go +model_brief_site_group_request.go +model_brief_site_request.go +model_brief_tenant.go +model_brief_tenant_group.go +model_brief_tenant_group_request.go +model_brief_tenant_request.go +model_brief_tunnel.go +model_brief_tunnel_group.go +model_brief_tunnel_group_request.go +model_brief_tunnel_request.go +model_brief_user.go +model_brief_user_request.go +model_brief_virtual_chassis.go +model_brief_virtual_chassis_request.go +model_brief_virtual_machine.go +model_brief_virtual_machine_request.go +model_brief_vlan.go +model_brief_vlan_group.go +model_brief_vlan_group_request.go +model_brief_vlan_request.go +model_brief_vrf.go +model_brief_vrf_request.go +model_brief_wireless_lan_group.go +model_brief_wireless_lan_group_request.go model_cable.go +model_cable_length_unit.go +model_cable_length_unit_label.go +model_cable_length_unit_value.go model_cable_request.go +model_cable_request_length_unit.go +model_cable_status.go +model_cable_status_label.go +model_cable_status_value.go model_cable_termination.go model_cable_termination_request.go +model_cable_type.go model_circuit.go +model_circuit_circuit_termination.go +model_circuit_circuit_termination_request.go +model_circuit_group.go +model_circuit_group_assignment.go +model_circuit_group_assignment_request.go +model_circuit_group_request.go model_circuit_request.go +model_circuit_status.go +model_circuit_status_label.go +model_circuit_status_value.go model_circuit_termination.go model_circuit_termination_request.go model_circuit_type.go model_circuit_type_request.go +model_circuits_circuit_group_assignments_list_priority_parameter.go model_circuits_circuit_terminations_list_cable_end_parameter.go model_cluster.go model_cluster_group.go model_cluster_group_request.go model_cluster_request.go +model_cluster_status.go +model_cluster_status_label.go +model_cluster_status_value.go model_cluster_type.go model_cluster_type_request.go model_config_context.go @@ -858,15 +1218,13 @@ model_console_server_port_template.go model_console_server_port_template_request.go model_contact.go model_contact_assignment.go -model_contact_assignment_priority.go -model_contact_assignment_priority_label.go -model_contact_assignment_priority_value.go model_contact_assignment_request.go model_contact_group.go model_contact_group_request.go model_contact_request.go model_contact_role.go model_contact_role_request.go +model_core_object_changes_list_action_parameter.go model_custom_field.go model_custom_field_choice_set.go model_custom_field_choice_set_base_choices.go @@ -894,7 +1252,12 @@ model_dashboard_request.go model_data_file.go model_data_source.go model_data_source_request.go -model_data_source_request_type.go +model_data_source_status.go +model_data_source_status_label.go +model_data_source_status_value.go +model_data_source_type.go +model_data_source_type_label.go +model_data_source_type_value.go model_dcim_cables_list_length_unit_parameter.go model_dcim_console_port_templates_list_type_parameter.go model_dcim_console_ports_list_speed_parameter.go @@ -902,14 +1265,16 @@ model_dcim_device_types_list_airflow_parameter.go model_dcim_device_types_list_weight_unit_parameter.go model_dcim_devices_render_config_create_format_parameter.go model_dcim_interfaces_list_mode_parameter.go +model_dcim_module_types_list_airflow_parameter.go model_dcim_power_feeds_list_phase_parameter.go model_dcim_power_feeds_list_supply_parameter.go model_dcim_power_feeds_list_type_parameter.go model_dcim_power_outlet_templates_list_type_parameter.go model_dcim_power_port_templates_list_type_parameter.go +model_dcim_rack_types_list_outer_unit_parameter.go model_dcim_racks_elevation_retrieve_face_parameter.go model_dcim_racks_elevation_retrieve_render_parameter.go -model_dcim_racks_list_outer_unit_parameter.go +model_dcim_racks_list_airflow_parameter.go model_device.go model_device_airflow.go model_device_airflow_label.go @@ -921,23 +1286,34 @@ model_device_bay_template_request.go model_device_face.go model_device_face_label.go model_device_face_value.go -model_device_request.go model_device_role.go model_device_role_request.go model_device_status.go model_device_status_label.go model_device_status_value.go model_device_type.go +model_device_type_airflow.go model_device_type_request.go +model_device_type_request_airflow.go +model_device_type_request_subdevice_role.go +model_device_type_request_weight_unit.go +model_device_type_subdevice_role.go +model_device_type_subdevice_role_label.go +model_device_type_subdevice_role_value.go +model_device_type_weight_unit.go +model_device_type_weight_unit_label.go +model_device_type_weight_unit_value.go model_device_with_config_context.go model_device_with_config_context_request.go model_encryption.go model_end.go model_end_1.go +model_event.go model_event_rule.go model_event_rule_action_type.go model_event_rule_action_type_label.go model_event_rule_action_type_value.go +model_event_rule_event_types_inner.go model_event_rule_request.go model_export_template.go model_export_template_request.go @@ -946,11 +1322,9 @@ model_extras_custom_fields_list_filter_logic_parameter.go model_extras_custom_fields_list_ui_editable_parameter.go model_extras_custom_fields_list_ui_visible_parameter.go model_extras_custom_links_list_button_class_parameter.go -model_extras_object_changes_list_action_parameter.go model_fhrp_group.go model_fhrp_group_assignment.go model_fhrp_group_assignment_request.go -model_fhrp_group_protocol.go model_fhrp_group_request.go model_front_port.go model_front_port_rear_port.go @@ -961,6 +1335,7 @@ model_front_port_template_request.go model_front_port_type.go model_front_port_type_label.go model_front_port_type_value.go +model_generic_object.go model_generic_object_request.go model_group.go model_group_request.go @@ -1028,6 +1403,12 @@ model_inventory_item_template.go model_inventory_item_template_request.go model_ip_address.go model_ip_address_request.go +model_ip_address_role.go +model_ip_address_role_label.go +model_ip_address_role_value.go +model_ip_address_status.go +model_ip_address_status_label.go +model_ip_address_status_value.go model_ip_range.go model_ip_range_request.go model_ip_range_status.go @@ -1044,10 +1425,6 @@ model_ip_sec_proposal.go model_ip_sec_proposal_request.go model_ipam_service_templates_list_protocol_parameter.go model_job.go -model_job_request.go -model_job_status.go -model_job_status_label.go -model_job_status_value.go model_journal_entry.go model_journal_entry_kind.go model_journal_entry_kind_label.go @@ -1057,23 +1434,28 @@ model_l2_vpn.go model_l2_vpn_request.go model_l2_vpn_termination.go model_l2_vpn_termination_request.go -model_l2_vpn_type.go -model_l2_vpn_type_label.go -model_l2_vpn_type_value.go model_location.go model_location_request.go +model_location_status.go +model_location_status_label.go +model_location_status_value.go model_manufacturer.go model_manufacturer_request.go model_module.go model_module_bay.go -model_module_bay_nested_module.go -model_module_bay_nested_module_request.go model_module_bay_request.go model_module_bay_template.go model_module_bay_template_request.go model_module_request.go +model_module_status.go +model_module_status_label.go +model_module_status_value.go model_module_type.go +model_module_type_airflow.go +model_module_type_airflow_label.go +model_module_type_airflow_value.go model_module_type_request.go +model_module_type_request_airflow.go model_nested_contact_group.go model_nested_contact_group_request.go model_nested_device.go @@ -1083,8 +1465,13 @@ model_nested_interface.go model_nested_interface_request.go model_nested_interface_template.go model_nested_interface_template_request.go +model_nested_ip_address.go +model_nested_ip_address_request.go +model_nested_location.go +model_nested_location_request.go model_nested_module_bay.go model_nested_module_bay_request.go +model_nested_provider_account.go model_nested_region.go model_nested_region_request.go model_nested_site_group.go @@ -1098,9 +1485,14 @@ model_nested_virtual_machine.go model_nested_virtual_machine_request.go model_nested_vm_interface.go model_nested_vm_interface_request.go +model_nested_wireless_lan_group.go model_nested_wireless_lan_group_request.go model_nested_wireless_link.go model_nested_wireless_link_request.go +model_notification.go +model_notification_group.go +model_notification_group_request.go +model_notification_request.go model_object_change.go model_object_change_action.go model_object_change_action_label.go @@ -1114,6 +1506,8 @@ model_paginated_asn_range_list.go model_paginated_bookmark_list.go model_paginated_cable_list.go model_paginated_cable_termination_list.go +model_paginated_circuit_group_assignment_list.go +model_paginated_circuit_group_list.go model_paginated_circuit_list.go model_paginated_circuit_termination_list.go model_paginated_circuit_type_list.go @@ -1170,6 +1564,8 @@ model_paginated_module_bay_list.go model_paginated_module_bay_template_list.go model_paginated_module_list.go model_paginated_module_type_list.go +model_paginated_notification_group_list.go +model_paginated_notification_list.go model_paginated_object_change_list.go model_paginated_object_permission_list.go model_paginated_object_type_list.go @@ -1187,6 +1583,7 @@ model_paginated_provider_network_list.go model_paginated_rack_list.go model_paginated_rack_reservation_list.go model_paginated_rack_role_list.go +model_paginated_rack_type_list.go model_paginated_rack_unit_list.go model_paginated_rear_port_list.go model_paginated_rear_port_template_list.go @@ -1200,6 +1597,7 @@ model_paginated_service_list.go model_paginated_service_template_list.go model_paginated_site_group_list.go model_paginated_site_list.go +model_paginated_subscription_list.go model_paginated_tag_list.go model_paginated_tenant_group_list.go model_paginated_tenant_list.go @@ -1226,6 +1624,7 @@ model_patched_asn_range_request.go model_patched_asn_request.go model_patched_bookmark_request.go model_patched_cable_termination_request.go +model_patched_circuit_group_request.go model_patched_circuit_termination_request.go model_patched_circuit_type_request.go model_patched_cluster_group_request.go @@ -1251,6 +1650,8 @@ model_patched_l2_vpn_termination_request.go model_patched_manufacturer_request.go model_patched_module_bay_request.go model_patched_module_bay_template_request.go +model_patched_notification_group_request.go +model_patched_notification_request.go model_patched_object_permission_request.go model_patched_platform_request.go model_patched_power_panel_request.go @@ -1263,6 +1664,8 @@ model_patched_rir_request.go model_patched_role_request.go model_patched_route_target_request.go model_patched_saved_filter_request.go +model_patched_script_input_request.go +model_patched_subscription_request.go model_patched_tag_request.go model_patched_tenant_request.go model_patched_token_request.go @@ -1275,13 +1678,9 @@ model_patched_webhook_request.go model_patched_webhook_request_http_method.go model_patched_writable_aggregate_request.go model_patched_writable_cable_request.go -model_patched_writable_cable_request_length_unit.go -model_patched_writable_cable_request_status.go -model_patched_writable_cable_request_type.go +model_patched_writable_circuit_group_assignment_request.go model_patched_writable_circuit_request.go -model_patched_writable_circuit_request_status.go model_patched_writable_cluster_request.go -model_patched_writable_cluster_request_status.go model_patched_writable_console_port_request.go model_patched_writable_console_port_request_speed.go model_patched_writable_console_port_request_type.go @@ -1299,7 +1698,6 @@ model_patched_writable_custom_field_request_ui_editable.go model_patched_writable_custom_field_request_ui_visible.go model_patched_writable_data_source_request.go model_patched_writable_device_type_request.go -model_patched_writable_device_type_request_weight_unit.go model_patched_writable_device_with_config_context_request.go model_patched_writable_event_rule_request.go model_patched_writable_front_port_request.go @@ -1325,9 +1723,7 @@ model_patched_writable_ip_sec_proposal_request.go model_patched_writable_journal_entry_request.go model_patched_writable_l2_vpn_request.go model_patched_writable_location_request.go -model_patched_writable_location_request_status.go model_patched_writable_module_request.go -model_patched_writable_module_request_status.go model_patched_writable_module_type_request.go model_patched_writable_power_feed_request.go model_patched_writable_power_feed_request_phase.go @@ -1346,10 +1742,13 @@ model_patched_writable_power_port_template_request_type.go model_patched_writable_prefix_request.go model_patched_writable_prefix_request_status.go model_patched_writable_rack_request.go +model_patched_writable_rack_request_airflow.go +model_patched_writable_rack_request_form_factor.go model_patched_writable_rack_request_outer_unit.go model_patched_writable_rack_request_status.go -model_patched_writable_rack_request_type.go model_patched_writable_rack_request_width.go +model_patched_writable_rack_type_request.go +model_patched_writable_rack_type_request_form_factor.go model_patched_writable_rear_port_request.go model_patched_writable_rear_port_template_request.go model_patched_writable_region_request.go @@ -1375,6 +1774,7 @@ model_patched_writable_wireless_lan_group_request.go model_patched_writable_wireless_lan_request.go model_patched_writable_wireless_lan_request_status.go model_patched_writable_wireless_link_request.go +model_patched_writable_wireless_link_request_distance_unit.go model_platform.go model_platform_request.go model_power_feed.go @@ -1402,8 +1802,11 @@ model_power_panel.go model_power_panel_request.go model_power_port.go model_power_port_request.go +model_power_port_request_type.go model_power_port_template.go model_power_port_template_request.go +model_power_port_type.go +model_power_port_type_label.go model_prefix.go model_prefix_request.go model_prefix_status.go @@ -1416,16 +1819,31 @@ model_provider_network.go model_provider_network_request.go model_provider_request.go model_rack.go +model_rack_airflow.go +model_rack_airflow_label.go model_rack_face.go model_rack_face_1.go +model_rack_form_factor.go +model_rack_form_factor_label.go +model_rack_outer_unit.go +model_rack_outer_unit_label.go model_rack_request.go +model_rack_request_form_factor.go +model_rack_request_outer_unit.go model_rack_reservation.go model_rack_reservation_request.go model_rack_role.go model_rack_role_request.go +model_rack_status.go +model_rack_status_label.go +model_rack_type.go +model_rack_type_request.go model_rack_unit.go model_rack_unit_face.go model_rack_unit_face_value.go +model_rack_width.go +model_rack_width_label.go +model_rack_width_value.go model_rear_port.go model_rear_port_request.go model_rear_port_template.go @@ -1443,6 +1861,7 @@ model_saved_filter_request.go model_schema_retrieve_format_parameter.go model_schema_retrieve_lang_parameter.go model_script.go +model_script_input_request.go model_service.go model_service_protocol.go model_service_protocol_label.go @@ -1453,9 +1872,10 @@ model_site.go model_site_group.go model_site_group_request.go model_site_request.go +model_subscription.go +model_subscription_request.go model_tag.go model_tag_request.go -model_tenancy_contact_assignments_list_priority_parameter.go model_tenant.go model_tenant_group.go model_tenant_group_request.go @@ -1467,9 +1887,13 @@ model_token_provision.go model_token_provision_request.go model_token_request.go model_tunnel.go +model_tunnel_encapsulation.go +model_tunnel_encapsulation_label.go model_tunnel_group.go model_tunnel_group_request.go model_tunnel_request.go +model_tunnel_status.go +model_tunnel_status_label.go model_tunnel_termination.go model_tunnel_termination_request.go model_tunnel_termination_role.go @@ -1484,12 +1908,8 @@ model_virtual_device_context_status.go model_virtual_device_context_status_label.go model_virtual_disk.go model_virtual_disk_request.go -model_virtual_machine.go -model_virtual_machine_request.go model_virtual_machine_with_config_context.go model_virtual_machine_with_config_context_request.go -model_virtual_machine_with_config_context_status.go -model_virtual_machine_with_config_context_status_label.go model_vlan.go model_vlan_group.go model_vlan_group_request.go @@ -1515,12 +1935,15 @@ model_wireless_lan_status.go model_wireless_lan_status_label.go model_wireless_lan_status_value.go model_wireless_link.go +model_wireless_link_distance_unit.go +model_wireless_link_distance_unit_label.go model_wireless_link_request.go -model_wireless_link_status.go -model_wireless_link_status_label.go +model_wireless_link_request_distance_unit.go model_wireless_role.go +model_wireless_wireless_links_list_distance_unit_parameter.go model_writable_aggregate_request.go model_writable_cable_request.go +model_writable_circuit_group_assignment_request.go model_writable_circuit_request.go model_writable_cluster_request.go model_writable_console_port_request.go @@ -1558,6 +1981,7 @@ model_writable_power_port_request.go model_writable_power_port_template_request.go model_writable_prefix_request.go model_writable_rack_request.go +model_writable_rack_type_request.go model_writable_rear_port_request.go model_writable_rear_port_template_request.go model_writable_region_request.go @@ -1577,16 +2001,4 @@ model_writable_wireless_lan_group_request.go model_writable_wireless_lan_request.go model_writable_wireless_link_request.go response.go -test/api_circuits_test.go -test/api_core_test.go -test/api_dcim_test.go -test/api_extras_test.go -test/api_ipam_test.go -test/api_schema_test.go -test/api_status_test.go -test/api_tenancy_test.go -test/api_users_test.go -test/api_virtualization_test.go -test/api_vpn_test.go -test/api_wireless_test.go utils.go diff --git a/Makefile b/Makefile index cb3f50ead..0e741af1f 100644 --- a/Makefile +++ b/Makefile @@ -14,7 +14,7 @@ default: init up .PHONY: init init: test -f .env || cp .env.example .env - $(call set_env,USER_ID,$(shell id -u)) + $(call set_env,USER_ID,1000) .PHONY: up up: diff --git a/api/netbox_docker_version b/api/netbox_docker_version index dedcc7d43..cb2b00e4f 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -2.9.1 +3.0.1 diff --git a/api/netbox_version b/api/netbox_version index c4e41f945..627a3f43a 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -4.0.3 +4.1.1 diff --git a/api/openapi.yaml b/api/openapi.yaml index 4474f7ddd..df0f09431 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,68 +1,42 @@ openapi: 3.0.3 info: title: NetBox REST API - version: 4.0.3 (4.0) + version: 4.1.1 (4.1) license: name: Apache v2 License paths: - /api/circuits/circuit-terminations/: + /api/circuits/circuit-group-assignments/: get: - operationId: circuits_circuit_terminations_list - description: Get a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_list + description: Get a list of Circuit group assignment objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: circuit schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + title: Circuit ID + description: Circuit (CID) explode: true style: form - in: query - name: cable_id__n + name: circuit__n schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + title: Circuit ID + description: Circuit (CID) explode: true style: form - - in: query - name: cabled - schema: - type: boolean - in: query name: circuit_id schema: type: array items: type: integer - description: Circuit + description: Circuit (ID) explode: true style: form - in: query @@ -71,7 +45,7 @@ paths: type: array items: type: integer - description: Circuit + description: Circuit (ID) explode: true style: form - in: query @@ -143,87 +117,39 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: group schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__nie + name: group__n schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__niew + name: group_id schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query @@ -353,19 +279,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_connected - schema: - type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -379,147 +297,39 @@ paths: schema: type: string - in: query - name: port_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__empty - schema: - type: boolean - - in: query - name: port_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: pp_info - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__empty - schema: - type: boolean - - in: query - name: pp_info__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__niew + name: priority schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: pp_info__nisw + name: priority__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query name: provider schema: @@ -556,69 +366,11 @@ paths: description: Provider (ID) explode: true style: form - - in: query - name: provider_network_id - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -635,177 +387,11 @@ paths: type: string explode: true style: form - - in: query - name: term_side - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - - in: query - name: term_side__n - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: upstream_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__empty - schema: - type: boolean - - in: query - name: upstream_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: xconnect_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__empty - schema: - type: boolean - - in: query - name: xconnect_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form tags: - circuits security: @@ -816,21 +402,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTerminationList' + $ref: '#/components/schemas/PaginatedCircuitGroupAssignmentList' description: '' post: - operationId: circuits_circuit_terminations_create - description: Post a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_create + description: Post a list of Circuit group assignment objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -840,11 +426,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_bulk_update - description: Put a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_update + description: Put a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -853,12 +439,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -870,11 +456,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_bulk_partial_update - description: Patch a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_partial_update + description: Patch a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -883,12 +469,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -900,11 +486,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_bulk_destroy - description: Delete a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_destroy + description: Delete a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -913,12 +499,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -926,16 +512,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/: + /api/circuits/circuit-group-assignments/{id}/: get: - operationId: circuits_circuit_terminations_retrieve - description: Get a circuit termination object. + operationId: circuits_circuit_group_assignments_retrieve + description: Get a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -947,17 +533,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_update - description: Put a circuit termination object. + operationId: circuits_circuit_group_assignments_update + description: Put a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -965,10 +551,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -978,17 +564,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_partial_update - description: Patch a circuit termination object. + operationId: circuits_circuit_group_assignments_partial_update + description: Patch a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -996,10 +582,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1008,17 +594,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_destroy - description: Delete a circuit termination object. + operationId: circuits_circuit_group_assignments_destroy + description: Delete a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -1028,118 +614,11 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/paths/: - get: - operationId: circuits_circuit_terminations_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - /api/circuits/circuit-types/: + /api/circuits/circuit-groups/: get: - operationId: circuits_circuit_types_list - description: Get a list of circuit type objects. + operationId: circuits_circuit_groups_list + description: Get a list of circuit group objects. parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: created schema: @@ -1625,6 +1104,76 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -1640,21 +1189,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTypeList' + $ref: '#/components/schemas/PaginatedCircuitGroupList' description: '' post: - operationId: circuits_circuit_types_create - description: Post a list of circuit type objects. + operationId: circuits_circuit_groups_create + description: Post a list of circuit group objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1664,11 +1213,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_bulk_update - description: Put a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_update + description: Put a list of circuit group objects. tags: - circuits requestBody: @@ -1677,12 +1226,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1694,11 +1243,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_bulk_partial_update - description: Patch a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_partial_update + description: Patch a list of circuit group objects. tags: - circuits requestBody: @@ -1707,12 +1256,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1724,11 +1273,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_bulk_destroy - description: Delete a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_destroy + description: Delete a list of circuit group objects. tags: - circuits requestBody: @@ -1737,12 +1286,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1750,16 +1299,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-types/{id}/: + /api/circuits/circuit-groups/{id}/: get: - operationId: circuits_circuit_types_retrieve - description: Get a circuit type object. + operationId: circuits_circuit_groups_retrieve + description: Get a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1771,17 +1320,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_update - description: Put a circuit type object. + operationId: circuits_circuit_groups_update + description: Put a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1789,10 +1338,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1802,17 +1351,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_partial_update - description: Patch a circuit type object. + operationId: circuits_circuit_groups_partial_update + description: Patch a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1820,10 +1369,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1832,17 +1381,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_destroy - description: Delete a circuit type object. + operationId: circuits_circuit_groups_destroy + description: Delete a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1852,205 +1401,73 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/: + /api/circuits/circuit-terminations/: get: - operationId: circuits_circuits_list - description: Get a list of circuit objects. + operationId: circuits_circuit_terminations_list + description: Get a list of circuit termination objects. parameters: - in: query - name: cid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__empty - schema: - type: boolean - - in: query - name: cid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: commit_rate - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__empty - schema: - type: boolean - - in: query - name: commit_rate__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__n + name: cable_end schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact + name: cable_end__n schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact__n + name: cable_id schema: type: array items: type: integer - description: Contact + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cabled schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: boolean - in: query - name: contact_role + name: circuit_id schema: type: array items: type: integer - description: Contact Role + description: Circuit explode: true style: form - in: query - name: contact_role__n + name: circuit_id__n schema: type: array items: type: integer - description: Contact Role + description: Circuit explode: true style: form - in: query @@ -2263,64 +1680,6 @@ paths: format: int32 explode: true style: form - - in: query - name: install_date - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__empty - schema: - type: boolean - - in: query - name: install_date__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - in: query name: last_updated schema: @@ -2390,12 +1749,20 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - name: offset + - in: query + name: occupied + schema: + type: boolean + - name: offset required: false in: query description: The initial index from which to return the results. @@ -2408,457 +1775,433 @@ paths: schema: type: string - in: query - name: provider + name: port_speed schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider__n + name: port_speed__empty + schema: + type: boolean + - in: query + name: port_speed__gt schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account + name: port_speed__gte schema: type: array items: - type: string - title: Account ID - description: Provider account (account) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account__n + name: port_speed__lt schema: type: array items: - type: string - title: Account ID - description: Provider account (account) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account_id + name: port_speed__lte schema: type: array items: type: integer - description: Provider account (ID) + format: int32 explode: true style: form - in: query - name: provider_account_id__n + name: port_speed__n schema: type: array items: type: integer - description: Provider account (ID) + format: int32 explode: true style: form - in: query - name: provider_id + name: pp_info schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: pp_info__empty + schema: + type: boolean + - in: query + name: pp_info__ic schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_network_id + name: pp_info__ie schema: type: array items: - type: integer - description: Provider network (ID) + type: string explode: true style: form - in: query - name: provider_network_id__n + name: pp_info__iew schema: type: array items: - type: integer - description: Provider network (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: pp_info__isw schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: pp_info__n schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: pp_info__nic schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: pp_info__nie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: pp_info__niew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: pp_info__nisw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: provider schema: type: array items: - type: integer - description: Site group (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group__n + name: provider__n schema: type: array items: - type: integer - description: Site group (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group_id + name: provider_id schema: type: array items: type: integer - description: Site group (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_group_id__n + name: provider_id__n schema: type: array items: type: integer - description: Site group (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_id + name: provider_network_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: ProviderNetwork (ID) explode: true style: form - in: query - name: site_id__n + name: provider_network_id__n schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: ProviderNetwork (ID) explode: true style: form - in: query - name: status + name: q + schema: + type: string + description: Search + - in: query + name: site schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 + description: Site (slug) explode: true style: form - in: query - name: status__n + name: site__n schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 + description: Site (slug) explode: true style: form - in: query - name: tag + name: site_id schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: tag__n + name: site_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: tenant + name: tag schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: tag__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: term_side schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' - in: query - name: tenant_group__n + name: term_side__n schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' - in: query - name: tenant_group_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: upstream_speed schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: upstream_speed__empty + schema: + type: boolean + - in: query + name: upstream_speed__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: upstream_speed__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: upstream_speed__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id + name: upstream_speed__lte schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id__n + name: upstream_speed__n schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_date + name: xconnect_id schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__empty + name: xconnect_id__empty schema: type: boolean - in: query - name: termination_date__gt + name: xconnect_id__ic schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__gte + name: xconnect_id__ie schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lt + name: xconnect_id__iew schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lte + name: xconnect_id__isw schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__n + name: xconnect_id__n schema: type: array items: type: string - format: date - explode: true - style: form - - in: query - name: termination_z_id - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_z_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) explode: true style: form - in: query - name: type + name: xconnect_id__nic schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type__n + name: xconnect_id__nie schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type_id + name: xconnect_id__niew schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - in: query - name: type_id__n + name: xconnect_id__nisw schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - circuits security: @@ -2869,21 +2212,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitList' + $ref: '#/components/schemas/PaginatedCircuitTerminationList' description: '' post: - operationId: circuits_circuits_create - description: Post a list of circuit objects. + operationId: circuits_circuit_terminations_create + description: Post a list of circuit termination objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2893,11 +2236,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_bulk_update - description: Put a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_update + description: Put a list of circuit termination objects. tags: - circuits requestBody: @@ -2906,12 +2249,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2923,11 +2266,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_bulk_partial_update - description: Patch a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_partial_update + description: Patch a list of circuit termination objects. tags: - circuits requestBody: @@ -2936,12 +2279,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2953,11 +2296,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_bulk_destroy - description: Delete a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_destroy + description: Delete a list of circuit termination objects. tags: - circuits requestBody: @@ -2966,12 +2309,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2979,16 +2322,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/{id}/: + /api/circuits/circuit-terminations/{id}/: get: - operationId: circuits_circuits_retrieve - description: Get a circuit object. + operationId: circuits_circuit_terminations_retrieve + description: Get a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3000,17 +2343,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_update - description: Put a circuit object. + operationId: circuits_circuit_terminations_update + description: Put a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3018,10 +2361,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -3031,17 +2374,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_partial_update - description: Patch a circuit object. + operationId: circuits_circuit_terminations_partial_update + description: Patch a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3049,10 +2392,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3061,17 +2404,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_destroy - description: Delete a circuit object. + operationId: circuits_circuit_terminations_destroy + description: Delete a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3081,13 +2424,36 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/: + /api/circuits/circuit-terminations/{id}/paths/: get: - operationId: circuits_provider_accounts_list - description: Get a list of provider account objects. + operationId: circuits_circuit_terminations_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this circuit termination. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CircuitTermination' + description: '' + /api/circuits/circuit-types/: + get: + operationId: circuits_circuit_types_list + description: Get a list of circuit type objects. parameters: - in: query - name: account + name: color schema: type: array items: @@ -3095,11 +2461,11 @@ paths: explode: true style: form - in: query - name: account__empty + name: color__empty schema: type: boolean - in: query - name: account__ic + name: color__ic schema: type: array items: @@ -3107,7 +2473,7 @@ paths: explode: true style: form - in: query - name: account__ie + name: color__ie schema: type: array items: @@ -3115,7 +2481,7 @@ paths: explode: true style: form - in: query - name: account__iew + name: color__iew schema: type: array items: @@ -3123,7 +2489,7 @@ paths: explode: true style: form - in: query - name: account__isw + name: color__isw schema: type: array items: @@ -3131,7 +2497,7 @@ paths: explode: true style: form - in: query - name: account__n + name: color__n schema: type: array items: @@ -3139,7 +2505,7 @@ paths: explode: true style: form - in: query - name: account__nic + name: color__nic schema: type: array items: @@ -3147,7 +2513,7 @@ paths: explode: true style: form - in: query - name: account__nie + name: color__nie schema: type: array items: @@ -3155,7 +2521,7 @@ paths: explode: true style: form - in: query - name: account__niew + name: color__niew schema: type: array items: @@ -3163,7 +2529,7 @@ paths: explode: true style: form - in: query - name: account__nisw + name: color__nisw schema: type: array items: @@ -3551,46 +2917,94 @@ paths: schema: type: string - in: query - name: provider + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: slug__ie schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: slug__iew schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -3622,21 +3036,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderAccountList' + $ref: '#/components/schemas/PaginatedCircuitTypeList' description: '' post: - operationId: circuits_provider_accounts_create - description: Post a list of provider account objects. + operationId: circuits_circuit_types_create + description: Post a list of circuit type objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3646,11 +3060,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_bulk_update - description: Put a list of provider account objects. + operationId: circuits_circuit_types_bulk_update + description: Put a list of circuit type objects. tags: - circuits requestBody: @@ -3659,12 +3073,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3676,11 +3090,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_bulk_partial_update - description: Patch a list of provider account objects. + operationId: circuits_circuit_types_bulk_partial_update + description: Patch a list of circuit type objects. tags: - circuits requestBody: @@ -3689,12 +3103,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3706,11 +3120,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_bulk_destroy - description: Delete a list of provider account objects. + operationId: circuits_circuit_types_bulk_destroy + description: Delete a list of circuit type objects. tags: - circuits requestBody: @@ -3719,12 +3133,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3732,16 +3146,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/{id}/: + /api/circuits/circuit-types/{id}/: get: - operationId: circuits_provider_accounts_retrieve - description: Get a provider account object. + operationId: circuits_circuit_types_retrieve + description: Get a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3753,17 +3167,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_update - description: Put a provider account object. + operationId: circuits_circuit_types_update + description: Put a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3771,10 +3185,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3784,17 +3198,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_partial_update - description: Patch a provider account object. + operationId: circuits_circuit_types_partial_update + description: Patch a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3802,10 +3216,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3814,17 +3228,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_destroy - description: Delete a provider account object. + operationId: circuits_circuit_types_destroy + description: Delete a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3834,11 +3248,205 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/: + /api/circuits/circuits/: get: - operationId: circuits_provider_networks_list - description: Get a list of provider network objects. + operationId: circuits_circuits_list + description: Get a list of circuit objects. parameters: + - in: query + name: cid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__empty + schema: + type: boolean + - in: query + name: cid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: commit_rate + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__empty + schema: + type: boolean + - in: query + name: commit_rate__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -4049,6 +3657,64 @@ paths: format: int32 explode: true style: form + - in: query + name: install_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__empty + schema: + type: boolean + - in: query + name: install_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form - in: query name: last_updated schema: @@ -4123,44 +3789,117 @@ paths: schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__empty + name: provider__n schema: - type: boolean + type: array + items: + type: string + description: Provider (slug) + explode: true + style: form - in: query - name: name__ic + name: provider_account schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__ie + name: provider_account__n schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__iew + name: provider_account_id schema: type: array items: - type: string + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: name__isw + name: provider_account_id__n + schema: + type: array + items: + type: integer + description: Provider account (ID) + explode: true + style: form + - in: query + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_network_id + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: provider_network_id__n + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -4168,7 +3907,7 @@ paths: explode: true style: form - in: query - name: name__n + name: region__n schema: type: array items: @@ -4176,7 +3915,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: region_id schema: type: array items: @@ -4184,7 +3923,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: region_id__n schema: type: array items: @@ -4192,88 +3931,101 @@ paths: explode: true style: form - in: query - name: name__niew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nisw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: site_group schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: provider + name: site_group_id schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: site_group_id__n schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: site_id schema: type: array items: type: integer - description: Provider (ID) + description: Site (ID) explode: true style: form - in: query - name: provider_id__n + name: site_id__n schema: type: array items: type: integer - description: Provider (ID) + description: Site (ID) explode: true style: form - in: query - name: q + name: status schema: - type: string - description: Search + type: array + items: + type: string + x-spec-enum-id: 63c838134a022200 + explode: true + style: form - in: query - name: service_id + name: status__n schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__empty + name: tag schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: service_id__ic + name: tag__n schema: type: array items: @@ -4281,23 +4033,25 @@ paths: explode: true style: form - in: query - name: service_id__ie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: service_id__iew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: service_id__isw + name: tenant_group schema: type: array items: @@ -4305,7 +4059,7 @@ paths: explode: true style: form - in: query - name: service_id__n + name: tenant_group__n schema: type: array items: @@ -4313,7 +4067,7 @@ paths: explode: true style: form - in: query - name: service_id__nic + name: tenant_group_id schema: type: array items: @@ -4321,7 +4075,7 @@ paths: explode: true style: form - in: query - name: service_id__nie + name: tenant_group_id__n schema: type: array items: @@ -4329,35 +4083,157 @@ paths: explode: true style: form - in: query - name: service_id__niew + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: termination_a_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_a_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_date schema: type: array items: type: string + format: date explode: true style: form - in: query - name: service_id__nisw + name: termination_date__empty + schema: + type: boolean + - in: query + name: termination_date__gt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: tag + name: termination_date__gte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: tag__n + name: termination_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_z_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_z_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type__n schema: type: array items: type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Circuit type (ID) explode: true style: form - in: query @@ -4375,21 +4251,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderNetworkList' + $ref: '#/components/schemas/PaginatedCircuitList' description: '' post: - operationId: circuits_provider_networks_create - description: Post a list of provider network objects. + operationId: circuits_circuits_create + description: Post a list of circuit objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4399,11 +4275,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_bulk_update - description: Put a list of provider network objects. + operationId: circuits_circuits_bulk_update + description: Put a list of circuit objects. tags: - circuits requestBody: @@ -4412,12 +4288,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4429,11 +4305,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_bulk_partial_update - description: Patch a list of provider network objects. + operationId: circuits_circuits_bulk_partial_update + description: Patch a list of circuit objects. tags: - circuits requestBody: @@ -4442,12 +4318,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4459,11 +4335,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_bulk_destroy - description: Delete a list of provider network objects. + operationId: circuits_circuits_bulk_destroy + description: Delete a list of circuit objects. tags: - circuits requestBody: @@ -4472,12 +4348,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4485,16 +4361,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/{id}/: + /api/circuits/circuits/{id}/: get: - operationId: circuits_provider_networks_retrieve - description: Get a provider network object. + operationId: circuits_circuits_retrieve + description: Get a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4506,17 +4382,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_update - description: Put a provider network object. + operationId: circuits_circuits_update + description: Put a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4524,10 +4400,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4537,17 +4413,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_partial_update - description: Patch a provider network object. + operationId: circuits_circuits_partial_update + description: Patch a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4555,10 +4431,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -4567,17 +4443,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_destroy - description: Delete a provider network object. + operationId: circuits_circuits_destroy + description: Delete a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4587,105 +4463,93 @@ paths: responses: '204': description: No response body - /api/circuits/providers/: + /api/circuits/provider-accounts/: get: - operationId: circuits_providers_list - description: Get a list of provider objects. + operationId: circuits_provider_accounts_list + description: Get a list of provider account objects. parameters: - in: query - name: asn + name: account schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn__n + name: account__empty + schema: + type: boolean + - in: query + name: account__ic schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn_id + name: account__ie schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: asn_id__n + name: account__iew schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: contact + name: account__isw schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: account__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: account__nic schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: account__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: account__niew schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: account__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query @@ -5069,180 +4933,48 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site + name: provider schema: type: array items: type: string - description: Site (slug) + description: Provider (slug) explode: true style: form - in: query - name: site__n + name: provider__n schema: type: array items: type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) + description: Provider (slug) explode: true style: form - in: query - name: site_id + name: provider_id schema: type: array items: type: integer - description: Site + description: Provider (ID) explode: true style: form - in: query - name: site_id__n + name: provider_id__n schema: type: array items: type: integer - description: Site - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string + description: Provider (ID) explode: true style: form - in: query - name: slug__nic + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__nie + name: tag schema: type: array items: @@ -5250,7 +4982,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tag__n schema: type: array items: @@ -5258,31 +4990,7 @@ paths: explode: true style: form - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid @@ -5296,21 +5004,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderList' + $ref: '#/components/schemas/PaginatedProviderAccountList' description: '' post: - operationId: circuits_providers_create - description: Post a list of provider objects. + operationId: circuits_provider_accounts_create + description: Post a list of provider account objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5320,11 +5028,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_bulk_update - description: Put a list of provider objects. + operationId: circuits_provider_accounts_bulk_update + description: Put a list of provider account objects. tags: - circuits requestBody: @@ -5333,12 +5041,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5350,11 +5058,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_bulk_partial_update - description: Patch a list of provider objects. + operationId: circuits_provider_accounts_bulk_partial_update + description: Patch a list of provider account objects. tags: - circuits requestBody: @@ -5363,12 +5071,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5380,11 +5088,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_bulk_destroy - description: Delete a list of provider objects. + operationId: circuits_provider_accounts_bulk_destroy + description: Delete a list of provider account objects. tags: - circuits requestBody: @@ -5393,12 +5101,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5406,16 +5114,16 @@ paths: responses: '204': description: No response body - /api/circuits/providers/{id}/: + /api/circuits/provider-accounts/{id}/: get: - operationId: circuits_providers_retrieve - description: Get a provider object. + operationId: circuits_provider_accounts_retrieve + description: Get a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5427,17 +5135,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_update - description: Put a provider object. + operationId: circuits_provider_accounts_update + description: Put a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5445,10 +5153,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5458,17 +5166,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_partial_update - description: Patch a provider object. + operationId: circuits_provider_accounts_partial_update + description: Patch a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5476,10 +5184,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -5488,17 +5196,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_destroy - description: Delete a provider object. + operationId: circuits_provider_accounts_destroy + description: Delete a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5508,10 +5216,10 @@ paths: responses: '204': description: No response body - /api/core/data-files/: + /api/circuits/provider-networks/: get: - operationId: core_data_files_list - description: Get a list of data file objects. + operationId: circuits_provider_networks_list + description: Get a list of provider network objects. parameters: - in: query name: created @@ -5582,7 +5290,7 @@ paths: type: string format: uuid - in: query - name: hash + name: description schema: type: array items: @@ -5590,11 +5298,11 @@ paths: explode: true style: form - in: query - name: hash__empty + name: description__empty schema: type: boolean - in: query - name: hash__ic + name: description__ic schema: type: array items: @@ -5602,7 +5310,7 @@ paths: explode: true style: form - in: query - name: hash__ie + name: description__ie schema: type: array items: @@ -5610,7 +5318,7 @@ paths: explode: true style: form - in: query - name: hash__iew + name: description__iew schema: type: array items: @@ -5618,7 +5326,7 @@ paths: explode: true style: form - in: query - name: hash__isw + name: description__isw schema: type: array items: @@ -5626,7 +5334,7 @@ paths: explode: true style: form - in: query - name: hash__n + name: description__n schema: type: array items: @@ -5634,7 +5342,7 @@ paths: explode: true style: form - in: query - name: hash__nic + name: description__nic schema: type: array items: @@ -5642,7 +5350,7 @@ paths: explode: true style: form - in: query - name: hash__nie + name: description__nie schema: type: array items: @@ -5650,7 +5358,7 @@ paths: explode: true style: form - in: query - name: hash__niew + name: description__niew schema: type: array items: @@ -5658,7 +5366,7 @@ paths: explode: true style: form - in: query - name: hash__nisw + name: description__nisw schema: type: array items: @@ -5797,20 +5505,20 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: path + name: name__ic schema: type: array items: @@ -5818,11 +5526,15 @@ paths: explode: true style: form - in: query - name: path__empty + name: name__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: path__ic + name: name__iew schema: type: array items: @@ -5830,7 +5542,7 @@ paths: explode: true style: form - in: query - name: path__ie + name: name__isw schema: type: array items: @@ -5838,7 +5550,7 @@ paths: explode: true style: form - in: query - name: path__iew + name: name__n schema: type: array items: @@ -5846,7 +5558,7 @@ paths: explode: true style: form - in: query - name: path__isw + name: name__nic schema: type: array items: @@ -5854,7 +5566,7 @@ paths: explode: true style: form - in: query - name: path__n + name: name__nie schema: type: array items: @@ -5862,7 +5574,7 @@ paths: explode: true style: form - in: query - name: path__nic + name: name__niew schema: type: array items: @@ -5870,125 +5582,164 @@ paths: explode: true style: form - in: query - name: path__nie + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: path__niew + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: path__nisw + name: provider__n schema: type: array items: type: string + description: Provider (slug) + explode: true + style: form + - in: query + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) explode: true style: form - in: query name: q schema: type: string + description: Search - in: query - name: size + name: service_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty + name: service_id__empty schema: type: boolean - in: query - name: size__gt + name: service_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: service_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: service_id__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: service_id__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: service_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: source + name: service_id__nic schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source__n + name: service_id__nie schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source_id + name: service_id__niew schema: type: array items: - type: integer - description: Data source (ID) + type: string explode: true style: form - in: query - name: source_id__n + name: service_id__nisw schema: type: array items: - type: integer - description: Data source (ID) + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -5997,7 +5748,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6006,21 +5757,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataFileList' + $ref: '#/components/schemas/PaginatedProviderNetworkList' description: '' - /api/core/data-files/{id}/: + post: + operationId: circuits_provider_networks_create + description: Post a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + put: + operationId: circuits_provider_networks_bulk_update + description: Put a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_bulk_partial_update + description: Patch a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_bulk_destroy + description: Delete a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/provider-networks/{id}/: get: - operationId: core_data_files_retrieve - description: Get a data file object. + operationId: circuits_provider_networks_retrieve + description: Get a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data file. + description: A unique integer value identifying this provider network. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6029,13 +5888,186 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataFile' + $ref: '#/components/schemas/ProviderNetwork' description: '' - /api/core/data-sources/: + put: + operationId: circuits_provider_networks_update + description: Put a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_partial_update + description: Patch a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_destroy + description: Delete a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/providers/: get: - operationId: core_data_sources_list - description: Get a list of data source objects. + operationId: circuits_providers_list + description: Get a list of provider objects. parameters: + - in: query + name: asn + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn__n + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn_id + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: asn_id__n + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -6188,10 +6220,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -6250,64 +6278,6 @@ paths: format: int32 explode: true style: form - - in: query - name: last_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__empty - schema: - type: boolean - - in: query - name: last_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - in: query name: last_updated schema: @@ -6484,7 +6454,7 @@ paths: type: string description: Search - in: query - name: source_url + name: region schema: type: array items: @@ -6492,11 +6462,15 @@ paths: explode: true style: form - in: query - name: source_url__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: source_url__ic + name: region_id schema: type: array items: @@ -6504,7 +6478,7 @@ paths: explode: true style: form - in: query - name: source_url__ie + name: region_id__n schema: type: array items: @@ -6512,23 +6486,25 @@ paths: explode: true style: form - in: query - name: source_url__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__n + name: site_group schema: type: array items: @@ -6536,7 +6512,7 @@ paths: explode: true style: form - in: query - name: source_url__nic + name: site_group__n schema: type: array items: @@ -6544,7 +6520,7 @@ paths: explode: true style: form - in: query - name: source_url__nie + name: site_group_id schema: type: array items: @@ -6552,7 +6528,7 @@ paths: explode: true style: form - in: query - name: source_url__niew + name: site_group_id__n schema: type: array items: @@ -6560,7 +6536,25 @@ paths: explode: true style: form - in: query - name: source_url__nisw + name: site_id + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: slug schema: type: array items: @@ -6568,7 +6562,11 @@ paths: explode: true style: form - in: query - name: status + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -6576,7 +6574,7 @@ paths: explode: true style: form - in: query - name: status__n + name: slug__ie schema: type: array items: @@ -6584,7 +6582,7 @@ paths: explode: true style: form - in: query - name: tag + name: slug__iew schema: type: array items: @@ -6592,7 +6590,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__isw schema: type: array items: @@ -6600,7 +6598,7 @@ paths: explode: true style: form - in: query - name: type + name: slug__n schema: type: array items: @@ -6608,7 +6606,47 @@ paths: explode: true style: form - in: query - name: type__n + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n schema: type: array items: @@ -6621,7 +6659,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6630,21 +6668,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataSourceList' + $ref: '#/components/schemas/PaginatedProviderList' description: '' post: - operationId: core_data_sources_create - description: Post a list of data source objects. + operationId: circuits_providers_create + description: Post a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6654,25 +6692,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_bulk_update - description: Put a list of data source objects. + operationId: circuits_providers_bulk_update + description: Put a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6684,25 +6722,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_bulk_partial_update - description: Patch a list of data source objects. + operationId: circuits_providers_bulk_partial_update + description: Patch a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6714,25 +6752,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_bulk_destroy - description: Delete a list of data source objects. + operationId: circuits_providers_bulk_destroy + description: Delete a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6740,19 +6778,19 @@ paths: responses: '204': description: No response body - /api/core/data-sources/{id}/: + /api/circuits/providers/{id}/: get: - operationId: core_data_sources_retrieve - description: Get a data source object. + operationId: circuits_providers_retrieve + description: Get a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6761,28 +6799,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_update - description: Put a data source object. + operationId: circuits_providers_update + description: Put a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6792,28 +6830,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_partial_update - description: Patch a data source object. + operationId: circuits_providers_partial_update + description: Patch a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -6822,222 +6860,137 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_destroy - description: Delete a data source object. + operationId: circuits_providers_destroy + description: Delete a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/core/data-sources/{id}/sync/: - post: - operationId: core_data_sources_sync_create - description: Enqueue a job to synchronize the DataSource. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this data source. - required: true - tags: - - core - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DataSource' - description: '' - /api/core/jobs/: + /api/core/data-files/: get: - operationId: core_jobs_list - description: Retrieve a list of job results + operationId: core_data_files_list + description: Get a list of data file objects. parameters: - - in: query - name: completed - schema: - type: string - format: date-time - - in: query - name: completed__after - schema: - type: string - format: date-time - - in: query - name: completed__before - schema: - type: string - format: date-time - in: query name: created - schema: - type: string - format: date-time - - in: query - name: created__after - schema: - type: string - format: date-time - - in: query - name: created__before - schema: - type: string - format: date-time - - in: query - name: id schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: interval__gt + name: hash schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval__gte + name: hash__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: interval__lt + name: hash__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval__lte + name: hash__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interval__n + name: hash__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: job_id - schema: - type: string - format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: name + name: hash__isw schema: type: array items: @@ -7045,11 +6998,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: hash__n schema: type: array items: @@ -7057,7 +7006,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: hash__nic schema: type: array items: @@ -7065,7 +7014,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: hash__nie schema: type: array items: @@ -7073,7 +7022,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: hash__niew schema: type: array items: @@ -7081,7 +7030,7 @@ paths: explode: true style: form - in: query - name: name__n + name: hash__nisw schema: type: array items: @@ -7089,52 +7038,20 @@ paths: explode: true style: form - in: query - name: name__nic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -7143,7 +7060,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: id__gte schema: type: array items: @@ -7152,7 +7069,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: id__lt schema: type: array items: @@ -7161,7 +7078,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: id__lte schema: type: array items: @@ -7170,7 +7087,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: id__n schema: type: array items: @@ -7179,160 +7096,7 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: integer - - in: query - name: object_type__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: scheduled - schema: - type: string - format: date-time - - in: query - name: scheduled__after - schema: - type: string - format: date-time - - in: query - name: scheduled__before - schema: - type: string - format: date-time - - in: query - name: started - schema: - type: string - format: date-time - - in: query - name: started__after - schema: - type: string - format: date-time - - in: query - name: started__before - schema: - type: string - format: date-time - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: user - schema: - type: integer - - in: query - name: user__n - schema: - type: integer - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJobList' - description: '' - /api/core/jobs/{id}/: - get: - operationId: core_jobs_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this job. - required: true - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Job' - description: '' - /api/dcim/cable-terminations/: - get: - operationId: dcim_cable_terminations_list - description: Get a list of cable termination objects. - parameters: - - in: query - name: cable - schema: - type: integer - - in: query - name: cable__n - schema: - type: integer - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: created + name: last_updated schema: type: array items: @@ -7341,7 +7105,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -7350,7 +7114,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -7359,7 +7123,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -7368,7 +7132,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -7377,7 +7141,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -7386,7 +7150,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -7394,157 +7158,150 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: id + name: path schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: path__empty schema: type: boolean - in: query - name: id__gt + name: path__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: path__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: path__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: path__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: path__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: path__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: path__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: path__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: path__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: q + schema: + type: string + - in: query + name: size schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: size__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: termination_id + name: size__lt schema: type: array items: @@ -7553,11 +7310,7 @@ paths: explode: true style: form - in: query - name: termination_id__empty - schema: - type: boolean - - in: query - name: termination_id__gt + name: size__lte schema: type: array items: @@ -7566,7 +7319,7 @@ paths: explode: true style: form - in: query - name: termination_id__gte + name: size__n schema: type: array items: @@ -7575,129 +7328,48 @@ paths: explode: true style: form - in: query - name: termination_id__lt + name: source schema: type: array items: - type: integer - format: int32 + type: string + description: Data source (name) explode: true style: form - in: query - name: termination_id__lte + name: source__n schema: type: array items: - type: integer - format: int32 + type: string + description: Data source (name) explode: true style: form - in: query - name: termination_id__n + name: source_id schema: type: array items: type: integer - format: int32 + description: Data source (ID) explode: true style: form - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n + name: source_id__n schema: - type: string + type: array + items: + type: integer + description: Data source (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCableTerminationList' - description: '' - post: - operationId: dcim_cable_terminations_create - description: Post a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - put: - operationId: dcim_cable_terminations_bulk_update - description: Put a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTermination' - description: '' - patch: - operationId: dcim_cable_terminations_bulk_partial_update - description: Patch a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -7706,108 +7378,21 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/PaginatedDataFileList' description: '' - delete: - operationId: dcim_cable_terminations_bulk_destroy - description: Delete a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/cable-terminations/{id}/: + /api/core/data-files/{id}/: get: - operationId: dcim_cable_terminations_retrieve - description: Get a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - put: - operationId: dcim_cable_terminations_update - description: Put a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - patch: - operationId: dcim_cable_terminations_partial_update - description: Patch a cable termination object. + operationId: core_data_files_retrieve + description: Get a data file object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this data file. required: true tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + - core security: - cookieAuth: [] - tokenAuth: [] @@ -7816,74 +7401,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/DataFile' description: '' - delete: - operationId: dcim_cable_terminations_destroy - description: Delete a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/cables/: + /api/core/data-sources/: get: - operationId: dcim_cables_list - description: Get a list of cable objects. + operationId: core_data_sources_list + description: Get a list of data source objects. parameters: - - in: query - name: circuittermination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: consoleport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: consoleserverport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: created schema: @@ -8037,31 +7561,9 @@ paths: explode: true style: form - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: frontport_id + name: enabled schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query name: id schema: @@ -8121,96 +7623,61 @@ paths: explode: true style: form - in: query - name: interface_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: label + name: last_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: last_synced__empty schema: type: boolean - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n + name: last_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nie + name: last_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__niew + name: last_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nisw + name: last_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query @@ -8276,118 +7743,79 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: length + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__empty + name: name__empty schema: type: boolean - in: query - name: length__gt + name: name__ic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__gte + name: name__ie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lt + name: name__iew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lte + name: name__isw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__n + name: name__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length_unit - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - in: query - name: length_unit__n - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - name: limit - required: false - in: query - description: Number of results to return per page. + name: name__nic schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: location + name: name__nie schema: type: array items: @@ -8395,19 +7823,21 @@ paths: explode: true style: form - in: query - name: location_id + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: modified_by_request + name: name__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -8420,40 +7850,13 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: powerfeed_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: poweroutlet_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: powerport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: rack + name: source_url schema: type: array items: @@ -8461,25 +7864,11 @@ paths: explode: true style: form - in: query - name: rack_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rearport_id + name: source_url__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: site + name: source_url__ic schema: type: array items: @@ -8487,34 +7876,23 @@ paths: explode: true style: form - in: query - name: site_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: status + name: source_url__ie schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: status__n + name: source_url__iew schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: tag + name: source_url__isw schema: type: array items: @@ -8522,7 +7900,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: source_url__n schema: type: array items: @@ -8530,120 +7908,75 @@ paths: explode: true style: form - in: query - name: tenant + name: source_url__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: source_url__nie schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) explode: true style: form - in: query - name: tenant_group_id + name: source_url__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: source_url__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: status schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: status__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: termination_a_id + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_a_type - schema: - type: string - - in: query - name: termination_a_type__n - schema: - type: string - - in: query - name: termination_b_id + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: termination_b_type - schema: - type: string - - in: query - name: termination_b_type__n - schema: - type: string - in: query name: type schema: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query @@ -8652,21 +7985,15 @@ paths: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - - in: query - name: unterminated - schema: - type: boolean - description: Unterminated - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -8675,21 +8002,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableList' + $ref: '#/components/schemas/PaginatedDataSourceList' description: '' post: - operationId: dcim_cables_create - description: Post a list of cable objects. + operationId: core_data_sources_create + description: Post a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8698,25 +8026,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_cables_bulk_update - description: Put a list of cable objects. + operationId: core_data_sources_bulk_update + description: Put a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8728,25 +8056,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_cables_bulk_partial_update - description: Patch a list of cable objects. + operationId: core_data_sources_bulk_partial_update + description: Patch a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8758,25 +8086,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_cables_bulk_destroy - description: Delete a list of cable objects. + operationId: core_data_sources_bulk_destroy + description: Delete a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8784,19 +8112,19 @@ paths: responses: '204': description: No response body - /api/dcim/cables/{id}/: + /api/core/data-sources/{id}/: get: - operationId: dcim_cables_retrieve - description: Get a cable object. + operationId: core_data_sources_retrieve + description: Get a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -8805,28 +8133,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_cables_update - description: Put a cable object. + operationId: core_data_sources_update + description: Put a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8835,28 +8164,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_cables_partial_update - description: Patch a cable object. + operationId: core_data_sources_partial_update + description: Patch a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -8865,57 +8194,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_cables_destroy - description: Delete a cable object. + operationId: core_data_sources_destroy + description: Delete a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/connected-device/: - get: - operationId: dcim_connected_device_list - description: 'This endpoint allows a user to determine what device (if any) - is connected to a given peer device and peer - - interface. This is useful in a situation where a device boots with no configuration, - but can detect its neighbors - - via a protocol such as LLDP. Two query parameters must be included in the - request: - - - * `peer_device`: The name of the peer device - - * `peer_interface`: The name of the peer interface' + /api/core/data-sources/{id}/sync/: + post: + operationId: core_data_sources_sync_create + description: Enqueue a job to synchronize the DataSource. parameters: - - in: query - name: peer_device - schema: - type: string - description: The name of the peer device - required: true - - in: query - name: peer_interface + - in: path + name: id schema: - type: string - description: The name of the peer interface + type: integer + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8924,85 +8244,172 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/DataSource' description: '' - /api/dcim/console-port-templates/: + /api/core/jobs/: get: - operationId: dcim_console_port_templates_list - description: Get a list of console port template objects. + operationId: core_jobs_list + description: Retrieve a list of job results parameters: + - in: query + name: completed + schema: + type: string + format: date-time + - in: query + name: completed__after + schema: + type: string + format: date-time + - in: query + name: completed__before + schema: + type: string + format: date-time - in: query name: created + schema: + type: string + format: date-time + - in: query + name: created__after + schema: + type: string + format: date-time + - in: query + name: created__before + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: interval schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: interval__empty + schema: + type: boolean + - in: query + name: interval__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interval__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: job_id schema: type: string format: uuid + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: description + name: name schema: type: array items: @@ -9010,11 +8417,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -9022,7 +8429,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -9030,7 +8437,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -9038,7 +8445,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -9046,7 +8453,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -9054,7 +8461,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -9062,7 +8469,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -9070,7 +8477,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -9078,7 +8485,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: @@ -9086,47 +8493,214 @@ paths: explode: true style: form - in: query - name: device_type_id + name: object_id schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 + explode: true + style: form + - in: query + name: object_id__gte + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query - name: devicetype_id + name: object_id__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: object_id__lte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 + explode: true + style: form + - in: query + name: object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type + schema: + type: integer + - in: query + name: object_type__n + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: scheduled + schema: + type: string + format: date-time + - in: query + name: scheduled__after + schema: + type: string + format: date-time + - in: query + name: scheduled__before + schema: + type: string + format: date-time + - in: query + name: started + schema: + type: string + format: date-time + - in: query + name: started__after + schema: + type: string + format: date-time + - in: query + name: started__before + schema: + type: string + format: date-time + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query + name: user + schema: + type: integer + - in: query + name: user__n + schema: + type: integer + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedJobList' + description: '' + /api/core/jobs/{id}/: + get: + operationId: core_jobs_retrieve + description: Retrieve a list of job results + parameters: + - in: path name: id + schema: + type: integer + description: A unique integer value identifying this job. + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Job' + description: '' + /api/core/object-changes/: + get: + operationId: core_object_changes_list + description: Retrieve a list of recent changes. + parameters: + - in: query + name: action + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: action__n + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: changed_object_id schema: type: array items: @@ -9135,11 +8709,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: changed_object_id__empty schema: type: boolean - in: query - name: id__gt + name: changed_object_id__gt schema: type: array items: @@ -9148,7 +8722,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: changed_object_id__gte schema: type: array items: @@ -9157,7 +8731,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: changed_object_id__lt schema: type: array items: @@ -9166,7 +8740,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: changed_object_id__lte schema: type: array items: @@ -9175,7 +8749,7 @@ paths: explode: true style: form - in: query - name: id__n + name: changed_object_id__n schema: type: array items: @@ -9184,67 +8758,95 @@ paths: explode: true style: form - in: query - name: label + name: changed_object_type + schema: + type: string + - in: query + name: changed_object_type__n + schema: + type: string + - in: query + name: changed_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: label__empty + name: changed_object_type_id__n schema: - type: boolean + type: array + items: + type: integer + explode: true + style: form - in: query - name: label__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: object_repr schema: type: array items: @@ -9252,7 +8854,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: object_repr__empty + schema: + type: boolean + - in: query + name: object_repr__ic schema: type: array items: @@ -9260,7 +8866,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: object_repr__ie schema: type: array items: @@ -9268,165 +8874,199 @@ paths: explode: true style: form - in: query - name: last_updated + name: object_repr__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: object_repr__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: object_repr__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: object_repr__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: object_repr__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: object_repr__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: object_repr__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: module_type_id + name: related_object_id schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: related_object_id__empty + schema: + type: boolean + - in: query + name: related_object_id__gt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id + name: related_object_id__gte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id__n + name: related_object_id__lt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: name + name: related_object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: related_object_id__n schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: related_object_type + schema: + type: integer + - in: query + name: related_object_type__n + schema: + type: integer + - in: query + name: request_id + schema: + type: string + format: uuid + - in: query + name: time_after + schema: + type: string + format: date-time + - in: query + name: time_before + schema: + type: string + format: date-time + - in: query + name: user schema: type: array items: type: string + description: User name explode: true style: form - in: query - name: name__ie + name: user__n schema: type: array items: type: string + description: User name explode: true style: form - in: query - name: name__iew + name: user_id schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: name__isw + name: user_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: name__n + name: user_name schema: type: array items: @@ -9434,7 +9074,11 @@ paths: explode: true style: form - in: query - name: name__nic + name: user_name__empty + schema: + type: boolean + - in: query + name: user_name__ic schema: type: array items: @@ -9442,7 +9086,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: user_name__ie schema: type: array items: @@ -9450,7 +9094,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: user_name__iew schema: type: array items: @@ -9458,157 +9102,55 @@ paths: explode: true style: form - in: query - name: name__nisw + name: user_name__isw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: user_name__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: user_name__nic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: type + name: user_name__nie schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' + type: array + items: + type: string + explode: true + style: form - in: query - name: type__n + name: user_name__niew schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' + type: array + items: + type: string + explode: true + style: form - in: query - name: updated_by_request + name: user_name__nisw schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConsolePortTemplateList' - description: '' - post: - operationId: dcim_console_port_templates_create - description: Post a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_bulk_update - description: Put a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - patch: - operationId: dcim_console_port_templates_bulk_partial_update - description: Patch a list of console port template objects. + type: array + items: + type: string + explode: true + style: form tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -9617,78 +9159,21 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/PaginatedObjectChangeList' description: '' - delete: - operationId: dcim_console_port_templates_bulk_destroy - description: Delete a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/console-port-templates/{id}/: + /api/core/object-changes/{id}/: get: - operationId: dcim_console_port_templates_retrieve - description: Get a console port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_update - description: Put a console port template object. + operationId: core_object_changes_retrieve + description: Retrieve a list of recent changes. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this object change. required: true tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -9697,66 +9182,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ObjectChange' description: '' - patch: - operationId: dcim_console_port_templates_partial_update - description: Patch a console port template object. + /api/dcim/cable-terminations/: + get: + operationId: dcim_cable_terminations_list + description: Get a list of cable termination objects. parameters: - - in: path - name: id + - in: query + name: cable schema: type: integer - description: A unique integer value identifying this console port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - delete: - operationId: dcim_console_port_templates_destroy - description: Delete a console port template object. - parameters: - - in: path - name: id + - in: query + name: cable__n schema: type: integer - description: A unique integer value identifying this console port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/console-ports/: - get: - operationId: dcim_console_ports_list - description: Get a list of console port objects. - parameters: - in: query name: cable_end schema: type: string x-spec-enum-id: 1db84f9b93b261c8 + title: End enum: - A - B @@ -9768,40 +9214,13 @@ paths: schema: type: string x-spec-enum-id: 1db84f9b93b261c8 + title: End enum: - A - B description: '* `A` - A * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - in: query name: created schema: @@ -9871,165 +9290,200 @@ paths: type: string format: uuid - in: query - name: description + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: id__empty schema: type: boolean - in: query - name: description__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: last_updated__lt schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device__n + name: last_updated__lte schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device_id + name: last_updated__n schema: type: array items: - type: integer - description: Device (ID) + type: string + format: date-time explode: true style: form - - in: query - name: device_id__n + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: termination_id + schema: + type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: termination_id__gte schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: termination_id__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: termination_id__lte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: id + name: termination_id__n schema: type: array items: @@ -10038,11 +9492,247 @@ paths: explode: true style: form - in: query - name: id__empty + name: termination_type schema: - type: boolean + type: string - in: query - name: id__gt + name: termination_type__n + schema: + type: string + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCableTerminationList' + description: '' + post: + operationId: dcim_cable_terminations_create + description: Post a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + put: + operationId: dcim_cable_terminations_bulk_update + description: Put a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTermination' + description: '' + patch: + operationId: dcim_cable_terminations_bulk_partial_update + description: Patch a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTermination' + description: '' + delete: + operationId: dcim_cable_terminations_bulk_destroy + description: Delete a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/cable-terminations/{id}/: + get: + operationId: dcim_cable_terminations_retrieve + description: Get a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + put: + operationId: dcim_cable_terminations_update + description: Put a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + patch: + operationId: dcim_cable_terminations_partial_update + description: Patch a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedCableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedCableTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + delete: + operationId: dcim_cable_terminations_destroy + description: Delete a cable termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cable termination. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/cables/: + get: + operationId: dcim_cables_list + description: Get a list of cable objects. + parameters: + - in: query + name: circuittermination_id schema: type: array items: @@ -10051,25 +9741,23 @@ paths: explode: true style: form - in: query - name: id__gte + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: consoleport_id schema: type: array items: @@ -10078,7 +9766,7 @@ paths: explode: true style: form - in: query - name: id__n + name: consoleserverport_id schema: type: array items: @@ -10087,59 +9775,75 @@ paths: explode: true style: form - in: query - name: label + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: label__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -10147,7 +9851,11 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -10155,7 +9863,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__ie schema: type: array items: @@ -10163,7 +9871,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__iew schema: type: array items: @@ -10171,141 +9879,148 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: device schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: device_id schema: - type: integer + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: location + name: frontport_id schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: id schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location_id + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: id__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: mark_connected + name: id__lt schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: modified_by_request + name: id__lte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: module_id + name: id__n schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: interface_id schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: name + name: label schema: type: array items: @@ -10313,11 +10028,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -10325,7 +10040,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -10333,7 +10048,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -10341,7 +10056,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -10349,7 +10064,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -10357,7 +10072,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -10365,7 +10080,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -10373,7 +10088,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -10381,7 +10096,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: @@ -10389,186 +10104,276 @@ paths: explode: true style: form - in: query - name: occupied + name: last_updated schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: q + name: last_updated__gte schema: - type: string - description: Search + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: rack + name: last_updated__lt schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack__n + name: last_updated__lte schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack_id + name: last_updated__n schema: type: array items: - type: integer - description: Rack (ID) + type: string + format: date-time explode: true style: form - in: query - name: rack_id__n + name: length schema: type: array items: - type: integer - description: Rack (ID) + type: number + format: double explode: true style: form - in: query - name: region + name: length__empty + schema: + type: boolean + - in: query + name: length__gt schema: type: array items: - type: integer - description: Region (slug) + type: number + format: double explode: true style: form - in: query - name: region__n + name: length__gte schema: type: array items: - type: integer - description: Region (slug) + type: number + format: double explode: true style: form - in: query - name: region_id + name: length__lt schema: type: array items: - type: integer - description: Region (ID) + type: number + format: double explode: true style: form - in: query - name: region_id__n + name: length__lte schema: type: array items: - type: integer - description: Region (ID) + type: number + format: double explode: true style: form - in: query - name: role + name: length__n schema: type: array items: - type: string - description: Device role (slug) + type: number + format: double explode: true style: form - in: query - name: role__n + name: length_unit + schema: + type: string + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - in: query + name: length_unit__n + schema: + type: string + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: location schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: location_id schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: powerfeed_id schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: site + name: poweroutlet_id schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: powerport_id schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: rack_id schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: rearport_id schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: site schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -10577,84 +10382,27 @@ paths: type: array items: type: integer - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: status schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: speed - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' - - in: query - name: speed__n + name: status__n schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form - in: query name: tag schema: @@ -10672,66 +10420,137 @@ paths: explode: true style: form - in: query - name: type + name: tenant schema: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + description: Tenant (slug) explode: true style: form - in: query - name: type__n + name: tenant__n schema: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + description: Tenant (slug) explode: true style: form - in: query - name: updated_by_request + name: tenant_group schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: tenant_group__n schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: tenant_group_id schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: termination_a_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_a_type + schema: + type: string + - in: query + name: termination_a_type__n + schema: + type: string + - in: query + name: termination_b_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_b_type + schema: + type: string + - in: query + name: termination_b_type__n + schema: + type: string + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef explode: true style: form + - in: query + name: unterminated + schema: + type: boolean + description: Unterminated + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -10742,22 +10561,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortList' + $ref: '#/components/schemas/PaginatedCableList' description: '' post: - operationId: dcim_console_ports_create - description: Post a list of console port objects. + operationId: dcim_cables_create + description: Post a list of cable objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10766,11 +10584,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_console_ports_bulk_update - description: Put a list of console port objects. + operationId: dcim_cables_bulk_update + description: Put a list of cable objects. tags: - dcim requestBody: @@ -10779,12 +10597,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10796,11 +10614,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_console_ports_bulk_partial_update - description: Patch a list of console port objects. + operationId: dcim_cables_bulk_partial_update + description: Patch a list of cable objects. tags: - dcim requestBody: @@ -10809,12 +10627,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10826,11 +10644,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_console_ports_bulk_destroy - description: Delete a list of console port objects. + operationId: dcim_cables_bulk_destroy + description: Delete a list of cable objects. tags: - dcim requestBody: @@ -10839,12 +10657,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10852,16 +10670,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/: + /api/dcim/cables/{id}/: get: - operationId: dcim_console_ports_retrieve - description: Get a console port object. + operationId: dcim_cables_retrieve + description: Get a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10873,17 +10691,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_console_ports_update - description: Put a console port object. + operationId: dcim_cables_update + description: Put a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10891,11 +10709,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10904,17 +10721,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_console_ports_partial_update - description: Patch a console port object. + operationId: dcim_cables_partial_update + description: Patch a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10922,10 +10739,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10934,17 +10751,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_console_ports_destroy - description: Delete a console port object. + operationId: dcim_cables_destroy + description: Delete a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10954,17 +10771,34 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/trace/: + /api/dcim/connected-device/: get: - operationId: dcim_console_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_connected_device_list + description: 'This endpoint allows a user to determine what device (if any) + is connected to a given peer device and peer + + interface. This is useful in a situation where a device boots with no configuration, + but can detect its neighbors + + via a protocol such as LLDP. Two query parameters must be included in the + request: + + + * `peer_device`: The name of the peer device + + * `peer_interface`: The name of the peer interface' parameters: - - in: path - name: id + - in: query + name: peer_device schema: - type: integer - description: A unique integer value identifying this console port. + type: string + description: The name of the peer device + required: true + - in: query + name: peer_interface + schema: + type: string + description: The name of the peer interface required: true tags: - dcim @@ -10976,12 +10810,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + type: array + items: + $ref: '#/components/schemas/Device' description: '' - /api/dcim/console-server-port-templates/: + /api/dcim/console-port-templates/: get: - operationId: dcim_console_server_port_templates_list - description: Get a list of console server port template objects. + operationId: dcim_console_port_templates_list + description: Get a list of console port template objects. parameters: - in: query name: created @@ -11155,26 +10991,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -11411,26 +11227,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -11585,21 +11381,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' + $ref: '#/components/schemas/PaginatedConsolePortTemplateList' description: '' post: - operationId: dcim_console_server_port_templates_create - description: Post a list of console server port template objects. + operationId: dcim_console_port_templates_create + description: Post a list of console port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11609,11 +11405,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_console_server_port_templates_bulk_update - description: Put a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_update + description: Put a list of console port template objects. tags: - dcim requestBody: @@ -11622,12 +11418,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11639,11 +11435,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_console_server_port_templates_bulk_partial_update - description: Patch a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_partial_update + description: Patch a list of console port template objects. tags: - dcim requestBody: @@ -11652,12 +11448,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11669,11 +11465,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_console_server_port_templates_bulk_destroy - description: Delete a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_destroy + description: Delete a list of console port template objects. tags: - dcim requestBody: @@ -11682,12 +11478,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11695,16 +11491,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-port-templates/{id}/: + /api/dcim/console-port-templates/{id}/: get: - operationId: dcim_console_server_port_templates_retrieve - description: Get a console server port template object. + operationId: dcim_console_port_templates_retrieve + description: Get a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11716,17 +11512,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_console_server_port_templates_update - description: Put a console server port template object. + operationId: dcim_console_port_templates_update + description: Put a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11734,10 +11530,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11747,17 +11543,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_console_server_port_templates_partial_update - description: Patch a console server port template object. + operationId: dcim_console_port_templates_partial_update + description: Patch a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11765,10 +11561,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -11777,17 +11573,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_console_server_port_templates_destroy - description: Delete a console server port template object. + operationId: dcim_console_port_templates_destroy + description: Delete a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11797,10 +11593,10 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/: + /api/dcim/console-ports/: get: - operationId: dcim_console_server_ports_list - description: Get a list of console server port objects. + operationId: dcim_console_ports_list + description: Get a list of console port objects. parameters: - in: query name: cable_end @@ -12042,6 +11838,60 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -12500,8 +12350,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -12509,62 +12358,23 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -12590,8 +12400,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -12599,8 +12408,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -12608,8 +12416,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -12617,8 +12424,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -12792,21 +12598,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortList' + $ref: '#/components/schemas/PaginatedConsolePortList' description: '' post: - operationId: dcim_console_server_ports_create - description: Post a list of console server port objects. + operationId: dcim_console_ports_create + description: Post a list of console port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -12816,11 +12622,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_server_ports_bulk_update - description: Put a list of console server port objects. + operationId: dcim_console_ports_bulk_update + description: Put a list of console port objects. tags: - dcim requestBody: @@ -12829,12 +12635,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12846,11 +12652,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_server_ports_bulk_partial_update - description: Patch a list of console server port objects. + operationId: dcim_console_ports_bulk_partial_update + description: Patch a list of console port objects. tags: - dcim requestBody: @@ -12859,12 +12665,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12876,11 +12682,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_server_ports_bulk_destroy - description: Delete a list of console server port objects. + operationId: dcim_console_ports_bulk_destroy + description: Delete a list of console port objects. tags: - dcim requestBody: @@ -12889,12 +12695,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12902,16 +12708,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/: + /api/dcim/console-ports/{id}/: get: - operationId: dcim_console_server_ports_retrieve - description: Get a console server port object. + operationId: dcim_console_ports_retrieve + description: Get a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12923,17 +12729,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_server_ports_update - description: Put a console server port object. + operationId: dcim_console_ports_update + description: Put a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12941,10 +12747,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -12954,17 +12760,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_server_ports_partial_update - description: Patch a console server port object. + operationId: dcim_console_ports_partial_update + description: Patch a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12972,10 +12778,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -12984,17 +12790,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_server_ports_destroy - description: Delete a console server port object. + operationId: dcim_console_ports_destroy + description: Delete a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -13004,9 +12810,9 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/trace/: + /api/dcim/console-ports/{id}/trace/: get: - operationId: dcim_console_server_ports_trace_retrieve + operationId: dcim_console_ports_trace_retrieve description: Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). parameters: @@ -13014,7 +12820,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -13026,12 +12832,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' - /api/dcim/device-bay-templates/: + /api/dcim/console-server-port-templates/: get: - operationId: dcim_device_bay_templates_list - description: Get a list of device bay template objects. + operationId: dcim_console_server_port_templates_list + description: Get a list of console server port template objects. parameters: - in: query name: created @@ -13191,6 +12997,7 @@ paths: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13200,24 +13007,7 @@ paths: type: array items: type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13437,6 +13227,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -13538,6 +13348,44 @@ paths: schema: type: string description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -13553,21 +13401,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' + $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' description: '' post: - operationId: dcim_device_bay_templates_create - description: Post a list of device bay template objects. + operationId: dcim_console_server_port_templates_create + description: Post a list of console server port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13577,11 +13425,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_device_bay_templates_bulk_update - description: Put a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_update + description: Put a list of console server port template objects. tags: - dcim requestBody: @@ -13590,12 +13438,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13607,11 +13455,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_device_bay_templates_bulk_partial_update - description: Patch a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_partial_update + description: Patch a list of console server port template objects. tags: - dcim requestBody: @@ -13620,12 +13468,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13637,11 +13485,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_device_bay_templates_bulk_destroy - description: Delete a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_destroy + description: Delete a list of console server port template objects. tags: - dcim requestBody: @@ -13650,12 +13498,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13663,16 +13511,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bay-templates/{id}/: + /api/dcim/console-server-port-templates/{id}/: get: - operationId: dcim_device_bay_templates_retrieve - description: Get a device bay template object. + operationId: dcim_console_server_port_templates_retrieve + description: Get a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13684,17 +13532,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_device_bay_templates_update - description: Put a device bay template object. + operationId: dcim_console_server_port_templates_update + description: Put a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13702,10 +13550,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13715,17 +13563,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_device_bay_templates_partial_update - description: Patch a device bay template object. + operationId: dcim_console_server_port_templates_partial_update + description: Patch a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13733,10 +13581,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13745,17 +13593,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_device_bay_templates_destroy - description: Delete a device bay template object. + operationId: dcim_console_server_port_templates_destroy + description: Delete a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13765,11 +13613,61 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/: + /api/dcim/console-server-ports/: get: - operationId: dcim_device_bays_list - description: Get a list of device bay objects. + operationId: dcim_console_server_ports_list + description: Get a list of console server port objects. parameters: + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -13960,6 +13858,60 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -14054,46 +14006,6 @@ paths: format: int32 explode: true style: form - - in: query - name: installed_device - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device__n - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device_id - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - - in: query - name: installed_device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - in: query name: label schema: @@ -14283,11 +14195,35 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -14372,6 +14308,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -14430,8 +14370,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -14439,8 +14378,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -14448,8 +14386,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -14457,132 +14394,177 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: site schema: type: array items: type: string - description: Device role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role__n + name: site__n schema: type: array items: type: string - description: Device role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role_id + name: site_group schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: site_group__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: site + name: site_group_id schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: site_group_id__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: site_id schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group__n + name: site_id__n schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group_id + name: speed schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + enum: + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: site_group_id__n + name: speed__n schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + enum: + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: site_id + name: tag schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: tag__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: type schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type explode: true style: form - in: query - name: tag__n + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type explode: true style: form - in: query @@ -14636,21 +14618,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayList' + $ref: '#/components/schemas/PaginatedConsoleServerPortList' description: '' post: - operationId: dcim_device_bays_create - description: Post a list of device bay objects. + operationId: dcim_console_server_ports_create + description: Post a list of console server port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14660,11 +14642,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_bays_bulk_update - description: Put a list of device bay objects. + operationId: dcim_console_server_ports_bulk_update + description: Put a list of console server port objects. tags: - dcim requestBody: @@ -14673,12 +14655,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14690,11 +14672,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_bays_bulk_partial_update - description: Patch a list of device bay objects. + operationId: dcim_console_server_ports_bulk_partial_update + description: Patch a list of console server port objects. tags: - dcim requestBody: @@ -14703,12 +14685,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14720,11 +14702,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_bays_bulk_destroy - description: Delete a list of device bay objects. + operationId: dcim_console_server_ports_bulk_destroy + description: Delete a list of console server port objects. tags: - dcim requestBody: @@ -14733,12 +14715,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14746,16 +14728,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/{id}/: + /api/dcim/console-server-ports/{id}/: get: - operationId: dcim_device_bays_retrieve - description: Get a device bay object. + operationId: dcim_console_server_ports_retrieve + description: Get a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14767,17 +14749,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_bays_update - description: Put a device bay object. + operationId: dcim_console_server_ports_update + description: Put a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14785,10 +14767,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14798,17 +14780,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_bays_partial_update - description: Patch a device bay object. + operationId: dcim_console_server_ports_partial_update + description: Patch a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14816,10 +14798,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -14828,17 +14810,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_bays_destroy - description: Delete a device bay object. + operationId: dcim_console_server_ports_destroy + description: Delete a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14848,115 +14830,35 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/: + /api/dcim/console-server-ports/{id}/trace/: get: - operationId: dcim_device_roles_list - description: Get a list of device role objects. + operationId: dcim_console_server_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: config_template_id - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: config_template_id__n + - in: path + name: id schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form + type: integer + description: A unique integer value identifying this console server port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPort' + description: '' + /api/dcim/device-bay-templates/: + get: + operationId: dcim_device_bay_templates_list + description: Get a list of device bay template objects. + parameters: - in: query name: created schema: @@ -15109,6 +15011,24 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -15168,81 +15088,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -15250,11 +15156,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -15262,7 +15164,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -15270,80 +15172,81 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: name schema: type: array items: @@ -15351,11 +15254,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: name__empty schema: type: boolean - in: query - name: slug__ic + name: name__ic schema: type: array items: @@ -15363,7 +15266,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: name__ie schema: type: array items: @@ -15371,7 +15274,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__iew schema: type: array items: @@ -15379,7 +15282,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__isw schema: type: array items: @@ -15387,7 +15290,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__n schema: type: array items: @@ -15395,7 +15298,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__nic schema: type: array items: @@ -15403,7 +15306,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__nie schema: type: array items: @@ -15411,7 +15314,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__niew schema: type: array items: @@ -15419,38 +15322,35 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: tag + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: vm_role - schema: - type: boolean tags: - dcim security: @@ -15461,21 +15361,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceRoleList' + $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' description: '' post: - operationId: dcim_device_roles_create - description: Post a list of device role objects. + operationId: dcim_device_bay_templates_create + description: Post a list of device bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15485,11 +15385,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_device_roles_bulk_update - description: Put a list of device role objects. + operationId: dcim_device_bay_templates_bulk_update + description: Put a list of device bay template objects. tags: - dcim requestBody: @@ -15498,12 +15398,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15515,11 +15415,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_device_roles_bulk_partial_update - description: Patch a list of device role objects. + operationId: dcim_device_bay_templates_bulk_partial_update + description: Patch a list of device bay template objects. tags: - dcim requestBody: @@ -15528,12 +15428,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15545,11 +15445,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_device_roles_bulk_destroy - description: Delete a list of device role objects. + operationId: dcim_device_bay_templates_bulk_destroy + description: Delete a list of device bay template objects. tags: - dcim requestBody: @@ -15558,12 +15458,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15571,16 +15471,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/{id}/: + /api/dcim/device-bay-templates/{id}/: get: - operationId: dcim_device_roles_retrieve - description: Get a device role object. + operationId: dcim_device_bay_templates_retrieve + description: Get a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15592,17 +15492,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_device_roles_update - description: Put a device role object. + operationId: dcim_device_bay_templates_update + description: Put a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15610,10 +15510,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15623,17 +15523,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_device_roles_partial_update - description: Patch a device role object. + operationId: dcim_device_bay_templates_partial_update + description: Patch a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15641,10 +15541,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -15653,17 +15553,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_device_roles_destroy - description: Delete a device role object. + operationId: dcim_device_bay_templates_destroy + description: Delete a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15673,189 +15573,11 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/: + /api/dcim/device-bays/: get: - operationId: dcim_device_types_list - description: Get a list of device type objects. + operationId: dcim_device_bays_list + description: Get a list of device bay objects. parameters: - - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: console_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__empty - schema: - type: boolean - - in: query - name: console_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_port_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_ports - schema: - type: boolean - description: Has console ports - - in: query - name: console_server_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__empty - schema: - type: boolean - - in: query - name: console_server_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_port_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: console_server_ports - schema: - type: boolean - description: Has console server ports - in: query name: created schema: @@ -15924,44 +15646,6 @@ paths: schema: type: string format: uuid - - in: query - name: default_platform - schema: - type: array - items: - type: string - description: Default platform (slug) - explode: true - style: form - - in: query - name: default_platform__n - schema: - type: array - items: - type: string - description: Default platform (slug) - explode: true - style: form - - in: query - name: default_platform_id - schema: - type: array - items: - type: integer - nullable: true - description: Default platform (ID) - explode: true - style: form - - in: query - name: default_platform_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Default platform (ID) - explode: true - style: form - in: query name: description schema: @@ -16047,140 +15731,133 @@ paths: explode: true style: form - in: query - name: device_bay_template_count + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: device_bay_template_count__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: device_bay_template_count__gt + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: device_bay_template_count__gte + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: device_bay_template_count__lt + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: device_bay_template_count__lte + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: device_bay_template_count__n + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: device_bays - schema: - type: boolean - description: Has device bays - - in: query - name: exclude_from_utilization - schema: - type: boolean - - in: query - name: front_port_template_count + name: device_role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: front_port_template_count__empty + name: device_status schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query - name: front_port_template_count__gt + name: device_status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: front_port_template_count__gte + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: front_port_template_count__lt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: front_port_template_count__lte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: front_port_template_count__n + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - - in: query - name: has_front_image - schema: - type: boolean - description: Has a front image - - in: query - name: has_rear_image - schema: - type: boolean - description: Has a rear image - in: query name: id schema: @@ -16240,135 +15917,129 @@ paths: explode: true style: form - in: query - name: interface_template_count + name: installed_device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: interface_template_count__empty - schema: - type: boolean - - in: query - name: interface_template_count__gt + name: installed_device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: interface_template_count__gte + name: installed_device_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_template_count__lt + name: installed_device_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_template_count__lte + name: label schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_template_count__n + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_template_count + name: label__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__empty - schema: - type: boolean - - in: query - name: inventory_item_template_count__gt + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__gte + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__n + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_items + name: label__niew schema: - type: boolean - description: Has inventory items + type: array + items: + type: string + explode: true + style: form - in: query - name: is_full_depth + name: label__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -16439,43 +16110,48 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: model + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -16483,11 +16159,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: name__empty schema: type: boolean - in: query - name: model__ic + name: name__ic schema: type: array items: @@ -16495,7 +16171,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -16503,7 +16179,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -16511,7 +16187,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -16519,7 +16195,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -16527,7 +16203,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -16535,7 +16211,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -16543,7 +16219,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -16551,81 +16227,13 @@ paths: explode: true style: form - in: query - name: model__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_bay_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__empty - schema: - type: boolean - - in: query - name: module_bay_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bays - schema: - type: boolean - description: Has module bays - name: offset required: false in: query @@ -16639,51 +16247,48 @@ paths: schema: type: string - in: query - name: part_number - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: part_number__ic + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: part_number__ie + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: part_number__iew + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: part_number__isw + name: rack_id__n schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: part_number__n + name: region schema: type: array items: @@ -16691,7 +16296,7 @@ paths: explode: true style: form - in: query - name: part_number__nic + name: region__n schema: type: array items: @@ -16699,7 +16304,7 @@ paths: explode: true style: form - in: query - name: part_number__nie + name: region_id schema: type: array items: @@ -16707,7 +16312,7 @@ paths: explode: true style: form - in: query - name: part_number__niew + name: region_id__n schema: type: array items: @@ -16715,237 +16320,75 @@ paths: explode: true style: form - in: query - name: part_number__nisw + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlet_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__empty - schema: - type: boolean - - in: query - name: power_outlet_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__empty - schema: - type: boolean - - in: query - name: power_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__n + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port_template_count + name: site_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__empty - schema: - type: boolean - - in: query - name: rear_port_template_count__gt + name: site_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__gte + name: site_group_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__lt + name: site_group_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__lte + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: rear_port_template_count__n + name: site_id__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string + description: Site (ID) explode: true style: form - in: query - name: slug__iew + name: tag schema: type: array items: @@ -16953,7 +16396,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tag__n schema: type: array items: @@ -16961,248 +16404,46 @@ paths: explode: true style: form - in: query - name: slug__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: slug__nic + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: slug__nie + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: slug__niew + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: slug__nisw + name: virtual_chassis_id__n schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: subdevice_role - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - in: query - name: subdevice_role__n - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: u_height - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__empty - schema: - type: boolean - - in: query - name: u_height__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' tags: - dcim security: @@ -17213,21 +16454,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceTypeList' + $ref: '#/components/schemas/PaginatedDeviceBayList' description: '' post: - operationId: dcim_device_types_create - description: Post a list of device type objects. + operationId: dcim_device_bays_create + description: Post a list of device bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17237,11 +16478,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_types_bulk_update - description: Put a list of device type objects. + operationId: dcim_device_bays_bulk_update + description: Put a list of device bay objects. tags: - dcim requestBody: @@ -17250,12 +16491,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17267,11 +16508,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_types_bulk_partial_update - description: Patch a list of device type objects. + operationId: dcim_device_bays_bulk_partial_update + description: Patch a list of device bay objects. tags: - dcim requestBody: @@ -17280,12 +16521,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17297,11 +16538,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_types_bulk_destroy - description: Delete a list of device type objects. + operationId: dcim_device_bays_bulk_destroy + description: Delete a list of device bay objects. tags: - dcim requestBody: @@ -17310,12 +16551,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17323,16 +16564,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/{id}/: + /api/dcim/device-bays/{id}/: get: - operationId: dcim_device_types_retrieve - description: Get a device type object. + operationId: dcim_device_bays_retrieve + description: Get a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17344,17 +16585,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_types_update - description: Put a device type object. + operationId: dcim_device_bays_update + description: Put a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17362,10 +16603,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17375,17 +16616,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_types_partial_update - description: Patch a device type object. + operationId: dcim_device_bays_partial_update + description: Patch a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17393,10 +16634,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -17405,17 +16646,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_types_destroy - description: Delete a device type object. + operationId: dcim_device_bays_destroy + description: Delete a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17425,65 +16666,13 @@ paths: responses: '204': description: No response body - /api/dcim/devices/: + /api/dcim/device-roles/: get: - operationId: dcim_devices_list - description: Get a list of device objects. + operationId: dcim_device_roles_list + description: Get a list of device role objects. parameters: - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: asset_tag + name: color schema: type: array items: @@ -17491,11 +16680,11 @@ paths: explode: true style: form - in: query - name: asset_tag__empty + name: color__empty schema: type: boolean - in: query - name: asset_tag__ic + name: color__ic schema: type: array items: @@ -17503,7 +16692,7 @@ paths: explode: true style: form - in: query - name: asset_tag__ie + name: color__ie schema: type: array items: @@ -17511,7 +16700,7 @@ paths: explode: true style: form - in: query - name: asset_tag__iew + name: color__iew schema: type: array items: @@ -17519,7 +16708,7 @@ paths: explode: true style: form - in: query - name: asset_tag__isw + name: color__isw schema: type: array items: @@ -17527,7 +16716,7 @@ paths: explode: true style: form - in: query - name: asset_tag__n + name: color__n schema: type: array items: @@ -17535,7 +16724,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nic + name: color__nic schema: type: array items: @@ -17543,7 +16732,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nie + name: color__nie schema: type: array items: @@ -17551,7 +16740,7 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: color__niew schema: type: array items: @@ -17559,7 +16748,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: color__nisw schema: type: array items: @@ -17567,227 +16756,237 @@ paths: explode: true style: form - in: query - name: cluster_id + name: config_template_id schema: type: array items: type: integer nullable: true - description: VM cluster (ID) + description: Config template (ID) explode: true style: form - in: query - name: cluster_id__n + name: config_template_id__n schema: type: array items: type: integer nullable: true - description: VM cluster (ID) + description: Config template (ID) explode: true style: form - in: query - name: config_template_id + name: created schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string + format: date-time explode: true style: form - in: query - name: config_template_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string + format: date-time explode: true style: form - in: query - name: console_port_count + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__empty - schema: - type: boolean - - in: query - name: console_port_count__gt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__gte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__lt + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__lte + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_ports + name: description__empty schema: type: boolean - description: Has console ports - in: query - name: console_server_port_count + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__empty + name: description__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: console_server_port_count__gt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__gte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__n + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports + name: description__niew schema: - type: boolean - description: Has console server ports + type: array + items: + type: string + explode: true + style: form - in: query - name: contact + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: id__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: id__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: last_updated schema: type: array items: @@ -17796,7 +16995,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -17805,7 +17004,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -17814,7 +17013,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -17823,7 +17022,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -17832,7 +17031,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -17841,7 +17040,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -17849,13 +17048,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -17863,11 +17068,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -17875,7 +17080,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -17883,7 +17088,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -17891,7 +17096,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -17899,7 +17104,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -17907,7 +17112,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -17915,7 +17120,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -17923,7 +17128,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -17931,138 +17136,420 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device_bay_count + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__empty + name: slug__empty schema: type: boolean - in: query - name: device_bay_count__gt + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__gte + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__lt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__lte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__n + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bays + name: slug__nic schema: - type: boolean - description: Has device bays + type: array + items: + type: string + explode: true + style: form - in: query - name: device_type + name: slug__nie schema: type: array items: type: string - description: Device type (slug) explode: true style: form - in: query - name: device_type__n + name: slug__niew schema: type: array items: type: string - description: Device type (slug) explode: true style: form - in: query - name: device_type_id + name: slug__nisw schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: tag schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: face + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request schema: type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face + format: uuid + - in: query + name: vm_role + schema: + type: boolean + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceRoleList' + description: '' + post: + operationId: dcim_device_roles_create + description: Post a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + put: + operationId: dcim_device_roles_bulk_update + description: Put a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRole' + description: '' + patch: + operationId: dcim_device_roles_bulk_partial_update + description: Patch a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRole' + description: '' + delete: + operationId: dcim_device_roles_bulk_destroy + description: Delete a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-roles/{id}/: + get: + operationId: dcim_device_roles_retrieve + description: Get a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + put: + operationId: dcim_device_roles_update + description: Put a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + patch: + operationId: dcim_device_roles_partial_update + description: Patch a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDeviceRoleRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + delete: + operationId: dcim_device_roles_destroy + description: Delete a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-types/: + get: + operationId: dcim_device_types_list + description: Get a list of device type objects. + parameters: + - in: query + name: airflow + schema: + type: string + x-spec-enum-id: 58e389e240a5e53d enum: - - front - - rear - description: '* `front` - Front + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `rear` - Rear' + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: face__n + name: airflow__n schema: type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face + x-spec-enum-id: 58e389e240a5e53d enum: - - front - - rear - description: '* `front` - Front + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `rear` - Rear' + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: front_port_count + name: console_port_template_count schema: type: array items: @@ -18071,11 +17558,11 @@ paths: explode: true style: form - in: query - name: front_port_count__empty + name: console_port_template_count__empty schema: type: boolean - in: query - name: front_port_count__gt + name: console_port_template_count__gt schema: type: array items: @@ -18084,7 +17571,7 @@ paths: explode: true style: form - in: query - name: front_port_count__gte + name: console_port_template_count__gte schema: type: array items: @@ -18093,7 +17580,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lt + name: console_port_template_count__lt schema: type: array items: @@ -18102,7 +17589,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lte + name: console_port_template_count__lte schema: type: array items: @@ -18111,7 +17598,7 @@ paths: explode: true style: form - in: query - name: front_port_count__n + name: console_port_template_count__n schema: type: array items: @@ -18120,22 +17607,12 @@ paths: explode: true style: form - in: query - name: has_oob_ip - schema: - type: boolean - description: Has an out-of-band IP - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: has_virtual_device_context + name: console_ports schema: type: boolean - description: Has virtual device context + description: Has console ports - in: query - name: id + name: console_server_port_template_count schema: type: array items: @@ -18144,20 +17621,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: console_server_port_template_count__empty schema: type: boolean - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte + name: console_server_port_template_count__gt schema: type: array items: @@ -18166,7 +17634,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: console_server_port_template_count__gte schema: type: array items: @@ -18175,7 +17643,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: console_server_port_template_count__lt schema: type: array items: @@ -18184,7 +17652,7 @@ paths: explode: true style: form - in: query - name: id__n + name: console_server_port_template_count__lte schema: type: array items: @@ -18193,7 +17661,7 @@ paths: explode: true style: form - in: query - name: interface_count + name: console_server_port_template_count__n schema: type: array items: @@ -18202,471 +17670,458 @@ paths: explode: true style: form - in: query - name: interface_count__empty + name: console_server_ports schema: type: boolean + description: Has console server ports - in: query - name: interface_count__gt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__gte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__lt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__lte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__n + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_count + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__empty + name: created__n schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: inventory_item_count__gt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: default_platform schema: type: array items: - type: integer - format: int32 + type: string + description: Default platform (slug) explode: true style: form - in: query - name: inventory_item_count__gte + name: default_platform__n schema: type: array items: - type: integer - format: int32 + type: string + description: Default platform (slug) explode: true style: form - in: query - name: inventory_item_count__lt + name: default_platform_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Default platform (ID) explode: true style: form - in: query - name: inventory_item_count__lte + name: default_platform_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Default platform (ID) explode: true style: form - in: query - name: inventory_item_count__n + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: is_full_depth + name: description__empty schema: type: boolean - description: Is full depth - in: query - name: last_updated + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: latitude + name: description__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt + name: description__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__gte + name: device_bay_template_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: latitude__lt + name: device_bay_template_count__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: latitude__lte + name: device_bay_template_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: latitude__n + name: device_bay_template_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: local_context_data - schema: - type: boolean - description: Has local config context data - - in: query - name: location_id + name: device_bay_template_count__lt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: device_bay_template_count__lte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: longitude + name: device_bay_template_count__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__empty + name: device_bays schema: type: boolean + description: Has device bays - in: query - name: longitude__gt + name: exclude_from_utilization schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: longitude__gte + name: front_port_template_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lt + name: front_port_template_count__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: longitude__lte + name: front_port_template_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__n + name: front_port_template_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: mac_address + name: front_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__ic + name: front_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__ie + name: front_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__iew + name: has_front_image schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has a front image - in: query - name: mac_address__isw + name: has_rear_image + schema: + type: boolean + description: Has a rear image + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer + name: interface_template_count schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer__n + name: interface_template_count__empty + schema: + type: boolean + - in: query + name: interface_template_count__gt schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer_id + name: interface_template_count__gte schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: manufacturer_id__n + name: interface_template_count__lt schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: model + name: interface_template_count__lte schema: type: array items: - type: string - description: Device model (slug) + type: integer + format: int32 explode: true style: form - in: query - name: model__n + name: interface_template_count__n schema: type: array items: - type: string - description: Device model (slug) + type: integer + format: int32 explode: true style: form - in: query - name: modified_by_request + name: interfaces schema: - type: string - format: uuid + type: boolean + description: Has interfaces - in: query - name: module_bay_count + name: inventory_item_template_count schema: type: array items: @@ -18675,11 +18130,11 @@ paths: explode: true style: form - in: query - name: module_bay_count__empty + name: inventory_item_template_count__empty schema: type: boolean - in: query - name: module_bay_count__gt + name: inventory_item_template_count__gt schema: type: array items: @@ -18688,7 +18143,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__gte + name: inventory_item_template_count__gte schema: type: array items: @@ -18697,7 +18152,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__lt + name: inventory_item_template_count__lt schema: type: array items: @@ -18706,7 +18161,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__lte + name: inventory_item_template_count__lte schema: type: array items: @@ -18715,7 +18170,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__n + name: inventory_item_template_count__n schema: type: array items: @@ -18724,263 +18179,210 @@ paths: explode: true style: form - in: query - name: module_bays + name: inventory_items schema: type: boolean - description: Has module bays - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form + description: Has inventory items - in: query - name: name__empty + name: is_full_depth schema: type: boolean - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - in: query - name: oob_ip_id - schema: - type: array - items: - type: integer - description: OOB IP (ID) - explode: true - style: form - - in: query - name: oob_ip_id__n + name: manufacturer schema: type: array items: - type: integer - description: OOB IP (ID) + type: string + description: Manufacturer (slug) explode: true style: form - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent_bay_id + name: manufacturer__n schema: type: array items: - type: integer - description: Parent bay (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: parent_bay_id__n + name: manufacturer_id schema: type: array items: type: integer - description: Parent bay (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: parent_device_id + name: manufacturer_id__n schema: type: array items: type: integer - description: Parent Device (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: parent_device_id__n + name: model schema: type: array items: - type: integer - description: Parent Device (ID) + type: string explode: true style: form - in: query - name: pass_through_ports + name: model__empty schema: type: boolean - description: Has pass-through ports - in: query - name: platform + name: model__ic schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: model__ie schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: model__iew schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: model__isw schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: position + name: model__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__gt + name: model__nic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__gte + name: model__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lt + name: model__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lte + name: model__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__n + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: power_outlet_count + name: module_bay_template_count schema: type: array items: @@ -18989,11 +18391,11 @@ paths: explode: true style: form - in: query - name: power_outlet_count__empty + name: module_bay_template_count__empty schema: type: boolean - in: query - name: power_outlet_count__gt + name: module_bay_template_count__gt schema: type: array items: @@ -19002,7 +18404,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__gte + name: module_bay_template_count__gte schema: type: array items: @@ -19011,7 +18413,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__lt + name: module_bay_template_count__lt schema: type: array items: @@ -19020,7 +18422,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__lte + name: module_bay_template_count__lte schema: type: array items: @@ -19029,7 +18431,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__n + name: module_bay_template_count__n schema: type: array items: @@ -19038,134 +18440,126 @@ paths: explode: true style: form - in: query - name: power_outlets + name: module_bays schema: type: boolean - description: Has power outlets + description: Has module bays + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: power_port_count + name: part_number schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__empty + name: part_number__empty schema: type: boolean - in: query - name: power_port_count__gt + name: part_number__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__gte + name: part_number__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lt + name: part_number__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lte + name: part_number__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__n + name: part_number__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: primary_ip4_id + name: part_number__nic schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: part_number__nie schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: part_number__niew schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: part_number__nisw schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q + name: pass_through_ports schema: - type: string - description: Search + type: boolean + description: Has pass-through ports - in: query - name: rack_id + name: power_outlet_template_count schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rack_id__n + name: power_outlet_template_count__empty schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: boolean - in: query - name: rear_port_count + name: power_outlet_template_count__gt schema: type: array items: @@ -19174,11 +18568,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__empty - schema: - type: boolean - - in: query - name: rear_port_count__gt + name: power_outlet_template_count__gte schema: type: array items: @@ -19187,7 +18577,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__gte + name: power_outlet_template_count__lt schema: type: array items: @@ -19196,7 +18586,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lt + name: power_outlet_template_count__lte schema: type: array items: @@ -19205,7 +18595,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lte + name: power_outlet_template_count__n schema: type: array items: @@ -19214,7 +18604,12 @@ paths: explode: true style: form - in: query - name: rear_port_count__n + name: power_outlets + schema: + type: boolean + description: Has power outlets + - in: query + name: power_port_template_count schema: type: array items: @@ -19223,131 +18618,124 @@ paths: explode: true style: form - in: query - name: region + name: power_port_template_count__empty schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form + type: boolean - in: query - name: region__n + name: power_port_template_count__gt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: power_port_template_count__gte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: power_port_template_count__lt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: power_port_template_count__lte schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: power_port_template_count__n schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: power_ports schema: - type: array - items: - type: integer - description: Role (ID) - explode: true - style: form + type: boolean + description: Has power ports - in: query - name: role_id__n + name: q schema: - type: array - items: - type: integer - description: Role (ID) - explode: true - style: form + type: string + description: Search - in: query - name: serial + name: rear_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__empty + name: rear_port_template_count__empty schema: type: boolean - in: query - name: serial__ic + name: rear_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__ie + name: rear_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__iew + name: rear_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__isw + name: rear_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__n + name: rear_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__nic + name: slug schema: type: array items: @@ -19355,15 +18743,11 @@ paths: explode: true style: form - in: query - name: serial__nie + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: serial__niew + name: slug__ic schema: type: array items: @@ -19371,7 +18755,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: slug__ie schema: type: array items: @@ -19379,95 +18763,93 @@ paths: explode: true style: form - in: query - name: site + name: slug__iew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__isw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) explode: true style: form - in: query - name: site_group__n + name: slug__n schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: slug__nic schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: slug__nie schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: slug__niew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: status + name: subdevice_role schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' - in: query - name: status__n + name: subdevice_role__n schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' - in: query name: tag schema: @@ -19485,77 +18867,61 @@ paths: explode: true style: form - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n + name: u_height schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group + name: u_height__empty schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: boolean - in: query - name: tenant_group__n + name: u_height__gt schema: type: array items: - type: integer - description: Tenant Group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group_id + name: u_height__gte schema: type: array items: - type: integer - description: Tenant Group (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_group_id__n + name: u_height__lt schema: type: array items: - type: integer - description: Tenant Group (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_id + name: u_height__lte schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_id__n + name: u_height__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: number + format: double explode: true style: form - in: query @@ -19564,144 +18930,97 @@ paths: type: string format: uuid - in: query - name: vc_position - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__empty - schema: - type: boolean - - in: query - name: vc_position__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority + name: weight schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__empty + name: weight__empty schema: type: boolean - in: query - name: vc_priority__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_priority__gte + name: weight__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__lt + name: weight__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__lte + name: weight__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__n + name: weight__lte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_id + name: weight__n schema: type: array items: - type: integer - description: Virtual chassis (ID) + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_id__n + name: weight_unit schema: - type: array - items: - type: integer - description: Virtual chassis (ID) - explode: true - style: form + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: virtual_chassis_member + name: weight_unit__n schema: - type: boolean - description: Is a virtual chassis member + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -19712,21 +19031,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + $ref: '#/components/schemas/PaginatedDeviceTypeList' description: '' post: - operationId: dcim_devices_create - description: Post a list of device objects. + operationId: dcim_device_types_create + description: Post a list of device type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19736,11 +19055,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_devices_bulk_update - description: Put a list of device objects. + operationId: dcim_device_types_bulk_update + description: Put a list of device type objects. tags: - dcim requestBody: @@ -19749,12 +19068,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19766,11 +19085,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_devices_bulk_partial_update - description: Patch a list of device objects. + operationId: dcim_device_types_bulk_partial_update + description: Patch a list of device type objects. tags: - dcim requestBody: @@ -19779,12 +19098,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19796,11 +19115,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_devices_bulk_destroy - description: Delete a list of device objects. + operationId: dcim_device_types_bulk_destroy + description: Delete a list of device type objects. tags: - dcim requestBody: @@ -19809,12 +19128,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19822,16 +19141,16 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/: + /api/dcim/device-types/{id}/: get: - operationId: dcim_devices_retrieve - description: Get a device object. + operationId: dcim_device_types_retrieve + description: Get a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19843,17 +19162,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_devices_update - description: Put a device object. + operationId: dcim_device_types_update + description: Put a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19861,10 +19180,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19874,17 +19193,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_devices_partial_update - description: Patch a device object. + operationId: dcim_device_types_partial_update + description: Patch a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19892,10 +19211,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -19904,17 +19223,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_devices_destroy - description: Delete a device object. + operationId: dcim_device_types_destroy + description: Delete a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19924,55 +19243,65 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/render-config/: - post: - operationId: dcim_devices_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/dcim/devices/: + get: + operationId: dcim_devices_list + description: Get a list of device objects. parameters: - in: query - name: format + name: airflow schema: type: string + x-spec-enum-id: 58e389e240a5e53d enum: - - json - - txt - - in: path - name: id + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + - in: query + name: airflow__n schema: - type: integer - description: A unique integer value identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - /api/dcim/front-port-templates/: - get: - operationId: dcim_front_port_templates_list - description: Get a list of front port template objects. - parameters: + type: string + x-spec-enum-id: 58e389e240a5e53d + enum: + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: color + name: asset_tag schema: type: array items: @@ -19980,11 +19309,11 @@ paths: explode: true style: form - in: query - name: color__empty + name: asset_tag__empty schema: type: boolean - in: query - name: color__ic + name: asset_tag__ic schema: type: array items: @@ -19992,7 +19321,7 @@ paths: explode: true style: form - in: query - name: color__ie + name: asset_tag__ie schema: type: array items: @@ -20000,7 +19329,7 @@ paths: explode: true style: form - in: query - name: color__iew + name: asset_tag__iew schema: type: array items: @@ -20008,7 +19337,7 @@ paths: explode: true style: form - in: query - name: color__isw + name: asset_tag__isw schema: type: array items: @@ -20016,7 +19345,7 @@ paths: explode: true style: form - in: query - name: color__n + name: asset_tag__n schema: type: array items: @@ -20024,7 +19353,7 @@ paths: explode: true style: form - in: query - name: color__nic + name: asset_tag__nic schema: type: array items: @@ -20032,7 +19361,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: asset_tag__nie schema: type: array items: @@ -20040,7 +19369,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: asset_tag__niew schema: type: array items: @@ -20048,7 +19377,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: asset_tag__nisw schema: type: array items: @@ -20056,309 +19385,329 @@ paths: explode: true style: form - in: query - name: created + name: cluster_group schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__empty + name: cluster_group__n schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__gt + name: cluster_group_id schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: created__gte + name: cluster_group_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: created__lt + name: cluster_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: created__lte + name: cluster_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: created__n + name: config_template_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: created_by_request + name: config_template_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form - in: query - name: description + name: console_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: console_port_count__empty schema: type: boolean - in: query - name: description__ic + name: console_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: console_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: console_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: console_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: console_port_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: console_ports schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has console ports - in: query - name: description__nie + name: console_server_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: console_server_port_count__empty + schema: + type: boolean + - in: query + name: console_server_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: console_server_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: console_server_port_count__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: console_server_port_count__lte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id + name: console_server_port_count__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: console_server_ports + schema: + type: boolean + description: Has console server ports + - in: query + name: contact schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Contact explode: true style: form - in: query - name: id + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__lte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: label + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -20366,7 +19715,11 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -20374,7 +19727,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__ie schema: type: array items: @@ -20382,7 +19735,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__iew schema: type: array items: @@ -20390,238 +19743,273 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: device_bay_count schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: device_bay_count__empty schema: - type: string - format: uuid + type: boolean - in: query - name: module_type_id + name: device_bay_count__gt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: device_bay_count__gte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id + name: device_bay_count__lt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id__n + name: device_bay_count__lte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: name + name: device_bay_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: device_bays schema: type: boolean + description: Has device bays - in: query - name: name__ic + name: device_type schema: type: array items: type: string + description: Device type (slug) explode: true style: form - in: query - name: name__ie + name: device_type__n schema: type: array items: type: string + description: Device type (slug) explode: true style: form - in: query - name: name__iew + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: name__isw + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: name__n + name: face + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: face__n + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: front_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: front_port_count__empty + schema: + type: boolean + - in: query + name: front_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: front_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: front_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: front_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: front_port_count__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_oob_ip schema: - type: string + type: boolean + description: Has an out-of-band IP - in: query - name: q + name: has_primary_ip schema: - type: string - description: Search + type: boolean + description: Has a primary IP - in: query - name: rear_port_id + name: has_virtual_device_context + schema: + type: boolean + description: Has virtual device context + - in: query + name: id schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: rear_port_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: rear_port_position + name: id__gte schema: type: array items: @@ -20630,11 +20018,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty - schema: - type: boolean - - in: query - name: rear_port_position__gt + name: id__lt schema: type: array items: @@ -20643,7 +20027,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: id__lte schema: type: array items: @@ -20652,7 +20036,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: id__n schema: type: array items: @@ -20661,7 +20045,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: interface_count schema: type: array items: @@ -20670,7 +20054,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt schema: type: array items: @@ -20679,387 +20067,147 @@ paths: explode: true style: form - in: query - name: type + name: interface_count__gte schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: integer + format: int32 explode: true style: form - in: query - name: type__n + name: interface_count__lt schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontPortTemplateList' - description: '' - post: - operationId: dcim_front_port_templates_create - description: Post a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_bulk_update - description: Put a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_bulk_partial_update - description: Patch a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_bulk_destroy - description: Delete a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-port-templates/{id}/: - get: - operationId: dcim_front_port_templates_retrieve - description: Get a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_update - description: Put a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_partial_update - description: Patch a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_destroy - description: Delete a front port template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-ports/: - get: - operationId: dcim_front_ports_list - description: Get a list of front port objects. - parameters: - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: interface_count__lte schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cable_id__n + name: interface_count__n schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled + name: interfaces schema: type: boolean + description: Has interfaces - in: query - name: color + name: inventory_item_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: inventory_item_count__empty schema: type: boolean - in: query - name: color__ic + name: inventory_item_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__ie + name: inventory_item_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__iew + name: inventory_item_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__isw + name: inventory_item_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__n + name: inventory_item_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: is_full_depth + schema: + type: boolean + description: Is full depth + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: created + name: last_updated__lt schema: type: array items: @@ -21068,7 +20216,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__lte schema: type: array items: @@ -21077,7 +20225,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__n schema: type: array items: @@ -21086,60 +20234,76 @@ paths: explode: true style: form - in: query - name: created__gte + name: latitude schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lt + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lte + name: latitude__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__n + name: latitude__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created_by_request + name: latitude__lte schema: - type: string - format: uuid + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: description + name: latitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: description__empty + name: local_context_data schema: type: boolean + description: Has local config context data - in: query - name: description__ic + name: location_id schema: type: array items: @@ -21147,7 +20311,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: location_id__n schema: type: array items: @@ -21155,55 +20319,65 @@ paths: explode: true style: form - in: query - name: description__iew + name: longitude schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__isw + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__n + name: longitude__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nic + name: longitude__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nie + name: longitude__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__niew + name: longitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nisw + name: mac_address schema: type: array items: @@ -21211,199 +20385,201 @@ paths: explode: true style: form - in: query - name: device + name: mac_address__ic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: mac_address__ie schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: mac_address__iew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: mac_address__isw schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: mac_address__n schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: mac_address__nic schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: mac_address__nie schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: mac_address__niew schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: mac_address__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: manufacturer schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__gte + name: manufacturer__n schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__lt + name: manufacturer_id schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: id__lte + name: manufacturer_id__n schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: id__n + name: model schema: type: array items: - type: integer - format: int32 + type: string + description: Device model (slug) explode: true style: form - in: query - name: label + name: model__n schema: type: array items: type: string + description: Device model (slug) explode: true style: form - in: query - name: label__empty + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: label__ic + name: module_bay_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: module_bay_count__empty schema: - type: array - items: - type: string + type: boolean + - in: query + name: module_bay_count__gt + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: module_bay_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: module_bay_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: module_bay_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: module_bay_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: module_bays + schema: + type: boolean + description: Has module bays + - in: query + name: name schema: type: array items: @@ -21411,7 +20587,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -21419,7 +20599,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__ie schema: type: array items: @@ -21427,298 +20607,415 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - in: query - name: location + name: oob_ip_id schema: type: array items: - type: string - description: Location (slug) + type: integer + description: OOB IP (ID) explode: true style: form - in: query - name: location__n + name: oob_ip_id__n schema: type: array items: - type: string - description: Location (slug) + type: integer + description: OOB IP (ID) explode: true style: form + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: location_id + name: parent_bay_id schema: type: array items: type: integer - description: Location (ID) + description: Parent bay (ID) explode: true style: form - in: query - name: location_id__n + name: parent_bay_id__n schema: type: array items: type: integer - description: Location (ID) + description: Parent bay (ID) explode: true style: form - in: query - name: mark_connected + name: parent_device_id + schema: + type: array + items: + type: integer + description: Parent Device (ID) + explode: true + style: form + - in: query + name: parent_device_id__n + schema: + type: array + items: + type: integer + description: Parent Device (ID) + explode: true + style: form + - in: query + name: pass_through_ports schema: type: boolean + description: Has pass-through ports - in: query - name: modified_by_request + name: platform schema: - type: string - format: uuid + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form - in: query - name: module_id + name: platform__n + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform_id schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Platform (ID) explode: true style: form - in: query - name: module_id__n + name: platform_id__n schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Platform (ID) explode: true style: form - in: query - name: name + name: position schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__empty + name: position__empty schema: type: boolean - in: query - name: name__ic + name: position__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__ie + name: position__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__iew + name: position__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__isw + name: position__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__n + name: position__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__nic + name: power_outlet_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: power_outlet_count__empty + schema: + type: boolean + - in: query + name: power_outlet_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: power_outlet_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: power_outlet_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: occupied + name: power_outlet_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlet_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlets schema: type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + description: Has power outlets + - in: query + name: power_port_count schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_count__empty schema: - type: string + type: boolean - in: query - name: q + name: power_port_count__gt schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: rack + name: power_port_count__gte schema: type: array items: - type: string - description: Rack (name) + type: integer + format: int32 explode: true style: form - in: query - name: rack__n + name: power_port_count__lt schema: type: array items: - type: string - description: Rack (name) + type: integer + format: int32 explode: true style: form - in: query - name: rack_id + name: power_port_count__lte schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rack_id__n + name: power_port_count__n schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rear_port_id + name: power_ports + schema: + type: boolean + description: Has power ports + - in: query + name: primary_ip4_id schema: type: array items: type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rear_port_id__n + name: primary_ip4_id__n schema: type: array items: type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rear_port_position + name: primary_ip6_id + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id__n + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rear_port_count schema: type: array items: @@ -21727,11 +21024,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty + name: rear_port_count__empty schema: type: boolean - in: query - name: rear_port_position__gt + name: rear_port_count__gt schema: type: array items: @@ -21740,7 +21037,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: rear_port_count__gte schema: type: array items: @@ -21749,7 +21046,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: rear_port_count__lt schema: type: array items: @@ -21758,7 +21055,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: rear_port_count__lte schema: type: array items: @@ -21767,7 +21064,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: rear_port_count__n schema: type: array items: @@ -21780,8 +21077,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -21789,8 +21085,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -21798,8 +21093,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -21807,8 +21101,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -21817,7 +21110,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -21826,7 +21119,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -21835,7 +21128,7 @@ paths: type: array items: type: integer - description: Device role (ID) + description: Role (ID) explode: true style: form - in: query @@ -21844,7 +21137,91 @@ paths: type: array items: type: integer - description: Device role (ID) + description: Role (ID) + explode: true + style: form + - in: query + name: serial + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -21870,8 +21247,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -21879,8 +21255,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -21888,8 +21263,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -21897,8 +21271,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -21919,6 +21292,24 @@ paths: description: Site (ID) explode: true style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: tag schema: @@ -21936,21 +21327,73 @@ paths: explode: true style: form - in: query - name: type + name: tenant schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + description: Tenant (slug) explode: true style: form - in: query - name: type__n + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -21959,21 +21402,119 @@ paths: type: string format: uuid - in: query - name: virtual_chassis + name: vc_position schema: type: array items: - type: string - description: Virtual Chassis + type: integer + format: int32 explode: true style: form - in: query - name: virtual_chassis__n + name: vc_position__empty + schema: + type: boolean + - in: query + name: vc_position__gt schema: type: array items: - type: string - description: Virtual Chassis + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__empty + schema: + type: boolean + - in: query + name: vc_priority__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -21982,7 +21523,7 @@ paths: type: array items: type: integer - description: Virtual Chassis (ID) + description: Virtual chassis (ID) explode: true style: form - in: query @@ -21991,9 +21532,14 @@ paths: type: array items: type: integer - description: Virtual Chassis (ID) + description: Virtual chassis (ID) explode: true style: form + - in: query + name: virtual_chassis_member + schema: + type: boolean + description: Is a virtual chassis member tags: - dcim security: @@ -22004,21 +21550,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFrontPortList' + $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' description: '' post: - operationId: dcim_front_ports_create - description: Post a list of front port objects. + operationId: dcim_devices_create + description: Post a list of device objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22028,11 +21574,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_front_ports_bulk_update - description: Put a list of front port objects. + operationId: dcim_devices_bulk_update + description: Put a list of device objects. tags: - dcim requestBody: @@ -22041,12 +21587,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22058,11 +21604,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_front_ports_bulk_partial_update - description: Patch a list of front port objects. + operationId: dcim_devices_bulk_partial_update + description: Patch a list of device objects. tags: - dcim requestBody: @@ -22071,12 +21617,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22088,11 +21634,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_front_ports_bulk_destroy - description: Delete a list of front port objects. + operationId: dcim_devices_bulk_destroy + description: Delete a list of device objects. tags: - dcim requestBody: @@ -22101,12 +21647,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22114,16 +21660,16 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/: + /api/dcim/devices/{id}/: get: - operationId: dcim_front_ports_retrieve - description: Get a front port object. + operationId: dcim_devices_retrieve + description: Get a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22135,17 +21681,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_front_ports_update - description: Put a front port object. + operationId: dcim_devices_update + description: Put a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22153,10 +21699,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22166,17 +21712,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_front_ports_partial_update - description: Patch a front port object. + operationId: dcim_devices_partial_update + description: Patch a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22184,10 +21730,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -22196,17 +21742,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_front_ports_destroy - description: Delete a front port object. + operationId: dcim_devices_destroy + description: Delete a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22216,19 +21762,35 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/paths/: - get: - operationId: dcim_front_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + /api/dcim/devices/{id}/render-config/: + post: + operationId: dcim_devices_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -22237,27 +21799,98 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' - /api/dcim/interface-templates/: + /api/dcim/front-port-templates/: get: - operationId: dcim_interface_templates_list - description: Get a list of interface template objects. + operationId: dcim_front_port_templates_list + description: Get a list of front port template objects. parameters: - in: query - name: bridge_id + name: color schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: bridge_id__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -22432,30 +22065,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -22667,10 +22276,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mgmt_only - schema: - type: boolean - in: query name: modified_by_request schema: @@ -22696,26 +22301,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -22813,64 +22398,82 @@ paths: schema: type: string - in: query - name: poe_mode + name: q + schema: + type: string + description: Search + - in: query + name: rear_port_id schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer explode: true style: form - in: query - name: poe_mode__n + name: rear_port_id__n schema: type: array items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + type: integer explode: true style: form - in: query - name: poe_type + name: rear_port_position schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + format: int32 explode: true style: form - in: query - name: poe_type__n + name: rear_port_position__empty + schema: + type: boolean + - in: query + name: rear_port_position__gt schema: type: array items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 + type: integer + format: int32 explode: true style: form - in: query - name: q + name: rear_port_position__gte schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: rf_role + name: rear_port_position__lt schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + format: int32 explode: true style: form - in: query - name: rf_role__n + name: rear_port_position__lte schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_position__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -22879,7 +22482,7 @@ paths: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -22888,7 +22491,7 @@ paths: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -22906,21 +22509,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceTemplateList' + $ref: '#/components/schemas/PaginatedFrontPortTemplateList' description: '' post: - operationId: dcim_interface_templates_create - description: Post a list of interface template objects. + operationId: dcim_front_port_templates_create + description: Post a list of front port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -22930,11 +22533,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' put: - operationId: dcim_interface_templates_bulk_update - description: Put a list of interface template objects. + operationId: dcim_front_port_templates_bulk_update + description: Put a list of front port template objects. tags: - dcim requestBody: @@ -22943,12 +22546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -22960,11 +22563,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' patch: - operationId: dcim_interface_templates_bulk_partial_update - description: Patch a list of interface template objects. + operationId: dcim_front_port_templates_bulk_partial_update + description: Patch a list of front port template objects. tags: - dcim requestBody: @@ -22973,12 +22576,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -22990,11 +22593,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' delete: - operationId: dcim_interface_templates_bulk_destroy - description: Delete a list of interface template objects. + operationId: dcim_front_port_templates_bulk_destroy + description: Delete a list of front port template objects. tags: - dcim requestBody: @@ -23003,12 +22606,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/FrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -23016,16 +22619,16 @@ paths: responses: '204': description: No response body - /api/dcim/interface-templates/{id}/: + /api/dcim/front-port-templates/{id}/: get: - operationId: dcim_interface_templates_retrieve - description: Get a interface template object. + operationId: dcim_front_port_templates_retrieve + description: Get a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23037,17 +22640,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' put: - operationId: dcim_interface_templates_update - description: Put a interface template object. + operationId: dcim_front_port_templates_update + description: Put a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23055,10 +22658,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' required: true security: - cookieAuth: [] @@ -23068,17 +22671,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' patch: - operationId: dcim_interface_templates_partial_update - description: Patch a interface template object. + operationId: dcim_front_port_templates_partial_update + description: Patch a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23086,10 +22689,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -23098,17 +22701,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/FrontPortTemplate' description: '' delete: - operationId: dcim_interface_templates_destroy - description: Delete a interface template object. + operationId: dcim_front_port_templates_destroy + description: Delete a front port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this front port template. required: true tags: - dcim @@ -23118,29 +22721,11 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/: + /api/dcim/front-ports/: get: - operationId: dcim_interfaces_list - description: Get a list of interface objects. + operationId: dcim_front_ports_list + description: Get a list of front port objects. parameters: - - in: query - name: bridge_id - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: bridge_id__n - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - in: query name: cable_end schema: @@ -23188,9 +22773,89 @@ paths: schema: type: boolean - in: query - name: connected + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty schema: type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -23382,107 +23047,97 @@ paths: explode: true style: form - in: query - name: device_type + name: device_role schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type__n + name: device_role__n schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type_id + name: device_role_id schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: device_type_id__n + name: device_role_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: duplex + name: device_status schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: duplex__n + name: device_status__n schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: id__gte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: id__lt + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: id__lte + name: id schema: type: array items: @@ -23491,7 +23146,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -23500,52 +23159,39 @@ paths: explode: true style: form - in: query - name: kind - schema: - type: string - description: Kind of interface - - in: query - name: l2vpn + name: id__gte schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn__n + name: id__lt schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn_id + name: id__lte schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query - name: l2vpn_id__n + name: id__n schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query @@ -23632,24 +23278,6 @@ paths: type: string explode: true style: form - - in: query - name: lag_id - schema: - type: array - items: - type: integer - description: LAG interface (ID) - explode: true - style: form - - in: query - name: lag_id__n - schema: - type: array - items: - type: integer - description: LAG interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -23755,128 +23383,10 @@ paths: description: Location (ID) explode: true style: form - - in: query - name: mac_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: mark_connected schema: type: boolean - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: @@ -23902,64 +23412,6 @@ paths: description: Module (ID) explode: true style: form - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty - schema: - type: boolean - - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: name schema: @@ -24060,60 +23512,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: parent_id - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: poe_mode - schema: - type: array - items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd - explode: true - style: form - - in: query - name: poe_mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd - explode: true - style: form - - in: query - name: poe_type - schema: - type: array - items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 - explode: true - style: form - - in: query - name: poe_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 - explode: true - style: form - in: query name: q schema: @@ -24156,231 +23554,109 @@ paths: explode: true style: form - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n + name: rear_port_id schema: type: array items: type: integer - description: Region (slug) explode: true style: form - in: query - name: region_id + name: rear_port_id__n schema: type: array items: type: integer - description: Region (ID) explode: true style: form - in: query - name: region_id__n + name: rear_port_position schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: rf_channel - schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel__n - schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel_frequency - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__empty - schema: - type: boolean - - in: query - name: rf_channel_frequency__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width - schema: - type: array - items: - type: number - format: double + format: int32 explode: true style: form - in: query - name: rf_channel_width__empty + name: rear_port_position__empty schema: type: boolean - in: query - name: rf_channel_width__gt + name: rear_port_position__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__gte + name: rear_port_position__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__lt + name: rear_port_position__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__lte + name: rear_port_position__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_channel_width__n + name: rear_port_position__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: rf_role + name: region schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: rf_role__n + name: region__n schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: role + name: region_id schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -24406,8 +23682,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -24415,8 +23690,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -24424,8 +23698,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -24433,8 +23706,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -24455,69 +23727,6 @@ paths: description: Site (ID) explode: true style: form - - in: query - name: speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: tag schema: @@ -24534,71 +23743,13 @@ paths: type: string explode: true style: form - - in: query - name: tx_power - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__empty - schema: - type: boolean - - in: query - name: tx_power__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: type schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -24607,7 +23758,7 @@ paths: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -24615,66 +23766,6 @@ paths: schema: type: string format: uuid - - in: query - name: vdc - schema: - type: array - items: - type: string - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc__n - schema: - type: array - items: - type: string - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_id - schema: - type: array - items: - type: integer - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_id__n - schema: - type: array - items: - type: integer - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_identifier - schema: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) - explode: true - style: form - - in: query - name: vdc_identifier__n - schema: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) - explode: true - style: form - in: query name: virtual_chassis schema: @@ -24711,191 +23802,6 @@ paths: description: Virtual Chassis (ID) explode: true style: form - - in: query - name: virtual_chassis_member - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: virtual_chassis_member_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: wireless_lan_id - schema: - type: array - items: - type: integer - description: Wireless LAN - explode: true - style: form - - in: query - name: wireless_lan_id__n - schema: - type: array - items: - type: integer - description: Wireless LAN - explode: true - style: form - - in: query - name: wireless_link_id - schema: - type: array - items: - type: integer - nullable: true - description: Wireless link - explode: true - style: form - - in: query - name: wireless_link_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Wireless link - explode: true - style: form - - in: query - name: wwn - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nisw - schema: - type: array - items: - type: string - explode: true - style: form tags: - dcim security: @@ -24906,21 +23812,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceList' + $ref: '#/components/schemas/PaginatedFrontPortList' description: '' post: - operationId: dcim_interfaces_create - description: Post a list of interface objects. + operationId: dcim_front_ports_create + description: Post a list of front port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -24930,11 +23836,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_interfaces_bulk_update - description: Put a list of interface objects. + operationId: dcim_front_ports_bulk_update + description: Put a list of front port objects. tags: - dcim requestBody: @@ -24943,12 +23849,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -24960,11 +23866,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: dcim_front_ports_bulk_partial_update + description: Patch a list of front port objects. tags: - dcim requestBody: @@ -24973,12 +23879,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -24990,11 +23896,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: dcim_front_ports_bulk_destroy + description: Delete a list of front port objects. tags: - dcim requestBody: @@ -25003,12 +23909,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -25016,16 +23922,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/: + /api/dcim/front-ports/{id}/: get: - operationId: dcim_interfaces_retrieve - description: Get a interface object. + operationId: dcim_front_ports_retrieve + description: Get a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25037,17 +23943,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_interfaces_update - description: Put a interface object. + operationId: dcim_front_ports_update + description: Put a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25055,10 +23961,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -25068,17 +23974,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_interfaces_partial_update - description: Patch a interface object. + operationId: dcim_front_ports_partial_update + description: Patch a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25086,10 +23992,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25098,17 +24004,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_interfaces_destroy - description: Delete a interface object. + operationId: dcim_front_ports_destroy + description: Delete a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25118,17 +24024,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/trace/: + /api/dcim/front-ports/{id}/paths/: get: - operationId: dcim_interfaces_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_front_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25140,75 +24045,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' - /api/dcim/inventory-item-roles/: + /api/dcim/interface-templates/: get: - operationId: dcim_inventory_item_roles_list - description: Get a list of inventory item role objects. + operationId: dcim_interface_templates_list + description: Get a list of interface template objects. parameters: - in: query - name: color + name: bridge_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: color__empty + name: bridge_id__n schema: - type: boolean + type: array + items: + type: integer + explode: true + style: form - in: query - name: color__ic + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -25216,7 +24145,11 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -25224,7 +24157,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__ie schema: type: array items: @@ -25232,135 +24165,145 @@ paths: explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: device_type_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query - name: description + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__empty + name: enabled schema: type: boolean - in: query - name: description__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: label schema: type: array items: @@ -25368,7 +24311,11 @@ paths: explode: true style: form - in: query - name: description__niew + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -25376,7 +24323,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: label__ie schema: type: array items: @@ -25384,61 +24331,59 @@ paths: explode: true style: form - in: query - name: id + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: label__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -25510,11 +24455,35 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mgmt_only + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -25612,108 +24581,82 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew + name: poe_mode schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: slug__isw + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: slug__n + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: slug__nic + name: poe_type__n schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: slug__nie + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__niew + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: slug__nisw + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: tag + name: type schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: tag__n + name: type__n schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query @@ -25731,21 +24674,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemRoleList' + $ref: '#/components/schemas/PaginatedInterfaceTemplateList' description: '' post: - operationId: dcim_inventory_item_roles_create - description: Post a list of inventory item role objects. - tags: + operationId: dcim_interface_templates_create + description: Post a list of interface template objects. + tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25755,11 +24698,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_inventory_item_roles_bulk_update - description: Put a list of inventory item role objects. + operationId: dcim_interface_templates_bulk_update + description: Put a list of interface template objects. tags: - dcim requestBody: @@ -25768,12 +24711,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25785,11 +24728,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_inventory_item_roles_bulk_partial_update - description: Patch a list of inventory item role objects. + operationId: dcim_interface_templates_bulk_partial_update + description: Patch a list of interface template objects. tags: - dcim requestBody: @@ -25798,12 +24741,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25815,11 +24758,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_inventory_item_roles_bulk_destroy - description: Delete a list of inventory item role objects. + operationId: dcim_interface_templates_bulk_destroy + description: Delete a list of interface template objects. tags: - dcim requestBody: @@ -25828,12 +24771,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25841,16 +24784,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-roles/{id}/: + /api/dcim/interface-templates/{id}/: get: - operationId: dcim_inventory_item_roles_retrieve - description: Get a inventory item role object. + operationId: dcim_interface_templates_retrieve + description: Get a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25862,17 +24805,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_inventory_item_roles_update - description: Put a inventory item role object. + operationId: dcim_interface_templates_update + description: Put a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25880,10 +24823,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -25893,17 +24836,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_inventory_item_roles_partial_update - description: Patch a inventory item role object. + operationId: dcim_interface_templates_partial_update + description: Patch a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25911,10 +24854,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25923,17 +24866,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_inventory_item_roles_destroy - description: Delete a inventory item role object. + operationId: dcim_interface_templates_destroy + description: Delete a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -25943,82 +24886,79 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-templates/: + /api/dcim/interfaces/: get: - operationId: dcim_inventory_item_templates_list - description: Get a list of inventory item template objects. + operationId: dcim_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: component_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__empty + name: bridge_id schema: type: array items: type: integer - format: int32 + description: Bridged interface (ID) explode: true style: form - in: query - name: component_id__gt + name: bridge_id__n schema: type: array items: type: integer - format: int32 + description: Bridged interface (ID) explode: true style: form - in: query - name: component_id__gte + name: cable_end schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: component_id__lt + name: cable_end__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: component_id__lte + name: cable_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: component_id__n + name: cable_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: component_type + name: cabled schema: - type: string + type: boolean - in: query - name: component_type__n + name: connected schema: - type: string + type: boolean - in: query name: created schema: @@ -26172,25 +25112,117 @@ paths: explode: true style: form - in: query - name: device_type_id + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id schema: type: array items: type: integer - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: device_type_id__n + name: device_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Device (ID) + explode: true + style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) explode: true style: form - in: query - name: devicetype_id + name: device_type_id schema: type: array items: @@ -26199,7 +25231,7 @@ paths: explode: true style: form - in: query - name: devicetype_id__n + name: device_type_id__n schema: type: array items: @@ -26207,6 +25239,30 @@ paths: description: Device type (ID) explode: true style: form + - in: query + name: duplex + schema: + type: array + items: + type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + explode: true + style: form + - in: query + name: duplex__n + schema: + type: array + items: + type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + explode: true + style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -26265,6 +25321,55 @@ paths: format: int32 explode: true style: form + - in: query + name: kind + schema: + type: string + description: Kind of interface + - in: query + name: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form - in: query name: label schema: @@ -26349,6 +25454,24 @@ paths: type: string explode: true style: form + - in: query + name: lag_id + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form + - in: query + name: lag_id__n + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -26419,50 +25542,43 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - nullable: true - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - nullable: true - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: mac_address schema: type: array items: @@ -26470,11 +25586,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: mac_address__ic schema: type: array items: @@ -26482,7 +25594,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__ie schema: type: array items: @@ -26490,7 +25602,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__iew schema: type: array items: @@ -26498,7 +25610,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: mac_address__isw schema: type: array items: @@ -26506,7 +25618,7 @@ paths: explode: true style: form - in: query - name: name__n + name: mac_address__n schema: type: array items: @@ -26514,7 +25626,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: mac_address__nic schema: type: array items: @@ -26522,7 +25634,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: mac_address__nie schema: type: array items: @@ -26530,7 +25642,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: mac_address__niew schema: type: array items: @@ -26538,99 +25650,140 @@ paths: explode: true style: form - in: query - name: name__nisw + name: mac_address__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: mark_connected schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + - in: query + name: mgmt_only + schema: + type: boolean + - in: query + name: mode + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: mode__n + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: parent_id + name: module_id schema: type: array items: type: integer nullable: true - description: Parent inventory item (ID) + description: Module (ID) explode: true style: form - in: query - name: parent_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Parent inventory item (ID) + description: Module (ID) explode: true style: form - in: query - name: part_id + name: mtu schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__empty + name: mtu__empty schema: type: boolean - in: query - name: part_id__ic + name: mtu__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__ie + name: mtu__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__iew + name: mtu__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__isw + name: mtu__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__n + name: mtu__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__nic + name: name schema: type: array items: @@ -26638,7 +25791,11 @@ paths: explode: true style: form - in: query - name: part_id__nie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -26646,7 +25803,7 @@ paths: explode: true style: form - in: query - name: part_id__niew + name: name__ie schema: type: array items: @@ -26654,7 +25811,7 @@ paths: explode: true style: form - in: query - name: part_id__nisw + name: name__iew schema: type: array items: @@ -26662,282 +25819,39 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: name__isw schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: name__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: name__nic schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: name__nie schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' - description: '' - post: - operationId: dcim_inventory_item_templates_create - description: Post a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - put: - operationId: dcim_inventory_item_templates_bulk_update - description: Put a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - patch: - operationId: dcim_inventory_item_templates_bulk_partial_update - description: Patch a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - delete: - operationId: dcim_inventory_item_templates_bulk_destroy - description: Delete a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-item-templates/{id}/: - get: - operationId: dcim_inventory_item_templates_retrieve - description: Get a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - put: - operationId: dcim_inventory_item_templates_update - description: Put a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - patch: - operationId: dcim_inventory_item_templates_partial_update - description: Patch a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - delete: - operationId: dcim_inventory_item_templates_destroy - description: Delete a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-items/: - get: - operationId: dcim_inventory_items_list - description: Get a list of inventory item objects. - parameters: - - in: query - name: asset_tag + name: name__niew schema: type: array items: @@ -26945,11 +25859,7 @@ paths: explode: true style: form - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic + name: name__nisw schema: type: array items: @@ -26957,372 +25867,383 @@ paths: explode: true style: form - in: query - name: asset_tag__ie + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent_id schema: type: array items: - type: string + type: integer + description: Parent interface (ID) explode: true style: form - in: query - name: asset_tag__iew + name: parent_id__n schema: type: array items: - type: string + type: integer + description: Parent interface (ID) explode: true style: form - in: query - name: asset_tag__isw + name: poe_mode schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: asset_tag__n + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: asset_tag__nic + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: asset_tag__nie + name: poe_type__n schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: asset_tag__niew + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: asset_tag__nisw + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: component_id + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: component_id__empty + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: component_id__gt + name: region schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__gte + name: region__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__lt + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__lte + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: component_id__n + name: rf_channel schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: component_type - schema: - type: string - - in: query - name: component_type__n - schema: - type: string - - in: query - name: created + name: rf_channel__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: created__empty + name: rf_channel_frequency schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gt + name: rf_channel_frequency__empty + schema: + type: boolean + - in: query + name: rf_channel_frequency__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gte + name: rf_channel_frequency__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lt + name: rf_channel_frequency__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lte + name: rf_channel_frequency__lte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__n + name: rf_channel_frequency__n schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: rf_channel_width schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__empty + name: rf_channel_width__empty schema: type: boolean - in: query - name: description__ic + name: rf_channel_width__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__ie + name: rf_channel_width__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__iew + name: rf_channel_width__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__isw + name: rf_channel_width__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__n + name: rf_channel_width__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nic + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__nie + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__niew + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: description__nisw + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: device + name: site_group schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: site_group__n schema: type: array items: type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) explode: true style: form - in: query - name: device_id__n + name: site_group_id schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: site_group_id__n schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: site_id schema: type: array items: - type: string - description: Device type (model) + type: integer + description: Site (ID) explode: true style: form - in: query - name: device_type_id + name: site_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Site (ID) explode: true style: form - in: query - name: device_type_id__n + name: speed schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: discovered - schema: - type: boolean - - in: query - name: id + name: speed__empty schema: type: array items: @@ -27331,11 +26252,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: speed__gt schema: type: array items: @@ -27344,7 +26261,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: speed__gte schema: type: array items: @@ -27353,7 +26270,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: speed__lt schema: type: array items: @@ -27362,7 +26279,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: speed__lte schema: type: array items: @@ -27371,7 +26288,7 @@ paths: explode: true style: form - in: query - name: id__n + name: speed__n schema: type: array items: @@ -27380,7 +26297,7 @@ paths: explode: true style: form - in: query - name: label + name: tag schema: type: array items: @@ -27388,11 +26305,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: tag__n schema: type: array items: @@ -27400,219 +26313,297 @@ paths: explode: true style: form - in: query - name: label__ie + name: tx_power schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: tx_power__empty + schema: + type: boolean + - in: query + name: tx_power__gt schema: type: array items: - type: string - explode: true + type: integer + format: int32 + explode: true style: form - in: query - name: label__isw + name: tx_power__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: tx_power__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: tx_power__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: tx_power__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: type schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: label__nisw + name: type__n schema: type: array items: type: string + x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: last_updated + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vdc schema: type: array items: type: string - format: date-time + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__empty + name: vdc__n schema: type: array items: type: string - format: date-time + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__gt + name: vdc_id schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__gte + name: vdc_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: last_updated__lt + name: vdc_identifier + schema: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) + explode: true + style: form + - in: query + name: vdc_identifier__n + schema: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) + explode: true + style: form + - in: query + name: virtual_chassis schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__lte + name: virtual_chassis__n schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__n + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_member schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: virtual_chassis_member_id schema: - type: integer + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: location + name: vlan + schema: + type: string + description: Assigned VID + - in: query + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vrf schema: type: array items: type: string - description: Location (slug) + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: location__n + name: vrf__n schema: type: array items: type: string - description: Location (slug) + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: location_id + name: vrf_id schema: type: array items: type: integer - description: Location (ID) + description: VRF explode: true style: form - in: query - name: location_id__n + name: vrf_id__n schema: type: array items: type: integer - description: Location (ID) + description: VRF explode: true style: form - in: query - name: manufacturer + name: wireless_lan_id schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + description: Wireless LAN explode: true style: form - in: query - name: manufacturer__n + name: wireless_lan_id__n schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + description: Wireless LAN explode: true style: form - in: query - name: manufacturer_id + name: wireless_link_id schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Wireless link explode: true style: form - in: query - name: manufacturer_id__n + name: wireless_link_id__n schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Wireless link explode: true style: form - in: query - name: modified_by_request + name: wwn schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: name + name: wwn__ic schema: type: array items: @@ -27620,11 +26611,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: wwn__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: wwn__iew schema: type: array items: @@ -27632,7 +26627,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: wwn__isw schema: type: array items: @@ -27640,7 +26635,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: wwn__n schema: type: array items: @@ -27648,7 +26643,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: wwn__nic schema: type: array items: @@ -27656,7 +26651,7 @@ paths: explode: true style: form - in: query - name: name__n + name: wwn__nie schema: type: array items: @@ -27664,7 +26659,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: wwn__niew schema: type: array items: @@ -27672,15 +26667,266 @@ paths: explode: true style: form - in: query - name: name__nie + name: wwn__nisw schema: type: array items: type: string explode: true style: form + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInterfaceList' + description: '' + post: + operationId: dcim_interfaces_create + description: Post a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + put: + operationId: dcim_interfaces_bulk_update + description: Put a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Interface' + description: '' + patch: + operationId: dcim_interfaces_bulk_partial_update + description: Patch a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Interface' + description: '' + delete: + operationId: dcim_interfaces_bulk_destroy + description: Delete a list of interface objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/interfaces/{id}/: + get: + operationId: dcim_interfaces_retrieve + description: Get a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + put: + operationId: dcim_interfaces_update + description: Put a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableInterfaceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + patch: + operationId: dcim_interfaces_partial_update + description: Patch a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + delete: + operationId: dcim_interfaces_destroy + description: Delete a interface object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/interfaces/{id}/trace/: + get: + operationId: dcim_interfaces_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + /api/dcim/inventory-item-roles/: + get: + operationId: dcim_inventory_item_roles_list + description: Get a list of inventory item role objects. + parameters: - in: query - name: name__niew + name: color schema: type: array items: @@ -27688,47 +26934,51 @@ paths: explode: true style: form - in: query - name: name__nisw + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: color__ie schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: parent_id + name: color__isw schema: type: array items: - type: integer - nullable: true - description: Parent inventory item (ID) + type: string explode: true style: form - in: query - name: parent_id__n + name: color__n schema: type: array items: - type: integer - nullable: true - description: Parent inventory item (ID) + type: string explode: true style: form - in: query - name: part_id + name: color__nic schema: type: array items: @@ -27736,11 +26986,15 @@ paths: explode: true style: form - in: query - name: part_id__empty + name: color__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: part_id__ic + name: color__niew schema: type: array items: @@ -27748,7 +27002,7 @@ paths: explode: true style: form - in: query - name: part_id__ie + name: color__nisw schema: type: array items: @@ -27756,206 +27010,291 @@ paths: explode: true style: form - in: query - name: part_id__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: part_id__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: q + name: created_by_request schema: type: string - description: Search + format: uuid - in: query - name: rack + name: description schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: description__ie schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: region + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: id__gte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: id__lt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: id__lte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: id__n schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: last_updated schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role_id + name: last_updated__empty schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: role_id__n + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: serial + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__empty + name: last_updated__lt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: serial__ic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__ie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: serial__iew + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -27963,7 +27302,11 @@ paths: explode: true style: form - in: query - name: serial__isw + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -27971,7 +27314,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: name__ie schema: type: array items: @@ -27979,7 +27322,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: name__iew schema: type: array items: @@ -27987,7 +27330,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: name__isw schema: type: array items: @@ -27995,7 +27338,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: name__n schema: type: array items: @@ -28003,7 +27346,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: name__nic schema: type: array items: @@ -28011,79 +27354,92 @@ paths: explode: true style: form - in: query - name: site + name: name__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site_group__n + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: slug__ie schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: slug__iew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__isw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: slug__n schema: type: array items: @@ -28091,7 +27447,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nic schema: type: array items: @@ -28099,46 +27455,50 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: slug__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: slug__niew schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: slug__nisw schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: tag schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form - in: query - name: virtual_chassis_id__n + name: tag__n schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -28149,21 +27509,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemList' + $ref: '#/components/schemas/PaginatedInventoryItemRoleList' description: '' post: - operationId: dcim_inventory_items_create - description: Post a list of inventory item objects. + operationId: dcim_inventory_item_roles_create + description: Post a list of inventory item role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28173,11 +27533,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_inventory_items_bulk_update - description: Put a list of inventory item objects. + operationId: dcim_inventory_item_roles_bulk_update + description: Put a list of inventory item role objects. tags: - dcim requestBody: @@ -28186,12 +27546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28203,11 +27563,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_inventory_items_bulk_partial_update - description: Patch a list of inventory item objects. + operationId: dcim_inventory_item_roles_bulk_partial_update + description: Patch a list of inventory item role objects. tags: - dcim requestBody: @@ -28216,12 +27576,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28233,11 +27593,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_inventory_items_bulk_destroy - description: Delete a list of inventory item objects. + operationId: dcim_inventory_item_roles_bulk_destroy + description: Delete a list of inventory item role objects. tags: - dcim requestBody: @@ -28246,12 +27606,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28259,16 +27619,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-items/{id}/: + /api/dcim/inventory-item-roles/{id}/: get: - operationId: dcim_inventory_items_retrieve - description: Get a inventory item object. + operationId: dcim_inventory_item_roles_retrieve + description: Get a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28280,17 +27640,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_inventory_items_update - description: Put a inventory item object. + operationId: dcim_inventory_item_roles_update + description: Put a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28298,10 +27658,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -28311,17 +27671,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_inventory_items_partial_update - description: Patch a inventory item object. + operationId: dcim_inventory_item_roles_partial_update + description: Patch a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28329,10 +27689,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -28341,17 +27701,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_inventory_items_destroy - description: Delete a inventory item object. + operationId: dcim_inventory_item_roles_destroy + description: Delete a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -28361,101 +27721,82 @@ paths: responses: '204': description: No response body - /api/dcim/locations/: + /api/dcim/inventory-item-templates/: get: - operationId: dcim_locations_list - description: Get a list of location objects. + operationId: dcim_inventory_item_templates_list + description: Get a list of inventory item template objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: ancestor__n + name: component_id schema: type: array items: type: integer - description: Location (slug) + format: int32 explode: true style: form - in: query - name: ancestor_id + name: component_id__empty schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: ancestor_id__n + name: component_id__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: contact + name: component_id__gte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: component_id__lt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: component_id__lte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: component_id__n schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: component_type schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query - name: contact_role__n + name: component_type__n schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query name: created schema: @@ -28609,67 +27950,83 @@ paths: explode: true style: form - in: query - name: facility + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: facility__empty + name: device_type_id__n schema: - type: boolean + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query - name: facility__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nie + name: label schema: type: array items: @@ -28677,7 +28034,11 @@ paths: explode: true style: form - in: query - name: facility__niew + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -28685,7 +28046,7 @@ paths: explode: true style: form - in: query - name: facility__nisw + name: label__ie schema: type: array items: @@ -28693,61 +28054,59 @@ paths: explode: true style: form - in: query - name: id + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: label__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -28820,7 +28179,45 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: manufacturer + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer__n + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer_id + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: manufacturer_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: modified_by_request schema: type: string format: uuid @@ -28920,24 +28317,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: parent - schema: - type: array - items: - type: string - description: Parent location (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent location (slug) - explode: true - style: form - in: query name: parent_id schema: @@ -28945,7 +28324,7 @@ paths: items: type: integer nullable: true - description: Parent location (ID) + description: Parent inventory item (ID) explode: true style: form - in: query @@ -28955,124 +28334,11 @@ paths: items: type: integer nullable: true - description: Parent location (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) + description: Parent inventory item (ID) explode: true style: form - in: query - name: slug + name: part_id schema: type: array items: @@ -29080,35 +28346,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: part_id__empty schema: type: boolean - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw + name: part_id__ic schema: type: array items: @@ -29116,7 +28358,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: part_id__ie schema: type: array items: @@ -29124,7 +28366,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: part_id__iew schema: type: array items: @@ -29132,7 +28374,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: part_id__isw schema: type: array items: @@ -29140,7 +28382,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: part_id__n schema: type: array items: @@ -29148,7 +28390,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: part_id__nic schema: type: array items: @@ -29156,25 +28398,23 @@ paths: explode: true style: form - in: query - name: status + name: part_id__nie schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: status__n + name: part_id__niew schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: tag + name: part_id__nisw schema: type: array items: @@ -29182,85 +28422,46 @@ paths: explode: true style: form - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tenant + name: role schema: type: array items: type: string - description: Tenant (slug) + description: Role (slug) explode: true style: form - in: query - name: tenant__n + name: role__n schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) + description: Role (slug) explode: true style: form - in: query - name: tenant_id + name: role_id schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Role (ID) explode: true style: form - in: query - name: tenant_id__n + name: role_id__n schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Role (ID) explode: true style: form - in: query @@ -29278,21 +28479,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedLocationList' + $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' description: '' post: - operationId: dcim_locations_create - description: Post a list of location objects. + operationId: dcim_inventory_item_templates_create + description: Post a list of inventory item template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29302,11 +28503,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_locations_bulk_update - description: Put a list of location objects. + operationId: dcim_inventory_item_templates_bulk_update + description: Put a list of inventory item template objects. tags: - dcim requestBody: @@ -29315,12 +28516,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29332,11 +28533,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_locations_bulk_partial_update - description: Patch a list of location objects. + operationId: dcim_inventory_item_templates_bulk_partial_update + description: Patch a list of inventory item template objects. tags: - dcim requestBody: @@ -29345,12 +28546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29362,11 +28563,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_locations_bulk_destroy - description: Delete a list of location objects. + operationId: dcim_inventory_item_templates_bulk_destroy + description: Delete a list of inventory item template objects. tags: - dcim requestBody: @@ -29375,12 +28576,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29388,16 +28589,16 @@ paths: responses: '204': description: No response body - /api/dcim/locations/{id}/: + /api/dcim/inventory-item-templates/{id}/: get: - operationId: dcim_locations_retrieve - description: Get a location object. + operationId: dcim_inventory_item_templates_retrieve + description: Get a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29409,17 +28610,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_locations_update - description: Put a location object. + operationId: dcim_inventory_item_templates_update + description: Put a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29427,10 +28628,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -29440,17 +28641,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_locations_partial_update - description: Patch a location object. + operationId: dcim_inventory_item_templates_partial_update + description: Patch a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29458,10 +28659,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -29470,17 +28671,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_locations_destroy - description: Delete a location object. + operationId: dcim_inventory_item_templates_destroy + description: Delete a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -29490,65 +28691,166 @@ paths: responses: '204': description: No response body - /api/dcim/manufacturers/: + /api/dcim/inventory-items/: get: - operationId: dcim_manufacturers_list - description: Get a list of manufacturer objects. + operationId: dcim_inventory_items_list + description: Get a list of inventory item objects. parameters: - in: query - name: contact + name: asset_tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: component_id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: component_id__empty schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: component_id__gt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: component_id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: component_id__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: component_id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 + explode: true + style: form + - in: query + name: component_id__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: component_type + schema: + type: string + - in: query + name: component_type__n + schema: + type: string - in: query name: created schema: @@ -29702,191 +29004,197 @@ paths: explode: true style: form - in: query - name: id + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: id__gt + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__gte + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__lt + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__lte + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: id__n + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: last_updated + name: device_role_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__empty + name: device_status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gt + name: device_status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__gte + name: device_type schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lt + name: device_type__n schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lte + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__n + name: device_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: discovered schema: - type: string - format: uuid + type: boolean - in: query - name: name + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: id__empty schema: type: boolean - in: query - name: name__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: label schema: type: array items: @@ -29894,7 +29202,11 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -29902,7 +29214,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__ie schema: type: array items: @@ -29910,32 +29222,15 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__iew schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: label__isw schema: type: array items: @@ -29943,11 +29238,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: label__n schema: type: array items: @@ -29955,7 +29246,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: label__nic schema: type: array items: @@ -29963,7 +29254,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: label__nie schema: type: array items: @@ -29971,7 +29262,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: label__niew schema: type: array items: @@ -29979,7 +29270,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: label__nisw schema: type: array items: @@ -29987,355 +29278,155 @@ paths: explode: true style: form - in: query - name: slug__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedManufacturerList' - description: '' - post: - operationId: dcim_manufacturers_create - description: Post a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_bulk_update - description: Put a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_bulk_partial_update - description: Patch a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_bulk_destroy - description: Delete a list of manufacturer objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/manufacturers/{id}/: - get: - operationId: dcim_manufacturers_retrieve - description: Get a manufacturer object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - put: - operationId: dcim_manufacturers_update - description: Put a manufacturer object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ManufacturerRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - patch: - operationId: dcim_manufacturers_partial_update - description: Patch a manufacturer object. - parameters: - - in: path - name: id + name: last_updated__n schema: - type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Manufacturer' - description: '' - delete: - operationId: dcim_manufacturers_destroy - description: Delete a manufacturer object. - parameters: - - in: path - name: id + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. schema: type: integer - description: A unique integer value identifying this manufacturer. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/module-bay-templates/: - get: - operationId: dcim_module_bay_templates_list - description: Get a list of module bay template objects. - parameters: - in: query - name: created + name: location schema: type: array items: type: string - format: date-time + description: Location (slug) explode: true style: form - in: query - name: created__empty + name: location__n schema: type: array items: type: string - format: date-time + description: Location (slug) explode: true style: form - in: query - name: created__gt + name: location_id schema: type: array items: - type: string - format: date-time + type: integer + description: Location (ID) explode: true style: form - in: query - name: created__gte + name: location_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Location (ID) explode: true style: form - in: query - name: created__lt + name: manufacturer schema: type: array items: type: string - format: date-time + description: Manufacturer (slug) explode: true style: form - in: query - name: created__lte + name: manufacturer__n schema: type: array items: type: string - format: date-time + description: Manufacturer (slug) explode: true style: form - in: query - name: created__n + name: manufacturer_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Manufacturer (ID) explode: true style: form - in: query - name: created_by_request + name: manufacturer_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -30343,11 +29434,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -30355,7 +29446,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -30363,7 +29454,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -30371,7 +29462,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -30379,7 +29470,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -30387,7 +29478,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -30395,7 +29486,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -30403,7 +29494,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -30411,109 +29502,115 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device_type_id + name: parent_id schema: type: array items: type: integer - description: Device type (ID) + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: device_type_id__n + name: parent_id__n schema: type: array items: type: integer - description: Device type (ID) + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: devicetype_id + name: part_id schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id__n + name: part_id__empty + schema: + type: boolean + - in: query + name: part_id__ic schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: part_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: part_id__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: part_id__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: part_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: part_id__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: part_id__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: part_id__niew schema: type: array items: @@ -30521,11 +29618,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: part_id__nisw schema: type: array items: @@ -30533,39 +29626,48 @@ paths: explode: true style: form - in: query - name: label__ie + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: label__iew + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: label__isw + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: label__n + name: rack_id__n schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: label__nic + name: region schema: type: array items: @@ -30573,7 +29675,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: region__n schema: type: array items: @@ -30581,7 +29683,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: region_id schema: type: array items: @@ -30589,7 +29691,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: region_id__n schema: type: array items: @@ -30597,81 +29699,73 @@ paths: explode: true style: form - in: query - name: last_updated + name: role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__empty + name: role__n schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__gt + name: role_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: last_updated__gte + name: role_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: last_updated__lt + name: serial schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: serial__ie schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: serial__iew schema: type: array items: @@ -30679,11 +29773,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: serial__isw schema: type: array items: @@ -30691,7 +29781,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: serial__n schema: type: array items: @@ -30699,7 +29789,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: serial__nic schema: type: array items: @@ -30707,7 +29797,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: serial__nie schema: type: array items: @@ -30715,7 +29805,7 @@ paths: explode: true style: form - in: query - name: name__n + name: serial__niew schema: type: array items: @@ -30723,7 +29813,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: serial__nisw schema: type: array items: @@ -30731,43 +29821,33 @@ paths: explode: true style: form - in: query - name: name__nie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__niew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__nisw + name: site_group schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: position + name: site_group__n schema: type: array items: @@ -30775,11 +29855,7 @@ paths: explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic + name: site_group_id schema: type: array items: @@ -30787,7 +29863,7 @@ paths: explode: true style: form - in: query - name: position__ie + name: site_group_id__n schema: type: array items: @@ -30795,23 +29871,25 @@ paths: explode: true style: form - in: query - name: position__iew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: position__isw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: position__n + name: tag schema: type: array items: @@ -30819,7 +29897,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: tag__n schema: type: array items: @@ -30827,39 +29905,46 @@ paths: explode: true style: form - in: query - name: position__nie + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: position__niew + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: position__nisw + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request + name: virtual_chassis_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -30870,21 +29955,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayTemplateList' + $ref: '#/components/schemas/PaginatedInventoryItemList' description: '' post: - operationId: dcim_module_bay_templates_create - description: Post a list of module bay template objects. + operationId: dcim_inventory_items_create + description: Post a list of inventory item objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30894,11 +29979,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_module_bay_templates_bulk_update - description: Put a list of module bay template objects. + operationId: dcim_inventory_items_bulk_update + description: Put a list of inventory item objects. tags: - dcim requestBody: @@ -30907,12 +29992,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30924,11 +30009,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_module_bay_templates_bulk_partial_update - description: Patch a list of module bay template objects. + operationId: dcim_inventory_items_bulk_partial_update + description: Patch a list of inventory item objects. tags: - dcim requestBody: @@ -30937,12 +30022,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30954,11 +30039,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_module_bay_templates_bulk_destroy - description: Delete a list of module bay template objects. + operationId: dcim_inventory_items_bulk_destroy + description: Delete a list of inventory item objects. tags: - dcim requestBody: @@ -30967,12 +30052,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -30980,16 +30065,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/{id}/: + /api/dcim/inventory-items/{id}/: get: - operationId: dcim_module_bay_templates_retrieve - description: Get a module bay template object. + operationId: dcim_inventory_items_retrieve + description: Get a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31001,17 +30086,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_module_bay_templates_update - description: Put a module bay template object. + operationId: dcim_inventory_items_update + description: Put a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31019,10 +30104,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -31032,17 +30117,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_module_bay_templates_partial_update - description: Patch a module bay template object. + operationId: dcim_inventory_items_partial_update + description: Patch a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31050,10 +30135,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -31062,17 +30147,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_module_bay_templates_destroy - description: Delete a module bay template object. + operationId: dcim_inventory_items_destroy + description: Delete a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -31082,11 +30167,95 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/: + /api/dcim/locations/: get: - operationId: dcim_module_bays_list - description: Get a list of module bay objects. + operationId: dcim_locations_list + description: Get a list of location objects. parameters: + - in: query + name: ancestor + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -31240,103 +30409,91 @@ paths: explode: true style: form - in: query - name: device + name: facility schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: facility__ie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: facility__iew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: facility__isw schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: facility__n schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: facility__nic schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: facility__nie schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: facility__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: facility__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: id schema: type: array items: @@ -31345,16 +30502,11 @@ paths: explode: true style: form - in: query - name: id__lt + name: id__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: id__lte + name: id__gt schema: type: array items: @@ -31363,7 +30515,7 @@ paths: explode: true style: form - in: query - name: id__n + name: id__gte schema: type: array items: @@ -31372,105 +30524,30 @@ paths: explode: true style: form - in: query - name: installed_module_id + name: id__lt schema: type: array items: type: integer - description: Installed module (ID) + format: int32 explode: true style: form - in: query - name: installed_module_id__n + name: id__lte schema: type: array items: type: integer - description: Installed module (ID) - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: label__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -31542,42 +30619,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - in: query name: modified_by_request schema: @@ -31680,43 +30721,50 @@ paths: schema: type: string - in: query - name: position + name: parent schema: type: array items: type: string + description: Parent location (slug) explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic + name: parent__n schema: type: array items: type: string + description: Parent location (slug) explode: true style: form - in: query - name: position__ie + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent location (ID) explode: true style: form - in: query - name: position__iew + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent location (ID) explode: true style: form - in: query - name: position__isw + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -31724,7 +30772,7 @@ paths: explode: true style: form - in: query - name: position__n + name: region__n schema: type: array items: @@ -31732,7 +30780,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: region_id schema: type: array items: @@ -31740,7 +30788,7 @@ paths: explode: true style: form - in: query - name: position__nie + name: region_id__n schema: type: array items: @@ -31748,216 +30796,211 @@ paths: explode: true style: form - in: query - name: position__niew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: position__nisw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: q + name: site_group schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: rack + name: site_group__n schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: site_group_id schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: site_group_id__n schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: site_id schema: type: array items: type: integer - description: Rack (ID) + description: Site (ID) explode: true style: form - in: query - name: region + name: site_id__n schema: type: array items: type: integer - description: Region (slug) + description: Site (ID) explode: true style: form - in: query - name: region__n + name: slug schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: slug__ie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: slug__iew schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: slug__isw schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: slug__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: slug__nic schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: site + name: slug__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__niew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: slug__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: status schema: type: array items: - type: integer - description: Site group (slug) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: site_group_id + name: status__n schema: type: array items: - type: integer - description: Site group (ID) + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: site_group_id__n + name: tag schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: tag__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: tenant schema: type: array items: - type: integer - description: Site (ID) + type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag__n + name: tenant_group schema: type: array items: @@ -31965,46 +31008,54 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: tenant_group__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: tenant_group_id schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: tenant_group_id__n schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: tenant_id schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -32015,21 +31066,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayList' + $ref: '#/components/schemas/PaginatedLocationList' description: '' post: - operationId: dcim_module_bays_create - description: Post a list of module bay objects. + operationId: dcim_locations_create + description: Post a list of location objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -32039,11 +31090,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_module_bays_bulk_update - description: Put a list of module bay objects. + operationId: dcim_locations_bulk_update + description: Put a list of location objects. tags: - dcim requestBody: @@ -32052,12 +31103,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -32069,11 +31120,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_module_bays_bulk_partial_update - description: Patch a list of module bay objects. + operationId: dcim_locations_bulk_partial_update + description: Patch a list of location objects. tags: - dcim requestBody: @@ -32082,12 +31133,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -32099,11 +31150,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_module_bays_bulk_destroy - description: Delete a list of module bay objects. + operationId: dcim_locations_bulk_destroy + description: Delete a list of location objects. tags: - dcim requestBody: @@ -32112,12 +31163,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -32125,16 +31176,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/{id}/: + /api/dcim/locations/{id}/: get: - operationId: dcim_module_bays_retrieve - description: Get a module bay object. + operationId: dcim_locations_retrieve + description: Get a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32146,17 +31197,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_module_bays_update - description: Put a module bay object. + operationId: dcim_locations_update + description: Put a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32164,10 +31215,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -32177,17 +31228,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_module_bays_partial_update - description: Patch a module bay object. + operationId: dcim_locations_partial_update + description: Patch a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32195,10 +31246,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -32207,17 +31258,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_module_bays_destroy - description: Delete a module bay object. + operationId: dcim_locations_destroy + description: Delete a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -32227,21 +31278,63 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/: + /api/dcim/manufacturers/: get: - operationId: dcim_module_types_list - description: Get a list of module type objects. + operationId: dcim_manufacturers_list + description: Get a list of manufacturer objects. parameters: - in: query - name: console_ports + name: contact schema: - type: boolean - description: Has console ports + type: array + items: + type: integer + description: Contact + explode: true + style: form - in: query - name: console_server_ports + name: contact__n schema: - type: boolean - description: Has console server ports + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -32452,11 +31545,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - in: query name: last_updated schema: @@ -32527,43 +31615,12 @@ paths: schema: type: integer - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer__n - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: integer - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: manufacturer_id__n + name: modified_by_request schema: - type: array - items: - type: integer - description: Manufacturer (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: model + name: name schema: type: array items: @@ -32571,11 +31628,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: name__empty schema: type: boolean - in: query - name: model__ic + name: name__ic schema: type: array items: @@ -32583,7 +31640,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -32591,7 +31648,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -32599,7 +31656,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -32607,7 +31664,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -32615,7 +31672,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -32623,7 +31680,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -32631,7 +31688,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -32639,18 +31696,13 @@ paths: explode: true style: form - in: query - name: model__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - name: offset required: false in: query @@ -32664,7 +31716,12 @@ paths: schema: type: string - in: query - name: part_number + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -32672,11 +31729,11 @@ paths: explode: true style: form - in: query - name: part_number__empty + name: slug__empty schema: type: boolean - in: query - name: part_number__ic + name: slug__ic schema: type: array items: @@ -32684,7 +31741,7 @@ paths: explode: true style: form - in: query - name: part_number__ie + name: slug__ie schema: type: array items: @@ -32692,7 +31749,7 @@ paths: explode: true style: form - in: query - name: part_number__iew + name: slug__iew schema: type: array items: @@ -32700,7 +31757,7 @@ paths: explode: true style: form - in: query - name: part_number__isw + name: slug__isw schema: type: array items: @@ -32708,7 +31765,7 @@ paths: explode: true style: form - in: query - name: part_number__n + name: slug__n schema: type: array items: @@ -32716,7 +31773,7 @@ paths: explode: true style: form - in: query - name: part_number__nic + name: slug__nic schema: type: array items: @@ -32724,7 +31781,7 @@ paths: explode: true style: form - in: query - name: part_number__nie + name: slug__nie schema: type: array items: @@ -32732,7 +31789,7 @@ paths: explode: true style: form - in: query - name: part_number__niew + name: slug__niew schema: type: array items: @@ -32740,33 +31797,13 @@ paths: explode: true style: form - in: query - name: part_number__nisw + name: slug__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - in: query name: tag schema: @@ -32788,98 +31825,6 @@ paths: schema: type: string format: uuid - - in: query - name: weight - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' tags: - dcim security: @@ -32890,21 +31835,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleTypeList' + $ref: '#/components/schemas/PaginatedManufacturerList' description: '' post: - operationId: dcim_module_types_create - description: Post a list of module type objects. + operationId: dcim_manufacturers_create + description: Post a list of manufacturer objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -32914,11 +31859,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_module_types_bulk_update - description: Put a list of module type objects. + operationId: dcim_manufacturers_bulk_update + description: Put a list of manufacturer objects. tags: - dcim requestBody: @@ -32927,12 +31872,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -32944,11 +31889,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_module_types_bulk_partial_update - description: Patch a list of module type objects. + operationId: dcim_manufacturers_bulk_partial_update + description: Patch a list of manufacturer objects. tags: - dcim requestBody: @@ -32957,12 +31902,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -32974,11 +31919,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_module_types_bulk_destroy - description: Delete a list of module type objects. + operationId: dcim_manufacturers_bulk_destroy + description: Delete a list of manufacturer objects. tags: - dcim requestBody: @@ -32987,12 +31932,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -33000,16 +31945,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/{id}/: + /api/dcim/manufacturers/{id}/: get: - operationId: dcim_module_types_retrieve - description: Get a module type object. + operationId: dcim_manufacturers_retrieve + description: Get a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33021,17 +31966,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_module_types_update - description: Put a module type object. + operationId: dcim_manufacturers_update + description: Put a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33039,10 +31984,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -33052,17 +31997,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_module_types_partial_update - description: Patch a module type object. + operationId: dcim_manufacturers_partial_update + description: Patch a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33070,10 +32015,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -33082,17 +32027,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_module_types_destroy - description: Delete a module type object. + operationId: dcim_manufacturers_destroy + description: Delete a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -33102,73 +32047,81 @@ paths: responses: '204': description: No response body - /api/dcim/modules/: + /api/dcim/module-bay-templates/: get: - operationId: dcim_modules_list - description: Get a list of module objects. + operationId: dcim_module_bay_templates_list + description: Get a list of module bay template objects. parameters: - in: query - name: asset_tag + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: asset_tag__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -33176,7 +32129,11 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -33184,7 +32141,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: description__ie schema: type: array items: @@ -33192,143 +32149,141 @@ paths: explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__ie + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: label schema: type: array items: @@ -33336,7 +32291,11 @@ paths: explode: true style: form - in: query - name: description__nisw + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -33344,79 +32303,67 @@ paths: explode: true style: form - in: query - name: device_id + name: label__ie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: label__iew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -33489,119 +32436,92 @@ paths: schema: type: integer - in: query - name: manufacturer + name: modified_by_request schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: manufacturer__n + name: module_type_id schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: manufacturer_id + name: module_type_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: name schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: modified_by_request + name: name__empty schema: - type: string - format: uuid + type: boolean - in: query - name: module_bay_id + name: name__ic schema: type: array items: - type: integer - description: Module Bay (ID) + type: string explode: true style: form - in: query - name: module_bay_id__n + name: name__ie schema: type: array items: - type: integer - description: Module Bay (ID) + type: string explode: true style: form - in: query - name: module_type + name: name__iew schema: type: array items: type: string - description: Module type (model) explode: true style: form - in: query - name: module_type__n + name: name__isw schema: type: array items: type: string - description: Module type (model) explode: true style: form - in: query - name: module_type_id + name: name__n schema: type: array items: - type: integer - description: Module type (ID) + type: string explode: true style: form - in: query - name: module_type_id__n + name: name__nic schema: type: array items: - type: integer - description: Module type (ID) + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: serial + name: name__nie schema: type: array items: @@ -33609,11 +32529,7 @@ paths: explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: name__niew schema: type: array items: @@ -33621,15 +32537,27 @@ paths: explode: true style: form - in: query - name: serial__ie + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: serial__iew + name: position schema: type: array items: @@ -33637,15 +32565,11 @@ paths: explode: true style: form - in: query - name: serial__isw + name: position__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: serial__n + name: position__ic schema: type: array items: @@ -33653,7 +32577,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: position__ie schema: type: array items: @@ -33661,7 +32585,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: position__iew schema: type: array items: @@ -33669,7 +32593,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: position__isw schema: type: array items: @@ -33677,7 +32601,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: position__n schema: type: array items: @@ -33685,25 +32609,23 @@ paths: explode: true style: form - in: query - name: status + name: position__nic schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: status__n + name: position__nie schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tag + name: position__niew schema: type: array items: @@ -33711,13 +32633,18 @@ paths: explode: true style: form - in: query - name: tag__n + name: position__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: q + schema: + type: string + description: Search - in: query name: updated_by_request schema: @@ -33733,21 +32660,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleList' + $ref: '#/components/schemas/PaginatedModuleBayTemplateList' description: '' post: - operationId: dcim_modules_create - description: Post a list of module objects. + operationId: dcim_module_bay_templates_create + description: Post a list of module bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33757,11 +32684,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_modules_bulk_update - description: Put a list of module objects. + operationId: dcim_module_bay_templates_bulk_update + description: Put a list of module bay template objects. tags: - dcim requestBody: @@ -33770,12 +32697,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33787,11 +32714,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_modules_bulk_partial_update - description: Patch a list of module objects. + operationId: dcim_module_bay_templates_bulk_partial_update + description: Patch a list of module bay template objects. tags: - dcim requestBody: @@ -33800,12 +32727,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33817,11 +32744,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_modules_bulk_destroy - description: Delete a list of module objects. + operationId: dcim_module_bay_templates_bulk_destroy + description: Delete a list of module bay template objects. tags: - dcim requestBody: @@ -33830,12 +32757,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33843,16 +32770,16 @@ paths: responses: '204': description: No response body - /api/dcim/modules/{id}/: + /api/dcim/module-bay-templates/{id}/: get: - operationId: dcim_modules_retrieve - description: Get a module object. + operationId: dcim_module_bay_templates_retrieve + description: Get a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33864,17 +32791,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_modules_update - description: Put a module object. + operationId: dcim_module_bay_templates_update + description: Put a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33882,10 +32809,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -33895,17 +32822,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_modules_partial_update - description: Patch a module object. + operationId: dcim_module_bay_templates_partial_update + description: Patch a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33913,10 +32840,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -33925,17 +32852,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_modules_destroy - description: Delete a module object. + operationId: dcim_module_bay_templates_destroy + description: Delete a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -33945,35 +32872,11 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/: + /api/dcim/module-bays/: get: - operationId: dcim_platforms_list - description: Get a list of platform objects. + operationId: dcim_module_bays_list + description: Get a list of module bay objects. parameters: - - in: query - name: available_for_device_type - schema: - type: string - - in: query - name: config_template_id - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: config_template_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - in: query name: created schema: @@ -34126,6 +33029,134 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -34184,6 +33215,108 @@ paths: format: int32 explode: true style: form + - in: query + name: installed_module_id + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: installed_module_id__n + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -34254,39 +33387,39 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query @@ -34294,6 +33427,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -34390,25 +33543,153 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: position + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__empty + schema: + type: boolean + - in: query + name: position__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: slug + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: slug__empty + name: rack__n schema: - type: boolean + type: array + items: + type: string + description: Rack (name) + explode: true + style: form - in: query - name: slug__ic + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region schema: type: array items: @@ -34416,7 +33697,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region__n schema: type: array items: @@ -34424,7 +33705,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id schema: type: array items: @@ -34432,7 +33713,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: region_id__n schema: type: array items: @@ -34440,23 +33721,25 @@ paths: explode: true style: form - in: query - name: slug__n + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nic + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nie + name: site_group schema: type: array items: @@ -34464,7 +33747,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_group__n schema: type: array items: @@ -34472,13 +33755,39 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: site_group_id schema: type: array items: type: string explode: true style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query name: tag schema: @@ -34500,6 +33809,42 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -34510,21 +33855,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPlatformList' + $ref: '#/components/schemas/PaginatedModuleBayList' description: '' post: - operationId: dcim_platforms_create - description: Post a list of platform objects. + operationId: dcim_module_bays_create + description: Post a list of module bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34534,11 +33879,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_platforms_bulk_update - description: Put a list of platform objects. + operationId: dcim_module_bays_bulk_update + description: Put a list of module bay objects. tags: - dcim requestBody: @@ -34547,12 +33892,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34564,11 +33909,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_platforms_bulk_partial_update - description: Patch a list of platform objects. + operationId: dcim_module_bays_bulk_partial_update + description: Patch a list of module bay objects. tags: - dcim requestBody: @@ -34577,12 +33922,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34594,11 +33939,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_platforms_bulk_destroy - description: Delete a list of platform objects. + operationId: dcim_module_bays_bulk_destroy + description: Delete a list of module bay objects. tags: - dcim requestBody: @@ -34607,12 +33952,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34620,16 +33965,16 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/{id}/: + /api/dcim/module-bays/{id}/: get: - operationId: dcim_platforms_retrieve - description: Get a platform object. + operationId: dcim_module_bays_retrieve + description: Get a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34641,17 +33986,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_platforms_update - description: Put a platform object. + operationId: dcim_module_bays_update + description: Put a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34659,10 +34004,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -34672,17 +34017,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_platforms_partial_update - description: Patch a platform object. + operationId: dcim_module_bays_partial_update + description: Patch a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34690,10 +34035,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -34702,17 +34047,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_platforms_destroy - description: Delete a platform object. + operationId: dcim_module_bays_destroy + description: Delete a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -34722,177 +34067,67 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/: + /api/dcim/module-types/: get: - operationId: dcim_power_feeds_list - description: Get a list of power feed objects. + operationId: dcim_module_types_list + description: Get a list of module type objects. parameters: - in: query - name: amperage - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__empty - schema: - type: boolean - - in: query - name: amperage__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__empty - schema: - type: boolean - - in: query - name: available_power__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: cable_end + name: airflow schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 + x-spec-enum-id: f6e5562e0e98d69d enum: - - A - - B - description: '* `A` - A + - front-to-rear + - left-to-right + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `B` - B' + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' - in: query - name: cable_end__n + name: airflow__n schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 + x-spec-enum-id: f6e5562e0e98d69d enum: - - A - - B - description: '* `A` - A + - front-to-rear + - left-to-right + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' - in: query - name: cabled + name: console_ports schema: type: boolean + description: Has console ports - in: query - name: connected + name: console_server_ports schema: type: boolean + description: Has console server ports - in: query name: created schema: @@ -35103,6 +34338,11 @@ paths: format: int32 explode: true style: form + - in: query + name: interfaces + schema: + type: boolean + description: Has interfaces - in: query name: last_updated schema: @@ -35173,74 +34413,43 @@ paths: schema: type: integer - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: max_utilization - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__empty - schema: - type: boolean - - in: query - name: max_utilization__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__gte + name: manufacturer schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: max_utilization__lt + name: manufacturer__n schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: max_utilization__lte + name: manufacturer_id schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: max_utilization__n + name: manufacturer_id__n schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: model schema: type: array items: @@ -35248,11 +34457,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: model__empty schema: type: boolean - in: query - name: name__ic + name: model__ic schema: type: array items: @@ -35260,7 +34469,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: model__ie schema: type: array items: @@ -35268,7 +34477,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: model__iew schema: type: array items: @@ -35276,7 +34485,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: model__isw schema: type: array items: @@ -35284,7 +34493,7 @@ paths: explode: true style: form - in: query - name: name__n + name: model__n schema: type: array items: @@ -35292,7 +34501,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: model__nic schema: type: array items: @@ -35300,7 +34509,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: model__nie schema: type: array items: @@ -35308,7 +34517,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: model__niew schema: type: array items: @@ -35316,7 +34525,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: model__nisw schema: type: array items: @@ -35324,9 +34533,10 @@ paths: explode: true style: form - in: query - name: occupied + name: modified_by_request schema: - type: boolean + type: string + format: uuid - name: offset required: false in: query @@ -35340,391 +34550,222 @@ paths: schema: type: string - in: query - name: phase - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: phase__n - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: power_panel_id - schema: - type: array - items: - type: integer - description: Power panel (ID) - explode: true - style: form - - in: query - name: power_panel_id__n + name: part_number schema: type: array items: - type: integer - description: Power panel (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: part_number__empty schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: boolean - in: query - name: rack_id__n + name: part_number__ic schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: part_number__ie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: part_number__iew schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: part_number__isw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: part_number__n schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: part_number__nic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: part_number__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: part_number__niew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: part_number__nisw schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: pass_through_ports schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: boolean + description: Has pass-through ports - in: query - name: site_group_id__n + name: power_outlets schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: boolean + description: Has power outlets - in: query - name: site_id + name: power_ports schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: boolean + description: Has power ports - in: query - name: site_id__n + name: q schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: string + description: Search - in: query - name: status + name: tag schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: status__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: supply - schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' - - in: query - name: supply__n + name: updated_by_request schema: type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' + format: uuid - in: query - name: tag + name: weight schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tenant + name: weight__gte schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant__n + name: weight__lt schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group + name: weight__lte schema: type: array items: - type: integer - description: Tenant Group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group__n + name: weight__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type + name: weight_unit schema: type: string - x-spec-enum-id: 093a164236819eb8 + x-spec-enum-id: 7c1876f422815884 enum: - - primary - - redundant - description: '* `primary` - Primary + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms - * `redundant` - Redundant' + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: type__n + name: weight_unit__n schema: type: string - x-spec-enum-id: 093a164236819eb8 + x-spec-enum-id: 7c1876f422815884 enum: - - primary - - redundant - description: '* `primary` - Primary + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms - * `redundant` - Redundant' - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: voltage - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__empty - schema: - type: boolean - - in: query - name: voltage__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -35735,21 +34776,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerFeedList' + $ref: '#/components/schemas/PaginatedModuleTypeList' description: '' post: - operationId: dcim_power_feeds_create - description: Post a list of power feed objects. + operationId: dcim_module_types_create + description: Post a list of module type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35759,11 +34800,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_feeds_bulk_update - description: Put a list of power feed objects. + operationId: dcim_module_types_bulk_update + description: Put a list of module type objects. tags: - dcim requestBody: @@ -35772,12 +34813,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35789,11 +34830,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_feeds_bulk_partial_update - description: Patch a list of power feed objects. + operationId: dcim_module_types_bulk_partial_update + description: Patch a list of module type objects. tags: - dcim requestBody: @@ -35802,12 +34843,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35819,11 +34860,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_feeds_bulk_destroy - description: Delete a list of power feed objects. + operationId: dcim_module_types_bulk_destroy + description: Delete a list of module type objects. tags: - dcim requestBody: @@ -35832,12 +34873,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35845,16 +34886,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/: + /api/dcim/module-types/{id}/: get: - operationId: dcim_power_feeds_retrieve - description: Get a power feed object. + operationId: dcim_module_types_retrieve + description: Get a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35866,17 +34907,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_feeds_update - description: Put a power feed object. + operationId: dcim_module_types_update + description: Put a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35884,10 +34925,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -35897,17 +34938,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_feeds_partial_update - description: Patch a power feed object. + operationId: dcim_module_types_partial_update + description: Patch a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35915,10 +34956,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -35927,17 +34968,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_feeds_destroy - description: Delete a power feed object. + operationId: dcim_module_types_destroy + description: Delete a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -35947,35 +34988,95 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/trace/: + /api/dcim/modules/: get: - operationId: dcim_power_feeds_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_modules_list + description: Get a list of module objects. parameters: - - in: path - name: id + - in: query + name: asset_tag schema: - type: integer - description: A unique integer value identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - /api/dcim/power-outlet-templates/: - get: - operationId: dcim_power_outlet_templates_list - description: Get a list of power outlet template objects. - parameters: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -36129,63 +35230,21 @@ paths: explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id + name: device_id schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: devicetype_id__n + name: device_id__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: feed_leg - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) - explode: true - style: form - - in: query - name: feed_leg__n - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + description: Device (ID) explode: true style: form - in: query @@ -36247,205 +35306,206 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__niew + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__nisw + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: last_updated + name: manufacturer_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: last_updated__empty + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_bay_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: module_bay_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: module_type schema: type: array items: type: string - format: date-time + description: Module type (model) explode: true style: form - in: query - name: last_updated__lt + name: module_type__n schema: type: array items: type: string - format: date-time + description: Module type (model) explode: true style: form - in: query - name: last_updated__lte + name: module_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Module type (ID) explode: true style: form - in: query - name: last_updated__n + name: module_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Module type (ID) explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - - in: query - name: modified_by_request + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: module_type_id + name: q schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form + type: string + description: Search - in: query - name: module_type_id__n + name: serial schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: serial__empty schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form + type: boolean - in: query - name: moduletype_id__n + name: serial__ic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: serial__ie schema: type: array items: @@ -36453,11 +35513,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: serial__iew schema: type: array items: @@ -36465,7 +35521,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: serial__isw schema: type: array items: @@ -36473,7 +35529,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: serial__n schema: type: array items: @@ -36481,7 +35537,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: serial__nic schema: type: array items: @@ -36489,7 +35545,7 @@ paths: explode: true style: form - in: query - name: name__n + name: serial__nie schema: type: array items: @@ -36497,7 +35553,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: serial__niew schema: type: array items: @@ -36505,7 +35561,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: serial__nisw schema: type: array items: @@ -36513,222 +35569,39 @@ paths: explode: true style: form - in: query - name: name__niew + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__nisw + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: power_port_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Power port (ID) + type: string explode: true style: form - in: query - name: power_port_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Power port (ID) + type: string explode: true style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -36744,21 +35617,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' + $ref: '#/components/schemas/PaginatedModuleList' description: '' post: - operationId: dcim_power_outlet_templates_create - description: Post a list of power outlet template objects. + operationId: dcim_modules_create + description: Post a list of module objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -36768,11 +35641,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_power_outlet_templates_bulk_update - description: Put a list of power outlet template objects. + operationId: dcim_modules_bulk_update + description: Put a list of module objects. tags: - dcim requestBody: @@ -36781,12 +35654,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -36798,11 +35671,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_power_outlet_templates_bulk_partial_update - description: Patch a list of power outlet template objects. + operationId: dcim_modules_bulk_partial_update + description: Patch a list of module objects. tags: - dcim requestBody: @@ -36811,12 +35684,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -36828,11 +35701,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_power_outlet_templates_bulk_destroy - description: Delete a list of power outlet template objects. + operationId: dcim_modules_bulk_destroy + description: Delete a list of module objects. tags: - dcim requestBody: @@ -36841,12 +35714,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -36854,16 +35727,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlet-templates/{id}/: + /api/dcim/modules/{id}/: get: - operationId: dcim_power_outlet_templates_retrieve - description: Get a power outlet template object. + operationId: dcim_modules_retrieve + description: Get a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36875,17 +35748,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_power_outlet_templates_update - description: Put a power outlet template object. + operationId: dcim_modules_update + description: Put a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36893,10 +35766,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -36906,17 +35779,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_power_outlet_templates_partial_update - description: Patch a power outlet template object. + operationId: dcim_modules_partial_update + description: Patch a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36924,10 +35797,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -36936,17 +35809,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_power_outlet_templates_destroy - description: Delete a power outlet template object. + operationId: dcim_modules_destroy + description: Delete a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -36956,61 +35829,35 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/: + /api/dcim/platforms/: get: - operationId: dcim_power_outlets_list - description: Get a list of power outlet objects. + operationId: dcim_platforms_list + description: Get a list of platform objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n + name: available_for_device_type schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - in: query - name: cable_id + name: config_template_id schema: type: array items: type: integer nullable: true - description: Cable (ID) + description: Config template (ID) explode: true style: form - in: query - name: cable_id__n + name: config_template_id__n schema: type: array items: type: integer nullable: true - description: Cable (ID) + description: Config template (ID) explode: true style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - in: query name: created schema: @@ -37164,159 +36011,175 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device_id + name: id__gte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__lt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: id__lte schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: id__n schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: last_updated schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_type_id__n + name: last_updated__empty schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: feed_leg + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + format: date-time explode: true style: form - in: query - name: feed_leg__n + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + format: date-time explode: true style: form - in: query - name: id + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: last_updated__lte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: id__gte + name: manufacturer schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__lt + name: manufacturer__n schema: type: array items: - type: integer - format: int32 + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: id__lte + name: manufacturer_id schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: id__n + name: manufacturer_id__n schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: label + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -37324,11 +36187,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: name__empty schema: type: boolean - in: query - name: label__ic + name: name__ic schema: type: array items: @@ -37336,7 +36199,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: name__ie schema: type: array items: @@ -37344,7 +36207,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: name__iew schema: type: array items: @@ -37352,7 +36215,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: name__isw schema: type: array items: @@ -37360,7 +36223,7 @@ paths: explode: true style: form - in: query - name: label__n + name: name__n schema: type: array items: @@ -37368,7 +36231,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: name__nic schema: type: array items: @@ -37376,7 +36239,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: name__nie schema: type: array items: @@ -37384,7 +36247,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__niew schema: type: array items: @@ -37392,450 +36255,112 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: last_updated + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: slug__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: slug__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: slug__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: slug__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: slug__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: slug__nie schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location__n + name: slug__niew schema: type: array items: type: string - description: Location (slug) explode: true style: form - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: occupied - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: power_port_id - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: power_port_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n + name: slug__nisw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) explode: true style: form - in: query @@ -37854,67 +36379,11 @@ paths: type: string explode: true style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -37925,21 +36394,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletList' + $ref: '#/components/schemas/PaginatedPlatformList' description: '' post: - operationId: dcim_power_outlets_create - description: Post a list of power outlet objects. + operationId: dcim_platforms_create + description: Post a list of platform objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -37949,11 +36418,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_power_outlets_bulk_update - description: Put a list of power outlet objects. + operationId: dcim_platforms_bulk_update + description: Put a list of platform objects. tags: - dcim requestBody: @@ -37962,12 +36431,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -37979,11 +36448,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_power_outlets_bulk_partial_update - description: Patch a list of power outlet objects. + operationId: dcim_platforms_bulk_partial_update + description: Patch a list of platform objects. tags: - dcim requestBody: @@ -37992,12 +36461,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -38009,11 +36478,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_power_outlets_bulk_destroy - description: Delete a list of power outlet objects. + operationId: dcim_platforms_bulk_destroy + description: Delete a list of platform objects. tags: - dcim requestBody: @@ -38022,12 +36491,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -38035,16 +36504,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/: + /api/dcim/platforms/{id}/: get: - operationId: dcim_power_outlets_retrieve - description: Get a power outlet object. + operationId: dcim_platforms_retrieve + description: Get a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38056,17 +36525,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_power_outlets_update - description: Put a power outlet object. + operationId: dcim_platforms_update + description: Put a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38074,10 +36543,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -38087,17 +36556,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_power_outlets_partial_update - description: Patch a power outlet object. + operationId: dcim_platforms_partial_update + description: Patch a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38105,10 +36574,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38117,17 +36586,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_power_outlets_destroy - description: Delete a power outlet object. + operationId: dcim_platforms_destroy + description: Delete a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -38137,89 +36606,177 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/trace/: + /api/dcim/power-feeds/: get: - operationId: dcim_power_outlets_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_power_feeds_list + description: Get a list of power feed objects. parameters: - - in: path - name: id + - in: query + name: amperage schema: - type: integer - description: A unique integer value identifying this power outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - /api/dcim/power-panels/: - get: - operationId: dcim_power_panels_list - description: Get a list of power panel objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: contact + name: amperage__empty + schema: + type: boolean + - in: query + name: amperage__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: amperage__gte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: amperage__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: amperage__lte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: amperage__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: available_power schema: type: array items: type: integer - description: Contact Role + format: int32 + explode: true + style: form + - in: query + name: available_power__empty + schema: + type: boolean + - in: query + name: available_power__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -38500,21 +37057,65 @@ paths: schema: type: integer - in: query - name: location_id + name: mark_connected + schema: + type: boolean + - in: query + name: max_utilization schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: max_utilization__empty + schema: + type: boolean + - in: query + name: max_utilization__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 + explode: true + style: form + - in: query + name: max_utilization__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -38606,6 +37207,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -38618,27 +37223,83 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: phase + schema: + type: string + x-spec-enum-id: 994bc0696f4df57f + enum: + - single-phase + - three-phase + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + - in: query + name: phase__n + schema: + type: string + x-spec-enum-id: 994bc0696f4df57f + enum: + - single-phase + - three-phase + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + - in: query + name: power_panel_id + schema: + type: array + items: + type: integer + description: Power panel (ID) + explode: true + style: form + - in: query + name: power_panel_id__n + schema: + type: array + items: + type: integer + description: Power panel (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: region + name: rack_id schema: type: array items: type: integer - description: Region (slug) + description: Rack (ID) explode: true style: form - in: query - name: region__n + name: rack_id__n schema: type: array items: type: integer - description: Region (slug) + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -38646,8 +37307,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -38655,8 +37315,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -38682,8 +37341,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -38691,8 +37349,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -38700,8 +37357,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -38709,8 +37365,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -38731,6 +37386,46 @@ paths: description: Site (ID) explode: true style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + explode: true + style: form + - in: query + name: supply + schema: + type: string + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' + - in: query + name: supply__n + schema: + type: string + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' - in: query name: tag schema: @@ -38747,11 +37442,161 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: string + x-spec-enum-id: 093a164236819eb8 + enum: + - primary + - redundant + description: '* `primary` - Primary + + * `redundant` - Redundant' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: 093a164236819eb8 + enum: + - primary + - redundant + description: '* `primary` - Primary + + * `redundant` - Redundant' - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: voltage + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__empty + schema: + type: boolean + - in: query + name: voltage__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - dcim security: @@ -38762,21 +37607,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPanelList' + $ref: '#/components/schemas/PaginatedPowerFeedList' description: '' post: - operationId: dcim_power_panels_create - description: Post a list of power panel objects. + operationId: dcim_power_feeds_create + description: Post a list of power feed objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -38786,11 +37631,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_power_panels_bulk_update - description: Put a list of power panel objects. + operationId: dcim_power_feeds_bulk_update + description: Put a list of power feed objects. tags: - dcim requestBody: @@ -38799,12 +37644,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -38816,11 +37661,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_power_panels_bulk_partial_update - description: Patch a list of power panel objects. + operationId: dcim_power_feeds_bulk_partial_update + description: Patch a list of power feed objects. tags: - dcim requestBody: @@ -38829,12 +37674,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -38846,11 +37691,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_power_panels_bulk_destroy - description: Delete a list of power panel objects. + operationId: dcim_power_feeds_bulk_destroy + description: Delete a list of power feed objects. tags: - dcim requestBody: @@ -38859,12 +37704,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -38872,16 +37717,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-panels/{id}/: + /api/dcim/power-feeds/{id}/: get: - operationId: dcim_power_panels_retrieve - description: Get a power panel object. + operationId: dcim_power_feeds_retrieve + description: Get a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38893,17 +37738,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_power_panels_update - description: Put a power panel object. + operationId: dcim_power_feeds_update + description: Put a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38911,10 +37756,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -38924,17 +37769,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_power_panels_partial_update - description: Patch a power panel object. + operationId: dcim_power_feeds_partial_update + description: Patch a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38942,10 +37787,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38954,17 +37799,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_power_panels_destroy - description: Delete a power panel object. + operationId: dcim_power_feeds_destroy + description: Delete a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -38974,69 +37819,35 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/: + /api/dcim/power-feeds/{id}/trace/: get: - operationId: dcim_power_port_templates_list - description: Get a list of power port template objects. + operationId: dcim_power_feeds_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: A unique integer value identifying this power feed. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerFeed' + description: '' + /api/dcim/power-outlet-templates/: + get: + operationId: dcim_power_outlet_templates_list + description: Get a list of power outlet template objects. + parameters: - in: query name: created schema: @@ -39210,23 +38021,23 @@ paths: explode: true style: form - in: query - name: devicetype_id + name: feed_leg schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: devicetype_id__n + name: feed_leg__n schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query @@ -39440,64 +38251,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -39523,26 +38276,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -39639,6 +38372,26 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: power_port_id + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: power_port_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form - in: query name: q schema: @@ -39648,23 +38401,23 @@ paths: name: type schema: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 enum: - California Style - DC - IEC 60309 - IEC 60320 - IEC 60906-1 - - International/ITA + - ITA/International - Molex - NEMA (Locking) - NEMA (Non-locking) - Other - Proprietary - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] + description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', + ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', + ''C19''), (''iec-60320-c21'', ''C21'')] * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', @@ -39677,79 +38430,77 @@ paths: * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', + ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA + 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), + (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', + ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA + 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA + 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA + 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA + 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA + 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] + * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', + ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', + ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', + ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', + ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', + ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', + ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', + ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', + ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', + ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', + ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'', + ''NEMA L22-30R'')] - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', + ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O'')] + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), + (''usb-c'', ''USB Type C'')] * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] * `DC` - [(''dc-terminal'', ''DC Terminal'')] - * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), + (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', + ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON + TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), + (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: type__n schema: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 enum: - California Style - DC - IEC 60309 - IEC 60320 - IEC 60906-1 - - International/ITA + - ITA/International - Molex - NEMA (Locking) - NEMA (Non-locking) - Other - Proprietary - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] + description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', + ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', + ''C19''), (''iec-60320-c21'', ''C21'')] * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', @@ -39762,56 +38513,54 @@ paths: * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', + ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA + 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), + (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', + ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA + 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA + 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA + 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA + 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA + 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] + * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', + ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', + ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', + ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', + ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', + ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', + ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', + ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', + ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', + ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', + ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'', + ''NEMA L22-30R'')] - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', + ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O'')] + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), + (''usb-c'', ''USB Type C'')] * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] * `DC` - [(''dc-terminal'', ''DC Terminal'')] - * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), + (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', + ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON + TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), + (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query @@ -39829,21 +38578,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortTemplateList' + $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' description: '' post: - operationId: dcim_power_port_templates_create - description: Post a list of power port template objects. + operationId: dcim_power_outlet_templates_create + description: Post a list of power outlet template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39853,11 +38602,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_power_port_templates_bulk_update - description: Put a list of power port template objects. + operationId: dcim_power_outlet_templates_bulk_update + description: Put a list of power outlet template objects. tags: - dcim requestBody: @@ -39866,12 +38615,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39883,11 +38632,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_power_port_templates_bulk_partial_update - description: Patch a list of power port template objects. + operationId: dcim_power_outlet_templates_bulk_partial_update + description: Patch a list of power outlet template objects. tags: - dcim requestBody: @@ -39896,12 +38645,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39913,11 +38662,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_power_port_templates_bulk_destroy - description: Delete a list of power port template objects. + operationId: dcim_power_outlet_templates_bulk_destroy + description: Delete a list of power outlet template objects. tags: - dcim requestBody: @@ -39926,12 +38675,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39939,16 +38688,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/{id}/: + /api/dcim/power-outlet-templates/{id}/: get: - operationId: dcim_power_port_templates_retrieve - description: Get a power port template object. + operationId: dcim_power_outlet_templates_retrieve + description: Get a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -39960,17 +38709,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_power_port_templates_update - description: Put a power port template object. + operationId: dcim_power_outlet_templates_update + description: Put a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -39978,10 +38727,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -39991,17 +38740,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_power_port_templates_partial_update - description: Patch a power port template object. + operationId: dcim_power_outlet_templates_partial_update + description: Patch a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -40009,10 +38758,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -40021,17 +38770,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_power_port_templates_destroy - description: Delete a power port template object. + operationId: dcim_power_outlet_templates_destroy + description: Delete a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -40041,69 +38790,11 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/: + /api/dcim/power-outlets/: get: - operationId: dcim_power_ports_list - description: Get a list of power port objects. + operationId: dcim_power_outlets_list + description: Get a list of power outlet objects. parameters: - - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: cable_end schema: @@ -40344,6 +39035,60 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form - in: query name: device_type schema: @@ -40380,6 +39125,26 @@ paths: description: Device type (ID) explode: true style: form + - in: query + name: feed_leg + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__n + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) + explode: true + style: form - in: query name: id schema: @@ -40631,64 +39396,6 @@ paths: name: mark_connected schema: type: boolean - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -40814,6 +39521,26 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: power_port_id + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: power_port_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form - in: query name: q schema: @@ -40860,8 +39587,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -40869,62 +39595,23 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -40950,8 +39637,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -40959,8 +39645,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -40968,8 +39653,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -40977,8 +39661,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -41021,7 +39704,7 @@ paths: type: array items: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 description: Physical port type explode: true style: form @@ -41031,7 +39714,7 @@ paths: type: array items: type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: 83934a5ad90d6138 description: Physical port type explode: true style: form @@ -41086,21 +39769,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortList' + $ref: '#/components/schemas/PaginatedPowerOutletList' description: '' post: - operationId: dcim_power_ports_create - description: Post a list of power port objects. + operationId: dcim_power_outlets_create + description: Post a list of power outlet objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -41110,11 +39793,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_power_ports_bulk_update - description: Put a list of power port objects. + operationId: dcim_power_outlets_bulk_update + description: Put a list of power outlet objects. tags: - dcim requestBody: @@ -41123,12 +39806,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -41140,11 +39823,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_power_ports_bulk_partial_update - description: Patch a list of power port objects. + operationId: dcim_power_outlets_bulk_partial_update + description: Patch a list of power outlet objects. tags: - dcim requestBody: @@ -41153,12 +39836,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -41170,11 +39853,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_power_ports_bulk_destroy - description: Delete a list of power port objects. + operationId: dcim_power_outlets_bulk_destroy + description: Delete a list of power outlet objects. tags: - dcim requestBody: @@ -41183,12 +39866,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -41196,16 +39879,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/: + /api/dcim/power-outlets/{id}/: get: - operationId: dcim_power_ports_retrieve - description: Get a power port object. + operationId: dcim_power_outlets_retrieve + description: Get a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41217,17 +39900,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_power_ports_update - description: Put a power port object. + operationId: dcim_power_outlets_update + description: Put a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41235,10 +39918,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -41248,17 +39931,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_power_ports_partial_update - description: Patch a power port object. + operationId: dcim_power_outlets_partial_update + description: Patch a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41266,10 +39949,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -41278,17 +39961,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_power_ports_destroy - description: Delete a power port object. + operationId: dcim_power_outlets_destroy + description: Delete a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41298,9 +39981,9 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/trace/: + /api/dcim/power-outlets/{id}/trace/: get: - operationId: dcim_power_ports_trace_retrieve + operationId: dcim_power_outlets_trace_retrieve description: Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). parameters: @@ -41308,7 +39991,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -41320,13 +40003,65 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/PowerOutlet' description: '' - /api/dcim/rack-reservations/: + /api/dcim/power-panels/: get: - operationId: dcim_rack_reservations_list - description: Get a list of rack reservation objects. + operationId: dcim_power_panels_list + description: Get a list of power panel objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -41606,31 +40341,12 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - in: query name: location_id schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query @@ -41638,8 +40354,7 @@ paths: schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query @@ -41647,151 +40362,125 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: rack_id + name: name schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: name__empty schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: boolean - in: query - name: region + name: name__ic schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: name__ie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: name__iew schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: name__isw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: name__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__nic schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: name__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: name__niew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: name__nisw schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site_group_id__n + name: q schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string + description: Search - in: query - name: site_id + name: region schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: region__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: region_id schema: type: array items: @@ -41799,7 +40488,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: region_id__n schema: type: array items: @@ -41807,124 +40496,94 @@ paths: explode: true style: form - in: query - name: tenant + name: site schema: type: array items: type: string - description: Tenant (slug) + description: Site name (slug) explode: true style: form - in: query - name: tenant__n + name: site__n schema: type: array items: type: string - description: Tenant (slug) + description: Site name (slug) explode: true style: form - in: query - name: tenant_group + name: site_group schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: site_group__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: site_group_id schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: site_group_id__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: tenant_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: unit - schema: - type: number - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: user + name: tag schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: tag__n schema: type: array items: type: string - description: User (name) - explode: true - style: form - - in: query - name: user_id - schema: - type: array - items: - type: integer - description: User (ID) explode: true style: form - in: query - name: user_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: User (ID) - explode: true - style: form + type: string + format: uuid tags: - dcim security: @@ -41935,21 +40594,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackReservationList' + $ref: '#/components/schemas/PaginatedPowerPanelList' description: '' post: - operationId: dcim_rack_reservations_create - description: Post a list of rack reservation objects. + operationId: dcim_power_panels_create + description: Post a list of power panel objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -41959,11 +40618,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_rack_reservations_bulk_update - description: Put a list of rack reservation objects. + operationId: dcim_power_panels_bulk_update + description: Put a list of power panel objects. tags: - dcim requestBody: @@ -41972,12 +40631,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -41989,11 +40648,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_rack_reservations_bulk_partial_update - description: Patch a list of rack reservation objects. + operationId: dcim_power_panels_bulk_partial_update + description: Patch a list of power panel objects. tags: - dcim requestBody: @@ -42002,12 +40661,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -42019,11 +40678,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_rack_reservations_bulk_destroy - description: Delete a list of rack reservation objects. + operationId: dcim_power_panels_bulk_destroy + description: Delete a list of power panel objects. tags: - dcim requestBody: @@ -42032,12 +40691,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -42045,16 +40704,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-reservations/{id}/: + /api/dcim/power-panels/{id}/: get: - operationId: dcim_rack_reservations_retrieve - description: Get a rack reservation object. + operationId: dcim_power_panels_retrieve + description: Get a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42066,17 +40725,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_rack_reservations_update - description: Put a rack reservation object. + operationId: dcim_power_panels_update + description: Put a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42084,10 +40743,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -42097,17 +40756,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_rack_reservations_partial_update - description: Patch a rack reservation object. + operationId: dcim_power_panels_partial_update + description: Patch a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42115,10 +40774,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42127,17 +40786,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_rack_reservations_destroy - description: Delete a rack reservation object. + operationId: dcim_power_panels_destroy + description: Delete a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -42147,93 +40806,67 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/: + /api/dcim/power-port-templates/: get: - operationId: dcim_rack_roles_list - description: Get a list of rack role objects. + operationId: dcim_power_port_templates_list + description: Get a list of power port template objects. parameters: - in: query - name: color + name: allocated_draw schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: allocated_draw__empty schema: type: boolean - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n + name: allocated_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: allocated_draw__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nie + name: allocated_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: allocated_draw__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: allocated_draw__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -42388,6 +41021,26 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -42447,81 +41100,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -42529,11 +41168,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -42541,7 +41176,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -42549,100 +41184,159 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: maximum_draw schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: maximum_draw__empty schema: - type: string - description: Search + type: boolean - in: query - name: slug + name: maximum_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: maximum_draw__gte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: slug__ic + name: maximum_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: maximum_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: name schema: type: array items: @@ -42650,7 +41344,11 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -42658,7 +41356,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__ie schema: type: array items: @@ -42666,7 +41364,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__iew schema: type: array items: @@ -42674,7 +41372,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__isw schema: type: array items: @@ -42682,7 +41380,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__n schema: type: array items: @@ -42690,7 +41388,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__nic schema: type: array items: @@ -42698,7 +41396,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nie schema: type: array items: @@ -42706,7 +41404,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__niew schema: type: array items: @@ -42714,13 +41412,202 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - International/ITA + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', + ''NEMA L22-30P'')] + + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] + + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - International/ITA + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', + ''NEMA L22-30P'')] + + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] + + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -42736,21 +41623,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackRoleList' + $ref: '#/components/schemas/PaginatedPowerPortTemplateList' description: '' post: - operationId: dcim_rack_roles_create - description: Post a list of rack role objects. + operationId: dcim_power_port_templates_create + description: Post a list of power port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42760,11 +41647,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_rack_roles_bulk_update - description: Put a list of rack role objects. + operationId: dcim_power_port_templates_bulk_update + description: Put a list of power port template objects. tags: - dcim requestBody: @@ -42773,12 +41660,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42790,11 +41677,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_rack_roles_bulk_partial_update - description: Patch a list of rack role objects. + operationId: dcim_power_port_templates_bulk_partial_update + description: Patch a list of power port template objects. tags: - dcim requestBody: @@ -42803,12 +41690,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42820,11 +41707,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_rack_roles_bulk_destroy - description: Delete a list of rack role objects. + operationId: dcim_power_port_templates_bulk_destroy + description: Delete a list of power port template objects. tags: - dcim requestBody: @@ -42833,12 +41720,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42846,16 +41733,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/{id}/: + /api/dcim/power-port-templates/{id}/: get: - operationId: dcim_rack_roles_retrieve - description: Get a rack role object. + operationId: dcim_power_port_templates_retrieve + description: Get a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42867,17 +41754,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_rack_roles_update - description: Put a rack role object. + operationId: dcim_power_port_templates_update + description: Put a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42885,10 +41772,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -42898,17 +41785,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_rack_roles_partial_update - description: Patch a rack role object. + operationId: dcim_power_port_templates_partial_update + description: Patch a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42916,10 +41803,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42928,17 +41815,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_rack_roles_destroy - description: Delete a rack role object. + operationId: dcim_power_port_templates_destroy + description: Delete a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -42948,149 +41835,119 @@ paths: responses: '204': description: No response body - /api/dcim/racks/: + /api/dcim/power-ports/: get: - operationId: dcim_racks_list - description: Get a list of rack objects. + operationId: dcim_power_ports_list + description: Get a list of power port objects. parameters: - in: query - name: asset_tag + name: allocated_draw schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__empty + name: allocated_draw__empty schema: type: boolean - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n + name: allocated_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nic + name: allocated_draw__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nie + name: allocated_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__niew + name: allocated_draw__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nisw + name: allocated_draw__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact + name: cable_end schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact__n + name: cable_end__n schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_group + name: cable_id schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role + name: cabled schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query - name: contact_role__n + name: connected schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query name: created schema: @@ -43159,10 +42016,6 @@ paths: schema: type: string format: uuid - - in: query - name: desc_units - schema: - type: boolean - in: query name: description schema: @@ -43248,87 +42101,131 @@ paths: explode: true style: form - in: query - name: facility_id + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility_id__empty + name: device__n schema: - type: boolean + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form - in: query - name: facility_id__ic + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility_id__ie + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility_id__iew + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility_id__isw + name: device_role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility_id__n + name: device_role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: facility_id__nic + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility_id__nie + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility_id__niew + name: device_type schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: facility_id__nisw + name: device_type__n schema: type: array items: type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) explode: true style: form - in: query @@ -43389,6 +42286,90 @@ paths: format: int32 explode: true style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -43463,7 +42444,7 @@ paths: schema: type: array items: - type: integer + type: string description: Location (slug) explode: true style: form @@ -43472,7 +42453,7 @@ paths: schema: type: array items: - type: integer + type: string description: Location (slug) explode: true style: form @@ -43495,7 +42476,11 @@ paths: explode: true style: form - in: query - name: max_weight + name: mark_connected + schema: + type: boolean + - in: query + name: maximum_draw schema: type: array items: @@ -43504,11 +42489,11 @@ paths: explode: true style: form - in: query - name: max_weight__empty + name: maximum_draw__empty schema: type: boolean - in: query - name: max_weight__gt + name: maximum_draw__gt schema: type: array items: @@ -43517,7 +42502,7 @@ paths: explode: true style: form - in: query - name: max_weight__gte + name: maximum_draw__gte schema: type: array items: @@ -43526,7 +42511,7 @@ paths: explode: true style: form - in: query - name: max_weight__lt + name: maximum_draw__lt schema: type: array items: @@ -43535,7 +42520,7 @@ paths: explode: true style: form - in: query - name: max_weight__lte + name: maximum_draw__lte schema: type: array items: @@ -43544,7 +42529,7 @@ paths: explode: true style: form - in: query - name: max_weight__n + name: maximum_draw__n schema: type: array items: @@ -43558,61 +42543,23 @@ paths: type: string format: uuid - in: query - name: mounting_depth - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__empty - schema: - type: boolean - - in: query - name: mounting_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lte + name: module_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query - name: mounting_depth__n + name: module_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query @@ -43699,6 +42646,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -43712,155 +42663,52 @@ paths: schema: type: string - in: query - name: outer_depth - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__empty - schema: - type: boolean - - in: query - name: outer_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_unit - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_unit__n + name: q schema: type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_width - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_width__empty - schema: - type: boolean - - in: query - name: outer_width__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + description: Search - in: query - name: outer_width__gte + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: outer_width__lt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: outer_width__lte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: outer_width__n + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - - in: query - name: q - schema: - type: string - description: Search - in: query name: region schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -43868,8 +42716,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -43877,59 +42724,45 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: site schema: type: array items: type: string - description: Role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role_id + name: site__n schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + description: Site name (slug) explode: true style: form - in: query - name: role_id__n + name: site_group schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: serial + name: site_group__n schema: type: array items: @@ -43937,11 +42770,7 @@ paths: explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: site_group_id schema: type: array items: @@ -43949,7 +42778,7 @@ paths: explode: true style: form - in: query - name: serial__ie + name: site_group_id__n schema: type: array items: @@ -43957,23 +42786,25 @@ paths: explode: true style: form - in: query - name: serial__iew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: serial__isw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: serial__n + name: tag schema: type: array items: @@ -43981,7 +42812,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: tag__n schema: type: array items: @@ -43989,103 +42820,471 @@ paths: explode: true style: form - in: query - name: serial__nie + name: type schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + description: Physical port type explode: true style: form - in: query - name: serial__niew + name: type__n schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + description: Physical port type explode: true style: form - in: query - name: serial__nisw + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: site + name: virtual_chassis schema: type: array items: type: string - description: Site (slug) + description: Virtual Chassis explode: true style: form - in: query - name: site__n + name: virtual_chassis__n schema: type: array items: type: string - description: Site (slug) + description: Virtual Chassis explode: true style: form - in: query - name: site_group + name: virtual_chassis_id schema: type: array items: type: integer - description: Site group (slug) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: site_group__n + name: virtual_chassis_id__n schema: type: array items: type: integer - description: Site group (slug) + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedPowerPortList' + description: '' + post: + operationId: dcim_power_ports_create + description: Post a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + put: + operationId: dcim_power_ports_bulk_update + description: Put a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPort' + description: '' + patch: + operationId: dcim_power_ports_bulk_partial_update + description: Patch a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPort' + description: '' + delete: + operationId: dcim_power_ports_bulk_destroy + description: Delete a list of power port objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/power-ports/{id}/: + get: + operationId: dcim_power_ports_retrieve + description: Get a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + put: + operationId: dcim_power_ports_update + description: Put a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritablePowerPortRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + patch: + operationId: dcim_power_ports_partial_update + description: Patch a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + delete: + operationId: dcim_power_ports_destroy + description: Delete a power port object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/power-ports/{id}/trace/: + get: + operationId: dcim_power_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + /api/dcim/rack-reservations/: + get: + operationId: dcim_rack_reservations_list + description: Get a list of rack reservation objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true style: form - in: query - name: site_group_id__n + name: created__empty schema: type: array items: - type: integer - description: Site group (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id + name: created__gt schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id__n + name: created__gte schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: starting_unit + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -44094,11 +43293,11 @@ paths: explode: true style: form - in: query - name: starting_unit__empty + name: id__empty schema: type: boolean - in: query - name: starting_unit__gt + name: id__gt schema: type: array items: @@ -44107,7 +43306,7 @@ paths: explode: true style: form - in: query - name: starting_unit__gte + name: id__gte schema: type: array items: @@ -44116,7 +43315,7 @@ paths: explode: true style: form - in: query - name: starting_unit__lt + name: id__lt schema: type: array items: @@ -44125,7 +43324,7 @@ paths: explode: true style: form - in: query - name: starting_unit__lte + name: id__lte schema: type: array items: @@ -44134,7 +43333,7 @@ paths: explode: true style: form - in: query - name: starting_unit__n + name: id__n schema: type: array items: @@ -44143,304 +43342,375 @@ paths: explode: true style: form - in: query - name: status + name: last_updated schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 + format: date-time explode: true style: form - in: query - name: status__n + name: last_updated__empty schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tenant + name: last_updated__lt schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant__n + name: last_updated__lte schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant_group + name: last_updated__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: tenant_group__n + name: location schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: location__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: location_id schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: location_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Rack (ID) explode: true style: form - in: query - name: tenant_id__n + name: rack_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Rack (ID) explode: true style: form - in: query - name: type + name: region schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: type__n + name: region__n schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: u_height + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__empty + name: region_id__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: u_height__gt + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: u_height__gte + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: u_height__lt + name: site_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__lte + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: u_height__n + name: site_id__n schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: updated_by_request + name: tag schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: weight + name: tag__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__empty + name: tenant schema: - type: boolean + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: weight__gt + name: tenant__n schema: type: array items: - type: number - format: double + type: string + description: Tenant (slug) explode: true style: form - in: query - name: weight__gte + name: tenant_group schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lt + name: tenant_group__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lte + name: tenant_group_id schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__n + name: tenant_group_id__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight_unit + name: tenant_id schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: weight_unit__n + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: unit + schema: + type: number + - in: query + name: updated_by_request schema: type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + format: uuid - in: query - name: width + name: user + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user_id schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: User (ID) explode: true style: form - in: query - name: width__n + name: user_id__n schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: User (ID) explode: true style: form tags: @@ -44453,21 +43723,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackList' + $ref: '#/components/schemas/PaginatedRackReservationList' description: '' post: - operationId: dcim_racks_create - description: Post a list of rack objects. + operationId: dcim_rack_reservations_create + description: Post a list of rack reservation objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44477,11 +43747,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_racks_bulk_update - description: Put a list of rack objects. + operationId: dcim_rack_reservations_bulk_update + description: Put a list of rack reservation objects. tags: - dcim requestBody: @@ -44490,12 +43760,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44507,11 +43777,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_racks_bulk_partial_update - description: Patch a list of rack objects. + operationId: dcim_rack_reservations_bulk_partial_update + description: Patch a list of rack reservation objects. tags: - dcim requestBody: @@ -44520,12 +43790,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44537,11 +43807,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_racks_bulk_destroy - description: Delete a list of rack objects. + operationId: dcim_rack_reservations_bulk_destroy + description: Delete a list of rack reservation objects. tags: - dcim requestBody: @@ -44550,12 +43820,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44563,16 +43833,16 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/: + /api/dcim/rack-reservations/{id}/: get: - operationId: dcim_racks_retrieve - description: Get a rack object. + operationId: dcim_rack_reservations_retrieve + description: Get a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44584,17 +43854,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_racks_update - description: Put a rack object. + operationId: dcim_rack_reservations_update + description: Put a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44602,10 +43872,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -44615,17 +43885,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_racks_partial_update - description: Patch a rack object. + operationId: dcim_rack_reservations_partial_update + description: Patch a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44633,10 +43903,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -44645,17 +43915,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_racks_destroy - description: Delete a rack object. + operationId: dcim_rack_reservations_destroy + description: Delete a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -44665,109 +43935,10 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/elevation/: - get: - operationId: dcim_racks_elevation_retrieve - description: Rack elevation representing the list of rack units. Also supports - rendering the elevation as an SVG. - parameters: - - in: query - name: exclude - schema: - type: integer - - in: query - name: expand_devices - schema: - type: boolean - default: true - - in: query - name: face - schema: - enum: - - front - - rear - type: string - x-spec-enum-id: d2fb9b3f75158b83 - default: front - minLength: 1 - description: '* `front` - Front - - * `rear` - Rear' - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this rack. - required: true - - in: query - name: include_images - schema: - type: boolean - default: true - - in: query - name: legend_width - schema: - type: integer - default: 30 - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: margin_width - schema: - type: integer - default: 15 - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - minLength: 1 - - in: query - name: render - schema: - enum: - - json - - svg - type: string - x-spec-enum-id: 09901a5ff13ba07a - default: json - minLength: 1 - description: '* `json` - json - - * `svg` - svg' - - in: query - name: unit_height - schema: - type: integer - - in: query - name: unit_width - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRackUnitList' - description: '' - /api/dcim/rear-port-templates/: + /api/dcim/rack-roles/: get: - operationId: dcim_rear_port_templates_list - description: Get a list of rear port template objects. + operationId: dcim_rack_roles_list + description: Get a list of rack role objects. parameters: - in: query name: color @@ -45005,46 +44176,6 @@ paths: type: string explode: true style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -45104,67 +44235,81 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -45172,7 +44317,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -45180,7 +44329,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__ie schema: type: array items: @@ -45188,121 +44337,116 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: module_type_id + name: slug schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: module_type_id__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: slug__ie schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id__n + name: slug__iew schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: slug__isw schema: type: array items: @@ -45310,43 +44454,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n + name: slug__n schema: type: array items: @@ -45354,7 +44462,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__nic schema: type: array items: @@ -45362,7 +44470,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: slug__nie schema: type: array items: @@ -45370,7 +44478,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: slug__niew schema: type: array items: @@ -45378,104 +44486,27 @@ paths: explode: true style: form - in: query - name: name__nisw + name: slug__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: positions - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query @@ -45493,21 +44524,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortTemplateList' + $ref: '#/components/schemas/PaginatedRackRoleList' description: '' post: - operationId: dcim_rear_port_templates_create - description: Post a list of rear port template objects. + operationId: dcim_rack_roles_create + description: Post a list of rack role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45517,11 +44548,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_rear_port_templates_bulk_update - description: Put a list of rear port template objects. + operationId: dcim_rack_roles_bulk_update + description: Put a list of rack role objects. tags: - dcim requestBody: @@ -45530,12 +44561,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45547,11 +44578,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_rear_port_templates_bulk_partial_update - description: Patch a list of rear port template objects. + operationId: dcim_rack_roles_bulk_partial_update + description: Patch a list of rack role objects. tags: - dcim requestBody: @@ -45560,12 +44591,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45577,11 +44608,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_rear_port_templates_bulk_destroy - description: Delete a list of rear port template objects. + operationId: dcim_rack_roles_bulk_destroy + description: Delete a list of rack role objects. tags: - dcim requestBody: @@ -45590,12 +44621,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45603,16 +44634,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-port-templates/{id}/: + /api/dcim/rack-roles/{id}/: get: - operationId: dcim_rear_port_templates_retrieve - description: Get a rear port template object. + operationId: dcim_rack_roles_retrieve + description: Get a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45624,17 +44655,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_rear_port_templates_update - description: Put a rear port template object. + operationId: dcim_rack_roles_update + description: Put a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45642,10 +44673,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -45655,17 +44686,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_rear_port_templates_partial_update - description: Patch a rear port template object. + operationId: dcim_rack_roles_partial_update + description: Patch a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45673,10 +44704,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -45685,17 +44716,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_rear_port_templates_destroy - description: Delete a rear port template object. + operationId: dcim_rack_roles_destroy + description: Delete a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -45705,103 +44736,85 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/: + /api/dcim/rack-types/: get: - operationId: dcim_rear_ports_list - description: Get a list of rear port objects. + operationId: dcim_rack_types_list + description: Get a list of rack type objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: created schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cable_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cabled - schema: - type: boolean - - in: query - name: color + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: desc_units + schema: + type: boolean + - in: query + name: description schema: type: array items: @@ -45809,7 +44822,11 @@ paths: explode: true style: form - in: query - name: color__nic + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -45817,7 +44834,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: description__ie schema: type: array items: @@ -45825,7 +44842,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__iew schema: type: array items: @@ -45833,7 +44850,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__isw schema: type: array items: @@ -45841,233 +44858,228 @@ paths: explode: true style: form - in: query - name: created + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: form_factor schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: created__n + name: form_factor__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: id__empty schema: type: boolean - in: query - name: description__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: last_updated__lt schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device__n + name: last_updated__lte schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device_id + name: last_updated__n schema: type: array items: - type: integer - description: Device (ID) + type: string + format: date-time explode: true style: form - - in: query - name: device_id__n + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form + type: integer - in: query - name: device_type + name: manufacturer schema: type: array items: type: string - description: Device type (model) + description: Manufacturer (slug) explode: true style: form - in: query - name: device_type__n + name: manufacturer__n schema: type: array items: type: string - description: Device type (model) + description: Manufacturer (slug) explode: true style: form - in: query - name: device_type_id + name: manufacturer_id schema: type: array items: type: integer - description: Device type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: device_type_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: id + name: max_weight schema: type: array items: @@ -46076,11 +45088,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: max_weight__empty schema: type: boolean - in: query - name: id__gt + name: max_weight__gt schema: type: array items: @@ -46089,7 +45101,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: max_weight__gte schema: type: array items: @@ -46098,7 +45110,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: max_weight__lt schema: type: array items: @@ -46107,7 +45119,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: max_weight__lte schema: type: array items: @@ -46116,7 +45128,7 @@ paths: explode: true style: form - in: query - name: id__n + name: max_weight__n schema: type: array items: @@ -46125,7 +45137,7 @@ paths: explode: true style: form - in: query - name: label + name: model schema: type: array items: @@ -46133,11 +45145,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: model__empty schema: type: boolean - in: query - name: label__ic + name: model__ic schema: type: array items: @@ -46145,7 +45157,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: model__ie schema: type: array items: @@ -46153,7 +45165,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: model__iew schema: type: array items: @@ -46161,7 +45173,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: model__isw schema: type: array items: @@ -46169,7 +45181,7 @@ paths: explode: true style: form - in: query - name: label__n + name: model__n schema: type: array items: @@ -46177,7 +45189,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: model__nic schema: type: array items: @@ -46185,7 +45197,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: model__nie schema: type: array items: @@ -46193,7 +45205,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: model__niew schema: type: array items: @@ -46201,7 +45213,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: model__nisw schema: type: array items: @@ -46209,217 +45221,225 @@ paths: explode: true style: form - in: query - name: last_updated + name: modified_by_request schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: uuid - in: query - name: last_updated__empty + name: mounting_depth schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: mounting_depth__empty + schema: + type: boolean + - in: query + name: mounting_depth__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: mounting_depth__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: mounting_depth__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: mounting_depth__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: mounting_depth__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: location + name: outer_depth schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: outer_depth__empty schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: boolean - in: query - name: location_id + name: outer_depth__gt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: outer_depth__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id + name: outer_depth__lt schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: outer_depth__lte schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: name + name: outer_depth__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: outer_unit schema: - type: boolean + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: name__ic + name: outer_unit__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: name__ie + name: outer_width schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: outer_width__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__isw + name: outer_width__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: outer_width__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: outer_width__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: outer_width__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: outer_width__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -46427,337 +45447,328 @@ paths: explode: true style: form - in: query - name: occupied + name: slug__empty schema: type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: positions + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__gte + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__lt + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__lte + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__n + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: slug__nie schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: slug__niew schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: slug__nisw schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: starting_unit schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: region + name: starting_unit__empty + schema: + type: boolean + - in: query + name: starting_unit__gt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: starting_unit__gte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: starting_unit__lt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: starting_unit__lte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: starting_unit__n schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: tag schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role_id + name: tag__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: u_height schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: site + name: u_height__empty schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form + type: boolean - in: query - name: site__n + name: u_height__gt schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: u_height__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group__n + name: u_height__lt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: u_height__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: u_height__n schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: site_id__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: type + name: weight__lte schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: number + format: double explode: true style: form - in: query - name: type__n + name: weight__n schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: virtual_chassis__n + name: weight_unit__n schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: virtual_chassis_id + name: width schema: type: array items: type: integer - description: Virtual Chassis (ID) + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: virtual_chassis_id__n + name: width__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form tags: @@ -46770,21 +45781,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortList' + $ref: '#/components/schemas/PaginatedRackTypeList' description: '' post: - operationId: dcim_rear_ports_create - description: Post a list of rear port objects. + operationId: dcim_rack_types_create + description: Post a list of rack type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -46794,11 +45805,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: dcim_rear_ports_bulk_update - description: Put a list of rear port objects. + operationId: dcim_rack_types_bulk_update + description: Put a list of rack type objects. tags: - dcim requestBody: @@ -46807,12 +45818,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -46824,11 +45835,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: dcim_rear_ports_bulk_partial_update - description: Patch a list of rear port objects. + operationId: dcim_rack_types_bulk_partial_update + description: Patch a list of rack type objects. tags: - dcim requestBody: @@ -46837,12 +45848,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -46854,11 +45865,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: dcim_rear_ports_bulk_destroy - description: Delete a list of rear port objects. + operationId: dcim_rack_types_bulk_destroy + description: Delete a list of rack type objects. tags: - dcim requestBody: @@ -46867,12 +45878,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -46880,16 +45891,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/: + /api/dcim/rack-types/{id}/: get: - operationId: dcim_rear_ports_retrieve - description: Get a rear port object. + operationId: dcim_rack_types_retrieve + description: Get a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46901,17 +45912,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: dcim_rear_ports_update - description: Put a rear port object. + operationId: dcim_rack_types_update + description: Put a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46919,10 +45930,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -46932,17 +45943,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: dcim_rear_ports_partial_update - description: Patch a rear port object. + operationId: dcim_rack_types_partial_update + description: Patch a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46950,10 +45961,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -46962,17 +45973,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: dcim_rear_ports_destroy - description: Delete a rear port object. + operationId: dcim_rack_types_destroy + description: Delete a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this rack type. required: true tags: - dcim @@ -46982,68 +45993,115 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/paths/: + /api/dcim/racks/: get: - operationId: dcim_rear_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + operationId: dcim_racks_list + description: Get a list of rack objects. parameters: - - in: path - name: id + - in: query + name: airflow schema: - type: integer - description: A unique integer value identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - /api/dcim/regions/: - get: - operationId: dcim_regions_list - description: Get a list of region objects. - parameters: + type: string + x-spec-enum-id: a784734d07ef1b3c + enum: + - front-to-rear + - rear-to-front + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' - in: query - name: ancestor + name: airflow__n + schema: + type: string + x-spec-enum-id: a784734d07ef1b3c + enum: + - front-to-rear + - rear-to-front + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + - in: query + name: asset_tag schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: ancestor__n + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: ancestor_id + name: asset_tag__ie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: ancestor_id__n + name: asset_tag__iew schema: type: array items: - type: integer - description: Region (ID) + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -47069,8 +46127,7 @@ paths: schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query @@ -47078,8 +46135,7 @@ paths: schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query @@ -47168,6 +46224,10 @@ paths: schema: type: string format: uuid + - in: query + name: desc_units + schema: + type: boolean - in: query name: description schema: @@ -47253,29 +46313,131 @@ paths: explode: true style: form - in: query - name: id + name: facility_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: facility_id__empty schema: type: boolean - in: query - name: id__gt + name: facility_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: facility_id__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility_id__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: form_factor + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form + - in: query + name: form_factor__n + schema: + type: array + items: + type: string + x-spec-enum-id: e32aaa89a223f2ea + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte schema: type: array items: @@ -47380,12 +46542,7 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: location schema: type: array items: @@ -47393,11 +46550,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: location__n schema: type: array items: @@ -47405,7 +46558,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: location_id schema: type: array items: @@ -47413,7 +46566,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: location_id__n schema: type: array items: @@ -47421,138 +46574,164 @@ paths: explode: true style: form - in: query - name: name__isw + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__n + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__nic + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__nie + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__niew + name: max_weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: max_weight__empty + schema: + type: boolean + - in: query + name: max_weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: max_weight__gte schema: type: array items: - type: string - description: Parent region (slug) + type: integer + format: int32 explode: true style: form - in: query - name: parent__n + name: max_weight__lt schema: type: array items: - type: string - description: Parent region (slug) + type: integer + format: int32 explode: true style: form - in: query - name: parent_id + name: max_weight__lte schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + format: int32 explode: true style: form - in: query - name: parent_id__n + name: max_weight__n schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + format: int32 explode: true style: form - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: mounting_depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: mounting_depth__empty schema: type: boolean - in: query - name: slug__ic + name: mounting_depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: mounting_depth__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: mounting_depth__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: name schema: type: array items: @@ -47560,7 +46739,11 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -47568,7 +46751,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__ie schema: type: array items: @@ -47576,7 +46759,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__iew schema: type: array items: @@ -47584,7 +46767,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__isw schema: type: array items: @@ -47592,7 +46775,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__n schema: type: array items: @@ -47600,7 +46783,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nic schema: type: array items: @@ -47608,7 +46791,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__nie schema: type: array items: @@ -47616,7 +46799,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__niew schema: type: array items: @@ -47624,397 +46807,224 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: name__nisw schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRegionList' - description: '' - post: - operationId: dcim_regions_create - description: Post a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_bulk_update - description: Put a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_bulk_partial_update - description: Patch a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_bulk_destroy - description: Delete a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/regions/{id}/: - get: - operationId: dcim_regions_retrieve - description: Get a region object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_update - description: Put a region object. - parameters: - - in: path - name: id + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_partial_update - description: Patch a region object. - parameters: - - in: path - name: id + type: string + - in: query + name: outer_depth schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_destroy - description: Delete a region object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__empty schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/site-groups/: - get: - operationId: dcim_site_groups_list - description: Get a list of site group objects. - parameters: + type: boolean - in: query - name: ancestor + name: outer_depth__gt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: ancestor__n + name: outer_depth__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: ancestor_id + name: outer_depth__lt schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: ancestor_id__n + name: outer_depth__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: contact + name: outer_depth__n schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: outer_unit + schema: + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' + - in: query + name: outer_unit__n + schema: + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' + - in: query + name: outer_width schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: outer_width__empty + schema: + type: boolean + - in: query + name: outer_width__gt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: outer_width__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: outer_width__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: outer_width__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: outer_width__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: q + schema: + type: string + description: Search + - in: query + name: rack_type schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: created__gt + name: rack_type__n schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: created__gte + name: rack_type_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Rack type (ID) explode: true style: form - in: query - name: created__lt + name: rack_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Rack type (ID) explode: true style: form - in: query - name: created__lte + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: region_id schema: type: array items: @@ -48022,43 +47032,53 @@ paths: explode: true style: form - in: query - name: description__empty + name: region_id__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: description__ic + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: description__ie + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: description__iew + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: description__isw + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: description__n + name: serial schema: type: array items: @@ -48066,7 +47086,11 @@ paths: explode: true style: form - in: query - name: description__nic + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: @@ -48074,7 +47098,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: serial__ie schema: type: array items: @@ -48082,7 +47106,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: serial__iew schema: type: array items: @@ -48090,7 +47114,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: serial__isw schema: type: array items: @@ -48098,183 +47122,191 @@ paths: explode: true style: form - in: query - name: id + name: serial__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: serial__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: serial__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: serial__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: serial__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: id__n + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: last_updated + name: site_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: site_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: site_group_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: site_group_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: site_id schema: type: array items: - type: string - format: date-time + type: integer + description: Site (ID) explode: true style: form - in: query - name: last_updated__lte + name: site_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Site (ID) explode: true style: form - in: query - name: last_updated__n + name: starting_unit schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: starting_unit__empty schema: - type: integer + type: boolean - in: query - name: modified_by_request + name: starting_unit__gt schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name + name: starting_unit__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: starting_unit__lt schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: starting_unit__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: starting_unit__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: status schema: type: array items: type: string + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: name__isw + name: status__n schema: type: array items: type: string + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: name__n + name: tag schema: type: array items: @@ -48282,7 +47314,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: tag__n schema: type: array items: @@ -48290,189 +47322,250 @@ paths: explode: true style: form - in: query - name: name__nie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__niew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nisw + name: tenant_group schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: tenant_group__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: parent + name: tenant_group_id schema: type: array items: type: string - description: Parent site group (slug) explode: true style: form - in: query - name: parent__n + name: tenant_group_id__n schema: type: array items: type: string - description: Parent site group (slug) explode: true style: form - in: query - name: parent_id + name: tenant_id schema: type: array items: type: integer nullable: true - description: Parent site group (ID) + description: Tenant (ID) explode: true style: form - in: query - name: parent_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: Parent site group (ID) + description: Tenant (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: u_height schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: u_height__empty schema: type: boolean - in: query - name: slug__ic + name: u_height__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: u_height__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: u_height__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__isw + name: u_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__n + name: u_height__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nic + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: slug__nie + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: slug__niew + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: slug__nisw + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: weight_unit__n + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: width + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form tags: - dcim security: @@ -48483,21 +47576,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteGroupList' + $ref: '#/components/schemas/PaginatedRackList' description: '' post: - operationId: dcim_site_groups_create - description: Post a list of site group objects. + operationId: dcim_racks_create + description: Post a list of rack objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -48507,11 +47600,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: dcim_site_groups_bulk_update - description: Put a list of site group objects. + operationId: dcim_racks_bulk_update + description: Put a list of rack objects. tags: - dcim requestBody: @@ -48520,12 +47613,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -48537,11 +47630,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: dcim_site_groups_bulk_partial_update - description: Patch a list of site group objects. + operationId: dcim_racks_bulk_partial_update + description: Patch a list of rack objects. tags: - dcim requestBody: @@ -48550,12 +47643,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -48567,11 +47660,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: dcim_site_groups_bulk_destroy - description: Delete a list of site group objects. + operationId: dcim_racks_bulk_destroy + description: Delete a list of rack objects. tags: - dcim requestBody: @@ -48580,12 +47673,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -48593,16 +47686,16 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/{id}/: + /api/dcim/racks/{id}/: get: - operationId: dcim_site_groups_retrieve - description: Get a site group object. + operationId: dcim_racks_retrieve + description: Get a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48614,17 +47707,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: dcim_site_groups_update - description: Put a site group object. + operationId: dcim_racks_update + description: Put a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48632,10 +47725,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -48645,17 +47738,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: dcim_site_groups_partial_update - description: Patch a site group object. + operationId: dcim_racks_partial_update + description: Patch a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48663,10 +47756,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -48675,17 +47768,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: dcim_site_groups_destroy - description: Delete a site group object. + operationId: dcim_racks_destroy + description: Delete a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -48695,105 +47788,192 @@ paths: responses: '204': description: No response body - /api/dcim/sites/: + /api/dcim/racks/{id}/elevation/: get: - operationId: dcim_sites_list - description: Get a list of site objects. + operationId: dcim_racks_elevation_retrieve + description: Rack elevation representing the list of rack units. Also supports + rendering the elevation as an SVG. parameters: - in: query - name: asn + name: exclude + schema: + type: integer + - in: query + name: expand_devices + schema: + type: boolean + default: true + - in: query + name: face + schema: + enum: + - front + - rear + type: string + x-spec-enum-id: d2fb9b3f75158b83 + default: front + minLength: 1 + description: '* `front` - Front + + * `rear` - Rear' + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rack. + required: true + - in: query + name: include_images + schema: + type: boolean + default: true + - in: query + name: legend_width + schema: + type: integer + default: 30 + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: margin_width + schema: + type: integer + default: 15 + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - in: query + name: q + schema: + type: string + minLength: 1 + - in: query + name: render + schema: + enum: + - json + - svg + type: string + x-spec-enum-id: 09901a5ff13ba07a + default: json + minLength: 1 + description: '* `json` - json + + * `svg` - svg' + - in: query + name: unit_height + schema: + type: integer + - in: query + name: unit_width + schema: + type: integer + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRackUnitList' + description: '' + /api/dcim/rear-port-templates/: + get: + operationId: dcim_rear_port_templates_list + description: Get a list of rear port template objects. + parameters: + - in: query + name: color schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + type: string explode: true style: form - in: query - name: asn__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + type: string explode: true style: form - in: query - name: asn_id + name: color__ie schema: type: array items: - type: integer - description: AS (ID) + type: string explode: true style: form - in: query - name: asn_id__n + name: color__iew schema: type: array items: - type: integer - description: AS (ID) + type: string explode: true style: form - in: query - name: contact + name: color__isw schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: color__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: color__nic schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: color__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: color__niew schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: color__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query @@ -48949,83 +48129,85 @@ paths: explode: true style: form - in: query - name: facility + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: facility__empty - schema: - type: boolean - - in: query - name: facility__ic + name: device_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: facility__ie + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__iew + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: facility__isw + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__n + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nic + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nie + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__niew + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nisw + name: label schema: type: array items: @@ -49033,97 +48215,79 @@ paths: explode: true style: form - in: query - name: group + name: label__empty schema: - type: array - items: - type: integer - description: Group (slug) - explode: true - style: form + type: boolean - in: query - name: group__n + name: label__ic schema: type: array items: - type: integer - description: Group (slug) + type: string explode: true style: form - in: query - name: group_id + name: label__ie schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: label__iew schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: id + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -49189,64 +48353,6 @@ paths: format: date-time explode: true style: form - - in: query - name: latitude - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - name: limit required: false in: query @@ -49254,68 +48360,30 @@ paths: schema: type: integer - in: query - name: longitude - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__empty - schema: - type: boolean - - in: query - name: longitude__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__lt + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: longitude__lte + name: module_type_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: longitude__n + name: module_type_id__n schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -49413,316 +48481,84 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n + name: positions schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: slug__empty + name: positions__empty schema: type: boolean - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e363a8ddb138be50 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e363a8ddb138be50 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n + name: positions__gt schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: positions__gte schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: positions__lt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: positions__lte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: positions__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: time_zone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__nic - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: time_zone__nie + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: time_zone__niew + name: type schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: time_zone__nisw + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -49740,21 +48576,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteList' + $ref: '#/components/schemas/PaginatedRearPortTemplateList' description: '' post: - operationId: dcim_sites_create - description: Post a list of site objects. + operationId: dcim_rear_port_templates_create + description: Post a list of rear port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49764,11 +48600,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: dcim_sites_bulk_update - description: Put a list of site objects. + operationId: dcim_rear_port_templates_bulk_update + description: Put a list of rear port template objects. tags: - dcim requestBody: @@ -49777,12 +48613,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49794,11 +48630,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: dcim_sites_bulk_partial_update - description: Patch a list of site objects. + operationId: dcim_rear_port_templates_bulk_partial_update + description: Patch a list of rear port template objects. tags: - dcim requestBody: @@ -49807,12 +48643,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49824,11 +48660,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: dcim_sites_bulk_destroy - description: Delete a list of site objects. + operationId: dcim_rear_port_templates_bulk_destroy + description: Delete a list of rear port template objects. tags: - dcim requestBody: @@ -49837,12 +48673,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49850,16 +48686,16 @@ paths: responses: '204': description: No response body - /api/dcim/sites/{id}/: + /api/dcim/rear-port-templates/{id}/: get: - operationId: dcim_sites_retrieve - description: Get a site object. + operationId: dcim_rear_port_templates_retrieve + description: Get a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49871,17 +48707,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: dcim_sites_update - description: Put a site object. + operationId: dcim_rear_port_templates_update + description: Put a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49889,10 +48725,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -49902,17 +48738,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: dcim_sites_partial_update - description: Patch a site object. + operationId: dcim_rear_port_templates_partial_update + description: Patch a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49920,10 +48756,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -49932,17 +48768,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: dcim_sites_destroy - description: Delete a site object. + operationId: dcim_rear_port_templates_destroy + description: Delete a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -49952,81 +48788,95 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/: + /api/dcim/rear-ports/: get: - operationId: dcim_virtual_chassis_list - description: Get a list of virtual chassis objects. + operationId: dcim_rear_ports_list + description: Get a list of rear port objects. parameters: - in: query - name: created + name: cable_end schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: created__empty + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: created__gt + name: cable_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: created__gte + name: cabled + schema: + type: boolean + - in: query + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: color__isw schema: type: array items: @@ -50034,11 +48884,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__n schema: type: array items: @@ -50046,7 +48892,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nic schema: type: array items: @@ -50054,7 +48900,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: color__nie schema: type: array items: @@ -50062,7 +48908,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: color__niew schema: type: array items: @@ -50070,7 +48916,7 @@ paths: explode: true style: form - in: query - name: description__n + name: color__nisw schema: type: array items: @@ -50078,67 +48924,75 @@ paths: explode: true style: form - in: query - name: description__nic + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__empty - schema: - type: boolean - - in: query - name: domain__ic + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__ie + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain__iew + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -50146,7 +49000,11 @@ paths: explode: true style: form - in: query - name: domain__isw + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -50154,7 +49012,7 @@ paths: explode: true style: form - in: query - name: domain__n + name: description__ie schema: type: array items: @@ -50162,7 +49020,7 @@ paths: explode: true style: form - in: query - name: domain__nic + name: description__iew schema: type: array items: @@ -50170,7 +49028,7 @@ paths: explode: true style: form - in: query - name: domain__nie + name: description__isw schema: type: array items: @@ -50178,7 +49036,7 @@ paths: explode: true style: form - in: query - name: domain__niew + name: description__n schema: type: array items: @@ -50186,7 +49044,7 @@ paths: explode: true style: form - in: query - name: domain__nisw + name: description__nic schema: type: array items: @@ -50194,174 +49052,159 @@ paths: explode: true style: form - in: query - name: id + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__lte + name: device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__n + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: last_updated + name: device_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - in: query - name: last_updated__empty + name: device_role schema: type: array items: type: string - format: date-time + description: Device role (slug) explode: true style: form - in: query - name: last_updated__gt + name: device_role__n schema: type: array items: type: string - format: date-time + description: Device role (slug) explode: true style: form - in: query - name: last_updated__gte + name: device_role_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__lt + name: device_role_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - in: query - name: last_updated__lte + name: device_status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: last_updated__n + name: device_status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: master + name: device_type schema: type: array items: type: string - nullable: true - description: Master (name) + description: Device type (model) explode: true style: form - in: query - name: master__n + name: device_type__n schema: type: array items: type: string - nullable: true - description: Master (name) + description: Device type (model) explode: true style: form - in: query - name: master_id + name: device_type_id schema: type: array items: type: integer - nullable: true - description: Master (ID) + description: Device type (ID) explode: true style: form - in: query - name: master_id__n + name: device_type_id__n schema: type: array items: type: integer - nullable: true - description: Master (ID) + description: Device type (ID) explode: true style: form - in: query - name: member_count + name: id schema: type: array items: @@ -50370,11 +49213,11 @@ paths: explode: true style: form - in: query - name: member_count__empty + name: id__empty schema: type: boolean - in: query - name: member_count__gt + name: id__gt schema: type: array items: @@ -50383,7 +49226,7 @@ paths: explode: true style: form - in: query - name: member_count__gte + name: id__gte schema: type: array items: @@ -50392,7 +49235,7 @@ paths: explode: true style: form - in: query - name: member_count__lt + name: id__lt schema: type: array items: @@ -50401,7 +49244,7 @@ paths: explode: true style: form - in: query - name: member_count__lte + name: id__lte schema: type: array items: @@ -50410,7 +49253,7 @@ paths: explode: true style: form - in: query - name: member_count__n + name: id__n schema: type: array items: @@ -50419,12 +49262,7 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: label schema: type: array items: @@ -50432,11 +49270,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -50444,7 +49282,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -50452,7 +49290,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -50460,7 +49298,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -50468,7 +49306,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -50476,7 +49314,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -50484,7 +49322,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -50492,7 +49330,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -50500,64 +49338,376 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: region + name: last_updated schema: type: array items: - type: integer - description: Region (slug) + type: string + format: date-time explode: true style: form - in: query - name: region__n + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id schema: type: array items: type: integer - description: Region (slug) + description: Location (ID) explode: true style: form - in: query - name: region_id + name: location_id__n schema: type: array items: type: integer - description: Region (ID) + description: Location (ID) explode: true style: form - in: query - name: region_id__n + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: positions + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__empty + schema: + type: boolean + - in: query + name: positions__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n schema: type: array items: type: integer - description: Region (ID) + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -50583,8 +49733,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -50592,8 +49741,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -50601,8 +49749,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -50610,8 +49757,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -50649,46 +49795,64 @@ paths: explode: true style: form - in: query - name: tenant + name: type schema: type: array items: type: string - description: Tenant (slug) + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: tenant__n + name: type__n schema: type: array items: type: string - description: Tenant (slug) + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: tenant_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis schema: type: array items: - type: integer - description: Tenant (ID) + type: string + description: Virtual Chassis explode: true style: form - in: query - name: tenant_id__n + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id schema: type: array items: type: integer - description: Tenant (ID) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: updated_by_request + name: virtual_chassis_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -50699,21 +49863,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualChassisList' + $ref: '#/components/schemas/PaginatedRearPortList' description: '' post: - operationId: dcim_virtual_chassis_create - description: Post a list of virtual chassis objects. + operationId: dcim_rear_ports_create + description: Post a list of rear port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -50723,11 +49887,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: dcim_virtual_chassis_bulk_update - description: Put a list of virtual chassis objects. + operationId: dcim_rear_ports_bulk_update + description: Put a list of rear port objects. tags: - dcim requestBody: @@ -50736,12 +49900,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -50753,11 +49917,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: dcim_virtual_chassis_bulk_partial_update - description: Patch a list of virtual chassis objects. + operationId: dcim_rear_ports_bulk_partial_update + description: Patch a list of rear port objects. tags: - dcim requestBody: @@ -50766,12 +49930,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -50783,11 +49947,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: dcim_virtual_chassis_bulk_destroy - description: Delete a list of virtual chassis objects. + operationId: dcim_rear_ports_bulk_destroy + description: Delete a list of rear port objects. tags: - dcim requestBody: @@ -50796,12 +49960,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -50809,16 +49973,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/{id}/: + /api/dcim/rear-ports/{id}/: get: - operationId: dcim_virtual_chassis_retrieve - description: Get a virtual chassis object. + operationId: dcim_rear_ports_retrieve + description: Get a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50830,17 +49994,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: dcim_virtual_chassis_update - description: Put a virtual chassis object. + operationId: dcim_rear_ports_update + description: Put a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50848,10 +50012,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -50861,17 +50025,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: dcim_virtual_chassis_partial_update - description: Patch a virtual chassis object. + operationId: dcim_rear_ports_partial_update + description: Patch a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50879,10 +50043,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -50891,17 +50055,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: dcim_virtual_chassis_destroy - description: Delete a virtual chassis object. + operationId: dcim_rear_ports_destroy + description: Delete a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -50911,81 +50075,94 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/: + /api/dcim/rear-ports/{id}/paths/: get: - operationId: dcim_virtual_device_contexts_list - description: Get a list of virtual device context objects. + operationId: dcim_rear_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rear port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPort' + description: '' + /api/dcim/regions/: + get: + operationId: dcim_regions_list + description: Get a list of region objects. parameters: - in: query - name: created + name: ancestor schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: ancestor__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: ancestor_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: ancestor_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: contact_group__n schema: type: array items: @@ -50993,182 +50170,177 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: description__ie + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: description__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - description: Device model + type: string explode: true style: form - in: query - name: device__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Device model + type: string explode: true style: form - in: query - name: device_id + name: description__ie schema: type: array items: - type: integer - description: VDC (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__iew schema: type: array items: - type: integer - description: VDC (ID) + type: string explode: true style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier + name: id schema: type: array items: @@ -51177,11 +50349,11 @@ paths: explode: true style: form - in: query - name: identifier__empty + name: id__empty schema: type: boolean - in: query - name: identifier__gt + name: id__gt schema: type: array items: @@ -51190,7 +50362,7 @@ paths: explode: true style: form - in: query - name: identifier__gte + name: id__gte schema: type: array items: @@ -51199,7 +50371,7 @@ paths: explode: true style: form - in: query - name: identifier__lt + name: id__lt schema: type: array items: @@ -51208,7 +50380,7 @@ paths: explode: true style: form - in: query - name: identifier__lte + name: id__lte schema: type: array items: @@ -51217,7 +50389,7 @@ paths: explode: true style: form - in: query - name: identifier__n + name: id__n schema: type: array items: @@ -51225,24 +50397,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -51414,39 +50568,41 @@ paths: schema: type: string - in: query - name: primary_ip4_id + name: parent schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string + description: Parent region (slug) explode: true style: form - in: query - name: primary_ip4_id__n + name: parent__n schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string + description: Parent region (slug) explode: true style: form - in: query - name: primary_ip6_id + name: parent_id schema: type: array items: type: integer - description: Primary IPv6 (ID) + nullable: true + description: Parent region (ID) explode: true style: form - in: query - name: primary_ip6_id__n + name: parent_id__n schema: type: array items: type: integer - description: Primary IPv6 (ID) + nullable: true + description: Parent region (ID) explode: true style: form - in: query @@ -51455,25 +50611,27 @@ paths: type: string description: Search - in: query - name: status + name: slug schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -51481,7 +50639,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -51489,77 +50647,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -51577,21 +50725,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' + $ref: '#/components/schemas/PaginatedRegionList' description: '' post: - operationId: dcim_virtual_device_contexts_create - description: Post a list of virtual device context objects. + operationId: dcim_regions_create + description: Post a list of region objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -51601,11 +50749,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' put: - operationId: dcim_virtual_device_contexts_bulk_update - description: Put a list of virtual device context objects. + operationId: dcim_regions_bulk_update + description: Put a list of region objects. tags: - dcim requestBody: @@ -51614,12 +50762,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -51631,11 +50779,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: dcim_virtual_device_contexts_bulk_partial_update - description: Patch a list of virtual device context objects. + operationId: dcim_regions_bulk_partial_update + description: Patch a list of region objects. tags: - dcim requestBody: @@ -51644,12 +50792,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -51661,11 +50809,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: dcim_virtual_device_contexts_bulk_destroy - description: Delete a list of virtual device context objects. + operationId: dcim_regions_bulk_destroy + description: Delete a list of region objects. tags: - dcim requestBody: @@ -51674,12 +50822,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -51687,16 +50835,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/{id}/: + /api/dcim/regions/{id}/: get: - operationId: dcim_virtual_device_contexts_retrieve - description: Get a virtual device context object. + operationId: dcim_regions_retrieve + description: Get a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51708,17 +50856,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' put: - operationId: dcim_virtual_device_contexts_update - description: Put a virtual device context object. + operationId: dcim_regions_update + description: Put a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51726,10 +50874,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -51739,17 +50887,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: dcim_virtual_device_contexts_partial_update - description: Patch a virtual device context object. + operationId: dcim_regions_partial_update + description: Patch a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51757,10 +50905,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -51769,17 +50917,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: dcim_virtual_device_contexts_destroy - description: Delete a virtual device context object. + operationId: dcim_regions_destroy + description: Delete a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this region. required: true tags: - dcim @@ -51789,282 +50937,648 @@ paths: responses: '204': description: No response body - /api/extras/bookmarks/: + /api/dcim/site-groups/: get: - operationId: extras_bookmarks_list - description: Get a list of bookmark objects. + operationId: dcim_site_groups_list + description: Get a list of site group objects. parameters: - in: query - name: created + name: ancestor schema: - type: string - format: date-time + type: array + items: + type: string + explode: true + style: form - in: query - name: id + name: ancestor__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: ancestor_id schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: ancestor_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__lt + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__lte + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: contact_role schema: - type: integer + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query - name: object_id + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: object_id__empty + name: created schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_type + name: created__n schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__n + name: created_by_request schema: type: string + format: uuid - in: query - name: object_type_id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__gt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__gte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__lt + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__lte + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__n + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: description__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: user + name: description__niew schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: description__nisw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: id schema: type: array items: type: integer - description: User (ID) + format: int32 explode: true style: form - in: query - name: user_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: User (ID) + format: int32 explode: true style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent + schema: + type: array + items: + type: string + description: Parent site group (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent site group (slug) + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent site group (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent site group (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedBookmarkList' - description: '' - post: - operationId: extras_bookmarks_create - description: Post a list of bookmark objects. - tags: - - extras + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedSiteGroupList' + description: '' + post: + operationId: dcim_site_groups_create + description: Post a list of site group objects. + tags: + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -52074,25 +51588,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_bookmarks_bulk_update - description: Put a list of bookmark objects. + operationId: dcim_site_groups_bulk_update + description: Put a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -52104,25 +51618,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_bookmarks_bulk_partial_update - description: Patch a list of bookmark objects. + operationId: dcim_site_groups_bulk_partial_update + description: Patch a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -52134,25 +51648,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_bookmarks_bulk_destroy - description: Delete a list of bookmark objects. + operationId: dcim_site_groups_bulk_destroy + description: Delete a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -52160,19 +51674,19 @@ paths: responses: '204': description: No response body - /api/extras/bookmarks/{id}/: + /api/dcim/site-groups/{id}/: get: - operationId: extras_bookmarks_retrieve - description: Get a bookmark object. + operationId: dcim_site_groups_retrieve + description: Get a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -52181,28 +51695,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_bookmarks_update - description: Put a bookmark object. + operationId: dcim_site_groups_update + description: Put a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -52212,28 +51726,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_bookmarks_partial_update - description: Patch a bookmark object. + operationId: dcim_site_groups_partial_update + description: Patch a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -52242,123 +51756,123 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_bookmarks_destroy - description: Delete a bookmark object. + operationId: dcim_site_groups_destroy + description: Delete a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-contexts/: + /api/dcim/sites/: get: - operationId: extras_config_contexts_list - description: Get a list of config context objects. + operationId: dcim_sites_list + description: Get a list of site objects. parameters: - in: query - name: auto_sync_enabled - schema: - type: boolean - - in: query - name: cluster_group + name: asn schema: type: array items: - type: string - description: Cluster group (slug) + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: cluster_group__n + name: asn__n schema: type: array items: - type: string - description: Cluster group (slug) + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: cluster_group_id + name: asn_id schema: type: array items: type: integer - description: Cluster group + description: AS (ID) explode: true style: form - in: query - name: cluster_group_id__n + name: asn_id__n schema: type: array items: type: integer - description: Cluster group + description: AS (ID) explode: true style: form - in: query - name: cluster_id + name: contact schema: type: array items: type: integer - description: Cluster + description: Contact explode: true style: form - in: query - name: cluster_id__n + name: contact__n schema: type: array items: type: integer - description: Cluster + description: Contact explode: true style: form - in: query - name: cluster_type + name: contact_group schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type__n + name: contact_group__n schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type_id + name: contact_role schema: type: array items: type: integer - description: Cluster type + description: Contact Role explode: true style: form - in: query - name: cluster_type_id__n + name: contact_role__n schema: type: array items: type: integer - description: Cluster type + description: Contact Role explode: true style: form - in: query @@ -52430,105 +51944,83 @@ paths: type: string format: uuid - in: query - name: data_file_id + name: description schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: description__empty schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form + type: boolean - in: query - name: data_source_id + name: description__ic schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_source_id__n + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_synced + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__gte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__n + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: description__nisw schema: type: array items: @@ -52536,11 +52028,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: facility schema: type: array items: @@ -52548,15 +52036,11 @@ paths: explode: true style: form - in: query - name: description__ie + name: facility__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__iew + name: facility__ic schema: type: array items: @@ -52564,7 +52048,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: facility__ie schema: type: array items: @@ -52572,7 +52056,7 @@ paths: explode: true style: form - in: query - name: description__n + name: facility__iew schema: type: array items: @@ -52580,7 +52064,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: facility__isw schema: type: array items: @@ -52588,7 +52072,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: facility__n schema: type: array items: @@ -52596,7 +52080,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: facility__nic schema: type: array items: @@ -52604,7 +52088,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: facility__nie schema: type: array items: @@ -52612,57 +52096,51 @@ paths: explode: true style: form - in: query - name: device_role + name: facility__niew schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: device_role__n + name: facility__nisw schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: device_role_id + name: group schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: device_role_id__n + name: group__n schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: device_type_id + name: group_id schema: type: array items: - type: integer - description: Device type + type: string explode: true style: form - in: query - name: device_type_id__n + name: group_id__n schema: type: array items: - type: integer - description: Device type + type: string explode: true style: form - in: query @@ -52723,10 +52201,6 @@ paths: format: int32 explode: true style: form - - in: query - name: is_active - schema: - type: boolean - in: query name: last_updated schema: @@ -52790,6 +52264,64 @@ paths: format: date-time explode: true style: form + - in: query + name: latitude + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form - name: limit required: false in: query @@ -52797,39 +52329,61 @@ paths: schema: type: integer - in: query - name: location + name: longitude schema: type: array items: - type: string - description: Location (slug) + type: number + format: double explode: true style: form - in: query - name: location__n + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: string - description: Location (slug) + type: number + format: double explode: true style: form - in: query - name: location_id + name: longitude__gte schema: type: array items: - type: integer - description: Location + type: number + format: double explode: true style: form - in: query - name: location_id__n + name: longitude__lt schema: type: array items: - type: integer - description: Location + type: number + format: double + explode: true + style: form + - in: query + name: longitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__n + schema: + type: array + items: + type: number + format: double explode: true style: form - in: query @@ -52933,42 +52487,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: platform - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform__n - schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form - - in: query - name: platform_id - schema: - type: array - items: - type: integer - description: Platform - explode: true - style: form - - in: query - name: platform_id__n - schema: - type: array - items: - type: integer - description: Platform - explode: true - style: form - in: query name: q schema: @@ -52980,7 +52498,6 @@ paths: type: array items: type: string - description: Region (slug) explode: true style: form - in: query @@ -52989,7 +52506,6 @@ paths: type: array items: type: string - description: Region (slug) explode: true style: form - in: query @@ -52997,8 +52513,7 @@ paths: schema: type: array items: - type: integer - description: Region + type: string explode: true style: form - in: query @@ -53006,116 +52521,109 @@ paths: schema: type: array items: - type: integer - description: Region + type: string explode: true style: form - in: query - name: role + name: slug schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: slug__ie schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: role_id__n + name: slug__iew schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: site + name: slug__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: slug__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: slug__nic schema: type: array items: type: string - description: Site group (slug) explode: true style: form - in: query - name: site_group__n + name: slug__nie schema: type: array items: type: string - description: Site group (slug) explode: true style: form - in: query - name: site_group_id + name: slug__niew schema: type: array items: - type: integer - description: Site group + type: string explode: true style: form - in: query - name: site_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Site group + type: string explode: true style: form - in: query - name: site_id + name: status schema: type: array items: - type: integer - description: Site + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: site_id__n + name: status__n schema: type: array items: - type: integer - description: Site + type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query @@ -53124,7 +52632,6 @@ paths: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query @@ -53133,164 +52640,165 @@ paths: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag_id + name: tenant schema: type: array items: - type: integer - description: Tag + type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag_id__n + name: tenant__n schema: type: array items: - type: integer - description: Tag + type: string + description: Tenant (slug) explode: true style: form - in: query - name: tenant + name: tenant_group schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: tenant_group__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: tenant_group_id schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group__n + name: tenant_group_id__n schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group_id + name: tenant_id schema: type: array items: type: integer - description: Tenant group + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tenant_group_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Tenant group + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tenant_id + name: time_zone schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - in: query - name: tenant_id__n + name: time_zone__ic schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - in: query - name: updated_by_request + name: time_zone__ie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: weight + name: time_zone__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__empty + name: time_zone__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: weight__gt + name: time_zone__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__gte + name: time_zone__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lt + name: time_zone__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: time_zone__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__n + name: time_zone__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -53299,21 +52807,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigContextList' + $ref: '#/components/schemas/PaginatedSiteList' description: '' post: - operationId: extras_config_contexts_create - description: Post a list of config context objects. + operationId: dcim_sites_create + description: Post a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' required: true security: - cookieAuth: [] @@ -53323,25 +52831,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' put: - operationId: extras_config_contexts_bulk_update - description: Put a list of config context objects. + operationId: dcim_sites_bulk_update + description: Put a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -53353,25 +52861,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' patch: - operationId: extras_config_contexts_bulk_partial_update - description: Patch a list of config context objects. + operationId: dcim_sites_bulk_partial_update + description: Patch a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -53383,25 +52891,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' delete: - operationId: extras_config_contexts_bulk_destroy - description: Delete a list of config context objects. + operationId: dcim_sites_bulk_destroy + description: Delete a list of site objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -53409,19 +52917,19 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/: + /api/dcim/sites/{id}/: get: - operationId: extras_config_contexts_retrieve - description: Get a config context object. + operationId: dcim_sites_retrieve + description: Get a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -53430,28 +52938,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' put: - operationId: extras_config_contexts_update - description: Put a config context object. + operationId: dcim_sites_update + description: Put a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableSiteRequest' required: true security: - cookieAuth: [] @@ -53461,28 +52969,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' patch: - operationId: extras_config_contexts_partial_update - description: Patch a config context object. + operationId: dcim_sites_partial_update + description: Patch a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableSiteRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -53491,68 +52999,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/Site' description: '' delete: - operationId: extras_config_contexts_destroy - description: Delete a config context object. + operationId: dcim_sites_destroy + description: Delete a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-contexts/{id}/sync/: - post: - operationId: extras_config_contexts_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - /api/extras/config-templates/: + /api/dcim/virtual-chassis/: get: - operationId: extras_config_templates_list - description: Get a list of config template objects. + operationId: dcim_virtual_chassis_list + description: Get a list of virtual chassis objects. parameters: - - in: query - name: auto_sync_enabled - schema: - type: boolean - in: query name: created schema: @@ -53622,105 +53093,91 @@ paths: type: string format: uuid - in: query - name: data_file_id + name: description schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_source_id + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_source_id__n + name: description__iew schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string explode: true style: form - in: query - name: data_synced + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: domain schema: type: array items: @@ -53728,11 +53185,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: domain__empty schema: type: boolean - in: query - name: description__ic + name: domain__ic schema: type: array items: @@ -53740,7 +53197,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: domain__ie schema: type: array items: @@ -53748,7 +53205,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: domain__iew schema: type: array items: @@ -53756,7 +53213,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: domain__isw schema: type: array items: @@ -53764,7 +53221,7 @@ paths: explode: true style: form - in: query - name: description__n + name: domain__n schema: type: array items: @@ -53772,7 +53229,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: domain__nic schema: type: array items: @@ -53780,7 +53237,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: domain__nie schema: type: array items: @@ -53788,7 +53245,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: domain__niew schema: type: array items: @@ -53796,7 +53253,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: domain__nisw schema: type: array items: @@ -53930,6 +53387,104 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: master + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master__n + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master_id + schema: + type: array + items: + type: integer + nullable: true + description: Master (ID) + explode: true + style: form + - in: query + name: master_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Master (ID) + explode: true + style: form + - in: query + name: member_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__empty + schema: + type: boolean + - in: query + name: member_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: modified_by_request schema: @@ -54036,6 +53591,106 @@ paths: schema: type: string description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query name: tag schema: @@ -54052,13 +53707,49 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54067,21 +53758,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigTemplateList' + $ref: '#/components/schemas/PaginatedVirtualChassisList' description: '' post: - operationId: extras_config_templates_create - description: Post a list of config template objects. + operationId: dcim_virtual_chassis_create + description: Post a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54091,25 +53782,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_config_templates_bulk_update - description: Put a list of config template objects. + operationId: dcim_virtual_chassis_bulk_update + description: Put a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54121,25 +53812,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_config_templates_bulk_partial_update - description: Patch a list of config template objects. + operationId: dcim_virtual_chassis_bulk_partial_update + description: Patch a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54151,25 +53842,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_config_templates_bulk_destroy - description: Delete a list of config template objects. + operationId: dcim_virtual_chassis_bulk_destroy + description: Delete a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54177,19 +53868,19 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/: + /api/dcim/virtual-chassis/{id}/: get: - operationId: extras_config_templates_retrieve - description: Get a config template object. + operationId: dcim_virtual_chassis_retrieve + description: Get a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54198,28 +53889,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_config_templates_update - description: Put a config template object. + operationId: dcim_virtual_chassis_update + description: Put a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -54229,28 +53920,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_config_templates_partial_update - description: Patch a config template object. + operationId: dcim_virtual_chassis_partial_update + description: Patch a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -54259,151 +53950,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_config_templates_destroy - description: Delete a config template object. + operationId: dcim_virtual_chassis_destroy + description: Delete a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-templates/{id}/render/: - post: - operationId: extras_config_templates_render_create - description: 'Render a ConfigTemplate using the context data provided (if any). - If the client requests "text/plain" data, - - return the raw rendered content, rather than serialized JSON.' - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - text/plain: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - /api/extras/config-templates/{id}/sync/: - post: - operationId: extras_config_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - /api/extras/custom-field-choice-sets/: + /api/dcim/virtual-device-contexts/: get: - operationId: extras_custom_field_choice_sets_list - description: Get a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_list + description: Get a list of virtual device context objects. parameters: - - in: query - name: base_choices - schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - - in: query - name: base_choices__n - schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - - in: query - name: choice - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: created schema: @@ -54556,6 +54127,47 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: integer + description: Device model + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: integer + description: Device model + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: VDC (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: VDC (ID) + explode: true + style: form + - in: query + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP - in: query name: id schema: @@ -54614,6 +54226,82 @@ paths: format: int32 explode: true style: form + - in: query + name: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -54778,28 +54466,164 @@ paths: description: The initial index from which to return the results. schema: type: integer - - in: query - name: order_alphabetically - schema: - type: boolean - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string + - in: query + name: primary_ip4_id + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip4_id__n + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id__n + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: ee1ef02def7a91ab + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: ee1ef02def7a91ab + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54808,21 +54632,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' + $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' description: '' post: - operationId: extras_custom_field_choice_sets_create - description: Post a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_create + description: Post a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54832,25 +54656,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_custom_field_choice_sets_bulk_update - description: Put a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_bulk_update + description: Put a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54862,25 +54686,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_custom_field_choice_sets_bulk_partial_update - description: Patch a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_bulk_partial_update + description: Patch a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54892,25 +54716,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_custom_field_choice_sets_bulk_destroy - description: Delete a list of custom field choice set objects. + operationId: dcim_virtual_device_contexts_bulk_destroy + description: Delete a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54918,19 +54742,19 @@ paths: responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/: + /api/dcim/virtual-device-contexts/{id}/: get: - operationId: extras_custom_field_choice_sets_retrieve - description: Get a custom field choice set object. + operationId: dcim_virtual_device_contexts_retrieve + description: Get a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54939,28 +54763,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_custom_field_choice_sets_update - description: Put a custom field choice set object. + operationId: dcim_virtual_device_contexts_update + description: Put a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -54970,28 +54794,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_custom_field_choice_sets_partial_update - description: Patch a custom field choice set object. + operationId: dcim_virtual_device_contexts_partial_update + description: Patch a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -55000,460 +54824,766 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_custom_field_choice_sets_destroy - description: Delete a custom field choice set object. + operationId: dcim_virtual_device_contexts_destroy + description: Delete a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/choices/: + /api/extras/bookmarks/: get: - operationId: extras_custom_field_choice_sets_choices_retrieve - description: Provides an endpoint to iterate through each choice in a set. + operationId: extras_bookmarks_list + description: Get a list of bookmark objects. parameters: - - in: path - name: id + - in: query + name: created schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - /api/extras/custom-fields/: - get: - operationId: extras_custom_fields_list - description: Get a list of custom field objects. - parameters: + type: string + format: date-time - in: query - name: choice_set + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: choice_set__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: choice_set_id + name: id__gte schema: type: array items: type: integer - nullable: true + format: int32 explode: true style: form - in: query - name: choice_set_id__n + name: id__lt schema: type: array items: type: integer - nullable: true + format: int32 explode: true style: form - in: query - name: created + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created__gt + name: object_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type schema: type: string - format: uuid - in: query - name: description + name: object_type__n + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: object_type_id__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: description__ic + name: object_type_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: object_type_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: object_type_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: object_type_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: object_type_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: description__nic + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__nie + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__niew + name: user_id + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBookmarkList' + description: '' + post: + operationId: extras_bookmarks_create + description: Post a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_bulk_update + description: Put a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_bulk_partial_update + description: Patch a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_bulk_destroy + description: Delete a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/bookmarks/{id}/: + get: + operationId: extras_bookmarks_retrieve + description: Get a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_update + description: Put a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_partial_update + description: Patch a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_destroy + description: Delete a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/config-contexts/: + get: + operationId: extras_config_contexts_list + description: Get a list of config context objects. + parameters: + - in: query + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: cluster_group schema: type: array items: type: string + description: Cluster group (slug) explode: true style: form - in: query - name: description__nisw + name: cluster_group__n schema: type: array items: type: string + description: Cluster group (slug) explode: true style: form - in: query - name: filter_logic + name: cluster_group_id schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' + type: array + items: + type: integer + description: Cluster group + explode: true + style: form - in: query - name: filter_logic__n + name: cluster_group_id__n schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' + type: array + items: + type: integer + description: Cluster group + explode: true + style: form - in: query - name: group_name + name: cluster_id schema: type: array items: - type: string + type: integer + description: Cluster explode: true style: form - in: query - name: group_name__empty + name: cluster_id__n schema: - type: boolean + type: array + items: + type: integer + description: Cluster + explode: true + style: form - in: query - name: group_name__ic + name: cluster_type schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: group_name__ie + name: cluster_type__n schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: group_name__iew + name: cluster_type_id schema: type: array items: - type: string + type: integer + description: Cluster type explode: true style: form - in: query - name: group_name__isw + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type + explode: true + style: form + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: id + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: id__gt + name: data_file_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__gte + name: data_file_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__lt + name: data_source_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__lte + name: data_source_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__n + name: data_synced schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_cloneable + name: data_synced__empty schema: type: boolean - in: query - name: label + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: data_synced__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: label__ic + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: description schema: type: array items: @@ -55461,7 +55591,11 @@ paths: explode: true style: form - in: query - name: label__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -55469,7 +55603,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: description__ie schema: type: array items: @@ -55477,7 +55611,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__iew schema: type: array items: @@ -55485,7 +55619,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__isw schema: type: array items: @@ -55493,7 +55627,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__n schema: type: array items: @@ -55501,617 +55635,621 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: device_role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__lte + name: device_role__n schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__n + name: device_role_id schema: type: array items: - type: string - format: date-time + type: integer + description: Role explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: device_role_id__n schema: - type: integer + type: array + items: + type: integer + description: Role + explode: true + style: form - in: query - name: modified_by_request + name: device_type_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Device type + explode: true + style: form - in: query - name: name + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type explode: true style: form - in: query - name: name__empty + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query - name: name__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: is_active + schema: + type: boolean + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw + name: last_updated__lt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type_id + name: last_updated__lte schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: object_type_id__n + name: last_updated__n schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: related_object_type + name: location schema: - type: string + type: array + items: + type: string + description: Location (slug) + explode: true + style: form - in: query - name: related_object_type__n + name: location__n schema: - type: string + type: array + items: + type: string + description: Location (slug) + explode: true + style: form - in: query - name: related_object_type_id + name: location_id schema: type: array items: type: integer + description: Location explode: true style: form - in: query - name: related_object_type_id__n + name: location_id__n schema: type: array items: type: integer + description: Location explode: true style: form - in: query - name: required + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: search_weight + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__empty + name: name__empty schema: type: boolean - in: query - name: search_weight__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: search_weight__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: type + name: name__nic schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds explode: true style: form - in: query - name: type__n + name: name__nie schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds explode: true style: form - in: query - name: ui_editable + name: name__niew schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' + type: array + items: + type: string + explode: true + style: form - in: query - name: ui_editable__n + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' - in: query - name: ui_visible + name: platform schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form - in: query - name: ui_visible__n + name: platform__n schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form - in: query - name: updated_by_request + name: platform_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Platform + explode: true + style: form - in: query - name: validation_maximum + name: platform_id__n schema: type: array items: type: integer - format: int32 + description: Platform explode: true style: form - in: query - name: validation_maximum__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: validation_maximum__gt + name: region schema: type: array items: - type: integer - format: int32 + type: string + description: Region (slug) explode: true style: form - in: query - name: validation_maximum__gte + name: region__n schema: type: array items: - type: integer - format: int32 + type: string + description: Region (slug) explode: true style: form - in: query - name: validation_maximum__lt + name: region_id schema: type: array items: type: integer - format: int32 + description: Region explode: true style: form - in: query - name: validation_maximum__lte + name: region_id__n schema: type: array items: type: integer - format: int32 + description: Region explode: true style: form - in: query - name: validation_maximum__n + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: validation_minimum + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site (slug) explode: true style: form - in: query - name: validation_minimum__empty + name: site_group schema: - type: boolean + type: array + items: + type: string + description: Site group (slug) + explode: true + style: form - in: query - name: validation_minimum__gt + name: site_group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site group (slug) explode: true style: form - in: query - name: validation_minimum__gte + name: site_group_id schema: type: array items: type: integer - format: int32 + description: Site group explode: true style: form - in: query - name: validation_minimum__lt + name: site_group_id__n schema: type: array items: type: integer - format: int32 + description: Site group explode: true style: form - in: query - name: validation_minimum__lte + name: site_id schema: type: array items: type: integer - format: int32 + description: Site explode: true style: form - in: query - name: validation_minimum__n + name: site_id__n schema: type: array items: type: integer - format: int32 + description: Site explode: true style: form - in: query - name: validation_regex + name: tag schema: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query - name: validation_regex__empty + name: tag__n schema: - type: boolean + type: array + items: + type: string + description: Tag (slug) + explode: true + style: form - in: query - name: validation_regex__ic + name: tag_id schema: type: array items: - type: string + type: integer + description: Tag explode: true style: form - in: query - name: validation_regex__ie + name: tag_id__n schema: type: array items: - type: string + type: integer + description: Tag explode: true style: form - in: query - name: validation_regex__iew + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: validation_regex__isw + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: validation_regex__n + name: tenant_group schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: validation_regex__nic + name: tenant_group__n schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: validation_regex__nie + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant group explode: true style: form - in: query - name: validation_regex__niew + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant group explode: true style: form - in: query - name: validation_regex__nisw + name: tenant_id schema: type: array items: - type: string + type: integer + description: Tenant explode: true style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + description: Tenant + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid - in: query name: weight schema: @@ -56180,21 +56318,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldList' + $ref: '#/components/schemas/PaginatedConfigContextList' description: '' post: - operationId: extras_custom_fields_create - description: Post a list of custom field objects. + operationId: extras_config_contexts_create + description: Post a list of config context objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56204,11 +56342,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_custom_fields_bulk_update - description: Put a list of custom field objects. + operationId: extras_config_contexts_bulk_update + description: Put a list of config context objects. tags: - extras requestBody: @@ -56217,12 +56355,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56234,11 +56372,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_custom_fields_bulk_partial_update - description: Patch a list of custom field objects. + operationId: extras_config_contexts_bulk_partial_update + description: Patch a list of config context objects. tags: - extras requestBody: @@ -56247,12 +56385,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56264,11 +56402,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_custom_fields_bulk_destroy - description: Delete a list of custom field objects. + operationId: extras_config_contexts_bulk_destroy + description: Delete a list of config context objects. tags: - extras requestBody: @@ -56277,12 +56415,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56290,16 +56428,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-fields/{id}/: + /api/extras/config-contexts/{id}/: get: - operationId: extras_custom_fields_retrieve - description: Get a custom field object. + operationId: extras_config_contexts_retrieve + description: Get a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56311,17 +56449,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_custom_fields_update - description: Put a custom field object. + operationId: extras_config_contexts_update + description: Put a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56329,10 +56467,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -56342,17 +56480,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_custom_fields_partial_update - description: Patch a custom field object. + operationId: extras_config_contexts_partial_update + description: Patch a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56360,10 +56498,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -56372,17 +56510,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_custom_fields_destroy - description: Delete a custom field object. + operationId: extras_config_contexts_destroy + description: Delete a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -56392,119 +56530,48 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/: - get: - operationId: extras_custom_links_list - description: Get a list of custom link objects. + /api/extras/config-contexts/{id}/sync/: + post: + operationId: extras_config_contexts_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). parameters: - - in: query - name: button_class + - in: path + name: id schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `outline-dark` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + /api/extras/config-templates/: + get: + operationId: extras_config_templates_list + description: Get a list of config template objects. + parameters: - in: query - name: button_class__n + name: auto_sync_enabled schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `outline-dark` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' + type: boolean - in: query name: created schema: @@ -56574,23 +56641,117 @@ paths: type: string format: uuid - in: query - name: enabled + name: data_file_id + schema: + type: array + items: + type: integer + nullable: true + description: Data file (ID) + explode: true + style: form + - in: query + name: data_file_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data file (ID) + explode: true + style: form + - in: query + name: data_source_id + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_source_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_synced + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__empty schema: type: boolean - in: query - name: group_name + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group_name__empty + name: data_synced__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: group_name__ic + name: description__ic schema: type: array items: @@ -56598,7 +56759,7 @@ paths: explode: true style: form - in: query - name: group_name__ie + name: description__ie schema: type: array items: @@ -56606,7 +56767,7 @@ paths: explode: true style: form - in: query - name: group_name__iew + name: description__iew schema: type: array items: @@ -56614,7 +56775,7 @@ paths: explode: true style: form - in: query - name: group_name__isw + name: description__isw schema: type: array items: @@ -56622,7 +56783,7 @@ paths: explode: true style: form - in: query - name: group_name__n + name: description__n schema: type: array items: @@ -56630,7 +56791,7 @@ paths: explode: true style: form - in: query - name: group_name__nic + name: description__nic schema: type: array items: @@ -56638,7 +56799,7 @@ paths: explode: true style: form - in: query - name: group_name__nie + name: description__nie schema: type: array items: @@ -56646,7 +56807,7 @@ paths: explode: true style: form - in: query - name: group_name__niew + name: description__niew schema: type: array items: @@ -56654,7 +56815,7 @@ paths: explode: true style: form - in: query - name: group_name__nisw + name: description__nisw schema: type: array items: @@ -56788,86 +56949,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: link_text - schema: - type: string - - in: query - name: link_text__ic - schema: - type: string - - in: query - name: link_text__ie - schema: - type: string - - in: query - name: link_text__iew - schema: - type: string - - in: query - name: link_text__isw - schema: - type: string - - in: query - name: link_text__n - schema: - type: string - - in: query - name: link_text__nic - schema: - type: string - - in: query - name: link_text__nie - schema: - type: string - - in: query - name: link_text__niew - schema: - type: string - - in: query - name: link_text__nisw - schema: - type: string - - in: query - name: link_url - schema: - type: string - - in: query - name: link_url__ic - schema: - type: string - - in: query - name: link_url__ie - schema: - type: string - - in: query - name: link_url__iew - schema: - type: string - - in: query - name: link_url__isw - schema: - type: string - - in: query - name: link_url__n - schema: - type: string - - in: query - name: link_url__nic - schema: - type: string - - in: query - name: link_url__nie - schema: - type: string - - in: query - name: link_url__niew - schema: - type: string - - in: query - name: link_url__nisw - schema: - type: string - in: query name: modified_by_request schema: @@ -56957,66 +57038,6 @@ paths: type: string explode: true style: form - - in: query - name: new_window - schema: - type: boolean - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query @@ -57035,68 +57056,26 @@ paths: type: string description: Search - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lt + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - extras security: @@ -57107,21 +57086,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomLinkList' + $ref: '#/components/schemas/PaginatedConfigTemplateList' description: '' post: - operationId: extras_custom_links_create - description: Post a list of custom link objects. + operationId: extras_config_templates_create + description: Post a list of config template objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57131,11 +57110,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: extras_custom_links_bulk_update - description: Put a list of custom link objects. + operationId: extras_config_templates_bulk_update + description: Put a list of config template objects. tags: - extras requestBody: @@ -57144,12 +57123,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57161,11 +57140,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: extras_custom_links_bulk_partial_update - description: Patch a list of custom link objects. + operationId: extras_config_templates_bulk_partial_update + description: Patch a list of config template objects. tags: - extras requestBody: @@ -57174,12 +57153,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57191,11 +57170,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: extras_custom_links_bulk_destroy - description: Delete a list of custom link objects. + operationId: extras_config_templates_bulk_destroy + description: Delete a list of config template objects. tags: - extras requestBody: @@ -57204,12 +57183,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57217,16 +57196,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/{id}/: + /api/extras/config-templates/{id}/: get: - operationId: extras_custom_links_retrieve - description: Get a custom link object. + operationId: extras_config_templates_retrieve + description: Get a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57238,17 +57217,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: extras_custom_links_update - description: Put a custom link object. + operationId: extras_config_templates_update + description: Put a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57256,10 +57235,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -57269,17 +57248,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: extras_custom_links_partial_update - description: Patch a custom link object. + operationId: extras_config_templates_partial_update + description: Patch a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57287,10 +57266,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57299,17 +57278,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: extras_custom_links_destroy - description: Delete a custom link object. + operationId: extras_config_templates_destroy + description: Delete a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this config template. required: true tags: - extras @@ -57319,35 +57298,38 @@ paths: responses: '204': description: No response body - /api/extras/dashboard/: - get: - operationId: extras_dashboard_retrieve - description: Get a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - put: - operationId: extras_dashboard_update - description: Put a list of dashboard objects. + /api/extras/config-templates/{id}/render/: + post: + operationId: extras_config_templates_render_create + description: 'Render a ConfigTemplate using the context data provided (if any). + If the client requests "text/plain" data, + + return the raw rendered content, rather than serialized JSON.' + parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/DashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -57356,21 +57338,34 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dashboard' + $ref: '#/components/schemas/ConfigTemplate' + text/plain: + schema: + $ref: '#/components/schemas/ConfigTemplate' description: '' - patch: - operationId: extras_dashboard_partial_update - description: Patch a list of dashboard objects. + /api/extras/config-templates/{id}/sync/: + post: + operationId: extras_config_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedDashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDashboardRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -57379,111 +57374,53 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dashboard' + $ref: '#/components/schemas/ConfigTemplate' description: '' - delete: - operationId: extras_dashboard_destroy - description: Delete a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/event-rules/: + /api/extras/custom-field-choice-sets/: get: - operationId: extras_event_rules_list - description: Get a list of event rule objects. + operationId: extras_custom_field_choice_sets_list + description: Get a list of custom field choice set objects. parameters: - in: query - name: action_object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: action_object_type + name: base_choices schema: type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' - in: query - name: action_object_type__n + name: base_choices__n schema: type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' - in: query - name: action_type - schema: - type: array - items: - type: string - x-spec-enum-id: a08300d86473de6e - explode: true - style: form - - in: query - name: action_type__n + name: choice schema: type: array items: type: string - x-spec-enum-id: a08300d86473de6e explode: true style: form - in: query @@ -57638,10 +57575,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -57858,68 +57791,16 @@ paths: type: string explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer + - in: query + name: order_alphabetically + schema: + type: boolean - name: ordering required: false in: query @@ -57931,42 +57812,6 @@ paths: schema: type: string description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type_create - schema: - type: boolean - - in: query - name: type_delete - schema: - type: boolean - - in: query - name: type_job_end - schema: - type: boolean - - in: query - name: type_job_start - schema: - type: boolean - - in: query - name: type_update - schema: - type: boolean - in: query name: updated_by_request schema: @@ -57982,21 +57827,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEventRuleList' + $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' description: '' post: - operationId: extras_event_rules_create - description: Post a list of event rule objects. + operationId: extras_custom_field_choice_sets_create + description: Post a list of custom field choice set objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58006,11 +57851,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: extras_event_rules_bulk_update - description: Put a list of event rule objects. + operationId: extras_custom_field_choice_sets_bulk_update + description: Put a list of custom field choice set objects. tags: - extras requestBody: @@ -58019,12 +57864,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58036,11 +57881,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: extras_event_rules_bulk_partial_update - description: Patch a list of event rule objects. + operationId: extras_custom_field_choice_sets_bulk_partial_update + description: Patch a list of custom field choice set objects. tags: - extras requestBody: @@ -58049,12 +57894,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58066,11 +57911,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: extras_event_rules_bulk_destroy - description: Delete a list of event rule objects. + operationId: extras_custom_field_choice_sets_bulk_destroy + description: Delete a list of custom field choice set objects. tags: - extras requestBody: @@ -58079,12 +57924,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58092,16 +57937,16 @@ paths: responses: '204': description: No response body - /api/extras/event-rules/{id}/: + /api/extras/custom-field-choice-sets/{id}/: get: - operationId: extras_event_rules_retrieve - description: Get a event rule object. + operationId: extras_custom_field_choice_sets_retrieve + description: Get a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58113,17 +57958,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: extras_event_rules_update - description: Put a event rule object. + operationId: extras_custom_field_choice_sets_update + description: Put a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58131,10 +57976,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -58144,17 +57989,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: extras_event_rules_partial_update - description: Patch a event rule object. + operationId: extras_custom_field_choice_sets_partial_update + description: Patch a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58162,10 +58007,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -58174,17 +58019,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: extras_event_rules_destroy - description: Delete a event rule object. + operationId: extras_custom_field_choice_sets_destroy + description: Delete a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this custom field choice set. required: true tags: - extras @@ -58194,57 +58039,70 @@ paths: responses: '204': description: No response body - /api/extras/export-templates/: + /api/extras/custom-field-choice-sets/{id}/choices/: get: - operationId: extras_export_templates_list - description: Get a list of export template objects. + operationId: extras_custom_field_choice_sets_choices_retrieve + description: Provides an endpoint to iterate through each choice in a set. parameters: - - in: query - name: as_attachment - schema: - type: boolean - - in: query - name: auto_sync_enabled + - in: path + name: id schema: - type: boolean + type: integer + description: A unique integer value identifying this custom field choice set. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFieldChoiceSet' + description: '' + /api/extras/custom-fields/: + get: + operationId: extras_custom_fields_list + description: Get a list of custom field objects. + parameters: - in: query - name: created + name: choice_set schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: choice_set__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: choice_set_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true explode: true style: form - in: query - name: created__gte + name: choice_set_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true explode: true style: form - in: query - name: created__lt + name: created schema: type: array items: @@ -58253,7 +58111,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: created__empty schema: type: array items: @@ -58262,7 +58120,7 @@ paths: explode: true style: form - in: query - name: created__n + name: created__gt schema: type: array items: @@ -58271,65 +58129,7 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: data_file_id - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_file_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_source_id - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_source_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: created__gte schema: type: array items: @@ -58338,7 +58138,7 @@ paths: explode: true style: form - in: query - name: data_synced__gte + name: created__lt schema: type: array items: @@ -58347,7 +58147,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: created__lte schema: type: array items: @@ -58356,7 +58156,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: created__n schema: type: array items: @@ -58365,14 +58165,10 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: created_by_request schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: uuid - in: query name: description schema: @@ -58458,7 +58254,43 @@ paths: explode: true style: form - in: query - name: file_extension + name: filter_logic + schema: + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + - in: query + name: filter_logic__n + schema: + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + - in: query + name: group_name schema: type: array items: @@ -58466,11 +58298,11 @@ paths: explode: true style: form - in: query - name: file_extension__empty + name: group_name__empty schema: type: boolean - in: query - name: file_extension__ic + name: group_name__ic schema: type: array items: @@ -58478,7 +58310,7 @@ paths: explode: true style: form - in: query - name: file_extension__ie + name: group_name__ie schema: type: array items: @@ -58486,7 +58318,7 @@ paths: explode: true style: form - in: query - name: file_extension__iew + name: group_name__iew schema: type: array items: @@ -58494,7 +58326,7 @@ paths: explode: true style: form - in: query - name: file_extension__isw + name: group_name__isw schema: type: array items: @@ -58502,7 +58334,7 @@ paths: explode: true style: form - in: query - name: file_extension__n + name: group_name__n schema: type: array items: @@ -58510,7 +58342,7 @@ paths: explode: true style: form - in: query - name: file_extension__nic + name: group_name__nic schema: type: array items: @@ -58518,7 +58350,7 @@ paths: explode: true style: form - in: query - name: file_extension__nie + name: group_name__nie schema: type: array items: @@ -58526,7 +58358,7 @@ paths: explode: true style: form - in: query - name: file_extension__niew + name: group_name__niew schema: type: array items: @@ -58534,7 +58366,7 @@ paths: explode: true style: form - in: query - name: file_extension__nisw + name: group_name__nisw schema: type: array items: @@ -58600,76 +58432,71 @@ paths: explode: true style: form - in: query - name: last_updated + name: is_cloneable + schema: + type: boolean + - in: query + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: mime_type + name: label__nie schema: type: array items: @@ -58677,11 +58504,7 @@ paths: explode: true style: form - in: query - name: mime_type__empty - schema: - type: boolean - - in: query - name: mime_type__ic + name: label__niew schema: type: array items: @@ -58689,7 +58512,7 @@ paths: explode: true style: form - in: query - name: mime_type__ie + name: label__nisw schema: type: array items: @@ -58697,61 +58520,74 @@ paths: explode: true style: form - in: query - name: mime_type__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mime_type__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query name: modified_by_request schema: @@ -58915,340 +58751,48 @@ paths: type: string description: Search - in: query - name: updated_by_request + name: related_object_type schema: type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedExportTemplateList' - description: '' - post: - operationId: extras_export_templates_create - description: Post a list of export template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - put: - operationId: extras_export_templates_bulk_update - description: Put a list of export template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplate' - description: '' - patch: - operationId: extras_export_templates_bulk_partial_update - description: Patch a list of export template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplate' - description: '' - delete: - operationId: extras_export_templates_bulk_destroy - description: Delete a list of export template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/export-templates/{id}/: - get: - operationId: extras_export_templates_retrieve - description: Get a export template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - put: - operationId: extras_export_templates_update - description: Put a export template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - patch: - operationId: extras_export_templates_partial_update - description: Patch a export template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - delete: - operationId: extras_export_templates_destroy - description: Delete a export template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/export-templates/{id}/sync/: - post: - operationId: extras_export_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - /api/extras/image-attachments/: - get: - operationId: extras_image_attachments_list - description: Get a list of image attachment objects. - parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - in: query - name: created__gt + name: related_object_type__n schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created__gte + name: related_object_type_id schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: created__lt + name: related_object_type_id__n schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: created__lte + name: required schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__n + name: search_weight schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: search_weight__empty schema: - type: string - format: uuid + type: boolean - in: query - name: id + name: search_weight__gt schema: type: array items: @@ -59257,11 +58801,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: search_weight__gte schema: type: array items: @@ -59270,7 +58810,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: search_weight__lt schema: type: array items: @@ -59279,7 +58819,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: search_weight__lte schema: type: array items: @@ -59288,7 +58828,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: search_weight__n schema: type: array items: @@ -59297,74 +58837,106 @@ paths: explode: true style: form - in: query - name: id__n + name: type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: image_height + name: type__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: image_height__empty + name: ui_editable schema: - type: boolean + type: string + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' - in: query - name: image_height__gt + name: ui_editable__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' - in: query - name: image_height__gte + name: ui_visible schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' - in: query - name: image_height__lt + name: ui_visible__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' - in: query - name: image_height__lte + name: unique schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: image_height__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: image_width + name: validation_maximum schema: type: array items: @@ -59373,11 +58945,11 @@ paths: explode: true style: form - in: query - name: image_width__empty + name: validation_maximum__empty schema: type: boolean - in: query - name: image_width__gt + name: validation_maximum__gt schema: type: array items: @@ -59386,7 +58958,7 @@ paths: explode: true style: form - in: query - name: image_width__gte + name: validation_maximum__gte schema: type: array items: @@ -59395,7 +58967,7 @@ paths: explode: true style: form - in: query - name: image_width__lt + name: validation_maximum__lt schema: type: array items: @@ -59404,7 +58976,7 @@ paths: explode: true style: form - in: query - name: image_width__lte + name: validation_maximum__lte schema: type: array items: @@ -59413,7 +58985,7 @@ paths: explode: true style: form - in: query - name: image_width__n + name: validation_maximum__n schema: type: array items: @@ -59422,81 +58994,65 @@ paths: explode: true style: form - in: query - name: last_updated + name: validation_minimum schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: validation_minimum__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: validation_minimum__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: validation_minimum__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: validation_minimum__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: validation_minimum__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: validation_minimum__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: validation_regex schema: type: array items: @@ -59504,11 +59060,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: validation_regex__empty schema: type: boolean - in: query - name: name__ic + name: validation_regex__ic schema: type: array items: @@ -59516,7 +59072,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: validation_regex__ie schema: type: array items: @@ -59524,7 +59080,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: validation_regex__iew schema: type: array items: @@ -59532,7 +59088,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: validation_regex__isw schema: type: array items: @@ -59540,7 +59096,7 @@ paths: explode: true style: form - in: query - name: name__n + name: validation_regex__n schema: type: array items: @@ -59548,7 +59104,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: validation_regex__nic schema: type: array items: @@ -59556,7 +59112,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: validation_regex__nie schema: type: array items: @@ -59564,7 +59120,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: validation_regex__niew schema: type: array items: @@ -59572,7 +59128,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: validation_regex__nisw schema: type: array items: @@ -59580,7 +59136,7 @@ paths: explode: true style: form - in: query - name: object_id + name: weight schema: type: array items: @@ -59589,11 +59145,11 @@ paths: explode: true style: form - in: query - name: object_id__empty + name: weight__empty schema: type: boolean - in: query - name: object_id__gt + name: weight__gt schema: type: array items: @@ -59602,7 +59158,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: weight__gte schema: type: array items: @@ -59611,7 +59167,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: weight__lt schema: type: array items: @@ -59620,7 +59176,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: weight__lte schema: type: array items: @@ -59629,7 +59185,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: weight__n schema: type: array items: @@ -59637,44 +59193,6 @@ paths: format: int32 explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type_id - schema: - type: integer - - in: query - name: object_type_id__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - extras security: @@ -59685,21 +59203,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedImageAttachmentList' + $ref: '#/components/schemas/PaginatedCustomFieldList' description: '' post: - operationId: extras_image_attachments_create - description: Post a list of image attachment objects. + operationId: extras_custom_fields_create + description: Post a list of custom field objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -59709,11 +59227,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: extras_image_attachments_bulk_update - description: Put a list of image attachment objects. + operationId: extras_custom_fields_bulk_update + description: Put a list of custom field objects. tags: - extras requestBody: @@ -59722,12 +59240,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -59739,11 +59257,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: extras_image_attachments_bulk_partial_update - description: Patch a list of image attachment objects. + operationId: extras_custom_fields_bulk_partial_update + description: Patch a list of custom field objects. tags: - extras requestBody: @@ -59752,12 +59270,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -59769,11 +59287,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: extras_image_attachments_bulk_destroy - description: Delete a list of image attachment objects. + operationId: extras_custom_fields_bulk_destroy + description: Delete a list of custom field objects. tags: - extras requestBody: @@ -59782,12 +59300,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -59795,16 +59313,16 @@ paths: responses: '204': description: No response body - /api/extras/image-attachments/{id}/: + /api/extras/custom-fields/{id}/: get: - operationId: extras_image_attachments_retrieve - description: Get a image attachment object. + operationId: extras_custom_fields_retrieve + description: Get a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59816,17 +59334,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: extras_image_attachments_update - description: Put a image attachment object. + operationId: extras_custom_fields_update + description: Put a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59834,10 +59352,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ImageAttachmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -59847,17 +59365,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: extras_image_attachments_partial_update - description: Patch a image attachment object. + operationId: extras_custom_fields_partial_update + description: Patch a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59865,10 +59383,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -59877,17 +59395,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: extras_image_attachments_destroy - description: Delete a image attachment object. + operationId: extras_custom_fields_destroy + description: Delete a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this image attachment. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -59897,146 +59415,275 @@ paths: responses: '204': description: No response body - /api/extras/journal-entries/: + /api/extras/custom-links/: get: - operationId: extras_journal_entries_list - description: Get a list of journal entry objects. + operationId: extras_custom_links_list + description: Get a list of custom link objects. parameters: - in: query - name: assigned_object_id + name: button_class schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: ee8e5bb1ccdcdb19 + enum: + - black + - blue + - cyan + - default + - ghost-dark + - gray + - green + - indigo + - orange + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `default` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' - in: query - name: assigned_object_id__empty + name: button_class__n schema: - type: boolean + type: string + x-spec-enum-id: ee8e5bb1ccdcdb19 + enum: + - black + - blue + - cyan + - default + - ghost-dark + - gray + - green + - indigo + - orange + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `default` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' - in: query - name: assigned_object_id__gt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__gte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type + name: created__lte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: assigned_object_type__n + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request schema: type: string + format: uuid - in: query - name: assigned_object_type_id + name: enabled + schema: + type: boolean + - in: query + name: group_name schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: assigned_object_type_id__n + name: group_name__empty + schema: + type: boolean + - in: query + name: group_name__ic schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: created_after + name: group_name__ie schema: - type: string - format: date-time + type: array + items: + type: string + explode: true + style: form - in: query - name: created_before + name: group_name__iew schema: - type: string - format: date-time + type: array + items: + type: string + explode: true + style: form - in: query - name: created_by + name: group_name__isw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: created_by__n + name: group_name__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: created_by_id + name: group_name__nic schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: created_by_id__n + name: group_name__nie schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: created_by_request + name: group_name__niew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: id schema: @@ -60095,24 +59742,6 @@ paths: format: int32 explode: true style: form - - in: query - name: kind - schema: - type: array - items: - type: string - x-spec-enum-id: a21af280f632fa34 - explode: true - style: form - - in: query - name: kind__n - schema: - type: array - items: - type: string - x-spec-enum-id: a21af280f632fa34 - explode: true - style: form - in: query name: last_updated schema: @@ -60182,11 +59811,235 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link_text + schema: + type: string + - in: query + name: link_text__ic + schema: + type: string + - in: query + name: link_text__ie + schema: + type: string + - in: query + name: link_text__iew + schema: + type: string + - in: query + name: link_text__isw + schema: + type: string + - in: query + name: link_text__n + schema: + type: string + - in: query + name: link_text__nic + schema: + type: string + - in: query + name: link_text__nie + schema: + type: string + - in: query + name: link_text__niew + schema: + type: string + - in: query + name: link_text__nisw + schema: + type: string + - in: query + name: link_url + schema: + type: string + - in: query + name: link_url__ic + schema: + type: string + - in: query + name: link_url__ie + schema: + type: string + - in: query + name: link_url__iew + schema: + type: string + - in: query + name: link_url__isw + schema: + type: string + - in: query + name: link_url__n + schema: + type: string + - in: query + name: link_url__nic + schema: + type: string + - in: query + name: link_url__nie + schema: + type: string + - in: query + name: link_url__niew + schema: + type: string + - in: query + name: link_url__nisw + schema: + type: string - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: new_window + schema: + type: boolean + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -60205,26 +60058,68 @@ paths: type: string description: Search - in: query - name: tag + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: weight__gte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - extras security: @@ -60235,21 +60130,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedJournalEntryList' + $ref: '#/components/schemas/PaginatedCustomLinkList' description: '' post: - operationId: extras_journal_entries_create - description: Post a list of journal entry objects. + operationId: extras_custom_links_create + description: Post a list of custom link objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60259,11 +60154,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: extras_journal_entries_bulk_update - description: Put a list of journal entry objects. + operationId: extras_custom_links_bulk_update + description: Put a list of custom link objects. tags: - extras requestBody: @@ -60272,12 +60167,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60289,11 +60184,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: extras_journal_entries_bulk_partial_update - description: Patch a list of journal entry objects. + operationId: extras_custom_links_bulk_partial_update + description: Patch a list of custom link objects. tags: - extras requestBody: @@ -60302,12 +60197,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60319,11 +60214,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: extras_journal_entries_bulk_destroy - description: Delete a list of journal entry objects. + operationId: extras_custom_links_bulk_destroy + description: Delete a list of custom link objects. tags: - extras requestBody: @@ -60332,12 +60227,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/JournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60345,16 +60240,16 @@ paths: responses: '204': description: No response body - /api/extras/journal-entries/{id}/: + /api/extras/custom-links/{id}/: get: - operationId: extras_journal_entries_retrieve - description: Get a journal entry object. + operationId: extras_custom_links_retrieve + description: Get a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60366,17 +60261,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: extras_journal_entries_update - description: Put a journal entry object. + operationId: extras_custom_links_update + description: Put a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60384,10 +60279,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -60397,17 +60292,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: extras_journal_entries_partial_update - description: Patch a journal entry object. + operationId: extras_custom_links_partial_update + description: Patch a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60415,10 +60310,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -60427,17 +60322,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/JournalEntry' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: extras_journal_entries_destroy - description: Delete a journal entry object. + operationId: extras_custom_links_destroy + description: Delete a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this journal entry. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -60447,41 +60342,86 @@ paths: responses: '204': description: No response body - /api/extras/object-changes/: + /api/extras/dashboard/: get: - operationId: extras_object_changes_list - description: Retrieve a list of recent changes. + operationId: extras_dashboard_retrieve + description: Get a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + put: + operationId: extras_dashboard_update + description: Put a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + patch: + operationId: extras_dashboard_partial_update + description: Patch a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + delete: + operationId: extras_dashboard_destroy + description: Delete a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/: + get: + operationId: extras_event_rules_list + description: Get a list of event rule objects. parameters: - in: query - name: action - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: action__n - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: changed_object_id + name: action_object_id schema: type: array items: @@ -60490,11 +60430,16 @@ paths: explode: true style: form - in: query - name: changed_object_id__empty + name: action_object_id__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: changed_object_id__gt + name: action_object_id__gt schema: type: array items: @@ -60503,7 +60448,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__gte + name: action_object_id__gte schema: type: array items: @@ -60512,7 +60457,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__lt + name: action_object_id__lt schema: type: array items: @@ -60521,7 +60466,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__lte + name: action_object_id__lte schema: type: array items: @@ -60530,7 +60475,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__n + name: action_object_id__n schema: type: array items: @@ -60539,95 +60484,101 @@ paths: explode: true style: form - in: query - name: changed_object_type + name: action_object_type schema: type: string - in: query - name: changed_object_type__n + name: action_object_type__n schema: type: string - in: query - name: changed_object_type_id + name: action_type schema: type: array items: - type: integer + type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: changed_object_type_id__n + name: action_type__n schema: type: array items: - type: integer + type: string + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: created_by_request schema: - type: integer + type: string + format: uuid - in: query - name: object_repr + name: description schema: type: array items: @@ -60635,11 +60586,11 @@ paths: explode: true style: form - in: query - name: object_repr__empty + name: description__empty schema: type: boolean - in: query - name: object_repr__ic + name: description__ic schema: type: array items: @@ -60647,7 +60598,7 @@ paths: explode: true style: form - in: query - name: object_repr__ie + name: description__ie schema: type: array items: @@ -60655,7 +60606,7 @@ paths: explode: true style: form - in: query - name: object_repr__iew + name: description__iew schema: type: array items: @@ -60663,7 +60614,7 @@ paths: explode: true style: form - in: query - name: object_repr__isw + name: description__isw schema: type: array items: @@ -60671,7 +60622,7 @@ paths: explode: true style: form - in: query - name: object_repr__n + name: description__n schema: type: array items: @@ -60679,7 +60630,7 @@ paths: explode: true style: form - in: query - name: object_repr__nic + name: description__nic schema: type: array items: @@ -60687,7 +60638,7 @@ paths: explode: true style: form - in: query - name: object_repr__nie + name: description__nie schema: type: array items: @@ -60695,7 +60646,7 @@ paths: explode: true style: form - in: query - name: object_repr__niew + name: description__niew schema: type: array items: @@ -60703,32 +60654,27 @@ paths: explode: true style: form - in: query - name: object_repr__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: enabled schema: - type: string + type: boolean - in: query - name: q + name: event_type schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: related_object_id + name: id schema: type: array items: @@ -60737,11 +60683,11 @@ paths: explode: true style: form - in: query - name: related_object_id__empty + name: id__empty schema: type: boolean - in: query - name: related_object_id__gt + name: id__gt schema: type: array items: @@ -60750,7 +60696,7 @@ paths: explode: true style: form - in: query - name: related_object_id__gte + name: id__gte schema: type: array items: @@ -60759,7 +60705,7 @@ paths: explode: true style: form - in: query - name: related_object_id__lt + name: id__lt schema: type: array items: @@ -60768,7 +60714,7 @@ paths: explode: true style: form - in: query - name: related_object_id__lte + name: id__lte schema: type: array items: @@ -60777,7 +60723,7 @@ paths: explode: true style: form - in: query - name: related_object_id__n + name: id__n schema: type: array items: @@ -60786,104 +60732,81 @@ paths: explode: true style: form - in: query - name: related_object_type - schema: - type: integer - - in: query - name: related_object_type__n - schema: - type: integer - - in: query - name: request_id - schema: - type: string - format: uuid - - in: query - name: time_after - schema: - type: string - format: date-time - - in: query - name: time_before - schema: - type: string - format: date-time - - in: query - name: user + name: last_updated schema: type: array items: type: string - description: User name + format: date-time explode: true style: form - in: query - name: user__n + name: last_updated__empty schema: type: array items: type: string - description: User name + format: date-time explode: true style: form - in: query - name: user_id + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string + format: date-time explode: true style: form - in: query - name: user_id__n + name: last_updated__gte schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string + format: date-time explode: true style: form - in: query - name: user_name + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: user_name__empty - schema: - type: boolean - - in: query - name: user_name__ic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: user_name__ie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: user_name__iew + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: user_name__isw + name: name schema: type: array items: @@ -60891,15 +60814,11 @@ paths: explode: true style: form - in: query - name: user_name__n + name: name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: user_name__nic + name: name__ic schema: type: array items: @@ -60907,7 +60826,7 @@ paths: explode: true style: form - in: query - name: user_name__nie + name: name__ie schema: type: array items: @@ -60915,7 +60834,7 @@ paths: explode: true style: form - in: query - name: user_name__niew + name: name__iew schema: type: array items: @@ -60923,234 +60842,128 @@ paths: explode: true style: form - in: query - name: user_name__nisw + name: name__isw schema: type: array items: type: string explode: true style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedObjectChangeList' - description: '' - /api/extras/object-changes/{id}/: - get: - operationId: extras_object_changes_retrieve - description: Retrieve a list of recent changes. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this object change. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ObjectChange' - description: '' - /api/extras/object-types/: - get: - operationId: extras_object_types_list - description: Read-only list of ObjectTypes. - parameters: - - in: query - name: app_label - schema: - type: string - - in: query - name: id - schema: - type: integer - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: model - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedObjectTypeList' - description: '' - /api/extras/object-types/{id}/: - get: - operationId: extras_object_types_retrieve - description: Read-only list of ObjectTypes. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this object type. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ObjectType' - description: '' - /api/extras/saved-filters/: - get: - operationId: extras_saved_filters_list - description: Get a list of saved filter objects. - parameters: - in: query - name: created + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: object_type schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created__n + name: object_type__ic schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created_by_request + name: object_type__ie schema: type: string - format: uuid - in: query - name: description + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: description__empty + name: object_type__isw schema: - type: boolean + type: string - in: query - name: description__ic + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: description__ie + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: description__iew + name: object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: description__isw + name: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: @@ -61158,7 +60971,7 @@ paths: explode: true style: form - in: query - name: description__n + name: tag__n schema: type: array items: @@ -61166,101 +60979,368 @@ paths: explode: true style: form - in: query - name: description__nic + name: updated_by_request + schema: + type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedEventRuleList' + description: '' + post: + operationId: extras_event_rules_create + description: Post a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + put: + operationId: extras_event_rules_bulk_update + description: Put a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRule' + description: '' + patch: + operationId: extras_event_rules_bulk_partial_update + description: Patch a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRule' + description: '' + delete: + operationId: extras_event_rules_bulk_destroy + description: Delete a list of event rule objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/EventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/{id}/: + get: + operationId: extras_event_rules_retrieve + description: Get a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + put: + operationId: extras_event_rules_update + description: Put a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableEventRuleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + patch: + operationId: extras_event_rules_partial_update + description: Patch a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/EventRule' + description: '' + delete: + operationId: extras_event_rules_destroy + description: Delete a event rule object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this event rule. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/export-templates/: + get: + operationId: extras_export_templates_list + description: Get a list of export template objects. + parameters: + - in: query + name: as_attachment + schema: + type: boolean + - in: query + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: enabled + name: created__lt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__n schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: data_file_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__gte + name: data_file_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: id__lt + name: data_source_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__lte + name: data_source_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: id__n + name: data_synced schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: @@ -61269,7 +61349,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: data_synced__gte schema: type: array items: @@ -61278,7 +61358,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: data_synced__lt schema: type: array items: @@ -61287,7 +61367,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: data_synced__lte schema: type: array items: @@ -61296,7 +61376,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: data_synced__n schema: type: array items: @@ -61305,36 +61385,43 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: description__ie schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: modified_by_request + name: description__iew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: name + name: description__isw schema: type: array items: @@ -61342,11 +61429,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: description__nic schema: type: array items: @@ -61354,7 +61445,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__nie schema: type: array items: @@ -61362,7 +61453,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__niew schema: type: array items: @@ -61370,7 +61461,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__nisw schema: type: array items: @@ -61378,7 +61469,7 @@ paths: explode: true style: form - in: query - name: name__n + name: file_extension schema: type: array items: @@ -61386,7 +61477,11 @@ paths: explode: true style: form - in: query - name: name__nic + name: file_extension__empty + schema: + type: boolean + - in: query + name: file_extension__ic schema: type: array items: @@ -61394,7 +61489,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: file_extension__ie schema: type: array items: @@ -61402,7 +61497,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: file_extension__iew schema: type: array items: @@ -61410,7 +61505,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: file_extension__isw schema: type: array items: @@ -61418,96 +61513,186 @@ paths: explode: true style: form - in: query - name: object_type + name: file_extension__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__ic + name: file_extension__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__ie + name: file_extension__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__iew + name: file_extension__niew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__isw + name: file_extension__nisw schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: id schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__nic + name: id__empty schema: - type: string + type: boolean - in: query - name: object_type__nie + name: id__gt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__niew + name: id__gte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type__nisw + name: id__lt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: object_type_id + name: id__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: object_type_id__n + name: id__n schema: type: array items: type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: last_updated schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: q + name: last_updated__gt schema: - type: string - description: Search + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: shared + name: last_updated__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: slug + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__empty + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: mime_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mime_type__empty schema: type: boolean - in: query - name: slug__ic + name: mime_type__ic schema: type: array items: @@ -61515,7 +61700,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: mime_type__ie schema: type: array items: @@ -61523,7 +61708,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: mime_type__iew schema: type: array items: @@ -61531,7 +61716,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: mime_type__isw schema: type: array items: @@ -61539,7 +61724,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: mime_type__n schema: type: array items: @@ -61547,7 +61732,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: mime_type__nic schema: type: array items: @@ -61555,7 +61740,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: mime_type__nie schema: type: array items: @@ -61563,7 +61748,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: mime_type__niew schema: type: array items: @@ -61571,7 +61756,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: mime_type__nisw schema: type: array items: @@ -61579,110 +61764,172 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: usable + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: type: boolean - in: query - name: user + name: name__ic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: name__ie schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: name__iew schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: name__isw schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: weight + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__empty + name: name__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: weight__gt + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__gte + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lt + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: weight__n + name: object_type_id__n schema: type: array items: type: integer - format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - extras security: @@ -61693,21 +61940,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSavedFilterList' + $ref: '#/components/schemas/PaginatedExportTemplateList' description: '' post: - operationId: extras_saved_filters_create - description: Post a list of saved filter objects. + operationId: extras_export_templates_create + description: Post a list of export template objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61717,11 +61964,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: extras_saved_filters_bulk_update - description: Put a list of saved filter objects. + operationId: extras_export_templates_bulk_update + description: Put a list of export template objects. tags: - extras requestBody: @@ -61730,12 +61977,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61747,11 +61994,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: extras_saved_filters_bulk_partial_update - description: Patch a list of saved filter objects. + operationId: extras_export_templates_bulk_partial_update + description: Patch a list of export template objects. tags: - extras requestBody: @@ -61760,12 +62007,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61777,11 +62024,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: extras_saved_filters_bulk_destroy - description: Delete a list of saved filter objects. + operationId: extras_export_templates_bulk_destroy + description: Delete a list of export template objects. tags: - extras requestBody: @@ -61790,12 +62037,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61803,16 +62050,16 @@ paths: responses: '204': description: No response body - /api/extras/saved-filters/{id}/: + /api/extras/export-templates/{id}/: get: - operationId: extras_saved_filters_retrieve - description: Get a saved filter object. + operationId: extras_export_templates_retrieve + description: Get a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61824,17 +62071,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: extras_saved_filters_update - description: Put a saved filter object. + operationId: extras_export_templates_update + description: Put a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61842,10 +62089,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -61855,17 +62102,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: extras_saved_filters_partial_update - description: Patch a saved filter object. + operationId: extras_export_templates_partial_update + description: Patch a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61873,10 +62120,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -61885,17 +62132,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: extras_saved_filters_destroy - description: Delete a saved filter object. + operationId: extras_export_templates_destroy + description: Delete a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this export template. required: true tags: - extras @@ -61905,11 +62152,112 @@ paths: responses: '204': description: No response body - /api/extras/scripts/: + /api/extras/export-templates/{id}/sync/: + post: + operationId: extras_export_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this export template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplate' + description: '' + /api/extras/image-attachments/: get: - operationId: extras_scripts_list - description: Get a list of script objects. + operationId: extras_image_attachments_list + description: Get a list of image attachment objects. parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: id schema: @@ -61969,422 +62317,197 @@ paths: explode: true style: form - in: query - name: is_executable + name: image_height + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_height__empty schema: type: boolean - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: image_height__gt schema: - type: integer + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: module_id + name: image_height__gte schema: type: array items: type: integer - description: Script module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: image_height__lt schema: type: array items: type: integer - description: Script module (ID) + format: int32 explode: true style: form - in: query - name: name + name: image_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: image_height__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width__empty schema: type: boolean - in: query - name: name__ic + name: image_width__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: image_width__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: image_width__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: image_width__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedScriptList' - description: '' - post: - operationId: extras_scripts_create - description: Post a list of script objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - /api/extras/scripts/{id}/: - get: - operationId: extras_scripts_retrieve - description: Get a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - put: - operationId: extras_scripts_update - description: Put a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - patch: - operationId: extras_scripts_partial_update - description: Patch a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - delete: - operationId: extras_scripts_destroy - description: Delete a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/tags/: - get: - operationId: extras_tags_list - description: Get a list of tag objects. - parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: content_type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: content_type_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: name schema: type: array items: @@ -62392,11 +62515,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -62404,7 +62527,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -62412,7 +62535,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -62420,7 +62543,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -62428,7 +62551,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -62436,7 +62559,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -62444,7 +62567,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -62452,7 +62575,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -62460,7 +62583,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: @@ -62468,16 +62591,7 @@ paths: explode: true style: form - in: query - name: for_object_type_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id + name: object_id schema: type: array items: @@ -62486,11 +62600,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: object_id__empty schema: type: boolean - in: query - name: id__gt + name: object_id__gt schema: type: array items: @@ -62499,7 +62613,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: object_id__gte schema: type: array items: @@ -62508,7 +62622,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: object_id__lt schema: type: array items: @@ -62517,7 +62631,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: object_id__lte schema: type: array items: @@ -62526,7 +62640,7 @@ paths: explode: true style: form - in: query - name: id__n + name: object_id__n schema: type: array items: @@ -62535,179 +62649,21 @@ paths: explode: true style: form - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request + name: object_type schema: type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: name__nisw + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: object_types + name: object_type_id schema: - type: array - items: - type: integer - explode: true - style: form + type: integer - in: query - name: object_types__n + name: object_type_id__n schema: - type: array - items: - type: integer - explode: true - style: form + type: integer - name: offset required: false in: query @@ -62725,90 +62681,6 @@ paths: schema: type: string description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: updated_by_request schema: @@ -62824,21 +62696,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTagList' + $ref: '#/components/schemas/PaginatedImageAttachmentList' description: '' post: - operationId: extras_tags_create - description: Post a list of tag objects. + operationId: extras_image_attachments_create + description: Post a list of image attachment objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62848,11 +62720,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: extras_tags_bulk_update - description: Put a list of tag objects. + operationId: extras_image_attachments_bulk_update + description: Put a list of image attachment objects. tags: - extras requestBody: @@ -62861,12 +62733,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62878,11 +62750,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: extras_tags_bulk_partial_update - description: Patch a list of tag objects. + operationId: extras_image_attachments_bulk_partial_update + description: Patch a list of image attachment objects. tags: - extras requestBody: @@ -62891,12 +62763,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62908,11 +62780,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: extras_tags_bulk_destroy - description: Delete a list of tag objects. + operationId: extras_image_attachments_bulk_destroy + description: Delete a list of image attachment objects. tags: - extras requestBody: @@ -62921,12 +62793,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62934,16 +62806,16 @@ paths: responses: '204': description: No response body - /api/extras/tags/{id}/: + /api/extras/image-attachments/{id}/: get: - operationId: extras_tags_retrieve - description: Get a tag object. + operationId: extras_image_attachments_retrieve + description: Get a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -62955,17 +62827,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: extras_tags_update - description: Put a tag object. + operationId: extras_image_attachments_update + description: Put a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -62973,10 +62845,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -62986,17 +62858,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: extras_tags_partial_update - description: Patch a tag object. + operationId: extras_image_attachments_partial_update + description: Patch a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -63004,10 +62876,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63016,17 +62888,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: extras_tags_destroy - description: Delete a tag object. + operationId: extras_image_attachments_destroy + description: Delete a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -63036,156 +62908,139 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/: + /api/extras/journal-entries/: get: - operationId: extras_webhooks_list - description: Get a list of webhook objects. + operationId: extras_journal_entries_list + description: Get a list of journal entry objects. parameters: - in: query - name: ca_file_path + name: assigned_object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__empty + name: assigned_object_id__empty schema: type: boolean - in: query - name: ca_file_path__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ca_file_path__ie + name: assigned_object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__iew + name: assigned_object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__isw + name: assigned_object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__n + name: assigned_object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nic + name: assigned_object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nie + name: assigned_object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: ca_file_path__niew + name: assigned_object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: ca_file_path__nisw + name: assigned_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: created + name: assigned_object_type_id__n schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: created__empty + name: created_after schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query - name: created__gt + name: created_before schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query - name: created__gte + name: created_by schema: type: array items: type: string - format: date-time + description: User (name) explode: true style: form - in: query - name: created__lt + name: created_by__n schema: type: array items: type: string - format: date-time + description: User (name) explode: true style: form - in: query - name: created__lte + name: created_by_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: created__n + name: created_by_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query @@ -63194,193 +63049,29 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: http_content_type__empty + name: id__empty schema: type: boolean - in: query - name: http_content_type__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_method - schema: - type: array - items: - type: string - x-spec-enum-id: a12018571a034921 - explode: true - style: form - - in: query - name: http_method__n + name: id__gt schema: type: array items: - type: string - x-spec-enum-id: a12018571a034921 + type: integer + format: int32 explode: true style: form - in: query - name: id + name: id__gte schema: type: array items: @@ -63389,11 +63080,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__lt schema: type: array items: @@ -63402,7 +63089,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: id__lte schema: type: array items: @@ -63411,7 +63098,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: id__n schema: type: array items: @@ -63420,21 +63107,21 @@ paths: explode: true style: form - in: query - name: id__lte + name: kind schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: id__n + name: kind__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query @@ -63511,44 +63198,25 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__iew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: name__isw + name: tag schema: type: array items: @@ -63556,7 +63224,7 @@ paths: explode: true style: form - in: query - name: name__n + name: tag__n schema: type: array items: @@ -63564,37 +63232,243 @@ paths: explode: true style: form - in: query - name: name__nic + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie + type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedJournalEntryList' + description: '' + post: + operationId: extras_journal_entries_create + description: Post a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + put: + operationId: extras_journal_entries_bulk_update + description: Put a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntry' + description: '' + patch: + operationId: extras_journal_entries_bulk_partial_update + description: Patch a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntry' + description: '' + delete: + operationId: extras_journal_entries_bulk_destroy + description: Delete a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/journal-entries/{id}/: + get: + operationId: extras_journal_entries_retrieve + description: Get a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + put: + operationId: extras_journal_entries_update + description: Put a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + patch: + operationId: extras_journal_entries_partial_update + description: Patch a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + delete: + operationId: extras_journal_entries_destroy + description: Delete a journal entry object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notification-groups/: + get: + operationId: extras_notification_groups_list + description: Get a list of notification group objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - name: offset required: false in: query @@ -63607,128 +63481,251 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: payload_url - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: secret - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__empty - schema: - type: boolean - - in: query - name: secret__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__nie + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNotificationGroupList' + description: '' + post: + operationId: extras_notification_groups_create + description: Post a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + put: + operationId: extras_notification_groups_bulk_update + description: Put a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + description: '' + patch: + operationId: extras_notification_groups_bulk_partial_update + description: Patch a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + description: '' + delete: + operationId: extras_notification_groups_bulk_destroy + description: Delete a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notification-groups/{id}/: + get: + operationId: extras_notification_groups_retrieve + description: Get a notification group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__niew + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + put: + operationId: extras_notification_groups_update + description: Put a notification group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: secret__nisw + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + patch: + operationId: extras_notification_groups_partial_update + description: Patch a notification group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssl_verification + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedNotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedNotificationGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + delete: + operationId: extras_notification_groups_destroy + description: Delete a notification group object. + parameters: + - in: path + name: id schema: - type: boolean - - in: query - name: tag + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notifications/: + get: + operationId: extras_notifications_list + description: Get a list of notification objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid tags: - extras security: @@ -63739,21 +63736,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWebhookList' + $ref: '#/components/schemas/PaginatedNotificationList' description: '' post: - operationId: extras_webhooks_create - description: Post a list of webhook objects. + operationId: extras_notifications_create + description: Post a list of notification objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63763,11 +63760,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' put: - operationId: extras_webhooks_bulk_update - description: Put a list of webhook objects. + operationId: extras_notifications_bulk_update + description: Put a list of notification objects. tags: - extras requestBody: @@ -63776,12 +63773,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63793,11 +63790,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' patch: - operationId: extras_webhooks_bulk_partial_update - description: Patch a list of webhook objects. + operationId: extras_notifications_bulk_partial_update + description: Patch a list of notification objects. tags: - extras requestBody: @@ -63806,12 +63803,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63823,11 +63820,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' delete: - operationId: extras_webhooks_bulk_destroy - description: Delete a list of webhook objects. + operationId: extras_notifications_bulk_destroy + description: Delete a list of notification objects. tags: - extras requestBody: @@ -63836,12 +63833,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63849,16 +63846,16 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/{id}/: + /api/extras/notifications/{id}/: get: - operationId: extras_webhooks_retrieve - description: Get a webhook object. + operationId: extras_notifications_retrieve + description: Get a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63870,17 +63867,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' put: - operationId: extras_webhooks_update - description: Put a webhook object. + operationId: extras_notifications_update + description: Put a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63888,10 +63885,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -63901,17 +63898,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' patch: - operationId: extras_webhooks_partial_update - description: Patch a webhook object. + operationId: extras_notifications_partial_update + description: Patch a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63919,10 +63916,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedNotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedNotificationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63931,17 +63928,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/Notification' description: '' delete: - operationId: extras_webhooks_destroy - description: Delete a webhook object. + operationId: extras_notifications_destroy + description: Delete a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this notification. required: true tags: - extras @@ -63951,10 +63948,85 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/: + /api/extras/object-types/: get: - operationId: ipam_aggregates_list - description: Get a list of aggregate objects. + operationId: extras_object_types_list + description: Read-only list of ObjectTypes. + parameters: + - in: query + name: app_label + schema: + type: string + - in: query + name: id + schema: + type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: model + schema: + type: string + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedObjectTypeList' + description: '' + /api/extras/object-types/{id}/: + get: + operationId: extras_object_types_retrieve + description: Read-only list of ObjectTypes. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this object type. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectType' + description: '' + /api/extras/saved-filters/: + get: + operationId: extras_saved_filters_list + description: Get a list of saved filter objects. parameters: - in: query name: created @@ -64024,64 +64096,6 @@ paths: schema: type: string format: uuid - - in: query - name: date_added - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__empty - schema: - type: boolean - - in: query - name: date_added__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - in: query name: description schema: @@ -64167,9 +64181,9 @@ paths: explode: true style: form - in: query - name: family + name: enabled schema: - type: number + type: boolean - in: query name: id schema: @@ -64302,6 +64316,146 @@ paths: schema: type: string format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -64314,54 +64468,53 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: prefix - schema: - type: string - description: Prefix - in: query name: q schema: type: string description: Search - in: query - name: rir + name: shared + schema: + type: boolean + - in: query + name: slug schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir_id + name: slug__ie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: slug__iew schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: tag + name: slug__isw schema: type: array items: @@ -64369,7 +64522,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__n schema: type: array items: @@ -64377,86 +64530,144 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: usable + schema: + type: boolean + - in: query + name: user + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user_id schema: type: array items: type: integer - description: Tenant Group (slug) + nullable: true + description: User (ID) explode: true style: form - in: query - name: tenant_group__n + name: user_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + nullable: true + description: User (ID) explode: true style: form - in: query - name: tenant_group_id + name: weight schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: weight__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: weight__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request + name: weight__lte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64465,21 +64676,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAggregateList' + $ref: '#/components/schemas/PaginatedSavedFilterList' description: '' post: - operationId: ipam_aggregates_create - description: Post a list of aggregate objects. + operationId: extras_saved_filters_create + description: Post a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64489,25 +64700,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_aggregates_bulk_update - description: Put a list of aggregate objects. + operationId: extras_saved_filters_bulk_update + description: Put a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64519,25 +64730,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_aggregates_bulk_partial_update - description: Patch a list of aggregate objects. + operationId: extras_saved_filters_bulk_partial_update + description: Patch a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64549,25 +64760,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_aggregates_bulk_destroy - description: Delete a list of aggregate objects. + operationId: extras_saved_filters_bulk_destroy + description: Delete a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64575,19 +64786,19 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/{id}/: + /api/extras/saved-filters/{id}/: get: - operationId: ipam_aggregates_retrieve - description: Get a aggregate object. + operationId: extras_saved_filters_retrieve + description: Get a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64596,28 +64807,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_aggregates_update - description: Put a aggregate object. + operationId: extras_saved_filters_update + description: Put a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -64627,28 +64838,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_aggregates_partial_update - description: Patch a aggregate object. + operationId: extras_saved_filters_partial_update + description: Patch a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -64657,101 +64868,119 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_aggregates_destroy - description: Delete a aggregate object. + operationId: extras_saved_filters_destroy + description: Delete a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/: + /api/extras/scripts/: get: - operationId: ipam_asn_ranges_list - description: Get a list of ASN range objects. + operationId: extras_scripts_list + description: Get a list of script objects. parameters: - in: query - name: created + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: is_executable + schema: + type: boolean + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: module_id schema: type: array items: - type: string - format: date-time + type: integer + description: Script module (ID) explode: true style: form - in: query - name: created_by_request + name: module_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Script module (ID) + explode: true + style: form - in: query - name: description + name: name schema: type: array items: @@ -64759,11 +64988,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -64771,7 +65000,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -64779,7 +65008,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -64787,7 +65016,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -64795,7 +65024,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -64803,7 +65032,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -64811,7 +65040,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -64819,7 +65048,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -64827,122 +65056,503 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: end + name: q + schema: + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedScriptList' + description: '' + post: + operationId: extras_scripts_create + description: Post a list of script objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + /api/extras/scripts/{id}/: + get: + operationId: extras_scripts_retrieve + description: Get a script object. + parameters: + - in: path + name: id + schema: + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + put: + operationId: extras_scripts_update + description: Put a script object. + parameters: + - in: path + name: id + schema: + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScriptInputRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ScriptInputRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + patch: + operationId: extras_scripts_partial_update + description: Patch a script object. + parameters: + - in: path + name: id + schema: + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedScriptInputRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedScriptInputRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + delete: + operationId: extras_scripts_destroy + description: Delete a script object. + parameters: + - in: path + name: id + schema: + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/subscriptions/: + get: + operationId: extras_subscriptions_list + description: Get a list of subscription objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedSubscriptionList' + description: '' + post: + operationId: extras_subscriptions_create + description: Post a list of subscription objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/SubscriptionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: '' + put: + operationId: extras_subscriptions_bulk_update + description: Put a list of subscription objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SubscriptionRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SubscriptionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Subscription' + description: '' + patch: + operationId: extras_subscriptions_bulk_partial_update + description: Patch a list of subscription objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SubscriptionRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SubscriptionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Subscription' + description: '' + delete: + operationId: extras_subscriptions_bulk_destroy + description: Delete a list of subscription objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SubscriptionRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SubscriptionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/subscriptions/{id}/: + get: + operationId: extras_subscriptions_retrieve + description: Get a subscription object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this subscription. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: '' + put: + operationId: extras_subscriptions_update + description: Put a subscription object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this subscription. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/SubscriptionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/SubscriptionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: '' + patch: + operationId: extras_subscriptions_partial_update + description: Patch a subscription object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this subscription. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedSubscriptionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedSubscriptionRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Subscription' + description: '' + delete: + operationId: extras_subscriptions_destroy + description: Delete a subscription object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this subscription. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/tags/: + get: + operationId: extras_tags_list + description: Get a list of tag objects. + parameters: + - in: query + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__empty + name: color__empty schema: type: boolean - in: query - name: end__gt + name: color__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__gte + name: color__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__lt + name: color__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__lte + name: color__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: end__n + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id + name: color__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: color__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: color__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: color__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: content_type schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: content_type_id schema: type: array items: @@ -64951,7 +65561,7 @@ paths: explode: true style: form - in: query - name: last_updated + name: created schema: type: array items: @@ -64960,7 +65570,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__empty schema: type: array items: @@ -64969,7 +65579,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gt schema: type: array items: @@ -64978,7 +65588,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__gte schema: type: array items: @@ -64987,7 +65597,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lt schema: type: array items: @@ -64996,7 +65606,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__lte schema: type: array items: @@ -65005,7 +65615,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__n schema: type: array items: @@ -65013,19 +65623,13 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - in: query - name: name + name: description schema: type: array items: @@ -65033,11 +65637,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -65045,7 +65649,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -65053,7 +65657,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -65061,7 +65665,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -65069,7 +65673,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -65077,7 +65681,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -65085,7 +65689,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -65093,7 +65697,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -65101,120 +65705,156 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: for_object_type_id schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: id__empty schema: - type: string - description: Search + type: boolean - in: query - name: rir + name: id__gt schema: type: array items: - type: string - description: RIR (slug) + type: integer + format: int32 explode: true style: form - in: query - name: rir__n + name: id__gte schema: type: array items: - type: string - description: RIR (slug) + type: integer + format: int32 explode: true style: form - in: query - name: rir_id + name: id__lt schema: type: array items: type: integer - description: RIR (ID) + format: int32 explode: true style: form - in: query - name: rir_id__n + name: id__lte schema: type: array items: type: integer - description: RIR (ID) + format: int32 explode: true style: form - in: query - name: slug + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: slug__ic + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__ie + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__iew + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__isw + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__n + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: slug__nic + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -65222,7 +65862,11 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -65230,7 +65874,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__ie schema: type: array items: @@ -65238,7 +65882,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__iew schema: type: array items: @@ -65246,65 +65890,88 @@ paths: explode: true style: form - in: query - name: start + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__empty + name: name__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: start__gt + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__gte + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__lt + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start__lte + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: object_types schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: start__n + name: object_types__n schema: type: array items: type: integer - format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -65312,7 +65979,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -65320,77 +65991,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__ie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__iew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__isw schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: slug__niew schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: slug__nisw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -65399,7 +66060,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65408,21 +66069,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNRangeList' + $ref: '#/components/schemas/PaginatedTagList' description: '' post: - operationId: ipam_asn_ranges_create - description: Post a list of ASN range objects. + operationId: extras_tags_create + description: Post a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65432,25 +66093,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_asn_ranges_bulk_update - description: Put a list of ASN range objects. + operationId: extras_tags_bulk_update + description: Put a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65462,25 +66123,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_asn_ranges_bulk_partial_update - description: Patch a list of ASN range objects. + operationId: extras_tags_bulk_partial_update + description: Patch a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65492,25 +66153,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_asn_ranges_bulk_destroy - description: Delete a list of ASN range objects. + operationId: extras_tags_bulk_destroy + description: Delete a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65518,19 +66179,19 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/: + /api/extras/tags/{id}/: get: - operationId: ipam_asn_ranges_retrieve - description: Get a ASN range object. + operationId: extras_tags_retrieve + description: Get a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65539,28 +66200,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_asn_ranges_update - description: Put a ASN range object. + operationId: extras_tags_update + description: Put a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -65570,28 +66231,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_asn_ranges_partial_update - description: Patch a ASN range object. + operationId: extras_tags_partial_update + description: Patch a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedTagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedTagRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -65600,147 +66261,113 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_asn_ranges_destroy - description: Delete a ASN range object. + operationId: extras_tags_destroy + description: Delete a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/available-asns/: - get: - operationId: ipam_asn_ranges_available_asns_list - description: Get a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableASN' - description: '' - post: - operationId: ipam_asn_ranges_available_asns_create - description: Post a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - /api/ipam/asns/: + /api/extras/webhooks/: get: - operationId: ipam_asns_list - description: Get a list of ASN objects. + operationId: extras_webhooks_list + description: Get a list of webhook objects. parameters: - in: query - name: asn + name: ca_file_path schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__empty + name: ca_file_path__empty schema: type: boolean - in: query - name: asn__gt + name: ca_file_path__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__gte + name: ca_file_path__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lt + name: ca_file_path__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lte + name: ca_file_path__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__n + name: ca_file_path__n schema: type: array items: - type: integer - format: int32 + type: string + explode: true + style: form + - in: query + name: ca_file_path__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -65895,6 +66522,108 @@ paths: type: string explode: true style: form + - in: query + name: http_content_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__empty + schema: + type: boolean + - in: query + name: http_content_type__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_method + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: http_method__n + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form - in: query name: id schema: @@ -66027,133 +66756,137 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: provider + name: name schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: name__ie schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: name__iew schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: q + name: name__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: rir + name: name__n schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: name__nic schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir_id + name: name__nie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: name__niew schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: site + name: name__nisw schema: type: array items: type: string - description: Site (slug) explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site__n + name: payload_url schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_id + name: q + schema: + type: string + description: Search + - in: query + name: secret schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: secret__empty + schema: + type: boolean + - in: query + name: secret__ic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: secret__ie schema: type: array items: @@ -66161,7 +66894,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: secret__iew schema: type: array items: @@ -66169,77 +66902,71 @@ paths: explode: true style: form - in: query - name: tenant + name: secret__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: secret__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: secret__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: secret__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: secret__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: secret__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: ssl_verification + schema: + type: boolean + - in: query + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -66248,7 +66975,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -66257,21 +66984,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNList' + $ref: '#/components/schemas/PaginatedWebhookList' description: '' post: - operationId: ipam_asns_create - description: Post a list of ASN objects. + operationId: extras_webhooks_create + description: Post a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66281,25 +67008,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_asns_bulk_update - description: Put a list of ASN objects. + operationId: extras_webhooks_bulk_update + description: Put a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66311,25 +67038,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_asns_bulk_partial_update - description: Patch a list of ASN objects. + operationId: extras_webhooks_bulk_partial_update + description: Patch a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66341,25 +67068,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_asns_bulk_destroy - description: Delete a list of ASN objects. + operationId: extras_webhooks_bulk_destroy + description: Delete a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66367,19 +67094,19 @@ paths: responses: '204': description: No response body - /api/ipam/asns/{id}/: + /api/extras/webhooks/{id}/: get: - operationId: ipam_asns_retrieve - description: Get a ASN object. + operationId: extras_webhooks_retrieve + description: Get a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -66388,28 +67115,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_asns_update - description: Put a ASN object. + operationId: extras_webhooks_update + description: Put a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -66419,28 +67146,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_asns_partial_update - description: Patch a ASN object. + operationId: extras_webhooks_partial_update + description: Patch a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -66449,30 +67176,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_asns_destroy - description: Delete a ASN object. + operationId: extras_webhooks_destroy + description: Delete a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/: + /api/ipam/aggregates/: get: - operationId: ipam_fhrp_group_assignments_list - description: Get a list of FHRP group assignment objects. + operationId: ipam_aggregates_list + description: Get a list of aggregate objects. parameters: - in: query name: created @@ -66543,100 +67270,153 @@ paths: type: string format: uuid - in: query - name: device + name: date_added schema: type: array items: type: string + format: date explode: true style: form - in: query - name: device_id + name: date_added__empty + schema: + type: boolean + - in: query + name: date_added__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date explode: true style: form - in: query - name: group_id + name: date_added__gte schema: type: array items: - type: integer - description: Group (ID) + type: string + format: date explode: true style: form - in: query - name: group_id__n + name: date_added__lt schema: type: array items: - type: integer - description: Group (ID) + type: string + format: date explode: true style: form - in: query - name: id + name: date_added__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date explode: true style: form - in: query - name: id__empty + name: date_added__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_id + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number + - in: query + name: id schema: type: array items: @@ -66645,11 +67425,11 @@ paths: explode: true style: form - in: query - name: interface_id__empty + name: id__empty schema: type: boolean - in: query - name: interface_id__gt + name: id__gt schema: type: array items: @@ -66658,7 +67438,7 @@ paths: explode: true style: form - in: query - name: interface_id__gte + name: id__gte schema: type: array items: @@ -66667,7 +67447,7 @@ paths: explode: true style: form - in: query - name: interface_id__lt + name: id__lt schema: type: array items: @@ -66676,7 +67456,7 @@ paths: explode: true style: form - in: query - name: interface_id__lte + name: id__lte schema: type: array items: @@ -66685,7 +67465,7 @@ paths: explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: @@ -66693,14 +67473,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_type - schema: - type: string - - in: query - name: interface_type__n - schema: - type: string - in: query name: last_updated schema: @@ -66788,70 +67560,87 @@ paths: schema: type: string - in: query - name: priority + name: prefix + schema: + type: string + description: Prefix + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rir schema: type: array items: - type: integer - format: int32 + type: string + description: RIR (slug) explode: true style: form - in: query - name: priority__empty + name: rir__n schema: - type: boolean + type: array + items: + type: string + description: RIR (slug) + explode: true + style: form - in: query - name: priority__gt + name: rir_id schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: priority__gte + name: rir_id__n schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: priority__lt + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: priority__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: priority__n + name: tenant schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: updated_by_request + name: tenant__n schema: - type: string - format: uuid + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: virtual_machine + name: tenant_group schema: type: array items: @@ -66859,14 +67648,54 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - ipam security: @@ -66877,21 +67706,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' + $ref: '#/components/schemas/PaginatedAggregateList' description: '' post: - operationId: ipam_fhrp_group_assignments_create - description: Post a list of FHRP group assignment objects. + operationId: ipam_aggregates_create + description: Post a list of aggregate objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -66901,11 +67730,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_fhrp_group_assignments_bulk_update - description: Put a list of FHRP group assignment objects. + operationId: ipam_aggregates_bulk_update + description: Put a list of aggregate objects. tags: - ipam requestBody: @@ -66914,12 +67743,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -66931,11 +67760,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_fhrp_group_assignments_bulk_partial_update - description: Patch a list of FHRP group assignment objects. + operationId: ipam_aggregates_bulk_partial_update + description: Patch a list of aggregate objects. tags: - ipam requestBody: @@ -66944,12 +67773,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -66961,11 +67790,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_fhrp_group_assignments_bulk_destroy - description: Delete a list of FHRP group assignment objects. + operationId: ipam_aggregates_bulk_destroy + description: Delete a list of aggregate objects. tags: - ipam requestBody: @@ -66974,12 +67803,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -66987,16 +67816,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/{id}/: + /api/ipam/aggregates/{id}/: get: - operationId: ipam_fhrp_group_assignments_retrieve - description: Get a FHRP group assignment object. + operationId: ipam_aggregates_retrieve + description: Get a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67008,17 +67837,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_fhrp_group_assignments_update - description: Put a FHRP group assignment object. + operationId: ipam_aggregates_update + description: Put a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67026,10 +67855,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -67039,17 +67868,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_fhrp_group_assignments_partial_update - description: Patch a FHRP group assignment object. + operationId: ipam_aggregates_partial_update + description: Patch a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67057,10 +67886,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67069,17 +67898,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_fhrp_group_assignments_destroy - description: Delete a FHRP group assignment object. + operationId: ipam_aggregates_destroy + description: Delete a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -67089,115 +67918,11 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/: + /api/ipam/asn-ranges/: get: - operationId: ipam_fhrp_groups_list - description: Get a list of FHRP group objects. + operationId: ipam_asn_ranges_list + description: Get a list of ASN range objects. parameters: - - in: query - name: auth_key - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__empty - schema: - type: boolean - - in: query - name: auth_key__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form - in: query name: created schema: @@ -67351,7 +68076,7 @@ paths: explode: true style: form - in: query - name: group_id + name: end schema: type: array items: @@ -67360,11 +68085,11 @@ paths: explode: true style: form - in: query - name: group_id__empty + name: end__empty schema: type: boolean - in: query - name: group_id__gt + name: end__gt schema: type: array items: @@ -67373,7 +68098,7 @@ paths: explode: true style: form - in: query - name: group_id__gte + name: end__gte schema: type: array items: @@ -67382,7 +68107,7 @@ paths: explode: true style: form - in: query - name: group_id__lt + name: end__lt schema: type: array items: @@ -67391,7 +68116,7 @@ paths: explode: true style: form - in: query - name: group_id__lte + name: end__lte schema: type: array items: @@ -67400,7 +68125,7 @@ paths: explode: true style: form - in: query - name: group_id__n + name: end__n schema: type: array items: @@ -67637,36 +68362,188 @@ paths: schema: type: string - in: query - name: protocol + name: q + schema: + type: string + description: Search + - in: query + name: rir schema: type: array items: type: string - x-spec-enum-id: 40dc831c689b4b78 + description: RIR (slug) explode: true style: form - in: query - name: protocol__n + name: rir__n schema: type: array items: type: string - x-spec-enum-id: 40dc831c689b4b78 + description: RIR (slug) explode: true style: form - in: query - name: q + name: rir_id schema: - type: string - description: Search + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form - in: query - name: related_ip + name: rir_id__n + schema: + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: start + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__empty + schema: + type: boolean + - in: query + name: start__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: tag schema: @@ -67683,6 +68560,76 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -67698,21 +68645,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupList' + $ref: '#/components/schemas/PaginatedASNRangeList' description: '' post: - operationId: ipam_fhrp_groups_create - description: Post a list of FHRP group objects. + operationId: ipam_asn_ranges_create + description: Post a list of ASN range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67722,11 +68669,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_fhrp_groups_bulk_update - description: Put a list of FHRP group objects. + operationId: ipam_asn_ranges_bulk_update + description: Put a list of ASN range objects. tags: - ipam requestBody: @@ -67735,12 +68682,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67752,11 +68699,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_fhrp_groups_bulk_partial_update - description: Patch a list of FHRP group objects. + operationId: ipam_asn_ranges_bulk_partial_update + description: Patch a list of ASN range objects. tags: - ipam requestBody: @@ -67765,12 +68712,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67782,11 +68729,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_fhrp_groups_bulk_destroy - description: Delete a list of FHRP group objects. + operationId: ipam_asn_ranges_bulk_destroy + description: Delete a list of ASN range objects. tags: - ipam requestBody: @@ -67795,12 +68742,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67808,16 +68755,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/{id}/: + /api/ipam/asn-ranges/{id}/: get: - operationId: ipam_fhrp_groups_retrieve - description: Get a FHRP group object. + operationId: ipam_asn_ranges_retrieve + description: Get a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67829,17 +68776,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_fhrp_groups_update - description: Put a FHRP group object. + operationId: ipam_asn_ranges_update + description: Put a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67847,10 +68794,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -67860,17 +68807,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_fhrp_groups_partial_update - description: Patch a FHRP group object. + operationId: ipam_asn_ranges_partial_update + description: Patch a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67878,10 +68825,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67890,17 +68837,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_fhrp_groups_destroy - description: Delete a FHRP group object. + operationId: ipam_asn_ranges_destroy + description: Delete a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -67910,26 +68857,73 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/: + /api/ipam/asn-ranges/{id}/available-asns/: get: - operationId: ipam_ip_addresses_list - description: Get a list of IP address objects. + operationId: ipam_asn_ranges_available_asns_list + description: Get a ASN object. parameters: - - in: query - name: address + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: assigned + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableASN' + description: '' + post: + operationId: ipam_asn_ranges_available_asns_create + description: Post a ASN object. + parameters: + - in: path + name: id schema: - type: boolean - description: Is assigned + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASN' + description: '' + /api/ipam/asns/: + get: + operationId: ipam_asns_list + description: Get a list of ASN objects. + parameters: - in: query - name: assigned_object_id + name: asn schema: type: array items: @@ -67938,11 +68932,11 @@ paths: explode: true style: form - in: query - name: assigned_object_id__empty + name: asn__empty schema: type: boolean - in: query - name: assigned_object_id__gt + name: asn__gt schema: type: array items: @@ -67951,7 +68945,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__gte + name: asn__gte schema: type: array items: @@ -67960,7 +68954,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lt + name: asn__lt schema: type: array items: @@ -67969,7 +68963,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lte + name: asn__lte schema: type: array items: @@ -67978,7 +68972,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__n + name: asn__n schema: type: array items: @@ -67986,19 +68980,6 @@ paths: format: int32 explode: true style: form - - in: query - name: assigned_object_type - schema: - type: integer - - in: query - name: assigned_object_type__n - schema: - type: integer - - in: query - name: assigned_to_interface - schema: - type: boolean - description: Is assigned to an interface - in: query name: created schema: @@ -68151,129 +69132,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: dns_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__empty - schema: - type: boolean - - in: query - name: dns_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: family - schema: - type: number - - in: query - name: fhrpgroup_id - schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form - - in: query - name: fhrpgroup_id__n - schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form - in: query name: id schema: @@ -68332,42 +69190,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -68437,46 +69259,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: nat_inside_id - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - in: query - name: nat_inside_id__n - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - name: offset required: false in: query @@ -68490,181 +69277,120 @@ paths: schema: type: string - in: query - name: parent - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: provider schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP + description: Provider (slug) explode: true style: form - in: query - name: role__n + name: provider__n schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP + description: Provider (slug) explode: true style: form - in: query - name: service_id + name: provider_id schema: type: array items: type: integer - description: Service (ID) + description: Provider (ID) explode: true style: form - in: query - name: service_id__n + name: provider_id__n schema: type: array items: type: integer - description: Service (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string + description: Provider (ID) explode: true style: form - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tenant + name: rir schema: type: array items: type: string - description: Tenant (slug) + description: RIR (slug) explode: true style: form - in: query - name: tenant__n + name: rir__n schema: type: array items: type: string - description: Tenant (slug) + description: RIR (slug) explode: true style: form - in: query - name: tenant_group + name: rir_id schema: type: array items: type: integer - description: Tenant Group (slug) + description: RIR (ID) explode: true style: form - in: query - name: tenant_group__n + name: rir_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + description: RIR (ID) explode: true style: form - in: query - name: tenant_group_id + name: site schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + description: Site (slug) explode: true style: form - in: query - name: tenant_group_id__n + name: site__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + description: Site (slug) explode: true style: form - in: query - name: tenant_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: tenant_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: tag schema: type: array items: @@ -68672,92 +69398,88 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: vminterface + name: tenant schema: type: array items: type: string - description: VM interface (name) + description: Tenant (slug) explode: true style: form - in: query - name: vminterface__n + name: tenant__n schema: type: array items: type: string - description: VM interface (name) + description: Tenant (slug) explode: true style: form - in: query - name: vminterface_id + name: tenant_group schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: tenant_group__n schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vrf + name: tenant_group_id schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tenant_group_id__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: tenant_id schema: type: array items: type: integer nullable: true - description: VRF + description: Tenant (ID) explode: true style: form - in: query - name: vrf_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: VRF + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - ipam security: @@ -68768,21 +69490,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPAddressList' + $ref: '#/components/schemas/PaginatedASNList' description: '' post: - operationId: ipam_ip_addresses_create - description: Post a list of IP address objects. + operationId: ipam_asns_create + description: Post a list of ASN objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68792,11 +69514,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_ip_addresses_bulk_update - description: Put a list of IP address objects. + operationId: ipam_asns_bulk_update + description: Put a list of ASN objects. tags: - ipam requestBody: @@ -68805,12 +69527,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68822,11 +69544,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_ip_addresses_bulk_partial_update - description: Patch a list of IP address objects. + operationId: ipam_asns_bulk_partial_update + description: Patch a list of ASN objects. tags: - ipam requestBody: @@ -68835,12 +69557,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68852,11 +69574,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_ip_addresses_bulk_destroy - description: Delete a list of IP address objects. + operationId: ipam_asns_bulk_destroy + description: Delete a list of ASN objects. tags: - ipam requestBody: @@ -68865,12 +69587,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68878,16 +69600,16 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/{id}/: + /api/ipam/asns/{id}/: get: - operationId: ipam_ip_addresses_retrieve - description: Get a IP address object. + operationId: ipam_asns_retrieve + description: Get a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68899,17 +69621,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_ip_addresses_update - description: Put a IP address object. + operationId: ipam_asns_update + description: Put a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68917,10 +69639,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -68930,17 +69652,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_ip_addresses_partial_update - description: Patch a IP address object. + operationId: ipam_asns_partial_update + description: Patch a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68948,10 +69670,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedASNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -68960,17 +69682,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_ip_addresses_destroy - description: Delete a IP address object. + operationId: ipam_asns_destroy + description: Delete a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -68980,16 +69702,11 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/: + /api/ipam/fhrp-group-assignments/: get: - operationId: ipam_ip_ranges_list - description: Get a list of IP range objects. + operationId: ipam_fhrp_group_assignments_list + description: Get a list of FHRP group assignment objects. parameters: - - in: query - name: contains - schema: - type: string - description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -69059,7 +69776,7 @@ paths: type: string format: uuid - in: query - name: description + name: device schema: type: array items: @@ -69067,95 +69784,92 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: device_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: group_id schema: type: array items: - type: string + type: integer + description: Group (ID) explode: true style: form - in: query - name: description__iew + name: group_id__n schema: type: array items: - type: string + type: integer + description: Group (ID) explode: true style: form - in: query - name: description__isw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: end_address + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: interface_id schema: type: array items: @@ -69164,11 +69878,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: interface_id__empty schema: type: boolean - in: query - name: id__gt + name: interface_id__gt schema: type: array items: @@ -69177,7 +69891,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: interface_id__gte schema: type: array items: @@ -69186,7 +69900,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: interface_id__lt schema: type: array items: @@ -69195,7 +69909,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: interface_id__lte schema: type: array items: @@ -69204,7 +69918,7 @@ paths: explode: true style: form - in: query - name: id__n + name: interface_id__n schema: type: array items: @@ -69212,6 +69926,14 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_type + schema: + type: string + - in: query + name: interface_type__n + schema: + type: string - in: query name: last_updated schema: @@ -69281,10 +70003,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_utilized - schema: - type: boolean - in: query name: modified_by_request schema: @@ -69303,58 +70021,38 @@ paths: schema: type: string - in: query - name: parent - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: priority schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: priority__empty schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + type: boolean - in: query - name: role_id + name: priority__gt schema: type: array items: type: integer - nullable: true - description: Role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: priority__gte schema: type: array items: type: integer - nullable: true - description: Role (ID) + format: int32 explode: true style: form - in: query - name: size + name: priority__lt schema: type: array items: @@ -69363,11 +70061,7 @@ paths: explode: true style: form - in: query - name: size__empty - schema: - type: boolean - - in: query - name: size__gt + name: priority__lte schema: type: array items: @@ -69376,7 +70070,7 @@ paths: explode: true style: form - in: query - name: size__gte + name: priority__n schema: type: array items: @@ -69385,25 +70079,20 @@ paths: explode: true style: form - in: query - name: size__lt + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: size__lte + name: virtual_machine schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: virtual_machine_id schema: type: array items: @@ -69411,171 +70100,6 @@ paths: format: int32 explode: true style: form - - in: query - name: start_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form tags: - ipam security: @@ -69586,21 +70110,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPRangeList' + $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' description: '' post: - operationId: ipam_ip_ranges_create - description: Post a list of IP range objects. + operationId: ipam_fhrp_group_assignments_create + description: Post a list of FHRP group assignment objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69610,11 +70134,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: ipam_ip_ranges_bulk_update - description: Put a list of IP range objects. + operationId: ipam_fhrp_group_assignments_bulk_update + description: Put a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -69623,12 +70147,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69640,11 +70164,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: ipam_ip_ranges_bulk_partial_update - description: Patch a list of IP range objects. + operationId: ipam_fhrp_group_assignments_bulk_partial_update + description: Patch a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -69653,12 +70177,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69670,11 +70194,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: ipam_ip_ranges_bulk_destroy - description: Delete a list of IP range objects. + operationId: ipam_fhrp_group_assignments_bulk_destroy + description: Delete a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -69683,12 +70207,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69696,16 +70220,16 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/: + /api/ipam/fhrp-group-assignments/{id}/: get: - operationId: ipam_ip_ranges_retrieve - description: Get a IP range object. + operationId: ipam_fhrp_group_assignments_retrieve + description: Get a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69717,17 +70241,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: ipam_ip_ranges_update - description: Put a IP range object. + operationId: ipam_fhrp_group_assignments_update + description: Put a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69735,10 +70259,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -69748,17 +70272,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: ipam_ip_ranges_partial_update - description: Patch a IP range object. + operationId: ipam_fhrp_group_assignments_partial_update + description: Patch a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69766,10 +70290,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -69778,17 +70302,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: ipam_ip_ranges_destroy - description: Delete a IP range object. + operationId: ipam_fhrp_group_assignments_destroy + description: Delete a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -69798,195 +70322,117 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/available-ips/: - get: - operationId: ipam_ip_ranges_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_ip_ranges_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/: + /api/ipam/fhrp-groups/: get: - operationId: ipam_prefixes_list - description: Get a list of prefix objects. + operationId: ipam_fhrp_groups_list + description: Get a list of FHRP group objects. parameters: - in: query - name: children + name: auth_key schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__empty + name: auth_key__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: children__gt + name: auth_key__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__gte + name: auth_key__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__lt + name: auth_key__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__lte + name: auth_key__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: children__n + name: auth_key__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: contains - schema: - type: string - description: Prefixes which contain this prefix or IP - - in: query - name: created + name: auth_key__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: auth_key__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: auth_key__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: auth_key__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: auth_type schema: type: array items: type: string - format: date-time + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type explode: true style: form - in: query - name: created__lte + name: auth_type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type explode: true style: form - in: query - name: created__n + name: created schema: type: array items: @@ -69995,73 +70441,64 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: depth + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__empty + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__gt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__gte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__lt + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__lte + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: depth__n + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query name: description schema: @@ -70147,11 +70584,7 @@ paths: explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: group_id schema: type: array items: @@ -70160,11 +70593,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: group_id__empty schema: type: boolean - in: query - name: id__gt + name: group_id__gt schema: type: array items: @@ -70173,7 +70606,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: group_id__gte schema: type: array items: @@ -70182,7 +70615,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: group_id__lt schema: type: array items: @@ -70191,7 +70624,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: group_id__lte schema: type: array items: @@ -70200,7 +70633,7 @@ paths: explode: true style: form - in: query - name: id__n + name: group_id__n schema: type: array items: @@ -70209,84 +70642,20 @@ paths: explode: true style: form - in: query - name: is_pool - schema: - type: boolean - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: mark_utilized + name: id__empty schema: type: boolean - in: query - name: mask_length + name: id__gt schema: type: array items: @@ -70295,221 +70664,145 @@ paths: explode: true style: form - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: prefix - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: id__gte schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region__n + name: id__lt schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: id__lte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: region_id__n + name: id__n schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: role + name: last_updated schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role__n + name: last_updated__empty schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) + format: date-time explode: true style: form - in: query - name: role_id__n + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: site + name: last_updated__gte schema: type: array items: type: string - description: Site (slug) + format: date-time explode: true style: form - in: query - name: site__n + name: last_updated__lt schema: type: array items: type: string - description: Site (slug) + format: date-time explode: true style: form - in: query - name: site_group + name: last_updated__lte schema: type: array items: - type: integer - description: Site group (slug) + type: string + format: date-time explode: true style: form - in: query - name: site_group__n + name: last_updated__n schema: type: array items: - type: integer - description: Site group (slug) + type: string + format: date-time explode: true style: form - - in: query - name: site_group_id + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: integer - in: query - name: site_group_id__n + name: modified_by_request schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: site_id + name: name schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: name__empty schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: boolean - in: query - name: status + name: name__ic schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: status__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: tag + name: name__iew schema: type: array items: @@ -70517,7 +70810,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__isw schema: type: array items: @@ -70525,191 +70818,109 @@ paths: explode: true style: form - in: query - name: tenant + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nic schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) explode: true style: form - in: query - name: tenant_group_id + name: name__nie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: name__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: name__nisw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - - in: query - name: tenant_id__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: vlan_id + name: protocol schema: type: array items: - type: integer - nullable: true - description: VLAN (ID) + type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: vlan_id__n + name: protocol__n schema: type: array items: - type: integer - nullable: true - description: VLAN (ID) + type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n + name: q schema: - type: integer - description: VLAN number (1-4094) + type: string + description: Search - in: query - name: vrf + name: related_ip schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF explode: true style: form - in: query - name: vrf_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: VRF + type: string explode: true style: form - in: query - name: within - schema: - type: string - description: Within prefix - - in: query - name: within_include + name: updated_by_request schema: type: string - description: Within and including prefix + format: uuid tags: - ipam security: @@ -70720,21 +70931,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPrefixList' + $ref: '#/components/schemas/PaginatedFHRPGroupList' description: '' post: - operationId: ipam_prefixes_create - description: Post a list of prefix objects. + operationId: ipam_fhrp_groups_create + description: Post a list of FHRP group objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70744,11 +70955,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: ipam_prefixes_bulk_update - description: Put a list of prefix objects. + operationId: ipam_fhrp_groups_bulk_update + description: Put a list of FHRP group objects. tags: - ipam requestBody: @@ -70757,12 +70968,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70774,11 +70985,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: ipam_prefixes_bulk_partial_update - description: Patch a list of prefix objects. + operationId: ipam_fhrp_groups_bulk_partial_update + description: Patch a list of FHRP group objects. tags: - ipam requestBody: @@ -70787,12 +70998,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70804,11 +71015,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: ipam_prefixes_bulk_destroy - description: Delete a list of prefix objects. + operationId: ipam_fhrp_groups_bulk_destroy + description: Delete a list of FHRP group objects. tags: - ipam requestBody: @@ -70817,12 +71028,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70830,16 +71041,16 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/: + /api/ipam/fhrp-groups/{id}/: get: - operationId: ipam_prefixes_retrieve - description: Get a prefix object. + operationId: ipam_fhrp_groups_retrieve + description: Get a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70851,17 +71062,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: ipam_prefixes_update - description: Put a prefix object. + operationId: ipam_fhrp_groups_update + description: Put a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70869,10 +71080,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -70882,17 +71093,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: ipam_prefixes_partial_update - description: Patch a prefix object. + operationId: ipam_fhrp_groups_partial_update + description: Patch a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70900,10 +71111,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -70912,17 +71123,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: ipam_prefixes_destroy - description: Delete a prefix object. + operationId: ipam_fhrp_groups_destroy + description: Delete a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -70932,144 +71143,108 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/available-ips/: - get: - operationId: ipam_prefixes_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_prefixes_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/{id}/available-prefixes/: - get: - operationId: ipam_prefixes_available_prefixes_list - description: Get a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailablePrefix' - description: '' - post: - operationId: ipam_prefixes_available_prefixes_create - description: Post a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - /api/ipam/rirs/: + /api/ipam/ip-addresses/: get: - operationId: ipam_rirs_list - description: Get a list of RIR objects. + operationId: ipam_ip_addresses_list + description: Get a list of IP address objects. parameters: - in: query - name: created + name: address schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: assigned schema: - type: array + type: boolean + description: Is assigned + - in: query + name: assigned_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__empty + schema: + type: boolean + - in: query + name: assigned_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_type + schema: + type: integer + - in: query + name: assigned_object_type__n + schema: + type: integer + - in: query + name: assigned_to_interface + schema: + type: boolean + description: Is assigned to an interface + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array items: type: string format: date-time @@ -71209,6 +71384,129 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: dns_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__empty + schema: + type: boolean + - in: query + name: dns_name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number + - in: query + name: fhrpgroup_id + schema: + type: array + items: + type: integer + description: FHRP group (ID) + explode: true + style: form + - in: query + name: fhrpgroup_id__n + schema: + type: array + items: + type: integer + description: FHRP group (ID) + explode: true + style: form - in: query name: id schema: @@ -71268,9 +71566,41 @@ paths: explode: true style: form - in: query - name: is_private + name: interface schema: - type: boolean + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -71340,25 +71670,60 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mask_length + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: name + name: nat_inside_id schema: type: array items: - type: string + type: integer + description: NAT inside IP address (ID) explode: true style: form - in: query - name: name__empty + name: nat_inside_id__n schema: - type: boolean + type: array + items: + type: integer + description: NAT inside IP address (ID) + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name__ic + name: parent schema: type: array items: @@ -71366,55 +71731,78 @@ paths: explode: true style: form - in: query - name: name__ie + name: present_in_vrf + schema: + type: string + - in: query + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP explode: true style: form - in: query - name: name__iew + name: role__n schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP explode: true style: form - in: query - name: name__isw + name: service_id schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__n + name: service_id__n schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__nic + name: status schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__nie + name: status__n schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__niew + name: tag schema: type: array items: @@ -71422,44 +71810,41 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tag__n schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: tenant schema: - type: string - description: Search + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: slug + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__empty + name: tenant_group schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: tenant_group__n schema: type: array items: @@ -71467,7 +71852,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: tenant_group_id schema: type: array items: @@ -71475,7 +71860,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tenant_group_id__n schema: type: array items: @@ -71483,23 +71868,32 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__nic + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -71507,50 +71901,92 @@ paths: explode: true style: form - in: query - name: slug__nie + name: virtual_machine_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__niew + name: vminterface schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: slug__nisw + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: tag + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tag__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: updated_by_request + name: vrf_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form tags: - ipam security: @@ -71561,21 +71997,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRIRList' + $ref: '#/components/schemas/PaginatedIPAddressList' description: '' post: - operationId: ipam_rirs_create - description: Post a list of RIR objects. + operationId: ipam_ip_addresses_create + description: Post a list of IP address objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -71585,11 +72021,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: ipam_rirs_bulk_update - description: Put a list of RIR objects. + operationId: ipam_ip_addresses_bulk_update + description: Put a list of IP address objects. tags: - ipam requestBody: @@ -71598,12 +72034,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -71615,11 +72051,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: ipam_rirs_bulk_partial_update - description: Patch a list of RIR objects. + operationId: ipam_ip_addresses_bulk_partial_update + description: Patch a list of IP address objects. tags: - ipam requestBody: @@ -71628,12 +72064,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -71645,11 +72081,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: ipam_rirs_bulk_destroy - description: Delete a list of RIR objects. + operationId: ipam_ip_addresses_bulk_destroy + description: Delete a list of IP address objects. tags: - ipam requestBody: @@ -71658,12 +72094,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -71671,16 +72107,16 @@ paths: responses: '204': description: No response body - /api/ipam/rirs/{id}/: + /api/ipam/ip-addresses/{id}/: get: - operationId: ipam_rirs_retrieve - description: Get a RIR object. + operationId: ipam_ip_addresses_retrieve + description: Get a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71692,17 +72128,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: ipam_rirs_update - description: Put a RIR object. + operationId: ipam_ip_addresses_update + description: Put a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71710,10 +72146,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -71723,17 +72159,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: ipam_rirs_partial_update - description: Patch a RIR object. + operationId: ipam_ip_addresses_partial_update + description: Patch a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71741,10 +72177,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -71753,17 +72189,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: ipam_rirs_destroy - description: Delete a RIR object. + operationId: ipam_ip_addresses_destroy + description: Delete a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -71773,11 +72209,16 @@ paths: responses: '204': description: No response body - /api/ipam/roles/: + /api/ipam/ip-ranges/: get: - operationId: ipam_roles_list - description: Get a list of role objects. + operationId: ipam_ip_ranges_list + description: Get a list of IP range objects. parameters: + - in: query + name: contains + schema: + type: string + description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -71930,6 +72371,18 @@ paths: type: string explode: true style: form + - in: query + name: end_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number - in: query name: id schema: @@ -72057,13 +72510,29 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: parent schema: type: array items: @@ -72071,112 +72540,108 @@ paths: explode: true style: form - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__ie + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__iew + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__isw + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__n + name: size schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: size__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: size__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: size__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: slug + name: size__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: start_address schema: type: array items: @@ -72184,23 +72649,27 @@ paths: explode: true style: form - in: query - name: slug__ie + name: status schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__iew + name: status__n schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: slug__isw + name: tag schema: type: array items: @@ -72208,7 +72677,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tag__n schema: type: array items: @@ -72216,23 +72685,25 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group schema: type: array items: @@ -72240,7 +72711,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -72248,7 +72719,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -72256,7 +72727,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: @@ -72264,66 +72735,70 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: tenant_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: weight__gte + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: weight__lt + name: vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: weight__lte + name: vrf_id schema: type: array items: type: integer - format: int32 + nullable: true + description: VRF explode: true style: form - in: query - name: weight__n + name: vrf_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: VRF explode: true style: form tags: @@ -72336,21 +72811,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRoleList' + $ref: '#/components/schemas/PaginatedIPRangeList' description: '' post: - operationId: ipam_roles_create - description: Post a list of role objects. + operationId: ipam_ip_ranges_create + description: Post a list of IP range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -72360,11 +72835,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: ipam_roles_bulk_update - description: Put a list of role objects. + operationId: ipam_ip_ranges_bulk_update + description: Put a list of IP range objects. tags: - ipam requestBody: @@ -72373,12 +72848,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -72390,11 +72865,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: ipam_roles_bulk_partial_update - description: Patch a list of role objects. + operationId: ipam_ip_ranges_bulk_partial_update + description: Patch a list of IP range objects. tags: - ipam requestBody: @@ -72403,12 +72878,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -72420,11 +72895,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: ipam_roles_bulk_destroy - description: Delete a list of role objects. + operationId: ipam_ip_ranges_bulk_destroy + description: Delete a list of IP range objects. tags: - ipam requestBody: @@ -72433,12 +72908,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -72446,16 +72921,16 @@ paths: responses: '204': description: No response body - /api/ipam/roles/{id}/: + /api/ipam/ip-ranges/{id}/: get: - operationId: ipam_roles_retrieve - description: Get a role object. + operationId: ipam_ip_ranges_retrieve + description: Get a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72467,17 +72942,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: ipam_roles_update - description: Put a role object. + operationId: ipam_ip_ranges_update + description: Put a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72485,10 +72960,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -72498,17 +72973,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: ipam_roles_partial_update - description: Patch a role object. + operationId: ipam_ip_ranges_partial_update + description: Patch a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72516,10 +72991,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -72528,17 +73003,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: ipam_roles_destroy - description: Delete a role object. + operationId: ipam_ip_ranges_destroy + description: Delete a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -72548,389 +73023,420 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/: + /api/ipam/ip-ranges/{id}/available-ips/: get: - operationId: ipam_route_targets_list - description: Get a list of route target objects. + operationId: ipam_ip_ranges_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_ip_ranges_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/: + get: + operationId: ipam_prefixes_list + description: Get a list of prefix objects. parameters: - in: query - name: created + name: children schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: children__empty schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: children__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: children__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: children__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: children__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: children__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: contains schema: type: string - format: uuid + description: Prefixes which contain this prefix or IP - in: query - name: description + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: depth__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: exporting_l2vpn + name: depth__gte schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: exporting_l2vpn__n + name: depth__lt schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: exporting_l2vpn_id + name: depth__lte schema: type: array items: type: integer - description: Exporting L2VPN + format: int32 explode: true style: form - in: query - name: exporting_l2vpn_id__n + name: depth__n schema: type: array items: type: integer - description: Exporting L2VPN + format: int32 explode: true style: form - in: query - name: exporting_vrf + name: description schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) explode: true style: form - in: query - name: exporting_vrf__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) explode: true style: form - in: query - name: exporting_vrf_id + name: description__ie schema: type: array items: - type: integer - description: Exporting VRF + type: string explode: true style: form - in: query - name: exporting_vrf_id__n + name: description__iew schema: type: array items: - type: integer - description: Exporting VRF + type: string explode: true style: form - in: query - name: id + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: importing_l2vpn + name: family schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form + type: number - in: query - name: importing_l2vpn__n + name: id schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: importing_l2vpn_id + name: id__empty schema: - type: array - items: - type: integer - description: Importing L2VPN - explode: true - style: form + type: boolean - in: query - name: importing_l2vpn_id__n + name: id__gt schema: type: array items: type: integer - description: Importing L2VPN + format: int32 explode: true style: form - in: query - name: importing_vrf + name: id__gte schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: importing_vrf__n + name: id__lt schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: importing_vrf_id + name: id__lte schema: type: array items: type: integer - description: Importing VRF + format: int32 explode: true style: form - in: query - name: importing_vrf_id__n + name: id__n schema: type: array items: type: integer - description: Importing VRF + format: int32 explode: true style: form + - in: query + name: is_pool + schema: + type: boolean - in: query name: last_updated schema: @@ -73000,13 +73506,46 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean + - in: query + name: mask_length + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number - in: query name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: prefix schema: type: array items: @@ -73014,11 +73553,20 @@ paths: explode: true style: form - in: query - name: name__empty + name: present_in_vrf schema: - type: boolean + type: string - in: query - name: name__ic + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -73026,7 +73574,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: region__n schema: type: array items: @@ -73034,7 +73582,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: region_id schema: type: array items: @@ -73042,7 +73590,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: region_id__n schema: type: array items: @@ -73050,62 +73598,133 @@ paths: explode: true style: form - in: query - name: name__n + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nic + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nie + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__niew + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nisw + name: site_group schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: site_group__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: site_group_id__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix + explode: true + style: form - in: query name: tag schema: @@ -73145,8 +73764,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -73154,8 +73772,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -73163,8 +73780,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -73172,8 +73788,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -73201,6 +73816,113 @@ paths: schema: type: string format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: within + schema: + type: string + description: Within prefix + - in: query + name: within_include + schema: + type: string + description: Within and including prefix tags: - ipam security: @@ -73211,21 +73933,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRouteTargetList' + $ref: '#/components/schemas/PaginatedPrefixList' description: '' post: - operationId: ipam_route_targets_create - description: Post a list of route target objects. + operationId: ipam_prefixes_create + description: Post a list of prefix objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -73235,11 +73957,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: ipam_route_targets_bulk_update - description: Put a list of route target objects. + operationId: ipam_prefixes_bulk_update + description: Put a list of prefix objects. tags: - ipam requestBody: @@ -73248,12 +73970,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -73265,11 +73987,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: ipam_route_targets_bulk_partial_update - description: Patch a list of route target objects. + operationId: ipam_prefixes_bulk_partial_update + description: Patch a list of prefix objects. tags: - ipam requestBody: @@ -73278,12 +74000,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -73295,11 +74017,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: ipam_route_targets_bulk_destroy - description: Delete a list of route target objects. + operationId: ipam_prefixes_bulk_destroy + description: Delete a list of prefix objects. tags: - ipam requestBody: @@ -73308,12 +74030,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -73321,16 +74043,16 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/{id}/: + /api/ipam/prefixes/{id}/: get: - operationId: ipam_route_targets_retrieve - description: Get a route target object. + operationId: ipam_prefixes_retrieve + description: Get a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73342,17 +74064,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: ipam_route_targets_update - description: Put a route target object. + operationId: ipam_prefixes_update + description: Put a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73360,10 +74082,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -73373,17 +74095,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: ipam_route_targets_partial_update - description: Patch a route target object. + operationId: ipam_prefixes_partial_update + description: Patch a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73391,10 +74113,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -73403,17 +74125,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: ipam_route_targets_destroy - description: Delete a route target object. + operationId: ipam_prefixes_destroy + description: Delete a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -73423,10 +74145,130 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/: + /api/ipam/prefixes/{id}/available-ips/: get: - operationId: ipam_service_templates_list - description: Get a list of service template objects. + operationId: ipam_prefixes_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_prefixes_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/{id}/available-prefixes/: + get: + operationId: ipam_prefixes_available_prefixes_list + description: Get a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailablePrefix' + description: '' + post: + operationId: ipam_prefixes_available_prefixes_create + description: Post a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Prefix' + description: '' + /api/ipam/rirs/: + get: + operationId: ipam_rirs_list + description: Get a list of RIR objects. parameters: - in: query name: created @@ -73638,6 +74480,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_private + schema: + type: boolean - in: query name: last_updated schema: @@ -73809,42 +74655,94 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: slug schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol__n + name: slug__empty schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: boolean - in: query - name: q + name: slug__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -73876,21 +74774,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceTemplateList' + $ref: '#/components/schemas/PaginatedRIRList' description: '' post: - operationId: ipam_service_templates_create - description: Post a list of service template objects. + operationId: ipam_rirs_create + description: Post a list of RIR objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73900,11 +74798,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: ipam_service_templates_bulk_update - description: Put a list of service template objects. + operationId: ipam_rirs_bulk_update + description: Put a list of RIR objects. tags: - ipam requestBody: @@ -73913,12 +74811,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73930,11 +74828,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: ipam_service_templates_bulk_partial_update - description: Patch a list of service template objects. + operationId: ipam_rirs_bulk_partial_update + description: Patch a list of RIR objects. tags: - ipam requestBody: @@ -73943,12 +74841,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73960,11 +74858,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: ipam_service_templates_bulk_destroy - description: Delete a list of service template objects. + operationId: ipam_rirs_bulk_destroy + description: Delete a list of RIR objects. tags: - ipam requestBody: @@ -73973,12 +74871,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -73986,16 +74884,16 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/{id}/: + /api/ipam/rirs/{id}/: get: - operationId: ipam_service_templates_retrieve - description: Get a service template object. + operationId: ipam_rirs_retrieve + description: Get a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74007,17 +74905,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: ipam_service_templates_update - description: Put a service template object. + operationId: ipam_rirs_update + description: Put a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74025,10 +74923,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -74038,17 +74936,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: ipam_service_templates_partial_update - description: Patch a service template object. + operationId: ipam_rirs_partial_update + description: Patch a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74056,10 +74954,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedRIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedRIRRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74068,17 +74966,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: ipam_service_templates_destroy - description: Delete a service template object. + operationId: ipam_rirs_destroy + description: Delete a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -74088,10 +74986,10 @@ paths: responses: '204': description: No response body - /api/ipam/services/: + /api/ipam/roles/: get: - operationId: ipam_services_list - description: Get a list of service objects. + operationId: ipam_roles_list + description: Get a list of role objects. parameters: - in: query name: created @@ -74245,46 +75143,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - in: query name: id schema: @@ -74343,78 +75201,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ip_address - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ip_address__n - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ip_address_id - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - - in: query - name: ip_address_id__n - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - - in: query - name: ipaddress - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ipaddress__n - schema: - type: array - items: - type: string - description: IP address - explode: true - style: form - - in: query - name: ipaddress_id - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - - in: query - name: ipaddress_id__n - schema: - type: array - items: - type: integer - description: IP address (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -74586,42 +75372,94 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: slug schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol__n + name: slug__empty schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: boolean - in: query - name: q + name: slug__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -74644,41 +75482,61 @@ paths: type: string format: uuid - in: query - name: virtual_machine + name: weight schema: type: array items: - type: string - description: Virtual machine (name) + type: integer + format: int32 explode: true style: form - in: query - name: virtual_machine__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string - description: Virtual machine (name) + type: integer + format: int32 explode: true style: form - in: query - name: virtual_machine_id + name: weight__gte schema: type: array items: type: integer - nullable: true - description: Virtual machine (ID) + format: int32 explode: true style: form - in: query - name: virtual_machine_id__n + name: weight__lt schema: type: array items: type: integer - nullable: true - description: Virtual machine (ID) + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form tags: @@ -74691,21 +75549,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceList' + $ref: '#/components/schemas/PaginatedRoleList' description: '' post: - operationId: ipam_services_create - description: Post a list of service objects. + operationId: ipam_roles_create + description: Post a list of role objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74715,11 +75573,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' put: - operationId: ipam_services_bulk_update - description: Put a list of service objects. + operationId: ipam_roles_bulk_update + description: Put a list of role objects. tags: - ipam requestBody: @@ -74728,12 +75586,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74745,11 +75603,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: ipam_services_bulk_partial_update - description: Patch a list of service objects. + operationId: ipam_roles_bulk_partial_update + description: Patch a list of role objects. tags: - ipam requestBody: @@ -74758,12 +75616,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74775,11 +75633,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: ipam_services_bulk_destroy - description: Delete a list of service objects. + operationId: ipam_roles_bulk_destroy + description: Delete a list of role objects. tags: - ipam requestBody: @@ -74788,12 +75646,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74801,16 +75659,16 @@ paths: responses: '204': description: No response body - /api/ipam/services/{id}/: + /api/ipam/roles/{id}/: get: - operationId: ipam_services_retrieve - description: Get a service object. + operationId: ipam_roles_retrieve + description: Get a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74822,17 +75680,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' put: - operationId: ipam_services_update - description: Put a service object. + operationId: ipam_roles_update + description: Put a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74840,10 +75698,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -74853,17 +75711,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: ipam_services_partial_update - description: Patch a service object. + operationId: ipam_roles_partial_update + description: Patch a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74871,10 +75729,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74883,17 +75741,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: ipam_services_destroy - description: Delete a service object. + operationId: ipam_roles_destroy + description: Delete a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -74903,23 +75761,11 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/: + /api/ipam/route-targets/: get: - operationId: ipam_vlan_groups_list - description: Get a list of VLAN group objects. + operationId: ipam_route_targets_list + description: Get a list of route target objects. parameters: - - in: query - name: cluster - schema: - type: integer - - in: query - name: cluster_group - schema: - type: integer - - in: query - name: clustergroup - schema: - type: integer - in: query name: created schema: @@ -75073,252 +75919,300 @@ paths: explode: true style: form - in: query - name: id + name: exporting_l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) explode: true style: form - in: query - name: id__empty + name: exporting_l2vpn__n schema: - type: boolean + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) + explode: true + style: form - in: query - name: id__gt + name: exporting_l2vpn_id schema: type: array items: type: integer - format: int32 + description: Exporting L2VPN explode: true style: form - in: query - name: id__gte + name: exporting_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Exporting L2VPN explode: true style: form - in: query - name: id__lt + name: exporting_vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: id__lte + name: exporting_vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: id__n + name: exporting_vrf_id schema: type: array items: type: integer - format: int32 + description: Exporting VRF explode: true style: form - in: query - name: last_updated + name: exporting_vrf_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Exporting VRF explode: true style: form - in: query - name: last_updated__empty + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: importing_l2vpn schema: - type: integer + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) + explode: true + style: form - in: query - name: max_vid + name: importing_l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) explode: true style: form - in: query - name: max_vid__empty + name: importing_l2vpn_id schema: - type: boolean + type: array + items: + type: integer + description: Importing L2VPN + explode: true + style: form - in: query - name: max_vid__gt + name: importing_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Importing L2VPN explode: true style: form - in: query - name: max_vid__gte + name: importing_vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: max_vid__lt + name: importing_vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: max_vid__lte + name: importing_vrf_id schema: type: array items: type: integer - format: int32 + description: Importing VRF explode: true style: form - in: query - name: max_vid__n + name: importing_vrf_id__n schema: type: array items: type: integer - format: int32 + description: Importing VRF explode: true style: form - in: query - name: min_vid + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: min_vid__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: min_vid__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query name: modified_by_request schema: @@ -75426,113 +76320,7 @@ paths: type: string description: Search - in: query - name: rack - schema: - type: integer - - in: query - name: region - schema: - type: integer - - in: query - name: scope_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__empty - schema: - type: boolean - - in: query - name: scope_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: scope_type - schema: - type: string - - in: query - name: scope_type__n - schema: - type: string - - in: query - name: site - schema: - type: integer - - in: query - name: site_group - schema: - type: integer - - in: query - name: sitegroup - schema: - type: integer - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie + name: tag schema: type: array items: @@ -75540,7 +76328,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tag__n schema: type: array items: @@ -75548,23 +76336,25 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nic + name: tenant_group schema: type: array items: @@ -75572,7 +76362,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant_group__n schema: type: array items: @@ -75580,7 +76370,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tenant_group_id schema: type: array items: @@ -75588,7 +76378,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group_id__n schema: type: array items: @@ -75596,19 +76386,23 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -75626,21 +76420,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANGroupList' + $ref: '#/components/schemas/PaginatedRouteTargetList' description: '' post: - operationId: ipam_vlan_groups_create - description: Post a list of VLAN group objects. + operationId: ipam_route_targets_create + description: Post a list of route target objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75650,11 +76444,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: ipam_vlan_groups_bulk_update - description: Put a list of VLAN group objects. + operationId: ipam_route_targets_bulk_update + description: Put a list of route target objects. tags: - ipam requestBody: @@ -75663,12 +76457,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75680,11 +76474,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: ipam_vlan_groups_bulk_partial_update - description: Patch a list of VLAN group objects. + operationId: ipam_route_targets_bulk_partial_update + description: Patch a list of route target objects. tags: - ipam requestBody: @@ -75693,12 +76487,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75710,11 +76504,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: ipam_vlan_groups_bulk_destroy - description: Delete a list of VLAN group objects. + operationId: ipam_route_targets_bulk_destroy + description: Delete a list of route target objects. tags: - ipam requestBody: @@ -75723,12 +76517,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75736,16 +76530,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/: + /api/ipam/route-targets/{id}/: get: - operationId: ipam_vlan_groups_retrieve - description: Get a VLAN group object. + operationId: ipam_route_targets_retrieve + description: Get a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75757,17 +76551,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: ipam_vlan_groups_update - description: Put a VLAN group object. + operationId: ipam_route_targets_update + description: Put a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75775,10 +76569,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -75788,17 +76582,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: ipam_vlan_groups_partial_update - description: Patch a VLAN group object. + operationId: ipam_route_targets_partial_update + description: Patch a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75806,10 +76600,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -75818,17 +76612,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: ipam_vlan_groups_destroy - description: Delete a VLAN group object. + operationId: ipam_route_targets_destroy + description: Delete a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -75838,83 +76632,11 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/available-vlans/: - get: - operationId: ipam_vlan_groups_available_vlans_list - description: Get a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableVLAN' - description: '' - post: - operationId: ipam_vlan_groups_available_vlans_create - description: Post a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - /api/ipam/vlans/: + /api/ipam/service-templates/: get: - operationId: ipam_vlans_list - description: Get a list of VLAN objects. + operationId: ipam_service_templates_list + description: Get a list of service template objects. parameters: - - in: query - name: available_at_site - schema: - type: string - - in: query - name: available_on_device - schema: - type: string - - in: query - name: available_on_virtualmachine - schema: - type: string - in: query name: created schema: @@ -76067,44 +76789,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - nullable: true - description: Group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Group (ID) - explode: true - style: form - in: query name: id schema: @@ -76163,50 +76847,6 @@ paths: format: int32 explode: true style: form - - in: query - name: l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn_id - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - - in: query - name: l2vpn_id__n - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -76378,178 +77018,42 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id + name: port schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: number - in: query - name: site_id__n + name: protocol schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: status + name: protocol__n schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: status__n + name: q schema: - type: array - items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -76566,143 +77070,11 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__empty - schema: - type: boolean - - in: query - name: vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - ipam security: @@ -76713,21 +77085,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANList' + $ref: '#/components/schemas/PaginatedServiceTemplateList' description: '' post: - operationId: ipam_vlans_create - description: Post a list of VLAN objects. + operationId: ipam_service_templates_create + description: Post a list of service template objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76737,11 +77109,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: ipam_vlans_bulk_update - description: Put a list of VLAN objects. + operationId: ipam_service_templates_bulk_update + description: Put a list of service template objects. tags: - ipam requestBody: @@ -76750,12 +77122,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76767,11 +77139,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: ipam_vlans_bulk_partial_update - description: Patch a list of VLAN objects. + operationId: ipam_service_templates_bulk_partial_update + description: Patch a list of service template objects. tags: - ipam requestBody: @@ -76780,12 +77152,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76797,11 +77169,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: ipam_vlans_bulk_destroy - description: Delete a list of VLAN objects. + operationId: ipam_service_templates_bulk_destroy + description: Delete a list of service template objects. tags: - ipam requestBody: @@ -76810,12 +77182,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76823,16 +77195,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlans/{id}/: + /api/ipam/service-templates/{id}/: get: - operationId: ipam_vlans_retrieve - description: Get a VLAN object. + operationId: ipam_service_templates_retrieve + description: Get a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76844,17 +77216,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: ipam_vlans_update - description: Put a VLAN object. + operationId: ipam_service_templates_update + description: Put a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76862,10 +77234,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -76875,17 +77247,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: ipam_vlans_partial_update - description: Patch a VLAN object. + operationId: ipam_service_templates_partial_update + description: Patch a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76893,10 +77265,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -76905,17 +77277,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: ipam_vlans_destroy - description: Delete a VLAN object. + operationId: ipam_service_templates_destroy + description: Delete a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -76925,10 +77297,10 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/: + /api/ipam/services/: get: - operationId: ipam_vrfs_list - description: Get a list of VRF objects. + operationId: ipam_services_list + description: Get a list of service objects. parameters: - in: query name: created @@ -77083,43 +77455,43 @@ paths: explode: true style: form - in: query - name: enforce_unique - schema: - type: boolean - - in: query - name: export_target + name: device schema: type: array items: type: string - description: Export target (name) + nullable: true + description: Device (name) explode: true style: form - in: query - name: export_target__n + name: device__n schema: type: array items: type: string - description: Export target (name) + nullable: true + description: Device (name) explode: true style: form - in: query - name: export_target_id + name: device_id schema: type: array items: type: integer - description: Export target + nullable: true + description: Device (ID) explode: true style: form - in: query - name: export_target_id__n + name: device_id__n schema: type: array items: type: integer - description: Export target + nullable: true + description: Device (ID) explode: true style: form - in: query @@ -77181,39 +77553,39 @@ paths: explode: true style: form - in: query - name: import_target + name: ip_address schema: type: array items: type: string - description: Import target (name) + description: IP address explode: true style: form - in: query - name: import_target__n + name: ip_address__n schema: type: array items: type: string - description: Import target (name) + description: IP address explode: true style: form - in: query - name: import_target_id + name: ip_address_id schema: type: array items: type: integer - description: Import target + description: IP address (ID) explode: true style: form - in: query - name: import_target_id__n + name: ip_address_id__n schema: type: array items: type: integer - description: Import target + description: IP address (ID) explode: true style: form - in: query @@ -77387,94 +77759,42 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rd - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__empty - schema: - type: boolean - - in: query - name: rd__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__nic + name: port schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: rd__nie + name: protocol schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: rd__niew + name: protocol__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: rd__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -77492,84 +77812,48 @@ paths: explode: true style: form - in: query - name: tenant + name: updated_by_request schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: tenant__n + name: virtual_machine schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) + description: Virtual machine (name) explode: true style: form - in: query - name: tenant_group_id__n + name: virtual_machine__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + description: Virtual machine (name) explode: true style: form - in: query - name: tenant_id + name: virtual_machine_id schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Virtual machine (ID) explode: true style: form - in: query - name: tenant_id__n + name: virtual_machine_id__n schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Virtual machine (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - ipam security: @@ -77580,21 +77864,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVRFList' + $ref: '#/components/schemas/PaginatedServiceList' description: '' post: - operationId: ipam_vrfs_create - description: Post a list of VRF objects. + operationId: ipam_services_create + description: Post a list of service objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -77604,11 +77888,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' put: - operationId: ipam_vrfs_bulk_update - description: Put a list of VRF objects. + operationId: ipam_services_bulk_update + description: Put a list of service objects. tags: - ipam requestBody: @@ -77617,12 +77901,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -77634,11 +77918,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: ipam_vrfs_bulk_partial_update - description: Patch a list of VRF objects. + operationId: ipam_services_bulk_partial_update + description: Patch a list of service objects. tags: - ipam requestBody: @@ -77647,12 +77931,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -77664,11 +77948,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: ipam_vrfs_bulk_destroy - description: Delete a list of VRF objects. + operationId: ipam_services_bulk_destroy + description: Delete a list of service objects. tags: - ipam requestBody: @@ -77677,12 +77961,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -77690,16 +77974,16 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/{id}/: + /api/ipam/services/{id}/: get: - operationId: ipam_vrfs_retrieve - description: Get a VRF object. + operationId: ipam_services_retrieve + description: Get a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77711,17 +77995,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' put: - operationId: ipam_vrfs_update - description: Put a VRF object. + operationId: ipam_services_update + description: Put a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77729,10 +78013,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -77742,17 +78026,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: ipam_vrfs_partial_update - description: Patch a VRF object. + operationId: ipam_services_partial_update + description: Patch a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77760,10 +78044,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -77772,17 +78056,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: ipam_vrfs_destroy - description: Delete a VRF object. + operationId: ipam_services_destroy + description: Delete a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -77792,106 +78076,23 @@ paths: responses: '204': description: No response body - /api/schema/: + /api/ipam/vlan-groups/: get: - operationId: schema_retrieve - description: 'OpenApi3 schema for this API. Format can be selected via content - negotiation. - - - - YAML: application/vnd.oai.openapi - - - JSON: application/vnd.oai.openapi+json' + operationId: ipam_vlan_groups_list + description: Get a list of VLAN group objects. parameters: - in: query - name: format - schema: - type: string - enum: - - json - - yaml - - in: query - name: lang + name: cluster schema: - type: string - enum: - - de - - en - - es - - fr - - ja - - pt - - ru - - tr - - uk - - zh - tags: - - schema - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi: - schema: - type: object - additionalProperties: {} - application/yaml: - schema: - type: object - additionalProperties: {} - application/vnd.oai.openapi+json: - schema: - type: object - additionalProperties: {} - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/status/: - get: - operationId: status_retrieve - description: A lightweight read-only endpoint for conveying NetBox's current - operational status. - tags: - - status - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/tenancy/contact-assignments/: - get: - operationId: tenancy_contact_assignments_list - description: Get a list of contact assignment objects. - parameters: + type: integer - in: query - name: contact_id + name: cluster_group schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form + type: integer - in: query - name: contact_id__n + name: contains_vid schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form + type: number - in: query name: created schema: @@ -77961,39 +78162,87 @@ paths: type: string format: uuid - in: query - name: group + name: description schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group_id + name: description__ie schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: description__iew schema: type: array items: - type: integer - description: Contact group (ID) + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -78123,85 +78372,99 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: integer - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: object_id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__empty + name: name__empty schema: type: boolean - in: query - name: object_id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type + name: name__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: name__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: name__niew schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id__n + name: name__nisw schema: - type: integer + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -78215,126 +78478,222 @@ paths: schema: type: string - in: query - name: priority + name: q schema: type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + description: Search - in: query - name: priority__n + name: rack schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: integer - in: query - name: q + name: region schema: - type: string - description: Search + type: integer - in: query - name: role + name: scope_id schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: scope_id__gte schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: scope_id__lt schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: tag + name: scope_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: scope_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: scope_type schema: type: string - format: uuid - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedContactAssignmentList' - description: '' - post: - operationId: tenancy_contact_assignments_create - description: Post a list of contact assignment objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' - multipart/form-data: + - in: query + name: scope_type__n + schema: + type: string + - in: query + name: site + schema: + type: integer + - in: query + name: site_group + schema: + type: integer + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVLANGroupList' + description: '' + post: + operationId: ipam_vlan_groups_create + description: Post a list of VLAN group objects. + tags: + - ipam + requestBody: + content: + application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78344,25 +78703,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: tenancy_contact_assignments_bulk_update - description: Put a list of contact assignment objects. + operationId: ipam_vlan_groups_bulk_update + description: Put a list of VLAN group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78374,25 +78733,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: tenancy_contact_assignments_bulk_partial_update - description: Patch a list of contact assignment objects. + operationId: ipam_vlan_groups_bulk_partial_update + description: Patch a list of VLAN group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78404,25 +78763,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: tenancy_contact_assignments_bulk_destroy - description: Delete a list of contact assignment objects. + operationId: ipam_vlan_groups_bulk_destroy + description: Delete a list of VLAN group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78430,19 +78789,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-assignments/{id}/: + /api/ipam/vlan-groups/{id}/: get: - operationId: tenancy_contact_assignments_retrieve - description: Get a contact assignment object. + operationId: ipam_vlan_groups_retrieve + description: Get a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -78451,28 +78810,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: tenancy_contact_assignments_update - description: Put a contact assignment object. + operationId: ipam_vlan_groups_update + description: Put a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -78482,28 +78841,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: tenancy_contact_assignments_partial_update - description: Patch a contact assignment object. + operationId: ipam_vlan_groups_partial_update + description: Patch a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -78512,67 +78871,103 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: tenancy_contact_assignments_destroy - description: Delete a contact assignment object. + operationId: ipam_vlan_groups_destroy + description: Delete a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this VLAN group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contact-groups/: + /api/ipam/vlan-groups/{id}/available-vlans/: get: - operationId: tenancy_contact_groups_list - description: Get a list of contact group objects. + operationId: ipam_vlan_groups_available_vlans_list + description: Get a VLAN object. parameters: - - in: query - name: ancestor + - in: path + name: id schema: - type: array - items: - type: integer - description: Contact group (slug) - explode: true - style: form + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableVLAN' + description: '' + post: + operationId: ipam_vlan_groups_available_vlans_create + description: Post a VLAN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLAN' + description: '' + /api/ipam/vlans/: + get: + operationId: ipam_vlans_list + description: Get a list of VLAN objects. + parameters: - in: query - name: ancestor__n + name: available_at_site schema: - type: array - items: - type: integer - description: Contact group (slug) - explode: true - style: form + type: string - in: query - name: ancestor_id + name: available_on_device schema: - type: array - items: - type: integer - description: Contact group (ID) - explode: true - style: form + type: string - in: query - name: ancestor_id__n + name: available_on_virtualmachine schema: - type: array - items: - type: integer - description: Contact group (ID) - explode: true - style: form + type: string - in: query name: created schema: @@ -78725,6 +79120,44 @@ paths: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Group + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Group + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Group (ID) + explode: true + style: form - in: query name: id schema: @@ -78783,6 +79216,50 @@ paths: format: int32 explode: true style: form + - in: query + name: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -78954,62 +79431,108 @@ paths: schema: type: string - in: query - name: parent + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: type: string - description: Parent contact group (slug) explode: true style: form - in: query - name: parent__n + name: region__n schema: type: array items: type: string - description: Parent contact group (slug) explode: true style: form - in: query - name: parent_id + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id schema: type: array items: type: integer nullable: true - description: Parent contact group (ID) + description: Role (ID) explode: true style: form - in: query - name: parent_id__n + name: role_id__n schema: type: array items: type: integer nullable: true - description: Parent contact group (ID) + description: Role (ID) explode: true style: form - in: query - name: q + name: site schema: - type: string - description: Search + type: array + items: + type: string + description: Site (slug) + explode: true + style: form - in: query - name: slug + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: slug__empty + name: site_group schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: site_group__n schema: type: array items: @@ -79017,7 +79540,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: site_group_id schema: type: array items: @@ -79025,7 +79548,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: site_group_id__n schema: type: array items: @@ -79033,15 +79556,47 @@ paths: explode: true style: form - in: query - name: slug__isw + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN explode: true style: form - in: query - name: slug__n + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN + explode: true + style: form + - in: query + name: tag schema: type: array items: @@ -79049,7 +79604,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tag__n schema: type: array items: @@ -79057,15 +79612,25 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group schema: type: array items: @@ -79073,7 +79638,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -79081,7 +79646,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -79089,20 +79654,98 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: type: string explode: true style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: vid + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__empty + schema: + type: boolean + - in: query + name: vid__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79111,21 +79754,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactGroupList' + $ref: '#/components/schemas/PaginatedVLANList' description: '' post: - operationId: tenancy_contact_groups_create - description: Post a list of contact group objects. + operationId: ipam_vlans_create + description: Post a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -79135,25 +79778,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: tenancy_contact_groups_bulk_update - description: Put a list of contact group objects. + operationId: ipam_vlans_bulk_update + description: Put a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -79165,25 +79808,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: tenancy_contact_groups_bulk_partial_update - description: Patch a list of contact group objects. + operationId: ipam_vlans_bulk_partial_update + description: Patch a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -79195,25 +79838,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: tenancy_contact_groups_bulk_destroy - description: Delete a list of contact group objects. + operationId: ipam_vlans_bulk_destroy + description: Delete a list of VLAN objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -79221,19 +79864,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-groups/{id}/: + /api/ipam/vlans/{id}/: get: - operationId: tenancy_contact_groups_retrieve - description: Get a contact group object. + operationId: ipam_vlans_retrieve + description: Get a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79242,28 +79885,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: tenancy_contact_groups_update - description: Put a contact group object. + operationId: ipam_vlans_update + description: Put a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -79273,28 +79916,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: tenancy_contact_groups_partial_update - description: Patch a contact group object. + operationId: ipam_vlans_partial_update + description: Patch a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -79303,30 +79946,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: tenancy_contact_groups_destroy - description: Delete a contact group object. + operationId: ipam_vlans_destroy + description: Delete a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this VLAN. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contact-roles/: + /api/ipam/vrfs/: get: - operationId: tenancy_contact_roles_list - description: Get a list of contact role objects. + operationId: ipam_vrfs_list + description: Get a list of VRF objects. parameters: - in: query name: created @@ -79480,6 +80123,46 @@ paths: type: string explode: true style: form + - in: query + name: enforce_unique + schema: + type: boolean + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -79538,6 +80221,42 @@ paths: format: int32 explode: true style: form + - in: query + name: import_target + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target__n + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target_id + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: import_target_id__n + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form - in: query name: last_updated schema: @@ -79714,7 +80433,7 @@ paths: type: string description: Search - in: query - name: slug + name: rd schema: type: array items: @@ -79722,11 +80441,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: rd__empty schema: type: boolean - in: query - name: slug__ic + name: rd__ic schema: type: array items: @@ -79734,7 +80453,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: rd__ie schema: type: array items: @@ -79742,7 +80461,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: rd__iew schema: type: array items: @@ -79750,7 +80469,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: rd__isw schema: type: array items: @@ -79758,7 +80477,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: rd__n schema: type: array items: @@ -79766,7 +80485,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: rd__nic schema: type: array items: @@ -79774,7 +80493,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: rd__nie schema: type: array items: @@ -79782,7 +80501,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: rd__niew schema: type: array items: @@ -79790,7 +80509,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: rd__nisw schema: type: array items: @@ -79813,13 +80532,83 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79828,21 +80617,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactRoleList' + $ref: '#/components/schemas/PaginatedVRFList' description: '' post: - operationId: tenancy_contact_roles_create - description: Post a list of contact role objects. + operationId: ipam_vrfs_create + description: Post a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79852,25 +80641,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: tenancy_contact_roles_bulk_update - description: Put a list of contact role objects. + operationId: ipam_vrfs_bulk_update + description: Put a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79882,25 +80671,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: tenancy_contact_roles_bulk_partial_update - description: Patch a list of contact role objects. + operationId: ipam_vrfs_bulk_partial_update + description: Patch a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79912,25 +80701,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: tenancy_contact_roles_bulk_destroy - description: Delete a list of contact role objects. + operationId: ipam_vrfs_bulk_destroy + description: Delete a list of VRF objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79938,19 +80727,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-roles/{id}/: + /api/ipam/vrfs/{id}/: get: - operationId: tenancy_contact_roles_retrieve - description: Get a contact role object. + operationId: ipam_vrfs_retrieve + description: Get a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79959,28 +80748,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: tenancy_contact_roles_update - description: Put a contact role object. + operationId: ipam_vrfs_update + description: Put a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -79990,28 +80779,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: tenancy_contact_roles_partial_update - description: Patch a contact role object. + operationId: ipam_vrfs_partial_update + description: Patch a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedVRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedVRFRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -80020,113 +80809,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: tenancy_contact_roles_destroy - description: Delete a contact role object. + operationId: ipam_vrfs_destroy + description: Delete a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this VRF. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contacts/: + /api/schema/: get: - operationId: tenancy_contacts_list - description: Get a list of contact objects. + operationId: schema_retrieve + description: 'OpenApi3 schema for this API. Format can be selected via content + negotiation. + + + - YAML: application/vnd.oai.openapi + + - JSON: application/vnd.oai.openapi+json' parameters: - in: query - name: address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__empty + name: format schema: - type: boolean + type: string + enum: + - json + - yaml - in: query - name: address__ic + name: lang schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: address__nie - schema: - type: array - items: - type: string - explode: true - style: form + type: string + enum: + - cs + - da + - de + - en + - es + - fr + - it + - ja + - nl + - pl + - pt + - ru + - tr + - uk + - zh + tags: + - schema + security: + - cookieAuth: [] + - tokenAuth: [] + - {} + responses: + '200': + content: + application/vnd.oai.openapi: + schema: + type: object + additionalProperties: {} + application/yaml: + schema: + type: object + additionalProperties: {} + application/vnd.oai.openapi+json: + schema: + type: object + additionalProperties: {} + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/status/: + get: + operationId: status_retrieve + description: A lightweight read-only endpoint for conveying NetBox's current + operational status. + tags: + - status + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/tenancy/contact-assignments/: + get: + operationId: tenancy_contact_assignments_list + description: Get a list of contact assignment objects. + parameters: - in: query - name: address__niew + name: contact_id schema: type: array items: - type: string + type: integer + description: Contact (ID) explode: true style: form - in: query - name: address__nisw + name: contact_id__n schema: type: array items: - type: string + type: integer + description: Contact (ID) explode: true style: form - in: query @@ -80197,181 +81002,12 @@ paths: schema: type: string format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: group schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query @@ -80379,8 +81015,7 @@ paths: schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query @@ -80388,8 +81023,7 @@ paths: schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query @@ -80397,8 +81031,7 @@ paths: schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query @@ -80528,179 +81161,85 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: link - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__empty - schema: - type: boolean - - in: query - name: link__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: link__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: name + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: object_id__empty schema: type: boolean - in: query - name: name__ic + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nie + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__niew + name: object_type_id schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: object_type_id__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -80714,180 +81253,82 @@ paths: schema: type: string - in: query - name: phone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__empty - schema: - type: boolean - - in: query - name: phone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__niew + name: priority schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: phone__nisw + name: priority__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query name: q schema: type: string description: Search - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__empty - schema: - type: boolean - - in: query - name: title__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__isw + name: role schema: type: array items: type: string + description: Contact role (slug) explode: true style: form - in: query - name: title__n + name: role__n schema: type: array items: type: string + description: Contact role (slug) explode: true style: form - in: query - name: title__nic + name: role_id schema: type: array items: - type: string + type: integer + description: Contact role (ID) explode: true style: form - in: query - name: title__nie + name: role_id__n schema: type: array items: - type: string + type: integer + description: Contact role (ID) explode: true style: form - in: query - name: title__niew + name: tag schema: type: array items: @@ -80895,7 +81336,7 @@ paths: explode: true style: form - in: query - name: title__nisw + name: tag__n schema: type: array items: @@ -80917,21 +81358,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactList' + $ref: '#/components/schemas/PaginatedContactAssignmentList' description: '' post: - operationId: tenancy_contacts_create - description: Post a list of contact objects. + operationId: tenancy_contact_assignments_create + description: Post a list of contact assignment objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -80941,11 +81382,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: tenancy_contacts_bulk_update - description: Put a list of contact objects. + operationId: tenancy_contact_assignments_bulk_update + description: Put a list of contact assignment objects. tags: - tenancy requestBody: @@ -80954,12 +81395,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -80971,11 +81412,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: tenancy_contacts_bulk_partial_update - description: Patch a list of contact objects. + operationId: tenancy_contact_assignments_bulk_partial_update + description: Patch a list of contact assignment objects. tags: - tenancy requestBody: @@ -80984,12 +81425,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -81001,11 +81442,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: tenancy_contacts_bulk_destroy - description: Delete a list of contact objects. + operationId: tenancy_contact_assignments_bulk_destroy + description: Delete a list of contact assignment objects. tags: - tenancy requestBody: @@ -81014,12 +81455,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -81027,16 +81468,16 @@ paths: responses: '204': description: No response body - /api/tenancy/contacts/{id}/: + /api/tenancy/contact-assignments/{id}/: get: - operationId: tenancy_contacts_retrieve - description: Get a contact object. + operationId: tenancy_contact_assignments_retrieve + description: Get a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81048,17 +81489,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: tenancy_contacts_update - description: Put a contact object. + operationId: tenancy_contact_assignments_update + description: Put a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81066,10 +81507,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -81079,17 +81520,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: tenancy_contacts_partial_update - description: Patch a contact object. + operationId: tenancy_contact_assignments_partial_update + description: Patch a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81097,10 +81538,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81109,17 +81550,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: tenancy_contacts_destroy - description: Delete a contact object. + operationId: tenancy_contact_assignments_destroy + description: Delete a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this contact assignment. required: true tags: - tenancy @@ -81129,18 +81570,17 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/: + /api/tenancy/contact-groups/: get: - operationId: tenancy_tenant_groups_list - description: Get a list of tenant group objects. + operationId: tenancy_contact_groups_list + description: Get a list of contact group objects. parameters: - in: query name: ancestor schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query @@ -81148,8 +81588,7 @@ paths: schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query @@ -81157,8 +81596,7 @@ paths: schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form - in: query @@ -81166,8 +81604,7 @@ paths: schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form - in: query @@ -81556,7 +81993,7 @@ paths: type: array items: type: string - description: Parent tenant group (slug) + description: Parent contact group (slug) explode: true style: form - in: query @@ -81565,7 +82002,7 @@ paths: type: array items: type: string - description: Parent tenant group (slug) + description: Parent contact group (slug) explode: true style: form - in: query @@ -81575,7 +82012,7 @@ paths: items: type: integer nullable: true - description: Parent tenant group (ID) + description: Parent contact group (ID) explode: true style: form - in: query @@ -81585,7 +82022,7 @@ paths: items: type: integer nullable: true - description: Parent tenant group (ID) + description: Parent contact group (ID) explode: true style: form - in: query @@ -81708,21 +82145,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantGroupList' + $ref: '#/components/schemas/PaginatedContactGroupList' description: '' post: - operationId: tenancy_tenant_groups_create - description: Post a list of tenant group objects. + operationId: tenancy_contact_groups_create + description: Post a list of contact group objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -81732,11 +82169,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: tenancy_tenant_groups_bulk_update - description: Put a list of tenant group objects. + operationId: tenancy_contact_groups_bulk_update + description: Put a list of contact group objects. tags: - tenancy requestBody: @@ -81745,12 +82182,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -81762,11 +82199,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: tenancy_tenant_groups_bulk_partial_update - description: Patch a list of tenant group objects. + operationId: tenancy_contact_groups_bulk_partial_update + description: Patch a list of contact group objects. tags: - tenancy requestBody: @@ -81775,12 +82212,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -81792,11 +82229,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: tenancy_tenant_groups_bulk_destroy - description: Delete a list of tenant group objects. + operationId: tenancy_contact_groups_bulk_destroy + description: Delete a list of contact group objects. tags: - tenancy requestBody: @@ -81805,12 +82242,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -81818,16 +82255,16 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/{id}/: + /api/tenancy/contact-groups/{id}/: get: - operationId: tenancy_tenant_groups_retrieve - description: Get a tenant group object. + operationId: tenancy_contact_groups_retrieve + description: Get a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81839,17 +82276,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: tenancy_tenant_groups_update - description: Put a tenant group object. + operationId: tenancy_contact_groups_update + description: Put a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81857,10 +82294,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -81870,17 +82307,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: tenancy_tenant_groups_partial_update - description: Patch a tenant group object. + operationId: tenancy_contact_groups_partial_update + description: Patch a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81888,10 +82325,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81900,17 +82337,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: tenancy_tenant_groups_destroy - description: Delete a tenant group object. + operationId: tenancy_contact_groups_destroy + description: Delete a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this contact group. required: true tags: - tenancy @@ -81920,65 +82357,11 @@ paths: responses: '204': description: No response body - /api/tenancy/tenants/: + /api/tenancy/contact-roles/: get: - operationId: tenancy_tenants_list - description: Get a list of tenant objects. + operationId: tenancy_contact_roles_list + description: Get a list of contact role objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -82131,42 +82514,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form - in: query name: id schema: @@ -82515,21 +82862,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantList' + $ref: '#/components/schemas/PaginatedContactRoleList' description: '' post: - operationId: tenancy_tenants_create - description: Post a list of tenant objects. + operationId: tenancy_contact_roles_create + description: Post a list of contact role objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82539,11 +82886,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: tenancy_tenants_bulk_update - description: Put a list of tenant objects. + operationId: tenancy_contact_roles_bulk_update + description: Put a list of contact role objects. tags: - tenancy requestBody: @@ -82552,12 +82899,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82569,11 +82916,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: tenancy_tenants_bulk_partial_update - description: Patch a list of tenant objects. + operationId: tenancy_contact_roles_bulk_partial_update + description: Patch a list of contact role objects. tags: - tenancy requestBody: @@ -82582,12 +82929,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82599,11 +82946,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: tenancy_tenants_bulk_destroy - description: Delete a list of tenant objects. + operationId: tenancy_contact_roles_bulk_destroy + description: Delete a list of contact role objects. tags: - tenancy requestBody: @@ -82612,12 +82959,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82625,16 +82972,16 @@ paths: responses: '204': description: No response body - /api/tenancy/tenants/{id}/: + /api/tenancy/contact-roles/{id}/: get: - operationId: tenancy_tenants_retrieve - description: Get a tenant object. + operationId: tenancy_contact_roles_retrieve + description: Get a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82646,17 +82993,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: tenancy_tenants_update - description: Put a tenant object. + operationId: tenancy_contact_roles_update + description: Put a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82664,10 +83011,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -82677,17 +83024,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: tenancy_tenants_partial_update - description: Patch a tenant object. + operationId: tenancy_contact_roles_partial_update + description: Patch a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82695,10 +83042,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -82707,17 +83054,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: tenancy_tenants_destroy - description: Delete a tenant object. + operationId: tenancy_contact_roles_destroy + description: Delete a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this contact role. required: true tags: - tenancy @@ -82727,31 +83074,13 @@ paths: responses: '204': description: No response body - /api/users/config/: - get: - operationId: users_config_retrieve - description: An API endpoint via which a user can update his or her own UserConfig - data (but no one else's). - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/groups/: + /api/tenancy/contacts/: get: - operationId: users_groups_list - description: Get a list of group objects. + operationId: tenancy_contacts_list + description: Get a list of contact objects. parameters: - in: query - name: description + name: address schema: type: array items: @@ -82759,11 +83088,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: address__empty schema: type: boolean - in: query - name: description__ic + name: address__ic schema: type: array items: @@ -82771,7 +83100,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: address__ie schema: type: array items: @@ -82779,7 +83108,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: address__iew schema: type: array items: @@ -82787,7 +83116,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: address__isw schema: type: array items: @@ -82795,7 +83124,7 @@ paths: explode: true style: form - in: query - name: description__n + name: address__n schema: type: array items: @@ -82803,7 +83132,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: address__nic schema: type: array items: @@ -82811,7 +83140,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: address__nie schema: type: array items: @@ -82819,7 +83148,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: address__niew schema: type: array items: @@ -82827,7 +83156,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: address__nisw schema: type: array items: @@ -82835,71 +83164,75 @@ paths: explode: true style: form - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: created_by_request schema: - type: integer + type: string + format: uuid - in: query - name: name + name: description schema: type: array items: @@ -82907,11 +83240,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -82919,7 +83252,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -82927,7 +83260,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -82935,7 +83268,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -82943,7 +83276,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -82951,7 +83284,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -82959,7 +83292,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -82967,7 +83300,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -82975,311 +83308,123 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: email schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__empty schema: - type: string + type: boolean - in: query - name: permission_id + name: email__ic schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: permission_id__n + name: email__ie schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: q + name: email__iew schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user_id + name: email__isw schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: email__n schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedGroupList' - description: '' - post: - operationId: users_groups_create - description: Post a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - put: - operationId: users_groups_bulk_update - description: Put a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Group' - description: '' - patch: - operationId: users_groups_bulk_partial_update - description: Patch a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Group' - description: '' - delete: - operationId: users_groups_bulk_destroy - description: Delete a list of group objects. - tags: - - users - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/users/groups/{id}/: - get: - operationId: users_groups_retrieve - description: Get a group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - put: - operationId: users_groups_update - description: Put a group object. - parameters: - - in: path - name: id + - in: query + name: email__nic schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/GroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/GroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - patch: - operationId: users_groups_partial_update - description: Patch a group object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nie schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Group' - description: '' - delete: - operationId: users_groups_destroy - description: Delete a group object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew schema: - type: integer - description: A unique integer value identifying this group. - required: true - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/users/permissions/: - get: - operationId: users_permissions_list - description: Get a list of permission objects. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query - name: can_add + name: email__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: can_change + name: group schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: can_delete + name: group__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: can_view + name: group_id schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: group_id__n schema: type: array items: @@ -83287,185 +83432,221 @@ paths: explode: true style: form - in: query - name: description__empty + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query - name: description__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: enabled + name: last_updated__lte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: group + name: last_updated__n schema: type: array items: type: string - description: Group (name) + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: group__n + name: link schema: type: array items: type: string - description: Group (name) explode: true style: form - in: query - name: group_id + name: link__empty + schema: + type: boolean + - in: query + name: link__ic schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query - name: group_id__n + name: link__ie schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query - name: id + name: link__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: link__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: link__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: link__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: link__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: link__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: link__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: modified_by_request schema: - type: integer + type: string + format: uuid - in: query name: name schema: @@ -83550,133 +83731,214 @@ paths: type: string explode: true style: form - - in: query - name: object_type + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__ic + name: phone schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__ie + name: phone__empty schema: - type: string + type: boolean - in: query - name: object_type__iew + name: phone__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__isw + name: phone__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: phone__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nic + name: phone__isw schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nie + name: phone__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: phone__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: phone__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: q schema: type: string + description: Search - in: query - name: object_type_id + name: tag schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: tag__n schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types + name: title schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types__n + name: title__empty + schema: + type: boolean + - in: query + name: title__ic schema: type: array items: - type: integer + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: title__ie schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: title__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user + name: title__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: title__nic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: title__nie schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: title__niew schema: type: array items: - type: integer - description: User + type: string + explode: true + style: form + - in: query + name: title__nisw + schema: + type: array + items: + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -83685,21 +83947,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectPermissionList' + $ref: '#/components/schemas/PaginatedContactList' description: '' post: - operationId: users_permissions_create - description: Post a list of permission objects. + operationId: tenancy_contacts_create + description: Post a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83709,25 +83971,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: users_permissions_bulk_update - description: Put a list of permission objects. + operationId: tenancy_contacts_bulk_update + description: Put a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83739,25 +84001,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: users_permissions_bulk_partial_update - description: Patch a list of permission objects. + operationId: tenancy_contacts_bulk_partial_update + description: Patch a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83769,25 +84031,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: users_permissions_bulk_destroy - description: Delete a list of permission objects. + operationId: tenancy_contacts_bulk_destroy + description: Delete a list of contact objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83795,19 +84057,19 @@ paths: responses: '204': description: No response body - /api/users/permissions/{id}/: + /api/tenancy/contacts/{id}/: get: - operationId: users_permissions_retrieve - description: Get a permission object. + operationId: tenancy_contacts_retrieve + description: Get a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -83816,28 +84078,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: users_permissions_update - description: Put a permission object. + operationId: tenancy_contacts_update + description: Put a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -83847,28 +84109,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: users_permissions_partial_update - description: Patch a permission object. + operationId: tenancy_contacts_partial_update + description: Patch a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedContactRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83877,48 +84139,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: users_permissions_destroy - description: Delete a permission object. + operationId: tenancy_contacts_destroy + description: Delete a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this contact. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/: + /api/tenancy/tenant-groups/: get: - operationId: users_tokens_list - description: Get a list of token objects. + operationId: tenancy_tenant_groups_list + description: Get a list of tenant group objects. parameters: - in: query - name: created - schema: - type: string - format: date-time - - in: query - name: created__gte - schema: - type: string - format: date-time - - in: query - name: created__lte - schema: - type: string - format: date-time - - in: query - name: description + name: ancestor schema: type: array items: @@ -83926,11 +84173,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: ancestor__n schema: type: array items: @@ -83938,7 +84181,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: ancestor_id schema: type: array items: @@ -83946,7 +84189,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: ancestor_id__n schema: type: array items: @@ -83954,79 +84197,168 @@ paths: explode: true style: form - in: query - name: description__isw + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: expires - schema: - type: string - format: date-time - - in: query - name: expires__gte + name: created__n schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: expires__lte + name: created_by_request schema: type: string - format: date-time + format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query @@ -84075,67 +84407,81 @@ paths: explode: true style: form - in: query - name: key + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__empty - schema: - type: boolean - - in: query - name: key__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: key__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -84143,7 +84489,11 @@ paths: explode: true style: form - in: query - name: key__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -84151,7 +84501,7 @@ paths: explode: true style: form - in: query - name: key__nisw + name: name__ie schema: type: array items: @@ -84159,69 +84509,61 @@ paths: explode: true style: form - in: query - name: last_used + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__empty + name: name__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_used__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -84234,53 +84576,156 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: parent + schema: + type: array + items: + type: string + description: Parent tenant group (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent tenant group (slug) + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent tenant group (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent tenant group (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: user + name: slug schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: slug__ie schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: slug__iew schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: write_enabled + name: slug__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -84289,21 +84734,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTokenList' + $ref: '#/components/schemas/PaginatedTenantGroupList' description: '' post: - operationId: users_tokens_create - description: Post a list of token objects. + operationId: tenancy_tenant_groups_create + description: Post a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -84313,25 +84758,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: users_tokens_bulk_update - description: Put a list of token objects. + operationId: tenancy_tenant_groups_bulk_update + description: Put a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -84343,25 +84788,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: users_tokens_bulk_partial_update - description: Patch a list of token objects. + operationId: tenancy_tenant_groups_bulk_partial_update + description: Patch a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -84373,25 +84818,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: users_tokens_bulk_destroy - description: Delete a list of token objects. + operationId: tenancy_tenant_groups_bulk_destroy + description: Delete a list of tenant group objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -84399,19 +84844,19 @@ paths: responses: '204': description: No response body - /api/users/tokens/{id}/: + /api/tenancy/tenant-groups/{id}/: get: - operationId: users_tokens_retrieve - description: Get a token object. + operationId: tenancy_tenant_groups_retrieve + description: Get a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -84420,28 +84865,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: users_tokens_update - description: Put a token object. + operationId: tenancy_tenant_groups_update + description: Put a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -84451,28 +84896,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: users_tokens_partial_update - description: Patch a token object. + operationId: tenancy_tenant_groups_partial_update + description: Patch a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -84481,208 +84926,153 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: users_tokens_destroy - description: Delete a token object. + operationId: tenancy_tenant_groups_destroy + description: Delete a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this tenant group. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/provision/: - post: - operationId: users_tokens_provision_create - description: Non-authenticated REST API endpoint via which a user may create - a Token. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvision' - description: '' - '401': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/users/: + /api/tenancy/tenants/: get: - operationId: users_users_list - description: Get a list of user objects. + operationId: tenancy_tenants_list + description: Get a list of tenant objects. parameters: - in: query - name: date_joined - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: date_joined__empty - schema: - type: boolean - - in: query - name: date_joined__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: date_joined__gte + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: date_joined__lt + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: date_joined__lte + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: date_joined__n + name: contact_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: email + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: email__ie + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__iew + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__isw + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__n + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__niew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nisw + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: first_name + name: description schema: type: array items: @@ -84690,11 +85080,11 @@ paths: explode: true style: form - in: query - name: first_name__empty + name: description__empty schema: type: boolean - in: query - name: first_name__ic + name: description__ic schema: type: array items: @@ -84702,7 +85092,7 @@ paths: explode: true style: form - in: query - name: first_name__ie + name: description__ie schema: type: array items: @@ -84710,7 +85100,7 @@ paths: explode: true style: form - in: query - name: first_name__iew + name: description__iew schema: type: array items: @@ -84718,7 +85108,7 @@ paths: explode: true style: form - in: query - name: first_name__isw + name: description__isw schema: type: array items: @@ -84726,7 +85116,7 @@ paths: explode: true style: form - in: query - name: first_name__n + name: description__n schema: type: array items: @@ -84734,7 +85124,7 @@ paths: explode: true style: form - in: query - name: first_name__nic + name: description__nic schema: type: array items: @@ -84742,7 +85132,7 @@ paths: explode: true style: form - in: query - name: first_name__nie + name: description__nie schema: type: array items: @@ -84750,7 +85140,7 @@ paths: explode: true style: form - in: query - name: first_name__niew + name: description__niew schema: type: array items: @@ -84758,7 +85148,7 @@ paths: explode: true style: form - in: query - name: first_name__nisw + name: description__nisw schema: type: array items: @@ -84771,7 +85161,6 @@ paths: type: array items: type: string - description: Group (name) explode: true style: form - in: query @@ -84780,7 +85169,6 @@ paths: type: array items: type: string - description: Group (name) explode: true style: form - in: query @@ -84788,8 +85176,7 @@ paths: schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query @@ -84797,8 +85184,7 @@ paths: schema: type: array items: - type: integer - description: Group + type: string explode: true style: form - in: query @@ -84860,19 +85246,7 @@ paths: explode: true style: form - in: query - name: is_active - schema: - type: boolean - - in: query - name: is_staff - schema: - type: boolean - - in: query - name: is_superuser - schema: - type: boolean - - in: query - name: last_login + name: last_updated schema: type: array items: @@ -84881,11 +85255,16 @@ paths: explode: true style: form - in: query - name: last_login__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: last_login__gt + name: last_updated__gt schema: type: array items: @@ -84894,7 +85273,7 @@ paths: explode: true style: form - in: query - name: last_login__gte + name: last_updated__gte schema: type: array items: @@ -84903,7 +85282,7 @@ paths: explode: true style: form - in: query - name: last_login__lt + name: last_updated__lt schema: type: array items: @@ -84912,7 +85291,7 @@ paths: explode: true style: form - in: query - name: last_login__lte + name: last_updated__lte schema: type: array items: @@ -84921,7 +85300,7 @@ paths: explode: true style: form - in: query - name: last_login__n + name: last_updated__n schema: type: array items: @@ -84929,8 +85308,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: last_name + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -84938,11 +85328,11 @@ paths: explode: true style: form - in: query - name: last_name__empty + name: name__empty schema: type: boolean - in: query - name: last_name__ic + name: name__ic schema: type: array items: @@ -84950,7 +85340,7 @@ paths: explode: true style: form - in: query - name: last_name__ie + name: name__ie schema: type: array items: @@ -84958,7 +85348,7 @@ paths: explode: true style: form - in: query - name: last_name__iew + name: name__iew schema: type: array items: @@ -84966,7 +85356,7 @@ paths: explode: true style: form - in: query - name: last_name__isw + name: name__isw schema: type: array items: @@ -84974,7 +85364,7 @@ paths: explode: true style: form - in: query - name: last_name__n + name: name__n schema: type: array items: @@ -84982,7 +85372,7 @@ paths: explode: true style: form - in: query - name: last_name__nic + name: name__nic schema: type: array items: @@ -84990,7 +85380,7 @@ paths: explode: true style: form - in: query - name: last_name__nie + name: name__nie schema: type: array items: @@ -84998,7 +85388,7 @@ paths: explode: true style: form - in: query - name: last_name__niew + name: name__niew schema: type: array items: @@ -85006,19 +85396,13 @@ paths: explode: true style: form - in: query - name: last_name__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -85032,30 +85416,24 @@ paths: schema: type: string - in: query - name: permission_id + name: q schema: - type: array - items: - type: integer - description: Permission (ID) - explode: true - style: form + type: string + description: Search - in: query - name: permission_id__n + name: slug schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: q + name: slug__empty schema: - type: string - description: Search + type: boolean - in: query - name: username + name: slug__ic schema: type: array items: @@ -85063,11 +85441,15 @@ paths: explode: true style: form - in: query - name: username__empty + name: slug__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: username__ic + name: slug__iew schema: type: array items: @@ -85075,7 +85457,7 @@ paths: explode: true style: form - in: query - name: username__ie + name: slug__isw schema: type: array items: @@ -85083,7 +85465,7 @@ paths: explode: true style: form - in: query - name: username__iew + name: slug__n schema: type: array items: @@ -85091,7 +85473,7 @@ paths: explode: true style: form - in: query - name: username__isw + name: slug__nic schema: type: array items: @@ -85099,7 +85481,7 @@ paths: explode: true style: form - in: query - name: username__n + name: slug__nie schema: type: array items: @@ -85107,7 +85489,7 @@ paths: explode: true style: form - in: query - name: username__nic + name: slug__niew schema: type: array items: @@ -85115,7 +85497,7 @@ paths: explode: true style: form - in: query - name: username__nie + name: slug__nisw schema: type: array items: @@ -85123,7 +85505,7 @@ paths: explode: true style: form - in: query - name: username__niew + name: tag schema: type: array items: @@ -85131,15 +85513,20 @@ paths: explode: true style: form - in: query - name: username__nisw + name: tag__n schema: type: array items: type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -85148,21 +85535,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedUserList' + $ref: '#/components/schemas/PaginatedTenantList' description: '' post: - operationId: users_users_create - description: Post a list of user objects. + operationId: tenancy_tenants_create + description: Post a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85172,25 +85559,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: users_users_bulk_update - description: Put a list of user objects. + operationId: tenancy_tenants_bulk_update + description: Put a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85202,25 +85589,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: users_users_bulk_partial_update - description: Patch a list of user objects. + operationId: tenancy_tenants_bulk_partial_update + description: Patch a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85232,25 +85619,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: users_users_bulk_destroy - description: Delete a list of user objects. + operationId: tenancy_tenants_bulk_destroy + description: Delete a list of tenant objects. tags: - - users + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85258,19 +85645,19 @@ paths: responses: '204': description: No response body - /api/users/users/{id}/: + /api/tenancy/tenants/{id}/: get: - operationId: users_users_retrieve - description: Get a user object. + operationId: tenancy_tenants_retrieve + description: Get a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -85279,28 +85666,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: users_users_update - description: Put a user object. + operationId: tenancy_tenants_update + description: Put a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -85310,28 +85697,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: users_users_partial_update - description: Patch a user object. + operationId: tenancy_tenants_partial_update + description: Patch a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedTenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedTenantRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -85340,153 +85727,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: users_users_destroy - description: Delete a user object. + operationId: tenancy_tenants_destroy + description: Delete a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this tenant. required: true tags: - - users + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-groups/: + /api/users/config/: get: - operationId: virtualization_cluster_groups_list - description: Get a list of cluster group objects. + operationId: users_config_retrieve + description: An API endpoint via which a user can update his or her own UserConfig + data (but no one else's). + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/groups/: + get: + operationId: users_groups_list + description: Get a list of group objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - in: query name: description schema: @@ -85629,80 +85912,12 @@ paths: format: int32 explode: true style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -85787,6 +86002,24 @@ paths: type: string explode: true style: form + - in: query + name: notification_group_id + schema: + type: array + items: + type: integer + description: Notification group (ID) + explode: true + style: form + - in: query + name: notification_group_id__n + schema: + type: array + items: + type: integer + description: Notification group (ID) + explode: true + style: form - name: offset required: false in: query @@ -85800,117 +86033,48 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: permission_id schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: permission_id__n schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__ie + name: q + schema: + type: string + description: Search + - in: query + name: user_id schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - in: query - name: slug__iew + name: user_id__n schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -85919,21 +86083,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterGroupList' + $ref: '#/components/schemas/PaginatedGroupList' description: '' post: - operationId: virtualization_cluster_groups_create - description: Post a list of cluster group objects. + operationId: users_groups_create + description: Post a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -85943,25 +86107,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' put: - operationId: virtualization_cluster_groups_bulk_update - description: Put a list of cluster group objects. + operationId: users_groups_bulk_update + description: Put a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -85973,25 +86137,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: virtualization_cluster_groups_bulk_partial_update - description: Patch a list of cluster group objects. + operationId: users_groups_bulk_partial_update + description: Patch a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -86003,25 +86167,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: virtualization_cluster_groups_bulk_destroy - description: Delete a list of cluster group objects. + operationId: users_groups_bulk_destroy + description: Delete a list of group objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -86029,19 +86193,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-groups/{id}/: + /api/users/groups/{id}/: get: - operationId: virtualization_cluster_groups_retrieve - description: Get a cluster group object. + operationId: users_groups_retrieve + description: Get a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -86050,28 +86214,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' put: - operationId: virtualization_cluster_groups_update - description: Put a cluster group object. + operationId: users_groups_update + description: Put a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -86081,28 +86245,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: virtualization_cluster_groups_partial_update - description: Patch a cluster group object. + operationId: users_groups_partial_update + description: Patch a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86111,99 +86275,47 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: virtualization_cluster_groups_destroy - description: Delete a cluster group object. + operationId: users_groups_destroy + description: Delete a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this group. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-types/: + /api/users/permissions/: get: - operationId: virtualization_cluster_types_list - description: Get a list of cluster type objects. + operationId: users_permissions_list + description: Get a list of permission objects. parameters: - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt + name: can_add schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__lte + name: can_change schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__n + name: can_delete schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created_by_request + name: can_view schema: - type: string - format: uuid + type: boolean - in: query name: description schema: @@ -86289,56 +86401,47 @@ paths: explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty + name: enabled schema: type: boolean - in: query - name: id__gt + name: group schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: id__gte + name: group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: id__lt + name: group_id schema: type: array items: type: integer - format: int32 + description: Group explode: true style: form - in: query - name: id__lte + name: group_id__n schema: type: array items: type: integer - format: int32 + description: Group explode: true style: form - in: query - name: id__n + name: id schema: type: array items: @@ -86347,66 +86450,52 @@ paths: explode: true style: form - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - name: limit @@ -86415,11 +86504,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -86504,130 +86588,133 @@ paths: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: object_type schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + - in: query + name: object_type__ic schema: type: string - in: query - name: q + name: object_type__ie schema: type: string - description: Search - in: query - name: slug + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__empty + name: object_type__isw schema: - type: boolean + type: string - in: query - name: slug__ic + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__ie + name: object_type__nic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__iew + name: object_type__nie schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__isw + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__n + name: object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__nic + name: object_types schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__nie + name: object_types__n schema: type: array items: - type: string + type: integer explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: slug__niew + name: q + schema: + type: string + description: Search + - in: query + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: slug__nisw + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: tag + name: user_id schema: type: array items: - type: string + type: integer + description: User explode: true style: form - in: query - name: tag__n + name: user_id__n schema: type: array items: - type: string + type: integer + description: User explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -86636,21 +86723,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterTypeList' + $ref: '#/components/schemas/PaginatedObjectPermissionList' description: '' post: - operationId: virtualization_cluster_types_create - description: Post a list of cluster type objects. + operationId: users_permissions_create + description: Post a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86660,25 +86747,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: virtualization_cluster_types_bulk_update - description: Put a list of cluster type objects. + operationId: users_permissions_bulk_update + description: Put a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86690,25 +86777,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: virtualization_cluster_types_bulk_partial_update - description: Patch a list of cluster type objects. + operationId: users_permissions_bulk_partial_update + description: Patch a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86720,25 +86807,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: virtualization_cluster_types_bulk_destroy - description: Delete a list of cluster type objects. + operationId: users_permissions_bulk_destroy + description: Delete a list of permission objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86746,19 +86833,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-types/{id}/: + /api/users/permissions/{id}/: get: - operationId: virtualization_cluster_types_retrieve - description: Get a cluster type object. + operationId: users_permissions_retrieve + description: Get a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -86767,28 +86854,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: virtualization_cluster_types_update - description: Put a cluster type object. + operationId: users_permissions_update + description: Put a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -86798,28 +86885,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: virtualization_cluster_types_partial_update - description: Patch a cluster type object. + operationId: users_permissions_partial_update + description: Patch a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86828,153 +86915,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: virtualization_cluster_types_destroy - description: Delete a cluster type object. + operationId: users_permissions_destroy + description: Delete a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this permission. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/clusters/: + /api/users/tokens/: get: - operationId: virtualization_clusters_list - description: Get a list of cluster objects. + operationId: users_tokens_list + description: Get a list of token objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query name: created__gte schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request schema: type: string - format: uuid + format: date-time - in: query name: description schema: @@ -87060,43 +87040,20 @@ paths: explode: true style: form - in: query - name: group - schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form - - in: query - name: group__n + name: expires schema: - type: array - items: - type: string - description: Parent group (slug) - explode: true - style: form + type: string + format: date-time - in: query - name: group_id + name: expires__gte schema: - type: array - items: - type: integer - nullable: true - description: Parent group (ID) - explode: true - style: form + type: string + format: date-time - in: query - name: group_id__n + name: expires__lte schema: - type: array - items: - type: integer - nullable: true - description: Parent group (ID) - explode: true - style: form + type: string + format: date-time - in: query name: id schema: @@ -87156,81 +87113,59 @@ paths: explode: true style: form - in: query - name: last_updated + name: key schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: key__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: key__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: key__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: key__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: key__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: key__n schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: key__nic schema: type: array items: @@ -87238,11 +87173,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: key__nie schema: type: array items: @@ -87250,7 +87181,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: key__niew schema: type: array items: @@ -87258,7 +87189,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: key__nisw schema: type: array items: @@ -87266,53 +87197,69 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_used schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_used__empty + schema: + type: boolean + - in: query + name: last_used__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_used__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_used__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_used__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_used__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - name: offset required: false in: query @@ -87331,266 +87278,47 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 79d20a734d0eecbb - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 79d20a734d0eecbb - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type + name: user schema: type: array items: type: string - description: Cluster type (slug) + description: User (name) explode: true style: form - in: query - name: type__n + name: user__n schema: type: array items: type: string - description: Cluster type (slug) + description: User (name) explode: true style: form - in: query - name: type_id + name: user_id schema: type: array items: type: integer - description: Cluster type (ID) + description: User explode: true style: form - in: query - name: type_id__n + name: user_id__n schema: type: array items: type: integer - description: Cluster type (ID) + description: User explode: true style: form - in: query - name: updated_by_request + name: write_enabled schema: - type: string - format: uuid + type: boolean tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -87599,21 +87327,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterList' + $ref: '#/components/schemas/PaginatedTokenList' description: '' post: - operationId: virtualization_clusters_create - description: Post a list of cluster objects. + operationId: users_tokens_create + description: Post a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87623,25 +87351,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' put: - operationId: virtualization_clusters_bulk_update - description: Put a list of cluster objects. + operationId: users_tokens_bulk_update + description: Put a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87653,25 +87381,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: virtualization_clusters_bulk_partial_update - description: Patch a list of cluster objects. + operationId: users_tokens_bulk_partial_update + description: Patch a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87683,25 +87411,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: virtualization_clusters_bulk_destroy - description: Delete a list of cluster objects. + operationId: users_tokens_bulk_destroy + description: Delete a list of token objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87709,19 +87437,19 @@ paths: responses: '204': description: No response body - /api/virtualization/clusters/{id}/: + /api/users/tokens/{id}/: get: - operationId: virtualization_clusters_retrieve - description: Get a cluster object. + operationId: users_tokens_retrieve + description: Get a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -87730,28 +87458,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' put: - operationId: virtualization_clusters_update - description: Put a cluster object. + operationId: users_tokens_update + description: Put a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -87761,28 +87489,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: virtualization_clusters_partial_update - description: Patch a cluster object. + operationId: users_tokens_partial_update + description: Patch a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedTokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedTokenRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -87791,87 +87519,106 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: virtualization_clusters_destroy - description: Delete a cluster object. + operationId: users_tokens_destroy + description: Delete a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this token. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/interfaces/: + /api/users/tokens/provision/: + post: + operationId: users_tokens_provision_create + description: Non-authenticated REST API endpoint via which a user may create + a Token. + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvision' + description: '' + '401': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/users/: get: - operationId: virtualization_interfaces_list - description: Get a list of interface objects. + operationId: users_users_list + description: Get a list of user objects. parameters: - in: query - name: bridge_id + name: date_joined schema: type: array items: - type: integer - description: Bridged interface (ID) + type: string + format: date-time explode: true style: form - in: query - name: bridge_id__n + name: date_joined__empty schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form + type: boolean - in: query - name: cluster + name: date_joined__gt schema: type: array items: type: string - description: Cluster + format: date-time explode: true style: form - in: query - name: cluster__n + name: date_joined__gte schema: type: array items: type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: integer - description: Cluster (ID) + format: date-time explode: true style: form - in: query - name: cluster_id__n + name: date_joined__lt schema: type: array items: - type: integer - description: Cluster (ID) + type: string + format: date-time explode: true style: form - in: query - name: created + name: date_joined__lte schema: type: array items: @@ -87880,7 +87627,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: date_joined__n schema: type: array items: @@ -87889,57 +87636,51 @@ paths: explode: true style: form - in: query - name: created__gt + name: email schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: email__empty + schema: + type: boolean + - in: query + name: email__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: email__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: email__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: email__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: email__n schema: type: array items: @@ -87947,11 +87688,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: email__nic schema: type: array items: @@ -87959,7 +87696,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: email__nie schema: type: array items: @@ -87967,7 +87704,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: email__niew schema: type: array items: @@ -87975,7 +87712,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: email__nisw schema: type: array items: @@ -87983,7 +87720,7 @@ paths: explode: true style: form - in: query - name: description__n + name: first_name schema: type: array items: @@ -87991,7 +87728,11 @@ paths: explode: true style: form - in: query - name: description__nic + name: first_name__empty + schema: + type: boolean + - in: query + name: first_name__ic schema: type: array items: @@ -87999,7 +87740,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: first_name__ie schema: type: array items: @@ -88007,7 +87748,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: first_name__iew schema: type: array items: @@ -88015,7 +87756,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: first_name__isw schema: type: array items: @@ -88023,254 +87764,211 @@ paths: explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: first_name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: first_name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: first_name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: first_name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: first_name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: group schema: type: array items: - type: integer - format: int32 + type: string + description: Group (name) explode: true style: form - in: query - name: l2vpn + name: group__n schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + description: Group (name) explode: true style: form - in: query - name: l2vpn__n + name: group_id schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + description: Group explode: true style: form - in: query - name: l2vpn_id + name: group_id__n schema: type: array items: type: integer - description: L2VPN (ID) + description: Group explode: true style: form - in: query - name: l2vpn_id__n + name: id schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query - name: last_updated + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__empty + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + name: is_active schema: - type: integer + type: boolean - in: query - name: mac_address + name: is_staff schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__ic + name: is_superuser schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__ie + name: last_login schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__iew + name: last_login__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__isw + name: last_login__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__n + name: last_login__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__nic + name: last_login__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__nie + name: last_login__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__niew + name: last_login__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: mac_address__nisw + name: last_name schema: type: array items: @@ -88278,104 +87976,19 @@ paths: explode: true style: form - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty + name: last_name__empty schema: type: boolean - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__n + name: last_name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: name + name: last_name__ie schema: type: array items: @@ -88383,11 +87996,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: last_name__iew schema: type: array items: @@ -88395,7 +88004,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: last_name__isw schema: type: array items: @@ -88403,7 +88012,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_name__n schema: type: array items: @@ -88411,7 +88020,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_name__nic schema: type: array items: @@ -88419,7 +88028,7 @@ paths: explode: true style: form - in: query - name: name__n + name: last_name__nie schema: type: array items: @@ -88427,7 +88036,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: last_name__niew schema: type: array items: @@ -88435,27 +88044,35 @@ paths: explode: true style: form - in: query - name: name__nie + name: last_name__nisw schema: type: array items: type: string explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: name__niew + name: notification_group_id schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - in: query - name: name__nisw + name: notification_group_id__n schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - name: offset @@ -88471,21 +88088,21 @@ paths: schema: type: string - in: query - name: parent_id + name: permission_id schema: type: array items: type: integer - description: Parent interface (ID) + description: Permission (ID) explode: true style: form - in: query - name: parent_id__n + name: permission_id__n schema: type: array items: type: integer - description: Parent interface (ID) + description: Permission (ID) explode: true style: form - in: query @@ -88494,7 +88111,7 @@ paths: type: string description: Search - in: query - name: tag + name: username schema: type: array items: @@ -88502,7 +88119,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: username__empty + schema: + type: boolean + - in: query + name: username__ic schema: type: array items: @@ -88510,98 +88131,71 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: username__ie schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine__n + name: username__iew schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine_id + name: username__isw schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: username__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf + name: username__nic schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: username__nie schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: username__niew schema: type: array items: - type: integer - description: VRF + type: string explode: true style: form - in: query - name: vrf_id__n + name: username__nisw schema: type: array items: - type: integer - description: VRF + type: string explode: true style: form tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -88610,21 +88204,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVMInterfaceList' + $ref: '#/components/schemas/PaginatedUserList' description: '' post: - operationId: virtualization_interfaces_create - description: Post a list of interface objects. + operationId: users_users_create + description: Post a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88634,25 +88228,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' put: - operationId: virtualization_interfaces_bulk_update - description: Put a list of interface objects. + operationId: users_users_bulk_update + description: Put a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88664,25 +88258,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' patch: - operationId: virtualization_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: users_users_bulk_partial_update + description: Patch a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88694,25 +88288,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' delete: - operationId: virtualization_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: users_users_bulk_destroy + description: Delete a list of user objects. tags: - - virtualization + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88720,19 +88314,19 @@ paths: responses: '204': description: No response body - /api/virtualization/interfaces/{id}/: + /api/users/users/{id}/: get: - operationId: virtualization_interfaces_retrieve - description: Get a interface object. + operationId: users_users_retrieve + description: Get a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] @@ -88741,28 +88335,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' put: - operationId: virtualization_interfaces_update - description: Put a interface object. + operationId: users_users_update + description: Put a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -88772,28 +88366,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' patch: - operationId: virtualization_interfaces_partial_update - description: Patch a interface object. + operationId: users_users_partial_update + description: Patch a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedUserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedUserRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -88802,31 +88396,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/User' description: '' delete: - operationId: virtualization_interfaces_destroy - description: Delete a interface object. + operationId: users_users_destroy + description: Delete a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this user. required: true tags: - - virtualization + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-disks/: + /api/virtualization/cluster-groups/: get: - operationId: virtualization_virtual_disks_list - description: Get a list of virtual disk objects. + operationId: virtualization_cluster_groups_list + description: Get a list of cluster group objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -89213,65 +88859,59 @@ paths: type: string description: Search - in: query - name: size + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty + name: slug__empty schema: type: boolean - in: query - name: size__gt + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: slug__nic schema: type: array items: @@ -89279,7 +88919,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nie schema: type: array items: @@ -89287,46 +88927,42 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: slug__niew schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine__n + name: slug__nisw schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine_id + name: tag schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: tag__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - virtualization security: @@ -89337,21 +88973,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDiskList' + $ref: '#/components/schemas/PaginatedClusterGroupList' description: '' post: - operationId: virtualization_virtual_disks_create - description: Post a list of virtual disk objects. + operationId: virtualization_cluster_groups_create + description: Post a list of cluster group objects. tags: - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89361,11 +88997,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: virtualization_virtual_disks_bulk_update - description: Put a list of virtual disk objects. + operationId: virtualization_cluster_groups_bulk_update + description: Put a list of cluster group objects. tags: - virtualization requestBody: @@ -89374,12 +89010,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89391,11 +89027,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: virtualization_virtual_disks_bulk_partial_update - description: Patch a list of virtual disk objects. + operationId: virtualization_cluster_groups_bulk_partial_update + description: Patch a list of cluster group objects. tags: - virtualization requestBody: @@ -89404,12 +89040,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89421,11 +89057,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: virtualization_virtual_disks_bulk_destroy - description: Delete a list of virtual disk objects. + operationId: virtualization_cluster_groups_bulk_destroy + description: Delete a list of cluster group objects. tags: - virtualization requestBody: @@ -89434,12 +89070,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89447,16 +89083,16 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-disks/{id}/: + /api/virtualization/cluster-groups/{id}/: get: - operationId: virtualization_virtual_disks_retrieve - description: Get a virtual disk object. + operationId: virtualization_cluster_groups_retrieve + description: Get a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89468,17 +89104,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: virtualization_virtual_disks_update - description: Put a virtual disk object. + operationId: virtualization_cluster_groups_update + description: Put a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89486,10 +89122,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -89499,17 +89135,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: virtualization_virtual_disks_partial_update - description: Patch a virtual disk object. + operationId: virtualization_cluster_groups_partial_update + description: Patch a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89517,10 +89153,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -89529,17 +89165,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: virtualization_virtual_disks_destroy - description: Delete a virtual disk object. + operationId: virtualization_cluster_groups_destroy + description: Delete a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this cluster group. required: true tags: - virtualization @@ -89549,197 +89185,223 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/: + /api/virtualization/cluster-types/: get: - operationId: virtualization_virtual_machines_list - description: Get a list of virtual machine objects. + operationId: virtualization_cluster_types_list + description: Get a list of cluster type objects. parameters: - in: query - name: cluster + name: created schema: type: array items: type: string - description: Cluster + format: date-time explode: true style: form - in: query - name: cluster__n + name: created__empty schema: type: array items: type: string - description: Cluster + format: date-time explode: true style: form - in: query - name: cluster_group + name: created__gt schema: type: array items: type: string - description: Cluster group (slug) + format: date-time explode: true style: form - in: query - name: cluster_group__n + name: created__gte schema: type: array items: type: string - description: Cluster group (slug) + format: date-time explode: true style: form - in: query - name: cluster_group_id + name: created__lt schema: type: array items: - type: integer - description: Cluster group (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_group_id__n + name: created__lte schema: type: array items: - type: integer - description: Cluster group (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_id + name: created__n schema: type: array items: - type: integer - nullable: true - description: Cluster (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_id__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - nullable: true - description: Cluster (ID) + type: string explode: true style: form - in: query - name: cluster_type + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type__n + name: description__ie schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type_id + name: description__iew schema: type: array items: - type: integer - description: Cluster type (ID) + type: string explode: true style: form - in: query - name: cluster_type_id__n + name: description__isw schema: type: array items: - type: integer - description: Cluster type (ID) + type: string explode: true style: form - in: query - name: config_template_id + name: description__n schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: config_template_id__n + name: description__nic schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: contact + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: id__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: id__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: last_updated schema: type: array items: @@ -89748,7 +89410,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -89757,7 +89419,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -89766,7 +89428,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -89775,7 +89437,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -89784,7 +89446,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -89793,7 +89455,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -89801,13 +89463,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -89815,11 +89483,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -89827,7 +89495,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -89835,7 +89503,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -89843,7 +89511,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -89851,7 +89519,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -89859,7 +89527,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -89867,7 +89535,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -89875,7 +89543,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -89883,234 +89551,425 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device + name: q schema: - type: array - items: - type: string - nullable: true - description: Device - explode: true - style: form + type: string + description: Search - in: query - name: device__n + name: slug schema: type: array items: type: string - nullable: true - description: Device explode: true style: form - in: query - name: device_id + name: slug__empty schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form + type: boolean - in: query - name: device_id__n + name: slug__ic schema: type: array items: - type: integer - nullable: true - description: Device (ID) + type: string explode: true style: form - in: query - name: disk + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__empty - schema: - type: boolean - - in: query - name: disk__gt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__gte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__lt + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__lte + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: disk__n + name: slug__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id + name: slug__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: slug__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedClusterTypeList' + description: '' + post: + operationId: virtualization_cluster_types_create + description: Post a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + put: + operationId: virtualization_cluster_types_bulk_update + description: Put a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterType' + description: '' + patch: + operationId: virtualization_cluster_types_bulk_partial_update + description: Patch a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterType' + description: '' + delete: + operationId: virtualization_cluster_types_bulk_destroy + description: Delete a list of cluster type objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/cluster-types/{id}/: + get: + operationId: virtualization_cluster_types_retrieve + description: Get a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + put: + operationId: virtualization_cluster_types_update + description: Put a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ClusterTypeRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + patch: + operationId: virtualization_cluster_types_partial_update + description: Patch a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedClusterTypeRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedClusterTypeRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ClusterType' + description: '' + delete: + operationId: virtualization_cluster_types_destroy + description: Delete a cluster type object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this cluster type. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/clusters/: + get: + operationId: virtualization_clusters_list + description: Get a list of cluster objects. + parameters: - in: query - name: id__n + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: interface_count + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__gte + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: interface_count__lte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: interface_count__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: created__empty schema: type: array items: @@ -90119,7 +89978,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__gt schema: type: array items: @@ -90128,7 +89987,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gte schema: type: array items: @@ -90137,7 +89996,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__lt schema: type: array items: @@ -90146,7 +90005,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lte schema: type: array items: @@ -90155,7 +90014,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__n schema: type: array items: @@ -90164,27 +90023,24 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: local_context_data + name: description__empty schema: type: boolean - description: Has local config context data - in: query - name: mac_address + name: description__ic schema: type: array items: @@ -90192,7 +90048,7 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: description__ie schema: type: array items: @@ -90200,7 +90056,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: description__iew schema: type: array items: @@ -90208,7 +90064,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: description__isw schema: type: array items: @@ -90216,7 +90072,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: description__n schema: type: array items: @@ -90224,7 +90080,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: description__nic schema: type: array items: @@ -90232,7 +90088,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: description__nie schema: type: array items: @@ -90240,7 +90096,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: description__niew schema: type: array items: @@ -90248,7 +90104,7 @@ paths: explode: true style: form - in: query - name: mac_address__niew + name: description__nisw schema: type: array items: @@ -90256,46 +90112,45 @@ paths: explode: true style: form - in: query - name: mac_address__nisw + name: group schema: type: array items: type: string + description: Parent group (slug) explode: true style: form - in: query - name: memory + name: group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Parent group (slug) explode: true style: form - in: query - name: memory__empty - schema: - type: boolean - - in: query - name: memory__gt + name: group_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent group (ID) explode: true style: form - in: query - name: memory__gte + name: group_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent group (ID) explode: true style: form - in: query - name: memory__lt + name: id schema: type: array items: @@ -90304,7 +90159,11 @@ paths: explode: true style: form - in: query - name: memory__lte + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -90313,7 +90172,7 @@ paths: explode: true style: form - in: query - name: memory__n + name: id__gte schema: type: array items: @@ -90322,257 +90181,237 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: platform + name: name schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: name__empty schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form + type: boolean - in: query - name: platform_id + name: name__ic schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: name__ie schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id + name: name__iew schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: name__isw schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: name__n schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: name__nic schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: name__nie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: name__niew schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: name__nisw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: region_id__n + name: q schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: string + description: Search - in: query - name: role + name: region schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: region__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: region_id schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: region_id__n schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query @@ -90598,8 +90437,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -90607,8 +90445,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -90616,8 +90453,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -90625,8 +90461,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -90655,7 +90490,7 @@ paths: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + x-spec-enum-id: 79d20a734d0eecbb explode: true style: form - in: query @@ -90664,7 +90499,7 @@ paths: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + x-spec-enum-id: 79d20a734d0eecbb explode: true style: form - in: query @@ -90706,8 +90541,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -90715,8 +90549,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -90724,8 +90557,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -90733,8 +90565,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -90758,126 +90589,46 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vcpus - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__empty - schema: - type: boolean - - in: query - name: vcpus__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lt + name: type schema: type: array items: - type: number - format: double + type: string + description: Cluster type (slug) explode: true style: form - in: query - name: vcpus__lte + name: type__n schema: type: array items: - type: number - format: double + type: string + description: Cluster type (slug) explode: true style: form - in: query - name: vcpus__n + name: type_id schema: type: array items: - type: number - format: double + type: integer + description: Cluster type (ID) explode: true style: form - in: query - name: virtual_disk_count + name: type_id__n schema: type: array items: type: integer - format: int32 + description: Cluster type (ID) explode: true style: form - in: query - name: virtual_disk_count__empty - schema: - type: boolean - - in: query - name: virtual_disk_count__gt + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - virtualization security: @@ -90888,21 +90639,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + $ref: '#/components/schemas/PaginatedClusterList' description: '' post: - operationId: virtualization_virtual_machines_create - description: Post a list of virtual machine objects. + operationId: virtualization_clusters_create + description: Post a list of cluster objects. tags: - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -90912,11 +90663,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: virtualization_virtual_machines_bulk_update - description: Put a list of virtual machine objects. + operationId: virtualization_clusters_bulk_update + description: Put a list of cluster objects. tags: - virtualization requestBody: @@ -90925,12 +90676,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -90942,11 +90693,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: virtualization_virtual_machines_bulk_partial_update - description: Patch a list of virtual machine objects. + operationId: virtualization_clusters_bulk_partial_update + description: Patch a list of cluster objects. tags: - virtualization requestBody: @@ -90955,12 +90706,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -90972,11 +90723,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: virtualization_virtual_machines_bulk_destroy - description: Delete a list of virtual machine objects. + operationId: virtualization_clusters_bulk_destroy + description: Delete a list of cluster objects. tags: - virtualization requestBody: @@ -90985,12 +90736,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -90998,16 +90749,16 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/: + /api/virtualization/clusters/{id}/: get: - operationId: virtualization_virtual_machines_retrieve - description: Get a virtual machine object. + operationId: virtualization_clusters_retrieve + description: Get a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91019,17 +90770,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: virtualization_virtual_machines_update - description: Put a virtual machine object. + operationId: virtualization_clusters_update + description: Put a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91037,10 +90788,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -91050,17 +90801,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: virtualization_virtual_machines_partial_update - description: Patch a virtual machine object. + operationId: virtualization_clusters_partial_update + description: Patch a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91068,10 +90819,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91080,17 +90831,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: virtualization_virtual_machines_destroy - description: Delete a virtual machine object. + operationId: virtualization_clusters_destroy + description: Delete a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this cluster. required: true tags: - virtualization @@ -91100,53 +90851,65 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/render-config/: - post: - operationId: virtualization_virtual_machines_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/virtualization/interfaces/: + get: + operationId: virtualization_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: format + name: bridge_id schema: - type: string - enum: - - json - - txt - - in: path - name: id + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: bridge_id__n schema: - type: integer - description: A unique integer value identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - /api/vpn/ike-policies/: - get: - operationId: vpn_ike_policies_list - description: Get a list of IKE policy objects. - parameters: + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + description: Cluster (ID) + explode: true + style: form - in: query name: created schema: @@ -91299,6 +91062,10 @@ paths: type: string explode: true style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -91358,35 +91125,47 @@ paths: explode: true style: form - in: query - name: ike_proposal + name: l2vpn schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: ike_proposal__n + name: l2vpn__n schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: ike_proposal_id + name: l2vpn_id schema: type: array items: type: integer + description: L2VPN (ID) explode: true style: form - in: query - name: ike_proposal_id__n + name: l2vpn_id__n schema: type: array items: type: integer + description: L2VPN (ID) explode: true style: form - in: query @@ -91459,28 +91238,182 @@ paths: schema: type: integer - in: query - name: mode + name: mac_address schema: type: array items: type: string - x-spec-enum-id: 64c1be7bdb2548ca explode: true style: form - in: query - name: mode__n + name: mac_address__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__iew schema: type: array items: type: string - x-spec-enum-id: 64c1be7bdb2548ca explode: true style: form + - in: query + name: mac_address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mode + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: mode__n + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: mtu + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__empty + schema: + type: boolean + - in: query + name: mtu__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: name schema: @@ -91578,123 +91511,137 @@ paths: schema: type: string - in: query - name: preshared_key - schema: - type: string - - in: query - name: preshared_key__ic - schema: - type: string - - in: query - name: preshared_key__ie - schema: - type: string - - in: query - name: preshared_key__iew - schema: - type: string - - in: query - name: preshared_key__isw + name: parent_id schema: - type: string + type: array + items: + type: integer + description: Parent interface (ID) + explode: true + style: form - in: query - name: preshared_key__n + name: parent_id__n schema: - type: string + type: array + items: + type: integer + description: Parent interface (ID) + explode: true + style: form - in: query - name: preshared_key__nic + name: q schema: type: string + description: Search - in: query - name: preshared_key__nie + name: tag schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__niew + name: tag__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__nisw + name: updated_by_request schema: type: string + format: uuid - in: query - name: proposal + name: virtual_machine schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: proposal__n + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: proposal_id + name: virtual_machine_id schema: type: array items: type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: proposal_id__n + name: virtual_machine_id__n schema: type: array items: type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: q + name: vlan schema: type: string - description: Search + description: Assigned VID - in: query - name: tag + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tag__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: version + name: vrf_id schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + description: VRF explode: true style: form - in: query - name: version__n + name: vrf_id__n schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + description: VRF explode: true style: form tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -91703,21 +91650,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEPolicyList' + $ref: '#/components/schemas/PaginatedVMInterfaceList' description: '' post: - operationId: vpn_ike_policies_create - description: Post a list of IKE policy objects. + operationId: virtualization_interfaces_create + description: Post a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91727,25 +91674,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: vpn_ike_policies_bulk_update - description: Put a list of IKE policy objects. + operationId: virtualization_interfaces_bulk_update + description: Put a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91757,25 +91704,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: vpn_ike_policies_bulk_partial_update - description: Patch a list of IKE policy objects. + operationId: virtualization_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91787,25 +91734,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: vpn_ike_policies_bulk_destroy - description: Delete a list of IKE policy objects. + operationId: virtualization_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91813,19 +91760,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-policies/{id}/: + /api/virtualization/interfaces/{id}/: get: - operationId: vpn_ike_policies_retrieve - description: Get a IKE policy object. + operationId: virtualization_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -91834,28 +91781,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: vpn_ike_policies_update - description: Put a IKE policy object. + operationId: virtualization_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -91865,28 +91812,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: vpn_ike_policies_partial_update - description: Patch a IKE policy object. + operationId: virtualization_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91895,67 +91842,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: vpn_ike_policies_destroy - description: Delete a IKE policy object. + operationId: virtualization_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this interface. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ike-proposals/: + /api/virtualization/virtual-disks/: get: - operationId: vpn_ike_proposals_list - description: Get a list of IKE proposal objects. + operationId: virtualization_virtual_disks_list + description: Get a list of virtual disk objects. parameters: - - in: query - name: authentication_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form - - in: query - name: authentication_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form - - in: query - name: authentication_method - schema: - type: array - items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 - explode: true - style: form - - in: query - name: authentication_method__n - schema: - type: array - items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 - explode: true - style: form - in: query name: created schema: @@ -92108,44 +92019,6 @@ paths: type: string explode: true style: form - - in: query - name: encryption_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - explode: true - style: form - - in: query - name: encryption_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID - explode: true - style: form - in: query name: id schema: @@ -92204,42 +92077,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ike_policy - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy__n - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy_id - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ike_policy_id__n - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -92416,7 +92253,7 @@ paths: type: string description: Search - in: query - name: sa_lifetime + name: size schema: type: array items: @@ -92425,11 +92262,11 @@ paths: explode: true style: form - in: query - name: sa_lifetime__empty + name: size__empty schema: type: boolean - in: query - name: sa_lifetime__gt + name: size__gt schema: type: array items: @@ -92438,7 +92275,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__gte + name: size__gte schema: type: array items: @@ -92447,7 +92284,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__lt + name: size__lt schema: type: array items: @@ -92456,7 +92293,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__lte + name: size__lte schema: type: array items: @@ -92465,7 +92302,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime__n + name: size__n schema: type: array items: @@ -92494,8 +92331,44 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine_id + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -92504,21 +92377,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEProposalList' + $ref: '#/components/schemas/PaginatedVirtualDiskList' description: '' post: - operationId: vpn_ike_proposals_create - description: Post a list of IKE proposal objects. + operationId: virtualization_virtual_disks_create + description: Post a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92528,25 +92401,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' put: - operationId: vpn_ike_proposals_bulk_update - description: Put a list of IKE proposal objects. + operationId: virtualization_virtual_disks_bulk_update + description: Put a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92558,25 +92431,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' patch: - operationId: vpn_ike_proposals_bulk_partial_update - description: Patch a list of IKE proposal objects. + operationId: virtualization_virtual_disks_bulk_partial_update + description: Patch a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92588,25 +92461,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' delete: - operationId: vpn_ike_proposals_bulk_destroy - description: Delete a list of IKE proposal objects. + operationId: virtualization_virtual_disks_bulk_destroy + description: Delete a list of virtual disk objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92614,19 +92487,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-proposals/{id}/: + /api/virtualization/virtual-disks/{id}/: get: - operationId: vpn_ike_proposals_retrieve - description: Get a IKE proposal object. + operationId: virtualization_virtual_disks_retrieve + description: Get a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -92635,28 +92508,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' put: - operationId: vpn_ike_proposals_update - description: Put a IKE proposal object. + operationId: virtualization_virtual_disks_update + description: Put a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -92666,28 +92539,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' patch: - operationId: vpn_ike_proposals_partial_update - description: Patch a IKE proposal object. + operationId: virtualization_virtual_disks_partial_update + description: Patch a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedVirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedVirtualDiskRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -92696,31 +92569,213 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/VirtualDisk' description: '' delete: - operationId: vpn_ike_proposals_destroy - description: Delete a IKE proposal object. + operationId: virtualization_virtual_disks_destroy + description: Delete a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this virtual disk. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-policies/: + /api/virtualization/virtual-machines/: get: - operationId: vpn_ipsec_policies_list - description: Get a list of IPSec policy objects. + operationId: virtualization_virtual_machines_list + description: Get a list of virtual machine objects. parameters: + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_group + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group__n + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group_id + schema: + type: array + items: + type: integer + description: Cluster group (ID) + explode: true + style: form + - in: query + name: cluster_group_id__n + schema: + type: array + items: + type: integer + description: Cluster group (ID) + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_type + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type_id + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: config_template_id + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: config_template_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -92873,6 +92928,109 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: disk + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__empty + schema: + type: boolean + - in: query + name: disk__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP - in: query name: id schema: @@ -92932,35 +93090,61 @@ paths: explode: true style: form - in: query - name: ipsec_proposal + name: interface_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_proposal__n + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_proposal_id + name: interface_count__gte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: ipsec_proposal_id__n + name: interface_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__n schema: type: array items: type: integer + format: int32 explode: true style: form - in: query @@ -93033,12 +93217,12 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: local_context_data schema: - type: string - format: uuid + type: boolean + description: Has local config context data - in: query - name: name + name: mac_address schema: type: array items: @@ -93046,11 +93230,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: mac_address__ic schema: type: array items: @@ -93058,7 +93238,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__ie schema: type: array items: @@ -93066,7 +93246,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__iew schema: type: array items: @@ -93074,7 +93254,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: mac_address__isw schema: type: array items: @@ -93082,7 +93262,7 @@ paths: explode: true style: form - in: query - name: name__n + name: mac_address__n schema: type: array items: @@ -93090,7 +93270,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: mac_address__nic schema: type: array items: @@ -93098,7 +93278,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: mac_address__nie schema: type: array items: @@ -93106,7 +93286,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: mac_address__niew schema: type: array items: @@ -93114,86 +93294,78 @@ paths: explode: true style: form - in: query - name: name__nisw + name: mac_address__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: pfs_group + name: memory schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + format: int32 explode: true style: form - in: query - name: pfs_group__n + name: memory__empty + schema: + type: boolean + - in: query + name: memory__gt schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + format: int32 explode: true style: form - in: query - name: proposal + name: memory__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: proposal__n + name: memory__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: proposal_id + name: memory__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: proposal_id__n + name: memory__n schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: tag + name: name schema: type: array items: @@ -93201,7 +93373,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -93209,375 +93385,162 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedIPSecPolicyList' - description: '' - post: - operationId: vpn_ipsec_policies_create - description: Post a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - put: - operationId: vpn_ipsec_policies_bulk_update - description: Put a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - patch: - operationId: vpn_ipsec_policies_bulk_partial_update - description: Patch a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - delete: - operationId: vpn_ipsec_policies_bulk_destroy - description: Delete a list of IPSec policy objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/vpn/ipsec-policies/{id}/: - get: - operationId: vpn_ipsec_policies_retrieve - description: Get a IPSec policy object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - put: - operationId: vpn_ipsec_policies_update - description: Put a IPSec policy object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - patch: - operationId: vpn_ipsec_policies_partial_update - description: Patch a IPSec policy object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/IPSecPolicy' - description: '' - delete: - operationId: vpn_ipsec_policies_destroy - description: Delete a IPSec policy object. - parameters: - - in: path - name: id + name: name__ie schema: - type: integer - description: A unique integer value identifying this IPSec policy. - required: true - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/vpn/ipsec-profiles/: - get: - operationId: vpn_ipsec_profiles_list - description: Get a list of IPSec profile objects. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query - name: created + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - in: query - name: created_by_request + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: description + name: platform schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: platform__n schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: description__ie + name: platform_id schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: description__iew + name: platform_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: description__isw + name: primary_ip4_id schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: description__n + name: primary_ip4_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: description__nic + name: primary_ip6_id schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: description__nie + name: primary_ip6_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: description__niew + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -93585,7 +93548,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: region__n schema: type: array items: @@ -93593,257 +93556,233 @@ paths: explode: true style: form - in: query - name: id + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: id__lt + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: id__lte + name: role_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Role (ID) explode: true style: form - in: query - name: id__n + name: role_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Role (ID) explode: true style: form - in: query - name: ike_policy + name: serial schema: type: array items: type: string - description: IKE policy (name) explode: true style: form - in: query - name: ike_policy__n + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: type: string - description: IKE policy (name) explode: true style: form - in: query - name: ike_policy_id + name: serial__ie schema: type: array items: - type: integer - description: IKE policy (ID) + type: string explode: true style: form - in: query - name: ike_policy_id__n + name: serial__iew schema: type: array items: - type: integer - description: IKE policy (ID) + type: string explode: true style: form - in: query - name: ipsec_policy + name: serial__isw schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy__n + name: serial__n schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy_id + name: serial__nic schema: type: array items: - type: integer - description: IPSec policy (ID) + type: string explode: true style: form - in: query - name: ipsec_policy_id__n + name: serial__nie schema: type: array items: - type: integer - description: IPSec policy (ID) + type: string explode: true style: form - in: query - name: last_updated + name: serial__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: serial__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: site schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__gte + name: site__n schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__lt + name: site_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: site_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: site_group_id schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: mode + name: site_group_id__n schema: type: array items: type: string - x-spec-enum-id: 1136c2cdfee84436 explode: true style: form - in: query - name: mode__n + name: site_id schema: type: array items: - type: string - x-spec-enum-id: 1136c2cdfee84436 + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: site_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__ie + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__iew + name: tag schema: type: array items: @@ -93851,7 +93790,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: tag__n schema: type: array items: @@ -93859,23 +93798,25 @@ paths: explode: true style: form - in: query - name: name__n + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nic + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nie + name: tenant_group schema: type: array items: @@ -93883,7 +93824,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tenant_group__n schema: type: array items: @@ -93891,44 +93832,39 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tenant_group_id schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: tenant_group_id__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -93936,8 +93872,124 @@ paths: schema: type: string format: uuid + - in: query + name: vcpus + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__empty + schema: + type: boolean + - in: query + name: vcpus__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: virtual_disk_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__empty + schema: + type: boolean + - in: query + name: virtual_disk_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -93946,21 +93998,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProfileList' + $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' description: '' post: - operationId: vpn_ipsec_profiles_create - description: Post a list of IPSec profile objects. + operationId: virtualization_virtual_machines_create + description: Post a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -93970,25 +94022,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: vpn_ipsec_profiles_bulk_update - description: Put a list of IPSec profile objects. + operationId: virtualization_virtual_machines_bulk_update + description: Put a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94000,25 +94052,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: vpn_ipsec_profiles_bulk_partial_update - description: Patch a list of IPSec profile objects. + operationId: virtualization_virtual_machines_bulk_partial_update + description: Patch a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94030,25 +94082,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: vpn_ipsec_profiles_bulk_destroy - description: Delete a list of IPSec profile objects. + operationId: virtualization_virtual_machines_bulk_destroy + description: Delete a list of virtual machine objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94056,19 +94108,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-profiles/{id}/: + /api/virtualization/virtual-machines/{id}/: get: - operationId: vpn_ipsec_profiles_retrieve - description: Get a IPSec profile object. + operationId: virtualization_virtual_machines_retrieve + description: Get a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -94077,28 +94129,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: vpn_ipsec_profiles_update - description: Put a IPSec profile object. + operationId: virtualization_virtual_machines_update + description: Put a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -94108,28 +94160,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: vpn_ipsec_profiles_partial_update - description: Patch a IPSec profile object. + operationId: virtualization_virtual_machines_partial_update + description: Patch a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94138,51 +94190,73 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: vpn_ipsec_profiles_destroy - description: Delete a IPSec profile object. + operationId: virtualization_virtual_machines_destroy + description: Delete a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this virtual machine. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-proposals/: - get: - operationId: vpn_ipsec_proposals_list - description: Get a list of IPSec proposal objects. + /api/virtualization/virtual-machines/{id}/render-config/: + post: + operationId: virtualization_virtual_machines_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: - in: query - name: authentication_algorithm + name: format schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form - - in: query - name: authentication_algorithm__n + type: string + enum: + - json + - txt + - in: path + name: id schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + /api/vpn/ike-policies/: + get: + operationId: vpn_ike_policies_list + description: Get a list of IKE policy objects. + parameters: - in: query name: created schema: @@ -94335,26 +94409,6 @@ paths: type: string explode: true style: form - - in: query - name: encryption_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - - in: query - name: encryption_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - in: query name: id schema: @@ -94414,39 +94468,35 @@ paths: explode: true style: form - in: query - name: ipsec_policy + name: ike_proposal schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy__n + name: ike_proposal__n schema: type: array items: type: string - description: IPSec policy (name) explode: true style: form - in: query - name: ipsec_policy_id + name: ike_proposal_id schema: type: array items: type: integer - description: IPSec policy (ID) explode: true style: form - in: query - name: ipsec_policy_id__n + name: ike_proposal_id__n schema: type: array items: type: integer - description: IPSec policy (ID) explode: true style: form - in: query @@ -94518,6 +94568,24 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + explode: true + style: form - in: query name: modified_by_request schema: @@ -94620,147 +94688,89 @@ paths: schema: type: string - in: query - name: q + name: preshared_key schema: type: string - description: Search - in: query - name: sa_lifetime_data + name: preshared_key__ic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__empty + name: preshared_key__ie schema: - type: boolean + type: string - in: query - name: sa_lifetime_data__gt + name: preshared_key__iew schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__gte + name: preshared_key__isw schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__lt + name: preshared_key__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__lte + name: preshared_key__nic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_data__n + name: preshared_key__nie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_seconds + name: preshared_key__niew schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_seconds__empty + name: preshared_key__nisw schema: - type: boolean + type: string - in: query - name: sa_lifetime_seconds__gt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: sa_lifetime_seconds__gte + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__lt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime_seconds__lte + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: sa_lifetime_seconds__n + name: version schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string + x-spec-enum-id: 00872b77916a1fde explode: true style: form - in: query - name: tag__n + name: version__n schema: type: array items: - type: string + type: integer + x-spec-enum-id: 00872b77916a1fde explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - vpn security: @@ -94771,21 +94781,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProposalList' + $ref: '#/components/schemas/PaginatedIKEPolicyList' description: '' post: - operationId: vpn_ipsec_proposals_create - description: Post a list of IPSec proposal objects. + operationId: vpn_ike_policies_create + description: Post a list of IKE policy objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94795,11 +94805,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' put: - operationId: vpn_ipsec_proposals_bulk_update - description: Put a list of IPSec proposal objects. + operationId: vpn_ike_policies_bulk_update + description: Put a list of IKE policy objects. tags: - vpn requestBody: @@ -94808,12 +94818,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94825,11 +94835,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' patch: - operationId: vpn_ipsec_proposals_bulk_partial_update - description: Patch a list of IPSec proposal objects. + operationId: vpn_ike_policies_bulk_partial_update + description: Patch a list of IKE policy objects. tags: - vpn requestBody: @@ -94838,12 +94848,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94855,11 +94865,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' delete: - operationId: vpn_ipsec_proposals_bulk_destroy - description: Delete a list of IPSec proposal objects. + operationId: vpn_ike_policies_bulk_destroy + description: Delete a list of IKE policy objects. tags: - vpn requestBody: @@ -94868,12 +94878,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94881,16 +94891,16 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-proposals/{id}/: + /api/vpn/ike-policies/{id}/: get: - operationId: vpn_ipsec_proposals_retrieve - description: Get a IPSec proposal object. + operationId: vpn_ike_policies_retrieve + description: Get a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94902,17 +94912,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' put: - operationId: vpn_ipsec_proposals_update - description: Put a IPSec proposal object. + operationId: vpn_ike_policies_update + description: Put a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94920,10 +94930,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' required: true security: - cookieAuth: [] @@ -94933,17 +94943,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' patch: - operationId: vpn_ipsec_proposals_partial_update - description: Patch a IPSec proposal object. + operationId: vpn_ike_policies_partial_update + description: Patch a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94951,10 +94961,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94963,17 +94973,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/IKEPolicy' description: '' delete: - operationId: vpn_ipsec_proposals_destroy - description: Delete a IPSec proposal object. + operationId: vpn_ike_policies_destroy + description: Delete a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this IKE policy. required: true tags: - vpn @@ -94983,79 +94993,85 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/: + /api/vpn/ike-proposals/: get: - operationId: vpn_l2vpn_terminations_list - description: Get a list of L2VPN termination objects. + operationId: vpn_ike_proposals_list + description: Get a list of IKE proposal objects. parameters: - in: query - name: assigned_object_id + name: authentication_algorithm schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 0830e8839f5dea4f explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: authentication_algorithm__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 0830e8839f5dea4f explode: true style: form - in: query - name: assigned_object_id__gte + name: authentication_method schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 92bb2f1103b3a262 explode: true style: form - in: query - name: assigned_object_id__lt + name: authentication_method__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 92bb2f1103b3a262 explode: true style: form - in: query - name: assigned_object_id__lte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type + name: created__gt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: assigned_object_type__n + name: created__gte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created + name: created__lt schema: type: array items: @@ -95064,7 +95080,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: created__lte schema: type: array items: @@ -95073,7 +95089,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: created__n schema: type: array items: @@ -95082,126 +95098,134 @@ paths: explode: true style: form - in: query - name: created__gte + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: description__isw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: device + name: description__n schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: description__nic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: description__nie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__niew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: encryption_algorithm schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form - in: query - name: id__gt + name: encryption_algorithm__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: b022535cfdee79fe explode: true style: form - in: query - name: id__gte + name: group schema: type: array items: type: integer - format: int32 + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID explode: true style: form - in: query - name: id__lt + name: group__n schema: type: array items: type: integer - format: int32 + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID explode: true style: form - in: query - name: id__lte + name: id schema: type: array items: @@ -95210,7 +95234,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -95219,75 +95247,75 @@ paths: explode: true style: form - in: query - name: interface + name: id__gte schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface__n + name: id__lt schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface_id + name: id__lte schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: l2vpn + name: ike_policy schema: type: array items: type: string - description: L2VPN (slug) + description: IKE policy (name) explode: true style: form - in: query - name: l2vpn__n + name: ike_policy__n schema: type: array items: type: string - description: L2VPN (slug) + description: IKE policy (name) explode: true style: form - in: query - name: l2vpn_id + name: ike_policy_id schema: type: array items: type: integer - description: L2VPN (ID) + description: IKE policy (ID) explode: true style: form - in: query - name: l2vpn_id__n + name: ike_policy_id__n schema: type: array items: type: integer - description: L2VPN (ID) + description: IKE policy (ID) explode: true style: form - in: query @@ -95364,25 +95392,20 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: name schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: name__empty schema: - type: string - description: Search + type: boolean - in: query - name: region + name: name__ic schema: type: array items: @@ -95390,16 +95413,15 @@ paths: explode: true style: form - in: query - name: region_id + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: site + name: name__iew schema: type: array items: @@ -95407,16 +95429,15 @@ paths: explode: true style: form - in: query - name: site_id + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: name__n schema: type: array items: @@ -95424,7 +95445,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nic schema: type: array items: @@ -95432,153 +95453,125 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: name__nie schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine__n + name: name__niew schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine_id + name: name__nisw schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: virtual_machine_id__n + name: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime schema: type: array items: type: integer - description: Virtual machine (ID) + format: int32 explode: true style: form - in: query - name: vlan + name: sa_lifetime__empty + schema: + type: boolean + - in: query + name: sa_lifetime__gt schema: type: array items: - type: string - description: VLAN (name) + type: integer + format: int32 explode: true style: form - in: query - name: vlan__n + name: sa_lifetime__gte schema: type: array items: - type: string - description: VLAN (name) + type: integer + format: int32 explode: true style: form - in: query - name: vlan_id + name: sa_lifetime__lt schema: type: array items: type: integer - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_id__n + name: sa_lifetime__lte schema: type: array items: type: integer - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vminterface + name: sa_lifetime__n schema: type: array items: - type: string - description: VM interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: vminterface__n + name: tag schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id + name: tag__n schema: type: array items: - type: integer - description: VM Interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: VM Interface (ID) - explode: true - style: form + type: string + format: uuid tags: - vpn security: @@ -95589,21 +95582,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + $ref: '#/components/schemas/PaginatedIKEProposalList' description: '' post: - operationId: vpn_l2vpn_terminations_create - description: Post a list of L2VPN termination objects. + operationId: vpn_ike_proposals_create + description: Post a list of IKE proposal objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' required: true security: - cookieAuth: [] @@ -95613,11 +95606,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' put: - operationId: vpn_l2vpn_terminations_bulk_update - description: Put a list of L2VPN termination objects. + operationId: vpn_ike_proposals_bulk_update + description: Put a list of IKE proposal objects. tags: - vpn requestBody: @@ -95626,12 +95619,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -95643,11 +95636,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' patch: - operationId: vpn_l2vpn_terminations_bulk_partial_update - description: Patch a list of L2VPN termination objects. + operationId: vpn_ike_proposals_bulk_partial_update + description: Patch a list of IKE proposal objects. tags: - vpn requestBody: @@ -95656,12 +95649,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -95673,11 +95666,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' delete: - operationId: vpn_l2vpn_terminations_bulk_destroy - description: Delete a list of L2VPN termination objects. + operationId: vpn_ike_proposals_bulk_destroy + description: Delete a list of IKE proposal objects. tags: - vpn requestBody: @@ -95686,12 +95679,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -95699,16 +95692,16 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/{id}/: + /api/vpn/ike-proposals/{id}/: get: - operationId: vpn_l2vpn_terminations_retrieve - description: Get a L2VPN termination object. + operationId: vpn_ike_proposals_retrieve + description: Get a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95720,17 +95713,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' put: - operationId: vpn_l2vpn_terminations_update - description: Put a L2VPN termination object. + operationId: vpn_ike_proposals_update + description: Put a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95738,10 +95731,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' required: true security: - cookieAuth: [] @@ -95751,17 +95744,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' patch: - operationId: vpn_l2vpn_terminations_partial_update - description: Patch a L2VPN termination object. + operationId: vpn_ike_proposals_partial_update + description: Patch a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95769,10 +95762,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -95781,17 +95774,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/IKEProposal' description: '' delete: - operationId: vpn_l2vpn_terminations_destroy - description: Delete a L2VPN termination object. + operationId: vpn_ike_proposals_destroy + description: Delete a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this IKE proposal. required: true tags: - vpn @@ -95801,10 +95794,10 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/: + /api/vpn/ipsec-policies/: get: - operationId: vpn_l2vpns_list - description: Get a list of L2VPN objects. + operationId: vpn_ipsec_policies_list + description: Get a list of IPSec policy objects. parameters: - in: query name: created @@ -95958,42 +95951,6 @@ paths: type: string explode: true style: form - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - in: query name: id schema: @@ -96053,97 +96010,35 @@ paths: explode: true style: form - in: query - name: identifier - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__empty - schema: - type: boolean - - in: query - name: identifier__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: import_target + name: ipsec_proposal schema: type: array items: type: string - description: Import target (name) explode: true style: form - in: query - name: import_target__n + name: ipsec_proposal__n schema: type: array items: type: string - description: Import target (name) explode: true style: form - in: query - name: import_target_id + name: ipsec_proposal_id schema: type: array items: type: integer - description: Import target explode: true style: form - in: query - name: import_target_id__n + name: ipsec_proposal_id__n schema: type: array items: type: integer - description: Import target explode: true style: form - in: query @@ -96317,200 +96212,46 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n + name: pfs_group schema: type: array items: type: integer - description: Tenant Group (ID) + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy explode: true style: form - in: query - name: tenant_id + name: pfs_group__n schema: type: array items: type: integer + x-spec-enum-id: dbef43be795462a8 nullable: true - description: Tenant (ID) + description: Diffie-Hellman group for Perfect Forward Secrecy explode: true style: form - in: query - name: tenant_id__n + name: q schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string + description: Search - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query @@ -96528,21 +96269,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNList' + $ref: '#/components/schemas/PaginatedIPSecPolicyList' description: '' post: - operationId: vpn_l2vpns_create - description: Post a list of L2VPN objects. + operationId: vpn_ipsec_policies_create + description: Post a list of IPSec policy objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96552,11 +96293,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' put: - operationId: vpn_l2vpns_bulk_update - description: Put a list of L2VPN objects. + operationId: vpn_ipsec_policies_bulk_update + description: Put a list of IPSec policy objects. tags: - vpn requestBody: @@ -96565,12 +96306,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96582,11 +96323,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' patch: - operationId: vpn_l2vpns_bulk_partial_update - description: Patch a list of L2VPN objects. + operationId: vpn_ipsec_policies_bulk_partial_update + description: Patch a list of IPSec policy objects. tags: - vpn requestBody: @@ -96595,12 +96336,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96612,11 +96353,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' delete: - operationId: vpn_l2vpns_bulk_destroy - description: Delete a list of L2VPN objects. + operationId: vpn_ipsec_policies_bulk_destroy + description: Delete a list of IPSec policy objects. tags: - vpn requestBody: @@ -96625,12 +96366,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96638,16 +96379,16 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/{id}/: + /api/vpn/ipsec-policies/{id}/: get: - operationId: vpn_l2vpns_retrieve - description: Get a L2VPN object. + operationId: vpn_ipsec_policies_retrieve + description: Get a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96659,17 +96400,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' put: - operationId: vpn_l2vpns_update - description: Put a L2VPN object. + operationId: vpn_ipsec_policies_update + description: Put a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96677,10 +96418,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableIPSecPolicyRequest' required: true security: - cookieAuth: [] @@ -96690,17 +96431,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' patch: - operationId: vpn_l2vpns_partial_update - description: Patch a L2VPN object. + operationId: vpn_ipsec_policies_partial_update + description: Patch a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96708,10 +96449,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -96720,17 +96461,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/IPSecPolicy' description: '' delete: - operationId: vpn_l2vpns_destroy - description: Delete a L2VPN object. + operationId: vpn_ipsec_policies_destroy + description: Delete a IPSec policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this IPSec policy. required: true tags: - vpn @@ -96740,10 +96481,10 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/: + /api/vpn/ipsec-profiles/: get: - operationId: vpn_tunnel_groups_list - description: Get a list of tunnel group objects. + operationId: vpn_ipsec_profiles_list + description: Get a list of IPSec profile objects. parameters: - in: query name: created @@ -96955,6 +96696,78 @@ paths: format: int32 explode: true style: form + - in: query + name: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy__n + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy_id + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy_id__n + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -97024,6 +96837,24 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form - in: query name: modified_by_request schema: @@ -97130,90 +96961,6 @@ paths: schema: type: string description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: tag schema: @@ -97245,21 +96992,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelGroupList' + $ref: '#/components/schemas/PaginatedIPSecProfileList' description: '' post: - operationId: vpn_tunnel_groups_create - description: Post a list of tunnel group objects. + operationId: vpn_ipsec_profiles_create + description: Post a list of IPSec profile objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97269,11 +97016,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' put: - operationId: vpn_tunnel_groups_bulk_update - description: Put a list of tunnel group objects. + operationId: vpn_ipsec_profiles_bulk_update + description: Put a list of IPSec profile objects. tags: - vpn requestBody: @@ -97282,12 +97029,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97299,11 +97046,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' patch: - operationId: vpn_tunnel_groups_bulk_partial_update - description: Patch a list of tunnel group objects. + operationId: vpn_ipsec_profiles_bulk_partial_update + description: Patch a list of IPSec profile objects. tags: - vpn requestBody: @@ -97312,12 +97059,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97329,11 +97076,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' delete: - operationId: vpn_tunnel_groups_bulk_destroy - description: Delete a list of tunnel group objects. + operationId: vpn_ipsec_profiles_bulk_destroy + description: Delete a list of IPSec profile objects. tags: - vpn requestBody: @@ -97342,12 +97089,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97355,16 +97102,16 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/{id}/: + /api/vpn/ipsec-profiles/{id}/: get: - operationId: vpn_tunnel_groups_retrieve - description: Get a tunnel group object. + operationId: vpn_ipsec_profiles_retrieve + description: Get a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97376,17 +97123,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' put: - operationId: vpn_tunnel_groups_update - description: Put a tunnel group object. + operationId: vpn_ipsec_profiles_update + description: Put a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97394,10 +97141,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' required: true security: - cookieAuth: [] @@ -97407,17 +97154,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' patch: - operationId: vpn_tunnel_groups_partial_update - description: Patch a tunnel group object. + operationId: vpn_ipsec_profiles_partial_update + description: Patch a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97425,10 +97172,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -97437,17 +97184,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/IPSecProfile' description: '' delete: - operationId: vpn_tunnel_groups_destroy - description: Delete a tunnel group object. + operationId: vpn_ipsec_profiles_destroy + description: Delete a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this IPSec profile. required: true tags: - vpn @@ -97457,11 +97204,31 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-terminations/: + /api/vpn/ipsec-proposals/: get: - operationId: vpn_tunnel_terminations_list - description: Get a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_list + description: Get a list of IPSec proposal objects. parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form - in: query name: created schema: @@ -97530,6 +97297,110 @@ paths: schema: type: string format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form - in: query name: id schema: @@ -97589,39 +97460,39 @@ paths: explode: true style: form - in: query - name: interface + name: ipsec_policy schema: type: array items: type: string - description: Interface (name) + description: IPSec policy (name) explode: true style: form - in: query - name: interface__n + name: ipsec_policy__n schema: type: array items: type: string - description: Interface (name) + description: IPSec policy (name) explode: true style: form - in: query - name: interface_id + name: ipsec_policy_id schema: type: array items: type: integer - description: Interface (ID) + description: IPSec policy (ID) explode: true style: form - in: query - name: interface_id__n + name: ipsec_policy_id__n schema: type: array items: type: integer - description: Interface (ID) + description: IPSec policy (ID) explode: true style: form - in: query @@ -97698,61 +97569,60 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: outside_ip_id + name: name__ic schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: outside_ip_id__n + name: name__ie schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: q + name: name__iew schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: role + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: role__n + name: name__n schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -97760,7 +97630,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie schema: type: array items: @@ -97768,7 +97638,40 @@ paths: explode: true style: form - in: query - name: termination_id + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime_data schema: type: array items: @@ -97777,11 +97680,11 @@ paths: explode: true style: form - in: query - name: termination_id__empty + name: sa_lifetime_data__empty schema: type: boolean - in: query - name: termination_id__gt + name: sa_lifetime_data__gt schema: type: array items: @@ -97790,7 +97693,7 @@ paths: explode: true style: form - in: query - name: termination_id__gte + name: sa_lifetime_data__gte schema: type: array items: @@ -97799,7 +97702,7 @@ paths: explode: true style: form - in: query - name: termination_id__lt + name: sa_lifetime_data__lt schema: type: array items: @@ -97808,7 +97711,7 @@ paths: explode: true style: form - in: query - name: termination_id__lte + name: sa_lifetime_data__lte schema: type: array items: @@ -97817,7 +97720,7 @@ paths: explode: true style: form - in: query - name: termination_id__n + name: sa_lifetime_data__n schema: type: array items: @@ -97826,90 +97729,84 @@ paths: explode: true style: form - in: query - name: termination_type + name: sa_lifetime_seconds schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: termination_type__n + name: sa_lifetime_seconds__empty schema: - type: string + type: boolean - in: query - name: tunnel + name: sa_lifetime_seconds__gt schema: type: array items: - type: string - description: Tunnel (name) + type: integer + format: int32 explode: true style: form - in: query - name: tunnel__n + name: sa_lifetime_seconds__gte schema: type: array items: - type: string - description: Tunnel (name) + type: integer + format: int32 explode: true style: form - in: query - name: tunnel_id + name: sa_lifetime_seconds__lt schema: type: array items: type: integer - description: Tunnel (ID) + format: int32 explode: true style: form - in: query - name: tunnel_id__n + name: sa_lifetime_seconds__lte schema: type: array items: type: integer - description: Tunnel (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vminterface + name: sa_lifetime_seconds__n schema: type: array items: - type: string - description: VM interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: vminterface__n + name: tag schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id + name: tag__n schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: VM interface (ID) - explode: true - style: form + type: string + format: uuid tags: - vpn security: @@ -97920,21 +97817,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelTerminationList' + $ref: '#/components/schemas/PaginatedIPSecProposalList' description: '' post: - operationId: vpn_tunnel_terminations_create - description: Post a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_create + description: Post a list of IPSec proposal objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' required: true security: - cookieAuth: [] @@ -97944,11 +97841,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' put: - operationId: vpn_tunnel_terminations_bulk_update - description: Put a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_bulk_update + description: Put a list of IPSec proposal objects. tags: - vpn requestBody: @@ -97957,12 +97854,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -97974,11 +97871,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' patch: - operationId: vpn_tunnel_terminations_bulk_partial_update - description: Patch a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_bulk_partial_update + description: Patch a list of IPSec proposal objects. tags: - vpn requestBody: @@ -97987,12 +97884,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -98004,11 +97901,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' delete: - operationId: vpn_tunnel_terminations_bulk_destroy - description: Delete a list of tunnel termination objects. + operationId: vpn_ipsec_proposals_bulk_destroy + description: Delete a list of IPSec proposal objects. tags: - vpn requestBody: @@ -98017,12 +97914,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -98030,16 +97927,16 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-terminations/{id}/: + /api/vpn/ipsec-proposals/{id}/: get: - operationId: vpn_tunnel_terminations_retrieve - description: Get a tunnel termination object. + operationId: vpn_ipsec_proposals_retrieve + description: Get a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98051,17 +97948,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' put: - operationId: vpn_tunnel_terminations_update - description: Put a tunnel termination object. + operationId: vpn_ipsec_proposals_update + description: Put a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98069,10 +97966,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' required: true security: - cookieAuth: [] @@ -98082,17 +97979,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' patch: - operationId: vpn_tunnel_terminations_partial_update - description: Patch a tunnel termination object. + operationId: vpn_ipsec_proposals_partial_update + description: Patch a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98100,10 +97997,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98112,17 +98009,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/IPSecProposal' description: '' delete: - operationId: vpn_tunnel_terminations_destroy - description: Delete a tunnel termination object. + operationId: vpn_ipsec_proposals_destroy + description: Delete a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -98132,221 +98029,225 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/: + /api/vpn/l2vpn-terminations/: get: - operationId: vpn_tunnels_list - description: Get a list of tunnel objects. + operationId: vpn_l2vpn_terminations_list + description: Get a list of L2VPN termination objects. parameters: - in: query - name: created + name: assigned_object_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: assigned_object_id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: assigned_object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: assigned_object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: assigned_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: assigned_object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: assigned_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: assigned_object_type schema: type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: description__empty + name: assigned_object_type__n schema: - type: boolean + type: string - in: query - name: description__ic + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: description__nisw + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: encapsulation + name: device_id schema: type: array items: - type: string - x-spec-enum-id: 5fc36bb745852746 + type: integer + description: Device (ID) explode: true style: form - in: query - name: encapsulation__n + name: device_id__n schema: type: array items: - type: string - x-spec-enum-id: 5fc36bb745852746 + type: integer + description: Device (ID) explode: true style: form - in: query - name: group + name: id schema: type: array items: - type: string - description: Tunnel group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - description: Tunnel group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: id__gte schema: type: array items: type: integer - nullable: true - description: Tunnel group (ID) + format: int32 explode: true style: form - in: query - name: group_id__n + name: id__lt schema: type: array items: type: integer - nullable: true - description: Tunnel group (ID) + format: int32 explode: true style: form - in: query - name: id + name: id__lte schema: type: array items: @@ -98355,11 +98256,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -98368,77 +98265,75 @@ paths: explode: true style: form - in: query - name: id__gte + name: interface schema: type: array items: - type: integer - format: int32 + type: string + description: Interface (name) explode: true style: form - in: query - name: id__lt + name: interface__n schema: type: array items: - type: integer - format: int32 + type: string + description: Interface (name) explode: true style: form - in: query - name: id__lte + name: interface_id schema: type: array items: type: integer - format: int32 + description: Interface (ID) explode: true style: form - in: query - name: id__n + name: interface_id__n schema: type: array items: type: integer - format: int32 + description: Interface (ID) explode: true style: form - in: query - name: ipsec_profile + name: l2vpn schema: type: array items: type: string - description: IPSec profile (name) + description: L2VPN (slug) explode: true style: form - in: query - name: ipsec_profile__n + name: l2vpn__n schema: type: array items: type: string - description: IPSec profile (name) + description: L2VPN (slug) explode: true style: form - in: query - name: ipsec_profile_id + name: l2vpn_id schema: type: array items: type: integer - nullable: true - description: IPSec profile (ID) + description: L2VPN (ID) explode: true style: form - in: query - name: ipsec_profile_id__n + name: l2vpn_id__n schema: type: array items: type: integer - nullable: true - description: IPSec profile (ID) + description: L2VPN (ID) explode: true style: form - in: query @@ -98515,44 +98410,25 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__iew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: name__isw + name: region schema: type: array items: @@ -98560,15 +98436,16 @@ paths: explode: true style: form - in: query - name: name__n + name: region_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: site schema: type: array items: @@ -98576,15 +98453,16 @@ paths: explode: true style: form - in: query - name: name__nie + name: site_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: tag schema: type: array items: @@ -98592,201 +98470,161 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tag__n schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: updated_by_request schema: type: string - description: Search + format: uuid - in: query - name: status + name: virtual_machine schema: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa + description: Virtual machine (name) explode: true style: form - in: query - name: status__n + name: virtual_machine__n schema: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa + description: Virtual machine (name) explode: true style: form - in: query - name: tag + name: virtual_machine_id schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: tag__n + name: virtual_machine_id__n schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: tenant + name: vlan schema: type: array items: type: string - description: Tenant (slug) + description: VLAN (name) explode: true style: form - in: query - name: tenant__n + name: vlan__n schema: type: array items: type: string - description: Tenant (slug) + description: VLAN (name) explode: true style: form - in: query - name: tenant_group + name: vlan_id schema: type: array items: type: integer - description: Tenant Group (slug) + description: VLAN (ID) explode: true style: form - in: query - name: tenant_group__n + name: vlan_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + description: VLAN (ID) explode: true style: form - in: query - name: tenant_group_id + name: vlan_vid schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tenant_group_id__n + name: vlan_vid__empty schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tenant_id + name: vlan_vid__gt schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tenant_id__n + name: vlan_vid__gte schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id + name: vlan_vid__lt schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id__empty + name: vlan_vid__lte schema: - type: boolean + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id__gt + name: vlan_vid__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: VLAN number (1-4094) - in: query - name: tunnel_id__gte + name: vminterface schema: type: array items: - type: integer - format: int32 + type: string + description: VM interface (name) explode: true style: form - in: query - name: tunnel_id__lt + name: vminterface__n schema: type: array items: - type: integer - format: int32 + type: string + description: VM interface (name) explode: true style: form - in: query - name: tunnel_id__lte + name: vminterface_id schema: type: array items: type: integer - format: int32 + description: VM Interface (ID) explode: true style: form - in: query - name: tunnel_id__n + name: vminterface_id__n schema: type: array items: type: integer - format: int32 + description: VM Interface (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - vpn security: @@ -98797,21 +98635,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelList' + $ref: '#/components/schemas/PaginatedL2VPNTerminationList' description: '' post: - operationId: vpn_tunnels_create - description: Post a list of tunnel objects. + operationId: vpn_l2vpn_terminations_create + description: Post a list of L2VPN termination objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98821,11 +98659,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' put: - operationId: vpn_tunnels_bulk_update - description: Put a list of tunnel objects. + operationId: vpn_l2vpn_terminations_bulk_update + description: Put a list of L2VPN termination objects. tags: - vpn requestBody: @@ -98834,12 +98672,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98851,11 +98689,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' patch: - operationId: vpn_tunnels_bulk_partial_update - description: Patch a list of tunnel objects. + operationId: vpn_l2vpn_terminations_bulk_partial_update + description: Patch a list of L2VPN termination objects. tags: - vpn requestBody: @@ -98864,12 +98702,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98881,11 +98719,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' delete: - operationId: vpn_tunnels_bulk_destroy - description: Delete a list of tunnel objects. + operationId: vpn_l2vpn_terminations_bulk_destroy + description: Delete a list of L2VPN termination objects. tags: - vpn requestBody: @@ -98894,12 +98732,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98907,16 +98745,16 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/{id}/: + /api/vpn/l2vpn-terminations/{id}/: get: - operationId: vpn_tunnels_retrieve - description: Get a tunnel object. + operationId: vpn_l2vpn_terminations_retrieve + description: Get a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -98928,17 +98766,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' put: - operationId: vpn_tunnels_update - description: Put a tunnel object. + operationId: vpn_l2vpn_terminations_update + description: Put a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -98946,10 +98784,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -98959,17 +98797,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' patch: - operationId: vpn_tunnels_partial_update - description: Patch a tunnel object. + operationId: vpn_l2vpn_terminations_partial_update + description: Patch a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -98977,10 +98815,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98989,17 +98827,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/L2VPNTermination' description: '' delete: - operationId: vpn_tunnels_destroy - description: Delete a tunnel object. + operationId: vpn_l2vpn_terminations_destroy + description: Delete a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -99009,50 +98847,18 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lan-groups/: + /api/vpn/l2vpns/: get: - operationId: wireless_wireless_lan_groups_list - description: Get a list of wireless LAN group objects. + operationId: vpn_l2vpns_list + description: Get a list of L2VPN objects. parameters: - in: query - name: ancestor + name: created schema: type: array items: - type: integer - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ancestor_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time + type: string + format: date-time explode: true style: form - in: query @@ -99198,6 +99004,42 @@ paths: type: string explode: true style: form + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -99256,6 +99098,100 @@ paths: format: int32 explode: true style: form + - in: query + name: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: import_target + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target__n + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target_id + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: import_target_id__n + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form - in: query name: last_updated schema: @@ -99427,7 +99363,12 @@ paths: schema: type: string - in: query - name: parent + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -99435,7 +99376,11 @@ paths: explode: true style: form - in: query - name: parent__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -99443,30 +99388,31 @@ paths: explode: true style: form - in: query - name: parent_id + name: slug__ie schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: parent_id__n + name: slug__iew schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: slug + name: slug__n schema: type: array items: @@ -99474,11 +99420,15 @@ paths: explode: true style: form - in: query - name: slug__empty + name: slug__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: slug__nie schema: type: array items: @@ -99486,7 +99436,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: slug__niew schema: type: array items: @@ -99494,7 +99444,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: slug__nisw schema: type: array items: @@ -99502,7 +99452,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tag schema: type: array items: @@ -99510,7 +99460,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tag__n schema: type: array items: @@ -99518,23 +99468,25 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group schema: type: array items: @@ -99542,7 +99494,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -99550,7 +99502,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -99558,20 +99510,58 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: type: string explode: true style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -99580,21 +99570,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + $ref: '#/components/schemas/PaginatedL2VPNList' description: '' post: - operationId: wireless_wireless_lan_groups_create - description: Post a list of wireless LAN group objects. + operationId: vpn_l2vpns_create + description: Post a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' required: true security: - cookieAuth: [] @@ -99604,25 +99594,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' put: - operationId: wireless_wireless_lan_groups_bulk_update - description: Put a list of wireless LAN group objects. + operationId: vpn_l2vpns_bulk_update + description: Put a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -99634,25 +99624,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' patch: - operationId: wireless_wireless_lan_groups_bulk_partial_update - description: Patch a list of wireless LAN group objects. + operationId: vpn_l2vpns_bulk_partial_update + description: Patch a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -99664,25 +99654,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' delete: - operationId: wireless_wireless_lan_groups_bulk_destroy - description: Delete a list of wireless LAN group objects. + operationId: vpn_l2vpns_bulk_destroy + description: Delete a list of L2VPN objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -99690,19 +99680,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lan-groups/{id}/: + /api/vpn/l2vpns/{id}/: get: - operationId: wireless_wireless_lan_groups_retrieve - description: Get a wireless LAN group object. + operationId: vpn_l2vpns_retrieve + description: Get a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -99711,28 +99701,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' put: - operationId: wireless_wireless_lan_groups_update - description: Put a wireless LAN group object. + operationId: vpn_l2vpns_update + description: Put a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' required: true security: - cookieAuth: [] @@ -99742,28 +99732,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' patch: - operationId: wireless_wireless_lan_groups_partial_update - description: Patch a wireless LAN group object. + operationId: vpn_l2vpns_partial_update + description: Patch a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -99772,155 +99762,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/L2VPN' description: '' delete: - operationId: wireless_wireless_lan_groups_destroy - description: Delete a wireless LAN group object. + operationId: vpn_l2vpns_destroy + description: Delete a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this L2VPN. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lans/: + /api/vpn/tunnel-groups/: get: - operationId: wireless_wireless_lans_list - description: Get a list of wireless LAN objects. + operationId: vpn_tunnel_groups_list + description: Get a list of tunnel group objects. parameters: - - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - in: query name: created schema: @@ -100073,38 +99939,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: id schema: @@ -100163,22 +99997,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -100253,25 +100071,8 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: ssid + name: name schema: type: array items: @@ -100279,11 +100080,11 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: name__empty schema: type: boolean - in: query - name: ssid__ic + name: name__ic schema: type: array items: @@ -100291,7 +100092,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: name__ie schema: type: array items: @@ -100299,7 +100100,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: name__iew schema: type: array items: @@ -100307,7 +100108,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: name__isw schema: type: array items: @@ -100315,7 +100116,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: name__n schema: type: array items: @@ -100323,7 +100124,7 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: name__nic schema: type: array items: @@ -100331,7 +100132,7 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__nie schema: type: array items: @@ -100339,7 +100140,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__niew schema: type: array items: @@ -100347,33 +100148,52 @@ paths: explode: true style: form - in: query - name: ssid__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: status + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: status__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -100381,7 +100201,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -100389,77 +100209,67 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -100467,26 +100277,8 @@ paths: schema: type: string format: uuid - - in: query - name: vlan_id - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - - in: query - name: vlan_id__n - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -100495,21 +100287,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANList' + $ref: '#/components/schemas/PaginatedTunnelGroupList' description: '' post: - operationId: wireless_wireless_lans_create - description: Post a list of wireless LAN objects. + operationId: vpn_tunnel_groups_create + description: Post a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100519,25 +100311,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' put: - operationId: wireless_wireless_lans_bulk_update - description: Put a list of wireless LAN objects. + operationId: vpn_tunnel_groups_bulk_update + description: Put a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100549,25 +100341,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' patch: - operationId: wireless_wireless_lans_bulk_partial_update - description: Patch a list of wireless LAN objects. + operationId: vpn_tunnel_groups_bulk_partial_update + description: Patch a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100579,25 +100371,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' delete: - operationId: wireless_wireless_lans_bulk_destroy - description: Delete a list of wireless LAN objects. + operationId: vpn_tunnel_groups_bulk_destroy + description: Delete a list of tunnel group objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100605,19 +100397,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lans/{id}/: + /api/vpn/tunnel-groups/{id}/: get: - operationId: wireless_wireless_lans_retrieve - description: Get a wireless LAN object. + operationId: vpn_tunnel_groups_retrieve + description: Get a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -100626,28 +100418,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' put: - operationId: wireless_wireless_lans_update - description: Put a wireless LAN object. + operationId: vpn_tunnel_groups_update + description: Put a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -100657,28 +100449,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' patch: - operationId: wireless_wireless_lans_partial_update - description: Patch a wireless LAN object. + operationId: vpn_tunnel_groups_partial_update + description: Patch a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedTunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedTunnelGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -100687,155 +100479,706 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/TunnelGroup' description: '' delete: - operationId: wireless_wireless_lans_destroy - description: Delete a wireless LAN object. + operationId: vpn_tunnel_groups_destroy + description: Delete a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this tunnel group. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-links/: + /api/vpn/tunnel-terminations/: get: - operationId: wireless_wireless_links_list - description: Get a list of wireless link objects. + operationId: vpn_tunnel_terminations_list + description: Get a list of tunnel termination objects. parameters: - in: query - name: auth_cipher + name: created schema: type: array items: type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher + format: date-time explode: true style: form - in: query - name: auth_cipher__n + name: created__empty schema: type: array items: type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher + format: date-time explode: true style: form - in: query - name: auth_psk + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__empty + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query - name: auth_psk__ic + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface schema: type: array items: type: string + description: Interface (name) explode: true style: form - in: query - name: auth_psk__ie + name: interface__n schema: type: array items: type: string + description: Interface (name) explode: true style: form - in: query - name: auth_psk__iew + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: auth_type + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: outside_ip_id + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: outside_ip_id__n + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: auth_type__n + name: role__n schema: type: array items: type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: termination_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: tunnel + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel__n + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel_id + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vminterface + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface__n + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM interface (ID) explode: true style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelTerminationList' + description: '' + post: + operationId: vpn_tunnel_terminations_create + description: Post a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_bulk_update + description: Put a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_bulk_partial_update + description: Patch a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_bulk_destroy + description: Delete a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-terminations/{id}/: + get: + operationId: vpn_tunnel_terminations_retrieve + description: Get a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_update + description: Put a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_partial_update + description: Patch a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_destroy + description: Delete a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnels/: + get: + operationId: vpn_tunnels_list + description: Get a list of tunnel objects. + parameters: - in: query name: created schema: @@ -100988,6 +101331,62 @@ paths: type: string explode: true style: form + - in: query + name: encapsulation + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + explode: true + style: form + - in: query + name: encapsulation__n + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form - in: query name: id schema: @@ -101047,35 +101446,41 @@ paths: explode: true style: form - in: query - name: interface_a_id + name: ipsec_profile schema: type: array items: - type: integer + type: string + description: IPSec profile (name) explode: true style: form - in: query - name: interface_a_id__n + name: ipsec_profile__n schema: type: array items: - type: integer + type: string + description: IPSec profile (name) explode: true style: form - in: query - name: interface_b_id + name: ipsec_profile_id schema: type: array items: type: integer + nullable: true + description: IPSec profile (ID) explode: true style: form - in: query - name: interface_b_id__n + name: ipsec_profile_id__n schema: type: array items: type: integer + nullable: true + description: IPSec profile (ID) explode: true style: form - in: query @@ -101152,25 +101557,8 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: ssid + name: name schema: type: array items: @@ -101178,11 +101566,11 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: name__empty schema: type: boolean - in: query - name: ssid__ic + name: name__ic schema: type: array items: @@ -101190,7 +101578,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: name__ie schema: type: array items: @@ -101198,7 +101586,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: name__iew schema: type: array items: @@ -101206,7 +101594,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: name__isw schema: type: array items: @@ -101214,7 +101602,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: name__n schema: type: array items: @@ -101222,7 +101610,7 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: name__nic schema: type: array items: @@ -101230,7 +101618,7 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__nie schema: type: array items: @@ -101238,7 +101626,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__niew schema: type: array items: @@ -101246,20 +101634,37 @@ paths: explode: true style: form - in: query - name: ssid__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search - in: query name: status schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d + x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query @@ -101268,7 +101673,7 @@ paths: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d + x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query @@ -101310,8 +101715,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -101319,8 +101723,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -101328,8 +101731,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -101337,8 +101739,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -101362,35 +101763,93 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: tunnel_id schema: - type: string - format: uuid - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__empty + schema: + type: boolean + - in: query + name: tunnel_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLinkList' + $ref: '#/components/schemas/PaginatedTunnelList' description: '' post: - operationId: wireless_wireless_links_create - description: Post a list of wireless link objects. + operationId: vpn_tunnels_create + description: Post a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' required: true security: - cookieAuth: [] @@ -101400,25 +101859,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' put: - operationId: wireless_wireless_links_bulk_update - description: Put a list of wireless link objects. + operationId: vpn_tunnels_bulk_update + description: Put a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -101430,25 +101889,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' patch: - operationId: wireless_wireless_links_bulk_partial_update - description: Patch a list of wireless link objects. + operationId: vpn_tunnels_bulk_partial_update + description: Patch a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -101460,25 +101919,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' delete: - operationId: wireless_wireless_links_bulk_destroy - description: Delete a list of wireless link objects. + operationId: vpn_tunnels_bulk_destroy + description: Delete a list of tunnel objects. tags: - - wireless + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -101486,19 +101945,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-links/{id}/: + /api/vpn/tunnels/{id}/: get: - operationId: wireless_wireless_links_retrieve - description: Get a wireless link object. + operationId: vpn_tunnels_retrieve + description: Get a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -101507,28 +101966,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' put: - operationId: wireless_wireless_links_update - description: Put a wireless link object. + operationId: vpn_tunnels_update + description: Put a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableTunnelRequest' required: true security: - cookieAuth: [] @@ -101538,28 +101997,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' patch: - operationId: wireless_wireless_links_partial_update - description: Patch a wireless link object. + operationId: vpn_tunnels_partial_update + description: Patch a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + $ref: '#/components/schemas/PatchedWritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + $ref: '#/components/schemas/PatchedWritableTunnelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -101568,862 +102027,7371 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/Tunnel' description: '' delete: - operationId: wireless_wireless_links_destroy - description: Delete a wireless link object. + operationId: vpn_tunnels_destroy + description: Delete a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. + description: A unique integer value identifying this tunnel. required: true tags: - - wireless + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body -components: - schemas: - ASN: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIR' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + /api/wireless/wireless-lan-groups/: + get: + operationId: wireless_wireless_lan_groups_list + description: Get a list of wireless LAN group objects. + parameters: + - in: query + name: ancestor + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - site_count: - type: integer - format: int64 - readOnly: true - provider_count: - type: integer - format: int64 - readOnly: true - required: - - asn - - created - - display - - id - - last_updated - - provider_count - - site_count - - url - ASNRange: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIR' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - description: - type: string - maxLength: 200 - tags: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - asn_count: - type: integer - readOnly: true - required: - - asn_count - - created - - display - - end - - id - - last_updated - - name - - rir - - slug - - start - - url - ASNRangeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIRRequest' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - end - - name - - rir - - slug - - start - ASNRequest: - type: object - description: Adds support for custom fields and tags. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIRRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - Aggregate: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - family: - type: object - properties: - value: - enum: - - 4 - - 6 - type: integer - description: '* `4` - IPv4 - - * `6` - IPv6' - x-spec-enum-id: d72003fd1af3603d - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - rir: - $ref: '#/components/schemas/RIR' - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + explode: true + style: form + - in: query + name: created + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - family - - id - - last_updated - - prefix - - rir - - url - AggregateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - prefix - - rir - AvailableASN: - type: object - description: Representation of an ASN which does not exist in the database. - properties: - asn: - type: integer - readOnly: true - description: - type: string - required: - - asn - AvailableIP: - type: object - description: Representation of an IP address which does not exist in the database. - properties: - family: - type: integer - readOnly: true - address: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - description: - type: string - required: - - address - - family - - vrf - AvailablePrefix: - type: object - description: Representation of a prefix which does not exist in the database. - properties: - family: - type: integer - readOnly: true - prefix: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - required: - - family - - prefix - - vrf - AvailableVLAN: - type: object - description: Representation of a VLAN which does not exist in the database. - properties: - vid: - type: integer - readOnly: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroup' - readOnly: true - nullable: true - required: - - group - - vid - Bookmark: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - object: - nullable: true - readOnly: true - user: - $ref: '#/components/schemas/User' - created: - type: string - format: date-time - readOnly: true - required: - - created - - display - - id - - object - - object_id - - object_type - - url - - user - BookmarkRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/UserRequest' - required: - - object_id - - object_type - - user - Cable: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - label: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - url - CableRequest: - type: object - description: Adds support for custom fields and tags. - properties: - label: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - CableTermination: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - termination: - nullable: true - readOnly: true - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - cable - - cable_end - - created - - display - - id - - last_updated - - termination - - termination_id - - termination_type - - url - CableTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - required: - - cable - - cable_end - - termination_id - - termination_type - Circuit: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - cid: - type: string - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - cid - - display - - id - - url - CircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - cid - CircuitTermination: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - circuit: - $ref: '#/components/schemas/Circuit' - term_side: - enum: - - A - - Z - type: string - description: '* `A` - A - - * `Z` - Z' - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/Site' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetwork' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - description: Patch panel ID and port number(s) - maxLength: 100 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - tags: + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - cable_end - - circuit - - created - - display - - id - - last_updated - - link_peers - - link_peers_type - - term_side - - url - CircuitTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - circuit: - $ref: '#/components/schemas/CircuitRequest' - term_side: - enum: - - A - - Z - type: string - description: '* `A` - A - - * `Z` - Z' - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - description: Patch panel ID and port number(s) - maxLength: 100 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - circuit - - term_side - CircuitType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - tags: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: type: array items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + description: '' + post: + operationId: wireless_wireless_lan_groups_create + description: Post a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_bulk_update + description: Put a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_bulk_partial_update + description: Patch a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_bulk_destroy + description: Delete a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lan-groups/{id}/: + get: + operationId: wireless_wireless_lan_groups_retrieve + description: Get a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_update + description: Put a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_partial_update + description: Patch a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_destroy + description: Delete a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/: + get: + operationId: wireless_wireless_lans_list + description: Get a list of wireless LAN objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANList' + description: '' + post: + operationId: wireless_wireless_lans_create + description: Post a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_bulk_update + description: Put a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_bulk_partial_update + description: Patch a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_bulk_destroy + description: Delete a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/{id}/: + get: + operationId: wireless_wireless_lans_retrieve + description: Get a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_update + description: Put a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_partial_update + description: Patch a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_destroy + description: Delete a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/: + get: + operationId: wireless_wireless_links_list + description: Get a list of wireless link objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: distance + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__empty + schema: + type: boolean + - in: query + name: distance__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance_unit + schema: + type: string + x-spec-enum-id: 53542e7902f946af + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + - in: query + name: distance_unit__n + schema: + type: string + x-spec-enum-id: 53542e7902f946af + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_a_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_a_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLinkList' + description: '' + post: + operationId: wireless_wireless_links_create + description: Post a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_bulk_update + description: Put a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_bulk_partial_update + description: Patch a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_bulk_destroy + description: Delete a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/{id}/: + get: + operationId: wireless_wireless_links_retrieve + description: Get a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_update + description: Put a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_partial_update + description: Patch a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_destroy + description: Delete a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body +components: + schemas: + ASN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIR' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + site_count: + type: integer + format: int64 + readOnly: true + provider_count: + type: integer + format: int64 + readOnly: true + required: + - asn + - created + - display + - display_url + - id + - last_updated + - provider_count + - site_count + - url + ASNRange: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIR' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + asn_count: + type: integer + readOnly: true + required: + - asn_count + - created + - display + - display_url + - end + - id + - last_updated + - name + - rir + - slug + - start + - url + ASNRangeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIRRequest' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - end + - name + - rir + - slug + - start + ASNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIRRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - asn + Aggregate: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + prefix: + type: string + rir: + $ref: '#/components/schemas/BriefRIR' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - family + - id + - last_updated + - prefix + - rir + - url + AggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - prefix + - rir + AvailableASN: + type: object + description: Representation of an ASN which does not exist in the database. + properties: + asn: + type: integer + readOnly: true + description: + type: string + required: + - asn + AvailableIP: + type: object + description: Representation of an IP address which does not exist in the database. + properties: + family: + type: integer + readOnly: true + address: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + description: + type: string + required: + - address + - family + - vrf + AvailablePrefix: + type: object + description: Representation of a prefix which does not exist in the database. + properties: + family: + type: integer + readOnly: true + prefix: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + required: + - family + - prefix + - vrf + AvailableVLAN: + type: object + description: Representation of a VLAN which does not exist in the database. + properties: + vid: + type: integer + readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + readOnly: true + nullable: true + required: + - group + - vid + Bookmark: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + BookmarkRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + required: + - object_id + - object_type + - user + BriefCable: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefCableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + BriefCircuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + description: + type: string + maxLength: 200 + required: + - cid + - display + - id + - provider + - url + BriefCircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + required: + - display + - id + - name + - url + BriefCircuitGroupAssignmentSerializer_: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + required: + - display + - group + - id + - url + BriefCircuitGroupAssignmentSerializer_Request: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + required: + - group + BriefCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + required: + - name + BriefCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + description: + type: string + maxLength: 200 + required: + - cid + - provider + BriefCircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCluster: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefClusterGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - cluster_count + - display + - id + - name + - slug + - url + BriefClusterGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefClusterRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefClusterType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - cluster_count + - display + - id + - name + - slug + - url + BriefClusterTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefConfigTemplate: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefConfigTemplateRequest: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContact: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefContactGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + contact_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - contact_count + - display + - id + - name + - slug + - url + BriefContactGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefContactRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContactRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefContactRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCustomFieldChoiceSet: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + choices_count: + type: string + readOnly: true + required: + - choices_count + - display + - id + - name + - url + BriefCustomFieldChoiceSetRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDataFile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + path: + type: string + readOnly: true + description: File path relative to the data source's root + required: + - display + - id + - path + - url + BriefDataSource: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefDataSourceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDevice: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefDeviceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + BriefDeviceRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefDeviceRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefDeviceType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefDeviceTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefFHRPGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - display + - group_id + - id + - protocol + - url + BriefFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - group_id + - protocol + BriefIKEPolicy: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIKEPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPAddress: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + address: + type: string + description: + type: string + maxLength: 200 + required: + - address + - display + - family + - id + - url + BriefIPAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + address: + type: string + minLength: 1 + description: + type: string + maxLength: 200 + required: + - address + BriefIPSecPolicy: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIPSecPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPSecProfile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIPSecProfileRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefInterface: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + BriefInterfaceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefInventoryItemRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + inventoryitem_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - inventoryitem_count + - name + - slug + - url + BriefInventoryItemRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefJob: + type: object + properties: + url: + type: string + format: uri + readOnly: true + status: + type: object + properties: + value: + enum: + - pending + - scheduled + - running + - completed + - errored + - failed + type: string + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' + x-spec-enum-id: e33887d83efcc138 + label: + type: string + enum: + - Pending + - Scheduled + - Running + - Completed + - Errored + - Failed + readOnly: true + created: + type: string + format: date-time + readOnly: true + completed: + type: string + format: date-time + nullable: true + user: + allOf: + - $ref: '#/components/schemas/BriefUser' + readOnly: true + required: + - created + - status + - url + - user + BriefJobRequest: + type: object + properties: + completed: + type: string + format: date-time + nullable: true + BriefL2VPN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + type: object + properties: + value: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + label: + type: string + enum: + - VPWS + - VPLS + - VXLAN + - VXLAN-EVPN + - MPLS EVPN + - PBB EVPN + - EPL + - EVPL + - Ethernet Private LAN + - Ethernet Virtual Private LAN + - Ethernet Private Tree + - Ethernet Virtual Private Tree + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefL2VPNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefL2VPNTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + l2vpn: + $ref: '#/components/schemas/BriefL2VPN' + required: + - display + - id + - l2vpn + - url + BriefL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + required: + - l2vpn + BriefLocation: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - rack_count + - slug + - url + BriefLocationRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefManufacturer: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + devicetype_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefModule: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + module_bay: + $ref: '#/components/schemas/NestedModuleBay' + required: + - device + - display + - id + - module_bay + - url + BriefModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + $ref: '#/components/schemas/NestedModuleBayRequest' + required: + - device + - module_bay + BriefModuleType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - url + BriefModuleTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + BriefPlatform: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefPowerPanel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - powerfeed_count + - url + BriefPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefPowerPort: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + BriefPowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefPowerPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefPowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefProvider: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the provider + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefProviderAccount: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + default: '' + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + - display + - id + - url + BriefProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + BriefProviderNetwork: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRIR: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - display + - id + - name + - slug + - url + BriefRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRack: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefRackRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - rack_count + - slug + - url + BriefRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefRearPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefRegion: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - site_count + - slug + - url + BriefRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + prefix_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + - vlan_count + BriefRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSite: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the site + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefSiteGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - site_count + - slug + - url + BriefSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenant: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefTenantGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - tenant_count + - url + BriefTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefTunnelGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tunnel_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - tunnel_count + - url + BriefTunnelGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefUser: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + username: + type: string + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - display + - id + - url + - username + BriefUserRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + username: + type: string + minLength: 1 + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - username + BriefVLAN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + - vid + BriefVLANGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + vlan_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + - vlan_count + BriefVLANGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + - vid + BriefVRF: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + prefix_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefVRFRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualChassis: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDevice' + nullable: true + description: + type: string + maxLength: 200 + member_count: + type: integer + readOnly: true + required: + - display + - id + - member_count + - name + - url + BriefVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDeviceRequest' + nullable: true + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualMachine: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefVirtualMachineRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefWirelessLANGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + wirelesslan_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + - wirelesslan_count + BriefWirelessLANGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + Cable: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + label: + type: string + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + type: object + properties: + value: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + label: + type: string + enum: + - Kilometers + - Meters + - Centimeters + - Miles + - Feet + - Inches + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - id + - last_updated + - url + CableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + label: + type: string + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + CableTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cable: + type: integer + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + termination: + nullable: true + readOnly: true + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - cable + - cable_end + - created + - display + - id + - last_updated + - termination + - termination_id + - termination_type + - url + CableTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cable: + type: integer + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + required: + - cable + - cable_end + - termination_id + - termination_type + Circuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccount' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitType' + status: + type: object + properties: + value: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + label: + type: string + enum: + - Planned + - Provisioning + - Active + - Offline + - Deprovisioning + - Decommissioned + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + termination_a: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + termination_z: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_' + required: + - cid + - created + - display + - display_url + - id + - last_updated + - provider + - termination_a + - termination_z + - type + - url + CircuitCircuitTermination: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetwork' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + description: + type: string + maxLength: 200 + required: + - display + - display_url + - id + - provider_network + - site + - url + CircuitCircuitTerminationRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetworkRequest' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + description: + type: string + maxLength: 200 + required: + - provider_network + - site + CircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - created + - display + - display_url + - id + - last_updated + - name + - slug + - url + CircuitGroupAssignment: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + circuit: + $ref: '#/components/schemas/BriefCircuit' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - circuit + - created + - display + - display_url + - group + - id + - last_updated + - url + CircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - circuit + - group + CircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + CircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' + required: + - cid + - provider + - type + CircuitTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + circuit: + $ref: '#/components/schemas/BriefCircuit' + term_side: + enum: + - A + - Z + type: string + description: '* `A` - A + + * `Z` - Z' + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetwork' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + pp_info: + type: string + title: Patch panel/port(s) + description: Patch panel ID and port number(s) + maxLength: 100 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - circuit + - created + - display + - display_url + - id + - last_updated + - link_peers + - link_peers_type + - term_side + - url + CircuitTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + term_side: + enum: + - A + - Z + type: string + description: '* `A` - A + + * `Z` - Z' + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetworkRequest' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + pp_info: + type: string + title: Patch panel/port(s) + description: Patch panel ID and port number(s) + maxLength: 100 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - circuit + - term_side + CircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true nullable: true circuit_count: type: integer @@ -102433,6 +109401,7 @@ components: - circuit_count - created - display + - display_url - id - last_updated - name @@ -102479,23 +109448,97 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterType' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroup' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Offline + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true virtualmachine_count: type: integer format: int64 readOnly: true required: + - created - display + - display_url - id + - last_updated - name + - type - url ClusterGroup: type: object @@ -102508,6 +109551,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102546,6 +109593,7 @@ components: - cluster_count - created - display + - display_url - id - last_updated - name @@ -102585,11 +109633,53 @@ components: type: string minLength: 1 maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - type ClusterType: type: object description: Adds support for custom fields and tags. @@ -102601,6 +109691,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102639,6 +109733,7 @@ components: - cluster_count - created - display + - display_url - id - last_updated - name @@ -102684,6 +109779,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102752,14 +109851,14 @@ components: items: type: string data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -102785,6 +109884,7 @@ components: - data_path - data_synced - display + - display_url - id - last_updated - name @@ -102863,7 +109963,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} required: - data @@ -102882,6 +109982,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102891,10 +109995,52 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSource' + data_path: + type: string + readOnly: true + description: Path to remote file (relative to data source root) + data_file: + $ref: '#/components/schemas/BriefDataFile' + data_synced: + type: string + format: date-time + readOnly: true + nullable: true + title: Date synced + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created + - data_path + - data_synced - display + - display_url - id + - last_updated - name + - template_code - url ConfigTemplateRequest: type: object @@ -102910,8 +110056,24 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + minLength: 1 + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - name + - template_code ConsolePort: type: object description: Adds support for custom fields and tags. @@ -102923,14 +110085,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103059,7 +110225,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103073,13 +110239,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103114,6 +110283,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -103125,10 +110295,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103250,11 +110420,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103364,11 +110534,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103445,14 +110615,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103581,7 +110755,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103595,13 +110769,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103636,6 +110813,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -103647,10 +110825,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103772,11 +110950,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103886,11 +111064,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103967,18 +111145,65 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroup' + nullable: true name: type: string maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name - url ContactAssignment: @@ -104007,10 +111232,10 @@ components: additionalProperties: {} readOnly: true contact: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/BriefContact' role: allOf: - - $ref: '#/components/schemas/ContactRole' + - $ref: '#/components/schemas/BriefContactRole' nullable: true priority: type: object @@ -104077,10 +111302,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -104120,6 +111345,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104167,6 +111396,7 @@ components: - contact_count - created - display + - display_url - id - last_updated - name @@ -104206,13 +111436,43 @@ components: type: object description: Adds support for custom fields and tags. properties: + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroupRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name ContactRole: @@ -104226,6 +111486,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104239,9 +111503,29 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name - slug - url @@ -104261,6 +111545,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -104278,6 +111569,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104371,8 +111666,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104449,6 +111748,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104479,7 +111782,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSet' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSet' nullable: true comments: type: string @@ -104497,6 +111800,7 @@ components: - created - data_type - display + - display_url - id - last_updated - name @@ -104517,6 +111821,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104574,6 +111882,7 @@ components: - choices_count - created - display + - display_url - extra_choices - id - last_updated @@ -104694,8 +112003,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104745,6 +112058,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104775,7 +112092,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -104797,6 +112114,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104825,7 +112146,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104841,12 +112162,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -104891,6 +112212,7 @@ components: required: - created - display + - display_url - id - last_updated - link_text @@ -104933,7 +112255,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104949,12 +112271,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -105012,12 +112334,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true source: allOf: - - $ref: '#/components/schemas/DataSource' + - $ref: '#/components/schemas/BriefDataSource' readOnly: true path: type: string @@ -105036,6 +112362,7 @@ components: description: SHA256 hash of the file data required: - display + - display_url - hash - id - last_updated @@ -105054,19 +112381,119 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + type: object + properties: + value: + enum: + - local + - git + - amazon-s3 + description: '* `None` - --------- + + * `local` - Local + + * `git` - Git + + * `amazon-s3` - Amazon S3' + x-spec-enum-id: 570db3f2d4e98ccf + label: + type: string + enum: + - '---------' + - Local + - Git + - Amazon S3 + source_url: + type: string + title: URL + maxLength: 200 + enabled: + type: boolean + status: + type: object + properties: + value: + enum: + - new + - queued + - syncing + - completed + - failed + type: string + description: '* `new` - New + + * `queued` - Queued + + * `syncing` - Syncing + + * `completed` - Completed + + * `failed` - Failed' + x-spec-enum-id: 6dfb2220617590c8 + label: + type: string + enum: + - New + - Queued + - Syncing + - Completed + - Failed + readOnly: true description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + last_synced: + type: string + format: date-time + readOnly: true + nullable: true + file_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url + - file_count - id + - last_synced + - last_updated - name + - source_url + - status + - type - url DataSourceRequest: type: object @@ -105099,13 +112526,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -105124,6 +112551,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105132,16 +112563,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105154,14 +112585,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105210,8 +112641,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105289,28 +112720,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105330,7 +112761,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -105400,11 +112831,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' name: type: string maxLength: 64 @@ -105417,7 +112852,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true tags: type: array @@ -105440,6 +112875,7 @@ components: - created - device - display + - display_url - id - last_updated - name @@ -105449,7 +112885,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' name: type: string minLength: 1 @@ -105463,7 +112899,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true tags: type: array @@ -105493,7 +112929,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' name: type: string description: '{module} is accepted as a substitution for the module bay @@ -105532,7 +112968,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' name: type: string minLength: 1 @@ -105549,17 +112985,6 @@ components: required: - device_type - name - DeviceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - description: - type: string - maxLength: 200 DeviceRole: type: object description: Adds support for custom fields and tags. @@ -105571,6 +112996,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105581,9 +113010,37 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplate' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 @@ -105593,8 +113050,11 @@ components: format: int64 readOnly: true required: + - created - display + - display_url - id + - last_updated - name - slug - url @@ -105621,7 +113081,7 @@ components: description: Virtual machines may be assigned to this role config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true description: type: string @@ -105647,11 +113107,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatform' + nullable: true model: type: string maxLength: 100 @@ -105659,18 +113127,199 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + type: object + properties: + value: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + label: + type: string + enum: + - Parent + - Child + nullable: true + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + - Mixed + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + front_image: + type: string + format: uri + nullable: true + rear_image: + type: string + format: uri + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 readOnly: true + console_port_template_count: + type: integer + readOnly: true + console_server_port_template_count: + type: integer + readOnly: true + power_port_template_count: + type: integer + readOnly: true + power_outlet_template_count: + type: integer + readOnly: true + interface_template_count: + type: integer + readOnly: true + front_port_template_count: + type: integer + readOnly: true + rear_port_template_count: + type: integer + readOnly: true + device_bay_template_count: + type: integer + readOnly: true + module_bay_template_count: + type: integer + readOnly: true + inventory_item_template_count: + type: integer + readOnly: true required: + - console_port_template_count + - console_server_port_template_count + - created + - device_bay_template_count - display + - display_url + - front_port_template_count - id + - interface_template_count + - inventory_item_template_count + - last_updated - manufacturer - model + - module_bay_template_count + - power_outlet_template_count + - power_port_template_count + - rear_port_template_count - slug - url DeviceTypeRequest: @@ -105678,7 +113327,11 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true model: type: string minLength: 1 @@ -105688,9 +113341,104 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + nullable: true + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -105706,6 +113454,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105714,16 +113466,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105736,14 +113488,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105792,8 +113544,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105871,28 +113623,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105912,7 +113664,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true config_context: nullable: true @@ -105976,6 +113728,7 @@ components: - device_bay_count - device_type - display + - display_url - front_port_count - id - interface_count @@ -105999,16 +113752,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -106021,14 +113774,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -106117,23 +113870,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -106153,7 +113906,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -106181,6 +113934,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106191,28 +113948,35 @@ components: name: type: string maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106224,16 +113988,20 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 label: type: string enum: - Webhook - Script + - Notification action_object_type: type: string action_object_id: @@ -106272,6 +114040,8 @@ components: - action_type - created - display + - display_url + - event_types - id - last_updated - name @@ -106289,28 +114059,35 @@ components: type: string minLength: 1 maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106319,11 +114096,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -106345,6 +114125,7 @@ components: required: - action_object_type - action_type + - event_types - name - object_types ExportTemplate: @@ -106361,6 +114142,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106390,14 +114175,14 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -106421,6 +114206,7 @@ components: - data_path - data_synced - display + - display_url - id - last_updated - name @@ -106462,7 +114248,7 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' required: - name - object_types @@ -106474,10 +114260,17 @@ components: id: type: integer readOnly: true + name: + type: string + maxLength: 100 url: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106509,13 +114302,56 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ip_addresses: + type: array + items: + $ref: '#/components/schemas/BriefIPAddress' + readOnly: true required: + - created - display + - display_url - group_id - id + - ip_addresses + - last_updated - protocol - url FHRPGroupAssignment: @@ -106533,7 +114369,7 @@ components: type: string readOnly: true group: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/BriefFHRPGroup' interface_type: type: string interface_id: @@ -106574,7 +114410,7 @@ components: description: Adds support for custom fields and tags. properties: group: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/BriefFHRPGroupRequest' interface_type: type: string interface_id: @@ -106595,6 +114431,9 @@ components: type: object description: Adds support for custom fields and tags. properties: + name: + type: string + maxLength: 100 protocol: enum: - vrrp2 @@ -106623,9 +114462,33 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - group_id - protocol @@ -106640,14 +114503,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -106707,6 +114574,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -106801,8 +114676,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -106852,6 +114743,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -106873,7 +114772,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -106887,6 +114786,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -106915,6 +114815,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -106935,6 +114836,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106950,6 +114855,7 @@ components: maxLength: 200 required: - display + - display_url - id - name - url @@ -106976,10 +114882,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -107037,6 +114943,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107131,8 +115045,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -107182,11 +115112,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -107248,6 +115178,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107342,8 +115280,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -107393,13 +115347,21 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/BriefRearPortTemplate' rear_port_position: type: integer maximum: 1024 @@ -107436,11 +115398,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -107500,6 +115462,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107594,14 +115564,30 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -107614,6 +115600,22 @@ components: - name - rear_port - type + GenericObject: + type: object + description: Minimal representation of some generic object identified by ContentType + and PK. + properties: + object_type: + type: string + object_id: + type: integer + object: + nullable: true + readOnly: true + required: + - object + - object_id + - object_type GenericObjectRequest: type: object description: Minimal representation of some generic object identified by ContentType @@ -107640,6 +115642,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107658,6 +115664,7 @@ components: readOnly: true required: - display + - display_url - id - name - url @@ -107693,6 +115700,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107765,9 +115776,9 @@ components: required: - created - display + - display_url - id - last_updated - - mode - name - url - version @@ -107817,7 +115828,6 @@ components: type: object additionalProperties: {} required: - - mode - name - version IKEProposal: @@ -107831,6 +115841,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108066,10 +116080,10 @@ components: readOnly: true nullable: true required: - - authentication_algorithm - authentication_method - created - display + - display_url - encryption_algorithm - group - id @@ -108238,7 +116252,6 @@ components: type: object additionalProperties: {} required: - - authentication_algorithm - authentication_method - encryption_algorithm - group @@ -108254,6 +116267,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108277,14 +116294,143 @@ components: readOnly: true address: type: string + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + - DHCP + - SLAAC + role: + type: object + properties: + value: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + label: + type: string + enum: + - Loopback + - Secondary + - Anycast + - VIP + - VRRP + - HSRP + - GLBP + - CARP + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + assigned_object: + nullable: true + readOnly: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddress' + nullable: true + nat_outside: + type: array + items: + $ref: '#/components/schemas/NestedIPAddress' + readOnly: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - address + - assigned_object + - created - display + - display_url - family - id + - last_updated + - nat_outside - url IPAddressRequest: type: object @@ -108293,9 +116439,90 @@ components: address: type: string minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddressRequest' + nullable: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - address IPRange: @@ -108309,6 +116536,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108339,11 +116570,11 @@ components: readOnly: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true status: type: object @@ -108368,7 +116599,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true description: type: string @@ -108398,6 +116629,7 @@ components: required: - created - display + - display_url - end_address - family - id @@ -108417,11 +116649,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -108437,7 +116669,7 @@ components: x-spec-enum-id: 6388dfb94ca1cc15 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -108468,6 +116700,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108608,6 +116844,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -108724,6 +116961,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108751,9 +116992,9 @@ components: - ESP - AH ike_policy: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/BriefIKEPolicy' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/BriefIPSecPolicy' comments: type: string tags: @@ -108776,6 +117017,7 @@ components: required: - created - display + - display_url - id - ike_policy - ipsec_policy @@ -108804,9 +117046,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -108832,6 +117074,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108948,6 +117194,7 @@ components: - authentication_algorithm - created - display + - display_url - encryption_algorithm - id - last_updated @@ -109071,12 +117318,10 @@ components: format: uri image_height: type: integer - maximum: 32767 - minimum: 0 + readOnly: true image_width: type: integer - maximum: 32767 - minimum: 0 + readOnly: true created: type: string format: date-time @@ -109119,18 +117364,8 @@ components: image: type: string format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 required: - image - - image_height - - image_width - object_id - object_type Interface: @@ -109144,18 +117379,22 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' vdcs: type: array items: $ref: '#/components/schemas/VirtualDeviceContext' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -109177,6 +117416,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -109230,6 +117470,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -109311,6 +117552,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -109417,6 +117660,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -109544,7 +117789,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 label: type: string enum: @@ -109556,6 +117801,7 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) @@ -109609,6 +117855,7 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) - Other (Wireless) - GSM @@ -110660,7 +118907,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array @@ -110671,7 +118918,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -110690,26 +118937,29 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true wireless_lans: type: array items: $ref: '#/components/schemas/WirelessLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -110752,6 +119002,7 @@ components: - created - device - display + - display_url - id - l2vpn_termination - last_updated @@ -110766,14 +119017,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -110793,6 +119044,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -110846,6 +119098,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -110927,6 +119180,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -111033,6 +119288,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -111160,7 +119417,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean parent: @@ -111897,7 +120154,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -111912,7 +120169,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -111944,11 +120201,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -111972,6 +120229,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -112025,6 +120283,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -112106,6 +120365,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112212,6 +120473,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -112339,7 +120602,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 label: type: string enum: @@ -112351,6 +120614,7 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) @@ -112404,6 +120668,7 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) - Other (Wireless) - GSM @@ -112588,11 +120853,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -112614,6 +120879,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -112667,6 +120933,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -112748,6 +121015,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112854,6 +121123,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -112981,7 +121252,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean mgmt_only: @@ -113059,11 +121330,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' parent: type: integer nullable: true @@ -113076,11 +121351,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113140,6 +121415,7 @@ components: - created - device - display + - display_url - id - last_updated - name @@ -113149,7 +121425,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' parent: type: integer nullable: true @@ -113163,11 +121439,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113218,6 +121494,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113259,6 +121539,7 @@ components: required: - created - display + - display_url - id - inventoryitem_count - last_updated @@ -113314,7 +121595,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' parent: type: integer nullable: true @@ -113329,11 +121610,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113386,7 +121667,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' parent: type: integer nullable: true @@ -113402,11 +121683,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113437,6 +121718,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113510,7 +121795,7 @@ components: nullable: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true data: nullable: true @@ -113523,6 +121808,7 @@ components: required: - created - display + - display_url - error - id - job_id @@ -113531,13 +121817,6 @@ components: - status - url - user - JobRequest: - type: object - properties: - completed: - type: string - format: date-time - nullable: true JournalEntry: type: object description: Adds support for custom fields and tags. @@ -113549,6 +121828,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113616,6 +121899,7 @@ components: - comments - created - display + - display_url - id - last_updated - url @@ -113673,6 +121957,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113746,12 +122034,46 @@ components: - Ethernet Virtual Private LAN - Ethernet Private Tree - Ethernet Virtual Private Tree + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name - slug - url @@ -113813,9 +122135,30 @@ components: * `evp-tree` - Ethernet Virtual Private Tree' x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113830,23 +122173,76 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true l2vpn: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/BriefL2VPN' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + assigned_object: + nullable: true + readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - assigned_object + - assigned_object_id + - assigned_object_type + - created - display + - display_url - id - l2vpn + - last_updated - url L2VPNTerminationRequest: type: object description: Adds support for custom fields and tags. properties: l2vpn: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - assigned_object_id + - assigned_object_type - l2vpn Location: type: object @@ -113859,6 +122255,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113869,23 +122269,91 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSite' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocation' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true rack_count: type: integer readOnly: true default: 0 + device_count: + type: integer + readOnly: true + default: 0 _depth: type: integer readOnly: true title: ' depth' required: - _depth + - created - display + - display_url - id + - last_updated - name - rack_count + - site - slug - url LocationRequest: @@ -113901,11 +122369,51 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocationRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site - slug Manufacturer: type: object @@ -113918,6 +122426,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113931,14 +122443,44 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true devicetype_count: type: integer format: int64 readOnly: true + inventoryitem_count: + type: integer + format: int64 + readOnly: true + platform_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url - id + - inventoryitem_count + - last_updated - name + - platform_count - slug - url ManufacturerRequest: @@ -113957,6 +122499,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113971,18 +122520,92 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module_bay: $ref: '#/components/schemas/NestedModuleBay' + module_type: + $ref: '#/components/schemas/BriefModuleType' + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + label: + type: string + enum: + - Offline + - Active + - Planned + - Staged + - Failed + - Decommissioning + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - device - display + - display_url - id + - last_updated - module_bay + - module_type - url ModuleBay: type: object @@ -113995,17 +122618,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' + module: + allOf: + - $ref: '#/components/schemas/BriefModule' + nullable: true name: type: string maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true label: type: string @@ -114039,65 +122670,28 @@ components: - created - device - display + - display_url - id - last_updated - name - url - ModuleBayNestedModule: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - serial: - type: string - title: Serial number - maxLength: 50 - required: - - display - - id - - url - ModuleBayNestedModuleRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - serial: - type: string - title: Serial number - maxLength: 50 ModuleBayRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true label: type: string @@ -114138,7 +122732,13 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay @@ -114167,7 +122767,6 @@ components: nullable: true required: - created - - device_type - display - id - last_updated @@ -114181,7 +122780,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -114200,19 +122805,63 @@ components: type: string maxLength: 200 required: - - device_type - name ModuleRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: $ref: '#/components/schemas/NestedModuleBayRequest' + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - device - module_bay + - module_type ModuleType: type: object description: Adds support for custom fields and tags. @@ -114224,20 +122873,120 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' model: type: string maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - manufacturer - model - url @@ -114246,14 +122995,75 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -114274,6 +123084,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114291,6 +123105,7 @@ components: required: - _depth - display + - display_url - id - name - slug @@ -114334,6 +123149,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114343,6 +123162,7 @@ components: maxLength: 64 required: - display + - display_url - id - url NestedDeviceRequest: @@ -114376,6 +123196,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114384,9 +123208,61 @@ components: maxLength: 150 required: - display + - display_url - id - name - url + NestedIPAddress: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: integer + readOnly: true + address: + type: string + required: + - address + - display + - display_url + - family + - id + - url + NestedIPAddressRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + address: + type: string + minLength: 1 + required: + - address NestedInterface: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114404,6 +123280,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114425,6 +123305,7 @@ components: - _occupied - device - display + - display_url - id - name - url @@ -114495,6 +123376,71 @@ components: maxLength: 64 required: - name + NestedLocation: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - display_url + - id + - name + - slug + - url + NestedLocationRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug NestedModuleBay: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114512,18 +123458,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModule' - nullable: true name: type: string maxLength: 64 required: - display + - display_url - id - name - url @@ -114537,16 +123484,49 @@ components: subclassed to return a full representation of the related object on read.' properties: - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModuleRequest' - nullable: true name: type: string minLength: 1 maxLength: 64 required: - name + NestedProviderAccount: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + required: + - account + - display + - display_url + - id + - url NestedRegion: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114564,6 +123544,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114581,6 +123565,7 @@ components: required: - _depth - display + - display_url - id - name - slug @@ -114607,7 +123592,72 @@ components: required: - name - slug - NestedSiteGroup: + NestedSiteGroup: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - display_url + - id + - name + - slug + - url + NestedSiteGroupRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug + NestedTag: type: object description: 'Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a @@ -114624,63 +123674,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - slug - - url - NestedSiteGroupRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - - slug - NestedTag: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -114700,6 +123694,7 @@ components: maxLength: 6 required: - display + - display_url - id - name - slug @@ -114748,6 +123743,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114765,6 +123764,7 @@ components: required: - _depth - display + - display_url - id - name - slug @@ -114808,6 +123808,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114819,6 +123823,7 @@ components: maxLength: 150 required: - display + - display_url - id - url - username @@ -114839,6 +123844,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114851,6 +123860,7 @@ components: maxLength: 64 required: - display + - display_url - id - name - url @@ -114888,6 +123898,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114896,6 +123910,7 @@ components: maxLength: 64 required: - display + - display_url - id - name - url @@ -114915,6 +123930,49 @@ components: maxLength: 64 required: - name + NestedWirelessLANGroup: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - display_url + - id + - name + - slug + - url NestedWirelessLANGroupRequest: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114954,6 +124012,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114962,6 +124024,7 @@ components: maxLength: 32 required: - display + - display_url - id - url NestedWirelessLinkRequest: @@ -114977,6 +124040,193 @@ components: ssid: type: string maxLength: 32 + Notification: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - created + - display + - event_type + - id + - object + - object_id + - object_type + - url + - user + NotificationGroup: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + display_url: + type: string + format: uri + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + $ref: '#/components/schemas/Group' + users: + type: array + items: + $ref: '#/components/schemas/User' + required: + - display + - display_url + - id + - name + - url + NotificationGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + required: + - name + NotificationRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - event_type + - object_id + - object_type + - user ObjectChange: type: object properties: @@ -114987,6 +124237,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114996,7 +124250,7 @@ components: readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true user_name: type: string @@ -115041,17 +124295,16 @@ components: prechange_data: readOnly: true nullable: true - title: Pre-change data postchange_data: readOnly: true nullable: true - title: Post-change data required: - action - changed_object - changed_object_id - changed_object_type - display + - display_url - id - postchange_data - prechange_data @@ -115074,6 +124327,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -115110,6 +124367,7 @@ components: required: - actions - display + - display_url - id - name - object_types @@ -115321,6 +124579,52 @@ components: type: array items: $ref: '#/components/schemas/CableTermination' + PaginatedCircuitGroupAssignmentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CircuitGroupAssignment' + PaginatedCircuitGroupList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CircuitGroup' PaginatedCircuitList: type: object required: @@ -116609,6 +125913,52 @@ components: type: array items: $ref: '#/components/schemas/ModuleType' + PaginatedNotificationGroupList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + PaginatedNotificationList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/Notification' PaginatedObjectChangeList: type: object required: @@ -117023,6 +126373,29 @@ components: type: array items: $ref: '#/components/schemas/RackRole' + PaginatedRackTypeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/RackType' PaginatedRackUnitList: type: object required: @@ -117299,6 +126672,29 @@ components: type: array items: $ref: '#/components/schemas/Site' + PaginatedSubscriptionList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/Subscription' PaginatedTagList: type: object required: @@ -117773,7 +127169,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' start: type: integer maximum: 4294967295 @@ -117786,7 +127182,7 @@ components: format: int64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117810,11 +127206,11 @@ components: description: 16- or 32-bit autonomous system number rir: allOf: - - $ref: '#/components/schemas/RIRRequest' + - $ref: '#/components/schemas/BriefRIRRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117843,7 +127239,7 @@ components: minimum: 0 format: int64 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' PatchedCableTerminationRequest: type: object description: Adds support for custom fields and tags. @@ -117867,12 +127263,39 @@ components: maximum: 9223372036854775807 minimum: 0 format: int64 + PatchedCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedCircuitTerminationRequest: type: object description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/BriefCircuitRequest' term_side: enum: - A @@ -117885,11 +127308,11 @@ components: title: Termination site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true provider_network: allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' + - $ref: '#/components/schemas/BriefProviderNetworkRequest' nullable: true port_speed: type: integer @@ -118075,7 +127498,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} PatchedConfigTemplateRequest: type: object @@ -118101,7 +127524,7 @@ components: minLength: 1 description: Jinja2 template code. data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' tags: type: array items: @@ -118112,7 +127535,7 @@ components: properties: group: allOf: - - $ref: '#/components/schemas/ContactGroupRequest' + - $ref: '#/components/schemas/BriefContactGroupRequest' nullable: true name: type: string @@ -118205,7 +127628,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -118221,12 +127644,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -118267,23 +127690,986 @@ components: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + description: + type: string + maxLength: 200 + installed_device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedDeviceBayTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + description: + type: string + maxLength: 200 + PatchedDeviceRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedExportTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + template_code: + type: string + minLength: 1 + description: Jinja2 template code. The list of objects being exported is + passed as a context variable named queryset. + mime_type: + type: string + description: Defaults to text/plain; charset=utf-8 + maxLength: 50 + file_extension: + type: string + description: Extension to append to the rendered filename + maxLength: 15 + as_attachment: + type: boolean + description: Download file as attachment + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + PatchedFHRPGroupAssignmentRequest: + type: object + description: Adds support for custom fields and tags. + properties: + group: + $ref: '#/components/schemas/BriefFHRPGroupRequest' + interface_type: + type: string + interface_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + type: integer + maximum: 255 + minimum: 0 + PatchedFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + maxLength: 100 + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 150 + description: + type: string + maxLength: 200 + permissions: + type: array + items: + type: integer + PatchedImageAttachmentRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + name: + type: string + maxLength: 50 + image: + type: string + format: binary + PatchedInventoryItemRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this item + maxLength: 50 + discovered: + type: boolean + description: This item was automatically discovered + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedInventoryItemRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedInventoryItemTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + PatchedL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedModuleBayRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + installed_module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + label: + type: string + description: Physical label + maxLength: 64 + position: + type: string + description: Identifier to reference when renaming installed components + maxLength: 30 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedModuleBayTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + position: + type: string + description: Identifier to reference when renaming installed components + maxLength: 30 + description: + type: string + maxLength: 200 + PatchedNotificationGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedNotificationRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + PatchedObjectPermissionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + enabled: + type: boolean + object_types: + type: array + items: + type: string + actions: + type: array + items: + type: string + minLength: 1 + maxLength: 30 + description: The list of actions granted by this permission + constraints: + nullable: true + description: Queryset filter matching the applicable objects of the selected + type(s) + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' + name: + type: string + minLength: 1 + maxLength: 100 + service_id: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackReservationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + rack: + $ref: '#/components/schemas/BriefRackRequest' + units: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + user: + $ref: '#/components/schemas/BriefUserRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + minLength: 1 + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRouteTargetRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Route target value (formatted in accordance with RFC 4360) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedSavedFilterRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + user: + type: integer + nullable: true + weight: + type: integer + maximum: 32767 + minimum: 0 + enabled: + type: boolean + shared: + type: boolean + parameters: {} + PatchedScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + PatchedSubscriptionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + PatchedTagRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + pattern: ^[-\w]+$ + maxLength: 100 + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + object_types: + type: array + items: + type: string + PatchedTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 100 + slug: type: string - description: Physical label - maxLength: 64 + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true + comments: + type: string tags: type: array items: @@ -118291,29 +128677,34 @@ components: custom_fields: type: object additionalProperties: {} - PatchedDeviceBayTemplateRequest: + PatchedTokenRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - name: + user: + $ref: '#/components/schemas/BriefUserRequest' + expires: type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + format: date-time + nullable: true + last_used: type: string - description: Physical label - maxLength: 64 + format: date-time + nullable: true + key: + type: string + maxLength: 40 + minLength: 40 + write_enabled: + type: boolean + description: Permit create/update/delete operations using this key description: type: string maxLength: 200 - PatchedDeviceRoleRequest: + PatchedTunnelGroupRequest: type: object description: Adds support for custom fields and tags. properties: @@ -118326,18 +128717,6 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - config_template: - allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true description: type: string maxLength: 200 @@ -118348,114 +128727,82 @@ components: custom_fields: type: object additionalProperties: {} - PatchedExportTemplateRequest: + PatchedUserRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - object_types: - type: array - items: - type: string - name: + username: type: string minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + password: type: string + writeOnly: true minLength: 1 - description: Jinja2 template code. The list of objects being exported is - passed as a context variable named queryset. - mime_type: + maxLength: 128 + first_name: type: string - description: Defaults to text/plain; charset=utf-8 - maxLength: 50 - file_extension: + maxLength: 150 + last_name: type: string - description: Extension to append to the rendered filename - maxLength: 15 - as_attachment: + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: type: boolean - description: Download file as attachment - data_source: - $ref: '#/components/schemas/DataSourceRequest' - PatchedFHRPGroupAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - group: - $ref: '#/components/schemas/FHRPGroupRequest' - interface_type: + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: type: string - interface_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - priority: - type: integer - maximum: 255 - minimum: 0 - PatchedFHRPGroupRequest: + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer + PatchedVLANGroupRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string + minLength: 1 maxLength: 100 - protocol: - enum: - - vrrp2 - - vrrp3 - - carp - - clusterxl - - hsrp - - glbp - - other - type: string - description: '* `vrrp2` - VRRPv2 - - * `vrrp3` - VRRPv3 - - * `carp` - CARP - - * `clusterxl` - ClusterXL - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `other` - Other' - x-spec-enum-id: 40dc831c689b4b78 - group_id: - type: integer - maximum: 32767 - minimum: 0 - auth_type: - enum: - - plaintext - - md5 - - '' + slug: type: string - description: '* `plaintext` - Plaintext - - * `md5` - MD5' - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - auth_key: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + scope_type: type: string - title: Authentication key - maxLength: 255 + nullable: true + scope_id: + type: integer + nullable: true description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -118463,105 +128810,172 @@ components: custom_fields: type: object additionalProperties: {} - PatchedGroupRequest: + PatchedVRFRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 150 + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 - permissions: + comments: + type: string + import_targets: type: array items: type: integer - PatchedImageAttachmentRequest: + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedVirtualDiskRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 + virtual_machine: + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string - maxLength: 50 - image: + minLength: 1 + maxLength: 64 + description: type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: + maxLength: 200 + size: type: integer - maximum: 32767 + maximum: 2147483647 minimum: 0 - PatchedInventoryItemRequest: + title: Size (MB) + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWebhookRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - parent: - type: integer - nullable: true name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 150 + description: + type: string + maxLength: 200 + payload_url: + type: string + minLength: 1 + title: URL + description: This URL will be called using the HTTP method defined when + the webhook is called. Jinja2 template processing is supported with the + same context as the request body. + maxLength: 500 + http_method: + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' + x-spec-enum-id: a12018571a034921 + http_content_type: + type: string + minLength: 1 + description: The complete list of official content types is available here. + maxLength: 100 + additional_headers: + type: string + description: 'User-supplied HTTP headers to be sent with the request in + addition to the HTTP content type. Headers should be defined in the format + Name: Value. Jinja2 template processing is supported with + the same context as the request body (below).' + body_template: + type: string + description: 'Jinja2 template for a custom request body. If blank, a JSON + object representing the change will be included. Available context data + includes: event, model, timestamp, + username, request_id, and data.' + secret: + type: string + description: When provided, the request will include a X-Hook-Signature + header containing a HMAC hex digest of the payload body using the secret + as the key. The secret is not transmitted in the request. + maxLength: 255 + ssl_verification: + type: boolean + description: Enable SSL certificate verification. Disable with caution! + ca_file_path: type: string - description: Physical label - maxLength: 64 - role: - allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true - manufacturer: + description: The specific CA certificate file to use for SSL verification. + Leave blank to use the system defaults. + maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableAggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: + date_added: type: string + format: date nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered description: type: string maxLength: 200 - component_type: + comments: type: string - nullable: true - component_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true tags: type: array items: @@ -118569,27 +128983,152 @@ components: custom_fields: type: object additionalProperties: {} - PatchedInventoryItemRoleRequest: + PatchedWritableCableRequest: type: object description: Adds support for custom fields and tags. properties: - name: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' type: string - minLength: 1 - maxLength: 100 - slug: + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + label: type: string - minLength: 1 maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ color: type: string - minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -118597,65 +129136,99 @@ components: custom_fields: type: object additionalProperties: {} - PatchedInventoryItemTemplateRequest: + PatchedWritableCircuitGroupAssignmentRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableCircuitRequest: + type: object + description: Adds support for custom fields and tags. properties: - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - parent: - type: integer - nullable: true - name: + cid: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - role: + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true - manufacturer: + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - description: + install_date: type: string - maxLength: 200 - component_type: + format: date + nullable: true + title: Installed + termination_date: type: string + format: date nullable: true - component_id: + title: Terminates + commit_rate: type: integer - maximum: 9223372036854775807 + maximum: 2147483647 minimum: 0 - format: int64 nullable: true - PatchedL2VPNTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - l2vpn: - $ref: '#/components/schemas/L2VPNRequest' - assigned_object_type: + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + comments: type: string - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 tags: type: array items: @@ -118663,7 +129236,11 @@ components: custom_fields: type: object additionalProperties: {} - PatchedManufacturerRequest: + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' + PatchedWritableClusterRequest: type: object description: Adds support for custom fields and tags. properties: @@ -118671,14 +129248,43 @@ components: type: string minLength: 1 maxLength: 100 - slug: + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -118686,31 +129292,115 @@ components: custom_fields: type: object additionalProperties: {} - PatchedModuleBayRequest: + PatchedWritableConsolePortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true label: type: string description: Physical label maxLength: 64 - position: + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' type: string - description: Identifier to reference when renaming installed components - maxLength: 30 + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 description: type: string maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -118718,7 +129408,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedModuleBayTemplateRequest: + PatchedWritableConsolePortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -118726,7 +129416,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -118737,76 +129433,284 @@ components: type: string description: Physical label maxLength: 64 - position: + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' type: string - description: Identifier to reference when renaming installed components - maxLength: 30 + description: '* `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a description: type: string maxLength: 200 - PatchedObjectPermissionRequest: + PatchedWritableConsoleServerPortRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 - maxLength: 100 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 description: type: string maxLength: 200 - enabled: + mark_connected: type: boolean - object_types: - type: array - items: - type: string - actions: + description: Treat as if a cable is connected + tags: type: array items: - type: string - minLength: 1 - maxLength: 30 - description: The list of actions granted by this permission - constraints: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableConsoleServerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - groups: - type: array - items: - type: integer - users: - type: array - items: - type: integer - PatchedPlatformRequest: + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + description: '* `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a + description: + type: string + maxLength: 200 + PatchedWritableContactAssignmentRequest: type: object description: Adds support for custom fields and tags. properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: + object_type: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/ManufacturerRequest' - nullable: true - config_template: + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + contact: + $ref: '#/components/schemas/BriefContactRequest' + role: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true - description: + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' type: string - maxLength: 200 + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 tags: type: array items: @@ -118814,25 +129718,25 @@ components: custom_fields: type: object additionalProperties: {} - PatchedPowerPanelRequest: + PatchedWritableContactGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: - site: - $ref: '#/components/schemas/SiteRequest' - location: - allOf: - - $ref: '#/components/schemas/LocationRequest' - nullable: true name: type: string minLength: 1 maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -118840,97 +129744,272 @@ components: custom_fields: type: object additionalProperties: {} - PatchedProviderAccountRequest: + PatchedWritableCustomFieldChoiceSetRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - provider: - $ref: '#/components/schemas/ProviderRequest' name: - type: string - default: '' - maxLength: 100 - account: type: string minLength: 1 - title: Account ID maxLength: 100 description: type: string maxLength: 200 - comments: + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + - '' type: string - tags: + x-spec-enum-id: cf0efb5195f85007 + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + extra_choices: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderNetworkRequest: + type: array + items: {} + maxItems: 2 + minItems: 2 + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + PatchedWritableCustomFieldRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - provider: - $ref: '#/components/schemas/ProviderRequest' + object_types: + type: array + items: + type: string + type: + enum: + - text + - longtext + - integer + - decimal + - boolean + - date + - datetime + - url + - json + - select + - multiselect + - object + - multiobject + type: string + x-spec-enum-id: 22e3a64138d10046 + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' + related_object_type: + type: string + nullable: true name: type: string minLength: 1 - maxLength: 100 - service_id: + description: Internal field name + pattern: ^[a-z0-9_]+$ + maxLength: 50 + label: type: string - maxLength: 100 + description: Name of the field as displayed to users (if not provided, 'the + field's name will be used) + maxLength: 50 + group_name: + type: string + description: Custom fields within the same group will be displayed together + maxLength: 50 description: type: string maxLength: 200 + required: + type: boolean + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object + search_weight: + type: integer + maximum: 32767 + minimum: 0 + description: Weighting for search. Lower values are considered more important. + Fields with a search weight of zero will be ignored. + filter_logic: + enum: + - disabled + - loose + - exact + type: string + x-spec-enum-id: a958350ae21c10ee + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + ui_visible: + enum: + - always + - if-set + - hidden + type: string + x-spec-enum-id: cd2cf94af56de747 + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' + ui_editable: + enum: + - 'yes' + - 'no' + - hidden + type: string + x-spec-enum-id: 1065673147e26bb5 + description: 'Specifies whether the custom field value can be edited in + the UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' + is_cloneable: + type: boolean + description: Replicate this value when cloning objects + default: + nullable: true + description: Default value for the field (must be a JSON value). Encapsulate + strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). + weight: + type: integer + maximum: 32767 + minimum: 0 + title: Display weight + description: Fields with higher weights appear lower in a form. + validation_minimum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Minimum value + description: Minimum allowed value (for numeric fields) + validation_maximum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Maximum value + description: Maximum allowed value (for numeric fields) + validation_regex: + type: string + description: Regular expression to enforce on text field values. Use ^ and + $ to force matching of entire string. For example, ^[A-Z]{3}$ + will limit values to exactly three uppercase letters. + maxLength: 500 + choice_set: + allOf: + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' + nullable: true comments: type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderRequest: + PatchedWritableDataSourceRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - description: Full name of the provider maxLength: 100 - slug: + type: type: string minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - accounts: - type: array - items: - type: integer + maxLength: 50 + source_url: + type: string + minLength: 1 + title: URL + maxLength: 200 + enabled: + type: boolean description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing comments: type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' custom_fields: type: object additionalProperties: {} - PatchedRIRRequest: + PatchedWritableDeviceTypeRequest: type: object description: Adds support for custom fields and tags. properties: - name: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + model: type: string minLength: 1 maxLength: 100 @@ -118939,41 +130018,96 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - is_private: + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRackReservationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - rack: - $ref: '#/components/schemas/RackRequest' - units: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - user: - $ref: '#/components/schemas/UserRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string - minLength: 1 maxLength: 200 comments: type: string @@ -118984,27 +130118,176 @@ components: custom_fields: type: object additionalProperties: {} - PatchedRackRoleRequest: + PatchedWritableDeviceWithConfigContextRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string - minLength: 1 - maxLength: 100 - slug: + nullable: true + maxLength: 64 + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + role: + $ref: '#/components/schemas/BriefDeviceRoleRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + serial: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: + title: Serial number + description: Chassis serial number, assigned by the manufacturer + maxLength: 50 + asset_tag: type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true + position: + type: number + format: double + maximum: 1000 + minimum: 0.5 + exclusiveMaximum: true + nullable: true + title: Position (U) + face: + enum: + - front + - rear + - '' + type: string + description: '* `front` - Front + + * `rear` - Rear' + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + status: + enum: + - offline + - active + - planned + - staged + - failed + - inventory + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 8d8971779f16ee18 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + oob_ip: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/BriefClusterRequest' + nullable: true + virtual_chassis: + allOf: + - $ref: '#/components/schemas/BriefVirtualChassisRequest' + nullable: true + vc_position: + type: integer + maximum: 255 + minimum: 0 + nullable: true + vc_priority: + type: integer + maximum: 255 + minimum: 0 + nullable: true + description: Virtual chassis master election priority description: type: string maxLength: 200 + comments: + type: string + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -119012,51 +130295,285 @@ components: custom_fields: type: object additionalProperties: {} - PatchedRoleRequest: + PatchedWritableEventRuleRequest: type: object description: Adds support for custom fields and tags. properties: + object_types: + type: array + items: + type: string name: type: string minLength: 1 - maxLength: 100 - slug: + maxLength: 150 + enabled: + type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. + conditions: + nullable: true + description: A set of conditions which determine whether the event will + be generated. + action_type: + enum: + - webhook + - script + - notification type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 + action_object_type: + type: string + action_object_id: type: integer - maximum: 32767 + maximum: 9223372036854775807 minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + custom_fields: + type: object + additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRouteTargetRequest: + PatchedWritableFrontPortRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + rear_port: + type: integer + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 + description: Mapped position on corresponding rear port description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -119064,70 +130581,214 @@ components: custom_fields: type: object additionalProperties: {} - PatchedSavedFilterRequest: + PatchedWritableFrontPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - object_types: - type: array - items: - type: string + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 - maxLength: 100 - slug: + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other type: string - maxLength: 200 - user: - type: integer - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - enabled: - type: boolean - shared: - type: boolean - parameters: {} - PatchedTagRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a color: type: string - minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 + rear_port: + $ref: '#/components/schemas/BriefRearPortTemplateRequest' + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 description: type: string maxLength: 200 - object_types: - type: array - items: - type: string - PatchedTenantRequest: + PatchedWritableIKEPolicyRequest: type: object description: Adds support for custom fields and tags. properties: @@ -119135,18 +130796,37 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - allOf: - - $ref: '#/components/schemas/TenantGroupRequest' - nullable: true description: type: string maxLength: 200 + version: + enum: + - 1 + - 2 + type: integer + description: '* `1` - IKEv1 + + * `2` - IKEv2' + x-spec-enum-id: 00872b77916a1fde + minimum: 0 + maximum: 32767 + mode: + enum: + - aggressive + - main + - '' + type: string + description: '* `aggressive` - Aggressive + + * `main` - Main' + x-spec-enum-id: 64c1be7bdb2548ca + proposals: + type: array + items: + type: integer + preshared_key: + type: string + title: Pre-shared key comments: type: string tags: @@ -119156,34 +130836,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedTokenRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - user: - $ref: '#/components/schemas/UserRequest' - expires: - type: string - format: date-time - nullable: true - last_used: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - PatchedTunnelGroupRequest: + PatchedWritableIKEProposalRequest: type: object description: Adds support for custom fields and tags. properties: @@ -119191,14 +130844,158 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 + authentication_method: + enum: + - preshared-keys + - certificates + - rsa-signatures + - dsa-signatures + type: string + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + x-spec-enum-id: 92bb2f1103b3a262 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + authentication_algorithm: + enum: + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' + type: string + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + group: + enum: + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + type: integer + x-spec-enum-id: dbef43be795462a8 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + minimum: 0 + maximum: 32767 + sa_lifetime: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Security association lifetime (in seconds) + comments: + type: string tags: type: array items: @@ -119206,94 +131003,97 @@ components: custom_fields: type: object additionalProperties: {} - PatchedUserRequest: + PatchedWritableIPAddressRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: + address: type: string - writeOnly: true minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - last_login: - type: string - format: date-time + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - groups: - type: array - items: - type: integer - permissions: - type: array - items: - type: integer - PatchedVLANGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac type: string - minLength: 1 - maxLength: 100 - slug: + x-spec-enum-id: 24935cfee15bd268 + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - scope_type: + x-spec-enum-id: 10fbcb4930889b0f + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + assigned_object_type: type: string nullable: true - scope_id: + assigned_object_id: type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: + nat_inside: type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN + nullable: true + title: NAT (inside) + description: The IP for which this address is the "outside" IP + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -119301,41 +131101,48 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVRFRequest: + PatchedWritableIPRangeRequest: type: object description: Adds support for custom fields and tags. properties: - name: + start_address: type: string minLength: 1 - maxLength: 100 - rd: + end_address: type: string + minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 comments: type: string - import_targets: - type: array - items: - type: integer - export_targets: - type: array - items: - type: integer tags: type: array items: @@ -119343,24 +131150,107 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVirtualDiskRequest: + mark_utilized: + type: boolean + description: Treat as fully utilized + PatchedWritableIPSecPolicyRequest: type: object description: Adds support for custom fields and tags. properties: - virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 - maxLength: 64 + maxLength: 100 description: type: string maxLength: 200 - size: + proposals: + type: array + items: + type: integer + pfs_group: + enum: + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 type: integer - maximum: 2147483647 + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' minimum: 0 - title: Size (GB) + maximum: 32767 + comments: + type: string tags: type: array items: @@ -119368,103 +131258,113 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWebhookRequest: + PatchedWritableIPSecProfileRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 150 + maxLength: 100 description: type: string maxLength: 200 - payload_url: - type: string - minLength: 1 - title: URL - description: This URL will be called using the HTTP method defined when - the webhook is called. Jinja2 template processing is supported with the - same context as the request body. - maxLength: 500 - http_method: + mode: enum: - - GET - - POST - - PUT - - PATCH - - DELETE + - esp + - ah type: string - description: '* `GET` - GET - - * `POST` - POST - - * `PUT` - PUT - - * `PATCH` - PATCH + description: '* `esp` - ESP - * `DELETE` - DELETE' - x-spec-enum-id: a12018571a034921 - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is supported with - the same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a X-Hook-Signature - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: + * `ah` - AH' + x-spec-enum-id: 1136c2cdfee84436 + ike_policy: + $ref: '#/components/schemas/BriefIKEPolicyRequest' + ipsec_policy: + $ref: '#/components/schemas/BriefIPSecPolicyRequest' + comments: type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableAggregateRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedWritableIPSecProposalRequest: type: object description: Adds support for custom fields and tags. properties: - prefix: + name: type: string minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true + maxLength: 100 description: type: string maxLength: 200 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + - '' + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + title: Encryption + authentication_algorithm: + enum: + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' + type: string + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + sa_lifetime_seconds: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (seconds) + description: Security association lifetime (seconds) + sa_lifetime_data: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (KB) + description: Security association lifetime (in kilobytes) comments: type: string tags: @@ -119474,1353 +131374,1197 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableCableRequest: + PatchedWritableInterfaceRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + vdcs: + type: array + items: + type: integer + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 type: enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - mmf-om5 - - smf - - smf-os1 - - smf-os2 - - aoc - - power - - '' + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 1000base-tx + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.15.1 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - other type: string - description: '* `cat3` - CAT3 + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) - * `cat5` - CAT5 + * `32gfc-sfp28` - SFP28 (32GFC) - * `cat5e` - CAT5e + * `32gfc-sfpp` - SFP+ (32GFC) - * `cat6` - CAT6 + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `cat6a` - CAT6a + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `cat7` - CAT7 + * `64gfc-sfpp` - SFP+ (64GFC) - * `cat7a` - CAT7a + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `cat8` - CAT8 + * `infiniband-sdr` - SDR (2 Gbps) - * `dac-active` - Direct Attach Copper (Active) + * `infiniband-ddr` - DDR (4 Gbps) - * `dac-passive` - Direct Attach Copper (Passive) + * `infiniband-qdr` - QDR (8 Gbps) - * `mrj21-trunk` - MRJ21 Trunk + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `coaxial` - Coaxial + * `infiniband-fdr` - FDR (13.5 Gbps) - * `mmf` - Multimode Fiber + * `infiniband-edr` - EDR (25 Gbps) - * `mmf-om1` - Multimode Fiber (OM1) + * `infiniband-hdr` - HDR (50 Gbps) - * `mmf-om2` - Multimode Fiber (OM2) + * `infiniband-ndr` - NDR (100 Gbps) - * `mmf-om3` - Multimode Fiber (OM3) + * `infiniband-xdr` - XDR (250 Gbps) - * `mmf-om4` - Multimode Fiber (OM4) + * `t1` - T1 (1.544 Mbps) - * `mmf-om5` - Multimode Fiber (OM5) + * `e1` - E1 (2.048 Mbps) - * `smf` - Singlemode Fiber + * `t3` - T3 (45 Mbps) - * `smf-os1` - Singlemode Fiber (OS1) + * `e3` - E3 (34 Mbps) - * `smf-os2` - Singlemode Fiber (OS2) + * `xdsl` - xDSL - * `aoc` - Active Optical Cabling (AOC) + * `docsis` - DOCSIS - * `power` - Power' - x-spec-enum-id: e671018e64196f8d - a_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - b_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `planned` - Planned + * `epon` - EPON (1 Gbps) - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - length_unit: - enum: - - km - - m - - cm - - mi - - ft - - in - - '' - type: string - description: '* `km` - Kilometers + * `10g-epon` - 10G-EPON (10 Gbps) - * `m` - Meters + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `cm` - Centimeters + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `mi` - Miles + * `xgs-pon` - XGS-PON (10 Gbps) - * `ft` - Feet + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `in` - Inches' - x-spec-enum-id: e64ce3a2c5997172 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/ProviderRequest' - provider_account: - allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' - nullable: true - type: - $ref: '#/components/schemas/CircuitTypeRequest' - status: - enum: - - planned - - provisioning - - active - - offline - - deprovisioning - - decommissioned - type: string - description: '* `planned` - Planned + * `25g-pon` - 25G-PON (25 Gbps) - * `provisioning` - Provisioning + * `50g-pon` - 50G-PON (50 Gbps) - * `active` - Active + * `cisco-stackwise` - Cisco StackWise - * `offline` - Offline + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `deprovisioning` - Deprovisioning + * `cisco-flexstack` - Cisco FlexStack - * `decommissioned` - Decommissioned' - x-spec-enum-id: 63c838134a022200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' + x-spec-enum-id: 8d111a81a4af2fa3 + enabled: + type: boolean + parent: + type: integer nullable: true - install_date: - type: string - format: date + title: Parent interface + bridge: + type: integer nullable: true - title: Installed - termination_date: + title: Bridge interface + lag: + type: integer + nullable: true + title: Parent LAG + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: type: string - format: date nullable: true - title: Terminates - commit_rate: + speed: type: integer maximum: 2147483647 minimum: 0 nullable: true - title: Commit rate (Kbps) - description: Committed rate - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableClusterRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - $ref: '#/components/schemas/ClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' - nullable: true - status: + title: Speed (Kbps) + duplex: enum: - - planned - - staging - - active - - decommissioning - - offline + - half + - full + - auto + - '' type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active + description: '* `half` - Half - * `decommissioning` - Decommissioning + * `full` - Full - * `offline` - Offline' - x-spec-enum-id: 79d20a734d0eecbb - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + * `auto` - Auto' + x-spec-enum-id: 47eab9b1a65a1e21 nullable: true - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + wwn: + type: string nullable: true + mgmt_only: + type: boolean + title: Management only + description: This interface is used only for out-of-band management description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsolePortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: + mode: + enum: + - access + - tagged + - tagged-all + - '' type: string - minLength: 1 - maxLength: 64 - label: + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + rf_role: + enum: + - ap + - station + - '' type: string - description: Physical label - maxLength: 64 - type: + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + rf_channel: enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other + - 2.4g-1-2412-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 6g-1-5955-20 + - 6g-3-5965-40 + - 6g-5-5975-20 + - 6g-7-5985-80 + - 6g-9-5995-20 + - 6g-11-6005-40 + - 6g-13-6015-20 + - 6g-15-6025-160 + - 6g-17-6035-20 + - 6g-19-6045-40 + - 6g-21-6055-20 + - 6g-23-6065-80 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-233-7115-20 + - 60g-1-58320-2160 + - 60g-2-60480-2160 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 - '' type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + * `2.4g-2-2417-22` - 2 (2417 MHz) - * `de-9` - DE-9 + * `2.4g-3-2422-22` - 3 (2422 MHz) - * `db-25` - DB-25 + * `2.4g-4-2427-22` - 4 (2427 MHz) - * `rj-11` - RJ-11 + * `2.4g-5-2432-22` - 5 (2432 MHz) - * `rj-12` - RJ-12 + * `2.4g-6-2437-22` - 6 (2437 MHz) - * `rj-45` - RJ-45 + * `2.4g-7-2442-22` - 7 (2442 MHz) - * `mini-din-8` - Mini-DIN 8 + * `2.4g-8-2447-22` - 8 (2447 MHz) - * `usb-a` - USB Type A + * `2.4g-9-2452-22` - 9 (2452 MHz) - * `usb-b` - USB Type B + * `2.4g-10-2457-22` - 10 (2457 MHz) - * `usb-c` - USB Type C + * `2.4g-11-2462-22` - 11 (2462 MHz) - * `usb-mini-a` - USB Mini A + * `2.4g-12-2467-22` - 12 (2467 MHz) - * `usb-mini-b` - USB Mini B + * `2.4g-13-2472-22` - 13 (2472 MHz) - * `usb-micro-a` - USB Micro A + * `5g-32-5160-20` - 32 (5160/20 MHz) - * `usb-micro-b` - USB Micro B + * `5g-34-5170-40` - 34 (5170/40 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-36-5180-20` - 36 (5180/20 MHz) - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second + * `5g-38-5190-40` - 38 (5190/40 MHz) + * `5g-40-5200-20` - 40 (5200/20 MHz) - * `1200` - 1200 bps + * `5g-42-5210-80` - 42 (5210/80 MHz) - * `2400` - 2400 bps + * `5g-44-5220-20` - 44 (5220/20 MHz) - * `4800` - 4800 bps + * `5g-46-5230-40` - 46 (5230/40 MHz) - * `9600` - 9600 bps + * `5g-48-5240-20` - 48 (5240/20 MHz) - * `19200` - 19.2 kbps + * `5g-50-5250-160` - 50 (5250/160 MHz) - * `38400` - 38.4 kbps + * `5g-52-5260-20` - 52 (5260/20 MHz) - * `57600` - 57.6 kbps + * `5g-54-5270-40` - 54 (5270/40 MHz) - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsolePortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `5g-56-5280-20` - 56 (5280/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 + * `5g-58-5290-80` - 58 (5290/80 MHz) - * `db-25` - DB-25 + * `5g-60-5300-20` - 60 (5300/20 MHz) - * `rj-11` - RJ-11 + * `5g-62-5310-40` - 62 (5310/40 MHz) - * `rj-12` - RJ-12 + * `5g-64-5320-20` - 64 (5320/20 MHz) - * `rj-45` - RJ-45 + * `5g-100-5500-20` - 100 (5500/20 MHz) - * `mini-din-8` - Mini-DIN 8 + * `5g-102-5510-40` - 102 (5510/40 MHz) - * `usb-a` - USB Type A + * `5g-104-5520-20` - 104 (5520/20 MHz) - * `usb-b` - USB Type B + * `5g-106-5530-80` - 106 (5530/80 MHz) - * `usb-c` - USB Type C + * `5g-108-5540-20` - 108 (5540/20 MHz) - * `usb-mini-a` - USB Mini A + * `5g-110-5550-40` - 110 (5550/40 MHz) - * `usb-mini-b` - USB Mini B + * `5g-112-5560-20` - 112 (5560/20 MHz) - * `usb-micro-a` - USB Micro A + * `5g-114-5570-160` - 114 (5570/160 MHz) - * `usb-micro-b` - USB Micro B + * `5g-116-5580-20` - 116 (5580/20 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-118-5590-40` - 118 (5590/40 MHz) - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableConsoleServerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type + * `5g-120-5600-20` - 120 (5600/20 MHz) + * `5g-122-5610-80` - 122 (5610/80 MHz) - * `de-9` - DE-9 + * `5g-124-5620-20` - 124 (5620/20 MHz) - * `db-25` - DB-25 + * `5g-126-5630-40` - 126 (5630/40 MHz) - * `rj-11` - RJ-11 + * `5g-128-5640-20` - 128 (5640/20 MHz) - * `rj-12` - RJ-12 + * `5g-132-5660-20` - 132 (5660/20 MHz) - * `rj-45` - RJ-45 + * `5g-134-5670-40` - 134 (5670/40 MHz) - * `mini-din-8` - Mini-DIN 8 + * `5g-136-5680-20` - 136 (5680/20 MHz) - * `usb-a` - USB Type A + * `5g-138-5690-80` - 138 (5690/80 MHz) - * `usb-b` - USB Type B + * `5g-140-5700-20` - 140 (5700/20 MHz) - * `usb-c` - USB Type C + * `5g-142-5710-40` - 142 (5710/40 MHz) - * `usb-mini-a` - USB Mini A + * `5g-144-5720-20` - 144 (5720/20 MHz) - * `usb-mini-b` - USB Mini B + * `5g-149-5745-20` - 149 (5745/20 MHz) - * `usb-micro-a` - USB Micro A + * `5g-151-5755-40` - 151 (5755/40 MHz) - * `usb-micro-b` - USB Micro B + * `5g-153-5765-20` - 153 (5765/20 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-155-5775-80` - 155 (5775/80 MHz) - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second + * `5g-157-5785-20` - 157 (5785/20 MHz) + * `5g-159-5795-40` - 159 (5795/40 MHz) - * `1200` - 1200 bps + * `5g-161-5805-20` - 161 (5805/20 MHz) - * `2400` - 2400 bps + * `5g-163-5815-160` - 163 (5815/160 MHz) - * `4800` - 4800 bps + * `5g-165-5825-20` - 165 (5825/20 MHz) - * `9600` - 9600 bps + * `5g-167-5835-40` - 167 (5835/40 MHz) - * `19200` - 19.2 kbps + * `5g-169-5845-20` - 169 (5845/20 MHz) - * `38400` - 38.4 kbps + * `5g-171-5855-80` - 171 (5855/80 MHz) - * `57600` - 57.6 kbps + * `5g-173-5865-20` - 173 (5865/20 MHz) - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsoleServerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `5g-175-5875-40` - 175 (5875/40 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 + * `5g-177-5885-20` - 177 (5885/20 MHz) - * `db-25` - DB-25 + * `6g-1-5955-20` - 1 (5955/20 MHz) - * `rj-11` - RJ-11 + * `6g-3-5965-40` - 3 (5965/40 MHz) - * `rj-12` - RJ-12 + * `6g-5-5975-20` - 5 (5975/20 MHz) - * `rj-45` - RJ-45 + * `6g-7-5985-80` - 7 (5985/80 MHz) - * `mini-din-8` - Mini-DIN 8 + * `6g-9-5995-20` - 9 (5995/20 MHz) - * `usb-a` - USB Type A + * `6g-11-6005-40` - 11 (6005/40 MHz) - * `usb-b` - USB Type B + * `6g-13-6015-20` - 13 (6015/20 MHz) - * `usb-c` - USB Type C + * `6g-15-6025-160` - 15 (6025/160 MHz) - * `usb-mini-a` - USB Mini A + * `6g-17-6035-20` - 17 (6035/20 MHz) - * `usb-mini-b` - USB Mini B + * `6g-19-6045-40` - 19 (6045/40 MHz) - * `usb-micro-a` - USB Micro A + * `6g-21-6055-20` - 21 (6055/20 MHz) - * `usb-micro-b` - USB Micro B + * `6g-23-6065-80` - 23 (6065/80 MHz) - * `usb-micro-ab` - USB Micro AB + * `6g-25-6075-20` - 25 (6075/20 MHz) - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableContactAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - contact: - $ref: '#/components/schemas/ContactRequest' - role: - allOf: - - $ref: '#/components/schemas/ContactRoleRequest' - nullable: true - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary + * `6g-27-6085-40` - 27 (6085/40 MHz) - * `secondary` - Secondary + * `6g-29-6095-20` - 29 (6095/20 MHz) - * `tertiary` - Tertiary + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableContactGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCustomFieldChoiceSetRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-163-6765-40` - 163 (6765/40 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - base_choices: - enum: - - IATA - - ISO_3166 - - UN_LOCODE - - '' - type: string - x-spec-enum-id: cf0efb5195f85007 - description: 'Base set of predefined choices (optional) + * `6g-165-6775-20` - 165 (6775/20 MHz) + * `6g-167-6785-80` - 167 (6785/80 MHz) - * `IATA` - IATA (Airport codes) + * `6g-169-6795-20` - 169 (6795/20 MHz) - * `ISO_3166` - ISO 3166 (Country codes) + * `6g-171-6805-40` - 171 (6805/40 MHz) - * `UN_LOCODE` - UN/LOCODE (Location codes)' - extra_choices: - type: array - items: - type: array - items: {} - maxItems: 2 - minItems: 2 - order_alphabetically: - type: boolean - description: Choices are automatically ordered alphabetically - PatchedWritableCustomFieldRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-173-6815-20` - 173 (6815/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_types: - type: array - items: - type: string - type: - enum: - - text - - longtext - - integer - - decimal - - boolean - - date - - datetime - - url - - json - - select - - multiselect - - object - - multiobject - type: string - x-spec-enum-id: 22e3a64138d10046 - description: 'The type of data this custom field holds + * `6g-175-6825-160` - 175 (6825/160 MHz) + * `6g-177-6835-20` - 177 (6835/20 MHz) - * `text` - Text + * `6g-179-6845-40` - 179 (6845/40 MHz) - * `longtext` - Text (long) + * `6g-181-6855-20` - 181 (6855/20 MHz) - * `integer` - Integer + * `6g-183-6865-80` - 183 (6865/80 MHz) - * `decimal` - Decimal + * `6g-185-6875-20` - 185 (6875/20 MHz) - * `boolean` - Boolean (true/false) + * `6g-187-6885-40` - 187 (6885/40 MHz) - * `date` - Date + * `6g-189-6895-20` - 189 (6895/20 MHz) - * `datetime` - Date & time + * `6g-193-6915-20` - 193 (6915/20 MHz) - * `url` - URL + * `6g-195-6925-40` - 195 (6925/40 MHz) - * `json` - JSON + * `6g-197-6935-20` - 197 (6935/20 MHz) - * `select` - Selection + * `6g-199-6945-80` - 199 (6945/80 MHz) - * `multiselect` - Multiple selection + * `6g-201-6955-20` - 201 (6955/20 MHz) - * `object` - Object + * `6g-203-6965-40` - 203 (6965/40 MHz) - * `multiobject` - Multiple objects' - related_object_type: - type: string - nullable: true - name: - type: string - minLength: 1 - description: Internal field name - pattern: ^[a-z0-9_]+$ - maxLength: 50 - label: - type: string - description: Name of the field as displayed to users (if not provided, 'the - field's name will be used) - maxLength: 50 - group_name: - type: string - description: Custom fields within the same group will be displayed together - maxLength: 50 - description: - type: string - maxLength: 200 - required: - type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. - search_weight: - type: integer - maximum: 32767 - minimum: 0 - description: Weighting for search. Lower values are considered more important. - Fields with a search weight of zero will be ignored. - filter_logic: - enum: - - disabled - - loose - - exact - type: string - x-spec-enum-id: a958350ae21c10ee - description: 'Loose matches any instance of a given string; exact matches - the entire field. + * `6g-205-6975-20` - 205 (6975/20 MHz) + * `6g-207-6985-160` - 207 (6985/160 MHz) - * `disabled` - Disabled + * `6g-209-6995-20` - 209 (6995/20 MHz) - * `loose` - Loose + * `6g-211-7005-40` - 211 (7005/40 MHz) - * `exact` - Exact' - ui_visible: - enum: - - always - - if-set - - hidden - type: string - x-spec-enum-id: cd2cf94af56de747 - description: 'Specifies whether the custom field is displayed in the UI + * `6g-213-7015-20` - 213 (7015/20 MHz) + * `6g-215-7025-80` - 215 (7025/80 MHz) - * `always` - Always + * `6g-217-7035-20` - 217 (7035/20 MHz) - * `if-set` - If set + * `6g-219-7045-40` - 219 (7045/40 MHz) - * `hidden` - Hidden' - ui_editable: - enum: - - 'yes' - - 'no' - - hidden - type: string - x-spec-enum-id: 1065673147e26bb5 - description: 'Specifies whether the custom field value can be edited in - the UI + * `6g-221-7055-20` - 221 (7055/20 MHz) + * `6g-225-7075-20` - 225 (7075/20 MHz) - * `yes` - Yes + * `6g-227-7085-40` - 227 (7085/40 MHz) - * `no` - No + * `6g-229-7095-20` - 229 (7095/20 MHz) - * `hidden` - Hidden' - is_cloneable: - type: boolean - description: Replicate this value when cloning objects - default: - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - title: Display weight - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields) - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields) - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. - maxLength: 500 - choice_set: - allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - nullable: true - comments: - type: string - PatchedWritableDataSourceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - type: string - minLength: 1 - maxLength: 50 - source_url: - type: string - minLength: 1 - title: URL - maxLength: 200 - enabled: - type: boolean - description: - type: string - maxLength: 200 - comments: - type: string - parameters: - nullable: true - ignore_rules: - type: string - description: Patterns (one per line) matching files to ignore when syncing - custom_fields: - type: object - additionalProperties: {} - PatchedWritableDeviceTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' - default_platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: number - format: double - maximum: 1000 - minimum: 0 - exclusiveMaximum: true - default: 1.0 - title: Position (U) - exclude_from_utilization: - type: boolean - description: Devices of this type are excluded when calculating rack utilization. - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces. - subdevice_role: - enum: - - parent - - child - - '' - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. + * `6g-233-7115-20` - 233 (7115/20 MHz) + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) - * `parent` - Parent + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) - * `child` - Child' - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) - * `rear-to-front` - Rear to front + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) - * `left-to-right` - Left to right + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) - * `right-to-left` - Right to left + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) - * `side-to-rear` - Side to rear + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) - * `passive` - Passive + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) - * `g` - Grams + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) - * `lb` - Pounds + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableDeviceWithConfigContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - role: - $ref: '#/components/schemas/DeviceRoleRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - serial: - type: string - title: Serial number - description: Chassis serial number, assigned by the manufacturer - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/SiteRequest' - location: - allOf: - - $ref: '#/components/schemas/LocationRequest' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/RackRequest' - nullable: true - position: - type: number - format: double - maximum: 1000 - minimum: 0.5 - exclusiveMaximum: true - nullable: true - title: Position (U) - face: - enum: - - front - - rear - - '' - type: string - description: '* `front` - Front + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) - * `rear` - Rear' - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - status: - enum: - - offline - - active - - planned - - staged - - failed - - inventory - - decommissioning - type: string - description: '* `offline` - Offline + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) - * `active` - Active + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) - * `planned` - Planned + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) - * `staged` - Staged + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) - * `failed` - Failed + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) - * `inventory` - Inventory + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + poe_mode: + enum: + - pd + - pse + - '' + type: string + description: '* `pd` - PD - * `decommissioning` - Decommissioning' - x-spec-enum-id: 8d8971779f16ee18 - airflow: + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair - '' type: string - description: '* `front-to-rear` - Front to rear + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `rear-to-front` - Rear to front + * `type2-ieee802.3at` - 802.3at (Type 2) - * `left-to-right` - Left to right + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `right-to-left` - Right to left + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `side-to-rear` - Side to rear + * `passive-24v-2pair` - Passive 24V (2-pair) - * `passive` - Passive + * `passive-24v-4pair` - Passive 24V (4-pair) - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - oob_ip: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/ClusterRequest' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_channel_frequency: + type: number + format: double + maximum: 100000 + minimum: -100000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 + title: Channel frequency (MHz) + description: Populated by selected channel (if set) + rf_channel_width: + type: number + format: double + maximum: 10000 + minimum: -10000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - vc_priority: + title: Channel width (MHz) + description: Populated by selected channel (if set) + tx_power: type: integer - maximum: 255 + maximum: 127 minimum: 0 nullable: true - description: Virtual chassis master election priority - description: - type: string - maxLength: 200 - comments: - type: string - config_template: + title: Transmit power (dBm) + untagged_vlan: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true - local_context_data: + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context - tags: + tagged_vlans: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableEventRuleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_types: + type: integer + mark_connected: + type: boolean + description: Treat as if a cable is connected + wireless_lans: type: array items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. - enabled: - type: boolean - conditions: - nullable: true - description: A set of conditions which determine whether the event will - be generated. - action_type: - enum: - - webhook - - script - type: string - description: '* `webhook` - Webhook - - * `script` - Script' - x-spec-enum-id: a08300d86473de6e - action_object_type: - type: string - action_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 + type: integer + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableFrontPortRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedWritableInterfaceTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -120828,564 +132572,481 @@ components: maxLength: 64 type: enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 1000base-tx + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.15.1 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 - other type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C + description: '* `virtual` - Virtual - * `8p4c` - 8P4C + * `bridge` - Bridge - * `8p2c` - 8P2C + * `lag` - Link Aggregation Group (LAG) - * `6p6c` - 6P6C + * `100base-fx` - 100BASE-FX (10/100ME FIBER) - * `6p4c` - 6P4C + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - * `6p2c` - 6P2C + * `100base-tx` - 100BASE-TX (10/100ME) - * `4p4c` - 4P4C + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - * `4p2c` - 4P2C + * `1000base-t` - 1000BASE-T (1GE) - * `gg45` - GG45 + * `1000base-tx` - 1000BASE-TX (1GE) - * `tera-4p` - TERA 4P + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - * `tera-2p` - TERA 2P + * `5gbase-t` - 5GBASE-T (5GE) - * `tera-1p` - TERA 1P + * `10gbase-t` - 10GBASE-T (10GE) - * `110-punch` - 110 Punch + * `10gbase-cx4` - 10GBASE-CX4 (10GE) - * `bnc` - BNC + * `1000base-x-gbic` - GBIC (1GE) - * `f` - F Connector + * `1000base-x-sfp` - SFP (1GE) - * `n` - N Connector + * `10gbase-x-sfpp` - SFP+ (10GE) - * `mrj21` - MRJ21 + * `10gbase-x-xfp` - XFP (10GE) - * `fc` - FC + * `10gbase-x-xenpak` - XENPAK (10GE) - * `lc` - LC + * `10gbase-x-x2` - X2 (10GE) - * `lc-pc` - LC/PC + * `25gbase-x-sfp28` - SFP28 (25GE) - * `lc-upc` - LC/UPC + * `50gbase-x-sfp56` - SFP56 (50GE) - * `lc-apc` - LC/APC + * `40gbase-x-qsfpp` - QSFP+ (40GE) - * `lsh` - LSH + * `50gbase-x-sfp28` - QSFP28 (50GE) - * `lsh-pc` - LSH/PC + * `100gbase-x-cfp` - CFP (100GE) - * `lsh-upc` - LSH/UPC + * `100gbase-x-cfp2` - CFP2 (100GE) - * `lsh-apc` - LSH/APC + * `200gbase-x-cfp2` - CFP2 (200GE) - * `lx5` - LX.5 + * `400gbase-x-cfp2` - CFP2 (400GE) - * `lx5-pc` - LX.5/PC + * `100gbase-x-cfp4` - CFP4 (100GE) - * `lx5-upc` - LX.5/UPC + * `100gbase-x-cxp` - CXP (100GE) - * `lx5-apc` - LX.5/APC + * `100gbase-x-cpak` - Cisco CPAK (100GE) - * `mpo` - MPO + * `100gbase-x-dsfp` - DSFP (100GE) - * `mtrj` - MTRJ + * `100gbase-x-sfpdd` - SFP-DD (100GE) - * `sc` - SC + * `100gbase-x-qsfp28` - QSFP28 (100GE) - * `sc-pc` - SC/PC + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) - * `sc-upc` - SC/UPC + * `200gbase-x-qsfp56` - QSFP56 (200GE) - * `sc-apc` - SC/APC + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) - * `st` - ST + * `400gbase-x-qsfp112` - QSFP112 (400GE) - * `cs` - CS + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) - * `sn` - SN + * `400gbase-x-osfp` - OSFP (400GE) - * `sma-905` - SMA 905 + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) - * `sma-906` - SMA 906 + * `400gbase-x-cdfp` - CDFP (400GE) - * `urm-p2` - URM-P2 + * `400gbase-x-cfp8` - CPF8 (400GE) - * `urm-p4` - URM-P4 + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) - * `urm-p8` - URM-P8 + * `800gbase-x-osfp` - OSFP (800GE) - * `splice` - Splice + * `1000base-kx` - 1000BASE-KX (1GE) - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - type: integer - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: Mapped position on corresponding rear port - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableFrontPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `8p8c` - 8P8C + * `5gbase-kr` - 5GBASE-KR (5GE) - * `8p6c` - 8P6C + * `10gbase-kr` - 10GBASE-KR (10GE) - * `8p4c` - 8P4C + * `10gbase-kx4` - 10GBASE-KX4 (10GE) - * `8p2c` - 8P2C + * `25gbase-kr` - 25GBASE-KR (25GE) - * `6p6c` - 6P6C + * `40gbase-kr4` - 40GBASE-KR4 (40GE) - * `6p4c` - 6P4C + * `50gbase-kr` - 50GBASE-KR (50GE) - * `6p2c` - 6P2C + * `100gbase-kp4` - 100GBASE-KP4 (100GE) - * `4p4c` - 4P4C + * `100gbase-kr2` - 100GBASE-KR2 (100GE) - * `4p2c` - 4P2C + * `100gbase-kr4` - 100GBASE-KR4 (100GE) - * `gg45` - GG45 + * `ieee802.11a` - IEEE 802.11a - * `tera-4p` - TERA 4P + * `ieee802.11g` - IEEE 802.11b/g - * `tera-2p` - TERA 2P + * `ieee802.11n` - IEEE 802.11n - * `tera-1p` - TERA 1P + * `ieee802.11ac` - IEEE 802.11ac - * `110-punch` - 110 Punch + * `ieee802.11ad` - IEEE 802.11ad - * `bnc` - BNC + * `ieee802.11ax` - IEEE 802.11ax - * `f` - F Connector + * `ieee802.11ay` - IEEE 802.11ay - * `n` - N Connector + * `ieee802.11be` - IEEE 802.11be - * `mrj21` - MRJ21 + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) - * `fc` - FC + * `other-wireless` - Other (Wireless) - * `lc` - LC + * `gsm` - GSM - * `lc-pc` - LC/PC + * `cdma` - CDMA - * `lc-upc` - LC/UPC + * `lte` - LTE - * `lc-apc` - LC/APC + * `4g` - 4G - * `lsh` - LSH + * `5g` - 5G - * `lsh-pc` - LSH/PC + * `sonet-oc3` - OC-3/STM-1 - * `lsh-upc` - LSH/UPC + * `sonet-oc12` - OC-12/STM-4 - * `lsh-apc` - LSH/APC + * `sonet-oc48` - OC-48/STM-16 - * `lx5` - LX.5 + * `sonet-oc192` - OC-192/STM-64 - * `lx5-pc` - LX.5/PC + * `sonet-oc768` - OC-768/STM-256 - * `lx5-upc` - LX.5/UPC + * `sonet-oc1920` - OC-1920/STM-640 - * `lx5-apc` - LX.5/APC + * `sonet-oc3840` - OC-3840/STM-1234 - * `mpo` - MPO + * `1gfc-sfp` - SFP (1GFC) - * `mtrj` - MTRJ + * `2gfc-sfp` - SFP (2GFC) - * `sc` - SC + * `4gfc-sfp` - SFP (4GFC) - * `sc-pc` - SC/PC + * `8gfc-sfpp` - SFP+ (8GFC) - * `sc-upc` - SC/UPC + * `16gfc-sfpp` - SFP+ (16GFC) - * `sc-apc` - SC/APC + * `32gfc-sfp28` - SFP28 (32GFC) - * `st` - ST + * `32gfc-sfpp` - SFP+ (32GFC) - * `cs` - CS + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `sn` - SN + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `sma-905` - SMA 905 + * `64gfc-sfpp` - SFP+ (64GFC) - * `sma-906` - SMA 906 + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `urm-p2` - URM-P2 + * `infiniband-sdr` - SDR (2 Gbps) - * `urm-p4` - URM-P4 + * `infiniband-ddr` - DDR (4 Gbps) - * `urm-p8` - URM-P8 + * `infiniband-qdr` - QDR (8 Gbps) - * `splice` - Splice + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - PatchedWritableIKEPolicyRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - version: - enum: - - 1 - - 2 - type: integer - description: '* `1` - IKEv1 + * `infiniband-fdr` - FDR (13.5 Gbps) - * `2` - IKEv2' - x-spec-enum-id: 00872b77916a1fde - minimum: 0 - maximum: 32767 - mode: - enum: - - aggressive - - main - - '' - type: string - description: '* `aggressive` - Aggressive + * `infiniband-edr` - EDR (25 Gbps) - * `main` - Main' - x-spec-enum-id: 64c1be7bdb2548ca - proposals: - type: array - items: - type: integer - preshared_key: - type: string - title: Pre-shared key - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIKEProposalRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - authentication_method: - enum: - - preshared-keys - - certificates - - rsa-signatures - - dsa-signatures - type: string - description: '* `preshared-keys` - Pre-shared keys + * `infiniband-hdr` - HDR (50 Gbps) - * `certificates` - Certificates + * `infiniband-ndr` - NDR (100 Gbps) - * `rsa-signatures` - RSA signatures + * `infiniband-xdr` - XDR (250 Gbps) - * `dsa-signatures` - DSA signatures' - x-spec-enum-id: 92bb2f1103b3a262 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) + * `t1` - T1 (1.544 Mbps) - * `aes-128-gcm` - 128-bit AES (GCM) + * `e1` - E1 (2.048 Mbps) - * `aes-192-cbc` - 192-bit AES (CBC) + * `t3` - T3 (45 Mbps) - * `aes-192-gcm` - 192-bit AES (GCM) + * `e3` - E3 (34 Mbps) - * `aes-256-cbc` - 256-bit AES (CBC) + * `xdsl` - xDSL - * `aes-256-gcm` - 256-bit AES (GCM) + * `docsis` - DOCSIS - * `3des-cbc` - 3DES + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - authentication_algorithm: - enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 - - '' - type: string - description: '* `hmac-sha1` - SHA-1 HMAC + * `epon` - EPON (1 Gbps) - * `hmac-sha256` - SHA-256 HMAC + * `10g-epon` - 10G-EPON (10 Gbps) - * `hmac-sha384` - SHA-384 HMAC + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `hmac-sha512` - SHA-512 HMAC + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 - description: 'Diffie-Hellman group ID + * `xgs-pon` - XGS-PON (10 Gbps) + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `1` - Group 1 + * `25g-pon` - 25G-PON (25 Gbps) - * `2` - Group 2 + * `50g-pon` - 50G-PON (50 Gbps) - * `5` - Group 5 + * `cisco-stackwise` - Cisco StackWise - * `14` - Group 14 + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `15` - Group 15 + * `cisco-flexstack` - Cisco FlexStack - * `16` - Group 16 + * `cisco-flexstack-plus` - Cisco FlexStack Plus - * `17` - Group 17 + * `cisco-stackwise-80` - Cisco StackWise-80 - * `18` - Group 18 + * `cisco-stackwise-160` - Cisco StackWise-160 - * `19` - Group 19 + * `cisco-stackwise-320` - Cisco StackWise-320 - * `20` - Group 20 + * `cisco-stackwise-480` - Cisco StackWise-480 - * `21` - Group 21 + * `cisco-stackwise-1t` - Cisco StackWise-1T - * `22` - Group 22 + * `juniper-vcp` - Juniper VCP - * `23` - Group 23 + * `extreme-summitstack` - Extreme SummitStack - * `24` - Group 24 + * `extreme-summitstack-128` - Extreme SummitStack-128 - * `25` - Group 25 + * `extreme-summitstack-256` - Extreme SummitStack-256 - * `26` - Group 26 + * `extreme-summitstack-512` - Extreme SummitStack-512 - * `27` - Group 27 + * `other` - Other' + x-spec-enum-id: 8d111a81a4af2fa3 + enabled: + type: boolean + mgmt_only: + type: boolean + title: Management only + description: + type: string + maxLength: 200 + bridge: + type: integer + nullable: true + title: Bridge interface + poe_mode: + enum: + - pd + - pse + - '' + type: string + description: '* `pd` - PD - * `28` - Group 28 + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: + enum: + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - '' + type: string + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `29` - Group 29 + * `type2-ieee802.3at` - 802.3at (Type 2) - * `30` - Group 30 + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `31` - Group 31 + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `32` - Group 32 + * `passive-24v-2pair` - Passive 24V (2-pair) - * `33` - Group 33 + * `passive-24v-4pair` - Passive 24V (4-pair) - * `34` - Group 34' - minimum: 0 - maximum: 32767 - sa_lifetime: + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_role: + enum: + - ap + - station + - '' + type: string + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + PatchedWritableJournalEntryRequest: + type: object + description: Adds support for custom fields and tags. + properties: + assigned_object_type: + type: string + assigned_object_id: type: integer - maximum: 2147483647 + maximum: 9223372036854775807 minimum: 0 + format: int64 + created_by: + type: integer nullable: true - description: Security association lifetime (in seconds) + kind: + enum: + - info + - success + - warning + - danger + type: string + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' + x-spec-enum-id: a21af280f632fa34 comments: type: string + minLength: 1 tags: type: array items: @@ -121393,92 +133054,182 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPAddressRequest: + PatchedWritableL2VPNRequest: type: object description: Adds support for custom fields and tags. properties: - address: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: type: string minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: enum: - - active - - reserved - - deprecated - - dhcp - - slaac + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree type: string - x-spec-enum-id: 24935cfee15bd268 - description: 'The operational status of this IP + description: '* `vpws` - VPWS + * `vpls` - VPLS - * `active` - Active + * `vxlan` - VXLAN - * `reserved` - Reserved + * `vxlan-evpn` - VXLAN-EVPN - * `deprecated` - Deprecated + * `mpls-evpn` - MPLS EVPN - * `dhcp` - DHCP + * `pbb-evpn` - PBB EVPN - * `slaac` - SLAAC' - role: + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableLocationRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + type: integer + nullable: true + status: enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - - '' + - planned + - staging + - active + - decommissioning + - retired type: string - x-spec-enum-id: 10fbcb4930889b0f - description: 'The functional role of this IP + description: '* `planned` - Planned + * `staging` - Staging - * `loopback` - Loopback + * `active` - Active - * `secondary` - Secondary + * `decommissioning` - Decommissioning - * `anycast` - Anycast + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + type: integer + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline - * `vip` - VIP + * `active` - Active - * `vrrp` - VRRP + * `planned` - Planned - * `hsrp` - HSRP + * `staged` - Staged - * `glbp` - GLBP + * `failed` - Failed - * `carp` - CARP' - assigned_object_type: + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: type: string - nullable: true - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - nat_inside: - type: integer - nullable: true - title: NAT (inside) - description: The IP for which this address is the "outside" IP - dns_name: + title: Serial number + maxLength: 50 + asset_tag: type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ - maxLength: 255 + nullable: true + description: A unique tag used to identify this device + maxLength: 50 description: type: string maxLength: 200 @@ -121491,43 +133242,66 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPRangeRequest: + PatchedWritableModuleTypeRequest: type: object description: Adds support for custom fields and tags. properties: - start_address: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: type: string minLength: 1 - end_address: + maxLength: 100 + part_number: type: string - minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: + description: Discrete part number (optional) + maxLength: 50 + airflow: enum: - - active - - reserved - - deprecated + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this range + description: '* `front-to-rear` - Front to rear + * `rear-to-front` - Rear to front - * `active` - Active + * `left-to-right` - Left to right - * `reserved` - Reserved + * `right-to-left` - Right to left - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 @@ -121540,223 +133314,436 @@ components: custom_fields: type: object additionalProperties: {} - mark_utilized: - type: boolean - description: Treat as fully utilized - PatchedWritableIPSecPolicyRequest: + PatchedWritablePowerFeedRequest: type: object description: Adds support for custom fields and tags. properties: + power_panel: + $ref: '#/components/schemas/BriefPowerPanelRequest' + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + status: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary + + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 - proposals: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: type: array items: - type: integer - pfs_group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritablePowerOutletRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true - description: 'Diffie-Hellman group for Perfect Forward Secrecy + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + x-spec-enum-id: 83934a5ad90d6138 + description: 'Physical port type - * `1` - Group 1 + * `iec-60320-c5` - C5 - * `2` - Group 2 + * `iec-60320-c7` - C7 - * `5` - Group 5 + * `iec-60320-c13` - C13 - * `14` - Group 14 + * `iec-60320-c15` - C15 - * `15` - Group 15 + * `iec-60320-c19` - C19 - * `16` - Group 16 + * `iec-60320-c21` - C21 - * `17` - Group 17 + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `18` - Group 18 + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `19` - Group 19 + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `20` - Group 20 + * `iec-60309-2p-e-4h` - 2P+E 4H - * `21` - Group 21 + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K - * `22` - Group 22 + * `ita-l` - ITA Type L (CEI 23-50) - * `23` - Group 23 + * `ita-m` - ITA Type M (BS 546) - * `24` - Group 24 + * `ita-n` - ITA Type N - * `25` - Group 25 + * `ita-o` - ITA Type O - * `26` - Group 26 + * `ita-multistandard` - ITA Multistandard - * `27` - Group 27 + * `usb-a` - USB Type A - * `28` - Group 28 + * `usb-micro-b` - USB Micro B - * `29` - Group 29 + * `usb-c` - USB Type C - * `30` - Group 30 + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `31` - Group 31 + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `32` - Group 32 + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `33` - Group 33 + * `dc-terminal` - DC Terminal - * `34` - Group 34' - minimum: 0 - maximum: 32767 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProfileRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - mode: - enum: - - esp - - ah - type: string - description: '* `esp` - ESP + * `hdot-cx` - HDOT Cx - * `ah` - AH' - x-spec-enum-id: 1136c2cdfee84436 - ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' - ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProposalRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - - '' - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) + * `saf-d-grid` - Saf-D-Grid - * `aes-128-gcm` - 128-bit AES (GCM) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `aes-192-cbc` - 192-bit AES (CBC) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `aes-192-gcm` - 192-bit AES (GCM) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `aes-256-cbc` - 256-bit AES (CBC) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `aes-256-gcm` - 256-bit AES (GCM) + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `3des-cbc` - 3DES + * `hardwired` - Hardwired - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - title: Encryption - authentication_algorithm: + * `other` - Other' + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortRequest' + nullable: true + feed_leg: enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 + - A + - B + - C - '' type: string - description: '* `hmac-sha1` - SHA-1 HMAC + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `hmac-sha256` - SHA-256 HMAC - * `hmac-sha384` - SHA-384 HMAC + * `A` - A - * `hmac-sha512` - SHA-512 HMAC + * `B` - B - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - sa_lifetime_seconds: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (seconds) - description: Security association lifetime (seconds) - sa_lifetime_data: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (KB) - description: Security association lifetime (in kilobytes) - comments: + * `C` - C' + description: type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -121764,23 +133751,26 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceRequest: + PatchedWritablePowerOutletTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/DeviceRequest' - vdcs: - type: array - items: - type: integer - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -121788,1140 +133778,1295 @@ components: maxLength: 64 type: enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired - other + - '' type: string - description: '* `virtual` - Virtual - - * `bridge` - Bridge - - * `lag` - Link Aggregation Group (LAG) - - * `100base-fx` - 100BASE-FX (10/100ME FIBER) - - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - - * `100base-tx` - 100BASE-TX (10/100ME) - - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - - * `1000base-t` - 1000BASE-T (1GE) - - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - - * `5gbase-t` - 5GBASE-T (5GE) - - * `10gbase-t` - 10GBASE-T (10GE) - - * `10gbase-cx4` - 10GBASE-CX4 (10GE) - - * `1000base-x-gbic` - GBIC (1GE) - - * `1000base-x-sfp` - SFP (1GE) - - * `10gbase-x-sfpp` - SFP+ (10GE) - - * `10gbase-x-xfp` - XFP (10GE) - - * `10gbase-x-xenpak` - XENPAK (10GE) - - * `10gbase-x-x2` - X2 (10GE) - - * `25gbase-x-sfp28` - SFP28 (25GE) - - * `50gbase-x-sfp56` - SFP56 (50GE) - - * `40gbase-x-qsfpp` - QSFP+ (40GE) - - * `50gbase-x-sfp28` - QSFP28 (50GE) - - * `100gbase-x-cfp` - CFP (100GE) - - * `100gbase-x-cfp2` - CFP2 (100GE) - - * `200gbase-x-cfp2` - CFP2 (200GE) - - * `400gbase-x-cfp2` - CFP2 (400GE) - - * `100gbase-x-cfp4` - CFP4 (100GE) - - * `100gbase-x-cxp` - CXP (100GE) - - * `100gbase-x-cpak` - Cisco CPAK (100GE) + description: '* `iec-60320-c5` - C5 - * `100gbase-x-dsfp` - DSFP (100GE) + * `iec-60320-c7` - C7 - * `100gbase-x-sfpdd` - SFP-DD (100GE) + * `iec-60320-c13` - C13 - * `100gbase-x-qsfp28` - QSFP28 (100GE) + * `iec-60320-c15` - C15 - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + * `iec-60320-c19` - C19 - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `iec-60320-c21` - C21 - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `400gbase-x-osfp` - OSFP (400GE) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `400gbase-x-cdfp` - CDFP (400GE) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `400gbase-x-cfp8` - CPF8 (400GE) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `800gbase-x-osfp` - OSFP (800GE) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `1000base-kx` - 1000BASE-KX (1GE) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `5gbase-kr` - 5GBASE-KR (5GE) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `10gbase-kr` - 10GBASE-KR (10GE) + * `iec-60906-1` - IEC 60906-1 - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `25gbase-kr` - 25GBASE-KR (25GE) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `nema-1-15r` - NEMA 1-15R - * `50gbase-kr` - 50GBASE-KR (50GE) + * `nema-5-15r` - NEMA 5-15R - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `nema-5-20r` - NEMA 5-20R - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `nema-5-30r` - NEMA 5-30R - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `nema-5-50r` - NEMA 5-50R - * `ieee802.11a` - IEEE 802.11a + * `nema-6-15r` - NEMA 6-15R - * `ieee802.11g` - IEEE 802.11b/g + * `nema-6-20r` - NEMA 6-20R - * `ieee802.11n` - IEEE 802.11n + * `nema-6-30r` - NEMA 6-30R - * `ieee802.11ac` - IEEE 802.11ac + * `nema-6-50r` - NEMA 6-50R - * `ieee802.11ad` - IEEE 802.11ad + * `nema-10-30r` - NEMA 10-30R - * `ieee802.11ax` - IEEE 802.11ax + * `nema-10-50r` - NEMA 10-50R - * `ieee802.11ay` - IEEE 802.11ay + * `nema-14-20r` - NEMA 14-20R - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `nema-14-30r` - NEMA 14-30R - * `other-wireless` - Other (Wireless) + * `nema-14-50r` - NEMA 14-50R - * `gsm` - GSM + * `nema-14-60r` - NEMA 14-60R - * `cdma` - CDMA + * `nema-15-15r` - NEMA 15-15R - * `lte` - LTE + * `nema-15-20r` - NEMA 15-20R - * `4g` - 4G + * `nema-15-30r` - NEMA 15-30R - * `5g` - 5G + * `nema-15-50r` - NEMA 15-50R - * `sonet-oc3` - OC-3/STM-1 + * `nema-15-60r` - NEMA 15-60R - * `sonet-oc12` - OC-12/STM-4 + * `nema-l1-15r` - NEMA L1-15R - * `sonet-oc48` - OC-48/STM-16 + * `nema-l5-15r` - NEMA L5-15R - * `sonet-oc192` - OC-192/STM-64 + * `nema-l5-20r` - NEMA L5-20R - * `sonet-oc768` - OC-768/STM-256 + * `nema-l5-30r` - NEMA L5-30R - * `sonet-oc1920` - OC-1920/STM-640 + * `nema-l5-50r` - NEMA L5-50R - * `sonet-oc3840` - OC-3840/STM-1234 + * `nema-l6-15r` - NEMA L6-15R - * `1gfc-sfp` - SFP (1GFC) + * `nema-l6-20r` - NEMA L6-20R - * `2gfc-sfp` - SFP (2GFC) + * `nema-l6-30r` - NEMA L6-30R - * `4gfc-sfp` - SFP (4GFC) + * `nema-l6-50r` - NEMA L6-50R - * `8gfc-sfpp` - SFP+ (8GFC) + * `nema-l10-30r` - NEMA L10-30R - * `16gfc-sfpp` - SFP+ (16GFC) + * `nema-l14-20r` - NEMA L14-20R - * `32gfc-sfp28` - SFP28 (32GFC) + * `nema-l14-30r` - NEMA L14-30R - * `32gfc-sfpp` - SFP+ (32GFC) + * `nema-l14-50r` - NEMA L14-50R - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `nema-l14-60r` - NEMA L14-60R - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `nema-l15-20r` - NEMA L15-20R - * `64gfc-sfpp` - SFP+ (64GFC) + * `nema-l15-30r` - NEMA L15-30R - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `nema-l15-50r` - NEMA L15-50R - * `infiniband-sdr` - SDR (2 Gbps) + * `nema-l15-60r` - NEMA L15-60R - * `infiniband-ddr` - DDR (4 Gbps) + * `nema-l21-20r` - NEMA L21-20R - * `infiniband-qdr` - QDR (8 Gbps) + * `nema-l21-30r` - NEMA L21-30R - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `nema-l22-20r` - NEMA L22-20R - * `infiniband-fdr` - FDR (13.5 Gbps) + * `nema-l22-30r` - NEMA L22-30R - * `infiniband-edr` - EDR (25 Gbps) + * `CS6360C` - CS6360C - * `infiniband-hdr` - HDR (50 Gbps) + * `CS6364C` - CS6364C - * `infiniband-ndr` - NDR (100 Gbps) + * `CS8164C` - CS8164C - * `infiniband-xdr` - XDR (250 Gbps) + * `CS8264C` - CS8264C - * `t1` - T1 (1.544 Mbps) + * `CS8364C` - CS8364C - * `e1` - E1 (2.048 Mbps) + * `CS8464C` - CS8464C - * `t3` - T3 (45 Mbps) + * `ita-e` - ITA Type E (CEE 7/5) - * `e3` - E3 (34 Mbps) + * `ita-f` - ITA Type F (CEE 7/3) - * `xdsl` - xDSL + * `ita-g` - ITA Type G (BS 1363) - * `docsis` - DOCSIS + * `ita-h` - ITA Type H - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `ita-i` - ITA Type I - * `epon` - EPON (1 Gbps) + * `ita-j` - ITA Type J - * `10g-epon` - 10G-EPON (10 Gbps) + * `ita-k` - ITA Type K - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `ita-l` - ITA Type L (CEI 23-50) - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `ita-m` - ITA Type M (BS 546) - * `xgs-pon` - XGS-PON (10 Gbps) + * `ita-n` - ITA Type N - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `ita-o` - ITA Type O - * `25g-pon` - 25G-PON (25 Gbps) + * `ita-multistandard` - ITA Multistandard - * `50g-pon` - 50G-PON (50 Gbps) + * `usb-a` - USB Type A - * `cisco-stackwise` - Cisco StackWise + * `usb-micro-b` - USB Micro B - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `usb-c` - USB Type C - * `cisco-flexstack` - Cisco FlexStack + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `cisco-stackwise-80` - Cisco StackWise-80 + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `cisco-stackwise-160` - Cisco StackWise-160 + * `dc-terminal` - DC Terminal - * `cisco-stackwise-320` - Cisco StackWise-320 + * `hdot-cx` - HDOT Cx - * `cisco-stackwise-480` - Cisco StackWise-480 + * `saf-d-grid` - Saf-D-Grid - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `juniper-vcp` - Juniper VCP + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `extreme-summitstack` - Extreme SummitStack + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - lag: - type: integer - nullable: true - title: Parent LAG - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - speed: - type: integer - maximum: 2147483647 - minimum: 0 + x-spec-enum-id: 83934a5ad90d6138 + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true - title: Speed (Kbps) - duplex: + feed_leg: enum: - - half - - full - - auto + - A + - B + - C - '' type: string - description: '* `half` - Half + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `full` - Full - * `auto` - Auto' - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true - wwn: - type: string - nullable: true - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management + * `A` - A + + * `B` - B + + * `C` - C' description: type: string maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' + PatchedWritablePowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - rf_role: - enum: - - ap - - station - - '' + minLength: 1 + maxLength: 64 + label: type: string - description: '* `ap` - Access point - - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - rf_channel: + description: Physical label + maxLength: 64 + type: enum: - - 2.4g-1-2412-22 - - 2.4g-2-2417-22 - - 2.4g-3-2422-22 - - 2.4g-4-2427-22 - - 2.4g-5-2432-22 - - 2.4g-6-2437-22 - - 2.4g-7-2442-22 - - 2.4g-8-2447-22 - - 2.4g-9-2452-22 - - 2.4g-10-2457-22 - - 2.4g-11-2462-22 - - 2.4g-12-2467-22 - - 2.4g-13-2472-22 - - 5g-32-5160-20 - - 5g-34-5170-40 - - 5g-36-5180-20 - - 5g-38-5190-40 - - 5g-40-5200-20 - - 5g-42-5210-80 - - 5g-44-5220-20 - - 5g-46-5230-40 - - 5g-48-5240-20 - - 5g-50-5250-160 - - 5g-52-5260-20 - - 5g-54-5270-40 - - 5g-56-5280-20 - - 5g-58-5290-80 - - 5g-60-5300-20 - - 5g-62-5310-40 - - 5g-64-5320-20 - - 5g-100-5500-20 - - 5g-102-5510-40 - - 5g-104-5520-20 - - 5g-106-5530-80 - - 5g-108-5540-20 - - 5g-110-5550-40 - - 5g-112-5560-20 - - 5g-114-5570-160 - - 5g-116-5580-20 - - 5g-118-5590-40 - - 5g-120-5600-20 - - 5g-122-5610-80 - - 5g-124-5620-20 - - 5g-126-5630-40 - - 5g-128-5640-20 - - 5g-132-5660-20 - - 5g-134-5670-40 - - 5g-136-5680-20 - - 5g-138-5690-80 - - 5g-140-5700-20 - - 5g-142-5710-40 - - 5g-144-5720-20 - - 5g-149-5745-20 - - 5g-151-5755-40 - - 5g-153-5765-20 - - 5g-155-5775-80 - - 5g-157-5785-20 - - 5g-159-5795-40 - - 5g-161-5805-20 - - 5g-163-5815-160 - - 5g-165-5825-20 - - 5g-167-5835-40 - - 5g-169-5845-20 - - 5g-171-5855-80 - - 5g-173-5865-20 - - 5g-175-5875-40 - - 5g-177-5885-20 - - 6g-1-5955-20 - - 6g-3-5965-40 - - 6g-5-5975-20 - - 6g-7-5985-80 - - 6g-9-5995-20 - - 6g-11-6005-40 - - 6g-13-6015-20 - - 6g-15-6025-160 - - 6g-17-6035-20 - - 6g-19-6045-40 - - 6g-21-6055-20 - - 6g-23-6065-80 - - 6g-25-6075-20 - - 6g-27-6085-40 - - 6g-29-6095-20 - - 6g-31-6105-320 - - 6g-33-6115-20 - - 6g-35-6125-40 - - 6g-37-6135-20 - - 6g-39-6145-80 - - 6g-41-6155-20 - - 6g-43-6165-40 - - 6g-45-6175-20 - - 6g-47-6185-160 - - 6g-49-6195-20 - - 6g-51-6205-40 - - 6g-53-6215-20 - - 6g-55-6225-80 - - 6g-57-6235-20 - - 6g-59-6245-40 - - 6g-61-6255-20 - - 6g-65-6275-20 - - 6g-67-6285-40 - - 6g-69-6295-20 - - 6g-71-6305-80 - - 6g-73-6315-20 - - 6g-75-6325-40 - - 6g-77-6335-20 - - 6g-79-6345-160 - - 6g-81-6355-20 - - 6g-83-6365-40 - - 6g-85-6375-20 - - 6g-87-6385-80 - - 6g-89-6395-20 - - 6g-91-6405-40 - - 6g-93-6415-20 - - 6g-95-6425-320 - - 6g-97-6435-20 - - 6g-99-6445-40 - - 6g-101-6455-20 - - 6g-103-6465-80 - - 6g-105-6475-20 - - 6g-107-6485-40 - - 6g-109-6495-20 - - 6g-111-6505-160 - - 6g-113-6515-20 - - 6g-115-6525-40 - - 6g-117-6535-20 - - 6g-119-6545-80 - - 6g-121-6555-20 - - 6g-123-6565-40 - - 6g-125-6575-20 - - 6g-129-6595-20 - - 6g-131-6605-40 - - 6g-133-6615-20 - - 6g-135-6625-80 - - 6g-137-6635-20 - - 6g-139-6645-40 - - 6g-141-6655-20 - - 6g-143-6665-160 - - 6g-145-6675-20 - - 6g-147-6685-40 - - 6g-149-6695-20 - - 6g-151-6705-80 - - 6g-153-6715-20 - - 6g-155-6725-40 - - 6g-157-6735-20 - - 6g-159-6745-320 - - 6g-161-6755-20 - - 6g-163-6765-40 - - 6g-165-6775-20 - - 6g-167-6785-80 - - 6g-169-6795-20 - - 6g-171-6805-40 - - 6g-173-6815-20 - - 6g-175-6825-160 - - 6g-177-6835-20 - - 6g-179-6845-40 - - 6g-181-6855-20 - - 6g-183-6865-80 - - 6g-185-6875-20 - - 6g-187-6885-40 - - 6g-189-6895-20 - - 6g-193-6915-20 - - 6g-195-6925-40 - - 6g-197-6935-20 - - 6g-199-6945-80 - - 6g-201-6955-20 - - 6g-203-6965-40 - - 6g-205-6975-20 - - 6g-207-6985-160 - - 6g-209-6995-20 - - 6g-211-7005-40 - - 6g-213-7015-20 - - 6g-215-7025-80 - - 6g-217-7035-20 - - 6g-219-7045-40 - - 6g-221-7055-20 - - 6g-225-7075-20 - - 6g-227-7085-40 - - 6g-229-7095-20 - - 6g-233-7115-20 - - 60g-1-58320-2160 - - 60g-2-60480-2160 - - 60g-3-62640-2160 - - 60g-4-64800-2160 - - 60g-5-66960-2160 - - 60g-6-69120-2160 - - 60g-9-59400-4320 - - 60g-10-61560-4320 - - 60g-11-63720-4320 - - 60g-12-65880-4320 - - 60g-13-68040-4320 - - 60g-17-60480-6480 - - 60g-18-62640-6480 - - 60g-19-64800-6480 - - 60g-20-66960-6480 - - 60g-25-61560-6480 - - 60g-26-63720-6480 - - 60g-27-65880-6480 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other - '' type: string - description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + x-spec-enum-id: f1bd4aedff3a591b + description: 'Physical port type - * `2.4g-2-2417-22` - 2 (2417 MHz) - * `2.4g-3-2422-22` - 3 (2422 MHz) + * `iec-60320-c6` - C6 - * `2.4g-4-2427-22` - 4 (2427 MHz) + * `iec-60320-c8` - C8 - * `2.4g-5-2432-22` - 5 (2432 MHz) + * `iec-60320-c14` - C14 - * `2.4g-6-2437-22` - 6 (2437 MHz) + * `iec-60320-c16` - C16 - * `2.4g-7-2442-22` - 7 (2442 MHz) + * `iec-60320-c20` - C20 - * `2.4g-8-2447-22` - 8 (2447 MHz) + * `iec-60320-c22` - C22 - * `2.4g-9-2452-22` - 9 (2452 MHz) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `2.4g-10-2457-22` - 10 (2457 MHz) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `2.4g-11-2462-22` - 11 (2462 MHz) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `2.4g-12-2467-22` - 12 (2467 MHz) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `2.4g-13-2472-22` - 13 (2472 MHz) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `5g-32-5160-20` - 32 (5160/20 MHz) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `5g-34-5170-40` - 34 (5170/40 MHz) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `5g-36-5180-20` - 36 (5180/20 MHz) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `5g-38-5190-40` - 38 (5190/40 MHz) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `5g-40-5200-20` - 40 (5200/20 MHz) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `5g-42-5210-80` - 42 (5210/80 MHz) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `5g-44-5220-20` - 44 (5220/20 MHz) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `5g-46-5230-40` - 46 (5230/40 MHz) + * `iec-60906-1` - IEC 60906-1 - * `5g-48-5240-20` - 48 (5240/20 MHz) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `5g-50-5250-160` - 50 (5250/160 MHz) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `5g-52-5260-20` - 52 (5260/20 MHz) + * `nema-1-15p` - NEMA 1-15P - * `5g-54-5270-40` - 54 (5270/40 MHz) + * `nema-5-15p` - NEMA 5-15P - * `5g-56-5280-20` - 56 (5280/20 MHz) + * `nema-5-20p` - NEMA 5-20P - * `5g-58-5290-80` - 58 (5290/80 MHz) + * `nema-5-30p` - NEMA 5-30P - * `5g-60-5300-20` - 60 (5300/20 MHz) + * `nema-5-50p` - NEMA 5-50P - * `5g-62-5310-40` - 62 (5310/40 MHz) + * `nema-6-15p` - NEMA 6-15P - * `5g-64-5320-20` - 64 (5320/20 MHz) + * `nema-6-20p` - NEMA 6-20P - * `5g-100-5500-20` - 100 (5500/20 MHz) + * `nema-6-30p` - NEMA 6-30P - * `5g-102-5510-40` - 102 (5510/40 MHz) + * `nema-6-50p` - NEMA 6-50P - * `5g-104-5520-20` - 104 (5520/20 MHz) + * `nema-10-30p` - NEMA 10-30P - * `5g-106-5530-80` - 106 (5530/80 MHz) + * `nema-10-50p` - NEMA 10-50P - * `5g-108-5540-20` - 108 (5540/20 MHz) + * `nema-14-20p` - NEMA 14-20P - * `5g-110-5550-40` - 110 (5550/40 MHz) + * `nema-14-30p` - NEMA 14-30P - * `5g-112-5560-20` - 112 (5560/20 MHz) + * `nema-14-50p` - NEMA 14-50P - * `5g-114-5570-160` - 114 (5570/160 MHz) + * `nema-14-60p` - NEMA 14-60P - * `5g-116-5580-20` - 116 (5580/20 MHz) + * `nema-15-15p` - NEMA 15-15P - * `5g-118-5590-40` - 118 (5590/40 MHz) + * `nema-15-20p` - NEMA 15-20P - * `5g-120-5600-20` - 120 (5600/20 MHz) + * `nema-15-30p` - NEMA 15-30P - * `5g-122-5610-80` - 122 (5610/80 MHz) + * `nema-15-50p` - NEMA 15-50P - * `5g-124-5620-20` - 124 (5620/20 MHz) + * `nema-15-60p` - NEMA 15-60P - * `5g-126-5630-40` - 126 (5630/40 MHz) + * `nema-l1-15p` - NEMA L1-15P - * `5g-128-5640-20` - 128 (5640/20 MHz) + * `nema-l5-15p` - NEMA L5-15P - * `5g-132-5660-20` - 132 (5660/20 MHz) + * `nema-l5-20p` - NEMA L5-20P - * `5g-134-5670-40` - 134 (5670/40 MHz) + * `nema-l5-30p` - NEMA L5-30P - * `5g-136-5680-20` - 136 (5680/20 MHz) + * `nema-l5-50p` - NEMA L5-50P - * `5g-138-5690-80` - 138 (5690/80 MHz) + * `nema-l6-15p` - NEMA L6-15P - * `5g-140-5700-20` - 140 (5700/20 MHz) + * `nema-l6-20p` - NEMA L6-20P - * `5g-142-5710-40` - 142 (5710/40 MHz) + * `nema-l6-30p` - NEMA L6-30P - * `5g-144-5720-20` - 144 (5720/20 MHz) + * `nema-l6-50p` - NEMA L6-50P - * `5g-149-5745-20` - 149 (5745/20 MHz) + * `nema-l10-30p` - NEMA L10-30P - * `5g-151-5755-40` - 151 (5755/40 MHz) + * `nema-l14-20p` - NEMA L14-20P - * `5g-153-5765-20` - 153 (5765/20 MHz) + * `nema-l14-30p` - NEMA L14-30P - * `5g-155-5775-80` - 155 (5775/80 MHz) + * `nema-l14-50p` - NEMA L14-50P - * `5g-157-5785-20` - 157 (5785/20 MHz) + * `nema-l14-60p` - NEMA L14-60P - * `5g-159-5795-40` - 159 (5795/40 MHz) + * `nema-l15-20p` - NEMA L15-20P - * `5g-161-5805-20` - 161 (5805/20 MHz) + * `nema-l15-30p` - NEMA L15-30P - * `5g-163-5815-160` - 163 (5815/160 MHz) + * `nema-l15-50p` - NEMA L15-50P - * `5g-165-5825-20` - 165 (5825/20 MHz) + * `nema-l15-60p` - NEMA L15-60P - * `5g-167-5835-40` - 167 (5835/40 MHz) + * `nema-l21-20p` - NEMA L21-20P - * `5g-169-5845-20` - 169 (5845/20 MHz) + * `nema-l21-30p` - NEMA L21-30P - * `5g-171-5855-80` - 171 (5855/80 MHz) + * `nema-l22-20p` - NEMA L22-20P - * `5g-173-5865-20` - 173 (5865/20 MHz) + * `nema-l22-30p` - NEMA L22-30P - * `5g-175-5875-40` - 175 (5875/40 MHz) + * `cs6361c` - CS6361C - * `5g-177-5885-20` - 177 (5885/20 MHz) + * `cs6365c` - CS6365C - * `6g-1-5955-20` - 1 (5955/20 MHz) + * `cs8165c` - CS8165C - * `6g-3-5965-40` - 3 (5965/40 MHz) + * `cs8265c` - CS8265C - * `6g-5-5975-20` - 5 (5975/20 MHz) + * `cs8365c` - CS8365C - * `6g-7-5985-80` - 7 (5985/80 MHz) + * `cs8465c` - CS8465C - * `6g-9-5995-20` - 9 (5995/20 MHz) + * `ita-c` - ITA Type C (CEE 7/16) - * `6g-11-6005-40` - 11 (6005/40 MHz) + * `ita-e` - ITA Type E (CEE 7/6) - * `6g-13-6015-20` - 13 (6015/20 MHz) + * `ita-f` - ITA Type F (CEE 7/4) - * `6g-15-6025-160` - 15 (6025/160 MHz) + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `6g-17-6035-20` - 17 (6035/20 MHz) + * `ita-g` - ITA Type G (BS 1363) - * `6g-19-6045-40` - 19 (6045/40 MHz) + * `ita-h` - ITA Type H - * `6g-21-6055-20` - 21 (6055/20 MHz) + * `ita-i` - ITA Type I - * `6g-23-6065-80` - 23 (6065/80 MHz) + * `ita-j` - ITA Type J - * `6g-25-6075-20` - 25 (6075/20 MHz) + * `ita-k` - ITA Type K - * `6g-27-6085-40` - 27 (6085/40 MHz) + * `ita-l` - ITA Type L (CEI 23-50) - * `6g-29-6095-20` - 29 (6095/20 MHz) + * `ita-m` - ITA Type M (BS 546) - * `6g-31-6105-320` - 31 (6105/320 MHz) + * `ita-n` - ITA Type N - * `6g-33-6115-20` - 33 (6115/20 MHz) + * `ita-o` - ITA Type O - * `6g-35-6125-40` - 35 (6125/40 MHz) + * `usb-a` - USB Type A - * `6g-37-6135-20` - 37 (6135/20 MHz) + * `usb-b` - USB Type B - * `6g-39-6145-80` - 39 (6145/80 MHz) + * `usb-c` - USB Type C - * `6g-41-6155-20` - 41 (6155/20 MHz) + * `usb-mini-a` - USB Mini A - * `6g-43-6165-40` - 43 (6165/40 MHz) + * `usb-mini-b` - USB Mini B - * `6g-45-6175-20` - 45 (6175/20 MHz) + * `usb-micro-a` - USB Micro A - * `6g-47-6185-160` - 47 (6185/160 MHz) + * `usb-micro-b` - USB Micro B - * `6g-49-6195-20` - 49 (6195/20 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-51-6205-40` - 51 (6205/40 MHz) + * `usb-3-b` - USB 3.0 Type B - * `6g-53-6215-20` - 53 (6215/20 MHz) + * `usb-3-micro-b` - USB 3.0 Micro B - * `6g-55-6225-80` - 55 (6225/80 MHz) + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `6g-57-6235-20` - 57 (6235/20 MHz) + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `6g-59-6245-40` - 59 (6245/40 MHz) + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `6g-61-6255-20` - 61 (6255/20 MHz) + * `dc-terminal` - DC Terminal - * `6g-65-6275-20` - 65 (6275/20 MHz) + * `saf-d-grid` - Saf-D-Grid - * `6g-67-6285-40` - 67 (6285/40 MHz) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `6g-69-6295-20` - 69 (6295/20 MHz) + * `neutrik-powercon-32` - Neutrik powerCON (32A) - * `6g-71-6305-80` - 71 (6305/80 MHz) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `6g-73-6315-20` - 73 (6315/20 MHz) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `6g-75-6325-40` - 75 (6325/40 MHz) + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `6g-77-6335-20` - 77 (6335/20 MHz) + * `hardwired` - Hardwired - * `6g-79-6345-160` - 79 (6345/160 MHz) + * `other` - Other' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritablePowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-81-6355-20` - 81 (6355/20 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c6` - C6 - * `6g-83-6365-40` - 83 (6365/40 MHz) + * `iec-60320-c8` - C8 - * `6g-85-6375-20` - 85 (6375/20 MHz) + * `iec-60320-c14` - C14 - * `6g-87-6385-80` - 87 (6385/80 MHz) + * `iec-60320-c16` - C16 - * `6g-89-6395-20` - 89 (6395/20 MHz) + * `iec-60320-c20` - C20 - * `6g-91-6405-40` - 91 (6405/40 MHz) + * `iec-60320-c22` - C22 - * `6g-93-6415-20` - 93 (6415/20 MHz) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `6g-95-6425-320` - 95 (6425/320 MHz) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `6g-97-6435-20` - 97 (6435/20 MHz) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `6g-99-6445-40` - 99 (6445/40 MHz) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `6g-101-6455-20` - 101 (6455/20 MHz) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `6g-103-6465-80` - 103 (6465/80 MHz) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `6g-105-6475-20` - 105 (6475/20 MHz) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `6g-107-6485-40` - 107 (6485/40 MHz) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `6g-109-6495-20` - 109 (6495/20 MHz) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `6g-111-6505-160` - 111 (6505/160 MHz) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `6g-113-6515-20` - 113 (6515/20 MHz) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `6g-115-6525-40` - 115 (6525/40 MHz) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `6g-117-6535-20` - 117 (6535/20 MHz) + * `iec-60906-1` - IEC 60906-1 - * `6g-119-6545-80` - 119 (6545/80 MHz) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `6g-121-6555-20` - 121 (6555/20 MHz) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `6g-123-6565-40` - 123 (6565/40 MHz) + * `nema-1-15p` - NEMA 1-15P - * `6g-125-6575-20` - 125 (6575/20 MHz) + * `nema-5-15p` - NEMA 5-15P - * `6g-129-6595-20` - 129 (6595/20 MHz) + * `nema-5-20p` - NEMA 5-20P - * `6g-131-6605-40` - 131 (6605/40 MHz) + * `nema-5-30p` - NEMA 5-30P - * `6g-133-6615-20` - 133 (6615/20 MHz) + * `nema-5-50p` - NEMA 5-50P - * `6g-135-6625-80` - 135 (6625/80 MHz) + * `nema-6-15p` - NEMA 6-15P - * `6g-137-6635-20` - 137 (6635/20 MHz) + * `nema-6-20p` - NEMA 6-20P - * `6g-139-6645-40` - 139 (6645/40 MHz) + * `nema-6-30p` - NEMA 6-30P - * `6g-141-6655-20` - 141 (6655/20 MHz) + * `nema-6-50p` - NEMA 6-50P - * `6g-143-6665-160` - 143 (6665/160 MHz) + * `nema-10-30p` - NEMA 10-30P - * `6g-145-6675-20` - 145 (6675/20 MHz) + * `nema-10-50p` - NEMA 10-50P - * `6g-147-6685-40` - 147 (6685/40 MHz) + * `nema-14-20p` - NEMA 14-20P - * `6g-149-6695-20` - 149 (6695/20 MHz) + * `nema-14-30p` - NEMA 14-30P - * `6g-151-6705-80` - 151 (6705/80 MHz) + * `nema-14-50p` - NEMA 14-50P - * `6g-153-6715-20` - 153 (6715/20 MHz) + * `nema-14-60p` - NEMA 14-60P - * `6g-155-6725-40` - 155 (6725/40 MHz) + * `nema-15-15p` - NEMA 15-15P - * `6g-157-6735-20` - 157 (6735/20 MHz) + * `nema-15-20p` - NEMA 15-20P - * `6g-159-6745-320` - 159 (6745/320 MHz) + * `nema-15-30p` - NEMA 15-30P - * `6g-161-6755-20` - 161 (6755/20 MHz) + * `nema-15-50p` - NEMA 15-50P - * `6g-163-6765-40` - 163 (6765/40 MHz) + * `nema-15-60p` - NEMA 15-60P - * `6g-165-6775-20` - 165 (6775/20 MHz) + * `nema-l1-15p` - NEMA L1-15P - * `6g-167-6785-80` - 167 (6785/80 MHz) + * `nema-l5-15p` - NEMA L5-15P - * `6g-169-6795-20` - 169 (6795/20 MHz) + * `nema-l5-20p` - NEMA L5-20P - * `6g-171-6805-40` - 171 (6805/40 MHz) + * `nema-l5-30p` - NEMA L5-30P - * `6g-173-6815-20` - 173 (6815/20 MHz) + * `nema-l5-50p` - NEMA L5-50P - * `6g-175-6825-160` - 175 (6825/160 MHz) + * `nema-l6-15p` - NEMA L6-15P - * `6g-177-6835-20` - 177 (6835/20 MHz) + * `nema-l6-20p` - NEMA L6-20P - * `6g-179-6845-40` - 179 (6845/40 MHz) + * `nema-l6-30p` - NEMA L6-30P - * `6g-181-6855-20` - 181 (6855/20 MHz) + * `nema-l6-50p` - NEMA L6-50P - * `6g-183-6865-80` - 183 (6865/80 MHz) + * `nema-l10-30p` - NEMA L10-30P - * `6g-185-6875-20` - 185 (6875/20 MHz) + * `nema-l14-20p` - NEMA L14-20P - * `6g-187-6885-40` - 187 (6885/40 MHz) + * `nema-l14-30p` - NEMA L14-30P - * `6g-189-6895-20` - 189 (6895/20 MHz) + * `nema-l14-50p` - NEMA L14-50P - * `6g-193-6915-20` - 193 (6915/20 MHz) + * `nema-l14-60p` - NEMA L14-60P - * `6g-195-6925-40` - 195 (6925/40 MHz) + * `nema-l15-20p` - NEMA L15-20P - * `6g-197-6935-20` - 197 (6935/20 MHz) + * `nema-l15-30p` - NEMA L15-30P - * `6g-199-6945-80` - 199 (6945/80 MHz) + * `nema-l15-50p` - NEMA L15-50P - * `6g-201-6955-20` - 201 (6955/20 MHz) + * `nema-l15-60p` - NEMA L15-60P - * `6g-203-6965-40` - 203 (6965/40 MHz) + * `nema-l21-20p` - NEMA L21-20P - * `6g-205-6975-20` - 205 (6975/20 MHz) + * `nema-l21-30p` - NEMA L21-30P - * `6g-207-6985-160` - 207 (6985/160 MHz) + * `nema-l22-20p` - NEMA L22-20P - * `6g-209-6995-20` - 209 (6995/20 MHz) + * `nema-l22-30p` - NEMA L22-30P - * `6g-211-7005-40` - 211 (7005/40 MHz) + * `cs6361c` - CS6361C - * `6g-213-7015-20` - 213 (7015/20 MHz) + * `cs6365c` - CS6365C - * `6g-215-7025-80` - 215 (7025/80 MHz) + * `cs8165c` - CS8165C - * `6g-217-7035-20` - 217 (7035/20 MHz) + * `cs8265c` - CS8265C - * `6g-219-7045-40` - 219 (7045/40 MHz) + * `cs8365c` - CS8365C - * `6g-221-7055-20` - 221 (7055/20 MHz) + * `cs8465c` - CS8465C - * `6g-225-7075-20` - 225 (7075/20 MHz) + * `ita-c` - ITA Type C (CEE 7/16) - * `6g-227-7085-40` - 227 (7085/40 MHz) + * `ita-e` - ITA Type E (CEE 7/6) - * `6g-229-7095-20` - 229 (7095/20 MHz) + * `ita-f` - ITA Type F (CEE 7/4) - * `6g-233-7115-20` - 233 (7115/20 MHz) + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + * `ita-g` - ITA Type G (BS 1363) - * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + * `ita-h` - ITA Type H - * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + * `ita-i` - ITA Type I - * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + * `ita-j` - ITA Type J - * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + * `ita-k` - ITA Type K - * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + * `ita-l` - ITA Type L (CEI 23-50) - * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + * `ita-m` - ITA Type M (BS 546) - * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + * `ita-n` - ITA Type N - * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + * `ita-o` - ITA Type O - * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + * `usb-a` - USB Type A - * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + * `usb-b` - USB Type B - * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + * `usb-c` - USB Type C - * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + * `usb-mini-a` - USB Mini A - * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + * `usb-mini-b` - USB Mini B - * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + * `usb-micro-a` - USB Micro A - * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + * `usb-micro-b` - USB Micro B - * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + * `usb-micro-ab` - USB Micro AB - * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - poe_mode: + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f1bd4aedff3a591b + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + PatchedWritablePrefixRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + status: enum: - - pd - - pse - - '' + - container + - active + - reserved + - deprecated type: string - description: '* `pd` - PD + x-spec-enum-id: d38bee5f512701d9 + description: 'Operational status of this prefix - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true + is_pool: + type: boolean + title: Is a pool + description: All IP addresses within this prefix are considered usable + mark_utilized: + type: boolean + description: Treat as fully utilized + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical - '' type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) + description: '* `2-post-frame` - 2-post frame - * `type2-ieee802.3at` - 802.3at (Type 2) + * `4-post-frame` - 4-post frame - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `4-post-cabinet` - 4-post cabinet - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `wall-frame` - Wall-mounted frame - * `passive-24v-2pair` - Passive 24V (2-pair) + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `passive-24v-4pair` - Passive 24V (4-pair) + * `wall-cabinet` - Wall-mounted cabinet - * `passive-48v-2pair` - Passive 48V (2-pair) + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_channel_frequency: + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: type: number format: double - maximum: 100000 - minimum: -100000 + maximum: 1000000 + minimum: -1000000 exclusiveMaximum: true exclusiveMinimum: true nullable: true - title: Channel frequency (MHz) - description: Populated by selected channel (if set) - rf_channel_width: - type: number - format: double - maximum: 10000 - minimum: -10000 - exclusiveMaximum: true - exclusiveMinimum: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 nullable: true - title: Channel width (MHz) - description: Populated by selected channel (if set) - tx_power: + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: type: integer - maximum: 127 + maximum: 32767 minimum: 0 nullable: true - title: Transmit power (dBm) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 nullable: true - tagged_vlans: - type: array - items: - type: integer - mark_connected: - type: boolean - description: Treat as if a cable is connected - wireless_lans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + description: + type: string + maxLength: 200 + comments: + type: string tags: type: array items: @@ -122929,502 +135074,977 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceTemplateRequest: + PatchedWritableRackTypeRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: type: string - description: '* `virtual` - Virtual + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `2-post-frame` - 2-post frame - * `bridge` - Bridge + * `4-post-frame` - 4-post frame - * `lag` - Link Aggregation Group (LAG) + * `4-post-cabinet` - 4-post cabinet - * `100base-fx` - 100BASE-FX (10/100ME FIBER) + * `wall-frame` - Wall-mounted frame - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `100base-tx` - 100BASE-TX (10/100ME) + * `wall-cabinet` - Wall-mounted cabinet - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `1000base-t` - 1000BASE-T (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + * `10` - 10 inches - * `5gbase-t` - 5GBASE-T (5GE) + * `19` - 19 inches - * `10gbase-t` - 10GBASE-T (10GE) + * `21` - 21 inches - * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters - * `1000base-x-gbic` - GBIC (1GE) + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms - * `1000base-x-sfp` - SFP (1GE) + * `g` - Grams - * `10gbase-x-sfpp` - SFP+ (10GE) + * `lb` - Pounds - * `10gbase-x-xfp` - XFP (10GE) + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C - * `10gbase-x-xenpak` - XENPAK (10GE) + * `8p6c` - 8P6C - * `10gbase-x-x2` - X2 (10GE) + * `8p4c` - 8P4C - * `25gbase-x-sfp28` - SFP28 (25GE) + * `8p2c` - 8P2C - * `50gbase-x-sfp56` - SFP56 (50GE) + * `6p6c` - 6P6C - * `40gbase-x-qsfpp` - QSFP+ (40GE) + * `6p4c` - 6P4C - * `50gbase-x-sfp28` - QSFP28 (50GE) + * `6p2c` - 6P2C - * `100gbase-x-cfp` - CFP (100GE) + * `4p4c` - 4P4C - * `100gbase-x-cfp2` - CFP2 (100GE) + * `4p2c` - 4P2C - * `200gbase-x-cfp2` - CFP2 (200GE) + * `gg45` - GG45 - * `400gbase-x-cfp2` - CFP2 (400GE) + * `tera-4p` - TERA 4P - * `100gbase-x-cfp4` - CFP4 (100GE) + * `tera-2p` - TERA 2P - * `100gbase-x-cxp` - CXP (100GE) + * `tera-1p` - TERA 1P - * `100gbase-x-cpak` - Cisco CPAK (100GE) + * `110-punch` - 110 Punch - * `100gbase-x-dsfp` - DSFP (100GE) + * `bnc` - BNC - * `100gbase-x-sfpdd` - SFP-DD (100GE) + * `f` - F Connector - * `100gbase-x-qsfp28` - QSFP28 (100GE) + * `n` - N Connector - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + * `mrj21` - MRJ21 - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `fc` - FC - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `lc` - LC - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `lc-pc` - LC/PC - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `lc-upc` - LC/UPC - * `400gbase-x-osfp` - OSFP (400GE) + * `lc-apc` - LC/APC - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `lsh` - LSH - * `400gbase-x-cdfp` - CDFP (400GE) + * `lsh-pc` - LSH/PC - * `400gbase-x-cfp8` - CPF8 (400GE) + * `lsh-upc` - LSH/UPC - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `lsh-apc` - LSH/APC - * `800gbase-x-osfp` - OSFP (800GE) + * `lx5` - LX.5 - * `1000base-kx` - 1000BASE-KX (1GE) + * `lx5-pc` - LX.5/PC - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `lx5-upc` - LX.5/UPC - * `5gbase-kr` - 5GBASE-KR (5GE) + * `lx5-apc` - LX.5/APC - * `10gbase-kr` - 10GBASE-KR (10GE) + * `mpo` - MPO - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `mtrj` - MTRJ - * `25gbase-kr` - 25GBASE-KR (25GE) + * `sc` - SC - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `sc-pc` - SC/PC - * `50gbase-kr` - 50GBASE-KR (50GE) + * `sc-upc` - SC/UPC - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `sc-apc` - SC/APC - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `st` - ST - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `cs` - CS - * `ieee802.11a` - IEEE 802.11a + * `sn` - SN - * `ieee802.11g` - IEEE 802.11b/g + * `sma-905` - SMA 905 - * `ieee802.11n` - IEEE 802.11n + * `sma-906` - SMA 906 - * `ieee802.11ac` - IEEE 802.11ac + * `urm-p2` - URM-P2 - * `ieee802.11ad` - IEEE 802.11ad + * `urm-p4` - URM-P4 - * `ieee802.11ax` - IEEE 802.11ax + * `urm-p8` - URM-P8 - * `ieee802.11ay` - IEEE 802.11ay + * `splice` - Splice - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `usb-a` - USB Type A - * `other-wireless` - Other (Wireless) + * `usb-b` - USB Type B - * `gsm` - GSM + * `usb-c` - USB Type C - * `cdma` - CDMA + * `usb-mini-a` - USB Mini A - * `lte` - LTE + * `usb-mini-b` - USB Mini B - * `4g` - 4G + * `usb-micro-a` - USB Micro A - * `5g` - 5G + * `usb-micro-b` - USB Micro B - * `sonet-oc3` - OC-3/STM-1 + * `usb-micro-ab` - USB Micro AB - * `sonet-oc12` - OC-12/STM-4 + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `sonet-oc48` - OC-48/STM-16 + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C - * `sonet-oc192` - OC-192/STM-64 + * `8p6c` - 8P6C - * `sonet-oc768` - OC-768/STM-256 + * `8p4c` - 8P4C - * `sonet-oc1920` - OC-1920/STM-640 + * `8p2c` - 8P2C - * `sonet-oc3840` - OC-3840/STM-1234 + * `6p6c` - 6P6C - * `1gfc-sfp` - SFP (1GFC) + * `6p4c` - 6P4C - * `2gfc-sfp` - SFP (2GFC) + * `6p2c` - 6P2C - * `4gfc-sfp` - SFP (4GFC) + * `4p4c` - 4P4C - * `8gfc-sfpp` - SFP+ (8GFC) + * `4p2c` - 4P2C - * `16gfc-sfpp` - SFP+ (16GFC) + * `gg45` - GG45 - * `32gfc-sfp28` - SFP28 (32GFC) + * `tera-4p` - TERA 4P - * `32gfc-sfpp` - SFP+ (32GFC) + * `tera-2p` - TERA 2P - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `tera-1p` - TERA 1P - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `110-punch` - 110 Punch - * `64gfc-sfpp` - SFP+ (64GFC) + * `bnc` - BNC - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `f` - F Connector - * `infiniband-sdr` - SDR (2 Gbps) + * `n` - N Connector - * `infiniband-ddr` - DDR (4 Gbps) + * `mrj21` - MRJ21 - * `infiniband-qdr` - QDR (8 Gbps) + * `fc` - FC - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `lc` - LC - * `infiniband-fdr` - FDR (13.5 Gbps) + * `lc-pc` - LC/PC - * `infiniband-edr` - EDR (25 Gbps) + * `lc-upc` - LC/UPC - * `infiniband-hdr` - HDR (50 Gbps) + * `lc-apc` - LC/APC - * `infiniband-ndr` - NDR (100 Gbps) + * `lsh` - LSH - * `infiniband-xdr` - XDR (250 Gbps) + * `lsh-pc` - LSH/PC - * `t1` - T1 (1.544 Mbps) + * `lsh-upc` - LSH/UPC - * `e1` - E1 (2.048 Mbps) + * `lsh-apc` - LSH/APC - * `t3` - T3 (45 Mbps) + * `lx5` - LX.5 - * `e3` - E3 (34 Mbps) + * `lx5-pc` - LX.5/PC - * `xdsl` - xDSL + * `lx5-upc` - LX.5/UPC - * `docsis` - DOCSIS + * `lx5-apc` - LX.5/APC - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `mpo` - MPO - * `epon` - EPON (1 Gbps) + * `mtrj` - MTRJ - * `10g-epon` - 10G-EPON (10 Gbps) + * `sc` - SC - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `sc-pc` - SC/PC - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `sc-upc` - SC/UPC - * `xgs-pon` - XGS-PON (10 Gbps) + * `sc-apc` - SC/APC - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `st` - ST - * `25g-pon` - 25G-PON (25 Gbps) + * `cs` - CS - * `50g-pon` - 50G-PON (50 Gbps) + * `sn` - SN - * `cisco-stackwise` - Cisco StackWise + * `sma-905` - SMA 905 - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `sma-906` - SMA 906 - * `cisco-flexstack` - Cisco FlexStack + * `urm-p2` - URM-P2 - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `urm-p4` - URM-P4 - * `cisco-stackwise-80` - Cisco StackWise-80 + * `urm-p8` - URM-P8 - * `cisco-stackwise-160` - Cisco StackWise-160 + * `splice` - Splice - * `cisco-stackwise-320` - Cisco StackWise-320 + * `usb-a` - USB Type A - * `cisco-stackwise-480` - Cisco StackWise-480 + * `usb-b` - USB Type B - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `usb-c` - USB Type C - * `juniper-vcp` - Juniper VCP + * `usb-mini-a` - USB Mini A - * `extreme-summitstack` - Extreme SummitStack + * `usb-mini-b` - USB Mini B - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `usb-micro-a` - USB Micro A - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `usb-micro-b` - USB Micro B - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `usb-micro-ab` - USB Micro AB * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 - enabled: - type: boolean - mgmt_only: - type: boolean - title: Management only + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 - bridge: + PatchedWritableRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: type: integer nullable: true - title: Bridge interface - poe_mode: + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true + virtual_machine: + allOf: + - $ref: '#/components/schemas/BriefVirtualMachineRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + protocol: enum: - - pd - - pse - - '' + - tcp + - udp + - sctp type: string - description: '* `pd` - PD + description: '* `tcp` - TCP - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + * `udp` - UDP + + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + ipaddresses: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceTemplateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + protocol: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair - - '' + - tcp + - udp + - sctp type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) + description: '* `tcp` - TCP - * `type2-ieee802.3at` - 802.3at (Type 2) + * `udp` - UDP - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `staging` - Staging - * `passive-24v-2pair` - Passive 24V (2-pair) + * `active` - Active - * `passive-24v-4pair` - Passive 24V (4-pair) + * `decommissioning` - Decommissioning - * `passive-48v-2pair` - Passive 48V (2-pair) + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 + description: + type: string + maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_role: + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: enum: - - ap - - station - - '' + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre type: string - description: '* `ap` - Access point + description: '* `ipsec-transport` - IPsec - Transport - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - PatchedWritableJournalEntryRequest: + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelTerminationRequest: type: object description: Adds support for custom fields and tags. properties: - assigned_object_type: + tunnel: + $ref: '#/components/schemas/BriefTunnelRequest' + role: + enum: + - peer + - hub + - spoke type: string - assigned_object_id: + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + termination_type: + type: string + termination_id: type: integer maximum: 9223372036854775807 minimum: 0 format: int64 - created_by: + nullable: true + outside_ip: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true + vid: type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - kind: + status: enum: - - info - - success - - warning - - danger + - active + - reserved + - deprecated type: string - description: '* `info` - Info + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this VLAN - * `success` - Success - * `warning` - Warning + * `active` - Active - * `danger` - Danger' - x-spec-enum-id: a21af280f632fa34 + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true + description: + type: string + maxLength: 200 comments: type: string - minLength: 1 tags: type: array items: @@ -123432,81 +136052,92 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableL2VPNRequest: + PatchedWritableVMInterfaceRequest: type: object description: Adds support for custom fields and tags. properties: - identifier: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true + virtual_machine: + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 - maxLength: 100 - slug: + maxLength: 64 + enabled: + type: boolean + parent: + type: integer + nullable: true + title: Parent interface + bridge: + type: integer + nullable: true + title: Bridge interface + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: type: string + nullable: true minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - type: - enum: - - vpws - - vpls - - vxlan - - vxlan-evpn - - mpls-evpn - - pbb-evpn - - epl - - evpl - - ep-lan - - evp-lan - - ep-tree - - evp-tree + description: type: string - description: '* `vpws` - VPWS - - * `vpls` - VPLS - - * `vxlan` - VXLAN - - * `vxlan-evpn` - VXLAN-EVPN - - * `mpls-evpn` - MPLS EVPN - - * `pbb-evpn` - PBB EVPN - - * `epl` - EPL - - * `evpl` - EVPL + maxLength: 200 + mode: + enum: + - access + - tagged + - tagged-all + - '' + type: string + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy - * `ep-lan` - Ethernet Private LAN - * `evp-lan` - Ethernet Virtual Private LAN + * `access` - Access - * `ep-tree` - Ethernet Private Tree + * `tagged` - Tagged - * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 - import_targets: + * `tagged-all` - Tagged (All)' + untagged_vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tagged_vlans: type: array items: type: integer - export_targets: + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tags: type: array items: - type: integer + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + domain: + type: string + maxLength: 30 + master: + type: integer + nullable: true description: type: string maxLength: 200 comments: type: string - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true tags: type: array items: @@ -123514,53 +136145,50 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableLocationRequest: + PatchedWritableVirtualDeviceContextRequest: type: object - description: Extends PrimaryModelSerializer to include MPTT support. + description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/SiteRequest' - parent: + maxLength: 64 + device: + $ref: '#/components/schemas/BriefDeviceRequest' + identifier: type: integer + maximum: 32767 + minimum: 0 + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: - - planned - - staging - active - - decommissioning - - retired + - planned + - offline type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active + description: '* `active` - Active - * `decommissioning` - Decommissioning + * `planned` - Planned - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 + * `offline` - Offline' + x-spec-enum-id: ee1ef02def7a91ab description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -123568,16 +136196,14 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleRequest: + PatchedWritableVirtualMachineWithConfigContextRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module_bay: - type: integer - module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + name: + type: string + minLength: 1 + maxLength: 64 status: enum: - offline @@ -123599,20 +136225,74 @@ components: * `decommissioning` - Decommissioning' x-spec-enum-id: 2217e87d0c3efdda + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/BriefClusterRequest' + nullable: true + device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true serial: type: string title: Serial number maxLength: 50 - asset_tag: - type: string + role: + allOf: + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true - description: A unique tag used to identify this device - maxLength: 50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + vcpus: + type: number + format: double + maximum: 10000 + minimum: 0.01 + exclusiveMaximum: true + nullable: true + memory: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Memory (MB) + disk: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Disk (MB) description: type: string maxLength: 200 comments: type: string + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -123620,49 +136300,25 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleTypeRequest: + PatchedWritableWirelessLANGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: - manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' - model: + name: type: string minLength: 1 maxLength: 100 - part_number: + slug: type: string - description: Discrete part number (optional) - maxLength: 50 - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -123670,85 +136326,79 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerFeedRequest: + PatchedWritableWirelessLANRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/PowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/RackRequest' - nullable: true - name: + ssid: type: string minLength: 1 - maxLength: 100 + maxLength: 32 + description: + type: string + maxLength: 200 + group: + allOf: + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' + nullable: true status: enum: - - offline - active - - planned - - failed + - reserved + - disabled + - deprecated type: string - description: '* `offline` - Offline + description: '* `active` - Active - * `active` - Active + * `reserved` - Reserved - * `planned` - Planned + * `disabled` - Disabled - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: + * `deprecated` - Deprecated' + x-spec-enum-id: 412ebdca597f609e + vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: enum: - - primary - - redundant + - open + - wep + - wpa-personal + - wpa-enterprise + - '' type: string - description: '* `primary` - Primary + description: '* `open` - Open - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `wep` - WEP - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: enum: - - single-phase - - three-phase + - auto + - tkip + - aes + - '' type: string - description: '* `single-phase` - Single phase + description: '* `auto` - Auto - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - description: + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true + title: Pre-shared key + maxLength: 64 comments: type: string tags: @@ -123758,345 +136408,97 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletRequest: + PatchedWritableWirelessLinkRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: + interface_a: + $ref: '#/components/schemas/BriefInterfaceRequest' + interface_b: + $ref: '#/components/schemas/BriefInterfaceRequest' + ssid: type: string - description: Physical label - maxLength: 64 - type: + maxLength: 32 + status: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' + - connected + - planned + - decommissioning type: string - x-spec-enum-id: 2ff919f516566857 - description: 'Physical port type - - - * `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C - - * `CS6364C` - CS6364C - - * `CS8164C` - CS8164C - - * `CS8264C` - CS8264C - - * `CS8364C` - CS8364C - - * `CS8464C` - CS8464C - - * `ita-e` - ITA Type E (CEE 7/5) - - * `ita-f` - ITA Type F (CEE 7/3) - - * `ita-g` - ITA Type G (BS 1363) - - * `ita-h` - ITA Type H - - * `ita-i` - ITA Type I - - * `ita-j` - ITA Type J - - * `ita-k` - ITA Type K - - * `ita-l` - ITA Type L (CEI 23-50) - - * `ita-m` - ITA Type M (BS 546) - - * `ita-n` - ITA Type N - - * `ita-o` - ITA Type O - - * `ita-multistandard` - ITA Multistandard - - * `usb-a` - USB Type A - - * `usb-micro-b` - USB Micro B - - * `usb-c` - USB Type C - - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx - - * `saf-d-grid` - Saf-D-Grid + description: '* `connected` - Connected - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `planned` - Planned - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `wep` - WEP - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `wpa-personal` - WPA Personal (PSK) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto - * `hardwired` - Hardwired + * `tkip` - TKIP - * `other` - Other' - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortRequest' + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - feed_leg: + distance_unit: enum: - - A - - B - - C + - km + - m + - mi + - ft - '' type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) - + description: '* `km` - Kilometers - * `A` - A + * `m` - Meters - * `B` - B + * `mi` - Miles - * `C` - C' + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected + comments: + type: string tags: type: array items: @@ -124104,725 +136506,939 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletTemplateRequest: + Platform: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true - module_type: + config_template: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true - name: + description: type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: type: string - description: Physical label - maxLength: 64 - type: - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' + format: date-time + readOnly: true + nullable: true + last_updated: type: string - description: '* `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C - - * `CS6364C` - CS6364C - - * `CS8164C` - CS8164C - - * `CS8264C` - CS8264C - - * `CS8364C` - CS8364C - - * `CS8464C` - CS8464C - - * `ita-e` - ITA Type E (CEE 7/5) - - * `ita-f` - ITA Type F (CEE 7/3) - - * `ita-g` - ITA Type G (BS 1363) - - * `ita-h` - ITA Type H - - * `ita-i` - ITA Type I - - * `ita-j` - ITA Type J - - * `ita-k` - ITA Type K - - * `ita-l` - ITA Type L (CEI 23-50) - - * `ita-m` - ITA Type M (BS 546) - - * `ita-n` - ITA Type N - - * `ita-o` - ITA Type O - - * `ita-multistandard` - ITA Multistandard - - * `usb-a` - USB Type A - - * `usb-micro-b` - USB Micro B - - * `usb-c` - USB Type C - - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx - - * `saf-d-grid` - Saf-D-Grid - - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - created + - display + - display_url + - id + - last_updated + - name + - slug + - url + PlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + PowerFeed: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + power_panel: + $ref: '#/components/schemas/BriefPowerPanel' + rack: + allOf: + - $ref: '#/components/schemas/BriefRack' + nullable: true + name: + type: string + maxLength: 100 + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `active` - Active - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `planned` - Planned - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + label: + type: string + enum: + - Offline + - Active + - Planned + - Failed + type: + type: object + properties: + value: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + label: + type: string + enum: + - Primary + - Redundant + supply: + type: object + properties: + value: + enum: + - ac + - dc + type: string + description: '* `ac` - AC - * `hardwired` - Hardwired + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + label: + type: string + enum: + - AC + - DC + phase: + type: object + properties: + value: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase - * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - power_port: + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + label: + type: string + enum: + - Single phase + - Three-phase + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true + description: + type: string + maxLength: 200 + tenant: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefTenant' nullable: true - feed_leg: + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type + - created + - display + - display_url + - id + - last_updated + - link_peers + - link_peers_type + - name + - power_panel + - url + PowerFeedRequest: + type: object + description: Adds support for custom fields and tags. + properties: + power_panel: + $ref: '#/components/schemas/BriefPowerPanelRequest' + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + status: enum: - - A - - B - - C - - '' + - offline + - active + - planned + - failed type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) + description: '* `offline` - Offline + * `active` - Active - * `A` - A + * `planned` - Planned - * `B` - B + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary - * `C` - C' + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 - PatchedWritablePowerPortRequest: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - power_panel + PowerOutlet: type: object description: Adds support for custom fields and tags. properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string - minLength: 1 maxLength: 64 label: type: string description: Physical label maxLength: 64 type: - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - x-spec-enum-id: 6d680dea031864ae - description: 'Physical port type - - - * `iec-60320-c6` - C6 - - * `iec-60320-c8` - C8 - - * `iec-60320-c14` - C14 - - * `iec-60320-c16` - C16 - - * `iec-60320-c20` - C20 + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c5` - C5 - * `iec-60320-c22` - C22 + * `iec-60320-c7` - C7 - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `iec-60320-c13` - C13 - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `iec-60320-c15` - C15 - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `iec-60320-c19` - C19 - * `iec-60309-2p-e-4h` - 2P+E 4H + * `iec-60320-c21` - C21 - * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `iec-60309-2p-e-9h` - 2P+E 9H + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `iec-60309-3p-e-4h` - 3P+E 4H + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `iec-60309-3p-e-6h` - 3P+E 6H + * `iec-60309-2p-e-4h` - 2P+E 4H - * `iec-60309-3p-e-9h` - 3P+E 9H + * `iec-60309-2p-e-6h` - 2P+E 6H - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `iec-60309-3p-e-4h` - 3P+E 4H - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `iec-60309-3p-e-6h` - 3P+E 6H - * `iec-60906-1` - IEC 60906-1 + * `iec-60309-3p-e-9h` - 3P+E 9H - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `nema-1-15p` - NEMA 1-15P + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `nema-5-15p` - NEMA 5-15P + * `iec-60906-1` - IEC 60906-1 - * `nema-5-20p` - NEMA 5-20P + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `nema-5-30p` - NEMA 5-30P + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-5-50p` - NEMA 5-50P + * `nema-1-15r` - NEMA 1-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-50p` - NEMA 6-50P + * `nema-5-50r` - NEMA 5-50R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-20r` - NEMA 6-20R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-30p` - NEMA 14-30P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-60p` - NEMA 14-60P + * `nema-10-50r` - NEMA 10-50R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-50p` - NEMA 15-50P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-15r` - NEMA 15-15R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-20r` - NEMA 15-20R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-30p` - NEMA L5-30P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l15-50r` - NEMA L15-50R - * `cs6361c` - CS6361C + * `nema-l15-60r` - NEMA L15-60R - * `cs6365c` - CS6365C + * `nema-l21-20r` - NEMA L21-20R - * `cs8165c` - CS8165C + * `nema-l21-30r` - NEMA L21-30R - * `cs8265c` - CS8265C + * `nema-l22-20r` - NEMA L22-20R - * `cs8365c` - CS8365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8465c` - CS8465C + * `CS6360C` - CS6360C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS6364C` - CS6364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8164C` - CS8164C - * `ita-f` - ITA Type F (CEE 7/4) + * `CS8264C` - CS8264C - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `CS8364C` - CS8364C - * `ita-g` - ITA Type G (BS 1363) + * `CS8464C` - CS8464C - * `ita-h` - ITA Type H + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-i` - ITA Type I + * `ita-f` - ITA Type F (CEE 7/3) - * `ita-j` - ITA Type J + * `ita-g` - ITA Type G (BS 1363) - * `ita-k` - ITA Type K + * `ita-h` - ITA Type H - * `ita-l` - ITA Type L (CEI 23-50) + * `ita-i` - ITA Type I - * `ita-m` - ITA Type M (BS 546) + * `ita-j` - ITA Type J - * `ita-n` - ITA Type N + * `ita-k` - ITA Type K - * `ita-o` - ITA Type O + * `ita-l` - ITA Type L (CEI 23-50) - * `usb-a` - USB Type A + * `ita-m` - ITA Type M (BS 546) - * `usb-b` - USB Type B + * `ita-n` - ITA Type N - * `usb-c` - USB Type C + * `ita-o` - ITA Type O - * `usb-mini-a` - USB Mini A + * `ita-multistandard` - ITA Multistandard - * `usb-mini-b` - USB Mini B + * `usb-a` - USB Type A - * `usb-micro-a` - USB Micro A + * `usb-micro-b` - USB Micro B - * `usb-micro-b` - USB Micro B + * `usb-c` - USB Type C - * `usb-micro-ab` - USB Micro AB + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `usb-3-b` - USB 3.0 Type B + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `dc-terminal` - DC Terminal - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `hdot-cx` - HDOT Cx - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `saf-d-grid` - Saf-D-Grid - * `dc-terminal` - DC Terminal + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `saf-d-grid` - Saf-D-Grid + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `hardwired` - Hardwired - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `other` - Other' + x-spec-enum-id: 83934a5ad90d6138 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPort' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A - * `hardwired` - Hardwired + * `B` - B - * `other` - Other' - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 mark_connected: type: boolean description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true tags: type: array items: - $ref: '#/components/schemas/NestedTagRequest' + $ref: '#/components/schemas/NestedTag' custom_fields: type: object additionalProperties: {} - PatchedWritablePowerPortTemplateRequest: + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type + - created + - device + - display + - display_url + - id + - last_updated + - link_peers + - link_peers_type + - name + - url + PowerOutletRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' maxLength: 64 label: type: string @@ -124830,12 +137446,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -124851,57 +137467,56 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -124911,23 +137526,18 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -124935,17 +137545,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -124977,107 +137587,105 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-20p` - NEMA 5-20P + * `nema-5-15r` - NEMA 5-15R - * `nema-5-30p` - NEMA 5-30P + * `nema-5-20r` - NEMA 5-20R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-20p` - NEMA 6-20P + * `nema-6-15r` - NEMA 6-15R - * `nema-6-30p` - NEMA 6-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-50r` - NEMA 6-50R - * `nema-10-50p` - NEMA 10-50P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-14-20r` - NEMA 14-20R - * `nema-14-50p` - NEMA 14-50P + * `nema-14-30r` - NEMA 14-30R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-20p` - NEMA 15-20P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-30p` - NEMA 15-30P + * `nema-15-20r` - NEMA 15-20R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-30r` - NEMA 15-30R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-50r` - NEMA 15-50R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-15p` - NEMA L5-15P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-20p` - NEMA L5-20P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l21-20r` - NEMA L21-20R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-30r` - NEMA L21-30R - * `cs6361c` - CS6361C + * `nema-l22-20r` - NEMA L22-20R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -125097,25 +137705,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -125125,11 +137721,13 @@ components: * `dc-terminal` - DC Terminal + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -125140,79 +137738,32 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - PatchedWritablePrefixRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' + x-spec-enum-id: 83934a5ad90d6138 nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - vlan: + power_port: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true - status: + feed_leg: enum: - - container - - active - - reserved - - deprecated + - A + - B + - C + - '' type: string - x-spec-enum-id: d38bee5f512701d9 - description: 'Operational status of this prefix - - - * `container` - Container - - * `active` - Active + description: '* `A` - A - * `reserved` - Reserved + * `B` - B - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - mark_utilized: - type: boolean - description: Treat as fully utilized description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -125220,375 +137771,490 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableRackRequest: + required: + - device + - name + PowerOutletTemplate: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - name: + id: + type: integer + readOnly: true + url: type: string - minLength: 1 - maxLength: 100 - facility_id: + format: uri + readOnly: true + display: type: string - nullable: true - maxLength: 50 - site: - $ref: '#/components/schemas/SiteRequest' - location: + readOnly: true + device_type: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true - tenant: + module_type: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefModuleType' nullable: true - status: - enum: - - reserved - - available - - planned - - active - - deprecated + name: type: string - description: '* `reserved` - Reserved + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c5` - C5 - * `available` - Available + * `iec-60320-c7` - C7 - * `planned` - Planned + * `iec-60320-c13` - C13 - * `active` - Active + * `iec-60320-c15` - C15 - * `deprecated` - Deprecated' - x-spec-enum-id: 0c556d55dc1baa13 - role: - allOf: - - $ref: '#/components/schemas/RackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame + * `iec-60320-c19` - C19 - * `4-post-frame` - 4-post frame + * `iec-60320-c21` - C21 - * `4-post-cabinet` - 4-post cabinet + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `wall-frame` - Wall-mounted frame + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `wall-frame-vertical` - Wall-mounted frame (vertical) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `wall-cabinet` - Wall-mounted cabinet + * `iec-60309-2p-e-4h` - 2P+E 4H - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: 'Rail-to-rail width + * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `10` - 10 inches + * `iec-60309-3p-e-4h` - 3P+E 4H - * `19` - 19 inches + * `iec-60309-3p-e-6h` - 3P+E 6H - * `21` - 21 inches + * `iec-60309-3p-e-9h` - 3P+E 9H - * `23` - 23 inches' - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `g` - Grams + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `lb` - Pounds + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters + * `iec-60906-1` - IEC 60906-1 - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `8p8c` - 8P8C + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `8p6c` - 8P6C + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `8p4c` - 8P4C + * `nema-1-15r` - NEMA 1-15R - * `8p2c` - 8P2C + * `nema-5-15r` - NEMA 5-15R - * `6p6c` - 6P6C + * `nema-5-20r` - NEMA 5-20R - * `6p4c` - 6P4C + * `nema-5-30r` - NEMA 5-30R - * `6p2c` - 6P2C + * `nema-5-50r` - NEMA 5-50R - * `4p4c` - 4P4C + * `nema-6-15r` - NEMA 6-15R - * `4p2c` - 4P2C + * `nema-6-20r` - NEMA 6-20R - * `gg45` - GG45 + * `nema-6-30r` - NEMA 6-30R - * `tera-4p` - TERA 4P + * `nema-6-50r` - NEMA 6-50R - * `tera-2p` - TERA 2P + * `nema-10-30r` - NEMA 10-30R - * `tera-1p` - TERA 1P + * `nema-10-50r` - NEMA 10-50R - * `110-punch` - 110 Punch + * `nema-14-20r` - NEMA 14-20R - * `bnc` - BNC + * `nema-14-30r` - NEMA 14-30R - * `f` - F Connector + * `nema-14-50r` - NEMA 14-50R - * `n` - N Connector + * `nema-14-60r` - NEMA 14-60R - * `mrj21` - MRJ21 + * `nema-15-15r` - NEMA 15-15R - * `fc` - FC + * `nema-15-20r` - NEMA 15-20R - * `lc` - LC + * `nema-15-30r` - NEMA 15-30R - * `lc-pc` - LC/PC + * `nema-15-50r` - NEMA 15-50R - * `lc-upc` - LC/UPC + * `nema-15-60r` - NEMA 15-60R - * `lc-apc` - LC/APC + * `nema-l1-15r` - NEMA L1-15R - * `lsh` - LSH + * `nema-l5-15r` - NEMA L5-15R - * `lsh-pc` - LSH/PC + * `nema-l5-20r` - NEMA L5-20R - * `lsh-upc` - LSH/UPC + * `nema-l5-30r` - NEMA L5-30R - * `lsh-apc` - LSH/APC + * `nema-l5-50r` - NEMA L5-50R - * `lx5` - LX.5 + * `nema-l6-15r` - NEMA L6-15R - * `lx5-pc` - LX.5/PC + * `nema-l6-20r` - NEMA L6-20R - * `lx5-upc` - LX.5/UPC + * `nema-l6-30r` - NEMA L6-30R - * `lx5-apc` - LX.5/APC + * `nema-l6-50r` - NEMA L6-50R - * `mpo` - MPO + * `nema-l10-30r` - NEMA L10-30R - * `mtrj` - MTRJ + * `nema-l14-20r` - NEMA L14-20R - * `sc` - SC + * `nema-l14-30r` - NEMA L14-30R - * `sc-pc` - SC/PC + * `nema-l14-50r` - NEMA L14-50R - * `sc-upc` - SC/UPC + * `nema-l14-60r` - NEMA L14-60R - * `sc-apc` - SC/APC + * `nema-l15-20r` - NEMA L15-20R - * `st` - ST + * `nema-l15-30r` - NEMA L15-30R - * `cs` - CS + * `nema-l15-50r` - NEMA L15-50R - * `sn` - SN + * `nema-l15-60r` - NEMA L15-60R - * `sma-905` - SMA 905 + * `nema-l21-20r` - NEMA L21-20R - * `sma-906` - SMA 906 + * `nema-l21-30r` - NEMA L21-30R - * `urm-p2` - URM-P2 + * `nema-l22-20r` - NEMA L22-20R - * `urm-p4` - URM-P4 + * `nema-l22-30r` - NEMA L22-30R - * `urm-p8` - URM-P8 + * `CS6360C` - CS6360C - * `splice` - Splice + * `CS6364C` - CS6364C - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: Number of front ports which may be mapped + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: 83934a5ad90d6138 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplate' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C + nullable: true description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortTemplateRequest: + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - id + - last_updated + - name + - url + PowerOutletTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -125597,11 +138263,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -125615,1063 +138281,324 @@ components: maxLength: 64 type: enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired - other + - '' type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C + description: '* `iec-60320-c5` - C5 - * `4p2c` - 4P2C + * `iec-60320-c7` - C7 - * `gg45` - GG45 + * `iec-60320-c13` - C13 - * `tera-4p` - TERA 4P + * `iec-60320-c15` - C15 - * `tera-2p` - TERA 2P + * `iec-60320-c19` - C19 - * `tera-1p` - TERA 1P + * `iec-60320-c21` - C21 - * `110-punch` - 110 Punch + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `bnc` - BNC + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `f` - F Connector + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `n` - N Connector + * `iec-60309-2p-e-4h` - 2P+E 4H - * `mrj21` - MRJ21 + * `iec-60309-2p-e-6h` - 2P+E 6H - * `fc` - FC + * `iec-60309-2p-e-9h` - 2P+E 9H - * `lc` - LC + * `iec-60309-3p-e-4h` - 3P+E 4H - * `lc-pc` - LC/PC + * `iec-60309-3p-e-6h` - 3P+E 6H - * `lc-upc` - LC/UPC + * `iec-60309-3p-e-9h` - 3P+E 9H - * `lc-apc` - LC/APC + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `lsh` - LSH + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `lsh-pc` - LSH/PC + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `lsh-upc` - LSH/UPC + * `iec-60906-1` - IEC 60906-1 - * `lsh-apc` - LSH/APC + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `lx5` - LX.5 + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `lx5-pc` - LX.5/PC + * `nema-1-15r` - NEMA 1-15R - * `lx5-upc` - LX.5/UPC + * `nema-5-15r` - NEMA 5-15R - * `lx5-apc` - LX.5/APC + * `nema-5-20r` - NEMA 5-20R - * `mpo` - MPO + * `nema-5-30r` - NEMA 5-30R - * `mtrj` - MTRJ + * `nema-5-50r` - NEMA 5-50R - * `sc` - SC + * `nema-6-15r` - NEMA 6-15R - * `sc-pc` - SC/PC + * `nema-6-20r` - NEMA 6-20R - * `sc-upc` - SC/UPC + * `nema-6-30r` - NEMA 6-30R - * `sc-apc` - SC/APC + * `nema-6-50r` - NEMA 6-50R - * `st` - ST + * `nema-10-30r` - NEMA 10-30R - * `cs` - CS + * `nema-10-50r` - NEMA 10-50R - * `sn` - SN + * `nema-14-20r` - NEMA 14-20R - * `sma-905` - SMA 905 + * `nema-14-30r` - NEMA 14-30R - * `sma-906` - SMA 906 + * `nema-14-50r` - NEMA 14-50R - * `urm-p2` - URM-P2 + * `nema-14-60r` - NEMA 14-60R - * `urm-p4` - URM-P4 + * `nema-15-15r` - NEMA 15-15R - * `urm-p8` - URM-P8 + * `nema-15-20r` - NEMA 15-20R - * `splice` - Splice + * `nema-15-30r` - NEMA 15-30R - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - PatchedWritableRegionRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - protocol: - enum: - - tcp - - udp - - sctp - type: string - description: '* `tcp` - TCP + * `nema-15-50r` - NEMA 15-50R - * `udp` - UDP + * `nema-15-60r` - NEMA 15-60R - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - ipaddresses: - type: array - items: - type: integer - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceTemplateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - protocol: - enum: - - tcp - - udp - - sctp - type: string - description: '* `tcp` - TCP + * `nema-l1-15r` - NEMA L1-15R - * `udp` - UDP + * `nema-l5-15r` - NEMA L5-15R - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the site - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned + * `nema-l5-20r` - NEMA L5-20R - * `staging` - Staging + * `nema-l5-30r` - NEMA L5-30R - * `active` - Active + * `nema-l5-50r` - NEMA L5-50R - * `decommissioning` - Decommissioning + * `nema-l6-15r` - NEMA L6-15R - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - region: - allOf: - - $ref: '#/components/schemas/RegionRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/SiteGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - description: Physical location of the building - maxLength: 200 - shipping_address: - type: string - description: If different from the physical address - maxLength: 200 - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTenantGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - status: - enum: - - planned - - active - - disabled - type: string - description: '* `planned` - Planned + * `nema-l6-20r` - NEMA L6-20R - * `active` - Active + * `nema-l6-30r` - NEMA L6-30R - * `disabled` - Disabled' - x-spec-enum-id: 0d65f7912cba74aa - group: - allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' - nullable: true - encapsulation: - enum: - - ipsec-transport - - ipsec-tunnel - - ip-ip - - gre - type: string - description: '* `ipsec-transport` - IPsec - Transport + * `nema-l6-50r` - NEMA L6-50R - * `ipsec-tunnel` - IPsec - Tunnel + * `nema-l10-30r` - NEMA L10-30R - * `ip-ip` - IP-in-IP + * `nema-l14-20r` - NEMA L14-20R - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 - ipsec_profile: - allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - tunnel_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - tunnel: - $ref: '#/components/schemas/TunnelRequest' - role: - enum: - - peer - - hub - - spoke - type: string - description: '* `peer` - Peer + * `nema-l14-30r` - NEMA L14-30R - * `hub` - Hub + * `nema-l14-50r` - NEMA L14-50R - * `spoke` - Spoke' - x-spec-enum-id: 52225cd60b867572 - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - outside_ip: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroupRequest' - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: VLAN ID - description: Numeric VLAN ID (1-4094) - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: - enum: - - active - - reserved - - deprecated - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this VLAN + * `nema-l14-60r` - NEMA L14-60R + * `nema-l15-20r` - NEMA L15-20R - * `active` - Active + * `nema-l15-30r` - NEMA L15-30R - * `reserved` - Reserved + * `nema-l15-50r` - NEMA L15-50R - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVMInterfaceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - minLength: 1 - description: - type: string - maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' - type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy + * `nema-l15-60r` - NEMA L15-60R + * `nema-l21-20r` - NEMA L21-20R - * `access` - Access + * `nema-l21-30r` - NEMA L21-30R - * `tagged` - Tagged + * `nema-l22-20r` - NEMA L22-20R - * `tagged-all` - Tagged (All)' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualChassisRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - type: integer - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualDeviceContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - device: - $ref: '#/components/schemas/DeviceRequest' - identifier: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - status: - enum: - - active - - planned - - offline - type: string - description: '* `active` - Active + * `nema-l22-30r` - NEMA L22-30R - * `planned` - Planned + * `CS6360C` - CS6360C - * `offline` - Offline' - x-spec-enum-id: ee1ef02def7a91ab - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualMachineWithConfigContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - status: - enum: - - offline - - active - - planned - - staged - - failed - - decommissioning - type: string - description: '* `offline` - Offline + * `CS6364C` - CS6364C - * `active` - Active + * `CS8164C` - CS8164C - * `planned` - Planned + * `CS8264C` - CS8264C - * `staged` - Staged + * `CS8364C` - CS8364C - * `failed` - Failed + * `CS8464C` - CS8464C - * `decommissioning` - Decommissioning' - x-spec-enum-id: 2217e87d0c3efdda - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/ClusterRequest' - nullable: true - device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true - role: - allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - vcpus: - type: number - format: double - maximum: 10000 - minimum: 0.01 - exclusiveMaximum: true - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - description: - type: string - maxLength: 200 - comments: - type: string - config_template: - allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true - local_context_data: - nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLANGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - ssid: - type: string - minLength: 1 - maxLength: 32 - description: - type: string - maxLength: 200 - group: - allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' - nullable: true - status: - enum: - - active - - reserved - - disabled - - deprecated - type: string - description: '* `active` - Active + * `ita-e` - ITA Type E (CEE 7/5) - * `reserved` - Reserved + * `ita-f` - ITA Type F (CEE 7/3) - * `disabled` - Disabled + * `ita-g` - ITA Type G (BS 1363) - * `deprecated` - Deprecated' - x-spec-enum-id: 412ebdca597f609e - vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open + * `ita-h` - ITA Type H - * `wep` - WEP + * `ita-i` - ITA Type I - * `wpa-personal` - WPA Personal (PSK) + * `ita-j` - ITA Type J - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `ita-k` - ITA Type K - * `tkip` - TKIP + * `ita-l` - ITA Type L (CEI 23-50) - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/InterfaceRequest' - interface_b: - $ref: '#/components/schemas/InterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected + * `ita-m` - ITA Type M (BS 546) - * `planned` - Planned + * `ita-n` - ITA Type N - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open + * `ita-o` - ITA Type O - * `wep` - WEP + * `ita-multistandard` - ITA Multistandard - * `wpa-personal` - WPA Personal (PSK) + * `usb-a` - USB Type A - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `usb-micro-b` - USB Micro B - * `tkip` - TKIP + * `usb-c` - USB Type C - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - Platform: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - PlatformRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: 83934a5ad90d6138 + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' + nullable: true + feed_leg: + enum: + - A + - B + - C + - '' type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + nullable: true description: type: string maxLength: 200 required: - name - - slug - PowerFeed: + PowerPanel: type: object description: Adds support for custom fields and tags. properties: @@ -126682,143 +138609,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - power_panel: - $ref: '#/components/schemas/PowerPanel' - rack: + site: + $ref: '#/components/schemas/BriefSite' + location: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefLocation' nullable: true name: type: string maxLength: 100 - status: - type: object - properties: - value: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - label: - type: string - enum: - - Offline - - Active - - Planned - - Failed - type: - type: object - properties: - value: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - label: - type: string - enum: - - Primary - - Redundant - supply: - type: object - properties: - value: - enum: - - ac - - dc - type: string - description: '* `ac` - AC - - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - label: - type: string - enum: - - AC - - DC - phase: - type: object - properties: - value: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - label: - type: string - enum: - - Single phase - - Three-phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - connected_endpoints: - type: array - items: {} - readOnly: true - connected_endpoints_type: - type: string - readOnly: true - connected_endpoints_reachable: - type: boolean - readOnly: true description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true comments: type: string tags: @@ -126828,6 +138637,10 @@ components: custom_fields: type: object additionalProperties: {} + powerfeed_count: + type: integer + format: int64 + readOnly: true created: type: string format: date-time @@ -126838,105 +138651,33 @@ components: format: date-time readOnly: true nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' required: - - _occupied - - cable - - cable_end - - connected_endpoints - - connected_endpoints_reachable - - connected_endpoints_type - created - display + - display_url - id - last_updated - - link_peers - - link_peers_type - name - - power_panel + - powerfeed_count + - site - url - PowerFeedRequest: + PowerPanelRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/PowerPanelRequest' - rack: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true name: type: string minLength: 1 maxLength: 100 - status: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC - - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true comments: type: string tags: @@ -126948,8 +138689,8 @@ components: additionalProperties: {} required: - name - - power_panel - PowerOutlet: + - site + PowerPort: type: object description: Adds support for custom fields and tags. properties: @@ -126960,14 +138701,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -126981,12 +138726,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127002,55 +138747,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127060,18 +138808,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127079,17 +138832,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127121,103 +138874,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -127237,14 +138996,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -127253,13 +139024,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -127270,16 +139039,16 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b label: type: string enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 - P+N+E 4H - P+N+E 6H - P+N+E 9H @@ -127295,55 +139064,58 @@ components: - IEC 60906-1 - 2P+T 10A (NBR 14136) - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -127353,15 +139125,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -127371,33 +139148,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPort' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -127406,7 +139168,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -127420,13 +139182,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -127461,21 +139226,22 @@ components: - created - device - display + - display_url - id - last_updated - link_peers - link_peers_type - name - url - PowerOutletRequest: + PowerPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -127487,12 +139253,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127508,55 +139274,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127566,18 +139335,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127585,17 +139359,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127627,103 +139401,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -127743,14 +139523,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -127759,13 +139551,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -127776,26 +139566,20 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortRequest' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -127812,7 +139596,7 @@ components: required: - device - name - PowerOutletTemplate: + PowerPortTemplate: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -127831,11 +139615,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -127851,12 +139635,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127872,55 +139656,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127930,18 +139717,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127949,17 +139741,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127991,103 +139783,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128107,113 +139905,126 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx + * `usb-mini-a` - USB Mini A - * `saf-d-grid` - Saf-D-Grid + * `usb-mini-b` - USB Mini B - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `usb-micro-a` - USB Micro A - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `usb-micro-b` - USB Micro B - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `usb-micro-ab` - USB Micro AB - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `usb-3-b` - USB 3.0 Type B - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `usb-3-micro-b` - USB 3.0 Micro B - * `hardwired` - Hardwired + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - IEC 60906-1 - - 2P+T 10A (NBR 14136) - - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f1bd4aedff3a591b + label: + type: string + enum: + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -128223,15 +140034,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -128241,33 +140057,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplate' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -128288,7 +140089,7 @@ components: - last_updated - name - url - PowerOutletTemplateRequest: + PowerPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -128297,11 +140098,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -128315,12 +140116,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -128336,55 +140137,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -128394,18 +140198,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -128413,17 +140222,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -128455,103 +140264,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128571,14 +140386,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -128587,13 +140414,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -128604,135 +140429,28 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' - nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - description: - type: string - maxLength: 200 - required: - - name - PowerPanel: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - powerfeed_count: + maximum_draw: type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - powerfeed_count - - url - PowerPanelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - PowerPort: - type: object - description: Adds support for custom fields and tags. - properties: - id: + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/Device' - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true + maximum: 2147483647 + minimum: 1 nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - device - - display - - id - - name - - url - PowerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 + description: Allocated power draw (watts) description: type: string maxLength: 200 required: - - device - name - PowerPortTemplate: + Prefix: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: id: type: integer @@ -128741,48 +140459,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - PowerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - Prefix: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -128811,19 +140488,19 @@ components: type: string site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true status: type: object @@ -128852,7 +140529,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true is_pool: type: boolean @@ -128895,6 +140572,7 @@ components: - children - created - display + - display_url - family - id - last_updated @@ -128909,19 +140587,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -128940,7 +140618,7 @@ components: x-spec-enum-id: d38bee5f512701d9 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -128974,6 +140652,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -128985,17 +140667,47 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + $ref: '#/components/schemas/NestedProviderAccount' description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true circuit_count: type: integer format: int64 readOnly: true required: - circuit_count + - created - display + - display_url - id + - last_updated - name - slug - url @@ -129010,11 +140722,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true provider: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/BriefProvider' name: type: string default: '' @@ -129049,6 +140765,7 @@ components: - account - created - display + - display_url - id - last_updated - provider @@ -129057,6 +140774,8 @@ components: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string default: '' @@ -129069,8 +140788,18 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - account + - provider ProviderNetwork: type: object description: Adds support for custom fields and tags. @@ -129082,33 +140811,80 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + provider: + $ref: '#/components/schemas/BriefProvider' name: type: string maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display + - display_url - id + - last_updated - name + - provider - url ProviderNetworkRequest: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string minLength: 1 maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - provider ProviderRequest: type: object description: Adds support for custom fields and tags. @@ -129123,9 +140899,26 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -129135,96 +140928,589 @@ components: properties: id: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - aggregate_count: + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - created + - display + - display_url + - id + - last_updated + - name + - slug + - url + RIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + Rack: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSite' + location: + allOf: + - $ref: '#/components/schemas/BriefLocation' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + label: + type: string + enum: + - Reserved + - Available + - Planned + - Active + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRackRole' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackType' + nullable: true + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + label: + type: string + enum: + - Front to rear + - Rear to front + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - created + - display + - display_url + - id + - last_updated + - name + - powerfeed_count + - site + - url + RackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: type: integer - format: int64 - readOnly: true - required: - - aggregate_count - - display - - id - - name - - slug - - url - RIRRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' type: string - maxLength: 200 - required: - - name - - slug - Rack: - type: object - description: Adds support for custom fields and tags. - properties: - id: + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' type: string - maxLength: 200 - device_count: + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + mounting_depth: type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - url - RackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' type: string - minLength: 1 - maxLength: 100 + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site RackReservation: type: object description: Adds support for custom fields and tags. @@ -129236,11 +141522,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true rack: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/BriefRack' units: type: array items: @@ -129258,10 +141548,10 @@ components: readOnly: true nullable: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -129279,6 +141569,7 @@ components: - created - description - display + - display_url - id - last_updated - rack @@ -129290,7 +141581,7 @@ components: description: Adds support for custom fields and tags. properties: rack: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/BriefRackRequest' units: type: array items: @@ -129298,10 +141589,10 @@ components: maximum: 32767 minimum: 0 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -129332,6 +141623,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129373,6 +141668,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -129410,6 +141706,371 @@ components: required: - name - slug + RackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - id + - last_updated + - manufacturer + - model + - slug + - url + RackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - manufacturer + - model + - slug RackUnit: type: object description: A rack unit is an abstraction formed by the set (rack, position, @@ -129446,7 +142107,7 @@ components: readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' readOnly: true occupied: type: boolean @@ -129472,14 +142133,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -129539,6 +142204,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129633,8 +142306,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -129684,6 +142373,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -129702,7 +142399,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -129716,6 +142413,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -129744,6 +142442,7 @@ components: - created - device - display + - display_url - id - last_updated - link_peers @@ -129756,10 +142455,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -129817,6 +142516,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129911,8 +142618,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -129956,18 +142679,280 @@ components: display: type: string readOnly: true + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + label: + type: string + enum: + - 8P8C + - 8P6C + - 8P4C + - 8P2C + - 6P6C + - 6P4C + - 6P2C + - 4P4C + - 4P2C + - GG45 + - TERA 4P + - TERA 2P + - TERA 1P + - 110 Punch + - BNC + - F Connector + - N Connector + - MRJ21 + - FC + - LC + - LC/PC + - LC/UPC + - LC/APC + - LSH + - LSH/PC + - LSH/UPC + - LSH/APC + - LX.5 + - LX.5/PC + - LX.5/UPC + - LX.5/APC + - MPO + - MTRJ + - SC + - SC/PC + - SC/UPC + - SC/APC + - ST + - CS + - SN + - SMA 905 + - SMA 906 + - URM-P2 + - URM-P4 + - URM-P8 + - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - Other + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name + - type - url RearPortTemplateRequest: type: object @@ -129976,17 +142961,206 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 required: - name + - type Region: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -129998,6 +143172,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130044,6 +143222,7 @@ components: - _depth - created - display + - display_url - id - last_updated - name @@ -130091,6 +143270,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130101,9 +143284,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true prefix_count: type: integer format: int64 @@ -130113,8 +143317,11 @@ components: format: int64 readOnly: true required: + - created - display + - display_url - id + - last_updated - name - slug - url @@ -130132,9 +143339,20 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -130149,6 +143367,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130158,7 +143380,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -130185,6 +143407,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130200,7 +143423,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -130230,6 +143453,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130272,6 +143499,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130333,6 +143561,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true module: type: integer readOnly: true @@ -130341,13 +143573,14 @@ components: readOnly: true description: type: string + nullable: true readOnly: true vars: nullable: true readOnly: true result: allOf: - - $ref: '#/components/schemas/Job' + - $ref: '#/components/schemas/BriefJob' readOnly: true display: type: string @@ -130358,6 +143591,7 @@ components: required: - description - display + - display_url - id - is_executable - module @@ -130365,6 +143599,22 @@ components: - result - url - vars + ScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + required: + - commit + - data Service: type: object description: Adds support for custom fields and tags. @@ -130376,16 +143626,20 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachine' + - $ref: '#/components/schemas/BriefVirtualMachine' nullable: true name: type: string @@ -130447,6 +143701,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130458,11 +143713,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -130517,6 +143772,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130576,6 +143835,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130634,6 +143894,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130645,15 +143909,142 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + region: + allOf: + - $ref: '#/components/schemas/BriefRegion' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroup' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count + - created - display + - display_url - id + - last_updated - name + - rack_count - slug - url + - vlan_count SiteGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -130665,6 +144056,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130711,6 +144106,7 @@ components: - _depth - created - display + - display_url - id - last_updated - name @@ -130761,12 +144157,151 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug + Subscription: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + SubscriptionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + required: + - object_id + - object_type + - user Tag: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -130781,6 +144316,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130819,6 +144358,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -130867,6 +144407,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130877,15 +144421,88 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroup' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + ipaddress_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + site_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + vrf_count: + type: integer + format: int64 + readOnly: true + cluster_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count + - cluster_count + - created - display + - display_url - id + - ipaddress_count + - last_updated - name + - rack_count + - site_count - slug - url + - vlan_count + - vrf_count TenantGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -130897,6 +144514,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130943,6 +144564,7 @@ components: - _depth - created - display + - display_url - id - last_updated - name @@ -130992,9 +144614,22 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -131012,11 +144647,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' created: type: string format: date-time @@ -131042,6 +144681,7 @@ components: required: - created - display + - display_url - id - url - user @@ -131059,12 +144699,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true created: type: string @@ -131090,6 +144734,7 @@ components: required: - created - display + - display_url - id - key - last_used @@ -131131,7 +144776,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' expires: type: string format: date-time @@ -131163,19 +144808,116 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + status: + type: object + properties: + value: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + label: + type: string + enum: + - Planned + - Active + - Disabled + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroup' + nullable: true + encapsulation: + type: object + properties: + value: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + label: + type: string + enum: + - IPsec - Transport + - IPsec - Tunnel + - IP-in-IP + - GRE + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfile' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + terminations_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url + - encapsulation - id + - last_updated - name + - status + - terminations_count - url TunnelGroup: type: object @@ -131188,6 +144930,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131225,6 +144971,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -131265,11 +145012,67 @@ components: type: string minLength: 1 maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - encapsulation - name + - status TunnelTermination: type: object description: Adds support for custom fields and tags. @@ -131281,11 +145084,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true tunnel: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/BriefTunnel' role: type: object properties: @@ -131320,7 +145127,7 @@ components: readOnly: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true tags: type: array @@ -131342,6 +145149,7 @@ components: required: - created - display + - display_url - id - last_updated - role @@ -131355,7 +145163,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -131378,7 +145186,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -131406,6 +145214,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131415,8 +145227,44 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + $ref: '#/components/schemas/Group' + permissions: + type: array + items: + $ref: '#/components/schemas/ObjectPermission' required: - display + - display_url - id - url - username @@ -131434,7 +145282,48 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + password: + type: string + writeOnly: true + minLength: 1 + maxLength: 128 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer required: + - password - username VLAN: type: object @@ -131447,9 +145336,21 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + nullable: true vid: type: integer maximum: 4094 @@ -131459,12 +145360,73 @@ components: name: type: string maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRole' + nullable: true description: type: string maxLength: 200 + comments: + type: string + l2vpn_termination: + allOf: + - $ref: '#/components/schemas/BriefL2VPNTermination' + readOnly: true + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + prefix_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - display_url - id + - l2vpn_termination + - last_updated - name - url - vid @@ -131479,6 +145441,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131498,18 +145464,6 @@ components: scope: nullable: true readOnly: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131540,6 +145494,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -131567,18 +145522,6 @@ components: scope_id: type: integer nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131596,6 +145539,14 @@ components: type: object description: Adds support for custom fields and tags. properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true vid: type: integer maximum: 4094 @@ -131606,9 +145557,38 @@ components: type: string minLength: 1 maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - vid @@ -131623,11 +145603,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -131676,7 +145660,7 @@ components: - Tagged (All) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array @@ -131684,11 +145668,11 @@ components: $ref: '#/components/schemas/VLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true tags: @@ -131719,6 +145703,7 @@ components: - count_ipaddresses - created - display + - display_url - id - l2vpn_termination - last_updated @@ -131730,7 +145715,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -131772,7 +145757,7 @@ components: x-spec-enum-id: 79109bd9dbb73a3c untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -131780,7 +145765,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -131803,6 +145788,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131815,16 +145804,59 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ipaddress_count: + type: integer + format: int64 + readOnly: true prefix_count: type: integer format: int64 readOnly: true required: + - created - display + - display_url - id + - ipaddress_count + - last_updated - name - url VRFRequest: @@ -131841,9 +145873,34 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualChassis: @@ -131857,12 +145914,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -131870,13 +145934,41 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true member_count: type: integer readOnly: true + members: + type: array + items: + $ref: '#/components/schemas/NestedDevice' + readOnly: true required: + - created - display + - display_url - id + - last_updated - member_count + - members - name - url VirtualChassisRequest: @@ -131887,6 +145979,9 @@ components: type: string minLength: 1 maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDeviceRequest' @@ -131894,6 +145989,15 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualDeviceContext: @@ -131907,6 +146011,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131914,7 +146022,7 @@ components: type: string maxLength: 64 device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' identifier: type: integer maximum: 32767 @@ -131922,20 +146030,20 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true status: type: object @@ -131988,6 +146096,7 @@ components: - created - device - display + - display_url - id - interface_count - last_updated @@ -132004,7 +146113,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -132012,15 +146121,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -132061,11 +146170,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -132076,7 +146189,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132097,6 +146210,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -132108,7 +146222,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -132120,7 +146234,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132132,7 +146246,7 @@ components: - name - size - virtual_machine - VirtualMachine: + VirtualMachineWithConfigContext: type: object description: Adds support for custom fields and tags. properties: @@ -132143,41 +146257,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - VirtualMachineRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - VirtualMachineWithConfigContext: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -132222,40 +146302,44 @@ components: - Decommissioning site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRole' + - $ref: '#/components/schemas/BriefDeviceRole' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true vcpus: type: number @@ -132275,7 +146359,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132283,7 +146367,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -132319,6 +146403,7 @@ components: - config_context - created - display + - display_url - id - interface_count - last_updated @@ -132357,35 +146442,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -132405,7 +146494,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132413,7 +146502,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -132439,6 +146528,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132525,6 +146618,7 @@ components: required: - created - display + - display_url - id - last_updated - name @@ -132621,6 +146715,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132632,7 +146730,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroup' + - $ref: '#/components/schemas/BriefWirelessLANGroup' nullable: true status: type: object @@ -132662,11 +146760,11 @@ components: - Deprecated vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true auth_type: type: object @@ -132742,6 +146840,7 @@ components: required: - created - display + - display_url - id - last_updated - ssid @@ -132757,6 +146856,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132767,9 +146870,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + parent: + allOf: + - $ref: '#/components/schemas/NestedWirelessLANGroup' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true wirelesslan_count: type: integer readOnly: true @@ -132780,8 +146904,11 @@ components: title: ' depth' required: - _depth + - created - display + - display_url - id + - last_updated - name - slug - url @@ -132829,7 +146956,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -132849,11 +146976,250 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - ssid + WirelessLink: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + interface_a: + $ref: '#/components/schemas/BriefInterface' + interface_b: + $ref: '#/components/schemas/BriefInterface' + ssid: + type: string + maxLength: 32 + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' nullable: true + auth_type: + type: object + properties: + value: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + label: + type: string + enum: + - Open + - WEP + - WPA Personal (PSK) + - WPA Enterprise + auth_cipher: + type: object + properties: + value: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + label: + type: string + enum: + - Auto + - TKIP + - AES + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + type: object + properties: + value: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + label: + type: string + enum: + - Kilometers + - Meters + - Miles + - Feet + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - display_url + - id + - interface_a + - interface_b + - last_updated + - url + WirelessLinkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + interface_a: + $ref: '#/components/schemas/BriefInterfaceRequest' + interface_b: + $ref: '#/components/schemas/BriefInterfaceRequest' + ssid: + type: string + maxLength: 32 + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -132888,205 +147254,31 @@ components: type: string title: Pre-shared key maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - ssid - WirelessLink: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - interface_a: - $ref: '#/components/schemas/Interface' - interface_b: - $ref: '#/components/schemas/Interface' - ssid: - type: string - maxLength: 32 - status: - type: object - properties: - value: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - label: - type: string - enum: - - Connected - - Planned - - Decommissioning - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - auth_type: - type: object - properties: - value: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) - - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - label: - type: string - enum: - - Open - - WEP - - WPA Personal (PSK) - - WPA Enterprise - auth_cipher: - type: object - properties: - value: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto - - * `tkip` - TKIP - - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - label: - type: string - enum: - - Auto - - TKIP - - AES - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - interface_a - - interface_b - - last_updated - - url - WirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/InterfaceRequest' - interface_b: - $ref: '#/components/schemas/InterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - auth_type: + distance_unit: enum: - - open - - wep - - wpa-personal - - wpa-enterprise + - km + - m + - mi + - ft - '' type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) + description: '* `km` - Kilometers - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `m` - Meters - * `tkip` - TKIP + * `mi` - Miles - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true description: type: string maxLength: 200 @@ -133110,10 +147302,10 @@ components: type: string minLength: 1 rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true date_added: type: string @@ -133162,6 +147354,7 @@ components: - smf-os1 - smf-os2 - aoc + - usb - power - '' type: string @@ -133209,8 +147402,10 @@ components: * `aoc` - Active Optical Cabling (AOC) + * `usb` - USB + * `power` - Power' - x-spec-enum-id: e671018e64196f8d + x-spec-enum-id: 7b11d524b2b1a7ef a_terminations: type: array items: @@ -133233,7 +147428,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true label: type: string @@ -133284,6 +147479,37 @@ components: custom_fields: type: object additionalProperties: {} + WritableCircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - circuit + - group WritableCircuitRequest: type: object description: Adds support for custom fields and tags. @@ -133295,13 +147521,13 @@ components: description: Unique circuit ID maxLength: 100 provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' provider_account: allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true type: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/BriefCircuitTypeRequest' status: enum: - planned @@ -133325,7 +147551,7 @@ components: x-spec-enum-id: 63c838134a022200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true install_date: type: string @@ -133356,6 +147582,10 @@ components: custom_fields: type: object additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid - provider @@ -133369,10 +147599,10 @@ components: minLength: 1 maxLength: 100 type: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/BriefClusterTypeRequest' group: allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' + - $ref: '#/components/schemas/BriefClusterGroupRequest' nullable: true status: enum: @@ -133394,11 +147624,11 @@ components: x-spec-enum-id: 79d20a734d0eecbb tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true description: type: string @@ -133420,10 +147650,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133543,11 +147773,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133618,10 +147848,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133741,11 +147971,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133823,10 +148053,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -134007,8 +148237,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -134069,6 +148303,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -134099,7 +148337,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -134128,13 +148366,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -134147,10 +148385,10 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' default_platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true model: type: string @@ -134274,16 +148512,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -134296,14 +148534,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -134393,23 +148631,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -134429,7 +148667,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -134459,28 +148697,35 @@ components: type: string minLength: 1 maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -134489,11 +148734,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -134514,6 +148762,7 @@ components: $ref: '#/components/schemas/NestedTagRequest' required: - action_object_type + - event_types - name - object_types WritableFrontPortRequest: @@ -134521,10 +148770,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -134582,6 +148831,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134676,8 +148933,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -134717,11 +148990,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -134781,6 +149054,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134875,14 +149156,30 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -135126,11 +149423,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135229,11 +149526,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135252,7 +149549,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -135400,9 +149697,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -135507,14 +149804,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -135534,6 +149831,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -135587,6 +149885,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -135668,6 +149967,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -135774,6 +150075,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -135901,7 +150204,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean parent: @@ -136643,7 +150946,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -136658,7 +150961,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -136680,11 +150983,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -136706,6 +151009,7 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -136759,6 +151063,7 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -136840,6 +151145,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -136946,6 +151253,8 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -137073,7 +151382,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 8d111a81a4af2fa3 enabled: type: boolean mgmt_only: @@ -137254,7 +151563,7 @@ components: type: string tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tags: type: array @@ -137281,7 +151590,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' parent: type: integer nullable: true @@ -137305,7 +151614,7 @@ components: x-spec-enum-id: e363a8ddb138be50 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -137331,11 +151640,11 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: type: integer module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/BriefModuleTypeRequest' status: enum: - offline @@ -137387,7 +151696,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 @@ -137396,6 +151705,28 @@ components: type: string description: Discrete part number (optional) maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d weight: type: number format: double @@ -137440,10 +151771,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/BriefPowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true name: type: string @@ -137512,7 +151843,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true comments: type: string @@ -137531,10 +151862,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -137607,6 +151938,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -137644,7 +151976,7 @@ components: - other - '' type: string - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: 83934a5ad90d6138 description: 'Physical port type @@ -137770,6 +152102,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -137841,7 +152175,7 @@ components: * `other` - Other' power_port: allOf: - - $ref: '#/components/schemas/PowerPortRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true feed_leg: enum: @@ -137884,11 +152218,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -137963,6 +152297,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -138122,6 +152457,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -138191,10 +152528,10 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: 83934a5ad90d6138 power_port: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -138222,10 +152559,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -138298,6 +152635,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138342,7 +152680,7 @@ components: - other - '' type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b description: 'Physical port type @@ -138468,6 +152806,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138588,11 +152928,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -138667,6 +153007,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138833,6 +153174,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138916,7 +153259,7 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b maximum_draw: type: integer maximum: 2147483647 @@ -138943,19 +153286,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -138977,7 +153320,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -139013,14 +153356,14 @@ components: nullable: true maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -139042,7 +153385,7 @@ components: x-spec-enum-id: 0c556d55dc1baa13 role: allOf: - - $ref: '#/components/schemas/RackRoleRequest' + - $ref: '#/components/schemas/BriefRackRoleRequest' nullable: true serial: type: string @@ -139053,7 +153396,11 @@ components: nullable: true description: A unique tag used to identify this rack maxLength: 50 - type: + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: enum: - 2-post-frame - 4-post-frame @@ -139172,6 +153519,16 @@ components: nullable: true description: Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 @@ -139187,15 +153544,165 @@ components: required: - name - site + WritableRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - form_factor + - manufacturer + - model + - slug WritableRearPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -139253,6 +153760,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139347,8 +153862,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139384,11 +153915,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -139448,6 +153979,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139542,8 +154081,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139594,11 +154149,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -139750,15 +154305,15 @@ components: x-spec-enum-id: e363a8ddb138be50 region: allOf: - - $ref: '#/components/schemas/RegionRequest' + - $ref: '#/components/schemas/BriefRegionRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/SiteGroupRequest' + - $ref: '#/components/schemas/BriefSiteGroupRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -139767,6 +154322,7 @@ components: time_zone: type: string nullable: true + minLength: 1 description: type: string maxLength: 200 @@ -139863,7 +154419,7 @@ components: x-spec-enum-id: 0d65f7912cba74aa group: allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' + - $ref: '#/components/schemas/BriefTunnelGroupRequest' nullable: true encapsulation: enum: @@ -139882,11 +154438,11 @@ components: x-spec-enum-id: 5fc36bb745852746 ipsec_profile: allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' + - $ref: '#/components/schemas/BriefIPSecProfileRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tunnel_id: type: integer @@ -139914,7 +154470,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -139937,7 +154493,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -139956,11 +154512,11 @@ components: properties: site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/VLANGroupRequest' + - $ref: '#/components/schemas/BriefVLANGroupRequest' nullable: true vid: type: integer @@ -139974,7 +154530,7 @@ components: maxLength: 64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -139993,7 +154549,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -140015,7 +154571,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -140060,7 +154616,7 @@ components: * `tagged-all` - Tagged (All)' untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -140068,7 +154624,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -140117,7 +154673,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -140125,15 +154681,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -140194,35 +154750,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -140242,7 +154802,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -140250,7 +154810,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -140308,7 +154868,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -140327,11 +154887,11 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140384,9 +154944,9 @@ components: description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' interface_b: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' ssid: type: string maxLength: 32 @@ -140404,7 +154964,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140441,6 +155001,30 @@ components: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 diff --git a/api_circuits.go b/api_circuits.go index 7e493535b..9e5981154 100644 --- a/api_circuits.go +++ b/api_circuits.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,3981 @@ import ( // CircuitsAPIService CircuitsAPI service type CircuitsAPIService service +type ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy + +Delete a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +Patch a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate + +Put a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsCreateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsCreateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate + +Post a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + return ApiCircuitsCircuitGroupAssignmentsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy + +Delete a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsListRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuit *[]string + circuitN *[]string + circuitId *[]int32 + circuitIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + priorityN *CircuitsCircuitGroupAssignmentsListPriorityParameter + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string +} + +// Circuit (CID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Circuit(circuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuit = &circuit + return r +} + +// Circuit (CID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitN(circuitN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitN = &circuitN + return r +} + +// Circuit (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitId = &circuitId + return r +} + +// Circuit (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitIdN(circuitIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitIdN = &circuitIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Group(group []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.group = &group + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupN(groupN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupN = &groupN + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupId(groupId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupId = &groupId + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupIdN = &groupIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Id(id []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.ordering = &ordering + return r +} + +// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.priority = &priority + return r +} + +// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) PriorityN(priorityN CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.priorityN = &priorityN + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Provider(provider []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerIdN = &providerIdN + return r +} + +// Search +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Q(q string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Execute() (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsListExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList + +Get a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest { + return ApiCircuitsCircuitGroupAssignmentsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedCircuitGroupAssignmentList +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupAssignmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.circuit != nil { + t := *r.circuit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", t, "multi") + } + } + if r.circuitN != nil { + t := *r.circuitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", t, "multi") + } + } + if r.circuitId != nil { + t := *r.circuitId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "multi") + } + } + if r.circuitIdN != nil { + t := *r.circuitIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", t, "multi") + } + } + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.group != nil { + t := *r.group + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + } + } + if r.groupN != nil { + t := *r.groupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + } + } + if r.groupId != nil { + t := *r.groupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + } + } + if r.groupIdN != nil { + t := *r.groupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "") + } + if r.priorityN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", r.priorityN, "") + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + } + } + if r.providerN != nil { + t := *r.providerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + } + } + if r.providerId != nil { + t := *r.providerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + patchedWritableCircuitGroupAssignmentRequest *PatchedWritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + r.patchedWritableCircuitGroupAssignmentRequest = &patchedWritableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate + +Patch a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsRetrieveRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve + +Get a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest { + return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate + +Put a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkDestroyRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy + +Delete a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest { + return ApiCircuitsCircuitGroupsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate + +Patch a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate + +Put a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest { + return ApiCircuitsCircuitGroupsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsCreateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsCreateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsCreateExecute(r) +} + +/* +CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate + +Post a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest { + return ApiCircuitsCircuitGroupsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy + +Delete a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest { + return ApiCircuitsCircuitGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsListRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiCircuitsCircuitGroupsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Description(description []string) ApiCircuitsCircuitGroupsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Id(id []int32) ApiCircuitsCircuitGroupsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Name(name []string) ApiCircuitsCircuitGroupsListRequest { + r.name = &name + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIc(nameIc []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIe(nameIe []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIew(nameIew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameN(nameN []string) ApiCircuitsCircuitGroupsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNic(nameNic []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNie(nameNie []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCircuitsCircuitGroupsListRequest) Q(q string) ApiCircuitsCircuitGroupsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Slug(slug []string) ApiCircuitsCircuitGroupsListRequest { + r.slug = &slug + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugN(slugN []string) ApiCircuitsCircuitGroupsListRequest { + r.slugN = &slugN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupsListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) Tenant(tenant []string) ApiCircuitsCircuitGroupsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Execute() (*PaginatedCircuitGroupList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsListExecute(r) +} + +/* +CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList + +Get a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest { + return ApiCircuitsCircuitGroupsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedCircuitGroupList +func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.tenant != nil { + t := *r.tenant + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + } + } + if r.tenantN != nil { + t := *r.tenantN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + } + } + if r.tenantGroup != nil { + t := *r.tenantGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + } + } + if r.tenantGroupN != nil { + t := *r.tenantGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + } + } + if r.tenantGroupId != nil { + t := *r.tenantGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + } + } + if r.tenantGroupIdN != nil { + t := *r.tenantGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + } + } + if r.tenantId != nil { + t := *r.tenantId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + } + } + if r.tenantIdN != nil { + t := *r.tenantIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + patchedCircuitGroupRequest *PatchedCircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) PatchedCircuitGroupRequest(patchedCircuitGroupRequest PatchedCircuitGroupRequest) ApiCircuitsCircuitGroupsPartialUpdateRequest { + r.patchedCircuitGroupRequest = &patchedCircuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate + +Patch a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest { + return ApiCircuitsCircuitGroupsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedCircuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsRetrieveRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupsRetrieveRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve + +Get a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest { + return ApiCircuitsCircuitGroupsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate + +Put a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest { + return ApiCircuitsCircuitGroupsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { ctx context.Context ApiService *CircuitsAPIService @@ -5615,8 +9590,8 @@ type ApiCircuitsCircuitsListRequest struct { commitRateN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -5674,16 +9649,16 @@ type ApiCircuitsCircuitsListRequest struct { providerNetworkId *[]int32 providerNetworkIdN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string @@ -5692,10 +9667,10 @@ type ApiCircuitsCircuitsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]*int32 @@ -5818,14 +9793,12 @@ func (r ApiCircuitsCircuitsListRequest) ContactN(contactN []int32) ApiCircuitsCi return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []string) ApiCircuitsCircuitsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsCircuitsListRequest { r.contactGroupN = &contactGroupN return r } @@ -6131,26 +10104,22 @@ func (r ApiCircuitsCircuitsListRequest) Q(q string) ApiCircuitsCircuitsListReque return r } -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) Region(region []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) Region(region []string) ApiCircuitsCircuitsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []string) ApiCircuitsCircuitsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []string) ApiCircuitsCircuitsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []string) ApiCircuitsCircuitsListRequest { r.regionIdN = ®ionIdN return r } @@ -6167,26 +10136,22 @@ func (r ApiCircuitsCircuitsListRequest) SiteN(siteN []string) ApiCircuitsCircuit return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []string) ApiCircuitsCircuitsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsCircuitsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsCircuitsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsCircuitsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -6235,26 +10200,22 @@ func (r ApiCircuitsCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsCir return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -12929,8 +16890,8 @@ type ApiCircuitsProvidersListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12982,16 +16943,16 @@ type ApiCircuitsProvidersListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -13046,14 +17007,12 @@ func (r ApiCircuitsProvidersListRequest) ContactN(contactN []int32) ApiCircuitsP return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []string) ApiCircuitsProvidersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsProvidersListRequest { r.contactGroupN = &contactGroupN return r } @@ -13319,26 +17278,22 @@ func (r ApiCircuitsProvidersListRequest) Q(q string) ApiCircuitsProvidersListReq return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) Region(region []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) Region(region []string) ApiCircuitsProvidersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) RegionN(regionN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionN(regionN []string) ApiCircuitsProvidersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionId(regionId []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionId(regionId []string) ApiCircuitsProvidersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []string) ApiCircuitsProvidersListRequest { r.regionIdN = ®ionIdN return r } @@ -13355,26 +17310,22 @@ func (r ApiCircuitsProvidersListRequest) SiteN(siteN []string) ApiCircuitsProvid return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []string) ApiCircuitsProvidersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsProvidersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsProvidersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsProvidersListRequest { r.siteGroupIdN = &siteGroupIdN return r } diff --git a/api_core.go b/api_core.go index 73022d419..ecae14a73 100644 --- a/api_core.go +++ b/api_core.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -4567,3 +4567,1155 @@ func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiCoreObjectChangesListRequest struct { + ctx context.Context + ApiService *CoreAPIService + action *CoreObjectChangesListActionParameter + actionN *CoreObjectChangesListActionParameter + changedObjectId *[]int32 + changedObjectIdEmpty *bool + changedObjectIdGt *[]int32 + changedObjectIdGte *[]int32 + changedObjectIdLt *[]int32 + changedObjectIdLte *[]int32 + changedObjectIdN *[]int32 + changedObjectType *string + changedObjectTypeN *string + changedObjectTypeId *[]int32 + changedObjectTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + objectRepr *[]string + objectReprEmpty *bool + objectReprIc *[]string + objectReprIe *[]string + objectReprIew *[]string + objectReprIsw *[]string + objectReprN *[]string + objectReprNic *[]string + objectReprNie *[]string + objectReprNiew *[]string + objectReprNisw *[]string + offset *int32 + ordering *string + q *string + relatedObjectId *[]int32 + relatedObjectIdEmpty *bool + relatedObjectIdGt *[]int32 + relatedObjectIdGte *[]int32 + relatedObjectIdLt *[]int32 + relatedObjectIdLte *[]int32 + relatedObjectIdN *[]int32 + relatedObjectType *int32 + relatedObjectTypeN *int32 + requestId *string + timeAfter *time.Time + timeBefore *time.Time + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + userName *[]string + userNameEmpty *bool + userNameIc *[]string + userNameIe *[]string + userNameIew *[]string + userNameIsw *[]string + userNameN *[]string + userNameNic *[]string + userNameNie *[]string + userNameNiew *[]string + userNameNisw *[]string +} + +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiCoreObjectChangesListRequest) Action(action CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { + r.action = &action + return r +} + +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiCoreObjectChangesListRequest) ActionN(actionN CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { + r.actionN = &actionN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectId = &changedObjectId + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.changedObjectIdEmpty = &changedObjectIdEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGt = &changedObjectIdGt + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGte = &changedObjectIdGte + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLt = &changedObjectIdLt + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLte = &changedObjectIdLte + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdN = &changedObjectIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiCoreObjectChangesListRequest { + r.changedObjectType = &changedObjectType + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiCoreObjectChangesListRequest { + r.changedObjectTypeN = &changedObjectTypeN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeId = &changedObjectTypeId + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeIdN = &changedObjectTypeIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) Id(id []int32) ApiCoreObjectChangesListRequest { + r.id = &id + return r +} + +func (r ApiCoreObjectChangesListRequest) IdEmpty(idEmpty bool) ApiCoreObjectChangesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) IdGt(idGt []int32) ApiCoreObjectChangesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCoreObjectChangesListRequest) IdGte(idGte []int32) ApiCoreObjectChangesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCoreObjectChangesListRequest) IdLt(idLt []int32) ApiCoreObjectChangesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCoreObjectChangesListRequest) IdLte(idLte []int32) ApiCoreObjectChangesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCoreObjectChangesListRequest) IdN(idN []int32) ApiCoreObjectChangesListRequest { + r.idN = &idN + return r +} + +// Number of results to return per page. +func (r ApiCoreObjectChangesListRequest) Limit(limit int32) ApiCoreObjectChangesListRequest { + r.limit = &limit + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiCoreObjectChangesListRequest { + r.objectRepr = &objectRepr + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiCoreObjectChangesListRequest { + r.objectReprEmpty = &objectReprEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiCoreObjectChangesListRequest { + r.objectReprIc = &objectReprIc + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiCoreObjectChangesListRequest { + r.objectReprIe = &objectReprIe + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiCoreObjectChangesListRequest { + r.objectReprIew = &objectReprIew + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiCoreObjectChangesListRequest { + r.objectReprIsw = &objectReprIsw + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiCoreObjectChangesListRequest { + r.objectReprN = &objectReprN + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiCoreObjectChangesListRequest { + r.objectReprNic = &objectReprNic + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiCoreObjectChangesListRequest { + r.objectReprNie = &objectReprNie + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiCoreObjectChangesListRequest { + r.objectReprNiew = &objectReprNiew + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiCoreObjectChangesListRequest { + r.objectReprNisw = &objectReprNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCoreObjectChangesListRequest) Offset(offset int32) ApiCoreObjectChangesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCoreObjectChangesListRequest) Ordering(ordering string) ApiCoreObjectChangesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCoreObjectChangesListRequest) Q(q string) ApiCoreObjectChangesListRequest { + r.q = &q + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectId = &relatedObjectId + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.relatedObjectIdEmpty = &relatedObjectIdEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGt = &relatedObjectIdGt + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGte = &relatedObjectIdGte + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLt = &relatedObjectIdLt + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLte = &relatedObjectIdLte + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdN = &relatedObjectIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiCoreObjectChangesListRequest { + r.relatedObjectType = &relatedObjectType + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiCoreObjectChangesListRequest { + r.relatedObjectTypeN = &relatedObjectTypeN + return r +} + +func (r ApiCoreObjectChangesListRequest) RequestId(requestId string) ApiCoreObjectChangesListRequest { + r.requestId = &requestId + return r +} + +func (r ApiCoreObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiCoreObjectChangesListRequest { + r.timeAfter = &timeAfter + return r +} + +func (r ApiCoreObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiCoreObjectChangesListRequest { + r.timeBefore = &timeBefore + return r +} + +// User name +func (r ApiCoreObjectChangesListRequest) User(user []string) ApiCoreObjectChangesListRequest { + r.user = &user + return r +} + +// User name +func (r ApiCoreObjectChangesListRequest) UserN(userN []string) ApiCoreObjectChangesListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserId(userId []*int32) ApiCoreObjectChangesListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserIdN(userIdN []*int32) ApiCoreObjectChangesListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) UserName(userName []string) ApiCoreObjectChangesListRequest { + r.userName = &userName + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiCoreObjectChangesListRequest { + r.userNameEmpty = &userNameEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIc(userNameIc []string) ApiCoreObjectChangesListRequest { + r.userNameIc = &userNameIc + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIe(userNameIe []string) ApiCoreObjectChangesListRequest { + r.userNameIe = &userNameIe + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIew(userNameIew []string) ApiCoreObjectChangesListRequest { + r.userNameIew = &userNameIew + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiCoreObjectChangesListRequest { + r.userNameIsw = &userNameIsw + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameN(userNameN []string) ApiCoreObjectChangesListRequest { + r.userNameN = &userNameN + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNic(userNameNic []string) ApiCoreObjectChangesListRequest { + r.userNameNic = &userNameNic + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNie(userNameNie []string) ApiCoreObjectChangesListRequest { + r.userNameNie = &userNameNie + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiCoreObjectChangesListRequest { + r.userNameNiew = &userNameNiew + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiCoreObjectChangesListRequest { + r.userNameNisw = &userNameNisw + return r +} + +func (r ApiCoreObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { + return r.ApiService.CoreObjectChangesListExecute(r) +} + +/* +CoreObjectChangesList Method for CoreObjectChangesList + +Retrieve a list of recent changes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreObjectChangesListRequest +*/ +func (a *CoreAPIService) CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest { + return ApiCoreObjectChangesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedObjectChangeList +func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/object-changes/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + } + if r.actionN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") + } + if r.changedObjectId != nil { + t := *r.changedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") + } + } + if r.changedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + } + if r.changedObjectIdGt != nil { + t := *r.changedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") + } + } + if r.changedObjectIdGte != nil { + t := *r.changedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") + } + } + if r.changedObjectIdLt != nil { + t := *r.changedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") + } + } + if r.changedObjectIdLte != nil { + t := *r.changedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") + } + } + if r.changedObjectIdN != nil { + t := *r.changedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") + } + } + if r.changedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") + } + if r.changedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") + } + if r.changedObjectTypeId != nil { + t := *r.changedObjectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") + } + } + if r.changedObjectTypeIdN != nil { + t := *r.changedObjectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.objectRepr != nil { + t := *r.objectRepr + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") + } + } + if r.objectReprEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") + } + if r.objectReprIc != nil { + t := *r.objectReprIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") + } + } + if r.objectReprIe != nil { + t := *r.objectReprIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") + } + } + if r.objectReprIew != nil { + t := *r.objectReprIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") + } + } + if r.objectReprIsw != nil { + t := *r.objectReprIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") + } + } + if r.objectReprN != nil { + t := *r.objectReprN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") + } + } + if r.objectReprNic != nil { + t := *r.objectReprNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") + } + } + if r.objectReprNie != nil { + t := *r.objectReprNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") + } + } + if r.objectReprNiew != nil { + t := *r.objectReprNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") + } + } + if r.objectReprNisw != nil { + t := *r.objectReprNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.relatedObjectId != nil { + t := *r.relatedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") + } + } + if r.relatedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") + } + if r.relatedObjectIdGt != nil { + t := *r.relatedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") + } + } + if r.relatedObjectIdGte != nil { + t := *r.relatedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") + } + } + if r.relatedObjectIdLt != nil { + t := *r.relatedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") + } + } + if r.relatedObjectIdLte != nil { + t := *r.relatedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") + } + } + if r.relatedObjectIdN != nil { + t := *r.relatedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") + } + } + if r.relatedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") + } + if r.relatedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") + } + if r.timeAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") + } + if r.timeBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.userName != nil { + t := *r.userName + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") + } + } + if r.userNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") + } + if r.userNameIc != nil { + t := *r.userNameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") + } + } + if r.userNameIe != nil { + t := *r.userNameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") + } + } + if r.userNameIew != nil { + t := *r.userNameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") + } + } + if r.userNameIsw != nil { + t := *r.userNameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") + } + } + if r.userNameN != nil { + t := *r.userNameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") + } + } + if r.userNameNic != nil { + t := *r.userNameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") + } + } + if r.userNameNie != nil { + t := *r.userNameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") + } + } + if r.userNameNiew != nil { + t := *r.userNameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") + } + } + if r.userNameNisw != nil { + t := *r.userNameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCoreObjectChangesRetrieveRequest struct { + ctx context.Context + ApiService *CoreAPIService + id int32 +} + +func (r ApiCoreObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { + return r.ApiService.CoreObjectChangesRetrieveExecute(r) +} + +/* +CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve + +Retrieve a list of recent changes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this object change. + @return ApiCoreObjectChangesRetrieveRequest +*/ +func (a *CoreAPIService) CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest { + return ApiCoreObjectChangesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return ObjectChange +func (a *CoreAPIService) CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectChange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/object-changes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_dcim.go b/api_dcim.go index 0427ae7cc..a8d0c8b4b 100644 --- a/api_dcim.go +++ b/api_dcim.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2355,10 +2355,10 @@ type ApiDcimCablesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]int32 @@ -2796,26 +2796,22 @@ func (r ApiDcimCablesListRequest) TenantN(tenantN []string) ApiDcimCablesListReq return r } -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []string) ApiDcimCablesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimCablesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimCablesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimCablesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5066,8 +5062,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -5097,8 +5091,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -5225,18 +5217,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePortTemplatesListRequest { r.id = &id return r @@ -5385,18 +5365,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) Name(name []string) ApiDcimConsolePortTemplatesListRequest { r.name = &name return r @@ -5743,28 +5711,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6052,28 +5998,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -7272,6 +7196,12 @@ type ApiDcimConsolePortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -7329,20 +7259,16 @@ type ApiDcimConsolePortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter @@ -7511,6 +7437,40 @@ func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimCons return r } +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsolePortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsolePortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsolePortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsolePortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest { r.deviceType = &deviceType @@ -7814,54 +7774,26 @@ func (r ApiDcimConsolePortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsoleP return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) Region(region []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) Region(region []string) ApiDcimConsolePortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) RegionN(regionN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionN(regionN []string) ApiDcimConsolePortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionId(regionId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionId(regionId []string) ApiDcimConsolePortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsolePortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) Role(role []string) ApiDcimConsolePortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) RoleN(roleN []string) ApiDcimConsolePortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleId(roleId []int32) ApiDcimConsolePortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsolePortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { r.site = &site @@ -7874,26 +7806,22 @@ func (r ApiDcimConsolePortsListRequest) SiteN(siteN []string) ApiDcimConsolePort return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsolePortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsolePortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsolePortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsolePortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -8285,6 +8213,72 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -8876,50 +8870,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -10282,8 +10232,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -10313,8 +10261,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -10441,18 +10387,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeId return r } -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.id = &id return r @@ -10601,18 +10535,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeId return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) Name(name []string) ApiDcimConsoleServerPortTemplatesListRequest { r.name = &name return r @@ -10959,28 +10881,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11268,28 +11168,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -12488,6 +12366,12 @@ type ApiDcimConsoleServerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -12545,20 +12429,16 @@ type ApiDcimConsoleServerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter @@ -12727,6 +12607,40 @@ func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDc return r } +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest { r.deviceType = &deviceType @@ -13030,54 +12944,26 @@ func (r ApiDcimConsoleServerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimCo return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) Region(region []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Region(region []string) ApiDcimConsoleServerPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []string) ApiDcimConsoleServerPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []string) ApiDcimConsoleServerPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsoleServerPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) Role(role []string) ApiDcimConsoleServerPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) RoleN(roleN []string) ApiDcimConsoleServerPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleId(roleId []int32) ApiDcimConsoleServerPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { r.site = &site @@ -13090,26 +12976,22 @@ func (r ApiDcimConsoleServerPortsListRequest) SiteN(siteN []string) ApiDcimConso return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsoleServerPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -13501,6 +13383,72 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14092,50 +14040,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -15498,8 +15402,6 @@ type ApiDcimDeviceBayTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -15651,18 +15553,6 @@ func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int3 return r } -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTemplatesListRequest { r.id = &id return r @@ -16133,28 +16023,6 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -17606,6 +17474,12 @@ type ApiDcimDeviceBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -17663,20 +17537,16 @@ type ApiDcimDeviceBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -17807,6 +17677,40 @@ func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDevice return r } +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRole(deviceRole []string) ApiDcimDeviceBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimDeviceBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimDeviceBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimDeviceBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest { r.deviceType = &deviceType @@ -18112,54 +18016,26 @@ func (r ApiDcimDeviceBaysListRequest) RackIdN(rackIdN []int32) ApiDcimDeviceBays return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) Region(region []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) Region(region []string) ApiDcimDeviceBaysListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []string) ApiDcimDeviceBaysListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []string) ApiDcimDeviceBaysListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []string) ApiDcimDeviceBaysListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) Role(role []string) ApiDcimDeviceBaysListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) RoleN(roleN []string) ApiDcimDeviceBaysListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleId(roleId []int32) ApiDcimDeviceBaysListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimDeviceBaysListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { r.site = &site @@ -18172,26 +18048,22 @@ func (r ApiDcimDeviceBaysListRequest) SiteN(siteN []string) ApiDcimDeviceBaysLis return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []string) ApiDcimDeviceBaysListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimDeviceBaysListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimDeviceBaysListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDeviceBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -18525,6 +18397,72 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -19132,50 +19070,6 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -26587,6 +26481,10 @@ type ApiDcimDevicesListRequest struct { assetTagNie *[]string assetTagNiew *[]string assetTagNisw *[]string + clusterGroup *[]string + clusterGroupN *[]string + clusterGroupId *[]int32 + clusterGroupIdN *[]int32 clusterId *[]*int32 clusterIdN *[]*int32 configTemplateId *[]*int32 @@ -26609,8 +26507,8 @@ type ApiDcimDevicesListRequest struct { consoleServerPorts *bool contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -26695,8 +26593,8 @@ type ApiDcimDevicesListRequest struct { latitudeN *[]float64 limit *int32 localContextData *bool - locationId *[]int32 - locationIdN *[]int32 + locationId *[]string + locationIdN *[]string longitude *[]float64 longitudeEmpty *bool longitudeGt *[]float64 @@ -26790,10 +26688,10 @@ type ApiDcimDevicesListRequest struct { rearPortCountLt *[]int32 rearPortCountLte *[]int32 rearPortCountN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]int32 @@ -26811,10 +26709,10 @@ type ApiDcimDevicesListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string @@ -26823,10 +26721,10 @@ type ApiDcimDevicesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -26916,6 +26814,30 @@ func (r ApiDcimDevicesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimDe return r } +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroup(clusterGroup []string) ApiDcimDevicesListRequest { + r.clusterGroup = &clusterGroup + return r +} + +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroupN(clusterGroupN []string) ApiDcimDevicesListRequest { + r.clusterGroupN = &clusterGroupN + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupId(clusterGroupId []int32) ApiDcimDevicesListRequest { + r.clusterGroupId = &clusterGroupId + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiDcimDevicesListRequest { + r.clusterGroupIdN = &clusterGroupIdN + return r +} + // VM cluster (ID) func (r ApiDcimDevicesListRequest) ClusterId(clusterId []*int32) ApiDcimDevicesListRequest { r.clusterId = &clusterId @@ -27034,14 +26956,12 @@ func (r ApiDcimDevicesListRequest) ContactN(contactN []int32) ApiDcimDevicesList return r } -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []string) ApiDcimDevicesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []string) ApiDcimDevicesListRequest { r.contactGroupN = &contactGroupN return r } @@ -27482,14 +27402,12 @@ func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDc return r } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationId(locationId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) LocationId(locationId []string) ApiDcimDevicesListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []string) ApiDcimDevicesListRequest { r.locationIdN = &locationIdN return r } @@ -27988,26 +27906,22 @@ func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDci return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) Region(region []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) Region(region []string) ApiDcimDevicesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) RegionN(regionN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionN(regionN []string) ApiDcimDevicesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionId(regionId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionId(regionId []string) ApiDcimDevicesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []string) ApiDcimDevicesListRequest { r.regionIdN = ®ionIdN return r } @@ -28103,26 +28017,22 @@ func (r ApiDcimDevicesListRequest) SiteN(siteN []string) ApiDcimDevicesListReque return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []string) ApiDcimDevicesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []string) ApiDcimDevicesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []string) ApiDcimDevicesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDevicesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -28171,26 +28081,22 @@ func (r ApiDcimDevicesListRequest) TenantN(tenantN []string) ApiDcimDevicesListR return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []string) ApiDcimDevicesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimDevicesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimDevicesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimDevicesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28460,6 +28366,50 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") } } + if r.clusterGroup != nil { + t := *r.clusterGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") + } + } + if r.clusterGroupN != nil { + t := *r.clusterGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") + } + } + if r.clusterGroupId != nil { + t := *r.clusterGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") + } + } + if r.clusterGroupIdN != nil { + t := *r.clusterGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") + } + } if r.clusterId != nil { t := *r.clusterId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -32192,8 +32142,6 @@ type ApiDcimFrontPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -32223,8 +32171,6 @@ type ApiDcimFrontPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -32415,18 +32361,6 @@ func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTemplatesListRequest { r.id = &id return r @@ -32575,18 +32509,6 @@ func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimFrontPortTemplatesListRequest) Name(name []string) ApiDcimFrontPortTemplatesListRequest { r.name = &name return r @@ -33089,28 +33011,6 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33398,28 +33298,6 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -34735,6 +34613,12 @@ type ApiDcimFrontPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -34801,20 +34685,16 @@ type ApiDcimFrontPortsListRequest struct { rearPortPositionLt *[]int32 rearPortPositionLte *[]int32 rearPortPositionN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -35031,6 +34911,40 @@ func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontP return r } +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRole(deviceRole []string) ApiDcimFrontPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimFrontPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimFrontPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimFrontPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest { r.deviceType = &deviceType @@ -35379,54 +35293,26 @@ func (r ApiDcimFrontPortsListRequest) RearPortPositionN(rearPortPositionN []int3 return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) Region(region []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) Region(region []string) ApiDcimFrontPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) RegionN(regionN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionN(regionN []string) ApiDcimFrontPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionId(regionId []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionId(regionId []string) ApiDcimFrontPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []string) ApiDcimFrontPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) Role(role []string) ApiDcimFrontPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) RoleN(roleN []string) ApiDcimFrontPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleId(roleId []int32) ApiDcimFrontPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimFrontPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { r.site = &site @@ -35439,26 +35325,22 @@ func (r ApiDcimFrontPortsListRequest) SiteN(siteN []string) ApiDcimFrontPortsLis return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []string) ApiDcimFrontPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimFrontPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimFrontPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimFrontPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -35946,6 +35828,72 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36628,50 +36576,6 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -38030,8 +37934,6 @@ type ApiDcimInterfaceTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 enabled *bool id *[]int32 idEmpty *bool @@ -38063,8 +37965,6 @@ type ApiDcimInterfaceTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -38207,18 +38107,6 @@ func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimInterfaceTemplatesListRequest) Enabled(enabled bool) ApiDcimInterfaceTemplatesListRequest { r.enabled = &enabled return r @@ -38377,18 +38265,6 @@ func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimInterfaceTemplatesListRequest) Name(name []string) ApiDcimInterfaceTemplatesListRequest { r.name = &name return r @@ -38785,28 +38661,6 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } @@ -39100,28 +38954,6 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -40404,6 +40236,12 @@ type ApiDcimInterfacesListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -40497,10 +40335,10 @@ type ApiDcimInterfacesListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string rfChannel *[]string rfChannelN *[]string rfChannelFrequency *[]float64 @@ -40519,16 +40357,12 @@ type ApiDcimInterfacesListRequest struct { rfChannelWidthN *[]float64 rfRole *[]string rfRoleN *[]string - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *[]int32 @@ -40749,6 +40583,40 @@ func (r ApiDcimInterfacesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInterf return r } +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRole(deviceRole []string) ApiDcimInterfacesListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInterfacesListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInterfacesListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInterfacesListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatus(deviceStatus []string) ApiDcimInterfacesListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInterfacesListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest { r.deviceType = &deviceType @@ -41243,26 +41111,22 @@ func (r ApiDcimInterfacesListRequest) RackIdN(rackIdN []int32) ApiDcimInterfaces return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) Region(region []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) Region(region []string) ApiDcimInterfacesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) RegionN(regionN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionN(regionN []string) ApiDcimInterfacesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionId(regionId []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionId(regionId []string) ApiDcimInterfacesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []string) ApiDcimInterfacesListRequest { r.regionIdN = ®ionIdN return r } @@ -41357,30 +41221,6 @@ func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterface return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) Role(role []string) ApiDcimInterfacesListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimInterfacesListRequest) RoleN(roleN []string) ApiDcimInterfacesListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleId(roleId []int32) ApiDcimInterfacesListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleIdN(roleIdN []int32) ApiDcimInterfacesListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimInterfacesListRequest) Site(site []string) ApiDcimInterfacesListRequest { r.site = &site @@ -41393,26 +41233,22 @@ func (r ApiDcimInterfacesListRequest) SiteN(siteN []string) ApiDcimInterfacesLis return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []string) ApiDcimInterfacesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []string) ApiDcimInterfacesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []string) ApiDcimInterfacesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInterfacesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -42038,6 +41874,72 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -43159,50 +43061,6 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -47253,8 +47111,6 @@ type ApiDcimInventoryItemTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -47472,18 +47328,6 @@ func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN [] return r } -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventoryItemTemplatesListRequest { r.id = &id return r @@ -48152,28 +47996,6 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -49868,6 +49690,12 @@ type ApiDcimInventoryItemsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -49939,10 +49767,10 @@ type ApiDcimInventoryItemsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 @@ -49960,10 +49788,10 @@ type ApiDcimInventoryItemsListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -50194,6 +50022,40 @@ func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimIn return r } +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRole(deviceRole []string) ApiDcimInventoryItemsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInventoryItemsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatus(deviceStatus []string) ApiDcimInventoryItemsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInventoryItemsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimInventoryItemsListRequest) DeviceType(deviceType []string) ApiDcimInventoryItemsListRequest { r.deviceType = &deviceType @@ -50571,26 +50433,22 @@ func (r ApiDcimInventoryItemsListRequest) RackIdN(rackIdN []int32) ApiDcimInvent return r } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) Region(region []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) Region(region []string) ApiDcimInventoryItemsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []string) ApiDcimInventoryItemsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []string) ApiDcimInventoryItemsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []string) ApiDcimInventoryItemsListRequest { r.regionIdN = ®ionIdN return r } @@ -50686,26 +50544,22 @@ func (r ApiDcimInventoryItemsListRequest) SiteN(siteN []string) ApiDcimInventory return r } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []string) ApiDcimInventoryItemsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []string) ApiDcimInventoryItemsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []string) ApiDcimInventoryItemsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInventoryItemsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -51235,6 +51089,72 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -53332,14 +53252,14 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe type ApiDcimLocationsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -53406,16 +53326,16 @@ type ApiDcimLocationsListRequest struct { parentId *[]*int32 parentIdN *[]*int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -53435,35 +53355,31 @@ type ApiDcimLocationsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string } -// Location (slug) -func (r ApiDcimLocationsListRequest) Ancestor(ancestor []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) Ancestor(ancestor []string) ApiDcimLocationsListRequest { r.ancestor = &ancestor return r } -// Location (slug) -func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []string) ApiDcimLocationsListRequest { r.ancestorN = &ancestorN return r } -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []string) ApiDcimLocationsListRequest { r.ancestorId = &ancestorId return r } -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimLocationsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -53480,14 +53396,12 @@ func (r ApiDcimLocationsListRequest) ContactN(contactN []int32) ApiDcimLocations return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []string) ApiDcimLocationsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []string) ApiDcimLocationsListRequest { r.contactGroupN = &contactGroupN return r } @@ -53832,26 +53746,22 @@ func (r ApiDcimLocationsListRequest) Q(q string) ApiDcimLocationsListRequest { return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) Region(region []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) Region(region []string) ApiDcimLocationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) RegionN(regionN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionN(regionN []string) ApiDcimLocationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionId(regionId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionId(regionId []string) ApiDcimLocationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []string) ApiDcimLocationsListRequest { r.regionIdN = ®ionIdN return r } @@ -53868,26 +53778,22 @@ func (r ApiDcimLocationsListRequest) SiteN(siteN []string) ApiDcimLocationsListR return r } -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []string) ApiDcimLocationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimLocationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimLocationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimLocationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -53991,26 +53897,22 @@ func (r ApiDcimLocationsListRequest) TenantN(tenantN []string) ApiDcimLocationsL return r } -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []string) ApiDcimLocationsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimLocationsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimLocationsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimLocationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -56227,8 +56129,8 @@ type ApiDcimManufacturersListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -56308,14 +56210,12 @@ func (r ApiDcimManufacturersListRequest) ContactN(contactN []int32) ApiDcimManuf return r } -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []string) ApiDcimManufacturersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []string) ApiDcimManufacturersListRequest { r.contactGroupN = &contactGroupN return r } @@ -58420,10 +58320,8 @@ type ApiDcimModuleBayTemplatesListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 + deviceTypeId *[]*int32 + deviceTypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -58451,6 +58349,8 @@ type ApiDcimModuleBayTemplatesListRequest struct { lastUpdatedN *[]time.Time limit *int32 modifiedByRequest *string + moduleTypeId *[]*int32 + moduleTypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -58575,29 +58475,17 @@ func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw [] } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTemplatesListRequest { r.id = &id return r @@ -58734,6 +58622,18 @@ func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByReques return r } +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeId = &moduleTypeId + return r +} + +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { r.name = &name return r @@ -59123,28 +59023,6 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -59410,6 +59288,28 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } + if r.moduleTypeId != nil { + t := *r.moduleTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + } + } + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -60709,6 +60609,12 @@ type ApiDcimModuleBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -60746,6 +60652,8 @@ type ApiDcimModuleBaysListRequest struct { locationId *[]int32 locationIdN *[]int32 modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -60759,6 +60667,8 @@ type ApiDcimModuleBaysListRequest struct { nameNisw *[]string offset *int32 ordering *string + parentId *[]*int32 + parentIdN *[]*int32 position *[]string positionEmpty *bool positionIc *[]string @@ -60775,20 +60685,16 @@ type ApiDcimModuleBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -60919,6 +60825,40 @@ func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModule return r } +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRole(deviceRole []string) ApiDcimModuleBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimModuleBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimModuleBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimModuleBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest { r.deviceType = &deviceType @@ -61115,6 +61055,18 @@ func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string return r } +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleId(moduleId []*int32) ApiDcimModuleBaysListRequest { + r.moduleId = &moduleId + return r +} + +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimModuleBaysListRequest { + r.moduleIdN = &moduleIdN + return r +} + func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { r.name = &name return r @@ -61182,6 +61134,18 @@ func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBay return r } +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentId(parentId []*int32) ApiDcimModuleBaysListRequest { + r.parentId = &parentId + return r +} + +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentIdN(parentIdN []*int32) ApiDcimModuleBaysListRequest { + r.parentIdN = &parentIdN + return r +} + func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest { r.position = &position return r @@ -61267,54 +61231,26 @@ func (r ApiDcimModuleBaysListRequest) RackIdN(rackIdN []int32) ApiDcimModuleBays return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) Region(region []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) Region(region []string) ApiDcimModuleBaysListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) RegionN(regionN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionN(regionN []string) ApiDcimModuleBaysListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionId(regionId []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionId(regionId []string) ApiDcimModuleBaysListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []string) ApiDcimModuleBaysListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) Role(role []string) ApiDcimModuleBaysListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) RoleN(roleN []string) ApiDcimModuleBaysListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleId(roleId []int32) ApiDcimModuleBaysListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimModuleBaysListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { r.site = &site @@ -61327,26 +61263,22 @@ func (r ApiDcimModuleBaysListRequest) SiteN(siteN []string) ApiDcimModuleBaysLis return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []string) ApiDcimModuleBaysListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimModuleBaysListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimModuleBaysListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimModuleBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -61680,6 +61612,72 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62055,6 +62053,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } + if r.moduleId != nil { + t := *r.moduleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + } + } + if r.moduleIdN != nil { + t := *r.moduleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62174,6 +62194,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } + if r.parentId != nil { + t := *r.parentId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + } + } + if r.parentIdN != nil { + t := *r.parentIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + } + } if r.position != nil { t := *r.position if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62378,50 +62420,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -63617,6 +63615,8 @@ func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr type ApiDcimModuleTypesListRequest struct { ctx context.Context ApiService *DcimAPIService + airflow *DcimModuleTypesListAirflowParameter + airflowN *DcimModuleTypesListAirflowParameter consolePorts *bool consoleServerPorts *bool created *[]time.Time @@ -63701,6 +63701,18 @@ type ApiDcimModuleTypesListRequest struct { weightUnitN *DcimDeviceTypesListWeightUnitParameter } +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +func (r ApiDcimModuleTypesListRequest) Airflow(airflow DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { + r.airflow = &airflow + return r +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +func (r ApiDcimModuleTypesListRequest) AirflowN(airflowN DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { + r.airflowN = &airflowN + return r +} + // Has console ports func (r ApiDcimModuleTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimModuleTypesListRequest { r.consolePorts = &consolePorts @@ -64168,6 +64180,12 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + } + if r.airflowN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") + } if r.consolePorts != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") } @@ -66000,8 +66018,8 @@ type ApiDcimModulesListRequest struct { manufacturerId *[]int32 manufacturerIdN *[]int32 modifiedByRequest *string - moduleBayId *[]int32 - moduleBayIdN *[]int32 + moduleBayId *[]string + moduleBayIdN *[]string moduleType *[]string moduleTypeN *[]string moduleTypeId *[]int32 @@ -66294,14 +66312,12 @@ func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) A return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []int32) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []string) ApiDcimModulesListRequest { r.moduleBayId = &moduleBayId return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []int32) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []string) ApiDcimModulesListRequest { r.moduleBayIdN = &moduleBayIdN return r } @@ -70535,16 +70551,16 @@ type ApiDcimPowerFeedsListRequest struct { q *string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string @@ -70555,10 +70571,10 @@ type ApiDcimPowerFeedsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *DcimPowerFeedsListTypeParameter @@ -71007,26 +71023,22 @@ func (r ApiDcimPowerFeedsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerFeeds return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) Region(region []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) Region(region []string) ApiDcimPowerFeedsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []string) ApiDcimPowerFeedsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []string) ApiDcimPowerFeedsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerFeedsListRequest { r.regionIdN = ®ionIdN return r } @@ -71043,26 +71055,22 @@ func (r ApiDcimPowerFeedsListRequest) SiteN(siteN []string) ApiDcimPowerFeedsLis return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerFeedsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerFeedsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerFeedsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerFeedsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -71123,26 +71131,22 @@ func (r ApiDcimPowerFeedsListRequest) TenantN(tenantN []string) ApiDcimPowerFeed return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []string) ApiDcimPowerFeedsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimPowerFeedsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimPowerFeedsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimPowerFeedsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -73541,8 +73545,6 @@ type ApiDcimPowerOutletTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 feedLeg *[]string feedLegN *[]string id *[]int32 @@ -73574,8 +73576,6 @@ type ApiDcimPowerOutletTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -73704,18 +73704,6 @@ func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - // Phase (for three-phase feeds) func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletTemplatesListRequest { r.feedLeg = &feedLeg @@ -73876,18 +73864,6 @@ func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimPowerOutletTemplatesListRequest) Name(name []string) ApiDcimPowerOutletTemplatesListRequest { r.name = &name return r @@ -73973,13 +73949,13 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTe return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) TypeN(typeN DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.typeN = &typeN return r @@ -74246,28 +74222,6 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.feedLeg != nil { t := *r.feedLeg if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -74577,28 +74531,6 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -75819,6 +75751,12 @@ type ApiDcimPowerOutletsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -75880,20 +75818,16 @@ type ApiDcimPowerOutletsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -76060,6 +75994,40 @@ func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowe return r } +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerOutletsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerOutletsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerOutletsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerOutletsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest { r.deviceType = &deviceType @@ -76387,54 +76355,26 @@ func (r ApiDcimPowerOutletsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerOut return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) Region(region []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) Region(region []string) ApiDcimPowerOutletsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []string) ApiDcimPowerOutletsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []string) ApiDcimPowerOutletsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerOutletsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) Role(role []string) ApiDcimPowerOutletsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) RoleN(roleN []string) ApiDcimPowerOutletsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleId(roleId []int32) ApiDcimPowerOutletsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerOutletsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { r.site = &site @@ -76447,26 +76387,22 @@ func (r ApiDcimPowerOutletsListRequest) SiteN(siteN []string) ApiDcimPowerOutlet return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerOutletsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerOutletsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerOutletsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerOutletsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -76846,6 +76782,72 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -77481,50 +77483,6 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -78862,8 +78820,8 @@ type ApiDcimPowerPanelsListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -78900,8 +78858,8 @@ type ApiDcimPowerPanelsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - locationId *[]int32 - locationIdN *[]int32 + locationId *[]string + locationIdN *[]string modifiedByRequest *string name *[]string nameEmpty *bool @@ -78917,16 +78875,16 @@ type ApiDcimPowerPanelsListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -78946,14 +78904,12 @@ func (r ApiDcimPowerPanelsListRequest) ContactN(contactN []int32) ApiDcimPowerPa return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []string) ApiDcimPowerPanelsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []string) ApiDcimPowerPanelsListRequest { r.contactGroupN = &contactGroupN return r } @@ -79141,14 +79097,12 @@ func (r ApiDcimPowerPanelsListRequest) Limit(limit int32) ApiDcimPowerPanelsList return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []string) ApiDcimPowerPanelsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []string) ApiDcimPowerPanelsListRequest { r.locationIdN = &locationIdN return r } @@ -79231,26 +79185,22 @@ func (r ApiDcimPowerPanelsListRequest) Q(q string) ApiDcimPowerPanelsListRequest return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) Region(region []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) Region(region []string) ApiDcimPowerPanelsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []string) ApiDcimPowerPanelsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []string) ApiDcimPowerPanelsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPanelsListRequest { r.regionIdN = ®ionIdN return r } @@ -79267,26 +79217,22 @@ func (r ApiDcimPowerPanelsListRequest) SiteN(siteN []string) ApiDcimPowerPanelsL return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPanelsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPanelsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPanelsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPanelsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -81137,8 +81083,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -81175,8 +81119,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -81338,18 +81280,6 @@ func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTemplatesListRequest { r.id = &id return r @@ -81533,18 +81463,6 @@ func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) Name(name []string) ApiDcimPowerPortTemplatesListRequest { r.name = &name return r @@ -81618,13 +81536,13 @@ func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTempla return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) TypeN(typeN DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.typeN = &typeN return r @@ -81960,28 +81878,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -82338,28 +82234,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -83565,6 +83439,12 @@ type ApiDcimPowerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -83629,20 +83509,16 @@ type ApiDcimPowerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -83844,6 +83720,40 @@ func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerP return r } +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest { r.deviceType = &deviceType @@ -84182,54 +84092,26 @@ func (r ApiDcimPowerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerPorts return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) Region(region []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) Region(region []string) ApiDcimPowerPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) RegionN(regionN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionN(regionN []string) ApiDcimPowerPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionId(regionId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionId(regionId []string) ApiDcimPowerPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) Role(role []string) ApiDcimPowerPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) RoleN(roleN []string) ApiDcimPowerPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) RoleId(roleId []int32) ApiDcimPowerPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimPowerPortsListRequest) Site(site []string) ApiDcimPowerPortsListRequest { r.site = &site @@ -84242,26 +84124,22 @@ func (r ApiDcimPowerPortsListRequest) SiteN(siteN []string) ApiDcimPowerPortsLis return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -84710,6 +84588,72 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -85370,50 +85314,6 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -86783,36 +86683,36 @@ type ApiDcimRackReservationsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string modifiedByRequest *string offset *int32 ordering *string q *string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 unit *float32 @@ -86994,26 +86894,22 @@ func (r ApiDcimRackReservationsListRequest) Limit(limit int32) ApiDcimRackReserv return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) Location(location []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) Location(location []string) ApiDcimRackReservationsListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) LocationN(locationN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationN(locationN []string) ApiDcimRackReservationsListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationId(locationId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationId(locationId []string) ApiDcimRackReservationsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []string) ApiDcimRackReservationsListRequest { r.locationIdN = &locationIdN return r } @@ -87053,26 +86949,22 @@ func (r ApiDcimRackReservationsListRequest) RackIdN(rackIdN []int32) ApiDcimRack return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) Region(region []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) Region(region []string) ApiDcimRackReservationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) RegionN(regionN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionN(regionN []string) ApiDcimRackReservationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionId(regionId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionId(regionId []string) ApiDcimRackReservationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []string) ApiDcimRackReservationsListRequest { r.regionIdN = ®ionIdN return r } @@ -87089,26 +86981,22 @@ func (r ApiDcimRackReservationsListRequest) SiteN(siteN []string) ApiDcimRackRes return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []string) ApiDcimRackReservationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRackReservationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRackReservationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRackReservationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -87147,26 +87035,22 @@ func (r ApiDcimRackReservationsListRequest) TenantN(tenantN []string) ApiDcimRac return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []string) ApiDcimRackReservationsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRackReservationsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRackReservationsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRackReservationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -90285,33 +90169,3069 @@ func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedRackRoleRequest *PatchedRackRoleRequest +type ApiDcimRackRolesPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + patchedRackRoleRequest *PatchedRackRoleRequest +} + +func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { + r.patchedRackRoleRequest = &patchedRackRoleRequest + return r +} + +func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesPartialUpdateExecute(r) +} + +/* +DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate + +Patch a rack role object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesPartialUpdateRequest +*/ +func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { + return ApiDcimRackRolesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedRackRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackRolesRetrieveRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 +} + +func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesRetrieveExecute(r) +} + +/* +DcimRackRolesRetrieve Method for DcimRackRolesRetrieve + +Get a rack role object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesRetrieveRequest +*/ +func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { + return ApiDcimRackRolesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackRolesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + rackRoleRequest *RackRoleRequest +} + +func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { + r.rackRoleRequest = &rackRoleRequest + return r +} + +func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesUpdateExecute(r) +} + +/* +DcimRackRolesUpdate Method for DcimRackRolesUpdate + +Put a rack role object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesUpdateRequest +*/ +func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { + return ApiDcimRackRolesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkDestroyRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkDestroyRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkDestroyRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesBulkDestroyExecute(r) +} + +/* +DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy + +Delete a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkDestroyRequest +*/ +func (a *DcimAPIService) DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest { + return ApiDcimRackTypesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return nil, reportError("rackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkPartialUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkPartialUpdateRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkPartialUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkPartialUpdateExecute(r) +} + +/* +DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate + +Patch a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkPartialUpdateRequest +*/ +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest { + return ApiDcimRackTypesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkUpdateRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkUpdateExecute(r) +} + +/* +DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate + +Put a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkUpdateRequest +*/ +func (a *DcimAPIService) DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest { + return ApiDcimRackTypesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesCreateRequest struct { + ctx context.Context + ApiService *DcimAPIService + writableRackTypeRequest *WritableRackTypeRequest +} + +func (r ApiDcimRackTypesCreateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesCreateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest + return r +} + +func (r ApiDcimRackTypesCreateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesCreateExecute(r) +} + +/* +DcimRackTypesCreate Method for DcimRackTypesCreate + +Post a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesCreateRequest +*/ +func (a *DcimAPIService) DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest { + return ApiDcimRackTypesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return RackType +func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableRackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesDestroyRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 +} + +func (r ApiDcimRackTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesDestroyExecute(r) +} + +/* +DcimRackTypesDestroy Method for DcimRackTypesDestroy + +Delete a rack type object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesDestroyRequest +*/ +func (a *DcimAPIService) DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest { + return ApiDcimRackTypesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDcimRackTypesListRequest struct { + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + descUnits *bool + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + formFactor *[]string + formFactorN *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + maxWeight *[]int32 + maxWeightEmpty *bool + maxWeightGt *[]int32 + maxWeightGte *[]int32 + maxWeightLt *[]int32 + maxWeightLte *[]int32 + maxWeightN *[]int32 + model *[]string + modelEmpty *bool + modelIc *[]string + modelIe *[]string + modelIew *[]string + modelIsw *[]string + modelN *[]string + modelNic *[]string + modelNie *[]string + modelNiew *[]string + modelNisw *[]string + modifiedByRequest *string + mountingDepth *[]int32 + mountingDepthEmpty *bool + mountingDepthGt *[]int32 + mountingDepthGte *[]int32 + mountingDepthLt *[]int32 + mountingDepthLte *[]int32 + mountingDepthN *[]int32 + offset *int32 + ordering *string + outerDepth *[]int32 + outerDepthEmpty *bool + outerDepthGt *[]int32 + outerDepthGte *[]int32 + outerDepthLt *[]int32 + outerDepthLte *[]int32 + outerDepthN *[]int32 + outerUnit *DcimRackTypesListOuterUnitParameter + outerUnitN *DcimRackTypesListOuterUnitParameter + outerWidth *[]int32 + outerWidthEmpty *bool + outerWidthGt *[]int32 + outerWidthGte *[]int32 + outerWidthLt *[]int32 + outerWidthLte *[]int32 + outerWidthN *[]int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + startingUnit *[]int32 + startingUnitEmpty *bool + startingUnitGt *[]int32 + startingUnitGte *[]int32 + startingUnitLt *[]int32 + startingUnitLte *[]int32 + startingUnitN *[]int32 + tag *[]string + tagN *[]string + uHeight *[]int32 + uHeightEmpty *bool + uHeightGt *[]int32 + uHeightGte *[]int32 + uHeightLt *[]int32 + uHeightLte *[]int32 + uHeightN *[]int32 + updatedByRequest *string + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *DcimDeviceTypesListWeightUnitParameter + weightUnitN *DcimDeviceTypesListWeightUnitParameter + width *[]int32 + widthN *[]int32 +} + +func (r ApiDcimRackTypesListRequest) Created(created []time.Time) ApiDcimRackTypesListRequest { + r.created = &created + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackTypesListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackTypesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackTypesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackTypesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedN(createdN []time.Time) ApiDcimRackTypesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackTypesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) DescUnits(descUnits bool) ApiDcimRackTypesListRequest { + r.descUnits = &descUnits + return r +} + +func (r ApiDcimRackTypesListRequest) Description(description []string) ApiDcimRackTypesListRequest { + r.description = &description + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackTypesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackTypesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackTypesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackTypesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackTypesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionN(descriptionN []string) ApiDcimRackTypesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackTypesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackTypesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackTypesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackTypesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimRackTypesListRequest) FormFactor(formFactor []string) ApiDcimRackTypesListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRackTypesListRequest) FormFactorN(formFactorN []string) ApiDcimRackTypesListRequest { + r.formFactorN = &formFactorN + return r +} + +func (r ApiDcimRackTypesListRequest) Id(id []int32) ApiDcimRackTypesListRequest { + r.id = &id + return r +} + +func (r ApiDcimRackTypesListRequest) IdEmpty(idEmpty bool) ApiDcimRackTypesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) IdGt(idGt []int32) ApiDcimRackTypesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiDcimRackTypesListRequest) IdGte(idGte []int32) ApiDcimRackTypesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimRackTypesListRequest) IdLt(idLt []int32) ApiDcimRackTypesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimRackTypesListRequest) IdLte(idLte []int32) ApiDcimRackTypesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimRackTypesListRequest) IdN(idN []int32) ApiDcimRackTypesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimRackTypesListRequest) Limit(limit int32) ApiDcimRackTypesListRequest { + r.limit = &limit + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) Manufacturer(manufacturer []string) ApiDcimRackTypesListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimRackTypesListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRackTypesListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRackTypesListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeight(maxWeight []int32) ApiDcimRackTypesListRequest { + r.maxWeight = &maxWeight + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightEmpty(maxWeightEmpty bool) ApiDcimRackTypesListRequest { + r.maxWeightEmpty = &maxWeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGt(maxWeightGt []int32) ApiDcimRackTypesListRequest { + r.maxWeightGt = &maxWeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGte(maxWeightGte []int32) ApiDcimRackTypesListRequest { + r.maxWeightGte = &maxWeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLt(maxWeightLt []int32) ApiDcimRackTypesListRequest { + r.maxWeightLt = &maxWeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLte(maxWeightLte []int32) ApiDcimRackTypesListRequest { + r.maxWeightLte = &maxWeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightN(maxWeightN []int32) ApiDcimRackTypesListRequest { + r.maxWeightN = &maxWeightN + return r +} + +func (r ApiDcimRackTypesListRequest) Model(model []string) ApiDcimRackTypesListRequest { + r.model = &model + return r +} + +func (r ApiDcimRackTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimRackTypesListRequest { + r.modelEmpty = &modelEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIc(modelIc []string) ApiDcimRackTypesListRequest { + r.modelIc = &modelIc + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIe(modelIe []string) ApiDcimRackTypesListRequest { + r.modelIe = &modelIe + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIew(modelIew []string) ApiDcimRackTypesListRequest { + r.modelIew = &modelIew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIsw(modelIsw []string) ApiDcimRackTypesListRequest { + r.modelIsw = &modelIsw + return r +} + +func (r ApiDcimRackTypesListRequest) ModelN(modelN []string) ApiDcimRackTypesListRequest { + r.modelN = &modelN + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNic(modelNic []string) ApiDcimRackTypesListRequest { + r.modelNic = &modelNic + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNie(modelNie []string) ApiDcimRackTypesListRequest { + r.modelNie = &modelNie + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNiew(modelNiew []string) ApiDcimRackTypesListRequest { + r.modelNiew = &modelNiew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNisw(modelNisw []string) ApiDcimRackTypesListRequest { + r.modelNisw = &modelNisw + return r +} + +func (r ApiDcimRackTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepth(mountingDepth []int32) ApiDcimRackTypesListRequest { + r.mountingDepth = &mountingDepth + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthEmpty(mountingDepthEmpty bool) ApiDcimRackTypesListRequest { + r.mountingDepthEmpty = &mountingDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGt(mountingDepthGt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGt = &mountingDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGte(mountingDepthGte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGte = &mountingDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLt(mountingDepthLt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLt = &mountingDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLte(mountingDepthLte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLte = &mountingDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthN(mountingDepthN []int32) ApiDcimRackTypesListRequest { + r.mountingDepthN = &mountingDepthN + return r +} + +// The initial index from which to return the results. +func (r ApiDcimRackTypesListRequest) Offset(offset int32) ApiDcimRackTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimRackTypesListRequest) Ordering(ordering string) ApiDcimRackTypesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepth(outerDepth []int32) ApiDcimRackTypesListRequest { + r.outerDepth = &outerDepth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthEmpty(outerDepthEmpty bool) ApiDcimRackTypesListRequest { + r.outerDepthEmpty = &outerDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGt(outerDepthGt []int32) ApiDcimRackTypesListRequest { + r.outerDepthGt = &outerDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGte(outerDepthGte []int32) ApiDcimRackTypesListRequest { + r.outerDepthGte = &outerDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLt(outerDepthLt []int32) ApiDcimRackTypesListRequest { + r.outerDepthLt = &outerDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLte(outerDepthLte []int32) ApiDcimRackTypesListRequest { + r.outerDepthLte = &outerDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRackTypesListRequest { + r.outerDepthN = &outerDepthN + return r +} + +// * `mm` - Millimeters * `in` - Inches +func (r ApiDcimRackTypesListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { + r.outerUnit = &outerUnit + return r +} + +// * `mm` - Millimeters * `in` - Inches +func (r ApiDcimRackTypesListRequest) OuterUnitN(outerUnitN DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { + r.outerUnitN = &outerUnitN + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidth(outerWidth []int32) ApiDcimRackTypesListRequest { + r.outerWidth = &outerWidth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthEmpty(outerWidthEmpty bool) ApiDcimRackTypesListRequest { + r.outerWidthEmpty = &outerWidthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGt(outerWidthGt []int32) ApiDcimRackTypesListRequest { + r.outerWidthGt = &outerWidthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGte(outerWidthGte []int32) ApiDcimRackTypesListRequest { + r.outerWidthGte = &outerWidthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLt(outerWidthLt []int32) ApiDcimRackTypesListRequest { + r.outerWidthLt = &outerWidthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLte(outerWidthLte []int32) ApiDcimRackTypesListRequest { + r.outerWidthLte = &outerWidthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthN(outerWidthN []int32) ApiDcimRackTypesListRequest { + r.outerWidthN = &outerWidthN + return r +} + +// Search +func (r ApiDcimRackTypesListRequest) Q(q string) ApiDcimRackTypesListRequest { + r.q = &q + return r +} + +func (r ApiDcimRackTypesListRequest) Slug(slug []string) ApiDcimRackTypesListRequest { + r.slug = &slug + return r +} + +func (r ApiDcimRackTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackTypesListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIc(slugIc []string) ApiDcimRackTypesListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIe(slugIe []string) ApiDcimRackTypesListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIew(slugIew []string) ApiDcimRackTypesListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIsw(slugIsw []string) ApiDcimRackTypesListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiDcimRackTypesListRequest) SlugN(slugN []string) ApiDcimRackTypesListRequest { + r.slugN = &slugN + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNic(slugNic []string) ApiDcimRackTypesListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNie(slugNie []string) ApiDcimRackTypesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNiew(slugNiew []string) ApiDcimRackTypesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNisw(slugNisw []string) ApiDcimRackTypesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnit(startingUnit []int32) ApiDcimRackTypesListRequest { + r.startingUnit = &startingUnit + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitEmpty(startingUnitEmpty bool) ApiDcimRackTypesListRequest { + r.startingUnitEmpty = &startingUnitEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGt(startingUnitGt []int32) ApiDcimRackTypesListRequest { + r.startingUnitGt = &startingUnitGt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGte(startingUnitGte []int32) ApiDcimRackTypesListRequest { + r.startingUnitGte = &startingUnitGte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLt(startingUnitLt []int32) ApiDcimRackTypesListRequest { + r.startingUnitLt = &startingUnitLt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLte(startingUnitLte []int32) ApiDcimRackTypesListRequest { + r.startingUnitLte = &startingUnitLte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitN(startingUnitN []int32) ApiDcimRackTypesListRequest { + r.startingUnitN = &startingUnitN + return r +} + +func (r ApiDcimRackTypesListRequest) Tag(tag []string) ApiDcimRackTypesListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimRackTypesListRequest) TagN(tagN []string) ApiDcimRackTypesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimRackTypesListRequest) UHeight(uHeight []int32) ApiDcimRackTypesListRequest { + r.uHeight = &uHeight + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimRackTypesListRequest { + r.uHeightEmpty = &uHeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightGt(uHeightGt []int32) ApiDcimRackTypesListRequest { + r.uHeightGt = &uHeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightGte(uHeightGte []int32) ApiDcimRackTypesListRequest { + r.uHeightGte = &uHeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightLt(uHeightLt []int32) ApiDcimRackTypesListRequest { + r.uHeightLt = &uHeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightLte(uHeightLte []int32) ApiDcimRackTypesListRequest { + r.uHeightLte = &uHeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightN(uHeightN []int32) ApiDcimRackTypesListRequest { + r.uHeightN = &uHeightN + return r +} + +func (r ApiDcimRackTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackTypesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) Weight(weight []float64) ApiDcimRackTypesListRequest { + r.weight = &weight + return r +} + +func (r ApiDcimRackTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimRackTypesListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) WeightGt(weightGt []float64) ApiDcimRackTypesListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiDcimRackTypesListRequest) WeightGte(weightGte []float64) ApiDcimRackTypesListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiDcimRackTypesListRequest) WeightLt(weightLt []float64) ApiDcimRackTypesListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiDcimRackTypesListRequest) WeightLte(weightLte []float64) ApiDcimRackTypesListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiDcimRackTypesListRequest) WeightN(weightN []float64) ApiDcimRackTypesListRequest { + r.weightN = &weightN + return r +} + +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimRackTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { + r.weightUnit = &weightUnit + return r +} + +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimRackTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { + r.weightUnitN = &weightUnitN + return r +} + +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) Width(width []int32) ApiDcimRackTypesListRequest { + r.width = &width + return r +} + +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) WidthN(widthN []int32) ApiDcimRackTypesListRequest { + r.widthN = &widthN + return r +} + +func (r ApiDcimRackTypesListRequest) Execute() (*PaginatedRackTypeList, *http.Response, error) { + return r.ApiService.DcimRackTypesListExecute(r) +} + +/* +DcimRackTypesList Method for DcimRackTypesList + +Get a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesListRequest +*/ +func (a *DcimAPIService) DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest { + return ApiDcimRackTypesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedRackTypeList +func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.descUnits != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + } + } + if r.maxWeight != nil { + t := *r.maxWeight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "multi") + } + } + if r.maxWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "") + } + if r.maxWeightGt != nil { + t := *r.maxWeightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "multi") + } + } + if r.maxWeightGte != nil { + t := *r.maxWeightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "multi") + } + } + if r.maxWeightLt != nil { + t := *r.maxWeightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "multi") + } + } + if r.maxWeightLte != nil { + t := *r.maxWeightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "multi") + } + } + if r.maxWeightN != nil { + t := *r.maxWeightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "multi") + } + } + if r.model != nil { + t := *r.model + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") + } + } + if r.modelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "") + } + if r.modelIc != nil { + t := *r.modelIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") + } + } + if r.modelIe != nil { + t := *r.modelIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") + } + } + if r.modelIew != nil { + t := *r.modelIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") + } + } + if r.modelIsw != nil { + t := *r.modelIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") + } + } + if r.modelN != nil { + t := *r.modelN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") + } + } + if r.modelNic != nil { + t := *r.modelNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") + } + } + if r.modelNie != nil { + t := *r.modelNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") + } + } + if r.modelNiew != nil { + t := *r.modelNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") + } + } + if r.modelNisw != nil { + t := *r.modelNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.mountingDepth != nil { + t := *r.mountingDepth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "multi") + } + } + if r.mountingDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "") + } + if r.mountingDepthGt != nil { + t := *r.mountingDepthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "multi") + } + } + if r.mountingDepthGte != nil { + t := *r.mountingDepthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "multi") + } + } + if r.mountingDepthLt != nil { + t := *r.mountingDepthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "multi") + } + } + if r.mountingDepthLte != nil { + t := *r.mountingDepthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "multi") + } + } + if r.mountingDepthN != nil { + t := *r.mountingDepthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.outerDepth != nil { + t := *r.outerDepth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "multi") + } + } + if r.outerDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "") + } + if r.outerDepthGt != nil { + t := *r.outerDepthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "multi") + } + } + if r.outerDepthGte != nil { + t := *r.outerDepthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "multi") + } + } + if r.outerDepthLt != nil { + t := *r.outerDepthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "multi") + } + } + if r.outerDepthLte != nil { + t := *r.outerDepthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "multi") + } + } + if r.outerDepthN != nil { + t := *r.outerDepthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "multi") + } + } + if r.outerUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "") + } + if r.outerUnitN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit__n", r.outerUnitN, "") + } + if r.outerWidth != nil { + t := *r.outerWidth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "multi") + } + } + if r.outerWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "") + } + if r.outerWidthGt != nil { + t := *r.outerWidthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "multi") + } + } + if r.outerWidthGte != nil { + t := *r.outerWidthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "multi") + } + } + if r.outerWidthLt != nil { + t := *r.outerWidthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "multi") + } + } + if r.outerWidthLte != nil { + t := *r.outerWidthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "multi") + } + } + if r.outerWidthN != nil { + t := *r.outerWidthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.startingUnit != nil { + t := *r.startingUnit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "multi") + } + } + if r.startingUnitEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "") + } + if r.startingUnitGt != nil { + t := *r.startingUnitGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "multi") + } + } + if r.startingUnitGte != nil { + t := *r.startingUnitGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "multi") + } + } + if r.startingUnitLt != nil { + t := *r.startingUnitLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "multi") + } + } + if r.startingUnitLte != nil { + t := *r.startingUnitLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "multi") + } + } + if r.startingUnitN != nil { + t := *r.startingUnitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.uHeight != nil { + t := *r.uHeight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") + } + } + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") + } + if r.uHeightGt != nil { + t := *r.uHeightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") + } + } + if r.uHeightGte != nil { + t := *r.uHeightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") + } + } + if r.uHeightLt != nil { + t := *r.uHeightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") + } + } + if r.uHeightLte != nil { + t := *r.uHeightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") + } + } + if r.uHeightN != nil { + t := *r.uHeightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + } + } + if r.weightN != nil { + t := *r.weightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + } + } + if r.weightUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") + } + if r.weightUnitN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") + } + if r.width != nil { + t := *r.width + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") + } + } + if r.widthN != nil { + t := *r.widthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + patchedWritableRackTypeRequest *PatchedWritableRackTypeRequest } -func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { - r.patchedRackRoleRequest = &patchedRackRoleRequest +func (r ApiDcimRackTypesPartialUpdateRequest) PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest PatchedWritableRackTypeRequest) ApiDcimRackTypesPartialUpdateRequest { + r.patchedWritableRackTypeRequest = &patchedWritableRackTypeRequest return r } -func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesPartialUpdateExecute(r) +func (r ApiDcimRackTypesPartialUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesPartialUpdateExecute(r) } /* -DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate +DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate -Patch a rack role object. +Patch a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesPartialUpdateRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { - return ApiDcimRackRolesPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest { + return ApiDcimRackTypesPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -90320,21 +93240,21 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int3 // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90359,7 +93279,7 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedRackRoleRequest + localVarPostBody = r.patchedWritableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -90411,27 +93331,27 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesRetrieveRequest struct { +type ApiDcimRackTypesRetrieveRequest struct { ctx context.Context ApiService *DcimAPIService id int32 } -func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesRetrieveExecute(r) +func (r ApiDcimRackTypesRetrieveRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesRetrieveExecute(r) } /* -DcimRackRolesRetrieve Method for DcimRackRolesRetrieve +DcimRackTypesRetrieve Method for DcimRackTypesRetrieve -Get a rack role object. +Get a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesRetrieveRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesRetrieveRequest */ -func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { - return ApiDcimRackRolesRetrieveRequest{ +func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest { + return ApiDcimRackTypesRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -90440,21 +93360,21 @@ func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) Ap // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90529,33 +93449,33 @@ func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - rackRoleRequest *RackRoleRequest +type ApiDcimRackTypesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + writableRackTypeRequest *WritableRackTypeRequest } -func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesUpdateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesUpdateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest return r } -func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesUpdateExecute(r) +func (r ApiDcimRackTypesUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesUpdateExecute(r) } /* -DcimRackRolesUpdate Method for DcimRackRolesUpdate +DcimRackTypesUpdate Method for DcimRackTypesUpdate -Put a rack role object. +Put a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesUpdateRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { - return ApiDcimRackRolesUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest { + return ApiDcimRackTypesUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -90564,28 +93484,28 @@ func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiD // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -90606,7 +93526,7 @@ func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.writableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -91503,6 +94423,8 @@ func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati type ApiDcimRacksListRequest struct { ctx context.Context ApiService *DcimAPIService + airflow *DcimRacksListAirflowParameter + airflowN *DcimRacksListAirflowParameter assetTag *[]string assetTagEmpty *bool assetTagIc *[]string @@ -91516,8 +94438,8 @@ type ApiDcimRacksListRequest struct { assetTagNisw *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -91551,6 +94473,8 @@ type ApiDcimRacksListRequest struct { facilityIdNie *[]string facilityIdNiew *[]string facilityIdNisw *[]string + formFactor *[]string + formFactorN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -91566,10 +94490,14 @@ type ApiDcimRacksListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 maxWeight *[]int32 maxWeightEmpty *bool maxWeightGt *[]int32 @@ -91605,8 +94533,8 @@ type ApiDcimRacksListRequest struct { outerDepthLt *[]int32 outerDepthLte *[]int32 outerDepthN *[]int32 - outerUnit *DcimRacksListOuterUnitParameter - outerUnitN *DcimRacksListOuterUnitParameter + outerUnit *DcimRackTypesListOuterUnitParameter + outerUnitN *DcimRackTypesListOuterUnitParameter outerWidth *[]int32 outerWidthEmpty *bool outerWidthGt *[]int32 @@ -91615,10 +94543,14 @@ type ApiDcimRacksListRequest struct { outerWidthLte *[]int32 outerWidthN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + rackType *[]string + rackTypeN *[]string + rackTypeId *[]*int32 + rackTypeIdN *[]*int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 @@ -91636,10 +94568,10 @@ type ApiDcimRacksListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 startingUnit *[]int32 @@ -91655,14 +94587,12 @@ type ApiDcimRacksListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 - type_ *[]string - typeN *[]string uHeight *[]int32 uHeightEmpty *bool uHeightGt *[]int32 @@ -91684,6 +94614,18 @@ type ApiDcimRacksListRequest struct { widthN *[]int32 } +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +func (r ApiDcimRacksListRequest) Airflow(airflow DcimRacksListAirflowParameter) ApiDcimRacksListRequest { + r.airflow = &airflow + return r +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +func (r ApiDcimRacksListRequest) AirflowN(airflowN DcimRacksListAirflowParameter) ApiDcimRacksListRequest { + r.airflowN = &airflowN + return r +} + func (r ApiDcimRacksListRequest) AssetTag(assetTag []string) ApiDcimRacksListRequest { r.assetTag = &assetTag return r @@ -91751,14 +94693,12 @@ func (r ApiDcimRacksListRequest) ContactN(contactN []int32) ApiDcimRacksListRequ return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []string) ApiDcimRacksListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []string) ApiDcimRacksListRequest { r.contactGroupN = &contactGroupN return r } @@ -91930,6 +94870,16 @@ func (r ApiDcimRacksListRequest) FacilityIdNisw(facilityIdNisw []string) ApiDcim return r } +func (r ApiDcimRacksListRequest) FormFactor(formFactor []string) ApiDcimRacksListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRacksListRequest) FormFactorN(formFactorN []string) ApiDcimRacksListRequest { + r.formFactorN = &formFactorN + return r +} + func (r ApiDcimRacksListRequest) Id(id []int32) ApiDcimRacksListRequest { r.id = &id return r @@ -92006,30 +94956,50 @@ func (r ApiDcimRacksListRequest) Limit(limit int32) ApiDcimRacksListRequest { return r } -// Location (slug) -func (r ApiDcimRacksListRequest) Location(location []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) Location(location []string) ApiDcimRacksListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRacksListRequest) LocationN(locationN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationN(locationN []string) ApiDcimRacksListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationId(locationId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationId(locationId []string) ApiDcimRacksListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []string) ApiDcimRacksListRequest { r.locationIdN = &locationIdN return r } +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) Manufacturer(manufacturer []string) ApiDcimRacksListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) ManufacturerN(manufacturerN []string) ApiDcimRacksListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRacksListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRacksListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + func (r ApiDcimRacksListRequest) MaxWeight(maxWeight []int32) ApiDcimRacksListRequest { r.maxWeight = &maxWeight return r @@ -92208,13 +95178,13 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnit = &outerUnit return r } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnitN = &outerUnitN return r } @@ -92260,26 +95230,46 @@ func (r ApiDcimRacksListRequest) Q(q string) ApiDcimRacksListRequest { return r } -// Region (slug) -func (r ApiDcimRacksListRequest) Region(region []int32) ApiDcimRacksListRequest { +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackType(rackType []string) ApiDcimRacksListRequest { + r.rackType = &rackType + return r +} + +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackTypeN(rackTypeN []string) ApiDcimRacksListRequest { + r.rackTypeN = &rackTypeN + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeId(rackTypeId []*int32) ApiDcimRacksListRequest { + r.rackTypeId = &rackTypeId + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeIdN(rackTypeIdN []*int32) ApiDcimRacksListRequest { + r.rackTypeIdN = &rackTypeIdN + return r +} + +func (r ApiDcimRacksListRequest) Region(region []string) ApiDcimRacksListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRacksListRequest) RegionN(regionN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionN(regionN []string) ApiDcimRacksListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionId(regionId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionId(regionId []string) ApiDcimRacksListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []string) ApiDcimRacksListRequest { r.regionIdN = ®ionIdN return r } @@ -92375,26 +95365,22 @@ func (r ApiDcimRacksListRequest) SiteN(siteN []string) ApiDcimRacksListRequest { return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []string) ApiDcimRacksListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []string) ApiDcimRacksListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []string) ApiDcimRacksListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRacksListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -92478,26 +95464,22 @@ func (r ApiDcimRacksListRequest) TenantN(tenantN []string) ApiDcimRacksListReque return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []string) ApiDcimRacksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRacksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRacksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRacksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -92514,16 +95496,6 @@ func (r ApiDcimRacksListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRacksListR return r } -func (r ApiDcimRacksListRequest) Type_(type_ []string) ApiDcimRacksListRequest { - r.type_ = &type_ - return r -} - -func (r ApiDcimRacksListRequest) TypeN(typeN []string) ApiDcimRacksListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimRacksListRequest) UHeight(uHeight []int32) ApiDcimRacksListRequest { r.uHeight = &uHeight return r @@ -92664,6 +95636,12 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + } + if r.airflowN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") + } if r.assetTag != nil { t := *r.assetTag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93152,6 +96130,28 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "multi") } } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93345,6 +96345,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + } + } if r.maxWeight != nil { t := *r.maxWeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93752,6 +96796,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } + if r.rackType != nil { + t := *r.rackType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", t, "multi") + } + } + if r.rackTypeN != nil { + t := *r.rackTypeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", t, "multi") + } + } + if r.rackTypeId != nil { + t := *r.rackTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", t, "multi") + } + } + if r.rackTypeIdN != nil { + t := *r.rackTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", t, "multi") + } + } if r.region != nil { t := *r.region if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94242,28 +97330,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") } } - if r.type_ != nil { - t := *r.type_ - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } - } - if r.typeN != nil { - t := *r.typeN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") - } - } if r.uHeight != nil { t := *r.uHeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -95503,8 +98569,6 @@ type ApiDcimRearPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -95534,8 +98598,6 @@ type ApiDcimRearPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -95724,18 +98786,6 @@ func (r ApiDcimRearPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int3 return r } -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Id(id []int32) ApiDcimRearPortTemplatesListRequest { r.id = &id return r @@ -95884,18 +98934,6 @@ func (r ApiDcimRearPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int3 return r } -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Name(name []string) ApiDcimRearPortTemplatesListRequest { r.name = &name return r @@ -96388,28 +99426,6 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96697,28 +99713,6 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -98012,6 +101006,12 @@ type ApiDcimRearPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -98076,20 +101076,16 @@ type ApiDcimRearPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -98306,6 +101302,40 @@ func (r ApiDcimRearPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimRearPor return r } +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRole(deviceRole []string) ApiDcimRearPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimRearPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimRearPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimRearPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimRearPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimRearPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + // Device type (model) func (r ApiDcimRearPortsListRequest) DeviceType(deviceType []string) ApiDcimRearPortsListRequest { r.deviceType = &deviceType @@ -98644,54 +101674,26 @@ func (r ApiDcimRearPortsListRequest) RackIdN(rackIdN []int32) ApiDcimRearPortsLi return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) Region(region []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) Region(region []string) ApiDcimRearPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) RegionN(regionN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionN(regionN []string) ApiDcimRearPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionId(regionId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionId(regionId []string) ApiDcimRearPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []string) ApiDcimRearPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimRearPortsListRequest) Role(role []string) ApiDcimRearPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimRearPortsListRequest) RoleN(roleN []string) ApiDcimRearPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) RoleId(roleId []int32) ApiDcimRearPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimRearPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimRearPortsListRequest) Site(site []string) ApiDcimRearPortsListRequest { r.site = &site @@ -98704,26 +101706,22 @@ func (r ApiDcimRearPortsListRequest) SiteN(siteN []string) ApiDcimRearPortsListR return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []string) ApiDcimRearPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRearPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRearPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRearPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -99211,6 +102209,72 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -99871,50 +102935,6 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -101250,14 +104270,14 @@ func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques type ApiDcimRegionsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -101329,26 +104349,22 @@ type ApiDcimRegionsListRequest struct { updatedByRequest *string } -// Region (slug) -func (r ApiDcimRegionsListRequest) Ancestor(ancestor []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) Ancestor(ancestor []string) ApiDcimRegionsListRequest { r.ancestor = &ancestor return r } -// Region (slug) -func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []string) ApiDcimRegionsListRequest { r.ancestorN = &ancestorN return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []string) ApiDcimRegionsListRequest { r.ancestorId = &ancestorId return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimRegionsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -101365,14 +104381,12 @@ func (r ApiDcimRegionsListRequest) ContactN(contactN []int32) ApiDcimRegionsList return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []string) ApiDcimRegionsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []string) ApiDcimRegionsListRequest { r.contactGroupN = &contactGroupN return r } @@ -103570,14 +106584,14 @@ func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy type ApiDcimSiteGroupsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -103649,26 +106663,22 @@ type ApiDcimSiteGroupsListRequest struct { updatedByRequest *string } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []string) ApiDcimSiteGroupsListRequest { r.ancestor = &ancestor return r } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []string) ApiDcimSiteGroupsListRequest { r.ancestorN = &ancestorN return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []string) ApiDcimSiteGroupsListRequest { r.ancestorId = &ancestorId return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimSiteGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -103685,14 +106695,12 @@ func (r ApiDcimSiteGroupsListRequest) ContactN(contactN []int32) ApiDcimSiteGrou return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []string) ApiDcimSiteGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []string) ApiDcimSiteGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -105896,8 +108904,8 @@ type ApiDcimSitesListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -105930,10 +108938,10 @@ type ApiDcimSitesListRequest struct { facilityNie *[]string facilityNiew *[]string facilityNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -105978,10 +108986,10 @@ type ApiDcimSitesListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string slug *[]string slugEmpty *bool slugIc *[]string @@ -105999,10 +109007,10 @@ type ApiDcimSitesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 timeZone *[]string @@ -106054,14 +109062,12 @@ func (r ApiDcimSitesListRequest) ContactN(contactN []int32) ApiDcimSitesListRequ return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []string) ApiDcimSitesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []string) ApiDcimSitesListRequest { r.contactGroupN = &contactGroupN return r } @@ -106228,26 +109234,22 @@ func (r ApiDcimSitesListRequest) FacilityNisw(facilityNisw []string) ApiDcimSite return r } -// Group (slug) -func (r ApiDcimSitesListRequest) Group(group []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Group(group []string) ApiDcimSitesListRequest { r.group = &group return r } -// Group (slug) -func (r ApiDcimSitesListRequest) GroupN(groupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupN(groupN []string) ApiDcimSitesListRequest { r.groupN = &groupN return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupId(groupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupId(groupId []string) ApiDcimSitesListRequest { r.groupId = &groupId return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []string) ApiDcimSitesListRequest { r.groupIdN = &groupIdN return r } @@ -106476,26 +109478,22 @@ func (r ApiDcimSitesListRequest) Q(q string) ApiDcimSitesListRequest { return r } -// Region (slug) -func (r ApiDcimSitesListRequest) Region(region []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Region(region []string) ApiDcimSitesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimSitesListRequest) RegionN(regionN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionN(regionN []string) ApiDcimSitesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionId(regionId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionId(regionId []string) ApiDcimSitesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []string) ApiDcimSitesListRequest { r.regionIdN = ®ionIdN return r } @@ -106587,26 +109585,22 @@ func (r ApiDcimSitesListRequest) TenantN(tenantN []string) ApiDcimSitesListReque return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []string) ApiDcimSitesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimSitesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimSitesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimSitesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -109102,16 +112096,16 @@ type ApiDcimVirtualChassisListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -109486,26 +112480,22 @@ func (r ApiDcimVirtualChassisListRequest) Q(q string) ApiDcimVirtualChassisListR return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) Region(region []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) Region(region []string) ApiDcimVirtualChassisListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []string) ApiDcimVirtualChassisListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []string) ApiDcimVirtualChassisListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []string) ApiDcimVirtualChassisListRequest { r.regionIdN = ®ionIdN return r } @@ -109522,26 +112512,22 @@ func (r ApiDcimVirtualChassisListRequest) SiteN(siteN []string) ApiDcimVirtualCh return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []string) ApiDcimVirtualChassisListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []string) ApiDcimVirtualChassisListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []string) ApiDcimVirtualChassisListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimVirtualChassisListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -111643,10 +114629,10 @@ type ApiDcimVirtualDeviceContextsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -112034,26 +115020,22 @@ func (r ApiDcimVirtualDeviceContextsListRequest) TenantN(tenantN []string) ApiDc return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_extras.go b/api_extras.go index 2b89c130c..2390af24a 100644 --- a/api_extras.go +++ b/api_extras.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2262,10 +2262,6 @@ type ApiExtrasConfigContextsListRequest struct { regionN *[]string regionId *[]int32 regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 site *[]string siteN *[]string siteGroup *[]string @@ -2782,30 +2778,6 @@ func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtr return r } -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { - r.role = &role - return r -} - -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { - r.roleN = &roleN - return r -} - -// Role -func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { - r.roleId = &roleId - return r -} - -// Role -func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site (slug) func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { r.site = &site @@ -3901,50 +3873,6 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9880,6 +9808,7 @@ type ApiExtrasCustomFieldsListRequest struct { uiEditableN *ExtrasCustomFieldsListUiEditableParameter uiVisible *ExtrasCustomFieldsListUiVisibleParameter uiVisibleN *ExtrasCustomFieldsListUiVisibleParameter + unique *bool updatedByRequest *string validationMaximum *[]int32 validationMaximumEmpty *bool @@ -10467,6 +10396,11 @@ func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN ExtrasCustomFiel return r } +func (r ApiExtrasCustomFieldsListRequest) Unique(unique bool) ApiExtrasCustomFieldsListRequest { + r.unique = &unique + return r +} + func (r ApiExtrasCustomFieldsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -11605,6 +11539,9 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if r.uiVisibleN != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "") } + if r.unique != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unique", r.unique, "") + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -13061,13 +12998,13 @@ type ApiExtrasCustomLinksListRequest struct { weightN *[]int32 } -// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClass(buttonClass ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClass = &buttonClass return r } -// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClassN(buttonClassN ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClassN = &buttonClassN return r @@ -15765,6 +15702,7 @@ type ApiExtrasEventRulesListRequest struct { descriptionNiew *[]string descriptionNisw *[]string enabled *bool + eventType *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -15809,11 +15747,6 @@ type ApiExtrasEventRulesListRequest struct { q *string tag *[]string tagN *[]string - typeCreate *bool - typeDelete *bool - typeJobEnd *bool - typeJobStart *bool - typeUpdate *bool updatedByRequest *string } @@ -15972,6 +15905,11 @@ func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRule return r } +func (r ApiExtrasEventRulesListRequest) EventType(eventType []string) ApiExtrasEventRulesListRequest { + r.eventType = &eventType + return r +} + func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest { r.id = &id return r @@ -16196,31 +16134,6 @@ func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesL return r } -func (r ApiExtrasEventRulesListRequest) TypeCreate(typeCreate bool) ApiExtrasEventRulesListRequest { - r.typeCreate = &typeCreate - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeDelete(typeDelete bool) ApiExtrasEventRulesListRequest { - r.typeDelete = &typeDelete - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasEventRulesListRequest { - r.typeJobEnd = &typeJobEnd - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobStart(typeJobStart bool) ApiExtrasEventRulesListRequest { - r.typeJobStart = &typeJobStart - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeUpdate(typeUpdate bool) ApiExtrasEventRulesListRequest { - r.typeUpdate = &typeUpdate - return r -} - func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -16568,6 +16481,17 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } + if r.eventType != nil { + t := *r.eventType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -16916,21 +16840,6 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") } } - if r.typeCreate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "") - } - if r.typeDelete != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "") - } - if r.typeJobEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "") - } - if r.typeJobStart != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "") - } - if r.typeUpdate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -23786,407 +23695,394 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - action *ExtrasObjectChangesListActionParameter - actionN *ExtrasObjectChangesListActionParameter - changedObjectId *[]int32 - changedObjectIdEmpty *bool - changedObjectIdGt *[]int32 - changedObjectIdGte *[]int32 - changedObjectIdLt *[]int32 - changedObjectIdLte *[]int32 - changedObjectIdN *[]int32 - changedObjectType *string - changedObjectTypeN *string - changedObjectTypeId *[]int32 - changedObjectTypeIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - objectRepr *[]string - objectReprEmpty *bool - objectReprIc *[]string - objectReprIe *[]string - objectReprIew *[]string - objectReprIsw *[]string - objectReprN *[]string - objectReprNic *[]string - objectReprNie *[]string - objectReprNiew *[]string - objectReprNisw *[]string - offset *int32 - ordering *string - q *string - relatedObjectId *[]int32 - relatedObjectIdEmpty *bool - relatedObjectIdGt *[]int32 - relatedObjectIdGte *[]int32 - relatedObjectIdLt *[]int32 - relatedObjectIdLte *[]int32 - relatedObjectIdN *[]int32 - relatedObjectType *int32 - relatedObjectTypeN *int32 - requestId *string - timeAfter *time.Time - timeBefore *time.Time - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - userName *[]string - userNameEmpty *bool - userNameIc *[]string - userNameIe *[]string - userNameIew *[]string - userNameIsw *[]string - userNameN *[]string - userNameNic *[]string - userNameNie *[]string - userNameNiew *[]string - userNameNisw *[]string -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) Action(action ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.action = &action - return r +type ApiExtrasNotificationGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) ActionN(actionN ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.actionN = &actionN +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkDestroyRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectId = &changedObjectId - return r +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkDestroyExecute(r) } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.changedObjectIdEmpty = &changedObjectIdEmpty - return r -} +/* +ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGt = &changedObjectIdGt - return r -} +Delete a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGte = &changedObjectIdGte - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest { + return ApiExtrasNotificationGroupsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLt = &changedObjectIdLt - return r -} +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLte = &changedObjectIdLte - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdN = &changedObjectIdN - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -func (r ApiExtrasObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiExtrasObjectChangesListRequest { - r.changedObjectType = &changedObjectType - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeN = &changedObjectTypeN - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeId = &changedObjectTypeId - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeIdN = &changedObjectTypeIdN - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiExtrasObjectChangesListRequest) Id(id []int32) ApiExtrasObjectChangesListRequest { - r.id = &id - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } -func (r ApiExtrasObjectChangesListRequest) IdEmpty(idEmpty bool) ApiExtrasObjectChangesListRequest { - r.idEmpty = &idEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) IdGt(idGt []int32) ApiExtrasObjectChangesListRequest { - r.idGt = &idGt - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) IdGte(idGte []int32) ApiExtrasObjectChangesListRequest { - r.idGte = &idGte - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) IdLt(idLt []int32) ApiExtrasObjectChangesListRequest { - r.idLt = &idLt - return r + return localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) IdLte(idLte []int32) ApiExtrasObjectChangesListRequest { - r.idLte = &idLte - return r +type ApiExtrasNotificationGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) IdN(idN []int32) ApiExtrasObjectChangesListRequest { - r.idN = &idN +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -// Number of results to return per page. -func (r ApiExtrasObjectChangesListRequest) Limit(limit int32) ApiExtrasObjectChangesListRequest { - r.limit = &limit - return r +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkPartialUpdateExecute(r) } -func (r ApiExtrasObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiExtrasObjectChangesListRequest { - r.objectRepr = &objectRepr - return r -} +/* +ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate -func (r ApiExtrasObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiExtrasObjectChangesListRequest { - r.objectReprEmpty = &objectReprEmpty - return r -} +Patch a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiExtrasObjectChangesListRequest { - r.objectReprIc = &objectReprIc - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + return ApiExtrasNotificationGroupsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiExtrasObjectChangesListRequest { - r.objectReprIe = &objectReprIe - return r -} +// Execute executes the request +// +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup + ) -func (r ApiExtrasObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiExtrasObjectChangesListRequest { - r.objectReprIew = &objectReprIew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiExtrasObjectChangesListRequest { - r.objectReprIsw = &objectReprIsw - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -func (r ApiExtrasObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiExtrasObjectChangesListRequest { - r.objectReprN = &objectReprN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiExtrasObjectChangesListRequest { - r.objectReprNic = &objectReprNic - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiExtrasObjectChangesListRequest { - r.objectReprNie = &objectReprNie - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiExtrasObjectChangesListRequest { - r.objectReprNiew = &objectReprNiew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiExtrasObjectChangesListRequest { - r.objectReprNisw = &objectReprNisw - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasObjectChangesListRequest) Offset(offset int32) ApiExtrasObjectChangesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasObjectChangesListRequest) Ordering(ordering string) ApiExtrasObjectChangesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasObjectChangesListRequest) Q(q string) ApiExtrasObjectChangesListRequest { - r.q = &q - return r -} - -func (r ApiExtrasObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectId = &relatedObjectId - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdEmpty = &relatedObjectIdEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGt = &relatedObjectIdGt - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGte = &relatedObjectIdGte - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLt = &relatedObjectIdLt - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLte = &relatedObjectIdLte - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdN = &relatedObjectIdN - return r +type ApiExtrasNotificationGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectType = &relatedObjectType +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectTypeN = &relatedObjectTypeN - return r +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkUpdateExecute(r) } -func (r ApiExtrasObjectChangesListRequest) RequestId(requestId string) ApiExtrasObjectChangesListRequest { - r.requestId = &requestId - return r -} +/* +ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate -func (r ApiExtrasObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiExtrasObjectChangesListRequest { - r.timeAfter = &timeAfter - return r -} +Put a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiExtrasObjectChangesListRequest { - r.timeBefore = &timeBefore - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest { + return ApiExtrasNotificationGroupsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -// User name -func (r ApiExtrasObjectChangesListRequest) User(user []string) ApiExtrasObjectChangesListRequest { - r.user = &user - return r -} +// Execute executes the request +// +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup + ) -// User name -func (r ApiExtrasObjectChangesListRequest) UserN(userN []string) ApiExtrasObjectChangesListRequest { - r.userN = &userN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserId(userId []*int32) ApiExtrasObjectChangesListRequest { - r.userId = &userId - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserIdN(userIdN []*int32) ApiExtrasObjectChangesListRequest { - r.userIdN = &userIdN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) UserName(userName []string) ApiExtrasObjectChangesListRequest { - r.userName = &userName - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiExtrasObjectChangesListRequest { - r.userNameEmpty = &userNameEmpty - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) UserNameIc(userNameIc []string) ApiExtrasObjectChangesListRequest { - r.userNameIc = &userNameIc - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasObjectChangesListRequest) UserNameIe(userNameIe []string) ApiExtrasObjectChangesListRequest { - r.userNameIe = &userNameIe - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameIew(userNameIew []string) ApiExtrasObjectChangesListRequest { - r.userNameIew = &userNameIew - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiExtrasObjectChangesListRequest { - r.userNameIsw = &userNameIsw - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameN(userNameN []string) ApiExtrasObjectChangesListRequest { - r.userNameN = &userNameN - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) UserNameNic(userNameNic []string) ApiExtrasObjectChangesListRequest { - r.userNameNic = &userNameNic - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) UserNameNie(userNameNie []string) ApiExtrasObjectChangesListRequest { - r.userNameNie = &userNameNie - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiExtrasObjectChangesListRequest { - r.userNameNiew = &userNameNiew - return r +type ApiExtrasNotificationGroupsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiExtrasObjectChangesListRequest { - r.userNameNisw = &userNameNisw +func (r ApiExtrasNotificationGroupsCreateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsCreateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesListExecute(r) +func (r ApiExtrasNotificationGroupsCreateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsCreateExecute(r) } /* -ExtrasObjectChangesList Method for ExtrasObjectChangesList +ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate -Retrieve a list of recent changes. +Post a list of notification group objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectChangesListRequest + @return ApiExtrasNotificationGroupsCreateRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { - return ApiExtrasObjectChangesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest { + return ApiExtrasNotificationGroupsCreateRequest{ ApiService: a, ctx: ctx, } @@ -24194,563 +24090,280 @@ func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtra // Execute executes the request // -// @return PaginatedObjectChangeList -func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedObjectChangeList + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - if r.action != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.actionN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.changedObjectId != nil { - t := *r.changedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") } } - if r.changedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.changedObjectIdGt != nil { - t := *r.changedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.changedObjectIdGte != nil { - t := *r.changedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") - } - } - if r.changedObjectIdLt != nil { - t := *r.changedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.changedObjectIdLte != nil { - t := *r.changedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.changedObjectIdN != nil { - t := *r.changedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.changedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationGroupsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasNotificationGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsDestroyExecute(r) +} + +/* +ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy + +Delete a notification group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest { + return ApiExtrasNotificationGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.changedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.changedObjectTypeId != nil { - t := *r.changedObjectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.changedObjectTypeIdN != nil { - t := *r.changedObjectTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasNotificationGroupsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasNotificationGroupsListRequest) Limit(limit int32) ApiExtrasNotificationGroupsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasNotificationGroupsListRequest) Offset(offset int32) ApiExtrasNotificationGroupsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasNotificationGroupsListRequest) Ordering(ordering string) ApiExtrasNotificationGroupsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasNotificationGroupsListRequest) Execute() (*PaginatedNotificationGroupList, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsListExecute(r) +} + +/* +ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList + +Get a list of notification group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsListRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest { + return ApiExtrasNotificationGroupsListRequest{ + ApiService: a, + ctx: ctx, } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } +} + +// Execute executes the request +// +// @return PaginatedNotificationGroupList +func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } + + localVarPath := localBasePath + "/api/extras/notification-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.objectRepr != nil { - t := *r.objectRepr - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } - if r.objectReprEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") - } - if r.objectReprIc != nil { - t := *r.objectReprIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") - } - } - if r.objectReprIe != nil { - t := *r.objectReprIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") - } - } - if r.objectReprIew != nil { - t := *r.objectReprIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") - } - } - if r.objectReprIsw != nil { - t := *r.objectReprIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") - } - } - if r.objectReprN != nil { - t := *r.objectReprN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") - } - } - if r.objectReprNic != nil { - t := *r.objectReprNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") - } - } - if r.objectReprNie != nil { - t := *r.objectReprNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") - } - } - if r.objectReprNiew != nil { - t := *r.objectReprNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") - } - } - if r.objectReprNisw != nil { - t := *r.objectReprNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedObjectId != nil { - t := *r.relatedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") - } - } - if r.relatedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") - } - if r.relatedObjectIdGt != nil { - t := *r.relatedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") - } - } - if r.relatedObjectIdGte != nil { - t := *r.relatedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") - } - } - if r.relatedObjectIdLt != nil { - t := *r.relatedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") - } - } - if r.relatedObjectIdLte != nil { - t := *r.relatedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") - } - } - if r.relatedObjectIdN != nil { - t := *r.relatedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") - } - } - if r.relatedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") - } - if r.relatedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") - } - if r.requestId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") - } - if r.timeAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") - } - if r.timeBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } - } - if r.userN != nil { - t := *r.userN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") - } - } - if r.userId != nil { - t := *r.userId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") - } - } - if r.userIdN != nil { - t := *r.userIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") - } - } - if r.userName != nil { - t := *r.userName - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") - } - } - if r.userNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") - } - if r.userNameIc != nil { - t := *r.userNameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") - } - } - if r.userNameIe != nil { - t := *r.userNameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") - } - } - if r.userNameIew != nil { - t := *r.userNameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") - } - } - if r.userNameIsw != nil { - t := *r.userNameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") - } - } - if r.userNameN != nil { - t := *r.userNameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") - } - } - if r.userNameNic != nil { - t := *r.userNameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") - } - } - if r.userNameNie != nil { - t := *r.userNameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") - } - } - if r.userNameNiew != nil { - t := *r.userNameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") - } - } - if r.userNameNisw != nil { - t := *r.userNameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") - } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24820,27 +24433,33 @@ func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedNotificationGroupRequest *PatchedNotificationGroupRequest +} + +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) PatchedNotificationGroupRequest(patchedNotificationGroupRequest PatchedNotificationGroupRequest) ApiExtrasNotificationGroupsPartialUpdateRequest { + r.patchedNotificationGroupRequest = &patchedNotificationGroupRequest + return r } -func (r ApiExtrasObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesRetrieveExecute(r) +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsPartialUpdateExecute(r) } /* -ExtrasObjectChangesRetrieve Method for ExtrasObjectChangesRetrieve +ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate -Retrieve a list of recent changes. +Patch a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object change. - @return ApiExtrasObjectChangesRetrieveRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { - return ApiExtrasObjectChangesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest { + return ApiExtrasNotificationGroupsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -24849,21 +24468,21 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id i // Execute executes the request // -// @return ObjectChange -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ObjectChange + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/{id}/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -24871,7 +24490,7 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -24887,6 +24506,8 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedNotificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24938,119 +24559,56 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectTypesListRequest struct { +type ApiExtrasNotificationGroupsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - appLabel *string - id *int32 - limit *int32 - model *string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { - r.appLabel = &appLabel - return r -} - -func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { - r.id = &id - return r -} - -// Number of results to return per page. -func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { - r.limit = &limit - return r -} - -func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { - r.model = &model - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { - r.q = &q - return r + id int32 } -func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesListExecute(r) +func (r ApiExtrasNotificationGroupsRetrieveRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsRetrieveExecute(r) } /* -ExtrasObjectTypesList Method for ExtrasObjectTypesList +ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve -Read-only list of ObjectTypes. +Get a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectTypesListRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { - return ApiExtrasObjectTypesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest { + return ApiExtrasNotificationGroupsRetrieveRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request // -// @return PaginatedObjectTypeList -func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedObjectTypeList + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.appLabel != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") - } - if r.id != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.model != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25119,27 +24677,33 @@ func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesLi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectTypesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationGroupsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + notificationGroupRequest *NotificationGroupRequest } -func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +func (r ApiExtrasNotificationGroupsUpdateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest + return r +} + +func (r ApiExtrasNotificationGroupsUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsUpdateExecute(r) } /* -ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve +ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate -Read-only list of ObjectTypes. +Put a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object type. - @return ApiExtrasObjectTypesRetrieveRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { - return ApiExtrasObjectTypesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest { + return ApiExtrasNotificationGroupsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -25148,29 +24712,32 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int // Execute executes the request // -// @return ObjectType -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ObjectType + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/{id}/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -25186,6 +24753,8 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25237,56 +24806,56 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkDestroyRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkDestroyRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) +func (r ApiExtrasNotificationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkDestroyExecute(r) } /* -ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy +ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy -Delete a list of saved filter objects. +Delete a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkDestroyRequest + @return ApiExtrasNotificationsBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { - return ApiExtrasSavedFiltersBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest { + return ApiExtrasNotificationsBulkDestroyRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25307,7 +24876,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25350,31 +24919,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved return localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkPartialUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkPartialUpdateExecute(r) } /* -ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate +ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate -Patch a list of saved filter objects. +Patch a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkPartialUpdateRequest + @return ApiExtrasNotificationsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest { + return ApiExtrasNotificationsBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25382,27 +24951,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Conte // Execute executes the request // -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SavedFilter + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25423,7 +24992,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25475,31 +25044,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) +func (r ApiExtrasNotificationsBulkUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkUpdateExecute(r) } /* -ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate +ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate -Put a list of saved filter objects. +Put a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkUpdateRequest + @return ApiExtrasNotificationsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { - return ApiExtrasSavedFiltersBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest { + return ApiExtrasNotificationsBulkUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25507,27 +25076,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) Api // Execute executes the request // -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SavedFilter + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25548,7 +25117,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25600,31 +25169,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *SavedFilterRequest +type ApiExtrasNotificationsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *NotificationRequest } -func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsCreateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsCreateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersCreateExecute(r) +func (r ApiExtrasNotificationsCreateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsCreateExecute(r) } /* -ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate +ExtrasNotificationsCreate Method for ExtrasNotificationsCreate -Post a list of saved filter objects. +Post a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersCreateRequest + @return ApiExtrasNotificationsCreateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { - return ApiExtrasSavedFiltersCreateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest { + return ApiExtrasNotificationsCreateRequest{ ApiService: a, ctx: ctx, } @@ -25632,27 +25201,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtr // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25673,7 +25242,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25725,27 +25294,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersDestroyRequest struct { +type ApiExtrasNotificationsDestroyRequest struct { ctx context.Context ApiService *ExtrasAPIService id int32 } -func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) +func (r ApiExtrasNotificationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsDestroyExecute(r) } /* -ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy +ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy -Delete a saved filter object. +Delete a notification object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersDestroyRequest + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { - return ApiExtrasSavedFiltersDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest { + return ApiExtrasNotificationsDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -25753,19 +25322,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/notifications/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -25831,555 +25400,588 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt return localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - shared *bool - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - updatedByRequest *string - usable *bool - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - weight *[]int32 - weightEmpty *bool - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 +type ApiExtrasNotificationsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string } -func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { - r.created = &created +// Number of results to return per page. +func (r ApiExtrasNotificationsListRequest) Limit(limit int32) ApiExtrasNotificationsListRequest { + r.limit = &limit return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdEmpty = &createdEmpty +// The initial index from which to return the results. +func (r ApiExtrasNotificationsListRequest) Offset(offset int32) ApiExtrasNotificationsListRequest { + r.offset = &offset return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGt = &createdGt +// Which field to use when ordering the results. +func (r ApiExtrasNotificationsListRequest) Ordering(ordering string) ApiExtrasNotificationsListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGte = &createdGte - return r +func (r ApiExtrasNotificationsListRequest) Execute() (*PaginatedNotificationList, *http.Response, error) { + return r.ApiService.ExtrasNotificationsListExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLt = &createdLt - return r -} +/* +ExtrasNotificationsList Method for ExtrasNotificationsList -func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLte = &createdLte - return r -} +Get a list of notification objects. -func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdN = &createdN - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsListRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest { + return ApiExtrasNotificationsListRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { - r.createdByRequest = &createdByRequest - return r -} +// Execute executes the request +// +// @return PaginatedNotificationList +func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationList + ) -func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { - r.description = &description - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notifications/" -func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIc = &descriptionIc - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIe = &descriptionIe - return r -} + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIew = &descriptionIew - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIsw = &descriptionIsw - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { - r.descriptionN = &descriptionN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNic = &descriptionNic - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNie = &descriptionNie - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNiew = &descriptionNiew - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { - r.enabled = &enabled - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { - r.id = &id - return r +type ApiExtrasNotificationsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedNotificationRequest *PatchedNotificationRequest } -func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { - r.idEmpty = &idEmpty +func (r ApiExtrasNotificationsPartialUpdateRequest) PatchedNotificationRequest(patchedNotificationRequest PatchedNotificationRequest) ApiExtrasNotificationsPartialUpdateRequest { + r.patchedNotificationRequest = &patchedNotificationRequest return r } -func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { - r.idGt = &idGt - return r +func (r ApiExtrasNotificationsPartialUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsPartialUpdateExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { - r.idGte = &idGte - return r -} +/* +ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate -func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { - r.idLt = &idLt - return r -} +Patch a notification object. -func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { - r.idLte = &idLte - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest { + return ApiExtrasNotificationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { - r.idN = &idN - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdated = &lastUpdated - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedNotificationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -// Number of results to return per page. -func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { - r.limit = &limit - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { - r.name = &name - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { - r.nameEmpty = &nameEmpty - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { - r.nameIc = &nameIc - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { - r.nameIe = &nameIe - return r +type ApiExtrasNotificationsRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { - r.nameIew = &nameIew - return r +func (r ApiExtrasNotificationsRetrieveRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsRetrieveExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { - r.nameIsw = &nameIsw - return r -} +/* +ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve -func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { - r.nameN = &nameN - return r -} +Get a notification object. -func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { - r.nameNic = &nameNic - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest { + return ApiExtrasNotificationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { - r.nameNie = &nameNie - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { - r.nameNiew = &nameNiew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { - r.nameNisw = &nameNisw - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { - r.objectType = &objectType - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIc = &objectTypeIc - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIe = &objectTypeIe - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIew = &objectTypeIew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIsw = &objectTypeIsw - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { - r.objectTypeN = &objectTypeN - return r + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNic = &objectTypeNic - return r +type ApiExtrasNotificationsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + notificationRequest *NotificationRequest } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNie = &objectTypeNie +func (r ApiExtrasNotificationsUpdateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNiew = &objectTypeNiew - return r +func (r ApiExtrasNotificationsUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsUpdateExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNisw = &objectTypeNisw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeId = &objectTypeId - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeIdN = &objectTypeIdN - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { - r.q = &q - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { - r.shared = &shared - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { - r.slug = &slug - return r -} +/* +ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate -func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { - r.slugEmpty = &slugEmpty - return r -} +Put a notification object. -func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { - r.slugIc = &slugIc - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest { + return ApiExtrasNotificationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { - r.slugIe = &slugIe - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { - r.slugIew = &slugIew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { - r.slugIsw = &slugIsw - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { - r.slugN = &slugN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + } -func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { - r.slugNic = &slugNic - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { - r.slugNie = &slugNie - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { - r.slugNiew = &slugNiew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { - r.slugNisw = &slugNisw - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { - r.updatedByRequest = &updatedByRequest - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { - r.usable = &usable - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -// User (name) -func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { - r.user = &user - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// User (name) -func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { - r.userN = &userN - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { - r.userId = &userId - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { - r.userIdN = &userIdN - return r +type ApiExtrasObjectTypesListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + appLabel *string + id *int32 + limit *int32 + model *string + offset *int32 + ordering *string + q *string } -func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { - r.weight = &weight +func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { + r.appLabel = &appLabel return r } -func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { - r.weightEmpty = &weightEmpty +func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { + r.id = &id return r } -func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { - r.weightGt = &weightGt +// Number of results to return per page. +func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { + r.limit = &limit return r } -func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { - r.weightGte = &weightGte +func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { + r.model = &model return r } -func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { - r.weightLt = &weightLt +// The initial index from which to return the results. +func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { + r.offset = &offset return r } -func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { - r.weightLte = &weightLte +// Which field to use when ordering the results. +func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { - r.weightN = &weightN +// Search +func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { + r.q = &q return r } -func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersListExecute(r) +func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesListExecute(r) } /* -ExtrasSavedFiltersList Method for ExtrasSavedFiltersList +ExtrasObjectTypesList Method for ExtrasObjectTypesList -Get a list of saved filter objects. +Read-only list of ObjectTypes. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersListRequest + @return ApiExtrasObjectTypesListRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { - return ApiExtrasSavedFiltersListRequest{ +func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { + return ApiExtrasObjectTypesListRequest{ ApiService: a, ctx: ctx, } @@ -26387,783 +25989,3242 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtras // Execute executes the request // -// @return PaginatedSavedFilterList -func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { +// @return PaginatedObjectTypeList +func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedSavedFilterList + localVarReturnValue *PaginatedObjectTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/object-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } + if r.appLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") - } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") } } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasObjectTypesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +} + +/* +ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve + +Read-only list of ObjectTypes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this object type. + @return ApiExtrasObjectTypesRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { + return ApiExtrasObjectTypesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } +} + +// Execute executes the request +// +// @return ObjectType +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + + localVarPath := localBasePath + "/api/extras/object-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) +} + +/* +ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy + +Delete a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { + return ApiExtrasSavedFiltersBulkDestroyRequest{ + ApiService: a, + ctx: ctx, } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return nil, reportError("savedFilterRequest is required and must be specified") } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + + return localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) +} + +/* +ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate + +Patch a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") +} + +// Execute executes the request +// +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) +} + +/* +ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate + +Put a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { + return ApiExtrasSavedFiltersBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersCreateExecute(r) +} + +/* +ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate + +Post a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { + return ApiExtrasSavedFiltersCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) +} + +/* +ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy + +Delete a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { + return ApiExtrasSavedFiltersDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + shared *bool + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + updatedByRequest *string + usable *bool + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} + +func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { + r.created = &created + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { + r.description = &description + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { + r.enabled = &enabled + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { + r.id = &id + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { + r.name = &name + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { + r.nameNisw = &nameNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { + r.objectType = &objectType + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIc = &objectTypeIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIe = &objectTypeIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIew = &objectTypeIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIsw = &objectTypeIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { + r.objectTypeN = &objectTypeN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNic = &objectTypeNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNie = &objectTypeNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNiew = &objectTypeNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNisw = &objectTypeNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeId = &objectTypeId + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeIdN = &objectTypeIdN + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { + r.q = &q + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { + r.shared = &shared + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { + r.slug = &slug + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { + r.slugN = &slugN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { + r.usable = &usable + return r +} + +// User (name) +func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { + r.user = &user + return r +} + +// User (name) +func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { + r.weight = &weight + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { + r.weightN = &weightN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersListExecute(r) +} + +/* +ExtrasSavedFiltersList Method for ExtrasSavedFiltersList + +Get a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersListRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { + return ApiExtrasSavedFiltersListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedSavedFilterList +func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSavedFilterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + } + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + } + if r.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + } + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + } + if r.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + } + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + } + if r.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + } + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + } + if r.objectTypeId != nil { + t := *r.objectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + } + } + if r.objectTypeIdN != nil { + t := *r.objectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.shared != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.usable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + } + } + if r.weightN != nil { + t := *r.weightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedSavedFilterRequest *PatchedSavedFilterRequest +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { + r.patchedSavedFilterRequest = &patchedSavedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +} + +/* +ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate + +Patch a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { + return ApiExtrasSavedFiltersPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedSavedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +} + +/* +ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve + +Get a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { + return ApiExtrasSavedFiltersRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +} + +/* +ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate + +Put a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { + return ApiExtrasSavedFiltersUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService +} + +func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsCreateExecute(r) +} + +/* +ExtrasScriptsCreate Method for ExtrasScriptsCreate + +Post a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { + return ApiExtrasScriptsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id string +} + +func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasScriptsDestroyExecute(r) +} + +/* +ExtrasScriptsDestroy Method for ExtrasScriptsDestroy + +Delete a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { + return ApiExtrasScriptsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr } - if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + + return localVarHTTPResponse, nil +} + +type ApiExtrasScriptsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isExecutable *bool + limit *int32 + moduleId *[]int32 + moduleIdN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string +} + +func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { + r.id = &id + return r +} + +func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { + r.isExecutable = &isExecutable + return r +} + +// Number of results to return per page. +func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { + r.limit = &limit + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { + r.moduleId = &moduleId + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { + r.name = &name + return r +} + +func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { + r.q = &q + return r +} + +func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { + return r.ApiService.ExtrasScriptsListExecute(r) +} + +/* +ExtrasScriptsList Method for ExtrasScriptsList + +Get a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsListRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { + return ApiExtrasScriptsListRequest{ + ApiService: a, + ctx: ctx, } - if r.objectTypeId != nil { - t := *r.objectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") - } +} + +// Execute executes the request +// +// @return PaginatedScriptList +func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedScriptList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.objectTypeIdN != nil { - t := *r.objectTypeIdN + + localVarPath := localBasePath + "/api/extras/scripts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.id != nil { + t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.shared != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") } - if r.slug != nil { - t := *r.slug + if r.idGt != nil { + t := *r.idGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") } } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc + if r.idGte != nil { + t := *r.idGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") } } - if r.slugIe != nil { - t := *r.slugIe + if r.idLt != nil { + t := *r.idLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") } } - if r.slugIew != nil { - t := *r.slugIew + if r.idLte != nil { + t := *r.idLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") } } - if r.slugIsw != nil { - t := *r.slugIsw + if r.idN != nil { + t := *r.idN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } } - if r.slugN != nil { - t := *r.slugN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } + if r.isExecutable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") } - if r.slugNic != nil { - t := *r.slugNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.slugNie != nil { - t := *r.slugNie + if r.moduleId != nil { + t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") } } - if r.slugNiew != nil { - t := *r.slugNiew + if r.moduleIdN != nil { + t := *r.moduleIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") } } - if r.slugNisw != nil { - t := *r.slugNisw + if r.name != nil { + t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.usable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") } - if r.userN != nil { - t := *r.userN + if r.nameIc != nil { + t := *r.nameIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") } } - if r.userId != nil { - t := *r.userId + if r.nameIe != nil { + t := *r.nameIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } } - if r.userIdN != nil { - t := *r.userIdN + if r.nameIew != nil { + t := *r.nameIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") } - } - if r.weight != nil { - t := *r.weight + } + if r.nameIsw != nil { + t := *r.nameIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") } } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt + if r.nameN != nil { + t := *r.nameN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") } } - if r.weightGte != nil { - t := *r.weightGte + if r.nameNic != nil { + t := *r.nameNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") } } - if r.weightLt != nil { - t := *r.weightLt + if r.nameNie != nil { + t := *r.nameNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") } } - if r.weightLte != nil { - t := *r.weightLte + if r.nameNiew != nil { + t := *r.nameNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") } } - if r.weightN != nil { - t := *r.weightN + if r.nameNisw != nil { + t := *r.nameNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27232,33 +29293,33 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersPartialUpdateRequest struct { +type ApiExtrasScriptsPartialUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 - patchedSavedFilterRequest *PatchedSavedFilterRequest + id string + patchedScriptInputRequest *PatchedScriptInputRequest } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { - r.patchedSavedFilterRequest = &patchedSavedFilterRequest +func (r ApiExtrasScriptsPartialUpdateRequest) PatchedScriptInputRequest(patchedScriptInputRequest PatchedScriptInputRequest) ApiExtrasScriptsPartialUpdateRequest { + r.patchedScriptInputRequest = &patchedScriptInputRequest return r } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) } /* -ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate +ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate -Patch a saved filter object. +Patch a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersPartialUpdateRequest + @param id + @return ApiExtrasScriptsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { - return ApiExtrasSavedFiltersPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { + return ApiExtrasScriptsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -27267,21 +29328,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27306,7 +29367,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedSavedFilterRequest + localVarPostBody = r.patchedScriptInputRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27358,27 +29419,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersRetrieveRequest struct { +type ApiExtrasScriptsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 + id string } -func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsRetrieveExecute(r) } /* -ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve +ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve -Get a saved filter object. +Get a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersRetrieveRequest + @param id + @return ApiExtrasScriptsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { - return ApiExtrasSavedFiltersRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { + return ApiExtrasScriptsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -27387,21 +29448,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id in // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27476,63 +29537,185 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersUpdateRequest struct { +type ApiExtrasScriptsUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 - savedFilterRequest *SavedFilterRequest + id string + scriptInputRequest *ScriptInputRequest } -func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasScriptsUpdateRequest) ScriptInputRequest(scriptInputRequest ScriptInputRequest) ApiExtrasScriptsUpdateRequest { + r.scriptInputRequest = &scriptInputRequest return r } -func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsUpdateExecute(r) } /* -ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate +ExtrasScriptsUpdate Method for ExtrasScriptsUpdate -Put a saved filter object. +Put a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersUpdateRequest + @param id + @return ApiExtrasScriptsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { - return ApiExtrasSavedFiltersUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { + return ApiExtrasScriptsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.scriptInputRequest == nil { + return localVarReturnValue, nil, reportError("scriptInputRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.scriptInputRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest +} + +func (r ApiExtrasSubscriptionsBulkDestroyRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkDestroyRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkDestroyExecute(r) +} + +/* +ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy + +Delete a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest { + return ApiExtrasSubscriptionsBulkDestroyRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.subscriptionRequest == nil { + return nil, reportError("subscriptionRequest is required and must be specified") } // to determine the Content-Type header @@ -27545,7 +29728,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -27553,7 +29736,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27570,19 +29753,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -27590,40 +29773,37 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + return localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiExtrasSubscriptionsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest } -type ApiExtrasScriptsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r } -func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsCreateExecute(r) +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkPartialUpdateExecute(r) } /* -ExtrasScriptsCreate Method for ExtrasScriptsCreate +ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate -Post a list of script objects. +Patch a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsCreateRequest + @return ApiExtrasSubscriptionsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { - return ApiExtrasScriptsCreateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + return ApiExtrasSubscriptionsBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -27631,28 +29811,31 @@ func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScr // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -27668,6 +29851,8 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27719,55 +29904,63 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest } -func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasScriptsDestroyExecute(r) +func (r ApiExtrasSubscriptionsBulkUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkUpdateExecute(r) } /* -ExtrasScriptsDestroy Method for ExtrasScriptsDestroy +ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate -Delete a script object. +Put a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsDestroyRequest + @return ApiExtrasSubscriptionsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { - return ApiExtrasScriptsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest { + return ApiExtrasSubscriptionsBulkUpdateRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { +// +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -27776,13 +29969,15 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27799,207 +29994,66 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiExtrasScriptsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isExecutable *bool - limit *int32 - moduleId *[]int32 - moduleIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { - r.id = &id - return r -} - -func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { - r.idN = &idN - return r -} - -func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { - r.isExecutable = &isExecutable - return r -} - -// Number of results to return per page. -func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { - r.limit = &limit - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { - r.moduleId = &moduleId - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { - r.name = &name - return r -} - -func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { - r.nameNic = &nameNic - return r -} + return localVarReturnValue, nil, err + } -func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { - r.nameNie = &nameNie - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { - r.nameNiew = &nameNiew - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { - r.nameNisw = &nameNisw - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// The initial index from which to return the results. -func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { - r.offset = &offset - return r + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil } -// Which field to use when ordering the results. -func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { - r.ordering = &ordering - return r +type ApiExtrasSubscriptionsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *SubscriptionRequest } -// Search -func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { - r.q = &q +func (r ApiExtrasSubscriptionsCreateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsCreateRequest { + r.subscriptionRequest = &subscriptionRequest return r } -func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { - return r.ApiService.ExtrasScriptsListExecute(r) +func (r ApiExtrasSubscriptionsCreateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsCreateExecute(r) } /* -ExtrasScriptsList Method for ExtrasScriptsList +ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate -Get a list of script objects. +Post a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsListRequest + @return ApiExtrasSubscriptionsCreateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { - return ApiExtrasScriptsListRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest { + return ApiExtrasSubscriptionsCreateRequest{ ApiService: a, ctx: ctx, } @@ -28007,235 +30061,274 @@ func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScrip // Execute executes the request // -// @return PaginatedScriptList -func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedScriptList + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.subscriptionRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") } } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.isExecutable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.moduleId != nil { - t := *r.moduleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), } + return localVarReturnValue, localVarHTTPResponse, newErr } - if r.moduleIdN != nil { - t := *r.moduleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSubscriptionsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsDestroyExecute(r) +} + +/* +ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy + +Delete a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest { + return ApiExtrasSubscriptionsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, } + return localVarHTTPResponse, newErr } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } + + return localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasSubscriptionsListRequest) Limit(limit int32) ApiExtrasSubscriptionsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSubscriptionsListRequest) Offset(offset int32) ApiExtrasSubscriptionsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSubscriptionsListRequest) Ordering(ordering string) ApiExtrasSubscriptionsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasSubscriptionsListRequest) Execute() (*PaginatedSubscriptionList, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsListExecute(r) +} + +/* +ExtrasSubscriptionsList Method for ExtrasSubscriptionsList + +Get a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsListRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest { + return ApiExtrasSubscriptionsListRequest{ + ApiService: a, + ctx: ctx, } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") - } +} + +// Execute executes the request +// +// @return PaginatedSubscriptionList +func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } + + localVarPath := localBasePath + "/api/extras/subscriptions/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") @@ -28243,9 +30336,6 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -28314,27 +30404,33 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedSubscriptionRequest *PatchedSubscriptionRequest } -func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) +func (r ApiExtrasSubscriptionsPartialUpdateRequest) PatchedSubscriptionRequest(patchedSubscriptionRequest PatchedSubscriptionRequest) ApiExtrasSubscriptionsPartialUpdateRequest { + r.patchedSubscriptionRequest = &patchedSubscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsPartialUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsPartialUpdateExecute(r) } /* -ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate +ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate -Patch a script object. +Patch a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsPartialUpdateRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { - return ApiExtrasScriptsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest { + return ApiExtrasSubscriptionsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -28343,21 +30439,21 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id st // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28365,7 +30461,7 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28381,6 +30477,8 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedSubscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28432,27 +30530,27 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsRetrieveRequest struct { +type ApiExtrasSubscriptionsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string + id int32 } -func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsRetrieveExecute(r) +func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r) } /* -ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve +ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve -Get a script object. +Get a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsRetrieveRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { - return ApiExtrasScriptsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest { + return ApiExtrasSubscriptionsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -28461,21 +30559,21 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28550,27 +30648,33 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + subscriptionRequest *SubscriptionRequest } -func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsUpdateExecute(r) +func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsUpdateExecute(r) } /* -ExtrasScriptsUpdate Method for ExtrasScriptsUpdate +ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate -Put a script object. +Put a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsUpdateRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { - return ApiExtrasScriptsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest { + return ApiExtrasSubscriptionsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -28579,29 +30683,32 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) A // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28617,6 +30724,8 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/api_ipam.go b/api_ipam.go index 0e906f752..08a835d00 100644 --- a/api_ipam.go +++ b/api_ipam.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -676,10 +676,10 @@ type ApiIpamAggregatesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -971,26 +971,22 @@ func (r ApiIpamAggregatesListRequest) TenantN(tenantN []string) ApiIpamAggregate return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []string) ApiIpamAggregatesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAggregatesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAggregatesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAggregatesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -3006,10 +3002,10 @@ type ApiIpamAsnRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3435,26 +3431,22 @@ func (r ApiIpamAsnRangesListRequest) TenantN(tenantN []string) ApiIpamAsnRangesL return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnRangesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5491,10 +5483,10 @@ type ApiIpamAsnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5823,26 +5815,22 @@ func (r ApiIpamAsnsListRequest) TenantN(tenantN []string) ApiIpamAsnsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -11794,10 +11782,10 @@ type ApiIpamIpAddressesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12275,26 +12263,22 @@ func (r ApiIpamIpAddressesListRequest) TenantN(tenantN []string) ApiIpamIpAddres return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpAddressesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpAddressesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpAddressesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpAddressesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14756,10 +14740,10 @@ type ApiIpamIpRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -15087,26 +15071,22 @@ func (r ApiIpamIpRangesListRequest) TenantN(tenantN []string) ApiIpamIpRangesLis return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpRangesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -17475,20 +17455,20 @@ type ApiIpamPrefixesListRequest struct { presentInVrf *string presentInVrfId *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -17497,10 +17477,10 @@ type ApiIpamPrefixesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -17836,26 +17816,22 @@ func (r ApiIpamPrefixesListRequest) Q(q string) ApiIpamPrefixesListRequest { return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) Region(region []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) Region(region []string) ApiIpamPrefixesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) RegionN(regionN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionN(regionN []string) ApiIpamPrefixesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionId(regionId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionId(regionId []string) ApiIpamPrefixesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []string) ApiIpamPrefixesListRequest { r.regionIdN = ®ionIdN return r } @@ -17896,26 +17872,22 @@ func (r ApiIpamPrefixesListRequest) SiteN(siteN []string) ApiIpamPrefixesListReq return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []string) ApiIpamPrefixesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []string) ApiIpamPrefixesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []string) ApiIpamPrefixesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamPrefixesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -17966,26 +17938,22 @@ func (r ApiIpamPrefixesListRequest) TenantN(tenantN []string) ApiIpamPrefixesLis return r } -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []string) ApiIpamPrefixesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamPrefixesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamPrefixesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamPrefixesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -24459,10 +24427,10 @@ type ApiIpamRouteTargetsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -24835,26 +24803,22 @@ func (r ApiIpamRouteTargetsListRequest) TenantN(tenantN []string) ApiIpamRouteTa return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []string) ApiIpamRouteTargetsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamRouteTargetsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamRouteTargetsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamRouteTargetsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28663,10 +28627,6 @@ type ApiIpamServicesListRequest struct { ipAddressN *[]string ipAddressId *[]int32 ipAddressIdN *[]int32 - ipaddress *[]string - ipaddressN *[]string - ipaddressId *[]int32 - ipaddressIdN *[]int32 lastUpdated *[]time.Time lastUpdatedEmpty *[]time.Time lastUpdatedGt *[]time.Time @@ -28880,30 +28840,6 @@ func (r ApiIpamServicesListRequest) IpAddressIdN(ipAddressIdN []int32) ApiIpamSe return r } -// IP address -func (r ApiIpamServicesListRequest) Ipaddress(ipaddress []string) ApiIpamServicesListRequest { - r.ipaddress = &ipaddress - return r -} - -// IP address -func (r ApiIpamServicesListRequest) IpaddressN(ipaddressN []string) ApiIpamServicesListRequest { - r.ipaddressN = &ipaddressN - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressId(ipaddressId []int32) ApiIpamServicesListRequest { - r.ipaddressId = &ipaddressId - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressIdN(ipaddressIdN []int32) ApiIpamServicesListRequest { - r.ipaddressIdN = &ipaddressIdN - return r -} - func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServicesListRequest { r.lastUpdated = &lastUpdated return r @@ -29470,50 +29406,6 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", t, "multi") } } - if r.ipaddress != nil { - t := *r.ipaddress - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", t, "multi") - } - } - if r.ipaddressN != nil { - t := *r.ipaddressN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", t, "multi") - } - } - if r.ipaddressId != nil { - t := *r.ipaddressId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", t, "multi") - } - } - if r.ipaddressIdN != nil { - t := *r.ipaddressIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", t, "multi") - } - } if r.lastUpdated != nil { t := *r.lastUpdated if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -31084,7 +30976,7 @@ type ApiIpamVlanGroupsListRequest struct { ApiService *IpamAPIService cluster *int32 clusterGroup *int32 - clustergroup *int32 + containsVid *float32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -31120,20 +31012,6 @@ type ApiIpamVlanGroupsListRequest struct { lastUpdatedN *[]time.Time limit *int32 location *int32 - maxVid *[]int32 - maxVidEmpty *bool - maxVidGt *[]int32 - maxVidGte *[]int32 - maxVidLt *[]int32 - maxVidLte *[]int32 - maxVidN *[]int32 - minVid *[]int32 - minVidEmpty *bool - minVidGt *[]int32 - minVidGte *[]int32 - minVidLt *[]int32 - minVidLte *[]int32 - minVidN *[]int32 modifiedByRequest *string name *[]string nameEmpty *bool @@ -31162,7 +31040,6 @@ type ApiIpamVlanGroupsListRequest struct { scopeTypeN *string site *int32 siteGroup *int32 - sitegroup *int32 slug *[]string slugEmpty *bool slugIc *[]string @@ -31189,8 +31066,8 @@ func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVl return r } -func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup int32) ApiIpamVlanGroupsListRequest { - r.clustergroup = &clustergroup +func (r ApiIpamVlanGroupsListRequest) ContainsVid(containsVid float32) ApiIpamVlanGroupsListRequest { + r.containsVid = &containsVid return r } @@ -31370,76 +31247,6 @@ func (r ApiIpamVlanGroupsListRequest) Location(location int32) ApiIpamVlanGroups return r } -func (r ApiIpamVlanGroupsListRequest) MaxVid(maxVid []int32) ApiIpamVlanGroupsListRequest { - r.maxVid = &maxVid - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidEmpty(maxVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.maxVidEmpty = &maxVidEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidGt(maxVidGt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGt = &maxVidGt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidGte(maxVidGte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGte = &maxVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidLt(maxVidLt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLt = &maxVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidLte(maxVidLte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLte = &maxVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidN(maxVidN []int32) ApiIpamVlanGroupsListRequest { - r.maxVidN = &maxVidN - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVid(minVid []int32) ApiIpamVlanGroupsListRequest { - r.minVid = &minVid - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidEmpty(minVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.minVidEmpty = &minVidEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGt(minVidGt []int32) ApiIpamVlanGroupsListRequest { - r.minVidGt = &minVidGt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGte(minVidGte []int32) ApiIpamVlanGroupsListRequest { - r.minVidGte = &minVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLt(minVidLt []int32) ApiIpamVlanGroupsListRequest { - r.minVidLt = &minVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLte(minVidLte []int32) ApiIpamVlanGroupsListRequest { - r.minVidLte = &minVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidN(minVidN []int32) ApiIpamVlanGroupsListRequest { - r.minVidN = &minVidN - return r -} - func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -31583,11 +31390,6 @@ func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGrou return r } -func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup int32) ApiIpamVlanGroupsListRequest { - r.sitegroup = &sitegroup - return r -} - func (r ApiIpamVlanGroupsListRequest) Slug(slug []string) ApiIpamVlanGroupsListRequest { r.slug = &slug return r @@ -31705,8 +31507,8 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.clusterGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", r.clusterGroup, "") } - if r.clustergroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "clustergroup", r.clustergroup, "") + if r.containsVid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "contains_vid", r.containsVid, "") } if r.created != nil { t := *r.created @@ -32053,144 +31855,6 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.location != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "") } - if r.maxVid != nil { - t := *r.maxVid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", t, "multi") - } - } - if r.maxVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__empty", r.maxVidEmpty, "") - } - if r.maxVidGt != nil { - t := *r.maxVidGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", t, "multi") - } - } - if r.maxVidGte != nil { - t := *r.maxVidGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", t, "multi") - } - } - if r.maxVidLt != nil { - t := *r.maxVidLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", t, "multi") - } - } - if r.maxVidLte != nil { - t := *r.maxVidLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", t, "multi") - } - } - if r.maxVidN != nil { - t := *r.maxVidN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", t, "multi") - } - } - if r.minVid != nil { - t := *r.minVid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", t, "multi") - } - } - if r.minVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__empty", r.minVidEmpty, "") - } - if r.minVidGt != nil { - t := *r.minVidGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", t, "multi") - } - } - if r.minVidGte != nil { - t := *r.minVidGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", t, "multi") - } - } - if r.minVidLt != nil { - t := *r.minVidLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", t, "multi") - } - } - if r.minVidLte != nil { - t := *r.minVidLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", t, "multi") - } - } - if r.minVidN != nil { - t := *r.minVidN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", t, "multi") - } - } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -32403,9 +32067,6 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.siteGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", r.siteGroup, "") } - if r.sitegroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sitegroup", r.sitegroup, "") - } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33642,20 +33303,20 @@ type ApiIpamVlansListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -33664,10 +33325,10 @@ type ApiIpamVlansListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -33992,26 +33653,22 @@ func (r ApiIpamVlansListRequest) Q(q string) ApiIpamVlansListRequest { return r } -// Region (slug) -func (r ApiIpamVlansListRequest) Region(region []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) Region(region []string) ApiIpamVlansListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamVlansListRequest) RegionN(regionN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionN(regionN []string) ApiIpamVlansListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionId(regionId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionId(regionId []string) ApiIpamVlansListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []string) ApiIpamVlansListRequest { r.regionIdN = ®ionIdN return r } @@ -34052,26 +33709,22 @@ func (r ApiIpamVlansListRequest) SiteN(siteN []string) ApiIpamVlansListRequest { return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []string) ApiIpamVlansListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []string) ApiIpamVlansListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []string) ApiIpamVlansListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamVlansListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -34122,26 +33775,22 @@ func (r ApiIpamVlansListRequest) TenantN(tenantN []string) ApiIpamVlansListReque return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []string) ApiIpamVlansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVlansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVlansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVlansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -36294,10 +35943,10 @@ type ApiIpamVrfsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -36682,26 +36331,22 @@ func (r ApiIpamVrfsListRequest) TenantN(tenantN []string) ApiIpamVrfsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []string) ApiIpamVrfsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVrfsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVrfsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVrfsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_schema.go b/api_schema.go index 5394105aa..161765a88 100644 --- a/api_schema.go +++ b/api_schema.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_status.go b/api_status.go index 9f266f523..6391bfcf5 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tenancy.go b/api_tenancy.go index 0b17b4c3a..33122a720 100644 --- a/api_tenancy.go +++ b/api_tenancy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -631,10 +631,10 @@ type ApiTenancyContactAssignmentsListRequest struct { createdLte *[]time.Time createdN *[]time.Time createdByRequest *string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -664,8 +664,8 @@ type ApiTenancyContactAssignmentsListRequest struct { objectTypeIdN *int32 offset *int32 ordering *string - priority *TenancyContactAssignmentsListPriorityParameter - priorityN *TenancyContactAssignmentsListPriorityParameter + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + priorityN *CircuitsCircuitGroupAssignmentsListPriorityParameter q *string role *[]string roleN *[]string @@ -728,26 +728,22 @@ func (r ApiTenancyContactAssignmentsListRequest) CreatedByRequest(createdByReque return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) Group(group []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Group(group []string) ApiTenancyContactAssignmentsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []string) ApiTenancyContactAssignmentsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []string) ApiTenancyContactAssignmentsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactAssignmentsListRequest { r.groupIdN = &groupIdN return r } @@ -901,13 +897,13 @@ func (r ApiTenancyContactAssignmentsListRequest) Ordering(ordering string) ApiTe } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) Priority(priority TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priority = &priority return r } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priorityN = &priorityN return r } @@ -2499,10 +2495,10 @@ func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta type ApiTenancyContactGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -2572,26 +2568,22 @@ type ApiTenancyContactGroupsListRequest struct { updatedByRequest *string } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []string) ApiTenancyContactGroupsListRequest { r.ancestor = &ancestor return r } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyContactGroupsListRequest { r.ancestorN = &ancestorN return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyContactGroupsListRequest { r.ancestorId = &ancestorId return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyContactGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -6820,10 +6812,10 @@ type ApiTenancyContactsListRequest struct { emailNie *[]string emailNiew *[]string emailNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -7097,26 +7089,22 @@ func (r ApiTenancyContactsListRequest) EmailNisw(emailNisw []string) ApiTenancyC return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) Group(group []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) Group(group []string) ApiTenancyContactsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) GroupN(groupN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupN(groupN []string) ApiTenancyContactsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupId(groupId []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupId(groupId []string) ApiTenancyContactsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactsListRequest { r.groupIdN = &groupIdN return r } @@ -9635,10 +9623,10 @@ func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant type ApiTenancyTenantGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -9708,26 +9696,22 @@ type ApiTenancyTenantGroupsListRequest struct { updatedByRequest *string } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []string) ApiTenancyTenantGroupsListRequest { r.ancestor = &ancestor return r } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyTenantGroupsListRequest { r.ancestorN = &ancestorN return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyTenantGroupsListRequest { r.ancestorId = &ancestorId return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyTenantGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -11849,8 +11833,8 @@ type ApiTenancyTenantsListRequest struct { ApiService *TenancyAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -11872,10 +11856,10 @@ type ApiTenancyTenantsListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -11934,14 +11918,12 @@ func (r ApiTenancyTenantsListRequest) ContactN(contactN []int32) ApiTenancyTenan return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []string) ApiTenancyTenantsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []string) ApiTenancyTenantsListRequest { r.contactGroupN = &contactGroupN return r } @@ -12053,26 +12035,22 @@ func (r ApiTenancyTenantsListRequest) DescriptionNisw(descriptionNisw []string) return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) Group(group []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) Group(group []string) ApiTenancyTenantsListRequest { r.group = &group return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) GroupN(groupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupN(groupN []string) ApiTenancyTenantsListRequest { r.groupN = &groupN return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupId(groupId []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupId(groupId []string) ApiTenancyTenantsListRequest { r.groupId = &groupId return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []string) ApiTenancyTenantsListRequest { r.groupIdN = &groupIdN return r } diff --git a/api_users.go b/api_users.go index f872d1a93..cd750c459 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -733,45 +733,47 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque } type ApiUsersGroupsListRequest struct { - ctx context.Context - ApiService *UsersAPIService - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - userId *[]int32 - userIdN *[]int32 + ctx context.Context + ApiService *UsersAPIService + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + userId *[]int32 + userIdN *[]int32 } func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest { @@ -925,6 +927,18 @@ func (r ApiUsersGroupsListRequest) NameNisw(nameNisw []string) ApiUsersGroupsLis return r } +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersGroupsListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersGroupsListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersGroupsListRequest) Offset(offset int32) ApiUsersGroupsListRequest { r.offset = &offset @@ -1306,6 +1320,28 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") + } + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -6303,86 +6339,88 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest } type ApiUsersUsersListRequest struct { - ctx context.Context - ApiService *UsersAPIService - dateJoined *[]time.Time - dateJoinedEmpty *bool - dateJoinedGt *[]time.Time - dateJoinedGte *[]time.Time - dateJoinedLt *[]time.Time - dateJoinedLte *[]time.Time - dateJoinedN *[]time.Time - email *[]string - emailEmpty *bool - emailIc *[]string - emailIe *[]string - emailIew *[]string - emailIsw *[]string - emailN *[]string - emailNic *[]string - emailNie *[]string - emailNiew *[]string - emailNisw *[]string - firstName *[]string - firstNameEmpty *bool - firstNameIc *[]string - firstNameIe *[]string - firstNameIew *[]string - firstNameIsw *[]string - firstNameN *[]string - firstNameNic *[]string - firstNameNie *[]string - firstNameNiew *[]string - firstNameNisw *[]string - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - isStaff *bool - isSuperuser *bool - lastLogin *[]time.Time - lastLoginEmpty *bool - lastLoginGt *[]time.Time - lastLoginGte *[]time.Time - lastLoginLt *[]time.Time - lastLoginLte *[]time.Time - lastLoginN *[]time.Time - lastName *[]string - lastNameEmpty *bool - lastNameIc *[]string - lastNameIe *[]string - lastNameIew *[]string - lastNameIsw *[]string - lastNameN *[]string - lastNameNic *[]string - lastNameNie *[]string - lastNameNiew *[]string - lastNameNisw *[]string - limit *int32 - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - username *[]string - usernameEmpty *bool - usernameIc *[]string - usernameIe *[]string - usernameIew *[]string - usernameIsw *[]string - usernameN *[]string - usernameNic *[]string - usernameNie *[]string - usernameNiew *[]string - usernameNisw *[]string + ctx context.Context + ApiService *UsersAPIService + dateJoined *[]time.Time + dateJoinedEmpty *bool + dateJoinedGt *[]time.Time + dateJoinedGte *[]time.Time + dateJoinedLt *[]time.Time + dateJoinedLte *[]time.Time + dateJoinedN *[]time.Time + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + firstName *[]string + firstNameEmpty *bool + firstNameIc *[]string + firstNameIe *[]string + firstNameIew *[]string + firstNameIsw *[]string + firstNameN *[]string + firstNameNic *[]string + firstNameNie *[]string + firstNameNiew *[]string + firstNameNisw *[]string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + isStaff *bool + isSuperuser *bool + lastLogin *[]time.Time + lastLoginEmpty *bool + lastLoginGt *[]time.Time + lastLoginGte *[]time.Time + lastLoginLt *[]time.Time + lastLoginLte *[]time.Time + lastLoginN *[]time.Time + lastName *[]string + lastNameEmpty *bool + lastNameIc *[]string + lastNameIe *[]string + lastNameIew *[]string + lastNameIsw *[]string + lastNameN *[]string + lastNameNic *[]string + lastNameNie *[]string + lastNameNiew *[]string + lastNameNisw *[]string + limit *int32 + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + username *[]string + usernameEmpty *bool + usernameIc *[]string + usernameIe *[]string + usernameIew *[]string + usernameIsw *[]string + usernameN *[]string + usernameNic *[]string + usernameNie *[]string + usernameNiew *[]string + usernameNisw *[]string } func (r ApiUsersUsersListRequest) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest { @@ -6700,6 +6738,18 @@ func (r ApiUsersUsersListRequest) Limit(limit int32) ApiUsersUsersListRequest { return r } +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersUsersListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersUsersListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersUsersListRequest) Offset(offset int32) ApiUsersUsersListRequest { r.offset = &offset @@ -7428,6 +7478,28 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") + } + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } diff --git a/api_virtualization.go b/api_virtualization.go index 2216c43f9..62ae7138e 100644 --- a/api_virtualization.go +++ b/api_virtualization.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -623,8 +623,8 @@ type ApiVirtualizationClusterGroupsListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -704,14 +704,12 @@ func (r ApiVirtualizationClusterGroupsListRequest) ContactN(contactN []int32) Ap return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -4867,8 +4865,8 @@ type ApiVirtualizationClustersListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -4924,16 +4922,16 @@ type ApiVirtualizationClustersListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -4942,10 +4940,10 @@ type ApiVirtualizationClustersListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -4967,14 +4965,12 @@ func (r ApiVirtualizationClustersListRequest) ContactN(contactN []int32) ApiVirt return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClustersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClustersListRequest { r.contactGroupN = &contactGroupN return r } @@ -5264,26 +5260,22 @@ func (r ApiVirtualizationClustersListRequest) Q(q string) ApiVirtualizationClust return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) Region(region []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) Region(region []string) ApiVirtualizationClustersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) RegionN(regionN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionN(regionN []string) ApiVirtualizationClustersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionId(regionId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionId(regionId []string) ApiVirtualizationClustersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []string) ApiVirtualizationClustersListRequest { r.regionIdN = ®ionIdN return r } @@ -5300,26 +5292,22 @@ func (r ApiVirtualizationClustersListRequest) SiteN(siteN []string) ApiVirtualiz return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []string) ApiVirtualizationClustersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationClustersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationClustersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationClustersListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -5368,26 +5356,22 @@ func (r ApiVirtualizationClustersListRequest) TenantN(tenantN []string) ApiVirtu return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationClustersListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationClustersListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationClustersListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationClustersListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -12067,8 +12051,8 @@ type ApiVirtualizationVirtualMachinesListRequest struct { configTemplateIdN *[]*int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12165,20 +12149,31 @@ type ApiVirtualizationVirtualMachinesListRequest struct { primaryIp6Id *[]int32 primaryIp6IdN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 + serial *[]string + serialEmpty *bool + serialIc *[]string + serialIe *[]string + serialIew *[]string + serialIsw *[]string + serialN *[]string + serialNic *[]string + serialNie *[]string + serialNiew *[]string + serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -12187,10 +12182,10 @@ type ApiVirtualizationVirtualMachinesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12306,14 +12301,12 @@ func (r ApiVirtualizationVirtualMachinesListRequest) ContactN(contactN []int32) return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroupN = &contactGroupN return r } @@ -12818,26 +12811,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Q(q string) ApiVirtualizati return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []string) ApiVirtualizationVirtualMachinesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []string) ApiVirtualizationVirtualMachinesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionIdN = ®ionIdN return r } @@ -12866,6 +12855,61 @@ func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []*int32) A return r } +func (r ApiVirtualizationVirtualMachinesListRequest) Serial(serial []string) ApiVirtualizationVirtualMachinesListRequest { + r.serial = &serial + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialEmpty(serialEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.serialEmpty = &serialEmpty + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIc(serialIc []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIc = &serialIc + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIe(serialIe []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIe = &serialIe + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIew(serialIew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIew = &serialIew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIsw(serialIsw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIsw = &serialIsw + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialN(serialN []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialN = &serialN + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNic(serialNic []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNic = &serialNic + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNie(serialNie []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNie = &serialNie + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNiew(serialNiew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNiew = &serialNiew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNisw(serialNisw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNisw = &serialNisw + return r +} + // Site (slug) func (r ApiVirtualizationVirtualMachinesListRequest) Site(site []string) ApiVirtualizationVirtualMachinesListRequest { r.site = &site @@ -12878,26 +12922,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) SiteN(siteN []string) ApiVi return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -12946,26 +12986,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) TenantN(tenantN []string) A return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14328,6 +14364,119 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") } } + if r.serial != nil { + t := *r.serial + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + } + } + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") + } + if r.serialIc != nil { + t := *r.serialIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + } + } + if r.serialIe != nil { + t := *r.serialIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + } + } + if r.serialIew != nil { + t := *r.serialIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + } + } + if r.serialIsw != nil { + t := *r.serialIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + } + } + if r.serialN != nil { + t := *r.serialN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + } + } + if r.serialNic != nil { + t := *r.serialNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + } + } + if r.serialNie != nil { + t := *r.serialNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + } + } + if r.serialNiew != nil { + t := *r.serialNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + } + } + if r.serialNisw != nil { + t := *r.serialNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_vpn.go b/api_vpn.go index 6893f11ad..b22bce11f 100644 --- a/api_vpn.go +++ b/api_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -685,10 +685,6 @@ type ApiVpnIkePoliciesListRequest struct { presharedKeyNie *string presharedKeyNiew *string presharedKeyNisw *string - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 q *string tag *[]string tagN *[]string @@ -1020,26 +1016,6 @@ func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) return r } -func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePoliciesListRequest { - r.proposal = &proposal - return r -} - -func (r ApiVpnIkePoliciesListRequest) ProposalN(proposalN []string) ApiVpnIkePoliciesListRequest { - r.proposalN = &proposalN - return r -} - -func (r ApiVpnIkePoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIkePoliciesListRequest { - r.proposalId = &proposalId - return r -} - -func (r ApiVpnIkePoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIkePoliciesListRequest { - r.proposalIdN = &proposalIdN - return r -} - // Search func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { r.q = &q @@ -1672,50 +1648,6 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if r.presharedKeyNisw != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "") } - if r.proposal != nil { - t := *r.proposal - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") - } - } - if r.proposalN != nil { - t := *r.proposalN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") - } - } - if r.proposalId != nil { - t := *r.proposalId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") - } - } - if r.proposalIdN != nil { - t := *r.proposalIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") - } - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -5068,10 +5000,6 @@ type ApiVpnIpsecPoliciesListRequest struct { ordering *string pfsGroup *[]*int32 pfsGroupN *[]*int32 - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 q *string tag *[]string tagN *[]string @@ -5353,26 +5281,6 @@ func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []*int32) ApiVpnIpse return r } -func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecPoliciesListRequest { - r.proposal = &proposal - return r -} - -func (r ApiVpnIpsecPoliciesListRequest) ProposalN(proposalN []string) ApiVpnIpsecPoliciesListRequest { - r.proposalN = &proposalN - return r -} - -func (r ApiVpnIpsecPoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalId = &proposalId - return r -} - -func (r ApiVpnIpsecPoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalIdN = &proposalIdN - return r -} - // Search func (r ApiVpnIpsecPoliciesListRequest) Q(q string) ApiVpnIpsecPoliciesListRequest { r.q = &q @@ -5965,50 +5873,6 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "multi") } } - if r.proposal != nil { - t := *r.proposal - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") - } - } - if r.proposalN != nil { - t := *r.proposalN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") - } - } - if r.proposalId != nil { - t := *r.proposalId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") - } - } - if r.proposalIdN != nil { - t := *r.proposalIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") - } - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -13702,10 +13566,10 @@ type ApiVpnL2vpnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -14122,26 +13986,22 @@ func (r ApiVpnL2vpnsListRequest) TenantN(tenantN []string) ApiVpnL2vpnsListReque return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []string) ApiVpnL2vpnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnL2vpnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnL2vpnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnL2vpnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -20203,10 +20063,10 @@ type ApiVpnTunnelsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 tunnelId *[]int32 @@ -20558,26 +20418,22 @@ func (r ApiVpnTunnelsListRequest) TenantN(tenantN []string) ApiVpnTunnelsListReq return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []string) ApiVpnTunnelsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnTunnelsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnTunnelsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnTunnelsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_wireless.go b/api_wireless.go index ac16ccf58..cf2ee2700 100644 --- a/api_wireless.go +++ b/api_wireless.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -621,10 +621,10 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele type ApiWirelessWirelessLanGroupsListRequest struct { ctx context.Context ApiService *WirelessAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -694,22 +694,22 @@ type ApiWirelessWirelessLanGroupsListRequest struct { updatedByRequest *string } -func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -2859,10 +2859,10 @@ type ApiWirelessWirelessLansListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -2901,10 +2901,10 @@ type ApiWirelessWirelessLansListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3082,22 +3082,22 @@ func (r ApiWirelessWirelessLansListRequest) DescriptionNisw(descriptionNisw []st return r } -func (r ApiWirelessWirelessLansListRequest) Group(group []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) Group(group []string) ApiWirelessWirelessLansListRequest { r.group = &group return r } -func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []string) ApiWirelessWirelessLansListRequest { r.groupN = &groupN return r } -func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []string) ApiWirelessWirelessLansListRequest { r.groupId = &groupId return r } -func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []string) ApiWirelessWirelessLansListRequest { r.groupIdN = &groupIdN return r } @@ -3298,26 +3298,22 @@ func (r ApiWirelessWirelessLansListRequest) TenantN(tenantN []string) ApiWireles return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5309,6 +5305,15 @@ type ApiWirelessWirelessLinksListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string + distance *[]float64 + distanceEmpty *bool + distanceGt *[]float64 + distanceGte *[]float64 + distanceLt *[]float64 + distanceLte *[]float64 + distanceN *[]float64 + distanceUnit *WirelessWirelessLinksListDistanceUnitParameter + distanceUnitN *WirelessWirelessLinksListDistanceUnitParameter id *[]int32 idEmpty *bool idGt *[]int32 @@ -5349,10 +5354,10 @@ type ApiWirelessWirelessLinksListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5528,6 +5533,53 @@ func (r ApiWirelessWirelessLinksListRequest) DescriptionNisw(descriptionNisw []s return r } +func (r ApiWirelessWirelessLinksListRequest) Distance(distance []float64) ApiWirelessWirelessLinksListRequest { + r.distance = &distance + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceEmpty(distanceEmpty bool) ApiWirelessWirelessLinksListRequest { + r.distanceEmpty = &distanceEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGt(distanceGt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGt = &distanceGt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGte(distanceGte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGte = &distanceGte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLt(distanceLt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLt = &distanceLt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLte(distanceLte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLte = &distanceLte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceN(distanceN []float64) ApiWirelessWirelessLinksListRequest { + r.distanceN = &distanceN + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiWirelessWirelessLinksListRequest) DistanceUnit(distanceUnit WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { + r.distanceUnit = &distanceUnit + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiWirelessWirelessLinksListRequest) DistanceUnitN(distanceUnitN WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { + r.distanceUnitN = &distanceUnitN + return r +} + func (r ApiWirelessWirelessLinksListRequest) Id(id []int32) ApiWirelessWirelessLinksListRequest { r.id = &id return r @@ -5734,26 +5786,22 @@ func (r ApiWirelessWirelessLinksListRequest) TenantN(tenantN []string) ApiWirele return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLinksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -6166,6 +6214,81 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") } } + if r.distance != nil { + t := *r.distance + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", t, "multi") + } + } + if r.distanceEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__empty", r.distanceEmpty, "") + } + if r.distanceGt != nil { + t := *r.distanceGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", t, "multi") + } + } + if r.distanceGte != nil { + t := *r.distanceGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", t, "multi") + } + } + if r.distanceLt != nil { + t := *r.distanceLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", t, "multi") + } + } + if r.distanceLte != nil { + t := *r.distanceLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", t, "multi") + } + } + if r.distanceN != nil { + t := *r.distanceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", t, "multi") + } + } + if r.distanceUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit", r.distanceUnit, "") + } + if r.distanceUnitN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit__n", r.distanceUnitN, "") + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/client.go b/client.go index 7ced10a11..80c533f63 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,7 +40,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the NetBox REST API API v4.0.3 (4.0) +// APIClient manages communication with the NetBox REST API API v4.1.1 (4.1) // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index e65a51b2f..82caa23f4 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "go-netbox/4.0.3", + UserAgent: "go-netbox/4.1.1", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/ASN.md b/docs/ASN.md index fed0cdda3..730b7346a 100644 --- a/docs/ASN.md +++ b/docs/ASN.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableRIR**](RIR.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIR**](BriefRIR.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewASN -`func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN` +`func NewASN(id int32, url string, displayUrl string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN` NewASN instantiates a new ASN object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ASN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ASN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ASN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ASN) GetDisplay() string` @@ -120,20 +141,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASN) GetRir() RIR` +`func (o *ASN) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASN) GetRirOk() (*RIR, bool)` +`func (o *ASN) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASN) SetRir(v RIR)` +`func (o *ASN) SetRir(v BriefRIR)` SetRir sets Rir field to given value. @@ -155,20 +176,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASN) GetTenant() Tenant` +`func (o *ASN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASN) GetTenantOk() (*Tenant, bool)` +`func (o *ASN) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASN) SetTenant(v Tenant)` +`func (o *ASN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRange.md b/docs/ASNRange.md index 8efc8ef06..5158cf9e4 100644 --- a/docs/ASNRange.md +++ b/docs/ASNRange.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**RIR**](RIR.md) | | +**Rir** | [**BriefRIR**](BriefRIR.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewASNRange -`func NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` +`func NewASNRange(id int32, url string, displayUrl string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` NewASNRange instantiates a new ASNRange object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ASNRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ASNRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ASNRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ASNRange) GetDisplay() string` @@ -141,20 +162,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRange) GetRir() RIR` +`func (o *ASNRange) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRange) GetRirOk() (*RIR, bool)` +`func (o *ASNRange) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRange) SetRir(v RIR)` +`func (o *ASNRange) SetRir(v BriefRIR)` SetRir sets Rir field to given value. @@ -201,20 +222,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRange) GetTenant() Tenant` +`func (o *ASNRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRange) GetTenantOk() (*Tenant, bool)` +`func (o *ASNRange) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRange) SetTenant(v Tenant)` +`func (o *ASNRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRangeRequest.md b/docs/ASNRangeRequest.md index c7b5e284f..1c1f5dd35 100644 --- a/docs/ASNRangeRequest.md +++ b/docs/ASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewASNRangeRequest -`func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64, ) *ASNRangeRequest` +`func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64, ) *ASNRangeRequest` NewASNRangeRequest instantiates a new ASNRangeRequest object This constructor will assign default values to properties that have it defined, @@ -75,20 +75,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRangeRequest) GetRir() RIRRequest` +`func (o *ASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRangeRequest) SetRir(v RIRRequest)` +`func (o *ASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -135,20 +135,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRangeRequest) GetTenant() TenantRequest` +`func (o *ASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRequest.md b/docs/ASNRequest.md index c82eb0830..ef24115a1 100644 --- a/docs/ASNRequest.md +++ b/docs/ASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -53,20 +53,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASNRequest) GetRir() RIRRequest` +`func (o *ASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRequest) SetRir(v RIRRequest)` +`func (o *ASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -88,20 +88,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASNRequest) GetTenant() TenantRequest` +`func (o *ASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRequest) SetTenant(v TenantRequest)` +`func (o *ASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/Aggregate.md b/docs/Aggregate.md index aab5e7099..781d2e690 100644 --- a/docs/Aggregate.md +++ b/docs/Aggregate.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Rir** | [**RIR**](RIR.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Rir** | [**BriefRIR**](BriefRIR.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewAggregate -`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` +`func NewAggregate(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` NewAggregate instantiates a new Aggregate object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Aggregate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Aggregate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Aggregate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Aggregate) GetDisplay() string` @@ -140,40 +161,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *Aggregate) GetRir() RIR` +`func (o *Aggregate) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *Aggregate) GetRirOk() (*RIR, bool)` +`func (o *Aggregate) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *Aggregate) SetRir(v RIR)` +`func (o *Aggregate) SetRir(v BriefRIR)` SetRir sets Rir field to given value. ### GetTenant -`func (o *Aggregate) GetTenant() Tenant` +`func (o *Aggregate) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Aggregate) GetTenantOk() (*Tenant, bool)` +`func (o *Aggregate) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Aggregate) SetTenant(v Tenant)` +`func (o *Aggregate) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/AggregateRequest.md b/docs/AggregateRequest.md index 197cf1897..a11fa9f7a 100644 --- a/docs/AggregateRequest.md +++ b/docs/AggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewAggregateRequest -`func NewAggregateRequest(prefix string, rir RIRRequest, ) *AggregateRequest` +`func NewAggregateRequest(prefix string, rir BriefRIRRequest, ) *AggregateRequest` NewAggregateRequest instantiates a new AggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *AggregateRequest) GetRir() RIRRequest` +`func (o *AggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *AggregateRequest) SetRir(v RIRRequest)` +`func (o *AggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *AggregateRequest) GetTenant() TenantRequest` +`func (o *AggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *AggregateRequest) SetTenant(v TenantRequest)` +`func (o *AggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/AvailableIP.md b/docs/AvailableIP.md index 9fa0b65df..961593aa5 100644 --- a/docs/AvailableIP.md +++ b/docs/AvailableIP.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Address** | **string** | | [readonly] -**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] +**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] **Description** | Pointer to **string** | | [optional] ## Methods ### NewAvailableIP -`func NewAvailableIP(family int32, address string, vrf NullableVRF, ) *AvailableIP` +`func NewAvailableIP(family int32, address string, vrf NullableBriefVRF, ) *AvailableIP` NewAvailableIP instantiates a new AvailableIP object This constructor will assign default values to properties that have it defined, @@ -70,20 +70,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *AvailableIP) GetVrf() VRF` +`func (o *AvailableIP) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailableIP) GetVrfOk() (*VRF, bool)` +`func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailableIP) SetVrf(v VRF)` +`func (o *AvailableIP) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailablePrefix.md b/docs/AvailablePrefix.md index e9f9da1fe..dd8738306 100644 --- a/docs/AvailablePrefix.md +++ b/docs/AvailablePrefix.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Prefix** | **string** | | [readonly] -**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] +**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] ## Methods ### NewAvailablePrefix -`func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF, ) *AvailablePrefix` +`func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF, ) *AvailablePrefix` NewAvailablePrefix instantiates a new AvailablePrefix object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetPrefix sets Prefix field to given value. ### GetVrf -`func (o *AvailablePrefix) GetVrf() VRF` +`func (o *AvailablePrefix) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailablePrefix) GetVrfOk() (*VRF, bool)` +`func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailablePrefix) SetVrf(v VRF)` +`func (o *AvailablePrefix) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailableVLAN.md b/docs/AvailableVLAN.md index 86e18eea9..c00225080 100644 --- a/docs/AvailableVLAN.md +++ b/docs/AvailableVLAN.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Vid** | **int32** | | [readonly] -**Group** | [**NullableVLANGroup**](VLANGroup.md) | | [readonly] +**Group** | [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [readonly] ## Methods ### NewAvailableVLAN -`func NewAvailableVLAN(vid int32, group NullableVLANGroup, ) *AvailableVLAN` +`func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup, ) *AvailableVLAN` NewAvailableVLAN instantiates a new AvailableVLAN object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetVid sets Vid field to given value. ### GetGroup -`func (o *AvailableVLAN) GetGroup() VLANGroup` +`func (o *AvailableVLAN) GetGroup() BriefVLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool)` +`func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *AvailableVLAN) SetGroup(v VLANGroup)` +`func (o *AvailableVLAN) SetGroup(v BriefVLANGroup)` SetGroup sets Group field to given value. diff --git a/docs/Bookmark.md b/docs/Bookmark.md index 68ef93cce..05631b586 100644 --- a/docs/Bookmark.md +++ b/docs/Bookmark.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **interface{}** | | [readonly] -**User** | [**User**](User.md) | | +**User** | [**BriefUser**](BriefUser.md) | | **Created** | **time.Time** | | [readonly] ## Methods ### NewBookmark -`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time, ) *Bookmark` +`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, ) *Bookmark` NewBookmark instantiates a new Bookmark object This constructor will assign default values to properties that have it defined, @@ -164,20 +164,20 @@ SetObject sets Object field to given value. UnsetObject ensures that no value is present for Object, not even an explicit nil ### GetUser -`func (o *Bookmark) GetUser() User` +`func (o *Bookmark) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Bookmark) GetUserOk() (*User, bool)` +`func (o *Bookmark) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Bookmark) SetUser(v User)` +`func (o *Bookmark) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/BookmarkRequest.md b/docs/BookmarkRequest.md index caeb3fc59..ab40a26e9 100644 --- a/docs/BookmarkRequest.md +++ b/docs/BookmarkRequest.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | ## Methods ### NewBookmarkRequest -`func NewBookmarkRequest(objectType string, objectId int64, user UserRequest, ) *BookmarkRequest` +`func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest, ) *BookmarkRequest` NewBookmarkRequest instantiates a new BookmarkRequest object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetObjectId sets ObjectId field to given value. ### GetUser -`func (o *BookmarkRequest) GetUser() UserRequest` +`func (o *BookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *BookmarkRequest) SetUser(v UserRequest)` +`func (o *BookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/BriefCable.md b/docs/BriefCable.md new file mode 100644 index 000000000..16efce10b --- /dev/null +++ b/docs/BriefCable.md @@ -0,0 +1,145 @@ +# BriefCable + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Label** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCable + +`func NewBriefCable(id int32, url string, display string, ) *BriefCable` + +NewBriefCable instantiates a new BriefCable object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCableWithDefaults + +`func NewBriefCableWithDefaults() *BriefCable` + +NewBriefCableWithDefaults instantiates a new BriefCable object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCable) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCable) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCable) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCable) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCable) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCable) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCable) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCable) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCable) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetLabel + +`func (o *BriefCable) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefCable) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefCable) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefCable) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefCable) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCable) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCable) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCable) HasDescription() bool` + +HasDescription 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/docs/BriefCableRequest.md b/docs/BriefCableRequest.md new file mode 100644 index 000000000..7a5b52bd6 --- /dev/null +++ b/docs/BriefCableRequest.md @@ -0,0 +1,82 @@ +# BriefCableRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Label** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCableRequest + +`func NewBriefCableRequest() *BriefCableRequest` + +NewBriefCableRequest instantiates a new BriefCableRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCableRequestWithDefaults + +`func NewBriefCableRequestWithDefaults() *BriefCableRequest` + +NewBriefCableRequestWithDefaults instantiates a new BriefCableRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetLabel + +`func (o *BriefCableRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefCableRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefCableRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefCableRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefCableRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCableRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCableRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCableRequest) HasDescription() bool` + +HasDescription 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/docs/BriefCircuit.md b/docs/BriefCircuit.md new file mode 100644 index 000000000..138f8f8fe --- /dev/null +++ b/docs/BriefCircuit.md @@ -0,0 +1,161 @@ +# BriefCircuit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProvider**](BriefProvider.md) | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCircuit + +`func NewBriefCircuit(id int32, url string, display string, cid string, provider BriefProvider, ) *BriefCircuit` + +NewBriefCircuit instantiates a new BriefCircuit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitWithDefaults + +`func NewBriefCircuitWithDefaults() *BriefCircuit` + +NewBriefCircuitWithDefaults instantiates a new BriefCircuit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuit) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuit) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuit) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuit) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuit) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuit) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuit) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuit) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuit) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetCid + +`func (o *BriefCircuit) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *BriefCircuit) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *BriefCircuit) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProvider + +`func (o *BriefCircuit) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *BriefCircuit) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *BriefCircuit) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + +### GetDescription + +`func (o *BriefCircuit) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuit) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuit) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuit) HasDescription() bool` + +HasDescription 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/docs/BriefCircuitGroup.md b/docs/BriefCircuitGroup.md new file mode 100644 index 000000000..25564b648 --- /dev/null +++ b/docs/BriefCircuitGroup.md @@ -0,0 +1,114 @@ +# BriefCircuitGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | + +## Methods + +### NewBriefCircuitGroup + +`func NewBriefCircuitGroup(id int32, url string, display string, name string, ) *BriefCircuitGroup` + +NewBriefCircuitGroup instantiates a new BriefCircuitGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupWithDefaults + +`func NewBriefCircuitGroupWithDefaults() *BriefCircuitGroup` + +NewBriefCircuitGroupWithDefaults instantiates a new BriefCircuitGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuitGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuitGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuitGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuitGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuitGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuitGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuitGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuitGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuitGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCircuitGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitGroup) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializer.md b/docs/BriefCircuitGroupAssignmentSerializer.md new file mode 100644 index 000000000..2036b6e32 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializer.md @@ -0,0 +1,140 @@ +# BriefCircuitGroupAssignmentSerializer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Group** | [**BriefCircuitGroup**](BriefCircuitGroup.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] + +## Methods + +### NewBriefCircuitGroupAssignmentSerializer + +`func NewBriefCircuitGroupAssignmentSerializer(id int32, url string, display string, group BriefCircuitGroup, ) *BriefCircuitGroupAssignmentSerializer` + +NewBriefCircuitGroupAssignmentSerializer instantiates a new BriefCircuitGroupAssignmentSerializer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupAssignmentSerializerWithDefaults + +`func NewBriefCircuitGroupAssignmentSerializerWithDefaults() *BriefCircuitGroupAssignmentSerializer` + +NewBriefCircuitGroupAssignmentSerializerWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuitGroupAssignmentSerializer) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuitGroupAssignmentSerializer) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuitGroupAssignmentSerializer) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuitGroupAssignmentSerializer) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuitGroupAssignmentSerializer) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuitGroupAssignmentSerializer) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetGroup + +`func (o *BriefCircuitGroupAssignmentSerializer) GetGroup() BriefCircuitGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetGroupOk() (*BriefCircuitGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *BriefCircuitGroupAssignmentSerializer) SetGroup(v BriefCircuitGroup)` + +SetGroup sets Group field to given value. + + +### GetPriority + +`func (o *BriefCircuitGroupAssignmentSerializer) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *BriefCircuitGroupAssignmentSerializer) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *BriefCircuitGroupAssignmentSerializer) HasPriority() bool` + +HasPriority 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/docs/BriefCircuitGroupAssignmentSerializerPriority.md b/docs/BriefCircuitGroupAssignmentSerializerPriority.md new file mode 100644 index 000000000..1d9667157 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerPriority.md @@ -0,0 +1,82 @@ +# BriefCircuitGroupAssignmentSerializerPriority + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Label** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityLabel**](BriefCircuitGroupAssignmentSerializerPriorityLabel.md) | | [optional] + +## Methods + +### NewBriefCircuitGroupAssignmentSerializerPriority + +`func NewBriefCircuitGroupAssignmentSerializerPriority() *BriefCircuitGroupAssignmentSerializerPriority` + +NewBriefCircuitGroupAssignmentSerializerPriority instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults + +`func NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults() *BriefCircuitGroupAssignmentSerializerPriority` + +NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValue() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValueOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) SetValue(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabel() BriefCircuitGroupAssignmentSerializerPriorityLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabelOk() (*BriefCircuitGroupAssignmentSerializerPriorityLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitGroupAssignmentSerializerPriorityLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefCircuitGroupAssignmentSerializerPriority) HasLabel() bool` + +HasLabel 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/docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md b/docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md new file mode 100644 index 000000000..9cca225d8 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md @@ -0,0 +1,17 @@ +# BriefCircuitGroupAssignmentSerializerPriorityLabel + +## Enum + + +* `PRIMARY` (value: `"Primary"`) + +* `SECONDARY` (value: `"Secondary"`) + +* `TERTIARY` (value: `"Tertiary"`) + +* `INACTIVE` (value: `"Inactive"`) + + +[[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/docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md b/docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md new file mode 100644 index 000000000..00692d0a1 --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md @@ -0,0 +1,19 @@ +# BriefCircuitGroupAssignmentSerializerPriorityValue + +## Enum + + +* `PRIMARY` (value: `"primary"`) + +* `SECONDARY` (value: `"secondary"`) + +* `TERTIARY` (value: `"tertiary"`) + +* `INACTIVE` (value: `"inactive"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitGroupAssignmentSerializerRequest.md b/docs/BriefCircuitGroupAssignmentSerializerRequest.md new file mode 100644 index 000000000..e05840b8b --- /dev/null +++ b/docs/BriefCircuitGroupAssignmentSerializerRequest.md @@ -0,0 +1,77 @@ +# BriefCircuitGroupAssignmentSerializerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] + +## Methods + +### NewBriefCircuitGroupAssignmentSerializerRequest + +`func NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupRequest, ) *BriefCircuitGroupAssignmentSerializerRequest` + +NewBriefCircuitGroupAssignmentSerializerRequest instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults + +`func NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults() *BriefCircuitGroupAssignmentSerializerRequest` + +NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetPriority + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *BriefCircuitGroupAssignmentSerializerRequest) HasPriority() bool` + +HasPriority 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/docs/BriefCircuitGroupRequest.md b/docs/BriefCircuitGroupRequest.md new file mode 100644 index 000000000..edd865f31 --- /dev/null +++ b/docs/BriefCircuitGroupRequest.md @@ -0,0 +1,51 @@ +# BriefCircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | + +## Methods + +### NewBriefCircuitGroupRequest + +`func NewBriefCircuitGroupRequest(name string, ) *BriefCircuitGroupRequest` + +NewBriefCircuitGroupRequest instantiates a new BriefCircuitGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitGroupRequestWithDefaults + +`func NewBriefCircuitGroupRequestWithDefaults() *BriefCircuitGroupRequest` + +NewBriefCircuitGroupRequestWithDefaults instantiates a new BriefCircuitGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefCircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitRequest.md b/docs/BriefCircuitRequest.md new file mode 100644 index 000000000..9dca17169 --- /dev/null +++ b/docs/BriefCircuitRequest.md @@ -0,0 +1,98 @@ +# BriefCircuitRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCircuitRequest + +`func NewBriefCircuitRequest(cid string, provider BriefProviderRequest, ) *BriefCircuitRequest` + +NewBriefCircuitRequest instantiates a new BriefCircuitRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitRequestWithDefaults + +`func NewBriefCircuitRequestWithDefaults() *BriefCircuitRequest` + +NewBriefCircuitRequestWithDefaults instantiates a new BriefCircuitRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCid + +`func (o *BriefCircuitRequest) GetCid() string` + +GetCid returns the Cid field if non-nil, zero value otherwise. + +### GetCidOk + +`func (o *BriefCircuitRequest) GetCidOk() (*string, bool)` + +GetCidOk returns a tuple with the Cid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCid + +`func (o *BriefCircuitRequest) SetCid(v string)` + +SetCid sets Cid field to given value. + + +### GetProvider + +`func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *BriefCircuitRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + +### GetDescription + +`func (o *BriefCircuitRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuitRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuitRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuitRequest) HasDescription() bool` + +HasDescription 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/docs/BriefCircuitType.md b/docs/BriefCircuitType.md new file mode 100644 index 000000000..77987dfcd --- /dev/null +++ b/docs/BriefCircuitType.md @@ -0,0 +1,182 @@ +# BriefCircuitType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**CircuitCount** | **int64** | | [readonly] + +## Methods + +### NewBriefCircuitType + +`func NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefCircuitType` + +NewBriefCircuitType instantiates a new BriefCircuitType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitTypeWithDefaults + +`func NewBriefCircuitTypeWithDefaults() *BriefCircuitType` + +NewBriefCircuitTypeWithDefaults instantiates a new BriefCircuitType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCircuitType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCircuitType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCircuitType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCircuitType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCircuitType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCircuitType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCircuitType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCircuitType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCircuitType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCircuitType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitType) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefCircuitType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefCircuitType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefCircuitType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefCircuitType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuitType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuitType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuitType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCircuitCount + +`func (o *BriefCircuitType) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *BriefCircuitType) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *BriefCircuitType) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCircuitTypeRequest.md b/docs/BriefCircuitTypeRequest.md new file mode 100644 index 000000000..38531bc02 --- /dev/null +++ b/docs/BriefCircuitTypeRequest.md @@ -0,0 +1,98 @@ +# BriefCircuitTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCircuitTypeRequest + +`func NewBriefCircuitTypeRequest(name string, slug string, ) *BriefCircuitTypeRequest` + +NewBriefCircuitTypeRequest instantiates a new BriefCircuitTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCircuitTypeRequestWithDefaults + +`func NewBriefCircuitTypeRequestWithDefaults() *BriefCircuitTypeRequest` + +NewBriefCircuitTypeRequestWithDefaults instantiates a new BriefCircuitTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefCircuitTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCircuitTypeRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCircuitTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefCircuitTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefCircuitTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefCircuitTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefCircuitTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCircuitTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCircuitTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCircuitTypeRequest) HasDescription() bool` + +HasDescription 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/docs/BriefCluster.md b/docs/BriefCluster.md new file mode 100644 index 000000000..b1aab83b0 --- /dev/null +++ b/docs/BriefCluster.md @@ -0,0 +1,166 @@ +# BriefCluster + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefCluster + +`func NewBriefCluster(id int32, url string, display string, name string, ) *BriefCluster` + +NewBriefCluster instantiates a new BriefCluster object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterWithDefaults + +`func NewBriefClusterWithDefaults() *BriefCluster` + +NewBriefClusterWithDefaults instantiates a new BriefCluster object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCluster) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCluster) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCluster) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCluster) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCluster) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCluster) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCluster) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCluster) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCluster) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCluster) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCluster) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCluster) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefCluster) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCluster) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCluster) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCluster) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVirtualmachineCount + +`func (o *BriefCluster) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *BriefCluster) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *BriefCluster) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *BriefCluster) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/docs/BriefClusterGroup.md b/docs/BriefClusterGroup.md new file mode 100644 index 000000000..2fe6cce7f --- /dev/null +++ b/docs/BriefClusterGroup.md @@ -0,0 +1,182 @@ +# BriefClusterGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ClusterCount** | **int64** | | [readonly] + +## Methods + +### NewBriefClusterGroup + +`func NewBriefClusterGroup(id int32, url string, display string, name string, slug string, clusterCount int64, ) *BriefClusterGroup` + +NewBriefClusterGroup instantiates a new BriefClusterGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterGroupWithDefaults + +`func NewBriefClusterGroupWithDefaults() *BriefClusterGroup` + +NewBriefClusterGroupWithDefaults instantiates a new BriefClusterGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefClusterGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefClusterGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefClusterGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefClusterGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefClusterGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefClusterGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefClusterGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefClusterGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefClusterGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefClusterGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetClusterCount + +`func (o *BriefClusterGroup) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *BriefClusterGroup) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *BriefClusterGroup) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterGroupRequest.md b/docs/BriefClusterGroupRequest.md new file mode 100644 index 000000000..c5dbaff19 --- /dev/null +++ b/docs/BriefClusterGroupRequest.md @@ -0,0 +1,98 @@ +# BriefClusterGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefClusterGroupRequest + +`func NewBriefClusterGroupRequest(name string, slug string, ) *BriefClusterGroupRequest` + +NewBriefClusterGroupRequest instantiates a new BriefClusterGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterGroupRequestWithDefaults + +`func NewBriefClusterGroupRequestWithDefaults() *BriefClusterGroupRequest` + +NewBriefClusterGroupRequestWithDefaults instantiates a new BriefClusterGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefClusterGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefClusterRequest.md b/docs/BriefClusterRequest.md new file mode 100644 index 000000000..e2dc40671 --- /dev/null +++ b/docs/BriefClusterRequest.md @@ -0,0 +1,77 @@ +# BriefClusterRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefClusterRequest + +`func NewBriefClusterRequest(name string, ) *BriefClusterRequest` + +NewBriefClusterRequest instantiates a new BriefClusterRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterRequestWithDefaults + +`func NewBriefClusterRequestWithDefaults() *BriefClusterRequest` + +NewBriefClusterRequestWithDefaults instantiates a new BriefClusterRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefClusterRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefClusterRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterRequest) HasDescription() bool` + +HasDescription 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/docs/BriefClusterType.md b/docs/BriefClusterType.md new file mode 100644 index 000000000..7464c686a --- /dev/null +++ b/docs/BriefClusterType.md @@ -0,0 +1,182 @@ +# BriefClusterType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ClusterCount** | **int64** | | [readonly] + +## Methods + +### NewBriefClusterType + +`func NewBriefClusterType(id int32, url string, display string, name string, slug string, clusterCount int64, ) *BriefClusterType` + +NewBriefClusterType instantiates a new BriefClusterType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterTypeWithDefaults + +`func NewBriefClusterTypeWithDefaults() *BriefClusterType` + +NewBriefClusterTypeWithDefaults instantiates a new BriefClusterType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefClusterType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefClusterType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefClusterType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefClusterType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefClusterType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefClusterType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefClusterType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefClusterType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefClusterType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefClusterType) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterType) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterType) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetClusterCount + +`func (o *BriefClusterType) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *BriefClusterType) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *BriefClusterType) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefClusterTypeRequest.md b/docs/BriefClusterTypeRequest.md new file mode 100644 index 000000000..516608463 --- /dev/null +++ b/docs/BriefClusterTypeRequest.md @@ -0,0 +1,98 @@ +# BriefClusterTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefClusterTypeRequest + +`func NewBriefClusterTypeRequest(name string, slug string, ) *BriefClusterTypeRequest` + +NewBriefClusterTypeRequest instantiates a new BriefClusterTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefClusterTypeRequestWithDefaults + +`func NewBriefClusterTypeRequestWithDefaults() *BriefClusterTypeRequest` + +NewBriefClusterTypeRequestWithDefaults instantiates a new BriefClusterTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefClusterTypeRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefClusterTypeRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefClusterTypeRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefClusterTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefClusterTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefClusterTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefClusterTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefClusterTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefClusterTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefClusterTypeRequest) HasDescription() bool` + +HasDescription 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/docs/BriefConfigTemplate.md b/docs/BriefConfigTemplate.md new file mode 100644 index 000000000..ea23146a7 --- /dev/null +++ b/docs/BriefConfigTemplate.md @@ -0,0 +1,140 @@ +# BriefConfigTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefConfigTemplate + +`func NewBriefConfigTemplate(id int32, url string, display string, name string, ) *BriefConfigTemplate` + +NewBriefConfigTemplate instantiates a new BriefConfigTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefConfigTemplateWithDefaults + +`func NewBriefConfigTemplateWithDefaults() *BriefConfigTemplate` + +NewBriefConfigTemplateWithDefaults instantiates a new BriefConfigTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefConfigTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefConfigTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefConfigTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefConfigTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefConfigTemplate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefConfigTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefConfigTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefConfigTemplate) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefConfigTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefConfigTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefConfigTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefConfigTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefConfigTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefConfigTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefConfigTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefConfigTemplate) HasDescription() bool` + +HasDescription 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/docs/BriefConfigTemplateRequest.md b/docs/BriefConfigTemplateRequest.md new file mode 100644 index 000000000..0ae8e8d49 --- /dev/null +++ b/docs/BriefConfigTemplateRequest.md @@ -0,0 +1,77 @@ +# BriefConfigTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefConfigTemplateRequest + +`func NewBriefConfigTemplateRequest(name string, ) *BriefConfigTemplateRequest` + +NewBriefConfigTemplateRequest instantiates a new BriefConfigTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefConfigTemplateRequestWithDefaults + +`func NewBriefConfigTemplateRequestWithDefaults() *BriefConfigTemplateRequest` + +NewBriefConfigTemplateRequestWithDefaults instantiates a new BriefConfigTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefConfigTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefConfigTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefConfigTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefConfigTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefConfigTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefConfigTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefConfigTemplateRequest) HasDescription() bool` + +HasDescription 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/docs/BriefContact.md b/docs/BriefContact.md new file mode 100644 index 000000000..966138ba8 --- /dev/null +++ b/docs/BriefContact.md @@ -0,0 +1,140 @@ +# BriefContact + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContact + +`func NewBriefContact(id int32, url string, display string, name string, ) *BriefContact` + +NewBriefContact instantiates a new BriefContact object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactWithDefaults + +`func NewBriefContactWithDefaults() *BriefContact` + +NewBriefContactWithDefaults instantiates a new BriefContact object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefContact) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefContact) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefContact) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefContact) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefContact) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefContact) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefContact) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefContact) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefContact) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefContact) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContact) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContact) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefContact) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContact) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContact) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContact) HasDescription() bool` + +HasDescription 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/docs/BriefContactGroup.md b/docs/BriefContactGroup.md new file mode 100644 index 000000000..0b6812739 --- /dev/null +++ b/docs/BriefContactGroup.md @@ -0,0 +1,203 @@ +# BriefContactGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ContactCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefContactGroup + +`func NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32, ) *BriefContactGroup` + +NewBriefContactGroup instantiates a new BriefContactGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactGroupWithDefaults + +`func NewBriefContactGroupWithDefaults() *BriefContactGroup` + +NewBriefContactGroupWithDefaults instantiates a new BriefContactGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefContactGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefContactGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefContactGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefContactGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefContactGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefContactGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefContactGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefContactGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefContactGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefContactGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetContactCount + +`func (o *BriefContactGroup) GetContactCount() int32` + +GetContactCount returns the ContactCount field if non-nil, zero value otherwise. + +### GetContactCountOk + +`func (o *BriefContactGroup) GetContactCountOk() (*int32, bool)` + +GetContactCountOk returns a tuple with the ContactCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetContactCount + +`func (o *BriefContactGroup) SetContactCount(v int32)` + +SetContactCount sets ContactCount field to given value. + + +### GetDepth + +`func (o *BriefContactGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefContactGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefContactGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefContactGroupRequest.md b/docs/BriefContactGroupRequest.md new file mode 100644 index 000000000..43bd0093d --- /dev/null +++ b/docs/BriefContactGroupRequest.md @@ -0,0 +1,98 @@ +# BriefContactGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactGroupRequest + +`func NewBriefContactGroupRequest(name string, slug string, ) *BriefContactGroupRequest` + +NewBriefContactGroupRequest instantiates a new BriefContactGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactGroupRequestWithDefaults + +`func NewBriefContactGroupRequestWithDefaults() *BriefContactGroupRequest` + +NewBriefContactGroupRequestWithDefaults instantiates a new BriefContactGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefContactGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefContactRequest.md b/docs/BriefContactRequest.md new file mode 100644 index 000000000..fcfc9f9a6 --- /dev/null +++ b/docs/BriefContactRequest.md @@ -0,0 +1,77 @@ +# BriefContactRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactRequest + +`func NewBriefContactRequest(name string, ) *BriefContactRequest` + +NewBriefContactRequest instantiates a new BriefContactRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactRequestWithDefaults + +`func NewBriefContactRequestWithDefaults() *BriefContactRequest` + +NewBriefContactRequestWithDefaults instantiates a new BriefContactRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefContactRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefContactRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactRequest) HasDescription() bool` + +HasDescription 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/docs/BriefContactRole.md b/docs/BriefContactRole.md new file mode 100644 index 000000000..0d0856a58 --- /dev/null +++ b/docs/BriefContactRole.md @@ -0,0 +1,161 @@ +# BriefContactRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactRole + +`func NewBriefContactRole(id int32, url string, display string, name string, slug string, ) *BriefContactRole` + +NewBriefContactRole instantiates a new BriefContactRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactRoleWithDefaults + +`func NewBriefContactRoleWithDefaults() *BriefContactRole` + +NewBriefContactRoleWithDefaults instantiates a new BriefContactRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefContactRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefContactRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefContactRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefContactRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefContactRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefContactRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefContactRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefContactRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefContactRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefContactRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactRole) HasDescription() bool` + +HasDescription 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/docs/BriefContactRoleRequest.md b/docs/BriefContactRoleRequest.md new file mode 100644 index 000000000..e8a89fac6 --- /dev/null +++ b/docs/BriefContactRoleRequest.md @@ -0,0 +1,98 @@ +# BriefContactRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefContactRoleRequest + +`func NewBriefContactRoleRequest(name string, slug string, ) *BriefContactRoleRequest` + +NewBriefContactRoleRequest instantiates a new BriefContactRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefContactRoleRequestWithDefaults + +`func NewBriefContactRoleRequestWithDefaults() *BriefContactRoleRequest` + +NewBriefContactRoleRequestWithDefaults instantiates a new BriefContactRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefContactRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefContactRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefContactRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefContactRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefContactRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefContactRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefContactRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefContactRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefContactRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefContactRoleRequest) HasDescription() bool` + +HasDescription 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/docs/BriefCustomFieldChoiceSet.md b/docs/BriefCustomFieldChoiceSet.md new file mode 100644 index 000000000..6f5b27675 --- /dev/null +++ b/docs/BriefCustomFieldChoiceSet.md @@ -0,0 +1,161 @@ +# BriefCustomFieldChoiceSet + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**ChoicesCount** | **string** | | [readonly] + +## Methods + +### NewBriefCustomFieldChoiceSet + +`func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string, ) *BriefCustomFieldChoiceSet` + +NewBriefCustomFieldChoiceSet instantiates a new BriefCustomFieldChoiceSet object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCustomFieldChoiceSetWithDefaults + +`func NewBriefCustomFieldChoiceSetWithDefaults() *BriefCustomFieldChoiceSet` + +NewBriefCustomFieldChoiceSetWithDefaults instantiates a new BriefCustomFieldChoiceSet object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefCustomFieldChoiceSet) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefCustomFieldChoiceSet) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefCustomFieldChoiceSet) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefCustomFieldChoiceSet) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefCustomFieldChoiceSet) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefCustomFieldChoiceSet) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefCustomFieldChoiceSet) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefCustomFieldChoiceSet) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefCustomFieldChoiceSet) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefCustomFieldChoiceSet) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCustomFieldChoiceSet) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCustomFieldChoiceSet) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefCustomFieldChoiceSet) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCustomFieldChoiceSet) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCustomFieldChoiceSet) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCustomFieldChoiceSet) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetChoicesCount + +`func (o *BriefCustomFieldChoiceSet) GetChoicesCount() string` + +GetChoicesCount returns the ChoicesCount field if non-nil, zero value otherwise. + +### GetChoicesCountOk + +`func (o *BriefCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool)` + +GetChoicesCountOk returns a tuple with the ChoicesCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetChoicesCount + +`func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string)` + +SetChoicesCount sets ChoicesCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefCustomFieldChoiceSetRequest.md b/docs/BriefCustomFieldChoiceSetRequest.md new file mode 100644 index 000000000..5add176ca --- /dev/null +++ b/docs/BriefCustomFieldChoiceSetRequest.md @@ -0,0 +1,77 @@ +# BriefCustomFieldChoiceSetRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefCustomFieldChoiceSetRequest + +`func NewBriefCustomFieldChoiceSetRequest(name string, ) *BriefCustomFieldChoiceSetRequest` + +NewBriefCustomFieldChoiceSetRequest instantiates a new BriefCustomFieldChoiceSetRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefCustomFieldChoiceSetRequestWithDefaults + +`func NewBriefCustomFieldChoiceSetRequestWithDefaults() *BriefCustomFieldChoiceSetRequest` + +NewBriefCustomFieldChoiceSetRequestWithDefaults instantiates a new BriefCustomFieldChoiceSetRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefCustomFieldChoiceSetRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefCustomFieldChoiceSetRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefCustomFieldChoiceSetRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefCustomFieldChoiceSetRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefCustomFieldChoiceSetRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefCustomFieldChoiceSetRequest) HasDescription() bool` + +HasDescription 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/docs/BriefDataFile.md b/docs/BriefDataFile.md new file mode 100644 index 000000000..f083e7ab4 --- /dev/null +++ b/docs/BriefDataFile.md @@ -0,0 +1,114 @@ +# BriefDataFile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Path** | **string** | File path relative to the data source's root | [readonly] + +## Methods + +### NewBriefDataFile + +`func NewBriefDataFile(id int32, url string, display string, path string, ) *BriefDataFile` + +NewBriefDataFile instantiates a new BriefDataFile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDataFileWithDefaults + +`func NewBriefDataFileWithDefaults() *BriefDataFile` + +NewBriefDataFileWithDefaults instantiates a new BriefDataFile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDataFile) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDataFile) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDataFile) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDataFile) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDataFile) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDataFile) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDataFile) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDataFile) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDataFile) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetPath + +`func (o *BriefDataFile) GetPath() string` + +GetPath returns the Path field if non-nil, zero value otherwise. + +### GetPathOk + +`func (o *BriefDataFile) GetPathOk() (*string, bool)` + +GetPathOk returns a tuple with the Path field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPath + +`func (o *BriefDataFile) SetPath(v string)` + +SetPath sets Path field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefDataSource.md b/docs/BriefDataSource.md new file mode 100644 index 000000000..38d2eba30 --- /dev/null +++ b/docs/BriefDataSource.md @@ -0,0 +1,140 @@ +# BriefDataSource + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDataSource + +`func NewBriefDataSource(id int32, url string, display string, name string, ) *BriefDataSource` + +NewBriefDataSource instantiates a new BriefDataSource object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDataSourceWithDefaults + +`func NewBriefDataSourceWithDefaults() *BriefDataSource` + +NewBriefDataSourceWithDefaults instantiates a new BriefDataSource object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDataSource) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDataSource) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDataSource) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDataSource) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDataSource) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDataSource) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDataSource) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDataSource) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDataSource) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefDataSource) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDataSource) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDataSource) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefDataSource) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDataSource) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDataSource) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDataSource) HasDescription() bool` + +HasDescription 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/docs/BriefDataSourceRequest.md b/docs/BriefDataSourceRequest.md new file mode 100644 index 000000000..2fa1fac6a --- /dev/null +++ b/docs/BriefDataSourceRequest.md @@ -0,0 +1,77 @@ +# BriefDataSourceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDataSourceRequest + +`func NewBriefDataSourceRequest(name string, ) *BriefDataSourceRequest` + +NewBriefDataSourceRequest instantiates a new BriefDataSourceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDataSourceRequestWithDefaults + +`func NewBriefDataSourceRequestWithDefaults() *BriefDataSourceRequest` + +NewBriefDataSourceRequestWithDefaults instantiates a new BriefDataSourceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefDataSourceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDataSourceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDataSourceRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefDataSourceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDataSourceRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDataSourceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDataSourceRequest) HasDescription() bool` + +HasDescription 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/docs/BriefDevice.md b/docs/BriefDevice.md new file mode 100644 index 000000000..0748fff49 --- /dev/null +++ b/docs/BriefDevice.md @@ -0,0 +1,155 @@ +# BriefDevice + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDevice + +`func NewBriefDevice(id int32, url string, display string, ) *BriefDevice` + +NewBriefDevice instantiates a new BriefDevice object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceWithDefaults + +`func NewBriefDeviceWithDefaults() *BriefDevice` + +NewBriefDeviceWithDefaults instantiates a new BriefDevice object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDevice) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDevice) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDevice) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDevice) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDevice) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDevice) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDevice) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDevice) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDevice) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefDevice) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDevice) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDevice) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefDevice) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *BriefDevice) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *BriefDevice) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *BriefDevice) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDevice) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDevice) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDevice) HasDescription() bool` + +HasDescription 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/docs/BriefDeviceRequest.md b/docs/BriefDeviceRequest.md new file mode 100644 index 000000000..9671b9f39 --- /dev/null +++ b/docs/BriefDeviceRequest.md @@ -0,0 +1,92 @@ +# BriefDeviceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **NullableString** | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDeviceRequest + +`func NewBriefDeviceRequest() *BriefDeviceRequest` + +NewBriefDeviceRequest instantiates a new BriefDeviceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceRequestWithDefaults + +`func NewBriefDeviceRequestWithDefaults() *BriefDeviceRequest` + +NewBriefDeviceRequestWithDefaults instantiates a new BriefDeviceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefDeviceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDeviceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDeviceRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefDeviceRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### SetNameNil + +`func (o *BriefDeviceRequest) SetNameNil(b bool)` + + SetNameNil sets the value for Name to be an explicit nil + +### UnsetName +`func (o *BriefDeviceRequest) UnsetName()` + +UnsetName ensures that no value is present for Name, not even an explicit nil +### GetDescription + +`func (o *BriefDeviceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceRequest) HasDescription() bool` + +HasDescription 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/docs/BriefDeviceRole.md b/docs/BriefDeviceRole.md new file mode 100644 index 000000000..8f86b010e --- /dev/null +++ b/docs/BriefDeviceRole.md @@ -0,0 +1,213 @@ +# BriefDeviceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefDeviceRole + +`func NewBriefDeviceRole(id int32, url string, display string, name string, slug string, ) *BriefDeviceRole` + +NewBriefDeviceRole instantiates a new BriefDeviceRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceRoleWithDefaults + +`func NewBriefDeviceRoleWithDefaults() *BriefDeviceRole` + +NewBriefDeviceRoleWithDefaults instantiates a new BriefDeviceRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDeviceRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDeviceRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDeviceRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDeviceRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDeviceRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDeviceRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDeviceRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDeviceRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDeviceRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefDeviceRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDeviceRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDeviceRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefDeviceRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefDeviceRole) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefDeviceRole) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefDeviceRole) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *BriefDeviceRole) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetVirtualmachineCount + +`func (o *BriefDeviceRole) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *BriefDeviceRole) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *BriefDeviceRole) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *BriefDeviceRole) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/docs/BriefDeviceRoleRequest.md b/docs/BriefDeviceRoleRequest.md new file mode 100644 index 000000000..cff3dcc04 --- /dev/null +++ b/docs/BriefDeviceRoleRequest.md @@ -0,0 +1,98 @@ +# BriefDeviceRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDeviceRoleRequest + +`func NewBriefDeviceRoleRequest(name string, slug string, ) *BriefDeviceRoleRequest` + +NewBriefDeviceRoleRequest instantiates a new BriefDeviceRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceRoleRequestWithDefaults + +`func NewBriefDeviceRoleRequestWithDefaults() *BriefDeviceRoleRequest` + +NewBriefDeviceRoleRequestWithDefaults instantiates a new BriefDeviceRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefDeviceRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefDeviceRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefDeviceRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefDeviceRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceRoleRequest) HasDescription() bool` + +HasDescription 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/docs/BriefDeviceType.md b/docs/BriefDeviceType.md new file mode 100644 index 000000000..edf56ee0c --- /dev/null +++ b/docs/BriefDeviceType.md @@ -0,0 +1,208 @@ +# BriefDeviceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefDeviceType + +`func NewBriefDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, ) *BriefDeviceType` + +NewBriefDeviceType instantiates a new BriefDeviceType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceTypeWithDefaults + +`func NewBriefDeviceTypeWithDefaults() *BriefDeviceType` + +NewBriefDeviceTypeWithDefaults instantiates a new BriefDeviceType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefDeviceType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefDeviceType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefDeviceType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefDeviceType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefDeviceType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefDeviceType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefDeviceType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefDeviceType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefDeviceType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *BriefDeviceType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefDeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefDeviceType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefDeviceType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefDeviceType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefDeviceType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefDeviceType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefDeviceType) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefDeviceType) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefDeviceType) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *BriefDeviceType) HasDeviceCount() bool` + +HasDeviceCount 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/docs/BriefDeviceTypeRequest.md b/docs/BriefDeviceTypeRequest.md new file mode 100644 index 000000000..aecf3cf0a --- /dev/null +++ b/docs/BriefDeviceTypeRequest.md @@ -0,0 +1,119 @@ +# BriefDeviceTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefDeviceTypeRequest + +`func NewBriefDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *BriefDeviceTypeRequest` + +NewBriefDeviceTypeRequest instantiates a new BriefDeviceTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefDeviceTypeRequestWithDefaults + +`func NewBriefDeviceTypeRequestWithDefaults() *BriefDeviceTypeRequest` + +NewBriefDeviceTypeRequestWithDefaults instantiates a new BriefDeviceTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefDeviceTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefDeviceTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefDeviceTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefDeviceTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefDeviceTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefDeviceTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefDeviceTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefDeviceTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefDeviceTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefDeviceTypeRequest) HasDescription() bool` + +HasDescription 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/docs/BriefFHRPGroup.md b/docs/BriefFHRPGroup.md new file mode 100644 index 000000000..3c7eb2314 --- /dev/null +++ b/docs/BriefFHRPGroup.md @@ -0,0 +1,161 @@ +# BriefFHRPGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | +**GroupId** | **int32** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefFHRPGroup + +`func NewBriefFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32, ) *BriefFHRPGroup` + +NewBriefFHRPGroup instantiates a new BriefFHRPGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefFHRPGroupWithDefaults + +`func NewBriefFHRPGroupWithDefaults() *BriefFHRPGroup` + +NewBriefFHRPGroupWithDefaults instantiates a new BriefFHRPGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefFHRPGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefFHRPGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefFHRPGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefFHRPGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefFHRPGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefFHRPGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefFHRPGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefFHRPGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefFHRPGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetProtocol + +`func (o *BriefFHRPGroup) GetProtocol() BriefFHRPGroupProtocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *BriefFHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *BriefFHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` + +SetProtocol sets Protocol field to given value. + + +### GetGroupId + +`func (o *BriefFHRPGroup) GetGroupId() int32` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *BriefFHRPGroup) GetGroupIdOk() (*int32, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *BriefFHRPGroup) SetGroupId(v int32)` + +SetGroupId sets GroupId field to given value. + + +### GetDescription + +`func (o *BriefFHRPGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefFHRPGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefFHRPGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefFHRPGroup) HasDescription() bool` + +HasDescription 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/docs/BriefFHRPGroupProtocol.md b/docs/BriefFHRPGroupProtocol.md new file mode 100644 index 000000000..1927b6d37 --- /dev/null +++ b/docs/BriefFHRPGroupProtocol.md @@ -0,0 +1,23 @@ +# BriefFHRPGroupProtocol + +## Enum + + +* `VRRP2` (value: `"vrrp2"`) + +* `VRRP3` (value: `"vrrp3"`) + +* `CARP` (value: `"carp"`) + +* `CLUSTERXL` (value: `"clusterxl"`) + +* `HSRP` (value: `"hsrp"`) + +* `GLBP` (value: `"glbp"`) + +* `OTHER` (value: `"other"`) + + +[[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/docs/BriefFHRPGroupRequest.md b/docs/BriefFHRPGroupRequest.md new file mode 100644 index 000000000..ec3f629bd --- /dev/null +++ b/docs/BriefFHRPGroupRequest.md @@ -0,0 +1,98 @@ +# BriefFHRPGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | +**GroupId** | **int32** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefFHRPGroupRequest + +`func NewBriefFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *BriefFHRPGroupRequest` + +NewBriefFHRPGroupRequest instantiates a new BriefFHRPGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefFHRPGroupRequestWithDefaults + +`func NewBriefFHRPGroupRequestWithDefaults() *BriefFHRPGroupRequest` + +NewBriefFHRPGroupRequestWithDefaults instantiates a new BriefFHRPGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetProtocol + +`func (o *BriefFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` + +GetProtocol returns the Protocol field if non-nil, zero value otherwise. + +### GetProtocolOk + +`func (o *BriefFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` + +GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProtocol + +`func (o *BriefFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` + +SetProtocol sets Protocol field to given value. + + +### GetGroupId + +`func (o *BriefFHRPGroupRequest) GetGroupId() int32` + +GetGroupId returns the GroupId field if non-nil, zero value otherwise. + +### GetGroupIdOk + +`func (o *BriefFHRPGroupRequest) GetGroupIdOk() (*int32, bool)` + +GetGroupIdOk returns a tuple with the GroupId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroupId + +`func (o *BriefFHRPGroupRequest) SetGroupId(v int32)` + +SetGroupId sets GroupId field to given value. + + +### GetDescription + +`func (o *BriefFHRPGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefFHRPGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefFHRPGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefFHRPGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefIKEPolicy.md b/docs/BriefIKEPolicy.md new file mode 100644 index 000000000..4010027b1 --- /dev/null +++ b/docs/BriefIKEPolicy.md @@ -0,0 +1,140 @@ +# BriefIKEPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIKEPolicy + +`func NewBriefIKEPolicy(id int32, url string, display string, name string, ) *BriefIKEPolicy` + +NewBriefIKEPolicy instantiates a new BriefIKEPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIKEPolicyWithDefaults + +`func NewBriefIKEPolicyWithDefaults() *BriefIKEPolicy` + +NewBriefIKEPolicyWithDefaults instantiates a new BriefIKEPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIKEPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIKEPolicy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIKEPolicy) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIKEPolicy) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIKEPolicy) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIKEPolicy) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIKEPolicy) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIKEPolicy) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIKEPolicy) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefIKEPolicy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIKEPolicy) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIKEPolicy) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIKEPolicy) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIKEPolicy) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIKEPolicy) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIKEPolicy) HasDescription() bool` + +HasDescription 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/docs/BriefIKEPolicyRequest.md b/docs/BriefIKEPolicyRequest.md new file mode 100644 index 000000000..11af2f4fd --- /dev/null +++ b/docs/BriefIKEPolicyRequest.md @@ -0,0 +1,77 @@ +# BriefIKEPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIKEPolicyRequest + +`func NewBriefIKEPolicyRequest(name string, ) *BriefIKEPolicyRequest` + +NewBriefIKEPolicyRequest instantiates a new BriefIKEPolicyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIKEPolicyRequestWithDefaults + +`func NewBriefIKEPolicyRequestWithDefaults() *BriefIKEPolicyRequest` + +NewBriefIKEPolicyRequestWithDefaults instantiates a new BriefIKEPolicyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefIKEPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIKEPolicyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIKEPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIKEPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIKEPolicyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIKEPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIKEPolicyRequest) HasDescription() bool` + +HasDescription 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/docs/BriefIPAddress.md b/docs/BriefIPAddress.md new file mode 100644 index 000000000..6ad683fc9 --- /dev/null +++ b/docs/BriefIPAddress.md @@ -0,0 +1,161 @@ +# BriefIPAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Family** | [**AggregateFamily**](AggregateFamily.md) | | +**Address** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPAddress + +`func NewBriefIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *BriefIPAddress` + +NewBriefIPAddress instantiates a new BriefIPAddress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPAddressWithDefaults + +`func NewBriefIPAddressWithDefaults() *BriefIPAddress` + +NewBriefIPAddressWithDefaults instantiates a new BriefIPAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIPAddress) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIPAddress) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIPAddress) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIPAddress) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIPAddress) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIPAddress) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIPAddress) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIPAddress) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIPAddress) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetFamily + +`func (o *BriefIPAddress) GetFamily() AggregateFamily` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *BriefIPAddress) GetFamilyOk() (*AggregateFamily, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *BriefIPAddress) SetFamily(v AggregateFamily)` + +SetFamily sets Family field to given value. + + +### GetAddress + +`func (o *BriefIPAddress) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *BriefIPAddress) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *BriefIPAddress) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetDescription + +`func (o *BriefIPAddress) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPAddress) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPAddress) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPAddress) HasDescription() bool` + +HasDescription 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/docs/BriefIPAddressRequest.md b/docs/BriefIPAddressRequest.md new file mode 100644 index 000000000..9041d294a --- /dev/null +++ b/docs/BriefIPAddressRequest.md @@ -0,0 +1,77 @@ +# BriefIPAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPAddressRequest + +`func NewBriefIPAddressRequest(address string, ) *BriefIPAddressRequest` + +NewBriefIPAddressRequest instantiates a new BriefIPAddressRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPAddressRequestWithDefaults + +`func NewBriefIPAddressRequestWithDefaults() *BriefIPAddressRequest` + +NewBriefIPAddressRequestWithDefaults instantiates a new BriefIPAddressRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *BriefIPAddressRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *BriefIPAddressRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *BriefIPAddressRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + + +### GetDescription + +`func (o *BriefIPAddressRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPAddressRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPAddressRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPAddressRequest) HasDescription() bool` + +HasDescription 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/docs/BriefIPSecPolicy.md b/docs/BriefIPSecPolicy.md new file mode 100644 index 000000000..046c03acc --- /dev/null +++ b/docs/BriefIPSecPolicy.md @@ -0,0 +1,140 @@ +# BriefIPSecPolicy + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecPolicy + +`func NewBriefIPSecPolicy(id int32, url string, display string, name string, ) *BriefIPSecPolicy` + +NewBriefIPSecPolicy instantiates a new BriefIPSecPolicy object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecPolicyWithDefaults + +`func NewBriefIPSecPolicyWithDefaults() *BriefIPSecPolicy` + +NewBriefIPSecPolicyWithDefaults instantiates a new BriefIPSecPolicy object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIPSecPolicy) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIPSecPolicy) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIPSecPolicy) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIPSecPolicy) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIPSecPolicy) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIPSecPolicy) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIPSecPolicy) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIPSecPolicy) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIPSecPolicy) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefIPSecPolicy) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecPolicy) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecPolicy) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecPolicy) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecPolicy) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecPolicy) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecPolicy) HasDescription() bool` + +HasDescription 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/docs/BriefIPSecPolicyRequest.md b/docs/BriefIPSecPolicyRequest.md new file mode 100644 index 000000000..6077a7048 --- /dev/null +++ b/docs/BriefIPSecPolicyRequest.md @@ -0,0 +1,77 @@ +# BriefIPSecPolicyRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecPolicyRequest + +`func NewBriefIPSecPolicyRequest(name string, ) *BriefIPSecPolicyRequest` + +NewBriefIPSecPolicyRequest instantiates a new BriefIPSecPolicyRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecPolicyRequestWithDefaults + +`func NewBriefIPSecPolicyRequestWithDefaults() *BriefIPSecPolicyRequest` + +NewBriefIPSecPolicyRequestWithDefaults instantiates a new BriefIPSecPolicyRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefIPSecPolicyRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecPolicyRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecPolicyRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecPolicyRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecPolicyRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecPolicyRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecPolicyRequest) HasDescription() bool` + +HasDescription 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/docs/BriefIPSecProfile.md b/docs/BriefIPSecProfile.md new file mode 100644 index 000000000..3dd97ae9e --- /dev/null +++ b/docs/BriefIPSecProfile.md @@ -0,0 +1,140 @@ +# BriefIPSecProfile + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecProfile + +`func NewBriefIPSecProfile(id int32, url string, display string, name string, ) *BriefIPSecProfile` + +NewBriefIPSecProfile instantiates a new BriefIPSecProfile object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecProfileWithDefaults + +`func NewBriefIPSecProfileWithDefaults() *BriefIPSecProfile` + +NewBriefIPSecProfileWithDefaults instantiates a new BriefIPSecProfile object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefIPSecProfile) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefIPSecProfile) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefIPSecProfile) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefIPSecProfile) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefIPSecProfile) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefIPSecProfile) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefIPSecProfile) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefIPSecProfile) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefIPSecProfile) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefIPSecProfile) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecProfile) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecProfile) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecProfile) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecProfile) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecProfile) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecProfile) HasDescription() bool` + +HasDescription 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/docs/BriefIPSecProfileRequest.md b/docs/BriefIPSecProfileRequest.md new file mode 100644 index 000000000..3357d6751 --- /dev/null +++ b/docs/BriefIPSecProfileRequest.md @@ -0,0 +1,77 @@ +# BriefIPSecProfileRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefIPSecProfileRequest + +`func NewBriefIPSecProfileRequest(name string, ) *BriefIPSecProfileRequest` + +NewBriefIPSecProfileRequest instantiates a new BriefIPSecProfileRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefIPSecProfileRequestWithDefaults + +`func NewBriefIPSecProfileRequestWithDefaults() *BriefIPSecProfileRequest` + +NewBriefIPSecProfileRequestWithDefaults instantiates a new BriefIPSecProfileRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefIPSecProfileRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefIPSecProfileRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefIPSecProfileRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefIPSecProfileRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefIPSecProfileRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefIPSecProfileRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefIPSecProfileRequest) HasDescription() bool` + +HasDescription 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/docs/BriefInterface.md b/docs/BriefInterface.md new file mode 100644 index 000000000..cfa19b097 --- /dev/null +++ b/docs/BriefInterface.md @@ -0,0 +1,213 @@ +# BriefInterface + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewBriefInterface + +`func NewBriefInterface(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool, ) *BriefInterface` + +NewBriefInterface instantiates a new BriefInterface object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInterfaceWithDefaults + +`func NewBriefInterfaceWithDefaults() *BriefInterface` + +NewBriefInterfaceWithDefaults instantiates a new BriefInterface object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefInterface) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefInterface) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefInterface) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefInterface) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefInterface) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefInterface) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefInterface) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefInterface) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefInterface) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *BriefInterface) GetDevice() BriefDevice` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefInterface) GetDeviceOk() (*BriefDevice, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefInterface) SetDevice(v BriefDevice)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefInterface) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInterface) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInterface) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefInterface) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInterface) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInterface) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInterface) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCable + +`func (o *BriefInterface) GetCable() BriefCable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *BriefInterface) GetCableOk() (*BriefCable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *BriefInterface) SetCable(v BriefCable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *BriefInterface) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *BriefInterface) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetOccupied + +`func (o *BriefInterface) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *BriefInterface) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *BriefInterface) SetOccupied(v bool)` + +SetOccupied sets Occupied field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefInterfaceRequest.md b/docs/BriefInterfaceRequest.md new file mode 100644 index 000000000..d6d5c4129 --- /dev/null +++ b/docs/BriefInterfaceRequest.md @@ -0,0 +1,98 @@ +# BriefInterfaceRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefInterfaceRequest + +`func NewBriefInterfaceRequest(device BriefDeviceRequest, name string, ) *BriefInterfaceRequest` + +NewBriefInterfaceRequest instantiates a new BriefInterfaceRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInterfaceRequestWithDefaults + +`func NewBriefInterfaceRequestWithDefaults() *BriefInterfaceRequest` + +NewBriefInterfaceRequestWithDefaults instantiates a new BriefInterfaceRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDevice + +`func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefInterfaceRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefInterfaceRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInterfaceRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInterfaceRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefInterfaceRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInterfaceRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInterfaceRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInterfaceRequest) HasDescription() bool` + +HasDescription 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/docs/BriefInventoryItemRole.md b/docs/BriefInventoryItemRole.md new file mode 100644 index 000000000..00a656879 --- /dev/null +++ b/docs/BriefInventoryItemRole.md @@ -0,0 +1,182 @@ +# BriefInventoryItemRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**InventoryitemCount** | **int64** | | [readonly] + +## Methods + +### NewBriefInventoryItemRole + +`func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64, ) *BriefInventoryItemRole` + +NewBriefInventoryItemRole instantiates a new BriefInventoryItemRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInventoryItemRoleWithDefaults + +`func NewBriefInventoryItemRoleWithDefaults() *BriefInventoryItemRole` + +NewBriefInventoryItemRoleWithDefaults instantiates a new BriefInventoryItemRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefInventoryItemRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefInventoryItemRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefInventoryItemRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefInventoryItemRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefInventoryItemRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefInventoryItemRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefInventoryItemRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefInventoryItemRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefInventoryItemRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefInventoryItemRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInventoryItemRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInventoryItemRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefInventoryItemRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefInventoryItemRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefInventoryItemRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefInventoryItemRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInventoryItemRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInventoryItemRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInventoryItemRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetInventoryitemCount + +`func (o *BriefInventoryItemRole) GetInventoryitemCount() int64` + +GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. + +### GetInventoryitemCountOk + +`func (o *BriefInventoryItemRole) GetInventoryitemCountOk() (*int64, bool)` + +GetInventoryitemCountOk returns a tuple with the InventoryitemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryitemCount + +`func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64)` + +SetInventoryitemCount sets InventoryitemCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefInventoryItemRoleRequest.md b/docs/BriefInventoryItemRoleRequest.md new file mode 100644 index 000000000..3badc4bce --- /dev/null +++ b/docs/BriefInventoryItemRoleRequest.md @@ -0,0 +1,98 @@ +# BriefInventoryItemRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefInventoryItemRoleRequest + +`func NewBriefInventoryItemRoleRequest(name string, slug string, ) *BriefInventoryItemRoleRequest` + +NewBriefInventoryItemRoleRequest instantiates a new BriefInventoryItemRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefInventoryItemRoleRequestWithDefaults + +`func NewBriefInventoryItemRoleRequestWithDefaults() *BriefInventoryItemRoleRequest` + +NewBriefInventoryItemRoleRequestWithDefaults instantiates a new BriefInventoryItemRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefInventoryItemRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefInventoryItemRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefInventoryItemRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefInventoryItemRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefInventoryItemRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefInventoryItemRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefInventoryItemRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefInventoryItemRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefInventoryItemRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefInventoryItemRoleRequest) HasDescription() bool` + +HasDescription 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/docs/BriefJob.md b/docs/BriefJob.md new file mode 100644 index 000000000..3a29c8b74 --- /dev/null +++ b/docs/BriefJob.md @@ -0,0 +1,150 @@ +# BriefJob + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Url** | **string** | | [readonly] +**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | +**Created** | **time.Time** | | [readonly] +**Completed** | Pointer to **NullableTime** | | [optional] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] + +## Methods + +### NewBriefJob + +`func NewBriefJob(url string, status BriefJobStatus, created time.Time, user BriefUser, ) *BriefJob` + +NewBriefJob instantiates a new BriefJob object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefJobWithDefaults + +`func NewBriefJobWithDefaults() *BriefJob` + +NewBriefJobWithDefaults instantiates a new BriefJob object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUrl + +`func (o *BriefJob) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefJob) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefJob) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetStatus + +`func (o *BriefJob) GetStatus() BriefJobStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *BriefJob) GetStatusOk() (*BriefJobStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *BriefJob) SetStatus(v BriefJobStatus)` + +SetStatus sets Status field to given value. + + +### GetCreated + +`func (o *BriefJob) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *BriefJob) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *BriefJob) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetCompleted + +`func (o *BriefJob) GetCompleted() time.Time` + +GetCompleted returns the Completed field if non-nil, zero value otherwise. + +### GetCompletedOk + +`func (o *BriefJob) GetCompletedOk() (*time.Time, bool)` + +GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompleted + +`func (o *BriefJob) SetCompleted(v time.Time)` + +SetCompleted sets Completed field to given value. + +### HasCompleted + +`func (o *BriefJob) HasCompleted() bool` + +HasCompleted returns a boolean if a field has been set. + +### SetCompletedNil + +`func (o *BriefJob) SetCompletedNil(b bool)` + + SetCompletedNil sets the value for Completed to be an explicit nil + +### UnsetCompleted +`func (o *BriefJob) UnsetCompleted()` + +UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +### GetUser + +`func (o *BriefJob) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *BriefJob) GetUserOk() (*BriefUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *BriefJob) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefJobRequest.md b/docs/BriefJobRequest.md new file mode 100644 index 000000000..6e62ff44c --- /dev/null +++ b/docs/BriefJobRequest.md @@ -0,0 +1,66 @@ +# BriefJobRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Completed** | Pointer to **NullableTime** | | [optional] + +## Methods + +### NewBriefJobRequest + +`func NewBriefJobRequest() *BriefJobRequest` + +NewBriefJobRequest instantiates a new BriefJobRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefJobRequestWithDefaults + +`func NewBriefJobRequestWithDefaults() *BriefJobRequest` + +NewBriefJobRequestWithDefaults instantiates a new BriefJobRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCompleted + +`func (o *BriefJobRequest) GetCompleted() time.Time` + +GetCompleted returns the Completed field if non-nil, zero value otherwise. + +### GetCompletedOk + +`func (o *BriefJobRequest) GetCompletedOk() (*time.Time, bool)` + +GetCompletedOk returns a tuple with the Completed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCompleted + +`func (o *BriefJobRequest) SetCompleted(v time.Time)` + +SetCompleted sets Completed field to given value. + +### HasCompleted + +`func (o *BriefJobRequest) HasCompleted() bool` + +HasCompleted returns a boolean if a field has been set. + +### SetCompletedNil + +`func (o *BriefJobRequest) SetCompletedNil(b bool)` + + SetCompletedNil sets the value for Completed to be an explicit nil + +### UnsetCompleted +`func (o *BriefJobRequest) UnsetCompleted()` + +UnsetCompleted ensures that no value is present for Completed, not even an explicit nil + +[[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/docs/BriefJobStatus.md b/docs/BriefJobStatus.md new file mode 100644 index 000000000..42df2b5a5 --- /dev/null +++ b/docs/BriefJobStatus.md @@ -0,0 +1,82 @@ +# BriefJobStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**BriefJobStatusValue**](BriefJobStatusValue.md) | | [optional] +**Label** | Pointer to [**BriefJobStatusLabel**](BriefJobStatusLabel.md) | | [optional] + +## Methods + +### NewBriefJobStatus + +`func NewBriefJobStatus() *BriefJobStatus` + +NewBriefJobStatus instantiates a new BriefJobStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefJobStatusWithDefaults + +`func NewBriefJobStatusWithDefaults() *BriefJobStatus` + +NewBriefJobStatusWithDefaults instantiates a new BriefJobStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *BriefJobStatus) GetValue() BriefJobStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BriefJobStatus) GetValueOk() (*BriefJobStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BriefJobStatus) SetValue(v BriefJobStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BriefJobStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *BriefJobStatus) GetLabel() BriefJobStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefJobStatus) GetLabelOk() (*BriefJobStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefJobStatus) HasLabel() bool` + +HasLabel 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/docs/BriefJobStatusLabel.md b/docs/BriefJobStatusLabel.md new file mode 100644 index 000000000..fe83a7999 --- /dev/null +++ b/docs/BriefJobStatusLabel.md @@ -0,0 +1,21 @@ +# BriefJobStatusLabel + +## Enum + + +* `PENDING` (value: `"Pending"`) + +* `SCHEDULED` (value: `"Scheduled"`) + +* `RUNNING` (value: `"Running"`) + +* `COMPLETED` (value: `"Completed"`) + +* `ERRORED` (value: `"Errored"`) + +* `FAILED` (value: `"Failed"`) + + +[[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/docs/BriefJobStatusValue.md b/docs/BriefJobStatusValue.md new file mode 100644 index 000000000..e6bf72e53 --- /dev/null +++ b/docs/BriefJobStatusValue.md @@ -0,0 +1,21 @@ +# BriefJobStatusValue + +## Enum + + +* `PENDING` (value: `"pending"`) + +* `SCHEDULED` (value: `"scheduled"`) + +* `RUNNING` (value: `"running"`) + +* `COMPLETED` (value: `"completed"`) + +* `ERRORED` (value: `"errored"`) + +* `FAILED` (value: `"failed"`) + + +[[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/docs/BriefL2VPN.md b/docs/BriefL2VPN.md new file mode 100644 index 000000000..2a66326c1 --- /dev/null +++ b/docs/BriefL2VPN.md @@ -0,0 +1,223 @@ +# BriefL2VPN + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Identifier** | Pointer to **NullableInt64** | | [optional] +**Name** | **string** | | +**Slug** | **string** | | +**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefL2VPN + +`func NewBriefL2VPN(id int32, url string, display string, name string, slug string, ) *BriefL2VPN` + +NewBriefL2VPN instantiates a new BriefL2VPN object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNWithDefaults + +`func NewBriefL2VPNWithDefaults() *BriefL2VPN` + +NewBriefL2VPNWithDefaults instantiates a new BriefL2VPN object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefL2VPN) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefL2VPN) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefL2VPN) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefL2VPN) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefL2VPN) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefL2VPN) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefL2VPN) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefL2VPN) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefL2VPN) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetIdentifier + +`func (o *BriefL2VPN) GetIdentifier() int64` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *BriefL2VPN) GetIdentifierOk() (*int64, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *BriefL2VPN) SetIdentifier(v int64)` + +SetIdentifier sets Identifier field to given value. + +### HasIdentifier + +`func (o *BriefL2VPN) HasIdentifier() bool` + +HasIdentifier returns a boolean if a field has been set. + +### SetIdentifierNil + +`func (o *BriefL2VPN) SetIdentifierNil(b bool)` + + SetIdentifierNil sets the value for Identifier to be an explicit nil + +### UnsetIdentifier +`func (o *BriefL2VPN) UnsetIdentifier()` + +UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +### GetName + +`func (o *BriefL2VPN) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefL2VPN) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefL2VPN) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefL2VPN) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefL2VPN) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefL2VPN) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetType + +`func (o *BriefL2VPN) GetType() BriefL2VPNType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BriefL2VPN) GetTypeOk() (*BriefL2VPNType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BriefL2VPN) SetType(v BriefL2VPNType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BriefL2VPN) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefL2VPN) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefL2VPN) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefL2VPN) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefL2VPN) HasDescription() bool` + +HasDescription 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/docs/BriefL2VPNRequest.md b/docs/BriefL2VPNRequest.md new file mode 100644 index 000000000..be23320d9 --- /dev/null +++ b/docs/BriefL2VPNRequest.md @@ -0,0 +1,160 @@ +# BriefL2VPNRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Identifier** | Pointer to **NullableInt64** | | [optional] +**Name** | **string** | | +**Slug** | **string** | | +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefL2VPNRequest + +`func NewBriefL2VPNRequest(name string, slug string, ) *BriefL2VPNRequest` + +NewBriefL2VPNRequest instantiates a new BriefL2VPNRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNRequestWithDefaults + +`func NewBriefL2VPNRequestWithDefaults() *BriefL2VPNRequest` + +NewBriefL2VPNRequestWithDefaults instantiates a new BriefL2VPNRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetIdentifier + +`func (o *BriefL2VPNRequest) GetIdentifier() int64` + +GetIdentifier returns the Identifier field if non-nil, zero value otherwise. + +### GetIdentifierOk + +`func (o *BriefL2VPNRequest) GetIdentifierOk() (*int64, bool)` + +GetIdentifierOk returns a tuple with the Identifier field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIdentifier + +`func (o *BriefL2VPNRequest) SetIdentifier(v int64)` + +SetIdentifier sets Identifier field to given value. + +### HasIdentifier + +`func (o *BriefL2VPNRequest) HasIdentifier() bool` + +HasIdentifier returns a boolean if a field has been set. + +### SetIdentifierNil + +`func (o *BriefL2VPNRequest) SetIdentifierNil(b bool)` + + SetIdentifierNil sets the value for Identifier to be an explicit nil + +### UnsetIdentifier +`func (o *BriefL2VPNRequest) UnsetIdentifier()` + +UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +### GetName + +`func (o *BriefL2VPNRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefL2VPNRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefL2VPNRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefL2VPNRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefL2VPNRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefL2VPNRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetType + +`func (o *BriefL2VPNRequest) GetType() BriefL2VPNTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *BriefL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *BriefL2VPNRequest) SetType(v BriefL2VPNTypeValue)` + +SetType sets Type field to given value. + +### HasType + +`func (o *BriefL2VPNRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetDescription + +`func (o *BriefL2VPNRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefL2VPNRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefL2VPNRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefL2VPNRequest) HasDescription() bool` + +HasDescription 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/docs/BriefL2VPNTermination.md b/docs/BriefL2VPNTermination.md new file mode 100644 index 000000000..121bc7753 --- /dev/null +++ b/docs/BriefL2VPNTermination.md @@ -0,0 +1,114 @@ +# BriefL2VPNTermination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | + +## Methods + +### NewBriefL2VPNTermination + +`func NewBriefL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN, ) *BriefL2VPNTermination` + +NewBriefL2VPNTermination instantiates a new BriefL2VPNTermination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNTerminationWithDefaults + +`func NewBriefL2VPNTerminationWithDefaults() *BriefL2VPNTermination` + +NewBriefL2VPNTerminationWithDefaults instantiates a new BriefL2VPNTermination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefL2VPNTermination) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefL2VPNTermination) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefL2VPNTermination) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefL2VPNTermination) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefL2VPNTermination) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefL2VPNTermination) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefL2VPNTermination) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefL2VPNTermination) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefL2VPNTermination) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetL2vpn + +`func (o *BriefL2VPNTermination) GetL2vpn() BriefL2VPN` + +GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. + +### GetL2vpnOk + +`func (o *BriefL2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` + +GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpn + +`func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN)` + +SetL2vpn sets L2vpn field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNTerminationRequest.md b/docs/BriefL2VPNTerminationRequest.md new file mode 100644 index 000000000..3f41ef213 --- /dev/null +++ b/docs/BriefL2VPNTerminationRequest.md @@ -0,0 +1,51 @@ +# BriefL2VPNTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | + +## Methods + +### NewBriefL2VPNTerminationRequest + +`func NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, ) *BriefL2VPNTerminationRequest` + +NewBriefL2VPNTerminationRequest instantiates a new BriefL2VPNTerminationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNTerminationRequestWithDefaults + +`func NewBriefL2VPNTerminationRequestWithDefaults() *BriefL2VPNTerminationRequest` + +NewBriefL2VPNTerminationRequestWithDefaults instantiates a new BriefL2VPNTerminationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetL2vpn + +`func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` + +GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. + +### GetL2vpnOk + +`func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` + +GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpn + +`func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` + +SetL2vpn sets L2vpn field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefL2VPNType.md b/docs/BriefL2VPNType.md new file mode 100644 index 000000000..63ceeaefd --- /dev/null +++ b/docs/BriefL2VPNType.md @@ -0,0 +1,82 @@ +# BriefL2VPNType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**Label** | Pointer to [**BriefL2VPNTypeLabel**](BriefL2VPNTypeLabel.md) | | [optional] + +## Methods + +### NewBriefL2VPNType + +`func NewBriefL2VPNType() *BriefL2VPNType` + +NewBriefL2VPNType instantiates a new BriefL2VPNType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefL2VPNTypeWithDefaults + +`func NewBriefL2VPNTypeWithDefaults() *BriefL2VPNType` + +NewBriefL2VPNTypeWithDefaults instantiates a new BriefL2VPNType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *BriefL2VPNType) GetValue() BriefL2VPNTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *BriefL2VPNType) GetValueOk() (*BriefL2VPNTypeValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *BriefL2VPNType) SetValue(v BriefL2VPNTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *BriefL2VPNType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *BriefL2VPNType) GetLabel() BriefL2VPNTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *BriefL2VPNType) GetLabelOk() (*BriefL2VPNTypeLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *BriefL2VPNType) HasLabel() bool` + +HasLabel 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/docs/BriefL2VPNTypeLabel.md b/docs/BriefL2VPNTypeLabel.md new file mode 100644 index 000000000..757dc73eb --- /dev/null +++ b/docs/BriefL2VPNTypeLabel.md @@ -0,0 +1,33 @@ +# BriefL2VPNTypeLabel + +## Enum + + +* `VPWS` (value: `"VPWS"`) + +* `VPLS` (value: `"VPLS"`) + +* `VXLAN` (value: `"VXLAN"`) + +* `VXLAN_EVPN` (value: `"VXLAN-EVPN"`) + +* `MPLS_EVPN` (value: `"MPLS EVPN"`) + +* `PBB_EVPN` (value: `"PBB EVPN"`) + +* `EPL` (value: `"EPL"`) + +* `EVPL` (value: `"EVPL"`) + +* `ETHERNET_PRIVATE_LAN` (value: `"Ethernet Private LAN"`) + +* `ETHERNET_VIRTUAL_PRIVATE_LAN` (value: `"Ethernet Virtual Private LAN"`) + +* `ETHERNET_PRIVATE_TREE` (value: `"Ethernet Private Tree"`) + +* `ETHERNET_VIRTUAL_PRIVATE_TREE` (value: `"Ethernet Virtual Private Tree"`) + + +[[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/docs/BriefL2VPNTypeValue.md b/docs/BriefL2VPNTypeValue.md new file mode 100644 index 000000000..31d6731bb --- /dev/null +++ b/docs/BriefL2VPNTypeValue.md @@ -0,0 +1,33 @@ +# BriefL2VPNTypeValue + +## Enum + + +* `VPWS` (value: `"vpws"`) + +* `VPLS` (value: `"vpls"`) + +* `VXLAN` (value: `"vxlan"`) + +* `VXLAN_EVPN` (value: `"vxlan-evpn"`) + +* `MPLS_EVPN` (value: `"mpls-evpn"`) + +* `PBB_EVPN` (value: `"pbb-evpn"`) + +* `EPL` (value: `"epl"`) + +* `EVPL` (value: `"evpl"`) + +* `EP_LAN` (value: `"ep-lan"`) + +* `EVP_LAN` (value: `"evp-lan"`) + +* `EP_TREE` (value: `"ep-tree"`) + +* `EVP_TREE` (value: `"evp-tree"`) + + +[[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/docs/BriefLocation.md b/docs/BriefLocation.md new file mode 100644 index 000000000..0a5f3b992 --- /dev/null +++ b/docs/BriefLocation.md @@ -0,0 +1,203 @@ +# BriefLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**RackCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefLocation + +`func NewBriefLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *BriefLocation` + +NewBriefLocation instantiates a new BriefLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefLocationWithDefaults + +`func NewBriefLocationWithDefaults() *BriefLocation` + +NewBriefLocationWithDefaults instantiates a new BriefLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefLocation) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefLocation) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefLocation) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefLocation) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefLocation) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefLocation) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefLocation) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefLocation) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefLocation) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefLocation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefLocation) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefLocation) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefLocation) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefLocation) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefLocation) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefLocation) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefLocation) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefLocation) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefLocation) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRackCount + +`func (o *BriefLocation) GetRackCount() int32` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *BriefLocation) GetRackCountOk() (*int32, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *BriefLocation) SetRackCount(v int32)` + +SetRackCount sets RackCount field to given value. + + +### GetDepth + +`func (o *BriefLocation) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefLocation) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefLocation) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefLocationRequest.md b/docs/BriefLocationRequest.md new file mode 100644 index 000000000..1f4d74c6c --- /dev/null +++ b/docs/BriefLocationRequest.md @@ -0,0 +1,98 @@ +# BriefLocationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefLocationRequest + +`func NewBriefLocationRequest(name string, slug string, ) *BriefLocationRequest` + +NewBriefLocationRequest instantiates a new BriefLocationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefLocationRequestWithDefaults + +`func NewBriefLocationRequestWithDefaults() *BriefLocationRequest` + +NewBriefLocationRequestWithDefaults instantiates a new BriefLocationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefLocationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefLocationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefLocationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefLocationRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefLocationRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefLocationRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefLocationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefLocationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefLocationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefLocationRequest) HasDescription() bool` + +HasDescription 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/docs/BriefManufacturer.md b/docs/BriefManufacturer.md new file mode 100644 index 000000000..19cbc042b --- /dev/null +++ b/docs/BriefManufacturer.md @@ -0,0 +1,187 @@ +# BriefManufacturer + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefManufacturer + +`func NewBriefManufacturer(id int32, url string, display string, name string, slug string, ) *BriefManufacturer` + +NewBriefManufacturer instantiates a new BriefManufacturer object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefManufacturerWithDefaults + +`func NewBriefManufacturerWithDefaults() *BriefManufacturer` + +NewBriefManufacturerWithDefaults instantiates a new BriefManufacturer object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefManufacturer) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefManufacturer) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefManufacturer) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefManufacturer) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefManufacturer) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefManufacturer) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefManufacturer) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefManufacturer) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefManufacturer) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefManufacturer) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefManufacturer) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefManufacturer) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefManufacturer) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefManufacturer) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefManufacturer) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefManufacturer) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefManufacturer) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefManufacturer) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefManufacturer) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDevicetypeCount + +`func (o *BriefManufacturer) GetDevicetypeCount() int64` + +GetDevicetypeCount returns the DevicetypeCount field if non-nil, zero value otherwise. + +### GetDevicetypeCountOk + +`func (o *BriefManufacturer) GetDevicetypeCountOk() (*int64, bool)` + +GetDevicetypeCountOk returns a tuple with the DevicetypeCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevicetypeCount + +`func (o *BriefManufacturer) SetDevicetypeCount(v int64)` + +SetDevicetypeCount sets DevicetypeCount field to given value. + +### HasDevicetypeCount + +`func (o *BriefManufacturer) HasDevicetypeCount() bool` + +HasDevicetypeCount 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/docs/BriefManufacturerRequest.md b/docs/BriefManufacturerRequest.md new file mode 100644 index 000000000..ba1eb927f --- /dev/null +++ b/docs/BriefManufacturerRequest.md @@ -0,0 +1,98 @@ +# BriefManufacturerRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefManufacturerRequest + +`func NewBriefManufacturerRequest(name string, slug string, ) *BriefManufacturerRequest` + +NewBriefManufacturerRequest instantiates a new BriefManufacturerRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefManufacturerRequestWithDefaults + +`func NewBriefManufacturerRequestWithDefaults() *BriefManufacturerRequest` + +NewBriefManufacturerRequestWithDefaults instantiates a new BriefManufacturerRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefManufacturerRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefManufacturerRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefManufacturerRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefManufacturerRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefManufacturerRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefManufacturerRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefManufacturerRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefManufacturerRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefManufacturerRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefManufacturerRequest) HasDescription() bool` + +HasDescription 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/docs/BriefModule.md b/docs/BriefModule.md new file mode 100644 index 000000000..5e80bca58 --- /dev/null +++ b/docs/BriefModule.md @@ -0,0 +1,135 @@ +# BriefModule + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | + +## Methods + +### NewBriefModule + +`func NewBriefModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay, ) *BriefModule` + +NewBriefModule instantiates a new BriefModule object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleWithDefaults + +`func NewBriefModuleWithDefaults() *BriefModule` + +NewBriefModuleWithDefaults instantiates a new BriefModule object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefModule) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefModule) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefModule) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefModule) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefModule) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefModule) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefModule) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefModule) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefModule) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *BriefModule) GetDevice() BriefDevice` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefModule) GetDeviceOk() (*BriefDevice, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefModule) SetDevice(v BriefDevice)` + +SetDevice sets Device field to given value. + + +### GetModuleBay + +`func (o *BriefModule) GetModuleBay() NestedModuleBay` + +GetModuleBay returns the ModuleBay field if non-nil, zero value otherwise. + +### GetModuleBayOk + +`func (o *BriefModule) GetModuleBayOk() (*NestedModuleBay, bool)` + +GetModuleBayOk returns a tuple with the ModuleBay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBay + +`func (o *BriefModule) SetModuleBay(v NestedModuleBay)` + +SetModuleBay sets ModuleBay field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefModuleRequest.md b/docs/BriefModuleRequest.md new file mode 100644 index 000000000..e9cb7aa81 --- /dev/null +++ b/docs/BriefModuleRequest.md @@ -0,0 +1,72 @@ +# BriefModuleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | + +## Methods + +### NewBriefModuleRequest + +`func NewBriefModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, ) *BriefModuleRequest` + +NewBriefModuleRequest instantiates a new BriefModuleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleRequestWithDefaults + +`func NewBriefModuleRequestWithDefaults() *BriefModuleRequest` + +NewBriefModuleRequestWithDefaults instantiates a new BriefModuleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDevice + +`func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefModuleRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetModuleBay + +`func (o *BriefModuleRequest) GetModuleBay() NestedModuleBayRequest` + +GetModuleBay returns the ModuleBay field if non-nil, zero value otherwise. + +### GetModuleBayOk + +`func (o *BriefModuleRequest) GetModuleBayOk() (*NestedModuleBayRequest, bool)` + +GetModuleBayOk returns a tuple with the ModuleBay field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBay + +`func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest)` + +SetModuleBay sets ModuleBay field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefModuleType.md b/docs/BriefModuleType.md new file mode 100644 index 000000000..320d634f9 --- /dev/null +++ b/docs/BriefModuleType.md @@ -0,0 +1,161 @@ +# BriefModuleType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefModuleType + +`func NewBriefModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string, ) *BriefModuleType` + +NewBriefModuleType instantiates a new BriefModuleType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleTypeWithDefaults + +`func NewBriefModuleTypeWithDefaults() *BriefModuleType` + +NewBriefModuleTypeWithDefaults instantiates a new BriefModuleType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefModuleType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefModuleType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefModuleType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefModuleType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefModuleType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefModuleType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefModuleType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefModuleType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefModuleType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *BriefModuleType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefModuleType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefModuleType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefModuleType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefModuleType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetDescription + +`func (o *BriefModuleType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefModuleType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefModuleType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefModuleType) HasDescription() bool` + +HasDescription 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/docs/BriefModuleTypeRequest.md b/docs/BriefModuleTypeRequest.md new file mode 100644 index 000000000..230ec4028 --- /dev/null +++ b/docs/BriefModuleTypeRequest.md @@ -0,0 +1,98 @@ +# BriefModuleTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefModuleTypeRequest + +`func NewBriefModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *BriefModuleTypeRequest` + +NewBriefModuleTypeRequest instantiates a new BriefModuleTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefModuleTypeRequestWithDefaults + +`func NewBriefModuleTypeRequestWithDefaults() *BriefModuleTypeRequest` + +NewBriefModuleTypeRequestWithDefaults instantiates a new BriefModuleTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefModuleTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefModuleTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefModuleTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetDescription + +`func (o *BriefModuleTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefModuleTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefModuleTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefModuleTypeRequest) HasDescription() bool` + +HasDescription 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/docs/BriefPlatform.md b/docs/BriefPlatform.md new file mode 100644 index 000000000..03d114515 --- /dev/null +++ b/docs/BriefPlatform.md @@ -0,0 +1,213 @@ +# BriefPlatform + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefPlatform + +`func NewBriefPlatform(id int32, url string, display string, name string, slug string, ) *BriefPlatform` + +NewBriefPlatform instantiates a new BriefPlatform object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPlatformWithDefaults + +`func NewBriefPlatformWithDefaults() *BriefPlatform` + +NewBriefPlatformWithDefaults instantiates a new BriefPlatform object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPlatform) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPlatform) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPlatform) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPlatform) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPlatform) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPlatform) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPlatform) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPlatform) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPlatform) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefPlatform) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPlatform) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPlatform) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefPlatform) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefPlatform) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefPlatform) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefPlatform) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPlatform) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPlatform) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPlatform) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefPlatform) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefPlatform) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefPlatform) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *BriefPlatform) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetVirtualmachineCount + +`func (o *BriefPlatform) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *BriefPlatform) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *BriefPlatform) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *BriefPlatform) HasVirtualmachineCount() bool` + +HasVirtualmachineCount 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/docs/BriefPlatformRequest.md b/docs/BriefPlatformRequest.md new file mode 100644 index 000000000..95c3de869 --- /dev/null +++ b/docs/BriefPlatformRequest.md @@ -0,0 +1,98 @@ +# BriefPlatformRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPlatformRequest + +`func NewBriefPlatformRequest(name string, slug string, ) *BriefPlatformRequest` + +NewBriefPlatformRequest instantiates a new BriefPlatformRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPlatformRequestWithDefaults + +`func NewBriefPlatformRequestWithDefaults() *BriefPlatformRequest` + +NewBriefPlatformRequestWithDefaults instantiates a new BriefPlatformRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefPlatformRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPlatformRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPlatformRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefPlatformRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefPlatformRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefPlatformRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefPlatformRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPlatformRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPlatformRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPlatformRequest) HasDescription() bool` + +HasDescription 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/docs/BriefPowerPanel.md b/docs/BriefPowerPanel.md new file mode 100644 index 000000000..76914fc7a --- /dev/null +++ b/docs/BriefPowerPanel.md @@ -0,0 +1,161 @@ +# BriefPowerPanel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**PowerfeedCount** | **int64** | | [readonly] + +## Methods + +### NewBriefPowerPanel + +`func NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *BriefPowerPanel` + +NewBriefPowerPanel instantiates a new BriefPowerPanel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPanelWithDefaults + +`func NewBriefPowerPanelWithDefaults() *BriefPowerPanel` + +NewBriefPowerPanelWithDefaults instantiates a new BriefPowerPanel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPowerPanel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPowerPanel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPowerPanel) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPowerPanel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPowerPanel) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPowerPanel) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPowerPanel) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPowerPanel) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPowerPanel) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefPowerPanel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPanel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPanel) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPanel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPanel) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPanel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPanel) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPowerfeedCount + +`func (o *BriefPowerPanel) GetPowerfeedCount() int64` + +GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. + +### GetPowerfeedCountOk + +`func (o *BriefPowerPanel) GetPowerfeedCountOk() (*int64, bool)` + +GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerfeedCount + +`func (o *BriefPowerPanel) SetPowerfeedCount(v int64)` + +SetPowerfeedCount sets PowerfeedCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPanelRequest.md b/docs/BriefPowerPanelRequest.md new file mode 100644 index 000000000..20cf4027d --- /dev/null +++ b/docs/BriefPowerPanelRequest.md @@ -0,0 +1,77 @@ +# BriefPowerPanelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPanelRequest + +`func NewBriefPowerPanelRequest(name string, ) *BriefPowerPanelRequest` + +NewBriefPowerPanelRequest instantiates a new BriefPowerPanelRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPanelRequestWithDefaults + +`func NewBriefPowerPanelRequestWithDefaults() *BriefPowerPanelRequest` + +NewBriefPowerPanelRequestWithDefaults instantiates a new BriefPowerPanelRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefPowerPanelRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPanelRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPanelRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPanelRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPanelRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPanelRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPanelRequest) HasDescription() bool` + +HasDescription 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/docs/BriefPowerPort.md b/docs/BriefPowerPort.md new file mode 100644 index 000000000..79e23cbce --- /dev/null +++ b/docs/BriefPowerPort.md @@ -0,0 +1,213 @@ +# BriefPowerPort + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Occupied** | **bool** | | [readonly] + +## Methods + +### NewBriefPowerPort + +`func NewBriefPowerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool, ) *BriefPowerPort` + +NewBriefPowerPort instantiates a new BriefPowerPort object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortWithDefaults + +`func NewBriefPowerPortWithDefaults() *BriefPowerPort` + +NewBriefPowerPortWithDefaults instantiates a new BriefPowerPort object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPowerPort) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPowerPort) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPowerPort) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPowerPort) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPowerPort) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPowerPort) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPowerPort) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPowerPort) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPowerPort) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDevice + +`func (o *BriefPowerPort) GetDevice() BriefDevice` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefPowerPort) GetDeviceOk() (*BriefDevice, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefPowerPort) SetDevice(v BriefDevice)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefPowerPort) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPort) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPort) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPort) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPort) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPort) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPort) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCable + +`func (o *BriefPowerPort) GetCable() BriefCable` + +GetCable returns the Cable field if non-nil, zero value otherwise. + +### GetCableOk + +`func (o *BriefPowerPort) GetCableOk() (*BriefCable, bool)` + +GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCable + +`func (o *BriefPowerPort) SetCable(v BriefCable)` + +SetCable sets Cable field to given value. + + +### SetCableNil + +`func (o *BriefPowerPort) SetCableNil(b bool)` + + SetCableNil sets the value for Cable to be an explicit nil + +### UnsetCable +`func (o *BriefPowerPort) UnsetCable()` + +UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetOccupied + +`func (o *BriefPowerPort) GetOccupied() bool` + +GetOccupied returns the Occupied field if non-nil, zero value otherwise. + +### GetOccupiedOk + +`func (o *BriefPowerPort) GetOccupiedOk() (*bool, bool)` + +GetOccupiedOk returns a tuple with the Occupied field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOccupied + +`func (o *BriefPowerPort) SetOccupied(v bool)` + +SetOccupied sets Occupied field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefPowerPortRequest.md b/docs/BriefPowerPortRequest.md new file mode 100644 index 000000000..885fa69e4 --- /dev/null +++ b/docs/BriefPowerPortRequest.md @@ -0,0 +1,98 @@ +# BriefPowerPortRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPortRequest + +`func NewBriefPowerPortRequest(device BriefDeviceRequest, name string, ) *BriefPowerPortRequest` + +NewBriefPowerPortRequest instantiates a new BriefPowerPortRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortRequestWithDefaults + +`func NewBriefPowerPortRequestWithDefaults() *BriefPowerPortRequest` + +NewBriefPowerPortRequestWithDefaults instantiates a new BriefPowerPortRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetDevice + +`func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest` + +GetDevice returns the Device field if non-nil, zero value otherwise. + +### GetDeviceOk + +`func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` + +GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDevice + +`func (o *BriefPowerPortRequest) SetDevice(v BriefDeviceRequest)` + +SetDevice sets Device field to given value. + + +### GetName + +`func (o *BriefPowerPortRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPortRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPortRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPortRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPortRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPortRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPortRequest) HasDescription() bool` + +HasDescription 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/docs/BriefPowerPortTemplate.md b/docs/BriefPowerPortTemplate.md new file mode 100644 index 000000000..5a5772d96 --- /dev/null +++ b/docs/BriefPowerPortTemplate.md @@ -0,0 +1,140 @@ +# BriefPowerPortTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPortTemplate + +`func NewBriefPowerPortTemplate(id int32, url string, display string, name string, ) *BriefPowerPortTemplate` + +NewBriefPowerPortTemplate instantiates a new BriefPowerPortTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortTemplateWithDefaults + +`func NewBriefPowerPortTemplateWithDefaults() *BriefPowerPortTemplate` + +NewBriefPowerPortTemplateWithDefaults instantiates a new BriefPowerPortTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefPowerPortTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefPowerPortTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefPowerPortTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefPowerPortTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefPowerPortTemplate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefPowerPortTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefPowerPortTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefPowerPortTemplate) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefPowerPortTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefPowerPortTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPortTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPortTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPortTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPortTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPortTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPortTemplate) HasDescription() bool` + +HasDescription 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/docs/BriefPowerPortTemplateRequest.md b/docs/BriefPowerPortTemplateRequest.md new file mode 100644 index 000000000..81787bb98 --- /dev/null +++ b/docs/BriefPowerPortTemplateRequest.md @@ -0,0 +1,77 @@ +# BriefPowerPortTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefPowerPortTemplateRequest + +`func NewBriefPowerPortTemplateRequest(name string, ) *BriefPowerPortTemplateRequest` + +NewBriefPowerPortTemplateRequest instantiates a new BriefPowerPortTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefPowerPortTemplateRequestWithDefaults + +`func NewBriefPowerPortTemplateRequestWithDefaults() *BriefPowerPortTemplateRequest` + +NewBriefPowerPortTemplateRequestWithDefaults instantiates a new BriefPowerPortTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefPowerPortTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefPowerPortTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefPowerPortTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefPowerPortTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefPowerPortTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefPowerPortTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefPowerPortTemplateRequest) HasDescription() bool` + +HasDescription 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/docs/BriefProvider.md b/docs/BriefProvider.md new file mode 100644 index 000000000..2b0cfad58 --- /dev/null +++ b/docs/BriefProvider.md @@ -0,0 +1,182 @@ +# BriefProvider + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | Full name of the provider | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**CircuitCount** | **int64** | | [readonly] + +## Methods + +### NewBriefProvider + +`func NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *BriefProvider` + +NewBriefProvider instantiates a new BriefProvider object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderWithDefaults + +`func NewBriefProviderWithDefaults() *BriefProvider` + +NewBriefProviderWithDefaults instantiates a new BriefProvider object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefProvider) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefProvider) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefProvider) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefProvider) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefProvider) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefProvider) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefProvider) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefProvider) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefProvider) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefProvider) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProvider) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProvider) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefProvider) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefProvider) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefProvider) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefProvider) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProvider) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProvider) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProvider) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetCircuitCount + +`func (o *BriefProvider) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *BriefProvider) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *BriefProvider) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefProviderAccount.md b/docs/BriefProviderAccount.md new file mode 100644 index 000000000..98b6f9fd3 --- /dev/null +++ b/docs/BriefProviderAccount.md @@ -0,0 +1,166 @@ +# BriefProviderAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **string** | | [optional] [default to ""] +**Account** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderAccount + +`func NewBriefProviderAccount(id int32, url string, display string, account string, ) *BriefProviderAccount` + +NewBriefProviderAccount instantiates a new BriefProviderAccount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderAccountWithDefaults + +`func NewBriefProviderAccountWithDefaults() *BriefProviderAccount` + +NewBriefProviderAccountWithDefaults instantiates a new BriefProviderAccount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefProviderAccount) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefProviderAccount) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefProviderAccount) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefProviderAccount) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefProviderAccount) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefProviderAccount) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefProviderAccount) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefProviderAccount) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefProviderAccount) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefProviderAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderAccount) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderAccount) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefProviderAccount) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *BriefProviderAccount) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *BriefProviderAccount) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *BriefProviderAccount) SetAccount(v string)` + +SetAccount sets Account field to given value. + + +### GetDescription + +`func (o *BriefProviderAccount) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderAccount) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderAccount) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderAccount) HasDescription() bool` + +HasDescription 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/docs/BriefProviderAccountRequest.md b/docs/BriefProviderAccountRequest.md new file mode 100644 index 000000000..72b16517a --- /dev/null +++ b/docs/BriefProviderAccountRequest.md @@ -0,0 +1,103 @@ +# BriefProviderAccountRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] [default to ""] +**Account** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderAccountRequest + +`func NewBriefProviderAccountRequest(account string, ) *BriefProviderAccountRequest` + +NewBriefProviderAccountRequest instantiates a new BriefProviderAccountRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderAccountRequestWithDefaults + +`func NewBriefProviderAccountRequestWithDefaults() *BriefProviderAccountRequest` + +NewBriefProviderAccountRequestWithDefaults instantiates a new BriefProviderAccountRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefProviderAccountRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderAccountRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderAccountRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *BriefProviderAccountRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *BriefProviderAccountRequest) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *BriefProviderAccountRequest) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *BriefProviderAccountRequest) SetAccount(v string)` + +SetAccount sets Account field to given value. + + +### GetDescription + +`func (o *BriefProviderAccountRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderAccountRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderAccountRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderAccountRequest) HasDescription() bool` + +HasDescription 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/docs/BriefProviderNetwork.md b/docs/BriefProviderNetwork.md new file mode 100644 index 000000000..b7f37a3d3 --- /dev/null +++ b/docs/BriefProviderNetwork.md @@ -0,0 +1,140 @@ +# BriefProviderNetwork + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderNetwork + +`func NewBriefProviderNetwork(id int32, url string, display string, name string, ) *BriefProviderNetwork` + +NewBriefProviderNetwork instantiates a new BriefProviderNetwork object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderNetworkWithDefaults + +`func NewBriefProviderNetworkWithDefaults() *BriefProviderNetwork` + +NewBriefProviderNetworkWithDefaults instantiates a new BriefProviderNetwork object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefProviderNetwork) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefProviderNetwork) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefProviderNetwork) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefProviderNetwork) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefProviderNetwork) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefProviderNetwork) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefProviderNetwork) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefProviderNetwork) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefProviderNetwork) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefProviderNetwork) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderNetwork) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderNetwork) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefProviderNetwork) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderNetwork) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderNetwork) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderNetwork) HasDescription() bool` + +HasDescription 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/docs/BriefProviderNetworkRequest.md b/docs/BriefProviderNetworkRequest.md new file mode 100644 index 000000000..cb801a067 --- /dev/null +++ b/docs/BriefProviderNetworkRequest.md @@ -0,0 +1,77 @@ +# BriefProviderNetworkRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderNetworkRequest + +`func NewBriefProviderNetworkRequest(name string, ) *BriefProviderNetworkRequest` + +NewBriefProviderNetworkRequest instantiates a new BriefProviderNetworkRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderNetworkRequestWithDefaults + +`func NewBriefProviderNetworkRequestWithDefaults() *BriefProviderNetworkRequest` + +NewBriefProviderNetworkRequestWithDefaults instantiates a new BriefProviderNetworkRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefProviderNetworkRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderNetworkRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderNetworkRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefProviderNetworkRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderNetworkRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderNetworkRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderNetworkRequest) HasDescription() bool` + +HasDescription 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/docs/BriefProviderRequest.md b/docs/BriefProviderRequest.md new file mode 100644 index 000000000..86e8b0824 --- /dev/null +++ b/docs/BriefProviderRequest.md @@ -0,0 +1,98 @@ +# BriefProviderRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Full name of the provider | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefProviderRequest + +`func NewBriefProviderRequest(name string, slug string, ) *BriefProviderRequest` + +NewBriefProviderRequest instantiates a new BriefProviderRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefProviderRequestWithDefaults + +`func NewBriefProviderRequestWithDefaults() *BriefProviderRequest` + +NewBriefProviderRequestWithDefaults instantiates a new BriefProviderRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefProviderRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefProviderRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefProviderRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefProviderRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefProviderRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefProviderRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefProviderRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefProviderRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefProviderRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefProviderRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRIR.md b/docs/BriefRIR.md new file mode 100644 index 000000000..30084ad67 --- /dev/null +++ b/docs/BriefRIR.md @@ -0,0 +1,182 @@ +# BriefRIR + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**AggregateCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRIR + +`func NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *BriefRIR` + +NewBriefRIR instantiates a new BriefRIR object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRIRWithDefaults + +`func NewBriefRIRWithDefaults() *BriefRIR` + +NewBriefRIRWithDefaults instantiates a new BriefRIR object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRIR) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRIR) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRIR) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRIR) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRIR) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRIR) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRIR) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRIR) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRIR) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRIR) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRIR) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRIR) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRIR) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRIR) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRIR) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRIR) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRIR) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRIR) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRIR) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetAggregateCount + +`func (o *BriefRIR) GetAggregateCount() int64` + +GetAggregateCount returns the AggregateCount field if non-nil, zero value otherwise. + +### GetAggregateCountOk + +`func (o *BriefRIR) GetAggregateCountOk() (*int64, bool)` + +GetAggregateCountOk returns a tuple with the AggregateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAggregateCount + +`func (o *BriefRIR) SetAggregateCount(v int64)` + +SetAggregateCount sets AggregateCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRIRRequest.md b/docs/BriefRIRRequest.md new file mode 100644 index 000000000..b22e58156 --- /dev/null +++ b/docs/BriefRIRRequest.md @@ -0,0 +1,98 @@ +# BriefRIRRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRIRRequest + +`func NewBriefRIRRequest(name string, slug string, ) *BriefRIRRequest` + +NewBriefRIRRequest instantiates a new BriefRIRRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRIRRequestWithDefaults + +`func NewBriefRIRRequestWithDefaults() *BriefRIRRequest` + +NewBriefRIRRequestWithDefaults instantiates a new BriefRIRRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRIRRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRIRRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRIRRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRIRRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRIRRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRIRRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRIRRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRIRRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRIRRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRIRRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRack.md b/docs/BriefRack.md new file mode 100644 index 000000000..a3245e2e9 --- /dev/null +++ b/docs/BriefRack.md @@ -0,0 +1,166 @@ +# BriefRack + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefRack + +`func NewBriefRack(id int32, url string, display string, name string, ) *BriefRack` + +NewBriefRack instantiates a new BriefRack object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackWithDefaults + +`func NewBriefRackWithDefaults() *BriefRack` + +NewBriefRackWithDefaults instantiates a new BriefRack object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRack) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRack) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRack) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRack) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRack) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRack) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRack) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRack) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRack) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRack) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRack) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRack) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRack) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRack) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRack) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRack) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetDeviceCount + +`func (o *BriefRack) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *BriefRack) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *BriefRack) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *BriefRack) HasDeviceCount() bool` + +HasDeviceCount 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/docs/BriefRackRequest.md b/docs/BriefRackRequest.md new file mode 100644 index 000000000..a36044006 --- /dev/null +++ b/docs/BriefRackRequest.md @@ -0,0 +1,77 @@ +# BriefRackRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackRequest + +`func NewBriefRackRequest(name string, ) *BriefRackRequest` + +NewBriefRackRequest instantiates a new BriefRackRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackRequestWithDefaults + +`func NewBriefRackRequestWithDefaults() *BriefRackRequest` + +NewBriefRackRequestWithDefaults instantiates a new BriefRackRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRackRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRackRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRackRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRackRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRackRole.md b/docs/BriefRackRole.md new file mode 100644 index 000000000..8b1cd4fb9 --- /dev/null +++ b/docs/BriefRackRole.md @@ -0,0 +1,182 @@ +# BriefRackRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**RackCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRackRole + +`func NewBriefRackRole(id int32, url string, display string, name string, slug string, rackCount int64, ) *BriefRackRole` + +NewBriefRackRole instantiates a new BriefRackRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackRoleWithDefaults + +`func NewBriefRackRoleWithDefaults() *BriefRackRole` + +NewBriefRackRoleWithDefaults instantiates a new BriefRackRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRackRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRackRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRackRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRackRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRackRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRackRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRackRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRackRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRackRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRackRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRackRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRackRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRackRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetRackCount + +`func (o *BriefRackRole) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *BriefRackRole) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *BriefRackRole) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRackRoleRequest.md b/docs/BriefRackRoleRequest.md new file mode 100644 index 000000000..9b1a04ce2 --- /dev/null +++ b/docs/BriefRackRoleRequest.md @@ -0,0 +1,98 @@ +# BriefRackRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackRoleRequest + +`func NewBriefRackRoleRequest(name string, slug string, ) *BriefRackRoleRequest` + +NewBriefRackRoleRequest instantiates a new BriefRackRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackRoleRequestWithDefaults + +`func NewBriefRackRoleRequestWithDefaults() *BriefRackRoleRequest` + +NewBriefRackRoleRequestWithDefaults instantiates a new BriefRackRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRackRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRackRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRackRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRackRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackRoleRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRackType.md b/docs/BriefRackType.md new file mode 100644 index 000000000..a2c5e0a41 --- /dev/null +++ b/docs/BriefRackType.md @@ -0,0 +1,182 @@ +# BriefRackType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackType + +`func NewBriefRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, ) *BriefRackType` + +NewBriefRackType instantiates a new BriefRackType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackTypeWithDefaults + +`func NewBriefRackTypeWithDefaults() *BriefRackType` + +NewBriefRackTypeWithDefaults instantiates a new BriefRackType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRackType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRackType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRackType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRackType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRackType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRackType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRackType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRackType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRackType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *BriefRackType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefRackType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefRackType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefRackType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefRackType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefRackType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefRackType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackType) HasDescription() bool` + +HasDescription 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/docs/BriefRackTypeRequest.md b/docs/BriefRackTypeRequest.md new file mode 100644 index 000000000..5cfa32e38 --- /dev/null +++ b/docs/BriefRackTypeRequest.md @@ -0,0 +1,119 @@ +# BriefRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRackTypeRequest + +`func NewBriefRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *BriefRackTypeRequest` + +NewBriefRackTypeRequest instantiates a new BriefRackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRackTypeRequestWithDefaults + +`func NewBriefRackTypeRequestWithDefaults() *BriefRackTypeRequest` + +NewBriefRackTypeRequestWithDefaults instantiates a new BriefRackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *BriefRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *BriefRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *BriefRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *BriefRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *BriefRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRackTypeRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRearPortTemplate.md b/docs/BriefRearPortTemplate.md new file mode 100644 index 000000000..3849d33c2 --- /dev/null +++ b/docs/BriefRearPortTemplate.md @@ -0,0 +1,140 @@ +# BriefRearPortTemplate + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRearPortTemplate + +`func NewBriefRearPortTemplate(id int32, url string, display string, name string, ) *BriefRearPortTemplate` + +NewBriefRearPortTemplate instantiates a new BriefRearPortTemplate object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRearPortTemplateWithDefaults + +`func NewBriefRearPortTemplateWithDefaults() *BriefRearPortTemplate` + +NewBriefRearPortTemplateWithDefaults instantiates a new BriefRearPortTemplate object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRearPortTemplate) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRearPortTemplate) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRearPortTemplate) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRearPortTemplate) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRearPortTemplate) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRearPortTemplate) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRearPortTemplate) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRearPortTemplate) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRearPortTemplate) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRearPortTemplate) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRearPortTemplate) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRearPortTemplate) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRearPortTemplate) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRearPortTemplate) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRearPortTemplate) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRearPortTemplate) HasDescription() bool` + +HasDescription 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/docs/BriefRearPortTemplateRequest.md b/docs/BriefRearPortTemplateRequest.md new file mode 100644 index 000000000..8c0720a7e --- /dev/null +++ b/docs/BriefRearPortTemplateRequest.md @@ -0,0 +1,77 @@ +# BriefRearPortTemplateRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRearPortTemplateRequest + +`func NewBriefRearPortTemplateRequest(name string, ) *BriefRearPortTemplateRequest` + +NewBriefRearPortTemplateRequest instantiates a new BriefRearPortTemplateRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRearPortTemplateRequestWithDefaults + +`func NewBriefRearPortTemplateRequestWithDefaults() *BriefRearPortTemplateRequest` + +NewBriefRearPortTemplateRequestWithDefaults instantiates a new BriefRearPortTemplateRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRearPortTemplateRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRearPortTemplateRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRearPortTemplateRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefRearPortTemplateRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRearPortTemplateRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRearPortTemplateRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRearPortTemplateRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRegion.md b/docs/BriefRegion.md new file mode 100644 index 000000000..a77d1bcf3 --- /dev/null +++ b/docs/BriefRegion.md @@ -0,0 +1,203 @@ +# BriefRegion + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**SiteCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefRegion + +`func NewBriefRegion(id int32, url string, display string, name string, slug string, siteCount int32, depth int32, ) *BriefRegion` + +NewBriefRegion instantiates a new BriefRegion object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRegionWithDefaults + +`func NewBriefRegionWithDefaults() *BriefRegion` + +NewBriefRegionWithDefaults instantiates a new BriefRegion object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRegion) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRegion) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRegion) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRegion) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRegion) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRegion) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRegion) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRegion) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRegion) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRegion) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRegion) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRegion) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRegion) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRegion) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRegion) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRegion) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRegion) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRegion) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRegion) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSiteCount + +`func (o *BriefRegion) GetSiteCount() int32` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *BriefRegion) GetSiteCountOk() (*int32, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *BriefRegion) SetSiteCount(v int32)` + +SetSiteCount sets SiteCount field to given value. + + +### GetDepth + +`func (o *BriefRegion) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefRegion) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefRegion) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRegionRequest.md b/docs/BriefRegionRequest.md new file mode 100644 index 000000000..eef94bb0d --- /dev/null +++ b/docs/BriefRegionRequest.md @@ -0,0 +1,98 @@ +# BriefRegionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRegionRequest + +`func NewBriefRegionRequest(name string, slug string, ) *BriefRegionRequest` + +NewBriefRegionRequest instantiates a new BriefRegionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRegionRequestWithDefaults + +`func NewBriefRegionRequestWithDefaults() *BriefRegionRequest` + +NewBriefRegionRequestWithDefaults instantiates a new BriefRegionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRegionRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRegionRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRegionRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRegionRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRegionRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRegionRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRegionRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRegionRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRegionRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRegionRequest) HasDescription() bool` + +HasDescription 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/docs/BriefRole.md b/docs/BriefRole.md new file mode 100644 index 000000000..30bbf7ed2 --- /dev/null +++ b/docs/BriefRole.md @@ -0,0 +1,208 @@ +# BriefRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | **int64** | | [readonly] + +## Methods + +### NewBriefRole + +`func NewBriefRole(id int32, url string, display string, name string, slug string, vlanCount int64, ) *BriefRole` + +NewBriefRole instantiates a new BriefRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRoleWithDefaults + +`func NewBriefRoleWithDefaults() *BriefRole` + +NewBriefRoleWithDefaults instantiates a new BriefRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefRole) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefRole) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefRole) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefRole) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefRole) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefRole) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefRole) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefRole) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefRole) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefRole) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRole) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRole) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRole) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRole) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRole) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRole) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRole) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRole) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRole) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *BriefRole) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *BriefRole) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *BriefRole) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *BriefRole) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *BriefRole) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *BriefRole) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *BriefRole) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefRoleRequest.md b/docs/BriefRoleRequest.md new file mode 100644 index 000000000..e42a2bccf --- /dev/null +++ b/docs/BriefRoleRequest.md @@ -0,0 +1,98 @@ +# BriefRoleRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefRoleRequest + +`func NewBriefRoleRequest(name string, slug string, ) *BriefRoleRequest` + +NewBriefRoleRequest instantiates a new BriefRoleRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefRoleRequestWithDefaults + +`func NewBriefRoleRequestWithDefaults() *BriefRoleRequest` + +NewBriefRoleRequestWithDefaults instantiates a new BriefRoleRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefRoleRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefRoleRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefRoleRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefRoleRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefRoleRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefRoleRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefRoleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefRoleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefRoleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefRoleRequest) HasDescription() bool` + +HasDescription 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/docs/BriefSite.md b/docs/BriefSite.md new file mode 100644 index 000000000..16f9519a0 --- /dev/null +++ b/docs/BriefSite.md @@ -0,0 +1,161 @@ +# BriefSite + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | Full name of the site | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefSite + +`func NewBriefSite(id int32, url string, display string, name string, slug string, ) *BriefSite` + +NewBriefSite instantiates a new BriefSite object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteWithDefaults + +`func NewBriefSiteWithDefaults() *BriefSite` + +NewBriefSiteWithDefaults instantiates a new BriefSite object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefSite) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefSite) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefSite) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefSite) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefSite) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefSite) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefSite) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefSite) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefSite) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefSite) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSite) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSite) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSite) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSite) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSite) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSite) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSite) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSite) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSite) HasDescription() bool` + +HasDescription 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/docs/BriefSiteGroup.md b/docs/BriefSiteGroup.md new file mode 100644 index 000000000..72c29685d --- /dev/null +++ b/docs/BriefSiteGroup.md @@ -0,0 +1,203 @@ +# BriefSiteGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**SiteCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefSiteGroup + +`func NewBriefSiteGroup(id int32, url string, display string, name string, slug string, siteCount int32, depth int32, ) *BriefSiteGroup` + +NewBriefSiteGroup instantiates a new BriefSiteGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteGroupWithDefaults + +`func NewBriefSiteGroupWithDefaults() *BriefSiteGroup` + +NewBriefSiteGroupWithDefaults instantiates a new BriefSiteGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefSiteGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefSiteGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefSiteGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefSiteGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefSiteGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefSiteGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefSiteGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefSiteGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefSiteGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefSiteGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSiteGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSiteGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSiteGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSiteGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSiteGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSiteGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSiteGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSiteGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSiteGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetSiteCount + +`func (o *BriefSiteGroup) GetSiteCount() int32` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *BriefSiteGroup) GetSiteCountOk() (*int32, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *BriefSiteGroup) SetSiteCount(v int32)` + +SetSiteCount sets SiteCount field to given value. + + +### GetDepth + +`func (o *BriefSiteGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefSiteGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefSiteGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefSiteGroupRequest.md b/docs/BriefSiteGroupRequest.md new file mode 100644 index 000000000..b1c35391d --- /dev/null +++ b/docs/BriefSiteGroupRequest.md @@ -0,0 +1,98 @@ +# BriefSiteGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefSiteGroupRequest + +`func NewBriefSiteGroupRequest(name string, slug string, ) *BriefSiteGroupRequest` + +NewBriefSiteGroupRequest instantiates a new BriefSiteGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteGroupRequestWithDefaults + +`func NewBriefSiteGroupRequestWithDefaults() *BriefSiteGroupRequest` + +NewBriefSiteGroupRequestWithDefaults instantiates a new BriefSiteGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefSiteGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSiteGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSiteGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSiteGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSiteGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSiteGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSiteGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSiteGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSiteGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSiteGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefSiteRequest.md b/docs/BriefSiteRequest.md new file mode 100644 index 000000000..bf692187b --- /dev/null +++ b/docs/BriefSiteRequest.md @@ -0,0 +1,98 @@ +# BriefSiteRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | Full name of the site | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefSiteRequest + +`func NewBriefSiteRequest(name string, slug string, ) *BriefSiteRequest` + +NewBriefSiteRequest instantiates a new BriefSiteRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefSiteRequestWithDefaults + +`func NewBriefSiteRequestWithDefaults() *BriefSiteRequest` + +NewBriefSiteRequestWithDefaults instantiates a new BriefSiteRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefSiteRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefSiteRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefSiteRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefSiteRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefSiteRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefSiteRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefSiteRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefSiteRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefSiteRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefSiteRequest) HasDescription() bool` + +HasDescription 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/docs/BriefTenant.md b/docs/BriefTenant.md new file mode 100644 index 000000000..19156dfc0 --- /dev/null +++ b/docs/BriefTenant.md @@ -0,0 +1,161 @@ +# BriefTenant + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTenant + +`func NewBriefTenant(id int32, url string, display string, name string, slug string, ) *BriefTenant` + +NewBriefTenant instantiates a new BriefTenant object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantWithDefaults + +`func NewBriefTenantWithDefaults() *BriefTenant` + +NewBriefTenantWithDefaults instantiates a new BriefTenant object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTenant) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTenant) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTenant) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTenant) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTenant) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTenant) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTenant) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTenant) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTenant) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTenant) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenant) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenant) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenant) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenant) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenant) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenant) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenant) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenant) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenant) HasDescription() bool` + +HasDescription 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/docs/BriefTenantGroup.md b/docs/BriefTenantGroup.md new file mode 100644 index 000000000..513eb6956 --- /dev/null +++ b/docs/BriefTenantGroup.md @@ -0,0 +1,203 @@ +# BriefTenantGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**TenantCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefTenantGroup + +`func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32, ) *BriefTenantGroup` + +NewBriefTenantGroup instantiates a new BriefTenantGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantGroupWithDefaults + +`func NewBriefTenantGroupWithDefaults() *BriefTenantGroup` + +NewBriefTenantGroupWithDefaults instantiates a new BriefTenantGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTenantGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTenantGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTenantGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTenantGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTenantGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTenantGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTenantGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTenantGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTenantGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTenantGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenantGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenantGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenantGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenantGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenantGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenantGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenantGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenantGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenantGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenantCount + +`func (o *BriefTenantGroup) GetTenantCount() int32` + +GetTenantCount returns the TenantCount field if non-nil, zero value otherwise. + +### GetTenantCountOk + +`func (o *BriefTenantGroup) GetTenantCountOk() (*int32, bool)` + +GetTenantCountOk returns a tuple with the TenantCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenantCount + +`func (o *BriefTenantGroup) SetTenantCount(v int32)` + +SetTenantCount sets TenantCount field to given value. + + +### GetDepth + +`func (o *BriefTenantGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefTenantGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefTenantGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTenantGroupRequest.md b/docs/BriefTenantGroupRequest.md new file mode 100644 index 000000000..2db94d120 --- /dev/null +++ b/docs/BriefTenantGroupRequest.md @@ -0,0 +1,98 @@ +# BriefTenantGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTenantGroupRequest + +`func NewBriefTenantGroupRequest(name string, slug string, ) *BriefTenantGroupRequest` + +NewBriefTenantGroupRequest instantiates a new BriefTenantGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantGroupRequestWithDefaults + +`func NewBriefTenantGroupRequestWithDefaults() *BriefTenantGroupRequest` + +NewBriefTenantGroupRequestWithDefaults instantiates a new BriefTenantGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTenantGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenantGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenantGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenantGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenantGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenantGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenantGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenantGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenantGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenantGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefTenantRequest.md b/docs/BriefTenantRequest.md new file mode 100644 index 000000000..5c45f3814 --- /dev/null +++ b/docs/BriefTenantRequest.md @@ -0,0 +1,98 @@ +# BriefTenantRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTenantRequest + +`func NewBriefTenantRequest(name string, slug string, ) *BriefTenantRequest` + +NewBriefTenantRequest instantiates a new BriefTenantRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTenantRequestWithDefaults + +`func NewBriefTenantRequestWithDefaults() *BriefTenantRequest` + +NewBriefTenantRequestWithDefaults instantiates a new BriefTenantRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTenantRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTenantRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTenantRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTenantRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTenantRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTenantRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTenantRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTenantRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTenantRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTenantRequest) HasDescription() bool` + +HasDescription 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/docs/BriefTunnel.md b/docs/BriefTunnel.md new file mode 100644 index 000000000..cab03cd7e --- /dev/null +++ b/docs/BriefTunnel.md @@ -0,0 +1,140 @@ +# BriefTunnel + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTunnel + +`func NewBriefTunnel(id int32, url string, display string, name string, ) *BriefTunnel` + +NewBriefTunnel instantiates a new BriefTunnel object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelWithDefaults + +`func NewBriefTunnelWithDefaults() *BriefTunnel` + +NewBriefTunnelWithDefaults instantiates a new BriefTunnel object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTunnel) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTunnel) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTunnel) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTunnel) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTunnel) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTunnel) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTunnel) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTunnel) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTunnel) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTunnel) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnel) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnel) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefTunnel) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnel) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnel) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnel) HasDescription() bool` + +HasDescription 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/docs/BriefTunnelGroup.md b/docs/BriefTunnelGroup.md new file mode 100644 index 000000000..ca2d77464 --- /dev/null +++ b/docs/BriefTunnelGroup.md @@ -0,0 +1,182 @@ +# BriefTunnelGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**TunnelCount** | **int64** | | [readonly] + +## Methods + +### NewBriefTunnelGroup + +`func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64, ) *BriefTunnelGroup` + +NewBriefTunnelGroup instantiates a new BriefTunnelGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelGroupWithDefaults + +`func NewBriefTunnelGroupWithDefaults() *BriefTunnelGroup` + +NewBriefTunnelGroupWithDefaults instantiates a new BriefTunnelGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefTunnelGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefTunnelGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefTunnelGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefTunnelGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefTunnelGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefTunnelGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefTunnelGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefTunnelGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefTunnelGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefTunnelGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnelGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnelGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTunnelGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTunnelGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTunnelGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTunnelGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnelGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnelGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnelGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTunnelCount + +`func (o *BriefTunnelGroup) GetTunnelCount() int64` + +GetTunnelCount returns the TunnelCount field if non-nil, zero value otherwise. + +### GetTunnelCountOk + +`func (o *BriefTunnelGroup) GetTunnelCountOk() (*int64, bool)` + +GetTunnelCountOk returns a tuple with the TunnelCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelCount + +`func (o *BriefTunnelGroup) SetTunnelCount(v int64)` + +SetTunnelCount sets TunnelCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefTunnelGroupRequest.md b/docs/BriefTunnelGroupRequest.md new file mode 100644 index 000000000..8db15328a --- /dev/null +++ b/docs/BriefTunnelGroupRequest.md @@ -0,0 +1,98 @@ +# BriefTunnelGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTunnelGroupRequest + +`func NewBriefTunnelGroupRequest(name string, slug string, ) *BriefTunnelGroupRequest` + +NewBriefTunnelGroupRequest instantiates a new BriefTunnelGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelGroupRequestWithDefaults + +`func NewBriefTunnelGroupRequestWithDefaults() *BriefTunnelGroupRequest` + +NewBriefTunnelGroupRequestWithDefaults instantiates a new BriefTunnelGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTunnelGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnelGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnelGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefTunnelGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefTunnelGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefTunnelGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefTunnelGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnelGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnelGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnelGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefTunnelRequest.md b/docs/BriefTunnelRequest.md new file mode 100644 index 000000000..74b5f1acd --- /dev/null +++ b/docs/BriefTunnelRequest.md @@ -0,0 +1,77 @@ +# BriefTunnelRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefTunnelRequest + +`func NewBriefTunnelRequest(name string, ) *BriefTunnelRequest` + +NewBriefTunnelRequest instantiates a new BriefTunnelRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefTunnelRequestWithDefaults + +`func NewBriefTunnelRequestWithDefaults() *BriefTunnelRequest` + +NewBriefTunnelRequestWithDefaults instantiates a new BriefTunnelRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefTunnelRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefTunnelRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefTunnelRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefTunnelRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefTunnelRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefTunnelRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefTunnelRequest) HasDescription() bool` + +HasDescription 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/docs/BriefUser.md b/docs/BriefUser.md new file mode 100644 index 000000000..6f3cab564 --- /dev/null +++ b/docs/BriefUser.md @@ -0,0 +1,114 @@ +# BriefUser + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | + +## Methods + +### NewBriefUser + +`func NewBriefUser(id int32, url string, display string, username string, ) *BriefUser` + +NewBriefUser instantiates a new BriefUser object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefUserWithDefaults + +`func NewBriefUserWithDefaults() *BriefUser` + +NewBriefUserWithDefaults instantiates a new BriefUser object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefUser) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefUser) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefUser) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefUser) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefUser) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefUser) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefUser) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefUser) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefUser) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetUsername + +`func (o *BriefUser) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *BriefUser) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *BriefUser) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefUserRequest.md b/docs/BriefUserRequest.md new file mode 100644 index 000000000..f3559dd8e --- /dev/null +++ b/docs/BriefUserRequest.md @@ -0,0 +1,51 @@ +# BriefUserRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | + +## Methods + +### NewBriefUserRequest + +`func NewBriefUserRequest(username string, ) *BriefUserRequest` + +NewBriefUserRequest instantiates a new BriefUserRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefUserRequestWithDefaults + +`func NewBriefUserRequestWithDefaults() *BriefUserRequest` + +NewBriefUserRequestWithDefaults instantiates a new BriefUserRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetUsername + +`func (o *BriefUserRequest) GetUsername() string` + +GetUsername returns the Username field if non-nil, zero value otherwise. + +### GetUsernameOk + +`func (o *BriefUserRequest) GetUsernameOk() (*string, bool)` + +GetUsernameOk returns a tuple with the Username field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsername + +`func (o *BriefUserRequest) SetUsername(v string)` + +SetUsername sets Username field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVLAN.md b/docs/BriefVLAN.md new file mode 100644 index 000000000..da6784bd4 --- /dev/null +++ b/docs/BriefVLAN.md @@ -0,0 +1,161 @@ +# BriefVLAN + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVLAN + +`func NewBriefVLAN(id int32, url string, display string, vid int32, name string, ) *BriefVLAN` + +NewBriefVLAN instantiates a new BriefVLAN object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANWithDefaults + +`func NewBriefVLANWithDefaults() *BriefVLAN` + +NewBriefVLANWithDefaults instantiates a new BriefVLAN object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVLAN) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVLAN) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVLAN) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVLAN) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVLAN) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVLAN) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVLAN) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVLAN) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVLAN) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetVid + +`func (o *BriefVLAN) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *BriefVLAN) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *BriefVLAN) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *BriefVLAN) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLAN) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLAN) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVLAN) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLAN) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLAN) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLAN) HasDescription() bool` + +HasDescription 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/docs/BriefVLANGroup.md b/docs/BriefVLANGroup.md new file mode 100644 index 000000000..a38b95b4e --- /dev/null +++ b/docs/BriefVLANGroup.md @@ -0,0 +1,182 @@ +# BriefVLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**VlanCount** | **int64** | | [readonly] + +## Methods + +### NewBriefVLANGroup + +`func NewBriefVLANGroup(id int32, url string, display string, name string, slug string, vlanCount int64, ) *BriefVLANGroup` + +NewBriefVLANGroup instantiates a new BriefVLANGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANGroupWithDefaults + +`func NewBriefVLANGroupWithDefaults() *BriefVLANGroup` + +NewBriefVLANGroupWithDefaults instantiates a new BriefVLANGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVLANGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVLANGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVLANGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLANGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefVLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefVLANGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefVLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefVLANGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLANGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLANGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLANGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *BriefVLANGroup) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *BriefVLANGroup) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *BriefVLANGroup) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVLANGroupRequest.md b/docs/BriefVLANGroupRequest.md new file mode 100644 index 000000000..a77682fe0 --- /dev/null +++ b/docs/BriefVLANGroupRequest.md @@ -0,0 +1,98 @@ +# BriefVLANGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVLANGroupRequest + +`func NewBriefVLANGroupRequest(name string, slug string, ) *BriefVLANGroupRequest` + +NewBriefVLANGroupRequest instantiates a new BriefVLANGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANGroupRequestWithDefaults + +`func NewBriefVLANGroupRequestWithDefaults() *BriefVLANGroupRequest` + +NewBriefVLANGroupRequestWithDefaults instantiates a new BriefVLANGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVLANGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLANGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLANGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefVLANGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefVLANGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefVLANGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefVLANGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLANGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLANGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLANGroupRequest) HasDescription() bool` + +HasDescription 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/docs/BriefVLANRequest.md b/docs/BriefVLANRequest.md new file mode 100644 index 000000000..c90d38167 --- /dev/null +++ b/docs/BriefVLANRequest.md @@ -0,0 +1,98 @@ +# BriefVLANRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Vid** | **int32** | Numeric VLAN ID (1-4094) | +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVLANRequest + +`func NewBriefVLANRequest(vid int32, name string, ) *BriefVLANRequest` + +NewBriefVLANRequest instantiates a new BriefVLANRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVLANRequestWithDefaults + +`func NewBriefVLANRequestWithDefaults() *BriefVLANRequest` + +NewBriefVLANRequestWithDefaults instantiates a new BriefVLANRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetVid + +`func (o *BriefVLANRequest) GetVid() int32` + +GetVid returns the Vid field if non-nil, zero value otherwise. + +### GetVidOk + +`func (o *BriefVLANRequest) GetVidOk() (*int32, bool)` + +GetVidOk returns a tuple with the Vid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVid + +`func (o *BriefVLANRequest) SetVid(v int32)` + +SetVid sets Vid field to given value. + + +### GetName + +`func (o *BriefVLANRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVLANRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVLANRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVLANRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVLANRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVLANRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVLANRequest) HasDescription() bool` + +HasDescription 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/docs/BriefVRF.md b/docs/BriefVRF.md new file mode 100644 index 000000000..a130ae340 --- /dev/null +++ b/docs/BriefVRF.md @@ -0,0 +1,202 @@ +# BriefVRF + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Description** | Pointer to **string** | | [optional] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] + +## Methods + +### NewBriefVRF + +`func NewBriefVRF(id int32, url string, display string, name string, ) *BriefVRF` + +NewBriefVRF instantiates a new BriefVRF object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVRFWithDefaults + +`func NewBriefVRFWithDefaults() *BriefVRF` + +NewBriefVRFWithDefaults instantiates a new BriefVRF object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVRF) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVRF) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVRF) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVRF) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVRF) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVRF) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVRF) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVRF) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVRF) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVRF) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVRF) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVRF) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRd + +`func (o *BriefVRF) GetRd() string` + +GetRd returns the Rd field if non-nil, zero value otherwise. + +### GetRdOk + +`func (o *BriefVRF) GetRdOk() (*string, bool)` + +GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRd + +`func (o *BriefVRF) SetRd(v string)` + +SetRd sets Rd field to given value. + +### HasRd + +`func (o *BriefVRF) HasRd() bool` + +HasRd returns a boolean if a field has been set. + +### SetRdNil + +`func (o *BriefVRF) SetRdNil(b bool)` + + SetRdNil sets the value for Rd to be an explicit nil + +### UnsetRd +`func (o *BriefVRF) UnsetRd()` + +UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetDescription + +`func (o *BriefVRF) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVRF) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVRF) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVRF) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *BriefVRF) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *BriefVRF) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *BriefVRF) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *BriefVRF) HasPrefixCount() bool` + +HasPrefixCount 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/docs/BriefVRFRequest.md b/docs/BriefVRFRequest.md new file mode 100644 index 000000000..c942553ae --- /dev/null +++ b/docs/BriefVRFRequest.md @@ -0,0 +1,113 @@ +# BriefVRFRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVRFRequest + +`func NewBriefVRFRequest(name string, ) *BriefVRFRequest` + +NewBriefVRFRequest instantiates a new BriefVRFRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVRFRequestWithDefaults + +`func NewBriefVRFRequestWithDefaults() *BriefVRFRequest` + +NewBriefVRFRequestWithDefaults instantiates a new BriefVRFRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVRFRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVRFRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVRFRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetRd + +`func (o *BriefVRFRequest) GetRd() string` + +GetRd returns the Rd field if non-nil, zero value otherwise. + +### GetRdOk + +`func (o *BriefVRFRequest) GetRdOk() (*string, bool)` + +GetRdOk returns a tuple with the Rd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRd + +`func (o *BriefVRFRequest) SetRd(v string)` + +SetRd sets Rd field to given value. + +### HasRd + +`func (o *BriefVRFRequest) HasRd() bool` + +HasRd returns a boolean if a field has been set. + +### SetRdNil + +`func (o *BriefVRFRequest) SetRdNil(b bool)` + + SetRdNil sets the value for Rd to be an explicit nil + +### UnsetRd +`func (o *BriefVRFRequest) UnsetRd()` + +UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetDescription + +`func (o *BriefVRFRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVRFRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVRFRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVRFRequest) HasDescription() bool` + +HasDescription 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/docs/BriefVirtualChassis.md b/docs/BriefVirtualChassis.md new file mode 100644 index 000000000..304b6f30d --- /dev/null +++ b/docs/BriefVirtualChassis.md @@ -0,0 +1,197 @@ +# BriefVirtualChassis + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] +**Description** | Pointer to **string** | | [optional] +**MemberCount** | **int32** | | [readonly] + +## Methods + +### NewBriefVirtualChassis + +`func NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *BriefVirtualChassis` + +NewBriefVirtualChassis instantiates a new BriefVirtualChassis object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualChassisWithDefaults + +`func NewBriefVirtualChassisWithDefaults() *BriefVirtualChassis` + +NewBriefVirtualChassisWithDefaults instantiates a new BriefVirtualChassis object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVirtualChassis) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVirtualChassis) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVirtualChassis) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVirtualChassis) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVirtualChassis) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVirtualChassis) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVirtualChassis) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVirtualChassis) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVirtualChassis) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVirtualChassis) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualChassis) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualChassis) SetName(v string)` + +SetName sets Name field to given value. + + +### GetMaster + +`func (o *BriefVirtualChassis) GetMaster() NestedDevice` + +GetMaster returns the Master field if non-nil, zero value otherwise. + +### GetMasterOk + +`func (o *BriefVirtualChassis) GetMasterOk() (*NestedDevice, bool)` + +GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaster + +`func (o *BriefVirtualChassis) SetMaster(v NestedDevice)` + +SetMaster sets Master field to given value. + +### HasMaster + +`func (o *BriefVirtualChassis) HasMaster() bool` + +HasMaster returns a boolean if a field has been set. + +### SetMasterNil + +`func (o *BriefVirtualChassis) SetMasterNil(b bool)` + + SetMasterNil sets the value for Master to be an explicit nil + +### UnsetMaster +`func (o *BriefVirtualChassis) UnsetMaster()` + +UnsetMaster ensures that no value is present for Master, not even an explicit nil +### GetDescription + +`func (o *BriefVirtualChassis) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualChassis) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualChassis) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualChassis) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetMemberCount + +`func (o *BriefVirtualChassis) GetMemberCount() int32` + +GetMemberCount returns the MemberCount field if non-nil, zero value otherwise. + +### GetMemberCountOk + +`func (o *BriefVirtualChassis) GetMemberCountOk() (*int32, bool)` + +GetMemberCountOk returns a tuple with the MemberCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMemberCount + +`func (o *BriefVirtualChassis) SetMemberCount(v int32)` + +SetMemberCount sets MemberCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefVirtualChassisRequest.md b/docs/BriefVirtualChassisRequest.md new file mode 100644 index 000000000..168d675ed --- /dev/null +++ b/docs/BriefVirtualChassisRequest.md @@ -0,0 +1,113 @@ +# BriefVirtualChassisRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVirtualChassisRequest + +`func NewBriefVirtualChassisRequest(name string, ) *BriefVirtualChassisRequest` + +NewBriefVirtualChassisRequest instantiates a new BriefVirtualChassisRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualChassisRequestWithDefaults + +`func NewBriefVirtualChassisRequestWithDefaults() *BriefVirtualChassisRequest` + +NewBriefVirtualChassisRequestWithDefaults instantiates a new BriefVirtualChassisRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVirtualChassisRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualChassisRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualChassisRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetMaster + +`func (o *BriefVirtualChassisRequest) GetMaster() NestedDeviceRequest` + +GetMaster returns the Master field if non-nil, zero value otherwise. + +### GetMasterOk + +`func (o *BriefVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool)` + +GetMasterOk returns a tuple with the Master field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaster + +`func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest)` + +SetMaster sets Master field to given value. + +### HasMaster + +`func (o *BriefVirtualChassisRequest) HasMaster() bool` + +HasMaster returns a boolean if a field has been set. + +### SetMasterNil + +`func (o *BriefVirtualChassisRequest) SetMasterNil(b bool)` + + SetMasterNil sets the value for Master to be an explicit nil + +### UnsetMaster +`func (o *BriefVirtualChassisRequest) UnsetMaster()` + +UnsetMaster ensures that no value is present for Master, not even an explicit nil +### GetDescription + +`func (o *BriefVirtualChassisRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualChassisRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualChassisRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualChassisRequest) HasDescription() bool` + +HasDescription 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/docs/BriefVirtualMachine.md b/docs/BriefVirtualMachine.md new file mode 100644 index 000000000..224fa020b --- /dev/null +++ b/docs/BriefVirtualMachine.md @@ -0,0 +1,140 @@ +# BriefVirtualMachine + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVirtualMachine + +`func NewBriefVirtualMachine(id int32, url string, display string, name string, ) *BriefVirtualMachine` + +NewBriefVirtualMachine instantiates a new BriefVirtualMachine object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualMachineWithDefaults + +`func NewBriefVirtualMachineWithDefaults() *BriefVirtualMachine` + +NewBriefVirtualMachineWithDefaults instantiates a new BriefVirtualMachine object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefVirtualMachine) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefVirtualMachine) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefVirtualMachine) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefVirtualMachine) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefVirtualMachine) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefVirtualMachine) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefVirtualMachine) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefVirtualMachine) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefVirtualMachine) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefVirtualMachine) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualMachine) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualMachine) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVirtualMachine) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualMachine) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualMachine) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualMachine) HasDescription() bool` + +HasDescription 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/docs/BriefVirtualMachineRequest.md b/docs/BriefVirtualMachineRequest.md new file mode 100644 index 000000000..8c147c303 --- /dev/null +++ b/docs/BriefVirtualMachineRequest.md @@ -0,0 +1,77 @@ +# BriefVirtualMachineRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefVirtualMachineRequest + +`func NewBriefVirtualMachineRequest(name string, ) *BriefVirtualMachineRequest` + +NewBriefVirtualMachineRequest instantiates a new BriefVirtualMachineRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefVirtualMachineRequestWithDefaults + +`func NewBriefVirtualMachineRequestWithDefaults() *BriefVirtualMachineRequest` + +NewBriefVirtualMachineRequestWithDefaults instantiates a new BriefVirtualMachineRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefVirtualMachineRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefVirtualMachineRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefVirtualMachineRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *BriefVirtualMachineRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefVirtualMachineRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefVirtualMachineRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefVirtualMachineRequest) HasDescription() bool` + +HasDescription 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/docs/BriefWirelessLANGroup.md b/docs/BriefWirelessLANGroup.md new file mode 100644 index 000000000..680e013da --- /dev/null +++ b/docs/BriefWirelessLANGroup.md @@ -0,0 +1,203 @@ +# BriefWirelessLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**WirelesslanCount** | **int32** | | [readonly] [default to 0] +**Depth** | **int32** | | [readonly] + +## Methods + +### NewBriefWirelessLANGroup + +`func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *BriefWirelessLANGroup` + +NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefWirelessLANGroupWithDefaults + +`func NewBriefWirelessLANGroupWithDefaults() *BriefWirelessLANGroup` + +NewBriefWirelessLANGroupWithDefaults instantiates a new BriefWirelessLANGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *BriefWirelessLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *BriefWirelessLANGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *BriefWirelessLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *BriefWirelessLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *BriefWirelessLANGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *BriefWirelessLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *BriefWirelessLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *BriefWirelessLANGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *BriefWirelessLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *BriefWirelessLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefWirelessLANGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefWirelessLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefWirelessLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefWirelessLANGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefWirelessLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefWirelessLANGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefWirelessLANGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefWirelessLANGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefWirelessLANGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetWirelesslanCount + +`func (o *BriefWirelessLANGroup) GetWirelesslanCount() int32` + +GetWirelesslanCount returns the WirelesslanCount field if non-nil, zero value otherwise. + +### GetWirelesslanCountOk + +`func (o *BriefWirelessLANGroup) GetWirelesslanCountOk() (*int32, bool)` + +GetWirelesslanCountOk returns a tuple with the WirelesslanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWirelesslanCount + +`func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32)` + +SetWirelesslanCount sets WirelesslanCount field to given value. + + +### GetDepth + +`func (o *BriefWirelessLANGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *BriefWirelessLANGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/BriefWirelessLANGroupRequest.md b/docs/BriefWirelessLANGroupRequest.md new file mode 100644 index 000000000..7e45eb450 --- /dev/null +++ b/docs/BriefWirelessLANGroupRequest.md @@ -0,0 +1,98 @@ +# BriefWirelessLANGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewBriefWirelessLANGroupRequest + +`func NewBriefWirelessLANGroupRequest(name string, slug string, ) *BriefWirelessLANGroupRequest` + +NewBriefWirelessLANGroupRequest instantiates a new BriefWirelessLANGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewBriefWirelessLANGroupRequestWithDefaults + +`func NewBriefWirelessLANGroupRequestWithDefaults() *BriefWirelessLANGroupRequest` + +NewBriefWirelessLANGroupRequestWithDefaults instantiates a new BriefWirelessLANGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *BriefWirelessLANGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *BriefWirelessLANGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *BriefWirelessLANGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *BriefWirelessLANGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *BriefWirelessLANGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *BriefWirelessLANGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *BriefWirelessLANGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *BriefWirelessLANGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *BriefWirelessLANGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *BriefWirelessLANGroupRequest) HasDescription() bool` + +HasDescription 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/docs/Cable.md b/docs/Cable.md index 389a4c616..8a7a7c89e 100644 --- a/docs/Cable.md +++ b/docs/Cable.md @@ -6,15 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**ATerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] +**BTerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Label** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Length** | Pointer to **NullableFloat64** | | [optional] +**LengthUnit** | Pointer to [**NullableCableLengthUnit**](CableLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewCable -`func NewCable(id int32, url string, display string, ) *Cable` +`func NewCable(id int32, url string, displayUrl string, display string, created NullableTime, lastUpdated NullableTime, ) *Cable` NewCable instantiates a new Cable object This constructor will assign default values to properties that have it defined, @@ -69,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cable) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cable) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cable) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Cable) GetDisplay() string` @@ -89,6 +123,141 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetType + +`func (o *Cable) GetType() CableType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cable) GetTypeOk() (*CableType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cable) SetType(v CableType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Cable) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetATerminations + +`func (o *Cable) GetATerminations() []GenericObject` + +GetATerminations returns the ATerminations field if non-nil, zero value otherwise. + +### GetATerminationsOk + +`func (o *Cable) GetATerminationsOk() (*[]GenericObject, bool)` + +GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetATerminations + +`func (o *Cable) SetATerminations(v []GenericObject)` + +SetATerminations sets ATerminations field to given value. + +### HasATerminations + +`func (o *Cable) HasATerminations() bool` + +HasATerminations returns a boolean if a field has been set. + +### GetBTerminations + +`func (o *Cable) GetBTerminations() []GenericObject` + +GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. + +### GetBTerminationsOk + +`func (o *Cable) GetBTerminationsOk() (*[]GenericObject, bool)` + +GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBTerminations + +`func (o *Cable) SetBTerminations(v []GenericObject)` + +SetBTerminations sets BTerminations field to given value. + +### HasBTerminations + +`func (o *Cable) HasBTerminations() bool` + +HasBTerminations returns a boolean if a field has been set. + +### GetStatus + +`func (o *Cable) GetStatus() CableStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cable) GetStatusOk() (*CableStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Cable) SetStatus(v CableStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cable) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cable) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cable) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Cable) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cable) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cable) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cable) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *Cable) GetLabel() string` @@ -114,6 +283,101 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetColor + +`func (o *Cable) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *Cable) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *Cable) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *Cable) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetLength + +`func (o *Cable) GetLength() float64` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *Cable) GetLengthOk() (*float64, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *Cable) SetLength(v float64)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *Cable) HasLength() bool` + +HasLength returns a boolean if a field has been set. + +### SetLengthNil + +`func (o *Cable) SetLengthNil(b bool)` + + SetLengthNil sets the value for Length to be an explicit nil + +### UnsetLength +`func (o *Cable) UnsetLength()` + +UnsetLength ensures that no value is present for Length, not even an explicit nil +### GetLengthUnit + +`func (o *Cable) GetLengthUnit() CableLengthUnit` + +GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. + +### GetLengthUnitOk + +`func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool)` + +GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLengthUnit + +`func (o *Cable) SetLengthUnit(v CableLengthUnit)` + +SetLengthUnit sets LengthUnit field to given value. + +### HasLengthUnit + +`func (o *Cable) HasLengthUnit() bool` + +HasLengthUnit returns a boolean if a field has been set. + +### SetLengthUnitNil + +`func (o *Cable) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *Cable) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *Cable) GetDescription() string` @@ -139,6 +403,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cable) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cable) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cable) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cable) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cable) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cable) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Cable) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cable) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cable) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cable) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Cable) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cable) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cable) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cable) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cable) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Cable) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cable) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cable) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cable) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Cable) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Cable) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cable) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/CableLengthUnit.md b/docs/CableLengthUnit.md new file mode 100644 index 000000000..0ca0923d9 --- /dev/null +++ b/docs/CableLengthUnit.md @@ -0,0 +1,82 @@ +# CableLengthUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] +**Label** | Pointer to [**CableLengthUnitLabel**](CableLengthUnitLabel.md) | | [optional] + +## Methods + +### NewCableLengthUnit + +`func NewCableLengthUnit() *CableLengthUnit` + +NewCableLengthUnit instantiates a new CableLengthUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCableLengthUnitWithDefaults + +`func NewCableLengthUnitWithDefaults() *CableLengthUnit` + +NewCableLengthUnitWithDefaults instantiates a new CableLengthUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CableLengthUnit) GetValue() CableLengthUnitValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CableLengthUnit) SetValue(v CableLengthUnitValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CableLengthUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CableLengthUnit) HasLabel() bool` + +HasLabel 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/docs/CableLengthUnitLabel.md b/docs/CableLengthUnitLabel.md new file mode 100644 index 000000000..5e953b5a9 --- /dev/null +++ b/docs/CableLengthUnitLabel.md @@ -0,0 +1,21 @@ +# CableLengthUnitLabel + +## Enum + + +* `KILOMETERS` (value: `"Kilometers"`) + +* `METERS` (value: `"Meters"`) + +* `CENTIMETERS` (value: `"Centimeters"`) + +* `MILES` (value: `"Miles"`) + +* `FEET` (value: `"Feet"`) + +* `INCHES` (value: `"Inches"`) + + +[[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/docs/CableLengthUnitValue.md b/docs/CableLengthUnitValue.md new file mode 100644 index 000000000..a9a0eebea --- /dev/null +++ b/docs/CableLengthUnitValue.md @@ -0,0 +1,23 @@ +# CableLengthUnitValue + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `CM` (value: `"cm"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableRequest.md b/docs/CableRequest.md index b90dfd2ea..61b9cded1 100644 --- a/docs/CableRequest.md +++ b/docs/CableRequest.md @@ -4,8 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] +**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Length** | Pointer to **NullableFloat64** | | [optional] +**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +37,141 @@ NewCableRequestWithDefaults instantiates a new CableRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *CableRequest) GetType() CableType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CableRequest) GetTypeOk() (*CableType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CableRequest) SetType(v CableType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CableRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetATerminations + +`func (o *CableRequest) GetATerminations() []GenericObjectRequest` + +GetATerminations returns the ATerminations field if non-nil, zero value otherwise. + +### GetATerminationsOk + +`func (o *CableRequest) GetATerminationsOk() (*[]GenericObjectRequest, bool)` + +GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetATerminations + +`func (o *CableRequest) SetATerminations(v []GenericObjectRequest)` + +SetATerminations sets ATerminations field to given value. + +### HasATerminations + +`func (o *CableRequest) HasATerminations() bool` + +HasATerminations returns a boolean if a field has been set. + +### GetBTerminations + +`func (o *CableRequest) GetBTerminations() []GenericObjectRequest` + +GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. + +### GetBTerminationsOk + +`func (o *CableRequest) GetBTerminationsOk() (*[]GenericObjectRequest, bool)` + +GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBTerminations + +`func (o *CableRequest) SetBTerminations(v []GenericObjectRequest)` + +SetBTerminations sets BTerminations field to given value. + +### HasBTerminations + +`func (o *CableRequest) HasBTerminations() bool` + +HasBTerminations returns a boolean if a field has been set. + +### GetStatus + +`func (o *CableRequest) GetStatus() CableStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CableRequest) SetStatus(v CableStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CableRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *CableRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CableRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CableRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CableRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CableRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *CableRequest) GetLabel() string` @@ -51,6 +197,101 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetColor + +`func (o *CableRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *CableRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *CableRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *CableRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetLength + +`func (o *CableRequest) GetLength() float64` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *CableRequest) GetLengthOk() (*float64, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *CableRequest) SetLength(v float64)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *CableRequest) HasLength() bool` + +HasLength returns a boolean if a field has been set. + +### SetLengthNil + +`func (o *CableRequest) SetLengthNil(b bool)` + + SetLengthNil sets the value for Length to be an explicit nil + +### UnsetLength +`func (o *CableRequest) UnsetLength()` + +UnsetLength ensures that no value is present for Length, not even an explicit nil +### GetLengthUnit + +`func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit` + +GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. + +### GetLengthUnitOk + +`func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool)` + +GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLengthUnit + +`func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit)` + +SetLengthUnit sets LengthUnit field to given value. + +### HasLengthUnit + +`func (o *CableRequest) HasLengthUnit() bool` + +HasLengthUnit returns a boolean if a field has been set. + +### SetLengthUnitNil + +`func (o *CableRequest) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *CableRequest) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *CableRequest) GetDescription() string` @@ -76,6 +317,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *CableRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CableRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CableRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CableRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *CableRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CableRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CableRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CableRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CableRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CableRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CableRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CableRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/CableRequestLengthUnit.md b/docs/CableRequestLengthUnit.md new file mode 100644 index 000000000..c549b14b8 --- /dev/null +++ b/docs/CableRequestLengthUnit.md @@ -0,0 +1,23 @@ +# CableRequestLengthUnit + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `CM` (value: `"cm"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CableStatus.md b/docs/CableStatus.md new file mode 100644 index 000000000..3cdd8c4b3 --- /dev/null +++ b/docs/CableStatus.md @@ -0,0 +1,82 @@ +# CableStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Label** | Pointer to [**CableStatusLabel**](CableStatusLabel.md) | | [optional] + +## Methods + +### NewCableStatus + +`func NewCableStatus() *CableStatus` + +NewCableStatus instantiates a new CableStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCableStatusWithDefaults + +`func NewCableStatusWithDefaults() *CableStatus` + +NewCableStatusWithDefaults instantiates a new CableStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CableStatus) GetValue() CableStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CableStatus) GetValueOk() (*CableStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CableStatus) SetValue(v CableStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CableStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CableStatus) GetLabel() CableStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CableStatus) GetLabelOk() (*CableStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CableStatus) SetLabel(v CableStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CableStatus) HasLabel() bool` + +HasLabel 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/docs/CableStatusLabel.md b/docs/CableStatusLabel.md new file mode 100644 index 000000000..b90ffa9fd --- /dev/null +++ b/docs/CableStatusLabel.md @@ -0,0 +1,15 @@ +# CableStatusLabel + +## Enum + + +* `CONNECTED` (value: `"Connected"`) + +* `PLANNED` (value: `"Planned"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + + +[[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/docs/CableStatusValue.md b/docs/CableStatusValue.md new file mode 100644 index 000000000..35769fef1 --- /dev/null +++ b/docs/CableStatusValue.md @@ -0,0 +1,15 @@ +# CableStatusValue + +## Enum + + +* `CONNECTED` (value: `"connected"`) + +* `PLANNED` (value: `"planned"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + + +[[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/docs/CableType.md b/docs/CableType.md new file mode 100644 index 000000000..3a9bb982a --- /dev/null +++ b/docs/CableType.md @@ -0,0 +1,59 @@ +# CableType + +## Enum + + +* `CAT3` (value: `"cat3"`) + +* `CAT5` (value: `"cat5"`) + +* `CAT5E` (value: `"cat5e"`) + +* `CAT6` (value: `"cat6"`) + +* `CAT6A` (value: `"cat6a"`) + +* `CAT7` (value: `"cat7"`) + +* `CAT7A` (value: `"cat7a"`) + +* `CAT8` (value: `"cat8"`) + +* `DAC_ACTIVE` (value: `"dac-active"`) + +* `DAC_PASSIVE` (value: `"dac-passive"`) + +* `MRJ21_TRUNK` (value: `"mrj21-trunk"`) + +* `COAXIAL` (value: `"coaxial"`) + +* `MMF` (value: `"mmf"`) + +* `MMF_OM1` (value: `"mmf-om1"`) + +* `MMF_OM2` (value: `"mmf-om2"`) + +* `MMF_OM3` (value: `"mmf-om3"`) + +* `MMF_OM4` (value: `"mmf-om4"`) + +* `MMF_OM5` (value: `"mmf-om5"`) + +* `SMF` (value: `"smf"`) + +* `SMF_OS1` (value: `"smf-os1"`) + +* `SMF_OS2` (value: `"smf-os2"`) + +* `AOC` (value: `"aoc"`) + +* `USB` (value: `"usb"`) + +* `POWER` (value: `"power"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Circuit.md b/docs/Circuit.md index b9bb4fd7e..24a6ce0de 100644 --- a/docs/Circuit.md +++ b/docs/Circuit.md @@ -6,15 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProvider**](BriefProvider.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccount**](BriefProviderAccount.md) | | [optional] +**Type** | [**BriefCircuitType**](BriefCircuitType.md) | | +**Status** | Pointer to [**CircuitStatus**](CircuitStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**InstallDate** | Pointer to **NullableString** | | [optional] +**TerminationDate** | Pointer to **NullableString** | | [optional] +**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**TerminationA** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] +**TerminationZ** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializer**](BriefCircuitGroupAssignmentSerializer.md) | | [optional] ## Methods ### NewCircuit -`func NewCircuit(id int32, url string, display string, cid string, ) *Circuit` +`func NewCircuit(id int32, url string, displayUrl string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime, ) *Circuit` NewCircuit instantiates a new Circuit object This constructor will assign default values to properties that have it defined, @@ -69,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Circuit) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Circuit) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Circuit) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Circuit) GetDisplay() string` @@ -109,6 +146,246 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. +### GetProvider + +`func (o *Circuit) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *Circuit) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *Circuit) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + +### GetProviderAccount + +`func (o *Circuit) GetProviderAccount() BriefProviderAccount` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *Circuit) SetProviderAccount(v BriefProviderAccount)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *Circuit) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *Circuit) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *Circuit) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *Circuit) GetType() BriefCircuitType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Circuit) SetType(v BriefCircuitType)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *Circuit) GetStatus() CircuitStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Circuit) GetStatusOk() (*CircuitStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Circuit) SetStatus(v CircuitStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Circuit) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Circuit) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Circuit) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Circuit) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Circuit) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Circuit) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Circuit) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetInstallDate + +`func (o *Circuit) GetInstallDate() string` + +GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. + +### GetInstallDateOk + +`func (o *Circuit) GetInstallDateOk() (*string, bool)` + +GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallDate + +`func (o *Circuit) SetInstallDate(v string)` + +SetInstallDate sets InstallDate field to given value. + +### HasInstallDate + +`func (o *Circuit) HasInstallDate() bool` + +HasInstallDate returns a boolean if a field has been set. + +### SetInstallDateNil + +`func (o *Circuit) SetInstallDateNil(b bool)` + + SetInstallDateNil sets the value for InstallDate to be an explicit nil + +### UnsetInstallDate +`func (o *Circuit) UnsetInstallDate()` + +UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +### GetTerminationDate + +`func (o *Circuit) GetTerminationDate() string` + +GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. + +### GetTerminationDateOk + +`func (o *Circuit) GetTerminationDateOk() (*string, bool)` + +GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationDate + +`func (o *Circuit) SetTerminationDate(v string)` + +SetTerminationDate sets TerminationDate field to given value. + +### HasTerminationDate + +`func (o *Circuit) HasTerminationDate() bool` + +HasTerminationDate returns a boolean if a field has been set. + +### SetTerminationDateNil + +`func (o *Circuit) SetTerminationDateNil(b bool)` + + SetTerminationDateNil sets the value for TerminationDate to be an explicit nil + +### UnsetTerminationDate +`func (o *Circuit) UnsetTerminationDate()` + +UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +### GetCommitRate + +`func (o *Circuit) GetCommitRate() int32` + +GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. + +### GetCommitRateOk + +`func (o *Circuit) GetCommitRateOk() (*int32, bool)` + +GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitRate + +`func (o *Circuit) SetCommitRate(v int32)` + +SetCommitRate sets CommitRate field to given value. + +### HasCommitRate + +`func (o *Circuit) HasCommitRate() bool` + +HasCommitRate returns a boolean if a field has been set. + +### SetCommitRateNil + +`func (o *Circuit) SetCommitRateNil(b bool)` + + SetCommitRateNil sets the value for CommitRate to be an explicit nil + +### UnsetCommitRate +`func (o *Circuit) UnsetCommitRate()` + +UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *Circuit) GetDescription() string` @@ -134,6 +411,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTerminationA + +`func (o *Circuit) GetTerminationA() CircuitCircuitTermination` + +GetTerminationA returns the TerminationA field if non-nil, zero value otherwise. + +### GetTerminationAOk + +`func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool)` + +GetTerminationAOk returns a tuple with the TerminationA field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationA + +`func (o *Circuit) SetTerminationA(v CircuitCircuitTermination)` + +SetTerminationA sets TerminationA field to given value. + + +### SetTerminationANil + +`func (o *Circuit) SetTerminationANil(b bool)` + + SetTerminationANil sets the value for TerminationA to be an explicit nil + +### UnsetTerminationA +`func (o *Circuit) UnsetTerminationA()` + +UnsetTerminationA ensures that no value is present for TerminationA, not even an explicit nil +### GetTerminationZ + +`func (o *Circuit) GetTerminationZ() CircuitCircuitTermination` + +GetTerminationZ returns the TerminationZ field if non-nil, zero value otherwise. + +### GetTerminationZOk + +`func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool)` + +GetTerminationZOk returns a tuple with the TerminationZ field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationZ + +`func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination)` + +SetTerminationZ sets TerminationZ field to given value. + + +### SetTerminationZNil + +`func (o *Circuit) SetTerminationZNil(b bool)` + + SetTerminationZNil sets the value for TerminationZ to be an explicit nil + +### UnsetTerminationZ +`func (o *Circuit) UnsetTerminationZ()` + +UnsetTerminationZ ensures that no value is present for TerminationZ, not even an explicit nil +### GetComments + +`func (o *Circuit) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Circuit) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Circuit) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Circuit) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Circuit) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Circuit) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Circuit) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Circuit) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Circuit) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Circuit) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Circuit) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Circuit) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Circuit) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Circuit) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Circuit) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Circuit) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Circuit) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Circuit) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Circuit) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Circuit) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Circuit) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetAssignments + +`func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *Circuit) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializer, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *Circuit) HasAssignments() bool` + +HasAssignments 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/docs/CircuitCircuitTermination.md b/docs/CircuitCircuitTermination.md new file mode 100644 index 000000000..a2e2e068d --- /dev/null +++ b/docs/CircuitCircuitTermination.md @@ -0,0 +1,300 @@ +# CircuitCircuitTermination + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Site** | [**NullableBriefSite**](BriefSite.md) | | +**ProviderNetwork** | [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | +**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] +**UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] +**XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewCircuitCircuitTermination + +`func NewCircuitCircuitTermination(id int32, url string, displayUrl string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork, ) *CircuitCircuitTermination` + +NewCircuitCircuitTermination instantiates a new CircuitCircuitTermination object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitCircuitTerminationWithDefaults + +`func NewCircuitCircuitTerminationWithDefaults() *CircuitCircuitTermination` + +NewCircuitCircuitTerminationWithDefaults instantiates a new CircuitCircuitTermination object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CircuitCircuitTermination) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CircuitCircuitTermination) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CircuitCircuitTermination) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CircuitCircuitTermination) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CircuitCircuitTermination) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CircuitCircuitTermination) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *CircuitCircuitTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitCircuitTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitCircuitTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *CircuitCircuitTermination) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CircuitCircuitTermination) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CircuitCircuitTermination) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetSite + +`func (o *CircuitCircuitTermination) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *CircuitCircuitTermination) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *CircuitCircuitTermination) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### SetSiteNil + +`func (o *CircuitCircuitTermination) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *CircuitCircuitTermination) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetProviderNetwork + +`func (o *CircuitCircuitTermination) GetProviderNetwork() BriefProviderNetwork` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *CircuitCircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *CircuitCircuitTermination) SetProviderNetwork(v BriefProviderNetwork)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### SetProviderNetworkNil + +`func (o *CircuitCircuitTermination) SetProviderNetworkNil(b bool)` + + SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil + +### UnsetProviderNetwork +`func (o *CircuitCircuitTermination) UnsetProviderNetwork()` + +UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil +### GetPortSpeed + +`func (o *CircuitCircuitTermination) GetPortSpeed() int32` + +GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise. + +### GetPortSpeedOk + +`func (o *CircuitCircuitTermination) GetPortSpeedOk() (*int32, bool)` + +GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortSpeed + +`func (o *CircuitCircuitTermination) SetPortSpeed(v int32)` + +SetPortSpeed sets PortSpeed field to given value. + +### HasPortSpeed + +`func (o *CircuitCircuitTermination) HasPortSpeed() bool` + +HasPortSpeed returns a boolean if a field has been set. + +### SetPortSpeedNil + +`func (o *CircuitCircuitTermination) SetPortSpeedNil(b bool)` + + SetPortSpeedNil sets the value for PortSpeed to be an explicit nil + +### UnsetPortSpeed +`func (o *CircuitCircuitTermination) UnsetPortSpeed()` + +UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +### GetUpstreamSpeed + +`func (o *CircuitCircuitTermination) GetUpstreamSpeed() int32` + +GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise. + +### GetUpstreamSpeedOk + +`func (o *CircuitCircuitTermination) GetUpstreamSpeedOk() (*int32, bool)` + +GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamSpeed + +`func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32)` + +SetUpstreamSpeed sets UpstreamSpeed field to given value. + +### HasUpstreamSpeed + +`func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool` + +HasUpstreamSpeed returns a boolean if a field has been set. + +### SetUpstreamSpeedNil + +`func (o *CircuitCircuitTermination) SetUpstreamSpeedNil(b bool)` + + SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil + +### UnsetUpstreamSpeed +`func (o *CircuitCircuitTermination) UnsetUpstreamSpeed()` + +UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +### GetXconnectId + +`func (o *CircuitCircuitTermination) GetXconnectId() string` + +GetXconnectId returns the XconnectId field if non-nil, zero value otherwise. + +### GetXconnectIdOk + +`func (o *CircuitCircuitTermination) GetXconnectIdOk() (*string, bool)` + +GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetXconnectId + +`func (o *CircuitCircuitTermination) SetXconnectId(v string)` + +SetXconnectId sets XconnectId field to given value. + +### HasXconnectId + +`func (o *CircuitCircuitTermination) HasXconnectId() bool` + +HasXconnectId returns a boolean if a field has been set. + +### GetDescription + +`func (o *CircuitCircuitTermination) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitCircuitTermination) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitCircuitTermination) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitCircuitTermination) HasDescription() bool` + +HasDescription 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/docs/CircuitCircuitTerminationRequest.md b/docs/CircuitCircuitTerminationRequest.md new file mode 100644 index 000000000..7a7dc6c09 --- /dev/null +++ b/docs/CircuitCircuitTerminationRequest.md @@ -0,0 +1,216 @@ +# CircuitCircuitTerminationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Site** | [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | +**ProviderNetwork** | [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | +**PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] +**UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] +**XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] +**Description** | Pointer to **string** | | [optional] + +## Methods + +### NewCircuitCircuitTerminationRequest + +`func NewCircuitCircuitTerminationRequest(site NullableBriefSiteRequest, providerNetwork NullableBriefProviderNetworkRequest, ) *CircuitCircuitTerminationRequest` + +NewCircuitCircuitTerminationRequest instantiates a new CircuitCircuitTerminationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitCircuitTerminationRequestWithDefaults + +`func NewCircuitCircuitTerminationRequestWithDefaults() *CircuitCircuitTerminationRequest` + +NewCircuitCircuitTerminationRequestWithDefaults instantiates a new CircuitCircuitTerminationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetSite + +`func (o *CircuitCircuitTerminationRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *CircuitCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *CircuitCircuitTerminationRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### SetSiteNil + +`func (o *CircuitCircuitTerminationRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *CircuitCircuitTerminationRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetProviderNetwork + +`func (o *CircuitCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` + +GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. + +### GetProviderNetworkOk + +`func (o *CircuitCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` + +GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderNetwork + +`func (o *CircuitCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` + +SetProviderNetwork sets ProviderNetwork field to given value. + + +### SetProviderNetworkNil + +`func (o *CircuitCircuitTerminationRequest) SetProviderNetworkNil(b bool)` + + SetProviderNetworkNil sets the value for ProviderNetwork to be an explicit nil + +### UnsetProviderNetwork +`func (o *CircuitCircuitTerminationRequest) UnsetProviderNetwork()` + +UnsetProviderNetwork ensures that no value is present for ProviderNetwork, not even an explicit nil +### GetPortSpeed + +`func (o *CircuitCircuitTerminationRequest) GetPortSpeed() int32` + +GetPortSpeed returns the PortSpeed field if non-nil, zero value otherwise. + +### GetPortSpeedOk + +`func (o *CircuitCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool)` + +GetPortSpeedOk returns a tuple with the PortSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPortSpeed + +`func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32)` + +SetPortSpeed sets PortSpeed field to given value. + +### HasPortSpeed + +`func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool` + +HasPortSpeed returns a boolean if a field has been set. + +### SetPortSpeedNil + +`func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil(b bool)` + + SetPortSpeedNil sets the value for PortSpeed to be an explicit nil + +### UnsetPortSpeed +`func (o *CircuitCircuitTerminationRequest) UnsetPortSpeed()` + +UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +### GetUpstreamSpeed + +`func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeed() int32` + +GetUpstreamSpeed returns the UpstreamSpeed field if non-nil, zero value otherwise. + +### GetUpstreamSpeedOk + +`func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool)` + +GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUpstreamSpeed + +`func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32)` + +SetUpstreamSpeed sets UpstreamSpeed field to given value. + +### HasUpstreamSpeed + +`func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool` + +HasUpstreamSpeed returns a boolean if a field has been set. + +### SetUpstreamSpeedNil + +`func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil(b bool)` + + SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil + +### UnsetUpstreamSpeed +`func (o *CircuitCircuitTerminationRequest) UnsetUpstreamSpeed()` + +UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +### GetXconnectId + +`func (o *CircuitCircuitTerminationRequest) GetXconnectId() string` + +GetXconnectId returns the XconnectId field if non-nil, zero value otherwise. + +### GetXconnectIdOk + +`func (o *CircuitCircuitTerminationRequest) GetXconnectIdOk() (*string, bool)` + +GetXconnectIdOk returns a tuple with the XconnectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetXconnectId + +`func (o *CircuitCircuitTerminationRequest) SetXconnectId(v string)` + +SetXconnectId sets XconnectId field to given value. + +### HasXconnectId + +`func (o *CircuitCircuitTerminationRequest) HasXconnectId() bool` + +HasXconnectId returns a boolean if a field has been set. + +### GetDescription + +`func (o *CircuitCircuitTerminationRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitCircuitTerminationRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitCircuitTerminationRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitCircuitTerminationRequest) HasDescription() bool` + +HasDescription 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/docs/CircuitGroup.md b/docs/CircuitGroup.md new file mode 100644 index 000000000..27569c71e --- /dev/null +++ b/docs/CircuitGroup.md @@ -0,0 +1,353 @@ +# CircuitGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] + +## Methods + +### NewCircuitGroup + +`func NewCircuitGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitGroup` + +NewCircuitGroup instantiates a new CircuitGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupWithDefaults + +`func NewCircuitGroupWithDefaults() *CircuitGroup` + +NewCircuitGroupWithDefaults instantiates a new CircuitGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CircuitGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CircuitGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CircuitGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CircuitGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CircuitGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CircuitGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *CircuitGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *CircuitGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CircuitGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CircuitGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *CircuitGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CircuitGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CircuitGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *CircuitGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *CircuitGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *CircuitGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *CircuitGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitGroup) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitGroup) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitGroup) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitGroup) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitGroup) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitGroup) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *CircuitGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *CircuitGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *CircuitGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *CircuitGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *CircuitGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *CircuitGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *CircuitGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *CircuitGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *CircuitGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *CircuitGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *CircuitGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *CircuitGroup) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *CircuitGroup) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *CircuitGroup) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitGroupAssignment.md b/docs/CircuitGroupAssignment.md new file mode 100644 index 000000000..c6e9b81ad --- /dev/null +++ b/docs/CircuitGroupAssignment.md @@ -0,0 +1,270 @@ +# CircuitGroupAssignment + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Group** | [**BriefCircuitGroup**](BriefCircuitGroup.md) | | +**Circuit** | [**BriefCircuit**](BriefCircuit.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewCircuitGroupAssignment + +`func NewCircuitGroupAssignment(id int32, url string, displayUrl string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime, ) *CircuitGroupAssignment` + +NewCircuitGroupAssignment instantiates a new CircuitGroupAssignment object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupAssignmentWithDefaults + +`func NewCircuitGroupAssignmentWithDefaults() *CircuitGroupAssignment` + +NewCircuitGroupAssignmentWithDefaults instantiates a new CircuitGroupAssignment object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *CircuitGroupAssignment) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *CircuitGroupAssignment) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *CircuitGroupAssignment) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *CircuitGroupAssignment) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *CircuitGroupAssignment) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *CircuitGroupAssignment) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *CircuitGroupAssignment) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitGroupAssignment) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitGroupAssignment) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *CircuitGroupAssignment) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *CircuitGroupAssignment) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *CircuitGroupAssignment) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetGroup + +`func (o *CircuitGroupAssignment) GetGroup() BriefCircuitGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *CircuitGroupAssignment) GetGroupOk() (*BriefCircuitGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *CircuitGroupAssignment) SetGroup(v BriefCircuitGroup)` + +SetGroup sets Group field to given value. + + +### GetCircuit + +`func (o *CircuitGroupAssignment) GetCircuit() BriefCircuit` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *CircuitGroupAssignment) GetCircuitOk() (*BriefCircuit, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *CircuitGroupAssignment) SetCircuit(v BriefCircuit)` + +SetCircuit sets Circuit field to given value. + + +### GetPriority + +`func (o *CircuitGroupAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CircuitGroupAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CircuitGroupAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CircuitGroupAssignment) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitGroupAssignment) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroupAssignment) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroupAssignment) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroupAssignment) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *CircuitGroupAssignment) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *CircuitGroupAssignment) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *CircuitGroupAssignment) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *CircuitGroupAssignment) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *CircuitGroupAssignment) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *CircuitGroupAssignment) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *CircuitGroupAssignment) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *CircuitGroupAssignment) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *CircuitGroupAssignment) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil + +[[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/docs/CircuitGroupAssignmentRequest.md b/docs/CircuitGroupAssignmentRequest.md new file mode 100644 index 000000000..8858b039e --- /dev/null +++ b/docs/CircuitGroupAssignmentRequest.md @@ -0,0 +1,124 @@ +# CircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewCircuitGroupAssignmentRequest + +`func NewCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest, ) *CircuitGroupAssignmentRequest` + +NewCircuitGroupAssignmentRequest instantiates a new CircuitGroupAssignmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupAssignmentRequestWithDefaults + +`func NewCircuitGroupAssignmentRequestWithDefaults() *CircuitGroupAssignmentRequest` + +NewCircuitGroupAssignmentRequestWithDefaults instantiates a new CircuitGroupAssignmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetCircuit + +`func (o *CircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *CircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *CircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest)` + +SetCircuit sets Circuit field to given value. + + +### GetPriority + +`func (o *CircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *CircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *CircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *CircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroupAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroupAssignmentRequest) HasTags() bool` + +HasTags 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/docs/CircuitGroupRequest.md b/docs/CircuitGroupRequest.md new file mode 100644 index 000000000..7d69e4f34 --- /dev/null +++ b/docs/CircuitGroupRequest.md @@ -0,0 +1,186 @@ +# CircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewCircuitGroupRequest + +`func NewCircuitGroupRequest(name string, slug string, ) *CircuitGroupRequest` + +NewCircuitGroupRequest instantiates a new CircuitGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitGroupRequestWithDefaults + +`func NewCircuitGroupRequestWithDefaults() *CircuitGroupRequest` + +NewCircuitGroupRequestWithDefaults instantiates a new CircuitGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *CircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *CircuitGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *CircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *CircuitGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *CircuitGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *CircuitGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *CircuitGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *CircuitGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *CircuitGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *CircuitGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitGroupRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitGroupRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitGroupRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitGroupRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *CircuitGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/CircuitRequest.md b/docs/CircuitRequest.md index e28059fb5..0b956756e 100644 --- a/docs/CircuitRequest.md +++ b/docs/CircuitRequest.md @@ -5,13 +5,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**InstallDate** | Pointer to **NullableString** | | [optional] +**TerminationDate** | Pointer to **NullableString** | | [optional] +**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewCircuitRequest -`func NewCircuitRequest(cid string, ) *CircuitRequest` +`func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *CircuitRequest` NewCircuitRequest instantiates a new CircuitRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +58,246 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. +### GetProvider + +`func (o *CircuitRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CircuitRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + +### GetProviderAccount + +`func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *CircuitRequest) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *CircuitRequest) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *CircuitRequest) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *CircuitRequest) GetType() BriefCircuitTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *CircuitRequest) GetStatus() CircuitStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CircuitRequest) SetStatus(v CircuitStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CircuitRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetInstallDate + +`func (o *CircuitRequest) GetInstallDate() string` + +GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. + +### GetInstallDateOk + +`func (o *CircuitRequest) GetInstallDateOk() (*string, bool)` + +GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallDate + +`func (o *CircuitRequest) SetInstallDate(v string)` + +SetInstallDate sets InstallDate field to given value. + +### HasInstallDate + +`func (o *CircuitRequest) HasInstallDate() bool` + +HasInstallDate returns a boolean if a field has been set. + +### SetInstallDateNil + +`func (o *CircuitRequest) SetInstallDateNil(b bool)` + + SetInstallDateNil sets the value for InstallDate to be an explicit nil + +### UnsetInstallDate +`func (o *CircuitRequest) UnsetInstallDate()` + +UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +### GetTerminationDate + +`func (o *CircuitRequest) GetTerminationDate() string` + +GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. + +### GetTerminationDateOk + +`func (o *CircuitRequest) GetTerminationDateOk() (*string, bool)` + +GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationDate + +`func (o *CircuitRequest) SetTerminationDate(v string)` + +SetTerminationDate sets TerminationDate field to given value. + +### HasTerminationDate + +`func (o *CircuitRequest) HasTerminationDate() bool` + +HasTerminationDate returns a boolean if a field has been set. + +### SetTerminationDateNil + +`func (o *CircuitRequest) SetTerminationDateNil(b bool)` + + SetTerminationDateNil sets the value for TerminationDate to be an explicit nil + +### UnsetTerminationDate +`func (o *CircuitRequest) UnsetTerminationDate()` + +UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +### GetCommitRate + +`func (o *CircuitRequest) GetCommitRate() int32` + +GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. + +### GetCommitRateOk + +`func (o *CircuitRequest) GetCommitRateOk() (*int32, bool)` + +GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitRate + +`func (o *CircuitRequest) SetCommitRate(v int32)` + +SetCommitRate sets CommitRate field to given value. + +### HasCommitRate + +`func (o *CircuitRequest) HasCommitRate() bool` + +HasCommitRate returns a boolean if a field has been set. + +### SetCommitRateNil + +`func (o *CircuitRequest) SetCommitRateNil(b bool)` + + SetCommitRateNil sets the value for CommitRate to be an explicit nil + +### UnsetCommitRate +`func (o *CircuitRequest) UnsetCommitRate()` + +UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *CircuitRequest) GetDescription() string` @@ -71,6 +323,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *CircuitRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CircuitRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CircuitRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CircuitRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetAssignments + +`func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *CircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *CircuitRequest) HasAssignments() bool` + +HasAssignments 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/docs/CircuitStatus.md b/docs/CircuitStatus.md new file mode 100644 index 000000000..8815d2697 --- /dev/null +++ b/docs/CircuitStatus.md @@ -0,0 +1,82 @@ +# CircuitStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Label** | Pointer to [**CircuitStatusLabel**](CircuitStatusLabel.md) | | [optional] + +## Methods + +### NewCircuitStatus + +`func NewCircuitStatus() *CircuitStatus` + +NewCircuitStatus instantiates a new CircuitStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewCircuitStatusWithDefaults + +`func NewCircuitStatusWithDefaults() *CircuitStatus` + +NewCircuitStatusWithDefaults instantiates a new CircuitStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *CircuitStatus) GetValue() CircuitStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *CircuitStatus) GetValueOk() (*CircuitStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *CircuitStatus) SetValue(v CircuitStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *CircuitStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *CircuitStatus) GetLabel() CircuitStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *CircuitStatus) SetLabel(v CircuitStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *CircuitStatus) HasLabel() bool` + +HasLabel 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/docs/CircuitStatusLabel.md b/docs/CircuitStatusLabel.md new file mode 100644 index 000000000..594cdc8dc --- /dev/null +++ b/docs/CircuitStatusLabel.md @@ -0,0 +1,21 @@ +# CircuitStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `PROVISIONING` (value: `"Provisioning"`) + +* `ACTIVE` (value: `"Active"`) + +* `OFFLINE` (value: `"Offline"`) + +* `DEPROVISIONING` (value: `"Deprovisioning"`) + +* `DECOMMISSIONED` (value: `"Decommissioned"`) + + +[[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/docs/CircuitStatusValue.md b/docs/CircuitStatusValue.md new file mode 100644 index 000000000..c49a8ea53 --- /dev/null +++ b/docs/CircuitStatusValue.md @@ -0,0 +1,21 @@ +# CircuitStatusValue + +## Enum + + +* `PLANNED` (value: `"planned"`) + +* `PROVISIONING` (value: `"provisioning"`) + +* `ACTIVE` (value: `"active"`) + +* `OFFLINE` (value: `"offline"`) + +* `DEPROVISIONING` (value: `"deprovisioning"`) + +* `DECOMMISSIONED` (value: `"decommissioned"`) + + +[[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/docs/CircuitTermination.md b/docs/CircuitTermination.md index 11b220a6d..718746e9d 100644 --- a/docs/CircuitTermination.md +++ b/docs/CircuitTermination.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Circuit** | [**Circuit**](Circuit.md) | | +**Circuit** | [**BriefCircuit**](BriefCircuit.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetwork**](ProviderNetwork.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] **PpInfo** | Pointer to **string** | Patch panel ID and port number(s) | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewCircuitTermination -`func NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` +`func NewCircuitTermination(id int32, url string, displayUrl string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` NewCircuitTermination instantiates a new CircuitTermination object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CircuitTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CircuitTermination) GetDisplay() string` @@ -108,20 +129,20 @@ SetDisplay sets Display field to given value. ### GetCircuit -`func (o *CircuitTermination) GetCircuit() Circuit` +`func (o *CircuitTermination) GetCircuit() BriefCircuit` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool)` +`func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTermination) SetCircuit(v Circuit)` +`func (o *CircuitTermination) SetCircuit(v BriefCircuit)` SetCircuit sets Circuit field to given value. @@ -148,20 +169,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTermination) GetSite() Site` +`func (o *CircuitTermination) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTermination) GetSiteOk() (*Site, bool)` +`func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTermination) SetSite(v Site)` +`func (o *CircuitTermination) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -183,20 +204,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork` +`func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool)` +`func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork)` +`func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork)` SetProviderNetwork sets ProviderNetwork field to given value. @@ -388,20 +409,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *CircuitTermination) GetCable() Cable` +`func (o *CircuitTermination) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *CircuitTermination) GetCableOk() (*Cable, bool)` +`func (o *CircuitTermination) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *CircuitTermination) SetCable(v Cable)` +`func (o *CircuitTermination) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -476,6 +497,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *CircuitTermination) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *CircuitTermination) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *CircuitTermination) GetTags() []NestedTag` diff --git a/docs/CircuitTerminationRequest.md b/docs/CircuitTerminationRequest.md index a99223da7..f4116a999 100644 --- a/docs/CircuitTerminationRequest.md +++ b/docs/CircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | [**CircuitRequest**](CircuitRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewCircuitTerminationRequest -`func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` +`func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` NewCircuitTerminationRequest instantiates a new CircuitTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -78,20 +78,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTerminationRequest) GetSite() SiteRequest` +`func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -113,20 +113,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/CircuitType.md b/docs/CircuitType.md index ea037618e..aa83cc92d 100644 --- a/docs/CircuitType.md +++ b/docs/CircuitType.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewCircuitType -`func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType` +`func NewCircuitType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType` NewCircuitType instantiates a new CircuitType object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CircuitType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CircuitType) GetDisplay() string` diff --git a/docs/CircuitsAPI.md b/docs/CircuitsAPI.md index c78529d9c..6bdfd6e64 100644 --- a/docs/CircuitsAPI.md +++ b/docs/CircuitsAPI.md @@ -4,6 +4,24 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CircuitsCircuitGroupAssignmentsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkDestroy) | **Delete** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkUpdate) | **Put** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsCreate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsCreate) | **Post** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsDestroy) | **Delete** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsList**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsList) | **Get** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsRetrieve) | **Get** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsUpdate) | **Put** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsBulkDestroy) | **Delete** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkPartialUpdate) | **Patch** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkUpdate) | **Put** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsCreate**](CircuitsAPI.md#CircuitsCircuitGroupsCreate) | **Post** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsDestroy) | **Delete** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsList**](CircuitsAPI.md#CircuitsCircuitGroupsList) | **Get** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsPartialUpdate) | **Patch** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupsRetrieve) | **Get** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsUpdate) | **Put** /api/circuits/circuit-groups/{id}/ | [**CircuitsCircuitTerminationsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkDestroy) | **Delete** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkPartialUpdate) | **Patch** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkUpdate) | **Put** /api/circuits/circuit-terminations/ | @@ -62,6 +80,1454 @@ Method | HTTP request | Description +## CircuitsCircuitGroupAssignmentsBulkDestroy + +> CircuitsCircuitGroupAssignmentsBulkDestroy(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsBulkUpdate + +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsBulkUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsCreate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsCreate(ctx).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsCreate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsDestroy + +> CircuitsCircuitGroupAssignmentsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsList + +> PaginatedCircuitGroupAssignmentList CircuitsCircuitGroupAssignmentsList(ctx).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuit := []string{"Inner_example"} // []string | Circuit (CID) (optional) + circuitN := []string{"Inner_example"} // []string | Circuit (CID) (optional) + circuitId := []int32{int32(123)} // []int32 | Circuit (ID) (optional) + circuitIdN := []int32{int32(123)} // []int32 | Circuit (ID) (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + group := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupN := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priorityN := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + provider := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + q := "q_example" // string | Search (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsList`: PaginatedCircuitGroupAssignmentList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuit** | **[]string** | Circuit (CID) | + **circuitN** | **[]string** | Circuit (CID) | + **circuitId** | **[]int32** | Circuit (ID) | + **circuitIdN** | **[]int32** | Circuit (ID) | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **group** | **[]string** | Circuit group (slug) | + **groupN** | **[]string** | Circuit group (slug) | + **groupId** | **[]int32** | Circuit group (ID) | + **groupIdN** | **[]int32** | Circuit group (ID) | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priorityN** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **q** | **string** | Search | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitGroupAssignmentList**](PaginatedCircuitGroupAssignmentList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsPartialUpdate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + patchedWritableCircuitGroupAssignmentRequest := *openapiclient.NewPatchedWritableCircuitGroupAssignmentRequest() // PatchedWritableCircuitGroupAssignmentRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsPartialUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableCircuitGroupAssignmentRequest** | [**PatchedWritableCircuitGroupAssignmentRequest**](PatchedWritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsRetrieve + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsRetrieve`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsUpdate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsUpdate(ctx, id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkDestroy + +> CircuitsCircuitGroupsBulkDestroy(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkPartialUpdate + +> []CircuitGroup CircuitsCircuitGroupsBulkPartialUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsBulkPartialUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**[]CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkUpdate + +> []CircuitGroup CircuitsCircuitGroupsBulkUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsBulkUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**[]CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsCreate + +> CircuitGroup CircuitsCircuitGroupsCreate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsCreate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsDestroy + +> CircuitsCircuitGroupsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsList + +> PaginatedCircuitGroupList CircuitsCircuitGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsList`: PaginatedCircuitGroupList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitGroupList**](PaginatedCircuitGroupList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsPartialUpdate + +> CircuitGroup CircuitsCircuitGroupsPartialUpdate(ctx, id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + patchedCircuitGroupRequest := *openapiclient.NewPatchedCircuitGroupRequest() // PatchedCircuitGroupRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsPartialUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedCircuitGroupRequest** | [**PatchedCircuitGroupRequest**](PatchedCircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsRetrieve + +> CircuitGroup CircuitsCircuitGroupsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsRetrieve`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsUpdate + +> CircuitGroup CircuitsCircuitGroupsUpdate(ctx, id).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## CircuitsCircuitTerminationsBulkDestroy > CircuitsCircuitTerminationsBulkDestroy(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -83,7 +1549,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -147,7 +1613,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -213,7 +1679,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -279,7 +1745,7 @@ import ( ) func main() { - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -887,7 +2353,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit termination. - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +3181,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1779,7 +3245,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1845,7 +3311,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1911,7 +3377,7 @@ import ( ) func main() { - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2066,8 +3532,8 @@ func main() { commitRateN := []int32{int32(123)} // []int32 | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -2125,16 +3591,16 @@ func main() { providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -2143,10 +3609,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) @@ -2209,8 +3675,8 @@ Name | Type | Description | Notes **commitRateN** | **[]int32** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2268,16 +3734,16 @@ Name | Type | Description | Notes **providerNetworkId** | **[]int32** | Provider network (ID) | **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -2286,10 +3752,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | Termination A (ID) | @@ -2491,7 +3957,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit. - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2562,7 +4028,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2626,7 +4092,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2692,7 +4158,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2758,7 +4224,7 @@ import ( ) func main() { - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3234,7 +4700,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider account. - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3305,7 +4771,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3369,7 +4835,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3435,7 +4901,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3501,7 +4967,7 @@ import ( ) func main() { - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3977,7 +5443,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider network. - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4385,8 +5851,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4438,16 +5904,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (optional) siteIdN := []int32{int32(123)} // []int32 | Site (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -4494,8 +5960,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | ASN (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4547,16 +6013,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site | **siteIdN** | **[]int32** | Site | **slug** | **[]string** | | diff --git a/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md b/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md new file mode 100644 index 000000000..b8be447a2 --- /dev/null +++ b/docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md @@ -0,0 +1,17 @@ +# CircuitsCircuitGroupAssignmentsListPriorityParameter + +## Enum + + +* `INACTIVE` (value: `"inactive"`) + +* `PRIMARY` (value: `"primary"`) + +* `SECONDARY` (value: `"secondary"`) + +* `TERTIARY` (value: `"tertiary"`) + + +[[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/docs/Cluster.md b/docs/Cluster.md index 00443ca40..ccdfb4376 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -6,16 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**BriefClusterType**](BriefClusterType.md) | | +**Group** | Pointer to [**NullableBriefClusterGroup**](BriefClusterGroup.md) | | [optional] +**Status** | Pointer to [**ClusterStatus**](ClusterStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewCluster -`func NewCluster(id int32, url string, display string, name string, ) *Cluster` +`func NewCluster(id int32, url string, displayUrl string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime, ) *Cluster` NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, @@ -70,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cluster) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cluster) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cluster) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Cluster) GetDisplay() string` @@ -110,6 +142,156 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *Cluster) GetType() BriefClusterType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cluster) GetTypeOk() (*BriefClusterType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cluster) SetType(v BriefClusterType)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *Cluster) GetGroup() BriefClusterGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Cluster) SetGroup(v BriefClusterGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Cluster) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Cluster) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Cluster) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *Cluster) GetStatus() ClusterStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cluster) GetStatusOk() (*ClusterStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Cluster) SetStatus(v ClusterStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cluster) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cluster) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cluster) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Cluster) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cluster) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cluster) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cluster) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetSite + +`func (o *Cluster) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Cluster) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Cluster) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *Cluster) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *Cluster) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *Cluster) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *Cluster) GetDescription() string` @@ -135,6 +317,166 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cluster) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cluster) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cluster) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cluster) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cluster) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cluster) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Cluster) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cluster) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cluster) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cluster) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Cluster) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cluster) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cluster) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cluster) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cluster) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Cluster) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cluster) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cluster) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Cluster) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Cluster) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cluster) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetDeviceCount + +`func (o *Cluster) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Cluster) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Cluster) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Cluster) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + ### GetVirtualmachineCount `func (o *Cluster) GetVirtualmachineCount() int64` diff --git a/docs/ClusterGroup.md b/docs/ClusterGroup.md index ce837f38c..82b09af11 100644 --- a/docs/ClusterGroup.md +++ b/docs/ClusterGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewClusterGroup -`func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` +`func NewClusterGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` NewClusterGroup instantiates a new ClusterGroup object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ClusterGroup) GetDisplay() string` diff --git a/docs/ClusterRequest.md b/docs/ClusterRequest.md index bfe754ce8..15316566b 100644 --- a/docs/ClusterRequest.md +++ b/docs/ClusterRequest.md @@ -5,13 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewClusterRequest -`func NewClusterRequest(name string, ) *ClusterRequest` +`func NewClusterRequest(name string, type_ BriefClusterTypeRequest, ) *ClusterRequest` NewClusterRequest instantiates a new ClusterRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +54,156 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *ClusterRequest) GetType() BriefClusterTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ClusterRequest) SetType(v BriefClusterTypeRequest)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ClusterRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ClusterRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ClusterRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *ClusterRequest) GetStatus() ClusterStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ClusterRequest) SetStatus(v ClusterStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *ClusterRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *ClusterRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *ClusterRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *ClusterRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *ClusterRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetSite + +`func (o *ClusterRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *ClusterRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *ClusterRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *ClusterRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *ClusterRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *ClusterRequest) GetDescription() string` @@ -71,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ClusterRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ClusterRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ClusterRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ClusterRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ClusterRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ClusterRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ClusterRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ClusterRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ClusterRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ClusterRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ClusterStatus.md b/docs/ClusterStatus.md new file mode 100644 index 000000000..0753edae9 --- /dev/null +++ b/docs/ClusterStatus.md @@ -0,0 +1,82 @@ +# ClusterStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Label** | Pointer to [**ClusterStatusLabel**](ClusterStatusLabel.md) | | [optional] + +## Methods + +### NewClusterStatus + +`func NewClusterStatus() *ClusterStatus` + +NewClusterStatus instantiates a new ClusterStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewClusterStatusWithDefaults + +`func NewClusterStatusWithDefaults() *ClusterStatus` + +NewClusterStatusWithDefaults instantiates a new ClusterStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *ClusterStatus) GetValue() ClusterStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ClusterStatus) GetValueOk() (*ClusterStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ClusterStatus) SetValue(v ClusterStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ClusterStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ClusterStatus) GetLabel() ClusterStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ClusterStatus) SetLabel(v ClusterStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ClusterStatus) HasLabel() bool` + +HasLabel 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/docs/ClusterStatusLabel.md b/docs/ClusterStatusLabel.md new file mode 100644 index 000000000..7a03fab9a --- /dev/null +++ b/docs/ClusterStatusLabel.md @@ -0,0 +1,19 @@ +# ClusterStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `STAGING` (value: `"Staging"`) + +* `ACTIVE` (value: `"Active"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + +* `OFFLINE` (value: `"Offline"`) + + +[[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/docs/ClusterStatusValue.md b/docs/ClusterStatusValue.md new file mode 100644 index 000000000..f68d48cac --- /dev/null +++ b/docs/ClusterStatusValue.md @@ -0,0 +1,19 @@ +# ClusterStatusValue + +## Enum + + +* `PLANNED` (value: `"planned"`) + +* `STAGING` (value: `"staging"`) + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `OFFLINE` (value: `"offline"`) + + +[[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/docs/ClusterType.md b/docs/ClusterType.md index c759403ed..500170424 100644 --- a/docs/ClusterType.md +++ b/docs/ClusterType.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewClusterType -`func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` +`func NewClusterType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` NewClusterType instantiates a new ClusterType object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ClusterType) GetDisplay() string` diff --git a/docs/ConfigContext.md b/docs/ConfigContext.md index 3d27ad7ed..03698c00a 100644 --- a/docs/ConfigContext.md +++ b/docs/ConfigContext.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Weight** | Pointer to **int32** | | [optional] @@ -24,9 +25,9 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional] **Tenants** | Pointer to [**[]Tenant**](Tenant.md) | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Data** | **interface{}** | | **Created** | **NullableTime** | | [readonly] @@ -36,7 +37,7 @@ Name | Type | Description | Notes ### NewConfigContext -`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` +`func NewConfigContext(id int32, url string, displayUrl string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` NewConfigContext instantiates a new ConfigContext object This constructor will assign default values to properties that have it defined, @@ -91,6 +92,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConfigContext) GetDisplay() string` @@ -533,20 +554,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContext) GetDataSource() DataSource` +`func (o *ConfigContext) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool)` +`func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContext) SetDataSource(v DataSource)` +`func (o *ConfigContext) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -578,20 +599,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ConfigContext) GetDataFile() DataFile` +`func (o *ConfigContext) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ConfigContext) GetDataFileOk() (*DataFile, bool)` +`func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ConfigContext) SetDataFile(v DataFile)` +`func (o *ConfigContext) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md index 298074ebf..a42d2482a 100644 --- a/docs/ConfigContextRequest.md +++ b/docs/ConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | **interface{}** | | ## Methods @@ -465,20 +465,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ConfigTemplate.md b/docs/ConfigTemplate.md index e87b65990..df229b291 100644 --- a/docs/ConfigTemplate.md +++ b/docs/ConfigTemplate.md @@ -6,15 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] +**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] +**DataFile** | Pointer to [**BriefDataFile**](BriefDataFile.md) | | [optional] +**DataSynced** | **NullableTime** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewConfigTemplate -`func NewConfigTemplate(id int32, url string, display string, name string, ) *ConfigTemplate` +`func NewConfigTemplate(id int32, url string, displayUrl string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate` NewConfigTemplate instantiates a new ConfigTemplate object This constructor will assign default values to properties that have it defined, @@ -69,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConfigTemplate) GetDisplay() string` @@ -134,6 +164,246 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplate) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplate) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplate) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplate) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplate) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplate) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplate) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplate) GetDataSource() BriefDataSource` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplate) SetDataSource(v BriefDataSource)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplate) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetDataPath + +`func (o *ConfigTemplate) GetDataPath() string` + +GetDataPath returns the DataPath field if non-nil, zero value otherwise. + +### GetDataPathOk + +`func (o *ConfigTemplate) GetDataPathOk() (*string, bool)` + +GetDataPathOk returns a tuple with the DataPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataPath + +`func (o *ConfigTemplate) SetDataPath(v string)` + +SetDataPath sets DataPath field to given value. + + +### GetDataFile + +`func (o *ConfigTemplate) GetDataFile() BriefDataFile` + +GetDataFile returns the DataFile field if non-nil, zero value otherwise. + +### GetDataFileOk + +`func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool)` + +GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFile + +`func (o *ConfigTemplate) SetDataFile(v BriefDataFile)` + +SetDataFile sets DataFile field to given value. + +### HasDataFile + +`func (o *ConfigTemplate) HasDataFile() bool` + +HasDataFile returns a boolean if a field has been set. + +### GetDataSynced + +`func (o *ConfigTemplate) GetDataSynced() time.Time` + +GetDataSynced returns the DataSynced field if non-nil, zero value otherwise. + +### GetDataSyncedOk + +`func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool)` + +GetDataSyncedOk returns a tuple with the DataSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSynced + +`func (o *ConfigTemplate) SetDataSynced(v time.Time)` + +SetDataSynced sets DataSynced field to given value. + + +### SetDataSyncedNil + +`func (o *ConfigTemplate) SetDataSyncedNil(b bool)` + + SetDataSyncedNil sets the value for DataSynced to be an explicit nil + +### UnsetDataSynced +`func (o *ConfigTemplate) UnsetDataSynced()` + +UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +### GetTags + +`func (o *ConfigTemplate) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplate) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ConfigTemplate) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *ConfigTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ConfigTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ConfigTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ConfigTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ConfigTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ConfigTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ConfigTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ConfigTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ConfigTemplateRequest.md b/docs/ConfigTemplateRequest.md index 2c1540c0d..6865ade79 100644 --- a/docs/ConfigTemplateRequest.md +++ b/docs/ConfigTemplateRequest.md @@ -6,12 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods ### NewConfigTemplateRequest -`func NewConfigTemplateRequest(name string, ) *ConfigTemplateRequest` +`func NewConfigTemplateRequest(name string, templateCode string, ) *ConfigTemplateRequest` NewConfigTemplateRequest instantiates a new ConfigTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -71,6 +75,111 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplateRequest) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplateRequest) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplateRequest) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplateRequest) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplateRequest) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplateRequest) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetTags + +`func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplateRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplateRequest) HasTags() bool` + +HasTags 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/docs/ConsolePort.md b/docs/ConsolePort.md index 165ccf778..10e6b5bdd 100644 --- a/docs/ConsolePort.md +++ b/docs/ConsolePort.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -32,7 +33,7 @@ Name | Type | Description | Notes ### NewConsolePort -`func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` +`func NewConsolePort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` NewConsolePort instantiates a new ConsolePort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsolePort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsolePort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsolePort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConsolePort) GetDisplay() string` @@ -109,40 +130,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsolePort) GetDevice() Device` +`func (o *ConsolePort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePort) GetDeviceOk() (*Device, bool)` +`func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePort) SetDevice(v Device)` +`func (o *ConsolePort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePort) GetModule() Module` +`func (o *ConsolePort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePort) GetModuleOk() (*Module, bool)` +`func (o *ConsolePort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePort) SetModule(v Module)` +`func (o *ConsolePort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,20 +340,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsolePort) GetCable() Cable` +`func (o *ConsolePort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsolePort) GetCableOk() (*Cable, bool)` +`func (o *ConsolePort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsolePort) SetCable(v Cable)` +`func (o *ConsolePort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -407,6 +428,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *ConsolePort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsolePort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsolePort) GetConnectedEndpoints() []interface{}` @@ -427,6 +458,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *ConsolePort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsolePort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsolePort) GetConnectedEndpointsType() string` @@ -447,6 +488,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *ConsolePort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsolePort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsolePort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md index 3c9fe8176..4fdb86bae 100644 --- a/docs/ConsolePortRequest.md +++ b/docs/ConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsolePortRequest -`func NewConsolePortRequest(device DeviceRequest, name string, ) *ConsolePortRequest` +`func NewConsolePortRequest(device BriefDeviceRequest, name string, ) *ConsolePortRequest` NewConsolePortRequest instantiates a new ConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsolePortRequest) GetDevice() DeviceRequest` +`func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePortRequest) GetModule() ModuleRequest` +`func (o *ConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *ConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md index d37560677..00f005d5e 100644 --- a/docs/ConsolePortTemplate.md +++ b/docs/ConsolePortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsolePortTemplate) GetDeviceType() DeviceType` +`func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplate) GetModuleType() ModuleType` +`func (o *ConsolePortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md index bdd1627ea..33af6cae0 100644 --- a/docs/ConsolePortTemplateRequest.md +++ b/docs/ConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPort.md b/docs/ConsoleServerPort.md index 7686dfe90..9df3c48d7 100644 --- a/docs/ConsoleServerPort.md +++ b/docs/ConsoleServerPort.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -32,7 +33,7 @@ Name | Type | Description | Notes ### NewConsoleServerPort -`func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` +`func NewConsoleServerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` NewConsoleServerPort instantiates a new ConsoleServerPort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsoleServerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsoleServerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ConsoleServerPort) GetDisplay() string` @@ -109,40 +130,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsoleServerPort) GetDevice() Device` +`func (o *ConsoleServerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool)` +`func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPort) SetDevice(v Device)` +`func (o *ConsoleServerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPort) GetModule() Module` +`func (o *ConsoleServerPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPort) GetModuleOk() (*Module, bool)` +`func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPort) SetModule(v Module)` +`func (o *ConsoleServerPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,20 +340,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsoleServerPort) GetCable() Cable` +`func (o *ConsoleServerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsoleServerPort) GetCableOk() (*Cable, bool)` +`func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsoleServerPort) SetCable(v Cable)` +`func (o *ConsoleServerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -407,6 +428,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *ConsoleServerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsoleServerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{}` @@ -427,6 +458,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsoleServerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsoleServerPort) GetConnectedEndpointsType() string` @@ -447,6 +488,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsoleServerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsoleServerPort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md index 995610c63..3e59314af 100644 --- a/docs/ConsoleServerPortRequest.md +++ b/docs/ConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsoleServerPortRequest -`func NewConsoleServerPortRequest(device DeviceRequest, name string, ) *ConsoleServerPortRequest` +`func NewConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *ConsoleServerPortRequest` NewConsoleServerPortRequest instantiates a new ConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md index dfc96440f..33411a949 100644 --- a/docs/ConsoleServerPortTemplate.md +++ b/docs/ConsoleServerPortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType` +`func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType` +`func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md index 6c677fcc5..2fe0e692e 100644 --- a/docs/ConsoleServerPortTemplateRequest.md +++ b/docs/ConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/Contact.md b/docs/Contact.md index d3701de38..595ac8f33 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -6,15 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Group** | Pointer to [**NullableBriefContactGroup**](BriefContactGroup.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContact -`func NewContact(id int32, url string, display string, name string, ) *Contact` +`func NewContact(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *Contact` NewContact instantiates a new Contact object This constructor will assign default values to properties that have it defined, @@ -69,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Contact) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Contact) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Contact) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Contact) GetDisplay() string` @@ -89,6 +121,41 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetGroup + +`func (o *Contact) GetGroup() BriefContactGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Contact) GetGroupOk() (*BriefContactGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Contact) SetGroup(v BriefContactGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Contact) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Contact) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Contact) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *Contact) GetName() string` @@ -109,6 +176,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *Contact) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *Contact) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *Contact) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *Contact) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *Contact) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *Contact) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *Contact) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *Contact) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *Contact) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *Contact) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *Contact) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *Contact) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *Contact) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *Contact) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *Contact) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *Contact) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *Contact) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *Contact) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *Contact) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *Contact) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *Contact) GetDescription() string` @@ -134,6 +326,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Contact) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Contact) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Contact) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Contact) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Contact) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Contact) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Contact) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Contact) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Contact) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Contact) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Contact) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Contact) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Contact) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Contact) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Contact) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Contact) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Contact) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Contact) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Contact) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Contact) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Contact) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Contact) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ContactAssignment.md b/docs/ContactAssignment.md index 26a003bab..637e6bf0e 100644 --- a/docs/ContactAssignment.md +++ b/docs/ContactAssignment.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **map[string]interface{}** | | [readonly] -**Contact** | [**Contact**](Contact.md) | | -**Role** | Pointer to [**NullableContactRole**](ContactRole.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional] +**Contact** | [**BriefContact**](BriefContact.md) | | +**Role** | Pointer to [**NullableBriefContactRole**](BriefContactRole.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +22,7 @@ Name | Type | Description | Notes ### NewContactAssignment -`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` +`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` NewContactAssignment instantiates a new ContactAssignment object This constructor will assign default values to properties that have it defined, @@ -159,40 +159,40 @@ SetObject sets Object field to given value. ### GetContact -`func (o *ContactAssignment) GetContact() Contact` +`func (o *ContactAssignment) GetContact() BriefContact` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignment) GetContactOk() (*Contact, bool)` +`func (o *ContactAssignment) GetContactOk() (*BriefContact, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignment) SetContact(v Contact)` +`func (o *ContactAssignment) SetContact(v BriefContact)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignment) GetRole() ContactRole` +`func (o *ContactAssignment) GetRole() BriefContactRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool)` +`func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignment) SetRole(v ContactRole)` +`func (o *ContactAssignment) SetRole(v BriefContactRole)` SetRole sets Role field to given value. @@ -214,20 +214,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignment) GetPriority() ContactAssignmentPriority` +`func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool)` +`func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority)` +`func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` SetPriority sets Priority field to given value. diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md index de146e2f6..5ca6e4a62 100644 --- a/docs/ContactAssignmentRequest.md +++ b/docs/ContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewContactAssignmentRequest -`func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *ContactAssignmentRequest` +`func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *ContactAssignmentRequest` NewContactAssignmentRequest instantiates a new ContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *ContactAssignmentRequest) GetContact() ContactRequest` +`func (o *ContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/ContactGroup.md b/docs/ContactGroup.md index 42b960ec3..972485655 100644 --- a/docs/ContactGroup.md +++ b/docs/ContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewContactGroup -`func NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ContactGroup) GetDisplay() string` diff --git a/docs/ContactRequest.md b/docs/ContactRequest.md index 050fa6fb1..13eead0d4 100644 --- a/docs/ContactRequest.md +++ b/docs/ContactRequest.md @@ -4,8 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +35,41 @@ NewContactRequestWithDefaults instantiates a new ContactRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetGroup + +`func (o *ContactRequest) GetGroup() BriefContactGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ContactRequest) SetGroup(v BriefContactGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ContactRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ContactRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ContactRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *ContactRequest) GetName() string` @@ -46,6 +90,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *ContactRequest) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ContactRequest) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ContactRequest) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ContactRequest) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *ContactRequest) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *ContactRequest) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *ContactRequest) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *ContactRequest) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *ContactRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ContactRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ContactRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ContactRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *ContactRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *ContactRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *ContactRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *ContactRequest) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *ContactRequest) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *ContactRequest) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *ContactRequest) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *ContactRequest) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *ContactRequest) GetDescription() string` @@ -71,6 +240,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ContactRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ContactRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ContactRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ContactRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ContactRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ContactRole.md b/docs/ContactRole.md index 66937cee4..ea561e527 100644 --- a/docs/ContactRole.md +++ b/docs/ContactRole.md @@ -6,16 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContactRole -`func NewContactRole(id int32, url string, display string, name string, slug string, ) *ContactRole` +`func NewContactRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *ContactRole` NewContactRole instantiates a new ContactRole object This constructor will assign default values to properties that have it defined, @@ -70,6 +75,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ContactRole) GetDisplay() string` @@ -155,6 +180,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRole) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ContactRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ContactRole) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ContactRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ContactRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ContactRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ContactRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ContactRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ContactRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ContactRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ContactRoleRequest.md b/docs/ContactRoleRequest.md index 615000a63..dce32edee 100644 --- a/docs/ContactRoleRequest.md +++ b/docs/ContactRoleRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRoleRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/CoreAPI.md b/docs/CoreAPI.md index 18791cb42..639537d8f 100644 --- a/docs/CoreAPI.md +++ b/docs/CoreAPI.md @@ -18,6 +18,8 @@ Method | HTTP request | Description [**CoreDataSourcesUpdate**](CoreAPI.md#CoreDataSourcesUpdate) | **Put** /api/core/data-sources/{id}/ | [**CoreJobsList**](CoreAPI.md#CoreJobsList) | **Get** /api/core/jobs/ | [**CoreJobsRetrieve**](CoreAPI.md#CoreJobsRetrieve) | **Get** /api/core/jobs/{id}/ | +[**CoreObjectChangesList**](CoreAPI.md#CoreObjectChangesList) | **Get** /api/core/object-changes/ | +[**CoreObjectChangesRetrieve**](CoreAPI.md#CoreObjectChangesRetrieve) | **Get** /api/core/object-changes/{id}/ | @@ -299,7 +301,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -363,7 +365,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +431,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1353,3 +1355,262 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## CoreObjectChangesList + +> PaginatedObjectChangeList CoreObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + action := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + actionN := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + changedObjectId := []int32{int32(123)} // []int32 | (optional) + changedObjectIdEmpty := true // bool | (optional) + changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdN := []int32{int32(123)} // []int32 | (optional) + changedObjectType := "changedObjectType_example" // string | (optional) + changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) + changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) + changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + objectRepr := []string{"Inner_example"} // []string | (optional) + objectReprEmpty := true // bool | (optional) + objectReprIc := []string{"Inner_example"} // []string | (optional) + objectReprIe := []string{"Inner_example"} // []string | (optional) + objectReprIew := []string{"Inner_example"} // []string | (optional) + objectReprIsw := []string{"Inner_example"} // []string | (optional) + objectReprN := []string{"Inner_example"} // []string | (optional) + objectReprNic := []string{"Inner_example"} // []string | (optional) + objectReprNie := []string{"Inner_example"} // []string | (optional) + objectReprNiew := []string{"Inner_example"} // []string | (optional) + objectReprNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + relatedObjectId := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdEmpty := true // bool | (optional) + relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) + relatedObjectType := int32(56) // int32 | (optional) + relatedObjectTypeN := int32(56) // int32 | (optional) + requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + timeAfter := time.Now() // time.Time | (optional) + timeBefore := time.Now() // time.Time | (optional) + user := []string{"Inner_example"} // []string | User name (optional) + userN := []string{"Inner_example"} // []string | User name (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userName := []string{"Inner_example"} // []string | (optional) + userNameEmpty := true // bool | (optional) + userNameIc := []string{"Inner_example"} // []string | (optional) + userNameIe := []string{"Inner_example"} // []string | (optional) + userNameIew := []string{"Inner_example"} // []string | (optional) + userNameIsw := []string{"Inner_example"} // []string | (optional) + userNameN := []string{"Inner_example"} // []string | (optional) + userNameNic := []string{"Inner_example"} // []string | (optional) + userNameNie := []string{"Inner_example"} // []string | (optional) + userNameNiew := []string{"Inner_example"} // []string | (optional) + userNameNisw := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesList`: PaginatedObjectChangeList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **actionN** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **changedObjectId** | **[]int32** | | + **changedObjectIdEmpty** | **bool** | | + **changedObjectIdGt** | **[]int32** | | + **changedObjectIdGte** | **[]int32** | | + **changedObjectIdLt** | **[]int32** | | + **changedObjectIdLte** | **[]int32** | | + **changedObjectIdN** | **[]int32** | | + **changedObjectType** | **string** | | + **changedObjectTypeN** | **string** | | + **changedObjectTypeId** | **[]int32** | | + **changedObjectTypeIdN** | **[]int32** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **objectRepr** | **[]string** | | + **objectReprEmpty** | **bool** | | + **objectReprIc** | **[]string** | | + **objectReprIe** | **[]string** | | + **objectReprIew** | **[]string** | | + **objectReprIsw** | **[]string** | | + **objectReprN** | **[]string** | | + **objectReprNic** | **[]string** | | + **objectReprNie** | **[]string** | | + **objectReprNiew** | **[]string** | | + **objectReprNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **relatedObjectId** | **[]int32** | | + **relatedObjectIdEmpty** | **bool** | | + **relatedObjectIdGt** | **[]int32** | | + **relatedObjectIdGte** | **[]int32** | | + **relatedObjectIdLt** | **[]int32** | | + **relatedObjectIdLte** | **[]int32** | | + **relatedObjectIdN** | **[]int32** | | + **relatedObjectType** | **int32** | | + **relatedObjectTypeN** | **int32** | | + **requestId** | **string** | | + **timeAfter** | **time.Time** | | + **timeBefore** | **time.Time** | | + **user** | **[]string** | User name | + **userN** | **[]string** | User name | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **userName** | **[]string** | | + **userNameEmpty** | **bool** | | + **userNameIc** | **[]string** | | + **userNameIe** | **[]string** | | + **userNameIew** | **[]string** | | + **userNameIsw** | **[]string** | | + **userNameN** | **[]string** | | + **userNameNic** | **[]string** | | + **userNameNie** | **[]string** | | + **userNameNiew** | **[]string** | | + **userNameNisw** | **[]string** | | + +### Return type + +[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CoreObjectChangesRetrieve + +> ObjectChange CoreObjectChangesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object change. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesRetrieve`: ObjectChange + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object change. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectChange**](ObjectChange.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/CoreObjectChangesListActionParameter.md b/docs/CoreObjectChangesListActionParameter.md new file mode 100644 index 000000000..3e5e393d7 --- /dev/null +++ b/docs/CoreObjectChangesListActionParameter.md @@ -0,0 +1,15 @@ +# CoreObjectChangesListActionParameter + +## Enum + + +* `CREATE` (value: `"create"`) + +* `DELETE` (value: `"delete"`) + +* `UPDATE` (value: `"update"`) + + +[[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/docs/CustomField.md b/docs/CustomField.md index 58a8f8771..cb2086732 100644 --- a/docs/CustomField.md +++ b/docs/CustomField.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Type** | [**CustomFieldType**](CustomFieldType.md) | | @@ -15,18 +16,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogic**](CustomFieldFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisible**](CustomFieldUiVisible.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditable**](CustomFieldUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSet**](BriefCustomFieldChoiceSet.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -35,7 +38,7 @@ Name | Type | Description | Notes ### NewCustomField -`func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` +`func NewCustomField(id int32, url string, displayUrl string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` NewCustomField instantiates a new CustomField object This constructor will assign default values to properties that have it defined, @@ -90,6 +93,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomField) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomField) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomField) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CustomField) GetDisplay() string` @@ -325,6 +348,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomField) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomField) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomField) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomField) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomField) GetSearchWeight() int32` @@ -485,6 +533,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomField) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomField) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomField) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomField) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomField) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomField) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomField) GetWeight() int32` @@ -607,20 +690,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet` +`func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool)` +`func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet)` +`func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md index ebc8229ca..92db3f28f 100644 --- a/docs/CustomFieldChoiceSet.md +++ b/docs/CustomFieldChoiceSet.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewCustomFieldChoiceSet -`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` +`func NewCustomFieldChoiceSet(id int32, url string, displayUrl string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomFieldChoiceSet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomFieldChoiceSet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CustomFieldChoiceSet) GetDisplay() string` diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md index ab9dfbfd1..e9b2185ec 100644 --- a/docs/CustomFieldRequest.md +++ b/docs/CustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -239,6 +241,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomFieldRequest) GetSearchWeight() int32` @@ -399,6 +426,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomFieldRequest) GetWeight() int32` @@ -521,20 +583,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomLink.md b/docs/CustomLink.md index c2b8e12ea..95496579d 100644 --- a/docs/CustomLink.md +++ b/docs/CustomLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewCustomLink -`func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` +`func NewCustomLink(id int32, url string, displayUrl string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` NewCustomLink instantiates a new CustomLink object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *CustomLink) GetDisplay() string` diff --git a/docs/CustomLinkButtonClass.md b/docs/CustomLinkButtonClass.md index f62db6217..bf68c5956 100644 --- a/docs/CustomLinkButtonClass.md +++ b/docs/CustomLinkButtonClass.md @@ -3,7 +3,7 @@ ## Enum -* `OUTLINE_DARK` (value: `"outline-dark"`) +* `DEFAULT` (value: `"default"`) * `BLUE` (value: `"blue"`) diff --git a/docs/DataFile.md b/docs/DataFile.md index a332d29cb..031354927 100644 --- a/docs/DataFile.md +++ b/docs/DataFile.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Source** | [**DataSource**](DataSource.md) | | [readonly] +**Source** | [**BriefDataSource**](BriefDataSource.md) | | [readonly] **Path** | **string** | File path relative to the data source's root | [readonly] **LastUpdated** | **time.Time** | | [readonly] **Size** | **int32** | | [readonly] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewDataFile -`func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` +`func NewDataFile(id int32, url string, displayUrl string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` NewDataFile instantiates a new DataFile object This constructor will assign default values to properties that have it defined, @@ -72,6 +73,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataFile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataFile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataFile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DataFile) GetDisplay() string` @@ -94,20 +115,20 @@ SetDisplay sets Display field to given value. ### GetSource -`func (o *DataFile) GetSource() DataSource` +`func (o *DataFile) GetSource() BriefDataSource` GetSource returns the Source field if non-nil, zero value otherwise. ### GetSourceOk -`func (o *DataFile) GetSourceOk() (*DataSource, bool)` +`func (o *DataFile) GetSourceOk() (*BriefDataSource, bool)` GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSource -`func (o *DataFile) SetSource(v DataSource)` +`func (o *DataFile) SetSource(v BriefDataSource)` SetSource sets Source field to given value. diff --git a/docs/DataSource.md b/docs/DataSource.md index 0768fd476..0d294c8ca 100644 --- a/docs/DataSource.md +++ b/docs/DataSource.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**DataSourceType**](DataSourceType.md) | | +**SourceUrl** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**Status** | [**DataSourceStatus**](DataSourceStatus.md) | | **Description** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **interface{}** | | [optional] +**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**LastSynced** | **NullableTime** | | [readonly] +**FileCount** | **int64** | | [readonly] ## Methods ### NewDataSource -`func NewDataSource(id int32, url string, display string, name string, ) *DataSource` +`func NewDataSource(id int32, url string, displayUrl string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64, ) *DataSource` NewDataSource instantiates a new DataSource object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataSource) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataSource) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataSource) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DataSource) GetDisplay() string` @@ -109,6 +142,91 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *DataSource) GetType() DataSourceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DataSource) GetTypeOk() (*DataSourceType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DataSource) SetType(v DataSourceType)` + +SetType sets Type field to given value. + + +### GetSourceUrl + +`func (o *DataSource) GetSourceUrl() string` + +GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. + +### GetSourceUrlOk + +`func (o *DataSource) GetSourceUrlOk() (*string, bool)` + +GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceUrl + +`func (o *DataSource) SetSourceUrl(v string)` + +SetSourceUrl sets SourceUrl field to given value. + + +### GetEnabled + +`func (o *DataSource) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *DataSource) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *DataSource) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *DataSource) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *DataSource) GetStatus() DataSourceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DataSource) SetStatus(v DataSourceStatus)` + +SetStatus sets Status field to given value. + + ### GetDescription `func (o *DataSource) GetDescription() string` @@ -134,6 +252,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetParameters + +`func (o *DataSource) GetParameters() interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *DataSource) GetParametersOk() (*interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *DataSource) SetParameters(v interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *DataSource) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *DataSource) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *DataSource) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetIgnoreRules + +`func (o *DataSource) GetIgnoreRules() string` + +GetIgnoreRules returns the IgnoreRules field if non-nil, zero value otherwise. + +### GetIgnoreRulesOk + +`func (o *DataSource) GetIgnoreRulesOk() (*string, bool)` + +GetIgnoreRulesOk returns a tuple with the IgnoreRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreRules + +`func (o *DataSource) SetIgnoreRules(v string)` + +SetIgnoreRules sets IgnoreRules field to given value. + +### HasIgnoreRules + +`func (o *DataSource) HasIgnoreRules() bool` + +HasIgnoreRules returns a boolean if a field has been set. + +### GetComments + +`func (o *DataSource) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSource) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSource) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSource) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DataSource) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DataSource) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DataSource) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DataSource) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DataSource) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DataSource) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DataSource) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DataSource) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DataSource) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DataSource) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DataSource) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DataSource) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DataSource) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetLastSynced + +`func (o *DataSource) GetLastSynced() time.Time` + +GetLastSynced returns the LastSynced field if non-nil, zero value otherwise. + +### GetLastSyncedOk + +`func (o *DataSource) GetLastSyncedOk() (*time.Time, bool)` + +GetLastSyncedOk returns a tuple with the LastSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSynced + +`func (o *DataSource) SetLastSynced(v time.Time)` + +SetLastSynced sets LastSynced field to given value. + + +### SetLastSyncedNil + +`func (o *DataSource) SetLastSyncedNil(b bool)` + + SetLastSyncedNil sets the value for LastSynced to be an explicit nil + +### UnsetLastSynced +`func (o *DataSource) UnsetLastSynced()` + +UnsetLastSynced ensures that no value is present for LastSynced, not even an explicit nil +### GetFileCount + +`func (o *DataSource) GetFileCount() int64` + +GetFileCount returns the FileCount field if non-nil, zero value otherwise. + +### GetFileCountOk + +`func (o *DataSource) GetFileCountOk() (*int64, bool)` + +GetFileCountOk returns a tuple with the FileCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileCount + +`func (o *DataSource) SetFileCount(v int64)` + +SetFileCount sets FileCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DataSourceRequest.md b/docs/DataSourceRequest.md index f9f23e255..8aad888e3 100644 --- a/docs/DataSourceRequest.md +++ b/docs/DataSourceRequest.md @@ -5,20 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | | +**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | | **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDataSourceRequest -`func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string, ) *DataSourceRequest` +`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest` NewDataSourceRequest instantiates a new DataSourceRequest object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetName sets Name field to given value. ### GetType -`func (o *DataSourceRequest) GetType() DataSourceRequestType` +`func (o *DataSourceRequest) GetType() DataSourceTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool)` +`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *DataSourceRequest) SetType(v DataSourceRequestType)` +`func (o *DataSourceRequest) SetType(v DataSourceTypeValue)` SetType sets Type field to given value. @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *DataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *DataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *DataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *DataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/DataSourceStatus.md b/docs/DataSourceStatus.md new file mode 100644 index 000000000..bb83baf4a --- /dev/null +++ b/docs/DataSourceStatus.md @@ -0,0 +1,82 @@ +# DataSourceStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DataSourceStatusValue**](DataSourceStatusValue.md) | | [optional] +**Label** | Pointer to [**DataSourceStatusLabel**](DataSourceStatusLabel.md) | | [optional] + +## Methods + +### NewDataSourceStatus + +`func NewDataSourceStatus() *DataSourceStatus` + +NewDataSourceStatus instantiates a new DataSourceStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDataSourceStatusWithDefaults + +`func NewDataSourceStatusWithDefaults() *DataSourceStatus` + +NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DataSourceStatus) GetValue() DataSourceStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DataSourceStatus) SetValue(v DataSourceStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataSourceStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DataSourceStatus) HasLabel() bool` + +HasLabel 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/docs/DataSourceStatusLabel.md b/docs/DataSourceStatusLabel.md new file mode 100644 index 000000000..09a777b52 --- /dev/null +++ b/docs/DataSourceStatusLabel.md @@ -0,0 +1,19 @@ +# DataSourceStatusLabel + +## Enum + + +* `NEW` (value: `"New"`) + +* `QUEUED` (value: `"Queued"`) + +* `SYNCING` (value: `"Syncing"`) + +* `COMPLETED` (value: `"Completed"`) + +* `FAILED` (value: `"Failed"`) + + +[[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/docs/DataSourceStatusValue.md b/docs/DataSourceStatusValue.md new file mode 100644 index 000000000..a46091ab0 --- /dev/null +++ b/docs/DataSourceStatusValue.md @@ -0,0 +1,19 @@ +# DataSourceStatusValue + +## Enum + + +* `NEW` (value: `"new"`) + +* `QUEUED` (value: `"queued"`) + +* `SYNCING` (value: `"syncing"`) + +* `COMPLETED` (value: `"completed"`) + +* `FAILED` (value: `"failed"`) + + +[[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/docs/DataSourceType.md b/docs/DataSourceType.md new file mode 100644 index 000000000..a5d2f0be0 --- /dev/null +++ b/docs/DataSourceType.md @@ -0,0 +1,82 @@ +# DataSourceType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DataSourceTypeValue**](DataSourceTypeValue.md) | | [optional] +**Label** | Pointer to [**DataSourceTypeLabel**](DataSourceTypeLabel.md) | | [optional] + +## Methods + +### NewDataSourceType + +`func NewDataSourceType() *DataSourceType` + +NewDataSourceType instantiates a new DataSourceType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDataSourceTypeWithDefaults + +`func NewDataSourceTypeWithDefaults() *DataSourceType` + +NewDataSourceTypeWithDefaults instantiates a new DataSourceType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DataSourceType) GetValue() DataSourceTypeValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DataSourceType) GetValueOk() (*DataSourceTypeValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DataSourceType) SetValue(v DataSourceTypeValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DataSourceType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DataSourceType) GetLabel() DataSourceTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DataSourceType) SetLabel(v DataSourceTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DataSourceType) HasLabel() bool` + +HasLabel 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/docs/DataSourceTypeLabel.md b/docs/DataSourceTypeLabel.md new file mode 100644 index 000000000..067bf53d6 --- /dev/null +++ b/docs/DataSourceTypeLabel.md @@ -0,0 +1,17 @@ +# DataSourceTypeLabel + +## Enum + + +* `_______` (value: `"---------"`) + +* `LOCAL` (value: `"Local"`) + +* `GIT` (value: `"Git"`) + +* `AMAZON_S3` (value: `"Amazon S3"`) + + +[[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/docs/DataSourceTypeValue.md b/docs/DataSourceTypeValue.md new file mode 100644 index 000000000..8d051f27c --- /dev/null +++ b/docs/DataSourceTypeValue.md @@ -0,0 +1,15 @@ +# DataSourceTypeValue + +## Enum + + +* `LOCAL` (value: `"local"`) + +* `GIT` (value: `"git"`) + +* `AMAZON_S3` (value: `"amazon-s3"`) + + +[[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/docs/DcimAPI.md b/docs/DcimAPI.md index 2e73f244a..8fa92b5c2 100644 --- a/docs/DcimAPI.md +++ b/docs/DcimAPI.md @@ -310,6 +310,15 @@ Method | HTTP request | Description [**DcimRackRolesPartialUpdate**](DcimAPI.md#DcimRackRolesPartialUpdate) | **Patch** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesRetrieve**](DcimAPI.md#DcimRackRolesRetrieve) | **Get** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesUpdate**](DcimAPI.md#DcimRackRolesUpdate) | **Put** /api/dcim/rack-roles/{id}/ | +[**DcimRackTypesBulkDestroy**](DcimAPI.md#DcimRackTypesBulkDestroy) | **Delete** /api/dcim/rack-types/ | +[**DcimRackTypesBulkPartialUpdate**](DcimAPI.md#DcimRackTypesBulkPartialUpdate) | **Patch** /api/dcim/rack-types/ | +[**DcimRackTypesBulkUpdate**](DcimAPI.md#DcimRackTypesBulkUpdate) | **Put** /api/dcim/rack-types/ | +[**DcimRackTypesCreate**](DcimAPI.md#DcimRackTypesCreate) | **Post** /api/dcim/rack-types/ | +[**DcimRackTypesDestroy**](DcimAPI.md#DcimRackTypesDestroy) | **Delete** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesList**](DcimAPI.md#DcimRackTypesList) | **Get** /api/dcim/rack-types/ | +[**DcimRackTypesPartialUpdate**](DcimAPI.md#DcimRackTypesPartialUpdate) | **Patch** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesRetrieve**](DcimAPI.md#DcimRackTypesRetrieve) | **Get** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesUpdate**](DcimAPI.md#DcimRackTypesUpdate) | **Put** /api/dcim/rack-types/{id}/ | [**DcimRacksBulkDestroy**](DcimAPI.md#DcimRacksBulkDestroy) | **Delete** /api/dcim/racks/ | [**DcimRacksBulkPartialUpdate**](DcimAPI.md#DcimRacksBulkPartialUpdate) | **Patch** /api/dcim/racks/ | [**DcimRacksBulkUpdate**](DcimAPI.md#DcimRacksBulkUpdate) | **Put** /api/dcim/racks/ | @@ -1511,10 +1520,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []int32{int32(123)} // []int32 | (optional) @@ -1634,10 +1643,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | | @@ -2283,7 +2292,7 @@ Name | Type | Description | Notes ## DcimConsolePortTemplatesList -> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -2324,8 +2333,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2355,8 +2362,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2377,7 +2382,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2419,8 +2424,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2450,8 +2453,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2723,7 +2724,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2787,7 +2788,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2853,7 +2854,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2919,7 +2920,7 @@ import ( ) func main() { - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3034,7 +3035,7 @@ Name | Type | Description | Notes ## DcimConsolePortsList -> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -3083,6 +3084,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -3140,20 +3147,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) @@ -3170,7 +3173,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3220,6 +3223,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -3277,20 +3286,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | @@ -3557,7 +3562,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console port. - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3939,7 +3944,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortTemplatesList -> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -3980,8 +3985,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4011,8 +4014,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4033,7 +4034,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4075,8 +4076,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -4106,8 +4105,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4379,7 +4376,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4443,7 +4440,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4509,7 +4506,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4575,7 +4572,7 @@ import ( ) func main() { - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4690,7 +4687,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortsList -> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -4739,6 +4736,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -4796,20 +4799,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) @@ -4826,7 +4825,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4876,6 +4875,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -4933,20 +4938,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | @@ -5213,7 +5214,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console server port. - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5284,7 +5285,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5348,7 +5349,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5414,7 +5415,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5480,7 +5481,7 @@ import ( ) func main() { - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5595,7 +5596,7 @@ Name | Type | Description | Notes ## DcimDeviceBayTemplatesList -> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -5636,8 +5637,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5683,7 +5682,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5725,8 +5724,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5952,7 +5949,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay template. - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6023,7 +6020,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6087,7 +6084,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6153,7 +6150,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6219,7 +6216,7 @@ import ( ) func main() { - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6334,7 +6331,7 @@ Name | Type | Description | Notes ## DcimDeviceBaysList -> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -6377,6 +6374,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -6434,20 +6437,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -6460,7 +6459,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6504,6 +6503,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -6561,20 +6566,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -6767,7 +6768,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay. - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7601,7 +7602,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7665,7 +7666,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7731,7 +7732,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7797,7 +7798,7 @@ import ( ) func main() { - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8509,7 +8510,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device type. - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8580,7 +8581,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8644,7 +8645,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8710,7 +8711,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8776,7 +8777,7 @@ import ( ) func main() { - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8891,7 +8892,7 @@ Name | Type | Description | Notes ## DcimDevicesList -> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() +> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() @@ -8924,6 +8925,10 @@ func main() { assetTagNie := []string{"Inner_example"} // []string | (optional) assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) + clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) + clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) @@ -8946,8 +8951,8 @@ func main() { consoleServerPorts := true // bool | Has console server ports (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -9032,8 +9037,8 @@ func main() { latitudeN := []float64{float64(123)} // []float64 | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) localContextData := true // bool | Has local config context data (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) longitude := []float64{float64(123)} // []float64 | (optional) longitudeEmpty := true // bool | (optional) longitudeGt := []float64{float64(123)} // []float64 | (optional) @@ -9127,10 +9132,10 @@ func main() { rearPortCountLt := []int32{int32(123)} // []int32 | (optional) rearPortCountLte := []int32{int32(123)} // []int32 | (optional) rearPortCountN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []int32{int32(123)} // []int32 | Role (ID) (optional) @@ -9148,10 +9153,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -9160,10 +9165,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -9187,7 +9192,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9221,6 +9226,10 @@ Name | Type | Description | Notes **assetTagNie** | **[]string** | | **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | + **clusterGroup** | **[]string** | Cluster group (slug) | + **clusterGroupN** | **[]string** | Cluster group (slug) | + **clusterGroupId** | **[]int32** | Cluster group (ID) | + **clusterGroupIdN** | **[]int32** | Cluster group (ID) | **clusterId** | **[]int32** | VM cluster (ID) | **clusterIdN** | **[]int32** | VM cluster (ID) | **configTemplateId** | **[]int32** | Config template (ID) | @@ -9243,8 +9252,8 @@ Name | Type | Description | Notes **consoleServerPorts** | **bool** | Has console server ports | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -9329,8 +9338,8 @@ Name | Type | Description | Notes **latitudeN** | **[]float64** | | **limit** | **int32** | Number of results to return per page. | **localContextData** | **bool** | Has local config context data | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **longitude** | **[]float64** | | **longitudeEmpty** | **bool** | | **longitudeGt** | **[]float64** | | @@ -9424,10 +9433,10 @@ Name | Type | Description | Notes **rearPortCountLt** | **[]int32** | | **rearPortCountLte** | **[]int32** | | **rearPortCountN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -9445,10 +9454,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -9457,10 +9466,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9594,7 +9603,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -9738,7 +9747,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9809,7 +9818,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9873,7 +9882,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9939,7 +9948,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10005,7 +10014,7 @@ import ( ) func main() { - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10120,7 +10129,7 @@ Name | Type | Description | Notes ## DcimFrontPortTemplatesList -> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -10172,8 +10181,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -10203,8 +10210,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10234,7 +10239,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10287,8 +10292,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -10318,8 +10321,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10529,7 +10530,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port template. - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10600,7 +10601,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10664,7 +10665,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10730,7 +10731,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10796,7 +10797,7 @@ import ( ) func main() { - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10911,7 +10912,7 @@ Name | Type | Description | Notes ## DcimFrontPortsList -> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -10970,6 +10971,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -11036,20 +11043,16 @@ func main() { rearPortPositionLt := []int32{int32(123)} // []int32 | (optional) rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -11064,7 +11067,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11124,6 +11127,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -11190,20 +11199,16 @@ Name | Type | Description | Notes **rearPortPositionLt** | **[]int32** | | **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -11468,7 +11473,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port. - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -11850,7 +11855,7 @@ Name | Type | Description | Notes ## DcimInterfaceTemplatesList -> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -11893,8 +11898,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -11926,8 +11929,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -11954,7 +11955,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11998,8 +11999,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12031,8 +12030,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12310,7 +12307,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12374,7 +12371,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12440,7 +12437,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12506,7 +12503,7 @@ import ( ) func main() { - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12621,7 +12618,7 @@ Name | Type | Description | Notes ## DcimInterfacesList -> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() +> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() @@ -12672,6 +12669,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -12765,10 +12768,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) rfChannel := []string{"Inner_example"} // []string | (optional) rfChannelN := []string{"Inner_example"} // []string | (optional) rfChannelFrequency := []float64{float64(123)} // []float64 | (optional) @@ -12787,16 +12790,12 @@ func main() { rfChannelWidthN := []float64{float64(123)} // []float64 | (optional) rfRole := []string{"Inner_example"} // []string | (optional) rfRoleN := []string{"Inner_example"} // []string | (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := []int32{int32(123)} // []int32 | (optional) @@ -12853,7 +12852,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -12905,6 +12904,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -12998,10 +13003,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **rfChannel** | **[]string** | | **rfChannelN** | **[]string** | | **rfChannelFrequency** | **[]float64** | | @@ -13020,16 +13025,12 @@ Name | Type | Description | Notes **rfChannelWidthN** | **[]float64** | | **rfRole** | **[]string** | | **rfRoleN** | **[]string** | | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | **[]int32** | | @@ -13336,7 +13337,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14164,7 +14165,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14228,7 +14229,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14294,7 +14295,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14360,7 +14361,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14475,7 +14476,7 @@ Name | Type | Description | Notes ## DcimInventoryItemTemplatesList -> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -14525,8 +14526,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -14593,7 +14592,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -14644,8 +14643,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -14892,7 +14889,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item template. - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14963,7 +14960,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15027,7 +15024,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15093,7 +15090,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15159,7 +15156,7 @@ import ( ) func main() { - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15274,7 +15271,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsList -> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -15337,6 +15334,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -15408,10 +15411,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -15429,10 +15432,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -15445,7 +15448,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -15509,6 +15512,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -15580,10 +15589,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -15601,10 +15610,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -15797,7 +15806,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item. - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15868,7 +15877,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15932,7 +15941,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15998,7 +16007,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16064,7 +16073,7 @@ import ( ) func main() { - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16199,14 +16208,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Location (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -16273,16 +16282,16 @@ func main() { parentId := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) parentIdN := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -16302,10 +16311,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -16333,14 +16342,14 @@ Other parameters are passed through a pointer to a apiDcimLocationsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Location (slug) | - **ancestorN** | **[]int32** | Location (slug) | - **ancestorId** | **[]int32** | Location (ID) | - **ancestorIdN** | **[]int32** | Location (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -16407,16 +16416,16 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent location (ID) | **parentIdN** | **[]int32** | Parent location (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **slug** | **[]string** | | @@ -16436,10 +16445,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -16626,7 +16635,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this location. - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17030,8 +17039,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -17123,8 +17132,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -17444,7 +17453,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17508,7 +17517,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17574,7 +17583,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17640,7 +17649,7 @@ import ( ) func main() { - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17755,7 +17764,7 @@ Name | Type | Description | Notes ## DcimModuleBayTemplatesList -> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -17794,10 +17803,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -17825,6 +17832,8 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -17854,7 +17863,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -17896,8 +17905,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -17925,6 +17932,8 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **modifiedByRequest** | **string** | | + **moduleTypeId** | **[]int32** | Module type (ID) | + **moduleTypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18134,7 +18143,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay template. - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18205,7 +18214,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18269,7 +18278,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18335,7 +18344,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18401,7 +18410,7 @@ import ( ) func main() { - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18516,7 +18525,7 @@ Name | Type | Description | Notes ## DcimModuleBaysList -> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -18559,6 +18568,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -18596,6 +18611,8 @@ func main() { locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) + moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -18609,6 +18626,8 @@ func main() { nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + parentId := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) + parentIdN := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) position := []string{"Inner_example"} // []string | (optional) positionEmpty := true // bool | (optional) positionIc := []string{"Inner_example"} // []string | (optional) @@ -18625,20 +18644,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -18651,7 +18666,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -18695,6 +18710,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -18732,6 +18753,8 @@ Name | Type | Description | Notes **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | + **moduleId** | **[]int32** | Module (ID) | + **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18745,6 +18768,8 @@ Name | Type | Description | Notes **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **parentId** | **[]int32** | Parent module bay (ID) | + **parentIdN** | **[]int32** | Parent module bay (ID) | **position** | **[]string** | | **positionEmpty** | **bool** | | **positionIc** | **[]string** | | @@ -18761,20 +18786,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -18967,7 +18988,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay. - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19038,7 +19059,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19102,7 +19123,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19168,7 +19189,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19234,7 +19255,7 @@ import ( ) func main() { - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19349,7 +19370,7 @@ Name | Type | Description | Notes ## DcimModuleTypesList -> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedModuleTypeList DcimModuleTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() @@ -19369,6 +19390,8 @@ import ( ) func main() { + airflow := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) + airflowN := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) consolePorts := true // bool | Has console ports (optional) consoleServerPorts := true // bool | Has console server ports (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -19454,7 +19477,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -19475,6 +19498,8 @@ Other parameters are passed through a pointer to a apiDcimModuleTypesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | + **airflowN** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | **consolePorts** | **bool** | Has console ports | **consoleServerPorts** | **bool** | Has console server ports | **created** | [**[]time.Time**](time.Time.md) | | @@ -19740,7 +19765,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module type. - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19811,7 +19836,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19875,7 +19900,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19941,7 +19966,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20007,7 +20032,7 @@ import ( ) func main() { - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20194,8 +20219,8 @@ func main() { manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) - moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) + moduleBayId := []string{"Inner_example"} // []string | (optional) + moduleBayIdN := []string{"Inner_example"} // []string | (optional) moduleType := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional) @@ -20295,8 +20320,8 @@ Name | Type | Description | Notes **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **modifiedByRequest** | **string** | | - **moduleBayId** | **[]int32** | Module Bay (ID) | - **moduleBayIdN** | **[]int32** | Module Bay (ID) | + **moduleBayId** | **[]string** | | + **moduleBayIdN** | **[]string** | | **moduleType** | **[]string** | Module type (model) | **moduleTypeN** | **[]string** | Module type (model) | **moduleTypeId** | **[]int32** | Module type (ID) | @@ -20503,7 +20528,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module. - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21323,7 +21348,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21387,7 +21412,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21453,7 +21478,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21519,7 +21544,7 @@ import ( ) func main() { - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21738,16 +21763,16 @@ func main() { q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -21758,10 +21783,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) @@ -21882,16 +21907,16 @@ Name | Type | Description | Notes **q** | **string** | Search | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -21902,10 +21927,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | @@ -22171,7 +22196,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power feed. - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -22553,7 +22578,7 @@ Name | Type | Description | Notes ## DcimPowerOutletTemplatesList -> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -22594,8 +22619,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) id := []int32{int32(123)} // []int32 | (optional) @@ -22627,8 +22650,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -22645,13 +22666,13 @@ func main() { powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -22693,8 +22714,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **feedLeg** | **[]string** | Phase (for three-phase feeds) | **feedLegN** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | @@ -22726,8 +22745,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -22744,8 +22761,8 @@ Name | Type | Description | Notes **powerPortId** | **[]int32** | Power port (ID) | **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -23001,7 +23018,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23065,7 +23082,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23131,7 +23148,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23197,7 +23214,7 @@ import ( ) func main() { - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23312,7 +23329,7 @@ Name | Type | Description | Notes ## DcimPowerOutletsList -> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -23361,6 +23378,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -23422,20 +23445,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -23450,7 +23469,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -23500,6 +23519,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -23561,20 +23586,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -23839,7 +23860,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power outlet. - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23910,7 +23931,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23974,7 +23995,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24040,7 +24061,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24106,7 +24127,7 @@ import ( ) func main() { - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24243,8 +24264,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -24281,8 +24302,8 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -24298,16 +24319,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -24339,8 +24360,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -24377,8 +24398,8 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -24394,16 +24415,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -24592,7 +24613,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power panel. - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24974,7 +24995,7 @@ Name | Type | Description | Notes ## DcimPowerPortTemplatesList -> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -25022,8 +25043,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -25060,8 +25079,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -25076,13 +25093,13 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25131,8 +25148,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -25169,8 +25184,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -25185,8 +25198,8 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -25442,7 +25455,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25506,7 +25519,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25572,7 +25585,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25638,7 +25651,7 @@ import ( ) func main() { - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25753,7 +25766,7 @@ Name | Type | Description | Notes ## DcimPowerPortsList -> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -25809,6 +25822,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -25873,20 +25892,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -25901,7 +25916,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25958,6 +25973,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -26022,20 +26043,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -26300,7 +26317,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power port. - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26371,7 +26388,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26435,7 +26452,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26501,7 +26518,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26567,7 +26584,7 @@ import ( ) func main() { - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26736,36 +26753,36 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) unit := float32(8.14) // float32 | (optional) @@ -26832,48 +26849,805 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **modifiedByRequest** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **unit** | **float32** | | + **updatedByRequest** | **string** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + +### Return type + +[**PaginatedRackReservationList**](PaginatedRackReservationList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackReservationsPartialUpdate + +> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackReservationsPartialUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack reservation. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | + +### Return type + +[**RackReservation**](RackReservation.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackReservationsRetrieve + +> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackReservationsRetrieve`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack reservation. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RackReservation**](RackReservation.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackReservationsUpdate + +> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackReservationsUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack reservation. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | + +### Return type + +[**RackReservation**](RackReservation.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesBulkDestroy + +> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesBulkPartialUpdate + +> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesBulkPartialUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + +[**[]RackRole**](RackRole.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesBulkUpdate + +> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesBulkUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + +[**[]RackRole**](RackRole.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesCreate + +> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesCreate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + +### Return type + +[**RackRole**](RackRole.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesDestroy + +> DcimRackRolesDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack role. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack role. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackRolesList + +> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + colorNiew := []string{"Inner_example"} // []string | (optional) + colorNisw := []string{"Inner_example"} // []string | (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackRolesList`: PaginatedRackRoleList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **color** | **[]string** | | + **colorEmpty** | **bool** | | + **colorIc** | **[]string** | | + **colorIe** | **[]string** | | + **colorIew** | **[]string** | | + **colorIsw** | **[]string** | | + **colorN** | **[]string** | | + **colorNic** | **[]string** | | + **colorNie** | **[]string** | | + **colorNiew** | **[]string** | | + **colorNisw** | **[]string** | | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | - **tenant** | **[]string** | Tenant (slug) | - **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | - **tenantId** | **[]int32** | Tenant (ID) | - **tenantIdN** | **[]int32** | Tenant (ID) | - **unit** | **float32** | | **updatedByRequest** | **string** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | ### Return type -[**PaginatedRackReservationList**](PaginatedRackReservationList.md) +[**PaginatedRackRoleList**](PaginatedRackRoleList.md) ### Authorization @@ -26889,9 +27663,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsPartialUpdate +## DcimRackRolesPartialUpdate -> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() +> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() @@ -26910,18 +27684,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack role. + patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackReservationsPartialUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) + // response from `DcimRackRolesPartialUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) } ``` @@ -26931,21 +27705,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | + **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -26961,9 +27735,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsRetrieve +## DcimRackRolesRetrieve -> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() +> RackRole DcimRackRolesRetrieve(ctx, id).Execute() @@ -26982,17 +27756,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. + id := int32(56) // int32 | A unique integer value identifying this rack role. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackReservationsRetrieve`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) + // response from `DcimRackRolesRetrieve`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) } ``` @@ -27002,11 +27776,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27015,7 +27789,7 @@ Name | Type | Description | Notes ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -27031,9 +27805,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackReservationsUpdate +## DcimRackRolesUpdate -> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() +> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() @@ -27052,18 +27826,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + id := int32(56) // int32 | A unique integer value identifying this rack role. + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackReservationsUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) + // response from `DcimRackRolesUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) } ``` @@ -27073,21 +27847,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**RackReservation**](RackReservation.md) +[**RackRole**](RackRole.md) ### Authorization @@ -27103,9 +27877,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkDestroy +## DcimRackTypesBulkDestroy -> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() +> DcimRackTypesBulkDestroy(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27124,13 +27898,13 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27142,12 +27916,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type @@ -27167,9 +27941,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkPartialUpdate +## DcimRackTypesBulkPartialUpdate -> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> []RackType DcimRackTypesBulkPartialUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27188,17 +27962,17 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesBulkPartialUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) + // response from `DcimRackTypesBulkPartialUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -27208,16 +27982,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]RackRole**](RackRole.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27233,9 +28007,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesBulkUpdate +## DcimRackTypesBulkUpdate -> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> []RackType DcimRackTypesBulkUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27254,17 +28028,17 @@ import ( ) func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesBulkUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) + // response from `DcimRackTypesBulkUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkUpdate`: %v\n", resp) } ``` @@ -27274,16 +28048,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]RackRole**](RackRole.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27299,9 +28073,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesCreate +## DcimRackTypesCreate -> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() +> RackType DcimRackTypesCreate(ctx).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -27320,17 +28094,17 @@ import ( ) func main() { - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesCreate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) + // response from `DcimRackTypesCreate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesCreate`: %v\n", resp) } ``` @@ -27340,16 +28114,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27365,9 +28139,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesDestroy +## DcimRackTypesDestroy -> DcimRackRolesDestroy(ctx, id).Execute() +> DcimRackTypesDestroy(ctx, id).Execute() @@ -27386,13 +28160,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27404,11 +28178,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -27433,9 +28207,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesList +## DcimRackTypesList -> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRackTypeList DcimRackTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() @@ -27455,17 +28229,6 @@ import ( ) func main() { - color := []string{"Inner_example"} // []string | (optional) - colorEmpty := true // bool | (optional) - colorIc := []string{"Inner_example"} // []string | (optional) - colorIe := []string{"Inner_example"} // []string | (optional) - colorIew := []string{"Inner_example"} // []string | (optional) - colorIsw := []string{"Inner_example"} // []string | (optional) - colorN := []string{"Inner_example"} // []string | (optional) - colorNic := []string{"Inner_example"} // []string | (optional) - colorNie := []string{"Inner_example"} // []string | (optional) - colorNiew := []string{"Inner_example"} // []string | (optional) - colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -27474,6 +28237,7 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + descUnits := true // bool | (optional) description := []string{"Inner_example"} // []string | (optional) descriptionEmpty := true // bool | (optional) descriptionIc := []string{"Inner_example"} // []string | (optional) @@ -27485,6 +28249,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -27500,20 +28266,54 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + maxWeight := []int32{int32(123)} // []int32 | (optional) + maxWeightEmpty := true // bool | (optional) + maxWeightGt := []int32{int32(123)} // []int32 | (optional) + maxWeightGte := []int32{int32(123)} // []int32 | (optional) + maxWeightLt := []int32{int32(123)} // []int32 | (optional) + maxWeightLte := []int32{int32(123)} // []int32 | (optional) + maxWeightN := []int32{int32(123)} // []int32 | (optional) + model := []string{"Inner_example"} // []string | (optional) + modelEmpty := true // bool | (optional) + modelIc := []string{"Inner_example"} // []string | (optional) + modelIe := []string{"Inner_example"} // []string | (optional) + modelIew := []string{"Inner_example"} // []string | (optional) + modelIsw := []string{"Inner_example"} // []string | (optional) + modelN := []string{"Inner_example"} // []string | (optional) + modelNic := []string{"Inner_example"} // []string | (optional) + modelNie := []string{"Inner_example"} // []string | (optional) + modelNiew := []string{"Inner_example"} // []string | (optional) + modelNisw := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) + mountingDepth := []int32{int32(123)} // []int32 | (optional) + mountingDepthEmpty := true // bool | (optional) + mountingDepthGt := []int32{int32(123)} // []int32 | (optional) + mountingDepthGte := []int32{int32(123)} // []int32 | (optional) + mountingDepthLt := []int32{int32(123)} // []int32 | (optional) + mountingDepthLte := []int32{int32(123)} // []int32 | (optional) + mountingDepthN := []int32{int32(123)} // []int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + outerDepth := []int32{int32(123)} // []int32 | (optional) + outerDepthEmpty := true // bool | (optional) + outerDepthGt := []int32{int32(123)} // []int32 | (optional) + outerDepthGte := []int32{int32(123)} // []int32 | (optional) + outerDepthLt := []int32{int32(123)} // []int32 | (optional) + outerDepthLte := []int32{int32(123)} // []int32 | (optional) + outerDepthN := []int32{int32(123)} // []int32 | (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnitN := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerWidth := []int32{int32(123)} // []int32 | (optional) + outerWidthEmpty := true // bool | (optional) + outerWidthGt := []int32{int32(123)} // []int32 | (optional) + outerWidthGte := []int32{int32(123)} // []int32 | (optional) + outerWidthLt := []int32{int32(123)} // []int32 | (optional) + outerWidthLte := []int32{int32(123)} // []int32 | (optional) + outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) @@ -27526,19 +28326,44 @@ func main() { slugNie := []string{"Inner_example"} // []string | (optional) slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) + startingUnit := []int32{int32(123)} // []int32 | (optional) + startingUnitEmpty := true // bool | (optional) + startingUnitGt := []int32{int32(123)} // []int32 | (optional) + startingUnitGte := []int32{int32(123)} // []int32 | (optional) + startingUnitLt := []int32{int32(123)} // []int32 | (optional) + startingUnitLte := []int32{int32(123)} // []int32 | (optional) + startingUnitN := []int32{int32(123)} // []int32 | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) + uHeight := []int32{int32(123)} // []int32 | (optional) + uHeightEmpty := true // bool | (optional) + uHeightGt := []int32{int32(123)} // []int32 | (optional) + uHeightGte := []int32{int32(123)} // []int32 | (optional) + uHeightLt := []int32{int32(123)} // []int32 | (optional) + uHeightLte := []int32{int32(123)} // []int32 | (optional) + uHeightN := []int32{int32(123)} // []int32 | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + weight := []float64{float64(123)} // []float64 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []float64{float64(123)} // []float64 | (optional) + weightGte := []float64{float64(123)} // []float64 | (optional) + weightLt := []float64{float64(123)} // []float64 | (optional) + weightLte := []float64{float64(123)} // []float64 | (optional) + weightN := []float64{float64(123)} // []float64 | (optional) + weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesList`: PaginatedRackRoleList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) + // response from `DcimRackTypesList`: PaginatedRackTypeList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesList`: %v\n", resp) } ``` @@ -27548,22 +28373,11 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **color** | **[]string** | | - **colorEmpty** | **bool** | | - **colorIc** | **[]string** | | - **colorIe** | **[]string** | | - **colorIew** | **[]string** | | - **colorIsw** | **[]string** | | - **colorN** | **[]string** | | - **colorNic** | **[]string** | | - **colorNie** | **[]string** | | - **colorNiew** | **[]string** | | - **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -27572,6 +28386,7 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | + **descUnits** | **bool** | | **description** | **[]string** | | **descriptionEmpty** | **bool** | | **descriptionIc** | **[]string** | | @@ -27583,6 +28398,8 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -27598,20 +28415,54 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **maxWeight** | **[]int32** | | + **maxWeightEmpty** | **bool** | | + **maxWeightGt** | **[]int32** | | + **maxWeightGte** | **[]int32** | | + **maxWeightLt** | **[]int32** | | + **maxWeightLte** | **[]int32** | | + **maxWeightN** | **[]int32** | | + **model** | **[]string** | | + **modelEmpty** | **bool** | | + **modelIc** | **[]string** | | + **modelIe** | **[]string** | | + **modelIew** | **[]string** | | + **modelIsw** | **[]string** | | + **modelN** | **[]string** | | + **modelNic** | **[]string** | | + **modelNie** | **[]string** | | + **modelNiew** | **[]string** | | + **modelNisw** | **[]string** | | **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | + **mountingDepth** | **[]int32** | | + **mountingDepthEmpty** | **bool** | | + **mountingDepthGt** | **[]int32** | | + **mountingDepthGte** | **[]int32** | | + **mountingDepthLt** | **[]int32** | | + **mountingDepthLte** | **[]int32** | | + **mountingDepthN** | **[]int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **outerDepth** | **[]int32** | | + **outerDepthEmpty** | **bool** | | + **outerDepthGt** | **[]int32** | | + **outerDepthGte** | **[]int32** | | + **outerDepthLt** | **[]int32** | | + **outerDepthLte** | **[]int32** | | + **outerDepthN** | **[]int32** | | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnitN** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerWidth** | **[]int32** | | + **outerWidthEmpty** | **bool** | | + **outerWidthGt** | **[]int32** | | + **outerWidthGte** | **[]int32** | | + **outerWidthLt** | **[]int32** | | + **outerWidthLte** | **[]int32** | | + **outerWidthN** | **[]int32** | | **q** | **string** | Search | **slug** | **[]string** | | **slugEmpty** | **bool** | | @@ -27624,13 +28475,38 @@ Name | Type | Description | Notes **slugNie** | **[]string** | | **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | + **startingUnit** | **[]int32** | | + **startingUnitEmpty** | **bool** | | + **startingUnitGt** | **[]int32** | | + **startingUnitGte** | **[]int32** | | + **startingUnitLt** | **[]int32** | | + **startingUnitLte** | **[]int32** | | + **startingUnitN** | **[]int32** | | **tag** | **[]string** | | **tagN** | **[]string** | | + **uHeight** | **[]int32** | | + **uHeightEmpty** | **bool** | | + **uHeightGt** | **[]int32** | | + **uHeightGte** | **[]int32** | | + **uHeightLt** | **[]int32** | | + **uHeightLte** | **[]int32** | | + **uHeightN** | **[]int32** | | **updatedByRequest** | **string** | | + **weight** | **[]float64** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]float64** | | + **weightGte** | **[]float64** | | + **weightLt** | **[]float64** | | + **weightLte** | **[]float64** | | + **weightN** | **[]float64** | | + **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **width** | **[]int32** | Rail-to-rail width | + **widthN** | **[]int32** | Rail-to-rail width | ### Return type -[**PaginatedRackRoleList**](PaginatedRackRoleList.md) +[**PaginatedRackTypeList**](PaginatedRackTypeList.md) ### Authorization @@ -27646,9 +28522,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesPartialUpdate +## DcimRackTypesPartialUpdate -> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() +> RackType DcimRackTypesPartialUpdate(ctx, id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() @@ -27667,18 +28543,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack type. + patchedWritableRackTypeRequest := *openapiclient.NewPatchedWritableRackTypeRequest() // PatchedWritableRackTypeRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesPartialUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) + // response from `DcimRackTypesPartialUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesPartialUpdate`: %v\n", resp) } ``` @@ -27688,21 +28564,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | + **patchedWritableRackTypeRequest** | [**PatchedWritableRackTypeRequest**](PatchedWritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27718,9 +28594,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesRetrieve +## DcimRackTypesRetrieve -> RackRole DcimRackRolesRetrieve(ctx, id).Execute() +> RackType DcimRackTypesRetrieve(ctx, id).Execute() @@ -27739,17 +28615,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesRetrieve`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) + // response from `DcimRackTypesRetrieve`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesRetrieve`: %v\n", resp) } ``` @@ -27759,11 +28635,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27772,7 +28648,7 @@ Name | Type | Description | Notes ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27788,9 +28664,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesUpdate +## DcimRackTypesUpdate -> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() +> RackType DcimRackTypesUpdate(ctx, id).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -27809,18 +28685,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + id := int32(56) // int32 | A unique integer value identifying this rack type. + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) + // response from `DcimRackTypesUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesUpdate`: %v\n", resp) } ``` @@ -27830,21 +28706,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackType**](RackType.md) ### Authorization @@ -27881,7 +28757,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -27945,7 +28821,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28011,7 +28887,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28077,7 +28953,7 @@ import ( ) func main() { - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28286,7 +29162,7 @@ Name | Type | Description | Notes ## DcimRacksList -> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() +> PaginatedRackList DcimRacksList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() @@ -28306,6 +29182,8 @@ import ( ) func main() { + airflow := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) + airflowN := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) assetTag := []string{"Inner_example"} // []string | (optional) assetTagEmpty := true // bool | (optional) assetTagIc := []string{"Inner_example"} // []string | (optional) @@ -28319,8 +29197,8 @@ func main() { assetTagNisw := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -28354,6 +29232,8 @@ func main() { facilityIdNie := []string{"Inner_example"} // []string | (optional) facilityIdNiew := []string{"Inner_example"} // []string | (optional) facilityIdNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -28369,10 +29249,14 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) maxWeight := []int32{int32(123)} // []int32 | (optional) maxWeightEmpty := true // bool | (optional) maxWeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28408,8 +29292,8 @@ func main() { outerDepthLt := []int32{int32(123)} // []int32 | (optional) outerDepthLte := []int32{int32(123)} // []int32 | (optional) outerDepthN := []int32{int32(123)} // []int32 | (optional) - outerUnit := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerUnitN := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnitN := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) outerWidth := []int32{int32(123)} // []int32 | (optional) outerWidthEmpty := true // bool | (optional) outerWidthGt := []int32{int32(123)} // []int32 | (optional) @@ -28418,10 +29302,14 @@ func main() { outerWidthLte := []int32{int32(123)} // []int32 | (optional) outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + rackType := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeN := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeId := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + rackTypeIdN := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -28439,10 +29327,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) startingUnit := []int32{int32(123)} // []int32 | (optional) @@ -28458,14 +29346,12 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) uHeight := []int32{int32(123)} // []int32 | (optional) uHeightEmpty := true // bool | (optional) uHeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28488,7 +29374,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -28509,6 +29395,8 @@ Other parameters are passed through a pointer to a apiDcimRacksListRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | + **airflowN** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -28522,8 +29410,8 @@ Name | Type | Description | Notes **assetTagNisw** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -28557,6 +29445,8 @@ Name | Type | Description | Notes **facilityIdNie** | **[]string** | | **facilityIdNiew** | **[]string** | | **facilityIdNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -28572,10 +29462,14 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **maxWeight** | **[]int32** | | **maxWeightEmpty** | **bool** | | **maxWeightGt** | **[]int32** | | @@ -28611,8 +29505,8 @@ Name | Type | Description | Notes **outerDepthLt** | **[]int32** | | **outerDepthLte** | **[]int32** | | **outerDepthN** | **[]int32** | | - **outerUnit** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerUnitN** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnitN** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | **outerWidth** | **[]int32** | | **outerWidthEmpty** | **bool** | | **outerWidthGt** | **[]int32** | | @@ -28621,10 +29515,14 @@ Name | Type | Description | Notes **outerWidthLte** | **[]int32** | | **outerWidthN** | **[]int32** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **rackType** | **[]string** | Rack type (slug) | + **rackTypeN** | **[]string** | Rack type (slug) | + **rackTypeId** | **[]int32** | Rack type (ID) | + **rackTypeIdN** | **[]int32** | Rack type (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -28642,10 +29540,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **startingUnit** | **[]int32** | | @@ -28661,14 +29559,12 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | - **type_** | **[]string** | | - **typeN** | **[]string** | | **uHeight** | **[]int32** | | **uHeightEmpty** | **bool** | | **uHeightGt** | **[]int32** | | @@ -28871,7 +29767,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rack. - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28942,7 +29838,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29006,7 +29902,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29072,7 +29968,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29253,7 +30149,7 @@ Name | Type | Description | Notes ## DcimRearPortTemplatesList -> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -29305,8 +30201,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -29336,8 +30230,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -29365,7 +30257,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -29418,8 +30310,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -29449,8 +30339,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -29729,7 +30617,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29793,7 +30681,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29859,7 +30747,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29925,7 +30813,7 @@ import ( ) func main() { - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30040,7 +30928,7 @@ Name | Type | Description | Notes ## DcimRearPortsList -> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -30099,6 +30987,12 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -30163,20 +31057,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -30191,7 +31081,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -30251,6 +31141,12 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -30315,20 +31211,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -30593,7 +31485,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rear port. - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30995,14 +31887,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Region (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31096,14 +31988,14 @@ Other parameters are passed through a pointer to a apiDcimRegionsListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Region (slug) | - **ancestorN** | **[]int32** | Region (slug) | - **ancestorId** | **[]int32** | Region (ID) | - **ancestorIdN** | **[]int32** | Region (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -31758,14 +32650,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31859,14 +32751,14 @@ Other parameters are passed through a pointer to a apiDcimSiteGroupsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Site group (slug) | - **ancestorN** | **[]int32** | Site group (slug) | - **ancestorId** | **[]int32** | Site group (ID) | - **ancestorIdN** | **[]int32** | Site group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32527,8 +33419,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -32561,10 +33453,10 @@ func main() { facilityNie := []string{"Inner_example"} // []string | (optional) facilityNiew := []string{"Inner_example"} // []string | (optional) facilityNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -32609,10 +33501,10 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -32630,10 +33522,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) timeZone := []string{"Inner_example"} // []string | (optional) @@ -32677,8 +33569,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | AS (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32711,10 +33603,10 @@ Name | Type | Description | Notes **facilityNie** | **[]string** | | **facilityNiew** | **[]string** | | **facilityNisw** | **[]string** | | - **group** | **[]int32** | Group (slug) | - **groupN** | **[]int32** | Group (slug) | - **groupId** | **[]int32** | Group (ID) | - **groupIdN** | **[]int32** | Group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -32759,10 +33651,10 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -32780,10 +33672,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **timeZone** | **[]string** | | @@ -33453,16 +34345,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -33567,16 +34459,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -33840,7 +34732,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33904,7 +34796,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33970,7 +34862,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34036,7 +34928,7 @@ import ( ) func main() { - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34244,10 +35136,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -34348,10 +35240,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -34538,7 +35430,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual device context. - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/DcimModuleTypesListAirflowParameter.md b/docs/DcimModuleTypesListAirflowParameter.md new file mode 100644 index 000000000..25d66316c --- /dev/null +++ b/docs/DcimModuleTypesListAirflowParameter.md @@ -0,0 +1,21 @@ +# DcimModuleTypesListAirflowParameter + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `PASSIVE` (value: `"passive"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + + +[[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/docs/DcimRackTypesListOuterUnitParameter.md b/docs/DcimRackTypesListOuterUnitParameter.md new file mode 100644 index 000000000..3807d0a4c --- /dev/null +++ b/docs/DcimRackTypesListOuterUnitParameter.md @@ -0,0 +1,13 @@ +# DcimRackTypesListOuterUnitParameter + +## Enum + + +* `IN` (value: `"in"`) + +* `MM` (value: `"mm"`) + + +[[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/docs/DcimRacksListAirflowParameter.md b/docs/DcimRacksListAirflowParameter.md new file mode 100644 index 000000000..f063ab875 --- /dev/null +++ b/docs/DcimRacksListAirflowParameter.md @@ -0,0 +1,13 @@ +# DcimRacksListAirflowParameter + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + + +[[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/docs/Device.md b/docs/Device.md index c83083a9c..34c0a81b8 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **NullableString** | | -**DeviceType** | Pointer to [**DeviceType**](DeviceType.md) | | [optional] -**Role** | Pointer to [**DeviceRole**](DeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceType**](BriefDeviceType.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**Site**](Site.md) | | [optional] -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | Pointer to [**BriefSite**](BriefSite.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -24,17 +25,17 @@ Name | Type | Description | Notes **ParentDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -110,6 +111,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Device) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Device) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Device) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Device) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Device) GetDisplay() string` @@ -162,20 +188,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *Device) GetDeviceType() DeviceType` +`func (o *Device) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *Device) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *Device) SetDeviceType(v DeviceType)` +`func (o *Device) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -187,20 +213,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *Device) GetRole() DeviceRole` +`func (o *Device) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Device) GetRoleOk() (*DeviceRole, bool)` +`func (o *Device) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Device) SetRole(v DeviceRole)` +`func (o *Device) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. @@ -212,20 +238,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *Device) GetTenant() Tenant` +`func (o *Device) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Device) GetTenantOk() (*Tenant, bool)` +`func (o *Device) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Device) SetTenant(v Tenant)` +`func (o *Device) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -247,20 +273,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *Device) GetPlatform() Platform` +`func (o *Device) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *Device) GetPlatformOk() (*Platform, bool)` +`func (o *Device) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *Device) SetPlatform(v Platform)` +`func (o *Device) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -342,20 +368,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *Device) GetSite() Site` +`func (o *Device) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Device) GetSiteOk() (*Site, bool)` +`func (o *Device) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Device) SetSite(v Site)` +`func (o *Device) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -367,20 +393,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *Device) GetLocation() Location` +`func (o *Device) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *Device) GetLocationOk() (*Location, bool)` +`func (o *Device) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *Device) SetLocation(v Location)` +`func (o *Device) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -402,20 +428,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *Device) GetRack() Rack` +`func (o *Device) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *Device) GetRackOk() (*Rack, bool)` +`func (o *Device) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *Device) SetRack(v Rack)` +`func (o *Device) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -652,20 +678,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *Device) GetPrimaryIp() IPAddress` +`func (o *Device) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *Device) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *Device) SetPrimaryIp(v IPAddress)` +`func (o *Device) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -687,20 +713,20 @@ HasPrimaryIp returns a boolean if a field has been set. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *Device) GetPrimaryIp4() IPAddress` +`func (o *Device) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *Device) SetPrimaryIp4(v IPAddress)` +`func (o *Device) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -722,20 +748,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *Device) GetPrimaryIp6() IPAddress` +`func (o *Device) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *Device) SetPrimaryIp6(v IPAddress)` +`func (o *Device) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -757,20 +783,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *Device) GetOobIp() IPAddress` +`func (o *Device) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *Device) GetOobIpOk() (*IPAddress, bool)` +`func (o *Device) GetOobIpOk() (*BriefIPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *Device) SetOobIp(v IPAddress)` +`func (o *Device) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -792,20 +818,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *Device) GetCluster() Cluster` +`func (o *Device) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *Device) GetClusterOk() (*Cluster, bool)` +`func (o *Device) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *Device) SetCluster(v Cluster)` +`func (o *Device) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -827,20 +853,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *Device) GetVirtualChassis() VirtualChassis` +`func (o *Device) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *Device) SetVirtualChassis(v VirtualChassis)` +`func (o *Device) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -977,20 +1003,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *Device) GetConfigTemplate() ConfigTemplate` +`func (o *Device) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *Device) SetConfigTemplate(v ConfigTemplate)` +`func (o *Device) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceBay.md b/docs/DeviceBay.md index e19772ad5..f8a948546 100644 --- a/docs/DeviceBay.md +++ b/docs/DeviceBay.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDevice**](Device.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewDeviceBay -`func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` +`func NewDeviceBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` NewDeviceBay instantiates a new DeviceBay object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceBay) GetDisplay() string` @@ -98,20 +119,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *DeviceBay) GetDevice() Device` +`func (o *DeviceBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBay) GetDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBay) SetDevice(v Device)` +`func (o *DeviceBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -188,20 +209,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBay) GetInstalledDevice() Device` +`func (o *DeviceBay) GetInstalledDevice() BriefDevice` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBay) SetInstalledDevice(v Device)` +`func (o *DeviceBay) SetInstalledDevice(v BriefDevice)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayRequest.md b/docs/DeviceBayRequest.md index 9229313f3..78e056c6d 100644 --- a/docs/DeviceBayRequest.md +++ b/docs/DeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewDeviceBayRequest -`func NewDeviceBayRequest(device DeviceRequest, name string, ) *DeviceBayRequest` +`func NewDeviceBayRequest(device BriefDeviceRequest, name string, ) *DeviceBayRequest` NewDeviceBayRequest instantiates a new DeviceBayRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *DeviceBayRequest) GetDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -123,20 +123,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md index ffb6fdad4..a938074ce 100644 --- a/docs/DeviceBayTemplate.md +++ b/docs/DeviceBayTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplate -`func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` +`func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` NewDeviceBayTemplate instantiates a new DeviceBayTemplate object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *DeviceBayTemplate) GetDeviceType() DeviceType` +`func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplate) SetDeviceType(v DeviceType)` +`func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md index 48b82be6a..3dcbe7646 100644 --- a/docs/DeviceBayTemplateRequest.md +++ b/docs/DeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplateRequest -`func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` +`func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` NewDeviceBayTemplateRequest instantiates a new DeviceBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceRole.md b/docs/DeviceRole.md index 99ecb82bc..1ab6beaa3 100644 --- a/docs/DeviceRole.md +++ b/docs/DeviceRole.md @@ -6,10 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Color** | Pointer to **string** | | [optional] +**VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] @@ -17,7 +25,7 @@ Name | Type | Description | Notes ### NewDeviceRole -`func NewDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -72,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceRole) GetDisplay() string` @@ -132,6 +160,91 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetColor + +`func (o *DeviceRole) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *DeviceRole) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *DeviceRole) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *DeviceRole) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetVmRole + +`func (o *DeviceRole) GetVmRole() bool` + +GetVmRole returns the VmRole field if non-nil, zero value otherwise. + +### GetVmRoleOk + +`func (o *DeviceRole) GetVmRoleOk() (*bool, bool)` + +GetVmRoleOk returns a tuple with the VmRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmRole + +`func (o *DeviceRole) SetVmRole(v bool)` + +SetVmRole sets VmRole field to given value. + +### HasVmRole + +`func (o *DeviceRole) HasVmRole() bool` + +HasVmRole returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *DeviceRole) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *DeviceRole) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *DeviceRole) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *DeviceRole) GetDescription() string` @@ -157,6 +270,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *DeviceRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceRole) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceRole) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeviceRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DeviceRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DeviceRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DeviceRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceRole) GetDeviceCount() int64` diff --git a/docs/DeviceRoleRequest.md b/docs/DeviceRoleRequest.md index 63022acb9..05cd2213c 100644 --- a/docs/DeviceRoleRequest.md +++ b/docs/DeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -124,20 +124,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceType.md b/docs/DeviceType.md index 9d02d28e7..9c365a837 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -6,18 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeSubdeviceRole**](DeviceTypeSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeAirflow**](DeviceTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**FrontImage** | Pointer to **NullableString** | | [optional] +**RearImage** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**ConsolePortTemplateCount** | **int32** | | [readonly] +**ConsoleServerPortTemplateCount** | **int32** | | [readonly] +**PowerPortTemplateCount** | **int32** | | [readonly] +**PowerOutletTemplateCount** | **int32** | | [readonly] +**InterfaceTemplateCount** | **int32** | | [readonly] +**FrontPortTemplateCount** | **int32** | | [readonly] +**RearPortTemplateCount** | **int32** | | [readonly] +**DeviceBayTemplateCount** | **int32** | | [readonly] +**ModuleBayTemplateCount** | **int32** | | [readonly] +**InventoryItemTemplateCount** | **int32** | | [readonly] ## Methods ### NewDeviceType -`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, ) *DeviceType` +`func NewDeviceType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32, ) *DeviceType` NewDeviceType instantiates a new DeviceType object This constructor will assign default values to properties that have it defined, @@ -72,6 +99,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceType) GetDisplay() string` @@ -94,24 +141,59 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *DeviceType) GetManufacturer() Manufacturer` +`func (o *DeviceType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceType) SetManufacturer(v Manufacturer)` +`func (o *DeviceType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceType) GetDefaultPlatform() BriefPlatform` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceType) SetDefaultPlatform(v BriefPlatform)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceType) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceType) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceType) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceType) GetModel() string` @@ -152,6 +234,316 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceType) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceType) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceType) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceType) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceType) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceType) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceType) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceType) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceType) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceType) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceType) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceType) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceType) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceType) GetAirflow() DeviceTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceType) SetAirflow(v DeviceTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceType) GetFrontImage() string` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceType) GetFrontImageOk() (*string, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceType) SetFrontImage(v string)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceType) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### SetFrontImageNil + +`func (o *DeviceType) SetFrontImageNil(b bool)` + + SetFrontImageNil sets the value for FrontImage to be an explicit nil + +### UnsetFrontImage +`func (o *DeviceType) UnsetFrontImage()` + +UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +### GetRearImage + +`func (o *DeviceType) GetRearImage() string` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceType) GetRearImageOk() (*string, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceType) SetRearImage(v string)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceType) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + +### SetRearImageNil + +`func (o *DeviceType) SetRearImageNil(b bool)` + + SetRearImageNil sets the value for RearImage to be an explicit nil + +### UnsetRearImage +`func (o *DeviceType) UnsetRearImage()` + +UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil ### GetDescription `func (o *DeviceType) GetDescription() string` @@ -177,6 +569,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeviceType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DeviceType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DeviceType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DeviceType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceType) GetDeviceCount() int64` @@ -202,6 +729,206 @@ SetDeviceCount sets DeviceCount field to given value. HasDeviceCount returns a boolean if a field has been set. +### GetConsolePortTemplateCount + +`func (o *DeviceType) GetConsolePortTemplateCount() int32` + +GetConsolePortTemplateCount returns the ConsolePortTemplateCount field if non-nil, zero value otherwise. + +### GetConsolePortTemplateCountOk + +`func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool)` + +GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsolePortTemplateCount + +`func (o *DeviceType) SetConsolePortTemplateCount(v int32)` + +SetConsolePortTemplateCount sets ConsolePortTemplateCount field to given value. + + +### GetConsoleServerPortTemplateCount + +`func (o *DeviceType) GetConsoleServerPortTemplateCount() int32` + +GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field if non-nil, zero value otherwise. + +### GetConsoleServerPortTemplateCountOk + +`func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool)` + +GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleServerPortTemplateCount + +`func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32)` + +SetConsoleServerPortTemplateCount sets ConsoleServerPortTemplateCount field to given value. + + +### GetPowerPortTemplateCount + +`func (o *DeviceType) GetPowerPortTemplateCount() int32` + +GetPowerPortTemplateCount returns the PowerPortTemplateCount field if non-nil, zero value otherwise. + +### GetPowerPortTemplateCountOk + +`func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool)` + +GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPortTemplateCount + +`func (o *DeviceType) SetPowerPortTemplateCount(v int32)` + +SetPowerPortTemplateCount sets PowerPortTemplateCount field to given value. + + +### GetPowerOutletTemplateCount + +`func (o *DeviceType) GetPowerOutletTemplateCount() int32` + +GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field if non-nil, zero value otherwise. + +### GetPowerOutletTemplateCountOk + +`func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool)` + +GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerOutletTemplateCount + +`func (o *DeviceType) SetPowerOutletTemplateCount(v int32)` + +SetPowerOutletTemplateCount sets PowerOutletTemplateCount field to given value. + + +### GetInterfaceTemplateCount + +`func (o *DeviceType) GetInterfaceTemplateCount() int32` + +GetInterfaceTemplateCount returns the InterfaceTemplateCount field if non-nil, zero value otherwise. + +### GetInterfaceTemplateCountOk + +`func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool)` + +GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceTemplateCount + +`func (o *DeviceType) SetInterfaceTemplateCount(v int32)` + +SetInterfaceTemplateCount sets InterfaceTemplateCount field to given value. + + +### GetFrontPortTemplateCount + +`func (o *DeviceType) GetFrontPortTemplateCount() int32` + +GetFrontPortTemplateCount returns the FrontPortTemplateCount field if non-nil, zero value otherwise. + +### GetFrontPortTemplateCountOk + +`func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool)` + +GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontPortTemplateCount + +`func (o *DeviceType) SetFrontPortTemplateCount(v int32)` + +SetFrontPortTemplateCount sets FrontPortTemplateCount field to given value. + + +### GetRearPortTemplateCount + +`func (o *DeviceType) GetRearPortTemplateCount() int32` + +GetRearPortTemplateCount returns the RearPortTemplateCount field if non-nil, zero value otherwise. + +### GetRearPortTemplateCountOk + +`func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool)` + +GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearPortTemplateCount + +`func (o *DeviceType) SetRearPortTemplateCount(v int32)` + +SetRearPortTemplateCount sets RearPortTemplateCount field to given value. + + +### GetDeviceBayTemplateCount + +`func (o *DeviceType) GetDeviceBayTemplateCount() int32` + +GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field if non-nil, zero value otherwise. + +### GetDeviceBayTemplateCountOk + +`func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool)` + +GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBayTemplateCount + +`func (o *DeviceType) SetDeviceBayTemplateCount(v int32)` + +SetDeviceBayTemplateCount sets DeviceBayTemplateCount field to given value. + + +### GetModuleBayTemplateCount + +`func (o *DeviceType) GetModuleBayTemplateCount() int32` + +GetModuleBayTemplateCount returns the ModuleBayTemplateCount field if non-nil, zero value otherwise. + +### GetModuleBayTemplateCountOk + +`func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool)` + +GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBayTemplateCount + +`func (o *DeviceType) SetModuleBayTemplateCount(v int32)` + +SetModuleBayTemplateCount sets ModuleBayTemplateCount field to given value. + + +### GetInventoryItemTemplateCount + +`func (o *DeviceType) GetInventoryItemTemplateCount() int32` + +GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field if non-nil, zero value otherwise. + +### GetInventoryItemTemplateCountOk + +`func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool)` + +GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryItemTemplateCount + +`func (o *DeviceType) SetInventoryItemTemplateCount(v int32)` + +SetInventoryItemTemplateCount sets InventoryItemTemplateCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceTypeAirflow.md b/docs/DeviceTypeAirflow.md new file mode 100644 index 000000000..fab620ce5 --- /dev/null +++ b/docs/DeviceTypeAirflow.md @@ -0,0 +1,82 @@ +# DeviceTypeAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] +**Label** | Pointer to [**DeviceAirflowLabel**](DeviceAirflowLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeAirflow + +`func NewDeviceTypeAirflow() *DeviceTypeAirflow` + +NewDeviceTypeAirflow instantiates a new DeviceTypeAirflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceTypeAirflowWithDefaults + +`func NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow` + +NewDeviceTypeAirflowWithDefaults instantiates a new DeviceTypeAirflow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeviceTypeAirflow) SetValue(v DeviceAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeAirflow) HasLabel() bool` + +HasLabel 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/docs/DeviceTypeRequest.md b/docs/DeviceTypeRequest.md index a5e6c3add..8f7d9822f 100644 --- a/docs/DeviceTypeRequest.md +++ b/docs/DeviceTypeRequest.md @@ -4,16 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeRequestSubdeviceRole**](DeviceTypeRequestSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**FrontImage** | Pointer to ***os.File** | | [optional] +**RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDeviceTypeRequest -`func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` +`func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` NewDeviceTypeRequest instantiates a new DeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -30,24 +44,59 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceTypeRequest) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceTypeRequest) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceTypeRequest) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceTypeRequest) GetModel() string` @@ -88,6 +137,296 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceTypeRequest) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceTypeRequest) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceTypeRequest) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceTypeRequest) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceTypeRequest) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceTypeRequest) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceTypeRequest) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceTypeRequest) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceTypeRequest) GetFrontImage() *os.File` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceTypeRequest) SetFrontImage(v *os.File)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceTypeRequest) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### GetRearImage + +`func (o *DeviceTypeRequest) GetRearImage() *os.File` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceTypeRequest) SetRearImage(v *os.File)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceTypeRequest) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + ### GetDescription `func (o *DeviceTypeRequest) GetDescription() string` @@ -113,6 +452,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/DeviceTypeRequestAirflow.md b/docs/DeviceTypeRequestAirflow.md new file mode 100644 index 000000000..db29e38f3 --- /dev/null +++ b/docs/DeviceTypeRequestAirflow.md @@ -0,0 +1,25 @@ +# DeviceTypeRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `MIXED` (value: `"mixed"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeRequestSubdeviceRole.md b/docs/DeviceTypeRequestSubdeviceRole.md new file mode 100644 index 000000000..b25ddf765 --- /dev/null +++ b/docs/DeviceTypeRequestSubdeviceRole.md @@ -0,0 +1,15 @@ +# DeviceTypeRequestSubdeviceRole + +## Enum + + +* `PARENT` (value: `"parent"`) + +* `CHILD` (value: `"child"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeRequestWeightUnit.md b/docs/DeviceTypeRequestWeightUnit.md new file mode 100644 index 000000000..ea9ac170d --- /dev/null +++ b/docs/DeviceTypeRequestWeightUnit.md @@ -0,0 +1,19 @@ +# DeviceTypeRequestWeightUnit + +## Enum + + +* `KG` (value: `"kg"`) + +* `G` (value: `"g"`) + +* `LB` (value: `"lb"`) + +* `OZ` (value: `"oz"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeSubdeviceRole.md b/docs/DeviceTypeSubdeviceRole.md new file mode 100644 index 000000000..f1209e70a --- /dev/null +++ b/docs/DeviceTypeSubdeviceRole.md @@ -0,0 +1,82 @@ +# DeviceTypeSubdeviceRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceTypeSubdeviceRoleValue**](DeviceTypeSubdeviceRoleValue.md) | | [optional] +**Label** | Pointer to [**DeviceTypeSubdeviceRoleLabel**](DeviceTypeSubdeviceRoleLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeSubdeviceRole + +`func NewDeviceTypeSubdeviceRole() *DeviceTypeSubdeviceRole` + +NewDeviceTypeSubdeviceRole instantiates a new DeviceTypeSubdeviceRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceTypeSubdeviceRoleWithDefaults + +`func NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole` + +NewDeviceTypeSubdeviceRoleWithDefaults instantiates a new DeviceTypeSubdeviceRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeSubdeviceRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeSubdeviceRole) HasLabel() bool` + +HasLabel 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/docs/DeviceTypeSubdeviceRoleLabel.md b/docs/DeviceTypeSubdeviceRoleLabel.md new file mode 100644 index 000000000..0df3e3f7f --- /dev/null +++ b/docs/DeviceTypeSubdeviceRoleLabel.md @@ -0,0 +1,13 @@ +# DeviceTypeSubdeviceRoleLabel + +## Enum + + +* `PARENT` (value: `"Parent"`) + +* `CHILD` (value: `"Child"`) + + +[[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/docs/DeviceTypeSubdeviceRoleValue.md b/docs/DeviceTypeSubdeviceRoleValue.md new file mode 100644 index 000000000..21912d530 --- /dev/null +++ b/docs/DeviceTypeSubdeviceRoleValue.md @@ -0,0 +1,15 @@ +# DeviceTypeSubdeviceRoleValue + +## Enum + + +* `PARENT` (value: `"parent"`) + +* `CHILD` (value: `"child"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceTypeWeightUnit.md b/docs/DeviceTypeWeightUnit.md new file mode 100644 index 000000000..a4ff2942b --- /dev/null +++ b/docs/DeviceTypeWeightUnit.md @@ -0,0 +1,82 @@ +# DeviceTypeWeightUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**Label** | Pointer to [**DeviceTypeWeightUnitLabel**](DeviceTypeWeightUnitLabel.md) | | [optional] + +## Methods + +### NewDeviceTypeWeightUnit + +`func NewDeviceTypeWeightUnit() *DeviceTypeWeightUnit` + +NewDeviceTypeWeightUnit instantiates a new DeviceTypeWeightUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewDeviceTypeWeightUnitWithDefaults + +`func NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit` + +NewDeviceTypeWeightUnitWithDefaults instantiates a new DeviceTypeWeightUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *DeviceTypeWeightUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *DeviceTypeWeightUnit) HasLabel() bool` + +HasLabel 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/docs/DeviceTypeWeightUnitLabel.md b/docs/DeviceTypeWeightUnitLabel.md new file mode 100644 index 000000000..ccc9d2c7a --- /dev/null +++ b/docs/DeviceTypeWeightUnitLabel.md @@ -0,0 +1,17 @@ +# DeviceTypeWeightUnitLabel + +## Enum + + +* `KILOGRAMS` (value: `"Kilograms"`) + +* `GRAMS` (value: `"Grams"`) + +* `POUNDS` (value: `"Pounds"`) + +* `OUNCES` (value: `"Ounces"`) + + +[[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/docs/DeviceTypeWeightUnitValue.md b/docs/DeviceTypeWeightUnitValue.md new file mode 100644 index 000000000..4d8026e60 --- /dev/null +++ b/docs/DeviceTypeWeightUnitValue.md @@ -0,0 +1,19 @@ +# DeviceTypeWeightUnitValue + +## Enum + + +* `KG` (value: `"kg"`) + +* `G` (value: `"g"`) + +* `LB` (value: `"lb"`) + +* `OZ` (value: `"oz"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md index 570136c0d..f931fd5e5 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**Role** | [**BriefDeviceRole**](BriefDeviceRole.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -24,17 +25,17 @@ Name | Type | Description | Notes **ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **ConfigContext** | **interface{}** | | [readonly] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -56,7 +57,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` +`func NewDeviceWithConfigContext(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` NewDeviceWithConfigContext instantiates a new DeviceWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -111,6 +112,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *DeviceWithConfigContext) GetDisplay() string` @@ -168,60 +189,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContext) GetDeviceType() DeviceType` +`func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType)` +`func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContext) GetRole() DeviceRole` +`func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContext) SetRole(v DeviceRole)` +`func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContext) GetTenant() Tenant` +`func (o *DeviceWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContext) SetTenant(v Tenant)` +`func (o *DeviceWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -243,20 +264,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContext) GetPlatform() Platform` +`func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContext) SetPlatform(v Platform)` +`func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -338,40 +359,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContext) GetSite() Site` +`func (o *DeviceWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContext) SetSite(v Site)` +`func (o *DeviceWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContext) GetLocation() Location` +`func (o *DeviceWithConfigContext) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool)` +`func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContext) SetLocation(v Location)` +`func (o *DeviceWithConfigContext) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -393,20 +414,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContext) GetRack() Rack` +`func (o *DeviceWithConfigContext) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool)` +`func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContext) SetRack(v Rack)` +`func (o *DeviceWithConfigContext) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -638,20 +659,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -668,20 +689,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -703,20 +724,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -738,20 +759,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContext) GetOobIp() IPAddress` +`func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContext) SetOobIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -773,20 +794,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContext) GetCluster() Cluster` +`func (o *DeviceWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContext) SetCluster(v Cluster)` +`func (o *DeviceWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -808,20 +829,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis` +`func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis)` +`func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -963,20 +984,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md index 6d521edef..d32891dde 100644 --- a/docs/DeviceWithConfigContextRequest.md +++ b/docs/DeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFaceValue**](DeviceFaceValue.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContextRequest -`func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, ) *DeviceWithConfigContextRequest` +`func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, ) *DeviceWithConfigContextRequest` NewDeviceWithConfigContextRequest instantiates a new DeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -530,20 +530,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -565,20 +565,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -600,20 +600,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -635,20 +635,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -670,20 +670,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -825,20 +825,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/Event.md b/docs/Event.md new file mode 100644 index 000000000..7a5163f0b --- /dev/null +++ b/docs/Event.md @@ -0,0 +1,23 @@ +# Event + +## Enum + + +* `OBJECT_CREATED` (value: `"object_created"`) + +* `OBJECT_UPDATED` (value: `"object_updated"`) + +* `OBJECT_DELETED` (value: `"object_deleted"`) + +* `JOB_STARTED` (value: `"job_started"`) + +* `JOB_COMPLETED` (value: `"job_completed"`) + +* `JOB_FAILED` (value: `"job_failed"`) + +* `JOB_ERRORED` (value: `"job_errored"`) + + +[[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/docs/EventRule.md b/docs/EventRule.md index fa879bc56..dc71d933d 100644 --- a/docs/EventRule.md +++ b/docs/EventRule.md @@ -6,15 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | | **ActionObjectType** | **string** | | @@ -30,7 +27,7 @@ Name | Type | Description | Notes ### NewEventRule -`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` +`func NewEventRule(id int32, url string, displayUrl string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` NewEventRule instantiates a new EventRule object This constructor will assign default values to properties that have it defined, @@ -85,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *EventRule) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *EventRule) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *EventRule) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *EventRule) GetDisplay() string` @@ -145,131 +162,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRule) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRule) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRule) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRule) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRule) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRule) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRule) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRule) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRule) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRule) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRule) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRule) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRule) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRule) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRule) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRule) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRule) GetEnabled() bool` @@ -295,6 +187,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRule) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRule) GetConditions() interface{}` diff --git a/docs/EventRuleActionTypeLabel.md b/docs/EventRuleActionTypeLabel.md index 7c1a6f459..5c6ede174 100644 --- a/docs/EventRuleActionTypeLabel.md +++ b/docs/EventRuleActionTypeLabel.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"Script"`) +* `NOTIFICATION` (value: `"Notification"`) + [[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/docs/EventRuleActionTypeValue.md b/docs/EventRuleActionTypeValue.md index 73ad2faee..95b9781eb 100644 --- a/docs/EventRuleActionTypeValue.md +++ b/docs/EventRuleActionTypeValue.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"script"`) +* `NOTIFICATION` (value: `"notification"`) + [[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/docs/EventRuleEventTypesInner.md b/docs/EventRuleEventTypesInner.md new file mode 100644 index 000000000..88b16acda --- /dev/null +++ b/docs/EventRuleEventTypesInner.md @@ -0,0 +1,23 @@ +# EventRuleEventTypesInner + +## Enum + + +* `OBJECT_CREATED` (value: `"object_created"`) + +* `OBJECT_UPDATED` (value: `"object_updated"`) + +* `OBJECT_DELETED` (value: `"object_deleted"`) + +* `JOB_STARTED` (value: `"job_started"`) + +* `JOB_COMPLETED` (value: `"job_completed"`) + +* `JOB_FAILED` (value: `"job_failed"`) + +* `JOB_ERRORED` (value: `"job_errored"`) + + +[[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/docs/EventRuleRequest.md b/docs/EventRuleRequest.md index 68df12155..1d3cd3044 100644 --- a/docs/EventRuleRequest.md +++ b/docs/EventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewEventRuleRequest -`func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` +`func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` NewEventRuleRequest instantiates a new EventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRuleRequest) GetConditions() interface{}` diff --git a/docs/ExportTemplate.md b/docs/ExportTemplate.md index 0371ebe2e..27a90747a 100644 --- a/docs/ExportTemplate.md +++ b/docs/ExportTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -14,9 +15,9 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewExportTemplate -`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` +`func NewExportTemplate(id int32, url string, displayUrl string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` NewExportTemplate instantiates a new ExportTemplate object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ExportTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ExportTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ExportTemplate) GetDisplay() string` @@ -262,20 +283,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplate) GetDataSource() DataSource` +`func (o *ExportTemplate) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool)` +`func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplate) SetDataSource(v DataSource)` +`func (o *ExportTemplate) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -307,20 +328,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ExportTemplate) GetDataFile() DataFile` +`func (o *ExportTemplate) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool)` +`func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ExportTemplate) SetDataFile(v DataFile)` +`func (o *ExportTemplate) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ExportTemplateRequest.md b/docs/ExportTemplateRequest.md index 1a7beb1a2..392c93a2c 100644 --- a/docs/ExportTemplateRequest.md +++ b/docs/ExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -194,20 +194,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ExtrasAPI.md b/docs/ExtrasAPI.md index ed3040e29..e6b5d1af2 100644 --- a/docs/ExtrasAPI.md +++ b/docs/ExtrasAPI.md @@ -103,8 +103,24 @@ Method | HTTP request | Description [**ExtrasJournalEntriesPartialUpdate**](ExtrasAPI.md#ExtrasJournalEntriesPartialUpdate) | **Patch** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesRetrieve**](ExtrasAPI.md#ExtrasJournalEntriesRetrieve) | **Get** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesUpdate**](ExtrasAPI.md#ExtrasJournalEntriesUpdate) | **Put** /api/extras/journal-entries/{id}/ | -[**ExtrasObjectChangesList**](ExtrasAPI.md#ExtrasObjectChangesList) | **Get** /api/extras/object-changes/ | -[**ExtrasObjectChangesRetrieve**](ExtrasAPI.md#ExtrasObjectChangesRetrieve) | **Get** /api/extras/object-changes/{id}/ | +[**ExtrasNotificationGroupsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsBulkDestroy) | **Delete** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkPartialUpdate) | **Patch** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkUpdate) | **Put** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsCreate**](ExtrasAPI.md#ExtrasNotificationGroupsCreate) | **Post** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsDestroy) | **Delete** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsList**](ExtrasAPI.md#ExtrasNotificationGroupsList) | **Get** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsPartialUpdate) | **Patch** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsRetrieve**](ExtrasAPI.md#ExtrasNotificationGroupsRetrieve) | **Get** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsUpdate) | **Put** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationsBulkDestroy) | **Delete** /api/extras/notifications/ | +[**ExtrasNotificationsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkPartialUpdate) | **Patch** /api/extras/notifications/ | +[**ExtrasNotificationsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkUpdate) | **Put** /api/extras/notifications/ | +[**ExtrasNotificationsCreate**](ExtrasAPI.md#ExtrasNotificationsCreate) | **Post** /api/extras/notifications/ | +[**ExtrasNotificationsDestroy**](ExtrasAPI.md#ExtrasNotificationsDestroy) | **Delete** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsList**](ExtrasAPI.md#ExtrasNotificationsList) | **Get** /api/extras/notifications/ | +[**ExtrasNotificationsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsPartialUpdate) | **Patch** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsRetrieve**](ExtrasAPI.md#ExtrasNotificationsRetrieve) | **Get** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsUpdate**](ExtrasAPI.md#ExtrasNotificationsUpdate) | **Put** /api/extras/notifications/{id}/ | [**ExtrasObjectTypesList**](ExtrasAPI.md#ExtrasObjectTypesList) | **Get** /api/extras/object-types/ | [**ExtrasObjectTypesRetrieve**](ExtrasAPI.md#ExtrasObjectTypesRetrieve) | **Get** /api/extras/object-types/{id}/ | [**ExtrasSavedFiltersBulkDestroy**](ExtrasAPI.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | @@ -122,6 +138,15 @@ Method | HTTP request | Description [**ExtrasScriptsPartialUpdate**](ExtrasAPI.md#ExtrasScriptsPartialUpdate) | **Patch** /api/extras/scripts/{id}/ | [**ExtrasScriptsRetrieve**](ExtrasAPI.md#ExtrasScriptsRetrieve) | **Get** /api/extras/scripts/{id}/ | [**ExtrasScriptsUpdate**](ExtrasAPI.md#ExtrasScriptsUpdate) | **Put** /api/extras/scripts/{id}/ | +[**ExtrasSubscriptionsBulkDestroy**](ExtrasAPI.md#ExtrasSubscriptionsBulkDestroy) | **Delete** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkPartialUpdate) | **Patch** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkUpdate) | **Put** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsCreate**](ExtrasAPI.md#ExtrasSubscriptionsCreate) | **Post** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsDestroy**](ExtrasAPI.md#ExtrasSubscriptionsDestroy) | **Delete** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsList**](ExtrasAPI.md#ExtrasSubscriptionsList) | **Get** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsPartialUpdate) | **Patch** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsRetrieve**](ExtrasAPI.md#ExtrasSubscriptionsRetrieve) | **Get** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsUpdate**](ExtrasAPI.md#ExtrasSubscriptionsUpdate) | **Put** /api/extras/subscriptions/{id}/ | [**ExtrasTagsBulkDestroy**](ExtrasAPI.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ | [**ExtrasTagsBulkPartialUpdate**](ExtrasAPI.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ | [**ExtrasTagsBulkUpdate**](ExtrasAPI.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ | @@ -164,7 +189,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -228,7 +253,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -294,7 +319,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -360,7 +385,7 @@ import ( ) func main() { - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -764,7 +789,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this bookmark. - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1146,7 +1171,7 @@ Name | Type | Description | Notes ## ExtrasConfigContextsList -> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -1256,10 +1281,6 @@ func main() { regionN := []string{"Inner_example"} // []string | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (optional) regionIdN := []int32{int32(123)} // []int32 | Region (optional) - role := []string{"Inner_example"} // []string | Role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Role (optional) - roleIdN := []int32{int32(123)} // []int32 | Role (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional) @@ -1291,7 +1312,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1402,10 +1423,6 @@ Name | Type | Description | Notes **regionN** | **[]string** | Region (slug) | **regionId** | **[]int32** | Region | **regionIdN** | **[]int32** | Region | - **role** | **[]string** | Role (slug) | - **roleN** | **[]string** | Role (slug) | - **roleId** | **[]int32** | Role | - **roleIdN** | **[]int32** | Role | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | **siteGroup** | **[]string** | Site group (slug) | @@ -1760,7 +1777,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1824,7 +1841,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1890,7 +1907,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1956,7 +1973,7 @@ import ( ) func main() { - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2356,7 +2373,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -2500,7 +2517,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2572,7 +2589,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3741,7 +3758,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldsList -> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -3869,6 +3886,7 @@ func main() { uiEditableN := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) uiVisible := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) uiVisibleN := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) + unique := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) validationMaximum := []int32{int32(123)} // []int32 | (optional) validationMaximumEmpty := true // bool | (optional) @@ -3905,7 +3923,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4034,6 +4052,7 @@ Name | Type | Description | Notes **uiEditableN** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | **uiVisible** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | **uiVisibleN** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | + **unique** | **bool** | | **updatedByRequest** | **string** | | **validationMaximum** | **[]int32** | | **validationMaximumEmpty** | **bool** | | @@ -4652,8 +4671,8 @@ import ( ) func main() { - buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) - buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4769,8 +4788,8 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | - **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5368,7 +5387,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5432,7 +5451,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5498,7 +5517,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5564,7 +5583,7 @@ import ( ) func main() { - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5679,7 +5698,7 @@ Name | Type | Description | Notes ## ExtrasEventRulesList -> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -5730,6 +5749,7 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) + eventType := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5774,16 +5794,11 @@ func main() { q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - typeCreate := true // bool | (optional) - typeDelete := true // bool | (optional) - typeJobEnd := true // bool | (optional) - typeJobStart := true // bool | (optional) - typeUpdate := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5835,6 +5850,7 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **enabled** | **bool** | | + **eventType** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5879,11 +5895,6 @@ Name | Type | Description | Notes **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | - **typeCreate** | **bool** | | - **typeDelete** | **bool** | | - **typeJobEnd** | **bool** | | - **typeJobStart** | **bool** | | - **typeUpdate** | **bool** | | **updatedByRequest** | **string** | | ### Return type @@ -6068,7 +6079,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this event rule. - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7014,7 +7025,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7078,7 +7089,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7144,7 +7155,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7210,7 +7221,7 @@ import ( ) func main() { - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7680,7 +7691,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this image attachment. - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8423,9 +8434,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectChangesList +## ExtrasNotificationGroupsBulkDestroy -> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() +> ExtrasNotificationGroupsBulkDestroy(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8440,83 +8451,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - action := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - actionN := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - changedObjectId := []int32{int32(123)} // []int32 | (optional) - changedObjectIdEmpty := true // bool | (optional) - changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdN := []int32{int32(123)} // []int32 | (optional) - changedObjectType := "changedObjectType_example" // string | (optional) - changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) - changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) - changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - objectRepr := []string{"Inner_example"} // []string | (optional) - objectReprEmpty := true // bool | (optional) - objectReprIc := []string{"Inner_example"} // []string | (optional) - objectReprIe := []string{"Inner_example"} // []string | (optional) - objectReprIew := []string{"Inner_example"} // []string | (optional) - objectReprIsw := []string{"Inner_example"} // []string | (optional) - objectReprN := []string{"Inner_example"} // []string | (optional) - objectReprNic := []string{"Inner_example"} // []string | (optional) - objectReprNie := []string{"Inner_example"} // []string | (optional) - objectReprNiew := []string{"Inner_example"} // []string | (optional) - objectReprNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - relatedObjectId := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdEmpty := true // bool | (optional) - relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) - relatedObjectType := int32(56) // int32 | (optional) - relatedObjectTypeN := int32(56) // int32 | (optional) - requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - timeAfter := time.Now() // time.Time | (optional) - timeBefore := time.Now() // time.Time | (optional) - user := []string{"Inner_example"} // []string | User name (optional) - userN := []string{"Inner_example"} // []string | User name (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userName := []string{"Inner_example"} // []string | (optional) - userNameEmpty := true // bool | (optional) - userNameIc := []string{"Inner_example"} // []string | (optional) - userNameIe := []string{"Inner_example"} // []string | (optional) - userNameIew := []string{"Inner_example"} // []string | (optional) - userNameIsw := []string{"Inner_example"} // []string | (optional) - userNameN := []string{"Inner_example"} // []string | (optional) - userNameNic := []string{"Inner_example"} // []string | (optional) - userNameNie := []string{"Inner_example"} // []string | (optional) - userNameNiew := []string{"Inner_example"} // []string | (optional) - userNameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp) } ``` @@ -8526,77 +8473,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **action** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **actionN** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **changedObjectId** | **[]int32** | | - **changedObjectIdEmpty** | **bool** | | - **changedObjectIdGt** | **[]int32** | | - **changedObjectIdGte** | **[]int32** | | - **changedObjectIdLt** | **[]int32** | | - **changedObjectIdLte** | **[]int32** | | - **changedObjectIdN** | **[]int32** | | - **changedObjectType** | **string** | | - **changedObjectTypeN** | **string** | | - **changedObjectTypeId** | **[]int32** | | - **changedObjectTypeIdN** | **[]int32** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **limit** | **int32** | Number of results to return per page. | - **objectRepr** | **[]string** | | - **objectReprEmpty** | **bool** | | - **objectReprIc** | **[]string** | | - **objectReprIe** | **[]string** | | - **objectReprIew** | **[]string** | | - **objectReprIsw** | **[]string** | | - **objectReprN** | **[]string** | | - **objectReprNic** | **[]string** | | - **objectReprNie** | **[]string** | | - **objectReprNiew** | **[]string** | | - **objectReprNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **relatedObjectId** | **[]int32** | | - **relatedObjectIdEmpty** | **bool** | | - **relatedObjectIdGt** | **[]int32** | | - **relatedObjectIdGte** | **[]int32** | | - **relatedObjectIdLt** | **[]int32** | | - **relatedObjectIdLte** | **[]int32** | | - **relatedObjectIdN** | **[]int32** | | - **relatedObjectType** | **int32** | | - **relatedObjectTypeN** | **int32** | | - **requestId** | **string** | | - **timeAfter** | **time.Time** | | - **timeBefore** | **time.Time** | | - **user** | **[]string** | User name | - **userN** | **[]string** | User name | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **userName** | **[]string** | | - **userNameEmpty** | **bool** | | - **userNameIc** | **[]string** | | - **userNameIe** | **[]string** | | - **userNameIew** | **[]string** | | - **userNameIsw** | **[]string** | | - **userNameN** | **[]string** | | - **userNameNic** | **[]string** | | - **userNameNie** | **[]string** | | - **userNameNiew** | **[]string** | | - **userNameNisw** | **[]string** | | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + (empty response body) ### Authorization @@ -8604,17 +8490,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasObjectChangesRetrieve +## ExtrasNotificationGroupsBulkPartialUpdate -> ObjectChange ExtrasObjectChangesRetrieve(ctx, id).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkPartialUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8633,40 +8519,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object change. + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectChangesRetrieve`: ObjectChange - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkPartialUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object change. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectChange**](ObjectChange.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8674,7 +8556,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8682,9 +8564,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesList +## ExtrasNotificationGroupsBulkUpdate -> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8703,23 +8585,17 @@ import ( ) func main() { - appLabel := "appLabel_example" // string | (optional) - id := int32(56) // int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - model := "model_example" // string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate`: %v\n", resp) } ``` @@ -8729,22 +8605,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appLabel** | **string** | | - **id** | **int32** | | - **limit** | **int32** | Number of results to return per page. | - **model** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8752,7 +8622,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8760,9 +8630,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesRetrieve +## ExtrasNotificationGroupsCreate -> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsCreate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8781,40 +8651,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object type. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesRetrieve`: ObjectType - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsCreate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsCreate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object type. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectType**](ObjectType.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8822,7 +8688,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8830,9 +8696,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkDestroy +## ExtrasNotificationGroupsDestroy -> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> ExtrasNotificationGroupsDestroy(ctx, id).Execute() @@ -8851,13 +8717,13 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8866,15 +8732,19 @@ func main() { ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type @@ -8886,7 +8756,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8894,9 +8764,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkPartialUpdate +## ExtrasNotificationGroupsList -> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> PaginatedNotificationGroupList ExtrasNotificationGroupsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -8915,17 +8785,19 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasNotificationGroupsList`: PaginatedNotificationGroupList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsList`: %v\n", resp) } ``` @@ -8935,16 +8807,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**PaginatedNotificationGroupList**](PaginatedNotificationGroupList.md) ### Authorization @@ -8952,7 +8826,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8960,9 +8834,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkUpdate +## ExtrasNotificationGroupsPartialUpdate -> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsPartialUpdate(ctx, id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() @@ -8981,36 +8855,42 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. + patchedNotificationGroupRequest := *openapiclient.NewPatchedNotificationGroupRequest() // PatchedNotificationGroupRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) + // response from `ExtrasNotificationGroupsPartialUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + + **patchedNotificationGroupRequest** | [**PatchedNotificationGroupRequest**](PatchedNotificationGroupRequest.md) | | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9026,9 +8906,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersCreate +## ExtrasNotificationGroupsRetrieve -> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsRetrieve(ctx, id).Execute() @@ -9047,36 +8927,40 @@ import ( ) func main() { - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersCreate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) + // response from `ExtrasNotificationGroupsRetrieve`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type -[**SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9084,7 +8968,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9092,9 +8976,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersDestroy +## ExtrasNotificationGroupsUpdate -> ExtrasSavedFiltersDestroy(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsUpdate(ctx, id).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -9113,15 +8997,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + id := int32(56) // int32 | A unique integer value identifying this notification group. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasNotificationGroupsUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsUpdate`: %v\n", resp) } ``` @@ -9131,20 +9018,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type - (empty response body) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9152,17 +9040,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersList +## ExtrasNotificationsBulkDestroy -> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> ExtrasNotificationsBulkDestroy(ctx).NotificationRequest(notificationRequest).Execute() @@ -9177,108 +9065,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - enabled := true // bool | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - objectType := "objectType_example" // string | (optional) - objectTypeIc := "objectTypeIc_example" // string | (optional) - objectTypeIe := "objectTypeIe_example" // string | (optional) - objectTypeIew := "objectTypeIew_example" // string | (optional) - objectTypeIsw := "objectTypeIsw_example" // string | (optional) - objectTypeN := "objectTypeN_example" // string | (optional) - objectTypeNic := "objectTypeNic_example" // string | (optional) - objectTypeNie := "objectTypeNie_example" // string | (optional) - objectTypeNiew := "objectTypeNiew_example" // string | (optional) - objectTypeNisw := "objectTypeNisw_example" // string | (optional) - objectTypeId := []int32{int32(123)} // []int32 | (optional) - objectTypeIdN := []int32{int32(123)} // []int32 | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - shared := true // bool | (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - usable := true // bool | (optional) - user := []string{"Inner_example"} // []string | User (name) (optional) - userN := []string{"Inner_example"} // []string | User (name) (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - weight := []int32{int32(123)} // []int32 | (optional) - weightEmpty := true // bool | (optional) - weightGt := []int32{int32(123)} // []int32 | (optional) - weightGte := []int32{int32(123)} // []int32 | (optional) - weightLt := []int32{int32(123)} // []int32 | (optional) - weightLte := []int32{int32(123)} // []int32 | (optional) - weightN := []int32{int32(123)} // []int32 | (optional) + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).NotificationRequest(notificationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) } ``` @@ -9288,102 +9087,1954 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsBulkPartialUpdate + +> []Notification ExtrasNotificationsBulkPartialUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkPartialUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsBulkUpdate + +> []Notification ExtrasNotificationsBulkUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsCreate + +> Notification ExtrasNotificationsCreate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsCreate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsDestroy + +> ExtrasNotificationsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsList + +> PaginatedNotificationList ExtrasNotificationsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsList`: PaginatedNotificationList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + +### Return type + +[**PaginatedNotificationList**](PaginatedNotificationList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsPartialUpdate + +> Notification ExtrasNotificationsPartialUpdate(ctx, id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + patchedNotificationRequest := *openapiclient.NewPatchedNotificationRequest() // PatchedNotificationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsPartialUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedNotificationRequest** | [**PatchedNotificationRequest**](PatchedNotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsRetrieve + +> Notification ExtrasNotificationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsRetrieve`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsUpdate + +> Notification ExtrasNotificationsUpdate(ctx, id).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasObjectTypesList + +> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + appLabel := "appLabel_example" // string | (optional) + id := int32(56) // int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + model := "model_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appLabel** | **string** | | + **id** | **int32** | | + **limit** | **int32** | Number of results to return per page. | + **model** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + +### Return type + +[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasObjectTypesRetrieve + +> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesRetrieve`: ObjectType + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectType**](ObjectType.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkDestroy + +> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkPartialUpdate + +> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkUpdate + +> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersCreate + +> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersCreate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersDestroy + +> ExtrasSavedFiltersDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersList + +> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + enabled := true // bool | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + objectType := "objectType_example" // string | (optional) + objectTypeIc := "objectTypeIc_example" // string | (optional) + objectTypeIe := "objectTypeIe_example" // string | (optional) + objectTypeIew := "objectTypeIew_example" // string | (optional) + objectTypeIsw := "objectTypeIsw_example" // string | (optional) + objectTypeN := "objectTypeN_example" // string | (optional) + objectTypeNic := "objectTypeNic_example" // string | (optional) + objectTypeNie := "objectTypeNie_example" // string | (optional) + objectTypeNiew := "objectTypeNiew_example" // string | (optional) + objectTypeNisw := "objectTypeNisw_example" // string | (optional) + objectTypeId := []int32{int32(123)} // []int32 | (optional) + objectTypeIdN := []int32{int32(123)} // []int32 | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + shared := true // bool | (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + usable := true // bool | (optional) + user := []string{"Inner_example"} // []string | User (name) (optional) + userN := []string{"Inner_example"} // []string | User (name) (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []int32{int32(123)} // []int32 | (optional) + weightGte := []int32{int32(123)} // []int32 | (optional) + weightLt := []int32{int32(123)} // []int32 | (optional) + weightLte := []int32{int32(123)} // []int32 | (optional) + weightN := []int32{int32(123)} // []int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **enabled** | **bool** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **objectType** | **string** | | + **objectTypeIc** | **string** | | + **objectTypeIe** | **string** | | + **objectTypeIew** | **string** | | + **objectTypeIsw** | **string** | | + **objectTypeN** | **string** | | + **objectTypeNic** | **string** | | + **objectTypeNie** | **string** | | + **objectTypeNiew** | **string** | | + **objectTypeNisw** | **string** | | + **objectTypeId** | **[]int32** | | + **objectTypeIdN** | **[]int32** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **shared** | **bool** | | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **updatedByRequest** | **string** | | + **usable** | **bool** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **weight** | **[]int32** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]int32** | | + **weightGte** | **[]int32** | | + **weightLt** | **[]int32** | | + **weightLte** | **[]int32** | | + **weightN** | **[]int32** | | + +### Return type + +[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersPartialUpdate + +> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersRetrieve + +> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersRetrieve`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersUpdate + +> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsCreate + +> Script ExtrasScriptsCreate(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsCreate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern + + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsDestroy + +> ExtrasScriptsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsList + +> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + isExecutable := true // bool | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) + moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsList`: PaginatedScriptList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **isExecutable** | **bool** | | + **limit** | **int32** | Number of results to return per page. | + **moduleId** | **[]int32** | Script module (ID) | + **moduleIdN** | **[]int32** | Script module (ID) | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + +### Return type + +[**PaginatedScriptList**](PaginatedScriptList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsPartialUpdate + +> Script ExtrasScriptsPartialUpdate(ctx, id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + patchedScriptInputRequest := *openapiclient.NewPatchedScriptInputRequest() // PatchedScriptInputRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsPartialUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedScriptInputRequest** | [**PatchedScriptInputRequest**](PatchedScriptInputRequest.md) | | + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsRetrieve + +> Script ExtrasScriptsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsRetrieve`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsUpdate + +> Script ExtrasScriptsUpdate(ctx, id).ScriptInputRequest(scriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + scriptInputRequest := *openapiclient.NewScriptInputRequest(interface{}(123), false) // ScriptInputRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).ScriptInputRequest(scriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **enabled** | **bool** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | - **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **objectType** | **string** | | - **objectTypeIc** | **string** | | - **objectTypeIe** | **string** | | - **objectTypeIew** | **string** | | - **objectTypeIsw** | **string** | | - **objectTypeN** | **string** | | - **objectTypeNic** | **string** | | - **objectTypeNie** | **string** | | - **objectTypeNiew** | **string** | | - **objectTypeNisw** | **string** | | - **objectTypeId** | **[]int32** | | - **objectTypeIdN** | **[]int32** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **shared** | **bool** | | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | - **updatedByRequest** | **string** | | - **usable** | **bool** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **weight** | **[]int32** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]int32** | | - **weightGte** | **[]int32** | | - **weightLt** | **[]int32** | | - **weightLte** | **[]int32** | | - **weightN** | **[]int32** | | + + **scriptInputRequest** | [**ScriptInputRequest**](ScriptInputRequest.md) | | ### Return type -[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) +[**Script**](Script.md) ### Authorization @@ -9391,7 +11042,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9399,9 +11050,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersPartialUpdate +## ExtrasSubscriptionsBulkDestroy -> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() +> ExtrasSubscriptionsBulkDestroy(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9420,42 +11071,34 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) + (empty response body) ### Authorization @@ -9464,16 +11107,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersRetrieve +## ExtrasSubscriptionsBulkPartialUpdate -> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() +> []Subscription ExtrasSubscriptionsBulkPartialUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9492,40 +11135,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersRetrieve`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsBulkPartialUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9533,7 +11172,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9541,9 +11180,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersUpdate +## ExtrasSubscriptionsBulkUpdate -> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() +> []Subscription ExtrasSubscriptionsBulkUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9562,42 +11201,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsBulkUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9613,9 +11246,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsCreate +## ExtrasSubscriptionsCreate -> Script ExtrasScriptsCreate(ctx).Execute() +> Subscription ExtrasSubscriptionsCreate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9634,31 +11267,36 @@ import ( ) func main() { + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsCreate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) + // response from `ExtrasSubscriptionsCreate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsCreate`: %v\n", resp) } ``` ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsCreateRequest struct via the builder pattern + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9666,7 +11304,7 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9674,9 +11312,9 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest [[Back to README]](../README.md) -## ExtrasScriptsDestroy +## ExtrasSubscriptionsDestroy -> ExtrasScriptsDestroy(ctx, id).Execute() +> ExtrasSubscriptionsDestroy(ctx, id).Execute() @@ -9695,13 +11333,13 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9713,11 +11351,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -9742,9 +11380,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsList +## ExtrasSubscriptionsList -> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedSubscriptionList ExtrasSubscriptionsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -9763,41 +11401,19 @@ import ( ) func main() { - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - isExecutable := true // bool | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) - moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsList`: PaginatedScriptList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) + // response from `ExtrasSubscriptionsList`: PaginatedSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsList`: %v\n", resp) } ``` @@ -9807,40 +11423,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **isExecutable** | **bool** | | **limit** | **int32** | Number of results to return per page. | - **moduleId** | **[]int32** | Script module (ID) | - **moduleIdN** | **[]int32** | Script module (ID) | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | ### Return type -[**PaginatedScriptList**](PaginatedScriptList.md) +[**PaginatedSubscriptionList**](PaginatedSubscriptionList.md) ### Authorization @@ -9856,9 +11450,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsPartialUpdate +## ExtrasSubscriptionsPartialUpdate -> Script ExtrasScriptsPartialUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsPartialUpdate(ctx, id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() @@ -9877,17 +11471,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + patchedSubscriptionRequest := *openapiclient.NewPatchedSubscriptionRequest() // PatchedSubscriptionRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsPartialUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsPartialUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsPartialUpdate`: %v\n", resp) } ``` @@ -9897,20 +11492,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **patchedSubscriptionRequest** | [**PatchedSubscriptionRequest**](PatchedSubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9918,7 +11514,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9926,9 +11522,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsRetrieve +## ExtrasSubscriptionsRetrieve -> Script ExtrasScriptsRetrieve(ctx, id).Execute() +> Subscription ExtrasSubscriptionsRetrieve(ctx, id).Execute() @@ -9947,17 +11543,17 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsRetrieve`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsRetrieve`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsRetrieve`: %v\n", resp) } ``` @@ -9967,11 +11563,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -9980,7 +11576,7 @@ Name | Type | Description | Notes ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9996,9 +11592,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsUpdate +## ExtrasSubscriptionsUpdate -> Script ExtrasScriptsUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsUpdate(ctx, id).SubscriptionRequest(subscriptionRequest).Execute() @@ -10017,17 +11613,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsUpdate`: %v\n", resp) } ``` @@ -10037,20 +11634,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -10058,7 +11656,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/ExtrasCustomLinksListButtonClassParameter.md b/docs/ExtrasCustomLinksListButtonClassParameter.md index f0207ccf5..5540c98b8 100644 --- a/docs/ExtrasCustomLinksListButtonClassParameter.md +++ b/docs/ExtrasCustomLinksListButtonClassParameter.md @@ -9,6 +9,8 @@ * `CYAN` (value: `"cyan"`) +* `DEFAULT` (value: `"default"`) + * `GHOST_DARK` (value: `"ghost-dark"`) * `GRAY` (value: `"gray"`) @@ -19,8 +21,6 @@ * `ORANGE` (value: `"orange"`) -* `OUTLINE_DARK` (value: `"outline-dark"`) - * `PINK` (value: `"pink"`) * `PURPLE` (value: `"purple"`) diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md index 1b55f2fa8..7822b3e13 100644 --- a/docs/FHRPGroup.md +++ b/docs/FHRPGroup.md @@ -5,17 +5,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] +**Name** | Pointer to **string** | | [optional] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**IpAddresses** | [**[]BriefIPAddress**](BriefIPAddress.md) | | [readonly] ## Methods ### NewFHRPGroup -`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroup` +`func NewFHRPGroup(id int32, url string, displayUrl string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress, ) *FHRPGroup` NewFHRPGroup instantiates a new FHRPGroup object This constructor will assign default values to properties that have it defined, @@ -50,6 +60,31 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. +### GetName + +`func (o *FHRPGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FHRPGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetUrl `func (o *FHRPGroup) GetUrl() string` @@ -70,6 +105,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FHRPGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FHRPGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *FHRPGroup) GetDisplay() string` @@ -92,20 +147,20 @@ SetDisplay sets Display field to given value. ### GetProtocol -`func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -130,6 +185,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroup) GetAuthType() AuthenticationType` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroup) SetAuthType(v AuthenticationType)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroup) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthKey + +`func (o *FHRPGroup) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroup) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroup) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroup) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroup) GetDescription() string` @@ -155,6 +260,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroup) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroup) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroup) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroup) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FHRPGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *FHRPGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *FHRPGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *FHRPGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *FHRPGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *FHRPGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *FHRPGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *FHRPGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *FHRPGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *FHRPGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpAddresses + +`func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress` + +GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. + +### GetIpAddressesOk + +`func (o *FHRPGroup) GetIpAddressesOk() (*[]BriefIPAddress, bool)` + +GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddresses + +`func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress)` + +SetIpAddresses sets IpAddresses field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FHRPGroupAssignment.md b/docs/FHRPGroupAssignment.md index c6fa9037f..c12dfa473 100644 --- a/docs/FHRPGroupAssignment.md +++ b/docs/FHRPGroupAssignment.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Group** | [**FHRPGroup**](FHRPGroup.md) | | +**Group** | [**BriefFHRPGroup**](BriefFHRPGroup.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Interface** | **interface{}** | | [readonly] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignment -`func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` +`func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` NewFHRPGroupAssignment instantiates a new FHRPGroupAssignment object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetGroup -`func (o *FHRPGroupAssignment) GetGroup() FHRPGroup` +`func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool)` +`func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup)` +`func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupAssignmentRequest.md b/docs/FHRPGroupAssignmentRequest.md index b589eac9d..89a52663c 100644 --- a/docs/FHRPGroupAssignmentRequest.md +++ b/docs/FHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | | +**Group** | [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Priority** | **int32** | | @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignmentRequest -`func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` +`func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` NewFHRPGroupAssignmentRequest instantiates a new FHRPGroupAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md index f7572c47f..3cf2f71ca 100644 --- a/docs/FHRPGroupRequest.md +++ b/docs/FHRPGroupRequest.md @@ -4,15 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Name** | Pointer to **string** | | [optional] +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewFHRPGroupRequest -`func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` +`func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` NewFHRPGroupRequest instantiates a new FHRPGroupRequest object This constructor will assign default values to properties that have it defined, @@ -27,22 +33,47 @@ NewFHRPGroupRequestWithDefaults instantiates a new FHRPGroupRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetName + +`func (o *FHRPGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FHRPGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetProtocol -`func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -67,6 +98,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroupRequest) GetAuthType() AuthenticationType` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroupRequest) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthKey + +`func (o *FHRPGroupRequest) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroupRequest) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroupRequest) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroupRequest) GetDescription() string` @@ -92,6 +173,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroupRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroupRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroupRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/FrontPort.md b/docs/FrontPort.md index 5cba25bc8..216320be7 100644 --- a/docs/FrontPort.md +++ b/docs/FrontPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -17,10 +18,10 @@ Name | Type | Description | Notes **RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewFrontPort -`func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` +`func NewFrontPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` NewFrontPort instantiates a new FrontPort object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *FrontPort) GetDisplay() string` @@ -108,40 +129,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *FrontPort) GetDevice() Device` +`func (o *FrontPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPort) GetDeviceOk() (*Device, bool)` +`func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPort) SetDevice(v Device)` +`func (o *FrontPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPort) GetModule() Module` +`func (o *FrontPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPort) GetModuleOk() (*Module, bool)` +`func (o *FrontPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPort) SetModule(v Module)` +`func (o *FrontPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -348,20 +369,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *FrontPort) GetCable() Cable` +`func (o *FrontPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *FrontPort) GetCableOk() (*Cable, bool)` +`func (o *FrontPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *FrontPort) SetCable(v Cable)` +`func (o *FrontPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -436,6 +457,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *FrontPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *FrontPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *FrontPort) GetTags() []NestedTag` diff --git a/docs/FrontPortRearPort.md b/docs/FrontPortRearPort.md index 59db5e9c0..d73450e26 100644 --- a/docs/FrontPortRearPort.md +++ b/docs/FrontPortRearPort.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewFrontPortRearPort -`func NewFrontPortRearPort(id int32, url string, display string, name string, ) *FrontPortRearPort` +`func NewFrontPortRearPort(id int32, url string, displayUrl string, display string, name string, ) *FrontPortRearPort` NewFrontPortRearPort instantiates a new FrontPortRearPort object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPortRearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPortRearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *FrontPortRearPort) GetDisplay() string` diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md index 91c8194b7..bd9fb2cd9 100644 --- a/docs/FrontPortRequest.md +++ b/docs/FrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewFrontPortRequest -`func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` +`func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` NewFrontPortRequest instantiates a new FrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *FrontPortRequest) GetDevice() DeviceRequest` +`func (o *FrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPortRequest) GetModule() ModuleRequest` +`func (o *FrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPortRequest) SetModule(v ModuleRequest)` +`func (o *FrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md index 31aa9d758..ceb079508 100644 --- a/docs/FrontPortTemplate.md +++ b/docs/FrontPortTemplate.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplate**](RearPortTemplate.md) | | +**RearPort** | [**BriefRearPortTemplate**](BriefRearPortTemplate.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplate -`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` +`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` NewFrontPortTemplate instantiates a new FrontPortTemplate object This constructor will assign default values to properties that have it defined, @@ -100,20 +100,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *FrontPortTemplate) GetDeviceType() DeviceType` +`func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplate) SetDeviceType(v DeviceType)` +`func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -135,20 +135,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplate) GetModuleType() ModuleType` +`func (o *FrontPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplate) SetModuleType(v ModuleType)` +`func (o *FrontPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -260,20 +260,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplate) GetRearPort() RearPortTemplate` +`func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool)` +`func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate)` +`func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md index 08dc1ef79..8e27f7687 100644 --- a/docs/FrontPortTemplateRequest.md +++ b/docs/FrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplateRequest -`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *FrontPortTemplateRequest` +`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *FrontPortTemplateRequest` NewFrontPortTemplateRequest instantiates a new FrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTypeLabel.md b/docs/FrontPortTypeLabel.md index 767d7d0ef..0024e2bae 100644 --- a/docs/FrontPortTypeLabel.md +++ b/docs/FrontPortTypeLabel.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"Splice"`) +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + * `OTHER` (value: `"Other"`) diff --git a/docs/FrontPortTypeValue.md b/docs/FrontPortTypeValue.md index c6ac18122..6265dfe24 100644 --- a/docs/FrontPortTypeValue.md +++ b/docs/FrontPortTypeValue.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"splice"`) +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + * `OTHER` (value: `"other"`) diff --git a/docs/GenericObject.md b/docs/GenericObject.md new file mode 100644 index 000000000..b409766a4 --- /dev/null +++ b/docs/GenericObject.md @@ -0,0 +1,103 @@ +# GenericObject + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int32** | | +**Object** | **interface{}** | | [readonly] + +## Methods + +### NewGenericObject + +`func NewGenericObject(objectType string, objectId int32, object interface{}, ) *GenericObject` + +NewGenericObject instantiates a new GenericObject object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewGenericObjectWithDefaults + +`func NewGenericObjectWithDefaults() *GenericObject` + +NewGenericObjectWithDefaults instantiates a new GenericObject object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *GenericObject) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *GenericObject) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *GenericObject) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *GenericObject) GetObjectId() int32` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *GenericObject) GetObjectIdOk() (*int32, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *GenericObject) SetObjectId(v int32)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *GenericObject) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *GenericObject) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *GenericObject) SetObject(v interface{})` + +SetObject sets Object field to given value. + + +### SetObjectNil + +`func (o *GenericObject) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *GenericObject) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil + +[[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/docs/Group.md b/docs/Group.md index c9ac7b587..38387646e 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -16,7 +17,7 @@ Name | Type | Description | Notes ### NewGroup -`func NewGroup(id int32, url string, display string, name string, userCount int32, ) *Group` +`func NewGroup(id int32, url string, displayUrl string, display string, name string, userCount int32, ) *Group` NewGroup instantiates a new Group object This constructor will assign default values to properties that have it defined, @@ -71,6 +72,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Group) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Group) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Group) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Group) GetDisplay() string` diff --git a/docs/IKEPolicy.md b/docs/IKEPolicy.md index 91c8a8e58..2dce4ceae 100644 --- a/docs/IKEPolicy.md +++ b/docs/IKEPolicy.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | | -**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | | +**Mode** | Pointer to [**IKEPolicyMode**](IKEPolicyMode.md) | | [optional] **Proposals** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewIKEPolicy -`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` +`func NewIKEPolicy(id int32, url string, displayUrl string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` NewIKEPolicy instantiates a new IKEPolicy object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IKEPolicy) GetDisplay() string` @@ -182,6 +203,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicy) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEPolicyRequest.md b/docs/IKEPolicyRequest.md index 9a18d7f6d..919cb92b9 100644 --- a/docs/IKEPolicyRequest.md +++ b/docs/IKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | -**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | +**Mode** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional] **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewIKEPolicyRequest -`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest` +`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, ) *IKEPolicyRequest` NewIKEPolicyRequest instantiates a new IKEPolicyRequest object This constructor will assign default values to properties that have it defined, @@ -117,6 +117,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicyRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEProposal.md b/docs/IKEProposal.md index ee499984d..906ae7899 100644 --- a/docs/IKEProposal.md +++ b/docs/IKEProposal.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethod**](IKEProposalAuthenticationMethod.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | [optional] **Group** | [**IKEProposalGroup**](IKEProposalGroup.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewIKEProposal -`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` +`func NewIKEProposal(id int32, url string, displayUrl string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` NewIKEProposal instantiates a new IKEProposal object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IKEProposal) GetDisplay() string` @@ -203,6 +224,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposal) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IKEProposalRequest.md b/docs/IKEProposalRequest.md index d61d24fd8..a96502c8a 100644 --- a/docs/IKEProposalRequest.md +++ b/docs/IKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] **Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewIKEProposalRequest -`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` +`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` NewIKEProposalRequest instantiates a new IKEProposalRequest object This constructor will assign default values to properties that have it defined, @@ -138,6 +138,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IPAddress.md b/docs/IPAddress.md index ed004ef14..a782cecc4 100644 --- a/docs/IPAddress.md +++ b/docs/IPAddress.md @@ -6,16 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPAddressStatus**](IPAddressStatus.md) | | [optional] +**Role** | Pointer to [**IPAddressRole**](IPAddressRole.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**AssignedObject** | **interface{}** | | [readonly] +**NatInside** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] +**NatOutside** | [**[]NestedIPAddress**](NestedIPAddress.md) | | [readonly] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewIPAddress -`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *IPAddress` +`func NewIPAddress(id int32, url string, displayUrl string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress` NewIPAddress instantiates a new IPAddress object This constructor will assign default values to properties that have it defined, @@ -70,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPAddress) GetDisplay() string` @@ -130,6 +166,306 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddress) GetVrf() BriefVRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddress) GetVrfOk() (*BriefVRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddress) SetVrf(v BriefVRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddress) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddress) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddress) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddress) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddress) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *IPAddress) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddress) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddress) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddress) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddress) GetStatus() IPAddressStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *IPAddress) SetStatus(v IPAddressStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddress) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddress) GetRole() IPAddressRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IPAddress) SetRole(v IPAddressRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddress) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddress) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddress) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddress) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddress) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddress) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddress) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddress) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddress) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddress) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddress) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetAssignedObject + +`func (o *IPAddress) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *IPAddress) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + + +### SetAssignedObjectNil + +`func (o *IPAddress) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *IPAddress) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetNatInside + +`func (o *IPAddress) GetNatInside() NestedIPAddress` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddress) SetNatInside(v NestedIPAddress)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddress) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddress) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddress) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetNatOutside + +`func (o *IPAddress) GetNatOutside() []NestedIPAddress` + +GetNatOutside returns the NatOutside field if non-nil, zero value otherwise. + +### GetNatOutsideOk + +`func (o *IPAddress) GetNatOutsideOk() (*[]NestedIPAddress, bool)` + +GetNatOutsideOk returns a tuple with the NatOutside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatOutside + +`func (o *IPAddress) SetNatOutside(v []NestedIPAddress)` + +SetNatOutside sets NatOutside field to given value. + + +### GetDnsName + +`func (o *IPAddress) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddress) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddress) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddress) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddress) GetDescription() string` @@ -155,6 +491,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddress) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddress) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddress) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddress) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddress) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddress) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *IPAddress) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddress) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddress) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddress) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *IPAddress) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddress) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *IPAddress) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *IPAddress) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *IPAddress) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *IPAddress) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *IPAddress) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *IPAddress) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *IPAddress) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *IPAddress) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *IPAddress) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/IPAddressRequest.md b/docs/IPAddressRequest.md index 7944d1cf9..808e934b2 100644 --- a/docs/IPAddressRequest.md +++ b/docs/IPAddressRequest.md @@ -5,7 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Role** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**NatInside** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -46,6 +57,256 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddressRequest) GetVrf() BriefVRFRequest` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddressRequest) SetVrf(v BriefVRFRequest)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddressRequest) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddressRequest) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddressRequest) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddressRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *IPAddressRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddressRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddressRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddressRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddressRequest) GetStatus() IPAddressStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddressRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddressRequest) GetRole() IPAddressRoleValue` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IPAddressRequest) SetRole(v IPAddressRoleValue)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddressRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddressRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddressRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddressRequest) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddressRequest) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddressRequest) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddressRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddressRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddressRequest) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddressRequest) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddressRequest) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetNatInside + +`func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddressRequest) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddressRequest) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddressRequest) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetDnsName + +`func (o *IPAddressRequest) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddressRequest) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddressRequest) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddressRequest) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddressRequest) GetDescription() string` @@ -71,6 +332,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddressRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddressRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddressRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddressRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddressRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddressRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *IPAddressRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddressRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddressRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddressRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *IPAddressRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddressRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/IPAddressRole.md b/docs/IPAddressRole.md new file mode 100644 index 000000000..a3556e595 --- /dev/null +++ b/docs/IPAddressRole.md @@ -0,0 +1,82 @@ +# IPAddressRole + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**Label** | Pointer to [**IPAddressRoleLabel**](IPAddressRoleLabel.md) | | [optional] + +## Methods + +### NewIPAddressRole + +`func NewIPAddressRole() *IPAddressRole` + +NewIPAddressRole instantiates a new IPAddressRole object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIPAddressRoleWithDefaults + +`func NewIPAddressRoleWithDefaults() *IPAddressRole` + +NewIPAddressRoleWithDefaults instantiates a new IPAddressRole object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *IPAddressRole) GetValue() IPAddressRoleValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *IPAddressRole) SetValue(v IPAddressRoleValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPAddressRole) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPAddressRole) GetLabel() IPAddressRoleLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPAddressRole) HasLabel() bool` + +HasLabel 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/docs/IPAddressRoleLabel.md b/docs/IPAddressRoleLabel.md new file mode 100644 index 000000000..57453cb71 --- /dev/null +++ b/docs/IPAddressRoleLabel.md @@ -0,0 +1,25 @@ +# IPAddressRoleLabel + +## Enum + + +* `LOOPBACK` (value: `"Loopback"`) + +* `SECONDARY` (value: `"Secondary"`) + +* `ANYCAST` (value: `"Anycast"`) + +* `VIP` (value: `"VIP"`) + +* `VRRP` (value: `"VRRP"`) + +* `HSRP` (value: `"HSRP"`) + +* `GLBP` (value: `"GLBP"`) + +* `CARP` (value: `"CARP"`) + + +[[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/docs/IPAddressRoleValue.md b/docs/IPAddressRoleValue.md new file mode 100644 index 000000000..fe031504f --- /dev/null +++ b/docs/IPAddressRoleValue.md @@ -0,0 +1,27 @@ +# IPAddressRoleValue + +## Enum + + +* `LOOPBACK` (value: `"loopback"`) + +* `SECONDARY` (value: `"secondary"`) + +* `ANYCAST` (value: `"anycast"`) + +* `VIP` (value: `"vip"`) + +* `VRRP` (value: `"vrrp"`) + +* `HSRP` (value: `"hsrp"`) + +* `GLBP` (value: `"glbp"`) + +* `CARP` (value: `"carp"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/IPAddressStatus.md b/docs/IPAddressStatus.md new file mode 100644 index 000000000..961c2b0d1 --- /dev/null +++ b/docs/IPAddressStatus.md @@ -0,0 +1,82 @@ +# IPAddressStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Label** | Pointer to [**IPAddressStatusLabel**](IPAddressStatusLabel.md) | | [optional] + +## Methods + +### NewIPAddressStatus + +`func NewIPAddressStatus() *IPAddressStatus` + +NewIPAddressStatus instantiates a new IPAddressStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewIPAddressStatusWithDefaults + +`func NewIPAddressStatusWithDefaults() *IPAddressStatus` + +NewIPAddressStatusWithDefaults instantiates a new IPAddressStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *IPAddressStatus) GetValue() IPAddressStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *IPAddressStatus) SetValue(v IPAddressStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *IPAddressStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *IPAddressStatus) HasLabel() bool` + +HasLabel 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/docs/IPAddressStatusLabel.md b/docs/IPAddressStatusLabel.md new file mode 100644 index 000000000..85c041572 --- /dev/null +++ b/docs/IPAddressStatusLabel.md @@ -0,0 +1,19 @@ +# IPAddressStatusLabel + +## Enum + + +* `ACTIVE` (value: `"Active"`) + +* `RESERVED` (value: `"Reserved"`) + +* `DEPRECATED` (value: `"Deprecated"`) + +* `DHCP` (value: `"DHCP"`) + +* `SLAAC` (value: `"SLAAC"`) + + +[[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/docs/IPAddressStatusValue.md b/docs/IPAddressStatusValue.md new file mode 100644 index 000000000..8794985a8 --- /dev/null +++ b/docs/IPAddressStatusValue.md @@ -0,0 +1,19 @@ +# IPAddressStatusValue + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `RESERVED` (value: `"reserved"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `DHCP` (value: `"dhcp"`) + +* `SLAAC` (value: `"slaac"`) + + +[[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/docs/IPRange.md b/docs/IPRange.md index 4d6a50ec0..6ea477e32 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **StartAddress** | **string** | | **EndAddress** | **string** | | **Size** | **int32** | | [readonly] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -27,7 +28,7 @@ Name | Type | Description | Notes ### NewIPRange -`func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` +`func NewIPRange(id int32, url string, displayUrl string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` NewIPRange instantiates a new IPRange object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPRange) GetDisplay() string` @@ -184,20 +205,20 @@ SetSize sets Size field to given value. ### GetVrf -`func (o *IPRange) GetVrf() VRF` +`func (o *IPRange) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRange) GetVrfOk() (*VRF, bool)` +`func (o *IPRange) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRange) SetVrf(v VRF)` +`func (o *IPRange) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -219,20 +240,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRange) GetTenant() Tenant` +`func (o *IPRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRange) GetTenantOk() (*Tenant, bool)` +`func (o *IPRange) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRange) SetTenant(v Tenant)` +`func (o *IPRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -279,20 +300,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRange) GetRole() Role` +`func (o *IPRange) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRange) GetRoleOk() (*Role, bool)` +`func (o *IPRange) GetRoleOk() (*BriefRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRange) SetRole(v Role)` +`func (o *IPRange) SetRole(v BriefRole)` SetRole sets Role field to given value. diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md index 35f6cc221..11d861c01 100644 --- a/docs/IPRangeRequest.md +++ b/docs/IPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *IPRangeRequest) GetVrf() VRFRequest` +`func (o *IPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRangeRequest) SetVrf(v VRFRequest)` +`func (o *IPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRangeRequest) GetTenant() TenantRequest` +`func (o *IPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRangeRequest) SetTenant(v TenantRequest)` +`func (o *IPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRangeRequest) GetRole() RoleRequest` +`func (o *IPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRangeRequest) SetRole(v RoleRequest)` +`func (o *IPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/IPSecPolicy.md b/docs/IPSecPolicy.md index 7d7e216e5..5106d9867 100644 --- a/docs/IPSecPolicy.md +++ b/docs/IPSecPolicy.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewIPSecPolicy -`func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` +`func NewIPSecPolicy(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` NewIPSecPolicy instantiates a new IPSecPolicy object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPSecPolicy) GetDisplay() string` diff --git a/docs/IPSecProfile.md b/docs/IPSecProfile.md index 9582c5258..2dca50bda 100644 --- a/docs/IPSecProfile.md +++ b/docs/IPSecProfile.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | | -**IkePolicy** | [**IKEPolicy**](IKEPolicy.md) | | -**IpsecPolicy** | [**IPSecPolicy**](IPSecPolicy.md) | | +**IkePolicy** | [**BriefIKEPolicy**](BriefIKEPolicy.md) | | +**IpsecPolicy** | [**BriefIPSecPolicy**](BriefIPSecPolicy.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewIPSecProfile -`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` +`func NewIPSecProfile(id int32, url string, displayUrl string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` NewIPSecProfile instantiates a new IPSecProfile object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProfile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProfile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPSecProfile) GetDisplay() string` @@ -164,40 +185,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfile) GetIkePolicy() IKEPolicy` +`func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool)` +`func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfile) SetIkePolicy(v IKEPolicy)` +`func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy` +`func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool)` +`func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy)` +`func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md index 74f1a9171..35d915482 100644 --- a/docs/IPSecProfileRequest.md +++ b/docs/IPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewIPSecProfileRequest -`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *IPSecProfileRequest` +`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *IPSecProfileRequest` NewIPSecProfileRequest instantiates a new IPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProposal.md b/docs/IPSecProposal.md index 6664ca6a2..9deb648fb 100644 --- a/docs/IPSecProposal.md +++ b/docs/IPSecProposal.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewIPSecProposal -`func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` +`func NewIPSecProposal(id int32, url string, displayUrl string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` NewIPSecProposal instantiates a new IPSecProposal object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *IPSecProposal) GetDisplay() string` diff --git a/docs/ImageAttachment.md b/docs/ImageAttachment.md index 254d230c2..c7288671f 100644 --- a/docs/ImageAttachment.md +++ b/docs/ImageAttachment.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **Parent** | **interface{}** | | [readonly] **Name** | Pointer to **string** | | [optional] **Image** | **string** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | +**ImageHeight** | **int32** | | [readonly] +**ImageWidth** | **int32** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] diff --git a/docs/ImageAttachmentRequest.md b/docs/ImageAttachmentRequest.md index 7728d54e5..b79b8f76e 100644 --- a/docs/ImageAttachmentRequest.md +++ b/docs/ImageAttachmentRequest.md @@ -8,14 +8,12 @@ Name | Type | Description | Notes **ObjectId** | **int64** | | **Name** | Pointer to **string** | | [optional] **Image** | ***os.File** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | ## Methods ### NewImageAttachmentRequest -`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest` +`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, ) *ImageAttachmentRequest` NewImageAttachmentRequest instantiates a new ImageAttachmentRequest object This constructor will assign default values to properties that have it defined, @@ -115,46 +113,6 @@ and a boolean to check if the value has been set. SetImage sets Image field to given value. -### GetImageHeight - -`func (o *ImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *ImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - - -### GetImageWidth - -`func (o *ImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *ImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Interface.md b/docs/Interface.md index 222d4907d..55aaa4d75 100644 --- a/docs/Interface.md +++ b/docs/Interface.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Vdcs** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional] -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -32,19 +33,19 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **WirelessLink** | [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **WirelessLans** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,7 +59,7 @@ Name | Type | Description | Notes ### NewInterface -`func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` +`func NewInterface(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` NewInterface instantiates a new Interface object This constructor will assign default values to properties that have it defined, @@ -113,6 +114,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Interface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Interface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Interface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Interface) GetDisplay() string` @@ -135,20 +156,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Interface) GetDevice() Device` +`func (o *Interface) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Interface) GetDeviceOk() (*Device, bool)` +`func (o *Interface) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Interface) SetDevice(v Device)` +`func (o *Interface) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -180,20 +201,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *Interface) GetModule() Module` +`func (o *Interface) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *Interface) GetModuleOk() (*Module, bool)` +`func (o *Interface) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *Interface) SetModule(v Module)` +`func (o *Interface) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -865,20 +886,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *Interface) GetUntaggedVlan() VLAN` +`func (o *Interface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *Interface) SetUntaggedVlan(v VLAN)` +`func (o *Interface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -950,20 +971,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *Interface) GetCable() Cable` +`func (o *Interface) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *Interface) GetCableOk() (*Cable, bool)` +`func (o *Interface) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *Interface) SetCable(v Cable)` +`func (o *Interface) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -1068,6 +1089,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *Interface) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *Interface) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetWirelessLans `func (o *Interface) GetWirelessLans() []WirelessLAN` @@ -1095,20 +1126,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *Interface) GetVrf() VRF` +`func (o *Interface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Interface) GetVrfOk() (*VRF, bool)` +`func (o *Interface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Interface) SetVrf(v VRF)` +`func (o *Interface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -1130,20 +1161,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *Interface) GetL2vpnTermination() L2VPNTermination` +`func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. @@ -1178,6 +1209,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *Interface) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *Interface) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *Interface) GetConnectedEndpointsType() string` @@ -1198,6 +1239,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *Interface) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *Interface) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *Interface) GetConnectedEndpointsReachable() bool` diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md index 9a58216f3..2a12dd4c4 100644 --- a/docs/InterfaceRequest.md +++ b/docs/InterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewInterfaceRequest -`func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` +`func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` NewInterfaceRequest instantiates a new InterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InterfaceRequest) GetDevice() DeviceRequest` +`func (o *InterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *InterfaceRequest) GetModule() ModuleRequest` +`func (o *InterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *InterfaceRequest) SetModule(v ModuleRequest)` +`func (o *InterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *InterfaceRequest) GetVrf() VRFRequest` +`func (o *InterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *InterfaceRequest) SetVrf(v VRFRequest)` +`func (o *InterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/InterfaceTemplate.md b/docs/InterfaceTemplate.md index fe7c519cd..447d3bcb8 100644 --- a/docs/InterfaceTemplate.md +++ b/docs/InterfaceTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InterfaceTemplate) GetDeviceType() DeviceType` +`func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplate) SetDeviceType(v DeviceType)` +`func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -138,20 +138,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplate) GetModuleType() ModuleType` +`func (o *InterfaceTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplate) SetModuleType(v ModuleType)` +`func (o *InterfaceTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md index e916c8116..5646cf9a6 100644 --- a/docs/InterfaceTemplateRequest.md +++ b/docs/InterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md index 74891e8c2..16fefb006 100644 --- a/docs/InterfaceTypeLabel.md +++ b/docs/InterfaceTypeLabel.md @@ -19,6 +19,8 @@ * `_1000_BASE_T__1_GE` (value: `"1000BASE-T (1GE)"`) +* `_1000_BASE_TX__1_GE` (value: `"1000BASE-TX (1GE)"`) + * `_2_5_GBASE_T__2_5_GE` (value: `"2.5GBASE-T (2.5GE)"`) * `_5_GBASE_T__5_GE` (value: `"5GBASE-T (5GE)"`) @@ -125,6 +127,8 @@ * `IEEE_802_11AY` (value: `"IEEE 802.11ay"`) +* `IEEE_802_11BE` (value: `"IEEE 802.11be"`) + * `IEEE_802_15_1__BLUETOOTH` (value: `"IEEE 802.15.1 (Bluetooth)"`) * `OTHER__WIRELESS` (value: `"Other (Wireless)"`) diff --git a/docs/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md index 4d0b0417f..e42eb73f5 100644 --- a/docs/InterfaceTypeValue.md +++ b/docs/InterfaceTypeValue.md @@ -19,6 +19,8 @@ * `_1000BASE_T` (value: `"1000base-t"`) +* `_1000BASE_TX` (value: `"1000base-tx"`) + * `_2_5GBASE_T` (value: `"2.5gbase-t"`) * `_5GBASE_T` (value: `"5gbase-t"`) @@ -125,6 +127,8 @@ * `IEEE802_11AY` (value: `"ieee802.11ay"`) +* `IEEE802_11BE` (value: `"ieee802.11be"`) + * `IEEE802_15_1` (value: `"ieee802.15.1"`) * `OTHER_WIRELESS` (value: `"other-wireless"`) diff --git a/docs/InventoryItem.md b/docs/InventoryItem.md index 899e554b9..a066deff5 100644 --- a/docs/InventoryItem.md +++ b/docs/InventoryItem.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewInventoryItem -`func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, displayUrl string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItem) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItem) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItem) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *InventoryItem) GetDisplay() string` @@ -108,20 +129,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *InventoryItem) GetDevice() Device` +`func (o *InventoryItem) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItem) GetDeviceOk() (*Device, bool)` +`func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItem) SetDevice(v Device)` +`func (o *InventoryItem) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -208,20 +229,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItem) GetRole() InventoryItemRole` +`func (o *InventoryItem) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItem) SetRole(v InventoryItemRole)` +`func (o *InventoryItem) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -243,20 +264,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItem) GetManufacturer() Manufacturer` +`func (o *InventoryItem) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItem) SetManufacturer(v Manufacturer)` +`func (o *InventoryItem) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRequest.md b/docs/InventoryItemRequest.md index 580df6b26..8fe8b8c2d 100644 --- a/docs/InventoryItemRequest.md +++ b/docs/InventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewInventoryItemRequest -`func NewInventoryItemRequest(device DeviceRequest, name string, ) *InventoryItemRequest` +`func NewInventoryItemRequest(device BriefDeviceRequest, name string, ) *InventoryItemRequest` NewInventoryItemRequest instantiates a new InventoryItemRequest object This constructor will assign default values to properties that have it defined, @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InventoryItemRequest) GetDevice() DeviceRequest` +`func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -141,20 +141,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -176,20 +176,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRole.md b/docs/InventoryItemRole.md index ffd538ba1..855098b6f 100644 --- a/docs/InventoryItemRole.md +++ b/docs/InventoryItemRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewInventoryItemRole -`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` +`func NewInventoryItemRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` NewInventoryItemRole instantiates a new InventoryItemRole object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItemRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItemRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *InventoryItemRole) GetDisplay() string` diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md index 94833b0ef..eddb4a2b3 100644 --- a/docs/InventoryItemTemplate.md +++ b/docs/InventoryItemTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InventoryItemTemplate) GetDeviceType() DeviceType` +`func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplate) SetDeviceType(v DeviceType)` +`func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -203,20 +203,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplate) GetRole() InventoryItemRole` +`func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplate) SetRole(v InventoryItemRole)` +`func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -238,20 +238,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplate) GetManufacturer() Manufacturer` +`func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer)` +`func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md index fb68460d1..c73bbf2c3 100644 --- a/docs/InventoryItemTemplateRequest.md +++ b/docs/InventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplateRequest -`func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` +`func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` NewInventoryItemTemplateRequest instantiates a new InventoryItemTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -171,20 +171,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md index 3113766da..5e65710d7 100644 --- a/docs/IpamAPI.md +++ b/docs/IpamAPI.md @@ -182,7 +182,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -246,7 +246,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -312,7 +312,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -378,7 +378,7 @@ import ( ) func main() { - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -568,10 +568,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -654,10 +654,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -844,7 +844,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this aggregate. - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1057,7 +1057,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1121,7 +1121,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1187,7 +1187,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1253,7 +1253,7 @@ import ( ) func main() { - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1470,10 +1470,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1583,10 +1583,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1773,7 +1773,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this ASN range. - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2236,10 +2236,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -2328,10 +2328,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2589,7 +2589,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2653,7 +2653,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2719,7 +2719,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2785,7 +2785,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3225,7 +3225,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment. - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3296,7 +3296,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3360,7 +3360,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3426,7 +3426,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3492,7 +3492,7 @@ import ( ) func main() { - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3984,7 +3984,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group. - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4474,10 +4474,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4603,10 +4603,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -5408,10 +5408,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -5504,10 +5504,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -6446,20 +6446,20 @@ func main() { presentInVrf := "presentInVrf_example" // string | (optional) presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this prefix (optional) @@ -6468,10 +6468,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -6576,20 +6576,20 @@ Name | Type | Description | Notes **presentInVrf** | **string** | | **presentInVrfId** | **string** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this prefix | @@ -6598,10 +6598,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -8760,10 +8760,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -8860,10 +8860,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -10151,7 +10151,7 @@ Name | Type | Description | Notes ## IpamServicesList -> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() +> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() @@ -10205,10 +10205,6 @@ func main() { ipAddressN := []string{"Inner_example"} // []string | IP address (optional) ipAddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) ipAddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddress := []string{"Inner_example"} // []string | IP address (optional) - ipaddressN := []string{"Inner_example"} // []string | IP address (optional) - ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10245,7 +10241,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10300,10 +10296,6 @@ Name | Type | Description | Notes **ipAddressN** | **[]string** | IP address | **ipAddressId** | **[]int32** | IP address (ID) | **ipAddressIdN** | **[]int32** | IP address (ID) | - **ipaddress** | **[]string** | IP address | - **ipaddressN** | **[]string** | IP address | - **ipaddressId** | **[]int32** | IP address (ID) | - **ipaddressIdN** | **[]int32** | IP address (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -11044,7 +11036,7 @@ Name | Type | Description | Notes ## IpamVlanGroupsList -> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -11066,7 +11058,7 @@ import ( func main() { cluster := int32(56) // int32 | (optional) clusterGroup := int32(56) // int32 | (optional) - clustergroup := int32(56) // int32 | (optional) + containsVid := float32(8.14) // float32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11102,20 +11094,6 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) location := int32(56) // int32 | (optional) - maxVid := []int32{int32(123)} // []int32 | (optional) - maxVidEmpty := true // bool | (optional) - maxVidGt := []int32{int32(123)} // []int32 | (optional) - maxVidGte := []int32{int32(123)} // []int32 | (optional) - maxVidLt := []int32{int32(123)} // []int32 | (optional) - maxVidLte := []int32{int32(123)} // []int32 | (optional) - maxVidN := []int32{int32(123)} // []int32 | (optional) - minVid := []int32{int32(123)} // []int32 | (optional) - minVidEmpty := true // bool | (optional) - minVidGt := []int32{int32(123)} // []int32 | (optional) - minVidGte := []int32{int32(123)} // []int32 | (optional) - minVidLt := []int32{int32(123)} // []int32 | (optional) - minVidLte := []int32{int32(123)} // []int32 | (optional) - minVidN := []int32{int32(123)} // []int32 | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -11144,7 +11122,6 @@ func main() { scopeTypeN := "scopeTypeN_example" // string | (optional) site := int32(56) // int32 | (optional) siteGroup := int32(56) // int32 | (optional) - sitegroup := int32(56) // int32 | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -11162,7 +11139,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11185,7 +11162,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster** | **int32** | | **clusterGroup** | **int32** | | - **clustergroup** | **int32** | | + **containsVid** | **float32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -11221,20 +11198,6 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **location** | **int32** | | - **maxVid** | **[]int32** | | - **maxVidEmpty** | **bool** | | - **maxVidGt** | **[]int32** | | - **maxVidGte** | **[]int32** | | - **maxVidLt** | **[]int32** | | - **maxVidLte** | **[]int32** | | - **maxVidN** | **[]int32** | | - **minVid** | **[]int32** | | - **minVidEmpty** | **bool** | | - **minVidGt** | **[]int32** | | - **minVidGte** | **[]int32** | | - **minVidLt** | **[]int32** | | - **minVidLte** | **[]int32** | | - **minVidN** | **[]int32** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -11263,7 +11226,6 @@ Name | Type | Description | Notes **scopeTypeN** | **string** | | **site** | **int32** | | **siteGroup** | **int32** | | - **sitegroup** | **int32** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -11923,20 +11885,20 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) @@ -11945,10 +11907,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12043,20 +12005,20 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this VLAN | @@ -12065,10 +12027,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -12737,10 +12699,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12841,10 +12803,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/Job.md b/docs/Job.md index 1366c5915..9db5ca2fd 100644 --- a/docs/Job.md +++ b/docs/Job.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectType** | **string** | | [readonly] **ObjectId** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | -**Status** | [**JobStatus**](JobStatus.md) | | +**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | **Created** | **time.Time** | | [readonly] **Scheduled** | Pointer to **NullableTime** | | [optional] **Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional] **Started** | Pointer to **NullableTime** | | [optional] **Completed** | Pointer to **NullableTime** | | [optional] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Data** | Pointer to **interface{}** | | [optional] **Error** | **string** | | [readonly] **JobId** | **string** | | @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewJob -`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string, ) *Job` +`func NewJob(id int32, url string, displayUrl string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string, ) *Job` NewJob instantiates a new Job object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Job) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Job) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Job) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Job) GetDisplay() string` @@ -177,20 +198,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *Job) GetStatus() JobStatus` +`func (o *Job) GetStatus() BriefJobStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *Job) GetStatusOk() (*JobStatus, bool)` +`func (o *Job) GetStatusOk() (*BriefJobStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *Job) SetStatus(v JobStatus)` +`func (o *Job) SetStatus(v BriefJobStatus)` SetStatus sets Status field to given value. @@ -357,20 +378,20 @@ HasCompleted returns a boolean if a field has been set. UnsetCompleted ensures that no value is present for Completed, not even an explicit nil ### GetUser -`func (o *Job) GetUser() User` +`func (o *Job) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Job) GetUserOk() (*User, bool)` +`func (o *Job) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Job) SetUser(v User)` +`func (o *Job) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/JournalEntry.md b/docs/JournalEntry.md index de511cc13..2470a93a0 100644 --- a/docs/JournalEntry.md +++ b/docs/JournalEntry.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **AssignedObjectType** | **string** | | **AssignedObjectId** | **int64** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewJournalEntry -`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` +`func NewJournalEntry(id int32, url string, displayUrl string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` NewJournalEntry instantiates a new JournalEntry object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *JournalEntry) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *JournalEntry) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *JournalEntry) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *JournalEntry) GetDisplay() string` diff --git a/docs/L2VPN.md b/docs/L2VPN.md index 85cc2783e..015695032 100644 --- a/docs/L2VPN.md +++ b/docs/L2VPN.md @@ -6,18 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNType**](L2VPNType.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPN -`func NewL2VPN(id int32, url string, display string, name string, slug string, ) *L2VPN` +`func NewL2VPN(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *L2VPN` NewL2VPN instantiates a new L2VPN object This constructor will assign default values to properties that have it defined, @@ -72,6 +81,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *L2VPN) GetDisplay() string` @@ -169,20 +198,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPN) GetType() L2VPNType` +`func (o *L2VPN) GetType() BriefL2VPNType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPN) GetTypeOk() (*L2VPNType, bool)` +`func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPN) SetType(v L2VPNType)` +`func (o *L2VPN) SetType(v BriefL2VPNType)` SetType sets Type field to given value. @@ -192,6 +221,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPN) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPN) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPN) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPN) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPN) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPN) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPN) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPN) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPN) GetDescription() string` @@ -217,6 +296,176 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPN) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *L2VPN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPN) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPN) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPN) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *L2VPN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *L2VPN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *L2VPN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *L2VPN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/L2VPNRequest.md b/docs/L2VPNRequest.md index 7c5fb24c8..22f327eb1 100644 --- a/docs/L2VPNRequest.md +++ b/docs/L2VPNRequest.md @@ -7,8 +7,14 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -106,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPNRequest) GetType() L2VPNTypeValue` +`func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -129,6 +135,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPNRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPNRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPNRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPNRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPNRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPNRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPNRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPNRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPNRequest) GetDescription() string` @@ -154,6 +210,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPNRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPNRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPNRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPNRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPNRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *L2VPNRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPNRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPNRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPNRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPNRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/L2VPNTermination.md b/docs/L2VPNTermination.md index 4c558a8e6..d4e22cfc7 100644 --- a/docs/L2VPNTermination.md +++ b/docs/L2VPNTermination.md @@ -6,14 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**L2vpn** | [**L2VPN**](L2VPN.md) | | +**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**AssignedObject** | **interface{}** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPNTermination -`func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN, ) *L2VPNTermination` +`func NewL2VPNTermination(id int32, url string, displayUrl string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination` NewL2VPNTermination instantiates a new L2VPNTermination object This constructor will assign default values to properties that have it defined, @@ -68,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPNTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPNTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *L2VPNTermination) GetDisplay() string` @@ -90,24 +118,204 @@ SetDisplay sets Display field to given value. ### GetL2vpn -`func (o *L2VPNTermination) GetL2vpn() L2VPN` +`func (o *L2VPNTermination) GetL2vpn() BriefL2VPN` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool)` +`func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTermination) SetL2vpn(v L2VPN)` +`func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTermination) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTermination) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTermination) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTermination) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetAssignedObject + +`func (o *L2VPNTermination) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *L2VPNTermination) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + + +### SetAssignedObjectNil + +`func (o *L2VPNTermination) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *L2VPNTermination) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetTags + +`func (o *L2VPNTermination) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTermination) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNTermination) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTermination) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTermination) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTermination) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNTermination) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTermination) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPNTermination) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *L2VPNTermination) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *L2VPNTermination) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPNTermination) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPNTermination) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *L2VPNTermination) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *L2VPNTermination) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPNTermination) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/L2VPNTerminationRequest.md b/docs/L2VPNTerminationRequest.md index 06ee7633d..2fb1317c5 100644 --- a/docs/L2VPNTerminationRequest.md +++ b/docs/L2VPNTerminationRequest.md @@ -4,13 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | [**L2VPNRequest**](L2VPNRequest.md) | | +**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewL2VPNTerminationRequest -`func NewL2VPNTerminationRequest(l2vpn L2VPNRequest, ) *L2VPNTerminationRequest` +`func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64, ) *L2VPNTerminationRequest` NewL2VPNTerminationRequest instantiates a new L2VPNTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -27,24 +31,114 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTerminationRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetTags + +`func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Location.md b/docs/Location.md index 4130ec547..e13e7a298 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -6,18 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSite**](BriefSite.md) | | +**Parent** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional] +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **RackCount** | **int32** | | [readonly] [default to 0] +**DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *Location` +`func NewLocation(id int32, url string, displayUrl string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, depth int32, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -72,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Location) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Location) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Location) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Location) GetDisplay() string` @@ -132,6 +163,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *Location) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Location) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Location) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *Location) GetParent() NestedLocation` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *Location) GetParentOk() (*NestedLocation, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *Location) SetParent(v NestedLocation)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *Location) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *Location) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *Location) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *Location) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Location) GetStatusOk() (*LocationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Location) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Location) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Location) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Location) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Location) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Location) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Location) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Location) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Location) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Location) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Location) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Location) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *Location) GetDescription() string` @@ -157,6 +328,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Location) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Location) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Location) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Location) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Location) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Location) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Location) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Location) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Location) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Location) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Location) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Location) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Location) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Location) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Location) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Location) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Location) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Location) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetRackCount `func (o *Location) GetRackCount() int32` @@ -177,6 +458,31 @@ and a boolean to check if the value has been set. SetRackCount sets RackCount field to given value. +### GetDeviceCount + +`func (o *Location) GetDeviceCount() int32` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Location) GetDeviceCountOk() (*int32, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Location) SetDeviceCount(v int32)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Location) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + ### GetDepth `func (o *Location) GetDepth() int32` diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md index f23f111fd..0dd6b179c 100644 --- a/docs/LocationRequest.md +++ b/docs/LocationRequest.md @@ -6,13 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewLocationRequest -`func NewLocationRequest(name string, slug string, ) *LocationRequest` +`func NewLocationRequest(name string, slug string, site BriefSiteRequest, ) *LocationRequest` NewLocationRequest instantiates a new LocationRequest object This constructor will assign default values to properties that have it defined, @@ -67,6 +74,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *LocationRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *LocationRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *LocationRequest) GetParent() NestedLocationRequest` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *LocationRequest) SetParent(v NestedLocationRequest)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *LocationRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *LocationRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *LocationRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *LocationRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *LocationRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LocationRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *LocationRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *LocationRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *LocationRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *LocationRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *LocationRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *LocationRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *LocationRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *LocationRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *LocationRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *LocationRequest) GetDescription() string` @@ -92,6 +239,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *LocationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LocationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LocationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LocationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *LocationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *LocationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *LocationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *LocationRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/LocationStatus.md b/docs/LocationStatus.md new file mode 100644 index 000000000..817680af3 --- /dev/null +++ b/docs/LocationStatus.md @@ -0,0 +1,82 @@ +# LocationStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Label** | Pointer to [**LocationStatusLabel**](LocationStatusLabel.md) | | [optional] + +## Methods + +### NewLocationStatus + +`func NewLocationStatus() *LocationStatus` + +NewLocationStatus instantiates a new LocationStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewLocationStatusWithDefaults + +`func NewLocationStatusWithDefaults() *LocationStatus` + +NewLocationStatusWithDefaults instantiates a new LocationStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *LocationStatus) GetValue() LocationStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *LocationStatus) GetValueOk() (*LocationStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *LocationStatus) SetValue(v LocationStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *LocationStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *LocationStatus) GetLabel() LocationStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *LocationStatus) GetLabelOk() (*LocationStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *LocationStatus) SetLabel(v LocationStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *LocationStatus) HasLabel() bool` + +HasLabel 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/docs/LocationStatusLabel.md b/docs/LocationStatusLabel.md new file mode 100644 index 000000000..611c91d2b --- /dev/null +++ b/docs/LocationStatusLabel.md @@ -0,0 +1,19 @@ +# LocationStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `STAGING` (value: `"Staging"`) + +* `ACTIVE` (value: `"Active"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + +* `RETIRED` (value: `"Retired"`) + + +[[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/docs/LocationStatusValue.md b/docs/LocationStatusValue.md new file mode 100644 index 000000000..37cbbe607 --- /dev/null +++ b/docs/LocationStatusValue.md @@ -0,0 +1,19 @@ +# LocationStatusValue + +## Enum + + +* `PLANNED` (value: `"planned"`) + +* `STAGING` (value: `"staging"`) + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `RETIRED` (value: `"retired"`) + + +[[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/docs/Manufacturer.md b/docs/Manufacturer.md index 753c72fe6..195a70ad0 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -6,17 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] +**InventoryitemCount** | **int64** | | [readonly] +**PlatformCount** | **int64** | | [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, display string, name string, slug string, ) *Manufacturer` +`func NewManufacturer(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, platformCount int64, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -71,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Manufacturer) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Manufacturer) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Manufacturer) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Manufacturer) GetDisplay() string` @@ -156,6 +183,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Manufacturer) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Manufacturer) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Manufacturer) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Manufacturer) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Manufacturer) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Manufacturer) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Manufacturer) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Manufacturer) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Manufacturer) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Manufacturer) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Manufacturer) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Manufacturer) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Manufacturer) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Manufacturer) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Manufacturer) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Manufacturer) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Manufacturer) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDevicetypeCount `func (o *Manufacturer) GetDevicetypeCount() int64` @@ -181,6 +318,46 @@ SetDevicetypeCount sets DevicetypeCount field to given value. HasDevicetypeCount returns a boolean if a field has been set. +### GetInventoryitemCount + +`func (o *Manufacturer) GetInventoryitemCount() int64` + +GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. + +### GetInventoryitemCountOk + +`func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool)` + +GetInventoryitemCountOk returns a tuple with the InventoryitemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryitemCount + +`func (o *Manufacturer) SetInventoryitemCount(v int64)` + +SetInventoryitemCount sets InventoryitemCount field to given value. + + +### GetPlatformCount + +`func (o *Manufacturer) GetPlatformCount() int64` + +GetPlatformCount returns the PlatformCount field if non-nil, zero value otherwise. + +### GetPlatformCountOk + +`func (o *Manufacturer) GetPlatformCountOk() (*int64, bool)` + +GetPlatformCountOk returns a tuple with the PlatformCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformCount + +`func (o *Manufacturer) SetPlatformCount(v int64)` + +SetPlatformCount sets PlatformCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ManufacturerRequest.md b/docs/ManufacturerRequest.md index 669fe2389..6f878526b 100644 --- a/docs/ManufacturerRequest.md +++ b/docs/ManufacturerRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ManufacturerRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ManufacturerRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ManufacturerRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ManufacturerRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ManufacturerRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ManufacturerRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ManufacturerRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Module.md b/docs/Module.md index a9257180a..06a0d5e35 100644 --- a/docs/Module.md +++ b/docs/Module.md @@ -6,15 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | +**ModuleType** | [**BriefModuleType**](BriefModuleType.md) | | +**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModule -`func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay, ) *Module` +`func NewModule(id int32, url string, displayUrl string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime, ) *Module` NewModule instantiates a new Module object This constructor will assign default values to properties that have it defined, @@ -69,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Module) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Module) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Module) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Module) GetDisplay() string` @@ -91,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Module) GetDevice() Device` +`func (o *Module) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Module) GetDeviceOk() (*Device, bool)` +`func (o *Module) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Module) SetDevice(v Device)` +`func (o *Module) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -129,6 +160,271 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *Module) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *Module) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *Module) GetStatus() ModuleStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Module) GetStatusOk() (*ModuleStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Module) SetStatus(v ModuleStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Module) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *Module) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Module) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Module) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Module) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Module) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Module) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Module) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Module) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Module) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Module) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *Module) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Module) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Module) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Module) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *Module) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Module) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Module) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Module) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Module) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Module) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Module) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Module) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Module) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Module) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Module) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Module) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Module) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Module) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Module) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Module) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Module) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Module) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Module) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Module) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Module) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Module) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ModuleBay.md b/docs/ModuleBay.md index 71f734939..eab5b9aa0 100644 --- a/docs/ModuleBay.md +++ b/docs/ModuleBay.md @@ -6,10 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModule**](Module.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -22,7 +24,7 @@ Name | Type | Description | Notes ### NewModuleBay -`func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` +`func NewModuleBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` NewModuleBay instantiates a new ModuleBay object This constructor will assign default values to properties that have it defined, @@ -77,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ModuleBay) GetDisplay() string` @@ -99,24 +121,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ModuleBay) GetDevice() Device` +`func (o *ModuleBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBay) GetDeviceOk() (*Device, bool)` +`func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBay) SetDevice(v Device)` +`func (o *ModuleBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBay) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBay) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBay) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBay) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBay) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBay) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBay) GetName() string` @@ -139,20 +196,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBay) GetInstalledModule() Module` +`func (o *ModuleBay) GetInstalledModule() BriefModule` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool)` +`func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBay) SetInstalledModule(v Module)` +`func (o *ModuleBay) SetInstalledModule(v BriefModule)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayRequest.md b/docs/ModuleBayRequest.md index aa37cbe9d..2062d984b 100644 --- a/docs/ModuleBayRequest.md +++ b/docs/ModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewModuleBayRequest -`func NewModuleBayRequest(device DeviceRequest, name string, ) *ModuleBayRequest` +`func NewModuleBayRequest(device BriefDeviceRequest, name string, ) *ModuleBayRequest` NewModuleBayRequest instantiates a new ModuleBayRequest object This constructor will assign default values to properties that have it defined, @@ -34,24 +35,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleBayRequest) GetDevice() DeviceRequest` +`func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBayRequest) GetName() string` @@ -74,20 +110,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md index 237edfcaf..1bac16365 100644 --- a/docs/ModuleBayTemplate.md +++ b/docs/ModuleBayTemplate.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplate -`func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` +`func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` NewModuleBayTemplate instantiates a new ModuleBayTemplate object This constructor will assign default values to properties that have it defined, @@ -96,24 +97,74 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ModuleBayTemplate) GetDeviceType() DeviceType` +`func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplate) SetDeviceType(v DeviceType)` +`func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplate) GetName() string` diff --git a/docs/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md index 75345ace9..96ce2a437 100644 --- a/docs/ModuleBayTemplateRequest.md +++ b/docs/ModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplateRequest -`func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *ModuleBayTemplateRequest` +`func NewModuleBayTemplateRequest(name string, ) *ModuleBayTemplateRequest` NewModuleBayTemplateRequest instantiates a new ModuleBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -31,24 +32,74 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplateRequest) GetName() string` diff --git a/docs/ModuleRequest.md b/docs/ModuleRequest.md index 648ff41f3..11b1cbda2 100644 --- a/docs/ModuleRequest.md +++ b/docs/ModuleRequest.md @@ -4,14 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleRequest -`func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest, ) *ModuleRequest` +`func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest, ) *ModuleRequest` NewModuleRequest instantiates a new ModuleRequest object This constructor will assign default values to properties that have it defined, @@ -28,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleRequest) GetDevice() DeviceRequest` +`func (o *ModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -66,6 +74,211 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *ModuleRequest) GetStatus() ModuleStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModuleRequest) SetStatus(v ModuleStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModuleRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *ModuleRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *ModuleRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *ModuleRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *ModuleRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *ModuleRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *ModuleRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *ModuleRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *ModuleRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *ModuleRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *ModuleRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *ModuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModuleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *ModuleRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ModuleStatus.md b/docs/ModuleStatus.md new file mode 100644 index 000000000..5ad5a6ded --- /dev/null +++ b/docs/ModuleStatus.md @@ -0,0 +1,82 @@ +# ModuleStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Label** | Pointer to [**ModuleStatusLabel**](ModuleStatusLabel.md) | | [optional] + +## Methods + +### NewModuleStatus + +`func NewModuleStatus() *ModuleStatus` + +NewModuleStatus instantiates a new ModuleStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModuleStatusWithDefaults + +`func NewModuleStatusWithDefaults() *ModuleStatus` + +NewModuleStatusWithDefaults instantiates a new ModuleStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *ModuleStatus) GetValue() ModuleStatusValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModuleStatus) GetValueOk() (*ModuleStatusValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModuleStatus) SetValue(v ModuleStatusValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModuleStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ModuleStatus) GetLabel() ModuleStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ModuleStatus) SetLabel(v ModuleStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ModuleStatus) HasLabel() bool` + +HasLabel 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/docs/ModuleStatusLabel.md b/docs/ModuleStatusLabel.md new file mode 100644 index 000000000..3673c61f2 --- /dev/null +++ b/docs/ModuleStatusLabel.md @@ -0,0 +1,21 @@ +# ModuleStatusLabel + +## Enum + + +* `OFFLINE` (value: `"Offline"`) + +* `ACTIVE` (value: `"Active"`) + +* `PLANNED` (value: `"Planned"`) + +* `STAGED` (value: `"Staged"`) + +* `FAILED` (value: `"Failed"`) + +* `DECOMMISSIONING` (value: `"Decommissioning"`) + + +[[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/docs/ModuleStatusValue.md b/docs/ModuleStatusValue.md new file mode 100644 index 000000000..6e8631fd7 --- /dev/null +++ b/docs/ModuleStatusValue.md @@ -0,0 +1,21 @@ +# ModuleStatusValue + +## Enum + + +* `OFFLINE` (value: `"offline"`) + +* `ACTIVE` (value: `"active"`) + +* `PLANNED` (value: `"planned"`) + +* `STAGED` (value: `"staged"`) + +* `FAILED` (value: `"failed"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + + +[[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/docs/ModuleType.md b/docs/ModuleType.md index 2c09e327c..c106f7fbb 100644 --- a/docs/ModuleType.md +++ b/docs/ModuleType.md @@ -6,16 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeAirflow**](ModuleTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModuleType -`func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string, ) *ModuleType` +`func NewModuleType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime, ) *ModuleType` NewModuleType instantiates a new ModuleType object This constructor will assign default values to properties that have it defined, @@ -70,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ModuleType) GetDisplay() string` @@ -92,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *ModuleType) GetManufacturer() Manufacturer` +`func (o *ModuleType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleType) SetManufacturer(v Manufacturer)` +`func (o *ModuleType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -130,6 +160,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleType) GetAirflow() ModuleTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleType) SetAirflow(v ModuleTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleType) GetDescription() string` @@ -155,6 +315,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ModuleType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ModuleType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ModuleType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ModuleType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ModuleType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ModuleType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ModuleType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ModuleType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ModuleType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ModuleTypeAirflow.md b/docs/ModuleTypeAirflow.md new file mode 100644 index 000000000..2d957066b --- /dev/null +++ b/docs/ModuleTypeAirflow.md @@ -0,0 +1,82 @@ +# ModuleTypeAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] +**Label** | Pointer to [**ModuleTypeAirflowLabel**](ModuleTypeAirflowLabel.md) | | [optional] + +## Methods + +### NewModuleTypeAirflow + +`func NewModuleTypeAirflow() *ModuleTypeAirflow` + +NewModuleTypeAirflow instantiates a new ModuleTypeAirflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewModuleTypeAirflowWithDefaults + +`func NewModuleTypeAirflowWithDefaults() *ModuleTypeAirflow` + +NewModuleTypeAirflowWithDefaults instantiates a new ModuleTypeAirflow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *ModuleTypeAirflow) GetValue() ModuleTypeAirflowValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *ModuleTypeAirflow) GetValueOk() (*ModuleTypeAirflowValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *ModuleTypeAirflow) SetValue(v ModuleTypeAirflowValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *ModuleTypeAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *ModuleTypeAirflow) GetLabel() ModuleTypeAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *ModuleTypeAirflow) GetLabelOk() (*ModuleTypeAirflowLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *ModuleTypeAirflow) HasLabel() bool` + +HasLabel 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/docs/ModuleTypeAirflowLabel.md b/docs/ModuleTypeAirflowLabel.md new file mode 100644 index 000000000..fc30c3c58 --- /dev/null +++ b/docs/ModuleTypeAirflowLabel.md @@ -0,0 +1,21 @@ +# ModuleTypeAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + +* `LEFT_TO_RIGHT` (value: `"Left to right"`) + +* `RIGHT_TO_LEFT` (value: `"Right to left"`) + +* `SIDE_TO_REAR` (value: `"Side to rear"`) + +* `PASSIVE` (value: `"Passive"`) + + +[[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/docs/ModuleTypeAirflowValue.md b/docs/ModuleTypeAirflowValue.md new file mode 100644 index 000000000..4656d1197 --- /dev/null +++ b/docs/ModuleTypeAirflowValue.md @@ -0,0 +1,23 @@ +# ModuleTypeAirflowValue + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ModuleTypeRequest.md b/docs/ModuleTypeRequest.md index 53185cdf3..ad422214b 100644 --- a/docs/ModuleTypeRequest.md +++ b/docs/ModuleTypeRequest.md @@ -4,15 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleTypeRequest -`func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *ModuleTypeRequest` +`func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *ModuleTypeRequest` NewModuleTypeRequest instantiates a new ModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -29,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -67,6 +74,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleTypeRequest) GetDescription() string` @@ -92,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ModuleTypeRequestAirflow.md b/docs/ModuleTypeRequestAirflow.md new file mode 100644 index 000000000..25efc1b85 --- /dev/null +++ b/docs/ModuleTypeRequestAirflow.md @@ -0,0 +1,23 @@ +# ModuleTypeRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `LEFT_TO_RIGHT` (value: `"left-to-right"`) + +* `RIGHT_TO_LEFT` (value: `"right-to-left"`) + +* `SIDE_TO_REAR` (value: `"side-to-rear"`) + +* `PASSIVE` (value: `"passive"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedContactGroup.md b/docs/NestedContactGroup.md index 57a1c07f4..6778e5dee 100644 --- a/docs/NestedContactGroup.md +++ b/docs/NestedContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedContactGroup -`func NewNestedContactGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedContactGroup` +`func NewNestedContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedContactGroup` NewNestedContactGroup instantiates a new NestedContactGroup object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedContactGroup) GetDisplay() string` diff --git a/docs/NestedDevice.md b/docs/NestedDevice.md index ef9a0807e..04b004992 100644 --- a/docs/NestedDevice.md +++ b/docs/NestedDevice.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedDevice -`func NewNestedDevice(id int32, url string, display string, ) *NestedDevice` +`func NewNestedDevice(id int32, url string, displayUrl string, display string, ) *NestedDevice` NewNestedDevice instantiates a new NestedDevice object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedDevice) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedDevice) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedDevice) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedDevice) GetDisplay() string` diff --git a/docs/NestedGroup.md b/docs/NestedGroup.md index 2510f7a46..9708bb72d 100644 --- a/docs/NestedGroup.md +++ b/docs/NestedGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedGroup -`func NewNestedGroup(id int32, url string, display string, name string, ) *NestedGroup` +`func NewNestedGroup(id int32, url string, displayUrl string, display string, name string, ) *NestedGroup` NewNestedGroup instantiates a new NestedGroup object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedGroup) GetDisplay() string` diff --git a/docs/NestedIPAddress.md b/docs/NestedIPAddress.md new file mode 100644 index 000000000..6f1cebf80 --- /dev/null +++ b/docs/NestedIPAddress.md @@ -0,0 +1,156 @@ +# NestedIPAddress + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Family** | **int32** | | [readonly] +**Address** | **string** | | + +## Methods + +### NewNestedIPAddress + +`func NewNestedIPAddress(id int32, url string, displayUrl string, display string, family int32, address string, ) *NestedIPAddress` + +NewNestedIPAddress instantiates a new NestedIPAddress object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedIPAddressWithDefaults + +`func NewNestedIPAddressWithDefaults() *NestedIPAddress` + +NewNestedIPAddressWithDefaults instantiates a new NestedIPAddress object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedIPAddress) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedIPAddress) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedIPAddress) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedIPAddress) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedIPAddress) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedIPAddress) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedIPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedIPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedIPAddress) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedIPAddress) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedIPAddress) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetFamily + +`func (o *NestedIPAddress) GetFamily() int32` + +GetFamily returns the Family field if non-nil, zero value otherwise. + +### GetFamilyOk + +`func (o *NestedIPAddress) GetFamilyOk() (*int32, bool)` + +GetFamilyOk returns a tuple with the Family field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFamily + +`func (o *NestedIPAddress) SetFamily(v int32)` + +SetFamily sets Family field to given value. + + +### GetAddress + +`func (o *NestedIPAddress) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *NestedIPAddress) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *NestedIPAddress) SetAddress(v string)` + +SetAddress sets Address field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedIPAddressRequest.md b/docs/NestedIPAddressRequest.md new file mode 100644 index 000000000..731329f5b --- /dev/null +++ b/docs/NestedIPAddressRequest.md @@ -0,0 +1,51 @@ +# NestedIPAddressRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Address** | **string** | | + +## Methods + +### NewNestedIPAddressRequest + +`func NewNestedIPAddressRequest(address string, ) *NestedIPAddressRequest` + +NewNestedIPAddressRequest instantiates a new NestedIPAddressRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedIPAddressRequestWithDefaults + +`func NewNestedIPAddressRequestWithDefaults() *NestedIPAddressRequest` + +NewNestedIPAddressRequestWithDefaults instantiates a new NestedIPAddressRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetAddress + +`func (o *NestedIPAddressRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *NestedIPAddressRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *NestedIPAddressRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedInterface.md b/docs/NestedInterface.md index f5bc6feec..297c573b7 100644 --- a/docs/NestedInterface.md +++ b/docs/NestedInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Device** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Name** | **string** | | @@ -16,7 +17,7 @@ Name | Type | Description | Notes ### NewNestedInterface -`func NewNestedInterface(id int32, url string, display string, device NestedDevice, name string, occupied bool, ) *NestedInterface` +`func NewNestedInterface(id int32, url string, displayUrl string, display string, device NestedDevice, name string, occupied bool, ) *NestedInterface` NewNestedInterface instantiates a new NestedInterface object This constructor will assign default values to properties that have it defined, @@ -71,6 +72,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedInterface) GetDisplay() string` diff --git a/docs/NestedLocation.md b/docs/NestedLocation.md new file mode 100644 index 000000000..6c80b914e --- /dev/null +++ b/docs/NestedLocation.md @@ -0,0 +1,177 @@ +# NestedLocation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedLocation + +`func NewNestedLocation(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedLocation` + +NewNestedLocation instantiates a new NestedLocation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedLocationWithDefaults + +`func NewNestedLocationWithDefaults() *NestedLocation` + +NewNestedLocationWithDefaults instantiates a new NestedLocation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedLocation) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedLocation) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedLocation) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedLocation) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedLocation) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedLocation) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedLocation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedLocation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedLocation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedLocation) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedLocation) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedLocation) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedLocation) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedLocation) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedLocation) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedLocation) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedLocation) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *NestedLocation) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedLocation) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedLocation) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedLocation) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedLocationRequest.md b/docs/NestedLocationRequest.md new file mode 100644 index 000000000..d3b0a011e --- /dev/null +++ b/docs/NestedLocationRequest.md @@ -0,0 +1,72 @@ +# NestedLocationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Slug** | **string** | | + +## Methods + +### NewNestedLocationRequest + +`func NewNestedLocationRequest(name string, slug string, ) *NestedLocationRequest` + +NewNestedLocationRequest instantiates a new NestedLocationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedLocationRequestWithDefaults + +`func NewNestedLocationRequestWithDefaults() *NestedLocationRequest` + +NewNestedLocationRequestWithDefaults instantiates a new NestedLocationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *NestedLocationRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedLocationRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedLocationRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedLocationRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedLocationRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *NestedLocationRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedModuleBay.md b/docs/NestedModuleBay.md index fd92789c2..937d673d8 100644 --- a/docs/NestedModuleBay.md +++ b/docs/NestedModuleBay.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**InstalledModule** | Pointer to [**NullableModuleBayNestedModule**](ModuleBayNestedModule.md) | | [optional] **Name** | **string** | | ## Methods ### NewNestedModuleBay -`func NewNestedModuleBay(id int32, url string, display string, name string, ) *NestedModuleBay` +`func NewNestedModuleBay(id int32, url string, displayUrl string, display string, name string, ) *NestedModuleBay` NewNestedModuleBay instantiates a new NestedModuleBay object This constructor will assign default values to properties that have it defined, @@ -69,61 +69,46 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplay +### GetDisplayUrl -`func (o *NestedModuleBay) GetDisplay() string` +`func (o *NestedModuleBay) GetDisplayUrl() string` -GetDisplay returns the Display field if non-nil, zero value otherwise. +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. -### GetDisplayOk +### GetDisplayUrlOk -`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` +`func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool)` -GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplay +### SetDisplayUrl -`func (o *NestedModuleBay) SetDisplay(v string)` +`func (o *NestedModuleBay) SetDisplayUrl(v string)` -SetDisplay sets Display field to given value. +SetDisplayUrl sets DisplayUrl field to given value. -### GetInstalledModule +### GetDisplay -`func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule` +`func (o *NestedModuleBay) GetDisplay() string` -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. +GetDisplay returns the Display field if non-nil, zero value otherwise. -### GetInstalledModuleOk +### GetDisplayOk -`func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool)` +`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetInstalledModule - -`func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule)` - -SetInstalledModule sets InstalledModule field to given value. - -### HasInstalledModule - -`func (o *NestedModuleBay) HasInstalledModule() bool` - -HasInstalledModule returns a boolean if a field has been set. - -### SetInstalledModuleNil +### SetDisplay -`func (o *NestedModuleBay) SetInstalledModuleNil(b bool)` +`func (o *NestedModuleBay) SetDisplay(v string)` - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +SetDisplay sets Display field to given value. -### UnsetInstalledModule -`func (o *NestedModuleBay) UnsetInstalledModule()` -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBay) GetName() string` diff --git a/docs/NestedModuleBayRequest.md b/docs/NestedModuleBayRequest.md index e23d88b56..abf39c21c 100644 --- a/docs/NestedModuleBayRequest.md +++ b/docs/NestedModuleBayRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InstalledModule** | Pointer to [**NullableModuleBayNestedModuleRequest**](ModuleBayNestedModuleRequest.md) | | [optional] **Name** | **string** | | ## Methods @@ -26,41 +25,6 @@ NewNestedModuleBayRequestWithDefaults instantiates a new NestedModuleBayRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetInstalledModule - -`func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest` - -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. - -### GetInstalledModuleOk - -`func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool)` - -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstalledModule - -`func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest)` - -SetInstalledModule sets InstalledModule field to given value. - -### HasInstalledModule - -`func (o *NestedModuleBayRequest) HasInstalledModule() bool` - -HasInstalledModule returns a boolean if a field has been set. - -### SetInstalledModuleNil - -`func (o *NestedModuleBayRequest) SetInstalledModuleNil(b bool)` - - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil - -### UnsetInstalledModule -`func (o *NestedModuleBayRequest) UnsetInstalledModule()` - -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBayRequest) GetName() string` diff --git a/docs/NestedProviderAccount.md b/docs/NestedProviderAccount.md new file mode 100644 index 000000000..afec51cf4 --- /dev/null +++ b/docs/NestedProviderAccount.md @@ -0,0 +1,161 @@ +# NestedProviderAccount + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | Pointer to **string** | | [optional] +**Account** | **string** | | + +## Methods + +### NewNestedProviderAccount + +`func NewNestedProviderAccount(id int32, url string, displayUrl string, display string, account string, ) *NestedProviderAccount` + +NewNestedProviderAccount instantiates a new NestedProviderAccount object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedProviderAccountWithDefaults + +`func NewNestedProviderAccountWithDefaults() *NestedProviderAccount` + +NewNestedProviderAccountWithDefaults instantiates a new NestedProviderAccount object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedProviderAccount) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedProviderAccount) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedProviderAccount) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedProviderAccount) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedProviderAccount) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedProviderAccount) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedProviderAccount) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedProviderAccount) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedProviderAccount) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedProviderAccount) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedProviderAccount) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedProviderAccount) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *NestedProviderAccount) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetAccount + +`func (o *NestedProviderAccount) GetAccount() string` + +GetAccount returns the Account field if non-nil, zero value otherwise. + +### GetAccountOk + +`func (o *NestedProviderAccount) GetAccountOk() (*string, bool)` + +GetAccountOk returns a tuple with the Account field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccount + +`func (o *NestedProviderAccount) SetAccount(v string)` + +SetAccount sets Account field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedRegion.md b/docs/NestedRegion.md index eb6f37ed6..54e2205b3 100644 --- a/docs/NestedRegion.md +++ b/docs/NestedRegion.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedRegion -`func NewNestedRegion(id int32, url string, display string, name string, slug string, depth int32, ) *NestedRegion` +`func NewNestedRegion(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedRegion` NewNestedRegion instantiates a new NestedRegion object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedRegion) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedRegion) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedRegion) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedRegion) GetDisplay() string` diff --git a/docs/NestedSiteGroup.md b/docs/NestedSiteGroup.md index 0dd67ab6d..02f2632db 100644 --- a/docs/NestedSiteGroup.md +++ b/docs/NestedSiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedSiteGroup -`func NewNestedSiteGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` +`func NewNestedSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` NewNestedSiteGroup instantiates a new NestedSiteGroup object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedSiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedSiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedSiteGroup) GetDisplay() string` diff --git a/docs/NestedTag.md b/docs/NestedTag.md index f87362fdc..69ab5ce08 100644 --- a/docs/NestedTag.md +++ b/docs/NestedTag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedTag -`func NewNestedTag(id int32, url string, display string, name string, slug string, ) *NestedTag` +`func NewNestedTag(id int32, url string, displayUrl string, display string, name string, slug string, ) *NestedTag` NewNestedTag instantiates a new NestedTag object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedTag) GetDisplay() string` diff --git a/docs/NestedTenantGroup.md b/docs/NestedTenantGroup.md index 3acbe4a23..49035b582 100644 --- a/docs/NestedTenantGroup.md +++ b/docs/NestedTenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -15,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedTenantGroup -`func NewNestedTenantGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` +`func NewNestedTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` NewNestedTenantGroup instantiates a new NestedTenantGroup object This constructor will assign default values to properties that have it defined, @@ -70,6 +71,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedTenantGroup) GetDisplay() string` diff --git a/docs/NestedUser.md b/docs/NestedUser.md index f4d0be09f..adfe8b9c3 100644 --- a/docs/NestedUser.md +++ b/docs/NestedUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedUser -`func NewNestedUser(id int32, url string, display string, username string, ) *NestedUser` +`func NewNestedUser(id int32, url string, displayUrl string, display string, username string, ) *NestedUser` NewNestedUser instantiates a new NestedUser object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedUser) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedUser) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedUser) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedUser) GetDisplay() string` diff --git a/docs/NestedVMInterface.md b/docs/NestedVMInterface.md index bdc94d495..8fcc143e8 100644 --- a/docs/NestedVMInterface.md +++ b/docs/NestedVMInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | | [readonly] **Name** | **string** | | @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedVMInterface -`func NewNestedVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string, ) *NestedVMInterface` +`func NewNestedVMInterface(id int32, url string, displayUrl string, display string, virtualMachine NestedVirtualMachine, name string, ) *NestedVMInterface` NewNestedVMInterface instantiates a new NestedVMInterface object This constructor will assign default values to properties that have it defined, @@ -69,6 +70,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedVMInterface) GetDisplay() string` diff --git a/docs/NestedVirtualMachine.md b/docs/NestedVirtualMachine.md index 95a5a65aa..34103ae89 100644 --- a/docs/NestedVirtualMachine.md +++ b/docs/NestedVirtualMachine.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedVirtualMachine -`func NewNestedVirtualMachine(id int32, url string, display string, name string, ) *NestedVirtualMachine` +`func NewNestedVirtualMachine(id int32, url string, displayUrl string, display string, name string, ) *NestedVirtualMachine` NewNestedVirtualMachine instantiates a new NestedVirtualMachine object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVirtualMachine) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVirtualMachine) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedVirtualMachine) GetDisplay() string` diff --git a/docs/NestedWirelessLANGroup.md b/docs/NestedWirelessLANGroup.md new file mode 100644 index 000000000..134d92860 --- /dev/null +++ b/docs/NestedWirelessLANGroup.md @@ -0,0 +1,177 @@ +# NestedWirelessLANGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Name** | **string** | | +**Slug** | **string** | | +**Depth** | **int32** | | [readonly] + +## Methods + +### NewNestedWirelessLANGroup + +`func NewNestedWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` + +NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNestedWirelessLANGroupWithDefaults + +`func NewNestedWirelessLANGroupWithDefaults() *NestedWirelessLANGroup` + +NewNestedWirelessLANGroupWithDefaults instantiates a new NestedWirelessLANGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NestedWirelessLANGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NestedWirelessLANGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NestedWirelessLANGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NestedWirelessLANGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NestedWirelessLANGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NestedWirelessLANGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *NestedWirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *NestedWirelessLANGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NestedWirelessLANGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NestedWirelessLANGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetName + +`func (o *NestedWirelessLANGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NestedWirelessLANGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NestedWirelessLANGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetSlug + +`func (o *NestedWirelessLANGroup) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *NestedWirelessLANGroup) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *NestedWirelessLANGroup) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDepth + +`func (o *NestedWirelessLANGroup) GetDepth() int32` + +GetDepth returns the Depth field if non-nil, zero value otherwise. + +### GetDepthOk + +`func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool)` + +GetDepthOk returns a tuple with the Depth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDepth + +`func (o *NestedWirelessLANGroup) SetDepth(v int32)` + +SetDepth sets Depth field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NestedWirelessLink.md b/docs/NestedWirelessLink.md index 3eeb8edce..758992c48 100644 --- a/docs/NestedWirelessLink.md +++ b/docs/NestedWirelessLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Ssid** | Pointer to **string** | | [optional] @@ -13,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedWirelessLink -`func NewNestedWirelessLink(id int32, url string, display string, ) *NestedWirelessLink` +`func NewNestedWirelessLink(id int32, url string, displayUrl string, display string, ) *NestedWirelessLink` NewNestedWirelessLink instantiates a new NestedWirelessLink object This constructor will assign default values to properties that have it defined, @@ -68,6 +69,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedWirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *NestedWirelessLink) GetDisplay() string` diff --git a/docs/Notification.md b/docs/Notification.md new file mode 100644 index 000000000..d50dad23a --- /dev/null +++ b/docs/Notification.md @@ -0,0 +1,265 @@ +# Notification + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Object** | **interface{}** | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | **time.Time** | | [readonly] +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | [**Event**](Event.md) | | + +## Methods + +### NewNotification + +`func NewNotification(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, eventType Event, ) *Notification` + +NewNotification instantiates a new Notification object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationWithDefaults + +`func NewNotificationWithDefaults() *Notification` + +NewNotificationWithDefaults instantiates a new Notification object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *Notification) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Notification) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Notification) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Notification) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Notification) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *Notification) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Notification) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Notification) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *Notification) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Notification) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Notification) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *Notification) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Notification) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Notification) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *Notification) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *Notification) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *Notification) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *Notification) SetObject(v interface{})` + +SetObject sets Object field to given value. + + +### SetObjectNil + +`func (o *Notification) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *Notification) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil +### GetUser + +`func (o *Notification) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Notification) GetUserOk() (*BriefUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *Notification) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Notification) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Notification) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Notification) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### GetRead + +`func (o *Notification) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *Notification) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *Notification) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *Notification) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *Notification) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *Notification) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *Notification) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *Notification) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *Notification) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/NotificationGroup.md b/docs/NotificationGroup.md new file mode 100644 index 000000000..92fa98a5a --- /dev/null +++ b/docs/NotificationGroup.md @@ -0,0 +1,213 @@ +# NotificationGroup + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Users** | Pointer to [**[]User**](User.md) | | [optional] + +## Methods + +### NewNotificationGroup + +`func NewNotificationGroup(id int32, url string, display string, displayUrl string, name string, ) *NotificationGroup` + +NewNotificationGroup instantiates a new NotificationGroup object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationGroupWithDefaults + +`func NewNotificationGroupWithDefaults() *NotificationGroup` + +NewNotificationGroupWithDefaults instantiates a new NotificationGroup object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *NotificationGroup) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *NotificationGroup) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *NotificationGroup) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *NotificationGroup) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *NotificationGroup) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *NotificationGroup) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *NotificationGroup) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *NotificationGroup) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *NotificationGroup) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetDisplayUrl + +`func (o *NotificationGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NotificationGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetName + +`func (o *NotificationGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NotificationGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NotificationGroup) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NotificationGroup) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NotificationGroup) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *NotificationGroup) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NotificationGroup) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *NotificationGroup) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *NotificationGroup) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *NotificationGroup) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *NotificationGroup) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *NotificationGroup) GetUsers() []User` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *NotificationGroup) GetUsersOk() (*[]User, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *NotificationGroup) SetUsers(v []User)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *NotificationGroup) HasUsers() bool` + +HasUsers 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/docs/NotificationGroupRequest.md b/docs/NotificationGroupRequest.md new file mode 100644 index 000000000..0d437c2e1 --- /dev/null +++ b/docs/NotificationGroupRequest.md @@ -0,0 +1,129 @@ +# NotificationGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | **string** | | +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Users** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewNotificationGroupRequest + +`func NewNotificationGroupRequest(name string, ) *NotificationGroupRequest` + +NewNotificationGroupRequest instantiates a new NotificationGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationGroupRequestWithDefaults + +`func NewNotificationGroupRequestWithDefaults() *NotificationGroupRequest` + +NewNotificationGroupRequestWithDefaults instantiates a new NotificationGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *NotificationGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *NotificationGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *NotificationGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + + +### GetDescription + +`func (o *NotificationGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *NotificationGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *NotificationGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *NotificationGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *NotificationGroupRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *NotificationGroupRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *NotificationGroupRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *NotificationGroupRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *NotificationGroupRequest) GetUsers() []int32` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *NotificationGroupRequest) GetUsersOk() (*[]int32, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *NotificationGroupRequest) SetUsers(v []int32)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *NotificationGroupRequest) HasUsers() bool` + +HasUsers 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/docs/NotificationRequest.md b/docs/NotificationRequest.md new file mode 100644 index 000000000..9524f70d1 --- /dev/null +++ b/docs/NotificationRequest.md @@ -0,0 +1,150 @@ +# NotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | [**Event**](Event.md) | | + +## Methods + +### NewNotificationRequest + +`func NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event, ) *NotificationRequest` + +NewNotificationRequest instantiates a new NotificationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewNotificationRequestWithDefaults + +`func NewNotificationRequestWithDefaults() *NotificationRequest` + +NewNotificationRequestWithDefaults instantiates a new NotificationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *NotificationRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *NotificationRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *NotificationRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *NotificationRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *NotificationRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *NotificationRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *NotificationRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *NotificationRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + + +### GetRead + +`func (o *NotificationRequest) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *NotificationRequest) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *NotificationRequest) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *NotificationRequest) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *NotificationRequest) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *NotificationRequest) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *NotificationRequest) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *NotificationRequest) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *NotificationRequest) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ObjectChange.md b/docs/ObjectChange.md index 574ef3fe5..95db4d90f 100644 --- a/docs/ObjectChange.md +++ b/docs/ObjectChange.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Time** | **time.Time** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **UserName** | **string** | | [readonly] **RequestId** | **string** | | [readonly] **Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewObjectChange -`func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` +`func NewObjectChange(id int32, url string, displayUrl string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` NewObjectChange instantiates a new ObjectChange object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectChange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectChange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectChange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ObjectChange) GetDisplay() string` @@ -119,20 +140,20 @@ SetTime sets Time field to given value. ### GetUser -`func (o *ObjectChange) GetUser() User` +`func (o *ObjectChange) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *ObjectChange) GetUserOk() (*User, bool)` +`func (o *ObjectChange) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *ObjectChange) SetUser(v User)` +`func (o *ObjectChange) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/ObjectPermission.md b/docs/ObjectPermission.md index fec4199e4..87f7cf00e 100644 --- a/docs/ObjectPermission.md +++ b/docs/ObjectPermission.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewObjectPermission -`func NewObjectPermission(id int32, url string, display string, name string, objectTypes []string, actions []string, ) *ObjectPermission` +`func NewObjectPermission(id int32, url string, displayUrl string, display string, name string, objectTypes []string, actions []string, ) *ObjectPermission` NewObjectPermission instantiates a new ObjectPermission object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectPermission) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectPermission) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ObjectPermission) GetDisplay() string` diff --git a/docs/PaginatedCircuitGroupAssignmentList.md b/docs/PaginatedCircuitGroupAssignmentList.md new file mode 100644 index 000000000..cc8cc812c --- /dev/null +++ b/docs/PaginatedCircuitGroupAssignmentList.md @@ -0,0 +1,144 @@ +# PaginatedCircuitGroupAssignmentList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) | | + +## Methods + +### NewPaginatedCircuitGroupAssignmentList + +`func NewPaginatedCircuitGroupAssignmentList(count int32, results []CircuitGroupAssignment, ) *PaginatedCircuitGroupAssignmentList` + +NewPaginatedCircuitGroupAssignmentList instantiates a new PaginatedCircuitGroupAssignmentList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedCircuitGroupAssignmentListWithDefaults + +`func NewPaginatedCircuitGroupAssignmentListWithDefaults() *PaginatedCircuitGroupAssignmentList` + +NewPaginatedCircuitGroupAssignmentListWithDefaults instantiates a new PaginatedCircuitGroupAssignmentList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedCircuitGroupAssignmentList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedCircuitGroupAssignmentList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCircuitGroupAssignmentList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedCircuitGroupAssignmentList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCircuitGroupAssignmentList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCircuitGroupAssignmentList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCircuitGroupAssignmentList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCircuitGroupAssignmentList) GetResults() []CircuitGroupAssignment` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCircuitGroupAssignmentList) GetResultsOk() (*[]CircuitGroupAssignment, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignment)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedCircuitGroupList.md b/docs/PaginatedCircuitGroupList.md new file mode 100644 index 000000000..943619ff5 --- /dev/null +++ b/docs/PaginatedCircuitGroupList.md @@ -0,0 +1,144 @@ +# PaginatedCircuitGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]CircuitGroup**](CircuitGroup.md) | | + +## Methods + +### NewPaginatedCircuitGroupList + +`func NewPaginatedCircuitGroupList(count int32, results []CircuitGroup, ) *PaginatedCircuitGroupList` + +NewPaginatedCircuitGroupList instantiates a new PaginatedCircuitGroupList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedCircuitGroupListWithDefaults + +`func NewPaginatedCircuitGroupListWithDefaults() *PaginatedCircuitGroupList` + +NewPaginatedCircuitGroupListWithDefaults instantiates a new PaginatedCircuitGroupList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedCircuitGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedCircuitGroupList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedCircuitGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedCircuitGroupList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedCircuitGroupList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedCircuitGroupList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedCircuitGroupList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedCircuitGroupList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedCircuitGroupList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedCircuitGroupList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedCircuitGroupList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedCircuitGroupList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedCircuitGroupList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedCircuitGroupList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedCircuitGroupList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedCircuitGroupList) GetResults() []CircuitGroup` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedCircuitGroupList) GetResultsOk() (*[]CircuitGroup, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedNotificationGroupList.md b/docs/PaginatedNotificationGroupList.md new file mode 100644 index 000000000..d18373028 --- /dev/null +++ b/docs/PaginatedNotificationGroupList.md @@ -0,0 +1,144 @@ +# PaginatedNotificationGroupList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]NotificationGroup**](NotificationGroup.md) | | + +## Methods + +### NewPaginatedNotificationGroupList + +`func NewPaginatedNotificationGroupList(count int32, results []NotificationGroup, ) *PaginatedNotificationGroupList` + +NewPaginatedNotificationGroupList instantiates a new PaginatedNotificationGroupList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedNotificationGroupListWithDefaults + +`func NewPaginatedNotificationGroupListWithDefaults() *PaginatedNotificationGroupList` + +NewPaginatedNotificationGroupListWithDefaults instantiates a new PaginatedNotificationGroupList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedNotificationGroupList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNotificationGroupList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedNotificationGroupList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNotificationGroupList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNotificationGroupList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedNotificationGroupList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNotificationGroupList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedNotificationGroupList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedNotificationGroupList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedNotificationGroupList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNotificationGroupList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedNotificationGroupList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNotificationGroupList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedNotificationGroupList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedNotificationGroupList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedNotificationGroupList) GetResults() []NotificationGroup` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNotificationGroupList) GetResultsOk() (*[]NotificationGroup, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedNotificationList.md b/docs/PaginatedNotificationList.md new file mode 100644 index 000000000..2baadd832 --- /dev/null +++ b/docs/PaginatedNotificationList.md @@ -0,0 +1,144 @@ +# PaginatedNotificationList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Notification**](Notification.md) | | + +## Methods + +### NewPaginatedNotificationList + +`func NewPaginatedNotificationList(count int32, results []Notification, ) *PaginatedNotificationList` + +NewPaginatedNotificationList instantiates a new PaginatedNotificationList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedNotificationListWithDefaults + +`func NewPaginatedNotificationListWithDefaults() *PaginatedNotificationList` + +NewPaginatedNotificationListWithDefaults instantiates a new PaginatedNotificationList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedNotificationList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedNotificationList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedNotificationList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedNotificationList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedNotificationList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedNotificationList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedNotificationList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedNotificationList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedNotificationList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedNotificationList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedNotificationList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedNotificationList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedNotificationList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedNotificationList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedNotificationList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedNotificationList) GetResults() []Notification` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedNotificationList) GetResultsOk() (*[]Notification, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedNotificationList) SetResults(v []Notification)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedRackTypeList.md b/docs/PaginatedRackTypeList.md new file mode 100644 index 000000000..bb3f5780a --- /dev/null +++ b/docs/PaginatedRackTypeList.md @@ -0,0 +1,144 @@ +# PaginatedRackTypeList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]RackType**](RackType.md) | | + +## Methods + +### NewPaginatedRackTypeList + +`func NewPaginatedRackTypeList(count int32, results []RackType, ) *PaginatedRackTypeList` + +NewPaginatedRackTypeList instantiates a new PaginatedRackTypeList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedRackTypeListWithDefaults + +`func NewPaginatedRackTypeListWithDefaults() *PaginatedRackTypeList` + +NewPaginatedRackTypeListWithDefaults instantiates a new PaginatedRackTypeList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedRackTypeList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedRackTypeList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedRackTypeList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedRackTypeList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedRackTypeList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedRackTypeList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedRackTypeList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedRackTypeList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedRackTypeList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedRackTypeList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedRackTypeList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedRackTypeList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedRackTypeList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedRackTypeList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedRackTypeList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedRackTypeList) GetResults() []RackType` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedRackTypeList) GetResultsOk() (*[]RackType, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedRackTypeList) SetResults(v []RackType)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PaginatedSubscriptionList.md b/docs/PaginatedSubscriptionList.md new file mode 100644 index 000000000..f8dc4ddaa --- /dev/null +++ b/docs/PaginatedSubscriptionList.md @@ -0,0 +1,144 @@ +# PaginatedSubscriptionList + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Count** | **int32** | | +**Next** | Pointer to **NullableString** | | [optional] +**Previous** | Pointer to **NullableString** | | [optional] +**Results** | [**[]Subscription**](Subscription.md) | | + +## Methods + +### NewPaginatedSubscriptionList + +`func NewPaginatedSubscriptionList(count int32, results []Subscription, ) *PaginatedSubscriptionList` + +NewPaginatedSubscriptionList instantiates a new PaginatedSubscriptionList object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPaginatedSubscriptionListWithDefaults + +`func NewPaginatedSubscriptionListWithDefaults() *PaginatedSubscriptionList` + +NewPaginatedSubscriptionListWithDefaults instantiates a new PaginatedSubscriptionList object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetCount + +`func (o *PaginatedSubscriptionList) GetCount() int32` + +GetCount returns the Count field if non-nil, zero value otherwise. + +### GetCountOk + +`func (o *PaginatedSubscriptionList) GetCountOk() (*int32, bool)` + +GetCountOk returns a tuple with the Count field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCount + +`func (o *PaginatedSubscriptionList) SetCount(v int32)` + +SetCount sets Count field to given value. + + +### GetNext + +`func (o *PaginatedSubscriptionList) GetNext() string` + +GetNext returns the Next field if non-nil, zero value otherwise. + +### GetNextOk + +`func (o *PaginatedSubscriptionList) GetNextOk() (*string, bool)` + +GetNextOk returns a tuple with the Next field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNext + +`func (o *PaginatedSubscriptionList) SetNext(v string)` + +SetNext sets Next field to given value. + +### HasNext + +`func (o *PaginatedSubscriptionList) HasNext() bool` + +HasNext returns a boolean if a field has been set. + +### SetNextNil + +`func (o *PaginatedSubscriptionList) SetNextNil(b bool)` + + SetNextNil sets the value for Next to be an explicit nil + +### UnsetNext +`func (o *PaginatedSubscriptionList) UnsetNext()` + +UnsetNext ensures that no value is present for Next, not even an explicit nil +### GetPrevious + +`func (o *PaginatedSubscriptionList) GetPrevious() string` + +GetPrevious returns the Previous field if non-nil, zero value otherwise. + +### GetPreviousOk + +`func (o *PaginatedSubscriptionList) GetPreviousOk() (*string, bool)` + +GetPreviousOk returns a tuple with the Previous field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrevious + +`func (o *PaginatedSubscriptionList) SetPrevious(v string)` + +SetPrevious sets Previous field to given value. + +### HasPrevious + +`func (o *PaginatedSubscriptionList) HasPrevious() bool` + +HasPrevious returns a boolean if a field has been set. + +### SetPreviousNil + +`func (o *PaginatedSubscriptionList) SetPreviousNil(b bool)` + + SetPreviousNil sets the value for Previous to be an explicit nil + +### UnsetPrevious +`func (o *PaginatedSubscriptionList) UnsetPrevious()` + +UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +### GetResults + +`func (o *PaginatedSubscriptionList) GetResults() []Subscription` + +GetResults returns the Results field if non-nil, zero value otherwise. + +### GetResultsOk + +`func (o *PaginatedSubscriptionList) GetResultsOk() (*[]Subscription, bool)` + +GetResultsOk returns a tuple with the Results field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetResults + +`func (o *PaginatedSubscriptionList) SetResults(v []Subscription)` + +SetResults sets Results field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedASNRangeRequest.md b/docs/PatchedASNRangeRequest.md index a777fc11f..235fbbe6c 100644 --- a/docs/PatchedASNRangeRequest.md +++ b/docs/PatchedASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] **Start** | Pointer to **int64** | | [optional] **End** | Pointer to **int64** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -85,20 +85,20 @@ HasSlug returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRangeRequest) GetRir() RIRRequest` +`func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRangeRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -160,20 +160,20 @@ HasEnd returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedASNRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedASNRequest.md b/docs/PatchedASNRequest.md index 4df3e7c67..498a45866 100644 --- a/docs/PatchedASNRequest.md +++ b/docs/PatchedASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | Pointer to **int64** | 16- or 32-bit autonomous system number | [optional] -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -58,20 +58,20 @@ HasAsn returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRequest) GetRir() RIRRequest` +`func (o *PatchedASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -93,20 +93,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *PatchedASNRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedBookmarkRequest.md b/docs/PatchedBookmarkRequest.md index 344f1ee74..b82fd2d84 100644 --- a/docs/PatchedBookmarkRequest.md +++ b/docs/PatchedBookmarkRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasObjectId returns a boolean if a field has been set. ### GetUser -`func (o *PatchedBookmarkRequest) GetUser() UserRequest` +`func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedBookmarkRequest) SetUser(v UserRequest)` +`func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedCircuitGroupRequest.md b/docs/PatchedCircuitGroupRequest.md new file mode 100644 index 000000000..7ffbd2403 --- /dev/null +++ b/docs/PatchedCircuitGroupRequest.md @@ -0,0 +1,196 @@ +# PatchedCircuitGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedCircuitGroupRequest + +`func NewPatchedCircuitGroupRequest() *PatchedCircuitGroupRequest` + +NewPatchedCircuitGroupRequest instantiates a new PatchedCircuitGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedCircuitGroupRequestWithDefaults + +`func NewPatchedCircuitGroupRequestWithDefaults() *PatchedCircuitGroupRequest` + +NewPatchedCircuitGroupRequestWithDefaults instantiates a new PatchedCircuitGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedCircuitGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedCircuitGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedCircuitGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedCircuitGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedCircuitGroupRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedCircuitGroupRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *PatchedCircuitGroupRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedCircuitGroupRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedCircuitGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedCircuitGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedCircuitGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedCircuitGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetTenant + +`func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *PatchedCircuitGroupRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *PatchedCircuitGroupRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *PatchedCircuitGroupRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *PatchedCircuitGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedCircuitGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedCircuitGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedCircuitGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedCircuitGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedCircuitGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedCircuitGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PatchedCircuitTerminationRequest.md b/docs/PatchedCircuitTerminationRequest.md index 1785e201e..28bdc580b 100644 --- a/docs/PatchedCircuitTerminationRequest.md +++ b/docs/PatchedCircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | Pointer to [**CircuitRequest**](CircuitRequest.md) | | [optional] +**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] **TermSide** | Pointer to [**Termination1**](Termination1.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -88,20 +88,20 @@ HasTermSide returns a boolean if a field has been set. ### GetSite -`func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest` +`func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -123,20 +123,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/PatchedConfigContextRequest.md b/docs/PatchedConfigContextRequest.md index c4a77f887..5162d6aca 100644 --- a/docs/PatchedConfigContextRequest.md +++ b/docs/PatchedConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | Pointer to **interface{}** | | [optional] ## Methods @@ -470,20 +470,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedConfigTemplateRequest.md b/docs/PatchedConfigTemplateRequest.md index c9b147592..37005f012 100644 --- a/docs/PatchedConfigTemplateRequest.md +++ b/docs/PatchedConfigTemplateRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] **TemplateCode** | Pointer to **string** | Jinja2 template code. | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -142,20 +142,20 @@ HasTemplateCode returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedContactRequest.md b/docs/PatchedContactRequest.md index d1ad6719e..042bee775 100644 --- a/docs/PatchedContactRequest.md +++ b/docs/PatchedContactRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**NullableContactGroupRequest**](ContactGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Title** | Pointer to **string** | | [optional] **Phone** | Pointer to **string** | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedContactRequest) GetGroup() ContactGroupRequest` +`func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool)` +`func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest)` +`func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedDeviceBayRequest.md b/docs/PatchedDeviceBayRequest.md index bf25fd2a4..9df288606 100644 --- a/docs/PatchedDeviceBayRequest.md +++ b/docs/PatchedDeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -133,20 +133,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/PatchedDeviceBayTemplateRequest.md b/docs/PatchedDeviceBayTemplateRequest.md index 5ba265ed2..dc8920d73 100644 --- a/docs/PatchedDeviceBayTemplateRequest.md +++ b/docs/PatchedDeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/PatchedDeviceRoleRequest.md b/docs/PatchedDeviceRoleRequest.md index 19824a38b..f66bc8e9f 100644 --- a/docs/PatchedDeviceRoleRequest.md +++ b/docs/PatchedDeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -134,20 +134,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedExportTemplateRequest.md b/docs/PatchedExportTemplateRequest.md index 0a424e1f2..2195f5d07 100644 --- a/docs/PatchedExportTemplateRequest.md +++ b/docs/PatchedExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -209,20 +209,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedFHRPGroupAssignmentRequest.md b/docs/PatchedFHRPGroupAssignmentRequest.md index 4e987d752..94ee184e3 100644 --- a/docs/PatchedFHRPGroupAssignmentRequest.md +++ b/docs/PatchedFHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**FHRPGroupRequest**](FHRPGroupRequest.md) | | [optional] +**Group** | Pointer to [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | [optional] **InterfaceType** | Pointer to **string** | | [optional] **InterfaceId** | Pointer to **int64** | | [optional] **Priority** | Pointer to **int32** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedFHRPGroupRequest.md b/docs/PatchedFHRPGroupRequest.md index b1e63b0ca..b708c6485 100644 --- a/docs/PatchedFHRPGroupRequest.md +++ b/docs/PatchedFHRPGroupRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Protocol** | Pointer to [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | [optional] +**Protocol** | Pointer to [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | [optional] **GroupId** | Pointer to **int32** | | [optional] **AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] **AuthKey** | Pointer to **string** | | [optional] @@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set. ### GetProtocol -`func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. diff --git a/docs/PatchedImageAttachmentRequest.md b/docs/PatchedImageAttachmentRequest.md index de2766af0..fd6d6db09 100644 --- a/docs/PatchedImageAttachmentRequest.md +++ b/docs/PatchedImageAttachmentRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **ObjectId** | Pointer to **int64** | | [optional] **Name** | Pointer to **string** | | [optional] **Image** | Pointer to ***os.File** | | [optional] -**ImageHeight** | Pointer to **int32** | | [optional] -**ImageWidth** | Pointer to **int32** | | [optional] ## Methods @@ -130,56 +128,6 @@ SetImage sets Image field to given value. HasImage returns a boolean if a field has been set. -### GetImageHeight - -`func (o *PatchedImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - -### HasImageHeight - -`func (o *PatchedImageAttachmentRequest) HasImageHeight() bool` - -HasImageHeight returns a boolean if a field has been set. - -### GetImageWidth - -`func (o *PatchedImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - -### HasImageWidth - -`func (o *PatchedImageAttachmentRequest) HasImageWidth() bool` - -HasImageWidth 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/docs/PatchedInventoryItemRequest.md b/docs/PatchedInventoryItemRequest.md index 29a3617b6..15eb808cc 100644 --- a/docs/PatchedInventoryItemRequest.md +++ b/docs/PatchedInventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest` +`func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -151,20 +151,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -186,20 +186,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedInventoryItemTemplateRequest.md b/docs/PatchedInventoryItemTemplateRequest.md index 8bc9025d4..7be75bce8 100644 --- a/docs/PatchedInventoryItemTemplateRequest.md +++ b/docs/PatchedInventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -181,20 +181,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedL2VPNTerminationRequest.md b/docs/PatchedL2VPNTerminationRequest.md index 52faa0e93..4027c8f8f 100644 --- a/docs/PatchedL2VPNTerminationRequest.md +++ b/docs/PatchedL2VPNTerminationRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | Pointer to [**L2VPNRequest**](L2VPNRequest.md) | | [optional] +**L2vpn** | Pointer to [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | [optional] **AssignedObjectType** | Pointer to **string** | | [optional] **AssignedObjectId** | Pointer to **int64** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. diff --git a/docs/PatchedModuleBayRequest.md b/docs/PatchedModuleBayRequest.md index 57abae4fc..9a04dd1db 100644 --- a/docs/PatchedModuleBayRequest.md +++ b/docs/PatchedModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -57,6 +58,41 @@ SetDevice sets Device field to given value. HasDevice returns a boolean if a field has been set. +### GetModule + +`func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PatchedModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PatchedModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PatchedModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PatchedModuleBayRequest) GetName() string` @@ -84,20 +120,20 @@ HasName returns a boolean if a field has been set. ### GetInstalledModule -`func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/PatchedModuleBayTemplateRequest.md b/docs/PatchedModuleBayTemplateRequest.md index afa822d29..faa58b18a 100644 --- a/docs/PatchedModuleBayTemplateRequest.md +++ b/docs/PatchedModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -54,6 +55,51 @@ SetDeviceType sets DeviceType field to given value. HasDeviceType returns a boolean if a field has been set. +### SetDeviceTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PatchedModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PatchedModuleBayTemplateRequest) GetName() string` diff --git a/docs/PatchedNotificationGroupRequest.md b/docs/PatchedNotificationGroupRequest.md new file mode 100644 index 000000000..03c1aaab9 --- /dev/null +++ b/docs/PatchedNotificationGroupRequest.md @@ -0,0 +1,134 @@ +# PatchedNotificationGroupRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Name** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Users** | Pointer to **[]int32** | | [optional] + +## Methods + +### NewPatchedNotificationGroupRequest + +`func NewPatchedNotificationGroupRequest() *PatchedNotificationGroupRequest` + +NewPatchedNotificationGroupRequest instantiates a new PatchedNotificationGroupRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedNotificationGroupRequestWithDefaults + +`func NewPatchedNotificationGroupRequestWithDefaults() *PatchedNotificationGroupRequest` + +NewPatchedNotificationGroupRequestWithDefaults instantiates a new PatchedNotificationGroupRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetName + +`func (o *PatchedNotificationGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *PatchedNotificationGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *PatchedNotificationGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *PatchedNotificationGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedNotificationGroupRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedNotificationGroupRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedNotificationGroupRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedNotificationGroupRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetGroups + +`func (o *PatchedNotificationGroupRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *PatchedNotificationGroupRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *PatchedNotificationGroupRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *PatchedNotificationGroupRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetUsers + +`func (o *PatchedNotificationGroupRequest) GetUsers() []int32` + +GetUsers returns the Users field if non-nil, zero value otherwise. + +### GetUsersOk + +`func (o *PatchedNotificationGroupRequest) GetUsersOk() (*[]int32, bool)` + +GetUsersOk returns a tuple with the Users field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUsers + +`func (o *PatchedNotificationGroupRequest) SetUsers(v []int32)` + +SetUsers sets Users field to given value. + +### HasUsers + +`func (o *PatchedNotificationGroupRequest) HasUsers() bool` + +HasUsers 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/docs/PatchedNotificationRequest.md b/docs/PatchedNotificationRequest.md new file mode 100644 index 000000000..7c30c9ee5 --- /dev/null +++ b/docs/PatchedNotificationRequest.md @@ -0,0 +1,170 @@ +# PatchedNotificationRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Read** | Pointer to **NullableTime** | | [optional] +**EventType** | Pointer to [**Event**](Event.md) | | [optional] + +## Methods + +### NewPatchedNotificationRequest + +`func NewPatchedNotificationRequest() *PatchedNotificationRequest` + +NewPatchedNotificationRequest instantiates a new PatchedNotificationRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedNotificationRequestWithDefaults + +`func NewPatchedNotificationRequestWithDefaults() *PatchedNotificationRequest` + +NewPatchedNotificationRequestWithDefaults instantiates a new PatchedNotificationRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *PatchedNotificationRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedNotificationRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *PatchedNotificationRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedNotificationRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedNotificationRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedNotificationRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *PatchedNotificationRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedNotificationRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedNotificationRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PatchedNotificationRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedNotificationRequest) HasUser() bool` + +HasUser returns a boolean if a field has been set. + +### GetRead + +`func (o *PatchedNotificationRequest) GetRead() time.Time` + +GetRead returns the Read field if non-nil, zero value otherwise. + +### GetReadOk + +`func (o *PatchedNotificationRequest) GetReadOk() (*time.Time, bool)` + +GetReadOk returns a tuple with the Read field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRead + +`func (o *PatchedNotificationRequest) SetRead(v time.Time)` + +SetRead sets Read field to given value. + +### HasRead + +`func (o *PatchedNotificationRequest) HasRead() bool` + +HasRead returns a boolean if a field has been set. + +### SetReadNil + +`func (o *PatchedNotificationRequest) SetReadNil(b bool)` + + SetReadNil sets the value for Read to be an explicit nil + +### UnsetRead +`func (o *PatchedNotificationRequest) UnsetRead()` + +UnsetRead ensures that no value is present for Read, not even an explicit nil +### GetEventType + +`func (o *PatchedNotificationRequest) GetEventType() Event` + +GetEventType returns the EventType field if non-nil, zero value otherwise. + +### GetEventTypeOk + +`func (o *PatchedNotificationRequest) GetEventTypeOk() (*Event, bool)` + +GetEventTypeOk returns a tuple with the EventType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventType + +`func (o *PatchedNotificationRequest) SetEventType(v Event)` + +SetEventType sets EventType field to given value. + +### HasEventType + +`func (o *PatchedNotificationRequest) HasEventType() bool` + +HasEventType 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/docs/PatchedPlatformRequest.md b/docs/PatchedPlatformRequest.md index 8c681c658..a45b87ba4 100644 --- a/docs/PatchedPlatformRequest.md +++ b/docs/PatchedPlatformRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetManufacturer -`func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -118,20 +118,20 @@ HasManufacturer returns a boolean if a field has been set. UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil ### GetConfigTemplate -`func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedPowerPanelRequest.md b/docs/PatchedPowerPanelRequest.md index 1f2bda37d..832203743 100644 --- a/docs/PatchedPowerPanelRequest.md +++ b/docs/PatchedPowerPanelRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedPowerPanelRequest) GetSite() SiteRequest` +`func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest)` +`func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -58,20 +58,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest` +`func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest)` +`func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. diff --git a/docs/PatchedProviderAccountRequest.md b/docs/PatchedProviderAccountRequest.md index e4f8fd72e..8dcbb884e 100644 --- a/docs/PatchedProviderAccountRequest.md +++ b/docs/PatchedProviderAccountRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedProviderNetworkRequest.md b/docs/PatchedProviderNetworkRequest.md index 71345eb12..9bc9624e3 100644 --- a/docs/PatchedProviderNetworkRequest.md +++ b/docs/PatchedProviderNetworkRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedRackReservationRequest.md b/docs/PatchedRackReservationRequest.md index 5347665db..0b0b9d334 100644 --- a/docs/PatchedRackReservationRequest.md +++ b/docs/PatchedRackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | Pointer to [**RackRequest**](RackRequest.md) | | [optional] +**Rack** | Pointer to [**BriefRackRequest**](BriefRackRequest.md) | | [optional] **Units** | Pointer to **[]int32** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *PatchedRackReservationRequest) GetRack() RackRequest` +`func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedRackReservationRequest) SetRack(v RackRequest)` +`func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -84,20 +84,20 @@ HasUnits returns a boolean if a field has been set. ### GetUser -`func (o *PatchedRackReservationRequest) GetUser() UserRequest` +`func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedRackReservationRequest) SetUser(v UserRequest)` +`func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. @@ -109,20 +109,20 @@ HasUser returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRackReservationRequest) GetTenant() TenantRequest` +`func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedRouteTargetRequest.md b/docs/PatchedRouteTargetRequest.md index a08f52e55..95629a647 100644 --- a/docs/PatchedRouteTargetRequest.md +++ b/docs/PatchedRouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -57,20 +57,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest` +`func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedScriptInputRequest.md b/docs/PatchedScriptInputRequest.md new file mode 100644 index 000000000..babb8fad7 --- /dev/null +++ b/docs/PatchedScriptInputRequest.md @@ -0,0 +1,164 @@ +# PatchedScriptInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | Pointer to **interface{}** | | [optional] +**Commit** | Pointer to **bool** | | [optional] +**ScheduleAt** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewPatchedScriptInputRequest + +`func NewPatchedScriptInputRequest() *PatchedScriptInputRequest` + +NewPatchedScriptInputRequest instantiates a new PatchedScriptInputRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedScriptInputRequestWithDefaults + +`func NewPatchedScriptInputRequestWithDefaults() *PatchedScriptInputRequest` + +NewPatchedScriptInputRequestWithDefaults instantiates a new PatchedScriptInputRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *PatchedScriptInputRequest) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *PatchedScriptInputRequest) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *PatchedScriptInputRequest) SetData(v interface{})` + +SetData sets Data field to given value. + +### HasData + +`func (o *PatchedScriptInputRequest) HasData() bool` + +HasData returns a boolean if a field has been set. + +### SetDataNil + +`func (o *PatchedScriptInputRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *PatchedScriptInputRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCommit + +`func (o *PatchedScriptInputRequest) GetCommit() bool` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *PatchedScriptInputRequest) GetCommitOk() (*bool, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *PatchedScriptInputRequest) SetCommit(v bool)` + +SetCommit sets Commit field to given value. + +### HasCommit + +`func (o *PatchedScriptInputRequest) HasCommit() bool` + +HasCommit returns a boolean if a field has been set. + +### GetScheduleAt + +`func (o *PatchedScriptInputRequest) GetScheduleAt() time.Time` + +GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise. + +### GetScheduleAtOk + +`func (o *PatchedScriptInputRequest) GetScheduleAtOk() (*time.Time, bool)` + +GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleAt + +`func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time)` + +SetScheduleAt sets ScheduleAt field to given value. + +### HasScheduleAt + +`func (o *PatchedScriptInputRequest) HasScheduleAt() bool` + +HasScheduleAt returns a boolean if a field has been set. + +### SetScheduleAtNil + +`func (o *PatchedScriptInputRequest) SetScheduleAtNil(b bool)` + + SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil + +### UnsetScheduleAt +`func (o *PatchedScriptInputRequest) UnsetScheduleAt()` + +UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +### GetInterval + +`func (o *PatchedScriptInputRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *PatchedScriptInputRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *PatchedScriptInputRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *PatchedScriptInputRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *PatchedScriptInputRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *PatchedScriptInputRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil + +[[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/docs/PatchedSubscriptionRequest.md b/docs/PatchedSubscriptionRequest.md new file mode 100644 index 000000000..28601b30f --- /dev/null +++ b/docs/PatchedSubscriptionRequest.md @@ -0,0 +1,108 @@ +# PatchedSubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | Pointer to **string** | | [optional] +**ObjectId** | Pointer to **int64** | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] + +## Methods + +### NewPatchedSubscriptionRequest + +`func NewPatchedSubscriptionRequest() *PatchedSubscriptionRequest` + +NewPatchedSubscriptionRequest instantiates a new PatchedSubscriptionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedSubscriptionRequestWithDefaults + +`func NewPatchedSubscriptionRequestWithDefaults() *PatchedSubscriptionRequest` + +NewPatchedSubscriptionRequestWithDefaults instantiates a new PatchedSubscriptionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *PatchedSubscriptionRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *PatchedSubscriptionRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *PatchedSubscriptionRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + +### HasObjectType + +`func (o *PatchedSubscriptionRequest) HasObjectType() bool` + +HasObjectType returns a boolean if a field has been set. + +### GetObjectId + +`func (o *PatchedSubscriptionRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *PatchedSubscriptionRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *PatchedSubscriptionRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + +### HasObjectId + +`func (o *PatchedSubscriptionRequest) HasObjectId() bool` + +HasObjectId returns a boolean if a field has been set. + +### GetUser + +`func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + +### HasUser + +`func (o *PatchedSubscriptionRequest) HasUser() bool` + +HasUser 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/docs/PatchedTenantRequest.md b/docs/PatchedTenantRequest.md index 660e88810..a4b3b23b0 100644 --- a/docs/PatchedTenantRequest.md +++ b/docs/PatchedTenantRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableTenantGroupRequest**](TenantGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest` +`func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool)` +`func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest)` +`func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedTokenRequest.md b/docs/PatchedTokenRequest.md index a62dfd87e..8d27c1785 100644 --- a/docs/PatchedTokenRequest.md +++ b/docs/PatchedTokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *PatchedTokenRequest) GetUser() UserRequest` +`func (o *PatchedTokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedTokenRequest) SetUser(v UserRequest)` +`func (o *PatchedTokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedVLANGroupRequest.md b/docs/PatchedVLANGroupRequest.md index 9847c46b3..c9b9b4b28 100644 --- a/docs/PatchedVLANGroupRequest.md +++ b/docs/PatchedVLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -153,56 +151,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *PatchedVLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *PatchedVLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *PatchedVLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *PatchedVLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *PatchedVLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *PatchedVLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *PatchedVLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *PatchedVLANGroupRequest) GetDescription() string` diff --git a/docs/PatchedVRFRequest.md b/docs/PatchedVRFRequest.md index 5c927e21c..5b3fbced6 100644 --- a/docs/PatchedVRFRequest.md +++ b/docs/PatchedVRFRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -96,20 +96,20 @@ HasRd returns a boolean if a field has been set. UnsetRd ensures that no value is present for Rd, not even an explicit nil ### GetTenant -`func (o *PatchedVRFRequest) GetTenant() TenantRequest` +`func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedVRFRequest) SetTenant(v TenantRequest)` +`func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedVirtualDiskRequest.md b/docs/PatchedVirtualDiskRequest.md index f8b0d3d48..1a7dd3c34 100644 --- a/docs/PatchedVirtualDiskRequest.md +++ b/docs/PatchedVirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Size** | Pointer to **int32** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableAggregateRequest.md b/docs/PatchedWritableAggregateRequest.md index 41ef04822..3278caefc 100644 --- a/docs/PatchedWritableAggregateRequest.md +++ b/docs/PatchedWritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ HasPrefix returns a boolean if a field has been set. ### GetRir -`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest` +`func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -84,20 +84,20 @@ HasRir returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md index 431b4945f..f01965e68 100644 --- a/docs/PatchedWritableCableRequest.md +++ b/docs/PatchedWritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *PatchedWritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *PatchedWritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCableRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/PatchedWritableCircuitGroupAssignmentRequest.md b/docs/PatchedWritableCircuitGroupAssignmentRequest.md new file mode 100644 index 000000000..9068273d5 --- /dev/null +++ b/docs/PatchedWritableCircuitGroupAssignmentRequest.md @@ -0,0 +1,134 @@ +# PatchedWritableCircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | [optional] +**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewPatchedWritableCircuitGroupAssignmentRequest + +`func NewPatchedWritableCircuitGroupAssignmentRequest() *PatchedWritableCircuitGroupAssignmentRequest` + +NewPatchedWritableCircuitGroupAssignmentRequest instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults + +`func NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWritableCircuitGroupAssignmentRequest` + +NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### GetCircuit + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest)` + +SetCircuit sets Circuit field to given value. + +### HasCircuit + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasCircuit() bool` + +HasCircuit returns a boolean if a field has been set. + +### GetPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableCircuitGroupAssignmentRequest) HasTags() bool` + +HasTags 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/docs/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md index 90bca5029..7f012b64f 100644 --- a/docs/PatchedWritableCircuitRequest.md +++ b/docs/PatchedWritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | Pointer to **string** | Unique circuit ID | [optional] -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | Pointer to [**CircuitTypeRequest**](CircuitTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | Pointer to [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | [optional] +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods @@ -64,20 +65,20 @@ HasCid returns a boolean if a field has been set. ### GetProvider -`func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. @@ -89,20 +90,20 @@ HasProvider returns a boolean if a field has been set. ### GetProviderAccount -`func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -124,20 +125,20 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. @@ -149,20 +150,20 @@ HasType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -174,20 +175,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -412,6 +413,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *PatchedWritableCircuitRequest) HasAssignments() bool` + +HasAssignments 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/docs/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md index 18ee4fc62..0e1f19b93 100644 --- a/docs/PatchedWritableClusterRequest.md +++ b/docs/PatchedWritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**ClusterTypeRequest**](ClusterTypeRequest.md) | | [optional] -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | Pointer to [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -61,20 +61,20 @@ HasName returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. @@ -86,20 +86,20 @@ HasType returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -121,20 +121,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -146,20 +146,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -181,20 +181,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *PatchedWritableClusterRequest) GetSite() SiteRequest` +`func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. diff --git a/docs/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md index 52a08ee90..1b5ea9f2d 100644 --- a/docs/PatchedWritableConsolePortRequest.md +++ b/docs/PatchedWritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md index d9dbf04aa..854014935 100644 --- a/docs/PatchedWritableConsolePortTemplateRequest.md +++ b/docs/PatchedWritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md index 05b70f9d5..b2b57e24c 100644 --- a/docs/PatchedWritableConsoleServerPortRequest.md +++ b/docs/PatchedWritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md index ef7c3aa0e..b8326fbb5 100644 --- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md +++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md index e2b7dc360..791ef1844 100644 --- a/docs/PatchedWritableContactAssignmentRequest.md +++ b/docs/PatchedWritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**Contact** | Pointer to [**ContactRequest**](ContactRequest.md) | | [optional] -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | Pointer to [**BriefContactRequest**](BriefContactRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasObjectId returns a boolean if a field has been set. ### GetContact -`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. @@ -108,20 +108,20 @@ HasContact returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -143,20 +143,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md index 21645eb48..036786d58 100644 --- a/docs/PatchedWritableCustomFieldRequest.md +++ b/docs/PatchedWritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -254,6 +256,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *PatchedWritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *PatchedWritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32` @@ -414,6 +441,41 @@ HasDefault returns a boolean if a field has been set. `func (o *PatchedWritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *PatchedWritableCustomFieldRequest) GetWeight() int32` @@ -536,20 +598,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/PatchedWritableDataSourceRequest.md b/docs/PatchedWritableDataSourceRequest.md index 89182786d..144dda6f3 100644 --- a/docs/PatchedWritableDataSourceRequest.md +++ b/docs/PatchedWritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -158,31 +158,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *PatchedWritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PatchedWritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *PatchedWritableDataSourceRequest) GetParameters() interface{}` @@ -243,6 +218,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *PatchedWritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md index 330f80fe3..6175c121a 100644 --- a/docs/PatchedWritableDeviceTypeRequest.md +++ b/docs/PatchedWritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -44,20 +44,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -69,20 +69,20 @@ HasManufacturer returns a boolean if a field has been set. ### GetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -339,20 +339,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md index 2d049b103..e460e8796 100644 --- a/docs/PatchedWritableDeviceWithConfigContextRequest.md +++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**Role** | Pointer to [**DeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**RackFace1**](RackFace1.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -90,20 +90,20 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -115,20 +115,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -140,20 +140,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -175,20 +175,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -270,20 +270,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -295,20 +295,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -330,20 +330,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -545,20 +545,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -580,20 +580,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -615,20 +615,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -650,20 +650,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -685,20 +685,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -840,20 +840,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md index b1539fb42..eced560e5 100644 --- a/docs/PatchedWritableEventRuleRequest.md +++ b/docs/PatchedWritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | Pointer to **[]string** | | [optional] **Name** | Pointer to **string** | | [optional] -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | Pointer to [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | [optional] **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | Pointer to **string** | | [optional] @@ -89,155 +85,55 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. -### GetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd +### GetEnabled -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. +GetEnabled returns the Enabled field if non-nil, zero value otherwise. -### GetTypeJobEndOk +### GetEnabledOk -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTypeJobEnd +### SetEnabled -`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` -SetTypeJobEnd sets TypeJobEnd field to given value. +SetEnabled sets Enabled field to given value. -### HasTypeJobEnd +### HasEnabled -`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` -HasTypeJobEnd returns a boolean if a field has been set. +HasEnabled returns a boolean if a field has been set. -### GetEnabled +### GetEventTypes -`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` -GetEnabled returns the Enabled field if non-nil, zero value otherwise. +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. -### GetEnabledOk +### GetEventTypesOk -`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnabled +### SetEventTypes -`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` -SetEnabled sets Enabled field to given value. +SetEventTypes sets EventTypes field to given value. -### HasEnabled +### HasEventTypes -`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool` -HasEnabled returns a boolean if a field has been set. +HasEventTypes returns a boolean if a field has been set. ### GetConditions diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md index 1ad15f568..83f7b749b 100644 --- a/docs/PatchedWritableFrontPortRequest.md +++ b/docs/PatchedWritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -63,20 +63,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md index 2b2676581..79b85c905 100644 --- a/docs/PatchedWritableFrontPortTemplateRequest.md +++ b/docs/PatchedWritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] **Color** | Pointer to **string** | | [optional] -**RearPort** | Pointer to [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | [optional] +**RearPort** | Pointer to [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | [optional] **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -205,20 +205,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md index 283f8e6e4..49191ed36 100644 --- a/docs/PatchedWritableIPAddressRequest.md +++ b/docs/PatchedWritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -64,20 +64,20 @@ HasAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -99,20 +99,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md index f38f93833..3179cd2c0 100644 --- a/docs/PatchedWritableIPRangeRequest.md +++ b/docs/PatchedWritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | Pointer to **string** | | [optional] **EndAddress** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -87,20 +87,20 @@ HasEndAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -122,20 +122,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -182,20 +182,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest` +`func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md index 8692a34ab..8cb953b36 100644 --- a/docs/PatchedWritableIPSecProfileRequest.md +++ b/docs/PatchedWritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional] -**IkePolicy** | Pointer to [**IKEPolicyRequest**](IKEPolicyRequest.md) | | [optional] -**IpsecPolicy** | Pointer to [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | [optional] +**IkePolicy** | Pointer to [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | [optional] +**IpsecPolicy** | Pointer to [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -109,20 +109,20 @@ HasMode returns a boolean if a field has been set. ### GetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. @@ -134,20 +134,20 @@ HasIkePolicy returns a boolean if a field has been set. ### GetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md index be3d47b6d..b80cdd3d0 100644 --- a/docs/PatchedWritableInterfaceRequest.md +++ b/docs/PatchedWritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -108,20 +108,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -803,20 +803,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -913,20 +913,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md index dce5b9c25..37a2b3973 100644 --- a/docs/PatchedWritableInterfaceTemplateRequest.md +++ b/docs/PatchedWritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableL2VPNRequest.md b/docs/PatchedWritableL2VPNRequest.md index 27aad448f..f149765a2 100644 --- a/docs/PatchedWritableL2VPNRequest.md +++ b/docs/PatchedWritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -122,20 +122,20 @@ HasSlug returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -247,20 +247,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md index acc3b3ce7..cb0dab0cb 100644 --- a/docs/PatchedWritableLocationRequest.md +++ b/docs/PatchedWritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -86,20 +86,20 @@ HasSlug returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableLocationRequest) GetSite() SiteRequest` +`func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -146,20 +146,20 @@ HasParent returns a boolean if a field has been set. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -171,20 +171,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md index e5788f6e4..044d52a7b 100644 --- a/docs/PatchedWritableModuleRequest.md +++ b/docs/PatchedWritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **ModuleBay** | Pointer to **int32** | | [optional] -**ModuleType** | Pointer to [**ModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | Pointer to [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -86,20 +86,20 @@ HasModuleBay returns a boolean if a field has been set. ### GetModuleType -`func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -111,20 +111,20 @@ HasModuleType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md index 179b6c682..298b838d0 100644 --- a/docs/PatchedWritableModuleTypeRequest.md +++ b/docs/PatchedWritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -108,6 +109,31 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetWeight `func (o *PatchedWritableModuleTypeRequest) GetWeight() float64` @@ -145,20 +171,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md index cc35f75bc..5a5950774 100644 --- a/docs/PatchedWritablePowerFeedRequest.md +++ b/docs/PatchedWritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | Pointer to [**PowerPanelRequest**](PowerPanelRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | Pointer to [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -42,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. @@ -67,20 +67,20 @@ HasPowerPanel returns a boolean if a field has been set. ### GetRack -`func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest` +`func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -352,20 +352,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md index eb1ac8177..e32eb4ef3 100644 --- a/docs/PatchedWritablePowerOutletRequest.md +++ b/docs/PatchedWritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md index f76400db6..702369449 100644 --- a/docs/PatchedWritablePowerOutletRequestType.md +++ b/docs/PatchedWritablePowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md index 42e796ccf..083418fb7 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequest.md +++ b/docs/PatchedWritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -179,20 +179,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md index e1e5a0cbc..e607de63f 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequestType.md +++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md index 197374b54..50ac83cae 100644 --- a/docs/PatchedWritablePowerPortRequest.md +++ b/docs/PatchedWritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md index 0b2b85bc4..ec314c471 100644 --- a/docs/PatchedWritablePowerPortRequestType.md +++ b/docs/PatchedWritablePowerPortRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md index 1b737c2aa..a6282b699 100644 --- a/docs/PatchedWritablePowerPortTemplateRequest.md +++ b/docs/PatchedWritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md index a6fc8d0bf..296570b72 100644 --- a/docs/PatchedWritablePowerPortTemplateRequestType.md +++ b/docs/PatchedWritablePowerPortTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md index 91217763d..11ecea4d7 100644 --- a/docs/PatchedWritablePrefixRequest.md +++ b/docs/PatchedWritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -64,20 +64,20 @@ HasPrefix returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest` +`func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -99,20 +99,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest` +`func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -134,20 +134,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -169,20 +169,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest` +`func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -229,20 +229,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest` +`func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md index ee517e47e..3a9f84d13 100644 --- a/docs/PatchedWritableRackRequest.md +++ b/docs/PatchedWritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -111,20 +113,20 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *PatchedWritableRackRequest) GetSite() SiteRequest` +`func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableRackRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -136,20 +138,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableRackRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -171,20 +173,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *PatchedWritableRackRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -231,20 +233,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest` +`func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -324,30 +326,65 @@ HasAssetTag returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *PatchedWritableRackRequest) HasType() bool` +`func (o *PatchedWritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *PatchedWritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *PatchedWritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. ### GetWidth @@ -496,20 +533,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. @@ -674,6 +711,31 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedWritableRackRequest) GetDescription() string` diff --git a/docs/PatchedWritableRackRequestAirflow.md b/docs/PatchedWritableRackRequestAirflow.md new file mode 100644 index 000000000..a4de6542a --- /dev/null +++ b/docs/PatchedWritableRackRequestAirflow.md @@ -0,0 +1,15 @@ +# PatchedWritableRackRequestAirflow + +## Enum + + +* `FRONT_TO_REAR` (value: `"front-to-rear"`) + +* `REAR_TO_FRONT` (value: `"rear-to-front"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableRackRequestFormFactor.md b/docs/PatchedWritableRackRequestFormFactor.md new file mode 100644 index 000000000..85a3f5399 --- /dev/null +++ b/docs/PatchedWritableRackRequestFormFactor.md @@ -0,0 +1,25 @@ +# PatchedWritableRackRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PatchedWritableRackTypeRequest.md b/docs/PatchedWritableRackTypeRequest.md new file mode 100644 index 000000000..32ed5e80b --- /dev/null +++ b/docs/PatchedWritableRackTypeRequest.md @@ -0,0 +1,574 @@ +# PatchedWritableRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Model** | Pointer to **string** | | [optional] +**Slug** | Pointer to **string** | | [optional] +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackTypeRequestFormFactor**](PatchedWritableRackTypeRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewPatchedWritableRackTypeRequest + +`func NewPatchedWritableRackTypeRequest() *PatchedWritableRackTypeRequest` + +NewPatchedWritableRackTypeRequest instantiates a new PatchedWritableRackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPatchedWritableRackTypeRequestWithDefaults + +`func NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeRequest` + +NewPatchedWritableRackTypeRequestWithDefaults instantiates a new PatchedWritableRackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### GetModel + +`func (o *PatchedWritableRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *PatchedWritableRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *PatchedWritableRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + +### HasModel + +`func (o *PatchedWritableRackTypeRequest) HasModel() bool` + +HasModel returns a boolean if a field has been set. + +### GetSlug + +`func (o *PatchedWritableRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *PatchedWritableRackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *PatchedWritableRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + +### HasSlug + +`func (o *PatchedWritableRackTypeRequest) HasSlug() bool` + +HasSlug returns a boolean if a field has been set. + +### GetDescription + +`func (o *PatchedWritableRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *PatchedWritableRackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *PatchedWritableRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *PatchedWritableRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *PatchedWritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackTypeRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### GetWidth + +`func (o *PatchedWritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *PatchedWritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *PatchedWritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *PatchedWritableRackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *PatchedWritableRackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *PatchedWritableRackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *PatchedWritableRackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *PatchedWritableRackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *PatchedWritableRackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *PatchedWritableRackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *PatchedWritableRackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *PatchedWritableRackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *PatchedWritableRackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *PatchedWritableRackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *PatchedWritableRackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *PatchedWritableRackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *PatchedWritableRackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *PatchedWritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *PatchedWritableRackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *PatchedWritableRackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *PatchedWritableRackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *PatchedWritableRackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *PatchedWritableRackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *PatchedWritableRackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *PatchedWritableRackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *PatchedWritableRackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *PatchedWritableRackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *PatchedWritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *PatchedWritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### GetMountingDepth + +`func (o *PatchedWritableRackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *PatchedWritableRackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *PatchedWritableRackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *PatchedWritableRackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableRackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableRackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableRackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PatchedWritableRackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PatchedWritableRackTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PatchedWritableRackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PatchedWritableRackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PatchedWritableRackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PatchedWritableRackTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PatchedWritableRackTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PatchedWritableRackTypeRequestFormFactor.md b/docs/PatchedWritableRackTypeRequestFormFactor.md new file mode 100644 index 000000000..e1dd497f0 --- /dev/null +++ b/docs/PatchedWritableRackTypeRequestFormFactor.md @@ -0,0 +1,23 @@ +# PatchedWritableRackTypeRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + + +[[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/docs/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md index f77fdd2db..c3687e9e3 100644 --- a/docs/PatchedWritableRearPortRequest.md +++ b/docs/PatchedWritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md index 200b96c81..2e43d2d10 100644 --- a/docs/PatchedWritableRearPortTemplateRequest.md +++ b/docs/PatchedWritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md index 1766d4654..7a04b670c 100644 --- a/docs/PatchedWritableServiceRequest.md +++ b/docs/PatchedWritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | Pointer to **[]int32** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md index 508c38a89..8c3c896c8 100644 --- a/docs/PatchedWritableSiteRequest.md +++ b/docs/PatchedWritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Full name of the site | [optional] **Slug** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -93,20 +93,20 @@ HasSlug returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -118,20 +118,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest` +`func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -153,20 +153,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -188,20 +188,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md index 5fa722f81..a4407ef86 100644 --- a/docs/PatchedWritableTunnelRequest.md +++ b/docs/PatchedWritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -87,20 +87,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ HasEncapsulation returns a boolean if a field has been set. ### GetIpsecProfile -`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -182,20 +182,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md index 15f17c622..3cbfca83e 100644 --- a/docs/PatchedWritableTunnelTerminationRequest.md +++ b/docs/PatchedWritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | Pointer to [**TunnelRequest**](TunnelRequest.md) | | [optional] +**Tunnel** | Pointer to [**BriefTunnelRequest**](BriefTunnelRequest.md) | | [optional] **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | Pointer to **string** | | [optional] **TerminationId** | Pointer to **NullableInt64** | | [optional] -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -143,20 +143,20 @@ HasTerminationId returns a boolean if a field has been set. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md index edfc174e7..489fc76da 100644 --- a/docs/PatchedWritableVLANRequest.md +++ b/docs/PatchedWritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] **Name** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedWritableVLANRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -157,20 +157,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -217,20 +217,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableVLANRequest) GetRole() RoleRequest` +`func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md index ae6bedaea..219ce7f6b 100644 --- a/docs/PatchedWritableVMInterfaceRequest.md +++ b/docs/PatchedWritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -305,20 +305,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -365,20 +365,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableVirtualDeviceContextRequest.md b/docs/PatchedWritableVirtualDeviceContextRequest.md index 1954bc853..e9b0dc680 100644 --- a/docs/PatchedWritableVirtualDeviceContextRequest.md +++ b/docs/PatchedWritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -62,20 +62,20 @@ HasName returns a boolean if a field has been set. ### GetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -122,20 +122,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -157,20 +157,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -192,20 +192,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md index 08fc04070..34e864ee1 100644 --- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md +++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -70,20 +71,20 @@ HasName returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -95,20 +96,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -130,20 +131,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -165,20 +166,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -198,22 +199,47 @@ HasDevice returns a boolean if a field has been set. `func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -235,20 +261,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -270,20 +296,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -305,20 +331,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -340,20 +366,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -530,20 +556,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md index 6bb30de66..efcbde378 100644 --- a/docs/PatchedWritableWirelessLANRequest.md +++ b/docs/PatchedWritableWirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -88,20 +88,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -148,20 +148,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -183,20 +183,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md index a04db8cf4..5726a3256 100644 --- a/docs/PatchedWritableWirelessLinkRequest.md +++ b/docs/PatchedWritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] -**InterfaceB** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] +**InterfaceA** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] +**InterfaceB** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -38,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. @@ -63,20 +65,20 @@ HasInterfaceA returns a boolean if a field has been set. ### GetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -113,20 +115,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -138,20 +140,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -246,6 +248,66 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *PatchedWritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedWritableWirelessLinkRequest) GetDescription() string` diff --git a/docs/PatchedWritableWirelessLinkRequestDistanceUnit.md b/docs/PatchedWritableWirelessLinkRequestDistanceUnit.md new file mode 100644 index 000000000..368d1a9c5 --- /dev/null +++ b/docs/PatchedWritableWirelessLinkRequestDistanceUnit.md @@ -0,0 +1,19 @@ +# PatchedWritableWirelessLinkRequestDistanceUnit + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Platform.md b/docs/Platform.md index d4c3b9c56..dc8b1beb4 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -6,10 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] @@ -17,7 +24,7 @@ Name | Type | Description | Notes ### NewPlatform -`func NewPlatform(id int32, url string, display string, name string, slug string, ) *Platform` +`func NewPlatform(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -72,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Platform) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Platform) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Platform) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Platform) GetDisplay() string` @@ -132,6 +159,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *Platform) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *Platform) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *Platform) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *Platform) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *Platform) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *Platform) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *Platform) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *Platform) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *Platform) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *Platform) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *Platform) GetDescription() string` @@ -157,6 +254,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Platform) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Platform) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Platform) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Platform) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Platform) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Platform) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Platform) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Platform) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Platform) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Platform) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Platform) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Platform) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Platform) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Platform) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Platform) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Platform) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Platform) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Platform) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Platform) GetDeviceCount() int64` diff --git a/docs/PlatformRequest.md b/docs/PlatformRequest.md index 39c7230e5..160d7324a 100644 --- a/docs/PlatformRequest.md +++ b/docs/PlatformRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PlatformRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *PlatformRequest) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *PlatformRequest) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *PlatformRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *PlatformRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *PlatformRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *PlatformRequest) GetDescription() string` @@ -92,6 +166,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *PlatformRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PlatformRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PlatformRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PlatformRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PlatformRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PlatformRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PlatformRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PlatformRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PowerFeed.md b/docs/PowerFeed.md index d1fe1f236..fd7d76f87 100644 --- a/docs/PowerFeed.md +++ b/docs/PowerFeed.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**PowerPanel** | [**PowerPanel**](PowerPanel.md) | | -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**PowerPanel** | [**BriefPowerPanel**](BriefPowerPanel.md) | | +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PowerFeedStatus**](PowerFeedStatus.md) | | [optional] **Type** | Pointer to [**PowerFeedType**](PowerFeedType.md) | | [optional] @@ -18,15 +19,15 @@ Name | Type | Description | Notes **Amperage** | Pointer to **int32** | | [optional] **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +39,7 @@ Name | Type | Description | Notes ### NewPowerFeed -`func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` +`func NewPowerFeed(id int32, url string, displayUrl string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` NewPowerFeed instantiates a new PowerFeed object This constructor will assign default values to properties that have it defined, @@ -93,6 +94,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerFeed) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerFeed) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerFeed) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerFeed) GetDisplay() string` @@ -115,40 +136,40 @@ SetDisplay sets Display field to given value. ### GetPowerPanel -`func (o *PowerFeed) GetPowerPanel() PowerPanel` +`func (o *PowerFeed) GetPowerPanel() BriefPowerPanel` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool)` +`func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeed) SetPowerPanel(v PowerPanel)` +`func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeed) GetRack() Rack` +`func (o *PowerFeed) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeed) GetRackOk() (*Rack, bool)` +`func (o *PowerFeed) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeed) SetRack(v Rack)` +`func (o *PowerFeed) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -390,20 +411,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerFeed) GetCable() Cable` +`func (o *PowerFeed) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerFeed) GetCableOk() (*Cable, bool)` +`func (o *PowerFeed) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerFeed) SetCable(v Cable)` +`func (o *PowerFeed) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -478,6 +499,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *PowerFeed) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerFeed) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerFeed) GetConnectedEndpoints() []interface{}` @@ -498,6 +529,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *PowerFeed) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerFeed) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerFeed) GetConnectedEndpointsType() string` @@ -518,6 +559,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *PowerFeed) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerFeed) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerFeed) GetConnectedEndpointsReachable() bool` @@ -565,20 +616,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeed) GetTenant() Tenant` +`func (o *PowerFeed) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeed) GetTenantOk() (*Tenant, bool)` +`func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeed) SetTenant(v Tenant)` +`func (o *PowerFeed) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md index d72dbffb6..a08360ebc 100644 --- a/docs/PowerFeedRequest.md +++ b/docs/PowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewPowerFeedRequest -`func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *PowerFeedRequest` +`func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *PowerFeedRequest` NewPowerFeedRequest instantiates a new PowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeedRequest) GetRack() RackRequest` +`func (o *PowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeedRequest) SetRack(v RackRequest)` +`func (o *PowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeedRequest) GetTenant() TenantRequest` +`func (o *PowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerOutlet.md b/docs/PowerOutlet.md index 488ae2777..b17d6815b 100644 --- a/docs/PowerOutlet.md +++ b/docs/PowerOutlet.md @@ -6,22 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPort**](PowerPort.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPort**](BriefPowerPort.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,7 +34,7 @@ Name | Type | Description | Notes ### NewPowerOutlet -`func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` +`func NewPowerOutlet(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` NewPowerOutlet instantiates a new PowerOutlet object This constructor will assign default values to properties that have it defined, @@ -88,6 +89,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerOutlet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerOutlet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerOutlet) GetDisplay() string` @@ -110,40 +131,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerOutlet) GetDevice() Device` +`func (o *PowerOutlet) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutlet) GetDeviceOk() (*Device, bool)` +`func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutlet) SetDevice(v Device)` +`func (o *PowerOutlet) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutlet) GetModule() Module` +`func (o *PowerOutlet) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutlet) GetModuleOk() (*Module, bool)` +`func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutlet) SetModule(v Module)` +`func (o *PowerOutlet) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -245,20 +266,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutlet) GetPowerPort() PowerPort` +`func (o *PowerOutlet) GetPowerPort() BriefPowerPort` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool)` +`func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutlet) SetPowerPort(v PowerPort)` +`func (o *PowerOutlet) SetPowerPort(v BriefPowerPort)` SetPowerPort sets PowerPort field to given value. @@ -365,20 +386,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerOutlet) GetCable() Cable` +`func (o *PowerOutlet) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerOutlet) GetCableOk() (*Cable, bool)` +`func (o *PowerOutlet) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerOutlet) SetCable(v Cable)` +`func (o *PowerOutlet) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -453,6 +474,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *PowerOutlet) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerOutlet) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerOutlet) GetConnectedEndpoints() []interface{}` @@ -473,6 +504,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *PowerOutlet) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerOutlet) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerOutlet) GetConnectedEndpointsType() string` @@ -493,6 +534,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *PowerOutlet) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerOutlet) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerOutlet) GetConnectedEndpointsReachable() bool` diff --git a/docs/PowerOutletRequest.md b/docs/PowerOutletRequest.md index 13dda02fd..d972b8040 100644 --- a/docs/PowerOutletRequest.md +++ b/docs/PowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewPowerOutletRequest -`func NewPowerOutletRequest(device DeviceRequest, name string, ) *PowerOutletRequest` +`func NewPowerOutletRequest(device BriefDeviceRequest, name string, ) *PowerOutletRequest` NewPowerOutletRequest instantiates a new PowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutletRequest) GetModule() ModuleRequest` +`func (o *PowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletRequestType.md index c44e44e53..ea20ff0b9 100644 --- a/docs/PowerOutletRequestType.md +++ b/docs/PowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md index f682defaf..e762a82dc 100644 --- a/docs/PowerOutletTemplate.md +++ b/docs/PowerOutletTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplate**](BriefPowerPortTemplate.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -99,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *PowerOutletTemplate) GetDeviceType() DeviceType` +`func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)` +`func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -134,20 +134,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplate) GetModuleType() ModuleType` +`func (o *PowerOutletTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)` +`func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -249,20 +249,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate` +`func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool)` +`func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)` +`func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md index 36e06e4b6..c4cb92e50 100644 --- a/docs/PowerOutletTemplateRequest.md +++ b/docs/PowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -184,20 +184,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md index 4df800c34..28e2d8309 100644 --- a/docs/PowerOutletTypeLabel.md +++ b/docs/PowerOutletTypeLabel.md @@ -125,6 +125,8 @@ * `NEMA_L21_30_R` (value: `"NEMA L21-30R"`) +* `NEMA_L22_20_R` (value: `"NEMA L22-20R"`) + * `NEMA_L22_30_R` (value: `"NEMA L22-30R"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PowerPanel.md b/docs/PowerPanel.md index 31346d707..f5b2a53fe 100644 --- a/docs/PowerPanel.md +++ b/docs/PowerPanel.md @@ -6,16 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] **PowerfeedCount** | **int64** | | [readonly] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPanel -`func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *PowerPanel` +`func NewPowerPanel(id int32, url string, displayUrl string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime, ) *PowerPanel` NewPowerPanel instantiates a new PowerPanel object This constructor will assign default values to properties that have it defined, @@ -70,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPanel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPanel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPanel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerPanel) GetDisplay() string` @@ -90,6 +118,61 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *PowerPanel) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanel) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanel) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanel) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanel) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanel) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanel) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanel) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanel) GetName() string` @@ -135,6 +218,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanel) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPanel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanel) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPanel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + ### GetPowerfeedCount `func (o *PowerPanel) GetPowerfeedCount() int64` @@ -155,6 +313,66 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### GetCreated + +`func (o *PowerPanel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPanel) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPanel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPanel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPanel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPanel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPanel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPanel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPanel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/PowerPanelRequest.md b/docs/PowerPanelRequest.md index 1993a4681..dbe61e3b7 100644 --- a/docs/PowerPanelRequest.md +++ b/docs/PowerPanelRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPanelRequest -`func NewPowerPanelRequest(name string, ) *PowerPanelRequest` +`func NewPowerPanelRequest(site BriefSiteRequest, name string, ) *PowerPanelRequest` NewPowerPanelRequest instantiates a new PowerPanelRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,61 @@ NewPowerPanelRequestWithDefaults instantiates a new PowerPanelRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSite + +`func (o *PowerPanelRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanelRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanelRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanelRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanelRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanelRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanelRequest) GetName() string` @@ -71,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPanelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanelRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PowerPort.md b/docs/PowerPort.md index 43c65c7fa..8b21830a2 100644 --- a/docs/PowerPort.md +++ b/docs/PowerPort.md @@ -6,18 +6,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**CableEnd** | **string** | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**ConnectedEndpoints** | **[]interface{}** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerPort -`func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool, ) *PowerPort` +`func NewPowerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerPort` NewPowerPort instantiates a new PowerPort object This constructor will assign default values to properties that have it defined, @@ -72,6 +89,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *PowerPort) GetDisplay() string` @@ -94,24 +131,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerPort) GetDevice() Device` +`func (o *PowerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPort) GetDeviceOk() (*Device, bool)` +`func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPort) SetDevice(v Device)` +`func (o *PowerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPort) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPort) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPort) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPort) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPort) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPort) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPort) GetName() string` @@ -132,6 +204,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPort) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPort) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPort) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPort) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPort) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPort) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPort) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPort) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPort) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPort) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPort) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPort) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPort) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPort) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPort) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPort) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPort) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPort) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPort) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPort) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPort) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPort) GetDescription() string` @@ -157,22 +359,47 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPort) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPort) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPort) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPort) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + ### GetCable -`func (o *PowerPort) GetCable() Cable` +`func (o *PowerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerPort) GetCableOk() (*Cable, bool)` +`func (o *PowerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerPort) SetCable(v Cable)` +`func (o *PowerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -187,6 +414,266 @@ SetCable sets Cable field to given value. `func (o *PowerPort) UnsetCable()` UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *PowerPort) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *PowerPort) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *PowerPort) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetLinkPeers + +`func (o *PowerPort) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *PowerPort) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *PowerPort) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *PowerPort) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *PowerPort) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + + +### SetLinkPeersTypeNil + +`func (o *PowerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +### GetConnectedEndpoints + +`func (o *PowerPort) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *PowerPort) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *PowerPort) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + + +### SetConnectedEndpointsNil + +`func (o *PowerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil +### GetConnectedEndpointsType + +`func (o *PowerPort) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *PowerPort) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + + +### SetConnectedEndpointsTypeNil + +`func (o *PowerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +### GetConnectedEndpointsReachable + +`func (o *PowerPort) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *PowerPort) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetTags + +`func (o *PowerPort) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPort) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPort) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPort) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPort) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPort) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPort) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPort) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerPort) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPort) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPort) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPort) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPort) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPort) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPort) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPort) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPort) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetOccupied `func (o *PowerPort) GetOccupied() bool` diff --git a/docs/PowerPortRequest.md b/docs/PowerPortRequest.md index 5828bf357..26e241c9a 100644 --- a/docs/PowerPortRequest.md +++ b/docs/PowerPortRequest.md @@ -4,15 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPortRequest -`func NewPowerPortRequest(device DeviceRequest, name string, ) *PowerPortRequest` +`func NewPowerPortRequest(device BriefDeviceRequest, name string, ) *PowerPortRequest` NewPowerPortRequest instantiates a new PowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -29,24 +37,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerPortRequest) GetDevice() DeviceRequest` +`func (o *PowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPortRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPortRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPortRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPortRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPortRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPortRequest) GetName() string` @@ -67,6 +110,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortRequest) GetType() PowerPortRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortRequest) SetType(v PowerPortRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPortRequest) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPortRequest) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPortRequest) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPortRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPortRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPortRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPortRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPortRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPortRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPortRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPortRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PowerPortRequestType.md b/docs/PowerPortRequestType.md new file mode 100644 index 000000000..8e1e4ae23 --- /dev/null +++ b/docs/PowerPortRequestType.md @@ -0,0 +1,219 @@ +# PowerPortRequestType + +## Enum + + +* `IEC_60320_C6` (value: `"iec-60320-c6"`) + +* `IEC_60320_C8` (value: `"iec-60320-c8"`) + +* `IEC_60320_C14` (value: `"iec-60320-c14"`) + +* `IEC_60320_C16` (value: `"iec-60320-c16"`) + +* `IEC_60320_C20` (value: `"iec-60320-c20"`) + +* `IEC_60320_C22` (value: `"iec-60320-c22"`) + +* `IEC_60309_P_N_E_4H` (value: `"iec-60309-p-n-e-4h"`) + +* `IEC_60309_P_N_E_6H` (value: `"iec-60309-p-n-e-6h"`) + +* `IEC_60309_P_N_E_9H` (value: `"iec-60309-p-n-e-9h"`) + +* `IEC_60309_2P_E_4H` (value: `"iec-60309-2p-e-4h"`) + +* `IEC_60309_2P_E_6H` (value: `"iec-60309-2p-e-6h"`) + +* `IEC_60309_2P_E_9H` (value: `"iec-60309-2p-e-9h"`) + +* `IEC_60309_3P_E_4H` (value: `"iec-60309-3p-e-4h"`) + +* `IEC_60309_3P_E_6H` (value: `"iec-60309-3p-e-6h"`) + +* `IEC_60309_3P_E_9H` (value: `"iec-60309-3p-e-9h"`) + +* `IEC_60309_3P_N_E_4H` (value: `"iec-60309-3p-n-e-4h"`) + +* `IEC_60309_3P_N_E_6H` (value: `"iec-60309-3p-n-e-6h"`) + +* `IEC_60309_3P_N_E_9H` (value: `"iec-60309-3p-n-e-9h"`) + +* `IEC_60906_1` (value: `"iec-60906-1"`) + +* `NBR_14136_10A` (value: `"nbr-14136-10a"`) + +* `NBR_14136_20A` (value: `"nbr-14136-20a"`) + +* `NEMA_1_15P` (value: `"nema-1-15p"`) + +* `NEMA_5_15P` (value: `"nema-5-15p"`) + +* `NEMA_5_20P` (value: `"nema-5-20p"`) + +* `NEMA_5_30P` (value: `"nema-5-30p"`) + +* `NEMA_5_50P` (value: `"nema-5-50p"`) + +* `NEMA_6_15P` (value: `"nema-6-15p"`) + +* `NEMA_6_20P` (value: `"nema-6-20p"`) + +* `NEMA_6_30P` (value: `"nema-6-30p"`) + +* `NEMA_6_50P` (value: `"nema-6-50p"`) + +* `NEMA_10_30P` (value: `"nema-10-30p"`) + +* `NEMA_10_50P` (value: `"nema-10-50p"`) + +* `NEMA_14_20P` (value: `"nema-14-20p"`) + +* `NEMA_14_30P` (value: `"nema-14-30p"`) + +* `NEMA_14_50P` (value: `"nema-14-50p"`) + +* `NEMA_14_60P` (value: `"nema-14-60p"`) + +* `NEMA_15_15P` (value: `"nema-15-15p"`) + +* `NEMA_15_20P` (value: `"nema-15-20p"`) + +* `NEMA_15_30P` (value: `"nema-15-30p"`) + +* `NEMA_15_50P` (value: `"nema-15-50p"`) + +* `NEMA_15_60P` (value: `"nema-15-60p"`) + +* `NEMA_L1_15P` (value: `"nema-l1-15p"`) + +* `NEMA_L5_15P` (value: `"nema-l5-15p"`) + +* `NEMA_L5_20P` (value: `"nema-l5-20p"`) + +* `NEMA_L5_30P` (value: `"nema-l5-30p"`) + +* `NEMA_L5_50P` (value: `"nema-l5-50p"`) + +* `NEMA_L6_15P` (value: `"nema-l6-15p"`) + +* `NEMA_L6_20P` (value: `"nema-l6-20p"`) + +* `NEMA_L6_30P` (value: `"nema-l6-30p"`) + +* `NEMA_L6_50P` (value: `"nema-l6-50p"`) + +* `NEMA_L10_30P` (value: `"nema-l10-30p"`) + +* `NEMA_L14_20P` (value: `"nema-l14-20p"`) + +* `NEMA_L14_30P` (value: `"nema-l14-30p"`) + +* `NEMA_L14_50P` (value: `"nema-l14-50p"`) + +* `NEMA_L14_60P` (value: `"nema-l14-60p"`) + +* `NEMA_L15_20P` (value: `"nema-l15-20p"`) + +* `NEMA_L15_30P` (value: `"nema-l15-30p"`) + +* `NEMA_L15_50P` (value: `"nema-l15-50p"`) + +* `NEMA_L15_60P` (value: `"nema-l15-60p"`) + +* `NEMA_L21_20P` (value: `"nema-l21-20p"`) + +* `NEMA_L21_30P` (value: `"nema-l21-30p"`) + +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + +* `NEMA_L22_30P` (value: `"nema-l22-30p"`) + +* `CS6361C` (value: `"cs6361c"`) + +* `CS6365C` (value: `"cs6365c"`) + +* `CS8165C` (value: `"cs8165c"`) + +* `CS8265C` (value: `"cs8265c"`) + +* `CS8365C` (value: `"cs8365c"`) + +* `CS8465C` (value: `"cs8465c"`) + +* `ITA_C` (value: `"ita-c"`) + +* `ITA_E` (value: `"ita-e"`) + +* `ITA_F` (value: `"ita-f"`) + +* `ITA_EF` (value: `"ita-ef"`) + +* `ITA_G` (value: `"ita-g"`) + +* `ITA_H` (value: `"ita-h"`) + +* `ITA_I` (value: `"ita-i"`) + +* `ITA_J` (value: `"ita-j"`) + +* `ITA_K` (value: `"ita-k"`) + +* `ITA_L` (value: `"ita-l"`) + +* `ITA_M` (value: `"ita-m"`) + +* `ITA_N` (value: `"ita-n"`) + +* `ITA_O` (value: `"ita-o"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `USB_3_B` (value: `"usb-3-b"`) + +* `USB_3_MICRO_B` (value: `"usb-3-micro-b"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"molex-micro-fit-1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"molex-micro-fit-2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"molex-micro-fit-2x4"`) + +* `DC_TERMINAL` (value: `"dc-terminal"`) + +* `SAF_D_GRID` (value: `"saf-d-grid"`) + +* `NEUTRIK_POWERCON_20` (value: `"neutrik-powercon-20"`) + +* `NEUTRIK_POWERCON_32` (value: `"neutrik-powercon-32"`) + +* `NEUTRIK_POWERCON_TRUE1` (value: `"neutrik-powercon-true1"`) + +* `NEUTRIK_POWERCON_TRUE1_TOP` (value: `"neutrik-powercon-true1-top"`) + +* `UBIQUITI_SMARTPOWER` (value: `"ubiquiti-smartpower"`) + +* `HARDWIRED` (value: `"hardwired"`) + +* `OTHER` (value: `"other"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/PowerPortTemplate.md b/docs/PowerPortTemplate.md index 0ddb2e324..6f50846c8 100644 --- a/docs/PowerPortTemplate.md +++ b/docs/PowerPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPortTemplate -`func NewPowerPortTemplate(id int32, url string, display string, name string, ) *PowerPortTemplate` +`func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerPortTemplate` NewPowerPortTemplate instantiates a new PowerPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplate) GetName() string` @@ -109,6 +187,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplate) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplate) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplate) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplate) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplate) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplate) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplate) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplate) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplate) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplate) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplate) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplate) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplate) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplate) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplate) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplate) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplate) GetDescription() string` @@ -134,6 +342,66 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *PowerPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPortTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md index 7c113cd12..30f81cd0b 100644 --- a/docs/PowerPortTemplateRequest.md +++ b/docs/PowerPortTemplateRequest.md @@ -4,7 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -26,6 +32,76 @@ NewPowerPortTemplateRequestWithDefaults instantiates a new PowerPortTemplateRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetDeviceType + +`func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplateRequest) GetName() string` @@ -46,6 +122,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplateRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplateRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplateRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplateRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplateRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplateRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplateRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplateRequest) GetDescription() string` diff --git a/docs/PowerPortType.md b/docs/PowerPortType.md new file mode 100644 index 000000000..c982432ff --- /dev/null +++ b/docs/PowerPortType.md @@ -0,0 +1,82 @@ +# PowerPortType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] +**Label** | Pointer to [**PowerPortTypeLabel**](PowerPortTypeLabel.md) | | [optional] + +## Methods + +### NewPowerPortType + +`func NewPowerPortType() *PowerPortType` + +NewPowerPortType instantiates a new PowerPortType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewPowerPortTypeWithDefaults + +`func NewPowerPortTypeWithDefaults() *PowerPortType` + +NewPowerPortTypeWithDefaults instantiates a new PowerPortType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *PowerPortType) GetValue() PatchedWritablePowerPortTemplateRequestType` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *PowerPortType) GetValueOk() (*PatchedWritablePowerPortTemplateRequestType, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *PowerPortType) SetValue(v PatchedWritablePowerPortTemplateRequestType)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *PowerPortType) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *PowerPortType) GetLabel() PowerPortTypeLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortType) SetLabel(v PowerPortTypeLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortType) HasLabel() bool` + +HasLabel 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/docs/PowerPortTypeLabel.md b/docs/PowerPortTypeLabel.md new file mode 100644 index 000000000..561079ab0 --- /dev/null +++ b/docs/PowerPortTypeLabel.md @@ -0,0 +1,217 @@ +# PowerPortTypeLabel + +## Enum + + +* `C6` (value: `"C6"`) + +* `C8` (value: `"C8"`) + +* `C14` (value: `"C14"`) + +* `C16` (value: `"C16"`) + +* `C20` (value: `"C20"`) + +* `C22` (value: `"C22"`) + +* `PNE_4_H` (value: `"P+N+E 4H"`) + +* `PNE_6_H` (value: `"P+N+E 6H"`) + +* `PNE_9_H` (value: `"P+N+E 9H"`) + +* `_2_PE_4_H` (value: `"2P+E 4H"`) + +* `_2_PE_6_H` (value: `"2P+E 6H"`) + +* `_2_PE_9_H` (value: `"2P+E 9H"`) + +* `_3_PE_4_H` (value: `"3P+E 4H"`) + +* `_3_PE_6_H` (value: `"3P+E 6H"`) + +* `_3_PE_9_H` (value: `"3P+E 9H"`) + +* `_3_PNE_4_H` (value: `"3P+N+E 4H"`) + +* `_3_PNE_6_H` (value: `"3P+N+E 6H"`) + +* `_3_PNE_9_H` (value: `"3P+N+E 9H"`) + +* `IEC_60906_1` (value: `"IEC 60906-1"`) + +* `_2_PT_10_A__NBR_14136` (value: `"2P+T 10A (NBR 14136)"`) + +* `_2_PT_20_A__NBR_14136` (value: `"2P+T 20A (NBR 14136)"`) + +* `NEMA_1_15_P` (value: `"NEMA 1-15P"`) + +* `NEMA_5_15_P` (value: `"NEMA 5-15P"`) + +* `NEMA_5_20_P` (value: `"NEMA 5-20P"`) + +* `NEMA_5_30_P` (value: `"NEMA 5-30P"`) + +* `NEMA_5_50_P` (value: `"NEMA 5-50P"`) + +* `NEMA_6_15_P` (value: `"NEMA 6-15P"`) + +* `NEMA_6_20_P` (value: `"NEMA 6-20P"`) + +* `NEMA_6_30_P` (value: `"NEMA 6-30P"`) + +* `NEMA_6_50_P` (value: `"NEMA 6-50P"`) + +* `NEMA_10_30_P` (value: `"NEMA 10-30P"`) + +* `NEMA_10_50_P` (value: `"NEMA 10-50P"`) + +* `NEMA_14_20_P` (value: `"NEMA 14-20P"`) + +* `NEMA_14_30_P` (value: `"NEMA 14-30P"`) + +* `NEMA_14_50_P` (value: `"NEMA 14-50P"`) + +* `NEMA_14_60_P` (value: `"NEMA 14-60P"`) + +* `NEMA_15_15_P` (value: `"NEMA 15-15P"`) + +* `NEMA_15_20_P` (value: `"NEMA 15-20P"`) + +* `NEMA_15_30_P` (value: `"NEMA 15-30P"`) + +* `NEMA_15_50_P` (value: `"NEMA 15-50P"`) + +* `NEMA_15_60_P` (value: `"NEMA 15-60P"`) + +* `NEMA_L1_15_P` (value: `"NEMA L1-15P"`) + +* `NEMA_L5_15_P` (value: `"NEMA L5-15P"`) + +* `NEMA_L5_20_P` (value: `"NEMA L5-20P"`) + +* `NEMA_L5_30_P` (value: `"NEMA L5-30P"`) + +* `NEMA_L5_50_P` (value: `"NEMA L5-50P"`) + +* `NEMA_L6_15_P` (value: `"NEMA L6-15P"`) + +* `NEMA_L6_20_P` (value: `"NEMA L6-20P"`) + +* `NEMA_L6_30_P` (value: `"NEMA L6-30P"`) + +* `NEMA_L6_50_P` (value: `"NEMA L6-50P"`) + +* `NEMA_L10_30_P` (value: `"NEMA L10-30P"`) + +* `NEMA_L14_20_P` (value: `"NEMA L14-20P"`) + +* `NEMA_L14_30_P` (value: `"NEMA L14-30P"`) + +* `NEMA_L14_50_P` (value: `"NEMA L14-50P"`) + +* `NEMA_L14_60_P` (value: `"NEMA L14-60P"`) + +* `NEMA_L15_20_P` (value: `"NEMA L15-20P"`) + +* `NEMA_L15_30_P` (value: `"NEMA L15-30P"`) + +* `NEMA_L15_50_P` (value: `"NEMA L15-50P"`) + +* `NEMA_L15_60_P` (value: `"NEMA L15-60P"`) + +* `NEMA_L21_20_P` (value: `"NEMA L21-20P"`) + +* `NEMA_L21_30_P` (value: `"NEMA L21-30P"`) + +* `NEMA_L22_20_P` (value: `"NEMA L22-20P"`) + +* `NEMA_L22_30_P` (value: `"NEMA L22-30P"`) + +* `CS6361_C` (value: `"CS6361C"`) + +* `CS6365_C` (value: `"CS6365C"`) + +* `CS8165_C` (value: `"CS8165C"`) + +* `CS8265_C` (value: `"CS8265C"`) + +* `CS8365_C` (value: `"CS8365C"`) + +* `CS8465_C` (value: `"CS8465C"`) + +* `ITA_TYPE_C__CEE_7_16` (value: `"ITA Type C (CEE 7/16)"`) + +* `ITA_TYPE_E__CEE_7_6` (value: `"ITA Type E (CEE 7/6)"`) + +* `ITA_TYPE_F__CEE_7_4` (value: `"ITA Type F (CEE 7/4)"`) + +* `ITA_TYPE_E_F__CEE_7_7` (value: `"ITA Type E/F (CEE 7/7)"`) + +* `ITA_TYPE_G__BS_1363` (value: `"ITA Type G (BS 1363)"`) + +* `ITA_TYPE_H` (value: `"ITA Type H"`) + +* `ITA_TYPE_I` (value: `"ITA Type I"`) + +* `ITA_TYPE_J` (value: `"ITA Type J"`) + +* `ITA_TYPE_K` (value: `"ITA Type K"`) + +* `ITA_TYPE_L__CEI_23_50` (value: `"ITA Type L (CEI 23-50)"`) + +* `ITA_TYPE_M__BS_546` (value: `"ITA Type M (BS 546)"`) + +* `ITA_TYPE_N` (value: `"ITA Type N"`) + +* `ITA_TYPE_O` (value: `"ITA Type O"`) + +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + +* `USB_3_0_TYPE_B` (value: `"USB 3.0 Type B"`) + +* `USB_3_0_MICRO_B` (value: `"USB 3.0 Micro B"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"Molex Micro-Fit 1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"Molex Micro-Fit 2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"Molex Micro-Fit 2x4"`) + +* `DC_TERMINAL` (value: `"DC Terminal"`) + +* `SAF_D_GRID` (value: `"Saf-D-Grid"`) + +* `NEUTRIK_POWER_CON__20_A` (value: `"Neutrik powerCON (20A)"`) + +* `NEUTRIK_POWER_CON__32_A` (value: `"Neutrik powerCON (32A)"`) + +* `NEUTRIK_POWER_CON_TRUE1` (value: `"Neutrik powerCON TRUE1"`) + +* `NEUTRIK_POWER_CON_TRUE1_TOP` (value: `"Neutrik powerCON TRUE1 TOP"`) + +* `UBIQUITI_SMART_POWER` (value: `"Ubiquiti SmartPower"`) + +* `HARDWIRED` (value: `"Hardwired"`) + +* `OTHER` (value: `"Other"`) + + +[[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/docs/Prefix.md b/docs/Prefix.md index b1b6821a6..66c553024 100644 --- a/docs/Prefix.md +++ b/docs/Prefix.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **Status** | Pointer to [**PrefixStatus**](PrefixStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -30,7 +31,7 @@ Name | Type | Description | Notes ### NewPrefix -`func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` +`func NewPrefix(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` NewPrefix instantiates a new Prefix object This constructor will assign default values to properties that have it defined, @@ -85,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Prefix) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Prefix) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Prefix) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Prefix) GetDisplay() string` @@ -147,20 +168,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *Prefix) GetSite() Site` +`func (o *Prefix) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Prefix) GetSiteOk() (*Site, bool)` +`func (o *Prefix) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Prefix) SetSite(v Site)` +`func (o *Prefix) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -182,20 +203,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *Prefix) GetVrf() VRF` +`func (o *Prefix) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Prefix) GetVrfOk() (*VRF, bool)` +`func (o *Prefix) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Prefix) SetVrf(v VRF)` +`func (o *Prefix) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -217,20 +238,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *Prefix) GetTenant() Tenant` +`func (o *Prefix) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Prefix) GetTenantOk() (*Tenant, bool)` +`func (o *Prefix) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Prefix) SetTenant(v Tenant)` +`func (o *Prefix) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -252,20 +273,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *Prefix) GetVlan() VLAN` +`func (o *Prefix) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *Prefix) GetVlanOk() (*VLAN, bool)` +`func (o *Prefix) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *Prefix) SetVlan(v VLAN)` +`func (o *Prefix) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -312,20 +333,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *Prefix) GetRole() Role` +`func (o *Prefix) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Prefix) GetRoleOk() (*Role, bool)` +`func (o *Prefix) GetRoleOk() (*BriefRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Prefix) SetRole(v Role)` +`func (o *Prefix) SetRole(v BriefRole)` SetRole sets Role field to given value. diff --git a/docs/PrefixRequest.md b/docs/PrefixRequest.md index ae1f2006b..9f8079465 100644 --- a/docs/PrefixRequest.md +++ b/docs/PrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *PrefixRequest) GetSite() SiteRequest` +`func (o *PrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PrefixRequest) SetSite(v SiteRequest)` +`func (o *PrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PrefixRequest) GetVrf() VRFRequest` +`func (o *PrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PrefixRequest) SetVrf(v VRFRequest)` +`func (o *PrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PrefixRequest) GetTenant() TenantRequest` +`func (o *PrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PrefixRequest) SetTenant(v TenantRequest)` +`func (o *PrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PrefixRequest) GetVlan() VLANRequest` +`func (o *PrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PrefixRequest) SetVlan(v VLANRequest)` +`func (o *PrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PrefixRequest) GetRole() RoleRequest` +`func (o *PrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PrefixRequest) SetRole(v RoleRequest)` +`func (o *PrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/Provider.md b/docs/Provider.md index 16fd7e5df..7f587c8e7 100644 --- a/docs/Provider.md +++ b/docs/Provider.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to [**[]NestedProviderAccount**](NestedProviderAccount.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **CircuitCount** | **int64** | | [readonly] ## Methods ### NewProvider -`func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Provider` +`func NewProvider(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *Provider` NewProvider instantiates a new Provider object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Provider) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Provider) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Provider) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Provider) GetDisplay() string` @@ -131,6 +159,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *Provider) GetAccounts() []NestedProviderAccount` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *Provider) GetAccountsOk() (*[]NestedProviderAccount, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *Provider) SetAccounts(v []NestedProviderAccount)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *Provider) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *Provider) GetDescription() string` @@ -156,6 +209,166 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Provider) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Provider) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Provider) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Provider) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Provider) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Provider) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Provider) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Provider) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Provider) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Provider) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Provider) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Provider) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Provider) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Provider) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Provider) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Provider) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Provider) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Provider) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Provider) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Provider) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Provider) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Provider) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Provider) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Provider) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Provider) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Provider) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetCircuitCount `func (o *Provider) GetCircuitCount() int64` diff --git a/docs/ProviderAccount.md b/docs/ProviderAccount.md index aac9f2198..4ea7ef591 100644 --- a/docs/ProviderAccount.md +++ b/docs/ProviderAccount.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Provider** | [**Provider**](Provider.md) | | +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewProviderAccount -`func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` +`func NewProviderAccount(id int32, url string, displayUrl string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` NewProviderAccount instantiates a new ProviderAccount object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ProviderAccount) GetDisplay() string` @@ -98,20 +119,20 @@ SetDisplay sets Display field to given value. ### GetProvider -`func (o *ProviderAccount) GetProvider() Provider` +`func (o *ProviderAccount) GetProvider() BriefProvider` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *ProviderAccount) GetProviderOk() (*Provider, bool)` +`func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *ProviderAccount) SetProvider(v Provider)` +`func (o *ProviderAccount) SetProvider(v BriefProvider)` SetProvider sets Provider field to given value. diff --git a/docs/ProviderAccountRequest.md b/docs/ProviderAccountRequest.md index 73ff7c78b..bf38cf07e 100644 --- a/docs/ProviderAccountRequest.md +++ b/docs/ProviderAccountRequest.md @@ -4,15 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderAccountRequest -`func NewProviderAccountRequest(account string, ) *ProviderAccountRequest` +`func NewProviderAccountRequest(provider BriefProviderRequest, account string, ) *ProviderAccountRequest` NewProviderAccountRequest instantiates a new ProviderAccountRequest object This constructor will assign default values to properties that have it defined, @@ -27,6 +31,26 @@ NewProviderAccountRequestWithDefaults instantiates a new ProviderAccountRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetProvider + +`func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderAccountRequest) GetName() string` @@ -97,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderAccountRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderAccountRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderAccountRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderAccountRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderAccountRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderAccountRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderAccountRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderAccountRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ProviderNetwork.md b/docs/ProviderNetwork.md index de3e09373..b0fdec44c 100644 --- a/docs/ProviderNetwork.md +++ b/docs/ProviderNetwork.md @@ -6,15 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewProviderNetwork -`func NewProviderNetwork(id int32, url string, display string, name string, ) *ProviderNetwork` +`func NewProviderNetwork(id int32, url string, displayUrl string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime, ) *ProviderNetwork` NewProviderNetwork instantiates a new ProviderNetwork object This constructor will assign default values to properties that have it defined, @@ -69,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderNetwork) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderNetwork) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ProviderNetwork) GetDisplay() string` @@ -89,6 +117,26 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetProvider + +`func (o *ProviderNetwork) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetwork) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetwork) GetName() string` @@ -109,6 +157,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetwork) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetwork) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetwork) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetwork) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetwork) GetDescription() string` @@ -134,6 +207,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetwork) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetwork) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetwork) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetwork) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetwork) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetwork) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderNetwork) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetwork) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetwork) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetwork) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderNetwork) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetwork) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ProviderNetwork) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ProviderNetwork) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ProviderNetwork) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ProviderNetwork) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ProviderNetwork) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ProviderNetwork) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ProviderNetwork) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ProviderNetwork) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ProviderNetworkRequest.md b/docs/ProviderNetworkRequest.md index 21f981aa6..45b2b952a 100644 --- a/docs/ProviderNetworkRequest.md +++ b/docs/ProviderNetworkRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderNetworkRequest -`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest` +`func NewProviderNetworkRequest(provider BriefProviderRequest, name string, ) *ProviderNetworkRequest` NewProviderNetworkRequest instantiates a new ProviderNetworkRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,26 @@ NewProviderNetworkRequestWithDefaults instantiates a new ProviderNetworkRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetProvider + +`func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetworkRequest) GetName() string` @@ -46,6 +71,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetworkRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetworkRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetworkRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetworkRequest) GetDescription() string` @@ -71,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetworkRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetworkRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetworkRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetworkRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetworkRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetworkRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetworkRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ProviderRequest.md b/docs/ProviderRequest.md index a7e51837e..c03de9ce6 100644 --- a/docs/ProviderRequest.md +++ b/docs/ProviderRequest.md @@ -6,7 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +72,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *ProviderRequest) GetAccounts() []int32` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *ProviderRequest) GetAccountsOk() (*[]int32, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *ProviderRequest) SetAccounts(v []int32)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *ProviderRequest) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderRequest) GetDescription() string` @@ -92,6 +122,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *ProviderRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *ProviderRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *ProviderRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *ProviderRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RIR.md b/docs/RIR.md index 2c027c73a..2bb4cce6e 100644 --- a/docs/RIR.md +++ b/docs/RIR.md @@ -6,17 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **AggregateCount** | **int64** | | [readonly] ## Methods ### NewRIR -`func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *RIR` +`func NewRIR(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64, ) *RIR` NewRIR instantiates a new RIR object This constructor will assign default values to properties that have it defined, @@ -71,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RIR) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RIR) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RIR) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RIR) GetDisplay() string` @@ -131,6 +157,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIR) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIR) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIR) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIR) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIR) GetDescription() string` @@ -156,6 +207,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIR) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIR) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RIR) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIR) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIR) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIR) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RIR) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIR) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RIR) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RIR) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RIR) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RIR) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RIR) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RIR) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RIR) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RIR) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RIR) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RIR) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetAggregateCount `func (o *RIR) GetAggregateCount() int64` diff --git a/docs/RIRRequest.md b/docs/RIRRequest.md index 3a102b34c..761c2570e 100644 --- a/docs/RIRRequest.md +++ b/docs/RIRRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIRRequest) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIRRequest) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIRRequest) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIRRequest) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIRRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIRRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIRRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RIRRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIRRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIRRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIRRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RIRRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIRRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Rack.md b/docs/Rack.md index 20e4a6cb2..da8228764 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -6,16 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**RackStatus**](RackStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRole**](BriefRackRole.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackType**](BriefRackType.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**RackAirflow**](RackAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**PowerfeedCount** | **int64** | | [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, display string, name string, ) *Rack` +`func NewRack(id int32, url string, displayUrl string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, powerfeedCount int64, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -70,6 +99,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Rack) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Rack) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Rack) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Rack) GetDisplay() string` @@ -110,6 +159,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *Rack) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *Rack) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *Rack) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *Rack) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *Rack) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *Rack) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *Rack) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Rack) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Rack) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *Rack) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *Rack) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *Rack) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *Rack) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *Rack) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *Rack) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *Rack) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Rack) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Rack) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Rack) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Rack) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Rack) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *Rack) GetStatus() RackStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Rack) GetStatusOk() (*RackStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Rack) SetStatus(v RackStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Rack) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *Rack) GetRole() BriefRackRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *Rack) GetRoleOk() (*BriefRackRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *Rack) SetRole(v BriefRackRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *Rack) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *Rack) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *Rack) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *Rack) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Rack) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Rack) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Rack) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Rack) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Rack) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Rack) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Rack) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Rack) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Rack) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *Rack) GetRackType() BriefRackType` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *Rack) GetRackTypeOk() (*BriefRackType, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *Rack) SetRackType(v BriefRackType)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *Rack) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *Rack) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *Rack) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *Rack) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *Rack) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *Rack) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *Rack) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *Rack) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *Rack) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *Rack) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *Rack) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *Rack) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *Rack) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *Rack) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *Rack) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *Rack) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *Rack) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *Rack) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *Rack) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *Rack) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *Rack) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Rack) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Rack) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Rack) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *Rack) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *Rack) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *Rack) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *Rack) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *Rack) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *Rack) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *Rack) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *Rack) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *Rack) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *Rack) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *Rack) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *Rack) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *Rack) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *Rack) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *Rack) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *Rack) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *Rack) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *Rack) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *Rack) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *Rack) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *Rack) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *Rack) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *Rack) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *Rack) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *Rack) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *Rack) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *Rack) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *Rack) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *Rack) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *Rack) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *Rack) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *Rack) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *Rack) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *Rack) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *Rack) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *Rack) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *Rack) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *Rack) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *Rack) GetAirflow() RackAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *Rack) GetAirflowOk() (*RackAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *Rack) SetAirflow(v RackAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *Rack) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *Rack) GetDescription() string` @@ -135,6 +869,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Rack) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Rack) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Rack) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Rack) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Rack) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Rack) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Rack) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Rack) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Rack) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Rack) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Rack) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Rack) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Rack) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Rack) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Rack) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Rack) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Rack) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Rack) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Rack) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Rack) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Rack) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Rack) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Rack) GetDeviceCount() int64` @@ -160,6 +1029,26 @@ SetDeviceCount sets DeviceCount field to given value. HasDeviceCount returns a boolean if a field has been set. +### GetPowerfeedCount + +`func (o *Rack) GetPowerfeedCount() int64` + +GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. + +### GetPowerfeedCountOk + +`func (o *Rack) GetPowerfeedCountOk() (*int64, bool)` + +GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerfeedCount + +`func (o *Rack) SetPowerfeedCount(v int64)` + +SetPowerfeedCount sets PowerfeedCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RackAirflow.md b/docs/RackAirflow.md new file mode 100644 index 000000000..5afcaf33e --- /dev/null +++ b/docs/RackAirflow.md @@ -0,0 +1,82 @@ +# RackAirflow + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] +**Label** | Pointer to [**RackAirflowLabel**](RackAirflowLabel.md) | | [optional] + +## Methods + +### NewRackAirflow + +`func NewRackAirflow() *RackAirflow` + +NewRackAirflow instantiates a new RackAirflow object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackAirflowWithDefaults + +`func NewRackAirflowWithDefaults() *RackAirflow` + +NewRackAirflowWithDefaults instantiates a new RackAirflow object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackAirflow) GetValue() PatchedWritableRackRequestAirflow` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackAirflow) GetValueOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackAirflow) SetValue(v PatchedWritableRackRequestAirflow)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackAirflow) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackAirflow) GetLabel() RackAirflowLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackAirflow) GetLabelOk() (*RackAirflowLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackAirflow) SetLabel(v RackAirflowLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackAirflow) HasLabel() bool` + +HasLabel 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/docs/RackAirflowLabel.md b/docs/RackAirflowLabel.md new file mode 100644 index 000000000..e517065ba --- /dev/null +++ b/docs/RackAirflowLabel.md @@ -0,0 +1,13 @@ +# RackAirflowLabel + +## Enum + + +* `FRONT_TO_REAR` (value: `"Front to rear"`) + +* `REAR_TO_FRONT` (value: `"Rear to front"`) + + +[[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/docs/RackFormFactor.md b/docs/RackFormFactor.md new file mode 100644 index 000000000..dbb316231 --- /dev/null +++ b/docs/RackFormFactor.md @@ -0,0 +1,82 @@ +# RackFormFactor + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] +**Label** | Pointer to [**RackFormFactorLabel**](RackFormFactorLabel.md) | | [optional] + +## Methods + +### NewRackFormFactor + +`func NewRackFormFactor() *RackFormFactor` + +NewRackFormFactor instantiates a new RackFormFactor object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackFormFactorWithDefaults + +`func NewRackFormFactorWithDefaults() *RackFormFactor` + +NewRackFormFactorWithDefaults instantiates a new RackFormFactor object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackFormFactor) GetValue() PatchedWritableRackRequestFormFactor` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackFormFactor) GetValueOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackFormFactor) SetValue(v PatchedWritableRackRequestFormFactor)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackFormFactor) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackFormFactor) GetLabel() RackFormFactorLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackFormFactor) GetLabelOk() (*RackFormFactorLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackFormFactor) SetLabel(v RackFormFactorLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackFormFactor) HasLabel() bool` + +HasLabel 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/docs/RackFormFactorLabel.md b/docs/RackFormFactorLabel.md new file mode 100644 index 000000000..720b1eb8c --- /dev/null +++ b/docs/RackFormFactorLabel.md @@ -0,0 +1,23 @@ +# RackFormFactorLabel + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post frame"`) + +* `_4_POST_FRAME` (value: `"4-post frame"`) + +* `_4_POST_CABINET` (value: `"4-post cabinet"`) + +* `WALL_MOUNTED_FRAME` (value: `"Wall-mounted frame"`) + +* `WALL_MOUNTED_FRAME__VERTICAL` (value: `"Wall-mounted frame (vertical)"`) + +* `WALL_MOUNTED_CABINET` (value: `"Wall-mounted cabinet"`) + +* `WALL_MOUNTED_CABINET__VERTICAL` (value: `"Wall-mounted cabinet (vertical)"`) + + +[[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/docs/RackOuterUnit.md b/docs/RackOuterUnit.md new file mode 100644 index 000000000..09a88910f --- /dev/null +++ b/docs/RackOuterUnit.md @@ -0,0 +1,82 @@ +# RackOuterUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Label** | Pointer to [**RackOuterUnitLabel**](RackOuterUnitLabel.md) | | [optional] + +## Methods + +### NewRackOuterUnit + +`func NewRackOuterUnit() *RackOuterUnit` + +NewRackOuterUnit instantiates a new RackOuterUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackOuterUnitWithDefaults + +`func NewRackOuterUnitWithDefaults() *RackOuterUnit` + +NewRackOuterUnitWithDefaults instantiates a new RackOuterUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackOuterUnit) GetValue() PatchedWritableRackRequestOuterUnit` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackOuterUnit) GetValueOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackOuterUnit) SetValue(v PatchedWritableRackRequestOuterUnit)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackOuterUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackOuterUnit) HasLabel() bool` + +HasLabel 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/docs/RackOuterUnitLabel.md b/docs/RackOuterUnitLabel.md new file mode 100644 index 000000000..760faedf1 --- /dev/null +++ b/docs/RackOuterUnitLabel.md @@ -0,0 +1,13 @@ +# RackOuterUnitLabel + +## Enum + + +* `MILLIMETERS` (value: `"Millimeters"`) + +* `INCHES` (value: `"Inches"`) + + +[[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/docs/RackRequest.md b/docs/RackRequest.md index fdc2c2dd5..12ddea190 100644 --- a/docs/RackRequest.md +++ b/docs/RackRequest.md @@ -5,13 +5,38 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackRequestFormFactor**](RackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewRackRequest -`func NewRackRequest(name string, ) *RackRequest` +`func NewRackRequest(name string, site BriefSiteRequest, ) *RackRequest` NewRackRequest instantiates a new RackRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +71,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *RackRequest) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *RackRequest) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *RackRequest) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *RackRequest) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *RackRequest) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *RackRequest) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *RackRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *RackRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *RackRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *RackRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *RackRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *RackRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *RackRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *RackRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *RackRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *RackRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *RackRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *RackRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RackRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *RackRequest) GetRole() BriefRackRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *RackRequest) SetRole(v BriefRackRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *RackRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *RackRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *RackRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *RackRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *RackRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *RackRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *RackRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *RackRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *RackRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *RackRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *RackRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *RackRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *RackRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *RackRequest) GetRackType() BriefRackTypeRequest` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *RackRequest) SetRackType(v BriefRackTypeRequest)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *RackRequest) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *RackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *RackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *RackRequest) GetFormFactor() RackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackRequest) SetFormFactor(v RackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *RackRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *RackRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *RackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *RackRequest) GetDescription() string` @@ -71,6 +781,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *RackRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RackRequestFormFactor.md b/docs/RackRequestFormFactor.md new file mode 100644 index 000000000..5725ed05a --- /dev/null +++ b/docs/RackRequestFormFactor.md @@ -0,0 +1,25 @@ +# RackRequestFormFactor + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackRequestOuterUnit.md b/docs/RackRequestOuterUnit.md new file mode 100644 index 000000000..8316b288d --- /dev/null +++ b/docs/RackRequestOuterUnit.md @@ -0,0 +1,15 @@ +# RackRequestOuterUnit + +## Enum + + +* `MM` (value: `"mm"`) + +* `IN` (value: `"in"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/RackReservation.md b/docs/RackReservation.md index d8fdbd2ff..3908a59cf 100644 --- a/docs/RackReservation.md +++ b/docs/RackReservation.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Rack** | [**Rack**](Rack.md) | | +**Rack** | [**BriefRack**](BriefRack.md) | | **Units** | **[]int32** | | **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**User** | [**User**](User.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**User** | [**BriefUser**](BriefUser.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewRackReservation -`func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string, ) *RackReservation` +`func NewRackReservation(id int32, url string, displayUrl string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string, ) *RackReservation` NewRackReservation instantiates a new RackReservation object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackReservation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackReservation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackReservation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RackReservation) GetDisplay() string` @@ -99,20 +120,20 @@ SetDisplay sets Display field to given value. ### GetRack -`func (o *RackReservation) GetRack() Rack` +`func (o *RackReservation) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservation) GetRackOk() (*Rack, bool)` +`func (o *RackReservation) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservation) SetRack(v Rack)` +`func (o *RackReservation) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -199,40 +220,40 @@ SetLastUpdated sets LastUpdated field to given value. UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetUser -`func (o *RackReservation) GetUser() User` +`func (o *RackReservation) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservation) GetUserOk() (*User, bool)` +`func (o *RackReservation) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservation) SetUser(v User)` +`func (o *RackReservation) SetUser(v BriefUser)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservation) GetTenant() Tenant` +`func (o *RackReservation) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservation) GetTenantOk() (*Tenant, bool)` +`func (o *RackReservation) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservation) SetTenant(v Tenant)` +`func (o *RackReservation) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RackReservationRequest.md b/docs/RackReservationRequest.md index e87e36a89..1910e473a 100644 --- a/docs/RackReservationRequest.md +++ b/docs/RackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | [**RackRequest**](RackRequest.md) | | +**Rack** | [**BriefRackRequest**](BriefRackRequest.md) | | **Units** | **[]int32** | | -**User** | [**UserRequest**](UserRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewRackReservationRequest -`func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string, ) *RackReservationRequest` +`func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string, ) *RackReservationRequest` NewRackReservationRequest instantiates a new RackReservationRequest object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *RackReservationRequest) GetRack() RackRequest` +`func (o *RackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservationRequest) SetRack(v RackRequest)` +`func (o *RackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -74,40 +74,40 @@ SetUnits sets Units field to given value. ### GetUser -`func (o *RackReservationRequest) GetUser() UserRequest` +`func (o *RackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservationRequest) SetUser(v UserRequest)` +`func (o *RackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservationRequest) GetTenant() TenantRequest` +`func (o *RackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservationRequest) SetTenant(v TenantRequest)` +`func (o *RackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/RackRole.md b/docs/RackRole.md index a13905573..25a4d6f53 100644 --- a/docs/RackRole.md +++ b/docs/RackRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewRackRole -`func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` +`func NewRackRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` NewRackRole instantiates a new RackRole object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RackRole) GetDisplay() string` diff --git a/docs/RackStatus.md b/docs/RackStatus.md new file mode 100644 index 000000000..414f07dde --- /dev/null +++ b/docs/RackStatus.md @@ -0,0 +1,82 @@ +# RackStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Label** | Pointer to [**RackStatusLabel**](RackStatusLabel.md) | | [optional] + +## Methods + +### NewRackStatus + +`func NewRackStatus() *RackStatus` + +NewRackStatus instantiates a new RackStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackStatusWithDefaults + +`func NewRackStatusWithDefaults() *RackStatus` + +NewRackStatusWithDefaults instantiates a new RackStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackStatus) SetValue(v PatchedWritableRackRequestStatus)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackStatus) GetLabel() RackStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackStatus) GetLabelOk() (*RackStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackStatus) SetLabel(v RackStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackStatus) HasLabel() bool` + +HasLabel 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/docs/RackStatusLabel.md b/docs/RackStatusLabel.md new file mode 100644 index 000000000..0b700039e --- /dev/null +++ b/docs/RackStatusLabel.md @@ -0,0 +1,19 @@ +# RackStatusLabel + +## Enum + + +* `RESERVED` (value: `"Reserved"`) + +* `AVAILABLE` (value: `"Available"`) + +* `PLANNED` (value: `"Planned"`) + +* `ACTIVE` (value: `"Active"`) + +* `DEPRECATED` (value: `"Deprecated"`) + + +[[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/docs/RackType.md b/docs/RackType.md new file mode 100644 index 000000000..dcc20c65b --- /dev/null +++ b/docs/RackType.md @@ -0,0 +1,735 @@ +# RackType + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] + +## Methods + +### NewRackType + +`func NewRackType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, ) *RackType` + +NewRackType instantiates a new RackType object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackTypeWithDefaults + +`func NewRackTypeWithDefaults() *RackType` + +NewRackTypeWithDefaults instantiates a new RackType object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *RackType) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *RackType) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *RackType) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *RackType) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *RackType) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *RackType) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplayUrl + +`func (o *RackType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + +### GetDisplay + +`func (o *RackType) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *RackType) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *RackType) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetManufacturer + +`func (o *RackType) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *RackType) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *RackType) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *RackType) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *RackType) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *RackType) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *RackType) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RackType) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *RackType) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RackType) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackType) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RackType) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RackType) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *RackType) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackType) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackType) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackType) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackType) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackType) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackType) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackType) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackType) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackType) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackType) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackType) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackType) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackType) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackType) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackType) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackType) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *RackType) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackType) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackType) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackType) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackType) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackType) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackType) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackType) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackType) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackType) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackType) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackType) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackType) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackType) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackType) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackType) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackType) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackType) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackType) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackType) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackType) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackType) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *RackType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackType) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackType) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackType) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackType) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackType) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackType) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackType) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackType) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackType) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackType) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackType) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackType) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *RackType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RackType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RackType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RackType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RackType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RackType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RackType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RackType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RackType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RackType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RackType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil + +[[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/docs/RackTypeRequest.md b/docs/RackTypeRequest.md new file mode 100644 index 000000000..bbf79de3a --- /dev/null +++ b/docs/RackTypeRequest.md @@ -0,0 +1,589 @@ +# RackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | Pointer to [**NullableRackRequestFormFactor**](RackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewRackTypeRequest + +`func NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *RackTypeRequest` + +NewRackTypeRequest instantiates a new RackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackTypeRequestWithDefaults + +`func NewRackTypeRequestWithDefaults() *RackTypeRequest` + +NewRackTypeRequestWithDefaults instantiates a new RackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *RackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *RackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *RackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *RackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *RackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *RackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *RackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *RackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *RackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *RackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *RackTypeRequest) GetFormFactor() RackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackTypeRequest) GetFormFactorOk() (*RackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackTypeRequest) SetFormFactor(v RackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackTypeRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackTypeRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackTypeRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackTypeRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackTypeRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackTypeRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackTypeRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *RackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackTypeRequest) GetOuterUnit() RackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackTypeRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackTypeRequest) SetOuterUnit(v RackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackTypeRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackTypeRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetWeight + +`func (o *RackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *RackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RackUnit.md b/docs/RackUnit.md index 507d76f97..170729fb9 100644 --- a/docs/RackUnit.md +++ b/docs/RackUnit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **float64** | | [readonly] **Name** | **string** | | [readonly] **Face** | [**RackUnitFace**](RackUnitFace.md) | | -**Device** | [**Device**](Device.md) | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | [readonly] **Occupied** | **bool** | | [readonly] **Display** | **string** | | [readonly] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewRackUnit -`func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string, ) *RackUnit` +`func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string, ) *RackUnit` NewRackUnit instantiates a new RackUnit object This constructor will assign default values to properties that have it defined, @@ -92,20 +92,20 @@ SetFace sets Face field to given value. ### GetDevice -`func (o *RackUnit) GetDevice() Device` +`func (o *RackUnit) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RackUnit) GetDeviceOk() (*Device, bool)` +`func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RackUnit) SetDevice(v Device)` +`func (o *RackUnit) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. diff --git a/docs/RackWidth.md b/docs/RackWidth.md new file mode 100644 index 000000000..04b03ffe8 --- /dev/null +++ b/docs/RackWidth.md @@ -0,0 +1,82 @@ +# RackWidth + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**Label** | Pointer to [**RackWidthLabel**](RackWidthLabel.md) | | [optional] + +## Methods + +### NewRackWidth + +`func NewRackWidth() *RackWidth` + +NewRackWidth instantiates a new RackWidth object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewRackWidthWithDefaults + +`func NewRackWidthWithDefaults() *RackWidth` + +NewRackWidthWithDefaults instantiates a new RackWidth object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *RackWidth) GetValue() RackWidthValue` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *RackWidth) GetValueOk() (*RackWidthValue, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *RackWidth) SetValue(v RackWidthValue)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *RackWidth) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *RackWidth) GetLabel() RackWidthLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RackWidth) SetLabel(v RackWidthLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RackWidth) HasLabel() bool` + +HasLabel 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/docs/RackWidthLabel.md b/docs/RackWidthLabel.md new file mode 100644 index 000000000..c6fa6cba1 --- /dev/null +++ b/docs/RackWidthLabel.md @@ -0,0 +1,17 @@ +# RackWidthLabel + +## Enum + + +* `_10_INCHES` (value: `"10 inches"`) + +* `_19_INCHES` (value: `"19 inches"`) + +* `_21_INCHES` (value: `"21 inches"`) + +* `_23_INCHES` (value: `"23 inches"`) + + +[[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/docs/RackWidthValue.md b/docs/RackWidthValue.md new file mode 100644 index 000000000..c4f90af4d --- /dev/null +++ b/docs/RackWidthValue.md @@ -0,0 +1,17 @@ +# RackWidthValue + +## Enum + + +* `_10` (value: `10`) + +* `_19` (value: `19`) + +* `_21` (value: `21`) + +* `_23` (value: `23`) + + +[[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/docs/RearPort.md b/docs/RearPort.md index 18ec1face..a491dd748 100644 --- a/docs/RearPort.md +++ b/docs/RearPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -16,10 +17,10 @@ Name | Type | Description | Notes **Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -30,7 +31,7 @@ Name | Type | Description | Notes ### NewRearPort -`func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` +`func NewRearPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` NewRearPort instantiates a new RearPort object This constructor will assign default values to properties that have it defined, @@ -85,6 +86,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RearPort) GetDisplay() string` @@ -107,40 +128,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *RearPort) GetDevice() Device` +`func (o *RearPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPort) GetDeviceOk() (*Device, bool)` +`func (o *RearPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPort) SetDevice(v Device)` +`func (o *RearPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPort) GetModule() Module` +`func (o *RearPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPort) GetModuleOk() (*Module, bool)` +`func (o *RearPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPort) SetModule(v Module)` +`func (o *RearPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -327,20 +348,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *RearPort) GetCable() Cable` +`func (o *RearPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *RearPort) GetCableOk() (*Cable, bool)` +`func (o *RearPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *RearPort) SetCable(v Cable)` +`func (o *RearPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -415,6 +436,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *RearPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *RearPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *RearPort) GetTags() []NestedTag` diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md index 3555c4450..8a6a32755 100644 --- a/docs/RearPortRequest.md +++ b/docs/RearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewRearPortRequest -`func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` +`func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` NewRearPortRequest instantiates a new RearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *RearPortRequest) GetDevice() DeviceRequest` +`func (o *RearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPortRequest) SetDevice(v DeviceRequest)` +`func (o *RearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPortRequest) GetModule() ModuleRequest` +`func (o *RearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPortRequest) SetModule(v ModuleRequest)` +`func (o *RearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/RearPortTemplate.md b/docs/RearPortTemplate.md index 004494da3..a687076f7 100644 --- a/docs/RearPortTemplate.md +++ b/docs/RearPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**FrontPortType**](FrontPortType.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewRearPortTemplate -`func NewRearPortTemplate(id int32, url string, display string, name string, ) *RearPortTemplate` +`func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime, ) *RearPortTemplate` NewRearPortTemplate instantiates a new RearPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *RearPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplate) GetName() string` @@ -109,6 +187,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplate) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RearPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplate) GetType() FrontPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplate) SetType(v FrontPortType)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplate) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplate) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplate) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplate) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplate) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplate) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplate) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplate) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplate) GetDescription() string` @@ -134,6 +307,66 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *RearPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RearPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RearPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RearPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RearPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RearPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RearPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RearPortTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md index d139cde91..71bf28cd3 100644 --- a/docs/RearPortTemplateRequest.md +++ b/docs/RearPortTemplateRequest.md @@ -4,14 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewRearPortTemplateRequest -`func NewRearPortTemplateRequest(name string, ) *RearPortTemplateRequest` +`func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *RearPortTemplateRequest` NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +32,76 @@ NewRearPortTemplateRequestWithDefaults instantiates a new RearPortTemplateReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetDeviceType + +`func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplateRequest) GetName() string` @@ -46,6 +122,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RearPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplateRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplateRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplateRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplateRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplateRequest) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplateRequest) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplateRequest) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplateRequest) GetDescription() string` diff --git a/docs/Region.md b/docs/Region.md index f7c3a1a81..a1f9b45c1 100644 --- a/docs/Region.md +++ b/docs/Region.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewRegion -`func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` +`func NewRegion(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Region) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Region) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Region) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Region) GetDisplay() string` diff --git a/docs/Role.md b/docs/Role.md index 2129bc8e4..d4fcda2d9 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **VlanCount** | **int64** | | [readonly] @@ -17,7 +23,7 @@ Name | Type | Description | Notes ### NewRole -`func NewRole(id int32, url string, display string, name string, slug string, vlanCount int64, ) *Role` +`func NewRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, vlanCount int64, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Role) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Role) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Role) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Role) GetDisplay() string` @@ -132,6 +158,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *Role) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Role) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Role) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Role) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *Role) GetDescription() string` @@ -157,6 +208,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Role) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Role) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Role) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Role) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Role) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Role) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Role) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Role) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Role) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Role) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Role) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Role) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Role) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Role) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Role) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Role) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Role) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Role) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetPrefixCount `func (o *Role) GetPrefixCount() int64` diff --git a/docs/RoleRequest.md b/docs/RoleRequest.md index 4ea26627a..8a35bd48f 100644 --- a/docs/RoleRequest.md +++ b/docs/RoleRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *RoleRequest) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RoleRequest) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RoleRequest) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RoleRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *RoleRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RoleRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RouteTarget.md b/docs/RouteTarget.md index 55b89b478..f203abad9 100644 --- a/docs/RouteTarget.md +++ b/docs/RouteTarget.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewRouteTarget -`func NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` +`func NewRouteTarget(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` NewRouteTarget instantiates a new RouteTarget object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RouteTarget) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RouteTarget) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RouteTarget) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *RouteTarget) GetDisplay() string` @@ -117,20 +138,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTarget) GetTenant() Tenant` +`func (o *RouteTarget) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTarget) GetTenantOk() (*Tenant, bool)` +`func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTarget) SetTenant(v Tenant)` +`func (o *RouteTarget) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RouteTargetRequest.md b/docs/RouteTargetRequest.md index 2627327d1..55aedbd23 100644 --- a/docs/RouteTargetRequest.md +++ b/docs/RouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -52,20 +52,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTargetRequest) GetTenant() TenantRequest` +`func (o *RouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md index 78ce2dbcb..88b69affe 100644 --- a/docs/SavedFilter.md +++ b/docs/SavedFilter.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewSavedFilter -`func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` +`func NewSavedFilter(id int32, url string, displayUrl string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` NewSavedFilter instantiates a new SavedFilter object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SavedFilter) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SavedFilter) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SavedFilter) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *SavedFilter) GetDisplay() string` diff --git a/docs/SchemaAPI.md b/docs/SchemaAPI.md index 21435ca5d..166791f3f 100644 --- a/docs/SchemaAPI.md +++ b/docs/SchemaAPI.md @@ -30,7 +30,7 @@ import ( func main() { format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional) - lang := openapiclient.schema_retrieve_lang_parameter("de") // SchemaRetrieveLangParameter | (optional) + lang := openapiclient.schema_retrieve_lang_parameter("cs") // SchemaRetrieveLangParameter | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/SchemaRetrieveLangParameter.md b/docs/SchemaRetrieveLangParameter.md index aed2056cb..ffba2fac9 100644 --- a/docs/SchemaRetrieveLangParameter.md +++ b/docs/SchemaRetrieveLangParameter.md @@ -3,6 +3,10 @@ ## Enum +* `CS` (value: `"cs"`) + +* `DA` (value: `"da"`) + * `DE` (value: `"de"`) * `EN` (value: `"en"`) @@ -11,8 +15,14 @@ * `FR` (value: `"fr"`) +* `IT` (value: `"it"`) + * `JA` (value: `"ja"`) +* `NL` (value: `"nl"`) + +* `PL` (value: `"pl"`) + * `PT` (value: `"pt"`) * `RU` (value: `"ru"`) diff --git a/docs/Script.md b/docs/Script.md index e8ce7b887..8ddbdc5c7 100644 --- a/docs/Script.md +++ b/docs/Script.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Module** | **int32** | | [readonly] **Name** | **string** | | [readonly] -**Description** | **string** | | [readonly] +**Description** | **NullableString** | | [readonly] **Vars** | **interface{}** | | [readonly] -**Result** | [**Job**](Job.md) | | [readonly] +**Result** | [**BriefJob**](BriefJob.md) | | [readonly] **Display** | **string** | | [readonly] **IsExecutable** | **bool** | | [readonly] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewScript -`func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool, ) *Script` +`func NewScript(id int32, url string, displayUrl string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool, ) *Script` NewScript instantiates a new Script object This constructor will assign default values to properties that have it defined, @@ -73,6 +74,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Script) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Script) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Script) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetModule `func (o *Script) GetModule() int32` @@ -133,6 +154,16 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. +### SetDescriptionNil + +`func (o *Script) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Script) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetVars `func (o *Script) GetVars() interface{}` @@ -165,20 +196,20 @@ SetVars sets Vars field to given value. UnsetVars ensures that no value is present for Vars, not even an explicit nil ### GetResult -`func (o *Script) GetResult() Job` +`func (o *Script) GetResult() BriefJob` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *Script) GetResultOk() (*Job, bool)` +`func (o *Script) GetResultOk() (*BriefJob, bool)` GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResult -`func (o *Script) SetResult(v Job)` +`func (o *Script) SetResult(v BriefJob)` SetResult sets Result field to given value. diff --git a/docs/ScriptInputRequest.md b/docs/ScriptInputRequest.md new file mode 100644 index 000000000..ed5d79399 --- /dev/null +++ b/docs/ScriptInputRequest.md @@ -0,0 +1,154 @@ +# ScriptInputRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Data** | **interface{}** | | +**Commit** | **bool** | | +**ScheduleAt** | Pointer to **NullableTime** | | [optional] +**Interval** | Pointer to **NullableInt32** | | [optional] + +## Methods + +### NewScriptInputRequest + +`func NewScriptInputRequest(data interface{}, commit bool, ) *ScriptInputRequest` + +NewScriptInputRequest instantiates a new ScriptInputRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewScriptInputRequestWithDefaults + +`func NewScriptInputRequestWithDefaults() *ScriptInputRequest` + +NewScriptInputRequestWithDefaults instantiates a new ScriptInputRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetData + +`func (o *ScriptInputRequest) GetData() interface{}` + +GetData returns the Data field if non-nil, zero value otherwise. + +### GetDataOk + +`func (o *ScriptInputRequest) GetDataOk() (*interface{}, bool)` + +GetDataOk returns a tuple with the Data field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetData + +`func (o *ScriptInputRequest) SetData(v interface{})` + +SetData sets Data field to given value. + + +### SetDataNil + +`func (o *ScriptInputRequest) SetDataNil(b bool)` + + SetDataNil sets the value for Data to be an explicit nil + +### UnsetData +`func (o *ScriptInputRequest) UnsetData()` + +UnsetData ensures that no value is present for Data, not even an explicit nil +### GetCommit + +`func (o *ScriptInputRequest) GetCommit() bool` + +GetCommit returns the Commit field if non-nil, zero value otherwise. + +### GetCommitOk + +`func (o *ScriptInputRequest) GetCommitOk() (*bool, bool)` + +GetCommitOk returns a tuple with the Commit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommit + +`func (o *ScriptInputRequest) SetCommit(v bool)` + +SetCommit sets Commit field to given value. + + +### GetScheduleAt + +`func (o *ScriptInputRequest) GetScheduleAt() time.Time` + +GetScheduleAt returns the ScheduleAt field if non-nil, zero value otherwise. + +### GetScheduleAtOk + +`func (o *ScriptInputRequest) GetScheduleAtOk() (*time.Time, bool)` + +GetScheduleAtOk returns a tuple with the ScheduleAt field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetScheduleAt + +`func (o *ScriptInputRequest) SetScheduleAt(v time.Time)` + +SetScheduleAt sets ScheduleAt field to given value. + +### HasScheduleAt + +`func (o *ScriptInputRequest) HasScheduleAt() bool` + +HasScheduleAt returns a boolean if a field has been set. + +### SetScheduleAtNil + +`func (o *ScriptInputRequest) SetScheduleAtNil(b bool)` + + SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil + +### UnsetScheduleAt +`func (o *ScriptInputRequest) UnsetScheduleAt()` + +UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +### GetInterval + +`func (o *ScriptInputRequest) GetInterval() int32` + +GetInterval returns the Interval field if non-nil, zero value otherwise. + +### GetIntervalOk + +`func (o *ScriptInputRequest) GetIntervalOk() (*int32, bool)` + +GetIntervalOk returns a tuple with the Interval field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterval + +`func (o *ScriptInputRequest) SetInterval(v int32)` + +SetInterval sets Interval field to given value. + +### HasInterval + +`func (o *ScriptInputRequest) HasInterval() bool` + +HasInterval returns a boolean if a field has been set. + +### SetIntervalNil + +`func (o *ScriptInputRequest) SetIntervalNil(b bool)` + + SetIntervalNil sets the value for Interval to be an explicit nil + +### UnsetInterval +`func (o *ScriptInputRequest) UnsetInterval()` + +UnsetInterval ensures that no value is present for Interval, not even an explicit nil + +[[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/docs/Service.md b/docs/Service.md index 230dccd71..9e154aaf6 100644 --- a/docs/Service.md +++ b/docs/Service.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachine**](VirtualMachine.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachine**](BriefVirtualMachine.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewService -`func NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` +`func NewService(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Service) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Service) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Service) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Service) GetDisplay() string` @@ -101,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Service) GetDevice() Device` +`func (o *Service) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Service) GetDeviceOk() (*Device, bool)` +`func (o *Service) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Service) SetDevice(v Device)` +`func (o *Service) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -136,20 +157,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *Service) GetVirtualMachine() VirtualMachine` +`func (o *Service) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *Service) SetVirtualMachine(v VirtualMachine)` +`func (o *Service) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md index bfabf2ad6..832124979 100644 --- a/docs/ServiceRequest.md +++ b/docs/ServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ServiceRequest) GetDevice() DeviceRequest` +`func (o *ServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ServiceRequest) SetDevice(v DeviceRequest)` +`func (o *ServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceTemplate.md b/docs/ServiceTemplate.md index a83d4f5cb..a817c1d46 100644 --- a/docs/ServiceTemplate.md +++ b/docs/ServiceTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewServiceTemplate -`func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` +`func NewServiceTemplate(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` NewServiceTemplate instantiates a new ServiceTemplate object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ServiceTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ServiceTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *ServiceTemplate) GetDisplay() string` diff --git a/docs/Site.md b/docs/Site.md index 0458e57f6..a4a66d72a 100644 --- a/docs/Site.md +++ b/docs/Site.md @@ -6,16 +6,39 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegion**](BriefRegion.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroup**](BriefSiteGroup.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**RackCount** | **int64** | | [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | **int64** | | [readonly] ## Methods ### NewSite -`func NewSite(id int32, url string, display string, name string, slug string, ) *Site` +`func NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, rackCount int64, vlanCount int64, ) *Site` NewSite instantiates a new Site object This constructor will assign default values to properties that have it defined, @@ -70,6 +93,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Site) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Site) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Site) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Site) GetDisplay() string` @@ -130,6 +173,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *Site) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Site) GetStatusOk() (*LocationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Site) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Site) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *Site) GetRegion() BriefRegion` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Site) GetRegionOk() (*BriefRegion, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Site) SetRegion(v BriefRegion)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Site) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *Site) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *Site) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *Site) GetGroup() BriefSiteGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Site) GetGroupOk() (*BriefSiteGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Site) SetGroup(v BriefSiteGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Site) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Site) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Site) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *Site) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Site) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Site) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Site) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Site) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Site) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Site) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Site) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Site) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Site) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *Site) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *Site) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *Site) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *Site) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *Site) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *Site) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *Site) GetDescription() string` @@ -155,6 +388,421 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *Site) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *Site) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *Site) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *Site) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *Site) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *Site) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *Site) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *Site) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *Site) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *Site) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *Site) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *Site) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *Site) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *Site) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *Site) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *Site) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *Site) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *Site) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *Site) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *Site) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *Site) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Site) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Site) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Site) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Site) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Site) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Site) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Site) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Site) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Site) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Site) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Site) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Site) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Site) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Site) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Site) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Site) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Site) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Site) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Site) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Site) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Site) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Site) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Site) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Site) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Site) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Site) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Site) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Site) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Site) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Site) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Site) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Site) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *Site) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Site) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Site) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Site) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetRackCount + +`func (o *Site) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Site) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Site) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + +### GetVirtualmachineCount + +`func (o *Site) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Site) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Site) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *Site) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *Site) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Site) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Site) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SiteGroup.md b/docs/SiteGroup.md index b97426cac..b61125c26 100644 --- a/docs/SiteGroup.md +++ b/docs/SiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewSiteGroup -`func NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` +`func NewSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` NewSiteGroup instantiates a new SiteGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *SiteGroup) GetDisplay() string` diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md index b12c9721b..a4efb9544 100644 --- a/docs/SiteRequest.md +++ b/docs/SiteRequest.md @@ -6,7 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +81,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *SiteRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SiteRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SiteRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *SiteRequest) GetRegion() BriefRegionRequest` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *SiteRequest) SetRegion(v BriefRegionRequest)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *SiteRequest) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *SiteRequest) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *SiteRequest) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *SiteRequest) GetGroup() BriefSiteGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *SiteRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *SiteRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *SiteRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *SiteRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *SiteRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *SiteRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *SiteRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *SiteRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *SiteRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *SiteRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *SiteRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *SiteRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *SiteRequest) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *SiteRequest) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *SiteRequest) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *SiteRequest) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *SiteRequest) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *SiteRequest) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *SiteRequest) GetDescription() string` @@ -92,6 +296,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *SiteRequest) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *SiteRequest) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *SiteRequest) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *SiteRequest) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *SiteRequest) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *SiteRequest) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *SiteRequest) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *SiteRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *SiteRequest) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *SiteRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *SiteRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *SiteRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *SiteRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *SiteRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *SiteRequest) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *SiteRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *SiteRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *SiteRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *SiteRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *SiteRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *SiteRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *SiteRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *SiteRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *SiteRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *SiteRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *SiteRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *SiteRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *SiteRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SiteRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SiteRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SiteRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *SiteRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *SiteRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *SiteRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *SiteRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Subscription.md b/docs/Subscription.md new file mode 100644 index 000000000..711a6685d --- /dev/null +++ b/docs/Subscription.md @@ -0,0 +1,208 @@ +# Subscription + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Id** | **int32** | | [readonly] +**Url** | **string** | | [readonly] +**Display** | **string** | | [readonly] +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**Object** | **interface{}** | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | +**Created** | **time.Time** | | [readonly] + +## Methods + +### NewSubscription + +`func NewSubscription(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, ) *Subscription` + +NewSubscription instantiates a new Subscription object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubscriptionWithDefaults + +`func NewSubscriptionWithDefaults() *Subscription` + +NewSubscriptionWithDefaults instantiates a new Subscription object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetId + +`func (o *Subscription) GetId() int32` + +GetId returns the Id field if non-nil, zero value otherwise. + +### GetIdOk + +`func (o *Subscription) GetIdOk() (*int32, bool)` + +GetIdOk returns a tuple with the Id field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetId + +`func (o *Subscription) SetId(v int32)` + +SetId sets Id field to given value. + + +### GetUrl + +`func (o *Subscription) GetUrl() string` + +GetUrl returns the Url field if non-nil, zero value otherwise. + +### GetUrlOk + +`func (o *Subscription) GetUrlOk() (*string, bool)` + +GetUrlOk returns a tuple with the Url field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUrl + +`func (o *Subscription) SetUrl(v string)` + +SetUrl sets Url field to given value. + + +### GetDisplay + +`func (o *Subscription) GetDisplay() string` + +GetDisplay returns the Display field if non-nil, zero value otherwise. + +### GetDisplayOk + +`func (o *Subscription) GetDisplayOk() (*string, bool)` + +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplay + +`func (o *Subscription) SetDisplay(v string)` + +SetDisplay sets Display field to given value. + + +### GetObjectType + +`func (o *Subscription) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *Subscription) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *Subscription) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *Subscription) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *Subscription) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *Subscription) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetObject + +`func (o *Subscription) GetObject() interface{}` + +GetObject returns the Object field if non-nil, zero value otherwise. + +### GetObjectOk + +`func (o *Subscription) GetObjectOk() (*interface{}, bool)` + +GetObjectOk returns a tuple with the Object field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObject + +`func (o *Subscription) SetObject(v interface{})` + +SetObject sets Object field to given value. + + +### SetObjectNil + +`func (o *Subscription) SetObjectNil(b bool)` + + SetObjectNil sets the value for Object to be an explicit nil + +### UnsetObject +`func (o *Subscription) UnsetObject()` + +UnsetObject ensures that no value is present for Object, not even an explicit nil +### GetUser + +`func (o *Subscription) GetUser() BriefUser` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *Subscription) GetUserOk() (*BriefUser, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *Subscription) SetUser(v BriefUser)` + +SetUser sets User field to given value. + + +### GetCreated + +`func (o *Subscription) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Subscription) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Subscription) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/SubscriptionRequest.md b/docs/SubscriptionRequest.md new file mode 100644 index 000000000..80d3e89e4 --- /dev/null +++ b/docs/SubscriptionRequest.md @@ -0,0 +1,93 @@ +# SubscriptionRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ObjectType** | **string** | | +**ObjectId** | **int64** | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | + +## Methods + +### NewSubscriptionRequest + +`func NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest, ) *SubscriptionRequest` + +NewSubscriptionRequest instantiates a new SubscriptionRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewSubscriptionRequestWithDefaults + +`func NewSubscriptionRequestWithDefaults() *SubscriptionRequest` + +NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetObjectType + +`func (o *SubscriptionRequest) GetObjectType() string` + +GetObjectType returns the ObjectType field if non-nil, zero value otherwise. + +### GetObjectTypeOk + +`func (o *SubscriptionRequest) GetObjectTypeOk() (*string, bool)` + +GetObjectTypeOk returns a tuple with the ObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectType + +`func (o *SubscriptionRequest) SetObjectType(v string)` + +SetObjectType sets ObjectType field to given value. + + +### GetObjectId + +`func (o *SubscriptionRequest) GetObjectId() int64` + +GetObjectId returns the ObjectId field if non-nil, zero value otherwise. + +### GetObjectIdOk + +`func (o *SubscriptionRequest) GetObjectIdOk() (*int64, bool)` + +GetObjectIdOk returns a tuple with the ObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetObjectId + +`func (o *SubscriptionRequest) SetObjectId(v int64)` + +SetObjectId sets ObjectId field to given value. + + +### GetUser + +`func (o *SubscriptionRequest) GetUser() BriefUserRequest` + +GetUser returns the User field if non-nil, zero value otherwise. + +### GetUserOk + +`func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool)` + +GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUser + +`func (o *SubscriptionRequest) SetUser(v BriefUserRequest)` + +SetUser sets User field to given value. + + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/Tag.md b/docs/Tag.md index 603faa5a0..19bec48eb 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewTag -`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` +`func NewTag(id int32, url string, displayUrl string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` NewTag instantiates a new Tag object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Tag) GetDisplay() string` diff --git a/docs/TenancyAPI.md b/docs/TenancyAPI.md index 0314e6397..fd75ebd5c 100644 --- a/docs/TenancyAPI.md +++ b/docs/TenancyAPI.md @@ -82,7 +82,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -146,7 +146,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -212,7 +212,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -278,7 +278,7 @@ import ( ) func main() { - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -423,10 +423,10 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -456,8 +456,8 @@ func main() { objectTypeIdN := int32(56) // int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - priority := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - priorityN := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priorityN := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | Contact role (slug) (optional) roleN := []string{"Inner_example"} // []string | Contact role (slug) (optional) @@ -500,10 +500,10 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -533,8 +533,8 @@ Name | Type | Description | Notes **objectTypeIdN** | **int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **priority** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **priorityN** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priorityN** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | **q** | **string** | Search | **role** | **[]string** | Contact role (slug) | **roleN** | **[]string** | Contact role (slug) | @@ -726,7 +726,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this contact assignment. - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1128,10 +1128,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1223,10 +1223,10 @@ Other parameters are passed through a pointer to a apiTenancyContactGroupsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Contact group (slug) | - **ancestorN** | **[]int32** | Contact group (slug) | - **ancestorId** | **[]int32** | Contact group (ID) | - **ancestorIdN** | **[]int32** | Contact group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -2655,10 +2655,10 @@ func main() { emailNie := []string{"Inner_example"} // []string | (optional) emailNiew := []string{"Inner_example"} // []string | (optional) emailNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2790,10 +2790,10 @@ Name | Type | Description | Notes **emailNie** | **[]string** | | **emailNiew** | **[]string** | | **emailNisw** | **[]string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3445,10 +3445,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3540,10 +3540,10 @@ Other parameters are passed through a pointer to a apiTenancyTenantGroupsListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Tenant group (slug) | - **ancestorN** | **[]int32** | Tenant group (slug) | - **ancestorId** | **[]int32** | Tenant group (ID) | - **ancestorIdN** | **[]int32** | Tenant group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -4198,8 +4198,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4221,10 +4221,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4295,8 +4295,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4318,10 +4318,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | Tenant group (slug) | - **groupN** | **[]int32** | Tenant group (slug) | - **groupId** | **[]int32** | Tenant group (ID) | - **groupIdN** | **[]int32** | Tenant group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/Tenant.md b/docs/Tenant.md index 68d998dce..b02a1bf13 100644 --- a/docs/Tenant.md +++ b/docs/Tenant.md @@ -6,16 +6,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroup**](BriefTenantGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**IpaddressCount** | **int64** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**RackCount** | **int64** | | [readonly] +**SiteCount** | **int64** | | [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | **int64** | | [readonly] +**VrfCount** | **int64** | | [readonly] +**ClusterCount** | **int64** | | [readonly] ## Methods ### NewTenant -`func NewTenant(id int32, url string, display string, name string, slug string, ) *Tenant` +`func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, rackCount int64, siteCount int64, vlanCount int64, vrfCount int64, clusterCount int64, ) *Tenant` NewTenant instantiates a new Tenant object This constructor will assign default values to properties that have it defined, @@ -70,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tenant) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tenant) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tenant) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Tenant) GetDisplay() string` @@ -130,6 +167,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *Tenant) GetGroup() BriefTenantGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tenant) SetGroup(v BriefTenantGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tenant) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tenant) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tenant) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *Tenant) GetDescription() string` @@ -155,6 +227,356 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tenant) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tenant) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tenant) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tenant) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tenant) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tenant) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Tenant) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tenant) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tenant) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tenant) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Tenant) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tenant) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tenant) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tenant) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Tenant) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Tenant) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tenant) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tenant) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Tenant) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Tenant) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tenant) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Tenant) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Tenant) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Tenant) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Tenant) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Tenant) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Tenant) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Tenant) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetIpaddressCount + +`func (o *Tenant) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *Tenant) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *Tenant) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + +### GetPrefixCount + +`func (o *Tenant) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Tenant) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Tenant) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Tenant) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetRackCount + +`func (o *Tenant) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Tenant) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Tenant) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + +### GetSiteCount + +`func (o *Tenant) GetSiteCount() int64` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *Tenant) GetSiteCountOk() (*int64, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *Tenant) SetSiteCount(v int64)` + +SetSiteCount sets SiteCount field to given value. + + +### GetVirtualmachineCount + +`func (o *Tenant) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Tenant) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *Tenant) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *Tenant) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Tenant) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Tenant) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + + +### GetVrfCount + +`func (o *Tenant) GetVrfCount() int64` + +GetVrfCount returns the VrfCount field if non-nil, zero value otherwise. + +### GetVrfCountOk + +`func (o *Tenant) GetVrfCountOk() (*int64, bool)` + +GetVrfCountOk returns a tuple with the VrfCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrfCount + +`func (o *Tenant) SetVrfCount(v int64)` + +SetVrfCount sets VrfCount field to given value. + + +### GetClusterCount + +`func (o *Tenant) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *Tenant) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *Tenant) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TenantGroup.md b/docs/TenantGroup.md index 22a3d41c5..229c2960e 100644 --- a/docs/TenantGroup.md +++ b/docs/TenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewTenantGroup -`func NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TenantGroup) GetDisplay() string` diff --git a/docs/TenantRequest.md b/docs/TenantRequest.md index 7a4881f71..948e6d6e2 100644 --- a/docs/TenantRequest.md +++ b/docs/TenantRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *TenantRequest) GetGroup() BriefTenantGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TenantRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TenantRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TenantRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *TenantRequest) GetDescription() string` @@ -92,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TenantRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TenantRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TenantRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TenantRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TenantRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TenantRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TenantRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TenantRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TenantRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TenantRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *TenantRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TenantRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Token.md b/docs/Token.md index d39896b1e..1910ba9d4 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | +**User** | [**BriefUser**](BriefUser.md) | | **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewToken -`func NewToken(id int32, url string, display string, user User, created time.Time, ) *Token` +`func NewToken(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, ) *Token` NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Token) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Token) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Token) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Token) GetDisplay() string` @@ -96,20 +117,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *Token) GetUser() User` +`func (o *Token) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Token) GetUserOk() (*User, bool)` +`func (o *Token) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Token) SetUser(v User)` +`func (o *Token) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md index 8b0aa1be2..d0dca806d 100644 --- a/docs/TokenProvision.md +++ b/docs/TokenProvision.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | **time.Time** | | [readonly] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewTokenProvision -`func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` +`func NewTokenProvision(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` NewTokenProvision instantiates a new TokenProvision object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TokenProvision) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TokenProvision) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TokenProvision) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TokenProvision) GetDisplay() string` @@ -96,20 +117,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *TokenProvision) GetUser() User` +`func (o *TokenProvision) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenProvision) GetUserOk() (*User, bool)` +`func (o *TokenProvision) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenProvision) SetUser(v User)` +`func (o *TokenProvision) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index 06de41a6d..b34549c9c 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewTokenRequest -`func NewTokenRequest(user UserRequest, ) *TokenRequest` +`func NewTokenRequest(user BriefUserRequest, ) *TokenRequest` NewTokenRequest instantiates a new TokenRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *TokenRequest) GetUser() UserRequest` +`func (o *TokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenRequest) SetUser(v UserRequest)` +`func (o *TokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/Tunnel.md b/docs/Tunnel.md index 0ed442472..188930ec1 100644 --- a/docs/Tunnel.md +++ b/docs/Tunnel.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Status** | [**TunnelStatus**](TunnelStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroup**](BriefTunnelGroup.md) | | [optional] +**Encapsulation** | [**TunnelEncapsulation**](TunnelEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfile**](BriefIPSecProfile.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**TerminationsCount** | **int64** | | [readonly] ## Methods ### NewTunnel -`func NewTunnel(id int32, url string, display string, name string, ) *Tunnel` +`func NewTunnel(id int32, url string, displayUrl string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64, ) *Tunnel` NewTunnel instantiates a new Tunnel object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tunnel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tunnel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tunnel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Tunnel) GetDisplay() string` @@ -109,6 +142,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *Tunnel) GetStatus() TunnelStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Tunnel) SetStatus(v TunnelStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *Tunnel) GetGroup() BriefTunnelGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tunnel) SetGroup(v BriefTunnelGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tunnel) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tunnel) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tunnel) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *Tunnel) GetEncapsulation() TunnelEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *Tunnel) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *Tunnel) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *Tunnel) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *Tunnel) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Tunnel) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Tunnel) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Tunnel) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Tunnel) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Tunnel) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *Tunnel) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *Tunnel) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *Tunnel) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *Tunnel) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *Tunnel) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *Tunnel) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *Tunnel) GetDescription() string` @@ -134,6 +347,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tunnel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tunnel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tunnel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tunnel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tunnel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tunnel) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Tunnel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tunnel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tunnel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tunnel) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Tunnel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tunnel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tunnel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tunnel) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Tunnel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Tunnel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tunnel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tunnel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Tunnel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Tunnel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tunnel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetTerminationsCount + +`func (o *Tunnel) GetTerminationsCount() int64` + +GetTerminationsCount returns the TerminationsCount field if non-nil, zero value otherwise. + +### GetTerminationsCountOk + +`func (o *Tunnel) GetTerminationsCountOk() (*int64, bool)` + +GetTerminationsCountOk returns a tuple with the TerminationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationsCount + +`func (o *Tunnel) SetTerminationsCount(v int64)` + +SetTerminationsCount sets TerminationsCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TunnelEncapsulation.md b/docs/TunnelEncapsulation.md new file mode 100644 index 000000000..fe7e11716 --- /dev/null +++ b/docs/TunnelEncapsulation.md @@ -0,0 +1,82 @@ +# TunnelEncapsulation + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] +**Label** | Pointer to [**TunnelEncapsulationLabel**](TunnelEncapsulationLabel.md) | | [optional] + +## Methods + +### NewTunnelEncapsulation + +`func NewTunnelEncapsulation() *TunnelEncapsulation` + +NewTunnelEncapsulation instantiates a new TunnelEncapsulation object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTunnelEncapsulationWithDefaults + +`func NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation` + +NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TunnelEncapsulation) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TunnelEncapsulation) HasLabel() bool` + +HasLabel 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/docs/TunnelEncapsulationLabel.md b/docs/TunnelEncapsulationLabel.md new file mode 100644 index 000000000..9e46fb7c8 --- /dev/null +++ b/docs/TunnelEncapsulationLabel.md @@ -0,0 +1,17 @@ +# TunnelEncapsulationLabel + +## Enum + + +* `I_PSEC___TRANSPORT` (value: `"IPsec - Transport"`) + +* `I_PSEC___TUNNEL` (value: `"IPsec - Tunnel"`) + +* `IP_IN_IP` (value: `"IP-in-IP"`) + +* `GRE` (value: `"GRE"`) + + +[[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/docs/TunnelGroup.md b/docs/TunnelGroup.md index 696dd4040..879e3b595 100644 --- a/docs/TunnelGroup.md +++ b/docs/TunnelGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewTunnelGroup -`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` +`func NewTunnelGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` NewTunnelGroup instantiates a new TunnelGroup object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TunnelGroup) GetDisplay() string` diff --git a/docs/TunnelRequest.md b/docs/TunnelRequest.md index 03d4cda24..37d929b18 100644 --- a/docs/TunnelRequest.md +++ b/docs/TunnelRequest.md @@ -5,13 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] +**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewTunnelRequest -`func NewTunnelRequest(name string, ) *TunnelRequest` +`func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest` NewTunnelRequest instantiates a new TunnelRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +55,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TunnelRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TunnelRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TunnelRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *TunnelRequest) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *TunnelRequest) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *TunnelRequest) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *TunnelRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *TunnelRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *TunnelRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *TunnelRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *TunnelRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *TunnelRequest) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *TunnelRequest) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *TunnelRequest) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *TunnelRequest) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *TunnelRequest) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *TunnelRequest) GetDescription() string` @@ -71,6 +260,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TunnelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TunnelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TunnelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TunnelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TunnelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TunnelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TunnelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TunnelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TunnelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TunnelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *TunnelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TunnelRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/TunnelStatus.md b/docs/TunnelStatus.md new file mode 100644 index 000000000..46022ca86 --- /dev/null +++ b/docs/TunnelStatus.md @@ -0,0 +1,82 @@ +# TunnelStatus + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] +**Label** | Pointer to [**TunnelStatusLabel**](TunnelStatusLabel.md) | | [optional] + +## Methods + +### NewTunnelStatus + +`func NewTunnelStatus() *TunnelStatus` + +NewTunnelStatus instantiates a new TunnelStatus object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewTunnelStatusWithDefaults + +`func NewTunnelStatusWithDefaults() *TunnelStatus` + +NewTunnelStatusWithDefaults instantiates a new TunnelStatus object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *TunnelStatus) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *TunnelStatus) GetLabel() TunnelStatusLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *TunnelStatus) SetLabel(v TunnelStatusLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *TunnelStatus) HasLabel() bool` + +HasLabel 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/docs/TunnelStatusLabel.md b/docs/TunnelStatusLabel.md new file mode 100644 index 000000000..8bd96d36a --- /dev/null +++ b/docs/TunnelStatusLabel.md @@ -0,0 +1,15 @@ +# TunnelStatusLabel + +## Enum + + +* `PLANNED` (value: `"Planned"`) + +* `ACTIVE` (value: `"Active"`) + +* `DISABLED` (value: `"Disabled"`) + + +[[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/docs/TunnelTermination.md b/docs/TunnelTermination.md index 1804e64d5..7fd55af86 100644 --- a/docs/TunnelTermination.md +++ b/docs/TunnelTermination.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Tunnel** | [**Tunnel**](Tunnel.md) | | +**Tunnel** | [**BriefTunnel**](BriefTunnel.md) | | **Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | **Termination** | **interface{}** | | [readonly] -**OutsideIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewTunnelTermination -`func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` +`func NewTunnelTermination(id int32, url string, displayUrl string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` NewTunnelTermination instantiates a new TunnelTermination object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *TunnelTermination) GetDisplay() string` @@ -99,20 +120,20 @@ SetDisplay sets Display field to given value. ### GetTunnel -`func (o *TunnelTermination) GetTunnel() Tunnel` +`func (o *TunnelTermination) GetTunnel() BriefTunnel` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool)` +`func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTermination) SetTunnel(v Tunnel)` +`func (o *TunnelTermination) SetTunnel(v BriefTunnel)` SetTunnel sets Tunnel field to given value. @@ -219,20 +240,20 @@ SetTermination sets Termination field to given value. UnsetTermination ensures that no value is present for Termination, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTermination) GetOutsideIp() IPAddress` +`func (o *TunnelTermination) GetOutsideIp() BriefIPAddress` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool)` +`func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTermination) SetOutsideIp(v IPAddress)` +`func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md index e684cfe20..5466a217e 100644 --- a/docs/TunnelTerminationRequest.md +++ b/docs/TunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewTunnelTerminationRequest -`func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` +`func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -123,20 +123,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/User.md b/docs/User.md index 5312320e3..2513a6671 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,14 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] ## Methods ### NewUser -`func NewUser(id int32, url string, display string, username string, ) *User` +`func NewUser(id int32, url string, displayUrl string, display string, username string, ) *User` NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, @@ -68,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *User) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *User) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *User) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *User) GetDisplay() string` @@ -108,6 +138,241 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetFirstName + +`func (o *User) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *User) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *User) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *User) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *User) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *User) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *User) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *User) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *User) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *User) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *User) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *User) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *User) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *User) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *User) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *User) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *User) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *User) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *User) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *User) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *User) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *User) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *User) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *User) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *User) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *User) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *User) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *User) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *User) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *User) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *User) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *User) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *User) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *User) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *User) GetPermissions() []ObjectPermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *User) GetPermissionsOk() (*[]ObjectPermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *User) SetPermissions(v []ObjectPermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *User) HasPermissions() bool` + +HasPermissions 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/docs/UserRequest.md b/docs/UserRequest.md index 58e87259f..03e64cb5f 100644 --- a/docs/UserRequest.md +++ b/docs/UserRequest.md @@ -5,12 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**Password** | **string** | | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Permissions** | Pointer to **[]int32** | | [optional] ## Methods ### NewUserRequest -`func NewUserRequest(username string, ) *UserRequest` +`func NewUserRequest(username string, password string, ) *UserRequest` NewUserRequest instantiates a new UserRequest object This constructor will assign default values to properties that have it defined, @@ -45,6 +55,261 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetPassword + +`func (o *UserRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *UserRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *UserRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetFirstName + +`func (o *UserRequest) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *UserRequest) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *UserRequest) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *UserRequest) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *UserRequest) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *UserRequest) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *UserRequest) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *UserRequest) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *UserRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *UserRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *UserRequest) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *UserRequest) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *UserRequest) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *UserRequest) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *UserRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *UserRequest) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *UserRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *UserRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *UserRequest) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *UserRequest) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *UserRequest) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *UserRequest) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *UserRequest) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *UserRequest) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *UserRequest) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *UserRequest) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *UserRequest) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *UserRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UserRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UserRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UserRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *UserRequest) GetPermissions() []int32` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *UserRequest) GetPermissionsOk() (*[]int32, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *UserRequest) SetPermissions(v []int32)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *UserRequest) HasPermissions() bool` + +HasPermissions 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/docs/UsersAPI.md b/docs/UsersAPI.md index 2da4d42da..114471722 100644 --- a/docs/UsersAPI.md +++ b/docs/UsersAPI.md @@ -438,7 +438,7 @@ Name | Type | Description | Notes ## UsersGroupsList -> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() @@ -487,6 +487,8 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -497,7 +499,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -548,6 +550,8 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -1537,7 +1541,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1601,7 +1605,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1667,7 +1671,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1733,7 +1737,7 @@ import ( ) func main() { - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2243,7 +2247,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this token. - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2314,7 +2318,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2378,7 +2382,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2444,7 +2448,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2510,7 +2514,7 @@ import ( ) func main() { - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2625,7 +2629,7 @@ Name | Type | Description | Notes ## UsersUsersList -> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() +> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() @@ -2707,6 +2711,8 @@ func main() { lastNameNiew := []string{"Inner_example"} // []string | (optional) lastNameNisw := []string{"Inner_example"} // []string | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -2726,7 +2732,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2809,6 +2815,8 @@ Name | Type | Description | Notes **lastNameNiew** | **[]string** | | **lastNameNisw** | **[]string** | | **limit** | **int32** | Number of results to return per page. | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -3008,7 +3016,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this user. - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/VLAN.md b/docs/VLAN.md index 81cee5529..0a59ba1f5 100644 --- a/docs/VLAN.md +++ b/docs/VLAN.md @@ -6,16 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVLAN -`func NewVLAN(id int32, url string, display string, vid int32, name string, ) *VLAN` +`func NewVLAN(id int32, url string, displayUrl string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, ) *VLAN` NewVLAN instantiates a new VLAN object This constructor will assign default values to properties that have it defined, @@ -70,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VLAN) GetDisplay() string` @@ -90,6 +123,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *VLAN) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLAN) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLAN) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLAN) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLAN) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLAN) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLAN) GetGroup() BriefVLANGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLAN) SetGroup(v BriefVLANGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLAN) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLAN) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLAN) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLAN) GetVid() int32` @@ -130,6 +233,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLAN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLAN) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VLAN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLAN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLAN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLAN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLAN) GetStatus() IPRangeStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VLAN) SetStatus(v IPRangeStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLAN) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLAN) GetRole() BriefRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLAN) GetRoleOk() (*BriefRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *VLAN) SetRole(v BriefRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLAN) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLAN) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLAN) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLAN) GetDescription() string` @@ -155,6 +353,196 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VLAN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLAN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLAN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLAN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetL2vpnTermination + +`func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination` + +GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. + +### GetL2vpnTerminationOk + +`func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` + +GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpnTermination + +`func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination)` + +SetL2vpnTermination sets L2vpnTermination field to given value. + + +### SetL2vpnTerminationNil + +`func (o *VLAN) SetL2vpnTerminationNil(b bool)` + + SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil + +### UnsetL2vpnTermination +`func (o *VLAN) UnsetL2vpnTermination()` + +UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +### GetTags + +`func (o *VLAN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLAN) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VLAN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLAN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLAN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLAN) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VLAN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLAN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VLAN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VLAN) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VLAN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VLAN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VLAN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VLAN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VLAN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VLAN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VLAN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetPrefixCount + +`func (o *VLAN) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *VLAN) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *VLAN) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *VLAN) HasPrefixCount() bool` + +HasPrefixCount 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/docs/VLANGroup.md b/docs/VLANGroup.md index 6df7b1d13..8622cfb99 100644 --- a/docs/VLANGroup.md +++ b/docs/VLANGroup.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] **Scope** | **interface{}** | | [readonly] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -26,7 +25,7 @@ Name | Type | Description | Notes ### NewVLANGroup -`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` +`func NewVLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` NewVLANGroup instantiates a new VLANGroup object This constructor will assign default values to properties that have it defined, @@ -81,6 +80,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VLANGroup) GetDisplay() string` @@ -241,56 +260,6 @@ SetScope sets Scope field to given value. `func (o *VLANGroup) UnsetScope()` UnsetScope ensures that no value is present for Scope, not even an explicit nil -### GetMinVid - -`func (o *VLANGroup) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroup) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroup) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroup) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroup) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroup) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroup) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroup) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroup) GetDescription() string` diff --git a/docs/VLANGroupRequest.md b/docs/VLANGroupRequest.md index efd4ab4ff..768c049b0 100644 --- a/docs/VLANGroupRequest.md +++ b/docs/VLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -143,56 +141,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *VLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *VLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroupRequest) GetDescription() string` diff --git a/docs/VLANRequest.md b/docs/VLANRequest.md index 8ee516347..0b7ddd1b8 100644 --- a/docs/VLANRequest.md +++ b/docs/VLANRequest.md @@ -4,9 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -27,6 +35,76 @@ NewVLANRequestWithDefaults instantiates a new VLANRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSite + +`func (o *VLANRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLANRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLANRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLANRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLANRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLANRequest) GetGroup() BriefVLANGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLANRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLANRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLANRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLANRequest) GetVid() int32` @@ -67,6 +145,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLANRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VLANRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLANRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLANRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLANRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLANRequest) GetStatus() IPRangeStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VLANRequest) SetStatus(v IPRangeStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLANRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLANRequest) GetRole() BriefRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *VLANRequest) SetRole(v BriefRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLANRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLANRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLANRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLANRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VLANRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLANRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLANRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLANRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VLANRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLANRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VLANRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLANRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLANRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLANRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VLANRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLANRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/VMInterface.md b/docs/VMInterface.md index ba4d5ef2c..6af5432f3 100644 --- a/docs/VMInterface.md +++ b/docs/VMInterface.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] @@ -16,10 +17,10 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewVMInterface -`func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` +`func NewVMInterface(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` NewVMInterface instantiates a new VMInterface object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VMInterface) GetDisplay() string` @@ -108,20 +129,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VMInterface) GetVirtualMachine() VirtualMachine` +`func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)` +`func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -363,20 +384,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterface) GetUntaggedVlan() VLAN` +`func (o *VMInterface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterface) SetUntaggedVlan(v VLAN)` +`func (o *VMInterface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -423,20 +444,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterface) GetVrf() VRF` +`func (o *VMInterface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterface) GetVrfOk() (*VRF, bool)` +`func (o *VMInterface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterface) SetVrf(v VRF)` +`func (o *VMInterface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -458,20 +479,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination` +`func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md index f82ea7526..9285ac301 100644 --- a/docs/VMInterfaceRequest.md +++ b/docs/VMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewVMInterfaceRequest -`func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *VMInterfaceRequest` +`func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *VMInterfaceRequest` NewVMInterfaceRequest instantiates a new VMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterfaceRequest) GetVrf() VRFRequest` +`func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/VRF.md b/docs/VRF.md index efb68c006..986b246f7 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -6,17 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**IpaddressCount** | **int64** | | [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, display string, name string, ) *VRF` +`func NewVRF(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -71,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VRF) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VRF) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VRF) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VRF) GetDisplay() string` @@ -146,6 +177,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRF) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRF) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRF) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VRF) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRF) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRF) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRF) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRF) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRF) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRF) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRF) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRF) GetDescription() string` @@ -171,6 +262,211 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRF) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRF) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRF) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRF) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRF) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRF) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRF) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRF) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRF) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRF) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRF) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRF) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRF) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRF) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VRF) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRF) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRF) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRF) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VRF) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRF) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VRF) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VRF) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VRF) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VRF) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VRF) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VRF) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VRF) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VRF) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VRF) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VRF) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpaddressCount + +`func (o *VRF) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *VRF) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *VRF) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + ### GetPrefixCount `func (o *VRF) GetPrefixCount() int64` diff --git a/docs/VRFRequest.md b/docs/VRFRequest.md index 6637879c6..292a8949e 100644 --- a/docs/VRFRequest.md +++ b/docs/VRFRequest.md @@ -6,7 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -82,6 +89,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRFRequest) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRFRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VRFRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRFRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRFRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRFRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRFRequest) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRFRequest) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRFRequest) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRFRequest) GetDescription() string` @@ -107,6 +174,131 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRFRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRFRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRFRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRFRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRFRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRFRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRFRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRFRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRFRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRFRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRFRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRFRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRFRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRFRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VRFRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRFRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRFRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRFRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VRFRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRFRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/VirtualChassis.md b/docs/VirtualChassis.md index 325cd6a07..a69dd31c8 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **MemberCount** | **int32** | | [readonly] +**Members** | [**[]NestedDevice**](NestedDevice.md) | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualChassis) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualChassis) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualChassis) GetDisplay() string` @@ -111,6 +139,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassis) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassis) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassis) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassis) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassis) GetMaster() NestedDevice` @@ -171,6 +224,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassis) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassis) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassis) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassis) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassis) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassis) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VirtualChassis) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassis) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassis) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassis) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VirtualChassis) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassis) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualChassis) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VirtualChassis) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VirtualChassis) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualChassis) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualChassis) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VirtualChassis) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VirtualChassis) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualChassis) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetMemberCount `func (o *VirtualChassis) GetMemberCount() int32` @@ -191,6 +379,26 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. +### GetMembers + +`func (o *VirtualChassis) GetMembers() []NestedDevice` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *VirtualChassis) GetMembersOk() (*[]NestedDevice, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *VirtualChassis) SetMembers(v []NestedDevice)` + +SetMembers sets Members field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualChassisRequest.md b/docs/VirtualChassisRequest.md index 76fe6fb80..c8f966eb5 100644 --- a/docs/VirtualChassisRequest.md +++ b/docs/VirtualChassisRequest.md @@ -5,8 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -47,6 +51,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassisRequest) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassisRequest) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassisRequest) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassisRequest) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest` @@ -107,6 +136,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassisRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassisRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassisRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassisRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassisRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassisRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassisRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassisRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index 6bdea62eb..e45d92a95 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -6,14 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -27,7 +28,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, displayUrl string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDeviceContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDeviceContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualDeviceContext) GetDisplay() string` @@ -124,20 +145,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContext) GetDevice() Device` +`func (o *VirtualDeviceContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContext) SetDevice(v Device)` +`func (o *VirtualDeviceContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -179,20 +200,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContext) GetTenant() Tenant` +`func (o *VirtualDeviceContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContext) SetTenant(v Tenant)` +`func (o *VirtualDeviceContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -214,20 +235,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -244,20 +265,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -279,20 +300,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md index f3436b2b5..2604eb36a 100644 --- a/docs/VirtualDeviceContextRequest.md +++ b/docs/VirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContextRequest -`func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` +`func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` NewVirtualDeviceContextRequest instantiates a new VirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDisk.md b/docs/VirtualDisk.md index 2bc24b4e8..abbaa3bc5 100644 --- a/docs/VirtualDisk.md +++ b/docs/VirtualDisk.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewVirtualDisk -`func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` +`func NewVirtualDisk(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` NewVirtualDisk instantiates a new VirtualDisk object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDisk) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDisk) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualDisk) GetDisplay() string` @@ -97,20 +118,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VirtualDisk) GetVirtualMachine() VirtualMachine` +`func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine)` +`func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md index 3ec5d8bf7..737588e43 100644 --- a/docs/VirtualDiskRequest.md +++ b/docs/VirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewVirtualDiskRequest -`func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` +`func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` NewVirtualDiskRequest instantiates a new VirtualDiskRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md index bb09969ee..062f8d52d 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -6,24 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Status** | Pointer to [**VirtualMachineWithConfigContextStatus**](VirtualMachineWithConfigContextStatus.md) | | [optional] -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRole**](DeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -37,7 +39,7 @@ Name | Type | Description | Notes ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, displayUrl string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -92,6 +94,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *VirtualMachineWithConfigContext) GetDisplay() string` @@ -134,20 +156,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus` +`func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool)` +`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus)` +`func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus)` SetStatus sets Status field to given value. @@ -159,20 +181,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContext) GetSite() Site` +`func (o *VirtualMachineWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContext) SetSite(v Site)` +`func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -194,20 +216,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContext) GetCluster() Cluster` +`func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster)` +`func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -229,20 +251,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContext) GetDevice() Device` +`func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContext) SetDevice(v Device)` +`func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -262,22 +284,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContext) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContext) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContext) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContext) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole` +`func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole)` +`func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. @@ -299,20 +346,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContext) GetTenant() Tenant` +`func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant)` +`func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -334,20 +381,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContext) GetPlatform() Platform` +`func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform)` +`func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -369,20 +416,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -399,20 +446,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -434,20 +481,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -624,20 +671,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md index 44050ed13..7bc48c424 100644 --- a/docs/VirtualMachineWithConfigContextRequest.md +++ b/docs/VirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualizationAPI.md b/docs/VirtualizationAPI.md index b93f4f266..857336f1a 100644 --- a/docs/VirtualizationAPI.md +++ b/docs/VirtualizationAPI.md @@ -416,8 +416,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -509,8 +509,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -1565,7 +1565,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1629,7 +1629,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1695,7 +1695,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1761,7 +1761,7 @@ import ( ) func main() { - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1898,8 +1898,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1955,16 +1955,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -1973,10 +1973,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional) @@ -2010,8 +2010,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2067,16 +2067,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -2085,10 +2085,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | Cluster type (slug) | @@ -2279,7 +2279,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this cluster. - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2350,7 +2350,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2414,7 +2414,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2480,7 +2480,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2546,7 +2546,7 @@ import ( ) func main() { - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3076,7 +3076,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3147,7 +3147,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3211,7 +3211,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3277,7 +3277,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3343,7 +3343,7 @@ import ( ) func main() { - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3811,7 +3811,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual disk. - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4193,7 +4193,7 @@ Name | Type | Description | Notes ## VirtualizationVirtualMachinesList -> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() +> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() @@ -4229,8 +4229,8 @@ func main() { configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4327,20 +4327,31 @@ func main() { primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) + serial := []string{"Inner_example"} // []string | (optional) + serialEmpty := true // bool | (optional) + serialIc := []string{"Inner_example"} // []string | (optional) + serialIe := []string{"Inner_example"} // []string | (optional) + serialIew := []string{"Inner_example"} // []string | (optional) + serialIsw := []string{"Inner_example"} // []string | (optional) + serialN := []string{"Inner_example"} // []string | (optional) + serialNic := []string{"Inner_example"} // []string | (optional) + serialNie := []string{"Inner_example"} // []string | (optional) + serialNiew := []string{"Inner_example"} // []string | (optional) + serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -4349,10 +4360,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4373,7 +4384,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4410,8 +4421,8 @@ Name | Type | Description | Notes **configTemplateIdN** | **[]int32** | Config template (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4508,20 +4519,31 @@ Name | Type | Description | Notes **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) | **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | + **serial** | **[]string** | | + **serialEmpty** | **bool** | | + **serialIc** | **[]string** | | + **serialIe** | **[]string** | | + **serialIew** | **[]string** | | + **serialIsw** | **[]string** | | + **serialN** | **[]string** | | + **serialNic** | **[]string** | | + **serialNie** | **[]string** | | + **serialNiew** | **[]string** | | + **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -4530,10 +4552,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md index 4a260a9e0..b4be1dc00 100644 --- a/docs/VpnAPI.md +++ b/docs/VpnAPI.md @@ -118,7 +118,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -182,7 +182,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -248,7 +248,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +429,7 @@ Name | Type | Description | Notes ## VpnIkePoliciesList -> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() +> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() @@ -513,10 +513,6 @@ func main() { presharedKeyNie := "presharedKeyNie_example" // string | (optional) presharedKeyNiew := "presharedKeyNiew_example" // string | (optional) presharedKeyNisw := "presharedKeyNisw_example" // string | (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -526,7 +522,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -611,10 +607,6 @@ Name | Type | Description | Notes **presharedKeyNie** | **string** | | **presharedKeyNiew** | **string** | | **presharedKeyNisw** | **string** | | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -875,7 +867,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -939,7 +931,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1005,7 +997,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1937,7 +1929,7 @@ Name | Type | Description | Notes ## VpnIpsecPoliciesList -> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2011,10 +2003,6 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) pfsGroup := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) pfsGroupN := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -2022,7 +2010,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2097,10 +2085,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **pfsGroup** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | **pfsGroupN** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -2359,7 +2343,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2423,7 +2407,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2489,7 +2473,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2555,7 +2539,7 @@ import ( ) func main() { - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3021,7 +3005,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this IPSec profile. - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3849,7 +3833,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3913,7 +3897,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3979,7 +3963,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4045,7 +4029,7 @@ import ( ) func main() { - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4535,7 +4519,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN termination. - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4802,7 +4786,7 @@ import ( ) func main() { - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5016,10 +5000,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | (optional) @@ -5128,10 +5112,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | | @@ -5320,7 +5304,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN. - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6126,7 +6110,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6190,7 +6174,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6256,7 +6240,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6322,7 +6306,7 @@ import ( ) func main() { - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6774,7 +6758,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this tunnel termination. - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6845,7 +6829,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6909,7 +6893,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6975,7 +6959,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7241,10 +7225,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tunnelId := []int32{int32(123)} // []int32 | (optional) @@ -7344,10 +7328,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **tunnelId** | **[]int32** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 146995485..6f1965a4c 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewWebhook -`func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` +`func NewWebhook(id int32, url string, displayUrl string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` NewWebhook instantiates a new Webhook object This constructor will assign default values to properties that have it defined, @@ -81,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Webhook) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Webhook) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Webhook) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *Webhook) GetDisplay() string` diff --git a/docs/WirelessAPI.md b/docs/WirelessAPI.md index e35e3430e..6b26fe066 100644 --- a/docs/WirelessAPI.md +++ b/docs/WirelessAPI.md @@ -386,10 +386,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | (optional) - ancestorN := []int32{int32(123)} // []int32 | (optional) - ancestorId := []int32{int32(123)} // []int32 | (optional) - ancestorIdN := []int32{int32(123)} // []int32 | (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -481,10 +481,10 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | | - **ancestorN** | **[]int32** | | - **ancestorId** | **[]int32** | | - **ancestorIdN** | **[]int32** | | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1171,10 +1171,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | (optional) - groupN := []int32{int32(123)} // []int32 | (optional) - groupId := []int32{int32(123)} // []int32 | (optional) - groupIdN := []int32{int32(123)} // []int32 | (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1213,10 +1213,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1280,10 +1280,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | | - **groupN** | **[]int32** | | - **groupId** | **[]int32** | | - **groupIdN** | **[]int32** | | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1322,10 +1322,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1585,7 +1585,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1649,7 +1649,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +1715,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1781,7 +1781,7 @@ import ( ) func main() { - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1896,7 +1896,7 @@ Name | Type | Description | Notes ## WirelessWirelessLinksList -> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).DistanceUnitN(distanceUnitN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1950,6 +1950,15 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + distance := []float64{float64(123)} // []float64 | (optional) + distanceEmpty := true // bool | (optional) + distanceGt := []float64{float64(123)} // []float64 | (optional) + distanceGte := []float64{float64(123)} // []float64 | (optional) + distanceLt := []float64{float64(123)} // []float64 | (optional) + distanceLte := []float64{float64(123)} // []float64 | (optional) + distanceN := []float64{float64(123)} // []float64 | (optional) + distanceUnit := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) + distanceUnitN := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1990,17 +1999,17 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).DistanceUnitN(distanceUnitN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2055,6 +2064,15 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **distance** | **[]float64** | | + **distanceEmpty** | **bool** | | + **distanceGt** | **[]float64** | | + **distanceGte** | **[]float64** | | + **distanceLt** | **[]float64** | | + **distanceLte** | **[]float64** | | + **distanceN** | **[]float64** | | + **distanceUnit** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | + **distanceUnitN** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2095,10 +2113,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2285,7 +2303,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this wireless link. - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/WirelessLAN.md b/docs/WirelessLAN.md index 8bc856e77..6a61ef291 100644 --- a/docs/WirelessLAN.md +++ b/docs/WirelessLAN.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroup**](WirelessLANGroup.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroup**](BriefWirelessLANGroup.md) | | [optional] **Status** | Pointer to [**WirelessLANStatus**](WirelessLANStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -26,7 +27,7 @@ Name | Type | Description | Notes ### NewWirelessLAN -`func NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` +`func NewWirelessLAN(id int32, url string, displayUrl string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` NewWirelessLAN instantiates a new WirelessLAN object This constructor will assign default values to properties that have it defined, @@ -81,6 +82,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *WirelessLAN) GetDisplay() string` @@ -148,20 +169,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLAN) GetGroup() WirelessLANGroup` +`func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool)` +`func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLAN) SetGroup(v WirelessLANGroup)` +`func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup)` SetGroup sets Group field to given value. @@ -208,20 +229,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLAN) GetVlan() VLAN` +`func (o *WirelessLAN) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLAN) GetVlanOk() (*VLAN, bool)` +`func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLAN) SetVlan(v VLAN)` +`func (o *WirelessLAN) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -243,20 +264,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLAN) GetTenant() Tenant` +`func (o *WirelessLAN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLAN) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLAN) SetTenant(v Tenant)` +`func (o *WirelessLAN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLANGroup.md b/docs/WirelessLANGroup.md index aae3009eb..2242ea72d 100644 --- a/docs/WirelessLANGroup.md +++ b/docs/WirelessLANGroup.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Parent** | Pointer to [**NullableNestedWirelessLANGroup**](NestedWirelessLANGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **WirelesslanCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -17,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *WirelessLANGroup) GetDisplay() string` @@ -132,6 +158,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetParent + +`func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *WirelessLANGroup) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *WirelessLANGroup) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *WirelessLANGroup) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetDescription `func (o *WirelessLANGroup) GetDescription() string` @@ -157,6 +218,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *WirelessLANGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WirelessLANGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WirelessLANGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WirelessLANGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WirelessLANGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WirelessLANGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WirelessLANGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *WirelessLANGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *WirelessLANGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *WirelessLANGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *WirelessLANGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *WirelessLANGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *WirelessLANGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *WirelessLANGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *WirelessLANGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetWirelesslanCount `func (o *WirelessLANGroup) GetWirelesslanCount() int32` diff --git a/docs/WirelessLANRequest.md b/docs/WirelessLANRequest.md index 84671d664..b4617be51 100644 --- a/docs/WirelessLANRequest.md +++ b/docs/WirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLANRequest) GetVlan() VLANRequest` +`func (o *WirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLANRequest) GetTenant() TenantRequest` +`func (o *WirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLink.md b/docs/WirelessLink.md index 9f446e21f..e1f980a0e 100644 --- a/docs/WirelessLink.md +++ b/docs/WirelessLink.md @@ -6,15 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**InterfaceA** | [**Interface**](Interface.md) | | -**InterfaceB** | [**Interface**](Interface.md) | | +**InterfaceA** | [**BriefInterface**](BriefInterface.md) | | +**InterfaceB** | [**BriefInterface**](BriefInterface.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**WirelessLinkStatus**](WirelessLinkStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableWirelessLinkDistanceUnit**](WirelessLinkDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -26,7 +29,7 @@ Name | Type | Description | Notes ### NewWirelessLink -`func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` +`func NewWirelessLink(id int32, url string, displayUrl string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` NewWirelessLink instantiates a new WirelessLink object This constructor will assign default values to properties that have it defined, @@ -81,6 +84,26 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + + ### GetDisplay `func (o *WirelessLink) GetDisplay() string` @@ -103,40 +126,40 @@ SetDisplay sets Display field to given value. ### GetInterfaceA -`func (o *WirelessLink) GetInterfaceA() Interface` +`func (o *WirelessLink) GetInterfaceA() BriefInterface` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLink) SetInterfaceA(v Interface)` +`func (o *WirelessLink) SetInterfaceA(v BriefInterface)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLink) GetInterfaceB() Interface` +`func (o *WirelessLink) GetInterfaceB() BriefInterface` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLink) SetInterfaceB(v Interface)` +`func (o *WirelessLink) SetInterfaceB(v BriefInterface)` SetInterfaceB sets InterfaceB field to given value. @@ -168,20 +191,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLink) GetStatus() WirelessLinkStatus` +`func (o *WirelessLink) GetStatus() CableStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool)` +`func (o *WirelessLink) GetStatusOk() (*CableStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLink) SetStatus(v WirelessLinkStatus)` +`func (o *WirelessLink) SetStatus(v CableStatus)` SetStatus sets Status field to given value. @@ -193,20 +216,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLink) GetTenant() Tenant` +`func (o *WirelessLink) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLink) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLink) SetTenant(v Tenant)` +`func (o *WirelessLink) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -301,6 +324,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLink) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLink) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLink) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLink) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLink) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLink) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLink) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLink) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLink) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLink) GetDescription() string` diff --git a/docs/WirelessLinkDistanceUnit.md b/docs/WirelessLinkDistanceUnit.md new file mode 100644 index 000000000..43edda555 --- /dev/null +++ b/docs/WirelessLinkDistanceUnit.md @@ -0,0 +1,82 @@ +# WirelessLinkDistanceUnit + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Value** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] +**Label** | Pointer to [**WirelessLinkDistanceUnitLabel**](WirelessLinkDistanceUnitLabel.md) | | [optional] + +## Methods + +### NewWirelessLinkDistanceUnit + +`func NewWirelessLinkDistanceUnit() *WirelessLinkDistanceUnit` + +NewWirelessLinkDistanceUnit instantiates a new WirelessLinkDistanceUnit object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWirelessLinkDistanceUnitWithDefaults + +`func NewWirelessLinkDistanceUnitWithDefaults() *WirelessLinkDistanceUnit` + +NewWirelessLinkDistanceUnitWithDefaults instantiates a new WirelessLinkDistanceUnit object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetValue + +`func (o *WirelessLinkDistanceUnit) GetValue() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetValue returns the Value field if non-nil, zero value otherwise. + +### GetValueOk + +`func (o *WirelessLinkDistanceUnit) GetValueOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetValueOk returns a tuple with the Value field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetValue + +`func (o *WirelessLinkDistanceUnit) SetValue(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetValue sets Value field to given value. + +### HasValue + +`func (o *WirelessLinkDistanceUnit) HasValue() bool` + +HasValue returns a boolean if a field has been set. + +### GetLabel + +`func (o *WirelessLinkDistanceUnit) GetLabel() WirelessLinkDistanceUnitLabel` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *WirelessLinkDistanceUnit) GetLabelOk() (*WirelessLinkDistanceUnitLabel, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *WirelessLinkDistanceUnit) SetLabel(v WirelessLinkDistanceUnitLabel)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *WirelessLinkDistanceUnit) HasLabel() bool` + +HasLabel 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/docs/WirelessLinkDistanceUnitLabel.md b/docs/WirelessLinkDistanceUnitLabel.md new file mode 100644 index 000000000..d9598f52d --- /dev/null +++ b/docs/WirelessLinkDistanceUnitLabel.md @@ -0,0 +1,17 @@ +# WirelessLinkDistanceUnitLabel + +## Enum + + +* `KILOMETERS` (value: `"Kilometers"`) + +* `METERS` (value: `"Meters"`) + +* `MILES` (value: `"Miles"`) + +* `FEET` (value: `"Feet"`) + + +[[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/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md index cbb26cae5..4cc414500 100644 --- a/docs/WirelessLinkRequest.md +++ b/docs/WirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableWirelessLinkRequestDistanceUnit**](WirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLinkRequest -`func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WirelessLinkRequest` +`func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WirelessLinkRequest` NewWirelessLinkRequest instantiates a new WirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +238,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLinkRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLinkRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLinkRequest) GetDescription() string` diff --git a/docs/WirelessLinkRequestDistanceUnit.md b/docs/WirelessLinkRequestDistanceUnit.md new file mode 100644 index 000000000..5625206b7 --- /dev/null +++ b/docs/WirelessLinkRequestDistanceUnit.md @@ -0,0 +1,19 @@ +# WirelessLinkRequestDistanceUnit + +## Enum + + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + +* `FT` (value: `"ft"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WirelessWirelessLinksListDistanceUnitParameter.md b/docs/WirelessWirelessLinksListDistanceUnitParameter.md new file mode 100644 index 000000000..568a370d2 --- /dev/null +++ b/docs/WirelessWirelessLinksListDistanceUnitParameter.md @@ -0,0 +1,17 @@ +# WirelessWirelessLinksListDistanceUnitParameter + +## Enum + + +* `FT` (value: `"ft"`) + +* `KM` (value: `"km"`) + +* `M` (value: `"m"`) + +* `MI` (value: `"mi"`) + + +[[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/docs/WritableAggregateRequest.md b/docs/WritableAggregateRequest.md index 169807729..cbcd91bcd 100644 --- a/docs/WritableAggregateRequest.md +++ b/docs/WritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableAggregateRequest -`func NewWritableAggregateRequest(prefix string, rir RIRRequest, ) *WritableAggregateRequest` +`func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest, ) *WritableAggregateRequest` NewWritableAggregateRequest instantiates a new WritableAggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *WritableAggregateRequest) GetRir() RIRRequest` +`func (o *WritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *WritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *WritableAggregateRequest) GetTenant() TenantRequest` +`func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md index aef093b34..cb8fa67e5 100644 --- a/docs/WritableCableRequest.md +++ b/docs/WritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *WritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *WritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCableRequest) GetTenant() TenantRequest` +`func (o *WritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCableRequest) SetTenant(v TenantRequest)` +`func (o *WritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/WritableCircuitGroupAssignmentRequest.md b/docs/WritableCircuitGroupAssignmentRequest.md new file mode 100644 index 000000000..bd44ef108 --- /dev/null +++ b/docs/WritableCircuitGroupAssignmentRequest.md @@ -0,0 +1,124 @@ +# WritableCircuitGroupAssignmentRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Group** | [**BriefCircuitGroupRequest**](BriefCircuitGroupRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] + +## Methods + +### NewWritableCircuitGroupAssignmentRequest + +`func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest, ) *WritableCircuitGroupAssignmentRequest` + +NewWritableCircuitGroupAssignmentRequest instantiates a new WritableCircuitGroupAssignmentRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWritableCircuitGroupAssignmentRequestWithDefaults + +`func NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGroupAssignmentRequest` + +NewWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new WritableCircuitGroupAssignmentRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetGroup + +`func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest)` + +SetGroup sets Group field to given value. + + +### GetCircuit + +`func (o *WritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest` + +GetCircuit returns the Circuit field if non-nil, zero value otherwise. + +### GetCircuitOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` + +GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuit + +`func (o *WritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest)` + +SetCircuit sets Circuit field to given value. + + +### GetPriority + +`func (o *WritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` + +GetPriority returns the Priority field if non-nil, zero value otherwise. + +### GetPriorityOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` + +GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPriority + +`func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` + +SetPriority sets Priority field to given value. + +### HasPriority + +`func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool` + +HasPriority returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableCircuitGroupAssignmentRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableCircuitGroupAssignmentRequest) HasTags() bool` + +HasTags 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/docs/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md index 02a8ad3f7..8382f981d 100644 --- a/docs/WritableCircuitRequest.md +++ b/docs/WritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | -**Provider** | [**ProviderRequest**](ProviderRequest.md) | | -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,12 +17,13 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewWritableCircuitRequest -`func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest, ) *WritableCircuitRequest` +`func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *WritableCircuitRequest` NewWritableCircuitRequest instantiates a new WritableCircuitRequest object This constructor will assign default values to properties that have it defined, @@ -59,40 +60,40 @@ SetCid sets Cid field to given value. ### GetProvider -`func (o *WritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *WritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. ### GetProviderAccount -`func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -114,40 +115,40 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *WritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. ### GetStatus -`func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -159,20 +160,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCircuitRequest) GetTenant() TenantRequest` +`func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -397,6 +398,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *WritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *WritableCircuitRequest) HasAssignments() bool` + +HasAssignments 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/docs/WritableClusterRequest.md b/docs/WritableClusterRequest.md index 430b5cf50..d25e42949 100644 --- a/docs/WritableClusterRequest.md +++ b/docs/WritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | | -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableClusterRequest -`func NewWritableClusterRequest(name string, type_ ClusterTypeRequest, ) *WritableClusterRequest` +`func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest, ) *WritableClusterRequest` NewWritableClusterRequest instantiates a new WritableClusterRequest object This constructor will assign default values to properties that have it defined, @@ -56,40 +56,40 @@ SetName sets Name field to given value. ### GetType -`func (o *WritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. ### GetGroup -`func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -111,20 +111,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *WritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -136,20 +136,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableClusterRequest) GetTenant() TenantRequest` +`func (o *WritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -171,20 +171,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *WritableClusterRequest) GetSite() SiteRequest` +`func (o *WritableClusterRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableClusterRequest) SetSite(v SiteRequest)` +`func (o *WritableClusterRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. diff --git a/docs/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md index 0ba0c6885..9b0b4a502 100644 --- a/docs/WritableConsolePortRequest.md +++ b/docs/WritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsolePortRequest -`func NewWritableConsolePortRequest(device DeviceRequest, name string, ) *WritableConsolePortRequest` +`func NewWritableConsolePortRequest(device BriefDeviceRequest, name string, ) *WritableConsolePortRequest` NewWritableConsolePortRequest instantiates a new WritableConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md index 3799557e8..b675fc60b 100644 --- a/docs/WritableConsolePortTemplateRequest.md +++ b/docs/WritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md index 6af4a78aa..82d557c25 100644 --- a/docs/WritableConsoleServerPortRequest.md +++ b/docs/WritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsoleServerPortRequest -`func NewWritableConsoleServerPortRequest(device DeviceRequest, name string, ) *WritableConsoleServerPortRequest` +`func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *WritableConsoleServerPortRequest` NewWritableConsoleServerPortRequest instantiates a new WritableConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md index e35a4b9ec..122f48c6a 100644 --- a/docs/WritableConsoleServerPortTemplateRequest.md +++ b/docs/WritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md index 678cd6e27..dc94d6b6f 100644 --- a/docs/WritableContactAssignmentRequest.md +++ b/docs/WritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableContactAssignmentRequest -`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *WritableContactAssignmentRequest` +`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *WritableContactAssignmentRequest` NewWritableContactAssignmentRequest instantiates a new WritableContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *WritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md index f82e51b73..2e40f4558 100644 --- a/docs/WritableCustomFieldRequest.md +++ b/docs/WritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -244,6 +246,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *WritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *WritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *WritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *WritableCustomFieldRequest) GetSearchWeight() int32` @@ -404,6 +431,41 @@ HasDefault returns a boolean if a field has been set. `func (o *WritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *WritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *WritableCustomFieldRequest) GetWeight() int32` @@ -526,20 +588,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/WritableDataSourceRequest.md b/docs/WritableDataSourceRequest.md index 02b680911..aa37a1cc4 100644 --- a/docs/WritableDataSourceRequest.md +++ b/docs/WritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *WritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *WritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *WritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *WritableDataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *WritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md index 14fb74555..53aefbe6c 100644 --- a/docs/WritableDeviceTypeRequest.md +++ b/docs/WritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewWritableDeviceTypeRequest -`func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` +`func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` NewWritableDeviceTypeRequest instantiates a new WritableDeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -44,40 +44,40 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. ### GetDefaultPlatform -`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -324,20 +324,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md index 0935ed356..694be056b 100644 --- a/docs/WritableDeviceWithConfigContextRequest.md +++ b/docs/WritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | [**RackFace1**](RackFace1.md) | | **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewWritableDeviceWithConfigContextRequest -`func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` +`func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -525,20 +525,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -560,20 +560,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -595,20 +595,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -630,20 +630,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -665,20 +665,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -820,20 +820,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md index d091d02bf..bcd1ad37f 100644 --- a/docs/WritableEventRuleRequest.md +++ b/docs/WritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableEventRuleRequest -`func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest` +`func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string, ) *WritableEventRuleRequest` NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *WritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *WritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *WritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *WritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *WritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *WritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *WritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *WritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *WritableEventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *WritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *WritableEventRuleRequest) GetConditions() interface{}` diff --git a/docs/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md index 42fc87826..303853918 100644 --- a/docs/WritableFrontPortRequest.md +++ b/docs/WritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortRequest -`func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` +`func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` NewWritableFrontPortRequest instantiates a new WritableFrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md index 8806917ff..3aa02af78 100644 --- a/docs/WritableFrontPortTemplateRequest.md +++ b/docs/WritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortTemplateRequest -`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` +`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` NewWritableFrontPortTemplateRequest instantiates a new WritableFrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md index 6eaaca69a..ca192ccab 100644 --- a/docs/WritableIPAddressRequest.md +++ b/docs/WritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -59,20 +59,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *WritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -94,20 +94,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md index 5edb8406d..186e2cb36 100644 --- a/docs/WritableIPRangeRequest.md +++ b/docs/WritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *WritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableIPRangeRequest) GetRole() RoleRequest` +`func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md index f4d30c4c1..11cd4baa0 100644 --- a/docs/WritableIPSecProfileRequest.md +++ b/docs/WritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableIPSecProfileRequest -`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *WritableIPSecProfileRequest` +`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *WritableIPSecProfileRequest` NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md index d0870300e..f5eb17d11 100644 --- a/docs/WritableInterfaceRequest.md +++ b/docs/WritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewWritableInterfaceRequest -`func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` +`func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` NewWritableInterfaceRequest instantiates a new WritableInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *WritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md index e5f0f4deb..503f4e400 100644 --- a/docs/WritableInterfaceTemplateRequest.md +++ b/docs/WritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md index d8d0852be..df3aa2b33 100644 --- a/docs/WritableL2VPNRequest.md +++ b/docs/WritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | | +**Type** | [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableL2VPNRequest -`func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *WritableL2VPNRequest` +`func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue, ) *WritableL2VPNRequest` NewWritableL2VPNRequest instantiates a new WritableL2VPNRequest object This constructor will assign default values to properties that have it defined, @@ -112,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -232,20 +232,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *WritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableLocationRequest.md b/docs/WritableLocationRequest.md index dd699d818..1e4c81e9b 100644 --- a/docs/WritableLocationRequest.md +++ b/docs/WritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Site** | [**SiteRequest**](SiteRequest.md) | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | **Parent** | **NullableInt32** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableLocationRequest -`func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32, ) *WritableLocationRequest` +`func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32, ) *WritableLocationRequest` NewWritableLocationRequest instantiates a new WritableLocationRequest object This constructor will assign default values to properties that have it defined, @@ -76,20 +76,20 @@ SetSlug sets Slug field to given value. ### GetSite -`func (o *WritableLocationRequest) GetSite() SiteRequest` +`func (o *WritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableLocationRequest) SetSite(v SiteRequest)` +`func (o *WritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -126,20 +126,20 @@ SetParent sets Parent field to given value. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -151,20 +151,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableLocationRequest) GetTenant() TenantRequest` +`func (o *WritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableModuleRequest.md b/docs/WritableModuleRequest.md index 95f95384c..a815e5e6b 100644 --- a/docs/WritableModuleRequest.md +++ b/docs/WritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | **int32** | | -**ModuleType** | [**ModuleTypeRequest**](ModuleTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleRequest -`func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest, ) *WritableModuleRequest` +`func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest, ) *WritableModuleRequest` NewWritableModuleRequest instantiates a new WritableModuleRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableModuleRequest) GetDevice() DeviceRequest` +`func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -76,40 +76,40 @@ SetModuleBay sets ModuleBay field to given value. ### GetModuleType -`func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. ### GetStatus -`func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableModuleRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md index ada1a71f7..013d928c9 100644 --- a/docs/WritableModuleTypeRequest.md +++ b/docs/WritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleTypeRequest -`func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *WritableModuleTypeRequest` +`func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *WritableModuleTypeRequest` NewWritableModuleTypeRequest instantiates a new WritableModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -98,6 +99,31 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetWeight `func (o *WritableModuleTypeRequest) GetWeight() float64` @@ -135,20 +161,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md index f8ee53481..c7ee1dfc9 100644 --- a/docs/WritablePowerFeedRequest.md +++ b/docs/WritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewWritablePowerFeedRequest -`func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *WritablePowerFeedRequest` +`func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *WritablePowerFeedRequest` NewWritablePowerFeedRequest instantiates a new WritablePowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *WritablePowerFeedRequest) GetRack() RackRequest` +`func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *WritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md index 978dfe761..dcba99ba5 100644 --- a/docs/WritablePowerOutletRequest.md +++ b/docs/WritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerOutletRequest -`func NewWritablePowerOutletRequest(device DeviceRequest, name string, ) *WritablePowerOutletRequest` +`func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string, ) *WritablePowerOutletRequest` NewWritablePowerOutletRequest instantiates a new WritablePowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -162,20 +162,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md index 196e5721a..eae1aa815 100644 --- a/docs/WritablePowerOutletTemplateRequest.md +++ b/docs/WritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -174,20 +174,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md index 55d032308..914481d74 100644 --- a/docs/WritablePowerPortRequest.md +++ b/docs/WritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerPortRequest -`func NewWritablePowerPortRequest(device DeviceRequest, name string, ) *WritablePowerPortRequest` +`func NewWritablePowerPortRequest(device BriefDeviceRequest, name string, ) *WritablePowerPortRequest` NewWritablePowerPortRequest instantiates a new WritablePowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md index 75edd9950..54d00f9c0 100644 --- a/docs/WritablePowerPortTemplateRequest.md +++ b/docs/WritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md index 87080ca95..9ff1ed781 100644 --- a/docs/WritablePrefixRequest.md +++ b/docs/WritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *WritablePrefixRequest) GetSite() SiteRequest` +`func (o *WritablePrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *WritablePrefixRequest) GetVrf() VRFRequest` +`func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritablePrefixRequest) GetTenant() TenantRequest` +`func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *WritablePrefixRequest) GetVlan() VLANRequest` +`func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritablePrefixRequest) GetRole() RoleRequest` +`func (o *WritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md index a9a7cf6f5..864bdfd6a 100644 --- a/docs/WritableRackRequest.md +++ b/docs/WritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,7 +36,7 @@ Name | Type | Description | Notes ### NewWritableRackRequest -`func NewWritableRackRequest(name string, site SiteRequest, ) *WritableRackRequest` +`func NewWritableRackRequest(name string, site BriefSiteRequest, ) *WritableRackRequest` NewWritableRackRequest instantiates a new WritableRackRequest object This constructor will assign default values to properties that have it defined, @@ -106,40 +108,40 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *WritableRackRequest) GetSite() SiteRequest` +`func (o *WritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableRackRequest) SetSite(v SiteRequest)` +`func (o *WritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableRackRequest) GetLocation() LocationRequest` +`func (o *WritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableRackRequest) SetLocation(v LocationRequest)` +`func (o *WritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -161,20 +163,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *WritableRackRequest) GetTenant() TenantRequest` +`func (o *WritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableRackRequest) SetTenant(v TenantRequest)` +`func (o *WritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -221,20 +223,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableRackRequest) GetRole() RackRoleRequest` +`func (o *WritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -314,30 +316,65 @@ HasAssetTag returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *WritableRackRequest) HasType() bool` +`func (o *WritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *WritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *WritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *WritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. ### GetWidth @@ -486,20 +523,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. @@ -664,6 +701,31 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *WritableRackRequest) GetDescription() string` diff --git a/docs/WritableRackTypeRequest.md b/docs/WritableRackTypeRequest.md new file mode 100644 index 000000000..3f393bfae --- /dev/null +++ b/docs/WritableRackTypeRequest.md @@ -0,0 +1,554 @@ +# WritableRackTypeRequest + +## Properties + +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Model** | **string** | | +**Slug** | **string** | | +**Description** | Pointer to **string** | | [optional] +**FormFactor** | [**PatchedWritableRackTypeRequestFormFactor**](PatchedWritableRackTypeRequestFormFactor.md) | | +**Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] + +## Methods + +### NewWritableRackTypeRequest + +`func NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor, ) *WritableRackTypeRequest` + +NewWritableRackTypeRequest instantiates a new WritableRackTypeRequest object +This constructor will assign default values to properties that have it defined, +and makes sure properties required by API are set, but the set of arguments +will change when the set of required properties is changed + +### NewWritableRackTypeRequestWithDefaults + +`func NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest` + +NewWritableRackTypeRequestWithDefaults instantiates a new WritableRackTypeRequest object +This constructor will only assign default values to properties that have it defined, +but it doesn't guarantee that properties required by API are set + +### GetManufacturer + +`func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + + +### GetModel + +`func (o *WritableRackTypeRequest) GetModel() string` + +GetModel returns the Model field if non-nil, zero value otherwise. + +### GetModelOk + +`func (o *WritableRackTypeRequest) GetModelOk() (*string, bool)` + +GetModelOk returns a tuple with the Model field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModel + +`func (o *WritableRackTypeRequest) SetModel(v string)` + +SetModel sets Model field to given value. + + +### GetSlug + +`func (o *WritableRackTypeRequest) GetSlug() string` + +GetSlug returns the Slug field if non-nil, zero value otherwise. + +### GetSlugOk + +`func (o *WritableRackTypeRequest) GetSlugOk() (*string, bool)` + +GetSlugOk returns a tuple with the Slug field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSlug + +`func (o *WritableRackTypeRequest) SetSlug(v string)` + +SetSlug sets Slug field to given value. + + +### GetDescription + +`func (o *WritableRackTypeRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *WritableRackTypeRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *WritableRackTypeRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *WritableRackTypeRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetFormFactor + +`func (o *WritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + + +### GetWidth + +`func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *WritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *WritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *WritableRackTypeRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *WritableRackTypeRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *WritableRackTypeRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *WritableRackTypeRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *WritableRackTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *WritableRackTypeRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *WritableRackTypeRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *WritableRackTypeRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *WritableRackTypeRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetDescUnits + +`func (o *WritableRackTypeRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *WritableRackTypeRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *WritableRackTypeRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *WritableRackTypeRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *WritableRackTypeRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *WritableRackTypeRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *WritableRackTypeRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *WritableRackTypeRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *WritableRackTypeRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *WritableRackTypeRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *WritableRackTypeRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *WritableRackTypeRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *WritableRackTypeRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *WritableRackTypeRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *WritableRackTypeRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *WritableRackTypeRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *WritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *WritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *WritableRackTypeRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *WritableRackTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *WritableRackTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *WritableRackTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *WritableRackTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *WritableRackTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *WritableRackTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *WritableRackTypeRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *WritableRackTypeRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *WritableRackTypeRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *WritableRackTypeRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *WritableRackTypeRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *WritableRackTypeRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *WritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *WritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *WritableRackTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### GetMountingDepth + +`func (o *WritableRackTypeRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *WritableRackTypeRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *WritableRackTypeRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *WritableRackTypeRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *WritableRackTypeRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *WritableRackTypeRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetComments + +`func (o *WritableRackTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableRackTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableRackTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableRackTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *WritableRackTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WritableRackTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WritableRackTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WritableRackTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WritableRackTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WritableRackTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *WritableRackTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WritableRackTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/WritableRearPortRequest.md b/docs/WritableRearPortRequest.md index 5e366e7c5..10050601f 100644 --- a/docs/WritableRearPortRequest.md +++ b/docs/WritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableRearPortRequest -`func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` +`func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` NewWritableRearPortRequest instantiates a new WritableRearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableRearPortRequest) GetModule() ModuleRequest` +`func (o *WritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md index 075a046aa..4e3c43248 100644 --- a/docs/WritableRearPortTemplateRequest.md +++ b/docs/WritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableServiceRequest.md b/docs/WritableServiceRequest.md index f4617ee50..2a2d4015e 100644 --- a/docs/WritableServiceRequest.md +++ b/docs/WritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableServiceRequest) GetDevice() DeviceRequest` +`func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/WritableSiteRequest.md b/docs/WritableSiteRequest.md index d5fe57fa6..fbb616a48 100644 --- a/docs/WritableSiteRequest.md +++ b/docs/WritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ SetSlug sets Slug field to given value. ### GetStatus -`func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -108,20 +108,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *WritableSiteRequest) GetRegion() RegionRequest` +`func (o *WritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *WritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -143,20 +143,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *WritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -178,20 +178,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *WritableSiteRequest) GetTenant() TenantRequest` +`func (o *WritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelRequest.md b/docs/WritableTunnelRequest.md index 074647508..68b5e21ad 100644 --- a/docs/WritableTunnelRequest.md +++ b/docs/WritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -82,20 +82,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -137,20 +137,20 @@ SetEncapsulation sets Encapsulation field to given value. ### GetIpsecProfile -`func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -172,20 +172,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *WritableTunnelRequest) GetTenant() TenantRequest` +`func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md index 99cb6a025..fc0483773 100644 --- a/docs/WritableTunnelTerminationRequest.md +++ b/docs/WritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableTunnelTerminationRequest -`func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` +`func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -128,20 +128,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/WritableVLANRequest.md b/docs/WritableVLANRequest.md index e9b762013..cfe381a06 100644 --- a/docs/WritableVLANRequest.md +++ b/docs/WritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *WritableVLANRequest) GetSite() SiteRequest` +`func (o *WritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVLANRequest) SetSite(v SiteRequest)` +`func (o *WritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *WritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *WritableVLANRequest) GetTenant() TenantRequest` +`func (o *WritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -207,20 +207,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableVLANRequest) GetRole() RoleRequest` +`func (o *WritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVLANRequest) SetRole(v RoleRequest)` +`func (o *WritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md index 9177b40ec..a617cbe51 100644 --- a/docs/WritableVMInterfaceRequest.md +++ b/docs/WritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableVMInterfaceRequest -`func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` +`func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` NewWritableVMInterfaceRequest instantiates a new WritableVMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md index 30df18d9a..a945ebeae 100644 --- a/docs/WritableVirtualDeviceContextRequest.md +++ b/docs/WritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableVirtualDeviceContextRequest -`func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` +`func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/WritableVirtualMachineWithConfigContextRequest.md b/docs/WritableVirtualMachineWithConfigContextRequest.md index c0ebf4e16..c69283c3c 100644 --- a/docs/WritableVirtualMachineWithConfigContextRequest.md +++ b/docs/WritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableWirelessLANRequest.md b/docs/WritableWirelessLANRequest.md index 2a85bd219..4da60fd33 100644 --- a/docs/WritableWirelessLANRequest.md +++ b/docs/WritableWirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md index 43c031946..0708fcc74 100644 --- a/docs/WritableWirelessLinkRequest.md +++ b/docs/WritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableWirelessLinkRequest -`func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WritableWirelessLinkRequest` +`func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WritableWirelessLinkRequest` NewWritableWirelessLinkRequest instantiates a new WritableWirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +238,66 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + ### GetDescription `func (o *WritableWirelessLinkRequest) GetDescription() string` diff --git a/go.mod b/go.mod index 3e168f7ba..84ac401e8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/asama-ai/go-netbox +module github.com/netbox-community/go-netbox/v4 go 1.18 diff --git a/model_aggregate.go b/model_aggregate.go index be5226a6e..6a6182c06 100644 --- a/model_aggregate.go +++ b/model_aggregate.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ var _ MappedNullable = &Aggregate{} type Aggregate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Family AggregateFamily `json:"family"` Prefix string `json:"prefix"` - Rir RIR `json:"rir"` - Tenant NullableTenant `json:"tenant,omitempty"` + Rir BriefRIR `json:"rir"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` DateAdded NullableString `json:"date_added,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -44,10 +45,11 @@ type _Aggregate Aggregate // 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 NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime) *Aggregate { +func NewAggregate(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime) *Aggregate { this := Aggregate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Prefix = prefix @@ -113,6 +115,30 @@ func (o *Aggregate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Aggregate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Aggregate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Aggregate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Aggregate) GetDisplay() string { if o == nil { @@ -186,9 +212,9 @@ func (o *Aggregate) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *Aggregate) GetRir() RIR { +func (o *Aggregate) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -197,7 +223,7 @@ func (o *Aggregate) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *Aggregate) GetRirOk() (*RIR, bool) { +func (o *Aggregate) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -205,14 +231,14 @@ func (o *Aggregate) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *Aggregate) SetRir(v RIR) { +func (o *Aggregate) SetRir(v BriefRIR) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Aggregate) GetTenant() Tenant { +func (o *Aggregate) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -221,7 +247,7 @@ func (o *Aggregate) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Aggregate) GetTenantOk() (*Tenant, bool) { +func (o *Aggregate) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -237,8 +263,8 @@ func (o *Aggregate) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Aggregate) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Aggregate) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -487,6 +513,7 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -526,6 +553,7 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "prefix", @@ -563,6 +591,7 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_aggregate_family.go b/model_aggregate_family.go index c022e4c41..761f477b5 100644 --- a/model_aggregate_family.go +++ b/model_aggregate_family.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go index 6702e6180..0ff05d1c1 100644 --- a/model_aggregate_family_label.go +++ b/model_aggregate_family_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go index 63ca9026f..17060e9c2 100644 --- a/model_aggregate_family_value.go +++ b/model_aggregate_family_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_request.go b/model_aggregate_request.go index 886f759d6..47bf759f6 100644 --- a/model_aggregate_request.go +++ b/model_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &AggregateRequest{} // AggregateRequest Adds support for custom fields and tags. type AggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _AggregateRequest AggregateRequest // 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 NewAggregateRequest(prefix string, rir RIRRequest) *AggregateRequest { +func NewAggregateRequest(prefix string, rir BriefRIRRequest) *AggregateRequest { this := AggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *AggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *AggregateRequest) GetRir() RIRRequest { +func (o *AggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +88,7 @@ func (o *AggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *AggregateRequest) SetRir(v RIRRequest) { +func (o *AggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AggregateRequest) GetTenant() TenantRequest { +func (o *AggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *AggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *AggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *AggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *AggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn.go b/model_asn.go index 971d63862..de5917b21 100644 --- a/model_asn.go +++ b/model_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &ASN{} // ASN Adds support for custom fields and tags. type ASN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // 16- or 32-bit autonomous system number Asn int64 `json:"asn"` - Rir NullableRIR `json:"rir,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Rir NullableBriefRIR `json:"rir,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -45,10 +46,11 @@ type _ASN ASN // 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 NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { +func NewASN(id int32, url string, displayUrl string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { this := ASN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Asn = asn this.Created = created @@ -114,6 +116,30 @@ func (o *ASN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ASN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ASN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ASN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ASN) GetDisplay() string { if o == nil { @@ -163,9 +189,9 @@ func (o *ASN) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetRir() RIR { +func (o *ASN) GetRir() BriefRIR { if o == nil || IsNil(o.Rir.Get()) { - var ret RIR + var ret BriefRIR return ret } return *o.Rir.Get() @@ -174,7 +200,7 @@ func (o *ASN) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetRirOk() (*RIR, bool) { +func (o *ASN) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -190,8 +216,8 @@ func (o *ASN) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIR and assigns it to the Rir field. -func (o *ASN) SetRir(v RIR) { +// SetRir gets a reference to the given NullableBriefRIR and assigns it to the Rir field. +func (o *ASN) SetRir(v BriefRIR) { o.Rir.Set(&v) } @@ -206,9 +232,9 @@ func (o *ASN) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetTenant() Tenant { +func (o *ASN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -217,7 +243,7 @@ func (o *ASN) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetTenantOk() (*Tenant, bool) { +func (o *ASN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -233,8 +259,8 @@ func (o *ASN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -488,6 +514,7 @@ func (o ASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["asn"] = o.Asn if o.Rir.IsSet() { @@ -527,6 +554,7 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "asn", "created", @@ -564,6 +592,7 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "asn") delete(additionalProperties, "rir") diff --git a/model_asn_range.go b/model_asn_range.go index 037e760ce..eec2c3d7c 100644 --- a/model_asn_range.go +++ b/model_asn_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &ASNRange{} type ASNRange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` - Rir RIR `json:"rir"` + Rir BriefRIR `json:"rir"` Start int64 `json:"start"` End int64 `json:"end"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -45,10 +46,11 @@ type _ASNRange ASNRange // 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 NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { +func NewASNRange(id int32, url string, displayUrl string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { this := ASNRange{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -117,6 +119,30 @@ func (o *ASNRange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ASNRange) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ASNRange) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ASNRange) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ASNRange) GetDisplay() string { if o == nil { @@ -190,9 +216,9 @@ func (o *ASNRange) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRange) GetRir() RIR { +func (o *ASNRange) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -201,7 +227,7 @@ func (o *ASNRange) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRange) GetRirOk() (*RIR, bool) { +func (o *ASNRange) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -209,7 +235,7 @@ func (o *ASNRange) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *ASNRange) SetRir(v RIR) { +func (o *ASNRange) SetRir(v BriefRIR) { o.Rir = v } @@ -262,9 +288,9 @@ func (o *ASNRange) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRange) GetTenant() Tenant { +func (o *ASNRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +299,7 @@ func (o *ASNRange) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRange) GetTenantOk() (*Tenant, bool) { +func (o *ASNRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,8 +315,8 @@ func (o *ASNRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASNRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASNRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -488,6 +514,7 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -524,6 +551,7 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -564,6 +592,7 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_asn_range_request.go b/model_asn_range_request.go index 83a9d61da..bfe6fc721 100644 --- a/model_asn_range_request.go +++ b/model_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &ASNRangeRequest{} // ASNRangeRequest Adds support for custom fields and tags. type ASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir RIRRequest `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir BriefRIRRequest `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _ASNRangeRequest ASNRangeRequest // 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 NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64) *ASNRangeRequest { +func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64) *ASNRangeRequest { this := ASNRangeRequest{} this.Name = name this.Slug = slug @@ -105,9 +105,9 @@ func (o *ASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRangeRequest) GetRir() RIRRequest { +func (o *ASNRangeRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -116,7 +116,7 @@ func (o *ASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -124,7 +124,7 @@ func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *ASNRangeRequest) SetRir(v RIRRequest) { +func (o *ASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = v } @@ -177,9 +177,9 @@ func (o *ASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRangeRequest) GetTenant() TenantRequest { +func (o *ASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -188,7 +188,7 @@ func (o *ASNRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -204,8 +204,8 @@ func (o *ASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn_request.go b/model_asn_request.go index 2d8e8162f..d6be5cc35 100644 --- a/model_asn_request.go +++ b/model_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &ASNRequest{} // ASNRequest Adds support for custom fields and tags. type ASNRequest struct { // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn int64 `json:"asn"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,9 +76,9 @@ func (o *ASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetRir() RIRRequest { +func (o *ASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -87,7 +87,7 @@ func (o *ASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -103,8 +103,8 @@ func (o *ASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *ASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *ASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } @@ -119,9 +119,9 @@ func (o *ASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetTenant() TenantRequest { +func (o *ASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -146,8 +146,8 @@ func (o *ASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_authentication.go b/model_authentication.go index 9642d196e..b52e23501 100644 --- a/model_authentication.go +++ b/model_authentication.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go index 1c9752516..bf7ee4e2d 100644 --- a/model_authentication_cipher.go +++ b/model_authentication_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_type.go b/model_authentication_type.go index 87147a487..e7d389d78 100644 --- a/model_authentication_type.go +++ b/model_authentication_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go index 7c661a0a6..66ffadf3e 100644 --- a/model_authentication_type_1.go +++ b/model_authentication_type_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_asn.go b/model_available_asn.go index e398bbbb2..27d9b270f 100644 --- a/model_available_asn.go +++ b/model_available_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_ip.go b/model_available_ip.go index b06e6140c..dd1a13ba4 100644 --- a/model_available_ip.go +++ b/model_available_ip.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &AvailableIP{} // AvailableIP Representation of an IP address which does not exist in the database. type AvailableIP struct { - Family int32 `json:"family"` - Address string `json:"address"` - Vrf NullableVRF `json:"vrf"` - Description *string `json:"description,omitempty"` + Family int32 `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _AvailableIP AvailableIP // 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 NewAvailableIP(family int32, address string, vrf NullableVRF) *AvailableIP { +func NewAvailableIP(family int32, address string, vrf NullableBriefVRF) *AvailableIP { this := AvailableIP{} this.Family = family this.Address = address @@ -98,10 +98,10 @@ func (o *AvailableIP) SetAddress(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailableIP) GetVrf() VRF { +// If the value is explicit nil, the zero value for BriefVRF will be returned +func (o *AvailableIP) GetVrf() BriefVRF { if o == nil || o.Vrf.Get() == nil { - var ret VRF + var ret BriefVRF return ret } @@ -111,7 +111,7 @@ func (o *AvailableIP) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableIP) GetVrfOk() (*VRF, bool) { +func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *AvailableIP) GetVrfOk() (*VRF, bool) { } // SetVrf sets field value -func (o *AvailableIP) SetVrf(v VRF) { +func (o *AvailableIP) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } diff --git a/model_available_prefix.go b/model_available_prefix.go index 6efa0386c..9ff51b590 100644 --- a/model_available_prefix.go +++ b/model_available_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &AvailablePrefix{} // AvailablePrefix Representation of a prefix which does not exist in the database. type AvailablePrefix struct { - Family int32 `json:"family"` - Prefix string `json:"prefix"` - Vrf NullableVRF `json:"vrf"` + Family int32 `json:"family"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRF `json:"vrf"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _AvailablePrefix AvailablePrefix // 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 NewAvailablePrefix(family int32, prefix string, vrf NullableVRF) *AvailablePrefix { +func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF) *AvailablePrefix { this := AvailablePrefix{} this.Family = family this.Prefix = prefix @@ -97,10 +97,10 @@ func (o *AvailablePrefix) SetPrefix(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailablePrefix) GetVrf() VRF { +// If the value is explicit nil, the zero value for BriefVRF will be returned +func (o *AvailablePrefix) GetVrf() BriefVRF { if o == nil || o.Vrf.Get() == nil { - var ret VRF + var ret BriefVRF return ret } @@ -110,7 +110,7 @@ func (o *AvailablePrefix) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { +func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -118,7 +118,7 @@ func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { } // SetVrf sets field value -func (o *AvailablePrefix) SetVrf(v VRF) { +func (o *AvailablePrefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } diff --git a/model_available_vlan.go b/model_available_vlan.go index 8228b8d05..7975395cb 100644 --- a/model_available_vlan.go +++ b/model_available_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableVLAN{} // AvailableVLAN Representation of a VLAN which does not exist in the database. type AvailableVLAN struct { - Vid int32 `json:"vid"` - Group NullableVLANGroup `json:"group"` + Vid int32 `json:"vid"` + Group NullableBriefVLANGroup `json:"group"` AdditionalProperties map[string]interface{} } @@ -31,7 +31,7 @@ type _AvailableVLAN AvailableVLAN // 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 NewAvailableVLAN(vid int32, group NullableVLANGroup) *AvailableVLAN { +func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup) *AvailableVLAN { this := AvailableVLAN{} this.Vid = vid this.Group = group @@ -71,10 +71,10 @@ func (o *AvailableVLAN) SetVid(v int32) { } // GetGroup returns the Group field value -// If the value is explicit nil, the zero value for VLANGroup will be returned -func (o *AvailableVLAN) GetGroup() VLANGroup { +// If the value is explicit nil, the zero value for BriefVLANGroup will be returned +func (o *AvailableVLAN) GetGroup() BriefVLANGroup { if o == nil || o.Group.Get() == nil { - var ret VLANGroup + var ret BriefVLANGroup return ret } @@ -84,7 +84,7 @@ func (o *AvailableVLAN) GetGroup() VLANGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { +func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool) { if o == nil { return nil, false } @@ -92,7 +92,7 @@ func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { } // SetGroup sets field value -func (o *AvailableVLAN) SetGroup(v VLANGroup) { +func (o *AvailableVLAN) SetGroup(v BriefVLANGroup) { o.Group.Set(&v) } diff --git a/model_bookmark.go b/model_bookmark.go index 6552b0da1..cf080af13 100644 --- a/model_bookmark.go +++ b/model_bookmark.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,7 +27,7 @@ type Bookmark struct { ObjectType string `json:"object_type"` ObjectId int64 `json:"object_id"` Object interface{} `json:"object"` - User User `json:"user"` + User BriefUser `json:"user"` Created time.Time `json:"created"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _Bookmark Bookmark // 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 NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time) *Bookmark { +func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time) *Bookmark { this := Bookmark{} this.Id = id this.Url = url @@ -206,9 +206,9 @@ func (o *Bookmark) SetObject(v interface{}) { } // GetUser returns the User field value -func (o *Bookmark) GetUser() User { +func (o *Bookmark) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -217,7 +217,7 @@ func (o *Bookmark) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Bookmark) GetUserOk() (*User, bool) { +func (o *Bookmark) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -225,7 +225,7 @@ func (o *Bookmark) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Bookmark) SetUser(v User) { +func (o *Bookmark) SetUser(v BriefUser) { o.User = v } diff --git a/model_bookmark_request.go b/model_bookmark_request.go index 22932dcd2..fbf72a1d1 100644 --- a/model_bookmark_request.go +++ b/model_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &BookmarkRequest{} // BookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BookmarkRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - User UserRequest `json:"user"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _BookmarkRequest BookmarkRequest // 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 NewBookmarkRequest(objectType string, objectId int64, user UserRequest) *BookmarkRequest { +func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest) *BookmarkRequest { this := BookmarkRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -97,9 +97,9 @@ func (o *BookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value -func (o *BookmarkRequest) GetUser() UserRequest { +func (o *BookmarkRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -108,7 +108,7 @@ func (o *BookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -116,7 +116,7 @@ func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *BookmarkRequest) SetUser(v UserRequest) { +func (o *BookmarkRequest) SetUser(v BriefUserRequest) { o.User = v } diff --git a/model_brief_cable.go b/model_brief_cable.go new file mode 100644 index 000000000..9cf80ed4b --- /dev/null +++ b/model_brief_cable.go @@ -0,0 +1,300 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCable type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCable{} + +// BriefCable Adds support for custom fields and tags. +type BriefCable struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCable BriefCable + +// NewBriefCable instantiates a new BriefCable object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCable(id int32, url string, display string) *BriefCable { + this := BriefCable{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewBriefCableWithDefaults instantiates a new BriefCable object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCableWithDefaults() *BriefCable { + this := BriefCable{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCable) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCable) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCable) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCable) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCable) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCable) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCable) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCable) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCable) SetDisplay(v string) { + o.Display = v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCable) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCable) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefCable) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *BriefCable) SetLabel(v string) { + o.Label = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCable) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCable) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCable) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCable) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCable) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCable) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCable) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCable := _BriefCable{} + + err = json.Unmarshal(data, &varBriefCable) + + if err != nil { + return err + } + + *o = BriefCable(varBriefCable) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "label") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCable struct { + value *BriefCable + isSet bool +} + +func (v NullableBriefCable) Get() *BriefCable { + return v.value +} + +func (v *NullableBriefCable) Set(val *BriefCable) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCable) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCable) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCable(val *BriefCable) *NullableBriefCable { + return &NullableBriefCable{value: val, isSet: true} +} + +func (v NullableBriefCable) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCable) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cable_request.go b/model_brief_cable_request.go new file mode 100644 index 000000000..337e8285b --- /dev/null +++ b/model_brief_cable_request.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefCableRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCableRequest{} + +// BriefCableRequest Adds support for custom fields and tags. +type BriefCableRequest struct { + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCableRequest BriefCableRequest + +// NewBriefCableRequest instantiates a new BriefCableRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCableRequest() *BriefCableRequest { + this := BriefCableRequest{} + return &this +} + +// NewBriefCableRequestWithDefaults instantiates a new BriefCableRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCableRequestWithDefaults() *BriefCableRequest { + this := BriefCableRequest{} + return &this +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCableRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCableRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefCableRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *BriefCableRequest) SetLabel(v string) { + o.Label = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCableRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCableRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCableRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCableRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCableRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCableRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCableRequest) UnmarshalJSON(data []byte) (err error) { + varBriefCableRequest := _BriefCableRequest{} + + err = json.Unmarshal(data, &varBriefCableRequest) + + if err != nil { + return err + } + + *o = BriefCableRequest(varBriefCableRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "label") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCableRequest struct { + value *BriefCableRequest + isSet bool +} + +func (v NullableBriefCableRequest) Get() *BriefCableRequest { + return v.value +} + +func (v *NullableBriefCableRequest) Set(val *BriefCableRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCableRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCableRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCableRequest(val *BriefCableRequest) *NullableBriefCableRequest { + return &NullableBriefCableRequest{value: val, isSet: true} +} + +func (v NullableBriefCableRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCableRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit.go b/model_brief_circuit.go new file mode 100644 index 000000000..d4e59b4d4 --- /dev/null +++ b/model_brief_circuit.go @@ -0,0 +1,322 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuit{} + +// BriefCircuit Adds support for custom fields and tags. +type BriefCircuit struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Unique circuit ID + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuit BriefCircuit + +// NewBriefCircuit instantiates a new BriefCircuit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuit(id int32, url string, display string, cid string, provider BriefProvider) *BriefCircuit { + this := BriefCircuit{} + this.Id = id + this.Url = url + this.Display = display + this.Cid = cid + this.Provider = provider + return &this +} + +// NewBriefCircuitWithDefaults instantiates a new BriefCircuit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitWithDefaults() *BriefCircuit { + this := BriefCircuit{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuit) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuit) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuit) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuit) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuit) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuit) SetDisplay(v string) { + o.Display = v +} + +// GetCid returns the Cid field value +func (o *BriefCircuit) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefCircuit) SetCid(v string) { + o.Cid = v +} + +// GetProvider returns the Provider field value +func (o *BriefCircuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *BriefCircuit) SetProvider(v BriefProvider) { + o.Provider = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuit) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuit) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuit) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuit) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuit) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "cid", + "provider", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuit := _BriefCircuit{} + + err = json.Unmarshal(data, &varBriefCircuit) + + if err != nil { + return err + } + + *o = BriefCircuit(varBriefCircuit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuit struct { + value *BriefCircuit + isSet bool +} + +func (v NullableBriefCircuit) Get() *BriefCircuit { + return v.value +} + +func (v *NullableBriefCircuit) Set(val *BriefCircuit) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuit) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuit(val *BriefCircuit) *NullableBriefCircuit { + return &NullableBriefCircuit{value: val, isSet: true} +} + +func (v NullableBriefCircuit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group.go b/model_brief_circuit_group.go new file mode 100644 index 000000000..7bde85ef7 --- /dev/null +++ b/model_brief_circuit_group.go @@ -0,0 +1,255 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroup{} + +// BriefCircuitGroup Adds support for custom fields and tags. +type BriefCircuitGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroup BriefCircuitGroup + +// NewBriefCircuitGroup instantiates a new BriefCircuitGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroup(id int32, url string, display string, name string) *BriefCircuitGroup { + this := BriefCircuitGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefCircuitGroupWithDefaults instantiates a new BriefCircuitGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupWithDefaults() *BriefCircuitGroup { + this := BriefCircuitGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuitGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuitGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCircuitGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitGroup) SetName(v string) { + o.Name = v +} + +func (o BriefCircuitGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroup := _BriefCircuitGroup{} + + err = json.Unmarshal(data, &varBriefCircuitGroup) + + if err != nil { + return err + } + + *o = BriefCircuitGroup(varBriefCircuitGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroup struct { + value *BriefCircuitGroup + isSet bool +} + +func (v NullableBriefCircuitGroup) Get() *BriefCircuitGroup { + return v.value +} + +func (v *NullableBriefCircuitGroup) Set(val *BriefCircuitGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroup(val *BriefCircuitGroup) *NullableBriefCircuitGroup { + return &NullableBriefCircuitGroup{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_assignment_serializer_.go b/model_brief_circuit_group_assignment_serializer_.go new file mode 100644 index 000000000..d1d454d92 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer_.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupAssignmentSerializer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializer{} + +// BriefCircuitGroupAssignmentSerializer Base serializer for group assignments under CircuitSerializer. +type BriefCircuitGroupAssignmentSerializer struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializer BriefCircuitGroupAssignmentSerializer + +// NewBriefCircuitGroupAssignmentSerializer instantiates a new BriefCircuitGroupAssignmentSerializer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupAssignmentSerializer(id int32, url string, display string, group BriefCircuitGroup) *BriefCircuitGroupAssignmentSerializer { + this := BriefCircuitGroupAssignmentSerializer{} + this.Id = id + this.Url = url + this.Display = display + this.Group = group + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupAssignmentSerializerWithDefaults() *BriefCircuitGroupAssignmentSerializer { + this := BriefCircuitGroupAssignmentSerializer{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitGroupAssignmentSerializer) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuitGroupAssignmentSerializer) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuitGroupAssignmentSerializer) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetDisplay(v string) { + o.Display = v +} + +// GetGroup returns the Group field value +func (o *BriefCircuitGroupAssignmentSerializer) GetGroup() BriefCircuitGroup { + if o == nil { + var ret BriefCircuitGroup + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetGroupOk() (*BriefCircuitGroup, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *BriefCircuitGroupAssignmentSerializer) SetGroup(v BriefCircuitGroup) { + o.Group = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializer) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializer) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializer) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { + o.Priority = &v +} + +func (o BriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["group"] = o.Group + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "group", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroupAssignmentSerializer := _BriefCircuitGroupAssignmentSerializer{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializer) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializer(varBriefCircuitGroupAssignmentSerializer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "group") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializer struct { + value *BriefCircuitGroupAssignmentSerializer + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) Get() *BriefCircuitGroupAssignmentSerializer { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) Set(val *BriefCircuitGroupAssignmentSerializer) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializer(val *BriefCircuitGroupAssignmentSerializer) *NullableBriefCircuitGroupAssignmentSerializer { + return &NullableBriefCircuitGroupAssignmentSerializer{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_assignment_serializer__priority.go b/model_brief_circuit_group_assignment_serializer__priority.go new file mode 100644 index 000000000..d2a5c664b --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefCircuitGroupAssignmentSerializerPriority type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerPriority{} + +// BriefCircuitGroupAssignmentSerializerPriority struct for BriefCircuitGroupAssignmentSerializerPriority +type BriefCircuitGroupAssignmentSerializerPriority struct { + Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"` + Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializerPriority BriefCircuitGroupAssignmentSerializerPriority + +// NewBriefCircuitGroupAssignmentSerializerPriority instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupAssignmentSerializerPriority() *BriefCircuitGroupAssignmentSerializerPriority { + this := BriefCircuitGroupAssignmentSerializerPriority{} + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerPriority object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupAssignmentSerializerPriorityWithDefaults() *BriefCircuitGroupAssignmentSerializerPriority { + this := BriefCircuitGroupAssignmentSerializerPriority{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValue() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Value) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetValueOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Value field. +func (o *BriefCircuitGroupAssignmentSerializerPriority) SetValue(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabel() BriefCircuitGroupAssignmentSerializerPriorityLabel { + if o == nil || IsNil(o.Label) { + var ret BriefCircuitGroupAssignmentSerializerPriorityLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) GetLabelOk() (*BriefCircuitGroupAssignmentSerializerPriorityLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerPriority) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityLabel and assigns it to the Label field. +func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitGroupAssignmentSerializerPriorityLabel) { + o.Label = &v +} + +func (o BriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializerPriority) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(data []byte) (err error) { + varBriefCircuitGroupAssignmentSerializerPriority := _BriefCircuitGroupAssignmentSerializerPriority{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializerPriority) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializerPriority(varBriefCircuitGroupAssignmentSerializerPriority) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializerPriority struct { + value *BriefCircuitGroupAssignmentSerializerPriority + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) Get() *BriefCircuitGroupAssignmentSerializerPriority { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) Set(val *BriefCircuitGroupAssignmentSerializerPriority) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriority(val *BriefCircuitGroupAssignmentSerializerPriority) *NullableBriefCircuitGroupAssignmentSerializerPriority { + return &NullableBriefCircuitGroupAssignmentSerializerPriority{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_assignment_serializer__priority_label.go b/model_brief_circuit_group_assignment_serializer__priority_label.go new file mode 100644 index 000000000..e728ce6d5 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefCircuitGroupAssignmentSerializerPriorityLabel the model 'BriefCircuitGroupAssignmentSerializerPriorityLabel' +type BriefCircuitGroupAssignmentSerializerPriorityLabel string + +// List of BriefCircuitGroupAssignmentSerializer__priority_label +const ( + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Secondary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive" +) + +// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityLabel enum +var AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues = []BriefCircuitGroupAssignmentSerializerPriorityLabel{ + "Primary", + "Secondary", + "Tertiary", + "Inactive", +} + +func (v *BriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefCircuitGroupAssignmentSerializerPriorityLabel(value) + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefCircuitGroupAssignmentSerializerPriorityLabel", value) +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityLabelFromValue returns a pointer to a valid BriefCircuitGroupAssignmentSerializerPriorityLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefCircuitGroupAssignmentSerializerPriorityLabelFromValue(v string) (*BriefCircuitGroupAssignmentSerializerPriorityLabel, error) { + ev := BriefCircuitGroupAssignmentSerializerPriorityLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefCircuitGroupAssignmentSerializerPriorityLabel: valid values are %v", v, AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefCircuitGroupAssignmentSerializerPriorityLabel) IsValid() bool { + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefCircuitGroupAssignmentSerializer__priority_label value +func (v BriefCircuitGroupAssignmentSerializerPriorityLabel) Ptr() *BriefCircuitGroupAssignmentSerializerPriorityLabel { + return &v +} + +type NullableBriefCircuitGroupAssignmentSerializerPriorityLabel struct { + value *BriefCircuitGroupAssignmentSerializerPriorityLabel + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Get() *BriefCircuitGroupAssignmentSerializerPriorityLabel { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Set(val *BriefCircuitGroupAssignmentSerializerPriorityLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriorityLabel(val *BriefCircuitGroupAssignmentSerializerPriorityLabel) *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel { + return &NullableBriefCircuitGroupAssignmentSerializerPriorityLabel{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_circuit_group_assignment_serializer__priority_value.go b/model_brief_circuit_group_assignment_serializer__priority_value.go new file mode 100644 index 000000000..afa9ea726 --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer__priority_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefCircuitGroupAssignmentSerializerPriorityValue * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +type BriefCircuitGroupAssignmentSerializerPriorityValue string + +// List of BriefCircuitGroupAssignmentSerializer__priority_value +const ( + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityValue = "secondary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = "" +) + +// All allowed values of BriefCircuitGroupAssignmentSerializerPriorityValue enum +var AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues = []BriefCircuitGroupAssignmentSerializerPriorityValue{ + "primary", + "secondary", + "tertiary", + "inactive", + "", +} + +func (v *BriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefCircuitGroupAssignmentSerializerPriorityValue(value) + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefCircuitGroupAssignmentSerializerPriorityValue", value) +} + +// NewBriefCircuitGroupAssignmentSerializerPriorityValueFromValue returns a pointer to a valid BriefCircuitGroupAssignmentSerializerPriorityValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefCircuitGroupAssignmentSerializerPriorityValueFromValue(v string) (*BriefCircuitGroupAssignmentSerializerPriorityValue, error) { + ev := BriefCircuitGroupAssignmentSerializerPriorityValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefCircuitGroupAssignmentSerializerPriorityValue: valid values are %v", v, AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefCircuitGroupAssignmentSerializerPriorityValue) IsValid() bool { + for _, existing := range AllowedBriefCircuitGroupAssignmentSerializerPriorityValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefCircuitGroupAssignmentSerializer__priority_value value +func (v BriefCircuitGroupAssignmentSerializerPriorityValue) Ptr() *BriefCircuitGroupAssignmentSerializerPriorityValue { + return &v +} + +type NullableBriefCircuitGroupAssignmentSerializerPriorityValue struct { + value *BriefCircuitGroupAssignmentSerializerPriorityValue + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Get() *BriefCircuitGroupAssignmentSerializerPriorityValue { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Set(val *BriefCircuitGroupAssignmentSerializerPriorityValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerPriorityValue(val *BriefCircuitGroupAssignmentSerializerPriorityValue) *NullableBriefCircuitGroupAssignmentSerializerPriorityValue { + return &NullableBriefCircuitGroupAssignmentSerializerPriorityValue{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerPriorityValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_circuit_group_assignment_serializer_request.go b/model_brief_circuit_group_assignment_serializer_request.go new file mode 100644 index 000000000..a9208eeab --- /dev/null +++ b/model_brief_circuit_group_assignment_serializer_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupAssignmentSerializerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerRequest{} + +// BriefCircuitGroupAssignmentSerializerRequest Base serializer for group assignments under CircuitSerializer. +type BriefCircuitGroupAssignmentSerializerRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupAssignmentSerializerRequest BriefCircuitGroupAssignmentSerializerRequest + +// NewBriefCircuitGroupAssignmentSerializerRequest instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupAssignmentSerializerRequest(group BriefCircuitGroupRequest) *BriefCircuitGroupAssignmentSerializerRequest { + this := BriefCircuitGroupAssignmentSerializerRequest{} + this.Group = group + return &this +} + +// NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults instantiates a new BriefCircuitGroupAssignmentSerializerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupAssignmentSerializerRequestWithDefaults() *BriefCircuitGroupAssignmentSerializerRequest { + this := BriefCircuitGroupAssignmentSerializerRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *BriefCircuitGroupAssignmentSerializerRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *BriefCircuitGroupAssignmentSerializerRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +func (o BriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupAssignmentSerializerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroupAssignmentSerializerRequest := _BriefCircuitGroupAssignmentSerializerRequest{} + + err = json.Unmarshal(data, &varBriefCircuitGroupAssignmentSerializerRequest) + + if err != nil { + return err + } + + *o = BriefCircuitGroupAssignmentSerializerRequest(varBriefCircuitGroupAssignmentSerializerRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "priority") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupAssignmentSerializerRequest struct { + value *BriefCircuitGroupAssignmentSerializerRequest + isSet bool +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) Get() *BriefCircuitGroupAssignmentSerializerRequest { + return v.value +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) Set(val *BriefCircuitGroupAssignmentSerializerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupAssignmentSerializerRequest(val *BriefCircuitGroupAssignmentSerializerRequest) *NullableBriefCircuitGroupAssignmentSerializerRequest { + return &NullableBriefCircuitGroupAssignmentSerializerRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_group_request.go b/model_brief_circuit_group_request.go new file mode 100644 index 000000000..4403da75e --- /dev/null +++ b/model_brief_circuit_group_request.go @@ -0,0 +1,168 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitGroupRequest{} + +// BriefCircuitGroupRequest Adds support for custom fields and tags. +type BriefCircuitGroupRequest struct { + Name string `json:"name"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitGroupRequest BriefCircuitGroupRequest + +// NewBriefCircuitGroupRequest instantiates a new BriefCircuitGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitGroupRequest(name string) *BriefCircuitGroupRequest { + this := BriefCircuitGroupRequest{} + this.Name = name + return &this +} + +// NewBriefCircuitGroupRequestWithDefaults instantiates a new BriefCircuitGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitGroupRequestWithDefaults() *BriefCircuitGroupRequest { + this := BriefCircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCircuitGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitGroupRequest) SetName(v string) { + o.Name = v +} + +func (o BriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitGroupRequest := _BriefCircuitGroupRequest{} + + err = json.Unmarshal(data, &varBriefCircuitGroupRequest) + + if err != nil { + return err + } + + *o = BriefCircuitGroupRequest(varBriefCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitGroupRequest struct { + value *BriefCircuitGroupRequest + isSet bool +} + +func (v NullableBriefCircuitGroupRequest) Get() *BriefCircuitGroupRequest { + return v.value +} + +func (v *NullableBriefCircuitGroupRequest) Set(val *BriefCircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitGroupRequest(val *BriefCircuitGroupRequest) *NullableBriefCircuitGroupRequest { + return &NullableBriefCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_request.go b/model_brief_circuit_request.go new file mode 100644 index 000000000..083b51866 --- /dev/null +++ b/model_brief_circuit_request.go @@ -0,0 +1,235 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitRequest{} + +// BriefCircuitRequest Adds support for custom fields and tags. +type BriefCircuitRequest struct { + // Unique circuit ID + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitRequest BriefCircuitRequest + +// NewBriefCircuitRequest instantiates a new BriefCircuitRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitRequest(cid string, provider BriefProviderRequest) *BriefCircuitRequest { + this := BriefCircuitRequest{} + this.Cid = cid + this.Provider = provider + return &this +} + +// NewBriefCircuitRequestWithDefaults instantiates a new BriefCircuitRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitRequestWithDefaults() *BriefCircuitRequest { + this := BriefCircuitRequest{} + return &this +} + +// GetCid returns the Cid field value +func (o *BriefCircuitRequest) GetCid() string { + if o == nil { + var ret string + return ret + } + + return o.Cid +} + +// GetCidOk returns a tuple with the Cid field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetCidOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Cid, true +} + +// SetCid sets field value +func (o *BriefCircuitRequest) SetCid(v string) { + o.Cid = v +} + +// GetProvider returns the Provider field value +func (o *BriefCircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *BriefCircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuitRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuitRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuitRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "cid", + "provider", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitRequest := _BriefCircuitRequest{} + + err = json.Unmarshal(data, &varBriefCircuitRequest) + + if err != nil { + return err + } + + *o = BriefCircuitRequest(varBriefCircuitRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitRequest struct { + value *BriefCircuitRequest + isSet bool +} + +func (v NullableBriefCircuitRequest) Get() *BriefCircuitRequest { + return v.value +} + +func (v *NullableBriefCircuitRequest) Set(val *BriefCircuitRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitRequest(val *BriefCircuitRequest) *NullableBriefCircuitRequest { + return &NullableBriefCircuitRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go new file mode 100644 index 000000000..93af03ca3 --- /dev/null +++ b/model_brief_circuit_type.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitType{} + +// BriefCircuitType Adds support for custom fields and tags. +type BriefCircuitType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitType BriefCircuitType + +// NewBriefCircuitType instantiates a new BriefCircuitType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitType(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefCircuitType { + this := BriefCircuitType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewBriefCircuitTypeWithDefaults instantiates a new BriefCircuitType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitTypeWithDefaults() *BriefCircuitType { + this := BriefCircuitType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCircuitType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCircuitType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCircuitType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCircuitType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCircuitType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCircuitType) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCircuitType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitType) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefCircuitType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefCircuitType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuitType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuitType) SetDescription(v string) { + o.Description = &v +} + +// GetCircuitCount returns the CircuitCount field value +func (o *BriefCircuitType) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitType) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *BriefCircuitType) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +func (o BriefCircuitType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitType := _BriefCircuitType{} + + err = json.Unmarshal(data, &varBriefCircuitType) + + if err != nil { + return err + } + + *o = BriefCircuitType(varBriefCircuitType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitType struct { + value *BriefCircuitType + isSet bool +} + +func (v NullableBriefCircuitType) Get() *BriefCircuitType { + return v.value +} + +func (v *NullableBriefCircuitType) Set(val *BriefCircuitType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitType(val *BriefCircuitType) *NullableBriefCircuitType { + return &NullableBriefCircuitType{value: val, isSet: true} +} + +func (v NullableBriefCircuitType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_circuit_type_request.go b/model_brief_circuit_type_request.go new file mode 100644 index 000000000..00b0d0d50 --- /dev/null +++ b/model_brief_circuit_type_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCircuitTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCircuitTypeRequest{} + +// BriefCircuitTypeRequest Adds support for custom fields and tags. +type BriefCircuitTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCircuitTypeRequest BriefCircuitTypeRequest + +// NewBriefCircuitTypeRequest instantiates a new BriefCircuitTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCircuitTypeRequest(name string, slug string) *BriefCircuitTypeRequest { + this := BriefCircuitTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefCircuitTypeRequestWithDefaults instantiates a new BriefCircuitTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCircuitTypeRequestWithDefaults() *BriefCircuitTypeRequest { + this := BriefCircuitTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCircuitTypeRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCircuitTypeRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefCircuitTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefCircuitTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefCircuitTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCircuitTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCircuitTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCircuitTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCircuitTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCircuitTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCircuitTypeRequest := _BriefCircuitTypeRequest{} + + err = json.Unmarshal(data, &varBriefCircuitTypeRequest) + + if err != nil { + return err + } + + *o = BriefCircuitTypeRequest(varBriefCircuitTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCircuitTypeRequest struct { + value *BriefCircuitTypeRequest + isSet bool +} + +func (v NullableBriefCircuitTypeRequest) Get() *BriefCircuitTypeRequest { + return v.value +} + +func (v *NullableBriefCircuitTypeRequest) Set(val *BriefCircuitTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCircuitTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCircuitTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCircuitTypeRequest(val *BriefCircuitTypeRequest) *NullableBriefCircuitTypeRequest { + return &NullableBriefCircuitTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCircuitTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster.go b/model_brief_cluster.go new file mode 100644 index 000000000..597aed350 --- /dev/null +++ b/model_brief_cluster.go @@ -0,0 +1,329 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCluster type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCluster{} + +// BriefCluster Adds support for custom fields and tags. +type BriefCluster struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCluster BriefCluster + +// NewBriefCluster instantiates a new BriefCluster object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCluster(id int32, url string, display string, name string) *BriefCluster { + this := BriefCluster{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefClusterWithDefaults instantiates a new BriefCluster object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterWithDefaults() *BriefCluster { + this := BriefCluster{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCluster) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCluster) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCluster) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCluster) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCluster) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCluster) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCluster) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCluster) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCluster) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCluster) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCluster) SetDescription(v string) { + o.Description = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *BriefCluster) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCluster) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *BriefCluster) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *BriefCluster) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +func (o BriefCluster) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCluster) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCluster) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCluster := _BriefCluster{} + + err = json.Unmarshal(data, &varBriefCluster) + + if err != nil { + return err + } + + *o = BriefCluster(varBriefCluster) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCluster struct { + value *BriefCluster + isSet bool +} + +func (v NullableBriefCluster) Get() *BriefCluster { + return v.value +} + +func (v *NullableBriefCluster) Set(val *BriefCluster) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCluster) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCluster) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCluster(val *BriefCluster) *NullableBriefCluster { + return &NullableBriefCluster{value: val, isSet: true} +} + +func (v NullableBriefCluster) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCluster) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_group.go b/model_brief_cluster_group.go new file mode 100644 index 000000000..b5e6109ab --- /dev/null +++ b/model_brief_cluster_group.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterGroup{} + +// BriefClusterGroup Adds support for custom fields and tags. +type BriefClusterGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ClusterCount int64 `json:"cluster_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterGroup BriefClusterGroup + +// NewBriefClusterGroup instantiates a new BriefClusterGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterGroup(id int32, url string, display string, name string, slug string, clusterCount int64) *BriefClusterGroup { + this := BriefClusterGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ClusterCount = clusterCount + return &this +} + +// NewBriefClusterGroupWithDefaults instantiates a new BriefClusterGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterGroupWithDefaults() *BriefClusterGroup { + this := BriefClusterGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefClusterGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefClusterGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefClusterGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefClusterGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefClusterGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefClusterGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefClusterGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterGroup) SetDescription(v string) { + o.Description = &v +} + +// GetClusterCount returns the ClusterCount field value +func (o *BriefClusterGroup) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroup) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *BriefClusterGroup) SetClusterCount(v int64) { + o.ClusterCount = v +} + +func (o BriefClusterGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cluster_count"] = o.ClusterCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "cluster_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterGroup := _BriefClusterGroup{} + + err = json.Unmarshal(data, &varBriefClusterGroup) + + if err != nil { + return err + } + + *o = BriefClusterGroup(varBriefClusterGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "cluster_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterGroup struct { + value *BriefClusterGroup + isSet bool +} + +func (v NullableBriefClusterGroup) Get() *BriefClusterGroup { + return v.value +} + +func (v *NullableBriefClusterGroup) Set(val *BriefClusterGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterGroup(val *BriefClusterGroup) *NullableBriefClusterGroup { + return &NullableBriefClusterGroup{value: val, isSet: true} +} + +func (v NullableBriefClusterGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_group_request.go b/model_brief_cluster_group_request.go new file mode 100644 index 000000000..290eadc28 --- /dev/null +++ b/model_brief_cluster_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterGroupRequest{} + +// BriefClusterGroupRequest Adds support for custom fields and tags. +type BriefClusterGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterGroupRequest BriefClusterGroupRequest + +// NewBriefClusterGroupRequest instantiates a new BriefClusterGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterGroupRequest(name string, slug string) *BriefClusterGroupRequest { + this := BriefClusterGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterGroupRequestWithDefaults instantiates a new BriefClusterGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterGroupRequestWithDefaults() *BriefClusterGroupRequest { + this := BriefClusterGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterGroupRequest := _BriefClusterGroupRequest{} + + err = json.Unmarshal(data, &varBriefClusterGroupRequest) + + if err != nil { + return err + } + + *o = BriefClusterGroupRequest(varBriefClusterGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterGroupRequest struct { + value *BriefClusterGroupRequest + isSet bool +} + +func (v NullableBriefClusterGroupRequest) Get() *BriefClusterGroupRequest { + return v.value +} + +func (v *NullableBriefClusterGroupRequest) Set(val *BriefClusterGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterGroupRequest(val *BriefClusterGroupRequest) *NullableBriefClusterGroupRequest { + return &NullableBriefClusterGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_request.go b/model_brief_cluster_request.go new file mode 100644 index 000000000..fc8b17908 --- /dev/null +++ b/model_brief_cluster_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterRequest{} + +// BriefClusterRequest Adds support for custom fields and tags. +type BriefClusterRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterRequest BriefClusterRequest + +// NewBriefClusterRequest instantiates a new BriefClusterRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterRequest(name string) *BriefClusterRequest { + this := BriefClusterRequest{} + this.Name = name + return &this +} + +// NewBriefClusterRequestWithDefaults instantiates a new BriefClusterRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterRequestWithDefaults() *BriefClusterRequest { + this := BriefClusterRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterRequest := _BriefClusterRequest{} + + err = json.Unmarshal(data, &varBriefClusterRequest) + + if err != nil { + return err + } + + *o = BriefClusterRequest(varBriefClusterRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterRequest struct { + value *BriefClusterRequest + isSet bool +} + +func (v NullableBriefClusterRequest) Get() *BriefClusterRequest { + return v.value +} + +func (v *NullableBriefClusterRequest) Set(val *BriefClusterRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterRequest(val *BriefClusterRequest) *NullableBriefClusterRequest { + return &NullableBriefClusterRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_type.go b/model_brief_cluster_type.go new file mode 100644 index 000000000..02c306bde --- /dev/null +++ b/model_brief_cluster_type.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterType{} + +// BriefClusterType Adds support for custom fields and tags. +type BriefClusterType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ClusterCount int64 `json:"cluster_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterType BriefClusterType + +// NewBriefClusterType instantiates a new BriefClusterType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterType(id int32, url string, display string, name string, slug string, clusterCount int64) *BriefClusterType { + this := BriefClusterType{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ClusterCount = clusterCount + return &this +} + +// NewBriefClusterTypeWithDefaults instantiates a new BriefClusterType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterTypeWithDefaults() *BriefClusterType { + this := BriefClusterType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefClusterType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefClusterType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefClusterType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefClusterType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefClusterType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefClusterType) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefClusterType) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterType) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterType) SetDescription(v string) { + o.Description = &v +} + +// GetClusterCount returns the ClusterCount field value +func (o *BriefClusterType) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *BriefClusterType) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *BriefClusterType) SetClusterCount(v int64) { + o.ClusterCount = v +} + +func (o BriefClusterType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cluster_count"] = o.ClusterCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "cluster_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterType := _BriefClusterType{} + + err = json.Unmarshal(data, &varBriefClusterType) + + if err != nil { + return err + } + + *o = BriefClusterType(varBriefClusterType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "cluster_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterType struct { + value *BriefClusterType + isSet bool +} + +func (v NullableBriefClusterType) Get() *BriefClusterType { + return v.value +} + +func (v *NullableBriefClusterType) Set(val *BriefClusterType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterType(val *BriefClusterType) *NullableBriefClusterType { + return &NullableBriefClusterType{value: val, isSet: true} +} + +func (v NullableBriefClusterType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_cluster_type_request.go b/model_brief_cluster_type_request.go new file mode 100644 index 000000000..55e2055bb --- /dev/null +++ b/model_brief_cluster_type_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefClusterTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefClusterTypeRequest{} + +// BriefClusterTypeRequest Adds support for custom fields and tags. +type BriefClusterTypeRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefClusterTypeRequest BriefClusterTypeRequest + +// NewBriefClusterTypeRequest instantiates a new BriefClusterTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefClusterTypeRequest(name string, slug string) *BriefClusterTypeRequest { + this := BriefClusterTypeRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefClusterTypeRequestWithDefaults instantiates a new BriefClusterTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefClusterTypeRequestWithDefaults() *BriefClusterTypeRequest { + this := BriefClusterTypeRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefClusterTypeRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefClusterTypeRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefClusterTypeRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefClusterTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefClusterTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefClusterTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefClusterTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefClusterTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefClusterTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefClusterTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefClusterTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefClusterTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefClusterTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefClusterTypeRequest := _BriefClusterTypeRequest{} + + err = json.Unmarshal(data, &varBriefClusterTypeRequest) + + if err != nil { + return err + } + + *o = BriefClusterTypeRequest(varBriefClusterTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefClusterTypeRequest struct { + value *BriefClusterTypeRequest + isSet bool +} + +func (v NullableBriefClusterTypeRequest) Get() *BriefClusterTypeRequest { + return v.value +} + +func (v *NullableBriefClusterTypeRequest) Set(val *BriefClusterTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefClusterTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefClusterTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefClusterTypeRequest(val *BriefClusterTypeRequest) *NullableBriefClusterTypeRequest { + return &NullableBriefClusterTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefClusterTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefClusterTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_config_template.go b/model_brief_config_template.go new file mode 100644 index 000000000..3b1363bf6 --- /dev/null +++ b/model_brief_config_template.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefConfigTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefConfigTemplate{} + +// BriefConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). +type BriefConfigTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefConfigTemplate BriefConfigTemplate + +// NewBriefConfigTemplate instantiates a new BriefConfigTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefConfigTemplate(id int32, url string, display string, name string) *BriefConfigTemplate { + this := BriefConfigTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefConfigTemplateWithDefaults instantiates a new BriefConfigTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefConfigTemplateWithDefaults() *BriefConfigTemplate { + this := BriefConfigTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefConfigTemplate) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefConfigTemplate) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefConfigTemplate) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefConfigTemplate) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefConfigTemplate) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefConfigTemplate) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefConfigTemplate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefConfigTemplate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefConfigTemplate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefConfigTemplate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefConfigTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefConfigTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefConfigTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefConfigTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefConfigTemplate := _BriefConfigTemplate{} + + err = json.Unmarshal(data, &varBriefConfigTemplate) + + if err != nil { + return err + } + + *o = BriefConfigTemplate(varBriefConfigTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefConfigTemplate struct { + value *BriefConfigTemplate + isSet bool +} + +func (v NullableBriefConfigTemplate) Get() *BriefConfigTemplate { + return v.value +} + +func (v *NullableBriefConfigTemplate) Set(val *BriefConfigTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefConfigTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefConfigTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefConfigTemplate(val *BriefConfigTemplate) *NullableBriefConfigTemplate { + return &NullableBriefConfigTemplate{value: val, isSet: true} +} + +func (v NullableBriefConfigTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefConfigTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_config_template_request.go b/model_brief_config_template_request.go new file mode 100644 index 000000000..cceca5b14 --- /dev/null +++ b/model_brief_config_template_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefConfigTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefConfigTemplateRequest{} + +// BriefConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). +type BriefConfigTemplateRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefConfigTemplateRequest BriefConfigTemplateRequest + +// NewBriefConfigTemplateRequest instantiates a new BriefConfigTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefConfigTemplateRequest(name string) *BriefConfigTemplateRequest { + this := BriefConfigTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefConfigTemplateRequestWithDefaults instantiates a new BriefConfigTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefConfigTemplateRequestWithDefaults() *BriefConfigTemplateRequest { + this := BriefConfigTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefConfigTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefConfigTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefConfigTemplateRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefConfigTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefConfigTemplateRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefConfigTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefConfigTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefConfigTemplateRequest := _BriefConfigTemplateRequest{} + + err = json.Unmarshal(data, &varBriefConfigTemplateRequest) + + if err != nil { + return err + } + + *o = BriefConfigTemplateRequest(varBriefConfigTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefConfigTemplateRequest struct { + value *BriefConfigTemplateRequest + isSet bool +} + +func (v NullableBriefConfigTemplateRequest) Get() *BriefConfigTemplateRequest { + return v.value +} + +func (v *NullableBriefConfigTemplateRequest) Set(val *BriefConfigTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefConfigTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefConfigTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefConfigTemplateRequest(val *BriefConfigTemplateRequest) *NullableBriefConfigTemplateRequest { + return &NullableBriefConfigTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefConfigTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact.go b/model_brief_contact.go new file mode 100644 index 000000000..961bdbd8d --- /dev/null +++ b/model_brief_contact.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContact type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContact{} + +// BriefContact Adds support for custom fields and tags. +type BriefContact struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContact BriefContact + +// NewBriefContact instantiates a new BriefContact object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContact(id int32, url string, display string, name string) *BriefContact { + this := BriefContact{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefContactWithDefaults instantiates a new BriefContact object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactWithDefaults() *BriefContact { + this := BriefContact{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContact) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContact) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefContact) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContact) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefContact) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContact) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefContact) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContact) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContact) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContact) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContact) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContact) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContact) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContact) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContact) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContact) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContact := _BriefContact{} + + err = json.Unmarshal(data, &varBriefContact) + + if err != nil { + return err + } + + *o = BriefContact(varBriefContact) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContact struct { + value *BriefContact + isSet bool +} + +func (v NullableBriefContact) Get() *BriefContact { + return v.value +} + +func (v *NullableBriefContact) Set(val *BriefContact) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContact) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContact) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContact(val *BriefContact) *NullableBriefContact { + return &NullableBriefContact{value: val, isSet: true} +} + +func (v NullableBriefContact) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContact) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_group.go b/model_brief_contact_group.go new file mode 100644 index 000000000..1186b2cd6 --- /dev/null +++ b/model_brief_contact_group.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactGroup{} + +// BriefContactGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefContactGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ContactCount int32 `json:"contact_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactGroup BriefContactGroup + +// NewBriefContactGroup instantiates a new BriefContactGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactGroup(id int32, url string, display string, name string, slug string, contactCount int32, depth int32) *BriefContactGroup { + this := BriefContactGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.ContactCount = contactCount + this.Depth = depth + return &this +} + +// NewBriefContactGroupWithDefaults instantiates a new BriefContactGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactGroupWithDefaults() *BriefContactGroup { + this := BriefContactGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContactGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContactGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefContactGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContactGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefContactGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContactGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefContactGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactGroup) SetDescription(v string) { + o.Description = &v +} + +// GetContactCount returns the ContactCount field value +func (o *BriefContactGroup) GetContactCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ContactCount +} + +// GetContactCountOk returns a tuple with the ContactCount field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetContactCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ContactCount, true +} + +// SetContactCount sets field value +func (o *BriefContactGroup) SetContactCount(v int32) { + o.ContactCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefContactGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefContactGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefContactGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["contact_count"] = o.ContactCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "contact_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactGroup := _BriefContactGroup{} + + err = json.Unmarshal(data, &varBriefContactGroup) + + if err != nil { + return err + } + + *o = BriefContactGroup(varBriefContactGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "contact_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactGroup struct { + value *BriefContactGroup + isSet bool +} + +func (v NullableBriefContactGroup) Get() *BriefContactGroup { + return v.value +} + +func (v *NullableBriefContactGroup) Set(val *BriefContactGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactGroup(val *BriefContactGroup) *NullableBriefContactGroup { + return &NullableBriefContactGroup{value: val, isSet: true} +} + +func (v NullableBriefContactGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_group_request.go b/model_brief_contact_group_request.go new file mode 100644 index 000000000..55f256ced --- /dev/null +++ b/model_brief_contact_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactGroupRequest{} + +// BriefContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefContactGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactGroupRequest BriefContactGroupRequest + +// NewBriefContactGroupRequest instantiates a new BriefContactGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactGroupRequest(name string, slug string) *BriefContactGroupRequest { + this := BriefContactGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactGroupRequestWithDefaults instantiates a new BriefContactGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactGroupRequestWithDefaults() *BriefContactGroupRequest { + this := BriefContactGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactGroupRequest := _BriefContactGroupRequest{} + + err = json.Unmarshal(data, &varBriefContactGroupRequest) + + if err != nil { + return err + } + + *o = BriefContactGroupRequest(varBriefContactGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactGroupRequest struct { + value *BriefContactGroupRequest + isSet bool +} + +func (v NullableBriefContactGroupRequest) Get() *BriefContactGroupRequest { + return v.value +} + +func (v *NullableBriefContactGroupRequest) Set(val *BriefContactGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactGroupRequest(val *BriefContactGroupRequest) *NullableBriefContactGroupRequest { + return &NullableBriefContactGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefContactGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_request.go b/model_brief_contact_request.go new file mode 100644 index 000000000..0dd12f719 --- /dev/null +++ b/model_brief_contact_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRequest{} + +// BriefContactRequest Adds support for custom fields and tags. +type BriefContactRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRequest BriefContactRequest + +// NewBriefContactRequest instantiates a new BriefContactRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactRequest(name string) *BriefContactRequest { + this := BriefContactRequest{} + this.Name = name + return &this +} + +// NewBriefContactRequestWithDefaults instantiates a new BriefContactRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactRequestWithDefaults() *BriefContactRequest { + this := BriefContactRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactRequest := _BriefContactRequest{} + + err = json.Unmarshal(data, &varBriefContactRequest) + + if err != nil { + return err + } + + *o = BriefContactRequest(varBriefContactRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRequest struct { + value *BriefContactRequest + isSet bool +} + +func (v NullableBriefContactRequest) Get() *BriefContactRequest { + return v.value +} + +func (v *NullableBriefContactRequest) Set(val *BriefContactRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRequest(val *BriefContactRequest) *NullableBriefContactRequest { + return &NullableBriefContactRequest{value: val, isSet: true} +} + +func (v NullableBriefContactRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_role.go b/model_brief_contact_role.go new file mode 100644 index 000000000..ed4f82234 --- /dev/null +++ b/model_brief_contact_role.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRole{} + +// BriefContactRole Adds support for custom fields and tags. +type BriefContactRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRole BriefContactRole + +// NewBriefContactRole instantiates a new BriefContactRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactRole(id int32, url string, display string, name string, slug string) *BriefContactRole { + this := BriefContactRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactRoleWithDefaults instantiates a new BriefContactRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactRoleWithDefaults() *BriefContactRole { + this := BriefContactRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefContactRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefContactRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefContactRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefContactRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefContactRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefContactRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefContactRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactRole) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactRole := _BriefContactRole{} + + err = json.Unmarshal(data, &varBriefContactRole) + + if err != nil { + return err + } + + *o = BriefContactRole(varBriefContactRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRole struct { + value *BriefContactRole + isSet bool +} + +func (v NullableBriefContactRole) Get() *BriefContactRole { + return v.value +} + +func (v *NullableBriefContactRole) Set(val *BriefContactRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRole(val *BriefContactRole) *NullableBriefContactRole { + return &NullableBriefContactRole{value: val, isSet: true} +} + +func (v NullableBriefContactRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_contact_role_request.go b/model_brief_contact_role_request.go new file mode 100644 index 000000000..d3860e788 --- /dev/null +++ b/model_brief_contact_role_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefContactRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefContactRoleRequest{} + +// BriefContactRoleRequest Adds support for custom fields and tags. +type BriefContactRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefContactRoleRequest BriefContactRoleRequest + +// NewBriefContactRoleRequest instantiates a new BriefContactRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefContactRoleRequest(name string, slug string) *BriefContactRoleRequest { + this := BriefContactRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefContactRoleRequestWithDefaults instantiates a new BriefContactRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefContactRoleRequestWithDefaults() *BriefContactRoleRequest { + this := BriefContactRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefContactRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefContactRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefContactRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefContactRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefContactRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefContactRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefContactRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefContactRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefContactRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefContactRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefContactRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefContactRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefContactRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefContactRoleRequest := _BriefContactRoleRequest{} + + err = json.Unmarshal(data, &varBriefContactRoleRequest) + + if err != nil { + return err + } + + *o = BriefContactRoleRequest(varBriefContactRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefContactRoleRequest struct { + value *BriefContactRoleRequest + isSet bool +} + +func (v NullableBriefContactRoleRequest) Get() *BriefContactRoleRequest { + return v.value +} + +func (v *NullableBriefContactRoleRequest) Set(val *BriefContactRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefContactRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefContactRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefContactRoleRequest(val *BriefContactRoleRequest) *NullableBriefContactRoleRequest { + return &NullableBriefContactRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefContactRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefContactRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go new file mode 100644 index 000000000..190417f23 --- /dev/null +++ b/model_brief_custom_field_choice_set.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCustomFieldChoiceSet type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCustomFieldChoiceSet{} + +// BriefCustomFieldChoiceSet Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefCustomFieldChoiceSet struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + ChoicesCount string `json:"choices_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefCustomFieldChoiceSet BriefCustomFieldChoiceSet + +// NewBriefCustomFieldChoiceSet instantiates a new BriefCustomFieldChoiceSet object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCustomFieldChoiceSet(id int32, url string, display string, name string, choicesCount string) *BriefCustomFieldChoiceSet { + this := BriefCustomFieldChoiceSet{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.ChoicesCount = choicesCount + return &this +} + +// NewBriefCustomFieldChoiceSetWithDefaults instantiates a new BriefCustomFieldChoiceSet object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCustomFieldChoiceSetWithDefaults() *BriefCustomFieldChoiceSet { + this := BriefCustomFieldChoiceSet{} + return &this +} + +// GetId returns the Id field value +func (o *BriefCustomFieldChoiceSet) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefCustomFieldChoiceSet) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefCustomFieldChoiceSet) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefCustomFieldChoiceSet) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefCustomFieldChoiceSet) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefCustomFieldChoiceSet) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefCustomFieldChoiceSet) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCustomFieldChoiceSet) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCustomFieldChoiceSet) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCustomFieldChoiceSet) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCustomFieldChoiceSet) SetDescription(v string) { + o.Description = &v +} + +// GetChoicesCount returns the ChoicesCount field value +func (o *BriefCustomFieldChoiceSet) GetChoicesCount() string { + if o == nil { + var ret string + return ret + } + + return o.ChoicesCount +} + +// GetChoicesCountOk returns a tuple with the ChoicesCount field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSet) GetChoicesCountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ChoicesCount, true +} + +// SetChoicesCount sets field value +func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) { + o.ChoicesCount = v +} + +func (o BriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["choices_count"] = o.ChoicesCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "choices_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCustomFieldChoiceSet := _BriefCustomFieldChoiceSet{} + + err = json.Unmarshal(data, &varBriefCustomFieldChoiceSet) + + if err != nil { + return err + } + + *o = BriefCustomFieldChoiceSet(varBriefCustomFieldChoiceSet) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "choices_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCustomFieldChoiceSet struct { + value *BriefCustomFieldChoiceSet + isSet bool +} + +func (v NullableBriefCustomFieldChoiceSet) Get() *BriefCustomFieldChoiceSet { + return v.value +} + +func (v *NullableBriefCustomFieldChoiceSet) Set(val *BriefCustomFieldChoiceSet) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCustomFieldChoiceSet) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCustomFieldChoiceSet) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCustomFieldChoiceSet(val *BriefCustomFieldChoiceSet) *NullableBriefCustomFieldChoiceSet { + return &NullableBriefCustomFieldChoiceSet{value: val, isSet: true} +} + +func (v NullableBriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCustomFieldChoiceSet) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_custom_field_choice_set_request.go b/model_brief_custom_field_choice_set_request.go new file mode 100644 index 000000000..729fbcb23 --- /dev/null +++ b/model_brief_custom_field_choice_set_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefCustomFieldChoiceSetRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefCustomFieldChoiceSetRequest{} + +// BriefCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefCustomFieldChoiceSetRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefCustomFieldChoiceSetRequest BriefCustomFieldChoiceSetRequest + +// NewBriefCustomFieldChoiceSetRequest instantiates a new BriefCustomFieldChoiceSetRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefCustomFieldChoiceSetRequest(name string) *BriefCustomFieldChoiceSetRequest { + this := BriefCustomFieldChoiceSetRequest{} + this.Name = name + return &this +} + +// NewBriefCustomFieldChoiceSetRequestWithDefaults instantiates a new BriefCustomFieldChoiceSetRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefCustomFieldChoiceSetRequestWithDefaults() *BriefCustomFieldChoiceSetRequest { + this := BriefCustomFieldChoiceSetRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefCustomFieldChoiceSetRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSetRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefCustomFieldChoiceSetRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefCustomFieldChoiceSetRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefCustomFieldChoiceSetRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefCustomFieldChoiceSetRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefCustomFieldChoiceSetRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefCustomFieldChoiceSetRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefCustomFieldChoiceSetRequest := _BriefCustomFieldChoiceSetRequest{} + + err = json.Unmarshal(data, &varBriefCustomFieldChoiceSetRequest) + + if err != nil { + return err + } + + *o = BriefCustomFieldChoiceSetRequest(varBriefCustomFieldChoiceSetRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefCustomFieldChoiceSetRequest struct { + value *BriefCustomFieldChoiceSetRequest + isSet bool +} + +func (v NullableBriefCustomFieldChoiceSetRequest) Get() *BriefCustomFieldChoiceSetRequest { + return v.value +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) Set(val *BriefCustomFieldChoiceSetRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefCustomFieldChoiceSetRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefCustomFieldChoiceSetRequest(val *BriefCustomFieldChoiceSetRequest) *NullableBriefCustomFieldChoiceSetRequest { + return &NullableBriefCustomFieldChoiceSetRequest{value: val, isSet: true} +} + +func (v NullableBriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_data_file.go b/model_brief_data_file.go new file mode 100644 index 000000000..5ec67396b --- /dev/null +++ b/model_brief_data_file.go @@ -0,0 +1,256 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataFile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataFile{} + +// BriefDataFile Adds support for custom fields and tags. +type BriefDataFile struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // File path relative to the data source's root + Path string `json:"path"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataFile BriefDataFile + +// NewBriefDataFile instantiates a new BriefDataFile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDataFile(id int32, url string, display string, path string) *BriefDataFile { + this := BriefDataFile{} + this.Id = id + this.Url = url + this.Display = display + this.Path = path + return &this +} + +// NewBriefDataFileWithDefaults instantiates a new BriefDataFile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDataFileWithDefaults() *BriefDataFile { + this := BriefDataFile{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDataFile) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDataFile) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDataFile) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDataFile) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDataFile) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDataFile) SetDisplay(v string) { + o.Display = v +} + +// GetPath returns the Path field value +func (o *BriefDataFile) GetPath() string { + if o == nil { + var ret string + return ret + } + + return o.Path +} + +// GetPathOk returns a tuple with the Path field value +// and a boolean to check if the value has been set. +func (o *BriefDataFile) GetPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Path, true +} + +// SetPath sets field value +func (o *BriefDataFile) SetPath(v string) { + o.Path = v +} + +func (o BriefDataFile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataFile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["path"] = o.Path + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataFile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "path", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDataFile := _BriefDataFile{} + + err = json.Unmarshal(data, &varBriefDataFile) + + if err != nil { + return err + } + + *o = BriefDataFile(varBriefDataFile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "path") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataFile struct { + value *BriefDataFile + isSet bool +} + +func (v NullableBriefDataFile) Get() *BriefDataFile { + return v.value +} + +func (v *NullableBriefDataFile) Set(val *BriefDataFile) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataFile) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataFile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataFile(val *BriefDataFile) *NullableBriefDataFile { + return &NullableBriefDataFile{value: val, isSet: true} +} + +func (v NullableBriefDataFile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataFile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_data_source.go b/model_brief_data_source.go new file mode 100644 index 000000000..d5644cb60 --- /dev/null +++ b/model_brief_data_source.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataSource type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataSource{} + +// BriefDataSource Adds support for custom fields and tags. +type BriefDataSource struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataSource BriefDataSource + +// NewBriefDataSource instantiates a new BriefDataSource object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDataSource(id int32, url string, display string, name string) *BriefDataSource { + this := BriefDataSource{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefDataSourceWithDefaults instantiates a new BriefDataSource object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDataSourceWithDefaults() *BriefDataSource { + this := BriefDataSource{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDataSource) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDataSource) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDataSource) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDataSource) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDataSource) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDataSource) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefDataSource) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDataSource) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDataSource) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDataSource) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDataSource) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDataSource) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDataSource) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataSource) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataSource) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDataSource := _BriefDataSource{} + + err = json.Unmarshal(data, &varBriefDataSource) + + if err != nil { + return err + } + + *o = BriefDataSource(varBriefDataSource) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataSource struct { + value *BriefDataSource + isSet bool +} + +func (v NullableBriefDataSource) Get() *BriefDataSource { + return v.value +} + +func (v *NullableBriefDataSource) Set(val *BriefDataSource) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataSource) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataSource) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataSource(val *BriefDataSource) *NullableBriefDataSource { + return &NullableBriefDataSource{value: val, isSet: true} +} + +func (v NullableBriefDataSource) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataSource) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_data_source_request.go b/model_brief_data_source_request.go new file mode 100644 index 000000000..53b5f201c --- /dev/null +++ b/model_brief_data_source_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDataSourceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDataSourceRequest{} + +// BriefDataSourceRequest Adds support for custom fields and tags. +type BriefDataSourceRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDataSourceRequest BriefDataSourceRequest + +// NewBriefDataSourceRequest instantiates a new BriefDataSourceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDataSourceRequest(name string) *BriefDataSourceRequest { + this := BriefDataSourceRequest{} + this.Name = name + return &this +} + +// NewBriefDataSourceRequestWithDefaults instantiates a new BriefDataSourceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDataSourceRequestWithDefaults() *BriefDataSourceRequest { + this := BriefDataSourceRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefDataSourceRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDataSourceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDataSourceRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDataSourceRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDataSourceRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDataSourceRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDataSourceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDataSourceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDataSourceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDataSourceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDataSourceRequest := _BriefDataSourceRequest{} + + err = json.Unmarshal(data, &varBriefDataSourceRequest) + + if err != nil { + return err + } + + *o = BriefDataSourceRequest(varBriefDataSourceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDataSourceRequest struct { + value *BriefDataSourceRequest + isSet bool +} + +func (v NullableBriefDataSourceRequest) Get() *BriefDataSourceRequest { + return v.value +} + +func (v *NullableBriefDataSourceRequest) Set(val *BriefDataSourceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDataSourceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDataSourceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDataSourceRequest(val *BriefDataSourceRequest) *NullableBriefDataSourceRequest { + return &NullableBriefDataSourceRequest{value: val, isSet: true} +} + +func (v NullableBriefDataSourceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDataSourceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device.go b/model_brief_device.go new file mode 100644 index 000000000..dee00a690 --- /dev/null +++ b/model_brief_device.go @@ -0,0 +1,310 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDevice type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDevice{} + +// BriefDevice Adds support for custom fields and tags. +type BriefDevice struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDevice BriefDevice + +// NewBriefDevice instantiates a new BriefDevice object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDevice(id int32, url string, display string) *BriefDevice { + this := BriefDevice{} + this.Id = id + this.Url = url + this.Display = display + return &this +} + +// NewBriefDeviceWithDefaults instantiates a new BriefDevice object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceWithDefaults() *BriefDevice { + this := BriefDevice{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDevice) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDevice) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDevice) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDevice) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDevice) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDevice) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefDevice) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefDevice) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *BriefDevice) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *BriefDevice) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *BriefDevice) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *BriefDevice) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDevice) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDevice) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDevice) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDevice) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDevice) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDevice) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDevice) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDevice := _BriefDevice{} + + err = json.Unmarshal(data, &varBriefDevice) + + if err != nil { + return err + } + + *o = BriefDevice(varBriefDevice) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDevice struct { + value *BriefDevice + isSet bool +} + +func (v NullableBriefDevice) Get() *BriefDevice { + return v.value +} + +func (v *NullableBriefDevice) Set(val *BriefDevice) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDevice) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDevice) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDevice(val *BriefDevice) *NullableBriefDevice { + return &NullableBriefDevice{value: val, isSet: true} +} + +func (v NullableBriefDevice) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDevice) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_request.go b/model_brief_device_request.go new file mode 100644 index 000000000..6d5cf9128 --- /dev/null +++ b/model_brief_device_request.go @@ -0,0 +1,202 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefDeviceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRequest{} + +// BriefDeviceRequest Adds support for custom fields and tags. +type BriefDeviceRequest struct { + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRequest BriefDeviceRequest + +// NewBriefDeviceRequest instantiates a new BriefDeviceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceRequest() *BriefDeviceRequest { + this := BriefDeviceRequest{} + return &this +} + +// NewBriefDeviceRequestWithDefaults instantiates a new BriefDeviceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceRequestWithDefaults() *BriefDeviceRequest { + this := BriefDeviceRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefDeviceRequest) GetName() string { + if o == nil || IsNil(o.Name.Get()) { + var ret string + return ret + } + return *o.Name.Get() +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefDeviceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Name.Get(), o.Name.IsSet() +} + +// HasName returns a boolean if a field has been set. +func (o *BriefDeviceRequest) HasName() bool { + if o != nil && o.Name.IsSet() { + return true + } + + return false +} + +// SetName gets a reference to the given NullableString and assigns it to the Name field. +func (o *BriefDeviceRequest) SetName(v string) { + o.Name.Set(&v) +} +// SetNameNil sets the value for Name to be an explicit nil +func (o *BriefDeviceRequest) SetNameNil() { + o.Name.Set(nil) +} + +// UnsetName ensures that no value is present for Name, not even an explicit nil +func (o *BriefDeviceRequest) UnsetName() { + o.Name.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Name.IsSet() { + toSerialize["name"] = o.Name.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRequest) UnmarshalJSON(data []byte) (err error) { + varBriefDeviceRequest := _BriefDeviceRequest{} + + err = json.Unmarshal(data, &varBriefDeviceRequest) + + if err != nil { + return err + } + + *o = BriefDeviceRequest(varBriefDeviceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRequest struct { + value *BriefDeviceRequest + isSet bool +} + +func (v NullableBriefDeviceRequest) Get() *BriefDeviceRequest { + return v.value +} + +func (v *NullableBriefDeviceRequest) Set(val *BriefDeviceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRequest(val *BriefDeviceRequest) *NullableBriefDeviceRequest { + return &NullableBriefDeviceRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_role.go b/model_brief_device_role.go new file mode 100644 index 000000000..008f6743b --- /dev/null +++ b/model_brief_device_role.go @@ -0,0 +1,395 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRole{} + +// BriefDeviceRole Adds support for custom fields and tags. +type BriefDeviceRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRole BriefDeviceRole + +// NewBriefDeviceRole instantiates a new BriefDeviceRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceRole(id int32, url string, display string, name string, slug string) *BriefDeviceRole { + this := BriefDeviceRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefDeviceRoleWithDefaults instantiates a new BriefDeviceRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceRoleWithDefaults() *BriefDeviceRole { + this := BriefDeviceRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDeviceRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDeviceRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDeviceRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDeviceRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDeviceRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDeviceRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefDeviceRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDeviceRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceRole) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefDeviceRole) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefDeviceRole) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *BriefDeviceRole) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRole) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *BriefDeviceRole) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *BriefDeviceRole) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +func (o BriefDeviceRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceRole := _BriefDeviceRole{} + + err = json.Unmarshal(data, &varBriefDeviceRole) + + if err != nil { + return err + } + + *o = BriefDeviceRole(varBriefDeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRole struct { + value *BriefDeviceRole + isSet bool +} + +func (v NullableBriefDeviceRole) Get() *BriefDeviceRole { + return v.value +} + +func (v *NullableBriefDeviceRole) Set(val *BriefDeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRole(val *BriefDeviceRole) *NullableBriefDeviceRole { + return &NullableBriefDeviceRole{value: val, isSet: true} +} + +func (v NullableBriefDeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_role_request.go b/model_brief_device_role_request.go new file mode 100644 index 000000000..3ecff372b --- /dev/null +++ b/model_brief_device_role_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceRoleRequest{} + +// BriefDeviceRoleRequest Adds support for custom fields and tags. +type BriefDeviceRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceRoleRequest BriefDeviceRoleRequest + +// NewBriefDeviceRoleRequest instantiates a new BriefDeviceRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceRoleRequest(name string, slug string) *BriefDeviceRoleRequest { + this := BriefDeviceRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefDeviceRoleRequestWithDefaults instantiates a new BriefDeviceRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceRoleRequestWithDefaults() *BriefDeviceRoleRequest { + this := BriefDeviceRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefDeviceRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefDeviceRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceRoleRequest := _BriefDeviceRoleRequest{} + + err = json.Unmarshal(data, &varBriefDeviceRoleRequest) + + if err != nil { + return err + } + + *o = BriefDeviceRoleRequest(varBriefDeviceRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceRoleRequest struct { + value *BriefDeviceRoleRequest + isSet bool +} + +func (v NullableBriefDeviceRoleRequest) Get() *BriefDeviceRoleRequest { + return v.value +} + +func (v *NullableBriefDeviceRoleRequest) Set(val *BriefDeviceRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceRoleRequest(val *BriefDeviceRoleRequest) *NullableBriefDeviceRoleRequest { + return &NullableBriefDeviceRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_type.go b/model_brief_device_type.go new file mode 100644 index 000000000..8cc27da8b --- /dev/null +++ b/model_brief_device_type.go @@ -0,0 +1,387 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceType{} + +// BriefDeviceType Adds support for custom fields and tags. +type BriefDeviceType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceType BriefDeviceType + +// NewBriefDeviceType instantiates a new BriefDeviceType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string) *BriefDeviceType { + this := BriefDeviceType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefDeviceTypeWithDefaults instantiates a new BriefDeviceType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceTypeWithDefaults() *BriefDeviceType { + this := BriefDeviceType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefDeviceType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefDeviceType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefDeviceType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefDeviceType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefDeviceType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefDeviceType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefDeviceType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefDeviceType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefDeviceType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefDeviceType) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceType) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefDeviceType) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceType) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefDeviceType) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefDeviceType) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +func (o BriefDeviceType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceType := _BriefDeviceType{} + + err = json.Unmarshal(data, &varBriefDeviceType) + + if err != nil { + return err + } + + *o = BriefDeviceType(varBriefDeviceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceType struct { + value *BriefDeviceType + isSet bool +} + +func (v NullableBriefDeviceType) Get() *BriefDeviceType { + return v.value +} + +func (v *NullableBriefDeviceType) Set(val *BriefDeviceType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceType(val *BriefDeviceType) *NullableBriefDeviceType { + return &NullableBriefDeviceType{value: val, isSet: true} +} + +func (v NullableBriefDeviceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_device_type_request.go b/model_brief_device_type_request.go new file mode 100644 index 000000000..f5d86a0c9 --- /dev/null +++ b/model_brief_device_type_request.go @@ -0,0 +1,263 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefDeviceTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefDeviceTypeRequest{} + +// BriefDeviceTypeRequest Adds support for custom fields and tags. +type BriefDeviceTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefDeviceTypeRequest BriefDeviceTypeRequest + +// NewBriefDeviceTypeRequest instantiates a new BriefDeviceTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefDeviceTypeRequest { + this := BriefDeviceTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefDeviceTypeRequestWithDefaults instantiates a new BriefDeviceTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefDeviceTypeRequestWithDefaults() *BriefDeviceTypeRequest { + this := BriefDeviceTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefDeviceTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefDeviceTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefDeviceTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefDeviceTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefDeviceTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefDeviceTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefDeviceTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefDeviceTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefDeviceTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefDeviceTypeRequest := _BriefDeviceTypeRequest{} + + err = json.Unmarshal(data, &varBriefDeviceTypeRequest) + + if err != nil { + return err + } + + *o = BriefDeviceTypeRequest(varBriefDeviceTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefDeviceTypeRequest struct { + value *BriefDeviceTypeRequest + isSet bool +} + +func (v NullableBriefDeviceTypeRequest) Get() *BriefDeviceTypeRequest { + return v.value +} + +func (v *NullableBriefDeviceTypeRequest) Set(val *BriefDeviceTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefDeviceTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefDeviceTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefDeviceTypeRequest(val *BriefDeviceTypeRequest) *NullableBriefDeviceTypeRequest { + return &NullableBriefDeviceTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefDeviceTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_fhrp_group.go b/model_brief_fhrp_group.go new file mode 100644 index 000000000..b8b99f7cb --- /dev/null +++ b/model_brief_fhrp_group.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefFHRPGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefFHRPGroup{} + +// BriefFHRPGroup Adds support for custom fields and tags. +type BriefFHRPGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefFHRPGroup BriefFHRPGroup + +// NewBriefFHRPGroup instantiates a new BriefFHRPGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32) *BriefFHRPGroup { + this := BriefFHRPGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Protocol = protocol + this.GroupId = groupId + return &this +} + +// NewBriefFHRPGroupWithDefaults instantiates a new BriefFHRPGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefFHRPGroupWithDefaults() *BriefFHRPGroup { + this := BriefFHRPGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefFHRPGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefFHRPGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefFHRPGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefFHRPGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefFHRPGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefFHRPGroup) SetDisplay(v string) { + o.Display = v +} + +// GetProtocol returns the Protocol field value +func (o *BriefFHRPGroup) GetProtocol() BriefFHRPGroupProtocol { + if o == nil { + var ret BriefFHRPGroupProtocol + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *BriefFHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { + o.Protocol = v +} + +// GetGroupId returns the GroupId field value +func (o *BriefFHRPGroup) GetGroupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetGroupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *BriefFHRPGroup) SetGroupId(v int32) { + o.GroupId = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefFHRPGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefFHRPGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefFHRPGroup) SetDescription(v string) { + o.Description = &v +} + +func (o BriefFHRPGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefFHRPGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["protocol"] = o.Protocol + toSerialize["group_id"] = o.GroupId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefFHRPGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "protocol", + "group_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefFHRPGroup := _BriefFHRPGroup{} + + err = json.Unmarshal(data, &varBriefFHRPGroup) + + if err != nil { + return err + } + + *o = BriefFHRPGroup(varBriefFHRPGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "protocol") + delete(additionalProperties, "group_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefFHRPGroup struct { + value *BriefFHRPGroup + isSet bool +} + +func (v NullableBriefFHRPGroup) Get() *BriefFHRPGroup { + return v.value +} + +func (v *NullableBriefFHRPGroup) Set(val *BriefFHRPGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroup(val *BriefFHRPGroup) *NullableBriefFHRPGroup { + return &NullableBriefFHRPGroup{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_fhrp_group_protocol.go b/model_brief_fhrp_group_protocol.go new file mode 100644 index 000000000..db68a3f28 --- /dev/null +++ b/model_brief_fhrp_group_protocol.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefFHRPGroupProtocol * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +type BriefFHRPGroupProtocol string + +// List of BriefFHRPGroup_protocol +const ( + BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2" + BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3" + BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp" + BRIEFFHRPGROUPPROTOCOL_CLUSTERXL BriefFHRPGroupProtocol = "clusterxl" + BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp" + BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp" + BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other" +) + +// All allowed values of BriefFHRPGroupProtocol enum +var AllowedBriefFHRPGroupProtocolEnumValues = []BriefFHRPGroupProtocol{ + "vrrp2", + "vrrp3", + "carp", + "clusterxl", + "hsrp", + "glbp", + "other", +} + +func (v *BriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefFHRPGroupProtocol(value) + for _, existing := range AllowedBriefFHRPGroupProtocolEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefFHRPGroupProtocol", value) +} + +// NewBriefFHRPGroupProtocolFromValue returns a pointer to a valid BriefFHRPGroupProtocol +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefFHRPGroupProtocolFromValue(v string) (*BriefFHRPGroupProtocol, error) { + ev := BriefFHRPGroupProtocol(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefFHRPGroupProtocol: valid values are %v", v, AllowedBriefFHRPGroupProtocolEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefFHRPGroupProtocol) IsValid() bool { + for _, existing := range AllowedBriefFHRPGroupProtocolEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefFHRPGroup_protocol value +func (v BriefFHRPGroupProtocol) Ptr() *BriefFHRPGroupProtocol { + return &v +} + +type NullableBriefFHRPGroupProtocol struct { + value *BriefFHRPGroupProtocol + isSet bool +} + +func (v NullableBriefFHRPGroupProtocol) Get() *BriefFHRPGroupProtocol { + return v.value +} + +func (v *NullableBriefFHRPGroupProtocol) Set(val *BriefFHRPGroupProtocol) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroupProtocol) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroupProtocol) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroupProtocol(val *BriefFHRPGroupProtocol) *NullableBriefFHRPGroupProtocol { + return &NullableBriefFHRPGroupProtocol{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroupProtocol) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_fhrp_group_request.go b/model_brief_fhrp_group_request.go new file mode 100644 index 000000000..a36941dd1 --- /dev/null +++ b/model_brief_fhrp_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefFHRPGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefFHRPGroupRequest{} + +// BriefFHRPGroupRequest Adds support for custom fields and tags. +type BriefFHRPGroupRequest struct { + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefFHRPGroupRequest BriefFHRPGroupRequest + +// NewBriefFHRPGroupRequest instantiates a new BriefFHRPGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *BriefFHRPGroupRequest { + this := BriefFHRPGroupRequest{} + this.Protocol = protocol + this.GroupId = groupId + return &this +} + +// NewBriefFHRPGroupRequestWithDefaults instantiates a new BriefFHRPGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefFHRPGroupRequestWithDefaults() *BriefFHRPGroupRequest { + this := BriefFHRPGroupRequest{} + return &this +} + +// GetProtocol returns the Protocol field value +func (o *BriefFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { + if o == nil { + var ret BriefFHRPGroupProtocol + return ret + } + + return o.Protocol +} + +// GetProtocolOk returns a tuple with the Protocol field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { + if o == nil { + return nil, false + } + return &o.Protocol, true +} + +// SetProtocol sets field value +func (o *BriefFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { + o.Protocol = v +} + +// GetGroupId returns the GroupId field value +func (o *BriefFHRPGroupRequest) GetGroupId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.GroupId +} + +// GetGroupIdOk returns a tuple with the GroupId field value +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetGroupIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.GroupId, true +} + +// SetGroupId sets field value +func (o *BriefFHRPGroupRequest) SetGroupId(v int32) { + o.GroupId = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefFHRPGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefFHRPGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefFHRPGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefFHRPGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefFHRPGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["protocol"] = o.Protocol + toSerialize["group_id"] = o.GroupId + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefFHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "protocol", + "group_id", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefFHRPGroupRequest := _BriefFHRPGroupRequest{} + + err = json.Unmarshal(data, &varBriefFHRPGroupRequest) + + if err != nil { + return err + } + + *o = BriefFHRPGroupRequest(varBriefFHRPGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "protocol") + delete(additionalProperties, "group_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefFHRPGroupRequest struct { + value *BriefFHRPGroupRequest + isSet bool +} + +func (v NullableBriefFHRPGroupRequest) Get() *BriefFHRPGroupRequest { + return v.value +} + +func (v *NullableBriefFHRPGroupRequest) Set(val *BriefFHRPGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefFHRPGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefFHRPGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefFHRPGroupRequest(val *BriefFHRPGroupRequest) *NullableBriefFHRPGroupRequest { + return &NullableBriefFHRPGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefFHRPGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ike_policy.go b/model_brief_ike_policy.go new file mode 100644 index 000000000..a1a95c2b4 --- /dev/null +++ b/model_brief_ike_policy.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIKEPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIKEPolicy{} + +// BriefIKEPolicy Adds support for custom fields and tags. +type BriefIKEPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIKEPolicy BriefIKEPolicy + +// NewBriefIKEPolicy instantiates a new BriefIKEPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIKEPolicy(id int32, url string, display string, name string) *BriefIKEPolicy { + this := BriefIKEPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIKEPolicyWithDefaults instantiates a new BriefIKEPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIKEPolicyWithDefaults() *BriefIKEPolicy { + this := BriefIKEPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIKEPolicy) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIKEPolicy) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIKEPolicy) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIKEPolicy) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIKEPolicy) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIKEPolicy) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefIKEPolicy) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIKEPolicy) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIKEPolicy) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicy) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIKEPolicy) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIKEPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIKEPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIKEPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIKEPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIKEPolicy := _BriefIKEPolicy{} + + err = json.Unmarshal(data, &varBriefIKEPolicy) + + if err != nil { + return err + } + + *o = BriefIKEPolicy(varBriefIKEPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIKEPolicy struct { + value *BriefIKEPolicy + isSet bool +} + +func (v NullableBriefIKEPolicy) Get() *BriefIKEPolicy { + return v.value +} + +func (v *NullableBriefIKEPolicy) Set(val *BriefIKEPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIKEPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIKEPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIKEPolicy(val *BriefIKEPolicy) *NullableBriefIKEPolicy { + return &NullableBriefIKEPolicy{value: val, isSet: true} +} + +func (v NullableBriefIKEPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIKEPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ike_policy_request.go b/model_brief_ike_policy_request.go new file mode 100644 index 000000000..f34860bb3 --- /dev/null +++ b/model_brief_ike_policy_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIKEPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIKEPolicyRequest{} + +// BriefIKEPolicyRequest Adds support for custom fields and tags. +type BriefIKEPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIKEPolicyRequest BriefIKEPolicyRequest + +// NewBriefIKEPolicyRequest instantiates a new BriefIKEPolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIKEPolicyRequest(name string) *BriefIKEPolicyRequest { + this := BriefIKEPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefIKEPolicyRequestWithDefaults instantiates a new BriefIKEPolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIKEPolicyRequestWithDefaults() *BriefIKEPolicyRequest { + this := BriefIKEPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIKEPolicyRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIKEPolicyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIKEPolicyRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIKEPolicyRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIKEPolicyRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIKEPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIKEPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIKEPolicyRequest := _BriefIKEPolicyRequest{} + + err = json.Unmarshal(data, &varBriefIKEPolicyRequest) + + if err != nil { + return err + } + + *o = BriefIKEPolicyRequest(varBriefIKEPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIKEPolicyRequest struct { + value *BriefIKEPolicyRequest + isSet bool +} + +func (v NullableBriefIKEPolicyRequest) Get() *BriefIKEPolicyRequest { + return v.value +} + +func (v *NullableBriefIKEPolicyRequest) Set(val *BriefIKEPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIKEPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIKEPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIKEPolicyRequest(val *BriefIKEPolicyRequest) *NullableBriefIKEPolicyRequest { + return &NullableBriefIKEPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIKEPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_interface.go b/model_brief_interface.go new file mode 100644 index 000000000..d98b5712f --- /dev/null +++ b/model_brief_interface.go @@ -0,0 +1,381 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInterface type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInterface{} + +// BriefInterface Adds support for custom fields and tags. +type BriefInterface struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} +} + +type _BriefInterface BriefInterface + +// NewBriefInterface instantiates a new BriefInterface object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInterface(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool) *BriefInterface { + this := BriefInterface{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.Name = name + this.Cable = cable + this.Occupied = occupied + return &this +} + +// NewBriefInterfaceWithDefaults instantiates a new BriefInterface object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInterfaceWithDefaults() *BriefInterface { + this := BriefInterface{} + return &this +} + +// GetId returns the Id field value +func (o *BriefInterface) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefInterface) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefInterface) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefInterface) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefInterface) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefInterface) SetDisplay(v string) { + o.Display = v +} + +// GetDevice returns the Device field value +func (o *BriefInterface) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefInterface) SetDevice(v BriefDevice) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefInterface) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInterface) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInterface) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInterface) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInterface) SetDescription(v string) { + o.Description = &v +} + +// GetCable returns the Cable field value +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *BriefInterface) GetCable() BriefCable { + if o == nil || o.Cable.Get() == nil { + var ret BriefCable + return ret + } + + return *o.Cable.Get() +} + +// GetCableOk returns a tuple with the Cable field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefInterface) GetCableOk() (*BriefCable, bool) { + if o == nil { + return nil, false + } + return o.Cable.Get(), o.Cable.IsSet() +} + +// SetCable sets field value +func (o *BriefInterface) SetCable(v BriefCable) { + o.Cable.Set(&v) +} + +// GetOccupied returns the Occupied field value +func (o *BriefInterface) GetOccupied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Occupied +} + +// GetOccupiedOk returns a tuple with the Occupied field value +// and a boolean to check if the value has been set. +func (o *BriefInterface) GetOccupiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Occupied, true +} + +// SetOccupied sets field value +func (o *BriefInterface) SetOccupied(v bool) { + o.Occupied = v +} + +func (o BriefInterface) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInterface) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cable"] = o.Cable.Get() + toSerialize["_occupied"] = o.Occupied + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInterface) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "name", + "cable", + "_occupied", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInterface := _BriefInterface{} + + err = json.Unmarshal(data, &varBriefInterface) + + if err != nil { + return err + } + + *o = BriefInterface(varBriefInterface) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "cable") + delete(additionalProperties, "_occupied") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInterface struct { + value *BriefInterface + isSet bool +} + +func (v NullableBriefInterface) Get() *BriefInterface { + return v.value +} + +func (v *NullableBriefInterface) Set(val *BriefInterface) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInterface) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInterface) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInterface(val *BriefInterface) *NullableBriefInterface { + return &NullableBriefInterface{value: val, isSet: true} +} + +func (v NullableBriefInterface) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInterface) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_interface_request.go b/model_brief_interface_request.go new file mode 100644 index 000000000..bb21457af --- /dev/null +++ b/model_brief_interface_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInterfaceRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInterfaceRequest{} + +// BriefInterfaceRequest Adds support for custom fields and tags. +type BriefInterfaceRequest struct { + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefInterfaceRequest BriefInterfaceRequest + +// NewBriefInterfaceRequest instantiates a new BriefInterfaceRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInterfaceRequest(device BriefDeviceRequest, name string) *BriefInterfaceRequest { + this := BriefInterfaceRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewBriefInterfaceRequestWithDefaults instantiates a new BriefInterfaceRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInterfaceRequestWithDefaults() *BriefInterfaceRequest { + this := BriefInterfaceRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefInterfaceRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefInterfaceRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefInterfaceRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInterfaceRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInterfaceRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInterfaceRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInterfaceRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInterfaceRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefInterfaceRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInterfaceRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInterfaceRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInterfaceRequest := _BriefInterfaceRequest{} + + err = json.Unmarshal(data, &varBriefInterfaceRequest) + + if err != nil { + return err + } + + *o = BriefInterfaceRequest(varBriefInterfaceRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInterfaceRequest struct { + value *BriefInterfaceRequest + isSet bool +} + +func (v NullableBriefInterfaceRequest) Get() *BriefInterfaceRequest { + return v.value +} + +func (v *NullableBriefInterfaceRequest) Set(val *BriefInterfaceRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInterfaceRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInterfaceRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInterfaceRequest(val *BriefInterfaceRequest) *NullableBriefInterfaceRequest { + return &NullableBriefInterfaceRequest{value: val, isSet: true} +} + +func (v NullableBriefInterfaceRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInterfaceRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go new file mode 100644 index 000000000..35ac22127 --- /dev/null +++ b/model_brief_inventory_item_role.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInventoryItemRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInventoryItemRole{} + +// BriefInventoryItemRole Adds support for custom fields and tags. +type BriefInventoryItemRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefInventoryItemRole BriefInventoryItemRole + +// NewBriefInventoryItemRole instantiates a new BriefInventoryItemRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInventoryItemRole(id int32, url string, display string, name string, slug string, inventoryitemCount int64) *BriefInventoryItemRole { + this := BriefInventoryItemRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.InventoryitemCount = inventoryitemCount + return &this +} + +// NewBriefInventoryItemRoleWithDefaults instantiates a new BriefInventoryItemRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInventoryItemRoleWithDefaults() *BriefInventoryItemRole { + this := BriefInventoryItemRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefInventoryItemRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefInventoryItemRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefInventoryItemRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefInventoryItemRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefInventoryItemRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefInventoryItemRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefInventoryItemRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInventoryItemRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefInventoryItemRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefInventoryItemRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInventoryItemRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInventoryItemRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInventoryItemRole) SetDescription(v string) { + o.Description = &v +} + +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *BriefInventoryItemRole) GetInventoryitemCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.InventoryitemCount +} + +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRole) GetInventoryitemCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.InventoryitemCount, true +} + +// SetInventoryitemCount sets field value +func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v +} + +func (o BriefInventoryItemRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInventoryItemRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["inventoryitem_count"] = o.InventoryitemCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInventoryItemRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "inventoryitem_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInventoryItemRole := _BriefInventoryItemRole{} + + err = json.Unmarshal(data, &varBriefInventoryItemRole) + + if err != nil { + return err + } + + *o = BriefInventoryItemRole(varBriefInventoryItemRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "inventoryitem_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInventoryItemRole struct { + value *BriefInventoryItemRole + isSet bool +} + +func (v NullableBriefInventoryItemRole) Get() *BriefInventoryItemRole { + return v.value +} + +func (v *NullableBriefInventoryItemRole) Set(val *BriefInventoryItemRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInventoryItemRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInventoryItemRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInventoryItemRole(val *BriefInventoryItemRole) *NullableBriefInventoryItemRole { + return &NullableBriefInventoryItemRole{value: val, isSet: true} +} + +func (v NullableBriefInventoryItemRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInventoryItemRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_inventory_item_role_request.go b/model_brief_inventory_item_role_request.go new file mode 100644 index 000000000..787b36797 --- /dev/null +++ b/model_brief_inventory_item_role_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefInventoryItemRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefInventoryItemRoleRequest{} + +// BriefInventoryItemRoleRequest Adds support for custom fields and tags. +type BriefInventoryItemRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefInventoryItemRoleRequest BriefInventoryItemRoleRequest + +// NewBriefInventoryItemRoleRequest instantiates a new BriefInventoryItemRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefInventoryItemRoleRequest(name string, slug string) *BriefInventoryItemRoleRequest { + this := BriefInventoryItemRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefInventoryItemRoleRequestWithDefaults instantiates a new BriefInventoryItemRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefInventoryItemRoleRequestWithDefaults() *BriefInventoryItemRoleRequest { + this := BriefInventoryItemRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefInventoryItemRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefInventoryItemRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefInventoryItemRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefInventoryItemRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefInventoryItemRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefInventoryItemRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefInventoryItemRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefInventoryItemRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefInventoryItemRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefInventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefInventoryItemRoleRequest := _BriefInventoryItemRoleRequest{} + + err = json.Unmarshal(data, &varBriefInventoryItemRoleRequest) + + if err != nil { + return err + } + + *o = BriefInventoryItemRoleRequest(varBriefInventoryItemRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefInventoryItemRoleRequest struct { + value *BriefInventoryItemRoleRequest + isSet bool +} + +func (v NullableBriefInventoryItemRoleRequest) Get() *BriefInventoryItemRoleRequest { + return v.value +} + +func (v *NullableBriefInventoryItemRoleRequest) Set(val *BriefInventoryItemRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefInventoryItemRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefInventoryItemRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefInventoryItemRoleRequest(val *BriefInventoryItemRoleRequest) *NullableBriefInventoryItemRoleRequest { + return &NullableBriefInventoryItemRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefInventoryItemRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_address.go b/model_brief_ip_address.go new file mode 100644 index 000000000..23e6529cc --- /dev/null +++ b/model_brief_ip_address.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPAddress{} + +// BriefIPAddress Adds support for custom fields and tags. +type BriefIPAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPAddress BriefIPAddress + +// NewBriefIPAddress instantiates a new BriefIPAddress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPAddress(id int32, url string, display string, family AggregateFamily, address string) *BriefIPAddress { + this := BriefIPAddress{} + this.Id = id + this.Url = url + this.Display = display + this.Family = family + this.Address = address + return &this +} + +// NewBriefIPAddressWithDefaults instantiates a new BriefIPAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPAddressWithDefaults() *BriefIPAddress { + this := BriefIPAddress{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPAddress) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPAddress) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIPAddress) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPAddress) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIPAddress) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPAddress) SetDisplay(v string) { + o.Display = v +} + +// GetFamily returns the Family field value +func (o *BriefIPAddress) GetFamily() AggregateFamily { + if o == nil { + var ret AggregateFamily + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetFamilyOk() (*AggregateFamily, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *BriefIPAddress) SetFamily(v AggregateFamily) { + o.Family = v +} + +// GetAddress returns the Address field value +func (o *BriefIPAddress) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *BriefIPAddress) SetAddress(v string) { + o.Address = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPAddress) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPAddress) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPAddress) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPAddress) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "family", + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPAddress := _BriefIPAddress{} + + err = json.Unmarshal(data, &varBriefIPAddress) + + if err != nil { + return err + } + + *o = BriefIPAddress(varBriefIPAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "family") + delete(additionalProperties, "address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPAddress struct { + value *BriefIPAddress + isSet bool +} + +func (v NullableBriefIPAddress) Get() *BriefIPAddress { + return v.value +} + +func (v *NullableBriefIPAddress) Set(val *BriefIPAddress) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPAddress(val *BriefIPAddress) *NullableBriefIPAddress { + return &NullableBriefIPAddress{value: val, isSet: true} +} + +func (v NullableBriefIPAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_address_request.go b/model_brief_ip_address_request.go new file mode 100644 index 000000000..cf8576d41 --- /dev/null +++ b/model_brief_ip_address_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPAddressRequest{} + +// BriefIPAddressRequest Adds support for custom fields and tags. +type BriefIPAddressRequest struct { + Address string `json:"address"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPAddressRequest BriefIPAddressRequest + +// NewBriefIPAddressRequest instantiates a new BriefIPAddressRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPAddressRequest(address string) *BriefIPAddressRequest { + this := BriefIPAddressRequest{} + this.Address = address + return &this +} + +// NewBriefIPAddressRequestWithDefaults instantiates a new BriefIPAddressRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPAddressRequestWithDefaults() *BriefIPAddressRequest { + this := BriefIPAddressRequest{} + return &this +} + +// GetAddress returns the Address field value +func (o *BriefIPAddressRequest) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *BriefIPAddressRequest) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *BriefIPAddressRequest) SetAddress(v string) { + o.Address = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPAddressRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPAddressRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPAddressRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPAddressRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPAddressRequest := _BriefIPAddressRequest{} + + err = json.Unmarshal(data, &varBriefIPAddressRequest) + + if err != nil { + return err + } + + *o = BriefIPAddressRequest(varBriefIPAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPAddressRequest struct { + value *BriefIPAddressRequest + isSet bool +} + +func (v NullableBriefIPAddressRequest) Get() *BriefIPAddressRequest { + return v.value +} + +func (v *NullableBriefIPAddressRequest) Set(val *BriefIPAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPAddressRequest(val *BriefIPAddressRequest) *NullableBriefIPAddressRequest { + return &NullableBriefIPAddressRequest{value: val, isSet: true} +} + +func (v NullableBriefIPAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_policy.go b/model_brief_ip_sec_policy.go new file mode 100644 index 000000000..e5b1bfa07 --- /dev/null +++ b/model_brief_ip_sec_policy.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecPolicy type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecPolicy{} + +// BriefIPSecPolicy Adds support for custom fields and tags. +type BriefIPSecPolicy struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecPolicy BriefIPSecPolicy + +// NewBriefIPSecPolicy instantiates a new BriefIPSecPolicy object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecPolicy(id int32, url string, display string, name string) *BriefIPSecPolicy { + this := BriefIPSecPolicy{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIPSecPolicyWithDefaults instantiates a new BriefIPSecPolicy object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecPolicyWithDefaults() *BriefIPSecPolicy { + this := BriefIPSecPolicy{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPSecPolicy) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPSecPolicy) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIPSecPolicy) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPSecPolicy) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIPSecPolicy) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPSecPolicy) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefIPSecPolicy) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecPolicy) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecPolicy) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicy) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecPolicy) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecPolicy) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecPolicy) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecPolicy) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecPolicy) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecPolicy := _BriefIPSecPolicy{} + + err = json.Unmarshal(data, &varBriefIPSecPolicy) + + if err != nil { + return err + } + + *o = BriefIPSecPolicy(varBriefIPSecPolicy) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecPolicy struct { + value *BriefIPSecPolicy + isSet bool +} + +func (v NullableBriefIPSecPolicy) Get() *BriefIPSecPolicy { + return v.value +} + +func (v *NullableBriefIPSecPolicy) Set(val *BriefIPSecPolicy) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecPolicy) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecPolicy) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecPolicy(val *BriefIPSecPolicy) *NullableBriefIPSecPolicy { + return &NullableBriefIPSecPolicy{value: val, isSet: true} +} + +func (v NullableBriefIPSecPolicy) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecPolicy) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_policy_request.go b/model_brief_ip_sec_policy_request.go new file mode 100644 index 000000000..6603e1f49 --- /dev/null +++ b/model_brief_ip_sec_policy_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecPolicyRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecPolicyRequest{} + +// BriefIPSecPolicyRequest Adds support for custom fields and tags. +type BriefIPSecPolicyRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecPolicyRequest BriefIPSecPolicyRequest + +// NewBriefIPSecPolicyRequest instantiates a new BriefIPSecPolicyRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecPolicyRequest(name string) *BriefIPSecPolicyRequest { + this := BriefIPSecPolicyRequest{} + this.Name = name + return &this +} + +// NewBriefIPSecPolicyRequestWithDefaults instantiates a new BriefIPSecPolicyRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecPolicyRequestWithDefaults() *BriefIPSecPolicyRequest { + this := BriefIPSecPolicyRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIPSecPolicyRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicyRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecPolicyRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecPolicyRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecPolicyRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecPolicyRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecPolicyRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecPolicyRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecPolicyRequest := _BriefIPSecPolicyRequest{} + + err = json.Unmarshal(data, &varBriefIPSecPolicyRequest) + + if err != nil { + return err + } + + *o = BriefIPSecPolicyRequest(varBriefIPSecPolicyRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecPolicyRequest struct { + value *BriefIPSecPolicyRequest + isSet bool +} + +func (v NullableBriefIPSecPolicyRequest) Get() *BriefIPSecPolicyRequest { + return v.value +} + +func (v *NullableBriefIPSecPolicyRequest) Set(val *BriefIPSecPolicyRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecPolicyRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecPolicyRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecPolicyRequest(val *BriefIPSecPolicyRequest) *NullableBriefIPSecPolicyRequest { + return &NullableBriefIPSecPolicyRequest{value: val, isSet: true} +} + +func (v NullableBriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecPolicyRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_profile.go b/model_brief_ip_sec_profile.go new file mode 100644 index 000000000..1abe8a939 --- /dev/null +++ b/model_brief_ip_sec_profile.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecProfile type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecProfile{} + +// BriefIPSecProfile Adds support for custom fields and tags. +type BriefIPSecProfile struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecProfile BriefIPSecProfile + +// NewBriefIPSecProfile instantiates a new BriefIPSecProfile object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecProfile(id int32, url string, display string, name string) *BriefIPSecProfile { + this := BriefIPSecProfile{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefIPSecProfileWithDefaults instantiates a new BriefIPSecProfile object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecProfileWithDefaults() *BriefIPSecProfile { + this := BriefIPSecProfile{} + return &this +} + +// GetId returns the Id field value +func (o *BriefIPSecProfile) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefIPSecProfile) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefIPSecProfile) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefIPSecProfile) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefIPSecProfile) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefIPSecProfile) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefIPSecProfile) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecProfile) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecProfile) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfile) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecProfile) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecProfile) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecProfile) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecProfile) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecProfile) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecProfile := _BriefIPSecProfile{} + + err = json.Unmarshal(data, &varBriefIPSecProfile) + + if err != nil { + return err + } + + *o = BriefIPSecProfile(varBriefIPSecProfile) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecProfile struct { + value *BriefIPSecProfile + isSet bool +} + +func (v NullableBriefIPSecProfile) Get() *BriefIPSecProfile { + return v.value +} + +func (v *NullableBriefIPSecProfile) Set(val *BriefIPSecProfile) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecProfile) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecProfile) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecProfile(val *BriefIPSecProfile) *NullableBriefIPSecProfile { + return &NullableBriefIPSecProfile{value: val, isSet: true} +} + +func (v NullableBriefIPSecProfile) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecProfile) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_ip_sec_profile_request.go b/model_brief_ip_sec_profile_request.go new file mode 100644 index 000000000..6902a645a --- /dev/null +++ b/model_brief_ip_sec_profile_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefIPSecProfileRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefIPSecProfileRequest{} + +// BriefIPSecProfileRequest Adds support for custom fields and tags. +type BriefIPSecProfileRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefIPSecProfileRequest BriefIPSecProfileRequest + +// NewBriefIPSecProfileRequest instantiates a new BriefIPSecProfileRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefIPSecProfileRequest(name string) *BriefIPSecProfileRequest { + this := BriefIPSecProfileRequest{} + this.Name = name + return &this +} + +// NewBriefIPSecProfileRequestWithDefaults instantiates a new BriefIPSecProfileRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefIPSecProfileRequestWithDefaults() *BriefIPSecProfileRequest { + this := BriefIPSecProfileRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefIPSecProfileRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfileRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefIPSecProfileRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefIPSecProfileRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefIPSecProfileRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefIPSecProfileRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefIPSecProfileRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefIPSecProfileRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefIPSecProfileRequest := _BriefIPSecProfileRequest{} + + err = json.Unmarshal(data, &varBriefIPSecProfileRequest) + + if err != nil { + return err + } + + *o = BriefIPSecProfileRequest(varBriefIPSecProfileRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefIPSecProfileRequest struct { + value *BriefIPSecProfileRequest + isSet bool +} + +func (v NullableBriefIPSecProfileRequest) Get() *BriefIPSecProfileRequest { + return v.value +} + +func (v *NullableBriefIPSecProfileRequest) Set(val *BriefIPSecProfileRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefIPSecProfileRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefIPSecProfileRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefIPSecProfileRequest(val *BriefIPSecProfileRequest) *NullableBriefIPSecProfileRequest { + return &NullableBriefIPSecProfileRequest{value: val, isSet: true} +} + +func (v NullableBriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefIPSecProfileRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_job.go b/model_brief_job.go new file mode 100644 index 000000000..50c317dd8 --- /dev/null +++ b/model_brief_job.go @@ -0,0 +1,303 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the BriefJob type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJob{} + +// BriefJob struct for BriefJob +type BriefJob struct { + Url string `json:"url"` + Status BriefJobStatus `json:"status"` + Created time.Time `json:"created"` + Completed NullableTime `json:"completed,omitempty"` + User BriefUser `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _BriefJob BriefJob + +// NewBriefJob instantiates a new BriefJob object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefJob(url string, status BriefJobStatus, created time.Time, user BriefUser) *BriefJob { + this := BriefJob{} + this.Url = url + this.Status = status + this.Created = created + this.User = user + return &this +} + +// NewBriefJobWithDefaults instantiates a new BriefJob object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefJobWithDefaults() *BriefJob { + this := BriefJob{} + return &this +} + +// GetUrl returns the Url field value +func (o *BriefJob) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefJob) SetUrl(v string) { + o.Url = v +} + +// GetStatus returns the Status field value +func (o *BriefJob) GetStatus() BriefJobStatus { + if o == nil { + var ret BriefJobStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetStatusOk() (*BriefJobStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *BriefJob) SetStatus(v BriefJobStatus) { + o.Status = v +} + +// GetCreated returns the Created field value +func (o *BriefJob) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *BriefJob) SetCreated(v time.Time) { + o.Created = v +} + +// GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefJob) GetCompleted() time.Time { + if o == nil || IsNil(o.Completed.Get()) { + var ret time.Time + return ret + } + return *o.Completed.Get() +} + +// GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefJob) GetCompletedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Completed.Get(), o.Completed.IsSet() +} + +// HasCompleted returns a boolean if a field has been set. +func (o *BriefJob) HasCompleted() bool { + if o != nil && o.Completed.IsSet() { + return true + } + + return false +} + +// SetCompleted gets a reference to the given NullableTime and assigns it to the Completed field. +func (o *BriefJob) SetCompleted(v time.Time) { + o.Completed.Set(&v) +} +// SetCompletedNil sets the value for Completed to be an explicit nil +func (o *BriefJob) SetCompletedNil() { + o.Completed.Set(nil) +} + +// UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +func (o *BriefJob) UnsetCompleted() { + o.Completed.Unset() +} + +// GetUser returns the User field value +func (o *BriefJob) GetUser() BriefUser { + if o == nil { + var ret BriefUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *BriefJob) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *BriefJob) SetUser(v BriefUser) { + o.User = v +} + +func (o BriefJob) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJob) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["url"] = o.Url + toSerialize["status"] = o.Status + toSerialize["created"] = o.Created + if o.Completed.IsSet() { + toSerialize["completed"] = o.Completed.Get() + } + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJob) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "url", + "status", + "created", + "user", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefJob := _BriefJob{} + + err = json.Unmarshal(data, &varBriefJob) + + if err != nil { + return err + } + + *o = BriefJob(varBriefJob) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "url") + delete(additionalProperties, "status") + delete(additionalProperties, "created") + delete(additionalProperties, "completed") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJob struct { + value *BriefJob + isSet bool +} + +func (v NullableBriefJob) Get() *BriefJob { + return v.value +} + +func (v *NullableBriefJob) Set(val *BriefJob) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJob) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJob) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJob(val *BriefJob) *NullableBriefJob { + return &NullableBriefJob{value: val, isSet: true} +} + +func (v NullableBriefJob) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJob) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_job_request.go b/model_brief_job_request.go new file mode 100644 index 000000000..687ce51b1 --- /dev/null +++ b/model_brief_job_request.go @@ -0,0 +1,166 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the BriefJobRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJobRequest{} + +// BriefJobRequest struct for BriefJobRequest +type BriefJobRequest struct { + Completed NullableTime `json:"completed,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefJobRequest BriefJobRequest + +// NewBriefJobRequest instantiates a new BriefJobRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefJobRequest() *BriefJobRequest { + this := BriefJobRequest{} + return &this +} + +// NewBriefJobRequestWithDefaults instantiates a new BriefJobRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefJobRequestWithDefaults() *BriefJobRequest { + this := BriefJobRequest{} + return &this +} + +// GetCompleted returns the Completed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefJobRequest) GetCompleted() time.Time { + if o == nil || IsNil(o.Completed.Get()) { + var ret time.Time + return ret + } + return *o.Completed.Get() +} + +// GetCompletedOk returns a tuple with the Completed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefJobRequest) GetCompletedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Completed.Get(), o.Completed.IsSet() +} + +// HasCompleted returns a boolean if a field has been set. +func (o *BriefJobRequest) HasCompleted() bool { + if o != nil && o.Completed.IsSet() { + return true + } + + return false +} + +// SetCompleted gets a reference to the given NullableTime and assigns it to the Completed field. +func (o *BriefJobRequest) SetCompleted(v time.Time) { + o.Completed.Set(&v) +} +// SetCompletedNil sets the value for Completed to be an explicit nil +func (o *BriefJobRequest) SetCompletedNil() { + o.Completed.Set(nil) +} + +// UnsetCompleted ensures that no value is present for Completed, not even an explicit nil +func (o *BriefJobRequest) UnsetCompleted() { + o.Completed.Unset() +} + +func (o BriefJobRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJobRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Completed.IsSet() { + toSerialize["completed"] = o.Completed.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJobRequest) UnmarshalJSON(data []byte) (err error) { + varBriefJobRequest := _BriefJobRequest{} + + err = json.Unmarshal(data, &varBriefJobRequest) + + if err != nil { + return err + } + + *o = BriefJobRequest(varBriefJobRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "completed") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJobRequest struct { + value *BriefJobRequest + isSet bool +} + +func (v NullableBriefJobRequest) Get() *BriefJobRequest { + return v.value +} + +func (v *NullableBriefJobRequest) Set(val *BriefJobRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobRequest(val *BriefJobRequest) *NullableBriefJobRequest { + return &NullableBriefJobRequest{value: val, isSet: true} +} + +func (v NullableBriefJobRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_job_status.go b/model_brief_job_status.go new file mode 100644 index 000000000..088c5bf0c --- /dev/null +++ b/model_brief_job_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefJobStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefJobStatus{} + +// BriefJobStatus struct for BriefJobStatus +type BriefJobStatus struct { + Value *BriefJobStatusValue `json:"value,omitempty"` + Label *BriefJobStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefJobStatus BriefJobStatus + +// NewBriefJobStatus instantiates a new BriefJobStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefJobStatus() *BriefJobStatus { + this := BriefJobStatus{} + return &this +} + +// NewBriefJobStatusWithDefaults instantiates a new BriefJobStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefJobStatusWithDefaults() *BriefJobStatus { + this := BriefJobStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefJobStatus) GetValue() BriefJobStatusValue { + if o == nil || IsNil(o.Value) { + var ret BriefJobStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefJobStatus) GetValueOk() (*BriefJobStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BriefJobStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefJobStatusValue and assigns it to the Value field. +func (o *BriefJobStatus) SetValue(v BriefJobStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefJobStatus) GetLabel() BriefJobStatusLabel { + if o == nil || IsNil(o.Label) { + var ret BriefJobStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefJobStatus) GetLabelOk() (*BriefJobStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefJobStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefJobStatusLabel and assigns it to the Label field. +func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel) { + o.Label = &v +} + +func (o BriefJobStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefJobStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefJobStatus) UnmarshalJSON(data []byte) (err error) { + varBriefJobStatus := _BriefJobStatus{} + + err = json.Unmarshal(data, &varBriefJobStatus) + + if err != nil { + return err + } + + *o = BriefJobStatus(varBriefJobStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefJobStatus struct { + value *BriefJobStatus + isSet bool +} + +func (v NullableBriefJobStatus) Get() *BriefJobStatus { + return v.value +} + +func (v *NullableBriefJobStatus) Set(val *BriefJobStatus) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatus(val *BriefJobStatus) *NullableBriefJobStatus { + return &NullableBriefJobStatus{value: val, isSet: true} +} + +func (v NullableBriefJobStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_job_status_label.go b/model_brief_job_status_label.go new file mode 100644 index 000000000..96f405432 --- /dev/null +++ b/model_brief_job_status_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefJobStatusLabel the model 'BriefJobStatusLabel' +type BriefJobStatusLabel string + +// List of BriefJob_status_label +const ( + BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending" + BRIEFJOBSTATUSLABEL_SCHEDULED BriefJobStatusLabel = "Scheduled" + BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running" + BRIEFJOBSTATUSLABEL_COMPLETED BriefJobStatusLabel = "Completed" + BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored" + BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed" +) + +// All allowed values of BriefJobStatusLabel enum +var AllowedBriefJobStatusLabelEnumValues = []BriefJobStatusLabel{ + "Pending", + "Scheduled", + "Running", + "Completed", + "Errored", + "Failed", +} + +func (v *BriefJobStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefJobStatusLabel(value) + for _, existing := range AllowedBriefJobStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefJobStatusLabel", value) +} + +// NewBriefJobStatusLabelFromValue returns a pointer to a valid BriefJobStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefJobStatusLabelFromValue(v string) (*BriefJobStatusLabel, error) { + ev := BriefJobStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefJobStatusLabel: valid values are %v", v, AllowedBriefJobStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefJobStatusLabel) IsValid() bool { + for _, existing := range AllowedBriefJobStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefJob_status_label value +func (v BriefJobStatusLabel) Ptr() *BriefJobStatusLabel { + return &v +} + +type NullableBriefJobStatusLabel struct { + value *BriefJobStatusLabel + isSet bool +} + +func (v NullableBriefJobStatusLabel) Get() *BriefJobStatusLabel { + return v.value +} + +func (v *NullableBriefJobStatusLabel) Set(val *BriefJobStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatusLabel(val *BriefJobStatusLabel) *NullableBriefJobStatusLabel { + return &NullableBriefJobStatusLabel{value: val, isSet: true} +} + +func (v NullableBriefJobStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_job_status_value.go b/model_brief_job_status_value.go new file mode 100644 index 000000000..8a61ae0d0 --- /dev/null +++ b/model_brief_job_status_value.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefJobStatusValue * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +type BriefJobStatusValue string + +// List of BriefJob_status_value +const ( + BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending" + BRIEFJOBSTATUSVALUE_SCHEDULED BriefJobStatusValue = "scheduled" + BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running" + BRIEFJOBSTATUSVALUE_COMPLETED BriefJobStatusValue = "completed" + BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored" + BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed" +) + +// All allowed values of BriefJobStatusValue enum +var AllowedBriefJobStatusValueEnumValues = []BriefJobStatusValue{ + "pending", + "scheduled", + "running", + "completed", + "errored", + "failed", +} + +func (v *BriefJobStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefJobStatusValue(value) + for _, existing := range AllowedBriefJobStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefJobStatusValue", value) +} + +// NewBriefJobStatusValueFromValue returns a pointer to a valid BriefJobStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefJobStatusValueFromValue(v string) (*BriefJobStatusValue, error) { + ev := BriefJobStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefJobStatusValue: valid values are %v", v, AllowedBriefJobStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefJobStatusValue) IsValid() bool { + for _, existing := range AllowedBriefJobStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefJob_status_value value +func (v BriefJobStatusValue) Ptr() *BriefJobStatusValue { + return &v +} + +type NullableBriefJobStatusValue struct { + value *BriefJobStatusValue + isSet bool +} + +func (v NullableBriefJobStatusValue) Get() *BriefJobStatusValue { + return v.value +} + +func (v *NullableBriefJobStatusValue) Set(val *BriefJobStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefJobStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefJobStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefJobStatusValue(val *BriefJobStatusValue) *NullableBriefJobStatusValue { + return &NullableBriefJobStatusValue{value: val, isSet: true} +} + +func (v NullableBriefJobStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefJobStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_l2_vpn.go b/model_brief_l2_vpn.go new file mode 100644 index 000000000..54c07e0aa --- /dev/null +++ b/model_brief_l2_vpn.go @@ -0,0 +1,405 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPN type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPN{} + +// BriefL2VPN Adds support for custom fields and tags. +type BriefL2VPN struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPN BriefL2VPN + +// NewBriefL2VPN instantiates a new BriefL2VPN object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPN(id int32, url string, display string, name string, slug string) *BriefL2VPN { + this := BriefL2VPN{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefL2VPNWithDefaults instantiates a new BriefL2VPN object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNWithDefaults() *BriefL2VPN { + this := BriefL2VPN{} + return &this +} + +// GetId returns the Id field value +func (o *BriefL2VPN) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefL2VPN) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefL2VPN) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefL2VPN) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefL2VPN) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefL2VPN) SetDisplay(v string) { + o.Display = v +} + +// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefL2VPN) GetIdentifier() int64 { + if o == nil || IsNil(o.Identifier.Get()) { + var ret int64 + return ret + } + return *o.Identifier.Get() +} + +// GetIdentifierOk returns a tuple with the Identifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefL2VPN) GetIdentifierOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Identifier.Get(), o.Identifier.IsSet() +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *BriefL2VPN) HasIdentifier() bool { + if o != nil && o.Identifier.IsSet() { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given NullableInt64 and assigns it to the Identifier field. +func (o *BriefL2VPN) SetIdentifier(v int64) { + o.Identifier.Set(&v) +} +// SetIdentifierNil sets the value for Identifier to be an explicit nil +func (o *BriefL2VPN) SetIdentifierNil() { + o.Identifier.Set(nil) +} + +// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +func (o *BriefL2VPN) UnsetIdentifier() { + o.Identifier.Unset() +} + +// GetName returns the Name field value +func (o *BriefL2VPN) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefL2VPN) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefL2VPN) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefL2VPN) SetSlug(v string) { + o.Slug = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BriefL2VPN) GetType() BriefL2VPNType { + if o == nil || IsNil(o.Type) { + var ret BriefL2VPNType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetTypeOk() (*BriefL2VPNType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BriefL2VPN) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *BriefL2VPN) SetType(v BriefL2VPNType) { + o.Type = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefL2VPN) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPN) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefL2VPN) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefL2VPN) SetDescription(v string) { + o.Description = &v +} + +func (o BriefL2VPN) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if o.Identifier.IsSet() { + toSerialize["identifier"] = o.Identifier.Get() + } + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPN := _BriefL2VPN{} + + err = json.Unmarshal(data, &varBriefL2VPN) + + if err != nil { + return err + } + + *o = BriefL2VPN(varBriefL2VPN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "identifier") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "type") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPN struct { + value *BriefL2VPN + isSet bool +} + +func (v NullableBriefL2VPN) Get() *BriefL2VPN { + return v.value +} + +func (v *NullableBriefL2VPN) Set(val *BriefL2VPN) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPN) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPN(val *BriefL2VPN) *NullableBriefL2VPN { + return &NullableBriefL2VPN{value: val, isSet: true} +} + +func (v NullableBriefL2VPN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPN) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_request.go b/model_brief_l2_vpn_request.go new file mode 100644 index 000000000..f35d73907 --- /dev/null +++ b/model_brief_l2_vpn_request.go @@ -0,0 +1,318 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNRequest{} + +// BriefL2VPNRequest Adds support for custom fields and tags. +type BriefL2VPNRequest struct { + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNRequest BriefL2VPNRequest + +// NewBriefL2VPNRequest instantiates a new BriefL2VPNRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNRequest(name string, slug string) *BriefL2VPNRequest { + this := BriefL2VPNRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefL2VPNRequestWithDefaults instantiates a new BriefL2VPNRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNRequestWithDefaults() *BriefL2VPNRequest { + this := BriefL2VPNRequest{} + return &this +} + +// GetIdentifier returns the Identifier field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefL2VPNRequest) GetIdentifier() int64 { + if o == nil || IsNil(o.Identifier.Get()) { + var ret int64 + return ret + } + return *o.Identifier.Get() +} + +// GetIdentifierOk returns a tuple with the Identifier field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefL2VPNRequest) GetIdentifierOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.Identifier.Get(), o.Identifier.IsSet() +} + +// HasIdentifier returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasIdentifier() bool { + if o != nil && o.Identifier.IsSet() { + return true + } + + return false +} + +// SetIdentifier gets a reference to the given NullableInt64 and assigns it to the Identifier field. +func (o *BriefL2VPNRequest) SetIdentifier(v int64) { + o.Identifier.Set(&v) +} +// SetIdentifierNil sets the value for Identifier to be an explicit nil +func (o *BriefL2VPNRequest) SetIdentifierNil() { + o.Identifier.Set(nil) +} + +// UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil +func (o *BriefL2VPNRequest) UnsetIdentifier() { + o.Identifier.Unset() +} + +// GetName returns the Name field value +func (o *BriefL2VPNRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefL2VPNRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefL2VPNRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefL2VPNRequest) SetSlug(v string) { + o.Slug = v +} + +// GetType returns the Type field value if set, zero value otherwise. +func (o *BriefL2VPNRequest) GetType() BriefL2VPNTypeValue { + if o == nil || IsNil(o.Type) { + var ret BriefL2VPNTypeValue + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *BriefL2VPNRequest) SetType(v BriefL2VPNTypeValue) { + o.Type = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefL2VPNRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefL2VPNRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefL2VPNRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefL2VPNRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Identifier.IsSet() { + toSerialize["identifier"] = o.Identifier.Get() + } + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPNRequest := _BriefL2VPNRequest{} + + err = json.Unmarshal(data, &varBriefL2VPNRequest) + + if err != nil { + return err + } + + *o = BriefL2VPNRequest(varBriefL2VPNRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "identifier") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "type") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNRequest struct { + value *BriefL2VPNRequest + isSet bool +} + +func (v NullableBriefL2VPNRequest) Get() *BriefL2VPNRequest { + return v.value +} + +func (v *NullableBriefL2VPNRequest) Set(val *BriefL2VPNRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNRequest(val *BriefL2VPNRequest) *NullableBriefL2VPNRequest { + return &NullableBriefL2VPNRequest{value: val, isSet: true} +} + +func (v NullableBriefL2VPNRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_termination.go b/model_brief_l2_vpn_termination.go new file mode 100644 index 000000000..56b3590ca --- /dev/null +++ b/model_brief_l2_vpn_termination.go @@ -0,0 +1,255 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNTermination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNTermination{} + +// BriefL2VPNTermination Adds support for custom fields and tags. +type BriefL2VPNTermination struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNTermination BriefL2VPNTermination + +// NewBriefL2VPNTermination instantiates a new BriefL2VPNTermination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN) *BriefL2VPNTermination { + this := BriefL2VPNTermination{} + this.Id = id + this.Url = url + this.Display = display + this.L2vpn = l2vpn + return &this +} + +// NewBriefL2VPNTerminationWithDefaults instantiates a new BriefL2VPNTermination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNTerminationWithDefaults() *BriefL2VPNTermination { + this := BriefL2VPNTermination{} + return &this +} + +// GetId returns the Id field value +func (o *BriefL2VPNTermination) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefL2VPNTermination) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefL2VPNTermination) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefL2VPNTermination) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefL2VPNTermination) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefL2VPNTermination) SetDisplay(v string) { + o.Display = v +} + +// GetL2vpn returns the L2vpn field value +func (o *BriefL2VPNTermination) GetL2vpn() BriefL2VPN { + if o == nil { + var ret BriefL2VPN + return ret + } + + return o.L2vpn +} + +// GetL2vpnOk returns a tuple with the L2vpn field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { + if o == nil { + return nil, false + } + return &o.L2vpn, true +} + +// SetL2vpn sets field value +func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN) { + o.L2vpn = v +} + +func (o BriefL2VPNTermination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["l2vpn"] = o.L2vpn + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "l2vpn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPNTermination := _BriefL2VPNTermination{} + + err = json.Unmarshal(data, &varBriefL2VPNTermination) + + if err != nil { + return err + } + + *o = BriefL2VPNTermination(varBriefL2VPNTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "l2vpn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNTermination struct { + value *BriefL2VPNTermination + isSet bool +} + +func (v NullableBriefL2VPNTermination) Get() *BriefL2VPNTermination { + return v.value +} + +func (v *NullableBriefL2VPNTermination) Set(val *BriefL2VPNTermination) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTermination(val *BriefL2VPNTermination) *NullableBriefL2VPNTermination { + return &NullableBriefL2VPNTermination{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTermination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_termination_request.go b/model_brief_l2_vpn_termination_request.go new file mode 100644 index 000000000..f151be3fd --- /dev/null +++ b/model_brief_l2_vpn_termination_request.go @@ -0,0 +1,168 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefL2VPNTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNTerminationRequest{} + +// BriefL2VPNTerminationRequest Adds support for custom fields and tags. +type BriefL2VPNTerminationRequest struct { + L2vpn BriefL2VPNRequest `json:"l2vpn"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNTerminationRequest BriefL2VPNTerminationRequest + +// NewBriefL2VPNTerminationRequest instantiates a new BriefL2VPNTerminationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNTerminationRequest(l2vpn BriefL2VPNRequest) *BriefL2VPNTerminationRequest { + this := BriefL2VPNTerminationRequest{} + this.L2vpn = l2vpn + return &this +} + +// NewBriefL2VPNTerminationRequestWithDefaults instantiates a new BriefL2VPNTerminationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNTerminationRequestWithDefaults() *BriefL2VPNTerminationRequest { + this := BriefL2VPNTerminationRequest{} + return &this +} + +// GetL2vpn returns the L2vpn field value +func (o *BriefL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { + if o == nil { + var ret BriefL2VPNRequest + return ret + } + + return o.L2vpn +} + +// GetL2vpnOk returns a tuple with the L2vpn field value +// and a boolean to check if the value has been set. +func (o *BriefL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { + if o == nil { + return nil, false + } + return &o.L2vpn, true +} + +// SetL2vpn sets field value +func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { + o.L2vpn = v +} + +func (o BriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["l2vpn"] = o.L2vpn + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "l2vpn", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefL2VPNTerminationRequest := _BriefL2VPNTerminationRequest{} + + err = json.Unmarshal(data, &varBriefL2VPNTerminationRequest) + + if err != nil { + return err + } + + *o = BriefL2VPNTerminationRequest(varBriefL2VPNTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "l2vpn") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNTerminationRequest struct { + value *BriefL2VPNTerminationRequest + isSet bool +} + +func (v NullableBriefL2VPNTerminationRequest) Get() *BriefL2VPNTerminationRequest { + return v.value +} + +func (v *NullableBriefL2VPNTerminationRequest) Set(val *BriefL2VPNTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTerminationRequest(val *BriefL2VPNTerminationRequest) *NullableBriefL2VPNTerminationRequest { + return &NullableBriefL2VPNTerminationRequest{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_type.go b/model_brief_l2_vpn_type.go new file mode 100644 index 000000000..be9d92c61 --- /dev/null +++ b/model_brief_l2_vpn_type.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the BriefL2VPNType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefL2VPNType{} + +// BriefL2VPNType struct for BriefL2VPNType +type BriefL2VPNType struct { + Value *BriefL2VPNTypeValue `json:"value,omitempty"` + Label *BriefL2VPNTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefL2VPNType BriefL2VPNType + +// NewBriefL2VPNType instantiates a new BriefL2VPNType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefL2VPNType() *BriefL2VPNType { + this := BriefL2VPNType{} + return &this +} + +// NewBriefL2VPNTypeWithDefaults instantiates a new BriefL2VPNType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefL2VPNTypeWithDefaults() *BriefL2VPNType { + this := BriefL2VPNType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *BriefL2VPNType) GetValue() BriefL2VPNTypeValue { + if o == nil || IsNil(o.Value) { + var ret BriefL2VPNTypeValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNType) GetValueOk() (*BriefL2VPNTypeValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *BriefL2VPNType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given BriefL2VPNTypeValue and assigns it to the Value field. +func (o *BriefL2VPNType) SetValue(v BriefL2VPNTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *BriefL2VPNType) GetLabel() BriefL2VPNTypeLabel { + if o == nil || IsNil(o.Label) { + var ret BriefL2VPNTypeLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefL2VPNType) GetLabelOk() (*BriefL2VPNTypeLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *BriefL2VPNType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given BriefL2VPNTypeLabel and assigns it to the Label field. +func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel) { + o.Label = &v +} + +func (o BriefL2VPNType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefL2VPNType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefL2VPNType) UnmarshalJSON(data []byte) (err error) { + varBriefL2VPNType := _BriefL2VPNType{} + + err = json.Unmarshal(data, &varBriefL2VPNType) + + if err != nil { + return err + } + + *o = BriefL2VPNType(varBriefL2VPNType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefL2VPNType struct { + value *BriefL2VPNType + isSet bool +} + +func (v NullableBriefL2VPNType) Get() *BriefL2VPNType { + return v.value +} + +func (v *NullableBriefL2VPNType) Set(val *BriefL2VPNType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNType(val *BriefL2VPNType) *NullableBriefL2VPNType { + return &NullableBriefL2VPNType{value: val, isSet: true} +} + +func (v NullableBriefL2VPNType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_l2_vpn_type_label.go b/model_brief_l2_vpn_type_label.go new file mode 100644 index 000000000..5e43e09a9 --- /dev/null +++ b/model_brief_l2_vpn_type_label.go @@ -0,0 +1,131 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefL2VPNTypeLabel the model 'BriefL2VPNTypeLabel' +type BriefL2VPNTypeLabel string + +// List of BriefL2VPN_type_label +const ( + BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS" + BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS" + BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN" + BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN" + BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN" + BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN" + BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL" + BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Virtual Private Tree" +) + +// All allowed values of BriefL2VPNTypeLabel enum +var AllowedBriefL2VPNTypeLabelEnumValues = []BriefL2VPNTypeLabel{ + "VPWS", + "VPLS", + "VXLAN", + "VXLAN-EVPN", + "MPLS EVPN", + "PBB EVPN", + "EPL", + "EVPL", + "Ethernet Private LAN", + "Ethernet Virtual Private LAN", + "Ethernet Private Tree", + "Ethernet Virtual Private Tree", +} + +func (v *BriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefL2VPNTypeLabel(value) + for _, existing := range AllowedBriefL2VPNTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefL2VPNTypeLabel", value) +} + +// NewBriefL2VPNTypeLabelFromValue returns a pointer to a valid BriefL2VPNTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefL2VPNTypeLabelFromValue(v string) (*BriefL2VPNTypeLabel, error) { + ev := BriefL2VPNTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefL2VPNTypeLabel: valid values are %v", v, AllowedBriefL2VPNTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefL2VPNTypeLabel) IsValid() bool { + for _, existing := range AllowedBriefL2VPNTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefL2VPN_type_label value +func (v BriefL2VPNTypeLabel) Ptr() *BriefL2VPNTypeLabel { + return &v +} + +type NullableBriefL2VPNTypeLabel struct { + value *BriefL2VPNTypeLabel + isSet bool +} + +func (v NullableBriefL2VPNTypeLabel) Get() *BriefL2VPNTypeLabel { + return v.value +} + +func (v *NullableBriefL2VPNTypeLabel) Set(val *BriefL2VPNTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTypeLabel(val *BriefL2VPNTypeLabel) *NullableBriefL2VPNTypeLabel { + return &NullableBriefL2VPNTypeLabel{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_l2_vpn_type_value.go b/model_brief_l2_vpn_type_value.go new file mode 100644 index 000000000..e5840967e --- /dev/null +++ b/model_brief_l2_vpn_type_value.go @@ -0,0 +1,131 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// BriefL2VPNTypeValue * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +type BriefL2VPNTypeValue string + +// List of BriefL2VPN_type_value +const ( + BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws" + BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls" + BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan" + BRIEFL2VPNTYPEVALUE_VXLAN_EVPN BriefL2VPNTypeValue = "vxlan-evpn" + BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn" + BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn" + BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl" + BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl" + BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan" + BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan" + BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree" + BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree" +) + +// All allowed values of BriefL2VPNTypeValue enum +var AllowedBriefL2VPNTypeValueEnumValues = []BriefL2VPNTypeValue{ + "vpws", + "vpls", + "vxlan", + "vxlan-evpn", + "mpls-evpn", + "pbb-evpn", + "epl", + "evpl", + "ep-lan", + "evp-lan", + "ep-tree", + "evp-tree", +} + +func (v *BriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := BriefL2VPNTypeValue(value) + for _, existing := range AllowedBriefL2VPNTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid BriefL2VPNTypeValue", value) +} + +// NewBriefL2VPNTypeValueFromValue returns a pointer to a valid BriefL2VPNTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewBriefL2VPNTypeValueFromValue(v string) (*BriefL2VPNTypeValue, error) { + ev := BriefL2VPNTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for BriefL2VPNTypeValue: valid values are %v", v, AllowedBriefL2VPNTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v BriefL2VPNTypeValue) IsValid() bool { + for _, existing := range AllowedBriefL2VPNTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to BriefL2VPN_type_value value +func (v BriefL2VPNTypeValue) Ptr() *BriefL2VPNTypeValue { + return &v +} + +type NullableBriefL2VPNTypeValue struct { + value *BriefL2VPNTypeValue + isSet bool +} + +func (v NullableBriefL2VPNTypeValue) Get() *BriefL2VPNTypeValue { + return v.value +} + +func (v *NullableBriefL2VPNTypeValue) Set(val *BriefL2VPNTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableBriefL2VPNTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefL2VPNTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefL2VPNTypeValue(val *BriefL2VPNTypeValue) *NullableBriefL2VPNTypeValue { + return &NullableBriefL2VPNTypeValue{value: val, isSet: true} +} + +func (v NullableBriefL2VPNTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_brief_location.go b/model_brief_location.go new file mode 100644 index 000000000..c8e48ea5e --- /dev/null +++ b/model_brief_location.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefLocation{} + +// BriefLocation Extends PrimaryModelSerializer to include MPTT support. +type BriefLocation struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int32 `json:"rack_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefLocation BriefLocation + +// NewBriefLocation instantiates a new BriefLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32) *BriefLocation { + this := BriefLocation{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.RackCount = rackCount + this.Depth = depth + return &this +} + +// NewBriefLocationWithDefaults instantiates a new BriefLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefLocationWithDefaults() *BriefLocation { + this := BriefLocation{} + return &this +} + +// GetId returns the Id field value +func (o *BriefLocation) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefLocation) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefLocation) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefLocation) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefLocation) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefLocation) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefLocation) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefLocation) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefLocation) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefLocation) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefLocation) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefLocation) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefLocation) SetDescription(v string) { + o.Description = &v +} + +// GetRackCount returns the RackCount field value +func (o *BriefLocation) GetRackCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetRackCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *BriefLocation) SetRackCount(v int32) { + o.RackCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefLocation) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefLocation) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefLocation) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["rack_count"] = o.RackCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "rack_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefLocation := _BriefLocation{} + + err = json.Unmarshal(data, &varBriefLocation) + + if err != nil { + return err + } + + *o = BriefLocation(varBriefLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefLocation struct { + value *BriefLocation + isSet bool +} + +func (v NullableBriefLocation) Get() *BriefLocation { + return v.value +} + +func (v *NullableBriefLocation) Set(val *BriefLocation) { + v.value = val + v.isSet = true +} + +func (v NullableBriefLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefLocation(val *BriefLocation) *NullableBriefLocation { + return &NullableBriefLocation{value: val, isSet: true} +} + +func (v NullableBriefLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_location_request.go b/model_brief_location_request.go new file mode 100644 index 000000000..3aca82583 --- /dev/null +++ b/model_brief_location_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefLocationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefLocationRequest{} + +// BriefLocationRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefLocationRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefLocationRequest BriefLocationRequest + +// NewBriefLocationRequest instantiates a new BriefLocationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefLocationRequest(name string, slug string) *BriefLocationRequest { + this := BriefLocationRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefLocationRequestWithDefaults instantiates a new BriefLocationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefLocationRequestWithDefaults() *BriefLocationRequest { + this := BriefLocationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefLocationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefLocationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefLocationRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefLocationRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefLocationRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefLocationRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefLocationRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefLocationRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefLocationRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefLocationRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefLocationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefLocationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefLocationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefLocationRequest := _BriefLocationRequest{} + + err = json.Unmarshal(data, &varBriefLocationRequest) + + if err != nil { + return err + } + + *o = BriefLocationRequest(varBriefLocationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefLocationRequest struct { + value *BriefLocationRequest + isSet bool +} + +func (v NullableBriefLocationRequest) Get() *BriefLocationRequest { + return v.value +} + +func (v *NullableBriefLocationRequest) Set(val *BriefLocationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefLocationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefLocationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefLocationRequest(val *BriefLocationRequest) *NullableBriefLocationRequest { + return &NullableBriefLocationRequest{value: val, isSet: true} +} + +func (v NullableBriefLocationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefLocationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_manufacturer.go b/model_brief_manufacturer.go new file mode 100644 index 000000000..d45eb5e0a --- /dev/null +++ b/model_brief_manufacturer.go @@ -0,0 +1,358 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefManufacturer type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefManufacturer{} + +// BriefManufacturer Adds support for custom fields and tags. +type BriefManufacturer struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefManufacturer BriefManufacturer + +// NewBriefManufacturer instantiates a new BriefManufacturer object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefManufacturer(id int32, url string, display string, name string, slug string) *BriefManufacturer { + this := BriefManufacturer{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefManufacturerWithDefaults instantiates a new BriefManufacturer object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefManufacturerWithDefaults() *BriefManufacturer { + this := BriefManufacturer{} + return &this +} + +// GetId returns the Id field value +func (o *BriefManufacturer) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefManufacturer) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefManufacturer) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefManufacturer) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefManufacturer) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefManufacturer) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefManufacturer) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefManufacturer) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefManufacturer) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefManufacturer) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefManufacturer) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefManufacturer) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefManufacturer) SetDescription(v string) { + o.Description = &v +} + +// GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. +func (o *BriefManufacturer) GetDevicetypeCount() int64 { + if o == nil || IsNil(o.DevicetypeCount) { + var ret int64 + return ret + } + return *o.DevicetypeCount +} + +// GetDevicetypeCountOk returns a tuple with the DevicetypeCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefManufacturer) GetDevicetypeCountOk() (*int64, bool) { + if o == nil || IsNil(o.DevicetypeCount) { + return nil, false + } + return o.DevicetypeCount, true +} + +// HasDevicetypeCount returns a boolean if a field has been set. +func (o *BriefManufacturer) HasDevicetypeCount() bool { + if o != nil && !IsNil(o.DevicetypeCount) { + return true + } + + return false +} + +// SetDevicetypeCount gets a reference to the given int64 and assigns it to the DevicetypeCount field. +func (o *BriefManufacturer) SetDevicetypeCount(v int64) { + o.DevicetypeCount = &v +} + +func (o BriefManufacturer) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefManufacturer) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DevicetypeCount) { + toSerialize["devicetype_count"] = o.DevicetypeCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefManufacturer) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefManufacturer := _BriefManufacturer{} + + err = json.Unmarshal(data, &varBriefManufacturer) + + if err != nil { + return err + } + + *o = BriefManufacturer(varBriefManufacturer) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "devicetype_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefManufacturer struct { + value *BriefManufacturer + isSet bool +} + +func (v NullableBriefManufacturer) Get() *BriefManufacturer { + return v.value +} + +func (v *NullableBriefManufacturer) Set(val *BriefManufacturer) { + v.value = val + v.isSet = true +} + +func (v NullableBriefManufacturer) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefManufacturer) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefManufacturer(val *BriefManufacturer) *NullableBriefManufacturer { + return &NullableBriefManufacturer{value: val, isSet: true} +} + +func (v NullableBriefManufacturer) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefManufacturer) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_manufacturer_request.go b/model_brief_manufacturer_request.go new file mode 100644 index 000000000..b7e7ee0da --- /dev/null +++ b/model_brief_manufacturer_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefManufacturerRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefManufacturerRequest{} + +// BriefManufacturerRequest Adds support for custom fields and tags. +type BriefManufacturerRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefManufacturerRequest BriefManufacturerRequest + +// NewBriefManufacturerRequest instantiates a new BriefManufacturerRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefManufacturerRequest(name string, slug string) *BriefManufacturerRequest { + this := BriefManufacturerRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefManufacturerRequestWithDefaults instantiates a new BriefManufacturerRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefManufacturerRequestWithDefaults() *BriefManufacturerRequest { + this := BriefManufacturerRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefManufacturerRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturerRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefManufacturerRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefManufacturerRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefManufacturerRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefManufacturerRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefManufacturerRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefManufacturerRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefManufacturerRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefManufacturerRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefManufacturerRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefManufacturerRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefManufacturerRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefManufacturerRequest := _BriefManufacturerRequest{} + + err = json.Unmarshal(data, &varBriefManufacturerRequest) + + if err != nil { + return err + } + + *o = BriefManufacturerRequest(varBriefManufacturerRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefManufacturerRequest struct { + value *BriefManufacturerRequest + isSet bool +} + +func (v NullableBriefManufacturerRequest) Get() *BriefManufacturerRequest { + return v.value +} + +func (v *NullableBriefManufacturerRequest) Set(val *BriefManufacturerRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefManufacturerRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefManufacturerRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefManufacturerRequest(val *BriefManufacturerRequest) *NullableBriefManufacturerRequest { + return &NullableBriefManufacturerRequest{value: val, isSet: true} +} + +func (v NullableBriefManufacturerRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefManufacturerRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module.go b/model_brief_module.go new file mode 100644 index 000000000..b193529cc --- /dev/null +++ b/model_brief_module.go @@ -0,0 +1,284 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModule type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModule{} + +// BriefModule Adds support for custom fields and tags. +type BriefModule struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + AdditionalProperties map[string]interface{} +} + +type _BriefModule BriefModule + +// NewBriefModule instantiates a new BriefModule object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay) *BriefModule { + this := BriefModule{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.ModuleBay = moduleBay + return &this +} + +// NewBriefModuleWithDefaults instantiates a new BriefModule object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleWithDefaults() *BriefModule { + this := BriefModule{} + return &this +} + +// GetId returns the Id field value +func (o *BriefModule) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefModule) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefModule) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefModule) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefModule) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefModule) SetDisplay(v string) { + o.Display = v +} + +// GetDevice returns the Device field value +func (o *BriefModule) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefModule) SetDevice(v BriefDevice) { + o.Device = v +} + +// GetModuleBay returns the ModuleBay field value +func (o *BriefModule) GetModuleBay() NestedModuleBay { + if o == nil { + var ret NestedModuleBay + return ret + } + + return o.ModuleBay +} + +// GetModuleBayOk returns a tuple with the ModuleBay field value +// and a boolean to check if the value has been set. +func (o *BriefModule) GetModuleBayOk() (*NestedModuleBay, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBay, true +} + +// SetModuleBay sets field value +func (o *BriefModule) SetModuleBay(v NestedModuleBay) { + o.ModuleBay = v +} + +func (o BriefModule) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModule) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModule) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "module_bay", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModule := _BriefModule{} + + err = json.Unmarshal(data, &varBriefModule) + + if err != nil { + return err + } + + *o = BriefModule(varBriefModule) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "module_bay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModule struct { + value *BriefModule + isSet bool +} + +func (v NullableBriefModule) Get() *BriefModule { + return v.value +} + +func (v *NullableBriefModule) Set(val *BriefModule) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModule) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModule) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModule(val *BriefModule) *NullableBriefModule { + return &NullableBriefModule{value: val, isSet: true} +} + +func (v NullableBriefModule) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModule) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module_request.go b/model_brief_module_request.go new file mode 100644 index 000000000..c73285810 --- /dev/null +++ b/model_brief_module_request.go @@ -0,0 +1,197 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleRequest{} + +// BriefModuleRequest Adds support for custom fields and tags. +type BriefModuleRequest struct { + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleRequest BriefModuleRequest + +// NewBriefModuleRequest instantiates a new BriefModuleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest) *BriefModuleRequest { + this := BriefModuleRequest{} + this.Device = device + this.ModuleBay = moduleBay + return &this +} + +// NewBriefModuleRequestWithDefaults instantiates a new BriefModuleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleRequestWithDefaults() *BriefModuleRequest { + this := BriefModuleRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefModuleRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefModuleRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + +// GetModuleBay returns the ModuleBay field value +func (o *BriefModuleRequest) GetModuleBay() NestedModuleBayRequest { + if o == nil { + var ret NestedModuleBayRequest + return ret + } + + return o.ModuleBay +} + +// GetModuleBayOk returns a tuple with the ModuleBay field value +// and a boolean to check if the value has been set. +func (o *BriefModuleRequest) GetModuleBayOk() (*NestedModuleBayRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBay, true +} + +// SetModuleBay sets field value +func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest) { + o.ModuleBay = v +} + +func (o BriefModuleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["module_bay"] = o.ModuleBay + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "module_bay", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModuleRequest := _BriefModuleRequest{} + + err = json.Unmarshal(data, &varBriefModuleRequest) + + if err != nil { + return err + } + + *o = BriefModuleRequest(varBriefModuleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "module_bay") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleRequest struct { + value *BriefModuleRequest + isSet bool +} + +func (v NullableBriefModuleRequest) Get() *BriefModuleRequest { + return v.value +} + +func (v *NullableBriefModuleRequest) Set(val *BriefModuleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleRequest(val *BriefModuleRequest) *NullableBriefModuleRequest { + return &NullableBriefModuleRequest{value: val, isSet: true} +} + +func (v NullableBriefModuleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module_type.go b/model_brief_module_type.go new file mode 100644 index 000000000..1aeffa122 --- /dev/null +++ b/model_brief_module_type.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleType{} + +// BriefModuleType Adds support for custom fields and tags. +type BriefModuleType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleType BriefModuleType + +// NewBriefModuleType instantiates a new BriefModuleType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string) *BriefModuleType { + this := BriefModuleType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + return &this +} + +// NewBriefModuleTypeWithDefaults instantiates a new BriefModuleType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleTypeWithDefaults() *BriefModuleType { + this := BriefModuleType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefModuleType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefModuleType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefModuleType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefModuleType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefModuleType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefModuleType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefModuleType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefModuleType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefModuleType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefModuleType) SetModel(v string) { + o.Model = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefModuleType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefModuleType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefModuleType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefModuleType) SetDescription(v string) { + o.Description = &v +} + +func (o BriefModuleType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModuleType := _BriefModuleType{} + + err = json.Unmarshal(data, &varBriefModuleType) + + if err != nil { + return err + } + + *o = BriefModuleType(varBriefModuleType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleType struct { + value *BriefModuleType + isSet bool +} + +func (v NullableBriefModuleType) Get() *BriefModuleType { + return v.value +} + +func (v *NullableBriefModuleType) Set(val *BriefModuleType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleType(val *BriefModuleType) *NullableBriefModuleType { + return &NullableBriefModuleType{value: val, isSet: true} +} + +func (v NullableBriefModuleType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_module_type_request.go b/model_brief_module_type_request.go new file mode 100644 index 000000000..26dd0c991 --- /dev/null +++ b/model_brief_module_type_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefModuleTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefModuleTypeRequest{} + +// BriefModuleTypeRequest Adds support for custom fields and tags. +type BriefModuleTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefModuleTypeRequest BriefModuleTypeRequest + +// NewBriefModuleTypeRequest instantiates a new BriefModuleTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *BriefModuleTypeRequest { + this := BriefModuleTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + return &this +} + +// NewBriefModuleTypeRequestWithDefaults instantiates a new BriefModuleTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefModuleTypeRequestWithDefaults() *BriefModuleTypeRequest { + this := BriefModuleTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefModuleTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefModuleTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefModuleTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefModuleTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefModuleTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefModuleTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefModuleTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefModuleTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefModuleTypeRequest := _BriefModuleTypeRequest{} + + err = json.Unmarshal(data, &varBriefModuleTypeRequest) + + if err != nil { + return err + } + + *o = BriefModuleTypeRequest(varBriefModuleTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefModuleTypeRequest struct { + value *BriefModuleTypeRequest + isSet bool +} + +func (v NullableBriefModuleTypeRequest) Get() *BriefModuleTypeRequest { + return v.value +} + +func (v *NullableBriefModuleTypeRequest) Set(val *BriefModuleTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefModuleTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefModuleTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefModuleTypeRequest(val *BriefModuleTypeRequest) *NullableBriefModuleTypeRequest { + return &NullableBriefModuleTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefModuleTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefModuleTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_platform.go b/model_brief_platform.go new file mode 100644 index 000000000..bb15c407a --- /dev/null +++ b/model_brief_platform.go @@ -0,0 +1,395 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPlatform type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPlatform{} + +// BriefPlatform Adds support for custom fields and tags. +type BriefPlatform struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPlatform BriefPlatform + +// NewBriefPlatform instantiates a new BriefPlatform object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPlatform(id int32, url string, display string, name string, slug string) *BriefPlatform { + this := BriefPlatform{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefPlatformWithDefaults instantiates a new BriefPlatform object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPlatformWithDefaults() *BriefPlatform { + this := BriefPlatform{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPlatform) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPlatform) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPlatform) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPlatform) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPlatform) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPlatform) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefPlatform) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPlatform) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefPlatform) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefPlatform) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPlatform) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPlatform) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPlatform) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefPlatform) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefPlatform) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefPlatform) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *BriefPlatform) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatform) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *BriefPlatform) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *BriefPlatform) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +func (o BriefPlatform) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPlatform) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPlatform) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPlatform := _BriefPlatform{} + + err = json.Unmarshal(data, &varBriefPlatform) + + if err != nil { + return err + } + + *o = BriefPlatform(varBriefPlatform) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + delete(additionalProperties, "virtualmachine_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPlatform struct { + value *BriefPlatform + isSet bool +} + +func (v NullableBriefPlatform) Get() *BriefPlatform { + return v.value +} + +func (v *NullableBriefPlatform) Set(val *BriefPlatform) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPlatform) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPlatform) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPlatform(val *BriefPlatform) *NullableBriefPlatform { + return &NullableBriefPlatform{value: val, isSet: true} +} + +func (v NullableBriefPlatform) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPlatform) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_platform_request.go b/model_brief_platform_request.go new file mode 100644 index 000000000..c927d2253 --- /dev/null +++ b/model_brief_platform_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPlatformRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPlatformRequest{} + +// BriefPlatformRequest Adds support for custom fields and tags. +type BriefPlatformRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPlatformRequest BriefPlatformRequest + +// NewBriefPlatformRequest instantiates a new BriefPlatformRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPlatformRequest(name string, slug string) *BriefPlatformRequest { + this := BriefPlatformRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefPlatformRequestWithDefaults instantiates a new BriefPlatformRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPlatformRequestWithDefaults() *BriefPlatformRequest { + this := BriefPlatformRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPlatformRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPlatformRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPlatformRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefPlatformRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefPlatformRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefPlatformRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPlatformRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPlatformRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPlatformRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPlatformRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPlatformRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPlatformRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPlatformRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPlatformRequest := _BriefPlatformRequest{} + + err = json.Unmarshal(data, &varBriefPlatformRequest) + + if err != nil { + return err + } + + *o = BriefPlatformRequest(varBriefPlatformRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPlatformRequest struct { + value *BriefPlatformRequest + isSet bool +} + +func (v NullableBriefPlatformRequest) Get() *BriefPlatformRequest { + return v.value +} + +func (v *NullableBriefPlatformRequest) Set(val *BriefPlatformRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPlatformRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPlatformRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPlatformRequest(val *BriefPlatformRequest) *NullableBriefPlatformRequest { + return &NullableBriefPlatformRequest{value: val, isSet: true} +} + +func (v NullableBriefPlatformRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPlatformRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go new file mode 100644 index 000000000..5428d5ca8 --- /dev/null +++ b/model_brief_power_panel.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPanel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPanel{} + +// BriefPowerPanel Adds support for custom fields and tags. +type BriefPowerPanel struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPanel BriefPowerPanel + +// NewBriefPowerPanel instantiates a new BriefPowerPanel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *BriefPowerPanel { + this := BriefPowerPanel{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.PowerfeedCount = powerfeedCount + return &this +} + +// NewBriefPowerPanelWithDefaults instantiates a new BriefPowerPanel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPanelWithDefaults() *BriefPowerPanel { + this := BriefPowerPanel{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPanel) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPanel) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPowerPanel) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPanel) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPowerPanel) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPanel) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefPowerPanel) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPanel) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPanel) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPanel) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPanel) SetDescription(v string) { + o.Description = &v +} + +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *BriefPowerPanel) GetPowerfeedCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PowerfeedCount +} + +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanel) GetPowerfeedCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PowerfeedCount, true +} + +// SetPowerfeedCount sets field value +func (o *BriefPowerPanel) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v +} + +func (o BriefPowerPanel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPanel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["powerfeed_count"] = o.PowerfeedCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPanel) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "powerfeed_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPanel := _BriefPowerPanel{} + + err = json.Unmarshal(data, &varBriefPowerPanel) + + if err != nil { + return err + } + + *o = BriefPowerPanel(varBriefPowerPanel) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "powerfeed_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPanel struct { + value *BriefPowerPanel + isSet bool +} + +func (v NullableBriefPowerPanel) Get() *BriefPowerPanel { + return v.value +} + +func (v *NullableBriefPowerPanel) Set(val *BriefPowerPanel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPanel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPanel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPanel(val *BriefPowerPanel) *NullableBriefPowerPanel { + return &NullableBriefPowerPanel{value: val, isSet: true} +} + +func (v NullableBriefPowerPanel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPanel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_panel_request.go b/model_brief_power_panel_request.go new file mode 100644 index 000000000..263ae9c5c --- /dev/null +++ b/model_brief_power_panel_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPanelRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPanelRequest{} + +// BriefPowerPanelRequest Adds support for custom fields and tags. +type BriefPowerPanelRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPanelRequest BriefPowerPanelRequest + +// NewBriefPowerPanelRequest instantiates a new BriefPowerPanelRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPanelRequest(name string) *BriefPowerPanelRequest { + this := BriefPowerPanelRequest{} + this.Name = name + return &this +} + +// NewBriefPowerPanelRequestWithDefaults instantiates a new BriefPowerPanelRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPanelRequestWithDefaults() *BriefPowerPanelRequest { + this := BriefPowerPanelRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPowerPanelRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPanelRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPanelRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPanelRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPanelRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPanelRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPanelRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPanelRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPanelRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPanelRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPanelRequest := _BriefPowerPanelRequest{} + + err = json.Unmarshal(data, &varBriefPowerPanelRequest) + + if err != nil { + return err + } + + *o = BriefPowerPanelRequest(varBriefPowerPanelRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPanelRequest struct { + value *BriefPowerPanelRequest + isSet bool +} + +func (v NullableBriefPowerPanelRequest) Get() *BriefPowerPanelRequest { + return v.value +} + +func (v *NullableBriefPowerPanelRequest) Set(val *BriefPowerPanelRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPanelRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPanelRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPanelRequest(val *BriefPowerPanelRequest) *NullableBriefPowerPanelRequest { + return &NullableBriefPowerPanelRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPanelRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPanelRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port.go b/model_brief_power_port.go new file mode 100644 index 000000000..881296bdc --- /dev/null +++ b/model_brief_power_port.go @@ -0,0 +1,381 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPort type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPort{} + +// BriefPowerPort Adds support for custom fields and tags. +type BriefPowerPort struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPort BriefPowerPort + +// NewBriefPowerPort instantiates a new BriefPowerPort object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, occupied bool) *BriefPowerPort { + this := BriefPowerPort{} + this.Id = id + this.Url = url + this.Display = display + this.Device = device + this.Name = name + this.Cable = cable + this.Occupied = occupied + return &this +} + +// NewBriefPowerPortWithDefaults instantiates a new BriefPowerPort object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortWithDefaults() *BriefPowerPort { + this := BriefPowerPort{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPort) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPort) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPowerPort) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPort) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPowerPort) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPort) SetDisplay(v string) { + o.Display = v +} + +// GetDevice returns the Device field value +func (o *BriefPowerPort) GetDevice() BriefDevice { + if o == nil { + var ret BriefDevice + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDeviceOk() (*BriefDevice, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefPowerPort) SetDevice(v BriefDevice) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefPowerPort) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPort) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPort) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPort) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPort) SetDescription(v string) { + o.Description = &v +} + +// GetCable returns the Cable field value +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *BriefPowerPort) GetCable() BriefCable { + if o == nil || o.Cable.Get() == nil { + var ret BriefCable + return ret + } + + return *o.Cable.Get() +} + +// GetCableOk returns a tuple with the Cable field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefPowerPort) GetCableOk() (*BriefCable, bool) { + if o == nil { + return nil, false + } + return o.Cable.Get(), o.Cable.IsSet() +} + +// SetCable sets field value +func (o *BriefPowerPort) SetCable(v BriefCable) { + o.Cable.Set(&v) +} + +// GetOccupied returns the Occupied field value +func (o *BriefPowerPort) GetOccupied() bool { + if o == nil { + var ret bool + return ret + } + + return o.Occupied +} + +// GetOccupiedOk returns a tuple with the Occupied field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPort) GetOccupiedOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Occupied, true +} + +// SetOccupied sets field value +func (o *BriefPowerPort) SetOccupied(v bool) { + o.Occupied = v +} + +func (o BriefPowerPort) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPort) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["cable"] = o.Cable.Get() + toSerialize["_occupied"] = o.Occupied + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPort) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "device", + "name", + "cable", + "_occupied", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPort := _BriefPowerPort{} + + err = json.Unmarshal(data, &varBriefPowerPort) + + if err != nil { + return err + } + + *o = BriefPowerPort(varBriefPowerPort) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "cable") + delete(additionalProperties, "_occupied") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPort struct { + value *BriefPowerPort + isSet bool +} + +func (v NullableBriefPowerPort) Get() *BriefPowerPort { + return v.value +} + +func (v *NullableBriefPowerPort) Set(val *BriefPowerPort) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPort) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPort) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPort(val *BriefPowerPort) *NullableBriefPowerPort { + return &NullableBriefPowerPort{value: val, isSet: true} +} + +func (v NullableBriefPowerPort) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPort) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port_request.go b/model_brief_power_port_request.go new file mode 100644 index 000000000..56df9c8c3 --- /dev/null +++ b/model_brief_power_port_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortRequest{} + +// BriefPowerPortRequest Adds support for custom fields and tags. +type BriefPowerPortRequest struct { + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortRequest BriefPowerPortRequest + +// NewBriefPowerPortRequest instantiates a new BriefPowerPortRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPortRequest(device BriefDeviceRequest, name string) *BriefPowerPortRequest { + this := BriefPowerPortRequest{} + this.Device = device + this.Name = name + return &this +} + +// NewBriefPowerPortRequestWithDefaults instantiates a new BriefPowerPortRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortRequestWithDefaults() *BriefPowerPortRequest { + this := BriefPowerPortRequest{} + return &this +} + +// GetDevice returns the Device field value +func (o *BriefPowerPortRequest) GetDevice() BriefDeviceRequest { + if o == nil { + var ret BriefDeviceRequest + return ret + } + + return o.Device +} + +// GetDeviceOk returns a tuple with the Device field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { + if o == nil { + return nil, false + } + return &o.Device, true +} + +// SetDevice sets field value +func (o *BriefPowerPortRequest) SetDevice(v BriefDeviceRequest) { + o.Device = v +} + +// GetName returns the Name field value +func (o *BriefPowerPortRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPortRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPortRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPortRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["device"] = o.Device + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "device", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPortRequest := _BriefPowerPortRequest{} + + err = json.Unmarshal(data, &varBriefPowerPortRequest) + + if err != nil { + return err + } + + *o = BriefPowerPortRequest(varBriefPowerPortRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortRequest struct { + value *BriefPowerPortRequest + isSet bool +} + +func (v NullableBriefPowerPortRequest) Get() *BriefPowerPortRequest { + return v.value +} + +func (v *NullableBriefPowerPortRequest) Set(val *BriefPowerPortRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortRequest(val *BriefPowerPortRequest) *NullableBriefPowerPortRequest { + return &NullableBriefPowerPortRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPortRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port_template.go b/model_brief_power_port_template.go new file mode 100644 index 000000000..afc308328 --- /dev/null +++ b/model_brief_power_port_template.go @@ -0,0 +1,293 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortTemplate{} + +// BriefPowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefPowerPortTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortTemplate BriefPowerPortTemplate + +// NewBriefPowerPortTemplate instantiates a new BriefPowerPortTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPortTemplate(id int32, url string, display string, name string) *BriefPowerPortTemplate { + this := BriefPowerPortTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefPowerPortTemplateWithDefaults instantiates a new BriefPowerPortTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortTemplateWithDefaults() *BriefPowerPortTemplate { + this := BriefPowerPortTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefPowerPortTemplate) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefPowerPortTemplate) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefPowerPortTemplate) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefPowerPortTemplate) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefPowerPortTemplate) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefPowerPortTemplate) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefPowerPortTemplate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortTemplate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortTemplate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPortTemplate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPortTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPortTemplate := _BriefPowerPortTemplate{} + + err = json.Unmarshal(data, &varBriefPowerPortTemplate) + + if err != nil { + return err + } + + *o = BriefPowerPortTemplate(varBriefPowerPortTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortTemplate struct { + value *BriefPowerPortTemplate + isSet bool +} + +func (v NullableBriefPowerPortTemplate) Get() *BriefPowerPortTemplate { + return v.value +} + +func (v *NullableBriefPowerPortTemplate) Set(val *BriefPowerPortTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortTemplate(val *BriefPowerPortTemplate) *NullableBriefPowerPortTemplate { + return &NullableBriefPowerPortTemplate{value: val, isSet: true} +} + +func (v NullableBriefPowerPortTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_power_port_template_request.go b/model_brief_power_port_template_request.go new file mode 100644 index 000000000..b80c4ace3 --- /dev/null +++ b/model_brief_power_port_template_request.go @@ -0,0 +1,206 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefPowerPortTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefPowerPortTemplateRequest{} + +// BriefPowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefPowerPortTemplateRequest struct { + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefPowerPortTemplateRequest BriefPowerPortTemplateRequest + +// NewBriefPowerPortTemplateRequest instantiates a new BriefPowerPortTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefPowerPortTemplateRequest(name string) *BriefPowerPortTemplateRequest { + this := BriefPowerPortTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefPowerPortTemplateRequestWithDefaults instantiates a new BriefPowerPortTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefPowerPortTemplateRequestWithDefaults() *BriefPowerPortTemplateRequest { + this := BriefPowerPortTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefPowerPortTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefPowerPortTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefPowerPortTemplateRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefPowerPortTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefPowerPortTemplateRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefPowerPortTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefPowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefPowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefPowerPortTemplateRequest := _BriefPowerPortTemplateRequest{} + + err = json.Unmarshal(data, &varBriefPowerPortTemplateRequest) + + if err != nil { + return err + } + + *o = BriefPowerPortTemplateRequest(varBriefPowerPortTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefPowerPortTemplateRequest struct { + value *BriefPowerPortTemplateRequest + isSet bool +} + +func (v NullableBriefPowerPortTemplateRequest) Get() *BriefPowerPortTemplateRequest { + return v.value +} + +func (v *NullableBriefPowerPortTemplateRequest) Set(val *BriefPowerPortTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefPowerPortTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefPowerPortTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefPowerPortTemplateRequest(val *BriefPowerPortTemplateRequest) *NullableBriefPowerPortTemplateRequest { + return &NullableBriefPowerPortTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefPowerPortTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider.go b/model_brief_provider.go new file mode 100644 index 000000000..4539a319e --- /dev/null +++ b/model_brief_provider.go @@ -0,0 +1,351 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProvider type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProvider{} + +// BriefProvider Adds support for custom fields and tags. +type BriefProvider struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Full name of the provider + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefProvider BriefProvider + +// NewBriefProvider instantiates a new BriefProvider object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *BriefProvider { + this := BriefProvider{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.CircuitCount = circuitCount + return &this +} + +// NewBriefProviderWithDefaults instantiates a new BriefProvider object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderWithDefaults() *BriefProvider { + this := BriefProvider{} + return &this +} + +// GetId returns the Id field value +func (o *BriefProvider) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProvider) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefProvider) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProvider) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefProvider) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProvider) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefProvider) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProvider) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefProvider) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefProvider) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProvider) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProvider) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProvider) SetDescription(v string) { + o.Description = &v +} + +// GetCircuitCount returns the CircuitCount field value +func (o *BriefProvider) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *BriefProvider) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *BriefProvider) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +func (o BriefProvider) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProvider) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProvider) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "circuit_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProvider := _BriefProvider{} + + err = json.Unmarshal(data, &varBriefProvider) + + if err != nil { + return err + } + + *o = BriefProvider(varBriefProvider) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProvider struct { + value *BriefProvider + isSet bool +} + +func (v NullableBriefProvider) Get() *BriefProvider { + return v.value +} + +func (v *NullableBriefProvider) Set(val *BriefProvider) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProvider) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProvider) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProvider(val *BriefProvider) *NullableBriefProvider { + return &NullableBriefProvider{value: val, isSet: true} +} + +func (v NullableBriefProvider) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProvider) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_account.go b/model_brief_provider_account.go new file mode 100644 index 000000000..c0db0a26d --- /dev/null +++ b/model_brief_provider_account.go @@ -0,0 +1,333 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderAccount{} + +// BriefProviderAccount Adds support for custom fields and tags. +type BriefProviderAccount struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderAccount BriefProviderAccount + +// NewBriefProviderAccount instantiates a new BriefProviderAccount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderAccount(id int32, url string, display string, account string) *BriefProviderAccount { + this := BriefProviderAccount{} + this.Id = id + this.Url = url + this.Display = display + var name string = "" + this.Name = &name + this.Account = account + return &this +} + +// NewBriefProviderAccountWithDefaults instantiates a new BriefProviderAccount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderAccountWithDefaults() *BriefProviderAccount { + this := BriefProviderAccount{} + var name string = "" + this.Name = &name + return &this +} + +// GetId returns the Id field value +func (o *BriefProviderAccount) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProviderAccount) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefProviderAccount) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProviderAccount) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefProviderAccount) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProviderAccount) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BriefProviderAccount) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *BriefProviderAccount) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *BriefProviderAccount) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *BriefProviderAccount) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *BriefProviderAccount) SetAccount(v string) { + o.Account = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderAccount) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccount) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderAccount) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderAccount) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderAccount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "account", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderAccount := _BriefProviderAccount{} + + err = json.Unmarshal(data, &varBriefProviderAccount) + + if err != nil { + return err + } + + *o = BriefProviderAccount(varBriefProviderAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "account") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderAccount struct { + value *BriefProviderAccount + isSet bool +} + +func (v NullableBriefProviderAccount) Get() *BriefProviderAccount { + return v.value +} + +func (v *NullableBriefProviderAccount) Set(val *BriefProviderAccount) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderAccount(val *BriefProviderAccount) *NullableBriefProviderAccount { + return &NullableBriefProviderAccount{value: val, isSet: true} +} + +func (v NullableBriefProviderAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_account_request.go b/model_brief_provider_account_request.go new file mode 100644 index 000000000..d0a46925c --- /dev/null +++ b/model_brief_provider_account_request.go @@ -0,0 +1,246 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderAccountRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderAccountRequest{} + +// BriefProviderAccountRequest Adds support for custom fields and tags. +type BriefProviderAccountRequest struct { + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderAccountRequest BriefProviderAccountRequest + +// NewBriefProviderAccountRequest instantiates a new BriefProviderAccountRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderAccountRequest(account string) *BriefProviderAccountRequest { + this := BriefProviderAccountRequest{} + var name string = "" + this.Name = &name + this.Account = account + return &this +} + +// NewBriefProviderAccountRequestWithDefaults instantiates a new BriefProviderAccountRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderAccountRequestWithDefaults() *BriefProviderAccountRequest { + this := BriefProviderAccountRequest{} + var name string = "" + this.Name = &name + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *BriefProviderAccountRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *BriefProviderAccountRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *BriefProviderAccountRequest) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *BriefProviderAccountRequest) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *BriefProviderAccountRequest) SetAccount(v string) { + o.Account = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderAccountRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderAccountRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderAccountRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderAccountRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderAccountRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderAccountRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "account", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderAccountRequest := _BriefProviderAccountRequest{} + + err = json.Unmarshal(data, &varBriefProviderAccountRequest) + + if err != nil { + return err + } + + *o = BriefProviderAccountRequest(varBriefProviderAccountRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "account") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderAccountRequest struct { + value *BriefProviderAccountRequest + isSet bool +} + +func (v NullableBriefProviderAccountRequest) Get() *BriefProviderAccountRequest { + return v.value +} + +func (v *NullableBriefProviderAccountRequest) Set(val *BriefProviderAccountRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderAccountRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderAccountRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderAccountRequest(val *BriefProviderAccountRequest) *NullableBriefProviderAccountRequest { + return &NullableBriefProviderAccountRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderAccountRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderAccountRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_network.go b/model_brief_provider_network.go new file mode 100644 index 000000000..37f32ad2e --- /dev/null +++ b/model_brief_provider_network.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderNetwork type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderNetwork{} + +// BriefProviderNetwork Adds support for custom fields and tags. +type BriefProviderNetwork struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderNetwork BriefProviderNetwork + +// NewBriefProviderNetwork instantiates a new BriefProviderNetwork object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderNetwork(id int32, url string, display string, name string) *BriefProviderNetwork { + this := BriefProviderNetwork{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefProviderNetworkWithDefaults instantiates a new BriefProviderNetwork object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderNetworkWithDefaults() *BriefProviderNetwork { + this := BriefProviderNetwork{} + return &this +} + +// GetId returns the Id field value +func (o *BriefProviderNetwork) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefProviderNetwork) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefProviderNetwork) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefProviderNetwork) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefProviderNetwork) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefProviderNetwork) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefProviderNetwork) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderNetwork) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderNetwork) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderNetwork) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderNetwork) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderNetwork) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderNetwork) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderNetwork) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderNetwork) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderNetwork := _BriefProviderNetwork{} + + err = json.Unmarshal(data, &varBriefProviderNetwork) + + if err != nil { + return err + } + + *o = BriefProviderNetwork(varBriefProviderNetwork) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderNetwork struct { + value *BriefProviderNetwork + isSet bool +} + +func (v NullableBriefProviderNetwork) Get() *BriefProviderNetwork { + return v.value +} + +func (v *NullableBriefProviderNetwork) Set(val *BriefProviderNetwork) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderNetwork) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderNetwork) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderNetwork(val *BriefProviderNetwork) *NullableBriefProviderNetwork { + return &NullableBriefProviderNetwork{value: val, isSet: true} +} + +func (v NullableBriefProviderNetwork) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderNetwork) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_network_request.go b/model_brief_provider_network_request.go new file mode 100644 index 000000000..47caca15c --- /dev/null +++ b/model_brief_provider_network_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderNetworkRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderNetworkRequest{} + +// BriefProviderNetworkRequest Adds support for custom fields and tags. +type BriefProviderNetworkRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderNetworkRequest BriefProviderNetworkRequest + +// NewBriefProviderNetworkRequest instantiates a new BriefProviderNetworkRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderNetworkRequest(name string) *BriefProviderNetworkRequest { + this := BriefProviderNetworkRequest{} + this.Name = name + return &this +} + +// NewBriefProviderNetworkRequestWithDefaults instantiates a new BriefProviderNetworkRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderNetworkRequestWithDefaults() *BriefProviderNetworkRequest { + this := BriefProviderNetworkRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefProviderNetworkRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProviderNetworkRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderNetworkRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderNetworkRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderNetworkRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderNetworkRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderNetworkRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderNetworkRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderNetworkRequest := _BriefProviderNetworkRequest{} + + err = json.Unmarshal(data, &varBriefProviderNetworkRequest) + + if err != nil { + return err + } + + *o = BriefProviderNetworkRequest(varBriefProviderNetworkRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderNetworkRequest struct { + value *BriefProviderNetworkRequest + isSet bool +} + +func (v NullableBriefProviderNetworkRequest) Get() *BriefProviderNetworkRequest { + return v.value +} + +func (v *NullableBriefProviderNetworkRequest) Set(val *BriefProviderNetworkRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderNetworkRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderNetworkRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderNetworkRequest(val *BriefProviderNetworkRequest) *NullableBriefProviderNetworkRequest { + return &NullableBriefProviderNetworkRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderNetworkRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_provider_request.go b/model_brief_provider_request.go new file mode 100644 index 000000000..753683045 --- /dev/null +++ b/model_brief_provider_request.go @@ -0,0 +1,235 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefProviderRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefProviderRequest{} + +// BriefProviderRequest Adds support for custom fields and tags. +type BriefProviderRequest struct { + // Full name of the provider + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefProviderRequest BriefProviderRequest + +// NewBriefProviderRequest instantiates a new BriefProviderRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefProviderRequest(name string, slug string) *BriefProviderRequest { + this := BriefProviderRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefProviderRequestWithDefaults instantiates a new BriefProviderRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefProviderRequestWithDefaults() *BriefProviderRequest { + this := BriefProviderRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefProviderRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefProviderRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefProviderRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefProviderRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefProviderRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefProviderRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefProviderRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefProviderRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefProviderRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefProviderRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefProviderRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefProviderRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefProviderRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefProviderRequest := _BriefProviderRequest{} + + err = json.Unmarshal(data, &varBriefProviderRequest) + + if err != nil { + return err + } + + *o = BriefProviderRequest(varBriefProviderRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefProviderRequest struct { + value *BriefProviderRequest + isSet bool +} + +func (v NullableBriefProviderRequest) Get() *BriefProviderRequest { + return v.value +} + +func (v *NullableBriefProviderRequest) Set(val *BriefProviderRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefProviderRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefProviderRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefProviderRequest(val *BriefProviderRequest) *NullableBriefProviderRequest { + return &NullableBriefProviderRequest{value: val, isSet: true} +} + +func (v NullableBriefProviderRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefProviderRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack.go b/model_brief_rack.go new file mode 100644 index 000000000..0048cd664 --- /dev/null +++ b/model_brief_rack.go @@ -0,0 +1,329 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRack type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRack{} + +// BriefRack Adds support for custom fields and tags. +type BriefRack struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRack BriefRack + +// NewBriefRack instantiates a new BriefRack object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRack(id int32, url string, display string, name string) *BriefRack { + this := BriefRack{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefRackWithDefaults instantiates a new BriefRack object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackWithDefaults() *BriefRack { + this := BriefRack{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRack) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRack) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRack) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRack) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRack) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRack) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRack) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRack) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRack) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRack) SetDescription(v string) { + o.Description = &v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *BriefRack) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRack) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *BriefRack) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *BriefRack) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +func (o BriefRack) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRack) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRack) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRack := _BriefRack{} + + err = json.Unmarshal(data, &varBriefRack) + + if err != nil { + return err + } + + *o = BriefRack(varBriefRack) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "device_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRack struct { + value *BriefRack + isSet bool +} + +func (v NullableBriefRack) Get() *BriefRack { + return v.value +} + +func (v *NullableBriefRack) Set(val *BriefRack) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRack) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRack) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRack(val *BriefRack) *NullableBriefRack { + return &NullableBriefRack{value: val, isSet: true} +} + +func (v NullableBriefRack) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRack) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_request.go b/model_brief_rack_request.go new file mode 100644 index 000000000..459c0a20b --- /dev/null +++ b/model_brief_rack_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRequest{} + +// BriefRackRequest Adds support for custom fields and tags. +type BriefRackRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRequest BriefRackRequest + +// NewBriefRackRequest instantiates a new BriefRackRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackRequest(name string) *BriefRackRequest { + this := BriefRackRequest{} + this.Name = name + return &this +} + +// NewBriefRackRequestWithDefaults instantiates a new BriefRackRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackRequestWithDefaults() *BriefRackRequest { + this := BriefRackRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRackRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRackRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackRequest := _BriefRackRequest{} + + err = json.Unmarshal(data, &varBriefRackRequest) + + if err != nil { + return err + } + + *o = BriefRackRequest(varBriefRackRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRequest struct { + value *BriefRackRequest + isSet bool +} + +func (v NullableBriefRackRequest) Get() *BriefRackRequest { + return v.value +} + +func (v *NullableBriefRackRequest) Set(val *BriefRackRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRequest(val *BriefRackRequest) *NullableBriefRackRequest { + return &NullableBriefRackRequest{value: val, isSet: true} +} + +func (v NullableBriefRackRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_role.go b/model_brief_rack_role.go new file mode 100644 index 000000000..aff4c9353 --- /dev/null +++ b/model_brief_rack_role.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRole{} + +// BriefRackRole Adds support for custom fields and tags. +type BriefRackRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int64 `json:"rack_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRole BriefRackRole + +// NewBriefRackRole instantiates a new BriefRackRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackRole(id int32, url string, display string, name string, slug string, rackCount int64) *BriefRackRole { + this := BriefRackRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.RackCount = rackCount + return &this +} + +// NewBriefRackRoleWithDefaults instantiates a new BriefRackRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackRoleWithDefaults() *BriefRackRole { + this := BriefRackRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRackRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRackRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRackRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRackRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRackRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRackRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRackRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackRole) SetDescription(v string) { + o.Description = &v +} + +// GetRackCount returns the RackCount field value +func (o *BriefRackRole) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *BriefRackRole) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *BriefRackRole) SetRackCount(v int64) { + o.RackCount = v +} + +func (o BriefRackRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["rack_count"] = o.RackCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "rack_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackRole := _BriefRackRole{} + + err = json.Unmarshal(data, &varBriefRackRole) + + if err != nil { + return err + } + + *o = BriefRackRole(varBriefRackRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "rack_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRole struct { + value *BriefRackRole + isSet bool +} + +func (v NullableBriefRackRole) Get() *BriefRackRole { + return v.value +} + +func (v *NullableBriefRackRole) Set(val *BriefRackRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRole(val *BriefRackRole) *NullableBriefRackRole { + return &NullableBriefRackRole{value: val, isSet: true} +} + +func (v NullableBriefRackRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_role_request.go b/model_brief_rack_role_request.go new file mode 100644 index 000000000..997269187 --- /dev/null +++ b/model_brief_rack_role_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackRoleRequest{} + +// BriefRackRoleRequest Adds support for custom fields and tags. +type BriefRackRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackRoleRequest BriefRackRoleRequest + +// NewBriefRackRoleRequest instantiates a new BriefRackRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackRoleRequest(name string, slug string) *BriefRackRoleRequest { + this := BriefRackRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRackRoleRequestWithDefaults instantiates a new BriefRackRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackRoleRequestWithDefaults() *BriefRackRoleRequest { + this := BriefRackRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRackRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRackRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRackRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackRoleRequest := _BriefRackRoleRequest{} + + err = json.Unmarshal(data, &varBriefRackRoleRequest) + + if err != nil { + return err + } + + *o = BriefRackRoleRequest(varBriefRackRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackRoleRequest struct { + value *BriefRackRoleRequest + isSet bool +} + +func (v NullableBriefRackRoleRequest) Get() *BriefRackRoleRequest { + return v.value +} + +func (v *NullableBriefRackRoleRequest) Set(val *BriefRackRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackRoleRequest(val *BriefRackRoleRequest) *NullableBriefRackRoleRequest { + return &NullableBriefRackRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefRackRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_type.go b/model_brief_rack_type.go new file mode 100644 index 000000000..f2e14404c --- /dev/null +++ b/model_brief_rack_type.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackType{} + +// BriefRackType Adds support for custom fields and tags. +type BriefRackType struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackType BriefRackType + +// NewBriefRackType instantiates a new BriefRackType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string) *BriefRackType { + this := BriefRackType{} + this.Id = id + this.Url = url + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefRackTypeWithDefaults instantiates a new BriefRackType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackTypeWithDefaults() *BriefRackType { + this := BriefRackType{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRackType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRackType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRackType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRackType) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRackType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRackType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefRackType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefRackType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefRackType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefRackType) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackType) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackType := _BriefRackType{} + + err = json.Unmarshal(data, &varBriefRackType) + + if err != nil { + return err + } + + *o = BriefRackType(varBriefRackType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackType struct { + value *BriefRackType + isSet bool +} + +func (v NullableBriefRackType) Get() *BriefRackType { + return v.value +} + +func (v *NullableBriefRackType) Set(val *BriefRackType) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackType) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackType(val *BriefRackType) *NullableBriefRackType { + return &NullableBriefRackType{value: val, isSet: true} +} + +func (v NullableBriefRackType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rack_type_request.go b/model_brief_rack_type_request.go new file mode 100644 index 000000000..0ca2cdaa7 --- /dev/null +++ b/model_brief_rack_type_request.go @@ -0,0 +1,263 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRackTypeRequest{} + +// BriefRackTypeRequest Adds support for custom fields and tags. +type BriefRackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRackTypeRequest BriefRackTypeRequest + +// NewBriefRackTypeRequest instantiates a new BriefRackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *BriefRackTypeRequest { + this := BriefRackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewBriefRackTypeRequestWithDefaults instantiates a new BriefRackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRackTypeRequestWithDefaults() *BriefRackTypeRequest { + this := BriefRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *BriefRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *BriefRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *BriefRackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *BriefRackTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *BriefRackTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRackTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRackTypeRequest := _BriefRackTypeRequest{} + + err = json.Unmarshal(data, &varBriefRackTypeRequest) + + if err != nil { + return err + } + + *o = BriefRackTypeRequest(varBriefRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRackTypeRequest struct { + value *BriefRackTypeRequest + isSet bool +} + +func (v NullableBriefRackTypeRequest) Get() *BriefRackTypeRequest { + return v.value +} + +func (v *NullableBriefRackTypeRequest) Set(val *BriefRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRackTypeRequest(val *BriefRackTypeRequest) *NullableBriefRackTypeRequest { + return &NullableBriefRackTypeRequest{value: val, isSet: true} +} + +func (v NullableBriefRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rear_port_template.go b/model_brief_rear_port_template.go new file mode 100644 index 000000000..9b79d572f --- /dev/null +++ b/model_brief_rear_port_template.go @@ -0,0 +1,293 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRearPortTemplate type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRearPortTemplate{} + +// BriefRearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefRearPortTemplate struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRearPortTemplate BriefRearPortTemplate + +// NewBriefRearPortTemplate instantiates a new BriefRearPortTemplate object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRearPortTemplate(id int32, url string, display string, name string) *BriefRearPortTemplate { + this := BriefRearPortTemplate{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefRearPortTemplateWithDefaults instantiates a new BriefRearPortTemplate object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRearPortTemplateWithDefaults() *BriefRearPortTemplate { + this := BriefRearPortTemplate{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRearPortTemplate) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRearPortTemplate) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRearPortTemplate) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRearPortTemplate) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRearPortTemplate) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRearPortTemplate) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRearPortTemplate) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRearPortTemplate) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRearPortTemplate) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplate) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRearPortTemplate) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRearPortTemplate) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRearPortTemplate) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRearPortTemplate) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRearPortTemplate) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRearPortTemplate := _BriefRearPortTemplate{} + + err = json.Unmarshal(data, &varBriefRearPortTemplate) + + if err != nil { + return err + } + + *o = BriefRearPortTemplate(varBriefRearPortTemplate) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRearPortTemplate struct { + value *BriefRearPortTemplate + isSet bool +} + +func (v NullableBriefRearPortTemplate) Get() *BriefRearPortTemplate { + return v.value +} + +func (v *NullableBriefRearPortTemplate) Set(val *BriefRearPortTemplate) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRearPortTemplate) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRearPortTemplate) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRearPortTemplate(val *BriefRearPortTemplate) *NullableBriefRearPortTemplate { + return &NullableBriefRearPortTemplate{value: val, isSet: true} +} + +func (v NullableBriefRearPortTemplate) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRearPortTemplate) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rear_port_template_request.go b/model_brief_rear_port_template_request.go new file mode 100644 index 000000000..77e702f41 --- /dev/null +++ b/model_brief_rear_port_template_request.go @@ -0,0 +1,206 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRearPortTemplateRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRearPortTemplateRequest{} + +// BriefRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefRearPortTemplateRequest struct { + // {module} is accepted as a substitution for the module bay position when attached to a module type. + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRearPortTemplateRequest BriefRearPortTemplateRequest + +// NewBriefRearPortTemplateRequest instantiates a new BriefRearPortTemplateRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRearPortTemplateRequest(name string) *BriefRearPortTemplateRequest { + this := BriefRearPortTemplateRequest{} + this.Name = name + return &this +} + +// NewBriefRearPortTemplateRequestWithDefaults instantiates a new BriefRearPortTemplateRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRearPortTemplateRequestWithDefaults() *BriefRearPortTemplateRequest { + this := BriefRearPortTemplateRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRearPortTemplateRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplateRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRearPortTemplateRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRearPortTemplateRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRearPortTemplateRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRearPortTemplateRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRearPortTemplateRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRearPortTemplateRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRearPortTemplateRequest := _BriefRearPortTemplateRequest{} + + err = json.Unmarshal(data, &varBriefRearPortTemplateRequest) + + if err != nil { + return err + } + + *o = BriefRearPortTemplateRequest(varBriefRearPortTemplateRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRearPortTemplateRequest struct { + value *BriefRearPortTemplateRequest + isSet bool +} + +func (v NullableBriefRearPortTemplateRequest) Get() *BriefRearPortTemplateRequest { + return v.value +} + +func (v *NullableBriefRearPortTemplateRequest) Set(val *BriefRearPortTemplateRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRearPortTemplateRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRearPortTemplateRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRearPortTemplateRequest(val *BriefRearPortTemplateRequest) *NullableBriefRearPortTemplateRequest { + return &NullableBriefRearPortTemplateRequest{value: val, isSet: true} +} + +func (v NullableBriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRearPortTemplateRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_region.go b/model_brief_region.go new file mode 100644 index 000000000..b0f218bff --- /dev/null +++ b/model_brief_region.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRegion type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRegion{} + +// BriefRegion Extends PrimaryModelSerializer to include MPTT support. +type BriefRegion struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefRegion BriefRegion + +// NewBriefRegion instantiates a new BriefRegion object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRegion(id int32, url string, display string, name string, slug string, siteCount int32, depth int32) *BriefRegion { + this := BriefRegion{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.SiteCount = siteCount + this.Depth = depth + return &this +} + +// NewBriefRegionWithDefaults instantiates a new BriefRegion object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRegionWithDefaults() *BriefRegion { + this := BriefRegion{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRegion) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRegion) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRegion) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRegion) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRegion) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRegion) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRegion) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRegion) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRegion) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRegion) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRegion) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRegion) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRegion) SetDescription(v string) { + o.Description = &v +} + +// GetSiteCount returns the SiteCount field value +func (o *BriefRegion) GetSiteCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetSiteCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *BriefRegion) SetSiteCount(v int32) { + o.SiteCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefRegion) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefRegion) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefRegion) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefRegion) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRegion) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["site_count"] = o.SiteCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "site_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRegion := _BriefRegion{} + + err = json.Unmarshal(data, &varBriefRegion) + + if err != nil { + return err + } + + *o = BriefRegion(varBriefRegion) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "site_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRegion struct { + value *BriefRegion + isSet bool +} + +func (v NullableBriefRegion) Get() *BriefRegion { + return v.value +} + +func (v *NullableBriefRegion) Set(val *BriefRegion) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRegion) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRegion) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRegion(val *BriefRegion) *NullableBriefRegion { + return &NullableBriefRegion{value: val, isSet: true} +} + +func (v NullableBriefRegion) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRegion) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_region_request.go b/model_brief_region_request.go new file mode 100644 index 000000000..b32a8c87f --- /dev/null +++ b/model_brief_region_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRegionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRegionRequest{} + +// BriefRegionRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefRegionRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRegionRequest BriefRegionRequest + +// NewBriefRegionRequest instantiates a new BriefRegionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRegionRequest(name string, slug string) *BriefRegionRequest { + this := BriefRegionRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRegionRequestWithDefaults instantiates a new BriefRegionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRegionRequestWithDefaults() *BriefRegionRequest { + this := BriefRegionRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRegionRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRegionRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRegionRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRegionRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRegionRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRegionRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRegionRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRegionRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRegionRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRegionRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRegionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRegionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRegionRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRegionRequest := _BriefRegionRequest{} + + err = json.Unmarshal(data, &varBriefRegionRequest) + + if err != nil { + return err + } + + *o = BriefRegionRequest(varBriefRegionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRegionRequest struct { + value *BriefRegionRequest + isSet bool +} + +func (v NullableBriefRegionRequest) Get() *BriefRegionRequest { + return v.value +} + +func (v *NullableBriefRegionRequest) Set(val *BriefRegionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRegionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRegionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRegionRequest(val *BriefRegionRequest) *NullableBriefRegionRequest { + return &NullableBriefRegionRequest{value: val, isSet: true} +} + +func (v NullableBriefRegionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRegionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rir.go b/model_brief_rir.go new file mode 100644 index 000000000..2e320e371 --- /dev/null +++ b/model_brief_rir.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRIR type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRIR{} + +// BriefRIR Adds support for custom fields and tags. +type BriefRIR struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AggregateCount int64 `json:"aggregate_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRIR BriefRIR + +// NewBriefRIR instantiates a new BriefRIR object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *BriefRIR { + this := BriefRIR{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.AggregateCount = aggregateCount + return &this +} + +// NewBriefRIRWithDefaults instantiates a new BriefRIR object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRIRWithDefaults() *BriefRIR { + this := BriefRIR{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRIR) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRIR) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRIR) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRIR) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRIR) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRIR) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRIR) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRIR) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRIR) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRIR) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRIR) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRIR) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRIR) SetDescription(v string) { + o.Description = &v +} + +// GetAggregateCount returns the AggregateCount field value +func (o *BriefRIR) GetAggregateCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AggregateCount +} + +// GetAggregateCountOk returns a tuple with the AggregateCount field value +// and a boolean to check if the value has been set. +func (o *BriefRIR) GetAggregateCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AggregateCount, true +} + +// SetAggregateCount sets field value +func (o *BriefRIR) SetAggregateCount(v int64) { + o.AggregateCount = v +} + +func (o BriefRIR) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRIR) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["aggregate_count"] = o.AggregateCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRIR) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "aggregate_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRIR := _BriefRIR{} + + err = json.Unmarshal(data, &varBriefRIR) + + if err != nil { + return err + } + + *o = BriefRIR(varBriefRIR) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "aggregate_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRIR struct { + value *BriefRIR + isSet bool +} + +func (v NullableBriefRIR) Get() *BriefRIR { + return v.value +} + +func (v *NullableBriefRIR) Set(val *BriefRIR) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRIR) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRIR) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRIR(val *BriefRIR) *NullableBriefRIR { + return &NullableBriefRIR{value: val, isSet: true} +} + +func (v NullableBriefRIR) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRIR) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_rir_request.go b/model_brief_rir_request.go new file mode 100644 index 000000000..25be77358 --- /dev/null +++ b/model_brief_rir_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRIRRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRIRRequest{} + +// BriefRIRRequest Adds support for custom fields and tags. +type BriefRIRRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRIRRequest BriefRIRRequest + +// NewBriefRIRRequest instantiates a new BriefRIRRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRIRRequest(name string, slug string) *BriefRIRRequest { + this := BriefRIRRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRIRRequestWithDefaults instantiates a new BriefRIRRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRIRRequestWithDefaults() *BriefRIRRequest { + this := BriefRIRRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRIRRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRIRRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRIRRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRIRRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRIRRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRIRRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRIRRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRIRRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRIRRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRIRRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRIRRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRIRRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRIRRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRIRRequest := _BriefRIRRequest{} + + err = json.Unmarshal(data, &varBriefRIRRequest) + + if err != nil { + return err + } + + *o = BriefRIRRequest(varBriefRIRRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRIRRequest struct { + value *BriefRIRRequest + isSet bool +} + +func (v NullableBriefRIRRequest) Get() *BriefRIRRequest { + return v.value +} + +func (v *NullableBriefRIRRequest) Set(val *BriefRIRRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRIRRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRIRRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRIRRequest(val *BriefRIRRequest) *NullableBriefRIRRequest { + return &NullableBriefRIRRequest{value: val, isSet: true} +} + +func (v NullableBriefRIRRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRIRRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_role.go b/model_brief_role.go new file mode 100644 index 000000000..165fd7d33 --- /dev/null +++ b/model_brief_role.go @@ -0,0 +1,387 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRole{} + +// BriefRole Adds support for custom fields and tags. +type BriefRole struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount int64 `json:"vlan_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefRole BriefRole + +// NewBriefRole instantiates a new BriefRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRole(id int32, url string, display string, name string, slug string, vlanCount int64) *BriefRole { + this := BriefRole{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.VlanCount = vlanCount + return &this +} + +// NewBriefRoleWithDefaults instantiates a new BriefRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRoleWithDefaults() *BriefRole { + this := BriefRole{} + return &this +} + +// GetId returns the Id field value +func (o *BriefRole) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefRole) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefRole) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefRole) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefRole) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefRole) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefRole) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRole) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRole) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRole) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRole) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRole) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRole) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRole) SetDescription(v string) { + o.Description = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *BriefRole) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRole) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *BriefRole) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *BriefRole) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetVlanCount returns the VlanCount field value +func (o *BriefRole) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *BriefRole) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *BriefRole) SetVlanCount(v int64) { + o.VlanCount = v +} + +func (o BriefRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + toSerialize["vlan_count"] = o.VlanCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRole) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "vlan_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRole := _BriefRole{} + + err = json.Unmarshal(data, &varBriefRole) + + if err != nil { + return err + } + + *o = BriefRole(varBriefRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "vlan_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRole struct { + value *BriefRole + isSet bool +} + +func (v NullableBriefRole) Get() *BriefRole { + return v.value +} + +func (v *NullableBriefRole) Set(val *BriefRole) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRole) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRole(val *BriefRole) *NullableBriefRole { + return &NullableBriefRole{value: val, isSet: true} +} + +func (v NullableBriefRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_role_request.go b/model_brief_role_request.go new file mode 100644 index 000000000..3ae5b7752 --- /dev/null +++ b/model_brief_role_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefRoleRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefRoleRequest{} + +// BriefRoleRequest Adds support for custom fields and tags. +type BriefRoleRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefRoleRequest BriefRoleRequest + +// NewBriefRoleRequest instantiates a new BriefRoleRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefRoleRequest(name string, slug string) *BriefRoleRequest { + this := BriefRoleRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefRoleRequestWithDefaults instantiates a new BriefRoleRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefRoleRequestWithDefaults() *BriefRoleRequest { + this := BriefRoleRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefRoleRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefRoleRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefRoleRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefRoleRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefRoleRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefRoleRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefRoleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefRoleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefRoleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefRoleRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefRoleRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefRoleRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefRoleRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefRoleRequest := _BriefRoleRequest{} + + err = json.Unmarshal(data, &varBriefRoleRequest) + + if err != nil { + return err + } + + *o = BriefRoleRequest(varBriefRoleRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefRoleRequest struct { + value *BriefRoleRequest + isSet bool +} + +func (v NullableBriefRoleRequest) Get() *BriefRoleRequest { + return v.value +} + +func (v *NullableBriefRoleRequest) Set(val *BriefRoleRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefRoleRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefRoleRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefRoleRequest(val *BriefRoleRequest) *NullableBriefRoleRequest { + return &NullableBriefRoleRequest{value: val, isSet: true} +} + +func (v NullableBriefRoleRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefRoleRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site.go b/model_brief_site.go new file mode 100644 index 000000000..34bd9c466 --- /dev/null +++ b/model_brief_site.go @@ -0,0 +1,322 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSite type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSite{} + +// BriefSite Adds support for custom fields and tags. +type BriefSite struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Full name of the site + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSite BriefSite + +// NewBriefSite instantiates a new BriefSite object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSite(id int32, url string, display string, name string, slug string) *BriefSite { + this := BriefSite{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteWithDefaults instantiates a new BriefSite object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteWithDefaults() *BriefSite { + this := BriefSite{} + return &this +} + +// GetId returns the Id field value +func (o *BriefSite) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefSite) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefSite) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefSite) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefSite) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefSite) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefSite) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSite) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSite) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSite) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSite) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSite) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSite) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSite) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSite) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSite) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSite) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSite) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSite := _BriefSite{} + + err = json.Unmarshal(data, &varBriefSite) + + if err != nil { + return err + } + + *o = BriefSite(varBriefSite) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSite struct { + value *BriefSite + isSet bool +} + +func (v NullableBriefSite) Get() *BriefSite { + return v.value +} + +func (v *NullableBriefSite) Set(val *BriefSite) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSite) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSite) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSite(val *BriefSite) *NullableBriefSite { + return &NullableBriefSite{value: val, isSet: true} +} + +func (v NullableBriefSite) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSite) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site_group.go b/model_brief_site_group.go new file mode 100644 index 000000000..134ace94e --- /dev/null +++ b/model_brief_site_group.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteGroup{} + +// BriefSiteGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefSiteGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteGroup BriefSiteGroup + +// NewBriefSiteGroup instantiates a new BriefSiteGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSiteGroup(id int32, url string, display string, name string, slug string, siteCount int32, depth int32) *BriefSiteGroup { + this := BriefSiteGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.SiteCount = siteCount + this.Depth = depth + return &this +} + +// NewBriefSiteGroupWithDefaults instantiates a new BriefSiteGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteGroupWithDefaults() *BriefSiteGroup { + this := BriefSiteGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefSiteGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefSiteGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefSiteGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefSiteGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefSiteGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefSiteGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefSiteGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSiteGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSiteGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSiteGroup) SetDescription(v string) { + o.Description = &v +} + +// GetSiteCount returns the SiteCount field value +func (o *BriefSiteGroup) GetSiteCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetSiteCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *BriefSiteGroup) SetSiteCount(v int32) { + o.SiteCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefSiteGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefSiteGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefSiteGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["site_count"] = o.SiteCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "site_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSiteGroup := _BriefSiteGroup{} + + err = json.Unmarshal(data, &varBriefSiteGroup) + + if err != nil { + return err + } + + *o = BriefSiteGroup(varBriefSiteGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "site_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteGroup struct { + value *BriefSiteGroup + isSet bool +} + +func (v NullableBriefSiteGroup) Get() *BriefSiteGroup { + return v.value +} + +func (v *NullableBriefSiteGroup) Set(val *BriefSiteGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteGroup(val *BriefSiteGroup) *NullableBriefSiteGroup { + return &NullableBriefSiteGroup{value: val, isSet: true} +} + +func (v NullableBriefSiteGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site_group_request.go b/model_brief_site_group_request.go new file mode 100644 index 000000000..77aa4f891 --- /dev/null +++ b/model_brief_site_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteGroupRequest{} + +// BriefSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefSiteGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteGroupRequest BriefSiteGroupRequest + +// NewBriefSiteGroupRequest instantiates a new BriefSiteGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSiteGroupRequest(name string, slug string) *BriefSiteGroupRequest { + this := BriefSiteGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteGroupRequestWithDefaults instantiates a new BriefSiteGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteGroupRequestWithDefaults() *BriefSiteGroupRequest { + this := BriefSiteGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefSiteGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSiteGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSiteGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSiteGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSiteGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSiteGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSiteGroupRequest := _BriefSiteGroupRequest{} + + err = json.Unmarshal(data, &varBriefSiteGroupRequest) + + if err != nil { + return err + } + + *o = BriefSiteGroupRequest(varBriefSiteGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteGroupRequest struct { + value *BriefSiteGroupRequest + isSet bool +} + +func (v NullableBriefSiteGroupRequest) Get() *BriefSiteGroupRequest { + return v.value +} + +func (v *NullableBriefSiteGroupRequest) Set(val *BriefSiteGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteGroupRequest(val *BriefSiteGroupRequest) *NullableBriefSiteGroupRequest { + return &NullableBriefSiteGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefSiteGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_site_request.go b/model_brief_site_request.go new file mode 100644 index 000000000..aa567e97d --- /dev/null +++ b/model_brief_site_request.go @@ -0,0 +1,235 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefSiteRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefSiteRequest{} + +// BriefSiteRequest Adds support for custom fields and tags. +type BriefSiteRequest struct { + // Full name of the site + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefSiteRequest BriefSiteRequest + +// NewBriefSiteRequest instantiates a new BriefSiteRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefSiteRequest(name string, slug string) *BriefSiteRequest { + this := BriefSiteRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefSiteRequestWithDefaults instantiates a new BriefSiteRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefSiteRequestWithDefaults() *BriefSiteRequest { + this := BriefSiteRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefSiteRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefSiteRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefSiteRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefSiteRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefSiteRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefSiteRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefSiteRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefSiteRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefSiteRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefSiteRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefSiteRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefSiteRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefSiteRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefSiteRequest := _BriefSiteRequest{} + + err = json.Unmarshal(data, &varBriefSiteRequest) + + if err != nil { + return err + } + + *o = BriefSiteRequest(varBriefSiteRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefSiteRequest struct { + value *BriefSiteRequest + isSet bool +} + +func (v NullableBriefSiteRequest) Get() *BriefSiteRequest { + return v.value +} + +func (v *NullableBriefSiteRequest) Set(val *BriefSiteRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefSiteRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefSiteRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefSiteRequest(val *BriefSiteRequest) *NullableBriefSiteRequest { + return &NullableBriefSiteRequest{value: val, isSet: true} +} + +func (v NullableBriefSiteRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefSiteRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant.go b/model_brief_tenant.go new file mode 100644 index 000000000..0877cf653 --- /dev/null +++ b/model_brief_tenant.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenant type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenant{} + +// BriefTenant Adds support for custom fields and tags. +type BriefTenant struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenant BriefTenant + +// NewBriefTenant instantiates a new BriefTenant object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenant(id int32, url string, display string, name string, slug string) *BriefTenant { + this := BriefTenant{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantWithDefaults instantiates a new BriefTenant object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantWithDefaults() *BriefTenant { + this := BriefTenant{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTenant) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTenant) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTenant) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTenant) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTenant) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTenant) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTenant) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenant) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenant) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenant) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenant) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenant) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenant) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenant) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenant) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenant) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenant) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenant := _BriefTenant{} + + err = json.Unmarshal(data, &varBriefTenant) + + if err != nil { + return err + } + + *o = BriefTenant(varBriefTenant) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenant struct { + value *BriefTenant + isSet bool +} + +func (v NullableBriefTenant) Get() *BriefTenant { + return v.value +} + +func (v *NullableBriefTenant) Set(val *BriefTenant) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenant) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenant) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenant(val *BriefTenant) *NullableBriefTenant { + return &NullableBriefTenant{value: val, isSet: true} +} + +func (v NullableBriefTenant) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenant) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go new file mode 100644 index 000000000..e3e10cf88 --- /dev/null +++ b/model_brief_tenant_group.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantGroup{} + +// BriefTenantGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefTenantGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + TenantCount int32 `json:"tenant_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantGroup BriefTenantGroup + +// NewBriefTenantGroup instantiates a new BriefTenantGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenantGroup(id int32, url string, display string, name string, slug string, tenantCount int32, depth int32) *BriefTenantGroup { + this := BriefTenantGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.TenantCount = tenantCount + this.Depth = depth + return &this +} + +// NewBriefTenantGroupWithDefaults instantiates a new BriefTenantGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantGroupWithDefaults() *BriefTenantGroup { + this := BriefTenantGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTenantGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTenantGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTenantGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTenantGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTenantGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTenantGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTenantGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenantGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenantGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenantGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTenantCount returns the TenantCount field value +func (o *BriefTenantGroup) GetTenantCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.TenantCount +} + +// GetTenantCountOk returns a tuple with the TenantCount field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetTenantCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.TenantCount, true +} + +// SetTenantCount sets field value +func (o *BriefTenantGroup) SetTenantCount(v int32) { + o.TenantCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefTenantGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefTenantGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefTenantGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["tenant_count"] = o.TenantCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "tenant_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenantGroup := _BriefTenantGroup{} + + err = json.Unmarshal(data, &varBriefTenantGroup) + + if err != nil { + return err + } + + *o = BriefTenantGroup(varBriefTenantGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantGroup struct { + value *BriefTenantGroup + isSet bool +} + +func (v NullableBriefTenantGroup) Get() *BriefTenantGroup { + return v.value +} + +func (v *NullableBriefTenantGroup) Set(val *BriefTenantGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantGroup(val *BriefTenantGroup) *NullableBriefTenantGroup { + return &NullableBriefTenantGroup{value: val, isSet: true} +} + +func (v NullableBriefTenantGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant_group_request.go b/model_brief_tenant_group_request.go new file mode 100644 index 000000000..f80f9a426 --- /dev/null +++ b/model_brief_tenant_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantGroupRequest{} + +// BriefTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefTenantGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantGroupRequest BriefTenantGroupRequest + +// NewBriefTenantGroupRequest instantiates a new BriefTenantGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenantGroupRequest(name string, slug string) *BriefTenantGroupRequest { + this := BriefTenantGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantGroupRequestWithDefaults instantiates a new BriefTenantGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantGroupRequestWithDefaults() *BriefTenantGroupRequest { + this := BriefTenantGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTenantGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenantGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenantGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenantGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenantGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenantGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenantGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenantGroupRequest := _BriefTenantGroupRequest{} + + err = json.Unmarshal(data, &varBriefTenantGroupRequest) + + if err != nil { + return err + } + + *o = BriefTenantGroupRequest(varBriefTenantGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantGroupRequest struct { + value *BriefTenantGroupRequest + isSet bool +} + +func (v NullableBriefTenantGroupRequest) Get() *BriefTenantGroupRequest { + return v.value +} + +func (v *NullableBriefTenantGroupRequest) Set(val *BriefTenantGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantGroupRequest(val *BriefTenantGroupRequest) *NullableBriefTenantGroupRequest { + return &NullableBriefTenantGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefTenantGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tenant_request.go b/model_brief_tenant_request.go new file mode 100644 index 000000000..d0b84a90a --- /dev/null +++ b/model_brief_tenant_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTenantRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTenantRequest{} + +// BriefTenantRequest Adds support for custom fields and tags. +type BriefTenantRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTenantRequest BriefTenantRequest + +// NewBriefTenantRequest instantiates a new BriefTenantRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTenantRequest(name string, slug string) *BriefTenantRequest { + this := BriefTenantRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTenantRequestWithDefaults instantiates a new BriefTenantRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTenantRequestWithDefaults() *BriefTenantRequest { + this := BriefTenantRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTenantRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTenantRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTenantRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTenantRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTenantRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTenantRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTenantRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTenantRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTenantRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTenantRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTenantRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTenantRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTenantRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTenantRequest := _BriefTenantRequest{} + + err = json.Unmarshal(data, &varBriefTenantRequest) + + if err != nil { + return err + } + + *o = BriefTenantRequest(varBriefTenantRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTenantRequest struct { + value *BriefTenantRequest + isSet bool +} + +func (v NullableBriefTenantRequest) Get() *BriefTenantRequest { + return v.value +} + +func (v *NullableBriefTenantRequest) Set(val *BriefTenantRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTenantRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTenantRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTenantRequest(val *BriefTenantRequest) *NullableBriefTenantRequest { + return &NullableBriefTenantRequest{value: val, isSet: true} +} + +func (v NullableBriefTenantRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTenantRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tunnel.go b/model_brief_tunnel.go new file mode 100644 index 000000000..6923ffd96 --- /dev/null +++ b/model_brief_tunnel.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnel type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnel{} + +// BriefTunnel Adds support for custom fields and tags. +type BriefTunnel struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnel BriefTunnel + +// NewBriefTunnel instantiates a new BriefTunnel object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnel(id int32, url string, display string, name string) *BriefTunnel { + this := BriefTunnel{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefTunnelWithDefaults instantiates a new BriefTunnel object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelWithDefaults() *BriefTunnel { + this := BriefTunnel{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTunnel) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTunnel) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTunnel) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTunnel) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTunnel) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTunnel) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTunnel) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTunnel) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTunnel) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTunnel) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnel) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnel) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnel) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnel) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnel) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnel) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnel) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnel) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnel) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnel := _BriefTunnel{} + + err = json.Unmarshal(data, &varBriefTunnel) + + if err != nil { + return err + } + + *o = BriefTunnel(varBriefTunnel) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnel struct { + value *BriefTunnel + isSet bool +} + +func (v NullableBriefTunnel) Get() *BriefTunnel { + return v.value +} + +func (v *NullableBriefTunnel) Set(val *BriefTunnel) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnel) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnel(val *BriefTunnel) *NullableBriefTunnel { + return &NullableBriefTunnel{value: val, isSet: true} +} + +func (v NullableBriefTunnel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go new file mode 100644 index 000000000..f08cc5639 --- /dev/null +++ b/model_brief_tunnel_group.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelGroup{} + +// BriefTunnelGroup Adds support for custom fields and tags. +type BriefTunnelGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + TunnelCount int64 `json:"tunnel_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelGroup BriefTunnelGroup + +// NewBriefTunnelGroup instantiates a new BriefTunnelGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnelGroup(id int32, url string, display string, name string, slug string, tunnelCount int64) *BriefTunnelGroup { + this := BriefTunnelGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.TunnelCount = tunnelCount + return &this +} + +// NewBriefTunnelGroupWithDefaults instantiates a new BriefTunnelGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelGroupWithDefaults() *BriefTunnelGroup { + this := BriefTunnelGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefTunnelGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefTunnelGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefTunnelGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefTunnelGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefTunnelGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefTunnelGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefTunnelGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTunnelGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTunnelGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnelGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnelGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTunnelCount returns the TunnelCount field value +func (o *BriefTunnelGroup) GetTunnelCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TunnelCount +} + +// GetTunnelCountOk returns a tuple with the TunnelCount field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroup) GetTunnelCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TunnelCount, true +} + +// SetTunnelCount sets field value +func (o *BriefTunnelGroup) SetTunnelCount(v int64) { + o.TunnelCount = v +} + +func (o BriefTunnelGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["tunnel_count"] = o.TunnelCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "tunnel_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnelGroup := _BriefTunnelGroup{} + + err = json.Unmarshal(data, &varBriefTunnelGroup) + + if err != nil { + return err + } + + *o = BriefTunnelGroup(varBriefTunnelGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tunnel_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelGroup struct { + value *BriefTunnelGroup + isSet bool +} + +func (v NullableBriefTunnelGroup) Get() *BriefTunnelGroup { + return v.value +} + +func (v *NullableBriefTunnelGroup) Set(val *BriefTunnelGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelGroup(val *BriefTunnelGroup) *NullableBriefTunnelGroup { + return &NullableBriefTunnelGroup{value: val, isSet: true} +} + +func (v NullableBriefTunnelGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tunnel_group_request.go b/model_brief_tunnel_group_request.go new file mode 100644 index 000000000..77fafcefd --- /dev/null +++ b/model_brief_tunnel_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelGroupRequest{} + +// BriefTunnelGroupRequest Adds support for custom fields and tags. +type BriefTunnelGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelGroupRequest BriefTunnelGroupRequest + +// NewBriefTunnelGroupRequest instantiates a new BriefTunnelGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnelGroupRequest(name string, slug string) *BriefTunnelGroupRequest { + this := BriefTunnelGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefTunnelGroupRequestWithDefaults instantiates a new BriefTunnelGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelGroupRequestWithDefaults() *BriefTunnelGroupRequest { + this := BriefTunnelGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTunnelGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefTunnelGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefTunnelGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnelGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnelGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnelGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnelGroupRequest := _BriefTunnelGroupRequest{} + + err = json.Unmarshal(data, &varBriefTunnelGroupRequest) + + if err != nil { + return err + } + + *o = BriefTunnelGroupRequest(varBriefTunnelGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelGroupRequest struct { + value *BriefTunnelGroupRequest + isSet bool +} + +func (v NullableBriefTunnelGroupRequest) Get() *BriefTunnelGroupRequest { + return v.value +} + +func (v *NullableBriefTunnelGroupRequest) Set(val *BriefTunnelGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelGroupRequest(val *BriefTunnelGroupRequest) *NullableBriefTunnelGroupRequest { + return &NullableBriefTunnelGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_tunnel_request.go b/model_brief_tunnel_request.go new file mode 100644 index 000000000..61cf4ae9e --- /dev/null +++ b/model_brief_tunnel_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefTunnelRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefTunnelRequest{} + +// BriefTunnelRequest Adds support for custom fields and tags. +type BriefTunnelRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefTunnelRequest BriefTunnelRequest + +// NewBriefTunnelRequest instantiates a new BriefTunnelRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefTunnelRequest(name string) *BriefTunnelRequest { + this := BriefTunnelRequest{} + this.Name = name + return &this +} + +// NewBriefTunnelRequestWithDefaults instantiates a new BriefTunnelRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefTunnelRequestWithDefaults() *BriefTunnelRequest { + this := BriefTunnelRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefTunnelRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefTunnelRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefTunnelRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefTunnelRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefTunnelRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefTunnelRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefTunnelRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefTunnelRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefTunnelRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefTunnelRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefTunnelRequest := _BriefTunnelRequest{} + + err = json.Unmarshal(data, &varBriefTunnelRequest) + + if err != nil { + return err + } + + *o = BriefTunnelRequest(varBriefTunnelRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefTunnelRequest struct { + value *BriefTunnelRequest + isSet bool +} + +func (v NullableBriefTunnelRequest) Get() *BriefTunnelRequest { + return v.value +} + +func (v *NullableBriefTunnelRequest) Set(val *BriefTunnelRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefTunnelRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefTunnelRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefTunnelRequest(val *BriefTunnelRequest) *NullableBriefTunnelRequest { + return &NullableBriefTunnelRequest{value: val, isSet: true} +} + +func (v NullableBriefTunnelRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefTunnelRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_user.go b/model_brief_user.go new file mode 100644 index 000000000..d9c3fade5 --- /dev/null +++ b/model_brief_user.go @@ -0,0 +1,256 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefUser type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefUser{} + +// BriefUser Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefUser struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _BriefUser BriefUser + +// NewBriefUser instantiates a new BriefUser object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefUser(id int32, url string, display string, username string) *BriefUser { + this := BriefUser{} + this.Id = id + this.Url = url + this.Display = display + this.Username = username + return &this +} + +// NewBriefUserWithDefaults instantiates a new BriefUser object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefUserWithDefaults() *BriefUser { + this := BriefUser{} + return &this +} + +// GetId returns the Id field value +func (o *BriefUser) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefUser) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefUser) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefUser) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefUser) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefUser) SetDisplay(v string) { + o.Display = v +} + +// GetUsername returns the Username field value +func (o *BriefUser) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *BriefUser) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BriefUser) SetUsername(v string) { + o.Username = v +} + +func (o BriefUser) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefUser) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefUser) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefUser := _BriefUser{} + + err = json.Unmarshal(data, &varBriefUser) + + if err != nil { + return err + } + + *o = BriefUser(varBriefUser) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefUser struct { + value *BriefUser + isSet bool +} + +func (v NullableBriefUser) Get() *BriefUser { + return v.value +} + +func (v *NullableBriefUser) Set(val *BriefUser) { + v.value = val + v.isSet = true +} + +func (v NullableBriefUser) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefUser) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefUser(val *BriefUser) *NullableBriefUser { + return &NullableBriefUser{value: val, isSet: true} +} + +func (v NullableBriefUser) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefUser) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_user_request.go b/model_brief_user_request.go new file mode 100644 index 000000000..45097d524 --- /dev/null +++ b/model_brief_user_request.go @@ -0,0 +1,169 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefUserRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefUserRequest{} + +// BriefUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type BriefUserRequest struct { + // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. + Username string `json:"username"` + AdditionalProperties map[string]interface{} +} + +type _BriefUserRequest BriefUserRequest + +// NewBriefUserRequest instantiates a new BriefUserRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefUserRequest(username string) *BriefUserRequest { + this := BriefUserRequest{} + this.Username = username + return &this +} + +// NewBriefUserRequestWithDefaults instantiates a new BriefUserRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefUserRequestWithDefaults() *BriefUserRequest { + this := BriefUserRequest{} + return &this +} + +// GetUsername returns the Username field value +func (o *BriefUserRequest) GetUsername() string { + if o == nil { + var ret string + return ret + } + + return o.Username +} + +// GetUsernameOk returns a tuple with the Username field value +// and a boolean to check if the value has been set. +func (o *BriefUserRequest) GetUsernameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Username, true +} + +// SetUsername sets field value +func (o *BriefUserRequest) SetUsername(v string) { + o.Username = v +} + +func (o BriefUserRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefUserRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["username"] = o.Username + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefUserRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "username", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefUserRequest := _BriefUserRequest{} + + err = json.Unmarshal(data, &varBriefUserRequest) + + if err != nil { + return err + } + + *o = BriefUserRequest(varBriefUserRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "username") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefUserRequest struct { + value *BriefUserRequest + isSet bool +} + +func (v NullableBriefUserRequest) Get() *BriefUserRequest { + return v.value +} + +func (v *NullableBriefUserRequest) Set(val *BriefUserRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefUserRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefUserRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefUserRequest(val *BriefUserRequest) *NullableBriefUserRequest { + return &NullableBriefUserRequest{value: val, isSet: true} +} + +func (v NullableBriefUserRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefUserRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go new file mode 100644 index 000000000..0c265b140 --- /dev/null +++ b/model_brief_virtual_chassis.go @@ -0,0 +1,368 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualChassis type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualChassis{} + +// BriefVirtualChassis Adds support for custom fields and tags. +type BriefVirtualChassis struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + MemberCount int32 `json:"member_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualChassis BriefVirtualChassis + +// NewBriefVirtualChassis instantiates a new BriefVirtualChassis object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualChassis(id int32, url string, display string, name string, memberCount int32) *BriefVirtualChassis { + this := BriefVirtualChassis{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.MemberCount = memberCount + return &this +} + +// NewBriefVirtualChassisWithDefaults instantiates a new BriefVirtualChassis object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualChassisWithDefaults() *BriefVirtualChassis { + this := BriefVirtualChassis{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualChassis) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualChassis) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVirtualChassis) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualChassis) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVirtualChassis) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualChassis) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVirtualChassis) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualChassis) SetName(v string) { + o.Name = v +} + +// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVirtualChassis) GetMaster() NestedDevice { + if o == nil || IsNil(o.Master.Get()) { + var ret NestedDevice + return ret + } + return *o.Master.Get() +} + +// GetMasterOk returns a tuple with the Master field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVirtualChassis) GetMasterOk() (*NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Master.Get(), o.Master.IsSet() +} + +// HasMaster returns a boolean if a field has been set. +func (o *BriefVirtualChassis) HasMaster() bool { + if o != nil && o.Master.IsSet() { + return true + } + + return false +} + +// SetMaster gets a reference to the given NullableNestedDevice and assigns it to the Master field. +func (o *BriefVirtualChassis) SetMaster(v NestedDevice) { + o.Master.Set(&v) +} +// SetMasterNil sets the value for Master to be an explicit nil +func (o *BriefVirtualChassis) SetMasterNil() { + o.Master.Set(nil) +} + +// UnsetMaster ensures that no value is present for Master, not even an explicit nil +func (o *BriefVirtualChassis) UnsetMaster() { + o.Master.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualChassis) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualChassis) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualChassis) SetDescription(v string) { + o.Description = &v +} + +// GetMemberCount returns the MemberCount field value +func (o *BriefVirtualChassis) GetMemberCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.MemberCount +} + +// GetMemberCountOk returns a tuple with the MemberCount field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassis) GetMemberCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.MemberCount, true +} + +// SetMemberCount sets field value +func (o *BriefVirtualChassis) SetMemberCount(v int32) { + o.MemberCount = v +} + +func (o BriefVirtualChassis) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualChassis) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if o.Master.IsSet() { + toSerialize["master"] = o.Master.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["member_count"] = o.MemberCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualChassis) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "member_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualChassis := _BriefVirtualChassis{} + + err = json.Unmarshal(data, &varBriefVirtualChassis) + + if err != nil { + return err + } + + *o = BriefVirtualChassis(varBriefVirtualChassis) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "master") + delete(additionalProperties, "description") + delete(additionalProperties, "member_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualChassis struct { + value *BriefVirtualChassis + isSet bool +} + +func (v NullableBriefVirtualChassis) Get() *BriefVirtualChassis { + return v.value +} + +func (v *NullableBriefVirtualChassis) Set(val *BriefVirtualChassis) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualChassis) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualChassis) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualChassis(val *BriefVirtualChassis) *NullableBriefVirtualChassis { + return &NullableBriefVirtualChassis{value: val, isSet: true} +} + +func (v NullableBriefVirtualChassis) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualChassis) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_chassis_request.go b/model_brief_virtual_chassis_request.go new file mode 100644 index 000000000..f588ed481 --- /dev/null +++ b/model_brief_virtual_chassis_request.go @@ -0,0 +1,252 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualChassisRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualChassisRequest{} + +// BriefVirtualChassisRequest Adds support for custom fields and tags. +type BriefVirtualChassisRequest struct { + Name string `json:"name"` + Master NullableNestedDeviceRequest `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualChassisRequest BriefVirtualChassisRequest + +// NewBriefVirtualChassisRequest instantiates a new BriefVirtualChassisRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualChassisRequest(name string) *BriefVirtualChassisRequest { + this := BriefVirtualChassisRequest{} + this.Name = name + return &this +} + +// NewBriefVirtualChassisRequestWithDefaults instantiates a new BriefVirtualChassisRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualChassisRequestWithDefaults() *BriefVirtualChassisRequest { + this := BriefVirtualChassisRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualChassisRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassisRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualChassisRequest) SetName(v string) { + o.Name = v +} + +// GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVirtualChassisRequest) GetMaster() NestedDeviceRequest { + if o == nil || IsNil(o.Master.Get()) { + var ret NestedDeviceRequest + return ret + } + return *o.Master.Get() +} + +// GetMasterOk returns a tuple with the Master field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVirtualChassisRequest) GetMasterOk() (*NestedDeviceRequest, bool) { + if o == nil { + return nil, false + } + return o.Master.Get(), o.Master.IsSet() +} + +// HasMaster returns a boolean if a field has been set. +func (o *BriefVirtualChassisRequest) HasMaster() bool { + if o != nil && o.Master.IsSet() { + return true + } + + return false +} + +// SetMaster gets a reference to the given NullableNestedDeviceRequest and assigns it to the Master field. +func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest) { + o.Master.Set(&v) +} +// SetMasterNil sets the value for Master to be an explicit nil +func (o *BriefVirtualChassisRequest) SetMasterNil() { + o.Master.Set(nil) +} + +// UnsetMaster ensures that no value is present for Master, not even an explicit nil +func (o *BriefVirtualChassisRequest) UnsetMaster() { + o.Master.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualChassisRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualChassisRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualChassisRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualChassisRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualChassisRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Master.IsSet() { + toSerialize["master"] = o.Master.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualChassisRequest := _BriefVirtualChassisRequest{} + + err = json.Unmarshal(data, &varBriefVirtualChassisRequest) + + if err != nil { + return err + } + + *o = BriefVirtualChassisRequest(varBriefVirtualChassisRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "master") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualChassisRequest struct { + value *BriefVirtualChassisRequest + isSet bool +} + +func (v NullableBriefVirtualChassisRequest) Get() *BriefVirtualChassisRequest { + return v.value +} + +func (v *NullableBriefVirtualChassisRequest) Set(val *BriefVirtualChassisRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualChassisRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualChassisRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualChassisRequest(val *BriefVirtualChassisRequest) *NullableBriefVirtualChassisRequest { + return &NullableBriefVirtualChassisRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualChassisRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_machine.go b/model_brief_virtual_machine.go new file mode 100644 index 000000000..9f31e83f5 --- /dev/null +++ b/model_brief_virtual_machine.go @@ -0,0 +1,292 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualMachine type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualMachine{} + +// BriefVirtualMachine Adds support for custom fields and tags. +type BriefVirtualMachine struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualMachine BriefVirtualMachine + +// NewBriefVirtualMachine instantiates a new BriefVirtualMachine object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualMachine(id int32, url string, display string, name string) *BriefVirtualMachine { + this := BriefVirtualMachine{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefVirtualMachineWithDefaults instantiates a new BriefVirtualMachine object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualMachineWithDefaults() *BriefVirtualMachine { + this := BriefVirtualMachine{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVirtualMachine) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVirtualMachine) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVirtualMachine) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVirtualMachine) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVirtualMachine) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVirtualMachine) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVirtualMachine) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualMachine) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualMachine) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachine) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualMachine) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualMachine) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualMachine) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualMachine) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualMachine) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualMachine := _BriefVirtualMachine{} + + err = json.Unmarshal(data, &varBriefVirtualMachine) + + if err != nil { + return err + } + + *o = BriefVirtualMachine(varBriefVirtualMachine) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualMachine struct { + value *BriefVirtualMachine + isSet bool +} + +func (v NullableBriefVirtualMachine) Get() *BriefVirtualMachine { + return v.value +} + +func (v *NullableBriefVirtualMachine) Set(val *BriefVirtualMachine) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualMachine) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualMachine) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualMachine(val *BriefVirtualMachine) *NullableBriefVirtualMachine { + return &NullableBriefVirtualMachine{value: val, isSet: true} +} + +func (v NullableBriefVirtualMachine) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualMachine) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_virtual_machine_request.go b/model_brief_virtual_machine_request.go new file mode 100644 index 000000000..4a80df37b --- /dev/null +++ b/model_brief_virtual_machine_request.go @@ -0,0 +1,205 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVirtualMachineRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVirtualMachineRequest{} + +// BriefVirtualMachineRequest Adds support for custom fields and tags. +type BriefVirtualMachineRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVirtualMachineRequest BriefVirtualMachineRequest + +// NewBriefVirtualMachineRequest instantiates a new BriefVirtualMachineRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVirtualMachineRequest(name string) *BriefVirtualMachineRequest { + this := BriefVirtualMachineRequest{} + this.Name = name + return &this +} + +// NewBriefVirtualMachineRequestWithDefaults instantiates a new BriefVirtualMachineRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVirtualMachineRequestWithDefaults() *BriefVirtualMachineRequest { + this := BriefVirtualMachineRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVirtualMachineRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachineRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVirtualMachineRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVirtualMachineRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVirtualMachineRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVirtualMachineRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVirtualMachineRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVirtualMachineRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVirtualMachineRequest := _BriefVirtualMachineRequest{} + + err = json.Unmarshal(data, &varBriefVirtualMachineRequest) + + if err != nil { + return err + } + + *o = BriefVirtualMachineRequest(varBriefVirtualMachineRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVirtualMachineRequest struct { + value *BriefVirtualMachineRequest + isSet bool +} + +func (v NullableBriefVirtualMachineRequest) Get() *BriefVirtualMachineRequest { + return v.value +} + +func (v *NullableBriefVirtualMachineRequest) Set(val *BriefVirtualMachineRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVirtualMachineRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVirtualMachineRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVirtualMachineRequest(val *BriefVirtualMachineRequest) *NullableBriefVirtualMachineRequest { + return &NullableBriefVirtualMachineRequest{value: val, isSet: true} +} + +func (v NullableBriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVirtualMachineRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan.go b/model_brief_vlan.go new file mode 100644 index 000000000..25497f0e3 --- /dev/null +++ b/model_brief_vlan.go @@ -0,0 +1,322 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLAN type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLAN{} + +// BriefVLAN Adds support for custom fields and tags. +type BriefVLAN struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + // Numeric VLAN ID (1-4094) + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLAN BriefVLAN + +// NewBriefVLAN instantiates a new BriefVLAN object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLAN(id int32, url string, display string, vid int32, name string) *BriefVLAN { + this := BriefVLAN{} + this.Id = id + this.Url = url + this.Display = display + this.Vid = vid + this.Name = name + return &this +} + +// NewBriefVLANWithDefaults instantiates a new BriefVLAN object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANWithDefaults() *BriefVLAN { + this := BriefVLAN{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLAN) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLAN) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVLAN) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLAN) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVLAN) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLAN) SetDisplay(v string) { + o.Display = v +} + +// GetVid returns the Vid field value +func (o *BriefVLAN) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *BriefVLAN) SetVid(v int32) { + o.Vid = v +} + +// GetName returns the Name field value +func (o *BriefVLAN) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLAN) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLAN) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLAN) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLAN) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLAN) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLAN) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLAN) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLAN) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "vid", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLAN := _BriefVLAN{} + + err = json.Unmarshal(data, &varBriefVLAN) + + if err != nil { + return err + } + + *o = BriefVLAN(varBriefVLAN) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLAN struct { + value *BriefVLAN + isSet bool +} + +func (v NullableBriefVLAN) Get() *BriefVLAN { + return v.value +} + +func (v *NullableBriefVLAN) Set(val *BriefVLAN) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLAN) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLAN) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLAN(val *BriefVLAN) *NullableBriefVLAN { + return &NullableBriefVLAN{value: val, isSet: true} +} + +func (v NullableBriefVLAN) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLAN) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_group.go b/model_brief_vlan_group.go new file mode 100644 index 000000000..3f925a51e --- /dev/null +++ b/model_brief_vlan_group.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANGroup{} + +// BriefVLANGroup Adds support for custom fields and tags. +type BriefVLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + VlanCount int64 `json:"vlan_count"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANGroup BriefVLANGroup + +// NewBriefVLANGroup instantiates a new BriefVLANGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLANGroup(id int32, url string, display string, name string, slug string, vlanCount int64) *BriefVLANGroup { + this := BriefVLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.VlanCount = vlanCount + return &this +} + +// NewBriefVLANGroupWithDefaults instantiates a new BriefVLANGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANGroupWithDefaults() *BriefVLANGroup { + this := BriefVLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVLANGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVLANGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVLANGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVLANGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVLANGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVLANGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVLANGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefVLANGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVLANGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLANGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLANGroup) SetDescription(v string) { + o.Description = &v +} + +// GetVlanCount returns the VlanCount field value +func (o *BriefVLANGroup) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroup) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *BriefVLANGroup) SetVlanCount(v int64) { + o.VlanCount = v +} + +func (o BriefVLANGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["vlan_count"] = o.VlanCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "vlan_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLANGroup := _BriefVLANGroup{} + + err = json.Unmarshal(data, &varBriefVLANGroup) + + if err != nil { + return err + } + + *o = BriefVLANGroup(varBriefVLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "vlan_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANGroup struct { + value *BriefVLANGroup + isSet bool +} + +func (v NullableBriefVLANGroup) Get() *BriefVLANGroup { + return v.value +} + +func (v *NullableBriefVLANGroup) Set(val *BriefVLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANGroup(val *BriefVLANGroup) *NullableBriefVLANGroup { + return &NullableBriefVLANGroup{value: val, isSet: true} +} + +func (v NullableBriefVLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_group_request.go b/model_brief_vlan_group_request.go new file mode 100644 index 000000000..e1a37c2be --- /dev/null +++ b/model_brief_vlan_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANGroupRequest{} + +// BriefVLANGroupRequest Adds support for custom fields and tags. +type BriefVLANGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANGroupRequest BriefVLANGroupRequest + +// NewBriefVLANGroupRequest instantiates a new BriefVLANGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLANGroupRequest(name string, slug string) *BriefVLANGroupRequest { + this := BriefVLANGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefVLANGroupRequestWithDefaults instantiates a new BriefVLANGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANGroupRequestWithDefaults() *BriefVLANGroupRequest { + this := BriefVLANGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVLANGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefVLANGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefVLANGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefVLANGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLANGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLANGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLANGroupRequest := _BriefVLANGroupRequest{} + + err = json.Unmarshal(data, &varBriefVLANGroupRequest) + + if err != nil { + return err + } + + *o = BriefVLANGroupRequest(varBriefVLANGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANGroupRequest struct { + value *BriefVLANGroupRequest + isSet bool +} + +func (v NullableBriefVLANGroupRequest) Get() *BriefVLANGroupRequest { + return v.value +} + +func (v *NullableBriefVLANGroupRequest) Set(val *BriefVLANGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANGroupRequest(val *BriefVLANGroupRequest) *NullableBriefVLANGroupRequest { + return &NullableBriefVLANGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vlan_request.go b/model_brief_vlan_request.go new file mode 100644 index 000000000..8720223bd --- /dev/null +++ b/model_brief_vlan_request.go @@ -0,0 +1,235 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVLANRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVLANRequest{} + +// BriefVLANRequest Adds support for custom fields and tags. +type BriefVLANRequest struct { + // Numeric VLAN ID (1-4094) + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVLANRequest BriefVLANRequest + +// NewBriefVLANRequest instantiates a new BriefVLANRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVLANRequest(vid int32, name string) *BriefVLANRequest { + this := BriefVLANRequest{} + this.Vid = vid + this.Name = name + return &this +} + +// NewBriefVLANRequestWithDefaults instantiates a new BriefVLANRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVLANRequestWithDefaults() *BriefVLANRequest { + this := BriefVLANRequest{} + return &this +} + +// GetVid returns the Vid field value +func (o *BriefVLANRequest) GetVid() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Vid +} + +// GetVidOk returns a tuple with the Vid field value +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetVidOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Vid, true +} + +// SetVid sets field value +func (o *BriefVLANRequest) SetVid(v int32) { + o.Vid = v +} + +// GetName returns the Name field value +func (o *BriefVLANRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVLANRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVLANRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVLANRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVLANRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVLANRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVLANRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVLANRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["vid"] = o.Vid + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVLANRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "vid", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVLANRequest := _BriefVLANRequest{} + + err = json.Unmarshal(data, &varBriefVLANRequest) + + if err != nil { + return err + } + + *o = BriefVLANRequest(varBriefVLANRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "vid") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVLANRequest struct { + value *BriefVLANRequest + isSet bool +} + +func (v NullableBriefVLANRequest) Get() *BriefVLANRequest { + return v.value +} + +func (v *NullableBriefVLANRequest) Set(val *BriefVLANRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVLANRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVLANRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVLANRequest(val *BriefVLANRequest) *NullableBriefVLANRequest { + return &NullableBriefVLANRequest{value: val, isSet: true} +} + +func (v NullableBriefVLANRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVLANRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vrf.go b/model_brief_vrf.go new file mode 100644 index 000000000..a85c3f202 --- /dev/null +++ b/model_brief_vrf.go @@ -0,0 +1,377 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVRF type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVRF{} + +// BriefVRF Adds support for custom fields and tags. +type BriefVRF struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + // Unique route distinguisher (as defined in RFC 4364) + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVRF BriefVRF + +// NewBriefVRF instantiates a new BriefVRF object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVRF(id int32, url string, display string, name string) *BriefVRF { + this := BriefVRF{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + return &this +} + +// NewBriefVRFWithDefaults instantiates a new BriefVRF object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVRFWithDefaults() *BriefVRF { + this := BriefVRF{} + return &this +} + +// GetId returns the Id field value +func (o *BriefVRF) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefVRF) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefVRF) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefVRF) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefVRF) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefVRF) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefVRF) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVRF) SetName(v string) { + o.Name = v +} + +// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVRF) GetRd() string { + if o == nil || IsNil(o.Rd.Get()) { + var ret string + return ret + } + return *o.Rd.Get() +} + +// GetRdOk returns a tuple with the Rd field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVRF) GetRdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rd.Get(), o.Rd.IsSet() +} + +// HasRd returns a boolean if a field has been set. +func (o *BriefVRF) HasRd() bool { + if o != nil && o.Rd.IsSet() { + return true + } + + return false +} + +// SetRd gets a reference to the given NullableString and assigns it to the Rd field. +func (o *BriefVRF) SetRd(v string) { + o.Rd.Set(&v) +} +// SetRdNil sets the value for Rd to be an explicit nil +func (o *BriefVRF) SetRdNil() { + o.Rd.Set(nil) +} + +// UnsetRd ensures that no value is present for Rd, not even an explicit nil +func (o *BriefVRF) UnsetRd() { + o.Rd.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVRF) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVRF) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVRF) SetDescription(v string) { + o.Description = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *BriefVRF) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVRF) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *BriefVRF) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *BriefVRF) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +func (o BriefVRF) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVRF) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + if o.Rd.IsSet() { + toSerialize["rd"] = o.Rd.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVRF) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVRF := _BriefVRF{} + + err = json.Unmarshal(data, &varBriefVRF) + + if err != nil { + return err + } + + *o = BriefVRF(varBriefVRF) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "rd") + delete(additionalProperties, "description") + delete(additionalProperties, "prefix_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVRF struct { + value *BriefVRF + isSet bool +} + +func (v NullableBriefVRF) Get() *BriefVRF { + return v.value +} + +func (v *NullableBriefVRF) Set(val *BriefVRF) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVRF) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVRF) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVRF(val *BriefVRF) *NullableBriefVRF { + return &NullableBriefVRF{value: val, isSet: true} +} + +func (v NullableBriefVRF) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVRF) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_vrf_request.go b/model_brief_vrf_request.go new file mode 100644 index 000000000..3e0bccae9 --- /dev/null +++ b/model_brief_vrf_request.go @@ -0,0 +1,253 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefVRFRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefVRFRequest{} + +// BriefVRFRequest Adds support for custom fields and tags. +type BriefVRFRequest struct { + Name string `json:"name"` + // Unique route distinguisher (as defined in RFC 4364) + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefVRFRequest BriefVRFRequest + +// NewBriefVRFRequest instantiates a new BriefVRFRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefVRFRequest(name string) *BriefVRFRequest { + this := BriefVRFRequest{} + this.Name = name + return &this +} + +// NewBriefVRFRequestWithDefaults instantiates a new BriefVRFRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefVRFRequestWithDefaults() *BriefVRFRequest { + this := BriefVRFRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefVRFRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefVRFRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefVRFRequest) SetName(v string) { + o.Name = v +} + +// GetRd returns the Rd field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *BriefVRFRequest) GetRd() string { + if o == nil || IsNil(o.Rd.Get()) { + var ret string + return ret + } + return *o.Rd.Get() +} + +// GetRdOk returns a tuple with the Rd field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *BriefVRFRequest) GetRdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Rd.Get(), o.Rd.IsSet() +} + +// HasRd returns a boolean if a field has been set. +func (o *BriefVRFRequest) HasRd() bool { + if o != nil && o.Rd.IsSet() { + return true + } + + return false +} + +// SetRd gets a reference to the given NullableString and assigns it to the Rd field. +func (o *BriefVRFRequest) SetRd(v string) { + o.Rd.Set(&v) +} +// SetRdNil sets the value for Rd to be an explicit nil +func (o *BriefVRFRequest) SetRdNil() { + o.Rd.Set(nil) +} + +// UnsetRd ensures that no value is present for Rd, not even an explicit nil +func (o *BriefVRFRequest) UnsetRd() { + o.Rd.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefVRFRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefVRFRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefVRFRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefVRFRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefVRFRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefVRFRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if o.Rd.IsSet() { + toSerialize["rd"] = o.Rd.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefVRFRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefVRFRequest := _BriefVRFRequest{} + + err = json.Unmarshal(data, &varBriefVRFRequest) + + if err != nil { + return err + } + + *o = BriefVRFRequest(varBriefVRFRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "rd") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefVRFRequest struct { + value *BriefVRFRequest + isSet bool +} + +func (v NullableBriefVRFRequest) Get() *BriefVRFRequest { + return v.value +} + +func (v *NullableBriefVRFRequest) Set(val *BriefVRFRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefVRFRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefVRFRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefVRFRequest(val *BriefVRFRequest) *NullableBriefVRFRequest { + return &NullableBriefVRFRequest{value: val, isSet: true} +} + +func (v NullableBriefVRFRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefVRFRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go new file mode 100644 index 000000000..7f8f91dea --- /dev/null +++ b/model_brief_wireless_lan_group.go @@ -0,0 +1,379 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefWirelessLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefWirelessLANGroup{} + +// BriefWirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. +type BriefWirelessLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _BriefWirelessLANGroup BriefWirelessLANGroup + +// NewBriefWirelessLANGroup instantiates a new BriefWirelessLANGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *BriefWirelessLANGroup { + this := BriefWirelessLANGroup{} + this.Id = id + this.Url = url + this.Display = display + this.Name = name + this.Slug = slug + this.WirelesslanCount = wirelesslanCount + this.Depth = depth + return &this +} + +// NewBriefWirelessLANGroupWithDefaults instantiates a new BriefWirelessLANGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefWirelessLANGroupWithDefaults() *BriefWirelessLANGroup { + this := BriefWirelessLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *BriefWirelessLANGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *BriefWirelessLANGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *BriefWirelessLANGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *BriefWirelessLANGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *BriefWirelessLANGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *BriefWirelessLANGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *BriefWirelessLANGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefWirelessLANGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefWirelessLANGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefWirelessLANGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefWirelessLANGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefWirelessLANGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefWirelessLANGroup) SetDescription(v string) { + o.Description = &v +} + +// GetWirelesslanCount returns the WirelesslanCount field value +func (o *BriefWirelessLANGroup) GetWirelesslanCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.WirelesslanCount +} + +// GetWirelesslanCountOk returns a tuple with the WirelesslanCount field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetWirelesslanCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.WirelesslanCount, true +} + +// SetWirelesslanCount sets field value +func (o *BriefWirelessLANGroup) SetWirelesslanCount(v int32) { + o.WirelesslanCount = v +} + +// GetDepth returns the Depth field value +func (o *BriefWirelessLANGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *BriefWirelessLANGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefWirelessLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["wirelesslan_count"] = o.WirelesslanCount + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "name", + "slug", + "wirelesslan_count", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefWirelessLANGroup := _BriefWirelessLANGroup{} + + err = json.Unmarshal(data, &varBriefWirelessLANGroup) + + if err != nil { + return err + } + + *o = BriefWirelessLANGroup(varBriefWirelessLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "wirelesslan_count") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefWirelessLANGroup struct { + value *BriefWirelessLANGroup + isSet bool +} + +func (v NullableBriefWirelessLANGroup) Get() *BriefWirelessLANGroup { + return v.value +} + +func (v *NullableBriefWirelessLANGroup) Set(val *BriefWirelessLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableBriefWirelessLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefWirelessLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefWirelessLANGroup(val *BriefWirelessLANGroup) *NullableBriefWirelessLANGroup { + return &NullableBriefWirelessLANGroup{value: val, isSet: true} +} + +func (v NullableBriefWirelessLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefWirelessLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_brief_wireless_lan_group_request.go b/model_brief_wireless_lan_group_request.go new file mode 100644 index 000000000..9fecaf299 --- /dev/null +++ b/model_brief_wireless_lan_group_request.go @@ -0,0 +1,234 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the BriefWirelessLANGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &BriefWirelessLANGroupRequest{} + +// BriefWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. +type BriefWirelessLANGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _BriefWirelessLANGroupRequest BriefWirelessLANGroupRequest + +// NewBriefWirelessLANGroupRequest instantiates a new BriefWirelessLANGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewBriefWirelessLANGroupRequest(name string, slug string) *BriefWirelessLANGroupRequest { + this := BriefWirelessLANGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewBriefWirelessLANGroupRequestWithDefaults instantiates a new BriefWirelessLANGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewBriefWirelessLANGroupRequestWithDefaults() *BriefWirelessLANGroupRequest { + this := BriefWirelessLANGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *BriefWirelessLANGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *BriefWirelessLANGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *BriefWirelessLANGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *BriefWirelessLANGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *BriefWirelessLANGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *BriefWirelessLANGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *BriefWirelessLANGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *BriefWirelessLANGroupRequest) SetDescription(v string) { + o.Description = &v +} + +func (o BriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o BriefWirelessLANGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *BriefWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varBriefWirelessLANGroupRequest := _BriefWirelessLANGroupRequest{} + + err = json.Unmarshal(data, &varBriefWirelessLANGroupRequest) + + if err != nil { + return err + } + + *o = BriefWirelessLANGroupRequest(varBriefWirelessLANGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableBriefWirelessLANGroupRequest struct { + value *BriefWirelessLANGroupRequest + isSet bool +} + +func (v NullableBriefWirelessLANGroupRequest) Get() *BriefWirelessLANGroupRequest { + return v.value +} + +func (v *NullableBriefWirelessLANGroupRequest) Set(val *BriefWirelessLANGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableBriefWirelessLANGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableBriefWirelessLANGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableBriefWirelessLANGroupRequest(val *BriefWirelessLANGroupRequest) *NullableBriefWirelessLANGroupRequest { + return &NullableBriefWirelessLANGroupRequest{value: val, isSet: true} +} + +func (v NullableBriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableBriefWirelessLANGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cable.go b/model_cable.go index b9a89b5f0..c80822dc0 100644 --- a/model_cable.go +++ b/model_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Cable type satisfies the MappedNullable interface at compile time @@ -20,11 +21,25 @@ var _ MappedNullable = &Cable{} // Cable Adds support for custom fields and tags. type Cable struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObject `json:"a_terminations,omitempty"` + BTerminations []GenericObject `json:"b_terminations,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,11 +49,14 @@ type _Cable Cable // 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 NewCable(id int32, url string, display string) *Cable { +func NewCable(id int32, url string, displayUrl string, display string, created NullableTime, lastUpdated NullableTime) *Cable { this := Cable{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -98,6 +116,30 @@ func (o *Cable) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Cable) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Cable) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Cable) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Cable) GetDisplay() string { if o == nil { @@ -122,6 +164,177 @@ func (o *Cable) SetDisplay(v string) { o.Display = v } +// GetType returns the Type field value if set, zero value otherwise. +func (o *Cable) GetType() CableType { + if o == nil || IsNil(o.Type) { + var ret CableType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetTypeOk() (*CableType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Cable) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *Cable) SetType(v CableType) { + o.Type = &v +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *Cable) GetATerminations() []GenericObject { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObject + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetATerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *Cable) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObject and assigns it to the ATerminations field. +func (o *Cable) SetATerminations(v []GenericObject) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *Cable) GetBTerminations() []GenericObject { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObject + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetBTerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *Cable) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObject and assigns it to the BTerminations field. +func (o *Cable) SetBTerminations(v []GenericObject) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cable) GetStatus() CableStatus { + if o == nil || IsNil(o.Status) { + var ret CableStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetStatusOk() (*CableStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cable) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *Cable) SetStatus(v CableStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Cable) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cable) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cable) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cable) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *Cable) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -154,6 +367,124 @@ func (o *Cable) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *Cable) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *Cable) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *Cable) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *Cable) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +func (o *Cable) SetLength(v float64) { + o.Length.Set(&v) +} + +// SetLengthNil sets the value for Length to be an explicit nil +func (o *Cable) SetLengthNil() { + o.Length.Set(nil) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *Cable) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLengthUnit() CableLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *Cable) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableLengthUnit and assigns it to the LengthUnit field. +func (o *Cable) SetLengthUnit(v CableLengthUnit) { + o.LengthUnit.Set(&v) +} + +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *Cable) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *Cable) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cable) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -186,6 +517,154 @@ func (o *Cable) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cable) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cable) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cable) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cable) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Cable) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Cable) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cable) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Cable) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Cable) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cable) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Cable) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cable) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Cable) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Cable) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -198,13 +677,49 @@ func (o Cable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -220,7 +735,10 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -252,9 +770,23 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go new file mode 100644 index 000000000..02efbf192 --- /dev/null +++ b/model_cable_length_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CableLengthUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CableLengthUnit{} + +// CableLengthUnit struct for CableLengthUnit +type CableLengthUnit struct { + Value *CableLengthUnitValue `json:"value,omitempty"` + Label *CableLengthUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CableLengthUnit CableLengthUnit + +// NewCableLengthUnit instantiates a new CableLengthUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCableLengthUnit() *CableLengthUnit { + this := CableLengthUnit{} + return &this +} + +// NewCableLengthUnitWithDefaults instantiates a new CableLengthUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCableLengthUnitWithDefaults() *CableLengthUnit { + this := CableLengthUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CableLengthUnit) GetValue() CableLengthUnitValue { + if o == nil || IsNil(o.Value) { + var ret CableLengthUnitValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableLengthUnit) GetValueOk() (*CableLengthUnitValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CableLengthUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CableLengthUnitValue and assigns it to the Value field. +func (o *CableLengthUnit) SetValue(v CableLengthUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CableLengthUnit) GetLabel() CableLengthUnitLabel { + if o == nil || IsNil(o.Label) { + var ret CableLengthUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableLengthUnit) GetLabelOk() (*CableLengthUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CableLengthUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CableLengthUnitLabel and assigns it to the Label field. +func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel) { + o.Label = &v +} + +func (o CableLengthUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CableLengthUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CableLengthUnit) UnmarshalJSON(data []byte) (err error) { + varCableLengthUnit := _CableLengthUnit{} + + err = json.Unmarshal(data, &varCableLengthUnit) + + if err != nil { + return err + } + + *o = CableLengthUnit(varCableLengthUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCableLengthUnit struct { + value *CableLengthUnit + isSet bool +} + +func (v NullableCableLengthUnit) Get() *CableLengthUnit { + return v.value +} + +func (v *NullableCableLengthUnit) Set(val *CableLengthUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnit(val *CableLengthUnit) *NullableCableLengthUnit { + return &NullableCableLengthUnit{value: val, isSet: true} +} + +func (v NullableCableLengthUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go new file mode 100644 index 000000000..081ba0326 --- /dev/null +++ b/model_cable_length_unit_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableLengthUnitLabel the model 'CableLengthUnitLabel' +type CableLengthUnitLabel string + +// List of Cable_length_unit_label +const ( + CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers" + CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters" + CABLELENGTHUNITLABEL_CENTIMETERS CableLengthUnitLabel = "Centimeters" + CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles" + CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet" + CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches" +) + +// All allowed values of CableLengthUnitLabel enum +var AllowedCableLengthUnitLabelEnumValues = []CableLengthUnitLabel{ + "Kilometers", + "Meters", + "Centimeters", + "Miles", + "Feet", + "Inches", +} + +func (v *CableLengthUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableLengthUnitLabel(value) + for _, existing := range AllowedCableLengthUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableLengthUnitLabel", value) +} + +// NewCableLengthUnitLabelFromValue returns a pointer to a valid CableLengthUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableLengthUnitLabelFromValue(v string) (*CableLengthUnitLabel, error) { + ev := CableLengthUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableLengthUnitLabel: valid values are %v", v, AllowedCableLengthUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableLengthUnitLabel) IsValid() bool { + for _, existing := range AllowedCableLengthUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_length_unit_label value +func (v CableLengthUnitLabel) Ptr() *CableLengthUnitLabel { + return &v +} + +type NullableCableLengthUnitLabel struct { + value *CableLengthUnitLabel + isSet bool +} + +func (v NullableCableLengthUnitLabel) Get() *CableLengthUnitLabel { + return v.value +} + +func (v *NullableCableLengthUnitLabel) Set(val *CableLengthUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnitLabel(val *CableLengthUnitLabel) *NullableCableLengthUnitLabel { + return &NullableCableLengthUnitLabel{value: val, isSet: true} +} + +func (v NullableCableLengthUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_length_unit_value.go b/model_cable_length_unit_value.go new file mode 100644 index 000000000..8f227bce1 --- /dev/null +++ b/model_cable_length_unit_value.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableLengthUnitValue * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +type CableLengthUnitValue string + +// List of Cable_length_unit_value +const ( + CABLELENGTHUNITVALUE_KM CableLengthUnitValue = "km" + CABLELENGTHUNITVALUE_M CableLengthUnitValue = "m" + CABLELENGTHUNITVALUE_CM CableLengthUnitValue = "cm" + CABLELENGTHUNITVALUE_MI CableLengthUnitValue = "mi" + CABLELENGTHUNITVALUE_FT CableLengthUnitValue = "ft" + CABLELENGTHUNITVALUE_IN CableLengthUnitValue = "in" + CABLELENGTHUNITVALUE_EMPTY CableLengthUnitValue = "" +) + +// All allowed values of CableLengthUnitValue enum +var AllowedCableLengthUnitValueEnumValues = []CableLengthUnitValue{ + "km", + "m", + "cm", + "mi", + "ft", + "in", + "", +} + +func (v *CableLengthUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableLengthUnitValue(value) + for _, existing := range AllowedCableLengthUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableLengthUnitValue", value) +} + +// NewCableLengthUnitValueFromValue returns a pointer to a valid CableLengthUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableLengthUnitValueFromValue(v string) (*CableLengthUnitValue, error) { + ev := CableLengthUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableLengthUnitValue: valid values are %v", v, AllowedCableLengthUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableLengthUnitValue) IsValid() bool { + for _, existing := range AllowedCableLengthUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_length_unit_value value +func (v CableLengthUnitValue) Ptr() *CableLengthUnitValue { + return &v +} + +type NullableCableLengthUnitValue struct { + value *CableLengthUnitValue + isSet bool +} + +func (v NullableCableLengthUnitValue) Get() *CableLengthUnitValue { + return v.value +} + +func (v *NullableCableLengthUnitValue) Set(val *CableLengthUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableCableLengthUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCableLengthUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableLengthUnitValue(val *CableLengthUnitValue) *NullableCableLengthUnitValue { + return &NullableCableLengthUnitValue{value: val, isSet: true} +} + +func (v NullableCableLengthUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableLengthUnitValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_request.go b/model_cable_request.go index 0b4bad8c8..680ac3157 100644 --- a/model_cable_request.go +++ b/model_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,19 @@ var _ MappedNullable = &CableRequest{} // CableRequest Adds support for custom fields and tags. type CableRequest struct { - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,6 +54,177 @@ func NewCableRequestWithDefaults() *CableRequest { return &this } +// GetType returns the Type field value if set, zero value otherwise. +func (o *CableRequest) GetType() CableType { + if o == nil || IsNil(o.Type) { + var ret CableType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetTypeOk() (*CableType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CableRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *CableRequest) SetType(v CableType) { + o.Type = &v +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *CableRequest) GetATerminations() []GenericObjectRequest { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObjectRequest + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetATerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *CableRequest) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObjectRequest and assigns it to the ATerminations field. +func (o *CableRequest) SetATerminations(v []GenericObjectRequest) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *CableRequest) GetBTerminations() []GenericObjectRequest { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObjectRequest + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetBTerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *CableRequest) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObjectRequest and assigns it to the BTerminations field. +func (o *CableRequest) SetBTerminations(v []GenericObjectRequest) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CableRequest) GetStatus() CableStatusValue { + if o == nil || IsNil(o.Status) { + var ret CableStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CableRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *CableRequest) SetStatus(v CableStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CableRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CableRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CableRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CableRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *CableRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -75,6 +257,124 @@ func (o *CableRequest) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *CableRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *CableRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *CableRequest) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *CableRequest) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +func (o *CableRequest) SetLength(v float64) { + o.Length.Set(&v) +} + +// SetLengthNil sets the value for Length to be an explicit nil +func (o *CableRequest) SetLengthNil() { + o.Length.Set(nil) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *CableRequest) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableRequestLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *CableRequest) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit) { + o.LengthUnit.Set(&v) +} + +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *CableRequest) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *CableRequest) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CableRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -107,6 +407,102 @@ func (o *CableRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CableRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CableRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CableRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CableRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CableRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CableRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CableRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CableRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CableRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o CableRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -117,12 +513,45 @@ func (o CableRequest) MarshalJSON() ([]byte, error) { func (o CableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -145,8 +574,19 @@ func (o *CableRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go new file mode 100644 index 000000000..72263943c --- /dev/null +++ b/model_cable_request_length_unit.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableRequestLengthUnit * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches +type CableRequestLengthUnit string + +// List of CableRequest_length_unit +const ( + CABLEREQUESTLENGTHUNIT_KM CableRequestLengthUnit = "km" + CABLEREQUESTLENGTHUNIT_M CableRequestLengthUnit = "m" + CABLEREQUESTLENGTHUNIT_CM CableRequestLengthUnit = "cm" + CABLEREQUESTLENGTHUNIT_MI CableRequestLengthUnit = "mi" + CABLEREQUESTLENGTHUNIT_FT CableRequestLengthUnit = "ft" + CABLEREQUESTLENGTHUNIT_IN CableRequestLengthUnit = "in" + CABLEREQUESTLENGTHUNIT_EMPTY CableRequestLengthUnit = "" +) + +// All allowed values of CableRequestLengthUnit enum +var AllowedCableRequestLengthUnitEnumValues = []CableRequestLengthUnit{ + "km", + "m", + "cm", + "mi", + "ft", + "in", + "", +} + +func (v *CableRequestLengthUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableRequestLengthUnit(value) + for _, existing := range AllowedCableRequestLengthUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableRequestLengthUnit", value) +} + +// NewCableRequestLengthUnitFromValue returns a pointer to a valid CableRequestLengthUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableRequestLengthUnitFromValue(v string) (*CableRequestLengthUnit, error) { + ev := CableRequestLengthUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableRequestLengthUnit: valid values are %v", v, AllowedCableRequestLengthUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableRequestLengthUnit) IsValid() bool { + for _, existing := range AllowedCableRequestLengthUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to CableRequest_length_unit value +func (v CableRequestLengthUnit) Ptr() *CableRequestLengthUnit { + return &v +} + +type NullableCableRequestLengthUnit struct { + value *CableRequestLengthUnit + isSet bool +} + +func (v NullableCableRequestLengthUnit) Get() *CableRequestLengthUnit { + return v.value +} + +func (v *NullableCableRequestLengthUnit) Set(val *CableRequestLengthUnit) { + v.value = val + v.isSet = true +} + +func (v NullableCableRequestLengthUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableCableRequestLengthUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableRequestLengthUnit(val *CableRequestLengthUnit) *NullableCableRequestLengthUnit { + return &NullableCableRequestLengthUnit{value: val, isSet: true} +} + +func (v NullableCableRequestLengthUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableRequestLengthUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_status.go b/model_cable_status.go new file mode 100644 index 000000000..b6a64294f --- /dev/null +++ b/model_cable_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CableStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CableStatus{} + +// CableStatus struct for CableStatus +type CableStatus struct { + Value *CableStatusValue `json:"value,omitempty"` + Label *CableStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CableStatus CableStatus + +// NewCableStatus instantiates a new CableStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCableStatus() *CableStatus { + this := CableStatus{} + return &this +} + +// NewCableStatusWithDefaults instantiates a new CableStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCableStatusWithDefaults() *CableStatus { + this := CableStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CableStatus) GetValue() CableStatusValue { + if o == nil || IsNil(o.Value) { + var ret CableStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableStatus) GetValueOk() (*CableStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CableStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CableStatusValue and assigns it to the Value field. +func (o *CableStatus) SetValue(v CableStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CableStatus) GetLabel() CableStatusLabel { + if o == nil || IsNil(o.Label) { + var ret CableStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableStatus) GetLabelOk() (*CableStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CableStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CableStatusLabel and assigns it to the Label field. +func (o *CableStatus) SetLabel(v CableStatusLabel) { + o.Label = &v +} + +func (o CableStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CableStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CableStatus) UnmarshalJSON(data []byte) (err error) { + varCableStatus := _CableStatus{} + + err = json.Unmarshal(data, &varCableStatus) + + if err != nil { + return err + } + + *o = CableStatus(varCableStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCableStatus struct { + value *CableStatus + isSet bool +} + +func (v NullableCableStatus) Get() *CableStatus { + return v.value +} + +func (v *NullableCableStatus) Set(val *CableStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatus(val *CableStatus) *NullableCableStatus { + return &NullableCableStatus{value: val, isSet: true} +} + +func (v NullableCableStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cable_status_label.go b/model_cable_status_label.go new file mode 100644 index 000000000..6573e7123 --- /dev/null +++ b/model_cable_status_label.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableStatusLabel the model 'CableStatusLabel' +type CableStatusLabel string + +// List of Cable_status_label +const ( + CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected" + CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned" + CABLESTATUSLABEL_DECOMMISSIONING CableStatusLabel = "Decommissioning" +) + +// All allowed values of CableStatusLabel enum +var AllowedCableStatusLabelEnumValues = []CableStatusLabel{ + "Connected", + "Planned", + "Decommissioning", +} + +func (v *CableStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableStatusLabel(value) + for _, existing := range AllowedCableStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableStatusLabel", value) +} + +// NewCableStatusLabelFromValue returns a pointer to a valid CableStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableStatusLabelFromValue(v string) (*CableStatusLabel, error) { + ev := CableStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableStatusLabel: valid values are %v", v, AllowedCableStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableStatusLabel) IsValid() bool { + for _, existing := range AllowedCableStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_status_label value +func (v CableStatusLabel) Ptr() *CableStatusLabel { + return &v +} + +type NullableCableStatusLabel struct { + value *CableStatusLabel + isSet bool +} + +func (v NullableCableStatusLabel) Get() *CableStatusLabel { + return v.value +} + +func (v *NullableCableStatusLabel) Set(val *CableStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatusLabel(val *CableStatusLabel) *NullableCableStatusLabel { + return &NullableCableStatusLabel{value: val, isSet: true} +} + +func (v NullableCableStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_status_value.go b/model_cable_status_value.go new file mode 100644 index 000000000..ee55ca3f3 --- /dev/null +++ b/model_cable_status_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableStatusValue * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +type CableStatusValue string + +// List of Cable_status_value +const ( + CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected" + CABLESTATUSVALUE_PLANNED CableStatusValue = "planned" + CABLESTATUSVALUE_DECOMMISSIONING CableStatusValue = "decommissioning" +) + +// All allowed values of CableStatusValue enum +var AllowedCableStatusValueEnumValues = []CableStatusValue{ + "connected", + "planned", + "decommissioning", +} + +func (v *CableStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableStatusValue(value) + for _, existing := range AllowedCableStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableStatusValue", value) +} + +// NewCableStatusValueFromValue returns a pointer to a valid CableStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableStatusValueFromValue(v string) (*CableStatusValue, error) { + ev := CableStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableStatusValue: valid values are %v", v, AllowedCableStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableStatusValue) IsValid() bool { + for _, existing := range AllowedCableStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_status_value value +func (v CableStatusValue) Ptr() *CableStatusValue { + return &v +} + +type NullableCableStatusValue struct { + value *CableStatusValue + isSet bool +} + +func (v NullableCableStatusValue) Get() *CableStatusValue { + return v.value +} + +func (v *NullableCableStatusValue) Set(val *CableStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableCableStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCableStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableStatusValue(val *CableStatusValue) *NullableCableStatusValue { + return &NullableCableStatusValue{value: val, isSet: true} +} + +func (v NullableCableStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cable_termination.go b/model_cable_termination.go index 3e2427ac6..066bfc3a6 100644 --- a/model_cable_termination.go +++ b/model_cable_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go index fb17abb8a..ef4b6ca4e 100644 --- a/model_cable_termination_request.go +++ b/model_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_type.go b/model_cable_type.go new file mode 100644 index 000000000..7d0df7a7b --- /dev/null +++ b/model_cable_type.go @@ -0,0 +1,157 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CableType * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +type CableType string + +// List of Cable_type +const ( + CABLETYPE_CAT3 CableType = "cat3" + CABLETYPE_CAT5 CableType = "cat5" + CABLETYPE_CAT5E CableType = "cat5e" + CABLETYPE_CAT6 CableType = "cat6" + CABLETYPE_CAT6A CableType = "cat6a" + CABLETYPE_CAT7 CableType = "cat7" + CABLETYPE_CAT7A CableType = "cat7a" + CABLETYPE_CAT8 CableType = "cat8" + CABLETYPE_DAC_ACTIVE CableType = "dac-active" + CABLETYPE_DAC_PASSIVE CableType = "dac-passive" + CABLETYPE_MRJ21_TRUNK CableType = "mrj21-trunk" + CABLETYPE_COAXIAL CableType = "coaxial" + CABLETYPE_MMF CableType = "mmf" + CABLETYPE_MMF_OM1 CableType = "mmf-om1" + CABLETYPE_MMF_OM2 CableType = "mmf-om2" + CABLETYPE_MMF_OM3 CableType = "mmf-om3" + CABLETYPE_MMF_OM4 CableType = "mmf-om4" + CABLETYPE_MMF_OM5 CableType = "mmf-om5" + CABLETYPE_SMF CableType = "smf" + CABLETYPE_SMF_OS1 CableType = "smf-os1" + CABLETYPE_SMF_OS2 CableType = "smf-os2" + CABLETYPE_AOC CableType = "aoc" + CABLETYPE_USB CableType = "usb" + CABLETYPE_POWER CableType = "power" + CABLETYPE_EMPTY CableType = "" +) + +// All allowed values of CableType enum +var AllowedCableTypeEnumValues = []CableType{ + "cat3", + "cat5", + "cat5e", + "cat6", + "cat6a", + "cat7", + "cat7a", + "cat8", + "dac-active", + "dac-passive", + "mrj21-trunk", + "coaxial", + "mmf", + "mmf-om1", + "mmf-om2", + "mmf-om3", + "mmf-om4", + "mmf-om5", + "smf", + "smf-os1", + "smf-os2", + "aoc", + "usb", + "power", + "", +} + +func (v *CableType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CableType(value) + for _, existing := range AllowedCableTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CableType", value) +} + +// NewCableTypeFromValue returns a pointer to a valid CableType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCableTypeFromValue(v string) (*CableType, error) { + ev := CableType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CableType: valid values are %v", v, AllowedCableTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CableType) IsValid() bool { + for _, existing := range AllowedCableTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cable_type value +func (v CableType) Ptr() *CableType { + return &v +} + +type NullableCableType struct { + value *CableType + isSet bool +} + +func (v NullableCableType) Get() *CableType { + return v.value +} + +func (v *NullableCableType) Set(val *CableType) { + v.value = val + v.isSet = true +} + +func (v NullableCableType) IsSet() bool { + return v.isSet +} + +func (v *NullableCableType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCableType(val *CableType) *NullableCableType { + return &NullableCableType{value: val, isSet: true} +} + +func (v NullableCableType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCableType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit.go b/model_circuit.go index bd64655eb..b6d3f1b15 100644 --- a/model_circuit.go +++ b/model_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Circuit type satisfies the MappedNullable interface at compile time @@ -20,12 +21,30 @@ var _ MappedNullable = &Circuit{} // Circuit Adds support for custom fields and tags. type Circuit struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"` + Type BriefCircuitType `json:"type"` + Status *CircuitStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` + // Committed rate + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + TerminationA NullableCircuitCircuitTermination `json:"termination_a"` + TerminationZ NullableCircuitCircuitTermination `json:"termination_z"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +54,19 @@ type _Circuit Circuit // 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 NewCircuit(id int32, url string, display string, cid string) *Circuit { +func NewCircuit(id int32, url string, displayUrl string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime) *Circuit { this := Circuit{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Cid = cid + this.Provider = provider + this.Type = type_ + this.TerminationA = terminationA + this.TerminationZ = terminationZ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +126,30 @@ func (o *Circuit) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Circuit) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Circuit) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Circuit) GetDisplay() string { if o == nil { @@ -148,6 +198,301 @@ func (o *Circuit) SetCid(v string) { o.Cid = v } +// GetProvider returns the Provider field value +func (o *Circuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *Circuit) SetProvider(v BriefProvider) { + o.Provider = v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetProviderAccount() BriefProviderAccount { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccount + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *Circuit) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccount and assigns it to the ProviderAccount field. +func (o *Circuit) SetProviderAccount(v BriefProviderAccount) { + o.ProviderAccount.Set(&v) +} + +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *Circuit) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *Circuit) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *Circuit) GetType() BriefCircuitType { + if o == nil { + var ret BriefCircuitType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Circuit) SetType(v BriefCircuitType) { + o.Type = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Circuit) GetStatus() CircuitStatus { + if o == nil || IsNil(o.Status) { + var ret CircuitStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetStatusOk() (*CircuitStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Circuit) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatus and assigns it to the Status field. +func (o *Circuit) SetStatus(v CircuitStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Circuit) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Circuit) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Circuit) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Circuit) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *Circuit) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +func (o *Circuit) SetInstallDate(v string) { + o.InstallDate.Set(&v) +} + +// SetInstallDateNil sets the value for InstallDate to be an explicit nil +func (o *Circuit) SetInstallDateNil() { + o.InstallDate.Set(nil) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *Circuit) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *Circuit) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +func (o *Circuit) SetTerminationDate(v string) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *Circuit) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *Circuit) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *Circuit) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +func (o *Circuit) SetCommitRate(v int32) { + o.CommitRate.Set(&v) +} + +// SetCommitRateNil sets the value for CommitRate to be an explicit nil +func (o *Circuit) SetCommitRateNil() { + o.CommitRate.Set(nil) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *Circuit) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Circuit) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +525,238 @@ func (o *Circuit) SetDescription(v string) { o.Description = &v } +// GetTerminationA returns the TerminationA field value +// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned +func (o *Circuit) GetTerminationA() CircuitCircuitTermination { + if o == nil || o.TerminationA.Get() == nil { + var ret CircuitCircuitTermination + return ret + } + + return *o.TerminationA.Get() +} + +// GetTerminationAOk returns a tuple with the TerminationA field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationA.Get(), o.TerminationA.IsSet() +} + +// SetTerminationA sets field value +func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) { + o.TerminationA.Set(&v) +} + +// GetTerminationZ returns the TerminationZ field value +// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned +func (o *Circuit) GetTerminationZ() CircuitCircuitTermination { + if o == nil || o.TerminationZ.Get() == nil { + var ret CircuitCircuitTermination + return ret + } + + return *o.TerminationZ.Get() +} + +// GetTerminationZOk returns a tuple with the TerminationZ field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationZ.Get(), o.TerminationZ.IsSet() +} + +// SetTerminationZ sets field value +func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) { + o.TerminationZ.Set(&v) +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Circuit) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Circuit) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Circuit) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Circuit) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Circuit) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Circuit) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Circuit) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Circuit) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Circuit) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Circuit) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Circuit) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Circuit) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Circuit) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializer + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializer, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *Circuit) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializer and assigns it to the Assignments field. +func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer) { + o.Assignments = v +} + func (o Circuit) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -192,11 +769,48 @@ func (o Circuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["termination_a"] = o.TerminationA.Get() + toSerialize["termination_z"] = o.TerminationZ.Get() + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -212,8 +826,15 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "cid", + "provider", + "type", + "termination_a", + "termination_z", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -245,9 +866,26 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "termination_a") + delete(additionalProperties, "termination_z") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go new file mode 100644 index 000000000..fd20f4020 --- /dev/null +++ b/model_circuit_circuit_termination.go @@ -0,0 +1,488 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitCircuitTermination type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitCircuitTermination{} + +// CircuitCircuitTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type CircuitCircuitTermination struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site NullableBriefSite `json:"site"` + ProviderNetwork NullableBriefProviderNetwork `json:"provider_network"` + // Physical circuit speed + PortSpeed NullableInt32 `json:"port_speed,omitempty"` + // Upstream speed, if different from port speed + UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` + // ID of the local cross-connect + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitCircuitTermination CircuitCircuitTermination + +// NewCircuitCircuitTermination instantiates a new CircuitCircuitTermination object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitCircuitTermination(id int32, url string, displayUrl string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork) *CircuitCircuitTermination { + this := CircuitCircuitTermination{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Site = site + this.ProviderNetwork = providerNetwork + return &this +} + +// NewCircuitCircuitTerminationWithDefaults instantiates a new CircuitCircuitTermination object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitCircuitTerminationWithDefaults() *CircuitCircuitTermination { + this := CircuitCircuitTermination{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitCircuitTermination) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitCircuitTermination) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CircuitCircuitTermination) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitCircuitTermination) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitCircuitTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitCircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *CircuitCircuitTermination) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitCircuitTermination) SetDisplay(v string) { + o.Display = v +} + +// GetSite returns the Site field value +// If the value is explicit nil, the zero value for BriefSite will be returned +func (o *CircuitCircuitTermination) GetSite() BriefSite { + if o == nil || o.Site.Get() == nil { + var ret BriefSite + return ret + } + + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// SetSite sets field value +func (o *CircuitCircuitTermination) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// GetProviderNetwork returns the ProviderNetwork field value +// If the value is explicit nil, the zero value for BriefProviderNetwork will be returned +func (o *CircuitCircuitTermination) GetProviderNetwork() BriefProviderNetwork { + if o == nil || o.ProviderNetwork.Get() == nil { + var ret BriefProviderNetwork + return ret + } + + return *o.ProviderNetwork.Get() +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { + if o == nil { + return nil, false + } + return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() +} + +// SetProviderNetwork sets field value +func (o *CircuitCircuitTermination) SetProviderNetwork(v BriefProviderNetwork) { + o.ProviderNetwork.Set(&v) +} + +// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetPortSpeed() int32 { + if o == nil || IsNil(o.PortSpeed.Get()) { + var ret int32 + return ret + } + return *o.PortSpeed.Get() +} + +// GetPortSpeedOk returns a tuple with the PortSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetPortSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PortSpeed.Get(), o.PortSpeed.IsSet() +} + +// HasPortSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasPortSpeed() bool { + if o != nil && o.PortSpeed.IsSet() { + return true + } + + return false +} + +// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field. +func (o *CircuitCircuitTermination) SetPortSpeed(v int32) { + o.PortSpeed.Set(&v) +} +// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil +func (o *CircuitCircuitTermination) SetPortSpeedNil() { + o.PortSpeed.Set(nil) +} + +// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetPortSpeed() { + o.PortSpeed.Unset() +} + +// GetUpstreamSpeed returns the UpstreamSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTermination) GetUpstreamSpeed() int32 { + if o == nil || IsNil(o.UpstreamSpeed.Get()) { + var ret int32 + return ret + } + return *o.UpstreamSpeed.Get() +} + +// GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTermination) GetUpstreamSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.UpstreamSpeed.Get(), o.UpstreamSpeed.IsSet() +} + +// HasUpstreamSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool { + if o != nil && o.UpstreamSpeed.IsSet() { + return true + } + + return false +} + +// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field. +func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32) { + o.UpstreamSpeed.Set(&v) +} +// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil +func (o *CircuitCircuitTermination) SetUpstreamSpeedNil() { + o.UpstreamSpeed.Set(nil) +} + +// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +func (o *CircuitCircuitTermination) UnsetUpstreamSpeed() { + o.UpstreamSpeed.Unset() +} + +// GetXconnectId returns the XconnectId field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) GetXconnectId() string { + if o == nil || IsNil(o.XconnectId) { + var ret string + return ret + } + return *o.XconnectId +} + +// GetXconnectIdOk returns a tuple with the XconnectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetXconnectIdOk() (*string, bool) { + if o == nil || IsNil(o.XconnectId) { + return nil, false + } + return o.XconnectId, true +} + +// HasXconnectId returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasXconnectId() bool { + if o != nil && !IsNil(o.XconnectId) { + return true + } + + return false +} + +// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field. +func (o *CircuitCircuitTermination) SetXconnectId(v string) { + o.XconnectId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitCircuitTermination) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTermination) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitCircuitTermination) SetDescription(v string) { + o.Description = &v +} + +func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["site"] = o.Site.Get() + toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.PortSpeed.IsSet() { + toSerialize["port_speed"] = o.PortSpeed.Get() + } + if o.UpstreamSpeed.IsSet() { + toSerialize["upstream_speed"] = o.UpstreamSpeed.Get() + } + if !IsNil(o.XconnectId) { + toSerialize["xconnect_id"] = o.XconnectId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitCircuitTermination) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "site", + "provider_network", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitCircuitTermination := _CircuitCircuitTermination{} + + err = json.Unmarshal(data, &varCircuitCircuitTermination) + + if err != nil { + return err + } + + *o = CircuitCircuitTermination(varCircuitCircuitTermination) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "port_speed") + delete(additionalProperties, "upstream_speed") + delete(additionalProperties, "xconnect_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitCircuitTermination struct { + value *CircuitCircuitTermination + isSet bool +} + +func (v NullableCircuitCircuitTermination) Get() *CircuitCircuitTermination { + return v.value +} + +func (v *NullableCircuitCircuitTermination) Set(val *CircuitCircuitTermination) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitCircuitTermination) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitCircuitTermination) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitCircuitTermination(val *CircuitCircuitTermination) *NullableCircuitCircuitTermination { + return &NullableCircuitCircuitTermination{value: val, isSet: true} +} + +func (v NullableCircuitCircuitTermination) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitCircuitTermination) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go new file mode 100644 index 000000000..3aaa9a31f --- /dev/null +++ b/model_circuit_circuit_termination_request.go @@ -0,0 +1,372 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitCircuitTerminationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitCircuitTerminationRequest{} + +// CircuitCircuitTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type CircuitCircuitTerminationRequest struct { + Site NullableBriefSiteRequest `json:"site"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network"` + // Physical circuit speed + PortSpeed NullableInt32 `json:"port_speed,omitempty"` + // Upstream speed, if different from port speed + UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` + // ID of the local cross-connect + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitCircuitTerminationRequest CircuitCircuitTerminationRequest + +// NewCircuitCircuitTerminationRequest instantiates a new CircuitCircuitTerminationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitCircuitTerminationRequest(site NullableBriefSiteRequest, providerNetwork NullableBriefProviderNetworkRequest) *CircuitCircuitTerminationRequest { + this := CircuitCircuitTerminationRequest{} + this.Site = site + this.ProviderNetwork = providerNetwork + return &this +} + +// NewCircuitCircuitTerminationRequestWithDefaults instantiates a new CircuitCircuitTerminationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitCircuitTerminationRequestWithDefaults() *CircuitCircuitTerminationRequest { + this := CircuitCircuitTerminationRequest{} + return &this +} + +// GetSite returns the Site field value +// If the value is explicit nil, the zero value for BriefSiteRequest will be returned +func (o *CircuitCircuitTerminationRequest) GetSite() BriefSiteRequest { + if o == nil || o.Site.Get() == nil { + var ret BriefSiteRequest + return ret + } + + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// SetSite sets field value +func (o *CircuitCircuitTerminationRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// GetProviderNetwork returns the ProviderNetwork field value +// If the value is explicit nil, the zero value for BriefProviderNetworkRequest will be returned +func (o *CircuitCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { + if o == nil || o.ProviderNetwork.Get() == nil { + var ret BriefProviderNetworkRequest + return ret + } + + return *o.ProviderNetwork.Get() +} + +// GetProviderNetworkOk returns a tuple with the ProviderNetwork field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderNetwork.Get(), o.ProviderNetwork.IsSet() +} + +// SetProviderNetwork sets field value +func (o *CircuitCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { + o.ProviderNetwork.Set(&v) +} + +// GetPortSpeed returns the PortSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetPortSpeed() int32 { + if o == nil || IsNil(o.PortSpeed.Get()) { + var ret int32 + return ret + } + return *o.PortSpeed.Get() +} + +// GetPortSpeedOk returns a tuple with the PortSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetPortSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.PortSpeed.Get(), o.PortSpeed.IsSet() +} + +// HasPortSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool { + if o != nil && o.PortSpeed.IsSet() { + return true + } + + return false +} + +// SetPortSpeed gets a reference to the given NullableInt32 and assigns it to the PortSpeed field. +func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32) { + o.PortSpeed.Set(&v) +} +// SetPortSpeedNil sets the value for PortSpeed to be an explicit nil +func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil() { + o.PortSpeed.Set(nil) +} + +// UnsetPortSpeed ensures that no value is present for PortSpeed, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetPortSpeed() { + o.PortSpeed.Unset() +} + +// GetUpstreamSpeed returns the UpstreamSpeed field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeed() int32 { + if o == nil || IsNil(o.UpstreamSpeed.Get()) { + var ret int32 + return ret + } + return *o.UpstreamSpeed.Get() +} + +// GetUpstreamSpeedOk returns a tuple with the UpstreamSpeed field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitCircuitTerminationRequest) GetUpstreamSpeedOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.UpstreamSpeed.Get(), o.UpstreamSpeed.IsSet() +} + +// HasUpstreamSpeed returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool { + if o != nil && o.UpstreamSpeed.IsSet() { + return true + } + + return false +} + +// SetUpstreamSpeed gets a reference to the given NullableInt32 and assigns it to the UpstreamSpeed field. +func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32) { + o.UpstreamSpeed.Set(&v) +} +// SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil +func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil() { + o.UpstreamSpeed.Set(nil) +} + +// UnsetUpstreamSpeed ensures that no value is present for UpstreamSpeed, not even an explicit nil +func (o *CircuitCircuitTerminationRequest) UnsetUpstreamSpeed() { + o.UpstreamSpeed.Unset() +} + +// GetXconnectId returns the XconnectId field value if set, zero value otherwise. +func (o *CircuitCircuitTerminationRequest) GetXconnectId() string { + if o == nil || IsNil(o.XconnectId) { + var ret string + return ret + } + return *o.XconnectId +} + +// GetXconnectIdOk returns a tuple with the XconnectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTerminationRequest) GetXconnectIdOk() (*string, bool) { + if o == nil || IsNil(o.XconnectId) { + return nil, false + } + return o.XconnectId, true +} + +// HasXconnectId returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasXconnectId() bool { + if o != nil && !IsNil(o.XconnectId) { + return true + } + + return false +} + +// SetXconnectId gets a reference to the given string and assigns it to the XconnectId field. +func (o *CircuitCircuitTerminationRequest) SetXconnectId(v string) { + o.XconnectId = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitCircuitTerminationRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitCircuitTerminationRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitCircuitTerminationRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitCircuitTerminationRequest) SetDescription(v string) { + o.Description = &v +} + +func (o CircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitCircuitTerminationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["site"] = o.Site.Get() + toSerialize["provider_network"] = o.ProviderNetwork.Get() + if o.PortSpeed.IsSet() { + toSerialize["port_speed"] = o.PortSpeed.Get() + } + if o.UpstreamSpeed.IsSet() { + toSerialize["upstream_speed"] = o.UpstreamSpeed.Get() + } + if !IsNil(o.XconnectId) { + toSerialize["xconnect_id"] = o.XconnectId + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "site", + "provider_network", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitCircuitTerminationRequest := _CircuitCircuitTerminationRequest{} + + err = json.Unmarshal(data, &varCircuitCircuitTerminationRequest) + + if err != nil { + return err + } + + *o = CircuitCircuitTerminationRequest(varCircuitCircuitTerminationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "provider_network") + delete(additionalProperties, "port_speed") + delete(additionalProperties, "upstream_speed") + delete(additionalProperties, "xconnect_id") + delete(additionalProperties, "description") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitCircuitTerminationRequest struct { + value *CircuitCircuitTerminationRequest + isSet bool +} + +func (v NullableCircuitCircuitTerminationRequest) Get() *CircuitCircuitTerminationRequest { + return v.value +} + +func (v *NullableCircuitCircuitTerminationRequest) Set(val *CircuitCircuitTerminationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitCircuitTerminationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitCircuitTerminationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitCircuitTerminationRequest(val *CircuitCircuitTerminationRequest) *NullableCircuitCircuitTerminationRequest { + return &NullableCircuitCircuitTerminationRequest{value: val, isSet: true} +} + +func (v NullableCircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitCircuitTerminationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group.go b/model_circuit_group.go new file mode 100644 index 000000000..8e302dbc9 --- /dev/null +++ b/model_circuit_group.go @@ -0,0 +1,563 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the CircuitGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroup{} + +// CircuitGroup Adds support for custom fields and tags. +type CircuitGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroup CircuitGroup + +// NewCircuitGroup instantiates a new CircuitGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitGroup { + this := CircuitGroup{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Name = name + this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + return &this +} + +// NewCircuitGroupWithDefaults instantiates a new CircuitGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupWithDefaults() *CircuitGroup { + this := CircuitGroup{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CircuitGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *CircuitGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *CircuitGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CircuitGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *CircuitGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *CircuitGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitGroup) SetDescription(v string) { + o.Description = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroup) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroup) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitGroup) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *CircuitGroup) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitGroup) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitGroup) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *CircuitGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *CircuitGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *CircuitGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *CircuitGroup) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *CircuitGroup) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *CircuitGroup) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +func (o CircuitGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "name", + "slug", + "created", + "last_updated", + "circuit_count", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroup := _CircuitGroup{} + + err = json.Unmarshal(data, &varCircuitGroup) + + if err != nil { + return err + } + + *o = CircuitGroup(varCircuitGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroup struct { + value *CircuitGroup + isSet bool +} + +func (v NullableCircuitGroup) Get() *CircuitGroup { + return v.value +} + +func (v *NullableCircuitGroup) Set(val *CircuitGroup) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroup(val *CircuitGroup) *NullableCircuitGroup { + return &NullableCircuitGroup{value: val, isSet: true} +} + +func (v NullableCircuitGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group_assignment.go b/model_circuit_group_assignment.go new file mode 100644 index 000000000..21e86032d --- /dev/null +++ b/model_circuit_group_assignment.go @@ -0,0 +1,450 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the CircuitGroupAssignment type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupAssignment{} + +// CircuitGroupAssignment Base serializer for group assignments under CircuitSerializer. +type CircuitGroupAssignment struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Circuit BriefCircuit `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupAssignment CircuitGroupAssignment + +// NewCircuitGroupAssignment instantiates a new CircuitGroupAssignment object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroupAssignment(id int32, url string, displayUrl string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime) *CircuitGroupAssignment { + this := CircuitGroupAssignment{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Group = group + this.Circuit = circuit + this.Created = created + this.LastUpdated = lastUpdated + return &this +} + +// NewCircuitGroupAssignmentWithDefaults instantiates a new CircuitGroupAssignment object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupAssignmentWithDefaults() *CircuitGroupAssignment { + this := CircuitGroupAssignment{} + return &this +} + +// GetId returns the Id field value +func (o *CircuitGroupAssignment) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *CircuitGroupAssignment) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *CircuitGroupAssignment) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *CircuitGroupAssignment) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitGroupAssignment) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitGroupAssignment) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *CircuitGroupAssignment) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *CircuitGroupAssignment) SetDisplay(v string) { + o.Display = v +} + +// GetGroup returns the Group field value +func (o *CircuitGroupAssignment) GetGroup() BriefCircuitGroup { + if o == nil { + var ret BriefCircuitGroup + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetGroupOk() (*BriefCircuitGroup, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *CircuitGroupAssignment) SetGroup(v BriefCircuitGroup) { + o.Group = v +} + +// GetCircuit returns the Circuit field value +func (o *CircuitGroupAssignment) GetCircuit() BriefCircuit { + if o == nil { + var ret BriefCircuit + return ret + } + + return o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetCircuitOk() (*BriefCircuit, bool) { + if o == nil { + return nil, false + } + return &o.Circuit, true +} + +// SetCircuit sets field value +func (o *CircuitGroupAssignment) SetCircuit(v BriefCircuit) { + o.Circuit = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriority + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *CircuitGroupAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupAssignment) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignment) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *CircuitGroupAssignment) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroupAssignment) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroupAssignment) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *CircuitGroupAssignment) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *CircuitGroupAssignment) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroupAssignment) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +func (o CircuitGroupAssignment) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupAssignment) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["group"] = o.Group + toSerialize["circuit"] = o.Circuit + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupAssignment) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "group", + "circuit", + "created", + "last_updated", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroupAssignment := _CircuitGroupAssignment{} + + err = json.Unmarshal(data, &varCircuitGroupAssignment) + + if err != nil { + return err + } + + *o = CircuitGroupAssignment(varCircuitGroupAssignment) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupAssignment struct { + value *CircuitGroupAssignment + isSet bool +} + +func (v NullableCircuitGroupAssignment) Get() *CircuitGroupAssignment { + return v.value +} + +func (v *NullableCircuitGroupAssignment) Set(val *CircuitGroupAssignment) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupAssignment) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupAssignment) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupAssignment(val *CircuitGroupAssignment) *NullableCircuitGroupAssignment { + return &NullableCircuitGroupAssignment{value: val, isSet: true} +} + +func (v NullableCircuitGroupAssignment) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupAssignment) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group_assignment_request.go b/model_circuit_group_assignment_request.go new file mode 100644 index 000000000..0f25ca607 --- /dev/null +++ b/model_circuit_group_assignment_request.go @@ -0,0 +1,271 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupAssignmentRequest{} + +// CircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type CircuitGroupAssignmentRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Circuit BriefCircuitRequest `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupAssignmentRequest CircuitGroupAssignmentRequest + +// NewCircuitGroupAssignmentRequest instantiates a new CircuitGroupAssignmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest) *CircuitGroupAssignmentRequest { + this := CircuitGroupAssignmentRequest{} + this.Group = group + this.Circuit = circuit + return &this +} + +// NewCircuitGroupAssignmentRequestWithDefaults instantiates a new CircuitGroupAssignmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupAssignmentRequestWithDefaults() *CircuitGroupAssignmentRequest { + this := CircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *CircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *CircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + +// GetCircuit returns the Circuit field value +func (o *CircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest { + if o == nil { + var ret BriefCircuitRequest + return ret + } + + return o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { + if o == nil { + return nil, false + } + return &o.Circuit, true +} + +// SetCircuit sets field value +func (o *CircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest) { + o.Circuit = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *CircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *CircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *CircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroupAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o CircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["circuit"] = o.Circuit + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + "circuit", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroupAssignmentRequest := _CircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = CircuitGroupAssignmentRequest(varCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupAssignmentRequest struct { + value *CircuitGroupAssignmentRequest + isSet bool +} + +func (v NullableCircuitGroupAssignmentRequest) Get() *CircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullableCircuitGroupAssignmentRequest) Set(val *CircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupAssignmentRequest(val *CircuitGroupAssignmentRequest) *NullableCircuitGroupAssignmentRequest { + return &NullableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_group_request.go b/model_circuit_group_request.go new file mode 100644 index 000000000..d13f3ae9e --- /dev/null +++ b/model_circuit_group_request.go @@ -0,0 +1,355 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the CircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitGroupRequest{} + +// CircuitGroupRequest Adds support for custom fields and tags. +type CircuitGroupRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitGroupRequest CircuitGroupRequest + +// NewCircuitGroupRequest instantiates a new CircuitGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitGroupRequest(name string, slug string) *CircuitGroupRequest { + this := CircuitGroupRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewCircuitGroupRequestWithDefaults instantiates a new CircuitGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitGroupRequestWithDefaults() *CircuitGroupRequest { + this := CircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *CircuitGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *CircuitGroupRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *CircuitGroupRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *CircuitGroupRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *CircuitGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *CircuitGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitGroupRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitGroupRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitGroupRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o CircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varCircuitGroupRequest := _CircuitGroupRequest{} + + err = json.Unmarshal(data, &varCircuitGroupRequest) + + if err != nil { + return err + } + + *o = CircuitGroupRequest(varCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitGroupRequest struct { + value *CircuitGroupRequest + isSet bool +} + +func (v NullableCircuitGroupRequest) Get() *CircuitGroupRequest { + return v.value +} + +func (v *NullableCircuitGroupRequest) Set(val *CircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitGroupRequest(val *CircuitGroupRequest) *NullableCircuitGroupRequest { + return &NullableCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullableCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_request.go b/model_circuit_request.go index f5d44906d..c457e8c2b 100644 --- a/model_circuit_request.go +++ b/model_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,21 @@ var _ MappedNullable = &CircuitRequest{} // CircuitRequest Adds support for custom fields and tags. type CircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` + // Committed rate + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +45,11 @@ type _CircuitRequest CircuitRequest // 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 NewCircuitRequest(cid string) *CircuitRequest { +func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *CircuitRequest { this := CircuitRequest{} this.Cid = cid + this.Provider = provider + this.Type = type_ return &this } @@ -70,6 +85,301 @@ func (o *CircuitRequest) SetCid(v string) { o.Cid = v } +// GetProvider returns the Provider field value +func (o *CircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *CircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *CircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} + +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *CircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *CircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *CircuitRequest) GetType() BriefCircuitTypeRequest { + if o == nil { + var ret BriefCircuitTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest) { + o.Type = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *CircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +func (o *CircuitRequest) SetInstallDate(v string) { + o.InstallDate.Set(&v) +} + +// SetInstallDateNil sets the value for InstallDate to be an explicit nil +func (o *CircuitRequest) SetInstallDateNil() { + o.InstallDate.Set(nil) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *CircuitRequest) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +func (o *CircuitRequest) SetTerminationDate(v string) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *CircuitRequest) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *CircuitRequest) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *CircuitRequest) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +func (o *CircuitRequest) SetCommitRate(v int32) { + o.CommitRate.Set(&v) +} + +// SetCommitRateNil sets the value for CommitRate to be an explicit nil +func (o *CircuitRequest) SetCommitRateNil() { + o.CommitRate.Set(nil) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *CircuitRequest) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CircuitRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -102,6 +412,134 @@ func (o *CircuitRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *CircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o CircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -113,9 +551,41 @@ func (o CircuitRequest) MarshalJSON() ([]byte, error) { func (o CircuitRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -130,6 +600,8 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "cid", + "provider", + "type", } allProperties := make(map[string]interface{}) @@ -160,7 +632,19 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_status.go b/model_circuit_status.go new file mode 100644 index 000000000..3fa6736c2 --- /dev/null +++ b/model_circuit_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the CircuitStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &CircuitStatus{} + +// CircuitStatus struct for CircuitStatus +type CircuitStatus struct { + Value *CircuitStatusValue `json:"value,omitempty"` + Label *CircuitStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _CircuitStatus CircuitStatus + +// NewCircuitStatus instantiates a new CircuitStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewCircuitStatus() *CircuitStatus { + this := CircuitStatus{} + return &this +} + +// NewCircuitStatusWithDefaults instantiates a new CircuitStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewCircuitStatusWithDefaults() *CircuitStatus { + this := CircuitStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *CircuitStatus) GetValue() CircuitStatusValue { + if o == nil || IsNil(o.Value) { + var ret CircuitStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitStatus) GetValueOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *CircuitStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given CircuitStatusValue and assigns it to the Value field. +func (o *CircuitStatus) SetValue(v CircuitStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *CircuitStatus) GetLabel() CircuitStatusLabel { + if o == nil || IsNil(o.Label) { + var ret CircuitStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitStatus) GetLabelOk() (*CircuitStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *CircuitStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given CircuitStatusLabel and assigns it to the Label field. +func (o *CircuitStatus) SetLabel(v CircuitStatusLabel) { + o.Label = &v +} + +func (o CircuitStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o CircuitStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *CircuitStatus) UnmarshalJSON(data []byte) (err error) { + varCircuitStatus := _CircuitStatus{} + + err = json.Unmarshal(data, &varCircuitStatus) + + if err != nil { + return err + } + + *o = CircuitStatus(varCircuitStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableCircuitStatus struct { + value *CircuitStatus + isSet bool +} + +func (v NullableCircuitStatus) Get() *CircuitStatus { + return v.value +} + +func (v *NullableCircuitStatus) Set(val *CircuitStatus) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatus(val *CircuitStatus) *NullableCircuitStatus { + return &NullableCircuitStatus{value: val, isSet: true} +} + +func (v NullableCircuitStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go new file mode 100644 index 000000000..75c455542 --- /dev/null +++ b/model_circuit_status_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitStatusLabel the model 'CircuitStatusLabel' +type CircuitStatusLabel string + +// List of Circuit_status_label +const ( + CIRCUITSTATUSLABEL_PLANNED CircuitStatusLabel = "Planned" + CIRCUITSTATUSLABEL_PROVISIONING CircuitStatusLabel = "Provisioning" + CIRCUITSTATUSLABEL_ACTIVE CircuitStatusLabel = "Active" + CIRCUITSTATUSLABEL_OFFLINE CircuitStatusLabel = "Offline" + CIRCUITSTATUSLABEL_DEPROVISIONING CircuitStatusLabel = "Deprovisioning" + CIRCUITSTATUSLABEL_DECOMMISSIONED CircuitStatusLabel = "Decommissioned" +) + +// All allowed values of CircuitStatusLabel enum +var AllowedCircuitStatusLabelEnumValues = []CircuitStatusLabel{ + "Planned", + "Provisioning", + "Active", + "Offline", + "Deprovisioning", + "Decommissioned", +} + +func (v *CircuitStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitStatusLabel(value) + for _, existing := range AllowedCircuitStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitStatusLabel", value) +} + +// NewCircuitStatusLabelFromValue returns a pointer to a valid CircuitStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitStatusLabelFromValue(v string) (*CircuitStatusLabel, error) { + ev := CircuitStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitStatusLabel: valid values are %v", v, AllowedCircuitStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitStatusLabel) IsValid() bool { + for _, existing := range AllowedCircuitStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_status_label value +func (v CircuitStatusLabel) Ptr() *CircuitStatusLabel { + return &v +} + +type NullableCircuitStatusLabel struct { + value *CircuitStatusLabel + isSet bool +} + +func (v NullableCircuitStatusLabel) Get() *CircuitStatusLabel { + return v.value +} + +func (v *NullableCircuitStatusLabel) Set(val *CircuitStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatusLabel(val *CircuitStatusLabel) *NullableCircuitStatusLabel { + return &NullableCircuitStatusLabel{value: val, isSet: true} +} + +func (v NullableCircuitStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit_status_value.go b/model_circuit_status_value.go new file mode 100644 index 000000000..0b21c4168 --- /dev/null +++ b/model_circuit_status_value.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitStatusValue * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +type CircuitStatusValue string + +// List of Circuit_status_value +const ( + CIRCUITSTATUSVALUE_PLANNED CircuitStatusValue = "planned" + CIRCUITSTATUSVALUE_PROVISIONING CircuitStatusValue = "provisioning" + CIRCUITSTATUSVALUE_ACTIVE CircuitStatusValue = "active" + CIRCUITSTATUSVALUE_OFFLINE CircuitStatusValue = "offline" + CIRCUITSTATUSVALUE_DEPROVISIONING CircuitStatusValue = "deprovisioning" + CIRCUITSTATUSVALUE_DECOMMISSIONED CircuitStatusValue = "decommissioned" +) + +// All allowed values of CircuitStatusValue enum +var AllowedCircuitStatusValueEnumValues = []CircuitStatusValue{ + "planned", + "provisioning", + "active", + "offline", + "deprovisioning", + "decommissioned", +} + +func (v *CircuitStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitStatusValue(value) + for _, existing := range AllowedCircuitStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitStatusValue", value) +} + +// NewCircuitStatusValueFromValue returns a pointer to a valid CircuitStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitStatusValueFromValue(v string) (*CircuitStatusValue, error) { + ev := CircuitStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitStatusValue: valid values are %v", v, AllowedCircuitStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitStatusValue) IsValid() bool { + for _, existing := range AllowedCircuitStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Circuit_status_value value +func (v CircuitStatusValue) Ptr() *CircuitStatusValue { + return &v +} + +type NullableCircuitStatusValue struct { + value *CircuitStatusValue + isSet bool +} + +func (v NullableCircuitStatusValue) Get() *CircuitStatusValue { + return v.value +} + +func (v *NullableCircuitStatusValue) Set(val *CircuitStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitStatusValue(val *CircuitStatusValue) *NullableCircuitStatusValue { + return &NullableCircuitStatusValue{value: val, isSet: true} +} + +func (v NullableCircuitStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuit_termination.go b/model_circuit_termination.go index e9304fcbe..bf8729627 100644 --- a/model_circuit_termination.go +++ b/model_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &CircuitTermination{} // CircuitTermination Adds support for custom fields and tags. type CircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Circuit Circuit `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSite `json:"site,omitempty"` - ProviderNetwork NullableProviderNetwork `json:"provider_network,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Circuit BriefCircuit `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableBriefSite `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetwork `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -38,12 +39,12 @@ type CircuitTermination struct { PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -58,10 +59,11 @@ type _CircuitTermination CircuitTermination // 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 NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { +func NewCircuitTermination(id int32, url string, displayUrl string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { this := CircuitTermination{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Circuit = circuit this.TermSide = termSide @@ -131,6 +133,30 @@ func (o *CircuitTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CircuitTermination) GetDisplay() string { if o == nil { @@ -156,9 +182,9 @@ func (o *CircuitTermination) SetDisplay(v string) { } // GetCircuit returns the Circuit field value -func (o *CircuitTermination) GetCircuit() Circuit { +func (o *CircuitTermination) GetCircuit() BriefCircuit { if o == nil { - var ret Circuit + var ret BriefCircuit return ret } @@ -167,7 +193,7 @@ func (o *CircuitTermination) GetCircuit() Circuit { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { +func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool) { if o == nil { return nil, false } @@ -175,7 +201,7 @@ func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { } // SetCircuit sets field value -func (o *CircuitTermination) SetCircuit(v Circuit) { +func (o *CircuitTermination) SetCircuit(v BriefCircuit) { o.Circuit = v } @@ -204,9 +230,9 @@ func (o *CircuitTermination) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetSite() Site { +func (o *CircuitTermination) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -215,7 +241,7 @@ func (o *CircuitTermination) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetSiteOk() (*Site, bool) { +func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -231,8 +257,8 @@ func (o *CircuitTermination) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *CircuitTermination) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *CircuitTermination) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -247,9 +273,9 @@ func (o *CircuitTermination) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { +func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetwork + var ret BriefProviderNetwork return ret } return *o.ProviderNetwork.Get() @@ -258,7 +284,7 @@ func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool) { +func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { if o == nil { return nil, false } @@ -274,8 +300,8 @@ func (o *CircuitTermination) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetwork and assigns it to the ProviderNetwork field. -func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetwork and assigns it to the ProviderNetwork field. +func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork) { o.ProviderNetwork.Set(&v) } @@ -504,10 +530,10 @@ func (o *CircuitTermination) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *CircuitTermination) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *CircuitTermination) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -517,7 +543,7 @@ func (o *CircuitTermination) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetCableOk() (*Cable, bool) { +func (o *CircuitTermination) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -525,7 +551,7 @@ func (o *CircuitTermination) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *CircuitTermination) SetCable(v Cable) { +func (o *CircuitTermination) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -578,27 +604,29 @@ func (o *CircuitTermination) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *CircuitTermination) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CircuitTermination) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *CircuitTermination) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -753,6 +781,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide @@ -783,7 +812,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -808,6 +837,7 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "circuit", "term_side", @@ -849,6 +879,7 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go index d8a1b14e4..451b75a18 100644 --- a/model_circuit_termination_request.go +++ b/model_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitTerminationRequest{} // CircuitTerminationRequest Adds support for custom fields and tags. type CircuitTerminationRequest struct { - Circuit CircuitRequest `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit BriefCircuitRequest `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -46,7 +46,7 @@ type _CircuitTerminationRequest CircuitTerminationRequest // 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 NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1) *CircuitTerminationRequest { +func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1) *CircuitTerminationRequest { this := CircuitTerminationRequest{} this.Circuit = circuit this.TermSide = termSide @@ -62,9 +62,9 @@ func NewCircuitTerminationRequestWithDefaults() *CircuitTerminationRequest { } // GetCircuit returns the Circuit field value -func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } @@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil { return nil, false } @@ -81,7 +81,7 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { } // SetCircuit sets field value -func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest) { +func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = v } @@ -110,9 +110,9 @@ func (o *CircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetSite() SiteRequest { +func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -121,7 +121,7 @@ func (o *CircuitTerminationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -137,8 +137,8 @@ func (o *CircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *CircuitTerminationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -153,9 +153,9 @@ func (o *CircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { +func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest + var ret BriefProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -164,7 +164,7 @@ func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -180,8 +180,8 @@ func (o *CircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_circuit_type.go b/model_circuit_type.go index 56afd1a84..28e56cb0a 100644 --- a/model_circuit_type.go +++ b/model_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CircuitType{} type CircuitType struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,10 +43,11 @@ type _CircuitType CircuitType // 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 NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { +func NewCircuitType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { this := CircuitType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -111,6 +113,30 @@ func (o *CircuitType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CircuitType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CircuitType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CircuitType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CircuitType) GetDisplay() string { if o == nil { @@ -399,6 +425,7 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -432,6 +459,7 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -469,6 +497,7 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go index 48eba514f..048fedb95 100644 --- a/model_circuit_type_request.go +++ b/model_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuits_circuit_group_assignments_list_priority_parameter.go b/model_circuits_circuit_group_assignments_list_priority_parameter.go new file mode 100644 index 000000000..a8aa57e32 --- /dev/null +++ b/model_circuits_circuit_group_assignments_list_priority_parameter.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitsCircuitGroupAssignmentsListPriorityParameter the model 'CircuitsCircuitGroupAssignmentsListPriorityParameter' +type CircuitsCircuitGroupAssignmentsListPriorityParameter string + +// List of circuits_circuit_group_assignments_list_priority_parameter +const ( + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_SECONDARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "secondary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary" +) + +// All allowed values of CircuitsCircuitGroupAssignmentsListPriorityParameter enum +var AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues = []CircuitsCircuitGroupAssignmentsListPriorityParameter{ + "inactive", + "primary", + "secondary", + "tertiary", +} + +func (v *CircuitsCircuitGroupAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsCircuitGroupAssignmentsListPriorityParameter(value) + for _, existing := range AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsCircuitGroupAssignmentsListPriorityParameter", value) +} + +// NewCircuitsCircuitGroupAssignmentsListPriorityParameterFromValue returns a pointer to a valid CircuitsCircuitGroupAssignmentsListPriorityParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsCircuitGroupAssignmentsListPriorityParameterFromValue(v string) (*CircuitsCircuitGroupAssignmentsListPriorityParameter, error) { + ev := CircuitsCircuitGroupAssignmentsListPriorityParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsCircuitGroupAssignmentsListPriorityParameter: valid values are %v", v, AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsCircuitGroupAssignmentsListPriorityParameter) IsValid() bool { + for _, existing := range AllowedCircuitsCircuitGroupAssignmentsListPriorityParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to circuits_circuit_group_assignments_list_priority_parameter value +func (v CircuitsCircuitGroupAssignmentsListPriorityParameter) Ptr() *CircuitsCircuitGroupAssignmentsListPriorityParameter { + return &v +} + +type NullableCircuitsCircuitGroupAssignmentsListPriorityParameter struct { + value *CircuitsCircuitGroupAssignmentsListPriorityParameter + isSet bool +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Get() *CircuitsCircuitGroupAssignmentsListPriorityParameter { + return v.value +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Set(val *CircuitsCircuitGroupAssignmentsListPriorityParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsCircuitGroupAssignmentsListPriorityParameter(val *CircuitsCircuitGroupAssignmentsListPriorityParameter) *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter { + return &NullableCircuitsCircuitGroupAssignmentsListPriorityParameter{value: val, isSet: true} +} + +func (v NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go index b4ea69c2c..09cdeaa0f 100644 --- a/model_circuits_circuit_terminations_list_cable_end_parameter.go +++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster.go b/model_cluster.go index 64f264c1c..a11ca90a5 100644 --- a/model_cluster.go +++ b/model_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Cluster type satisfies the MappedNullable interface at compile time @@ -20,12 +21,24 @@ var _ MappedNullable = &Cluster{} // Cluster Adds support for custom fields and tags. type Cluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Type BriefClusterType `json:"type"` + Group NullableBriefClusterGroup `json:"group,omitempty"` + Status *ClusterStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Site NullableBriefSite `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +48,16 @@ type _Cluster Cluster // 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 NewCluster(id int32, url string, display string, name string) *Cluster { +func NewCluster(id int32, url string, displayUrl string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime) *Cluster { this := Cluster{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Type = type_ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +117,30 @@ func (o *Cluster) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Cluster) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Cluster) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Cluster) GetDisplay() string { if o == nil { @@ -148,6 +189,191 @@ func (o *Cluster) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *Cluster) GetType() BriefClusterType { + if o == nil { + var ret BriefClusterType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetTypeOk() (*BriefClusterType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Cluster) SetType(v BriefClusterType) { + o.Type = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetGroup() BriefClusterGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Cluster) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroup and assigns it to the Group field. +func (o *Cluster) SetGroup(v BriefClusterGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Cluster) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Cluster) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cluster) GetStatus() ClusterStatus { + if o == nil || IsNil(o.Status) { + var ret ClusterStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetStatusOk() (*ClusterStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cluster) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. +func (o *Cluster) SetStatus(v ClusterStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Cluster) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cluster) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cluster) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cluster) UnsetTenant() { + o.Tenant.Unset() +} + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *Cluster) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *Cluster) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *Cluster) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *Cluster) UnsetSite() { + o.Site.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cluster) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +406,186 @@ func (o *Cluster) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cluster) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cluster) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cluster) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cluster) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Cluster) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Cluster) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cluster) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Cluster) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Cluster) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Cluster) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Cluster) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Cluster) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Cluster) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Cluster) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + // GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *Cluster) GetVirtualmachineCount() int64 { if o == nil || IsNil(o.VirtualmachineCount) { @@ -224,11 +630,39 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } @@ -247,8 +681,12 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -280,9 +718,21 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "site") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_group.go b/model_cluster_group.go index 9544ec850..00ac37186 100644 --- a/model_cluster_group.go +++ b/model_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ClusterGroup{} type ClusterGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _ClusterGroup ClusterGroup // 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 NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { +func NewClusterGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { this := ClusterGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *ClusterGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ClusterGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ClusterGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ClusterGroup) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go index 1f9566748..b41e192c4 100644 --- a/model_cluster_group_request.go +++ b/model_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_request.go b/model_cluster_request.go index a89789ff3..96cce68a3 100644 --- a/model_cluster_request.go +++ b/model_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,16 @@ var _ MappedNullable = &ClusterRequest{} // ClusterRequest Adds support for custom fields and tags. type ClusterRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +39,10 @@ type _ClusterRequest ClusterRequest // 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 NewClusterRequest(name string) *ClusterRequest { +func NewClusterRequest(name string, type_ BriefClusterTypeRequest) *ClusterRequest { this := ClusterRequest{} this.Name = name + this.Type = type_ return &this } @@ -69,6 +78,191 @@ func (o *ClusterRequest) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *ClusterRequest) GetType() BriefClusterTypeRequest { + if o == nil { + var ret BriefClusterTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ClusterRequest) SetType(v BriefClusterTypeRequest) { + o.Type = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ClusterRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ClusterRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ClusterRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterRequest) GetStatus() ClusterStatusValue { + if o == nil || IsNil(o.Status) { + var ret ClusterStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *ClusterRequest) SetStatus(v ClusterStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *ClusterRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ClusterRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *ClusterRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *ClusterRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *ClusterRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *ClusterRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *ClusterRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *ClusterRequest) UnsetSite() { + o.Site.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +295,102 @@ func (o *ClusterRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ClusterRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ClusterRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ClusterRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ClusterRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ClusterRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ClusterRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ClusterRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ClusterRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ClusterRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ClusterRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +402,31 @@ func (o ClusterRequest) MarshalJSON() ([]byte, error) { func (o ClusterRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +441,7 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } allProperties := make(map[string]interface{}) @@ -159,7 +472,15 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "site") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_status.go b/model_cluster_status.go new file mode 100644 index 000000000..80215c338 --- /dev/null +++ b/model_cluster_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ClusterStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ClusterStatus{} + +// ClusterStatus struct for ClusterStatus +type ClusterStatus struct { + Value *ClusterStatusValue `json:"value,omitempty"` + Label *ClusterStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ClusterStatus ClusterStatus + +// NewClusterStatus instantiates a new ClusterStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewClusterStatus() *ClusterStatus { + this := ClusterStatus{} + return &this +} + +// NewClusterStatusWithDefaults instantiates a new ClusterStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewClusterStatusWithDefaults() *ClusterStatus { + this := ClusterStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ClusterStatus) GetValue() ClusterStatusValue { + if o == nil || IsNil(o.Value) { + var ret ClusterStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterStatus) GetValueOk() (*ClusterStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ClusterStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ClusterStatusValue and assigns it to the Value field. +func (o *ClusterStatus) SetValue(v ClusterStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ClusterStatus) GetLabel() ClusterStatusLabel { + if o == nil || IsNil(o.Label) { + var ret ClusterStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterStatus) GetLabelOk() (*ClusterStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ClusterStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ClusterStatusLabel and assigns it to the Label field. +func (o *ClusterStatus) SetLabel(v ClusterStatusLabel) { + o.Label = &v +} + +func (o ClusterStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ClusterStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ClusterStatus) UnmarshalJSON(data []byte) (err error) { + varClusterStatus := _ClusterStatus{} + + err = json.Unmarshal(data, &varClusterStatus) + + if err != nil { + return err + } + + *o = ClusterStatus(varClusterStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableClusterStatus struct { + value *ClusterStatus + isSet bool +} + +func (v NullableClusterStatus) Get() *ClusterStatus { + return v.value +} + +func (v *NullableClusterStatus) Set(val *ClusterStatus) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatus(val *ClusterStatus) *NullableClusterStatus { + return &NullableClusterStatus{value: val, isSet: true} +} + +func (v NullableClusterStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go new file mode 100644 index 000000000..3b8625454 --- /dev/null +++ b/model_cluster_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ClusterStatusLabel the model 'ClusterStatusLabel' +type ClusterStatusLabel string + +// List of Cluster_status_label +const ( + CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned" + CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging" + CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active" + CLUSTERSTATUSLABEL_DECOMMISSIONING ClusterStatusLabel = "Decommissioning" + CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline" +) + +// All allowed values of ClusterStatusLabel enum +var AllowedClusterStatusLabelEnumValues = []ClusterStatusLabel{ + "Planned", + "Staging", + "Active", + "Decommissioning", + "Offline", +} + +func (v *ClusterStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ClusterStatusLabel(value) + for _, existing := range AllowedClusterStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ClusterStatusLabel", value) +} + +// NewClusterStatusLabelFromValue returns a pointer to a valid ClusterStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewClusterStatusLabelFromValue(v string) (*ClusterStatusLabel, error) { + ev := ClusterStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ClusterStatusLabel: valid values are %v", v, AllowedClusterStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ClusterStatusLabel) IsValid() bool { + for _, existing := range AllowedClusterStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cluster_status_label value +func (v ClusterStatusLabel) Ptr() *ClusterStatusLabel { + return &v +} + +type NullableClusterStatusLabel struct { + value *ClusterStatusLabel + isSet bool +} + +func (v NullableClusterStatusLabel) Get() *ClusterStatusLabel { + return v.value +} + +func (v *NullableClusterStatusLabel) Set(val *ClusterStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatusLabel(val *ClusterStatusLabel) *NullableClusterStatusLabel { + return &NullableClusterStatusLabel{value: val, isSet: true} +} + +func (v NullableClusterStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cluster_status_value.go b/model_cluster_status_value.go new file mode 100644 index 000000000..c24c42609 --- /dev/null +++ b/model_cluster_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ClusterStatusValue * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +type ClusterStatusValue string + +// List of Cluster_status_value +const ( + CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned" + CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging" + CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active" + CLUSTERSTATUSVALUE_DECOMMISSIONING ClusterStatusValue = "decommissioning" + CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline" +) + +// All allowed values of ClusterStatusValue enum +var AllowedClusterStatusValueEnumValues = []ClusterStatusValue{ + "planned", + "staging", + "active", + "decommissioning", + "offline", +} + +func (v *ClusterStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ClusterStatusValue(value) + for _, existing := range AllowedClusterStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ClusterStatusValue", value) +} + +// NewClusterStatusValueFromValue returns a pointer to a valid ClusterStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewClusterStatusValueFromValue(v string) (*ClusterStatusValue, error) { + ev := ClusterStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ClusterStatusValue: valid values are %v", v, AllowedClusterStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ClusterStatusValue) IsValid() bool { + for _, existing := range AllowedClusterStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Cluster_status_value value +func (v ClusterStatusValue) Ptr() *ClusterStatusValue { + return &v +} + +type NullableClusterStatusValue struct { + value *ClusterStatusValue + isSet bool +} + +func (v NullableClusterStatusValue) Get() *ClusterStatusValue { + return v.value +} + +func (v *NullableClusterStatusValue) Set(val *ClusterStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableClusterStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableClusterStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableClusterStatusValue(val *ClusterStatusValue) *NullableClusterStatusValue { + return &NullableClusterStatusValue{value: val, isSet: true} +} + +func (v NullableClusterStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableClusterStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_cluster_type.go b/model_cluster_type.go index df806d509..89916d06f 100644 --- a/model_cluster_type.go +++ b/model_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ClusterType{} type ClusterType struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _ClusterType ClusterType // 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 NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { +func NewClusterType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { this := ClusterType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *ClusterType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ClusterType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ClusterType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ClusterType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ClusterType) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go index a72f53e3b..284d95ad8 100644 --- a/model_cluster_type_request.go +++ b/model_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_config_context.go b/model_config_context.go index 8cfdce327..e37ee4c13 100644 --- a/model_config_context.go +++ b/model_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,34 +21,35 @@ var _ MappedNullable = &ConfigContext{} // ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []Region `json:"regions,omitempty"` - SiteGroups []SiteGroup `json:"site_groups,omitempty"` - Sites []Site `json:"sites,omitempty"` - Locations []Location `json:"locations,omitempty"` - DeviceTypes []DeviceType `json:"device_types,omitempty"` - Roles []DeviceRole `json:"roles,omitempty"` - Platforms []Platform `json:"platforms,omitempty"` - ClusterTypes []ClusterType `json:"cluster_types,omitempty"` - ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` - Clusters []Cluster `json:"clusters,omitempty"` - TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` - Tenants []Tenant `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []Region `json:"regions,omitempty"` + SiteGroups []SiteGroup `json:"site_groups,omitempty"` + Sites []Site `json:"sites,omitempty"` + Locations []Location `json:"locations,omitempty"` + DeviceTypes []DeviceType `json:"device_types,omitempty"` + Roles []DeviceRole `json:"roles,omitempty"` + Platforms []Platform `json:"platforms,omitempty"` + ClusterTypes []ClusterType `json:"cluster_types,omitempty"` + ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` + Clusters []Cluster `json:"clusters,omitempty"` + TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` + Tenants []Tenant `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Data interface{} `json:"data"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Data interface{} `json:"data"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -58,10 +59,11 @@ type _ConfigContext ConfigContext // 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 NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { +func NewConfigContext(id int32, url string, displayUrl string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { this := ConfigContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.DataPath = dataPath @@ -129,6 +131,30 @@ func (o *ConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConfigContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConfigContext) GetDisplay() string { if o == nil { @@ -690,9 +716,9 @@ func (o *ConfigContext) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContext) GetDataSource() DataSource { +func (o *ConfigContext) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -700,7 +726,7 @@ func (o *ConfigContext) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool) { +func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -716,8 +742,8 @@ func (o *ConfigContext) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ConfigContext) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigContext) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -746,9 +772,9 @@ func (o *ConfigContext) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ConfigContext) GetDataFile() DataFile { +func (o *ConfigContext) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -757,7 +783,7 @@ func (o *ConfigContext) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { +func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -765,7 +791,7 @@ func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ConfigContext) SetDataFile(v DataFile) { +func (o *ConfigContext) SetDataFile(v BriefDataFile) { o.DataFile = v } @@ -885,6 +911,7 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Weight) { @@ -961,6 +988,7 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "data_path", @@ -1000,6 +1028,7 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "weight") diff --git a/model_config_context_request.go b/model_config_context_request.go index 86b8fad88..6ea6e7b5c 100644 --- a/model_config_context_request.go +++ b/model_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &ConfigContextRequest{} // ConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContextRequest struct { - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -600,9 +600,9 @@ func (o *ConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -610,7 +610,7 @@ func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -626,8 +626,8 @@ func (o *ConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_config_template.go b/model_config_template.go index 3995c0dbd..415fa1a07 100644 --- a/model_config_template.go +++ b/model_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ConfigTemplate type satisfies the MappedNullable interface at compile time @@ -20,11 +21,24 @@ var _ MappedNullable = &ConfigTemplate{} // ConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSource `json:"data_source,omitempty"` + // Path to remote file (relative to data source root) + DataPath string `json:"data_path"` + DataFile *BriefDataFile `json:"data_file,omitempty"` + DataSynced NullableTime `json:"data_synced"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,18 @@ type _ConfigTemplate ConfigTemplate // 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 NewConfigTemplate(id int32, url string, display string, name string) *ConfigTemplate { +func NewConfigTemplate(id int32, url string, displayUrl string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate { this := ConfigTemplate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.TemplateCode = templateCode + this.DataPath = dataPath + this.DataSynced = dataSynced + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +119,30 @@ func (o *ConfigTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConfigTemplate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConfigTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConfigTemplate) GetDisplay() string { if o == nil { @@ -179,6 +223,261 @@ func (o *ConfigTemplate) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplate) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplate) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplate) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplate) SetTemplateCode(v string) { + o.TemplateCode = v +} + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataSource() BriefDataSource { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSource + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigTemplate) SetDataSource(v BriefDataSource) { + o.DataSource = &v +} + +// GetDataPath returns the DataPath field value +func (o *ConfigTemplate) GetDataPath() string { + if o == nil { + var ret string + return ret + } + + return o.DataPath +} + +// GetDataPathOk returns a tuple with the DataPath field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataPath, true +} + +// SetDataPath sets field value +func (o *ConfigTemplate) SetDataPath(v string) { + o.DataPath = v +} + +// GetDataFile returns the DataFile field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataFile() BriefDataFile { + if o == nil || IsNil(o.DataFile) { + var ret BriefDataFile + return ret + } + return *o.DataFile +} + +// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool) { + if o == nil || IsNil(o.DataFile) { + return nil, false + } + return o.DataFile, true +} + +// HasDataFile returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataFile() bool { + if o != nil && !IsNil(o.DataFile) { + return true + } + + return false +} + +// SetDataFile gets a reference to the given BriefDataFile and assigns it to the DataFile field. +func (o *ConfigTemplate) SetDataFile(v BriefDataFile) { + o.DataFile = &v +} + +// GetDataSynced returns the DataSynced field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetDataSynced() time.Time { + if o == nil || o.DataSynced.Get() == nil { + var ret time.Time + return ret + } + + return *o.DataSynced.Get() +} + +// GetDataSyncedOk returns a tuple with the DataSynced field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DataSynced.Get(), o.DataSynced.IsSet() +} + +// SetDataSynced sets field value +func (o *ConfigTemplate) SetDataSynced(v time.Time) { + o.DataSynced.Set(&v) +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplate) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ConfigTemplate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ConfigTemplate) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ConfigTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ConfigTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ConfigTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +490,29 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + toSerialize["data_path"] = o.DataPath + if !IsNil(o.DataFile) { + toSerialize["data_file"] = o.DataFile + } + toSerialize["data_synced"] = o.DataSynced.Get() + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +528,14 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "template_code", + "data_path", + "data_synced", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +567,19 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "data_path") + delete(additionalProperties, "data_file") + delete(additionalProperties, "data_synced") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_config_template_request.go b/model_config_template_request.go index 916c0e491..cd7bf0ee5 100644 --- a/model_config_template_request.go +++ b/model_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,14 @@ var _ MappedNullable = &ConfigTemplateRequest{} // ConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplateRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +37,10 @@ type _ConfigTemplateRequest ConfigTemplateRequest // 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 NewConfigTemplateRequest(name string) *ConfigTemplateRequest { +func NewConfigTemplateRequest(name string, templateCode string) *ConfigTemplateRequest { this := ConfigTemplateRequest{} this.Name = name + this.TemplateCode = templateCode return &this } @@ -101,6 +108,127 @@ func (o *ConfigTemplateRequest) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplateRequest) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplateRequest) SetTemplateCode(v string) { + o.TemplateCode = v +} + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSourceRequest + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { + o.DataSource = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -115,6 +243,16 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +267,7 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "template_code", } allProperties := make(map[string]interface{}) @@ -160,6 +299,10 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } diff --git a/model_console_port.go b/model_console_port.go index c931788c3..b4ce532ad 100644 --- a/model_console_port.go +++ b/model_console_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,27 @@ var _ MappedNullable = &ConsolePort{} // ConsolePort Adds support for custom fields and tags. type ConsolePort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortType `json:"type,omitempty"` Speed NullableConsolePortSpeed `json:"speed,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -56,10 +57,11 @@ type _ConsolePort ConsolePort // 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 NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { +func NewConsolePort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { this := ConsolePort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -132,6 +134,30 @@ func (o *ConsolePort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConsolePort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConsolePort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConsolePort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConsolePort) GetDisplay() string { if o == nil { @@ -157,9 +183,9 @@ func (o *ConsolePort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsolePort) GetDevice() Device { +func (o *ConsolePort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +194,7 @@ func (o *ConsolePort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePort) GetDeviceOk() (*Device, bool) { +func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +202,14 @@ func (o *ConsolePort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsolePort) SetDevice(v Device) { +func (o *ConsolePort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePort) GetModule() Module { +func (o *ConsolePort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +218,7 @@ func (o *ConsolePort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetModuleOk() (*Module, bool) { +func (o *ConsolePort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,8 +234,8 @@ func (o *ConsolePort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsolePort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsolePort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -419,10 +445,10 @@ func (o *ConsolePort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsolePort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *ConsolePort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -432,7 +458,7 @@ func (o *ConsolePort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetCableOk() (*Cable, bool) { +func (o *ConsolePort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -440,7 +466,7 @@ func (o *ConsolePort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *ConsolePort) SetCable(v Cable) { +func (o *ConsolePort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -493,30 +519,33 @@ func (o *ConsolePort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *ConsolePort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsolePort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -528,8 +557,9 @@ func (o *ConsolePort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -541,27 +571,29 @@ func (o *ConsolePort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *ConsolePort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -740,6 +772,7 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -764,9 +797,11 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -792,6 +827,7 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -836,6 +872,7 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_port_request.go b/model_console_port_request.go index 02bc1a10a..0902b63a1 100644 --- a/model_console_port_request.go +++ b/model_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsolePortRequest{} // ConsolePortRequest Adds support for custom fields and tags. type ConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsolePortRequest ConsolePortRequest // 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 NewConsolePortRequest(device DeviceRequest, name string) *ConsolePortRequest { +func NewConsolePortRequest(device BriefDeviceRequest, name string) *ConsolePortRequest { this := ConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsolePortRequestWithDefaults() *ConsolePortRequest { } // GetDevice returns the Device field value -func (o *ConsolePortRequest) GetDevice() DeviceRequest { +func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortRequest) GetModule() ModuleRequest { +func (o *ConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go index c00a14247..3961404a1 100644 --- a/model_console_port_request_speed.go +++ b/model_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed.go b/model_console_port_speed.go index e28484684..5c6100934 100644 --- a/model_console_port_speed.go +++ b/model_console_port_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go index 4a4aaa975..67a2e9b4d 100644 --- a/model_console_port_speed_label.go +++ b/model_console_port_speed_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go index 814b669e0..b8422c6b2 100644 --- a/model_console_port_speed_value.go +++ b/model_console_port_speed_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_template.go b/model_console_port_template.go index 804ed4efc..44c4231f7 100644 --- a/model_console_port_template.go +++ b/model_console_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsolePortTemplate{} // ConsolePortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsolePortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetDeviceType() DeviceType { +func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsolePortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsolePortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsolePortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsolePortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetModuleType() ModuleType { +func (o *ConsolePortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsolePortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsolePortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsolePortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go index e3f1100b7..8507dbc4c 100644 --- a/model_console_port_template_request.go +++ b/model_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsolePortTemplateRequest{} // ConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsolePortTemplateRequestWithDefaults() *ConsolePortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_console_port_type.go b/model_console_port_type.go index 9e92401fc..5bb4fc95e 100644 --- a/model_console_port_type.go +++ b/model_console_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go index 9e6a3ab15..f4e5e6676 100644 --- a/model_console_port_type_label.go +++ b/model_console_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go index f9f68676d..da45425bd 100644 --- a/model_console_port_type_value.go +++ b/model_console_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_server_port.go b/model_console_server_port.go index 958e45db0..929c798e8 100644 --- a/model_console_server_port.go +++ b/model_console_server_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,27 @@ var _ MappedNullable = &ConsoleServerPort{} // ConsoleServerPort Adds support for custom fields and tags. type ConsoleServerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortType `json:"type,omitempty"` Speed NullableConsolePortSpeed `json:"speed,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -56,10 +57,11 @@ type _ConsoleServerPort ConsoleServerPort // 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 NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { +func NewConsoleServerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { this := ConsoleServerPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -132,6 +134,30 @@ func (o *ConsoleServerPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ConsoleServerPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ConsoleServerPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ConsoleServerPort) GetDisplay() string { if o == nil { @@ -157,9 +183,9 @@ func (o *ConsoleServerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsoleServerPort) GetDevice() Device { +func (o *ConsoleServerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +194,7 @@ func (o *ConsoleServerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { +func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +202,14 @@ func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsoleServerPort) SetDevice(v Device) { +func (o *ConsoleServerPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPort) GetModule() Module { +func (o *ConsoleServerPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +218,7 @@ func (o *ConsoleServerPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetModuleOk() (*Module, bool) { +func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,8 +234,8 @@ func (o *ConsoleServerPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsoleServerPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsoleServerPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -419,10 +445,10 @@ func (o *ConsoleServerPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsoleServerPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *ConsoleServerPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -432,7 +458,7 @@ func (o *ConsoleServerPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { +func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -440,7 +466,7 @@ func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *ConsoleServerPort) SetCable(v Cable) { +func (o *ConsoleServerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -493,30 +519,33 @@ func (o *ConsoleServerPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *ConsoleServerPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -528,8 +557,9 @@ func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -541,27 +571,29 @@ func (o *ConsoleServerPort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *ConsoleServerPort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -740,6 +772,7 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -764,9 +797,11 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -792,6 +827,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -836,6 +872,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go index a51f7782a..b24db5ce7 100644 --- a/model_console_server_port_request.go +++ b/model_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsoleServerPortRequest{} // ConsoleServerPortRequest Adds support for custom fields and tags. type ConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsoleServerPortRequest ConsoleServerPortRequest // 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 NewConsoleServerPortRequest(device DeviceRequest, name string) *ConsoleServerPortRequest { +func NewConsoleServerPortRequest(device BriefDeviceRequest, name string) *ConsoleServerPortRequest { this := ConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest { } // GetDevice returns the Device field value -func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go index 1ab6eee1c..d84a82a86 100644 --- a/model_console_server_port_template.go +++ b/model_console_server_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsoleServerPortTemplate{} // ConsoleServerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { +func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsoleServerPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { +func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go index bcbbf7a82..c947a82f6 100644 --- a/model_console_server_port_template_request.go +++ b/model_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{} // ConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsoleServerPortTemplateRequestWithDefaults() *ConsoleServerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_contact.go b/model_contact.go index 74e7412d7..c93339a1d 100644 --- a/model_contact.go +++ b/model_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Contact type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &Contact{} // Contact Adds support for custom fields and tags. type Contact struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Group NullableBriefContactGroup `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +47,15 @@ type _Contact Contact // 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 NewContact(id int32, url string, display string, name string) *Contact { +func NewContact(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *Contact { this := Contact{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +115,30 @@ func (o *Contact) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Contact) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Contact) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Contact) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Contact) GetDisplay() string { if o == nil { @@ -123,6 +163,49 @@ func (o *Contact) SetDisplay(v string) { o.Display = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Contact) GetGroup() BriefContactGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetGroupOk() (*BriefContactGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Contact) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroup and assigns it to the Group field. +func (o *Contact) SetGroup(v BriefContactGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Contact) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Contact) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *Contact) GetName() string { if o == nil { @@ -147,6 +230,166 @@ func (o *Contact) SetName(v string) { o.Name = v } +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *Contact) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *Contact) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *Contact) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *Contact) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *Contact) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *Contact) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *Contact) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *Contact) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *Contact) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *Contact) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *Contact) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *Contact) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *Contact) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *Contact) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *Contact) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Contact) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +422,154 @@ func (o *Contact) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Contact) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Contact) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Contact) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Contact) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Contact) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Contact) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Contact) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Contact) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Contact) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Contact) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Contact) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Contact) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Contact) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Contact) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +582,41 @@ func (o Contact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +632,11 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +668,21 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_assignment.go b/model_contact_assignment.go index a62312639..99017f24c 100644 --- a/model_contact_assignment.go +++ b/model_contact_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,19 +21,19 @@ var _ MappedNullable = &ContactAssignment{} // ContactAssignment Adds support for custom fields and tags. type ContactAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object map[string]interface{} `json:"object"` - Contact Contact `json:"contact"` - Role NullableContactRole `json:"role,omitempty"` - Priority *ContactAssignmentPriority `json:"priority,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + Contact BriefContact `json:"contact"` + Role NullableBriefContactRole `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -43,7 +43,7 @@ type _ContactAssignment ContactAssignment // 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 NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { +func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { this := ContactAssignment{} this.Id = id this.Url = url @@ -210,9 +210,9 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) { } // GetContact returns the Contact field value -func (o *ContactAssignment) GetContact() Contact { +func (o *ContactAssignment) GetContact() BriefContact { if o == nil { - var ret Contact + var ret BriefContact return ret } @@ -221,7 +221,7 @@ func (o *ContactAssignment) GetContact() Contact { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetContactOk() (*Contact, bool) { +func (o *ContactAssignment) GetContactOk() (*BriefContact, bool) { if o == nil { return nil, false } @@ -229,14 +229,14 @@ func (o *ContactAssignment) GetContactOk() (*Contact, bool) { } // SetContact sets field value -func (o *ContactAssignment) SetContact(v Contact) { +func (o *ContactAssignment) SetContact(v BriefContact) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignment) GetRole() ContactRole { +func (o *ContactAssignment) GetRole() BriefContactRole { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRole + var ret BriefContactRole return ret } return *o.Role.Get() @@ -245,7 +245,7 @@ func (o *ContactAssignment) GetRole() ContactRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool) { +func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *ContactAssignment) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRole and assigns it to the Role field. -func (o *ContactAssignment) SetRole(v ContactRole) { +// SetRole gets a reference to the given NullableBriefContactRole and assigns it to the Role field. +func (o *ContactAssignment) SetRole(v BriefContactRole) { o.Role.Set(&v) } @@ -277,9 +277,9 @@ func (o *ContactAssignment) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { +func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriority + var ret BriefCircuitGroupAssignmentSerializerPriority return ret } return *o.Priority @@ -287,7 +287,7 @@ func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool) { +func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -303,8 +303,8 @@ func (o *ContactAssignment) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriority and assigns it to the Priority field. -func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { o.Priority = &v } diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go index 8fb3e6e65..c68bd34ce 100644 --- a/model_contact_assignment_request.go +++ b/model_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ContactAssignmentRequest{} // ContactAssignmentRequest Adds support for custom fields and tags. type ContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _ContactAssignmentRequest ContactAssignmentRequest // 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 NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *ContactAssignmentRequest { +func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *ContactAssignmentRequest { this := ContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *ContactAssignmentRequest) GetContact() ContactRequest { +func (o *ContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +112,7 @@ func (o *ContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { } // SetContact sets field value -func (o *ContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *ContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *ContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *ContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_contact_group.go b/model_contact_group.go index 12c15cf45..2fd4f8bd9 100644 --- a/model_contact_group.go +++ b/model_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ContactGroup{} type ContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ 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, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *ContactGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ContactGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ContactGroup) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_contact_group_request.go b/model_contact_group_request.go index 9aea2147b..cd71a09de 100644 --- a/model_contact_group_request.go +++ b/model_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_contact_request.go b/model_contact_request.go index bb1e2df50..27db2b5ff 100644 --- a/model_contact_request.go +++ b/model_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ContactRequest{} // ContactRequest Adds support for custom fields and tags. type ContactRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Group NullableBriefContactGroupRequest `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,6 +54,49 @@ func NewContactRequestWithDefaults() *ContactRequest { return &this } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContactRequest) GetGroup() BriefContactGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ContactRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *ContactRequest) SetGroup(v BriefContactGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ContactRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ContactRequest) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *ContactRequest) GetName() string { if o == nil { @@ -69,6 +121,166 @@ func (o *ContactRequest) SetName(v string) { o.Name = v } +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ContactRequest) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ContactRequest) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ContactRequest) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *ContactRequest) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *ContactRequest) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *ContactRequest) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ContactRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *ContactRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *ContactRequest) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *ContactRequest) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *ContactRequest) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *ContactRequest) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *ContactRequest) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *ContactRequest) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *ContactRequest) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +313,102 @@ func (o *ContactRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ContactRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ContactRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ContactRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +419,37 @@ func (o ContactRequest) MarshalJSON() ([]byte, error) { func (o ContactRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -158,8 +493,17 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role.go b/model_contact_role.go index bb4b6f62b..748497899 100644 --- a/model_contact_role.go +++ b/model_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ContactRole type satisfies the MappedNullable interface at compile time @@ -20,12 +21,17 @@ var _ MappedNullable = &ContactRole{} // ContactRole Adds support for custom fields and tags. type ContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +41,16 @@ type _ContactRole ContactRole // 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 NewContactRole(id int32, url string, display string, name string, slug string) *ContactRole { +func NewContactRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *ContactRole { this := ContactRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +110,30 @@ func (o *ContactRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ContactRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ContactRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ContactRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ContactRole) GetDisplay() string { if o == nil { @@ -205,6 +238,122 @@ func (o *ContactRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRole) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRole) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ContactRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRole) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRole) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ContactRole) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ContactRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ContactRole) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ContactRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ContactRole) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +366,21 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +396,12 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +433,15 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role_request.go b/model_contact_role_request.go index c60293780..88ece951d 100644 --- a/model_contact_role_request.go +++ b/model_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,11 @@ var _ MappedNullable = &ContactRoleRequest{} // ContactRoleRequest Adds support for custom fields and tags. type ContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,6 +129,70 @@ func (o *ContactRoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRoleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRoleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactRoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRoleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRoleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -142,6 +208,12 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,6 +261,8 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_core_object_changes_list_action_parameter.go b/model_core_object_changes_list_action_parameter.go new file mode 100644 index 000000000..c17128e35 --- /dev/null +++ b/model_core_object_changes_list_action_parameter.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CoreObjectChangesListActionParameter the model 'CoreObjectChangesListActionParameter' +type CoreObjectChangesListActionParameter string + +// List of core_object_changes_list_action_parameter +const ( + COREOBJECTCHANGESLISTACTIONPARAMETER_CREATE CoreObjectChangesListActionParameter = "create" + COREOBJECTCHANGESLISTACTIONPARAMETER_DELETE CoreObjectChangesListActionParameter = "delete" + COREOBJECTCHANGESLISTACTIONPARAMETER_UPDATE CoreObjectChangesListActionParameter = "update" +) + +// All allowed values of CoreObjectChangesListActionParameter enum +var AllowedCoreObjectChangesListActionParameterEnumValues = []CoreObjectChangesListActionParameter{ + "create", + "delete", + "update", +} + +func (v *CoreObjectChangesListActionParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CoreObjectChangesListActionParameter(value) + for _, existing := range AllowedCoreObjectChangesListActionParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CoreObjectChangesListActionParameter", value) +} + +// NewCoreObjectChangesListActionParameterFromValue returns a pointer to a valid CoreObjectChangesListActionParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCoreObjectChangesListActionParameterFromValue(v string) (*CoreObjectChangesListActionParameter, error) { + ev := CoreObjectChangesListActionParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CoreObjectChangesListActionParameter: valid values are %v", v, AllowedCoreObjectChangesListActionParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CoreObjectChangesListActionParameter) IsValid() bool { + for _, existing := range AllowedCoreObjectChangesListActionParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to core_object_changes_list_action_parameter value +func (v CoreObjectChangesListActionParameter) Ptr() *CoreObjectChangesListActionParameter { + return &v +} + +type NullableCoreObjectChangesListActionParameter struct { + value *CoreObjectChangesListActionParameter + isSet bool +} + +func (v NullableCoreObjectChangesListActionParameter) Get() *CoreObjectChangesListActionParameter { + return v.value +} + +func (v *NullableCoreObjectChangesListActionParameter) Set(val *CoreObjectChangesListActionParameter) { + v.value = val + v.isSet = true +} + +func (v NullableCoreObjectChangesListActionParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreObjectChangesListActionParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreObjectChangesListActionParameter(val *CoreObjectChangesListActionParameter) *NullableCoreObjectChangesListActionParameter { + return &NullableCoreObjectChangesListActionParameter{value: val, isSet: true} +} + +func (v NullableCoreObjectChangesListActionParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreObjectChangesListActionParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_custom_field.go b/model_custom_field.go index aea0cf477..ba55e0998 100644 --- a/model_custom_field.go +++ b/model_custom_field.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomField{} type CustomField struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Type CustomFieldType `json:"type"` @@ -35,8 +36,10 @@ type CustomField struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` @@ -46,6 +49,8 @@ type CustomField struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -53,11 +58,11 @@ type CustomField struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSet `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -67,10 +72,11 @@ type _CustomField CustomField // 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 NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { +func NewCustomField(id int32, url string, displayUrl string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { this := CustomField{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Type = type_ @@ -137,6 +143,30 @@ func (o *CustomField) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CustomField) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CustomField) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CustomField) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CustomField) GetDisplay() string { if o == nil { @@ -428,6 +458,38 @@ func (o *CustomField) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomField) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomField) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomField) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomField) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomField) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -621,6 +683,39 @@ func (o *CustomField) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomField) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomField) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomField) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomField) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -772,9 +867,9 @@ func (o *CustomField) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { +func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSet + var ret BriefCustomFieldChoiceSet return ret } return *o.ChoiceSet.Get() @@ -783,7 +878,7 @@ func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool) { +func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool) { if o == nil { return nil, false } @@ -799,8 +894,8 @@ func (o *CustomField) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSet and assigns it to the ChoiceSet field. -func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSet and assigns it to the ChoiceSet field. +func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet) { o.ChoiceSet.Set(&v) } @@ -910,6 +1005,7 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["type"] = o.Type @@ -930,6 +1026,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -948,6 +1047,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -983,6 +1085,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "type", @@ -1021,6 +1124,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "type") @@ -1031,12 +1135,14 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go index 7926b715a..d19b4b105 100644 --- a/model_custom_field_choice_set.go +++ b/model_custom_field_choice_set.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomFieldChoiceSet{} type CustomFieldChoiceSet struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _CustomFieldChoiceSet CustomFieldChoiceSet // 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 NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { +func NewCustomFieldChoiceSet(id int32, url string, displayUrl string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { this := CustomFieldChoiceSet{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.ExtraChoices = extraChoices @@ -111,6 +113,30 @@ func (o *CustomFieldChoiceSet) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CustomFieldChoiceSet) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CustomFieldChoiceSet) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CustomFieldChoiceSet) GetDisplay() string { if o == nil { @@ -367,6 +393,7 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -397,6 +424,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "extra_choices", @@ -434,6 +462,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go index 387404fe0..591484b28 100644 --- a/model_custom_field_choice_set_base_choices.go +++ b/model_custom_field_choice_set_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go index bea7b22b5..e059ea12c 100644 --- a/model_custom_field_choice_set_base_choices_label.go +++ b/model_custom_field_choice_set_base_choices_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go index 2e891195a..6692ac26c 100644 --- a/model_custom_field_choice_set_base_choices_value.go +++ b/model_custom_field_choice_set_base_choices_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go index 9b0c67818..9f7caa51b 100644 --- a/model_custom_field_choice_set_request.go +++ b/model_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go index ec27bbfe0..0f0e582ea 100644 --- a/model_custom_field_filter_logic.go +++ b/model_custom_field_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go index 55b62d6da..3d7f34f32 100644 --- a/model_custom_field_filter_logic_label.go +++ b/model_custom_field_filter_logic_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go index b99381d64..5c2f596ab 100644 --- a/model_custom_field_filter_logic_value.go +++ b/model_custom_field_filter_logic_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_request.go b/model_custom_field_request.go index e62680adb..a65b77d78 100644 --- a/model_custom_field_request.go +++ b/model_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,10 @@ type CustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"` @@ -41,6 +43,8 @@ type CustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type CustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -319,6 +323,38 @@ func (o *CustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -512,6 +548,39 @@ func (o *CustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -663,9 +732,9 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -674,7 +743,7 @@ func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -690,8 +759,8 @@ func (o *CustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -765,6 +834,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -783,6 +855,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -854,12 +929,14 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_type.go b/model_custom_field_type.go index a3be15abf..1452081c5 100644 --- a/model_custom_field_type.go +++ b/model_custom_field_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go index 4e8cbc627..82ed258b6 100644 --- a/model_custom_field_type_label.go +++ b/model_custom_field_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go index 097829be5..ad1f827b4 100644 --- a/model_custom_field_type_value.go +++ b/model_custom_field_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go index 8d3e41d9a..2fa940d68 100644 --- a/model_custom_field_ui_editable.go +++ b/model_custom_field_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go index 6c09b4063..4efc566cf 100644 --- a/model_custom_field_ui_editable_label.go +++ b/model_custom_field_ui_editable_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go index b758a5455..a247267c1 100644 --- a/model_custom_field_ui_editable_value.go +++ b/model_custom_field_ui_editable_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go index d643bce9c..1fc6e5c3b 100644 --- a/model_custom_field_ui_visible.go +++ b/model_custom_field_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go index b66ef1e2b..e887833e4 100644 --- a/model_custom_field_ui_visible_label.go +++ b/model_custom_field_ui_visible_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go index d9f11b99b..c85711446 100644 --- a/model_custom_field_ui_visible_value.go +++ b/model_custom_field_ui_visible_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_link.go b/model_custom_link.go index 1de90af8a..aa3c797e1 100644 --- a/model_custom_link.go +++ b/model_custom_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomLink{} type CustomLink struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -48,10 +49,11 @@ type _CustomLink CustomLink // 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 NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { +func NewCustomLink(id int32, url string, displayUrl string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { this := CustomLink{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -118,6 +120,30 @@ func (o *CustomLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *CustomLink) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *CustomLink) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *CustomLink) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *CustomLink) GetDisplay() string { if o == nil { @@ -462,6 +488,7 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -499,6 +526,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", @@ -537,6 +565,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go index 50fd2a8f1..4686b78a8 100644 --- a/model_custom_link_button_class.go +++ b/model_custom_link_button_class.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,31 +15,31 @@ import ( "fmt" ) -// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link type CustomLinkButtonClass string // List of CustomLink_button_class const ( - CUSTOMLINKBUTTONCLASS_OUTLINE_DARK CustomLinkButtonClass = "outline-dark" - CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" - CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" - CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" - CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" - CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" - CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" - CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" - CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" - CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" - CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" - CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" - CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" - CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" - CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" + CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default" + CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" + CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" + CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" + CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" + CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" + CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" + CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" + CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" + CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" + CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" + CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" + CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" + CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" + CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" ) // All allowed values of CustomLinkButtonClass enum var AllowedCustomLinkButtonClassEnumValues = []CustomLinkButtonClass{ - "outline-dark", + "default", "blue", "indigo", "purple", diff --git a/model_custom_link_request.go b/model_custom_link_request.go index 6de4bbfdb..eef1e3fde 100644 --- a/model_custom_link_request.go +++ b/model_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard.go b/model_dashboard.go index 5f90d03d6..f23bc107d 100644 --- a/model_dashboard.go +++ b/model_dashboard.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard_request.go b/model_dashboard_request.go index 800dcc04e..fc181f111 100644 --- a/model_dashboard_request.go +++ b/model_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_file.go b/model_data_file.go index 53adc911d..a149ebe88 100644 --- a/model_data_file.go +++ b/model_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,11 @@ var _ MappedNullable = &DataFile{} // DataFile Adds support for custom fields and tags. type DataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Source DataSource `json:"source"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Source BriefDataSource `json:"source"` // File path relative to the data source's root Path string `json:"path"` LastUpdated time.Time `json:"last_updated"` @@ -40,10 +41,11 @@ type _DataFile DataFile // 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 NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { +func NewDataFile(id int32, url string, displayUrl string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { this := DataFile{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Source = source this.Path = path @@ -109,6 +111,30 @@ func (o *DataFile) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DataFile) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DataFile) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DataFile) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DataFile) GetDisplay() string { if o == nil { @@ -134,9 +160,9 @@ func (o *DataFile) SetDisplay(v string) { } // GetSource returns the Source field value -func (o *DataFile) GetSource() DataSource { +func (o *DataFile) GetSource() BriefDataSource { if o == nil { - var ret DataSource + var ret BriefDataSource return ret } @@ -145,7 +171,7 @@ func (o *DataFile) GetSource() DataSource { // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. -func (o *DataFile) GetSourceOk() (*DataSource, bool) { +func (o *DataFile) GetSourceOk() (*BriefDataSource, bool) { if o == nil { return nil, false } @@ -153,7 +179,7 @@ func (o *DataFile) GetSourceOk() (*DataSource, bool) { } // SetSource sets field value -func (o *DataFile) SetSource(v DataSource) { +func (o *DataFile) SetSource(v BriefDataSource) { o.Source = v } @@ -265,6 +291,7 @@ func (o DataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["source"] = o.Source toSerialize["path"] = o.Path @@ -286,6 +313,7 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "source", "path", @@ -323,6 +351,7 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "source") delete(additionalProperties, "path") diff --git a/model_data_source.go b/model_data_source.go index 2757ef5b2..b8d43d966 100644 --- a/model_data_source.go +++ b/model_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DataSource type satisfies the MappedNullable interface at compile time @@ -20,11 +21,25 @@ var _ MappedNullable = &DataSource{} // DataSource Adds support for custom fields and tags. type DataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Type DataSourceType `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Status DataSourceStatus `json:"status"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` + // Patterns (one per line) matching files to ignore when syncing + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + LastSynced NullableTime `json:"last_synced"` + FileCount int64 `json:"file_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +49,20 @@ type _DataSource DataSource // 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 NewDataSource(id int32, url string, display string, name string) *DataSource { +func NewDataSource(id int32, url string, displayUrl string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64) *DataSource { this := DataSource{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Type = type_ + this.SourceUrl = sourceUrl + this.Status = status + this.Created = created + this.LastUpdated = lastUpdated + this.LastSynced = lastSynced + this.FileCount = fileCount return &this } @@ -99,6 +122,30 @@ func (o *DataSource) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DataSource) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DataSource) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DataSource) GetDisplay() string { if o == nil { @@ -147,6 +194,110 @@ func (o *DataSource) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *DataSource) GetType() DataSourceType { + if o == nil { + var ret DataSourceType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetTypeOk() (*DataSourceType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DataSource) SetType(v DataSourceType) { + o.Type = v +} + +// GetSourceUrl returns the SourceUrl field value +func (o *DataSource) GetSourceUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SourceUrl +} + +// GetSourceUrlOk returns a tuple with the SourceUrl field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetSourceUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceUrl, true +} + +// SetSourceUrl sets field value +func (o *DataSource) SetSourceUrl(v string) { + o.SourceUrl = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *DataSource) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *DataSource) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *DataSource) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetStatus returns the Status field value +func (o *DataSource) GetStatus() DataSourceStatus { + if o == nil { + var ret DataSourceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *DataSource) SetStatus(v DataSourceStatus) { + o.Status = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DataSource) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +330,237 @@ func (o *DataSource) SetDescription(v string) { o.Description = &v } +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetParameters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetParametersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return &o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *DataSource) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. +func (o *DataSource) SetParameters(v interface{}) { + o.Parameters = v +} + +// GetIgnoreRules returns the IgnoreRules field value if set, zero value otherwise. +func (o *DataSource) GetIgnoreRules() string { + if o == nil || IsNil(o.IgnoreRules) { + var ret string + return ret + } + return *o.IgnoreRules +} + +// GetIgnoreRulesOk returns a tuple with the IgnoreRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetIgnoreRulesOk() (*string, bool) { + if o == nil || IsNil(o.IgnoreRules) { + return nil, false + } + return o.IgnoreRules, true +} + +// HasIgnoreRules returns a boolean if a field has been set. +func (o *DataSource) HasIgnoreRules() bool { + if o != nil && !IsNil(o.IgnoreRules) { + return true + } + + return false +} + +// SetIgnoreRules gets a reference to the given string and assigns it to the IgnoreRules field. +func (o *DataSource) SetIgnoreRules(v string) { + o.IgnoreRules = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSource) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSource) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSource) SetComments(v string) { + o.Comments = &v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DataSource) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DataSource) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DataSource) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DataSource) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DataSource) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetLastSynced returns the LastSynced field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetLastSynced() time.Time { + if o == nil || o.LastSynced.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastSynced.Get() +} + +// GetLastSyncedOk returns a tuple with the LastSynced field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetLastSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastSynced.Get(), o.LastSynced.IsSet() +} + +// SetLastSynced sets field value +func (o *DataSource) SetLastSynced(v time.Time) { + o.LastSynced.Set(&v) +} + +// GetFileCount returns the FileCount field value +func (o *DataSource) GetFileCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.FileCount +} + +// GetFileCountOk returns a tuple with the FileCount field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetFileCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.FileCount, true +} + +// SetFileCount sets field value +func (o *DataSource) SetFileCount(v int64) { + o.FileCount = v +} + func (o DataSource) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +573,34 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + toSerialize["source_url"] = o.SourceUrl + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + toSerialize["status"] = o.Status if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Parameters != nil { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.IgnoreRules) { + toSerialize["ignore_rules"] = o.IgnoreRules + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["last_synced"] = o.LastSynced.Get() + toSerialize["file_count"] = o.FileCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +616,16 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "type", + "source_url", + "status", + "created", + "last_updated", + "last_synced", + "file_count", } allProperties := make(map[string]interface{}) @@ -244,9 +657,22 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "source_url") + delete(additionalProperties, "enabled") + delete(additionalProperties, "status") delete(additionalProperties, "description") + delete(additionalProperties, "parameters") + delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "last_synced") + delete(additionalProperties, "file_count") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_request.go b/model_data_source_request.go index 356c146f7..acb516a3e 100644 --- a/model_data_source_request.go +++ b/model_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &DataSourceRequest{} // DataSourceRequest Adds support for custom fields and tags. type DataSourceRequest struct { - Name string `json:"name"` - Type DataSourceRequestType `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` + Name string `json:"name"` + Type DataSourceTypeValue `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _DataSourceRequest DataSourceRequest // 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 NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string) *DataSourceRequest { +func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest { this := DataSourceRequest{} this.Name = name this.Type = type_ @@ -80,9 +80,9 @@ func (o *DataSourceRequest) SetName(v string) { } // GetType returns the Type field value -func (o *DataSourceRequest) GetType() DataSourceRequestType { +func (o *DataSourceRequest) GetType() DataSourceTypeValue { if o == nil { - var ret DataSourceRequestType + var ret DataSourceTypeValue return ret } @@ -91,7 +91,7 @@ func (o *DataSourceRequest) GetType() DataSourceRequestType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { +func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) { if o == nil { return nil, false } @@ -99,7 +99,7 @@ func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { } // SetType sets field value -func (o *DataSourceRequest) SetType(v DataSourceRequestType) { +func (o *DataSourceRequest) SetType(v DataSourceTypeValue) { o.Type = v } @@ -191,38 +191,6 @@ func (o *DataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +256,38 @@ func (o *DataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *DataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_status.go b/model_data_source_status.go new file mode 100644 index 000000000..e55268943 --- /dev/null +++ b/model_data_source_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DataSourceStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataSourceStatus{} + +// DataSourceStatus struct for DataSourceStatus +type DataSourceStatus struct { + Value *DataSourceStatusValue `json:"value,omitempty"` + Label *DataSourceStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DataSourceStatus DataSourceStatus + +// NewDataSourceStatus instantiates a new DataSourceStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDataSourceStatus() *DataSourceStatus { + this := DataSourceStatus{} + return &this +} + +// NewDataSourceStatusWithDefaults instantiates a new DataSourceStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDataSourceStatusWithDefaults() *DataSourceStatus { + this := DataSourceStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DataSourceStatus) GetValue() DataSourceStatusValue { + if o == nil || IsNil(o.Value) { + var ret DataSourceStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceStatus) GetValueOk() (*DataSourceStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DataSourceStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DataSourceStatusValue and assigns it to the Value field. +func (o *DataSourceStatus) SetValue(v DataSourceStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DataSourceStatus) GetLabel() DataSourceStatusLabel { + if o == nil || IsNil(o.Label) { + var ret DataSourceStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceStatus) GetLabelOk() (*DataSourceStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DataSourceStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DataSourceStatusLabel and assigns it to the Label field. +func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) { + o.Label = &v +} + +func (o DataSourceStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataSourceStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DataSourceStatus) UnmarshalJSON(data []byte) (err error) { + varDataSourceStatus := _DataSourceStatus{} + + err = json.Unmarshal(data, &varDataSourceStatus) + + if err != nil { + return err + } + + *o = DataSourceStatus(varDataSourceStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDataSourceStatus struct { + value *DataSourceStatus + isSet bool +} + +func (v NullableDataSourceStatus) Get() *DataSourceStatus { + return v.value +} + +func (v *NullableDataSourceStatus) Set(val *DataSourceStatus) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatus(val *DataSourceStatus) *NullableDataSourceStatus { + return &NullableDataSourceStatus{value: val, isSet: true} +} + +func (v NullableDataSourceStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go new file mode 100644 index 000000000..d49dc58f7 --- /dev/null +++ b/model_data_source_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceStatusLabel the model 'DataSourceStatusLabel' +type DataSourceStatusLabel string + +// List of DataSource_status_label +const ( + DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New" + DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued" + DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing" + DATASOURCESTATUSLABEL_COMPLETED DataSourceStatusLabel = "Completed" + DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed" +) + +// All allowed values of DataSourceStatusLabel enum +var AllowedDataSourceStatusLabelEnumValues = []DataSourceStatusLabel{ + "New", + "Queued", + "Syncing", + "Completed", + "Failed", +} + +func (v *DataSourceStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceStatusLabel(value) + for _, existing := range AllowedDataSourceStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceStatusLabel", value) +} + +// NewDataSourceStatusLabelFromValue returns a pointer to a valid DataSourceStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceStatusLabelFromValue(v string) (*DataSourceStatusLabel, error) { + ev := DataSourceStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceStatusLabel: valid values are %v", v, AllowedDataSourceStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceStatusLabel) IsValid() bool { + for _, existing := range AllowedDataSourceStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_status_label value +func (v DataSourceStatusLabel) Ptr() *DataSourceStatusLabel { + return &v +} + +type NullableDataSourceStatusLabel struct { + value *DataSourceStatusLabel + isSet bool +} + +func (v NullableDataSourceStatusLabel) Get() *DataSourceStatusLabel { + return v.value +} + +func (v *NullableDataSourceStatusLabel) Set(val *DataSourceStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatusLabel(val *DataSourceStatusLabel) *NullableDataSourceStatusLabel { + return &NullableDataSourceStatusLabel{value: val, isSet: true} +} + +func (v NullableDataSourceStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_data_source_status_value.go b/model_data_source_status_value.go new file mode 100644 index 000000000..229bc9412 --- /dev/null +++ b/model_data_source_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceStatusValue * `new` - New * `queued` - Queued * `syncing` - Syncing * `completed` - Completed * `failed` - Failed +type DataSourceStatusValue string + +// List of DataSource_status_value +const ( + DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new" + DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued" + DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing" + DATASOURCESTATUSVALUE_COMPLETED DataSourceStatusValue = "completed" + DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed" +) + +// All allowed values of DataSourceStatusValue enum +var AllowedDataSourceStatusValueEnumValues = []DataSourceStatusValue{ + "new", + "queued", + "syncing", + "completed", + "failed", +} + +func (v *DataSourceStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceStatusValue(value) + for _, existing := range AllowedDataSourceStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceStatusValue", value) +} + +// NewDataSourceStatusValueFromValue returns a pointer to a valid DataSourceStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceStatusValueFromValue(v string) (*DataSourceStatusValue, error) { + ev := DataSourceStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceStatusValue: valid values are %v", v, AllowedDataSourceStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceStatusValue) IsValid() bool { + for _, existing := range AllowedDataSourceStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_status_value value +func (v DataSourceStatusValue) Ptr() *DataSourceStatusValue { + return &v +} + +type NullableDataSourceStatusValue struct { + value *DataSourceStatusValue + isSet bool +} + +func (v NullableDataSourceStatusValue) Get() *DataSourceStatusValue { + return v.value +} + +func (v *NullableDataSourceStatusValue) Set(val *DataSourceStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceStatusValue(val *DataSourceStatusValue) *NullableDataSourceStatusValue { + return &NullableDataSourceStatusValue{value: val, isSet: true} +} + +func (v NullableDataSourceStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_data_source_type.go b/model_data_source_type.go new file mode 100644 index 000000000..e4b689200 --- /dev/null +++ b/model_data_source_type.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DataSourceType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DataSourceType{} + +// DataSourceType struct for DataSourceType +type DataSourceType struct { + Value *DataSourceTypeValue `json:"value,omitempty"` + Label *DataSourceTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DataSourceType DataSourceType + +// NewDataSourceType instantiates a new DataSourceType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDataSourceType() *DataSourceType { + this := DataSourceType{} + return &this +} + +// NewDataSourceTypeWithDefaults instantiates a new DataSourceType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDataSourceTypeWithDefaults() *DataSourceType { + this := DataSourceType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DataSourceType) GetValue() DataSourceTypeValue { + if o == nil || IsNil(o.Value) { + var ret DataSourceTypeValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceType) GetValueOk() (*DataSourceTypeValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DataSourceType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DataSourceTypeValue and assigns it to the Value field. +func (o *DataSourceType) SetValue(v DataSourceTypeValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DataSourceType) GetLabel() DataSourceTypeLabel { + if o == nil || IsNil(o.Label) { + var ret DataSourceTypeLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceType) GetLabelOk() (*DataSourceTypeLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DataSourceType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DataSourceTypeLabel and assigns it to the Label field. +func (o *DataSourceType) SetLabel(v DataSourceTypeLabel) { + o.Label = &v +} + +func (o DataSourceType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DataSourceType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DataSourceType) UnmarshalJSON(data []byte) (err error) { + varDataSourceType := _DataSourceType{} + + err = json.Unmarshal(data, &varDataSourceType) + + if err != nil { + return err + } + + *o = DataSourceType(varDataSourceType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDataSourceType struct { + value *DataSourceType + isSet bool +} + +func (v NullableDataSourceType) Get() *DataSourceType { + return v.value +} + +func (v *NullableDataSourceType) Set(val *DataSourceType) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceType) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceType(val *DataSourceType) *NullableDataSourceType { + return &NullableDataSourceType{value: val, isSet: true} +} + +func (v NullableDataSourceType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go new file mode 100644 index 000000000..c15b1b87b --- /dev/null +++ b/model_data_source_type_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceTypeLabel the model 'DataSourceTypeLabel' +type DataSourceTypeLabel string + +// List of DataSource_type_label +const ( + DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------" + DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local" + DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git" + DATASOURCETYPELABEL_AMAZON_S3 DataSourceTypeLabel = "Amazon S3" +) + +// All allowed values of DataSourceTypeLabel enum +var AllowedDataSourceTypeLabelEnumValues = []DataSourceTypeLabel{ + "---------", + "Local", + "Git", + "Amazon S3", +} + +func (v *DataSourceTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceTypeLabel(value) + for _, existing := range AllowedDataSourceTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceTypeLabel", value) +} + +// NewDataSourceTypeLabelFromValue returns a pointer to a valid DataSourceTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceTypeLabelFromValue(v string) (*DataSourceTypeLabel, error) { + ev := DataSourceTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceTypeLabel: valid values are %v", v, AllowedDataSourceTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceTypeLabel) IsValid() bool { + for _, existing := range AllowedDataSourceTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_type_label value +func (v DataSourceTypeLabel) Ptr() *DataSourceTypeLabel { + return &v +} + +type NullableDataSourceTypeLabel struct { + value *DataSourceTypeLabel + isSet bool +} + +func (v NullableDataSourceTypeLabel) Get() *DataSourceTypeLabel { + return v.value +} + +func (v *NullableDataSourceTypeLabel) Set(val *DataSourceTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceTypeLabel(val *DataSourceTypeLabel) *NullableDataSourceTypeLabel { + return &NullableDataSourceTypeLabel{value: val, isSet: true} +} + +func (v NullableDataSourceTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_data_source_type_value.go b/model_data_source_type_value.go new file mode 100644 index 000000000..2b7ee17c7 --- /dev/null +++ b/model_data_source_type_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DataSourceTypeValue * `None` - --------- * `local` - Local * `git` - Git * `amazon-s3` - Amazon S3 +type DataSourceTypeValue string + +// List of DataSource_type_value +const ( + DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local" + DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git" + DATASOURCETYPEVALUE_AMAZON_S3 DataSourceTypeValue = "amazon-s3" +) + +// All allowed values of DataSourceTypeValue enum +var AllowedDataSourceTypeValueEnumValues = []DataSourceTypeValue{ + "local", + "git", + "amazon-s3", +} + +func (v *DataSourceTypeValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DataSourceTypeValue(value) + for _, existing := range AllowedDataSourceTypeValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DataSourceTypeValue", value) +} + +// NewDataSourceTypeValueFromValue returns a pointer to a valid DataSourceTypeValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDataSourceTypeValueFromValue(v string) (*DataSourceTypeValue, error) { + ev := DataSourceTypeValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DataSourceTypeValue: valid values are %v", v, AllowedDataSourceTypeValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DataSourceTypeValue) IsValid() bool { + for _, existing := range AllowedDataSourceTypeValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DataSource_type_value value +func (v DataSourceTypeValue) Ptr() *DataSourceTypeValue { + return &v +} + +type NullableDataSourceTypeValue struct { + value *DataSourceTypeValue + isSet bool +} + +func (v NullableDataSourceTypeValue) Get() *DataSourceTypeValue { + return v.value +} + +func (v *NullableDataSourceTypeValue) Set(val *DataSourceTypeValue) { + v.value = val + v.isSet = true +} + +func (v NullableDataSourceTypeValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDataSourceTypeValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDataSourceTypeValue(val *DataSourceTypeValue) *NullableDataSourceTypeValue { + return &NullableDataSourceTypeValue{value: val, isSet: true} +} + +func (v NullableDataSourceTypeValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDataSourceTypeValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_cables_list_length_unit_parameter.go b/model_dcim_cables_list_length_unit_parameter.go index f19ebe5fe..c75367e7b 100644 --- a/model_dcim_cables_list_length_unit_parameter.go +++ b/model_dcim_cables_list_length_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_port_templates_list_type_parameter.go b/model_dcim_console_port_templates_list_type_parameter.go index 7554c6357..65e818ac8 100644 --- a/model_dcim_console_port_templates_list_type_parameter.go +++ b/model_dcim_console_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_ports_list_speed_parameter.go b/model_dcim_console_ports_list_speed_parameter.go index 1f1008b17..f6c2231f8 100644 --- a/model_dcim_console_ports_list_speed_parameter.go +++ b/model_dcim_console_ports_list_speed_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_airflow_parameter.go b/model_dcim_device_types_list_airflow_parameter.go index 0d667f224..60f2617bb 100644 --- a/model_dcim_device_types_list_airflow_parameter.go +++ b/model_dcim_device_types_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_weight_unit_parameter.go b/model_dcim_device_types_list_weight_unit_parameter.go index acfb6c6fe..b764e17d8 100644 --- a/model_dcim_device_types_list_weight_unit_parameter.go +++ b/model_dcim_device_types_list_weight_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go index 62cac6541..9df25dd93 100644 --- a/model_dcim_devices_render_config_create_format_parameter.go +++ b/model_dcim_devices_render_config_create_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go index 64b1b66da..d045a72fc 100644 --- a/model_dcim_interfaces_list_mode_parameter.go +++ b/model_dcim_interfaces_list_mode_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_module_types_list_airflow_parameter.go b/model_dcim_module_types_list_airflow_parameter.go new file mode 100644 index 000000000..aa054247b --- /dev/null +++ b/model_dcim_module_types_list_airflow_parameter.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimModuleTypesListAirflowParameter the model 'DcimModuleTypesListAirflowParameter' +type DcimModuleTypesListAirflowParameter string + +// List of dcim_module_types_list_airflow_parameter +const ( + DCIMMODULETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimModuleTypesListAirflowParameter = "front-to-rear" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimModuleTypesListAirflowParameter = "left-to-right" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimModuleTypesListAirflowParameter = "rear-to-front" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimModuleTypesListAirflowParameter = "right-to-left" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear" +) + +// All allowed values of DcimModuleTypesListAirflowParameter enum +var AllowedDcimModuleTypesListAirflowParameterEnumValues = []DcimModuleTypesListAirflowParameter{ + "front-to-rear", + "left-to-right", + "passive", + "rear-to-front", + "right-to-left", + "side-to-rear", +} + +func (v *DcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimModuleTypesListAirflowParameter(value) + for _, existing := range AllowedDcimModuleTypesListAirflowParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimModuleTypesListAirflowParameter", value) +} + +// NewDcimModuleTypesListAirflowParameterFromValue returns a pointer to a valid DcimModuleTypesListAirflowParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimModuleTypesListAirflowParameterFromValue(v string) (*DcimModuleTypesListAirflowParameter, error) { + ev := DcimModuleTypesListAirflowParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimModuleTypesListAirflowParameter: valid values are %v", v, AllowedDcimModuleTypesListAirflowParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimModuleTypesListAirflowParameter) IsValid() bool { + for _, existing := range AllowedDcimModuleTypesListAirflowParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_module_types_list_airflow_parameter value +func (v DcimModuleTypesListAirflowParameter) Ptr() *DcimModuleTypesListAirflowParameter { + return &v +} + +type NullableDcimModuleTypesListAirflowParameter struct { + value *DcimModuleTypesListAirflowParameter + isSet bool +} + +func (v NullableDcimModuleTypesListAirflowParameter) Get() *DcimModuleTypesListAirflowParameter { + return v.value +} + +func (v *NullableDcimModuleTypesListAirflowParameter) Set(val *DcimModuleTypesListAirflowParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimModuleTypesListAirflowParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimModuleTypesListAirflowParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimModuleTypesListAirflowParameter(val *DcimModuleTypesListAirflowParameter) *NullableDcimModuleTypesListAirflowParameter { + return &NullableDcimModuleTypesListAirflowParameter{value: val, isSet: true} +} + +func (v NullableDcimModuleTypesListAirflowParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_power_feeds_list_phase_parameter.go b/model_dcim_power_feeds_list_phase_parameter.go index 887c4c185..1e77aede6 100644 --- a/model_dcim_power_feeds_list_phase_parameter.go +++ b/model_dcim_power_feeds_list_phase_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_supply_parameter.go b/model_dcim_power_feeds_list_supply_parameter.go index a9d411a9a..02f1901e6 100644 --- a/model_dcim_power_feeds_list_supply_parameter.go +++ b/model_dcim_power_feeds_list_supply_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_type_parameter.go b/model_dcim_power_feeds_list_type_parameter.go index 133f1c231..73ec1afc3 100644 --- a/model_dcim_power_feeds_list_type_parameter.go +++ b/model_dcim_power_feeds_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_outlet_templates_list_type_parameter.go b/model_dcim_power_outlet_templates_list_type_parameter.go index dc7840bb1..0e65367c8 100644 --- a/model_dcim_power_outlet_templates_list_type_parameter.go +++ b/model_dcim_power_outlet_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_port_templates_list_type_parameter.go b/model_dcim_power_port_templates_list_type_parameter.go index dcc5cfc55..0cc6d2650 100644 --- a/model_dcim_power_port_templates_list_type_parameter.go +++ b/model_dcim_power_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_rack_types_list_outer_unit_parameter.go b/model_dcim_rack_types_list_outer_unit_parameter.go new file mode 100644 index 000000000..16482f672 --- /dev/null +++ b/model_dcim_rack_types_list_outer_unit_parameter.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRackTypesListOuterUnitParameter the model 'DcimRackTypesListOuterUnitParameter' +type DcimRackTypesListOuterUnitParameter string + +// List of dcim_rack_types_list_outer_unit_parameter +const ( + DCIMRACKTYPESLISTOUTERUNITPARAMETER_IN DcimRackTypesListOuterUnitParameter = "in" + DCIMRACKTYPESLISTOUTERUNITPARAMETER_MM DcimRackTypesListOuterUnitParameter = "mm" +) + +// All allowed values of DcimRackTypesListOuterUnitParameter enum +var AllowedDcimRackTypesListOuterUnitParameterEnumValues = []DcimRackTypesListOuterUnitParameter{ + "in", + "mm", +} + +func (v *DcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRackTypesListOuterUnitParameter(value) + for _, existing := range AllowedDcimRackTypesListOuterUnitParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRackTypesListOuterUnitParameter", value) +} + +// NewDcimRackTypesListOuterUnitParameterFromValue returns a pointer to a valid DcimRackTypesListOuterUnitParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRackTypesListOuterUnitParameterFromValue(v string) (*DcimRackTypesListOuterUnitParameter, error) { + ev := DcimRackTypesListOuterUnitParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRackTypesListOuterUnitParameter: valid values are %v", v, AllowedDcimRackTypesListOuterUnitParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRackTypesListOuterUnitParameter) IsValid() bool { + for _, existing := range AllowedDcimRackTypesListOuterUnitParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_rack_types_list_outer_unit_parameter value +func (v DcimRackTypesListOuterUnitParameter) Ptr() *DcimRackTypesListOuterUnitParameter { + return &v +} + +type NullableDcimRackTypesListOuterUnitParameter struct { + value *DcimRackTypesListOuterUnitParameter + isSet bool +} + +func (v NullableDcimRackTypesListOuterUnitParameter) Get() *DcimRackTypesListOuterUnitParameter { + return v.value +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) Set(val *DcimRackTypesListOuterUnitParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRackTypesListOuterUnitParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRackTypesListOuterUnitParameter(val *DcimRackTypesListOuterUnitParameter) *NullableDcimRackTypesListOuterUnitParameter { + return &NullableDcimRackTypesListOuterUnitParameter{value: val, isSet: true} +} + +func (v NullableDcimRackTypesListOuterUnitParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_racks_elevation_retrieve_face_parameter.go b/model_dcim_racks_elevation_retrieve_face_parameter.go index 564e2c159..aee452ec5 100644 --- a/model_dcim_racks_elevation_retrieve_face_parameter.go +++ b/model_dcim_racks_elevation_retrieve_face_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go index 2506cd2cc..65183876f 100644 --- a/model_dcim_racks_elevation_retrieve_render_parameter.go +++ b/model_dcim_racks_elevation_retrieve_render_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_list_airflow_parameter.go b/model_dcim_racks_list_airflow_parameter.go new file mode 100644 index 000000000..18bfdc40b --- /dev/null +++ b/model_dcim_racks_list_airflow_parameter.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRacksListAirflowParameter the model 'DcimRacksListAirflowParameter' +type DcimRacksListAirflowParameter string + +// List of dcim_racks_list_airflow_parameter +const ( + DCIMRACKSLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimRacksListAirflowParameter = "front-to-rear" + DCIMRACKSLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimRacksListAirflowParameter = "rear-to-front" +) + +// All allowed values of DcimRacksListAirflowParameter enum +var AllowedDcimRacksListAirflowParameterEnumValues = []DcimRacksListAirflowParameter{ + "front-to-rear", + "rear-to-front", +} + +func (v *DcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRacksListAirflowParameter(value) + for _, existing := range AllowedDcimRacksListAirflowParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRacksListAirflowParameter", value) +} + +// NewDcimRacksListAirflowParameterFromValue returns a pointer to a valid DcimRacksListAirflowParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRacksListAirflowParameterFromValue(v string) (*DcimRacksListAirflowParameter, error) { + ev := DcimRacksListAirflowParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRacksListAirflowParameter: valid values are %v", v, AllowedDcimRacksListAirflowParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRacksListAirflowParameter) IsValid() bool { + for _, existing := range AllowedDcimRacksListAirflowParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_racks_list_airflow_parameter value +func (v DcimRacksListAirflowParameter) Ptr() *DcimRacksListAirflowParameter { + return &v +} + +type NullableDcimRacksListAirflowParameter struct { + value *DcimRacksListAirflowParameter + isSet bool +} + +func (v NullableDcimRacksListAirflowParameter) Get() *DcimRacksListAirflowParameter { + return v.value +} + +func (v *NullableDcimRacksListAirflowParameter) Set(val *DcimRacksListAirflowParameter) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRacksListAirflowParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRacksListAirflowParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRacksListAirflowParameter(val *DcimRacksListAirflowParameter) *NullableDcimRacksListAirflowParameter { + return &NullableDcimRacksListAirflowParameter{value: val, isSet: true} +} + +func (v NullableDcimRacksListAirflowParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device.go b/model_device.go index 701b56150..a064565e6 100644 --- a/model_device.go +++ b/model_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,42 +21,43 @@ var _ MappedNullable = &Device{} // Device Adds support for custom fields and tags. type Device struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name"` - DeviceType *DeviceType `json:"device_type,omitempty"` - Role *DeviceRole `json:"role,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name NullableString `json:"name"` + DeviceType *BriefDeviceType `json:"device_type,omitempty"` + Role *BriefDeviceRole `json:"role,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *Site `json:"site,omitempty"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSite `json:"site,omitempty"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -148,6 +149,38 @@ func (o *Device) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Device) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Device) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Device) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Device) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Device) GetDisplay() string { if o == nil { @@ -199,9 +232,9 @@ func (o *Device) SetName(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *Device) GetDeviceType() DeviceType { +func (o *Device) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType @@ -209,7 +242,7 @@ func (o *Device) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -225,15 +258,15 @@ func (o *Device) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceType and assigns it to the DeviceType field. -func (o *Device) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given BriefDeviceType and assigns it to the DeviceType field. +func (o *Device) SetDeviceType(v BriefDeviceType) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *Device) GetRole() DeviceRole { +func (o *Device) GetRole() BriefDeviceRole { if o == nil || IsNil(o.Role) { - var ret DeviceRole + var ret BriefDeviceRole return ret } return *o.Role @@ -241,7 +274,7 @@ func (o *Device) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetRoleOk() (*DeviceRole, bool) { +func (o *Device) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -257,15 +290,15 @@ func (o *Device) HasRole() bool { return false } -// SetRole gets a reference to the given DeviceRole and assigns it to the Role field. -func (o *Device) SetRole(v DeviceRole) { +// SetRole gets a reference to the given BriefDeviceRole and assigns it to the Role field. +func (o *Device) SetRole(v BriefDeviceRole) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetTenant() Tenant { +func (o *Device) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -274,7 +307,7 @@ func (o *Device) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetTenantOk() (*Tenant, bool) { +func (o *Device) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -290,8 +323,8 @@ func (o *Device) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Device) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Device) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -306,9 +339,9 @@ func (o *Device) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPlatform() Platform { +func (o *Device) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -317,7 +350,7 @@ func (o *Device) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPlatformOk() (*Platform, bool) { +func (o *Device) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -333,8 +366,8 @@ func (o *Device) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *Device) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *Device) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -424,9 +457,9 @@ func (o *Device) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *Device) GetSite() Site { +func (o *Device) GetSite() BriefSite { if o == nil || IsNil(o.Site) { - var ret Site + var ret BriefSite return ret } return *o.Site @@ -434,7 +467,7 @@ func (o *Device) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetSiteOk() (*Site, bool) { +func (o *Device) GetSiteOk() (*BriefSite, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -450,15 +483,15 @@ func (o *Device) HasSite() bool { return false } -// SetSite gets a reference to the given Site and assigns it to the Site field. -func (o *Device) SetSite(v Site) { +// SetSite gets a reference to the given BriefSite and assigns it to the Site field. +func (o *Device) SetSite(v BriefSite) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetLocation() Location { +func (o *Device) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -467,7 +500,7 @@ func (o *Device) GetLocation() Location { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetLocationOk() (*Location, bool) { +func (o *Device) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -483,8 +516,8 @@ func (o *Device) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *Device) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Device) SetLocation(v BriefLocation) { o.Location.Set(&v) } @@ -499,9 +532,9 @@ func (o *Device) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetRack() Rack { +func (o *Device) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -510,7 +543,7 @@ func (o *Device) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetRackOk() (*Rack, bool) { +func (o *Device) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -526,8 +559,8 @@ func (o *Device) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *Device) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *Device) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -810,9 +843,9 @@ func (o *Device) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp() IPAddress { +func (o *Device) GetPrimaryIp() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp.Get() @@ -821,7 +854,7 @@ func (o *Device) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -837,8 +870,8 @@ func (o *Device) HasPrimaryIp() bool { return false } -// SetPrimaryIp gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp field. -func (o *Device) SetPrimaryIp(v IPAddress) { +// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. +func (o *Device) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } @@ -853,9 +886,9 @@ func (o *Device) UnsetPrimaryIp() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp4() IPAddress { +func (o *Device) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -864,7 +897,7 @@ func (o *Device) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -880,8 +913,8 @@ func (o *Device) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *Device) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *Device) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -896,9 +929,9 @@ func (o *Device) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp6() IPAddress { +func (o *Device) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -907,7 +940,7 @@ func (o *Device) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -923,8 +956,8 @@ func (o *Device) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *Device) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *Device) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -939,9 +972,9 @@ func (o *Device) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetOobIp() IPAddress { +func (o *Device) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -950,7 +983,7 @@ func (o *Device) GetOobIp() IPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetOobIpOk() (*IPAddress, bool) { +func (o *Device) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -966,8 +999,8 @@ func (o *Device) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *Device) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *Device) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } @@ -982,9 +1015,9 @@ func (o *Device) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetCluster() Cluster { +func (o *Device) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -993,7 +1026,7 @@ func (o *Device) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetClusterOk() (*Cluster, bool) { +func (o *Device) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -1009,8 +1042,8 @@ func (o *Device) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *Device) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *Device) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -1025,9 +1058,9 @@ func (o *Device) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetVirtualChassis() VirtualChassis { +func (o *Device) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1036,7 +1069,7 @@ func (o *Device) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1052,8 +1085,8 @@ func (o *Device) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *Device) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *Device) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1210,9 +1243,9 @@ func (o *Device) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetConfigTemplate() ConfigTemplate { +func (o *Device) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1221,7 +1254,7 @@ func (o *Device) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1237,8 +1270,8 @@ func (o *Device) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *Device) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Device) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1767,6 +1800,9 @@ func (o Device) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name.Get() if !IsNil(o.DeviceType) { @@ -1942,6 +1978,7 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_airflow.go b/model_device_airflow.go index b3812caae..00a752776 100644 --- a/model_device_airflow.go +++ b/model_device_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go index 9d2429b94..bdf8bdb46 100644 --- a/model_device_airflow_label.go +++ b/model_device_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go index 9ff9281c9..11b552c60 100644 --- a/model_device_airflow_value.go +++ b/model_device_airflow_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_bay.go b/model_device_bay.go index ab35b6a54..22e3c118a 100644 --- a/model_device_bay.go +++ b/model_device_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,16 @@ var _ MappedNullable = &DeviceBay{} // DeviceBay Adds support for custom fields and tags. type DeviceBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` - InstalledDevice NullableDevice `json:"installed_device,omitempty"` + InstalledDevice NullableBriefDevice `json:"installed_device,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -43,10 +44,11 @@ type _DeviceBay DeviceBay // 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 NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { +func NewDeviceBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { this := DeviceBay{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -111,6 +113,30 @@ func (o *DeviceBay) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceBay) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceBay) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceBay) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceBay) GetDisplay() string { if o == nil { @@ -136,9 +162,9 @@ func (o *DeviceBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *DeviceBay) GetDevice() Device { +func (o *DeviceBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -147,7 +173,7 @@ func (o *DeviceBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBay) GetDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -155,7 +181,7 @@ func (o *DeviceBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *DeviceBay) SetDevice(v Device) { +func (o *DeviceBay) SetDevice(v BriefDevice) { o.Device = v } @@ -248,9 +274,9 @@ func (o *DeviceBay) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBay) GetInstalledDevice() Device { +func (o *DeviceBay) GetInstalledDevice() BriefDevice { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.InstalledDevice.Get() @@ -259,7 +285,7 @@ func (o *DeviceBay) GetInstalledDevice() Device { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -275,8 +301,8 @@ func (o *DeviceBay) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDevice and assigns it to the InstalledDevice field. -func (o *DeviceBay) SetInstalledDevice(v Device) { +// SetInstalledDevice gets a reference to the given NullableBriefDevice and assigns it to the InstalledDevice field. +func (o *DeviceBay) SetInstalledDevice(v BriefDevice) { o.InstalledDevice.Set(&v) } @@ -418,6 +444,7 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -453,6 +480,7 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -489,6 +517,7 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_device_bay_request.go b/model_device_bay_request.go index 514b0172e..17ef09ae8 100644 --- a/model_device_bay_request.go +++ b/model_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &DeviceBayRequest{} // DeviceBayRequest Adds support for custom fields and tags. type DeviceBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _DeviceBayRequest DeviceBayRequest // 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 NewDeviceBayRequest(device DeviceRequest, name string) *DeviceBayRequest { +func NewDeviceBayRequest(device BriefDeviceRequest, name string) *DeviceBayRequest { this := DeviceBayRequest{} this.Device = device this.Name = name @@ -53,9 +53,9 @@ func NewDeviceBayRequestWithDefaults() *DeviceBayRequest { } // GetDevice returns the Device field value -func (o *DeviceBayRequest) GetDevice() DeviceRequest { +func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *DeviceBayRequest) SetDevice(v DeviceRequest) { +func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -165,9 +165,9 @@ func (o *DeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -176,7 +176,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -192,8 +192,8 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_device_bay_template.go b/model_device_bay_template.go index 6ea0c9a93..1dedbb099 100644 --- a/model_device_bay_template.go +++ b/model_device_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &DeviceBayTemplate{} // DeviceBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -41,7 +41,7 @@ type _DeviceBayTemplate DeviceBayTemplate // 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 NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { +func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { this := DeviceBayTemplate{} this.Id = id this.Url = url @@ -134,9 +134,9 @@ func (o *DeviceBayTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplate) GetDeviceType() DeviceType { +func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -145,7 +145,7 @@ func (o *DeviceBayTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -153,7 +153,7 @@ func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceBayTemplate) SetDeviceType(v DeviceType) { +func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go index b75a4eaa3..05bfa2736 100644 --- a/model_device_bay_template_request.go +++ b/model_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &DeviceBayTemplateRequest{} // DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -35,7 +35,7 @@ type _DeviceBayTemplateRequest DeviceBayTemplateRequest // 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 NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string) *DeviceBayTemplateRequest { +func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *DeviceBayTemplateRequest { this := DeviceBayTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -51,9 +51,9 @@ func NewDeviceBayTemplateRequestWithDefaults() *DeviceBayTemplateRequest { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) } // SetDeviceType sets field value -func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } diff --git a/model_device_face.go b/model_device_face.go index 380afa689..1ad93cac2 100644 --- a/model_device_face.go +++ b/model_device_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_label.go b/model_device_face_label.go index b74e4452a..e503f66cb 100644 --- a/model_device_face_label.go +++ b/model_device_face_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_value.go b/model_device_face_value.go index c693fb0de..aa8337318 100644 --- a/model_device_face_value.go +++ b/model_device_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_role.go b/model_device_role.go index bcd70a8fe..ef4c31a8b 100644 --- a/model_device_role.go +++ b/model_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DeviceRole type satisfies the MappedNullable interface at compile time @@ -20,14 +21,23 @@ var _ MappedNullable = &DeviceRole{} // DeviceRole Adds support for custom fields and tags. type DeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + // Virtual machines may be assigned to this role + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +47,16 @@ 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, display string, name string, slug string) *DeviceRole { +func NewDeviceRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +116,30 @@ func (o *DeviceRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceRole) GetDisplay() string { if o == nil { @@ -175,6 +212,113 @@ func (o *DeviceRole) SetSlug(v string) { o.Slug = v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *DeviceRole) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *DeviceRole) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *DeviceRole) SetColor(v string) { + o.Color = &v +} + +// GetVmRole returns the VmRole field value if set, zero value otherwise. +func (o *DeviceRole) GetVmRole() bool { + if o == nil || IsNil(o.VmRole) { + var ret bool + return ret + } + return *o.VmRole +} + +// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetVmRoleOk() (*bool, bool) { + if o == nil || IsNil(o.VmRole) { + return nil, false + } + return o.VmRole, true +} + +// HasVmRole returns a boolean if a field has been set. +func (o *DeviceRole) HasVmRole() bool { + if o != nil && !IsNil(o.VmRole) { + return true + } + + return false +} + +// SetVmRole gets a reference to the given bool and assigns it to the VmRole field. +func (o *DeviceRole) SetVmRole(v bool) { + o.VmRole = &v +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *DeviceRole) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *DeviceRole) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *DeviceRole) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +351,122 @@ func (o *DeviceRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceRole) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceRole) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *DeviceRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceRole) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceRole) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceRole) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DeviceRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceRole) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DeviceRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceRole) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -283,12 +543,30 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.VmRole) { + toSerialize["vm_role"] = o.VmRole + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -310,9 +588,12 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -344,10 +625,18 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "vm_role") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_device_role_request.go b/model_device_role_request.go index 111b389d1..372639e95 100644 --- a/model_device_role_request.go +++ b/model_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,11 +24,11 @@ type DeviceRoleRequest struct { Slug string `json:"slug"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -166,9 +166,9 @@ func (o *DeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -177,7 +177,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_device_status.go b/model_device_status.go index 04e480442..ccf7bd107 100644 --- a/model_device_status.go +++ b/model_device_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_label.go b/model_device_status_label.go index 4490be89a..61904d51f 100644 --- a/model_device_status_label.go +++ b/model_device_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_value.go b/model_device_status_value.go index 032b9b5b6..0ff3689a0 100644 --- a/model_device_status_value.go +++ b/model_device_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type.go b/model_device_type.go index 491bcc177..afcd735a2 100644 --- a/model_device_type.go +++ b/model_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DeviceType type satisfies the MappedNullable interface at compile time @@ -20,15 +21,45 @@ var _ MappedNullable = &DeviceType{} // DeviceType Adds support for custom fields and tags. type DeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + DefaultPlatform NullableBriefPlatform `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + FrontImage NullableString `json:"front_image,omitempty"` + RearImage NullableString `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + ConsolePortTemplateCount int32 `json:"console_port_template_count"` + ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"` + PowerPortTemplateCount int32 `json:"power_port_template_count"` + PowerOutletTemplateCount int32 `json:"power_outlet_template_count"` + InterfaceTemplateCount int32 `json:"interface_template_count"` + FrontPortTemplateCount int32 `json:"front_port_template_count"` + RearPortTemplateCount int32 `json:"rear_port_template_count"` + DeviceBayTemplateCount int32 `json:"device_bay_template_count"` + ModuleBayTemplateCount int32 `json:"module_bay_template_count"` + InventoryItemTemplateCount int32 `json:"inventory_item_template_count"` + AdditionalProperties map[string]interface{} } type _DeviceType DeviceType @@ -37,14 +68,29 @@ type _DeviceType DeviceType // 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 NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string) *DeviceType { +func NewDeviceType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32) *DeviceType { this := DeviceType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight + this.Created = created + this.LastUpdated = lastUpdated + this.ConsolePortTemplateCount = consolePortTemplateCount + this.ConsoleServerPortTemplateCount = consoleServerPortTemplateCount + this.PowerPortTemplateCount = powerPortTemplateCount + this.PowerOutletTemplateCount = powerOutletTemplateCount + this.InterfaceTemplateCount = interfaceTemplateCount + this.FrontPortTemplateCount = frontPortTemplateCount + this.RearPortTemplateCount = rearPortTemplateCount + this.DeviceBayTemplateCount = deviceBayTemplateCount + this.ModuleBayTemplateCount = moduleBayTemplateCount + this.InventoryItemTemplateCount = inventoryItemTemplateCount return &this } @@ -53,6 +99,8 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur // but it doesn't guarantee that properties required by API are set func NewDeviceTypeWithDefaults() *DeviceType { this := DeviceType{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -104,6 +152,30 @@ func (o *DeviceType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceType) GetDisplay() string { if o == nil { @@ -129,9 +201,9 @@ func (o *DeviceType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *DeviceType) GetManufacturer() Manufacturer { +func (o *DeviceType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -140,7 +212,7 @@ func (o *DeviceType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -148,10 +220,53 @@ func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *DeviceType) SetManufacturer(v Manufacturer) { +func (o *DeviceType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetDefaultPlatform() BriefPlatform { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatform + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceType) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatform and assigns it to the DefaultPlatform field. +func (o *DeviceType) SetDefaultPlatform(v BriefPlatform) { + o.DefaultPlatform.Set(&v) +} + +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceType) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceType) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceType) GetModel() string { if o == nil { @@ -200,6 +315,392 @@ func (o *DeviceType) SetSlug(v string) { o.Slug = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceType) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceType) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceType) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceType) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceType) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceType) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceType) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceType) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceType) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} + +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceType) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceType) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetAirflow() DeviceTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeAirflow and assigns it to the Airflow field. +func (o *DeviceType) SetAirflow(v DeviceTypeAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *DeviceType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *DeviceType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetFrontImage() string { + if o == nil || IsNil(o.FrontImage.Get()) { + var ret string + return ret + } + return *o.FrontImage.Get() +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetFrontImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FrontImage.Get(), o.FrontImage.IsSet() +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceType) HasFrontImage() bool { + if o != nil && o.FrontImage.IsSet() { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given NullableString and assigns it to the FrontImage field. +func (o *DeviceType) SetFrontImage(v string) { + o.FrontImage.Set(&v) +} + +// SetFrontImageNil sets the value for FrontImage to be an explicit nil +func (o *DeviceType) SetFrontImageNil() { + o.FrontImage.Set(nil) +} + +// UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +func (o *DeviceType) UnsetFrontImage() { + o.FrontImage.Unset() +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetRearImage() string { + if o == nil || IsNil(o.RearImage.Get()) { + var ret string + return ret + } + return *o.RearImage.Get() +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetRearImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RearImage.Get(), o.RearImage.IsSet() +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceType) HasRearImage() bool { + if o != nil && o.RearImage.IsSet() { + return true + } + + return false +} + +// SetRearImage gets a reference to the given NullableString and assigns it to the RearImage field. +func (o *DeviceType) SetRearImage(v string) { + o.RearImage.Set(&v) +} + +// SetRearImageNil sets the value for RearImage to be an explicit nil +func (o *DeviceType) SetRearImageNil() { + o.RearImage.Set(nil) +} + +// UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil +func (o *DeviceType) UnsetRearImage() { + o.RearImage.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -232,6 +733,154 @@ func (o *DeviceType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *DeviceType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DeviceType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DeviceType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceType) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -264,6 +913,246 @@ func (o *DeviceType) SetDeviceCount(v int64) { o.DeviceCount = &v } +// GetConsolePortTemplateCount returns the ConsolePortTemplateCount field value +func (o *DeviceType) GetConsolePortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsolePortTemplateCount +} + +// GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsolePortTemplateCount, true +} + +// SetConsolePortTemplateCount sets field value +func (o *DeviceType) SetConsolePortTemplateCount(v int32) { + o.ConsolePortTemplateCount = v +} + +// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value +func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsoleServerPortTemplateCount +} + +// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleServerPortTemplateCount, true +} + +// SetConsoleServerPortTemplateCount sets field value +func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) { + o.ConsoleServerPortTemplateCount = v +} + +// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value +func (o *DeviceType) GetPowerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerPortTemplateCount +} + +// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerPortTemplateCount, true +} + +// SetPowerPortTemplateCount sets field value +func (o *DeviceType) SetPowerPortTemplateCount(v int32) { + o.PowerPortTemplateCount = v +} + +// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value +func (o *DeviceType) GetPowerOutletTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerOutletTemplateCount +} + +// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerOutletTemplateCount, true +} + +// SetPowerOutletTemplateCount sets field value +func (o *DeviceType) SetPowerOutletTemplateCount(v int32) { + o.PowerOutletTemplateCount = v +} + +// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value +func (o *DeviceType) GetInterfaceTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceTemplateCount +} + +// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceTemplateCount, true +} + +// SetInterfaceTemplateCount sets field value +func (o *DeviceType) SetInterfaceTemplateCount(v int32) { + o.InterfaceTemplateCount = v +} + +// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value +func (o *DeviceType) GetFrontPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FrontPortTemplateCount +} + +// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FrontPortTemplateCount, true +} + +// SetFrontPortTemplateCount sets field value +func (o *DeviceType) SetFrontPortTemplateCount(v int32) { + o.FrontPortTemplateCount = v +} + +// GetRearPortTemplateCount returns the RearPortTemplateCount field value +func (o *DeviceType) GetRearPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RearPortTemplateCount +} + +// GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RearPortTemplateCount, true +} + +// SetRearPortTemplateCount sets field value +func (o *DeviceType) SetRearPortTemplateCount(v int32) { + o.RearPortTemplateCount = v +} + +// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value +func (o *DeviceType) GetDeviceBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceBayTemplateCount +} + +// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceBayTemplateCount, true +} + +// SetDeviceBayTemplateCount sets field value +func (o *DeviceType) SetDeviceBayTemplateCount(v int32) { + o.DeviceBayTemplateCount = v +} + +// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value +func (o *DeviceType) GetModuleBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ModuleBayTemplateCount +} + +// GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBayTemplateCount, true +} + +// SetModuleBayTemplateCount sets field value +func (o *DeviceType) SetModuleBayTemplateCount(v int32) { + o.ModuleBayTemplateCount = v +} + +// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value +func (o *DeviceType) GetInventoryItemTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InventoryItemTemplateCount +} + +// GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InventoryItemTemplateCount, true +} + +// SetInventoryItemTemplateCount sets field value +func (o *DeviceType) SetInventoryItemTemplateCount(v int32) { + o.InventoryItemTemplateCount = v +} + func (o DeviceType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -276,16 +1165,71 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.FrontImage.IsSet() { + toSerialize["front_image"] = o.FrontImage.Get() + } + if o.RearImage.IsSet() { + toSerialize["rear_image"] = o.RearImage.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } + toSerialize["console_port_template_count"] = o.ConsolePortTemplateCount + toSerialize["console_server_port_template_count"] = o.ConsoleServerPortTemplateCount + toSerialize["power_port_template_count"] = o.PowerPortTemplateCount + toSerialize["power_outlet_template_count"] = o.PowerOutletTemplateCount + toSerialize["interface_template_count"] = o.InterfaceTemplateCount + toSerialize["front_port_template_count"] = o.FrontPortTemplateCount + toSerialize["rear_port_template_count"] = o.RearPortTemplateCount + toSerialize["device_bay_template_count"] = o.DeviceBayTemplateCount + toSerialize["module_bay_template_count"] = o.ModuleBayTemplateCount + toSerialize["inventory_item_template_count"] = o.InventoryItemTemplateCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -301,10 +1245,23 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "manufacturer", "model", "slug", + "created", + "last_updated", + "console_port_template_count", + "console_server_port_template_count", + "power_port_template_count", + "power_outlet_template_count", + "interface_template_count", + "front_port_template_count", + "rear_port_template_count", + "device_bay_template_count", + "module_bay_template_count", + "inventory_item_template_count", } allProperties := make(map[string]interface{}) @@ -336,12 +1293,39 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "console_port_template_count") + delete(additionalProperties, "console_server_port_template_count") + delete(additionalProperties, "power_port_template_count") + delete(additionalProperties, "power_outlet_template_count") + delete(additionalProperties, "interface_template_count") + delete(additionalProperties, "front_port_template_count") + delete(additionalProperties, "rear_port_template_count") + delete(additionalProperties, "device_bay_template_count") + delete(additionalProperties, "module_bay_template_count") + delete(additionalProperties, "inventory_item_template_count") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go new file mode 100644 index 000000000..dc4e6ca54 --- /dev/null +++ b/model_device_type_airflow.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeAirflow{} + +// DeviceTypeAirflow struct for DeviceTypeAirflow +type DeviceTypeAirflow struct { + Value *DeviceAirflowValue `json:"value,omitempty"` + Label *DeviceAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeAirflow DeviceTypeAirflow + +// NewDeviceTypeAirflow instantiates a new DeviceTypeAirflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceTypeAirflow() *DeviceTypeAirflow { + this := DeviceTypeAirflow{} + return &this +} + +// NewDeviceTypeAirflowWithDefaults instantiates a new DeviceTypeAirflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceTypeAirflowWithDefaults() *DeviceTypeAirflow { + this := DeviceTypeAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeAirflow) GetValue() DeviceAirflowValue { + if o == nil || IsNil(o.Value) { + var ret DeviceAirflowValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeAirflow) GetValueOk() (*DeviceAirflowValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeviceTypeAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceAirflowValue and assigns it to the Value field. +func (o *DeviceTypeAirflow) SetValue(v DeviceAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeAirflow) GetLabel() DeviceAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceAirflowLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeAirflow) GetLabelOk() (*DeviceAirflowLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DeviceTypeAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceAirflowLabel and assigns it to the Label field. +func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel) { + o.Label = &v +} + +func (o DeviceTypeAirflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeAirflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceTypeAirflow) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeAirflow := _DeviceTypeAirflow{} + + err = json.Unmarshal(data, &varDeviceTypeAirflow) + + if err != nil { + return err + } + + *o = DeviceTypeAirflow(varDeviceTypeAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeAirflow struct { + value *DeviceTypeAirflow + isSet bool +} + +func (v NullableDeviceTypeAirflow) Get() *DeviceTypeAirflow { + return v.value +} + +func (v *NullableDeviceTypeAirflow) Set(val *DeviceTypeAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeAirflow(val *DeviceTypeAirflow) *NullableDeviceTypeAirflow { + return &NullableDeviceTypeAirflow{value: val, isSet: true} +} + +func (v NullableDeviceTypeAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_type_request.go b/model_device_type_request.go index f72377aaa..08c2fd234 100644 --- a/model_device_type_request.go +++ b/model_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "os" ) // checks if the DeviceTypeRequest type satisfies the MappedNullable interface at compile time @@ -20,10 +21,27 @@ var _ MappedNullable = &DeviceTypeRequest{} // DeviceTypeRequest Adds support for custom fields and tags. type DeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeRequestSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,11 +51,13 @@ type _DeviceTypeRequest DeviceTypeRequest // 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 NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *DeviceTypeRequest { +func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *DeviceTypeRequest { this := DeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -46,13 +66,15 @@ func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug s // but it doesn't guarantee that properties required by API are set func NewDeviceTypeRequestWithDefaults() *DeviceTypeRequest { this := DeviceTypeRequest{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } // GetManufacturer returns the Manufacturer field value -func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -61,7 +83,7 @@ func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -69,10 +91,53 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatformRequest + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { + o.DefaultPlatform.Set(&v) +} + +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceTypeRequest) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceTypeRequest) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceTypeRequest) GetModel() string { if o == nil { @@ -121,6 +186,370 @@ func (o *DeviceTypeRequest) SetSlug(v string) { o.Slug = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceTypeRequest) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceTypeRequest) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeRequestSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeRequestSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} + +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceTypeRequest) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceTypeRequest) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *DeviceTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *DeviceTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetFrontImage() *os.File { + if o == nil || IsNil(o.FrontImage) { + var ret *os.File + return ret + } + return *o.FrontImage +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool) { + if o == nil || IsNil(o.FrontImage) { + return nil, false + } + return o.FrontImage, true +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasFrontImage() bool { + if o != nil && !IsNil(o.FrontImage) { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given *os.File and assigns it to the FrontImage field. +func (o *DeviceTypeRequest) SetFrontImage(v *os.File) { + o.FrontImage = &v +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetRearImage() *os.File { + if o == nil || IsNil(o.RearImage) { + var ret *os.File + return ret + } + return *o.RearImage +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool) { + if o == nil || IsNil(o.RearImage) { + return nil, false + } + return o.RearImage, true +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasRearImage() bool { + if o != nil && !IsNil(o.RearImage) { + return true + } + + return false +} + +// SetRearImage gets a reference to the given *os.File and assigns it to the RearImage field. +func (o *DeviceTypeRequest) SetRearImage(v *os.File) { + o.RearImage = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -153,6 +582,102 @@ func (o *DeviceTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -164,11 +689,53 @@ func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.FrontImage) { + toSerialize["front_image"] = o.FrontImage + } + if !IsNil(o.RearImage) { + toSerialize["rear_image"] = o.RearImage + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -215,9 +782,23 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go new file mode 100644 index 000000000..8c3a8d0d7 --- /dev/null +++ b/model_device_type_request_airflow.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed +type DeviceTypeRequestAirflow string + +// List of DeviceTypeRequest_airflow +const ( + DEVICETYPEREQUESTAIRFLOW_FRONT_TO_REAR DeviceTypeRequestAirflow = "front-to-rear" + DEVICETYPEREQUESTAIRFLOW_REAR_TO_FRONT DeviceTypeRequestAirflow = "rear-to-front" + DEVICETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT DeviceTypeRequestAirflow = "left-to-right" + DEVICETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT DeviceTypeRequestAirflow = "right-to-left" + DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear" + DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive" + DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed" + DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = "" +) + +// All allowed values of DeviceTypeRequestAirflow enum +var AllowedDeviceTypeRequestAirflowEnumValues = []DeviceTypeRequestAirflow{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "mixed", + "", +} + +func (v *DeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestAirflow(value) + for _, existing := range AllowedDeviceTypeRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestAirflow", value) +} + +// NewDeviceTypeRequestAirflowFromValue returns a pointer to a valid DeviceTypeRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestAirflowFromValue(v string) (*DeviceTypeRequestAirflow, error) { + ev := DeviceTypeRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestAirflow: valid values are %v", v, AllowedDeviceTypeRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestAirflow) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_airflow value +func (v DeviceTypeRequestAirflow) Ptr() *DeviceTypeRequestAirflow { + return &v +} + +type NullableDeviceTypeRequestAirflow struct { + value *DeviceTypeRequestAirflow + isSet bool +} + +func (v NullableDeviceTypeRequestAirflow) Get() *DeviceTypeRequestAirflow { + return v.value +} + +func (v *NullableDeviceTypeRequestAirflow) Set(val *DeviceTypeRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestAirflow(val *DeviceTypeRequestAirflow) *NullableDeviceTypeRequestAirflow { + return &NullableDeviceTypeRequestAirflow{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_request_subdevice_role.go b/model_device_type_request_subdevice_role.go new file mode 100644 index 000000000..f0f8c76bb --- /dev/null +++ b/model_device_type_request_subdevice_role.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestSubdeviceRole * `parent` - Parent * `child` - Child +type DeviceTypeRequestSubdeviceRole string + +// List of DeviceTypeRequest_subdevice_role +const ( + DEVICETYPEREQUESTSUBDEVICEROLE_PARENT DeviceTypeRequestSubdeviceRole = "parent" + DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child" + DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = "" +) + +// All allowed values of DeviceTypeRequestSubdeviceRole enum +var AllowedDeviceTypeRequestSubdeviceRoleEnumValues = []DeviceTypeRequestSubdeviceRole{ + "parent", + "child", + "", +} + +func (v *DeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestSubdeviceRole(value) + for _, existing := range AllowedDeviceTypeRequestSubdeviceRoleEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestSubdeviceRole", value) +} + +// NewDeviceTypeRequestSubdeviceRoleFromValue returns a pointer to a valid DeviceTypeRequestSubdeviceRole +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestSubdeviceRoleFromValue(v string) (*DeviceTypeRequestSubdeviceRole, error) { + ev := DeviceTypeRequestSubdeviceRole(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestSubdeviceRole: valid values are %v", v, AllowedDeviceTypeRequestSubdeviceRoleEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestSubdeviceRole) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestSubdeviceRoleEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_subdevice_role value +func (v DeviceTypeRequestSubdeviceRole) Ptr() *DeviceTypeRequestSubdeviceRole { + return &v +} + +type NullableDeviceTypeRequestSubdeviceRole struct { + value *DeviceTypeRequestSubdeviceRole + isSet bool +} + +func (v NullableDeviceTypeRequestSubdeviceRole) Get() *DeviceTypeRequestSubdeviceRole { + return v.value +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) Set(val *DeviceTypeRequestSubdeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestSubdeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestSubdeviceRole(val *DeviceTypeRequestSubdeviceRole) *NullableDeviceTypeRequestSubdeviceRole { + return &NullableDeviceTypeRequestSubdeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestSubdeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_request_weight_unit.go b/model_device_type_request_weight_unit.go new file mode 100644 index 000000000..e6c3d33a2 --- /dev/null +++ b/model_device_type_request_weight_unit.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeRequestWeightUnit * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +type DeviceTypeRequestWeightUnit string + +// List of DeviceTypeRequest_weight_unit +const ( + DEVICETYPEREQUESTWEIGHTUNIT_KG DeviceTypeRequestWeightUnit = "kg" + DEVICETYPEREQUESTWEIGHTUNIT_G DeviceTypeRequestWeightUnit = "g" + DEVICETYPEREQUESTWEIGHTUNIT_LB DeviceTypeRequestWeightUnit = "lb" + DEVICETYPEREQUESTWEIGHTUNIT_OZ DeviceTypeRequestWeightUnit = "oz" + DEVICETYPEREQUESTWEIGHTUNIT_EMPTY DeviceTypeRequestWeightUnit = "" +) + +// All allowed values of DeviceTypeRequestWeightUnit enum +var AllowedDeviceTypeRequestWeightUnitEnumValues = []DeviceTypeRequestWeightUnit{ + "kg", + "g", + "lb", + "oz", + "", +} + +func (v *DeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeRequestWeightUnit(value) + for _, existing := range AllowedDeviceTypeRequestWeightUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeRequestWeightUnit", value) +} + +// NewDeviceTypeRequestWeightUnitFromValue returns a pointer to a valid DeviceTypeRequestWeightUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeRequestWeightUnitFromValue(v string) (*DeviceTypeRequestWeightUnit, error) { + ev := DeviceTypeRequestWeightUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeRequestWeightUnit: valid values are %v", v, AllowedDeviceTypeRequestWeightUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeRequestWeightUnit) IsValid() bool { + for _, existing := range AllowedDeviceTypeRequestWeightUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceTypeRequest_weight_unit value +func (v DeviceTypeRequestWeightUnit) Ptr() *DeviceTypeRequestWeightUnit { + return &v +} + +type NullableDeviceTypeRequestWeightUnit struct { + value *DeviceTypeRequestWeightUnit + isSet bool +} + +func (v NullableDeviceTypeRequestWeightUnit) Get() *DeviceTypeRequestWeightUnit { + return v.value +} + +func (v *NullableDeviceTypeRequestWeightUnit) Set(val *DeviceTypeRequestWeightUnit) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeRequestWeightUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeRequestWeightUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeRequestWeightUnit(val *DeviceTypeRequestWeightUnit) *NullableDeviceTypeRequestWeightUnit { + return &NullableDeviceTypeRequestWeightUnit{value: val, isSet: true} +} + +func (v NullableDeviceTypeRequestWeightUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_subdevice_role.go b/model_device_type_subdevice_role.go new file mode 100644 index 000000000..5b75b637d --- /dev/null +++ b/model_device_type_subdevice_role.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeSubdeviceRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeSubdeviceRole{} + +// DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole +type DeviceTypeSubdeviceRole struct { + Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"` + Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeSubdeviceRole DeviceTypeSubdeviceRole + +// NewDeviceTypeSubdeviceRole instantiates a new DeviceTypeSubdeviceRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceTypeSubdeviceRole() *DeviceTypeSubdeviceRole { + this := DeviceTypeSubdeviceRole{} + return &this +} + +// NewDeviceTypeSubdeviceRoleWithDefaults instantiates a new DeviceTypeSubdeviceRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceTypeSubdeviceRoleWithDefaults() *DeviceTypeSubdeviceRole { + this := DeviceTypeSubdeviceRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeSubdeviceRole) GetValue() DeviceTypeSubdeviceRoleValue { + if o == nil || IsNil(o.Value) { + var ret DeviceTypeSubdeviceRoleValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeSubdeviceRole) GetValueOk() (*DeviceTypeSubdeviceRoleValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeviceTypeSubdeviceRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceTypeSubdeviceRoleValue and assigns it to the Value field. +func (o *DeviceTypeSubdeviceRole) SetValue(v DeviceTypeSubdeviceRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeSubdeviceRole) GetLabel() DeviceTypeSubdeviceRoleLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceTypeSubdeviceRoleLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeSubdeviceRole) GetLabelOk() (*DeviceTypeSubdeviceRoleLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DeviceTypeSubdeviceRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceTypeSubdeviceRoleLabel and assigns it to the Label field. +func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel) { + o.Label = &v +} + +func (o DeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeSubdeviceRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceTypeSubdeviceRole) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeSubdeviceRole := _DeviceTypeSubdeviceRole{} + + err = json.Unmarshal(data, &varDeviceTypeSubdeviceRole) + + if err != nil { + return err + } + + *o = DeviceTypeSubdeviceRole(varDeviceTypeSubdeviceRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeSubdeviceRole struct { + value *DeviceTypeSubdeviceRole + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRole) Get() *DeviceTypeSubdeviceRole { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRole) Set(val *DeviceTypeSubdeviceRole) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRole) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRole(val *DeviceTypeSubdeviceRole) *NullableDeviceTypeSubdeviceRole { + return &NullableDeviceTypeSubdeviceRole{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go new file mode 100644 index 000000000..93ca1992a --- /dev/null +++ b/model_device_type_subdevice_role_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeSubdeviceRoleLabel the model 'DeviceTypeSubdeviceRoleLabel' +type DeviceTypeSubdeviceRoleLabel string + +// List of DeviceType_subdevice_role_label +const ( + DEVICETYPESUBDEVICEROLELABEL_PARENT DeviceTypeSubdeviceRoleLabel = "Parent" + DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child" +) + +// All allowed values of DeviceTypeSubdeviceRoleLabel enum +var AllowedDeviceTypeSubdeviceRoleLabelEnumValues = []DeviceTypeSubdeviceRoleLabel{ + "Parent", + "Child", +} + +func (v *DeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeSubdeviceRoleLabel(value) + for _, existing := range AllowedDeviceTypeSubdeviceRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeSubdeviceRoleLabel", value) +} + +// NewDeviceTypeSubdeviceRoleLabelFromValue returns a pointer to a valid DeviceTypeSubdeviceRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeSubdeviceRoleLabelFromValue(v string) (*DeviceTypeSubdeviceRoleLabel, error) { + ev := DeviceTypeSubdeviceRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeSubdeviceRoleLabel: valid values are %v", v, AllowedDeviceTypeSubdeviceRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeSubdeviceRoleLabel) IsValid() bool { + for _, existing := range AllowedDeviceTypeSubdeviceRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_subdevice_role_label value +func (v DeviceTypeSubdeviceRoleLabel) Ptr() *DeviceTypeSubdeviceRoleLabel { + return &v +} + +type NullableDeviceTypeSubdeviceRoleLabel struct { + value *DeviceTypeSubdeviceRoleLabel + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) Get() *DeviceTypeSubdeviceRoleLabel { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) Set(val *DeviceTypeSubdeviceRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRoleLabel(val *DeviceTypeSubdeviceRoleLabel) *NullableDeviceTypeSubdeviceRoleLabel { + return &NullableDeviceTypeSubdeviceRoleLabel{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_subdevice_role_value.go b/model_device_type_subdevice_role_value.go new file mode 100644 index 000000000..72f6d0fab --- /dev/null +++ b/model_device_type_subdevice_role_value.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeSubdeviceRoleValue * `parent` - Parent * `child` - Child +type DeviceTypeSubdeviceRoleValue string + +// List of DeviceType_subdevice_role_value +const ( + DEVICETYPESUBDEVICEROLEVALUE_PARENT DeviceTypeSubdeviceRoleValue = "parent" + DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child" + DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = "" +) + +// All allowed values of DeviceTypeSubdeviceRoleValue enum +var AllowedDeviceTypeSubdeviceRoleValueEnumValues = []DeviceTypeSubdeviceRoleValue{ + "parent", + "child", + "", +} + +func (v *DeviceTypeSubdeviceRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeSubdeviceRoleValue(value) + for _, existing := range AllowedDeviceTypeSubdeviceRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeSubdeviceRoleValue", value) +} + +// NewDeviceTypeSubdeviceRoleValueFromValue returns a pointer to a valid DeviceTypeSubdeviceRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeSubdeviceRoleValueFromValue(v string) (*DeviceTypeSubdeviceRoleValue, error) { + ev := DeviceTypeSubdeviceRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeSubdeviceRoleValue: valid values are %v", v, AllowedDeviceTypeSubdeviceRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeSubdeviceRoleValue) IsValid() bool { + for _, existing := range AllowedDeviceTypeSubdeviceRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_subdevice_role_value value +func (v DeviceTypeSubdeviceRoleValue) Ptr() *DeviceTypeSubdeviceRoleValue { + return &v +} + +type NullableDeviceTypeSubdeviceRoleValue struct { + value *DeviceTypeSubdeviceRoleValue + isSet bool +} + +func (v NullableDeviceTypeSubdeviceRoleValue) Get() *DeviceTypeSubdeviceRoleValue { + return v.value +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) Set(val *DeviceTypeSubdeviceRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeSubdeviceRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeSubdeviceRoleValue(val *DeviceTypeSubdeviceRoleValue) *NullableDeviceTypeSubdeviceRoleValue { + return &NullableDeviceTypeSubdeviceRoleValue{value: val, isSet: true} +} + +func (v NullableDeviceTypeSubdeviceRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeSubdeviceRoleValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_weight_unit.go b/model_device_type_weight_unit.go new file mode 100644 index 000000000..91dbf9510 --- /dev/null +++ b/model_device_type_weight_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the DeviceTypeWeightUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &DeviceTypeWeightUnit{} + +// DeviceTypeWeightUnit struct for DeviceTypeWeightUnit +type DeviceTypeWeightUnit struct { + Value *DeviceTypeWeightUnitValue `json:"value,omitempty"` + Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _DeviceTypeWeightUnit DeviceTypeWeightUnit + +// NewDeviceTypeWeightUnit instantiates a new DeviceTypeWeightUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewDeviceTypeWeightUnit() *DeviceTypeWeightUnit { + this := DeviceTypeWeightUnit{} + return &this +} + +// NewDeviceTypeWeightUnitWithDefaults instantiates a new DeviceTypeWeightUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewDeviceTypeWeightUnitWithDefaults() *DeviceTypeWeightUnit { + this := DeviceTypeWeightUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *DeviceTypeWeightUnit) GetValue() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.Value) { + var ret DeviceTypeWeightUnitValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeWeightUnit) GetValueOk() (*DeviceTypeWeightUnitValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *DeviceTypeWeightUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the Value field. +func (o *DeviceTypeWeightUnit) SetValue(v DeviceTypeWeightUnitValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *DeviceTypeWeightUnit) GetLabel() DeviceTypeWeightUnitLabel { + if o == nil || IsNil(o.Label) { + var ret DeviceTypeWeightUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeWeightUnit) GetLabelOk() (*DeviceTypeWeightUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *DeviceTypeWeightUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given DeviceTypeWeightUnitLabel and assigns it to the Label field. +func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel) { + o.Label = &v +} + +func (o DeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o DeviceTypeWeightUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *DeviceTypeWeightUnit) UnmarshalJSON(data []byte) (err error) { + varDeviceTypeWeightUnit := _DeviceTypeWeightUnit{} + + err = json.Unmarshal(data, &varDeviceTypeWeightUnit) + + if err != nil { + return err + } + + *o = DeviceTypeWeightUnit(varDeviceTypeWeightUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableDeviceTypeWeightUnit struct { + value *DeviceTypeWeightUnit + isSet bool +} + +func (v NullableDeviceTypeWeightUnit) Get() *DeviceTypeWeightUnit { + return v.value +} + +func (v *NullableDeviceTypeWeightUnit) Set(val *DeviceTypeWeightUnit) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnit(val *DeviceTypeWeightUnit) *NullableDeviceTypeWeightUnit { + return &NullableDeviceTypeWeightUnit{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go new file mode 100644 index 000000000..54a687c4a --- /dev/null +++ b/model_device_type_weight_unit_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeWeightUnitLabel the model 'DeviceTypeWeightUnitLabel' +type DeviceTypeWeightUnitLabel string + +// List of DeviceType_weight_unit_label +const ( + DEVICETYPEWEIGHTUNITLABEL_KILOGRAMS DeviceTypeWeightUnitLabel = "Kilograms" + DEVICETYPEWEIGHTUNITLABEL_GRAMS DeviceTypeWeightUnitLabel = "Grams" + DEVICETYPEWEIGHTUNITLABEL_POUNDS DeviceTypeWeightUnitLabel = "Pounds" + DEVICETYPEWEIGHTUNITLABEL_OUNCES DeviceTypeWeightUnitLabel = "Ounces" +) + +// All allowed values of DeviceTypeWeightUnitLabel enum +var AllowedDeviceTypeWeightUnitLabelEnumValues = []DeviceTypeWeightUnitLabel{ + "Kilograms", + "Grams", + "Pounds", + "Ounces", +} + +func (v *DeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeWeightUnitLabel(value) + for _, existing := range AllowedDeviceTypeWeightUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeWeightUnitLabel", value) +} + +// NewDeviceTypeWeightUnitLabelFromValue returns a pointer to a valid DeviceTypeWeightUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeWeightUnitLabelFromValue(v string) (*DeviceTypeWeightUnitLabel, error) { + ev := DeviceTypeWeightUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeWeightUnitLabel: valid values are %v", v, AllowedDeviceTypeWeightUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeWeightUnitLabel) IsValid() bool { + for _, existing := range AllowedDeviceTypeWeightUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_weight_unit_label value +func (v DeviceTypeWeightUnitLabel) Ptr() *DeviceTypeWeightUnitLabel { + return &v +} + +type NullableDeviceTypeWeightUnitLabel struct { + value *DeviceTypeWeightUnitLabel + isSet bool +} + +func (v NullableDeviceTypeWeightUnitLabel) Get() *DeviceTypeWeightUnitLabel { + return v.value +} + +func (v *NullableDeviceTypeWeightUnitLabel) Set(val *DeviceTypeWeightUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnitLabel(val *DeviceTypeWeightUnitLabel) *NullableDeviceTypeWeightUnitLabel { + return &NullableDeviceTypeWeightUnitLabel{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_type_weight_unit_value.go b/model_device_type_weight_unit_value.go new file mode 100644 index 000000000..7a188d0f2 --- /dev/null +++ b/model_device_type_weight_unit_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DeviceTypeWeightUnitValue * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +type DeviceTypeWeightUnitValue string + +// List of DeviceType_weight_unit_value +const ( + DEVICETYPEWEIGHTUNITVALUE_KG DeviceTypeWeightUnitValue = "kg" + DEVICETYPEWEIGHTUNITVALUE_G DeviceTypeWeightUnitValue = "g" + DEVICETYPEWEIGHTUNITVALUE_LB DeviceTypeWeightUnitValue = "lb" + DEVICETYPEWEIGHTUNITVALUE_OZ DeviceTypeWeightUnitValue = "oz" + DEVICETYPEWEIGHTUNITVALUE_EMPTY DeviceTypeWeightUnitValue = "" +) + +// All allowed values of DeviceTypeWeightUnitValue enum +var AllowedDeviceTypeWeightUnitValueEnumValues = []DeviceTypeWeightUnitValue{ + "kg", + "g", + "lb", + "oz", + "", +} + +func (v *DeviceTypeWeightUnitValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DeviceTypeWeightUnitValue(value) + for _, existing := range AllowedDeviceTypeWeightUnitValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DeviceTypeWeightUnitValue", value) +} + +// NewDeviceTypeWeightUnitValueFromValue returns a pointer to a valid DeviceTypeWeightUnitValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDeviceTypeWeightUnitValueFromValue(v string) (*DeviceTypeWeightUnitValue, error) { + ev := DeviceTypeWeightUnitValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DeviceTypeWeightUnitValue: valid values are %v", v, AllowedDeviceTypeWeightUnitValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DeviceTypeWeightUnitValue) IsValid() bool { + for _, existing := range AllowedDeviceTypeWeightUnitValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to DeviceType_weight_unit_value value +func (v DeviceTypeWeightUnitValue) Ptr() *DeviceTypeWeightUnitValue { + return &v +} + +type NullableDeviceTypeWeightUnitValue struct { + value *DeviceTypeWeightUnitValue + isSet bool +} + +func (v NullableDeviceTypeWeightUnitValue) Get() *DeviceTypeWeightUnitValue { + return v.value +} + +func (v *NullableDeviceTypeWeightUnitValue) Set(val *DeviceTypeWeightUnitValue) { + v.value = val + v.isSet = true +} + +func (v NullableDeviceTypeWeightUnitValue) IsSet() bool { + return v.isSet +} + +func (v *NullableDeviceTypeWeightUnitValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDeviceTypeWeightUnitValue(val *DeviceTypeWeightUnitValue) *NullableDeviceTypeWeightUnitValue { + return &NullableDeviceTypeWeightUnitValue{value: val, isSet: true} +} + +func (v NullableDeviceTypeWeightUnitValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDeviceTypeWeightUnitValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_device_with_config_context.go b/model_device_with_config_context.go index f4dfc538e..607416f4d 100644 --- a/model_device_with_config_context.go +++ b/model_device_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,43 +21,44 @@ var _ MappedNullable = &DeviceWithConfigContext{} // DeviceWithConfigContext Adds support for custom fields and tags. type DeviceWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceType `json:"device_type"` + Role BriefDeviceRole `json:"role"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site Site `json:"site"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` - ConfigContext interface{} `json:"config_context"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + ConfigContext interface{} `json:"config_context"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -83,10 +84,11 @@ type _DeviceWithConfigContext DeviceWithConfigContext // 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 NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { +func NewDeviceWithConfigContext(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { this := DeviceWithConfigContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.DeviceType = deviceType this.Role = role @@ -165,6 +167,30 @@ func (o *DeviceWithConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *DeviceWithConfigContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *DeviceWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *DeviceWithConfigContext) GetDisplay() string { if o == nil { @@ -233,9 +259,9 @@ func (o *DeviceWithConfigContext) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { +func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -244,7 +270,7 @@ func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -252,14 +278,14 @@ func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType) { +func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContext) GetRole() DeviceRole { +func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole { if o == nil { - var ret DeviceRole + var ret BriefDeviceRole return ret } @@ -268,7 +294,7 @@ func (o *DeviceWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -276,14 +302,14 @@ func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { } // SetRole sets field value -func (o *DeviceWithConfigContext) SetRole(v DeviceRole) { +func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetTenant() Tenant { +func (o *DeviceWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -292,7 +318,7 @@ func (o *DeviceWithConfigContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -308,8 +334,8 @@ func (o *DeviceWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *DeviceWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *DeviceWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -324,9 +350,9 @@ func (o *DeviceWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPlatform() Platform { +func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -335,7 +361,7 @@ func (o *DeviceWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -351,8 +377,8 @@ func (o *DeviceWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *DeviceWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -442,9 +468,9 @@ func (o *DeviceWithConfigContext) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContext) GetSite() Site { +func (o *DeviceWithConfigContext) GetSite() BriefSite { if o == nil { - var ret Site + var ret BriefSite return ret } @@ -453,7 +479,7 @@ func (o *DeviceWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -461,14 +487,14 @@ func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContext) SetSite(v Site) { +func (o *DeviceWithConfigContext) SetSite(v BriefSite) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetLocation() Location { +func (o *DeviceWithConfigContext) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -477,7 +503,7 @@ func (o *DeviceWithConfigContext) GetLocation() Location { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool) { +func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -493,8 +519,8 @@ func (o *DeviceWithConfigContext) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *DeviceWithConfigContext) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *DeviceWithConfigContext) SetLocation(v BriefLocation) { o.Location.Set(&v) } @@ -509,9 +535,9 @@ func (o *DeviceWithConfigContext) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetRack() Rack { +func (o *DeviceWithConfigContext) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -520,7 +546,7 @@ func (o *DeviceWithConfigContext) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool) { +func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -536,8 +562,8 @@ func (o *DeviceWithConfigContext) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *DeviceWithConfigContext) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *DeviceWithConfigContext) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -803,10 +829,10 @@ func (o *DeviceWithConfigContext) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -816,7 +842,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -824,14 +850,14 @@ func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress) { +func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -840,7 +866,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -856,8 +882,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -872,9 +898,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -883,7 +909,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -899,8 +925,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -915,9 +941,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetOobIp() IPAddress { +func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -926,7 +952,7 @@ func (o *DeviceWithConfigContext) GetOobIp() IPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -942,8 +968,8 @@ func (o *DeviceWithConfigContext) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *DeviceWithConfigContext) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } @@ -958,9 +984,9 @@ func (o *DeviceWithConfigContext) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetCluster() Cluster { +func (o *DeviceWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -969,7 +995,7 @@ func (o *DeviceWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -985,8 +1011,8 @@ func (o *DeviceWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *DeviceWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *DeviceWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -1001,9 +1027,9 @@ func (o *DeviceWithConfigContext) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { +func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1012,7 +1038,7 @@ func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1028,8 +1054,8 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1194,9 +1220,9 @@ func (o *DeviceWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1205,7 +1231,7 @@ func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1221,8 +1247,8 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1663,6 +1689,7 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -1777,6 +1804,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device_type", "role", @@ -1827,6 +1855,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go index b259fc842..75a1b8447 100644 --- a/model_device_with_config_context_request.go +++ b/model_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{} // DeviceWithConfigContextRequest Adds support for custom fields and tags. type DeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFaceValue `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFaceValue `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _DeviceWithConfigContextRequest DeviceWithConfigContextRequest // 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 NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest) *DeviceWithConfigContextRequest { +func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *DeviceWithConfigContextRequest { this := DeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -124,9 +124,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -135,7 +135,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -143,14 +143,14 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, } // SetDeviceType sets field value -func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -167,14 +167,14 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) } // SetRole sets field value -func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -183,7 +183,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -199,8 +199,8 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -215,9 +215,9 @@ func (o *DeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -242,8 +242,8 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -333,9 +333,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -344,7 +344,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -352,14 +352,14 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -368,7 +368,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -384,8 +384,8 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -400,9 +400,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -411,7 +411,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -427,8 +427,8 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -668,9 +668,9 @@ func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -679,7 +679,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -695,8 +695,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -711,9 +711,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -722,7 +722,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -738,8 +738,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -754,9 +754,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -765,7 +765,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -781,8 +781,8 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -797,9 +797,9 @@ func (o *DeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -808,7 +808,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -824,8 +824,8 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -840,9 +840,9 @@ func (o *DeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -851,7 +851,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisReque // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -867,8 +867,8 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1033,9 +1033,9 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1044,7 +1044,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateReque // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1060,8 +1060,8 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_encryption.go b/model_encryption.go index 718a00acd..0a51f381f 100644 --- a/model_encryption.go +++ b/model_encryption.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end.go b/model_end.go index e5ba360cb..eececa162 100644 --- a/model_end.go +++ b/model_end.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end_1.go b/model_end_1.go index b71fc25b1..05bfc2b0c 100644 --- a/model_end_1.go +++ b/model_end_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event.go b/model_event.go new file mode 100644 index 000000000..a726272d7 --- /dev/null +++ b/model_event.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// Event * `object_created` - Object created * `object_updated` - Object updated * `object_deleted` - Object deleted * `job_started` - Job started * `job_completed` - Job completed * `job_failed` - Job failed * `job_errored` - Job errored +type Event string + +// List of Event +const ( + EVENT_OBJECT_CREATED Event = "object_created" + EVENT_OBJECT_UPDATED Event = "object_updated" + EVENT_OBJECT_DELETED Event = "object_deleted" + EVENT_JOB_STARTED Event = "job_started" + EVENT_JOB_COMPLETED Event = "job_completed" + EVENT_JOB_FAILED Event = "job_failed" + EVENT_JOB_ERRORED Event = "job_errored" +) + +// All allowed values of Event enum +var AllowedEventEnumValues = []Event{ + "object_created", + "object_updated", + "object_deleted", + "job_started", + "job_completed", + "job_failed", + "job_errored", +} + +func (v *Event) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Event(value) + for _, existing := range AllowedEventEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Event", value) +} + +// NewEventFromValue returns a pointer to a valid Event +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventFromValue(v string) (*Event, error) { + ev := Event(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Event: valid values are %v", v, AllowedEventEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Event) IsValid() bool { + for _, existing := range AllowedEventEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Event value +func (v Event) Ptr() *Event { + return &v +} + +type NullableEvent struct { + value *Event + isSet bool +} + +func (v NullableEvent) Get() *Event { + return v.value +} + +func (v *NullableEvent) Set(val *Event) { + v.value = val + v.isSet = true +} + +func (v NullableEvent) IsSet() bool { + return v.isSet +} + +func (v *NullableEvent) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEvent(val *Event) *NullableEvent { + return &NullableEvent{value: val, isSet: true} +} + +func (v NullableEvent) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEvent) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_event_rule.go b/model_event_rule.go index b3f5d4e41..9e472b28d 100644 --- a/model_event_rule.go +++ b/model_event_rule.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,20 +23,13 @@ var _ MappedNullable = &EventRule{} type EventRule struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType EventRuleActionType `json:"action_type"` @@ -57,13 +50,15 @@ type _EventRule EventRule // 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 NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { +func NewEventRule(id int32, url string, displayUrl string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { this := EventRule{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType this.ActionObject = actionObject @@ -128,6 +123,30 @@ func (o *EventRule) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *EventRule) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *EventRule) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *EventRule) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *EventRule) GetDisplay() string { if o == nil { @@ -200,166 +219,6 @@ func (o *EventRule) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRule) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRule) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRule) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRule) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRule) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRule) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRule) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRule) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRule) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRule) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRule) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRule) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -392,6 +251,30 @@ func (o *EventRule) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRule) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetConditions() interface{} { if o == nil { @@ -700,27 +583,14 @@ func (o EventRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -756,9 +626,11 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", + "event_types", "action_type", "action_object_type", "action_object", @@ -795,15 +667,12 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go index 1c8cb0534..db537a54c 100644 --- a/model_event_rule_action_type.go +++ b/model_event_rule_action_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go index d58423d47..6084a7451 100644 --- a/model_event_rule_action_type_label.go +++ b/model_event_rule_action_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,16 @@ type EventRuleActionTypeLabel string // List of EventRule_action_type_label const ( - EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" - EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" + EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" + EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" + EVENTRULEACTIONTYPELABEL_NOTIFICATION EventRuleActionTypeLabel = "Notification" ) // All allowed values of EventRuleActionTypeLabel enum var AllowedEventRuleActionTypeLabelEnumValues = []EventRuleActionTypeLabel{ "Webhook", "Script", + "Notification", } func (v *EventRuleActionTypeLabel) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go index 9c309b8d2..33fca2a74 100644 --- a/model_event_rule_action_type_value.go +++ b/model_event_rule_action_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,19 +15,21 @@ import ( "fmt" ) -// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script +// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script * `notification` - Notification type EventRuleActionTypeValue string // List of EventRule_action_type_value const ( - EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" - EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" + EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_NOTIFICATION EventRuleActionTypeValue = "notification" ) // All allowed values of EventRuleActionTypeValue enum var AllowedEventRuleActionTypeValueEnumValues = []EventRuleActionTypeValue{ "webhook", "script", + "notification", } func (v *EventRuleActionTypeValue) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_event_types_inner.go b/model_event_rule_event_types_inner.go new file mode 100644 index 000000000..60e1344bc --- /dev/null +++ b/model_event_rule_event_types_inner.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// EventRuleEventTypesInner * `object_created` - Object created * `object_updated` - Object updated * `object_deleted` - Object deleted * `job_started` - Job started * `job_completed` - Job completed * `job_failed` - Job failed * `job_errored` - Job errored +type EventRuleEventTypesInner string + +// List of EventRule_event_types_inner +const ( + EVENTRULEEVENTTYPESINNER_OBJECT_CREATED EventRuleEventTypesInner = "object_created" + EVENTRULEEVENTTYPESINNER_OBJECT_UPDATED EventRuleEventTypesInner = "object_updated" + EVENTRULEEVENTTYPESINNER_OBJECT_DELETED EventRuleEventTypesInner = "object_deleted" + EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started" + EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed" + EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed" + EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored" +) + +// All allowed values of EventRuleEventTypesInner enum +var AllowedEventRuleEventTypesInnerEnumValues = []EventRuleEventTypesInner{ + "object_created", + "object_updated", + "object_deleted", + "job_started", + "job_completed", + "job_failed", + "job_errored", +} + +func (v *EventRuleEventTypesInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := EventRuleEventTypesInner(value) + for _, existing := range AllowedEventRuleEventTypesInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid EventRuleEventTypesInner", value) +} + +// NewEventRuleEventTypesInnerFromValue returns a pointer to a valid EventRuleEventTypesInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEventRuleEventTypesInnerFromValue(v string) (*EventRuleEventTypesInner, error) { + ev := EventRuleEventTypesInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for EventRuleEventTypesInner: valid values are %v", v, AllowedEventRuleEventTypesInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v EventRuleEventTypesInner) IsValid() bool { + for _, existing := range AllowedEventRuleEventTypesInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to EventRule_event_types_inner value +func (v EventRuleEventTypesInner) Ptr() *EventRuleEventTypesInner { + return &v +} + +type NullableEventRuleEventTypesInner struct { + value *EventRuleEventTypesInner + isSet bool +} + +func (v NullableEventRuleEventTypesInner) Get() *EventRuleEventTypesInner { + return v.value +} + +func (v *NullableEventRuleEventTypesInner) Set(val *EventRuleEventTypesInner) { + v.value = val + v.isSet = true +} + +func (v NullableEventRuleEventTypesInner) IsSet() bool { + return v.isSet +} + +func (v *NullableEventRuleEventTypesInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEventRuleEventTypesInner(val *EventRuleEventTypesInner) *NullableEventRuleEventTypesInner { + return &NullableEventRuleEventTypesInner{value: val, isSet: true} +} + +func (v NullableEventRuleEventTypesInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEventRuleEventTypesInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_event_rule_request.go b/model_event_rule_request.go index e9a76def0..4efdd2165 100644 --- a/model_event_rule_request.go +++ b/model_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,17 +22,9 @@ var _ MappedNullable = &EventRuleRequest{} type EventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType EventRuleActionTypeValue `json:"action_type"` @@ -50,10 +42,11 @@ type _EventRuleRequest EventRuleRequest // 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 NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { +func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { this := EventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType return &this @@ -115,166 +108,6 @@ func (o *EventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -307,6 +140,30 @@ func (o *EventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRuleRequest) GetConditions() interface{} { if o == nil { @@ -539,24 +396,10 @@ func (o EventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -589,6 +432,7 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_type", "action_object_type", } @@ -622,12 +466,8 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_export_template.go b/model_export_template.go index e034604cd..a4f5fc191 100644 --- a/model_export_template.go +++ b/model_export_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ExportTemplate{} type ExportTemplate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -34,14 +35,14 @@ type ExportTemplate struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -51,10 +52,11 @@ type _ExportTemplate ExportTemplate // 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 NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { +func NewExportTemplate(id int32, url string, displayUrl string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { this := ExportTemplate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -123,6 +125,30 @@ func (o *ExportTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ExportTemplate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ExportTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ExportTemplate) GetDisplay() string { if o == nil { @@ -348,9 +374,9 @@ func (o *ExportTemplate) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplate) GetDataSource() DataSource { +func (o *ExportTemplate) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -358,7 +384,7 @@ func (o *ExportTemplate) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool) { +func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -374,8 +400,8 @@ func (o *ExportTemplate) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ExportTemplate) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ExportTemplate) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -404,9 +430,9 @@ func (o *ExportTemplate) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ExportTemplate) GetDataFile() DataFile { +func (o *ExportTemplate) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -415,7 +441,7 @@ func (o *ExportTemplate) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { +func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -423,7 +449,7 @@ func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ExportTemplate) SetDataFile(v DataFile) { +func (o *ExportTemplate) SetDataFile(v BriefDataFile) { o.DataFile = v } @@ -517,6 +543,7 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -556,6 +583,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", @@ -596,6 +624,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_export_template_request.go b/model_export_template_request.go index 16e3ea6a5..2daa4d33c 100644 --- a/model_export_template_request.go +++ b/model_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,8 @@ type ExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -258,9 +258,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -268,7 +268,7 @@ func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -284,8 +284,8 @@ func (o *ExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go index 549d77f70..e7a6ca182 100644 --- a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go +++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_filter_logic_parameter.go b/model_extras_custom_fields_list_filter_logic_parameter.go index e06b57950..a215904e7 100644 --- a/model_extras_custom_fields_list_filter_logic_parameter.go +++ b/model_extras_custom_fields_list_filter_logic_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_editable_parameter.go b/model_extras_custom_fields_list_ui_editable_parameter.go index 507235fe9..12a81600e 100644 --- a/model_extras_custom_fields_list_ui_editable_parameter.go +++ b/model_extras_custom_fields_list_ui_editable_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_visible_parameter.go b/model_extras_custom_fields_list_ui_visible_parameter.go index 47e4aaa2b..090c7b314 100644 --- a/model_extras_custom_fields_list_ui_visible_parameter.go +++ b/model_extras_custom_fields_list_ui_visible_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_links_list_button_class_parameter.go b/model_extras_custom_links_list_button_class_parameter.go index db3b288e9..618602acf 100644 --- a/model_extras_custom_links_list_button_class_parameter.go +++ b/model_extras_custom_links_list_button_class_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ type ExtrasCustomLinksListButtonClassParameter string // List of extras_custom_links_list_button_class_parameter const ( - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_OUTLINE_DARK ExtrasCustomLinksListButtonClassParameter = "outline-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" ) // All allowed values of ExtrasCustomLinksListButtonClassParameter enum @@ -42,12 +42,12 @@ var AllowedExtrasCustomLinksListButtonClassParameterEnumValues = []ExtrasCustomL "black", "blue", "cyan", + "default", "ghost-dark", "gray", "green", "indigo", "orange", - "outline-dark", "pink", "purple", "red", diff --git a/model_fhrp_group.go b/model_fhrp_group.go index edddea0c1..da049c284 100644 --- a/model_fhrp_group.go +++ b/model_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the FHRPGroup type satisfies the MappedNullable interface at compile time @@ -20,12 +21,22 @@ var _ MappedNullable = &FHRPGroup{} // FHRPGroup Adds support for custom fields and tags. type FHRPGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Name *string `json:"name,omitempty"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpAddresses []BriefIPAddress `json:"ip_addresses"` AdditionalProperties map[string]interface{} } @@ -35,13 +46,17 @@ type _FHRPGroup FHRPGroup // 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 NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *FHRPGroup { +func NewFHRPGroup(id int32, url string, displayUrl string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress) *FHRPGroup { this := FHRPGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Protocol = protocol this.GroupId = groupId + this.Created = created + this.LastUpdated = lastUpdated + this.IpAddresses = ipAddresses return &this } @@ -77,6 +92,38 @@ func (o *FHRPGroup) SetId(v int32) { o.Id = v } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroup) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FHRPGroup) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FHRPGroup) SetName(v string) { + o.Name = &v +} + // GetUrl returns the Url field value func (o *FHRPGroup) GetUrl() string { if o == nil { @@ -101,6 +148,30 @@ func (o *FHRPGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *FHRPGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *FHRPGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *FHRPGroup) GetDisplay() string { if o == nil { @@ -126,9 +197,9 @@ func (o *FHRPGroup) SetDisplay(v string) { } // GetProtocol returns the Protocol field value -func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -137,7 +208,7 @@ func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -145,7 +216,7 @@ func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } @@ -173,6 +244,70 @@ func (o *FHRPGroup) SetGroupId(v int32) { o.GroupId = v } +// GetAuthType returns the AuthType field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthType() AuthenticationType { + if o == nil || IsNil(o.AuthType) { + var ret AuthenticationType + return ret + } + return *o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool) { + if o == nil || IsNil(o.AuthType) { + return nil, false + } + return o.AuthType, true +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthType() bool { + if o != nil && !IsNil(o.AuthType) { + return true + } + + return false +} + +// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. +func (o *FHRPGroup) SetAuthType(v AuthenticationType) { + o.AuthType = &v +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroup) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +340,178 @@ func (o *FHRPGroup) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroup) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroup) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroup) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FHRPGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *FHRPGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *FHRPGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *FHRPGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *FHRPGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *FHRPGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *FHRPGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *FHRPGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetIpAddresses returns the IpAddresses field value +func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress { + if o == nil { + var ret []BriefIPAddress + return ret + } + + return o.IpAddresses +} + +// GetIpAddressesOk returns a tuple with the IpAddresses field value +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetIpAddressesOk() ([]BriefIPAddress, bool) { + if o == nil { + return nil, false + } + return o.IpAddresses, true +} + +// SetIpAddresses sets field value +func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress) { + o.IpAddresses = v +} + func (o FHRPGroup) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -216,13 +523,35 @@ func (o FHRPGroup) MarshalJSON() ([]byte, error) { func (o FHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if !IsNil(o.AuthType) { + toSerialize["auth_type"] = o.AuthType + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["ip_addresses"] = o.IpAddresses for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +567,13 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "protocol", "group_id", + "created", + "last_updated", + "ip_addresses", } allProperties := make(map[string]interface{}) @@ -271,11 +604,21 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") + delete(additionalProperties, "name") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ip_addresses") o.AdditionalProperties = additionalProperties } diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go index d81aefa15..8f9ae4bf1 100644 --- a/model_fhrp_group_assignment.go +++ b/model_fhrp_group_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &FHRPGroupAssignment{} // FHRPGroupAssignment Adds support for custom fields and tags. type FHRPGroupAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group FHRPGroup `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Interface interface{} `json:"interface"` - Priority int32 `json:"priority"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefFHRPGroup `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Interface interface{} `json:"interface"` + Priority int32 `json:"priority"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FHRPGroupAssignment FHRPGroupAssignment // 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 NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { +func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { this := FHRPGroupAssignment{} this.Id = id this.Url = url @@ -136,9 +136,9 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { +func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup { if o == nil { - var ret FHRPGroup + var ret BriefFHRPGroup return ret } @@ -147,7 +147,7 @@ func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { +func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool) { if o == nil { return nil, false } @@ -155,7 +155,7 @@ func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup) { +func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup) { o.Group = v } diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go index fda4826a1..a9ba01d6a 100644 --- a/model_fhrp_group_assignment_request.go +++ b/model_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{} // FHRPGroupAssignmentRequest Adds support for custom fields and tags. type FHRPGroupAssignmentRequest struct { - Group FHRPGroupRequest `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group BriefFHRPGroupRequest `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _FHRPGroupAssignmentRequest FHRPGroupAssignmentRequest // 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 NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { +func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { this := FHRPGroupAssignmentRequest{} this.Group = group this.InterfaceType = interfaceType @@ -51,9 +51,9 @@ func NewFHRPGroupAssignmentRequestWithDefaults() *FHRPGroupAssignmentRequest { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } @@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = v } diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go index a3fbe2568..0990f1939 100644 --- a/model_fhrp_group_request.go +++ b/model_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,15 @@ var _ MappedNullable = &FHRPGroupRequest{} // FHRPGroupRequest Adds support for custom fields and tags. type FHRPGroupRequest struct { - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +38,7 @@ type _FHRPGroupRequest FHRPGroupRequest // 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 NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *FHRPGroupRequest { +func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *FHRPGroupRequest { this := FHRPGroupRequest{} this.Protocol = protocol this.GroupId = groupId @@ -47,10 +53,42 @@ func NewFHRPGroupRequestWithDefaults() *FHRPGroupRequest { return &this } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FHRPGroupRequest) SetName(v string) { + o.Name = &v +} + // GetProtocol returns the Protocol field value -func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -59,7 +97,7 @@ func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -67,7 +105,7 @@ func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } @@ -95,6 +133,70 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) { o.GroupId = v } +// GetAuthType returns the AuthType field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthType() AuthenticationType { + if o == nil || IsNil(o.AuthType) { + var ret AuthenticationType + return ret + } + return *o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) { + if o == nil || IsNil(o.AuthType) { + return nil, false + } + return o.AuthType, true +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthType() bool { + if o != nil && !IsNil(o.AuthType) { + return true + } + + return false +} + +// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. +func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) { + o.AuthType = &v +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroupRequest) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +229,102 @@ func (o *FHRPGroupRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroupRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -137,11 +335,29 @@ func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if !IsNil(o.AuthType) { + toSerialize["auth_type"] = o.AuthType + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -186,9 +402,15 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_front_port.go b/model_front_port.go index 14255269d..a4ff37bf0 100644 --- a/model_front_port.go +++ b/model_front_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &FrontPort{} // FrontPort Adds support for custom fields and tags. type FrontPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortType `json:"type"` @@ -36,12 +37,12 @@ type FrontPort struct { RearPortPosition *int32 `json:"rear_port_position,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -56,10 +57,11 @@ type _FrontPort FrontPort // 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 NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { +func NewFrontPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { this := FrontPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -135,6 +137,30 @@ func (o *FrontPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *FrontPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *FrontPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *FrontPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *FrontPort) GetDisplay() string { if o == nil { @@ -160,9 +186,9 @@ func (o *FrontPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *FrontPort) GetDevice() Device { +func (o *FrontPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -171,7 +197,7 @@ func (o *FrontPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPort) GetDeviceOk() (*Device, bool) { +func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -179,14 +205,14 @@ func (o *FrontPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *FrontPort) SetDevice(v Device) { +func (o *FrontPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPort) GetModule() Module { +func (o *FrontPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -195,7 +221,7 @@ func (o *FrontPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetModuleOk() (*Module, bool) { +func (o *FrontPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -211,8 +237,8 @@ func (o *FrontPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *FrontPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *FrontPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -459,10 +485,10 @@ func (o *FrontPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *FrontPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *FrontPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -472,7 +498,7 @@ func (o *FrontPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetCableOk() (*Cable, bool) { +func (o *FrontPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -480,7 +506,7 @@ func (o *FrontPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *FrontPort) SetCable(v Cable) { +func (o *FrontPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -533,27 +559,29 @@ func (o *FrontPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *FrontPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *FrontPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *FrontPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -708,6 +736,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -734,7 +763,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -759,6 +788,7 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -802,6 +832,7 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go index bfddbbc62..f2a25fa25 100644 --- a/model_front_port_rear_port.go +++ b/model_front_port_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ var _ MappedNullable = &FrontPortRearPort{} // FrontPortRearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) type FrontPortRearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` @@ -36,10 +37,11 @@ type _FrontPortRearPort FrontPortRearPort // 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 NewFrontPortRearPort(id int32, url string, display string, name string) *FrontPortRearPort { +func NewFrontPortRearPort(id int32, url string, displayUrl string, display string, name string) *FrontPortRearPort { this := FrontPortRearPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -101,6 +103,30 @@ func (o *FrontPortRearPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *FrontPortRearPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *FrontPortRearPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *FrontPortRearPort) GetDisplay() string { if o == nil { @@ -225,6 +251,7 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -248,6 +275,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -281,6 +309,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "label") diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go index efa9119db..fecb1f8f5 100644 --- a/model_front_port_rear_port_request.go +++ b/model_front_port_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_request.go b/model_front_port_request.go index b3cc287bb..b60b44893 100644 --- a/model_front_port_request.go +++ b/model_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &FrontPortRequest{} // FrontPortRequest Adds support for custom fields and tags. type FrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -44,7 +44,7 @@ type _FrontPortRequest FrontPortRequest // 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 NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { +func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { this := FrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewFrontPortRequestWithDefaults() *FrontPortRequest { } // GetDevice returns the Device field value -func (o *FrontPortRequest) GetDevice() DeviceRequest { +func (o *FrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *FrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *FrontPortRequest) SetDevice(v DeviceRequest) { +func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortRequest) GetModule() ModuleRequest { +func (o *FrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *FrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *FrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *FrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *FrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_front_port_template.go b/model_front_port_template.go index 66ed54500..8866bd4ec 100644 --- a/model_front_port_template.go +++ b/model_front_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,22 +21,22 @@ var _ MappedNullable = &FrontPortTemplate{} // FrontPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplate `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplate `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -46,7 +46,7 @@ type _FrontPortTemplate FrontPortTemplate // 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 NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { +func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { this := FrontPortTemplate{} this.Id = id this.Url = url @@ -144,9 +144,9 @@ func (o *FrontPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetDeviceType() DeviceType { +func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -155,7 +155,7 @@ func (o *FrontPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -171,8 +171,8 @@ func (o *FrontPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *FrontPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -187,9 +187,9 @@ func (o *FrontPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetModuleType() ModuleType { +func (o *FrontPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -198,7 +198,7 @@ func (o *FrontPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *FrontPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *FrontPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *FrontPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } @@ -342,9 +342,9 @@ func (o *FrontPortTemplate) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { +func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate { if o == nil { - var ret RearPortTemplate + var ret BriefRearPortTemplate return ret } @@ -353,7 +353,7 @@ func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { +func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool) { if o == nil { return nil, false } @@ -361,7 +361,7 @@ func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { } // SetRearPort sets field value -func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate) { +func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate) { o.RearPort = v } diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go index 995c21f99..0d79753a1 100644 --- a/model_front_port_template_request.go +++ b/model_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &FrontPortTemplateRequest{} // FrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FrontPortTemplateRequest FrontPortTemplateRequest // 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 NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *FrontPortTemplateRequest { +func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *FrontPortTemplateRequest { this := FrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,9 @@ func NewFrontPortTemplateRequestWithDefaults() *FrontPortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *FrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bo } // SetRearPort sets field value -func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } diff --git a/model_front_port_type.go b/model_front_port_type.go index 17d119046..8b92247a1 100644 --- a/model_front_port_type.go +++ b/model_front_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go index 88117ae3a..ab707ca62 100644 --- a/model_front_port_type_label.go +++ b/model_front_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,53 +20,61 @@ type FrontPortTypeLabel string // List of FrontPort_type_label const ( - FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" - FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" - FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" - FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" - FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" - FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" - FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" - FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" - FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" - FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" - FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" - FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" - FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" - FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" - FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" - FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" - FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" - FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" - FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" - FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" - FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" - FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" - FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" - FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" - FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" - FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" - FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" - FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" - FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" - FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" - FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" - FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" - FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" - FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" - FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" - FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" - FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" - FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" - FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" - FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" - FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" - FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" - FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" - FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" - FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" - FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" - FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" + FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" + FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" + FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" + FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" + FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" + FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" + FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" + FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" + FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" + FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" + FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" + FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" + FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" + FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" + FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" + FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" + FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" + FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" + FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" + FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" + FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" + FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" + FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" + FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" + FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" + FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" + FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" + FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" + FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" + FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" + FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" + FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" + FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" + FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" + FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" + FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" + FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" + FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" + FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" + FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" + FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" + FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" + FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" + FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" + FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" + FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" + FRONTPORTTYPELABEL_USB_TYPE_A FrontPortTypeLabel = "USB Type A" + FRONTPORTTYPELABEL_USB_TYPE_B FrontPortTypeLabel = "USB Type B" + FRONTPORTTYPELABEL_USB_TYPE_C FrontPortTypeLabel = "USB Type C" + FRONTPORTTYPELABEL_USB_MINI_A FrontPortTypeLabel = "USB Mini A" + FRONTPORTTYPELABEL_USB_MINI_B FrontPortTypeLabel = "USB Mini B" + FRONTPORTTYPELABEL_USB_MICRO_A FrontPortTypeLabel = "USB Micro A" + FRONTPORTTYPELABEL_USB_MICRO_B FrontPortTypeLabel = "USB Micro B" + FRONTPORTTYPELABEL_USB_MICRO_AB FrontPortTypeLabel = "USB Micro AB" + FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" ) // All allowed values of FrontPortTypeLabel enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{ "URM-P4", "URM-P8", "Splice", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", "Other", } diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go index 55f3bf9e5..0449b9e7d 100644 --- a/model_front_port_type_value.go +++ b/model_front_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,58 +15,66 @@ import ( "fmt" ) -// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other +// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other type FrontPortTypeValue string // List of FrontPort_type_value const ( - FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" - FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" - FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" - FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" - FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" - FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" - FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" - FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" - FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" - FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" - FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" - FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" - FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" - FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" - FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" - FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" - FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" - FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" - FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" - FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" - FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" - FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" - FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" - FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" - FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" - FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" - FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" - FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" - FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" - FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" - FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" - FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" - FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" - FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" - FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" - FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" - FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" - FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" - FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" - FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" - FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" - FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" - FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" - FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" - FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" - FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" - FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" + FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" + FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" + FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" + FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" + FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" + FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" + FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" + FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" + FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" + FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" + FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" + FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" + FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" + FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" + FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" + FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" + FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" + FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" + FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" + FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" + FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" + FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" + FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" + FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" + FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" + FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" + FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" + FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" + FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" + FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" + FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" + FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" + FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" + FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" + FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" + FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" + FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" + FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" + FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" + FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" + FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" + FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" + FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" + FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" + FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" + FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" + FRONTPORTTYPEVALUE_USB_A FrontPortTypeValue = "usb-a" + FRONTPORTTYPEVALUE_USB_B FrontPortTypeValue = "usb-b" + FRONTPORTTYPEVALUE_USB_C FrontPortTypeValue = "usb-c" + FRONTPORTTYPEVALUE_USB_MINI_A FrontPortTypeValue = "usb-mini-a" + FRONTPORTTYPEVALUE_USB_MINI_B FrontPortTypeValue = "usb-mini-b" + FRONTPORTTYPEVALUE_USB_MICRO_A FrontPortTypeValue = "usb-micro-a" + FRONTPORTTYPEVALUE_USB_MICRO_B FrontPortTypeValue = "usb-micro-b" + FRONTPORTTYPEVALUE_USB_MICRO_AB FrontPortTypeValue = "usb-micro-ab" + FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" ) // All allowed values of FrontPortTypeValue enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{ "urm-p4", "urm-p8", "splice", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", "other", } diff --git a/model_generic_object.go b/model_generic_object.go new file mode 100644 index 000000000..d49043125 --- /dev/null +++ b/model_generic_object.go @@ -0,0 +1,230 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the GenericObject type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &GenericObject{} + +// GenericObject Minimal representation of some generic object identified by ContentType and PK. +type GenericObject struct { + ObjectType string `json:"object_type"` + ObjectId int32 `json:"object_id"` + Object interface{} `json:"object"` + AdditionalProperties map[string]interface{} +} + +type _GenericObject GenericObject + +// NewGenericObject instantiates a new GenericObject object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewGenericObject(objectType string, objectId int32, object interface{}) *GenericObject { + this := GenericObject{} + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + return &this +} + +// NewGenericObjectWithDefaults instantiates a new GenericObject object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewGenericObjectWithDefaults() *GenericObject { + this := GenericObject{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *GenericObject) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *GenericObject) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *GenericObject) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *GenericObject) GetObjectId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *GenericObject) GetObjectIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *GenericObject) SetObjectId(v int32) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *GenericObject) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *GenericObject) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// SetObject sets field value +func (o *GenericObject) SetObject(v interface{}) { + o.Object = v +} + +func (o GenericObject) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o GenericObject) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *GenericObject) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "object", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varGenericObject := _GenericObject{} + + err = json.Unmarshal(data, &varGenericObject) + + if err != nil { + return err + } + + *o = GenericObject(varGenericObject) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableGenericObject struct { + value *GenericObject + isSet bool +} + +func (v NullableGenericObject) Get() *GenericObject { + return v.value +} + +func (v *NullableGenericObject) Set(val *GenericObject) { + v.value = val + v.isSet = true +} + +func (v NullableGenericObject) IsSet() bool { + return v.isSet +} + +func (v *NullableGenericObject) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableGenericObject(val *GenericObject) *NullableGenericObject { + return &NullableGenericObject{value: val, isSet: true} +} + +func (v NullableGenericObject) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableGenericObject) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_generic_object_request.go b/model_generic_object_request.go index af5fa0e13..52eaee1b8 100644 --- a/model_generic_object_request.go +++ b/model_generic_object_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_group.go b/model_group.go index cc0cb78e9..705396209 100644 --- a/model_group.go +++ b/model_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &Group{} type Group struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -36,10 +37,11 @@ type _Group Group // 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 NewGroup(id int32, url string, display string, name string, userCount int32) *Group { +func NewGroup(id int32, url string, displayUrl string, display string, name string, userCount int32) *Group { this := Group{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.UserCount = userCount @@ -102,6 +104,30 @@ func (o *Group) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Group) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Group) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Group) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Group) GetDisplay() string { if o == nil { @@ -250,6 +276,7 @@ func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -274,6 +301,7 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "user_count", @@ -308,6 +336,7 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_group_request.go b/model_group_request.go index a3b3fc4d9..5f8e5ef72 100644 --- a/model_group_request.go +++ b/model_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy.go b/model_ike_policy.go index 60a132594..99c503a99 100644 --- a/model_ike_policy.go +++ b/model_ike_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ var _ MappedNullable = &IKEPolicy{} type IKEPolicy struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersion `json:"version"` - Mode IKEPolicyMode `json:"mode"` + Mode *IKEPolicyMode `json:"mode,omitempty"` Proposals []IKEProposal `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -44,14 +45,14 @@ type _IKEPolicy IKEPolicy // 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 NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime) *IKEPolicy { +func NewIKEPolicy(id int32, url string, displayUrl string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime) *IKEPolicy { this := IKEPolicy{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Version = version - this.Mode = mode this.Created = created this.LastUpdated = lastUpdated return &this @@ -113,6 +114,30 @@ func (o *IKEPolicy) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IKEPolicy) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IKEPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IKEPolicy) GetDisplay() string { if o == nil { @@ -217,28 +242,36 @@ func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) { o.Version = v } -// GetMode returns the Mode field value +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicy) GetMode() IKEPolicyMode { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyMode return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicy) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false } -// SetMode sets field value +// SetMode gets a reference to the given IKEPolicyMode and assigns it to the Mode field. func (o *IKEPolicy) SetMode(v IKEPolicyMode) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -465,13 +498,16 @@ func (o IKEPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -504,10 +540,10 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "version", - "mode", "created", "last_updated", } @@ -541,6 +577,7 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go index 561cdd0ee..151201775 100644 --- a/model_ike_policy_mode.go +++ b/model_ike_policy_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go index 6f710f6ac..3d5338559 100644 --- a/model_ike_policy_mode_label.go +++ b/model_ike_policy_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go index f7209d932..c08f20fe1 100644 --- a/model_ike_policy_mode_value.go +++ b/model_ike_policy_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go index b10b248b6..68cd58f3e 100644 --- a/model_ike_policy_request.go +++ b/model_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type IKEPolicyRequest struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersionValue `json:"version"` - Mode IKEPolicyModeValue `json:"mode"` + Mode *IKEPolicyModeValue `json:"mode,omitempty"` Proposals []int32 `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -38,11 +38,10 @@ type _IKEPolicyRequest IKEPolicyRequest // 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 NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue) *IKEPolicyRequest { +func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue) *IKEPolicyRequest { this := IKEPolicyRequest{} this.Name = name this.Version = version - this.Mode = mode return &this } @@ -134,28 +133,36 @@ func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) { o.Version = v } -// GetMode returns the Mode field value +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyModeValue return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicyRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false } -// SetMode sets field value +// SetMode gets a reference to the given IKEPolicyModeValue and assigns it to the Mode field. func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -333,7 +340,9 @@ func (o IKEPolicyRequest) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -364,7 +373,6 @@ func (o *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "version", - "mode", } allProperties := make(map[string]interface{}) diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go index afa22c6de..6cf10e47b 100644 --- a/model_ike_policy_version.go +++ b/model_ike_policy_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go index 8b11ad9d6..5324f9381 100644 --- a/model_ike_policy_version_label.go +++ b/model_ike_policy_version_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go index 7abf472f2..8f0101394 100644 --- a/model_ike_policy_version_value.go +++ b/model_ike_policy_version_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal.go b/model_ike_proposal.go index cd4eed1ca..eefc00a5b 100644 --- a/model_ike_proposal.go +++ b/model_ike_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,16 @@ var _ MappedNullable = &IKEProposal{} // IKEProposal Adds support for custom fields and tags. type IKEProposal struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"` - Group IKEProposalGroup `json:"group"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroup `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -46,15 +47,15 @@ type _IKEProposal IKEProposal // 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 NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { +func NewIKEProposal(id int32, url string, displayUrl string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { this := IKEProposal{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group this.Created = created this.LastUpdated = lastUpdated @@ -117,6 +118,30 @@ func (o *IKEProposal) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IKEProposal) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IKEProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IKEProposal) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IKEProposal) GetDisplay() string { if o == nil { @@ -245,28 +270,36 @@ func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) { o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithm return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposal) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -496,6 +529,7 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -503,7 +537,9 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -534,11 +570,11 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", "created", "last_updated", @@ -573,6 +609,7 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go index beeab8334..d43da6376 100644 --- a/model_ike_proposal_authentication_algorithm.go +++ b/model_ike_proposal_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go index ed37a3e8d..6726ed8a2 100644 --- a/model_ike_proposal_authentication_algorithm_label.go +++ b/model_ike_proposal_authentication_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go index ac2ff5a01..531a08660 100644 --- a/model_ike_proposal_authentication_algorithm_value.go +++ b/model_ike_proposal_authentication_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go index ce563d6e2..c20c8d073 100644 --- a/model_ike_proposal_authentication_method.go +++ b/model_ike_proposal_authentication_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go index 35519ca6b..50f06871a 100644 --- a/model_ike_proposal_authentication_method_label.go +++ b/model_ike_proposal_authentication_method_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go index c1e5b8266..a5361b076 100644 --- a/model_ike_proposal_authentication_method_value.go +++ b/model_ike_proposal_authentication_method_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go index 208e10199..5fb37a4e6 100644 --- a/model_ike_proposal_encryption_algorithm.go +++ b/model_ike_proposal_encryption_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go index 4485f50f2..138e88d02 100644 --- a/model_ike_proposal_encryption_algorithm_label.go +++ b/model_ike_proposal_encryption_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go index f152c2e12..ca9314a83 100644 --- a/model_ike_proposal_encryption_algorithm_value.go +++ b/model_ike_proposal_encryption_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go index b4e572948..4e1a0a106 100644 --- a/model_ike_proposal_group.go +++ b/model_ike_proposal_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go index acb825e47..d69292327 100644 --- a/model_ike_proposal_group_label.go +++ b/model_ike_proposal_group_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go index 482fc4b74..b7aef39a7 100644 --- a/model_ike_proposal_group_value.go +++ b/model_ike_proposal_group_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go index 532a3552d..618c2a4fd 100644 --- a/model_ike_proposal_request.go +++ b/model_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &IKEProposalRequest{} // IKEProposalRequest Adds support for custom fields and tags. type IKEProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"` - Group IKEProposalGroupValue `json:"group"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroupValue `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,12 +40,11 @@ type _IKEProposalRequest IKEProposalRequest // 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 NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { +func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { this := IKEProposalRequest{} this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group return &this } @@ -162,28 +161,36 @@ func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgor o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithmValue return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -365,7 +372,9 @@ func (o IKEProposalRequest) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -395,7 +404,6 @@ func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", } diff --git a/model_image_attachment.go b/model_image_attachment.go index 3eef1f2cd..ee5f25445 100644 --- a/model_image_attachment.go +++ b/model_image_attachment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go index 26ce0cc75..56ae5e0a4 100644 --- a/model_image_attachment_request.go +++ b/model_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,8 +25,6 @@ type ImageAttachmentRequest struct { ObjectId int64 `json:"object_id"` Name *string `json:"name,omitempty"` Image *os.File `json:"image"` - ImageHeight int32 `json:"image_height"` - ImageWidth int32 `json:"image_width"` AdditionalProperties map[string]interface{} } @@ -36,13 +34,11 @@ type _ImageAttachmentRequest ImageAttachmentRequest // 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 NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest { +func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File) *ImageAttachmentRequest { this := ImageAttachmentRequest{} this.ObjectType = objectType this.ObjectId = objectId this.Image = image - this.ImageHeight = imageHeight - this.ImageWidth = imageWidth return &this } @@ -158,54 +154,6 @@ func (o *ImageAttachmentRequest) SetImage(v *os.File) { o.Image = v } -// GetImageHeight returns the ImageHeight field value -func (o *ImageAttachmentRequest) GetImageHeight() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageHeight, true -} - -// SetImageHeight sets field value -func (o *ImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = v -} - -// GetImageWidth returns the ImageWidth field value -func (o *ImageAttachmentRequest) GetImageWidth() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageWidth, true -} - -// SetImageWidth sets field value -func (o *ImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = v -} - func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -222,8 +170,6 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name } toSerialize["image"] = o.Image - toSerialize["image_height"] = o.ImageHeight - toSerialize["image_width"] = o.ImageWidth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,8 +186,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { "object_type", "object_id", "image", - "image_height", - "image_width", } allProperties := make(map[string]interface{}) @@ -275,8 +219,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_interface.go b/model_interface.go index 8990492b1..1bc3f59d3 100644 --- a/model_interface.go +++ b/model_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &Interface{} // Interface Adds support for custom fields and tags. type Interface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceType `json:"type"` @@ -51,31 +52,31 @@ type Interface struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` + Cable NullableBriefCable `json:"cable"` CableEnd string `json:"cable_end"` WirelessLink NullableNestedWirelessLink `json:"wireless_link"` LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` - Occupied bool `json:"_occupied"` + LinkPeersType NullableString `json:"link_peers_type"` + WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -85,10 +86,11 @@ type _Interface Interface // 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 NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { +func NewInterface(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { this := Interface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -166,6 +168,30 @@ func (o *Interface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Interface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Interface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Interface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Interface) GetDisplay() string { if o == nil { @@ -191,9 +217,9 @@ func (o *Interface) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Interface) GetDevice() Device { +func (o *Interface) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -202,7 +228,7 @@ func (o *Interface) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Interface) GetDeviceOk() (*Device, bool) { +func (o *Interface) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -210,7 +236,7 @@ func (o *Interface) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Interface) SetDevice(v Device) { +func (o *Interface) SetDevice(v BriefDevice) { o.Device = v } @@ -247,9 +273,9 @@ func (o *Interface) SetVdcs(v []VirtualDeviceContext) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetModule() Module { +func (o *Interface) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -258,7 +284,7 @@ func (o *Interface) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetModuleOk() (*Module, bool) { +func (o *Interface) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -274,8 +300,8 @@ func (o *Interface) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *Interface) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *Interface) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -1099,9 +1125,9 @@ func (o *Interface) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetUntaggedVlan() VLAN { +func (o *Interface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -1110,7 +1136,7 @@ func (o *Interface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -1126,8 +1152,8 @@ func (o *Interface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *Interface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *Interface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } @@ -1206,10 +1232,10 @@ func (o *Interface) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *Interface) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *Interface) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -1219,7 +1245,7 @@ func (o *Interface) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetCableOk() (*Cable, bool) { +func (o *Interface) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -1227,7 +1253,7 @@ func (o *Interface) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *Interface) SetCable(v Cable) { +func (o *Interface) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -1306,27 +1332,29 @@ func (o *Interface) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *Interface) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetWirelessLans returns the WirelessLans field value if set, zero value otherwise. @@ -1362,9 +1390,9 @@ func (o *Interface) SetWirelessLans(v []WirelessLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetVrf() VRF { +func (o *Interface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -1373,7 +1401,7 @@ func (o *Interface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetVrfOk() (*VRF, bool) { +func (o *Interface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -1389,8 +1417,8 @@ func (o *Interface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Interface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Interface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -1405,10 +1433,10 @@ func (o *Interface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *Interface) GetL2vpnTermination() L2VPNTermination { +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination + var ret BriefL2VPNTermination return ret } @@ -1418,7 +1446,7 @@ func (o *Interface) GetL2vpnTermination() L2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } @@ -1426,11 +1454,12 @@ func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *Interface) SetL2vpnTermination(v L2VPNTermination) { +func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *Interface) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -1442,8 +1471,9 @@ func (o *Interface) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -1455,27 +1485,29 @@ func (o *Interface) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *Interface) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -1702,6 +1734,7 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if !IsNil(o.Vdcs) { @@ -1785,7 +1818,7 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["cable_end"] = o.CableEnd toSerialize["wireless_link"] = o.WirelessLink.Get() toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.WirelessLans) { toSerialize["wireless_lans"] = o.WirelessLans } @@ -1793,8 +1826,10 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["vrf"] = o.Vrf.Get() } toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -1822,6 +1857,7 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -1871,6 +1907,7 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "vdcs") diff --git a/model_interface_duplex.go b/model_interface_duplex.go index aa73ec088..20b698df9 100644 --- a/model_interface_duplex.go +++ b/model_interface_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go index eaab1a072..b07851622 100644 --- a/model_interface_duplex_label.go +++ b/model_interface_duplex_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go index 93e3ce120..79448a9ed 100644 --- a/model_interface_duplex_value.go +++ b/model_interface_duplex_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode.go b/model_interface_mode.go index 9441de5dd..64f057836 100644 --- a/model_interface_mode.go +++ b/model_interface_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go index cde6b2ae1..5c66f05a5 100644 --- a/model_interface_mode_label.go +++ b/model_interface_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go index f057fe019..919132510 100644 --- a/model_interface_mode_value.go +++ b/model_interface_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go index 8f365d75e..e41348fb1 100644 --- a/model_interface_poe_mode.go +++ b/model_interface_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go index 7736be9cc..92ec5bc4e 100644 --- a/model_interface_poe_mode_label.go +++ b/model_interface_poe_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go index 4e044ad15..cd289eb9a 100644 --- a/model_interface_poe_mode_value.go +++ b/model_interface_poe_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go index ef7c2e113..b0fa196bb 100644 --- a/model_interface_poe_type.go +++ b/model_interface_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go index 21265631b..ce5332126 100644 --- a/model_interface_poe_type_label.go +++ b/model_interface_poe_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go index d1f9f85a3..e511ff713 100644 --- a/model_interface_poe_type_value.go +++ b/model_interface_poe_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_request.go b/model_interface_request.go index b066995e9..57b5d34d6 100644 --- a/model_interface_request.go +++ b/model_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &InterfaceRequest{} // InterfaceRequest Adds support for custom fields and tags. type InterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type InterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _InterfaceRequest InterfaceRequest // 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 NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { +func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { this := InterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest { } // GetDevice returns the Device field value -func (o *InterfaceRequest) GetDevice() DeviceRequest { +func (o *InterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *InterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InterfaceRequest) SetDevice(v DeviceRequest) { +func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *InterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetModule() ModuleRequest { +func (o *InterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *InterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *InterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *InterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *InterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *InterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *InterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetVrf() VRFRequest { +func (o *InterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *InterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *InterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *InterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *InterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go index 2cfab20fa..b0bc7e279 100644 --- a/model_interface_request_duplex.go +++ b/model_interface_request_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go index 6cdd517fa..7530c0c84 100644 --- a/model_interface_rf_channel.go +++ b/model_interface_rf_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go index c6ca5df46..296bde025 100644 --- a/model_interface_rf_channel_label.go +++ b/model_interface_rf_channel_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go index 5a426d213..d7a734309 100644 --- a/model_interface_rf_channel_value.go +++ b/model_interface_rf_channel_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go index a7f8f1cd9..e93f09938 100644 --- a/model_interface_rf_role.go +++ b/model_interface_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go index 201cb2af4..04792da60 100644 --- a/model_interface_rf_role_label.go +++ b/model_interface_rf_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go index 364371e9c..dc2925fc0 100644 --- a/model_interface_rf_role_value.go +++ b/model_interface_rf_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template.go b/model_interface_template.go index 37184eb6b..dbcf9ad3f 100644 --- a/model_interface_template.go +++ b/model_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &InterfaceTemplate{} // InterfaceTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -142,9 +142,9 @@ func (o *InterfaceTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetDeviceType() DeviceType { +func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -153,7 +153,7 @@ func (o *InterfaceTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -169,8 +169,8 @@ func (o *InterfaceTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *InterfaceTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -185,9 +185,9 @@ func (o *InterfaceTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetModuleType() ModuleType { +func (o *InterfaceTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -196,7 +196,7 @@ func (o *InterfaceTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -212,8 +212,8 @@ func (o *InterfaceTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *InterfaceTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *InterfaceTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go index 7811b7e10..fcac24873 100644 --- a/model_interface_template_poe_mode.go +++ b/model_interface_template_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go index 2c1cb4d01..07f6b4ee4 100644 --- a/model_interface_template_poe_type.go +++ b/model_interface_template_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request.go b/model_interface_template_request.go index bea10caaf..ea39d689b 100644 --- a/model_interface_template_request.go +++ b/model_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceTemplateRequest{} // InterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewInterfaceTemplateRequestWithDefaults() *InterfaceTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *InterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go index f2b93a781..d0f660cc0 100644 --- a/model_interface_template_request_poe_mode.go +++ b/model_interface_template_request_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go index 1f35567e1..da18fde07 100644 --- a/model_interface_template_request_poe_type.go +++ b/model_interface_template_request_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go index db39e8514..3227b7bb5 100644 --- a/model_interface_template_request_rf_role.go +++ b/model_interface_template_request_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go index 3eaf185c1..b8b4a7ab6 100644 --- a/model_interface_template_rf_role.go +++ b/model_interface_template_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type.go b/model_interface_type.go index d5a16d3e2..c909247b0 100644 --- a/model_interface_type.go +++ b/model_interface_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type_label.go b/model_interface_type_label.go index 99dedfa78..dc6af7d8b 100644 --- a/model_interface_type_label.go +++ b/model_interface_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,6 +28,7 @@ const ( INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" INTERFACETYPELABEL__100_BASE_T1__10_100_ME_SINGLE_PAIR InterfaceTypeLabel = "100BASE-T1 (10/100ME Single Pair)" INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)" + INTERFACETYPELABEL__1000_BASE_TX__1_GE InterfaceTypeLabel = "1000BASE-TX (1GE)" INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)" INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)" INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)" @@ -81,6 +82,7 @@ const ( INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad" INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax" INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay" + INTERFACETYPELABEL_IEEE_802_11BE InterfaceTypeLabel = "IEEE 802.11be" INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)" INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)" INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM" @@ -157,6 +159,7 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "100BASE-TX (10/100ME)", "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", + "1000BASE-TX (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", "10GBASE-T (10GE)", @@ -210,6 +213,7 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "IEEE 802.11ad", "IEEE 802.11ax", "IEEE 802.11ay", + "IEEE 802.11be", "IEEE 802.15.1 (Bluetooth)", "Other (Wireless)", "GSM", diff --git a/model_interface_type_value.go b/model_interface_type_value.go index 324edde78..11fa8c35d 100644 --- a/model_interface_type_value.go +++ b/model_interface_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other type InterfaceTypeValue string // List of Interface_type_value @@ -28,6 +28,7 @@ const ( INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx" INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1" INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t" + INTERFACETYPEVALUE__1000BASE_TX InterfaceTypeValue = "1000base-tx" INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t" INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t" INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t" @@ -81,6 +82,7 @@ const ( INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad" INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax" INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay" + INTERFACETYPEVALUE_IEEE802_11BE InterfaceTypeValue = "ieee802.11be" INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1" INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless" INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm" @@ -157,6 +159,7 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "100base-tx", "100base-t1", "1000base-t", + "1000base-tx", "2.5gbase-t", "5gbase-t", "10gbase-t", @@ -210,6 +213,7 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "ieee802.11ad", "ieee802.11ax", "ieee802.11ay", + "ieee802.11be", "ieee802.15.1", "other-wireless", "gsm", diff --git a/model_inventory_item.go b/model_inventory_item.go index 288a4619c..1edc76cba 100644 --- a/model_inventory_item.go +++ b/model_inventory_item.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,17 @@ var _ MappedNullable = &InventoryItem{} // InventoryItem Adds support for custom fields and tags. type InventoryItem struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -56,10 +57,11 @@ 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, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, displayUrl string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -126,6 +128,30 @@ func (o *InventoryItem) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *InventoryItem) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *InventoryItem) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *InventoryItem) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *InventoryItem) GetDisplay() string { if o == nil { @@ -151,9 +177,9 @@ func (o *InventoryItem) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *InventoryItem) GetDevice() Device { +func (o *InventoryItem) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -162,7 +188,7 @@ func (o *InventoryItem) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItem) GetDeviceOk() (*Device, bool) { +func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -170,7 +196,7 @@ func (o *InventoryItem) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *InventoryItem) SetDevice(v Device) { +func (o *InventoryItem) SetDevice(v BriefDevice) { o.Device = v } @@ -274,9 +300,9 @@ func (o *InventoryItem) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetRole() InventoryItemRole { +func (o *InventoryItem) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -285,7 +311,7 @@ func (o *InventoryItem) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -301,8 +327,8 @@ func (o *InventoryItem) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItem) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItem) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } @@ -317,9 +343,9 @@ func (o *InventoryItem) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetManufacturer() Manufacturer { +func (o *InventoryItem) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -328,7 +354,7 @@ func (o *InventoryItem) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -344,8 +370,8 @@ func (o *InventoryItem) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItem) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItem) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } @@ -794,6 +820,7 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Parent.IsSet() { @@ -857,6 +884,7 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -895,6 +923,7 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "parent") diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go index c93a233fc..d135dd9df 100644 --- a/model_inventory_item_request.go +++ b/model_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &InventoryItemRequest{} // InventoryItemRequest Adds support for custom fields and tags. type InventoryItemRequest struct { - Device DeviceRequest `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -48,7 +48,7 @@ type _InventoryItemRequest InventoryItemRequest // 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 NewInventoryItemRequest(device DeviceRequest, name string) *InventoryItemRequest { +func NewInventoryItemRequest(device BriefDeviceRequest, name string) *InventoryItemRequest { this := InventoryItemRequest{} this.Device = device this.Name = name @@ -64,9 +64,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest { } // GetDevice returns the Device field value -func (o *InventoryItemRequest) GetDevice() DeviceRequest { +func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -75,7 +75,7 @@ func (o *InventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,7 +83,7 @@ func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InventoryItemRequest) SetDevice(v DeviceRequest) { +func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -187,9 +187,9 @@ func (o *InventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -198,7 +198,7 @@ func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *InventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -230,9 +230,9 @@ func (o *InventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -241,7 +241,7 @@ func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *InventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go index ee6f28990..df4e46ac8 100644 --- a/model_inventory_item_role.go +++ b/model_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &InventoryItemRole{} type InventoryItemRole struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,10 +43,11 @@ type _InventoryItemRole InventoryItemRole // 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 NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { +func NewInventoryItemRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { this := InventoryItemRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -111,6 +113,30 @@ func (o *InventoryItemRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *InventoryItemRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *InventoryItemRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *InventoryItemRole) GetDisplay() string { if o == nil { @@ -399,6 +425,7 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -432,6 +459,7 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -469,6 +497,7 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go index c00674ef5..e1dfdf5f2 100644 --- a/model_inventory_item_role_request.go +++ b/model_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go index 2e4179281..ca03976ca 100644 --- a/model_inventory_item_template.go +++ b/model_inventory_item_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,17 @@ var _ MappedNullable = &InventoryItemTemplate{} // InventoryItemTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -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, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url @@ -145,9 +145,9 @@ func (o *InventoryItemTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplate) GetDeviceType() DeviceType { +func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -156,7 +156,7 @@ func (o *InventoryItemTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,7 +164,7 @@ func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *InventoryItemTemplate) SetDeviceType(v DeviceType) { +func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } @@ -268,9 +268,9 @@ func (o *InventoryItemTemplate) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetRole() InventoryItemRole { +func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -279,7 +279,7 @@ func (o *InventoryItemTemplate) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -295,8 +295,8 @@ func (o *InventoryItemTemplate) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItemTemplate) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } @@ -311,9 +311,9 @@ func (o *InventoryItemTemplate) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { +func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -322,7 +322,7 @@ func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -338,8 +338,8 @@ func (o *InventoryItemTemplate) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go index c7d639e2d..70a5300c1 100644 --- a/model_inventory_item_template_request.go +++ b/model_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &InventoryItemTemplateRequest{} // InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -42,7 +42,7 @@ type _InventoryItemTemplateRequest InventoryItemTemplateRequest // 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 NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string) *InventoryItemTemplateRequest { +func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *InventoryItemTemplateRequest { this := InventoryItemTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -58,9 +58,9 @@ func NewInventoryItemTemplateRequestWithDefaults() *InventoryItemTemplateRequest } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,7 +77,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bo } // SetDeviceType sets field value -func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } @@ -181,9 +181,9 @@ func (o *InventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -192,7 +192,7 @@ func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -208,8 +208,8 @@ func (o *InventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -224,9 +224,9 @@ func (o *InventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_ip_address.go b/model_ip_address.go index 5fdb687b4..1f75c7269 100644 --- a/model_ip_address.go +++ b/model_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the IPAddress type satisfies the MappedNullable interface at compile time @@ -20,12 +21,29 @@ var _ MappedNullable = &IPAddress{} // IPAddress Adds support for custom fields and tags. type IPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPAddressStatus `json:"status,omitempty"` + Role *IPAddressRole `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + AssignedObject interface{} `json:"assigned_object"` + NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` + NatOutside []NestedIPAddress `json:"nat_outside"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,18 @@ type _IPAddress IPAddress // 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 NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress { +func NewIPAddress(id int32, url string, displayUrl string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress { this := IPAddress{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Address = address + this.AssignedObject = assignedObject + this.NatOutside = natOutside + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +124,30 @@ func (o *IPAddress) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPAddress) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPAddress) GetDisplay() string { if o == nil { @@ -173,6 +220,367 @@ func (o *IPAddress) SetAddress(v string) { o.Address = v } +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetVrfOk() (*BriefVRF, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddress) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPAddress) SetVrf(v BriefVRF) { + o.Vrf.Set(&v) +} + +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddress) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddress) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *IPAddress) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPAddress) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddress) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddress) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddress) GetStatus() IPAddressStatus { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddress) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatus and assigns it to the Status field. +func (o *IPAddress) SetStatus(v IPAddressStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddress) GetRole() IPAddressRole { + if o == nil || IsNil(o.Role) { + var ret IPAddressRole + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddress) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRole and assigns it to the Role field. +func (o *IPAddress) SetRole(v IPAddressRole) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *IPAddress) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} + +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *IPAddress) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *IPAddress) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} + +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *IPAddress) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetAssignedObject returns the AssignedObject field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *IPAddress) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// SetAssignedObject sets field value +func (o *IPAddress) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetNatInside() NestedIPAddress { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddress + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddress) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddress and assigns it to the NatInside field. +func (o *IPAddress) SetNatInside(v NestedIPAddress) { + o.NatInside.Set(&v) +} + +// SetNatInsideNil sets the value for NatInside to be an explicit nil +func (o *IPAddress) SetNatInsideNil() { + o.NatInside.Set(nil) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddress) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetNatOutside returns the NatOutside field value +func (o *IPAddress) GetNatOutside() []NestedIPAddress { + if o == nil { + var ret []NestedIPAddress + return ret + } + + return o.NatOutside +} + +// GetNatOutsideOk returns a tuple with the NatOutside field value +// and a boolean to check if the value has been set. +func (o *IPAddress) GetNatOutsideOk() ([]NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatOutside, true +} + +// SetNatOutside sets field value +func (o *IPAddress) SetNatOutside(v []NestedIPAddress) { + o.NatOutside = v +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddress) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddress) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddress) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddress) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +613,154 @@ func (o *IPAddress) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddress) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddress) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddress) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddress) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *IPAddress) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *IPAddress) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddress) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *IPAddress) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *IPAddress) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *IPAddress) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *IPAddress) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *IPAddress) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *IPAddress) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o IPAddress) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +773,52 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + toSerialize["nat_outside"] = o.NatOutside + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +834,14 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "address", + "assigned_object", + "nat_outside", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +873,26 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "nat_outside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_request.go b/model_ip_address_request.go index 6c3232de2..2e83edacc 100644 --- a/model_ip_address_request.go +++ b/model_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,20 @@ var _ MappedNullable = &IPAddressRequest{} // IPAddressRequest Adds support for custom fields and tags. type IPAddressRequest struct { - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Address string `json:"address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPAddressStatusValue `json:"status,omitempty"` + Role *IPAddressRoleValue `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -69,6 +81,317 @@ func (o *IPAddressRequest) SetAddress(v string) { o.Address = v } +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddressRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPAddressRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) +} + +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddressRequest) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddressRequest) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *IPAddressRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPAddressRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddressRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddressRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddressRequest) GetStatus() IPAddressStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddressRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatusValue and assigns it to the Status field. +func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddressRequest) GetRole() IPAddressRoleValue { + if o == nil || IsNil(o.Role) { + var ret IPAddressRoleValue + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddressRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRoleValue and assigns it to the Role field. +func (o *IPAddressRequest) SetRole(v IPAddressRoleValue) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *IPAddressRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} + +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *IPAddressRequest) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *IPAddressRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} + +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *IPAddressRequest) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddressRequest + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddressRequest) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddressRequest and assigns it to the NatInside field. +func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest) { + o.NatInside.Set(&v) +} + +// SetNatInsideNil sets the value for NatInside to be an explicit nil +func (o *IPAddressRequest) SetNatInsideNil() { + o.NatInside.Set(nil) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddressRequest) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddressRequest) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddressRequest) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddressRequest) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddressRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +424,102 @@ func (o *IPAddressRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddressRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddressRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddressRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddressRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *IPAddressRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *IPAddressRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddressRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *IPAddressRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *IPAddressRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o IPAddressRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +531,42 @@ func (o IPAddressRequest) MarshalJSON() ([]byte, error) { func (o IPAddressRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,7 +611,18 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_role.go b/model_ip_address_role.go new file mode 100644 index 000000000..acc433aaa --- /dev/null +++ b/model_ip_address_role.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the IPAddressRole type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IPAddressRole{} + +// IPAddressRole struct for IPAddressRole +type IPAddressRole struct { + Value *IPAddressRoleValue `json:"value,omitempty"` + Label *IPAddressRoleLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IPAddressRole IPAddressRole + +// NewIPAddressRole instantiates a new IPAddressRole object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIPAddressRole() *IPAddressRole { + this := IPAddressRole{} + return &this +} + +// NewIPAddressRoleWithDefaults instantiates a new IPAddressRole object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIPAddressRoleWithDefaults() *IPAddressRole { + this := IPAddressRole{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *IPAddressRole) GetValue() IPAddressRoleValue { + if o == nil || IsNil(o.Value) { + var ret IPAddressRoleValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRole) GetValueOk() (*IPAddressRoleValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *IPAddressRole) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given IPAddressRoleValue and assigns it to the Value field. +func (o *IPAddressRole) SetValue(v IPAddressRoleValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *IPAddressRole) GetLabel() IPAddressRoleLabel { + if o == nil || IsNil(o.Label) { + var ret IPAddressRoleLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRole) GetLabelOk() (*IPAddressRoleLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *IPAddressRole) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given IPAddressRoleLabel and assigns it to the Label field. +func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel) { + o.Label = &v +} + +func (o IPAddressRole) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IPAddressRole) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *IPAddressRole) UnmarshalJSON(data []byte) (err error) { + varIPAddressRole := _IPAddressRole{} + + err = json.Unmarshal(data, &varIPAddressRole) + + if err != nil { + return err + } + + *o = IPAddressRole(varIPAddressRole) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIPAddressRole struct { + value *IPAddressRole + isSet bool +} + +func (v NullableIPAddressRole) Get() *IPAddressRole { + return v.value +} + +func (v *NullableIPAddressRole) Set(val *IPAddressRole) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRole) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRole) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRole(val *IPAddressRole) *NullableIPAddressRole { + return &NullableIPAddressRole{value: val, isSet: true} +} + +func (v NullableIPAddressRole) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRole) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go new file mode 100644 index 000000000..c129c2302 --- /dev/null +++ b/model_ip_address_role_label.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressRoleLabel the model 'IPAddressRoleLabel' +type IPAddressRoleLabel string + +// List of IPAddress_role_label +const ( + IPADDRESSROLELABEL_LOOPBACK IPAddressRoleLabel = "Loopback" + IPADDRESSROLELABEL_SECONDARY IPAddressRoleLabel = "Secondary" + IPADDRESSROLELABEL_ANYCAST IPAddressRoleLabel = "Anycast" + IPADDRESSROLELABEL_VIP IPAddressRoleLabel = "VIP" + IPADDRESSROLELABEL_VRRP IPAddressRoleLabel = "VRRP" + IPADDRESSROLELABEL_HSRP IPAddressRoleLabel = "HSRP" + IPADDRESSROLELABEL_GLBP IPAddressRoleLabel = "GLBP" + IPADDRESSROLELABEL_CARP IPAddressRoleLabel = "CARP" +) + +// All allowed values of IPAddressRoleLabel enum +var AllowedIPAddressRoleLabelEnumValues = []IPAddressRoleLabel{ + "Loopback", + "Secondary", + "Anycast", + "VIP", + "VRRP", + "HSRP", + "GLBP", + "CARP", +} + +func (v *IPAddressRoleLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressRoleLabel(value) + for _, existing := range AllowedIPAddressRoleLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressRoleLabel", value) +} + +// NewIPAddressRoleLabelFromValue returns a pointer to a valid IPAddressRoleLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressRoleLabelFromValue(v string) (*IPAddressRoleLabel, error) { + ev := IPAddressRoleLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressRoleLabel: valid values are %v", v, AllowedIPAddressRoleLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressRoleLabel) IsValid() bool { + for _, existing := range AllowedIPAddressRoleLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_role_label value +func (v IPAddressRoleLabel) Ptr() *IPAddressRoleLabel { + return &v +} + +type NullableIPAddressRoleLabel struct { + value *IPAddressRoleLabel + isSet bool +} + +func (v NullableIPAddressRoleLabel) Get() *IPAddressRoleLabel { + return v.value +} + +func (v *NullableIPAddressRoleLabel) Set(val *IPAddressRoleLabel) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRoleLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRoleLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRoleLabel(val *IPAddressRoleLabel) *NullableIPAddressRoleLabel { + return &NullableIPAddressRoleLabel{value: val, isSet: true} +} + +func (v NullableIPAddressRoleLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRoleLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ip_address_role_value.go b/model_ip_address_role_value.go new file mode 100644 index 000000000..ea1ddb4f5 --- /dev/null +++ b/model_ip_address_role_value.go @@ -0,0 +1,125 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressRoleValue * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +type IPAddressRoleValue string + +// List of IPAddress_role_value +const ( + IPADDRESSROLEVALUE_LOOPBACK IPAddressRoleValue = "loopback" + IPADDRESSROLEVALUE_SECONDARY IPAddressRoleValue = "secondary" + IPADDRESSROLEVALUE_ANYCAST IPAddressRoleValue = "anycast" + IPADDRESSROLEVALUE_VIP IPAddressRoleValue = "vip" + IPADDRESSROLEVALUE_VRRP IPAddressRoleValue = "vrrp" + IPADDRESSROLEVALUE_HSRP IPAddressRoleValue = "hsrp" + IPADDRESSROLEVALUE_GLBP IPAddressRoleValue = "glbp" + IPADDRESSROLEVALUE_CARP IPAddressRoleValue = "carp" + IPADDRESSROLEVALUE_EMPTY IPAddressRoleValue = "" +) + +// All allowed values of IPAddressRoleValue enum +var AllowedIPAddressRoleValueEnumValues = []IPAddressRoleValue{ + "loopback", + "secondary", + "anycast", + "vip", + "vrrp", + "hsrp", + "glbp", + "carp", + "", +} + +func (v *IPAddressRoleValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressRoleValue(value) + for _, existing := range AllowedIPAddressRoleValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressRoleValue", value) +} + +// NewIPAddressRoleValueFromValue returns a pointer to a valid IPAddressRoleValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressRoleValueFromValue(v string) (*IPAddressRoleValue, error) { + ev := IPAddressRoleValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressRoleValue: valid values are %v", v, AllowedIPAddressRoleValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressRoleValue) IsValid() bool { + for _, existing := range AllowedIPAddressRoleValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_role_value value +func (v IPAddressRoleValue) Ptr() *IPAddressRoleValue { + return &v +} + +type NullableIPAddressRoleValue struct { + value *IPAddressRoleValue + isSet bool +} + +func (v NullableIPAddressRoleValue) Get() *IPAddressRoleValue { + return v.value +} + +func (v *NullableIPAddressRoleValue) Set(val *IPAddressRoleValue) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressRoleValue) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressRoleValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressRoleValue(val *IPAddressRoleValue) *NullableIPAddressRoleValue { + return &NullableIPAddressRoleValue{value: val, isSet: true} +} + +func (v NullableIPAddressRoleValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressRoleValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ip_address_status.go b/model_ip_address_status.go new file mode 100644 index 000000000..c99d69f6a --- /dev/null +++ b/model_ip_address_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the IPAddressStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &IPAddressStatus{} + +// IPAddressStatus struct for IPAddressStatus +type IPAddressStatus struct { + Value *IPAddressStatusValue `json:"value,omitempty"` + Label *IPAddressStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _IPAddressStatus IPAddressStatus + +// NewIPAddressStatus instantiates a new IPAddressStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewIPAddressStatus() *IPAddressStatus { + this := IPAddressStatus{} + return &this +} + +// NewIPAddressStatusWithDefaults instantiates a new IPAddressStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewIPAddressStatusWithDefaults() *IPAddressStatus { + this := IPAddressStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *IPAddressStatus) GetValue() IPAddressStatusValue { + if o == nil || IsNil(o.Value) { + var ret IPAddressStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressStatus) GetValueOk() (*IPAddressStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *IPAddressStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given IPAddressStatusValue and assigns it to the Value field. +func (o *IPAddressStatus) SetValue(v IPAddressStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *IPAddressStatus) GetLabel() IPAddressStatusLabel { + if o == nil || IsNil(o.Label) { + var ret IPAddressStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressStatus) GetLabelOk() (*IPAddressStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *IPAddressStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given IPAddressStatusLabel and assigns it to the Label field. +func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel) { + o.Label = &v +} + +func (o IPAddressStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o IPAddressStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *IPAddressStatus) UnmarshalJSON(data []byte) (err error) { + varIPAddressStatus := _IPAddressStatus{} + + err = json.Unmarshal(data, &varIPAddressStatus) + + if err != nil { + return err + } + + *o = IPAddressStatus(varIPAddressStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableIPAddressStatus struct { + value *IPAddressStatus + isSet bool +} + +func (v NullableIPAddressStatus) Get() *IPAddressStatus { + return v.value +} + +func (v *NullableIPAddressStatus) Set(val *IPAddressStatus) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatus(val *IPAddressStatus) *NullableIPAddressStatus { + return &NullableIPAddressStatus{value: val, isSet: true} +} + +func (v NullableIPAddressStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go new file mode 100644 index 000000000..98e133a7f --- /dev/null +++ b/model_ip_address_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressStatusLabel the model 'IPAddressStatusLabel' +type IPAddressStatusLabel string + +// List of IPAddress_status_label +const ( + IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active" + IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved" + IPADDRESSSTATUSLABEL_DEPRECATED IPAddressStatusLabel = "Deprecated" + IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP" + IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC" +) + +// All allowed values of IPAddressStatusLabel enum +var AllowedIPAddressStatusLabelEnumValues = []IPAddressStatusLabel{ + "Active", + "Reserved", + "Deprecated", + "DHCP", + "SLAAC", +} + +func (v *IPAddressStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressStatusLabel(value) + for _, existing := range AllowedIPAddressStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressStatusLabel", value) +} + +// NewIPAddressStatusLabelFromValue returns a pointer to a valid IPAddressStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressStatusLabelFromValue(v string) (*IPAddressStatusLabel, error) { + ev := IPAddressStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressStatusLabel: valid values are %v", v, AllowedIPAddressStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressStatusLabel) IsValid() bool { + for _, existing := range AllowedIPAddressStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_status_label value +func (v IPAddressStatusLabel) Ptr() *IPAddressStatusLabel { + return &v +} + +type NullableIPAddressStatusLabel struct { + value *IPAddressStatusLabel + isSet bool +} + +func (v NullableIPAddressStatusLabel) Get() *IPAddressStatusLabel { + return v.value +} + +func (v *NullableIPAddressStatusLabel) Set(val *IPAddressStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatusLabel(val *IPAddressStatusLabel) *NullableIPAddressStatusLabel { + return &NullableIPAddressStatusLabel{value: val, isSet: true} +} + +func (v NullableIPAddressStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ip_address_status_value.go b/model_ip_address_status_value.go new file mode 100644 index 000000000..1b745acb9 --- /dev/null +++ b/model_ip_address_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IPAddressStatusValue * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +type IPAddressStatusValue string + +// List of IPAddress_status_value +const ( + IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active" + IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved" + IPADDRESSSTATUSVALUE_DEPRECATED IPAddressStatusValue = "deprecated" + IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp" + IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac" +) + +// All allowed values of IPAddressStatusValue enum +var AllowedIPAddressStatusValueEnumValues = []IPAddressStatusValue{ + "active", + "reserved", + "deprecated", + "dhcp", + "slaac", +} + +func (v *IPAddressStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IPAddressStatusValue(value) + for _, existing := range AllowedIPAddressStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IPAddressStatusValue", value) +} + +// NewIPAddressStatusValueFromValue returns a pointer to a valid IPAddressStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIPAddressStatusValueFromValue(v string) (*IPAddressStatusValue, error) { + ev := IPAddressStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IPAddressStatusValue: valid values are %v", v, AllowedIPAddressStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IPAddressStatusValue) IsValid() bool { + for _, existing := range AllowedIPAddressStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to IPAddress_status_value value +func (v IPAddressStatusValue) Ptr() *IPAddressStatusValue { + return &v +} + +type NullableIPAddressStatusValue struct { + value *IPAddressStatusValue + isSet bool +} + +func (v NullableIPAddressStatusValue) Get() *IPAddressStatusValue { + return v.value +} + +func (v *NullableIPAddressStatusValue) Set(val *IPAddressStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableIPAddressStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableIPAddressStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIPAddressStatusValue(val *IPAddressStatusValue) *NullableIPAddressStatusValue { + return &NullableIPAddressStatusValue{value: val, isSet: true} +} + +func (v NullableIPAddressStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIPAddressStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ip_range.go b/model_ip_range.go index 8775cca43..782e7942d 100644 --- a/model_ip_range.go +++ b/model_ip_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,15 +23,16 @@ var _ MappedNullable = &IPRange{} type IPRange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Family AggregateFamily `json:"family"` StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` Size int32 `json:"size"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Status *IPRangeStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -49,10 +50,11 @@ type _IPRange IPRange // 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 NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { +func NewIPRange(id int32, url string, displayUrl string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { this := IPRange{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.StartAddress = startAddress @@ -119,6 +121,30 @@ func (o *IPRange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPRange) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPRange) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPRange) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPRange) GetDisplay() string { if o == nil { @@ -240,9 +266,9 @@ func (o *IPRange) SetSize(v int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetVrf() VRF { +func (o *IPRange) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -251,7 +277,7 @@ func (o *IPRange) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetVrfOk() (*VRF, bool) { +func (o *IPRange) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -267,8 +293,8 @@ func (o *IPRange) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *IPRange) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPRange) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -283,9 +309,9 @@ func (o *IPRange) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetTenant() Tenant { +func (o *IPRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -294,7 +320,7 @@ func (o *IPRange) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetTenantOk() (*Tenant, bool) { +func (o *IPRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -310,8 +336,8 @@ func (o *IPRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *IPRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -358,9 +384,9 @@ func (o *IPRange) SetStatus(v IPRangeStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetRole() Role { +func (o *IPRange) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -369,7 +395,7 @@ func (o *IPRange) GetRole() Role { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetRoleOk() (*Role, bool) { +func (o *IPRange) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -385,8 +411,8 @@ func (o *IPRange) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *IPRange) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *IPRange) SetRole(v BriefRole) { o.Role.Set(&v) } @@ -624,6 +650,7 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["start_address"] = o.StartAddress @@ -673,6 +700,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "start_address", @@ -711,6 +739,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "start_address") diff --git a/model_ip_range_request.go b/model_ip_range_request.go index 89c81001d..0685390f2 100644 --- a/model_ip_range_request.go +++ b/model_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &IPRangeRequest{} // IPRangeRequest Adds support for custom fields and tags. type IPRangeRequest struct { - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *IPRangeStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` // Treat as fully utilized MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} @@ -105,9 +105,9 @@ func (o *IPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetVrf() VRFRequest { +func (o *IPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *IPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *IPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *IPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *IPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetTenant() TenantRequest { +func (o *IPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *IPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *IPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *IPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetRole() RoleRequest { +func (o *IPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *IPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *IPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *IPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *IPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_ip_range_status.go b/model_ip_range_status.go index 7382048fb..dc694097b 100644 --- a/model_ip_range_status.go +++ b/model_ip_range_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go index 385ab47e7..e981f6ae4 100644 --- a/model_ip_range_status_label.go +++ b/model_ip_range_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go index df62fcdf6..6667c09bf 100644 --- a/model_ip_range_status_value.go +++ b/model_ip_range_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go index 36f1f6c99..846853460 100644 --- a/model_ip_sec_policy.go +++ b/model_ip_sec_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &IPSecPolicy{} type IPSecPolicy struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _IPSecPolicy IPSecPolicy // 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 NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { +func NewIPSecPolicy(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { this := IPSecPolicy{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Created = created @@ -109,6 +111,30 @@ func (o *IPSecPolicy) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPSecPolicy) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPSecPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPSecPolicy) GetDisplay() string { if o == nil { @@ -413,6 +439,7 @@ func (o IPSecPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -450,6 +477,7 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "created", @@ -485,6 +513,7 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go index 9612f14fa..0ef197a67 100644 --- a/model_ip_sec_policy_request.go +++ b/model_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go index 9146d8074..ab4af3f12 100644 --- a/model_ip_sec_profile.go +++ b/model_ip_sec_profile.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,12 +23,13 @@ var _ MappedNullable = &IPSecProfile{} type IPSecProfile struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Mode IPSecProfileMode `json:"mode"` - IkePolicy IKEPolicy `json:"ike_policy"` - IpsecPolicy IPSecPolicy `json:"ipsec_policy"` + IkePolicy BriefIKEPolicy `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicy `json:"ipsec_policy"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -43,10 +44,11 @@ type _IPSecProfile IPSecProfile // 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 NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { +func NewIPSecProfile(id int32, url string, displayUrl string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { this := IPSecProfile{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Mode = mode @@ -113,6 +115,30 @@ func (o *IPSecProfile) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPSecProfile) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPSecProfile) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPSecProfile) GetDisplay() string { if o == nil { @@ -218,9 +244,9 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfile) GetIkePolicy() IKEPolicy { +func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy { if o == nil { - var ret IKEPolicy + var ret BriefIKEPolicy return ret } @@ -229,7 +255,7 @@ func (o *IPSecProfile) GetIkePolicy() IKEPolicy { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { +func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool) { if o == nil { return nil, false } @@ -237,14 +263,14 @@ func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfile) SetIkePolicy(v IKEPolicy) { +func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { +func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy { if o == nil { - var ret IPSecPolicy + var ret BriefIPSecPolicy return ret } @@ -253,7 +279,7 @@ func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { +func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool) { if o == nil { return nil, false } @@ -261,7 +287,7 @@ func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy) { +func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy) { o.IpsecPolicy = v } @@ -425,6 +451,7 @@ func (o IPSecProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -459,6 +486,7 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "mode", @@ -497,6 +525,7 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go index 69bcffc18..95f1d923a 100644 --- a/model_ip_sec_profile_mode.go +++ b/model_ip_sec_profile_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go index 31f8922ec..a2acd238f 100644 --- a/model_ip_sec_profile_mode_label.go +++ b/model_ip_sec_profile_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go index 75a1b1c6a..d5b89c8b5 100644 --- a/model_ip_sec_profile_mode_value.go +++ b/model_ip_sec_profile_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go index 09202cc1e..6dcc8c15c 100644 --- a/model_ip_sec_profile_request.go +++ b/model_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &IPSecProfileRequest{} // IPSecProfileRequest Adds support for custom fields and tags. type IPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _IPSecProfileRequest IPSecProfileRequest // 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 NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *IPSecProfileRequest { +func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *IPSecProfileRequest { this := IPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go index cdc9250e2..4676b155f 100644 --- a/model_ip_sec_proposal.go +++ b/model_ip_sec_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &IPSecProposal{} type IPSecProposal struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -46,10 +47,11 @@ type _IPSecProposal IPSecProposal // 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 NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { +func NewIPSecProposal(id int32, url string, displayUrl string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { this := IPSecProposal{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.EncryptionAlgorithm = encryptionAlgorithm @@ -115,6 +117,30 @@ func (o *IPSecProposal) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *IPSecProposal) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *IPSecProposal) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *IPSecProposal) GetDisplay() string { if o == nil { @@ -489,6 +515,7 @@ func (o IPSecProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -528,6 +555,7 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "encryption_algorithm", @@ -565,6 +593,7 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go index 1a4cdf787..69372b5e1 100644 --- a/model_ip_sec_proposal_request.go +++ b/model_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go index f5e1d118c..d12c7b46e 100644 --- a/model_ipam_service_templates_list_protocol_parameter.go +++ b/model_ipam_service_templates_list_protocol_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_job.go b/model_job.go index 7c41c0fe1..8706b45ec 100644 --- a/model_job.go +++ b/model_job.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,21 @@ var _ MappedNullable = &Job{} // Job struct for Job type Job struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId NullableInt64 `json:"object_id,omitempty"` - Name string `json:"name"` - Status JobStatus `json:"status"` - Created time.Time `json:"created"` - Scheduled NullableTime `json:"scheduled,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId NullableInt64 `json:"object_id,omitempty"` + Name string `json:"name"` + Status BriefJobStatus `json:"status"` + Created time.Time `json:"created"` + Scheduled NullableTime `json:"scheduled,omitempty"` // Recurrence interval (in minutes) Interval NullableInt32 `json:"interval,omitempty"` Started NullableTime `json:"started,omitempty"` Completed NullableTime `json:"completed,omitempty"` - User User `json:"user"` + User BriefUser `json:"user"` Data interface{} `json:"data,omitempty"` Error string `json:"error"` JobId string `json:"job_id"` @@ -47,10 +48,11 @@ type _Job Job // 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 NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string) *Job { +func NewJob(id int32, url string, displayUrl string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string) *Job { this := Job{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectType = objectType this.Name = name @@ -118,6 +120,30 @@ func (o *Job) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Job) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Job) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Job) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Job) GetDisplay() string { if o == nil { @@ -234,9 +260,9 @@ func (o *Job) SetName(v string) { } // GetStatus returns the Status field value -func (o *Job) GetStatus() JobStatus { +func (o *Job) GetStatus() BriefJobStatus { if o == nil { - var ret JobStatus + var ret BriefJobStatus return ret } @@ -245,7 +271,7 @@ func (o *Job) GetStatus() JobStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *Job) GetStatusOk() (*JobStatus, bool) { +func (o *Job) GetStatusOk() (*BriefJobStatus, bool) { if o == nil { return nil, false } @@ -253,7 +279,7 @@ func (o *Job) GetStatusOk() (*JobStatus, bool) { } // SetStatus sets field value -func (o *Job) SetStatus(v JobStatus) { +func (o *Job) SetStatus(v BriefJobStatus) { o.Status = v } @@ -454,9 +480,9 @@ func (o *Job) UnsetCompleted() { } // GetUser returns the User field value -func (o *Job) GetUser() User { +func (o *Job) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -465,7 +491,7 @@ func (o *Job) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Job) GetUserOk() (*User, bool) { +func (o *Job) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -473,7 +499,7 @@ func (o *Job) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Job) SetUser(v User) { +func (o *Job) SetUser(v BriefUser) { o.User = v } @@ -570,6 +596,7 @@ func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_type"] = o.ObjectType if o.ObjectId.IsSet() { @@ -611,6 +638,7 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_type", "name", @@ -650,6 +678,7 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_type") delete(additionalProperties, "object_id") diff --git a/model_journal_entry.go b/model_journal_entry.go index 85c554b79..ce70ab4c1 100644 --- a/model_journal_entry.go +++ b/model_journal_entry.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &JournalEntry{} type JournalEntry struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` AssignedObjectType string `json:"assigned_object_type"` AssignedObjectId int64 `json:"assigned_object_id"` @@ -43,10 +44,11 @@ type _JournalEntry JournalEntry // 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 NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { +func NewJournalEntry(id int32, url string, displayUrl string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { this := JournalEntry{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.AssignedObjectType = assignedObjectType this.AssignedObjectId = assignedObjectId @@ -113,6 +115,30 @@ func (o *JournalEntry) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *JournalEntry) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *JournalEntry) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *JournalEntry) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *JournalEntry) GetDisplay() string { if o == nil { @@ -438,6 +464,7 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId @@ -474,6 +501,7 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "assigned_object_type", "assigned_object_id", @@ -512,6 +540,7 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "assigned_object_type") delete(additionalProperties, "assigned_object_id") diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go index 18d34bc98..4140ff8ac 100644 --- a/model_journal_entry_kind.go +++ b/model_journal_entry_kind.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go index 5c61d6c58..a7f5d3c88 100644 --- a/model_journal_entry_kind_label.go +++ b/model_journal_entry_kind_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go index 06b51fe78..aae4f9798 100644 --- a/model_journal_entry_kind_value.go +++ b/model_journal_entry_kind_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go index 03045dce6..d06931476 100644 --- a/model_journal_entry_request.go +++ b/model_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_l2_vpn.go b/model_l2_vpn.go index b59c4021b..05e025e89 100644 --- a/model_l2_vpn.go +++ b/model_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the L2VPN type satisfies the MappedNullable interface at compile time @@ -20,14 +21,23 @@ var _ MappedNullable = &L2VPN{} // L2VPN Adds support for custom fields and tags. type L2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNType `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNType `json:"type,omitempty"` + ImportTargets []RouteTarget `json:"import_targets,omitempty"` + ExportTargets []RouteTarget `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -37,13 +47,16 @@ type _L2VPN L2VPN // 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 NewL2VPN(id int32, url string, display string, name string, slug string) *L2VPN { +func NewL2VPN(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *L2VPN { this := L2VPN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +116,30 @@ func (o *L2VPN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *L2VPN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *L2VPN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *L2VPN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *L2VPN) GetDisplay() string { if o == nil { @@ -219,9 +256,9 @@ func (o *L2VPN) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPN) GetType() L2VPNType { +func (o *L2VPN) GetType() BriefL2VPNType { if o == nil || IsNil(o.Type) { - var ret L2VPNType + var ret BriefL2VPNType return ret } return *o.Type @@ -229,7 +266,7 @@ func (o *L2VPN) GetType() L2VPNType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPN) GetTypeOk() (*L2VPNType, bool) { +func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -245,11 +282,75 @@ func (o *L2VPN) HasType() bool { return false } -// SetType gets a reference to the given L2VPNType and assigns it to the Type field. -func (o *L2VPN) SetType(v L2VPNType) { +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *L2VPN) SetType(v BriefL2VPNType) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *L2VPN) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *L2VPN) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -282,6 +383,197 @@ func (o *L2VPN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPN) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *L2VPN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *L2VPN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPN) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPN) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *L2VPN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPN) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPN) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPN) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *L2VPN) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPN) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *L2VPN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o L2VPN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -294,6 +586,7 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() @@ -303,9 +596,29 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -321,9 +634,12 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -355,12 +671,21 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "identifier") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go index 9722c656c..3fb2a88a3 100644 --- a/model_l2_vpn_request.go +++ b/model_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,17 @@ var _ MappedNullable = &L2VPNRequest{} // L2VPNRequest Adds support for custom fields and tags. type L2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,9 +147,9 @@ func (o *L2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPNRequest) GetType() L2VPNTypeValue { +func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -151,7 +157,7 @@ func (o *L2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -167,11 +173,75 @@ func (o *L2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *L2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *L2VPNRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *L2VPNRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPNRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -204,6 +274,145 @@ func (o *L2VPNRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPNRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPNRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPNRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *L2VPNRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *L2VPNRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPNRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPNRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *L2VPNRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -222,9 +431,27 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -273,7 +500,13 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go index b70569c1f..a6be754eb 100644 --- a/model_l2_vpn_termination.go +++ b/model_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the L2VPNTermination type satisfies the MappedNullable interface at compile time @@ -20,10 +21,18 @@ var _ MappedNullable = &L2VPNTermination{} // L2VPNTermination Adds support for custom fields and tags. type L2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - L2vpn L2VPN `json:"l2vpn"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + AssignedObject interface{} `json:"assigned_object"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -33,12 +42,18 @@ type _L2VPNTermination L2VPNTermination // 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 NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN) *L2VPNTermination { +func NewL2VPNTermination(id int32, url string, displayUrl string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination { this := L2VPNTermination{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId + this.AssignedObject = assignedObject + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -98,6 +113,30 @@ func (o *L2VPNTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *L2VPNTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *L2VPNTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *L2VPNTermination) GetDisplay() string { if o == nil { @@ -123,9 +162,9 @@ func (o *L2VPNTermination) SetDisplay(v string) { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTermination) GetL2vpn() L2VPN { +func (o *L2VPNTermination) GetL2vpn() BriefL2VPN { if o == nil { - var ret L2VPN + var ret BriefL2VPN return ret } @@ -134,7 +173,7 @@ func (o *L2VPNTermination) GetL2vpn() L2VPN { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { +func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { if o == nil { return nil, false } @@ -142,10 +181,200 @@ func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { } // SetL2vpn sets field value -func (o *L2VPNTermination) SetL2vpn(v L2VPN) { +func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN) { o.L2vpn = v } +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTermination) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTermination) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTermination) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTermination) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + +// GetAssignedObject returns the AssignedObject field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *L2VPNTermination) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// SetAssignedObject sets field value +func (o *L2VPNTermination) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTermination) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNTermination) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *L2VPNTermination) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTermination) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNTermination) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNTermination) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPNTermination) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *L2VPNTermination) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPNTermination) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *L2VPNTermination) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o L2VPNTermination) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -158,8 +387,22 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -175,8 +418,14 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "l2vpn", + "assigned_object_type", + "assigned_object_id", + "assigned_object", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -208,8 +457,16 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go index 6b293da4e..9b5cbfaa2 100644 --- a/model_l2_vpn_termination_request.go +++ b/model_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,11 @@ var _ MappedNullable = &L2VPNTerminationRequest{} // L2VPNTerminationRequest Adds support for custom fields and tags. type L2VPNTerminationRequest struct { - L2vpn L2VPNRequest `json:"l2vpn"` + L2vpn BriefL2VPNRequest `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -30,9 +34,11 @@ type _L2VPNTerminationRequest L2VPNTerminationRequest // 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 NewL2VPNTerminationRequest(l2vpn L2VPNRequest) *L2VPNTerminationRequest { +func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest { this := L2VPNTerminationRequest{} this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId return &this } @@ -45,9 +51,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } @@ -56,7 +62,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil { return nil, false } @@ -64,10 +70,122 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { } // SetL2vpn sets field value -func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = v } +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTerminationRequest) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNTerminationRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNTerminationRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -79,6 +197,14 @@ func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -93,6 +219,8 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "l2vpn", + "assigned_object_type", + "assigned_object_id", } allProperties := make(map[string]interface{}) @@ -123,6 +251,10 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location.go b/model_location.go index 3da41e65f..0d54fda22 100644 --- a/model_location.go +++ b/model_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Location type satisfies the MappedNullable interface at compile time @@ -20,14 +21,26 @@ var _ MappedNullable = &Location{} // Location Extends PrimaryModelSerializer to include MPTT support. type Location struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - RackCount int32 `json:"rack_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSite `json:"site"` + Parent NullableNestedLocation `json:"parent,omitempty"` + Status *LocationStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + RackCount int32 `json:"rack_count"` + DeviceCount *int32 `json:"device_count,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,13 +50,17 @@ 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, display string, name string, slug string, rackCount int32, depth int32) *Location { +func NewLocation(id int32, url string, displayUrl string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, depth int32) *Location { this := Location{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Site = site + this.Created = created + this.LastUpdated = lastUpdated this.RackCount = rackCount this.Depth = depth return &this @@ -105,6 +122,30 @@ func (o *Location) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Location) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Location) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Location) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Location) GetDisplay() string { if o == nil { @@ -177,6 +218,180 @@ func (o *Location) SetSlug(v string) { o.Slug = v } +// GetSite returns the Site field value +func (o *Location) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Location) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Location) SetSite(v BriefSite) { + o.Site = v +} + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetParent() NestedLocation { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocation + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetParentOk() (*NestedLocation, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *Location) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocation and assigns it to the Parent field. +func (o *Location) SetParent(v NestedLocation) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *Location) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *Location) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Location) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Location) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Location) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Location) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Location) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Location) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Location) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Location) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Location) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Location) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Location) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +424,122 @@ func (o *Location) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Location) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Location) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Location) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Location) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Location) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Location) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Location) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Location) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Location) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Location) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetRackCount returns the RackCount field value func (o *Location) GetRackCount() int32 { if o == nil { @@ -233,6 +564,38 @@ func (o *Location) SetRackCount(v int32) { o.RackCount = v } +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Location) GetDeviceCount() int32 { + if o == nil || IsNil(o.DeviceCount) { + var ret int32 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetDeviceCountOk() (*int32, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Location) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int32 and assigns it to the DeviceCount field. +func (o *Location) SetDeviceCount(v int32) { + o.DeviceCount = &v +} + // GetDepth returns the Depth field value func (o *Location) GetDepth() int32 { if o == nil { @@ -269,13 +632,38 @@ func (o Location) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["rack_count"] = o.RackCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -292,9 +680,13 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "site", + "created", + "last_updated", "rack_count", "_depth", } @@ -328,11 +720,22 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "rack_count") + delete(additionalProperties, "device_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } diff --git a/model_location_request.go b/model_location_request.go index 5f282485a..bfe455506 100644 --- a/model_location_request.go +++ b/model_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &LocationRequest{} // LocationRequest Extends PrimaryModelSerializer to include MPTT support. type LocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSiteRequest `json:"site"` + Parent NullableNestedLocationRequest `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,10 +40,11 @@ type _LocationRequest LocationRequest // 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 NewLocationRequest(name string, slug string) *LocationRequest { +func NewLocationRequest(name string, slug string, site BriefSiteRequest) *LocationRequest { this := LocationRequest{} this.Name = name this.Slug = slug + this.Site = site return &this } @@ -95,6 +104,180 @@ func (o *LocationRequest) SetSlug(v string) { o.Slug = v } +// GetSite returns the Site field value +func (o *LocationRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *LocationRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetParent() NestedLocationRequest { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocationRequest + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *LocationRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocationRequest and assigns it to the Parent field. +func (o *LocationRequest) SetParent(v NestedLocationRequest) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *LocationRequest) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *LocationRequest) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LocationRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LocationRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *LocationRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *LocationRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *LocationRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *LocationRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *LocationRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *LocationRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *LocationRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *LocationRequest) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *LocationRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +310,70 @@ func (o *LocationRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LocationRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LocationRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *LocationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *LocationRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *LocationRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *LocationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o LocationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +386,28 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -157,6 +423,7 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", + "site", } allProperties := make(map[string]interface{}) @@ -188,7 +455,14 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location_status.go b/model_location_status.go new file mode 100644 index 000000000..294d6ecf3 --- /dev/null +++ b/model_location_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the LocationStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &LocationStatus{} + +// LocationStatus struct for LocationStatus +type LocationStatus struct { + Value *LocationStatusValue `json:"value,omitempty"` + Label *LocationStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _LocationStatus LocationStatus + +// NewLocationStatus instantiates a new LocationStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewLocationStatus() *LocationStatus { + this := LocationStatus{} + return &this +} + +// NewLocationStatusWithDefaults instantiates a new LocationStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewLocationStatusWithDefaults() *LocationStatus { + this := LocationStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *LocationStatus) GetValue() LocationStatusValue { + if o == nil || IsNil(o.Value) { + var ret LocationStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationStatus) GetValueOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *LocationStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given LocationStatusValue and assigns it to the Value field. +func (o *LocationStatus) SetValue(v LocationStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *LocationStatus) GetLabel() LocationStatusLabel { + if o == nil || IsNil(o.Label) { + var ret LocationStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationStatus) GetLabelOk() (*LocationStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *LocationStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given LocationStatusLabel and assigns it to the Label field. +func (o *LocationStatus) SetLabel(v LocationStatusLabel) { + o.Label = &v +} + +func (o LocationStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o LocationStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *LocationStatus) UnmarshalJSON(data []byte) (err error) { + varLocationStatus := _LocationStatus{} + + err = json.Unmarshal(data, &varLocationStatus) + + if err != nil { + return err + } + + *o = LocationStatus(varLocationStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableLocationStatus struct { + value *LocationStatus + isSet bool +} + +func (v NullableLocationStatus) Get() *LocationStatus { + return v.value +} + +func (v *NullableLocationStatus) Set(val *LocationStatus) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatus(val *LocationStatus) *NullableLocationStatus { + return &NullableLocationStatus{value: val, isSet: true} +} + +func (v NullableLocationStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_location_status_label.go b/model_location_status_label.go new file mode 100644 index 000000000..ef259a6c4 --- /dev/null +++ b/model_location_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// LocationStatusLabel the model 'LocationStatusLabel' +type LocationStatusLabel string + +// List of Location_status_label +const ( + LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned" + LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging" + LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active" + LOCATIONSTATUSLABEL_DECOMMISSIONING LocationStatusLabel = "Decommissioning" + LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired" +) + +// All allowed values of LocationStatusLabel enum +var AllowedLocationStatusLabelEnumValues = []LocationStatusLabel{ + "Planned", + "Staging", + "Active", + "Decommissioning", + "Retired", +} + +func (v *LocationStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LocationStatusLabel(value) + for _, existing := range AllowedLocationStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LocationStatusLabel", value) +} + +// NewLocationStatusLabelFromValue returns a pointer to a valid LocationStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLocationStatusLabelFromValue(v string) (*LocationStatusLabel, error) { + ev := LocationStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LocationStatusLabel: valid values are %v", v, AllowedLocationStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LocationStatusLabel) IsValid() bool { + for _, existing := range AllowedLocationStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Location_status_label value +func (v LocationStatusLabel) Ptr() *LocationStatusLabel { + return &v +} + +type NullableLocationStatusLabel struct { + value *LocationStatusLabel + isSet bool +} + +func (v NullableLocationStatusLabel) Get() *LocationStatusLabel { + return v.value +} + +func (v *NullableLocationStatusLabel) Set(val *LocationStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatusLabel(val *LocationStatusLabel) *NullableLocationStatusLabel { + return &NullableLocationStatusLabel{value: val, isSet: true} +} + +func (v NullableLocationStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_location_status_value.go b/model_location_status_value.go new file mode 100644 index 000000000..cf375bf35 --- /dev/null +++ b/model_location_status_value.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// LocationStatusValue * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +type LocationStatusValue string + +// List of Location_status_value +const ( + LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned" + LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging" + LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active" + LOCATIONSTATUSVALUE_DECOMMISSIONING LocationStatusValue = "decommissioning" + LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired" +) + +// All allowed values of LocationStatusValue enum +var AllowedLocationStatusValueEnumValues = []LocationStatusValue{ + "planned", + "staging", + "active", + "decommissioning", + "retired", +} + +func (v *LocationStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := LocationStatusValue(value) + for _, existing := range AllowedLocationStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid LocationStatusValue", value) +} + +// NewLocationStatusValueFromValue returns a pointer to a valid LocationStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewLocationStatusValueFromValue(v string) (*LocationStatusValue, error) { + ev := LocationStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for LocationStatusValue: valid values are %v", v, AllowedLocationStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v LocationStatusValue) IsValid() bool { + for _, existing := range AllowedLocationStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Location_status_value value +func (v LocationStatusValue) Ptr() *LocationStatusValue { + return &v +} + +type NullableLocationStatusValue struct { + value *LocationStatusValue + isSet bool +} + +func (v NullableLocationStatusValue) Get() *LocationStatusValue { + return v.value +} + +func (v *NullableLocationStatusValue) Set(val *LocationStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableLocationStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableLocationStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableLocationStatusValue(val *LocationStatusValue) *NullableLocationStatusValue { + return &NullableLocationStatusValue{value: val, isSet: true} +} + +func (v NullableLocationStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableLocationStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_manufacturer.go b/model_manufacturer.go index 5be331410..7e8307969 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Manufacturer type satisfies the MappedNullable interface at compile time @@ -20,13 +21,20 @@ var _ MappedNullable = &Manufacturer{} // Manufacturer Adds support for custom fields and tags. type Manufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` + PlatformCount int64 `json:"platform_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +44,18 @@ type _Manufacturer Manufacturer // 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 NewManufacturer(id int32, url string, display string, name string, slug string) *Manufacturer { +func NewManufacturer(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, platformCount int64) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.InventoryitemCount = inventoryitemCount + this.PlatformCount = platformCount return &this } @@ -102,6 +115,30 @@ func (o *Manufacturer) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Manufacturer) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Manufacturer) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Manufacturer) GetDisplay() string { if o == nil { @@ -206,6 +243,122 @@ func (o *Manufacturer) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Manufacturer) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Manufacturer) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Manufacturer) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Manufacturer) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Manufacturer) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Manufacturer) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Manufacturer) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Manufacturer) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Manufacturer) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Manufacturer) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Manufacturer) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. func (o *Manufacturer) GetDevicetypeCount() int64 { if o == nil || IsNil(o.DevicetypeCount) { @@ -238,6 +391,54 @@ func (o *Manufacturer) SetDevicetypeCount(v int64) { o.DevicetypeCount = &v } +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *Manufacturer) GetInventoryitemCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.InventoryitemCount +} + +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.InventoryitemCount, true +} + +// SetInventoryitemCount sets field value +func (o *Manufacturer) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v +} + +// GetPlatformCount returns the PlatformCount field value +func (o *Manufacturer) GetPlatformCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PlatformCount +} + +// GetPlatformCountOk returns a tuple with the PlatformCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetPlatformCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PlatformCount, true +} + +// SetPlatformCount sets field value +func (o *Manufacturer) SetPlatformCount(v int64) { + o.PlatformCount = v +} + func (o Manufacturer) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -250,15 +451,26 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DevicetypeCount) { toSerialize["devicetype_count"] = o.DevicetypeCount } + toSerialize["inventoryitem_count"] = o.InventoryitemCount + toSerialize["platform_count"] = o.PlatformCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -274,9 +486,14 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", + "inventoryitem_count", + "platform_count", } allProperties := make(map[string]interface{}) @@ -308,11 +525,18 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "devicetype_count") + delete(additionalProperties, "inventoryitem_count") + delete(additionalProperties, "platform_count") o.AdditionalProperties = additionalProperties } diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go index 35e495df8..259b40a91 100644 --- a/model_manufacturer_request.go +++ b/model_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,11 @@ var _ MappedNullable = &ManufacturerRequest{} // ManufacturerRequest Adds support for custom fields and tags. type ManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,6 +129,70 @@ func (o *ManufacturerRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ManufacturerRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManufacturerRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ManufacturerRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ManufacturerRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ManufacturerRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManufacturerRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ManufacturerRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ManufacturerRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -142,6 +208,12 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,6 +261,8 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module.go b/model_module.go index 7154265d7..c9af801ef 100644 --- a/model_module.go +++ b/model_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Module type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &Module{} // Module Adds support for custom fields and tags. type Module struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + ModuleType BriefModuleType `json:"module_type"` + Status *ModuleStatus `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this device + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,13 +47,17 @@ type _Module Module // 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 NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay) *Module { +func NewModule(id int32, url string, displayUrl string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime) *Module { this := Module{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +117,30 @@ func (o *Module) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Module) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Module) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Module) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Module) GetDisplay() string { if o == nil { @@ -125,9 +166,9 @@ func (o *Module) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Module) GetDevice() Device { +func (o *Module) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -136,7 +177,7 @@ func (o *Module) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Module) GetDeviceOk() (*Device, bool) { +func (o *Module) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -144,7 +185,7 @@ func (o *Module) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Module) SetDevice(v Device) { +func (o *Module) SetDevice(v BriefDevice) { o.Device = v } @@ -172,6 +213,317 @@ func (o *Module) SetModuleBay(v NestedModuleBay) { o.ModuleBay = v } +// GetModuleType returns the ModuleType field value +func (o *Module) GetModuleType() BriefModuleType { + if o == nil { + var ret BriefModuleType + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *Module) SetModuleType(v BriefModuleType) { + o.ModuleType = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Module) GetStatus() ModuleStatus { + if o == nil || IsNil(o.Status) { + var ret ModuleStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetStatusOk() (*ModuleStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Module) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. +func (o *Module) SetStatus(v ModuleStatus) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Module) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Module) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Module) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Module) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Module) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *Module) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *Module) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Module) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Module) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Module) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Module) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Module) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Module) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Module) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Module) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Module) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Module) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Module) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Module) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Module) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Module) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Module) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Module) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Module) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Module) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -184,9 +536,34 @@ func (o Module) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -202,9 +579,13 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "module_bay", + "module_type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -236,9 +617,20 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_bay.go b/model_module_bay.go index 3f883cc15..8049e37db 100644 --- a/model_module_bay.go +++ b/model_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,14 @@ var _ MappedNullable = &ModuleBay{} // ModuleBay Adds support for custom fields and tags. type ModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` - InstalledModule NullableModule `json:"installed_module,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModule `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -45,10 +47,11 @@ type _ModuleBay ModuleBay // 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 NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { +func NewModuleBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { this := ModuleBay{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -113,6 +116,30 @@ func (o *ModuleBay) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ModuleBay) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ModuleBay) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ModuleBay) GetDisplay() string { if o == nil { @@ -138,9 +165,9 @@ func (o *ModuleBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ModuleBay) GetDevice() Device { +func (o *ModuleBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -149,7 +176,7 @@ func (o *ModuleBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBay) GetDeviceOk() (*Device, bool) { +func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -157,10 +184,53 @@ func (o *ModuleBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ModuleBay) SetDevice(v Device) { +func (o *ModuleBay) SetDevice(v BriefDevice) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBay) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBay) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBay) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ModuleBay) SetModule(v BriefModule) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBay) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBay) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBay) GetName() string { if o == nil { @@ -186,9 +256,9 @@ func (o *ModuleBay) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBay) GetInstalledModule() Module { +func (o *ModuleBay) GetInstalledModule() BriefModule { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret Module + var ret BriefModule return ret } return *o.InstalledModule.Get() @@ -197,7 +267,7 @@ func (o *ModuleBay) GetInstalledModule() Module { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool) { +func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -213,8 +283,8 @@ func (o *ModuleBay) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModule and assigns it to the InstalledModule field. -func (o *ModuleBay) SetInstalledModule(v Module) { +// SetInstalledModule gets a reference to the given NullableBriefModule and assigns it to the InstalledModule field. +func (o *ModuleBay) SetInstalledModule(v BriefModule) { o.InstalledModule.Set(&v) } @@ -452,8 +522,12 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -490,6 +564,7 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -526,8 +601,10 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_request.go b/model_module_bay_request.go index 7fb1ba15c..0c97cde78 100644 --- a/model_module_bay_request.go +++ b/model_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ var _ MappedNullable = &ModuleBayRequest{} // ModuleBayRequest Adds support for custom fields and tags. type ModuleBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -39,7 +40,7 @@ type _ModuleBayRequest ModuleBayRequest // 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 NewModuleBayRequest(device DeviceRequest, name string) *ModuleBayRequest { +func NewModuleBayRequest(device BriefDeviceRequest, name string) *ModuleBayRequest { this := ModuleBayRequest{} this.Device = device this.Name = name @@ -55,9 +56,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest { } // GetDevice returns the Device field value -func (o *ModuleBayRequest) GetDevice() DeviceRequest { +func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -66,7 +67,7 @@ func (o *ModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -74,10 +75,53 @@ func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleBayRequest) SetDevice(v DeviceRequest) { +func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBayRequest) GetName() string { if o == nil { @@ -103,9 +147,9 @@ func (o *ModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -114,7 +158,7 @@ func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -130,8 +174,8 @@ func (o *ModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } @@ -316,6 +360,9 @@ func (o ModuleBayRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -380,6 +427,7 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_template.go b/model_module_bay_template.go index 114c363b6..77e427e5f 100644 --- a/model_module_bay_template.go +++ b/model_module_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,11 @@ var _ MappedNullable = &ModuleBayTemplate{} // ModuleBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -43,12 +44,11 @@ type _ModuleBayTemplate ModuleBayTemplate // 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 NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { +func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { this := ModuleBayTemplate{} this.Id = id this.Url = url this.Display = display - this.DeviceType = deviceType this.Name = name this.Created = created this.LastUpdated = lastUpdated @@ -135,28 +135,90 @@ func (o *ModuleBayTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplate) GetDeviceType() DeviceType { - if o == nil { - var ret DeviceType +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} - return o.DeviceType +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) } -// SetDeviceType sets field value -func (o *ModuleBayTemplate) SetDeviceType(v DeviceType) { - o.DeviceType = v +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -344,7 +406,12 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -373,7 +440,6 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "device_type", "name", "created", "last_updated", @@ -410,6 +476,7 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "url") delete(additionalProperties, "display") delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go index 6e407360e..95e2f850f 100644 --- a/model_module_bay_template_request.go +++ b/model_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,8 @@ var _ MappedNullable = &ModuleBayTemplateRequest{} // ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -37,9 +38,8 @@ type _ModuleBayTemplateRequest ModuleBayTemplateRequest // 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 NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string) *ModuleBayTemplateRequest { +func NewModuleBayTemplateRequest(name string) *ModuleBayTemplateRequest { this := ModuleBayTemplateRequest{} - this.DeviceType = deviceType this.Name = name return &this } @@ -52,28 +52,90 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} - return o.DeviceType +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() } -// SetDeviceType sets field value -func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = v +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -206,7 +268,12 @@ func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -230,7 +297,6 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "device_type", "name", } @@ -262,6 +328,7 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_request.go b/model_module_request.go index 0cdc3bf19..83adb0595 100644 --- a/model_module_request.go +++ b/model_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ModuleRequest{} // ModuleRequest Adds support for custom fields and tags. type ModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this device + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,10 +40,11 @@ type _ModuleRequest ModuleRequest // 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 NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest) *ModuleRequest { +func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest) *ModuleRequest { this := ModuleRequest{} this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType return &this } @@ -47,9 +57,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest { } // GetDevice returns the Device field value -func (o *ModuleRequest) GetDevice() DeviceRequest { +func (o *ModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -58,7 +68,7 @@ func (o *ModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -66,7 +76,7 @@ func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleRequest) SetDevice(v DeviceRequest) { +func (o *ModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -94,6 +104,265 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) { o.ModuleBay = v } +// GetModuleType returns the ModuleType field value +func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil { + var ret BriefModuleTypeRequest + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModuleRequest) GetStatus() ModuleStatusValue { + if o == nil || IsNil(o.Status) { + var ret ModuleStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModuleRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *ModuleRequest) SetStatus(v ModuleStatusValue) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *ModuleRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *ModuleRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *ModuleRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *ModuleRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *ModuleRequest) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *ModuleRequest) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *ModuleRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModuleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModuleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModuleRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ModuleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -106,6 +375,28 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -121,6 +412,7 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "device", "module_bay", + "module_type", } allProperties := make(map[string]interface{}) @@ -152,6 +444,14 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_status.go b/model_module_status.go new file mode 100644 index 000000000..c4c5444ab --- /dev/null +++ b/model_module_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ModuleStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModuleStatus{} + +// ModuleStatus struct for ModuleStatus +type ModuleStatus struct { + Value *ModuleStatusValue `json:"value,omitempty"` + Label *ModuleStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModuleStatus ModuleStatus + +// NewModuleStatus instantiates a new ModuleStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModuleStatus() *ModuleStatus { + this := ModuleStatus{} + return &this +} + +// NewModuleStatusWithDefaults instantiates a new ModuleStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModuleStatusWithDefaults() *ModuleStatus { + this := ModuleStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModuleStatus) GetValue() ModuleStatusValue { + if o == nil || IsNil(o.Value) { + var ret ModuleStatusValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleStatus) GetValueOk() (*ModuleStatusValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModuleStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ModuleStatusValue and assigns it to the Value field. +func (o *ModuleStatus) SetValue(v ModuleStatusValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ModuleStatus) GetLabel() ModuleStatusLabel { + if o == nil || IsNil(o.Label) { + var ret ModuleStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleStatus) GetLabelOk() (*ModuleStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ModuleStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ModuleStatusLabel and assigns it to the Label field. +func (o *ModuleStatus) SetLabel(v ModuleStatusLabel) { + o.Label = &v +} + +func (o ModuleStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModuleStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModuleStatus) UnmarshalJSON(data []byte) (err error) { + varModuleStatus := _ModuleStatus{} + + err = json.Unmarshal(data, &varModuleStatus) + + if err != nil { + return err + } + + *o = ModuleStatus(varModuleStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModuleStatus struct { + value *ModuleStatus + isSet bool +} + +func (v NullableModuleStatus) Get() *ModuleStatus { + return v.value +} + +func (v *NullableModuleStatus) Set(val *ModuleStatus) { + v.value = val + v.isSet = true +} + +func (v NullableModuleStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleStatus(val *ModuleStatus) *NullableModuleStatus { + return &NullableModuleStatus{value: val, isSet: true} +} + +func (v NullableModuleStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_module_status_label.go b/model_module_status_label.go new file mode 100644 index 000000000..763a2d414 --- /dev/null +++ b/model_module_status_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleStatusLabel the model 'ModuleStatusLabel' +type ModuleStatusLabel string + +// List of Module_status_label +const ( + MODULESTATUSLABEL_OFFLINE ModuleStatusLabel = "Offline" + MODULESTATUSLABEL_ACTIVE ModuleStatusLabel = "Active" + MODULESTATUSLABEL_PLANNED ModuleStatusLabel = "Planned" + MODULESTATUSLABEL_STAGED ModuleStatusLabel = "Staged" + MODULESTATUSLABEL_FAILED ModuleStatusLabel = "Failed" + MODULESTATUSLABEL_DECOMMISSIONING ModuleStatusLabel = "Decommissioning" +) + +// All allowed values of ModuleStatusLabel enum +var AllowedModuleStatusLabelEnumValues = []ModuleStatusLabel{ + "Offline", + "Active", + "Planned", + "Staged", + "Failed", + "Decommissioning", +} + +func (v *ModuleStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleStatusLabel(value) + for _, existing := range AllowedModuleStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleStatusLabel", value) +} + +// NewModuleStatusLabelFromValue returns a pointer to a valid ModuleStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleStatusLabelFromValue(v string) (*ModuleStatusLabel, error) { + ev := ModuleStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleStatusLabel: valid values are %v", v, AllowedModuleStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleStatusLabel) IsValid() bool { + for _, existing := range AllowedModuleStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Module_status_label value +func (v ModuleStatusLabel) Ptr() *ModuleStatusLabel { + return &v +} + +type NullableModuleStatusLabel struct { + value *ModuleStatusLabel + isSet bool +} + +func (v NullableModuleStatusLabel) Get() *ModuleStatusLabel { + return v.value +} + +func (v *NullableModuleStatusLabel) Set(val *ModuleStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableModuleStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleStatusLabel(val *ModuleStatusLabel) *NullableModuleStatusLabel { + return &NullableModuleStatusLabel{value: val, isSet: true} +} + +func (v NullableModuleStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_module_status_value.go b/model_module_status_value.go new file mode 100644 index 000000000..67f6871c2 --- /dev/null +++ b/model_module_status_value.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleStatusValue * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +type ModuleStatusValue string + +// List of Module_status_value +const ( + MODULESTATUSVALUE_OFFLINE ModuleStatusValue = "offline" + MODULESTATUSVALUE_ACTIVE ModuleStatusValue = "active" + MODULESTATUSVALUE_PLANNED ModuleStatusValue = "planned" + MODULESTATUSVALUE_STAGED ModuleStatusValue = "staged" + MODULESTATUSVALUE_FAILED ModuleStatusValue = "failed" + MODULESTATUSVALUE_DECOMMISSIONING ModuleStatusValue = "decommissioning" +) + +// All allowed values of ModuleStatusValue enum +var AllowedModuleStatusValueEnumValues = []ModuleStatusValue{ + "offline", + "active", + "planned", + "staged", + "failed", + "decommissioning", +} + +func (v *ModuleStatusValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleStatusValue(value) + for _, existing := range AllowedModuleStatusValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleStatusValue", value) +} + +// NewModuleStatusValueFromValue returns a pointer to a valid ModuleStatusValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleStatusValueFromValue(v string) (*ModuleStatusValue, error) { + ev := ModuleStatusValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleStatusValue: valid values are %v", v, AllowedModuleStatusValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleStatusValue) IsValid() bool { + for _, existing := range AllowedModuleStatusValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Module_status_value value +func (v ModuleStatusValue) Ptr() *ModuleStatusValue { + return &v +} + +type NullableModuleStatusValue struct { + value *ModuleStatusValue + isSet bool +} + +func (v NullableModuleStatusValue) Get() *ModuleStatusValue { + return v.value +} + +func (v *NullableModuleStatusValue) Set(val *ModuleStatusValue) { + v.value = val + v.isSet = true +} + +func (v NullableModuleStatusValue) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleStatusValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleStatusValue(val *ModuleStatusValue) *NullableModuleStatusValue { + return &NullableModuleStatusValue{value: val, isSet: true} +} + +func (v NullableModuleStatusValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleStatusValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_module_type.go b/model_module_type.go index 4b14e7719..b4b1c1274 100644 --- a/model_module_type.go +++ b/model_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ModuleType type satisfies the MappedNullable interface at compile time @@ -20,12 +21,23 @@ var _ MappedNullable = &ModuleType{} // ModuleType Adds support for custom fields and tags. type ModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +47,16 @@ type _ModuleType ModuleType // 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 NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string) *ModuleType { +func NewModuleType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime) *ModuleType { this := ModuleType{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +116,30 @@ func (o *ModuleType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ModuleType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ModuleType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ModuleType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ModuleType) GetDisplay() string { if o == nil { @@ -126,9 +165,9 @@ func (o *ModuleType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleType) GetManufacturer() Manufacturer { +func (o *ModuleType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -137,7 +176,7 @@ func (o *ModuleType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -145,7 +184,7 @@ func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *ModuleType) SetManufacturer(v Manufacturer) { +func (o *ModuleType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } @@ -173,6 +212,167 @@ func (o *ModuleType) SetModel(v string) { o.Model = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetAirflow() ModuleTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeAirflow and assigns it to the Airflow field. +func (o *ModuleType) SetAirflow(v ModuleTypeAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *ModuleType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *ModuleType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +405,154 @@ func (o *ModuleType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ModuleType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModuleType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ModuleType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModuleType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ModuleType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ModuleType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +565,36 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +610,12 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "manufacturer", "model", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +647,20 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_airflow.go b/model_module_type_airflow.go new file mode 100644 index 000000000..5b34c3831 --- /dev/null +++ b/model_module_type_airflow.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the ModuleTypeAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ModuleTypeAirflow{} + +// ModuleTypeAirflow struct for ModuleTypeAirflow +type ModuleTypeAirflow struct { + Value *ModuleTypeAirflowValue `json:"value,omitempty"` + Label *ModuleTypeAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ModuleTypeAirflow ModuleTypeAirflow + +// NewModuleTypeAirflow instantiates a new ModuleTypeAirflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewModuleTypeAirflow() *ModuleTypeAirflow { + this := ModuleTypeAirflow{} + return &this +} + +// NewModuleTypeAirflowWithDefaults instantiates a new ModuleTypeAirflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewModuleTypeAirflowWithDefaults() *ModuleTypeAirflow { + this := ModuleTypeAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *ModuleTypeAirflow) GetValue() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Value) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeAirflow) GetValueOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *ModuleTypeAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given ModuleTypeAirflowValue and assigns it to the Value field. +func (o *ModuleTypeAirflow) SetValue(v ModuleTypeAirflowValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *ModuleTypeAirflow) GetLabel() ModuleTypeAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret ModuleTypeAirflowLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeAirflow) GetLabelOk() (*ModuleTypeAirflowLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *ModuleTypeAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given ModuleTypeAirflowLabel and assigns it to the Label field. +func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel) { + o.Label = &v +} + +func (o ModuleTypeAirflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ModuleTypeAirflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ModuleTypeAirflow) UnmarshalJSON(data []byte) (err error) { + varModuleTypeAirflow := _ModuleTypeAirflow{} + + err = json.Unmarshal(data, &varModuleTypeAirflow) + + if err != nil { + return err + } + + *o = ModuleTypeAirflow(varModuleTypeAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableModuleTypeAirflow struct { + value *ModuleTypeAirflow + isSet bool +} + +func (v NullableModuleTypeAirflow) Get() *ModuleTypeAirflow { + return v.value +} + +func (v *NullableModuleTypeAirflow) Set(val *ModuleTypeAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflow(val *ModuleTypeAirflow) *NullableModuleTypeAirflow { + return &NullableModuleTypeAirflow{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_module_type_airflow_label.go b/model_module_type_airflow_label.go new file mode 100644 index 000000000..2b73517e5 --- /dev/null +++ b/model_module_type_airflow_label.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeAirflowLabel the model 'ModuleTypeAirflowLabel' +type ModuleTypeAirflowLabel string + +// List of ModuleType_airflow_label +const ( + MODULETYPEAIRFLOWLABEL_FRONT_TO_REAR ModuleTypeAirflowLabel = "Front to rear" + MODULETYPEAIRFLOWLABEL_REAR_TO_FRONT ModuleTypeAirflowLabel = "Rear to front" + MODULETYPEAIRFLOWLABEL_LEFT_TO_RIGHT ModuleTypeAirflowLabel = "Left to right" + MODULETYPEAIRFLOWLABEL_RIGHT_TO_LEFT ModuleTypeAirflowLabel = "Right to left" + MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear" + MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive" +) + +// All allowed values of ModuleTypeAirflowLabel enum +var AllowedModuleTypeAirflowLabelEnumValues = []ModuleTypeAirflowLabel{ + "Front to rear", + "Rear to front", + "Left to right", + "Right to left", + "Side to rear", + "Passive", +} + +func (v *ModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeAirflowLabel(value) + for _, existing := range AllowedModuleTypeAirflowLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeAirflowLabel", value) +} + +// NewModuleTypeAirflowLabelFromValue returns a pointer to a valid ModuleTypeAirflowLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeAirflowLabelFromValue(v string) (*ModuleTypeAirflowLabel, error) { + ev := ModuleTypeAirflowLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeAirflowLabel: valid values are %v", v, AllowedModuleTypeAirflowLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeAirflowLabel) IsValid() bool { + for _, existing := range AllowedModuleTypeAirflowLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleType_airflow_label value +func (v ModuleTypeAirflowLabel) Ptr() *ModuleTypeAirflowLabel { + return &v +} + +type NullableModuleTypeAirflowLabel struct { + value *ModuleTypeAirflowLabel + isSet bool +} + +func (v NullableModuleTypeAirflowLabel) Get() *ModuleTypeAirflowLabel { + return v.value +} + +func (v *NullableModuleTypeAirflowLabel) Set(val *ModuleTypeAirflowLabel) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflowLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflowLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflowLabel(val *ModuleTypeAirflowLabel) *NullableModuleTypeAirflowLabel { + return &NullableModuleTypeAirflowLabel{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflowLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_module_type_airflow_value.go b/model_module_type_airflow_value.go new file mode 100644 index 000000000..dabf7c39e --- /dev/null +++ b/model_module_type_airflow_value.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeAirflowValue * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +type ModuleTypeAirflowValue string + +// List of ModuleType_airflow_value +const ( + MODULETYPEAIRFLOWVALUE_FRONT_TO_REAR ModuleTypeAirflowValue = "front-to-rear" + MODULETYPEAIRFLOWVALUE_REAR_TO_FRONT ModuleTypeAirflowValue = "rear-to-front" + MODULETYPEAIRFLOWVALUE_LEFT_TO_RIGHT ModuleTypeAirflowValue = "left-to-right" + MODULETYPEAIRFLOWVALUE_RIGHT_TO_LEFT ModuleTypeAirflowValue = "right-to-left" + MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear" + MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive" + MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = "" +) + +// All allowed values of ModuleTypeAirflowValue enum +var AllowedModuleTypeAirflowValueEnumValues = []ModuleTypeAirflowValue{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "", +} + +func (v *ModuleTypeAirflowValue) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeAirflowValue(value) + for _, existing := range AllowedModuleTypeAirflowValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeAirflowValue", value) +} + +// NewModuleTypeAirflowValueFromValue returns a pointer to a valid ModuleTypeAirflowValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeAirflowValueFromValue(v string) (*ModuleTypeAirflowValue, error) { + ev := ModuleTypeAirflowValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeAirflowValue: valid values are %v", v, AllowedModuleTypeAirflowValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeAirflowValue) IsValid() bool { + for _, existing := range AllowedModuleTypeAirflowValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleType_airflow_value value +func (v ModuleTypeAirflowValue) Ptr() *ModuleTypeAirflowValue { + return &v +} + +type NullableModuleTypeAirflowValue struct { + value *ModuleTypeAirflowValue + isSet bool +} + +func (v NullableModuleTypeAirflowValue) Get() *ModuleTypeAirflowValue { + return v.value +} + +func (v *NullableModuleTypeAirflowValue) Set(val *ModuleTypeAirflowValue) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeAirflowValue) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeAirflowValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeAirflowValue(val *ModuleTypeAirflowValue) *NullableModuleTypeAirflowValue { + return &NullableModuleTypeAirflowValue{value: val, isSet: true} +} + +func (v NullableModuleTypeAirflowValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeAirflowValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_module_type_request.go b/model_module_type_request.go index e247e6402..689035e21 100644 --- a/model_module_type_request.go +++ b/model_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &ModuleTypeRequest{} // ModuleTypeRequest Adds support for custom fields and tags. type ModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +40,7 @@ type _ModuleTypeRequest ModuleTypeRequest // 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 NewModuleTypeRequest(manufacturer ManufacturerRequest, model string) *ModuleTypeRequest { +func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *ModuleTypeRequest { this := ModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -48,9 +56,9 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -59,7 +67,7 @@ func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -67,7 +75,7 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } @@ -95,6 +103,167 @@ func (o *ModuleTypeRequest) SetModel(v string) { o.Model = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. +func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *ModuleTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *ModuleTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +296,102 @@ func (o *ModuleTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +404,30 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +474,14 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_request_airflow.go b/model_module_type_request_airflow.go new file mode 100644 index 000000000..c84edb978 --- /dev/null +++ b/model_module_type_request_airflow.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ModuleTypeRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +type ModuleTypeRequestAirflow string + +// List of ModuleTypeRequest_airflow +const ( + MODULETYPEREQUESTAIRFLOW_FRONT_TO_REAR ModuleTypeRequestAirflow = "front-to-rear" + MODULETYPEREQUESTAIRFLOW_REAR_TO_FRONT ModuleTypeRequestAirflow = "rear-to-front" + MODULETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT ModuleTypeRequestAirflow = "left-to-right" + MODULETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT ModuleTypeRequestAirflow = "right-to-left" + MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear" + MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive" + MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = "" +) + +// All allowed values of ModuleTypeRequestAirflow enum +var AllowedModuleTypeRequestAirflowEnumValues = []ModuleTypeRequestAirflow{ + "front-to-rear", + "rear-to-front", + "left-to-right", + "right-to-left", + "side-to-rear", + "passive", + "", +} + +func (v *ModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ModuleTypeRequestAirflow(value) + for _, existing := range AllowedModuleTypeRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ModuleTypeRequestAirflow", value) +} + +// NewModuleTypeRequestAirflowFromValue returns a pointer to a valid ModuleTypeRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewModuleTypeRequestAirflowFromValue(v string) (*ModuleTypeRequestAirflow, error) { + ev := ModuleTypeRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ModuleTypeRequestAirflow: valid values are %v", v, AllowedModuleTypeRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ModuleTypeRequestAirflow) IsValid() bool { + for _, existing := range AllowedModuleTypeRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ModuleTypeRequest_airflow value +func (v ModuleTypeRequestAirflow) Ptr() *ModuleTypeRequestAirflow { + return &v +} + +type NullableModuleTypeRequestAirflow struct { + value *ModuleTypeRequestAirflow + isSet bool +} + +func (v NullableModuleTypeRequestAirflow) Get() *ModuleTypeRequestAirflow { + return v.value +} + +func (v *NullableModuleTypeRequestAirflow) Set(val *ModuleTypeRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableModuleTypeRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableModuleTypeRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableModuleTypeRequestAirflow(val *ModuleTypeRequestAirflow) *NullableModuleTypeRequestAirflow { + return &NullableModuleTypeRequestAirflow{value: val, isSet: true} +} + +func (v NullableModuleTypeRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go index 88eb0f283..5a6924671 100644 --- a/model_nested_contact_group.go +++ b/model_nested_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedContactGroup{} type NestedContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ 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, display string, name string, slug string, depth int32) *NestedContactGroup { +func NewNestedContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedContactGroup { this := NestedContactGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedContactGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedContactGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedContactGroup) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go index f275f723d..727aba59f 100644 --- a/model_nested_contact_group_request.go +++ b/model_nested_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_device.go b/model_nested_device.go index b37d25f5e..b0e254185 100644 --- a/model_nested_device.go +++ b/model_nested_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedDevice{} type NestedDevice struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedDevice NestedDevice // 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 NewNestedDevice(id int32, url string, display string) *NestedDevice { +func NewNestedDevice(id int32, url string, displayUrl string, display string) *NestedDevice { this := NestedDevice{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display return &this } @@ -97,6 +99,30 @@ func (o *NestedDevice) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedDevice) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedDevice) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedDevice) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedDevice) GetDisplay() string { if o == nil { @@ -176,6 +202,7 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -195,6 +222,7 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", } @@ -227,6 +255,7 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_device_request.go b/model_nested_device_request.go index 3d4692d86..648e65cef 100644 --- a/model_nested_device_request.go +++ b/model_nested_device_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_group.go b/model_nested_group.go index 434d1679e..016fa9b41 100644 --- a/model_nested_group.go +++ b/model_nested_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedGroup{} type NestedGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedGroup NestedGroup // 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 NewNestedGroup(id int32, url string, display string, name string) *NestedGroup { +func NewNestedGroup(id int32, url string, displayUrl string, display string, name string) *NestedGroup { this := NestedGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -98,6 +100,30 @@ func (o *NestedGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedGroup) GetDisplay() string { if o == nil { @@ -158,6 +184,7 @@ func (o NestedGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -175,6 +202,7 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -208,6 +236,7 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_interface.go b/model_nested_interface.go index fd6230adf..23b32113a 100644 --- a/model_nested_interface.go +++ b/model_nested_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedInterface{} type NestedInterface struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Device NestedDevice `json:"device"` Name string `json:"name"` @@ -36,10 +37,11 @@ type _NestedInterface NestedInterface // 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 NewNestedInterface(id int32, url string, display string, device NestedDevice, name string, occupied bool) *NestedInterface { +func NewNestedInterface(id int32, url string, displayUrl string, display string, device NestedDevice, name string, occupied bool) *NestedInterface { this := NestedInterface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -103,6 +105,30 @@ func (o *NestedInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedInterface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedInterface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedInterface) GetDisplay() string { if o == nil { @@ -254,6 +280,7 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -276,6 +303,7 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -311,6 +339,7 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go index ddb108ba7..530a6c2da 100644 --- a/model_nested_interface_request.go +++ b/model_nested_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go index af9322a66..6b9017737 100644 --- a/model_nested_interface_template.go +++ b/model_nested_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go index db741a1b6..88221e71e 100644 --- a/model_nested_interface_template_request.go +++ b/model_nested_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go new file mode 100644 index 000000000..d45e27d03 --- /dev/null +++ b/model_nested_ip_address.go @@ -0,0 +1,313 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedIPAddress type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedIPAddress{} + +// NestedIPAddress Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedIPAddress struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Family int32 `json:"family"` + Address string `json:"address"` + AdditionalProperties map[string]interface{} +} + +type _NestedIPAddress NestedIPAddress + +// NewNestedIPAddress instantiates a new NestedIPAddress object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedIPAddress(id int32, url string, displayUrl string, display string, family int32, address string) *NestedIPAddress { + this := NestedIPAddress{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Family = family + this.Address = address + return &this +} + +// NewNestedIPAddressWithDefaults instantiates a new NestedIPAddress object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedIPAddressWithDefaults() *NestedIPAddress { + this := NestedIPAddress{} + return &this +} + +// GetId returns the Id field value +func (o *NestedIPAddress) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedIPAddress) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedIPAddress) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedIPAddress) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedIPAddress) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedIPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedIPAddress) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedIPAddress) SetDisplay(v string) { + o.Display = v +} + +// GetFamily returns the Family field value +func (o *NestedIPAddress) GetFamily() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Family +} + +// GetFamilyOk returns a tuple with the Family field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetFamilyOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Family, true +} + +// SetFamily sets field value +func (o *NestedIPAddress) SetFamily(v int32) { + o.Family = v +} + +// GetAddress returns the Address field value +func (o *NestedIPAddress) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddress) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NestedIPAddress) SetAddress(v string) { + o.Address = v +} + +func (o NestedIPAddress) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedIPAddress) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["family"] = o.Family + toSerialize["address"] = o.Address + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedIPAddress) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "family", + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedIPAddress := _NestedIPAddress{} + + err = json.Unmarshal(data, &varNestedIPAddress) + + if err != nil { + return err + } + + *o = NestedIPAddress(varNestedIPAddress) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "family") + delete(additionalProperties, "address") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedIPAddress struct { + value *NestedIPAddress + isSet bool +} + +func (v NullableNestedIPAddress) Get() *NestedIPAddress { + return v.value +} + +func (v *NullableNestedIPAddress) Set(val *NestedIPAddress) { + v.value = val + v.isSet = true +} + +func (v NullableNestedIPAddress) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedIPAddress) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedIPAddress(val *NestedIPAddress) *NullableNestedIPAddress { + return &NullableNestedIPAddress{value: val, isSet: true} +} + +func (v NullableNestedIPAddress) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedIPAddress) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go new file mode 100644 index 000000000..7322f6d4c --- /dev/null +++ b/model_nested_ip_address_request.go @@ -0,0 +1,168 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedIPAddressRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedIPAddressRequest{} + +// NestedIPAddressRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedIPAddressRequest struct { + Address string `json:"address"` + AdditionalProperties map[string]interface{} +} + +type _NestedIPAddressRequest NestedIPAddressRequest + +// NewNestedIPAddressRequest instantiates a new NestedIPAddressRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedIPAddressRequest(address string) *NestedIPAddressRequest { + this := NestedIPAddressRequest{} + this.Address = address + return &this +} + +// NewNestedIPAddressRequestWithDefaults instantiates a new NestedIPAddressRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedIPAddressRequestWithDefaults() *NestedIPAddressRequest { + this := NestedIPAddressRequest{} + return &this +} + +// GetAddress returns the Address field value +func (o *NestedIPAddressRequest) GetAddress() string { + if o == nil { + var ret string + return ret + } + + return o.Address +} + +// GetAddressOk returns a tuple with the Address field value +// and a boolean to check if the value has been set. +func (o *NestedIPAddressRequest) GetAddressOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Address, true +} + +// SetAddress sets field value +func (o *NestedIPAddressRequest) SetAddress(v string) { + o.Address = v +} + +func (o NestedIPAddressRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedIPAddressRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["address"] = o.Address + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedIPAddressRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "address", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedIPAddressRequest := _NestedIPAddressRequest{} + + err = json.Unmarshal(data, &varNestedIPAddressRequest) + + if err != nil { + return err + } + + *o = NestedIPAddressRequest(varNestedIPAddressRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "address") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedIPAddressRequest struct { + value *NestedIPAddressRequest + isSet bool +} + +func (v NullableNestedIPAddressRequest) Get() *NestedIPAddressRequest { + return v.value +} + +func (v *NullableNestedIPAddressRequest) Set(val *NestedIPAddressRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedIPAddressRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedIPAddressRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedIPAddressRequest(val *NestedIPAddressRequest) *NullableNestedIPAddressRequest { + return &NullableNestedIPAddressRequest{value: val, isSet: true} +} + +func (v NullableNestedIPAddressRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedIPAddressRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_location.go b/model_nested_location.go new file mode 100644 index 000000000..f30d022da --- /dev/null +++ b/model_nested_location.go @@ -0,0 +1,342 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedLocation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedLocation{} + +// NestedLocation Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedLocation struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _NestedLocation NestedLocation + +// NewNestedLocation instantiates a new NestedLocation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedLocation(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedLocation { + this := NestedLocation{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewNestedLocationWithDefaults instantiates a new NestedLocation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedLocationWithDefaults() *NestedLocation { + this := NestedLocation{} + return &this +} + +// GetId returns the Id field value +func (o *NestedLocation) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedLocation) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedLocation) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedLocation) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedLocation) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedLocation) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedLocation) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedLocation) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *NestedLocation) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedLocation) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *NestedLocation) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedLocation) SetSlug(v string) { + o.Slug = v +} + +// GetDepth returns the Depth field value +func (o *NestedLocation) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *NestedLocation) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *NestedLocation) SetDepth(v int32) { + o.Depth = v +} + +func (o NestedLocation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedLocation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "name", + "slug", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedLocation := _NestedLocation{} + + err = json.Unmarshal(data, &varNestedLocation) + + if err != nil { + return err + } + + *o = NestedLocation(varNestedLocation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedLocation struct { + value *NestedLocation + isSet bool +} + +func (v NullableNestedLocation) Get() *NestedLocation { + return v.value +} + +func (v *NullableNestedLocation) Set(val *NestedLocation) { + v.value = val + v.isSet = true +} + +func (v NullableNestedLocation) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedLocation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedLocation(val *NestedLocation) *NullableNestedLocation { + return &NullableNestedLocation{value: val, isSet: true} +} + +func (v NullableNestedLocation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedLocation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_location_request.go b/model_nested_location_request.go new file mode 100644 index 000000000..4560215b7 --- /dev/null +++ b/model_nested_location_request.go @@ -0,0 +1,197 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedLocationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedLocationRequest{} + +// NestedLocationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedLocationRequest struct { + Name string `json:"name"` + Slug string `json:"slug"` + AdditionalProperties map[string]interface{} +} + +type _NestedLocationRequest NestedLocationRequest + +// NewNestedLocationRequest instantiates a new NestedLocationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedLocationRequest(name string, slug string) *NestedLocationRequest { + this := NestedLocationRequest{} + this.Name = name + this.Slug = slug + return &this +} + +// NewNestedLocationRequestWithDefaults instantiates a new NestedLocationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedLocationRequestWithDefaults() *NestedLocationRequest { + this := NestedLocationRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NestedLocationRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedLocationRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedLocationRequest) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *NestedLocationRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *NestedLocationRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedLocationRequest) SetSlug(v string) { + o.Slug = v +} + +func (o NestedLocationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedLocationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedLocationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedLocationRequest := _NestedLocationRequest{} + + err = json.Unmarshal(data, &varNestedLocationRequest) + + if err != nil { + return err + } + + *o = NestedLocationRequest(varNestedLocationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedLocationRequest struct { + value *NestedLocationRequest + isSet bool +} + +func (v NullableNestedLocationRequest) Get() *NestedLocationRequest { + return v.value +} + +func (v *NullableNestedLocationRequest) Set(val *NestedLocationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNestedLocationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedLocationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedLocationRequest(val *NestedLocationRequest) *NullableNestedLocationRequest { + return &NullableNestedLocationRequest{value: val, isSet: true} +} + +func (v NullableNestedLocationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedLocationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go index c217493c7..b149afac9 100644 --- a/model_nested_module_bay.go +++ b/model_nested_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &NestedModuleBay{} // NestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -34,10 +34,11 @@ type _NestedModuleBay NestedModuleBay // 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 NewNestedModuleBay(id int32, url string, display string, name string) *NestedModuleBay { +func NewNestedModuleBay(id int32, url string, displayUrl string, display string, name string) *NestedModuleBay { this := NestedModuleBay{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -99,71 +100,52 @@ func (o *NestedModuleBay) SetUrl(v string) { o.Url = v } -// GetDisplay returns the Display field value -func (o *NestedModuleBay) GetDisplay() string { +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedModuleBay) GetDisplayUrl() string { if o == nil { var ret string return ret } - return o.Display + return o.DisplayUrl } -// GetDisplayOk returns a tuple with the Display field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value // and a boolean to check if the value has been set. -func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { +func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool) { if o == nil { return nil, false } - return &o.Display, true + return &o.DisplayUrl, true } -// SetDisplay sets field value -func (o *NestedModuleBay) SetDisplay(v string) { - o.Display = v +// SetDisplayUrl sets field value +func (o *NestedModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = v } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModule +// GetDisplay returns the Display field value +func (o *NestedModuleBay) GetDisplay() string { + if o == nil { + var ret string return ret } - return *o.InstalledModule.Get() + + return o.Display } -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise +// GetDisplayOk returns a tuple with the Display field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool) { +func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBay) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModule and assigns it to the InstalledModule field. -func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBay) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) + return &o.Display, true } -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBay) UnsetInstalledModule() { - o.InstalledModule.Unset() +// SetDisplay sets field value +func (o *NestedModuleBay) SetDisplay(v string) { + o.Display = v } // GetName returns the Name field value @@ -202,10 +184,8 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() - } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -222,6 +202,7 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -255,8 +236,8 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go index cda6e8c0c..cc0d07f53 100644 --- a/model_nested_module_bay_request.go +++ b/model_nested_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,7 @@ var _ MappedNullable = &NestedModuleBayRequest{} // NestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBayRequest struct { - InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -45,49 +44,6 @@ func NewNestedModuleBayRequestWithDefaults() *NestedModuleBayRequest { return &this } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModuleRequest - return ret - } - return *o.InstalledModule.Get() -} - -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBayRequest) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModuleRequest and assigns it to the InstalledModule field. -func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBayRequest) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) -} - -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBayRequest) UnsetInstalledModule() { - o.InstalledModule.Unset() -} - // GetName returns the Name field value func (o *NestedModuleBayRequest) GetName() string { if o == nil { @@ -122,9 +78,6 @@ func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() - } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -169,7 +122,6 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go new file mode 100644 index 000000000..01fb64499 --- /dev/null +++ b/model_nested_provider_account.go @@ -0,0 +1,321 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedProviderAccount type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedProviderAccount{} + +// NestedProviderAccount Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedProviderAccount struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + AdditionalProperties map[string]interface{} +} + +type _NestedProviderAccount NestedProviderAccount + +// NewNestedProviderAccount instantiates a new NestedProviderAccount object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedProviderAccount(id int32, url string, displayUrl string, display string, account string) *NestedProviderAccount { + this := NestedProviderAccount{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Account = account + return &this +} + +// NewNestedProviderAccountWithDefaults instantiates a new NestedProviderAccount object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedProviderAccountWithDefaults() *NestedProviderAccount { + this := NestedProviderAccount{} + return &this +} + +// GetId returns the Id field value +func (o *NestedProviderAccount) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedProviderAccount) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedProviderAccount) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedProviderAccount) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedProviderAccount) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedProviderAccount) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedProviderAccount) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *NestedProviderAccount) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *NestedProviderAccount) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *NestedProviderAccount) SetName(v string) { + o.Name = &v +} + +// GetAccount returns the Account field value +func (o *NestedProviderAccount) GetAccount() string { + if o == nil { + var ret string + return ret + } + + return o.Account +} + +// GetAccountOk returns a tuple with the Account field value +// and a boolean to check if the value has been set. +func (o *NestedProviderAccount) GetAccountOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Account, true +} + +// SetAccount sets field value +func (o *NestedProviderAccount) SetAccount(v string) { + o.Account = v +} + +func (o NestedProviderAccount) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + toSerialize["account"] = o.Account + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedProviderAccount) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "account", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedProviderAccount := _NestedProviderAccount{} + + err = json.Unmarshal(data, &varNestedProviderAccount) + + if err != nil { + return err + } + + *o = NestedProviderAccount(varNestedProviderAccount) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "account") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedProviderAccount struct { + value *NestedProviderAccount + isSet bool +} + +func (v NullableNestedProviderAccount) Get() *NestedProviderAccount { + return v.value +} + +func (v *NullableNestedProviderAccount) Set(val *NestedProviderAccount) { + v.value = val + v.isSet = true +} + +func (v NullableNestedProviderAccount) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedProviderAccount) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedProviderAccount(val *NestedProviderAccount) *NullableNestedProviderAccount { + return &NullableNestedProviderAccount{value: val, isSet: true} +} + +func (v NullableNestedProviderAccount) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedProviderAccount) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_region.go b/model_nested_region.go index 4282f5dd6..4d1fa217b 100644 --- a/model_nested_region.go +++ b/model_nested_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedRegion{} type NestedRegion struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ 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, display string, name string, slug string, depth int32) *NestedRegion { +func NewNestedRegion(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedRegion { this := NestedRegion{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedRegion) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedRegion) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedRegion) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedRegion) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedRegion) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_region_request.go b/model_nested_region_request.go index 945e3f650..6a1fe4279 100644 --- a/model_nested_region_request.go +++ b/model_nested_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_site_group.go b/model_nested_site_group.go index 1b288b168..5d45772a0 100644 --- a/model_nested_site_group.go +++ b/model_nested_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedSiteGroup{} type NestedSiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ 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, display string, name string, slug string, depth int32) *NestedSiteGroup { +func NewNestedSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedSiteGroup { this := NestedSiteGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedSiteGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedSiteGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedSiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedSiteGroup) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go index e0fbe632a..eeaf37cc0 100644 --- a/model_nested_site_group_request.go +++ b/model_nested_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tag.go b/model_nested_tag.go index f03a0a999..93b75f808 100644 --- a/model_nested_tag.go +++ b/model_nested_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedTag{} type NestedTag struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ type _NestedTag NestedTag // 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 NewNestedTag(id int32, url string, display string, name string, slug string) *NestedTag { +func NewNestedTag(id int32, url string, displayUrl string, display string, name string, slug string) *NestedTag { this := NestedTag{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -101,6 +103,30 @@ func (o *NestedTag) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedTag) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedTag) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedTag) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedTag) GetDisplay() string { if o == nil { @@ -217,6 +243,7 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -238,6 +265,7 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -272,6 +300,7 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go index f0d7d61b4..c10ab5ab6 100644 --- a/model_nested_tag_request.go +++ b/model_nested_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go index a157ee354..5814c2c37 100644 --- a/model_nested_tenant_group.go +++ b/model_nested_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedTenantGroup{} type NestedTenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -35,10 +36,11 @@ 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, display string, name string, slug string, depth int32) *NestedTenantGroup { +func NewNestedTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedTenantGroup { this := NestedTenantGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -102,6 +104,30 @@ func (o *NestedTenantGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedTenantGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedTenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedTenantGroup) GetDisplay() string { if o == nil { @@ -210,6 +236,7 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -229,6 +256,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -264,6 +292,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go index c5ecbf890..a16ab558b 100644 --- a/model_nested_tenant_group_request.go +++ b/model_nested_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_user.go b/model_nested_user.go index 470de1aff..e7396b1a3 100644 --- a/model_nested_user.go +++ b/model_nested_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ var _ MappedNullable = &NestedUser{} // NestedUser Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedUser struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Username string `json:"username"` AdditionalProperties map[string]interface{} @@ -34,10 +35,11 @@ type _NestedUser NestedUser // 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 NewNestedUser(id int32, url string, display string, username string) *NestedUser { +func NewNestedUser(id int32, url string, displayUrl string, display string, username string) *NestedUser { this := NestedUser{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Username = username return &this @@ -99,6 +101,30 @@ func (o *NestedUser) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedUser) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedUser) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedUser) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedUser) GetDisplay() string { if o == nil { @@ -159,6 +185,7 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["username"] = o.Username @@ -176,6 +203,7 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "username", } @@ -209,6 +237,7 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go index e19da59db..917467ab5 100644 --- a/model_nested_virtual_machine.go +++ b/model_nested_virtual_machine.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedVirtualMachine{} type NestedVirtualMachine struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedVirtualMachine NestedVirtualMachine // 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 NewNestedVirtualMachine(id int32, url string, display string, name string) *NestedVirtualMachine { +func NewNestedVirtualMachine(id int32, url string, displayUrl string, display string, name string) *NestedVirtualMachine { this := NestedVirtualMachine{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -98,6 +100,30 @@ func (o *NestedVirtualMachine) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedVirtualMachine) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedVirtualMachine) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedVirtualMachine) GetDisplay() string { if o == nil { @@ -158,6 +184,7 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -175,6 +202,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", } @@ -208,6 +236,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go index 7fb0d2b03..3a71f40e2 100644 --- a/model_nested_virtual_machine_request.go +++ b/model_nested_virtual_machine_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go index be1622431..5d4c419e0 100644 --- a/model_nested_vm_interface.go +++ b/model_nested_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedVMInterface{} type NestedVMInterface struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` VirtualMachine NestedVirtualMachine `json:"virtual_machine"` Name string `json:"name"` @@ -34,10 +35,11 @@ type _NestedVMInterface NestedVMInterface // 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 NewNestedVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string) *NestedVMInterface { +func NewNestedVMInterface(id int32, url string, displayUrl string, display string, virtualMachine NestedVirtualMachine, name string) *NestedVMInterface { this := NestedVMInterface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -100,6 +102,30 @@ func (o *NestedVMInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedVMInterface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedVMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedVMInterface) GetDisplay() string { if o == nil { @@ -184,6 +210,7 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -202,6 +229,7 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "virtual_machine", "name", @@ -236,6 +264,7 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go index ee8ecb2a3..5c31e855b 100644 --- a/model_nested_vm_interface_request.go +++ b/model_nested_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go new file mode 100644 index 000000000..e1ff2fbc1 --- /dev/null +++ b/model_nested_wireless_lan_group.go @@ -0,0 +1,342 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NestedWirelessLANGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NestedWirelessLANGroup{} + +// NestedWirelessLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. +type NestedWirelessLANGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` + AdditionalProperties map[string]interface{} +} + +type _NestedWirelessLANGroup NestedWirelessLANGroup + +// NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNestedWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32) *NestedWirelessLANGroup { + this := NestedWirelessLANGroup{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Name = name + this.Slug = slug + this.Depth = depth + return &this +} + +// NewNestedWirelessLANGroupWithDefaults instantiates a new NestedWirelessLANGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNestedWirelessLANGroupWithDefaults() *NestedWirelessLANGroup { + this := NestedWirelessLANGroup{} + return &this +} + +// GetId returns the Id field value +func (o *NestedWirelessLANGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NestedWirelessLANGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NestedWirelessLANGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NestedWirelessLANGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedWirelessLANGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedWirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *NestedWirelessLANGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NestedWirelessLANGroup) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *NestedWirelessLANGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NestedWirelessLANGroup) SetName(v string) { + o.Name = v +} + +// GetSlug returns the Slug field value +func (o *NestedWirelessLANGroup) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *NestedWirelessLANGroup) SetSlug(v string) { + o.Slug = v +} + +// GetDepth returns the Depth field value +func (o *NestedWirelessLANGroup) GetDepth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Depth +} + +// GetDepthOk returns a tuple with the Depth field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLANGroup) GetDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Depth, true +} + +// SetDepth sets field value +func (o *NestedWirelessLANGroup) SetDepth(v int32) { + o.Depth = v +} + +func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["name"] = o.Name + toSerialize["slug"] = o.Slug + toSerialize["_depth"] = o.Depth + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "name", + "slug", + "_depth", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNestedWirelessLANGroup := _NestedWirelessLANGroup{} + + err = json.Unmarshal(data, &varNestedWirelessLANGroup) + + if err != nil { + return err + } + + *o = NestedWirelessLANGroup(varNestedWirelessLANGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "_depth") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNestedWirelessLANGroup struct { + value *NestedWirelessLANGroup + isSet bool +} + +func (v NullableNestedWirelessLANGroup) Get() *NestedWirelessLANGroup { + return v.value +} + +func (v *NullableNestedWirelessLANGroup) Set(val *NestedWirelessLANGroup) { + v.value = val + v.isSet = true +} + +func (v NullableNestedWirelessLANGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableNestedWirelessLANGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNestedWirelessLANGroup(val *NestedWirelessLANGroup) *NullableNestedWirelessLANGroup { + return &NullableNestedWirelessLANGroup{value: val, isSet: true} +} + +func (v NullableNestedWirelessLANGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNestedWirelessLANGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go index 8e8b204a1..304b68ce8 100644 --- a/model_nested_wireless_lan_group_request.go +++ b/model_nested_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go index bc6328e76..1bb94fc28 100644 --- a/model_nested_wireless_link.go +++ b/model_nested_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedWirelessLink{} type NestedWirelessLink struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} @@ -33,10 +34,11 @@ type _NestedWirelessLink NestedWirelessLink // 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 NewNestedWirelessLink(id int32, url string, display string) *NestedWirelessLink { +func NewNestedWirelessLink(id int32, url string, displayUrl string, display string) *NestedWirelessLink { this := NestedWirelessLink{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display return &this } @@ -97,6 +99,30 @@ func (o *NestedWirelessLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *NestedWirelessLink) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NestedWirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *NestedWirelessLink) GetDisplay() string { if o == nil { @@ -165,6 +191,7 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if !IsNil(o.Ssid) { toSerialize["ssid"] = o.Ssid @@ -184,6 +211,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", } @@ -216,6 +244,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") o.AdditionalProperties = additionalProperties diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go index 49e586028..97c39ec10 100644 --- a/model_nested_wireless_link_request.go +++ b/model_nested_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_notification.go b/model_notification.go new file mode 100644 index 000000000..d85778ba1 --- /dev/null +++ b/model_notification.go @@ -0,0 +1,452 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the Notification type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Notification{} + +// Notification Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type Notification struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` + AdditionalProperties map[string]interface{} +} + +type _Notification Notification + +// NewNotification instantiates a new Notification object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotification(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, eventType Event) *Notification { + this := Notification{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + this.User = user + this.Created = created + this.EventType = eventType + return &this +} + +// NewNotificationWithDefaults instantiates a new Notification object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationWithDefaults() *Notification { + this := Notification{} + return &this +} + +// GetId returns the Id field value +func (o *Notification) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Notification) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Notification) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *Notification) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *Notification) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Notification) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *Notification) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Notification) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Notification) SetDisplay(v string) { + o.Display = v +} + +// GetObjectType returns the ObjectType field value +func (o *Notification) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *Notification) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Notification) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *Notification) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *Notification) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Notification) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *Notification) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Notification) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// SetObject sets field value +func (o *Notification) SetObject(v interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Notification) GetUser() BriefUser { + if o == nil { + var ret BriefUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *Notification) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Notification) SetUser(v BriefUser) { + o.User = v +} + +// GetCreated returns the Created field value +func (o *Notification) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Notification) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Notification) SetCreated(v time.Time) { + o.Created = v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Notification) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Notification) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *Notification) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *Notification) SetRead(v time.Time) { + o.Read.Set(&v) +} +// SetReadNil sets the value for Read to be an explicit nil +func (o *Notification) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *Notification) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value +func (o *Notification) GetEventType() Event { + if o == nil { + var ret Event + return ret + } + + return o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value +// and a boolean to check if the value has been set. +func (o *Notification) GetEventTypeOk() (*Event, bool) { + if o == nil { + return nil, false + } + return &o.EventType, true +} + +// SetEventType sets field value +func (o *Notification) SetEventType(v Event) { + o.EventType = v +} + +func (o Notification) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Notification) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + toSerialize["user"] = o.User + toSerialize["created"] = o.Created + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + toSerialize["event_type"] = o.EventType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Notification) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "object_type", + "object_id", + "object", + "user", + "created", + "event_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotification := _Notification{} + + err = json.Unmarshal(data, &varNotification) + + if err != nil { + return err + } + + *o = Notification(varNotification) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + delete(additionalProperties, "user") + delete(additionalProperties, "created") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotification struct { + value *Notification + isSet bool +} + +func (v NullableNotification) Get() *Notification { + return v.value +} + +func (v *NullableNotification) Set(val *Notification) { + v.value = val + v.isSet = true +} + +func (v NullableNotification) IsSet() bool { + return v.isSet +} + +func (v *NullableNotification) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotification(val *Notification) *NullableNotification { + return &NullableNotification{value: val, isSet: true} +} + +func (v NullableNotification) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotification) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_notification_group.go b/model_notification_group.go new file mode 100644 index 000000000..d94f0d6fb --- /dev/null +++ b/model_notification_group.go @@ -0,0 +1,395 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NotificationGroup type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationGroup{} + +// NotificationGroup Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type NotificationGroup struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DisplayUrl string `json:"display_url"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []Group `json:"groups,omitempty"` + Users []User `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NotificationGroup NotificationGroup + +// NewNotificationGroup instantiates a new NotificationGroup object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotificationGroup(id int32, url string, display string, displayUrl string, name string) *NotificationGroup { + this := NotificationGroup{} + this.Id = id + this.Url = url + this.Display = display + this.DisplayUrl = displayUrl + this.Name = name + return &this +} + +// NewNotificationGroupWithDefaults instantiates a new NotificationGroup object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationGroupWithDefaults() *NotificationGroup { + this := NotificationGroup{} + return &this +} + +// GetId returns the Id field value +func (o *NotificationGroup) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *NotificationGroup) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *NotificationGroup) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *NotificationGroup) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *NotificationGroup) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *NotificationGroup) SetDisplay(v string) { + o.Display = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *NotificationGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *NotificationGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetName returns the Name field value +func (o *NotificationGroup) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NotificationGroup) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NotificationGroup) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *NotificationGroup) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *NotificationGroup) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *NotificationGroup) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *NotificationGroup) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *NotificationGroup) SetGroups(v []Group) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *NotificationGroup) GetUsers() []User { + if o == nil || IsNil(o.Users) { + var ret []User + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroup) GetUsersOk() ([]User, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *NotificationGroup) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []User and assigns it to the Users field. +func (o *NotificationGroup) SetUsers(v []User) { + o.Users = v +} + +func (o NotificationGroup) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationGroup) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["display_url"] = o.DisplayUrl + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationGroup) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "display_url", + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotificationGroup := _NotificationGroup{} + + err = json.Unmarshal(data, &varNotificationGroup) + + if err != nil { + return err + } + + *o = NotificationGroup(varNotificationGroup) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "display_url") + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationGroup struct { + value *NotificationGroup + isSet bool +} + +func (v NullableNotificationGroup) Get() *NotificationGroup { + return v.value +} + +func (v *NullableNotificationGroup) Set(val *NotificationGroup) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationGroup) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationGroup) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationGroup(val *NotificationGroup) *NullableNotificationGroup { + return &NullableNotificationGroup{value: val, isSet: true} +} + +func (v NullableNotificationGroup) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationGroup) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_notification_group_request.go b/model_notification_group_request.go new file mode 100644 index 000000000..698bc3ead --- /dev/null +++ b/model_notification_group_request.go @@ -0,0 +1,279 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the NotificationGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationGroupRequest{} + +// NotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type NotificationGroupRequest struct { + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _NotificationGroupRequest NotificationGroupRequest + +// NewNotificationGroupRequest instantiates a new NotificationGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotificationGroupRequest(name string) *NotificationGroupRequest { + this := NotificationGroupRequest{} + this.Name = name + return &this +} + +// NewNotificationGroupRequestWithDefaults instantiates a new NotificationGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationGroupRequestWithDefaults() *NotificationGroupRequest { + this := NotificationGroupRequest{} + return &this +} + +// GetName returns the Name field value +func (o *NotificationGroupRequest) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *NotificationGroupRequest) SetName(v string) { + o.Name = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *NotificationGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *NotificationGroupRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *NotificationGroupRequest) GetUsers() []int32 { + if o == nil || IsNil(o.Users) { + var ret []int32 + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NotificationGroupRequest) GetUsersOk() ([]int32, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *NotificationGroupRequest) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []int32 and assigns it to the Users field. +func (o *NotificationGroupRequest) SetUsers(v []int32) { + o.Users = v +} + +func (o NotificationGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["name"] = o.Name + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "name", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotificationGroupRequest := _NotificationGroupRequest{} + + err = json.Unmarshal(data, &varNotificationGroupRequest) + + if err != nil { + return err + } + + *o = NotificationGroupRequest(varNotificationGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationGroupRequest struct { + value *NotificationGroupRequest + isSet bool +} + +func (v NullableNotificationGroupRequest) Get() *NotificationGroupRequest { + return v.value +} + +func (v *NullableNotificationGroupRequest) Set(val *NotificationGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationGroupRequest(val *NotificationGroupRequest) *NullableNotificationGroupRequest { + return &NullableNotificationGroupRequest{value: val, isSet: true} +} + +func (v NullableNotificationGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_notification_request.go b/model_notification_request.go new file mode 100644 index 000000000..8e78f5a3d --- /dev/null +++ b/model_notification_request.go @@ -0,0 +1,303 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the NotificationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &NotificationRequest{} + +// NotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type NotificationRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` + AdditionalProperties map[string]interface{} +} + +type _NotificationRequest NotificationRequest + +// NewNotificationRequest instantiates a new NotificationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewNotificationRequest(objectType string, objectId int64, user BriefUserRequest, eventType Event) *NotificationRequest { + this := NotificationRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + this.EventType = eventType + return &this +} + +// NewNotificationRequestWithDefaults instantiates a new NotificationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewNotificationRequestWithDefaults() *NotificationRequest { + this := NotificationRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *NotificationRequest) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *NotificationRequest) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *NotificationRequest) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *NotificationRequest) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetUser returns the User field value +func (o *NotificationRequest) GetUser() BriefUserRequest { + if o == nil { + var ret BriefUserRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *NotificationRequest) SetUser(v BriefUserRequest) { + o.User = v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NotificationRequest) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NotificationRequest) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *NotificationRequest) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *NotificationRequest) SetRead(v time.Time) { + o.Read.Set(&v) +} +// SetReadNil sets the value for Read to be an explicit nil +func (o *NotificationRequest) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *NotificationRequest) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value +func (o *NotificationRequest) GetEventType() Event { + if o == nil { + var ret Event + return ret + } + + return o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value +// and a boolean to check if the value has been set. +func (o *NotificationRequest) GetEventTypeOk() (*Event, bool) { + if o == nil { + return nil, false + } + return &o.EventType, true +} + +// SetEventType sets field value +func (o *NotificationRequest) SetEventType(v Event) { + o.EventType = v +} + +func (o NotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o NotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + toSerialize["event_type"] = o.EventType + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *NotificationRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "user", + "event_type", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varNotificationRequest := _NotificationRequest{} + + err = json.Unmarshal(data, &varNotificationRequest) + + if err != nil { + return err + } + + *o = NotificationRequest(varNotificationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableNotificationRequest struct { + value *NotificationRequest + isSet bool +} + +func (v NullableNotificationRequest) Get() *NotificationRequest { + return v.value +} + +func (v *NullableNotificationRequest) Set(val *NotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullableNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableNotificationRequest(val *NotificationRequest) *NullableNotificationRequest { + return &NullableNotificationRequest{value: val, isSet: true} +} + +func (v NullableNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_object_change.go b/model_object_change.go index 24b5c95cc..f82fb00cd 100644 --- a/model_object_change.go +++ b/model_object_change.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,10 @@ var _ MappedNullable = &ObjectChange{} type ObjectChange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Time time.Time `json:"time"` - User User `json:"user"` + User BriefUser `json:"user"` UserName string `json:"user_name"` RequestId string `json:"request_id"` Action ObjectChangeAction `json:"action"` @@ -43,10 +44,11 @@ type _ObjectChange ObjectChange // 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 NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { +func NewObjectChange(id int32, url string, displayUrl string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { this := ObjectChange{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Time = time this.User = user @@ -117,6 +119,30 @@ func (o *ObjectChange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ObjectChange) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ObjectChange) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ObjectChange) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ObjectChange) GetDisplay() string { if o == nil { @@ -166,9 +192,9 @@ func (o *ObjectChange) SetTime(v time.Time) { } // GetUser returns the User field value -func (o *ObjectChange) GetUser() User { +func (o *ObjectChange) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -177,7 +203,7 @@ func (o *ObjectChange) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *ObjectChange) GetUserOk() (*User, bool) { +func (o *ObjectChange) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -185,7 +211,7 @@ func (o *ObjectChange) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *ObjectChange) SetUser(v User) { +func (o *ObjectChange) SetUser(v BriefUser) { o.User = v } @@ -399,6 +425,7 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["time"] = o.Time toSerialize["user"] = o.User @@ -431,6 +458,7 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "time", "user", @@ -473,6 +501,7 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "time") delete(additionalProperties, "user") diff --git a/model_object_change_action.go b/model_object_change_action.go index 4e2bcdbc3..6c35d4b59 100644 --- a/model_object_change_action.go +++ b/model_object_change_action.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go index ee7329967..1a327631d 100644 --- a/model_object_change_action_label.go +++ b/model_object_change_action_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go index 59e9cd339..5a8cadc06 100644 --- a/model_object_change_action_value.go +++ b/model_object_change_action_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_permission.go b/model_object_permission.go index 7835c2b8d..1f592ea9a 100644 --- a/model_object_permission.go +++ b/model_object_permission.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &ObjectPermission{} type ObjectPermission struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _ObjectPermission ObjectPermission // 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 NewObjectPermission(id int32, url string, display string, name string, objectTypes []string, actions []string) *ObjectPermission { +func NewObjectPermission(id int32, url string, displayUrl string, display string, name string, objectTypes []string, actions []string) *ObjectPermission { this := ObjectPermission{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.ObjectTypes = objectTypes @@ -109,6 +111,30 @@ func (o *ObjectPermission) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ObjectPermission) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ObjectPermission) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ObjectPermission) GetDisplay() string { if o == nil { @@ -378,6 +404,7 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -412,6 +439,7 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "object_types", @@ -447,6 +475,7 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_object_permission_request.go b/model_object_permission_request.go index 05e9aa4e2..eb669ac88 100644 --- a/model_object_permission_request.go +++ b/model_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_type.go b/model_object_type.go index f08d354c9..655aa37d2 100644 --- a/model_object_type.go +++ b/model_object_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go index 81e2b8603..c6c83d1a7 100644 --- a/model_paginated_aggregate_list.go +++ b/model_paginated_aggregate_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go index 183c0353f..7009e4608 100644 --- a/model_paginated_asn_list.go +++ b/model_paginated_asn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go index d96366e06..1ee76f53b 100644 --- a/model_paginated_asn_range_list.go +++ b/model_paginated_asn_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go index 64a4425b2..170b3c3da 100644 --- a/model_paginated_bookmark_list.go +++ b/model_paginated_bookmark_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go index cc214c3b2..90859b01f 100644 --- a/model_paginated_cable_list.go +++ b/model_paginated_cable_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go index 3a368c6b3..29b017aa0 100644 --- a/model_paginated_cable_termination_list.go +++ b/model_paginated_cable_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_group_assignment_list.go b/model_paginated_circuit_group_assignment_list.go new file mode 100644 index 000000000..92230ccf7 --- /dev/null +++ b/model_paginated_circuit_group_assignment_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedCircuitGroupAssignmentList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCircuitGroupAssignmentList{} + +// PaginatedCircuitGroupAssignmentList struct for PaginatedCircuitGroupAssignmentList +type PaginatedCircuitGroupAssignmentList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroupAssignment `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCircuitGroupAssignmentList PaginatedCircuitGroupAssignmentList + +// NewPaginatedCircuitGroupAssignmentList instantiates a new PaginatedCircuitGroupAssignmentList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedCircuitGroupAssignmentList(count int32, results []CircuitGroupAssignment) *PaginatedCircuitGroupAssignmentList { + this := PaginatedCircuitGroupAssignmentList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedCircuitGroupAssignmentListWithDefaults instantiates a new PaginatedCircuitGroupAssignmentList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedCircuitGroupAssignmentListWithDefaults() *PaginatedCircuitGroupAssignmentList { + this := PaginatedCircuitGroupAssignmentList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedCircuitGroupAssignmentList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupAssignmentList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedCircuitGroupAssignmentList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupAssignmentList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupAssignmentList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedCircuitGroupAssignmentList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupAssignmentList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupAssignmentList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedCircuitGroupAssignmentList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCircuitGroupAssignmentList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedCircuitGroupAssignmentList) GetResults() []CircuitGroupAssignment { + if o == nil { + var ret []CircuitGroupAssignment + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupAssignmentList) GetResultsOk() ([]CircuitGroupAssignment, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignment) { + o.Results = v +} + +func (o PaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCircuitGroupAssignmentList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCircuitGroupAssignmentList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedCircuitGroupAssignmentList := _PaginatedCircuitGroupAssignmentList{} + + err = json.Unmarshal(data, &varPaginatedCircuitGroupAssignmentList) + + if err != nil { + return err + } + + *o = PaginatedCircuitGroupAssignmentList(varPaginatedCircuitGroupAssignmentList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCircuitGroupAssignmentList struct { + value *PaginatedCircuitGroupAssignmentList + isSet bool +} + +func (v NullablePaginatedCircuitGroupAssignmentList) Get() *PaginatedCircuitGroupAssignmentList { + return v.value +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) Set(val *PaginatedCircuitGroupAssignmentList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCircuitGroupAssignmentList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCircuitGroupAssignmentList(val *PaginatedCircuitGroupAssignmentList) *NullablePaginatedCircuitGroupAssignmentList { + return &NullablePaginatedCircuitGroupAssignmentList{value: val, isSet: true} +} + +func (v NullablePaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCircuitGroupAssignmentList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_circuit_group_list.go b/model_paginated_circuit_group_list.go new file mode 100644 index 000000000..ba6bbd1a3 --- /dev/null +++ b/model_paginated_circuit_group_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedCircuitGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedCircuitGroupList{} + +// PaginatedCircuitGroupList struct for PaginatedCircuitGroupList +type PaginatedCircuitGroupList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroup `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedCircuitGroupList PaginatedCircuitGroupList + +// NewPaginatedCircuitGroupList instantiates a new PaginatedCircuitGroupList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedCircuitGroupList(count int32, results []CircuitGroup) *PaginatedCircuitGroupList { + this := PaginatedCircuitGroupList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedCircuitGroupListWithDefaults instantiates a new PaginatedCircuitGroupList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedCircuitGroupListWithDefaults() *PaginatedCircuitGroupList { + this := PaginatedCircuitGroupList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedCircuitGroupList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedCircuitGroupList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedCircuitGroupList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedCircuitGroupList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedCircuitGroupList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedCircuitGroupList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedCircuitGroupList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedCircuitGroupList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedCircuitGroupList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedCircuitGroupList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedCircuitGroupList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedCircuitGroupList) GetResults() []CircuitGroup { + if o == nil { + var ret []CircuitGroup + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedCircuitGroupList) GetResultsOk() ([]CircuitGroup, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup) { + o.Results = v +} + +func (o PaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedCircuitGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedCircuitGroupList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedCircuitGroupList := _PaginatedCircuitGroupList{} + + err = json.Unmarshal(data, &varPaginatedCircuitGroupList) + + if err != nil { + return err + } + + *o = PaginatedCircuitGroupList(varPaginatedCircuitGroupList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedCircuitGroupList struct { + value *PaginatedCircuitGroupList + isSet bool +} + +func (v NullablePaginatedCircuitGroupList) Get() *PaginatedCircuitGroupList { + return v.value +} + +func (v *NullablePaginatedCircuitGroupList) Set(val *PaginatedCircuitGroupList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedCircuitGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedCircuitGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedCircuitGroupList(val *PaginatedCircuitGroupList) *NullablePaginatedCircuitGroupList { + return &NullablePaginatedCircuitGroupList{value: val, isSet: true} +} + +func (v NullablePaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedCircuitGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go index d2a32fd8a..0c58ed2d3 100644 --- a/model_paginated_circuit_list.go +++ b/model_paginated_circuit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go index 71138eab9..b50164eb8 100644 --- a/model_paginated_circuit_termination_list.go +++ b/model_paginated_circuit_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go index 148793830..6d9f9c3e9 100644 --- a/model_paginated_circuit_type_list.go +++ b/model_paginated_circuit_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go index 2263a7dfb..f5b36990d 100644 --- a/model_paginated_cluster_group_list.go +++ b/model_paginated_cluster_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go index da077b2c6..34228b3d7 100644 --- a/model_paginated_cluster_list.go +++ b/model_paginated_cluster_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go index 7243ef83d..2ec2342fb 100644 --- a/model_paginated_cluster_type_list.go +++ b/model_paginated_cluster_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go index 4db50833d..c71d1c37c 100644 --- a/model_paginated_config_context_list.go +++ b/model_paginated_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go index 36f8990ff..09d4ffe97 100644 --- a/model_paginated_config_template_list.go +++ b/model_paginated_config_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go index 7d8bb8367..d28bfe8f0 100644 --- a/model_paginated_console_port_list.go +++ b/model_paginated_console_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go index b424049c9..4a4c09428 100644 --- a/model_paginated_console_port_template_list.go +++ b/model_paginated_console_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go index adfb94743..0ad87ae00 100644 --- a/model_paginated_console_server_port_list.go +++ b/model_paginated_console_server_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go index 51278f9f8..f3b9785c4 100644 --- a/model_paginated_console_server_port_template_list.go +++ b/model_paginated_console_server_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go index ea9e23946..18bed698f 100644 --- a/model_paginated_contact_assignment_list.go +++ b/model_paginated_contact_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go index 77bd6c70f..5258ff539 100644 --- a/model_paginated_contact_group_list.go +++ b/model_paginated_contact_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go index 72294eba7..3cf70ac19 100644 --- a/model_paginated_contact_list.go +++ b/model_paginated_contact_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go index fc486241c..5c5873c96 100644 --- a/model_paginated_contact_role_list.go +++ b/model_paginated_contact_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go index 48e25bb94..b5d9571e2 100644 --- a/model_paginated_custom_field_choice_set_list.go +++ b/model_paginated_custom_field_choice_set_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go index 1f0c58fc0..293ca2b85 100644 --- a/model_paginated_custom_field_list.go +++ b/model_paginated_custom_field_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go index 00815cc84..9ed4a2176 100644 --- a/model_paginated_custom_link_list.go +++ b/model_paginated_custom_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go index 260f045b2..86ff12069 100644 --- a/model_paginated_data_file_list.go +++ b/model_paginated_data_file_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go index 326295e6d..2cc611ddb 100644 --- a/model_paginated_data_source_list.go +++ b/model_paginated_data_source_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go index c83d4e2c6..107345ef7 100644 --- a/model_paginated_device_bay_list.go +++ b/model_paginated_device_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go index 45928db4d..0c9c4eadb 100644 --- a/model_paginated_device_bay_template_list.go +++ b/model_paginated_device_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go index 15f1f91b8..61925657c 100644 --- a/model_paginated_device_role_list.go +++ b/model_paginated_device_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go index 66636b1bf..cd489ed9a 100644 --- a/model_paginated_device_type_list.go +++ b/model_paginated_device_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go index 654c3dff0..65b7e1127 100644 --- a/model_paginated_device_with_config_context_list.go +++ b/model_paginated_device_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go index 0d05d05cd..7eba5e299 100644 --- a/model_paginated_event_rule_list.go +++ b/model_paginated_event_rule_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go index d1160be70..ebd3f4e61 100644 --- a/model_paginated_export_template_list.go +++ b/model_paginated_export_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go index 45ede081c..a8c732e57 100644 --- a/model_paginated_fhrp_group_assignment_list.go +++ b/model_paginated_fhrp_group_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go index a0faea759..0f846f23e 100644 --- a/model_paginated_fhrp_group_list.go +++ b/model_paginated_fhrp_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go index 4e6f4d89f..f63523553 100644 --- a/model_paginated_front_port_list.go +++ b/model_paginated_front_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go index 66bfe434b..8ac3ee81b 100644 --- a/model_paginated_front_port_template_list.go +++ b/model_paginated_front_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go index 4c9d72781..e9b21094f 100644 --- a/model_paginated_group_list.go +++ b/model_paginated_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go index f49bbcfd2..653b7c0c3 100644 --- a/model_paginated_ike_policy_list.go +++ b/model_paginated_ike_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go index 7a9cb122b..5b662299c 100644 --- a/model_paginated_ike_proposal_list.go +++ b/model_paginated_ike_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go index 0dcc7260c..f11189e58 100644 --- a/model_paginated_image_attachment_list.go +++ b/model_paginated_image_attachment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go index 9ea763c86..e50226c19 100644 --- a/model_paginated_interface_list.go +++ b/model_paginated_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go index c7f17dff3..1ae3a254e 100644 --- a/model_paginated_interface_template_list.go +++ b/model_paginated_interface_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go index 8eae06c5d..84c5220e6 100644 --- a/model_paginated_inventory_item_list.go +++ b/model_paginated_inventory_item_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go index 7a3dfa86a..b9bd492c3 100644 --- a/model_paginated_inventory_item_role_list.go +++ b/model_paginated_inventory_item_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go index 8e1ebbaad..0232fa0b9 100644 --- a/model_paginated_inventory_item_template_list.go +++ b/model_paginated_inventory_item_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go index 71c624ba5..6d63f492c 100644 --- a/model_paginated_ip_address_list.go +++ b/model_paginated_ip_address_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go index 64b6c2ca5..b193d7bbf 100644 --- a/model_paginated_ip_range_list.go +++ b/model_paginated_ip_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go index 3904a4021..5e2227e4a 100644 --- a/model_paginated_ip_sec_policy_list.go +++ b/model_paginated_ip_sec_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go index 13e5dc8cc..0fd4a0272 100644 --- a/model_paginated_ip_sec_profile_list.go +++ b/model_paginated_ip_sec_profile_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go index 562d884cf..f313018ff 100644 --- a/model_paginated_ip_sec_proposal_list.go +++ b/model_paginated_ip_sec_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go index 9c5266b90..26a4d5715 100644 --- a/model_paginated_job_list.go +++ b/model_paginated_job_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go index 39deffe63..7139b196e 100644 --- a/model_paginated_journal_entry_list.go +++ b/model_paginated_journal_entry_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go index 130fb6318..64e0ed7cd 100644 --- a/model_paginated_l2_vpn_list.go +++ b/model_paginated_l2_vpn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go index 6fdc179ae..9661701e5 100644 --- a/model_paginated_l2_vpn_termination_list.go +++ b/model_paginated_l2_vpn_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go index 303ddb6f1..f809c4a09 100644 --- a/model_paginated_location_list.go +++ b/model_paginated_location_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go index 1642d70e3..de01bdd8a 100644 --- a/model_paginated_manufacturer_list.go +++ b/model_paginated_manufacturer_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go index 70cca7b2d..cca78ae53 100644 --- a/model_paginated_module_bay_list.go +++ b/model_paginated_module_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go index af3faa856..551d96ead 100644 --- a/model_paginated_module_bay_template_list.go +++ b/model_paginated_module_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go index af55ae292..af8c0f865 100644 --- a/model_paginated_module_list.go +++ b/model_paginated_module_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go index 375f3b8f4..073d01443 100644 --- a/model_paginated_module_type_list.go +++ b/model_paginated_module_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_notification_group_list.go b/model_paginated_notification_group_list.go new file mode 100644 index 000000000..6e4663544 --- /dev/null +++ b/model_paginated_notification_group_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNotificationGroupList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNotificationGroupList{} + +// PaginatedNotificationGroupList struct for PaginatedNotificationGroupList +type PaginatedNotificationGroupList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []NotificationGroup `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNotificationGroupList PaginatedNotificationGroupList + +// NewPaginatedNotificationGroupList instantiates a new PaginatedNotificationGroupList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedNotificationGroupList(count int32, results []NotificationGroup) *PaginatedNotificationGroupList { + this := PaginatedNotificationGroupList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNotificationGroupListWithDefaults instantiates a new PaginatedNotificationGroupList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedNotificationGroupListWithDefaults() *PaginatedNotificationGroupList { + this := PaginatedNotificationGroupList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNotificationGroupList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationGroupList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNotificationGroupList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationGroupList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationGroupList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedNotificationGroupList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedNotificationGroupList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedNotificationGroupList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedNotificationGroupList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationGroupList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationGroupList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedNotificationGroupList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedNotificationGroupList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedNotificationGroupList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedNotificationGroupList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedNotificationGroupList) GetResults() []NotificationGroup { + if o == nil { + var ret []NotificationGroup + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationGroupList) GetResultsOk() ([]NotificationGroup, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup) { + o.Results = v +} + +func (o PaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNotificationGroupList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNotificationGroupList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedNotificationGroupList := _PaginatedNotificationGroupList{} + + err = json.Unmarshal(data, &varPaginatedNotificationGroupList) + + if err != nil { + return err + } + + *o = PaginatedNotificationGroupList(varPaginatedNotificationGroupList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNotificationGroupList struct { + value *PaginatedNotificationGroupList + isSet bool +} + +func (v NullablePaginatedNotificationGroupList) Get() *PaginatedNotificationGroupList { + return v.value +} + +func (v *NullablePaginatedNotificationGroupList) Set(val *PaginatedNotificationGroupList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNotificationGroupList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNotificationGroupList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNotificationGroupList(val *PaginatedNotificationGroupList) *NullablePaginatedNotificationGroupList { + return &NullablePaginatedNotificationGroupList{value: val, isSet: true} +} + +func (v NullablePaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNotificationGroupList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_notification_list.go b/model_paginated_notification_list.go new file mode 100644 index 000000000..1959f1adc --- /dev/null +++ b/model_paginated_notification_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedNotificationList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedNotificationList{} + +// PaginatedNotificationList struct for PaginatedNotificationList +type PaginatedNotificationList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Notification `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedNotificationList PaginatedNotificationList + +// NewPaginatedNotificationList instantiates a new PaginatedNotificationList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedNotificationList(count int32, results []Notification) *PaginatedNotificationList { + this := PaginatedNotificationList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedNotificationListWithDefaults instantiates a new PaginatedNotificationList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedNotificationListWithDefaults() *PaginatedNotificationList { + this := PaginatedNotificationList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedNotificationList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedNotificationList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedNotificationList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedNotificationList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedNotificationList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedNotificationList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedNotificationList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedNotificationList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedNotificationList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedNotificationList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedNotificationList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedNotificationList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedNotificationList) GetResults() []Notification { + if o == nil { + var ret []Notification + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedNotificationList) GetResultsOk() ([]Notification, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedNotificationList) SetResults(v []Notification) { + o.Results = v +} + +func (o PaginatedNotificationList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedNotificationList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedNotificationList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedNotificationList := _PaginatedNotificationList{} + + err = json.Unmarshal(data, &varPaginatedNotificationList) + + if err != nil { + return err + } + + *o = PaginatedNotificationList(varPaginatedNotificationList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedNotificationList struct { + value *PaginatedNotificationList + isSet bool +} + +func (v NullablePaginatedNotificationList) Get() *PaginatedNotificationList { + return v.value +} + +func (v *NullablePaginatedNotificationList) Set(val *PaginatedNotificationList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedNotificationList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedNotificationList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedNotificationList(val *PaginatedNotificationList) *NullablePaginatedNotificationList { + return &NullablePaginatedNotificationList{value: val, isSet: true} +} + +func (v NullablePaginatedNotificationList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedNotificationList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go index c4cd994e4..f330a9698 100644 --- a/model_paginated_object_change_list.go +++ b/model_paginated_object_change_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go index 2484322f1..11fc0ae28 100644 --- a/model_paginated_object_permission_list.go +++ b/model_paginated_object_permission_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go index 1a24ef887..522eb2cf7 100644 --- a/model_paginated_object_type_list.go +++ b/model_paginated_object_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go index a5637f786..2a488d754 100644 --- a/model_paginated_platform_list.go +++ b/model_paginated_platform_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go index a90726d50..fb3d7670c 100644 --- a/model_paginated_power_feed_list.go +++ b/model_paginated_power_feed_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go index 42cc10417..26425b036 100644 --- a/model_paginated_power_outlet_list.go +++ b/model_paginated_power_outlet_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go index dabff54c7..614cc6f75 100644 --- a/model_paginated_power_outlet_template_list.go +++ b/model_paginated_power_outlet_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go index a84ec9363..308656a76 100644 --- a/model_paginated_power_panel_list.go +++ b/model_paginated_power_panel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go index a1b147420..0ab6a3caf 100644 --- a/model_paginated_power_port_list.go +++ b/model_paginated_power_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go index d8e709152..d374c87c5 100644 --- a/model_paginated_power_port_template_list.go +++ b/model_paginated_power_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go index 07147ed99..7ddb16c83 100644 --- a/model_paginated_prefix_list.go +++ b/model_paginated_prefix_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go index c48585038..48d72dc61 100644 --- a/model_paginated_provider_account_list.go +++ b/model_paginated_provider_account_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go index 5b180ac54..cfe0f17db 100644 --- a/model_paginated_provider_list.go +++ b/model_paginated_provider_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go index b97c267f7..c4859849b 100644 --- a/model_paginated_provider_network_list.go +++ b/model_paginated_provider_network_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go index f7bdd10a2..86069f277 100644 --- a/model_paginated_rack_list.go +++ b/model_paginated_rack_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go index 20a799464..b191e703a 100644 --- a/model_paginated_rack_reservation_list.go +++ b/model_paginated_rack_reservation_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go index e15fd7e27..602f02990 100644 --- a/model_paginated_rack_role_list.go +++ b/model_paginated_rack_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_type_list.go b/model_paginated_rack_type_list.go new file mode 100644 index 000000000..a7408da09 --- /dev/null +++ b/model_paginated_rack_type_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedRackTypeList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedRackTypeList{} + +// PaginatedRackTypeList struct for PaginatedRackTypeList +type PaginatedRackTypeList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackType `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedRackTypeList PaginatedRackTypeList + +// NewPaginatedRackTypeList instantiates a new PaginatedRackTypeList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedRackTypeList(count int32, results []RackType) *PaginatedRackTypeList { + this := PaginatedRackTypeList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedRackTypeListWithDefaults instantiates a new PaginatedRackTypeList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedRackTypeListWithDefaults() *PaginatedRackTypeList { + this := PaginatedRackTypeList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedRackTypeList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedRackTypeList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedRackTypeList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedRackTypeList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedRackTypeList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedRackTypeList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedRackTypeList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedRackTypeList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedRackTypeList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedRackTypeList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedRackTypeList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedRackTypeList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedRackTypeList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedRackTypeList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedRackTypeList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedRackTypeList) GetResults() []RackType { + if o == nil { + var ret []RackType + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedRackTypeList) GetResultsOk() ([]RackType, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedRackTypeList) SetResults(v []RackType) { + o.Results = v +} + +func (o PaginatedRackTypeList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedRackTypeList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedRackTypeList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedRackTypeList := _PaginatedRackTypeList{} + + err = json.Unmarshal(data, &varPaginatedRackTypeList) + + if err != nil { + return err + } + + *o = PaginatedRackTypeList(varPaginatedRackTypeList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedRackTypeList struct { + value *PaginatedRackTypeList + isSet bool +} + +func (v NullablePaginatedRackTypeList) Get() *PaginatedRackTypeList { + return v.value +} + +func (v *NullablePaginatedRackTypeList) Set(val *PaginatedRackTypeList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedRackTypeList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedRackTypeList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedRackTypeList(val *PaginatedRackTypeList) *NullablePaginatedRackTypeList { + return &NullablePaginatedRackTypeList{value: val, isSet: true} +} + +func (v NullablePaginatedRackTypeList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedRackTypeList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go index 6aaf2e9d7..3a55e32c7 100644 --- a/model_paginated_rack_unit_list.go +++ b/model_paginated_rack_unit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go index c365786aa..b97230354 100644 --- a/model_paginated_rear_port_list.go +++ b/model_paginated_rear_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go index 72c089dfb..d6f4cbb72 100644 --- a/model_paginated_rear_port_template_list.go +++ b/model_paginated_rear_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go index 3107d8007..de3e80481 100644 --- a/model_paginated_region_list.go +++ b/model_paginated_region_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go index 87507a75d..3eb1ba8f7 100644 --- a/model_paginated_rir_list.go +++ b/model_paginated_rir_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go index c22ab93d1..60ae46699 100644 --- a/model_paginated_role_list.go +++ b/model_paginated_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go index b6f02c906..28a024800 100644 --- a/model_paginated_route_target_list.go +++ b/model_paginated_route_target_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go index 485e61081..1138351ad 100644 --- a/model_paginated_saved_filter_list.go +++ b/model_paginated_saved_filter_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go index 72fec520f..7cb07d00d 100644 --- a/model_paginated_script_list.go +++ b/model_paginated_script_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go index 08b5508be..f1d11e59a 100644 --- a/model_paginated_service_list.go +++ b/model_paginated_service_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go index e86b9abb9..3dcd1650e 100644 --- a/model_paginated_service_template_list.go +++ b/model_paginated_service_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go index ddcd397c9..40435aaed 100644 --- a/model_paginated_site_group_list.go +++ b/model_paginated_site_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go index a580aaeda..1934e59f5 100644 --- a/model_paginated_site_list.go +++ b/model_paginated_site_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_subscription_list.go b/model_paginated_subscription_list.go new file mode 100644 index 000000000..af56a666c --- /dev/null +++ b/model_paginated_subscription_list.go @@ -0,0 +1,291 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the PaginatedSubscriptionList type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PaginatedSubscriptionList{} + +// PaginatedSubscriptionList struct for PaginatedSubscriptionList +type PaginatedSubscriptionList struct { + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Subscription `json:"results"` + AdditionalProperties map[string]interface{} +} + +type _PaginatedSubscriptionList PaginatedSubscriptionList + +// NewPaginatedSubscriptionList instantiates a new PaginatedSubscriptionList object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPaginatedSubscriptionList(count int32, results []Subscription) *PaginatedSubscriptionList { + this := PaginatedSubscriptionList{} + this.Count = count + this.Results = results + return &this +} + +// NewPaginatedSubscriptionListWithDefaults instantiates a new PaginatedSubscriptionList object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPaginatedSubscriptionListWithDefaults() *PaginatedSubscriptionList { + this := PaginatedSubscriptionList{} + return &this +} + +// GetCount returns the Count field value +func (o *PaginatedSubscriptionList) GetCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Count +} + +// GetCountOk returns a tuple with the Count field value +// and a boolean to check if the value has been set. +func (o *PaginatedSubscriptionList) GetCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Count, true +} + +// SetCount sets field value +func (o *PaginatedSubscriptionList) SetCount(v int32) { + o.Count = v +} + +// GetNext returns the Next field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedSubscriptionList) GetNext() string { + if o == nil || IsNil(o.Next.Get()) { + var ret string + return ret + } + return *o.Next.Get() +} + +// GetNextOk returns a tuple with the Next field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedSubscriptionList) GetNextOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Next.Get(), o.Next.IsSet() +} + +// HasNext returns a boolean if a field has been set. +func (o *PaginatedSubscriptionList) HasNext() bool { + if o != nil && o.Next.IsSet() { + return true + } + + return false +} + +// SetNext gets a reference to the given NullableString and assigns it to the Next field. +func (o *PaginatedSubscriptionList) SetNext(v string) { + o.Next.Set(&v) +} +// SetNextNil sets the value for Next to be an explicit nil +func (o *PaginatedSubscriptionList) SetNextNil() { + o.Next.Set(nil) +} + +// UnsetNext ensures that no value is present for Next, not even an explicit nil +func (o *PaginatedSubscriptionList) UnsetNext() { + o.Next.Unset() +} + +// GetPrevious returns the Previous field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PaginatedSubscriptionList) GetPrevious() string { + if o == nil || IsNil(o.Previous.Get()) { + var ret string + return ret + } + return *o.Previous.Get() +} + +// GetPreviousOk returns a tuple with the Previous field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PaginatedSubscriptionList) GetPreviousOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.Previous.Get(), o.Previous.IsSet() +} + +// HasPrevious returns a boolean if a field has been set. +func (o *PaginatedSubscriptionList) HasPrevious() bool { + if o != nil && o.Previous.IsSet() { + return true + } + + return false +} + +// SetPrevious gets a reference to the given NullableString and assigns it to the Previous field. +func (o *PaginatedSubscriptionList) SetPrevious(v string) { + o.Previous.Set(&v) +} +// SetPreviousNil sets the value for Previous to be an explicit nil +func (o *PaginatedSubscriptionList) SetPreviousNil() { + o.Previous.Set(nil) +} + +// UnsetPrevious ensures that no value is present for Previous, not even an explicit nil +func (o *PaginatedSubscriptionList) UnsetPrevious() { + o.Previous.Unset() +} + +// GetResults returns the Results field value +func (o *PaginatedSubscriptionList) GetResults() []Subscription { + if o == nil { + var ret []Subscription + return ret + } + + return o.Results +} + +// GetResultsOk returns a tuple with the Results field value +// and a boolean to check if the value has been set. +func (o *PaginatedSubscriptionList) GetResultsOk() ([]Subscription, bool) { + if o == nil { + return nil, false + } + return o.Results, true +} + +// SetResults sets field value +func (o *PaginatedSubscriptionList) SetResults(v []Subscription) { + o.Results = v +} + +func (o PaginatedSubscriptionList) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PaginatedSubscriptionList) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["count"] = o.Count + if o.Next.IsSet() { + toSerialize["next"] = o.Next.Get() + } + if o.Previous.IsSet() { + toSerialize["previous"] = o.Previous.Get() + } + toSerialize["results"] = o.Results + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PaginatedSubscriptionList) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "count", + "results", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varPaginatedSubscriptionList := _PaginatedSubscriptionList{} + + err = json.Unmarshal(data, &varPaginatedSubscriptionList) + + if err != nil { + return err + } + + *o = PaginatedSubscriptionList(varPaginatedSubscriptionList) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "count") + delete(additionalProperties, "next") + delete(additionalProperties, "previous") + delete(additionalProperties, "results") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePaginatedSubscriptionList struct { + value *PaginatedSubscriptionList + isSet bool +} + +func (v NullablePaginatedSubscriptionList) Get() *PaginatedSubscriptionList { + return v.value +} + +func (v *NullablePaginatedSubscriptionList) Set(val *PaginatedSubscriptionList) { + v.value = val + v.isSet = true +} + +func (v NullablePaginatedSubscriptionList) IsSet() bool { + return v.isSet +} + +func (v *NullablePaginatedSubscriptionList) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePaginatedSubscriptionList(val *PaginatedSubscriptionList) *NullablePaginatedSubscriptionList { + return &NullablePaginatedSubscriptionList{value: val, isSet: true} +} + +func (v NullablePaginatedSubscriptionList) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePaginatedSubscriptionList) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go index 129bb69b6..8396766c3 100644 --- a/model_paginated_tag_list.go +++ b/model_paginated_tag_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go index 5fcddc543..28f7a9479 100644 --- a/model_paginated_tenant_group_list.go +++ b/model_paginated_tenant_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go index 812dfe386..47171d67d 100644 --- a/model_paginated_tenant_list.go +++ b/model_paginated_tenant_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go index 9a4bd2ab9..ef4ffa5ad 100644 --- a/model_paginated_token_list.go +++ b/model_paginated_token_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go index df1b972fb..62e15f811 100644 --- a/model_paginated_tunnel_group_list.go +++ b/model_paginated_tunnel_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go index 768bdd00e..f1573f68b 100644 --- a/model_paginated_tunnel_list.go +++ b/model_paginated_tunnel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go index f81a84ee0..0016390f7 100644 --- a/model_paginated_tunnel_termination_list.go +++ b/model_paginated_tunnel_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go index 2d6a25913..60158a9c2 100644 --- a/model_paginated_user_list.go +++ b/model_paginated_user_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go index 6971b8d29..669c94054 100644 --- a/model_paginated_virtual_chassis_list.go +++ b/model_paginated_virtual_chassis_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go index 3c5f35c09..43b8f5f94 100644 --- a/model_paginated_virtual_device_context_list.go +++ b/model_paginated_virtual_device_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go index 1a16c146d..0fe3e2fbf 100644 --- a/model_paginated_virtual_disk_list.go +++ b/model_paginated_virtual_disk_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go index a4ee1f21d..c4999c512 100644 --- a/model_paginated_virtual_machine_with_config_context_list.go +++ b/model_paginated_virtual_machine_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go index cd2ac4951..7dbf5849b 100644 --- a/model_paginated_vlan_group_list.go +++ b/model_paginated_vlan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go index 28d8921ca..902c4214f 100644 --- a/model_paginated_vlan_list.go +++ b/model_paginated_vlan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go index c7d824fa8..45a4ea1b7 100644 --- a/model_paginated_vm_interface_list.go +++ b/model_paginated_vm_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go index 95d2794d7..71e41b578 100644 --- a/model_paginated_vrf_list.go +++ b/model_paginated_vrf_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go index 242804243..c251bc5c7 100644 --- a/model_paginated_webhook_list.go +++ b/model_paginated_webhook_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go index c311ebbe7..9fd07a72c 100644 --- a/model_paginated_wireless_lan_group_list.go +++ b/model_paginated_wireless_lan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go index cc98bc170..cc1d91270 100644 --- a/model_paginated_wireless_lan_list.go +++ b/model_paginated_wireless_lan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go index 6fb1c17df..c2968f550 100644 --- a/model_paginated_wireless_link_list.go +++ b/model_paginated_wireless_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status.go b/model_parent_child_status.go index 06c4e1b12..ffabaf958 100644 --- a/model_parent_child_status.go +++ b/model_parent_child_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go index cb1bfa703..a081ba05c 100644 --- a/model_parent_child_status_1.go +++ b/model_parent_child_status_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_asn_range_request.go b/model_patched_asn_range_request.go index 1b27ab643..5ddf4cf01 100644 --- a/model_patched_asn_range_request.go +++ b/model_patched_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedASNRangeRequest{} // PatchedASNRangeRequest Adds support for custom fields and tags. type PatchedASNRangeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Start *int64 `json:"start,omitempty"` - End *int64 `json:"end,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Start *int64 `json:"start,omitempty"` + End *int64 `json:"end,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,9 +115,9 @@ func (o *PatchedASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedASNRangeRequest) GetRir() RIRRequest { +func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -125,7 +125,7 @@ func (o *PatchedASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedASNRangeRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedASNRangeRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } @@ -211,9 +211,9 @@ func (o *PatchedASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { +func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -222,7 +222,7 @@ func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -238,8 +238,8 @@ func (o *PatchedASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_asn_request.go b/model_patched_asn_request.go index 141b3513f..82e9f5ff1 100644 --- a/model_patched_asn_request.go +++ b/model_patched_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedASNRequest{} // PatchedASNRequest Adds support for custom fields and tags. type PatchedASNRequest struct { // 16- or 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn *int64 `json:"asn,omitempty"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetRir() RIRRequest { +func (o *PatchedASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -93,7 +93,7 @@ func (o *PatchedASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *PatchedASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } @@ -125,9 +125,9 @@ func (o *PatchedASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetTenant() TenantRequest { +func (o *PatchedASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -136,7 +136,7 @@ func (o *PatchedASNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *PatchedASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_bookmark_request.go b/model_patched_bookmark_request.go index 77f3b9cf4..f010f0f43 100644 --- a/model_patched_bookmark_request.go +++ b/model_patched_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedBookmarkRequest{} // PatchedBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedBookmarkRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *UserRequest `json:"user,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,9 +109,9 @@ func (o *PatchedBookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedBookmarkRequest) GetUser() UserRequest { +func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -119,7 +119,7 @@ func (o *PatchedBookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -135,8 +135,8 @@ func (o *PatchedBookmarkRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedBookmarkRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest) { o.User = &v } diff --git a/model_patched_cable_termination_request.go b/model_patched_cable_termination_request.go index f7377564b..d1b084862 100644 --- a/model_patched_cable_termination_request.go +++ b/model_patched_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_circuit_group_request.go b/model_patched_circuit_group_request.go new file mode 100644 index 000000000..d30453c0b --- /dev/null +++ b/model_patched_circuit_group_request.go @@ -0,0 +1,350 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedCircuitGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedCircuitGroupRequest{} + +// PatchedCircuitGroupRequest Adds support for custom fields and tags. +type PatchedCircuitGroupRequest struct { + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedCircuitGroupRequest PatchedCircuitGroupRequest + +// NewPatchedCircuitGroupRequest instantiates a new PatchedCircuitGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedCircuitGroupRequest() *PatchedCircuitGroupRequest { + this := PatchedCircuitGroupRequest{} + return &this +} + +// NewPatchedCircuitGroupRequestWithDefaults instantiates a new PatchedCircuitGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedCircuitGroupRequestWithDefaults() *PatchedCircuitGroupRequest { + this := PatchedCircuitGroupRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedCircuitGroupRequest) SetName(v string) { + o.Name = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedCircuitGroupRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedCircuitGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedCircuitGroupRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedCircuitGroupRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *PatchedCircuitGroupRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *PatchedCircuitGroupRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedCircuitGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedCircuitGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedCircuitGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PatchedCircuitGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedCircuitGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedCircuitGroupRequest := _PatchedCircuitGroupRequest{} + + err = json.Unmarshal(data, &varPatchedCircuitGroupRequest) + + if err != nil { + return err + } + + *o = PatchedCircuitGroupRequest(varPatchedCircuitGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedCircuitGroupRequest struct { + value *PatchedCircuitGroupRequest + isSet bool +} + +func (v NullablePatchedCircuitGroupRequest) Get() *PatchedCircuitGroupRequest { + return v.value +} + +func (v *NullablePatchedCircuitGroupRequest) Set(val *PatchedCircuitGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedCircuitGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedCircuitGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedCircuitGroupRequest(val *PatchedCircuitGroupRequest) *NullablePatchedCircuitGroupRequest { + return &NullablePatchedCircuitGroupRequest{value: val, isSet: true} +} + +func (v NullablePatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedCircuitGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_circuit_termination_request.go b/model_patched_circuit_termination_request.go index 5367122df..a38ffcee8 100644 --- a/model_patched_circuit_termination_request.go +++ b/model_patched_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCircuitTerminationRequest{} // PatchedCircuitTerminationRequest Adds support for custom fields and tags. type PatchedCircuitTerminationRequest struct { - Circuit *CircuitRequest `json:"circuit,omitempty"` - TermSide *Termination1 `json:"term_side,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + TermSide *Termination1 `json:"term_side,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -59,9 +59,9 @@ func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminatio } // GetCircuit returns the Circuit field value if set, zero value otherwise. -func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil || IsNil(o.Circuit) { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } return *o.Circuit @@ -69,7 +69,7 @@ func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil || IsNil(o.Circuit) { return nil, false } @@ -85,8 +85,8 @@ func (o *PatchedCircuitTerminationRequest) HasCircuit() bool { return false } -// SetCircuit gets a reference to the given CircuitRequest and assigns it to the Circuit field. -func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest) { +// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. +func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = &v } @@ -123,9 +123,9 @@ func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { +func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -134,7 +134,7 @@ func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -150,8 +150,8 @@ func (o *PatchedCircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -166,9 +166,9 @@ func (o *PatchedCircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { +func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest + var ret BriefProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -177,7 +177,7 @@ func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkR // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go index cfb64cab6..6ad1ce4db 100644 --- a/model_patched_circuit_type_request.go +++ b/model_patched_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go index 10b1fdbac..d5c132088 100644 --- a/model_patched_cluster_group_request.go +++ b/model_patched_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go index bcb47d3cd..f9e3c0441 100644 --- a/model_patched_cluster_type_request.go +++ b/model_patched_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_config_context_request.go b/model_patched_config_context_request.go index f8665cfe6..a52336ac5 100644 --- a/model_patched_config_context_request.go +++ b/model_patched_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedConfigContextRequest{} // PatchedConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data,omitempty"` + Name *string `json:"name,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -605,9 +605,9 @@ func (o *PatchedConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -615,7 +615,7 @@ func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -631,8 +631,8 @@ func (o *PatchedConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_config_template_request.go b/model_patched_config_template_request.go index f4db50b41..49c775dd9 100644 --- a/model_patched_config_template_request.go +++ b/model_patched_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,9 +24,9 @@ type PatchedConfigTemplateRequest struct { // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode *string `json:"template_code,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + TemplateCode *string `json:"template_code,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -189,7 +189,7 @@ func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedConfigTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_contact_request.go b/model_patched_contact_request.go index d5baee7b4..ebf63f050 100644 --- a/model_patched_contact_request.go +++ b/model_patched_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedContactRequest{} // PatchedContactRequest Adds support for custom fields and tags. type PatchedContactRequest struct { - Group NullableContactGroupRequest `json:"group,omitempty"` - Name *string `json:"name,omitempty"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableBriefContactGroupRequest `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,9 +53,9 @@ func NewPatchedContactRequestWithDefaults() *PatchedContactRequest { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { +func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ContactGroupRequest + var ret BriefContactGroupRequest return ret } return *o.Group.Get() @@ -64,7 +64,7 @@ func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool) { +func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { if o == nil { return nil, false } @@ -80,8 +80,8 @@ func (o *PatchedContactRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableContactGroupRequest and assigns it to the Group field. -func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest) { +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go index 70f768954..f8c0a6226 100644 --- a/model_patched_contact_role_request.go +++ b/model_patched_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go index 19833836f..197bd4037 100644 --- a/model_patched_custom_link_request.go +++ b/model_patched_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go index eeef729d4..cfcf636b0 100644 --- a/model_patched_dashboard_request.go +++ b/model_patched_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_device_bay_request.go b/model_patched_device_bay_request.go index a9acadd79..fecd6adad 100644 --- a/model_patched_device_bay_request.go +++ b/model_patched_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedDeviceBayRequest{} // PatchedDeviceBayRequest Adds support for custom fields and tags. type PatchedDeviceBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -60,7 +60,7 @@ func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedDeviceBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -178,9 +178,9 @@ func (o *PatchedDeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -189,7 +189,7 @@ func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_patched_device_bay_template_request.go b/model_patched_device_bay_template_request.go index 0bb253897..7ca91202e 100644 --- a/model_patched_device_bay_template_request.go +++ b/model_patched_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedDeviceBayTemplateRequest{} // PatchedDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedDeviceBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -48,9 +48,9 @@ func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -58,7 +58,7 @@ func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } diff --git a/model_patched_device_role_request.go b/model_patched_device_role_request.go index f2ef464b9..97a30aaa5 100644 --- a/model_patched_device_role_request.go +++ b/model_patched_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,11 @@ type PatchedDeviceRoleRequest struct { Slug *string `json:"slug,omitempty"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedDeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -190,7 +190,7 @@ func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_export_template_request.go b/model_patched_export_template_request.go index db7c07934..aea76a28a 100644 --- a/model_patched_export_template_request.go +++ b/model_patched_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,8 @@ type PatchedExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -278,9 +278,9 @@ func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -288,7 +288,7 @@ func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -304,8 +304,8 @@ func (o *PatchedExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go index de95655e2..10b0f3275 100644 --- a/model_patched_fhrp_group_assignment_request.go +++ b/model_patched_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{} // PatchedFHRPGroupAssignmentRequest Adds support for custom fields and tags. type PatchedFHRPGroupAssignmentRequest struct { - Group *FHRPGroupRequest `json:"group,omitempty"` - InterfaceType *string `json:"interface_type,omitempty"` - InterfaceId *int64 `json:"interface_id,omitempty"` - Priority *int32 `json:"priority,omitempty"` + Group *BriefFHRPGroupRequest `json:"group,omitempty"` + InterfaceType *string `json:"interface_type,omitempty"` + InterfaceId *int64 `json:"interface_id,omitempty"` + Priority *int32 `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,9 +46,9 @@ func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignm } // GetGroup returns the Group field value if set, zero value otherwise. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil || IsNil(o.Group) { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } return *o.Group @@ -56,7 +56,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil || IsNil(o.Group) { return nil, false } @@ -72,8 +72,8 @@ func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given FHRPGroupRequest and assigns it to the Group field. -func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +// SetGroup gets a reference to the given BriefFHRPGroupRequest and assigns it to the Group field. +func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = &v } diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go index 1d2151449..adec461c2 100644 --- a/model_patched_fhrp_group_request.go +++ b/model_patched_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{} // PatchedFHRPGroupRequest Adds support for custom fields and tags. type PatchedFHRPGroupRequest struct { - Name *string `json:"name,omitempty"` - Protocol *FHRPGroupProtocol `json:"protocol,omitempty"` - GroupId *int32 `json:"group_id,omitempty"` - AuthType *AuthenticationType `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"` + GroupId *int32 `json:"group_id,omitempty"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,9 +83,9 @@ func (o *PatchedFHRPGroupRequest) SetName(v string) { } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil || IsNil(o.Protocol) { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } return *o.Protocol @@ -93,7 +93,7 @@ func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedFHRPGroupRequest) HasProtocol() bool { return false } -// SetProtocol gets a reference to the given FHRPGroupProtocol and assigns it to the Protocol field. -func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +// SetProtocol gets a reference to the given BriefFHRPGroupProtocol and assigns it to the Protocol field. +func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = &v } diff --git a/model_patched_group_request.go b/model_patched_group_request.go index 5d42e7f8d..058fe7fea 100644 --- a/model_patched_group_request.go +++ b/model_patched_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go index 0544fcc6f..d36b4493f 100644 --- a/model_patched_image_attachment_request.go +++ b/model_patched_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,8 +24,6 @@ type PatchedImageAttachmentRequest struct { ObjectId *int64 `json:"object_id,omitempty"` Name *string `json:"name,omitempty"` Image **os.File `json:"image,omitempty"` - ImageHeight *int32 `json:"image_height,omitempty"` - ImageWidth *int32 `json:"image_width,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,70 +174,6 @@ func (o *PatchedImageAttachmentRequest) SetImage(v *os.File) { o.Image = &v } -// GetImageHeight returns the ImageHeight field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageHeight() int32 { - if o == nil || IsNil(o.ImageHeight) { - var ret int32 - return ret - } - return *o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil || IsNil(o.ImageHeight) { - return nil, false - } - return o.ImageHeight, true -} - -// HasImageHeight returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageHeight() bool { - if o != nil && !IsNil(o.ImageHeight) { - return true - } - - return false -} - -// SetImageHeight gets a reference to the given int32 and assigns it to the ImageHeight field. -func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = &v -} - -// GetImageWidth returns the ImageWidth field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageWidth() int32 { - if o == nil || IsNil(o.ImageWidth) { - var ret int32 - return ret - } - return *o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil || IsNil(o.ImageWidth) { - return nil, false - } - return o.ImageWidth, true -} - -// HasImageWidth returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageWidth() bool { - if o != nil && !IsNil(o.ImageWidth) { - return true - } - - return false -} - -// SetImageWidth gets a reference to the given int32 and assigns it to the ImageWidth field. -func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = &v -} - func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -262,12 +196,6 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Image) { toSerialize["image"] = o.Image } - if !IsNil(o.ImageHeight) { - toSerialize["image_height"] = o.ImageHeight - } - if !IsNil(o.ImageWidth) { - toSerialize["image_width"] = o.ImageWidth - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -294,8 +222,6 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_inventory_item_request.go b/model_patched_inventory_item_request.go index 399e6ab59..3f91fbade 100644 --- a/model_patched_inventory_item_request.go +++ b/model_patched_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedInventoryItemRequest{} // PatchedInventoryItemRequest Adds support for custom fields and tags. type PatchedInventoryItemRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { +func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,8 +87,8 @@ func (o *PatchedInventoryItemRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -200,9 +200,9 @@ func (o *PatchedInventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -211,7 +211,7 @@ func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -227,8 +227,8 @@ func (o *PatchedInventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -243,9 +243,9 @@ func (o *PatchedInventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -254,7 +254,7 @@ func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -270,8 +270,8 @@ func (o *PatchedInventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go index f3abd36d0..9e585d79f 100644 --- a/model_patched_inventory_item_role_request.go +++ b/model_patched_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go index 070c2170d..7fe7d8886 100644 --- a/model_patched_inventory_item_template_request.go +++ b/model_patched_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedInventoryItemTemplateRequest{} // PatchedInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedInventoryItemTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -55,9 +55,9 @@ func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemT } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -65,7 +65,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } @@ -194,9 +194,9 @@ func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -205,7 +205,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -221,8 +221,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -237,9 +237,9 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -248,7 +248,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequ // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -264,8 +264,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go index 73cb0720e..6329db2c8 100644 --- a/model_patched_l2_vpn_termination_request.go +++ b/model_patched_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedL2VPNTerminationRequest{} // PatchedL2VPNTerminationRequest Adds support for custom fields and tags. type PatchedL2VPNTerminationRequest struct { - L2vpn *L2VPNRequest `json:"l2vpn,omitempty"` + L2vpn *BriefL2VPNRequest `json:"l2vpn,omitempty"` AssignedObjectType *string `json:"assigned_object_type,omitempty"` AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -47,9 +47,9 @@ func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationReq } // GetL2vpn returns the L2vpn field value if set, zero value otherwise. -func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil || IsNil(o.L2vpn) { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } return *o.L2vpn @@ -57,7 +57,7 @@ func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil || IsNil(o.L2vpn) { return nil, false } @@ -73,8 +73,8 @@ func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool { return false } -// SetL2vpn gets a reference to the given L2VPNRequest and assigns it to the L2vpn field. -func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +// SetL2vpn gets a reference to the given BriefL2VPNRequest and assigns it to the L2vpn field. +func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = &v } diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go index 7a325529e..735f0a2fb 100644 --- a/model_patched_manufacturer_request.go +++ b/model_patched_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_module_bay_request.go b/model_patched_module_bay_request.go index 8a6147e44..7aba1f58b 100644 --- a/model_patched_module_bay_request.go +++ b/model_patched_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,10 @@ var _ MappedNullable = &PatchedModuleBayRequest{} // PatchedModuleBayRequest Adds support for custom fields and tags. type PatchedModuleBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` + InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -52,9 +53,9 @@ func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { +func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -62,7 +63,7 @@ func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -78,11 +79,54 @@ func (o *PatchedModuleBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PatchedModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PatchedModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PatchedModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value if set, zero value otherwise. func (o *PatchedModuleBayRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -116,9 +160,9 @@ func (o *PatchedModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -127,7 +171,7 @@ func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -143,8 +187,8 @@ func (o *PatchedModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } @@ -331,6 +375,9 @@ func (o PatchedModuleBayRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Device) { toSerialize["device"] = o.Device } + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -375,6 +422,7 @@ func (o *PatchedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_patched_module_bay_template_request.go b/model_patched_module_bay_template_request.go index baeb07d2c..30f78eafc 100644 --- a/model_patched_module_bay_template_request.go +++ b/model_patched_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,8 @@ var _ MappedNullable = &PatchedModuleBayTemplateRequest{} // PatchedModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedModuleBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -49,36 +50,90 @@ func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateR return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } - return *o.DeviceType + return *o.DeviceType.Get() } // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { - if o == nil || IsNil(o.DeviceType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { return nil, false } - return o.DeviceType, true + return o.DeviceType.Get(), o.DeviceType.IsSet() } // HasDeviceType returns a boolean if a field has been set. func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool { - if o != nil && !IsNil(o.DeviceType) { + if o != nil && o.DeviceType.IsSet() { return true } return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = &v +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value if set, zero value otherwise. @@ -219,8 +274,11 @@ func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o PatchedModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.DeviceType) { - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() } if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -257,6 +315,7 @@ func (o *PatchedModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_patched_notification_group_request.go b/model_patched_notification_group_request.go new file mode 100644 index 000000000..3945f2f10 --- /dev/null +++ b/model_patched_notification_group_request.go @@ -0,0 +1,266 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedNotificationGroupRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedNotificationGroupRequest{} + +// PatchedNotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedNotificationGroupRequest struct { + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedNotificationGroupRequest PatchedNotificationGroupRequest + +// NewPatchedNotificationGroupRequest instantiates a new PatchedNotificationGroupRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedNotificationGroupRequest() *PatchedNotificationGroupRequest { + this := PatchedNotificationGroupRequest{} + return &this +} + +// NewPatchedNotificationGroupRequestWithDefaults instantiates a new PatchedNotificationGroupRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedNotificationGroupRequestWithDefaults() *PatchedNotificationGroupRequest { + this := PatchedNotificationGroupRequest{} + return &this +} + +// GetName returns the Name field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *PatchedNotificationGroupRequest) SetName(v string) { + o.Name = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedNotificationGroupRequest) SetDescription(v string) { + o.Description = &v +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *PatchedNotificationGroupRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetUsers returns the Users field value if set, zero value otherwise. +func (o *PatchedNotificationGroupRequest) GetUsers() []int32 { + if o == nil || IsNil(o.Users) { + var ret []int32 + return ret + } + return o.Users +} + +// GetUsersOk returns a tuple with the Users field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationGroupRequest) GetUsersOk() ([]int32, bool) { + if o == nil || IsNil(o.Users) { + return nil, false + } + return o.Users, true +} + +// HasUsers returns a boolean if a field has been set. +func (o *PatchedNotificationGroupRequest) HasUsers() bool { + if o != nil && !IsNil(o.Users) { + return true + } + + return false +} + +// SetUsers gets a reference to the given []int32 and assigns it to the Users field. +func (o *PatchedNotificationGroupRequest) SetUsers(v []int32) { + o.Users = v +} + +func (o PatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedNotificationGroupRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Users) { + toSerialize["users"] = o.Users + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedNotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedNotificationGroupRequest := _PatchedNotificationGroupRequest{} + + err = json.Unmarshal(data, &varPatchedNotificationGroupRequest) + + if err != nil { + return err + } + + *o = PatchedNotificationGroupRequest(varPatchedNotificationGroupRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") + delete(additionalProperties, "description") + delete(additionalProperties, "groups") + delete(additionalProperties, "users") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedNotificationGroupRequest struct { + value *PatchedNotificationGroupRequest + isSet bool +} + +func (v NullablePatchedNotificationGroupRequest) Get() *PatchedNotificationGroupRequest { + return v.value +} + +func (v *NullablePatchedNotificationGroupRequest) Set(val *PatchedNotificationGroupRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedNotificationGroupRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedNotificationGroupRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedNotificationGroupRequest(val *PatchedNotificationGroupRequest) *NullablePatchedNotificationGroupRequest { + return &NullablePatchedNotificationGroupRequest{value: val, isSet: true} +} + +func (v NullablePatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedNotificationGroupRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_notification_request.go b/model_patched_notification_request.go new file mode 100644 index 000000000..01178aef3 --- /dev/null +++ b/model_patched_notification_request.go @@ -0,0 +1,314 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the PatchedNotificationRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedNotificationRequest{} + +// PatchedNotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedNotificationRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Read NullableTime `json:"read,omitempty"` + EventType *Event `json:"event_type,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedNotificationRequest PatchedNotificationRequest + +// NewPatchedNotificationRequest instantiates a new PatchedNotificationRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedNotificationRequest() *PatchedNotificationRequest { + this := PatchedNotificationRequest{} + return &this +} + +// NewPatchedNotificationRequestWithDefaults instantiates a new PatchedNotificationRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedNotificationRequestWithDefaults() *PatchedNotificationRequest { + this := PatchedNotificationRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *PatchedNotificationRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetObjectId() int64 { + if o == nil || IsNil(o.ObjectId) { + var ret int64 + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetObjectIdOk() (*int64, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given int64 and assigns it to the ObjectId field. +func (o *PatchedNotificationRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetUser() BriefUserRequest { + if o == nil || IsNil(o.User) { + var ret BriefUserRequest + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedNotificationRequest) SetUser(v BriefUserRequest) { + o.User = &v +} + +// GetRead returns the Read field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedNotificationRequest) GetRead() time.Time { + if o == nil || IsNil(o.Read.Get()) { + var ret time.Time + return ret + } + return *o.Read.Get() +} + +// GetReadOk returns a tuple with the Read field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedNotificationRequest) GetReadOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Read.Get(), o.Read.IsSet() +} + +// HasRead returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasRead() bool { + if o != nil && o.Read.IsSet() { + return true + } + + return false +} + +// SetRead gets a reference to the given NullableTime and assigns it to the Read field. +func (o *PatchedNotificationRequest) SetRead(v time.Time) { + o.Read.Set(&v) +} +// SetReadNil sets the value for Read to be an explicit nil +func (o *PatchedNotificationRequest) SetReadNil() { + o.Read.Set(nil) +} + +// UnsetRead ensures that no value is present for Read, not even an explicit nil +func (o *PatchedNotificationRequest) UnsetRead() { + o.Read.Unset() +} + +// GetEventType returns the EventType field value if set, zero value otherwise. +func (o *PatchedNotificationRequest) GetEventType() Event { + if o == nil || IsNil(o.EventType) { + var ret Event + return ret + } + return *o.EventType +} + +// GetEventTypeOk returns a tuple with the EventType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedNotificationRequest) GetEventTypeOk() (*Event, bool) { + if o == nil || IsNil(o.EventType) { + return nil, false + } + return o.EventType, true +} + +// HasEventType returns a boolean if a field has been set. +func (o *PatchedNotificationRequest) HasEventType() bool { + if o != nil && !IsNil(o.EventType) { + return true + } + + return false +} + +// SetEventType gets a reference to the given Event and assigns it to the EventType field. +func (o *PatchedNotificationRequest) SetEventType(v Event) { + o.EventType = &v +} + +func (o PatchedNotificationRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedNotificationRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + if o.Read.IsSet() { + toSerialize["read"] = o.Read.Get() + } + if !IsNil(o.EventType) { + toSerialize["event_type"] = o.EventType + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedNotificationRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedNotificationRequest := _PatchedNotificationRequest{} + + err = json.Unmarshal(data, &varPatchedNotificationRequest) + + if err != nil { + return err + } + + *o = PatchedNotificationRequest(varPatchedNotificationRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + delete(additionalProperties, "read") + delete(additionalProperties, "event_type") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedNotificationRequest struct { + value *PatchedNotificationRequest + isSet bool +} + +func (v NullablePatchedNotificationRequest) Get() *PatchedNotificationRequest { + return v.value +} + +func (v *NullablePatchedNotificationRequest) Set(val *PatchedNotificationRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedNotificationRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedNotificationRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedNotificationRequest(val *PatchedNotificationRequest) *NullablePatchedNotificationRequest { + return &NullablePatchedNotificationRequest{value: val, isSet: true} +} + +func (v NullablePatchedNotificationRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedNotificationRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_object_permission_request.go b/model_patched_object_permission_request.go index 39a1c0ffd..42a8b2b0b 100644 --- a/model_patched_object_permission_request.go +++ b/model_patched_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_platform_request.go b/model_patched_platform_request.go index 2b69b6bb3..a41cebf88 100644 --- a/model_patched_platform_request.go +++ b/model_patched_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPlatformRequest{} // PatchedPlatformRequest Adds support for custom fields and tags. type PatchedPlatformRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedPlatformRequest) SetSlug(v string) { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -124,7 +124,7 @@ func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedPlatformRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } @@ -156,9 +156,9 @@ func (o *PatchedPlatformRequest) UnsetManufacturer() { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -167,7 +167,7 @@ func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -183,8 +183,8 @@ func (o *PatchedPlatformRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_power_panel_request.go b/model_patched_power_panel_request.go index 855e8aea4..f6bd11404 100644 --- a/model_patched_power_panel_request.go +++ b/model_patched_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPowerPanelRequest{} // PatchedPowerPanelRequest Adds support for custom fields and tags. type PatchedPowerPanelRequest struct { - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,9 +49,9 @@ func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { +func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -59,7 +59,7 @@ func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -75,15 +75,15 @@ func (o *PatchedPowerPanelRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { +func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -92,7 +92,7 @@ func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedPowerPanelRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } diff --git a/model_patched_provider_account_request.go b/model_patched_provider_account_request.go index e413eac6c..fad367cc6 100644 --- a/model_patched_provider_account_request.go +++ b/model_patched_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderAccountRequest{} // PatchedProviderAccountRequest Adds support for custom fields and tags. type PatchedProviderAccountRequest struct { - Provider *ProviderRequest `json:"provider,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` Account *string `json:"account,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -63,7 +63,7 @@ func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedProviderAccountRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_network_request.go b/model_patched_provider_network_request.go index f25971cb9..ba7e9e84e 100644 --- a/model_patched_provider_network_request.go +++ b/model_patched_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderNetworkRequest{} // PatchedProviderNetworkRequest Adds support for custom fields and tags. type PatchedProviderNetworkRequest struct { - Provider *ProviderRequest `json:"provider,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` ServiceId *string `json:"service_id,omitempty"` Description *string `json:"description,omitempty"` @@ -49,9 +49,9 @@ func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -59,7 +59,7 @@ func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedProviderNetworkRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_request.go b/model_patched_provider_request.go index 1c4432678..ad5dab626 100644 --- a/model_patched_provider_request.go +++ b/model_patched_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rack_reservation_request.go b/model_patched_rack_reservation_request.go index c5e404cb3..6654331fa 100644 --- a/model_patched_rack_reservation_request.go +++ b/model_patched_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedRackReservationRequest{} // PatchedRackReservationRequest Adds support for custom fields and tags. type PatchedRackReservationRequest struct { - Rack *RackRequest `json:"rack,omitempty"` - Units []int32 `json:"units,omitempty"` - User *UserRequest `json:"user,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack *BriefRackRequest `json:"rack,omitempty"` + Units []int32 `json:"units,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationReque } // GetRack returns the Rack field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetRack() RackRequest { +func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack @@ -60,7 +60,7 @@ func (o *PatchedRackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil || IsNil(o.Rack) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedRackReservationRequest) HasRack() bool { return false } -// SetRack gets a reference to the given RackRequest and assigns it to the Rack field. -func (o *PatchedRackReservationRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given BriefRackRequest and assigns it to the Rack field. +func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = &v } @@ -114,9 +114,9 @@ func (o *PatchedRackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetUser() UserRequest { +func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -124,7 +124,7 @@ func (o *PatchedRackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -140,15 +140,15 @@ func (o *PatchedRackReservationRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedRackReservationRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest) { o.User = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { +func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -157,7 +157,7 @@ func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -173,8 +173,8 @@ func (o *PatchedRackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go index 6d892aa82..ed79eaaa8 100644 --- a/model_patched_rack_role_request.go +++ b/model_patched_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go index 0b99fe529..e5b3aaf71 100644 --- a/model_patched_rir_request.go +++ b/model_patched_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_role_request.go b/model_patched_role_request.go index 7352ad89e..40600e554 100644 --- a/model_patched_role_request.go +++ b/model_patched_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_route_target_request.go b/model_patched_route_target_request.go index b2a367b40..6872dfc47 100644 --- a/model_patched_route_target_request.go +++ b/model_patched_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRouteTargetRequest{} // PatchedRouteTargetRequest Adds support for custom fields and tags. type PatchedRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,9 +81,9 @@ func (o *PatchedRouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { +func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -92,7 +92,7 @@ func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedRouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go index 0f76328b3..e89d8c756 100644 --- a/model_patched_saved_filter_request.go +++ b/model_patched_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_script_input_request.go b/model_patched_script_input_request.go new file mode 100644 index 000000000..54d23f3dd --- /dev/null +++ b/model_patched_script_input_request.go @@ -0,0 +1,288 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" +) + +// checks if the PatchedScriptInputRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedScriptInputRequest{} + +// PatchedScriptInputRequest struct for PatchedScriptInputRequest +type PatchedScriptInputRequest struct { + Data interface{} `json:"data,omitempty"` + Commit *bool `json:"commit,omitempty"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedScriptInputRequest PatchedScriptInputRequest + +// NewPatchedScriptInputRequest instantiates a new PatchedScriptInputRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedScriptInputRequest() *PatchedScriptInputRequest { + this := PatchedScriptInputRequest{} + return &this +} + +// NewPatchedScriptInputRequestWithDefaults instantiates a new PatchedScriptInputRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedScriptInputRequestWithDefaults() *PatchedScriptInputRequest { + this := PatchedScriptInputRequest{} + return &this +} + +// GetData returns the Data field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Data +} + +// GetDataOk returns a tuple with the Data field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedScriptInputRequest) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// HasData returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasData() bool { + if o != nil && !IsNil(o.Data) { + return true + } + + return false +} + +// SetData gets a reference to the given interface{} and assigns it to the Data field. +func (o *PatchedScriptInputRequest) SetData(v interface{}) { + o.Data = v +} + +// GetCommit returns the Commit field value if set, zero value otherwise. +func (o *PatchedScriptInputRequest) GetCommit() bool { + if o == nil || IsNil(o.Commit) { + var ret bool + return ret + } + return *o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedScriptInputRequest) GetCommitOk() (*bool, bool) { + if o == nil || IsNil(o.Commit) { + return nil, false + } + return o.Commit, true +} + +// HasCommit returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasCommit() bool { + if o != nil && !IsNil(o.Commit) { + return true + } + + return false +} + +// SetCommit gets a reference to the given bool and assigns it to the Commit field. +func (o *PatchedScriptInputRequest) SetCommit(v bool) { + o.Commit = &v +} + +// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetScheduleAt() time.Time { + if o == nil || IsNil(o.ScheduleAt.Get()) { + var ret time.Time + return ret + } + return *o.ScheduleAt.Get() +} + +// GetScheduleAtOk returns a tuple with the ScheduleAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedScriptInputRequest) GetScheduleAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ScheduleAt.Get(), o.ScheduleAt.IsSet() +} + +// HasScheduleAt returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasScheduleAt() bool { + if o != nil && o.ScheduleAt.IsSet() { + return true + } + + return false +} + +// SetScheduleAt gets a reference to the given NullableTime and assigns it to the ScheduleAt field. +func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time) { + o.ScheduleAt.Set(&v) +} +// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil +func (o *PatchedScriptInputRequest) SetScheduleAtNil() { + o.ScheduleAt.Set(nil) +} + +// UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +func (o *PatchedScriptInputRequest) UnsetScheduleAt() { + o.ScheduleAt.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedScriptInputRequest) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedScriptInputRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *PatchedScriptInputRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *PatchedScriptInputRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *PatchedScriptInputRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *PatchedScriptInputRequest) UnsetInterval() { + o.Interval.Unset() +} + +func (o PatchedScriptInputRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedScriptInputRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + if !IsNil(o.Commit) { + toSerialize["commit"] = o.Commit + } + if o.ScheduleAt.IsSet() { + toSerialize["schedule_at"] = o.ScheduleAt.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedScriptInputRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedScriptInputRequest := _PatchedScriptInputRequest{} + + err = json.Unmarshal(data, &varPatchedScriptInputRequest) + + if err != nil { + return err + } + + *o = PatchedScriptInputRequest(varPatchedScriptInputRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "commit") + delete(additionalProperties, "schedule_at") + delete(additionalProperties, "interval") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedScriptInputRequest struct { + value *PatchedScriptInputRequest + isSet bool +} + +func (v NullablePatchedScriptInputRequest) Get() *PatchedScriptInputRequest { + return v.value +} + +func (v *NullablePatchedScriptInputRequest) Set(val *PatchedScriptInputRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedScriptInputRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedScriptInputRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedScriptInputRequest(val *PatchedScriptInputRequest) *NullablePatchedScriptInputRequest { + return &NullablePatchedScriptInputRequest{value: val, isSet: true} +} + +func (v NullablePatchedScriptInputRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedScriptInputRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_subscription_request.go b/model_patched_subscription_request.go new file mode 100644 index 000000000..9b5148f49 --- /dev/null +++ b/model_patched_subscription_request.go @@ -0,0 +1,229 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedSubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedSubscriptionRequest{} + +// PatchedSubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type PatchedSubscriptionRequest struct { + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedSubscriptionRequest PatchedSubscriptionRequest + +// NewPatchedSubscriptionRequest instantiates a new PatchedSubscriptionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedSubscriptionRequest() *PatchedSubscriptionRequest { + this := PatchedSubscriptionRequest{} + return &this +} + +// NewPatchedSubscriptionRequestWithDefaults instantiates a new PatchedSubscriptionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedSubscriptionRequestWithDefaults() *PatchedSubscriptionRequest { + this := PatchedSubscriptionRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetObjectType() string { + if o == nil || IsNil(o.ObjectType) { + var ret string + return ret + } + return *o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedSubscriptionRequest) GetObjectTypeOk() (*string, bool) { + if o == nil || IsNil(o.ObjectType) { + return nil, false + } + return o.ObjectType, true +} + +// HasObjectType returns a boolean if a field has been set. +func (o *PatchedSubscriptionRequest) HasObjectType() bool { + if o != nil && !IsNil(o.ObjectType) { + return true + } + + return false +} + +// SetObjectType gets a reference to the given string and assigns it to the ObjectType field. +func (o *PatchedSubscriptionRequest) SetObjectType(v string) { + o.ObjectType = &v +} + +// GetObjectId returns the ObjectId field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetObjectId() int64 { + if o == nil || IsNil(o.ObjectId) { + var ret int64 + return ret + } + return *o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedSubscriptionRequest) GetObjectIdOk() (*int64, bool) { + if o == nil || IsNil(o.ObjectId) { + return nil, false + } + return o.ObjectId, true +} + +// HasObjectId returns a boolean if a field has been set. +func (o *PatchedSubscriptionRequest) HasObjectId() bool { + if o != nil && !IsNil(o.ObjectId) { + return true + } + + return false +} + +// SetObjectId gets a reference to the given int64 and assigns it to the ObjectId field. +func (o *PatchedSubscriptionRequest) SetObjectId(v int64) { + o.ObjectId = &v +} + +// GetUser returns the User field value if set, zero value otherwise. +func (o *PatchedSubscriptionRequest) GetUser() BriefUserRequest { + if o == nil || IsNil(o.User) { + var ret BriefUserRequest + return ret + } + return *o.User +} + +// GetUserOk returns a tuple with the User field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedSubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil || IsNil(o.User) { + return nil, false + } + return o.User, true +} + +// HasUser returns a boolean if a field has been set. +func (o *PatchedSubscriptionRequest) HasUser() bool { + if o != nil && !IsNil(o.User) { + return true + } + + return false +} + +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest) { + o.User = &v +} + +func (o PatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedSubscriptionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.ObjectType) { + toSerialize["object_type"] = o.ObjectType + } + if !IsNil(o.ObjectId) { + toSerialize["object_id"] = o.ObjectId + } + if !IsNil(o.User) { + toSerialize["user"] = o.User + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedSubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedSubscriptionRequest := _PatchedSubscriptionRequest{} + + err = json.Unmarshal(data, &varPatchedSubscriptionRequest) + + if err != nil { + return err + } + + *o = PatchedSubscriptionRequest(varPatchedSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedSubscriptionRequest struct { + value *PatchedSubscriptionRequest + isSet bool +} + +func (v NullablePatchedSubscriptionRequest) Get() *PatchedSubscriptionRequest { + return v.value +} + +func (v *NullablePatchedSubscriptionRequest) Set(val *PatchedSubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedSubscriptionRequest(val *PatchedSubscriptionRequest) *NullablePatchedSubscriptionRequest { + return &NullablePatchedSubscriptionRequest{value: val, isSet: true} +} + +func (v NullablePatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedSubscriptionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go index df4b1fd5b..10aaa4e3f 100644 --- a/model_patched_tag_request.go +++ b/model_patched_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_tenant_request.go b/model_patched_tenant_request.go index 394851841..dd31e2f10 100644 --- a/model_patched_tenant_request.go +++ b/model_patched_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedTenantRequest{} // PatchedTenantRequest Adds support for custom fields and tags. type PatchedTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Group NullableTenantGroupRequest `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Group NullableBriefTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedTenantRequest) SetSlug(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { +func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TenantGroupRequest + var ret BriefTenantGroupRequest return ret } return *o.Group.Get() @@ -124,7 +124,7 @@ func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool) { +func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedTenantRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTenantGroupRequest and assigns it to the Group field. -func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_token_request.go b/model_patched_token_request.go index 87277f496..e9ac649b0 100644 --- a/model_patched_token_request.go +++ b/model_patched_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedTokenRequest{} // PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedTokenRequest struct { - User *UserRequest `json:"user,omitempty"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -50,9 +50,9 @@ func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedTokenRequest) GetUser() UserRequest { +func (o *PatchedTokenRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -60,7 +60,7 @@ func (o *PatchedTokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedTokenRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedTokenRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedTokenRequest) SetUser(v BriefUserRequest) { o.User = &v } diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go index d01b7dc83..82e56512b 100644 --- a/model_patched_tunnel_group_request.go +++ b/model_patched_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_user_request.go b/model_patched_user_request.go index b03530987..7f6a0cd34 100644 --- a/model_patched_user_request.go +++ b/model_patched_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_virtual_disk_request.go b/model_patched_virtual_disk_request.go index 17afe0ffa..eb625f0eb 100644 --- a/model_patched_virtual_disk_request.go +++ b/model_patched_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualDiskRequest{} // PatchedVirtualDiskRequest Adds support for custom fields and tags. type PatchedVirtualDiskRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Size *int32 `json:"size,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Size *int32 `json:"size,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,9 +48,9 @@ func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -58,7 +58,7 @@ func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } diff --git a/model_patched_vlan_group_request.go b/model_patched_vlan_group_request.go index 39f5d4933..c1ce1b6c7 100644 --- a/model_patched_vlan_group_request.go +++ b/model_patched_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,10 @@ var _ MappedNullable = &PatchedVLANGroupRequest{} // PatchedVLANGroupRequest Adds support for custom fields and tags. type PatchedVLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -202,70 +198,6 @@ func (o *PatchedVLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *PatchedVLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *PatchedVLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedVLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -384,12 +316,6 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -425,8 +351,6 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_patched_vrf_request.go b/model_patched_vrf_request.go index 9dfb98881..24dc48de8 100644 --- a/model_patched_vrf_request.go +++ b/model_patched_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &PatchedVRFRequest{} type PatchedVRFRequest struct { Name *string `json:"name,omitempty"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF EnforceUnique *bool `json:"enforce_unique,omitempty"` Description *string `json:"description,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedVRFRequest) UnsetRd() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedVRFRequest) GetTenant() TenantRequest { +func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -140,7 +140,7 @@ func (o *PatchedVRFRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -156,8 +156,8 @@ func (o *PatchedVRFRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedVRFRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go index 5c726471e..e9531a4af 100644 --- a/model_patched_webhook_request.go +++ b/model_patched_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go index 184b35a71..4811b97cb 100644 --- a/model_patched_webhook_request_http_method.go +++ b/model_patched_webhook_request_http_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go index 0c3c8d591..016b76fdc 100644 --- a/model_patched_writable_aggregate_request.go +++ b/model_patched_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{} // PatchedWritableAggregateRequest Adds support for custom fields and tags. type PatchedWritableAggregateRequest struct { - Prefix *string `json:"prefix,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix *string `json:"prefix,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { +func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -92,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -108,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { +func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -125,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go index 158155396..a1cb15401 100644 --- a/model_patched_writable_cable_request.go +++ b/model_patched_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableCableRequest{} // PatchedWritableCableRequest Adds support for custom fields and tags. type PatchedWritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType { +func (o *PatchedWritableCableRequest) GetType() CableType { if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType + var ret CableType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { +func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType) { +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *PatchedWritableCableRequest) SetType(v CableType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest) } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *PatchedWritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *PatchedWritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *PatchedWritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { +func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue { if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit + var ret CableLengthUnitValue return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableReques // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { +func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { +// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. +func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { o.LengthUnit = &v } diff --git a/model_patched_writable_circuit_group_assignment_request.go b/model_patched_writable_circuit_group_assignment_request.go new file mode 100644 index 000000000..be9486871 --- /dev/null +++ b/model_patched_writable_circuit_group_assignment_request.go @@ -0,0 +1,266 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableCircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableCircuitGroupAssignmentRequest{} + +// PatchedWritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type PatchedWritableCircuitGroupAssignmentRequest struct { + Group *BriefCircuitGroupRequest `json:"group,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest + +// NewPatchedWritableCircuitGroupAssignmentRequest instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedWritableCircuitGroupAssignmentRequest() *PatchedWritableCircuitGroupAssignmentRequest { + this := PatchedWritableCircuitGroupAssignmentRequest{} + return &this +} + +// NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new PatchedWritableCircuitGroupAssignmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedWritableCircuitGroupAssignmentRequestWithDefaults() *PatchedWritableCircuitGroupAssignmentRequest { + this := PatchedWritableCircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil || IsNil(o.Group) { + var ret BriefCircuitGroupRequest + return ret + } + return *o.Group +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil || IsNil(o.Group) { + return nil, false + } + return o.Group, true +} + +// HasGroup returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasGroup() bool { + if o != nil && !IsNil(o.Group) { + return true + } + + return false +} + +// SetGroup gets a reference to the given BriefCircuitGroupRequest and assigns it to the Group field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = &v +} + +// GetCircuit returns the Circuit field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest { + if o == nil || IsNil(o.Circuit) { + var ret BriefCircuitRequest + return ret + } + return *o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { + if o == nil || IsNil(o.Circuit) { + return nil, false + } + return o.Circuit, true +} + +// HasCircuit returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasCircuit() bool { + if o != nil && !IsNil(o.Circuit) { + return true + } + + return false +} + +// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest) { + o.Circuit = &v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedWritableCircuitGroupAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o PatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableCircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Group) { + toSerialize["group"] = o.Group + } + if !IsNil(o.Circuit) { + toSerialize["circuit"] = o.Circuit + } + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableCircuitGroupAssignmentRequest := _PatchedWritableCircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varPatchedWritableCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = PatchedWritableCircuitGroupAssignmentRequest(varPatchedWritableCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableCircuitGroupAssignmentRequest struct { + value *PatchedWritableCircuitGroupAssignmentRequest + isSet bool +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) Get() *PatchedWritableCircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) Set(val *PatchedWritableCircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableCircuitGroupAssignmentRequest(val *PatchedWritableCircuitGroupAssignmentRequest) *NullablePatchedWritableCircuitGroupAssignmentRequest { + return &NullablePatchedWritableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go index a9b2fa643..9b68fb84b 100644 --- a/model_patched_writable_circuit_request.go +++ b/model_patched_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,21 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{} // PatchedWritableCircuitRequest Adds support for custom fields and tags. type PatchedWritableCircuitRequest struct { // Unique circuit ID - Cid *string `json:"cid,omitempty"` - Provider *ProviderRequest `json:"provider,omitempty"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type *CircuitTypeRequest `json:"type,omitempty"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid *string `json:"cid,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type *BriefCircuitTypeRequest `json:"type,omitempty"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,9 +90,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { +func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -99,7 +100,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -115,15 +116,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -132,7 +133,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequ // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -148,8 +149,8 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -164,9 +165,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil || IsNil(o.Type) { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } return *o.Type @@ -174,7 +175,7 @@ func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -190,15 +191,15 @@ func (o *PatchedWritableCircuitRequest) HasType() bool { return false } -// SetType gets a reference to the given CircuitTypeRequest and assigns it to the Type field. -func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest) { +// SetType gets a reference to the given BriefCircuitTypeRequest and assigns it to the Type field. +func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -206,7 +207,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -222,15 +223,15 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -239,7 +240,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -255,8 +256,8 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -527,6 +528,38 @@ func (o *PatchedWritableCircuitRequest) SetCustomFields(v map[string]interface{} o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *PatchedWritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -576,6 +609,9 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -611,6 +647,7 @@ func (o *PatchedWritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go index 686e11522..8c1ba9eb2 100644 --- a/model_patched_writable_cluster_request.go +++ b/model_patched_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableClusterRequest{} // PatchedWritableClusterRequest Adds support for custom fields and tags. type PatchedWritableClusterRequest struct { - Name *string `json:"name,omitempty"` - Type *ClusterTypeRequest `json:"type,omitempty"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Type *BriefClusterTypeRequest `json:"type,omitempty"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,9 +84,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { +func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil || IsNil(o.Type) { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } return *o.Type @@ -94,7 +94,7 @@ func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -110,15 +110,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool { return false } -// SetType gets a reference to the given ClusterTypeRequest and assigns it to the Type field. -func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest) { +// SetType gets a reference to the given BriefClusterTypeRequest and assigns it to the Type field. +func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = &v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -127,7 +127,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } @@ -159,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -169,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -185,15 +185,15 @@ func (o *PatchedWritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { +func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { +func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go index 5e75fe1df..8b646c383 100644 --- a/model_patched_writable_console_port_request.go +++ b/model_patched_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{} // PatchedWritableConsolePortRequest Adds support for custom fields and tags. type PatchedWritableConsolePortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsolePortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go index 9fb31ae8e..21e97fa70 100644 --- a/model_patched_writable_console_port_request_speed.go +++ b/model_patched_writable_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go index db1edadc3..4cd1da2d9 100644 --- a/model_patched_writable_console_port_request_type.go +++ b/model_patched_writable_console_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go index a4c19d0c0..e98b18115 100644 --- a/model_patched_writable_console_port_template_request.go +++ b/model_patched_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{} // PatchedWritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsolePortTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go index c5a84421b..f57ad98dd 100644 --- a/model_patched_writable_console_server_port_request.go +++ b/model_patched_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{} // PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags. type PatchedWritableConsoleServerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go index 07402cdcd..67a1600ca 100644 --- a/model_patched_writable_console_server_port_template_request.go +++ b/model_patched_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{} // PatchedWritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsoleServerPortTemplateRequestWithDefaults() *PatchedWr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() Device // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() Module // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go index 8a792f86b..0afcf3ba4 100644 --- a/model_patched_writable_contact_assignment_request.go +++ b/model_patched_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{} // PatchedWritableContactAssignmentRequest Adds support for custom fields and tags. type PatchedWritableContactAssignmentRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Contact *ContactRequest `json:"contact,omitempty"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Contact *BriefContactRequest `json:"contact,omitempty"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil || IsNil(o.Contact) { - var ret ContactRequest + var ret BriefContactRequest return ret } return *o.Contact @@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil || IsNil(o.Contact) { return nil, false } @@ -139,15 +139,15 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool { return false } -// SetContact gets a reference to the given ContactRequest and assigns it to the Contact field. -func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest) { +// SetContact gets a reference to the given BriefContactRequest and assigns it to the Contact field. +func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = &v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -156,7 +156,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -172,8 +172,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -188,9 +188,9 @@ func (o *PatchedWritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -198,7 +198,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmen // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -214,8 +214,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go index b7868b9e7..19503e255 100644 --- a/model_patched_writable_contact_group_request.go +++ b/model_patched_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go index 685a24ba2..2a0321c11 100644 --- a/model_patched_writable_custom_field_choice_set_request.go +++ b/model_patched_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request_base_choices.go b/model_patched_writable_custom_field_choice_set_request_base_choices.go index 05ed85e77..e0bba990d 100644 --- a/model_patched_writable_custom_field_choice_set_request_base_choices.go +++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go index 4e6a76214..5e5a7d9de 100644 --- a/model_patched_writable_custom_field_request.go +++ b/model_patched_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,10 @@ type PatchedWritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -40,6 +42,8 @@ type PatchedWritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -47,9 +51,9 @@ type PatchedWritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -339,6 +343,38 @@ func (o *PatchedWritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -532,6 +568,39 @@ func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -683,9 +752,9 @@ func (o *PatchedWritableCustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -694,7 +763,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetR // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -710,8 +779,8 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -791,6 +860,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -809,6 +881,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -857,12 +932,14 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go index 617a06855..b3b9850d6 100644 --- a/model_patched_writable_custom_field_request_filter_logic.go +++ b/model_patched_writable_custom_field_request_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go index 3efb71f2c..23559ae84 100644 --- a/model_patched_writable_custom_field_request_type.go +++ b/model_patched_writable_custom_field_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go index 2ebd0d168..400ecc5cf 100644 --- a/model_patched_writable_custom_field_request_ui_editable.go +++ b/model_patched_writable_custom_field_request_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go index 2b2609423..a76b0d6ca 100644 --- a/model_patched_writable_custom_field_request_ui_visible.go +++ b/model_patched_writable_custom_field_request_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go index 4446f37e8..a40196121 100644 --- a/model_patched_writable_data_source_request.go +++ b/model_patched_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,10 +24,10 @@ type PatchedWritableDataSourceRequest struct { SourceUrl *string `json:"source_url,omitempty"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -211,38 +211,6 @@ func (o *PatchedWritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PatchedWritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PatchedWritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PatchedWritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -308,6 +276,38 @@ func (o *PatchedWritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -365,15 +365,15 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -404,9 +404,9 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go index e5906960d..0b9e23402 100644 --- a/model_patched_writable_device_type_request.go +++ b/model_patched_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,27 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{} // PatchedWritableDeviceTypeRequest Adds support for custom fields and tags. type PatchedWritableDeviceTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -68,9 +68,9 @@ func NewPatchedWritableDeviceTypeRequestWithDefaults() *PatchedWritableDeviceTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -94,15 +94,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -442,9 +442,9 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -452,7 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDevice // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -468,8 +468,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go index 2594a9023..2f394f858 100644 --- a/model_patched_writable_device_with_config_context_request.go +++ b/model_patched_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,37 +19,37 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{} // PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Role *DeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Role *BriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *RackFace1 `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *RackFace1 `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -120,9 +120,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -130,7 +130,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTy // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -146,15 +146,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role @@ -162,7 +162,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequ // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -178,15 +178,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given DeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -195,7 +195,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantReques // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -211,8 +211,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -227,9 +227,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -238,7 +238,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRe // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -254,8 +254,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -345,9 +345,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -355,7 +355,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -371,15 +371,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -388,7 +388,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRe // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -404,8 +404,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -420,9 +420,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -431,7 +431,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -447,8 +447,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -688,9 +688,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirfl } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -699,7 +699,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddres // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -715,8 +715,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -731,9 +731,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -742,7 +742,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddres // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -758,8 +758,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -774,9 +774,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -785,7 +785,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequ // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -801,8 +801,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -817,9 +817,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -828,7 +828,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequ // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -844,8 +844,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -860,9 +860,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -871,7 +871,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() Virt // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -887,8 +887,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1053,9 +1053,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1064,7 +1064,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() Conf // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1080,8 +1080,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go index 0251a39dc..8972a8e43 100644 --- a/model_patched_writable_event_rule_request.go +++ b/model_patched_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,9 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{} type PatchedWritableEventRuleRequest struct { ObjectTypes []string `json:"object_types,omitempty"` Name *string `json:"name,omitempty"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types,omitempty"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` @@ -126,196 +118,68 @@ func (o *PatchedWritableEventRuleRequest) SetName(v string) { o.Name = &v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } - return *o.TypeJobEnd + return *o.Enabled } -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { +func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { return nil, false } - return o.TypeJobEnd, true + return o.Enabled, true } -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { +// HasEnabled returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { return true } return false } -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { + o.Enabled = &v } -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool +// GetEventTypes returns the EventTypes field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil || IsNil(o.EventTypes) { + var ret []EventRuleEventTypesInner return ret } - return *o.Enabled + return o.EventTypes } -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// GetEventTypesOk returns a tuple with the EventTypes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { +func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil || IsNil(o.EventTypes) { return nil, false } - return o.Enabled, true + return o.EventTypes, true } -// HasEnabled returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { +// HasEventTypes returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool { + if o != nil && !IsNil(o.EventTypes) { return true } return false } -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { - o.Enabled = &v +// SetEventTypes gets a reference to the given []EventRuleEventTypesInner and assigns it to the EventTypes field. +func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v } // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). @@ -570,24 +434,12 @@ func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + if !IsNil(o.EventTypes) { + toSerialize["event_types"] = o.EventTypes + } if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -633,12 +485,8 @@ func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go index 56a5a766f..8c146788b 100644 --- a/model_patched_writable_front_port_request.go +++ b/model_patched_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{} // PatchedWritableFrontPortRequest Adds support for custom fields and tags. type PatchedWritableFrontPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedWritableFrontPortRequestWithDefaults() *PatchedWritableFrontPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,15 +87,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go index a7e2d7d33..205b7257c 100644 --- a/model_patched_writable_front_port_template_request.go +++ b/model_patched_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{} // PatchedWritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *RearPortTemplateRequest `json:"rear_port,omitempty"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + RearPort *BriefRearPortTemplateRequest `json:"rear_port,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,9 +57,9 @@ func NewPatchedWritableFrontPortTemplateRequestWithDefaults() *PatchedWritableFr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -68,7 +68,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -100,9 +100,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -271,9 +271,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil || IsNil(o.RearPort) { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } return *o.RearPort @@ -281,7 +281,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplate // GetRearPortOk returns a tuple with the RearPort field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil || IsNil(o.RearPort) { return nil, false } @@ -297,8 +297,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool { return false } -// SetRearPort gets a reference to the given RearPortTemplateRequest and assigns it to the RearPort field. -func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +// SetRearPort gets a reference to the given BriefRearPortTemplateRequest and assigns it to the RearPort field. +func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = &v } diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go index 58f359b1e..a72ce9090 100644 --- a/model_patched_writable_ike_policy_request.go +++ b/model_patched_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go index 16fbd5659..9b400ad00 100644 --- a/model_patched_writable_ike_policy_request_mode.go +++ b/model_patched_writable_ike_policy_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go index 2a6c5849c..71a408f1b 100644 --- a/model_patched_writable_ike_policy_request_version.go +++ b/model_patched_writable_ike_policy_request_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go index 6de0b3f45..29f372406 100644 --- a/model_patched_writable_ike_proposal_request.go +++ b/model_patched_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go index 98ac12303..0ccfcda63 100644 --- a/model_patched_writable_ike_proposal_request_authentication_algorithm.go +++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go index 89cee3081..51ffc74d2 100644 --- a/model_patched_writable_ike_proposal_request_group.go +++ b/model_patched_writable_ike_proposal_request_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go index 16c8c59a0..a06f523ae 100644 --- a/model_patched_writable_interface_request.go +++ b/model_patched_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{} // PatchedWritableInterfaceRequest Adds support for custom fields and tags. type PatchedWritableInterfaceRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *InterfaceTypeValue `json:"type,omitempty"` @@ -46,16 +46,16 @@ type PatchedWritableInterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,9 +79,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -89,7 +89,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -105,8 +105,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -143,9 +143,9 @@ func (o *PatchedWritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { +func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -154,7 +154,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -170,8 +170,8 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -1011,9 +1011,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1022,7 +1022,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1038,8 +1038,8 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1150,9 +1150,9 @@ func (o *PatchedWritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1161,7 +1161,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1177,8 +1177,8 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go index 8417725be..92e0a858b 100644 --- a/model_patched_writable_interface_request_mode.go +++ b/model_patched_writable_interface_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go index f88d3d205..cef20a302 100644 --- a/model_patched_writable_interface_template_request.go +++ b/model_patched_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{} // PatchedWritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -56,9 +56,9 @@ func NewPatchedWritableInterfaceTemplateRequestWithDefaults() *PatchedWritableIn } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go index 8aced88b8..3b121ba28 100644 --- a/model_patched_writable_ip_address_request.go +++ b/model_patched_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{} // PatchedWritableIPAddressRequest Adds support for custom fields and tags. type PatchedWritableIPAddressRequest struct { Address *string `json:"address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -89,9 +89,9 @@ func (o *PatchedWritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go index c50d40236..8e3ba0c0e 100644 --- a/model_patched_writable_ip_address_request_role.go +++ b/model_patched_writable_ip_address_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go index aa05d1c78..483c89cb0 100644 --- a/model_patched_writable_ip_address_request_status.go +++ b/model_patched_writable_ip_address_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go index 3ae8f8a3b..6c5ee83ca 100644 --- a/model_patched_writable_ip_range_request.go +++ b/model_patched_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{} type PatchedWritableIPRangeRequest struct { StartAddress *string `json:"start_address,omitempty"` EndAddress *string `json:"end_address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -161,9 +161,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeReques } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { +func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go index c5cdba089..f6fba2a7e 100644 --- a/model_patched_writable_ip_range_request_status.go +++ b/model_patched_writable_ip_range_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go index 6c4c674f7..30eecae8e 100644 --- a/model_patched_writable_ip_sec_policy_request.go +++ b/model_patched_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go index 8b81531d6..acb893a49 100644 --- a/model_patched_writable_ip_sec_policy_request_pfs_group.go +++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go index 1c0acccc0..4a6af5dba 100644 --- a/model_patched_writable_ip_sec_profile_request.go +++ b/model_patched_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableIPSecProfileRequest{} // PatchedWritableIPSecProfileRequest Adds support for custom fields and tags. type PatchedWritableIPSecProfileRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Mode *IPSecProfileModeValue `json:"mode,omitempty"` - IkePolicy *IKEPolicyRequest `json:"ike_policy,omitempty"` - IpsecPolicy *IPSecPolicyRequest `json:"ipsec_policy,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Mode *IPSecProfileModeValue `json:"mode,omitempty"` + IkePolicy *BriefIKEPolicyRequest `json:"ike_policy,omitempty"` + IpsecPolicy *BriefIPSecPolicyRequest `json:"ipsec_policy,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,9 +146,9 @@ func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil || IsNil(o.IkePolicy) { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } return *o.IkePolicy @@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil || IsNil(o.IkePolicy) { return nil, false } @@ -172,15 +172,15 @@ func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool { return false } -// SetIkePolicy gets a reference to the given IKEPolicyRequest and assigns it to the IkePolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +// SetIkePolicy gets a reference to the given BriefIKEPolicyRequest and assigns it to the IkePolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = &v } // GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil || IsNil(o.IpsecPolicy) { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } return *o.IpsecPolicy @@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil || IsNil(o.IpsecPolicy) { return nil, false } @@ -204,8 +204,8 @@ func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool { return false } -// SetIpsecPolicy gets a reference to the given IPSecPolicyRequest and assigns it to the IpsecPolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +// SetIpsecPolicy gets a reference to the given BriefIPSecPolicyRequest and assigns it to the IpsecPolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = &v } diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go index b79dc65d8..94c7feb86 100644 --- a/model_patched_writable_ip_sec_proposal_request.go +++ b/model_patched_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go index 97f19a1e7..0f350e592 100644 --- a/model_patched_writable_journal_entry_request.go +++ b/model_patched_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go index 0cbb2327b..841f1bef9 100644 --- a/model_patched_writable_l2_vpn_request.go +++ b/model_patched_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableL2VPNRequest{} // PatchedWritableL2VPNRequest Adds support for custom fields and tags. type PatchedWritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Type *L2VPNTypeValue `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -160,9 +160,9 @@ func (o *PatchedWritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -170,7 +170,7 @@ func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -186,8 +186,8 @@ func (o *PatchedWritableL2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } @@ -320,9 +320,9 @@ func (o *PatchedWritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { +func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -331,7 +331,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -347,8 +347,8 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go index 338f115dd..9d1d8cc52 100644 --- a/model_patched_writable_location_request.go +++ b/model_patched_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableLocationRequest{} // PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { +func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -127,7 +127,7 @@ func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = &v } @@ -192,9 +192,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -202,7 +202,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequ // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -218,15 +218,15 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { +func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -235,7 +235,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go index 5d7316da7..ef38b38ef 100644 --- a/model_patched_writable_module_request.go +++ b/model_patched_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableModuleRequest{} // PatchedWritableModuleRequest Adds support for custom fields and tags. type PatchedWritableModuleRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - ModuleBay *int32 `json:"module_bay,omitempty"` - ModuleType *ModuleTypeRequest `json:"module_type,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + ModuleBay *int32 `json:"module_bay,omitempty"` + ModuleType *BriefModuleTypeRequest `json:"module_type,omitempty"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableModuleRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -117,9 +117,9 @@ func (o *PatchedWritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType @@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil || IsNil(o.ModuleType) { return nil, false } @@ -143,15 +143,15 @@ func (o *PatchedWritableModuleRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given ModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given BriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -159,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -175,8 +175,8 @@ func (o *PatchedWritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go index 284d2cda9..767a1c3e4 100644 --- a/model_patched_writable_module_type_request.go +++ b/model_patched_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{} // PatchedWritableModuleTypeRequest Adds support for custom fields and tags. type PatchedWritableModuleTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +53,9 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -62,7 +63,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -78,8 +79,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } @@ -147,6 +148,38 @@ func (o *PatchedWritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. +func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { + o.Airflow = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -191,9 +224,9 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -201,7 +234,7 @@ func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDevice // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -217,8 +250,8 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -369,6 +402,9 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -412,6 +448,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go index cd730a4d0..59fe67cfb 100644 --- a/model_patched_writable_power_feed_request.go +++ b/model_patched_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{} // PatchedWritablePowerFeedRequest Adds support for custom fields and tags. type PatchedWritablePowerFeedRequest struct { - PowerPanel *PowerPanelRequest `json:"power_panel,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel *BriefPowerPanelRequest `json:"power_panel,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name *string `json:"name,omitempty"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -31,12 +31,12 @@ type PatchedWritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR } // GetPowerPanel returns the PowerPanel field value if set, zero value otherwise. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil || IsNil(o.PowerPanel) { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } return *o.PowerPanel @@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil || IsNil(o.PowerPanel) { return nil, false } @@ -86,15 +86,15 @@ func (o *PatchedWritablePowerFeedRequest) HasPowerPanel() bool { return false } -// SetPowerPanel gets a reference to the given PowerPanelRequest and assigns it to the PowerPanel field. -func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +// SetPowerPanel gets a reference to the given BriefPowerPanelRequest and assigns it to the PowerPanel field. +func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = &v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { +func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -119,8 +119,8 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -455,9 +455,9 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -466,7 +466,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -482,8 +482,8 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go index 9a576dfa2..9bb391b27 100644 --- a/model_patched_writable_power_feed_request_phase.go +++ b/model_patched_writable_power_feed_request_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go index e83c0f2fa..1f536c5f7 100644 --- a/model_patched_writable_power_feed_request_status.go +++ b/model_patched_writable_power_feed_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go index e8b5b27a3..4c3ad86a3 100644 --- a/model_patched_writable_power_feed_request_supply.go +++ b/model_patched_writable_power_feed_request_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go index 6951215c4..419531ff0 100644 --- a/model_patched_writable_power_feed_request_type.go +++ b/model_patched_writable_power_feed_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go index 4a3f01b5d..8d094a661 100644 --- a/model_patched_writable_power_outlet_request.go +++ b/model_patched_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{} // PatchedWritablePowerOutletRequest Adds support for custom fields and tags. type PatchedWritablePowerOutletRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -55,9 +55,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -81,15 +81,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -98,7 +98,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -226,9 +226,9 @@ func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutlet } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -237,7 +237,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -253,8 +253,8 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go index bb994c190..343fb92fc 100644 --- a/model_patched_writable_power_outlet_request_feed_leg.go +++ b/model_patched_writable_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go index b71ce89bf..3cf0cf726 100644 --- a/model_patched_writable_power_outlet_request_type.go +++ b/model_patched_writable_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletRequestType string // List of PatchedWritablePowerOutletRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletRequestType = "nema-l22-20r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C" @@ -182,6 +183,7 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go index 665ffab4e..421e133c1 100644 --- a/model_patched_writable_power_outlet_template_request.go +++ b/model_patched_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{} // PatchedWritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -52,9 +52,9 @@ func NewPatchedWritablePowerOutletTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePow } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemp // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go index 1ca291711..ab90308a4 100644 --- a/model_patched_writable_power_outlet_template_request_type.go +++ b/model_patched_writable_power_outlet_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletTemplateRequestType string // List of PatchedWritablePowerOutletTemplateRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-20r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C" @@ -182,6 +183,7 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go index 1df1cacd1..66633f2c0 100644 --- a/model_patched_writable_power_port_request.go +++ b/model_patched_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{} // PatchedWritablePowerPortRequest Adds support for custom fields and tags. type PatchedWritablePowerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -83,15 +83,15 @@ func (o *PatchedWritablePowerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go index fd8a265b0..62de6fec2 100644 --- a/model_patched_writable_power_port_request_type.go +++ b/model_patched_writable_power_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortRequestType string // List of PatchedWritablePowerPortRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortRequestType = "nema-l22-20p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c" @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowe "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go index 6598158be..f07f9ab83 100644 --- a/model_patched_writable_power_port_template_request.go +++ b/model_patched_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{} // PatchedWritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -54,9 +54,9 @@ func NewPatchedWritablePowerPortTemplateRequestWithDefaults() *PatchedWritablePo } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go index 554ee3f09..be2bcd2c5 100644 --- a/model_patched_writable_power_port_template_request_type.go +++ b/model_patched_writable_power_port_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortTemplateRequestType string // List of PatchedWritablePowerPortTemplateRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortTemplateRequestType = "nema-l22-20p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c" @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWrit "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go index 4f5dc38b7..a95c8c4b2 100644 --- a/model_patched_writable_prefix_request.go +++ b/model_patched_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{} // PatchedWritablePrefixRequest Adds support for custom fields and tags. type PatchedWritablePrefixRequest struct { Prefix *string `json:"prefix,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -89,9 +89,9 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { +func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { +func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -175,9 +175,9 @@ func (o *PatchedWritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -186,7 +186,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -202,8 +202,8 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -218,9 +218,9 @@ func (o *PatchedWritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { +func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -229,7 +229,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -245,8 +245,8 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -293,9 +293,9 @@ func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestS } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { +func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -304,7 +304,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -320,8 +320,8 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go index ecbeb236f..73893bfbc 100644 --- a/model_patched_writable_prefix_request_status.go +++ b/model_patched_writable_prefix_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go index 2b21e78d4..a634cef64 100644 --- a/model_patched_writable_rack_request.go +++ b/model_patched_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,25 @@ var _ MappedNullable = &PatchedWritableRackRequest{} type PatchedWritableRackRequest struct { Name *string `json:"name,omitempty"` FacilityId NullableString `json:"facility_id,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -47,11 +48,12 @@ type PatchedWritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -150,9 +152,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetSite() SiteRequest { +func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -160,7 +162,7 @@ func (o *PatchedWritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableRackRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { +func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -209,8 +211,8 @@ func (o *PatchedWritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -225,9 +227,9 @@ func (o *PatchedWritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { +func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -236,7 +238,7 @@ func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -252,8 +254,8 @@ func (o *PatchedWritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -300,9 +302,9 @@ func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { +func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -311,7 +313,7 @@ func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -327,8 +329,8 @@ func (o *PatchedWritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } @@ -417,36 +419,79 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *PatchedWritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { return nil, false } - return o.Type, true + return o.FormFactor, true } -// HasType returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -632,9 +677,9 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -642,7 +687,7 @@ func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRe // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -658,8 +703,8 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -856,6 +901,38 @@ func (o *PatchedWritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1021,8 +1098,11 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1057,6 +1137,9 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1100,7 +1183,8 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1112,6 +1196,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_rack_request_airflow.go b/model_patched_writable_rack_request_airflow.go new file mode 100644 index 000000000..5cebdcb46 --- /dev/null +++ b/model_patched_writable_rack_request_airflow.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackRequestAirflow * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +type PatchedWritableRackRequestAirflow string + +// List of PatchedWritableRackRequest_airflow +const ( + PATCHEDWRITABLERACKREQUESTAIRFLOW_FRONT_TO_REAR PatchedWritableRackRequestAirflow = "front-to-rear" + PATCHEDWRITABLERACKREQUESTAIRFLOW_REAR_TO_FRONT PatchedWritableRackRequestAirflow = "rear-to-front" + PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = "" +) + +// All allowed values of PatchedWritableRackRequestAirflow enum +var AllowedPatchedWritableRackRequestAirflowEnumValues = []PatchedWritableRackRequestAirflow{ + "front-to-rear", + "rear-to-front", + "", +} + +func (v *PatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackRequestAirflow(value) + for _, existing := range AllowedPatchedWritableRackRequestAirflowEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestAirflow", value) +} + +// NewPatchedWritableRackRequestAirflowFromValue returns a pointer to a valid PatchedWritableRackRequestAirflow +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackRequestAirflowFromValue(v string) (*PatchedWritableRackRequestAirflow, error) { + ev := PatchedWritableRackRequestAirflow(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestAirflow: valid values are %v", v, AllowedPatchedWritableRackRequestAirflowEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackRequestAirflow) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackRequestAirflowEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackRequest_airflow value +func (v PatchedWritableRackRequestAirflow) Ptr() *PatchedWritableRackRequestAirflow { + return &v +} + +type NullablePatchedWritableRackRequestAirflow struct { + value *PatchedWritableRackRequestAirflow + isSet bool +} + +func (v NullablePatchedWritableRackRequestAirflow) Get() *PatchedWritableRackRequestAirflow { + return v.value +} + +func (v *NullablePatchedWritableRackRequestAirflow) Set(val *PatchedWritableRackRequestAirflow) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackRequestAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackRequestAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackRequestAirflow(val *PatchedWritableRackRequestAirflow) *NullablePatchedWritableRackRequestAirflow { + return &NullablePatchedWritableRackRequestAirflow{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackRequestAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_patched_writable_rack_request_form_factor.go b/model_patched_writable_rack_request_form_factor.go new file mode 100644 index 000000000..a75b4fe76 --- /dev/null +++ b/model_patched_writable_rack_request_form_factor.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackRequestFormFactor * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +type PatchedWritableRackRequestFormFactor string + +// List of PatchedWritableRackRequest_form_factor +const ( + PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackRequestFormFactor = "wall-cabinet-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = "" +) + +// All allowed values of PatchedWritableRackRequestFormFactor enum +var AllowedPatchedWritableRackRequestFormFactorEnumValues = []PatchedWritableRackRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", + "", +} + +func (v *PatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackRequestFormFactor(value) + for _, existing := range AllowedPatchedWritableRackRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackRequestFormFactor", value) +} + +// NewPatchedWritableRackRequestFormFactorFromValue returns a pointer to a valid PatchedWritableRackRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackRequestFormFactorFromValue(v string) (*PatchedWritableRackRequestFormFactor, error) { + ev := PatchedWritableRackRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackRequestFormFactor: valid values are %v", v, AllowedPatchedWritableRackRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackRequestFormFactor) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackRequest_form_factor value +func (v PatchedWritableRackRequestFormFactor) Ptr() *PatchedWritableRackRequestFormFactor { + return &v +} + +type NullablePatchedWritableRackRequestFormFactor struct { + value *PatchedWritableRackRequestFormFactor + isSet bool +} + +func (v NullablePatchedWritableRackRequestFormFactor) Get() *PatchedWritableRackRequestFormFactor { + return v.value +} + +func (v *NullablePatchedWritableRackRequestFormFactor) Set(val *PatchedWritableRackRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackRequestFormFactor(val *PatchedWritableRackRequestFormFactor) *NullablePatchedWritableRackRequestFormFactor { + return &NullablePatchedWritableRackRequestFormFactor{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go index 21a86aded..a89a47209 100644 --- a/model_patched_writable_rack_request_outer_unit.go +++ b/model_patched_writable_rack_request_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go index 9dc9df329..55ed8f113 100644 --- a/model_patched_writable_rack_request_status.go +++ b/model_patched_writable_rack_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go index 19908dc01..cc26611ef 100644 --- a/model_patched_writable_rack_request_width.go +++ b/model_patched_writable_rack_request_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_type_request.go b/model_patched_writable_rack_type_request.go new file mode 100644 index 000000000..3dd7ed87d --- /dev/null +++ b/model_patched_writable_rack_type_request.go @@ -0,0 +1,878 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PatchedWritableRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PatchedWritableRackTypeRequest{} + +// PatchedWritableRackTypeRequest Adds support for custom fields and tags. +type PatchedWritableRackTypeRequest struct { + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PatchedWritableRackTypeRequest PatchedWritableRackTypeRequest + +// NewPatchedWritableRackTypeRequest instantiates a new PatchedWritableRackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPatchedWritableRackTypeRequest() *PatchedWritableRackTypeRequest { + this := PatchedWritableRackTypeRequest{} + return &this +} + +// NewPatchedWritableRackTypeRequestWithDefaults instantiates a new PatchedWritableRackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPatchedWritableRackTypeRequestWithDefaults() *PatchedWritableRackTypeRequest { + this := PatchedWritableRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil || IsNil(o.Manufacturer) { + return nil, false + } + return o.Manufacturer, true +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasManufacturer() bool { + if o != nil && !IsNil(o.Manufacturer) { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = &v +} + +// GetModel returns the Model field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetModel() string { + if o == nil || IsNil(o.Model) { + var ret string + return ret + } + return *o.Model +} + +// GetModelOk returns a tuple with the Model field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil || IsNil(o.Model) { + return nil, false + } + return o.Model, true +} + +// HasModel returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasModel() bool { + if o != nil && !IsNil(o.Model) { + return true + } + + return false +} + +// SetModel gets a reference to the given string and assigns it to the Model field. +func (o *PatchedWritableRackTypeRequest) SetModel(v string) { + o.Model = &v +} + +// GetSlug returns the Slug field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetSlug() string { + if o == nil || IsNil(o.Slug) { + var ret string + return ret + } + return *o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil || IsNil(o.Slug) { + return nil, false + } + return o.Slug, true +} + +// HasSlug returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasSlug() bool { + if o != nil && !IsNil(o.Slug) { + return true + } + + return false +} + +// SetSlug gets a reference to the given string and assigns it to the Slug field. +func (o *PatchedWritableRackTypeRequest) SetSlug(v string) { + o.Slug = &v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *PatchedWritableRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackTypeRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { + return nil, false + } + return o.FormFactor, true +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given PatchedWritableRackTypeRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor) { + o.FormFactor = &v +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth { + if o == nil || IsNil(o.Width) { + var ret PatchedWritableRackRequestWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field. +func (o *PatchedWritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *PatchedWritableRackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *PatchedWritableRackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *PatchedWritableRackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil || IsNil(o.OuterUnit) { + return nil, false + } + return o.OuterUnit, true +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasOuterUnit() bool { + if o != nil && !IsNil(o.OuterUnit) { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *PatchedWritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *PatchedWritableRackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.WeightUnit) { + var ret DeviceTypeWeightUnitValue + return ret + } + return *o.WeightUnit +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { + if o == nil || IsNil(o.WeightUnit) { + return nil, false + } + return o.WeightUnit, true +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasWeightUnit() bool { + if o != nil && !IsNil(o.WeightUnit) { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { + o.WeightUnit = &v +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *PatchedWritableRackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableRackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PatchedWritableRackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PatchedWritableRackTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PatchedWritableRackTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o PatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PatchedWritableRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Manufacturer) { + toSerialize["manufacturer"] = o.Manufacturer + } + if !IsNil(o.Model) { + toSerialize["model"] = o.Model + } + if !IsNil(o.Slug) { + toSerialize["slug"] = o.Slug + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if !IsNil(o.OuterUnit) { + toSerialize["outer_unit"] = o.OuterUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if !IsNil(o.WeightUnit) { + toSerialize["weight_unit"] = o.WeightUnit + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PatchedWritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + varPatchedWritableRackTypeRequest := _PatchedWritableRackTypeRequest{} + + err = json.Unmarshal(data, &varPatchedWritableRackTypeRequest) + + if err != nil { + return err + } + + *o = PatchedWritableRackTypeRequest(varPatchedWritableRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePatchedWritableRackTypeRequest struct { + value *PatchedWritableRackTypeRequest + isSet bool +} + +func (v NullablePatchedWritableRackTypeRequest) Get() *PatchedWritableRackTypeRequest { + return v.value +} + +func (v *NullablePatchedWritableRackTypeRequest) Set(val *PatchedWritableRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackTypeRequest(val *PatchedWritableRackTypeRequest) *NullablePatchedWritableRackTypeRequest { + return &NullablePatchedWritableRackTypeRequest{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_patched_writable_rack_type_request_form_factor.go b/model_patched_writable_rack_type_request_form_factor.go new file mode 100644 index 000000000..7636b0656 --- /dev/null +++ b/model_patched_writable_rack_type_request_form_factor.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableRackTypeRequestFormFactor * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +type PatchedWritableRackTypeRequestFormFactor string + +// List of PatchedWritableRackTypeRequest_form_factor +const ( + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-cabinet-vertical" +) + +// All allowed values of PatchedWritableRackTypeRequestFormFactor enum +var AllowedPatchedWritableRackTypeRequestFormFactorEnumValues = []PatchedWritableRackTypeRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", +} + +func (v *PatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableRackTypeRequestFormFactor(value) + for _, existing := range AllowedPatchedWritableRackTypeRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableRackTypeRequestFormFactor", value) +} + +// NewPatchedWritableRackTypeRequestFormFactorFromValue returns a pointer to a valid PatchedWritableRackTypeRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableRackTypeRequestFormFactorFromValue(v string) (*PatchedWritableRackTypeRequestFormFactor, error) { + ev := PatchedWritableRackTypeRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableRackTypeRequestFormFactor: valid values are %v", v, AllowedPatchedWritableRackTypeRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableRackTypeRequestFormFactor) IsValid() bool { + for _, existing := range AllowedPatchedWritableRackTypeRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableRackTypeRequest_form_factor value +func (v PatchedWritableRackTypeRequestFormFactor) Ptr() *PatchedWritableRackTypeRequestFormFactor { + return &v +} + +type NullablePatchedWritableRackTypeRequestFormFactor struct { + value *PatchedWritableRackTypeRequestFormFactor + isSet bool +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) Get() *PatchedWritableRackTypeRequestFormFactor { + return v.value +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) Set(val *PatchedWritableRackTypeRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableRackTypeRequestFormFactor(val *PatchedWritableRackTypeRequestFormFactor) *NullablePatchedWritableRackTypeRequestFormFactor { + return &NullablePatchedWritableRackTypeRequestFormFactor{value: val, isSet: true} +} + +func (v NullablePatchedWritableRackTypeRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go index 881056212..d830e3b39 100644 --- a/model_patched_writable_rear_port_request.go +++ b/model_patched_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{} // PatchedWritableRearPortRequest Adds support for custom fields and tags. type PatchedWritableRearPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -82,15 +82,15 @@ func (o *PatchedWritableRearPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -115,8 +115,8 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go index 5280e4ec8..5de046173 100644 --- a/model_patched_writable_rear_port_template_request.go +++ b/model_patched_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{} // PatchedWritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -52,9 +52,9 @@ func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRea } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeReque // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go index f2deb297b..1d627a82f 100644 --- a/model_patched_writable_region_request.go +++ b/model_patched_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go index 9f1abb8c1..90396a9b0 100644 --- a/model_patched_writable_service_request.go +++ b/model_patched_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableServiceRequest{} // PatchedWritableServiceRequest Adds support for custom fields and tags. type PatchedWritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports,omitempty"` @@ -52,9 +52,9 @@ func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceReque } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineReques // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go index 4b7b5d491..71f875d4c 100644 --- a/model_patched_writable_service_request_protocol.go +++ b/model_patched_writable_service_request_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go index 182e8786d..bf02b2075 100644 --- a/model_patched_writable_service_template_request.go +++ b/model_patched_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go index 784b86567..5e0c53952 100644 --- a/model_patched_writable_site_group_request.go +++ b/model_patched_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go index 35523daf2..b1971a349 100644 --- a/model_patched_writable_site_request.go +++ b/model_patched_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritableSiteRequest{} // PatchedWritableSiteRequest Adds support for custom fields and tags. type PatchedWritableSiteRequest struct { // Full name of the site - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedWritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,15 +155,15 @@ func (o *PatchedWritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { +func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } @@ -247,9 +247,9 @@ func (o *PatchedWritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { +func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -258,7 +258,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -274,8 +274,8 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go index 86547508d..bd07aece2 100644 --- a/model_patched_writable_tenant_group_request.go +++ b/model_patched_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go index cac6687a1..888406456 100644 --- a/model_patched_writable_tunnel_request.go +++ b/model_patched_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{} type PatchedWritableTunnelRequest struct { Name *string `json:"name,omitempty"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` TunnelId NullableInt64 `json:"tunnel_id,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestS } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -144,8 +144,8 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } @@ -192,9 +192,9 @@ func (o *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelR } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -203,7 +203,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -219,8 +219,8 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -235,9 +235,9 @@ func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { +func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -246,7 +246,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -262,8 +262,8 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go index 54582c03d..39e76f57a 100644 --- a/model_patched_writable_tunnel_request_encapsulation.go +++ b/model_patched_writable_tunnel_request_encapsulation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go index b4b020162..4ec095689 100644 --- a/model_patched_writable_tunnel_request_status.go +++ b/model_patched_writable_tunnel_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go index 361991390..3e946c172 100644 --- a/model_patched_writable_tunnel_termination_request.go +++ b/model_patched_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{} // PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags. type PatchedWritableTunnelTerminationRequest struct { - Tunnel *TunnelRequest `json:"tunnel,omitempty"` + Tunnel *BriefTunnelRequest `json:"tunnel,omitempty"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType *string `json:"termination_type,omitempty"` TerminationId NullableInt64 `json:"termination_id,omitempty"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -49,9 +49,9 @@ func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTu } // GetTunnel returns the Tunnel field value if set, zero value otherwise. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil || IsNil(o.Tunnel) { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } return *o.Tunnel @@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil || IsNil(o.Tunnel) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool { return false } -// SetTunnel gets a reference to the given TunnelRequest and assigns it to the Tunnel field. -func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +// SetTunnel gets a reference to the given BriefTunnelRequest and assigns it to the Tunnel field. +func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = &v } @@ -188,9 +188,9 @@ func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId() { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -199,7 +199,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressReques // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go index 8bc7b5eea..7a730dd24 100644 --- a/model_patched_writable_tunnel_termination_request_role.go +++ b/model_patched_writable_tunnel_termination_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go index f160befac..890f61323 100644 --- a/model_patched_writable_virtual_chassis_request.go +++ b/model_patched_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go index 34ba5129c..bb664e202 100644 --- a/model_patched_writable_virtual_device_context_request.go +++ b/model_patched_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{} // PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualDeviceContextRequest struct { Name *string `json:"name,omitempty"` - Device *DeviceRequest `json:"device,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` Status *PatchedWritableVirtualDeviceContextRequestStatus `json:"status,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -111,8 +111,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -160,9 +160,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -171,7 +171,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -187,8 +187,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -203,9 +203,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -214,7 +214,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRe // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -230,8 +230,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -246,9 +246,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -257,7 +257,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRe // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -273,8 +273,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go index 9bed2f913..bb51c5213 100644 --- a/model_patched_writable_virtual_device_context_request_status.go +++ b/model_patched_writable_virtual_device_context_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go index e9006bf84..3b53ff653 100644 --- a/model_patched_writable_virtual_machine_with_config_context_request.go +++ b/model_patched_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,23 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{} // PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualMachineWithConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name *string `json:"name,omitempty"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -94,9 +95,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -104,7 +105,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Patc // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -120,15 +121,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -137,7 +138,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRe // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -153,8 +154,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -169,9 +170,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -180,7 +181,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() Clu // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -196,8 +197,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -212,9 +213,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -223,7 +224,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() Devi // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -239,8 +240,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -254,10 +255,42 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -266,7 +299,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() Device // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -282,8 +315,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -298,9 +331,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -309,7 +342,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() Tena // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -325,8 +358,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -341,9 +374,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -352,7 +385,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() Pl // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -368,8 +401,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -384,9 +417,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPlatform() } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -395,7 +428,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -411,8 +444,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -427,9 +460,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4( } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -438,7 +471,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -454,8 +487,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -663,9 +696,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetComments(v st } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -674,7 +707,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplat // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -690,8 +723,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -827,6 +860,9 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -896,6 +932,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(da delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go index f341c2425..7cb5eaf35 100644 --- a/model_patched_writable_vlan_request.go +++ b/model_patched_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableVLANRequest{} // PatchedWritableVLANRequest Adds support for custom fields and tags. type PatchedWritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid *int32 `json:"vid,omitempty"` Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableVLANRequestWithDefaults() *PatchedWritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { +func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -279,9 +279,9 @@ func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { +func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -290,7 +290,7 @@ func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -306,8 +306,8 @@ func (o *PatchedWritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go index 74ada78e4..fca8f23eb 100644 --- a/model_patched_writable_vlan_request_status.go +++ b/model_patched_writable_vlan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go index fd72c0f66..4e0e00413 100644 --- a/model_patched_writable_vm_interface_request.go +++ b/model_patched_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{} // PatchedWritableVMInterfaceRequest Adds support for custom fields and tags. type PatchedWritableVMInterfaceRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -28,9 +28,9 @@ type PatchedWritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -56,9 +56,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -66,7 +66,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRe // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -82,8 +82,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } @@ -388,9 +388,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRe } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -399,7 +399,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -415,8 +415,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -463,9 +463,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -474,7 +474,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -490,8 +490,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go index 1ffc71e4c..73559710e 100644 --- a/model_patched_writable_wireless_lan_group_request.go +++ b/model_patched_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go index 961912611..bc38ef0c7 100644 --- a/model_patched_writable_wireless_lan_request.go +++ b/model_patched_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{} type PatchedWritableWirelessLANRequest struct { Ssid *string `json:"ssid,omitempty"` Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` AuthType *AuthenticationType1 `json:"auth_type,omitempty"` AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -193,9 +193,9 @@ func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessL } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -204,7 +204,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -220,8 +220,8 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go index 2960171ff..3b947d219 100644 --- a/model_patched_writable_wireless_lan_request_status.go +++ b/model_patched_writable_wireless_lan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go index 53a6fee89..b44e387d4 100644 --- a/model_patched_writable_wireless_link_request.go +++ b/model_patched_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{} // PatchedWritableWirelessLinkRequest Adds support for custom fields and tags. type PatchedWritableWirelessLinkRequest struct { - InterfaceA *InterfaceRequest `json:"interface_a,omitempty"` - InterfaceB *InterfaceRequest `json:"interface_b,omitempty"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA *BriefInterfaceRequest `json:"interface_a,omitempty"` + InterfaceB *BriefInterfaceRequest `json:"interface_b,omitempty"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +56,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles } // GetInterfaceA returns the InterfaceA field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceA) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceA @@ -64,7 +66,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceA) { return nil, false } @@ -80,15 +82,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool { return false } -// SetInterfaceA gets a reference to the given InterfaceRequest and assigns it to the InterfaceA field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +// SetInterfaceA gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceA field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = &v } // GetInterfaceB returns the InterfaceB field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceB) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceB @@ -96,7 +98,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceB) { return nil, false } @@ -112,8 +114,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool { return false } -// SetInterfaceB gets a reference to the given InterfaceRequest and assigns it to the InterfaceB field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +// SetInterfaceB gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceB field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = &v } @@ -150,9 +152,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -160,7 +162,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableReq // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -209,8 +211,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -320,6 +322,81 @@ func (o *PatchedWritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.DistanceUnit) { + return nil, false + } + return o.DistanceUnit, true +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && !IsNil(o.DistanceUnit) { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.DistanceUnit = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -482,6 +559,12 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if !IsNil(o.DistanceUnit) { + toSerialize["distance_unit"] = o.DistanceUnit + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -524,6 +607,8 @@ func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err err delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_wireless_link_request_distance_unit.go b/model_patched_writable_wireless_link_request_distance_unit.go new file mode 100644 index 000000000..c0367dc99 --- /dev/null +++ b/model_patched_writable_wireless_link_request_distance_unit.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PatchedWritableWirelessLinkRequestDistanceUnit * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +type PatchedWritableWirelessLinkRequestDistanceUnit string + +// List of PatchedWritableWirelessLinkRequest_distance_unit +const ( + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_KM PatchedWritableWirelessLinkRequestDistanceUnit = "km" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_M PatchedWritableWirelessLinkRequestDistanceUnit = "m" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_MI PatchedWritableWirelessLinkRequestDistanceUnit = "mi" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_FT PatchedWritableWirelessLinkRequestDistanceUnit = "ft" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_EMPTY PatchedWritableWirelessLinkRequestDistanceUnit = "" +) + +// All allowed values of PatchedWritableWirelessLinkRequestDistanceUnit enum +var AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues = []PatchedWritableWirelessLinkRequestDistanceUnit{ + "km", + "m", + "mi", + "ft", + "", +} + +func (v *PatchedWritableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PatchedWritableWirelessLinkRequestDistanceUnit(value) + for _, existing := range AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PatchedWritableWirelessLinkRequestDistanceUnit", value) +} + +// NewPatchedWritableWirelessLinkRequestDistanceUnitFromValue returns a pointer to a valid PatchedWritableWirelessLinkRequestDistanceUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPatchedWritableWirelessLinkRequestDistanceUnitFromValue(v string) (*PatchedWritableWirelessLinkRequestDistanceUnit, error) { + ev := PatchedWritableWirelessLinkRequestDistanceUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PatchedWritableWirelessLinkRequestDistanceUnit: valid values are %v", v, AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PatchedWritableWirelessLinkRequestDistanceUnit) IsValid() bool { + for _, existing := range AllowedPatchedWritableWirelessLinkRequestDistanceUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PatchedWritableWirelessLinkRequest_distance_unit value +func (v PatchedWritableWirelessLinkRequestDistanceUnit) Ptr() *PatchedWritableWirelessLinkRequestDistanceUnit { + return &v +} + +type NullablePatchedWritableWirelessLinkRequestDistanceUnit struct { + value *PatchedWritableWirelessLinkRequestDistanceUnit + isSet bool +} + +func (v NullablePatchedWritableWirelessLinkRequestDistanceUnit) Get() *PatchedWritableWirelessLinkRequestDistanceUnit { + return v.value +} + +func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) Set(val *PatchedWritableWirelessLinkRequestDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullablePatchedWritableWirelessLinkRequestDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePatchedWritableWirelessLinkRequestDistanceUnit(val *PatchedWritableWirelessLinkRequestDistanceUnit) *NullablePatchedWritableWirelessLinkRequestDistanceUnit { + return &NullablePatchedWritableWirelessLinkRequestDistanceUnit{value: val, isSet: true} +} + +func (v NullablePatchedWritableWirelessLinkRequestDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_platform.go b/model_platform.go index 95143bd8e..6e19cdb97 100644 --- a/model_platform.go +++ b/model_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Platform type satisfies the MappedNullable interface at compile time @@ -20,14 +21,21 @@ var _ MappedNullable = &Platform{} // Platform Adds support for custom fields and tags. type Platform struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +45,16 @@ 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, display string, name string, slug string) *Platform { +func NewPlatform(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *Platform { this := Platform{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +114,30 @@ func (o *Platform) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Platform) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Platform) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Platform) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Platform) GetDisplay() string { if o == nil { @@ -175,6 +210,92 @@ func (o *Platform) SetSlug(v string) { o.Slug = v } +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetManufacturer() BriefManufacturer { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturer + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *Platform) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *Platform) SetManufacturer(v BriefManufacturer) { + o.Manufacturer.Set(&v) +} + +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *Platform) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *Platform) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *Platform) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Platform) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *Platform) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *Platform) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Platform) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +328,122 @@ func (o *Platform) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Platform) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Platform) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Platform) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Platform) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Platform) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Platform) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Platform) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Platform) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Platform) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Platform) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Platform) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -283,12 +520,27 @@ func (o Platform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -310,9 +562,12 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -344,10 +599,17 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_platform_request.go b/model_platform_request.go index 365ea0c95..382dc8554 100644 --- a/model_platform_request.go +++ b/model_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &PlatformRequest{} // PlatformRequest Adds support for custom fields and tags. type PlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,92 @@ func (o *PlatformRequest) SetSlug(v string) { o.Slug = v } +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PlatformRequest) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer.Set(&v) +} + +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *PlatformRequest) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *PlatformRequest) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplateRequest + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *PlatformRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *PlatformRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *PlatformRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +217,70 @@ func (o *PlatformRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PlatformRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PlatformRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PlatformRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PlatformRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PlatformRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PlatformRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PlatformRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +293,21 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +354,11 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_feed.go b/model_power_feed.go index d946fcb84..02b2020ac 100644 --- a/model_power_feed.go +++ b/model_power_feed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,32 +21,33 @@ var _ MappedNullable = &PowerFeed{} // PowerFeed Adds support for custom fields and tags. type PowerFeed struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - PowerPanel PowerPanel `json:"power_panel"` - Rack NullableRack `json:"rack,omitempty"` - Name string `json:"name"` - Status *PowerFeedStatus `json:"status,omitempty"` - Type *PowerFeedType `json:"type,omitempty"` - Supply *PowerFeedSupply `json:"supply,omitempty"` - Phase *PowerFeedPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + PowerPanel BriefPowerPanel `json:"power_panel"` + Rack NullableBriefRack `json:"rack,omitempty"` + Name string `json:"name"` + Status *PowerFeedStatus `json:"status,omitempty"` + Type *PowerFeedType `json:"type,omitempty"` + Supply *PowerFeedSupply `json:"supply,omitempty"` + Phase *PowerFeedPhase `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Description *string `json:"description,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -62,10 +63,11 @@ type _PowerFeed PowerFeed // 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 NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { +func NewPowerFeed(id int32, url string, displayUrl string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { this := PowerFeed{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.PowerPanel = powerPanel this.Name = name @@ -138,6 +140,30 @@ func (o *PowerFeed) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerFeed) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerFeed) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerFeed) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerFeed) GetDisplay() string { if o == nil { @@ -163,9 +189,9 @@ func (o *PowerFeed) SetDisplay(v string) { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeed) GetPowerPanel() PowerPanel { +func (o *PowerFeed) GetPowerPanel() BriefPowerPanel { if o == nil { - var ret PowerPanel + var ret BriefPowerPanel return ret } @@ -174,7 +200,7 @@ func (o *PowerFeed) GetPowerPanel() PowerPanel { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { +func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool) { if o == nil { return nil, false } @@ -182,14 +208,14 @@ func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { } // SetPowerPanel sets field value -func (o *PowerFeed) SetPowerPanel(v PowerPanel) { +func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetRack() Rack { +func (o *PowerFeed) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -198,7 +224,7 @@ func (o *PowerFeed) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetRackOk() (*Rack, bool) { +func (o *PowerFeed) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -214,8 +240,8 @@ func (o *PowerFeed) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *PowerFeed) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *PowerFeed) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -510,10 +536,10 @@ func (o *PowerFeed) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerFeed) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerFeed) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -523,7 +549,7 @@ func (o *PowerFeed) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetCableOk() (*Cable, bool) { +func (o *PowerFeed) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -531,7 +557,7 @@ func (o *PowerFeed) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerFeed) SetCable(v Cable) { +func (o *PowerFeed) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -584,30 +610,33 @@ func (o *PowerFeed) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *PowerFeed) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerFeed) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -619,8 +648,9 @@ func (o *PowerFeed) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -632,27 +662,29 @@ func (o *PowerFeed) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *PowerFeed) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -712,9 +744,9 @@ func (o *PowerFeed) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetTenant() Tenant { +func (o *PowerFeed) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -723,7 +755,7 @@ func (o *PowerFeed) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetTenantOk() (*Tenant, bool) { +func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -739,8 +771,8 @@ func (o *PowerFeed) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *PowerFeed) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *PowerFeed) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -938,6 +970,7 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["power_panel"] = o.PowerPanel if o.Rack.IsSet() { @@ -971,9 +1004,11 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -1008,6 +1043,7 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "power_panel", "name", @@ -1052,6 +1088,7 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "power_panel") delete(additionalProperties, "rack") diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go index 728d75ab9..7251c6364 100644 --- a/model_power_feed_phase.go +++ b/model_power_feed_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go index 1e4274876..8d7156e61 100644 --- a/model_power_feed_phase_label.go +++ b/model_power_feed_phase_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_request.go b/model_power_feed_request.go index 51865eb47..819b5d0c4 100644 --- a/model_power_feed_request.go +++ b/model_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedRequest{} // PowerFeedRequest Adds support for custom fields and tags. type PowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type PowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _PowerFeedRequest PowerFeedRequest // 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 NewPowerFeedRequest(powerPanel PowerPanelRequest, name string) *PowerFeedRequest { +func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *PowerFeedRequest { this := PowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewPowerFeedRequestWithDefaults() *PowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { } // SetPowerPanel sets field value -func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetRack() RackRequest { +func (o *PowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *PowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *PowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetTenant() TenantRequest { +func (o *PowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *PowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *PowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_power_feed_status.go b/model_power_feed_status.go index e0b9ca575..4cae9f476 100644 --- a/model_power_feed_status.go +++ b/model_power_feed_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go index 25d308214..f55fff67b 100644 --- a/model_power_feed_status_label.go +++ b/model_power_feed_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go index f7a5c9251..94b9f2990 100644 --- a/model_power_feed_supply.go +++ b/model_power_feed_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go index 07573618e..7295bd3b7 100644 --- a/model_power_feed_supply_label.go +++ b/model_power_feed_supply_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type.go b/model_power_feed_type.go index 0e839a1a2..bb84aa7ab 100644 --- a/model_power_feed_type.go +++ b/model_power_feed_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go index e98943a9f..6c9caa928 100644 --- a/model_power_feed_type_label.go +++ b/model_power_feed_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet.go b/model_power_outlet.go index 2072ed336..0029693a8 100644 --- a/model_power_outlet.go +++ b/model_power_outlet.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,28 @@ var _ MappedNullable = &PowerOutlet{} // PowerOutlet Adds support for custom fields and tags. type PowerOutlet struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPort `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPort `json:"power_port,omitempty"` FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -57,10 +58,11 @@ type _PowerOutlet PowerOutlet // 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 NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { +func NewPowerOutlet(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { this := PowerOutlet{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -133,6 +135,30 @@ func (o *PowerOutlet) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerOutlet) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerOutlet) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerOutlet) GetDisplay() string { if o == nil { @@ -158,9 +184,9 @@ func (o *PowerOutlet) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerOutlet) GetDevice() Device { +func (o *PowerOutlet) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -169,7 +195,7 @@ func (o *PowerOutlet) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { +func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -177,14 +203,14 @@ func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerOutlet) SetDevice(v Device) { +func (o *PowerOutlet) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetModule() Module { +func (o *PowerOutlet) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -193,7 +219,7 @@ func (o *PowerOutlet) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetModuleOk() (*Module, bool) { +func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -209,8 +235,8 @@ func (o *PowerOutlet) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *PowerOutlet) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerOutlet) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -324,9 +350,9 @@ func (o *PowerOutlet) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetPowerPort() PowerPort { +func (o *PowerOutlet) GetPowerPort() BriefPowerPort { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPort + var ret BriefPowerPort return ret } return *o.PowerPort.Get() @@ -335,7 +361,7 @@ func (o *PowerOutlet) GetPowerPort() PowerPort { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool) { +func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool) { if o == nil { return nil, false } @@ -351,8 +377,8 @@ func (o *PowerOutlet) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPort and assigns it to the PowerPort field. -func (o *PowerOutlet) SetPowerPort(v PowerPort) { +// SetPowerPort gets a reference to the given NullableBriefPowerPort and assigns it to the PowerPort field. +func (o *PowerOutlet) SetPowerPort(v BriefPowerPort) { o.PowerPort.Set(&v) } @@ -474,10 +500,10 @@ func (o *PowerOutlet) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerOutlet) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerOutlet) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -487,7 +513,7 @@ func (o *PowerOutlet) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetCableOk() (*Cable, bool) { +func (o *PowerOutlet) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -495,7 +521,7 @@ func (o *PowerOutlet) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerOutlet) SetCable(v Cable) { +func (o *PowerOutlet) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -548,30 +574,33 @@ func (o *PowerOutlet) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *PowerOutlet) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -583,8 +612,9 @@ func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -596,27 +626,29 @@ func (o *PowerOutlet) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *PowerOutlet) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -795,6 +827,7 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -822,9 +855,11 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -850,6 +885,7 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -894,6 +930,7 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go index 95698360a..a34f7b7bb 100644 --- a/model_power_outlet_feed_leg.go +++ b/model_power_outlet_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go index 8a906036c..91f98a31a 100644 --- a/model_power_outlet_feed_leg_label.go +++ b/model_power_outlet_feed_leg_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go index bc3abd6e5..84daef03a 100644 --- a/model_power_outlet_feed_leg_value.go +++ b/model_power_outlet_feed_leg_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go index 122e3eb78..188f9158c 100644 --- a/model_power_outlet_request.go +++ b/model_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PowerOutletRequest{} // PowerOutletRequest Adds support for custom fields and tags. type PowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _PowerOutletRequest PowerOutletRequest // 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 NewPowerOutletRequest(device DeviceRequest, name string) *PowerOutletRequest { +func NewPowerOutletRequest(device BriefDeviceRequest, name string) *PowerOutletRequest { this := PowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest { } // GetDevice returns the Device field value -func (o *PowerOutletRequest) GetDevice() DeviceRequest { +func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *PowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetModule() ModuleRequest { +func (o *PowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *PowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -224,9 +224,9 @@ func (o *PowerOutletRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -235,7 +235,7 @@ func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go index 7cb04c40c..0552bf3aa 100644 --- a/model_power_outlet_request_feed_leg.go +++ b/model_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go index ab5cb9272..88ae2d3d6 100644 --- a/model_power_outlet_request_type.go +++ b/model_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PowerOutletRequestType string // List of PowerOutletRequest_type @@ -81,6 +81,7 @@ const ( POWEROUTLETREQUESTTYPE_NEMA_L15_60R PowerOutletRequestType = "nema-l15-60r" POWEROUTLETREQUESTTYPE_NEMA_L21_20R PowerOutletRequestType = "nema-l21-20r" POWEROUTLETREQUESTTYPE_NEMA_L21_30R PowerOutletRequestType = "nema-l21-30r" + POWEROUTLETREQUESTTYPE_NEMA_L22_20R PowerOutletRequestType = "nema-l22-20r" POWEROUTLETREQUESTTYPE_NEMA_L22_30R PowerOutletRequestType = "nema-l22-30r" POWEROUTLETREQUESTTYPE_CS6360_C PowerOutletRequestType = "CS6360C" POWEROUTLETREQUESTTYPE_CS6364_C PowerOutletRequestType = "CS6364C" @@ -182,6 +183,7 @@ var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{ "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go index 8d700a116..fc87fff21 100644 --- a/model_power_outlet_template.go +++ b/model_power_outlet_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,21 @@ var _ MappedNullable = &PowerOutletTemplate{} // PowerOutletTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplate `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplate `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -137,9 +137,9 @@ func (o *PowerOutletTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetDeviceType() DeviceType { +func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -148,7 +148,7 @@ func (o *PowerOutletTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,8 +164,8 @@ func (o *PowerOutletTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *PowerOutletTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -180,9 +180,9 @@ func (o *PowerOutletTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetModuleType() ModuleType { +func (o *PowerOutletTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -191,7 +191,7 @@ func (o *PowerOutletTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -207,8 +207,8 @@ func (o *PowerOutletTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *PowerOutletTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } @@ -322,9 +322,9 @@ func (o *PowerOutletTemplate) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { +func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplate + var ret BriefPowerPortTemplate return ret } return *o.PowerPort.Get() @@ -333,7 +333,7 @@ func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool) { +func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool) { if o == nil { return nil, false } @@ -349,8 +349,8 @@ func (o *PowerOutletTemplate) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplate and assigns it to the PowerPort field. -func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplate and assigns it to the PowerPort field. +func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go index 55567b581..ec3e31492 100644 --- a/model_power_outlet_template_request.go +++ b/model_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{} // PowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletRequestType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewPowerOutletTemplateRequestWithDefaults() *PowerOutletTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -239,9 +239,9 @@ func (o *PowerOutletTemplateRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -250,7 +250,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -266,8 +266,8 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go index 2f39149ab..be175b54a 100644 --- a/model_power_outlet_type.go +++ b/model_power_outlet_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go index 4b09dda97..48a4d6333 100644 --- a/model_power_outlet_type_label.go +++ b/model_power_outlet_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -81,6 +81,7 @@ const ( POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R" POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R" POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R" + POWEROUTLETTYPELABEL_NEMA_L22_20_R PowerOutletTypeLabel = "NEMA L22-20R" POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R" POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C" POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C" @@ -181,6 +182,7 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "NEMA L15-60R", "NEMA L21-20R", "NEMA L21-30R", + "NEMA L22-20R", "NEMA L22-30R", "CS6360C", "CS6364C", diff --git a/model_power_panel.go b/model_power_panel.go index 9548ab75a..c6dc32842 100644 --- a/model_power_panel.go +++ b/model_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPanel type satisfies the MappedNullable interface at compile time @@ -20,12 +21,20 @@ var _ MappedNullable = &PowerPanel{} // PowerPanel Adds support for custom fields and tags. type PowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +44,17 @@ type _PowerPanel PowerPanel // 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 NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *PowerPanel { +func NewPowerPanel(id int32, url string, displayUrl string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime) *PowerPanel { this := PowerPanel{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display + this.Site = site this.Name = name this.PowerfeedCount = powerfeedCount + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +114,30 @@ func (o *PowerPanel) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerPanel) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerPanel) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerPanel) GetDisplay() string { if o == nil { @@ -125,6 +162,73 @@ func (o *PowerPanel) SetDisplay(v string) { o.Display = v } +// GetSite returns the Site field value +func (o *PowerPanel) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanel) SetSite(v BriefSite) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanel) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanel) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *PowerPanel) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanel) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanel) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanel) GetName() string { if o == nil { @@ -181,6 +285,102 @@ func (o *PowerPanel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanel) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPanel) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *PowerPanel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanel) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPanel) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPanel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + // GetPowerfeedCount returns the PowerfeedCount field value func (o *PowerPanel) GetPowerfeedCount() int64 { if o == nil { @@ -205,6 +405,58 @@ func (o *PowerPanel) SetPowerfeedCount(v int64) { o.PowerfeedCount = v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPanel) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPanel) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPanel) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPanel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o PowerPanel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +469,28 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } toSerialize["powerfeed_count"] = o.PowerfeedCount + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +506,13 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", + "site", "name", "powerfeed_count", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +544,18 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") delete(additionalProperties, "powerfeed_count") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_panel_request.go b/model_power_panel_request.go index 41ab3ae46..7d32ca37f 100644 --- a/model_power_panel_request.go +++ b/model_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &PowerPanelRequest{} // PowerPanelRequest Adds support for custom fields and tags. type PowerPanelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,8 +36,9 @@ type _PowerPanelRequest PowerPanelRequest // 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 NewPowerPanelRequest(name string) *PowerPanelRequest { +func NewPowerPanelRequest(site BriefSiteRequest, name string) *PowerPanelRequest { this := PowerPanelRequest{} + this.Site = site this.Name = name return &this } @@ -45,6 +51,73 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest { return &this } +// GetSite returns the Site field value +func (o *PowerPanelRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanelRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanelRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanelRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanelRequest) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanelRequest) GetName() string { if o == nil { @@ -101,6 +174,102 @@ func (o *PowerPanelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PowerPanelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +280,23 @@ func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,6 +310,7 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "site", "name", } @@ -158,8 +341,13 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port.go b/model_power_port.go index bfc69ca0f..ecd4322f6 100644 --- a/model_power_port.go +++ b/model_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPort type satisfies the MappedNullable interface at compile time @@ -20,15 +21,37 @@ var _ MappedNullable = &PowerPort{} // PowerPort Adds support for custom fields and tags. type PowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Cable NullableCable `json:"cable"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` + // Return the type of the peer link terminations, or None. + LinkPeersType NullableString `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerPort PowerPort @@ -37,14 +60,23 @@ type _PowerPort PowerPort // 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 NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool) *PowerPort { +func NewPowerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerPort { this := PowerPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name this.Cable = cable + this.CableEnd = cableEnd + this.LinkPeers = linkPeers + this.LinkPeersType = linkPeersType + this.ConnectedEndpoints = connectedEndpoints + this.ConnectedEndpointsType = connectedEndpointsType + this.ConnectedEndpointsReachable = connectedEndpointsReachable + this.Created = created + this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -105,6 +137,30 @@ func (o *PowerPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *PowerPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *PowerPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *PowerPort) GetDisplay() string { if o == nil { @@ -130,9 +186,9 @@ func (o *PowerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerPort) GetDevice() Device { +func (o *PowerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -141,7 +197,7 @@ func (o *PowerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPort) GetDeviceOk() (*Device, bool) { +func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -149,10 +205,53 @@ func (o *PowerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerPort) SetDevice(v Device) { +func (o *PowerPort) SetDevice(v BriefDevice) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPort) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerPort) SetModule(v BriefModule) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPort) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPort) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPort) GetName() string { if o == nil { @@ -177,6 +276,167 @@ func (o *PowerPort) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPort) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPort) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPort) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPort) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +func (o *PowerPort) SetType(v PowerPortType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPort) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPort) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPort) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPort) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPort) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPort) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPort) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPort) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPort) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPort) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPort) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,11 +469,43 @@ func (o *PowerPort) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPort) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPort) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPort) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -223,7 +515,7 @@ func (o *PowerPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetCableOk() (*Cable, bool) { +func (o *PowerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -231,10 +523,276 @@ func (o *PowerPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerPort) SetCable(v Cable) { +func (o *PowerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// GetCableEnd returns the CableEnd field value +func (o *PowerPort) GetCableEnd() string { + if o == nil { + var ret string + return ret + } + + return o.CableEnd +} + +// GetCableEndOk returns a tuple with the CableEnd field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCableEndOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CableEnd, true +} + +// SetCableEnd sets field value +func (o *PowerPort) SetCableEnd(v string) { + o.CableEnd = v +} + +// GetLinkPeers returns the LinkPeers field value +func (o *PowerPort) GetLinkPeers() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.LinkPeers +} + +// GetLinkPeersOk returns a tuple with the LinkPeers field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLinkPeersOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.LinkPeers, true +} + +// SetLinkPeers sets field value +func (o *PowerPort) SetLinkPeers(v []interface{}) { + o.LinkPeers = v +} + +// GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PowerPort) GetLinkPeersType() string { + if o == nil || o.LinkPeersType.Get() == nil { + var ret string + return ret + } + + return *o.LinkPeersType.Get() +} + +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// SetLinkPeersType sets field value +func (o *PowerPort) SetLinkPeersType(v string) { + o.LinkPeersType.Set(&v) +} + +// GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned +func (o *PowerPort) GetConnectedEndpoints() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConnectedEndpoints +} + +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConnectedEndpoints) { + return nil, false + } + return o.ConnectedEndpoints, true +} + +// SetConnectedEndpoints sets field value +func (o *PowerPort) SetConnectedEndpoints(v []interface{}) { + o.ConnectedEndpoints = v +} + +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PowerPort) GetConnectedEndpointsType() string { + if o == nil || o.ConnectedEndpointsType.Get() == nil { + var ret string + return ret + } + + return *o.ConnectedEndpointsType.Get() +} + +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() +} + +// SetConnectedEndpointsType sets field value +func (o *PowerPort) SetConnectedEndpointsType(v string) { + o.ConnectedEndpointsType.Set(&v) +} + +// GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value +func (o *PowerPort) GetConnectedEndpointsReachable() bool { + if o == nil { + var ret bool + return ret + } + + return o.ConnectedEndpointsReachable +} + +// GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ConnectedEndpointsReachable, true +} + +// SetConnectedEndpointsReachable sets field value +func (o *PowerPort) SetConnectedEndpointsReachable(v bool) { + o.ConnectedEndpointsReachable = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPort) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPort) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *PowerPort) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPort) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPort) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPort) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPort) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPort) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPort) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPort) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetOccupied returns the Occupied field value func (o *PowerPort) GetOccupied() bool { if o == nil { @@ -271,13 +829,48 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } toSerialize["cable"] = o.Cable.Get() + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -294,10 +887,19 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", "cable", + "cable_end", + "link_peers", + "link_peers_type", + "connected_endpoints", + "connected_endpoints_type", + "connected_endpoints_reachable", + "created", + "last_updated", "_occupied", } @@ -330,11 +932,28 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") delete(additionalProperties, "cable") + delete(additionalProperties, "cable_end") + delete(additionalProperties, "link_peers") + delete(additionalProperties, "link_peers_type") + delete(additionalProperties, "connected_endpoints") + delete(additionalProperties, "connected_endpoints_type") + delete(additionalProperties, "connected_endpoints_reachable") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "_occupied") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request.go b/model_power_port_request.go index b699633c5..8db3fbd7e 100644 --- a/model_power_port_request.go +++ b/model_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,21 @@ var _ MappedNullable = &PowerPortRequest{} // PowerPortRequest Adds support for custom fields and tags. type PowerPortRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortRequestType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +44,7 @@ type _PowerPortRequest PowerPortRequest // 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 NewPowerPortRequest(device DeviceRequest, name string) *PowerPortRequest { +func NewPowerPortRequest(device BriefDeviceRequest, name string) *PowerPortRequest { this := PowerPortRequest{} this.Device = device this.Name = name @@ -48,9 +60,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest { } // GetDevice returns the Device field value -func (o *PowerPortRequest) GetDevice() DeviceRequest { +func (o *PowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -59,7 +71,7 @@ func (o *PowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -67,10 +79,53 @@ func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerPortRequest) SetDevice(v DeviceRequest) { +func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPortRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerPortRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPortRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPortRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPortRequest) GetName() string { if o == nil { @@ -95,6 +150,167 @@ func (o *PowerPortRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetType() PowerPortRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. +func (o *PowerPortRequest) SetType(v PowerPortRequestType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortRequest) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortRequest) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortRequest) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortRequest) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +343,102 @@ func (o *PowerPortRequest) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPortRequest) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPortRequest) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPortRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPortRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PowerPortRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPortRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPortRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPortRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPortRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -138,10 +450,34 @@ func (o PowerPortRequest) MarshalJSON() ([]byte, error) { func (o PowerPortRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,8 +523,16 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request_type.go b/model_power_port_request_type.go new file mode 100644 index 000000000..db4361bf7 --- /dev/null +++ b/model_power_port_request_type.go @@ -0,0 +1,317 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerPortRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +type PowerPortRequestType string + +// List of PowerPortRequest_type +const ( + POWERPORTREQUESTTYPE_IEC_60320_C6 PowerPortRequestType = "iec-60320-c6" + POWERPORTREQUESTTYPE_IEC_60320_C8 PowerPortRequestType = "iec-60320-c8" + POWERPORTREQUESTTYPE_IEC_60320_C14 PowerPortRequestType = "iec-60320-c14" + POWERPORTREQUESTTYPE_IEC_60320_C16 PowerPortRequestType = "iec-60320-c16" + POWERPORTREQUESTTYPE_IEC_60320_C20 PowerPortRequestType = "iec-60320-c20" + POWERPORTREQUESTTYPE_IEC_60320_C22 PowerPortRequestType = "iec-60320-c22" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PowerPortRequestType = "iec-60309-p-n-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PowerPortRequestType = "iec-60309-p-n-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PowerPortRequestType = "iec-60309-p-n-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PowerPortRequestType = "iec-60309-2p-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PowerPortRequestType = "iec-60309-2p-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PowerPortRequestType = "iec-60309-2p-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PowerPortRequestType = "iec-60309-3p-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PowerPortRequestType = "iec-60309-3p-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PowerPortRequestType = "iec-60309-3p-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PowerPortRequestType = "iec-60309-3p-n-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PowerPortRequestType = "iec-60309-3p-n-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PowerPortRequestType = "iec-60309-3p-n-e-9h" + POWERPORTREQUESTTYPE_IEC_60906_1 PowerPortRequestType = "iec-60906-1" + POWERPORTREQUESTTYPE_NBR_14136_10A PowerPortRequestType = "nbr-14136-10a" + POWERPORTREQUESTTYPE_NBR_14136_20A PowerPortRequestType = "nbr-14136-20a" + POWERPORTREQUESTTYPE_NEMA_1_15P PowerPortRequestType = "nema-1-15p" + POWERPORTREQUESTTYPE_NEMA_5_15P PowerPortRequestType = "nema-5-15p" + POWERPORTREQUESTTYPE_NEMA_5_20P PowerPortRequestType = "nema-5-20p" + POWERPORTREQUESTTYPE_NEMA_5_30P PowerPortRequestType = "nema-5-30p" + POWERPORTREQUESTTYPE_NEMA_5_50P PowerPortRequestType = "nema-5-50p" + POWERPORTREQUESTTYPE_NEMA_6_15P PowerPortRequestType = "nema-6-15p" + POWERPORTREQUESTTYPE_NEMA_6_20P PowerPortRequestType = "nema-6-20p" + POWERPORTREQUESTTYPE_NEMA_6_30P PowerPortRequestType = "nema-6-30p" + POWERPORTREQUESTTYPE_NEMA_6_50P PowerPortRequestType = "nema-6-50p" + POWERPORTREQUESTTYPE_NEMA_10_30P PowerPortRequestType = "nema-10-30p" + POWERPORTREQUESTTYPE_NEMA_10_50P PowerPortRequestType = "nema-10-50p" + POWERPORTREQUESTTYPE_NEMA_14_20P PowerPortRequestType = "nema-14-20p" + POWERPORTREQUESTTYPE_NEMA_14_30P PowerPortRequestType = "nema-14-30p" + POWERPORTREQUESTTYPE_NEMA_14_50P PowerPortRequestType = "nema-14-50p" + POWERPORTREQUESTTYPE_NEMA_14_60P PowerPortRequestType = "nema-14-60p" + POWERPORTREQUESTTYPE_NEMA_15_15P PowerPortRequestType = "nema-15-15p" + POWERPORTREQUESTTYPE_NEMA_15_20P PowerPortRequestType = "nema-15-20p" + POWERPORTREQUESTTYPE_NEMA_15_30P PowerPortRequestType = "nema-15-30p" + POWERPORTREQUESTTYPE_NEMA_15_50P PowerPortRequestType = "nema-15-50p" + POWERPORTREQUESTTYPE_NEMA_15_60P PowerPortRequestType = "nema-15-60p" + POWERPORTREQUESTTYPE_NEMA_L1_15P PowerPortRequestType = "nema-l1-15p" + POWERPORTREQUESTTYPE_NEMA_L5_15P PowerPortRequestType = "nema-l5-15p" + POWERPORTREQUESTTYPE_NEMA_L5_20P PowerPortRequestType = "nema-l5-20p" + POWERPORTREQUESTTYPE_NEMA_L5_30P PowerPortRequestType = "nema-l5-30p" + POWERPORTREQUESTTYPE_NEMA_L5_50P PowerPortRequestType = "nema-l5-50p" + POWERPORTREQUESTTYPE_NEMA_L6_15P PowerPortRequestType = "nema-l6-15p" + POWERPORTREQUESTTYPE_NEMA_L6_20P PowerPortRequestType = "nema-l6-20p" + POWERPORTREQUESTTYPE_NEMA_L6_30P PowerPortRequestType = "nema-l6-30p" + POWERPORTREQUESTTYPE_NEMA_L6_50P PowerPortRequestType = "nema-l6-50p" + POWERPORTREQUESTTYPE_NEMA_L10_30P PowerPortRequestType = "nema-l10-30p" + POWERPORTREQUESTTYPE_NEMA_L14_20P PowerPortRequestType = "nema-l14-20p" + POWERPORTREQUESTTYPE_NEMA_L14_30P PowerPortRequestType = "nema-l14-30p" + POWERPORTREQUESTTYPE_NEMA_L14_50P PowerPortRequestType = "nema-l14-50p" + POWERPORTREQUESTTYPE_NEMA_L14_60P PowerPortRequestType = "nema-l14-60p" + POWERPORTREQUESTTYPE_NEMA_L15_20P PowerPortRequestType = "nema-l15-20p" + POWERPORTREQUESTTYPE_NEMA_L15_30P PowerPortRequestType = "nema-l15-30p" + POWERPORTREQUESTTYPE_NEMA_L15_50P PowerPortRequestType = "nema-l15-50p" + POWERPORTREQUESTTYPE_NEMA_L15_60P PowerPortRequestType = "nema-l15-60p" + POWERPORTREQUESTTYPE_NEMA_L21_20P PowerPortRequestType = "nema-l21-20p" + POWERPORTREQUESTTYPE_NEMA_L21_30P PowerPortRequestType = "nema-l21-30p" + POWERPORTREQUESTTYPE_NEMA_L22_20P PowerPortRequestType = "nema-l22-20p" + POWERPORTREQUESTTYPE_NEMA_L22_30P PowerPortRequestType = "nema-l22-30p" + POWERPORTREQUESTTYPE_CS6361C PowerPortRequestType = "cs6361c" + POWERPORTREQUESTTYPE_CS6365C PowerPortRequestType = "cs6365c" + POWERPORTREQUESTTYPE_CS8165C PowerPortRequestType = "cs8165c" + POWERPORTREQUESTTYPE_CS8265C PowerPortRequestType = "cs8265c" + POWERPORTREQUESTTYPE_CS8365C PowerPortRequestType = "cs8365c" + POWERPORTREQUESTTYPE_CS8465C PowerPortRequestType = "cs8465c" + POWERPORTREQUESTTYPE_ITA_C PowerPortRequestType = "ita-c" + POWERPORTREQUESTTYPE_ITA_E PowerPortRequestType = "ita-e" + POWERPORTREQUESTTYPE_ITA_F PowerPortRequestType = "ita-f" + POWERPORTREQUESTTYPE_ITA_EF PowerPortRequestType = "ita-ef" + POWERPORTREQUESTTYPE_ITA_G PowerPortRequestType = "ita-g" + POWERPORTREQUESTTYPE_ITA_H PowerPortRequestType = "ita-h" + POWERPORTREQUESTTYPE_ITA_I PowerPortRequestType = "ita-i" + POWERPORTREQUESTTYPE_ITA_J PowerPortRequestType = "ita-j" + POWERPORTREQUESTTYPE_ITA_K PowerPortRequestType = "ita-k" + POWERPORTREQUESTTYPE_ITA_L PowerPortRequestType = "ita-l" + POWERPORTREQUESTTYPE_ITA_M PowerPortRequestType = "ita-m" + POWERPORTREQUESTTYPE_ITA_N PowerPortRequestType = "ita-n" + POWERPORTREQUESTTYPE_ITA_O PowerPortRequestType = "ita-o" + POWERPORTREQUESTTYPE_USB_A PowerPortRequestType = "usb-a" + POWERPORTREQUESTTYPE_USB_B PowerPortRequestType = "usb-b" + POWERPORTREQUESTTYPE_USB_C PowerPortRequestType = "usb-c" + POWERPORTREQUESTTYPE_USB_MINI_A PowerPortRequestType = "usb-mini-a" + POWERPORTREQUESTTYPE_USB_MINI_B PowerPortRequestType = "usb-mini-b" + POWERPORTREQUESTTYPE_USB_MICRO_A PowerPortRequestType = "usb-micro-a" + POWERPORTREQUESTTYPE_USB_MICRO_B PowerPortRequestType = "usb-micro-b" + POWERPORTREQUESTTYPE_USB_MICRO_AB PowerPortRequestType = "usb-micro-ab" + POWERPORTREQUESTTYPE_USB_3_B PowerPortRequestType = "usb-3-b" + POWERPORTREQUESTTYPE_USB_3_MICRO_B PowerPortRequestType = "usb-3-micro-b" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PowerPortRequestType = "molex-micro-fit-1x2" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PowerPortRequestType = "molex-micro-fit-2x2" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PowerPortRequestType = "molex-micro-fit-2x4" + POWERPORTREQUESTTYPE_DC_TERMINAL PowerPortRequestType = "dc-terminal" + POWERPORTREQUESTTYPE_SAF_D_GRID PowerPortRequestType = "saf-d-grid" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PowerPortRequestType = "neutrik-powercon-20" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PowerPortRequestType = "neutrik-powercon-32" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerPortRequestType = "neutrik-powercon-true1" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PowerPortRequestType = "neutrik-powercon-true1-top" + POWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PowerPortRequestType = "ubiquiti-smartpower" + POWERPORTREQUESTTYPE_HARDWIRED PowerPortRequestType = "hardwired" + POWERPORTREQUESTTYPE_OTHER PowerPortRequestType = "other" + POWERPORTREQUESTTYPE_EMPTY PowerPortRequestType = "" +) + +// All allowed values of PowerPortRequestType enum +var AllowedPowerPortRequestTypeEnumValues = []PowerPortRequestType{ + "iec-60320-c6", + "iec-60320-c8", + "iec-60320-c14", + "iec-60320-c16", + "iec-60320-c20", + "iec-60320-c22", + "iec-60309-p-n-e-4h", + "iec-60309-p-n-e-6h", + "iec-60309-p-n-e-9h", + "iec-60309-2p-e-4h", + "iec-60309-2p-e-6h", + "iec-60309-2p-e-9h", + "iec-60309-3p-e-4h", + "iec-60309-3p-e-6h", + "iec-60309-3p-e-9h", + "iec-60309-3p-n-e-4h", + "iec-60309-3p-n-e-6h", + "iec-60309-3p-n-e-9h", + "iec-60906-1", + "nbr-14136-10a", + "nbr-14136-20a", + "nema-1-15p", + "nema-5-15p", + "nema-5-20p", + "nema-5-30p", + "nema-5-50p", + "nema-6-15p", + "nema-6-20p", + "nema-6-30p", + "nema-6-50p", + "nema-10-30p", + "nema-10-50p", + "nema-14-20p", + "nema-14-30p", + "nema-14-50p", + "nema-14-60p", + "nema-15-15p", + "nema-15-20p", + "nema-15-30p", + "nema-15-50p", + "nema-15-60p", + "nema-l1-15p", + "nema-l5-15p", + "nema-l5-20p", + "nema-l5-30p", + "nema-l5-50p", + "nema-l6-15p", + "nema-l6-20p", + "nema-l6-30p", + "nema-l6-50p", + "nema-l10-30p", + "nema-l14-20p", + "nema-l14-30p", + "nema-l14-50p", + "nema-l14-60p", + "nema-l15-20p", + "nema-l15-30p", + "nema-l15-50p", + "nema-l15-60p", + "nema-l21-20p", + "nema-l21-30p", + "nema-l22-20p", + "nema-l22-30p", + "cs6361c", + "cs6365c", + "cs8165c", + "cs8265c", + "cs8365c", + "cs8465c", + "ita-c", + "ita-e", + "ita-f", + "ita-ef", + "ita-g", + "ita-h", + "ita-i", + "ita-j", + "ita-k", + "ita-l", + "ita-m", + "ita-n", + "ita-o", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", + "usb-3-b", + "usb-3-micro-b", + "molex-micro-fit-1x2", + "molex-micro-fit-2x2", + "molex-micro-fit-2x4", + "dc-terminal", + "saf-d-grid", + "neutrik-powercon-20", + "neutrik-powercon-32", + "neutrik-powercon-true1", + "neutrik-powercon-true1-top", + "ubiquiti-smartpower", + "hardwired", + "other", + "", +} + +func (v *PowerPortRequestType) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerPortRequestType(value) + for _, existing := range AllowedPowerPortRequestTypeEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerPortRequestType", value) +} + +// NewPowerPortRequestTypeFromValue returns a pointer to a valid PowerPortRequestType +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerPortRequestTypeFromValue(v string) (*PowerPortRequestType, error) { + ev := PowerPortRequestType(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerPortRequestType: valid values are %v", v, AllowedPowerPortRequestTypeEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerPortRequestType) IsValid() bool { + for _, existing := range AllowedPowerPortRequestTypeEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerPortRequest_type value +func (v PowerPortRequestType) Ptr() *PowerPortRequestType { + return &v +} + +type NullablePowerPortRequestType struct { + value *PowerPortRequestType + isSet bool +} + +func (v NullablePowerPortRequestType) Get() *PowerPortRequestType { + return v.value +} + +func (v *NullablePowerPortRequestType) Set(val *PowerPortRequestType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortRequestType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortRequestType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortRequestType(val *PowerPortRequestType) *NullablePowerPortRequestType { + return &NullablePowerPortRequestType{value: val, isSet: true} +} + +func (v NullablePowerPortRequestType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortRequestType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_power_port_template.go b/model_power_port_template.go index 2178d92e0..44e2d5cc1 100644 --- a/model_power_port_template.go +++ b/model_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPortTemplate type satisfies the MappedNullable interface at compile time @@ -20,12 +21,23 @@ var _ MappedNullable = &PowerPortTemplate{} // PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,12 +47,14 @@ type _PowerPortTemplate PowerPortTemplate // 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 NewPowerPortTemplate(id int32, url string, display string, name string) *PowerPortTemplate { +func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *PowerPortTemplate { this := PowerPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -124,6 +138,92 @@ func (o *PowerPortTemplate) SetDisplay(v string) { o.Display = v } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplate) GetName() string { if o == nil { @@ -148,6 +248,167 @@ func (o *PowerPortTemplate) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplate) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortTemplate) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +func (o *PowerPortTemplate) SetType(v PowerPortType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplate) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplate) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortTemplate) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortTemplate) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortTemplate) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortTemplate) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +441,58 @@ func (o *PowerPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPortTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPortTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,10 +506,30 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +547,8 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -246,8 +581,16 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go index 4f2826e7f..7a2c750b2 100644 --- a/model_power_port_template_request.go +++ b/model_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,18 @@ var _ MappedNullable = &PowerPortTemplateRequest{} // PowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortRequestType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,6 +55,92 @@ func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +165,167 @@ func (o *PowerPortTemplateRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplateRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. +func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortTemplateRequest) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortTemplateRequest) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,7 +368,25 @@ func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -159,7 +433,13 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_type.go b/model_power_port_type.go new file mode 100644 index 000000000..d103e8523 --- /dev/null +++ b/model_power_port_type.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the PowerPortType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &PowerPortType{} + +// PowerPortType struct for PowerPortType +type PowerPortType struct { + Value *PatchedWritablePowerPortTemplateRequestType `json:"value,omitempty"` + Label *PowerPortTypeLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _PowerPortType PowerPortType + +// NewPowerPortType instantiates a new PowerPortType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewPowerPortType() *PowerPortType { + this := PowerPortType{} + return &this +} + +// NewPowerPortTypeWithDefaults instantiates a new PowerPortType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewPowerPortTypeWithDefaults() *PowerPortType { + this := PowerPortType{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *PowerPortType) GetValue() PatchedWritablePowerPortTemplateRequestType { + if o == nil || IsNil(o.Value) { + var ret PatchedWritablePowerPortTemplateRequestType + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortType) GetValueOk() (*PatchedWritablePowerPortTemplateRequestType, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *PowerPortType) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritablePowerPortTemplateRequestType and assigns it to the Value field. +func (o *PowerPortType) SetValue(v PatchedWritablePowerPortTemplateRequestType) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortType) GetLabel() PowerPortTypeLabel { + if o == nil || IsNil(o.Label) { + var ret PowerPortTypeLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortType) GetLabelOk() (*PowerPortTypeLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortType) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given PowerPortTypeLabel and assigns it to the Label field. +func (o *PowerPortType) SetLabel(v PowerPortTypeLabel) { + o.Label = &v +} + +func (o PowerPortType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o PowerPortType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *PowerPortType) UnmarshalJSON(data []byte) (err error) { + varPowerPortType := _PowerPortType{} + + err = json.Unmarshal(data, &varPowerPortType) + + if err != nil { + return err + } + + *o = PowerPortType(varPowerPortType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullablePowerPortType struct { + value *PowerPortType + isSet bool +} + +func (v NullablePowerPortType) Get() *PowerPortType { + return v.value +} + +func (v *NullablePowerPortType) Set(val *PowerPortType) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortType) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortType(val *PowerPortType) *NullablePowerPortType { + return &NullablePowerPortType{value: val, isSet: true} +} + +func (v NullablePowerPortType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go new file mode 100644 index 000000000..f7613c60d --- /dev/null +++ b/model_power_port_type_label.go @@ -0,0 +1,315 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// PowerPortTypeLabel the model 'PowerPortTypeLabel' +type PowerPortTypeLabel string + +// List of PowerPort_type_label +const ( + POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6" + POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8" + POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14" + POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16" + POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20" + POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22" + POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H" + POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H" + POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H" + POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H" + POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H" + POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H" + POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H" + POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H" + POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H" + POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H" + POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H" + POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H" + POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1" + POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)" + POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)" + POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P" + POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P" + POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P" + POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P" + POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P" + POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P" + POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P" + POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P" + POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P" + POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P" + POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P" + POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P" + POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P" + POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P" + POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P" + POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P" + POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P" + POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P" + POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P" + POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P" + POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P" + POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P" + POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P" + POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P" + POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P" + POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P" + POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P" + POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P" + POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P" + POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P" + POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P" + POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P" + POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P" + POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P" + POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P" + POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P" + POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P" + POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P" + POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P" + POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P" + POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P" + POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P" + POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C" + POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C" + POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C" + POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C" + POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C" + POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C" + POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)" + POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)" + POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)" + POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)" + POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)" + POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H" + POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I" + POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J" + POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K" + POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)" + POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)" + POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N" + POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O" + POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A" + POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B" + POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C" + POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A" + POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B" + POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A" + POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B" + POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB" + POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B" + POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4" + POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal" + POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerPortTypeLabel = "Neutrik powerCON TRUE1 TOP" + POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower" + POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired" + POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other" +) + +// All allowed values of PowerPortTypeLabel enum +var AllowedPowerPortTypeLabelEnumValues = []PowerPortTypeLabel{ + "C6", + "C8", + "C14", + "C16", + "C20", + "C22", + "P+N+E 4H", + "P+N+E 6H", + "P+N+E 9H", + "2P+E 4H", + "2P+E 6H", + "2P+E 9H", + "3P+E 4H", + "3P+E 6H", + "3P+E 9H", + "3P+N+E 4H", + "3P+N+E 6H", + "3P+N+E 9H", + "IEC 60906-1", + "2P+T 10A (NBR 14136)", + "2P+T 20A (NBR 14136)", + "NEMA 1-15P", + "NEMA 5-15P", + "NEMA 5-20P", + "NEMA 5-30P", + "NEMA 5-50P", + "NEMA 6-15P", + "NEMA 6-20P", + "NEMA 6-30P", + "NEMA 6-50P", + "NEMA 10-30P", + "NEMA 10-50P", + "NEMA 14-20P", + "NEMA 14-30P", + "NEMA 14-50P", + "NEMA 14-60P", + "NEMA 15-15P", + "NEMA 15-20P", + "NEMA 15-30P", + "NEMA 15-50P", + "NEMA 15-60P", + "NEMA L1-15P", + "NEMA L5-15P", + "NEMA L5-20P", + "NEMA L5-30P", + "NEMA L5-50P", + "NEMA L6-15P", + "NEMA L6-20P", + "NEMA L6-30P", + "NEMA L6-50P", + "NEMA L10-30P", + "NEMA L14-20P", + "NEMA L14-30P", + "NEMA L14-50P", + "NEMA L14-60P", + "NEMA L15-20P", + "NEMA L15-30P", + "NEMA L15-50P", + "NEMA L15-60P", + "NEMA L21-20P", + "NEMA L21-30P", + "NEMA L22-20P", + "NEMA L22-30P", + "CS6361C", + "CS6365C", + "CS8165C", + "CS8265C", + "CS8365C", + "CS8465C", + "ITA Type C (CEE 7/16)", + "ITA Type E (CEE 7/6)", + "ITA Type F (CEE 7/4)", + "ITA Type E/F (CEE 7/7)", + "ITA Type G (BS 1363)", + "ITA Type H", + "ITA Type I", + "ITA Type J", + "ITA Type K", + "ITA Type L (CEI 23-50)", + "ITA Type M (BS 546)", + "ITA Type N", + "ITA Type O", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", + "USB 3.0 Type B", + "USB 3.0 Micro B", + "Molex Micro-Fit 1x2", + "Molex Micro-Fit 2x2", + "Molex Micro-Fit 2x4", + "DC Terminal", + "Saf-D-Grid", + "Neutrik powerCON (20A)", + "Neutrik powerCON (32A)", + "Neutrik powerCON TRUE1", + "Neutrik powerCON TRUE1 TOP", + "Ubiquiti SmartPower", + "Hardwired", + "Other", +} + +func (v *PowerPortTypeLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := PowerPortTypeLabel(value) + for _, existing := range AllowedPowerPortTypeLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid PowerPortTypeLabel", value) +} + +// NewPowerPortTypeLabelFromValue returns a pointer to a valid PowerPortTypeLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewPowerPortTypeLabelFromValue(v string) (*PowerPortTypeLabel, error) { + ev := PowerPortTypeLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for PowerPortTypeLabel: valid values are %v", v, AllowedPowerPortTypeLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v PowerPortTypeLabel) IsValid() bool { + for _, existing := range AllowedPowerPortTypeLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to PowerPort_type_label value +func (v PowerPortTypeLabel) Ptr() *PowerPortTypeLabel { + return &v +} + +type NullablePowerPortTypeLabel struct { + value *PowerPortTypeLabel + isSet bool +} + +func (v NullablePowerPortTypeLabel) Get() *PowerPortTypeLabel { + return v.value +} + +func (v *NullablePowerPortTypeLabel) Set(val *PowerPortTypeLabel) { + v.value = val + v.isSet = true +} + +func (v NullablePowerPortTypeLabel) IsSet() bool { + return v.isSet +} + +func (v *NullablePowerPortTypeLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullablePowerPortTypeLabel(val *PowerPortTypeLabel) *NullablePowerPortTypeLabel { + return &NullablePowerPortTypeLabel{value: val, isSet: true} +} + +func (v NullablePowerPortTypeLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullablePowerPortTypeLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_prefix.go b/model_prefix.go index 69448e57b..cd3356df9 100644 --- a/model_prefix.go +++ b/model_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,18 @@ var _ MappedNullable = &Prefix{} // Prefix Adds support for custom fields and tags. type Prefix struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Prefix string `json:"prefix"` - Site NullableSite `json:"site,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Status *PrefixStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Site NullableBriefSite `json:"site,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Vlan NullableBriefVLAN `json:"vlan,omitempty"` + Status *PrefixStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -53,10 +54,11 @@ 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, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { +func NewPrefix(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { this := Prefix{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Prefix = prefix @@ -123,6 +125,30 @@ func (o *Prefix) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Prefix) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Prefix) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Prefix) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Prefix) GetDisplay() string { if o == nil { @@ -196,9 +222,9 @@ func (o *Prefix) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetSite() Site { +func (o *Prefix) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -207,7 +233,7 @@ func (o *Prefix) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetSiteOk() (*Site, bool) { +func (o *Prefix) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -223,8 +249,8 @@ func (o *Prefix) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *Prefix) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *Prefix) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -239,9 +265,9 @@ func (o *Prefix) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVrf() VRF { +func (o *Prefix) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -250,7 +276,7 @@ func (o *Prefix) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVrfOk() (*VRF, bool) { +func (o *Prefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -266,8 +292,8 @@ func (o *Prefix) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Prefix) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Prefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -282,9 +308,9 @@ func (o *Prefix) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetTenant() Tenant { +func (o *Prefix) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -293,7 +319,7 @@ func (o *Prefix) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetTenantOk() (*Tenant, bool) { +func (o *Prefix) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -309,8 +335,8 @@ func (o *Prefix) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Prefix) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Prefix) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -325,9 +351,9 @@ func (o *Prefix) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVlan() VLAN { +func (o *Prefix) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -336,7 +362,7 @@ func (o *Prefix) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVlanOk() (*VLAN, bool) { +func (o *Prefix) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -352,8 +378,8 @@ func (o *Prefix) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *Prefix) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *Prefix) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } @@ -400,9 +426,9 @@ func (o *Prefix) SetStatus(v PrefixStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetRole() Role { +func (o *Prefix) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -411,7 +437,7 @@ func (o *Prefix) GetRole() Role { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetRoleOk() (*Role, bool) { +func (o *Prefix) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -427,8 +453,8 @@ func (o *Prefix) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *Prefix) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *Prefix) SetRole(v BriefRole) { o.Role.Set(&v) } @@ -746,6 +772,7 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -804,6 +831,7 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "family", "prefix", @@ -842,6 +870,7 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_prefix_request.go b/model_prefix_request.go index 5634c83a7..ce3bd1690 100644 --- a/model_prefix_request.go +++ b/model_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PrefixRequest{} // PrefixRequest Adds support for custom fields and tags. type PrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Status *PrefixStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Prefix string `json:"prefix"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Status *PrefixStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *PrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetSite() SiteRequest { +func (o *PrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *PrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *PrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *PrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVrf() VRFRequest { +func (o *PrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *PrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *PrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *PrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetTenant() TenantRequest { +func (o *PrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *PrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *PrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *PrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVlan() VLANRequest { +func (o *PrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *PrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *PrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *PrefixRequest) SetStatus(v PrefixStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetRole() RoleRequest { +func (o *PrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *PrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *PrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_prefix_status.go b/model_prefix_status.go index f2406410f..f038c6460 100644 --- a/model_prefix_status.go +++ b/model_prefix_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go index 41bac8bf7..3c86d87db 100644 --- a/model_prefix_status_label.go +++ b/model_prefix_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go index 7e225f700..40239ab9b 100644 --- a/model_prefix_status_value.go +++ b/model_prefix_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_provider.go b/model_provider.go index a368b3c0b..05a533f2e 100644 --- a/model_provider.go +++ b/model_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Provider type satisfies the MappedNullable interface at compile time @@ -20,14 +21,22 @@ var _ MappedNullable = &Provider{} // Provider Adds support for custom fields and tags. type Provider struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []NestedProviderAccount `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +46,16 @@ type _Provider Provider // 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 NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *Provider { +func NewProvider(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *Provider { this := Provider{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.CircuitCount = circuitCount return &this } @@ -104,6 +116,30 @@ func (o *Provider) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Provider) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Provider) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Provider) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Provider) GetDisplay() string { if o == nil { @@ -176,6 +212,38 @@ func (o *Provider) SetSlug(v string) { o.Slug = v } +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *Provider) GetAccounts() []NestedProviderAccount { + if o == nil || IsNil(o.Accounts) { + var ret []NestedProviderAccount + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAccountsOk() ([]NestedProviderAccount, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *Provider) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []NestedProviderAccount and assigns it to the Accounts field. +func (o *Provider) SetAccounts(v []NestedProviderAccount) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Provider) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -208,6 +276,186 @@ func (o *Provider) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Provider) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Provider) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Provider) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Provider) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Provider) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Provider) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Provider) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Provider) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Provider) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Provider) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Provider) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Provider) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Provider) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Provider) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Provider) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Provider) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetCircuitCount returns the CircuitCount field value func (o *Provider) GetCircuitCount() int64 { if o == nil { @@ -244,12 +492,30 @@ func (o Provider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { @@ -266,9 +532,12 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "circuit_count", } @@ -301,10 +570,18 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "circuit_count") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_account.go b/model_provider_account.go index e1b668c13..80a99e0fe 100644 --- a/model_provider_account.go +++ b/model_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,8 +23,9 @@ var _ MappedNullable = &ProviderAccount{} type ProviderAccount struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - Provider Provider `json:"provider"` + Provider BriefProvider `json:"provider"` Name *string `json:"name,omitempty"` Account string `json:"account"` Description *string `json:"description,omitempty"` @@ -42,10 +43,11 @@ type _ProviderAccount ProviderAccount // 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 NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { +func NewProviderAccount(id int32, url string, displayUrl string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { this := ProviderAccount{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Provider = provider var name string = "" @@ -114,6 +116,30 @@ func (o *ProviderAccount) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ProviderAccount) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ProviderAccount) GetDisplay() string { if o == nil { @@ -139,9 +165,9 @@ func (o *ProviderAccount) SetDisplay(v string) { } // GetProvider returns the Provider field value -func (o *ProviderAccount) GetProvider() Provider { +func (o *ProviderAccount) GetProvider() BriefProvider { if o == nil { - var ret Provider + var ret BriefProvider return ret } @@ -150,7 +176,7 @@ func (o *ProviderAccount) GetProvider() Provider { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { +func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool) { if o == nil { return nil, false } @@ -158,7 +184,7 @@ func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { } // SetProvider sets field value -func (o *ProviderAccount) SetProvider(v Provider) { +func (o *ProviderAccount) SetProvider(v BriefProvider) { o.Provider = v } @@ -410,6 +436,7 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider if !IsNil(o.Name) { @@ -445,6 +472,7 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "provider", "account", @@ -481,6 +509,7 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "provider") delete(additionalProperties, "name") diff --git a/model_provider_account_request.go b/model_provider_account_request.go index feca4b6ea..b817b78fd 100644 --- a/model_provider_account_request.go +++ b/model_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &ProviderAccountRequest{} // ProviderAccountRequest Adds support for custom fields and tags. type ProviderAccountRequest struct { - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `json:"provider"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,8 +36,9 @@ type _ProviderAccountRequest ProviderAccountRequest // 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 NewProviderAccountRequest(account string) *ProviderAccountRequest { +func NewProviderAccountRequest(provider BriefProviderRequest, account string) *ProviderAccountRequest { this := ProviderAccountRequest{} + this.Provider = provider var name string = "" this.Name = &name this.Account = account @@ -50,6 +55,30 @@ func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *ProviderAccountRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -138,6 +167,102 @@ func (o *ProviderAccountRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderAccountRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -148,6 +273,7 @@ func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -155,6 +281,15 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -168,6 +303,7 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "account", } @@ -198,9 +334,13 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") delete(additionalProperties, "account") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network.go b/model_provider_network.go index 213b6174c..361f1b903 100644 --- a/model_provider_network.go +++ b/model_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ProviderNetwork type satisfies the MappedNullable interface at compile time @@ -20,11 +21,19 @@ var _ MappedNullable = &ProviderNetwork{} // ProviderNetwork Adds support for custom fields and tags. type ProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Provider BriefProvider `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +43,16 @@ type _ProviderNetwork ProviderNetwork // 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 NewProviderNetwork(id int32, url string, display string, name string) *ProviderNetwork { +func NewProviderNetwork(id int32, url string, displayUrl string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime) *ProviderNetwork { this := ProviderNetwork{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display + this.Provider = provider this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +112,30 @@ func (o *ProviderNetwork) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ProviderNetwork) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ProviderNetwork) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ProviderNetwork) GetDisplay() string { if o == nil { @@ -123,6 +160,30 @@ func (o *ProviderNetwork) SetDisplay(v string) { o.Display = v } +// GetProvider returns the Provider field value +func (o *ProviderNetwork) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetwork) SetProvider(v BriefProvider) { + o.Provider = v +} + // GetName returns the Name field value func (o *ProviderNetwork) GetName() string { if o == nil { @@ -147,6 +208,38 @@ func (o *ProviderNetwork) SetName(v string) { o.Name = v } +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetwork) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetwork) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetwork) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetwork) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +272,154 @@ func (o *ProviderNetwork) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetwork) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetwork) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetwork) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetwork) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderNetwork) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ProviderNetwork) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetwork) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderNetwork) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderNetwork) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ProviderNetwork) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ProviderNetwork) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ProviderNetwork) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ProviderNetwork) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ProviderNetwork) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +432,27 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +468,12 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", + "provider", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +505,17 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network_request.go b/model_provider_network_request.go index 05b023aca..c3b5a7a65 100644 --- a/model_provider_network_request.go +++ b/model_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &ProviderNetworkRequest{} // ProviderNetworkRequest Adds support for custom fields and tags. type ProviderNetworkRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,8 +36,9 @@ type _ProviderNetworkRequest ProviderNetworkRequest // 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 NewProviderNetworkRequest(name string) *ProviderNetworkRequest { +func NewProviderNetworkRequest(provider BriefProviderRequest, name string) *ProviderNetworkRequest { this := ProviderNetworkRequest{} + this.Provider = provider this.Name = name return &this } @@ -45,6 +51,30 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + // GetName returns the Name field value func (o *ProviderNetworkRequest) GetName() string { if o == nil { @@ -69,6 +99,38 @@ func (o *ProviderNetworkRequest) SetName(v string) { o.Name = v } +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetworkRequest) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetworkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +163,102 @@ func (o *ProviderNetworkRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetworkRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +269,23 @@ func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,6 +299,7 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "name", } @@ -158,8 +330,13 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_request.go b/model_provider_request.go index 1edfe34ee..5c02bb7a6 100644 --- a/model_provider_request.go +++ b/model_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,14 @@ var _ MappedNullable = &ProviderRequest{} // ProviderRequest Adds support for custom fields and tags. type ProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []int32 `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -96,6 +101,38 @@ func (o *ProviderRequest) SetSlug(v string) { o.Slug = v } +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *ProviderRequest) GetAccounts() []int32 { + if o == nil || IsNil(o.Accounts) { + var ret []int32 + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAccountsOk() ([]int32, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *ProviderRequest) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []int32 and assigns it to the Accounts field. +func (o *ProviderRequest) SetAccounts(v []int32) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +165,134 @@ func (o *ProviderRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *ProviderRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *ProviderRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *ProviderRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +305,24 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,7 +369,12 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack.go b/model_rack.go index 95c82770b..52f79e576 100644 --- a/model_rack.go +++ b/model_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Rack type satisfies the MappedNullable interface at compile time @@ -20,12 +21,49 @@ var _ MappedNullable = &Rack{} // Rack Adds support for custom fields and tags. type Rack struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *RackStatus `json:"status,omitempty"` + Role NullableBriefRackRole `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackType `json:"rack_type,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *RackAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -35,12 +73,17 @@ type _Rack Rack // 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 NewRack(id int32, url string, display string, name string) *Rack { +func NewRack(id int32, url string, displayUrl string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, powerfeedCount int64) *Rack { this := Rack{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Site = site + this.Created = created + this.LastUpdated = lastUpdated + this.PowerfeedCount = powerfeedCount return &this } @@ -100,52 +143,926 @@ func (o *Rack) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Rack) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Rack) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Rack) GetDisplay() string { if o == nil { - var ret string + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Rack) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *Rack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Rack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Rack) SetName(v string) { + o.Name = v +} + +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *Rack) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +func (o *Rack) SetFacilityId(v string) { + o.FacilityId.Set(&v) +} + +// SetFacilityIdNil sets the value for FacilityId to be an explicit nil +func (o *Rack) SetFacilityIdNil() { + o.FacilityId.Set(nil) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *Rack) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *Rack) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Rack) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Rack) SetSite(v BriefSite) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *Rack) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Rack) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *Rack) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *Rack) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Rack) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Rack) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Rack) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Rack) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Rack) GetStatus() RackStatus { + if o == nil || IsNil(o.Status) { + var ret RackStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStatusOk() (*RackStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Rack) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given RackStatus and assigns it to the Status field. +func (o *Rack) SetStatus(v RackStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRole() BriefRackRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetRoleOk() (*BriefRackRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *Rack) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRole and assigns it to the Role field. +func (o *Rack) SetRole(v BriefRackRole) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *Rack) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *Rack) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Rack) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Rack) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Rack) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Rack) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *Rack) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *Rack) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Rack) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRackType() BriefRackType { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackType + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetRackTypeOk() (*BriefRackType, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *Rack) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackType and assigns it to the RackType field. +func (o *Rack) SetRackType(v BriefRackType) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *Rack) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *Rack) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *Rack) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *Rack) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *Rack) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *Rack) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *Rack) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *Rack) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *Rack) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *Rack) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *Rack) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *Rack) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *Rack) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *Rack) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *Rack) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *Rack) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *Rack) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *Rack) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *Rack) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *Rack) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *Rack) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *Rack) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *Rack) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *Rack) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *Rack) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *Rack) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *Rack) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool return ret } + return *o.DescUnits +} - return o.Display +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true } -// GetDisplayOk returns a tuple with the Display field value +// HasDescUnits returns a boolean if a field has been set. +func (o *Rack) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *Rack) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetDisplayOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterWidthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Display, true + return o.OuterWidth.Get(), o.OuterWidth.IsSet() } -// SetDisplay sets field value -func (o *Rack) SetDisplay(v string) { - o.Display = v +// HasOuterWidth returns a boolean if a field has been set. +func (o *Rack) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false } -// GetName returns the Name field value -func (o *Rack) GetName() string { +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *Rack) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *Rack) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *Rack) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterDepthOk() (*int32, bool) { if o == nil { - var ret string + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *Rack) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *Rack) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *Rack) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *Rack) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit return ret } + return *o.OuterUnit.Get() +} - return o.Name +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() } -// GetNameOk returns a tuple with the Name field value +// HasOuterUnit returns a boolean if a field has been set. +func (o *Rack) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +func (o *Rack) SetOuterUnit(v RackOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *Rack) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *Rack) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetNameOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMountingDepthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Name, true + return o.MountingDepth.Get(), o.MountingDepth.IsSet() } -// SetName sets field value -func (o *Rack) SetName(v string) { - o.Name = v +// HasMountingDepth returns a boolean if a field has been set. +func (o *Rack) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *Rack) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *Rack) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *Rack) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *Rack) GetAirflow() RackAirflow { + if o == nil || IsNil(o.Airflow) { + var ret RackAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetAirflowOk() (*RackAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *Rack) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given RackAirflow and assigns it to the Airflow field. +func (o *Rack) SetAirflow(v RackAirflow) { + o.Airflow = &v } // GetDescription returns the Description field value if set, zero value otherwise. @@ -180,6 +1097,154 @@ func (o *Rack) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Rack) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Rack) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Rack) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Rack) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Rack) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Rack) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Rack) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Rack) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Rack) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Rack) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Rack) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Rack) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Rack) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Rack) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -212,6 +1277,30 @@ func (o *Rack) SetDeviceCount(v int64) { o.DeviceCount = &v } +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *Rack) GetPowerfeedCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PowerfeedCount +} + +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// and a boolean to check if the value has been set. +func (o *Rack) GetPowerfeedCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PowerfeedCount, true +} + +// SetPowerfeedCount sets field value +func (o *Rack) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v +} + func (o Rack) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -224,14 +1313,91 @@ func (o Rack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } + toSerialize["powerfeed_count"] = o.PowerfeedCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -247,8 +1413,13 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "site", + "created", + "last_updated", + "powerfeed_count", } allProperties := make(map[string]interface{}) @@ -280,10 +1451,39 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "powerfeed_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_airflow.go b/model_rack_airflow.go new file mode 100644 index 000000000..610bd0172 --- /dev/null +++ b/model_rack_airflow.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackAirflow type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackAirflow{} + +// RackAirflow struct for RackAirflow +type RackAirflow struct { + Value *PatchedWritableRackRequestAirflow `json:"value,omitempty"` + Label *RackAirflowLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackAirflow RackAirflow + +// NewRackAirflow instantiates a new RackAirflow object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackAirflow() *RackAirflow { + this := RackAirflow{} + return &this +} + +// NewRackAirflowWithDefaults instantiates a new RackAirflow object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackAirflowWithDefaults() *RackAirflow { + this := RackAirflow{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackAirflow) GetValue() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackAirflow) GetValueOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackAirflow) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Value field. +func (o *RackAirflow) SetValue(v PatchedWritableRackRequestAirflow) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackAirflow) GetLabel() RackAirflowLabel { + if o == nil || IsNil(o.Label) { + var ret RackAirflowLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackAirflow) GetLabelOk() (*RackAirflowLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackAirflow) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackAirflowLabel and assigns it to the Label field. +func (o *RackAirflow) SetLabel(v RackAirflowLabel) { + o.Label = &v +} + +func (o RackAirflow) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackAirflow) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackAirflow) UnmarshalJSON(data []byte) (err error) { + varRackAirflow := _RackAirflow{} + + err = json.Unmarshal(data, &varRackAirflow) + + if err != nil { + return err + } + + *o = RackAirflow(varRackAirflow) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackAirflow struct { + value *RackAirflow + isSet bool +} + +func (v NullableRackAirflow) Get() *RackAirflow { + return v.value +} + +func (v *NullableRackAirflow) Set(val *RackAirflow) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflow) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflow) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflow(val *RackAirflow) *NullableRackAirflow { + return &NullableRackAirflow{value: val, isSet: true} +} + +func (v NullableRackAirflow) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflow) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_airflow_label.go b/model_rack_airflow_label.go new file mode 100644 index 000000000..8c878c175 --- /dev/null +++ b/model_rack_airflow_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackAirflowLabel the model 'RackAirflowLabel' +type RackAirflowLabel string + +// List of Rack_airflow_label +const ( + RACKAIRFLOWLABEL_FRONT_TO_REAR RackAirflowLabel = "Front to rear" + RACKAIRFLOWLABEL_REAR_TO_FRONT RackAirflowLabel = "Rear to front" +) + +// All allowed values of RackAirflowLabel enum +var AllowedRackAirflowLabelEnumValues = []RackAirflowLabel{ + "Front to rear", + "Rear to front", +} + +func (v *RackAirflowLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackAirflowLabel(value) + for _, existing := range AllowedRackAirflowLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackAirflowLabel", value) +} + +// NewRackAirflowLabelFromValue returns a pointer to a valid RackAirflowLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackAirflowLabelFromValue(v string) (*RackAirflowLabel, error) { + ev := RackAirflowLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackAirflowLabel: valid values are %v", v, AllowedRackAirflowLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackAirflowLabel) IsValid() bool { + for _, existing := range AllowedRackAirflowLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_airflow_label value +func (v RackAirflowLabel) Ptr() *RackAirflowLabel { + return &v +} + +type NullableRackAirflowLabel struct { + value *RackAirflowLabel + isSet bool +} + +func (v NullableRackAirflowLabel) Get() *RackAirflowLabel { + return v.value +} + +func (v *NullableRackAirflowLabel) Set(val *RackAirflowLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackAirflowLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackAirflowLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackAirflowLabel(val *RackAirflowLabel) *NullableRackAirflowLabel { + return &NullableRackAirflowLabel{value: val, isSet: true} +} + +func (v NullableRackAirflowLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackAirflowLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_face.go b/model_rack_face.go index a0c96cd51..bc93b22c3 100644 --- a/model_rack_face.go +++ b/model_rack_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_face_1.go b/model_rack_face_1.go index bbb650941..c9c0463ec 100644 --- a/model_rack_face_1.go +++ b/model_rack_face_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_form_factor.go b/model_rack_form_factor.go new file mode 100644 index 000000000..552091463 --- /dev/null +++ b/model_rack_form_factor.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackFormFactor type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackFormFactor{} + +// RackFormFactor struct for RackFormFactor +type RackFormFactor struct { + Value *PatchedWritableRackRequestFormFactor `json:"value,omitempty"` + Label *RackFormFactorLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackFormFactor RackFormFactor + +// NewRackFormFactor instantiates a new RackFormFactor object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackFormFactor() *RackFormFactor { + this := RackFormFactor{} + return &this +} + +// NewRackFormFactorWithDefaults instantiates a new RackFormFactor object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackFormFactorWithDefaults() *RackFormFactor { + this := RackFormFactor{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackFormFactor) GetValue() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackFormFactor) GetValueOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackFormFactor) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the Value field. +func (o *RackFormFactor) SetValue(v PatchedWritableRackRequestFormFactor) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackFormFactor) GetLabel() RackFormFactorLabel { + if o == nil || IsNil(o.Label) { + var ret RackFormFactorLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackFormFactor) GetLabelOk() (*RackFormFactorLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackFormFactor) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackFormFactorLabel and assigns it to the Label field. +func (o *RackFormFactor) SetLabel(v RackFormFactorLabel) { + o.Label = &v +} + +func (o RackFormFactor) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackFormFactor) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackFormFactor) UnmarshalJSON(data []byte) (err error) { + varRackFormFactor := _RackFormFactor{} + + err = json.Unmarshal(data, &varRackFormFactor) + + if err != nil { + return err + } + + *o = RackFormFactor(varRackFormFactor) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackFormFactor struct { + value *RackFormFactor + isSet bool +} + +func (v NullableRackFormFactor) Get() *RackFormFactor { + return v.value +} + +func (v *NullableRackFormFactor) Set(val *RackFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactor(val *RackFormFactor) *NullableRackFormFactor { + return &NullableRackFormFactor{value: val, isSet: true} +} + +func (v NullableRackFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_form_factor_label.go b/model_rack_form_factor_label.go new file mode 100644 index 000000000..bd134be7d --- /dev/null +++ b/model_rack_form_factor_label.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackFormFactorLabel the model 'RackFormFactorLabel' +type RackFormFactorLabel string + +// List of Rack_form_factor_label +const ( + RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame" + RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame" + RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET__VERTICAL RackFormFactorLabel = "Wall-mounted cabinet (vertical)" +) + +// All allowed values of RackFormFactorLabel enum +var AllowedRackFormFactorLabelEnumValues = []RackFormFactorLabel{ + "2-post frame", + "4-post frame", + "4-post cabinet", + "Wall-mounted frame", + "Wall-mounted frame (vertical)", + "Wall-mounted cabinet", + "Wall-mounted cabinet (vertical)", +} + +func (v *RackFormFactorLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackFormFactorLabel(value) + for _, existing := range AllowedRackFormFactorLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackFormFactorLabel", value) +} + +// NewRackFormFactorLabelFromValue returns a pointer to a valid RackFormFactorLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackFormFactorLabelFromValue(v string) (*RackFormFactorLabel, error) { + ev := RackFormFactorLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackFormFactorLabel: valid values are %v", v, AllowedRackFormFactorLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackFormFactorLabel) IsValid() bool { + for _, existing := range AllowedRackFormFactorLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_form_factor_label value +func (v RackFormFactorLabel) Ptr() *RackFormFactorLabel { + return &v +} + +type NullableRackFormFactorLabel struct { + value *RackFormFactorLabel + isSet bool +} + +func (v NullableRackFormFactorLabel) Get() *RackFormFactorLabel { + return v.value +} + +func (v *NullableRackFormFactorLabel) Set(val *RackFormFactorLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackFormFactorLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackFormFactorLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackFormFactorLabel(val *RackFormFactorLabel) *NullableRackFormFactorLabel { + return &NullableRackFormFactorLabel{value: val, isSet: true} +} + +func (v NullableRackFormFactorLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackFormFactorLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go new file mode 100644 index 000000000..7b487ce8e --- /dev/null +++ b/model_rack_outer_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackOuterUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackOuterUnit{} + +// RackOuterUnit struct for RackOuterUnit +type RackOuterUnit struct { + Value *PatchedWritableRackRequestOuterUnit `json:"value,omitempty"` + Label *RackOuterUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackOuterUnit RackOuterUnit + +// NewRackOuterUnit instantiates a new RackOuterUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackOuterUnit() *RackOuterUnit { + this := RackOuterUnit{} + return &this +} + +// NewRackOuterUnitWithDefaults instantiates a new RackOuterUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackOuterUnitWithDefaults() *RackOuterUnit { + this := RackOuterUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackOuterUnit) GetValue() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackOuterUnit) GetValueOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackOuterUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the Value field. +func (o *RackOuterUnit) SetValue(v PatchedWritableRackRequestOuterUnit) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackOuterUnit) GetLabel() RackOuterUnitLabel { + if o == nil || IsNil(o.Label) { + var ret RackOuterUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackOuterUnit) GetLabelOk() (*RackOuterUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackOuterUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackOuterUnitLabel and assigns it to the Label field. +func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel) { + o.Label = &v +} + +func (o RackOuterUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackOuterUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackOuterUnit) UnmarshalJSON(data []byte) (err error) { + varRackOuterUnit := _RackOuterUnit{} + + err = json.Unmarshal(data, &varRackOuterUnit) + + if err != nil { + return err + } + + *o = RackOuterUnit(varRackOuterUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackOuterUnit struct { + value *RackOuterUnit + isSet bool +} + +func (v NullableRackOuterUnit) Get() *RackOuterUnit { + return v.value +} + +func (v *NullableRackOuterUnit) Set(val *RackOuterUnit) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnit(val *RackOuterUnit) *NullableRackOuterUnit { + return &NullableRackOuterUnit{value: val, isSet: true} +} + +func (v NullableRackOuterUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go new file mode 100644 index 000000000..3312d2f66 --- /dev/null +++ b/model_rack_outer_unit_label.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackOuterUnitLabel the model 'RackOuterUnitLabel' +type RackOuterUnitLabel string + +// List of Rack_outer_unit_label +const ( + RACKOUTERUNITLABEL_MILLIMETERS RackOuterUnitLabel = "Millimeters" + RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches" +) + +// All allowed values of RackOuterUnitLabel enum +var AllowedRackOuterUnitLabelEnumValues = []RackOuterUnitLabel{ + "Millimeters", + "Inches", +} + +func (v *RackOuterUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackOuterUnitLabel(value) + for _, existing := range AllowedRackOuterUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackOuterUnitLabel", value) +} + +// NewRackOuterUnitLabelFromValue returns a pointer to a valid RackOuterUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackOuterUnitLabelFromValue(v string) (*RackOuterUnitLabel, error) { + ev := RackOuterUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackOuterUnitLabel: valid values are %v", v, AllowedRackOuterUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackOuterUnitLabel) IsValid() bool { + for _, existing := range AllowedRackOuterUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_outer_unit_label value +func (v RackOuterUnitLabel) Ptr() *RackOuterUnitLabel { + return &v +} + +type NullableRackOuterUnitLabel struct { + value *RackOuterUnitLabel + isSet bool +} + +func (v NullableRackOuterUnitLabel) Get() *RackOuterUnitLabel { + return v.value +} + +func (v *NullableRackOuterUnitLabel) Set(val *RackOuterUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackOuterUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackOuterUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackOuterUnitLabel(val *RackOuterUnitLabel) *NullableRackOuterUnitLabel { + return &NullableRackOuterUnitLabel{value: val, isSet: true} +} + +func (v NullableRackOuterUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackOuterUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_request.go b/model_rack_request.go index 820be5e16..dfa36681f 100644 --- a/model_rack_request.go +++ b/model_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,41 @@ var _ MappedNullable = &RackRequest{} // RackRequest Adds support for custom fields and tags. type RackRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +64,10 @@ type _RackRequest RackRequest // 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 NewRackRequest(name string) *RackRequest { +func NewRackRequest(name string, site BriefSiteRequest) *RackRequest { this := RackRequest{} this.Name = name + this.Site = site return &this } @@ -69,6 +103,856 @@ func (o *RackRequest) SetName(v string) { o.Name = v } +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *RackRequest) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +func (o *RackRequest) SetFacilityId(v string) { + o.FacilityId.Set(&v) +} + +// SetFacilityIdNil sets the value for FacilityId to be an explicit nil +func (o *RackRequest) SetFacilityIdNil() { + o.FacilityId.Set(nil) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *RackRequest) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *RackRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *RackRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *RackRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *RackRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *RackRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *RackRequest) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *RackRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *RackRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *RackRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Status) { + var ret PatchedWritableRackRequestStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RackRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field. +func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRole() BriefRackRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *RackRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *RackRequest) SetRole(v BriefRackRoleRequest) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *RackRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *RackRequest) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *RackRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *RackRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *RackRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *RackRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *RackRequest) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *RackRequest) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *RackRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *RackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *RackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *RackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *RackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFormFactor() RackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackRequest) SetFormFactor(v RackRequestFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *RackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +985,102 @@ func (o *RackRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RackRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RackRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +1092,82 @@ func (o RackRequest) MarshalJSON() ([]byte, error) { func (o RackRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +1182,7 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "site", } allProperties := make(map[string]interface{}) @@ -159,7 +1213,32 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_request_form_factor.go b/model_rack_request_form_factor.go new file mode 100644 index 000000000..c585593f3 --- /dev/null +++ b/model_rack_request_form_factor.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackRequestFormFactor * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +type RackRequestFormFactor string + +// List of RackRequest_form_factor +const ( + RACKREQUESTFORMFACTOR__2_POST_FRAME RackRequestFormFactor = "2-post-frame" + RACKREQUESTFORMFACTOR__4_POST_FRAME RackRequestFormFactor = "4-post-frame" + RACKREQUESTFORMFACTOR__4_POST_CABINET RackRequestFormFactor = "4-post-cabinet" + RACKREQUESTFORMFACTOR_WALL_FRAME RackRequestFormFactor = "wall-frame" + RACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL RackRequestFormFactor = "wall-frame-vertical" + RACKREQUESTFORMFACTOR_WALL_CABINET RackRequestFormFactor = "wall-cabinet" + RACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL RackRequestFormFactor = "wall-cabinet-vertical" + RACKREQUESTFORMFACTOR_EMPTY RackRequestFormFactor = "" +) + +// All allowed values of RackRequestFormFactor enum +var AllowedRackRequestFormFactorEnumValues = []RackRequestFormFactor{ + "2-post-frame", + "4-post-frame", + "4-post-cabinet", + "wall-frame", + "wall-frame-vertical", + "wall-cabinet", + "wall-cabinet-vertical", + "", +} + +func (v *RackRequestFormFactor) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackRequestFormFactor(value) + for _, existing := range AllowedRackRequestFormFactorEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackRequestFormFactor", value) +} + +// NewRackRequestFormFactorFromValue returns a pointer to a valid RackRequestFormFactor +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackRequestFormFactorFromValue(v string) (*RackRequestFormFactor, error) { + ev := RackRequestFormFactor(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackRequestFormFactor: valid values are %v", v, AllowedRackRequestFormFactorEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackRequestFormFactor) IsValid() bool { + for _, existing := range AllowedRackRequestFormFactorEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RackRequest_form_factor value +func (v RackRequestFormFactor) Ptr() *RackRequestFormFactor { + return &v +} + +type NullableRackRequestFormFactor struct { + value *RackRequestFormFactor + isSet bool +} + +func (v NullableRackRequestFormFactor) Get() *RackRequestFormFactor { + return v.value +} + +func (v *NullableRackRequestFormFactor) Set(val *RackRequestFormFactor) { + v.value = val + v.isSet = true +} + +func (v NullableRackRequestFormFactor) IsSet() bool { + return v.isSet +} + +func (v *NullableRackRequestFormFactor) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackRequestFormFactor(val *RackRequestFormFactor) *NullableRackRequestFormFactor { + return &NullableRackRequestFormFactor{value: val, isSet: true} +} + +func (v NullableRackRequestFormFactor) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackRequestFormFactor) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_request_outer_unit.go b/model_rack_request_outer_unit.go new file mode 100644 index 000000000..89e600724 --- /dev/null +++ b/model_rack_request_outer_unit.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackRequestOuterUnit * `mm` - Millimeters * `in` - Inches +type RackRequestOuterUnit string + +// List of RackRequest_outer_unit +const ( + RACKREQUESTOUTERUNIT_MM RackRequestOuterUnit = "mm" + RACKREQUESTOUTERUNIT_IN RackRequestOuterUnit = "in" + RACKREQUESTOUTERUNIT_EMPTY RackRequestOuterUnit = "" +) + +// All allowed values of RackRequestOuterUnit enum +var AllowedRackRequestOuterUnitEnumValues = []RackRequestOuterUnit{ + "mm", + "in", + "", +} + +func (v *RackRequestOuterUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackRequestOuterUnit(value) + for _, existing := range AllowedRackRequestOuterUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackRequestOuterUnit", value) +} + +// NewRackRequestOuterUnitFromValue returns a pointer to a valid RackRequestOuterUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackRequestOuterUnitFromValue(v string) (*RackRequestOuterUnit, error) { + ev := RackRequestOuterUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackRequestOuterUnit: valid values are %v", v, AllowedRackRequestOuterUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackRequestOuterUnit) IsValid() bool { + for _, existing := range AllowedRackRequestOuterUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to RackRequest_outer_unit value +func (v RackRequestOuterUnit) Ptr() *RackRequestOuterUnit { + return &v +} + +type NullableRackRequestOuterUnit struct { + value *RackRequestOuterUnit + isSet bool +} + +func (v NullableRackRequestOuterUnit) Get() *RackRequestOuterUnit { + return v.value +} + +func (v *NullableRackRequestOuterUnit) Set(val *RackRequestOuterUnit) { + v.value = val + v.isSet = true +} + +func (v NullableRackRequestOuterUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableRackRequestOuterUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackRequestOuterUnit(val *RackRequestOuterUnit) *NullableRackRequestOuterUnit { + return &NullableRackRequestOuterUnit{value: val, isSet: true} +} + +func (v NullableRackRequestOuterUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackRequestOuterUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_reservation.go b/model_rack_reservation.go index f4cdb1411..0d88b0d8b 100644 --- a/model_rack_reservation.go +++ b/model_rack_reservation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &RackReservation{} type RackReservation struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - Rack Rack `json:"rack"` + Rack BriefRack `json:"rack"` Units []int32 `json:"units"` Created NullableTime `json:"created"` LastUpdated NullableTime `json:"last_updated"` - User User `json:"user"` - Tenant NullableTenant `json:"tenant,omitempty"` + User BriefUser `json:"user"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description string `json:"description"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -43,10 +44,11 @@ type _RackReservation RackReservation // 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 NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string) *RackReservation { +func NewRackReservation(id int32, url string, displayUrl string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string) *RackReservation { this := RackReservation{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Rack = rack this.Units = units @@ -113,6 +115,30 @@ func (o *RackReservation) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RackReservation) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RackReservation) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RackReservation) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RackReservation) GetDisplay() string { if o == nil { @@ -138,9 +164,9 @@ func (o *RackReservation) SetDisplay(v string) { } // GetRack returns the Rack field value -func (o *RackReservation) GetRack() Rack { +func (o *RackReservation) GetRack() BriefRack { if o == nil { - var ret Rack + var ret BriefRack return ret } @@ -149,7 +175,7 @@ func (o *RackReservation) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetRackOk() (*Rack, bool) { +func (o *RackReservation) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -157,7 +183,7 @@ func (o *RackReservation) GetRackOk() (*Rack, bool) { } // SetRack sets field value -func (o *RackReservation) SetRack(v Rack) { +func (o *RackReservation) SetRack(v BriefRack) { o.Rack = v } @@ -238,9 +264,9 @@ func (o *RackReservation) SetLastUpdated(v time.Time) { } // GetUser returns the User field value -func (o *RackReservation) GetUser() User { +func (o *RackReservation) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -249,7 +275,7 @@ func (o *RackReservation) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetUserOk() (*User, bool) { +func (o *RackReservation) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -257,14 +283,14 @@ func (o *RackReservation) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *RackReservation) SetUser(v User) { +func (o *RackReservation) SetUser(v BriefUser) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservation) GetTenant() Tenant { +func (o *RackReservation) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +299,7 @@ func (o *RackReservation) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservation) GetTenantOk() (*Tenant, bool) { +func (o *RackReservation) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,8 +315,8 @@ func (o *RackReservation) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RackReservation) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RackReservation) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -436,6 +462,7 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["rack"] = o.Rack toSerialize["units"] = o.Units @@ -470,6 +497,7 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "rack", "units", @@ -508,6 +536,7 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "rack") delete(additionalProperties, "units") diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go index f08054702..ca3ff81a3 100644 --- a/model_rack_reservation_request.go +++ b/model_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &RackReservationRequest{} // RackReservationRequest Adds support for custom fields and tags. type RackReservationRequest struct { - Rack RackRequest `json:"rack"` - Units []int32 `json:"units"` - User UserRequest `json:"user"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack BriefRackRequest `json:"rack"` + Units []int32 `json:"units"` + User BriefUserRequest `json:"user"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _RackReservationRequest RackReservationRequest // 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 NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string) *RackReservationRequest { +func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string) *RackReservationRequest { this := RackReservationRequest{} this.Rack = rack this.Units = units @@ -55,9 +55,9 @@ func NewRackReservationRequestWithDefaults() *RackReservationRequest { } // GetRack returns the Rack field value -func (o *RackReservationRequest) GetRack() RackRequest { +func (o *RackReservationRequest) GetRack() BriefRackRequest { if o == nil { - var ret RackRequest + var ret BriefRackRequest return ret } @@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -74,7 +74,7 @@ func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { } // SetRack sets field value -func (o *RackReservationRequest) SetRack(v RackRequest) { +func (o *RackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = v } @@ -103,9 +103,9 @@ func (o *RackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value -func (o *RackReservationRequest) GetUser() UserRequest { +func (o *RackReservationRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -114,7 +114,7 @@ func (o *RackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -122,14 +122,14 @@ func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *RackReservationRequest) SetUser(v UserRequest) { +func (o *RackReservationRequest) SetUser(v BriefUserRequest) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservationRequest) GetTenant() TenantRequest { +func (o *RackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -138,7 +138,7 @@ func (o *RackReservationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -154,8 +154,8 @@ func (o *RackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_rack_role.go b/model_rack_role.go index 6f5af14fd..622cf88a4 100644 --- a/model_rack_role.go +++ b/model_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &RackRole{} type RackRole struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,10 +43,11 @@ type _RackRole RackRole // 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 NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { +func NewRackRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { this := RackRole{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -111,6 +113,30 @@ func (o *RackRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RackRole) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RackRole) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RackRole) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RackRole) GetDisplay() string { if o == nil { @@ -399,6 +425,7 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -432,6 +459,7 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -469,6 +497,7 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_rack_role_request.go b/model_rack_role_request.go index f3d72593d..43cdf4b13 100644 --- a/model_rack_role_request.go +++ b/model_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_status.go b/model_rack_status.go new file mode 100644 index 000000000..a3fcc5d2a --- /dev/null +++ b/model_rack_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackStatus{} + +// RackStatus struct for RackStatus +type RackStatus struct { + Value *PatchedWritableRackRequestStatus `json:"value,omitempty"` + Label *RackStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackStatus RackStatus + +// NewRackStatus instantiates a new RackStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackStatus() *RackStatus { + this := RackStatus{} + return &this +} + +// NewRackStatusWithDefaults instantiates a new RackStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackStatusWithDefaults() *RackStatus { + this := RackStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackStatus) GetValue() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableRackRequestStatus + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackStatus) GetValueOk() (*PatchedWritableRackRequestStatus, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Value field. +func (o *RackStatus) SetValue(v PatchedWritableRackRequestStatus) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackStatus) GetLabel() RackStatusLabel { + if o == nil || IsNil(o.Label) { + var ret RackStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackStatus) GetLabelOk() (*RackStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackStatusLabel and assigns it to the Label field. +func (o *RackStatus) SetLabel(v RackStatusLabel) { + o.Label = &v +} + +func (o RackStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackStatus) UnmarshalJSON(data []byte) (err error) { + varRackStatus := _RackStatus{} + + err = json.Unmarshal(data, &varRackStatus) + + if err != nil { + return err + } + + *o = RackStatus(varRackStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackStatus struct { + value *RackStatus + isSet bool +} + +func (v NullableRackStatus) Get() *RackStatus { + return v.value +} + +func (v *NullableRackStatus) Set(val *RackStatus) { + v.value = val + v.isSet = true +} + +func (v NullableRackStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableRackStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackStatus(val *RackStatus) *NullableRackStatus { + return &NullableRackStatus{value: val, isSet: true} +} + +func (v NullableRackStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_status_label.go b/model_rack_status_label.go new file mode 100644 index 000000000..cfcb1635d --- /dev/null +++ b/model_rack_status_label.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackStatusLabel the model 'RackStatusLabel' +type RackStatusLabel string + +// List of Rack_status_label +const ( + RACKSTATUSLABEL_RESERVED RackStatusLabel = "Reserved" + RACKSTATUSLABEL_AVAILABLE RackStatusLabel = "Available" + RACKSTATUSLABEL_PLANNED RackStatusLabel = "Planned" + RACKSTATUSLABEL_ACTIVE RackStatusLabel = "Active" + RACKSTATUSLABEL_DEPRECATED RackStatusLabel = "Deprecated" +) + +// All allowed values of RackStatusLabel enum +var AllowedRackStatusLabelEnumValues = []RackStatusLabel{ + "Reserved", + "Available", + "Planned", + "Active", + "Deprecated", +} + +func (v *RackStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackStatusLabel(value) + for _, existing := range AllowedRackStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackStatusLabel", value) +} + +// NewRackStatusLabelFromValue returns a pointer to a valid RackStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackStatusLabelFromValue(v string) (*RackStatusLabel, error) { + ev := RackStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackStatusLabel: valid values are %v", v, AllowedRackStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackStatusLabel) IsValid() bool { + for _, existing := range AllowedRackStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_status_label value +func (v RackStatusLabel) Ptr() *RackStatusLabel { + return &v +} + +type NullableRackStatusLabel struct { + value *RackStatusLabel + isSet bool +} + +func (v NullableRackStatusLabel) Get() *RackStatusLabel { + return v.value +} + +func (v *NullableRackStatusLabel) Set(val *RackStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackStatusLabel(val *RackStatusLabel) *NullableRackStatusLabel { + return &NullableRackStatusLabel{value: val, isSet: true} +} + +func (v NullableRackStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_type.go b/model_rack_type.go new file mode 100644 index 000000000..bdea556cd --- /dev/null +++ b/model_rack_type.go @@ -0,0 +1,1084 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the RackType type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackType{} + +// RackType Adds support for custom fields and tags. +type RackType struct { + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AdditionalProperties map[string]interface{} +} + +type _RackType RackType + +// NewRackType instantiates a new RackType object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime) *RackType { + this := RackType{} + this.Id = id + this.Url = url + this.DisplayUrl = displayUrl + this.Display = display + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + return &this +} + +// NewRackTypeWithDefaults instantiates a new RackType object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackTypeWithDefaults() *RackType { + this := RackType{} + return &this +} + +// GetId returns the Id field value +func (o *RackType) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *RackType) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *RackType) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *RackType) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *RackType) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *RackType) SetUrl(v string) { + o.Url = v +} + +// GetDisplayUrl returns the DisplayUrl field value +func (o *RackType) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RackType) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RackType) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + +// GetDisplay returns the Display field value +func (o *RackType) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *RackType) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *RackType) SetDisplay(v string) { + o.Display = v +} + +// GetManufacturer returns the Manufacturer field value +func (o *RackType) GetManufacturer() BriefManufacturer { + if o == nil { + var ret BriefManufacturer + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *RackType) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *RackType) SetManufacturer(v BriefManufacturer) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *RackType) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *RackType) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *RackType) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *RackType) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *RackType) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *RackType) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RackType) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RackType) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RackType) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackType) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *RackType) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackType) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackType) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackType) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackType) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *RackType) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackType) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackType) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackType) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackType) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackType) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackType) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackType) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackType) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackType) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackType) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackType) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackType) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackType) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackType) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackType) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackType) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackType) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +func (o *RackType) SetOuterUnit(v RackOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackType) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackType) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackType) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackType) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackType) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackType) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackType) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackType) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackType) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackType) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackType) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackType) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackType) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *RackType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RackType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RackType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RackType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RackType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +func (o RackType) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackType) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl + toSerialize["display"] = o.Display + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackType) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display_url", + "display", + "manufacturer", + "model", + "slug", + "created", + "last_updated", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRackType := _RackType{} + + err = json.Unmarshal(data, &varRackType) + + if err != nil { + return err + } + + *o = RackType(varRackType) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display_url") + delete(additionalProperties, "display") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackType struct { + value *RackType + isSet bool +} + +func (v NullableRackType) Get() *RackType { + return v.value +} + +func (v *NullableRackType) Set(val *RackType) { + v.value = val + v.isSet = true +} + +func (v NullableRackType) IsSet() bool { + return v.isSet +} + +func (v *NullableRackType) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackType(val *RackType) *NullableRackType { + return &NullableRackType{value: val, isSet: true} +} + +func (v NullableRackType) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackType) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_type_request.go b/model_rack_type_request.go new file mode 100644 index 000000000..153f03f11 --- /dev/null +++ b/model_rack_type_request.go @@ -0,0 +1,905 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the RackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackTypeRequest{} + +// RackTypeRequest Adds support for custom fields and tags. +type RackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackTypeRequest RackTypeRequest + +// NewRackTypeRequest instantiates a new RackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *RackTypeRequest { + this := RackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + return &this +} + +// NewRackTypeRequestWithDefaults instantiates a new RackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackTypeRequestWithDefaults() *RackTypeRequest { + this := RackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *RackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *RackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *RackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *RackTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *RackTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *RackTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *RackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *RackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *RackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetFormFactor() RackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetFormFactorOk() (*RackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackTypeRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackTypeRequest) SetFormFactor(v RackRequestFormFactor) { + o.FormFactor.Set(&v) +} +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackTypeRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackTypeRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackTypeRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackTypeRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackTypeRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetOuterUnit() RackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackTypeRequest) SetOuterUnit(v RackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackTypeRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackTypeRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o RackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varRackTypeRequest := _RackTypeRequest{} + + err = json.Unmarshal(data, &varRackTypeRequest) + + if err != nil { + return err + } + + *o = RackTypeRequest(varRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackTypeRequest struct { + value *RackTypeRequest + isSet bool +} + +func (v NullableRackTypeRequest) Get() *RackTypeRequest { + return v.value +} + +func (v *NullableRackTypeRequest) Set(val *RackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackTypeRequest(val *RackTypeRequest) *NullableRackTypeRequest { + return &NullableRackTypeRequest{value: val, isSet: true} +} + +func (v NullableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_unit.go b/model_rack_unit.go index 6bd4ac781..d23bdfcb7 100644 --- a/model_rack_unit.go +++ b/model_rack_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type RackUnit struct { Id float64 `json:"id"` Name string `json:"name"` Face RackUnitFace `json:"face"` - Device Device `json:"device"` + Device BriefDevice `json:"device"` Occupied bool `json:"occupied"` Display string `json:"display"` AdditionalProperties map[string]interface{} @@ -35,7 +35,7 @@ type _RackUnit RackUnit // 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 NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string) *RackUnit { +func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string) *RackUnit { this := RackUnit{} this.Id = id this.Name = name @@ -127,9 +127,9 @@ func (o *RackUnit) SetFace(v RackUnitFace) { } // GetDevice returns the Device field value -func (o *RackUnit) GetDevice() Device { +func (o *RackUnit) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -138,7 +138,7 @@ func (o *RackUnit) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RackUnit) GetDeviceOk() (*Device, bool) { +func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -146,7 +146,7 @@ func (o *RackUnit) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RackUnit) SetDevice(v Device) { +func (o *RackUnit) SetDevice(v BriefDevice) { o.Device = v } diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go index 081988bab..9485cdea5 100644 --- a/model_rack_unit_face.go +++ b/model_rack_unit_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go index 1219f8e2c..bbedfc296 100644 --- a/model_rack_unit_face_value.go +++ b/model_rack_unit_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_width.go b/model_rack_width.go new file mode 100644 index 000000000..41a83f1c7 --- /dev/null +++ b/model_rack_width.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the RackWidth type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &RackWidth{} + +// RackWidth struct for RackWidth +type RackWidth struct { + Value *RackWidthValue `json:"value,omitempty"` + Label *RackWidthLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _RackWidth RackWidth + +// NewRackWidth instantiates a new RackWidth object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewRackWidth() *RackWidth { + this := RackWidth{} + return &this +} + +// NewRackWidthWithDefaults instantiates a new RackWidth object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewRackWidthWithDefaults() *RackWidth { + this := RackWidth{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *RackWidth) GetValue() RackWidthValue { + if o == nil || IsNil(o.Value) { + var ret RackWidthValue + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackWidth) GetValueOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *RackWidth) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given RackWidthValue and assigns it to the Value field. +func (o *RackWidth) SetValue(v RackWidthValue) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RackWidth) GetLabel() RackWidthLabel { + if o == nil || IsNil(o.Label) { + var ret RackWidthLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackWidth) GetLabelOk() (*RackWidthLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RackWidth) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given RackWidthLabel and assigns it to the Label field. +func (o *RackWidth) SetLabel(v RackWidthLabel) { + o.Label = &v +} + +func (o RackWidth) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o RackWidth) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *RackWidth) UnmarshalJSON(data []byte) (err error) { + varRackWidth := _RackWidth{} + + err = json.Unmarshal(data, &varRackWidth) + + if err != nil { + return err + } + + *o = RackWidth(varRackWidth) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableRackWidth struct { + value *RackWidth + isSet bool +} + +func (v NullableRackWidth) Get() *RackWidth { + return v.value +} + +func (v *NullableRackWidth) Set(val *RackWidth) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidth) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidth) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidth(val *RackWidth) *NullableRackWidth { + return &NullableRackWidth{value: val, isSet: true} +} + +func (v NullableRackWidth) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidth) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_rack_width_label.go b/model_rack_width_label.go new file mode 100644 index 000000000..d675b6c4c --- /dev/null +++ b/model_rack_width_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackWidthLabel the model 'RackWidthLabel' +type RackWidthLabel string + +// List of Rack_width_label +const ( + RACKWIDTHLABEL__10_INCHES RackWidthLabel = "10 inches" + RACKWIDTHLABEL__19_INCHES RackWidthLabel = "19 inches" + RACKWIDTHLABEL__21_INCHES RackWidthLabel = "21 inches" + RACKWIDTHLABEL__23_INCHES RackWidthLabel = "23 inches" +) + +// All allowed values of RackWidthLabel enum +var AllowedRackWidthLabelEnumValues = []RackWidthLabel{ + "10 inches", + "19 inches", + "21 inches", + "23 inches", +} + +func (v *RackWidthLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackWidthLabel(value) + for _, existing := range AllowedRackWidthLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackWidthLabel", value) +} + +// NewRackWidthLabelFromValue returns a pointer to a valid RackWidthLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackWidthLabelFromValue(v string) (*RackWidthLabel, error) { + ev := RackWidthLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackWidthLabel: valid values are %v", v, AllowedRackWidthLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackWidthLabel) IsValid() bool { + for _, existing := range AllowedRackWidthLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_width_label value +func (v RackWidthLabel) Ptr() *RackWidthLabel { + return &v +} + +type NullableRackWidthLabel struct { + value *RackWidthLabel + isSet bool +} + +func (v NullableRackWidthLabel) Get() *RackWidthLabel { + return v.value +} + +func (v *NullableRackWidthLabel) Set(val *RackWidthLabel) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidthLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidthLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidthLabel(val *RackWidthLabel) *NullableRackWidthLabel { + return &NullableRackWidthLabel{value: val, isSet: true} +} + +func (v NullableRackWidthLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidthLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rack_width_value.go b/model_rack_width_value.go new file mode 100644 index 000000000..979207053 --- /dev/null +++ b/model_rack_width_value.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// RackWidthValue * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +type RackWidthValue int32 + +// List of Rack_width_value +const ( + RACKWIDTHVALUE__10 RackWidthValue = 10 + RACKWIDTHVALUE__19 RackWidthValue = 19 + RACKWIDTHVALUE__21 RackWidthValue = 21 + RACKWIDTHVALUE__23 RackWidthValue = 23 +) + +// All allowed values of RackWidthValue enum +var AllowedRackWidthValueEnumValues = []RackWidthValue{ + 10, + 19, + 21, + 23, +} + +func (v *RackWidthValue) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := RackWidthValue(value) + for _, existing := range AllowedRackWidthValueEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid RackWidthValue", value) +} + +// NewRackWidthValueFromValue returns a pointer to a valid RackWidthValue +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewRackWidthValueFromValue(v int32) (*RackWidthValue, error) { + ev := RackWidthValue(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for RackWidthValue: valid values are %v", v, AllowedRackWidthValueEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v RackWidthValue) IsValid() bool { + for _, existing := range AllowedRackWidthValueEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Rack_width_value value +func (v RackWidthValue) Ptr() *RackWidthValue { + return &v +} + +type NullableRackWidthValue struct { + value *RackWidthValue + isSet bool +} + +func (v NullableRackWidthValue) Get() *RackWidthValue { + return v.value +} + +func (v *NullableRackWidthValue) Set(val *RackWidthValue) { + v.value = val + v.isSet = true +} + +func (v NullableRackWidthValue) IsSet() bool { + return v.isSet +} + +func (v *NullableRackWidthValue) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableRackWidthValue(val *RackWidthValue) *NullableRackWidthValue { + return &NullableRackWidthValue{value: val, isSet: true} +} + +func (v NullableRackWidthValue) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableRackWidthValue) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_rear_port.go b/model_rear_port.go index 874ce1541..4ef7189e0 100644 --- a/model_rear_port.go +++ b/model_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &RearPort{} // RearPort Adds support for custom fields and tags. type RearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortType `json:"type"` @@ -35,12 +36,12 @@ type RearPort struct { Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -55,10 +56,11 @@ type _RearPort RearPort // 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 NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { +func NewRearPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { this := RearPort{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -129,6 +131,30 @@ func (o *RearPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RearPort) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RearPort) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RearPort) GetDisplay() string { if o == nil { @@ -154,9 +180,9 @@ func (o *RearPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *RearPort) GetDevice() Device { +func (o *RearPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -165,7 +191,7 @@ func (o *RearPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPort) GetDeviceOk() (*Device, bool) { +func (o *RearPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -173,14 +199,14 @@ func (o *RearPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RearPort) SetDevice(v Device) { +func (o *RearPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPort) GetModule() Module { +func (o *RearPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -189,7 +215,7 @@ func (o *RearPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetModuleOk() (*Module, bool) { +func (o *RearPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -205,8 +231,8 @@ func (o *RearPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *RearPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *RearPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -429,10 +455,10 @@ func (o *RearPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *RearPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *RearPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -442,7 +468,7 @@ func (o *RearPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetCableOk() (*Cable, bool) { +func (o *RearPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -450,7 +476,7 @@ func (o *RearPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *RearPort) SetCable(v Cable) { +func (o *RearPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -503,27 +529,29 @@ func (o *RearPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *RearPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RearPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *RearPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -678,6 +706,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -703,7 +732,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -728,6 +757,7 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "device", "name", @@ -770,6 +800,7 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_rear_port_request.go b/model_rear_port_request.go index 0ea93e90e..5c10f3963 100644 --- a/model_rear_port_request.go +++ b/model_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &RearPortRequest{} // RearPortRequest Adds support for custom fields and tags. type RearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _RearPortRequest RearPortRequest // 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 NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { +func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { this := RearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewRearPortRequestWithDefaults() *RearPortRequest { } // GetDevice returns the Device field value -func (o *RearPortRequest) GetDevice() DeviceRequest { +func (o *RearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *RearPortRequest) SetDevice(v DeviceRequest) { +func (o *RearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortRequest) GetModule() ModuleRequest { +func (o *RearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *RearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *RearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *RearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *RearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_rear_port_template.go b/model_rear_port_template.go index c0fc38788..96880d92a 100644 --- a/model_rear_port_template.go +++ b/model_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the RearPortTemplate type satisfies the MappedNullable interface at compile time @@ -20,12 +21,21 @@ var _ MappedNullable = &RearPortTemplate{} // RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,12 +45,15 @@ type _RearPortTemplate RearPortTemplate // 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 NewRearPortTemplate(id int32, url string, display string, name string) *RearPortTemplate { +func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime) *RearPortTemplate { this := RearPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -124,6 +137,92 @@ func (o *RearPortTemplate) SetDisplay(v string) { o.Display = v } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *RearPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplate) GetName() string { if o == nil { @@ -148,6 +247,126 @@ func (o *RearPortTemplate) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplate) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RearPortTemplate) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *RearPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplate) GetType() FrontPortType { + if o == nil { + var ret FrontPortType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplate) SetType(v FrontPortType) { + o.Type = v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplate) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplate) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplate) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplate) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplate) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplate) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +399,58 @@ func (o *RearPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RearPortTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RearPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RearPortTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RearPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o RearPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,10 +464,28 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +503,9 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -246,8 +538,16 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go index 094c72a2d..5cb428c0c 100644 --- a/model_rear_port_template_request.go +++ b/model_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,16 @@ var _ MappedNullable = &RearPortTemplateRequest{} // RearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +39,10 @@ type _RearPortTemplateRequest RearPortTemplateRequest // 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 NewRearPortTemplateRequest(name string) *RearPortTemplateRequest { +func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *RearPortTemplateRequest { this := RearPortTemplateRequest{} this.Name = name + this.Type = type_ return &this } @@ -46,6 +54,92 @@ func NewRearPortTemplateRequestWithDefaults() *RearPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +164,126 @@ func (o *RearPortTemplateRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *RearPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue { + if o == nil { + var ret FrontPortTypeValue + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) { + o.Type = v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplateRequest) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplateRequest) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,7 +326,23 @@ func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -130,6 +360,7 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } allProperties := make(map[string]interface{}) @@ -159,7 +390,13 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_region.go b/model_region.go index 41939f635..2ba4931aa 100644 --- a/model_region.go +++ b/model_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Region{} type Region struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ 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, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { +func NewRegion(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { this := Region{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *Region) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Region) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Region) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Region) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Region) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o Region) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_region_request.go b/model_region_request.go index a014b4811..ff81fb35a 100644 --- a/model_region_request.go +++ b/model_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rir.go b/model_rir.go index 503050bfc..3a3442b35 100644 --- a/model_rir.go +++ b/model_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the RIR type satisfies the MappedNullable interface at compile time @@ -20,13 +21,20 @@ var _ MappedNullable = &RIR{} // RIR Adds support for custom fields and tags. type RIR struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - AggregateCount int64 `json:"aggregate_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + // IP space managed by this RIR is considered private + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AggregateCount int64 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +44,16 @@ type _RIR RIR // 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 NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *RIR { +func NewRIR(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64) *RIR { this := RIR{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.AggregateCount = aggregateCount return &this } @@ -103,6 +114,30 @@ func (o *RIR) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RIR) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RIR) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RIR) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RIR) GetDisplay() string { if o == nil { @@ -175,6 +210,38 @@ func (o *RIR) SetSlug(v string) { o.Slug = v } +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIR) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIR) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIR) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIR) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +274,122 @@ func (o *RIR) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIR) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RIR) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *RIR) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIR) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RIR) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RIR) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RIR) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RIR) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RIR) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RIR) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RIR) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RIR) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetAggregateCount returns the AggregateCount field value func (o *RIR) GetAggregateCount() int64 { if o == nil { @@ -243,12 +426,24 @@ func (o RIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["aggregate_count"] = o.AggregateCount for key, value := range o.AdditionalProperties { @@ -265,9 +460,12 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "aggregate_count", } @@ -300,10 +498,16 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "aggregate_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rir_request.go b/model_rir_request.go index c7ddc0294..87d506ffa 100644 --- a/model_rir_request.go +++ b/model_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &RIRRequest{} // RIRRequest Adds support for custom fields and tags. type RIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + // IP space managed by this RIR is considered private + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,38 @@ func (o *RIRRequest) SetSlug(v string) { o.Slug = v } +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIRRequest) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIRRequest) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIRRequest) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIRRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +163,70 @@ func (o *RIRRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIRRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RIRRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RIRRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIRRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RIRRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RIRRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RIRRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +239,18 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +297,10 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_role.go b/model_role.go index 7e651644c..db888a98c 100644 --- a/model_role.go +++ b/model_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Role type satisfies the MappedNullable interface at compile time @@ -20,14 +21,20 @@ var _ MappedNullable = &Role{} // Role Adds support for custom fields and tags. type Role struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` - VlanCount int64 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +44,16 @@ type _Role Role // 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 NewRole(id int32, url string, display string, name string, slug string, vlanCount int64) *Role { +func NewRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, vlanCount int64) *Role { this := Role{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.VlanCount = vlanCount return &this } @@ -104,6 +114,30 @@ func (o *Role) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Role) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Role) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Role) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Role) GetDisplay() string { if o == nil { @@ -176,6 +210,38 @@ func (o *Role) SetSlug(v string) { o.Slug = v } +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *Role) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *Role) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *Role) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Role) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -208,6 +274,122 @@ func (o *Role) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Role) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Role) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Role) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Role) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Role) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Role) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Role) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Role) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Role) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Role) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Role) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Role) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *Role) GetPrefixCount() int64 { if o == nil || IsNil(o.PrefixCount) { @@ -276,12 +458,24 @@ func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -301,9 +495,12 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "vlan_count", } @@ -336,10 +533,16 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "prefix_count") delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties diff --git a/model_role_request.go b/model_role_request.go index 601cac559..494172a03 100644 --- a/model_role_request.go +++ b/model_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,12 @@ var _ MappedNullable = &RoleRequest{} // RoleRequest Adds support for custom fields and tags. type RoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +98,38 @@ func (o *RoleRequest) SetSlug(v string) { o.Slug = v } +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *RoleRequest) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *RoleRequest) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *RoleRequest) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RoleRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +162,70 @@ func (o *RoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RoleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RoleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RoleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RoleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +238,18 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +296,10 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_route_target.go b/model_route_target.go index 7856b51ca..580b1da00 100644 --- a/model_route_target.go +++ b/model_route_target.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &RouteTarget{} // RouteTarget Adds support for custom fields and tags. type RouteTarget struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Route target value (formatted in accordance with RFC 4360) Name string `json:"name"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -42,10 +43,11 @@ type _RouteTarget RouteTarget // 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 NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { +func NewRouteTarget(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { this := RouteTarget{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Created = created @@ -109,6 +111,30 @@ func (o *RouteTarget) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *RouteTarget) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *RouteTarget) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *RouteTarget) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *RouteTarget) GetDisplay() string { if o == nil { @@ -158,9 +184,9 @@ func (o *RouteTarget) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTarget) GetTenant() Tenant { +func (o *RouteTarget) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -169,7 +195,7 @@ func (o *RouteTarget) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTarget) GetTenantOk() (*Tenant, bool) { +func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -185,8 +211,8 @@ func (o *RouteTarget) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RouteTarget) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RouteTarget) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -392,6 +418,7 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Tenant.IsSet() { @@ -426,6 +453,7 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "created", @@ -461,6 +489,7 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "tenant") diff --git a/model_route_target_request.go b/model_route_target_request.go index f913d4bdf..1e28790e4 100644 --- a/model_route_target_request.go +++ b/model_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &RouteTargetRequest{} // RouteTargetRequest Adds support for custom fields and tags. type RouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,9 +75,9 @@ func (o *RouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTargetRequest) GetTenant() TenantRequest { +func (o *RouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -86,7 +86,7 @@ func (o *RouteTargetRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -102,8 +102,8 @@ func (o *RouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_saved_filter.go b/model_saved_filter.go index 4282ab65a..cd5247d62 100644 --- a/model_saved_filter.go +++ b/model_saved_filter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &SavedFilter{} type SavedFilter struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -44,10 +45,11 @@ type _SavedFilter SavedFilter // 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 NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { +func NewSavedFilter(id int32, url string, displayUrl string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { this := SavedFilter{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -114,6 +116,30 @@ func (o *SavedFilter) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *SavedFilter) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *SavedFilter) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *SavedFilter) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *SavedFilter) GetDisplay() string { if o == nil { @@ -471,6 +497,7 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -510,6 +537,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "object_types", "name", @@ -548,6 +576,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go index d38d5ce3e..6c2b3e146 100644 --- a/model_saved_filter_request.go +++ b/model_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go index 19b41f6a5..88d0073ee 100644 --- a/model_schema_retrieve_format_parameter.go +++ b/model_schema_retrieve_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go index 301bf4dbb..f675e7e88 100644 --- a/model_schema_retrieve_lang_parameter.go +++ b/model_schema_retrieve_lang_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,16 @@ type SchemaRetrieveLangParameter string // List of schema_retrieve_lang_parameter const ( + SCHEMARETRIEVELANGPARAMETER_CS SchemaRetrieveLangParameter = "cs" + SCHEMARETRIEVELANGPARAMETER_DA SchemaRetrieveLangParameter = "da" SCHEMARETRIEVELANGPARAMETER_DE SchemaRetrieveLangParameter = "de" SCHEMARETRIEVELANGPARAMETER_EN SchemaRetrieveLangParameter = "en" SCHEMARETRIEVELANGPARAMETER_ES SchemaRetrieveLangParameter = "es" SCHEMARETRIEVELANGPARAMETER_FR SchemaRetrieveLangParameter = "fr" + SCHEMARETRIEVELANGPARAMETER_IT SchemaRetrieveLangParameter = "it" SCHEMARETRIEVELANGPARAMETER_JA SchemaRetrieveLangParameter = "ja" + SCHEMARETRIEVELANGPARAMETER_NL SchemaRetrieveLangParameter = "nl" + SCHEMARETRIEVELANGPARAMETER_PL SchemaRetrieveLangParameter = "pl" SCHEMARETRIEVELANGPARAMETER_PT SchemaRetrieveLangParameter = "pt" SCHEMARETRIEVELANGPARAMETER_RU SchemaRetrieveLangParameter = "ru" SCHEMARETRIEVELANGPARAMETER_TR SchemaRetrieveLangParameter = "tr" @@ -34,11 +39,16 @@ const ( // All allowed values of SchemaRetrieveLangParameter enum var AllowedSchemaRetrieveLangParameterEnumValues = []SchemaRetrieveLangParameter{ + "cs", + "da", "de", "en", "es", "fr", + "it", "ja", + "nl", + "pl", "pt", "ru", "tr", diff --git a/model_script.go b/model_script.go index 738094f17..5c0584baa 100644 --- a/model_script.go +++ b/model_script.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,16 @@ var _ MappedNullable = &Script{} // Script Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Script struct { - Id int32 `json:"id"` - Url string `json:"url"` - Module int32 `json:"module"` - Name string `json:"name"` - Description string `json:"description"` - Vars interface{} `json:"vars"` - Result Job `json:"result"` - Display string `json:"display"` - IsExecutable bool `json:"is_executable"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Module int32 `json:"module"` + Name string `json:"name"` + Description NullableString `json:"description"` + Vars interface{} `json:"vars"` + Result BriefJob `json:"result"` + Display string `json:"display"` + IsExecutable bool `json:"is_executable"` AdditionalProperties map[string]interface{} } @@ -38,10 +39,11 @@ type _Script Script // 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 NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool) *Script { +func NewScript(id int32, url string, displayUrl string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool) *Script { this := Script{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Module = module this.Name = name this.Description = description @@ -108,6 +110,30 @@ func (o *Script) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Script) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Script) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Script) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetModule returns the Module field value func (o *Script) GetModule() int32 { if o == nil { @@ -157,27 +183,29 @@ func (o *Script) SetName(v string) { } // GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned func (o *Script) GetDescription() string { - if o == nil { + if o == nil || o.Description.Get() == nil { var ret string return ret } - return o.Description + return *o.Description.Get() } // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Script) GetDescriptionOk() (*string, bool) { if o == nil { return nil, false } - return &o.Description, true + return o.Description.Get(), o.Description.IsSet() } // SetDescription sets field value func (o *Script) SetDescription(v string) { - o.Description = v + o.Description.Set(&v) } // GetVars returns the Vars field value @@ -207,9 +235,9 @@ func (o *Script) SetVars(v interface{}) { } // GetResult returns the Result field value -func (o *Script) GetResult() Job { +func (o *Script) GetResult() BriefJob { if o == nil { - var ret Job + var ret BriefJob return ret } @@ -218,7 +246,7 @@ func (o *Script) GetResult() Job { // GetResultOk returns a tuple with the Result field value // and a boolean to check if the value has been set. -func (o *Script) GetResultOk() (*Job, bool) { +func (o *Script) GetResultOk() (*BriefJob, bool) { if o == nil { return nil, false } @@ -226,7 +254,7 @@ func (o *Script) GetResultOk() (*Job, bool) { } // SetResult sets field value -func (o *Script) SetResult(v Job) { +func (o *Script) SetResult(v BriefJob) { o.Result = v } @@ -290,9 +318,10 @@ func (o Script) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["module"] = o.Module toSerialize["name"] = o.Name - toSerialize["description"] = o.Description + toSerialize["description"] = o.Description.Get() if o.Vars != nil { toSerialize["vars"] = o.Vars } @@ -314,6 +343,7 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "module", "name", "description", @@ -352,6 +382,7 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_script_input_request.go b/model_script_input_request.go new file mode 100644 index 000000000..bf60f865e --- /dev/null +++ b/model_script_input_request.go @@ -0,0 +1,296 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the ScriptInputRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &ScriptInputRequest{} + +// ScriptInputRequest struct for ScriptInputRequest +type ScriptInputRequest struct { + Data interface{} `json:"data"` + Commit bool `json:"commit"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _ScriptInputRequest ScriptInputRequest + +// NewScriptInputRequest instantiates a new ScriptInputRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewScriptInputRequest(data interface{}, commit bool) *ScriptInputRequest { + this := ScriptInputRequest{} + this.Data = data + this.Commit = commit + return &this +} + +// NewScriptInputRequestWithDefaults instantiates a new ScriptInputRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewScriptInputRequestWithDefaults() *ScriptInputRequest { + this := ScriptInputRequest{} + return &this +} + +// GetData returns the Data field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *ScriptInputRequest) GetData() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Data +} + +// GetDataOk returns a tuple with the Data field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptInputRequest) GetDataOk() (*interface{}, bool) { + if o == nil || IsNil(o.Data) { + return nil, false + } + return &o.Data, true +} + +// SetData sets field value +func (o *ScriptInputRequest) SetData(v interface{}) { + o.Data = v +} + +// GetCommit returns the Commit field value +func (o *ScriptInputRequest) GetCommit() bool { + if o == nil { + var ret bool + return ret + } + + return o.Commit +} + +// GetCommitOk returns a tuple with the Commit field value +// and a boolean to check if the value has been set. +func (o *ScriptInputRequest) GetCommitOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.Commit, true +} + +// SetCommit sets field value +func (o *ScriptInputRequest) SetCommit(v bool) { + o.Commit = v +} + +// GetScheduleAt returns the ScheduleAt field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptInputRequest) GetScheduleAt() time.Time { + if o == nil || IsNil(o.ScheduleAt.Get()) { + var ret time.Time + return ret + } + return *o.ScheduleAt.Get() +} + +// GetScheduleAtOk returns a tuple with the ScheduleAt field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptInputRequest) GetScheduleAtOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.ScheduleAt.Get(), o.ScheduleAt.IsSet() +} + +// HasScheduleAt returns a boolean if a field has been set. +func (o *ScriptInputRequest) HasScheduleAt() bool { + if o != nil && o.ScheduleAt.IsSet() { + return true + } + + return false +} + +// SetScheduleAt gets a reference to the given NullableTime and assigns it to the ScheduleAt field. +func (o *ScriptInputRequest) SetScheduleAt(v time.Time) { + o.ScheduleAt.Set(&v) +} +// SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil +func (o *ScriptInputRequest) SetScheduleAtNil() { + o.ScheduleAt.Set(nil) +} + +// UnsetScheduleAt ensures that no value is present for ScheduleAt, not even an explicit nil +func (o *ScriptInputRequest) UnsetScheduleAt() { + o.ScheduleAt.Unset() +} + +// GetInterval returns the Interval field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ScriptInputRequest) GetInterval() int32 { + if o == nil || IsNil(o.Interval.Get()) { + var ret int32 + return ret + } + return *o.Interval.Get() +} + +// GetIntervalOk returns a tuple with the Interval field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ScriptInputRequest) GetIntervalOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.Interval.Get(), o.Interval.IsSet() +} + +// HasInterval returns a boolean if a field has been set. +func (o *ScriptInputRequest) HasInterval() bool { + if o != nil && o.Interval.IsSet() { + return true + } + + return false +} + +// SetInterval gets a reference to the given NullableInt32 and assigns it to the Interval field. +func (o *ScriptInputRequest) SetInterval(v int32) { + o.Interval.Set(&v) +} +// SetIntervalNil sets the value for Interval to be an explicit nil +func (o *ScriptInputRequest) SetIntervalNil() { + o.Interval.Set(nil) +} + +// UnsetInterval ensures that no value is present for Interval, not even an explicit nil +func (o *ScriptInputRequest) UnsetInterval() { + o.Interval.Unset() +} + +func (o ScriptInputRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o ScriptInputRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if o.Data != nil { + toSerialize["data"] = o.Data + } + toSerialize["commit"] = o.Commit + if o.ScheduleAt.IsSet() { + toSerialize["schedule_at"] = o.ScheduleAt.Get() + } + if o.Interval.IsSet() { + toSerialize["interval"] = o.Interval.Get() + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *ScriptInputRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "data", + "commit", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varScriptInputRequest := _ScriptInputRequest{} + + err = json.Unmarshal(data, &varScriptInputRequest) + + if err != nil { + return err + } + + *o = ScriptInputRequest(varScriptInputRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "data") + delete(additionalProperties, "commit") + delete(additionalProperties, "schedule_at") + delete(additionalProperties, "interval") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableScriptInputRequest struct { + value *ScriptInputRequest + isSet bool +} + +func (v NullableScriptInputRequest) Get() *ScriptInputRequest { + return v.value +} + +func (v *NullableScriptInputRequest) Set(val *ScriptInputRequest) { + v.value = val + v.isSet = true +} + +func (v NullableScriptInputRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableScriptInputRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableScriptInputRequest(val *ScriptInputRequest) *NullableScriptInputRequest { + return &NullableScriptInputRequest{value: val, isSet: true} +} + +func (v NullableScriptInputRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableScriptInputRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_service.go b/model_service.go index e12f61b56..973d3291b 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,22 @@ var _ MappedNullable = &Service{} // Service Adds support for custom fields and tags. type Service struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NullableDevice `json:"device,omitempty"` - VirtualMachine NullableVirtualMachine `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Device NullableBriefDevice `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachine `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -45,10 +46,11 @@ type _Service Service // 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 NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { +func NewService(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { this := Service{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Ports = ports @@ -113,6 +115,30 @@ func (o *Service) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Service) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Service) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Service) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Service) GetDisplay() string { if o == nil { @@ -138,9 +164,9 @@ func (o *Service) SetDisplay(v string) { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetDevice() Device { +func (o *Service) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -149,7 +175,7 @@ func (o *Service) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetDeviceOk() (*Device, bool) { +func (o *Service) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -165,8 +191,8 @@ func (o *Service) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *Service) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *Service) SetDevice(v BriefDevice) { o.Device.Set(&v) } @@ -181,9 +207,9 @@ func (o *Service) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetVirtualMachine() VirtualMachine { +func (o *Service) GetVirtualMachine() BriefVirtualMachine { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } return *o.VirtualMachine.Get() @@ -192,7 +218,7 @@ func (o *Service) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -208,8 +234,8 @@ func (o *Service) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachine and assigns it to the VirtualMachine field. -func (o *Service) SetVirtualMachine(v VirtualMachine) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachine and assigns it to the VirtualMachine field. +func (o *Service) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine.Set(&v) } @@ -527,6 +553,7 @@ func (o Service) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() @@ -571,6 +598,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "ports", @@ -607,6 +635,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "virtual_machine") diff --git a/model_service_protocol.go b/model_service_protocol.go index bdd307844..5438e2b05 100644 --- a/model_service_protocol.go +++ b/model_service_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go index b210b80a3..e9f1dbcde 100644 --- a/model_service_protocol_label.go +++ b/model_service_protocol_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_request.go b/model_service_request.go index 9b3bc7f2b..a25ff2189 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ServiceRequest{} // ServiceRequest Adds support for custom fields and tags. type ServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports"` @@ -55,9 +55,9 @@ func NewServiceRequestWithDefaults() *ServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetDevice() DeviceRequest { +func (o *ServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -66,7 +66,7 @@ func (o *ServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *ServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *ServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *ServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -98,9 +98,9 @@ func (o *ServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -109,7 +109,7 @@ func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *ServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_service_template.go b/model_service_template.go index 9d8086877..712147a0b 100644 --- a/model_service_template.go +++ b/model_service_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ServiceTemplate{} type ServiceTemplate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Protocol *ServiceProtocol `json:"protocol,omitempty"` @@ -42,10 +43,11 @@ type _ServiceTemplate ServiceTemplate // 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 NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { +func NewServiceTemplate(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { this := ServiceTemplate{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Ports = ports @@ -110,6 +112,30 @@ func (o *ServiceTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *ServiceTemplate) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *ServiceTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *ServiceTemplate) GetDisplay() string { if o == nil { @@ -406,6 +432,7 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Protocol) { @@ -441,6 +468,7 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "ports", @@ -477,6 +505,7 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "protocol") diff --git a/model_service_template_request.go b/model_service_template_request.go index 39275e46c..a7a361954 100644 --- a/model_service_template_request.go +++ b/model_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site.go b/model_site.go index 1e847b294..7660a50b7 100644 --- a/model_site.go +++ b/model_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Site type satisfies the MappedNullable interface at compile time @@ -20,13 +21,41 @@ var _ MappedNullable = &Site{} // Site Adds support for custom fields and tags. type Site struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatus `json:"status,omitempty"` + Region NullableBriefRegion `json:"region,omitempty"` + Group NullableBriefSiteGroup `json:"group,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` + // Physical location of the building + PhysicalAddress *string `json:"physical_address,omitempty"` + // If different from the physical address + ShippingAddress *string `json:"shipping_address,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + RackCount int64 `json:"rack_count"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +65,19 @@ type _Site Site // 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 NewSite(id int32, url string, display string, name string, slug string) *Site { +func NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, rackCount int64, vlanCount int64) *Site { this := Site{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + this.RackCount = rackCount + this.VlanCount = vlanCount return &this } @@ -102,6 +137,30 @@ func (o *Site) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Site) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Site) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Site) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Site) GetDisplay() string { if o == nil { @@ -174,6 +233,242 @@ func (o *Site) SetSlug(v string) { o.Slug = v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Site) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Site) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Site) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetRegion() BriefRegion { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegion + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetRegionOk() (*BriefRegion, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *Site) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegion and assigns it to the Region field. +func (o *Site) SetRegion(v BriefRegion) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *Site) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *Site) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetGroup() BriefSiteGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetGroupOk() (*BriefSiteGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Site) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroup and assigns it to the Group field. +func (o *Site) SetGroup(v BriefSiteGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Site) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Site) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Site) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Site) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Site) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Site) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Site) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Site) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Site) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *Site) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +func (o *Site) SetTimeZone(v string) { + o.TimeZone.Set(&v) +} + +// SetTimeZoneNil sets the value for TimeZone to be an explicit nil +func (o *Site) SetTimeZoneNil() { + o.TimeZone.Set(nil) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *Site) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Site) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,6 +501,504 @@ func (o *Site) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *Site) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *Site) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *Site) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *Site) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *Site) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *Site) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *Site) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *Site) SetLatitude(v float64) { + o.Latitude.Set(&v) +} + +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *Site) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *Site) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *Site) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *Site) SetLongitude(v float64) { + o.Longitude.Set(&v) +} + +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *Site) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *Site) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Site) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Site) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Site) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Site) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Site) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Site) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Site) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Site) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Site) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Site) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Site) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Site) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Site) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Site) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Site) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Site) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Site) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Site) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Site) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Site) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Site) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Site) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Site) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Site) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetRackCount returns the RackCount field value +func (o *Site) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *Site) SetRackCount(v int64) { + o.RackCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Site) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Site) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *Site) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +// GetVlanCount returns the VlanCount field value +func (o *Site) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *Site) SetVlanCount(v int64) { + o.VlanCount = v +} + func (o Site) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -218,12 +1011,69 @@ func (o Site) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + toSerialize["rack_count"] = o.RackCount + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + toSerialize["vlan_count"] = o.VlanCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,9 +1089,15 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", + "circuit_count", + "rack_count", + "vlan_count", } allProperties := make(map[string]interface{}) @@ -273,10 +1129,33 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties } diff --git a/model_site_group.go b/model_site_group.go index 36320a38d..d29d14f0d 100644 --- a/model_site_group.go +++ b/model_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &SiteGroup{} type SiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ 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, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { +func NewSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { this := SiteGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *SiteGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *SiteGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *SiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *SiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *SiteGroup) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_site_group_request.go b/model_site_group_request.go index 1cd1ab1c5..cb799b120 100644 --- a/model_site_group_request.go +++ b/model_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site_request.go b/model_site_request.go index 60b8fd8dc..18f9eb5ff 100644 --- a/model_site_request.go +++ b/model_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,28 @@ var _ MappedNullable = &SiteRequest{} // SiteRequest Adds support for custom fields and tags. type SiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` + // Physical location of the building + PhysicalAddress *string `json:"physical_address,omitempty"` + // If different from the physical address + ShippingAddress *string `json:"shipping_address,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -96,6 +115,242 @@ func (o *SiteRequest) SetSlug(v string) { o.Slug = v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SiteRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SiteRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *SiteRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetRegion() BriefRegionRequest { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegionRequest + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *SiteRequest) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *SiteRequest) SetRegion(v BriefRegionRequest) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *SiteRequest) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *SiteRequest) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetGroup() BriefSiteGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *SiteRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *SiteRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *SiteRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *SiteRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *SiteRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *SiteRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *SiteRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *SiteRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *SiteRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *SiteRequest) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *SiteRequest) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +func (o *SiteRequest) SetTimeZone(v string) { + o.TimeZone.Set(&v) +} + +// SetTimeZoneNil sets the value for TimeZone to be an explicit nil +func (o *SiteRequest) SetTimeZoneNil() { + o.TimeZone.Set(nil) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *SiteRequest) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SiteRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +383,284 @@ func (o *SiteRequest) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *SiteRequest) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *SiteRequest) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *SiteRequest) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *SiteRequest) SetLatitude(v float64) { + o.Latitude.Set(&v) +} + +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *SiteRequest) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *SiteRequest) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *SiteRequest) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *SiteRequest) SetLongitude(v float64) { + o.Longitude.Set(&v) +} + +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *SiteRequest) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *SiteRequest) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *SiteRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *SiteRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *SiteRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *SiteRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *SiteRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *SiteRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SiteRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SiteRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *SiteRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *SiteRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *SiteRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *SiteRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o SiteRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +673,51 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,7 +764,21 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_subscription.go b/model_subscription.go new file mode 100644 index 000000000..ea42acc40 --- /dev/null +++ b/model_subscription.go @@ -0,0 +1,376 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "time" + "fmt" +) + +// checks if the Subscription type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &Subscription{} + +// Subscription Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type Subscription struct { + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + AdditionalProperties map[string]interface{} +} + +type _Subscription Subscription + +// NewSubscription instantiates a new Subscription object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSubscription(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time) *Subscription { + this := Subscription{} + this.Id = id + this.Url = url + this.Display = display + this.ObjectType = objectType + this.ObjectId = objectId + this.Object = object + this.User = user + this.Created = created + return &this +} + +// NewSubscriptionWithDefaults instantiates a new Subscription object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSubscriptionWithDefaults() *Subscription { + this := Subscription{} + return &this +} + +// GetId returns the Id field value +func (o *Subscription) GetId() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.Id +} + +// GetIdOk returns a tuple with the Id field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetIdOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.Id, true +} + +// SetId sets field value +func (o *Subscription) SetId(v int32) { + o.Id = v +} + +// GetUrl returns the Url field value +func (o *Subscription) GetUrl() string { + if o == nil { + var ret string + return ret + } + + return o.Url +} + +// GetUrlOk returns a tuple with the Url field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Url, true +} + +// SetUrl sets field value +func (o *Subscription) SetUrl(v string) { + o.Url = v +} + +// GetDisplay returns the Display field value +func (o *Subscription) GetDisplay() string { + if o == nil { + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Subscription) SetDisplay(v string) { + o.Display = v +} + +// GetObjectType returns the ObjectType field value +func (o *Subscription) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *Subscription) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *Subscription) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *Subscription) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetObject returns the Object field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *Subscription) GetObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.Object +} + +// GetObjectOk returns a tuple with the Object field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Subscription) GetObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.Object) { + return nil, false + } + return &o.Object, true +} + +// SetObject sets field value +func (o *Subscription) SetObject(v interface{}) { + o.Object = v +} + +// GetUser returns the User field value +func (o *Subscription) GetUser() BriefUser { + if o == nil { + var ret BriefUser + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetUserOk() (*BriefUser, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *Subscription) SetUser(v BriefUser) { + o.User = v +} + +// GetCreated returns the Created field value +func (o *Subscription) GetCreated() time.Time { + if o == nil { + var ret time.Time + return ret + } + + return o.Created +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +func (o *Subscription) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return &o.Created, true +} + +// SetCreated sets field value +func (o *Subscription) SetCreated(v time.Time) { + o.Created = v +} + +func (o Subscription) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o Subscription) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["id"] = o.Id + toSerialize["url"] = o.Url + toSerialize["display"] = o.Display + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + if o.Object != nil { + toSerialize["object"] = o.Object + } + toSerialize["user"] = o.User + toSerialize["created"] = o.Created + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *Subscription) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "id", + "url", + "display", + "object_type", + "object_id", + "object", + "user", + "created", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSubscription := _Subscription{} + + err = json.Unmarshal(data, &varSubscription) + + if err != nil { + return err + } + + *o = Subscription(varSubscription) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "id") + delete(additionalProperties, "url") + delete(additionalProperties, "display") + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "object") + delete(additionalProperties, "user") + delete(additionalProperties, "created") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscription struct { + value *Subscription + isSet bool +} + +func (v NullableSubscription) Get() *Subscription { + return v.value +} + +func (v *NullableSubscription) Set(val *Subscription) { + v.value = val + v.isSet = true +} + +func (v NullableSubscription) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscription) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscription(val *Subscription) *NullableSubscription { + return &NullableSubscription{value: val, isSet: true} +} + +func (v NullableSubscription) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscription) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_subscription_request.go b/model_subscription_request.go new file mode 100644 index 000000000..f91ce9764 --- /dev/null +++ b/model_subscription_request.go @@ -0,0 +1,226 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the SubscriptionRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &SubscriptionRequest{} + +// SubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) +type SubscriptionRequest struct { + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + AdditionalProperties map[string]interface{} +} + +type _SubscriptionRequest SubscriptionRequest + +// NewSubscriptionRequest instantiates a new SubscriptionRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewSubscriptionRequest(objectType string, objectId int64, user BriefUserRequest) *SubscriptionRequest { + this := SubscriptionRequest{} + this.ObjectType = objectType + this.ObjectId = objectId + this.User = user + return &this +} + +// NewSubscriptionRequestWithDefaults instantiates a new SubscriptionRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewSubscriptionRequestWithDefaults() *SubscriptionRequest { + this := SubscriptionRequest{} + return &this +} + +// GetObjectType returns the ObjectType field value +func (o *SubscriptionRequest) GetObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.ObjectType +} + +// GetObjectTypeOk returns a tuple with the ObjectType field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.ObjectType, true +} + +// SetObjectType sets field value +func (o *SubscriptionRequest) SetObjectType(v string) { + o.ObjectType = v +} + +// GetObjectId returns the ObjectId field value +func (o *SubscriptionRequest) GetObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ObjectId +} + +// GetObjectIdOk returns a tuple with the ObjectId field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ObjectId, true +} + +// SetObjectId sets field value +func (o *SubscriptionRequest) SetObjectId(v int64) { + o.ObjectId = v +} + +// GetUser returns the User field value +func (o *SubscriptionRequest) GetUser() BriefUserRequest { + if o == nil { + var ret BriefUserRequest + return ret + } + + return o.User +} + +// GetUserOk returns a tuple with the User field value +// and a boolean to check if the value has been set. +func (o *SubscriptionRequest) GetUserOk() (*BriefUserRequest, bool) { + if o == nil { + return nil, false + } + return &o.User, true +} + +// SetUser sets field value +func (o *SubscriptionRequest) SetUser(v BriefUserRequest) { + o.User = v +} + +func (o SubscriptionRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o SubscriptionRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["object_type"] = o.ObjectType + toSerialize["object_id"] = o.ObjectId + toSerialize["user"] = o.User + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *SubscriptionRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "object_type", + "object_id", + "user", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varSubscriptionRequest := _SubscriptionRequest{} + + err = json.Unmarshal(data, &varSubscriptionRequest) + + if err != nil { + return err + } + + *o = SubscriptionRequest(varSubscriptionRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "object_type") + delete(additionalProperties, "object_id") + delete(additionalProperties, "user") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableSubscriptionRequest struct { + value *SubscriptionRequest + isSet bool +} + +func (v NullableSubscriptionRequest) Get() *SubscriptionRequest { + return v.value +} + +func (v *NullableSubscriptionRequest) Set(val *SubscriptionRequest) { + v.value = val + v.isSet = true +} + +func (v NullableSubscriptionRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableSubscriptionRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableSubscriptionRequest(val *SubscriptionRequest) *NullableSubscriptionRequest { + return &NullableSubscriptionRequest{value: val, isSet: true} +} + +func (v NullableSubscriptionRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableSubscriptionRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tag.go b/model_tag.go index 976b2af1a..1f30de7cc 100644 --- a/model_tag.go +++ b/model_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Tag{} type Tag struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _Tag Tag // 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 NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { +func NewTag(id int32, url string, displayUrl string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { this := Tag{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *Tag) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Tag) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Tag) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Tag) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Tag) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tag_request.go b/model_tag_request.go index 3e2e1c595..e3d389778 100644 --- a/model_tag_request.go +++ b/model_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant.go b/model_tenant.go index 0c4232d93..76e2f8839 100644 --- a/model_tenant.go +++ b/model_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Tenant type satisfies the MappedNullable interface at compile time @@ -20,12 +21,29 @@ var _ MappedNullable = &Tenant{} // Tenant Adds support for custom fields and tags. type Tenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableBriefTenantGroup `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + RackCount int64 `json:"rack_count"` + SiteCount int64 `json:"site_count"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + VlanCount int64 `json:"vlan_count"` + VrfCount int64 `json:"vrf_count"` + ClusterCount int64 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,23 @@ type _Tenant Tenant // 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 NewTenant(id int32, url string, display string, name string, slug string) *Tenant { +func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, rackCount int64, siteCount int64, vlanCount int64, vrfCount int64, clusterCount int64) *Tenant { this := Tenant{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + this.IpaddressCount = ipaddressCount + this.RackCount = rackCount + this.SiteCount = siteCount + this.VlanCount = vlanCount + this.VrfCount = vrfCount + this.ClusterCount = clusterCount return &this } @@ -101,6 +129,30 @@ func (o *Tenant) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Tenant) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Tenant) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Tenant) GetDisplay() string { if o == nil { @@ -173,6 +225,49 @@ func (o *Tenant) SetSlug(v string) { o.Slug = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tenant) GetGroup() BriefTenantGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tenant) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroup and assigns it to the Group field. +func (o *Tenant) SetGroup(v BriefTenantGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tenant) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tenant) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tenant) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +300,418 @@ func (o *Tenant) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tenant) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tenant) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tenant) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tenant) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Tenant) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Tenant) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tenant) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Tenant) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Tenant) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tenant) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Tenant) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tenant) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Tenant) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Tenant) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Tenant) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Tenant) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Tenant) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Tenant) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *Tenant) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *Tenant) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Tenant) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Tenant) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Tenant) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetRackCount returns the RackCount field value +func (o *Tenant) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *Tenant) SetRackCount(v int64) { + o.RackCount = v +} + +// GetSiteCount returns the SiteCount field value +func (o *Tenant) GetSiteCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetSiteCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *Tenant) SetSiteCount(v int64) { + o.SiteCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Tenant) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Tenant) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *Tenant) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +// GetVlanCount returns the VlanCount field value +func (o *Tenant) GetVlanCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetVlanCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VlanCount, true +} + +// SetVlanCount sets field value +func (o *Tenant) SetVlanCount(v int64) { + o.VlanCount = v +} + +// GetVrfCount returns the VrfCount field value +func (o *Tenant) GetVrfCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VrfCount +} + +// GetVrfCountOk returns a tuple with the VrfCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetVrfCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VrfCount, true +} + +// SetVrfCount sets field value +func (o *Tenant) SetVrfCount(v int64) { + o.VrfCount = v +} + +// GetClusterCount returns the ClusterCount field value +func (o *Tenant) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *Tenant) SetClusterCount(v int64) { + o.ClusterCount = v +} + func (o Tenant) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +724,43 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + toSerialize["ipaddress_count"] = o.IpaddressCount + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + toSerialize["rack_count"] = o.RackCount + toSerialize["site_count"] = o.SiteCount + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + toSerialize["vlan_count"] = o.VlanCount + toSerialize["vrf_count"] = o.VrfCount + toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -238,9 +776,19 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", + "circuit_count", + "ipaddress_count", + "rack_count", + "site_count", + "vlan_count", + "vrf_count", + "cluster_count", } allProperties := make(map[string]interface{}) @@ -272,10 +820,27 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "ipaddress_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "site_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") + delete(additionalProperties, "vrf_count") + delete(additionalProperties, "cluster_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tenant_group.go b/model_tenant_group.go index ef3aab867..c6d7e4f2b 100644 --- a/model_tenant_group.go +++ b/model_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &TenantGroup{} type TenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,10 +44,11 @@ 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, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,6 +115,30 @@ func (o *TenantGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TenantGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TenantGroup) GetDisplay() string { if o == nil { @@ -436,6 +462,7 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,6 +497,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -508,6 +536,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go index 70e0f8dfc..e54ab884e 100644 --- a/model_tenant_group_request.go +++ b/model_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant_request.go b/model_tenant_request.go index 5b7a6cb22..4726ed422 100644 --- a/model_tenant_request.go +++ b/model_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &TenantRequest{} // TenantRequest Adds support for custom fields and tags. type TenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableBriefTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,49 @@ func (o *TenantRequest) SetSlug(v string) { o.Slug = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantRequest) GetGroup() BriefTenantGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TenantRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TenantRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TenantRequest) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TenantRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +174,102 @@ func (o *TenantRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TenantRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TenantRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TenantRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TenantRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *TenantRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *TenantRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TenantRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *TenantRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *TenantRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TenantRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +282,21 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +343,11 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_termination.go b/model_termination.go index 8c028ef17..5381a5375 100644 --- a/model_termination.go +++ b/model_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_termination_1.go b/model_termination_1.go index c68e40d67..7496f17f8 100644 --- a/model_termination_1.go +++ b/model_termination_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token.go b/model_token.go index 017655fd0..50fa94e81 100644 --- a/model_token.go +++ b/model_token.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,15 @@ var _ MappedNullable = &Token{} // Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Token struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -41,10 +42,11 @@ type _Token Token // 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 NewToken(id int32, url string, display string, user User, created time.Time) *Token { +func NewToken(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time) *Token { this := Token{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.User = user this.Created = created @@ -107,6 +109,30 @@ func (o *Token) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Token) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Token) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Token) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Token) GetDisplay() string { if o == nil { @@ -132,9 +158,9 @@ func (o *Token) SetDisplay(v string) { } // GetUser returns the User field value -func (o *Token) GetUser() User { +func (o *Token) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -143,7 +169,7 @@ func (o *Token) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Token) GetUserOk() (*User, bool) { +func (o *Token) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -151,7 +177,7 @@ func (o *Token) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Token) SetUser(v User) { +func (o *Token) SetUser(v BriefUser) { o.User = v } @@ -373,6 +399,7 @@ func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -406,6 +433,7 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "user", "created", @@ -440,6 +468,7 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision.go b/model_token_provision.go index d2058fd4a..ff372b2d4 100644 --- a/model_token_provision.go +++ b/model_token_provision.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,15 @@ var _ MappedNullable = &TokenProvision{} // TokenProvision Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenProvision struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed time.Time `json:"last_used"` - Key string `json:"key"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed time.Time `json:"last_used"` + Key string `json:"key"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -41,10 +42,11 @@ type _TokenProvision TokenProvision // 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 NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string) *TokenProvision { +func NewTokenProvision(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string) *TokenProvision { this := TokenProvision{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.User = user this.Created = created @@ -109,6 +111,30 @@ func (o *TokenProvision) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TokenProvision) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TokenProvision) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TokenProvision) GetDisplay() string { if o == nil { @@ -134,9 +160,9 @@ func (o *TokenProvision) SetDisplay(v string) { } // GetUser returns the User field value -func (o *TokenProvision) GetUser() User { +func (o *TokenProvision) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -145,7 +171,7 @@ func (o *TokenProvision) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenProvision) GetUserOk() (*User, bool) { +func (o *TokenProvision) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -153,7 +179,7 @@ func (o *TokenProvision) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *TokenProvision) SetUser(v User) { +func (o *TokenProvision) SetUser(v BriefUser) { o.User = v } @@ -348,6 +374,7 @@ func (o TokenProvision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -377,6 +404,7 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "user", "created", @@ -413,6 +441,7 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision_request.go b/model_token_provision_request.go index f880694d4..d1dcb3328 100644 --- a/model_token_provision_request.go +++ b/model_token_provision_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token_request.go b/model_token_request.go index a472e9650..93a6d9bd8 100644 --- a/model_token_request.go +++ b/model_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &TokenRequest{} // TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenRequest struct { - User UserRequest `json:"user"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User BriefUserRequest `json:"user"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -37,7 +37,7 @@ type _TokenRequest TokenRequest // 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 NewTokenRequest(user UserRequest) *TokenRequest { +func NewTokenRequest(user BriefUserRequest) *TokenRequest { this := TokenRequest{} this.User = user return &this @@ -52,9 +52,9 @@ func NewTokenRequestWithDefaults() *TokenRequest { } // GetUser returns the User field value -func (o *TokenRequest) GetUser() UserRequest { +func (o *TokenRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *TokenRequest) SetUser(v UserRequest) { +func (o *TokenRequest) SetUser(v BriefUserRequest) { o.User = v } diff --git a/model_tunnel.go b/model_tunnel.go index b947b58fc..c3954ecbc 100644 --- a/model_tunnel.go +++ b/model_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Tunnel type satisfies the MappedNullable interface at compile time @@ -20,11 +21,24 @@ var _ MappedNullable = &Tunnel{} // Tunnel Adds support for custom fields and tags. type Tunnel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Status TunnelStatus `json:"status"` + Group NullableBriefTunnelGroup `json:"group,omitempty"` + Encapsulation TunnelEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfile `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + TerminationsCount int64 `json:"terminations_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,18 @@ type _Tunnel Tunnel // 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 NewTunnel(id int32, url string, display string, name string) *Tunnel { +func NewTunnel(id int32, url string, displayUrl string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64) *Tunnel { this := Tunnel{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Status = status + this.Encapsulation = encapsulation + this.Created = created + this.LastUpdated = lastUpdated + this.TerminationsCount = terminationsCount return &this } @@ -99,6 +119,30 @@ func (o *Tunnel) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Tunnel) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Tunnel) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Tunnel) GetDisplay() string { if o == nil { @@ -147,6 +191,226 @@ func (o *Tunnel) SetName(v string) { o.Name = v } +// GetStatus returns the Status field value +func (o *Tunnel) GetStatus() TunnelStatus { + if o == nil { + var ret TunnelStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Tunnel) SetStatus(v TunnelStatus) { + o.Status = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetGroup() BriefTunnelGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tunnel) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroup and assigns it to the Group field. +func (o *Tunnel) SetGroup(v BriefTunnelGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tunnel) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tunnel) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *Tunnel) GetEncapsulation() TunnelEncapsulation { + if o == nil { + var ret TunnelEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation) { + o.Encapsulation = v +} + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfile + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *Tunnel) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfile and assigns it to the IpsecProfile field. +func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile) { + o.IpsecProfile.Set(&v) +} + +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *Tunnel) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *Tunnel) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Tunnel) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Tunnel) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Tunnel) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Tunnel) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *Tunnel) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *Tunnel) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} + +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *Tunnel) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *Tunnel) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tunnel) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +443,178 @@ func (o *Tunnel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tunnel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tunnel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tunnel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tunnel) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Tunnel) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Tunnel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tunnel) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Tunnel) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Tunnel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tunnel) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Tunnel) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tunnel) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Tunnel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetTerminationsCount returns the TerminationsCount field value +func (o *Tunnel) GetTerminationsCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TerminationsCount +} + +// GetTerminationsCountOk returns a tuple with the TerminationsCount field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTerminationsCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TerminationsCount, true +} + +// SetTerminationsCount sets field value +func (o *Tunnel) SetTerminationsCount(v int64) { + o.TerminationsCount = v +} + func (o Tunnel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +627,38 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["terminations_count"] = o.TerminationsCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -211,8 +674,14 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "status", + "encapsulation", + "created", + "last_updated", + "terminations_count", } allProperties := make(map[string]interface{}) @@ -244,9 +713,22 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "terminations_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go new file mode 100644 index 000000000..31874937e --- /dev/null +++ b/model_tunnel_encapsulation.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the TunnelEncapsulation type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TunnelEncapsulation{} + +// TunnelEncapsulation struct for TunnelEncapsulation +type TunnelEncapsulation struct { + Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"` + Label *TunnelEncapsulationLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TunnelEncapsulation TunnelEncapsulation + +// NewTunnelEncapsulation instantiates a new TunnelEncapsulation object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTunnelEncapsulation() *TunnelEncapsulation { + this := TunnelEncapsulation{} + return &this +} + +// NewTunnelEncapsulationWithDefaults instantiates a new TunnelEncapsulation object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTunnelEncapsulationWithDefaults() *TunnelEncapsulation { + this := TunnelEncapsulation{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TunnelEncapsulation) GetValue() PatchedWritableTunnelRequestEncapsulation { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableTunnelRequestEncapsulation + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelEncapsulation) GetValueOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TunnelEncapsulation) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableTunnelRequestEncapsulation and assigns it to the Value field. +func (o *TunnelEncapsulation) SetValue(v PatchedWritableTunnelRequestEncapsulation) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TunnelEncapsulation) GetLabel() TunnelEncapsulationLabel { + if o == nil || IsNil(o.Label) { + var ret TunnelEncapsulationLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelEncapsulation) GetLabelOk() (*TunnelEncapsulationLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *TunnelEncapsulation) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given TunnelEncapsulationLabel and assigns it to the Label field. +func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel) { + o.Label = &v +} + +func (o TunnelEncapsulation) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TunnelEncapsulation) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TunnelEncapsulation) UnmarshalJSON(data []byte) (err error) { + varTunnelEncapsulation := _TunnelEncapsulation{} + + err = json.Unmarshal(data, &varTunnelEncapsulation) + + if err != nil { + return err + } + + *o = TunnelEncapsulation(varTunnelEncapsulation) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTunnelEncapsulation struct { + value *TunnelEncapsulation + isSet bool +} + +func (v NullableTunnelEncapsulation) Get() *TunnelEncapsulation { + return v.value +} + +func (v *NullableTunnelEncapsulation) Set(val *TunnelEncapsulation) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelEncapsulation) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelEncapsulation) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelEncapsulation(val *TunnelEncapsulation) *NullableTunnelEncapsulation { + return &NullableTunnelEncapsulation{value: val, isSet: true} +} + +func (v NullableTunnelEncapsulation) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelEncapsulation) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tunnel_encapsulation_label.go b/model_tunnel_encapsulation_label.go new file mode 100644 index 000000000..1ed321455 --- /dev/null +++ b/model_tunnel_encapsulation_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TunnelEncapsulationLabel the model 'TunnelEncapsulationLabel' +type TunnelEncapsulationLabel string + +// List of Tunnel_encapsulation_label +const ( + TUNNELENCAPSULATIONLABEL_I_PSEC___TRANSPORT TunnelEncapsulationLabel = "IPsec - Transport" + TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel" + TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP" + TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE" +) + +// All allowed values of TunnelEncapsulationLabel enum +var AllowedTunnelEncapsulationLabelEnumValues = []TunnelEncapsulationLabel{ + "IPsec - Transport", + "IPsec - Tunnel", + "IP-in-IP", + "GRE", +} + +func (v *TunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TunnelEncapsulationLabel(value) + for _, existing := range AllowedTunnelEncapsulationLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TunnelEncapsulationLabel", value) +} + +// NewTunnelEncapsulationLabelFromValue returns a pointer to a valid TunnelEncapsulationLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTunnelEncapsulationLabelFromValue(v string) (*TunnelEncapsulationLabel, error) { + ev := TunnelEncapsulationLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TunnelEncapsulationLabel: valid values are %v", v, AllowedTunnelEncapsulationLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TunnelEncapsulationLabel) IsValid() bool { + for _, existing := range AllowedTunnelEncapsulationLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Tunnel_encapsulation_label value +func (v TunnelEncapsulationLabel) Ptr() *TunnelEncapsulationLabel { + return &v +} + +type NullableTunnelEncapsulationLabel struct { + value *TunnelEncapsulationLabel + isSet bool +} + +func (v NullableTunnelEncapsulationLabel) Get() *TunnelEncapsulationLabel { + return v.value +} + +func (v *NullableTunnelEncapsulationLabel) Set(val *TunnelEncapsulationLabel) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelEncapsulationLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelEncapsulationLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelEncapsulationLabel(val *TunnelEncapsulationLabel) *NullableTunnelEncapsulationLabel { + return &NullableTunnelEncapsulationLabel{value: val, isSet: true} +} + +func (v NullableTunnelEncapsulationLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_tunnel_group.go b/model_tunnel_group.go index c4ba9d081..3bce5526e 100644 --- a/model_tunnel_group.go +++ b/model_tunnel_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &TunnelGroup{} type TunnelGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -41,10 +42,11 @@ type _TunnelGroup TunnelGroup // 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 NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { +func NewTunnelGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { this := TunnelGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -110,6 +112,30 @@ func (o *TunnelGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TunnelGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TunnelGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TunnelGroup) GetDisplay() string { if o == nil { @@ -366,6 +392,7 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -396,6 +423,7 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -433,6 +461,7 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go index f19727186..03e39ef27 100644 --- a/model_tunnel_group_request.go +++ b/model_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_request.go b/model_tunnel_request.go index c6e7ce560..67a83389f 100644 --- a/model_tunnel_request.go +++ b/model_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &TunnelRequest{} // TunnelRequest Adds support for custom fields and tags. type TunnelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Status PatchedWritableTunnelRequestStatus `json:"status"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +40,11 @@ type _TunnelRequest TunnelRequest // 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 NewTunnelRequest(name string) *TunnelRequest { +func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest { this := TunnelRequest{} this.Name = name + this.Status = status + this.Encapsulation = encapsulation return &this } @@ -69,6 +80,226 @@ func (o *TunnelRequest) SetName(v string) { o.Name = v } +// GetStatus returns the Status field value +func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus { + if o == nil { + var ret PatchedWritableTunnelRequestStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) { + o.Status = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TunnelRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TunnelRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TunnelRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation { + if o == nil { + var ret PatchedWritableTunnelRequestEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation) { + o.Encapsulation = v +} + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfileRequest + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *TunnelRequest) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { + o.IpsecProfile.Set(&v) +} + +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *TunnelRequest) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *TunnelRequest) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *TunnelRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *TunnelRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *TunnelRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *TunnelRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *TunnelRequest) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *TunnelRequest) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} + +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *TunnelRequest) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *TunnelRequest) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +332,102 @@ func (o *TunnelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TunnelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TunnelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TunnelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TunnelRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *TunnelRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *TunnelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TunnelRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *TunnelRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *TunnelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TunnelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +439,32 @@ func (o TunnelRequest) MarshalJSON() ([]byte, error) { func (o TunnelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +479,8 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "status", + "encapsulation", } allProperties := make(map[string]interface{}) @@ -159,7 +511,16 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_status.go b/model_tunnel_status.go new file mode 100644 index 000000000..ce24b246d --- /dev/null +++ b/model_tunnel_status.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the TunnelStatus type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &TunnelStatus{} + +// TunnelStatus struct for TunnelStatus +type TunnelStatus struct { + Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"` + Label *TunnelStatusLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _TunnelStatus TunnelStatus + +// NewTunnelStatus instantiates a new TunnelStatus object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewTunnelStatus() *TunnelStatus { + this := TunnelStatus{} + return &this +} + +// NewTunnelStatusWithDefaults instantiates a new TunnelStatus object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewTunnelStatusWithDefaults() *TunnelStatus { + this := TunnelStatus{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *TunnelStatus) GetValue() PatchedWritableTunnelRequestStatus { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableTunnelRequestStatus + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelStatus) GetValueOk() (*PatchedWritableTunnelRequestStatus, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *TunnelStatus) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableTunnelRequestStatus and assigns it to the Value field. +func (o *TunnelStatus) SetValue(v PatchedWritableTunnelRequestStatus) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *TunnelStatus) GetLabel() TunnelStatusLabel { + if o == nil || IsNil(o.Label) { + var ret TunnelStatusLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelStatus) GetLabelOk() (*TunnelStatusLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *TunnelStatus) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given TunnelStatusLabel and assigns it to the Label field. +func (o *TunnelStatus) SetLabel(v TunnelStatusLabel) { + o.Label = &v +} + +func (o TunnelStatus) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o TunnelStatus) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *TunnelStatus) UnmarshalJSON(data []byte) (err error) { + varTunnelStatus := _TunnelStatus{} + + err = json.Unmarshal(data, &varTunnelStatus) + + if err != nil { + return err + } + + *o = TunnelStatus(varTunnelStatus) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableTunnelStatus struct { + value *TunnelStatus + isSet bool +} + +func (v NullableTunnelStatus) Get() *TunnelStatus { + return v.value +} + +func (v *NullableTunnelStatus) Set(val *TunnelStatus) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelStatus) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelStatus) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelStatus(val *TunnelStatus) *NullableTunnelStatus { + return &NullableTunnelStatus{value: val, isSet: true} +} + +func (v NullableTunnelStatus) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelStatus) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_tunnel_status_label.go b/model_tunnel_status_label.go new file mode 100644 index 000000000..b279cbc12 --- /dev/null +++ b/model_tunnel_status_label.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// TunnelStatusLabel the model 'TunnelStatusLabel' +type TunnelStatusLabel string + +// List of Tunnel_status_label +const ( + TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned" + TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active" + TUNNELSTATUSLABEL_DISABLED TunnelStatusLabel = "Disabled" +) + +// All allowed values of TunnelStatusLabel enum +var AllowedTunnelStatusLabelEnumValues = []TunnelStatusLabel{ + "Planned", + "Active", + "Disabled", +} + +func (v *TunnelStatusLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := TunnelStatusLabel(value) + for _, existing := range AllowedTunnelStatusLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid TunnelStatusLabel", value) +} + +// NewTunnelStatusLabelFromValue returns a pointer to a valid TunnelStatusLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewTunnelStatusLabelFromValue(v string) (*TunnelStatusLabel, error) { + ev := TunnelStatusLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for TunnelStatusLabel: valid values are %v", v, AllowedTunnelStatusLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v TunnelStatusLabel) IsValid() bool { + for _, existing := range AllowedTunnelStatusLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Tunnel_status_label value +func (v TunnelStatusLabel) Ptr() *TunnelStatusLabel { + return &v +} + +type NullableTunnelStatusLabel struct { + value *TunnelStatusLabel + isSet bool +} + +func (v NullableTunnelStatusLabel) Get() *TunnelStatusLabel { + return v.value +} + +func (v *NullableTunnelStatusLabel) Set(val *TunnelStatusLabel) { + v.value = val + v.isSet = true +} + +func (v NullableTunnelStatusLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableTunnelStatusLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableTunnelStatusLabel(val *TunnelStatusLabel) *NullableTunnelStatusLabel { + return &NullableTunnelStatusLabel{value: val, isSet: true} +} + +func (v NullableTunnelStatusLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableTunnelStatusLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_tunnel_termination.go b/model_tunnel_termination.go index 014447ce2..2a522902b 100644 --- a/model_tunnel_termination.go +++ b/model_tunnel_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &TunnelTermination{} type TunnelTermination struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - Tunnel Tunnel `json:"tunnel"` + Tunnel BriefTunnel `json:"tunnel"` Role TunnelTerminationRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` Termination interface{} `json:"termination"` - OutsideIp NullableIPAddress `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -43,10 +44,11 @@ type _TunnelTermination TunnelTermination // 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 NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { +func NewTunnelTermination(id int32, url string, displayUrl string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { this := TunnelTermination{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Tunnel = tunnel this.Role = role @@ -114,6 +116,30 @@ func (o *TunnelTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *TunnelTermination) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *TunnelTermination) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *TunnelTermination) GetDisplay() string { if o == nil { @@ -139,9 +165,9 @@ func (o *TunnelTermination) SetDisplay(v string) { } // GetTunnel returns the Tunnel field value -func (o *TunnelTermination) GetTunnel() Tunnel { +func (o *TunnelTermination) GetTunnel() BriefTunnel { if o == nil { - var ret Tunnel + var ret BriefTunnel return ret } @@ -150,7 +176,7 @@ func (o *TunnelTermination) GetTunnel() Tunnel { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { +func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool) { if o == nil { return nil, false } @@ -158,7 +184,7 @@ func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { } // SetTunnel sets field value -func (o *TunnelTermination) SetTunnel(v Tunnel) { +func (o *TunnelTermination) SetTunnel(v BriefTunnel) { o.Tunnel = v } @@ -263,9 +289,9 @@ func (o *TunnelTermination) SetTermination(v interface{}) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTermination) GetOutsideIp() IPAddress { +func (o *TunnelTermination) GetOutsideIp() BriefIPAddress { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OutsideIp.Get() @@ -274,7 +300,7 @@ func (o *TunnelTermination) GetOutsideIp() IPAddress { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool) { +func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -290,8 +316,8 @@ func (o *TunnelTermination) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddress and assigns it to the OutsideIp field. -func (o *TunnelTermination) SetOutsideIp(v IPAddress) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddress and assigns it to the OutsideIp field. +func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress) { o.OutsideIp.Set(&v) } @@ -433,6 +459,7 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["tunnel"] = o.Tunnel toSerialize["role"] = o.Role @@ -467,6 +494,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "tunnel", "role", @@ -506,6 +534,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "tunnel") delete(additionalProperties, "role") diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go index d38e99b53..34d817096 100644 --- a/model_tunnel_termination_request.go +++ b/model_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelTerminationRequest{} // TunnelTerminationRequest Adds support for custom fields and tags. type TunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` + Tunnel BriefTunnelRequest `json:"tunnel"` Role PatchedWritableTunnelTerminationRequestRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,7 +36,7 @@ type _TunnelTerminationRequest TunnelTerminationRequest // 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 NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { +func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { this := TunnelTerminationRequest{} this.Tunnel = tunnel this.Role = role @@ -54,9 +54,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest { } // GetTunnel returns the Tunnel field value -func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -65,7 +65,7 @@ func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -73,7 +73,7 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { } // SetTunnel sets field value -func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } @@ -152,9 +152,9 @@ func (o *TunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -163,7 +163,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -179,8 +179,8 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go index fe1ea1a38..1291d5aad 100644 --- a/model_tunnel_termination_role.go +++ b/model_tunnel_termination_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go index f59fb7fd8..ece2e7073 100644 --- a/model_tunnel_termination_role_label.go +++ b/model_tunnel_termination_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user.go b/model_user.go index 09bd2a3cd..50b2c2665 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the User type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &User{} // User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type User struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` + // Designates whether the user can log into this admin site. + IsStaff *bool `json:"is_staff,omitempty"` + // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []Group `json:"groups,omitempty"` + Permissions []ObjectPermission `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -34,10 +47,11 @@ type _User User // 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 NewUser(id int32, url string, display string, username string) *User { +func NewUser(id int32, url string, displayUrl string, display string, username string) *User { this := User{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Username = username return &this @@ -99,6 +113,30 @@ func (o *User) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *User) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *User) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *User) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *User) GetDisplay() string { if o == nil { @@ -147,6 +185,305 @@ func (o *User) SetUsername(v string) { o.Username = v } +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *User) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *User) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *User) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *User) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *User) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *User) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *User) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *User) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *User) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *User) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *User) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *User) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *User) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *User) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *User) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *User) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *User) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *User) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *User) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *User) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *User) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} + +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *User) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *User) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *User) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *User) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *User) SetGroups(v []Group) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *User) GetPermissions() []ObjectPermission { + if o == nil || IsNil(o.Permissions) { + var ret []ObjectPermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetPermissionsOk() ([]ObjectPermission, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *User) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []ObjectPermission and assigns it to the Permissions field. +func (o *User) SetPermissions(v []ObjectPermission) { + o.Permissions = v +} + func (o User) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,8 +496,36 @@ func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["username"] = o.Username + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -176,6 +541,7 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "username", } @@ -209,8 +575,18 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_user_request.go b/model_user_request.go index 33ff7942b..9ed8f68c8 100644 --- a/model_user_request.go +++ b/model_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the UserRequest type satisfies the MappedNullable interface at compile time @@ -21,7 +22,19 @@ var _ MappedNullable = &UserRequest{} // UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type UserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` + Password string `json:"password"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` + // Designates whether the user can log into this admin site. + IsStaff *bool `json:"is_staff,omitempty"` + // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +44,10 @@ type _UserRequest UserRequest // 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 NewUserRequest(username string) *UserRequest { +func NewUserRequest(username string, password string) *UserRequest { this := UserRequest{} this.Username = username + this.Password = password return &this } @@ -69,6 +83,329 @@ func (o *UserRequest) SetUsername(v string) { o.Username = v } +// GetPassword returns the Password field value +func (o *UserRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *UserRequest) SetPassword(v string) { + o.Password = v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *UserRequest) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *UserRequest) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *UserRequest) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *UserRequest) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *UserRequest) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *UserRequest) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *UserRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *UserRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *UserRequest) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *UserRequest) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *UserRequest) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *UserRequest) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *UserRequest) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *UserRequest) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *UserRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *UserRequest) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *UserRequest) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *UserRequest) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UserRequest) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserRequest) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *UserRequest) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *UserRequest) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} + +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *UserRequest) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *UserRequest) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UserRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UserRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *UserRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *UserRequest) GetPermissions() []int32 { + if o == nil || IsNil(o.Permissions) { + var ret []int32 + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPermissionsOk() ([]int32, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *UserRequest) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []int32 and assigns it to the Permissions field. +func (o *UserRequest) SetPermissions(v []int32) { + o.Permissions = v +} + func (o UserRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -80,6 +417,34 @@ func (o UserRequest) MarshalJSON() ([]byte, error) { func (o UserRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -94,6 +459,7 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "username", + "password", } allProperties := make(map[string]interface{}) @@ -124,6 +490,16 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go index c23f98276..1e7fdc207 100644 --- a/model_virtual_chassis.go +++ b/model_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VirtualChassis type satisfies the MappedNullable interface at compile time @@ -20,13 +21,21 @@ var _ MappedNullable = &VirtualChassis{} // VirtualChassis Adds support for custom fields and tags. type VirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - MemberCount int32 `json:"member_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + MemberCount int32 `json:"member_count"` + Members []NestedDevice `json:"members"` AdditionalProperties map[string]interface{} } @@ -36,13 +45,17 @@ type _VirtualChassis VirtualChassis // 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 NewVirtualChassis(id int32, url string, display string, name string, memberCount int32) *VirtualChassis { +func NewVirtualChassis(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated this.MemberCount = memberCount + this.Members = members return &this } @@ -102,6 +115,30 @@ func (o *VirtualChassis) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualChassis) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualChassis) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualChassis) GetDisplay() string { if o == nil { @@ -150,6 +187,38 @@ func (o *VirtualChassis) SetName(v string) { o.Name = v } +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassis) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassis) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassis) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassis) GetMaster() NestedDevice { if o == nil || IsNil(o.Master.Get()) { @@ -225,6 +294,154 @@ func (o *VirtualChassis) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassis) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassis) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassis) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassis) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VirtualChassis) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VirtualChassis) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassis) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VirtualChassis) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VirtualChassis) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VirtualChassis) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VirtualChassis) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VirtualChassis) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VirtualChassis) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetMemberCount returns the MemberCount field value func (o *VirtualChassis) GetMemberCount() int32 { if o == nil { @@ -249,6 +466,30 @@ func (o *VirtualChassis) SetMemberCount(v int32) { o.MemberCount = v } +// GetMembers returns the Members field value +func (o *VirtualChassis) GetMembers() []NestedDevice { + if o == nil { + var ret []NestedDevice + return ret + } + + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetMembersOk() ([]NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Members, true +} + +// SetMembers sets field value +func (o *VirtualChassis) SetMembers(v []NestedDevice) { + o.Members = v +} + func (o VirtualChassis) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -261,15 +502,31 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["member_count"] = o.MemberCount + toSerialize["members"] = o.Members for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -285,9 +542,13 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "created", + "last_updated", "member_count", + "members", } allProperties := make(map[string]interface{}) @@ -319,11 +580,19 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "member_count") + delete(additionalProperties, "members") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go index 12a6c68c6..6081a59f4 100644 --- a/model_virtual_chassis_request.go +++ b/model_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,12 @@ var _ MappedNullable = &VirtualChassisRequest{} // VirtualChassisRequest Adds support for custom fields and tags. type VirtualChassisRequest struct { Name string `json:"name"` + Domain *string `json:"domain,omitempty"` Master NullableNestedDeviceRequest `json:"master,omitempty"` Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +74,38 @@ func (o *VirtualChassisRequest) SetName(v string) { o.Name = v } +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassisRequest) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest { if o == nil || IsNil(o.Master.Get()) { @@ -145,6 +181,102 @@ func (o *VirtualChassisRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassisRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -156,12 +288,24 @@ func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -206,8 +350,12 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go index 8e7c0ec50..af0753f58 100644 --- a/model_virtual_device_context.go +++ b/model_virtual_device_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,15 @@ var _ MappedNullable = &VirtualDeviceContext{} type VirtualDeviceContext struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` - Device Device `json:"device"` + Device BriefDevice `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` Status VirtualDeviceContextStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -48,10 +49,11 @@ type _VirtualDeviceContext VirtualDeviceContext // 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 NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, displayUrl string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Device = device @@ -119,6 +121,30 @@ func (o *VirtualDeviceContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualDeviceContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualDeviceContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualDeviceContext) GetDisplay() string { if o == nil { @@ -168,9 +194,9 @@ func (o *VirtualDeviceContext) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContext) GetDevice() Device { +func (o *VirtualDeviceContext) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -179,7 +205,7 @@ func (o *VirtualDeviceContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -187,7 +213,7 @@ func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContext) SetDevice(v Device) { +func (o *VirtualDeviceContext) SetDevice(v BriefDevice) { o.Device = v } @@ -235,9 +261,9 @@ func (o *VirtualDeviceContext) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetTenant() Tenant { +func (o *VirtualDeviceContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -246,7 +272,7 @@ func (o *VirtualDeviceContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -262,8 +288,8 @@ func (o *VirtualDeviceContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualDeviceContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualDeviceContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -278,10 +304,10 @@ func (o *VirtualDeviceContext) UnsetTenant() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -291,7 +317,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -299,14 +325,14 @@ func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress) { +func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -315,7 +341,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -331,8 +357,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -347,9 +373,9 @@ func (o *VirtualDeviceContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -358,7 +384,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -374,8 +400,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -629,6 +655,7 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["device"] = o.Device @@ -676,6 +703,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "device", @@ -715,6 +743,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device") diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go index 64ba644f6..2fc47c5e6 100644 --- a/model_virtual_device_context_request.go +++ b/model_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &VirtualDeviceContextRequest{} // VirtualDeviceContextRequest Adds support for custom fields and tags. type VirtualDeviceContextRequest struct { Name string `json:"name"` - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,7 +40,7 @@ type _VirtualDeviceContextRequest VirtualDeviceContextRequest // 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 NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { +func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { this := VirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *VirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -148,9 +148,9 @@ func (o *VirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *VirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,9 +234,9 @@ func (o *VirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go index 121a4f6ab..d1d458491 100644 --- a/model_virtual_device_context_status.go +++ b/model_virtual_device_context_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go index 01cf885ef..b04de0f7e 100644 --- a/model_virtual_device_context_status_label.go +++ b/model_virtual_device_context_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_disk.go b/model_virtual_disk.go index 581eae9f1..79539c2ca 100644 --- a/model_virtual_disk.go +++ b/model_virtual_disk.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,8 +23,9 @@ var _ MappedNullable = &VirtualDisk{} type VirtualDisk struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` + VirtualMachine BriefVirtualMachine `json:"virtual_machine"` Name string `json:"name"` Description *string `json:"description,omitempty"` Size int32 `json:"size"` @@ -41,10 +42,11 @@ type _VirtualDisk VirtualDisk // 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 NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { +func NewVirtualDisk(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { this := VirtualDisk{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -110,6 +112,30 @@ func (o *VirtualDisk) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualDisk) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualDisk) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualDisk) GetDisplay() string { if o == nil { @@ -135,9 +161,9 @@ func (o *VirtualDisk) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { +func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -146,7 +172,7 @@ func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -154,7 +180,7 @@ func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine) { +func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } @@ -366,6 +392,7 @@ func (o VirtualDisk) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -396,6 +423,7 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "virtual_machine", "name", @@ -433,6 +461,7 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go index 1403ba9b1..9a819b331 100644 --- a/model_virtual_disk_request.go +++ b/model_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualDiskRequest{} // VirtualDiskRequest Adds support for custom fields and tags. type VirtualDiskRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Size int32 `json:"size"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Size int32 `json:"size"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _VirtualDiskRequest VirtualDiskRequest // 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 NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32) *VirtualDiskRequest { +func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32) *VirtualDiskRequest { this := VirtualDiskRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -52,9 +52,9 @@ func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go index b51baaf12..0362a6c12 100644 --- a/model_virtual_machine_with_config_context.go +++ b/model_virtual_machine_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,28 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{} // VirtualMachineWithConfigContext Adds support for custom fields and tags. type VirtualMachineWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Status *VirtualMachineWithConfigContextStatus `json:"status,omitempty"` - Site NullableSite `json:"site,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - Device NullableDevice `json:"device,omitempty"` - Role NullableDeviceRole `json:"role,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Status *ModuleStatus `json:"status,omitempty"` + Site NullableBriefSite `json:"site,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + Device NullableBriefDevice `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRole `json:"role,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -59,10 +61,11 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext // 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 NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, displayUrl string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.PrimaryIp = primaryIp @@ -130,6 +133,30 @@ func (o *VirtualMachineWithConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VirtualMachineWithConfigContext) GetDisplay() string { if o == nil { @@ -179,9 +206,9 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus { +func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus { if o == nil || IsNil(o.Status) { - var ret VirtualMachineWithConfigContextStatus + var ret ModuleStatus return ret } return *o.Status @@ -189,7 +216,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigCo // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) { +func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -205,15 +232,15 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool { return false } -// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) { +// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. +func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetSite() Site { +func (o *VirtualMachineWithConfigContext) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -222,7 +249,7 @@ func (o *VirtualMachineWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -238,8 +265,8 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *VirtualMachineWithConfigContext) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -254,9 +281,9 @@ func (o *VirtualMachineWithConfigContext) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { +func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -265,7 +292,7 @@ func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -281,8 +308,8 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -297,9 +324,9 @@ func (o *VirtualMachineWithConfigContext) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetDevice() Device { +func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -308,7 +335,7 @@ func (o *VirtualMachineWithConfigContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -324,8 +351,8 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *VirtualMachineWithConfigContext) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice) { o.Device.Set(&v) } @@ -339,10 +366,42 @@ func (o *VirtualMachineWithConfigContext) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContext) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContext) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { +func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRole + var ret BriefDeviceRole return ret } return *o.Role.Get() @@ -351,7 +410,7 @@ func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -367,8 +426,8 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRole and assigns it to the Role field. -func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole) { +// SetRole gets a reference to the given NullableBriefDeviceRole and assigns it to the Role field. +func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole) { o.Role.Set(&v) } @@ -383,9 +442,9 @@ func (o *VirtualMachineWithConfigContext) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { +func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -394,7 +453,7 @@ func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -410,8 +469,8 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -426,9 +485,9 @@ func (o *VirtualMachineWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { +func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -437,7 +496,7 @@ func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -453,8 +512,8 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -469,10 +528,10 @@ func (o *VirtualMachineWithConfigContext) UnsetPlatform() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -482,7 +541,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -490,14 +549,14 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress) { +func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -506,7 +565,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -522,8 +581,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -538,9 +597,9 @@ func (o *VirtualMachineWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -549,7 +608,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -565,8 +624,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -774,9 +833,9 @@ func (o *VirtualMachineWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -785,7 +844,7 @@ func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -801,8 +860,8 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1051,6 +1110,7 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Status) { @@ -1065,6 +1125,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -1130,6 +1193,7 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "primary_ip", @@ -1169,12 +1233,14 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "status") delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go index 7795d684a..5070409e9 100644 --- a/model_virtual_machine_with_config_context_request.go +++ b/model_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,23 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{} // VirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type VirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -88,9 +89,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -98,7 +99,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModu // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +115,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +132,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,8 +148,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -163,9 +164,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,8 +191,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -206,9 +207,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +218,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,8 +234,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -248,10 +249,42 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +293,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,8 +309,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -292,9 +325,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +336,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,8 +352,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -335,9 +368,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +379,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,8 +395,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -378,9 +411,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +422,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,8 +438,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -421,9 +454,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +465,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,8 +481,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -657,9 +690,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +701,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTempl // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,8 +717,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -819,6 +852,9 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{}, if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -909,6 +945,7 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_vlan.go b/model_vlan.go index 434660f55..1bae8d24c 100644 --- a/model_vlan.go +++ b/model_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VLAN type satisfies the MappedNullable interface at compile time @@ -20,13 +21,26 @@ var _ MappedNullable = &VLAN{} // VLAN Adds support for custom fields and tags. type VLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site NullableBriefSite `json:"site,omitempty"` + Group NullableBriefVLANGroup `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +50,17 @@ type _VLAN VLAN // 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 NewVLAN(id int32, url string, display string, vid int32, name string) *VLAN { +func NewVLAN(id int32, url string, displayUrl string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime) *VLAN { this := VLAN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Vid = vid this.Name = name + this.L2vpnTermination = l2vpnTermination + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -102,6 +120,30 @@ func (o *VLAN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VLAN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VLAN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VLAN) GetDisplay() string { if o == nil { @@ -126,6 +168,92 @@ func (o *VLAN) SetDisplay(v string) { o.Display = v } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLAN) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VLAN) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLAN) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLAN) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetGroup() BriefVLANGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLAN) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroup and assigns it to the Group field. +func (o *VLAN) SetGroup(v BriefVLANGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLAN) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLAN) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLAN) GetVid() int32 { if o == nil { @@ -174,6 +302,124 @@ func (o *VLAN) SetName(v string) { o.Name = v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VLAN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VLAN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLAN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLAN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLAN) GetStatus() IPRangeStatus { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLAN) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatus and assigns it to the Status field. +func (o *VLAN) SetStatus(v IPRangeStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetRole() BriefRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetRoleOk() (*BriefRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLAN) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *VLAN) SetRole(v BriefRole) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLAN) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLAN) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLAN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,6 +452,212 @@ func (o *VLAN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLAN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLAN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLAN) SetComments(v string) { + o.Comments = &v +} + +// GetL2vpnTermination returns the L2vpnTermination field value +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination { + if o == nil || o.L2vpnTermination.Get() == nil { + var ret BriefL2VPNTermination + return ret + } + + return *o.L2vpnTermination.Get() +} + +// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { + if o == nil { + return nil, false + } + return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() +} + +// SetL2vpnTermination sets field value +func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination) { + o.L2vpnTermination.Set(&v) +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLAN) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VLAN) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VLAN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLAN) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VLAN) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VLAN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VLAN) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VLAN) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VLAN) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VLAN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *VLAN) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *VLAN) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *VLAN) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + func (o VLAN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -218,12 +670,43 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,9 +722,13 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "vid", "name", + "l2vpn_termination", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -273,10 +760,23 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "l2vpn_termination") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vlan_group.go b/model_vlan_group.go index 4ec3a4991..ad4e70ab7 100644 --- a/model_vlan_group.go +++ b/model_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,15 @@ var _ MappedNullable = &VLANGroup{} // VLANGroup Adds support for custom fields and tags. type VLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - Scope interface{} `json:"scope"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -49,10 +46,11 @@ type _VLANGroup VLANGroup // 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 NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { +func NewVLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { this := VLANGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -120,6 +118,30 @@ func (o *VLANGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VLANGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VLANGroup) GetDisplay() string { if o == nil { @@ -304,70 +326,6 @@ func (o *VLANGroup) SetScope(v interface{}) { o.Scope = v } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroup) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroup) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -576,6 +534,7 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -588,12 +547,6 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { if o.Scope != nil { toSerialize["scope"] = o.Scope } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -622,6 +575,7 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", @@ -661,14 +615,13 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") delete(additionalProperties, "scope") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go index fb2c9e458..6971b73e8 100644 --- a/model_vlan_group_request.go +++ b/model_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,10 @@ var _ MappedNullable = &VLANGroupRequest{} // VLANGroupRequest Adds support for custom fields and tags. type VLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -189,70 +185,6 @@ func (o *VLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -367,12 +299,6 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -430,8 +356,6 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_request.go b/model_vlan_request.go index af65d4166..947a6cfae 100644 --- a/model_vlan_request.go +++ b/model_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,18 @@ var _ MappedNullable = &VLANRequest{} // VLANRequest Adds support for custom fields and tags. type VLANRequest struct { + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,6 +56,92 @@ func NewVLANRequestWithDefaults() *VLANRequest { return &this } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLANRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VLANRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLANRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLANRequest) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetGroup() BriefVLANGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLANRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLANRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLANRequest) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLANRequest) GetVid() int32 { if o == nil { @@ -96,6 +190,124 @@ func (o *VLANRequest) SetName(v string) { o.Name = v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VLANRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VLANRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLANRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLANRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLANRequest) GetStatus() IPRangeStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLANRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field. +func (o *VLANRequest) SetStatus(v IPRangeStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetRole() BriefRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLANRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *VLANRequest) SetRole(v BriefRoleRequest) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLANRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLANRequest) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +340,102 @@ func (o *VLANRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLANRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLANRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLANRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLANRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VLANRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VLANRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLANRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VLANRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VLANRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VLANRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -138,11 +446,35 @@ func (o VLANRequest) MarshalJSON() ([]byte, error) { func (o VLANRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,9 +519,17 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_vm_interface.go b/model_vm_interface.go index ebe068fef..37fcef23e 100644 --- a/model_vm_interface.go +++ b/model_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,28 +21,29 @@ var _ MappedNullable = &VMInterface{} // VMInterface Adds support for custom fields and tags. type VMInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedVMInterface `json:"parent,omitempty"` - Bridge NullableNestedVMInterface `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` - Mode *InterfaceMode `json:"mode,omitempty"` - UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + VirtualMachine BriefVirtualMachine `json:"virtual_machine"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedVMInterface `json:"parent,omitempty"` + Bridge NullableNestedVMInterface `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` AdditionalProperties map[string]interface{} } @@ -52,10 +53,11 @@ type _VMInterface VMInterface // 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 NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { +func NewVMInterface(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { this := VMInterface{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -123,6 +125,30 @@ func (o *VMInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VMInterface) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VMInterface) GetDisplay() string { if o == nil { @@ -148,9 +174,9 @@ func (o *VMInterface) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterface) GetVirtualMachine() VirtualMachine { +func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -159,7 +185,7 @@ func (o *VMInterface) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -167,7 +193,7 @@ func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VMInterface) SetVirtualMachine(v VirtualMachine) { +func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } @@ -464,9 +490,9 @@ func (o *VMInterface) SetMode(v InterfaceMode) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetUntaggedVlan() VLAN { +func (o *VMInterface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -475,7 +501,7 @@ func (o *VMInterface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -491,8 +517,8 @@ func (o *VMInterface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *VMInterface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *VMInterface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } @@ -539,9 +565,9 @@ func (o *VMInterface) SetTaggedVlans(v []VLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetVrf() VRF { +func (o *VMInterface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -550,7 +576,7 @@ func (o *VMInterface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetVrfOk() (*VRF, bool) { +func (o *VMInterface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -566,8 +592,8 @@ func (o *VMInterface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *VMInterface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *VMInterface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -582,10 +608,10 @@ func (o *VMInterface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination + var ret BriefL2VPNTermination return ret } @@ -595,7 +621,7 @@ func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } @@ -603,7 +629,7 @@ func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination) { +func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } @@ -783,6 +809,7 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -842,6 +869,7 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "virtual_machine", "name", @@ -881,6 +909,7 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go index 17f56f869..43993f9bf 100644 --- a/model_vm_interface_request.go +++ b/model_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &VMInterfaceRequest{} // VMInterfaceRequest Adds support for custom fields and tags. type VMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type VMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *InterfaceModeValue `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _VMInterfaceRequest VMInterfaceRequest // 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 NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *VMInterfaceRequest { +func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *VMInterfaceRequest { this := VMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetVrf() VRFRequest { +func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *VMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *VMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *VMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_vrf.go b/model_vrf.go index e060fd153..c28225847 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VRF type satisfies the MappedNullable interface at compile time @@ -20,14 +21,26 @@ var _ MappedNullable = &VRF{} // VRF Adds support for custom fields and tags. type VRF struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Prevent duplicate prefixes/IP addresses within this VRF + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []RouteTarget `json:"import_targets,omitempty"` + ExportTargets []RouteTarget `json:"export_targets,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,12 +50,16 @@ type _VRF VRF // 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 NewVRF(id int32, url string, display string, name string) *VRF { +func NewVRF(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64) *VRF { this := VRF{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated + this.IpaddressCount = ipaddressCount return &this } @@ -102,6 +119,30 @@ func (o *VRF) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *VRF) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *VRF) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *VRF) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *VRF) GetDisplay() string { if o == nil { @@ -193,6 +234,81 @@ func (o *VRF) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRF) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VRF) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VRF) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRF) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRF) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRF) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRF) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRF) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRF) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -225,6 +341,242 @@ func (o *VRF) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRF) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRF) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRF) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRF) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRF) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *VRF) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRF) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRF) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *VRF) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRF) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VRF) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VRF) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRF) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VRF) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VRF) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VRF) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VRF) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VRF) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VRF) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *VRF) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *VRF) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *VRF) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *VRF) GetPrefixCount() int64 { if o == nil || IsNil(o.PrefixCount) { @@ -269,14 +621,39 @@ func (o VRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["ipaddress_count"] = o.IpaddressCount if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -295,8 +672,12 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", + "created", + "last_updated", + "ipaddress_count", } allProperties := make(map[string]interface{}) @@ -328,10 +709,21 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ipaddress_count") delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vrf_request.go b/model_vrf_request.go index 16ae86557..d6afc35a6 100644 --- a/model_vrf_request.go +++ b/model_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,8 +22,16 @@ var _ MappedNullable = &VRFRequest{} type VRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Prevent duplicate prefixes/IP addresses within this VRF + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,6 +122,81 @@ func (o *VRFRequest) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRFRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VRFRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VRFRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRFRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRFRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRFRequest) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRFRequest) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRFRequest) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRFRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -146,6 +229,166 @@ func (o *VRFRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRFRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRFRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRFRequest) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *VRFRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *VRFRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRFRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VRFRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VRFRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRFRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VRFRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VRFRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VRFRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -160,9 +403,30 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) { if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -208,7 +472,14 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_webhook.go b/model_webhook.go index 598066292..326371c87 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Webhook{} type Webhook struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -54,10 +55,11 @@ type _Webhook Webhook // 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 NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { +func NewWebhook(id int32, url string, displayUrl string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { this := Webhook{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.PayloadUrl = payloadUrl @@ -122,6 +124,30 @@ func (o *Webhook) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *Webhook) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *Webhook) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *Webhook) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *Webhook) GetDisplay() string { if o == nil { @@ -589,6 +615,7 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -639,6 +666,7 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "payload_url", @@ -675,6 +703,7 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_webhook_request.go b/model_webhook_request.go index 09152c9ce..d8b2207e7 100644 --- a/model_webhook_request.go +++ b/model_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_channel.go b/model_wireless_channel.go index 0950f88f1..4fd59e089 100644 --- a/model_wireless_channel.go +++ b/model_wireless_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan.go b/model_wireless_lan.go index 4825664b8..752d00f26 100644 --- a/model_wireless_lan.go +++ b/model_wireless_lan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,23 +21,24 @@ var _ MappedNullable = &WirelessLAN{} // WirelessLAN Adds support for custom fields and tags. type WirelessLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroup `json:"group,omitempty"` - Status *WirelessLANStatus `json:"status,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroup `json:"group,omitempty"` + Status *WirelessLANStatus `json:"status,omitempty"` + Vlan NullableBriefVLAN `json:"vlan,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -47,10 +48,11 @@ type _WirelessLAN WirelessLAN // 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 NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { +func NewWirelessLAN(id int32, url string, displayUrl string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { this := WirelessLAN{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Ssid = ssid this.Created = created @@ -114,6 +116,30 @@ func (o *WirelessLAN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *WirelessLAN) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *WirelessLAN) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *WirelessLAN) GetDisplay() string { if o == nil { @@ -195,9 +221,9 @@ func (o *WirelessLAN) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetGroup() WirelessLANGroup { +func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroup + var ret BriefWirelessLANGroup return ret } return *o.Group.Get() @@ -206,7 +232,7 @@ func (o *WirelessLAN) GetGroup() WirelessLANGroup { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool) { +func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool) { if o == nil { return nil, false } @@ -222,8 +248,8 @@ func (o *WirelessLAN) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroup and assigns it to the Group field. -func (o *WirelessLAN) SetGroup(v WirelessLANGroup) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroup and assigns it to the Group field. +func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup) { o.Group.Set(&v) } @@ -270,9 +296,9 @@ func (o *WirelessLAN) SetStatus(v WirelessLANStatus) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetVlan() VLAN { +func (o *WirelessLAN) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -281,7 +307,7 @@ func (o *WirelessLAN) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetVlanOk() (*VLAN, bool) { +func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -297,8 +323,8 @@ func (o *WirelessLAN) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *WirelessLAN) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *WirelessLAN) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } @@ -313,9 +339,9 @@ func (o *WirelessLAN) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetTenant() Tenant { +func (o *WirelessLAN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -324,7 +350,7 @@ func (o *WirelessLAN) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -340,8 +366,8 @@ func (o *WirelessLAN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLAN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLAN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -611,6 +637,7 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["ssid"] = o.Ssid if !IsNil(o.Description) { @@ -663,6 +690,7 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "ssid", "created", @@ -698,6 +726,7 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") delete(additionalProperties, "description") diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go index 7edf6beb1..09395fd61 100644 --- a/model_wireless_lan_auth_cipher.go +++ b/model_wireless_lan_auth_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go index 212607db6..2cdb9d1d0 100644 --- a/model_wireless_lan_auth_cipher_label.go +++ b/model_wireless_lan_auth_cipher_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go index e601548bd..b7e1591f9 100644 --- a/model_wireless_lan_auth_cipher_value.go +++ b/model_wireless_lan_auth_cipher_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go index 5d67cd317..e9cf5308a 100644 --- a/model_wireless_lan_auth_type.go +++ b/model_wireless_lan_auth_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go index 3a804f5bc..4527e03d8 100644 --- a/model_wireless_lan_auth_type_label.go +++ b/model_wireless_lan_auth_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go index aa1b05122..e2b5c5c7c 100644 --- a/model_wireless_lan_auth_type_value.go +++ b/model_wireless_lan_auth_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go index ca2ffb94f..1d5ad82d6 100644 --- a/model_wireless_lan_group.go +++ b/model_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the WirelessLANGroup type satisfies the MappedNullable interface at compile time @@ -20,14 +21,20 @@ var _ MappedNullable = &WirelessLANGroup{} // WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. type WirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,13 +44,16 @@ 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, display string, name string, slug string, wirelesslanCount int32, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.WirelesslanCount = wirelesslanCount this.Depth = depth return &this @@ -105,6 +115,30 @@ func (o *WirelessLANGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *WirelessLANGroup) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *WirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *WirelessLANGroup) GetDisplay() string { if o == nil { @@ -177,6 +211,49 @@ func (o *WirelessLANGroup) SetSlug(v string) { o.Slug = v } +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedWirelessLANGroup + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedWirelessLANGroup and assigns it to the Parent field. +func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *WirelessLANGroup) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WirelessLANGroup) UnsetParent() { + o.Parent.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +286,122 @@ func (o *WirelessLANGroup) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *WirelessLANGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *WirelessLANGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *WirelessLANGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *WirelessLANGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *WirelessLANGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetWirelesslanCount returns the WirelesslanCount field value func (o *WirelessLANGroup) GetWirelesslanCount() int32 { if o == nil { @@ -269,12 +462,24 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["wirelesslan_count"] = o.WirelesslanCount toSerialize["_depth"] = o.Depth @@ -292,9 +497,12 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "name", "slug", + "created", + "last_updated", "wirelesslan_count", "_depth", } @@ -328,10 +536,16 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "parent") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "wirelesslan_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go index 7063e6d87..cc1442843 100644 --- a/model_wireless_lan_group_request.go +++ b/model_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go index f2ac3edde..0126c5a47 100644 --- a/model_wireless_lan_request.go +++ b/model_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WirelessLANRequest{} // WirelessLANRequest Adds support for custom fields and tags. type WirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` - Status *WirelessLANStatusValue `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Status *WirelessLANStatusValue `json:"status,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *WirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetVlan() VLANRequest { +func (o *WirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetTenant() TenantRequest { +func (o *WirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go index 0b14b4e12..9c547609a 100644 --- a/model_wireless_lan_status.go +++ b/model_wireless_lan_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go index 21057de6f..78bae5b53 100644 --- a/model_wireless_lan_status_label.go +++ b/model_wireless_lan_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go index ac9292d67..2490eda4f 100644 --- a/model_wireless_lan_status_value.go +++ b/model_wireless_lan_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_link.go b/model_wireless_link.go index 8626318ea..7ace7f837 100644 --- a/model_wireless_link.go +++ b/model_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,23 +21,26 @@ var _ MappedNullable = &WirelessLink{} // WirelessLink Adds support for custom fields and tags. type WirelessLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InterfaceA Interface `json:"interface_a"` - InterfaceB Interface `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *WirelessLinkStatus `json:"status,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + InterfaceA BriefInterface `json:"interface_a"` + InterfaceB BriefInterface `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableWirelessLinkDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -47,10 +50,11 @@ type _WirelessLink WirelessLink // 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 NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime) *WirelessLink { +func NewWirelessLink(id int32, url string, displayUrl string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime) *WirelessLink { this := WirelessLink{} this.Id = id this.Url = url + this.DisplayUrl = displayUrl this.Display = display this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -115,6 +119,30 @@ func (o *WirelessLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value +func (o *WirelessLink) GetDisplayUrl() string { + if o == nil { + var ret string + return ret + } + + return o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// and a boolean to check if the value has been set. +func (o *WirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DisplayUrl, true +} + +// SetDisplayUrl sets field value +func (o *WirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = v +} + // GetDisplay returns the Display field value func (o *WirelessLink) GetDisplay() string { if o == nil { @@ -140,9 +168,9 @@ func (o *WirelessLink) SetDisplay(v string) { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLink) GetInterfaceA() Interface { +func (o *WirelessLink) GetInterfaceA() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -151,7 +179,7 @@ func (o *WirelessLink) GetInterfaceA() Interface { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -159,14 +187,14 @@ func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { } // SetInterfaceA sets field value -func (o *WirelessLink) SetInterfaceA(v Interface) { +func (o *WirelessLink) SetInterfaceA(v BriefInterface) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLink) GetInterfaceB() Interface { +func (o *WirelessLink) GetInterfaceB() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -175,7 +203,7 @@ func (o *WirelessLink) GetInterfaceB() Interface { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -183,7 +211,7 @@ func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { } // SetInterfaceB sets field value -func (o *WirelessLink) SetInterfaceB(v Interface) { +func (o *WirelessLink) SetInterfaceB(v BriefInterface) { o.InterfaceB = v } @@ -220,9 +248,9 @@ func (o *WirelessLink) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLink) GetStatus() WirelessLinkStatus { +func (o *WirelessLink) GetStatus() CableStatus { if o == nil || IsNil(o.Status) { - var ret WirelessLinkStatus + var ret CableStatus return ret } return *o.Status @@ -230,7 +258,7 @@ func (o *WirelessLink) GetStatus() WirelessLinkStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool) { +func (o *WirelessLink) GetStatusOk() (*CableStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -246,15 +274,15 @@ func (o *WirelessLink) HasStatus() bool { return false } -// SetStatus gets a reference to the given WirelessLinkStatus and assigns it to the Status field. -func (o *WirelessLink) SetStatus(v WirelessLinkStatus) { +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *WirelessLink) SetStatus(v CableStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetTenant() Tenant { +func (o *WirelessLink) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -263,7 +291,7 @@ func (o *WirelessLink) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLink) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -279,8 +307,8 @@ func (o *WirelessLink) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLink) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLink) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -390,6 +418,92 @@ func (o *WirelessLink) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLink) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLink) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLink) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLink) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLink) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret WirelessLinkDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLink) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableWirelessLinkDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit) { + o.DistanceUnit.Set(&v) +} + +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLink) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLink) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLink) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -582,6 +696,7 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["interface_a"] = o.InterfaceA toSerialize["interface_b"] = o.InterfaceB @@ -603,6 +718,12 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -632,6 +753,7 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", + "display_url", "display", "interface_a", "interface_b", @@ -668,6 +790,7 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "interface_a") delete(additionalProperties, "interface_b") @@ -677,6 +800,8 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_distance_unit.go b/model_wireless_link_distance_unit.go new file mode 100644 index 000000000..f00dc88c9 --- /dev/null +++ b/model_wireless_link_distance_unit.go @@ -0,0 +1,192 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" +) + +// checks if the WirelessLinkDistanceUnit type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WirelessLinkDistanceUnit{} + +// WirelessLinkDistanceUnit struct for WirelessLinkDistanceUnit +type WirelessLinkDistanceUnit struct { + Value *PatchedWritableWirelessLinkRequestDistanceUnit `json:"value,omitempty"` + Label *WirelessLinkDistanceUnitLabel `json:"label,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WirelessLinkDistanceUnit WirelessLinkDistanceUnit + +// NewWirelessLinkDistanceUnit instantiates a new WirelessLinkDistanceUnit object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWirelessLinkDistanceUnit() *WirelessLinkDistanceUnit { + this := WirelessLinkDistanceUnit{} + return &this +} + +// NewWirelessLinkDistanceUnitWithDefaults instantiates a new WirelessLinkDistanceUnit object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWirelessLinkDistanceUnitWithDefaults() *WirelessLinkDistanceUnit { + this := WirelessLinkDistanceUnit{} + return &this +} + +// GetValue returns the Value field value if set, zero value otherwise. +func (o *WirelessLinkDistanceUnit) GetValue() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.Value) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.Value +} + +// GetValueOk returns a tuple with the Value field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLinkDistanceUnit) GetValueOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.Value) { + return nil, false + } + return o.Value, true +} + +// HasValue returns a boolean if a field has been set. +func (o *WirelessLinkDistanceUnit) HasValue() bool { + if o != nil && !IsNil(o.Value) { + return true + } + + return false +} + +// SetValue gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the Value field. +func (o *WirelessLinkDistanceUnit) SetValue(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.Value = &v +} + +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *WirelessLinkDistanceUnit) GetLabel() WirelessLinkDistanceUnitLabel { + if o == nil || IsNil(o.Label) { + var ret WirelessLinkDistanceUnitLabel + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLinkDistanceUnit) GetLabelOk() (*WirelessLinkDistanceUnitLabel, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *WirelessLinkDistanceUnit) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given WirelessLinkDistanceUnitLabel and assigns it to the Label field. +func (o *WirelessLinkDistanceUnit) SetLabel(v WirelessLinkDistanceUnitLabel) { + o.Label = &v +} + +func (o WirelessLinkDistanceUnit) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WirelessLinkDistanceUnit) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + if !IsNil(o.Value) { + toSerialize["value"] = o.Value + } + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WirelessLinkDistanceUnit) UnmarshalJSON(data []byte) (err error) { + varWirelessLinkDistanceUnit := _WirelessLinkDistanceUnit{} + + err = json.Unmarshal(data, &varWirelessLinkDistanceUnit) + + if err != nil { + return err + } + + *o = WirelessLinkDistanceUnit(varWirelessLinkDistanceUnit) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "value") + delete(additionalProperties, "label") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWirelessLinkDistanceUnit struct { + value *WirelessLinkDistanceUnit + isSet bool +} + +func (v NullableWirelessLinkDistanceUnit) Get() *WirelessLinkDistanceUnit { + return v.value +} + +func (v *NullableWirelessLinkDistanceUnit) Set(val *WirelessLinkDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessLinkDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessLinkDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessLinkDistanceUnit(val *WirelessLinkDistanceUnit) *NullableWirelessLinkDistanceUnit { + return &NullableWirelessLinkDistanceUnit{value: val, isSet: true} +} + +func (v NullableWirelessLinkDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessLinkDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_wireless_link_distance_unit_label.go b/model_wireless_link_distance_unit_label.go new file mode 100644 index 000000000..beb10239b --- /dev/null +++ b/model_wireless_link_distance_unit_label.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessLinkDistanceUnitLabel the model 'WirelessLinkDistanceUnitLabel' +type WirelessLinkDistanceUnitLabel string + +// List of WirelessLink_distance_unit_label +const ( + WIRELESSLINKDISTANCEUNITLABEL_KILOMETERS WirelessLinkDistanceUnitLabel = "Kilometers" + WIRELESSLINKDISTANCEUNITLABEL_METERS WirelessLinkDistanceUnitLabel = "Meters" + WIRELESSLINKDISTANCEUNITLABEL_MILES WirelessLinkDistanceUnitLabel = "Miles" + WIRELESSLINKDISTANCEUNITLABEL_FEET WirelessLinkDistanceUnitLabel = "Feet" +) + +// All allowed values of WirelessLinkDistanceUnitLabel enum +var AllowedWirelessLinkDistanceUnitLabelEnumValues = []WirelessLinkDistanceUnitLabel{ + "Kilometers", + "Meters", + "Miles", + "Feet", +} + +func (v *WirelessLinkDistanceUnitLabel) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessLinkDistanceUnitLabel(value) + for _, existing := range AllowedWirelessLinkDistanceUnitLabelEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessLinkDistanceUnitLabel", value) +} + +// NewWirelessLinkDistanceUnitLabelFromValue returns a pointer to a valid WirelessLinkDistanceUnitLabel +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessLinkDistanceUnitLabelFromValue(v string) (*WirelessLinkDistanceUnitLabel, error) { + ev := WirelessLinkDistanceUnitLabel(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessLinkDistanceUnitLabel: valid values are %v", v, AllowedWirelessLinkDistanceUnitLabelEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessLinkDistanceUnitLabel) IsValid() bool { + for _, existing := range AllowedWirelessLinkDistanceUnitLabelEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WirelessLink_distance_unit_label value +func (v WirelessLinkDistanceUnitLabel) Ptr() *WirelessLinkDistanceUnitLabel { + return &v +} + +type NullableWirelessLinkDistanceUnitLabel struct { + value *WirelessLinkDistanceUnitLabel + isSet bool +} + +func (v NullableWirelessLinkDistanceUnitLabel) Get() *WirelessLinkDistanceUnitLabel { + return v.value +} + +func (v *NullableWirelessLinkDistanceUnitLabel) Set(val *WirelessLinkDistanceUnitLabel) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessLinkDistanceUnitLabel) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessLinkDistanceUnitLabel) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessLinkDistanceUnitLabel(val *WirelessLinkDistanceUnitLabel) *NullableWirelessLinkDistanceUnitLabel { + return &NullableWirelessLinkDistanceUnitLabel{value: val, isSet: true} +} + +func (v NullableWirelessLinkDistanceUnitLabel) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessLinkDistanceUnitLabel) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go index ac8afc386..1fbfd1646 100644 --- a/model_wireless_link_request.go +++ b/model_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WirelessLinkRequest{} // WirelessLinkRequest Adds support for custom fields and tags. type WirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +43,7 @@ type _WirelessLinkRequest WirelessLinkRequest // 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 NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WirelessLinkRequest { +func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WirelessLinkRequest { this := WirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,14 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { } // SetInterfaceA sets field value -func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +94,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +102,7 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { } // SetInterfaceB sets field value -func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } @@ -137,9 +139,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +149,7 @@ func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +165,15 @@ func (o *WirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetTenant() TenantRequest { +func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +182,7 @@ func (o *WirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -307,6 +309,92 @@ func (o *WirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret WirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} + +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -465,6 +553,12 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -529,6 +623,8 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_request_distance_unit.go b/model_wireless_link_request_distance_unit.go new file mode 100644 index 000000000..5a52143b2 --- /dev/null +++ b/model_wireless_link_request_distance_unit.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessLinkRequestDistanceUnit * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +type WirelessLinkRequestDistanceUnit string + +// List of WirelessLinkRequest_distance_unit +const ( + WIRELESSLINKREQUESTDISTANCEUNIT_KM WirelessLinkRequestDistanceUnit = "km" + WIRELESSLINKREQUESTDISTANCEUNIT_M WirelessLinkRequestDistanceUnit = "m" + WIRELESSLINKREQUESTDISTANCEUNIT_MI WirelessLinkRequestDistanceUnit = "mi" + WIRELESSLINKREQUESTDISTANCEUNIT_FT WirelessLinkRequestDistanceUnit = "ft" + WIRELESSLINKREQUESTDISTANCEUNIT_EMPTY WirelessLinkRequestDistanceUnit = "" +) + +// All allowed values of WirelessLinkRequestDistanceUnit enum +var AllowedWirelessLinkRequestDistanceUnitEnumValues = []WirelessLinkRequestDistanceUnit{ + "km", + "m", + "mi", + "ft", + "", +} + +func (v *WirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessLinkRequestDistanceUnit(value) + for _, existing := range AllowedWirelessLinkRequestDistanceUnitEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessLinkRequestDistanceUnit", value) +} + +// NewWirelessLinkRequestDistanceUnitFromValue returns a pointer to a valid WirelessLinkRequestDistanceUnit +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessLinkRequestDistanceUnitFromValue(v string) (*WirelessLinkRequestDistanceUnit, error) { + ev := WirelessLinkRequestDistanceUnit(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessLinkRequestDistanceUnit: valid values are %v", v, AllowedWirelessLinkRequestDistanceUnitEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessLinkRequestDistanceUnit) IsValid() bool { + for _, existing := range AllowedWirelessLinkRequestDistanceUnitEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to WirelessLinkRequest_distance_unit value +func (v WirelessLinkRequestDistanceUnit) Ptr() *WirelessLinkRequestDistanceUnit { + return &v +} + +type NullableWirelessLinkRequestDistanceUnit struct { + value *WirelessLinkRequestDistanceUnit + isSet bool +} + +func (v NullableWirelessLinkRequestDistanceUnit) Get() *WirelessLinkRequestDistanceUnit { + return v.value +} + +func (v *NullableWirelessLinkRequestDistanceUnit) Set(val *WirelessLinkRequestDistanceUnit) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessLinkRequestDistanceUnit) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessLinkRequestDistanceUnit) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessLinkRequestDistanceUnit(val *WirelessLinkRequestDistanceUnit) *NullableWirelessLinkRequestDistanceUnit { + return &NullableWirelessLinkRequestDistanceUnit{value: val, isSet: true} +} + +func (v NullableWirelessLinkRequestDistanceUnit) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_wireless_role.go b/model_wireless_role.go index 8aa2042e3..5fd60fdb3 100644 --- a/model_wireless_role.go +++ b/model_wireless_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_wireless_links_list_distance_unit_parameter.go b/model_wireless_wireless_links_list_distance_unit_parameter.go new file mode 100644 index 000000000..9459e0229 --- /dev/null +++ b/model_wireless_wireless_links_list_distance_unit_parameter.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessWirelessLinksListDistanceUnitParameter the model 'WirelessWirelessLinksListDistanceUnitParameter' +type WirelessWirelessLinksListDistanceUnitParameter string + +// List of wireless_wireless_links_list_distance_unit_parameter +const ( + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_FT WirelessWirelessLinksListDistanceUnitParameter = "ft" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_KM WirelessWirelessLinksListDistanceUnitParameter = "km" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_M WirelessWirelessLinksListDistanceUnitParameter = "m" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_MI WirelessWirelessLinksListDistanceUnitParameter = "mi" +) + +// All allowed values of WirelessWirelessLinksListDistanceUnitParameter enum +var AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues = []WirelessWirelessLinksListDistanceUnitParameter{ + "ft", + "km", + "m", + "mi", +} + +func (v *WirelessWirelessLinksListDistanceUnitParameter) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessWirelessLinksListDistanceUnitParameter(value) + for _, existing := range AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessWirelessLinksListDistanceUnitParameter", value) +} + +// NewWirelessWirelessLinksListDistanceUnitParameterFromValue returns a pointer to a valid WirelessWirelessLinksListDistanceUnitParameter +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessWirelessLinksListDistanceUnitParameterFromValue(v string) (*WirelessWirelessLinksListDistanceUnitParameter, error) { + ev := WirelessWirelessLinksListDistanceUnitParameter(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessWirelessLinksListDistanceUnitParameter: valid values are %v", v, AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessWirelessLinksListDistanceUnitParameter) IsValid() bool { + for _, existing := range AllowedWirelessWirelessLinksListDistanceUnitParameterEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to wireless_wireless_links_list_distance_unit_parameter value +func (v WirelessWirelessLinksListDistanceUnitParameter) Ptr() *WirelessWirelessLinksListDistanceUnitParameter { + return &v +} + +type NullableWirelessWirelessLinksListDistanceUnitParameter struct { + value *WirelessWirelessLinksListDistanceUnitParameter + isSet bool +} + +func (v NullableWirelessWirelessLinksListDistanceUnitParameter) Get() *WirelessWirelessLinksListDistanceUnitParameter { + return v.value +} + +func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) Set(val *WirelessWirelessLinksListDistanceUnitParameter) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessWirelessLinksListDistanceUnitParameter) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessWirelessLinksListDistanceUnitParameter(val *WirelessWirelessLinksListDistanceUnitParameter) *NullableWirelessWirelessLinksListDistanceUnitParameter { + return &NullableWirelessWirelessLinksListDistanceUnitParameter{value: val, isSet: true} +} + +func (v NullableWirelessWirelessLinksListDistanceUnitParameter) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go index b16c5390b..cd4d087f7 100644 --- a/model_writable_aggregate_request.go +++ b/model_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableAggregateRequest{} // WritableAggregateRequest Adds support for custom fields and tags. type WritableAggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableAggregateRequest WritableAggregateRequest // 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 NewWritableAggregateRequest(prefix string, rir RIRRequest) *WritableAggregateRequest { +func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest) *WritableAggregateRequest { this := WritableAggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *WritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *WritableAggregateRequest) GetRir() RIRRequest { +func (o *WritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +88,7 @@ func (o *WritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *WritableAggregateRequest) SetRir(v RIRRequest) { +func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableAggregateRequest) GetTenant() TenantRequest { +func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *WritableAggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *WritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go index 7d440df5e..43d625ff8 100644 --- a/model_writable_cable_request.go +++ b/model_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableCableRequest{} // WritableCableRequest Adds support for custom fields and tags. type WritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { +func (o *WritableCableRequest) GetType() CableType { if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType + var ret CableType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { +func (o *WritableCableRequest) GetTypeOk() (*CableType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *WritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType) { +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *WritableCableRequest) SetType(v CableType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *WritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCableRequest) GetTenant() TenantRequest { +func (o *WritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *WritableCableRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *WritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *WritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { +func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue { if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit + var ret CableLengthUnitValue return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLength // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { +func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *WritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { +// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. +func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { o.LengthUnit = &v } diff --git a/model_writable_circuit_group_assignment_request.go b/model_writable_circuit_group_assignment_request.go new file mode 100644 index 000000000..9a112f8c8 --- /dev/null +++ b/model_writable_circuit_group_assignment_request.go @@ -0,0 +1,271 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableCircuitGroupAssignmentRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableCircuitGroupAssignmentRequest{} + +// WritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. +type WritableCircuitGroupAssignmentRequest struct { + Group BriefCircuitGroupRequest `json:"group"` + Circuit BriefCircuitRequest `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest + +// NewWritableCircuitGroupAssignmentRequest instantiates a new WritableCircuitGroupAssignmentRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWritableCircuitGroupAssignmentRequest(group BriefCircuitGroupRequest, circuit BriefCircuitRequest) *WritableCircuitGroupAssignmentRequest { + this := WritableCircuitGroupAssignmentRequest{} + this.Group = group + this.Circuit = circuit + return &this +} + +// NewWritableCircuitGroupAssignmentRequestWithDefaults instantiates a new WritableCircuitGroupAssignmentRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWritableCircuitGroupAssignmentRequestWithDefaults() *WritableCircuitGroupAssignmentRequest { + this := WritableCircuitGroupAssignmentRequest{} + return &this +} + +// GetGroup returns the Group field value +func (o *WritableCircuitGroupAssignmentRequest) GetGroup() BriefCircuitGroupRequest { + if o == nil { + var ret BriefCircuitGroupRequest + return ret + } + + return o.Group +} + +// GetGroupOk returns a tuple with the Group field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetGroupOk() (*BriefCircuitGroupRequest, bool) { + if o == nil { + return nil, false + } + return &o.Group, true +} + +// SetGroup sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetGroup(v BriefCircuitGroupRequest) { + o.Group = v +} + +// GetCircuit returns the Circuit field value +func (o *WritableCircuitGroupAssignmentRequest) GetCircuit() BriefCircuitRequest { + if o == nil { + var ret BriefCircuitRequest + return ret + } + + return o.Circuit +} + +// GetCircuitOk returns a tuple with the Circuit field value +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { + if o == nil { + return nil, false + } + return &o.Circuit, true +} + +// SetCircuit sets field value +func (o *WritableCircuitGroupAssignmentRequest) SetCircuit(v BriefCircuitRequest) { + o.Circuit = v +} + +// GetPriority returns the Priority field value if set, zero value otherwise. +func (o *WritableCircuitGroupAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { + if o == nil || IsNil(o.Priority) { + var ret BriefCircuitGroupAssignmentSerializerPriorityValue + return ret + } + return *o.Priority +} + +// GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { + if o == nil || IsNil(o.Priority) { + return nil, false + } + return o.Priority, true +} + +// HasPriority returns a boolean if a field has been set. +func (o *WritableCircuitGroupAssignmentRequest) HasPriority() bool { + if o != nil && !IsNil(o.Priority) { + return true + } + + return false +} + +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *WritableCircuitGroupAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { + o.Priority = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableCircuitGroupAssignmentRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitGroupAssignmentRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WritableCircuitGroupAssignmentRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +func (o WritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableCircuitGroupAssignmentRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["group"] = o.Group + toSerialize["circuit"] = o.Circuit + if !IsNil(o.Priority) { + toSerialize["priority"] = o.Priority + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "group", + "circuit", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varWritableCircuitGroupAssignmentRequest := _WritableCircuitGroupAssignmentRequest{} + + err = json.Unmarshal(data, &varWritableCircuitGroupAssignmentRequest) + + if err != nil { + return err + } + + *o = WritableCircuitGroupAssignmentRequest(varWritableCircuitGroupAssignmentRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") + delete(additionalProperties, "circuit") + delete(additionalProperties, "priority") + delete(additionalProperties, "tags") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableCircuitGroupAssignmentRequest struct { + value *WritableCircuitGroupAssignmentRequest + isSet bool +} + +func (v NullableWritableCircuitGroupAssignmentRequest) Get() *WritableCircuitGroupAssignmentRequest { + return v.value +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) Set(val *WritableCircuitGroupAssignmentRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableCircuitGroupAssignmentRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableCircuitGroupAssignmentRequest(val *WritableCircuitGroupAssignmentRequest) *NullableWritableCircuitGroupAssignmentRequest { + return &NullableWritableCircuitGroupAssignmentRequest{value: val, isSet: true} +} + +func (v NullableWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go index 8b3bc60b2..8d5cd04ff 100644 --- a/model_writable_circuit_request.go +++ b/model_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,21 @@ var _ MappedNullable = &WritableCircuitRequest{} // WritableCircuitRequest Adds support for custom fields and tags. type WritableCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider ProviderRequest `json:"provider"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type CircuitTypeRequest `json:"type"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +45,7 @@ type _WritableCircuitRequest WritableCircuitRequest // 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 NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest) *WritableCircuitRequest { +func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *WritableCircuitRequest { this := WritableCircuitRequest{} this.Cid = cid this.Provider = provider @@ -85,9 +86,9 @@ func (o *WritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value -func (o *WritableCircuitRequest) GetProvider() ProviderRequest { +func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil { - var ret ProviderRequest + var ret BriefProviderRequest return ret } @@ -96,7 +97,7 @@ func (o *WritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil { return nil, false } @@ -104,14 +105,14 @@ func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { } // SetProvider sets field value -func (o *WritableCircuitRequest) SetProvider(v ProviderRequest) { +func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -120,7 +121,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -136,8 +137,8 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -152,9 +153,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value -func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } @@ -163,7 +164,7 @@ func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil { return nil, false } @@ -171,14 +172,14 @@ func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { } // SetType sets field value -func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest) { +func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -186,7 +187,7 @@ func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -202,15 +203,15 @@ func (o *WritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetTenant() TenantRequest { +func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -219,7 +220,7 @@ func (o *WritableCircuitRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -235,8 +236,8 @@ func (o *WritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -507,6 +508,38 @@ func (o *WritableCircuitRequest) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *WritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -550,6 +583,9 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -608,6 +644,7 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go index 25402473e..efd188874 100644 --- a/model_writable_cluster_request.go +++ b/model_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableClusterRequest{} // WritableClusterRequest Adds support for custom fields and tags. type WritableClusterRequest struct { - Name string `json:"name"` - Type ClusterTypeRequest `json:"type"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _WritableClusterRequest WritableClusterRequest // 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 NewWritableClusterRequest(name string, type_ ClusterTypeRequest) *WritableClusterRequest { +func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest) *WritableClusterRequest { this := WritableClusterRequest{} this.Name = name this.Type = type_ @@ -79,9 +79,9 @@ func (o *WritableClusterRequest) SetName(v string) { } // GetType returns the Type field value -func (o *WritableClusterRequest) GetType() ClusterTypeRequest { +func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } @@ -90,7 +90,7 @@ func (o *WritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil { return nil, false } @@ -98,14 +98,14 @@ func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { } // SetType sets field value -func (o *WritableClusterRequest) SetType(v ClusterTypeRequest) { +func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -114,7 +114,7 @@ func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -130,8 +130,8 @@ func (o *WritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } @@ -146,9 +146,9 @@ func (o *WritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *WritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -156,7 +156,7 @@ func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -172,15 +172,15 @@ func (o *WritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetTenant() TenantRequest { +func (o *WritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -189,7 +189,7 @@ func (o *WritableClusterRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *WritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -221,9 +221,9 @@ func (o *WritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetSite() SiteRequest { +func (o *WritableClusterRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -232,7 +232,7 @@ func (o *WritableClusterRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -248,8 +248,8 @@ func (o *WritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableClusterRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableClusterRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go index 60b31d0af..b71ff3cf4 100644 --- a/model_writable_console_port_request.go +++ b/model_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsolePortRequest{} // WritableConsolePortRequest Adds support for custom fields and tags. type WritableConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsolePortRequest WritableConsolePortRequest // 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 NewWritableConsolePortRequest(device DeviceRequest, name string) *WritableConsolePortRequest { +func NewWritableConsolePortRequest(device BriefDeviceRequest, name string) *WritableConsolePortRequest { this := WritableConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsolePortRequestWithDefaults() *WritableConsolePortRequest { } // GetDevice returns the Device field value -func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortRequest) GetModule() ModuleRequest { +func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go index afe73d3de..002f475ec 100644 --- a/model_writable_console_port_template_request.go +++ b/model_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{} // WritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsolePortTemplateRequestWithDefaults() *WritableConsolePortTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go index 8f1c21baa..a8696612a 100644 --- a/model_writable_console_server_port_request.go +++ b/model_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{} // WritableConsoleServerPortRequest Adds support for custom fields and tags. type WritableConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsoleServerPortRequest WritableConsoleServerPortRequest // 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 NewWritableConsoleServerPortRequest(device DeviceRequest, name string) *WritableConsoleServerPortRequest { +func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string) *WritableConsoleServerPortRequest { this := WritableConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsoleServerPortRequestWithDefaults() *WritableConsoleServerPor } // GetDevice returns the Device field value -func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) } // SetDevice sets field value -func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go index 74ef741d9..85f79e7ea 100644 --- a/model_writable_console_server_port_template_request.go +++ b/model_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{} // WritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsoleServerPortTemplateRequestWithDefaults() *WritableConsoleS } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeReq // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeReq // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go index 39fc360da..8a6345e79 100644 --- a/model_writable_contact_assignment_request.go +++ b/model_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{} // WritableContactAssignmentRequest Adds support for custom fields and tags. type WritableContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _WritableContactAssignmentRequest WritableContactAssignmentRequest // 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 NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *WritableContactAssignmentRequest { +func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *WritableContactAssignmentRequest { this := WritableContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +112,7 @@ func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool } // SetContact sets field value -func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *WritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *WritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriori // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *WritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go index 18c9c5d25..977ad23bd 100644 --- a/model_writable_contact_group_request.go +++ b/model_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go index 204ccffd1..598c2535b 100644 --- a/model_writable_custom_field_choice_set_request.go +++ b/model_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go index 5429f4cc5..99c206350 100644 --- a/model_writable_custom_field_request.go +++ b/model_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,10 @@ type WritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -41,6 +43,8 @@ type WritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type WritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -326,6 +330,38 @@ func (o *WritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *WritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *WritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -519,6 +555,39 @@ func (o *WritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -670,9 +739,9 @@ func (o *WritableCustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -681,7 +750,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -697,8 +766,8 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -774,6 +843,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -792,6 +864,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -862,12 +937,14 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go index d661bb97c..e358fcfe5 100644 --- a/model_writable_data_source_request.go +++ b/model_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,10 +25,10 @@ type WritableDataSourceRequest struct { SourceUrl string `json:"source_url"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -191,38 +191,6 @@ func (o *WritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *WritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *WritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *WritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +256,38 @@ func (o *WritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go index 4275e29a1..7027cda6e 100644 --- a/model_writable_device_type_request.go +++ b/model_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{} // WritableDeviceTypeRequest Adds support for custom fields and tags. type WritableDeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,7 +51,7 @@ type _WritableDeviceTypeRequest WritableDeviceTypeRequest // 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 NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { +func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { this := WritableDeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -72,9 +72,9 @@ func NewWritableDeviceTypeRequestWithDefaults() *WritableDeviceTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -91,14 +91,14 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -107,7 +107,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -123,8 +123,8 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -422,9 +422,9 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -432,7 +432,7 @@ func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeReq // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -448,8 +448,8 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go index ee7fcd1a6..0f83791c9 100644 --- a/model_writable_device_with_config_context_request.go +++ b/model_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{} // WritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type WritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face RackFace1 `json:"face"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face RackFace1 `json:"face"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _WritableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequ // 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 NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { +func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { this := WritableDeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -125,9 +125,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -136,7 +136,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -144,14 +144,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeR } // SetDeviceType sets field value -func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -160,7 +160,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -168,14 +168,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest } // SetRole sets field value -func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -184,7 +184,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -200,8 +200,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -216,9 +216,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -227,7 +227,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -243,8 +243,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -334,9 +334,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -345,7 +345,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -353,14 +353,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool } // SetSite sets field value -func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -369,7 +369,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -385,8 +385,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -401,9 +401,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -412,7 +412,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -428,8 +428,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -661,9 +661,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -672,7 +672,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -688,8 +688,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -704,9 +704,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -715,7 +715,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -731,8 +731,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -747,9 +747,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -758,7 +758,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -774,8 +774,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -790,9 +790,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -801,7 +801,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -817,8 +817,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -833,9 +833,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -844,7 +844,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChas // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -860,8 +860,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1026,9 +1026,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1037,7 +1037,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTempl // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1053,8 +1053,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go index 266bff6f0..d35aaea83 100644 --- a/model_writable_event_rule_request.go +++ b/model_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,17 +22,9 @@ var _ MappedNullable = &WritableEventRuleRequest{} type WritableEventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` @@ -50,10 +42,11 @@ type _WritableEventRuleRequest WritableEventRuleRequest // 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 NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string) *WritableEventRuleRequest { +func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string) *WritableEventRuleRequest { this := WritableEventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionObjectType = actionObjectType return &this } @@ -114,166 +107,6 @@ func (o *WritableEventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *WritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *WritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *WritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *WritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableEventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -306,6 +139,30 @@ func (o *WritableEventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableEventRuleRequest) GetConditions() interface{} { if o == nil { @@ -546,24 +403,10 @@ func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -598,6 +441,7 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_object_type", } @@ -630,12 +474,8 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go index a8fb95366..cb291dc07 100644 --- a/model_writable_front_port_request.go +++ b/model_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableFrontPortRequest{} // WritableFrontPortRequest Adds support for custom fields and tags. type WritableFrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -44,7 +44,7 @@ type _WritableFrontPortRequest WritableFrontPortRequest // 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 NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { +func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { this := WritableFrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewWritableFrontPortRequestWithDefaults() *WritableFrontPortRequest { } // GetDevice returns the Device field value -func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortRequest) GetModule() ModuleRequest { +func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *WritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *WritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go index 135e41ea9..ddcc416c9 100644 --- a/model_writable_front_port_template_request.go +++ b/model_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{} // WritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableFrontPortTemplateRequest WritableFrontPortTemplateRequest // 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 NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *WritableFrontPortTemplateRequest { +func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *WritableFrontPortTemplateRequest { this := WritableFrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,9 @@ func NewWritableFrontPortTemplateRequestWithDefaults() *WritableFrontPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *WritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateReq } // SetRearPort sets field value -func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go index d734a972d..6fd5f476e 100644 --- a/model_writable_ike_policy_request.go +++ b/model_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go index 1783b8e23..4f4e0d9ed 100644 --- a/model_writable_ike_proposal_request.go +++ b/model_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go index 0cefa53d8..35ee2bee8 100644 --- a/model_writable_interface_request.go +++ b/model_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &WritableInterfaceRequest{} // WritableInterfaceRequest Adds support for custom fields and tags. type WritableInterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type WritableInterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest // 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 NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { +func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { this := WritableInterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest { } // GetDevice returns the Device field value -func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest) { +func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *WritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetModule() ModuleRequest { +func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *WritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *WritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *WritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *WritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *WritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *WritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go index a0d61207c..65857c07e 100644 --- a/model_writable_interface_template_request.go +++ b/model_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{} // WritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewWritableInterfaceTemplateRequestWithDefaults() *WritableInterfaceTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go index 05fae1d60..412988972 100644 --- a/model_writable_ip_address_request.go +++ b/model_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &WritableIPAddressRequest{} // WritableIPAddressRequest Adds support for custom fields and tags. type WritableIPAddressRequest struct { Address string `json:"address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -83,9 +83,9 @@ func (o *WritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetVrf() VRFRequest { +func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -94,7 +94,7 @@ func (o *WritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetTenant() TenantRequest { +func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go index c93135b4c..5345772df 100644 --- a/model_writable_ip_range_request.go +++ b/model_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableIPRangeRequest{} type WritableIPRangeRequest struct { StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -105,9 +105,9 @@ func (o *WritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetVrf() VRFRequest { +func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *WritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *WritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *WritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetTenant() TenantRequest { +func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableIPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetRole() RoleRequest { +func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *WritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *WritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go index d6599e673..bfc816aa8 100644 --- a/model_writable_ip_sec_policy_request.go +++ b/model_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go index 0f60eeb67..eabd409f5 100644 --- a/model_writable_ip_sec_profile_request.go +++ b/model_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableIPSecProfileRequest{} // WritableIPSecProfileRequest Adds support for custom fields and tags. type WritableIPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableIPSecProfileRequest WritableIPSecProfileRequest // 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 NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *WritableIPSecProfileRequest { +func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *WritableIPSecProfileRequest { this := WritableIPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) } // SetIkePolicy sets field value -func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, b } // SetIpsecPolicy sets field value -func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go index f04acc1ab..ab3da503e 100644 --- a/model_writable_ip_sec_proposal_request.go +++ b/model_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go index ab1c91cc2..47b3a478c 100644 --- a/model_writable_journal_entry_request.go +++ b/model_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go index 64af85b8d..f55bd69f0 100644 --- a/model_writable_l2_vpn_request.go +++ b/model_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableL2VPNRequest{} // WritableL2VPNRequest Adds support for custom fields and tags. type WritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type L2VPNTypeValue `json:"type"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type BriefL2VPNTypeValue `json:"type"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableL2VPNRequest WritableL2VPNRequest // 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 NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *WritableL2VPNRequest { +func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue) *WritableL2VPNRequest { this := WritableL2VPNRequest{} this.Name = name this.Slug = slug @@ -148,9 +148,9 @@ func (o *WritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value -func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } @@ -159,7 +159,7 @@ func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil { return nil, false } @@ -167,7 +167,7 @@ func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { } // SetType sets field value -func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue) { +func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = v } @@ -300,9 +300,9 @@ func (o *WritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableL2VPNRequest) GetTenant() TenantRequest { +func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -311,7 +311,7 @@ func (o *WritableL2VPNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -327,8 +327,8 @@ func (o *WritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_location_request.go b/model_writable_location_request.go index 4ee75bbce..a62203794 100644 --- a/model_writable_location_request.go +++ b/model_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &WritableLocationRequest{} // WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type WritableLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site SiteRequest `json:"site"` - Parent NullableInt32 `json:"parent"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSiteRequest `json:"site"` + Parent NullableInt32 `json:"parent"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableLocationRequest WritableLocationRequest // 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 NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32) *WritableLocationRequest { +func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32) *WritableLocationRequest { this := WritableLocationRequest{} this.Name = name this.Slug = slug @@ -106,9 +106,9 @@ func (o *WritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value -func (o *WritableLocationRequest) GetSite() SiteRequest { +func (o *WritableLocationRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -117,7 +117,7 @@ func (o *WritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -125,7 +125,7 @@ func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableLocationRequest) SetSite(v SiteRequest) { +func (o *WritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = v } @@ -156,9 +156,9 @@ func (o *WritableLocationRequest) SetParent(v int32) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -166,7 +166,7 @@ func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStat // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -182,15 +182,15 @@ func (o *WritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableLocationRequest) GetTenant() TenantRequest { +func (o *WritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -199,7 +199,7 @@ func (o *WritableLocationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *WritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_module_request.go b/model_writable_module_request.go index 83271a51e..230253625 100644 --- a/model_writable_module_request.go +++ b/model_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableModuleRequest{} // WritableModuleRequest Adds support for custom fields and tags. type WritableModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay int32 `json:"module_bay"` - ModuleType ModuleTypeRequest `json:"module_type"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device BriefDeviceRequest `json:"device"` + ModuleBay int32 `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableModuleRequest WritableModuleRequest // 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 NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest) *WritableModuleRequest { +func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest) *WritableModuleRequest { this := WritableModuleRequest{} this.Device = device this.ModuleBay = moduleBay @@ -57,9 +57,9 @@ func NewWritableModuleRequestWithDefaults() *WritableModuleRequest { } // GetDevice returns the Device field value -func (o *WritableModuleRequest) GetDevice() DeviceRequest { +func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,7 +76,7 @@ func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableModuleRequest) SetDevice(v DeviceRequest) { +func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -105,9 +105,9 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value -func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } @@ -116,7 +116,7 @@ func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,14 +124,14 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { } // SetModuleType sets field value -func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableModuleRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,8 +155,8 @@ func (o *WritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go index a321613fe..9c89e6398 100644 --- a/model_writable_module_type_request.go +++ b/model_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &WritableModuleTypeRequest{} // WritableModuleTypeRequest Adds support for custom fields and tags. type WritableModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +40,7 @@ type _WritableModuleTypeRequest WritableModuleTypeRequest // 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 NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string) *WritableModuleTypeRequest { +func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *WritableModuleTypeRequest { this := WritableModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -55,9 +56,9 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -66,7 +67,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -74,7 +75,7 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } @@ -134,6 +135,38 @@ func (o *WritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableModuleTypeRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. +func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { + o.Airflow = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -178,9 +211,9 @@ func (o *WritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -188,7 +221,7 @@ func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeReq // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -204,8 +237,8 @@ func (o *WritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -352,6 +385,9 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -417,6 +453,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go index 3a6fcef64..004f7fec3 100644 --- a/model_writable_power_feed_request.go +++ b/model_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerFeedRequest{} // WritablePowerFeedRequest Adds support for custom fields and tags. type WritablePowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type WritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _WritablePowerFeedRequest WritablePowerFeedRequest // 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 NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string) *WritablePowerFeedRequest { +func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *WritablePowerFeedRequest { this := WritablePowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewWritablePowerFeedRequestWithDefaults() *WritablePowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) } // SetPowerPanel sets field value -func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetRack() RackRequest { +func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *WritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *WritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *WritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go index 024131d9b..fec01de84 100644 --- a/model_writable_power_outlet_request.go +++ b/model_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritablePowerOutletRequest{} // WritablePowerOutletRequest Adds support for custom fields and tags. type WritablePowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _WritablePowerOutletRequest WritablePowerOutletRequest // 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 NewWritablePowerOutletRequest(device DeviceRequest, name string) *WritablePowerOutletRequest { +func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string) *WritablePowerOutletRequest { this := WritablePowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest { } // GetDevice returns the Device field value -func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *WritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -213,9 +213,9 @@ func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequest } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -224,7 +224,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -240,8 +240,8 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go index d74116d27..b2f94c639 100644 --- a/model_writable_power_outlet_template_request.go +++ b/model_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{} // WritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -54,9 +54,9 @@ func NewWritablePowerOutletTemplateRequestWithDefaults() *WritablePowerOutletTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -228,9 +228,9 @@ func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutle } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -239,7 +239,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateReq // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -255,8 +255,8 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go index 1634269d8..446abcb34 100644 --- a/model_writable_power_port_request.go +++ b/model_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritablePowerPortRequest{} // WritablePowerPortRequest Adds support for custom fields and tags. type WritablePowerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -44,7 +44,7 @@ type _WritablePowerPortRequest WritablePowerPortRequest // 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 NewWritablePowerPortRequest(device DeviceRequest, name string) *WritablePowerPortRequest { +func NewWritablePowerPortRequest(device BriefDeviceRequest, name string) *WritablePowerPortRequest { this := WritablePowerPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritablePowerPortRequestWithDefaults() *WritablePowerPortRequest { } // GetDevice returns the Device field value -func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortRequest) GetModule() ModuleRequest { +func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go index 0f35c5336..073b958dd 100644 --- a/model_writable_power_port_template_request.go +++ b/model_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{} // WritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -56,9 +56,9 @@ func NewWritablePowerPortTemplateRequestWithDefaults() *WritablePowerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go index 2b7bd6bba..11445a0aa 100644 --- a/model_writable_prefix_request.go +++ b/model_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritablePrefixRequest{} // WritablePrefixRequest Adds support for custom fields and tags. type WritablePrefixRequest struct { Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *WritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetSite() SiteRequest { +func (o *WritablePrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *WritablePrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritablePrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVrf() VRFRequest { +func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *WritablePrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritablePrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *WritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetTenant() TenantRequest { +func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *WritablePrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *WritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *WritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVlan() VLANRequest { +func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *WritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *WritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetRole() RoleRequest { +func (o *WritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *WritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *WritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go index fd0dcb924..f8f7996e4 100644 --- a/model_writable_rack_request.go +++ b/model_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,24 +22,25 @@ var _ MappedNullable = &WritableRackRequest{} type WritableRackRequest struct { Name string `json:"name"` FacilityId NullableString `json:"facility_id,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -48,11 +49,12 @@ type WritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -62,7 +64,7 @@ type _WritableRackRequest WritableRackRequest // 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 NewWritableRackRequest(name string, site SiteRequest) *WritableRackRequest { +func NewWritableRackRequest(name string, site BriefSiteRequest) *WritableRackRequest { this := WritableRackRequest{} this.Name = name this.Site = site @@ -145,9 +147,9 @@ func (o *WritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value -func (o *WritableRackRequest) GetSite() SiteRequest { +func (o *WritableRackRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -156,7 +158,7 @@ func (o *WritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -164,14 +166,14 @@ func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableRackRequest) SetSite(v SiteRequest) { +func (o *WritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetLocation() LocationRequest { +func (o *WritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -180,7 +182,7 @@ func (o *WritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -212,9 +214,9 @@ func (o *WritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetTenant() TenantRequest { +func (o *WritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -223,7 +225,7 @@ func (o *WritableRackRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -239,8 +241,8 @@ func (o *WritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -287,9 +289,9 @@ func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetRole() RackRoleRequest { +func (o *WritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -298,7 +300,7 @@ func (o *WritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +316,8 @@ func (o *WritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *WritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } @@ -404,36 +406,79 @@ func (o *WritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *WritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *WritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *WritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { return nil, false } - return o.Type, true + return o.FormFactor, true } -// HasType returns a boolean if a field has been set. -func (o *WritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *WritableRackRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -619,9 +664,9 @@ func (o *WritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -629,7 +674,7 @@ func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWe // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -645,8 +690,8 @@ func (o *WritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -843,6 +888,38 @@ func (o *WritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableRackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1004,8 +1081,11 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1040,6 +1120,9 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1105,7 +1188,8 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1117,6 +1201,7 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_writable_rack_type_request.go b/model_writable_rack_type_request.go new file mode 100644 index 000000000..6f76991fb --- /dev/null +++ b/model_writable_rack_type_request.go @@ -0,0 +1,867 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.1 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// checks if the WritableRackTypeRequest type satisfies the MappedNullable interface at compile time +var _ MappedNullable = &WritableRackTypeRequest{} + +// WritableRackTypeRequest Adds support for custom fields and tags. +type WritableRackTypeRequest struct { + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + AdditionalProperties map[string]interface{} +} + +type _WritableRackTypeRequest WritableRackTypeRequest + +// NewWritableRackTypeRequest instantiates a new WritableRackTypeRequest object +// This constructor will assign default values to properties that have it defined, +// and makes sure properties required by API are set, but the set of arguments +// will change when the set of required properties is changed +func NewWritableRackTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, formFactor PatchedWritableRackTypeRequestFormFactor) *WritableRackTypeRequest { + this := WritableRackTypeRequest{} + this.Manufacturer = manufacturer + this.Model = model + this.Slug = slug + this.FormFactor = formFactor + return &this +} + +// NewWritableRackTypeRequestWithDefaults instantiates a new WritableRackTypeRequest object +// This constructor will only assign default values to properties that have it defined, +// but it doesn't guarantee that properties required by API are set +func NewWritableRackTypeRequestWithDefaults() *WritableRackTypeRequest { + this := WritableRackTypeRequest{} + return &this +} + +// GetManufacturer returns the Manufacturer field value +func (o *WritableRackTypeRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil { + var ret BriefManufacturerRequest + return ret + } + + return o.Manufacturer +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return &o.Manufacturer, true +} + +// SetManufacturer sets field value +func (o *WritableRackTypeRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer = v +} + +// GetModel returns the Model field value +func (o *WritableRackTypeRequest) GetModel() string { + if o == nil { + var ret string + return ret + } + + return o.Model +} + +// GetModelOk returns a tuple with the Model field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetModelOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Model, true +} + +// SetModel sets field value +func (o *WritableRackTypeRequest) SetModel(v string) { + o.Model = v +} + +// GetSlug returns the Slug field value +func (o *WritableRackTypeRequest) GetSlug() string { + if o == nil { + var ret string + return ret + } + + return o.Slug +} + +// GetSlugOk returns a tuple with the Slug field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetSlugOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Slug, true +} + +// SetSlug sets field value +func (o *WritableRackTypeRequest) SetSlug(v string) { + o.Slug = v +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *WritableRackTypeRequest) SetDescription(v string) { + o.Description = &v +} + +// GetFormFactor returns the FormFactor field value +func (o *WritableRackTypeRequest) GetFormFactor() PatchedWritableRackTypeRequestFormFactor { + if o == nil { + var ret PatchedWritableRackTypeRequestFormFactor + return ret + } + + return o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetFormFactorOk() (*PatchedWritableRackTypeRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return &o.FormFactor, true +} + +// SetFormFactor sets field value +func (o *WritableRackTypeRequest) SetFormFactor(v PatchedWritableRackTypeRequestFormFactor) { + o.FormFactor = v +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetWidth() PatchedWritableRackRequestWidth { + if o == nil || IsNil(o.Width) { + var ret PatchedWritableRackRequestWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetWidthOk() (*PatchedWritableRackRequestWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given PatchedWritableRackRequestWidth and assigns it to the Width field. +func (o *WritableRackTypeRequest) SetWidth(v PatchedWritableRackRequestWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *WritableRackTypeRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *WritableRackTypeRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *WritableRackTypeRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *WritableRackTypeRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *WritableRackTypeRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *WritableRackTypeRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetOuterUnit() PatchedWritableRackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit) { + var ret PatchedWritableRackRequestOuterUnit + return ret + } + return *o.OuterUnit +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetOuterUnitOk() (*PatchedWritableRackRequestOuterUnit, bool) { + if o == nil || IsNil(o.OuterUnit) { + return nil, false + } + return o.OuterUnit, true +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasOuterUnit() bool { + if o != nil && !IsNil(o.OuterUnit) { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given PatchedWritableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *WritableRackTypeRequest) SetOuterUnit(v PatchedWritableRackRequestOuterUnit) { + o.OuterUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *WritableRackTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *WritableRackTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *WritableRackTypeRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *WritableRackTypeRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { + if o == nil || IsNil(o.WeightUnit) { + var ret DeviceTypeWeightUnitValue + return ret + } + return *o.WeightUnit +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { + if o == nil || IsNil(o.WeightUnit) { + return nil, false + } + return o.WeightUnit, true +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasWeightUnit() bool { + if o != nil && !IsNil(o.WeightUnit) { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableRackTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { + o.WeightUnit = &v +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackTypeRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackTypeRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *WritableRackTypeRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *WritableRackTypeRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *WritableRackTypeRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableRackTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *WritableRackTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WritableRackTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *WritableRackTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *WritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +func (o WritableRackTypeRequest) MarshalJSON() ([]byte, error) { + toSerialize,err := o.ToMap() + if err != nil { + return []byte{}, err + } + return json.Marshal(toSerialize) +} + +func (o WritableRackTypeRequest) ToMap() (map[string]interface{}, error) { + toSerialize := map[string]interface{}{} + toSerialize["manufacturer"] = o.Manufacturer + toSerialize["model"] = o.Model + toSerialize["slug"] = o.Slug + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + toSerialize["form_factor"] = o.FormFactor + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if !IsNil(o.OuterUnit) { + toSerialize["outer_unit"] = o.OuterUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if !IsNil(o.WeightUnit) { + toSerialize["weight_unit"] = o.WeightUnit + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + + for key, value := range o.AdditionalProperties { + toSerialize[key] = value + } + + return toSerialize, nil +} + +func (o *WritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { + // This validates that all required properties are included in the JSON object + // by unmarshalling the object into a generic map with string keys and checking + // that every required field exists as a key in the generic map. + requiredProperties := []string{ + "manufacturer", + "model", + "slug", + "form_factor", + } + + allProperties := make(map[string]interface{}) + + err = json.Unmarshal(data, &allProperties) + + if err != nil { + return err; + } + + for _, requiredProperty := range(requiredProperties) { + if _, exists := allProperties[requiredProperty]; !exists { + return fmt.Errorf("no value given for required property %v", requiredProperty) + } + } + + varWritableRackTypeRequest := _WritableRackTypeRequest{} + + err = json.Unmarshal(data, &varWritableRackTypeRequest) + + if err != nil { + return err + } + + *o = WritableRackTypeRequest(varWritableRackTypeRequest) + + additionalProperties := make(map[string]interface{}) + + if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "model") + delete(additionalProperties, "slug") + delete(additionalProperties, "description") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + o.AdditionalProperties = additionalProperties + } + + return err +} + +type NullableWritableRackTypeRequest struct { + value *WritableRackTypeRequest + isSet bool +} + +func (v NullableWritableRackTypeRequest) Get() *WritableRackTypeRequest { + return v.value +} + +func (v *NullableWritableRackTypeRequest) Set(val *WritableRackTypeRequest) { + v.value = val + v.isSet = true +} + +func (v NullableWritableRackTypeRequest) IsSet() bool { + return v.isSet +} + +func (v *NullableWritableRackTypeRequest) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWritableRackTypeRequest(val *WritableRackTypeRequest) *NullableWritableRackTypeRequest { + return &NullableWritableRackTypeRequest{value: val, isSet: true} +} + +func (v NullableWritableRackTypeRequest) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWritableRackTypeRequest) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + + diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go index 0bd5f8acb..d7db1446a 100644 --- a/model_writable_rear_port_request.go +++ b/model_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableRearPortRequest{} // WritableRearPortRequest Adds support for custom fields and tags. type WritableRearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _WritableRearPortRequest WritableRearPortRequest // 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 NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { +func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { this := WritableRearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritableRearPortRequestWithDefaults() *WritableRearPortRequest { } // GetDevice returns the Device field value -func (o *WritableRearPortRequest) GetDevice() DeviceRequest { +func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableRearPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortRequest) GetModule() ModuleRequest { +func (o *WritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go index 68e2467e9..e19a55ebd 100644 --- a/model_writable_rear_port_template_request.go +++ b/model_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{} // WritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -55,9 +55,9 @@ func NewWritableRearPortTemplateRequestWithDefaults() *WritableRearPortTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -98,9 +98,9 @@ func (o *WritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -109,7 +109,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_region_request.go b/model_writable_region_request.go index 10e3c56c2..2cb7a901b 100644 --- a/model_writable_region_request.go +++ b/model_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_service_request.go b/model_writable_service_request.go index a3150a128..83a66a2da 100644 --- a/model_writable_service_request.go +++ b/model_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableServiceRequest{} // WritableServiceRequest Adds support for custom fields and tags. type WritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` Ports []int32 `json:"ports"` @@ -56,9 +56,9 @@ func NewWritableServiceRequestWithDefaults() *WritableServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetDevice() DeviceRequest { +func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -67,7 +67,7 @@ func (o *WritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -110,7 +110,7 @@ func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go index c7008f3ed..75229dffb 100644 --- a/model_writable_service_template_request.go +++ b/model_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go index b0c4346c1..ca6538ca9 100644 --- a/model_writable_site_group_request.go +++ b/model_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_request.go b/model_writable_site_request.go index 2fcc03600..897915d18 100644 --- a/model_writable_site_request.go +++ b/model_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritableSiteRequest{} // WritableSiteRequest Adds support for custom fields and tags. type WritableSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -116,9 +116,9 @@ func (o *WritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -126,7 +126,7 @@ func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -142,15 +142,15 @@ func (o *WritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetRegion() RegionRequest { +func (o *WritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -159,7 +159,7 @@ func (o *WritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *WritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -202,7 +202,7 @@ func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetTenant() TenantRequest { +func (o *WritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go index a8b1c1775..fe928af5a 100644 --- a/model_writable_tenant_group_request.go +++ b/model_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go index 057faf1f7..c67ec7182 100644 --- a/model_writable_tunnel_request.go +++ b/model_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableTunnelRequest{} type WritableTunnelRequest struct { Name string `json:"name"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` TunnelId NullableInt64 `json:"tunnel_id,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } @@ -179,9 +179,9 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -190,7 +190,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -222,9 +222,9 @@ func (o *WritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetTenant() TenantRequest { +func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -249,8 +249,8 @@ func (o *WritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go index ec11b7d2b..e329fb56d 100644 --- a/model_writable_tunnel_termination_request.go +++ b/model_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{} // WritableTunnelTerminationRequest Adds support for custom fields and tags. type WritableTunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` + Tunnel BriefTunnelRequest `json:"tunnel"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,7 +36,7 @@ type _WritableTunnelTerminationRequest WritableTunnelTerminationRequest // 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 NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { +func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { this := WritableTunnelTerminationRequest{} this.Tunnel = tunnel this.TerminationType = terminationType @@ -53,9 +53,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio } // GetTunnel returns the Tunnel field value -func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -64,7 +64,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) } // SetTunnel sets field value -func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } @@ -159,9 +159,9 @@ func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -170,7 +170,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -186,8 +186,8 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go index 76b1664be..e5263bcde 100644 --- a/model_writable_virtual_chassis_request.go +++ b/model_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go index 9c16e0e71..09e979b9b 100644 --- a/model_writable_virtual_device_context_request.go +++ b/model_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{} // WritableVirtualDeviceContextRequest Adds support for custom fields and tags. type WritableVirtualDeviceContextRequest struct { Name string `json:"name"` - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,7 +40,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest // 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 NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { +func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { this := WritableVirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, boo } // SetDevice sets field value -func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -148,9 +148,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_writable_virtual_machine_with_config_context_request.go b/model_writable_virtual_machine_with_config_context_request.go index a24bbacab..a87525a3f 100644 --- a/model_writable_virtual_machine_with_config_context_request.go +++ b/model_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,23 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{} // WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type WritableVirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -88,9 +89,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -98,7 +99,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWrit // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +115,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +132,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,8 +148,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -163,9 +164,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterReq // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,8 +191,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -206,9 +207,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +218,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceReque // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,8 +234,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -248,10 +249,42 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +293,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleReq // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,8 +309,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -292,9 +325,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +336,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantReque // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,8 +352,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -335,9 +368,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +379,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformR // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,8 +395,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -378,9 +411,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +422,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddre // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,8 +438,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -421,9 +454,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +465,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddre // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,8 +481,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -657,9 +690,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +701,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() Con // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,8 +717,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -819,6 +852,9 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -909,6 +945,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go index 047e6f389..167faab20 100644 --- a/model_writable_vlan_request.go +++ b/model_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableVLANRequest{} // WritableVLANRequest Adds support for custom fields and tags. type WritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid int32 `json:"vid"` Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -57,9 +57,9 @@ func NewWritableVLANRequestWithDefaults() *WritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetSite() SiteRequest { +func (o *WritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -68,7 +68,7 @@ func (o *WritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *WritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -100,9 +100,9 @@ func (o *WritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -111,7 +111,7 @@ func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *WritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetTenant() TenantRequest { +func (o *WritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *WritableVLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -266,9 +266,9 @@ func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetRole() RoleRequest { +func (o *WritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -277,7 +277,7 @@ func (o *WritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -293,8 +293,8 @@ func (o *WritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go index 3c0acb800..cc88a8eba 100644 --- a/model_writable_vm_interface_request.go +++ b/model_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &WritableVMInterfaceRequest{} // WritableVMInterfaceRequest Adds support for custom fields and tags. type WritableVMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type WritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _WritableVMInterfaceRequest WritableVMInterfaceRequest // 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 NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *WritableVMInterfaceRequest { +func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *WritableVMInterfaceRequest { this := WritableVMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineReque } // SetVirtualMachine sets field value -func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMo } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go index e64cce0c9..f1bc7bb63 100644 --- a/model_writable_wireless_lan_group_request.go +++ b/model_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go index 098a33b0b..a0d82d6d1 100644 --- a/model_writable_wireless_lan_request.go +++ b/model_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableWirelessLANRequest{} type WritableWirelessLANRequest struct { Ssid string `json:"ssid"` Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` AuthType *AuthenticationType1 `json:"auth_type,omitempty"` AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANReque } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go index 84ae70e23..6e8a0b55e 100644 --- a/model_writable_wireless_link_request.go +++ b/model_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WritableWirelessLinkRequest{} // WritableWirelessLinkRequest Adds support for custom fields and tags. type WritableWirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +43,7 @@ type _WritableWirelessLinkRequest WritableWirelessLinkRequest // 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 NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WritableWirelessLinkRequest { +func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WritableWirelessLinkRequest { this := WritableWirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,14 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool } // SetInterfaceA sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +94,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +102,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool } // SetInterfaceB sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } @@ -137,9 +139,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +149,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +165,15 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +182,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -307,6 +309,81 @@ func (o *WritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. +func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.DistanceUnit) { + return nil, false + } + return o.DistanceUnit, true +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && !IsNil(o.DistanceUnit) { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.DistanceUnit = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -465,6 +542,12 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if !IsNil(o.DistanceUnit) { + toSerialize["distance_unit"] = o.DistanceUnit + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -529,6 +612,8 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/response.go b/response.go index d10be0f11..41c41c650 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/scripts/fetch-spec.sh b/scripts/fetch-spec.sh index 2c5ac842d..8e84e1352 100755 --- a/scripts/fetch-spec.sh +++ b/scripts/fetch-spec.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail - +set -x NETBOX_VERSION="$1" NETBOX_DOCKER_VERSION="$2" diff --git a/utils.go b/utils.go index 31b2f6c2e..9381f6094 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.1 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. From 52e0562c14758634e76ba861cdddbe40e1608f62 Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Tue, 8 Oct 2024 16:58:31 +0530 Subject: [PATCH 06/16] 4.0.3 --- .openapi-generator/FILES | 556 +- api/netbox_docker_version | 2 +- api/netbox_version | 2 +- api/openapi.yaml | 92780 +++++++--------- api_circuits.go | 4097 +- api_core.go | 1154 +- api_dcim.go | 7020 +- api_extras.go | 7487 +- api_ipam.go | 575 +- api_schema.go | 2 +- api_status.go | 2 +- api_tenancy.go | 120 +- api_users.go | 312 +- api_virtualization.go | 331 +- api_vpn.go | 178 +- api_wireless.go | 205 +- client.go | 4 +- configuration.go | 4 +- docs/ASN.md | 39 +- docs/ASNRange.md | 39 +- docs/ASNRangeRequest.md | 18 +- docs/ASNRequest.md | 16 +- docs/Aggregate.md | 39 +- docs/AggregateRequest.md | 18 +- docs/AvailableIP.md | 10 +- docs/AvailablePrefix.md | 10 +- docs/AvailableVLAN.md | 10 +- docs/Bookmark.md | 10 +- docs/BookmarkRequest.md | 10 +- docs/Cable.md | 401 +- docs/CableRequest.md | 316 - docs/Circuit.md | 499 +- docs/CircuitRequest.md | 354 +- docs/CircuitTermination.md | 67 +- docs/CircuitTerminationRequest.md | 26 +- docs/CircuitType.md | 23 +- docs/CircuitsAPI.md | 1602 +- docs/Cluster.md | 344 +- docs/ClusterGroup.md | 23 +- docs/ClusterRequest.md | 235 +- docs/ClusterType.md | 23 +- docs/ConfigContext.md | 39 +- docs/ConfigContextRequest.md | 8 +- docs/ConfigTemplate.md | 272 +- docs/ConfigTemplateRequest.md | 111 +- docs/ConsolePort.md | 81 +- docs/ConsolePortRequest.md | 18 +- docs/ConsolePortTemplate.md | 16 +- docs/ConsolePortTemplateRequest.md | 16 +- docs/ConsoleServerPort.md | 81 +- docs/ConsoleServerPortRequest.md | 18 +- docs/ConsoleServerPortTemplate.md | 16 +- docs/ConsoleServerPortTemplateRequest.md | 16 +- docs/Contact.md | 329 +- docs/ContactAssignment.md | 26 +- docs/ContactAssignmentRequest.md | 26 +- docs/ContactGroup.md | 23 +- docs/ContactRequest.md | 244 - docs/ContactRole.md | 137 +- docs/ContactRoleRequest.md | 52 - docs/CoreAPI.md | 267 +- docs/CustomField.md | 95 +- docs/CustomFieldChoiceSet.md | 23 +- docs/CustomFieldRequest.md | 72 +- docs/CustomLink.md | 23 +- docs/CustomLinkButtonClass.md | 2 +- docs/DataFile.md | 31 +- docs/DataSource.md | 340 +- docs/DataSourceRequest.md | 62 +- docs/DcimAPI.md | 2778 +- docs/Device.md | 138 +- docs/DeviceBay.md | 39 +- docs/DeviceBayRequest.md | 18 +- docs/DeviceBayTemplate.md | 10 +- docs/DeviceBayTemplateRequest.md | 10 +- docs/DeviceRole.md | 225 +- docs/DeviceRoleRequest.md | 8 +- docs/DeviceType.md | 737 +- docs/DeviceTypeRequest.md | 424 +- docs/DeviceWithConfigContext.md | 135 +- docs/DeviceWithConfigContextRequest.md | 106 +- docs/EventRule.md | 174 +- docs/EventRuleActionTypeLabel.md | 2 - docs/EventRuleActionTypeValue.md | 2 - docs/EventRuleRequest.md | 153 +- docs/ExportTemplate.md | 39 +- docs/ExportTemplateRequest.md | 8 +- docs/ExtrasAPI.md | 2846 +- ...trasCustomLinksListButtonClassParameter.md | 4 +- docs/FHRPGroup.md | 270 +- docs/FHRPGroupAssignment.md | 10 +- docs/FHRPGroupAssignmentRequest.md | 10 +- docs/FHRPGroupRequest.md | 166 +- docs/FrontPort.md | 59 +- docs/FrontPortRearPort.md | 23 +- docs/FrontPortRequest.md | 18 +- docs/FrontPortTemplate.md | 26 +- docs/FrontPortTemplateRequest.md | 26 +- docs/FrontPortTypeLabel.md | 16 - docs/FrontPortTypeValue.md | 16 - docs/Group.md | 23 +- docs/IKEPolicy.md | 30 +- docs/IKEPolicyRequest.md | 9 +- docs/IKEProposal.md | 30 +- docs/IKEProposalRequest.md | 9 +- docs/IPAddress.md | 473 +- docs/IPAddressRequest.md | 336 - docs/IPRange.md | 47 +- docs/IPRangeRequest.md | 24 +- docs/IPSecPolicy.md | 23 +- docs/IPSecProfile.md | 39 +- docs/IPSecProfileRequest.md | 18 +- docs/IPSecProposal.md | 23 +- docs/ImageAttachment.md | 4 +- docs/ImageAttachmentRequest.md | 44 +- docs/Interface.md | 105 +- docs/InterfaceRequest.md | 34 +- docs/InterfaceTemplate.md | 16 +- docs/InterfaceTemplateRequest.md | 16 +- docs/InterfaceTypeLabel.md | 4 - docs/InterfaceTypeValue.md | 4 - docs/InventoryItem.md | 47 +- docs/InventoryItemRequest.md | 26 +- docs/InventoryItemRole.md | 23 +- docs/InventoryItemTemplate.md | 26 +- docs/InventoryItemTemplateRequest.md | 26 +- docs/IpamAPI.md | 298 +- docs/Job.md | 39 +- docs/JournalEntry.md | 23 +- docs/L2VPN.md | 259 +- docs/L2VPNRequest.md | 174 +- docs/L2VPNTermination.md | 218 +- docs/L2VPNTerminationRequest.md | 104 +- docs/Location.md | 308 +- docs/LocationRequest.md | 199 +- docs/Manufacturer.md | 179 +- docs/ManufacturerRequest.md | 52 - docs/Module.md | 306 +- docs/ModuleBay.md | 75 +- docs/ModuleBayRequest.md | 54 +- docs/ModuleBayTemplate.md | 61 +- docs/ModuleBayTemplateRequest.md | 61 +- docs/ModuleRequest.md | 223 +- docs/ModuleType.md | 305 +- docs/ModuleTypeRequest.md | 222 +- docs/NestedContactGroup.md | 23 +- docs/NestedDevice.md | 23 +- docs/NestedGroup.md | 23 +- docs/NestedInterface.md | 23 +- docs/NestedModuleBay.md | 55 +- docs/NestedModuleBayRequest.md | 36 + docs/NestedRegion.md | 23 +- docs/NestedSiteGroup.md | 23 +- docs/NestedTag.md | 23 +- docs/NestedTenantGroup.md | 23 +- docs/NestedUser.md | 23 +- docs/NestedVMInterface.md | 23 +- docs/NestedVirtualMachine.md | 23 +- docs/NestedWirelessLink.md | 23 +- docs/ObjectChange.md | 31 +- docs/ObjectPermission.md | 23 +- docs/PatchedASNRangeRequest.md | 16 +- docs/PatchedASNRequest.md | 16 +- docs/PatchedBookmarkRequest.md | 8 +- docs/PatchedCircuitTerminationRequest.md | 24 +- docs/PatchedConfigContextRequest.md | 8 +- docs/PatchedConfigTemplateRequest.md | 8 +- docs/PatchedContactRequest.md | 8 +- docs/PatchedDeviceBayRequest.md | 16 +- docs/PatchedDeviceBayTemplateRequest.md | 8 +- docs/PatchedDeviceRoleRequest.md | 8 +- docs/PatchedExportTemplateRequest.md | 8 +- docs/PatchedFHRPGroupAssignmentRequest.md | 8 +- docs/PatchedFHRPGroupRequest.md | 8 +- docs/PatchedImageAttachmentRequest.md | 52 + docs/PatchedInventoryItemRequest.md | 24 +- docs/PatchedInventoryItemTemplateRequest.md | 24 +- docs/PatchedL2VPNTerminationRequest.md | 8 +- docs/PatchedModuleBayRequest.md | 52 +- docs/PatchedModuleBayTemplateRequest.md | 54 +- docs/PatchedPlatformRequest.md | 16 +- docs/PatchedPowerPanelRequest.md | 16 +- docs/PatchedProviderAccountRequest.md | 8 +- docs/PatchedProviderNetworkRequest.md | 8 +- docs/PatchedRackReservationRequest.md | 24 +- docs/PatchedRouteTargetRequest.md | 8 +- docs/PatchedTenantRequest.md | 8 +- docs/PatchedTokenRequest.md | 8 +- docs/PatchedVLANGroupRequest.md | 52 + docs/PatchedVRFRequest.md | 8 +- docs/PatchedVirtualDiskRequest.md | 8 +- docs/PatchedWritableAggregateRequest.md | 16 +- docs/PatchedWritableCableRequest.md | 32 +- docs/PatchedWritableCircuitRequest.md | 66 +- docs/PatchedWritableClusterRequest.md | 40 +- docs/PatchedWritableConsolePortRequest.md | 16 +- ...tchedWritableConsolePortTemplateRequest.md | 16 +- ...PatchedWritableConsoleServerPortRequest.md | 16 +- ...ritableConsoleServerPortTemplateRequest.md | 16 +- ...PatchedWritableContactAssignmentRequest.md | 24 +- docs/PatchedWritableCustomFieldRequest.md | 72 +- docs/PatchedWritableDataSourceRequest.md | 52 +- docs/PatchedWritableDeviceTypeRequest.md | 24 +- ...dWritableDeviceWithConfigContextRequest.md | 104 +- docs/PatchedWritableEventRuleRequest.md | 154 +- docs/PatchedWritableFrontPortRequest.md | 16 +- ...PatchedWritableFrontPortTemplateRequest.md | 24 +- docs/PatchedWritableIPAddressRequest.md | 16 +- docs/PatchedWritableIPRangeRequest.md | 24 +- docs/PatchedWritableIPSecProfileRequest.md | 16 +- docs/PatchedWritableInterfaceRequest.md | 32 +- ...PatchedWritableInterfaceTemplateRequest.md | 16 +- docs/PatchedWritableL2VPNRequest.md | 16 +- docs/PatchedWritableLocationRequest.md | 24 +- docs/PatchedWritableModuleRequest.md | 24 +- docs/PatchedWritableModuleTypeRequest.md | 42 +- docs/PatchedWritablePowerFeedRequest.md | 24 +- docs/PatchedWritablePowerOutletRequest.md | 24 +- docs/PatchedWritablePowerOutletRequestType.md | 2 - ...tchedWritablePowerOutletTemplateRequest.md | 24 +- ...dWritablePowerOutletTemplateRequestType.md | 2 - docs/PatchedWritablePowerPortRequest.md | 16 +- docs/PatchedWritablePowerPortRequestType.md | 2 - ...PatchedWritablePowerPortTemplateRequest.md | 16 +- ...hedWritablePowerPortTemplateRequestType.md | 2 - docs/PatchedWritablePrefixRequest.md | 40 +- docs/PatchedWritableRackRequest.md | 128 +- docs/PatchedWritableRearPortRequest.md | 16 +- .../PatchedWritableRearPortTemplateRequest.md | 16 +- docs/PatchedWritableServiceRequest.md | 16 +- docs/PatchedWritableSiteRequest.md | 32 +- docs/PatchedWritableTunnelRequest.md | 24 +- ...PatchedWritableTunnelTerminationRequest.md | 16 +- docs/PatchedWritableVLANRequest.md | 32 +- docs/PatchedWritableVMInterfaceRequest.md | 24 +- ...chedWritableVirtualDeviceContextRequest.md | 32 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/PatchedWritableWirelessLANRequest.md | 24 +- docs/PatchedWritableWirelessLinkRequest.md | 94 +- docs/Platform.md | 209 +- docs/PlatformRequest.md | 124 - docs/PowerFeed.md | 89 +- docs/PowerFeedRequest.md | 26 +- docs/PowerOutlet.md | 89 +- docs/PowerOutletRequest.md | 26 +- docs/PowerOutletRequestType.md | 2 - docs/PowerOutletTemplate.md | 24 +- docs/PowerOutletTemplateRequest.md | 24 +- docs/PowerOutletTypeLabel.md | 2 - docs/PowerPanel.md | 220 +- docs/PowerPanelRequest.md | 137 +- docs/PowerPort.md | 505 +- docs/PowerPortRequest.md | 258 +- docs/PowerPortTemplate.md | 270 +- docs/PowerPortTemplateRequest.md | 206 - docs/Prefix.md | 63 +- docs/PrefixRequest.md | 40 +- docs/Provider.md | 215 +- docs/ProviderAccount.md | 31 +- docs/ProviderAccountRequest.md | 101 +- docs/ProviderNetwork.md | 210 +- docs/ProviderNetworkRequest.md | 127 +- docs/ProviderRequest.md | 130 - docs/RIR.md | 163 +- docs/RIRRequest.md | 78 - docs/Rack.md | 891 +- docs/RackRequest.md | 787 +- docs/RackReservation.md | 47 +- docs/RackReservationRequest.md | 26 +- docs/RackRole.md | 23 +- docs/RackUnit.md | 10 +- docs/RearPort.md | 59 +- docs/RearPortRequest.md | 18 +- docs/RearPortTemplate.md | 235 +- docs/RearPortTemplateRequest.md | 173 +- docs/Region.md | 23 +- docs/Role.md | 163 +- docs/RoleRequest.md | 78 - docs/RouteTarget.md | 31 +- docs/RouteTargetRequest.md | 8 +- docs/SavedFilter.md | 23 +- docs/SchemaAPI.md | 2 +- docs/SchemaRetrieveLangParameter.md | 10 - docs/Script.md | 43 +- docs/Service.md | 39 +- docs/ServiceRequest.md | 16 +- docs/ServiceTemplate.md | 23 +- docs/Site.md | 650 +- docs/SiteGroup.md | 23 +- docs/SiteRequest.md | 424 - docs/Tag.md | 23 +- docs/TenancyAPI.md | 106 +- docs/Tenant.md | 424 +- docs/TenantGroup.md | 23 +- docs/TenantRequest.md | 114 - docs/Token.md | 31 +- docs/TokenProvision.md | 31 +- docs/TokenRequest.md | 10 +- docs/Tunnel.md | 370 +- docs/TunnelGroup.md | 23 +- docs/TunnelRequest.md | 266 +- docs/TunnelTermination.md | 39 +- docs/TunnelTerminationRequest.md | 18 +- docs/User.md | 267 +- docs/UserRequest.md | 267 +- docs/UsersAPI.md | 36 +- docs/VLAN.md | 390 +- docs/VLANGroup.md | 75 +- docs/VLANGroupRequest.md | 52 + docs/VLANRequest.md | 248 - docs/VMInterface.md | 55 +- docs/VMInterfaceRequest.md | 26 +- docs/VRF.md | 298 +- docs/VRFRequest.md | 192 - docs/VirtualChassis.md | 210 +- docs/VirtualChassisRequest.md | 104 - docs/VirtualDeviceContext.md | 63 +- docs/VirtualDeviceContextRequest.md | 34 +- docs/VirtualDisk.md | 31 +- docs/VirtualDiskRequest.md | 10 +- docs/VirtualMachineWithConfigContext.md | 137 +- .../VirtualMachineWithConfigContextRequest.md | 106 +- docs/VirtualizationAPI.md | 176 +- docs/VpnAPI.md | 108 +- docs/Webhook.md | 23 +- docs/WirelessAPI.md | 96 +- docs/WirelessLAN.md | 47 +- docs/WirelessLANGroup.md | 173 +- docs/WirelessLANRequest.md | 24 +- docs/WirelessLink.md | 127 +- docs/WirelessLinkRequest.md | 106 +- docs/WritableAggregateRequest.md | 18 +- docs/WritableCableRequest.md | 32 +- docs/WritableCircuitRequest.md | 68 +- docs/WritableClusterRequest.md | 42 +- docs/WritableConsolePortRequest.md | 18 +- docs/WritableConsolePortTemplateRequest.md | 16 +- docs/WritableConsoleServerPortRequest.md | 18 +- ...ritableConsoleServerPortTemplateRequest.md | 16 +- docs/WritableContactAssignmentRequest.md | 26 +- docs/WritableCustomFieldRequest.md | 72 +- docs/WritableDataSourceRequest.md | 52 +- docs/WritableDeviceTypeRequest.md | 26 +- .../WritableDeviceWithConfigContextRequest.md | 106 +- docs/WritableEventRuleRequest.md | 153 +- docs/WritableFrontPortRequest.md | 18 +- docs/WritableFrontPortTemplateRequest.md | 26 +- docs/WritableIPAddressRequest.md | 16 +- docs/WritableIPRangeRequest.md | 24 +- docs/WritableIPSecProfileRequest.md | 18 +- docs/WritableInterfaceRequest.md | 34 +- docs/WritableInterfaceTemplateRequest.md | 16 +- docs/WritableL2VPNRequest.md | 18 +- docs/WritableLocationRequest.md | 26 +- docs/WritableModuleRequest.md | 26 +- docs/WritableModuleTypeRequest.md | 44 +- docs/WritablePowerFeedRequest.md | 26 +- docs/WritablePowerOutletRequest.md | 26 +- docs/WritablePowerOutletTemplateRequest.md | 24 +- docs/WritablePowerPortRequest.md | 18 +- docs/WritablePowerPortTemplateRequest.md | 16 +- docs/WritablePrefixRequest.md | 40 +- docs/WritableRackRequest.md | 130 +- docs/WritableRearPortRequest.md | 18 +- docs/WritableRearPortTemplateRequest.md | 16 +- docs/WritableServiceRequest.md | 16 +- docs/WritableSiteRequest.md | 32 +- docs/WritableTunnelRequest.md | 24 +- docs/WritableTunnelTerminationRequest.md | 18 +- docs/WritableVLANRequest.md | 32 +- docs/WritableVMInterfaceRequest.md | 26 +- docs/WritableVirtualDeviceContextRequest.md | 34 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/WritableWirelessLANRequest.md | 24 +- docs/WritableWirelessLinkRequest.md | 96 +- model_aggregate.go | 55 +- model_aggregate_family.go | 2 +- model_aggregate_family_label.go | 2 +- model_aggregate_family_value.go | 2 +- model_aggregate_request.go | 38 +- model_asn.go | 63 +- model_asn_range.go | 55 +- model_asn_range_request.go | 40 +- model_asn_request.go | 36 +- model_authentication.go | 2 +- model_authentication_cipher.go | 2 +- model_authentication_type.go | 2 +- model_authentication_type_1.go | 2 +- model_available_asn.go | 2 +- model_available_ip.go | 22 +- model_available_prefix.go | 20 +- model_available_vlan.go | 18 +- model_bookmark.go | 14 +- model_bookmark_request.go | 18 +- model_brief_cable.go | 18 +- model_brief_cable_request.go | 8 +- model_brief_circuit.go | 18 +- model_brief_circuit_group.go | 16 +- ...ef_circuit_group_assignment_serializer_.go | 18 +- ...t_group_assignment_serializer__priority.go | 8 +- ...p_assignment_serializer__priority_label.go | 7 +- ...p_assignment_serializer__priority_value.go | 9 +- ...uit_group_assignment_serializer_request.go | 12 +- model_brief_circuit_group_request.go | 10 +- model_brief_circuit_request.go | 14 +- model_brief_circuit_type.go | 22 +- model_brief_circuit_type_request.go | 14 +- model_brief_cluster.go | 20 +- model_brief_cluster_group.go | 22 +- model_brief_cluster_group_request.go | 14 +- model_brief_cluster_request.go | 12 +- model_brief_cluster_type.go | 22 +- model_brief_cluster_type_request.go | 14 +- model_brief_config_template.go | 18 +- model_brief_config_template_request.go | 12 +- model_brief_contact.go | 18 +- model_brief_contact_group.go | 24 +- model_brief_contact_group_request.go | 14 +- model_brief_contact_request.go | 12 +- model_brief_contact_role.go | 20 +- model_brief_contact_role_request.go | 14 +- model_brief_custom_field_choice_set.go | 20 +- ...l_brief_custom_field_choice_set_request.go | 12 +- model_brief_data_file.go | 14 +- model_brief_data_source.go | 18 +- model_brief_data_source_request.go | 12 +- model_brief_device.go | 19 +- model_brief_device_request.go | 9 +- model_brief_device_role.go | 24 +- model_brief_device_role_request.go | 14 +- model_brief_device_type.go | 24 +- model_brief_device_type_request.go | 16 +- model_brief_fhrp_group.go | 20 +- model_brief_fhrp_group_protocol.go | 13 +- model_brief_fhrp_group_request.go | 14 +- model_brief_ike_policy.go | 18 +- model_brief_ike_policy_request.go | 12 +- model_brief_interface.go | 24 +- model_brief_interface_request.go | 14 +- model_brief_inventory_item_role.go | 22 +- model_brief_inventory_item_role_request.go | 14 +- model_brief_ip_address.go | 20 +- model_brief_ip_address_request.go | 12 +- model_brief_ip_sec_policy.go | 18 +- model_brief_ip_sec_policy_request.go | 12 +- model_brief_ip_sec_profile.go | 18 +- model_brief_ip_sec_profile_request.go | 12 +- model_brief_job.go | 21 +- model_brief_job_request.go | 7 +- model_brief_job_status.go | 8 +- model_brief_job_status_label.go | 9 +- model_brief_job_status_value.go | 9 +- model_brief_l2_vpn.go | 25 +- model_brief_l2_vpn_request.go | 19 +- model_brief_l2_vpn_termination.go | 16 +- model_brief_l2_vpn_termination_request.go | 10 +- model_brief_l2_vpn_type.go | 8 +- model_brief_l2_vpn_type_label.go | 23 +- model_brief_l2_vpn_type_value.go | 23 +- model_brief_location.go | 24 +- model_brief_location_request.go | 14 +- model_brief_manufacturer.go | 22 +- model_brief_manufacturer_request.go | 14 +- model_brief_module.go | 18 +- model_brief_module_request.go | 12 +- model_brief_module_type.go | 20 +- model_brief_module_type_request.go | 14 +- model_brief_platform.go | 24 +- model_brief_platform_request.go | 14 +- model_brief_power_panel.go | 20 +- model_brief_power_panel_request.go | 12 +- model_brief_power_port.go | 24 +- model_brief_power_port_request.go | 14 +- model_brief_power_port_template.go | 16 +- model_brief_power_port_template_request.go | 12 +- model_brief_provider.go | 20 +- model_brief_provider_account.go | 20 +- model_brief_provider_account_request.go | 14 +- model_brief_provider_network.go | 18 +- model_brief_provider_network_request.go | 12 +- model_brief_provider_request.go | 14 +- model_brief_rack.go | 20 +- model_brief_rack_request.go | 12 +- model_brief_rack_role.go | 22 +- model_brief_rack_role_request.go | 14 +- model_brief_rack_type.go | 22 +- model_brief_rack_type_request.go | 16 +- model_brief_rear_port_template.go | 16 +- model_brief_rear_port_template_request.go | 12 +- model_brief_region.go | 24 +- model_brief_region_request.go | 14 +- model_brief_rir.go | 22 +- model_brief_rir_request.go | 14 +- model_brief_role.go | 24 +- model_brief_role_request.go | 14 +- model_brief_site.go | 18 +- model_brief_site_group.go | 24 +- model_brief_site_group_request.go | 14 +- model_brief_site_request.go | 14 +- model_brief_tenant.go | 20 +- model_brief_tenant_group.go | 24 +- model_brief_tenant_group_request.go | 14 +- model_brief_tenant_request.go | 14 +- model_brief_tunnel.go | 18 +- model_brief_tunnel_group.go | 22 +- model_brief_tunnel_group_request.go | 14 +- model_brief_tunnel_request.go | 12 +- model_brief_user.go | 14 +- model_brief_user_request.go | 10 +- model_brief_virtual_chassis.go | 23 +- model_brief_virtual_chassis_request.go | 15 +- model_brief_virtual_machine.go | 18 +- model_brief_virtual_machine_request.go | 12 +- model_brief_vlan.go | 18 +- model_brief_vlan_group.go | 22 +- model_brief_vlan_group_request.go | 14 +- model_brief_vlan_request.go | 14 +- model_brief_vrf.go | 21 +- model_brief_vrf_request.go | 13 +- model_brief_wireless_lan_group.go | 24 +- model_brief_wireless_lan_group_request.go | 14 +- model_cable.go | 546 +- model_cable_length_unit.go | 8 +- model_cable_length_unit_label.go | 11 +- model_cable_length_unit_value.go | 13 +- model_cable_request.go | 446 +- model_cable_request_length_unit.go | 13 +- model_cable_status.go | 8 +- model_cable_status_label.go | 5 +- model_cable_status_value.go | 5 +- model_cable_termination.go | 2 +- model_cable_termination_request.go | 2 +- model_cable_type.go | 47 +- model_circuit.go | 652 +- model_circuit_circuit_termination.go | 24 +- model_circuit_circuit_termination_request.go | 16 +- model_circuit_group.go | 37 +- model_circuit_group_assignment.go | 30 +- model_circuit_group_assignment_request.go | 16 +- model_circuit_group_request.go | 21 +- model_circuit_request.go | 492 +- model_circuit_status.go | 8 +- model_circuit_status_label.go | 9 +- model_circuit_status_value.go | 9 +- model_circuit_termination.go | 107 +- model_circuit_termination_request.go | 40 +- model_circuit_type.go | 33 +- model_circuit_type_request.go | 2 +- ...oup_assignments_list_priority_parameter.go | 7 +- ...t_terminations_list_cable_end_parameter.go | 2 +- model_cluster.go | 466 +- model_cluster_group.go | 33 +- model_cluster_group_request.go | 2 +- model_cluster_request.go | 329 +- model_cluster_status.go | 8 +- model_cluster_status_label.go | 9 +- model_cluster_status_value.go | 9 +- model_cluster_type.go | 33 +- model_cluster_type_request.go | 2 +- model_config_context.go | 105 +- model_config_context_request.go | 50 +- model_config_template.go | 347 +- model_config_template_request.go | 151 +- model_console_port.go | 117 +- model_console_port_request.go | 28 +- model_console_port_request_speed.go | 2 +- model_console_port_speed.go | 2 +- model_console_port_speed_label.go | 2 +- model_console_port_speed_value.go | 2 +- model_console_port_template.go | 32 +- model_console_port_template_request.go | 26 +- model_console_port_type.go | 2 +- model_console_port_type_label.go | 2 +- model_console_port_type_value.go | 2 +- model_console_server_port.go | 117 +- model_console_server_port_request.go | 28 +- model_console_server_port_template.go | 32 +- model_console_server_port_template_request.go | 26 +- model_contact.go | 450 +- model_contact_assignment.go | 58 +- model_contact_assignment_request.go | 46 +- model_contact_group.go | 33 +- model_contact_group_request.go | 2 +- model_contact_request.go | 350 +- model_contact_role.go | 182 +- model_contact_role_request.go | 82 +- ...re_object_changes_list_action_parameter.go | 1 - model_custom_field.go | 132 +- model_custom_field_choice_set.go | 33 +- model_custom_field_choice_set_base_choices.go | 2 +- ...tom_field_choice_set_base_choices_label.go | 2 +- ...tom_field_choice_set_base_choices_value.go | 2 +- model_custom_field_choice_set_request.go | 2 +- model_custom_field_filter_logic.go | 2 +- model_custom_field_filter_logic_label.go | 2 +- model_custom_field_filter_logic_value.go | 2 +- model_custom_field_request.go | 97 +- model_custom_field_type.go | 2 +- model_custom_field_type_label.go | 2 +- model_custom_field_type_value.go | 2 +- model_custom_field_ui_editable.go | 2 +- model_custom_field_ui_editable_label.go | 2 +- model_custom_field_ui_editable_value.go | 2 +- model_custom_field_ui_visible.go | 2 +- model_custom_field_ui_visible_label.go | 2 +- model_custom_field_ui_visible_value.go | 2 +- model_custom_link.go | 33 +- model_custom_link_button_class.go | 36 +- model_custom_link_request.go | 2 +- model_dashboard.go | 2 +- model_dashboard_request.go | 2 +- model_data_file.go | 49 +- model_data_source.go | 440 +- model_data_source_request.go | 98 +- model_data_source_status.go | 8 +- model_data_source_status_label.go | 9 +- model_data_source_status_value.go | 9 +- model_data_source_type.go | 8 +- model_data_source_type_label.go | 7 +- model_data_source_type_value.go | 5 +- ..._dcim_cables_list_length_unit_parameter.go | 2 +- ...sole_port_templates_list_type_parameter.go | 2 +- ...dcim_console_ports_list_speed_parameter.go | 2 +- ...cim_device_types_list_airflow_parameter.go | 2 +- ...device_types_list_weight_unit_parameter.go | 2 +- ...s_render_config_create_format_parameter.go | 2 +- model_dcim_interfaces_list_mode_parameter.go | 2 +- ...cim_module_types_list_airflow_parameter.go | 5 +- ...l_dcim_power_feeds_list_phase_parameter.go | 2 +- ..._dcim_power_feeds_list_supply_parameter.go | 2 +- model_dcim_power_feeds_list_type_parameter.go | 2 +- ...er_outlet_templates_list_type_parameter.go | 2 +- ...ower_port_templates_list_type_parameter.go | 2 +- ...im_rack_types_list_outer_unit_parameter.go | 1 - ...racks_elevation_retrieve_face_parameter.go | 2 +- ...cks_elevation_retrieve_render_parameter.go | 2 +- model_dcim_racks_list_airflow_parameter.go | 1 - model_device.go | 237 +- model_device_airflow.go | 2 +- model_device_airflow_label.go | 2 +- model_device_airflow_value.go | 2 +- model_device_bay.go | 63 +- model_device_bay_request.go | 36 +- model_device_bay_template.go | 20 +- model_device_bay_template_request.go | 14 +- model_device_face.go | 2 +- model_device_face_label.go | 2 +- model_device_face_value.go | 2 +- model_device_role.go | 309 +- model_device_role_request.go | 22 +- model_device_status.go | 2 +- model_device_status_label.go | 2 +- model_device_status_value.go | 2 +- model_device_type.go | 1014 +- model_device_type_airflow.go | 8 +- model_device_type_request.go | 601 +- model_device_type_request_airflow.go | 9 +- model_device_type_request_subdevice_role.go | 5 +- model_device_type_request_weight_unit.go | 9 +- model_device_type_subdevice_role.go | 8 +- model_device_type_subdevice_role_label.go | 3 +- model_device_type_subdevice_role_value.go | 5 +- model_device_type_weight_unit.go | 8 +- model_device_type_weight_unit_label.go | 7 +- model_device_type_weight_unit_value.go | 9 +- model_device_with_config_context.go | 227 +- model_device_with_config_context_request.go | 176 +- model_encryption.go | 2 +- model_end.go | 2 +- model_end_1.go | 2 +- model_event.go | 9 +- model_event_rule.go | 255 +- model_event_rule_action_type.go | 2 +- model_event_rule_action_type_label.go | 8 +- model_event_rule_action_type_value.go | 10 +- model_event_rule_event_types_inner.go | 9 +- model_event_rule_request.go | 226 +- model_export_template.go | 65 +- model_export_template_request.go | 16 +- ...choice_sets_list_base_choices_parameter.go | 2 +- ...stom_fields_list_filter_logic_parameter.go | 2 +- ...ustom_fields_list_ui_editable_parameter.go | 2 +- ...custom_fields_list_ui_visible_parameter.go | 2 +- ...ustom_links_list_button_class_parameter.go | 34 +- model_fhrp_group.go | 367 +- model_fhrp_group_assignment.go | 32 +- model_fhrp_group_assignment_request.go | 20 +- model_fhrp_group_request.go | 240 +- model_front_port.go | 95 +- model_front_port_rear_port.go | 41 +- model_front_port_rear_port_request.go | 2 +- model_front_port_request.go | 28 +- model_front_port_template.go | 58 +- model_front_port_template_request.go | 48 +- model_front_port_type.go | 2 +- model_front_port_type_label.go | 112 +- model_front_port_type_value.go | 114 +- model_generic_object.go | 14 +- model_generic_object_request.go | 2 +- model_group.go | 33 +- model_group_request.go | 2 +- model_ike_policy.go | 67 +- model_ike_policy_mode.go | 2 +- model_ike_policy_mode_label.go | 2 +- model_ike_policy_mode_value.go | 2 +- model_ike_policy_request.go | 38 +- model_ike_policy_version.go | 2 +- model_ike_policy_version_label.go | 2 +- model_ike_policy_version_value.go | 2 +- model_ike_proposal.go | 83 +- ...l_ike_proposal_authentication_algorithm.go | 2 +- ...proposal_authentication_algorithm_label.go | 2 +- ...proposal_authentication_algorithm_value.go | 2 +- model_ike_proposal_authentication_method.go | 2 +- ...ke_proposal_authentication_method_label.go | 2 +- ...ke_proposal_authentication_method_value.go | 2 +- model_ike_proposal_encryption_algorithm.go | 2 +- ...ike_proposal_encryption_algorithm_label.go | 2 +- ...ike_proposal_encryption_algorithm_value.go | 2 +- model_ike_proposal_group.go | 2 +- model_ike_proposal_group_label.go | 2 +- model_ike_proposal_group_value.go | 2 +- model_ike_proposal_request.go | 48 +- model_image_attachment.go | 2 +- model_image_attachment_request.go | 62 +- model_interface.go | 175 +- model_interface_duplex.go | 2 +- model_interface_duplex_label.go | 2 +- model_interface_duplex_value.go | 2 +- model_interface_mode.go | 2 +- model_interface_mode_label.go | 2 +- model_interface_mode_value.go | 2 +- model_interface_poe_mode.go | 2 +- model_interface_poe_mode_label.go | 2 +- model_interface_poe_mode_value.go | 2 +- model_interface_poe_type.go | 2 +- model_interface_poe_type_label.go | 2 +- model_interface_poe_type_value.go | 2 +- model_interface_request.go | 68 +- model_interface_request_duplex.go | 2 +- model_interface_rf_channel.go | 2 +- model_interface_rf_channel_label.go | 2 +- model_interface_rf_channel_value.go | 2 +- model_interface_rf_role.go | 2 +- model_interface_rf_role_label.go | 2 +- model_interface_rf_role_value.go | 2 +- model_interface_template.go | 32 +- model_interface_template_poe_mode.go | 2 +- model_interface_template_poe_type.go | 2 +- model_interface_template_request.go | 26 +- model_interface_template_request_poe_mode.go | 2 +- model_interface_template_request_poe_type.go | 2 +- model_interface_template_request_rf_role.go | 2 +- model_interface_template_rf_role.go | 2 +- model_interface_type.go | 2 +- model_interface_type_label.go | 6 +- model_interface_type_value.go | 8 +- model_inventory_item.go | 79 +- model_inventory_item_request.go | 44 +- model_inventory_item_role.go | 33 +- model_inventory_item_role_request.go | 2 +- model_inventory_item_template.go | 48 +- model_inventory_item_template_request.go | 42 +- model_ip_address.go | 633 +- model_ip_address_request.go | 469 +- model_ip_address_role.go | 8 +- model_ip_address_role_label.go | 15 +- model_ip_address_role_value.go | 17 +- model_ip_address_status.go | 8 +- model_ip_address_status_label.go | 9 +- model_ip_address_status_value.go | 9 +- model_ip_range.go | 69 +- model_ip_range_request.go | 52 +- model_ip_range_status.go | 2 +- model_ip_range_status_label.go | 2 +- model_ip_range_status_value.go | 2 +- model_ip_sec_policy.go | 33 +- model_ip_sec_policy_request.go | 2 +- model_ip_sec_profile.go | 53 +- model_ip_sec_profile_mode.go | 2 +- model_ip_sec_profile_mode_label.go | 2 +- model_ip_sec_profile_mode_value.go | 2 +- model_ip_sec_profile_request.go | 36 +- model_ip_sec_proposal.go | 33 +- model_ip_sec_proposal_request.go | 2 +- ...rvice_templates_list_protocol_parameter.go | 2 +- model_job.go | 69 +- model_journal_entry.go | 33 +- model_journal_entry_kind.go | 2 +- model_journal_entry_kind_label.go | 2 +- model_journal_entry_kind_value.go | 2 +- model_journal_entry_request.go | 2 +- model_l2_vpn.go | 355 +- model_l2_vpn_request.go | 255 +- model_l2_vpn_termination.go | 277 +- model_l2_vpn_termination_request.go | 146 +- model_location.go | 423 +- model_location_request.go | 284 +- model_location_status.go | 8 +- model_location_status_label.go | 9 +- model_location_status_value.go | 9 +- model_manufacturer.go | 242 +- model_manufacturer_request.go | 82 +- model_module.go | 414 +- model_module_bay.go | 111 +- model_module_bay_request.go | 76 +- model_module_bay_template.go | 107 +- model_module_bay_template_request.go | 101 +- model_module_request.go | 316 +- model_module_status.go | 8 +- model_module_status_label.go | 11 +- model_module_status_value.go | 11 +- model_module_type.go | 409 +- model_module_type_airflow.go | 8 +- model_module_type_airflow_label.go | 5 +- model_module_type_airflow_value.go | 7 +- model_module_type_request.go | 311 +- model_module_type_request_airflow.go | 7 +- model_nested_contact_group.go | 33 +- model_nested_contact_group_request.go | 2 +- model_nested_device.go | 33 +- model_nested_device_request.go | 2 +- model_nested_group.go | 33 +- model_nested_interface.go | 33 +- model_nested_interface_request.go | 2 +- model_nested_interface_template.go | 2 +- model_nested_interface_template_request.go | 2 +- model_nested_ip_address.go | 20 +- model_nested_ip_address_request.go | 10 +- model_nested_location.go | 22 +- model_nested_location_request.go | 12 +- model_nested_module_bay.go | 83 +- model_nested_module_bay_request.go | 52 +- model_nested_provider_account.go | 20 +- model_nested_region.go | 33 +- model_nested_region_request.go | 2 +- model_nested_site_group.go | 33 +- model_nested_site_group_request.go | 2 +- model_nested_tag.go | 33 +- model_nested_tag_request.go | 2 +- model_nested_tenant_group.go | 33 +- model_nested_tenant_group_request.go | 2 +- model_nested_user.go | 39 +- model_nested_virtual_machine.go | 33 +- model_nested_virtual_machine_request.go | 2 +- model_nested_vm_interface.go | 33 +- model_nested_vm_interface_request.go | 2 +- model_nested_wireless_lan_group.go | 22 +- model_nested_wireless_lan_group_request.go | 2 +- model_nested_wireless_link.go | 33 +- model_nested_wireless_link_request.go | 2 +- model_notification.go | 31 +- model_notification_group.go | 24 +- model_notification_group_request.go | 16 +- model_notification_request.go | 21 +- model_object_change.go | 43 +- model_object_change_action.go | 2 +- model_object_change_action_label.go | 2 +- model_object_change_action_value.go | 2 +- model_object_permission.go | 33 +- model_object_permission_request.go | 2 +- model_object_type.go | 2 +- model_paginated_aggregate_list.go | 2 +- model_paginated_asn_list.go | 2 +- model_paginated_asn_range_list.go | 2 +- model_paginated_bookmark_list.go | 2 +- model_paginated_cable_list.go | 2 +- model_paginated_cable_termination_list.go | 2 +- ...paginated_circuit_group_assignment_list.go | 18 +- model_paginated_circuit_group_list.go | 18 +- model_paginated_circuit_list.go | 2 +- model_paginated_circuit_termination_list.go | 2 +- model_paginated_circuit_type_list.go | 2 +- model_paginated_cluster_group_list.go | 2 +- model_paginated_cluster_list.go | 2 +- model_paginated_cluster_type_list.go | 2 +- model_paginated_config_context_list.go | 2 +- model_paginated_config_template_list.go | 2 +- model_paginated_console_port_list.go | 2 +- model_paginated_console_port_template_list.go | 2 +- model_paginated_console_server_port_list.go | 2 +- ...nated_console_server_port_template_list.go | 2 +- model_paginated_contact_assignment_list.go | 2 +- model_paginated_contact_group_list.go | 2 +- model_paginated_contact_list.go | 2 +- model_paginated_contact_role_list.go | 2 +- ..._paginated_custom_field_choice_set_list.go | 2 +- model_paginated_custom_field_list.go | 2 +- model_paginated_custom_link_list.go | 2 +- model_paginated_data_file_list.go | 2 +- model_paginated_data_source_list.go | 2 +- model_paginated_device_bay_list.go | 2 +- model_paginated_device_bay_template_list.go | 2 +- model_paginated_device_role_list.go | 2 +- model_paginated_device_type_list.go | 2 +- ...ginated_device_with_config_context_list.go | 2 +- model_paginated_event_rule_list.go | 2 +- model_paginated_export_template_list.go | 2 +- model_paginated_fhrp_group_assignment_list.go | 2 +- model_paginated_fhrp_group_list.go | 2 +- model_paginated_front_port_list.go | 2 +- model_paginated_front_port_template_list.go | 2 +- model_paginated_group_list.go | 2 +- model_paginated_ike_policy_list.go | 2 +- model_paginated_ike_proposal_list.go | 2 +- model_paginated_image_attachment_list.go | 2 +- model_paginated_interface_list.go | 2 +- model_paginated_interface_template_list.go | 2 +- model_paginated_inventory_item_list.go | 2 +- model_paginated_inventory_item_role_list.go | 2 +- ..._paginated_inventory_item_template_list.go | 2 +- model_paginated_ip_address_list.go | 2 +- model_paginated_ip_range_list.go | 2 +- model_paginated_ip_sec_policy_list.go | 2 +- model_paginated_ip_sec_profile_list.go | 2 +- model_paginated_ip_sec_proposal_list.go | 2 +- model_paginated_job_list.go | 2 +- model_paginated_journal_entry_list.go | 2 +- model_paginated_l2_vpn_list.go | 2 +- model_paginated_l2_vpn_termination_list.go | 2 +- model_paginated_location_list.go | 2 +- model_paginated_manufacturer_list.go | 2 +- model_paginated_module_bay_list.go | 2 +- model_paginated_module_bay_template_list.go | 2 +- model_paginated_module_list.go | 2 +- model_paginated_module_type_list.go | 2 +- model_paginated_notification_group_list.go | 18 +- model_paginated_notification_list.go | 18 +- model_paginated_object_change_list.go | 2 +- model_paginated_object_permission_list.go | 2 +- model_paginated_object_type_list.go | 2 +- model_paginated_platform_list.go | 2 +- model_paginated_power_feed_list.go | 2 +- model_paginated_power_outlet_list.go | 2 +- model_paginated_power_outlet_template_list.go | 2 +- model_paginated_power_panel_list.go | 2 +- model_paginated_power_port_list.go | 2 +- model_paginated_power_port_template_list.go | 2 +- model_paginated_prefix_list.go | 2 +- model_paginated_provider_account_list.go | 2 +- model_paginated_provider_list.go | 2 +- model_paginated_provider_network_list.go | 2 +- model_paginated_rack_list.go | 2 +- model_paginated_rack_reservation_list.go | 2 +- model_paginated_rack_role_list.go | 2 +- model_paginated_rack_type_list.go | 18 +- model_paginated_rack_unit_list.go | 2 +- model_paginated_rear_port_list.go | 2 +- model_paginated_rear_port_template_list.go | 2 +- model_paginated_region_list.go | 2 +- model_paginated_rir_list.go | 2 +- model_paginated_role_list.go | 2 +- model_paginated_route_target_list.go | 2 +- model_paginated_saved_filter_list.go | 2 +- model_paginated_script_list.go | 2 +- model_paginated_service_list.go | 2 +- model_paginated_service_template_list.go | 2 +- model_paginated_site_group_list.go | 2 +- model_paginated_site_list.go | 2 +- model_paginated_subscription_list.go | 18 +- model_paginated_tag_list.go | 2 +- model_paginated_tenant_group_list.go | 2 +- model_paginated_tenant_list.go | 2 +- model_paginated_token_list.go | 2 +- model_paginated_tunnel_group_list.go | 2 +- model_paginated_tunnel_list.go | 2 +- model_paginated_tunnel_termination_list.go | 2 +- model_paginated_user_list.go | 2 +- model_paginated_virtual_chassis_list.go | 2 +- ...l_paginated_virtual_device_context_list.go | 2 +- model_paginated_virtual_disk_list.go | 2 +- ...irtual_machine_with_config_context_list.go | 2 +- model_paginated_vlan_group_list.go | 2 +- model_paginated_vlan_list.go | 2 +- model_paginated_vm_interface_list.go | 2 +- model_paginated_vrf_list.go | 2 +- model_paginated_webhook_list.go | 2 +- model_paginated_wireless_lan_group_list.go | 2 +- model_paginated_wireless_lan_list.go | 2 +- model_paginated_wireless_link_list.go | 2 +- model_parent_child_status.go | 2 +- model_parent_child_status_1.go | 2 +- model_patched_asn_range_request.go | 40 +- model_patched_asn_request.go | 36 +- model_patched_bookmark_request.go | 18 +- model_patched_cable_termination_request.go | 2 +- model_patched_circuit_group_request.go | 17 +- model_patched_circuit_termination_request.go | 40 +- model_patched_circuit_type_request.go | 2 +- model_patched_cluster_group_request.go | 2 +- model_patched_cluster_type_request.go | 2 +- model_patched_config_context_request.go | 50 +- model_patched_config_template_request.go | 18 +- model_patched_contact_request.go | 34 +- model_patched_contact_role_request.go | 2 +- model_patched_custom_link_request.go | 2 +- model_patched_dashboard_request.go | 2 +- model_patched_device_bay_request.go | 36 +- model_patched_device_bay_template_request.go | 14 +- model_patched_device_role_request.go | 22 +- model_patched_export_template_request.go | 16 +- ...l_patched_fhrp_group_assignment_request.go | 20 +- model_patched_fhrp_group_request.go | 30 +- model_patched_group_request.go | 2 +- model_patched_image_attachment_request.go | 76 +- model_patched_inventory_item_request.go | 44 +- model_patched_inventory_item_role_request.go | 2 +- ...patched_inventory_item_template_request.go | 42 +- model_patched_l2_vpn_termination_request.go | 14 +- model_patched_manufacturer_request.go | 2 +- model_patched_module_bay_request.go | 76 +- model_patched_module_bay_template_request.go | 91 +- model_patched_notification_group_request.go | 12 +- model_patched_notification_request.go | 15 +- model_patched_object_permission_request.go | 2 +- model_patched_platform_request.go | 36 +- model_patched_power_panel_request.go | 36 +- model_patched_provider_account_request.go | 14 +- model_patched_provider_network_request.go | 14 +- model_patched_provider_request.go | 2 +- model_patched_rack_reservation_request.go | 48 +- model_patched_rack_role_request.go | 2 +- model_patched_rir_request.go | 2 +- model_patched_role_request.go | 2 +- model_patched_route_target_request.go | 24 +- model_patched_saved_filter_request.go | 2 +- model_patched_script_input_request.go | 14 +- model_patched_subscription_request.go | 10 +- model_patched_tag_request.go | 2 +- model_patched_tenant_request.go | 26 +- model_patched_token_request.go | 20 +- model_patched_tunnel_group_request.go | 2 +- model_patched_user_request.go | 2 +- model_patched_virtual_disk_request.go | 24 +- model_patched_vlan_group_request.go | 86 +- model_patched_vrf_request.go | 16 +- model_patched_webhook_request.go | 2 +- model_patched_webhook_request_http_method.go | 2 +- model_patched_writable_aggregate_request.go | 38 +- model_patched_writable_cable_request.go | 68 +- ...itable_circuit_group_assignment_request.go | 12 +- model_patched_writable_circuit_request.go | 115 +- model_patched_writable_cluster_request.go | 72 +- ...l_patched_writable_console_port_request.go | 28 +- ...hed_writable_console_port_request_speed.go | 2 +- ...ched_writable_console_port_request_type.go | 2 +- ..._writable_console_port_template_request.go | 26 +- ...ed_writable_console_server_port_request.go | 28 +- ...le_console_server_port_template_request.go | 26 +- ...hed_writable_contact_assignment_request.go | 46 +- ..._patched_writable_contact_group_request.go | 2 +- ...ritable_custom_field_choice_set_request.go | 2 +- ...m_field_choice_set_request_base_choices.go | 2 +- ...l_patched_writable_custom_field_request.go | 97 +- ...table_custom_field_request_filter_logic.go | 2 +- ...ched_writable_custom_field_request_type.go | 2 +- ...itable_custom_field_request_ui_editable.go | 2 +- ...ritable_custom_field_request_ui_visible.go | 2 +- model_patched_writable_data_source_request.go | 76 +- model_patched_writable_device_type_request.go | 62 +- ...able_device_with_config_context_request.go | 180 +- model_patched_writable_event_rule_request.go | 226 +- model_patched_writable_front_port_request.go | 28 +- ...ed_writable_front_port_template_request.go | 48 +- model_patched_writable_ike_policy_request.go | 2 +- ...atched_writable_ike_policy_request_mode.go | 2 +- ...hed_writable_ike_policy_request_version.go | 2 +- ...l_patched_writable_ike_proposal_request.go | 2 +- ...oposal_request_authentication_algorithm.go | 2 +- ...hed_writable_ike_proposal_request_group.go | 2 +- model_patched_writable_interface_request.go | 68 +- ...patched_writable_interface_request_mode.go | 2 +- ...hed_writable_interface_template_request.go | 26 +- model_patched_writable_ip_address_request.go | 26 +- ...atched_writable_ip_address_request_role.go | 2 +- ...ched_writable_ip_address_request_status.go | 2 +- model_patched_writable_ip_range_request.go | 38 +- ...atched_writable_ip_range_request_status.go | 2 +- ..._patched_writable_ip_sec_policy_request.go | 2 +- ...ritable_ip_sec_policy_request_pfs_group.go | 2 +- ...patched_writable_ip_sec_profile_request.go | 38 +- ...atched_writable_ip_sec_proposal_request.go | 2 +- ..._patched_writable_journal_entry_request.go | 2 +- model_patched_writable_l2_vpn_request.go | 44 +- model_patched_writable_location_request.go | 44 +- model_patched_writable_module_request.go | 42 +- model_patched_writable_module_type_request.go | 77 +- model_patched_writable_power_feed_request.go | 48 +- ...tched_writable_power_feed_request_phase.go | 2 +- ...ched_writable_power_feed_request_status.go | 2 +- ...ched_writable_power_feed_request_supply.go | 2 +- ...atched_writable_power_feed_request_type.go | 2 +- ...l_patched_writable_power_outlet_request.go | 40 +- ..._writable_power_outlet_request_feed_leg.go | 2 +- ...ched_writable_power_outlet_request_type.go | 6 +- ..._writable_power_outlet_template_request.go | 38 +- ...able_power_outlet_template_request_type.go | 6 +- model_patched_writable_power_port_request.go | 28 +- ...atched_writable_power_port_request_type.go | 6 +- ...ed_writable_power_port_template_request.go | 26 +- ...itable_power_port_template_request_type.go | 6 +- model_patched_writable_prefix_request.go | 62 +- ..._patched_writable_prefix_request_status.go | 2 +- model_patched_writable_rack_request.go | 201 +- ...l_patched_writable_rack_request_airflow.go | 3 +- ...tched_writable_rack_request_form_factor.go | 15 +- ...atched_writable_rack_request_outer_unit.go | 2 +- model_patched_writable_rack_request_status.go | 2 +- model_patched_writable_rack_request_width.go | 2 +- model_patched_writable_rack_type_request.go | 37 +- ..._writable_rack_type_request_form_factor.go | 13 +- model_patched_writable_rear_port_request.go | 28 +- ...hed_writable_rear_port_template_request.go | 26 +- model_patched_writable_region_request.go | 2 +- model_patched_writable_service_request.go | 26 +- ...tched_writable_service_request_protocol.go | 2 +- ...tched_writable_service_template_request.go | 2 +- model_patched_writable_site_group_request.go | 2 +- model_patched_writable_site_request.go | 54 +- ...l_patched_writable_tenant_group_request.go | 2 +- model_patched_writable_tunnel_request.go | 38 +- ...d_writable_tunnel_request_encapsulation.go | 2 +- ..._patched_writable_tunnel_request_status.go | 2 +- ...hed_writable_tunnel_termination_request.go | 26 +- ...ritable_tunnel_termination_request_role.go | 2 +- ...atched_writable_virtual_chassis_request.go | 2 +- ...writable_virtual_device_context_request.go | 50 +- ...e_virtual_device_context_request_status.go | 2 +- ...ual_machine_with_config_context_request.go | 171 +- model_patched_writable_vlan_request.go | 50 +- model_patched_writable_vlan_request_status.go | 2 +- ...l_patched_writable_vm_interface_request.go | 38 +- ...hed_writable_wireless_lan_group_request.go | 2 +- ...l_patched_writable_wireless_lan_request.go | 38 +- ...ed_writable_wireless_lan_request_status.go | 2 +- ..._patched_writable_wireless_link_request.go | 151 +- ...ble_wireless_link_request_distance_unit.go | 9 +- model_platform.go | 282 +- model_platform_request.go | 178 +- model_power_feed.go | 141 +- model_power_feed_phase.go | 2 +- model_power_feed_phase_label.go | 2 +- model_power_feed_request.go | 48 +- model_power_feed_status.go | 2 +- model_power_feed_status_label.go | 2 +- model_power_feed_supply.go | 2 +- model_power_feed_supply_label.go | 2 +- model_power_feed_type.go | 2 +- model_power_feed_type_label.go | 2 +- model_power_outlet.go | 129 +- model_power_outlet_feed_leg.go | 2 +- model_power_outlet_feed_leg_label.go | 2 +- model_power_outlet_feed_leg_value.go | 2 +- model_power_outlet_request.go | 40 +- model_power_outlet_request_feed_leg.go | 2 +- model_power_outlet_request_type.go | 6 +- model_power_outlet_template.go | 56 +- model_power_outlet_template_request.go | 46 +- model_power_outlet_type.go | 2 +- model_power_outlet_type_label.go | 4 +- model_power_panel.go | 296 +- model_power_panel_request.go | 196 +- model_power_port.go | 659 +- model_power_port_request.go | 362 +- model_power_port_request_type.go | 209 +- model_power_port_template.go | 357 +- model_power_port_template_request.go | 286 +- model_power_port_type.go | 8 +- model_power_port_type_label.go | 207 +- model_prefix.go | 105 +- model_prefix_request.go | 66 +- model_prefix_status.go | 2 +- model_prefix_status_label.go | 2 +- model_prefix_status_value.go | 2 +- model_provider.go | 295 +- model_provider_account.go | 43 +- model_provider_account_request.go | 150 +- model_provider_network.go | 283 +- model_provider_network_request.go | 185 +- model_provider_request.go | 193 +- model_rack.go | 1256 +- model_rack_airflow.go | 8 +- model_rack_airflow_label.go | 1 - model_rack_face.go | 2 +- model_rack_face_1.go | 2 +- model_rack_form_factor.go | 8 +- model_rack_form_factor_label.go | 13 +- model_rack_outer_unit.go | 8 +- model_rack_outer_unit_label.go | 3 +- model_rack_request.go | 1087 +- model_rack_request_form_factor.go | 15 +- model_rack_request_outer_unit.go | 5 +- model_rack_reservation.go | 65 +- model_rack_reservation_request.go | 46 +- model_rack_role.go | 33 +- model_rack_role_request.go | 2 +- model_rack_status.go | 8 +- model_rack_status_label.go | 9 +- model_rack_type.go | 58 +- model_rack_type_request.go | 44 +- model_rack_unit.go | 14 +- model_rack_unit_face.go | 2 +- model_rack_unit_face_value.go | 2 +- model_rack_width.go | 8 +- model_rack_width_label.go | 1 - model_rack_width_value.go | 1 - model_rear_port.go | 95 +- model_rear_port_request.go | 28 +- model_rear_port_template.go | 314 +- model_rear_port_template_request.go | 245 +- model_region.go | 33 +- model_region_request.go | 2 +- model_rir.go | 222 +- model_rir_request.go | 120 +- model_role.go | 223 +- model_role_request.go | 119 +- model_route_target.go | 51 +- model_route_target_request.go | 24 +- model_saved_filter.go | 33 +- model_saved_filter_request.go | 2 +- model_schema_retrieve_format_parameter.go | 2 +- model_schema_retrieve_lang_parameter.go | 12 +- model_script.go | 71 +- model_script_input_request.go | 20 +- model_service.go | 83 +- model_service_protocol.go | 2 +- model_service_protocol_label.go | 2 +- model_service_request.go | 26 +- model_service_template.go | 33 +- model_service_template_request.go | 2 +- model_site.go | 895 +- model_site_group.go | 33 +- model_site_group_request.go | 2 +- model_site_request.go | 597 +- model_subscription.go | 26 +- model_subscription_request.go | 14 +- model_tag.go | 33 +- model_tag_request.go | 2 +- model_tenant.go | 581 +- model_tenant_group.go | 33 +- model_tenant_group_request.go | 2 +- model_tenant_request.go | 167 +- model_termination.go | 2 +- model_termination_1.go | 2 +- model_token.go | 57 +- model_token_provision.go | 57 +- model_token_provision_request.go | 2 +- model_token_request.go | 20 +- model_tunnel.go | 496 +- model_tunnel_encapsulation.go | 8 +- model_tunnel_encapsulation_label.go | 7 +- model_tunnel_group.go | 33 +- model_tunnel_group_request.go | 2 +- model_tunnel_request.go | 369 +- model_tunnel_status.go | 8 +- model_tunnel_status_label.go | 5 +- model_tunnel_termination.go | 55 +- model_tunnel_termination_request.go | 26 +- model_tunnel_termination_role.go | 2 +- model_tunnel_termination_role_label.go | 2 +- model_user.go | 388 +- model_user_request.go | 382 +- model_virtual_chassis.go | 287 +- model_virtual_chassis_request.go | 150 +- model_virtual_device_context.go | 91 +- model_virtual_device_context_request.go | 50 +- model_virtual_device_context_status.go | 2 +- model_virtual_device_context_status_label.go | 2 +- model_virtual_disk.go | 43 +- model_virtual_disk_request.go | 24 +- model_virtual_machine_with_config_context.go | 220 +- ...ual_machine_with_config_context_request.go | 171 +- model_vlan.go | 516 +- model_vlan_group.go | 125 +- model_vlan_group_request.go | 86 +- model_vlan_request.go | 348 +- model_vm_interface.go | 115 +- model_vm_interface_request.go | 38 +- model_vrf.go | 410 +- model_vrf_request.go | 277 +- model_webhook.go | 33 +- model_webhook_request.go | 2 +- model_wireless_channel.go | 2 +- model_wireless_lan.go | 97 +- model_wireless_lan_auth_cipher.go | 2 +- model_wireless_lan_auth_cipher_label.go | 2 +- model_wireless_lan_auth_cipher_value.go | 2 +- model_wireless_lan_auth_type.go | 2 +- model_wireless_lan_auth_type_label.go | 2 +- model_wireless_lan_auth_type_value.go | 2 +- model_wireless_lan_group.go | 234 +- model_wireless_lan_group_request.go | 2 +- model_wireless_lan_request.go | 56 +- model_wireless_lan_status.go | 2 +- model_wireless_lan_status_label.go | 2 +- model_wireless_lan_status_value.go | 2 +- model_wireless_link.go | 199 +- model_wireless_link_distance_unit.go | 8 +- model_wireless_link_distance_unit_label.go | 7 +- model_wireless_link_request.go | 160 +- model_wireless_link_request_distance_unit.go | 9 +- model_wireless_role.go | 2 +- ...less_links_list_distance_unit_parameter.go | 3 +- model_writable_aggregate_request.go | 38 +- model_writable_cable_request.go | 68 +- ...itable_circuit_group_assignment_request.go | 16 +- model_writable_circuit_request.go | 113 +- model_writable_cluster_request.go | 72 +- model_writable_console_port_request.go | 28 +- ..._writable_console_port_template_request.go | 26 +- model_writable_console_server_port_request.go | 28 +- ...le_console_server_port_template_request.go | 26 +- model_writable_contact_assignment_request.go | 46 +- model_writable_contact_group_request.go | 2 +- ...ritable_custom_field_choice_set_request.go | 2 +- model_writable_custom_field_request.go | 97 +- model_writable_data_source_request.go | 76 +- model_writable_device_type_request.go | 62 +- ...able_device_with_config_context_request.go | 176 +- model_writable_event_rule_request.go | 226 +- model_writable_front_port_request.go | 28 +- model_writable_front_port_template_request.go | 48 +- model_writable_ike_policy_request.go | 2 +- model_writable_ike_proposal_request.go | 2 +- model_writable_interface_request.go | 68 +- model_writable_interface_template_request.go | 26 +- model_writable_ip_address_request.go | 26 +- model_writable_ip_range_request.go | 38 +- model_writable_ip_sec_policy_request.go | 2 +- model_writable_ip_sec_profile_request.go | 36 +- model_writable_ip_sec_proposal_request.go | 2 +- model_writable_journal_entry_request.go | 2 +- model_writable_l2_vpn_request.go | 44 +- model_writable_location_request.go | 44 +- model_writable_module_request.go | 40 +- model_writable_module_type_request.go | 77 +- model_writable_power_feed_request.go | 48 +- model_writable_power_outlet_request.go | 40 +- ..._writable_power_outlet_template_request.go | 38 +- model_writable_power_port_request.go | 28 +- model_writable_power_port_template_request.go | 26 +- model_writable_prefix_request.go | 62 +- model_writable_rack_request.go | 201 +- model_writable_rack_type_request.go | 41 +- model_writable_rear_port_request.go | 28 +- model_writable_rear_port_template_request.go | 26 +- model_writable_region_request.go | 2 +- model_writable_service_request.go | 26 +- model_writable_service_template_request.go | 2 +- model_writable_site_group_request.go | 2 +- model_writable_site_request.go | 54 +- model_writable_tenant_group_request.go | 2 +- model_writable_tunnel_request.go | 38 +- model_writable_tunnel_termination_request.go | 26 +- model_writable_virtual_chassis_request.go | 2 +- ...writable_virtual_device_context_request.go | 50 +- ...ual_machine_with_config_context_request.go | 171 +- model_writable_vlan_request.go | 50 +- model_writable_vm_interface_request.go | 38 +- model_writable_wireless_lan_group_request.go | 2 +- model_writable_wireless_lan_request.go | 38 +- model_writable_wireless_link_request.go | 149 +- response.go | 2 +- scripts/set-versions.sh | 2 +- utils.go | 2 +- 1365 files changed, 59697 insertions(+), 137113 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index b0e110764..4aaeb069f 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -31,170 +31,22 @@ docs/AvailablePrefix.md docs/AvailableVLAN.md docs/Bookmark.md docs/BookmarkRequest.md -docs/BriefCable.md -docs/BriefCableRequest.md -docs/BriefCircuit.md -docs/BriefCircuitGroup.md -docs/BriefCircuitGroupAssignmentSerializer.md -docs/BriefCircuitGroupAssignmentSerializerPriority.md -docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md -docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md -docs/BriefCircuitGroupAssignmentSerializerRequest.md -docs/BriefCircuitGroupRequest.md -docs/BriefCircuitRequest.md -docs/BriefCircuitType.md -docs/BriefCircuitTypeRequest.md -docs/BriefCluster.md -docs/BriefClusterGroup.md -docs/BriefClusterGroupRequest.md -docs/BriefClusterRequest.md -docs/BriefClusterType.md -docs/BriefClusterTypeRequest.md -docs/BriefConfigTemplate.md -docs/BriefConfigTemplateRequest.md -docs/BriefContact.md -docs/BriefContactGroup.md -docs/BriefContactGroupRequest.md -docs/BriefContactRequest.md -docs/BriefContactRole.md -docs/BriefContactRoleRequest.md -docs/BriefCustomFieldChoiceSet.md -docs/BriefCustomFieldChoiceSetRequest.md -docs/BriefDataFile.md -docs/BriefDataSource.md -docs/BriefDataSourceRequest.md -docs/BriefDevice.md -docs/BriefDeviceRequest.md -docs/BriefDeviceRole.md -docs/BriefDeviceRoleRequest.md -docs/BriefDeviceType.md -docs/BriefDeviceTypeRequest.md -docs/BriefFHRPGroup.md -docs/BriefFHRPGroupProtocol.md -docs/BriefFHRPGroupRequest.md -docs/BriefIKEPolicy.md -docs/BriefIKEPolicyRequest.md -docs/BriefIPAddress.md -docs/BriefIPAddressRequest.md -docs/BriefIPSecPolicy.md -docs/BriefIPSecPolicyRequest.md -docs/BriefIPSecProfile.md -docs/BriefIPSecProfileRequest.md -docs/BriefInterface.md -docs/BriefInterfaceRequest.md -docs/BriefInventoryItemRole.md -docs/BriefInventoryItemRoleRequest.md -docs/BriefJob.md -docs/BriefJobRequest.md -docs/BriefJobStatus.md -docs/BriefJobStatusLabel.md -docs/BriefJobStatusValue.md -docs/BriefL2VPN.md -docs/BriefL2VPNRequest.md -docs/BriefL2VPNTermination.md -docs/BriefL2VPNTerminationRequest.md -docs/BriefL2VPNType.md -docs/BriefL2VPNTypeLabel.md -docs/BriefL2VPNTypeValue.md -docs/BriefLocation.md -docs/BriefLocationRequest.md -docs/BriefManufacturer.md -docs/BriefManufacturerRequest.md -docs/BriefModule.md -docs/BriefModuleRequest.md -docs/BriefModuleType.md -docs/BriefModuleTypeRequest.md -docs/BriefPlatform.md -docs/BriefPlatformRequest.md -docs/BriefPowerPanel.md -docs/BriefPowerPanelRequest.md -docs/BriefPowerPort.md -docs/BriefPowerPortRequest.md -docs/BriefPowerPortTemplate.md -docs/BriefPowerPortTemplateRequest.md -docs/BriefProvider.md -docs/BriefProviderAccount.md -docs/BriefProviderAccountRequest.md -docs/BriefProviderNetwork.md -docs/BriefProviderNetworkRequest.md -docs/BriefProviderRequest.md -docs/BriefRIR.md -docs/BriefRIRRequest.md -docs/BriefRack.md -docs/BriefRackRequest.md -docs/BriefRackRole.md -docs/BriefRackRoleRequest.md -docs/BriefRackType.md -docs/BriefRackTypeRequest.md -docs/BriefRearPortTemplate.md -docs/BriefRearPortTemplateRequest.md -docs/BriefRegion.md -docs/BriefRegionRequest.md -docs/BriefRole.md -docs/BriefRoleRequest.md -docs/BriefSite.md -docs/BriefSiteGroup.md -docs/BriefSiteGroupRequest.md -docs/BriefSiteRequest.md -docs/BriefTenant.md -docs/BriefTenantGroup.md -docs/BriefTenantGroupRequest.md -docs/BriefTenantRequest.md -docs/BriefTunnel.md -docs/BriefTunnelGroup.md -docs/BriefTunnelGroupRequest.md -docs/BriefTunnelRequest.md -docs/BriefUser.md -docs/BriefUserRequest.md -docs/BriefVLAN.md -docs/BriefVLANGroup.md -docs/BriefVLANGroupRequest.md -docs/BriefVLANRequest.md -docs/BriefVRF.md -docs/BriefVRFRequest.md -docs/BriefVirtualChassis.md -docs/BriefVirtualChassisRequest.md -docs/BriefVirtualMachine.md -docs/BriefVirtualMachineRequest.md -docs/BriefWirelessLANGroup.md -docs/BriefWirelessLANGroupRequest.md docs/Cable.md -docs/CableLengthUnit.md -docs/CableLengthUnitLabel.md -docs/CableLengthUnitValue.md docs/CableRequest.md -docs/CableRequestLengthUnit.md -docs/CableStatus.md -docs/CableStatusLabel.md -docs/CableStatusValue.md docs/CableTermination.md docs/CableTerminationRequest.md -docs/CableType.md docs/Circuit.md -docs/CircuitCircuitTermination.md -docs/CircuitCircuitTerminationRequest.md -docs/CircuitGroup.md -docs/CircuitGroupAssignment.md -docs/CircuitGroupAssignmentRequest.md -docs/CircuitGroupRequest.md docs/CircuitRequest.md -docs/CircuitStatus.md -docs/CircuitStatusLabel.md -docs/CircuitStatusValue.md docs/CircuitTermination.md docs/CircuitTerminationRequest.md docs/CircuitType.md docs/CircuitTypeRequest.md docs/CircuitsAPI.md -docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md docs/CircuitsCircuitTerminationsListCableEndParameter.md docs/Cluster.md docs/ClusterGroup.md docs/ClusterGroupRequest.md docs/ClusterRequest.md -docs/ClusterStatus.md -docs/ClusterStatusLabel.md -docs/ClusterStatusValue.md docs/ClusterType.md docs/ClusterTypeRequest.md docs/ConfigContext.md @@ -218,6 +70,9 @@ docs/ConsoleServerPortTemplate.md docs/ConsoleServerPortTemplateRequest.md docs/Contact.md docs/ContactAssignment.md +docs/ContactAssignmentPriority.md +docs/ContactAssignmentPriorityLabel.md +docs/ContactAssignmentPriorityValue.md docs/ContactAssignmentRequest.md docs/ContactGroup.md docs/ContactGroupRequest.md @@ -225,7 +80,6 @@ docs/ContactRequest.md docs/ContactRole.md docs/ContactRoleRequest.md docs/CoreAPI.md -docs/CoreObjectChangesListActionParameter.md docs/CustomField.md docs/CustomFieldChoiceSet.md docs/CustomFieldChoiceSetBaseChoices.md @@ -253,12 +107,7 @@ docs/DashboardRequest.md docs/DataFile.md docs/DataSource.md docs/DataSourceRequest.md -docs/DataSourceStatus.md -docs/DataSourceStatusLabel.md -docs/DataSourceStatusValue.md -docs/DataSourceType.md -docs/DataSourceTypeLabel.md -docs/DataSourceTypeValue.md +docs/DataSourceRequestType.md docs/DcimAPI.md docs/DcimCablesListLengthUnitParameter.md docs/DcimConsolePortTemplatesListTypeParameter.md @@ -267,16 +116,14 @@ docs/DcimDeviceTypesListAirflowParameter.md docs/DcimDeviceTypesListWeightUnitParameter.md docs/DcimDevicesRenderConfigCreateFormatParameter.md docs/DcimInterfacesListModeParameter.md -docs/DcimModuleTypesListAirflowParameter.md docs/DcimPowerFeedsListPhaseParameter.md docs/DcimPowerFeedsListSupplyParameter.md docs/DcimPowerFeedsListTypeParameter.md docs/DcimPowerOutletTemplatesListTypeParameter.md docs/DcimPowerPortTemplatesListTypeParameter.md -docs/DcimRackTypesListOuterUnitParameter.md docs/DcimRacksElevationRetrieveFaceParameter.md docs/DcimRacksElevationRetrieveRenderParameter.md -docs/DcimRacksListAirflowParameter.md +docs/DcimRacksListOuterUnitParameter.md docs/Device.md docs/DeviceAirflow.md docs/DeviceAirflowLabel.md @@ -288,34 +135,23 @@ docs/DeviceBayTemplateRequest.md docs/DeviceFace.md docs/DeviceFaceLabel.md docs/DeviceFaceValue.md +docs/DeviceRequest.md docs/DeviceRole.md docs/DeviceRoleRequest.md docs/DeviceStatus.md docs/DeviceStatusLabel.md docs/DeviceStatusValue.md docs/DeviceType.md -docs/DeviceTypeAirflow.md docs/DeviceTypeRequest.md -docs/DeviceTypeRequestAirflow.md -docs/DeviceTypeRequestSubdeviceRole.md -docs/DeviceTypeRequestWeightUnit.md -docs/DeviceTypeSubdeviceRole.md -docs/DeviceTypeSubdeviceRoleLabel.md -docs/DeviceTypeSubdeviceRoleValue.md -docs/DeviceTypeWeightUnit.md -docs/DeviceTypeWeightUnitLabel.md -docs/DeviceTypeWeightUnitValue.md docs/DeviceWithConfigContext.md docs/DeviceWithConfigContextRequest.md docs/Encryption.md docs/End.md docs/End1.md -docs/Event.md docs/EventRule.md docs/EventRuleActionType.md docs/EventRuleActionTypeLabel.md docs/EventRuleActionTypeValue.md -docs/EventRuleEventTypesInner.md docs/EventRuleRequest.md docs/ExportTemplate.md docs/ExportTemplateRequest.md @@ -325,9 +161,11 @@ docs/ExtrasCustomFieldsListFilterLogicParameter.md docs/ExtrasCustomFieldsListUiEditableParameter.md docs/ExtrasCustomFieldsListUiVisibleParameter.md docs/ExtrasCustomLinksListButtonClassParameter.md +docs/ExtrasObjectChangesListActionParameter.md docs/FHRPGroup.md docs/FHRPGroupAssignment.md docs/FHRPGroupAssignmentRequest.md +docs/FHRPGroupProtocol.md docs/FHRPGroupRequest.md docs/FrontPort.md docs/FrontPortRearPort.md @@ -338,7 +176,6 @@ docs/FrontPortTemplateRequest.md docs/FrontPortType.md docs/FrontPortTypeLabel.md docs/FrontPortTypeValue.md -docs/GenericObject.md docs/GenericObjectRequest.md docs/Group.md docs/GroupRequest.md @@ -366,12 +203,6 @@ docs/IKEProposalGroupValue.md docs/IKEProposalRequest.md docs/IPAddress.md docs/IPAddressRequest.md -docs/IPAddressRole.md -docs/IPAddressRoleLabel.md -docs/IPAddressRoleValue.md -docs/IPAddressStatus.md -docs/IPAddressStatusLabel.md -docs/IPAddressStatusValue.md docs/IPRange.md docs/IPRangeRequest.md docs/IPRangeStatus.md @@ -429,6 +260,10 @@ docs/InventoryItemTemplateRequest.md docs/IpamAPI.md docs/IpamServiceTemplatesListProtocolParameter.md docs/Job.md +docs/JobRequest.md +docs/JobStatus.md +docs/JobStatusLabel.md +docs/JobStatusValue.md docs/JournalEntry.md docs/JournalEntryKind.md docs/JournalEntryKindLabel.md @@ -438,44 +273,34 @@ docs/L2VPN.md docs/L2VPNRequest.md docs/L2VPNTermination.md docs/L2VPNTerminationRequest.md +docs/L2VPNType.md +docs/L2VPNTypeLabel.md +docs/L2VPNTypeValue.md docs/Location.md docs/LocationRequest.md -docs/LocationStatus.md -docs/LocationStatusLabel.md -docs/LocationStatusValue.md docs/Manufacturer.md docs/ManufacturerRequest.md docs/Module.md docs/ModuleBay.md +docs/ModuleBayNestedModule.md +docs/ModuleBayNestedModuleRequest.md docs/ModuleBayRequest.md docs/ModuleBayTemplate.md docs/ModuleBayTemplateRequest.md docs/ModuleRequest.md -docs/ModuleStatus.md -docs/ModuleStatusLabel.md -docs/ModuleStatusValue.md docs/ModuleType.md -docs/ModuleTypeAirflow.md -docs/ModuleTypeAirflowLabel.md -docs/ModuleTypeAirflowValue.md docs/ModuleTypeRequest.md -docs/ModuleTypeRequestAirflow.md docs/NestedContactGroup.md docs/NestedContactGroupRequest.md docs/NestedDevice.md docs/NestedDeviceRequest.md docs/NestedGroup.md -docs/NestedIPAddress.md -docs/NestedIPAddressRequest.md docs/NestedInterface.md docs/NestedInterfaceRequest.md docs/NestedInterfaceTemplate.md docs/NestedInterfaceTemplateRequest.md -docs/NestedLocation.md -docs/NestedLocationRequest.md docs/NestedModuleBay.md docs/NestedModuleBayRequest.md -docs/NestedProviderAccount.md docs/NestedRegion.md docs/NestedRegionRequest.md docs/NestedSiteGroup.md @@ -489,14 +314,9 @@ docs/NestedVMInterface.md docs/NestedVMInterfaceRequest.md docs/NestedVirtualMachine.md docs/NestedVirtualMachineRequest.md -docs/NestedWirelessLANGroup.md docs/NestedWirelessLANGroupRequest.md docs/NestedWirelessLink.md docs/NestedWirelessLinkRequest.md -docs/Notification.md -docs/NotificationGroup.md -docs/NotificationGroupRequest.md -docs/NotificationRequest.md docs/ObjectChange.md docs/ObjectChangeAction.md docs/ObjectChangeActionLabel.md @@ -510,8 +330,6 @@ docs/PaginatedAggregateList.md docs/PaginatedBookmarkList.md docs/PaginatedCableList.md docs/PaginatedCableTerminationList.md -docs/PaginatedCircuitGroupAssignmentList.md -docs/PaginatedCircuitGroupList.md docs/PaginatedCircuitList.md docs/PaginatedCircuitTerminationList.md docs/PaginatedCircuitTypeList.md @@ -568,8 +386,6 @@ docs/PaginatedModuleBayList.md docs/PaginatedModuleBayTemplateList.md docs/PaginatedModuleList.md docs/PaginatedModuleTypeList.md -docs/PaginatedNotificationGroupList.md -docs/PaginatedNotificationList.md docs/PaginatedObjectChangeList.md docs/PaginatedObjectPermissionList.md docs/PaginatedObjectTypeList.md @@ -588,7 +404,6 @@ docs/PaginatedRIRList.md docs/PaginatedRackList.md docs/PaginatedRackReservationList.md docs/PaginatedRackRoleList.md -docs/PaginatedRackTypeList.md docs/PaginatedRackUnitList.md docs/PaginatedRearPortList.md docs/PaginatedRearPortTemplateList.md @@ -601,7 +416,6 @@ docs/PaginatedServiceList.md docs/PaginatedServiceTemplateList.md docs/PaginatedSiteGroupList.md docs/PaginatedSiteList.md -docs/PaginatedSubscriptionList.md docs/PaginatedTagList.md docs/PaginatedTenantGroupList.md docs/PaginatedTenantList.md @@ -628,7 +442,6 @@ docs/PatchedASNRangeRequest.md docs/PatchedASNRequest.md docs/PatchedBookmarkRequest.md docs/PatchedCableTerminationRequest.md -docs/PatchedCircuitGroupRequest.md docs/PatchedCircuitTerminationRequest.md docs/PatchedCircuitTypeRequest.md docs/PatchedClusterGroupRequest.md @@ -654,8 +467,6 @@ docs/PatchedL2VPNTerminationRequest.md docs/PatchedManufacturerRequest.md docs/PatchedModuleBayRequest.md docs/PatchedModuleBayTemplateRequest.md -docs/PatchedNotificationGroupRequest.md -docs/PatchedNotificationRequest.md docs/PatchedObjectPermissionRequest.md docs/PatchedPlatformRequest.md docs/PatchedPowerPanelRequest.md @@ -668,8 +479,6 @@ docs/PatchedRackRoleRequest.md docs/PatchedRoleRequest.md docs/PatchedRouteTargetRequest.md docs/PatchedSavedFilterRequest.md -docs/PatchedScriptInputRequest.md -docs/PatchedSubscriptionRequest.md docs/PatchedTagRequest.md docs/PatchedTenantRequest.md docs/PatchedTokenRequest.md @@ -682,9 +491,13 @@ docs/PatchedWebhookRequest.md docs/PatchedWebhookRequestHttpMethod.md docs/PatchedWritableAggregateRequest.md docs/PatchedWritableCableRequest.md -docs/PatchedWritableCircuitGroupAssignmentRequest.md +docs/PatchedWritableCableRequestLengthUnit.md +docs/PatchedWritableCableRequestStatus.md +docs/PatchedWritableCableRequestType.md docs/PatchedWritableCircuitRequest.md +docs/PatchedWritableCircuitRequestStatus.md docs/PatchedWritableClusterRequest.md +docs/PatchedWritableClusterRequestStatus.md docs/PatchedWritableConsolePortRequest.md docs/PatchedWritableConsolePortRequestSpeed.md docs/PatchedWritableConsolePortRequestType.md @@ -702,6 +515,7 @@ docs/PatchedWritableCustomFieldRequestUiEditable.md docs/PatchedWritableCustomFieldRequestUiVisible.md docs/PatchedWritableDataSourceRequest.md docs/PatchedWritableDeviceTypeRequest.md +docs/PatchedWritableDeviceTypeRequestWeightUnit.md docs/PatchedWritableDeviceWithConfigContextRequest.md docs/PatchedWritableEventRuleRequest.md docs/PatchedWritableFrontPortRequest.md @@ -727,7 +541,9 @@ docs/PatchedWritableInterfaceTemplateRequest.md docs/PatchedWritableJournalEntryRequest.md docs/PatchedWritableL2VPNRequest.md docs/PatchedWritableLocationRequest.md +docs/PatchedWritableLocationRequestStatus.md docs/PatchedWritableModuleRequest.md +docs/PatchedWritableModuleRequestStatus.md docs/PatchedWritableModuleTypeRequest.md docs/PatchedWritablePowerFeedRequest.md docs/PatchedWritablePowerFeedRequestPhase.md @@ -746,13 +562,10 @@ docs/PatchedWritablePowerPortTemplateRequestType.md docs/PatchedWritablePrefixRequest.md docs/PatchedWritablePrefixRequestStatus.md docs/PatchedWritableRackRequest.md -docs/PatchedWritableRackRequestAirflow.md -docs/PatchedWritableRackRequestFormFactor.md docs/PatchedWritableRackRequestOuterUnit.md docs/PatchedWritableRackRequestStatus.md +docs/PatchedWritableRackRequestType.md docs/PatchedWritableRackRequestWidth.md -docs/PatchedWritableRackTypeRequest.md -docs/PatchedWritableRackTypeRequestFormFactor.md docs/PatchedWritableRearPortRequest.md docs/PatchedWritableRearPortTemplateRequest.md docs/PatchedWritableRegionRequest.md @@ -778,7 +591,6 @@ docs/PatchedWritableWirelessLANGroupRequest.md docs/PatchedWritableWirelessLANRequest.md docs/PatchedWritableWirelessLANRequestStatus.md docs/PatchedWritableWirelessLinkRequest.md -docs/PatchedWritableWirelessLinkRequestDistanceUnit.md docs/Platform.md docs/PlatformRequest.md docs/PowerFeed.md @@ -806,11 +618,8 @@ docs/PowerPanel.md docs/PowerPanelRequest.md docs/PowerPort.md docs/PowerPortRequest.md -docs/PowerPortRequestType.md docs/PowerPortTemplate.md docs/PowerPortTemplateRequest.md -docs/PowerPortType.md -docs/PowerPortTypeLabel.md docs/Prefix.md docs/PrefixRequest.md docs/PrefixStatus.md @@ -825,31 +634,16 @@ docs/ProviderRequest.md docs/RIR.md docs/RIRRequest.md docs/Rack.md -docs/RackAirflow.md -docs/RackAirflowLabel.md docs/RackFace.md docs/RackFace1.md -docs/RackFormFactor.md -docs/RackFormFactorLabel.md -docs/RackOuterUnit.md -docs/RackOuterUnitLabel.md docs/RackRequest.md -docs/RackRequestFormFactor.md -docs/RackRequestOuterUnit.md docs/RackReservation.md docs/RackReservationRequest.md docs/RackRole.md docs/RackRoleRequest.md -docs/RackStatus.md -docs/RackStatusLabel.md -docs/RackType.md -docs/RackTypeRequest.md docs/RackUnit.md docs/RackUnitFace.md docs/RackUnitFaceValue.md -docs/RackWidth.md -docs/RackWidthLabel.md -docs/RackWidthValue.md docs/RearPort.md docs/RearPortRequest.md docs/RearPortTemplate.md @@ -866,7 +660,6 @@ docs/SchemaAPI.md docs/SchemaRetrieveFormatParameter.md docs/SchemaRetrieveLangParameter.md docs/Script.md -docs/ScriptInputRequest.md docs/Service.md docs/ServiceProtocol.md docs/ServiceProtocolLabel.md @@ -878,11 +671,10 @@ docs/SiteGroup.md docs/SiteGroupRequest.md docs/SiteRequest.md docs/StatusAPI.md -docs/Subscription.md -docs/SubscriptionRequest.md docs/Tag.md docs/TagRequest.md docs/TenancyAPI.md +docs/TenancyContactAssignmentsListPriorityParameter.md docs/Tenant.md docs/TenantGroup.md docs/TenantGroupRequest.md @@ -894,13 +686,9 @@ docs/TokenProvision.md docs/TokenProvisionRequest.md docs/TokenRequest.md docs/Tunnel.md -docs/TunnelEncapsulation.md -docs/TunnelEncapsulationLabel.md docs/TunnelGroup.md docs/TunnelGroupRequest.md docs/TunnelRequest.md -docs/TunnelStatus.md -docs/TunnelStatusLabel.md docs/TunnelTermination.md docs/TunnelTerminationRequest.md docs/TunnelTerminationRole.md @@ -924,8 +712,12 @@ docs/VirtualDeviceContextStatus.md docs/VirtualDeviceContextStatusLabel.md docs/VirtualDisk.md docs/VirtualDiskRequest.md +docs/VirtualMachine.md +docs/VirtualMachineRequest.md docs/VirtualMachineWithConfigContext.md docs/VirtualMachineWithConfigContextRequest.md +docs/VirtualMachineWithConfigContextStatus.md +docs/VirtualMachineWithConfigContextStatusLabel.md docs/VirtualizationAPI.md docs/VpnAPI.md docs/Webhook.md @@ -946,15 +738,12 @@ docs/WirelessLANStatus.md docs/WirelessLANStatusLabel.md docs/WirelessLANStatusValue.md docs/WirelessLink.md -docs/WirelessLinkDistanceUnit.md -docs/WirelessLinkDistanceUnitLabel.md docs/WirelessLinkRequest.md -docs/WirelessLinkRequestDistanceUnit.md +docs/WirelessLinkStatus.md +docs/WirelessLinkStatusLabel.md docs/WirelessRole.md -docs/WirelessWirelessLinksListDistanceUnitParameter.md docs/WritableAggregateRequest.md docs/WritableCableRequest.md -docs/WritableCircuitGroupAssignmentRequest.md docs/WritableCircuitRequest.md docs/WritableClusterRequest.md docs/WritableConsolePortRequest.md @@ -992,7 +781,6 @@ docs/WritablePowerPortRequest.md docs/WritablePowerPortTemplateRequest.md docs/WritablePrefixRequest.md docs/WritableRackRequest.md -docs/WritableRackTypeRequest.md docs/WritableRearPortRequest.md docs/WritableRearPortTemplateRequest.md docs/WritableRegionRequest.md @@ -1032,169 +820,21 @@ model_available_prefix.go model_available_vlan.go model_bookmark.go model_bookmark_request.go -model_brief_cable.go -model_brief_cable_request.go -model_brief_circuit.go -model_brief_circuit_group.go -model_brief_circuit_group_assignment_serializer_.go -model_brief_circuit_group_assignment_serializer__priority.go -model_brief_circuit_group_assignment_serializer__priority_label.go -model_brief_circuit_group_assignment_serializer__priority_value.go -model_brief_circuit_group_assignment_serializer_request.go -model_brief_circuit_group_request.go -model_brief_circuit_request.go -model_brief_circuit_type.go -model_brief_circuit_type_request.go -model_brief_cluster.go -model_brief_cluster_group.go -model_brief_cluster_group_request.go -model_brief_cluster_request.go -model_brief_cluster_type.go -model_brief_cluster_type_request.go -model_brief_config_template.go -model_brief_config_template_request.go -model_brief_contact.go -model_brief_contact_group.go -model_brief_contact_group_request.go -model_brief_contact_request.go -model_brief_contact_role.go -model_brief_contact_role_request.go -model_brief_custom_field_choice_set.go -model_brief_custom_field_choice_set_request.go -model_brief_data_file.go -model_brief_data_source.go -model_brief_data_source_request.go -model_brief_device.go -model_brief_device_request.go -model_brief_device_role.go -model_brief_device_role_request.go -model_brief_device_type.go -model_brief_device_type_request.go -model_brief_fhrp_group.go -model_brief_fhrp_group_protocol.go -model_brief_fhrp_group_request.go -model_brief_ike_policy.go -model_brief_ike_policy_request.go -model_brief_interface.go -model_brief_interface_request.go -model_brief_inventory_item_role.go -model_brief_inventory_item_role_request.go -model_brief_ip_address.go -model_brief_ip_address_request.go -model_brief_ip_sec_policy.go -model_brief_ip_sec_policy_request.go -model_brief_ip_sec_profile.go -model_brief_ip_sec_profile_request.go -model_brief_job.go -model_brief_job_request.go -model_brief_job_status.go -model_brief_job_status_label.go -model_brief_job_status_value.go -model_brief_l2_vpn.go -model_brief_l2_vpn_request.go -model_brief_l2_vpn_termination.go -model_brief_l2_vpn_termination_request.go -model_brief_l2_vpn_type.go -model_brief_l2_vpn_type_label.go -model_brief_l2_vpn_type_value.go -model_brief_location.go -model_brief_location_request.go -model_brief_manufacturer.go -model_brief_manufacturer_request.go -model_brief_module.go -model_brief_module_request.go -model_brief_module_type.go -model_brief_module_type_request.go -model_brief_platform.go -model_brief_platform_request.go -model_brief_power_panel.go -model_brief_power_panel_request.go -model_brief_power_port.go -model_brief_power_port_request.go -model_brief_power_port_template.go -model_brief_power_port_template_request.go -model_brief_provider.go -model_brief_provider_account.go -model_brief_provider_account_request.go -model_brief_provider_network.go -model_brief_provider_network_request.go -model_brief_provider_request.go -model_brief_rack.go -model_brief_rack_request.go -model_brief_rack_role.go -model_brief_rack_role_request.go -model_brief_rack_type.go -model_brief_rack_type_request.go -model_brief_rear_port_template.go -model_brief_rear_port_template_request.go -model_brief_region.go -model_brief_region_request.go -model_brief_rir.go -model_brief_rir_request.go -model_brief_role.go -model_brief_role_request.go -model_brief_site.go -model_brief_site_group.go -model_brief_site_group_request.go -model_brief_site_request.go -model_brief_tenant.go -model_brief_tenant_group.go -model_brief_tenant_group_request.go -model_brief_tenant_request.go -model_brief_tunnel.go -model_brief_tunnel_group.go -model_brief_tunnel_group_request.go -model_brief_tunnel_request.go -model_brief_user.go -model_brief_user_request.go -model_brief_virtual_chassis.go -model_brief_virtual_chassis_request.go -model_brief_virtual_machine.go -model_brief_virtual_machine_request.go -model_brief_vlan.go -model_brief_vlan_group.go -model_brief_vlan_group_request.go -model_brief_vlan_request.go -model_brief_vrf.go -model_brief_vrf_request.go -model_brief_wireless_lan_group.go -model_brief_wireless_lan_group_request.go model_cable.go -model_cable_length_unit.go -model_cable_length_unit_label.go -model_cable_length_unit_value.go model_cable_request.go -model_cable_request_length_unit.go -model_cable_status.go -model_cable_status_label.go -model_cable_status_value.go model_cable_termination.go model_cable_termination_request.go -model_cable_type.go model_circuit.go -model_circuit_circuit_termination.go -model_circuit_circuit_termination_request.go -model_circuit_group.go -model_circuit_group_assignment.go -model_circuit_group_assignment_request.go -model_circuit_group_request.go model_circuit_request.go -model_circuit_status.go -model_circuit_status_label.go -model_circuit_status_value.go model_circuit_termination.go model_circuit_termination_request.go model_circuit_type.go model_circuit_type_request.go -model_circuits_circuit_group_assignments_list_priority_parameter.go model_circuits_circuit_terminations_list_cable_end_parameter.go model_cluster.go model_cluster_group.go model_cluster_group_request.go model_cluster_request.go -model_cluster_status.go -model_cluster_status_label.go -model_cluster_status_value.go model_cluster_type.go model_cluster_type_request.go model_config_context.go @@ -1218,13 +858,15 @@ model_console_server_port_template.go model_console_server_port_template_request.go model_contact.go model_contact_assignment.go +model_contact_assignment_priority.go +model_contact_assignment_priority_label.go +model_contact_assignment_priority_value.go model_contact_assignment_request.go model_contact_group.go model_contact_group_request.go model_contact_request.go model_contact_role.go model_contact_role_request.go -model_core_object_changes_list_action_parameter.go model_custom_field.go model_custom_field_choice_set.go model_custom_field_choice_set_base_choices.go @@ -1252,12 +894,7 @@ model_dashboard_request.go model_data_file.go model_data_source.go model_data_source_request.go -model_data_source_status.go -model_data_source_status_label.go -model_data_source_status_value.go -model_data_source_type.go -model_data_source_type_label.go -model_data_source_type_value.go +model_data_source_request_type.go model_dcim_cables_list_length_unit_parameter.go model_dcim_console_port_templates_list_type_parameter.go model_dcim_console_ports_list_speed_parameter.go @@ -1265,16 +902,14 @@ model_dcim_device_types_list_airflow_parameter.go model_dcim_device_types_list_weight_unit_parameter.go model_dcim_devices_render_config_create_format_parameter.go model_dcim_interfaces_list_mode_parameter.go -model_dcim_module_types_list_airflow_parameter.go model_dcim_power_feeds_list_phase_parameter.go model_dcim_power_feeds_list_supply_parameter.go model_dcim_power_feeds_list_type_parameter.go model_dcim_power_outlet_templates_list_type_parameter.go model_dcim_power_port_templates_list_type_parameter.go -model_dcim_rack_types_list_outer_unit_parameter.go model_dcim_racks_elevation_retrieve_face_parameter.go model_dcim_racks_elevation_retrieve_render_parameter.go -model_dcim_racks_list_airflow_parameter.go +model_dcim_racks_list_outer_unit_parameter.go model_device.go model_device_airflow.go model_device_airflow_label.go @@ -1286,34 +921,23 @@ model_device_bay_template_request.go model_device_face.go model_device_face_label.go model_device_face_value.go +model_device_request.go model_device_role.go model_device_role_request.go model_device_status.go model_device_status_label.go model_device_status_value.go model_device_type.go -model_device_type_airflow.go model_device_type_request.go -model_device_type_request_airflow.go -model_device_type_request_subdevice_role.go -model_device_type_request_weight_unit.go -model_device_type_subdevice_role.go -model_device_type_subdevice_role_label.go -model_device_type_subdevice_role_value.go -model_device_type_weight_unit.go -model_device_type_weight_unit_label.go -model_device_type_weight_unit_value.go model_device_with_config_context.go model_device_with_config_context_request.go model_encryption.go model_end.go model_end_1.go -model_event.go model_event_rule.go model_event_rule_action_type.go model_event_rule_action_type_label.go model_event_rule_action_type_value.go -model_event_rule_event_types_inner.go model_event_rule_request.go model_export_template.go model_export_template_request.go @@ -1322,9 +946,11 @@ model_extras_custom_fields_list_filter_logic_parameter.go model_extras_custom_fields_list_ui_editable_parameter.go model_extras_custom_fields_list_ui_visible_parameter.go model_extras_custom_links_list_button_class_parameter.go +model_extras_object_changes_list_action_parameter.go model_fhrp_group.go model_fhrp_group_assignment.go model_fhrp_group_assignment_request.go +model_fhrp_group_protocol.go model_fhrp_group_request.go model_front_port.go model_front_port_rear_port.go @@ -1335,7 +961,6 @@ model_front_port_template_request.go model_front_port_type.go model_front_port_type_label.go model_front_port_type_value.go -model_generic_object.go model_generic_object_request.go model_group.go model_group_request.go @@ -1403,12 +1028,6 @@ model_inventory_item_template.go model_inventory_item_template_request.go model_ip_address.go model_ip_address_request.go -model_ip_address_role.go -model_ip_address_role_label.go -model_ip_address_role_value.go -model_ip_address_status.go -model_ip_address_status_label.go -model_ip_address_status_value.go model_ip_range.go model_ip_range_request.go model_ip_range_status.go @@ -1425,6 +1044,10 @@ model_ip_sec_proposal.go model_ip_sec_proposal_request.go model_ipam_service_templates_list_protocol_parameter.go model_job.go +model_job_request.go +model_job_status.go +model_job_status_label.go +model_job_status_value.go model_journal_entry.go model_journal_entry_kind.go model_journal_entry_kind_label.go @@ -1434,28 +1057,23 @@ model_l2_vpn.go model_l2_vpn_request.go model_l2_vpn_termination.go model_l2_vpn_termination_request.go +model_l2_vpn_type.go +model_l2_vpn_type_label.go +model_l2_vpn_type_value.go model_location.go model_location_request.go -model_location_status.go -model_location_status_label.go -model_location_status_value.go model_manufacturer.go model_manufacturer_request.go model_module.go model_module_bay.go +model_module_bay_nested_module.go +model_module_bay_nested_module_request.go model_module_bay_request.go model_module_bay_template.go model_module_bay_template_request.go model_module_request.go -model_module_status.go -model_module_status_label.go -model_module_status_value.go model_module_type.go -model_module_type_airflow.go -model_module_type_airflow_label.go -model_module_type_airflow_value.go model_module_type_request.go -model_module_type_request_airflow.go model_nested_contact_group.go model_nested_contact_group_request.go model_nested_device.go @@ -1465,13 +1083,8 @@ model_nested_interface.go model_nested_interface_request.go model_nested_interface_template.go model_nested_interface_template_request.go -model_nested_ip_address.go -model_nested_ip_address_request.go -model_nested_location.go -model_nested_location_request.go model_nested_module_bay.go model_nested_module_bay_request.go -model_nested_provider_account.go model_nested_region.go model_nested_region_request.go model_nested_site_group.go @@ -1485,14 +1098,9 @@ model_nested_virtual_machine.go model_nested_virtual_machine_request.go model_nested_vm_interface.go model_nested_vm_interface_request.go -model_nested_wireless_lan_group.go model_nested_wireless_lan_group_request.go model_nested_wireless_link.go model_nested_wireless_link_request.go -model_notification.go -model_notification_group.go -model_notification_group_request.go -model_notification_request.go model_object_change.go model_object_change_action.go model_object_change_action_label.go @@ -1506,8 +1114,6 @@ model_paginated_asn_range_list.go model_paginated_bookmark_list.go model_paginated_cable_list.go model_paginated_cable_termination_list.go -model_paginated_circuit_group_assignment_list.go -model_paginated_circuit_group_list.go model_paginated_circuit_list.go model_paginated_circuit_termination_list.go model_paginated_circuit_type_list.go @@ -1564,8 +1170,6 @@ model_paginated_module_bay_list.go model_paginated_module_bay_template_list.go model_paginated_module_list.go model_paginated_module_type_list.go -model_paginated_notification_group_list.go -model_paginated_notification_list.go model_paginated_object_change_list.go model_paginated_object_permission_list.go model_paginated_object_type_list.go @@ -1583,7 +1187,6 @@ model_paginated_provider_network_list.go model_paginated_rack_list.go model_paginated_rack_reservation_list.go model_paginated_rack_role_list.go -model_paginated_rack_type_list.go model_paginated_rack_unit_list.go model_paginated_rear_port_list.go model_paginated_rear_port_template_list.go @@ -1597,7 +1200,6 @@ model_paginated_service_list.go model_paginated_service_template_list.go model_paginated_site_group_list.go model_paginated_site_list.go -model_paginated_subscription_list.go model_paginated_tag_list.go model_paginated_tenant_group_list.go model_paginated_tenant_list.go @@ -1624,7 +1226,6 @@ model_patched_asn_range_request.go model_patched_asn_request.go model_patched_bookmark_request.go model_patched_cable_termination_request.go -model_patched_circuit_group_request.go model_patched_circuit_termination_request.go model_patched_circuit_type_request.go model_patched_cluster_group_request.go @@ -1650,8 +1251,6 @@ model_patched_l2_vpn_termination_request.go model_patched_manufacturer_request.go model_patched_module_bay_request.go model_patched_module_bay_template_request.go -model_patched_notification_group_request.go -model_patched_notification_request.go model_patched_object_permission_request.go model_patched_platform_request.go model_patched_power_panel_request.go @@ -1664,8 +1263,6 @@ model_patched_rir_request.go model_patched_role_request.go model_patched_route_target_request.go model_patched_saved_filter_request.go -model_patched_script_input_request.go -model_patched_subscription_request.go model_patched_tag_request.go model_patched_tenant_request.go model_patched_token_request.go @@ -1678,9 +1275,13 @@ model_patched_webhook_request.go model_patched_webhook_request_http_method.go model_patched_writable_aggregate_request.go model_patched_writable_cable_request.go -model_patched_writable_circuit_group_assignment_request.go +model_patched_writable_cable_request_length_unit.go +model_patched_writable_cable_request_status.go +model_patched_writable_cable_request_type.go model_patched_writable_circuit_request.go +model_patched_writable_circuit_request_status.go model_patched_writable_cluster_request.go +model_patched_writable_cluster_request_status.go model_patched_writable_console_port_request.go model_patched_writable_console_port_request_speed.go model_patched_writable_console_port_request_type.go @@ -1698,6 +1299,7 @@ model_patched_writable_custom_field_request_ui_editable.go model_patched_writable_custom_field_request_ui_visible.go model_patched_writable_data_source_request.go model_patched_writable_device_type_request.go +model_patched_writable_device_type_request_weight_unit.go model_patched_writable_device_with_config_context_request.go model_patched_writable_event_rule_request.go model_patched_writable_front_port_request.go @@ -1723,7 +1325,9 @@ model_patched_writable_ip_sec_proposal_request.go model_patched_writable_journal_entry_request.go model_patched_writable_l2_vpn_request.go model_patched_writable_location_request.go +model_patched_writable_location_request_status.go model_patched_writable_module_request.go +model_patched_writable_module_request_status.go model_patched_writable_module_type_request.go model_patched_writable_power_feed_request.go model_patched_writable_power_feed_request_phase.go @@ -1742,13 +1346,10 @@ model_patched_writable_power_port_template_request_type.go model_patched_writable_prefix_request.go model_patched_writable_prefix_request_status.go model_patched_writable_rack_request.go -model_patched_writable_rack_request_airflow.go -model_patched_writable_rack_request_form_factor.go model_patched_writable_rack_request_outer_unit.go model_patched_writable_rack_request_status.go +model_patched_writable_rack_request_type.go model_patched_writable_rack_request_width.go -model_patched_writable_rack_type_request.go -model_patched_writable_rack_type_request_form_factor.go model_patched_writable_rear_port_request.go model_patched_writable_rear_port_template_request.go model_patched_writable_region_request.go @@ -1774,7 +1375,6 @@ model_patched_writable_wireless_lan_group_request.go model_patched_writable_wireless_lan_request.go model_patched_writable_wireless_lan_request_status.go model_patched_writable_wireless_link_request.go -model_patched_writable_wireless_link_request_distance_unit.go model_platform.go model_platform_request.go model_power_feed.go @@ -1802,11 +1402,8 @@ model_power_panel.go model_power_panel_request.go model_power_port.go model_power_port_request.go -model_power_port_request_type.go model_power_port_template.go model_power_port_template_request.go -model_power_port_type.go -model_power_port_type_label.go model_prefix.go model_prefix_request.go model_prefix_status.go @@ -1819,31 +1416,16 @@ model_provider_network.go model_provider_network_request.go model_provider_request.go model_rack.go -model_rack_airflow.go -model_rack_airflow_label.go model_rack_face.go model_rack_face_1.go -model_rack_form_factor.go -model_rack_form_factor_label.go -model_rack_outer_unit.go -model_rack_outer_unit_label.go model_rack_request.go -model_rack_request_form_factor.go -model_rack_request_outer_unit.go model_rack_reservation.go model_rack_reservation_request.go model_rack_role.go model_rack_role_request.go -model_rack_status.go -model_rack_status_label.go -model_rack_type.go -model_rack_type_request.go model_rack_unit.go model_rack_unit_face.go model_rack_unit_face_value.go -model_rack_width.go -model_rack_width_label.go -model_rack_width_value.go model_rear_port.go model_rear_port_request.go model_rear_port_template.go @@ -1861,7 +1443,6 @@ model_saved_filter_request.go model_schema_retrieve_format_parameter.go model_schema_retrieve_lang_parameter.go model_script.go -model_script_input_request.go model_service.go model_service_protocol.go model_service_protocol_label.go @@ -1872,10 +1453,9 @@ model_site.go model_site_group.go model_site_group_request.go model_site_request.go -model_subscription.go -model_subscription_request.go model_tag.go model_tag_request.go +model_tenancy_contact_assignments_list_priority_parameter.go model_tenant.go model_tenant_group.go model_tenant_group_request.go @@ -1887,13 +1467,9 @@ model_token_provision.go model_token_provision_request.go model_token_request.go model_tunnel.go -model_tunnel_encapsulation.go -model_tunnel_encapsulation_label.go model_tunnel_group.go model_tunnel_group_request.go model_tunnel_request.go -model_tunnel_status.go -model_tunnel_status_label.go model_tunnel_termination.go model_tunnel_termination_request.go model_tunnel_termination_role.go @@ -1908,8 +1484,12 @@ model_virtual_device_context_status.go model_virtual_device_context_status_label.go model_virtual_disk.go model_virtual_disk_request.go +model_virtual_machine.go +model_virtual_machine_request.go model_virtual_machine_with_config_context.go model_virtual_machine_with_config_context_request.go +model_virtual_machine_with_config_context_status.go +model_virtual_machine_with_config_context_status_label.go model_vlan.go model_vlan_group.go model_vlan_group_request.go @@ -1935,15 +1515,12 @@ model_wireless_lan_status.go model_wireless_lan_status_label.go model_wireless_lan_status_value.go model_wireless_link.go -model_wireless_link_distance_unit.go -model_wireless_link_distance_unit_label.go model_wireless_link_request.go -model_wireless_link_request_distance_unit.go +model_wireless_link_status.go +model_wireless_link_status_label.go model_wireless_role.go -model_wireless_wireless_links_list_distance_unit_parameter.go model_writable_aggregate_request.go model_writable_cable_request.go -model_writable_circuit_group_assignment_request.go model_writable_circuit_request.go model_writable_cluster_request.go model_writable_console_port_request.go @@ -1981,7 +1558,6 @@ model_writable_power_port_request.go model_writable_power_port_template_request.go model_writable_prefix_request.go model_writable_rack_request.go -model_writable_rack_type_request.go model_writable_rear_port_request.go model_writable_rear_port_template_request.go model_writable_region_request.go diff --git a/api/netbox_docker_version b/api/netbox_docker_version index cb2b00e4f..dedcc7d43 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -3.0.1 +2.9.1 diff --git a/api/netbox_version b/api/netbox_version index 627a3f43a..c4e41f945 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -4.1.1 +4.0.3 diff --git a/api/openapi.yaml b/api/openapi.yaml index df0f09431..4474f7ddd 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,42 +1,68 @@ openapi: 3.0.3 info: title: NetBox REST API - version: 4.1.1 (4.1) + version: 4.0.3 (4.0) license: name: Apache v2 License paths: - /api/circuits/circuit-group-assignments/: + /api/circuits/circuit-terminations/: get: - operationId: circuits_circuit_group_assignments_list - description: Get a list of Circuit group assignment objects. + operationId: circuits_circuit_terminations_list + description: Get a list of circuit termination objects. parameters: - in: query - name: circuit + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: - type: string - title: Circuit ID - description: Circuit (CID) + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: circuit__n + name: cable_id__n schema: type: array items: - type: string - title: Circuit ID - description: Circuit (CID) + type: integer + nullable: true + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean - in: query name: circuit_id schema: type: array items: type: integer - description: Circuit (ID) + description: Circuit explode: true style: form - in: query @@ -45,7 +71,7 @@ paths: type: array items: type: integer - description: Circuit (ID) + description: Circuit explode: true style: form - in: query @@ -117,39 +143,87 @@ paths: type: string format: uuid - in: query - name: group + name: description schema: type: array items: type: string - description: Circuit group (slug) explode: true style: form - in: query - name: group__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - description: Circuit group (slug) explode: true style: form - in: query - name: group_id + name: description__ie schema: type: array items: - type: integer - description: Circuit group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: description__iew schema: type: array items: - type: integer - description: Circuit group (ID) + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -279,11 +353,19 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -297,39 +379,147 @@ paths: schema: type: string - in: query - name: priority + name: port_speed schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: priority__n + name: port_speed__empty schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: boolean + - in: query + name: port_speed__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: port_speed__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: port_speed__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: port_speed__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: port_speed__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: pp_info + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__empty + schema: + type: boolean + - in: query + name: pp_info__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: pp_info__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: provider schema: @@ -366,11 +556,69 @@ paths: description: Provider (ID) explode: true style: form + - in: query + name: provider_network_id + schema: + type: array + items: + type: integer + nullable: true + description: ProviderNetwork (ID) + explode: true + style: form + - in: query + name: provider_network_id__n + schema: + type: array + items: + type: integer + nullable: true + description: ProviderNetwork (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search + - in: query + name: site + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form - in: query name: tag schema: @@ -387,11 +635,177 @@ paths: type: string explode: true style: form + - in: query + name: term_side + schema: + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' + - in: query + name: term_side__n + schema: + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: upstream_speed + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: upstream_speed__empty + schema: + type: boolean + - in: query + name: upstream_speed__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: upstream_speed__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: upstream_speed__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: upstream_speed__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: upstream_speed__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: xconnect_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__empty + schema: + type: boolean + - in: query + name: xconnect_id__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: xconnect_id__nisw + schema: + type: array + items: + type: string + explode: true + style: form tags: - circuits security: @@ -402,21 +816,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitGroupAssignmentList' + $ref: '#/components/schemas/PaginatedCircuitTerminationList' description: '' post: - operationId: circuits_circuit_group_assignments_create - description: Post a list of Circuit group assignment objects. + operationId: circuits_circuit_terminations_create + description: Post a list of circuit termination objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -426,11 +840,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroupAssignment' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuit_group_assignments_bulk_update - description: Put a list of Circuit group assignment objects. + operationId: circuits_circuit_terminations_bulk_update + description: Put a list of circuit termination objects. tags: - circuits requestBody: @@ -439,12 +853,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -456,11 +870,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignment' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuit_group_assignments_bulk_partial_update - description: Patch a list of Circuit group assignment objects. + operationId: circuits_circuit_terminations_bulk_partial_update + description: Patch a list of circuit termination objects. tags: - circuits requestBody: @@ -469,12 +883,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -486,11 +900,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignment' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuit_group_assignments_bulk_destroy - description: Delete a list of Circuit group assignment objects. + operationId: circuits_circuit_terminations_bulk_destroy + description: Delete a list of circuit termination objects. tags: - circuits requestBody: @@ -499,12 +913,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -512,16 +926,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-group-assignments/{id}/: + /api/circuits/circuit-terminations/{id}/: get: - operationId: circuits_circuit_group_assignments_retrieve - description: Get a Circuit group assignment object. + operationId: circuits_circuit_terminations_retrieve + description: Get a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Circuit group assignment. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -533,17 +947,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroupAssignment' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuit_group_assignments_update - description: Put a Circuit group assignment object. + operationId: circuits_circuit_terminations_update + description: Put a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Circuit group assignment. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -551,10 +965,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -564,17 +978,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroupAssignment' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuit_group_assignments_partial_update - description: Patch a Circuit group assignment object. + operationId: circuits_circuit_terminations_partial_update + description: Patch a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Circuit group assignment. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -582,10 +996,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -594,17 +1008,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroupAssignment' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuit_group_assignments_destroy - description: Delete a Circuit group assignment object. + operationId: circuits_circuit_terminations_destroy + description: Delete a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this Circuit group assignment. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -614,11 +1028,118 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-groups/: + /api/circuits/circuit-terminations/{id}/paths/: + get: + operationId: circuits_circuit_terminations_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this circuit termination. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CircuitTermination' + description: '' + /api/circuits/circuit-types/: get: - operationId: circuits_circuit_groups_list - description: Get a list of circuit group objects. + operationId: circuits_circuit_types_list + description: Get a list of circuit type objects. parameters: + - in: query + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty + schema: + type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -1104,76 +1625,6 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: @@ -1189,21 +1640,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitGroupList' + $ref: '#/components/schemas/PaginatedCircuitTypeList' description: '' post: - operationId: circuits_circuit_groups_create - description: Post a list of circuit group objects. + operationId: circuits_circuit_types_create + description: Post a list of circuit type objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -1213,11 +1664,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroup' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_circuit_groups_bulk_update - description: Put a list of circuit group objects. + operationId: circuits_circuit_types_bulk_update + description: Put a list of circuit type objects. tags: - circuits requestBody: @@ -1226,12 +1677,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -1243,11 +1694,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroup' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_circuit_groups_bulk_partial_update - description: Patch a list of circuit group objects. + operationId: circuits_circuit_types_bulk_partial_update + description: Patch a list of circuit type objects. tags: - circuits requestBody: @@ -1256,12 +1707,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -1273,11 +1724,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroup' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_circuit_groups_bulk_destroy - description: Delete a list of circuit group objects. + operationId: circuits_circuit_types_bulk_destroy + description: Delete a list of circuit type objects. tags: - circuits requestBody: @@ -1286,12 +1737,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -1299,16 +1750,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-groups/{id}/: + /api/circuits/circuit-types/{id}/: get: - operationId: circuits_circuit_groups_retrieve - description: Get a circuit group object. + operationId: circuits_circuit_types_retrieve + description: Get a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit group. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -1320,17 +1771,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroup' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_circuit_groups_update - description: Put a circuit group object. + operationId: circuits_circuit_types_update + description: Put a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit group. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -1338,10 +1789,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitGroupRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -1351,17 +1802,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroup' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_circuit_groups_partial_update - description: Patch a circuit group object. + operationId: circuits_circuit_types_partial_update + description: Patch a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit group. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -1369,10 +1820,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitGroupRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitGroupRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1381,17 +1832,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitGroup' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_circuit_groups_destroy - description: Delete a circuit group object. + operationId: circuits_circuit_types_destroy + description: Delete a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit group. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -1401,73 +1852,205 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/: + /api/circuits/circuits/: get: - operationId: circuits_circuit_terminations_list - description: Get a list of circuit termination objects. + operationId: circuits_circuits_list + description: Get a list of circuit objects. parameters: - in: query - name: cable_end + name: cid schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + explode: true + style: form - in: query - name: cable_end__n + name: cid__empty schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: boolean - in: query - name: cable_id + name: cid__ic schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cable_id__n + name: cid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: commit_rate schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled + name: commit_rate__empty schema: type: boolean - in: query - name: circuit_id + name: commit_rate__gt schema: type: array items: type: integer - description: Circuit + format: int32 explode: true style: form - in: query - name: circuit_id__n + name: commit_rate__gte schema: type: array items: type: integer - description: Circuit + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role explode: true style: form - in: query @@ -1680,6 +2263,64 @@ paths: format: int32 explode: true style: form + - in: query + name: install_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__empty + schema: + type: boolean + - in: query + name: install_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form - in: query name: last_updated schema: @@ -1749,19 +2390,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_connected - schema: - type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -1775,433 +2408,457 @@ paths: schema: type: string - in: query - name: port_speed + name: provider schema: type: array items: - type: integer - format: int32 + type: string + description: Provider (slug) explode: true style: form - in: query - name: port_speed__empty - schema: - type: boolean - - in: query - name: port_speed__gt + name: provider__n schema: type: array items: - type: integer - format: int32 + type: string + description: Provider (slug) explode: true style: form - in: query - name: port_speed__gte + name: provider_account schema: type: array items: - type: integer - format: int32 + type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: port_speed__lt + name: provider_account__n schema: type: array items: - type: integer - format: int32 + type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: port_speed__lte + name: provider_account_id schema: type: array items: type: integer - format: int32 + description: Provider account (ID) explode: true style: form - in: query - name: port_speed__n + name: provider_account_id__n schema: type: array items: type: integer - format: int32 + description: Provider account (ID) explode: true style: form - in: query - name: pp_info + name: provider_id schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: pp_info__empty - schema: - type: boolean - - in: query - name: pp_info__ic + name: provider_id__n schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: pp_info__ie + name: provider_network_id schema: type: array items: - type: string + type: integer + description: Provider network (ID) explode: true style: form - in: query - name: pp_info__iew + name: provider_network_id__n schema: type: array items: - type: string + type: integer + description: Provider network (ID) explode: true style: form - in: query - name: pp_info__isw + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: pp_info__n + name: region__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: pp_info__nic + name: region_id schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: pp_info__nie + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: pp_info__niew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: pp_info__nisw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: provider + name: site_group schema: type: array items: - type: string - description: Provider (slug) + type: integer + description: Site group (slug) explode: true style: form - in: query - name: provider__n + name: site_group__n schema: type: array items: - type: string - description: Provider (slug) + type: integer + description: Site group (slug) explode: true style: form - in: query - name: provider_id + name: site_group_id schema: type: array items: type: integer - description: Provider (ID) + description: Site group (ID) explode: true style: form - in: query - name: provider_id__n + name: site_group_id__n schema: type: array items: type: integer - description: Provider (ID) + description: Site group (ID) explode: true style: form - in: query - name: provider_network_id + name: site_id schema: type: array items: type: integer - nullable: true - description: ProviderNetwork (ID) + description: Site (ID) explode: true style: form - in: query - name: provider_network_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: ProviderNetwork (ID) + description: Site (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: site + name: status schema: type: array items: type: string - description: Site (slug) + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: site__n + name: status__n schema: type: array items: type: string - description: Site (slug) + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: site_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: tag__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: term_side - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - - in: query - name: term_side__n - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - - in: query - name: updated_by_request + name: tenant_group schema: - type: string - format: uuid + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form - in: query - name: upstream_speed + name: tenant_group__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (slug) explode: true style: form - in: query - name: upstream_speed__empty + name: tenant_group_id schema: - type: boolean + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form - in: query - name: upstream_speed__gt + name: tenant_group_id__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: upstream_speed__gte + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: upstream_speed__lt + name: tenant_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: upstream_speed__lte + name: termination_a_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Termination A (ID) explode: true style: form - in: query - name: upstream_speed__n + name: termination_a_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Termination A (ID) explode: true style: form - in: query - name: xconnect_id + name: termination_date schema: type: array items: type: string + format: date explode: true style: form - in: query - name: xconnect_id__empty + name: termination_date__empty schema: type: boolean - in: query - name: xconnect_id__ic + name: termination_date__gt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: xconnect_id__ie + name: termination_date__gte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: xconnect_id__iew + name: termination_date__lt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: xconnect_id__isw + name: termination_date__lte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: xconnect_id__n + name: termination_date__n schema: type: array items: type: string + format: date explode: true style: form - in: query - name: xconnect_id__nic + name: termination_z_id schema: type: array items: - type: string + type: integer + nullable: true + description: Termination A (ID) explode: true style: form - in: query - name: xconnect_id__nie + name: termination_z_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Termination A (ID) explode: true style: form - in: query - name: xconnect_id__niew + name: type schema: type: array items: type: string + description: Circuit type (slug) explode: true style: form - in: query - name: xconnect_id__nisw + name: type__n schema: type: array items: type: string + description: Circuit type (slug) explode: true style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - circuits security: @@ -2212,21 +2869,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTerminationList' + $ref: '#/components/schemas/PaginatedCircuitList' description: '' post: - operationId: circuits_circuit_terminations_create - description: Post a list of circuit termination objects. + operationId: circuits_circuits_create + description: Post a list of circuit objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -2236,11 +2893,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_circuit_terminations_bulk_update - description: Put a list of circuit termination objects. + operationId: circuits_circuits_bulk_update + description: Put a list of circuit objects. tags: - circuits requestBody: @@ -2249,12 +2906,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -2266,11 +2923,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_circuit_terminations_bulk_partial_update - description: Patch a list of circuit termination objects. + operationId: circuits_circuits_bulk_partial_update + description: Patch a list of circuit objects. tags: - circuits requestBody: @@ -2279,12 +2936,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -2296,11 +2953,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_circuit_terminations_bulk_destroy - description: Delete a list of circuit termination objects. + operationId: circuits_circuits_bulk_destroy + description: Delete a list of circuit objects. tags: - circuits requestBody: @@ -2309,12 +2966,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -2322,16 +2979,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/: + /api/circuits/circuits/{id}/: get: - operationId: circuits_circuit_terminations_retrieve - description: Get a circuit termination object. + operationId: circuits_circuits_retrieve + description: Get a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -2343,17 +3000,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_circuit_terminations_update - description: Put a circuit termination object. + operationId: circuits_circuits_update + description: Put a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -2361,10 +3018,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -2374,17 +3031,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_circuit_terminations_partial_update - description: Patch a circuit termination object. + operationId: circuits_circuits_partial_update + description: Patch a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -2392,10 +3049,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -2404,17 +3061,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_circuit_terminations_destroy - description: Delete a circuit termination object. + operationId: circuits_circuits_destroy + description: Delete a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -2424,36 +3081,13 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/paths/: - get: - operationId: circuits_circuit_terminations_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - /api/circuits/circuit-types/: + /api/circuits/provider-accounts/: get: - operationId: circuits_circuit_types_list - description: Get a list of circuit type objects. + operationId: circuits_provider_accounts_list + description: Get a list of provider account objects. parameters: - in: query - name: color + name: account schema: type: array items: @@ -2461,11 +3095,11 @@ paths: explode: true style: form - in: query - name: color__empty + name: account__empty schema: type: boolean - in: query - name: color__ic + name: account__ic schema: type: array items: @@ -2473,7 +3107,7 @@ paths: explode: true style: form - in: query - name: color__ie + name: account__ie schema: type: array items: @@ -2481,7 +3115,7 @@ paths: explode: true style: form - in: query - name: color__iew + name: account__iew schema: type: array items: @@ -2489,7 +3123,7 @@ paths: explode: true style: form - in: query - name: color__isw + name: account__isw schema: type: array items: @@ -2497,7 +3131,7 @@ paths: explode: true style: form - in: query - name: color__n + name: account__n schema: type: array items: @@ -2505,7 +3139,7 @@ paths: explode: true style: form - in: query - name: color__nic + name: account__nic schema: type: array items: @@ -2513,7 +3147,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: account__nie schema: type: array items: @@ -2521,7 +3155,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: account__niew schema: type: array items: @@ -2529,7 +3163,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: account__nisw schema: type: array items: @@ -2917,94 +3551,46 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: slug__nic + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: slug__nie + name: provider_id schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: slug__niew + name: provider_id__n schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: slug__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -3036,21 +3622,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTypeList' + $ref: '#/components/schemas/PaginatedProviderAccountList' description: '' post: - operationId: circuits_circuit_types_create - description: Post a list of circuit type objects. + operationId: circuits_provider_accounts_create + description: Post a list of provider account objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -3060,11 +3646,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_circuit_types_bulk_update - description: Put a list of circuit type objects. + operationId: circuits_provider_accounts_bulk_update + description: Put a list of provider account objects. tags: - circuits requestBody: @@ -3073,12 +3659,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -3090,11 +3676,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_circuit_types_bulk_partial_update - description: Patch a list of circuit type objects. + operationId: circuits_provider_accounts_bulk_partial_update + description: Patch a list of provider account objects. tags: - circuits requestBody: @@ -3103,12 +3689,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -3120,11 +3706,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_circuit_types_bulk_destroy - description: Delete a list of circuit type objects. + operationId: circuits_provider_accounts_bulk_destroy + description: Delete a list of provider account objects. tags: - circuits requestBody: @@ -3133,12 +3719,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -3146,16 +3732,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-types/{id}/: + /api/circuits/provider-accounts/{id}/: get: - operationId: circuits_circuit_types_retrieve - description: Get a circuit type object. + operationId: circuits_provider_accounts_retrieve + description: Get a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -3167,17 +3753,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_circuit_types_update - description: Put a circuit type object. + operationId: circuits_provider_accounts_update + description: Put a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -3185,10 +3771,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -3198,17 +3784,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_circuit_types_partial_update - description: Patch a circuit type object. + operationId: circuits_provider_accounts_partial_update + description: Patch a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -3216,10 +3802,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3228,17 +3814,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_circuit_types_destroy - description: Delete a circuit type object. + operationId: circuits_provider_accounts_destroy + description: Delete a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -3248,205 +3834,11 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/: + /api/circuits/provider-networks/: get: - operationId: circuits_circuits_list - description: Get a list of circuit objects. + operationId: circuits_provider_networks_list + description: Get a list of provider network objects. parameters: - - in: query - name: cid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__empty - schema: - type: boolean - - in: query - name: cid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: commit_rate - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__empty - schema: - type: boolean - - in: query - name: commit_rate__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -3657,64 +4049,6 @@ paths: format: int32 explode: true style: form - - in: query - name: install_date - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__empty - schema: - type: boolean - - in: query - name: install_date__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - in: query name: last_updated schema: @@ -3789,117 +4123,36 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: provider + name: name schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: name__empty schema: - type: array - items: - type: string - description: Provider (slug) - explode: true - style: form + type: boolean - in: query - name: provider_account + name: name__ic schema: type: array items: type: string - title: Account ID - description: Provider account (account) explode: true style: form - in: query - name: provider_account__n + name: name__ie schema: type: array items: type: string - title: Account ID - description: Provider account (account) - explode: true - style: form - - in: query - name: provider_account_id - schema: - type: array - items: - type: integer - description: Provider account (ID) - explode: true - style: form - - in: query - name: provider_account_id__n - schema: - type: array - items: - type: integer - description: Provider account (ID) - explode: true - style: form - - in: query - name: provider_id - schema: - type: array - items: - type: integer - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_id__n - schema: - type: array - items: - type: integer - description: Provider (ID) explode: true style: form - in: query - name: provider_network_id - schema: - type: array - items: - type: integer - description: Provider network (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: integer - description: Provider network (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: name__iew schema: type: array items: @@ -3907,7 +4160,7 @@ paths: explode: true style: form - in: query - name: region__n + name: name__isw schema: type: array items: @@ -3915,7 +4168,7 @@ paths: explode: true style: form - in: query - name: region_id + name: name__n schema: type: array items: @@ -3923,7 +4176,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: name__nic schema: type: array items: @@ -3931,135 +4184,96 @@ paths: explode: true style: form - in: query - name: site + name: name__nie schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__niew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: site_group__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site_group_id + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group_id__n + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: site_id + name: provider_id schema: type: array items: type: integer - description: Site (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_id__n + name: provider_id__n schema: type: array items: type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 63c838134a022200 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 63c838134a022200 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string + description: Provider (ID) explode: true style: form - in: query - name: tenant + name: q schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form + type: string + description: Search - in: query - name: tenant__n + name: service_id schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: service_id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: tenant_group__n + name: service_id__ic schema: type: array items: @@ -4067,7 +4281,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: service_id__ie schema: type: array items: @@ -4075,7 +4289,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: service_id__iew schema: type: array items: @@ -4083,157 +4297,67 @@ paths: explode: true style: form - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: termination_a_id - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_a_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_date + name: service_id__isw schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__empty - schema: - type: boolean - - in: query - name: termination_date__gt + name: service_id__n schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__gte + name: service_id__nic schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lt + name: service_id__nie schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lte + name: service_id__niew schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__n + name: service_id__nisw schema: type: array items: type: string - format: date - explode: true - style: form - - in: query - name: termination_z_id - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_z_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) explode: true style: form - in: query - name: type + name: tag schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - description: Circuit type (slug) - explode: true - style: form - - in: query - name: type_id - schema: - type: array - items: - type: integer - description: Circuit type (ID) - explode: true - style: form - - in: query - name: type_id__n - schema: - type: array - items: - type: integer - description: Circuit type (ID) explode: true style: form - in: query @@ -4251,21 +4375,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitList' + $ref: '#/components/schemas/PaginatedProviderNetworkList' description: '' post: - operationId: circuits_circuits_create - description: Post a list of circuit objects. + operationId: circuits_provider_networks_create + description: Post a list of provider network objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' required: true security: - cookieAuth: [] @@ -4275,11 +4399,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/ProviderNetwork' description: '' put: - operationId: circuits_circuits_bulk_update - description: Put a list of circuit objects. + operationId: circuits_provider_networks_bulk_update + description: Put a list of provider network objects. tags: - circuits requestBody: @@ -4288,12 +4412,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' required: true security: - cookieAuth: [] @@ -4305,11 +4429,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/ProviderNetwork' description: '' patch: - operationId: circuits_circuits_bulk_partial_update - description: Patch a list of circuit objects. + operationId: circuits_provider_networks_bulk_partial_update + description: Patch a list of provider network objects. tags: - circuits requestBody: @@ -4318,12 +4442,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' required: true security: - cookieAuth: [] @@ -4335,11 +4459,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/ProviderNetwork' description: '' delete: - operationId: circuits_circuits_bulk_destroy - description: Delete a list of circuit objects. + operationId: circuits_provider_networks_bulk_destroy + description: Delete a list of provider network objects. tags: - circuits requestBody: @@ -4348,12 +4472,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' required: true security: - cookieAuth: [] @@ -4361,16 +4485,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/{id}/: + /api/circuits/provider-networks/{id}/: get: - operationId: circuits_circuits_retrieve - description: Get a circuit object. + operationId: circuits_provider_networks_retrieve + description: Get a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this provider network. required: true tags: - circuits @@ -4382,17 +4506,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/ProviderNetwork' description: '' put: - operationId: circuits_circuits_update - description: Put a circuit object. + operationId: circuits_provider_networks_update + description: Put a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this provider network. required: true tags: - circuits @@ -4400,10 +4524,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/ProviderNetworkRequest' required: true security: - cookieAuth: [] @@ -4413,17 +4537,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/ProviderNetwork' description: '' patch: - operationId: circuits_circuits_partial_update - description: Patch a circuit object. + operationId: circuits_provider_networks_partial_update + description: Patch a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this provider network. required: true tags: - circuits @@ -4431,10 +4555,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedProviderNetworkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedProviderNetworkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -4443,17 +4567,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/ProviderNetwork' description: '' delete: - operationId: circuits_circuits_destroy - description: Delete a circuit object. + operationId: circuits_provider_networks_destroy + description: Delete a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this provider network. required: true tags: - circuits @@ -4463,93 +4587,105 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/: + /api/circuits/providers/: get: - operationId: circuits_provider_accounts_list - description: Get a list of provider account objects. + operationId: circuits_providers_list + description: Get a list of provider objects. parameters: - in: query - name: account + name: asn schema: type: array items: - type: string + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN explode: true style: form - in: query - name: account__empty - schema: - type: boolean - - in: query - name: account__ic + name: asn__n schema: type: array items: - type: string + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN explode: true style: form - in: query - name: account__ie + name: asn_id schema: type: array items: - type: string + type: integer + description: ASN (ID) explode: true style: form - in: query - name: account__iew + name: asn_id__n schema: type: array items: - type: string + type: integer + description: ASN (ID) explode: true style: form - in: query - name: account__isw + name: contact schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: account__n + name: contact__n schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: account__nic + name: contact_group schema: type: array items: - type: string + type: integer + description: Contact group explode: true style: form - in: query - name: account__nie + name: contact_group__n schema: type: array items: - type: string + type: integer + description: Contact group explode: true style: form - in: query - name: account__niew + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: account__nisw + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query @@ -4933,48 +5069,120 @@ paths: schema: type: string - in: query - name: provider + name: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: site schema: type: array items: type: string - description: Provider (slug) + description: Site (slug) explode: true style: form - in: query - name: provider__n + name: site__n schema: type: array items: type: string - description: Provider (slug) + description: Site (slug) explode: true style: form - in: query - name: provider_id + name: site_group schema: type: array items: type: integer - description: Provider (ID) + description: Site group (slug) explode: true style: form - in: query - name: provider_id__n + name: site_group__n schema: type: array items: type: integer - description: Provider (ID) + description: Site group (slug) explode: true style: form - in: query - name: q + name: site_group_id schema: - type: string - description: Search + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form - in: query - name: tag + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: slug schema: type: array items: @@ -4982,7 +5190,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -4990,79 +5202,159 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: slug__ie schema: - type: string - format: uuid - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedProviderAccountList' - description: '' - post: - operationId: circuits_provider_accounts_create - description: Post a list of provider account objects. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderAccountRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ProviderAccountRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderAccount' - description: '' - put: - operationId: circuits_provider_accounts_bulk_update - description: Put a list of provider account objects. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderAccountRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderAccountRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedProviderList' + description: '' + post: + operationId: circuits_providers_create + description: Post a list of provider objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Provider' + description: '' + put: + operationId: circuits_providers_bulk_update + description: Put a list of provider objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: application/json: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: circuits_provider_accounts_bulk_partial_update - description: Patch a list of provider account objects. + operationId: circuits_providers_bulk_partial_update + description: Patch a list of provider objects. tags: - circuits requestBody: @@ -5071,12 +5363,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -5088,11 +5380,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: circuits_provider_accounts_bulk_destroy - description: Delete a list of provider account objects. + operationId: circuits_providers_bulk_destroy + description: Delete a list of provider objects. tags: - circuits requestBody: @@ -5101,12 +5393,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -5114,16 +5406,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/{id}/: + /api/circuits/providers/{id}/: get: - operationId: circuits_provider_accounts_retrieve - description: Get a provider account object. + operationId: circuits_providers_retrieve + description: Get a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this provider. required: true tags: - circuits @@ -5135,17 +5427,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: circuits_provider_accounts_update - description: Put a provider account object. + operationId: circuits_providers_update + description: Put a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this provider. required: true tags: - circuits @@ -5153,10 +5445,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -5166,17 +5458,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: circuits_provider_accounts_partial_update - description: Patch a provider account object. + operationId: circuits_providers_partial_update + description: Patch a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this provider. required: true tags: - circuits @@ -5184,10 +5476,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedProviderRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -5196,17 +5488,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: circuits_provider_accounts_destroy - description: Delete a provider account object. + operationId: circuits_providers_destroy + description: Delete a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this provider. required: true tags: - circuits @@ -5216,10 +5508,10 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/: + /api/core/data-files/: get: - operationId: circuits_provider_networks_list - description: Get a list of provider network objects. + operationId: core_data_files_list + description: Get a list of data file objects. parameters: - in: query name: created @@ -5290,7 +5582,7 @@ paths: type: string format: uuid - in: query - name: description + name: hash schema: type: array items: @@ -5298,11 +5590,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: hash__empty schema: type: boolean - in: query - name: description__ic + name: hash__ic schema: type: array items: @@ -5310,7 +5602,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: hash__ie schema: type: array items: @@ -5318,7 +5610,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: hash__iew schema: type: array items: @@ -5326,7 +5618,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: hash__isw schema: type: array items: @@ -5334,7 +5626,7 @@ paths: explode: true style: form - in: query - name: description__n + name: hash__n schema: type: array items: @@ -5342,7 +5634,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: hash__nic schema: type: array items: @@ -5350,7 +5642,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: hash__nie schema: type: array items: @@ -5358,7 +5650,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: hash__niew schema: type: array items: @@ -5366,7 +5658,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: hash__nisw schema: type: array items: @@ -5505,20 +5797,20 @@ paths: schema: type: string format: uuid - - in: query - name: name + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: boolean + type: string - in: query - name: name__ic + name: path schema: type: array items: @@ -5526,15 +5818,11 @@ paths: explode: true style: form - in: query - name: name__ie + name: path__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__iew + name: path__ic schema: type: array items: @@ -5542,7 +5830,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: path__ie schema: type: array items: @@ -5550,7 +5838,7 @@ paths: explode: true style: form - in: query - name: name__n + name: path__iew schema: type: array items: @@ -5558,7 +5846,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: path__isw schema: type: array items: @@ -5566,7 +5854,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: path__n schema: type: array items: @@ -5574,7 +5862,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: path__nic schema: type: array items: @@ -5582,164 +5870,125 @@ paths: explode: true style: form - in: query - name: name__nisw + name: path__nie schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: provider + name: path__niew schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: path__nisw schema: type: array items: type: string - description: Provider (slug) - explode: true - style: form - - in: query - name: provider_id - schema: - type: array - items: - type: integer - description: Provider (ID) - explode: true - style: form - - in: query - name: provider_id__n - schema: - type: array - items: - type: integer - description: Provider (ID) explode: true style: form - in: query name: q schema: type: string - description: Search - in: query - name: service_id + name: size schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: service_id__empty + name: size__empty schema: type: boolean - in: query - name: service_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: service_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: service_id__iew + name: size__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: service_id__isw + name: size__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: service_id__n + name: size__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: service_id__nic + name: size__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: service_id__nie + name: size__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: service_id__niew + name: source schema: type: array items: type: string + description: Data source (name) explode: true style: form - in: query - name: service_id__nisw + name: source__n schema: type: array items: type: string + description: Data source (name) explode: true style: form - in: query - name: tag + name: source_id schema: type: array items: - type: string + type: integer + description: Data source (ID) explode: true style: form - in: query - name: tag__n + name: source_id__n schema: type: array items: - type: string + type: integer + description: Data source (ID) explode: true style: form - in: query @@ -5748,89 +5997,7 @@ paths: type: string format: uuid tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedProviderNetworkList' - description: '' - post: - operationId: circuits_provider_networks_create - description: Post a list of provider network objects. - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderNetworkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - put: - operationId: circuits_provider_networks_bulk_update - description: Put a list of provider network objects. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetworkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - patch: - operationId: circuits_provider_networks_bulk_partial_update - description: Patch a list of provider network objects. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetworkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetworkRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -5839,108 +6006,21 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/PaginatedDataFileList' description: '' - delete: - operationId: circuits_provider_networks_bulk_destroy - description: Delete a list of provider network objects. - tags: - - circuits - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetworkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/circuits/provider-networks/{id}/: + /api/core/data-files/{id}/: get: - operationId: circuits_provider_networks_retrieve - description: Get a provider network object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this provider network. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - put: - operationId: circuits_provider_networks_update - description: Put a provider network object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this provider network. - required: true - tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderNetworkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ProviderNetworkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ProviderNetwork' - description: '' - patch: - operationId: circuits_provider_networks_partial_update - description: Patch a provider network object. + operationId: core_data_files_retrieve + description: Get a data file object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this data file. required: true tags: - - circuits - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + - core security: - cookieAuth: [] - tokenAuth: [] @@ -5949,125 +6029,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/DataFile' description: '' - delete: - operationId: circuits_provider_networks_destroy - description: Delete a provider network object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this provider network. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/circuits/providers/: + /api/core/data-sources/: get: - operationId: circuits_providers_list - description: Get a list of provider objects. + operationId: core_data_sources_list + description: Get a list of data source objects. parameters: - - in: query - name: asn - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN - explode: true - style: form - - in: query - name: asn__n - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN - explode: true - style: form - - in: query - name: asn_id - schema: - type: array - items: - type: integer - description: ASN (ID) - explode: true - style: form - - in: query - name: asn_id__n - schema: - type: array - items: - type: integer - description: ASN (ID) - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -6220,6 +6188,10 @@ paths: type: string explode: true style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -6278,6 +6250,64 @@ paths: format: int32 explode: true style: form + - in: query + name: last_synced + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_synced__empty + schema: + type: boolean + - in: query + name: last_synced__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_synced__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_synced__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_synced__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: last_updated schema: @@ -6454,65 +6484,19 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n + name: source_url schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: source_url__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: site_group__n + name: source_url__ic schema: type: array items: @@ -6520,7 +6504,7 @@ paths: explode: true style: form - in: query - name: site_group_id + name: source_url__ie schema: type: array items: @@ -6528,7 +6512,7 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: source_url__iew schema: type: array items: @@ -6536,25 +6520,7 @@ paths: explode: true style: form - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site - explode: true - style: form - - in: query - name: slug + name: source_url__isw schema: type: array items: @@ -6562,11 +6528,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: source_url__n schema: type: array items: @@ -6574,7 +6536,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: source_url__nic schema: type: array items: @@ -6582,7 +6544,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: source_url__nie schema: type: array items: @@ -6590,7 +6552,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: source_url__niew schema: type: array items: @@ -6598,7 +6560,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: source_url__nisw schema: type: array items: @@ -6606,7 +6568,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: status schema: type: array items: @@ -6614,7 +6576,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: status__n schema: type: array items: @@ -6622,7 +6584,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tag schema: type: array items: @@ -6630,7 +6592,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tag__n schema: type: array items: @@ -6638,7 +6600,7 @@ paths: explode: true style: form - in: query - name: tag + name: type schema: type: array items: @@ -6646,7 +6608,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: type__n schema: type: array items: @@ -6659,7 +6621,7 @@ paths: type: string format: uuid tags: - - circuits + - core security: - cookieAuth: [] - tokenAuth: [] @@ -6668,21 +6630,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderList' + $ref: '#/components/schemas/PaginatedDataSourceList' description: '' post: - operationId: circuits_providers_create - description: Post a list of provider objects. + operationId: core_data_sources_create + description: Post a list of data source objects. tags: - - circuits + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' required: true security: - cookieAuth: [] @@ -6692,25 +6654,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: circuits_providers_bulk_update - description: Put a list of provider objects. + operationId: core_data_sources_bulk_update + description: Put a list of data source objects. tags: - - circuits + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -6722,25 +6684,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: circuits_providers_bulk_partial_update - description: Patch a list of provider objects. + operationId: core_data_sources_bulk_partial_update + description: Patch a list of data source objects. tags: - - circuits + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -6752,25 +6714,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: circuits_providers_bulk_destroy - description: Delete a list of provider objects. + operationId: core_data_sources_bulk_destroy + description: Delete a list of data source objects. tags: - - circuits + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -6778,19 +6740,19 @@ paths: responses: '204': description: No response body - /api/circuits/providers/{id}/: + /api/core/data-sources/{id}/: get: - operationId: circuits_providers_retrieve - description: Get a provider object. + operationId: core_data_sources_retrieve + description: Get a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this data source. required: true tags: - - circuits + - core security: - cookieAuth: [] - tokenAuth: [] @@ -6799,28 +6761,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: circuits_providers_update - description: Put a provider object. + operationId: core_data_sources_update + description: Put a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this data source. required: true tags: - - circuits + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' required: true security: - cookieAuth: [] @@ -6830,28 +6792,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: circuits_providers_partial_update - description: Patch a provider object. + operationId: core_data_sources_partial_update + description: Patch a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this data source. required: true tags: - - circuits + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -6860,185 +6822,153 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: circuits_providers_destroy - description: Delete a provider object. + operationId: core_data_sources_destroy + description: Delete a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this data source. required: true tags: - - circuits + - core security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/core/data-files/: + /api/core/data-sources/{id}/sync/: + post: + operationId: core_data_sources_sync_create + description: Enqueue a job to synchronize the DataSource. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this data source. + required: true + tags: + - core + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DataSource' + description: '' + /api/core/jobs/: get: - operationId: core_data_files_list - description: Get a list of data file objects. + operationId: core_jobs_list + description: Retrieve a list of job results parameters: + - in: query + name: completed + schema: + type: string + format: date-time + - in: query + name: completed__after + schema: + type: string + format: date-time + - in: query + name: completed__before + schema: + type: string + format: date-time - in: query name: created + schema: + type: string + format: date-time + - in: query + name: created__after + schema: + type: string + format: date-time + - in: query + name: created__before + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: hash - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: hash__empty - schema: - type: boolean - - in: query - name: hash__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: hash__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: hash__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: hash__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: hash__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: hash__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: hash__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: hash__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: hash__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: id + name: interval schema: type: array items: @@ -7047,11 +6977,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: interval__empty schema: type: boolean - in: query - name: id__gt + name: interval__gt schema: type: array items: @@ -7060,7 +6990,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: interval__gte schema: type: array items: @@ -7069,7 +6999,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: interval__lt schema: type: array items: @@ -7078,7 +7008,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: interval__lte schema: type: array items: @@ -7087,7 +7017,7 @@ paths: explode: true style: form - in: query - name: id__n + name: interval__n schema: type: array items: @@ -7096,93 +7026,18 @@ paths: explode: true style: form - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request + name: job_id schema: type: string format: uuid - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: path + name: name schema: type: array items: @@ -7190,11 +7045,11 @@ paths: explode: true style: form - in: query - name: path__empty + name: name__empty schema: type: boolean - in: query - name: path__ic + name: name__ic schema: type: array items: @@ -7202,7 +7057,7 @@ paths: explode: true style: form - in: query - name: path__ie + name: name__ie schema: type: array items: @@ -7210,7 +7065,7 @@ paths: explode: true style: form - in: query - name: path__iew + name: name__iew schema: type: array items: @@ -7218,7 +7073,7 @@ paths: explode: true style: form - in: query - name: path__isw + name: name__isw schema: type: array items: @@ -7226,7 +7081,7 @@ paths: explode: true style: form - in: query - name: path__n + name: name__n schema: type: array items: @@ -7234,7 +7089,7 @@ paths: explode: true style: form - in: query - name: path__nic + name: name__nic schema: type: array items: @@ -7242,7 +7097,7 @@ paths: explode: true style: form - in: query - name: path__nie + name: name__nie schema: type: array items: @@ -7250,7 +7105,7 @@ paths: explode: true style: form - in: query - name: path__niew + name: name__niew schema: type: array items: @@ -7258,7 +7113,7 @@ paths: explode: true style: form - in: query - name: path__nisw + name: name__nisw schema: type: array items: @@ -7266,11 +7121,7 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - - in: query - name: size + name: object_id schema: type: array items: @@ -7279,11 +7130,11 @@ paths: explode: true style: form - in: query - name: size__empty + name: object_id__empty schema: type: boolean - in: query - name: size__gt + name: object_id__gt schema: type: array items: @@ -7292,7 +7143,7 @@ paths: explode: true style: form - in: query - name: size__gte + name: object_id__gte schema: type: array items: @@ -7301,7 +7152,7 @@ paths: explode: true style: form - in: query - name: size__lt + name: object_id__lt schema: type: array items: @@ -7310,7 +7161,7 @@ paths: explode: true style: form - in: query - name: size__lte + name: object_id__lte schema: type: array items: @@ -7319,7 +7170,7 @@ paths: explode: true style: form - in: query - name: size__n + name: object_id__n schema: type: array items: @@ -7328,46 +7179,86 @@ paths: explode: true style: form - in: query - name: source + name: object_type schema: - type: array - items: - type: string - description: Data source (name) - explode: true - style: form + type: integer - in: query - name: source__n + name: object_type__n + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: scheduled + schema: + type: string + format: date-time + - in: query + name: scheduled__after + schema: + type: string + format: date-time + - in: query + name: scheduled__before + schema: + type: string + format: date-time + - in: query + name: started + schema: + type: string + format: date-time + - in: query + name: started__after + schema: + type: string + format: date-time + - in: query + name: started__before + schema: + type: string + format: date-time + - in: query + name: status schema: type: array items: type: string - description: Data source (name) + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query - name: source_id + name: status__n schema: type: array items: - type: integer - description: Data source (ID) + type: string + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query - name: source_id__n + name: user schema: - type: array - items: - type: integer - description: Data source (ID) - explode: true - style: form + type: integer - in: query - name: updated_by_request + name: user__n schema: - type: string - format: uuid + type: integer tags: - core security: @@ -7378,18 +7269,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataFileList' + $ref: '#/components/schemas/PaginatedJobList' description: '' - /api/core/data-files/{id}/: + /api/core/jobs/{id}/: get: - operationId: core_data_files_retrieve - description: Get a data file object. + operationId: core_jobs_retrieve + description: Retrieve a list of job results parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data file. + description: A unique integer value identifying this job. required: true tags: - core @@ -7401,13 +7292,45 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataFile' + $ref: '#/components/schemas/Job' description: '' - /api/core/data-sources/: + /api/dcim/cable-terminations/: get: - operationId: core_data_sources_list - description: Get a list of data source objects. + operationId: dcim_cable_terminations_list + description: Get a list of cable termination objects. parameters: + - in: query + name: cable + schema: + type: integer + - in: query + name: cable__n + schema: + type: integer + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + title: End + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + title: End + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query name: created schema: @@ -7476,94 +7399,6 @@ paths: schema: type: string format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -7622,64 +7457,6 @@ paths: format: int32 explode: true style: form - - in: query - name: last_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__empty - schema: - type: boolean - - in: query - name: last_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - in: query name: last_updated schema: @@ -7754,90 +7531,6 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - name: offset required: false in: query @@ -7851,149 +7544,78 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: source_url + name: termination_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: source_url__empty + name: termination_id__empty schema: type: boolean - in: query - name: source_url__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: source_url__nisw + name: termination_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: status + name: termination_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: status__n + name: termination_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag + name: termination_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: termination_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: type + name: termination_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: type__n + name: termination_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query name: updated_by_request schema: type: string format: uuid tags: - - core + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -8002,21 +7624,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataSourceList' + $ref: '#/components/schemas/PaginatedCableTerminationList' description: '' post: - operationId: core_data_sources_create - description: Post a list of data source objects. + operationId: dcim_cable_terminations_create + description: Post a list of cable termination objects. tags: - - core + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -8026,25 +7648,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/CableTermination' description: '' put: - operationId: core_data_sources_bulk_update - description: Put a list of data source objects. + operationId: dcim_cable_terminations_bulk_update + description: Put a list of cable termination objects. tags: - - core + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -8056,25 +7678,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/CableTermination' description: '' patch: - operationId: core_data_sources_bulk_partial_update - description: Patch a list of data source objects. + operationId: dcim_cable_terminations_bulk_partial_update + description: Patch a list of cable termination objects. tags: - - core + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -8086,25 +7708,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/CableTermination' description: '' delete: - operationId: core_data_sources_bulk_destroy - description: Delete a list of data source objects. + operationId: dcim_cable_terminations_bulk_destroy + description: Delete a list of cable termination objects. tags: - - core + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -8112,19 +7734,19 @@ paths: responses: '204': description: No response body - /api/core/data-sources/{id}/: + /api/dcim/cable-terminations/{id}/: get: - operationId: core_data_sources_retrieve - description: Get a data source object. + operationId: dcim_cable_terminations_retrieve + description: Get a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this cable termination. required: true tags: - - core + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -8133,28 +7755,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/CableTermination' description: '' put: - operationId: core_data_sources_update - description: Put a data source object. + operationId: dcim_cable_terminations_update + description: Put a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this cable termination. required: true tags: - - core + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -8164,28 +7786,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/CableTermination' description: '' patch: - operationId: core_data_sources_partial_update - description: Patch a data source object. + operationId: dcim_cable_terminations_partial_update + description: Patch a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this cable termination. required: true tags: - - core + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedCableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedCableTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -8194,95 +7816,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/CableTermination' description: '' delete: - operationId: core_data_sources_destroy - description: Delete a data source object. + operationId: dcim_cable_terminations_destroy + description: Delete a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this cable termination. required: true tags: - - core + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/core/data-sources/{id}/sync/: - post: - operationId: core_data_sources_sync_create - description: Enqueue a job to synchronize the DataSource. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this data source. - required: true - tags: - - core - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DataSource' - description: '' - /api/core/jobs/: + /api/dcim/cables/: get: - operationId: core_jobs_list - description: Retrieve a list of job results + operationId: dcim_cables_list + description: Get a list of cable objects. parameters: - in: query - name: completed - schema: - type: string - format: date-time - - in: query - name: completed__after - schema: - type: string - format: date-time - - in: query - name: completed__before - schema: - type: string - format: date-time - - in: query - name: created - schema: - type: string - format: date-time - - in: query - name: created__after - schema: - type: string - format: date-time - - in: query - name: created__before - schema: - type: string - format: date-time - - in: query - name: id + name: circuittermination_id schema: type: array items: @@ -8291,29 +7851,23 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: consoleport_id schema: type: array items: @@ -8322,7 +7876,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: consoleserverport_id schema: type: array items: @@ -8331,85 +7885,75 @@ paths: explode: true style: form - in: query - name: id__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__empty - schema: - type: boolean - - in: query - name: interval__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: job_id + name: created_by_request schema: type: string format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: name + name: description schema: type: array items: @@ -8417,11 +7961,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -8429,7 +7973,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -8437,7 +7981,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -8445,7 +7989,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -8453,7 +7997,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -8461,7 +8005,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -8469,7 +8013,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -8477,7 +8021,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -8485,7 +8029,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: @@ -8493,20 +8037,15 @@ paths: explode: true style: form - in: query - name: object_id + name: device schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: device_id schema: type: array items: @@ -8515,7 +8054,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: frontport_id schema: type: array items: @@ -8524,7 +8063,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: id schema: type: array items: @@ -8533,7 +8072,11 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -8542,7 +8085,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: id__gte schema: type: array items: @@ -8551,178 +8094,7 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: integer - - in: query - name: object_type__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: scheduled - schema: - type: string - format: date-time - - in: query - name: scheduled__after - schema: - type: string - format: date-time - - in: query - name: scheduled__before - schema: - type: string - format: date-time - - in: query - name: started - schema: - type: string - format: date-time - - in: query - name: started__after - schema: - type: string - format: date-time - - in: query - name: started__before - schema: - type: string - format: date-time - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: user - schema: - type: integer - - in: query - name: user__n - schema: - type: integer - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJobList' - description: '' - /api/core/jobs/{id}/: - get: - operationId: core_jobs_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this job. - required: true - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Job' - description: '' - /api/core/object-changes/: - get: - operationId: core_object_changes_list - description: Retrieve a list of recent changes. - parameters: - - in: query - name: action - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: action__n - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: changed_object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: changed_object_id__empty - schema: - type: boolean - - in: query - name: changed_object_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: changed_object_id__gte + name: id__lt schema: type: array items: @@ -8731,7 +8103,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__lt + name: id__lte schema: type: array items: @@ -8740,7 +8112,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__lte + name: id__n schema: type: array items: @@ -8749,7 +8121,7 @@ paths: explode: true style: form - in: query - name: changed_object_id__n + name: interface_id schema: type: array items: @@ -8758,95 +8130,67 @@ paths: explode: true style: form - in: query - name: changed_object_type - schema: - type: string - - in: query - name: changed_object_type__n - schema: - type: string - - in: query - name: changed_object_type_id + name: label schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: changed_object_type_id__n + name: label__empty schema: - type: array - items: - type: integer - explode: true - style: form + type: boolean - in: query - name: id + name: label__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: label__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: object_repr + name: label__nie schema: type: array items: @@ -8854,11 +8198,7 @@ paths: explode: true style: form - in: query - name: object_repr__empty - schema: - type: boolean - - in: query - name: object_repr__ic + name: label__niew schema: type: array items: @@ -8866,7 +8206,7 @@ paths: explode: true style: form - in: query - name: object_repr__ie + name: label__nisw schema: type: array items: @@ -8874,243 +8214,246 @@ paths: explode: true style: form - in: query - name: object_repr__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_repr__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_repr__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_repr__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_repr__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_repr__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: object_repr__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: related_object_id + name: length schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: related_object_id__empty + name: length__empty schema: type: boolean - in: query - name: related_object_id__gt + name: length__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: related_object_id__gte + name: length__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: related_object_id__lt + name: length__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: related_object_id__lte + name: length__lte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: related_object_id__n + name: length__n schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: related_object_type - schema: - type: integer - - in: query - name: related_object_type__n - schema: - type: integer - - in: query - name: request_id - schema: - type: string - format: uuid - - in: query - name: time_after + name: length_unit schema: type: string - format: date-time + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' - in: query - name: time_before + name: length_unit__n schema: type: string - format: date-time - - in: query - name: user + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - description: User name - explode: true - style: form + type: integer - in: query - name: user__n + name: location schema: type: array items: type: string - description: User name explode: true style: form - in: query - name: user_id + name: location_id schema: type: array items: type: integer - nullable: true - description: User (ID) + format: int32 explode: true style: form - in: query - name: user_id__n + name: modified_by_request schema: - type: array - items: - type: integer - nullable: true - description: User (ID) - explode: true - style: form - - in: query - name: user_name + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: user_name__empty + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: boolean + type: string - in: query - name: user_name__ic + name: powerfeed_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: user_name__ie + name: poweroutlet_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: user_name__iew + name: powerport_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: user_name__isw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: user_name__n + name: rack schema: type: array items: @@ -9118,23 +8461,25 @@ paths: explode: true style: form - in: query - name: user_name__nic + name: rack_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: user_name__nie + name: rearport_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: user_name__niew + name: site schema: type: array items: @@ -9142,204 +8487,124 @@ paths: explode: true style: form - in: query - name: user_name__nisw + name: site_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedObjectChangeList' - description: '' - /api/core/object-changes/{id}/: - get: - operationId: core_object_changes_retrieve - description: Retrieve a list of recent changes. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this object change. - required: true - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ObjectChange' - description: '' - /api/dcim/cable-terminations/: - get: - operationId: dcim_cable_terminations_list - description: Get a list of cable termination objects. - parameters: - in: query - name: cable - schema: - type: integer - - in: query - name: cable__n - schema: - type: integer - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: created + name: status schema: type: array items: type: string - format: date-time + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: created__empty + name: status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: created__gt + name: tag schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: tag__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: tenant schema: type: array items: type: string - format: date-time + description: Tenant (slug) explode: true style: form - in: query - name: created__lte + name: tenant__n schema: type: array items: type: string - format: date-time + description: Tenant (slug) explode: true style: form - in: query - name: created__n + name: tenant_group schema: type: array items: - type: string - format: date-time + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: id + name: tenant_group__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (slug) explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: tenant_group_id schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: id__gte + name: tenant_group_id__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: id__lt + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: id__lte + name: tenant_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: id__n + name: termination_a_id schema: type: array items: @@ -9348,106 +8613,15 @@ paths: explode: true style: form - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + name: termination_a_type schema: type: string - in: query - name: termination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__empty + name: termination_a_type__n schema: - type: boolean + type: string - in: query - name: termination_id__gt + name: termination_b_id schema: type: array items: @@ -9456,49 +8630,36 @@ paths: explode: true style: form - in: query - name: termination_id__gte + name: termination_b_type schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__lt + name: termination_b_type__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: termination_id__lte + name: type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query - name: termination_id__n + name: type__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n + name: unterminated schema: - type: string + type: boolean + description: Unterminated - in: query name: updated_by_request schema: @@ -9514,22 +8675,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableTerminationList' + $ref: '#/components/schemas/PaginatedCableList' description: '' post: - operationId: dcim_cable_terminations_create - description: Post a list of cable termination objects. + operationId: dcim_cables_create + description: Post a list of cable objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -9538,11 +8698,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_cable_terminations_bulk_update - description: Put a list of cable termination objects. + operationId: dcim_cables_bulk_update + description: Put a list of cable objects. tags: - dcim requestBody: @@ -9551,12 +8711,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -9568,11 +8728,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_cable_terminations_bulk_partial_update - description: Patch a list of cable termination objects. + operationId: dcim_cables_bulk_partial_update + description: Patch a list of cable objects. tags: - dcim requestBody: @@ -9581,12 +8741,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -9598,11 +8758,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_cable_terminations_bulk_destroy - description: Delete a list of cable termination objects. + operationId: dcim_cables_bulk_destroy + description: Delete a list of cable objects. tags: - dcim requestBody: @@ -9611,12 +8771,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -9624,16 +8784,16 @@ paths: responses: '204': description: No response body - /api/dcim/cable-terminations/{id}/: + /api/dcim/cables/{id}/: get: - operationId: dcim_cable_terminations_retrieve - description: Get a cable termination object. + operationId: dcim_cables_retrieve + description: Get a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -9645,17 +8805,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_cable_terminations_update - description: Put a cable termination object. + operationId: dcim_cables_update + description: Put a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -9663,11 +8823,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTerminationRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -9676,17 +8835,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_cable_terminations_partial_update - description: Patch a cable termination object. + operationId: dcim_cables_partial_update + description: Patch a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -9694,10 +8853,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -9706,17 +8865,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_cable_terminations_destroy - description: Delete a cable termination object. + operationId: dcim_cables_destroy + description: Delete a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -9726,54 +8885,54 @@ paths: responses: '204': description: No response body - /api/dcim/cables/: + /api/dcim/connected-device/: get: - operationId: dcim_cables_list - description: Get a list of cable objects. + operationId: dcim_connected_device_list + description: 'This endpoint allows a user to determine what device (if any) + is connected to a given peer device and peer + + interface. This is useful in a situation where a device boots with no configuration, + but can detect its neighbors + + via a protocol such as LLDP. Two query parameters must be included in the + request: + + + * `peer_device`: The name of the peer device + + * `peer_interface`: The name of the peer interface' parameters: - in: query - name: circuittermination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: consoleport_id + name: peer_device schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: The name of the peer device + required: true - in: query - name: consoleserverport_id + name: peer_interface schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: The name of the peer interface + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Device' + description: '' + /api/dcim/console-port-templates/: + get: + operationId: dcim_console_port_templates_list + description: Get a list of console port template objects. + parameters: - in: query name: created schema: @@ -9927,29 +9086,43 @@ paths: explode: true style: form - in: query - name: device + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: device_id + name: device_type_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: frontport_id + name: devicetype_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: devicetype_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query @@ -10010,15 +9183,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: label schema: @@ -10166,279 +9330,111 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: length + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_type_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: length__empty + name: module_type_id__n schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query - name: length__gt + name: moduletype_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: length__gte + name: moduletype_id__n schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: length__lt + name: name schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lte + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__n + name: name__ie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length_unit + name: name__iew schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' + type: array + items: + type: string + explode: true + style: form - in: query - name: length_unit__n - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: powerfeed_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: poweroutlet_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: powerport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: rearport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: fbc2f302c08be50d - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: fbc2f302c08be50d - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant + name: name__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nic schema: type: array items: @@ -10446,7 +9442,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: name__nie schema: type: array items: @@ -10454,7 +9450,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: name__niew schema: type: array items: @@ -10462,90 +9458,68 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: termination_a_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_a_type - schema: - type: string - - in: query - name: termination_a_type__n - schema: - type: string - - in: query - name: termination_b_id + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_b_type + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: termination_b_type__n + name: q schema: type: string + description: Search - in: query name: type schema: - type: array - items: - type: string - x-spec-enum-id: 7b11d524b2b1a7ef - explode: true - style: form + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' - in: query name: type__n schema: - type: array - items: - type: string - x-spec-enum-id: 7b11d524b2b1a7ef - explode: true - style: form - - in: query - name: unterminated - schema: - type: boolean - description: Unterminated + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -10561,21 +9535,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableList' + $ref: '#/components/schemas/PaginatedConsolePortTemplateList' description: '' post: - operationId: dcim_cables_create - description: Post a list of cable objects. + operationId: dcim_console_port_templates_create + description: Post a list of console port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -10584,11 +9559,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_cables_bulk_update - description: Put a list of cable objects. + operationId: dcim_console_port_templates_bulk_update + description: Put a list of console port template objects. tags: - dcim requestBody: @@ -10597,12 +9572,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -10614,11 +9589,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_cables_bulk_partial_update - description: Patch a list of cable objects. + operationId: dcim_console_port_templates_bulk_partial_update + description: Patch a list of console port template objects. tags: - dcim requestBody: @@ -10627,12 +9602,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -10644,11 +9619,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_cables_bulk_destroy - description: Delete a list of cable objects. + operationId: dcim_console_port_templates_bulk_destroy + description: Delete a list of console port template objects. tags: - dcim requestBody: @@ -10657,12 +9632,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -10670,16 +9645,16 @@ paths: responses: '204': description: No response body - /api/dcim/cables/{id}/: + /api/dcim/console-port-templates/{id}/: get: - operationId: dcim_cables_retrieve - description: Get a cable object. + operationId: dcim_console_port_templates_retrieve + description: Get a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -10691,17 +9666,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_cables_update - description: Put a cable object. + operationId: dcim_console_port_templates_update + description: Put a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -10709,10 +9684,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -10721,17 +9697,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_cables_partial_update - description: Patch a cable object. + operationId: dcim_console_port_templates_partial_update + description: Patch a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -10739,10 +9715,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10751,17 +9727,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_cables_destroy - description: Delete a cable object. + operationId: dcim_console_port_templates_destroy + description: Delete a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -10771,54 +9747,61 @@ paths: responses: '204': description: No response body - /api/dcim/connected-device/: + /api/dcim/console-ports/: get: - operationId: dcim_connected_device_list - description: 'This endpoint allows a user to determine what device (if any) - is connected to a given peer device and peer - - interface. This is useful in a situation where a device boots with no configuration, - but can detect its neighbors - - via a protocol such as LLDP. Two query parameters must be included in the - request: - - - * `peer_device`: The name of the peer device - - * `peer_interface`: The name of the peer interface' + operationId: dcim_console_ports_list + description: Get a list of console port objects. parameters: - in: query - name: peer_device + name: cable_end schema: type: string - description: The name of the peer device - required: true + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: peer_interface + name: cable_end__n schema: type: string - description: The name of the peer interface - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Device' - description: '' - /api/dcim/console-port-templates/: - get: - operationId: dcim_console_port_templates_list - description: Get a list of console port template objects. - parameters: + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -10971,13 +9954,68 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query name: device_type_id schema: type: array items: type: integer - nullable: true description: Device type (ID) explode: true style: form @@ -10987,7 +10025,6 @@ paths: type: array items: type: integer - nullable: true description: Device type (ID) explode: true style: form @@ -11202,29 +10239,69 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: module_type_id + name: module_id schema: type: array items: type: integer nullable: true - description: Module type (ID) + description: Module (ID) explode: true style: form - in: query - name: module_type_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Module type (ID) + description: Module (ID) explode: true style: form - in: query @@ -11311,6 +10388,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -11329,48 +10410,328 @@ paths: type: string description: Search - in: query - name: type + name: rack schema: - type: string - x-spec-enum-id: c5f7197b7211818a + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: speed + schema: + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - * `Other` - [(''other'', ''Other'')]' + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: type__n + name: speed__n schema: - type: string - x-spec-enum-id: c5f7197b7211818a + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - * `Other` - [(''other'', ''Other'')]' + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -11381,21 +10742,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortTemplateList' + $ref: '#/components/schemas/PaginatedConsolePortList' description: '' post: - operationId: dcim_console_port_templates_create - description: Post a list of console port template objects. + operationId: dcim_console_ports_create + description: Post a list of console port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -11405,11 +10766,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_port_templates_bulk_update - description: Put a list of console port template objects. + operationId: dcim_console_ports_bulk_update + description: Put a list of console port objects. tags: - dcim requestBody: @@ -11418,12 +10779,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -11435,11 +10796,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_port_templates_bulk_partial_update - description: Patch a list of console port template objects. + operationId: dcim_console_ports_bulk_partial_update + description: Patch a list of console port objects. tags: - dcim requestBody: @@ -11448,12 +10809,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -11465,11 +10826,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_port_templates_bulk_destroy - description: Delete a list of console port template objects. + operationId: dcim_console_ports_bulk_destroy + description: Delete a list of console port objects. tags: - dcim requestBody: @@ -11478,12 +10839,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -11491,16 +10852,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-port-templates/{id}/: + /api/dcim/console-ports/{id}/: get: - operationId: dcim_console_port_templates_retrieve - description: Get a console port template object. + operationId: dcim_console_ports_retrieve + description: Get a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -11512,17 +10873,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_port_templates_update - description: Put a console port template object. + operationId: dcim_console_ports_update + description: Put a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -11530,10 +10891,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -11543,17 +10904,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_port_templates_partial_update - description: Patch a console port template object. + operationId: dcim_console_ports_partial_update + description: Patch a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -11561,10 +10922,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -11573,17 +10934,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_port_templates_destroy - description: Delete a console port template object. + operationId: dcim_console_ports_destroy + description: Delete a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -11593,63 +10954,37 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/: + /api/dcim/console-ports/{id}/trace/: get: - operationId: dcim_console_ports_list - description: Get a list of console port objects. + operationId: dcim_console_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: cable_end + - in: path + name: id schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: integer + description: A unique integer value identifying this console port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsolePort' + description: '' + /api/dcim/console-server-port-templates/: + get: + operationId: dcim_console_server_port_templates_list + description: Get a list of console server port template objects. + parameters: - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - - in: query - name: created + name: created schema: type: array items: @@ -11801,130 +11136,42 @@ paths: explode: true style: form - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role_id + name: device_type_id schema: type: array items: type: integer - description: Device role (ID) + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: device_role_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_status - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: device_type_id + name: devicetype_id schema: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form - in: query - name: device_type_id__n + name: devicetype_id__n schema: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -12140,68 +11387,48 @@ paths: schema: type: integer - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n + name: modified_by_request schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: location_id + name: module_type_id schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: location_id__n + name: module_type_id__n schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id + name: moduletype_id schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Module type (ID) explode: true style: form - in: query - name: module_id__n + name: moduletype_id__n schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Module type (ID) explode: true style: form - in: query @@ -12288,10 +11515,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -12310,284 +11533,48 @@ paths: type: string description: Search - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: speed + name: type schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true + type: string + x-spec-enum-id: c5f7197b7211818a enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] - * `57600` - 57.6 kbps + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] - * `115200` - 115.2 kbps' + * `Other` - [(''other'', ''Other'')]' - in: query - name: speed__n + name: type__n schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true + type: string + x-spec-enum-id: c5f7197b7211818a enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] - * `57600` - 57.6 kbps + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] - * `115200` - 115.2 kbps' - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type - explode: true - style: form + * `Other` - [(''other'', ''Other'')]' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -12598,21 +11585,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortList' + $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' description: '' post: - operationId: dcim_console_ports_create - description: Post a list of console port objects. + operationId: dcim_console_server_port_templates_create + description: Post a list of console server port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -12622,11 +11609,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_console_ports_bulk_update - description: Put a list of console port objects. + operationId: dcim_console_server_port_templates_bulk_update + description: Put a list of console server port template objects. tags: - dcim requestBody: @@ -12635,12 +11622,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -12652,11 +11639,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_console_ports_bulk_partial_update - description: Patch a list of console port objects. + operationId: dcim_console_server_port_templates_bulk_partial_update + description: Patch a list of console server port template objects. tags: - dcim requestBody: @@ -12665,12 +11652,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -12682,11 +11669,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_console_ports_bulk_destroy - description: Delete a list of console port objects. + operationId: dcim_console_server_port_templates_bulk_destroy + description: Delete a list of console server port template objects. tags: - dcim requestBody: @@ -12695,12 +11682,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -12708,16 +11695,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/: + /api/dcim/console-server-port-templates/{id}/: get: - operationId: dcim_console_ports_retrieve - description: Get a console port object. + operationId: dcim_console_server_port_templates_retrieve + description: Get a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -12729,17 +11716,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_console_ports_update - description: Put a console port object. + operationId: dcim_console_server_port_templates_update + description: Put a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -12747,10 +11734,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -12760,17 +11747,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_console_ports_partial_update - description: Patch a console port object. + operationId: dcim_console_server_port_templates_partial_update + description: Patch a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -12778,10 +11765,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -12790,17 +11777,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_console_ports_destroy - description: Delete a console port object. + operationId: dcim_console_server_port_templates_destroy + description: Delete a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -12810,35 +11797,61 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/trace/: + /api/dcim/console-server-ports/: get: - operationId: dcim_console_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_console_server_ports_list + description: Get a list of console server port objects. parameters: - - in: path - name: id + - in: query + name: cable_end schema: - type: integer - description: A unique integer value identifying this console port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePort' - description: '' - /api/dcim/console-server-port-templates/: - get: - operationId: dcim_console_server_port_templates_list - description: Get a list of console server port template objects. - parameters: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -12991,13 +12004,68 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query name: device_type_id schema: type: array items: type: integer - nullable: true description: Device type (ID) explode: true style: form @@ -13007,7 +12075,6 @@ paths: type: array items: type: integer - nullable: true description: Device type (ID) explode: true style: form @@ -13222,29 +12289,69 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: module_type_id + name: module_id schema: type: array items: type: integer nullable: true - description: Module type (ID) + description: Module (ID) explode: true style: form - in: query - name: module_type_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Module type (ID) + description: Module (ID) explode: true style: form - in: query @@ -13331,6 +12438,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -13349,73 +12460,353 @@ paths: type: string description: Search - in: query - name: type + name: rack schema: - type: string - x-spec-enum-id: c5f7197b7211818a + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: speed + schema: + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - * `Other` - [(''other'', ''Other'')]' + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: type__n + name: speed__n schema: - type: string - x-spec-enum-id: c5f7197b7211818a + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - * `Other` - [(''other'', ''Other'')]' + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' - in: query - name: updated_by_request + name: tag schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedConsoleServerPortList' description: '' post: - operationId: dcim_console_server_port_templates_create - description: Post a list of console server port template objects. + operationId: dcim_console_server_ports_create + description: Post a list of console server port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -13425,11 +12816,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_console_server_port_templates_bulk_update - description: Put a list of console server port template objects. + operationId: dcim_console_server_ports_bulk_update + description: Put a list of console server port objects. tags: - dcim requestBody: @@ -13438,12 +12829,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -13455,11 +12846,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_console_server_port_templates_bulk_partial_update - description: Patch a list of console server port template objects. + operationId: dcim_console_server_ports_bulk_partial_update + description: Patch a list of console server port objects. tags: - dcim requestBody: @@ -13468,12 +12859,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -13485,11 +12876,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_console_server_port_templates_bulk_destroy - description: Delete a list of console server port template objects. + operationId: dcim_console_server_ports_bulk_destroy + description: Delete a list of console server port objects. tags: - dcim requestBody: @@ -13498,12 +12889,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -13511,16 +12902,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-port-templates/{id}/: + /api/dcim/console-server-ports/{id}/: get: - operationId: dcim_console_server_port_templates_retrieve - description: Get a console server port template object. + operationId: dcim_console_server_ports_retrieve + description: Get a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -13532,17 +12923,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_console_server_port_templates_update - description: Put a console server port template object. + operationId: dcim_console_server_ports_update + description: Put a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -13550,10 +12941,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -13563,17 +12954,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_console_server_port_templates_partial_update - description: Patch a console server port template object. + operationId: dcim_console_server_ports_partial_update + description: Patch a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -13581,10 +12972,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13593,17 +12984,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_console_server_port_templates_destroy - description: Delete a console server port template object. + operationId: dcim_console_server_ports_destroy + description: Delete a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -13613,61 +13004,35 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/: + /api/dcim/console-server-ports/{id}/trace/: get: - operationId: dcim_console_server_ports_list - description: Get a list of console server port objects. + operationId: dcim_console_server_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected + - in: path + name: id schema: - type: boolean + type: integer + description: A unique integer value identifying this console server port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPort' + description: '' + /api/dcim/device-bay-templates/: + get: + operationId: dcim_device_bay_templates_list + description: Get a list of device bay template objects. + parameters: - in: query name: created schema: @@ -13821,117 +13186,25 @@ paths: explode: true style: form - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role_id + name: device_type_id schema: type: array items: type: integer - description: Device role (ID) + description: Device type (ID) explode: true style: form - in: query - name: device_role_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_status - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) + description: Device type (ID) explode: true style: form - in: query - name: device_type_id + name: devicetype_id schema: type: array items: @@ -13940,7 +13213,7 @@ paths: explode: true style: form - in: query - name: device_type_id__n + name: devicetype_id__n schema: type: array items: @@ -14159,71 +13432,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - in: query name: name schema: @@ -14308,10 +13521,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -14329,285 +13538,11 @@ paths: schema: type: string description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: speed - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' - - in: query - name: speed__n - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -14618,21 +13553,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortList' + $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' description: '' post: - operationId: dcim_console_server_ports_create - description: Post a list of console server port objects. + operationId: dcim_device_bay_templates_create + description: Post a list of device bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -14642,11 +13577,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_console_server_ports_bulk_update - description: Put a list of console server port objects. + operationId: dcim_device_bay_templates_bulk_update + description: Put a list of device bay template objects. tags: - dcim requestBody: @@ -14655,12 +13590,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -14672,11 +13607,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_console_server_ports_bulk_partial_update - description: Patch a list of console server port objects. + operationId: dcim_device_bay_templates_bulk_partial_update + description: Patch a list of device bay template objects. tags: - dcim requestBody: @@ -14685,12 +13620,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -14702,11 +13637,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_console_server_ports_bulk_destroy - description: Delete a list of console server port objects. + operationId: dcim_device_bay_templates_bulk_destroy + description: Delete a list of device bay template objects. tags: - dcim requestBody: @@ -14715,12 +13650,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -14728,16 +13663,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/: + /api/dcim/device-bay-templates/{id}/: get: - operationId: dcim_console_server_ports_retrieve - description: Get a console server port object. + operationId: dcim_device_bay_templates_retrieve + description: Get a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -14749,17 +13684,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_console_server_ports_update - description: Put a console server port object. + operationId: dcim_device_bay_templates_update + description: Put a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -14767,10 +13702,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -14780,17 +13715,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_console_server_ports_partial_update - description: Patch a console server port object. + operationId: dcim_device_bay_templates_partial_update + description: Patch a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -14798,10 +13733,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -14810,17 +13745,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_console_server_ports_destroy - description: Delete a console server port object. + operationId: dcim_device_bay_templates_destroy + description: Delete a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -14830,34 +13765,10 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/trace/: - get: - operationId: dcim_console_server_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this console server port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsoleServerPort' - description: '' - /api/dcim/device-bay-templates/: + /api/dcim/device-bays/: get: - operationId: dcim_device_bay_templates_list - description: Get a list of device bay template objects. + operationId: dcim_device_bays_list + description: Get a list of device bay objects. parameters: - in: query name: created @@ -15011,6 +13922,62 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query name: device_type_id schema: @@ -15087,6 +14054,46 @@ paths: format: int32 explode: true style: form + - in: query + name: installed_device + schema: + type: array + items: + type: string + nullable: true + description: Installed device (name) + explode: true + style: form + - in: query + name: installed_device__n + schema: + type: array + items: + type: string + nullable: true + description: Installed device (name) + explode: true + style: form + - in: query + name: installed_device_id + schema: + type: array + items: + type: integer + nullable: true + description: Installed device (ID) + explode: true + style: form + - in: query + name: installed_device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Installed device (ID) + explode: true + style: form - in: query name: label schema: @@ -15240,6 +14247,42 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form - in: query name: modified_by_request schema: @@ -15346,11 +14389,243 @@ paths: schema: type: string description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -15361,21 +14636,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' + $ref: '#/components/schemas/PaginatedDeviceBayList' description: '' post: - operationId: dcim_device_bay_templates_create - description: Post a list of device bay template objects. + operationId: dcim_device_bays_create + description: Post a list of device bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -15385,11 +14660,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_bay_templates_bulk_update - description: Put a list of device bay template objects. + operationId: dcim_device_bays_bulk_update + description: Put a list of device bay objects. tags: - dcim requestBody: @@ -15398,12 +14673,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -15415,11 +14690,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_bay_templates_bulk_partial_update - description: Patch a list of device bay template objects. + operationId: dcim_device_bays_bulk_partial_update + description: Patch a list of device bay objects. tags: - dcim requestBody: @@ -15428,12 +14703,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -15445,11 +14720,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_bay_templates_bulk_destroy - description: Delete a list of device bay template objects. + operationId: dcim_device_bays_bulk_destroy + description: Delete a list of device bay objects. tags: - dcim requestBody: @@ -15458,12 +14733,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -15471,16 +14746,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bay-templates/{id}/: + /api/dcim/device-bays/{id}/: get: - operationId: dcim_device_bay_templates_retrieve - description: Get a device bay template object. + operationId: dcim_device_bays_retrieve + description: Get a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -15492,17 +14767,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_bay_templates_update - description: Put a device bay template object. + operationId: dcim_device_bays_update + description: Put a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -15510,10 +14785,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -15523,17 +14798,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_bay_templates_partial_update - description: Patch a device bay template object. + operationId: dcim_device_bays_partial_update + description: Patch a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -15541,10 +14816,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -15553,17 +14828,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_bay_templates_destroy - description: Delete a device bay template object. + operationId: dcim_device_bays_destroy + description: Delete a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -15573,81 +14848,73 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/: + /api/dcim/device-roles/: get: - operationId: dcim_device_bays_list - description: Get a list of device bay objects. + operationId: dcim_device_roles_list + description: Get a list of device role objects. parameters: - in: query - name: created + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: color__nie schema: type: array items: @@ -15655,11 +14922,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__niew schema: type: array items: @@ -15667,7 +14930,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nisw schema: type: array items: @@ -15675,200 +14938,188 @@ paths: explode: true style: form - in: query - name: description__iew + name: config_template_id schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: description__isw + name: config_template_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: description__n + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created__lte schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device__n + name: created__n schema: type: array items: type: string - nullable: true - description: Device (name) + format: date-time explode: true style: form - in: query - name: device_id + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_role + name: description__ie schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: device_role__n + name: description__iew schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: device_role_id + name: description__isw schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: device_role_id__n + name: description__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: device_status + name: description__nic schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_status__n + name: description__nie schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_type + name: description__niew schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: description__nisw schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: id schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty + name: id__empty schema: type: boolean - in: query @@ -15916,130 +15167,6 @@ paths: format: int32 explode: true style: form - - in: query - name: installed_device - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device__n - schema: - type: array - items: - type: string - nullable: true - description: Installed device (name) - explode: true - style: form - - in: query - name: installed_device_id - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - - in: query - name: installed_device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Installed device (ID) - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: last_updated schema: @@ -16109,42 +15236,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - in: query name: modified_by_request schema: @@ -16252,51 +15343,19 @@ paths: type: string description: Search - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n + name: slug schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) explode: true style: form - in: query - name: region + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: region__n + name: slug__ic schema: type: array items: @@ -16304,7 +15363,7 @@ paths: explode: true style: form - in: query - name: region_id + name: slug__ie schema: type: array items: @@ -16312,7 +15371,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: slug__iew schema: type: array items: @@ -16320,25 +15379,23 @@ paths: explode: true style: form - in: query - name: site + name: slug__isw schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: slug__nic schema: type: array items: @@ -16346,7 +15403,7 @@ paths: explode: true style: form - in: query - name: site_group__n + name: slug__nie schema: type: array items: @@ -16354,7 +15411,7 @@ paths: explode: true style: form - in: query - name: site_group_id + name: slug__niew schema: type: array items: @@ -16362,31 +15419,13 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: slug__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -16409,41 +15448,9 @@ paths: type: string format: uuid - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n + name: vm_role schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form + type: boolean tags: - dcim security: @@ -16454,21 +15461,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayList' + $ref: '#/components/schemas/PaginatedDeviceRoleList' description: '' post: - operationId: dcim_device_bays_create - description: Post a list of device bay objects. + operationId: dcim_device_roles_create + description: Post a list of device role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -16478,11 +15485,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/DeviceRole' description: '' put: - operationId: dcim_device_bays_bulk_update - description: Put a list of device bay objects. + operationId: dcim_device_roles_bulk_update + description: Put a list of device role objects. tags: - dcim requestBody: @@ -16491,12 +15498,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -16508,11 +15515,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/DeviceRole' description: '' patch: - operationId: dcim_device_bays_bulk_partial_update - description: Patch a list of device bay objects. + operationId: dcim_device_roles_bulk_partial_update + description: Patch a list of device role objects. tags: - dcim requestBody: @@ -16521,12 +15528,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -16538,11 +15545,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/DeviceRole' description: '' delete: - operationId: dcim_device_bays_bulk_destroy - description: Delete a list of device bay objects. + operationId: dcim_device_roles_bulk_destroy + description: Delete a list of device role objects. tags: - dcim requestBody: @@ -16551,12 +15558,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -16564,16 +15571,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/{id}/: + /api/dcim/device-roles/{id}/: get: - operationId: dcim_device_bays_retrieve - description: Get a device bay object. + operationId: dcim_device_roles_retrieve + description: Get a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -16585,17 +15592,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/DeviceRole' description: '' put: - operationId: dcim_device_bays_update - description: Put a device bay object. + operationId: dcim_device_roles_update + description: Put a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -16603,10 +15610,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/DeviceRoleRequest' required: true security: - cookieAuth: [] @@ -16616,17 +15623,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/DeviceRole' description: '' patch: - operationId: dcim_device_bays_partial_update - description: Patch a device bay object. + operationId: dcim_device_roles_partial_update + description: Patch a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -16634,10 +15641,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedDeviceRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedDeviceRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -16646,17 +15653,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/DeviceRole' description: '' delete: - operationId: dcim_device_bays_destroy - description: Delete a device bay object. + operationId: dcim_device_roles_destroy + description: Delete a device role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this device role. required: true tags: - dcim @@ -16666,115 +15673,189 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/: + /api/dcim/device-types/: get: - operationId: dcim_device_roles_list - description: Get a list of device role objects. + operationId: dcim_device_types_list + description: Get a list of device type objects. parameters: - in: query - name: color + name: airflow + schema: + type: string + x-spec-enum-id: 58e389e240a5e53d + enum: + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + - in: query + name: airflow__n + schema: + type: string + x-spec-enum-id: 58e389e240a5e53d + enum: + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + - in: query + name: console_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: console_port_template_count__empty schema: type: boolean - in: query - name: color__ic + name: console_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__ie + name: console_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__iew + name: console_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__isw + name: console_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__n + name: console_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: console_ports + schema: + type: boolean + description: Has console ports + - in: query + name: console_server_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nie + name: console_server_port_template_count__empty + schema: + type: boolean + - in: query + name: console_server_port_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: console_server_port_template_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: console_server_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: config_template_id + name: console_server_port_template_count__lte schema: type: array items: type: integer - nullable: true - description: Config template (ID) + format: int32 explode: true style: form - in: query - name: config_template_id__n + name: console_server_port_template_count__n schema: type: array items: type: integer - nullable: true - description: Config template (ID) + format: int32 explode: true style: form + - in: query + name: console_server_ports + schema: + type: boolean + description: Has console server ports - in: query name: created schema: @@ -16843,6 +15924,44 @@ paths: schema: type: string format: uuid + - in: query + name: default_platform + schema: + type: array + items: + type: string + description: Default platform (slug) + explode: true + style: form + - in: query + name: default_platform__n + schema: + type: array + items: + type: string + description: Default platform (slug) + explode: true + style: form + - in: query + name: default_platform_id + schema: + type: array + items: + type: integer + nullable: true + description: Default platform (ID) + explode: true + style: form + - in: query + name: default_platform_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Default platform (ID) + explode: true + style: form - in: query name: description schema: @@ -16927,6 +16046,141 @@ paths: type: string explode: true style: form + - in: query + name: device_bay_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__empty + schema: + type: boolean + - in: query + name: device_bay_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bay_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: device_bays + schema: + type: boolean + description: Has device bays + - in: query + name: exclude_from_utilization + schema: + type: boolean + - in: query + name: front_port_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__empty + schema: + type: boolean + - in: query + name: front_port_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: front_port_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_front_image + schema: + type: boolean + description: Has a front image + - in: query + name: has_rear_image + schema: + type: boolean + description: Has a rear image - in: query name: id schema: @@ -16985,6 +16239,136 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_template_count__empty + schema: + type: boolean + - in: query + name: interface_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interfaces + schema: + type: boolean + description: Has interfaces + - in: query + name: inventory_item_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__empty + schema: + type: boolean + - in: query + name: inventory_item_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_item_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: inventory_items + schema: + type: boolean + description: Has inventory items + - in: query + name: is_full_depth + schema: + type: boolean - in: query name: last_updated schema: @@ -17055,24 +16439,55 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: manufacturer schema: - type: string - format: uuid + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form - in: query - name: name + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__empty + name: manufacturer_id + schema: + type: array + items: + type: integer + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: manufacturer_id__n + schema: + type: array + items: + type: integer + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: model + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: model__empty schema: type: boolean - in: query - name: name__ic + name: model__ic schema: type: array items: @@ -17080,7 +16495,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: model__ie schema: type: array items: @@ -17088,7 +16503,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: model__iew schema: type: array items: @@ -17096,7 +16511,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: model__isw schema: type: array items: @@ -17104,7 +16519,7 @@ paths: explode: true style: form - in: query - name: name__n + name: model__n schema: type: array items: @@ -17112,7 +16527,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: model__nic schema: type: array items: @@ -17120,7 +16535,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: model__nie schema: type: array items: @@ -17128,7 +16543,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: model__niew schema: type: array items: @@ -17136,13 +16551,81 @@ paths: explode: true style: form - in: query - name: name__nisw + name: model__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_bay_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: module_bay_template_count__empty + schema: + type: boolean + - in: query + name: module_bay_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: module_bay_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: module_bay_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: module_bay_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: module_bay_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: module_bays + schema: + type: boolean + description: Has module bays - name: offset required: false in: query @@ -17156,12 +16639,7 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: part_number schema: type: array items: @@ -17169,11 +16647,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: part_number__empty schema: type: boolean - in: query - name: slug__ic + name: part_number__ic schema: type: array items: @@ -17181,7 +16659,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: part_number__ie schema: type: array items: @@ -17189,7 +16667,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: part_number__iew schema: type: array items: @@ -17197,7 +16675,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: part_number__isw schema: type: array items: @@ -17205,7 +16683,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: part_number__n schema: type: array items: @@ -17213,7 +16691,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: part_number__nic schema: type: array items: @@ -17221,7 +16699,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: part_number__nie schema: type: array items: @@ -17229,7 +16707,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: part_number__niew schema: type: array items: @@ -17237,7 +16715,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: part_number__nisw schema: type: array items: @@ -17245,55 +16723,511 @@ paths: explode: true style: form - in: query - name: tag + name: pass_through_ports + schema: + type: boolean + description: Has pass-through ports + - in: query + name: power_outlet_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: power_outlet_template_count__empty + schema: + type: boolean + - in: query + name: power_outlet_template_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: power_outlet_template_count__gte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: vm_role + name: power_outlet_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlet_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlet_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_outlets schema: type: boolean - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': + description: Has power outlets + - in: query + name: power_port_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_template_count__empty + schema: + type: boolean + - in: query + name: power_port_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_ports + schema: + type: boolean + description: Has power ports + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rear_port_template_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_template_count__empty + schema: + type: boolean + - in: query + name: rear_port_template_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_template_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_template_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_template_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: rear_port_template_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: subdevice_role + schema: + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' + - in: query + name: subdevice_role__n + schema: + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: u_height + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: u_height__empty + schema: + type: boolean + - in: query + name: u_height__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: u_height__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: u_height__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: u_height__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: u_height__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight_unit + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: weight_unit__n + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceRoleList' + $ref: '#/components/schemas/PaginatedDeviceTypeList' description: '' post: - operationId: dcim_device_roles_create - description: Post a list of device role objects. + operationId: dcim_device_types_create + description: Post a list of device type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -17303,11 +17237,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_device_roles_bulk_update - description: Put a list of device role objects. + operationId: dcim_device_types_bulk_update + description: Put a list of device type objects. tags: - dcim requestBody: @@ -17316,12 +17250,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -17333,11 +17267,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_device_roles_bulk_partial_update - description: Patch a list of device role objects. + operationId: dcim_device_types_bulk_partial_update + description: Patch a list of device type objects. tags: - dcim requestBody: @@ -17346,12 +17280,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -17363,11 +17297,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_device_roles_bulk_destroy - description: Delete a list of device role objects. + operationId: dcim_device_types_bulk_destroy + description: Delete a list of device type objects. tags: - dcim requestBody: @@ -17376,12 +17310,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -17389,16 +17323,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/{id}/: + /api/dcim/device-types/{id}/: get: - operationId: dcim_device_roles_retrieve - description: Get a device role object. + operationId: dcim_device_types_retrieve + description: Get a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -17410,17 +17344,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_device_roles_update - description: Put a device role object. + operationId: dcim_device_types_update + description: Put a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -17428,10 +17362,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -17441,17 +17375,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_device_roles_partial_update - description: Patch a device role object. + operationId: dcim_device_types_partial_update + description: Patch a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -17459,10 +17393,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -17471,17 +17405,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_device_roles_destroy - description: Delete a device role object. + operationId: dcim_device_types_destroy + description: Delete a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -17491,10 +17425,10 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/: + /api/dcim/devices/: get: - operationId: dcim_device_types_list - description: Get a list of device type objects. + operationId: dcim_devices_list + description: Get a list of device objects. parameters: - in: query name: airflow @@ -17549,7 +17483,131 @@ paths: * `mixed` - Mixed' - in: query - name: console_port_template_count + name: asset_tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + nullable: true + description: VM cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VM cluster (ID) + explode: true + style: form + - in: query + name: config_template_id + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: config_template_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: console_port_count schema: type: array items: @@ -17558,11 +17616,11 @@ paths: explode: true style: form - in: query - name: console_port_template_count__empty + name: console_port_count__empty schema: type: boolean - in: query - name: console_port_template_count__gt + name: console_port_count__gt schema: type: array items: @@ -17571,7 +17629,7 @@ paths: explode: true style: form - in: query - name: console_port_template_count__gte + name: console_port_count__gte schema: type: array items: @@ -17580,7 +17638,7 @@ paths: explode: true style: form - in: query - name: console_port_template_count__lt + name: console_port_count__lt schema: type: array items: @@ -17589,7 +17647,7 @@ paths: explode: true style: form - in: query - name: console_port_template_count__lte + name: console_port_count__lte schema: type: array items: @@ -17598,7 +17656,7 @@ paths: explode: true style: form - in: query - name: console_port_template_count__n + name: console_port_count__n schema: type: array items: @@ -17612,7 +17670,7 @@ paths: type: boolean description: Has console ports - in: query - name: console_server_port_template_count + name: console_server_port_count schema: type: array items: @@ -17621,11 +17679,11 @@ paths: explode: true style: form - in: query - name: console_server_port_template_count__empty + name: console_server_port_count__empty schema: type: boolean - in: query - name: console_server_port_template_count__gt + name: console_server_port_count__gt schema: type: array items: @@ -17634,7 +17692,7 @@ paths: explode: true style: form - in: query - name: console_server_port_template_count__gte + name: console_server_port_count__gte schema: type: array items: @@ -17643,7 +17701,7 @@ paths: explode: true style: form - in: query - name: console_server_port_template_count__lt + name: console_server_port_count__lt schema: type: array items: @@ -17652,7 +17710,7 @@ paths: explode: true style: form - in: query - name: console_server_port_template_count__lte + name: console_server_port_count__lte schema: type: array items: @@ -17661,7 +17719,7 @@ paths: explode: true style: form - in: query - name: console_server_port_template_count__n + name: console_server_port_count__n schema: type: array items: @@ -17675,52 +17733,61 @@ paths: type: boolean description: Has console server ports - in: query - name: created + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__empty + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__gt + name: contact_group schema: type: array items: - type: string - format: date-time + type: integer + description: Contact group explode: true style: form - in: query - name: created__gte + name: contact_group__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact group explode: true style: form - in: query - name: created__lt + name: contact_role schema: type: array items: - type: string - format: date-time + type: integer + description: Contact Role explode: true style: form - in: query - name: created__lte + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: created schema: type: array items: @@ -17729,7 +17796,7 @@ paths: explode: true style: form - in: query - name: created__n + name: created__empty schema: type: array items: @@ -17738,48 +17805,55 @@ paths: explode: true style: form - in: query - name: created_by_request + name: created__gt schema: - type: string - format: uuid + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: default_platform + name: created__gte schema: type: array items: type: string - description: Default platform (slug) + format: date-time explode: true style: form - in: query - name: default_platform__n + name: created__lt schema: type: array items: type: string - description: Default platform (slug) + format: date-time explode: true style: form - in: query - name: default_platform_id + name: created__lte schema: type: array items: - type: integer - nullable: true - description: Default platform (ID) + type: string + format: date-time explode: true style: form - in: query - name: default_platform_id__n + name: created__n schema: type: array items: - type: integer - nullable: true - description: Default platform (ID) + type: string + format: date-time explode: true style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -17865,7 +17939,7 @@ paths: explode: true style: form - in: query - name: device_bay_template_count + name: device_bay_count schema: type: array items: @@ -17874,11 +17948,11 @@ paths: explode: true style: form - in: query - name: device_bay_template_count__empty + name: device_bay_count__empty schema: type: boolean - in: query - name: device_bay_template_count__gt + name: device_bay_count__gt schema: type: array items: @@ -17887,7 +17961,7 @@ paths: explode: true style: form - in: query - name: device_bay_template_count__gte + name: device_bay_count__gte schema: type: array items: @@ -17896,7 +17970,7 @@ paths: explode: true style: form - in: query - name: device_bay_template_count__lt + name: device_bay_count__lt schema: type: array items: @@ -17905,7 +17979,7 @@ paths: explode: true style: form - in: query - name: device_bay_template_count__lte + name: device_bay_count__lte schema: type: array items: @@ -17914,7 +17988,7 @@ paths: explode: true style: form - in: query - name: device_bay_template_count__n + name: device_bay_count__n schema: type: array items: @@ -17928,11 +18002,67 @@ paths: type: boolean description: Has device bays - in: query - name: exclude_from_utilization + name: device_type schema: - type: boolean + type: array + items: + type: string + description: Device type (slug) + explode: true + style: form - in: query - name: front_port_template_count + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (slug) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: face + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: face__n + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: front_port_count schema: type: array items: @@ -17941,11 +18071,11 @@ paths: explode: true style: form - in: query - name: front_port_template_count__empty + name: front_port_count__empty schema: type: boolean - in: query - name: front_port_template_count__gt + name: front_port_count__gt schema: type: array items: @@ -17954,7 +18084,7 @@ paths: explode: true style: form - in: query - name: front_port_template_count__gte + name: front_port_count__gte schema: type: array items: @@ -17963,7 +18093,7 @@ paths: explode: true style: form - in: query - name: front_port_template_count__lt + name: front_port_count__lt schema: type: array items: @@ -17972,7 +18102,7 @@ paths: explode: true style: form - in: query - name: front_port_template_count__lte + name: front_port_count__lte schema: type: array items: @@ -17981,7 +18111,7 @@ paths: explode: true style: form - in: query - name: front_port_template_count__n + name: front_port_count__n schema: type: array items: @@ -17990,15 +18120,20 @@ paths: explode: true style: form - in: query - name: has_front_image + name: has_oob_ip schema: type: boolean - description: Has a front image + description: Has an out-of-band IP - in: query - name: has_rear_image + name: has_primary_ip schema: type: boolean - description: Has a rear image + description: Has a primary IP + - in: query + name: has_virtual_device_context + schema: + type: boolean + description: Has virtual device context - in: query name: id schema: @@ -18058,7 +18193,7 @@ paths: explode: true style: form - in: query - name: interface_template_count + name: interface_count schema: type: array items: @@ -18067,11 +18202,11 @@ paths: explode: true style: form - in: query - name: interface_template_count__empty + name: interface_count__empty schema: type: boolean - in: query - name: interface_template_count__gt + name: interface_count__gt schema: type: array items: @@ -18080,7 +18215,7 @@ paths: explode: true style: form - in: query - name: interface_template_count__gte + name: interface_count__gte schema: type: array items: @@ -18089,7 +18224,7 @@ paths: explode: true style: form - in: query - name: interface_template_count__lt + name: interface_count__lt schema: type: array items: @@ -18098,7 +18233,7 @@ paths: explode: true style: form - in: query - name: interface_template_count__lte + name: interface_count__lte schema: type: array items: @@ -18107,7 +18242,7 @@ paths: explode: true style: form - in: query - name: interface_template_count__n + name: interface_count__n schema: type: array items: @@ -18121,7 +18256,7 @@ paths: type: boolean description: Has interfaces - in: query - name: inventory_item_template_count + name: inventory_item_count schema: type: array items: @@ -18130,11 +18265,11 @@ paths: explode: true style: form - in: query - name: inventory_item_template_count__empty + name: inventory_item_count__empty schema: type: boolean - in: query - name: inventory_item_template_count__gt + name: inventory_item_count__gt schema: type: array items: @@ -18143,7 +18278,7 @@ paths: explode: true style: form - in: query - name: inventory_item_template_count__gte + name: inventory_item_count__gte schema: type: array items: @@ -18152,7 +18287,7 @@ paths: explode: true style: form - in: query - name: inventory_item_template_count__lt + name: inventory_item_count__lt schema: type: array items: @@ -18161,7 +18296,7 @@ paths: explode: true style: form - in: query - name: inventory_item_template_count__lte + name: inventory_item_count__lte schema: type: array items: @@ -18170,7 +18305,7 @@ paths: explode: true style: form - in: query - name: inventory_item_template_count__n + name: inventory_item_count__n schema: type: array items: @@ -18178,15 +18313,11 @@ paths: format: int32 explode: true style: form - - in: query - name: inventory_items - schema: - type: boolean - description: Has inventory items - in: query name: is_full_depth schema: type: boolean + description: Is full depth - in: query name: last_updated schema: @@ -18250,126 +18381,153 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: latitude schema: - type: integer + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: manufacturer + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt schema: type: array items: - type: string - description: Manufacturer (slug) + type: number + format: double explode: true style: form - in: query - name: manufacturer__n + name: latitude__gte schema: type: array items: - type: string - description: Manufacturer (slug) + type: number + format: double explode: true style: form - in: query - name: manufacturer_id + name: latitude__lt schema: type: array items: - type: integer - description: Manufacturer (ID) + type: number + format: double explode: true style: form - in: query - name: manufacturer_id__n + name: latitude__lte schema: type: array items: - type: integer - description: Manufacturer (ID) + type: number + format: double explode: true style: form - in: query - name: model + name: latitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: model__empty + name: local_context_data schema: type: boolean + description: Has local config context data - in: query - name: model__ic + name: location_id schema: type: array items: - type: string + type: integer + description: Location (ID) explode: true style: form - in: query - name: model__ie + name: location_id__n schema: type: array items: - type: string + type: integer + description: Location (ID) explode: true style: form - in: query - name: model__iew + name: longitude schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: model__isw + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: model__n + name: longitude__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: model__nic + name: longitude__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: model__nie + name: longitude__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: model__niew + name: longitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: model__nisw + name: mac_address schema: type: array items: @@ -18377,115 +18535,71 @@ paths: explode: true style: form - in: query - name: modified_by_request + name: mac_address__ic schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: module_bay_template_count + name: mac_address__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_template_count__empty + name: mac_address__iew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: module_bay_template_count__gt + name: mac_address__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_template_count__gte + name: mac_address__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_template_count__lt + name: mac_address__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_template_count__lte + name: mac_address__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bay_template_count__n + name: mac_address__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: module_bays - schema: - type: boolean - description: Has module bays - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: part_number - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__empty - schema: - type: boolean - - in: query - name: part_number__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__iew + name: mac_address__nisw schema: type: array items: @@ -18493,60 +18607,66 @@ paths: explode: true style: form - in: query - name: part_number__isw + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: part_number__n + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: part_number__nic + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: part_number__nie + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: part_number__niew + name: model schema: type: array items: type: string + description: Device model (slug) explode: true style: form - in: query - name: part_number__nisw + name: model__n schema: type: array items: type: string + description: Device model (slug) explode: true style: form - in: query - name: pass_through_ports + name: modified_by_request schema: - type: boolean - description: Has pass-through ports + type: string + format: uuid - in: query - name: power_outlet_template_count + name: module_bay_count schema: type: array items: @@ -18555,11 +18675,11 @@ paths: explode: true style: form - in: query - name: power_outlet_template_count__empty + name: module_bay_count__empty schema: type: boolean - in: query - name: power_outlet_template_count__gt + name: module_bay_count__gt schema: type: array items: @@ -18568,7 +18688,7 @@ paths: explode: true style: form - in: query - name: power_outlet_template_count__gte + name: module_bay_count__gte schema: type: array items: @@ -18577,7 +18697,7 @@ paths: explode: true style: form - in: query - name: power_outlet_template_count__lt + name: module_bay_count__lt schema: type: array items: @@ -18586,7 +18706,7 @@ paths: explode: true style: form - in: query - name: power_outlet_template_count__lte + name: module_bay_count__lte schema: type: array items: @@ -18595,7 +18715,7 @@ paths: explode: true style: form - in: query - name: power_outlet_template_count__n + name: module_bay_count__n schema: type: array items: @@ -18604,270 +18724,205 @@ paths: explode: true style: form - in: query - name: power_outlets + name: module_bays schema: type: boolean - description: Has power outlets + description: Has module bays - in: query - name: power_port_template_count + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__empty + name: name__empty schema: type: boolean - in: query - name: power_port_template_count__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_template_count__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port_template_count + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__empty - schema: - type: boolean - - in: query - name: rear_port_template_count__gt + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__gte + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__lt + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: rear_port_template_count__lte + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer - in: query - name: rear_port_template_count__n + name: oob_ip_id schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string + description: OOB IP (ID) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: oob_ip_id__n schema: type: array items: - type: string + type: integer + description: OOB IP (ID) explode: true style: form - - in: query - name: slug__ie + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__iew + name: parent_bay_id schema: type: array items: - type: string + type: integer + description: Parent bay (ID) explode: true style: form - in: query - name: slug__isw + name: parent_bay_id__n schema: type: array items: - type: string + type: integer + description: Parent bay (ID) explode: true style: form - in: query - name: slug__n + name: parent_device_id schema: type: array items: - type: string + type: integer + description: Parent Device (ID) explode: true style: form - in: query - name: slug__nic + name: parent_device_id__n schema: type: array items: - type: string + type: integer + description: Parent Device (ID) explode: true style: form - in: query - name: slug__nie + name: pass_through_ports schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has pass-through ports - in: query - name: slug__niew + name: platform schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: slug__nisw + name: platform__n schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: subdevice_role - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - in: query - name: subdevice_role__n - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - in: query - name: tag + name: platform_id schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: tag__n + name: platform_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: u_height + name: position schema: type: array items: @@ -18876,11 +18931,11 @@ paths: explode: true style: form - in: query - name: u_height__empty + name: position__empty schema: type: boolean - in: query - name: u_height__gt + name: position__gt schema: type: array items: @@ -18889,7 +18944,7 @@ paths: explode: true style: form - in: query - name: u_height__gte + name: position__gte schema: type: array items: @@ -18898,7 +18953,7 @@ paths: explode: true style: form - in: query - name: u_height__lt + name: position__lt schema: type: array items: @@ -18907,7 +18962,7 @@ paths: explode: true style: form - in: query - name: u_height__lte + name: position__lte schema: type: array items: @@ -18916,7 +18971,7 @@ paths: explode: true style: form - in: query - name: u_height__n + name: position__n schema: type: array items: @@ -18925,543 +18980,223 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: power_outlet_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__empty + name: power_outlet_count__empty schema: type: boolean - in: query - name: weight__gt + name: power_outlet_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__gte + name: power_outlet_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__lt + name: power_outlet_count__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__lte + name: power_outlet_count__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__n + name: power_outlet_count__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedDeviceTypeList' - description: '' - post: - operationId: dcim_device_types_create - description: Post a list of device type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - put: - operationId: dcim_device_types_bulk_update - description: Put a list of device type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceType' - description: '' - patch: - operationId: dcim_device_types_bulk_partial_update - description: Patch a list of device type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceType' - description: '' - delete: - operationId: dcim_device_types_bulk_destroy - description: Delete a list of device type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/DeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/device-types/{id}/: - get: - operationId: dcim_device_types_retrieve - description: Get a device type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this device type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - put: - operationId: dcim_device_types_update - description: Put a device type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this device type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - patch: - operationId: dcim_device_types_partial_update - description: Patch a device type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this device type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceType' - description: '' - delete: - operationId: dcim_device_types_destroy - description: Delete a device type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this device type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/devices/: - get: - operationId: dcim_devices_list - description: Get a list of device objects. - parameters: - - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n + name: power_outlets schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' + type: boolean + description: Has power outlets - in: query - name: asset_tag + name: power_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__empty + name: power_port_count__empty schema: type: boolean - in: query - name: asset_tag__ic + name: power_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__ie + name: power_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__iew + name: power_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__isw + name: power_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__n + name: power_port_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: asset_tag__nic + name: power_ports schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has power ports - in: query - name: asset_tag__nie + name: primary_ip4_id schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: asset_tag__niew + name: primary_ip4_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: asset_tag__nisw + name: primary_ip6_id schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: cluster_group + name: primary_ip6_id__n schema: type: array items: - type: string - description: Cluster group (slug) + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: cluster_group__n + name: q schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form + type: string + description: Search - in: query - name: cluster_group_id + name: rack_id schema: type: array items: type: integer - description: Cluster group (ID) + description: Rack (ID) explode: true style: form - in: query - name: cluster_group_id__n + name: rack_id__n schema: type: array items: type: integer - description: Cluster group (ID) + description: Rack (ID) explode: true style: form - in: query - name: cluster_id + name: rear_port_count schema: type: array items: type: integer - nullable: true - description: VM cluster (ID) + format: int32 explode: true style: form - in: query - name: cluster_id__n + name: rear_port_count__empty schema: - type: array - items: - type: integer - nullable: true - description: VM cluster (ID) - explode: true - style: form + type: boolean - in: query - name: config_template_id + name: rear_port_count__gt schema: type: array items: type: integer - nullable: true - description: Config template (ID) + format: int32 explode: true style: form - in: query - name: config_template_id__n + name: rear_port_count__gte schema: type: array items: type: integer - nullable: true - description: Config template (ID) + format: int32 explode: true style: form - in: query - name: console_port_count + name: rear_port_count__lt schema: type: array items: @@ -19470,11 +19205,7 @@ paths: explode: true style: form - in: query - name: console_port_count__empty - schema: - type: boolean - - in: query - name: console_port_count__gt + name: rear_port_count__lte schema: type: array items: @@ -19483,7 +19214,7 @@ paths: explode: true style: form - in: query - name: console_port_count__gte + name: rear_port_count__n schema: type: array items: @@ -19492,120 +19223,107 @@ paths: explode: true style: form - in: query - name: console_port_count__lt + name: region schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: console_port_count__lte + name: region__n schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: console_port_count__n + name: region_id schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: console_ports - schema: - type: boolean - description: Has console ports - - in: query - name: console_server_port_count + name: region_id__n schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: console_server_port_count__empty - schema: - type: boolean - - in: query - name: console_server_port_count__gt + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: console_server_port_count__gte + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Role (slug) explode: true style: form - in: query - name: console_server_port_count__lt + name: role_id schema: type: array items: type: integer - format: int32 + description: Role (ID) explode: true style: form - in: query - name: console_server_port_count__lte + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Role (ID) explode: true style: form - in: query - name: console_server_port_count__n + name: serial schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports + name: serial__empty schema: type: boolean - description: Has console server ports - in: query - name: contact + name: serial__ic schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: serial__ie schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: serial__iew schema: type: array items: @@ -19613,7 +19331,7 @@ paths: explode: true style: form - in: query - name: contact_group__n + name: serial__isw schema: type: array items: @@ -19621,145 +19339,137 @@ paths: explode: true style: form - in: query - name: contact_role + name: serial__n schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: serial__nic schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: created + name: serial__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: serial__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: serial__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: site schema: type: array items: type: string - format: date-time + description: Site name (slug) explode: true style: form - in: query - name: created__lt + name: site__n schema: type: array items: type: string - format: date-time + description: Site name (slug) explode: true style: form - in: query - name: created__lte + name: site_group schema: type: array items: - type: string - format: date-time + type: integer + description: Site group (slug) explode: true style: form - in: query - name: created__n + name: site_group__n schema: type: array items: - type: string - format: date-time + type: integer + description: Site group (slug) explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: site_group_id schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: site_group_id__n schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: description__ie + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: description__iew + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: description__isw + name: status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__nic + name: tag schema: type: array items: @@ -19767,7 +19477,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: tag__n schema: type: array items: @@ -19775,72 +19485,86 @@ paths: explode: true style: form - in: query - name: description__niew + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: description__nisw + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: device_bay_count + name: tenant_group schema: type: array items: type: integer - format: int32 + description: Tenant Group (slug) explode: true style: form - in: query - name: device_bay_count__empty + name: tenant_group__n schema: - type: boolean + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form - in: query - name: device_bay_count__gt + name: tenant_group_id schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: device_bay_count__gte + name: tenant_group_id__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: device_bay_count__lt + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: device_bay_count__lte + name: tenant_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: device_bay_count__n + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vc_position schema: type: array items: @@ -19849,72 +19573,56 @@ paths: explode: true style: form - in: query - name: device_bays + name: vc_position__empty schema: type: boolean - description: Has device bays - in: query - name: device_type + name: vc_position__gt schema: type: array items: - type: string - description: Device type (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: vc_position__gte schema: type: array items: - type: string - description: Device type (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: vc_position__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: vc_position__lte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: face - schema: - type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - enum: - - front - - rear - description: '* `front` - Front - - * `rear` - Rear' - - in: query - name: face__n + name: vc_position__n schema: - type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - enum: - - front - - rear - description: '* `front` - Front - - * `rear` - Rear' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: front_port_count + name: vc_priority schema: type: array items: @@ -19923,11 +19631,11 @@ paths: explode: true style: form - in: query - name: front_port_count__empty + name: vc_priority__empty schema: type: boolean - in: query - name: front_port_count__gt + name: vc_priority__gt schema: type: array items: @@ -19936,7 +19644,7 @@ paths: explode: true style: form - in: query - name: front_port_count__gte + name: vc_priority__gte schema: type: array items: @@ -19945,7 +19653,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lt + name: vc_priority__lt schema: type: array items: @@ -19954,7 +19662,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lte + name: vc_priority__lte schema: type: array items: @@ -19963,7 +19671,7 @@ paths: explode: true style: form - in: query - name: front_port_count__n + name: vc_priority__n schema: type: array items: @@ -19972,206 +19680,437 @@ paths: explode: true style: form - in: query - name: has_oob_ip + name: virtual_chassis_id schema: - type: boolean - description: Has an out-of-band IP + type: array + items: + type: integer + description: Virtual chassis (ID) + explode: true + style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: has_virtual_device_context - schema: - type: boolean - description: Has virtual device context - - in: query - name: id + name: virtual_chassis_id__n schema: type: array items: type: integer - format: int32 + description: Virtual chassis (ID) explode: true style: form - in: query - name: id__empty + name: virtual_chassis_member schema: type: boolean + description: Is a virtual chassis member + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + description: '' + post: + operationId: dcim_devices_create + description: Post a list of device objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + put: + operationId: dcim_devices_bulk_update + description: Put a list of device objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + patch: + operationId: dcim_devices_bulk_partial_update + description: Patch a list of device objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + delete: + operationId: dcim_devices_bulk_destroy + description: Delete a list of device objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContextRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/devices/{id}/: + get: + operationId: dcim_devices_retrieve + description: Get a device object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + put: + operationId: dcim_devices_update + description: Put a device object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + patch: + operationId: dcim_devices_partial_update + description: Patch a device object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + delete: + operationId: dcim_devices_destroy + description: Delete a device object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/devices/{id}/render-config/: + post: + operationId: dcim_devices_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. + parameters: - in: query - name: id__gt + name: format schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + enum: + - json + - txt + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' + description: '' + /api/dcim/front-port-templates/: + get: + operationId: dcim_front_port_templates_list + description: Get a list of front port template objects. + parameters: - in: query - name: id__gte + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: color__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: color__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count + name: color__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__gte + name: color__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lt + name: color__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lte + name: color__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__n + name: color__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_count + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__empty - schema: - type: boolean - - in: query - name: inventory_item_count__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_full_depth - schema: - type: boolean - description: Is full depth - - in: query - name: last_updated + name: created__n schema: type: array items: @@ -20180,204 +20119,194 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: latitude + name: description__nic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt + name: description__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__gte + name: description__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__lt + name: description__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__lte + name: device_type_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: latitude__n + name: device_type_id__n schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Device type (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: local_context_data - schema: - type: boolean - description: Has local config context data - in: query - name: location_id + name: devicetype_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: location_id__n + name: devicetype_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: longitude + name: id schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__empty + name: id__empty schema: type: boolean - in: query - name: longitude__gt + name: id__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__gte + name: id__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lt + name: id__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lte + name: id__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__n + name: id__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: mac_address + name: label schema: type: array items: @@ -20385,7 +20314,11 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -20393,7 +20326,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: label__ie schema: type: array items: @@ -20401,7 +20334,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: label__iew schema: type: array items: @@ -20409,7 +20342,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: label__isw schema: type: array items: @@ -20417,7 +20350,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: label__n schema: type: array items: @@ -20425,7 +20358,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: label__nic schema: type: array items: @@ -20433,7 +20366,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: label__nie schema: type: array items: @@ -20441,7 +20374,7 @@ paths: explode: true style: form - in: query - name: mac_address__niew + name: label__niew schema: type: array items: @@ -20449,7 +20382,7 @@ paths: explode: true style: form - in: query - name: mac_address__nisw + name: label__nisw schema: type: array items: @@ -20457,127 +20390,119 @@ paths: explode: true style: form - in: query - name: manufacturer + name: last_updated schema: type: array items: type: string - description: Manufacturer (slug) + format: date-time explode: true style: form - in: query - name: manufacturer__n + name: last_updated__empty schema: type: array items: type: string - description: Manufacturer (slug) + format: date-time explode: true style: form - in: query - name: manufacturer_id + name: last_updated__gt schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string + format: date-time explode: true style: form - in: query - name: manufacturer_id__n + name: last_updated__gte schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string + format: date-time explode: true style: form - in: query - name: model + name: last_updated__lt schema: type: array items: type: string - description: Device model (slug) + format: date-time explode: true style: form - in: query - name: model__n + name: last_updated__lte schema: type: array items: type: string - description: Device model (slug) + format: date-time explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_bay_count + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - in: query - name: module_bay_count__empty + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: boolean + type: integer - in: query - name: module_bay_count__gt + name: modified_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: module_bay_count__gte + name: module_type_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: module_bay_count__lt + name: module_type_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: module_bay_count__lte + name: moduletype_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: module_bay_count__n + name: moduletype_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Module type (ID) explode: true style: form - - in: query - name: module_bays - schema: - type: boolean - description: Has module bays - in: query name: name schema: @@ -20668,354 +20593,699 @@ paths: description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: oob_ip_id + name: q + schema: + type: string + description: Search + - in: query + name: rear_port_id schema: type: array items: type: integer - description: OOB IP (ID) explode: true style: form - in: query - name: oob_ip_id__n + name: rear_port_id__n schema: type: array items: type: integer - description: OOB IP (ID) explode: true style: form - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: rear_port_position schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: parent_bay_id + name: rear_port_position__empty + schema: + type: boolean + - in: query + name: rear_port_position__gt schema: type: array items: type: integer - description: Parent bay (ID) + format: int32 explode: true style: form - in: query - name: parent_bay_id__n + name: rear_port_position__gte schema: type: array items: type: integer - description: Parent bay (ID) + format: int32 explode: true style: form - in: query - name: parent_device_id + name: rear_port_position__lt schema: type: array items: type: integer - description: Parent Device (ID) + format: int32 explode: true style: form - in: query - name: parent_device_id__n + name: rear_port_position__lte schema: type: array items: type: integer - description: Parent Device (ID) + format: int32 explode: true style: form - in: query - name: pass_through_ports + name: rear_port_position__n schema: - type: boolean - description: Has pass-through ports + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: platform + name: type schema: type: array items: type: string - description: Platform (slug) + x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: platform__n + name: type__n schema: type: array items: type: string - description: Platform (slug) + x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: platform_id + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedFrontPortTemplateList' + description: '' + post: + operationId: dcim_front_port_templates_create + description: Post a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + put: + operationId: dcim_front_port_templates_bulk_update + description: Put a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + patch: + operationId: dcim_front_port_templates_bulk_partial_update + description: Patch a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + delete: + operationId: dcim_front_port_templates_bulk_destroy + description: Delete a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/front-port-templates/{id}/: + get: + operationId: dcim_front_port_templates_retrieve + description: Get a front port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + put: + operationId: dcim_front_port_templates_update + description: Put a front port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + patch: + operationId: dcim_front_port_templates_partial_update + description: Patch a front port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + delete: + operationId: dcim_front_port_templates_destroy + description: Delete a front port template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/front-ports/: + get: + operationId: dcim_front_ports_list + description: Get a list of front port objects. + parameters: + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: type: integer nullable: true - description: Platform (ID) + description: Cable (ID) explode: true style: form - in: query - name: platform_id__n + name: cable_id__n schema: type: array items: type: integer nullable: true - description: Platform (ID) + description: Cable (ID) explode: true style: form - in: query - name: position + name: cabled + schema: + type: boolean + - in: query + name: color schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__empty + name: color__empty schema: type: boolean - in: query - name: position__gt + name: color__ic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__gte + name: color__ie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lt + name: color__iew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lte + name: color__isw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__n + name: color__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: power_outlet_count + name: color__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_outlet_count__empty - schema: - type: boolean - - in: query - name: power_outlet_count__gt + name: color__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_outlet_count__gte + name: color__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_outlet_count__lt + name: color__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_outlet_count__lte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlet_count__n + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_outlets + name: created__gt schema: - type: boolean - description: Has power outlets + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: power_port_count + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: power_port_count__empty + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: power_port_count__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports + name: description__nic schema: - type: boolean - description: Has power ports + type: array + items: + type: string + explode: true + style: form - in: query - name: primary_ip4_id + name: description__nie schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: description__niew schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id schema: type: array items: type: integer - description: Primary IPv6 (ID) + description: Device (ID) explode: true style: form - in: query - name: primary_ip6_id__n + name: device_id__n schema: type: array items: type: integer - description: Primary IPv6 (ID) + description: Device (ID) explode: true style: form - in: query - name: q + name: device_type schema: - type: string - description: Search + type: array + items: + type: string + description: Device type (model) + explode: true + style: form - in: query - name: rack_id + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id schema: type: array items: type: integer - description: Rack (ID) + description: Device type (ID) explode: true style: form - in: query - name: rack_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Rack (ID) + description: Device type (ID) explode: true style: form - in: query - name: rear_port_count + name: id schema: type: array items: @@ -21024,11 +21294,11 @@ paths: explode: true style: form - in: query - name: rear_port_count__empty + name: id__empty schema: type: boolean - in: query - name: rear_port_count__gt + name: id__gt schema: type: array items: @@ -21037,7 +21307,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__gte + name: id__gte schema: type: array items: @@ -21046,7 +21316,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lt + name: id__lt schema: type: array items: @@ -21055,7 +21325,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lte + name: id__lte schema: type: array items: @@ -21064,7 +21334,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__n + name: id__n schema: type: array items: @@ -21073,7 +21343,7 @@ paths: explode: true style: form - in: query - name: region + name: label schema: type: array items: @@ -21081,7 +21351,11 @@ paths: explode: true style: form - in: query - name: region__n + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -21089,7 +21363,7 @@ paths: explode: true style: form - in: query - name: region_id + name: label__ie schema: type: array items: @@ -21097,7 +21371,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: label__iew schema: type: array items: @@ -21105,43 +21379,39 @@ paths: explode: true style: form - in: query - name: role + name: label__isw schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: label__n schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: label__nic schema: type: array items: - type: integer - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: label__nie schema: type: array items: - type: integer - description: Role (ID) + type: string explode: true style: form - in: query - name: serial + name: label__niew schema: type: array items: @@ -21149,11 +21419,7 @@ paths: explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: label__nisw schema: type: array items: @@ -21161,113 +21427,141 @@ paths: explode: true style: form - in: query - name: serial__ie + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__iew + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__isw + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__n + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__nic + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__nie + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__niew + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: serial__nisw + name: location schema: type: array items: type: string + description: Location (slug) explode: true style: form - in: query - name: site + name: location__n schema: type: array items: type: string - description: Site name (slug) + description: Location (slug) explode: true style: form - in: query - name: site__n + name: location_id schema: type: array items: - type: string - description: Site name (slug) + type: integer + description: Location (ID) explode: true style: form - in: query - name: site_group + name: location_id__n schema: type: array items: - type: string + type: integer + description: Location (ID) explode: true style: form - in: query - name: site_group__n + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id schema: type: array items: - type: string + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: site_group_id + name: module_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: site_group_id__n + name: name schema: type: array items: @@ -21275,43 +21569,43 @@ paths: explode: true style: form - in: query - name: site_id + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: name__ie schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: status + name: name__iew schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: status__n + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: tag + name: name__n schema: type: array items: @@ -21319,7 +21613,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nic schema: type: array items: @@ -21327,25 +21621,23 @@ paths: explode: true style: form - in: query - name: tenant + name: name__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nisw schema: type: array items: @@ -21353,56 +21645,80 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: tenant_group_id + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: tenant_group_id__n + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: tenant_id + name: rack_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Rack (ID) explode: true style: form - in: query - name: tenant_id__n + name: rear_port_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) explode: true style: form - in: query - name: updated_by_request + name: rear_port_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + explode: true + style: form - in: query - name: vc_position + name: rear_port_position schema: type: array items: @@ -21411,11 +21727,11 @@ paths: explode: true style: form - in: query - name: vc_position__empty + name: rear_port_position__empty schema: type: boolean - in: query - name: vc_position__gt + name: rear_port_position__gt schema: type: array items: @@ -21424,7 +21740,7 @@ paths: explode: true style: form - in: query - name: vc_position__gte + name: rear_port_position__gte schema: type: array items: @@ -21433,7 +21749,7 @@ paths: explode: true style: form - in: query - name: vc_position__lt + name: rear_port_position__lt schema: type: array items: @@ -21442,7 +21758,7 @@ paths: explode: true style: form - in: query - name: vc_position__lte + name: rear_port_position__lte schema: type: array items: @@ -21451,7 +21767,7 @@ paths: explode: true style: form - in: query - name: vc_position__n + name: rear_port_position__n schema: type: array items: @@ -21460,86 +21776,224 @@ paths: explode: true style: form - in: query - name: vc_priority + name: region schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: vc_priority__empty + name: region__n schema: - type: boolean + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form - in: query - name: vc_priority__gt + name: region_id schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: vc_priority__gte + name: region_id__n schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: vc_priority__lt + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: vc_priority__lte + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: vc_priority__n + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: virtual_chassis_id + name: site_group__n schema: type: array items: type: integer - description: Virtual chassis (ID) + description: Site group (slug) explode: true style: form - in: query - name: virtual_chassis_id__n + name: site_group_id schema: type: array items: type: integer - description: Virtual chassis (ID) + description: Site group (ID) explode: true style: form - in: query - name: virtual_chassis_member + name: site_group_id__n schema: - type: boolean - description: Is a virtual chassis member + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: 0276d1110ada597a + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0276d1110ada597a + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -21550,21 +22004,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + $ref: '#/components/schemas/PaginatedFrontPortList' description: '' post: - operationId: dcim_devices_create - description: Post a list of device objects. + operationId: dcim_front_ports_create + description: Post a list of front port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -21574,11 +22028,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_devices_bulk_update - description: Put a list of device objects. + operationId: dcim_front_ports_bulk_update + description: Put a list of front port objects. tags: - dcim requestBody: @@ -21587,12 +22041,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -21604,11 +22058,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_devices_bulk_partial_update - description: Patch a list of device objects. + operationId: dcim_front_ports_bulk_partial_update + description: Patch a list of front port objects. tags: - dcim requestBody: @@ -21617,12 +22071,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -21634,11 +22088,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_devices_bulk_destroy - description: Delete a list of device objects. + operationId: dcim_front_ports_bulk_destroy + description: Delete a list of front port objects. tags: - dcim requestBody: @@ -21647,12 +22101,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -21660,16 +22114,16 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/: + /api/dcim/front-ports/{id}/: get: - operationId: dcim_devices_retrieve - description: Get a device object. + operationId: dcim_front_ports_retrieve + description: Get a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -21681,17 +22135,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_devices_update - description: Put a device object. + operationId: dcim_front_ports_update + description: Put a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -21699,10 +22153,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -21712,17 +22166,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_devices_partial_update - description: Patch a device object. + operationId: dcim_front_ports_partial_update + description: Patch a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -21730,10 +22184,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -21742,17 +22196,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_devices_destroy - description: Delete a device object. + operationId: dcim_front_ports_destroy + description: Delete a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -21762,35 +22216,19 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/render-config/: - post: - operationId: dcim_devices_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/dcim/front-ports/{id}/paths/: + get: + operationId: dcim_front_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - txt - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this front port. required: true tags: - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true security: - cookieAuth: [] - tokenAuth: [] @@ -21799,98 +22237,27 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/FrontPort' description: '' - /api/dcim/front-port-templates/: + /api/dcim/interface-templates/: get: - operationId: dcim_front_port_templates_list - description: Get a list of front port template objects. + operationId: dcim_interface_templates_list + description: Get a list of interface template objects. parameters: - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew + name: bridge_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: color__nisw + name: bridge_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query @@ -22065,6 +22432,30 @@ paths: description: Device type (ID) explode: true style: form + - in: query + name: devicetype_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: devicetype_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -22276,6 +22667,10 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mgmt_only + schema: + type: boolean - in: query name: modified_by_request schema: @@ -22301,6 +22696,26 @@ paths: description: Module type (ID) explode: true style: form + - in: query + name: moduletype_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: moduletype_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -22398,82 +22813,64 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rear_port_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: rear_port_id__n + name: poe_mode schema: type: array items: - type: integer + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: rear_port_position + name: poe_mode__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: rear_port_position__empty - schema: - type: boolean - - in: query - name: rear_port_position__gt + name: poe_type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: rear_port_position__gte + name: poe_type__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: rear_port_position__lt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: rear_port_position__lte + name: rf_role schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: rear_port_position__n + name: rf_role__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query @@ -22482,7 +22879,7 @@ paths: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: b9a351ea129ed754 explode: true style: form - in: query @@ -22491,7 +22888,7 @@ paths: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: b9a351ea129ed754 explode: true style: form - in: query @@ -22509,21 +22906,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFrontPortTemplateList' + $ref: '#/components/schemas/PaginatedInterfaceTemplateList' description: '' post: - operationId: dcim_front_port_templates_create - description: Post a list of front port template objects. + operationId: dcim_interface_templates_create + description: Post a list of interface template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -22533,11 +22930,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPortTemplate' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_front_port_templates_bulk_update - description: Put a list of front port template objects. + operationId: dcim_interface_templates_bulk_update + description: Put a list of interface template objects. tags: - dcim requestBody: @@ -22546,12 +22943,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplateRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplateRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -22563,11 +22960,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplate' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_front_port_templates_bulk_partial_update - description: Patch a list of front port template objects. + operationId: dcim_interface_templates_bulk_partial_update + description: Patch a list of interface template objects. tags: - dcim requestBody: @@ -22576,12 +22973,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplateRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplateRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -22593,11 +22990,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplate' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_front_port_templates_bulk_destroy - description: Delete a list of front port template objects. + operationId: dcim_interface_templates_bulk_destroy + description: Delete a list of interface template objects. tags: - dcim requestBody: @@ -22606,12 +23003,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplateRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortTemplateRequest' + $ref: '#/components/schemas/InterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -22619,16 +23016,16 @@ paths: responses: '204': description: No response body - /api/dcim/front-port-templates/{id}/: + /api/dcim/interface-templates/{id}/: get: - operationId: dcim_front_port_templates_retrieve - description: Get a front port template object. + operationId: dcim_interface_templates_retrieve + description: Get a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port template. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -22640,17 +23037,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPortTemplate' + $ref: '#/components/schemas/InterfaceTemplate' description: '' put: - operationId: dcim_front_port_templates_update - description: Put a front port template object. + operationId: dcim_interface_templates_update + description: Put a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port template. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -22658,10 +23055,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' required: true security: - cookieAuth: [] @@ -22671,17 +23068,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPortTemplate' + $ref: '#/components/schemas/InterfaceTemplate' description: '' patch: - operationId: dcim_front_port_templates_partial_update - description: Patch a front port template object. + operationId: dcim_interface_templates_partial_update + description: Patch a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port template. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -22689,10 +23086,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -22701,17 +23098,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPortTemplate' + $ref: '#/components/schemas/InterfaceTemplate' description: '' delete: - operationId: dcim_front_port_templates_destroy - description: Delete a front port template object. + operationId: dcim_interface_templates_destroy + description: Delete a interface template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port template. + description: A unique integer value identifying this interface template. required: true tags: - dcim @@ -22721,11 +23118,29 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/: + /api/dcim/interfaces/: get: - operationId: dcim_front_ports_list - description: Get a list of front port objects. + operationId: dcim_interfaces_list + description: Get a list of interface objects. parameters: + - in: query + name: bridge_id + schema: + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form + - in: query + name: bridge_id__n + schema: + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form - in: query name: cable_end schema: @@ -22773,67 +23188,79 @@ paths: schema: type: boolean - in: query - name: color + name: connected + schema: + type: boolean + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -22841,7 +23268,11 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -22849,7 +23280,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__ie schema: type: array items: @@ -22857,143 +23288,47 @@ paths: explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew + name: description__niew schema: type: array items: @@ -23047,97 +23382,107 @@ paths: explode: true style: form - in: query - name: device_role + name: device_type schema: type: array items: type: string - description: Device role (slug) + description: Device type (model) explode: true style: form - in: query - name: device_role__n + name: device_type__n schema: type: array items: type: string - description: Device role (slug) + description: Device type (model) explode: true style: form - in: query - name: device_role_id + name: device_type_id schema: type: array items: type: integer - description: Device role (ID) + description: Device type (ID) explode: true style: form - in: query - name: device_role_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Device role (ID) + description: Device type (ID) explode: true style: form - in: query - name: device_status + name: duplex schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: device_status__n + name: duplex__n schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: device_type + name: enabled + schema: + type: boolean + - in: query + name: id schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: id__gte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: id__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: id + name: id__lte schema: type: array items: @@ -23146,11 +23491,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -23159,39 +23500,52 @@ paths: explode: true style: form - in: query - name: id__gte + name: kind + schema: + type: string + description: Kind of interface + - in: query + name: l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: id__lt + name: l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: id__lte + name: l2vpn_id schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query - name: id__n + name: l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query @@ -23278,6 +23632,24 @@ paths: type: string explode: true style: form + - in: query + name: lag_id + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form + - in: query + name: lag_id__n + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -23384,36 +23756,7 @@ paths: explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: name + name: mac_address schema: type: array items: @@ -23421,11 +23764,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: mac_address__ic schema: type: array items: @@ -23433,7 +23772,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__ie schema: type: array items: @@ -23441,7 +23780,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__iew schema: type: array items: @@ -23449,7 +23788,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: mac_address__isw schema: type: array items: @@ -23457,7 +23796,7 @@ paths: explode: true style: form - in: query - name: name__n + name: mac_address__n schema: type: array items: @@ -23465,7 +23804,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: mac_address__nic schema: type: array items: @@ -23473,7 +23812,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: mac_address__nie schema: type: array items: @@ -23481,7 +23820,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: mac_address__niew schema: type: array items: @@ -23489,7 +23828,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: mac_address__nisw schema: type: array items: @@ -23497,80 +23836,74 @@ paths: explode: true style: form - in: query - name: occupied + name: mark_connected schema: type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: mgmt_only schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form + type: boolean - in: query - name: rack__n + name: mode schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' - in: query - name: rack_id + name: mode__n schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' - in: query - name: rack_id__n + name: modified_by_request schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: rear_port_id + name: module_id schema: type: array items: type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: rear_port_id__n + name: module_id__n schema: type: array items: type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: rear_port_position + name: mtu schema: type: array items: @@ -23579,11 +23912,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty + name: mtu__empty schema: type: boolean - in: query - name: rear_port_position__gt + name: mtu__gt schema: type: array items: @@ -23592,7 +23925,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: mtu__gte schema: type: array items: @@ -23601,7 +23934,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: mtu__lt schema: type: array items: @@ -23610,7 +23943,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: mtu__lte schema: type: array items: @@ -23619,7 +23952,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: mtu__n schema: type: array items: @@ -23628,7 +23961,7 @@ paths: explode: true style: form - in: query - name: region + name: name schema: type: array items: @@ -23636,7 +23969,11 @@ paths: explode: true style: form - in: query - name: region__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -23644,7 +23981,7 @@ paths: explode: true style: form - in: query - name: region_id + name: name__ie schema: type: array items: @@ -23652,7 +23989,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: name__iew schema: type: array items: @@ -23660,25 +23997,23 @@ paths: explode: true style: form - in: query - name: site + name: name__isw schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__nic schema: type: array items: @@ -23686,7 +24021,7 @@ paths: explode: true style: form - in: query - name: site_group__n + name: name__nie schema: type: array items: @@ -23694,7 +24029,7 @@ paths: explode: true style: form - in: query - name: site_group_id + name: name__niew schema: type: array items: @@ -23702,7 +24037,7 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: name__nisw schema: type: array items: @@ -23710,660 +24045,481 @@ paths: explode: true style: form - in: query - name: site_id + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent_id schema: type: array items: type: integer - description: Site (ID) + description: Parent interface (ID) explode: true style: form - in: query - name: site_id__n + name: parent_id__n schema: type: array items: type: integer - description: Site (ID) + description: Parent interface (ID) explode: true style: form - in: query - name: tag + name: poe_mode schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: tag__n + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: type + name: poe_type schema: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: type__n + name: poe_type__n schema: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: updated_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: virtual_chassis + name: rack schema: type: array items: type: string - description: Virtual Chassis + description: Rack (name) explode: true style: form - in: query - name: virtual_chassis__n + name: rack__n schema: type: array items: type: string - description: Virtual Chassis + description: Rack (name) explode: true style: form - in: query - name: virtual_chassis_id + name: rack_id schema: type: array items: type: integer - description: Virtual Chassis (ID) + description: Rack (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: rack_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + description: Rack (ID) explode: true style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontPortList' - description: '' - post: - operationId: dcim_front_ports_create - description: Post a list of front port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - put: - operationId: dcim_front_ports_bulk_update - description: Put a list of front port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPort' - description: '' - patch: - operationId: dcim_front_ports_bulk_partial_update - description: Patch a list of front port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPort' - description: '' - delete: - operationId: dcim_front_ports_bulk_destroy - description: Delete a list of front port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-ports/{id}/: - get: - operationId: dcim_front_ports_retrieve - description: Get a front port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - put: - operationId: dcim_front_ports_update - description: Put a front port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - patch: - operationId: dcim_front_ports_partial_update - description: Patch a front port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this front port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - delete: - operationId: dcim_front_ports_destroy - description: Delete a front port object. - parameters: - - in: path - name: id + - in: query + name: region schema: - type: integer - description: A unique integer value identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-ports/{id}/paths/: - get: - operationId: dcim_front_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n schema: - type: integer - description: A unique integer value identifying this front port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPort' - description: '' - /api/dcim/interface-templates/: - get: - operationId: dcim_interface_templates_list - description: Get a list of interface template objects. - parameters: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form - in: query - name: bridge_id + name: region_id schema: type: array items: type: integer + description: Region (ID) explode: true style: form - in: query - name: bridge_id__n + name: region_id__n schema: type: array items: type: integer + description: Region (ID) explode: true style: form - in: query - name: created + name: rf_channel schema: type: array items: type: string - format: date-time + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: created__empty + name: rf_channel__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: created__gt + name: rf_channel_frequency schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gte + name: rf_channel_frequency__empty + schema: + type: boolean + - in: query + name: rf_channel_frequency__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lt + name: rf_channel_frequency__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__lte + name: rf_channel_frequency__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__n + name: rf_channel_frequency__lte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created_by_request + name: rf_channel_frequency__n schema: - type: string - format: uuid + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: description + name: rf_channel_width schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__empty + name: rf_channel_width__empty schema: type: boolean - in: query - name: description__ic + name: rf_channel_width__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__ie + name: rf_channel_width__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__iew + name: rf_channel_width__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__isw + name: rf_channel_width__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__n + name: rf_channel_width__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__nic + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__nie + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__niew + name: role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: description__nisw + name: role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: device_type_id + name: role_id schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: device_type_id__n + name: role_id__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: id__empty + name: site__n schema: - type: boolean + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form - in: query - name: id__gt + name: site_group schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: id__gte + name: site_group__n schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: id__lt + name: site_group_id schema: type: array items: type: integer - format: int32 + description: Site group (ID) explode: true style: form - in: query - name: id__lte + name: site_group_id__n schema: type: array items: type: integer - format: int32 + description: Site group (ID) explode: true style: form - in: query - name: id__n + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: label + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: label__empty + name: speed schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: label__ic + name: speed__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__ie + name: speed__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__iew + name: speed__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__isw + name: speed__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: speed__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: speed__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: tag schema: type: array items: @@ -24371,7 +24527,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: tag__n schema: type: array items: @@ -24379,181 +24535,184 @@ paths: explode: true style: form - in: query - name: label__nisw + name: tx_power schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: last_updated + name: tx_power__empty + schema: + type: boolean + - in: query + name: tx_power__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: tx_power__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: tx_power__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: tx_power__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: tx_power__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: type schema: type: array items: type: string - format: date-time + x-spec-enum-id: b9a351ea129ed754 explode: true style: form - in: query - name: last_updated__n + name: type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: b9a351ea129ed754 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: mgmt_only - schema: - type: boolean - in: query - name: modified_by_request + name: updated_by_request schema: type: string format: uuid - in: query - name: module_type_id + name: vdc schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + description: Virtual Device Context explode: true style: form - in: query - name: module_type_id__n + name: vdc__n schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + description: Virtual Device Context explode: true style: form - in: query - name: name + name: vdc_id schema: type: array items: - type: string + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: vdc_id__n schema: type: array items: - type: string + type: integer + description: Virtual Device Context explode: true style: form - in: query - name: name__ie + name: vdc_identifier schema: type: array items: - type: string + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) explode: true style: form - in: query - name: name__iew + name: vdc_identifier__n schema: type: array items: - type: string + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) explode: true style: form - in: query - name: name__isw + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: name__n + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: name__nic + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: name__nie + name: virtual_chassis_id__n schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: name__niew + name: virtual_chassis_member schema: type: array items: @@ -24561,109 +24720,182 @@ paths: explode: true style: form - in: query - name: name__nisw + name: virtual_chassis_member_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: vlan schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + description: Assigned VID + - in: query + name: vlan_id schema: type: string + description: Assigned VLAN - in: query - name: poe_mode + name: vrf schema: type: array items: type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: poe_mode__n + name: vrf__n schema: type: array items: type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: poe_type + name: vrf_id + schema: + type: array + items: + type: integer + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + description: VRF + explode: true + style: form + - in: query + name: wireless_lan_id + schema: + type: array + items: + type: integer + description: Wireless LAN + explode: true + style: form + - in: query + name: wireless_lan_id__n + schema: + type: array + items: + type: integer + description: Wireless LAN + explode: true + style: form + - in: query + name: wireless_link_id + schema: + type: array + items: + type: integer + nullable: true + description: Wireless link + explode: true + style: form + - in: query + name: wireless_link_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Wireless link + explode: true + style: form + - in: query + name: wwn schema: type: array items: type: string - x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: poe_type__n + name: wwn__ic schema: type: array items: type: string - x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: q + name: wwn__ie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: rf_role + name: wwn__iew schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: rf_role__n + name: wwn__isw schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: type + name: wwn__n schema: type: array items: type: string - x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: type__n + name: wwn__nic schema: type: array items: type: string - x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: updated_by_request + name: wwn__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form + - in: query + name: wwn__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: wwn__nisw + schema: + type: array + items: + type: string + explode: true + style: form tags: - dcim security: @@ -24674,21 +24906,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceTemplateList' + $ref: '#/components/schemas/PaginatedInterfaceList' description: '' post: - operationId: dcim_interface_templates_create - description: Post a list of interface template objects. + operationId: dcim_interfaces_create + description: Post a list of interface objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' required: true security: - cookieAuth: [] @@ -24698,11 +24930,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/Interface' description: '' put: - operationId: dcim_interface_templates_bulk_update - description: Put a list of interface template objects. + operationId: dcim_interfaces_bulk_update + description: Put a list of interface objects. tags: - dcim requestBody: @@ -24711,12 +24943,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -24728,11 +24960,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/Interface' description: '' patch: - operationId: dcim_interface_templates_bulk_partial_update - description: Patch a list of interface template objects. + operationId: dcim_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - dcim requestBody: @@ -24741,12 +24973,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -24758,11 +24990,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/Interface' description: '' delete: - operationId: dcim_interface_templates_bulk_destroy - description: Delete a list of interface template objects. + operationId: dcim_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - dcim requestBody: @@ -24771,12 +25003,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceTemplateRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -24784,16 +25016,16 @@ paths: responses: '204': description: No response body - /api/dcim/interface-templates/{id}/: + /api/dcim/interfaces/{id}/: get: - operationId: dcim_interface_templates_retrieve - description: Get a interface template object. + operationId: dcim_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -24805,17 +25037,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/Interface' description: '' put: - operationId: dcim_interface_templates_update - description: Put a interface template object. + operationId: dcim_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -24823,10 +25055,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' required: true security: - cookieAuth: [] @@ -24836,17 +25068,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/Interface' description: '' patch: - operationId: dcim_interface_templates_partial_update - description: Patch a interface template object. + operationId: dcim_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -24854,10 +25086,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -24866,17 +25098,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InterfaceTemplate' + $ref: '#/components/schemas/Interface' description: '' delete: - operationId: dcim_interface_templates_destroy - description: Delete a interface template object. + operationId: dcim_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface template. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -24886,79 +25118,119 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/: + /api/dcim/interfaces/{id}/trace/: get: - operationId: dcim_interfaces_list - description: Get a list of interface objects. + operationId: dcim_interfaces_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + /api/dcim/inventory-item-roles/: + get: + operationId: dcim_inventory_item_roles_list + description: Get a list of inventory item role objects. parameters: - in: query - name: bridge_id + name: color schema: type: array items: - type: integer - description: Bridged interface (ID) + type: string explode: true style: form - in: query - name: bridge_id__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer - description: Bridged interface (ID) + type: string explode: true style: form - in: query - name: cable_end + name: color__ie schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + explode: true + style: form - in: query - name: cable_end__n + name: color__iew schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + explode: true + style: form - in: query - name: cable_id + name: color__isw schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cable_id__n + name: color__n schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cabled + name: color__nic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: connected + name: color__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -25112,266 +25384,276 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device_id + name: id__gte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__lt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_role + name: id__lte schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_role__n + name: id__n schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_role_id + name: last_updated schema: type: array items: - type: integer - description: Device role (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_role_id__n + name: last_updated__empty schema: type: array items: - type: integer - description: Device role (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_status + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + format: date-time explode: true style: form - in: query - name: device_status__n + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + format: date-time explode: true style: form - in: query - name: device_type + name: last_updated__lt schema: type: array items: type: string - description: Device type (model) + format: date-time explode: true style: form - in: query - name: device_type__n + name: last_updated__lte schema: type: array items: type: string - description: Device type (model) + format: date-time explode: true style: form - in: query - name: device_type_id + name: last_updated__n schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: device_type_id__n + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: duplex + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true explode: true style: form - in: query - name: duplex__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: kind + name: q schema: type: string - description: Kind of interface + description: Search - in: query - name: l2vpn + name: slug schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string explode: true style: form - in: query - name: l2vpn__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string explode: true style: form - in: query - name: l2vpn_id + name: slug__ie schema: type: array items: - type: integer - description: L2VPN (ID) + type: string explode: true style: form - in: query - name: l2vpn_id__n + name: slug__iew schema: type: array items: - type: integer - description: L2VPN (ID) + type: string explode: true style: form - in: query - name: label + name: slug__isw schema: type: array items: @@ -25379,11 +25661,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: slug__n schema: type: array items: @@ -25391,7 +25669,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: slug__nic schema: type: array items: @@ -25399,7 +25677,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: slug__nie schema: type: array items: @@ -25407,7 +25685,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: slug__niew schema: type: array items: @@ -25415,7 +25693,7 @@ paths: explode: true style: form - in: query - name: label__n + name: slug__nisw schema: type: array items: @@ -25423,7 +25701,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: tag schema: type: array items: @@ -25431,7 +25709,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: tag__n schema: type: array items: @@ -25439,68 +25717,310 @@ paths: explode: true style: form - in: query - name: label__niew + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInventoryItemRoleList' + description: '' + post: + operationId: dcim_inventory_item_roles_create + description: Post a list of inventory item role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InventoryItemRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/InventoryItemRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/InventoryItemRole' + description: '' + put: + operationId: dcim_inventory_item_roles_bulk_update + description: Put a list of inventory item role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRole' + description: '' + patch: + operationId: dcim_inventory_item_roles_bulk_partial_update + description: Patch a list of inventory item role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRole' + description: '' + delete: + operationId: dcim_inventory_item_roles_bulk_destroy + description: Delete a list of inventory item role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InventoryItemRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/inventory-item-roles/{id}/: + get: + operationId: dcim_inventory_item_roles_retrieve + description: Get a inventory item role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this inventory item role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InventoryItemRole' + description: '' + put: + operationId: dcim_inventory_item_roles_update + description: Put a inventory item role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this inventory item role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/InventoryItemRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/InventoryItemRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InventoryItemRole' + description: '' + patch: + operationId: dcim_inventory_item_roles_partial_update + description: Patch a inventory item role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this inventory item role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InventoryItemRole' + description: '' + delete: + operationId: dcim_inventory_item_roles_destroy + description: Delete a inventory item role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this inventory item role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/inventory-item-templates/: + get: + operationId: dcim_inventory_item_templates_list + description: Get a list of inventory item template objects. + parameters: + - in: query + name: component_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nisw + name: component_id__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: lag_id + name: component_id__gt schema: type: array items: type: integer - description: LAG interface (ID) + format: int32 explode: true style: form - in: query - name: lag_id__n + name: component_id__gte schema: type: array items: type: integer - description: LAG interface (ID) + format: int32 explode: true style: form - in: query - name: last_updated + name: component_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: component_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: component_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: component_type + schema: + type: string + - in: query + name: component_type__n + schema: + type: string + - in: query + name: created schema: type: array items: @@ -25509,7 +26029,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__empty schema: type: array items: @@ -25518,7 +26038,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__gt schema: type: array items: @@ -25527,7 +26047,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__gte schema: type: array items: @@ -25535,50 +26055,52 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: created__lt schema: type: array items: type: string - description: Location (slug) + format: date-time explode: true style: form - in: query - name: location__n + name: created__lte schema: type: array items: type: string - description: Location (slug) + format: date-time explode: true style: form - in: query - name: location_id + name: created__n schema: type: array items: - type: integer - description: Location (ID) + type: string + format: date-time explode: true style: form - in: query - name: location_id__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - description: Location (ID) + type: string explode: true style: form - in: query - name: mac_address + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -25586,7 +26108,7 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: description__ie schema: type: array items: @@ -25594,7 +26116,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: description__iew schema: type: array items: @@ -25602,7 +26124,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: description__isw schema: type: array items: @@ -25610,7 +26132,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: description__n schema: type: array items: @@ -25618,7 +26140,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: description__nic schema: type: array items: @@ -25626,7 +26148,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: description__nie schema: type: array items: @@ -25634,7 +26156,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: description__niew schema: type: array items: @@ -25642,7 +26164,7 @@ paths: explode: true style: form - in: query - name: mac_address__niew + name: description__nisw schema: type: array items: @@ -25650,82 +26172,43 @@ paths: explode: true style: form - in: query - name: mac_address__nisw + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: modified_by_request + name: device_type_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query - name: module_id + name: devicetype_id schema: type: array items: type: integer - nullable: true - description: Module (ID) + description: Device type (ID) explode: true style: form - in: query - name: module_id__n + name: devicetype_id__n schema: type: array items: type: integer - nullable: true - description: Module (ID) + description: Device type (ID) explode: true style: form - in: query - name: mtu + name: id schema: type: array items: @@ -25734,11 +26217,11 @@ paths: explode: true style: form - in: query - name: mtu__empty + name: id__empty schema: type: boolean - in: query - name: mtu__gt + name: id__gt schema: type: array items: @@ -25747,7 +26230,7 @@ paths: explode: true style: form - in: query - name: mtu__gte + name: id__gte schema: type: array items: @@ -25756,7 +26239,7 @@ paths: explode: true style: form - in: query - name: mtu__lt + name: id__lt schema: type: array items: @@ -25765,7 +26248,7 @@ paths: explode: true style: form - in: query - name: mtu__lte + name: id__lte schema: type: array items: @@ -25774,7 +26257,7 @@ paths: explode: true style: form - in: query - name: mtu__n + name: id__n schema: type: array items: @@ -25783,7 +26266,7 @@ paths: explode: true style: form - in: query - name: name + name: label schema: type: array items: @@ -25791,11 +26274,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -25803,7 +26286,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -25811,7 +26294,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -25819,7 +26302,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -25827,7 +26310,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -25835,7 +26318,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -25843,7 +26326,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -25851,7 +26334,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -25859,7 +26342,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: @@ -25867,324 +26350,163 @@ paths: explode: true style: form - in: query - name: occupied - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent_id + name: last_updated schema: type: array items: - type: integer - description: Parent interface (ID) + type: string + format: date-time explode: true style: form - in: query - name: parent_id__n + name: last_updated__empty schema: type: array items: - type: integer - description: Parent interface (ID) + type: string + format: date-time explode: true style: form - in: query - name: poe_mode + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + format: date-time explode: true style: form - in: query - name: poe_mode__n + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + format: date-time explode: true style: form - in: query - name: poe_type + name: last_updated__lt schema: type: array items: type: string - x-spec-enum-id: 74bd3be4012f6da9 + format: date-time explode: true style: form - in: query - name: poe_type__n + name: last_updated__lte schema: type: array items: type: string - x-spec-enum-id: 74bd3be4012f6da9 + format: date-time explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n + name: last_updated__n schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) + format: date-time explode: true style: form - - in: query - name: rack_id__n + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: integer - in: query - name: region + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: region__n + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: region_id + name: manufacturer_id schema: type: array items: - type: string + type: integer + nullable: true + description: Manufacturer (ID) explode: true style: form - in: query - name: region_id__n + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Manufacturer (ID) explode: true style: form - in: query - name: rf_channel + name: modified_by_request schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form + type: string + format: uuid - in: query - name: rf_channel__n + name: name schema: type: array items: type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel_frequency - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__empty - schema: - type: boolean - - in: query - name: rf_channel_frequency__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width - schema: - type: array - items: - type: number - format: double explode: true style: form - in: query - name: rf_channel_width__empty + name: name__empty schema: type: boolean - in: query - name: rf_channel_width__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_role + name: name__ic schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: rf_role__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: site + name: name__iew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__isw schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__n schema: type: array items: @@ -26192,7 +26514,7 @@ paths: explode: true style: form - in: query - name: site_group__n + name: name__nic schema: type: array items: @@ -26200,7 +26522,7 @@ paths: explode: true style: form - in: query - name: site_group_id + name: name__nie schema: type: array items: @@ -26208,7 +26530,7 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: name__niew schema: type: array items: @@ -26216,96 +26538,47 @@ paths: explode: true style: form - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__gt + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: speed__gte + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: speed__lt + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: speed__lte + name: parent_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: speed__n + name: parent_id__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: tag__n + name: part_id schema: type: array items: @@ -26313,184 +26586,67 @@ paths: explode: true style: form - in: query - name: tx_power - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__empty + name: part_id__empty schema: type: boolean - in: query - name: tx_power__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tx_power__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: type + name: part_id__ic schema: type: array items: type: string - x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: type__n + name: part_id__ie schema: type: array items: type: string - x-spec-enum-id: 8d111a81a4af2fa3 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vdc + name: part_id__iew schema: type: array items: type: string - description: Virtual Device Context explode: true style: form - in: query - name: vdc__n + name: part_id__isw schema: type: array items: type: string - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_id - schema: - type: array - items: - type: integer - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_id__n - schema: - type: array - items: - type: integer - description: Virtual Device Context - explode: true - style: form - - in: query - name: vdc_identifier - schema: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) - explode: true - style: form - - in: query - name: vdc_identifier__n - schema: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) explode: true style: form - in: query - name: virtual_chassis + name: part_id__n schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: part_id__nic schema: type: array items: type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: part_id__nie schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form - in: query - name: virtual_chassis_member + name: part_id__niew schema: type: array items: @@ -26498,182 +26654,61 @@ paths: explode: true style: form - in: query - name: virtual_chassis_member_id + name: part_id__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id + name: q schema: type: string - description: Assigned VLAN + description: Search - in: query - name: vrf + name: role schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) + description: Role (slug) explode: true style: form - in: query - name: vrf__n + name: role__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form - - in: query - name: wireless_lan_id - schema: - type: array - items: - type: integer - description: Wireless LAN - explode: true - style: form - - in: query - name: wireless_lan_id__n - schema: - type: array - items: - type: integer - description: Wireless LAN + description: Role (slug) explode: true style: form - in: query - name: wireless_link_id + name: role_id schema: type: array items: type: integer nullable: true - description: Wireless link + description: Role (ID) explode: true style: form - in: query - name: wireless_link_id__n + name: role_id__n schema: type: array items: type: integer nullable: true - description: Wireless link - explode: true - style: form - - in: query - name: wwn - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: wwn__niew - schema: - type: array - items: - type: string + description: Role (ID) explode: true style: form - in: query - name: wwn__nisw + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid tags: - dcim security: @@ -26684,21 +26719,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceList' + $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' description: '' post: - operationId: dcim_interfaces_create - description: Post a list of interface objects. + operationId: dcim_inventory_item_templates_create + description: Post a list of inventory item template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -26708,11 +26743,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_interfaces_bulk_update - description: Put a list of interface objects. + operationId: dcim_inventory_item_templates_bulk_update + description: Put a list of inventory item template objects. tags: - dcim requestBody: @@ -26721,12 +26756,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -26738,11 +26773,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: dcim_inventory_item_templates_bulk_partial_update + description: Patch a list of inventory item template objects. tags: - dcim requestBody: @@ -26751,12 +26786,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -26768,11 +26803,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: dcim_inventory_item_templates_bulk_destroy + description: Delete a list of inventory item template objects. tags: - dcim requestBody: @@ -26781,12 +26816,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -26794,16 +26829,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/: + /api/dcim/inventory-item-templates/{id}/: get: - operationId: dcim_interfaces_retrieve - description: Get a interface object. + operationId: dcim_inventory_item_templates_retrieve + description: Get a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -26815,17 +26850,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_interfaces_update - description: Put a interface object. + operationId: dcim_inventory_item_templates_update + description: Put a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -26833,10 +26868,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -26846,17 +26881,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_interfaces_partial_update - description: Patch a interface object. + operationId: dcim_inventory_item_templates_partial_update + description: Patch a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -26864,10 +26899,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -26876,17 +26911,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_interfaces_destroy - description: Delete a interface object. + operationId: dcim_inventory_item_templates_destroy + description: Delete a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -26896,37 +26931,13 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/trace/: - get: - operationId: dcim_interfaces_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Interface' - description: '' - /api/dcim/inventory-item-roles/: + /api/dcim/inventory-items/: get: - operationId: dcim_inventory_item_roles_list - description: Get a list of inventory item role objects. + operationId: dcim_inventory_items_list + description: Get a list of inventory item objects. parameters: - in: query - name: color + name: asset_tag schema: type: array items: @@ -26934,11 +26945,11 @@ paths: explode: true style: form - in: query - name: color__empty + name: asset_tag__empty schema: type: boolean - in: query - name: color__ic + name: asset_tag__ic schema: type: array items: @@ -26946,7 +26957,7 @@ paths: explode: true style: form - in: query - name: color__ie + name: asset_tag__ie schema: type: array items: @@ -26954,7 +26965,7 @@ paths: explode: true style: form - in: query - name: color__iew + name: asset_tag__iew schema: type: array items: @@ -26962,7 +26973,7 @@ paths: explode: true style: form - in: query - name: color__isw + name: asset_tag__isw schema: type: array items: @@ -26970,7 +26981,7 @@ paths: explode: true style: form - in: query - name: color__n + name: asset_tag__n schema: type: array items: @@ -26978,7 +26989,7 @@ paths: explode: true style: form - in: query - name: color__nic + name: asset_tag__nic schema: type: array items: @@ -26986,7 +26997,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: asset_tag__nie schema: type: array items: @@ -26994,7 +27005,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: asset_tag__niew schema: type: array items: @@ -27002,13 +27013,84 @@ paths: explode: true style: form - in: query - name: color__nisw + name: asset_tag__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: component_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: component_type + schema: + type: string + - in: query + name: component_type__n + schema: + type: string - in: query name: created schema: @@ -27161,6 +27243,84 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: discovered + schema: + type: boolean - in: query name: id schema: @@ -27220,81 +27380,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -27302,11 +27448,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -27314,7 +27456,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -27322,108 +27464,155 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: location schema: - type: string - description: Search + type: array + items: + type: string + description: Location (slug) + explode: true + style: form - in: query - name: slug + name: location__n schema: type: array items: type: string + description: Location (slug) explode: true style: form - in: query - name: slug__empty + name: location_id schema: - type: boolean + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form - in: query - name: slug__ic + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: slug__ie + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: slug__iew + name: manufacturer_id + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: manufacturer_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -27431,7 +27620,11 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -27439,7 +27632,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__ie schema: type: array items: @@ -27447,7 +27640,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__iew schema: type: array items: @@ -27455,7 +27648,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__isw schema: type: array items: @@ -27463,7 +27656,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__n schema: type: array items: @@ -27471,7 +27664,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nic schema: type: array items: @@ -27479,7 +27672,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__nie schema: type: array items: @@ -27487,7 +27680,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__niew schema: type: array items: @@ -27495,10 +27688,457 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent inventory item (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent inventory item (ID) + explode: true + style: form + - in: query + name: part_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__empty + schema: + type: boolean + - in: query + name: part_id__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: part_id__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: serial + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -27509,21 +28149,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemRoleList' + $ref: '#/components/schemas/PaginatedInventoryItemList' description: '' post: - operationId: dcim_inventory_item_roles_create - description: Post a list of inventory item role objects. + operationId: dcim_inventory_items_create + description: Post a list of inventory item objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -27533,11 +28173,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_inventory_item_roles_bulk_update - description: Put a list of inventory item role objects. + operationId: dcim_inventory_items_bulk_update + description: Put a list of inventory item objects. tags: - dcim requestBody: @@ -27546,12 +28186,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -27563,11 +28203,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_inventory_item_roles_bulk_partial_update - description: Patch a list of inventory item role objects. + operationId: dcim_inventory_items_bulk_partial_update + description: Patch a list of inventory item objects. tags: - dcim requestBody: @@ -27576,12 +28216,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -27593,11 +28233,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_inventory_item_roles_bulk_destroy - description: Delete a list of inventory item role objects. + operationId: dcim_inventory_items_bulk_destroy + description: Delete a list of inventory item objects. tags: - dcim requestBody: @@ -27606,12 +28246,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -27619,16 +28259,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-roles/{id}/: + /api/dcim/inventory-items/{id}/: get: - operationId: dcim_inventory_item_roles_retrieve - description: Get a inventory item role object. + operationId: dcim_inventory_items_retrieve + description: Get a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -27640,17 +28280,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_inventory_item_roles_update - description: Put a inventory item role object. + operationId: dcim_inventory_items_update + description: Put a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -27658,10 +28298,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -27671,17 +28311,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_inventory_item_roles_partial_update - description: Patch a inventory item role object. + operationId: dcim_inventory_items_partial_update + description: Patch a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -27689,10 +28329,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -27701,17 +28341,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRole' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_inventory_item_roles_destroy - description: Delete a inventory item role object. + operationId: dcim_inventory_items_destroy + description: Delete a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item role. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -27721,82 +28361,101 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-templates/: + /api/dcim/locations/: get: - operationId: dcim_inventory_item_templates_list - description: Get a list of inventory item template objects. + operationId: dcim_locations_list + description: Get a list of location objects. parameters: - in: query - name: component_id + name: ancestor schema: type: array items: type: integer - format: int32 + description: Location (slug) explode: true style: form - in: query - name: component_id__empty + name: ancestor__n schema: type: array items: type: integer - format: int32 + description: Location (slug) explode: true style: form - in: query - name: component_id__gt + name: ancestor_id schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: component_id__gte + name: ancestor_id__n schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: component_id__lt + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: component_id__lte + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: component_id__n + name: contact_group schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: component_type + name: contact_group__n schema: - type: string + type: array + items: + type: integer + description: Contact group + explode: true + style: form - in: query - name: component_type__n + name: contact_role schema: - type: string + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -27950,21 +28609,87 @@ paths: explode: true style: form - in: query - name: device_type_id + name: facility schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic schema: type: array items: - type: integer - description: Device type (ID) + type: string + explode: true + style: form + - in: query + name: facility__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -28026,67 +28751,81 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -28094,7 +28833,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -28102,7 +28845,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__ie schema: type: array items: @@ -28110,235 +28853,226 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: manufacturer + name: parent schema: type: array items: type: string - description: Manufacturer (slug) + description: Parent location (slug) explode: true style: form - in: query - name: manufacturer__n + name: parent__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Parent location (slug) explode: true style: form - in: query - name: manufacturer_id + name: parent_id schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Parent location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: parent_id__n schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Parent location (ID) explode: true style: form - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: name + name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: region__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: name__ie + name: region_id schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: name__iew + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: name__isw + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__n + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nic + name: site_group schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query - name: name__nie + name: site_group__n schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query - name: name__niew + name: site_group_id schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: name__nisw + name: site_group_id__n schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Parent inventory item (ID) + description: Site (ID) explode: true style: form - in: query - name: parent_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Parent inventory item (ID) + description: Site (ID) explode: true style: form - in: query - name: part_id + name: slug schema: type: array items: @@ -28346,11 +29080,11 @@ paths: explode: true style: form - in: query - name: part_id__empty + name: slug__empty schema: type: boolean - in: query - name: part_id__ic + name: slug__ic schema: type: array items: @@ -28358,7 +29092,7 @@ paths: explode: true style: form - in: query - name: part_id__ie + name: slug__ie schema: type: array items: @@ -28366,7 +29100,7 @@ paths: explode: true style: form - in: query - name: part_id__iew + name: slug__iew schema: type: array items: @@ -28374,7 +29108,7 @@ paths: explode: true style: form - in: query - name: part_id__isw + name: slug__isw schema: type: array items: @@ -28382,7 +29116,7 @@ paths: explode: true style: form - in: query - name: part_id__n + name: slug__n schema: type: array items: @@ -28390,7 +29124,7 @@ paths: explode: true style: form - in: query - name: part_id__nic + name: slug__nic schema: type: array items: @@ -28398,7 +29132,7 @@ paths: explode: true style: form - in: query - name: part_id__nie + name: slug__nie schema: type: array items: @@ -28406,7 +29140,7 @@ paths: explode: true style: form - in: query - name: part_id__niew + name: slug__niew schema: type: array items: @@ -28414,7 +29148,7 @@ paths: explode: true style: form - in: query - name: part_id__nisw + name: slug__nisw schema: type: array items: @@ -28422,46 +29156,111 @@ paths: explode: true style: form - in: query - name: q + name: status schema: - type: string - description: Search + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form - in: query - name: role + name: status__n schema: type: array items: type: string - description: Role (slug) + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: role__n + name: tag schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Tenant (ID) explode: true style: form - in: query - name: role_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Tenant (ID) explode: true style: form - in: query @@ -28479,21 +29278,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' + $ref: '#/components/schemas/PaginatedLocationList' description: '' post: - operationId: dcim_inventory_item_templates_create - description: Post a list of inventory item template objects. + operationId: dcim_locations_create + description: Post a list of location objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -28503,11 +29302,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_inventory_item_templates_bulk_update - description: Put a list of inventory item template objects. + operationId: dcim_locations_bulk_update + description: Put a list of location objects. tags: - dcim requestBody: @@ -28516,12 +29315,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -28533,11 +29332,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_inventory_item_templates_bulk_partial_update - description: Patch a list of inventory item template objects. + operationId: dcim_locations_bulk_partial_update + description: Patch a list of location objects. tags: - dcim requestBody: @@ -28546,12 +29345,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -28563,11 +29362,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_inventory_item_templates_bulk_destroy - description: Delete a list of inventory item template objects. + operationId: dcim_locations_bulk_destroy + description: Delete a list of location objects. tags: - dcim requestBody: @@ -28576,12 +29375,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -28589,16 +29388,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-item-templates/{id}/: + /api/dcim/locations/{id}/: get: - operationId: dcim_inventory_item_templates_retrieve - description: Get a inventory item template object. + operationId: dcim_locations_retrieve + description: Get a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -28610,17 +29409,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_inventory_item_templates_update - description: Put a inventory item template object. + operationId: dcim_locations_update + description: Put a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -28628,10 +29427,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -28641,17 +29440,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_inventory_item_templates_partial_update - description: Patch a inventory item template object. + operationId: dcim_locations_partial_update + description: Patch a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -28659,10 +29458,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -28671,17 +29470,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemTemplate' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_inventory_item_templates_destroy - description: Delete a inventory item template object. + operationId: dcim_locations_destroy + description: Delete a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item template. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -28691,166 +29490,65 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-items/: + /api/dcim/manufacturers/: get: - operationId: dcim_inventory_items_list - description: Get a list of inventory item objects. + operationId: dcim_manufacturers_list + description: Get a list of manufacturer objects. parameters: - in: query - name: asset_tag + name: contact schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: component_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__gt + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: component_id__gte + name: contact_group schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: component_id__lt + name: contact_group__n schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: component_id__lte + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: component_id__n + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - - in: query - name: component_type - schema: - type: string - - in: query - name: component_type__n - schema: - type: string - in: query name: created schema: @@ -29004,197 +29702,191 @@ paths: explode: true style: form - in: query - name: device + name: id schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__empty schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form + type: boolean - in: query - name: device_id + name: id__gt schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__gte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_role + name: id__lt schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_role__n + name: id__lte schema: type: array items: - type: string - description: Device role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: device_role_id + name: id__n schema: type: array items: type: integer - description: Device role (ID) + format: int32 explode: true style: form - in: query - name: device_role_id__n + name: last_updated schema: type: array items: - type: integer - description: Device role (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_status + name: last_updated__empty schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + format: date-time explode: true style: form - in: query - name: device_status__n + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + format: date-time explode: true style: form - in: query - name: device_type + name: last_updated__gte schema: type: array items: type: string - description: Device type (model) + format: date-time explode: true style: form - in: query - name: device_type__n + name: last_updated__lt schema: type: array items: type: string - description: Device type (model) + format: date-time explode: true style: form - in: query - name: device_type_id + name: last_updated__lte schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_type_id__n + name: last_updated__n schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: discovered + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__empty schema: type: boolean - in: query - name: id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: name__nic schema: type: array items: @@ -29202,11 +29894,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: name__nie schema: type: array items: @@ -29214,7 +29902,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: name__niew schema: type: array items: @@ -29222,23 +29910,32 @@ paths: explode: true style: form - in: query - name: label__iew + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: label__isw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: label__n + name: slug schema: type: array items: @@ -29246,7 +29943,11 @@ paths: explode: true style: form - in: query - name: label__nic + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -29254,7 +29955,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: slug__ie schema: type: array items: @@ -29262,7 +29963,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: slug__iew schema: type: array items: @@ -29270,7 +29971,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: slug__isw schema: type: array items: @@ -29278,155 +29979,363 @@ paths: explode: true style: form - in: query - name: last_updated + name: slug__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: slug__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: slug__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: slug__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: slug__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: tag schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: tag__n schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedManufacturerList' + description: '' + post: + operationId: dcim_manufacturers_create + description: Post a list of manufacturer objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManufacturerRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ManufacturerRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Manufacturer' + description: '' + put: + operationId: dcim_manufacturers_bulk_update + description: Put a list of manufacturer objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ManufacturerRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ManufacturerRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Manufacturer' + description: '' + patch: + operationId: dcim_manufacturers_bulk_partial_update + description: Patch a list of manufacturer objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ManufacturerRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ManufacturerRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Manufacturer' + description: '' + delete: + operationId: dcim_manufacturers_bulk_destroy + description: Delete a list of manufacturer objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ManufacturerRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ManufacturerRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/manufacturers/{id}/: + get: + operationId: dcim_manufacturers_retrieve + description: Get a manufacturer object. + parameters: + - in: path + name: id schema: type: integer - - in: query - name: location + description: A unique integer value identifying this manufacturer. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Manufacturer' + description: '' + put: + operationId: dcim_manufacturers_update + description: Put a manufacturer object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: integer + description: A unique integer value identifying this manufacturer. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ManufacturerRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ManufacturerRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Manufacturer' + description: '' + patch: + operationId: dcim_manufacturers_partial_update + description: Patch a manufacturer object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this manufacturer. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedManufacturerRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedManufacturerRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Manufacturer' + description: '' + delete: + operationId: dcim_manufacturers_destroy + description: Delete a manufacturer object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this manufacturer. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/module-bay-templates/: + get: + operationId: dcim_module_bay_templates_list + description: Get a list of module bay template objects. + parameters: - in: query - name: location__n + name: created schema: type: array items: type: string - description: Location (slug) + format: date-time explode: true style: form - in: query - name: location_id + name: created__empty schema: type: array items: - type: integer - description: Location (ID) + type: string + format: date-time explode: true style: form - in: query - name: location_id__n + name: created__gt schema: type: array items: - type: integer - description: Location (ID) + type: string + format: date-time explode: true style: form - in: query - name: manufacturer + name: created__gte schema: type: array items: type: string - description: Manufacturer (slug) + format: date-time explode: true style: form - in: query - name: manufacturer__n + name: created__lt schema: type: array items: type: string - description: Manufacturer (slug) + format: date-time explode: true style: form - in: query - name: manufacturer_id + name: created__lte schema: type: array items: - type: integer - nullable: true - description: Manufacturer (ID) + type: string + format: date-time explode: true style: form - in: query - name: manufacturer_id__n + name: created__n schema: type: array items: - type: integer - nullable: true - description: Manufacturer (ID) + type: string + format: date-time explode: true style: form - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - in: query - name: name + name: description schema: type: array items: @@ -29434,11 +30343,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -29446,7 +30355,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -29454,7 +30363,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -29462,7 +30371,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -29470,7 +30379,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -29478,7 +30387,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -29486,7 +30395,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -29494,7 +30403,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -29502,123 +30411,109 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent_id + name: device_type_id schema: type: array items: type: integer - nullable: true - description: Parent inventory item (ID) + description: Device type (ID) explode: true style: form - in: query - name: parent_id__n + name: device_type_id__n schema: type: array items: type: integer - nullable: true - description: Parent inventory item (ID) + description: Device type (ID) explode: true style: form - in: query - name: part_id + name: devicetype_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: part_id__empty - schema: - type: boolean - - in: query - name: part_id__ic + name: devicetype_id__n schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: part_id__ie + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__iew + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: part_id__isw + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__n + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__nic + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__nie + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__niew + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__nisw + name: label schema: type: array items: @@ -29626,48 +30521,43 @@ paths: explode: true style: form - in: query - name: q + name: label__empty schema: - type: string - description: Search + type: boolean - in: query - name: rack + name: label__ic schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: label__ie schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: label__iew schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: label__isw schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: label__n schema: type: array items: @@ -29675,7 +30565,7 @@ paths: explode: true style: form - in: query - name: region__n + name: label__nic schema: type: array items: @@ -29683,7 +30573,7 @@ paths: explode: true style: form - in: query - name: region_id + name: label__nie schema: type: array items: @@ -29691,7 +30581,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: label__niew schema: type: array items: @@ -29699,81 +30589,89 @@ paths: explode: true style: form - in: query - name: role + name: label__nisw schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: last_updated schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: role_id + name: last_updated__empty schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: role_id__n + name: last_updated__gt schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + format: date-time explode: true style: form - in: query - name: serial + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__ie + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__iew + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: serial__isw + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -29781,7 +30679,11 @@ paths: explode: true style: form - in: query - name: serial__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -29789,7 +30691,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: name__ie schema: type: array items: @@ -29797,7 +30699,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: name__iew schema: type: array items: @@ -29805,7 +30707,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: name__isw schema: type: array items: @@ -29813,7 +30715,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: name__n schema: type: array items: @@ -29821,25 +30723,23 @@ paths: explode: true style: form - in: query - name: site + name: name__nic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__nie schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__niew schema: type: array items: @@ -29847,15 +30747,27 @@ paths: explode: true style: form - in: query - name: site_group__n + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: site_group_id + name: position schema: type: array items: @@ -29863,7 +30775,11 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: position__empty + schema: + type: boolean + - in: query + name: position__ic schema: type: array items: @@ -29871,25 +30787,23 @@ paths: explode: true style: form - in: query - name: site_id + name: position__ie schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: position__iew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: position__isw schema: type: array items: @@ -29897,7 +30811,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: position__n schema: type: array items: @@ -29905,46 +30819,47 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_chassis + name: position__nic schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: position__nie schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: position__niew schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form - in: query - name: virtual_chassis_id__n + name: position__nisw schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string explode: true style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -29955,21 +30870,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInventoryItemList' + $ref: '#/components/schemas/PaginatedModuleBayTemplateList' description: '' post: - operationId: dcim_inventory_items_create - description: Post a list of inventory item objects. + operationId: dcim_module_bay_templates_create + description: Post a list of module bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -29979,11 +30894,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_inventory_items_bulk_update - description: Put a list of inventory item objects. + operationId: dcim_module_bay_templates_bulk_update + description: Put a list of module bay template objects. tags: - dcim requestBody: @@ -29992,12 +30907,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -30009,11 +30924,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_inventory_items_bulk_partial_update - description: Patch a list of inventory item objects. + operationId: dcim_module_bay_templates_bulk_partial_update + description: Patch a list of module bay template objects. tags: - dcim requestBody: @@ -30022,12 +30937,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -30039,11 +30954,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_inventory_items_bulk_destroy - description: Delete a list of inventory item objects. + operationId: dcim_module_bay_templates_bulk_destroy + description: Delete a list of module bay template objects. tags: - dcim requestBody: @@ -30052,12 +30967,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -30065,16 +30980,16 @@ paths: responses: '204': description: No response body - /api/dcim/inventory-items/{id}/: + /api/dcim/module-bay-templates/{id}/: get: - operationId: dcim_inventory_items_retrieve - description: Get a inventory item object. + operationId: dcim_module_bay_templates_retrieve + description: Get a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -30086,17 +31001,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_inventory_items_update - description: Put a inventory item object. + operationId: dcim_module_bay_templates_update + description: Put a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -30104,10 +31019,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/InventoryItemRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -30117,17 +31032,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_inventory_items_partial_update - description: Patch a inventory item object. + operationId: dcim_module_bay_templates_partial_update + description: Patch a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -30135,10 +31050,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -30147,17 +31062,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/InventoryItem' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_inventory_items_destroy - description: Delete a inventory item object. + operationId: dcim_module_bay_templates_destroy + description: Delete a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this inventory item. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -30167,95 +31082,11 @@ paths: responses: '204': description: No response body - /api/dcim/locations/: + /api/dcim/module-bays/: get: - operationId: dcim_locations_list - description: Get a list of location objects. + operationId: dcim_module_bays_list + description: Get a list of module bay objects. parameters: - - in: query - name: ancestor - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ancestor_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -30409,87 +31240,77 @@ paths: explode: true style: form - in: query - name: facility + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility__empty - schema: - type: boolean - - in: query - name: facility__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__iew + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility__isw + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility__n + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility__nic + name: device_type schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: facility__nie + name: device_type__n schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: facility__niew + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: facility__nisw + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query @@ -30550,6 +31371,108 @@ paths: format: int32 explode: true style: form + - in: query + name: installed_module_id + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: installed_module_id__n + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: label + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__empty + schema: + type: boolean + - in: query + name: label__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: label__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: last_updated schema: @@ -30619,6 +31542,42 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form - in: query name: modified_by_request schema: @@ -30721,50 +31680,35 @@ paths: schema: type: string - in: query - name: parent + name: position schema: type: array items: type: string - description: Parent location (slug) explode: true style: form - in: query - name: parent__n + name: position__empty schema: - type: array - items: - type: string - description: Parent location (slug) - explode: true - style: form + type: boolean - in: query - name: parent_id + name: position__ic schema: type: array items: - type: integer - nullable: true - description: Parent location (ID) + type: string explode: true style: form - in: query - name: parent_id__n + name: position__ie schema: type: array items: - type: integer - nullable: true - description: Parent location (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: position__iew schema: type: array items: @@ -30772,7 +31716,7 @@ paths: explode: true style: form - in: query - name: region__n + name: position__isw schema: type: array items: @@ -30780,7 +31724,7 @@ paths: explode: true style: form - in: query - name: region_id + name: position__n schema: type: array items: @@ -30788,7 +31732,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: position__nic schema: type: array items: @@ -30796,25 +31740,23 @@ paths: explode: true style: form - in: query - name: site + name: position__nie schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: position__niew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: position__nisw schema: type: array items: @@ -30822,185 +31764,192 @@ paths: explode: true style: form - in: query - name: site_group__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: site_group_id + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: site_group_id__n + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: site_id + name: rack_id schema: type: array items: type: integer - description: Site (ID) + description: Rack (ID) explode: true style: form - in: query - name: site_id__n + name: rack_id__n schema: type: array items: type: integer - description: Site (ID) + description: Rack (ID) explode: true style: form - in: query - name: slug + name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: region__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: slug__ie + name: region_id schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: slug__iew + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: slug__isw + name: role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: slug__n + name: role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: slug__nic + name: role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: slug__nie + name: role_id__n schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: slug__niew + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nisw + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: status + name: site_group schema: type: array items: - type: string - x-spec-enum-id: e363a8ddb138be50 + type: integer + description: Site group (slug) explode: true style: form - in: query - name: status__n + name: site_group__n schema: type: array items: - type: string - x-spec-enum-id: e363a8ddb138be50 + type: integer + description: Site group (slug) explode: true style: form - in: query - name: tag + name: site_group_id schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: tag__n + name: site_group_id__n schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: tenant + name: site_id schema: type: array items: - type: string - description: Tenant (slug) + type: integer + description: Site (ID) explode: true style: form - in: query - name: tenant__n + name: site_id__n schema: type: array items: - type: string - description: Tenant (slug) + type: integer + description: Site (ID) explode: true style: form - in: query - name: tenant_group + name: tag schema: type: array items: @@ -31008,7 +31957,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: tag__n schema: type: array items: @@ -31016,46 +31965,46 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: tenant_group_id__n + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: tenant_id + name: virtual_chassis_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: tenant_id__n + name: virtual_chassis_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -31066,21 +32015,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedLocationList' + $ref: '#/components/schemas/PaginatedModuleBayList' description: '' post: - operationId: dcim_locations_create - description: Post a list of location objects. + operationId: dcim_module_bays_create + description: Post a list of module bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -31090,11 +32039,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_locations_bulk_update - description: Put a list of location objects. + operationId: dcim_module_bays_bulk_update + description: Put a list of module bay objects. tags: - dcim requestBody: @@ -31103,12 +32052,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -31120,11 +32069,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_locations_bulk_partial_update - description: Patch a list of location objects. + operationId: dcim_module_bays_bulk_partial_update + description: Patch a list of module bay objects. tags: - dcim requestBody: @@ -31133,12 +32082,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -31150,11 +32099,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_locations_bulk_destroy - description: Delete a list of location objects. + operationId: dcim_module_bays_bulk_destroy + description: Delete a list of module bay objects. tags: - dcim requestBody: @@ -31163,12 +32112,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/LocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -31176,16 +32125,16 @@ paths: responses: '204': description: No response body - /api/dcim/locations/{id}/: + /api/dcim/module-bays/{id}/: get: - operationId: dcim_locations_retrieve - description: Get a location object. + operationId: dcim_module_bays_retrieve + description: Get a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -31197,17 +32146,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_locations_update - description: Put a location object. + operationId: dcim_module_bays_update + description: Put a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -31215,10 +32164,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableLocationRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -31228,17 +32177,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_locations_partial_update - description: Patch a location object. + operationId: dcim_module_bays_partial_update + description: Patch a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -31246,10 +32195,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -31258,17 +32207,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Location' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_locations_destroy - description: Delete a location object. + operationId: dcim_module_bays_destroy + description: Delete a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this location. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -31278,63 +32227,21 @@ paths: responses: '204': description: No response body - /api/dcim/manufacturers/: + /api/dcim/module-types/: get: - operationId: dcim_manufacturers_list - description: Get a list of manufacturer objects. + operationId: dcim_module_types_list + description: Get a list of module type objects. parameters: - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role + name: console_ports schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean + description: Has console ports - in: query - name: contact_role__n + name: console_server_ports schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean + description: Has console server ports - in: query name: created schema: @@ -31545,6 +32452,11 @@ paths: format: int32 explode: true style: form + - in: query + name: interfaces + schema: + type: boolean + description: Has interfaces - in: query name: last_updated schema: @@ -31615,24 +32527,55 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: manufacturer schema: - type: string - format: uuid + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form - in: query - name: name + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__empty + name: manufacturer_id + schema: + type: array + items: + type: integer + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: manufacturer_id__n + schema: + type: array + items: + type: integer + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: model + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: model__empty schema: type: boolean - in: query - name: name__ic + name: model__ic schema: type: array items: @@ -31640,7 +32583,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: model__ie schema: type: array items: @@ -31648,7 +32591,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: model__iew schema: type: array items: @@ -31656,7 +32599,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: model__isw schema: type: array items: @@ -31664,7 +32607,7 @@ paths: explode: true style: form - in: query - name: name__n + name: model__n schema: type: array items: @@ -31672,7 +32615,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: model__nic schema: type: array items: @@ -31680,7 +32623,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: model__nie schema: type: array items: @@ -31688,7 +32631,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: model__niew schema: type: array items: @@ -31696,13 +32639,18 @@ paths: explode: true style: form - in: query - name: name__nisw + name: model__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -31716,12 +32664,7 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: part_number schema: type: array items: @@ -31729,11 +32672,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: part_number__empty schema: type: boolean - in: query - name: slug__ic + name: part_number__ic schema: type: array items: @@ -31741,7 +32684,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: part_number__ie schema: type: array items: @@ -31749,7 +32692,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: part_number__iew schema: type: array items: @@ -31757,7 +32700,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: part_number__isw schema: type: array items: @@ -31765,7 +32708,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: part_number__n schema: type: array items: @@ -31773,7 +32716,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: part_number__nic schema: type: array items: @@ -31781,7 +32724,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: part_number__nie schema: type: array items: @@ -31789,7 +32732,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: part_number__niew schema: type: array items: @@ -31797,13 +32740,33 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: part_number__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: pass_through_ports + schema: + type: boolean + description: Has pass-through ports + - in: query + name: power_outlets + schema: + type: boolean + description: Has power outlets + - in: query + name: power_ports + schema: + type: boolean + description: Has power ports + - in: query + name: q + schema: + type: string + description: Search - in: query name: tag schema: @@ -31825,6 +32788,98 @@ paths: schema: type: string format: uuid + - in: query + name: weight + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight_unit + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: weight_unit__n + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -31835,21 +32890,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedManufacturerList' + $ref: '#/components/schemas/PaginatedModuleTypeList' description: '' post: - operationId: dcim_manufacturers_create - description: Post a list of manufacturer objects. + operationId: dcim_module_types_create + description: Post a list of module type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -31859,11 +32914,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_manufacturers_bulk_update - description: Put a list of manufacturer objects. + operationId: dcim_module_types_bulk_update + description: Put a list of module type objects. tags: - dcim requestBody: @@ -31872,12 +32927,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -31889,11 +32944,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_manufacturers_bulk_partial_update - description: Patch a list of manufacturer objects. + operationId: dcim_module_types_bulk_partial_update + description: Patch a list of module type objects. tags: - dcim requestBody: @@ -31902,12 +32957,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -31919,11 +32974,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_manufacturers_bulk_destroy - description: Delete a list of manufacturer objects. + operationId: dcim_module_types_bulk_destroy + description: Delete a list of module type objects. tags: - dcim requestBody: @@ -31932,12 +32987,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -31945,16 +33000,16 @@ paths: responses: '204': description: No response body - /api/dcim/manufacturers/{id}/: + /api/dcim/module-types/{id}/: get: - operationId: dcim_manufacturers_retrieve - description: Get a manufacturer object. + operationId: dcim_module_types_retrieve + description: Get a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -31966,17 +33021,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_manufacturers_update - description: Put a manufacturer object. + operationId: dcim_module_types_update + description: Put a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -31984,10 +33039,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -31997,17 +33052,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_manufacturers_partial_update - description: Patch a manufacturer object. + operationId: dcim_module_types_partial_update + description: Patch a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -32015,10 +33070,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -32027,17 +33082,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_manufacturers_destroy - description: Delete a manufacturer object. + operationId: dcim_module_types_destroy + description: Delete a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -32047,81 +33102,73 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/: + /api/dcim/modules/: get: - operationId: dcim_module_bay_templates_list - description: Get a list of module bay template objects. + operationId: dcim_modules_list + description: Get a list of module objects. parameters: - in: query - name: created + name: asset_tag schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: asset_tag__empty + schema: + type: boolean + - in: query + name: asset_tag__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: asset_tag__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: asset_tag__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: asset_tag__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: asset_tag__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: asset_tag__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: asset_tag__nie schema: type: array items: @@ -32129,11 +33176,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: asset_tag__niew schema: type: array items: @@ -32141,7 +33184,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: asset_tag__nisw schema: type: array items: @@ -32149,141 +33192,143 @@ paths: explode: true style: form - in: query - name: description__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device_type_id + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: description__niew schema: type: array items: @@ -32291,11 +33336,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: description__nisw schema: type: array items: @@ -32303,67 +33344,79 @@ paths: explode: true style: form - in: query - name: label__ie + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: label__iew + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: label__isw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -32436,92 +33489,119 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: manufacturer schema: - type: string - format: uuid + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form - in: query - name: module_type_id + name: manufacturer__n schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: module_type_id__n + name: manufacturer_id schema: type: array items: type: integer - nullable: true - description: Module type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: name + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__empty + name: modified_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: name__ic + name: module_bay_id schema: type: array items: - type: string + type: integer + description: Module Bay (ID) explode: true style: form - in: query - name: name__ie + name: module_bay_id__n schema: type: array items: - type: string + type: integer + description: Module Bay (ID) explode: true style: form - in: query - name: name__iew + name: module_type schema: type: array items: type: string + description: Module type (model) explode: true style: form - in: query - name: name__isw + name: module_type__n schema: type: array items: type: string + description: Module type (model) explode: true style: form - in: query - name: name__n + name: module_type_id schema: type: array items: - type: string + type: integer + description: Module type (ID) explode: true style: form - in: query - name: name__nic + name: module_type_id__n schema: type: array items: - type: string + type: integer + description: Module type (ID) explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name__nie + name: q + schema: + type: string + description: Search + - in: query + name: serial schema: type: array items: @@ -32529,7 +33609,11 @@ paths: explode: true style: form - in: query - name: name__niew + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: @@ -32537,27 +33621,15 @@ paths: explode: true style: form - in: query - name: name__nisw + name: serial__ie schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: position + name: serial__iew schema: type: array items: @@ -32565,11 +33637,7 @@ paths: explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic + name: serial__isw schema: type: array items: @@ -32577,7 +33645,7 @@ paths: explode: true style: form - in: query - name: position__ie + name: serial__n schema: type: array items: @@ -32585,7 +33653,7 @@ paths: explode: true style: form - in: query - name: position__iew + name: serial__nic schema: type: array items: @@ -32593,7 +33661,7 @@ paths: explode: true style: form - in: query - name: position__isw + name: serial__nie schema: type: array items: @@ -32601,7 +33669,7 @@ paths: explode: true style: form - in: query - name: position__n + name: serial__niew schema: type: array items: @@ -32609,7 +33677,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: serial__nisw schema: type: array items: @@ -32617,23 +33685,25 @@ paths: explode: true style: form - in: query - name: position__nie + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: position__niew + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: position__nisw + name: tag schema: type: array items: @@ -32641,10 +33711,13 @@ paths: explode: true style: form - in: query - name: q + name: tag__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: @@ -32660,21 +33733,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayTemplateList' + $ref: '#/components/schemas/PaginatedModuleList' description: '' post: - operationId: dcim_module_bay_templates_create - description: Post a list of module bay template objects. + operationId: dcim_modules_create + description: Post a list of module objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -32684,11 +33757,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_module_bay_templates_bulk_update - description: Put a list of module bay template objects. + operationId: dcim_modules_bulk_update + description: Put a list of module objects. tags: - dcim requestBody: @@ -32697,12 +33770,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -32714,11 +33787,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_module_bay_templates_bulk_partial_update - description: Patch a list of module bay template objects. + operationId: dcim_modules_bulk_partial_update + description: Patch a list of module objects. tags: - dcim requestBody: @@ -32727,12 +33800,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -32744,11 +33817,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_module_bay_templates_bulk_destroy - description: Delete a list of module bay template objects. + operationId: dcim_modules_bulk_destroy + description: Delete a list of module objects. tags: - dcim requestBody: @@ -32757,12 +33830,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -32770,16 +33843,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/{id}/: + /api/dcim/modules/{id}/: get: - operationId: dcim_module_bay_templates_retrieve - description: Get a module bay template object. + operationId: dcim_modules_retrieve + description: Get a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -32791,17 +33864,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_module_bay_templates_update - description: Put a module bay template object. + operationId: dcim_modules_update + description: Put a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -32809,10 +33882,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -32822,17 +33895,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_module_bay_templates_partial_update - description: Patch a module bay template object. + operationId: dcim_modules_partial_update + description: Patch a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -32840,10 +33913,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -32852,17 +33925,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_module_bay_templates_destroy - description: Delete a module bay template object. + operationId: dcim_modules_destroy + description: Delete a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -32872,11 +33945,35 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/: + /api/dcim/platforms/: get: - operationId: dcim_module_bays_list - description: Get a list of module bay objects. + operationId: dcim_platforms_list + description: Get a list of platform objects. parameters: + - in: query + name: available_for_device_type + schema: + type: string + - in: query + name: config_template_id + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: config_template_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form - in: query name: created schema: @@ -33029,134 +34126,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_status - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -33215,108 +34184,6 @@ paths: format: int32 explode: true style: form - - in: query - name: installed_module_id - schema: - type: array - items: - type: integer - description: Installed module (ID) - explode: true - style: form - - in: query - name: installed_module_id__n - schema: - type: array - items: - type: integer - description: Installed module (ID) - explode: true - style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: last_updated schema: @@ -33387,39 +34254,39 @@ paths: schema: type: integer - in: query - name: location + name: manufacturer schema: type: array items: type: string - description: Location (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: location__n + name: manufacturer__n schema: type: array items: type: string - description: Location (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: location_id + name: manufacturer_id schema: type: array items: type: integer - description: Location (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: location_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Location (ID) + description: Manufacturer (ID) explode: true style: form - in: query @@ -33427,26 +34294,6 @@ paths: schema: type: string format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - in: query name: name schema: @@ -33543,161 +34390,25 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent module bay (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Parent module bay (ID) - explode: true - style: form - - in: query - name: position - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: position__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n + name: slug schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) explode: true style: form - in: query - name: region + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: region__n + name: slug__ic schema: type: array items: @@ -33705,7 +34416,7 @@ paths: explode: true style: form - in: query - name: region_id + name: slug__ie schema: type: array items: @@ -33713,7 +34424,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: slug__iew schema: type: array items: @@ -33721,25 +34432,23 @@ paths: explode: true style: form - in: query - name: site + name: slug__isw schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: slug__nic schema: type: array items: @@ -33747,7 +34456,7 @@ paths: explode: true style: form - in: query - name: site_group__n + name: slug__nie schema: type: array items: @@ -33755,7 +34464,7 @@ paths: explode: true style: form - in: query - name: site_group_id + name: slug__niew schema: type: array items: @@ -33763,31 +34472,13 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: slug__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -33809,42 +34500,6 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -33855,21 +34510,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayList' + $ref: '#/components/schemas/PaginatedPlatformList' description: '' post: - operationId: dcim_module_bays_create - description: Post a list of module bay objects. + operationId: dcim_platforms_create + description: Post a list of platform objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -33879,11 +34534,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_module_bays_bulk_update - description: Put a list of module bay objects. + operationId: dcim_platforms_bulk_update + description: Put a list of platform objects. tags: - dcim requestBody: @@ -33892,12 +34547,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -33909,11 +34564,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_module_bays_bulk_partial_update - description: Patch a list of module bay objects. + operationId: dcim_platforms_bulk_partial_update + description: Patch a list of platform objects. tags: - dcim requestBody: @@ -33922,12 +34577,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -33939,11 +34594,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_module_bays_bulk_destroy - description: Delete a list of module bay objects. + operationId: dcim_platforms_bulk_destroy + description: Delete a list of platform objects. tags: - dcim requestBody: @@ -33952,12 +34607,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -33965,16 +34620,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/{id}/: + /api/dcim/platforms/{id}/: get: - operationId: dcim_module_bays_retrieve - description: Get a module bay object. + operationId: dcim_platforms_retrieve + description: Get a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -33986,17 +34641,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_module_bays_update - description: Put a module bay object. + operationId: dcim_platforms_update + description: Put a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -34004,10 +34659,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -34017,17 +34672,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_module_bays_partial_update - description: Patch a module bay object. + operationId: dcim_platforms_partial_update + description: Patch a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -34035,10 +34690,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -34047,17 +34702,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_module_bays_destroy - description: Delete a module bay object. + operationId: dcim_platforms_destroy + description: Delete a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -34067,67 +34722,177 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/: + /api/dcim/power-feeds/: get: - operationId: dcim_module_types_list - description: Get a list of module type objects. + operationId: dcim_power_feeds_list + description: Get a list of power feed objects. parameters: - in: query - name: airflow + name: amperage + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__empty + schema: + type: boolean + - in: query + name: amperage__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__empty + schema: + type: boolean + - in: query + name: available_power__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: cable_end schema: type: string - x-spec-enum-id: f6e5562e0e98d69d + x-spec-enum-id: 1db84f9b93b261c8 enum: - - front-to-rear - - left-to-right - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear + - A + - B + description: '* `A` - A - * `passive` - Passive' + * `B` - B' - in: query - name: airflow__n + name: cable_end__n schema: type: string - x-spec-enum-id: f6e5562e0e98d69d + x-spec-enum-id: 1db84f9b93b261c8 enum: - - front-to-rear - - left-to-right - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear + - A + - B + description: '* `A` - A - * `passive` - Passive' + * `B` - B' - in: query - name: console_ports + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled schema: type: boolean - description: Has console ports - in: query - name: console_server_ports + name: connected schema: type: boolean - description: Has console server ports - in: query name: created schema: @@ -34338,11 +35103,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - in: query name: last_updated schema: @@ -34413,43 +35173,74 @@ paths: schema: type: integer - in: query - name: manufacturer + name: mark_connected + schema: + type: boolean + - in: query + name: max_utilization schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer__n + name: max_utilization__empty + schema: + type: boolean + - in: query + name: max_utilization__gt schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer_id + name: max_utilization__gte schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: manufacturer_id__n + name: max_utilization__lt schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: model + name: max_utilization__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -34457,11 +35248,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: name__empty schema: type: boolean - in: query - name: model__ic + name: name__ic schema: type: array items: @@ -34469,7 +35260,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -34477,7 +35268,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -34485,7 +35276,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -34493,7 +35284,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -34501,7 +35292,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -34509,7 +35300,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -34517,7 +35308,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -34525,7 +35316,7 @@ paths: explode: true style: form - in: query - name: model__nisw + name: name__nisw schema: type: array items: @@ -34533,10 +35324,9 @@ paths: explode: true style: form - in: query - name: modified_by_request + name: occupied schema: - type: string - format: uuid + type: boolean - name: offset required: false in: query @@ -34550,222 +35340,391 @@ paths: schema: type: string - in: query - name: part_number + name: phase + schema: + type: string + x-spec-enum-id: 994bc0696f4df57f + enum: + - single-phase + - three-phase + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + - in: query + name: phase__n + schema: + type: string + x-spec-enum-id: 994bc0696f4df57f + enum: + - single-phase + - three-phase + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + - in: query + name: power_panel_id schema: type: array items: - type: string + type: integer + description: Power panel (ID) explode: true style: form - in: query - name: part_number__empty + name: power_panel_id__n schema: - type: boolean + type: array + items: + type: integer + description: Power panel (ID) + explode: true + style: form - in: query - name: part_number__ic + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: part_number__ie + name: rack_id__n schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: part_number__iew + name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: part_number__isw + name: region__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: part_number__n + name: region_id schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: part_number__nic + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: part_number__nie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: part_number__niew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: part_number__nisw + name: site_group schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query - name: pass_through_ports + name: site_group__n schema: - type: boolean - description: Has pass-through ports + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form - in: query - name: power_outlets + name: site_group_id schema: - type: boolean - description: Has power outlets + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form - in: query - name: power_ports + name: site_group_id__n schema: - type: boolean - description: Has power ports + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form - in: query - name: q + name: site_id schema: - type: string - description: Search + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: tag + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: status schema: type: array items: type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: tag__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: updated_by_request + name: supply schema: type: string - format: uuid + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' - in: query - name: weight + name: supply__n + schema: + type: string + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' + - in: query + name: tag schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: tag__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__gte + name: tenant schema: type: array items: - type: number - format: double + type: string + description: Tenant (slug) explode: true style: form - in: query - name: weight__lt + name: tenant__n schema: type: array items: - type: number - format: double + type: string + description: Tenant (slug) explode: true style: form - in: query - name: weight__lte + name: tenant_group schema: type: array items: - type: number - format: double + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: weight__n + name: tenant_group__n schema: type: array items: - type: number - format: double + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: weight_unit + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type schema: type: string - x-spec-enum-id: 7c1876f422815884 + x-spec-enum-id: 093a164236819eb8 enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds + - primary + - redundant + description: '* `primary` - Primary - * `oz` - Ounces' + * `redundant` - Redundant' - in: query - name: weight_unit__n + name: type__n schema: type: string - x-spec-enum-id: 7c1876f422815884 + x-spec-enum-id: 093a164236819eb8 enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds + - primary + - redundant + description: '* `primary` - Primary - * `oz` - Ounces' + * `redundant` - Redundant' + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: voltage + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__empty + schema: + type: boolean + - in: query + name: voltage__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - dcim security: @@ -34776,21 +35735,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleTypeList' + $ref: '#/components/schemas/PaginatedPowerFeedList' description: '' post: - operationId: dcim_module_types_create - description: Post a list of module type objects. + operationId: dcim_power_feeds_create + description: Post a list of power feed objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -34800,11 +35759,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_module_types_bulk_update - description: Put a list of module type objects. + operationId: dcim_power_feeds_bulk_update + description: Put a list of power feed objects. tags: - dcim requestBody: @@ -34813,12 +35772,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -34830,11 +35789,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_module_types_bulk_partial_update - description: Patch a list of module type objects. + operationId: dcim_power_feeds_bulk_partial_update + description: Patch a list of power feed objects. tags: - dcim requestBody: @@ -34843,12 +35802,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -34860,11 +35819,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_module_types_bulk_destroy - description: Delete a list of module type objects. + operationId: dcim_power_feeds_bulk_destroy + description: Delete a list of power feed objects. tags: - dcim requestBody: @@ -34873,12 +35832,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -34886,16 +35845,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/{id}/: + /api/dcim/power-feeds/{id}/: get: - operationId: dcim_module_types_retrieve - description: Get a module type object. + operationId: dcim_power_feeds_retrieve + description: Get a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -34907,17 +35866,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_module_types_update - description: Put a module type object. + operationId: dcim_power_feeds_update + description: Put a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -34925,10 +35884,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -34938,17 +35897,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_module_types_partial_update - description: Patch a module type object. + operationId: dcim_power_feeds_partial_update + description: Patch a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -34956,10 +35915,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -34968,17 +35927,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleType' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_module_types_destroy - description: Delete a module type object. + operationId: dcim_power_feeds_destroy + description: Delete a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module type. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -34988,95 +35947,35 @@ paths: responses: '204': description: No response body - /api/dcim/modules/: + /api/dcim/power-feeds/{id}/trace/: get: - operationId: dcim_modules_list - description: Get a list of module objects. + operationId: dcim_power_feeds_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form + type: integer + description: A unique integer value identifying this power feed. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerFeed' + description: '' + /api/dcim/power-outlet-templates/: + get: + operationId: dcim_power_outlet_templates_list + description: Get a list of power outlet template objects. + parameters: - in: query name: created schema: @@ -35230,21 +36129,63 @@ paths: explode: true style: form - in: query - name: device_id + name: device_type_id schema: type: array items: type: integer - description: Device (ID) + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: device_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Device (ID) + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: devicetype_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: devicetype_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: feed_leg + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) + explode: true + style: form + - in: query + name: feed_leg__n + schema: + type: array + items: + type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query @@ -35306,206 +36247,205 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: manufacturer + name: label__nie schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer__n + name: label__niew schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer_id + name: label__nisw schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: manufacturer_id__n + name: last_updated schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string + format: date-time explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_bay_id + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: module_bay_id__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: module_type + name: last_updated__gte schema: type: array items: type: string - description: Module type (model) + format: date-time explode: true style: form - in: query - name: module_type__n + name: last_updated__lt schema: type: array items: type: string - description: Module type (model) + format: date-time explode: true style: form - in: query - name: module_type_id + name: last_updated__lte schema: type: array items: - type: integer - description: Module type (ID) + type: string + format: date-time explode: true style: form - in: query - name: module_type_id__n + name: last_updated__n schema: type: array items: - type: integer - description: Module type (ID) + type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: q + name: module_type_id schema: - type: string - description: Search + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query - name: serial + name: module_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: serial__empty + name: moduletype_id schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query - name: serial__ic + name: moduletype_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: serial__ie + name: name schema: type: array items: @@ -35513,7 +36453,11 @@ paths: explode: true style: form - in: query - name: serial__iew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -35521,7 +36465,7 @@ paths: explode: true style: form - in: query - name: serial__isw + name: name__ie schema: type: array items: @@ -35529,7 +36473,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: name__iew schema: type: array items: @@ -35537,7 +36481,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: name__isw schema: type: array items: @@ -35545,7 +36489,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: name__n schema: type: array items: @@ -35553,7 +36497,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: name__nic schema: type: array items: @@ -35561,7 +36505,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: name__nie schema: type: array items: @@ -35569,39 +36513,222 @@ paths: explode: true style: form - in: query - name: status + name: name__niew schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: status__n + name: name__nisw schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag + name: power_port_id schema: type: array items: - type: string + type: integer + nullable: true + description: Power port (ID) explode: true style: form - in: query - name: tag__n + name: power_port_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Power port (ID) explode: true style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: 2ff919f516566857 + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - ITA/International + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', + ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', + ''C19''), (''iec-60320-c21'', ''C21'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', + ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA + 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), + (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', + ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA + 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA + 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA + 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA + 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA + 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] + + * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', + ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', + ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', + ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', + ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', + ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', + ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', + ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', + ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', + ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', + ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] + + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] + + * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', + ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), + (''usb-c'', ''USB Type C'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), + (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', + ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON + TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), + (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + - in: query + name: type__n + schema: + type: string + x-spec-enum-id: 2ff919f516566857 + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - ITA/International + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', + ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', + ''C19''), (''iec-60320-c21'', ''C21'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', + ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA + 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), + (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', + ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA + 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA + 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA + 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA + 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA + 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] + + * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', + ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', + ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', + ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', + ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', + ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', + ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', + ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', + ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', + ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', + ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] + + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] + + * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', + ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), + (''usb-c'', ''USB Type C'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), + (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', + ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON + TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), + (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -35617,21 +36744,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleList' + $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' description: '' post: - operationId: dcim_modules_create - description: Post a list of module objects. + operationId: dcim_power_outlet_templates_create + description: Post a list of power outlet template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -35641,11 +36768,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_modules_bulk_update - description: Put a list of module objects. + operationId: dcim_power_outlet_templates_bulk_update + description: Put a list of power outlet template objects. tags: - dcim requestBody: @@ -35654,12 +36781,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -35671,11 +36798,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_modules_bulk_partial_update - description: Patch a list of module objects. + operationId: dcim_power_outlet_templates_bulk_partial_update + description: Patch a list of power outlet template objects. tags: - dcim requestBody: @@ -35684,12 +36811,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -35701,11 +36828,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_modules_bulk_destroy - description: Delete a list of module objects. + operationId: dcim_power_outlet_templates_bulk_destroy + description: Delete a list of power outlet template objects. tags: - dcim requestBody: @@ -35714,12 +36841,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -35727,16 +36854,16 @@ paths: responses: '204': description: No response body - /api/dcim/modules/{id}/: + /api/dcim/power-outlet-templates/{id}/: get: - operationId: dcim_modules_retrieve - description: Get a module object. + operationId: dcim_power_outlet_templates_retrieve + description: Get a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -35748,17 +36875,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_modules_update - description: Put a module object. + operationId: dcim_power_outlet_templates_update + description: Put a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -35766,10 +36893,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -35779,17 +36906,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_modules_partial_update - description: Patch a module object. + operationId: dcim_power_outlet_templates_partial_update + description: Patch a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -35797,10 +36924,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -35809,17 +36936,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_modules_destroy - description: Delete a module object. + operationId: dcim_power_outlet_templates_destroy + description: Delete a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -35829,35 +36956,61 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/: + /api/dcim/power-outlets/: get: - operationId: dcim_platforms_list - description: Get a list of platform objects. + operationId: dcim_power_outlets_list + description: Get a list of power outlet objects. parameters: - in: query - name: available_for_device_type + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n schema: type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: config_template_id + name: cable_id schema: type: array items: type: integer nullable: true - description: Config template (ID) + description: Cable (ID) explode: true style: form - in: query - name: config_template_id__n + name: cable_id__n schema: type: array items: type: integer nullable: true - description: Config template (ID) + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -36011,175 +37164,159 @@ paths: explode: true style: form - in: query - name: id + name: device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: id__gte + name: device_id schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__lt + name: device_id__n schema: type: array items: type: integer - format: int32 + description: Device (ID) explode: true style: form - in: query - name: id__lte + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: id__n + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: last_updated + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__empty + name: device_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__gt + name: feed_leg schema: type: array items: type: string - format: date-time + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: last_updated__gte + name: feed_leg__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: last_updated__lt + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__n + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: manufacturer + name: id__gte schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer__n + name: id__lt schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer_id + name: id__lte schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: manufacturer_id__n + name: id__n schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: label schema: type: array items: @@ -36187,11 +37324,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -36199,7 +37336,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -36207,7 +37344,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -36215,7 +37352,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -36223,7 +37360,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -36231,7 +37368,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -36239,7 +37376,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -36247,7 +37384,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -36255,113 +37392,451 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: slug + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: slug__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: slug__nie + name: location schema: type: array items: type: string + description: Location (slug) explode: true style: form - in: query - name: slug__niew + name: location__n schema: type: array items: type: string + description: Location (slug) explode: true style: form - in: query - name: slug__nisw + name: location_id schema: type: array items: - type: string - explode: true + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: power_port_id + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: power_port_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack__n + schema: + type: array + items: + type: string + description: Rack (name) + explode: true + style: form + - in: query + name: rack_id + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: rack_id__n + schema: + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form + - in: query + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true style: form - in: query name: tag @@ -36379,11 +37854,67 @@ paths: type: string explode: true style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: 2ff919f516566857 + description: Physical port type + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 2ff919f516566857 + description: Physical port type + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -36394,21 +37925,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPlatformList' + $ref: '#/components/schemas/PaginatedPowerOutletList' description: '' post: - operationId: dcim_platforms_create - description: Post a list of platform objects. + operationId: dcim_power_outlets_create + description: Post a list of power outlet objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -36418,11 +37949,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_platforms_bulk_update - description: Put a list of platform objects. + operationId: dcim_power_outlets_bulk_update + description: Put a list of power outlet objects. tags: - dcim requestBody: @@ -36431,12 +37962,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -36448,11 +37979,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_platforms_bulk_partial_update - description: Patch a list of platform objects. + operationId: dcim_power_outlets_bulk_partial_update + description: Patch a list of power outlet objects. tags: - dcim requestBody: @@ -36461,12 +37992,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -36478,11 +38009,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_platforms_bulk_destroy - description: Delete a list of platform objects. + operationId: dcim_power_outlets_bulk_destroy + description: Delete a list of power outlet objects. tags: - dcim requestBody: @@ -36491,12 +38022,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -36504,16 +38035,16 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/{id}/: + /api/dcim/power-outlets/{id}/: get: - operationId: dcim_platforms_retrieve - description: Get a platform object. + operationId: dcim_power_outlets_retrieve + description: Get a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -36525,17 +38056,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_platforms_update - description: Put a platform object. + operationId: dcim_power_outlets_update + description: Put a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -36543,10 +38074,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -36556,17 +38087,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_platforms_partial_update - description: Patch a platform object. + operationId: dcim_power_outlets_partial_update + description: Patch a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -36574,10 +38105,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -36586,17 +38117,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_platforms_destroy - description: Delete a platform object. + operationId: dcim_power_outlets_destroy + description: Delete a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -36606,177 +38137,89 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/: + /api/dcim/power-outlets/{id}/trace/: get: - operationId: dcim_power_feeds_list - description: Get a list of power feed objects. + operationId: dcim_power_outlets_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: amperage - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__empty - schema: - type: boolean - - in: query - name: amperage__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__empty - schema: - type: boolean - - in: query - name: available_power__gt + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: A unique integer value identifying this power outlet. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerOutlet' + description: '' + /api/dcim/power-panels/: + get: + operationId: dcim_power_panels_list + description: Get a list of power panel objects. + parameters: - in: query - name: available_power__gte + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: available_power__lt + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: available_power__lte + name: contact_group schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: available_power__n + name: contact_group__n schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: contact_role schema: type: array items: type: integer - nullable: true - description: Cable (ID) + description: Contact Role explode: true style: form - in: query - name: cable_id__n + name: contact_role__n schema: type: array items: type: integer - nullable: true - description: Cable (ID) + description: Contact Role explode: true style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - in: query name: created schema: @@ -37057,65 +38500,21 @@ paths: schema: type: integer - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: max_utilization - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__empty - schema: - type: boolean - - in: query - name: max_utilization__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__lte + name: location_id schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: max_utilization__n + name: location_id__n schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query @@ -37207,10 +38606,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -37223,75 +38618,18 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: phase - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: phase__n - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: power_panel_id - schema: - type: array - items: - type: integer - description: Power panel (ID) - explode: true - style: form - - in: query - name: power_panel_id__n - schema: - type: array - items: - type: integer - description: Power panel (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - in: query name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -37299,7 +38637,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -37307,7 +38646,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query @@ -37315,7 +38655,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query @@ -37341,7 +38682,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -37349,7 +38691,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -37357,7 +38700,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -37365,7 +38709,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -37386,46 +38731,6 @@ paths: description: Site (ID) explode: true style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: b77fc919138c12f6 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: b77fc919138c12f6 - explode: true - style: form - - in: query - name: supply - schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' - - in: query - name: supply__n - schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' - in: query name: tag schema: @@ -37442,161 +38747,11 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type - schema: - type: string - x-spec-enum-id: 093a164236819eb8 - enum: - - primary - - redundant - description: '* `primary` - Primary - - * `redundant` - Redundant' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: 093a164236819eb8 - enum: - - primary - - redundant - description: '* `primary` - Primary - - * `redundant` - Redundant' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: voltage - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__empty - schema: - type: boolean - - in: query - name: voltage__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - dcim security: @@ -37607,21 +38762,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerFeedList' + $ref: '#/components/schemas/PaginatedPowerPanelList' description: '' post: - operationId: dcim_power_feeds_create - description: Post a list of power feed objects. + operationId: dcim_power_panels_create + description: Post a list of power panel objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -37631,11 +38786,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_power_feeds_bulk_update - description: Put a list of power feed objects. + operationId: dcim_power_panels_bulk_update + description: Put a list of power panel objects. tags: - dcim requestBody: @@ -37644,12 +38799,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -37661,11 +38816,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_power_feeds_bulk_partial_update - description: Patch a list of power feed objects. + operationId: dcim_power_panels_bulk_partial_update + description: Patch a list of power panel objects. tags: - dcim requestBody: @@ -37674,12 +38829,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -37691,11 +38846,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_power_feeds_bulk_destroy - description: Delete a list of power feed objects. + operationId: dcim_power_panels_bulk_destroy + description: Delete a list of power panel objects. tags: - dcim requestBody: @@ -37704,12 +38859,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -37717,16 +38872,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/: + /api/dcim/power-panels/{id}/: get: - operationId: dcim_power_feeds_retrieve - description: Get a power feed object. + operationId: dcim_power_panels_retrieve + description: Get a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -37738,17 +38893,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_power_feeds_update - description: Put a power feed object. + operationId: dcim_power_panels_update + description: Put a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -37756,10 +38911,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -37769,17 +38924,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_power_feeds_partial_update - description: Patch a power feed object. + operationId: dcim_power_panels_partial_update + description: Patch a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -37787,10 +38942,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -37799,17 +38954,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_power_feeds_destroy - description: Delete a power feed object. + operationId: dcim_power_panels_destroy + description: Delete a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -37819,35 +38974,69 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/trace/: + /api/dcim/power-port-templates/: get: - operationId: dcim_power_feeds_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_power_port_templates_list + description: Get a list of power port template objects. parameters: - - in: path - name: id + - in: query + name: allocated_draw schema: - type: integer - description: A unique integer value identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - /api/dcim/power-outlet-templates/: - get: - operationId: dcim_power_outlet_templates_list - description: Get a list of power outlet template objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__empty + schema: + type: boolean + - in: query + name: allocated_draw__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: created schema: @@ -38021,23 +39210,23 @@ paths: explode: true style: form - in: query - name: feed_leg + name: devicetype_id schema: type: array items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: feed_leg__n + name: devicetype_id__n schema: type: array items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query @@ -38251,6 +39440,64 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: maximum_draw + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__empty + schema: + type: boolean + - in: query + name: maximum_draw__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: modified_by_request schema: @@ -38276,6 +39523,26 @@ paths: description: Module type (ID) explode: true style: form + - in: query + name: moduletype_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: moduletype_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -38372,26 +39639,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: power_port_id - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: power_port_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - in: query name: q schema: @@ -38401,23 +39648,23 @@ paths: name: type schema: type: string - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 6d680dea031864ae enum: - California Style - DC - IEC 60309 - IEC 60320 - IEC 60906-1 - - ITA/International + - International/ITA - Molex - NEMA (Locking) - NEMA (Non-locking) - Other - Proprietary - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', @@ -38430,77 +39677,79 @@ paths: * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'', - ''NEMA L22-30R'')] + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] + Type O'')] - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] * `DC` - [(''dc-terminal'', ''DC Terminal'')] - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: type__n schema: type: string - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 6d680dea031864ae enum: - California Style - DC - IEC 60309 - IEC 60320 - IEC 60906-1 - - ITA/International + - International/ITA - Molex - NEMA (Locking) - NEMA (Non-locking) - Other - Proprietary - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', @@ -38513,54 +39762,56 @@ paths: * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'', - ''NEMA L22-30R'')] + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] + Type O'')] - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] * `DC` - [(''dc-terminal'', ''DC Terminal'')] - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query @@ -38578,21 +39829,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' + $ref: '#/components/schemas/PaginatedPowerPortTemplateList' description: '' post: - operationId: dcim_power_outlet_templates_create - description: Post a list of power outlet template objects. + operationId: dcim_power_port_templates_create + description: Post a list of power port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -38602,11 +39853,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_power_outlet_templates_bulk_update - description: Put a list of power outlet template objects. + operationId: dcim_power_port_templates_bulk_update + description: Put a list of power port template objects. tags: - dcim requestBody: @@ -38615,12 +39866,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -38632,11 +39883,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_power_outlet_templates_bulk_partial_update - description: Patch a list of power outlet template objects. + operationId: dcim_power_port_templates_bulk_partial_update + description: Patch a list of power port template objects. tags: - dcim requestBody: @@ -38645,12 +39896,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -38662,11 +39913,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_power_outlet_templates_bulk_destroy - description: Delete a list of power outlet template objects. + operationId: dcim_power_port_templates_bulk_destroy + description: Delete a list of power port template objects. tags: - dcim requestBody: @@ -38675,12 +39926,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -38688,16 +39939,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlet-templates/{id}/: + /api/dcim/power-port-templates/{id}/: get: - operationId: dcim_power_outlet_templates_retrieve - description: Get a power outlet template object. + operationId: dcim_power_port_templates_retrieve + description: Get a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -38709,17 +39960,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_power_outlet_templates_update - description: Put a power outlet template object. + operationId: dcim_power_port_templates_update + description: Put a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -38727,10 +39978,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -38740,17 +39991,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_power_outlet_templates_partial_update - description: Patch a power outlet template object. + operationId: dcim_power_port_templates_partial_update + description: Patch a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -38758,10 +40009,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38770,17 +40021,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_power_outlet_templates_destroy - description: Delete a power outlet template object. + operationId: dcim_power_port_templates_destroy + description: Delete a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -38790,11 +40041,69 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/: + /api/dcim/power-ports/: get: - operationId: dcim_power_outlets_list - description: Get a list of power outlet objects. + operationId: dcim_power_ports_list + description: Get a list of power port objects. parameters: + - in: query + name: allocated_draw + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__empty + schema: + type: boolean + - in: query + name: allocated_draw__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: allocated_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: cable_end schema: @@ -39035,60 +40344,6 @@ paths: description: Device (ID) explode: true style: form - - in: query - name: device_role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: device_role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_status - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - - in: query - name: device_status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8d8971779f16ee18 - explode: true - style: form - in: query name: device_type schema: @@ -39125,26 +40380,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: feed_leg - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) - explode: true - style: form - - in: query - name: feed_leg__n - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) - explode: true - style: form - in: query name: id schema: @@ -39396,6 +40631,64 @@ paths: name: mark_connected schema: type: boolean + - in: query + name: maximum_draw + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__empty + schema: + type: boolean + - in: query + name: maximum_draw__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: modified_by_request schema: @@ -39521,26 +40814,6 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: power_port_id - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - - in: query - name: power_port_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Power port (ID) - explode: true - style: form - in: query name: q schema: @@ -39587,7 +40860,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -39595,7 +40869,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -39603,15 +40878,53 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role__n schema: type: array items: type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) explode: true style: form - in: query @@ -39637,7 +40950,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -39645,7 +40959,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -39653,7 +40968,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -39661,7 +40977,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -39704,7 +41021,7 @@ paths: type: array items: type: string - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 6d680dea031864ae description: Physical port type explode: true style: form @@ -39714,7 +41031,7 @@ paths: type: array items: type: string - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 6d680dea031864ae description: Physical port type explode: true style: form @@ -39769,21 +41086,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletList' + $ref: '#/components/schemas/PaginatedPowerPortList' description: '' post: - operationId: dcim_power_outlets_create - description: Post a list of power outlet objects. + operationId: dcim_power_ports_create + description: Post a list of power port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' required: true security: - cookieAuth: [] @@ -39793,11 +41110,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' put: - operationId: dcim_power_outlets_bulk_update - description: Put a list of power outlet objects. + operationId: dcim_power_ports_bulk_update + description: Put a list of power port objects. tags: - dcim requestBody: @@ -39806,12 +41123,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -39823,11 +41140,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' patch: - operationId: dcim_power_outlets_bulk_partial_update - description: Patch a list of power outlet objects. + operationId: dcim_power_ports_bulk_partial_update + description: Patch a list of power port objects. tags: - dcim requestBody: @@ -39836,12 +41153,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -39853,11 +41170,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' delete: - operationId: dcim_power_outlets_bulk_destroy - description: Delete a list of power outlet objects. + operationId: dcim_power_ports_bulk_destroy + description: Delete a list of power port objects. tags: - dcim requestBody: @@ -39866,12 +41183,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -39879,16 +41196,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/: + /api/dcim/power-ports/{id}/: get: - operationId: dcim_power_outlets_retrieve - description: Get a power outlet object. + operationId: dcim_power_ports_retrieve + description: Get a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -39900,17 +41217,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' put: - operationId: dcim_power_outlets_update - description: Put a power outlet object. + operationId: dcim_power_ports_update + description: Put a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -39918,10 +41235,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' required: true security: - cookieAuth: [] @@ -39931,17 +41248,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' patch: - operationId: dcim_power_outlets_partial_update - description: Patch a power outlet object. + operationId: dcim_power_ports_partial_update + description: Patch a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -39949,10 +41266,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -39961,17 +41278,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' delete: - operationId: dcim_power_outlets_destroy - description: Delete a power outlet object. + operationId: dcim_power_ports_destroy + description: Delete a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -39981,9 +41298,9 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/trace/: + /api/dcim/power-ports/{id}/trace/: get: - operationId: dcim_power_outlets_trace_retrieve + operationId: dcim_power_ports_trace_retrieve description: Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). parameters: @@ -39991,7 +41308,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -40003,65 +41320,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/PowerPort' description: '' - /api/dcim/power-panels/: + /api/dcim/rack-reservations/: get: - operationId: dcim_power_panels_list - description: Get a list of power panel objects. + operationId: dcim_rack_reservations_list + description: Get a list of rack reservation objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -40341,12 +41606,31 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: array + items: + type: integer + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: integer + description: Location (slug) + explode: true + style: form - in: query name: location_id schema: type: array items: - type: string + type: integer + description: Location (ID) explode: true style: form - in: query @@ -40354,7 +41638,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Location (ID) explode: true style: form - in: query @@ -40362,125 +41647,151 @@ paths: schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: name__empty + name: rack_id__n schema: - type: boolean + type: array + items: + type: integer + description: Rack (ID) + explode: true + style: form - in: query - name: name__ic + name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: name__ie + name: region__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: name__iew + name: region_id schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: name__isw + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: name__n + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nic + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nie + name: site_group schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query - name: name__niew + name: site_group__n schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query - name: name__nisw + name: site_group_id schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: site_group_id__n schema: - type: string - description: Search + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form - in: query - name: region + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: region__n + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: region_id + name: tag schema: type: array items: @@ -40488,7 +41799,7 @@ paths: explode: true style: form - in: query - name: region_id__n + name: tag__n schema: type: array items: @@ -40496,94 +41807,124 @@ paths: explode: true style: form - in: query - name: site + name: tenant schema: type: array items: type: string - description: Site name (slug) + description: Tenant (slug) explode: true style: form - in: query - name: site__n + name: tenant__n schema: type: array items: type: string - description: Site name (slug) + description: Tenant (slug) explode: true style: form - in: query - name: site_group + name: tenant_group schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: site_group__n + name: tenant_group__n schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: site_group_id + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: site_group_id__n + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: site_id + name: tenant_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag + name: unit + schema: + type: number + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: tag__n + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: updated_by_request + name: user_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form tags: - dcim security: @@ -40594,21 +41935,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPanelList' + $ref: '#/components/schemas/PaginatedRackReservationList' description: '' post: - operationId: dcim_power_panels_create - description: Post a list of power panel objects. + operationId: dcim_rack_reservations_create + description: Post a list of rack reservation objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -40618,11 +41959,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_power_panels_bulk_update - description: Put a list of power panel objects. + operationId: dcim_rack_reservations_bulk_update + description: Put a list of rack reservation objects. tags: - dcim requestBody: @@ -40631,12 +41972,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -40648,11 +41989,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_power_panels_bulk_partial_update - description: Patch a list of power panel objects. + operationId: dcim_rack_reservations_bulk_partial_update + description: Patch a list of rack reservation objects. tags: - dcim requestBody: @@ -40661,12 +42002,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -40678,11 +42019,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_power_panels_bulk_destroy - description: Delete a list of power panel objects. + operationId: dcim_rack_reservations_bulk_destroy + description: Delete a list of rack reservation objects. tags: - dcim requestBody: @@ -40691,12 +42032,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -40704,16 +42045,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-panels/{id}/: + /api/dcim/rack-reservations/{id}/: get: - operationId: dcim_power_panels_retrieve - description: Get a power panel object. + operationId: dcim_rack_reservations_retrieve + description: Get a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -40725,17 +42066,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_power_panels_update - description: Put a power panel object. + operationId: dcim_rack_reservations_update + description: Put a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -40743,10 +42084,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -40756,17 +42097,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_power_panels_partial_update - description: Patch a power panel object. + operationId: dcim_rack_reservations_partial_update + description: Patch a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -40774,10 +42115,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -40786,17 +42127,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_power_panels_destroy - description: Delete a power panel object. + operationId: dcim_rack_reservations_destroy + description: Delete a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -40806,67 +42147,93 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/: + /api/dcim/rack-roles/: get: - operationId: dcim_power_port_templates_list - description: Get a list of power port template objects. + operationId: dcim_rack_roles_list + description: Get a list of rack role objects. parameters: - in: query - name: allocated_draw + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__empty + name: color__empty schema: type: boolean - in: query - name: allocated_draw__gt + name: color__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__gte + name: color__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__lt + name: color__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__lte + name: color__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__n + name: color__n schema: type: array items: - type: integer - format: int32 + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -41021,26 +42388,6 @@ paths: type: string explode: true style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -41100,67 +42447,81 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -41168,7 +42529,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -41176,7 +42541,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__ie schema: type: array items: @@ -41184,159 +42549,100 @@ paths: explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: maximum_draw__lte + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: maximum_draw__n + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_type_id + name: slug__empty schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form + type: boolean - in: query - name: module_type_id__n + name: slug__ic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: slug__ie schema: type: array items: @@ -41344,11 +42650,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: slug__iew schema: type: array items: @@ -41356,7 +42658,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: slug__isw schema: type: array items: @@ -41364,7 +42666,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: slug__n schema: type: array items: @@ -41372,7 +42674,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: slug__nic schema: type: array items: @@ -41380,7 +42682,7 @@ paths: explode: true style: form - in: query - name: name__n + name: slug__nie schema: type: array items: @@ -41388,7 +42690,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__niew schema: type: array items: @@ -41396,7 +42698,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: slug__nisw schema: type: array items: @@ -41404,7 +42706,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tag schema: type: array items: @@ -41412,202 +42714,13 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tag__n schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - x-spec-enum-id: f1bd4aedff3a591b - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - International/ITA - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] - - * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', - ''NEMA L22-30P'')] - - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] - - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: f1bd4aedff3a591b - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - International/ITA - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] - - * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', - ''NEMA L22-30P'')] - - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] - - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -41623,21 +42736,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortTemplateList' + $ref: '#/components/schemas/PaginatedRackRoleList' description: '' post: - operationId: dcim_power_port_templates_create - description: Post a list of power port template objects. + operationId: dcim_rack_roles_create + description: Post a list of rack role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -41647,11 +42760,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_power_port_templates_bulk_update - description: Put a list of power port template objects. + operationId: dcim_rack_roles_bulk_update + description: Put a list of rack role objects. tags: - dcim requestBody: @@ -41660,12 +42773,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -41677,11 +42790,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_power_port_templates_bulk_partial_update - description: Patch a list of power port template objects. + operationId: dcim_rack_roles_bulk_partial_update + description: Patch a list of rack role objects. tags: - dcim requestBody: @@ -41690,12 +42803,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -41707,11 +42820,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_power_port_templates_bulk_destroy - description: Delete a list of power port template objects. + operationId: dcim_rack_roles_bulk_destroy + description: Delete a list of rack role objects. tags: - dcim requestBody: @@ -41720,12 +42833,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -41733,16 +42846,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/{id}/: + /api/dcim/rack-roles/{id}/: get: - operationId: dcim_power_port_templates_retrieve - description: Get a power port template object. + operationId: dcim_rack_roles_retrieve + description: Get a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -41754,17 +42867,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_power_port_templates_update - description: Put a power port template object. + operationId: dcim_rack_roles_update + description: Put a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -41772,10 +42885,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -41785,17 +42898,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_power_port_templates_partial_update - description: Patch a power port template object. + operationId: dcim_rack_roles_partial_update + description: Patch a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -41803,10 +42916,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -41815,17 +42928,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_power_port_templates_destroy - description: Delete a power port template object. + operationId: dcim_rack_roles_destroy + description: Delete a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -41835,119 +42948,149 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/: + /api/dcim/racks/: get: - operationId: dcim_power_ports_list - description: Get a list of power port objects. + operationId: dcim_racks_list + description: Get a list of rack objects. parameters: - in: query - name: allocated_draw + name: asset_tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__empty + name: asset_tag__empty schema: type: boolean - in: query - name: allocated_draw__gt + name: asset_tag__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__gte + name: asset_tag__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__lt + name: asset_tag__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__lte + name: asset_tag__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__n + name: asset_tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: cable_end + name: asset_tag__nic schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + explode: true + style: form - in: query - name: cable_end__n + name: asset_tag__nie schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: string + explode: true + style: form - in: query - name: cable_id + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact schema: type: array items: type: integer - nullable: true - description: Cable (ID) + description: Contact explode: true style: form - in: query - name: cable_id__n + name: contact__n schema: type: array items: type: integer - nullable: true - description: Cable (ID) + description: Contact explode: true style: form - in: query - name: cabled + name: contact_group schema: - type: boolean + type: array + items: + type: integer + description: Contact group + explode: true + style: form - in: query - name: connected + name: contact_group__n schema: - type: boolean + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -42016,6 +43159,10 @@ paths: schema: type: string format: uuid + - in: query + name: desc_units + schema: + type: boolean - in: query name: description schema: @@ -42101,131 +43248,87 @@ paths: explode: true style: form - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n + name: facility_id schema: type: array items: type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) explode: true style: form - in: query - name: device_id__n + name: facility_id__empty schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form + type: boolean - in: query - name: device_role + name: facility_id__ic schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: device_role__n + name: facility_id__ie schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: device_role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: device_role_id__n + name: facility_id__iew schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: device_status + name: facility_id__isw schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_status__n + name: facility_id__n schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: device_type + name: facility_id__nic schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: facility_id__nie schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: facility_id__niew schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: facility_id__nisw schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query @@ -42286,90 +43389,6 @@ paths: format: int32 explode: true style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: last_updated schema: @@ -42444,7 +43463,7 @@ paths: schema: type: array items: - type: string + type: integer description: Location (slug) explode: true style: form @@ -42453,7 +43472,7 @@ paths: schema: type: array items: - type: string + type: integer description: Location (slug) explode: true style: form @@ -42476,11 +43495,7 @@ paths: explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: maximum_draw + name: max_weight schema: type: array items: @@ -42489,11 +43504,11 @@ paths: explode: true style: form - in: query - name: maximum_draw__empty + name: max_weight__empty schema: type: boolean - in: query - name: maximum_draw__gt + name: max_weight__gt schema: type: array items: @@ -42502,7 +43517,7 @@ paths: explode: true style: form - in: query - name: maximum_draw__gte + name: max_weight__gte schema: type: array items: @@ -42511,7 +43526,7 @@ paths: explode: true style: form - in: query - name: maximum_draw__lt + name: max_weight__lt schema: type: array items: @@ -42520,7 +43535,7 @@ paths: explode: true style: form - in: query - name: maximum_draw__lte + name: max_weight__lte schema: type: array items: @@ -42529,7 +43544,7 @@ paths: explode: true style: form - in: query - name: maximum_draw__n + name: max_weight__n schema: type: array items: @@ -42543,23 +43558,61 @@ paths: type: string format: uuid - in: query - name: module_id + name: mounting_depth schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: module_id__n + name: mounting_depth__empty + schema: + type: boolean + - in: query + name: mounting_depth__gt schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mounting_depth__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -42646,10 +43699,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -42663,52 +43712,155 @@ paths: schema: type: string - in: query - name: q + name: outer_depth + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__empty + schema: + type: boolean + - in: query + name: outer_depth__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_unit schema: type: string - description: Search + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: rack + name: outer_unit__n + schema: + type: string + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' + - in: query + name: outer_width schema: type: array items: - type: string - description: Rack (name) + type: integer + format: int32 explode: true style: form - in: query - name: rack__n + name: outer_width__empty + schema: + type: boolean + - in: query + name: outer_width__gt schema: type: array items: - type: string - description: Rack (name) + type: integer + format: int32 explode: true style: form - in: query - name: rack_id + name: outer_width__gte schema: type: array items: type: integer - description: Rack (ID) + format: int32 explode: true style: form - in: query - name: rack_id__n + name: outer_width__lt schema: type: array items: type: integer - description: Rack (ID) + format: int32 + explode: true + style: form + - in: query + name: outer_width__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_width__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form + - in: query + name: q + schema: + type: string + description: Search - in: query name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -42716,7 +43868,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -42724,7 +43877,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query @@ -42732,37 +43886,50 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: site + name: role schema: type: array items: type: string - description: Site name (slug) + description: Role (slug) explode: true style: form - in: query - name: site__n + name: role__n schema: type: array items: type: string - description: Site name (slug) + description: Role (slug) explode: true style: form - in: query - name: site_group + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: site_group__n + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: serial schema: type: array items: @@ -42770,7 +43937,11 @@ paths: explode: true style: form - in: query - name: site_group_id + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic schema: type: array items: @@ -42778,7 +43949,7 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: serial__ie schema: type: array items: @@ -42786,25 +43957,23 @@ paths: explode: true style: form - in: query - name: site_id + name: serial__iew schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: serial__isw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: serial__n schema: type: array items: @@ -42812,7 +43981,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: serial__nic schema: type: array items: @@ -42820,471 +43989,103 @@ paths: explode: true style: form - in: query - name: type + name: serial__nie schema: type: array items: type: string - x-spec-enum-id: f1bd4aedff3a591b - description: Physical port type explode: true style: form - in: query - name: type__n + name: serial__niew schema: type: array items: type: string - x-spec-enum-id: f1bd4aedff3a591b - description: Physical port type explode: true style: form - in: query - name: updated_by_request + name: serial__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_chassis + name: site schema: type: array items: type: string - description: Virtual Chassis + description: Site (slug) explode: true style: form - in: query - name: virtual_chassis__n + name: site__n schema: type: array items: type: string - description: Virtual Chassis + description: Site (slug) explode: true style: form - in: query - name: virtual_chassis_id + name: site_group schema: type: array items: type: integer - description: Virtual Chassis (ID) + description: Site group (slug) explode: true style: form - in: query - name: virtual_chassis_id__n + name: site_group__n schema: type: array items: type: integer - description: Virtual Chassis (ID) - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedPowerPortList' - description: '' - post: - operationId: dcim_power_ports_create - description: Post a list of power port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritablePowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - put: - operationId: dcim_power_ports_bulk_update - description: Put a list of power port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPort' - description: '' - patch: - operationId: dcim_power_ports_bulk_partial_update - description: Patch a list of power port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPort' - description: '' - delete: - operationId: dcim_power_ports_bulk_destroy - description: Delete a list of power port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/power-ports/{id}/: - get: - operationId: dcim_power_ports_retrieve - description: Get a power port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - put: - operationId: dcim_power_ports_update - description: Put a power port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritablePowerPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritablePowerPortRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - patch: - operationId: dcim_power_ports_partial_update - description: Patch a power port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - delete: - operationId: dcim_power_ports_destroy - description: Delete a power port object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/power-ports/{id}/trace/: - get: - operationId: dcim_power_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - /api/dcim/rack-reservations/: - get: - operationId: dcim_rack_reservations_list - description: Get a list of rack reservation objects. - parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string + description: Site group (slug) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: site_group_id schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: description__nie + name: site_group_id__n schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: description__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: description__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: id + name: starting_unit schema: type: array items: @@ -43293,11 +44094,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: starting_unit__empty schema: type: boolean - in: query - name: id__gt + name: starting_unit__gt schema: type: array items: @@ -43306,7 +44107,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: starting_unit__gte schema: type: array items: @@ -43315,7 +44116,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: starting_unit__lt schema: type: array items: @@ -43324,7 +44125,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: starting_unit__lte schema: type: array items: @@ -43333,7 +44134,7 @@ paths: explode: true style: form - in: query - name: id__n + name: starting_unit__n schema: type: array items: @@ -43342,76 +44143,25 @@ paths: explode: true style: form - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte + name: status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: last_updated__n + name: status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: tag schema: type: array items: @@ -43419,7 +44169,7 @@ paths: explode: true style: form - in: query - name: location__n + name: tag__n schema: type: array items: @@ -43427,290 +44177,270 @@ paths: explode: true style: form - in: query - name: location_id + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: location_id__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: tenant_group schema: type: array items: type: integer - description: Rack (ID) + description: Tenant Group (slug) explode: true style: form - in: query - name: rack_id__n + name: tenant_group__n schema: type: array items: type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string + description: Tenant Group (slug) explode: true style: form - in: query - name: region__n + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: region_id + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: region_id__n + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site + name: tenant_id__n schema: type: array items: - type: string - description: Site (slug) + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site__n + name: type schema: type: array items: type: string - description: Site (slug) + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: site_group + name: type__n schema: type: array items: type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: site_group__n + name: u_height schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: site_group_id + name: u_height__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: site_group_id__n + name: u_height__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: site_id + name: u_height__gte schema: type: array items: type: integer - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: u_height__lt schema: type: array items: type: integer - description: Site (ID) + format: int32 explode: true style: form - in: query - name: tag + name: u_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: u_height__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tenant + name: updated_by_request schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: tenant__n + name: weight schema: type: array items: - type: string - description: Tenant (slug) + type: number + format: double explode: true style: form - in: query - name: tenant_group + name: weight__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: tenant_group__n + name: weight__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tenant_group_id + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tenant_group_id__n + name: weight__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tenant_id + name: weight__lte schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: number + format: double explode: true style: form - in: query - name: tenant_id__n + name: weight__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: number + format: double explode: true style: form - in: query - name: unit - schema: - type: number - - in: query - name: updated_by_request + name: weight_unit schema: type: string - format: uuid - - in: query - name: user - schema: - type: array - items: - type: string - description: User (name) - explode: true - style: form + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: user__n + name: weight_unit__n schema: - type: array - items: - type: string - description: User (name) - explode: true - style: form + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: user_id + name: width schema: type: array items: type: integer - description: User (ID) + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: user_id__n + name: width__n schema: type: array items: type: integer - description: User (ID) + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form tags: @@ -43723,21 +44453,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackReservationList' + $ref: '#/components/schemas/PaginatedRackList' description: '' post: - operationId: dcim_rack_reservations_create - description: Post a list of rack reservation objects. + operationId: dcim_racks_create + description: Post a list of rack objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -43747,11 +44477,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: dcim_rack_reservations_bulk_update - description: Put a list of rack reservation objects. + operationId: dcim_racks_bulk_update + description: Put a list of rack objects. tags: - dcim requestBody: @@ -43760,12 +44490,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -43777,11 +44507,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: dcim_rack_reservations_bulk_partial_update - description: Patch a list of rack reservation objects. + operationId: dcim_racks_bulk_partial_update + description: Patch a list of rack objects. tags: - dcim requestBody: @@ -43790,12 +44520,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -43807,11 +44537,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: dcim_rack_reservations_bulk_destroy - description: Delete a list of rack reservation objects. + operationId: dcim_racks_bulk_destroy + description: Delete a list of rack objects. tags: - dcim requestBody: @@ -43820,12 +44550,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -43833,16 +44563,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-reservations/{id}/: + /api/dcim/racks/{id}/: get: - operationId: dcim_rack_reservations_retrieve - description: Get a rack reservation object. + operationId: dcim_racks_retrieve + description: Get a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -43854,17 +44584,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: dcim_rack_reservations_update - description: Put a rack reservation object. + operationId: dcim_racks_update + description: Put a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -43872,10 +44602,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -43885,17 +44615,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: dcim_rack_reservations_partial_update - description: Patch a rack reservation object. + operationId: dcim_racks_partial_update + description: Patch a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -43903,10 +44633,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -43915,17 +44645,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: dcim_rack_reservations_destroy - description: Delete a rack reservation object. + operationId: dcim_racks_destroy + description: Delete a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this rack. required: true tags: - dcim @@ -43935,10 +44665,109 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/: + /api/dcim/racks/{id}/elevation/: get: - operationId: dcim_rack_roles_list - description: Get a list of rack role objects. + operationId: dcim_racks_elevation_retrieve + description: Rack elevation representing the list of rack units. Also supports + rendering the elevation as an SVG. + parameters: + - in: query + name: exclude + schema: + type: integer + - in: query + name: expand_devices + schema: + type: boolean + default: true + - in: query + name: face + schema: + enum: + - front + - rear + type: string + x-spec-enum-id: d2fb9b3f75158b83 + default: front + minLength: 1 + description: '* `front` - Front + + * `rear` - Rear' + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rack. + required: true + - in: query + name: include_images + schema: + type: boolean + default: true + - in: query + name: legend_width + schema: + type: integer + default: 30 + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: margin_width + schema: + type: integer + default: 15 + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - in: query + name: q + schema: + type: string + minLength: 1 + - in: query + name: render + schema: + enum: + - json + - svg + type: string + x-spec-enum-id: 09901a5ff13ba07a + default: json + minLength: 1 + description: '* `json` - json + + * `svg` - svg' + - in: query + name: unit_height + schema: + type: integer + - in: query + name: unit_width + schema: + type: integer + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRackUnitList' + description: '' + /api/dcim/rear-port-templates/: + get: + operationId: dcim_rear_port_templates_list + description: Get a list of rear port template objects. parameters: - in: query name: color @@ -44176,6 +45005,46 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: devicetype_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: devicetype_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -44235,81 +45104,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -44317,11 +45172,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -44329,7 +45180,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -44337,116 +45188,121 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: module_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: module_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: slug__ie + name: moduletype_id schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: slug__iew + name: moduletype_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: slug__isw + name: name schema: type: array items: @@ -44454,7 +45310,11 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -44462,7 +45322,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__ie schema: type: array items: @@ -44470,7 +45330,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__iew schema: type: array items: @@ -44478,7 +45338,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__isw schema: type: array items: @@ -44486,7 +45346,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__n schema: type: array items: @@ -44494,7 +45354,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -44502,11 +45362,120 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: positions + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__empty + schema: + type: boolean + - in: query + name: positions__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: positions__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: 0276d1110ada597a + explode: true + style: form + - in: query + name: type__n schema: type: array items: type: string + x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query @@ -44524,21 +45493,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackRoleList' + $ref: '#/components/schemas/PaginatedRearPortTemplateList' description: '' post: - operationId: dcim_rack_roles_create - description: Post a list of rack role objects. + operationId: dcim_rear_port_templates_create + description: Post a list of rear port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -44548,11 +45517,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: dcim_rack_roles_bulk_update - description: Put a list of rack role objects. + operationId: dcim_rear_port_templates_bulk_update + description: Put a list of rear port template objects. tags: - dcim requestBody: @@ -44561,12 +45530,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -44578,11 +45547,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: dcim_rack_roles_bulk_partial_update - description: Patch a list of rack role objects. + operationId: dcim_rear_port_templates_bulk_partial_update + description: Patch a list of rear port template objects. tags: - dcim requestBody: @@ -44591,12 +45560,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -44608,11 +45577,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: dcim_rack_roles_bulk_destroy - description: Delete a list of rack role objects. + operationId: dcim_rear_port_templates_bulk_destroy + description: Delete a list of rear port template objects. tags: - dcim requestBody: @@ -44621,12 +45590,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -44634,16 +45603,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/{id}/: + /api/dcim/rear-port-templates/{id}/: get: - operationId: dcim_rack_roles_retrieve - description: Get a rack role object. + operationId: dcim_rear_port_templates_retrieve + description: Get a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -44655,17 +45624,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/RearPortTemplate' description: '' put: - operationId: dcim_rack_roles_update - description: Put a rack role object. + operationId: dcim_rear_port_templates_update + description: Put a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -44673,10 +45642,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritableRearPortTemplateRequest' required: true security: - cookieAuth: [] @@ -44686,17 +45655,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/RearPortTemplate' description: '' patch: - operationId: dcim_rack_roles_partial_update - description: Patch a rack role object. + operationId: dcim_rear_port_templates_partial_update + description: Patch a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -44704,10 +45673,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -44716,17 +45685,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/RearPortTemplate' description: '' delete: - operationId: dcim_rack_roles_destroy - description: Delete a rack role object. + operationId: dcim_rear_port_templates_destroy + description: Delete a rear port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this rear port template. required: true tags: - dcim @@ -44736,85 +45705,103 @@ paths: responses: '204': description: No response body - /api/dcim/rack-types/: + /api/dcim/rear-ports/: get: - operationId: dcim_rack_types_list - description: Get a list of rack type objects. + operationId: dcim_rear_ports_list + description: Get a list of rear port objects. parameters: - in: query - name: created + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_end__n + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: created__empty + name: cable_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: created__gt + name: cabled + schema: + type: boolean + - in: query + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: desc_units - schema: - type: boolean - - in: query - name: description + name: color__n schema: type: array items: @@ -44822,11 +45809,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__nic schema: type: array items: @@ -44834,7 +45817,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nie schema: type: array items: @@ -44842,7 +45825,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: color__niew schema: type: array items: @@ -44850,7 +45833,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: color__nisw schema: type: array items: @@ -44858,228 +45841,233 @@ paths: explode: true style: form - in: query - name: description__n + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: form_factor + name: created__lte schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea + format: date-time explode: true style: form - in: query - name: form_factor__n + name: created__n schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea + format: date-time explode: true style: form - in: query - name: id + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: device schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: last_updated__lte + name: device__n schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: last_updated__n + name: device_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: device_id__n schema: - type: integer + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form - in: query - name: manufacturer + name: device_type schema: type: array items: type: string - description: Manufacturer (slug) + description: Device type (model) explode: true style: form - in: query - name: manufacturer__n + name: device_type__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Device type (model) explode: true style: form - in: query - name: manufacturer_id + name: device_type_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Device type (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: device_type_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Device type (ID) explode: true style: form - in: query - name: max_weight + name: id schema: type: array items: @@ -45088,11 +46076,11 @@ paths: explode: true style: form - in: query - name: max_weight__empty + name: id__empty schema: type: boolean - in: query - name: max_weight__gt + name: id__gt schema: type: array items: @@ -45101,7 +46089,7 @@ paths: explode: true style: form - in: query - name: max_weight__gte + name: id__gte schema: type: array items: @@ -45110,7 +46098,7 @@ paths: explode: true style: form - in: query - name: max_weight__lt + name: id__lt schema: type: array items: @@ -45119,7 +46107,7 @@ paths: explode: true style: form - in: query - name: max_weight__lte + name: id__lte schema: type: array items: @@ -45128,7 +46116,7 @@ paths: explode: true style: form - in: query - name: max_weight__n + name: id__n schema: type: array items: @@ -45137,7 +46125,7 @@ paths: explode: true style: form - in: query - name: model + name: label schema: type: array items: @@ -45145,11 +46133,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: label__empty schema: type: boolean - in: query - name: model__ic + name: label__ic schema: type: array items: @@ -45157,7 +46145,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: label__ie schema: type: array items: @@ -45165,7 +46153,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: label__iew schema: type: array items: @@ -45173,7 +46161,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: label__isw schema: type: array items: @@ -45181,7 +46169,7 @@ paths: explode: true style: form - in: query - name: model__n + name: label__n schema: type: array items: @@ -45189,7 +46177,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: label__nic schema: type: array items: @@ -45197,7 +46185,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: label__nie schema: type: array items: @@ -45205,7 +46193,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: label__niew schema: type: array items: @@ -45213,7 +46201,7 @@ paths: explode: true style: form - in: query - name: model__nisw + name: label__nisw schema: type: array items: @@ -45221,225 +46209,201 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: mounting_depth + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: mounting_depth__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: mounting_depth__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: mounting_depth__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: mounting_depth__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: mounting_depth__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: mounting_depth__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: outer_depth + name: location schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: outer_depth__empty - schema: - type: boolean - - in: query - name: outer_depth__gt + name: location__n schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: outer_depth__gte + name: location_id schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: outer_depth__lt + name: location_id__n schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: outer_depth__lte + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query - name: outer_depth__n + name: module_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Module (ID) explode: true style: form - in: query - name: outer_unit - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_unit__n - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_width + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: outer_width__empty + name: name__empty schema: type: boolean - in: query - name: outer_width__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: outer_width__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: outer_width__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: outer_width__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: outer_width__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: q + name: name__nic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: slug + name: name__nie schema: type: array items: @@ -45447,11 +46411,15 @@ paths: explode: true style: form - in: query - name: slug__empty + name: name__niew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: slug__ic + name: name__nisw schema: type: array items: @@ -45459,316 +46427,337 @@ paths: explode: true style: form - in: query - name: slug__ie + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: positions schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: positions__empty + schema: + type: boolean + - in: query + name: positions__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__isw + name: positions__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__n + name: positions__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nic + name: positions__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nie + name: positions__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__niew + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: slug__nisw + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: starting_unit + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: starting_unit__empty - schema: - type: boolean - - in: query - name: starting_unit__gt + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: starting_unit__gte + name: region schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: starting_unit__lt + name: region__n schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: starting_unit__lte + name: region_id schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: starting_unit__n + name: region_id__n schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: tag + name: role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: tag__n + name: role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: u_height + name: role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: u_height__empty - schema: - type: boolean - - in: query - name: u_height__gt + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: u_height__gte + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: u_height__lt + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: u_height__lte + name: site_group schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: u_height__n + name: site_group__n schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: updated_by_request + name: site_group_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form - in: query - name: weight + name: site_group_id__n schema: type: array items: - type: number - format: double + type: integer + description: Site group (ID) explode: true style: form - in: query - name: weight__empty + name: site_id schema: - type: boolean + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: weight__gt + name: site_id__n schema: type: array items: - type: number - format: double + type: integer + description: Site (ID) explode: true style: form - in: query - name: weight__gte + name: tag schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lt + name: tag__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lte + name: type schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: weight__n + name: type__n schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: weight_unit + name: updated_by_request schema: type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + format: uuid - in: query - name: weight_unit__n + name: virtual_chassis schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form - in: query - name: width + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: Virtual Chassis (ID) explode: true style: form - in: query - name: width__n + name: virtual_chassis_id__n schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: Virtual Chassis (ID) explode: true style: form tags: @@ -45781,21 +46770,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackTypeList' + $ref: '#/components/schemas/PaginatedRearPortList' description: '' post: - operationId: dcim_rack_types_create - description: Post a list of rack type objects. + operationId: dcim_rear_ports_create + description: Post a list of rear port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRackTypeRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackTypeRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -45805,11 +46794,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackType' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: dcim_rack_types_bulk_update - description: Put a list of rack type objects. + operationId: dcim_rear_ports_bulk_update + description: Put a list of rear port objects. tags: - dcim requestBody: @@ -45818,12 +46807,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackTypeRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackTypeRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -45835,11 +46824,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackType' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: dcim_rack_types_bulk_partial_update - description: Patch a list of rack type objects. + operationId: dcim_rear_ports_bulk_partial_update + description: Patch a list of rear port objects. tags: - dcim requestBody: @@ -45848,12 +46837,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackTypeRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackTypeRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -45865,11 +46854,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackType' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: dcim_rack_types_bulk_destroy - description: Delete a list of rack type objects. + operationId: dcim_rear_ports_bulk_destroy + description: Delete a list of rear port objects. tags: - dcim requestBody: @@ -45878,12 +46867,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackTypeRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackTypeRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -45891,16 +46880,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-types/{id}/: + /api/dcim/rear-ports/{id}/: get: - operationId: dcim_rack_types_retrieve - description: Get a rack type object. + operationId: dcim_rear_ports_retrieve + description: Get a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack type. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -45912,17 +46901,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackType' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: dcim_rack_types_update - description: Put a rack type object. + operationId: dcim_rear_ports_update + description: Put a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack type. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -45930,10 +46919,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRackTypeRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackTypeRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -45943,17 +46932,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackType' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: dcim_rack_types_partial_update - description: Patch a rack type object. + operationId: dcim_rear_ports_partial_update + description: Patch a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack type. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -45961,10 +46950,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRackTypeRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRackTypeRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -45973,17 +46962,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackType' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: dcim_rack_types_destroy - description: Delete a rack type object. + operationId: dcim_rear_ports_destroy + description: Delete a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack type. + description: A unique integer value identifying this rear port. required: true tags: - dcim @@ -45993,115 +46982,68 @@ paths: responses: '204': description: No response body - /api/dcim/racks/: + /api/dcim/rear-ports/{id}/paths/: get: - operationId: dcim_racks_list - description: Get a list of rack objects. + operationId: dcim_rear_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. parameters: - - in: query - name: airflow - schema: - type: string - x-spec-enum-id: a784734d07ef1b3c - enum: - - front-to-rear - - rear-to-front - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: a784734d07ef1b3c - enum: - - front-to-rear - - rear-to-front - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front' - - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form + type: integer + description: A unique integer value identifying this rear port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPort' + description: '' + /api/dcim/regions/: + get: + operationId: dcim_regions_list + description: Get a list of region objects. + parameters: - in: query - name: asset_tag__nic + name: ancestor schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: asset_tag__nie + name: ancestor__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: asset_tag__niew + name: ancestor_id schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query - name: asset_tag__nisw + name: ancestor_id__n schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query @@ -46127,7 +47069,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Contact group explode: true style: form - in: query @@ -46135,7 +47078,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Contact group explode: true style: form - in: query @@ -46224,10 +47168,6 @@ paths: schema: type: string format: uuid - - in: query - name: desc_units - schema: - type: boolean - in: query name: description schema: @@ -46313,149 +47253,47 @@ paths: explode: true style: form - in: query - name: facility_id + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility_id__empty + name: id__empty schema: type: boolean - in: query - name: facility_id__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility_id__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility_id__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: form_factor - schema: - type: array - items: - type: string - x-spec-enum-id: e32aaa89a223f2ea - explode: true - style: form - - in: query - name: form_factor__n - schema: - type: array - items: - type: string - x-spec-enum-id: e32aaa89a223f2ea - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte + name: id__lte schema: type: array items: @@ -46542,7 +47380,12 @@ paths: schema: type: integer - in: query - name: location + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -46550,7 +47393,11 @@ paths: explode: true style: form - in: query - name: location__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -46558,7 +47405,7 @@ paths: explode: true style: form - in: query - name: location_id + name: name__ie schema: type: array items: @@ -46566,7 +47413,7 @@ paths: explode: true style: form - in: query - name: location_id__n + name: name__iew schema: type: array items: @@ -46574,164 +47421,138 @@ paths: explode: true style: form - in: query - name: manufacturer + name: name__isw schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer__n + name: name__n schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer_id + name: name__nic schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: manufacturer_id__n + name: name__nie schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: max_weight + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: max_weight__empty - schema: - type: boolean - - in: query - name: max_weight__gt + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: max_weight__gte + name: parent schema: type: array items: - type: integer - format: int32 + type: string + description: Parent region (slug) explode: true style: form - in: query - name: max_weight__lt + name: parent__n schema: type: array items: - type: integer - format: int32 + type: string + description: Parent region (slug) explode: true style: form - in: query - name: max_weight__lte + name: parent_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent region (ID) explode: true style: form - in: query - name: max_weight__n + name: parent_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent region (ID) explode: true style: form - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: mounting_depth + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: mounting_depth__empty + name: slug__empty schema: type: boolean - in: query - name: mounting_depth__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mounting_depth__lte + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: mounting_depth__n + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: name + name: slug__iew schema: type: array items: @@ -46739,11 +47560,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: slug__isw schema: type: array items: @@ -46751,7 +47568,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: slug__n schema: type: array items: @@ -46759,7 +47576,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: slug__nic schema: type: array items: @@ -46767,7 +47584,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: slug__nie schema: type: array items: @@ -46775,7 +47592,7 @@ paths: explode: true style: form - in: query - name: name__n + name: slug__niew schema: type: array items: @@ -46783,7 +47600,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__nisw schema: type: array items: @@ -46791,7 +47608,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: tag schema: type: array items: @@ -46799,7 +47616,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tag__n schema: type: array items: @@ -46807,232 +47624,397 @@ paths: explode: true style: form - in: query - name: name__nisw + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRegionList' + description: '' + post: + operationId: dcim_regions_create + description: Post a list of region objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableRegionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableRegionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Region' + description: '' + put: + operationId: dcim_regions_bulk_update + description: Put a list of region objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RegionRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RegionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Region' + description: '' + patch: + operationId: dcim_regions_bulk_partial_update + description: Patch a list of region objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RegionRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RegionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Region' + description: '' + delete: + operationId: dcim_regions_bulk_destroy + description: Delete a list of region objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RegionRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RegionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/regions/{id}/: + get: + operationId: dcim_regions_retrieve + description: Get a region object. + parameters: + - in: path + name: id schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + description: A unique integer value identifying this region. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Region' + description: '' + put: + operationId: dcim_regions_update + description: Put a region object. + parameters: + - in: path + name: id schema: - type: string - - in: query - name: outer_depth + type: integer + description: A unique integer value identifying this region. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableRegionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableRegionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Region' + description: '' + patch: + operationId: dcim_regions_partial_update + description: Patch a region object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: outer_depth__empty + type: integer + description: A unique integer value identifying this region. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableRegionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableRegionRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Region' + description: '' + delete: + operationId: dcim_regions_destroy + description: Delete a region object. + parameters: + - in: path + name: id schema: - type: boolean + type: integer + description: A unique integer value identifying this region. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/site-groups/: + get: + operationId: dcim_site_groups_list + description: Get a list of site group objects. + parameters: - in: query - name: outer_depth__gt + name: ancestor schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: outer_depth__gte + name: ancestor__n schema: type: array items: type: integer - format: int32 + description: Site group (slug) explode: true style: form - in: query - name: outer_depth__lt + name: ancestor_id schema: type: array items: type: integer - format: int32 + description: Site group (ID) explode: true style: form - in: query - name: outer_depth__lte + name: ancestor_id__n schema: type: array items: type: integer - format: int32 + description: Site group (ID) explode: true style: form - in: query - name: outer_depth__n + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: outer_unit - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_unit__n - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_width + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: outer_width__empty - schema: - type: boolean - - in: query - name: outer_width__gt + name: contact_group schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: outer_width__gte + name: contact_group__n schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: outer_width__lt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: outer_width__lte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: outer_width__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_type + name: created__empty schema: type: array items: type: string - description: Rack type (slug) + format: date-time explode: true style: form - in: query - name: rack_type__n + name: created__gt schema: type: array items: type: string - description: Rack type (slug) + format: date-time explode: true style: form - in: query - name: rack_type_id + name: created__gte schema: type: array items: - type: integer - nullable: true - description: Rack type (ID) + type: string + format: date-time explode: true style: form - in: query - name: rack_type_id__n + name: created__lt schema: type: array items: - type: integer - nullable: true - description: Rack type (ID) + type: string + format: date-time explode: true style: form - in: query - name: region + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: region__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: region_id + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: region_id__n + name: description schema: type: array items: @@ -47040,45 +48022,35 @@ paths: explode: true style: form - in: query - name: role + name: description__empty schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + type: boolean - in: query - name: role__n + name: description__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: description__iew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: serial + name: description__isw schema: type: array items: @@ -47086,11 +48058,7 @@ paths: explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: description__n schema: type: array items: @@ -47098,7 +48066,7 @@ paths: explode: true style: form - in: query - name: serial__ie + name: description__nic schema: type: array items: @@ -47106,7 +48074,7 @@ paths: explode: true style: form - in: query - name: serial__iew + name: description__nie schema: type: array items: @@ -47114,7 +48082,7 @@ paths: explode: true style: form - in: query - name: serial__isw + name: description__niew schema: type: array items: @@ -47122,7 +48090,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: description__nisw schema: type: array items: @@ -47130,183 +48098,175 @@ paths: explode: true style: form - in: query - name: serial__nic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__nie + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: serial__niew + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__nisw + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: site + name: id__lt schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: id__lte schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: site_group__n + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: site_group_id + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: site_group_id__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: site_id + name: last_updated__gte schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: site_id__n + name: last_updated__lt schema: type: array items: - type: integer - description: Site (ID) + type: string + format: date-time explode: true style: form - in: query - name: starting_unit + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: starting_unit__empty - schema: - type: boolean - - in: query - name: starting_unit__gt + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: starting_unit__gte + name: modified_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: starting_unit__lt + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: starting_unit__lte + name: name__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: starting_unit__n + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: status + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: status__n + name: name__iew schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: tag + name: name__isw schema: type: array items: @@ -47314,7 +48274,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__n schema: type: array items: @@ -47322,25 +48282,23 @@ paths: explode: true style: form - in: query - name: tenant + name: name__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__niew schema: type: array items: @@ -47348,224 +48306,173 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tenant_group_id + name: parent schema: type: array items: type: string + description: Parent site group (slug) explode: true style: form - in: query - name: tenant_group_id__n + name: parent__n schema: type: array items: type: string + description: Parent site group (slug) explode: true style: form - in: query - name: tenant_id + name: parent_id schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Parent site group (ID) explode: true style: form - in: query - name: tenant_id__n + name: parent_id__n schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: Parent site group (ID) explode: true style: form - in: query - name: u_height + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__empty + name: slug__empty schema: type: boolean - in: query - name: u_height__gt + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__gte + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__lt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__lte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: u_height__n + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: slug__nic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: slug__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__gte + name: slug__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lt + name: slug__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__lte + name: tag schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight__n + name: tag__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n + name: updated_by_request schema: type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: width - schema: - type: array - items: - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width - explode: true - style: form - - in: query - name: width__n - schema: - type: array - items: - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width - explode: true - style: form + format: uuid tags: - dcim security: @@ -47576,21 +48483,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackList' + $ref: '#/components/schemas/PaginatedSiteGroupList' description: '' post: - operationId: dcim_racks_create - description: Post a list of rack objects. + operationId: dcim_site_groups_create + description: Post a list of site group objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -47600,11 +48507,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: dcim_racks_bulk_update - description: Put a list of rack objects. + operationId: dcim_site_groups_bulk_update + description: Put a list of site group objects. tags: - dcim requestBody: @@ -47613,12 +48520,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -47630,11 +48537,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: dcim_racks_bulk_partial_update - description: Patch a list of rack objects. + operationId: dcim_site_groups_bulk_partial_update + description: Patch a list of site group objects. tags: - dcim requestBody: @@ -47643,12 +48550,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -47660,11 +48567,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: dcim_racks_bulk_destroy - description: Delete a list of rack objects. + operationId: dcim_site_groups_bulk_destroy + description: Delete a list of site group objects. tags: - dcim requestBody: @@ -47673,12 +48580,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -47686,16 +48593,16 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/: + /api/dcim/site-groups/{id}/: get: - operationId: dcim_racks_retrieve - description: Get a rack object. + operationId: dcim_site_groups_retrieve + description: Get a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this site group. required: true tags: - dcim @@ -47707,17 +48614,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: dcim_racks_update - description: Put a rack object. + operationId: dcim_site_groups_update + description: Put a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this site group. required: true tags: - dcim @@ -47725,10 +48632,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -47738,17 +48645,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: dcim_racks_partial_update - description: Patch a rack object. + operationId: dcim_site_groups_partial_update + description: Patch a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this site group. required: true tags: - dcim @@ -47756,10 +48663,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -47768,17 +48675,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: dcim_racks_destroy - description: Delete a rack object. + operationId: dcim_site_groups_destroy + description: Delete a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this site group. required: true tags: - dcim @@ -47788,192 +48695,105 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/elevation/: + /api/dcim/sites/: get: - operationId: dcim_racks_elevation_retrieve - description: Rack elevation representing the list of rack units. Also supports - rendering the elevation as an SVG. + operationId: dcim_sites_list + description: Get a list of site objects. parameters: - in: query - name: exclude - schema: - type: integer - - in: query - name: expand_devices - schema: - type: boolean - default: true - - in: query - name: face - schema: - enum: - - front - - rear - type: string - x-spec-enum-id: d2fb9b3f75158b83 - default: front - minLength: 1 - description: '* `front` - Front - - * `rear` - Rear' - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this rack. - required: true - - in: query - name: include_images - schema: - type: boolean - default: true - - in: query - name: legend_width - schema: - type: integer - default: 30 - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: margin_width - schema: - type: integer - default: 15 - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - minLength: 1 - - in: query - name: render - schema: - enum: - - json - - svg - type: string - x-spec-enum-id: 09901a5ff13ba07a - default: json - minLength: 1 - description: '* `json` - json - - * `svg` - svg' - - in: query - name: unit_height - schema: - type: integer - - in: query - name: unit_width - schema: - type: integer - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRackUnitList' - description: '' - /api/dcim/rear-port-templates/: - get: - operationId: dcim_rear_port_templates_list - description: Get a list of rear port template objects. - parameters: - - in: query - name: color + name: asn schema: type: array items: - type: string + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: asn__n schema: type: array items: - type: string + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: color__ie + name: asn_id schema: type: array items: - type: string + type: integer + description: AS (ID) explode: true style: form - in: query - name: color__iew + name: asn_id__n schema: type: array items: - type: string + type: integer + description: AS (ID) explode: true style: form - in: query - name: color__isw + name: contact schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: color__n + name: contact__n schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: color__nic + name: contact_group schema: type: array items: - type: string + type: integer + description: Contact group explode: true style: form - in: query - name: color__nie + name: contact_group__n schema: type: array items: - type: string + type: integer + description: Contact group explode: true style: form - in: query - name: color__niew + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: color__nisw + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query @@ -48129,85 +48949,83 @@ paths: explode: true style: form - in: query - name: device_type_id + name: facility schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: facility__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: facility__iew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: facility__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: facility__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: facility__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: facility__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: facility__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: facility__nisw schema: type: array items: @@ -48215,79 +49033,97 @@ paths: explode: true style: form - in: query - name: label__empty + name: group schema: - type: boolean + type: array + items: + type: integer + description: Group (slug) + explode: true + style: form - in: query - name: label__ic + name: group__n schema: type: array items: - type: string + type: integer + description: Group (slug) explode: true style: form - in: query - name: label__ie + name: group_id schema: type: array items: - type: string + type: integer + description: Group (ID) explode: true style: form - in: query - name: label__iew + name: group_id__n schema: type: array items: - type: string + type: integer + description: Group (ID) explode: true style: form - in: query - name: label__isw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -48353,6 +49189,64 @@ paths: format: date-time explode: true style: form + - in: query + name: latitude + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: latitude__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form - name: limit required: false in: query @@ -48360,30 +49254,68 @@ paths: schema: type: integer - in: query - name: modified_by_request + name: longitude schema: - type: string - format: uuid + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: module_type_id + name: longitude__empty + schema: + type: boolean + - in: query + name: longitude__gt schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: number + format: double explode: true style: form - in: query - name: module_type_id__n + name: longitude__gte schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: number + format: double + explode: true + style: form + - in: query + name: longitude__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: longitude__n + schema: + type: array + items: + type: number + format: double explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -48481,84 +49413,316 @@ paths: schema: type: string - in: query - name: positions + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: positions__empty + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty schema: type: boolean - in: query - name: positions__gt + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group schema: type: array items: type: integer - format: int32 + description: Tenant Group (slug) explode: true style: form - in: query - name: positions__gte + name: tenant_group__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (slug) explode: true style: form - in: query - name: positions__lt + name: tenant_group_id schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: positions__lte + name: tenant_group_id__n schema: type: array items: type: integer - format: int32 + description: Tenant Group (ID) explode: true style: form - in: query - name: positions__n + name: tenant_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: q + name: tenant_id__n schema: - type: string - description: Search + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: type + name: time_zone schema: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: type__n + name: time_zone__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: time_zone__nisw schema: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query @@ -48576,21 +49740,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortTemplateList' + $ref: '#/components/schemas/PaginatedSiteList' description: '' post: - operationId: dcim_rear_port_templates_create - description: Post a list of rear port template objects. + operationId: dcim_sites_create + description: Post a list of site objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/WritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/WritableSiteRequest' required: true security: - cookieAuth: [] @@ -48600,11 +49764,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/Site' description: '' put: - operationId: dcim_rear_port_templates_bulk_update - description: Put a list of rear port template objects. + operationId: dcim_sites_bulk_update + description: Put a list of site objects. tags: - dcim requestBody: @@ -48613,12 +49777,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -48630,11 +49794,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/Site' description: '' patch: - operationId: dcim_rear_port_templates_bulk_partial_update - description: Patch a list of rear port template objects. + operationId: dcim_sites_bulk_partial_update + description: Patch a list of site objects. tags: - dcim requestBody: @@ -48643,12 +49807,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -48660,11 +49824,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/Site' description: '' delete: - operationId: dcim_rear_port_templates_bulk_destroy - description: Delete a list of rear port template objects. + operationId: dcim_sites_bulk_destroy + description: Delete a list of site objects. tags: - dcim requestBody: @@ -48673,12 +49837,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/SiteRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/SiteRequest' required: true security: - cookieAuth: [] @@ -48686,16 +49850,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-port-templates/{id}/: + /api/dcim/sites/{id}/: get: - operationId: dcim_rear_port_templates_retrieve - description: Get a rear port template object. + operationId: dcim_sites_retrieve + description: Get a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this site. required: true tags: - dcim @@ -48707,17 +49871,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/Site' description: '' put: - operationId: dcim_rear_port_templates_update - description: Put a rear port template object. + operationId: dcim_sites_update + description: Put a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this site. required: true tags: - dcim @@ -48725,10 +49889,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/WritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/WritableSiteRequest' required: true security: - cookieAuth: [] @@ -48738,17 +49902,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/Site' description: '' patch: - operationId: dcim_rear_port_templates_partial_update - description: Patch a rear port template object. + operationId: dcim_sites_partial_update + description: Patch a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this site. required: true tags: - dcim @@ -48756,10 +49920,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableSiteRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableSiteRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -48768,17 +49932,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/Site' description: '' delete: - operationId: dcim_rear_port_templates_destroy - description: Delete a rear port template object. + operationId: dcim_sites_destroy + description: Delete a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this site. required: true tags: - dcim @@ -48788,103 +49952,81 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/: + /api/dcim/virtual-chassis/: get: - operationId: dcim_rear_ports_list - description: Get a list of rear port objects. + operationId: dcim_virtual_chassis_list + description: Get a list of virtual chassis objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: created schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cable_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cabled - schema: - type: boolean - - in: query - name: color + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -48892,7 +50034,11 @@ paths: explode: true style: form - in: query - name: color__nic + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -48900,7 +50046,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: description__ie schema: type: array items: @@ -48908,7 +50054,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__iew schema: type: array items: @@ -48916,7 +50062,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__isw schema: type: array items: @@ -48924,75 +50070,67 @@ paths: explode: true style: form - in: query - name: created + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: domain schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: domain__empty + schema: + type: boolean + - in: query + name: domain__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: domain__ie schema: type: array items: @@ -49000,11 +50138,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: domain__iew schema: type: array items: @@ -49012,7 +50146,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: domain__isw schema: type: array items: @@ -49020,7 +50154,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: domain__n schema: type: array items: @@ -49028,7 +50162,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: domain__nic schema: type: array items: @@ -49036,7 +50170,7 @@ paths: explode: true style: form - in: query - name: description__n + name: domain__nie schema: type: array items: @@ -49044,7 +50178,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: domain__niew schema: type: array items: @@ -49052,7 +50186,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: domain__nisw schema: type: array items: @@ -49060,151 +50194,174 @@ paths: explode: true style: form - in: query - name: description__niew + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device + name: id__gte schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device__n + name: id__lt schema: type: array items: - type: string - nullable: true - description: Device (name) + type: integer + format: int32 explode: true style: form - in: query - name: device_id + name: id__lte schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_id__n + name: id__n schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_role + name: last_updated schema: type: array items: type: string - description: Device role (slug) + format: date-time explode: true style: form - in: query - name: device_role__n + name: last_updated__empty schema: type: array items: type: string - description: Device role (slug) + format: date-time explode: true style: form - in: query - name: device_role_id + name: last_updated__gt schema: type: array items: - type: integer - description: Device role (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_role_id__n + name: last_updated__gte schema: type: array items: - type: integer - description: Device role (ID) + type: string + format: date-time explode: true style: form - in: query - name: device_status + name: last_updated__lt schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + format: date-time explode: true style: form - in: query - name: device_status__n + name: last_updated__lte schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 + format: date-time explode: true style: form - in: query - name: device_type + name: last_updated__n schema: type: array items: type: string - description: Device type (model) + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: device_type__n + name: master schema: type: array items: type: string - description: Device type (model) + nullable: true + description: Master (name) explode: true style: form - in: query - name: device_type_id + name: master__n + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master_id schema: type: array items: type: integer - description: Device type (ID) + nullable: true + description: Master (ID) explode: true style: form - in: query - name: device_type_id__n + name: master_id__n schema: type: array items: type: integer - description: Device type (ID) + nullable: true + description: Master (ID) explode: true style: form - in: query - name: id + name: member_count schema: type: array items: @@ -49213,11 +50370,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: member_count__empty schema: type: boolean - in: query - name: id__gt + name: member_count__gt schema: type: array items: @@ -49226,7 +50383,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: member_count__gte schema: type: array items: @@ -49235,7 +50392,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: member_count__lt schema: type: array items: @@ -49244,7 +50401,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: member_count__lte schema: type: array items: @@ -49253,7 +50410,7 @@ paths: explode: true style: form - in: query - name: id__n + name: member_count__n schema: type: array items: @@ -49262,7 +50419,12 @@ paths: explode: true style: form - in: query - name: label + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -49270,11 +50432,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: name__empty schema: type: boolean - in: query - name: label__ic + name: name__ic schema: type: array items: @@ -49282,7 +50444,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: name__ie schema: type: array items: @@ -49290,7 +50452,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: name__iew schema: type: array items: @@ -49298,7 +50460,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: name__isw schema: type: array items: @@ -49306,7 +50468,7 @@ paths: explode: true style: form - in: query - name: label__n + name: name__n schema: type: array items: @@ -49314,7 +50476,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: name__nic schema: type: array items: @@ -49322,7 +50484,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: name__nie schema: type: array items: @@ -49330,7 +50492,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__niew schema: type: array items: @@ -49338,352 +50500,37 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location__n - schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: occupied - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: positions - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: string + description: Region (slug) explode: true style: form - in: query @@ -49691,7 +50538,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query @@ -49699,7 +50547,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query @@ -49707,7 +50556,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region (ID) explode: true style: form - in: query @@ -49733,7 +50583,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -49741,7 +50592,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -49749,7 +50601,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -49757,7 +50610,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -49795,64 +50649,46 @@ paths: explode: true style: form - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: c5086c01f1f9c18a - explode: true - style: form - - in: query - name: type__n + name: tenant schema: type: array items: type: string - x-spec-enum-id: c5086c01f1f9c18a + description: Tenant (slug) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_chassis + name: tenant__n schema: type: array items: type: string - description: Virtual Chassis + description: Tenant (slug) explode: true style: form - in: query - name: virtual_chassis__n + name: tenant_id schema: type: array items: - type: string - description: Virtual Chassis + type: integer + description: Tenant (ID) explode: true style: form - in: query - name: virtual_chassis_id + name: tenant_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + description: Tenant (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: updated_by_request schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form + type: string + format: uuid tags: - dcim security: @@ -49863,21 +50699,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortList' + $ref: '#/components/schemas/PaginatedVirtualChassisList' description: '' post: - operationId: dcim_rear_ports_create - description: Post a list of rear port objects. + operationId: dcim_virtual_chassis_create + description: Post a list of virtual chassis objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -49887,11 +50723,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: dcim_rear_ports_bulk_update - description: Put a list of rear port objects. + operationId: dcim_virtual_chassis_bulk_update + description: Put a list of virtual chassis objects. tags: - dcim requestBody: @@ -49900,12 +50736,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -49917,11 +50753,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: dcim_rear_ports_bulk_partial_update - description: Patch a list of rear port objects. + operationId: dcim_virtual_chassis_bulk_partial_update + description: Patch a list of virtual chassis objects. tags: - dcim requestBody: @@ -49930,12 +50766,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -49947,11 +50783,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: dcim_rear_ports_bulk_destroy - description: Delete a list of rear port objects. + operationId: dcim_virtual_chassis_bulk_destroy + description: Delete a list of virtual chassis objects. tags: - dcim requestBody: @@ -49960,12 +50796,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -49973,16 +50809,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/: + /api/dcim/virtual-chassis/{id}/: get: - operationId: dcim_rear_ports_retrieve - description: Get a rear port object. + operationId: dcim_virtual_chassis_retrieve + description: Get a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this virtual chassis. required: true tags: - dcim @@ -49994,17 +50830,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: dcim_rear_ports_update - description: Put a rear port object. + operationId: dcim_virtual_chassis_update + description: Put a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this virtual chassis. required: true tags: - dcim @@ -50012,10 +50848,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -50025,17 +50861,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: dcim_rear_ports_partial_update - description: Patch a rear port object. + operationId: dcim_virtual_chassis_partial_update + description: Patch a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this virtual chassis. required: true tags: - dcim @@ -50043,10 +50879,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -50055,17 +50891,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: dcim_rear_ports_destroy - description: Delete a rear port object. + operationId: dcim_virtual_chassis_destroy + description: Delete a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this virtual chassis. required: true tags: - dcim @@ -50075,94 +50911,81 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/paths/: - get: - operationId: dcim_rear_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - /api/dcim/regions/: + /api/dcim/virtual-device-contexts/: get: - operationId: dcim_regions_list - description: Get a list of region objects. + operationId: dcim_virtual_device_contexts_list + description: Get a list of virtual device context objects. parameters: - in: query - name: ancestor + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ancestor__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ancestor_id + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ancestor_id__n + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: contact + name: created__lt schema: type: array items: - type: integer - description: Contact + type: string + format: date-time explode: true style: form - in: query - name: contact__n + name: created__lte schema: type: array items: - type: integer - description: Contact + type: string + format: date-time explode: true style: form - in: query - name: contact_group + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: contact_group__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -50170,177 +50993,182 @@ paths: explode: true style: form - in: query - name: contact_role + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: description__ie schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: device schema: type: array items: - type: string + type: integer + description: Device model explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: device__n schema: type: array items: - type: string + type: integer + description: Device model explode: true style: form - in: query - name: description__ie + name: device_id schema: type: array items: - type: string + type: integer + description: VDC (ID) explode: true style: form - in: query - name: description__iew + name: device_id__n schema: type: array items: - type: string + type: integer + description: VDC (ID) explode: true style: form - in: query - name: description__isw + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: id + name: identifier schema: type: array items: @@ -50349,11 +51177,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: identifier__empty schema: type: boolean - in: query - name: id__gt + name: identifier__gt schema: type: array items: @@ -50362,7 +51190,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: identifier__gte schema: type: array items: @@ -50371,7 +51199,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: identifier__lt schema: type: array items: @@ -50380,7 +51208,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: identifier__lte schema: type: array items: @@ -50389,7 +51217,7 @@ paths: explode: true style: form - in: query - name: id__n + name: identifier__n schema: type: array items: @@ -50397,6 +51225,24 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -50568,41 +51414,39 @@ paths: schema: type: string - in: query - name: parent + name: primary_ip4_id schema: type: array items: - type: string - description: Parent region (slug) + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: parent__n + name: primary_ip4_id__n schema: type: array items: - type: string - description: Parent region (slug) + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: parent_id + name: primary_ip6_id schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + description: Primary IPv6 (ID) explode: true style: form - in: query - name: parent_id__n + name: primary_ip6_id__n schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + description: Primary IPv6 (ID) explode: true style: form - in: query @@ -50611,27 +51455,25 @@ paths: type: string description: Search - in: query - name: slug + name: status schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: status__n schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: slug__ie + name: tag schema: type: array items: @@ -50639,7 +51481,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tag__n schema: type: array items: @@ -50647,67 +51489,77 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nic + name: tenant_group schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: slug__nie + name: tenant_group__n schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: slug__nisw + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -50725,21 +51577,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRegionList' + $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' description: '' post: - operationId: dcim_regions_create - description: Post a list of region objects. + operationId: dcim_virtual_device_contexts_create + description: Post a list of virtual device context objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -50749,11 +51601,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: dcim_regions_bulk_update - description: Put a list of region objects. + operationId: dcim_virtual_device_contexts_bulk_update + description: Put a list of virtual device context objects. tags: - dcim requestBody: @@ -50762,12 +51614,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -50779,11 +51631,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: dcim_regions_bulk_partial_update - description: Patch a list of region objects. + operationId: dcim_virtual_device_contexts_bulk_partial_update + description: Patch a list of virtual device context objects. tags: - dcim requestBody: @@ -50792,12 +51644,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -50809,11 +51661,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: dcim_regions_bulk_destroy - description: Delete a list of region objects. + operationId: dcim_virtual_device_contexts_bulk_destroy + description: Delete a list of virtual device context objects. tags: - dcim requestBody: @@ -50822,12 +51674,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RegionRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -50835,16 +51687,16 @@ paths: responses: '204': description: No response body - /api/dcim/regions/{id}/: + /api/dcim/virtual-device-contexts/{id}/: get: - operationId: dcim_regions_retrieve - description: Get a region object. + operationId: dcim_virtual_device_contexts_retrieve + description: Get a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this virtual device context. required: true tags: - dcim @@ -50856,17 +51708,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: dcim_regions_update - description: Put a region object. + operationId: dcim_virtual_device_contexts_update + description: Put a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this virtual device context. required: true tags: - dcim @@ -50874,10 +51726,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRegionRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -50887,17 +51739,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: dcim_regions_partial_update - description: Patch a region object. + operationId: dcim_virtual_device_contexts_partial_update + description: Patch a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this virtual device context. required: true tags: - dcim @@ -50905,10 +51757,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -50917,17 +51769,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Region' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: dcim_regions_destroy - description: Delete a region object. + operationId: dcim_virtual_device_contexts_destroy + description: Delete a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this region. + description: A unique integer value identifying this virtual device context. required: true tags: - dcim @@ -50937,625 +51789,259 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/: + /api/extras/bookmarks/: get: - operationId: dcim_site_groups_list - description: Get a list of site group objects. + operationId: extras_bookmarks_list + description: Get a list of bookmark objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ancestor__n + name: created schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: ancestor_id + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ancestor_id__n + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: contact + name: id__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: id__gte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact_group__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact_role + name: id__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: contact_role__n + name: object_id schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: object_id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__empty + name: object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: object_type schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created_by_request + name: object_type__n schema: type: string - format: uuid - in: query - name: description + name: object_type_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: object_type_id__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: object_type_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: object_type_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: object_type_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: object_type_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: object_type_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - in: query - name: description__nie + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: description__nisw + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: id + name: user__n schema: type: array items: - type: integer - format: int32 + type: string + description: User (name) explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: user_id schema: type: array items: type: integer - format: int32 + description: User (ID) explode: true style: form - in: query - name: id__gte + name: user_id__n schema: type: array items: type: integer - format: int32 + description: User (ID) explode: true style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent - schema: - type: array - items: - type: string - description: Parent site group (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent site group (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent site group (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Parent site group (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -51564,21 +52050,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteGroupList' + $ref: '#/components/schemas/PaginatedBookmarkList' description: '' post: - operationId: dcim_site_groups_create - description: Post a list of site group objects. + operationId: extras_bookmarks_create + description: Post a list of bookmark objects. tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' required: true security: - cookieAuth: [] @@ -51588,25 +52074,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Bookmark' description: '' put: - operationId: dcim_site_groups_bulk_update - description: Put a list of site group objects. + operationId: extras_bookmarks_bulk_update + description: Put a list of bookmark objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' required: true security: - cookieAuth: [] @@ -51618,25 +52104,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Bookmark' description: '' patch: - operationId: dcim_site_groups_bulk_partial_update - description: Patch a list of site group objects. + operationId: extras_bookmarks_bulk_partial_update + description: Patch a list of bookmark objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' required: true security: - cookieAuth: [] @@ -51648,25 +52134,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Bookmark' description: '' delete: - operationId: dcim_site_groups_bulk_destroy - description: Delete a list of site group objects. + operationId: extras_bookmarks_bulk_destroy + description: Delete a list of bookmark objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' required: true security: - cookieAuth: [] @@ -51674,19 +52160,19 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/{id}/: + /api/extras/bookmarks/{id}/: get: - operationId: dcim_site_groups_retrieve - description: Get a site group object. + operationId: extras_bookmarks_retrieve + description: Get a bookmark object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this bookmark. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -51695,28 +52181,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Bookmark' description: '' put: - operationId: dcim_site_groups_update - description: Put a site group object. + operationId: extras_bookmarks_update + description: Put a bookmark object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this bookmark. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/BookmarkRequest' required: true security: - cookieAuth: [] @@ -51726,28 +52212,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Bookmark' description: '' patch: - operationId: dcim_site_groups_partial_update - description: Patch a site group object. + operationId: extras_bookmarks_partial_update + description: Patch a bookmark object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this bookmark. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedBookmarkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedBookmarkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -51756,123 +52242,123 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/Bookmark' description: '' delete: - operationId: dcim_site_groups_destroy - description: Delete a site group object. + operationId: extras_bookmarks_destroy + description: Delete a bookmark object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this bookmark. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/sites/: + /api/extras/config-contexts/: get: - operationId: dcim_sites_list - description: Get a list of site objects. + operationId: extras_config_contexts_list + description: Get a list of config context objects. parameters: - in: query - name: asn + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: cluster_group schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + type: string + description: Cluster group (slug) explode: true style: form - in: query - name: asn__n + name: cluster_group__n schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) + type: string + description: Cluster group (slug) explode: true style: form - in: query - name: asn_id + name: cluster_group_id schema: type: array items: type: integer - description: AS (ID) + description: Cluster group explode: true style: form - in: query - name: asn_id__n + name: cluster_group_id__n schema: type: array items: type: integer - description: AS (ID) + description: Cluster group explode: true style: form - in: query - name: contact + name: cluster_id schema: type: array items: type: integer - description: Contact + description: Cluster explode: true style: form - in: query - name: contact__n + name: cluster_id__n schema: type: array items: type: integer - description: Contact + description: Cluster explode: true style: form - in: query - name: contact_group + name: cluster_type schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: contact_group__n + name: cluster_type__n schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: contact_role + name: cluster_type_id schema: type: array items: type: integer - description: Contact Role + description: Cluster type explode: true style: form - in: query - name: contact_role__n + name: cluster_type_id__n schema: type: array items: type: integer - description: Contact Role + description: Cluster type explode: true style: form - in: query @@ -51944,91 +52430,105 @@ paths: type: string format: uuid - in: query - name: description + name: data_file_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: data_file_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__ie + name: data_source_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__iew + name: data_source_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__isw + name: data_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: facility + name: description schema: type: array items: @@ -52036,11 +52536,11 @@ paths: explode: true style: form - in: query - name: facility__empty + name: description__empty schema: type: boolean - in: query - name: facility__ic + name: description__ic schema: type: array items: @@ -52048,7 +52548,7 @@ paths: explode: true style: form - in: query - name: facility__ie + name: description__ie schema: type: array items: @@ -52056,7 +52556,7 @@ paths: explode: true style: form - in: query - name: facility__iew + name: description__iew schema: type: array items: @@ -52064,7 +52564,7 @@ paths: explode: true style: form - in: query - name: facility__isw + name: description__isw schema: type: array items: @@ -52072,7 +52572,7 @@ paths: explode: true style: form - in: query - name: facility__n + name: description__n schema: type: array items: @@ -52080,7 +52580,7 @@ paths: explode: true style: form - in: query - name: facility__nic + name: description__nic schema: type: array items: @@ -52088,7 +52588,7 @@ paths: explode: true style: form - in: query - name: facility__nie + name: description__nie schema: type: array items: @@ -52096,7 +52596,7 @@ paths: explode: true style: form - in: query - name: facility__niew + name: description__niew schema: type: array items: @@ -52104,7 +52604,7 @@ paths: explode: true style: form - in: query - name: facility__nisw + name: description__nisw schema: type: array items: @@ -52112,35 +52612,57 @@ paths: explode: true style: form - in: query - name: group + name: device_role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: group__n + name: device_role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: group_id + name: device_role_id schema: type: array items: - type: string + type: integer + description: Role explode: true style: form - in: query - name: group_id__n + name: device_role_id__n schema: type: array items: - type: string + type: integer + description: Role + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type explode: true style: form - in: query @@ -52201,6 +52723,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_active + schema: + type: boolean - in: query name: last_updated schema: @@ -52264,64 +52790,6 @@ paths: format: date-time explode: true style: form - - in: query - name: latitude - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: latitude__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - name: limit required: false in: query @@ -52329,61 +52797,39 @@ paths: schema: type: integer - in: query - name: longitude - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__empty - schema: - type: boolean - - in: query - name: longitude__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: longitude__gte + name: location schema: type: array items: - type: number - format: double + type: string + description: Location (slug) explode: true style: form - in: query - name: longitude__lt + name: location__n schema: type: array items: - type: number - format: double + type: string + description: Location (slug) explode: true style: form - in: query - name: longitude__lte + name: location_id schema: type: array items: - type: number - format: double + type: integer + description: Location explode: true style: form - in: query - name: longitude__n + name: location_id__n schema: type: array items: - type: number - format: double + type: integer + description: Location explode: true style: form - in: query @@ -52487,6 +52933,42 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: platform + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform__n + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform_id + schema: + type: array + items: + type: integer + description: Platform + explode: true + style: form + - in: query + name: platform_id__n + schema: + type: array + items: + type: integer + description: Platform + explode: true + style: form - in: query name: q schema: @@ -52498,6 +52980,7 @@ paths: type: array items: type: string + description: Region (slug) explode: true style: form - in: query @@ -52506,6 +52989,7 @@ paths: type: array items: type: string + description: Region (slug) explode: true style: form - in: query @@ -52513,7 +52997,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Region explode: true style: form - in: query @@ -52521,109 +53006,116 @@ paths: schema: type: array items: - type: string + type: integer + description: Region explode: true style: form - in: query - name: slug + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: slug__ie + name: role_id schema: type: array items: - type: string + type: integer + description: Role explode: true style: form - in: query - name: slug__iew + name: role_id__n schema: type: array items: - type: string + type: integer + description: Role explode: true style: form - in: query - name: slug__isw + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: slug__n + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: slug__nic + name: site_group schema: type: array items: type: string + description: Site group (slug) explode: true style: form - in: query - name: slug__nie + name: site_group__n schema: type: array items: type: string + description: Site group (slug) explode: true style: form - in: query - name: slug__niew + name: site_group_id schema: type: array items: - type: string + type: integer + description: Site group explode: true style: form - in: query - name: slug__nisw + name: site_group_id__n schema: type: array items: - type: string + type: integer + description: Site group explode: true style: form - in: query - name: status + name: site_id schema: type: array items: - type: string - x-spec-enum-id: e363a8ddb138be50 + type: integer + description: Site explode: true style: form - in: query - name: status__n + name: site_id__n schema: type: array items: - type: string - x-spec-enum-id: e363a8ddb138be50 + type: integer + description: Site explode: true style: form - in: query @@ -52632,6 +53124,7 @@ paths: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query @@ -52640,165 +53133,164 @@ paths: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query - name: tenant + name: tag_id schema: type: array items: - type: string - description: Tenant (slug) + type: integer + description: Tag explode: true style: form - in: query - name: tenant__n + name: tag_id__n schema: type: array items: - type: string - description: Tenant (slug) + type: integer + description: Tag explode: true style: form - in: query - name: tenant_group + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: tenant_group__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: tenant_group_id + name: tenant_group schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group_id__n + name: tenant_group__n schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: tenant_id + name: tenant_group_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Tenant group explode: true style: form - in: query - name: tenant_id__n + name: tenant_group_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Tenant group explode: true style: form - in: query - name: time_zone + name: tenant_id schema: type: array items: - type: string + type: integer + description: Tenant explode: true style: form - in: query - name: time_zone__ic + name: tenant_id__n schema: type: array items: - type: string + type: integer + description: Tenant explode: true style: form - in: query - name: time_zone__ie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: time_zone__iew + name: weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: time_zone__isw + name: weight__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: time_zone__n + name: weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: time_zone__nic + name: weight__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: time_zone__nie + name: weight__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: time_zone__niew + name: weight__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: time_zone__nisw + name: weight__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -52807,21 +53299,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteList' + $ref: '#/components/schemas/PaginatedConfigContextList' description: '' post: - operationId: dcim_sites_create - description: Post a list of site objects. + operationId: extras_config_contexts_create + description: Post a list of config context objects. tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -52831,25 +53323,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: dcim_sites_bulk_update - description: Put a list of site objects. + operationId: extras_config_contexts_bulk_update + description: Put a list of config context objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -52861,25 +53353,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: dcim_sites_bulk_partial_update - description: Patch a list of site objects. + operationId: extras_config_contexts_bulk_partial_update + description: Patch a list of config context objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -52891,25 +53383,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: dcim_sites_bulk_destroy - description: Delete a list of site objects. + operationId: extras_config_contexts_bulk_destroy + description: Delete a list of config context objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -52917,19 +53409,19 @@ paths: responses: '204': description: No response body - /api/dcim/sites/{id}/: + /api/extras/config-contexts/{id}/: get: - operationId: dcim_sites_retrieve - description: Get a site object. + operationId: extras_config_contexts_retrieve + description: Get a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this config context. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -52938,28 +53430,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: dcim_sites_update - description: Put a site object. + operationId: extras_config_contexts_update + description: Put a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this config context. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -52969,28 +53461,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: dcim_sites_partial_update - description: Patch a site object. + operationId: extras_config_contexts_partial_update + description: Patch a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this config context. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -52999,41 +53491,78 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: dcim_sites_destroy - description: Delete a site object. + operationId: extras_config_contexts_destroy + description: Delete a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this config context. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/virtual-chassis/: - get: - operationId: dcim_virtual_chassis_list - description: Get a list of virtual chassis objects. + /api/extras/config-contexts/{id}/sync/: + post: + operationId: extras_config_contexts_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). parameters: - - in: query - name: created + - in: path + name: id schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + /api/extras/config-templates/: + get: + operationId: extras_config_templates_list + description: Get a list of config template objects. + parameters: + - in: query + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query name: created__empty schema: type: array @@ -53093,91 +53622,105 @@ paths: type: string format: uuid - in: query - name: description + name: data_file_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: data_file_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__ie + name: data_source_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__iew + name: data_source_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__isw + name: data_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain + name: description schema: type: array items: @@ -53185,11 +53728,11 @@ paths: explode: true style: form - in: query - name: domain__empty + name: description__empty schema: type: boolean - in: query - name: domain__ic + name: description__ic schema: type: array items: @@ -53197,7 +53740,7 @@ paths: explode: true style: form - in: query - name: domain__ie + name: description__ie schema: type: array items: @@ -53205,7 +53748,7 @@ paths: explode: true style: form - in: query - name: domain__iew + name: description__iew schema: type: array items: @@ -53213,7 +53756,7 @@ paths: explode: true style: form - in: query - name: domain__isw + name: description__isw schema: type: array items: @@ -53221,7 +53764,7 @@ paths: explode: true style: form - in: query - name: domain__n + name: description__n schema: type: array items: @@ -53229,7 +53772,7 @@ paths: explode: true style: form - in: query - name: domain__nic + name: description__nic schema: type: array items: @@ -53237,7 +53780,7 @@ paths: explode: true style: form - in: query - name: domain__nie + name: description__nie schema: type: array items: @@ -53245,7 +53788,7 @@ paths: explode: true style: form - in: query - name: domain__niew + name: description__niew schema: type: array items: @@ -53253,7 +53796,7 @@ paths: explode: true style: form - in: query - name: domain__nisw + name: description__nisw schema: type: array items: @@ -53387,104 +53930,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: master - schema: - type: array - items: - type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master__n - schema: - type: array - items: - type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master_id - schema: - type: array - items: - type: integer - nullable: true - description: Master (ID) - explode: true - style: form - - in: query - name: master_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Master (ID) - explode: true - style: form - - in: query - name: member_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__empty - schema: - type: boolean - - in: query - name: member_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -53591,106 +54036,6 @@ paths: schema: type: string description: Search - - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -53707,49 +54052,13 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -53758,21 +54067,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualChassisList' + $ref: '#/components/schemas/PaginatedConfigTemplateList' description: '' post: - operationId: dcim_virtual_chassis_create - description: Post a list of virtual chassis objects. + operationId: extras_config_templates_create + description: Post a list of config template objects. tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -53782,25 +54091,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: dcim_virtual_chassis_bulk_update - description: Put a list of virtual chassis objects. + operationId: extras_config_templates_bulk_update + description: Put a list of config template objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -53812,25 +54121,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: dcim_virtual_chassis_bulk_partial_update - description: Patch a list of virtual chassis objects. + operationId: extras_config_templates_bulk_partial_update + description: Patch a list of config template objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -53842,25 +54151,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: dcim_virtual_chassis_bulk_destroy - description: Delete a list of virtual chassis objects. + operationId: extras_config_templates_bulk_destroy + description: Delete a list of config template objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -53868,19 +54177,19 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/{id}/: + /api/extras/config-templates/{id}/: get: - operationId: dcim_virtual_chassis_retrieve - description: Get a virtual chassis object. + operationId: extras_config_templates_retrieve + description: Get a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this config template. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -53889,28 +54198,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: dcim_virtual_chassis_update - description: Put a virtual chassis object. + operationId: extras_config_templates_update + description: Put a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this config template. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -53920,28 +54229,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: dcim_virtual_chassis_partial_update - description: Patch a virtual chassis object. + operationId: extras_config_templates_partial_update + description: Patch a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this config template. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -53950,31 +54259,151 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: dcim_virtual_chassis_destroy - description: Delete a virtual chassis object. + operationId: extras_config_templates_destroy + description: Delete a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this config template. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/virtual-device-contexts/: + /api/extras/config-templates/{id}/render/: + post: + operationId: extras_config_templates_render_create + description: 'Render a ConfigTemplate using the context data provided (if any). + If the client requests "text/plain" data, + + return the raw rendered content, rather than serialized JSON.' + parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplate' + text/plain: + schema: + $ref: '#/components/schemas/ConfigTemplate' + description: '' + /api/extras/config-templates/{id}/sync/: + post: + operationId: extras_config_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplate' + description: '' + /api/extras/custom-field-choice-sets/: get: - operationId: dcim_virtual_device_contexts_list - description: Get a list of virtual device context objects. + operationId: extras_custom_field_choice_sets_list + description: Get a list of custom field choice set objects. parameters: + - in: query + name: base_choices + schema: + type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + - in: query + name: base_choices__n + schema: + type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + - in: query + name: choice + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -54127,47 +54556,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: integer - description: Device model - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: integer - description: Device model - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: VDC (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: VDC (ID) - explode: true - style: form - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - in: query name: id schema: @@ -54226,82 +54614,6 @@ paths: format: int32 explode: true style: form - - in: query - name: identifier - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__empty - schema: - type: boolean - - in: query - name: identifier__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -54466,164 +54778,28 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: order_alphabetically + schema: + type: boolean - name: ordering required: false in: query description: Which field to use when ordering the results. schema: type: string - - in: query - name: primary_ip4_id - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip4_id__n - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id__n - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: ee1ef02def7a91ab - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: ee1ef02def7a91ab - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -54632,21 +54808,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' + $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' description: '' post: - operationId: dcim_virtual_device_contexts_create - description: Post a list of virtual device context objects. + operationId: extras_custom_field_choice_sets_create + description: Post a list of custom field choice set objects. tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -54656,25 +54832,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: dcim_virtual_device_contexts_bulk_update - description: Put a list of virtual device context objects. + operationId: extras_custom_field_choice_sets_bulk_update + description: Put a list of custom field choice set objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -54686,25 +54862,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: dcim_virtual_device_contexts_bulk_partial_update - description: Patch a list of virtual device context objects. + operationId: extras_custom_field_choice_sets_bulk_partial_update + description: Patch a list of custom field choice set objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -54716,25 +54892,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: dcim_virtual_device_contexts_bulk_destroy - description: Delete a list of virtual device context objects. + operationId: extras_custom_field_choice_sets_bulk_destroy + description: Delete a list of custom field choice set objects. tags: - - dcim + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -54742,19 +54918,19 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/{id}/: + /api/extras/custom-field-choice-sets/{id}/: get: - operationId: dcim_virtual_device_contexts_retrieve - description: Get a virtual device context object. + operationId: extras_custom_field_choice_sets_retrieve + description: Get a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this custom field choice set. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -54763,28 +54939,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: dcim_virtual_device_contexts_update - description: Put a virtual device context object. + operationId: extras_custom_field_choice_sets_update + description: Put a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this custom field choice set. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -54794,28 +54970,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: dcim_virtual_device_contexts_partial_update - description: Patch a virtual device context object. + operationId: extras_custom_field_choice_sets_partial_update + description: Patch a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this custom field choice set. required: true tags: - - dcim + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -54824,766 +55000,460 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDeviceContext' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: dcim_virtual_device_contexts_destroy - description: Delete a virtual device context object. + operationId: extras_custom_field_choice_sets_destroy + description: Delete a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual device context. + description: A unique integer value identifying this custom field choice set. required: true tags: - - dcim + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/bookmarks/: + /api/extras/custom-field-choice-sets/{id}/choices/: get: - operationId: extras_bookmarks_list - description: Get a list of bookmark objects. + operationId: extras_custom_field_choice_sets_choices_retrieve + description: Provides an endpoint to iterate through each choice in a set. parameters: - - in: query - name: created + - in: path + name: id schema: - type: string - format: date-time + type: integer + description: A unique integer value identifying this custom field choice set. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CustomFieldChoiceSet' + description: '' + /api/extras/custom-fields/: + get: + operationId: extras_custom_fields_list + description: Get a list of custom field objects. + parameters: - in: query - name: id + name: choice_set schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: choice_set__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: choice_set_id schema: type: array items: type: integer - format: int32 + nullable: true explode: true style: form - in: query - name: id__lt + name: choice_set_id__n schema: type: array items: type: integer - format: int32 + nullable: true explode: true style: form - in: query - name: id__lte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: object_id + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__gte + name: created__lt schema: type: array items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__lt - schema: - type: array - items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n + name: created_by_request schema: type: string + format: uuid - in: query - name: object_type_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_type_id__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_type_id__gt + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__gte + name: description__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: object_type_id__lt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__lte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type_id__n + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: user + name: description__isw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: description__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: description__nic schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: description__nie schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedBookmarkList' - description: '' - post: - operationId: extras_bookmarks_create - description: Post a list of bookmark objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BookmarkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/BookmarkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Bookmark' - description: '' - put: - operationId: extras_bookmarks_bulk_update - description: Put a list of bookmark objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BookmarkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/BookmarkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Bookmark' - description: '' - patch: - operationId: extras_bookmarks_bulk_partial_update - description: Patch a list of bookmark objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BookmarkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/BookmarkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Bookmark' - description: '' - delete: - operationId: extras_bookmarks_bulk_destroy - description: Delete a list of bookmark objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/BookmarkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/BookmarkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/bookmarks/{id}/: - get: - operationId: extras_bookmarks_retrieve - description: Get a bookmark object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this bookmark. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Bookmark' - description: '' - put: - operationId: extras_bookmarks_update - description: Put a bookmark object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this bookmark. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/BookmarkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/BookmarkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Bookmark' - description: '' - patch: - operationId: extras_bookmarks_partial_update - description: Patch a bookmark object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this bookmark. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Bookmark' - description: '' - delete: - operationId: extras_bookmarks_destroy - description: Delete a bookmark object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this bookmark. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/config-contexts/: - get: - operationId: extras_config_contexts_list - description: Get a list of config context objects. - parameters: - - in: query - name: auto_sync_enabled - schema: - type: boolean - in: query - name: cluster_group + name: description__niew schema: type: array items: type: string - description: Cluster group (slug) explode: true style: form - in: query - name: cluster_group__n + name: description__nisw schema: type: array items: type: string - description: Cluster group (slug) explode: true style: form - in: query - name: cluster_group_id + name: filter_logic schema: - type: array - items: - type: integer - description: Cluster group - explode: true - style: form + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' - in: query - name: cluster_group_id__n + name: filter_logic__n schema: - type: array - items: - type: integer - description: Cluster group - explode: true - style: form + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' - in: query - name: cluster_id + name: group_name schema: type: array items: - type: integer - description: Cluster + type: string explode: true style: form - in: query - name: cluster_id__n + name: group_name__empty schema: - type: array - items: - type: integer - description: Cluster - explode: true - style: form + type: boolean - in: query - name: cluster_type + name: group_name__ic schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type__n + name: group_name__ie schema: type: array items: type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: cluster_type_id - schema: - type: array - items: - type: integer - description: Cluster type explode: true style: form - in: query - name: cluster_type_id__n + name: group_name__iew schema: type: array items: - type: integer - description: Cluster type + type: string explode: true style: form - in: query - name: created + name: group_name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: group_name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: group_name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: group_name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: group_name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: group_name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: id__empty schema: - type: string - format: uuid + type: boolean - in: query - name: data_file_id + name: id__gt schema: type: array items: type: integer - nullable: true - description: Data file (ID) + format: int32 explode: true style: form - in: query - name: data_file_id__n + name: id__gte schema: type: array items: type: integer - nullable: true - description: Data file (ID) + format: int32 explode: true style: form - in: query - name: data_source_id + name: id__lt schema: type: array items: type: integer - nullable: true - description: Data source (ID) + format: int32 explode: true style: form - in: query - name: data_source_id__n + name: id__lte schema: type: array items: type: integer - nullable: true - description: Data source (ID) + format: int32 explode: true style: form - in: query - name: data_synced + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: data_synced__empty + name: is_cloneable schema: type: boolean - in: query - name: data_synced__gt + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__gte + name: label__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: data_synced__lt + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lte + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__n + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: label__isw schema: type: array items: @@ -55591,11 +55461,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: label__n schema: type: array items: @@ -55603,7 +55469,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: label__nic schema: type: array items: @@ -55611,7 +55477,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: label__nie schema: type: array items: @@ -55619,7 +55485,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: label__niew schema: type: array items: @@ -55627,7 +55493,7 @@ paths: explode: true style: form - in: query - name: description__n + name: label__nisw schema: type: array items: @@ -55635,621 +55501,617 @@ paths: explode: true style: form - in: query - name: description__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device_role + name: last_updated__lt schema: type: array items: type: string - description: Role (slug) + format: date-time explode: true style: form - in: query - name: device_role__n + name: last_updated__lte schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: device_role_id - schema: - type: array - items: - type: integer - description: Role + format: date-time explode: true style: form - in: query - name: device_role_id__n + name: last_updated__n schema: type: array items: - type: integer - description: Role + type: string + format: date-time explode: true style: form - - in: query - name: device_type_id + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Device type - explode: true - style: form + type: integer - in: query - name: device_type_id__n + name: modified_by_request schema: - type: array - items: - type: integer - description: Device type - explode: true - style: form + type: string + format: uuid - in: query - name: id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__empty schema: type: boolean - in: query - name: id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: is_active - schema: - type: boolean - - in: query - name: last_updated + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: object_type schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: last_updated__lte + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - in: query - name: last_updated__n + name: object_type_id__n schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: location + name: q schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: string + description: Search - in: query - name: location__n + name: related_object_type schema: - type: array - items: - type: string - description: Location (slug) - explode: true - style: form + type: string - in: query - name: location_id + name: related_object_type__n + schema: + type: string + - in: query + name: related_object_type_id schema: type: array items: type: integer - description: Location explode: true style: form - in: query - name: location_id__n + name: related_object_type_id__n schema: type: array items: type: integer - description: Location explode: true style: form - in: query - name: modified_by_request + name: required schema: - type: string - format: uuid + type: boolean - in: query - name: name + name: search_weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: search_weight__empty schema: type: boolean - in: query - name: name__ic + name: search_weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: search_weight__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: search_weight__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: search_weight__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: search_weight__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: type schema: type: array items: type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: name__nie + name: type__n schema: type: array items: type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: name__niew + name: ui_editable schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + name: ui_editable__n schema: type: string + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' - in: query - name: platform + name: ui_visible schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' - in: query - name: platform__n + name: ui_visible__n schema: - type: array - items: - type: string - description: Platform (slug) - explode: true - style: form + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' - in: query - name: platform_id + name: updated_by_request schema: - type: array - items: - type: integer - description: Platform - explode: true - style: form + type: string + format: uuid - in: query - name: platform_id__n + name: validation_maximum schema: type: array items: type: integer - description: Platform + format: int32 explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: validation_maximum__empty schema: - type: array - items: - type: string - description: Region (slug) - explode: true - style: form + type: boolean - in: query - name: region__n + name: validation_maximum__gt schema: type: array items: - type: string - description: Region (slug) + type: integer + format: int32 explode: true style: form - in: query - name: region_id + name: validation_maximum__gte schema: type: array items: type: integer - description: Region + format: int32 explode: true style: form - in: query - name: region_id__n + name: validation_maximum__lt schema: type: array items: type: integer - description: Region + format: int32 explode: true style: form - in: query - name: site + name: validation_maximum__lte schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: validation_maximum__n schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: validation_minimum schema: type: array items: - type: string - description: Site group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group__n + name: validation_minimum__empty schema: - type: array - items: - type: string - description: Site group (slug) - explode: true - style: form + type: boolean - in: query - name: site_group_id + name: validation_minimum__gt schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: validation_minimum__gte schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_id + name: validation_minimum__lt schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form - in: query - name: site_id__n + name: validation_minimum__lte schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form - in: query - name: tag + name: validation_minimum__n schema: type: array items: - type: string - description: Tag (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: validation_regex schema: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag_id + name: validation_regex__empty schema: - type: array - items: - type: integer - description: Tag - explode: true - style: form + type: boolean - in: query - name: tag_id__n + name: validation_regex__ic schema: type: array items: - type: integer - description: Tag + type: string explode: true style: form - in: query - name: tenant + name: validation_regex__ie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: validation_regex__iew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: validation_regex__isw schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group__n + name: validation_regex__n schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group_id + name: validation_regex__nic schema: type: array items: - type: integer - description: Tenant group + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: validation_regex__nie schema: type: array items: - type: integer - description: Tenant group + type: string explode: true style: form - in: query - name: tenant_id + name: validation_regex__niew schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - in: query - name: tenant_id__n + name: validation_regex__nisw schema: type: array items: - type: integer - description: Tenant + type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - in: query name: weight schema: @@ -56318,21 +56180,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigContextList' + $ref: '#/components/schemas/PaginatedCustomFieldList' description: '' post: - operationId: extras_config_contexts_create - description: Post a list of config context objects. + operationId: extras_custom_fields_create + description: Post a list of custom field objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -56342,11 +56204,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: extras_config_contexts_bulk_update - description: Put a list of config context objects. + operationId: extras_custom_fields_bulk_update + description: Put a list of custom field objects. tags: - extras requestBody: @@ -56355,12 +56217,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -56372,11 +56234,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: extras_config_contexts_bulk_partial_update - description: Patch a list of config context objects. + operationId: extras_custom_fields_bulk_partial_update + description: Patch a list of custom field objects. tags: - extras requestBody: @@ -56385,12 +56247,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -56402,11 +56264,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: extras_config_contexts_bulk_destroy - description: Delete a list of config context objects. + operationId: extras_custom_fields_bulk_destroy + description: Delete a list of custom field objects. tags: - extras requestBody: @@ -56415,12 +56277,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -56428,16 +56290,16 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/: + /api/extras/custom-fields/{id}/: get: - operationId: extras_config_contexts_retrieve - description: Get a config context object. + operationId: extras_custom_fields_retrieve + description: Get a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -56449,17 +56311,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: extras_config_contexts_update - description: Put a config context object. + operationId: extras_custom_fields_update + description: Put a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -56467,10 +56329,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigContextRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -56480,17 +56342,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: extras_config_contexts_partial_update - description: Patch a config context object. + operationId: extras_custom_fields_partial_update + description: Patch a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -56498,10 +56360,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -56510,17 +56372,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigContext' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: extras_config_contexts_destroy - description: Delete a config context object. + operationId: extras_custom_fields_destroy + description: Delete a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config context. + description: A unique integer value identifying this custom field. required: true tags: - extras @@ -56530,48 +56392,119 @@ paths: responses: '204': description: No response body - /api/extras/config-contexts/{id}/sync/: - post: - operationId: extras_config_contexts_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - /api/extras/config-templates/: + /api/extras/custom-links/: get: - operationId: extras_config_templates_list - description: Get a list of config template objects. + operationId: extras_custom_links_list + description: Get a list of custom link objects. parameters: - in: query - name: auto_sync_enabled + name: button_class schema: - type: boolean + type: string + x-spec-enum-id: 9378cdf56abee54a + enum: + - black + - blue + - cyan + - ghost-dark + - gray + - green + - indigo + - orange + - outline-dark + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `outline-dark` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' + - in: query + name: button_class__n + schema: + type: string + x-spec-enum-id: 9378cdf56abee54a + enum: + - black + - blue + - cyan + - ghost-dark + - gray + - green + - indigo + - orange + - outline-dark + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `outline-dark` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' - in: query name: created schema: @@ -56641,105 +56574,11 @@ paths: type: string format: uuid - in: query - name: data_file_id - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_file_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data file (ID) - explode: true - style: form - - in: query - name: data_source_id - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_source_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Data source (ID) - explode: true - style: form - - in: query - name: data_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__empty + name: enabled schema: type: boolean - in: query - name: data_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: data_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: description + name: group_name schema: type: array items: @@ -56747,11 +56586,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: group_name__empty schema: type: boolean - in: query - name: description__ic + name: group_name__ic schema: type: array items: @@ -56759,7 +56598,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: group_name__ie schema: type: array items: @@ -56767,7 +56606,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: group_name__iew schema: type: array items: @@ -56775,7 +56614,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: group_name__isw schema: type: array items: @@ -56783,7 +56622,7 @@ paths: explode: true style: form - in: query - name: description__n + name: group_name__n schema: type: array items: @@ -56791,7 +56630,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: group_name__nic schema: type: array items: @@ -56799,7 +56638,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: group_name__nie schema: type: array items: @@ -56807,7 +56646,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: group_name__niew schema: type: array items: @@ -56815,7 +56654,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: group_name__nisw schema: type: array items: @@ -56949,6 +56788,86 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link_text + schema: + type: string + - in: query + name: link_text__ic + schema: + type: string + - in: query + name: link_text__ie + schema: + type: string + - in: query + name: link_text__iew + schema: + type: string + - in: query + name: link_text__isw + schema: + type: string + - in: query + name: link_text__n + schema: + type: string + - in: query + name: link_text__nic + schema: + type: string + - in: query + name: link_text__nie + schema: + type: string + - in: query + name: link_text__niew + schema: + type: string + - in: query + name: link_text__nisw + schema: + type: string + - in: query + name: link_url + schema: + type: string + - in: query + name: link_url__ic + schema: + type: string + - in: query + name: link_url__ie + schema: + type: string + - in: query + name: link_url__iew + schema: + type: string + - in: query + name: link_url__isw + schema: + type: string + - in: query + name: link_url__n + schema: + type: string + - in: query + name: link_url__nic + schema: + type: string + - in: query + name: link_url__nie + schema: + type: string + - in: query + name: link_url__niew + schema: + type: string + - in: query + name: link_url__nisw + schema: + type: string - in: query name: modified_by_request schema: @@ -57038,6 +56957,66 @@ paths: type: string explode: true style: form + - in: query + name: new_window + schema: + type: boolean + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -57056,26 +57035,68 @@ paths: type: string description: Search - in: query - name: tag + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: weight__gte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - extras security: @@ -57086,21 +57107,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConfigTemplateList' + $ref: '#/components/schemas/PaginatedCustomLinkList' description: '' post: - operationId: extras_config_templates_create - description: Post a list of config template objects. + operationId: extras_custom_links_create + description: Post a list of custom link objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -57110,11 +57131,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: extras_config_templates_bulk_update - description: Put a list of config template objects. + operationId: extras_custom_links_bulk_update + description: Put a list of custom link objects. tags: - extras requestBody: @@ -57123,12 +57144,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -57140,11 +57161,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: extras_config_templates_bulk_partial_update - description: Patch a list of config template objects. + operationId: extras_custom_links_bulk_partial_update + description: Patch a list of custom link objects. tags: - extras requestBody: @@ -57153,12 +57174,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -57170,11 +57191,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: extras_config_templates_bulk_destroy - description: Delete a list of config template objects. + operationId: extras_custom_links_bulk_destroy + description: Delete a list of custom link objects. tags: - extras requestBody: @@ -57183,12 +57204,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -57196,16 +57217,16 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/: + /api/extras/custom-links/{id}/: get: - operationId: extras_config_templates_retrieve - description: Get a config template object. + operationId: extras_custom_links_retrieve + description: Get a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -57217,17 +57238,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: extras_config_templates_update - description: Put a config template object. + operationId: extras_custom_links_update + description: Put a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -57235,10 +57256,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -57248,17 +57269,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: extras_config_templates_partial_update - description: Patch a config template object. + operationId: extras_custom_links_partial_update + description: Patch a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -57266,10 +57287,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57278,17 +57299,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: extras_config_templates_destroy - description: Delete a config template object. + operationId: extras_custom_links_destroy + description: Delete a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this custom link. required: true tags: - extras @@ -57298,38 +57319,35 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/render/: - post: - operationId: extras_config_templates_render_create - description: 'Render a ConfigTemplate using the context data provided (if any). - If the client requests "text/plain" data, - - return the raw rendered content, rather than serialized JSON.' - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true + /api/extras/dashboard/: + get: + operationId: extras_dashboard_retrieve + description: Get a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + put: + operationId: extras_dashboard_update + description: Put a list of dashboard objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/DashboardRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true + $ref: '#/components/schemas/DashboardRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57338,34 +57356,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' - text/plain: - schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Dashboard' description: '' - /api/extras/config-templates/{id}/sync/: - post: - operationId: extras_config_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config template. - required: true + patch: + operationId: extras_dashboard_partial_update + description: Patch a list of dashboard objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/PatchedDashboardRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true + $ref: '#/components/schemas/PatchedDashboardRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57374,53 +57379,111 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Dashboard' description: '' - /api/extras/custom-field-choice-sets/: + delete: + operationId: extras_dashboard_destroy + description: Delete a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/: get: - operationId: extras_custom_field_choice_sets_list - description: Get a list of custom field choice set objects. + operationId: extras_event_rules_list + description: Get a list of event rule objects. parameters: - in: query - name: base_choices + name: action_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: action_object_type schema: type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - in: query - name: base_choices__n + name: action_object_type__n schema: type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - in: query - name: choice + name: action_type + schema: + type: array + items: + type: string + x-spec-enum-id: a08300d86473de6e + explode: true + style: form + - in: query + name: action_type__n schema: type: array items: type: string + x-spec-enum-id: a08300d86473de6e explode: true style: form - in: query @@ -57575,6 +57638,10 @@ paths: type: string explode: true style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -57791,16 +57858,68 @@ paths: type: string explode: true style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query description: The initial index from which to return the results. schema: type: integer - - in: query - name: order_alphabetically - schema: - type: boolean - name: ordering required: false in: query @@ -57812,6 +57931,42 @@ paths: schema: type: string description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type_create + schema: + type: boolean + - in: query + name: type_delete + schema: + type: boolean + - in: query + name: type_job_end + schema: + type: boolean + - in: query + name: type_job_start + schema: + type: boolean + - in: query + name: type_update + schema: + type: boolean - in: query name: updated_by_request schema: @@ -57827,21 +57982,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' + $ref: '#/components/schemas/PaginatedEventRuleList' description: '' post: - operationId: extras_custom_field_choice_sets_create - description: Post a list of custom field choice set objects. + operationId: extras_event_rules_create + description: Post a list of event rule objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' required: true security: - cookieAuth: [] @@ -57851,11 +58006,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/EventRule' description: '' put: - operationId: extras_custom_field_choice_sets_bulk_update - description: Put a list of custom field choice set objects. + operationId: extras_event_rules_bulk_update + description: Put a list of event rule objects. tags: - extras requestBody: @@ -57864,12 +58019,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -57881,11 +58036,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/EventRule' description: '' patch: - operationId: extras_custom_field_choice_sets_bulk_partial_update - description: Patch a list of custom field choice set objects. + operationId: extras_event_rules_bulk_partial_update + description: Patch a list of event rule objects. tags: - extras requestBody: @@ -57894,12 +58049,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -57911,11 +58066,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/EventRule' description: '' delete: - operationId: extras_custom_field_choice_sets_bulk_destroy - description: Delete a list of custom field choice set objects. + operationId: extras_event_rules_bulk_destroy + description: Delete a list of event rule objects. tags: - extras requestBody: @@ -57924,12 +58079,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -57937,16 +58092,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/: + /api/extras/event-rules/{id}/: get: - operationId: extras_custom_field_choice_sets_retrieve - description: Get a custom field choice set object. + operationId: extras_event_rules_retrieve + description: Get a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this event rule. required: true tags: - extras @@ -57958,17 +58113,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/EventRule' description: '' put: - operationId: extras_custom_field_choice_sets_update - description: Put a custom field choice set object. + operationId: extras_event_rules_update + description: Put a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this event rule. required: true tags: - extras @@ -57976,10 +58131,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' required: true security: - cookieAuth: [] @@ -57989,17 +58144,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/EventRule' description: '' patch: - operationId: extras_custom_field_choice_sets_partial_update - description: Patch a custom field choice set object. + operationId: extras_event_rules_partial_update + description: Patch a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this event rule. required: true tags: - extras @@ -58007,10 +58162,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -58019,17 +58174,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' + $ref: '#/components/schemas/EventRule' description: '' delete: - operationId: extras_custom_field_choice_sets_destroy - description: Delete a custom field choice set object. + operationId: extras_event_rules_destroy + description: Delete a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field choice set. + description: A unique integer value identifying this event rule. required: true tags: - extras @@ -58039,70 +58194,48 @@ paths: responses: '204': description: No response body - /api/extras/custom-field-choice-sets/{id}/choices/: + /api/extras/export-templates/: get: - operationId: extras_custom_field_choice_sets_choices_retrieve - description: Provides an endpoint to iterate through each choice in a set. + operationId: extras_export_templates_list + description: Get a list of export template objects. parameters: - - in: path - name: id + - in: query + name: as_attachment schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - /api/extras/custom-fields/: - get: - operationId: extras_custom_fields_list - description: Get a list of custom field objects. - parameters: + type: boolean - in: query - name: choice_set + name: auto_sync_enabled schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: choice_set__n + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: choice_set_id + name: created__empty schema: type: array items: - type: integer - nullable: true + type: string + format: date-time explode: true style: form - in: query - name: choice_set_id__n + name: created__gt schema: type: array items: - type: integer - nullable: true + type: string + format: date-time explode: true style: form - in: query - name: created + name: created__gte schema: type: array items: @@ -58111,7 +58244,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: created__lt schema: type: array items: @@ -58120,7 +58253,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: created__lte schema: type: array items: @@ -58129,7 +58262,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: created__n schema: type: array items: @@ -58138,7 +58271,52 @@ paths: explode: true style: form - in: query - name: created__lt + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: data_file_id + schema: + type: array + items: + type: integer + nullable: true + description: Data file (ID) + explode: true + style: form + - in: query + name: data_file_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data file (ID) + explode: true + style: form + - in: query + name: data_source_id + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_source_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Data source (ID) + explode: true + style: form + - in: query + name: data_synced schema: type: array items: @@ -58147,7 +58325,11 @@ paths: explode: true style: form - in: query - name: created__lte + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: @@ -58156,7 +58338,7 @@ paths: explode: true style: form - in: query - name: created__n + name: data_synced__gte schema: type: array items: @@ -58165,10 +58347,32 @@ paths: explode: true style: form - in: query - name: created_by_request + name: data_synced__lt schema: - type: string - format: uuid + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: description schema: @@ -58254,43 +58458,7 @@ paths: explode: true style: form - in: query - name: filter_logic - schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' - - in: query - name: filter_logic__n - schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' - - in: query - name: group_name + name: file_extension schema: type: array items: @@ -58298,11 +58466,11 @@ paths: explode: true style: form - in: query - name: group_name__empty + name: file_extension__empty schema: type: boolean - in: query - name: group_name__ic + name: file_extension__ic schema: type: array items: @@ -58310,7 +58478,7 @@ paths: explode: true style: form - in: query - name: group_name__ie + name: file_extension__ie schema: type: array items: @@ -58318,7 +58486,7 @@ paths: explode: true style: form - in: query - name: group_name__iew + name: file_extension__iew schema: type: array items: @@ -58326,7 +58494,7 @@ paths: explode: true style: form - in: query - name: group_name__isw + name: file_extension__isw schema: type: array items: @@ -58334,7 +58502,7 @@ paths: explode: true style: form - in: query - name: group_name__n + name: file_extension__n schema: type: array items: @@ -58342,7 +58510,7 @@ paths: explode: true style: form - in: query - name: group_name__nic + name: file_extension__nic schema: type: array items: @@ -58350,7 +58518,7 @@ paths: explode: true style: form - in: query - name: group_name__nie + name: file_extension__nie schema: type: array items: @@ -58358,7 +58526,7 @@ paths: explode: true style: form - in: query - name: group_name__niew + name: file_extension__niew schema: type: array items: @@ -58366,7 +58534,7 @@ paths: explode: true style: form - in: query - name: group_name__nisw + name: file_extension__nisw schema: type: array items: @@ -58432,71 +58600,76 @@ paths: explode: true style: form - in: query - name: is_cloneable - schema: - type: boolean - - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: mime_type schema: type: array items: @@ -58504,7 +58677,11 @@ paths: explode: true style: form - in: query - name: label__niew + name: mime_type__empty + schema: + type: boolean + - in: query + name: mime_type__ic schema: type: array items: @@ -58512,7 +58689,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: mime_type__ie schema: type: array items: @@ -58520,74 +58697,61 @@ paths: explode: true style: form - in: query - name: last_updated + name: mime_type__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: mime_type__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: mime_type__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: mime_type__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: mime_type__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: mime_type__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: mime_type__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query name: modified_by_request schema: @@ -58751,48 +58915,340 @@ paths: type: string description: Search - in: query - name: related_object_type + name: updated_by_request schema: type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedExportTemplateList' + description: '' + post: + operationId: extras_export_templates_create + description: Post a list of export template objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplate' + description: '' + put: + operationId: extras_export_templates_bulk_update + description: Put a list of export template objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplate' + description: '' + patch: + operationId: extras_export_templates_bulk_partial_update + description: Patch a list of export template objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplate' + description: '' + delete: + operationId: extras_export_templates_bulk_destroy + description: Delete a list of export template objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/export-templates/{id}/: + get: + operationId: extras_export_templates_retrieve + description: Get a export template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this export template. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplate' + description: '' + put: + operationId: extras_export_templates_update + description: Put a export template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this export template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplate' + description: '' + patch: + operationId: extras_export_templates_partial_update + description: Patch a export template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this export template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedExportTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedExportTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplate' + description: '' + delete: + operationId: extras_export_templates_destroy + description: Delete a export template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this export template. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/export-templates/{id}/sync/: + post: + operationId: extras_export_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this export template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ExportTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ExportTemplate' + description: '' + /api/extras/image-attachments/: + get: + operationId: extras_image_attachments_list + description: Get a list of image attachment objects. + parameters: - in: query - name: related_object_type__n + name: created schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: related_object_type_id + name: created__empty schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: related_object_type_id__n + name: created__gt schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: required + name: created__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: search_weight + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: search_weight__empty + name: created__lte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: search_weight__gt + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: id schema: type: array items: @@ -58801,7 +59257,11 @@ paths: explode: true style: form - in: query - name: search_weight__gte + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -58810,7 +59270,7 @@ paths: explode: true style: form - in: query - name: search_weight__lt + name: id__gte schema: type: array items: @@ -58819,7 +59279,7 @@ paths: explode: true style: form - in: query - name: search_weight__lte + name: id__lt schema: type: array items: @@ -58828,7 +59288,7 @@ paths: explode: true style: form - in: query - name: search_weight__n + name: id__lte schema: type: array items: @@ -58837,106 +59297,74 @@ paths: explode: true style: form - in: query - name: type + name: id__n schema: type: array items: - type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds + type: integer + format: int32 explode: true style: form - in: query - name: type__n + name: image_height schema: type: array items: - type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds + type: integer + format: int32 explode: true style: form - in: query - name: ui_editable + name: image_height__empty schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' + type: boolean - in: query - name: ui_editable__n + name: image_height__gt schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: ui_visible + name: image_height__gte schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: ui_visible__n + name: image_height__lt schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: unique + name: image_height__lte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: updated_by_request + name: image_height__n schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: validation_maximum + name: image_width schema: type: array items: @@ -58945,11 +59373,11 @@ paths: explode: true style: form - in: query - name: validation_maximum__empty + name: image_width__empty schema: type: boolean - in: query - name: validation_maximum__gt + name: image_width__gt schema: type: array items: @@ -58958,7 +59386,7 @@ paths: explode: true style: form - in: query - name: validation_maximum__gte + name: image_width__gte schema: type: array items: @@ -58967,7 +59395,7 @@ paths: explode: true style: form - in: query - name: validation_maximum__lt + name: image_width__lt schema: type: array items: @@ -58976,7 +59404,7 @@ paths: explode: true style: form - in: query - name: validation_maximum__lte + name: image_width__lte schema: type: array items: @@ -58985,7 +59413,7 @@ paths: explode: true style: form - in: query - name: validation_maximum__n + name: image_width__n schema: type: array items: @@ -58994,65 +59422,81 @@ paths: explode: true style: form - in: query - name: validation_minimum + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: validation_minimum__empty + name: last_updated__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: validation_minimum__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: validation_minimum__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: validation_minimum__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: validation_minimum__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: validation_minimum__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: validation_regex + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -59060,11 +59504,11 @@ paths: explode: true style: form - in: query - name: validation_regex__empty + name: name__empty schema: type: boolean - in: query - name: validation_regex__ic + name: name__ic schema: type: array items: @@ -59072,7 +59516,7 @@ paths: explode: true style: form - in: query - name: validation_regex__ie + name: name__ie schema: type: array items: @@ -59080,7 +59524,7 @@ paths: explode: true style: form - in: query - name: validation_regex__iew + name: name__iew schema: type: array items: @@ -59088,7 +59532,7 @@ paths: explode: true style: form - in: query - name: validation_regex__isw + name: name__isw schema: type: array items: @@ -59096,7 +59540,7 @@ paths: explode: true style: form - in: query - name: validation_regex__n + name: name__n schema: type: array items: @@ -59104,7 +59548,7 @@ paths: explode: true style: form - in: query - name: validation_regex__nic + name: name__nic schema: type: array items: @@ -59112,7 +59556,7 @@ paths: explode: true style: form - in: query - name: validation_regex__nie + name: name__nie schema: type: array items: @@ -59120,7 +59564,7 @@ paths: explode: true style: form - in: query - name: validation_regex__niew + name: name__niew schema: type: array items: @@ -59128,7 +59572,7 @@ paths: explode: true style: form - in: query - name: validation_regex__nisw + name: name__nisw schema: type: array items: @@ -59136,7 +59580,7 @@ paths: explode: true style: form - in: query - name: weight + name: object_id schema: type: array items: @@ -59145,11 +59589,11 @@ paths: explode: true style: form - in: query - name: weight__empty + name: object_id__empty schema: type: boolean - in: query - name: weight__gt + name: object_id__gt schema: type: array items: @@ -59158,7 +59602,7 @@ paths: explode: true style: form - in: query - name: weight__gte + name: object_id__gte schema: type: array items: @@ -59167,7 +59611,7 @@ paths: explode: true style: form - in: query - name: weight__lt + name: object_id__lt schema: type: array items: @@ -59176,7 +59620,7 @@ paths: explode: true style: form - in: query - name: weight__lte + name: object_id__lte schema: type: array items: @@ -59185,7 +59629,7 @@ paths: explode: true style: form - in: query - name: weight__n + name: object_id__n schema: type: array items: @@ -59193,6 +59637,44 @@ paths: format: int32 explode: true style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type_id + schema: + type: integer + - in: query + name: object_type_id__n + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - extras security: @@ -59203,21 +59685,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomFieldList' + $ref: '#/components/schemas/PaginatedImageAttachmentList' description: '' post: - operationId: extras_custom_fields_create - description: Post a list of custom field objects. + operationId: extras_image_attachments_create + description: Post a list of image attachment objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -59227,11 +59709,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: extras_custom_fields_bulk_update - description: Put a list of custom field objects. + operationId: extras_image_attachments_bulk_update + description: Put a list of image attachment objects. tags: - extras requestBody: @@ -59240,12 +59722,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -59257,11 +59739,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: extras_custom_fields_bulk_partial_update - description: Patch a list of custom field objects. + operationId: extras_image_attachments_bulk_partial_update + description: Patch a list of image attachment objects. tags: - extras requestBody: @@ -59270,12 +59752,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -59287,11 +59769,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: extras_custom_fields_bulk_destroy - description: Delete a list of custom field objects. + operationId: extras_image_attachments_bulk_destroy + description: Delete a list of image attachment objects. tags: - extras requestBody: @@ -59300,12 +59782,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -59313,16 +59795,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-fields/{id}/: + /api/extras/image-attachments/{id}/: get: - operationId: extras_custom_fields_retrieve - description: Get a custom field object. + operationId: extras_image_attachments_retrieve + description: Get a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -59334,17 +59816,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: extras_custom_fields_update - description: Put a custom field object. + operationId: extras_image_attachments_update + description: Put a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -59352,10 +59834,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -59365,17 +59847,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: extras_custom_fields_partial_update - description: Patch a custom field object. + operationId: extras_image_attachments_partial_update + description: Patch a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -59383,10 +59865,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -59395,17 +59877,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomField' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: extras_custom_fields_destroy - description: Delete a custom field object. + operationId: extras_image_attachments_destroy + description: Delete a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom field. + description: A unique integer value identifying this image attachment. required: true tags: - extras @@ -59415,275 +59897,146 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/: + /api/extras/journal-entries/: get: - operationId: extras_custom_links_list - description: Get a list of custom link objects. + operationId: extras_journal_entries_list + description: Get a list of journal entry objects. parameters: - in: query - name: button_class + name: assigned_object_id schema: - type: string - x-spec-enum-id: ee8e5bb1ccdcdb19 - enum: - - black - - blue - - cyan - - default - - ghost-dark - - gray - - green - - indigo - - orange - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `default` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: button_class__n + name: assigned_object_id__empty schema: - type: string - x-spec-enum-id: ee8e5bb1ccdcdb19 - enum: - - black - - blue - - cyan - - default - - ghost-dark - - gray - - green - - indigo - - orange - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `default` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' + type: boolean - in: query - name: created + name: assigned_object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: assigned_object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: assigned_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: assigned_object_id__lte schema: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: assigned_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: assigned_object_type schema: type: string - format: uuid - - in: query - name: enabled - schema: - type: boolean - in: query - name: group_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_name__empty + name: assigned_object_type__n schema: - type: boolean + type: string - in: query - name: group_name__ic + name: assigned_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: group_name__ie + name: assigned_object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: group_name__iew + name: created_after schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: group_name__isw + name: created_before schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: group_name__n + name: created_by schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: group_name__nic + name: created_by__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: group_name__nie + name: created_by_id schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: group_name__niew + name: created_by_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: group_name__nisw + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query name: id schema: @@ -59742,6 +60095,24 @@ paths: format: int32 explode: true style: form + - in: query + name: kind + schema: + type: array + items: + type: string + x-spec-enum-id: a21af280f632fa34 + explode: true + style: form + - in: query + name: kind__n + schema: + type: array + items: + type: string + x-spec-enum-id: a21af280f632fa34 + explode: true + style: form - in: query name: last_updated schema: @@ -59811,235 +60182,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: link_text - schema: - type: string - - in: query - name: link_text__ic - schema: - type: string - - in: query - name: link_text__ie - schema: - type: string - - in: query - name: link_text__iew - schema: - type: string - - in: query - name: link_text__isw - schema: - type: string - - in: query - name: link_text__n - schema: - type: string - - in: query - name: link_text__nic - schema: - type: string - - in: query - name: link_text__nie - schema: - type: string - - in: query - name: link_text__niew - schema: - type: string - - in: query - name: link_text__nisw - schema: - type: string - - in: query - name: link_url - schema: - type: string - - in: query - name: link_url__ic - schema: - type: string - - in: query - name: link_url__ie - schema: - type: string - - in: query - name: link_url__iew - schema: - type: string - - in: query - name: link_url__isw - schema: - type: string - - in: query - name: link_url__n - schema: - type: string - - in: query - name: link_url__nic - schema: - type: string - - in: query - name: link_url__nie - schema: - type: string - - in: query - name: link_url__niew - schema: - type: string - - in: query - name: link_url__nisw - schema: - type: string - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: new_window - schema: - type: boolean - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query @@ -60058,68 +60205,26 @@ paths: type: string description: Search - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lt + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - extras security: @@ -60130,21 +60235,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomLinkList' + $ref: '#/components/schemas/PaginatedJournalEntryList' description: '' post: - operationId: extras_custom_links_create - description: Post a list of custom link objects. + operationId: extras_journal_entries_create + description: Post a list of journal entry objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' required: true security: - cookieAuth: [] @@ -60154,11 +60259,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/JournalEntry' description: '' put: - operationId: extras_custom_links_bulk_update - description: Put a list of custom link objects. + operationId: extras_journal_entries_bulk_update + description: Put a list of journal entry objects. tags: - extras requestBody: @@ -60167,12 +60272,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/JournalEntryRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/JournalEntryRequest' required: true security: - cookieAuth: [] @@ -60184,11 +60289,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/JournalEntry' description: '' patch: - operationId: extras_custom_links_bulk_partial_update - description: Patch a list of custom link objects. + operationId: extras_journal_entries_bulk_partial_update + description: Patch a list of journal entry objects. tags: - extras requestBody: @@ -60197,12 +60302,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/JournalEntryRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/JournalEntryRequest' required: true security: - cookieAuth: [] @@ -60214,11 +60319,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/JournalEntry' description: '' delete: - operationId: extras_custom_links_bulk_destroy - description: Delete a list of custom link objects. + operationId: extras_journal_entries_bulk_destroy + description: Delete a list of journal entry objects. tags: - extras requestBody: @@ -60227,12 +60332,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/JournalEntryRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/JournalEntryRequest' required: true security: - cookieAuth: [] @@ -60240,16 +60345,16 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/{id}/: + /api/extras/journal-entries/{id}/: get: - operationId: extras_custom_links_retrieve - description: Get a custom link object. + operationId: extras_journal_entries_retrieve + description: Get a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this journal entry. required: true tags: - extras @@ -60261,17 +60366,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/JournalEntry' description: '' put: - operationId: extras_custom_links_update - description: Put a custom link object. + operationId: extras_journal_entries_update + description: Put a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this journal entry. required: true tags: - extras @@ -60279,10 +60384,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableJournalEntryRequest' required: true security: - cookieAuth: [] @@ -60292,17 +60397,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/JournalEntry' description: '' patch: - operationId: extras_custom_links_partial_update - description: Patch a custom link object. + operationId: extras_journal_entries_partial_update + description: Patch a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this journal entry. required: true tags: - extras @@ -60310,10 +60415,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -60322,17 +60427,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/JournalEntry' description: '' delete: - operationId: extras_custom_links_destroy - description: Delete a custom link object. + operationId: extras_journal_entries_destroy + description: Delete a journal entry object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this journal entry. required: true tags: - extras @@ -60342,95 +60447,41 @@ paths: responses: '204': description: No response body - /api/extras/dashboard/: - get: - operationId: extras_dashboard_retrieve - description: Get a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - put: - operationId: extras_dashboard_update - description: Put a list of dashboard objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DashboardRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DashboardRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - patch: - operationId: extras_dashboard_partial_update - description: Patch a list of dashboard objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDashboardRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedDashboardRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - delete: - operationId: extras_dashboard_destroy - description: Delete a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/event-rules/: + /api/extras/object-changes/: get: - operationId: extras_event_rules_list - description: Get a list of event rule objects. + operationId: extras_object_changes_list + description: Retrieve a list of recent changes. parameters: - in: query - name: action_object_id + name: action schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' - in: query - name: action_object_id__empty + name: action__n + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: changed_object_id schema: type: array items: @@ -60439,7 +60490,11 @@ paths: explode: true style: form - in: query - name: action_object_id__gt + name: changed_object_id__empty + schema: + type: boolean + - in: query + name: changed_object_id__gt schema: type: array items: @@ -60448,7 +60503,7 @@ paths: explode: true style: form - in: query - name: action_object_id__gte + name: changed_object_id__gte schema: type: array items: @@ -60457,7 +60512,7 @@ paths: explode: true style: form - in: query - name: action_object_id__lt + name: changed_object_id__lt schema: type: array items: @@ -60466,7 +60521,7 @@ paths: explode: true style: form - in: query - name: action_object_id__lte + name: changed_object_id__lte schema: type: array items: @@ -60475,7 +60530,7 @@ paths: explode: true style: form - in: query - name: action_object_id__n + name: changed_object_id__n schema: type: array items: @@ -60484,101 +60539,95 @@ paths: explode: true style: form - in: query - name: action_object_type + name: changed_object_type schema: type: string - in: query - name: action_object_type__n + name: changed_object_type__n schema: type: string - in: query - name: action_type + name: changed_object_type_id schema: type: array items: - type: string - x-spec-enum-id: d07193c73ebc03c6 + type: integer explode: true style: form - in: query - name: action_type__n + name: changed_object_type_id__n schema: type: array items: - type: string - x-spec-enum-id: d07193c73ebc03c6 + type: integer explode: true style: form - in: query - name: created + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - in: query - name: created_by_request + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: string - format: uuid + type: integer - in: query - name: description + name: object_repr schema: type: array items: @@ -60586,11 +60635,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: object_repr__empty schema: type: boolean - in: query - name: description__ic + name: object_repr__ic schema: type: array items: @@ -60598,7 +60647,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: object_repr__ie schema: type: array items: @@ -60606,7 +60655,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: object_repr__iew schema: type: array items: @@ -60614,7 +60663,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: object_repr__isw schema: type: array items: @@ -60622,7 +60671,7 @@ paths: explode: true style: form - in: query - name: description__n + name: object_repr__n schema: type: array items: @@ -60630,7 +60679,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: object_repr__nic schema: type: array items: @@ -60638,7 +60687,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: object_repr__nie schema: type: array items: @@ -60646,7 +60695,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: object_repr__niew schema: type: array items: @@ -60654,27 +60703,32 @@ paths: explode: true style: form - in: query - name: description__nisw + name: object_repr__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: enabled + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: boolean + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: event_type + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: id + name: related_object_id schema: type: array items: @@ -60683,11 +60737,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: related_object_id__empty schema: type: boolean - in: query - name: id__gt + name: related_object_id__gt schema: type: array items: @@ -60696,7 +60750,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: related_object_id__gte schema: type: array items: @@ -60705,7 +60759,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: related_object_id__lt schema: type: array items: @@ -60714,7 +60768,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: related_object_id__lte schema: type: array items: @@ -60723,7 +60777,7 @@ paths: explode: true style: form - in: query - name: id__n + name: related_object_id__n schema: type: array items: @@ -60732,81 +60786,68 @@ paths: explode: true style: form - in: query - name: last_updated + name: related_object_type schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: integer - in: query - name: last_updated__empty + name: related_object_type__n schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: integer - in: query - name: last_updated__gt + name: request_id schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: uuid - in: query - name: last_updated__gte + name: time_after + schema: + type: string + format: date-time + - in: query + name: time_before + schema: + type: string + format: date-time + - in: query + name: user schema: type: array items: type: string - format: date-time + description: User name explode: true style: form - in: query - name: last_updated__lt + name: user__n schema: type: array items: type: string - format: date-time + description: User name explode: true style: form - in: query - name: last_updated__lte + name: user_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: last_updated__n + name: user_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: User (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: user_name schema: type: array items: @@ -60814,11 +60855,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: user_name__empty schema: type: boolean - in: query - name: name__ic + name: user_name__ic schema: type: array items: @@ -60826,7 +60867,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: user_name__ie schema: type: array items: @@ -60834,7 +60875,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: user_name__iew schema: type: array items: @@ -60842,7 +60883,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: user_name__isw schema: type: array items: @@ -60850,7 +60891,7 @@ paths: explode: true style: form - in: query - name: name__n + name: user_name__n schema: type: array items: @@ -60858,7 +60899,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: user_name__nic schema: type: array items: @@ -60866,7 +60907,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: user_name__nie schema: type: array items: @@ -60874,7 +60915,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: user_name__niew schema: type: array items: @@ -60882,88 +60923,210 @@ paths: explode: true style: form - in: query - name: name__nisw + name: user_name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: object_type + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedObjectChangeList' + description: '' + /api/extras/object-changes/{id}/: + get: + operationId: extras_object_changes_retrieve + description: Retrieve a list of recent changes. + parameters: + - in: path + name: id schema: - type: string + type: integer + description: A unique integer value identifying this object change. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectChange' + description: '' + /api/extras/object-types/: + get: + operationId: extras_object_types_list + description: Read-only list of ObjectTypes. + parameters: - in: query - name: object_type__ic + name: app_label schema: type: string - in: query - name: object_type__ie + name: id schema: - type: string + type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: object_type__iew + name: model schema: type: string - - in: query - name: object_type__isw + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__n + name: q schema: type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedObjectTypeList' + description: '' + /api/extras/object-types/{id}/: + get: + operationId: extras_object_types_retrieve + description: Read-only list of ObjectTypes. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this object type. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectType' + description: '' + /api/extras/saved-filters/: + get: + operationId: extras_saved_filters_list + description: Get a list of saved filter objects. + parameters: - in: query - name: object_type__nic + name: created schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__nie + name: created__empty schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__niew + name: created__gt schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type__nisw + name: created__gte schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: object_type_id + name: created__lt schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: object_type_id__n + name: created__lte schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: created__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request schema: type: string + format: uuid - in: query - name: q + name: description schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -60971,7 +61134,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: description__ie schema: type: array items: @@ -60979,377 +61142,125 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedEventRuleList' - description: '' - post: - operationId: extras_event_rules_create - description: Post a list of event rule objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableEventRuleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableEventRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/EventRule' - description: '' - put: - operationId: extras_event_rules_bulk_update - description: Put a list of event rule objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EventRuleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/EventRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EventRule' - description: '' - patch: - operationId: extras_event_rules_bulk_partial_update - description: Patch a list of event rule objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EventRuleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/EventRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EventRule' - description: '' - delete: - operationId: extras_event_rules_bulk_destroy - description: Delete a list of event rule objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/EventRuleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/EventRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/event-rules/{id}/: - get: - operationId: extras_event_rules_retrieve - description: Get a event rule object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this event rule. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/EventRule' - description: '' - put: - operationId: extras_event_rules_update - description: Put a event rule object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this event rule. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableEventRuleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableEventRuleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/EventRule' - description: '' - patch: - operationId: extras_event_rules_partial_update - description: Patch a event rule object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this event rule. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/EventRule' - description: '' - delete: - operationId: extras_event_rules_destroy - description: Delete a event rule object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this event rule. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/export-templates/: - get: - operationId: extras_export_templates_list - description: Get a list of export template objects. - parameters: - - in: query - name: as_attachment - schema: - type: boolean - - in: query - name: auto_sync_enabled - schema: - type: boolean - - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: enabled schema: - type: string - format: uuid + type: boolean - in: query - name: data_file_id + name: id schema: type: array items: type: integer - nullable: true - description: Data file (ID) + format: int32 explode: true style: form - in: query - name: data_file_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - nullable: true - description: Data file (ID) + format: int32 explode: true style: form - in: query - name: data_source_id + name: id__gte schema: type: array items: type: integer - nullable: true - description: Data source (ID) + format: int32 explode: true style: form - in: query - name: data_source_id__n + name: id__lt schema: type: array items: type: integer - nullable: true - description: Data source (ID) + format: int32 explode: true style: form - in: query - name: data_synced + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: data_synced__gte + name: last_updated schema: type: array items: @@ -61358,7 +61269,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: last_updated__empty schema: type: array items: @@ -61367,7 +61278,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: last_updated__gt schema: type: array items: @@ -61376,7 +61287,7 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: last_updated__gte schema: type: array items: @@ -61385,51 +61296,45 @@ paths: explode: true style: form - in: query - name: description + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: description__iew + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: description__isw + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: description__n + name: name schema: type: array items: @@ -61437,15 +61342,11 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nie + name: name__ic schema: type: array items: @@ -61453,7 +61354,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__ie schema: type: array items: @@ -61461,7 +61362,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__iew schema: type: array items: @@ -61469,7 +61370,7 @@ paths: explode: true style: form - in: query - name: file_extension + name: name__isw schema: type: array items: @@ -61477,11 +61378,7 @@ paths: explode: true style: form - in: query - name: file_extension__empty - schema: - type: boolean - - in: query - name: file_extension__ic + name: name__n schema: type: array items: @@ -61489,7 +61386,7 @@ paths: explode: true style: form - in: query - name: file_extension__ie + name: name__nic schema: type: array items: @@ -61497,7 +61394,7 @@ paths: explode: true style: form - in: query - name: file_extension__iew + name: name__nie schema: type: array items: @@ -61505,7 +61402,7 @@ paths: explode: true style: form - in: query - name: file_extension__isw + name: name__niew schema: type: array items: @@ -61513,7 +61410,7 @@ paths: explode: true style: form - in: query - name: file_extension__n + name: name__nisw schema: type: array items: @@ -61521,166 +61418,84 @@ paths: explode: true style: form - in: query - name: file_extension__nic + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: file_extension__nie + name: object_type__ic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: file_extension__niew + name: object_type__ie schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: file_extension__nisw + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: id + name: object_type__isw schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__empty + name: object_type__n schema: - type: boolean + type: string - in: query - name: id__gt + name: object_type__nic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__gte + name: object_type__nie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__lt + name: object_type__niew schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__lte + name: object_type__nisw schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__n + name: object_type_id schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: object_type_id__n schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - - in: query - name: last_updated__gte + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: last_updated__lte + name: q schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + description: Search - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + name: shared schema: - type: integer + type: boolean - in: query - name: mime_type + name: slug schema: type: array items: @@ -61688,11 +61503,11 @@ paths: explode: true style: form - in: query - name: mime_type__empty + name: slug__empty schema: type: boolean - in: query - name: mime_type__ic + name: slug__ic schema: type: array items: @@ -61700,7 +61515,7 @@ paths: explode: true style: form - in: query - name: mime_type__ie + name: slug__ie schema: type: array items: @@ -61708,7 +61523,7 @@ paths: explode: true style: form - in: query - name: mime_type__iew + name: slug__iew schema: type: array items: @@ -61716,7 +61531,7 @@ paths: explode: true style: form - in: query - name: mime_type__isw + name: slug__isw schema: type: array items: @@ -61724,7 +61539,7 @@ paths: explode: true style: form - in: query - name: mime_type__n + name: slug__n schema: type: array items: @@ -61732,7 +61547,7 @@ paths: explode: true style: form - in: query - name: mime_type__nic + name: slug__nic schema: type: array items: @@ -61740,7 +61555,7 @@ paths: explode: true style: form - in: query - name: mime_type__nie + name: slug__nie schema: type: array items: @@ -61748,7 +61563,7 @@ paths: explode: true style: form - in: query - name: mime_type__niew + name: slug__niew schema: type: array items: @@ -61756,7 +61571,7 @@ paths: explode: true style: form - in: query - name: mime_type__nisw + name: slug__nisw schema: type: array items: @@ -61764,172 +61579,110 @@ paths: explode: true style: form - in: query - name: modified_by_request + name: updated_by_request schema: type: string format: uuid - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty + name: usable schema: type: boolean - in: query - name: name__ic + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: name__ie + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: name__iew + name: user_id schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: name__isw + name: user_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: name__n + name: weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: weight__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__nie + name: weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: weight__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: weight__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id + name: weight__lte schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: object_type_id__n + name: weight__n schema: type: array items: type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - extras security: @@ -61940,21 +61693,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedExportTemplateList' + $ref: '#/components/schemas/PaginatedSavedFilterList' description: '' post: - operationId: extras_export_templates_create - description: Post a list of export template objects. + operationId: extras_saved_filters_create + description: Post a list of saved filter objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -61964,11 +61717,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: extras_export_templates_bulk_update - description: Put a list of export template objects. + operationId: extras_saved_filters_bulk_update + description: Put a list of saved filter objects. tags: - extras requestBody: @@ -61977,12 +61730,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -61994,11 +61747,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: extras_export_templates_bulk_partial_update - description: Patch a list of export template objects. + operationId: extras_saved_filters_bulk_partial_update + description: Patch a list of saved filter objects. tags: - extras requestBody: @@ -62007,12 +61760,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -62024,11 +61777,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: extras_export_templates_bulk_destroy - description: Delete a list of export template objects. + operationId: extras_saved_filters_bulk_destroy + description: Delete a list of saved filter objects. tags: - extras requestBody: @@ -62037,12 +61790,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -62050,16 +61803,16 @@ paths: responses: '204': description: No response body - /api/extras/export-templates/{id}/: + /api/extras/saved-filters/{id}/: get: - operationId: extras_export_templates_retrieve - description: Get a export template object. + operationId: extras_saved_filters_retrieve + description: Get a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this saved filter. required: true tags: - extras @@ -62071,17 +61824,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: extras_export_templates_update - description: Put a export template object. + operationId: extras_saved_filters_update + description: Put a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this saved filter. required: true tags: - extras @@ -62089,10 +61842,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -62102,17 +61855,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: extras_export_templates_partial_update - description: Patch a export template object. + operationId: extras_saved_filters_partial_update + description: Patch a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this saved filter. required: true tags: - extras @@ -62120,10 +61873,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -62132,17 +61885,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: extras_export_templates_destroy - description: Delete a export template object. + operationId: extras_saved_filters_destroy + description: Delete a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this saved filter. required: true tags: - extras @@ -62152,112 +61905,11 @@ paths: responses: '204': description: No response body - /api/extras/export-templates/{id}/sync/: - post: - operationId: extras_export_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - /api/extras/image-attachments/: + /api/extras/scripts/: get: - operationId: extras_image_attachments_list - description: Get a list of image attachment objects. + operationId: extras_scripts_list + description: Get a list of script objects. parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - in: query name: id schema: @@ -62317,375 +61969,134 @@ paths: explode: true style: form - in: query - name: image_height - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: image_height__empty + name: is_executable schema: type: boolean - - in: query - name: image_height__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: image_height__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: image_height__lt + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer - in: query - name: image_height__lte + name: module_id schema: type: array items: type: integer - format: int32 + description: Script module (ID) explode: true style: form - in: query - name: image_height__n + name: module_id__n schema: type: array items: type: integer - format: int32 + description: Script module (ID) explode: true style: form - in: query - name: image_width + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__empty + name: name__empty schema: type: boolean - in: query - name: image_width__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: image_width__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: image_width__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: image_width__lte + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__n + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - - in: query - name: modified_by_request + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type_id - schema: - type: integer - - in: query - name: object_type_id__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q + name: q schema: type: string description: Search - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - extras security: @@ -62696,22 +62107,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedImageAttachmentList' + $ref: '#/components/schemas/PaginatedScriptList' description: '' post: - operationId: extras_image_attachments_create - description: Post a list of image attachment objects. + operationId: extras_scripts_create + description: Post a list of script objects. tags: - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true security: - cookieAuth: [] - tokenAuth: [] @@ -62720,102 +62122,18 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_bulk_update - description: Put a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_bulk_partial_update - description: Patch a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/Script' description: '' - delete: - operationId: extras_image_attachments_bulk_destroy - description: Delete a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/image-attachments/{id}/: + /api/extras/scripts/{id}/: get: - operationId: extras_image_attachments_retrieve - description: Get a image attachment object. + operationId: extras_scripts_retrieve + description: Get a script object. parameters: - in: path name: id schema: - type: integer - description: A unique integer value identifying this image attachment. + type: string + pattern: ^[^/]+$ required: true tags: - extras @@ -62827,29 +62145,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/Script' description: '' put: - operationId: extras_image_attachments_update - description: Put a image attachment object. + operationId: extras_scripts_update + description: Put a script object. parameters: - in: path name: id schema: - type: integer - description: A unique integer value identifying this image attachment. + type: string + pattern: ^[^/]+$ required: true tags: - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true security: - cookieAuth: [] - tokenAuth: [] @@ -62858,28 +62167,20 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/Script' description: '' patch: - operationId: extras_image_attachments_partial_update - description: Patch a image attachment object. + operationId: extras_scripts_partial_update + description: Patch a script object. parameters: - in: path name: id schema: - type: integer - description: A unique integer value identifying this image attachment. + type: string + pattern: ^[^/]+$ required: true tags: - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -62888,17 +62189,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ImageAttachment' + $ref: '#/components/schemas/Script' description: '' delete: - operationId: extras_image_attachments_destroy - description: Delete a image attachment object. + operationId: extras_scripts_destroy + description: Delete a script object. parameters: - in: path name: id schema: - type: integer - description: A unique integer value identifying this image attachment. + type: string + pattern: ^[^/]+$ required: true tags: - extras @@ -62908,139 +62209,173 @@ paths: responses: '204': description: No response body - /api/extras/journal-entries/: + /api/extras/tags/: get: - operationId: extras_journal_entries_list - description: Get a list of journal entry objects. + operationId: extras_tags_list + description: Get a list of tag objects. parameters: - in: query - name: assigned_object_id + name: color schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__empty + name: color__empty schema: type: boolean - in: query - name: assigned_object_id__gt + name: color__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__gte + name: color__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__lt + name: color__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__lte + name: color__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__n + name: color__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_type + name: color__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: assigned_object_type__n + name: color__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: assigned_object_type_id + name: color__niew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: assigned_object_type_id__n + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: content_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: content_type_id schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: created_after + name: created schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created_before + name: created__empty schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created_by + name: created__gt schema: type: array items: type: string - description: User (name) + format: date-time explode: true style: form - in: query - name: created_by__n + name: created__gte schema: type: array items: type: string - description: User (name) + format: date-time explode: true style: form - in: query - name: created_by_id + name: created__lt schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string + format: date-time explode: true style: form - in: query - name: created_by_id__n + name: created__lte schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time explode: true style: form - in: query @@ -63049,20 +62384,91 @@ paths: type: string format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: for_object_type_id schema: type: array items: @@ -63071,7 +62477,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: id schema: type: array items: @@ -63080,7 +62486,11 @@ paths: explode: true style: form - in: query - name: id__lt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -63089,7 +62499,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: id__gte schema: type: array items: @@ -63098,7 +62508,7 @@ paths: explode: true style: form - in: query - name: id__n + name: id__lt schema: type: array items: @@ -63107,21 +62517,21 @@ paths: explode: true style: form - in: query - name: kind + name: id__lte schema: type: array items: - type: string - x-spec-enum-id: a21af280f632fa34 + type: integer + format: int32 explode: true style: form - in: query - name: kind__n + name: id__n schema: type: array items: - type: string - x-spec-enum-id: a21af280f632fa34 + type: integer + format: int32 explode: true style: form - in: query @@ -63198,6 +62608,106 @@ paths: schema: type: string format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: object_types + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_types__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -63216,7 +62726,7 @@ paths: type: string description: Search - in: query - name: tag + name: slug schema: type: array items: @@ -63224,7 +62734,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -63232,255 +62746,74 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: slug__ie schema: - type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJournalEntryList' - description: '' - post: - operationId: extras_journal_entries_create - description: Post a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - put: - operationId: extras_journal_entries_bulk_update - description: Put a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntry' - description: '' - patch: - operationId: extras_journal_entries_bulk_partial_update - description: Patch a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntry' - description: '' - delete: - operationId: extras_journal_entries_bulk_destroy - description: Delete a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/journal-entries/{id}/: - get: - operationId: extras_journal_entries_retrieve - description: Get a journal entry object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - put: - operationId: extras_journal_entries_update - description: Put a journal entry object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - patch: - operationId: extras_journal_entries_partial_update - description: Patch a journal entry object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - delete: - operationId: extras_journal_entries_destroy - description: Delete a journal entry object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/notification-groups/: - get: - operationId: extras_notification_groups_list - description: Get a list of notification group objects. - parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request schema: type: string + format: uuid tags: - extras security: @@ -63491,21 +62824,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedNotificationGroupList' + $ref: '#/components/schemas/PaginatedTagList' description: '' post: - operationId: extras_notification_groups_create - description: Post a list of notification group objects. + operationId: extras_tags_create + description: Post a list of tag objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -63515,11 +62848,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationGroup' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: extras_notification_groups_bulk_update - description: Put a list of notification group objects. + operationId: extras_tags_bulk_update + description: Put a list of tag objects. tags: - extras requestBody: @@ -63528,12 +62861,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -63545,11 +62878,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/NotificationGroup' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: extras_notification_groups_bulk_partial_update - description: Patch a list of notification group objects. + operationId: extras_tags_bulk_partial_update + description: Patch a list of tag objects. tags: - extras requestBody: @@ -63558,12 +62891,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -63575,11 +62908,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/NotificationGroup' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: extras_notification_groups_bulk_destroy - description: Delete a list of notification group objects. + operationId: extras_tags_bulk_destroy + description: Delete a list of tag objects. tags: - extras requestBody: @@ -63588,12 +62921,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -63601,16 +62934,16 @@ paths: responses: '204': description: No response body - /api/extras/notification-groups/{id}/: + /api/extras/tags/{id}/: get: - operationId: extras_notification_groups_retrieve - description: Get a notification group object. + operationId: extras_tags_retrieve + description: Get a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this notification group. + description: A unique integer value identifying this tag. required: true tags: - extras @@ -63622,17 +62955,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationGroup' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: extras_notification_groups_update - description: Put a notification group object. + operationId: extras_tags_update + description: Put a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this notification group. + description: A unique integer value identifying this tag. required: true tags: - extras @@ -63640,10 +62973,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/NotificationGroupRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -63653,17 +62986,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationGroup' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: extras_notification_groups_partial_update - description: Patch a notification group object. + operationId: extras_tags_partial_update + description: Patch a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this notification group. + description: A unique integer value identifying this tag. required: true tags: - extras @@ -63671,10 +63004,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedNotificationGroupRequest' + $ref: '#/components/schemas/PatchedTagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedNotificationGroupRequest' + $ref: '#/components/schemas/PatchedTagRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63683,17 +63016,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/NotificationGroup' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: extras_notification_groups_destroy - description: Delete a notification group object. + operationId: extras_tags_destroy + description: Delete a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this notification group. + description: A unique integer value identifying this tag. required: true tags: - extras @@ -63703,331 +63036,95 @@ paths: responses: '204': description: No response body - /api/extras/notifications/: + /api/extras/webhooks/: get: - operationId: extras_notifications_list - description: Get a list of notification objects. + operationId: extras_webhooks_list + description: Get a list of webhook objects. parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: ca_file_path schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__empty schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + - in: query + name: ca_file_path__ic schema: - type: string - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedNotificationList' - description: '' - post: - operationId: extras_notifications_create - description: Post a list of notification objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NotificationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/NotificationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Notification' - description: '' - put: - operationId: extras_notifications_bulk_update - description: Put a list of notification objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/NotificationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/NotificationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Notification' - description: '' - patch: - operationId: extras_notifications_bulk_partial_update - description: Patch a list of notification objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/NotificationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/NotificationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Notification' - description: '' - delete: - operationId: extras_notifications_bulk_destroy - description: Delete a list of notification objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/NotificationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/NotificationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/notifications/{id}/: - get: - operationId: extras_notifications_retrieve - description: Get a notification object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this notification. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Notification' - description: '' - put: - operationId: extras_notifications_update - description: Put a notification object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this notification. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/NotificationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/NotificationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Notification' - description: '' - patch: - operationId: extras_notifications_partial_update - description: Patch a notification object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this notification. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedNotificationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedNotificationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Notification' - description: '' - delete: - operationId: extras_notifications_destroy - description: Delete a notification object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this notification. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/object-types/: - get: - operationId: extras_object_types_list - description: Read-only list of ObjectTypes. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query - name: app_label + name: ca_file_path__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: id + name: ca_file_path__iew schema: - type: integer - - name: limit - required: false - in: query - description: Number of results to return per page. + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__isw schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: model + name: ca_file_path__n schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nic schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: ca_file_path__niew schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedObjectTypeList' - description: '' - /api/extras/object-types/{id}/: - get: - operationId: extras_object_types_retrieve - description: Read-only list of ObjectTypes. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nisw schema: - type: integer - description: A unique integer value identifying this object type. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ObjectType' - description: '' - /api/extras/saved-filters/: - get: - operationId: extras_saved_filters_list - description: Get a list of saved filter objects. - parameters: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -64181,9 +63278,107 @@ paths: explode: true style: form - in: query - name: enabled + name: http_content_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__empty schema: type: boolean + - in: query + name: http_content_type__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_method + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: http_method__n + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form - in: query name: id schema: @@ -64400,62 +63595,6 @@ paths: type: string explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query @@ -64469,16 +63608,7 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: shared - schema: - type: boolean - - in: query - name: slug + name: payload_url schema: type: array items: @@ -64486,11 +63616,12 @@ paths: explode: true style: form - in: query - name: slug__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: slug__ic + name: secret schema: type: array items: @@ -64498,15 +63629,11 @@ paths: explode: true style: form - in: query - name: slug__ie + name: secret__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: slug__iew + name: secret__ic schema: type: array items: @@ -64514,7 +63641,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: secret__ie schema: type: array items: @@ -64522,7 +63649,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: secret__iew schema: type: array items: @@ -64530,7 +63657,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: secret__isw schema: type: array items: @@ -64538,7 +63665,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: secret__n schema: type: array items: @@ -64546,7 +63673,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: secret__nic schema: type: array items: @@ -64554,7 +63681,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: secret__nie schema: type: array items: @@ -64562,110 +63689,46 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: usable - schema: - type: boolean - - in: query - name: user + name: secret__niew schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: secret__nisw schema: type: array items: type: string - description: User (name) - explode: true - style: form - - in: query - name: user_id - schema: - type: array - items: - type: integer - nullable: true - description: User (ID) - explode: true - style: form - - in: query - name: user_id__n - schema: - type: array - items: - type: integer - nullable: true - description: User (ID) - explode: true - style: form - - in: query - name: weight - schema: - type: array - items: - type: integer - format: int32 explode: true style: form - in: query - name: weight__empty + name: ssl_verification schema: type: boolean - in: query - name: weight__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lt + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - extras security: @@ -64676,21 +63739,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSavedFilterList' + $ref: '#/components/schemas/PaginatedWebhookList' description: '' post: - operationId: extras_saved_filters_create - description: Post a list of saved filter objects. + operationId: extras_webhooks_create + description: Post a list of webhook objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -64700,11 +63763,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: extras_saved_filters_bulk_update - description: Put a list of saved filter objects. + operationId: extras_webhooks_bulk_update + description: Put a list of webhook objects. tags: - extras requestBody: @@ -64713,12 +63776,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -64730,11 +63793,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: extras_saved_filters_bulk_partial_update - description: Patch a list of saved filter objects. + operationId: extras_webhooks_bulk_partial_update + description: Patch a list of webhook objects. tags: - extras requestBody: @@ -64743,12 +63806,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -64760,11 +63823,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: extras_saved_filters_bulk_destroy - description: Delete a list of saved filter objects. + operationId: extras_webhooks_bulk_destroy + description: Delete a list of webhook objects. tags: - extras requestBody: @@ -64773,12 +63836,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -64786,16 +63849,16 @@ paths: responses: '204': description: No response body - /api/extras/saved-filters/{id}/: + /api/extras/webhooks/{id}/: get: - operationId: extras_saved_filters_retrieve - description: Get a saved filter object. + operationId: extras_webhooks_retrieve + description: Get a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this webhook. required: true tags: - extras @@ -64807,17 +63870,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: extras_saved_filters_update - description: Put a saved filter object. + operationId: extras_webhooks_update + description: Put a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this webhook. required: true tags: - extras @@ -64825,10 +63888,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -64838,17 +63901,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: extras_saved_filters_partial_update - description: Patch a saved filter object. + operationId: extras_webhooks_partial_update + description: Patch a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this webhook. required: true tags: - extras @@ -64856,10 +63919,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -64868,17 +63931,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: extras_saved_filters_destroy - description: Delete a saved filter object. + operationId: extras_webhooks_destroy + description: Delete a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this webhook. required: true tags: - extras @@ -64888,111 +63951,151 @@ paths: responses: '204': description: No response body - /api/extras/scripts/: + /api/ipam/aggregates/: get: - operationId: extras_scripts_list - description: Get a list of script objects. + operationId: ipam_aggregates_list + description: Get a list of aggregate objects. parameters: - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_executable + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: date_added + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: date_added__empty schema: type: boolean - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: date_added__gt schema: - type: integer + type: array + items: + type: string + format: date + explode: true + style: form - in: query - name: module_id + name: date_added__gte schema: type: array items: - type: integer - description: Script module (ID) + type: string + format: date explode: true style: form - in: query - name: module_id__n + name: date_added__lt schema: type: array items: - type: integer - description: Script module (ID) + type: string + format: date explode: true style: form - in: query - name: name + name: date_added__lte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: name__empty + name: date_added__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -65000,7 +64103,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -65008,7 +64111,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -65016,7 +64119,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -65024,7 +64127,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -65032,7 +64135,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -65040,7 +64143,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -65048,7 +64151,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -65056,13 +64159,149 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -65075,165 +64314,149 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: prefix + schema: + type: string + description: Prefix - in: query name: q schema: type: string description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedScriptList' - description: '' - post: - operationId: extras_scripts_create - description: Post a list of script objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - /api/extras/scripts/{id}/: - get: - operationId: extras_scripts_retrieve - description: Get a script object. - parameters: - - in: path - name: id + - in: query + name: rir schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - put: - operationId: extras_scripts_update - description: Put a script object. - parameters: - - in: path - name: id + type: array + items: + type: string + description: RIR (slug) + explode: true + style: form + - in: query + name: rir__n schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ScriptInputRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ScriptInputRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - patch: - operationId: extras_scripts_partial_update - description: Patch a script object. - parameters: - - in: path - name: id + type: array + items: + type: string + description: RIR (slug) + explode: true + style: form + - in: query + name: rir_id schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedScriptInputRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedScriptInputRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - delete: - operationId: extras_scripts_destroy - description: Delete a script object. - parameters: - - in: path - name: id + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form + - in: query + name: rir_id__n schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/subscriptions/: - get: - operationId: extras_subscriptions_list - description: Get a list of subscription objects. - parameters: - - name: limit - required: false - in: query - description: Number of results to return per page. + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form + - in: query + name: tag schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request schema: type: string + format: uuid tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -65242,21 +64465,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSubscriptionList' + $ref: '#/components/schemas/PaginatedAggregateList' description: '' post: - operationId: extras_subscriptions_create - description: Post a list of subscription objects. + operationId: ipam_aggregates_create + description: Post a list of aggregate objects. tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -65266,25 +64489,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Subscription' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: extras_subscriptions_bulk_update - description: Put a list of subscription objects. + operationId: ipam_aggregates_bulk_update + description: Put a list of aggregate objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -65296,25 +64519,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Subscription' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: extras_subscriptions_bulk_partial_update - description: Patch a list of subscription objects. + operationId: ipam_aggregates_bulk_partial_update + description: Patch a list of aggregate objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -65326,25 +64549,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Subscription' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: extras_subscriptions_bulk_destroy - description: Delete a list of subscription objects. + operationId: ipam_aggregates_bulk_destroy + description: Delete a list of aggregate objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -65352,19 +64575,19 @@ paths: responses: '204': description: No response body - /api/extras/subscriptions/{id}/: + /api/ipam/aggregates/{id}/: get: - operationId: extras_subscriptions_retrieve - description: Get a subscription object. + operationId: ipam_aggregates_retrieve + description: Get a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this subscription. + description: A unique integer value identifying this aggregate. required: true tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -65373,28 +64596,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Subscription' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: extras_subscriptions_update - description: Put a subscription object. + operationId: ipam_aggregates_update + description: Put a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this subscription. + description: A unique integer value identifying this aggregate. required: true tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SubscriptionRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -65404,28 +64627,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Subscription' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: extras_subscriptions_partial_update - description: Patch a subscription object. + operationId: ipam_aggregates_partial_update + description: Patch a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this subscription. + description: A unique integer value identifying this aggregate. required: true tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedSubscriptionRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedSubscriptionRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -65434,202 +64657,153 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Subscription' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: extras_subscriptions_destroy - description: Delete a subscription object. + operationId: ipam_aggregates_destroy + description: Delete a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this subscription. + description: A unique integer value identifying this aggregate. required: true tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/tags/: + /api/ipam/asn-ranges/: get: - operationId: extras_tags_list - description: Get a list of tag objects. + operationId: ipam_asn_ranges_list + description: Get a list of ASN range objects. parameters: - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: content_type + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: content_type_id + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: created + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: description__nic schema: type: array items: @@ -65637,11 +64811,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: description__nie schema: type: array items: @@ -65649,7 +64819,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: description__niew schema: type: array items: @@ -65657,7 +64827,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: description__nisw schema: type: array items: @@ -65665,55 +64835,56 @@ paths: explode: true style: form - in: query - name: description__isw + name: end schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: end__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nic + name: end__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: end__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: end__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: end__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: for_object_type_id + name: end__n schema: type: array items: @@ -65937,22 +65108,6 @@ paths: type: string explode: true style: form - - in: query - name: object_types - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_types__n - schema: - type: array - items: - type: integer - explode: true - style: form - name: offset required: false in: query @@ -65970,6 +65125,42 @@ paths: schema: type: string description: Search + - in: query + name: rir + schema: + type: array + items: + type: string + description: RIR (slug) + explode: true + style: form + - in: query + name: rir__n + schema: + type: array + items: + type: string + description: RIR (slug) + explode: true + style: form + - in: query + name: rir_id + schema: + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form + - in: query + name: rir_id__n + schema: + type: array + items: + type: integer + description: RIR (ID) + explode: true + style: form - in: query name: slug schema: @@ -66054,13 +65245,161 @@ paths: type: string explode: true style: form + - in: query + name: start + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__empty + schema: + type: boolean + - in: query + name: start__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -66069,21 +65408,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTagList' + $ref: '#/components/schemas/PaginatedASNRangeList' description: '' post: - operationId: extras_tags_create - description: Post a list of tag objects. + operationId: ipam_asn_ranges_create + description: Post a list of ASN range objects. tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -66093,25 +65432,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: extras_tags_bulk_update - description: Put a list of tag objects. + operationId: ipam_asn_ranges_bulk_update + description: Put a list of ASN range objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -66123,25 +65462,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: extras_tags_bulk_partial_update - description: Patch a list of tag objects. + operationId: ipam_asn_ranges_bulk_partial_update + description: Patch a list of ASN range objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -66153,25 +65492,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: extras_tags_bulk_destroy - description: Delete a list of tag objects. + operationId: ipam_asn_ranges_bulk_destroy + description: Delete a list of ASN range objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -66179,19 +65518,19 @@ paths: responses: '204': description: No response body - /api/extras/tags/{id}/: + /api/ipam/asn-ranges/{id}/: get: - operationId: extras_tags_retrieve - description: Get a tag object. + operationId: ipam_asn_ranges_retrieve + description: Get a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this ASN range. required: true tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -66200,28 +65539,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: extras_tags_update - description: Put a tag object. + operationId: ipam_asn_ranges_update + description: Put a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this ASN range. required: true tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -66231,28 +65570,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: extras_tags_partial_update - description: Patch a tag object. + operationId: ipam_asn_ranges_partial_update + description: Patch a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this ASN range. required: true tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -66261,113 +65600,147 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: extras_tags_destroy - description: Delete a tag object. + operationId: ipam_asn_ranges_destroy + description: Delete a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this ASN range. required: true tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/webhooks/: + /api/ipam/asn-ranges/{id}/available-asns/: get: - operationId: extras_webhooks_list - description: Get a list of webhook objects. + operationId: ipam_asn_ranges_available_asns_list + description: Get a ASN object. parameters: - - in: query - name: ca_file_path - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ca_file_path__empty - schema: - type: boolean - - in: query - name: ca_file_path__ic + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ca_file_path__ie + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableASN' + description: '' + post: + operationId: ipam_asn_ranges_available_asns_create + description: Post a ASN object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASN' + description: '' + /api/ipam/asns/: + get: + operationId: ipam_asns_list + description: Get a list of ASN objects. + parameters: - in: query - name: ca_file_path__iew + name: asn schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__isw + name: asn__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: ca_file_path__n + name: asn__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nic + name: asn__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nie + name: asn__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__niew + name: asn__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nisw + name: asn__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -66522,108 +65895,6 @@ paths: type: string explode: true style: form - - in: query - name: http_content_type - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__empty - schema: - type: boolean - - in: query - name: http_content_type__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_content_type__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: http_method - schema: - type: array - items: - type: string - x-spec-enum-id: a12018571a034921 - explode: true - style: form - - in: query - name: http_method__n - schema: - type: array - items: - type: string - x-spec-enum-id: a12018571a034921 - explode: true - style: form - in: query name: id schema: @@ -66756,137 +66027,133 @@ paths: schema: type: string format: uuid - - in: query - name: name + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: boolean + type: string - in: query - name: name__ic + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__ie + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__iew + name: provider_id schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: name__isw + name: provider_id__n schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: name__n + name: q + schema: + type: string + description: Search + - in: query + name: rir schema: type: array items: type: string + description: RIR (slug) explode: true style: form - in: query - name: name__nic + name: rir__n schema: type: array items: type: string + description: RIR (slug) explode: true style: form - in: query - name: name__nie + name: rir_id schema: type: array items: - type: string + type: integer + description: RIR (ID) explode: true style: form - in: query - name: name__niew + name: rir_id__n schema: type: array items: - type: string + type: integer + description: RIR (ID) explode: true style: form - in: query - name: name__nisw + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: payload_url + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: secret + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: secret__empty - schema: - type: boolean - - in: query - name: secret__ic + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: secret__ie + name: tag schema: type: array items: @@ -66894,7 +66161,7 @@ paths: explode: true style: form - in: query - name: secret__iew + name: tag__n schema: type: array items: @@ -66902,71 +66169,77 @@ paths: explode: true style: form - in: query - name: secret__isw + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: secret__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: secret__nic + name: tenant_group schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: secret__nie + name: tenant_group__n schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: secret__niew + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: secret__nisw + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: ssl_verification - schema: - type: boolean - - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -66975,7 +66248,7 @@ paths: type: string format: uuid tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -66984,21 +66257,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWebhookList' + $ref: '#/components/schemas/PaginatedASNList' description: '' post: - operationId: extras_webhooks_create - description: Post a list of webhook objects. + operationId: ipam_asns_create + description: Post a list of ASN objects. tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -67008,25 +66281,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: extras_webhooks_bulk_update - description: Put a list of webhook objects. + operationId: ipam_asns_bulk_update + description: Put a list of ASN objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -67038,25 +66311,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: extras_webhooks_bulk_partial_update - description: Patch a list of webhook objects. + operationId: ipam_asns_bulk_partial_update + description: Patch a list of ASN objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -67068,25 +66341,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: extras_webhooks_bulk_destroy - description: Delete a list of webhook objects. + operationId: ipam_asns_bulk_destroy + description: Delete a list of ASN objects. tags: - - extras + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -67094,19 +66367,19 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/{id}/: + /api/ipam/asns/{id}/: get: - operationId: extras_webhooks_retrieve - description: Get a webhook object. + operationId: ipam_asns_retrieve + description: Get a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this ASN. required: true tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -67115,28 +66388,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: extras_webhooks_update - description: Put a webhook object. + operationId: ipam_asns_update + description: Put a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this ASN. required: true tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -67146,28 +66419,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: extras_webhooks_partial_update - description: Patch a webhook object. + operationId: ipam_asns_partial_update + description: Patch a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this ASN. required: true tags: - - extras + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedASNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67176,30 +66449,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: extras_webhooks_destroy - description: Delete a webhook object. + operationId: ipam_asns_destroy + description: Delete a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this ASN. required: true tags: - - extras + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/aggregates/: + /api/ipam/fhrp-group-assignments/: get: - operationId: ipam_aggregates_list - description: Get a list of aggregate objects. + operationId: ipam_fhrp_group_assignments_list + description: Get a list of FHRP group assignment objects. parameters: - in: query name: created @@ -67270,153 +66543,100 @@ paths: type: string format: uuid - in: query - name: date_added - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__empty - schema: - type: boolean - - in: query - name: date_added__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: date_added__gte + name: device schema: type: array items: type: string - format: date explode: true style: form - in: query - name: date_added__lt + name: device_id schema: type: array items: - type: string - format: date + type: integer + format: int32 explode: true style: form - in: query - name: date_added__lte + name: group_id schema: type: array items: - type: string - format: date + type: integer + description: Group (ID) explode: true style: form - in: query - name: date_added__n + name: group_id__n schema: type: array items: - type: string - format: date + type: integer + description: Group (ID) explode: true style: form - in: query - name: description + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: id__empty schema: type: boolean - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: interface_id schema: type: array items: @@ -67425,11 +66645,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: interface_id__empty schema: type: boolean - in: query - name: id__gt + name: interface_id__gt schema: type: array items: @@ -67438,7 +66658,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: interface_id__gte schema: type: array items: @@ -67447,7 +66667,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: interface_id__lt schema: type: array items: @@ -67456,7 +66676,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: interface_id__lte schema: type: array items: @@ -67465,7 +66685,7 @@ paths: explode: true style: form - in: query - name: id__n + name: interface_id__n schema: type: array items: @@ -67473,6 +66693,14 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_type + schema: + type: string + - in: query + name: interface_type__n + schema: + type: string - in: query name: last_updated schema: @@ -67560,111 +66788,70 @@ paths: schema: type: string - in: query - name: prefix - schema: - type: string - description: Prefix - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rir + name: priority schema: type: array items: - type: string - description: RIR (slug) + type: integer + format: int32 explode: true style: form - in: query - name: rir__n + name: priority__empty schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form + type: boolean - in: query - name: rir_id + name: priority__gt schema: type: array items: type: integer - description: RIR (ID) + format: int32 explode: true style: form - in: query - name: rir_id__n + name: priority__gte schema: type: array items: type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) + format: int32 explode: true style: form - in: query - name: tenant__n + name: priority__lt schema: type: array items: - type: string - description: Tenant (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tenant_group + name: priority__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tenant_group__n + name: priority__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: tenant_group_id__n + name: virtual_machine schema: type: array items: @@ -67672,30 +66859,14 @@ paths: explode: true style: form - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n + name: virtual_machine_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - ipam security: @@ -67706,21 +66877,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAggregateList' + $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' description: '' post: - operationId: ipam_aggregates_create - description: Post a list of aggregate objects. + operationId: ipam_fhrp_group_assignments_create + description: Post a list of FHRP group assignment objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -67730,11 +66901,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: ipam_aggregates_bulk_update - description: Put a list of aggregate objects. + operationId: ipam_fhrp_group_assignments_bulk_update + description: Put a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -67743,12 +66914,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -67760,11 +66931,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: ipam_aggregates_bulk_partial_update - description: Patch a list of aggregate objects. + operationId: ipam_fhrp_group_assignments_bulk_partial_update + description: Patch a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -67773,12 +66944,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -67790,11 +66961,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: ipam_aggregates_bulk_destroy - description: Delete a list of aggregate objects. + operationId: ipam_fhrp_group_assignments_bulk_destroy + description: Delete a list of FHRP group assignment objects. tags: - ipam requestBody: @@ -67803,12 +66974,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -67816,16 +66987,16 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/{id}/: + /api/ipam/fhrp-group-assignments/{id}/: get: - operationId: ipam_aggregates_retrieve - description: Get a aggregate object. + operationId: ipam_fhrp_group_assignments_retrieve + description: Get a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -67837,17 +67008,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: ipam_aggregates_update - description: Put a aggregate object. + operationId: ipam_fhrp_group_assignments_update + description: Put a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -67855,10 +67026,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -67868,17 +67039,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: ipam_aggregates_partial_update - description: Patch a aggregate object. + operationId: ipam_fhrp_group_assignments_partial_update + description: Patch a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -67886,10 +67057,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67898,17 +67069,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: ipam_aggregates_destroy - description: Delete a aggregate object. + operationId: ipam_fhrp_group_assignments_destroy + description: Delete a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - ipam @@ -67918,11 +67089,115 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/: + /api/ipam/fhrp-groups/: get: - operationId: ipam_asn_ranges_list - description: Get a list of ASN range objects. + operationId: ipam_fhrp_groups_list + description: Get a list of FHRP group objects. parameters: + - in: query + name: auth_key + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__empty + schema: + type: boolean + - in: query + name: auth_key__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_key__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + explode: true + style: form - in: query name: created schema: @@ -68076,7 +67351,7 @@ paths: explode: true style: form - in: query - name: end + name: group_id schema: type: array items: @@ -68085,11 +67360,11 @@ paths: explode: true style: form - in: query - name: end__empty + name: group_id__empty schema: type: boolean - in: query - name: end__gt + name: group_id__gt schema: type: array items: @@ -68098,7 +67373,7 @@ paths: explode: true style: form - in: query - name: end__gte + name: group_id__gte schema: type: array items: @@ -68107,7 +67382,7 @@ paths: explode: true style: form - in: query - name: end__lt + name: group_id__lt schema: type: array items: @@ -68116,7 +67391,7 @@ paths: explode: true style: form - in: query - name: end__lte + name: group_id__lte schema: type: array items: @@ -68125,7 +67400,7 @@ paths: explode: true style: form - in: query - name: end__n + name: group_id__n schema: type: array items: @@ -68362,188 +67637,36 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rir - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir__n - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir_id - schema: - type: array - items: - type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: rir_id__n - schema: - type: array - items: - type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic + name: protocol schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__nie + name: protocol__n schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__niew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__nisw + name: related_ip schema: type: array items: type: string explode: true style: form - - in: query - name: start - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__empty - schema: - type: boolean - - in: query - name: start__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: tag schema: @@ -68560,76 +67683,6 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: @@ -68645,21 +67698,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNRangeList' + $ref: '#/components/schemas/PaginatedFHRPGroupList' description: '' post: - operationId: ipam_asn_ranges_create - description: Post a list of ASN range objects. + operationId: ipam_fhrp_groups_create + description: Post a list of FHRP group objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -68669,11 +67722,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: ipam_asn_ranges_bulk_update - description: Put a list of ASN range objects. + operationId: ipam_fhrp_groups_bulk_update + description: Put a list of FHRP group objects. tags: - ipam requestBody: @@ -68682,12 +67735,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -68699,11 +67752,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: ipam_asn_ranges_bulk_partial_update - description: Patch a list of ASN range objects. + operationId: ipam_fhrp_groups_bulk_partial_update + description: Patch a list of FHRP group objects. tags: - ipam requestBody: @@ -68712,12 +67765,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -68729,11 +67782,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: ipam_asn_ranges_bulk_destroy - description: Delete a list of ASN range objects. + operationId: ipam_fhrp_groups_bulk_destroy + description: Delete a list of FHRP group objects. tags: - ipam requestBody: @@ -68742,12 +67795,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -68755,16 +67808,16 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/: + /api/ipam/fhrp-groups/{id}/: get: - operationId: ipam_asn_ranges_retrieve - description: Get a ASN range object. + operationId: ipam_fhrp_groups_retrieve + description: Get a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -68776,17 +67829,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: ipam_asn_ranges_update - description: Put a ASN range object. + operationId: ipam_fhrp_groups_update + description: Put a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -68794,10 +67847,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -68807,17 +67860,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: ipam_asn_ranges_partial_update - description: Patch a ASN range object. + operationId: ipam_fhrp_groups_partial_update + description: Patch a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -68825,10 +67878,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -68837,17 +67890,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: ipam_asn_ranges_destroy - description: Delete a ASN range object. + operationId: ipam_fhrp_groups_destroy + description: Delete a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this FHRP group. required: true tags: - ipam @@ -68857,73 +67910,26 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/available-asns/: + /api/ipam/ip-addresses/: get: - operationId: ipam_asn_ranges_available_asns_list - description: Get a ASN object. + operationId: ipam_ip_addresses_list + description: Get a list of IP address objects. parameters: - - in: path - name: id + - in: query + name: address schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableASN' - description: '' - post: - operationId: ipam_asn_ranges_available_asns_create - description: Post a ASN object. - parameters: - - in: path - name: id + type: array + items: + type: string + explode: true + style: form + - in: query + name: assigned schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - /api/ipam/asns/: - get: - operationId: ipam_asns_list - description: Get a list of ASN objects. - parameters: + type: boolean + description: Is assigned - in: query - name: asn + name: assigned_object_id schema: type: array items: @@ -68932,11 +67938,11 @@ paths: explode: true style: form - in: query - name: asn__empty + name: assigned_object_id__empty schema: type: boolean - in: query - name: asn__gt + name: assigned_object_id__gt schema: type: array items: @@ -68945,7 +67951,7 @@ paths: explode: true style: form - in: query - name: asn__gte + name: assigned_object_id__gte schema: type: array items: @@ -68954,7 +67960,7 @@ paths: explode: true style: form - in: query - name: asn__lt + name: assigned_object_id__lt schema: type: array items: @@ -68963,7 +67969,7 @@ paths: explode: true style: form - in: query - name: asn__lte + name: assigned_object_id__lte schema: type: array items: @@ -68972,7 +67978,7 @@ paths: explode: true style: form - in: query - name: asn__n + name: assigned_object_id__n schema: type: array items: @@ -68980,6 +67986,19 @@ paths: format: int32 explode: true style: form + - in: query + name: assigned_object_type + schema: + type: integer + - in: query + name: assigned_object_type__n + schema: + type: integer + - in: query + name: assigned_to_interface + schema: + type: boolean + description: Is assigned to an interface - in: query name: created schema: @@ -69132,6 +68151,129 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: dns_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__empty + schema: + type: boolean + - in: query + name: dns_name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: dns_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number + - in: query + name: fhrpgroup_id + schema: + type: array + items: + type: integer + description: FHRP group (ID) + explode: true + style: form + - in: query + name: fhrpgroup_id__n + schema: + type: array + items: + type: integer + description: FHRP group (ID) + explode: true + style: form - in: query name: id schema: @@ -69190,6 +68332,42 @@ paths: format: int32 explode: true style: form + - in: query + name: interface + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -69259,11 +68437,46 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mask_length + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: nat_inside_id + schema: + type: array + items: + type: integer + description: NAT inside IP address (ID) + explode: true + style: form + - in: query + name: nat_inside_id__n + schema: + type: array + items: + type: integer + description: NAT inside IP address (ID) + explode: true + style: form - name: offset required: false in: query @@ -69277,120 +68490,181 @@ paths: schema: type: string - in: query - name: provider + name: parent schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: present_in_vrf + schema: + type: string + - in: query + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string - description: Provider (slug) + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP explode: true style: form - in: query - name: provider_id + name: role__n + schema: + type: array + items: + type: string + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP + explode: true + style: form + - in: query + name: service_id schema: type: array items: type: integer - description: Provider (ID) + description: Service (ID) explode: true style: form - in: query - name: provider_id__n + name: service_id__n schema: type: array items: type: integer - description: Provider (ID) + description: Service (ID) explode: true style: form - in: query - name: q + name: status schema: - type: string - description: Search + type: array + items: + type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP + explode: true + style: form - in: query - name: rir + name: status__n schema: type: array items: type: string - description: RIR (slug) + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: rir__n + name: tag schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir_id + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group schema: type: array items: type: integer - description: RIR (ID) + description: Tenant Group (slug) explode: true style: form - in: query - name: rir_id__n + name: tenant_group__n schema: type: array items: type: integer - description: RIR (ID) + description: Tenant Group (slug) explode: true style: form - in: query - name: site + name: tenant_group_id schema: type: array items: - type: string - description: Site (slug) + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: site__n + name: tenant_group_id__n schema: type: array items: - type: string - description: Site (slug) + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: site_id + name: tenant_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site_id__n + name: tenant_id__n schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -69398,88 +68672,92 @@ paths: explode: true style: form - in: query - name: tag__n + name: virtual_machine_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tenant + name: vminterface schema: type: array items: type: string - description: Tenant (slug) + description: VM interface (name) explode: true style: form - in: query - name: tenant__n + name: vminterface__n schema: type: array items: type: string - description: Tenant (slug) + description: VM interface (name) explode: true style: form - in: query - name: tenant_group + name: vminterface_id schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: tenant_group__n + name: vminterface_id__n schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: tenant_group_id + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tenant_group_id__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tenant_id + name: vrf_id schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: VRF explode: true style: form - in: query - name: tenant_id__n + name: vrf_id__n schema: type: array items: type: integer nullable: true - description: Tenant (ID) + description: VRF explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - ipam security: @@ -69490,21 +68768,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNList' + $ref: '#/components/schemas/PaginatedIPAddressList' description: '' post: - operationId: ipam_asns_create - description: Post a list of ASN objects. + operationId: ipam_ip_addresses_create + description: Post a list of IP address objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -69514,11 +68792,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: ipam_asns_bulk_update - description: Put a list of ASN objects. + operationId: ipam_ip_addresses_bulk_update + description: Put a list of IP address objects. tags: - ipam requestBody: @@ -69527,12 +68805,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -69544,11 +68822,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: ipam_asns_bulk_partial_update - description: Patch a list of ASN objects. + operationId: ipam_ip_addresses_bulk_partial_update + description: Patch a list of IP address objects. tags: - ipam requestBody: @@ -69557,12 +68835,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -69574,11 +68852,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: ipam_asns_bulk_destroy - description: Delete a list of ASN objects. + operationId: ipam_ip_addresses_bulk_destroy + description: Delete a list of IP address objects. tags: - ipam requestBody: @@ -69587,12 +68865,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -69600,16 +68878,16 @@ paths: responses: '204': description: No response body - /api/ipam/asns/{id}/: + /api/ipam/ip-addresses/{id}/: get: - operationId: ipam_asns_retrieve - description: Get a ASN object. + operationId: ipam_ip_addresses_retrieve + description: Get a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -69621,17 +68899,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: ipam_asns_update - description: Put a ASN object. + operationId: ipam_ip_addresses_update + description: Put a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -69639,10 +68917,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -69652,17 +68930,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: ipam_asns_partial_update - description: Patch a ASN object. + operationId: ipam_ip_addresses_partial_update + description: Patch a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -69670,10 +68948,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -69682,17 +68960,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: ipam_asns_destroy - description: Delete a ASN object. + operationId: ipam_ip_addresses_destroy + description: Delete a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN. + description: A unique integer value identifying this IP address. required: true tags: - ipam @@ -69702,11 +68980,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/: + /api/ipam/ip-ranges/: get: - operationId: ipam_fhrp_group_assignments_list - description: Get a list of FHRP group assignment objects. + operationId: ipam_ip_ranges_list + description: Get a list of IP range objects. parameters: + - in: query + name: contains + schema: + type: string + description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -69776,7 +69059,7 @@ paths: type: string format: uuid - in: query - name: device + name: description schema: type: array items: @@ -69784,92 +69067,95 @@ paths: explode: true style: form - in: query - name: device_id + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: group_id + name: description__ie schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: description__iew schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: id + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: end_address schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_id + name: family + schema: + type: number + - in: query + name: id schema: type: array items: @@ -69878,11 +69164,11 @@ paths: explode: true style: form - in: query - name: interface_id__empty + name: id__empty schema: type: boolean - in: query - name: interface_id__gt + name: id__gt schema: type: array items: @@ -69891,7 +69177,7 @@ paths: explode: true style: form - in: query - name: interface_id__gte + name: id__gte schema: type: array items: @@ -69900,7 +69186,7 @@ paths: explode: true style: form - in: query - name: interface_id__lt + name: id__lt schema: type: array items: @@ -69909,7 +69195,7 @@ paths: explode: true style: form - in: query - name: interface_id__lte + name: id__lte schema: type: array items: @@ -69918,7 +69204,7 @@ paths: explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: @@ -69926,14 +69212,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_type - schema: - type: string - - in: query - name: interface_type__n - schema: - type: string - in: query name: last_updated schema: @@ -70003,6 +69281,10 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean - in: query name: modified_by_request schema: @@ -70021,7 +69303,58 @@ paths: schema: type: string - in: query - name: priority + name: parent + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: size schema: type: array items: @@ -70030,11 +69363,11 @@ paths: explode: true style: form - in: query - name: priority__empty + name: size__empty schema: type: boolean - in: query - name: priority__gt + name: size__gt schema: type: array items: @@ -70043,7 +69376,7 @@ paths: explode: true style: form - in: query - name: priority__gte + name: size__gte schema: type: array items: @@ -70052,7 +69385,7 @@ paths: explode: true style: form - in: query - name: priority__lt + name: size__lt schema: type: array items: @@ -70061,7 +69394,7 @@ paths: explode: true style: form - in: query - name: priority__lte + name: size__lte schema: type: array items: @@ -70070,7 +69403,7 @@ paths: explode: true style: form - in: query - name: priority__n + name: size__n schema: type: array items: @@ -70078,26 +69411,169 @@ paths: format: int32 explode: true style: form + - in: query + name: start_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid - in: query - name: virtual_machine + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: virtual_machine_id + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id schema: type: array items: type: integer - format: int32 + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF explode: true style: form tags: @@ -70110,21 +69586,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' + $ref: '#/components/schemas/PaginatedIPRangeList' description: '' post: - operationId: ipam_fhrp_group_assignments_create - description: Post a list of FHRP group assignment objects. + operationId: ipam_ip_ranges_create + description: Post a list of IP range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -70134,11 +69610,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: ipam_fhrp_group_assignments_bulk_update - description: Put a list of FHRP group assignment objects. + operationId: ipam_ip_ranges_bulk_update + description: Put a list of IP range objects. tags: - ipam requestBody: @@ -70147,12 +69623,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -70164,11 +69640,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: ipam_fhrp_group_assignments_bulk_partial_update - description: Patch a list of FHRP group assignment objects. + operationId: ipam_ip_ranges_bulk_partial_update + description: Patch a list of IP range objects. tags: - ipam requestBody: @@ -70177,12 +69653,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -70194,11 +69670,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: ipam_fhrp_group_assignments_bulk_destroy - description: Delete a list of FHRP group assignment objects. + operationId: ipam_ip_ranges_bulk_destroy + description: Delete a list of IP range objects. tags: - ipam requestBody: @@ -70207,12 +69683,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -70220,16 +69696,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/{id}/: + /api/ipam/ip-ranges/{id}/: get: - operationId: ipam_fhrp_group_assignments_retrieve - description: Get a FHRP group assignment object. + operationId: ipam_ip_ranges_retrieve + description: Get a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -70241,17 +69717,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: ipam_fhrp_group_assignments_update - description: Put a FHRP group assignment object. + operationId: ipam_ip_ranges_update + description: Put a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -70259,10 +69735,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -70272,17 +69748,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: ipam_fhrp_group_assignments_partial_update - description: Patch a FHRP group assignment object. + operationId: ipam_ip_ranges_partial_update + description: Patch a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -70290,10 +69766,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -70302,17 +69778,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: ipam_fhrp_group_assignments_destroy - description: Delete a FHRP group assignment object. + operationId: ipam_ip_ranges_destroy + description: Delete a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this IP range. required: true tags: - ipam @@ -70322,117 +69798,195 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/: + /api/ipam/ip-ranges/{id}/available-ips/: get: - operationId: ipam_fhrp_groups_list - description: Get a list of FHRP group objects. + operationId: ipam_ip_ranges_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_ip_ranges_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/: + get: + operationId: ipam_prefixes_list + description: Get a list of prefix objects. parameters: - in: query - name: auth_key + name: children schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: auth_key__empty + name: children__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: auth_key__ic + name: children__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: auth_key__ie + name: children__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: auth_key__iew + name: children__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: auth_key__isw + name: children__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: auth_key__n + name: children__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: auth_key__nic + name: contains + schema: + type: string + description: Prefixes which contain this prefix or IP + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_key__nie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_key__niew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_key__nisw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_type + name: created__lt schema: type: array items: type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type + format: date-time explode: true style: form - in: query - name: auth_type__n + name: created__lte schema: type: array items: type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type + format: date-time explode: true style: form - in: query - name: created + name: created__n schema: type: array items: @@ -70441,64 +69995,73 @@ paths: explode: true style: form - in: query - name: created__empty + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: depth schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: depth__empty schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: depth__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: depth__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: depth__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: depth__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: depth__n schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: description schema: @@ -70584,7 +70147,11 @@ paths: explode: true style: form - in: query - name: group_id + name: family + schema: + type: number + - in: query + name: id schema: type: array items: @@ -70593,11 +70160,11 @@ paths: explode: true style: form - in: query - name: group_id__empty + name: id__empty schema: type: boolean - in: query - name: group_id__gt + name: id__gt schema: type: array items: @@ -70606,7 +70173,7 @@ paths: explode: true style: form - in: query - name: group_id__gte + name: id__gte schema: type: array items: @@ -70615,7 +70182,7 @@ paths: explode: true style: form - in: query - name: group_id__lt + name: id__lt schema: type: array items: @@ -70624,7 +70191,7 @@ paths: explode: true style: form - in: query - name: group_id__lte + name: id__lte schema: type: array items: @@ -70633,7 +70200,7 @@ paths: explode: true style: form - in: query - name: group_id__n + name: id__n schema: type: array items: @@ -70642,20 +70209,84 @@ paths: explode: true style: form - in: query - name: id + name: is_pool + schema: + type: boolean + - in: query + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: mark_utilized schema: type: boolean - in: query - name: id__gt + name: mask_length schema: type: array items: @@ -70664,153 +70295,221 @@ paths: explode: true style: form - in: query - name: id__gte + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: prefix + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: present_in_vrf + schema: + type: string + - in: query + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: id__lt + name: region__n schema: type: array items: type: integer - format: int32 + description: Region (slug) explode: true style: form - in: query - name: id__lte + name: region_id schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: id__n + name: region_id__n schema: type: array items: type: integer - format: int32 + description: Region (ID) explode: true style: form - in: query - name: last_updated + name: role schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__empty + name: role__n schema: type: array items: type: string - format: date-time + description: Role (slug) explode: true style: form - in: query - name: last_updated__gt + name: role_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: last_updated__gte + name: role_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: last_updated__lt + name: site schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__lte + name: site__n schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__n + name: site_group schema: type: array items: - type: string - format: date-time + type: integer + description: Site group (slug) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: site_group__n schema: - type: integer + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form - in: query - name: modified_by_request + name: site_group_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form - in: query - name: name + name: site_group_id__n schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query - name: name__empty + name: site_id schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form - in: query - name: name__ic + name: site_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: name__ie + name: status schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: name__iew + name: status__n schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: name__isw + name: tag schema: type: array items: @@ -70818,7 +70517,7 @@ paths: explode: true style: form - in: query - name: name__n + name: tag__n schema: type: array items: @@ -70826,101 +70525,191 @@ paths: explode: true style: form - in: query - name: name__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__niew + name: tenant_group schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: name__nisw + name: tenant_group__n schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: tenant_group_id schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n schema: - type: string + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form - in: query - name: protocol + name: tenant_id schema: type: array items: - type: string - x-spec-enum-id: 40dc831c689b4b78 + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: protocol__n + name: tenant_id__n schema: type: array items: - type: string - x-spec-enum-id: 40dc831c689b4b78 + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: q + name: updated_by_request schema: type: string - description: Search + format: uuid - in: query - name: related_ip + name: vlan_id schema: type: array items: - type: string + type: integer + nullable: true + description: VLAN (ID) explode: true style: form - in: query - name: tag + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: tag__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: updated_by_request + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: within schema: type: string - format: uuid + description: Within prefix + - in: query + name: within_include + schema: + type: string + description: Within and including prefix tags: - ipam security: @@ -70931,21 +70720,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupList' + $ref: '#/components/schemas/PaginatedPrefixList' description: '' post: - operationId: ipam_fhrp_groups_create - description: Post a list of FHRP group objects. + operationId: ipam_prefixes_create + description: Post a list of prefix objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -70955,11 +70744,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: ipam_fhrp_groups_bulk_update - description: Put a list of FHRP group objects. + operationId: ipam_prefixes_bulk_update + description: Put a list of prefix objects. tags: - ipam requestBody: @@ -70968,12 +70757,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -70985,11 +70774,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: ipam_fhrp_groups_bulk_partial_update - description: Patch a list of FHRP group objects. + operationId: ipam_prefixes_bulk_partial_update + description: Patch a list of prefix objects. tags: - ipam requestBody: @@ -70998,12 +70787,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -71015,11 +70804,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: ipam_fhrp_groups_bulk_destroy - description: Delete a list of FHRP group objects. + operationId: ipam_prefixes_bulk_destroy + description: Delete a list of prefix objects. tags: - ipam requestBody: @@ -71028,12 +70817,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -71041,16 +70830,16 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/{id}/: + /api/ipam/prefixes/{id}/: get: - operationId: ipam_fhrp_groups_retrieve - description: Get a FHRP group object. + operationId: ipam_prefixes_retrieve + description: Get a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -71062,17 +70851,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: ipam_fhrp_groups_update - description: Put a FHRP group object. + operationId: ipam_prefixes_update + description: Put a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -71080,10 +70869,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -71093,17 +70882,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: ipam_fhrp_groups_partial_update - description: Patch a FHRP group object. + operationId: ipam_prefixes_partial_update + description: Patch a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -71111,10 +70900,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -71123,17 +70912,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: ipam_fhrp_groups_destroy - description: Delete a FHRP group object. + operationId: ipam_prefixes_destroy + description: Delete a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this prefix. required: true tags: - ipam @@ -71143,95 +70932,131 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/: + /api/ipam/prefixes/{id}/available-ips/: get: - operationId: ipam_ip_addresses_list - description: Get a list of IP address objects. + operationId: ipam_prefixes_available_ips_list + description: Get a IP address object. parameters: - - in: query - name: address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: assigned + - in: path + name: id schema: - type: boolean - description: Is assigned - - in: query - name: assigned_object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: assigned_object_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: assigned_object_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: assigned_object_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: assigned_object_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: assigned_object_type + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_prefixes_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id schema: type: integer - - in: query - name: assigned_object_type__n + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/{id}/available-prefixes/: + get: + operationId: ipam_prefixes_available_prefixes_list + description: Get a prefix object. + parameters: + - in: path + name: id schema: type: integer - - in: query - name: assigned_to_interface + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailablePrefix' + description: '' + post: + operationId: ipam_prefixes_available_prefixes_create + description: Post a prefix object. + parameters: + - in: path + name: id schema: - type: boolean - description: Is assigned to an interface + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Prefix' + description: '' + /api/ipam/rirs/: + get: + operationId: ipam_rirs_list + description: Get a list of RIR objects. + parameters: - in: query name: created schema: @@ -71384,129 +71209,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: dns_name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__empty - schema: - type: boolean - - in: query - name: dns_name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: dns_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: family - schema: - type: number - - in: query - name: fhrpgroup_id - schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form - - in: query - name: fhrpgroup_id__n - schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form - in: query name: id schema: @@ -71566,41 +71268,9 @@ paths: explode: true style: form - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n + name: is_private schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form + type: boolean - in: query name: last_updated schema: @@ -71670,60 +71340,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: nat_inside_id - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - in: query - name: nat_inside_id__n - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent + name: name schema: type: array items: @@ -71731,78 +71354,43 @@ paths: explode: true style: form - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q + name: name__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: name__ic schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP explode: true style: form - in: query - name: role__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP - explode: true - style: form - - in: query - name: service_id - schema: - type: array - items: - type: integer - description: Service (ID) - explode: true - style: form - - in: query - name: service_id__n - schema: - type: array - items: - type: integer - description: Service (ID) explode: true style: form - in: query - name: status + name: name__iew schema: type: array items: type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP explode: true style: form - in: query - name: status__n + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP explode: true style: form - in: query - name: tag + name: name__n schema: type: array items: @@ -71810,7 +71398,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nic schema: type: array items: @@ -71818,41 +71406,48 @@ paths: explode: true style: form - in: query - name: tenant + name: name__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tenant_group__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: tenant_group_id + name: slug schema: type: array items: @@ -71860,40 +71455,27 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: tenant_id + name: slug__ic schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: slug__ie schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: slug__iew schema: type: array items: @@ -71901,92 +71483,74 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: vminterface + name: slug__n schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface__n + name: slug__nic schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id + name: slug__nie schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: slug__niew schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vrf + name: slug__nisw schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: tag__n schema: type: array items: - type: integer - nullable: true - description: VRF + type: string explode: true style: form - in: query - name: vrf_id__n + name: updated_by_request schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form + type: string + format: uuid tags: - ipam security: @@ -71997,21 +71561,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPAddressList' + $ref: '#/components/schemas/PaginatedRIRList' description: '' post: - operationId: ipam_ip_addresses_create - description: Post a list of IP address objects. + operationId: ipam_rirs_create + description: Post a list of RIR objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -72021,11 +71585,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: ipam_ip_addresses_bulk_update - description: Put a list of IP address objects. + operationId: ipam_rirs_bulk_update + description: Put a list of RIR objects. tags: - ipam requestBody: @@ -72034,12 +71598,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -72051,11 +71615,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: ipam_ip_addresses_bulk_partial_update - description: Patch a list of IP address objects. + operationId: ipam_rirs_bulk_partial_update + description: Patch a list of RIR objects. tags: - ipam requestBody: @@ -72064,12 +71628,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -72081,11 +71645,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: ipam_ip_addresses_bulk_destroy - description: Delete a list of IP address objects. + operationId: ipam_rirs_bulk_destroy + description: Delete a list of RIR objects. tags: - ipam requestBody: @@ -72094,12 +71658,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -72107,16 +71671,16 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/{id}/: + /api/ipam/rirs/{id}/: get: - operationId: ipam_ip_addresses_retrieve - description: Get a IP address object. + operationId: ipam_rirs_retrieve + description: Get a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -72128,17 +71692,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: ipam_ip_addresses_update - description: Put a IP address object. + operationId: ipam_rirs_update + description: Put a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -72146,10 +71710,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -72159,17 +71723,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: ipam_ip_addresses_partial_update - description: Patch a IP address object. + operationId: ipam_rirs_partial_update + description: Patch a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -72177,10 +71741,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedRIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedRIRRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -72189,17 +71753,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: ipam_ip_addresses_destroy - description: Delete a IP address object. + operationId: ipam_rirs_destroy + description: Delete a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this RIR. required: true tags: - ipam @@ -72209,16 +71773,11 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/: + /api/ipam/roles/: get: - operationId: ipam_ip_ranges_list - description: Get a list of IP range objects. + operationId: ipam_roles_list + description: Get a list of role objects. parameters: - - in: query - name: contains - schema: - type: string - description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -72371,18 +71930,6 @@ paths: type: string explode: true style: form - - in: query - name: end_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: family - schema: - type: number - in: query name: id schema: @@ -72510,29 +72057,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_utilized - schema: - type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: name schema: type: array items: @@ -72540,108 +72071,112 @@ paths: explode: true style: form - in: query - name: q + name: name__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: name__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: name__ie schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: name__iew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: name__isw schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: size + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty - schema: - type: boolean - - in: query - name: size__gt + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: size__n + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: start_address + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -72649,27 +72184,23 @@ paths: explode: true style: form - in: query - name: status + name: slug__ie schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range explode: true style: form - in: query - name: status__n + name: slug__iew schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range explode: true style: form - in: query - name: tag + name: slug__isw schema: type: array items: @@ -72677,7 +72208,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__n schema: type: array items: @@ -72685,25 +72216,23 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__niew schema: type: array items: @@ -72711,7 +72240,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: slug__nisw schema: type: array items: @@ -72719,7 +72248,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: tag schema: type: array items: @@ -72727,7 +72256,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: tag__n schema: type: array items: @@ -72735,70 +72264,66 @@ paths: explode: true style: form - in: query - name: tenant_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vrf + name: weight__gte schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: vrf__n + name: weight__lt schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: vrf_id + name: weight__lte schema: type: array items: type: integer - nullable: true - description: VRF + format: int32 explode: true style: form - in: query - name: vrf_id__n + name: weight__n schema: type: array items: type: integer - nullable: true - description: VRF + format: int32 explode: true style: form tags: @@ -72811,21 +72336,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPRangeList' + $ref: '#/components/schemas/PaginatedRoleList' description: '' post: - operationId: ipam_ip_ranges_create - description: Post a list of IP range objects. + operationId: ipam_roles_create + description: Post a list of role objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -72835,11 +72360,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/Role' description: '' put: - operationId: ipam_ip_ranges_bulk_update - description: Put a list of IP range objects. + operationId: ipam_roles_bulk_update + description: Put a list of role objects. tags: - ipam requestBody: @@ -72848,12 +72373,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -72865,11 +72390,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: ipam_ip_ranges_bulk_partial_update - description: Patch a list of IP range objects. + operationId: ipam_roles_bulk_partial_update + description: Patch a list of role objects. tags: - ipam requestBody: @@ -72878,12 +72403,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -72895,11 +72420,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: ipam_ip_ranges_bulk_destroy - description: Delete a list of IP range objects. + operationId: ipam_roles_bulk_destroy + description: Delete a list of role objects. tags: - ipam requestBody: @@ -72908,12 +72433,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -72921,16 +72446,16 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/: + /api/ipam/roles/{id}/: get: - operationId: ipam_ip_ranges_retrieve - description: Get a IP range object. + operationId: ipam_roles_retrieve + description: Get a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -72942,17 +72467,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/Role' description: '' put: - operationId: ipam_ip_ranges_update - description: Put a IP range object. + operationId: ipam_roles_update + description: Put a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -72960,10 +72485,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -72973,17 +72498,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: ipam_ip_ranges_partial_update - description: Patch a IP range object. + operationId: ipam_roles_partial_update + description: Patch a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -72991,10 +72516,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -73003,17 +72528,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: ipam_ip_ranges_destroy - description: Delete a IP range object. + operationId: ipam_roles_destroy + description: Delete a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this role. required: true tags: - ipam @@ -73023,420 +72548,389 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/available-ips/: - get: - operationId: ipam_ip_ranges_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_ip_ranges_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/: + /api/ipam/route-targets/: get: - operationId: ipam_prefixes_list - description: Get a list of prefix objects. + operationId: ipam_route_targets_list + description: Get a list of route target objects. parameters: - in: query - name: children + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: children__empty + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: children__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: children__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: children__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: children__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: children__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: contains + name: created_by_request schema: type: string - description: Prefixes which contain this prefix or IP + format: uuid - in: query - name: created + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: depth + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: depth__empty + name: description__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: depth__gt + name: description__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: depth__gte + name: exporting_l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) explode: true style: form - in: query - name: depth__lt + name: exporting_l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) explode: true style: form - in: query - name: depth__lte + name: exporting_l2vpn_id schema: type: array items: type: integer - format: int32 + description: Exporting L2VPN explode: true style: form - in: query - name: depth__n + name: exporting_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Exporting L2VPN explode: true style: form - in: query - name: description + name: exporting_vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: exporting_vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) explode: true style: form - in: query - name: description__ie + name: exporting_vrf_id schema: type: array items: - type: string + type: integer + description: Exporting VRF explode: true style: form - in: query - name: description__iew + name: exporting_vrf_id__n schema: type: array items: - type: string + type: integer + description: Exporting VRF explode: true style: form - in: query - name: description__isw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: importing_l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) explode: true style: form - in: query - name: id__empty + name: importing_l2vpn__n schema: - type: boolean + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) + explode: true + style: form - in: query - name: id__gt + name: importing_l2vpn_id schema: type: array items: type: integer - format: int32 + description: Importing L2VPN explode: true style: form - in: query - name: id__gte + name: importing_l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: Importing L2VPN explode: true style: form - in: query - name: id__lt + name: importing_vrf schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: id__lte + name: importing_vrf__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: id__n + name: importing_vrf_id schema: type: array items: type: integer - format: int32 + description: Importing VRF explode: true style: form - in: query - name: is_pool + name: importing_vrf_id__n schema: - type: boolean + type: array + items: + type: integer + description: Importing VRF + explode: true + style: form - in: query name: last_updated schema: @@ -73506,75 +73000,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_utilized - schema: - type: boolean - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: prefix - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: present_in_vrf - schema: - type: string - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region__n + name: name schema: type: array items: @@ -73582,15 +73014,11 @@ paths: explode: true style: form - in: query - name: region_id + name: name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: region_id__n + name: name__ic schema: type: array items: @@ -73598,63 +73026,39 @@ paths: explode: true style: form - in: query - name: role + name: name__ie schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: name__iew schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) explode: true style: form - in: query - name: site + name: name__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: name__nic schema: type: array items: @@ -73662,7 +73066,7 @@ paths: explode: true style: form - in: query - name: site_group__n + name: name__nie schema: type: array items: @@ -73670,7 +73074,7 @@ paths: explode: true style: form - in: query - name: site_group_id + name: name__niew schema: type: array items: @@ -73678,53 +73082,30 @@ paths: explode: true style: form - in: query - name: site_group_id__n + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: status + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix - explode: true - style: form + type: string - in: query - name: status__n + name: q schema: - type: array - items: - type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -73764,7 +73145,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query @@ -73772,7 +73154,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query @@ -73780,7 +73163,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query @@ -73788,7 +73172,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query @@ -73816,113 +73201,6 @@ paths: schema: type: string format: uuid - - in: query - name: vlan_id - schema: - type: array - items: - type: integer - nullable: true - description: VLAN (ID) - explode: true - style: form - - in: query - name: vlan_id__n - schema: - type: array - items: - type: integer - nullable: true - description: VLAN (ID) - explode: true - style: form - - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form - - in: query - name: within - schema: - type: string - description: Within prefix - - in: query - name: within_include - schema: - type: string - description: Within and including prefix tags: - ipam security: @@ -73933,21 +73211,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPrefixList' + $ref: '#/components/schemas/PaginatedRouteTargetList' description: '' post: - operationId: ipam_prefixes_create - description: Post a list of prefix objects. + operationId: ipam_route_targets_create + description: Post a list of route target objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -73957,11 +73235,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: ipam_prefixes_bulk_update - description: Put a list of prefix objects. + operationId: ipam_route_targets_bulk_update + description: Put a list of route target objects. tags: - ipam requestBody: @@ -73970,12 +73248,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -73987,11 +73265,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: ipam_prefixes_bulk_partial_update - description: Patch a list of prefix objects. + operationId: ipam_route_targets_bulk_partial_update + description: Patch a list of route target objects. tags: - ipam requestBody: @@ -74000,12 +73278,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -74017,11 +73295,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: ipam_prefixes_bulk_destroy - description: Delete a list of prefix objects. + operationId: ipam_route_targets_bulk_destroy + description: Delete a list of route target objects. tags: - ipam requestBody: @@ -74030,12 +73308,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -74043,16 +73321,16 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/: + /api/ipam/route-targets/{id}/: get: - operationId: ipam_prefixes_retrieve - description: Get a prefix object. + operationId: ipam_route_targets_retrieve + description: Get a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -74064,17 +73342,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: ipam_prefixes_update - description: Put a prefix object. + operationId: ipam_route_targets_update + description: Put a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -74082,10 +73360,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -74095,17 +73373,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: ipam_prefixes_partial_update - description: Patch a prefix object. + operationId: ipam_route_targets_partial_update + description: Patch a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -74113,10 +73391,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74125,17 +73403,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: ipam_prefixes_destroy - description: Delete a prefix object. + operationId: ipam_route_targets_destroy + description: Delete a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this route target. required: true tags: - ipam @@ -74145,130 +73423,10 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/available-ips/: - get: - operationId: ipam_prefixes_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_prefixes_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/{id}/available-prefixes/: - get: - operationId: ipam_prefixes_available_prefixes_list - description: Get a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailablePrefix' - description: '' - post: - operationId: ipam_prefixes_available_prefixes_create - description: Post a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - /api/ipam/rirs/: + /api/ipam/service-templates/: get: - operationId: ipam_rirs_list - description: Get a list of RIR objects. + operationId: ipam_service_templates_list + description: Get a list of service template objects. parameters: - in: query name: created @@ -74480,10 +73638,6 @@ paths: format: int32 explode: true style: form - - in: query - name: is_private - schema: - type: boolean - in: query name: last_updated schema: @@ -74655,94 +73809,42 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic + name: port schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: slug__nie + name: protocol schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: slug__niew + name: protocol__n schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: slug__nisw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: tag schema: @@ -74774,21 +73876,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRIRList' + $ref: '#/components/schemas/PaginatedServiceTemplateList' description: '' post: - operationId: ipam_rirs_create - description: Post a list of RIR objects. + operationId: ipam_service_templates_create + description: Post a list of service template objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -74798,11 +73900,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: ipam_rirs_bulk_update - description: Put a list of RIR objects. + operationId: ipam_service_templates_bulk_update + description: Put a list of service template objects. tags: - ipam requestBody: @@ -74811,12 +73913,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -74828,11 +73930,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: ipam_rirs_bulk_partial_update - description: Patch a list of RIR objects. + operationId: ipam_service_templates_bulk_partial_update + description: Patch a list of service template objects. tags: - ipam requestBody: @@ -74841,12 +73943,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -74858,11 +73960,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: ipam_rirs_bulk_destroy - description: Delete a list of RIR objects. + operationId: ipam_service_templates_bulk_destroy + description: Delete a list of service template objects. tags: - ipam requestBody: @@ -74871,12 +73973,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -74884,16 +73986,16 @@ paths: responses: '204': description: No response body - /api/ipam/rirs/{id}/: + /api/ipam/service-templates/{id}/: get: - operationId: ipam_rirs_retrieve - description: Get a RIR object. + operationId: ipam_service_templates_retrieve + description: Get a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -74905,17 +74007,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: ipam_rirs_update - description: Put a RIR object. + operationId: ipam_service_templates_update + description: Put a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -74923,10 +74025,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -74936,17 +74038,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: ipam_rirs_partial_update - description: Patch a RIR object. + operationId: ipam_service_templates_partial_update + description: Patch a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -74954,10 +74056,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74966,17 +74068,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: ipam_rirs_destroy - description: Delete a RIR object. + operationId: ipam_service_templates_destroy + description: Delete a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this service template. required: true tags: - ipam @@ -74986,10 +74088,10 @@ paths: responses: '204': description: No response body - /api/ipam/roles/: + /api/ipam/services/: get: - operationId: ipam_roles_list - description: Get a list of role objects. + operationId: ipam_services_list + description: Get a list of service objects. parameters: - in: query name: created @@ -75143,6 +74245,46 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form - in: query name: id schema: @@ -75201,6 +74343,78 @@ paths: format: int32 explode: true style: form + - in: query + name: ip_address + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ip_address__n + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ip_address_id + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form + - in: query + name: ip_address_id__n + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form + - in: query + name: ipaddress + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ipaddress__n + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ipaddress_id + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form + - in: query + name: ipaddress_id__n + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -75371,13 +74585,45 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: port + schema: + type: number + - in: query + name: protocol + schema: + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' + - in: query + name: protocol__n + schema: + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query name: q schema: type: string description: Search - in: query - name: slug + name: tag schema: type: array items: @@ -75385,11 +74631,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: tag__n schema: type: array items: @@ -75397,146 +74639,46 @@ paths: explode: true style: form - in: query - name: slug__ie + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: slug__iew + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: virtual_machine_id schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: weight__lte - schema: - type: array - items: - type: integer - format: int32 + nullable: true + description: Virtual machine (ID) explode: true style: form - in: query - name: weight__n + name: virtual_machine_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Virtual machine (ID) explode: true style: form tags: @@ -75549,21 +74691,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRoleList' + $ref: '#/components/schemas/PaginatedServiceList' description: '' post: - operationId: ipam_roles_create - description: Post a list of role objects. + operationId: ipam_services_create + description: Post a list of service objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -75573,11 +74715,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Service' description: '' put: - operationId: ipam_roles_bulk_update - description: Put a list of role objects. + operationId: ipam_services_bulk_update + description: Put a list of service objects. tags: - ipam requestBody: @@ -75586,12 +74728,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -75603,11 +74745,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: ipam_roles_bulk_partial_update - description: Patch a list of role objects. + operationId: ipam_services_bulk_partial_update + description: Patch a list of service objects. tags: - ipam requestBody: @@ -75616,12 +74758,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -75633,11 +74775,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: ipam_roles_bulk_destroy - description: Delete a list of role objects. + operationId: ipam_services_bulk_destroy + description: Delete a list of service objects. tags: - ipam requestBody: @@ -75646,12 +74788,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -75659,16 +74801,16 @@ paths: responses: '204': description: No response body - /api/ipam/roles/{id}/: + /api/ipam/services/{id}/: get: - operationId: ipam_roles_retrieve - description: Get a role object. + operationId: ipam_services_retrieve + description: Get a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -75680,17 +74822,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Service' description: '' put: - operationId: ipam_roles_update - description: Put a role object. + operationId: ipam_services_update + description: Put a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -75698,10 +74840,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -75711,17 +74853,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: ipam_roles_partial_update - description: Patch a role object. + operationId: ipam_services_partial_update + description: Patch a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -75729,10 +74871,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -75741,17 +74883,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: ipam_roles_destroy - description: Delete a role object. + operationId: ipam_services_destroy + description: Delete a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this service. required: true tags: - ipam @@ -75761,11 +74903,23 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/: + /api/ipam/vlan-groups/: get: - operationId: ipam_route_targets_list - description: Get a list of route target objects. + operationId: ipam_vlan_groups_list + description: Get a list of VLAN group objects. parameters: + - in: query + name: cluster + schema: + type: integer + - in: query + name: cluster_group + schema: + type: integer + - in: query + name: clustergroup + schema: + type: integer - in: query name: created schema: @@ -75919,300 +75073,252 @@ paths: explode: true style: form - in: query - name: exporting_l2vpn + name: id schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: exporting_l2vpn__n + name: id__empty schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) - explode: true - style: form + type: boolean - in: query - name: exporting_l2vpn_id + name: id__gt schema: type: array items: type: integer - description: Exporting L2VPN + format: int32 explode: true style: form - in: query - name: exporting_l2vpn_id__n + name: id__gte schema: type: array items: type: integer - description: Exporting L2VPN + format: int32 explode: true style: form - in: query - name: exporting_vrf + name: id__lt schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: exporting_vrf__n + name: id__lte schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: exporting_vrf_id + name: id__n schema: type: array items: type: integer - description: Exporting VRF + format: int32 explode: true style: form - in: query - name: exporting_vrf_id__n + name: last_updated schema: type: array items: - type: integer - description: Exporting VRF + type: string + format: date-time explode: true style: form - in: query - name: id + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: importing_l2vpn + name: location schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form + type: integer - in: query - name: importing_l2vpn__n + name: max_vid schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) + format: int32 explode: true style: form - in: query - name: importing_l2vpn_id + name: max_vid__empty schema: - type: array - items: - type: integer - description: Importing L2VPN - explode: true - style: form + type: boolean - in: query - name: importing_l2vpn_id__n + name: max_vid__gt schema: type: array items: type: integer - description: Importing L2VPN + format: int32 explode: true style: form - in: query - name: importing_vrf + name: max_vid__gte schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: importing_vrf__n + name: max_vid__lt schema: type: array items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) + type: integer + format: int32 explode: true style: form - in: query - name: importing_vrf_id + name: max_vid__lte schema: type: array items: type: integer - description: Importing VRF + format: int32 explode: true style: form - in: query - name: importing_vrf_id__n + name: max_vid__n schema: type: array items: type: integer - description: Importing VRF + format: int32 explode: true style: form - in: query - name: last_updated + name: min_vid schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: min_vid__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: min_vid__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: min_vid__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: min_vid__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: min_vid__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: min_vid__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query name: modified_by_request schema: @@ -76320,7 +75426,93 @@ paths: type: string description: Search - in: query - name: tag + name: rack + schema: + type: integer + - in: query + name: region + schema: + type: integer + - in: query + name: scope_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_type + schema: + type: string + - in: query + name: scope_type__n + schema: + type: string + - in: query + name: site + schema: + type: integer + - in: query + name: site_group + schema: + type: integer + - in: query + name: sitegroup + schema: + type: integer + - in: query + name: slug schema: type: array items: @@ -76328,7 +75520,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -76336,25 +75532,23 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__ie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__iew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__isw schema: type: array items: @@ -76362,7 +75556,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: slug__n schema: type: array items: @@ -76370,7 +75564,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: slug__nic schema: type: array items: @@ -76378,7 +75572,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nie schema: type: array items: @@ -76386,23 +75580,35 @@ paths: explode: true style: form - in: query - name: tenant_id + name: slug__niew schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: slug__nisw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -76420,21 +75626,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRouteTargetList' + $ref: '#/components/schemas/PaginatedVLANGroupList' description: '' post: - operationId: ipam_route_targets_create - description: Post a list of route target objects. + operationId: ipam_vlan_groups_create + description: Post a list of VLAN group objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -76444,11 +75650,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: ipam_route_targets_bulk_update - description: Put a list of route target objects. + operationId: ipam_vlan_groups_bulk_update + description: Put a list of VLAN group objects. tags: - ipam requestBody: @@ -76457,12 +75663,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -76474,11 +75680,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: ipam_route_targets_bulk_partial_update - description: Patch a list of route target objects. + operationId: ipam_vlan_groups_bulk_partial_update + description: Patch a list of VLAN group objects. tags: - ipam requestBody: @@ -76487,12 +75693,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -76504,11 +75710,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: ipam_route_targets_bulk_destroy - description: Delete a list of route target objects. + operationId: ipam_vlan_groups_bulk_destroy + description: Delete a list of VLAN group objects. tags: - ipam requestBody: @@ -76517,12 +75723,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -76530,16 +75736,16 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/{id}/: + /api/ipam/vlan-groups/{id}/: get: - operationId: ipam_route_targets_retrieve - description: Get a route target object. + operationId: ipam_vlan_groups_retrieve + description: Get a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this VLAN group. required: true tags: - ipam @@ -76551,17 +75757,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: ipam_route_targets_update - description: Put a route target object. + operationId: ipam_vlan_groups_update + description: Put a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this VLAN group. required: true tags: - ipam @@ -76569,10 +75775,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -76582,17 +75788,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: ipam_route_targets_partial_update - description: Patch a route target object. + operationId: ipam_vlan_groups_partial_update + description: Patch a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this VLAN group. required: true tags: - ipam @@ -76600,10 +75806,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -76612,17 +75818,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: ipam_route_targets_destroy - description: Delete a route target object. + operationId: ipam_vlan_groups_destroy + description: Delete a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this VLAN group. required: true tags: - ipam @@ -76632,11 +75838,83 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/: + /api/ipam/vlan-groups/{id}/available-vlans/: get: - operationId: ipam_service_templates_list - description: Get a list of service template objects. + operationId: ipam_vlan_groups_available_vlans_list + description: Get a VLAN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableVLAN' + description: '' + post: + operationId: ipam_vlan_groups_available_vlans_create + description: Post a VLAN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLAN' + description: '' + /api/ipam/vlans/: + get: + operationId: ipam_vlans_list + description: Get a list of VLAN objects. parameters: + - in: query + name: available_at_site + schema: + type: string + - in: query + name: available_on_device + schema: + type: string + - in: query + name: available_on_virtualmachine + schema: + type: string - in: query name: created schema: @@ -76789,6 +76067,44 @@ paths: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Group + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Group + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Group (ID) + explode: true + style: form - in: query name: id schema: @@ -76847,6 +76163,50 @@ paths: format: int32 explode: true style: form + - in: query + name: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -77018,42 +76378,178 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: region schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form - in: query - name: protocol__n + name: region__n schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form - in: query - name: q + name: region_id schema: - type: string - description: Search + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: integer + description: Site group (slug) + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN + explode: true + style: form - in: query name: tag schema: @@ -77070,11 +76566,143 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: vid + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__empty + schema: + type: boolean + - in: query + name: vid__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - ipam security: @@ -77085,21 +76713,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceTemplateList' + $ref: '#/components/schemas/PaginatedVLANList' description: '' post: - operationId: ipam_service_templates_create - description: Post a list of service template objects. + operationId: ipam_vlans_create + description: Post a list of VLAN objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -77109,11 +76737,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: ipam_service_templates_bulk_update - description: Put a list of service template objects. + operationId: ipam_vlans_bulk_update + description: Put a list of VLAN objects. tags: - ipam requestBody: @@ -77122,12 +76750,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -77139,11 +76767,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: ipam_service_templates_bulk_partial_update - description: Patch a list of service template objects. + operationId: ipam_vlans_bulk_partial_update + description: Patch a list of VLAN objects. tags: - ipam requestBody: @@ -77152,12 +76780,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -77169,11 +76797,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: ipam_service_templates_bulk_destroy - description: Delete a list of service template objects. + operationId: ipam_vlans_bulk_destroy + description: Delete a list of VLAN objects. tags: - ipam requestBody: @@ -77182,12 +76810,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -77195,16 +76823,16 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/{id}/: + /api/ipam/vlans/{id}/: get: - operationId: ipam_service_templates_retrieve - description: Get a service template object. + operationId: ipam_vlans_retrieve + description: Get a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this VLAN. required: true tags: - ipam @@ -77216,17 +76844,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: ipam_service_templates_update - description: Put a service template object. + operationId: ipam_vlans_update + description: Put a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this VLAN. required: true tags: - ipam @@ -77234,10 +76862,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -77247,17 +76875,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: ipam_service_templates_partial_update - description: Patch a service template object. + operationId: ipam_vlans_partial_update + description: Patch a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this VLAN. required: true tags: - ipam @@ -77265,10 +76893,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -77277,17 +76905,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: ipam_service_templates_destroy - description: Delete a service template object. + operationId: ipam_vlans_destroy + description: Delete a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this VLAN. required: true tags: - ipam @@ -77297,10 +76925,10 @@ paths: responses: '204': description: No response body - /api/ipam/services/: + /api/ipam/vrfs/: get: - operationId: ipam_services_list - description: Get a list of service objects. + operationId: ipam_vrfs_list + description: Get a list of VRF objects. parameters: - in: query name: created @@ -77455,43 +77083,43 @@ paths: explode: true style: form - in: query - name: device + name: enforce_unique + schema: + type: boolean + - in: query + name: export_target schema: type: array items: type: string - nullable: true - description: Device (name) + description: Export target (name) explode: true style: form - in: query - name: device__n + name: export_target__n schema: type: array items: type: string - nullable: true - description: Device (name) + description: Export target (name) explode: true style: form - in: query - name: device_id + name: export_target_id schema: type: array items: type: integer - nullable: true - description: Device (ID) + description: Export target explode: true style: form - in: query - name: device_id__n + name: export_target_id__n schema: type: array items: type: integer - nullable: true - description: Device (ID) + description: Export target explode: true style: form - in: query @@ -77553,39 +77181,39 @@ paths: explode: true style: form - in: query - name: ip_address + name: import_target schema: type: array items: type: string - description: IP address + description: Import target (name) explode: true style: form - in: query - name: ip_address__n + name: import_target__n schema: type: array items: type: string - description: IP address + description: Import target (name) explode: true style: form - in: query - name: ip_address_id + name: import_target_id schema: type: array items: type: integer - description: IP address (ID) + description: Import target explode: true style: form - in: query - name: ip_address_id__n + name: import_target_id__n schema: type: array items: type: integer - description: IP address (ID) + description: Import target explode: true style: form - in: query @@ -77759,42 +77387,94 @@ paths: schema: type: string - in: query - name: port + name: q schema: - type: number + type: string + description: Search - in: query - name: protocol + name: rd schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol__n + name: rd__empty schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: boolean - in: query - name: q + name: rd__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: rd__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -77812,48 +77492,84 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: tenant schema: - type: string - format: uuid + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: virtual_machine + name: tenant__n schema: type: array items: type: string - description: Virtual machine (name) + description: Tenant (slug) explode: true style: form - in: query - name: virtual_machine__n + name: tenant_group schema: type: array items: - type: string - description: Virtual machine (name) + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: virtual_machine_id + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer nullable: true - description: Virtual machine (ID) + description: Tenant (ID) explode: true style: form - in: query - name: virtual_machine_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: Virtual machine (ID) + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - ipam security: @@ -77864,21 +77580,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceList' + $ref: '#/components/schemas/PaginatedVRFList' description: '' post: - operationId: ipam_services_create - description: Post a list of service objects. + operationId: ipam_vrfs_create + description: Post a list of VRF objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -77888,11 +77604,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: ipam_services_bulk_update - description: Put a list of service objects. + operationId: ipam_vrfs_bulk_update + description: Put a list of VRF objects. tags: - ipam requestBody: @@ -77901,12 +77617,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -77918,11 +77634,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: ipam_services_bulk_partial_update - description: Patch a list of service objects. + operationId: ipam_vrfs_bulk_partial_update + description: Patch a list of VRF objects. tags: - ipam requestBody: @@ -77931,12 +77647,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -77948,11 +77664,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: ipam_services_bulk_destroy - description: Delete a list of service objects. + operationId: ipam_vrfs_bulk_destroy + description: Delete a list of VRF objects. tags: - ipam requestBody: @@ -77961,12 +77677,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -77974,16 +77690,16 @@ paths: responses: '204': description: No response body - /api/ipam/services/{id}/: + /api/ipam/vrfs/{id}/: get: - operationId: ipam_services_retrieve - description: Get a service object. + operationId: ipam_vrfs_retrieve + description: Get a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this VRF. required: true tags: - ipam @@ -77995,17 +77711,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: ipam_services_update - description: Put a service object. + operationId: ipam_vrfs_update + description: Put a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this VRF. required: true tags: - ipam @@ -78013,10 +77729,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -78026,17 +77742,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: ipam_services_partial_update - description: Patch a service object. + operationId: ipam_vrfs_partial_update + description: Patch a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this VRF. required: true tags: - ipam @@ -78044,10 +77760,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedVRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedVRFRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -78056,17 +77772,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: ipam_services_destroy - description: Delete a service object. + operationId: ipam_vrfs_destroy + description: Delete a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this VRF. required: true tags: - ipam @@ -78076,23 +77792,106 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/: + /api/schema/: get: - operationId: ipam_vlan_groups_list - description: Get a list of VLAN group objects. + operationId: schema_retrieve + description: 'OpenApi3 schema for this API. Format can be selected via content + negotiation. + + + - YAML: application/vnd.oai.openapi + + - JSON: application/vnd.oai.openapi+json' parameters: - in: query - name: cluster + name: format schema: - type: integer + type: string + enum: + - json + - yaml - in: query - name: cluster_group + name: lang schema: - type: integer + type: string + enum: + - de + - en + - es + - fr + - ja + - pt + - ru + - tr + - uk + - zh + tags: + - schema + security: + - cookieAuth: [] + - tokenAuth: [] + - {} + responses: + '200': + content: + application/vnd.oai.openapi: + schema: + type: object + additionalProperties: {} + application/yaml: + schema: + type: object + additionalProperties: {} + application/vnd.oai.openapi+json: + schema: + type: object + additionalProperties: {} + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/status/: + get: + operationId: status_retrieve + description: A lightweight read-only endpoint for conveying NetBox's current + operational status. + tags: + - status + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/tenancy/contact-assignments/: + get: + operationId: tenancy_contact_assignments_list + description: Get a list of contact assignment objects. + parameters: - in: query - name: contains_vid + name: contact_id schema: - type: number + type: array + items: + type: integer + description: Contact (ID) + explode: true + style: form + - in: query + name: contact_id__n + schema: + type: array + items: + type: integer + description: Contact (ID) + explode: true + style: form - in: query name: created schema: @@ -78162,87 +77961,39 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: group schema: type: array items: - type: string + type: integer + description: Contact group (slug) explode: true style: form - in: query - name: description__nie + name: group__n schema: type: array items: - type: string + type: integer + description: Contact group (slug) explode: true style: form - in: query - name: description__niew + name: group_id schema: type: array items: - type: string + type: integer + description: Contact group (ID) explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + description: Contact group (ID) explode: true style: form - in: query @@ -78372,99 +78123,85 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: location - schema: - type: integer - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: name + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: object_id__empty schema: type: boolean - in: query - name: name__ic + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nie + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__niew + name: object_type_id schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: object_type_id__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -78478,94 +78215,90 @@ paths: schema: type: string - in: query - name: q + name: priority schema: type: string - description: Search - - in: query - name: rack - schema: - type: integer - - in: query - name: region - schema: - type: integer + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: scope_id + name: priority__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: scope_id__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: scope_id__gt + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Contact role (slug) explode: true style: form - in: query - name: scope_id__gte + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Contact role (slug) explode: true style: form - in: query - name: scope_id__lt + name: role_id schema: type: array items: type: integer - format: int32 + description: Contact role (ID) explode: true style: form - in: query - name: scope_id__lte + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Contact role (ID) explode: true style: form - in: query - name: scope_id__n + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: scope_type - schema: - type: string - - in: query - name: scope_type__n - schema: - type: string - - in: query - name: site - schema: - type: integer - - in: query - name: site_group - schema: - type: integer - - in: query - name: slug + name: tag__n schema: type: array items: @@ -78573,104 +78306,12 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -78679,21 +78320,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANGroupList' + $ref: '#/components/schemas/PaginatedContactAssignmentList' description: '' post: - operationId: ipam_vlan_groups_create - description: Post a list of VLAN group objects. + operationId: tenancy_contact_assignments_create + description: Post a list of contact assignment objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -78703,25 +78344,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: ipam_vlan_groups_bulk_update - description: Put a list of VLAN group objects. + operationId: tenancy_contact_assignments_bulk_update + description: Put a list of contact assignment objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -78733,25 +78374,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: ipam_vlan_groups_bulk_partial_update - description: Patch a list of VLAN group objects. + operationId: tenancy_contact_assignments_bulk_partial_update + description: Patch a list of contact assignment objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -78763,25 +78404,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: ipam_vlan_groups_bulk_destroy - description: Delete a list of VLAN group objects. + operationId: tenancy_contact_assignments_bulk_destroy + description: Delete a list of contact assignment objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -78789,19 +78430,19 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/: + /api/tenancy/contact-assignments/{id}/: get: - operationId: ipam_vlan_groups_retrieve - description: Get a VLAN group object. + operationId: tenancy_contact_assignments_retrieve + description: Get a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this contact assignment. required: true tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -78810,28 +78451,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: ipam_vlan_groups_update - description: Put a VLAN group object. + operationId: tenancy_contact_assignments_update + description: Put a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this contact assignment. required: true tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -78841,28 +78482,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: ipam_vlan_groups_partial_update - description: Patch a VLAN group object. + operationId: tenancy_contact_assignments_partial_update + description: Patch a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this contact assignment. required: true tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -78871,103 +78512,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: ipam_vlan_groups_destroy - description: Delete a VLAN group object. + operationId: tenancy_contact_assignments_destroy + description: Delete a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this contact assignment. required: true tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/available-vlans/: + /api/tenancy/contact-groups/: get: - operationId: ipam_vlan_groups_available_vlans_list - description: Get a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableVLAN' - description: '' - post: - operationId: ipam_vlan_groups_available_vlans_create - description: Post a VLAN object. + operationId: tenancy_contact_groups_list + description: Get a list of contact group objects. parameters: - - in: path - name: id + - in: query + name: ancestor schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - /api/ipam/vlans/: - get: - operationId: ipam_vlans_list - description: Get a list of VLAN objects. - parameters: + type: array + items: + type: integer + description: Contact group (slug) + explode: true + style: form - in: query - name: available_at_site + name: ancestor__n schema: - type: string + type: array + items: + type: integer + description: Contact group (slug) + explode: true + style: form - in: query - name: available_on_device + name: ancestor_id schema: - type: string + type: array + items: + type: integer + description: Contact group (ID) + explode: true + style: form - in: query - name: available_on_virtualmachine + name: ancestor_id__n schema: - type: string + type: array + items: + type: integer + description: Contact group (ID) + explode: true + style: form - in: query name: created schema: @@ -79120,44 +78725,6 @@ paths: type: string explode: true style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Group - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - nullable: true - description: Group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Group (ID) - explode: true - style: form - in: query name: id schema: @@ -79216,50 +78783,6 @@ paths: format: int32 explode: true style: form - - in: query - name: l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN - explode: true - style: form - - in: query - name: l2vpn_id - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - - in: query - name: l2vpn_id__n - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -79431,108 +78954,50 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: role + name: parent schema: type: array items: type: string - description: Role (slug) + description: Parent contact group (slug) explode: true style: form - in: query - name: role__n + name: parent__n schema: type: array items: type: string - description: Role (slug) + description: Parent contact group (slug) explode: true style: form - in: query - name: role_id + name: parent_id schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Parent contact group (ID) explode: true style: form - in: query - name: role_id__n + name: parent_id__n schema: type: array items: type: integer nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) + description: Parent contact group (ID) explode: true style: form - in: query - name: site_group + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: site_group__n + name: slug schema: type: array items: @@ -79540,15 +79005,11 @@ paths: explode: true style: form - in: query - name: site_group_id + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: site_group_id__n + name: slug__ic schema: type: array items: @@ -79556,47 +79017,23 @@ paths: explode: true style: form - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: status + name: slug__ie schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN explode: true style: form - in: query - name: status__n + name: slug__iew schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN explode: true style: form - in: query - name: tag + name: slug__isw schema: type: array items: @@ -79604,7 +79041,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__n schema: type: array items: @@ -79612,25 +79049,23 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__niew schema: type: array items: @@ -79638,7 +79073,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: slug__nisw schema: type: array items: @@ -79646,7 +79081,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: tag schema: type: array items: @@ -79654,98 +79089,20 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: tag__n schema: type: array items: type: string explode: true style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__empty - schema: - type: boolean - - in: query - name: vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -79754,21 +79111,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANList' + $ref: '#/components/schemas/PaginatedContactGroupList' description: '' post: - operationId: ipam_vlans_create - description: Post a list of VLAN objects. + operationId: tenancy_contact_groups_create + description: Post a list of contact group objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -79778,25 +79135,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: ipam_vlans_bulk_update - description: Put a list of VLAN objects. + operationId: tenancy_contact_groups_bulk_update + description: Put a list of contact group objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -79808,25 +79165,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: ipam_vlans_bulk_partial_update - description: Patch a list of VLAN objects. + operationId: tenancy_contact_groups_bulk_partial_update + description: Patch a list of contact group objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -79838,25 +79195,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: ipam_vlans_bulk_destroy - description: Delete a list of VLAN objects. + operationId: tenancy_contact_groups_bulk_destroy + description: Delete a list of contact group objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -79864,19 +79221,19 @@ paths: responses: '204': description: No response body - /api/ipam/vlans/{id}/: + /api/tenancy/contact-groups/{id}/: get: - operationId: ipam_vlans_retrieve - description: Get a VLAN object. + operationId: tenancy_contact_groups_retrieve + description: Get a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this contact group. required: true tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -79885,28 +79242,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: ipam_vlans_update - description: Put a VLAN object. + operationId: tenancy_contact_groups_update + description: Put a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this contact group. required: true tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -79916,28 +79273,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: ipam_vlans_partial_update - description: Patch a VLAN object. + operationId: tenancy_contact_groups_partial_update + description: Patch a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this contact group. required: true tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -79946,30 +79303,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: ipam_vlans_destroy - description: Delete a VLAN object. + operationId: tenancy_contact_groups_destroy + description: Delete a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this contact group. required: true tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/vrfs/: + /api/tenancy/contact-roles/: get: - operationId: ipam_vrfs_list - description: Get a list of VRF objects. + operationId: tenancy_contact_roles_list + description: Get a list of contact role objects. parameters: - in: query name: created @@ -80123,46 +79480,6 @@ paths: type: string explode: true style: form - - in: query - name: enforce_unique - schema: - type: boolean - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - in: query name: id schema: @@ -80221,42 +79538,6 @@ paths: format: int32 explode: true style: form - - in: query - name: import_target - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target__n - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target_id - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - - in: query - name: import_target_id__n - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - in: query name: last_updated schema: @@ -80433,7 +79714,7 @@ paths: type: string description: Search - in: query - name: rd + name: slug schema: type: array items: @@ -80441,11 +79722,11 @@ paths: explode: true style: form - in: query - name: rd__empty + name: slug__empty schema: type: boolean - in: query - name: rd__ic + name: slug__ic schema: type: array items: @@ -80453,7 +79734,7 @@ paths: explode: true style: form - in: query - name: rd__ie + name: slug__ie schema: type: array items: @@ -80461,7 +79742,7 @@ paths: explode: true style: form - in: query - name: rd__iew + name: slug__iew schema: type: array items: @@ -80469,7 +79750,7 @@ paths: explode: true style: form - in: query - name: rd__isw + name: slug__isw schema: type: array items: @@ -80477,7 +79758,7 @@ paths: explode: true style: form - in: query - name: rd__n + name: slug__n schema: type: array items: @@ -80485,7 +79766,7 @@ paths: explode: true style: form - in: query - name: rd__nic + name: slug__nic schema: type: array items: @@ -80493,7 +79774,7 @@ paths: explode: true style: form - in: query - name: rd__nie + name: slug__nie schema: type: array items: @@ -80501,7 +79782,7 @@ paths: explode: true style: form - in: query - name: rd__niew + name: slug__niew schema: type: array items: @@ -80509,7 +79790,7 @@ paths: explode: true style: form - in: query - name: rd__nisw + name: slug__nisw schema: type: array items: @@ -80532,83 +79813,13 @@ paths: type: string explode: true style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -80617,21 +79828,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVRFList' + $ref: '#/components/schemas/PaginatedContactRoleList' description: '' post: - operationId: ipam_vrfs_create - description: Post a list of VRF objects. + operationId: tenancy_contact_roles_create + description: Post a list of contact role objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -80641,25 +79852,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: ipam_vrfs_bulk_update - description: Put a list of VRF objects. + operationId: tenancy_contact_roles_bulk_update + description: Put a list of contact role objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -80671,25 +79882,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: ipam_vrfs_bulk_partial_update - description: Patch a list of VRF objects. + operationId: tenancy_contact_roles_bulk_partial_update + description: Patch a list of contact role objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -80701,25 +79912,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: ipam_vrfs_bulk_destroy - description: Delete a list of VRF objects. + operationId: tenancy_contact_roles_bulk_destroy + description: Delete a list of contact role objects. tags: - - ipam + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -80727,19 +79938,19 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/{id}/: + /api/tenancy/contact-roles/{id}/: get: - operationId: ipam_vrfs_retrieve - description: Get a VRF object. + operationId: tenancy_contact_roles_retrieve + description: Get a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this contact role. required: true tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -80748,28 +79959,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: ipam_vrfs_update - description: Put a VRF object. + operationId: tenancy_contact_roles_update + description: Put a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this contact role. required: true tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -80779,28 +79990,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: ipam_vrfs_partial_update - description: Patch a VRF object. + operationId: tenancy_contact_roles_partial_update + description: Patch a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this contact role. required: true tags: - - ipam + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -80809,129 +80020,113 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: ipam_vrfs_destroy - description: Delete a VRF object. + operationId: tenancy_contact_roles_destroy + description: Delete a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this contact role. required: true tags: - - ipam + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/schema/: + /api/tenancy/contacts/: get: - operationId: schema_retrieve - description: 'OpenApi3 schema for this API. Format can be selected via content - negotiation. - - - - YAML: application/vnd.oai.openapi - - - JSON: application/vnd.oai.openapi+json' + operationId: tenancy_contacts_list + description: Get a list of contact objects. parameters: - in: query - name: format + name: address schema: - type: string - enum: - - json - - yaml + type: array + items: + type: string + explode: true + style: form - in: query - name: lang + name: address__empty schema: - type: string - enum: - - cs - - da - - de - - en - - es - - fr - - it - - ja - - nl - - pl - - pt - - ru - - tr - - uk - - zh - tags: - - schema - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi: - schema: - type: object - additionalProperties: {} - application/yaml: - schema: - type: object - additionalProperties: {} - application/vnd.oai.openapi+json: - schema: - type: object - additionalProperties: {} - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/status/: - get: - operationId: status_retrieve - description: A lightweight read-only endpoint for conveying NetBox's current - operational status. - tags: - - status - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/tenancy/contact-assignments/: - get: - operationId: tenancy_contact_assignments_list - description: Get a list of contact assignment objects. - parameters: + type: boolean - in: query - name: contact_id + name: address__ic schema: type: array items: - type: integer - description: Contact (ID) + type: string explode: true style: form - in: query - name: contact_id__n + name: address__ie schema: type: array items: - type: integer - description: Contact (ID) + type: string + explode: true + style: form + - in: query + name: address__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -81003,7 +80198,7 @@ paths: type: string format: uuid - in: query - name: group + name: description schema: type: array items: @@ -81011,7 +80206,11 @@ paths: explode: true style: form - in: query - name: group__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -81019,7 +80218,7 @@ paths: explode: true style: form - in: query - name: group_id + name: description__ie schema: type: array items: @@ -81027,13 +80226,181 @@ paths: explode: true style: form - in: query - name: group_id__n + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__empty + schema: + type: boolean + - in: query + name: email__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: integer + description: Contact group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: integer + description: Contact group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + description: Contact group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + description: Contact group (ID) + explode: true + style: form - in: query name: id schema: @@ -81161,85 +80528,179 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__empty + schema: + type: boolean + - in: query + name: link__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: object_id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__empty + name: name__empty schema: type: boolean - in: query - name: object_id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: object_type + name: name__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: name__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: name__niew schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id__n + name: name__nisw schema: - type: integer + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -81253,82 +80714,132 @@ paths: schema: type: string - in: query - name: priority + name: phone schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: array + items: + type: string + explode: true + style: form - in: query - name: priority__n + name: phone__empty schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: boolean + - in: query + name: phone__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: role + name: tag schema: type: array items: type: string - description: Contact role (slug) explode: true style: form - in: query - name: role__n + name: tag__n schema: type: array items: type: string - description: Contact role (slug) explode: true style: form - in: query - name: role_id + name: title schema: type: array items: - type: integer - description: Contact role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: title__empty + schema: + type: boolean + - in: query + name: title__ic schema: type: array items: - type: integer - description: Contact role (ID) + type: string explode: true style: form - in: query - name: tag + name: title__ie schema: type: array items: @@ -81336,7 +80847,55 @@ paths: explode: true style: form - in: query - name: tag__n + name: title__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__nisw schema: type: array items: @@ -81358,21 +80917,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactAssignmentList' + $ref: '#/components/schemas/PaginatedContactList' description: '' post: - operationId: tenancy_contact_assignments_create - description: Post a list of contact assignment objects. + operationId: tenancy_contacts_create + description: Post a list of contact objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -81382,11 +80941,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: tenancy_contact_assignments_bulk_update - description: Put a list of contact assignment objects. + operationId: tenancy_contacts_bulk_update + description: Put a list of contact objects. tags: - tenancy requestBody: @@ -81395,12 +80954,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -81412,11 +80971,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: tenancy_contact_assignments_bulk_partial_update - description: Patch a list of contact assignment objects. + operationId: tenancy_contacts_bulk_partial_update + description: Patch a list of contact objects. tags: - tenancy requestBody: @@ -81425,12 +80984,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -81442,11 +81001,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: tenancy_contact_assignments_bulk_destroy - description: Delete a list of contact assignment objects. + operationId: tenancy_contacts_bulk_destroy + description: Delete a list of contact objects. tags: - tenancy requestBody: @@ -81455,12 +81014,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -81468,16 +81027,16 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-assignments/{id}/: + /api/tenancy/contacts/{id}/: get: - operationId: tenancy_contact_assignments_retrieve - description: Get a contact assignment object. + operationId: tenancy_contacts_retrieve + description: Get a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this contact. required: true tags: - tenancy @@ -81489,17 +81048,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: tenancy_contact_assignments_update - description: Put a contact assignment object. + operationId: tenancy_contacts_update + description: Put a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this contact. required: true tags: - tenancy @@ -81507,10 +81066,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -81520,17 +81079,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: tenancy_contact_assignments_partial_update - description: Patch a contact assignment object. + operationId: tenancy_contacts_partial_update + description: Patch a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this contact. required: true tags: - tenancy @@ -81538,10 +81097,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedContactRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81550,17 +81109,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: tenancy_contact_assignments_destroy - description: Delete a contact assignment object. + operationId: tenancy_contacts_destroy + description: Delete a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this contact. required: true tags: - tenancy @@ -81570,17 +81129,18 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-groups/: + /api/tenancy/tenant-groups/: get: - operationId: tenancy_contact_groups_list - description: Get a list of contact group objects. + operationId: tenancy_tenant_groups_list + description: Get a list of tenant group objects. parameters: - in: query name: ancestor schema: type: array items: - type: string + type: integer + description: Tenant group (slug) explode: true style: form - in: query @@ -81588,7 +81148,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant group (slug) explode: true style: form - in: query @@ -81596,7 +81157,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant group (ID) explode: true style: form - in: query @@ -81604,7 +81166,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant group (ID) explode: true style: form - in: query @@ -81993,7 +81556,7 @@ paths: type: array items: type: string - description: Parent contact group (slug) + description: Parent tenant group (slug) explode: true style: form - in: query @@ -82002,7 +81565,7 @@ paths: type: array items: type: string - description: Parent contact group (slug) + description: Parent tenant group (slug) explode: true style: form - in: query @@ -82012,7 +81575,7 @@ paths: items: type: integer nullable: true - description: Parent contact group (ID) + description: Parent tenant group (ID) explode: true style: form - in: query @@ -82022,7 +81585,7 @@ paths: items: type: integer nullable: true - description: Parent contact group (ID) + description: Parent tenant group (ID) explode: true style: form - in: query @@ -82145,21 +81708,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactGroupList' + $ref: '#/components/schemas/PaginatedTenantGroupList' description: '' post: - operationId: tenancy_contact_groups_create - description: Post a list of contact group objects. + operationId: tenancy_tenant_groups_create + description: Post a list of tenant group objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -82169,11 +81732,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: tenancy_contact_groups_bulk_update - description: Put a list of contact group objects. + operationId: tenancy_tenant_groups_bulk_update + description: Put a list of tenant group objects. tags: - tenancy requestBody: @@ -82182,12 +81745,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -82199,11 +81762,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: tenancy_contact_groups_bulk_partial_update - description: Patch a list of contact group objects. + operationId: tenancy_tenant_groups_bulk_partial_update + description: Patch a list of tenant group objects. tags: - tenancy requestBody: @@ -82212,12 +81775,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -82229,11 +81792,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: tenancy_contact_groups_bulk_destroy - description: Delete a list of contact group objects. + operationId: tenancy_tenant_groups_bulk_destroy + description: Delete a list of tenant group objects. tags: - tenancy requestBody: @@ -82242,12 +81805,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactGroupRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -82255,16 +81818,16 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-groups/{id}/: + /api/tenancy/tenant-groups/{id}/: get: - operationId: tenancy_contact_groups_retrieve - description: Get a contact group object. + operationId: tenancy_tenant_groups_retrieve + description: Get a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this tenant group. required: true tags: - tenancy @@ -82276,17 +81839,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: tenancy_contact_groups_update - description: Put a contact group object. + operationId: tenancy_tenant_groups_update + description: Put a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this tenant group. required: true tags: - tenancy @@ -82294,10 +81857,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactGroupRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -82307,17 +81870,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: tenancy_contact_groups_partial_update - description: Patch a contact group object. + operationId: tenancy_tenant_groups_partial_update + description: Patch a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this tenant group. required: true tags: - tenancy @@ -82325,10 +81888,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -82337,17 +81900,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactGroup' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: tenancy_contact_groups_destroy - description: Delete a contact group object. + operationId: tenancy_tenant_groups_destroy + description: Delete a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact group. + description: A unique integer value identifying this tenant group. required: true tags: - tenancy @@ -82357,11 +81920,65 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-roles/: + /api/tenancy/tenants/: get: - operationId: tenancy_contact_roles_list - description: Get a list of contact role objects. + operationId: tenancy_tenants_list + description: Get a list of tenant objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -82514,6 +82131,42 @@ paths: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: integer + description: Tenant group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: integer + description: Tenant group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + description: Tenant group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + description: Tenant group (ID) + explode: true + style: form - in: query name: id schema: @@ -82862,21 +82515,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactRoleList' + $ref: '#/components/schemas/PaginatedTenantList' description: '' post: - operationId: tenancy_contact_roles_create - description: Post a list of contact role objects. + operationId: tenancy_tenants_create + description: Post a list of tenant objects. tags: - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -82886,11 +82539,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: tenancy_contact_roles_bulk_update - description: Put a list of contact role objects. + operationId: tenancy_tenants_bulk_update + description: Put a list of tenant objects. tags: - tenancy requestBody: @@ -82899,12 +82552,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -82916,11 +82569,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: tenancy_contact_roles_bulk_partial_update - description: Patch a list of contact role objects. + operationId: tenancy_tenants_bulk_partial_update + description: Patch a list of tenant objects. tags: - tenancy requestBody: @@ -82929,12 +82582,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -82946,11 +82599,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: tenancy_contact_roles_bulk_destroy - description: Delete a list of contact role objects. + operationId: tenancy_tenants_bulk_destroy + description: Delete a list of tenant objects. tags: - tenancy requestBody: @@ -82959,12 +82612,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -82972,16 +82625,16 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-roles/{id}/: + /api/tenancy/tenants/{id}/: get: - operationId: tenancy_contact_roles_retrieve - description: Get a contact role object. + operationId: tenancy_tenants_retrieve + description: Get a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this tenant. required: true tags: - tenancy @@ -82993,17 +82646,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: tenancy_contact_roles_update - description: Put a contact role object. + operationId: tenancy_tenants_update + description: Put a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this tenant. required: true tags: - tenancy @@ -83011,10 +82664,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -83024,17 +82677,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: tenancy_contact_roles_partial_update - description: Patch a contact role object. + operationId: tenancy_tenants_partial_update + description: Patch a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this tenant. required: true tags: - tenancy @@ -83042,10 +82695,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedTenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedTenantRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83054,17 +82707,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: tenancy_contact_roles_destroy - description: Delete a contact role object. + operationId: tenancy_tenants_destroy + description: Delete a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this tenant. required: true tags: - tenancy @@ -83074,13 +82727,31 @@ paths: responses: '204': description: No response body - /api/tenancy/contacts/: + /api/users/config/: get: - operationId: tenancy_contacts_list - description: Get a list of contact objects. + operationId: users_config_retrieve + description: An API endpoint via which a user can update his or her own UserConfig + data (but no one else's). + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/groups/: + get: + operationId: users_groups_list + description: Get a list of group objects. parameters: - in: query - name: address + name: description schema: type: array items: @@ -83088,11 +82759,11 @@ paths: explode: true style: form - in: query - name: address__empty + name: description__empty schema: type: boolean - in: query - name: address__ic + name: description__ic schema: type: array items: @@ -83100,7 +82771,7 @@ paths: explode: true style: form - in: query - name: address__ie + name: description__ie schema: type: array items: @@ -83108,7 +82779,7 @@ paths: explode: true style: form - in: query - name: address__iew + name: description__iew schema: type: array items: @@ -83116,7 +82787,7 @@ paths: explode: true style: form - in: query - name: address__isw + name: description__isw schema: type: array items: @@ -83124,7 +82795,7 @@ paths: explode: true style: form - in: query - name: address__n + name: description__n schema: type: array items: @@ -83132,7 +82803,7 @@ paths: explode: true style: form - in: query - name: address__nic + name: description__nic schema: type: array items: @@ -83140,7 +82811,7 @@ paths: explode: true style: form - in: query - name: address__nie + name: description__nie schema: type: array items: @@ -83148,7 +82819,7 @@ paths: explode: true style: form - in: query - name: address__niew + name: description__niew schema: type: array items: @@ -83156,7 +82827,7 @@ paths: explode: true style: form - in: query - name: address__nisw + name: description__nisw schema: type: array items: @@ -83164,75 +82835,71 @@ paths: explode: true style: form - in: query - name: created + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - in: query - name: created_by_request + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: string - format: uuid + type: integer - in: query - name: description + name: name schema: type: array items: @@ -83240,11 +82907,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -83252,7 +82919,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -83260,7 +82927,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -83268,7 +82935,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -83276,7 +82943,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -83284,7 +82951,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -83292,7 +82959,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -83300,7 +82967,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -83308,345 +82975,497 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: email + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__empty + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: boolean + type: string - in: query - name: email__ic + name: permission_id schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: email__ie + name: permission_id__n schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: email__iew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: email__isw + name: user_id schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - in: query - name: email__n + name: user_id__n schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - - in: query - name: email__nic + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedGroupList' + description: '' + post: + operationId: users_groups_create + description: Post a list of group objects. + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + description: '' + put: + operationId: users_groups_bulk_update + description: Put a list of group objects. + tags: + - users + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/GroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/GroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Group' + description: '' + patch: + operationId: users_groups_bulk_partial_update + description: Patch a list of group objects. + tags: + - users + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/GroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/GroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Group' + description: '' + delete: + operationId: users_groups_bulk_destroy + description: Delete a list of group objects. + tags: + - users + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/GroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/GroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/users/groups/{id}/: + get: + operationId: users_groups_retrieve + description: Get a group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nie + type: integer + description: A unique integer value identifying this group. + required: true + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + description: '' + put: + operationId: users_groups_update + description: Put a group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__niew + type: integer + description: A unique integer value identifying this group. + required: true + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/GroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/GroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + description: '' + patch: + operationId: users_groups_partial_update + description: Patch a group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: email__nisw + type: integer + description: A unique integer value identifying this group. + required: true + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Group' + description: '' + delete: + operationId: users_groups_destroy + description: Delete a group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form + type: integer + description: A unique integer value identifying this group. + required: true + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/users/permissions/: + get: + operationId: users_permissions_list + description: Get a list of permission objects. + parameters: - in: query - name: group + name: can_add schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: group__n + name: can_change schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: group_id + name: can_delete schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: group_id__n + name: can_view schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: enabled schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__n + name: group schema: type: array items: type: string - format: date-time + description: Group (name) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: link + name: group__n schema: type: array items: type: string + description: Group (name) explode: true style: form - in: query - name: link__empty - schema: - type: boolean - - in: query - name: link__ic + name: group_id schema: type: array items: - type: string + type: integer + description: Group explode: true style: form - in: query - name: link__ie + name: group_id__n schema: type: array items: - type: string + type: integer + description: Group explode: true style: form - in: query - name: link__iew + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__isw + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: link__n + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - in: query - name: modified_by_request + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: string - format: uuid + type: integer - in: query name: name schema: @@ -83731,214 +83550,133 @@ paths: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: phone - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: phone__empty - schema: - type: boolean - - in: query - name: phone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: phone__ie + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__iew + name: object_type__ic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__isw + name: object_type__ie schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__n + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__nic + name: object_type__isw schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__nie + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__niew + name: object_type__nic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: phone__nisw + name: object_type__nie schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: q + name: object_type__niew schema: type: string - description: Search - in: query - name: tag + name: object_type__nisw schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: tag__n + name: object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: title + name: object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: title__empty - schema: - type: boolean - - in: query - name: title__ic + name: object_types schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: title__ie + name: object_types__n schema: type: array items: - type: string + type: integer explode: true style: form - - in: query - name: title__iew + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: title__isw + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: title__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: title__nic + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: title__nie + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: title__niew + name: user_id schema: type: array items: - type: string + type: integer + description: User explode: true style: form - in: query - name: title__nisw + name: user_id__n schema: type: array items: - type: string + type: integer + description: User explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] @@ -83947,21 +83685,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactList' + $ref: '#/components/schemas/PaginatedObjectPermissionList' description: '' post: - operationId: tenancy_contacts_create - description: Post a list of contact objects. + operationId: users_permissions_create + description: Post a list of permission objects. tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -83971,25 +83709,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: tenancy_contacts_bulk_update - description: Put a list of contact objects. + operationId: users_permissions_bulk_update + description: Put a list of permission objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -84001,25 +83739,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: tenancy_contacts_bulk_partial_update - description: Patch a list of contact objects. + operationId: users_permissions_bulk_partial_update + description: Patch a list of permission objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -84031,25 +83769,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: tenancy_contacts_bulk_destroy - description: Delete a list of contact objects. + operationId: users_permissions_bulk_destroy + description: Delete a list of permission objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -84057,19 +83795,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contacts/{id}/: + /api/users/permissions/{id}/: get: - operationId: tenancy_contacts_retrieve - description: Get a contact object. + operationId: users_permissions_retrieve + description: Get a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this permission. required: true tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] @@ -84078,28 +83816,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: tenancy_contacts_update - description: Put a contact object. + operationId: users_permissions_update + description: Put a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this permission. required: true tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -84109,28 +83847,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: tenancy_contacts_partial_update - description: Patch a contact object. + operationId: users_permissions_partial_update + description: Patch a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this permission. required: true tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -84139,41 +83877,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: tenancy_contacts_destroy - description: Delete a contact object. + operationId: users_permissions_destroy + description: Delete a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this permission. required: true tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/tenant-groups/: + /api/users/tokens/: get: - operationId: tenancy_tenant_groups_list - description: Get a list of tenant group objects. + operationId: users_tokens_list + description: Get a list of token objects. parameters: - in: query - name: ancestor + name: created schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: ancestor__n + name: created__gte + schema: + type: string + format: date-time + - in: query + name: created__lte + schema: + type: string + format: date-time + - in: query + name: description schema: type: array items: @@ -84181,7 +83926,11 @@ paths: explode: true style: form - in: query - name: ancestor_id + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -84189,7 +83938,7 @@ paths: explode: true style: form - in: query - name: ancestor_id__n + name: description__ie schema: type: array items: @@ -84197,168 +83946,87 @@ paths: explode: true style: form - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: expires schema: type: string - format: uuid + format: date-time - in: query - name: description + name: expires__gte + schema: + type: string + format: date-time + - in: query + name: expires__lte + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty + name: id__empty schema: type: boolean - in: query @@ -84407,81 +84075,59 @@ paths: explode: true style: form - in: query - name: last_updated + name: key schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: key__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: key__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: key__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: key__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: key__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: key__n schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: key__nic schema: type: array items: @@ -84489,11 +84135,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: key__nie schema: type: array items: @@ -84501,7 +84143,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: key__niew schema: type: array items: @@ -84509,7 +84151,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: key__nisw schema: type: array items: @@ -84517,53 +84159,69 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_used schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_used__empty + schema: + type: boolean + - in: query + name: last_used__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_used__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_used__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_used__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_used__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - name: offset required: false in: query @@ -84576,156 +84234,53 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: parent - schema: - type: array - items: - type: string - description: Parent tenant group (slug) - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - description: Parent tenant group (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent tenant group (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Parent tenant group (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: slug__nisw + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: tag + name: user_id schema: type: array items: - type: string + type: integer + description: User explode: true style: form - in: query - name: tag__n + name: user_id__n schema: type: array items: - type: string + type: integer + description: User explode: true style: form - in: query - name: updated_by_request + name: write_enabled schema: - type: string - format: uuid + type: boolean tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] @@ -84734,21 +84289,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantGroupList' + $ref: '#/components/schemas/PaginatedTokenList' description: '' post: - operationId: tenancy_tenant_groups_create - description: Post a list of tenant group objects. + operationId: users_tokens_create + description: Post a list of token objects. tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -84758,25 +84313,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/Token' description: '' put: - operationId: tenancy_tenant_groups_bulk_update - description: Put a list of tenant group objects. + operationId: users_tokens_bulk_update + description: Put a list of token objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -84788,25 +84343,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: tenancy_tenant_groups_bulk_partial_update - description: Patch a list of tenant group objects. + operationId: users_tokens_bulk_partial_update + description: Patch a list of token objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -84818,25 +84373,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: tenancy_tenant_groups_bulk_destroy - description: Delete a list of tenant group objects. + operationId: users_tokens_bulk_destroy + description: Delete a list of token objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -84844,19 +84399,19 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/{id}/: + /api/users/tokens/{id}/: get: - operationId: tenancy_tenant_groups_retrieve - description: Get a tenant group object. + operationId: users_tokens_retrieve + description: Get a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this token. required: true tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] @@ -84865,28 +84420,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/Token' description: '' put: - operationId: tenancy_tenant_groups_update - description: Put a tenant group object. + operationId: users_tokens_update + description: Put a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this token. required: true tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -84896,28 +84451,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: tenancy_tenant_groups_partial_update - description: Patch a tenant group object. + operationId: users_tokens_partial_update + description: Patch a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this token. required: true tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedTokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedTokenRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -84926,153 +84481,192 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: tenancy_tenant_groups_destroy - description: Delete a tenant group object. + operationId: users_tokens_destroy + description: Delete a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this token. required: true tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/tenants/: + /api/users/tokens/provision/: + post: + operationId: users_tokens_provision_create + description: Non-authenticated REST API endpoint via which a user may create + a Token. + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvision' + description: '' + '401': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/users/: get: - operationId: tenancy_tenants_list - description: Get a list of tenant objects. + operationId: users_users_list + description: Get a list of user objects. parameters: - in: query - name: contact + name: date_joined schema: type: array items: - type: integer - description: Contact + type: string + format: date-time explode: true style: form - in: query - name: contact__n + name: date_joined__empty + schema: + type: boolean + - in: query + name: date_joined__gt schema: type: array items: - type: integer - description: Contact + type: string + format: date-time explode: true style: form - in: query - name: contact_group + name: date_joined__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: contact_group__n + name: date_joined__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: contact_role + name: date_joined__lte schema: type: array items: - type: integer - description: Contact Role + type: string + format: date-time explode: true style: form - in: query - name: contact_role__n + name: date_joined__n schema: type: array items: - type: integer - description: Contact Role + type: string + format: date-time explode: true style: form - in: query - name: created + name: email schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: email__empty + schema: + type: boolean + - in: query + name: email__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: email__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: email__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: email__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: email__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: email__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: email__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: email__niew schema: type: array items: @@ -85080,11 +84674,27 @@ paths: explode: true style: form - in: query - name: description__empty + name: email__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: first_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: first_name__empty schema: type: boolean - in: query - name: description__ic + name: first_name__ic schema: type: array items: @@ -85092,7 +84702,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: first_name__ie schema: type: array items: @@ -85100,7 +84710,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: first_name__iew schema: type: array items: @@ -85108,7 +84718,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: first_name__isw schema: type: array items: @@ -85116,7 +84726,7 @@ paths: explode: true style: form - in: query - name: description__n + name: first_name__n schema: type: array items: @@ -85124,7 +84734,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: first_name__nic schema: type: array items: @@ -85132,7 +84742,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: first_name__nie schema: type: array items: @@ -85140,7 +84750,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: first_name__niew schema: type: array items: @@ -85148,7 +84758,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: first_name__nisw schema: type: array items: @@ -85161,6 +84771,7 @@ paths: type: array items: type: string + description: Group (name) explode: true style: form - in: query @@ -85169,6 +84780,7 @@ paths: type: array items: type: string + description: Group (name) explode: true style: form - in: query @@ -85176,7 +84788,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Group explode: true style: form - in: query @@ -85184,7 +84797,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Group explode: true style: form - in: query @@ -85246,16 +84860,19 @@ paths: explode: true style: form - in: query - name: last_updated + name: is_active schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__empty + name: is_staff + schema: + type: boolean + - in: query + name: is_superuser + schema: + type: boolean + - in: query + name: last_login schema: type: array items: @@ -85264,7 +84881,11 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: last_login__empty + schema: + type: boolean + - in: query + name: last_login__gt schema: type: array items: @@ -85273,7 +84894,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: last_login__gte schema: type: array items: @@ -85282,7 +84903,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: last_login__lt schema: type: array items: @@ -85291,7 +84912,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: last_login__lte schema: type: array items: @@ -85300,7 +84921,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: last_login__n schema: type: array items: @@ -85308,19 +84929,8 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: last_name schema: type: array items: @@ -85328,11 +84938,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: last_name__empty schema: type: boolean - in: query - name: name__ic + name: last_name__ic schema: type: array items: @@ -85340,7 +84950,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: last_name__ie schema: type: array items: @@ -85348,7 +84958,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_name__iew schema: type: array items: @@ -85356,7 +84966,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_name__isw schema: type: array items: @@ -85364,7 +84974,7 @@ paths: explode: true style: form - in: query - name: name__n + name: last_name__n schema: type: array items: @@ -85372,7 +84982,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: last_name__nic schema: type: array items: @@ -85380,7 +84990,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: last_name__nie schema: type: array items: @@ -85388,7 +84998,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: last_name__niew schema: type: array items: @@ -85396,13 +85006,19 @@ paths: explode: true style: form - in: query - name: name__nisw + name: last_name__nisw schema: type: array items: type: string explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - name: offset required: false in: query @@ -85416,32 +85032,30 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: permission_id schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: permission_id__n schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__ie + name: q + schema: + type: string + description: Search + - in: query + name: username schema: type: array items: @@ -85449,7 +85063,11 @@ paths: explode: true style: form - in: query - name: slug__iew + name: username__empty + schema: + type: boolean + - in: query + name: username__ic schema: type: array items: @@ -85457,7 +85075,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: username__ie schema: type: array items: @@ -85465,7 +85083,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: username__iew schema: type: array items: @@ -85473,7 +85091,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: username__isw schema: type: array items: @@ -85481,7 +85099,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: username__n schema: type: array items: @@ -85489,7 +85107,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: username__nic schema: type: array items: @@ -85497,7 +85115,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: username__nie schema: type: array items: @@ -85505,7 +85123,7 @@ paths: explode: true style: form - in: query - name: tag + name: username__niew schema: type: array items: @@ -85513,20 +85131,15 @@ paths: explode: true style: form - in: query - name: tag__n + name: username__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] @@ -85535,21 +85148,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantList' + $ref: '#/components/schemas/PaginatedUserList' description: '' post: - operationId: tenancy_tenants_create - description: Post a list of tenant objects. + operationId: users_users_create + description: Post a list of user objects. tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -85559,25 +85172,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/User' description: '' put: - operationId: tenancy_tenants_bulk_update - description: Put a list of tenant objects. + operationId: users_users_bulk_update + description: Put a list of user objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -85589,25 +85202,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/User' description: '' patch: - operationId: tenancy_tenants_bulk_partial_update - description: Patch a list of tenant objects. + operationId: users_users_bulk_partial_update + description: Patch a list of user objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -85619,25 +85232,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/User' description: '' delete: - operationId: tenancy_tenants_bulk_destroy - description: Delete a list of tenant objects. + operationId: users_users_bulk_destroy + description: Delete a list of user objects. tags: - - tenancy + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -85645,19 +85258,19 @@ paths: responses: '204': description: No response body - /api/tenancy/tenants/{id}/: + /api/users/users/{id}/: get: - operationId: tenancy_tenants_retrieve - description: Get a tenant object. + operationId: users_users_retrieve + description: Get a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this user. required: true tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] @@ -85666,28 +85279,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/User' description: '' put: - operationId: tenancy_tenants_update - description: Put a tenant object. + operationId: users_users_update + description: Put a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this user. required: true tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -85697,28 +85310,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/User' description: '' patch: - operationId: tenancy_tenants_partial_update - description: Patch a tenant object. + operationId: users_users_partial_update + description: Patch a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this user. required: true tags: - - tenancy + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedUserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedUserRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -85727,49 +85340,153 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/User' description: '' delete: - operationId: tenancy_tenants_destroy - description: Delete a tenant object. + operationId: users_users_destroy + description: Delete a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this user. required: true tags: - - tenancy + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/config/: - get: - operationId: users_config_retrieve - description: An API endpoint via which a user can update his or her own UserConfig - data (but no one else's). - tags: - - users - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/groups/: + /api/virtualization/cluster-groups/: get: - operationId: users_groups_list - description: Get a list of group objects. + operationId: virtualization_cluster_groups_list + description: Get a list of cluster group objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -85912,12 +85629,80 @@ paths: format: int32 explode: true style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - name: limit required: false in: query description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -86002,24 +85787,6 @@ paths: type: string explode: true style: form - - in: query - name: notification_group_id - schema: - type: array - items: - type: integer - description: Notification group (ID) - explode: true - style: form - - in: query - name: notification_group_id__n - schema: - type: array - items: - type: integer - description: Notification group (ID) - explode: true - style: form - name: offset required: false in: query @@ -86033,48 +85800,117 @@ paths: schema: type: string - in: query - name: permission_id + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: permission_id__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: user_id + name: slug__ie schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: slug__iew schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -86083,21 +85919,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedGroupList' + $ref: '#/components/schemas/PaginatedClusterGroupList' description: '' post: - operationId: users_groups_create - description: Post a list of group objects. + operationId: virtualization_cluster_groups_create + description: Post a list of cluster group objects. tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -86107,25 +85943,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: users_groups_bulk_update - description: Put a list of group objects. + operationId: virtualization_cluster_groups_bulk_update + description: Put a list of cluster group objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -86137,25 +85973,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: users_groups_bulk_partial_update - description: Patch a list of group objects. + operationId: virtualization_cluster_groups_bulk_partial_update + description: Patch a list of cluster group objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -86167,25 +86003,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: users_groups_bulk_destroy - description: Delete a list of group objects. + operationId: virtualization_cluster_groups_bulk_destroy + description: Delete a list of cluster group objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -86193,19 +86029,19 @@ paths: responses: '204': description: No response body - /api/users/groups/{id}/: + /api/virtualization/cluster-groups/{id}/: get: - operationId: users_groups_retrieve - description: Get a group object. + operationId: virtualization_cluster_groups_retrieve + description: Get a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this cluster group. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -86214,28 +86050,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: users_groups_update - description: Put a group object. + operationId: virtualization_cluster_groups_update + description: Put a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this cluster group. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -86245,28 +86081,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: users_groups_partial_update - description: Patch a group object. + operationId: virtualization_cluster_groups_partial_update + description: Patch a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this cluster group. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedGroupRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedGroupRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86275,47 +86111,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: users_groups_destroy - description: Delete a group object. + operationId: virtualization_cluster_groups_destroy + description: Delete a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this cluster group. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/permissions/: + /api/virtualization/cluster-types/: get: - operationId: users_permissions_list - description: Get a list of permission objects. + operationId: virtualization_cluster_types_list + description: Get a list of cluster type objects. parameters: - in: query - name: can_add + name: created schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: can_change + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: can_delete + name: created__gt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: can_view + name: created__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -86401,47 +86289,56 @@ paths: explode: true style: form - in: query - name: enabled + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query - name: group + name: id__gt schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: id__gte schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: id__lt schema: type: array items: type: integer - description: Group + format: int32 explode: true style: form - in: query - name: group_id__n + name: id__lte schema: type: array items: type: integer - description: Group + format: int32 explode: true style: form - in: query - name: id + name: id__n schema: type: array items: @@ -86450,52 +86347,66 @@ paths: explode: true style: form - in: query - name: id__empty + name: last_updated schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time explode: true style: form - name: limit @@ -86504,6 +86415,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -86588,133 +86504,130 @@ paths: type: string explode: true style: form - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - - in: query - name: object_type__isw + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__n + name: q schema: type: string + description: Search - in: query - name: object_type__nic + name: slug schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nie + name: slug__empty schema: - type: string + type: boolean - in: query - name: object_type__niew + name: slug__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: slug__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: slug__isw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types + name: slug__n schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types__n + name: slug__nic schema: type: array items: - type: integer + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: slug__nie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user + name: slug__niew schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: slug__nisw schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: tag schema: type: array items: - type: integer - description: User + type: string explode: true style: form - in: query - name: user_id__n + name: tag__n schema: type: array items: - type: integer - description: User + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -86723,21 +86636,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectPermissionList' + $ref: '#/components/schemas/PaginatedClusterTypeList' description: '' post: - operationId: users_permissions_create - description: Post a list of permission objects. + operationId: virtualization_cluster_types_create + description: Post a list of cluster type objects. tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -86747,25 +86660,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/ClusterType' description: '' put: - operationId: users_permissions_bulk_update - description: Put a list of permission objects. + operationId: virtualization_cluster_types_bulk_update + description: Put a list of cluster type objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -86777,25 +86690,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/ClusterType' description: '' patch: - operationId: users_permissions_bulk_partial_update - description: Patch a list of permission objects. + operationId: virtualization_cluster_types_bulk_partial_update + description: Patch a list of cluster type objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -86807,25 +86720,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/ClusterType' description: '' delete: - operationId: users_permissions_bulk_destroy - description: Delete a list of permission objects. + operationId: virtualization_cluster_types_bulk_destroy + description: Delete a list of cluster type objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -86833,19 +86746,19 @@ paths: responses: '204': description: No response body - /api/users/permissions/{id}/: + /api/virtualization/cluster-types/{id}/: get: - operationId: users_permissions_retrieve - description: Get a permission object. + operationId: virtualization_cluster_types_retrieve + description: Get a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this cluster type. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -86854,28 +86767,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/ClusterType' description: '' put: - operationId: users_permissions_update - description: Put a permission object. + operationId: virtualization_cluster_types_update + description: Put a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this cluster type. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -86885,28 +86798,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/ClusterType' description: '' patch: - operationId: users_permissions_partial_update - description: Patch a permission object. + operationId: virtualization_cluster_types_partial_update + description: Patch a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this cluster type. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedClusterTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86915,46 +86828,153 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/ClusterType' description: '' delete: - operationId: users_permissions_destroy - description: Delete a permission object. + operationId: virtualization_cluster_types_destroy + description: Delete a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this cluster type. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/: + /api/virtualization/clusters/: get: - operationId: users_tokens_list - description: Get a list of token objects. + operationId: virtualization_clusters_list + description: Get a list of cluster objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: integer + description: Contact group + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gte schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request schema: type: string - format: date-time + format: uuid - in: query name: description schema: @@ -87040,20 +87060,43 @@ paths: explode: true style: form - in: query - name: expires + name: group schema: - type: string - format: date-time + type: array + items: + type: string + description: Parent group (slug) + explode: true + style: form - in: query - name: expires__gte + name: group__n schema: - type: string - format: date-time + type: array + items: + type: string + description: Parent group (slug) + explode: true + style: form - in: query - name: expires__lte + name: group_id schema: - type: string - format: date-time + type: array + items: + type: integer + nullable: true + description: Parent group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent group (ID) + explode: true + style: form - in: query name: id schema: @@ -87113,67 +87156,81 @@ paths: explode: true style: form - in: query - name: key + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__empty - schema: - type: boolean - - in: query - name: key__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: key__nie + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -87181,7 +87238,11 @@ paths: explode: true style: form - in: query - name: key__niew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -87189,7 +87250,7 @@ paths: explode: true style: form - in: query - name: key__nisw + name: name__ie schema: type: array items: @@ -87197,69 +87258,61 @@ paths: explode: true style: form - in: query - name: last_used + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__empty + name: name__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_used__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -87278,47 +87331,266 @@ paths: type: string description: Search - in: query - name: user + name: region + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: integer + description: Region (slug) + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form + - in: query + name: site schema: type: array items: type: string - description: User (name) + description: Site (slug) explode: true style: form - in: query - name: user__n + name: site__n schema: type: array items: type: string - description: User (name) + description: Site (slug) explode: true style: form - in: query - name: user_id + name: site_group schema: type: array items: type: integer - description: User + description: Site group (slug) explode: true style: form - in: query - name: user_id__n + name: site_group__n schema: type: array items: type: integer - description: User + description: Site group (slug) explode: true style: form - in: query - name: write_enabled + name: site_group_id schema: - type: boolean + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group (ID) + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 79d20a734d0eecbb + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -87327,21 +87599,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTokenList' + $ref: '#/components/schemas/PaginatedClusterList' description: '' post: - operationId: users_tokens_create - description: Post a list of token objects. + operationId: virtualization_clusters_create + description: Post a list of cluster objects. tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -87351,25 +87623,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: users_tokens_bulk_update - description: Put a list of token objects. + operationId: virtualization_clusters_bulk_update + description: Put a list of cluster objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -87381,25 +87653,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: users_tokens_bulk_partial_update - description: Patch a list of token objects. + operationId: virtualization_clusters_bulk_partial_update + description: Patch a list of cluster objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -87411,25 +87683,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: users_tokens_bulk_destroy - description: Delete a list of token objects. + operationId: virtualization_clusters_bulk_destroy + description: Delete a list of cluster objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -87437,19 +87709,19 @@ paths: responses: '204': description: No response body - /api/users/tokens/{id}/: + /api/virtualization/clusters/{id}/: get: - operationId: users_tokens_retrieve - description: Get a token object. + operationId: virtualization_clusters_retrieve + description: Get a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this cluster. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -87458,28 +87730,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: users_tokens_update - description: Put a token object. + operationId: virtualization_clusters_update + description: Put a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this cluster. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -87489,28 +87761,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: users_tokens_partial_update - description: Patch a token object. + operationId: virtualization_clusters_partial_update + description: Patch a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this cluster. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -87519,115 +87791,87 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: users_tokens_destroy - description: Delete a token object. + operationId: virtualization_clusters_destroy + description: Delete a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this cluster. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/provision/: - post: - operationId: users_tokens_provision_create - description: Non-authenticated REST API endpoint via which a user may create - a Token. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvision' - description: '' - '401': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/users/: + /api/virtualization/interfaces/: get: - operationId: users_users_list - description: Get a list of user objects. + operationId: virtualization_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: date_joined + name: bridge_id schema: type: array items: - type: string - format: date-time + type: integer + description: Bridged interface (ID) explode: true style: form - in: query - name: date_joined__empty + name: bridge_id__n schema: - type: boolean + type: array + items: + type: integer + description: Bridged interface (ID) + explode: true + style: form - in: query - name: date_joined__gt + name: cluster schema: type: array items: type: string - format: date-time + description: Cluster explode: true style: form - in: query - name: date_joined__gte + name: cluster__n schema: type: array items: type: string - format: date-time + description: Cluster explode: true style: form - in: query - name: date_joined__lt + name: cluster_id schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster (ID) explode: true style: form - in: query - name: date_joined__lte + name: cluster_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster (ID) explode: true style: form - in: query - name: date_joined__n + name: created schema: type: array items: @@ -87636,59 +87880,66 @@ paths: explode: true style: form - in: query - name: email + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: email__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -87696,7 +87947,11 @@ paths: explode: true style: form - in: query - name: email__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -87704,7 +87959,7 @@ paths: explode: true style: form - in: query - name: email__niew + name: description__ie schema: type: array items: @@ -87712,7 +87967,7 @@ paths: explode: true style: form - in: query - name: email__nisw + name: description__iew schema: type: array items: @@ -87720,7 +87975,7 @@ paths: explode: true style: form - in: query - name: first_name + name: description__isw schema: type: array items: @@ -87728,11 +87983,15 @@ paths: explode: true style: form - in: query - name: first_name__empty + name: description__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: first_name__ic + name: description__nic schema: type: array items: @@ -87740,7 +87999,7 @@ paths: explode: true style: form - in: query - name: first_name__ie + name: description__nie schema: type: array items: @@ -87748,7 +88007,7 @@ paths: explode: true style: form - in: query - name: first_name__iew + name: description__niew schema: type: array items: @@ -87756,7 +88015,7 @@ paths: explode: true style: form - in: query - name: first_name__isw + name: description__nisw schema: type: array items: @@ -87764,211 +88023,254 @@ paths: explode: true style: form - in: query - name: first_name__n + name: enabled + schema: + type: boolean + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__nic + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__nie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__niew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__nisw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: group + name: id__n schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: l2vpn schema: type: array items: - type: string - description: Group (name) + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: group_id + name: l2vpn__n schema: type: array items: type: integer - description: Group + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: group_id__n + name: l2vpn_id schema: type: array items: type: integer - description: Group + description: L2VPN (ID) explode: true style: form - in: query - name: id + name: l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query - name: id__empty + name: last_updated schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_active + name: last_updated__n schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: is_staff + name: mac_address schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: is_superuser + name: mac_address__ic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_login + name: mac_address__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_login__empty + name: mac_address__iew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: last_login__gt + name: mac_address__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_login__gte + name: mac_address__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_login__lt + name: mac_address__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_login__lte + name: mac_address__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_login__n + name: mac_address__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_name + name: mac_address__nisw schema: type: array items: @@ -87976,27 +88278,104 @@ paths: explode: true style: form - in: query - name: last_name__empty + name: mode + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: mode__n + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: mtu + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__empty schema: type: boolean - in: query - name: last_name__ic + name: mtu__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: last_name__ie + name: mtu__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: last_name__iew + name: mtu__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: name schema: type: array items: @@ -88004,7 +88383,11 @@ paths: explode: true style: form - in: query - name: last_name__isw + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -88012,7 +88395,7 @@ paths: explode: true style: form - in: query - name: last_name__n + name: name__ie schema: type: array items: @@ -88020,7 +88403,7 @@ paths: explode: true style: form - in: query - name: last_name__nic + name: name__iew schema: type: array items: @@ -88028,7 +88411,7 @@ paths: explode: true style: form - in: query - name: last_name__nie + name: name__isw schema: type: array items: @@ -88036,7 +88419,7 @@ paths: explode: true style: form - in: query - name: last_name__niew + name: name__n schema: type: array items: @@ -88044,35 +88427,35 @@ paths: explode: true style: form - in: query - name: last_name__nisw + name: name__nic schema: type: array items: type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: name__nie schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: notification_group_id + name: name__niew schema: type: array items: - type: integer - description: Notification group (ID) + type: string explode: true style: form - in: query - name: notification_group_id__n + name: name__nisw schema: type: array items: - type: integer - description: Notification group (ID) + type: string explode: true style: form - name: offset @@ -88088,21 +88471,21 @@ paths: schema: type: string - in: query - name: permission_id + name: parent_id schema: type: array items: type: integer - description: Permission (ID) + description: Parent interface (ID) explode: true style: form - in: query - name: permission_id__n + name: parent_id__n schema: type: array items: type: integer - description: Permission (ID) + description: Parent interface (ID) explode: true style: form - in: query @@ -88111,7 +88494,7 @@ paths: type: string description: Search - in: query - name: username + name: tag schema: type: array items: @@ -88119,11 +88502,7 @@ paths: explode: true style: form - in: query - name: username__empty - schema: - type: boolean - - in: query - name: username__ic + name: tag__n schema: type: array items: @@ -88131,71 +88510,98 @@ paths: explode: true style: form - in: query - name: username__ie + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: username__iew + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: username__isw + name: virtual_machine_id schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: username__n + name: virtual_machine_id__n schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: username__nic + name: vlan + schema: + type: string + description: Assigned VID + - in: query + name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: username__nie + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: username__niew + name: vrf_id schema: type: array items: - type: string + type: integer + description: VRF explode: true style: form - in: query - name: username__nisw + name: vrf_id__n schema: type: array items: - type: string + type: integer + description: VRF explode: true style: form tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -88204,21 +88610,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedUserList' + $ref: '#/components/schemas/PaginatedVMInterfaceList' description: '' post: - operationId: users_users_create - description: Post a list of user objects. + operationId: virtualization_interfaces_create + description: Post a list of interface objects. tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -88228,25 +88634,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: users_users_bulk_update - description: Put a list of user objects. + operationId: virtualization_interfaces_bulk_update + description: Put a list of interface objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -88258,25 +88664,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: users_users_bulk_partial_update - description: Patch a list of user objects. + operationId: virtualization_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -88288,25 +88694,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: users_users_bulk_destroy - description: Delete a list of user objects. + operationId: virtualization_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - - users + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -88314,19 +88720,19 @@ paths: responses: '204': description: No response body - /api/users/users/{id}/: + /api/virtualization/interfaces/{id}/: get: - operationId: users_users_retrieve - description: Get a user object. + operationId: virtualization_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this interface. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -88335,28 +88741,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: users_users_update - description: Put a user object. + operationId: virtualization_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this interface. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -88366,28 +88772,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: users_users_partial_update - description: Patch a user object. + operationId: virtualization_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this interface. required: true tags: - - users + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -88396,83 +88802,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: users_users_destroy - description: Delete a user object. + operationId: virtualization_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this interface. required: true tags: - - users + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-groups/: + /api/virtualization/virtual-disks/: get: - operationId: virtualization_cluster_groups_list - description: Get a list of cluster group objects. + operationId: virtualization_virtual_disks_list + description: Get a list of virtual disk objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -88859,59 +89213,65 @@ paths: type: string description: Search - in: query - name: slug + name: size schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: size__empty schema: type: boolean - in: query - name: slug__ic + name: size__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: size__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: size__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__isw + name: size__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__n + name: size__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nic + name: tag schema: type: array items: @@ -88919,7 +89279,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tag__n schema: type: array items: @@ -88927,42 +89287,46 @@ paths: explode: true style: form - in: query - name: slug__niew + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: slug__nisw + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine explode: true style: form - in: query - name: tag + name: virtual_machine_id schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: tag__n + name: virtual_machine_id__n schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - virtualization security: @@ -88973,21 +89337,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterGroupList' + $ref: '#/components/schemas/PaginatedVirtualDiskList' description: '' post: - operationId: virtualization_cluster_groups_create - description: Post a list of cluster group objects. + operationId: virtualization_virtual_disks_create + description: Post a list of virtual disk objects. tags: - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -88997,11 +89361,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/VirtualDisk' description: '' put: - operationId: virtualization_cluster_groups_bulk_update - description: Put a list of cluster group objects. + operationId: virtualization_virtual_disks_bulk_update + description: Put a list of virtual disk objects. tags: - virtualization requestBody: @@ -89010,12 +89374,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -89027,11 +89391,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/VirtualDisk' description: '' patch: - operationId: virtualization_cluster_groups_bulk_partial_update - description: Patch a list of cluster group objects. + operationId: virtualization_virtual_disks_bulk_partial_update + description: Patch a list of virtual disk objects. tags: - virtualization requestBody: @@ -89040,12 +89404,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -89057,11 +89421,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/VirtualDisk' description: '' delete: - operationId: virtualization_cluster_groups_bulk_destroy - description: Delete a list of cluster group objects. + operationId: virtualization_virtual_disks_bulk_destroy + description: Delete a list of virtual disk objects. tags: - virtualization requestBody: @@ -89070,12 +89434,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -89083,16 +89447,16 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-groups/{id}/: + /api/virtualization/virtual-disks/{id}/: get: - operationId: virtualization_cluster_groups_retrieve - description: Get a cluster group object. + operationId: virtualization_virtual_disks_retrieve + description: Get a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this virtual disk. required: true tags: - virtualization @@ -89104,17 +89468,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/VirtualDisk' description: '' put: - operationId: virtualization_cluster_groups_update - description: Put a cluster group object. + operationId: virtualization_virtual_disks_update + description: Put a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this virtual disk. required: true tags: - virtualization @@ -89122,10 +89486,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/VirtualDiskRequest' required: true security: - cookieAuth: [] @@ -89135,17 +89499,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/VirtualDisk' description: '' patch: - operationId: virtualization_cluster_groups_partial_update - description: Patch a cluster group object. + operationId: virtualization_virtual_disks_partial_update + description: Patch a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this virtual disk. required: true tags: - virtualization @@ -89153,10 +89517,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedVirtualDiskRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedVirtualDiskRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -89165,17 +89529,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/VirtualDisk' description: '' delete: - operationId: virtualization_cluster_groups_destroy - description: Delete a cluster group object. + operationId: virtualization_virtual_disks_destroy + description: Delete a virtual disk object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this virtual disk. required: true tags: - virtualization @@ -89185,223 +89549,197 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-types/: + /api/virtualization/virtual-machines/: get: - operationId: virtualization_cluster_types_list - description: Get a list of cluster type objects. + operationId: virtualization_virtual_machines_list + description: Get a list of virtual machine objects. parameters: - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte + name: cluster schema: type: array items: type: string - format: date-time + description: Cluster explode: true style: form - in: query - name: created__lt + name: cluster__n schema: type: array items: type: string - format: date-time + description: Cluster explode: true style: form - in: query - name: created__lte + name: cluster_group schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__n + name: cluster_group__n schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: cluster_group_id schema: type: array items: - type: string + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: cluster_group_id__n schema: type: array items: - type: string + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: description__ie + name: cluster_id schema: type: array items: - type: string + type: integer + nullable: true + description: Cluster (ID) explode: true style: form - in: query - name: description__iew + name: cluster_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Cluster (ID) explode: true style: form - in: query - name: description__isw + name: cluster_type schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: description__n + name: cluster_type__n schema: type: array items: type: string + description: Cluster type (slug) explode: true style: form - in: query - name: description__nic + name: cluster_type_id schema: type: array items: - type: string + type: integer + description: Cluster type (ID) explode: true style: form - in: query - name: description__nie + name: cluster_type_id__n schema: type: array items: - type: string + type: integer + description: Cluster type (ID) explode: true style: form - in: query - name: description__niew + name: config_template_id schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: description__nisw + name: config_template_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: id + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__gte + name: contact_group schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: id__lt + name: contact_group__n schema: type: array items: type: integer - format: int32 + description: Contact group explode: true style: form - in: query - name: id__lte + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__n + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: last_updated + name: created schema: type: array items: @@ -89410,7 +89748,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__empty schema: type: array items: @@ -89419,7 +89757,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gt schema: type: array items: @@ -89428,7 +89766,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__gte schema: type: array items: @@ -89437,7 +89775,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lt schema: type: array items: @@ -89446,7 +89784,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__lte schema: type: array items: @@ -89455,7 +89793,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__n schema: type: array items: @@ -89463,19 +89801,13 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - in: query - name: name + name: description schema: type: array items: @@ -89483,11 +89815,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -89495,7 +89827,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -89503,7 +89835,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -89511,7 +89843,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -89519,7 +89851,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -89527,7 +89859,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -89535,7 +89867,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -89543,7 +89875,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -89551,425 +89883,234 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: device schema: - type: string - description: Search + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form - in: query - name: slug + name: device__n schema: type: array items: type: string + nullable: true + description: Device explode: true style: form - in: query - name: slug__empty + name: device_id schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form - in: query - name: slug__ic + name: device_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Device (ID) explode: true style: form - in: query - name: slug__ie + name: disk schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__iew + name: disk__empty + schema: + type: boolean + - in: query + name: disk__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__isw + name: disk__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__n + name: disk__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nic + name: disk__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nie + name: disk__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__niew + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nisw + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedClusterTypeList' - description: '' - post: - operationId: virtualization_cluster_types_create - description: Post a list of cluster type objects. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - put: - operationId: virtualization_cluster_types_bulk_update - description: Put a list of cluster type objects. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterType' - description: '' - patch: - operationId: virtualization_cluster_types_bulk_partial_update - description: Patch a list of cluster type objects. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterType' - description: '' - delete: - operationId: virtualization_cluster_types_bulk_destroy - description: Delete a list of cluster type objects. - tags: - - virtualization - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/virtualization/cluster-types/{id}/: - get: - operationId: virtualization_cluster_types_retrieve - description: Get a cluster type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cluster type. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - put: - operationId: virtualization_cluster_types_update - description: Put a cluster type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cluster type. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ClusterTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - patch: - operationId: virtualization_cluster_types_partial_update - description: Patch a cluster type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cluster type. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ClusterType' - description: '' - delete: - operationId: virtualization_cluster_types_destroy - description: Delete a cluster type object. - parameters: - - in: path - name: id + name: id__lte schema: - type: integer - description: A unique integer value identifying this cluster type. - required: true - tags: - - virtualization - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/virtualization/clusters/: - get: - operationId: virtualization_clusters_list - description: Get a list of cluster objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: contact + name: id__n schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: interface_count schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact_group__n + name: interface_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: contact_role + name: interface_count__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: interface_count__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: interface_count__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: last_updated schema: type: array items: @@ -89978,7 +90119,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__empty schema: type: array items: @@ -89987,7 +90128,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gt schema: type: array items: @@ -89996,7 +90137,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__gte schema: type: array items: @@ -90005,7 +90146,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lt schema: type: array items: @@ -90014,7 +90155,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__lte schema: type: array items: @@ -90023,24 +90164,27 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: description__empty + name: local_context_data schema: type: boolean + description: Has local config context data - in: query - name: description__ic + name: mac_address schema: type: array items: @@ -90048,7 +90192,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: mac_address__ic schema: type: array items: @@ -90056,7 +90200,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: mac_address__ie schema: type: array items: @@ -90064,7 +90208,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: mac_address__iew schema: type: array items: @@ -90072,7 +90216,7 @@ paths: explode: true style: form - in: query - name: description__n + name: mac_address__isw schema: type: array items: @@ -90080,7 +90224,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: mac_address__n schema: type: array items: @@ -90088,7 +90232,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: mac_address__nic schema: type: array items: @@ -90096,7 +90240,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: mac_address__nie schema: type: array items: @@ -90104,7 +90248,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: mac_address__niew schema: type: array items: @@ -90112,45 +90256,46 @@ paths: explode: true style: form - in: query - name: group + name: mac_address__nisw schema: type: array items: type: string - description: Parent group (slug) explode: true style: form - in: query - name: group__n + name: memory schema: type: array items: - type: string - description: Parent group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: memory__empty + schema: + type: boolean + - in: query + name: memory__gt schema: type: array items: type: integer - nullable: true - description: Parent group (ID) + format: int32 explode: true style: form - in: query - name: group_id__n + name: memory__gte schema: type: array items: type: integer - nullable: true - description: Parent group (ID) + format: int32 explode: true style: form - in: query - name: id + name: memory__lt schema: type: array items: @@ -90159,11 +90304,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: memory__lte schema: type: array items: @@ -90172,7 +90313,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: memory__n schema: type: array items: @@ -90181,237 +90322,257 @@ paths: explode: true style: form - in: query - name: id__lt + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer - - in: query - name: modified_by_request + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: name + name: platform schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: platform__n schema: type: array items: type: string + description: Platform (slug) explode: true style: form - in: query - name: name__ie + name: platform_id schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: name__iew + name: platform_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: name__isw + name: primary_ip4_id schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: name__n + name: primary_ip4_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: name__nic + name: primary_ip6_id schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: name__nie + name: primary_ip6_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: name__niew + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - in: query - name: name__nisw + name: region__n schema: type: array items: - type: string + type: integer + description: Region (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: region_id schema: - type: string + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form - in: query - name: q + name: region_id__n schema: - type: string - description: Search + type: array + items: + type: integer + description: Region (ID) + explode: true + style: form - in: query - name: region + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: region__n + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: region_id + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: region_id__n + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query @@ -90437,7 +90598,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -90445,7 +90607,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (slug) explode: true style: form - in: query @@ -90453,7 +90616,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -90461,7 +90625,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Site group (ID) explode: true style: form - in: query @@ -90490,7 +90655,7 @@ paths: type: array items: type: string - x-spec-enum-id: 79d20a734d0eecbb + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query @@ -90499,7 +90664,7 @@ paths: type: array items: type: string - x-spec-enum-id: 79d20a734d0eecbb + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query @@ -90541,7 +90706,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query @@ -90549,7 +90715,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query @@ -90557,7 +90724,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query @@ -90565,7 +90733,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query @@ -90589,49 +90758,129 @@ paths: explode: true style: form - in: query - name: type + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vcpus schema: type: array items: - type: string - description: Cluster type (slug) + type: number + format: double explode: true style: form - in: query - name: type__n + name: vcpus__empty + schema: + type: boolean + - in: query + name: vcpus__gt schema: type: array items: - type: string - description: Cluster type (slug) + type: number + format: double explode: true style: form - in: query - name: type_id + name: vcpus__gte schema: type: array items: - type: integer - description: Cluster type (ID) + type: number + format: double explode: true style: form - in: query - name: type_id__n + name: vcpus__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: virtual_disk_count schema: type: array items: type: integer - description: Cluster type (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request + name: virtual_disk_count__empty schema: - type: string - format: uuid - tags: - - virtualization - security: + type: boolean + - in: query + name: virtual_disk_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + tags: + - virtualization + security: - cookieAuth: [] - tokenAuth: [] responses: @@ -90639,21 +90888,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterList' + $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' description: '' post: - operationId: virtualization_clusters_create - description: Post a list of cluster objects. + operationId: virtualization_virtual_machines_create + description: Post a list of virtual machine objects. tags: - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -90663,11 +90912,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: virtualization_clusters_bulk_update - description: Put a list of cluster objects. + operationId: virtualization_virtual_machines_bulk_update + description: Put a list of virtual machine objects. tags: - virtualization requestBody: @@ -90676,12 +90925,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -90693,11 +90942,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: virtualization_clusters_bulk_partial_update - description: Patch a list of cluster objects. + operationId: virtualization_virtual_machines_bulk_partial_update + description: Patch a list of virtual machine objects. tags: - virtualization requestBody: @@ -90706,12 +90955,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -90723,11 +90972,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: virtualization_clusters_bulk_destroy - description: Delete a list of cluster objects. + operationId: virtualization_virtual_machines_bulk_destroy + description: Delete a list of virtual machine objects. tags: - virtualization requestBody: @@ -90736,12 +90985,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -90749,16 +90998,16 @@ paths: responses: '204': description: No response body - /api/virtualization/clusters/{id}/: + /api/virtualization/virtual-machines/{id}/: get: - operationId: virtualization_clusters_retrieve - description: Get a cluster object. + operationId: virtualization_virtual_machines_retrieve + description: Get a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this virtual machine. required: true tags: - virtualization @@ -90770,17 +91019,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: virtualization_clusters_update - description: Put a cluster object. + operationId: virtualization_virtual_machines_update + description: Put a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this virtual machine. required: true tags: - virtualization @@ -90788,10 +91037,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -90801,17 +91050,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: virtualization_clusters_partial_update - description: Patch a cluster object. + operationId: virtualization_virtual_machines_partial_update + description: Patch a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this virtual machine. required: true tags: - virtualization @@ -90819,10 +91068,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -90831,17 +91080,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: virtualization_clusters_destroy - description: Delete a cluster object. + operationId: virtualization_virtual_machines_destroy + description: Delete a virtual machine object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this virtual machine. required: true tags: - virtualization @@ -90851,65 +91100,53 @@ paths: responses: '204': description: No response body - /api/virtualization/interfaces/: - get: - operationId: virtualization_interfaces_list - description: Get a list of interface objects. + /api/virtualization/virtual-machines/{id}/render-config/: + post: + operationId: virtualization_virtual_machines_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: - in: query - name: bridge_id - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: bridge_id__n - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: cluster - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster__n - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_id + name: format schema: - type: array - items: - type: integer - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_id__n + type: string + enum: + - json + - txt + - in: path + name: id schema: - type: array - items: - type: integer - description: Cluster (ID) - explode: true - style: form + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + /api/vpn/ike-policies/: + get: + operationId: vpn_ike_policies_list + description: Get a list of IKE policy objects. + parameters: - in: query name: created schema: @@ -91062,10 +91299,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -91125,47 +91358,35 @@ paths: explode: true style: form - in: query - name: l2vpn + name: ike_proposal schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string explode: true style: form - in: query - name: l2vpn__n + name: ike_proposal__n schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string explode: true style: form - in: query - name: l2vpn_id + name: ike_proposal_id schema: type: array items: type: integer - description: L2VPN (ID) explode: true style: form - in: query - name: l2vpn_id__n + name: ike_proposal_id__n schema: type: array items: type: integer - description: L2VPN (ID) explode: true style: form - in: query @@ -91238,182 +91459,28 @@ paths: schema: type: integer - in: query - name: mac_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__niew + name: mode schema: type: array items: type: string + x-spec-enum-id: 64c1be7bdb2548ca explode: true style: form - in: query - name: mac_address__nisw + name: mode__n schema: type: array items: type: string + x-spec-enum-id: 64c1be7bdb2548ca explode: true style: form - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty - schema: - type: boolean - - in: query - name: mtu__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: name schema: @@ -91511,137 +91578,123 @@ paths: schema: type: string - in: query - name: parent_id + name: preshared_key schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form + type: string - in: query - name: parent_id__n + name: preshared_key__ic schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form + type: string - in: query - name: q + name: preshared_key__ie schema: type: string - description: Search - in: query - name: tag + name: preshared_key__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: tag__n + name: preshared_key__isw schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: updated_by_request + name: preshared_key__n schema: type: string - format: uuid - in: query - name: virtual_machine + name: preshared_key__nic + schema: + type: string + - in: query + name: preshared_key__nie + schema: + type: string + - in: query + name: preshared_key__niew + schema: + type: string + - in: query + name: preshared_key__nisw + schema: + type: string + - in: query + name: proposal schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine__n + name: proposal__n schema: type: array items: type: string - description: Virtual machine explode: true style: form - in: query - name: virtual_machine_id + name: proposal_id schema: type: array items: type: integer - description: Virtual machine (ID) explode: true style: form - in: query - name: virtual_machine_id__n + name: proposal_id__n schema: type: array items: type: integer - description: Virtual machine (ID) explode: true style: form - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id + name: q schema: type: string - description: Assigned VLAN + description: Search - in: query - name: vrf + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tag__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: version schema: type: array items: type: integer - description: VRF + x-spec-enum-id: 00872b77916a1fde explode: true style: form - in: query - name: vrf_id__n + name: version__n schema: type: array items: type: integer - description: VRF + x-spec-enum-id: 00872b77916a1fde explode: true style: form tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -91650,21 +91703,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVMInterfaceList' + $ref: '#/components/schemas/PaginatedIKEPolicyList' description: '' post: - operationId: virtualization_interfaces_create - description: Post a list of interface objects. + operationId: vpn_ike_policies_create + description: Post a list of IKE policy objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' required: true security: - cookieAuth: [] @@ -91674,25 +91727,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/IKEPolicy' description: '' put: - operationId: virtualization_interfaces_bulk_update - description: Put a list of interface objects. + operationId: vpn_ike_policies_bulk_update + description: Put a list of IKE policy objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -91704,25 +91757,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/IKEPolicy' description: '' patch: - operationId: virtualization_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: vpn_ike_policies_bulk_partial_update + description: Patch a list of IKE policy objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -91734,25 +91787,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/IKEPolicy' description: '' delete: - operationId: virtualization_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: vpn_ike_policies_bulk_destroy + description: Delete a list of IKE policy objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/IKEPolicyRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/IKEPolicyRequest' required: true security: - cookieAuth: [] @@ -91760,19 +91813,19 @@ paths: responses: '204': description: No response body - /api/virtualization/interfaces/{id}/: + /api/vpn/ike-policies/{id}/: get: - operationId: virtualization_interfaces_retrieve - description: Get a interface object. + operationId: vpn_ike_policies_retrieve + description: Get a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this IKE policy. required: true tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -91781,28 +91834,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/IKEPolicy' description: '' put: - operationId: virtualization_interfaces_update - description: Put a interface object. + operationId: vpn_ike_policies_update + description: Put a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this IKE policy. required: true tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/WritableIKEPolicyRequest' required: true security: - cookieAuth: [] @@ -91812,28 +91865,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/IKEPolicy' description: '' patch: - operationId: virtualization_interfaces_partial_update - description: Patch a interface object. + operationId: vpn_ike_policies_partial_update + description: Patch a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this IKE policy. required: true tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91842,31 +91895,67 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/IKEPolicy' description: '' delete: - operationId: virtualization_interfaces_destroy - description: Delete a interface object. + operationId: vpn_ike_policies_destroy + description: Delete a IKE policy object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this IKE policy. required: true tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-disks/: + /api/vpn/ike-proposals/: get: - operationId: virtualization_virtual_disks_list - description: Get a list of virtual disk objects. + operationId: vpn_ike_proposals_list + description: Get a list of IKE proposal objects. parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + explode: true + style: form + - in: query + name: authentication_method + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__n + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form - in: query name: created schema: @@ -92019,6 +92108,44 @@ paths: type: string explode: true style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form - in: query name: id schema: @@ -92077,6 +92204,42 @@ paths: format: int32 explode: true style: form + - in: query + name: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -92253,7 +92416,7 @@ paths: type: string description: Search - in: query - name: size + name: sa_lifetime schema: type: array items: @@ -92262,11 +92425,11 @@ paths: explode: true style: form - in: query - name: size__empty + name: sa_lifetime__empty schema: type: boolean - in: query - name: size__gt + name: sa_lifetime__gt schema: type: array items: @@ -92275,7 +92438,7 @@ paths: explode: true style: form - in: query - name: size__gte + name: sa_lifetime__gte schema: type: array items: @@ -92284,7 +92447,7 @@ paths: explode: true style: form - in: query - name: size__lt + name: sa_lifetime__lt schema: type: array items: @@ -92293,7 +92456,7 @@ paths: explode: true style: form - in: query - name: size__lte + name: sa_lifetime__lte schema: type: array items: @@ -92302,7 +92465,7 @@ paths: explode: true style: form - in: query - name: size__n + name: sa_lifetime__n schema: type: array items: @@ -92331,44 +92494,8 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine__n - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: virtual_machine_id__n - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -92377,21 +92504,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDiskList' + $ref: '#/components/schemas/PaginatedIKEProposalList' description: '' post: - operationId: virtualization_virtual_disks_create - description: Post a list of virtual disk objects. + operationId: vpn_ike_proposals_create + description: Post a list of IKE proposal objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' required: true security: - cookieAuth: [] @@ -92401,25 +92528,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/IKEProposal' description: '' put: - operationId: virtualization_virtual_disks_bulk_update - description: Put a list of virtual disk objects. + operationId: vpn_ike_proposals_bulk_update + description: Put a list of IKE proposal objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -92431,25 +92558,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/IKEProposal' description: '' patch: - operationId: virtualization_virtual_disks_bulk_partial_update - description: Patch a list of virtual disk objects. + operationId: vpn_ike_proposals_bulk_partial_update + description: Patch a list of IKE proposal objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -92461,25 +92588,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/IKEProposal' description: '' delete: - operationId: virtualization_virtual_disks_bulk_destroy - description: Delete a list of virtual disk objects. + operationId: vpn_ike_proposals_bulk_destroy + description: Delete a list of IKE proposal objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/IKEProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/IKEProposalRequest' required: true security: - cookieAuth: [] @@ -92487,19 +92614,19 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-disks/{id}/: + /api/vpn/ike-proposals/{id}/: get: - operationId: virtualization_virtual_disks_retrieve - description: Get a virtual disk object. + operationId: vpn_ike_proposals_retrieve + description: Get a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this IKE proposal. required: true tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -92508,28 +92635,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/IKEProposal' description: '' put: - operationId: virtualization_virtual_disks_update - description: Put a virtual disk object. + operationId: vpn_ike_proposals_update + description: Put a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this IKE proposal. required: true tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableIKEProposalRequest' required: true security: - cookieAuth: [] @@ -92539,28 +92666,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/IKEProposal' description: '' patch: - operationId: virtualization_virtual_disks_partial_update - description: Patch a virtual disk object. + operationId: vpn_ike_proposals_partial_update + description: Patch a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this IKE proposal. required: true tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -92569,213 +92696,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/IKEProposal' description: '' delete: - operationId: virtualization_virtual_disks_destroy - description: Delete a virtual disk object. + operationId: vpn_ike_proposals_destroy + description: Delete a IKE proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this IKE proposal. required: true tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-machines/: + /api/vpn/ipsec-policies/: get: - operationId: virtualization_virtual_machines_list - description: Get a list of virtual machine objects. + operationId: vpn_ipsec_policies_list + description: Get a list of IPSec policy objects. parameters: - - in: query - name: cluster - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster__n - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_group - schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form - - in: query - name: cluster_group__n - schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form - - in: query - name: cluster_group_id - schema: - type: array - items: - type: integer - description: Cluster group (ID) - explode: true - style: form - - in: query - name: cluster_group_id__n - schema: - type: array - items: - type: integer - description: Cluster group (ID) - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: integer - nullable: true - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_type - schema: - type: array - items: - type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: cluster_type__n - schema: - type: array - items: - type: string - description: Cluster type (slug) - explode: true - style: form - - in: query - name: cluster_type_id - schema: - type: array - items: - type: integer - description: Cluster type (ID) - explode: true - style: form - - in: query - name: cluster_type_id__n - schema: - type: array - items: - type: integer - description: Cluster type (ID) - explode: true - style: form - - in: query - name: config_template_id - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: config_template_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -92928,109 +92873,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: disk - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__empty - schema: - type: boolean - - in: query - name: disk__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - in: query name: id schema: @@ -93090,61 +92932,35 @@ paths: explode: true style: form - in: query - name: interface_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__gte + name: ipsec_proposal schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lt + name: ipsec_proposal__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_count__lte + name: ipsec_proposal_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: interface_count__n + name: ipsec_proposal_id__n schema: type: array items: type: integer - format: int32 explode: true style: form - in: query @@ -93217,12 +93033,12 @@ paths: schema: type: integer - in: query - name: local_context_data + name: modified_by_request schema: - type: boolean - description: Has local config context data + type: string + format: uuid - in: query - name: mac_address + name: name schema: type: array items: @@ -93230,7 +93046,11 @@ paths: explode: true style: form - in: query - name: mac_address__ic + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -93238,7 +93058,7 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: name__ie schema: type: array items: @@ -93246,7 +93066,7 @@ paths: explode: true style: form - in: query - name: mac_address__iew + name: name__iew schema: type: array items: @@ -93254,7 +93074,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: name__isw schema: type: array items: @@ -93262,7 +93082,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: name__n schema: type: array items: @@ -93270,7 +93090,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: name__nic schema: type: array items: @@ -93278,7 +93098,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: name__nie schema: type: array items: @@ -93286,7 +93106,7 @@ paths: explode: true style: form - in: query - name: mac_address__niew + name: name__niew schema: type: array items: @@ -93294,78 +93114,86 @@ paths: explode: true style: form - in: query - name: mac_address__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: memory + name: pfs_group schema: type: array items: type: integer - format: int32 + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy explode: true style: form - in: query - name: memory__empty - schema: - type: boolean - - in: query - name: memory__gt + name: pfs_group__n schema: type: array items: type: integer - format: int32 + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy explode: true style: form - in: query - name: memory__gte + name: proposal schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: memory__lt + name: proposal__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: memory__lte + name: proposal_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: memory__n + name: proposal_id__n schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: modified_by_request + name: q schema: type: string - format: uuid + description: Search - in: query - name: name + name: tag schema: type: array items: @@ -93373,11 +93201,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: tag__n schema: type: array items: @@ -93385,162 +93209,375 @@ paths: explode: true style: form - in: query - name: name__ie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecPolicyList' + description: '' + post: + operationId: vpn_ipsec_policies_create + description: Post a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + put: + operationId: vpn_ipsec_policies_bulk_update + description: Put a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + patch: + operationId: vpn_ipsec_policies_bulk_partial_update + description: Patch a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + delete: + operationId: vpn_ipsec_policies_bulk_destroy + description: Delete a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-policies/{id}/: + get: + operationId: vpn_ipsec_policies_retrieve + description: Get a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + put: + operationId: vpn_ipsec_policies_update + description: Put a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + patch: + operationId: vpn_ipsec_policies_partial_update + description: Patch a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + delete: + operationId: vpn_ipsec_policies_destroy + description: Delete a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-profiles/: + get: + operationId: vpn_ipsec_profiles_list + description: Get a list of IPSec profile objects. + parameters: - in: query - name: name__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + - in: query + name: created_by_request schema: type: string + format: uuid - in: query - name: platform + name: description schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: description__ie schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: description__iew schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id + name: description__isw schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: description__n schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: description__nic schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: description__nie schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: description__niew schema: type: array items: @@ -93548,7 +93585,7 @@ paths: explode: true style: form - in: query - name: region__n + name: description__nisw schema: type: array items: @@ -93556,233 +93593,257 @@ paths: explode: true style: form - in: query - name: region_id + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: region_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: role + name: id__gte schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: id__lt schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: id__lte schema: type: array items: type: integer - nullable: true - description: Role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: id__n schema: type: array items: type: integer - nullable: true - description: Role (ID) + format: int32 explode: true style: form - in: query - name: serial + name: ike_policy schema: type: array items: type: string + description: IKE policy (name) explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: ike_policy__n schema: type: array items: type: string + description: IKE policy (name) explode: true style: form - in: query - name: serial__ie + name: ike_policy_id schema: type: array items: - type: string + type: integer + description: IKE policy (ID) explode: true style: form - in: query - name: serial__iew + name: ike_policy_id__n schema: type: array items: - type: string + type: integer + description: IKE policy (ID) explode: true style: form - in: query - name: serial__isw + name: ipsec_policy schema: type: array items: type: string + description: IPSec policy (name) explode: true style: form - in: query - name: serial__n + name: ipsec_policy__n schema: type: array items: type: string + description: IPSec policy (name) explode: true style: form - in: query - name: serial__nic + name: ipsec_policy_id schema: type: array items: - type: string + type: integer + description: IPSec policy (ID) explode: true style: form - in: query - name: serial__nie + name: ipsec_policy_id__n schema: type: array items: - type: string + type: integer + description: IPSec policy (ID) explode: true style: form - in: query - name: serial__niew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: serial__nisw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: site + name: last_updated__gt schema: type: array items: type: string - description: Site (slug) + format: date-time explode: true style: form - in: query - name: site__n + name: last_updated__gte schema: type: array items: type: string - description: Site (slug) + format: date-time explode: true style: form - in: query - name: site_group + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: site_group__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: site_group_id + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: site_group_id__n + name: mode schema: type: array items: type: string + x-spec-enum-id: 1136c2cdfee84436 explode: true style: form - in: query - name: site_id + name: mode__n schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string + x-spec-enum-id: 1136c2cdfee84436 explode: true style: form - in: query - name: site_id__n + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: integer - nullable: true - description: Site (ID) + type: string explode: true style: form - in: query - name: status + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: status__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tag + name: name__iew schema: type: array items: @@ -93790,7 +93851,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__isw schema: type: array items: @@ -93798,25 +93859,23 @@ paths: explode: true style: form - in: query - name: tenant + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nie schema: type: array items: @@ -93824,15 +93883,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id + name: name__niew schema: type: array items: @@ -93840,156 +93891,53 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - - in: query - name: vcpus - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__empty - schema: - type: boolean - - in: query - name: vcpus__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - in: query - name: vcpus__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: virtual_disk_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__empty - schema: - type: boolean - - in: query - name: virtual_disk_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__gte + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: virtual_disk_count__lt + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: virtual_disk_count__lte + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: virtual_disk_count__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -93998,21 +93946,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + $ref: '#/components/schemas/PaginatedIPSecProfileList' description: '' post: - operationId: virtualization_virtual_machines_create - description: Post a list of virtual machine objects. + operationId: vpn_ipsec_profiles_create + description: Post a list of IPSec profile objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' required: true security: - cookieAuth: [] @@ -94022,25 +93970,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/IPSecProfile' description: '' put: - operationId: virtualization_virtual_machines_bulk_update - description: Put a list of virtual machine objects. + operationId: vpn_ipsec_profiles_bulk_update + description: Put a list of IPSec profile objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -94052,25 +94000,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/IPSecProfile' description: '' patch: - operationId: virtualization_virtual_machines_bulk_partial_update - description: Patch a list of virtual machine objects. + operationId: vpn_ipsec_profiles_bulk_partial_update + description: Patch a list of IPSec profile objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -94082,25 +94030,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/IPSecProfile' description: '' delete: - operationId: virtualization_virtual_machines_bulk_destroy - description: Delete a list of virtual machine objects. + operationId: vpn_ipsec_profiles_bulk_destroy + description: Delete a list of IPSec profile objects. tags: - - virtualization + - vpn requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/IPSecProfileRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/IPSecProfileRequest' required: true security: - cookieAuth: [] @@ -94108,19 +94056,19 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/: + /api/vpn/ipsec-profiles/{id}/: get: - operationId: virtualization_virtual_machines_retrieve - description: Get a virtual machine object. + operationId: vpn_ipsec_profiles_retrieve + description: Get a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this IPSec profile. required: true tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] @@ -94129,28 +94077,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/IPSecProfile' description: '' put: - operationId: virtualization_virtual_machines_update - description: Put a virtual machine object. + operationId: vpn_ipsec_profiles_update + description: Put a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this IPSec profile. required: true tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableIPSecProfileRequest' required: true security: - cookieAuth: [] @@ -94160,28 +94108,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/IPSecProfile' description: '' patch: - operationId: virtualization_virtual_machines_partial_update - description: Patch a virtual machine object. + operationId: vpn_ipsec_profiles_partial_update + description: Patch a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this IPSec profile. required: true tags: - - virtualization + - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94190,73 +94138,51 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/IPSecProfile' description: '' delete: - operationId: virtualization_virtual_machines_destroy - description: Delete a virtual machine object. + operationId: vpn_ipsec_profiles_destroy + description: Delete a IPSec profile object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this IPSec profile. required: true tags: - - virtualization + - vpn security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/render-config/: - post: - operationId: virtualization_virtual_machines_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/vpn/ipsec-proposals/: + get: + operationId: vpn_ipsec_proposals_list + description: Get a list of IPSec proposal objects. parameters: - in: query - name: format + name: authentication_algorithm schema: - type: string - enum: - - json - - txt - - in: path - name: id + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__n schema: - type: integer - description: A unique integer value identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - /api/vpn/ike-policies/: - get: - operationId: vpn_ike_policies_list - description: Get a list of IKE policy objects. - parameters: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form - in: query name: created schema: @@ -94409,6 +94335,26 @@ paths: type: string explode: true style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form - in: query name: id schema: @@ -94468,35 +94414,39 @@ paths: explode: true style: form - in: query - name: ike_proposal + name: ipsec_policy schema: type: array items: type: string + description: IPSec policy (name) explode: true style: form - in: query - name: ike_proposal__n + name: ipsec_policy__n schema: type: array items: type: string + description: IPSec policy (name) explode: true style: form - in: query - name: ike_proposal_id + name: ipsec_policy_id schema: type: array items: type: integer + description: IPSec policy (ID) explode: true style: form - in: query - name: ike_proposal_id__n + name: ipsec_policy_id__n schema: type: array items: type: integer + description: IPSec policy (ID) explode: true style: form - in: query @@ -94568,24 +94518,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mode - schema: - type: array - items: - type: string - x-spec-enum-id: 64c1be7bdb2548ca - explode: true - style: form - - in: query - name: mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 64c1be7bdb2548ca - explode: true - style: form - in: query name: modified_by_request schema: @@ -94688,89 +94620,147 @@ paths: schema: type: string - in: query - name: preshared_key + name: q schema: type: string + description: Search - in: query - name: preshared_key__ic + name: sa_lifetime_data schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__ie + name: sa_lifetime_data__empty schema: - type: string + type: boolean - in: query - name: preshared_key__iew + name: sa_lifetime_data__gt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__isw + name: sa_lifetime_data__gte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__n + name: sa_lifetime_data__lt schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__nic + name: sa_lifetime_data__lte schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__nie + name: sa_lifetime_data__n schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__niew + name: sa_lifetime_seconds schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: preshared_key__nisw + name: sa_lifetime_seconds__empty schema: - type: string + type: boolean - in: query - name: q + name: sa_lifetime_seconds__gt schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: tag + name: sa_lifetime_seconds__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: sa_lifetime_seconds__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request + name: sa_lifetime_seconds__lte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: version + name: sa_lifetime_seconds__n schema: type: array items: type: integer - x-spec-enum-id: 00872b77916a1fde + format: int32 explode: true style: form - in: query - name: version__n + name: tag schema: type: array items: - type: integer - x-spec-enum-id: 00872b77916a1fde + type: string explode: true style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - vpn security: @@ -94781,21 +94771,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEPolicyList' + $ref: '#/components/schemas/PaginatedIPSecProposalList' description: '' post: - operationId: vpn_ike_policies_create - description: Post a list of IKE policy objects. + operationId: vpn_ipsec_proposals_create + description: Post a list of IPSec proposal objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' required: true security: - cookieAuth: [] @@ -94805,11 +94795,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/IPSecProposal' description: '' put: - operationId: vpn_ike_policies_bulk_update - description: Put a list of IKE policy objects. + operationId: vpn_ipsec_proposals_bulk_update + description: Put a list of IPSec proposal objects. tags: - vpn requestBody: @@ -94818,12 +94808,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -94835,11 +94825,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/IPSecProposal' description: '' patch: - operationId: vpn_ike_policies_bulk_partial_update - description: Patch a list of IKE policy objects. + operationId: vpn_ipsec_proposals_bulk_partial_update + description: Patch a list of IPSec proposal objects. tags: - vpn requestBody: @@ -94848,12 +94838,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -94865,11 +94855,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/IPSecProposal' description: '' delete: - operationId: vpn_ike_policies_bulk_destroy - description: Delete a list of IKE policy objects. + operationId: vpn_ipsec_proposals_bulk_destroy + description: Delete a list of IPSec proposal objects. tags: - vpn requestBody: @@ -94878,12 +94868,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/IPSecProposalRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/IPSecProposalRequest' required: true security: - cookieAuth: [] @@ -94891,16 +94881,16 @@ paths: responses: '204': description: No response body - /api/vpn/ike-policies/{id}/: + /api/vpn/ipsec-proposals/{id}/: get: - operationId: vpn_ike_policies_retrieve - description: Get a IKE policy object. + operationId: vpn_ipsec_proposals_retrieve + description: Get a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -94912,17 +94902,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/IPSecProposal' description: '' put: - operationId: vpn_ike_policies_update - description: Put a IKE policy object. + operationId: vpn_ipsec_proposals_update + description: Put a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -94930,10 +94920,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/WritableIPSecProposalRequest' required: true security: - cookieAuth: [] @@ -94943,17 +94933,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/IPSecProposal' description: '' patch: - operationId: vpn_ike_policies_partial_update - description: Patch a IKE policy object. + operationId: vpn_ipsec_proposals_partial_update + description: Patch a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -94961,10 +94951,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94973,17 +94963,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/IPSecProposal' description: '' delete: - operationId: vpn_ike_policies_destroy - description: Delete a IKE policy object. + operationId: vpn_ipsec_proposals_destroy + description: Delete a IPSec proposal object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this IPSec proposal. required: true tags: - vpn @@ -94993,85 +94983,79 @@ paths: responses: '204': description: No response body - /api/vpn/ike-proposals/: + /api/vpn/l2vpn-terminations/: get: - operationId: vpn_ike_proposals_list - description: Get a list of IKE proposal objects. + operationId: vpn_l2vpn_terminations_list + description: Get a list of L2VPN termination objects. parameters: - in: query - name: authentication_algorithm + name: assigned_object_id schema: type: array items: - type: string - x-spec-enum-id: 0830e8839f5dea4f + type: integer + format: int32 explode: true style: form - in: query - name: authentication_algorithm__n + name: assigned_object_id__empty schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - explode: true - style: form + type: boolean - in: query - name: authentication_method + name: assigned_object_id__gt schema: type: array items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 + type: integer + format: int32 explode: true style: form - in: query - name: authentication_method__n + name: assigned_object_id__gte schema: type: array items: - type: string - x-spec-enum-id: 92bb2f1103b3a262 + type: integer + format: int32 explode: true style: form - in: query - name: created + name: assigned_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: assigned_object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: assigned_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: assigned_object_type schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string - in: query - name: created__lt + name: assigned_object_type__n + schema: + type: string + - in: query + name: created schema: type: array items: @@ -95080,7 +95064,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: created__empty schema: type: array items: @@ -95089,7 +95073,7 @@ paths: explode: true style: form - in: query - name: created__n + name: created__gt schema: type: array items: @@ -95098,134 +95082,126 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: description__n + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: description__nic + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: description__nie + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: description__niew + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: description__nisw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: encryption_algorithm + name: id__empty schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - explode: true - style: form + type: boolean - in: query - name: encryption_algorithm__n + name: id__gt schema: type: array items: - type: string - x-spec-enum-id: b022535cfdee79fe + type: integer + format: int32 explode: true style: form - in: query - name: group + name: id__gte schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID + format: int32 explode: true style: form - in: query - name: group__n + name: id__lt schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID + format: int32 explode: true style: form - in: query - name: id + name: id__lte schema: type: array items: @@ -95234,11 +95210,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -95247,75 +95219,75 @@ paths: explode: true style: form - in: query - name: id__gte + name: interface schema: type: array items: - type: integer - format: int32 + type: string + description: Interface (name) explode: true style: form - in: query - name: id__lt + name: interface__n schema: type: array items: - type: integer - format: int32 + type: string + description: Interface (name) explode: true style: form - in: query - name: id__lte + name: interface_id schema: type: array items: type: integer - format: int32 + description: Interface (ID) explode: true style: form - in: query - name: id__n + name: interface_id__n schema: type: array items: type: integer - format: int32 + description: Interface (ID) explode: true style: form - in: query - name: ike_policy + name: l2vpn schema: type: array items: type: string - description: IKE policy (name) + description: L2VPN (slug) explode: true style: form - in: query - name: ike_policy__n + name: l2vpn__n schema: type: array items: type: string - description: IKE policy (name) + description: L2VPN (slug) explode: true style: form - in: query - name: ike_policy_id + name: l2vpn_id schema: type: array items: type: integer - description: IKE policy (ID) + description: L2VPN (ID) explode: true style: form - in: query - name: ike_policy_id__n + name: l2vpn_id__n schema: type: array items: type: integer - description: IKE policy (ID) + description: L2VPN (ID) explode: true style: form - in: query @@ -95392,20 +95364,25 @@ paths: schema: type: string format: uuid - - in: query - name: name + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: region schema: type: array items: @@ -95413,15 +95390,16 @@ paths: explode: true style: form - in: query - name: name__ie + name: region_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: site schema: type: array items: @@ -95429,15 +95407,16 @@ paths: explode: true style: form - in: query - name: name__isw + name: site_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: tag schema: type: array items: @@ -95445,7 +95424,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: tag__n schema: type: array items: @@ -95453,125 +95432,153 @@ paths: explode: true style: form - in: query - name: name__nie + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: name__niew + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: name__nisw + name: virtual_machine_id schema: type: array items: - type: string + type: integer + description: Virtual machine (ID) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: sa_lifetime + name: virtual_machine_id__n schema: type: array items: type: integer - format: int32 + description: Virtual machine (ID) explode: true style: form - in: query - name: sa_lifetime__empty - schema: - type: boolean - - in: query - name: sa_lifetime__gt + name: vlan schema: type: array items: - type: integer - format: int32 + type: string + description: VLAN (name) explode: true style: form - in: query - name: sa_lifetime__gte + name: vlan__n schema: type: array items: - type: integer - format: int32 + type: string + description: VLAN (name) explode: true style: form - in: query - name: sa_lifetime__lt + name: vlan_id schema: type: array items: type: integer - format: int32 + description: VLAN (ID) explode: true style: form - in: query - name: sa_lifetime__lte + name: vlan_id__n schema: type: array items: type: integer - format: int32 + description: VLAN (ID) explode: true style: form - in: query - name: sa_lifetime__n + name: vlan_vid + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vminterface schema: type: array items: - type: integer - format: int32 + type: string + description: VM interface (name) explode: true style: form - in: query - name: tag + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: tag__n + name: vminterface_id schema: type: array items: - type: string + type: integer + description: VM Interface (ID) explode: true style: form - in: query - name: updated_by_request + name: vminterface_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: VM Interface (ID) + explode: true + style: form tags: - vpn security: @@ -95582,21 +95589,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEProposalList' + $ref: '#/components/schemas/PaginatedL2VPNTerminationList' description: '' post: - operationId: vpn_ike_proposals_create - description: Post a list of IKE proposal objects. + operationId: vpn_l2vpn_terminations_create + description: Post a list of L2VPN termination objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -95606,11 +95613,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/L2VPNTermination' description: '' put: - operationId: vpn_ike_proposals_bulk_update - description: Put a list of IKE proposal objects. + operationId: vpn_l2vpn_terminations_bulk_update + description: Put a list of L2VPN termination objects. tags: - vpn requestBody: @@ -95619,12 +95626,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -95636,11 +95643,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/L2VPNTermination' description: '' patch: - operationId: vpn_ike_proposals_bulk_partial_update - description: Patch a list of IKE proposal objects. + operationId: vpn_l2vpn_terminations_bulk_partial_update + description: Patch a list of L2VPN termination objects. tags: - vpn requestBody: @@ -95649,12 +95656,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -95666,11 +95673,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/L2VPNTermination' description: '' delete: - operationId: vpn_ike_proposals_bulk_destroy - description: Delete a list of IKE proposal objects. + operationId: vpn_l2vpn_terminations_bulk_destroy + description: Delete a list of L2VPN termination objects. tags: - vpn requestBody: @@ -95679,12 +95686,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -95692,16 +95699,16 @@ paths: responses: '204': description: No response body - /api/vpn/ike-proposals/{id}/: + /api/vpn/l2vpn-terminations/{id}/: get: - operationId: vpn_ike_proposals_retrieve - description: Get a IKE proposal object. + operationId: vpn_l2vpn_terminations_retrieve + description: Get a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -95713,17 +95720,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/L2VPNTermination' description: '' put: - operationId: vpn_ike_proposals_update - description: Put a IKE proposal object. + operationId: vpn_l2vpn_terminations_update + description: Put a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -95731,10 +95738,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/L2VPNTerminationRequest' required: true security: - cookieAuth: [] @@ -95744,17 +95751,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/L2VPNTermination' description: '' patch: - operationId: vpn_ike_proposals_partial_update - description: Patch a IKE proposal object. + operationId: vpn_l2vpn_terminations_partial_update + description: Patch a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -95762,10 +95769,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -95774,17 +95781,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/L2VPNTermination' description: '' delete: - operationId: vpn_ike_proposals_destroy - description: Delete a IKE proposal object. + operationId: vpn_l2vpn_terminations_destroy + description: Delete a L2VPN termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this L2VPN termination. required: true tags: - vpn @@ -95794,10 +95801,10 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-policies/: + /api/vpn/l2vpns/: get: - operationId: vpn_ipsec_policies_list - description: Get a list of IPSec policy objects. + operationId: vpn_l2vpns_list + description: Get a list of L2VPN objects. parameters: - in: query name: created @@ -95951,6 +95958,42 @@ paths: type: string explode: true style: form + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -96010,35 +96053,97 @@ paths: explode: true style: form - in: query - name: ipsec_proposal + name: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: import_target schema: type: array items: type: string + description: Import target (name) explode: true style: form - in: query - name: ipsec_proposal__n + name: import_target__n schema: type: array items: type: string + description: Import target (name) explode: true style: form - in: query - name: ipsec_proposal_id + name: import_target_id schema: type: array items: type: integer + description: Import target explode: true style: form - in: query - name: ipsec_proposal_id__n + name: import_target_id__n schema: type: array items: type: integer + description: Import target explode: true style: form - in: query @@ -96212,46 +96317,200 @@ paths: schema: type: string - in: query - name: pfs_group + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 - nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + description: Tenant Group (slug) explode: true style: form - in: query - name: pfs_group__n + name: tenant_group__n + schema: + type: array + items: + type: integer + description: Tenant Group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + description: Tenant (ID) explode: true style: form - in: query - name: q + name: tenant_id__n schema: - type: string - description: Search + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: tag + name: type schema: type: array items: type: string + x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query - name: tag__n + name: type__n schema: type: array items: type: string + x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query @@ -96269,21 +96528,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecPolicyList' + $ref: '#/components/schemas/PaginatedL2VPNList' description: '' post: - operationId: vpn_ipsec_policies_create - description: Post a list of IPSec policy objects. + operationId: vpn_l2vpns_create + description: Post a list of L2VPN objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' required: true security: - cookieAuth: [] @@ -96293,11 +96552,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/L2VPN' description: '' put: - operationId: vpn_ipsec_policies_bulk_update - description: Put a list of IPSec policy objects. + operationId: vpn_l2vpns_bulk_update + description: Put a list of L2VPN objects. tags: - vpn requestBody: @@ -96306,12 +96565,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -96323,11 +96582,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/L2VPN' description: '' patch: - operationId: vpn_ipsec_policies_bulk_partial_update - description: Patch a list of IPSec policy objects. + operationId: vpn_l2vpns_bulk_partial_update + description: Patch a list of L2VPN objects. tags: - vpn requestBody: @@ -96336,12 +96595,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -96353,11 +96612,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/L2VPN' description: '' delete: - operationId: vpn_ipsec_policies_bulk_destroy - description: Delete a list of IPSec policy objects. + operationId: vpn_l2vpns_bulk_destroy + description: Delete a list of L2VPN objects. tags: - vpn requestBody: @@ -96366,12 +96625,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/L2VPNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/L2VPNRequest' required: true security: - cookieAuth: [] @@ -96379,16 +96638,16 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-policies/{id}/: + /api/vpn/l2vpns/{id}/: get: - operationId: vpn_ipsec_policies_retrieve - description: Get a IPSec policy object. + operationId: vpn_l2vpns_retrieve + description: Get a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this L2VPN. required: true tags: - vpn @@ -96400,17 +96659,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/L2VPN' description: '' put: - operationId: vpn_ipsec_policies_update - description: Put a IPSec policy object. + operationId: vpn_l2vpns_update + description: Put a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this L2VPN. required: true tags: - vpn @@ -96418,10 +96677,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableL2VPNRequest' required: true security: - cookieAuth: [] @@ -96431,17 +96690,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/L2VPN' description: '' patch: - operationId: vpn_ipsec_policies_partial_update - description: Patch a IPSec policy object. + operationId: vpn_l2vpns_partial_update + description: Patch a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this L2VPN. required: true tags: - vpn @@ -96449,10 +96708,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -96461,17 +96720,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/L2VPN' description: '' delete: - operationId: vpn_ipsec_policies_destroy - description: Delete a IPSec policy object. + operationId: vpn_l2vpns_destroy + description: Delete a L2VPN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this L2VPN. required: true tags: - vpn @@ -96481,10 +96740,10 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-profiles/: + /api/vpn/tunnel-groups/: get: - operationId: vpn_ipsec_profiles_list - description: Get a list of IPSec profile objects. + operationId: vpn_tunnel_groups_list + description: Get a list of tunnel group objects. parameters: - in: query name: created @@ -96696,78 +96955,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ike_policy - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy__n - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy_id - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ike_policy_id__n - schema: - type: array - items: - type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ipsec_policy - schema: - type: array - items: - type: string - description: IPSec policy (name) - explode: true - style: form - - in: query - name: ipsec_policy__n - schema: - type: array - items: - type: string - description: IPSec policy (name) - explode: true - style: form - - in: query - name: ipsec_policy_id - schema: - type: array - items: - type: integer - description: IPSec policy (ID) - explode: true - style: form - - in: query - name: ipsec_policy_id__n - schema: - type: array - items: - type: integer - description: IPSec policy (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -96837,24 +97024,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mode - schema: - type: array - items: - type: string - x-spec-enum-id: 1136c2cdfee84436 - explode: true - style: form - - in: query - name: mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 1136c2cdfee84436 - explode: true - style: form - in: query name: modified_by_request schema: @@ -96961,6 +97130,90 @@ paths: schema: type: string description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -96992,21 +97245,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProfileList' + $ref: '#/components/schemas/PaginatedTunnelGroupList' description: '' post: - operationId: vpn_ipsec_profiles_create - description: Post a list of IPSec profile objects. + operationId: vpn_tunnel_groups_create + description: Post a list of tunnel group objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -97016,11 +97269,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/TunnelGroup' description: '' put: - operationId: vpn_ipsec_profiles_bulk_update - description: Put a list of IPSec profile objects. + operationId: vpn_tunnel_groups_bulk_update + description: Put a list of tunnel group objects. tags: - vpn requestBody: @@ -97029,12 +97282,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -97046,11 +97299,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/TunnelGroup' description: '' patch: - operationId: vpn_ipsec_profiles_bulk_partial_update - description: Patch a list of IPSec profile objects. + operationId: vpn_tunnel_groups_bulk_partial_update + description: Patch a list of tunnel group objects. tags: - vpn requestBody: @@ -97059,12 +97312,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -97076,11 +97329,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/TunnelGroup' description: '' delete: - operationId: vpn_ipsec_profiles_bulk_destroy - description: Delete a list of IPSec profile objects. + operationId: vpn_tunnel_groups_bulk_destroy + description: Delete a list of tunnel group objects. tags: - vpn requestBody: @@ -97089,12 +97342,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -97102,16 +97355,16 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-profiles/{id}/: + /api/vpn/tunnel-groups/{id}/: get: - operationId: vpn_ipsec_profiles_retrieve - description: Get a IPSec profile object. + operationId: vpn_tunnel_groups_retrieve + description: Get a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tunnel group. required: true tags: - vpn @@ -97123,17 +97376,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/TunnelGroup' description: '' put: - operationId: vpn_ipsec_profiles_update - description: Put a IPSec profile object. + operationId: vpn_tunnel_groups_update + description: Put a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tunnel group. required: true tags: - vpn @@ -97141,10 +97394,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TunnelGroupRequest' required: true security: - cookieAuth: [] @@ -97154,17 +97407,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/TunnelGroup' description: '' patch: - operationId: vpn_ipsec_profiles_partial_update - description: Patch a IPSec profile object. + operationId: vpn_tunnel_groups_partial_update + description: Patch a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tunnel group. required: true tags: - vpn @@ -97172,10 +97425,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedTunnelGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedTunnelGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -97184,17 +97437,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/TunnelGroup' description: '' delete: - operationId: vpn_ipsec_profiles_destroy - description: Delete a IPSec profile object. + operationId: vpn_tunnel_groups_destroy + description: Delete a tunnel group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tunnel group. required: true tags: - vpn @@ -97204,31 +97457,11 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-proposals/: + /api/vpn/tunnel-terminations/: get: - operationId: vpn_ipsec_proposals_list - description: Get a list of IPSec proposal objects. + operationId: vpn_tunnel_terminations_list + description: Get a list of tunnel termination objects. parameters: - - in: query - name: authentication_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form - - in: query - name: authentication_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form - in: query name: created schema: @@ -97297,110 +97530,6 @@ paths: schema: type: string format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: encryption_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - - in: query - name: encryption_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - in: query name: id schema: @@ -97460,39 +97589,39 @@ paths: explode: true style: form - in: query - name: ipsec_policy + name: interface schema: type: array items: type: string - description: IPSec policy (name) + description: Interface (name) explode: true style: form - in: query - name: ipsec_policy__n + name: interface__n schema: type: array items: type: string - description: IPSec policy (name) + description: Interface (name) explode: true style: form - in: query - name: ipsec_policy_id + name: interface_id schema: type: array items: type: integer - description: IPSec policy (ID) + description: Interface (ID) explode: true style: form - in: query - name: ipsec_policy_id__n + name: interface_id__n schema: type: array items: type: integer - description: IPSec policy (ID) + description: Interface (ID) explode: true style: form - in: query @@ -97569,76 +97698,61 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__iew + name: outside_ip_id schema: type: array items: - type: string + type: integer + description: Outside IP (ID) explode: true style: form - in: query - name: name__isw + name: outside_ip_id__n schema: type: array items: - type: string + type: integer + description: Outside IP (ID) explode: true style: form - in: query - name: name__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: name__nic + name: role schema: type: array items: type: string + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: name__nie + name: role__n schema: type: array items: type: string + x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: name__niew + name: tag schema: type: array items: @@ -97646,32 +97760,15 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tag__n schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: sa_lifetime_data + name: termination_id schema: type: array items: @@ -97680,11 +97777,11 @@ paths: explode: true style: form - in: query - name: sa_lifetime_data__empty + name: termination_id__empty schema: type: boolean - in: query - name: sa_lifetime_data__gt + name: termination_id__gt schema: type: array items: @@ -97693,7 +97790,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime_data__gte + name: termination_id__gte schema: type: array items: @@ -97702,7 +97799,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime_data__lt + name: termination_id__lt schema: type: array items: @@ -97711,7 +97808,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime_data__lte + name: termination_id__lte schema: type: array items: @@ -97720,7 +97817,7 @@ paths: explode: true style: form - in: query - name: sa_lifetime_data__n + name: termination_id__n schema: type: array items: @@ -97729,84 +97826,90 @@ paths: explode: true style: form - in: query - name: sa_lifetime_seconds + name: termination_type schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: sa_lifetime_seconds__empty + name: termination_type__n schema: - type: boolean + type: string - in: query - name: sa_lifetime_seconds__gt + name: tunnel schema: type: array items: - type: integer - format: int32 + type: string + description: Tunnel (name) explode: true style: form - in: query - name: sa_lifetime_seconds__gte + name: tunnel__n schema: type: array items: - type: integer - format: int32 + type: string + description: Tunnel (name) explode: true style: form - in: query - name: sa_lifetime_seconds__lt + name: tunnel_id schema: type: array items: type: integer - format: int32 + description: Tunnel (ID) explode: true style: form - in: query - name: sa_lifetime_seconds__lte + name: tunnel_id__n schema: type: array items: type: integer - format: int32 + description: Tunnel (ID) explode: true style: form - in: query - name: sa_lifetime_seconds__n + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vminterface schema: type: array items: - type: integer - format: int32 + type: string + description: VM interface (name) explode: true style: form - in: query - name: tag + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: tag__n + name: vminterface_id schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: updated_by_request + name: vminterface_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form tags: - vpn security: @@ -97817,21 +97920,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProposalList' + $ref: '#/components/schemas/PaginatedTunnelTerminationList' description: '' post: - operationId: vpn_ipsec_proposals_create - description: Post a list of IPSec proposal objects. + operationId: vpn_tunnel_terminations_create + description: Post a list of tunnel termination objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableTunnelTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableTunnelTerminationRequest' required: true security: - cookieAuth: [] @@ -97841,11 +97944,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/TunnelTermination' description: '' put: - operationId: vpn_ipsec_proposals_bulk_update - description: Put a list of IPSec proposal objects. + operationId: vpn_tunnel_terminations_bulk_update + description: Put a list of tunnel termination objects. tags: - vpn requestBody: @@ -97854,12 +97957,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/TunnelTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/TunnelTerminationRequest' required: true security: - cookieAuth: [] @@ -97871,11 +97974,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/TunnelTermination' description: '' patch: - operationId: vpn_ipsec_proposals_bulk_partial_update - description: Patch a list of IPSec proposal objects. + operationId: vpn_tunnel_terminations_bulk_partial_update + description: Patch a list of tunnel termination objects. tags: - vpn requestBody: @@ -97884,12 +97987,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/TunnelTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/TunnelTerminationRequest' required: true security: - cookieAuth: [] @@ -97901,11 +98004,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/TunnelTermination' description: '' delete: - operationId: vpn_ipsec_proposals_bulk_destroy - description: Delete a list of IPSec proposal objects. + operationId: vpn_tunnel_terminations_bulk_destroy + description: Delete a list of tunnel termination objects. tags: - vpn requestBody: @@ -97914,12 +98017,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/TunnelTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/TunnelTerminationRequest' required: true security: - cookieAuth: [] @@ -97927,16 +98030,16 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-proposals/{id}/: + /api/vpn/tunnel-terminations/{id}/: get: - operationId: vpn_ipsec_proposals_retrieve - description: Get a IPSec proposal object. + operationId: vpn_tunnel_terminations_retrieve + description: Get a tunnel termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this tunnel termination. required: true tags: - vpn @@ -97948,17 +98051,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/TunnelTermination' description: '' put: - operationId: vpn_ipsec_proposals_update - description: Put a IPSec proposal object. + operationId: vpn_tunnel_terminations_update + description: Put a tunnel termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this tunnel termination. required: true tags: - vpn @@ -97966,10 +98069,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableTunnelTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/WritableTunnelTerminationRequest' required: true security: - cookieAuth: [] @@ -97979,17 +98082,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/TunnelTermination' description: '' patch: - operationId: vpn_ipsec_proposals_partial_update - description: Patch a IPSec proposal object. + operationId: vpn_tunnel_terminations_partial_update + description: Patch a tunnel termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this tunnel termination. required: true tags: - vpn @@ -97997,10 +98100,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98009,17 +98112,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/TunnelTermination' description: '' delete: - operationId: vpn_ipsec_proposals_destroy - description: Delete a IPSec proposal object. + operationId: vpn_tunnel_terminations_destroy + description: Delete a tunnel termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this tunnel termination. required: true tags: - vpn @@ -98029,225 +98132,221 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/: + /api/vpn/tunnels/: get: - operationId: vpn_l2vpn_terminations_list - description: Get a list of L2VPN termination objects. + operationId: vpn_tunnels_list + description: Get a list of tunnel objects. parameters: - in: query - name: assigned_object_id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type + name: created__n schema: - type: string + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: assigned_object_type__n + name: created_by_request schema: type: string + format: uuid - in: query - name: created + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: device + name: description__nie schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: description__niew schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: description__nisw schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: encapsulation schema: type: array items: - type: integer - description: Device (ID) + type: string + x-spec-enum-id: 5fc36bb745852746 explode: true style: form - in: query - name: id + name: encapsulation__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 5fc36bb745852746 explode: true style: form - in: query - name: id__empty + name: group schema: - type: boolean + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form - in: query - name: id__gt + name: group__n schema: type: array items: - type: integer - format: int32 + type: string + description: Tunnel group (slug) explode: true style: form - in: query - name: id__gte + name: group_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Tunnel group (ID) explode: true style: form - in: query - name: id__lt + name: group_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Tunnel group (ID) explode: true style: form - in: query - name: id__lte + name: id schema: type: array items: @@ -98256,7 +98355,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -98265,75 +98368,77 @@ paths: explode: true style: form - in: query - name: interface + name: id__gte schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface__n + name: id__lt schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface_id + name: id__lte schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: l2vpn + name: ipsec_profile schema: type: array items: type: string - description: L2VPN (slug) + description: IPSec profile (name) explode: true style: form - in: query - name: l2vpn__n + name: ipsec_profile__n schema: type: array items: type: string - description: L2VPN (slug) + description: IPSec profile (name) explode: true style: form - in: query - name: l2vpn_id + name: ipsec_profile_id schema: type: array items: type: integer - description: L2VPN (ID) + nullable: true + description: IPSec profile (ID) explode: true style: form - in: query - name: l2vpn_id__n + name: ipsec_profile_id__n schema: type: array items: type: integer - description: L2VPN (ID) + nullable: true + description: IPSec profile (ID) explode: true style: form - in: query @@ -98410,25 +98515,28 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: q + name: name__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: region + name: name__ie schema: type: array items: @@ -98436,16 +98544,15 @@ paths: explode: true style: form - in: query - name: region_id + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: site + name: name__isw schema: type: array items: @@ -98453,16 +98560,15 @@ paths: explode: true style: form - in: query - name: site_id + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -98470,7 +98576,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie schema: type: array items: @@ -98478,153 +98584,209 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: virtual_machine + name: q + schema: + type: string + description: Search + - in: query + name: status schema: type: array items: type: string - description: Virtual machine (name) + x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query - name: virtual_machine__n + name: status__n schema: type: array items: type: string - description: Virtual machine (name) + x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query - name: virtual_machine_id + name: tag schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: tag__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: vlan + name: tenant schema: type: array items: type: string - description: VLAN (name) + description: Tenant (slug) explode: true style: form - in: query - name: vlan__n + name: tenant__n schema: type: array items: type: string - description: VLAN (name) + description: Tenant (slug) explode: true style: form - in: query - name: vlan_id + name: tenant_group schema: type: array items: type: integer - description: VLAN (ID) + description: Tenant Group (slug) explode: true style: form - in: query - name: vlan_id__n + name: tenant_group__n schema: type: array items: type: integer - description: VLAN (ID) + description: Tenant Group (slug) explode: true style: form - in: query - name: vlan_vid + name: tenant_group_id schema: - type: integer - description: VLAN number (1-4094) + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form - in: query - name: vlan_vid__empty + name: tenant_group_id__n schema: - type: integer - description: VLAN number (1-4094) + type: array + items: + type: integer + description: Tenant Group (ID) + explode: true + style: form - in: query - name: vlan_vid__gt + name: tenant_id schema: - type: integer - description: VLAN number (1-4094) + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: vlan_vid__gte + name: tenant_id__n schema: - type: integer - description: VLAN number (1-4094) + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query - name: vlan_vid__lt + name: tunnel_id schema: - type: integer - description: VLAN number (1-4094) + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: vlan_vid__lte + name: tunnel_id__empty schema: - type: integer - description: VLAN number (1-4094) + type: boolean - in: query - name: vlan_vid__n + name: tunnel_id__gt schema: - type: integer - description: VLAN number (1-4094) + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: vminterface + name: tunnel_id__gte schema: type: array items: - type: string - description: VM interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: vminterface__n + name: tunnel_id__lt schema: type: array items: - type: string - description: VM interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: vminterface_id + name: tunnel_id__lte schema: type: array items: type: integer - description: VM Interface (ID) + format: int32 explode: true style: form - in: query - name: vminterface_id__n + name: tunnel_id__n schema: type: array items: type: integer - description: VM Interface (ID) + format: int32 explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - vpn security: @@ -98635,21 +98797,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + $ref: '#/components/schemas/PaginatedTunnelList' description: '' post: - operationId: vpn_l2vpn_terminations_create - description: Post a list of L2VPN termination objects. + operationId: vpn_tunnels_create + description: Post a list of tunnel objects. tags: - vpn requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTunnelRequest' required: true security: - cookieAuth: [] @@ -98659,11 +98821,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/Tunnel' description: '' put: - operationId: vpn_l2vpn_terminations_bulk_update - description: Put a list of L2VPN termination objects. + operationId: vpn_tunnels_bulk_update + description: Put a list of tunnel objects. tags: - vpn requestBody: @@ -98672,12 +98834,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -98689,11 +98851,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/Tunnel' description: '' patch: - operationId: vpn_l2vpn_terminations_bulk_partial_update - description: Patch a list of L2VPN termination objects. + operationId: vpn_tunnels_bulk_partial_update + description: Patch a list of tunnel objects. tags: - vpn requestBody: @@ -98702,12 +98864,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -98719,11 +98881,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/Tunnel' description: '' delete: - operationId: vpn_l2vpn_terminations_bulk_destroy - description: Delete a list of L2VPN termination objects. + operationId: vpn_tunnels_bulk_destroy + description: Delete a list of tunnel objects. tags: - vpn requestBody: @@ -98732,12 +98894,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TunnelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/TunnelRequest' required: true security: - cookieAuth: [] @@ -98745,16 +98907,16 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/{id}/: + /api/vpn/tunnels/{id}/: get: - operationId: vpn_l2vpn_terminations_retrieve - description: Get a L2VPN termination object. + operationId: vpn_tunnels_retrieve + description: Get a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tunnel. required: true tags: - vpn @@ -98766,17 +98928,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/Tunnel' description: '' put: - operationId: vpn_l2vpn_terminations_update - description: Put a L2VPN termination object. + operationId: vpn_tunnels_update + description: Put a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tunnel. required: true tags: - vpn @@ -98784,10 +98946,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/WritableTunnelRequest' required: true security: - cookieAuth: [] @@ -98797,17 +98959,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/Tunnel' description: '' patch: - operationId: vpn_l2vpn_terminations_partial_update - description: Patch a L2VPN termination object. + operationId: vpn_tunnels_partial_update + description: Patch a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tunnel. required: true tags: - vpn @@ -98815,10 +98977,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableTunnelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedWritableTunnelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98827,17 +98989,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/Tunnel' description: '' delete: - operationId: vpn_l2vpn_terminations_destroy - description: Delete a L2VPN termination object. + operationId: vpn_tunnels_destroy + description: Delete a tunnel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this tunnel. required: true tags: - vpn @@ -98847,18 +99009,50 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/: + /api/wireless/wireless-lan-groups/: get: - operationId: vpn_l2vpns_list - description: Get a list of L2VPN objects. + operationId: wireless_wireless_lan_groups_list + description: Get a list of wireless LAN group objects. parameters: - in: query - name: created + name: ancestor schema: type: array items: - type: string - format: date-time + type: integer + explode: true + style: form + - in: query + name: ancestor__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time explode: true style: form - in: query @@ -99004,42 +99198,6 @@ paths: type: string explode: true style: form - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - in: query name: id schema: @@ -99098,100 +99256,6 @@ paths: format: int32 explode: true style: form - - in: query - name: identifier - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__empty - schema: - type: boolean - - in: query - name: identifier__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: identifier__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: import_target - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target__n - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target_id - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - - in: query - name: import_target_id__n - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - in: query name: last_updated schema: @@ -99363,32 +99427,7 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie + name: parent schema: type: array items: @@ -99396,7 +99435,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: parent__n schema: type: array items: @@ -99404,31 +99443,30 @@ paths: explode: true style: form - in: query - name: slug__isw + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true explode: true style: form - in: query - name: slug__n + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true explode: true style: form - in: query - name: slug__nic + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__nie + name: slug schema: type: array items: @@ -99436,15 +99474,11 @@ paths: explode: true style: form - in: query - name: slug__niew + name: slug__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: slug__nisw + name: slug__ic schema: type: array items: @@ -99452,7 +99486,7 @@ paths: explode: true style: form - in: query - name: tag + name: slug__ie schema: type: array items: @@ -99460,7 +99494,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__iew schema: type: array items: @@ -99468,25 +99502,23 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nic schema: type: array items: @@ -99494,7 +99526,7 @@ paths: explode: true style: form - in: query - name: tenant_group__n + name: slug__nie schema: type: array items: @@ -99502,7 +99534,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id + name: slug__niew schema: type: array items: @@ -99510,7 +99542,7 @@ paths: explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: @@ -99518,41 +99550,19 @@ paths: explode: true style: form - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: dbaa4f996ec2d110 explode: true style: form - in: query @@ -99561,7 +99571,7 @@ paths: type: string format: uuid tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] @@ -99570,21 +99580,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNList' + $ref: '#/components/schemas/PaginatedWirelessLANGroupList' description: '' post: - operationId: vpn_l2vpns_create - description: Post a list of L2VPN objects. + operationId: wireless_wireless_lan_groups_create + description: Post a list of wireless LAN group objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' required: true security: - cookieAuth: [] @@ -99594,25 +99604,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/WirelessLANGroup' description: '' put: - operationId: vpn_l2vpns_bulk_update - description: Put a list of L2VPN objects. + operationId: wireless_wireless_lan_groups_bulk_update + description: Put a list of wireless LAN group objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/WirelessLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/WirelessLANGroupRequest' required: true security: - cookieAuth: [] @@ -99624,25 +99634,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/WirelessLANGroup' description: '' patch: - operationId: vpn_l2vpns_bulk_partial_update - description: Patch a list of L2VPN objects. + operationId: wireless_wireless_lan_groups_bulk_partial_update + description: Patch a list of wireless LAN group objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/WirelessLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/WirelessLANGroupRequest' required: true security: - cookieAuth: [] @@ -99654,25 +99664,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/WirelessLANGroup' description: '' delete: - operationId: vpn_l2vpns_bulk_destroy - description: Delete a list of L2VPN objects. + operationId: wireless_wireless_lan_groups_bulk_destroy + description: Delete a list of wireless LAN group objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/WirelessLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/WirelessLANGroupRequest' required: true security: - cookieAuth: [] @@ -99680,19 +99690,19 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/{id}/: + /api/wireless/wireless-lan-groups/{id}/: get: - operationId: vpn_l2vpns_retrieve - description: Get a L2VPN object. + operationId: wireless_wireless_lan_groups_retrieve + description: Get a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this wireless LAN group. required: true tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] @@ -99701,28 +99711,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/WirelessLANGroup' description: '' put: - operationId: vpn_l2vpns_update - description: Put a L2VPN object. + operationId: wireless_wireless_lan_groups_update + description: Put a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this wireless LAN group. required: true tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' required: true security: - cookieAuth: [] @@ -99732,28 +99742,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/WirelessLANGroup' description: '' patch: - operationId: vpn_l2vpns_partial_update - description: Patch a L2VPN object. + operationId: wireless_wireless_lan_groups_partial_update + description: Patch a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this wireless LAN group. required: true tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -99762,31 +99772,155 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/WirelessLANGroup' description: '' delete: - operationId: vpn_l2vpns_destroy - description: Delete a L2VPN object. + operationId: wireless_wireless_lan_groups_destroy + description: Delete a wireless LAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this wireless LAN group. required: true tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnel-groups/: + /api/wireless/wireless-lans/: get: - operationId: vpn_tunnel_groups_list - description: Get a list of tunnel group objects. + operationId: wireless_wireless_lans_list + description: Get a list of wireless LAN objects. parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form - in: query name: created schema: @@ -99939,6 +100073,38 @@ paths: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - in: query name: id schema: @@ -99997,6 +100163,22 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + explode: true + style: form - in: query name: last_updated schema: @@ -100071,8 +100253,25 @@ paths: schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: q + schema: + type: string + description: Search + - in: query + name: ssid schema: type: array items: @@ -100080,11 +100279,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: ssid__empty schema: type: boolean - in: query - name: name__ic + name: ssid__ic schema: type: array items: @@ -100092,7 +100291,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: ssid__ie schema: type: array items: @@ -100100,7 +100299,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: ssid__iew schema: type: array items: @@ -100108,7 +100307,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: ssid__isw schema: type: array items: @@ -100116,7 +100315,7 @@ paths: explode: true style: form - in: query - name: name__n + name: ssid__n schema: type: array items: @@ -100124,7 +100323,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: ssid__nic schema: type: array items: @@ -100132,7 +100331,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: ssid__nie schema: type: array items: @@ -100140,7 +100339,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: ssid__niew schema: type: array items: @@ -100148,52 +100347,33 @@ paths: explode: true style: form - in: query - name: name__nisw + name: ssid__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: slug + name: status schema: type: array items: type: string + x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: status__n schema: type: array items: type: string + x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: slug__ie + name: tag schema: type: array items: @@ -100201,7 +100381,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: tag__n schema: type: array items: @@ -100209,67 +100389,77 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__n + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nic + name: tenant_group schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: slug__nie + name: tenant_group__n schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group_id schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: slug__nisw + name: tenant_group_id__n schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query - name: tag + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: tag__n + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -100277,8 +100467,26 @@ paths: schema: type: string format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] @@ -100287,21 +100495,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelGroupList' + $ref: '#/components/schemas/PaginatedWirelessLANList' description: '' post: - operationId: vpn_tunnel_groups_create - description: Post a list of tunnel group objects. + operationId: wireless_wireless_lans_create + description: Post a list of wireless LAN objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableWirelessLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableWirelessLANRequest' required: true security: - cookieAuth: [] @@ -100311,25 +100519,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/WirelessLAN' description: '' put: - operationId: vpn_tunnel_groups_bulk_update - description: Put a list of tunnel group objects. + operationId: wireless_wireless_lans_bulk_update + description: Put a list of wireless LAN objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WirelessLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WirelessLANRequest' required: true security: - cookieAuth: [] @@ -100341,25 +100549,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/WirelessLAN' description: '' patch: - operationId: vpn_tunnel_groups_bulk_partial_update - description: Patch a list of tunnel group objects. + operationId: wireless_wireless_lans_bulk_partial_update + description: Patch a list of wireless LAN objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WirelessLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WirelessLANRequest' required: true security: - cookieAuth: [] @@ -100371,25 +100579,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/WirelessLAN' description: '' delete: - operationId: vpn_tunnel_groups_bulk_destroy - description: Delete a list of tunnel group objects. + operationId: wireless_wireless_lans_bulk_destroy + description: Delete a list of wireless LAN objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WirelessLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WirelessLANRequest' required: true security: - cookieAuth: [] @@ -100397,19 +100605,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/{id}/: + /api/wireless/wireless-lans/{id}/: get: - operationId: vpn_tunnel_groups_retrieve - description: Get a tunnel group object. + operationId: wireless_wireless_lans_retrieve + description: Get a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this wireless LAN. required: true tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] @@ -100418,28 +100626,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/WirelessLAN' description: '' put: - operationId: vpn_tunnel_groups_update - description: Put a tunnel group object. + operationId: wireless_wireless_lans_update + description: Put a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this wireless LAN. required: true tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableWirelessLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/WritableWirelessLANRequest' required: true security: - cookieAuth: [] @@ -100449,28 +100657,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/WirelessLAN' description: '' patch: - operationId: vpn_tunnel_groups_partial_update - description: Patch a tunnel group object. + operationId: wireless_wireless_lans_partial_update + description: Patch a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this wireless LAN. required: true tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -100479,322 +100687,105 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/WirelessLAN' description: '' delete: - operationId: vpn_tunnel_groups_destroy - description: Delete a tunnel group object. + operationId: wireless_wireless_lans_destroy + description: Delete a wireless LAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this wireless LAN. required: true tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnel-terminations/: + /api/wireless/wireless-links/: get: - operationId: vpn_tunnel_terminations_list - description: Get a list of tunnel termination objects. + operationId: wireless_wireless_links_list + description: Get a list of wireless link objects. parameters: - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt + name: auth_cipher schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher explode: true style: form - in: query - name: created__lte + name: auth_cipher__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher explode: true style: form - in: query - name: created__n + name: auth_psk schema: type: array items: type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 explode: true style: form - in: query - name: id__empty + name: auth_psk__empty schema: type: boolean - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt + name: auth_psk__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: auth_psk__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: auth_psk__iew schema: type: array items: type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: outside_ip_id - schema: - type: array - items: - type: integer - description: Outside IP (ID) - explode: true - style: form - - in: query - name: outside_ip_id__n - schema: - type: array - items: - type: integer - description: Outside IP (ID) explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: auth_psk__isw schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: role__n + name: auth_psk__n schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: tag + name: auth_psk__nic schema: type: array items: @@ -100802,7 +100793,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: auth_psk__nie schema: type: array items: @@ -100810,375 +100801,41 @@ paths: explode: true style: form - in: query - name: termination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__empty - schema: - type: boolean - - in: query - name: termination_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n - schema: - type: string - - in: query - name: tunnel + name: auth_psk__niew schema: type: array items: type: string - description: Tunnel (name) explode: true style: form - in: query - name: tunnel__n + name: auth_psk__nisw schema: type: array items: type: string - description: Tunnel (name) - explode: true - style: form - - in: query - name: tunnel_id - schema: - type: array - items: - type: integer - description: Tunnel (ID) - explode: true - style: form - - in: query - name: tunnel_id__n - schema: - type: array - items: - type: integer - description: Tunnel (ID) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vminterface + name: auth_type schema: type: array items: type: string - description: VM interface (name) + x-spec-enum-id: a2043acb899b3954 + title: Authentication type explode: true style: form - in: query - name: vminterface__n + name: auth_type__n schema: type: array items: type: string - description: VM interface (name) - explode: true - style: form - - in: query - name: vminterface_id - schema: - type: array - items: - type: integer - description: VM interface (ID) - explode: true - style: form - - in: query - name: vminterface_id__n - schema: - type: array - items: - type: integer - description: VM interface (ID) + x-spec-enum-id: a2043acb899b3954 + title: Authentication type explode: true style: form - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedTunnelTerminationList' - description: '' - post: - operationId: vpn_tunnel_terminations_create - description: Post a list of tunnel termination objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/TunnelTermination' - description: '' - put: - operationId: vpn_tunnel_terminations_bulk_update - description: Put a list of tunnel termination objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTermination' - description: '' - patch: - operationId: vpn_tunnel_terminations_bulk_partial_update - description: Patch a list of tunnel termination objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTermination' - description: '' - delete: - operationId: vpn_tunnel_terminations_bulk_destroy - description: Delete a list of tunnel termination objects. - tags: - - vpn - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/TunnelTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/vpn/tunnel-terminations/{id}/: - get: - operationId: vpn_tunnel_terminations_retrieve - description: Get a tunnel termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tunnel termination. - required: true - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/TunnelTermination' - description: '' - put: - operationId: vpn_tunnel_terminations_update - description: Put a tunnel termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tunnel termination. - required: true - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/TunnelTermination' - description: '' - patch: - operationId: vpn_tunnel_terminations_partial_update - description: Patch a tunnel termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tunnel termination. - required: true - tags: - - vpn - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/TunnelTermination' - description: '' - delete: - operationId: vpn_tunnel_terminations_destroy - description: Delete a tunnel termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this tunnel termination. - required: true - tags: - - vpn - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/vpn/tunnels/: - get: - operationId: vpn_tunnels_list - description: Get a list of tunnel objects. - parameters: - in: query name: created schema: @@ -101331,62 +100988,6 @@ paths: type: string explode: true style: form - - in: query - name: encapsulation - schema: - type: array - items: - type: string - x-spec-enum-id: 5fc36bb745852746 - explode: true - style: form - - in: query - name: encapsulation__n - schema: - type: array - items: - type: string - x-spec-enum-id: 5fc36bb745852746 - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Tunnel group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Tunnel group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - nullable: true - description: Tunnel group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tunnel group (ID) - explode: true - style: form - in: query name: id schema: @@ -101446,41 +101047,35 @@ paths: explode: true style: form - in: query - name: ipsec_profile + name: interface_a_id schema: type: array items: - type: string - description: IPSec profile (name) + type: integer explode: true style: form - in: query - name: ipsec_profile__n + name: interface_a_id__n schema: type: array items: - type: string - description: IPSec profile (name) + type: integer explode: true style: form - in: query - name: ipsec_profile_id + name: interface_b_id schema: type: array items: type: integer - nullable: true - description: IPSec profile (ID) explode: true style: form - in: query - name: ipsec_profile_id__n + name: interface_b_id__n schema: type: array items: type: integer - nullable: true - description: IPSec profile (ID) explode: true style: form - in: query @@ -101557,8 +101152,25 @@ paths: schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: q + schema: + type: string + description: Search + - in: query + name: ssid schema: type: array items: @@ -101566,11 +101178,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: ssid__empty schema: type: boolean - in: query - name: name__ic + name: ssid__ic schema: type: array items: @@ -101578,7 +101190,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: ssid__ie schema: type: array items: @@ -101586,7 +101198,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: ssid__iew schema: type: array items: @@ -101594,7 +101206,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: ssid__isw schema: type: array items: @@ -101602,7 +101214,7 @@ paths: explode: true style: form - in: query - name: name__n + name: ssid__n schema: type: array items: @@ -101610,7 +101222,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: ssid__nic schema: type: array items: @@ -101618,7 +101230,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: ssid__nie schema: type: array items: @@ -101626,7 +101238,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: ssid__niew schema: type: array items: @@ -101634,37 +101246,20 @@ paths: explode: true style: form - in: query - name: name__nisw + name: ssid__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query name: status schema: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query @@ -101673,7 +101268,7 @@ paths: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query @@ -101715,7 +101310,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query @@ -101723,7 +101319,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (slug) explode: true style: form - in: query @@ -101731,7 +101328,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query @@ -101739,7 +101337,8 @@ paths: schema: type: array items: - type: string + type: integer + description: Tenant Group (ID) explode: true style: form - in: query @@ -101763,70 +101362,12 @@ paths: explode: true style: form - in: query - name: tunnel_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__empty - schema: - type: boolean - - in: query - name: tunnel_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tunnel_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] @@ -101835,21 +101376,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelList' + $ref: '#/components/schemas/PaginatedWirelessLinkList' description: '' post: - operationId: vpn_tunnels_create - description: Post a list of tunnel objects. + operationId: wireless_wireless_links_create + description: Post a list of wireless link objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/WritableWirelessLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/WritableWirelessLinkRequest' required: true security: - cookieAuth: [] @@ -101859,25 +101400,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/WirelessLink' description: '' put: - operationId: vpn_tunnels_bulk_update - description: Put a list of tunnel objects. + operationId: wireless_wireless_links_bulk_update + description: Put a list of wireless link objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/WirelessLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/WirelessLinkRequest' required: true security: - cookieAuth: [] @@ -101889,25 +101430,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/WirelessLink' description: '' patch: - operationId: vpn_tunnels_bulk_partial_update - description: Patch a list of tunnel objects. + operationId: wireless_wireless_links_bulk_partial_update + description: Patch a list of wireless link objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/WirelessLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/WirelessLinkRequest' required: true security: - cookieAuth: [] @@ -101919,25 +101460,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/WirelessLink' description: '' delete: - operationId: vpn_tunnels_bulk_destroy - description: Delete a list of tunnel objects. + operationId: wireless_wireless_links_bulk_destroy + description: Delete a list of wireless link objects. tags: - - vpn + - wireless requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/WirelessLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/WirelessLinkRequest' required: true security: - cookieAuth: [] @@ -101945,19 +101486,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/{id}/: + /api/wireless/wireless-links/{id}/: get: - operationId: vpn_tunnels_retrieve - description: Get a tunnel object. + operationId: wireless_wireless_links_retrieve + description: Get a wireless link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this wireless link. required: true tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] @@ -101966,28 +101507,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/WirelessLink' description: '' put: - operationId: vpn_tunnels_update - description: Put a tunnel object. + operationId: wireless_wireless_links_update + description: Put a wireless link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this wireless link. required: true tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/WritableWirelessLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/WritableWirelessLinkRequest' required: true security: - cookieAuth: [] @@ -101997,28 +101538,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/WirelessLink' description: '' patch: - operationId: vpn_tunnels_partial_update - description: Patch a tunnel object. + operationId: wireless_wireless_links_partial_update + description: Patch a wireless link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this wireless link. required: true tags: - - vpn + - wireless requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -102027,7356 +101568,847 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/WirelessLink' description: '' delete: - operationId: vpn_tunnels_destroy - description: Delete a tunnel object. + operationId: wireless_wireless_links_destroy + description: Delete a wireless link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this wireless link. required: true tags: - - vpn + - wireless security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lan-groups/: - get: - operationId: wireless_wireless_lan_groups_list - description: Get a list of wireless LAN group objects. - parameters: - - in: query - name: ancestor - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ancestor_id - schema: +components: + schemas: + ASN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/RIR' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/Tenant' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: type: array items: - type: string - explode: true - style: form - - in: query - name: ancestor_id__n - schema: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + site_count: + type: integer + format: int64 + readOnly: true + provider_count: + type: integer + format: int64 + readOnly: true + required: + - asn + - created + - display + - id + - last_updated + - provider_count + - site_count + - url + ASNRange: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/RIR' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/Tenant' + nullable: true + description: + type: string + maxLength: 200 + tags: type: array items: - type: string - explode: true - style: form - - in: query - name: created - schema: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + asn_count: + type: integer + readOnly: true + required: + - asn_count + - created + - display + - end + - id + - last_updated + - name + - rir + - slug + - start + - url + ASNRangeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/RIRRequest' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - end + - name + - rir + - slug + - start + ASNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/RIRRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - asn + Aggregate: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + prefix: + type: string + rir: + $ref: '#/components/schemas/RIR' + tenant: + allOf: + - $ref: '#/components/schemas/Tenant' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - family + - id + - last_updated + - prefix + - rir + - url + AggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/RIRRequest' + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - prefix + - rir + AvailableASN: + type: object + description: Representation of an ASN which does not exist in the database. + properties: + asn: + type: integer + readOnly: true + description: + type: string + required: + - asn + AvailableIP: + type: object + description: Representation of an IP address which does not exist in the database. + properties: + family: + type: integer + readOnly: true + address: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/VRF' + readOnly: true + nullable: true + description: + type: string + required: + - address + - family + - vrf + AvailablePrefix: + type: object + description: Representation of a prefix which does not exist in the database. + properties: + family: + type: integer + readOnly: true + prefix: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/VRF' + readOnly: true + nullable: true + required: + - family + - prefix + - vrf + AvailableVLAN: + type: object + description: Representation of a VLAN which does not exist in the database. + properties: + vid: + type: integer + readOnly: true + group: + allOf: + - $ref: '#/components/schemas/VLANGroup' + readOnly: true + nullable: true + required: + - group + - vid + Bookmark: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/User' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + BookmarkRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/UserRequest' + required: + - object_id + - object_type + - user + Cable: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + CableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + CableTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cable: + type: integer + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + termination: + nullable: true + readOnly: true + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - cable + - cable_end + - created + - display + - id + - last_updated + - termination + - termination_id + - termination_type + - url + CableTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cable: + type: integer + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + required: + - cable + - cable_end + - termination_id + - termination_type + Circuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - cid + - display + - id + - url + CircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - cid + CircuitTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + circuit: + $ref: '#/components/schemas/Circuit' + term_side: + enum: + - A + - Z + type: string + description: '* `A` - A + + * `Z` - Z' + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + site: + allOf: + - $ref: '#/components/schemas/Site' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/ProviderNetwork' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + pp_info: + type: string + title: Patch panel/port(s) + description: Patch panel ID and port number(s) + maxLength: 100 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/Cable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + tags: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - circuit + - created + - display + - id + - last_updated + - link_peers + - link_peers_type + - term_side + - url + CircuitTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + circuit: + $ref: '#/components/schemas/CircuitRequest' + term_side: + enum: + - A + - Z + type: string + description: '* `A` - A + + * `Z` - Z' + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + site: + allOf: + - $ref: '#/components/schemas/SiteRequest' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/ProviderNetworkRequest' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: + type: string + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 + pp_info: + type: string + title: Patch panel/port(s) + description: Patch panel ID and port number(s) + maxLength: 100 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: type: array items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - circuit + - term_side + CircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: parent__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedWirelessLANGroupList' - description: '' - post: - operationId: wireless_wireless_lan_groups_create - description: Post a list of wireless LAN group objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLANGroup' - description: '' - put: - operationId: wireless_wireless_lan_groups_bulk_update - description: Put a list of wireless LAN group objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroup' - description: '' - patch: - operationId: wireless_wireless_lan_groups_bulk_partial_update - description: Patch a list of wireless LAN group objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroup' - description: '' - delete: - operationId: wireless_wireless_lan_groups_bulk_destroy - description: Delete a list of wireless LAN group objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/wireless/wireless-lan-groups/{id}/: - get: - operationId: wireless_wireless_lan_groups_retrieve - description: Get a wireless LAN group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN group. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLANGroup' - description: '' - put: - operationId: wireless_wireless_lan_groups_update - description: Put a wireless LAN group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN group. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLANGroup' - description: '' - patch: - operationId: wireless_wireless_lan_groups_partial_update - description: Patch a wireless LAN group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN group. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLANGroup' - description: '' - delete: - operationId: wireless_wireless_lan_groups_destroy - description: Delete a wireless LAN group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN group. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/wireless/wireless-lans/: - get: - operationId: wireless_wireless_lans_list - description: Get a list of wireless LAN objects. - parameters: - - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: ssid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__empty - schema: - type: boolean - - in: query - name: ssid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: 412ebdca597f609e - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: 412ebdca597f609e - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vlan_id - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - - in: query - name: vlan_id__n - schema: - type: array - items: - type: integer - nullable: true - explode: true - style: form - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedWirelessLANList' - description: '' - post: - operationId: wireless_wireless_lans_create - description: Post a list of wireless LAN objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLAN' - description: '' - put: - operationId: wireless_wireless_lans_bulk_update - description: Put a list of wireless LAN objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLAN' - description: '' - patch: - operationId: wireless_wireless_lans_bulk_partial_update - description: Patch a list of wireless LAN objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLAN' - description: '' - delete: - operationId: wireless_wireless_lans_bulk_destroy - description: Delete a list of wireless LAN objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/wireless/wireless-lans/{id}/: - get: - operationId: wireless_wireless_lans_retrieve - description: Get a wireless LAN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLAN' - description: '' - put: - operationId: wireless_wireless_lans_update - description: Put a wireless LAN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLAN' - description: '' - patch: - operationId: wireless_wireless_lans_partial_update - description: Patch a wireless LAN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLAN' - description: '' - delete: - operationId: wireless_wireless_lans_destroy - description: Delete a wireless LAN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless LAN. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/wireless/wireless-links/: - get: - operationId: wireless_wireless_links_list - description: Get a list of wireless link objects. - parameters: - - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: distance - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: distance__empty - schema: - type: boolean - - in: query - name: distance__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: distance__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: distance__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: distance__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: distance__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: distance_unit - schema: - type: string - x-spec-enum-id: 53542e7902f946af - enum: - - ft - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `mi` - Miles - - * `ft` - Feet' - - in: query - name: distance_unit__n - schema: - type: string - x-spec-enum-id: 53542e7902f946af - enum: - - ft - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `mi` - Miles - - * `ft` - Feet' - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_a_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_a_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_b_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: interface_b_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: ssid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__empty - schema: - type: boolean - - in: query - name: ssid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ssid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: fbc2f302c08be50d - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: fbc2f302c08be50d - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedWirelessLinkList' - description: '' - post: - operationId: wireless_wireless_links_create - description: Post a list of wireless link objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - put: - operationId: wireless_wireless_links_bulk_update - description: Put a list of wireless link objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLinkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLink' - description: '' - patch: - operationId: wireless_wireless_links_bulk_partial_update - description: Patch a list of wireless link objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLinkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLink' - description: '' - delete: - operationId: wireless_wireless_links_bulk_destroy - description: Delete a list of wireless link objects. - tags: - - wireless - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLinkRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/WirelessLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/wireless/wireless-links/{id}/: - get: - operationId: wireless_wireless_links_retrieve - description: Get a wireless link object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - put: - operationId: wireless_wireless_links_update - description: Put a wireless link object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - patch: - operationId: wireless_wireless_links_partial_update - description: Patch a wireless link object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - delete: - operationId: wireless_wireless_links_destroy - description: Delete a wireless link object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body -components: - schemas: - ASN: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/BriefRIR' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - site_count: - type: integer - format: int64 - readOnly: true - provider_count: - type: integer - format: int64 - readOnly: true - required: - - asn - - created - - display - - display_url - - id - - last_updated - - provider_count - - site_count - - url - ASNRange: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/BriefRIR' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - asn_count: - type: integer - readOnly: true - required: - - asn_count - - created - - display - - display_url - - end - - id - - last_updated - - name - - rir - - slug - - start - - url - ASNRangeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/BriefRIRRequest' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - end - - name - - rir - - slug - - start - ASNRequest: - type: object - description: Adds support for custom fields and tags. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/BriefRIRRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - Aggregate: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - family: - type: object - properties: - value: - enum: - - 4 - - 6 - type: integer - description: '* `4` - IPv4 - - * `6` - IPv6' - x-spec-enum-id: d72003fd1af3603d - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - rir: - $ref: '#/components/schemas/BriefRIR' - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - display_url - - family - - id - - last_updated - - prefix - - rir - - url - AggregateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/BriefRIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - prefix - - rir - AvailableASN: - type: object - description: Representation of an ASN which does not exist in the database. - properties: - asn: - type: integer - readOnly: true - description: - type: string - required: - - asn - AvailableIP: - type: object - description: Representation of an IP address which does not exist in the database. - properties: - family: - type: integer - readOnly: true - address: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRF' - readOnly: true - nullable: true - description: - type: string - required: - - address - - family - - vrf - AvailablePrefix: - type: object - description: Representation of a prefix which does not exist in the database. - properties: - family: - type: integer - readOnly: true - prefix: - type: string - readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRF' - readOnly: true - nullable: true - required: - - family - - prefix - - vrf - AvailableVLAN: - type: object - description: Representation of a VLAN which does not exist in the database. - properties: - vid: - type: integer - readOnly: true - group: - allOf: - - $ref: '#/components/schemas/BriefVLANGroup' - readOnly: true - nullable: true - required: - - group - - vid - Bookmark: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - object: - nullable: true - readOnly: true - user: - $ref: '#/components/schemas/BriefUser' - created: - type: string - format: date-time - readOnly: true - required: - - created - - display - - id - - object - - object_id - - object_type - - url - - user - BookmarkRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/BriefUserRequest' - required: - - object_id - - object_type - - user - BriefCable: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - label: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - url - BriefCableRequest: - type: object - description: Adds support for custom fields and tags. - properties: - label: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - BriefCircuit: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - cid: - type: string - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/BriefProvider' - description: - type: string - maxLength: 200 - required: - - cid - - display - - id - - provider - - url - BriefCircuitGroup: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - required: - - display - - id - - name - - url - BriefCircuitGroupAssignmentSerializer_: - type: object - description: Base serializer for group assignments under CircuitSerializer. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - group: - $ref: '#/components/schemas/BriefCircuitGroup' - priority: - type: object - properties: - value: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - label: - type: string - enum: - - Primary - - Secondary - - Tertiary - - Inactive - required: - - display - - group - - id - - url - BriefCircuitGroupAssignmentSerializer_Request: - type: object - description: Base serializer for group assignments under CircuitSerializer. - properties: - group: - $ref: '#/components/schemas/BriefCircuitGroupRequest' - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - required: - - group - BriefCircuitGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - required: - - name - BriefCircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/BriefProviderRequest' - description: - type: string - maxLength: 200 - required: - - cid - - provider - BriefCircuitType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - circuit_count: - type: integer - format: int64 - readOnly: true - required: - - circuit_count - - display - - id - - name - - slug - - url - BriefCircuitTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefCluster: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - url - BriefClusterGroup: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - cluster_count: - type: integer - format: int64 - readOnly: true - required: - - cluster_count - - display - - id - - name - - slug - - url - BriefClusterGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefClusterRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefClusterType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - cluster_count: - type: integer - format: int64 - readOnly: true - required: - - cluster_count - - display - - id - - name - - slug - - url - BriefClusterTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefConfigTemplate: - type: object - description: 'Introduces support for Tag assignment. Adds `tags` serialization, - and handles tag assignment - - on create() and update().' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefConfigTemplateRequest: - type: object - description: 'Introduces support for Tag assignment. Adds `tags` serialization, - and handles tag assignment - - on create() and update().' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefContact: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefContactGroup: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - contact_count: - type: integer - readOnly: true - default: 0 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - contact_count - - display - - id - - name - - slug - - url - BriefContactGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefContactRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefContactRole: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - slug - - url - BriefContactRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefCustomFieldChoiceSet: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - choices_count: - type: string - readOnly: true - required: - - choices_count - - display - - id - - name - - url - BriefCustomFieldChoiceSetRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefDataFile: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - path: - type: string - readOnly: true - description: File path relative to the data source's root - required: - - display - - id - - path - - url - BriefDataSource: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefDataSourceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefDevice: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - nullable: true - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - url - BriefDeviceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - description: - type: string - maxLength: 200 - BriefDeviceRole: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - BriefDeviceRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefDeviceType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - manufacturer: - $ref: '#/components/schemas/BriefManufacturer' - model: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - manufacturer - - model - - slug - - url - BriefDeviceTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - manufacturer - - model - - slug - BriefFHRPGroup: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - protocol: - enum: - - vrrp2 - - vrrp3 - - carp - - clusterxl - - hsrp - - glbp - - other - type: string - description: '* `vrrp2` - VRRPv2 - - * `vrrp3` - VRRPv3 - - * `carp` - CARP - - * `clusterxl` - ClusterXL - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `other` - Other' - x-spec-enum-id: 40dc831c689b4b78 - group_id: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - required: - - display - - group_id - - id - - protocol - - url - BriefFHRPGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - protocol: - enum: - - vrrp2 - - vrrp3 - - carp - - clusterxl - - hsrp - - glbp - - other - type: string - description: '* `vrrp2` - VRRPv2 - - * `vrrp3` - VRRPv3 - - * `carp` - CARP - - * `clusterxl` - ClusterXL - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `other` - Other' - x-spec-enum-id: 40dc831c689b4b78 - group_id: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - required: - - group_id - - protocol - BriefIKEPolicy: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefIKEPolicyRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefIPAddress: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - family: - type: object - properties: - value: - enum: - - 4 - - 6 - type: integer - description: '* `4` - IPv4 - - * `6` - IPv6' - x-spec-enum-id: d72003fd1af3603d - label: - type: string - enum: - - IPv4 - - IPv6 - readOnly: true - address: - type: string - description: - type: string - maxLength: 200 - required: - - address - - display - - family - - id - - url - BriefIPAddressRequest: - type: object - description: Adds support for custom fields and tags. - properties: - address: - type: string - minLength: 1 - description: - type: string - maxLength: 200 - required: - - address - BriefIPSecPolicy: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefIPSecPolicyRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefIPSecProfile: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefIPSecProfileRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefInterface: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/BriefDevice' - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/BriefCable' - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - device - - display - - id - - name - - url - BriefInterfaceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - device - - name - BriefInventoryItemRole: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - inventoryitem_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - inventoryitem_count - - name - - slug - - url - BriefInventoryItemRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefJob: - type: object - properties: - url: - type: string - format: uri - readOnly: true - status: - type: object - properties: - value: - enum: - - pending - - scheduled - - running - - completed - - errored - - failed - type: string - description: '* `pending` - Pending - - * `scheduled` - Scheduled - - * `running` - Running - - * `completed` - Completed - - * `errored` - Errored - - * `failed` - Failed' - x-spec-enum-id: e33887d83efcc138 - label: - type: string - enum: - - Pending - - Scheduled - - Running - - Completed - - Errored - - Failed - readOnly: true - created: - type: string - format: date-time - readOnly: true - completed: - type: string - format: date-time - nullable: true - user: - allOf: - - $ref: '#/components/schemas/BriefUser' - readOnly: true - required: - - created - - status - - url - - user - BriefJobRequest: - type: object - properties: - completed: - type: string - format: date-time - nullable: true - BriefL2VPN: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - identifier: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - type: - type: object - properties: - value: - enum: - - vpws - - vpls - - vxlan - - vxlan-evpn - - mpls-evpn - - pbb-evpn - - epl - - evpl - - ep-lan - - evp-lan - - ep-tree - - evp-tree - type: string - description: '* `vpws` - VPWS - - * `vpls` - VPLS - - * `vxlan` - VXLAN - - * `vxlan-evpn` - VXLAN-EVPN - - * `mpls-evpn` - MPLS EVPN - - * `pbb-evpn` - PBB EVPN - - * `epl` - EPL - - * `evpl` - EVPL - - * `ep-lan` - Ethernet Private LAN - - * `evp-lan` - Ethernet Virtual Private LAN - - * `ep-tree` - Ethernet Private Tree - - * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 - label: - type: string - enum: - - VPWS - - VPLS - - VXLAN - - VXLAN-EVPN - - MPLS EVPN - - PBB EVPN - - EPL - - EVPL - - Ethernet Private LAN - - Ethernet Virtual Private LAN - - Ethernet Private Tree - - Ethernet Virtual Private Tree - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - slug - - url - BriefL2VPNRequest: - type: object - description: Adds support for custom fields and tags. - properties: - identifier: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - type: - enum: - - vpws - - vpls - - vxlan - - vxlan-evpn - - mpls-evpn - - pbb-evpn - - epl - - evpl - - ep-lan - - evp-lan - - ep-tree - - evp-tree - type: string - description: '* `vpws` - VPWS - - * `vpls` - VPLS - - * `vxlan` - VXLAN - - * `vxlan-evpn` - VXLAN-EVPN - - * `mpls-evpn` - MPLS EVPN - - * `pbb-evpn` - PBB EVPN - - * `epl` - EPL - - * `evpl` - EVPL - - * `ep-lan` - Ethernet Private LAN - - * `evp-lan` - Ethernet Virtual Private LAN - - * `ep-tree` - Ethernet Private Tree - - * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefL2VPNTermination: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - l2vpn: - $ref: '#/components/schemas/BriefL2VPN' - required: - - display - - id - - l2vpn - - url - BriefL2VPNTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - l2vpn: - $ref: '#/components/schemas/BriefL2VPNRequest' - required: - - l2vpn - BriefLocation: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - rack_count: - type: integer - readOnly: true - default: 0 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - rack_count - - slug - - url - BriefLocationRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefManufacturer: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - devicetype_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - BriefManufacturerRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefModule: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/BriefDevice' - module_bay: - $ref: '#/components/schemas/NestedModuleBay' - required: - - device - - display - - id - - module_bay - - url - BriefModuleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module_bay: - $ref: '#/components/schemas/NestedModuleBayRequest' - required: - - device - - module_bay - BriefModuleType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - manufacturer: - $ref: '#/components/schemas/BriefManufacturer' - model: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - manufacturer - - model - - url - BriefModuleTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - manufacturer - - model - BriefPlatform: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - BriefPlatformRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefPowerPanel: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - powerfeed_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - powerfeed_count - - url - BriefPowerPanelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefPowerPort: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/BriefDevice' - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/BriefCable' - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - device - - display - - id - - name - - url - BriefPowerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - device - - name - BriefPowerPortTemplate: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefPowerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - BriefProvider: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: Full name of the provider - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - circuit_count: - type: integer - format: int64 - readOnly: true - required: - - circuit_count - - display - - id - - name - - slug - - url - BriefProviderAccount: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - default: '' - maxLength: 100 - account: - type: string - title: Account ID - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - account - - display - - id - - url - BriefProviderAccountRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - default: '' - maxLength: 100 - account: - type: string - minLength: 1 - title: Account ID - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - account - BriefProviderNetwork: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefProviderNetworkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefProviderRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the provider - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefRIR: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - aggregate_count: - type: integer - format: int64 - readOnly: true - required: - - aggregate_count - - display - - id - - name - - slug - - url - BriefRIRRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefRack: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - url - BriefRackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefRackRole: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - rack_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - rack_count - - slug - - url - BriefRackRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefRackType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - manufacturer: - $ref: '#/components/schemas/BriefManufacturer' - model: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - display - - id - - manufacturer - - model - - slug - - url - BriefRackTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - manufacturer - - model - - slug - BriefRearPortTemplate: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefRearPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - BriefRegion: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - site_count: - type: integer - readOnly: true - default: 0 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - site_count - - slug - - url - BriefRegionRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefRole: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - prefix_count: - type: integer - format: int64 - readOnly: true - vlan_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - - vlan_count - BriefRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefSite: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: Full name of the site - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - slug - - url - BriefSiteGroup: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - site_count: - type: integer - readOnly: true - default: 0 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - site_count - - slug - - url - BriefSiteGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefSiteRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the site - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefTenant: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - slug - - url - BriefTenantGroup: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - tenant_count: - type: integer - readOnly: true - default: 0 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - slug - - tenant_count - - url - BriefTenantGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefTenantRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefTunnel: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefTunnelGroup: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - tunnel_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - tunnel_count - - url - BriefTunnelGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefTunnelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - BriefUser: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - username: - type: string - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - display - - id - - url - - username - BriefUserRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - required: - - username - BriefVLAN: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: VLAN ID - description: Numeric VLAN ID (1-4094) - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - - vid - BriefVLANGroup: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - vlan_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - - vlan_count - BriefVLANGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - BriefVLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - vid: - type: integer - maximum: 4094 - minimum: 1 - title: VLAN ID - description: Numeric VLAN ID (1-4094) - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - - vid - BriefVRF: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - description: - type: string - maxLength: 200 - prefix_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - url - BriefVRFRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - description: - type: string - maxLength: 200 - required: - - name - BriefVirtualChassis: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 64 - master: - allOf: - - $ref: '#/components/schemas/NestedDevice' - nullable: true - description: - type: string - maxLength: 200 - member_count: - type: integer - readOnly: true - required: - - display - - id - - member_count - - name - - url - BriefVirtualChassisRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - master: - allOf: - - $ref: '#/components/schemas/NestedDeviceRequest' - nullable: true - description: - type: string - maxLength: 200 - required: - - name - BriefVirtualMachine: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - BriefVirtualMachineRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - BriefWirelessLANGroup: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - wirelesslan_count: - type: integer - readOnly: true - default: 0 - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - slug - - url - - wirelesslan_count - BriefWirelessLANGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - required: - - name - - slug - Cable: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - type: - enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - mmf-om5 - - smf - - smf-os1 - - smf-os2 - - aoc - - usb - - power - - '' - type: string - description: '* `cat3` - CAT3 - - * `cat5` - CAT5 - - * `cat5e` - CAT5e - - * `cat6` - CAT6 - - * `cat6a` - CAT6a - - * `cat7` - CAT7 - - * `cat7a` - CAT7a - - * `cat8` - CAT8 - - * `dac-active` - Direct Attach Copper (Active) - - * `dac-passive` - Direct Attach Copper (Passive) - - * `mrj21-trunk` - MRJ21 Trunk - - * `coaxial` - Coaxial - - * `mmf` - Multimode Fiber - - * `mmf-om1` - Multimode Fiber (OM1) - - * `mmf-om2` - Multimode Fiber (OM2) - - * `mmf-om3` - Multimode Fiber (OM3) - - * `mmf-om4` - Multimode Fiber (OM4) - - * `mmf-om5` - Multimode Fiber (OM5) - - * `smf` - Singlemode Fiber - - * `smf-os1` - Singlemode Fiber (OS1) - - * `smf-os2` - Singlemode Fiber (OS2) - - * `aoc` - Active Optical Cabling (AOC) - - * `usb` - USB - - * `power` - Power' - x-spec-enum-id: 7b11d524b2b1a7ef - a_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObject' - b_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObject' - status: - type: object - properties: - value: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - label: - type: string - enum: - - Connected - - Planned - - Decommissioning - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - length_unit: - type: object - properties: - value: - enum: - - km - - m - - cm - - mi - - ft - - in - - '' - type: string - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - x-spec-enum-id: e64ce3a2c5997172 - label: - type: string - enum: - - Kilometers - - Meters - - Centimeters - - Miles - - Feet - - Inches - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - display_url - - id - - last_updated - - url - CableRequest: - type: object - description: Adds support for custom fields and tags. - properties: - type: - enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - mmf-om5 - - smf - - smf-os1 - - smf-os2 - - aoc - - usb - - power - - '' - type: string - description: '* `cat3` - CAT3 - - * `cat5` - CAT5 - - * `cat5e` - CAT5e - - * `cat6` - CAT6 - - * `cat6a` - CAT6a - - * `cat7` - CAT7 - - * `cat7a` - CAT7a - - * `cat8` - CAT8 - - * `dac-active` - Direct Attach Copper (Active) - - * `dac-passive` - Direct Attach Copper (Passive) - - * `mrj21-trunk` - MRJ21 Trunk - - * `coaxial` - Coaxial - - * `mmf` - Multimode Fiber - - * `mmf-om1` - Multimode Fiber (OM1) - - * `mmf-om2` - Multimode Fiber (OM2) - - * `mmf-om3` - Multimode Fiber (OM3) - - * `mmf-om4` - Multimode Fiber (OM4) - - * `mmf-om5` - Multimode Fiber (OM5) - - * `smf` - Singlemode Fiber - - * `smf-os1` - Singlemode Fiber (OS1) - - * `smf-os2` - Singlemode Fiber (OS2) - - * `aoc` - Active Optical Cabling (AOC) - - * `usb` - USB - - * `power` - Power' - x-spec-enum-id: 7b11d524b2b1a7ef - a_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - b_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - length_unit: - enum: - - km - - m - - cm - - mi - - ft - - in - - '' - type: string - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - x-spec-enum-id: e64ce3a2c5997172 - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - CableTermination: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - termination: - nullable: true - readOnly: true - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - cable - - cable_end - - created - - display - - id - - last_updated - - termination - - termination_id - - termination_type - - url - CableTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - required: - - cable - - cable_end - - termination_id - - termination_type - Circuit: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - cid: - type: string - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/BriefProvider' - provider_account: - allOf: - - $ref: '#/components/schemas/BriefProviderAccount' - nullable: true - type: - $ref: '#/components/schemas/BriefCircuitType' - status: - type: object - properties: - value: - enum: - - planned - - provisioning - - active - - offline - - deprovisioning - - decommissioned - type: string - description: '* `planned` - Planned - - * `provisioning` - Provisioning - - * `active` - Active - - * `offline` - Offline - - * `deprovisioning` - Deprovisioning - - * `decommissioned` - Decommissioned' - x-spec-enum-id: 63c838134a022200 - label: - type: string - enum: - - Planned - - Provisioning - - Active - - Offline - - Deprovisioning - - Decommissioned - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - install_date: - type: string - format: date - nullable: true - title: Installed - termination_date: - type: string - format: date - nullable: true - title: Terminates - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: Committed rate - description: - type: string - maxLength: 200 - termination_a: - allOf: - - $ref: '#/components/schemas/CircuitCircuitTermination' - readOnly: true - nullable: true - termination_z: - allOf: - - $ref: '#/components/schemas/CircuitCircuitTermination' - readOnly: true - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - assignments: - type: array - items: - $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_' - required: - - cid - - created - - display - - display_url - - id - - last_updated - - provider - - termination_a - - termination_z - - type - - url - CircuitCircuitTermination: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - site: - allOf: - - $ref: '#/components/schemas/BriefSite' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/BriefProviderNetwork' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - description: - type: string - maxLength: 200 - required: - - display - - display_url - - id - - provider_network - - site - - url - CircuitCircuitTerminationRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/BriefProviderNetworkRequest' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - description: - type: string - maxLength: 200 - required: - - provider_network - - site - CircuitGroup: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - circuit_count: - type: integer - format: int64 - readOnly: true - required: - - circuit_count - - created - - display - - display_url - - id - - last_updated - - name - - slug - - url - CircuitGroupAssignment: - type: object - description: Base serializer for group assignments under CircuitSerializer. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - group: - $ref: '#/components/schemas/BriefCircuitGroup' - circuit: - $ref: '#/components/schemas/BriefCircuit' - priority: - type: object - properties: - value: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - label: - type: string - enum: - - Primary - - Secondary - - Tertiary - - Inactive - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - circuit - - created - - display - - display_url - - group - - id - - last_updated - - url - CircuitGroupAssignmentRequest: - type: object - description: Base serializer for group assignments under CircuitSerializer. - properties: - group: - $ref: '#/components/schemas/BriefCircuitGroupRequest' - circuit: - $ref: '#/components/schemas/BriefCircuitRequest' - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - required: - - circuit - - group - CircuitGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - name - - slug - CircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/BriefProviderRequest' - provider_account: - allOf: - - $ref: '#/components/schemas/BriefProviderAccountRequest' - nullable: true - type: - $ref: '#/components/schemas/BriefCircuitTypeRequest' - status: - enum: - - planned - - provisioning - - active - - offline - - deprovisioning - - decommissioned - type: string - description: '* `planned` - Planned - - * `provisioning` - Provisioning - - * `active` - Active - - * `offline` - Offline - - * `deprovisioning` - Deprovisioning - - * `decommissioned` - Decommissioned' - x-spec-enum-id: 63c838134a022200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - install_date: - type: string - format: date - nullable: true - title: Installed - termination_date: - type: string - format: date - nullable: true - title: Terminates - commit_rate: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Commit rate (Kbps) - description: Committed rate - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - assignments: - type: array - items: - $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' - required: - - cid - - provider - - type - CircuitTermination: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - circuit: - $ref: '#/components/schemas/BriefCircuit' - term_side: - enum: - - A - - Z - type: string - description: '* `A` - A - - * `Z` - Z' - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/BriefSite' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/BriefProviderNetwork' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - description: Patch panel ID and port number(s) - maxLength: 100 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/BriefCable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - cable_end - - circuit - - created - - display - - display_url - - id - - last_updated - - link_peers - - link_peers_type - - term_side - - url - CircuitTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - circuit: - $ref: '#/components/schemas/BriefCircuitRequest' - term_side: - enum: - - A - - Z - type: string - description: '* `A` - A - - * `Z` - Z' - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true - provider_network: - allOf: - - $ref: '#/components/schemas/BriefProviderNetworkRequest' - nullable: true - port_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Port speed (Kbps) - description: Physical circuit speed - upstream_speed: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Upstream speed (Kbps) - description: Upstream speed, if different from port speed - xconnect_id: - type: string - title: Cross-connect ID - description: ID of the local cross-connect - maxLength: 50 - pp_info: - type: string - title: Patch panel/port(s) - description: Patch panel ID and port number(s) - maxLength: 100 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - circuit - - term_side - CircuitType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - tags: + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: type: array items: $ref: '#/components/schemas/NestedTag' @@ -109401,7 +102433,6 @@ components: - circuit_count - created - display - - display_url - id - last_updated - name @@ -109448,97 +102479,23 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 - type: - $ref: '#/components/schemas/BriefClusterType' - group: - allOf: - - $ref: '#/components/schemas/BriefClusterGroup' - nullable: true - status: - type: object - properties: - value: - enum: - - planned - - staging - - active - - decommissioning - - offline - type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `offline` - Offline' - x-spec-enum-id: 79d20a734d0eecbb - label: - type: string - enum: - - Planned - - Staging - - Active - - Decommissioning - - Offline - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/BriefSite' - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - device_count: - type: integer - format: int64 - readOnly: true virtualmachine_count: type: integer format: int64 readOnly: true required: - - created - display - - display_url - id - - last_updated - name - - type - url ClusterGroup: type: object @@ -109551,10 +102508,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -109593,7 +102546,6 @@ components: - cluster_count - created - display - - display_url - id - last_updated - name @@ -109633,53 +102585,11 @@ components: type: string minLength: 1 maxLength: 100 - type: - $ref: '#/components/schemas/BriefClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/BriefClusterGroupRequest' - nullable: true - status: - enum: - - planned - - staging - - active - - decommissioning - - offline - type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `offline` - Offline' - x-spec-enum-id: 79d20a734d0eecbb - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - - type ClusterType: type: object description: Adds support for custom fields and tags. @@ -109691,10 +102601,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -109733,7 +102639,6 @@ components: - cluster_count - created - display - - display_url - id - last_updated - name @@ -109779,10 +102684,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -109851,14 +102752,14 @@ components: items: type: string data_source: - $ref: '#/components/schemas/BriefDataSource' + $ref: '#/components/schemas/DataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/BriefDataFile' + - $ref: '#/components/schemas/DataFile' readOnly: true data_synced: type: string @@ -109884,7 +102785,6 @@ components: - data_path - data_synced - display - - display_url - id - last_updated - name @@ -109963,7 +102863,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/BriefDataSourceRequest' + $ref: '#/components/schemas/DataSourceRequest' data: {} required: - data @@ -109982,10 +102882,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -109995,52 +102891,10 @@ components: description: type: string maxLength: 200 - environment_params: - nullable: true - title: Environment parameters - description: Any additional - parameters to pass when constructing the Jinja2 environment. - template_code: - type: string - description: Jinja2 template code. - data_source: - $ref: '#/components/schemas/BriefDataSource' - data_path: - type: string - readOnly: true - description: Path to remote file (relative to data source root) - data_file: - $ref: '#/components/schemas/BriefDataFile' - data_synced: - type: string - format: date-time - readOnly: true - nullable: true - title: Date synced - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - - data_path - - data_synced - display - - display_url - id - - last_updated - name - - template_code - url ConfigTemplateRequest: type: object @@ -110056,24 +102910,8 @@ components: description: type: string maxLength: 200 - environment_params: - nullable: true - title: Environment parameters - description: Any additional - parameters to pass when constructing the Jinja2 environment. - template_code: - type: string - minLength: 1 - description: Jinja2 template code. - data_source: - $ref: '#/components/schemas/BriefDataSourceRequest' - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' required: - name - - template_code ConsolePort: type: object description: Adds support for custom fields and tags. @@ -110085,18 +102923,14 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true name: type: string @@ -110225,7 +103059,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/BriefCable' + - $ref: '#/components/schemas/Cable' readOnly: true nullable: true cable_end: @@ -110239,16 +103073,13 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true - nullable: true connected_endpoints: type: array items: {} - nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true - nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -110283,7 +103114,6 @@ components: - created - device - display - - display_url - id - last_updated - link_peers @@ -110295,10 +103125,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -110420,11 +103250,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceType' + - $ref: '#/components/schemas/DeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleType' + - $ref: '#/components/schemas/ModuleType' nullable: true name: type: string @@ -110534,11 +103364,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -110615,18 +103445,14 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true name: type: string @@ -110755,7 +103581,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/BriefCable' + - $ref: '#/components/schemas/Cable' readOnly: true nullable: true cable_end: @@ -110769,16 +103595,13 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true - nullable: true connected_endpoints: type: array items: {} - nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true - nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -110813,7 +103636,6 @@ components: - created - device - display - - display_url - id - last_updated - link_peers @@ -110825,10 +103647,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -110950,11 +103772,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceType' + - $ref: '#/components/schemas/DeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleType' + - $ref: '#/components/schemas/ModuleType' nullable: true name: type: string @@ -111064,11 +103886,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -111145,65 +103967,18 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true - group: - allOf: - - $ref: '#/components/schemas/BriefContactGroup' - nullable: true name: type: string maxLength: 100 - title: - type: string - maxLength: 100 - phone: - type: string - maxLength: 50 - email: - type: string - format: email - maxLength: 254 - address: - type: string - maxLength: 200 - link: - type: string - format: uri - maxLength: 200 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - display - - display_url - id - - last_updated - name - url ContactAssignment: @@ -111232,10 +104007,10 @@ components: additionalProperties: {} readOnly: true contact: - $ref: '#/components/schemas/BriefContact' + $ref: '#/components/schemas/Contact' role: allOf: - - $ref: '#/components/schemas/BriefContactRole' + - $ref: '#/components/schemas/ContactRole' nullable: true priority: type: object @@ -111302,10 +104077,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/BriefContactRequest' + $ref: '#/components/schemas/ContactRequest' role: allOf: - - $ref: '#/components/schemas/BriefContactRoleRequest' + - $ref: '#/components/schemas/ContactRoleRequest' nullable: true priority: enum: @@ -111345,10 +104120,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -111396,7 +104167,6 @@ components: - contact_count - created - display - - display_url - id - last_updated - name @@ -111436,43 +104206,13 @@ components: type: object description: Adds support for custom fields and tags. properties: - group: - allOf: - - $ref: '#/components/schemas/BriefContactGroupRequest' - nullable: true name: type: string minLength: 1 maxLength: 100 - title: - type: string - maxLength: 100 - phone: - type: string - maxLength: 50 - email: - type: string - format: email - maxLength: 254 - address: - type: string - maxLength: 200 - link: - type: string - format: uri - maxLength: 200 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name ContactRole: @@ -111486,10 +104226,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -111503,29 +104239,9 @@ components: description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - display - - display_url - id - - last_updated - name - slug - url @@ -111545,13 +104261,6 @@ components: description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - slug @@ -111569,10 +104278,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -111666,12 +104371,8 @@ components: maxLength: 200 required: type: boolean - description: This field is required when creating new objects or editing - an existing object. - unique: - type: boolean - title: Must be unique - description: The value of this field must be unique for the assigned object + description: If true, this field is required when creating new objects or + editing an existing object. search_weight: type: integer maximum: 32767 @@ -111748,10 +104449,6 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). - related_object_filter: - nullable: true - description: Filter the object selection choices using a query_params dict - (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -111782,7 +104479,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/BriefCustomFieldChoiceSet' + - $ref: '#/components/schemas/CustomFieldChoiceSet' nullable: true comments: type: string @@ -111800,7 +104497,6 @@ components: - created - data_type - display - - display_url - id - last_updated - name @@ -111821,10 +104517,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -111882,7 +104574,6 @@ components: - choices_count - created - display - - display_url - extra_choices - id - last_updated @@ -112003,12 +104694,8 @@ components: maxLength: 200 required: type: boolean - description: This field is required when creating new objects or editing - an existing object. - unique: - type: boolean - title: Must be unique - description: The value of this field must be unique for the assigned object + description: If true, this field is required when creating new objects or + editing an existing object. search_weight: type: integer maximum: 32767 @@ -112058,10 +104745,6 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). - related_object_filter: - nullable: true - description: Filter the object selection choices using a query_params dict - (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -112092,7 +104775,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -112114,10 +104797,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -112146,7 +104825,7 @@ components: maxLength: 50 button_class: enum: - - default + - outline-dark - blue - indigo - purple @@ -112162,12 +104841,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: ee8e5bb1ccdcdb19 + x-spec-enum-id: 9378cdf56abee54a description: 'The class of the first link in a group will be used for the dropdown button - * `default` - Default + * `outline-dark` - Default * `blue` - Blue @@ -112212,7 +104891,6 @@ components: required: - created - display - - display_url - id - last_updated - link_text @@ -112255,7 +104933,7 @@ components: maxLength: 50 button_class: enum: - - default + - outline-dark - blue - indigo - purple @@ -112271,12 +104949,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: ee8e5bb1ccdcdb19 + x-spec-enum-id: 9378cdf56abee54a description: 'The class of the first link in a group will be used for the dropdown button - * `default` - Default + * `outline-dark` - Default * `blue` - Blue @@ -112334,16 +105012,12 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true source: allOf: - - $ref: '#/components/schemas/BriefDataSource' + - $ref: '#/components/schemas/DataSource' readOnly: true path: type: string @@ -112362,7 +105036,6 @@ components: description: SHA256 hash of the file data required: - display - - display_url - hash - id - last_updated @@ -112381,119 +105054,19 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 - type: - type: object - properties: - value: - enum: - - local - - git - - amazon-s3 - description: '* `None` - --------- - - * `local` - Local - - * `git` - Git - - * `amazon-s3` - Amazon S3' - x-spec-enum-id: 570db3f2d4e98ccf - label: - type: string - enum: - - '---------' - - Local - - Git - - Amazon S3 - source_url: - type: string - title: URL - maxLength: 200 - enabled: - type: boolean - status: - type: object - properties: - value: - enum: - - new - - queued - - syncing - - completed - - failed - type: string - description: '* `new` - New - - * `queued` - Queued - - * `syncing` - Syncing - - * `completed` - Completed - - * `failed` - Failed' - x-spec-enum-id: 6dfb2220617590c8 - label: - type: string - enum: - - New - - Queued - - Syncing - - Completed - - Failed - readOnly: true description: type: string maxLength: 200 - parameters: - nullable: true - ignore_rules: - type: string - description: Patterns (one per line) matching files to ignore when syncing - comments: - type: string - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - last_synced: - type: string - format: date-time - readOnly: true - nullable: true - file_count: - type: integer - format: int64 - readOnly: true required: - - created - display - - display_url - - file_count - id - - last_synced - - last_updated - name - - source_url - - status - - type - url DataSourceRequest: type: object @@ -112526,13 +105099,13 @@ components: description: type: string maxLength: 200 + comments: + type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing - comments: - type: string custom_fields: type: object additionalProperties: {} @@ -112551,10 +105124,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -112563,16 +105132,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/BriefDeviceType' + $ref: '#/components/schemas/DeviceType' role: - $ref: '#/components/schemas/BriefDeviceRole' + $ref: '#/components/schemas/DeviceRole' tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatform' + - $ref: '#/components/schemas/Platform' nullable: true serial: type: string @@ -112585,14 +105154,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/BriefSite' + $ref: '#/components/schemas/Site' location: allOf: - - $ref: '#/components/schemas/BriefLocation' + - $ref: '#/components/schemas/Location' nullable: true rack: allOf: - - $ref: '#/components/schemas/BriefRack' + - $ref: '#/components/schemas/Rack' nullable: true position: type: number @@ -112641,8 +105210,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - nullable: true readOnly: true + nullable: true status: type: object properties: @@ -112720,28 +105289,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefCluster' + - $ref: '#/components/schemas/Cluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/BriefVirtualChassis' + - $ref: '#/components/schemas/VirtualChassis' nullable: true vc_position: type: integer @@ -112761,7 +105330,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplate' + - $ref: '#/components/schemas/ConfigTemplate' nullable: true local_context_data: nullable: true @@ -112831,15 +105400,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' name: type: string maxLength: 64 @@ -112852,7 +105417,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/BriefDevice' + - $ref: '#/components/schemas/Device' nullable: true tags: type: array @@ -112875,7 +105440,6 @@ components: - created - device - display - - display_url - id - last_updated - name @@ -112885,7 +105449,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' name: type: string minLength: 1 @@ -112899,7 +105463,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' + - $ref: '#/components/schemas/DeviceRequest' nullable: true tags: type: array @@ -112929,7 +105493,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/BriefDeviceType' + $ref: '#/components/schemas/DeviceType' name: type: string description: '{module} is accepted as a substitution for the module bay @@ -112968,7 +105532,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' + $ref: '#/components/schemas/DeviceTypeRequest' name: type: string minLength: 1 @@ -112985,6 +105549,17 @@ components: required: - device_type - name + DeviceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 DeviceRole: type: object description: Adds support for custom fields and tags. @@ -112996,10 +105571,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -113010,37 +105581,9 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - config_template: - allOf: - - $ref: '#/components/schemas/BriefConfigTemplate' - nullable: true description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true device_count: type: integer format: int64 @@ -113050,11 +105593,8 @@ components: format: int64 readOnly: true required: - - created - display - - display_url - id - - last_updated - name - slug - url @@ -113081,7 +105621,7 @@ components: description: Virtual machines may be assigned to this role config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' + - $ref: '#/components/schemas/ConfigTemplateRequest' nullable: true description: type: string @@ -113107,19 +105647,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/BriefManufacturer' - default_platform: - allOf: - - $ref: '#/components/schemas/BriefPlatform' - nullable: true + $ref: '#/components/schemas/Manufacturer' model: type: string maxLength: 100 @@ -113127,199 +105659,18 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: number - format: double - maximum: 1000 - minimum: 0 - exclusiveMaximum: true - default: 1.0 - title: Position (U) - exclude_from_utilization: - type: boolean - description: Devices of this type are excluded when calculating rack utilization. - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces. - subdevice_role: - type: object - properties: - value: - enum: - - parent - - child - - '' - type: string - description: '* `parent` - Parent - - * `child` - Child' - x-spec-enum-id: d10d91f690a856c2 - label: - type: string - enum: - - Parent - - Child - nullable: true - airflow: - type: object - properties: - value: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - label: - type: string - enum: - - Front to rear - - Rear to front - - Left to right - - Right to left - - Side to rear - - Passive - - Mixed - nullable: true - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - type: object - properties: - value: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - label: - type: string - enum: - - Kilograms - - Grams - - Pounds - - Ounces - nullable: true - front_image: - type: string - format: uri - nullable: true - rear_image: - type: string - format: uri - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true device_count: type: integer format: int64 readOnly: true - console_port_template_count: - type: integer - readOnly: true - console_server_port_template_count: - type: integer - readOnly: true - power_port_template_count: - type: integer - readOnly: true - power_outlet_template_count: - type: integer - readOnly: true - interface_template_count: - type: integer - readOnly: true - front_port_template_count: - type: integer - readOnly: true - rear_port_template_count: - type: integer - readOnly: true - device_bay_template_count: - type: integer - readOnly: true - module_bay_template_count: - type: integer - readOnly: true - inventory_item_template_count: - type: integer - readOnly: true required: - - console_port_template_count - - console_server_port_template_count - - created - - device_bay_template_count - display - - display_url - - front_port_template_count - id - - interface_template_count - - inventory_item_template_count - - last_updated - manufacturer - model - - module_bay_template_count - - power_outlet_template_count - - power_port_template_count - - rear_port_template_count - slug - url DeviceTypeRequest: @@ -113327,11 +105678,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - default_platform: - allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' - nullable: true + $ref: '#/components/schemas/ManufacturerRequest' model: type: string minLength: 1 @@ -113341,104 +105688,9 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: number - format: double - maximum: 1000 - minimum: 0 - exclusiveMaximum: true - default: 1.0 - title: Position (U) - exclude_from_utilization: - type: boolean - description: Devices of this type are excluded when calculating rack utilization. - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces. - subdevice_role: - enum: - - parent - - child - - '' - type: string - description: '* `parent` - Parent - - * `child` - Child' - x-spec-enum-id: d10d91f690a856c2 - nullable: true - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - nullable: true - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - nullable: true - front_image: - type: string - format: binary - rear_image: - type: string - format: binary description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - manufacturer - model @@ -113454,10 +105706,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -113466,16 +105714,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/BriefDeviceType' + $ref: '#/components/schemas/DeviceType' role: - $ref: '#/components/schemas/BriefDeviceRole' + $ref: '#/components/schemas/DeviceRole' tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatform' + - $ref: '#/components/schemas/Platform' nullable: true serial: type: string @@ -113488,14 +105736,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/BriefSite' + $ref: '#/components/schemas/Site' location: allOf: - - $ref: '#/components/schemas/BriefLocation' + - $ref: '#/components/schemas/Location' nullable: true rack: allOf: - - $ref: '#/components/schemas/BriefRack' + - $ref: '#/components/schemas/Rack' nullable: true position: type: number @@ -113544,8 +105792,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - nullable: true readOnly: true + nullable: true status: type: object properties: @@ -113623,28 +105871,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefCluster' + - $ref: '#/components/schemas/Cluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/BriefVirtualChassis' + - $ref: '#/components/schemas/VirtualChassis' nullable: true vc_position: type: integer @@ -113664,7 +105912,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplate' + - $ref: '#/components/schemas/ConfigTemplate' nullable: true config_context: nullable: true @@ -113728,7 +105976,6 @@ components: - device_bay_count - device_type - display - - display_url - front_port_count - id - interface_count @@ -113752,16 +105999,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' + $ref: '#/components/schemas/DeviceTypeRequest' role: - $ref: '#/components/schemas/BriefDeviceRoleRequest' + $ref: '#/components/schemas/DeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' + - $ref: '#/components/schemas/PlatformRequest' nullable: true serial: type: string @@ -113774,14 +106021,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/BriefSiteRequest' + $ref: '#/components/schemas/SiteRequest' location: allOf: - - $ref: '#/components/schemas/BriefLocationRequest' + - $ref: '#/components/schemas/LocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/BriefRackRequest' + - $ref: '#/components/schemas/RackRequest' nullable: true position: type: number @@ -113870,23 +106117,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefClusterRequest' + - $ref: '#/components/schemas/ClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/BriefVirtualChassisRequest' + - $ref: '#/components/schemas/VirtualChassisRequest' nullable: true vc_position: type: integer @@ -113906,7 +106153,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' + - $ref: '#/components/schemas/ConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -113934,10 +106181,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -113948,35 +106191,28 @@ components: name: type: string maxLength: 150 + type_create: + type: boolean + title: On create + description: Triggers when a matching object is created. + type_update: + type: boolean + title: On update + description: Triggers when a matching object is updated. + type_delete: + type: boolean + title: On delete + description: Triggers when a matching object is deleted. + type_job_start: + type: boolean + title: On job start + description: Triggers when a job for a matching object is started. + type_job_end: + type: boolean + title: On job end + description: Triggers when a job for a matching object terminates. enabled: type: boolean - event_types: - type: array - items: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -113988,20 +106224,16 @@ components: enum: - webhook - script - - notification type: string description: '* `webhook` - Webhook - * `script` - Script - - * `notification` - Notification' - x-spec-enum-id: d07193c73ebc03c6 + * `script` - Script' + x-spec-enum-id: a08300d86473de6e label: type: string enum: - Webhook - Script - - Notification action_object_type: type: string action_object_id: @@ -114040,8 +106272,6 @@ components: - action_type - created - display - - display_url - - event_types - id - last_updated - name @@ -114059,35 +106289,28 @@ components: type: string minLength: 1 maxLength: 150 + type_create: + type: boolean + title: On create + description: Triggers when a matching object is created. + type_update: + type: boolean + title: On update + description: Triggers when a matching object is updated. + type_delete: + type: boolean + title: On delete + description: Triggers when a matching object is deleted. + type_job_start: + type: boolean + title: On job start + description: Triggers when a job for a matching object is started. + type_job_end: + type: boolean + title: On job end + description: Triggers when a job for a matching object terminates. enabled: type: boolean - event_types: - type: array - items: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -114096,14 +106319,11 @@ components: enum: - webhook - script - - notification type: string description: '* `webhook` - Webhook - * `script` - Script - - * `notification` - Notification' - x-spec-enum-id: d07193c73ebc03c6 + * `script` - Script' + x-spec-enum-id: a08300d86473de6e action_object_type: type: string action_object_id: @@ -114125,7 +106345,6 @@ components: required: - action_object_type - action_type - - event_types - name - object_types ExportTemplate: @@ -114142,10 +106361,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -114175,14 +106390,14 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/BriefDataSource' + $ref: '#/components/schemas/DataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/BriefDataFile' + - $ref: '#/components/schemas/DataFile' readOnly: true data_synced: type: string @@ -114206,7 +106421,6 @@ components: - data_path - data_synced - display - - display_url - id - last_updated - name @@ -114248,7 +106462,7 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/BriefDataSourceRequest' + $ref: '#/components/schemas/DataSourceRequest' required: - name - object_types @@ -114260,17 +106474,10 @@ components: id: type: integer readOnly: true - name: - type: string - maxLength: 100 url: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -114302,56 +106509,13 @@ components: type: integer maximum: 32767 minimum: 0 - auth_type: - enum: - - plaintext - - md5 - - '' - type: string - description: '* `plaintext` - Plaintext - - * `md5` - MD5' - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - auth_key: - type: string - title: Authentication key - maxLength: 255 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - ip_addresses: - type: array - items: - $ref: '#/components/schemas/BriefIPAddress' - readOnly: true required: - - created - display - - display_url - group_id - id - - ip_addresses - - last_updated - protocol - url FHRPGroupAssignment: @@ -114369,7 +106533,7 @@ components: type: string readOnly: true group: - $ref: '#/components/schemas/BriefFHRPGroup' + $ref: '#/components/schemas/FHRPGroup' interface_type: type: string interface_id: @@ -114410,7 +106574,7 @@ components: description: Adds support for custom fields and tags. properties: group: - $ref: '#/components/schemas/BriefFHRPGroupRequest' + $ref: '#/components/schemas/FHRPGroupRequest' interface_type: type: string interface_id: @@ -114431,9 +106595,6 @@ components: type: object description: Adds support for custom fields and tags. properties: - name: - type: string - maxLength: 100 protocol: enum: - vrrp2 @@ -114462,33 +106623,9 @@ components: type: integer maximum: 32767 minimum: 0 - auth_type: - enum: - - plaintext - - md5 - - '' - type: string - description: '* `plaintext` - Plaintext - - * `md5` - MD5' - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - auth_key: - type: string - title: Authentication key - maxLength: 255 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - group_id - protocol @@ -114503,18 +106640,14 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true name: type: string @@ -114574,14 +106707,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -114676,24 +106801,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a label: type: string enum: @@ -114743,14 +106852,6 @@ components: - URM-P4 - URM-P8 - Splice - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - USB Micro AB - Other color: type: string @@ -114772,7 +106873,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/BriefCable' + - $ref: '#/components/schemas/Cable' readOnly: true nullable: true cable_end: @@ -114786,7 +106887,6 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true - nullable: true tags: type: array items: @@ -114815,7 +106915,6 @@ components: - created - device - display - - display_url - id - last_updated - link_peers @@ -114836,10 +106935,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -114855,7 +106950,6 @@ components: maxLength: 200 required: - display - - display_url - id - name - url @@ -114882,10 +106976,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -114943,14 +107037,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -115045,24 +107131,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ @@ -115112,11 +107182,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceType' + - $ref: '#/components/schemas/DeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleType' + - $ref: '#/components/schemas/ModuleType' nullable: true name: type: string @@ -115178,14 +107248,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -115280,24 +107342,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a label: type: string enum: @@ -115347,21 +107393,13 @@ components: - URM-P4 - URM-P8 - Splice - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - USB Micro AB - Other color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/BriefRearPortTemplate' + $ref: '#/components/schemas/RearPortTemplate' rear_port_position: type: integer maximum: 1024 @@ -115398,11 +107436,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -115462,14 +107500,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -115564,30 +107594,14 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/BriefRearPortTemplateRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -115600,22 +107614,6 @@ components: - name - rear_port - type - GenericObject: - type: object - description: Minimal representation of some generic object identified by ContentType - and PK. - properties: - object_type: - type: string - object_id: - type: integer - object: - nullable: true - readOnly: true - required: - - object - - object_id - - object_type GenericObjectRequest: type: object description: Minimal representation of some generic object identified by ContentType @@ -115642,10 +107640,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -115664,7 +107658,6 @@ components: readOnly: true required: - display - - display_url - id - name - url @@ -115700,10 +107693,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -115776,9 +107765,9 @@ components: required: - created - display - - display_url - id - last_updated + - mode - name - url - version @@ -115828,6 +107817,7 @@ components: type: object additionalProperties: {} required: + - mode - name - version IKEProposal: @@ -115841,10 +107831,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -116080,10 +108066,10 @@ components: readOnly: true nullable: true required: + - authentication_algorithm - authentication_method - created - display - - display_url - encryption_algorithm - group - id @@ -116252,6 +108238,7 @@ components: type: object additionalProperties: {} required: + - authentication_algorithm - authentication_method - encryption_algorithm - group @@ -116267,10 +108254,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -116294,143 +108277,14 @@ components: readOnly: true address: type: string - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRF' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - status: - type: object - properties: - value: - enum: - - active - - reserved - - deprecated - - dhcp - - slaac - type: string - description: '* `active` - Active - - * `reserved` - Reserved - - * `deprecated` - Deprecated - - * `dhcp` - DHCP - - * `slaac` - SLAAC' - x-spec-enum-id: 24935cfee15bd268 - label: - type: string - enum: - - Active - - Reserved - - Deprecated - - DHCP - - SLAAC - role: - type: object - properties: - value: - enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - - '' - type: string - description: '* `loopback` - Loopback - - * `secondary` - Secondary - - * `anycast` - Anycast - - * `vip` - VIP - - * `vrrp` - VRRP - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `carp` - CARP' - x-spec-enum-id: 10fbcb4930889b0f - label: - type: string - enum: - - Loopback - - Secondary - - Anycast - - VIP - - VRRP - - HSRP - - GLBP - - CARP - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - assigned_object: - nullable: true - readOnly: true - nat_inside: - allOf: - - $ref: '#/components/schemas/NestedIPAddress' - nullable: true - nat_outside: - type: array - items: - $ref: '#/components/schemas/NestedIPAddress' - readOnly: true - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ - maxLength: 255 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - address - - assigned_object - - created - display - - display_url - family - id - - last_updated - - nat_outside - url IPAddressRequest: type: object @@ -116439,90 +108293,9 @@ components: address: type: string minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - status: - enum: - - active - - reserved - - deprecated - - dhcp - - slaac - type: string - description: '* `active` - Active - - * `reserved` - Reserved - - * `deprecated` - Deprecated - - * `dhcp` - DHCP - - * `slaac` - SLAAC' - x-spec-enum-id: 24935cfee15bd268 - role: - enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - - '' - type: string - description: '* `loopback` - Loopback - - * `secondary` - Secondary - - * `anycast` - Anycast - - * `vip` - VIP - - * `vrrp` - VRRP - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `carp` - CARP' - x-spec-enum-id: 10fbcb4930889b0f - assigned_object_type: - type: string - nullable: true - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - nat_inside: - allOf: - - $ref: '#/components/schemas/NestedIPAddressRequest' - nullable: true - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ - maxLength: 255 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - address IPRange: @@ -116536,10 +108309,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -116570,11 +108339,11 @@ components: readOnly: true vrf: allOf: - - $ref: '#/components/schemas/BriefVRF' + - $ref: '#/components/schemas/VRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true status: type: object @@ -116599,7 +108368,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/BriefRole' + - $ref: '#/components/schemas/Role' nullable: true description: type: string @@ -116629,7 +108398,6 @@ components: required: - created - display - - display_url - end_address - family - id @@ -116649,11 +108417,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true status: enum: @@ -116669,7 +108437,7 @@ components: x-spec-enum-id: 6388dfb94ca1cc15 role: allOf: - - $ref: '#/components/schemas/BriefRoleRequest' + - $ref: '#/components/schemas/RoleRequest' nullable: true description: type: string @@ -116700,10 +108468,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -116844,7 +108608,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -116961,10 +108724,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -116992,9 +108751,9 @@ components: - ESP - AH ike_policy: - $ref: '#/components/schemas/BriefIKEPolicy' + $ref: '#/components/schemas/IKEPolicy' ipsec_policy: - $ref: '#/components/schemas/BriefIPSecPolicy' + $ref: '#/components/schemas/IPSecPolicy' comments: type: string tags: @@ -117017,7 +108776,6 @@ components: required: - created - display - - display_url - id - ike_policy - ipsec_policy @@ -117046,9 +108804,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/BriefIKEPolicyRequest' + $ref: '#/components/schemas/IKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/BriefIPSecPolicyRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' comments: type: string tags: @@ -117074,10 +108832,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -117194,7 +108948,6 @@ components: - authentication_algorithm - created - display - - display_url - encryption_algorithm - id - last_updated @@ -117318,10 +109071,12 @@ components: format: uri image_height: type: integer - readOnly: true + maximum: 32767 + minimum: 0 image_width: type: integer - readOnly: true + maximum: 32767 + minimum: 0 created: type: string format: date-time @@ -117364,8 +109119,18 @@ components: image: type: string format: binary + image_height: + type: integer + maximum: 32767 + minimum: 0 + image_width: + type: integer + maximum: 32767 + minimum: 0 required: - image + - image_height + - image_width - object_id - object_type Interface: @@ -117379,22 +109144,18 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' vdcs: type: array items: $ref: '#/components/schemas/VirtualDeviceContext' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true name: type: string @@ -117416,7 +109177,6 @@ components: - 100base-tx - 100base-t1 - 1000base-t - - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -117470,7 +109230,6 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay - - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -117552,8 +109311,6 @@ components: * `1000base-t` - 1000BASE-T (1GE) - * `1000base-tx` - 1000BASE-TX (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -117660,8 +109417,6 @@ components: * `ieee802.11ay` - IEEE 802.11ay - * `ieee802.11be` - IEEE 802.11be - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -117789,7 +109544,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 + x-spec-enum-id: b9a351ea129ed754 label: type: string enum: @@ -117801,7 +109556,6 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) - - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) @@ -117855,7 +109609,6 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay - - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) - Other (Wireless) - GSM @@ -118907,7 +110660,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/BriefVLAN' + - $ref: '#/components/schemas/VLAN' nullable: true tagged_vlans: type: array @@ -118918,7 +110671,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/BriefCable' + - $ref: '#/components/schemas/Cable' readOnly: true nullable: true cable_end: @@ -118937,29 +110690,26 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true - nullable: true wireless_lans: type: array items: $ref: '#/components/schemas/WirelessLAN' vrf: allOf: - - $ref: '#/components/schemas/BriefVRF' + - $ref: '#/components/schemas/VRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/BriefL2VPNTermination' + - $ref: '#/components/schemas/L2VPNTermination' readOnly: true nullable: true connected_endpoints: type: array items: {} - nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true - nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -119002,7 +110752,6 @@ components: - created - device - display - - display_url - id - l2vpn_termination - last_updated @@ -119017,14 +110766,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -119044,7 +110793,6 @@ components: - 100base-tx - 100base-t1 - 1000base-t - - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -119098,7 +110846,6 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay - - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -119180,8 +110927,6 @@ components: * `1000base-t` - 1000BASE-T (1GE) - * `1000base-tx` - 1000BASE-TX (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -119288,8 +111033,6 @@ components: * `ieee802.11ay` - IEEE 802.11ay - * `ieee802.11be` - IEEE 802.11be - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -119417,7 +111160,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 + x-spec-enum-id: b9a351ea129ed754 enabled: type: boolean parent: @@ -120154,7 +111897,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true tagged_vlans: type: array @@ -120169,7 +111912,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tags: type: array @@ -120201,11 +111944,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceType' + - $ref: '#/components/schemas/DeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleType' + - $ref: '#/components/schemas/ModuleType' nullable: true name: type: string @@ -120229,7 +111972,6 @@ components: - 100base-tx - 100base-t1 - 1000base-t - - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -120283,7 +112025,6 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay - - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -120365,8 +112106,6 @@ components: * `1000base-t` - 1000BASE-T (1GE) - * `1000base-tx` - 1000BASE-TX (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -120473,8 +112212,6 @@ components: * `ieee802.11ay` - IEEE 802.11ay - * `ieee802.11be` - IEEE 802.11be - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -120602,7 +112339,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 + x-spec-enum-id: b9a351ea129ed754 label: type: string enum: @@ -120614,7 +112351,6 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) - - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) @@ -120668,7 +112404,6 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay - - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) - Other (Wireless) - GSM @@ -120853,11 +112588,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -120879,7 +112614,6 @@ components: - 100base-tx - 100base-t1 - 1000base-t - - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -120933,7 +112667,6 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay - - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -121015,8 +112748,6 @@ components: * `1000base-t` - 1000BASE-T (1GE) - * `1000base-tx` - 1000BASE-TX (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -121123,8 +112854,6 @@ components: * `ieee802.11ay` - IEEE 802.11ay - * `ieee802.11be` - IEEE 802.11be - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -121252,7 +112981,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 + x-spec-enum-id: b9a351ea129ed754 enabled: type: boolean mgmt_only: @@ -121330,15 +113059,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' parent: type: integer nullable: true @@ -121351,11 +113076,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/BriefInventoryItemRole' + - $ref: '#/components/schemas/InventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/BriefManufacturer' + - $ref: '#/components/schemas/Manufacturer' nullable: true part_id: type: string @@ -121415,7 +113140,6 @@ components: - created - device - display - - display_url - id - last_updated - name @@ -121425,7 +113149,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' parent: type: integer nullable: true @@ -121439,11 +113163,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/BriefManufacturerRequest' + - $ref: '#/components/schemas/ManufacturerRequest' nullable: true part_id: type: string @@ -121494,10 +113218,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -121539,7 +113259,6 @@ components: required: - created - display - - display_url - id - inventoryitem_count - last_updated @@ -121595,7 +113314,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/BriefDeviceType' + $ref: '#/components/schemas/DeviceType' parent: type: integer nullable: true @@ -121610,11 +113329,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/BriefInventoryItemRole' + - $ref: '#/components/schemas/InventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/BriefManufacturer' + - $ref: '#/components/schemas/Manufacturer' nullable: true part_id: type: string @@ -121667,7 +113386,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' + $ref: '#/components/schemas/DeviceTypeRequest' parent: type: integer nullable: true @@ -121683,11 +113402,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/BriefManufacturerRequest' + - $ref: '#/components/schemas/ManufacturerRequest' nullable: true part_id: type: string @@ -121718,10 +113437,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -121795,7 +113510,7 @@ components: nullable: true user: allOf: - - $ref: '#/components/schemas/BriefUser' + - $ref: '#/components/schemas/User' readOnly: true data: nullable: true @@ -121808,7 +113523,6 @@ components: required: - created - display - - display_url - error - id - job_id @@ -121817,6 +113531,13 @@ components: - status - url - user + JobRequest: + type: object + properties: + completed: + type: string + format: date-time + nullable: true JournalEntry: type: object description: Adds support for custom fields and tags. @@ -121828,10 +113549,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -121899,7 +113616,6 @@ components: - comments - created - display - - display_url - id - last_updated - url @@ -121957,10 +113673,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -122034,46 +113746,12 @@ components: - Ethernet Virtual Private LAN - Ethernet Private Tree - Ethernet Virtual Private Tree - import_targets: - type: array - items: - $ref: '#/components/schemas/RouteTarget' - export_targets: - type: array - items: - $ref: '#/components/schemas/RouteTarget' description: type: string maxLength: 200 - comments: - type: string - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - display - - display_url - id - - last_updated - name - slug - url @@ -122135,30 +113813,9 @@ components: * `evp-tree` - Ethernet Virtual Private Tree' x-spec-enum-id: dbaa4f996ec2d110 - import_targets: - type: array - items: - type: integer - export_targets: - type: array - items: - type: integer description: type: string maxLength: 200 - comments: - type: string - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - slug @@ -122173,76 +113830,23 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true l2vpn: - $ref: '#/components/schemas/BriefL2VPN' - assigned_object_type: - type: string - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - assigned_object: - nullable: true - readOnly: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true + $ref: '#/components/schemas/L2VPN' required: - - assigned_object - - assigned_object_id - - assigned_object_type - - created - display - - display_url - id - l2vpn - - last_updated - url L2VPNTerminationRequest: type: object description: Adds support for custom fields and tags. properties: l2vpn: - $ref: '#/components/schemas/BriefL2VPNRequest' - assigned_object_type: - type: string - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} + $ref: '#/components/schemas/L2VPNRequest' required: - - assigned_object_id - - assigned_object_type - l2vpn Location: type: object @@ -122255,10 +113859,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -122269,91 +113869,23 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/BriefSite' - parent: - allOf: - - $ref: '#/components/schemas/NestedLocation' - nullable: true - status: - type: object - properties: - value: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - label: - type: string - enum: - - Planned - - Staging - - Active - - Decommissioning - - Retired - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true rack_count: type: integer readOnly: true default: 0 - device_count: - type: integer - readOnly: true - default: 0 _depth: type: integer readOnly: true title: ' depth' required: - _depth - - created - display - - display_url - id - - last_updated - name - rack_count - - site - slug - url LocationRequest: @@ -122369,51 +113901,11 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/BriefSiteRequest' - parent: - allOf: - - $ref: '#/components/schemas/NestedLocationRequest' - nullable: true - status: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - - site - slug Manufacturer: type: object @@ -122426,10 +113918,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -122443,44 +113931,14 @@ components: description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true devicetype_count: type: integer format: int64 readOnly: true - inventoryitem_count: - type: integer - format: int64 - readOnly: true - platform_count: - type: integer - format: int64 - readOnly: true required: - - created - display - - display_url - id - - inventoryitem_count - - last_updated - name - - platform_count - slug - url ManufacturerRequest: @@ -122499,13 +113957,6 @@ components: description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - slug @@ -122520,92 +113971,18 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' module_bay: $ref: '#/components/schemas/NestedModuleBay' - module_type: - $ref: '#/components/schemas/BriefModuleType' - status: - type: object - properties: - value: - enum: - - offline - - active - - planned - - staged - - failed - - decommissioning - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `staged` - Staged - - * `failed` - Failed - - * `decommissioning` - Decommissioning' - x-spec-enum-id: 2217e87d0c3efdda - label: - type: string - enum: - - Offline - - Active - - Planned - - Staged - - Failed - - Decommissioning - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - device - display - - display_url - id - - last_updated - module_bay - - module_type - url ModuleBay: type: object @@ -122618,25 +113995,17 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' - module: - allOf: - - $ref: '#/components/schemas/BriefModule' - nullable: true + $ref: '#/components/schemas/Device' name: type: string maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true label: type: string @@ -122670,28 +114039,65 @@ components: - created - device - display - - display_url - id - last_updated - name - url + ModuleBayNestedModule: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + serial: + type: string + title: Serial number + maxLength: 50 + required: + - display + - id + - url + ModuleBayNestedModuleRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + serial: + type: string + title: Serial number + maxLength: 50 ModuleBayRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true + $ref: '#/components/schemas/DeviceRequest' name: type: string minLength: 1 maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true label: type: string @@ -122732,13 +114138,7 @@ components: type: string readOnly: true device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceType' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleType' - nullable: true + $ref: '#/components/schemas/DeviceType' name: type: string description: '{module} is accepted as a substitution for the module bay @@ -122767,6 +114167,7 @@ components: nullable: true required: - created + - device_type - display - id - last_updated @@ -122780,13 +114181,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true + $ref: '#/components/schemas/DeviceTypeRequest' name: type: string minLength: 1 @@ -122805,63 +114200,19 @@ components: type: string maxLength: 200 required: + - device_type - name ModuleRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module_bay: $ref: '#/components/schemas/NestedModuleBayRequest' - module_type: - $ref: '#/components/schemas/BriefModuleTypeRequest' - status: - enum: - - offline - - active - - planned - - staged - - failed - - decommissioning - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `staged` - Staged - - * `failed` - Failed - - * `decommissioning` - Decommissioning' - x-spec-enum-id: 2217e87d0c3efdda - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - device - module_bay - - module_type ModuleType: type: object description: Adds support for custom fields and tags. @@ -122873,120 +114224,20 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/BriefManufacturer' + $ref: '#/components/schemas/Manufacturer' model: type: string maxLength: 100 - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - airflow: - type: object - properties: - value: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive' - x-spec-enum-id: f6e5562e0e98d69d - label: - type: string - enum: - - Front to rear - - Rear to front - - Left to right - - Right to left - - Side to rear - - Passive - nullable: true - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - type: object - properties: - value: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - label: - type: string - enum: - - Kilograms - - Grams - - Pounds - - Ounces - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - display - - display_url - id - - last_updated - manufacturer - model - url @@ -122995,75 +114246,14 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' + $ref: '#/components/schemas/ManufacturerRequest' model: type: string minLength: 1 maxLength: 100 - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive' - x-spec-enum-id: f6e5562e0e98d69d - nullable: true - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - manufacturer - model @@ -123084,10 +114274,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123105,7 +114291,6 @@ components: required: - _depth - display - - display_url - id - name - slug @@ -123149,10 +114334,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123162,7 +114343,6 @@ components: maxLength: 64 required: - display - - display_url - id - url NestedDeviceRequest: @@ -123196,10 +114376,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123208,61 +114384,9 @@ components: maxLength: 150 required: - display - - display_url - id - name - url - NestedIPAddress: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - family: - type: integer - readOnly: true - address: - type: string - required: - - address - - display - - display_url - - family - - id - - url - NestedIPAddressRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - address: - type: string - minLength: 1 - required: - - address NestedInterface: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -123280,10 +114404,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123305,7 +114425,6 @@ components: - _occupied - device - display - - display_url - id - name - url @@ -123376,71 +114495,6 @@ components: maxLength: 64 required: - name - NestedLocation: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - display_url - - id - - name - - slug - - url - NestedLocationRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - - slug NestedModuleBay: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -123458,19 +114512,18 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true + installed_module: + allOf: + - $ref: '#/components/schemas/ModuleBayNestedModule' + nullable: true name: type: string maxLength: 64 required: - display - - display_url - id - name - url @@ -123484,49 +114537,16 @@ components: subclassed to return a full representation of the related object on read.' properties: + installed_module: + allOf: + - $ref: '#/components/schemas/ModuleBayNestedModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 required: - name - NestedProviderAccount: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - account: - type: string - title: Account ID - maxLength: 100 - required: - - account - - display - - display_url - - id - - url NestedRegion: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -123544,10 +114564,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123565,7 +114581,6 @@ components: required: - _depth - display - - display_url - id - name - slug @@ -123592,72 +114607,7 @@ components: required: - name - slug - NestedSiteGroup: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - display_url - - id - - name - - slug - - url - NestedSiteGroupRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - - slug - NestedTag: + NestedSiteGroup: type: object description: 'Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a @@ -123674,7 +114624,63 @@ components: type: string format: uri readOnly: true - display_url: + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + NestedSiteGroupRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug + NestedTag: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: type: string format: uri readOnly: true @@ -123694,7 +114700,6 @@ components: maxLength: 6 required: - display - - display_url - id - name - slug @@ -123743,10 +114748,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123764,7 +114765,6 @@ components: required: - _depth - display - - display_url - id - name - slug @@ -123808,10 +114808,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123823,7 +114819,6 @@ components: maxLength: 150 required: - display - - display_url - id - url - username @@ -123844,10 +114839,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123860,7 +114851,6 @@ components: maxLength: 64 required: - display - - display_url - id - name - url @@ -123898,10 +114888,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -123910,7 +114896,6 @@ components: maxLength: 64 required: - display - - display_url - id - name - url @@ -123930,49 +114915,6 @@ components: maxLength: 64 required: - name - NestedWirelessLANGroup: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - display_url - - id - - name - - slug - - url NestedWirelessLANGroupRequest: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -124012,10 +114954,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -124024,7 +114962,6 @@ components: maxLength: 32 required: - display - - display_url - id - url NestedWirelessLinkRequest: @@ -124040,193 +114977,6 @@ components: ssid: type: string maxLength: 32 - Notification: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - object: - nullable: true - readOnly: true - user: - $ref: '#/components/schemas/BriefUser' - created: - type: string - format: date-time - readOnly: true - read: - type: string - format: date-time - nullable: true - event_type: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - title: Event - required: - - created - - display - - event_type - - id - - object - - object_id - - object_type - - url - - user - NotificationGroup: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - display_url: - type: string - format: uri - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - groups: - type: array - items: - $ref: '#/components/schemas/Group' - users: - type: array - items: - $ref: '#/components/schemas/User' - required: - - display - - display_url - - id - - name - - url - NotificationGroupRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - groups: - type: array - items: - type: integer - users: - type: array - items: - type: integer - required: - - name - NotificationRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/BriefUserRequest' - read: - type: string - format: date-time - nullable: true - event_type: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - title: Event - required: - - event_type - - object_id - - object_type - - user ObjectChange: type: object properties: @@ -124237,10 +114987,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -124250,7 +114996,7 @@ components: readOnly: true user: allOf: - - $ref: '#/components/schemas/BriefUser' + - $ref: '#/components/schemas/User' readOnly: true user_name: type: string @@ -124295,16 +115041,17 @@ components: prechange_data: readOnly: true nullable: true + title: Pre-change data postchange_data: readOnly: true nullable: true + title: Post-change data required: - action - changed_object - changed_object_id - changed_object_type - display - - display_url - id - postchange_data - prechange_data @@ -124327,10 +115074,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -124367,7 +115110,6 @@ components: required: - actions - display - - display_url - id - name - object_types @@ -124579,52 +115321,6 @@ components: type: array items: $ref: '#/components/schemas/CableTermination' - PaginatedCircuitGroupAssignmentList: - type: object - required: - - count - - results - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CircuitGroupAssignment' - PaginatedCircuitGroupList: - type: object - required: - - count - - results - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/CircuitGroup' PaginatedCircuitList: type: object required: @@ -125913,52 +116609,6 @@ components: type: array items: $ref: '#/components/schemas/ModuleType' - PaginatedNotificationGroupList: - type: object - required: - - count - - results - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/NotificationGroup' - PaginatedNotificationList: - type: object - required: - - count - - results - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Notification' PaginatedObjectChangeList: type: object required: @@ -126373,29 +117023,6 @@ components: type: array items: $ref: '#/components/schemas/RackRole' - PaginatedRackTypeList: - type: object - required: - - count - - results - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/RackType' PaginatedRackUnitList: type: object required: @@ -126672,29 +117299,6 @@ components: type: array items: $ref: '#/components/schemas/Site' - PaginatedSubscriptionList: - type: object - required: - - count - - results - properties: - count: - type: integer - example: 123 - next: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=400&limit=100 - previous: - type: string - nullable: true - format: uri - example: http://api.example.org/accounts/?offset=200&limit=100 - results: - type: array - items: - $ref: '#/components/schemas/Subscription' PaginatedTagList: type: object required: @@ -127169,7 +117773,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ rir: - $ref: '#/components/schemas/BriefRIRRequest' + $ref: '#/components/schemas/RIRRequest' start: type: integer maximum: 4294967295 @@ -127182,7 +117786,7 @@ components: format: int64 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true description: type: string @@ -127206,11 +117810,11 @@ components: description: 16- or 32-bit autonomous system number rir: allOf: - - $ref: '#/components/schemas/BriefRIRRequest' + - $ref: '#/components/schemas/RIRRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true description: type: string @@ -127239,7 +117843,7 @@ components: minimum: 0 format: int64 user: - $ref: '#/components/schemas/BriefUserRequest' + $ref: '#/components/schemas/UserRequest' PatchedCableTerminationRequest: type: object description: Adds support for custom fields and tags. @@ -127263,39 +117867,12 @@ components: maximum: 9223372036854775807 minimum: 0 format: int64 - PatchedCircuitGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} PatchedCircuitTerminationRequest: type: object description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/BriefCircuitRequest' + $ref: '#/components/schemas/CircuitRequest' term_side: enum: - A @@ -127308,11 +117885,11 @@ components: title: Termination site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true provider_network: allOf: - - $ref: '#/components/schemas/BriefProviderNetworkRequest' + - $ref: '#/components/schemas/ProviderNetworkRequest' nullable: true port_speed: type: integer @@ -127498,7 +118075,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/BriefDataSourceRequest' + $ref: '#/components/schemas/DataSourceRequest' data: {} PatchedConfigTemplateRequest: type: object @@ -127524,7 +118101,7 @@ components: minLength: 1 description: Jinja2 template code. data_source: - $ref: '#/components/schemas/BriefDataSourceRequest' + $ref: '#/components/schemas/DataSourceRequest' tags: type: array items: @@ -127535,7 +118112,7 @@ components: properties: group: allOf: - - $ref: '#/components/schemas/BriefContactGroupRequest' + - $ref: '#/components/schemas/ContactGroupRequest' nullable: true name: type: string @@ -127628,7 +118205,7 @@ components: maxLength: 50 button_class: enum: - - default + - outline-dark - blue - indigo - purple @@ -127644,12 +118221,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: ee8e5bb1ccdcdb19 + x-spec-enum-id: 9378cdf56abee54a description: 'The class of the first link in a group will be used for the dropdown button - * `default` - Default + * `outline-dark` - Default * `blue` - Blue @@ -127691,985 +118268,22 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedDeviceBayTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - description: - type: string - maxLength: 200 - PatchedDeviceRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - config_template: - allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedExportTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: - type: string - minLength: 1 - description: Jinja2 template code. The list of objects being exported is - passed as a context variable named queryset. - mime_type: - type: string - description: Defaults to text/plain; charset=utf-8 - maxLength: 50 - file_extension: - type: string - description: Extension to append to the rendered filename - maxLength: 15 - as_attachment: - type: boolean - description: Download file as attachment - data_source: - $ref: '#/components/schemas/BriefDataSourceRequest' - PatchedFHRPGroupAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - group: - $ref: '#/components/schemas/BriefFHRPGroupRequest' - interface_type: - type: string - interface_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - priority: - type: integer - maximum: 255 - minimum: 0 - PatchedFHRPGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - maxLength: 100 - protocol: - enum: - - vrrp2 - - vrrp3 - - carp - - clusterxl - - hsrp - - glbp - - other - type: string - description: '* `vrrp2` - VRRPv2 - - * `vrrp3` - VRRPv3 - - * `carp` - CARP - - * `clusterxl` - ClusterXL - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `other` - Other' - x-spec-enum-id: 40dc831c689b4b78 - group_id: - type: integer - maximum: 32767 - minimum: 0 - auth_type: - enum: - - plaintext - - md5 - - '' - type: string - description: '* `plaintext` - Plaintext - - * `md5` - MD5' - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - auth_key: - type: string - title: Authentication key - maxLength: 255 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedGroupRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 150 - description: - type: string - maxLength: 200 - permissions: - type: array - items: - type: integer - PatchedImageAttachmentRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - name: - type: string - maxLength: 50 - image: - type: string - format: binary - PatchedInventoryItemRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - parent: - type: integer - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - role: - allOf: - - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' - nullable: true - manufacturer: - allOf: - - $ref: '#/components/schemas/BriefManufacturerRequest' - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered - description: - type: string - maxLength: 200 - component_type: - type: string - nullable: true - component_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedInventoryItemRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedInventoryItemTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' - parent: - type: integer - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - role: - allOf: - - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' - nullable: true - manufacturer: - allOf: - - $ref: '#/components/schemas/BriefManufacturerRequest' - nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - description: - type: string - maxLength: 200 - component_type: - type: string - nullable: true - component_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - PatchedL2VPNTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - l2vpn: - $ref: '#/components/schemas/BriefL2VPNRequest' - assigned_object_type: - type: string - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedManufacturerRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedModuleBayRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - installed_module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true - label: - type: string - description: Physical label - maxLength: 64 - position: - type: string - description: Identifier to reference when renaming installed components - maxLength: 30 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedModuleBayTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true + $ref: '#/components/schemas/DeviceRequest' name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' maxLength: 64 label: type: string description: Physical label maxLength: 64 - position: - type: string - description: Identifier to reference when renaming installed components - maxLength: 30 - description: - type: string - maxLength: 200 - PatchedNotificationGroupRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - groups: - type: array - items: - type: integer - users: - type: array - items: - type: integer - PatchedNotificationRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/BriefUserRequest' - read: - type: string - format: date-time - nullable: true - event_type: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - title: Event - PatchedObjectPermissionRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - enabled: - type: boolean - object_types: - type: array - items: - type: string - actions: - type: array - items: - type: string - minLength: 1 - maxLength: 30 - description: The list of actions granted by this permission - constraints: - nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - groups: - type: array - items: - type: integer - users: - type: array - items: - type: integer - PatchedPlatformRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/BriefManufacturerRequest' - nullable: true - config_template: - allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedPowerPanelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - site: - $ref: '#/components/schemas/BriefSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/BriefLocationRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderAccountRequest: - type: object - description: Adds support for custom fields and tags. - properties: - provider: - $ref: '#/components/schemas/BriefProviderRequest' - name: - type: string - default: '' - maxLength: 100 - account: - type: string - minLength: 1 - title: Account ID - maxLength: 100 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderNetworkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - provider: - $ref: '#/components/schemas/BriefProviderRequest' - name: - type: string - minLength: 1 - maxLength: 100 - service_id: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the provider - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - accounts: - type: array - items: - type: integer description: type: string maxLength: 200 - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRIRRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRackReservationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - rack: - $ref: '#/components/schemas/BriefRackRequest' - units: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - user: - $ref: '#/components/schemas/BriefUserRequest' - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - description: - type: string - minLength: 1 - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRackRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRoleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRouteTargetRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedSavedFilterRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_types: - type: array - items: - type: string - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - user: - type: integer - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - enabled: - type: boolean - shared: - type: boolean - parameters: {} - PatchedScriptInputRequest: - type: object - properties: - data: {} - commit: - type: boolean - schedule_at: - type: string - format: date-time - nullable: true - interval: - type: integer - nullable: true - PatchedSubscriptionRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/BriefUserRequest' - PatchedTagRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - description: - type: string - maxLength: 200 - object_types: - type: array - items: - type: string - PatchedTenantRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - allOf: - - $ref: '#/components/schemas/BriefTenantGroupRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string + installed_device: + allOf: + - $ref: '#/components/schemas/DeviceRequest' + nullable: true tags: type: array items: @@ -128677,34 +118291,29 @@ components: custom_fields: type: object additionalProperties: {} - PatchedTokenRequest: + PatchedDeviceBayTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - user: - $ref: '#/components/schemas/BriefUserRequest' - expires: - type: string - format: date-time - nullable: true - last_used: + device_type: + $ref: '#/components/schemas/DeviceTypeRequest' + name: type: string - format: date-time - nullable: true - key: + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key + description: Physical label + maxLength: 64 description: type: string maxLength: 200 - PatchedTunnelGroupRequest: + PatchedDeviceRoleRequest: type: object description: Adds support for custom fields and tags. properties: @@ -128717,6 +118326,18 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/ConfigTemplateRequest' + nullable: true description: type: string maxLength: 200 @@ -128727,82 +118348,114 @@ components: custom_fields: type: object additionalProperties: {} - PatchedUserRequest: + PatchedExportTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - username: + object_types: + type: array + items: + type: string + name: type: string minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: + maxLength: 100 + description: type: string - writeOnly: true - minLength: 1 - maxLength: 128 - first_name: + maxLength: 200 + template_code: type: string - maxLength: 150 - last_name: + minLength: 1 + description: Jinja2 template code. The list of objects being exported is + passed as a context variable named queryset. + mime_type: type: string - maxLength: 150 - email: + description: Defaults to text/plain; charset=utf-8 + maxLength: 50 + file_extension: type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: + description: Extension to append to the rendered filename + maxLength: 15 + as_attachment: type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - last_login: + description: Download file as attachment + data_source: + $ref: '#/components/schemas/DataSourceRequest' + PatchedFHRPGroupAssignmentRequest: + type: object + description: Adds support for custom fields and tags. + properties: + group: + $ref: '#/components/schemas/FHRPGroupRequest' + interface_type: type: string - format: date-time - nullable: true - groups: - type: array - items: - type: integer - permissions: - type: array - items: - type: integer - PatchedVLANGroupRequest: + interface_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + type: integer + maximum: 255 + minimum: 0 + PatchedFHRPGroupRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - scope_type: + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other type: string - nullable: true - scope_id: + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: type: integer - nullable: true + maximum: 32767 + minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -128810,172 +118463,105 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVRFRequest: + PatchedGroupRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: name: type: string minLength: 1 - maxLength: 100 - rd: - type: string - nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF + maxLength: 150 description: type: string maxLength: 200 - comments: - type: string - import_targets: - type: array - items: - type: integer - export_targets: + permissions: type: array items: type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedVirtualDiskRequest: + PatchedImageAttachmentRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachineRequest' + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 name: type: string - minLength: 1 - maxLength: 64 - description: + maxLength: 50 + image: type: string - maxLength: 200 - size: + format: binary + image_height: type: integer - maximum: 2147483647 + maximum: 32767 minimum: 0 - title: Size (MB) - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWebhookRequest: + image_width: + type: integer + maximum: 32767 + minimum: 0 + PatchedInventoryItemRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/DeviceRequest' + parent: + type: integer + nullable: true name: type: string minLength: 1 - maxLength: 150 - description: - type: string - maxLength: 200 - payload_url: - type: string - minLength: 1 - title: URL - description: This URL will be called using the HTTP method defined when - the webhook is called. Jinja2 template processing is supported with the - same context as the request body. - maxLength: 500 - http_method: - enum: - - GET - - POST - - PUT - - PATCH - - DELETE - type: string - description: '* `GET` - GET - - * `POST` - POST - - * `PUT` - PUT - - * `PATCH` - PATCH - - * `DELETE` - DELETE' - x-spec-enum-id: a12018571a034921 - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is supported with - the same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a X-Hook-Signature - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: + maxLength: 64 + label: type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - custom_fields: - type: object - additionalProperties: {} - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableAggregateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - rir: - $ref: '#/components/schemas/BriefRIRRequest' - tenant: + manufacturer: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/ManufacturerRequest' nullable: true - date_added: + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: type: string - format: date nullable: true + description: A unique tag used to identify this item + maxLength: 50 + discovered: + type: boolean + description: This item was automatically discovered description: type: string maxLength: 200 - comments: + component_type: type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true tags: type: array items: @@ -128983,152 +118569,27 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableCableRequest: + PatchedInventoryItemRoleRequest: type: object description: Adds support for custom fields and tags. properties: - type: - enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - mmf-om5 - - smf - - smf-os1 - - smf-os2 - - aoc - - usb - - power - - '' - type: string - description: '* `cat3` - CAT3 - - * `cat5` - CAT5 - - * `cat5e` - CAT5e - - * `cat6` - CAT6 - - * `cat6a` - CAT6a - - * `cat7` - CAT7 - - * `cat7a` - CAT7a - - * `cat8` - CAT8 - - * `dac-active` - Direct Attach Copper (Active) - - * `dac-passive` - Direct Attach Copper (Passive) - - * `mrj21-trunk` - MRJ21 Trunk - - * `coaxial` - Coaxial - - * `mmf` - Multimode Fiber - - * `mmf-om1` - Multimode Fiber (OM1) - - * `mmf-om2` - Multimode Fiber (OM2) - - * `mmf-om3` - Multimode Fiber (OM3) - - * `mmf-om4` - Multimode Fiber (OM4) - - * `mmf-om5` - Multimode Fiber (OM5) - - * `smf` - Singlemode Fiber - - * `smf-os1` - Singlemode Fiber (OS1) - - * `smf-os2` - Singlemode Fiber (OS2) - - * `aoc` - Active Optical Cabling (AOC) - - * `usb` - USB - - * `power` - Power' - x-spec-enum-id: 7b11d524b2b1a7ef - a_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - b_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - status: - enum: - - connected - - planned - - decommissioning + name: type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - label: + minLength: 1 + maxLength: 100 + slug: type: string + minLength: 1 maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ color: type: string + minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 - length: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - length_unit: - enum: - - km - - m - - cm - - mi - - ft - - in - - '' - type: string - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - x-spec-enum-id: e64ce3a2c5997172 description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -129136,99 +118597,65 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableCircuitGroupAssignmentRequest: + PatchedInventoryItemTemplateRequest: type: object - description: Base serializer for group assignments under CircuitSerializer. - properties: - group: - $ref: '#/components/schemas/BriefCircuitGroupRequest' - circuit: - $ref: '#/components/schemas/BriefCircuitRequest' - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableCircuitRequest: - type: object - description: Adds support for custom fields and tags. + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - cid: + device_type: + $ref: '#/components/schemas/DeviceTypeRequest' + parent: + type: integer + nullable: true + name: type: string minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/BriefProviderRequest' - provider_account: + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: allOf: - - $ref: '#/components/schemas/BriefProviderAccountRequest' + - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true - type: - $ref: '#/components/schemas/BriefCircuitTypeRequest' - status: - enum: - - planned - - provisioning - - active - - offline - - deprovisioning - - decommissioned - type: string - description: '* `planned` - Planned - - * `provisioning` - Provisioning - - * `active` - Active - - * `offline` - Offline - - * `deprovisioning` - Deprovisioning - - * `decommissioned` - Decommissioned' - x-spec-enum-id: 63c838134a022200 - tenant: + manufacturer: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/ManufacturerRequest' nullable: true - install_date: + part_id: type: string - format: date - nullable: true - title: Installed - termination_date: + description: Manufacturer-assigned part identifier + maxLength: 50 + description: + type: string + maxLength: 200 + component_type: type: string - format: date nullable: true - title: Terminates - commit_rate: + component_id: type: integer - maximum: 2147483647 + maximum: 9223372036854775807 minimum: 0 + format: int64 nullable: true - title: Commit rate (Kbps) - description: Committed rate - description: - type: string - maxLength: 200 - comments: + PatchedL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/L2VPNRequest' + assigned_object_type: type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 tags: type: array items: @@ -129236,11 +118663,7 @@ components: custom_fields: type: object additionalProperties: {} - assignments: - type: array - items: - $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' - PatchedWritableClusterRequest: + PatchedManufacturerRequest: type: object description: Adds support for custom fields and tags. properties: @@ -129248,43 +118671,14 @@ components: type: string minLength: 1 maxLength: 100 - type: - $ref: '#/components/schemas/BriefClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/BriefClusterGroupRequest' - nullable: true - status: - enum: - - planned - - staging - - active - - decommissioning - - offline + slug: type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `offline` - Offline' - x-spec-enum-id: 79d20a734d0eecbb - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -129292,115 +118686,31 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableConsolePortRequest: + PatchedModuleBayRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true + $ref: '#/components/schemas/DeviceRequest' name: type: string minLength: 1 maxLength: 64 + installed_module: + allOf: + - $ref: '#/components/schemas/ModuleRequest' + nullable: true label: type: string description: Physical label maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' + position: type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type - - - * `de-9` - DE-9 - - * `db-25` - DB-25 - - * `rj-11` - RJ-11 - - * `rj-12` - RJ-12 - - * `rj-45` - RJ-45 - - * `mini-din-8` - Mini-DIN 8 - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 + description: Identifier to reference when renaming installed components + maxLength: 30 description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected tags: type: array items: @@ -129408,7 +118718,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableConsolePortTemplateRequest: + PatchedModuleBayTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -129416,13 +118726,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true + $ref: '#/components/schemas/DeviceTypeRequest' name: type: string minLength: 1 @@ -129433,294 +118737,55 @@ components: type: string description: Physical label maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 - - * `db-25` - DB-25 - - * `rj-11` - RJ-11 - - * `rj-12` - RJ-12 - - * `rj-45` - RJ-45 - - * `mini-din-8` - Mini-DIN 8 - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableConsoleServerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' + position: type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type - - - * `de-9` - DE-9 - - * `db-25` - DB-25 - - * `rj-11` - RJ-11 - - * `rj-12` - RJ-12 - - * `rj-45` - RJ-45 - - * `mini-din-8` - Mini-DIN 8 - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second - - - * `1200` - 1200 bps - - * `2400` - 2400 bps - - * `4800` - 4800 bps - - * `9600` - 9600 bps - - * `19200` - 19.2 kbps - - * `38400` - 38.4 kbps - - * `57600` - 57.6 kbps - - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 + description: Identifier to reference when renaming installed components + maxLength: 30 description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsoleServerPortTemplateRequest: + PatchedObjectPermissionRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 - - * `db-25` - DB-25 - - * `rj-11` - RJ-11 - - * `rj-12` - RJ-12 - - * `rj-45` - RJ-45 - - * `mini-din-8` - Mini-DIN 8 - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a + maxLength: 100 description: type: string maxLength: 200 - PatchedWritableContactAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - contact: - $ref: '#/components/schemas/BriefContactRequest' - role: - allOf: - - $ref: '#/components/schemas/BriefContactRoleRequest' - nullable: true - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: + enabled: + type: boolean + object_types: + type: array + items: + type: string + actions: + type: array + items: + type: string + minLength: 1 + maxLength: 30 + description: The list of actions granted by this permission + constraints: + nullable: true + description: Queryset filter matching the applicable objects of the selected + type(s) + groups: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableContactGroupRequest: + type: integer + users: + type: array + items: + type: integer + PatchedPlatformRequest: type: object - description: Extends PrimaryModelSerializer to include MPTT support. + description: Adds support for custom fields and tags. properties: name: type: string @@ -129731,8 +118796,13 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer + manufacturer: + allOf: + - $ref: '#/components/schemas/ManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/ConfigTemplateRequest' nullable: true description: type: string @@ -129744,13 +118814,16 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableCustomFieldChoiceSetRequest: + PatchedPowerPanelRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: + site: + $ref: '#/components/schemas/SiteRequest' + location: + allOf: + - $ref: '#/components/schemas/LocationRequest' + nullable: true name: type: string minLength: 1 @@ -129758,359 +118831,94 @@ components: description: type: string maxLength: 200 - base_choices: - enum: - - IATA - - ISO_3166 - - UN_LOCODE - - '' + comments: type: string - x-spec-enum-id: cf0efb5195f85007 - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' - extra_choices: + tags: type: array items: - type: array - items: {} - maxItems: 2 - minItems: 2 - order_alphabetically: - type: boolean - description: Choices are automatically ordered alphabetically - PatchedWritableCustomFieldRequest: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderAccountRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - object_types: - type: array - items: - type: string - type: - enum: - - text - - longtext - - integer - - decimal - - boolean - - date - - datetime - - url - - json - - select - - multiselect - - object - - multiobject - type: string - x-spec-enum-id: 22e3a64138d10046 - description: 'The type of data this custom field holds - - - * `text` - Text - - * `longtext` - Text (long) - - * `integer` - Integer - - * `decimal` - Decimal - - * `boolean` - Boolean (true/false) - - * `date` - Date - - * `datetime` - Date & time - - * `url` - URL - - * `json` - JSON - - * `select` - Selection - - * `multiselect` - Multiple selection - - * `object` - Object - - * `multiobject` - Multiple objects' - related_object_type: - type: string - nullable: true + provider: + $ref: '#/components/schemas/ProviderRequest' name: type: string - minLength: 1 - description: Internal field name - pattern: ^[a-z0-9_]+$ - maxLength: 50 - label: - type: string - description: Name of the field as displayed to users (if not provided, 'the - field's name will be used) - maxLength: 50 - group_name: + default: '' + maxLength: 100 + account: type: string - description: Custom fields within the same group will be displayed together - maxLength: 50 + minLength: 1 + title: Account ID + maxLength: 100 description: type: string maxLength: 200 - required: - type: boolean - description: This field is required when creating new objects or editing - an existing object. - unique: - type: boolean - title: Must be unique - description: The value of this field must be unique for the assigned object - search_weight: - type: integer - maximum: 32767 - minimum: 0 - description: Weighting for search. Lower values are considered more important. - Fields with a search weight of zero will be ignored. - filter_logic: - enum: - - disabled - - loose - - exact - type: string - x-spec-enum-id: a958350ae21c10ee - description: 'Loose matches any instance of a given string; exact matches - the entire field. - - - * `disabled` - Disabled - - * `loose` - Loose - - * `exact` - Exact' - ui_visible: - enum: - - always - - if-set - - hidden - type: string - x-spec-enum-id: cd2cf94af56de747 - description: 'Specifies whether the custom field is displayed in the UI - - - * `always` - Always - - * `if-set` - If set - - * `hidden` - Hidden' - ui_editable: - enum: - - 'yes' - - 'no' - - hidden - type: string - x-spec-enum-id: 1065673147e26bb5 - description: 'Specifies whether the custom field value can be edited in - the UI - - - * `yes` - Yes - - * `no` - No - - * `hidden` - Hidden' - is_cloneable: - type: boolean - description: Replicate this value when cloning objects - default: - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - related_object_filter: - nullable: true - description: Filter the object selection choices using a query_params dict - (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - title: Display weight - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields) - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields) - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. - maxLength: 500 - choice_set: - allOf: - - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' - nullable: true comments: type: string - PatchedWritableDataSourceRequest: + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderNetworkRequest: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/ProviderRequest' name: type: string minLength: 1 maxLength: 100 - type: - type: string - minLength: 1 - maxLength: 50 - source_url: + service_id: type: string - minLength: 1 - title: URL - maxLength: 200 - enabled: - type: boolean + maxLength: 100 description: type: string maxLength: 200 - parameters: - nullable: true - ignore_rules: - type: string - description: Patterns (one per line) matching files to ignore when syncing comments: type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' custom_fields: type: object additionalProperties: {} - PatchedWritableDeviceTypeRequest: + PatchedProviderRequest: type: object description: Adds support for custom fields and tags. properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - default_platform: - allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' - nullable: true - model: + name: type: string minLength: 1 + description: Full name of the provider maxLength: 100 slug: type: string minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: number - format: double - maximum: 1000 - minimum: 0 - exclusiveMaximum: true - default: 1.0 - title: Position (U) - exclude_from_utilization: - type: boolean - description: Devices of this type are excluded when calculating rack utilization. - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces. - subdevice_role: - enum: - - parent - - child - - '' - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - front_image: - type: string - format: binary - rear_image: - type: string - format: binary + accounts: + type: array + items: + type: integer description: type: string maxLength: 200 comments: type: string + asns: + type: array + items: + type: integer tags: type: array items: @@ -130118,176 +118926,57 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableDeviceWithConfigContextRequest: + PatchedRIRRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' - role: - $ref: '#/components/schemas/BriefDeviceRoleRequest' - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' - nullable: true - serial: + minLength: 1 + maxLength: 100 + slug: type: string - title: Serial number - description: Chassis serial number, assigned by the manufacturer - maxLength: 50 - asset_tag: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/BriefSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/BriefLocationRequest' - nullable: true + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackReservationRequest: + type: object + description: Adds support for custom fields and tags. + properties: rack: + $ref: '#/components/schemas/RackRequest' + units: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + user: + $ref: '#/components/schemas/UserRequest' + tenant: allOf: - - $ref: '#/components/schemas/BriefRackRequest' - nullable: true - position: - type: number - format: double - maximum: 1000 - minimum: 0.5 - exclusiveMaximum: true - nullable: true - title: Position (U) - face: - enum: - - front - - rear - - '' - type: string - description: '* `front` - Front - - * `rear` - Rear' - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - status: - enum: - - offline - - active - - planned - - staged - - failed - - inventory - - decommissioning - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `staged` - Staged - - * `failed` - Failed - - * `inventory` - Inventory - - * `decommissioning` - Decommissioning' - x-spec-enum-id: 8d8971779f16ee18 - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - primary_ip4: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - oob_ip: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/BriefClusterRequest' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/BriefVirtualChassisRequest' - nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 - nullable: true - vc_priority: - type: integer - maximum: 255 - minimum: 0 + - $ref: '#/components/schemas/TenantRequest' nullable: true - description: Virtual chassis master election priority description: type: string + minLength: 1 maxLength: 200 comments: type: string - config_template: - allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' - nullable: true - local_context_data: - nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context tags: type: array items: @@ -130295,285 +118984,79 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableEventRuleRequest: + PatchedRackRoleRequest: type: object description: Adds support for custom fields and tags. properties: - object_types: - type: array - items: - type: string name: type: string minLength: 1 - maxLength: 150 - enabled: - type: boolean - event_types: + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: type: array items: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - description: The types of event which will trigger this rule. - conditions: - nullable: true - description: A set of conditions which determine whether the event will - be generated. - action_type: - enum: - - webhook - - script - - notification + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: type: string - description: '* `webhook` - Webhook - - * `script` - Script - - * `notification` - Notification' - x-spec-enum-id: d07193c73ebc03c6 - action_object_type: + minLength: 1 + maxLength: 100 + slug: type: string - action_object_id: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + weight: type: integer - maximum: 9223372036854775807 + maximum: 32767 minimum: 0 - format: int64 - nullable: true description: type: string maxLength: 200 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableFrontPortRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedRouteTargetRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true name: type: string minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C - - * `4p2c` - 4P2C - - * `gg45` - GG45 - - * `tera-4p` - TERA 4P - - * `tera-2p` - TERA 2P - - * `tera-1p` - TERA 1P - - * `110-punch` - 110 Punch - - * `bnc` - BNC - - * `f` - F Connector - - * `n` - N Connector - - * `mrj21` - MRJ21 - - * `fc` - FC - - * `lc` - LC - - * `lc-pc` - LC/PC - - * `lc-upc` - LC/UPC - - * `lc-apc` - LC/APC - - * `lsh` - LSH - - * `lsh-pc` - LSH/PC - - * `lsh-upc` - LSH/UPC - - * `lsh-apc` - LSH/APC - - * `lx5` - LX.5 - - * `lx5-pc` - LX.5/PC - - * `lx5-upc` - LX.5/UPC - - * `lx5-apc` - LX.5/APC - - * `mpo` - MPO - - * `mtrj` - MTRJ - - * `sc` - SC - - * `sc-pc` - SC/PC - - * `sc-upc` - SC/UPC - - * `sc-apc` - SC/APC - - * `st` - ST - - * `cs` - CS - - * `sn` - SN - - * `sma-905` - SMA 905 - - * `sma-906` - SMA 906 - - * `urm-p2` - URM-P2 - - * `urm-p4` - URM-P4 - - * `urm-p8` - URM-P8 - - * `splice` - Splice - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - type: integer - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: Mapped position on corresponding rear port + description: Route target value (formatted in accordance with RFC 4360) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected + comments: + type: string tags: type: array items: @@ -130581,214 +119064,70 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableFrontPortTemplateRequest: + PatchedSavedFilterRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true + object_types: + type: array + items: + type: string name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + maxLength: 100 + slug: type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C - - * `4p2c` - 4P2C - - * `gg45` - GG45 - - * `tera-4p` - TERA 4P - - * `tera-2p` - TERA 2P - - * `tera-1p` - TERA 1P - - * `110-punch` - 110 Punch - - * `bnc` - BNC - - * `f` - F Connector - - * `n` - N Connector - - * `mrj21` - MRJ21 - - * `fc` - FC - - * `lc` - LC - - * `lc-pc` - LC/PC - - * `lc-upc` - LC/UPC - - * `lc-apc` - LC/APC - - * `lsh` - LSH - - * `lsh-pc` - LSH/PC - - * `lsh-upc` - LSH/UPC - - * `lsh-apc` - LSH/APC - - * `lx5` - LX.5 - - * `lx5-pc` - LX.5/PC - - * `lx5-upc` - LX.5/UPC - - * `lx5-apc` - LX.5/APC - - * `mpo` - MPO - - * `mtrj` - MTRJ - - * `sc` - SC - - * `sc-pc` - SC/PC - - * `sc-upc` - SC/UPC - - * `sc-apc` - SC/APC - - * `st` - ST - - * `cs` - CS - - * `sn` - SN - - * `sma-905` - SMA 905 - - * `sma-906` - SMA 906 - - * `urm-p2` - URM-P2 - - * `urm-p4` - URM-P4 - - * `urm-p8` - URM-P8 - - * `splice` - Splice - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB + maxLength: 200 + user: + type: integer + nullable: true + weight: + type: integer + maximum: 32767 + minimum: 0 + enabled: + type: boolean + shared: + type: boolean + parameters: {} + PatchedTagRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + pattern: ^[-\w]+$ + maxLength: 100 color: type: string + minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 - rear_port: - $ref: '#/components/schemas/BriefRearPortTemplateRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 description: type: string maxLength: 200 - PatchedWritableIKEPolicyRequest: + object_types: + type: array + items: + type: string + PatchedTenantRequest: type: object description: Adds support for custom fields and tags. properties: @@ -130796,37 +119135,18 @@ components: type: string minLength: 1 maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/TenantGroupRequest' + nullable: true description: type: string maxLength: 200 - version: - enum: - - 1 - - 2 - type: integer - description: '* `1` - IKEv1 - - * `2` - IKEv2' - x-spec-enum-id: 00872b77916a1fde - minimum: 0 - maximum: 32767 - mode: - enum: - - aggressive - - main - - '' - type: string - description: '* `aggressive` - Aggressive - - * `main` - Main' - x-spec-enum-id: 64c1be7bdb2548ca - proposals: - type: array - items: - type: integer - preshared_key: - type: string - title: Pre-shared key comments: type: string tags: @@ -130836,7 +119156,34 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIKEProposalRequest: + PatchedTokenRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + user: + $ref: '#/components/schemas/UserRequest' + expires: + type: string + format: date-time + nullable: true + last_used: + type: string + format: date-time + nullable: true + key: + type: string + maxLength: 40 + minLength: 40 + write_enabled: + type: boolean + description: Permit create/update/delete operations using this key + description: + type: string + maxLength: 200 + PatchedTunnelGroupRequest: type: object description: Adds support for custom fields and tags. properties: @@ -130844,158 +119191,14 @@ components: type: string minLength: 1 maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 - authentication_method: - enum: - - preshared-keys - - certificates - - rsa-signatures - - dsa-signatures - type: string - description: '* `preshared-keys` - Pre-shared keys - - * `certificates` - Certificates - - * `rsa-signatures` - RSA signatures - - * `dsa-signatures` - DSA signatures' - x-spec-enum-id: 92bb2f1103b3a262 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) - - * `aes-128-gcm` - 128-bit AES (GCM) - - * `aes-192-cbc` - 192-bit AES (CBC) - - * `aes-192-gcm` - 192-bit AES (GCM) - - * `aes-256-cbc` - 256-bit AES (CBC) - - * `aes-256-gcm` - 256-bit AES (GCM) - - * `3des-cbc` - 3DES - - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - authentication_algorithm: - enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 - - '' - type: string - description: '* `hmac-sha1` - SHA-1 HMAC - - * `hmac-sha256` - SHA-256 HMAC - - * `hmac-sha384` - SHA-384 HMAC - - * `hmac-sha512` - SHA-512 HMAC - - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 - description: 'Diffie-Hellman group ID - - - * `1` - Group 1 - - * `2` - Group 2 - - * `5` - Group 5 - - * `14` - Group 14 - - * `15` - Group 15 - - * `16` - Group 16 - - * `17` - Group 17 - - * `18` - Group 18 - - * `19` - Group 19 - - * `20` - Group 20 - - * `21` - Group 21 - - * `22` - Group 22 - - * `23` - Group 23 - - * `24` - Group 24 - - * `25` - Group 25 - - * `26` - Group 26 - - * `27` - Group 27 - - * `28` - Group 28 - - * `29` - Group 29 - - * `30` - Group 30 - - * `31` - Group 31 - - * `32` - Group 32 - - * `33` - Group 33 - - * `34` - Group 34' - minimum: 0 - maximum: 32767 - sa_lifetime: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Security association lifetime (in seconds) - comments: - type: string tags: type: array items: @@ -131003,97 +119206,94 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPAddressRequest: + PatchedUserRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - address: + username: type: string minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + password: + type: string + writeOnly: true + minLength: 1 + maxLength: 128 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time nullable: true - status: - enum: - - active - - reserved - - deprecated - - dhcp - - slaac + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer + PatchedVLANGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: type: string - x-spec-enum-id: 24935cfee15bd268 - description: 'The operational status of this IP - - - * `active` - Active - - * `reserved` - Reserved - - * `deprecated` - Deprecated - - * `dhcp` - DHCP - - * `slaac` - SLAAC' - role: - enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - - '' + minLength: 1 + maxLength: 100 + slug: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: 'The functional role of this IP - - - * `loopback` - Loopback - - * `secondary` - Secondary - - * `anycast` - Anycast - - * `vip` - VIP - - * `vrrp` - VRRP - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `carp` - CARP' - assigned_object_type: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + scope_type: type: string nullable: true - assigned_object_id: + scope_id: type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 nullable: true - nat_inside: + min_vid: type: integer - nullable: true - title: NAT (inside) - description: The IP for which this address is the "outside" IP - dns_name: - type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ - maxLength: 255 + maximum: 4094 + minimum: 1 + title: Minimum VLAN ID + description: Lowest permissible ID of a child VLAN + max_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Maximum VLAN ID + description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -131101,48 +119301,41 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPRangeRequest: + PatchedVRFRequest: type: object description: Adds support for custom fields and tags. properties: - start_address: + name: type: string minLength: 1 - end_address: + maxLength: 100 + rd: type: string - minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRFRequest' nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - status: - enum: - - active - - reserved - - deprecated - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this range - - - * `active` - Active - - * `reserved` - Reserved - - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/BriefRoleRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 comments: type: string + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer tags: type: array items: @@ -131150,107 +119343,24 @@ components: custom_fields: type: object additionalProperties: {} - mark_utilized: - type: boolean - description: Treat as fully utilized - PatchedWritableIPSecPolicyRequest: + PatchedVirtualDiskRequest: type: object description: Adds support for custom fields and tags. properties: + virtual_machine: + $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 - maxLength: 100 + maxLength: 64 description: type: string maxLength: 200 - proposals: - type: array - items: - type: integer - pfs_group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 + size: type: integer - x-spec-enum-id: dbef43be795462a8 - nullable: true - description: 'Diffie-Hellman group for Perfect Forward Secrecy - - - * `1` - Group 1 - - * `2` - Group 2 - - * `5` - Group 5 - - * `14` - Group 14 - - * `15` - Group 15 - - * `16` - Group 16 - - * `17` - Group 17 - - * `18` - Group 18 - - * `19` - Group 19 - - * `20` - Group 20 - - * `21` - Group 21 - - * `22` - Group 22 - - * `23` - Group 23 - - * `24` - Group 24 - - * `25` - Group 25 - - * `26` - Group 26 - - * `27` - Group 27 - - * `28` - Group 28 - - * `29` - Group 29 - - * `30` - Group 30 - - * `31` - Group 31 - - * `32` - Group 32 - - * `33` - Group 33 - - * `34` - Group 34' + maximum: 2147483647 minimum: 0 - maximum: 32767 - comments: - type: string + title: Size (GB) tags: type: array items: @@ -131258,113 +119368,103 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPSecProfileRequest: + PatchedWebhookRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 100 + maxLength: 150 description: type: string maxLength: 200 - mode: + payload_url: + type: string + minLength: 1 + title: URL + description: This URL will be called using the HTTP method defined when + the webhook is called. Jinja2 template processing is supported with the + same context as the request body. + maxLength: 500 + http_method: enum: - - esp - - ah + - GET + - POST + - PUT + - PATCH + - DELETE type: string - description: '* `esp` - ESP + description: '* `GET` - GET - * `ah` - AH' - x-spec-enum-id: 1136c2cdfee84436 - ike_policy: - $ref: '#/components/schemas/BriefIKEPolicyRequest' - ipsec_policy: - $ref: '#/components/schemas/BriefIPSecPolicyRequest' - comments: + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' + x-spec-enum-id: a12018571a034921 + http_content_type: + type: string + minLength: 1 + description: The complete list of official content types is available here. + maxLength: 100 + additional_headers: + type: string + description: 'User-supplied HTTP headers to be sent with the request in + addition to the HTTP content type. Headers should be defined in the format + Name: Value. Jinja2 template processing is supported with + the same context as the request body (below).' + body_template: + type: string + description: 'Jinja2 template for a custom request body. If blank, a JSON + object representing the change will be included. Available context data + includes: event, model, timestamp, + username, request_id, and data.' + secret: + type: string + description: When provided, the request will include a X-Hook-Signature + header containing a HMAC hex digest of the payload body using the secret + as the key. The secret is not transmitted in the request. + maxLength: 255 + ssl_verification: + type: boolean + description: Enable SSL certificate verification. Disable with caution! + ca_file_path: type: string + nullable: true + description: The specific CA certificate file to use for SSL verification. + Leave blank to use the system defaults. + maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProposalRequest: + PatchedWritableAggregateRequest: type: object description: Adds support for custom fields and tags. properties: - name: + prefix: type: string minLength: 1 - maxLength: 100 + rir: + $ref: '#/components/schemas/RIRRequest' + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + date_added: + type: string + format: date + nullable: true description: type: string maxLength: 200 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - - '' - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) - - * `aes-128-gcm` - 128-bit AES (GCM) - - * `aes-192-cbc` - 192-bit AES (CBC) - - * `aes-192-gcm` - 192-bit AES (GCM) - - * `aes-256-cbc` - 256-bit AES (CBC) - - * `aes-256-gcm` - 256-bit AES (GCM) - - * `3des-cbc` - 3DES - - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - title: Encryption - authentication_algorithm: - enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 - - '' - type: string - description: '* `hmac-sha1` - SHA-1 HMAC - - * `hmac-sha256` - SHA-256 HMAC - - * `hmac-sha384` - SHA-384 HMAC - - * `hmac-sha512` - SHA-512 HMAC - - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - sa_lifetime_seconds: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (seconds) - description: Security association lifetime (seconds) - sa_lifetime_data: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (KB) - description: Security association lifetime (in kilobytes) comments: type: string tags: @@ -131374,1170 +119474,1268 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceRequest: + PatchedWritableCableRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - vdcs: - type: array - items: - type: integer - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 type: enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 1000base-tx - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.11be - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - power + - '' type: string - description: '* `virtual` - Virtual - - * `bridge` - Bridge - - * `lag` - Link Aggregation Group (LAG) - - * `100base-fx` - 100BASE-FX (10/100ME FIBER) - - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - - * `100base-tx` - 100BASE-TX (10/100ME) - - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - - * `1000base-t` - 1000BASE-T (1GE) - - * `1000base-tx` - 1000BASE-TX (1GE) - - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - - * `5gbase-t` - 5GBASE-T (5GE) - - * `10gbase-t` - 10GBASE-T (10GE) - - * `10gbase-cx4` - 10GBASE-CX4 (10GE) - - * `1000base-x-gbic` - GBIC (1GE) - - * `1000base-x-sfp` - SFP (1GE) - - * `10gbase-x-sfpp` - SFP+ (10GE) - - * `10gbase-x-xfp` - XFP (10GE) - - * `10gbase-x-xenpak` - XENPAK (10GE) - - * `10gbase-x-x2` - X2 (10GE) - - * `25gbase-x-sfp28` - SFP28 (25GE) - - * `50gbase-x-sfp56` - SFP56 (50GE) - - * `40gbase-x-qsfpp` - QSFP+ (40GE) - - * `50gbase-x-sfp28` - QSFP28 (50GE) - - * `100gbase-x-cfp` - CFP (100GE) - - * `100gbase-x-cfp2` - CFP2 (100GE) - - * `200gbase-x-cfp2` - CFP2 (200GE) - - * `400gbase-x-cfp2` - CFP2 (400GE) - - * `100gbase-x-cfp4` - CFP4 (100GE) - - * `100gbase-x-cxp` - CXP (100GE) - - * `100gbase-x-cpak` - Cisco CPAK (100GE) - - * `100gbase-x-dsfp` - DSFP (100GE) - - * `100gbase-x-sfpdd` - SFP-DD (100GE) - - * `100gbase-x-qsfp28` - QSFP28 (100GE) - - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) - - * `200gbase-x-qsfp56` - QSFP56 (200GE) - - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) - - * `400gbase-x-qsfp112` - QSFP112 (400GE) - - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) - - * `400gbase-x-osfp` - OSFP (400GE) - - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) - - * `400gbase-x-cdfp` - CDFP (400GE) - - * `400gbase-x-cfp8` - CPF8 (400GE) - - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) - - * `800gbase-x-osfp` - OSFP (800GE) - - * `1000base-kx` - 1000BASE-KX (1GE) - - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) - - * `5gbase-kr` - 5GBASE-KR (5GE) - - * `10gbase-kr` - 10GBASE-KR (10GE) - - * `10gbase-kx4` - 10GBASE-KX4 (10GE) - - * `25gbase-kr` - 25GBASE-KR (25GE) - - * `40gbase-kr4` - 40GBASE-KR4 (40GE) - - * `50gbase-kr` - 50GBASE-KR (50GE) - - * `100gbase-kp4` - 100GBASE-KP4 (100GE) - - * `100gbase-kr2` - 100GBASE-KR2 (100GE) - - * `100gbase-kr4` - 100GBASE-KR4 (100GE) - - * `ieee802.11a` - IEEE 802.11a - - * `ieee802.11g` - IEEE 802.11b/g - - * `ieee802.11n` - IEEE 802.11n - - * `ieee802.11ac` - IEEE 802.11ac - - * `ieee802.11ad` - IEEE 802.11ad - - * `ieee802.11ax` - IEEE 802.11ax - - * `ieee802.11ay` - IEEE 802.11ay - - * `ieee802.11be` - IEEE 802.11be - - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) - - * `other-wireless` - Other (Wireless) - - * `gsm` - GSM - - * `cdma` - CDMA - - * `lte` - LTE - - * `4g` - 4G - - * `5g` - 5G - - * `sonet-oc3` - OC-3/STM-1 - - * `sonet-oc12` - OC-12/STM-4 - - * `sonet-oc48` - OC-48/STM-16 - - * `sonet-oc192` - OC-192/STM-64 - - * `sonet-oc768` - OC-768/STM-256 - - * `sonet-oc1920` - OC-1920/STM-640 - - * `sonet-oc3840` - OC-3840/STM-1234 - - * `1gfc-sfp` - SFP (1GFC) - - * `2gfc-sfp` - SFP (2GFC) - - * `4gfc-sfp` - SFP (4GFC) - - * `8gfc-sfpp` - SFP+ (8GFC) - - * `16gfc-sfpp` - SFP+ (16GFC) - - * `32gfc-sfp28` - SFP28 (32GFC) - - * `32gfc-sfpp` - SFP+ (32GFC) - - * `64gfc-qsfpp` - QSFP+ (64GFC) - - * `64gfc-sfpdd` - SFP-DD (64GFC) - - * `64gfc-sfpp` - SFP+ (64GFC) - - * `128gfc-qsfp28` - QSFP28 (128GFC) - - * `infiniband-sdr` - SDR (2 Gbps) - - * `infiniband-ddr` - DDR (4 Gbps) - - * `infiniband-qdr` - QDR (8 Gbps) - - * `infiniband-fdr10` - FDR10 (10 Gbps) - - * `infiniband-fdr` - FDR (13.5 Gbps) + description: '* `cat3` - CAT3 - * `infiniband-edr` - EDR (25 Gbps) + * `cat5` - CAT5 - * `infiniband-hdr` - HDR (50 Gbps) + * `cat5e` - CAT5e - * `infiniband-ndr` - NDR (100 Gbps) + * `cat6` - CAT6 - * `infiniband-xdr` - XDR (250 Gbps) + * `cat6a` - CAT6a - * `t1` - T1 (1.544 Mbps) + * `cat7` - CAT7 - * `e1` - E1 (2.048 Mbps) + * `cat7a` - CAT7a - * `t3` - T3 (45 Mbps) + * `cat8` - CAT8 - * `e3` - E3 (34 Mbps) + * `dac-active` - Direct Attach Copper (Active) - * `xdsl` - xDSL + * `dac-passive` - Direct Attach Copper (Passive) - * `docsis` - DOCSIS + * `mrj21-trunk` - MRJ21 Trunk - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `coaxial` - Coaxial - * `epon` - EPON (1 Gbps) + * `mmf` - Multimode Fiber - * `10g-epon` - 10G-EPON (10 Gbps) + * `mmf-om1` - Multimode Fiber (OM1) - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `mmf-om2` - Multimode Fiber (OM2) - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `mmf-om3` - Multimode Fiber (OM3) - * `xgs-pon` - XGS-PON (10 Gbps) + * `mmf-om4` - Multimode Fiber (OM4) - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `mmf-om5` - Multimode Fiber (OM5) - * `25g-pon` - 25G-PON (25 Gbps) + * `smf` - Singlemode Fiber - * `50g-pon` - 50G-PON (50 Gbps) + * `smf-os1` - Singlemode Fiber (OS1) - * `cisco-stackwise` - Cisco StackWise + * `smf-os2` - Singlemode Fiber (OS2) - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `aoc` - Active Optical Cabling (AOC) - * `cisco-flexstack` - Cisco FlexStack + * `power` - Power' + x-spec-enum-id: e671018e64196f8d + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `planned` - Planned - * `cisco-stackwise-80` - Cisco StackWise-80 + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + label: + type: string + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers - * `cisco-stackwise-160` - Cisco StackWise-160 + * `m` - Meters - * `cisco-stackwise-320` - Cisco StackWise-320 + * `cm` - Centimeters - * `cisco-stackwise-480` - Cisco StackWise-480 + * `mi` - Miles - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `ft` - Feet - * `juniper-vcp` - Juniper VCP + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/ProviderRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/ProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/CircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned - * `extreme-summitstack` - Extreme SummitStack + * `provisioning` - Provisioning - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `active` - Active - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `offline` - Offline - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `deprovisioning` - Deprovisioning - * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - lag: - type: integer + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' nullable: true - title: Parent LAG - mtu: - type: integer - maximum: 65536 - minimum: 1 + install_date: + type: string + format: date nullable: true - mac_address: + title: Installed + termination_date: type: string + format: date nullable: true - speed: + title: Terminates + commit_rate: type: integer maximum: 2147483647 minimum: 0 nullable: true - title: Speed (Kbps) - duplex: + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableClusterRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + type: + $ref: '#/components/schemas/ClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/ClusterGroupRequest' + nullable: true + status: enum: - - half - - full - - auto - - '' + - planned + - staging + - active + - decommissioning + - offline type: string - description: '* `half` - Half + description: '* `planned` - Planned - * `full` - Full + * `staging` - Staging - * `auto` - Auto' - x-spec-enum-id: 47eab9b1a65a1e21 + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' nullable: true - wwn: - type: string + site: + allOf: + - $ref: '#/components/schemas/SiteRequest' nullable: true - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management description: type: string maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' + comments: type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - rf_role: - enum: - - ap - - station - - '' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableConsolePortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/DeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/ModuleRequest' + nullable: true + name: type: string - description: '* `ap` - Access point - - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - rf_channel: + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: enum: - - 2.4g-1-2412-22 - - 2.4g-2-2417-22 - - 2.4g-3-2422-22 - - 2.4g-4-2427-22 - - 2.4g-5-2432-22 - - 2.4g-6-2437-22 - - 2.4g-7-2442-22 - - 2.4g-8-2447-22 - - 2.4g-9-2452-22 - - 2.4g-10-2457-22 - - 2.4g-11-2462-22 - - 2.4g-12-2467-22 - - 2.4g-13-2472-22 - - 5g-32-5160-20 - - 5g-34-5170-40 - - 5g-36-5180-20 - - 5g-38-5190-40 - - 5g-40-5200-20 - - 5g-42-5210-80 - - 5g-44-5220-20 - - 5g-46-5230-40 - - 5g-48-5240-20 - - 5g-50-5250-160 - - 5g-52-5260-20 - - 5g-54-5270-40 - - 5g-56-5280-20 - - 5g-58-5290-80 - - 5g-60-5300-20 - - 5g-62-5310-40 - - 5g-64-5320-20 - - 5g-100-5500-20 - - 5g-102-5510-40 - - 5g-104-5520-20 - - 5g-106-5530-80 - - 5g-108-5540-20 - - 5g-110-5550-40 - - 5g-112-5560-20 - - 5g-114-5570-160 - - 5g-116-5580-20 - - 5g-118-5590-40 - - 5g-120-5600-20 - - 5g-122-5610-80 - - 5g-124-5620-20 - - 5g-126-5630-40 - - 5g-128-5640-20 - - 5g-132-5660-20 - - 5g-134-5670-40 - - 5g-136-5680-20 - - 5g-138-5690-80 - - 5g-140-5700-20 - - 5g-142-5710-40 - - 5g-144-5720-20 - - 5g-149-5745-20 - - 5g-151-5755-40 - - 5g-153-5765-20 - - 5g-155-5775-80 - - 5g-157-5785-20 - - 5g-159-5795-40 - - 5g-161-5805-20 - - 5g-163-5815-160 - - 5g-165-5825-20 - - 5g-167-5835-40 - - 5g-169-5845-20 - - 5g-171-5855-80 - - 5g-173-5865-20 - - 5g-175-5875-40 - - 5g-177-5885-20 - - 6g-1-5955-20 - - 6g-3-5965-40 - - 6g-5-5975-20 - - 6g-7-5985-80 - - 6g-9-5995-20 - - 6g-11-6005-40 - - 6g-13-6015-20 - - 6g-15-6025-160 - - 6g-17-6035-20 - - 6g-19-6045-40 - - 6g-21-6055-20 - - 6g-23-6065-80 - - 6g-25-6075-20 - - 6g-27-6085-40 - - 6g-29-6095-20 - - 6g-31-6105-320 - - 6g-33-6115-20 - - 6g-35-6125-40 - - 6g-37-6135-20 - - 6g-39-6145-80 - - 6g-41-6155-20 - - 6g-43-6165-40 - - 6g-45-6175-20 - - 6g-47-6185-160 - - 6g-49-6195-20 - - 6g-51-6205-40 - - 6g-53-6215-20 - - 6g-55-6225-80 - - 6g-57-6235-20 - - 6g-59-6245-40 - - 6g-61-6255-20 - - 6g-65-6275-20 - - 6g-67-6285-40 - - 6g-69-6295-20 - - 6g-71-6305-80 - - 6g-73-6315-20 - - 6g-75-6325-40 - - 6g-77-6335-20 - - 6g-79-6345-160 - - 6g-81-6355-20 - - 6g-83-6365-40 - - 6g-85-6375-20 - - 6g-87-6385-80 - - 6g-89-6395-20 - - 6g-91-6405-40 - - 6g-93-6415-20 - - 6g-95-6425-320 - - 6g-97-6435-20 - - 6g-99-6445-40 - - 6g-101-6455-20 - - 6g-103-6465-80 - - 6g-105-6475-20 - - 6g-107-6485-40 - - 6g-109-6495-20 - - 6g-111-6505-160 - - 6g-113-6515-20 - - 6g-115-6525-40 - - 6g-117-6535-20 - - 6g-119-6545-80 - - 6g-121-6555-20 - - 6g-123-6565-40 - - 6g-125-6575-20 - - 6g-129-6595-20 - - 6g-131-6605-40 - - 6g-133-6615-20 - - 6g-135-6625-80 - - 6g-137-6635-20 - - 6g-139-6645-40 - - 6g-141-6655-20 - - 6g-143-6665-160 - - 6g-145-6675-20 - - 6g-147-6685-40 - - 6g-149-6695-20 - - 6g-151-6705-80 - - 6g-153-6715-20 - - 6g-155-6725-40 - - 6g-157-6735-20 - - 6g-159-6745-320 - - 6g-161-6755-20 - - 6g-163-6765-40 - - 6g-165-6775-20 - - 6g-167-6785-80 - - 6g-169-6795-20 - - 6g-171-6805-40 - - 6g-173-6815-20 - - 6g-175-6825-160 - - 6g-177-6835-20 - - 6g-179-6845-40 - - 6g-181-6855-20 - - 6g-183-6865-80 - - 6g-185-6875-20 - - 6g-187-6885-40 - - 6g-189-6895-20 - - 6g-193-6915-20 - - 6g-195-6925-40 - - 6g-197-6935-20 - - 6g-199-6945-80 - - 6g-201-6955-20 - - 6g-203-6965-40 - - 6g-205-6975-20 - - 6g-207-6985-160 - - 6g-209-6995-20 - - 6g-211-7005-40 - - 6g-213-7015-20 - - 6g-215-7025-80 - - 6g-217-7035-20 - - 6g-219-7045-40 - - 6g-221-7055-20 - - 6g-225-7075-20 - - 6g-227-7085-40 - - 6g-229-7095-20 - - 6g-233-7115-20 - - 60g-1-58320-2160 - - 60g-2-60480-2160 - - 60g-3-62640-2160 - - 60g-4-64800-2160 - - 60g-5-66960-2160 - - 60g-6-69120-2160 - - 60g-9-59400-4320 - - 60g-10-61560-4320 - - 60g-11-63720-4320 - - 60g-12-65880-4320 - - 60g-13-68040-4320 - - 60g-17-60480-6480 - - 60g-18-62640-6480 - - 60g-19-64800-6480 - - 60g-20-66960-6480 - - 60g-25-61560-6480 - - 60g-26-63720-6480 - - 60g-27-65880-6480 + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other - '' type: string - description: '* `2.4g-1-2412-22` - 1 (2412 MHz) - - * `2.4g-2-2417-22` - 2 (2417 MHz) - - * `2.4g-3-2422-22` - 3 (2422 MHz) - - * `2.4g-4-2427-22` - 4 (2427 MHz) - - * `2.4g-5-2432-22` - 5 (2432 MHz) - - * `2.4g-6-2437-22` - 6 (2437 MHz) - - * `2.4g-7-2442-22` - 7 (2442 MHz) - - * `2.4g-8-2447-22` - 8 (2447 MHz) - - * `2.4g-9-2452-22` - 9 (2452 MHz) - - * `2.4g-10-2457-22` - 10 (2457 MHz) - - * `2.4g-11-2462-22` - 11 (2462 MHz) - - * `2.4g-12-2467-22` - 12 (2467 MHz) - - * `2.4g-13-2472-22` - 13 (2472 MHz) - - * `5g-32-5160-20` - 32 (5160/20 MHz) - - * `5g-34-5170-40` - 34 (5170/40 MHz) - - * `5g-36-5180-20` - 36 (5180/20 MHz) - - * `5g-38-5190-40` - 38 (5190/40 MHz) - - * `5g-40-5200-20` - 40 (5200/20 MHz) - - * `5g-42-5210-80` - 42 (5210/80 MHz) - - * `5g-44-5220-20` - 44 (5220/20 MHz) - - * `5g-46-5230-40` - 46 (5230/40 MHz) - - * `5g-48-5240-20` - 48 (5240/20 MHz) - - * `5g-50-5250-160` - 50 (5250/160 MHz) - - * `5g-52-5260-20` - 52 (5260/20 MHz) - - * `5g-54-5270-40` - 54 (5270/40 MHz) - - * `5g-56-5280-20` - 56 (5280/20 MHz) - - * `5g-58-5290-80` - 58 (5290/80 MHz) - - * `5g-60-5300-20` - 60 (5300/20 MHz) - - * `5g-62-5310-40` - 62 (5310/40 MHz) - - * `5g-64-5320-20` - 64 (5320/20 MHz) - - * `5g-100-5500-20` - 100 (5500/20 MHz) - - * `5g-102-5510-40` - 102 (5510/40 MHz) - - * `5g-104-5520-20` - 104 (5520/20 MHz) - - * `5g-106-5530-80` - 106 (5530/80 MHz) - - * `5g-108-5540-20` - 108 (5540/20 MHz) - - * `5g-110-5550-40` - 110 (5550/40 MHz) - - * `5g-112-5560-20` - 112 (5560/20 MHz) - - * `5g-114-5570-160` - 114 (5570/160 MHz) - - * `5g-116-5580-20` - 116 (5580/20 MHz) - - * `5g-118-5590-40` - 118 (5590/40 MHz) - - * `5g-120-5600-20` - 120 (5600/20 MHz) - - * `5g-122-5610-80` - 122 (5610/80 MHz) - - * `5g-124-5620-20` - 124 (5620/20 MHz) - - * `5g-126-5630-40` - 126 (5630/40 MHz) - - * `5g-128-5640-20` - 128 (5640/20 MHz) - - * `5g-132-5660-20` - 132 (5660/20 MHz) - - * `5g-134-5670-40` - 134 (5670/40 MHz) - - * `5g-136-5680-20` - 136 (5680/20 MHz) - - * `5g-138-5690-80` - 138 (5690/80 MHz) - - * `5g-140-5700-20` - 140 (5700/20 MHz) - - * `5g-142-5710-40` - 142 (5710/40 MHz) - - * `5g-144-5720-20` - 144 (5720/20 MHz) - - * `5g-149-5745-20` - 149 (5745/20 MHz) - - * `5g-151-5755-40` - 151 (5755/40 MHz) - - * `5g-153-5765-20` - 153 (5765/20 MHz) - - * `5g-155-5775-80` - 155 (5775/80 MHz) - - * `5g-157-5785-20` - 157 (5785/20 MHz) - - * `5g-159-5795-40` - 159 (5795/40 MHz) - - * `5g-161-5805-20` - 161 (5805/20 MHz) - - * `5g-163-5815-160` - 163 (5815/160 MHz) - - * `5g-165-5825-20` - 165 (5825/20 MHz) - - * `5g-167-5835-40` - 167 (5835/40 MHz) - - * `5g-169-5845-20` - 169 (5845/20 MHz) - - * `5g-171-5855-80` - 171 (5855/80 MHz) + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type - * `5g-173-5865-20` - 173 (5865/20 MHz) - * `5g-175-5875-40` - 175 (5875/40 MHz) + * `de-9` - DE-9 - * `5g-177-5885-20` - 177 (5885/20 MHz) + * `db-25` - DB-25 - * `6g-1-5955-20` - 1 (5955/20 MHz) + * `rj-11` - RJ-11 - * `6g-3-5965-40` - 3 (5965/40 MHz) + * `rj-12` - RJ-12 - * `6g-5-5975-20` - 5 (5975/20 MHz) + * `rj-45` - RJ-45 - * `6g-7-5985-80` - 7 (5985/80 MHz) + * `mini-din-8` - Mini-DIN 8 - * `6g-9-5995-20` - 9 (5995/20 MHz) + * `usb-a` - USB Type A - * `6g-11-6005-40` - 11 (6005/40 MHz) + * `usb-b` - USB Type B - * `6g-13-6015-20` - 13 (6015/20 MHz) + * `usb-c` - USB Type C - * `6g-15-6025-160` - 15 (6025/160 MHz) + * `usb-mini-a` - USB Mini A - * `6g-17-6035-20` - 17 (6035/20 MHz) + * `usb-mini-b` - USB Mini B - * `6g-19-6045-40` - 19 (6045/40 MHz) + * `usb-micro-a` - USB Micro A - * `6g-21-6055-20` - 21 (6055/20 MHz) + * `usb-micro-b` - USB Micro B - * `6g-23-6065-80` - 23 (6065/80 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-25-6075-20` - 25 (6075/20 MHz) + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second - * `6g-27-6085-40` - 27 (6085/40 MHz) - * `6g-29-6095-20` - 29 (6095/20 MHz) + * `1200` - 1200 bps - * `6g-31-6105-320` - 31 (6105/320 MHz) + * `2400` - 2400 bps - * `6g-33-6115-20` - 33 (6115/20 MHz) + * `4800` - 4800 bps - * `6g-35-6125-40` - 35 (6125/40 MHz) + * `9600` - 9600 bps - * `6g-37-6135-20` - 37 (6135/20 MHz) + * `19200` - 19.2 kbps - * `6g-39-6145-80` - 39 (6145/80 MHz) + * `38400` - 38.4 kbps - * `6g-41-6155-20` - 41 (6155/20 MHz) + * `57600` - 57.6 kbps - * `6g-43-6165-40` - 43 (6165/40 MHz) + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableConsolePortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-45-6175-20` - 45 (6175/20 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/DeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/ModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + description: '* `de-9` - DE-9 - * `6g-47-6185-160` - 47 (6185/160 MHz) + * `db-25` - DB-25 - * `6g-49-6195-20` - 49 (6195/20 MHz) + * `rj-11` - RJ-11 - * `6g-51-6205-40` - 51 (6205/40 MHz) + * `rj-12` - RJ-12 - * `6g-53-6215-20` - 53 (6215/20 MHz) + * `rj-45` - RJ-45 - * `6g-55-6225-80` - 55 (6225/80 MHz) + * `mini-din-8` - Mini-DIN 8 - * `6g-57-6235-20` - 57 (6235/20 MHz) + * `usb-a` - USB Type A - * `6g-59-6245-40` - 59 (6245/40 MHz) + * `usb-b` - USB Type B - * `6g-61-6255-20` - 61 (6255/20 MHz) + * `usb-c` - USB Type C - * `6g-65-6275-20` - 65 (6275/20 MHz) + * `usb-mini-a` - USB Mini A - * `6g-67-6285-40` - 67 (6285/40 MHz) + * `usb-mini-b` - USB Mini B - * `6g-69-6295-20` - 69 (6295/20 MHz) + * `usb-micro-a` - USB Micro A - * `6g-71-6305-80` - 71 (6305/80 MHz) + * `usb-micro-b` - USB Micro B - * `6g-73-6315-20` - 73 (6315/20 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-75-6325-40` - 75 (6325/40 MHz) + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a + description: + type: string + maxLength: 200 + PatchedWritableConsoleServerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/DeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/ModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type - * `6g-77-6335-20` - 77 (6335/20 MHz) - * `6g-79-6345-160` - 79 (6345/160 MHz) + * `de-9` - DE-9 - * `6g-81-6355-20` - 81 (6355/20 MHz) + * `db-25` - DB-25 - * `6g-83-6365-40` - 83 (6365/40 MHz) + * `rj-11` - RJ-11 - * `6g-85-6375-20` - 85 (6375/20 MHz) + * `rj-12` - RJ-12 - * `6g-87-6385-80` - 87 (6385/80 MHz) + * `rj-45` - RJ-45 - * `6g-89-6395-20` - 89 (6395/20 MHz) + * `mini-din-8` - Mini-DIN 8 - * `6g-91-6405-40` - 91 (6405/40 MHz) + * `usb-a` - USB Type A - * `6g-93-6415-20` - 93 (6415/20 MHz) + * `usb-b` - USB Type B - * `6g-95-6425-320` - 95 (6425/320 MHz) + * `usb-c` - USB Type C - * `6g-97-6435-20` - 97 (6435/20 MHz) + * `usb-mini-a` - USB Mini A - * `6g-99-6445-40` - 99 (6445/40 MHz) + * `usb-mini-b` - USB Mini B - * `6g-101-6455-20` - 101 (6455/20 MHz) + * `usb-micro-a` - USB Micro A - * `6g-103-6465-80` - 103 (6465/80 MHz) + * `usb-micro-b` - USB Micro B - * `6g-105-6475-20` - 105 (6475/20 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-107-6485-40` - 107 (6485/40 MHz) + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second - * `6g-109-6495-20` - 109 (6495/20 MHz) - * `6g-111-6505-160` - 111 (6505/160 MHz) + * `1200` - 1200 bps - * `6g-113-6515-20` - 113 (6515/20 MHz) + * `2400` - 2400 bps - * `6g-115-6525-40` - 115 (6525/40 MHz) + * `4800` - 4800 bps - * `6g-117-6535-20` - 117 (6535/20 MHz) + * `9600` - 9600 bps - * `6g-119-6545-80` - 119 (6545/80 MHz) + * `19200` - 19.2 kbps - * `6g-121-6555-20` - 121 (6555/20 MHz) + * `38400` - 38.4 kbps - * `6g-123-6565-40` - 123 (6565/40 MHz) + * `57600` - 57.6 kbps - * `6g-125-6575-20` - 125 (6575/20 MHz) + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableConsoleServerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-129-6595-20` - 129 (6595/20 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/DeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/ModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + description: '* `de-9` - DE-9 - * `6g-131-6605-40` - 131 (6605/40 MHz) + * `db-25` - DB-25 - * `6g-133-6615-20` - 133 (6615/20 MHz) + * `rj-11` - RJ-11 - * `6g-135-6625-80` - 135 (6625/80 MHz) + * `rj-12` - RJ-12 - * `6g-137-6635-20` - 137 (6635/20 MHz) + * `rj-45` - RJ-45 - * `6g-139-6645-40` - 139 (6645/40 MHz) + * `mini-din-8` - Mini-DIN 8 - * `6g-141-6655-20` - 141 (6655/20 MHz) + * `usb-a` - USB Type A - * `6g-143-6665-160` - 143 (6665/160 MHz) + * `usb-b` - USB Type B - * `6g-145-6675-20` - 145 (6675/20 MHz) + * `usb-c` - USB Type C - * `6g-147-6685-40` - 147 (6685/40 MHz) + * `usb-mini-a` - USB Mini A - * `6g-149-6695-20` - 149 (6695/20 MHz) + * `usb-mini-b` - USB Mini B - * `6g-151-6705-80` - 151 (6705/80 MHz) + * `usb-micro-a` - USB Micro A - * `6g-153-6715-20` - 153 (6715/20 MHz) + * `usb-micro-b` - USB Micro B - * `6g-155-6725-40` - 155 (6725/40 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-157-6735-20` - 157 (6735/20 MHz) + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a + description: + type: string + maxLength: 200 + PatchedWritableContactAssignmentRequest: + type: object + description: Adds support for custom fields and tags. + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + contact: + $ref: '#/components/schemas/ContactRequest' + role: + allOf: + - $ref: '#/components/schemas/ContactRoleRequest' + nullable: true + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary - * `6g-159-6745-320` - 159 (6745/320 MHz) + * `secondary` - Secondary - * `6g-161-6755-20` - 161 (6755/20 MHz) + * `tertiary` - Tertiary - * `6g-163-6765-40` - 163 (6765/40 MHz) + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableContactGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableCustomFieldChoiceSetRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-165-6775-20` - 165 (6775/20 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + - '' + type: string + x-spec-enum-id: cf0efb5195f85007 + description: 'Base set of predefined choices (optional) - * `6g-167-6785-80` - 167 (6785/80 MHz) - * `6g-169-6795-20` - 169 (6795/20 MHz) + * `IATA` - IATA (Airport codes) - * `6g-171-6805-40` - 171 (6805/40 MHz) + * `ISO_3166` - ISO 3166 (Country codes) - * `6g-173-6815-20` - 173 (6815/20 MHz) + * `UN_LOCODE` - UN/LOCODE (Location codes)' + extra_choices: + type: array + items: + type: array + items: {} + maxItems: 2 + minItems: 2 + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + PatchedWritableCustomFieldRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-175-6825-160` - 175 (6825/160 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + type: + enum: + - text + - longtext + - integer + - decimal + - boolean + - date + - datetime + - url + - json + - select + - multiselect + - object + - multiobject + type: string + x-spec-enum-id: 22e3a64138d10046 + description: 'The type of data this custom field holds - * `6g-177-6835-20` - 177 (6835/20 MHz) - * `6g-179-6845-40` - 179 (6845/40 MHz) + * `text` - Text - * `6g-181-6855-20` - 181 (6855/20 MHz) + * `longtext` - Text (long) - * `6g-183-6865-80` - 183 (6865/80 MHz) + * `integer` - Integer - * `6g-185-6875-20` - 185 (6875/20 MHz) + * `decimal` - Decimal - * `6g-187-6885-40` - 187 (6885/40 MHz) + * `boolean` - Boolean (true/false) - * `6g-189-6895-20` - 189 (6895/20 MHz) + * `date` - Date - * `6g-193-6915-20` - 193 (6915/20 MHz) + * `datetime` - Date & time - * `6g-195-6925-40` - 195 (6925/40 MHz) + * `url` - URL - * `6g-197-6935-20` - 197 (6935/20 MHz) + * `json` - JSON - * `6g-199-6945-80` - 199 (6945/80 MHz) + * `select` - Selection - * `6g-201-6955-20` - 201 (6955/20 MHz) + * `multiselect` - Multiple selection - * `6g-203-6965-40` - 203 (6965/40 MHz) + * `object` - Object - * `6g-205-6975-20` - 205 (6975/20 MHz) + * `multiobject` - Multiple objects' + related_object_type: + type: string + nullable: true + name: + type: string + minLength: 1 + description: Internal field name + pattern: ^[a-z0-9_]+$ + maxLength: 50 + label: + type: string + description: Name of the field as displayed to users (if not provided, 'the + field's name will be used) + maxLength: 50 + group_name: + type: string + description: Custom fields within the same group will be displayed together + maxLength: 50 + description: + type: string + maxLength: 200 + required: + type: boolean + description: If true, this field is required when creating new objects or + editing an existing object. + search_weight: + type: integer + maximum: 32767 + minimum: 0 + description: Weighting for search. Lower values are considered more important. + Fields with a search weight of zero will be ignored. + filter_logic: + enum: + - disabled + - loose + - exact + type: string + x-spec-enum-id: a958350ae21c10ee + description: 'Loose matches any instance of a given string; exact matches + the entire field. - * `6g-207-6985-160` - 207 (6985/160 MHz) - * `6g-209-6995-20` - 209 (6995/20 MHz) + * `disabled` - Disabled - * `6g-211-7005-40` - 211 (7005/40 MHz) + * `loose` - Loose - * `6g-213-7015-20` - 213 (7015/20 MHz) + * `exact` - Exact' + ui_visible: + enum: + - always + - if-set + - hidden + type: string + x-spec-enum-id: cd2cf94af56de747 + description: 'Specifies whether the custom field is displayed in the UI - * `6g-215-7025-80` - 215 (7025/80 MHz) - * `6g-217-7035-20` - 217 (7035/20 MHz) + * `always` - Always - * `6g-219-7045-40` - 219 (7045/40 MHz) + * `if-set` - If set - * `6g-221-7055-20` - 221 (7055/20 MHz) + * `hidden` - Hidden' + ui_editable: + enum: + - 'yes' + - 'no' + - hidden + type: string + x-spec-enum-id: 1065673147e26bb5 + description: 'Specifies whether the custom field value can be edited in + the UI - * `6g-225-7075-20` - 225 (7075/20 MHz) - * `6g-227-7085-40` - 227 (7085/40 MHz) + * `yes` - Yes - * `6g-229-7095-20` - 229 (7095/20 MHz) + * `no` - No - * `6g-233-7115-20` - 233 (7115/20 MHz) + * `hidden` - Hidden' + is_cloneable: + type: boolean + description: Replicate this value when cloning objects + default: + nullable: true + description: Default value for the field (must be a JSON value). Encapsulate + strings with double quotes (e.g. "Foo"). + weight: + type: integer + maximum: 32767 + minimum: 0 + title: Display weight + description: Fields with higher weights appear lower in a form. + validation_minimum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Minimum value + description: Minimum allowed value (for numeric fields) + validation_maximum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Maximum value + description: Maximum allowed value (for numeric fields) + validation_regex: + type: string + description: Regular expression to enforce on text field values. Use ^ and + $ to force matching of entire string. For example, ^[A-Z]{3}$ + will limit values to exactly three uppercase letters. + maxLength: 500 + choice_set: + allOf: + - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + nullable: true + comments: + type: string + PatchedWritableDataSourceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + type: + type: string + minLength: 1 + maxLength: 50 + source_url: + type: string + minLength: 1 + title: URL + maxLength: 200 + enabled: + type: boolean + description: + type: string + maxLength: 200 + comments: + type: string + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing + custom_fields: + type: object + additionalProperties: {} + PatchedWritableDeviceTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/ManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/PlatformRequest' + nullable: true + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. - * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) - * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + * `parent` - Parent - * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + * `child` - Child' + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear - * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + * `rear-to-front` - Rear to front - * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + * `left-to-right` - Left to right - * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + * `right-to-left` - Right to left - * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + * `side-to-rear` - Side to rear - * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + * `passive` - Passive - * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms - * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + * `g` - Grams - * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + * `lb` - Pounds - * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + front_image: + type: string + format: binary + rear_image: + type: string + format: binary + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableDeviceWithConfigContextRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + nullable: true + maxLength: 64 + device_type: + $ref: '#/components/schemas/DeviceTypeRequest' + role: + $ref: '#/components/schemas/DeviceRoleRequest' + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/PlatformRequest' + nullable: true + serial: + type: string + title: Serial number + description: Chassis serial number, assigned by the manufacturer + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + site: + $ref: '#/components/schemas/SiteRequest' + location: + allOf: + - $ref: '#/components/schemas/LocationRequest' + nullable: true + rack: + allOf: + - $ref: '#/components/schemas/RackRequest' + nullable: true + position: + type: number + format: double + maximum: 1000 + minimum: 0.5 + exclusiveMaximum: true + nullable: true + title: Position (U) + face: + enum: + - front + - rear + - '' + type: string + description: '* `front` - Front - * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + * `rear` - Rear' + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + status: + enum: + - offline + - active + - planned + - staged + - failed + - inventory + - decommissioning + type: string + description: '* `offline` - Offline - * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + * `active` - Active - * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + * `planned` - Planned - * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + * `staged` - Staged - * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + * `failed` - Failed - * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - poe_mode: - enum: - - pd - - pse - - '' - type: string - description: '* `pd` - PD + * `inventory` - Inventory - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + * `decommissioning` - Decommissioning' + x-spec-enum-id: 8d8971779f16ee18 + airflow: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed - '' type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) - - * `type2-ieee802.3at` - 802.3at (Type 2) + description: '* `front-to-rear` - Front to rear - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `rear-to-front` - Rear to front - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `left-to-right` - Left to right - * `passive-24v-2pair` - Passive 24V (2-pair) + * `right-to-left` - Right to left - * `passive-24v-4pair` - Passive 24V (4-pair) + * `side-to-rear` - Side to rear - * `passive-48v-2pair` - Passive 48V (2-pair) + * `passive` - Passive - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_channel_frequency: - type: number - format: double - maximum: 100000 - minimum: -100000 - exclusiveMaximum: true - exclusiveMinimum: true + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + primary_ip4: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' nullable: true - title: Channel frequency (MHz) - description: Populated by selected channel (if set) - rf_channel_width: - type: number - format: double - maximum: 10000 - minimum: -10000 - exclusiveMaximum: true - exclusiveMinimum: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' nullable: true - title: Channel width (MHz) - description: Populated by selected channel (if set) - tx_power: + oob_ip: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/ClusterRequest' + nullable: true + virtual_chassis: + allOf: + - $ref: '#/components/schemas/VirtualChassisRequest' + nullable: true + vc_position: type: integer - maximum: 127 + maximum: 255 minimum: 0 nullable: true - title: Transmit power (dBm) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + vc_priority: + type: integer + maximum: 255 + minimum: 0 nullable: true - tagged_vlans: - type: array - items: - type: integer - mark_connected: - type: boolean - description: Treat as if a cable is connected - wireless_lans: - type: array - items: - type: integer - vrf: + description: Virtual chassis master election priority + description: + type: string + maxLength: 200 + comments: + type: string + config_template: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/ConfigTemplateRequest' + nullable: true + local_context_data: nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -132545,26 +120743,84 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceTemplateRequest: + PatchedWritableEventRuleRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 150 + type_create: + type: boolean + title: On create + description: Triggers when a matching object is created. + type_update: + type: boolean + title: On update + description: Triggers when a matching object is updated. + type_delete: + type: boolean + title: On delete + description: Triggers when a matching object is deleted. + type_job_start: + type: boolean + title: On job start + description: Triggers when a job for a matching object is started. + type_job_end: + type: boolean + title: On job end + description: Triggers when a job for a matching object terminates. + enabled: + type: boolean + conditions: nullable: true - module_type: + description: A set of conditions which determine whether the event will + be generated. + action_type: + enum: + - webhook + - script + type: string + description: '* `webhook` - Webhook + + * `script` - Script' + x-spec-enum-id: a08300d86473de6e + action_object_type: + type: string + action_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableFrontPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/DeviceRequest' + module: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' maxLength: 64 label: type: string @@ -132572,481 +120828,397 @@ components: maxLength: 64 type: enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 1000base-tx - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.11be - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice - other type: string - description: '* `virtual` - Virtual - - * `bridge` - Bridge - - * `lag` - Link Aggregation Group (LAG) - - * `100base-fx` - 100BASE-FX (10/100ME FIBER) - - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - - * `100base-tx` - 100BASE-TX (10/100ME) - - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - - * `1000base-t` - 1000BASE-T (1GE) - - * `1000base-tx` - 1000BASE-TX (1GE) - - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - - * `5gbase-t` - 5GBASE-T (5GE) - - * `10gbase-t` - 10GBASE-T (10GE) - - * `10gbase-cx4` - 10GBASE-CX4 (10GE) - - * `1000base-x-gbic` - GBIC (1GE) - - * `1000base-x-sfp` - SFP (1GE) - - * `10gbase-x-sfpp` - SFP+ (10GE) - - * `10gbase-x-xfp` - XFP (10GE) - - * `10gbase-x-xenpak` - XENPAK (10GE) - - * `10gbase-x-x2` - X2 (10GE) - - * `25gbase-x-sfp28` - SFP28 (25GE) - - * `50gbase-x-sfp56` - SFP56 (50GE) - - * `40gbase-x-qsfpp` - QSFP+ (40GE) - - * `50gbase-x-sfp28` - QSFP28 (50GE) - - * `100gbase-x-cfp` - CFP (100GE) - - * `100gbase-x-cfp2` - CFP2 (100GE) - - * `200gbase-x-cfp2` - CFP2 (200GE) - - * `400gbase-x-cfp2` - CFP2 (400GE) - - * `100gbase-x-cfp4` - CFP4 (100GE) - - * `100gbase-x-cxp` - CXP (100GE) - - * `100gbase-x-cpak` - Cisco CPAK (100GE) - - * `100gbase-x-dsfp` - DSFP (100GE) - - * `100gbase-x-sfpdd` - SFP-DD (100GE) - - * `100gbase-x-qsfp28` - QSFP28 (100GE) - - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + description: '* `8p8c` - 8P8C - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `8p6c` - 8P6C - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `8p4c` - 8P4C - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `8p2c` - 8P2C - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `6p6c` - 6P6C - * `400gbase-x-osfp` - OSFP (400GE) + * `6p4c` - 6P4C - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `6p2c` - 6P2C - * `400gbase-x-cdfp` - CDFP (400GE) + * `4p4c` - 4P4C - * `400gbase-x-cfp8` - CPF8 (400GE) + * `4p2c` - 4P2C - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `gg45` - GG45 - * `800gbase-x-osfp` - OSFP (800GE) + * `tera-4p` - TERA 4P - * `1000base-kx` - 1000BASE-KX (1GE) + * `tera-2p` - TERA 2P - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `tera-1p` - TERA 1P - * `5gbase-kr` - 5GBASE-KR (5GE) + * `110-punch` - 110 Punch - * `10gbase-kr` - 10GBASE-KR (10GE) + * `bnc` - BNC - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `f` - F Connector - * `25gbase-kr` - 25GBASE-KR (25GE) + * `n` - N Connector - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `mrj21` - MRJ21 - * `50gbase-kr` - 50GBASE-KR (50GE) + * `fc` - FC - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `lc` - LC - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `lc-pc` - LC/PC - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `lc-upc` - LC/UPC - * `ieee802.11a` - IEEE 802.11a + * `lc-apc` - LC/APC - * `ieee802.11g` - IEEE 802.11b/g + * `lsh` - LSH - * `ieee802.11n` - IEEE 802.11n + * `lsh-pc` - LSH/PC - * `ieee802.11ac` - IEEE 802.11ac + * `lsh-upc` - LSH/UPC - * `ieee802.11ad` - IEEE 802.11ad + * `lsh-apc` - LSH/APC - * `ieee802.11ax` - IEEE 802.11ax + * `lx5` - LX.5 - * `ieee802.11ay` - IEEE 802.11ay + * `lx5-pc` - LX.5/PC - * `ieee802.11be` - IEEE 802.11be + * `lx5-upc` - LX.5/UPC - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `lx5-apc` - LX.5/APC - * `other-wireless` - Other (Wireless) + * `mpo` - MPO - * `gsm` - GSM + * `mtrj` - MTRJ - * `cdma` - CDMA + * `sc` - SC - * `lte` - LTE + * `sc-pc` - SC/PC - * `4g` - 4G + * `sc-upc` - SC/UPC - * `5g` - 5G + * `sc-apc` - SC/APC - * `sonet-oc3` - OC-3/STM-1 + * `st` - ST - * `sonet-oc12` - OC-12/STM-4 + * `cs` - CS - * `sonet-oc48` - OC-48/STM-16 + * `sn` - SN - * `sonet-oc192` - OC-192/STM-64 + * `sma-905` - SMA 905 - * `sonet-oc768` - OC-768/STM-256 + * `sma-906` - SMA 906 - * `sonet-oc1920` - OC-1920/STM-640 + * `urm-p2` - URM-P2 - * `sonet-oc3840` - OC-3840/STM-1234 + * `urm-p4` - URM-P4 - * `1gfc-sfp` - SFP (1GFC) + * `urm-p8` - URM-P8 - * `2gfc-sfp` - SFP (2GFC) + * `splice` - Splice - * `4gfc-sfp` - SFP (4GFC) + * `other` - Other' + x-spec-enum-id: 0276d1110ada597a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + rear_port: + type: integer + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 + description: Mapped position on corresponding rear port + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableFrontPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `8gfc-sfpp` - SFP+ (8GFC) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/DeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/ModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - other + type: string + description: '* `8p8c` - 8P8C - * `16gfc-sfpp` - SFP+ (16GFC) + * `8p6c` - 8P6C - * `32gfc-sfp28` - SFP28 (32GFC) + * `8p4c` - 8P4C - * `32gfc-sfpp` - SFP+ (32GFC) + * `8p2c` - 8P2C - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `6p6c` - 6P6C - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `6p4c` - 6P4C - * `64gfc-sfpp` - SFP+ (64GFC) + * `6p2c` - 6P2C - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `4p4c` - 4P4C - * `infiniband-sdr` - SDR (2 Gbps) + * `4p2c` - 4P2C - * `infiniband-ddr` - DDR (4 Gbps) + * `gg45` - GG45 - * `infiniband-qdr` - QDR (8 Gbps) + * `tera-4p` - TERA 4P - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `tera-2p` - TERA 2P - * `infiniband-fdr` - FDR (13.5 Gbps) + * `tera-1p` - TERA 1P - * `infiniband-edr` - EDR (25 Gbps) + * `110-punch` - 110 Punch - * `infiniband-hdr` - HDR (50 Gbps) + * `bnc` - BNC - * `infiniband-ndr` - NDR (100 Gbps) + * `f` - F Connector - * `infiniband-xdr` - XDR (250 Gbps) + * `n` - N Connector - * `t1` - T1 (1.544 Mbps) + * `mrj21` - MRJ21 - * `e1` - E1 (2.048 Mbps) + * `fc` - FC - * `t3` - T3 (45 Mbps) + * `lc` - LC - * `e3` - E3 (34 Mbps) + * `lc-pc` - LC/PC - * `xdsl` - xDSL + * `lc-upc` - LC/UPC - * `docsis` - DOCSIS + * `lc-apc` - LC/APC - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `lsh` - LSH - * `epon` - EPON (1 Gbps) + * `lsh-pc` - LSH/PC - * `10g-epon` - 10G-EPON (10 Gbps) + * `lsh-upc` - LSH/UPC - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `lsh-apc` - LSH/APC - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `lx5` - LX.5 - * `xgs-pon` - XGS-PON (10 Gbps) + * `lx5-pc` - LX.5/PC - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `lx5-upc` - LX.5/UPC - * `25g-pon` - 25G-PON (25 Gbps) + * `lx5-apc` - LX.5/APC - * `50g-pon` - 50G-PON (50 Gbps) + * `mpo` - MPO - * `cisco-stackwise` - Cisco StackWise + * `mtrj` - MTRJ - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `sc` - SC - * `cisco-flexstack` - Cisco FlexStack + * `sc-pc` - SC/PC - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `sc-upc` - SC/UPC - * `cisco-stackwise-80` - Cisco StackWise-80 + * `sc-apc` - SC/APC - * `cisco-stackwise-160` - Cisco StackWise-160 + * `st` - ST - * `cisco-stackwise-320` - Cisco StackWise-320 + * `cs` - CS - * `cisco-stackwise-480` - Cisco StackWise-480 + * `sn` - SN - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `sma-905` - SMA 905 - * `juniper-vcp` - Juniper VCP + * `sma-906` - SMA 906 - * `extreme-summitstack` - Extreme SummitStack + * `urm-p2` - URM-P2 - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `urm-p4` - URM-P4 - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `urm-p8` - URM-P8 - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `splice` - Splice * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 - enabled: - type: boolean - mgmt_only: - type: boolean - title: Management only - description: + x-spec-enum-id: 0276d1110ada597a + color: type: string - maxLength: 200 - bridge: + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + rear_port: + $ref: '#/components/schemas/RearPortTemplateRequest' + rear_port_position: type: integer - nullable: true - title: Bridge interface - poe_mode: - enum: - - pd - - pse - - '' - type: string - description: '* `pd` - PD - - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: - enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair - - '' - type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) - - * `type2-ieee802.3at` - 802.3at (Type 2) - - * `type3-ieee802.3bt` - 802.3bt (Type 3) - - * `type4-ieee802.3bt` - 802.3bt (Type 4) - - * `passive-24v-2pair` - Passive 24V (2-pair) - - * `passive-24v-4pair` - Passive 24V (4-pair) - - * `passive-48v-2pair` - Passive 48V (2-pair) - - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_role: - enum: - - ap - - station - - '' + maximum: 1024 + minimum: 1 + default: 1 + description: type: string - description: '* `ap` - Access point - - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - PatchedWritableJournalEntryRequest: + maxLength: 200 + PatchedWritableIKEPolicyRequest: type: object description: Adds support for custom fields and tags. properties: - assigned_object_type: + name: type: string - assigned_object_id: + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + version: + enum: + - 1 + - 2 type: integer - maximum: 9223372036854775807 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + x-spec-enum-id: 00872b77916a1fde minimum: 0 - format: int64 - created_by: - type: integer - nullable: true - kind: + maximum: 32767 + mode: enum: - - info - - success - - warning - - danger + - aggressive + - main + - '' type: string - description: '* `info` - Info - - * `success` - Success - - * `warning` - Warning + description: '* `aggressive` - Aggressive - * `danger` - Danger' - x-spec-enum-id: a21af280f632fa34 + * `main` - Main' + x-spec-enum-id: 64c1be7bdb2548ca + proposals: + type: array + items: + type: integer + preshared_key: + type: string + title: Pre-shared key comments: type: string - minLength: 1 tags: type: array items: @@ -133054,185 +121226,164 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableL2VPNRequest: + PatchedWritableIKEProposalRequest: type: object description: Adds support for custom fields and tags. properties: - identifier: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true name: type: string minLength: 1 maxLength: 100 - slug: + description: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - type: + maxLength: 200 + authentication_method: enum: - - vpws - - vpls - - vxlan - - vxlan-evpn - - mpls-evpn - - pbb-evpn - - epl - - evpl - - ep-lan - - evp-lan - - ep-tree - - evp-tree + - preshared-keys + - certificates + - rsa-signatures + - dsa-signatures type: string - description: '* `vpws` - VPWS - - * `vpls` - VPLS + description: '* `preshared-keys` - Pre-shared keys - * `vxlan` - VXLAN + * `certificates` - Certificates - * `vxlan-evpn` - VXLAN-EVPN + * `rsa-signatures` - RSA signatures - * `mpls-evpn` - MPLS EVPN + * `dsa-signatures` - DSA signatures' + x-spec-enum-id: 92bb2f1103b3a262 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) - * `pbb-evpn` - PBB EVPN + * `aes-128-gcm` - 128-bit AES (GCM) - * `epl` - EPL + * `aes-192-cbc` - 192-bit AES (CBC) - * `evpl` - EVPL + * `aes-192-gcm` - 192-bit AES (GCM) - * `ep-lan` - Ethernet Private LAN + * `aes-256-cbc` - 256-bit AES (CBC) - * `evp-lan` - Ethernet Virtual Private LAN + * `aes-256-gcm` - 256-bit AES (GCM) - * `ep-tree` - Ethernet Private Tree + * `3des-cbc` - 3DES - * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 - import_targets: - type: array - items: - type: integer - export_targets: - type: array - items: - type: integer - description: - type: string - maxLength: 200 - comments: - type: string - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableLocationRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/BriefSiteRequest' - parent: - type: integer - nullable: true - status: + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + authentication_algorithm: enum: - - planned - - staging - - active - - decommissioning - - retired + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' type: string - description: '* `planned` - Planned + description: '* `hmac-sha1` - SHA-1 HMAC - * `staging` - Staging + * `hmac-sha256` - SHA-256 HMAC - * `active` - Active + * `hmac-sha384` - SHA-384 HMAC - * `decommissioning` - Decommissioning + * `hmac-sha512` - SHA-512 HMAC - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableModuleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module_bay: - type: integer - module_type: - $ref: '#/components/schemas/BriefModuleTypeRequest' - status: + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + group: enum: - - offline - - active - - planned - - staged - - failed - - decommissioning - type: string - description: '* `offline` - Offline + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + type: integer + x-spec-enum-id: dbef43be795462a8 + description: 'Diffie-Hellman group ID - * `active` - Active - * `planned` - Planned + * `1` - Group 1 - * `staged` - Staged + * `2` - Group 2 - * `failed` - Failed + * `5` - Group 5 - * `decommissioning` - Decommissioning' - x-spec-enum-id: 2217e87d0c3efdda - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + minimum: 0 + maximum: 32767 + sa_lifetime: + type: integer + maximum: 2147483647 + minimum: 0 nullable: true - description: A unique tag used to identify this device - maxLength: 50 - description: - type: string - maxLength: 200 + description: Security association lifetime (in seconds) comments: type: string tags: @@ -133242,66 +121393,92 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleTypeRequest: + PatchedWritableIPAddressRequest: type: object description: Adds support for custom fields and tags. properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: + address: type: string minLength: 1 - maxLength: 100 - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - airflow: + vrf: + allOf: + - $ref: '#/components/schemas/VRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + status: enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - '' + - active + - reserved + - deprecated + - dhcp + - slaac type: string - description: '* `front-to-rear` - Front to rear + x-spec-enum-id: 24935cfee15bd268 + description: 'The operational status of this IP - * `rear-to-front` - Rear to front - * `left-to-right` - Left to right + * `active` - Active - * `right-to-left` - Right to left + * `reserved` - Reserved - * `side-to-rear` - Side to rear + * `deprecated` - Deprecated - * `passive` - Passive' - x-spec-enum-id: f6e5562e0e98d69d - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: + * `dhcp` - DHCP + + * `slaac` - SLAAC' + role: enum: - - kg - - g - - lb - - oz + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp - '' type: string - description: '* `kg` - Kilograms + x-spec-enum-id: 10fbcb4930889b0f + description: 'The functional role of this IP - * `g` - Grams - * `lb` - Pounds + * `loopback` - Loopback - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + nat_inside: + type: integer + nullable: true + title: NAT (inside) + description: The IP for which this address is the "outside" IP + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 @@ -133314,85 +121491,46 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerFeedRequest: + PatchedWritableIPRangeRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/BriefPowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/BriefRackRequest' - nullable: true - name: + start_address: type: string minLength: 1 - maxLength: 100 + end_address: + type: string + minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/VRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true status: enum: - - offline - active - - planned - - failed + - reserved + - deprecated type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this range - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `active` - Active - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase + * `reserved` - Reserved - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/RoleRequest' + nullable: true description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true comments: type: string tags: @@ -133402,348 +121540,223 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletRequest: + mark_utilized: + type: boolean + description: Treat as fully utilized + PatchedWritableIPSecPolicyRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 100 + description: type: string - description: Physical label - maxLength: 64 - type: + maxLength: 200 + proposals: + type: array + items: + type: integer + pfs_group: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-20r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - x-spec-enum-id: 83934a5ad90d6138 - description: 'Physical port type - - - * `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-20r` - NEMA L22-20R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: 'Diffie-Hellman group for Perfect Forward Secrecy - * `CS6364C` - CS6364C - * `CS8164C` - CS8164C + * `1` - Group 1 - * `CS8264C` - CS8264C + * `2` - Group 2 - * `CS8364C` - CS8364C + * `5` - Group 5 - * `CS8464C` - CS8464C + * `14` - Group 14 - * `ita-e` - ITA Type E (CEE 7/5) + * `15` - Group 15 - * `ita-f` - ITA Type F (CEE 7/3) + * `16` - Group 16 - * `ita-g` - ITA Type G (BS 1363) + * `17` - Group 17 - * `ita-h` - ITA Type H + * `18` - Group 18 - * `ita-i` - ITA Type I + * `19` - Group 19 - * `ita-j` - ITA Type J + * `20` - Group 20 - * `ita-k` - ITA Type K + * `21` - Group 21 - * `ita-l` - ITA Type L (CEI 23-50) + * `22` - Group 22 - * `ita-m` - ITA Type M (BS 546) + * `23` - Group 23 - * `ita-n` - ITA Type N + * `24` - Group 24 - * `ita-o` - ITA Type O + * `25` - Group 25 - * `ita-multistandard` - ITA Multistandard + * `26` - Group 26 - * `usb-a` - USB Type A + * `27` - Group 27 - * `usb-micro-b` - USB Micro B + * `28` - Group 28 - * `usb-c` - USB Type C + * `29` - Group 29 - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `30` - Group 30 - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `31` - Group 31 - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `32` - Group 32 - * `dc-terminal` - DC Terminal + * `33` - Group 33 - * `hdot-cx` - HDOT Cx + * `34` - Group 34' + minimum: 0 + maximum: 32767 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableIPSecProfileRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + mode: + enum: + - esp + - ah + type: string + description: '* `esp` - ESP - * `saf-d-grid` - Saf-D-Grid + * `ah` - AH' + x-spec-enum-id: 1136c2cdfee84436 + ike_policy: + $ref: '#/components/schemas/IKEPolicyRequest' + ipsec_policy: + $ref: '#/components/schemas/IPSecPolicyRequest' + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableIPSecProposalRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + - '' + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `aes-128-gcm` - 128-bit AES (GCM) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `aes-192-cbc` - 192-bit AES (CBC) - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `aes-192-gcm` - 192-bit AES (GCM) - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `aes-256-cbc` - 256-bit AES (CBC) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `aes-256-gcm` - 256-bit AES (GCM) - * `hardwired` - Hardwired + * `3des-cbc` - 3DES - * `other` - Other' - power_port: - allOf: - - $ref: '#/components/schemas/BriefPowerPortRequest' - nullable: true - feed_leg: + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + title: Encryption + authentication_algorithm: enum: - - A - - B - - C + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 - '' type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) + description: '* `hmac-sha1` - SHA-1 HMAC + * `hmac-sha256` - SHA-256 HMAC - * `A` - A + * `hmac-sha384` - SHA-384 HMAC - * `B` - B + * `hmac-sha512` - SHA-512 HMAC - * `C` - C' - description: + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + sa_lifetime_seconds: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (seconds) + description: Security association lifetime (seconds) + sa_lifetime_data: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (KB) + description: Security association lifetime (in kilobytes) + comments: type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected tags: type: array items: @@ -133751,26 +121764,23 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletTemplateRequest: + PatchedWritableInterfaceRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: + device: + $ref: '#/components/schemas/DeviceRequest' + vdcs: + type: array + items: + type: integer + module: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' maxLength: 64 label: type: string @@ -133778,1295 +121788,1140 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-20r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.15.1 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 - other - - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `virtual` - Virtual - * `iec-60320-c7` - C7 + * `bridge` - Bridge - * `iec-60320-c13` - C13 + * `lag` - Link Aggregation Group (LAG) - * `iec-60320-c15` - C15 + * `100base-fx` - 100BASE-FX (10/100ME FIBER) - * `iec-60320-c19` - C19 + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - * `iec-60320-c21` - C21 + * `100base-tx` - 100BASE-TX (10/100ME) - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `1000base-t` - 1000BASE-T (1GE) - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - * `iec-60309-2p-e-4h` - 2P+E 4H + * `5gbase-t` - 5GBASE-T (5GE) - * `iec-60309-2p-e-6h` - 2P+E 6H + * `10gbase-t` - 10GBASE-T (10GE) - * `iec-60309-2p-e-9h` - 2P+E 9H + * `10gbase-cx4` - 10GBASE-CX4 (10GE) - * `iec-60309-3p-e-4h` - 3P+E 4H + * `1000base-x-gbic` - GBIC (1GE) - * `iec-60309-3p-e-6h` - 3P+E 6H + * `1000base-x-sfp` - SFP (1GE) - * `iec-60309-3p-e-9h` - 3P+E 9H + * `10gbase-x-sfpp` - SFP+ (10GE) - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `10gbase-x-xfp` - XFP (10GE) - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `10gbase-x-xenpak` - XENPAK (10GE) - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `10gbase-x-x2` - X2 (10GE) - * `iec-60906-1` - IEC 60906-1 + * `25gbase-x-sfp28` - SFP28 (25GE) - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `50gbase-x-sfp56` - SFP56 (50GE) - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `40gbase-x-qsfpp` - QSFP+ (40GE) - * `nema-1-15r` - NEMA 1-15R + * `50gbase-x-sfp28` - QSFP28 (50GE) - * `nema-5-15r` - NEMA 5-15R + * `100gbase-x-cfp` - CFP (100GE) - * `nema-5-20r` - NEMA 5-20R + * `100gbase-x-cfp2` - CFP2 (100GE) - * `nema-5-30r` - NEMA 5-30R + * `200gbase-x-cfp2` - CFP2 (200GE) - * `nema-5-50r` - NEMA 5-50R + * `400gbase-x-cfp2` - CFP2 (400GE) - * `nema-6-15r` - NEMA 6-15R + * `100gbase-x-cfp4` - CFP4 (100GE) - * `nema-6-20r` - NEMA 6-20R + * `100gbase-x-cxp` - CXP (100GE) - * `nema-6-30r` - NEMA 6-30R + * `100gbase-x-cpak` - Cisco CPAK (100GE) - * `nema-6-50r` - NEMA 6-50R + * `100gbase-x-dsfp` - DSFP (100GE) - * `nema-10-30r` - NEMA 10-30R + * `100gbase-x-sfpdd` - SFP-DD (100GE) - * `nema-10-50r` - NEMA 10-50R + * `100gbase-x-qsfp28` - QSFP28 (100GE) - * `nema-14-20r` - NEMA 14-20R + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) - * `nema-14-30r` - NEMA 14-30R + * `200gbase-x-qsfp56` - QSFP56 (200GE) - * `nema-14-50r` - NEMA 14-50R + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) - * `nema-14-60r` - NEMA 14-60R + * `400gbase-x-qsfp112` - QSFP112 (400GE) - * `nema-15-15r` - NEMA 15-15R + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) - * `nema-15-20r` - NEMA 15-20R + * `400gbase-x-osfp` - OSFP (400GE) - * `nema-15-30r` - NEMA 15-30R + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) - * `nema-15-50r` - NEMA 15-50R + * `400gbase-x-cdfp` - CDFP (400GE) - * `nema-15-60r` - NEMA 15-60R + * `400gbase-x-cfp8` - CPF8 (400GE) - * `nema-l1-15r` - NEMA L1-15R + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) - * `nema-l5-15r` - NEMA L5-15R + * `800gbase-x-osfp` - OSFP (800GE) - * `nema-l5-20r` - NEMA L5-20R + * `1000base-kx` - 1000BASE-KX (1GE) - * `nema-l5-30r` - NEMA L5-30R + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) - * `nema-l5-50r` - NEMA L5-50R + * `5gbase-kr` - 5GBASE-KR (5GE) - * `nema-l6-15r` - NEMA L6-15R + * `10gbase-kr` - 10GBASE-KR (10GE) - * `nema-l6-20r` - NEMA L6-20R + * `10gbase-kx4` - 10GBASE-KX4 (10GE) - * `nema-l6-30r` - NEMA L6-30R + * `25gbase-kr` - 25GBASE-KR (25GE) - * `nema-l6-50r` - NEMA L6-50R + * `40gbase-kr4` - 40GBASE-KR4 (40GE) - * `nema-l10-30r` - NEMA L10-30R + * `50gbase-kr` - 50GBASE-KR (50GE) - * `nema-l14-20r` - NEMA L14-20R + * `100gbase-kp4` - 100GBASE-KP4 (100GE) - * `nema-l14-30r` - NEMA L14-30R + * `100gbase-kr2` - 100GBASE-KR2 (100GE) - * `nema-l14-50r` - NEMA L14-50R + * `100gbase-kr4` - 100GBASE-KR4 (100GE) - * `nema-l14-60r` - NEMA L14-60R + * `ieee802.11a` - IEEE 802.11a - * `nema-l15-20r` - NEMA L15-20R + * `ieee802.11g` - IEEE 802.11b/g - * `nema-l15-30r` - NEMA L15-30R + * `ieee802.11n` - IEEE 802.11n - * `nema-l15-50r` - NEMA L15-50R + * `ieee802.11ac` - IEEE 802.11ac - * `nema-l15-60r` - NEMA L15-60R + * `ieee802.11ad` - IEEE 802.11ad - * `nema-l21-20r` - NEMA L21-20R + * `ieee802.11ax` - IEEE 802.11ax - * `nema-l21-30r` - NEMA L21-30R + * `ieee802.11ay` - IEEE 802.11ay - * `nema-l22-20r` - NEMA L22-20R + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) - * `nema-l22-30r` - NEMA L22-30R + * `other-wireless` - Other (Wireless) - * `CS6360C` - CS6360C + * `gsm` - GSM - * `CS6364C` - CS6364C + * `cdma` - CDMA - * `CS8164C` - CS8164C + * `lte` - LTE - * `CS8264C` - CS8264C + * `4g` - 4G - * `CS8364C` - CS8364C + * `5g` - 5G - * `CS8464C` - CS8464C + * `sonet-oc3` - OC-3/STM-1 - * `ita-e` - ITA Type E (CEE 7/5) + * `sonet-oc12` - OC-12/STM-4 - * `ita-f` - ITA Type F (CEE 7/3) + * `sonet-oc48` - OC-48/STM-16 - * `ita-g` - ITA Type G (BS 1363) + * `sonet-oc192` - OC-192/STM-64 - * `ita-h` - ITA Type H + * `sonet-oc768` - OC-768/STM-256 - * `ita-i` - ITA Type I + * `sonet-oc1920` - OC-1920/STM-640 - * `ita-j` - ITA Type J + * `sonet-oc3840` - OC-3840/STM-1234 - * `ita-k` - ITA Type K + * `1gfc-sfp` - SFP (1GFC) - * `ita-l` - ITA Type L (CEI 23-50) + * `2gfc-sfp` - SFP (2GFC) - * `ita-m` - ITA Type M (BS 546) + * `4gfc-sfp` - SFP (4GFC) - * `ita-n` - ITA Type N + * `8gfc-sfpp` - SFP+ (8GFC) - * `ita-o` - ITA Type O + * `16gfc-sfpp` - SFP+ (16GFC) - * `ita-multistandard` - ITA Multistandard + * `32gfc-sfp28` - SFP28 (32GFC) - * `usb-a` - USB Type A + * `32gfc-sfpp` - SFP+ (32GFC) - * `usb-micro-b` - USB Micro B + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `usb-c` - USB Type C + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `64gfc-sfpp` - SFP+ (64GFC) - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `infiniband-sdr` - SDR (2 Gbps) - * `dc-terminal` - DC Terminal + * `infiniband-ddr` - DDR (4 Gbps) - * `hdot-cx` - HDOT Cx + * `infiniband-qdr` - QDR (8 Gbps) - * `saf-d-grid` - Saf-D-Grid + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `infiniband-fdr` - FDR (13.5 Gbps) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `infiniband-edr` - EDR (25 Gbps) - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `infiniband-hdr` - HDR (50 Gbps) - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `infiniband-ndr` - NDR (100 Gbps) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `infiniband-xdr` - XDR (250 Gbps) - * `hardwired` - Hardwired + * `t1` - T1 (1.544 Mbps) - * `other` - Other' - x-spec-enum-id: 83934a5ad90d6138 - power_port: - allOf: - - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' - nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) + * `e1` - E1 (2.048 Mbps) + * `t3` - T3 (45 Mbps) - * `A` - A + * `e3` - E3 (34 Mbps) - * `B` - B + * `xdsl` - xDSL - * `C` - C' - description: - type: string - maxLength: 200 - PatchedWritablePowerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-20p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - x-spec-enum-id: f1bd4aedff3a591b - description: 'Physical port type + * `docsis` - DOCSIS + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `iec-60320-c6` - C6 + * `epon` - EPON (1 Gbps) - * `iec-60320-c8` - C8 + * `10g-epon` - 10G-EPON (10 Gbps) - * `iec-60320-c14` - C14 + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `iec-60320-c16` - C16 + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `iec-60320-c20` - C20 + * `xgs-pon` - XGS-PON (10 Gbps) - * `iec-60320-c22` - C22 + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `25g-pon` - 25G-PON (25 Gbps) - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `50g-pon` - 50G-PON (50 Gbps) - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `cisco-stackwise` - Cisco StackWise - * `iec-60309-2p-e-4h` - 2P+E 4H + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `iec-60309-2p-e-6h` - 2P+E 6H + * `cisco-flexstack` - Cisco FlexStack - * `iec-60309-2p-e-9h` - 2P+E 9H + * `cisco-flexstack-plus` - Cisco FlexStack Plus - * `iec-60309-3p-e-4h` - 3P+E 4H + * `cisco-stackwise-80` - Cisco StackWise-80 - * `iec-60309-3p-e-6h` - 3P+E 6H + * `cisco-stackwise-160` - Cisco StackWise-160 - * `iec-60309-3p-e-9h` - 3P+E 9H + * `cisco-stackwise-320` - Cisco StackWise-320 - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `cisco-stackwise-480` - Cisco StackWise-480 - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' + x-spec-enum-id: b9a351ea129ed754 + enabled: + type: boolean + parent: + type: integer + nullable: true + title: Parent interface + bridge: + type: integer + nullable: true + title: Bridge interface + lag: + type: integer + nullable: true + title: Parent LAG + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: + type: string + nullable: true + speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Speed (Kbps) + duplex: + enum: + - half + - full + - auto + - '' + type: string + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + wwn: + type: string + nullable: true + mgmt_only: + type: boolean + title: Management only + description: This interface is used only for out-of-band management + description: + type: string + maxLength: 200 + mode: + enum: + - access + - tagged + - tagged-all + - '' + type: string + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + rf_role: + enum: + - ap + - station + - '' + type: string + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + rf_channel: + enum: + - 2.4g-1-2412-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 6g-1-5955-20 + - 6g-3-5965-40 + - 6g-5-5975-20 + - 6g-7-5985-80 + - 6g-9-5995-20 + - 6g-11-6005-40 + - 6g-13-6015-20 + - 6g-15-6025-160 + - 6g-17-6035-20 + - 6g-19-6045-40 + - 6g-21-6055-20 + - 6g-23-6065-80 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-233-7115-20 + - 60g-1-58320-2160 + - 60g-2-60480-2160 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - '' + type: string + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `2.4g-2-2417-22` - 2 (2417 MHz) - * `iec-60906-1` - IEC 60906-1 + * `2.4g-3-2422-22` - 3 (2422 MHz) - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `2.4g-4-2427-22` - 4 (2427 MHz) - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `2.4g-5-2432-22` - 5 (2432 MHz) - * `nema-1-15p` - NEMA 1-15P + * `2.4g-6-2437-22` - 6 (2437 MHz) - * `nema-5-15p` - NEMA 5-15P + * `2.4g-7-2442-22` - 7 (2442 MHz) - * `nema-5-20p` - NEMA 5-20P + * `2.4g-8-2447-22` - 8 (2447 MHz) - * `nema-5-30p` - NEMA 5-30P + * `2.4g-9-2452-22` - 9 (2452 MHz) - * `nema-5-50p` - NEMA 5-50P + * `2.4g-10-2457-22` - 10 (2457 MHz) - * `nema-6-15p` - NEMA 6-15P + * `2.4g-11-2462-22` - 11 (2462 MHz) - * `nema-6-20p` - NEMA 6-20P + * `2.4g-12-2467-22` - 12 (2467 MHz) - * `nema-6-30p` - NEMA 6-30P + * `2.4g-13-2472-22` - 13 (2472 MHz) - * `nema-6-50p` - NEMA 6-50P + * `5g-32-5160-20` - 32 (5160/20 MHz) - * `nema-10-30p` - NEMA 10-30P + * `5g-34-5170-40` - 34 (5170/40 MHz) - * `nema-10-50p` - NEMA 10-50P + * `5g-36-5180-20` - 36 (5180/20 MHz) - * `nema-14-20p` - NEMA 14-20P + * `5g-38-5190-40` - 38 (5190/40 MHz) - * `nema-14-30p` - NEMA 14-30P + * `5g-40-5200-20` - 40 (5200/20 MHz) - * `nema-14-50p` - NEMA 14-50P + * `5g-42-5210-80` - 42 (5210/80 MHz) - * `nema-14-60p` - NEMA 14-60P + * `5g-44-5220-20` - 44 (5220/20 MHz) - * `nema-15-15p` - NEMA 15-15P + * `5g-46-5230-40` - 46 (5230/40 MHz) - * `nema-15-20p` - NEMA 15-20P + * `5g-48-5240-20` - 48 (5240/20 MHz) - * `nema-15-30p` - NEMA 15-30P + * `5g-50-5250-160` - 50 (5250/160 MHz) - * `nema-15-50p` - NEMA 15-50P + * `5g-52-5260-20` - 52 (5260/20 MHz) - * `nema-15-60p` - NEMA 15-60P + * `5g-54-5270-40` - 54 (5270/40 MHz) - * `nema-l1-15p` - NEMA L1-15P + * `5g-56-5280-20` - 56 (5280/20 MHz) - * `nema-l5-15p` - NEMA L5-15P + * `5g-58-5290-80` - 58 (5290/80 MHz) - * `nema-l5-20p` - NEMA L5-20P + * `5g-60-5300-20` - 60 (5300/20 MHz) - * `nema-l5-30p` - NEMA L5-30P + * `5g-62-5310-40` - 62 (5310/40 MHz) - * `nema-l5-50p` - NEMA L5-50P + * `5g-64-5320-20` - 64 (5320/20 MHz) - * `nema-l6-15p` - NEMA L6-15P + * `5g-100-5500-20` - 100 (5500/20 MHz) - * `nema-l6-20p` - NEMA L6-20P + * `5g-102-5510-40` - 102 (5510/40 MHz) - * `nema-l6-30p` - NEMA L6-30P + * `5g-104-5520-20` - 104 (5520/20 MHz) - * `nema-l6-50p` - NEMA L6-50P + * `5g-106-5530-80` - 106 (5530/80 MHz) - * `nema-l10-30p` - NEMA L10-30P + * `5g-108-5540-20` - 108 (5540/20 MHz) - * `nema-l14-20p` - NEMA L14-20P + * `5g-110-5550-40` - 110 (5550/40 MHz) - * `nema-l14-30p` - NEMA L14-30P + * `5g-112-5560-20` - 112 (5560/20 MHz) - * `nema-l14-50p` - NEMA L14-50P + * `5g-114-5570-160` - 114 (5570/160 MHz) - * `nema-l14-60p` - NEMA L14-60P + * `5g-116-5580-20` - 116 (5580/20 MHz) - * `nema-l15-20p` - NEMA L15-20P + * `5g-118-5590-40` - 118 (5590/40 MHz) - * `nema-l15-30p` - NEMA L15-30P + * `5g-120-5600-20` - 120 (5600/20 MHz) - * `nema-l15-50p` - NEMA L15-50P + * `5g-122-5610-80` - 122 (5610/80 MHz) - * `nema-l15-60p` - NEMA L15-60P + * `5g-124-5620-20` - 124 (5620/20 MHz) - * `nema-l21-20p` - NEMA L21-20P + * `5g-126-5630-40` - 126 (5630/40 MHz) - * `nema-l21-30p` - NEMA L21-30P + * `5g-128-5640-20` - 128 (5640/20 MHz) - * `nema-l22-20p` - NEMA L22-20P + * `5g-132-5660-20` - 132 (5660/20 MHz) - * `nema-l22-30p` - NEMA L22-30P + * `5g-134-5670-40` - 134 (5670/40 MHz) - * `cs6361c` - CS6361C + * `5g-136-5680-20` - 136 (5680/20 MHz) - * `cs6365c` - CS6365C + * `5g-138-5690-80` - 138 (5690/80 MHz) - * `cs8165c` - CS8165C + * `5g-140-5700-20` - 140 (5700/20 MHz) - * `cs8265c` - CS8265C + * `5g-142-5710-40` - 142 (5710/40 MHz) - * `cs8365c` - CS8365C + * `5g-144-5720-20` - 144 (5720/20 MHz) - * `cs8465c` - CS8465C + * `5g-149-5745-20` - 149 (5745/20 MHz) - * `ita-c` - ITA Type C (CEE 7/16) + * `5g-151-5755-40` - 151 (5755/40 MHz) - * `ita-e` - ITA Type E (CEE 7/6) + * `5g-153-5765-20` - 153 (5765/20 MHz) - * `ita-f` - ITA Type F (CEE 7/4) + * `5g-155-5775-80` - 155 (5775/80 MHz) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `5g-157-5785-20` - 157 (5785/20 MHz) - * `ita-g` - ITA Type G (BS 1363) + * `5g-159-5795-40` - 159 (5795/40 MHz) - * `ita-h` - ITA Type H + * `5g-161-5805-20` - 161 (5805/20 MHz) - * `ita-i` - ITA Type I + * `5g-163-5815-160` - 163 (5815/160 MHz) - * `ita-j` - ITA Type J + * `5g-165-5825-20` - 165 (5825/20 MHz) - * `ita-k` - ITA Type K + * `5g-167-5835-40` - 167 (5835/40 MHz) - * `ita-l` - ITA Type L (CEI 23-50) + * `5g-169-5845-20` - 169 (5845/20 MHz) - * `ita-m` - ITA Type M (BS 546) + * `5g-171-5855-80` - 171 (5855/80 MHz) - * `ita-n` - ITA Type N + * `5g-173-5865-20` - 173 (5865/20 MHz) - * `ita-o` - ITA Type O + * `5g-175-5875-40` - 175 (5875/40 MHz) - * `usb-a` - USB Type A + * `5g-177-5885-20` - 177 (5885/20 MHz) - * `usb-b` - USB Type B + * `6g-1-5955-20` - 1 (5955/20 MHz) - * `usb-c` - USB Type C + * `6g-3-5965-40` - 3 (5965/40 MHz) - * `usb-mini-a` - USB Mini A + * `6g-5-5975-20` - 5 (5975/20 MHz) - * `usb-mini-b` - USB Mini B + * `6g-7-5985-80` - 7 (5985/80 MHz) - * `usb-micro-a` - USB Micro A + * `6g-9-5995-20` - 9 (5995/20 MHz) - * `usb-micro-b` - USB Micro B + * `6g-11-6005-40` - 11 (6005/40 MHz) - * `usb-micro-ab` - USB Micro AB + * `6g-13-6015-20` - 13 (6015/20 MHz) - * `usb-3-b` - USB 3.0 Type B + * `6g-15-6025-160` - 15 (6025/160 MHz) - * `usb-3-micro-b` - USB 3.0 Micro B + * `6g-17-6035-20` - 17 (6035/20 MHz) - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `6g-19-6045-40` - 19 (6045/40 MHz) - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `6g-21-6055-20` - 21 (6055/20 MHz) - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `6g-23-6065-80` - 23 (6065/80 MHz) - * `dc-terminal` - DC Terminal + * `6g-25-6075-20` - 25 (6075/20 MHz) - * `saf-d-grid` - Saf-D-Grid + * `6g-27-6085-40` - 27 (6085/40 MHz) - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `6g-29-6095-20` - 29 (6095/20 MHz) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `6g-31-6105-320` - 31 (6105/320 MHz) - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `6g-33-6115-20` - 33 (6115/20 MHz) - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `6g-35-6125-40` - 35 (6125/40 MHz) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `6g-37-6135-20` - 37 (6135/20 MHz) - * `hardwired` - Hardwired + * `6g-39-6145-80` - 39 (6145/80 MHz) - * `other` - Other' - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritablePowerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-41-6155-20` - 41 (6155/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-20p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - description: '* `iec-60320-c6` - C6 + * `6g-43-6165-40` - 43 (6165/40 MHz) - * `iec-60320-c8` - C8 + * `6g-45-6175-20` - 45 (6175/20 MHz) - * `iec-60320-c14` - C14 + * `6g-47-6185-160` - 47 (6185/160 MHz) - * `iec-60320-c16` - C16 + * `6g-49-6195-20` - 49 (6195/20 MHz) - * `iec-60320-c20` - C20 + * `6g-51-6205-40` - 51 (6205/40 MHz) - * `iec-60320-c22` - C22 + * `6g-53-6215-20` - 53 (6215/20 MHz) - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `6g-55-6225-80` - 55 (6225/80 MHz) - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `6g-57-6235-20` - 57 (6235/20 MHz) - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `6g-59-6245-40` - 59 (6245/40 MHz) - * `iec-60309-2p-e-4h` - 2P+E 4H + * `6g-61-6255-20` - 61 (6255/20 MHz) - * `iec-60309-2p-e-6h` - 2P+E 6H + * `6g-65-6275-20` - 65 (6275/20 MHz) - * `iec-60309-2p-e-9h` - 2P+E 9H + * `6g-67-6285-40` - 67 (6285/40 MHz) - * `iec-60309-3p-e-4h` - 3P+E 4H + * `6g-69-6295-20` - 69 (6295/20 MHz) - * `iec-60309-3p-e-6h` - 3P+E 6H + * `6g-71-6305-80` - 71 (6305/80 MHz) - * `iec-60309-3p-e-9h` - 3P+E 9H + * `6g-73-6315-20` - 73 (6315/20 MHz) - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `6g-75-6325-40` - 75 (6325/40 MHz) - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `6g-77-6335-20` - 77 (6335/20 MHz) - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `6g-79-6345-160` - 79 (6345/160 MHz) - * `iec-60906-1` - IEC 60906-1 + * `6g-81-6355-20` - 81 (6355/20 MHz) - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `6g-83-6365-40` - 83 (6365/40 MHz) - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `6g-85-6375-20` - 85 (6375/20 MHz) - * `nema-1-15p` - NEMA 1-15P + * `6g-87-6385-80` - 87 (6385/80 MHz) - * `nema-5-15p` - NEMA 5-15P + * `6g-89-6395-20` - 89 (6395/20 MHz) - * `nema-5-20p` - NEMA 5-20P + * `6g-91-6405-40` - 91 (6405/40 MHz) - * `nema-5-30p` - NEMA 5-30P + * `6g-93-6415-20` - 93 (6415/20 MHz) - * `nema-5-50p` - NEMA 5-50P + * `6g-95-6425-320` - 95 (6425/320 MHz) - * `nema-6-15p` - NEMA 6-15P + * `6g-97-6435-20` - 97 (6435/20 MHz) - * `nema-6-20p` - NEMA 6-20P + * `6g-99-6445-40` - 99 (6445/40 MHz) - * `nema-6-30p` - NEMA 6-30P + * `6g-101-6455-20` - 101 (6455/20 MHz) - * `nema-6-50p` - NEMA 6-50P + * `6g-103-6465-80` - 103 (6465/80 MHz) - * `nema-10-30p` - NEMA 10-30P + * `6g-105-6475-20` - 105 (6475/20 MHz) - * `nema-10-50p` - NEMA 10-50P + * `6g-107-6485-40` - 107 (6485/40 MHz) - * `nema-14-20p` - NEMA 14-20P + * `6g-109-6495-20` - 109 (6495/20 MHz) - * `nema-14-30p` - NEMA 14-30P + * `6g-111-6505-160` - 111 (6505/160 MHz) - * `nema-14-50p` - NEMA 14-50P + * `6g-113-6515-20` - 113 (6515/20 MHz) - * `nema-14-60p` - NEMA 14-60P + * `6g-115-6525-40` - 115 (6525/40 MHz) - * `nema-15-15p` - NEMA 15-15P + * `6g-117-6535-20` - 117 (6535/20 MHz) - * `nema-15-20p` - NEMA 15-20P + * `6g-119-6545-80` - 119 (6545/80 MHz) - * `nema-15-30p` - NEMA 15-30P + * `6g-121-6555-20` - 121 (6555/20 MHz) - * `nema-15-50p` - NEMA 15-50P + * `6g-123-6565-40` - 123 (6565/40 MHz) - * `nema-15-60p` - NEMA 15-60P + * `6g-125-6575-20` - 125 (6575/20 MHz) - * `nema-l1-15p` - NEMA L1-15P + * `6g-129-6595-20` - 129 (6595/20 MHz) - * `nema-l5-15p` - NEMA L5-15P + * `6g-131-6605-40` - 131 (6605/40 MHz) - * `nema-l5-20p` - NEMA L5-20P + * `6g-133-6615-20` - 133 (6615/20 MHz) - * `nema-l5-30p` - NEMA L5-30P + * `6g-135-6625-80` - 135 (6625/80 MHz) - * `nema-l5-50p` - NEMA L5-50P + * `6g-137-6635-20` - 137 (6635/20 MHz) - * `nema-l6-15p` - NEMA L6-15P + * `6g-139-6645-40` - 139 (6645/40 MHz) - * `nema-l6-20p` - NEMA L6-20P + * `6g-141-6655-20` - 141 (6655/20 MHz) - * `nema-l6-30p` - NEMA L6-30P + * `6g-143-6665-160` - 143 (6665/160 MHz) - * `nema-l6-50p` - NEMA L6-50P + * `6g-145-6675-20` - 145 (6675/20 MHz) - * `nema-l10-30p` - NEMA L10-30P + * `6g-147-6685-40` - 147 (6685/40 MHz) - * `nema-l14-20p` - NEMA L14-20P + * `6g-149-6695-20` - 149 (6695/20 MHz) - * `nema-l14-30p` - NEMA L14-30P + * `6g-151-6705-80` - 151 (6705/80 MHz) - * `nema-l14-50p` - NEMA L14-50P + * `6g-153-6715-20` - 153 (6715/20 MHz) - * `nema-l14-60p` - NEMA L14-60P + * `6g-155-6725-40` - 155 (6725/40 MHz) - * `nema-l15-20p` - NEMA L15-20P + * `6g-157-6735-20` - 157 (6735/20 MHz) - * `nema-l15-30p` - NEMA L15-30P + * `6g-159-6745-320` - 159 (6745/320 MHz) - * `nema-l15-50p` - NEMA L15-50P + * `6g-161-6755-20` - 161 (6755/20 MHz) - * `nema-l15-60p` - NEMA L15-60P + * `6g-163-6765-40` - 163 (6765/40 MHz) - * `nema-l21-20p` - NEMA L21-20P + * `6g-165-6775-20` - 165 (6775/20 MHz) - * `nema-l21-30p` - NEMA L21-30P + * `6g-167-6785-80` - 167 (6785/80 MHz) - * `nema-l22-20p` - NEMA L22-20P + * `6g-169-6795-20` - 169 (6795/20 MHz) - * `nema-l22-30p` - NEMA L22-30P + * `6g-171-6805-40` - 171 (6805/40 MHz) - * `cs6361c` - CS6361C + * `6g-173-6815-20` - 173 (6815/20 MHz) - * `cs6365c` - CS6365C + * `6g-175-6825-160` - 175 (6825/160 MHz) - * `cs8165c` - CS8165C + * `6g-177-6835-20` - 177 (6835/20 MHz) - * `cs8265c` - CS8265C + * `6g-179-6845-40` - 179 (6845/40 MHz) - * `cs8365c` - CS8365C + * `6g-181-6855-20` - 181 (6855/20 MHz) - * `cs8465c` - CS8465C + * `6g-183-6865-80` - 183 (6865/80 MHz) - * `ita-c` - ITA Type C (CEE 7/16) + * `6g-185-6875-20` - 185 (6875/20 MHz) - * `ita-e` - ITA Type E (CEE 7/6) + * `6g-187-6885-40` - 187 (6885/40 MHz) - * `ita-f` - ITA Type F (CEE 7/4) + * `6g-189-6895-20` - 189 (6895/20 MHz) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `6g-193-6915-20` - 193 (6915/20 MHz) - * `ita-g` - ITA Type G (BS 1363) + * `6g-195-6925-40` - 195 (6925/40 MHz) - * `ita-h` - ITA Type H + * `6g-197-6935-20` - 197 (6935/20 MHz) - * `ita-i` - ITA Type I + * `6g-199-6945-80` - 199 (6945/80 MHz) - * `ita-j` - ITA Type J + * `6g-201-6955-20` - 201 (6955/20 MHz) - * `ita-k` - ITA Type K + * `6g-203-6965-40` - 203 (6965/40 MHz) - * `ita-l` - ITA Type L (CEI 23-50) + * `6g-205-6975-20` - 205 (6975/20 MHz) - * `ita-m` - ITA Type M (BS 546) + * `6g-207-6985-160` - 207 (6985/160 MHz) - * `ita-n` - ITA Type N + * `6g-209-6995-20` - 209 (6995/20 MHz) - * `ita-o` - ITA Type O + * `6g-211-7005-40` - 211 (7005/40 MHz) - * `usb-a` - USB Type A + * `6g-213-7015-20` - 213 (7015/20 MHz) - * `usb-b` - USB Type B + * `6g-215-7025-80` - 215 (7025/80 MHz) - * `usb-c` - USB Type C + * `6g-217-7035-20` - 217 (7035/20 MHz) - * `usb-mini-a` - USB Mini A + * `6g-219-7045-40` - 219 (7045/40 MHz) - * `usb-mini-b` - USB Mini B + * `6g-221-7055-20` - 221 (7055/20 MHz) - * `usb-micro-a` - USB Micro A + * `6g-225-7075-20` - 225 (7075/20 MHz) - * `usb-micro-b` - USB Micro B + * `6g-227-7085-40` - 227 (7085/40 MHz) - * `usb-micro-ab` - USB Micro AB + * `6g-229-7095-20` - 229 (7095/20 MHz) - * `usb-3-b` - USB 3.0 Type B + * `6g-233-7115-20` - 233 (7115/20 MHz) - * `usb-3-micro-b` - USB 3.0 Micro B + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) - * `dc-terminal` - DC Terminal + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) - * `saf-d-grid` - Saf-D-Grid + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) - * `hardwired` - Hardwired + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) - * `other` - Other' - x-spec-enum-id: f1bd4aedff3a591b - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - PatchedWritablePrefixRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - vlan: - allOf: - - $ref: '#/components/schemas/BriefVLANRequest' - nullable: true - status: - enum: - - container - - active - - reserved - - deprecated - type: string - x-spec-enum-id: d38bee5f512701d9 - description: 'Operational status of this prefix + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) - * `container` - Container + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) - * `active` - Active + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) - * `reserved` - Reserved + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/BriefRoleRequest' - nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - mark_utilized: - type: boolean - description: Treat as fully utilized - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - facility_id: - type: string - nullable: true - maxLength: 50 - site: - $ref: '#/components/schemas/BriefSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/BriefLocationRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - status: + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + poe_mode: enum: - - reserved - - available - - planned - - active - - deprecated + - pd + - pse + - '' type: string - description: '* `reserved` - Reserved - - * `available` - Available - - * `planned` - Planned - - * `active` - Active + description: '* `pd` - PD - * `deprecated` - Deprecated' - x-spec-enum-id: 0c556d55dc1baa13 - role: - allOf: - - $ref: '#/components/schemas/BriefRackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - rack_type: - allOf: - - $ref: '#/components/schemas/BriefRackTypeRequest' - nullable: true - form_factor: + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair - '' type: string - description: '* `2-post-frame` - 2-post frame - - * `4-post-frame` - 4-post frame - - * `4-post-cabinet` - 4-post cabinet - - * `wall-frame` - Wall-mounted frame - - * `wall-frame-vertical` - Wall-mounted frame (vertical) + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `wall-cabinet` - Wall-mounted cabinet + * `type2-ieee802.3at` - 802.3at (Type 2) - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: 'Rail-to-rail width + * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `10` - 10 inches + * `passive-24v-2pair` - Passive 24V (2-pair) - * `19` - 19 inches + * `passive-24v-4pair` - Passive 24V (4-pair) - * `21` - 21 inches + * `passive-48v-2pair` - Passive 48V (2-pair) - * `23` - 23 inches' - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - weight: + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_channel_frequency: type: number format: double - maximum: 1000000 - minimum: -1000000 + maximum: 100000 + minimum: -100000 exclusiveMaximum: true exclusiveMinimum: true nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 + title: Channel frequency (MHz) + description: Populated by selected channel (if set) + rf_channel_width: + type: number + format: double + maximum: 10000 + minimum: -10000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: + title: Channel width (MHz) + description: Populated by selected channel (if set) + tx_power: type: integer - maximum: 32767 + maximum: 127 minimum: 0 nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 + title: Transmit power (dBm) + untagged_vlan: + allOf: + - $ref: '#/components/schemas/VLANRequest' nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters - - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 + tagged_vlans: + type: array + items: + type: integer + mark_connected: + type: boolean + description: Treat as if a cable is connected + wireless_lans: + type: array + items: + type: integer + vrf: + allOf: + - $ref: '#/components/schemas/VRFRequest' nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - airflow: - enum: - - front-to-rear - - rear-to-front - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front' - x-spec-enum-id: a784734d07ef1b3c - description: - type: string - maxLength: 200 - comments: - type: string tags: type: array items: @@ -135074,977 +122929,502 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableRackTypeRequest: + PatchedWritableInterfaceTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: + device_type: + allOf: + - $ref: '#/components/schemas/DeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/ModuleTypeRequest' + nullable: true + name: type: string minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: type: string - maxLength: 200 - form_factor: + description: Physical label + maxLength: 64 + type: enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.15.1 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - other type: string - description: '* `2-post-frame` - 2-post frame + description: '* `virtual` - Virtual - * `4-post-frame` - 4-post frame + * `bridge` - Bridge - * `4-post-cabinet` - 4-post cabinet + * `lag` - Link Aggregation Group (LAG) - * `wall-frame` - Wall-mounted frame + * `100base-fx` - 100BASE-FX (10/100ME FIBER) - * `wall-frame-vertical` - Wall-mounted frame (vertical) + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - * `wall-cabinet` - Wall-mounted cabinet + * `100base-tx` - 100BASE-TX (10/100ME) - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: 'Rail-to-rail width + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + * `1000base-t` - 1000BASE-T (1GE) - * `10` - 10 inches + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - * `19` - 19 inches + * `5gbase-t` - 5GBASE-T (5GE) - * `21` - 21 inches + * `10gbase-t` - 10GBASE-T (10GE) - * `23` - 23 inches' - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters + * `10gbase-cx4` - 10GBASE-CX4 (10GE) - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `1000base-x-gbic` - GBIC (1GE) - * `g` - Grams + * `1000base-x-sfp` - SFP (1GE) - * `lb` - Pounds + * `10gbase-x-sfpp` - SFP+ (10GE) - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/BriefModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - type: string - description: '* `8p8c` - 8P8C + * `10gbase-x-xfp` - XFP (10GE) - * `8p6c` - 8P6C + * `10gbase-x-xenpak` - XENPAK (10GE) - * `8p4c` - 8P4C + * `10gbase-x-x2` - X2 (10GE) - * `8p2c` - 8P2C + * `25gbase-x-sfp28` - SFP28 (25GE) - * `6p6c` - 6P6C + * `50gbase-x-sfp56` - SFP56 (50GE) - * `6p4c` - 6P4C + * `40gbase-x-qsfpp` - QSFP+ (40GE) - * `6p2c` - 6P2C + * `50gbase-x-sfp28` - QSFP28 (50GE) - * `4p4c` - 4P4C + * `100gbase-x-cfp` - CFP (100GE) - * `4p2c` - 4P2C + * `100gbase-x-cfp2` - CFP2 (100GE) - * `gg45` - GG45 + * `200gbase-x-cfp2` - CFP2 (200GE) - * `tera-4p` - TERA 4P + * `400gbase-x-cfp2` - CFP2 (400GE) - * `tera-2p` - TERA 2P + * `100gbase-x-cfp4` - CFP4 (100GE) - * `tera-1p` - TERA 1P + * `100gbase-x-cxp` - CXP (100GE) - * `110-punch` - 110 Punch + * `100gbase-x-cpak` - Cisco CPAK (100GE) - * `bnc` - BNC + * `100gbase-x-dsfp` - DSFP (100GE) - * `f` - F Connector + * `100gbase-x-sfpdd` - SFP-DD (100GE) - * `n` - N Connector + * `100gbase-x-qsfp28` - QSFP28 (100GE) - * `mrj21` - MRJ21 + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) - * `fc` - FC + * `200gbase-x-qsfp56` - QSFP56 (200GE) - * `lc` - LC + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) - * `lc-pc` - LC/PC + * `400gbase-x-qsfp112` - QSFP112 (400GE) - * `lc-upc` - LC/UPC + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) - * `lc-apc` - LC/APC + * `400gbase-x-osfp` - OSFP (400GE) - * `lsh` - LSH + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) - * `lsh-pc` - LSH/PC + * `400gbase-x-cdfp` - CDFP (400GE) - * `lsh-upc` - LSH/UPC + * `400gbase-x-cfp8` - CPF8 (400GE) - * `lsh-apc` - LSH/APC + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) - * `lx5` - LX.5 + * `800gbase-x-osfp` - OSFP (800GE) - * `lx5-pc` - LX.5/PC + * `1000base-kx` - 1000BASE-KX (1GE) - * `lx5-upc` - LX.5/UPC + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) - * `lx5-apc` - LX.5/APC + * `5gbase-kr` - 5GBASE-KR (5GE) - * `mpo` - MPO + * `10gbase-kr` - 10GBASE-KR (10GE) - * `mtrj` - MTRJ + * `10gbase-kx4` - 10GBASE-KX4 (10GE) - * `sc` - SC + * `25gbase-kr` - 25GBASE-KR (25GE) - * `sc-pc` - SC/PC + * `40gbase-kr4` - 40GBASE-KR4 (40GE) - * `sc-upc` - SC/UPC + * `50gbase-kr` - 50GBASE-KR (50GE) - * `sc-apc` - SC/APC + * `100gbase-kp4` - 100GBASE-KP4 (100GE) - * `st` - ST + * `100gbase-kr2` - 100GBASE-KR2 (100GE) - * `cs` - CS + * `100gbase-kr4` - 100GBASE-KR4 (100GE) - * `sn` - SN + * `ieee802.11a` - IEEE 802.11a - * `sma-905` - SMA 905 + * `ieee802.11g` - IEEE 802.11b/g - * `sma-906` - SMA 906 + * `ieee802.11n` - IEEE 802.11n - * `urm-p2` - URM-P2 + * `ieee802.11ac` - IEEE 802.11ac - * `urm-p4` - URM-P4 + * `ieee802.11ad` - IEEE 802.11ad - * `urm-p8` - URM-P8 + * `ieee802.11ax` - IEEE 802.11ax - * `splice` - Splice + * `ieee802.11ay` - IEEE 802.11ay - * `usb-a` - USB Type A + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) - * `usb-b` - USB Type B + * `other-wireless` - Other (Wireless) - * `usb-c` - USB Type C + * `gsm` - GSM - * `usb-mini-a` - USB Mini A + * `cdma` - CDMA - * `usb-mini-b` - USB Mini B + * `lte` - LTE - * `usb-micro-a` - USB Micro A + * `4g` - 4G - * `usb-micro-b` - USB Micro B + * `5g` - 5G - * `usb-micro-ab` - USB Micro AB + * `sonet-oc3` - OC-3/STM-1 - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: Number of front ports which may be mapped - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `sonet-oc12` - OC-12/STM-4 - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - type: string - description: '* `8p8c` - 8P8C + * `sonet-oc48` - OC-48/STM-16 - * `8p6c` - 8P6C + * `sonet-oc192` - OC-192/STM-64 - * `8p4c` - 8P4C + * `sonet-oc768` - OC-768/STM-256 - * `8p2c` - 8P2C + * `sonet-oc1920` - OC-1920/STM-640 - * `6p6c` - 6P6C + * `sonet-oc3840` - OC-3840/STM-1234 - * `6p4c` - 6P4C + * `1gfc-sfp` - SFP (1GFC) - * `6p2c` - 6P2C + * `2gfc-sfp` - SFP (2GFC) - * `4p4c` - 4P4C + * `4gfc-sfp` - SFP (4GFC) - * `4p2c` - 4P2C + * `8gfc-sfpp` - SFP+ (8GFC) - * `gg45` - GG45 + * `16gfc-sfpp` - SFP+ (16GFC) - * `tera-4p` - TERA 4P + * `32gfc-sfp28` - SFP28 (32GFC) - * `tera-2p` - TERA 2P + * `32gfc-sfpp` - SFP+ (32GFC) - * `tera-1p` - TERA 1P + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `110-punch` - 110 Punch + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `bnc` - BNC + * `64gfc-sfpp` - SFP+ (64GFC) - * `f` - F Connector + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `n` - N Connector + * `infiniband-sdr` - SDR (2 Gbps) - * `mrj21` - MRJ21 + * `infiniband-ddr` - DDR (4 Gbps) - * `fc` - FC + * `infiniband-qdr` - QDR (8 Gbps) - * `lc` - LC + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `lc-pc` - LC/PC + * `infiniband-fdr` - FDR (13.5 Gbps) - * `lc-upc` - LC/UPC + * `infiniband-edr` - EDR (25 Gbps) - * `lc-apc` - LC/APC + * `infiniband-hdr` - HDR (50 Gbps) - * `lsh` - LSH + * `infiniband-ndr` - NDR (100 Gbps) - * `lsh-pc` - LSH/PC + * `infiniband-xdr` - XDR (250 Gbps) - * `lsh-upc` - LSH/UPC + * `t1` - T1 (1.544 Mbps) - * `lsh-apc` - LSH/APC + * `e1` - E1 (2.048 Mbps) - * `lx5` - LX.5 + * `t3` - T3 (45 Mbps) - * `lx5-pc` - LX.5/PC + * `e3` - E3 (34 Mbps) - * `lx5-upc` - LX.5/UPC + * `xdsl` - xDSL - * `lx5-apc` - LX.5/APC + * `docsis` - DOCSIS - * `mpo` - MPO + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `mtrj` - MTRJ + * `epon` - EPON (1 Gbps) - * `sc` - SC + * `10g-epon` - 10G-EPON (10 Gbps) - * `sc-pc` - SC/PC + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `sc-upc` - SC/UPC + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `sc-apc` - SC/APC + * `xgs-pon` - XGS-PON (10 Gbps) - * `st` - ST + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `cs` - CS + * `25g-pon` - 25G-PON (25 Gbps) - * `sn` - SN + * `50g-pon` - 50G-PON (50 Gbps) - * `sma-905` - SMA 905 + * `cisco-stackwise` - Cisco StackWise - * `sma-906` - SMA 906 + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `urm-p2` - URM-P2 + * `cisco-flexstack` - Cisco FlexStack - * `urm-p4` - URM-P4 + * `cisco-flexstack-plus` - Cisco FlexStack Plus - * `urm-p8` - URM-P8 + * `cisco-stackwise-80` - Cisco StackWise-80 - * `splice` - Splice + * `cisco-stackwise-160` - Cisco StackWise-160 - * `usb-a` - USB Type A + * `cisco-stackwise-320` - Cisco StackWise-320 - * `usb-b` - USB Type B + * `cisco-stackwise-480` - Cisco StackWise-480 - * `usb-c` - USB Type C + * `cisco-stackwise-1t` - Cisco StackWise-1T - * `usb-mini-a` - USB Mini A + * `juniper-vcp` - Juniper VCP - * `usb-mini-b` - USB Mini B + * `extreme-summitstack` - Extreme SummitStack - * `usb-micro-a` - USB Micro A + * `extreme-summitstack-128` - Extreme SummitStack-128 - * `usb-micro-b` - USB Micro B + * `extreme-summitstack-256` - Extreme SummitStack-256 - * `usb-micro-ab` - USB Micro AB + * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 + x-spec-enum-id: b9a351ea129ed754 + enabled: + type: boolean + mgmt_only: + type: boolean + title: Management only description: type: string maxLength: 200 - PatchedWritableRegionRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: + bridge: type: integer nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/BriefVirtualMachineRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - protocol: + title: Bridge interface + poe_mode: enum: - - tcp - - udp - - sctp + - pd + - pse + - '' type: string - description: '* `tcp` - TCP - - * `udp` - UDP + description: '* `pd` - PD - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - ipaddresses: - type: array - items: - type: integer - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceTemplateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - protocol: + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: enum: - - tcp - - udp - - sctp + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - '' type: string - description: '* `tcp` - TCP - - * `udp` - UDP + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the site - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned + * `type2-ieee802.3at` - 802.3at (Type 2) - * `staging` - Staging + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `active` - Active + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `decommissioning` - Decommissioning + * `passive-24v-2pair` - Passive 24V (2-pair) - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - region: - allOf: - - $ref: '#/components/schemas/BriefRegionRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/BriefSiteGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - time_zone: - type: string - nullable: true - minLength: 1 - description: - type: string - maxLength: 200 - physical_address: - type: string - description: Physical location of the building - maxLength: 200 - shipping_address: - type: string - description: If different from the physical address - maxLength: 200 - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTenantGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - status: - enum: - - planned - - active - - disabled - type: string - description: '* `planned` - Planned + * `passive-24v-4pair` - Passive 24V (4-pair) - * `active` - Active + * `passive-48v-2pair` - Passive 48V (2-pair) - * `disabled` - Disabled' - x-spec-enum-id: 0d65f7912cba74aa - group: - allOf: - - $ref: '#/components/schemas/BriefTunnelGroupRequest' - nullable: true - encapsulation: + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_role: enum: - - ipsec-transport - - ipsec-tunnel - - ip-ip - - gre + - ap + - station + - '' type: string - description: '* `ipsec-transport` - IPsec - Transport - - * `ipsec-tunnel` - IPsec - Tunnel - - * `ip-ip` - IP-in-IP + description: '* `ap` - Access point - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 - ipsec_profile: - allOf: - - $ref: '#/components/schemas/BriefIPSecProfileRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - tunnel_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelTerminationRequest: + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + PatchedWritableJournalEntryRequest: type: object description: Adds support for custom fields and tags. properties: - tunnel: - $ref: '#/components/schemas/BriefTunnelRequest' - role: - enum: - - peer - - hub - - spoke - type: string - description: '* `peer` - Peer - - * `hub` - Hub - - * `spoke` - Spoke' - x-spec-enum-id: 52225cd60b867572 - termination_type: + assigned_object_type: type: string - termination_id: + assigned_object_id: type: integer maximum: 9223372036854775807 minimum: 0 format: int64 - nullable: true - outside_ip: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/BriefVLANGroupRequest' - nullable: true - vid: + created_by: type: integer - maximum: 4094 - minimum: 1 - title: VLAN ID - description: Numeric VLAN ID (1-4094) - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - status: + kind: enum: - - active - - reserved - - deprecated + - info + - success + - warning + - danger type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this VLAN - + description: '* `info` - Info - * `active` - Active + * `success` - Success - * `reserved` - Reserved + * `warning` - Warning - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/BriefRoleRequest' - nullable: true - description: - type: string - maxLength: 200 + * `danger` - Danger' + x-spec-enum-id: a21af280f632fa34 comments: type: string + minLength: 1 tags: type: array items: @@ -136052,92 +123432,81 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableVMInterfaceRequest: + PatchedWritableL2VPNRequest: type: object description: Adds support for custom fields and tags. properties: - virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachineRequest' - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - mtu: + identifier: type: integer - maximum: 65536 - minimum: 1 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 nullable: true - mac_address: + name: type: string - nullable: true minLength: 1 - description: + maxLength: 100 + slug: type: string - maxLength: 200 - mode: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: enum: - - access - - tagged - - tagged-all - - '' + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy + description: '* `vpws` - VPWS + * `vpls` - VPLS - * `access` - Access + * `vxlan` - VXLAN - * `tagged` - Tagged + * `vxlan-evpn` - VXLAN-EVPN - * `tagged-all` - Tagged (All)' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/BriefVLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/BriefVRFRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualChassisRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - type: integer - nullable: true + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer description: type: string maxLength: 200 comments: type: string + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true tags: type: array items: @@ -136145,50 +123514,53 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableVirtualDeviceContextRequest: + PatchedWritableLocationRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: name: type: string minLength: 1 - maxLength: 64 - device: - $ref: '#/components/schemas/BriefDeviceRequest' - identifier: + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/SiteRequest' + parent: type: integer - maximum: 32767 - minimum: 0 - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: - - active - planned - - offline + - staging + - active + - decommissioning + - retired type: string - description: '* `active` - Active + description: '* `planned` - Planned - * `planned` - Planned + * `staging` - Staging - * `offline` - Offline' - x-spec-enum-id: ee1ef02def7a91ab + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -136196,14 +123568,16 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableVirtualMachineWithConfigContextRequest: + PatchedWritableModuleRequest: type: object description: Adds support for custom fields and tags. properties: - name: - type: string - minLength: 1 - maxLength: 64 + device: + $ref: '#/components/schemas/DeviceRequest' + module_bay: + type: integer + module_type: + $ref: '#/components/schemas/ModuleTypeRequest' status: enum: - offline @@ -136225,74 +123599,20 @@ components: * `decommissioning` - Decommissioning' x-spec-enum-id: 2217e87d0c3efdda - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/BriefClusterRequest' - nullable: true - device: - allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' - nullable: true serial: type: string title: Serial number maxLength: 50 - role: - allOf: - - $ref: '#/components/schemas/BriefDeviceRoleRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' - nullable: true - vcpus: - type: number - format: double - maximum: 10000 - minimum: 0.01 - exclusiveMaximum: true - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 + asset_tag: + type: string nullable: true - title: Disk (MB) + description: A unique tag used to identify this device + maxLength: 50 description: type: string maxLength: 200 comments: type: string - config_template: - allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' - nullable: true - local_context_data: - nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context tags: type: array items: @@ -136300,25 +123620,49 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableWirelessLANGroupRequest: + PatchedWritableModuleTypeRequest: type: object - description: Extends PrimaryModelSerializer to include MPTT support. + description: Adds support for custom fields and tags. properties: - name: + manufacturer: + $ref: '#/components/schemas/ManufacturerRequest' + model: type: string minLength: 1 maxLength: 100 - slug: + part_number: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer + description: Discrete part number (optional) + maxLength: 50 + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -136326,79 +123670,85 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableWirelessLANRequest: + PatchedWritablePowerFeedRequest: type: object description: Adds support for custom fields and tags. properties: - ssid: - type: string - minLength: 1 - maxLength: 32 - description: - type: string - maxLength: 200 - group: + power_panel: + $ref: '#/components/schemas/PowerPanelRequest' + rack: allOf: - - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' + - $ref: '#/components/schemas/RackRequest' nullable: true + name: + type: string + minLength: 1 + maxLength: 100 status: enum: + - offline - active - - reserved - - disabled - - deprecated + - planned + - failed type: string - description: '* `active` - Active + description: '* `offline` - Offline - * `reserved` - Reserved + * `active` - Active - * `disabled` - Disabled + * `planned` - Planned - * `deprecated` - Deprecated' - x-spec-enum-id: 412ebdca597f609e - vlan: - allOf: - - $ref: '#/components/schemas/BriefVLANRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - auth_type: + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' + - primary + - redundant type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) + description: '* `primary` - Primary - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: enum: - - auto - - tkip - - aes - - '' + - ac + - dc type: string - description: '* `auto` - Auto + description: '* `ac` - AC - * `tkip` - TKIP + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected + description: type: string - title: Pre-shared key - maxLength: 64 + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true comments: type: string tags: @@ -136408,97 +123758,345 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableWirelessLinkRequest: + PatchedWritablePowerOutletRequest: type: object description: Adds support for custom fields and tags. properties: - interface_a: - $ref: '#/components/schemas/BriefInterfaceRequest' - interface_b: - $ref: '#/components/schemas/BriefInterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: + device: + $ref: '#/components/schemas/DeviceRequest' + module: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true - auth_type: + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: enum: - - open - - wep - - wpa-personal - - wpa-enterprise + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other - '' type: string - description: '* `open` - Open + x-spec-enum-id: 2ff919f516566857 + description: 'Physical port type - * `wep` - WEP - * `wpa-personal` - WPA Personal (PSK) + * `iec-60320-c5` - C5 - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `iec-60320-c7` - C7 - * `tkip` - TKIP + * `iec-60320-c13` - C13 - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - distance: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + power_port: + allOf: + - $ref: '#/components/schemas/PowerPortRequest' nullable: true - distance_unit: + feed_leg: enum: - - km - - m - - mi - - ft + - A + - B + - C - '' type: string - description: '* `km` - Kilometers + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `m` - Meters - * `mi` - Miles + * `A` - A + + * `B` - B - * `ft` - Feet' - x-spec-enum-id: 53542e7902f946af + * `C` - C' description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -136506,939 +124104,725 @@ components: custom_fields: type: object additionalProperties: {} - Platform: + PatchedWritablePowerOutletTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: + device_type: allOf: - - $ref: '#/components/schemas/BriefManufacturer' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true - config_template: + module_type: allOf: - - $ref: '#/components/schemas/BriefConfigTemplate' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true - device_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - created - - display - - display_url - - id - - last_updated - - name - - slug - - url - PlatformRequest: - type: object - description: Adds support for custom fields and tags. - properties: name: type: string minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/BriefManufacturerRequest' - nullable: true - config_template: - allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - name - - slug - PowerFeed: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: type: string - readOnly: true - power_panel: - $ref: '#/components/schemas/BriefPowerPanel' - rack: - allOf: - - $ref: '#/components/schemas/BriefRack' - nullable: true - name: + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' type: string - maxLength: 100 - status: - type: object - properties: - value: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline + description: '* `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H - * `active` - Active + * `ita-i` - ITA Type I - * `planned` - Planned + * `ita-j` - ITA Type J - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - label: - type: string - enum: - - Offline - - Active - - Planned - - Failed - type: - type: object - properties: - value: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary + * `ita-k` - ITA Type K - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - label: - type: string - enum: - - Primary - - Redundant - supply: - type: object - properties: - value: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `ita-l` - ITA Type L (CEI 23-50) - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - label: - type: string - enum: - - AC - - DC - phase: - type: object - properties: - value: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase + * `ita-m` - ITA Type M (BS 546) - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - label: - type: string - enum: - - Single phase - - Three-phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/BriefCable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - nullable: true - connected_endpoints: - type: array - items: {} - nullable: true - readOnly: true - connected_endpoints_type: - type: string - readOnly: true - nullable: true - connected_endpoints_reachable: - type: boolean - readOnly: true - description: - type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - cable_end - - connected_endpoints - - connected_endpoints_reachable - - connected_endpoints_type - - created - - display - - display_url - - id - - last_updated - - link_peers - - link_peers_type - - name - - power_panel - - url - PowerFeedRequest: - type: object - description: Adds support for custom fields and tags. - properties: - power_panel: - $ref: '#/components/schemas/BriefPowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/BriefRackRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - status: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline + * `ita-n` - ITA Type N - * `active` - Active + * `ita-o` - ITA Type O - * `planned` - Planned + * `ita-multistandard` - ITA Multistandard - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary + * `usb-a` - USB Type A - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `usb-micro-b` - USB Micro B - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: 2ff919f516566857 + power_port: + allOf: + - $ref: '#/components/schemas/PowerPortTemplateRequest' + nullable: true + feed_leg: enum: - - single-phase - - three-phase + - A + - B + - C + - '' type: string - description: '* `single-phase` - Single phase + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected + + * `A` - A + + * `B` - B + + * `C` - C' description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - name - - power_panel - PowerOutlet: + PatchedWritablePowerPortRequest: type: object description: Adds support for custom fields and tags. properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string + minLength: 1 maxLength: 64 label: type: string description: Physical label maxLength: 64 type: - type: object - properties: - value: - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-20r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - description: '* `iec-60320-c5` - C5 + enum: + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + x-spec-enum-id: 6d680dea031864ae + description: 'Physical port type - * `iec-60320-c7` - C7 - * `iec-60320-c13` - C13 + * `iec-60320-c6` - C6 - * `iec-60320-c15` - C15 + * `iec-60320-c8` - C8 - * `iec-60320-c19` - C19 + * `iec-60320-c14` - C14 - * `iec-60320-c21` - C21 + * `iec-60320-c16` - C16 - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `iec-60320-c20` - C20 - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `iec-60320-c22` - C22 - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `iec-60309-2p-e-4h` - 2P+E 4H + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `iec-60309-2p-e-9h` - 2P+E 9H + * `iec-60309-2p-e-4h` - 2P+E 4H - * `iec-60309-3p-e-4h` - 3P+E 4H + * `iec-60309-2p-e-6h` - 2P+E 6H - * `iec-60309-3p-e-6h` - 3P+E 6H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `iec-60309-3p-e-9h` - 3P+E 9H + * `iec-60309-3p-e-4h` - 3P+E 4H - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `iec-60309-3p-e-6h` - 3P+E 6H - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `iec-60309-3p-e-9h` - 3P+E 9H - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `iec-60906-1` - IEC 60906-1 + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `iec-60906-1` - IEC 60906-1 - * `nema-1-15r` - NEMA 1-15R + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `nema-5-15r` - NEMA 5-15R + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-5-20r` - NEMA 5-20R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-20p` - NEMA 5-20P - * `nema-6-15r` - NEMA 6-15R + * `nema-5-30p` - NEMA 5-30P - * `nema-6-20r` - NEMA 6-20R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-20p` - NEMA 6-20P - * `nema-10-30r` - NEMA 10-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-10-30p` - NEMA 10-30P - * `nema-14-30r` - NEMA 14-30R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-30p` - NEMA 14-30P - * `nema-15-15r` - NEMA 15-15R + * `nema-14-50p` - NEMA 14-50P - * `nema-15-20r` - NEMA 15-20R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-30p` - NEMA 15-30P - * `nema-l1-15r` - NEMA L1-15R + * `nema-15-50p` - NEMA 15-50P - * `nema-l5-15r` - NEMA L5-15R + * `nema-15-60p` - NEMA 15-60P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l22-20r` - NEMA L22-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l21-30p` - NEMA L21-30P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) - * `ita-g` - ITA Type G (BS 1363) + * `ita-e` - ITA Type E (CEE 7/6) - * `ita-h` - ITA Type H + * `ita-f` - ITA Type F (CEE 7/4) - * `ita-i` - ITA Type I + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `ita-j` - ITA Type J + * `ita-g` - ITA Type G (BS 1363) - * `ita-k` - ITA Type K + * `ita-h` - ITA Type H - * `ita-l` - ITA Type L (CEI 23-50) + * `ita-i` - ITA Type I - * `ita-m` - ITA Type M (BS 546) + * `ita-j` - ITA Type J - * `ita-n` - ITA Type N + * `ita-k` - ITA Type K - * `ita-o` - ITA Type O + * `ita-l` - ITA Type L (CEI 23-50) - * `ita-multistandard` - ITA Multistandard + * `ita-m` - ITA Type M (BS 546) - * `usb-a` - USB Type A + * `ita-n` - ITA Type N - * `usb-micro-b` - USB Micro B + * `ita-o` - ITA Type O - * `usb-c` - USB Type C + * `usb-a` - USB Type A - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `usb-b` - USB Type B - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `usb-c` - USB Type C - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `usb-mini-a` - USB Mini A - * `dc-terminal` - DC Terminal + * `usb-mini-b` - USB Mini B - * `hdot-cx` - HDOT Cx + * `usb-micro-a` - USB Micro A - * `saf-d-grid` - Saf-D-Grid + * `usb-micro-b` - USB Micro B - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `usb-micro-ab` - USB Micro AB - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `usb-3-b` - USB 3.0 Type B - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `usb-3-micro-b` - USB 3.0 Micro B - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `hardwired` - Hardwired + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `other` - Other' - x-spec-enum-id: 83934a5ad90d6138 - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - IEC 60906-1 - - 2P+T 10A (NBR 14136) - - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-20R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) - - ITA Type G (BS 1363) - - ITA Type H - - ITA Type I - - ITA Type J - - ITA Type K - - ITA Type L (CEI 23-50) - - ITA Type M (BS 546) - - ITA Type N - - ITA Type O - - ITA Multistandard - - USB Type A - - USB Micro B - - USB Type C - - Molex Micro-Fit 1x2 - - Molex Micro-Fit 2x2 - - Molex Micro-Fit 2x4 - - DC Terminal - - HDOT Cx - - Saf-D-Grid - - Neutrik powerCON (20A) - - Neutrik powerCON (32A) - - Neutrik powerCON TRUE1 - - Neutrik powerCON TRUE1 TOP - - Ubiquiti SmartPower - - Hardwired - - Other - nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/BriefPowerPort' - nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A + * `dc-terminal` - DC Terminal - * `B` - B + * `saf-d-grid` - Saf-D-Grid - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 mark_connected: type: boolean description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/BriefCable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - nullable: true - connected_endpoints: - type: array - items: {} - nullable: true - readOnly: true - connected_endpoints_type: - type: string - readOnly: true - nullable: true - connected_endpoints_reachable: - type: boolean - readOnly: true tags: type: array items: - $ref: '#/components/schemas/NestedTag' + $ref: '#/components/schemas/NestedTagRequest' custom_fields: type: object additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - cable_end - - connected_endpoints - - connected_endpoints_reachable - - connected_endpoints_type - - created - - device - - display - - display_url - - id - - last_updated - - link_peers - - link_peers_type - - name - - url - PowerOutletRequest: + PatchedWritablePowerPortTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/BriefDeviceRequest' - module: + device_type: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -137446,12 +124830,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -137467,56 +124851,57 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-20r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -137526,18 +124911,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -137545,17 +124935,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -137587,105 +124977,107 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30p` - NEMA L22-30P - * `nema-l22-30r` - NEMA L22-30R + * `cs6361c` - CS6361C - * `CS6360C` - CS6360C + * `cs6365c` - CS6365C - * `CS6364C` - CS6364C + * `cs8165c` - CS8165C - * `CS8164C` - CS8164C + * `cs8265c` - CS8265C - * `CS8264C` - CS8264C + * `cs8365c` - CS8365C - * `CS8364C` - CS8364C + * `cs8465c` - CS8465C - * `CS8464C` - CS8464C + * `ita-c` - ITA Type C (CEE 7/16) - * `ita-e` - ITA Type E (CEE 7/5) + * `ita-e` - ITA Type E (CEE 7/6) - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -137705,14 +125097,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -137721,13 +125125,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -137738,32 +125140,79 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 6d680dea031864ae + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - power_port: + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + PatchedWritablePrefixRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + site: allOf: - - $ref: '#/components/schemas/BriefPowerPortRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true - feed_leg: + vrf: + allOf: + - $ref: '#/components/schemas/VRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + vlan: + allOf: + - $ref: '#/components/schemas/VLANRequest' + nullable: true + status: enum: - - A - - B - - C - - '' + - container + - active + - reserved + - deprecated type: string - description: '* `A` - A + x-spec-enum-id: d38bee5f512701d9 + description: 'Operational status of this prefix - * `B` - B - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/RoleRequest' nullable: true + is_pool: + type: boolean + title: Is a pool + description: All IP addresses within this prefix are considered usable + mark_utilized: + type: boolean + description: Treat as fully utilized description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected + comments: + type: string tags: type: array items: @@ -137771,834 +125220,1458 @@ components: custom_fields: type: object additionalProperties: {} - required: - - device - - name - PowerOutletTemplate: + PatchedWritableRackRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - id: - type: integer - readOnly: true - url: + name: type: string - format: uri - readOnly: true - display: + minLength: 1 + maxLength: 100 + facility_id: type: string - readOnly: true - device_type: + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/SiteRequest' + location: allOf: - - $ref: '#/components/schemas/BriefDeviceType' + - $ref: '#/components/schemas/LocationRequest' nullable: true - module_type: + tenant: allOf: - - $ref: '#/components/schemas/BriefModuleType' + - $ref: '#/components/schemas/TenantRequest' nullable: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + status: + enum: + - reserved + - available + - planned + - active + - deprecated type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-20r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - description: '* `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R + description: '* `reserved` - Reserved - * `nema-l5-30r` - NEMA L5-30R + * `available` - Available - * `nema-l5-50r` - NEMA L5-50R + * `planned` - Planned - * `nema-l6-15r` - NEMA L6-15R + * `active` - Active - * `nema-l6-20r` - NEMA L6-20R + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/RackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + type: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame - * `nema-l6-30r` - NEMA L6-30R + * `4-post-frame` - 4-post frame - * `nema-l6-50r` - NEMA L6-50R + * `4-post-cabinet` - 4-post cabinet - * `nema-l10-30r` - NEMA L10-30R + * `wall-frame` - Wall-mounted frame - * `nema-l14-20r` - NEMA L14-20R + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `nema-l14-30r` - NEMA L14-30R + * `wall-cabinet` - Wall-mounted cabinet - * `nema-l14-50r` - NEMA L14-50R + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-20r` - NEMA L15-20R + * `10` - 10 inches - * `nema-l15-30r` - NEMA L15-30R + * `19` - 19 inches - * `nema-l15-50r` - NEMA L15-50R + * `21` - 21 inches - * `nema-l15-60r` - NEMA L15-60R + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms - * `nema-l21-20r` - NEMA L21-20R + * `g` - Grams - * `nema-l21-30r` - NEMA L21-30R + * `lb` - Pounds - * `nema-l22-20r` - NEMA L22-20R + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters - * `nema-l22-30r` - NEMA L22-30R + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/DeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/ModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - other + type: string + description: '* `8p8c` - 8P8C - * `CS6360C` - CS6360C + * `8p6c` - 8P6C - * `CS6364C` - CS6364C + * `8p4c` - 8P4C - * `CS8164C` - CS8164C + * `8p2c` - 8P2C - * `CS8264C` - CS8264C + * `6p6c` - 6P6C - * `CS8364C` - CS8364C + * `6p4c` - 6P4C - * `CS8464C` - CS8464C + * `6p2c` - 6P2C - * `ita-e` - ITA Type E (CEE 7/5) + * `4p4c` - 4P4C - * `ita-f` - ITA Type F (CEE 7/3) + * `4p2c` - 4P2C - * `ita-g` - ITA Type G (BS 1363) + * `gg45` - GG45 - * `ita-h` - ITA Type H + * `tera-4p` - TERA 4P - * `ita-i` - ITA Type I + * `tera-2p` - TERA 2P - * `ita-j` - ITA Type J + * `tera-1p` - TERA 1P - * `ita-k` - ITA Type K + * `110-punch` - 110 Punch - * `ita-l` - ITA Type L (CEI 23-50) + * `bnc` - BNC - * `ita-m` - ITA Type M (BS 546) + * `f` - F Connector - * `ita-n` - ITA Type N + * `n` - N Connector - * `ita-o` - ITA Type O + * `mrj21` - MRJ21 - * `ita-multistandard` - ITA Multistandard + * `fc` - FC - * `usb-a` - USB Type A + * `lc` - LC - * `usb-micro-b` - USB Micro B + * `lc-pc` - LC/PC - * `usb-c` - USB Type C + * `lc-upc` - LC/UPC - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `lc-apc` - LC/APC - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `lsh` - LSH - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `lsh-pc` - LSH/PC - * `dc-terminal` - DC Terminal + * `lsh-upc` - LSH/UPC - * `hdot-cx` - HDOT Cx + * `lsh-apc` - LSH/APC - * `saf-d-grid` - Saf-D-Grid + * `lx5` - LX.5 - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `lx5-pc` - LX.5/PC - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `lx5-upc` - LX.5/UPC - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `lx5-apc` - LX.5/APC - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `mpo` - MPO - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `mtrj` - MTRJ - * `hardwired` - Hardwired + * `sc` - SC - * `other` - Other' - x-spec-enum-id: 83934a5ad90d6138 - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - IEC 60906-1 - - 2P+T 10A (NBR 14136) - - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-20R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) - - ITA Type G (BS 1363) - - ITA Type H - - ITA Type I - - ITA Type J - - ITA Type K - - ITA Type L (CEI 23-50) - - ITA Type M (BS 546) - - ITA Type N - - ITA Type O - - ITA Multistandard - - USB Type A - - USB Micro B - - USB Type C - - Molex Micro-Fit 1x2 - - Molex Micro-Fit 2x2 - - Molex Micro-Fit 2x4 - - DC Terminal - - HDOT Cx - - Saf-D-Grid - - Neutrik powerCON (20A) - - Neutrik powerCON (32A) - - Neutrik powerCON TRUE1 - - Neutrik powerCON TRUE1 TOP - - Ubiquiti SmartPower - - Hardwired - - Other - nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/BriefPowerPortTemplate' - nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A + * `sc-pc` - SC/PC - * `B` - B + * `sc-upc` - SC/UPC - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C - nullable: true - description: - type: string - maxLength: 200 - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - last_updated - - name - - url - PowerOutletTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `sc-apc` - SC/APC - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-20r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - description: '* `iec-60320-c5` - C5 + * `st` - ST - * `iec-60320-c7` - C7 + * `cs` - CS - * `iec-60320-c13` - C13 + * `sn` - SN - * `iec-60320-c15` - C15 + * `sma-905` - SMA 905 - * `iec-60320-c19` - C19 + * `sma-906` - SMA 906 - * `iec-60320-c21` - C21 + * `urm-p2` - URM-P2 - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `urm-p4` - URM-P4 - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `urm-p8` - URM-P8 - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `splice` - Splice - * `iec-60309-2p-e-4h` - 2P+E 4H + * `other` - Other' + x-spec-enum-id: 0276d1110ada597a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `iec-60309-2p-e-6h` - 2P+E 6H + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/DeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/ModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - other + type: string + description: '* `8p8c` - 8P8C - * `iec-60309-2p-e-9h` - 2P+E 9H + * `8p6c` - 8P6C - * `iec-60309-3p-e-4h` - 3P+E 4H + * `8p4c` - 8P4C - * `iec-60309-3p-e-6h` - 3P+E 6H + * `8p2c` - 8P2C - * `iec-60309-3p-e-9h` - 3P+E 9H + * `6p6c` - 6P6C - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `6p4c` - 6P4C - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `6p2c` - 6P2C - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `4p4c` - 4P4C - * `iec-60906-1` - IEC 60906-1 + * `4p2c` - 4P2C - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `gg45` - GG45 - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `tera-4p` - TERA 4P - * `nema-1-15r` - NEMA 1-15R + * `tera-2p` - TERA 2P - * `nema-5-15r` - NEMA 5-15R + * `tera-1p` - TERA 1P - * `nema-5-20r` - NEMA 5-20R + * `110-punch` - 110 Punch - * `nema-5-30r` - NEMA 5-30R + * `bnc` - BNC - * `nema-5-50r` - NEMA 5-50R + * `f` - F Connector - * `nema-6-15r` - NEMA 6-15R + * `n` - N Connector - * `nema-6-20r` - NEMA 6-20R + * `mrj21` - MRJ21 - * `nema-6-30r` - NEMA 6-30R + * `fc` - FC - * `nema-6-50r` - NEMA 6-50R + * `lc` - LC - * `nema-10-30r` - NEMA 10-30R + * `lc-pc` - LC/PC - * `nema-10-50r` - NEMA 10-50R + * `lc-upc` - LC/UPC - * `nema-14-20r` - NEMA 14-20R + * `lc-apc` - LC/APC - * `nema-14-30r` - NEMA 14-30R + * `lsh` - LSH - * `nema-14-50r` - NEMA 14-50R + * `lsh-pc` - LSH/PC - * `nema-14-60r` - NEMA 14-60R + * `lsh-upc` - LSH/UPC - * `nema-15-15r` - NEMA 15-15R + * `lsh-apc` - LSH/APC - * `nema-15-20r` - NEMA 15-20R + * `lx5` - LX.5 - * `nema-15-30r` - NEMA 15-30R + * `lx5-pc` - LX.5/PC - * `nema-15-50r` - NEMA 15-50R + * `lx5-upc` - LX.5/UPC - * `nema-15-60r` - NEMA 15-60R + * `lx5-apc` - LX.5/APC - * `nema-l1-15r` - NEMA L1-15R + * `mpo` - MPO - * `nema-l5-15r` - NEMA L5-15R + * `mtrj` - MTRJ - * `nema-l5-20r` - NEMA L5-20R + * `sc` - SC - * `nema-l5-30r` - NEMA L5-30R + * `sc-pc` - SC/PC - * `nema-l5-50r` - NEMA L5-50R + * `sc-upc` - SC/UPC - * `nema-l6-15r` - NEMA L6-15R + * `sc-apc` - SC/APC - * `nema-l6-20r` - NEMA L6-20R + * `st` - ST - * `nema-l6-30r` - NEMA L6-30R + * `cs` - CS - * `nema-l6-50r` - NEMA L6-50R + * `sn` - SN - * `nema-l10-30r` - NEMA L10-30R + * `sma-905` - SMA 905 - * `nema-l14-20r` - NEMA L14-20R + * `sma-906` - SMA 906 - * `nema-l14-30r` - NEMA L14-30R + * `urm-p2` - URM-P2 - * `nema-l14-50r` - NEMA L14-50R + * `urm-p4` - URM-P4 - * `nema-l14-60r` - NEMA L14-60R + * `urm-p8` - URM-P8 - * `nema-l15-20r` - NEMA L15-20R + * `splice` - Splice - * `nema-l15-30r` - NEMA L15-30R + * `other` - Other' + x-spec-enum-id: 0276d1110ada597a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: + type: string + maxLength: 200 + PatchedWritableRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + allOf: + - $ref: '#/components/schemas/DeviceRequest' + nullable: true + virtual_machine: + allOf: + - $ref: '#/components/schemas/VirtualMachineRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + protocol: + enum: + - tcp + - udp + - sctp + type: string + description: '* `tcp` - TCP - * `nema-l15-50r` - NEMA L15-50R + * `udp` - UDP - * `nema-l15-60r` - NEMA L15-60R + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + ipaddresses: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceTemplateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + protocol: + enum: + - tcp + - udp + - sctp + type: string + description: '* `tcp` - TCP - * `nema-l21-20r` - NEMA L21-20R + * `udp` - UDP - * `nema-l21-30r` - NEMA L21-30R + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned - * `nema-l22-20r` - NEMA L22-20R + * `staging` - Staging - * `nema-l22-30r` - NEMA L22-30R + * `active` - Active - * `CS6360C` - CS6360C + * `decommissioning` - Decommissioning - * `CS6364C` - CS6364C + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/RegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/SiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + description: + type: string + maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned - * `CS8164C` - CS8164C + * `active` - Active - * `CS8264C` - CS8264C + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/TunnelGroupRequest' + nullable: true + encapsulation: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport - * `CS8364C` - CS8364C + * `ipsec-tunnel` - IPsec - Tunnel - * `CS8464C` - CS8464C + * `ip-ip` - IP-in-IP - * `ita-e` - ITA Type E (CEE 7/5) + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/IPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + tunnel: + $ref: '#/components/schemas/TunnelRequest' + role: + enum: + - peer + - hub + - spoke + type: string + description: '* `peer` - Peer - * `ita-f` - ITA Type F (CEE 7/3) + * `hub` - Hub - * `ita-g` - ITA Type G (BS 1363) + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + outside_ip: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + allOf: + - $ref: '#/components/schemas/SiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/VLANGroupRequest' + nullable: true + vid: + type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this VLAN - * `ita-h` - ITA Type H - * `ita-i` - ITA Type I + * `active` - Active - * `ita-j` - ITA Type J + * `reserved` - Reserved - * `ita-k` - ITA Type K + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/RoleRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVMInterfaceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + virtual_machine: + $ref: '#/components/schemas/VirtualMachineRequest' + name: + type: string + minLength: 1 + maxLength: 64 + enabled: + type: boolean + parent: + type: integer + nullable: true + title: Parent interface + bridge: + type: integer + nullable: true + title: Bridge interface + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: + type: string + nullable: true + minLength: 1 + description: + type: string + maxLength: 200 + mode: + enum: + - access + - tagged + - tagged-all + - '' + type: string + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy - * `ita-l` - ITA Type L (CEI 23-50) - * `ita-m` - ITA Type M (BS 546) + * `access` - Access - * `ita-n` - ITA Type N + * `tagged` - Tagged - * `ita-o` - ITA Type O + * `tagged-all` - Tagged (All)' + untagged_vlan: + allOf: + - $ref: '#/components/schemas/VLANRequest' + nullable: true + tagged_vlans: + type: array + items: + type: integer + vrf: + allOf: + - $ref: '#/components/schemas/VRFRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + domain: + type: string + maxLength: 30 + master: + type: integer + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualDeviceContextRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + device: + $ref: '#/components/schemas/DeviceRequest' + identifier: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' + nullable: true + status: + enum: + - active + - planned + - offline + type: string + description: '* `active` - Active - * `ita-multistandard` - ITA Multistandard + * `planned` - Planned - * `usb-a` - USB Type A + * `offline` - Offline' + x-spec-enum-id: ee1ef02def7a91ab + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualMachineWithConfigContextRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline - * `usb-micro-b` - USB Micro B + * `active` - Active - * `usb-c` - USB Type C + * `planned` - Planned - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `staged` - Staged - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `failed` - Failed - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + site: + allOf: + - $ref: '#/components/schemas/SiteRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/ClusterRequest' + nullable: true + device: + allOf: + - $ref: '#/components/schemas/DeviceRequest' + nullable: true + role: + allOf: + - $ref: '#/components/schemas/DeviceRoleRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/PlatformRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/IPAddressRequest' + nullable: true + vcpus: + type: number + format: double + maximum: 10000 + minimum: 0.01 + exclusiveMaximum: true + nullable: true + memory: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Memory (MB) + disk: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Disk (GB) + description: + type: string + maxLength: 200 + comments: + type: string + config_template: + allOf: + - $ref: '#/components/schemas/ConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableWirelessLANGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableWirelessLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + ssid: + type: string + minLength: 1 + maxLength: 32 + description: + type: string + maxLength: 200 + group: + allOf: + - $ref: '#/components/schemas/WirelessLANGroupRequest' + nullable: true + status: + enum: + - active + - reserved + - disabled + - deprecated + type: string + description: '* `active` - Active - * `dc-terminal` - DC Terminal + * `reserved` - Reserved - * `hdot-cx` - HDOT Cx + * `disabled` - Disabled - * `saf-d-grid` - Saf-D-Grid + * `deprecated` - Deprecated' + x-spec-enum-id: 412ebdca597f609e + vlan: + allOf: + - $ref: '#/components/schemas/VLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `wep` - WEP - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `wpa-personal` - WPA Personal (PSK) - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `tkip` - TKIP - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableWirelessLinkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + interface_a: + $ref: '#/components/schemas/InterfaceRequest' + interface_b: + $ref: '#/components/schemas/InterfaceRequest' + ssid: + type: string + maxLength: 32 + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected - * `hardwired` - Hardwired + * `planned` - Planned - * `other` - Other' - x-spec-enum-id: 83934a5ad90d6138 - nullable: true - power_port: + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: allOf: - - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true - feed_leg: + auth_type: enum: - - A - - B - - C + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: + enum: + - auto + - tkip + - aes - '' type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - nullable: true + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + Platform: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true required: + - display + - id - name - PowerPanel: + - slug + - url + PlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + PowerFeed: type: object description: Adds support for custom fields and tags. properties: @@ -138609,25 +126682,143 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true - site: - $ref: '#/components/schemas/BriefSite' - location: + power_panel: + $ref: '#/components/schemas/PowerPanel' + rack: allOf: - - $ref: '#/components/schemas/BriefLocation' + - $ref: '#/components/schemas/Rack' nullable: true name: type: string maxLength: 100 + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + label: + type: string + enum: + - Offline + - Active + - Planned + - Failed + type: + type: object + properties: + value: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary + + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + label: + type: string + enum: + - Primary + - Redundant + supply: + type: object + properties: + value: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + label: + type: string + enum: + - AC + - DC + phase: + type: object + properties: + value: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + label: + type: string + enum: + - Single phase + - Three-phase + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/Cable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + connected_endpoints: + type: array + items: {} + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + connected_endpoints_reachable: + type: boolean + readOnly: true description: type: string maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/Tenant' + nullable: true comments: type: string tags: @@ -138637,10 +126828,6 @@ components: custom_fields: type: object additionalProperties: {} - powerfeed_count: - type: integer - format: int64 - readOnly: true created: type: string format: date-time @@ -138651,33 +126838,105 @@ components: format: date-time readOnly: true nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type - created - display - - display_url - id - last_updated + - link_peers + - link_peers_type - name - - powerfeed_count - - site + - power_panel - url - PowerPanelRequest: + PowerFeedRequest: type: object description: Adds support for custom fields and tags. properties: - site: - $ref: '#/components/schemas/BriefSiteRequest' - location: + power_panel: + $ref: '#/components/schemas/PowerPanelRequest' + rack: allOf: - - $ref: '#/components/schemas/BriefLocationRequest' + - $ref: '#/components/schemas/RackRequest' nullable: true name: type: string minLength: 1 maxLength: 100 + status: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary + + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' + nullable: true comments: type: string tags: @@ -138689,8 +126948,8 @@ components: additionalProperties: {} required: - name - - site - PowerPort: + - power_panel + PowerOutlet: type: object description: Adds support for custom fields and tags. properties: @@ -138701,18 +126960,14 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true name: type: string @@ -138726,12 +126981,12 @@ components: properties: value: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -138747,58 +127002,55 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-20p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -138808,23 +127060,18 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -138832,17 +127079,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -138874,109 +127121,103 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P - - * `nema-5-20p` - NEMA 5-20P - - * `nema-5-30p` - NEMA 5-30P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-20r` - NEMA 15-20R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l22-20p` - NEMA L22-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-20r` - NEMA L21-20R - * `cs6361c` - CS6361C + * `nema-l21-30r` - NEMA L21-30R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -138996,25 +127237,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -139024,11 +127253,13 @@ components: * `dc-terminal` - DC Terminal + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -139039,16 +127270,16 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: f1bd4aedff3a591b + x-spec-enum-id: 2ff919f516566857 label: type: string enum: - - C6 - - C8 - - C14 - - C16 - - C20 - - C22 + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 - P+N+E 4H - P+N+E 6H - P+N+E 9H @@ -139064,58 +127295,55 @@ components: - IEC 60906-1 - 2P+T 10A (NBR 14136) - 2P+T 20A (NBR 14136) - - NEMA 1-15P - - NEMA 5-15P - - NEMA 5-20P - - NEMA 5-30P - - NEMA 5-50P - - NEMA 6-15P - - NEMA 6-20P - - NEMA 6-30P - - NEMA 6-50P - - NEMA 10-30P - - NEMA 10-50P - - NEMA 14-20P - - NEMA 14-30P - - NEMA 14-50P - - NEMA 14-60P - - NEMA 15-15P - - NEMA 15-20P - - NEMA 15-30P - - NEMA 15-50P - - NEMA 15-60P - - NEMA L1-15P - - NEMA L5-15P - - NEMA L5-20P - - NEMA L5-30P - - NEMA L5-50P - - NEMA L6-15P - - NEMA L6-20P - - NEMA L6-30P - - NEMA L6-50P - - NEMA L10-30P - - NEMA L14-20P - - NEMA L14-30P - - NEMA L14-50P - - NEMA L14-60P - - NEMA L15-20P - - NEMA L15-30P - - NEMA L15-50P - - NEMA L15-60P - - NEMA L21-20P - - NEMA L21-30P - - NEMA L22-20P - - NEMA L22-30P - - CS6361C - - CS6365C - - CS8165C - - CS8265C - - CS8365C - - CS8465C - - ITA Type C (CEE 7/16) - - ITA Type E (CEE 7/6) - - ITA Type F (CEE 7/4) - - ITA Type E/F (CEE 7/7) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -139125,20 +127353,15 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O + - ITA Multistandard - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - USB Micro B - - USB Micro AB - - USB 3.0 Type B - - USB 3.0 Micro B + - USB Type C - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal + - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -139148,18 +127371,33 @@ components: - Hardwired - Other nullable: true - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 + power_port: + allOf: + - $ref: '#/components/schemas/PowerPort' nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -139168,7 +127406,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/BriefCable' + - $ref: '#/components/schemas/Cable' readOnly: true nullable: true cable_end: @@ -139182,16 +127420,13 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true - nullable: true connected_endpoints: type: array items: {} - nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true - nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -139226,22 +127461,21 @@ components: - created - device - display - - display_url - id - last_updated - link_peers - link_peers_type - name - url - PowerPortRequest: + PowerOutletRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -139253,12 +127487,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -139274,58 +127508,55 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-20p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -139335,23 +127566,18 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -139359,17 +127585,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -139401,109 +127627,103 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P - - * `nema-5-20p` - NEMA 5-20P - - * `nema-5-30p` - NEMA 5-30P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-20r` - NEMA 15-20R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l22-20p` - NEMA L22-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-20r` - NEMA L21-20R - * `cs6361c` - CS6361C + * `nema-l21-30r` - NEMA L21-30R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -139523,25 +127743,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -139551,11 +127759,13 @@ components: * `dc-terminal` - DC Terminal + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -139566,20 +127776,26 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: f1bd4aedff3a591b + x-spec-enum-id: 2ff919f516566857 nullable: true - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 + power_port: + allOf: + - $ref: '#/components/schemas/PowerPortRequest' nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + feed_leg: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -139596,7 +127812,7 @@ components: required: - device - name - PowerPortTemplate: + PowerOutletTemplate: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -139615,11 +127831,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceType' + - $ref: '#/components/schemas/DeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleType' + - $ref: '#/components/schemas/ModuleType' nullable: true name: type: string @@ -139635,12 +127851,12 @@ components: properties: value: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -139656,58 +127872,55 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-20p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -139717,23 +127930,18 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -139741,17 +127949,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -139783,109 +127991,103 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P - - * `nema-5-20p` - NEMA 5-20P - - * `nema-5-30p` - NEMA 5-30P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-20r` - NEMA 15-20R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l22-20p` - NEMA L22-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-20r` - NEMA L21-20R - * `cs6361c` - CS6361C + * `nema-l21-30r` - NEMA L21-30R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -139905,25 +128107,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -139933,11 +128123,13 @@ components: * `dc-terminal` - DC Terminal + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -139948,16 +128140,16 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: f1bd4aedff3a591b + x-spec-enum-id: 2ff919f516566857 label: type: string enum: - - C6 - - C8 - - C14 - - C16 - - C20 - - C22 + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 - P+N+E 4H - P+N+E 6H - P+N+E 9H @@ -139973,58 +128165,55 @@ components: - IEC 60906-1 - 2P+T 10A (NBR 14136) - 2P+T 20A (NBR 14136) - - NEMA 1-15P - - NEMA 5-15P - - NEMA 5-20P - - NEMA 5-30P - - NEMA 5-50P - - NEMA 6-15P - - NEMA 6-20P - - NEMA 6-30P - - NEMA 6-50P - - NEMA 10-30P - - NEMA 10-50P - - NEMA 14-20P - - NEMA 14-30P - - NEMA 14-50P - - NEMA 14-60P - - NEMA 15-15P - - NEMA 15-20P - - NEMA 15-30P - - NEMA 15-50P - - NEMA 15-60P - - NEMA L1-15P - - NEMA L5-15P - - NEMA L5-20P - - NEMA L5-30P - - NEMA L5-50P - - NEMA L6-15P - - NEMA L6-20P - - NEMA L6-30P - - NEMA L6-50P - - NEMA L10-30P - - NEMA L14-20P - - NEMA L14-30P - - NEMA L14-50P - - NEMA L14-60P - - NEMA L15-20P - - NEMA L15-30P - - NEMA L15-50P - - NEMA L15-60P - - NEMA L21-20P - - NEMA L21-30P - - NEMA L22-20P - - NEMA L22-30P - - CS6361C - - CS6365C - - CS8165C - - CS8265C - - CS8365C - - CS8465C - - ITA Type C (CEE 7/16) - - ITA Type E (CEE 7/6) - - ITA Type F (CEE 7/4) - - ITA Type E/F (CEE 7/7) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -140034,20 +128223,15 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O + - ITA Multistandard - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - USB Micro B - - USB Micro AB - - USB 3.0 Type B - - USB 3.0 Micro B + - USB Type C - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal + - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -140057,18 +128241,33 @@ components: - Hardwired - Other nullable: true - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 + power_port: + allOf: + - $ref: '#/components/schemas/PowerPortTemplate' nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -140089,7 +128288,7 @@ components: - last_updated - name - url - PowerPortTemplateRequest: + PowerOutletTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -140098,11 +128297,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -140116,12 +128315,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -140137,58 +128336,55 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-20p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -140198,23 +128394,18 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -140222,17 +128413,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -140264,109 +128455,103 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P - - * `nema-5-20p` - NEMA 5-20P - - * `nema-5-30p` - NEMA 5-30P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-20r` - NEMA 15-20R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l22-20p` - NEMA L22-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-20r` - NEMA L21-20R - * `cs6361c` - CS6361C + * `nema-l21-30r` - NEMA L21-30R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -140386,25 +128571,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -140414,11 +128587,13 @@ components: * `dc-terminal` - DC Terminal + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -140429,28 +128604,135 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: f1bd4aedff3a591b + x-spec-enum-id: 2ff919f516566857 nullable: true - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 + power_port: + allOf: + - $ref: '#/components/schemas/PowerPortTemplateRequest' nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + feed_leg: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 required: - name - Prefix: + PowerPanel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - powerfeed_count + - url + PowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + PowerPort: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/Device' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/Cable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + PowerPortRequest: type: object description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/DeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + PowerPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: id: type: integer @@ -140459,7 +128741,48 @@ components: type: string format: uri readOnly: true - display_url: + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + PowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + Prefix: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: type: string format: uri readOnly: true @@ -140488,19 +128811,19 @@ components: type: string site: allOf: - - $ref: '#/components/schemas/BriefSite' + - $ref: '#/components/schemas/Site' nullable: true vrf: allOf: - - $ref: '#/components/schemas/BriefVRF' + - $ref: '#/components/schemas/VRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true vlan: allOf: - - $ref: '#/components/schemas/BriefVLAN' + - $ref: '#/components/schemas/VLAN' nullable: true status: type: object @@ -140529,7 +128852,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/BriefRole' + - $ref: '#/components/schemas/Role' nullable: true is_pool: type: boolean @@ -140572,7 +128895,6 @@ components: - children - created - display - - display_url - family - id - last_updated @@ -140587,19 +128909,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true status: enum: @@ -140618,7 +128940,7 @@ components: x-spec-enum-id: d38bee5f512701d9 role: allOf: - - $ref: '#/components/schemas/BriefRoleRequest' + - $ref: '#/components/schemas/RoleRequest' nullable: true is_pool: type: boolean @@ -140652,10 +128974,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -140667,47 +128985,17 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - accounts: - type: array - items: - $ref: '#/components/schemas/NestedProviderAccount' description: type: string maxLength: 200 - comments: - type: string - asns: - type: array - items: - $ref: '#/components/schemas/ASN' - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true circuit_count: type: integer format: int64 readOnly: true required: - circuit_count - - created - display - - display_url - id - - last_updated - name - slug - url @@ -140722,15 +129010,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true provider: - $ref: '#/components/schemas/BriefProvider' + $ref: '#/components/schemas/Provider' name: type: string default: '' @@ -140765,7 +129049,6 @@ components: - account - created - display - - display_url - id - last_updated - provider @@ -140774,8 +129057,6 @@ components: type: object description: Adds support for custom fields and tags. properties: - provider: - $ref: '#/components/schemas/BriefProviderRequest' name: type: string default: '' @@ -140788,18 +129069,8 @@ components: description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - account - - provider ProviderNetwork: type: object description: Adds support for custom fields and tags. @@ -140811,181 +129082,21 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true - provider: - $ref: '#/components/schemas/BriefProvider' name: type: string maxLength: 100 - service_id: - type: string - maxLength: 100 description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - display - - display_url - id - - last_updated - name - - provider - url ProviderNetworkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - provider: - $ref: '#/components/schemas/BriefProviderRequest' - name: - type: string - minLength: 1 - maxLength: 100 - service_id: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - name - - provider - ProviderRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the provider - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - accounts: - type: array - items: - type: integer - description: - type: string - maxLength: 200 - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - name - - slug - RIR: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - aggregate_count: - type: integer - format: int64 - readOnly: true - required: - - aggregate_count - - created - - display - - display_url - - id - - last_updated - - name - - slug - - url - RIRRequest: type: object description: Adds support for custom fields and tags. properties: @@ -140993,525 +129104,86 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - is_private: - type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - name - - slug - Rack: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - facility_id: - type: string - nullable: true - maxLength: 50 - site: - $ref: '#/components/schemas/BriefSite' - location: - allOf: - - $ref: '#/components/schemas/BriefLocation' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - status: - type: object - properties: - value: - enum: - - reserved - - available - - planned - - active - - deprecated - type: string - description: '* `reserved` - Reserved - - * `available` - Available - - * `planned` - Planned - - * `active` - Active - - * `deprecated` - Deprecated' - x-spec-enum-id: 0c556d55dc1baa13 - label: - type: string - enum: - - Reserved - - Available - - Planned - - Active - - Deprecated - role: - allOf: - - $ref: '#/components/schemas/BriefRackRole' - nullable: true - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - rack_type: - allOf: - - $ref: '#/components/schemas/BriefRackType' - nullable: true - form_factor: - type: object - properties: - value: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame - - * `4-post-frame` - 4-post frame - - * `4-post-cabinet` - 4-post cabinet - - * `wall-frame` - Wall-mounted frame - - * `wall-frame-vertical` - Wall-mounted frame (vertical) - - * `wall-cabinet` - Wall-mounted cabinet - - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - label: - type: string - enum: - - 2-post frame - - 4-post frame - - 4-post cabinet - - Wall-mounted frame - - Wall-mounted frame (vertical) - - Wall-mounted cabinet - - Wall-mounted cabinet (vertical) - nullable: true - width: - type: object - properties: - value: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - description: '* `10` - 10 inches - - * `19` - 19 inches - - * `21` - 21 inches - - * `23` - 23 inches' - x-spec-enum-id: 9b322795f297a9c3 - label: - type: string - enum: - - 10 inches - - 19 inches - - 21 inches - - 23 inches - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - type: object - properties: - value: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - label: - type: string - enum: - - Kilograms - - Grams - - Pounds - - Ounces - nullable: true - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - type: object - properties: - value: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters - - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - label: - type: string - enum: - - Millimeters - - Inches - nullable: true - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - airflow: - type: object - properties: - value: - enum: - - front-to-rear - - rear-to-front - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front' - x-spec-enum-id: a784734d07ef1b3c - label: - type: string - enum: - - Front to rear - - Rear to front description: type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - device_count: - type: integer - format: int64 - readOnly: true - powerfeed_count: - type: integer - format: int64 - readOnly: true - required: - - created - - display - - display_url - - id - - last_updated - - name - - powerfeed_count - - site - - url - RackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - facility_id: - type: string - nullable: true - maxLength: 50 - site: - $ref: '#/components/schemas/BriefSiteRequest' - location: - allOf: - - $ref: '#/components/schemas/BriefLocationRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - status: - enum: - - reserved - - available - - planned - - active - - deprecated - type: string - description: '* `reserved` - Reserved - - * `available` - Available - - * `planned` - Planned - - * `active` - Active - - * `deprecated` - Deprecated' - x-spec-enum-id: 0c556d55dc1baa13 - role: - allOf: - - $ref: '#/components/schemas/BriefRackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - rack_type: - allOf: - - $ref: '#/components/schemas/BriefRackTypeRequest' - nullable: true - form_factor: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame - - * `4-post-frame` - 4-post frame - - * `4-post-cabinet` - 4-post cabinet - - * `wall-frame` - Wall-mounted frame - - * `wall-frame-vertical` - Wall-mounted frame (vertical) - - * `wall-cabinet` - Wall-mounted cabinet - - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - nullable: true - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - description: '* `10` - 10 inches - - * `19` - 19 inches - - * `21` - 21 inches - - * `23` - 23 inches' - x-spec-enum-id: 9b322795f297a9c3 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - nullable: true - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' + maxLength: 200 + required: + - name + ProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: type: string - description: '* `mm` - Millimeters - - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - nullable: true - mounting_depth: + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + RIR: + type: object + description: Adds support for custom fields and tags. + properties: + id: type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - airflow: - enum: - - front-to-rear - - rear-to-front - - '' + readOnly: true + url: type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front' - x-spec-enum-id: a784734d07ef1b3c + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 - comments: + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - display + - id + - name + - slug + - url + RIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 required: - name - - site - RackReservation: + - slug + Rack: type: object description: Adds support for custom fields and tags. properties: @@ -141522,7 +129194,45 @@ components: type: string format: uri readOnly: true - display_url: + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + RackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + RackReservation: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: type: string format: uri readOnly: true @@ -141530,7 +129240,7 @@ components: type: string readOnly: true rack: - $ref: '#/components/schemas/BriefRack' + $ref: '#/components/schemas/Rack' units: type: array items: @@ -141548,10 +129258,10 @@ components: readOnly: true nullable: true user: - $ref: '#/components/schemas/BriefUser' + $ref: '#/components/schemas/User' tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true description: type: string @@ -141569,7 +129279,6 @@ components: - created - description - display - - display_url - id - last_updated - rack @@ -141581,7 +129290,7 @@ components: description: Adds support for custom fields and tags. properties: rack: - $ref: '#/components/schemas/BriefRackRequest' + $ref: '#/components/schemas/RackRequest' units: type: array items: @@ -141589,10 +129298,10 @@ components: maximum: 32767 minimum: 0 user: - $ref: '#/components/schemas/BriefUserRequest' + $ref: '#/components/schemas/UserRequest' tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true description: type: string @@ -141623,10 +129332,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -141668,7 +129373,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -141706,371 +129410,6 @@ components: required: - name - slug - RackType: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - manufacturer: - $ref: '#/components/schemas/BriefManufacturer' - model: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - form_factor: - type: object - properties: - value: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame - - * `4-post-frame` - 4-post frame - - * `4-post-cabinet` - 4-post cabinet - - * `wall-frame` - Wall-mounted frame - - * `wall-frame-vertical` - Wall-mounted frame (vertical) - - * `wall-cabinet` - Wall-mounted cabinet - - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - label: - type: string - enum: - - 2-post frame - - 4-post frame - - 4-post cabinet - - Wall-mounted frame - - Wall-mounted frame (vertical) - - Wall-mounted cabinet - - Wall-mounted cabinet (vertical) - nullable: true - width: - type: object - properties: - value: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - description: '* `10` - 10 inches - - * `19` - 19 inches - - * `21` - 21 inches - - * `23` - 23 inches' - x-spec-enum-id: 9b322795f297a9c3 - label: - type: string - enum: - - 10 inches - - 19 inches - - 21 inches - - 23 inches - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - type: object - properties: - value: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters - - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - label: - type: string - enum: - - Millimeters - - Inches - nullable: true - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - type: object - properties: - value: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - label: - type: string - enum: - - Kilograms - - Grams - - Pounds - - Ounces - nullable: true - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - display_url - - id - - last_updated - - manufacturer - - model - - slug - - url - RackTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - form_factor: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame - - * `4-post-frame` - 4-post frame - - * `4-post-cabinet` - 4-post cabinet - - * `wall-frame` - Wall-mounted frame - - * `wall-frame-vertical` - Wall-mounted frame (vertical) - - * `wall-cabinet` - Wall-mounted cabinet - - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - nullable: true - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - description: '* `10` - 10 inches - - * `19` - 19 inches - - * `21` - 21 inches - - * `23` - 23 inches' - x-spec-enum-id: 9b322795f297a9c3 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters - - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - nullable: true - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - nullable: true - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - manufacturer - - model - - slug RackUnit: type: object description: A rack unit is an abstraction formed by the set (rack, position, @@ -142107,7 +129446,7 @@ components: readOnly: true device: allOf: - - $ref: '#/components/schemas/BriefDevice' + - $ref: '#/components/schemas/Device' readOnly: true occupied: type: boolean @@ -142133,18 +129472,14 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' module: allOf: - - $ref: '#/components/schemas/BriefModule' + - $ref: '#/components/schemas/Module' nullable: true name: type: string @@ -142204,14 +129539,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -142306,24 +129633,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a label: type: string enum: @@ -142373,14 +129684,6 @@ components: - URM-P4 - URM-P8 - Splice - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - USB Micro AB - Other color: type: string @@ -142399,7 +129702,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/BriefCable' + - $ref: '#/components/schemas/Cable' readOnly: true nullable: true cable_end: @@ -142413,7 +129716,6 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true - nullable: true tags: type: array items: @@ -142442,7 +129744,6 @@ components: - created - device - display - - display_url - id - last_updated - link_peers @@ -142455,10 +129756,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -142516,14 +129817,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -142618,24 +129911,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ @@ -142679,280 +129956,18 @@ components: display: type: string readOnly: true - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceType' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleType' - nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - type: object - properties: - value: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C - - * `4p2c` - 4P2C - - * `gg45` - GG45 - - * `tera-4p` - TERA 4P - - * `tera-2p` - TERA 2P - - * `tera-1p` - TERA 1P - - * `110-punch` - 110 Punch - - * `bnc` - BNC - - * `f` - F Connector - - * `n` - N Connector - - * `mrj21` - MRJ21 - - * `fc` - FC - - * `lc` - LC - - * `lc-pc` - LC/PC - - * `lc-upc` - LC/UPC - - * `lc-apc` - LC/APC - - * `lsh` - LSH - - * `lsh-pc` - LSH/PC - - * `lsh-upc` - LSH/UPC - - * `lsh-apc` - LSH/APC - - * `lx5` - LX.5 - - * `lx5-pc` - LX.5/PC - - * `lx5-upc` - LX.5/UPC - - * `lx5-apc` - LX.5/APC - - * `mpo` - MPO - - * `mtrj` - MTRJ - - * `sc` - SC - - * `sc-pc` - SC/PC - - * `sc-upc` - SC/UPC - - * `sc-apc` - SC/APC - - * `st` - ST - - * `cs` - CS - - * `sn` - SN - - * `sma-905` - SMA 905 - - * `sma-906` - SMA 906 - - * `urm-p2` - URM-P2 - - * `urm-p4` - URM-P4 - - * `urm-p8` - URM-P8 - - * `splice` - Splice - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a - label: - type: string - enum: - - 8P8C - - 8P6C - - 8P4C - - 8P2C - - 6P6C - - 6P4C - - 6P2C - - 4P4C - - 4P2C - - GG45 - - TERA 4P - - TERA 2P - - TERA 1P - - 110 Punch - - BNC - - F Connector - - N Connector - - MRJ21 - - FC - - LC - - LC/PC - - LC/UPC - - LC/APC - - LSH - - LSH/PC - - LSH/UPC - - LSH/APC - - LX.5 - - LX.5/PC - - LX.5/UPC - - LX.5/APC - - MPO - - MTRJ - - SC - - SC/PC - - SC/UPC - - SC/APC - - ST - - CS - - SN - - SMA 905 - - SMA 906 - - URM-P2 - - URM-P4 - - URM-P8 - - Splice - - USB Type A - - USB Type B - - USB Type C - - USB Mini A - - USB Mini B - - USB Micro A - - USB Micro B - - USB Micro AB - - Other - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 description: type: string maxLength: 200 - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true required: - - created - display - id - - last_updated - name - - type - url RearPortTemplateRequest: type: object @@ -142961,206 +129976,17 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device_type: - allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' - nullable: true name: type: string minLength: 1 description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C - - * `4p2c` - 4P2C - - * `gg45` - GG45 - - * `tera-4p` - TERA 4P - - * `tera-2p` - TERA 2P - - * `tera-1p` - TERA 1P - - * `110-punch` - 110 Punch - - * `bnc` - BNC - - * `f` - F Connector - - * `n` - N Connector - - * `mrj21` - MRJ21 - - * `fc` - FC - - * `lc` - LC - - * `lc-pc` - LC/PC - - * `lc-upc` - LC/UPC - - * `lc-apc` - LC/APC - - * `lsh` - LSH - - * `lsh-pc` - LSH/PC - - * `lsh-upc` - LSH/UPC - - * `lsh-apc` - LSH/APC - - * `lx5` - LX.5 - - * `lx5-pc` - LX.5/PC - - * `lx5-upc` - LX.5/UPC - - * `lx5-apc` - LX.5/APC - - * `mpo` - MPO - - * `mtrj` - MTRJ - - * `sc` - SC - - * `sc-pc` - SC/PC - - * `sc-upc` - SC/UPC - - * `sc-apc` - SC/APC - - * `st` - ST - - * `cs` - CS - - * `sn` - SN - - * `sma-905` - SMA 905 - - * `sma-906` - SMA 906 - - * `urm-p2` - URM-P2 - - * `urm-p4` - URM-P4 - - * `urm-p8` - URM-P8 - - * `splice` - Splice - - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 description: type: string maxLength: 200 required: - name - - type Region: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -143172,10 +129998,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -143222,7 +130044,6 @@ components: - _depth - created - display - - display_url - id - last_updated - name @@ -143270,10 +130091,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -143284,30 +130101,9 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true prefix_count: type: integer format: int64 @@ -143317,11 +130113,8 @@ components: format: int64 readOnly: true required: - - created - display - - display_url - id - - last_updated - name - slug - url @@ -143339,20 +130132,9 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - weight: - type: integer - maximum: 32767 - minimum: 0 description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - slug @@ -143367,10 +130149,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -143380,7 +130158,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true description: type: string @@ -143407,7 +130185,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -143423,7 +130200,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true description: type: string @@ -143453,10 +130230,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -143499,7 +130272,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -143561,10 +130333,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true module: type: integer readOnly: true @@ -143573,14 +130341,13 @@ components: readOnly: true description: type: string - nullable: true readOnly: true vars: nullable: true readOnly: true result: allOf: - - $ref: '#/components/schemas/BriefJob' + - $ref: '#/components/schemas/Job' readOnly: true display: type: string @@ -143591,7 +130358,6 @@ components: required: - description - display - - display_url - id - is_executable - module @@ -143599,22 +130365,6 @@ components: - result - url - vars - ScriptInputRequest: - type: object - properties: - data: {} - commit: - type: boolean - schedule_at: - type: string - format: date-time - nullable: true - interval: - type: integer - nullable: true - required: - - commit - - data Service: type: object description: Adds support for custom fields and tags. @@ -143626,20 +130376,16 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true device: allOf: - - $ref: '#/components/schemas/BriefDevice' + - $ref: '#/components/schemas/Device' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/BriefVirtualMachine' + - $ref: '#/components/schemas/VirtualMachine' nullable: true name: type: string @@ -143701,7 +130447,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -143713,11 +130458,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' + - $ref: '#/components/schemas/DeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/BriefVirtualMachineRequest' + - $ref: '#/components/schemas/VirtualMachineRequest' nullable: true name: type: string @@ -143772,10 +130517,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -143835,7 +130576,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -143894,10 +130634,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -143909,142 +130645,15 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - status: - type: object - properties: - value: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - label: - type: string - enum: - - Planned - - Staging - - Active - - Decommissioning - - Retired - region: - allOf: - - $ref: '#/components/schemas/BriefRegion' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/BriefSiteGroup' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - time_zone: - type: string - nullable: true description: type: string maxLength: 200 - physical_address: - type: string - description: Physical location of the building - maxLength: 200 - shipping_address: - type: string - description: If different from the physical address - maxLength: 200 - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - comments: - type: string - asns: - type: array - items: - $ref: '#/components/schemas/ASN' - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - circuit_count: - type: integer - format: int64 - readOnly: true - device_count: - type: integer - format: int64 - readOnly: true - prefix_count: - type: integer - format: int64 - readOnly: true - rack_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - vlan_count: - type: integer - format: int64 - readOnly: true required: - - circuit_count - - created - display - - display_url - id - - last_updated - name - - rack_count - slug - url - - vlan_count SiteGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -144056,10 +130665,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -144106,7 +130711,6 @@ components: - _depth - created - display - - display_url - id - last_updated - name @@ -144157,151 +130761,12 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - status: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active - - * `decommissioning` - Decommissioning - - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - region: - allOf: - - $ref: '#/components/schemas/BriefRegionRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/BriefSiteGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - time_zone: - type: string - nullable: true - minLength: 1 description: type: string maxLength: 200 - physical_address: - type: string - description: Physical location of the building - maxLength: 200 - shipping_address: - type: string - description: If different from the physical address - maxLength: 200 - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - slug - Subscription: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - object: - nullable: true - readOnly: true - user: - $ref: '#/components/schemas/BriefUser' - created: - type: string - format: date-time - readOnly: true - required: - - created - - display - - id - - object - - object_id - - object_type - - url - - user - SubscriptionRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/BriefUserRequest' - required: - - object_id - - object_type - - user Tag: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -144316,10 +130781,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -144358,7 +130819,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -144407,10 +130867,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -144421,88 +130877,15 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - group: - allOf: - - $ref: '#/components/schemas/BriefTenantGroup' - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - circuit_count: - type: integer - format: int64 - readOnly: true - device_count: - type: integer - format: int64 - readOnly: true - ipaddress_count: - type: integer - format: int64 - readOnly: true - prefix_count: - type: integer - format: int64 - readOnly: true - rack_count: - type: integer - format: int64 - readOnly: true - site_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - vlan_count: - type: integer - format: int64 - readOnly: true - vrf_count: - type: integer - format: int64 - readOnly: true - cluster_count: - type: integer - format: int64 - readOnly: true required: - - circuit_count - - cluster_count - - created - display - - display_url - id - - ipaddress_count - - last_updated - name - - rack_count - - site_count - slug - url - - vlan_count - - vrf_count TenantGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -144514,10 +130897,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -144564,7 +130943,6 @@ components: - _depth - created - display - - display_url - id - last_updated - name @@ -144614,22 +130992,9 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - group: - allOf: - - $ref: '#/components/schemas/BriefTenantGroupRequest' - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - slug @@ -144647,15 +131012,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true user: - $ref: '#/components/schemas/BriefUser' + $ref: '#/components/schemas/User' created: type: string format: date-time @@ -144681,7 +131042,6 @@ components: required: - created - display - - display_url - id - url - user @@ -144699,16 +131059,12 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true user: allOf: - - $ref: '#/components/schemas/BriefUser' + - $ref: '#/components/schemas/User' readOnly: true created: type: string @@ -144734,7 +131090,6 @@ components: required: - created - display - - display_url - id - key - last_used @@ -144776,7 +131131,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: user: - $ref: '#/components/schemas/BriefUserRequest' + $ref: '#/components/schemas/UserRequest' expires: type: string format: date-time @@ -144808,116 +131163,19 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 - status: - type: object - properties: - value: - enum: - - planned - - active - - disabled - type: string - description: '* `planned` - Planned - - * `active` - Active - - * `disabled` - Disabled' - x-spec-enum-id: 0d65f7912cba74aa - label: - type: string - enum: - - Planned - - Active - - Disabled - group: - allOf: - - $ref: '#/components/schemas/BriefTunnelGroup' - nullable: true - encapsulation: - type: object - properties: - value: - enum: - - ipsec-transport - - ipsec-tunnel - - ip-ip - - gre - type: string - description: '* `ipsec-transport` - IPsec - Transport - - * `ipsec-tunnel` - IPsec - Tunnel - - * `ip-ip` - IP-in-IP - - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 - label: - type: string - enum: - - IPsec - Transport - - IPsec - Tunnel - - IP-in-IP - - GRE - ipsec_profile: - allOf: - - $ref: '#/components/schemas/BriefIPSecProfile' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - tunnel_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - terminations_count: - type: integer - format: int64 - readOnly: true required: - - created - display - - display_url - - encapsulation - id - - last_updated - name - - status - - terminations_count - url TunnelGroup: type: object @@ -144930,10 +131188,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -144971,7 +131225,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -145012,67 +131265,11 @@ components: type: string minLength: 1 maxLength: 100 - status: - enum: - - planned - - active - - disabled - type: string - description: '* `planned` - Planned - - * `active` - Active - - * `disabled` - Disabled' - x-spec-enum-id: 0d65f7912cba74aa - group: - allOf: - - $ref: '#/components/schemas/BriefTunnelGroupRequest' - nullable: true - encapsulation: - enum: - - ipsec-transport - - ipsec-tunnel - - ip-ip - - gre - type: string - description: '* `ipsec-transport` - IPsec - Transport - - * `ipsec-tunnel` - IPsec - Tunnel - - * `ip-ip` - IP-in-IP - - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 - ipsec_profile: - allOf: - - $ref: '#/components/schemas/BriefIPSecProfileRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - tunnel_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - - encapsulation - name - - status TunnelTermination: type: object description: Adds support for custom fields and tags. @@ -145084,15 +131281,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true tunnel: - $ref: '#/components/schemas/BriefTunnel' + $ref: '#/components/schemas/Tunnel' role: type: object properties: @@ -145127,7 +131320,7 @@ components: readOnly: true outside_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true tags: type: array @@ -145149,7 +131342,6 @@ components: required: - created - display - - display_url - id - last_updated - role @@ -145163,7 +131355,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/BriefTunnelRequest' + $ref: '#/components/schemas/TunnelRequest' role: enum: - peer @@ -145186,7 +131378,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true tags: type: array @@ -145214,10 +131406,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -145227,44 +131415,8 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - last_login: - type: string - format: date-time - nullable: true - groups: - type: array - items: - $ref: '#/components/schemas/Group' - permissions: - type: array - items: - $ref: '#/components/schemas/ObjectPermission' required: - display - - display_url - id - url - username @@ -145282,48 +131434,7 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 - password: - type: string - writeOnly: true - minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - last_login: - type: string - format: date-time - nullable: true - groups: - type: array - items: - type: integer - permissions: - type: array - items: - type: integer required: - - password - username VLAN: type: object @@ -145336,21 +131447,9 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true - site: - allOf: - - $ref: '#/components/schemas/BriefSite' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/BriefVLANGroup' - nullable: true vid: type: integer maximum: 4094 @@ -145360,73 +131459,12 @@ components: name: type: string maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - status: - type: object - properties: - value: - enum: - - active - - reserved - - deprecated - type: string - description: '* `active` - Active - - * `reserved` - Reserved - - * `deprecated` - Deprecated' - x-spec-enum-id: 6388dfb94ca1cc15 - label: - type: string - enum: - - Active - - Reserved - - Deprecated - role: - allOf: - - $ref: '#/components/schemas/BriefRole' - nullable: true description: type: string maxLength: 200 - comments: - type: string - l2vpn_termination: - allOf: - - $ref: '#/components/schemas/BriefL2VPNTermination' - readOnly: true - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - prefix_count: - type: integer - format: int64 - readOnly: true required: - - created - display - - display_url - id - - l2vpn_termination - - last_updated - name - url - vid @@ -145441,10 +131479,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -145464,6 +131498,18 @@ components: scope: nullable: true readOnly: true + min_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Minimum VLAN ID + description: Lowest permissible ID of a child VLAN + max_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Maximum VLAN ID + description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -145494,7 +131540,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -145522,6 +131567,18 @@ components: scope_id: type: integer nullable: true + min_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Minimum VLAN ID + description: Lowest permissible ID of a child VLAN + max_vid: + type: integer + maximum: 4094 + minimum: 1 + title: Maximum VLAN ID + description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -145539,14 +131596,6 @@ components: type: object description: Adds support for custom fields and tags. properties: - site: - allOf: - - $ref: '#/components/schemas/BriefSiteRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/BriefVLANGroupRequest' - nullable: true vid: type: integer maximum: 4094 @@ -145557,38 +131606,9 @@ components: type: string minLength: 1 maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - status: - enum: - - active - - reserved - - deprecated - type: string - description: '* `active` - Active - - * `reserved` - Reserved - - * `deprecated` - Deprecated' - x-spec-enum-id: 6388dfb94ca1cc15 - role: - allOf: - - $ref: '#/components/schemas/BriefRoleRequest' - nullable: true description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name - vid @@ -145603,15 +131623,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachine' + $ref: '#/components/schemas/VirtualMachine' name: type: string maxLength: 64 @@ -145660,7 +131676,7 @@ components: - Tagged (All) untagged_vlan: allOf: - - $ref: '#/components/schemas/BriefVLAN' + - $ref: '#/components/schemas/VLAN' nullable: true tagged_vlans: type: array @@ -145668,11 +131684,11 @@ components: $ref: '#/components/schemas/VLAN' vrf: allOf: - - $ref: '#/components/schemas/BriefVRF' + - $ref: '#/components/schemas/VRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/BriefL2VPNTermination' + - $ref: '#/components/schemas/L2VPNTermination' readOnly: true nullable: true tags: @@ -145703,7 +131719,6 @@ components: - count_ipaddresses - created - display - - display_url - id - l2vpn_termination - last_updated @@ -145715,7 +131730,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachineRequest' + $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 @@ -145757,7 +131772,7 @@ components: x-spec-enum-id: 79109bd9dbb73a3c untagged_vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true tagged_vlans: type: array @@ -145765,7 +131780,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tags: type: array @@ -145788,10 +131803,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -145804,59 +131815,16 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 - comments: - type: string - import_targets: - type: array - items: - $ref: '#/components/schemas/RouteTarget' - export_targets: - type: array - items: - $ref: '#/components/schemas/RouteTarget' - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - ipaddress_count: - type: integer - format: int64 - readOnly: true prefix_count: type: integer format: int64 readOnly: true required: - - created - display - - display_url - id - - ipaddress_count - - last_updated - name - url VRFRequest: @@ -145873,34 +131841,9 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 - comments: - type: string - import_targets: - type: array - items: - type: integer - export_targets: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name VirtualChassis: @@ -145914,19 +131857,12 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true name: type: string maxLength: 64 - domain: - type: string - maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -145934,41 +131870,13 @@ components: description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true member_count: type: integer readOnly: true - members: - type: array - items: - $ref: '#/components/schemas/NestedDevice' - readOnly: true required: - - created - display - - display_url - id - - last_updated - member_count - - members - name - url VirtualChassisRequest: @@ -145979,9 +131887,6 @@ components: type: string minLength: 1 maxLength: 64 - domain: - type: string - maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDeviceRequest' @@ -145989,15 +131894,6 @@ components: description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - name VirtualDeviceContext: @@ -146011,10 +131907,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -146022,7 +131914,7 @@ components: type: string maxLength: 64 device: - $ref: '#/components/schemas/BriefDevice' + $ref: '#/components/schemas/Device' identifier: type: integer maximum: 32767 @@ -146030,20 +131922,20 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true status: type: object @@ -146096,7 +131988,6 @@ components: - created - device - display - - display_url - id - interface_count - last_updated @@ -146113,7 +132004,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' identifier: type: integer maximum: 32767 @@ -146121,15 +132012,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true status: enum: @@ -146170,15 +132061,11 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachine' + $ref: '#/components/schemas/VirtualMachine' name: type: string maxLength: 64 @@ -146189,7 +132076,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (MB) + title: Size (GB) tags: type: array items: @@ -146210,7 +132097,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -146222,7 +132108,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachineRequest' + $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 @@ -146234,7 +132120,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (MB) + title: Size (GB) tags: type: array items: @@ -146246,7 +132132,7 @@ components: - name - size - virtual_machine - VirtualMachineWithConfigContext: + VirtualMachine: type: object description: Adds support for custom fields and tags. properties: @@ -146257,7 +132143,41 @@ components: type: string format: uri readOnly: true - display_url: + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + VirtualMachineRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + VirtualMachineWithConfigContext: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: type: string format: uri readOnly: true @@ -146302,44 +132222,40 @@ components: - Decommissioning site: allOf: - - $ref: '#/components/schemas/BriefSite' + - $ref: '#/components/schemas/Site' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefCluster' + - $ref: '#/components/schemas/Cluster' nullable: true device: allOf: - - $ref: '#/components/schemas/BriefDevice' + - $ref: '#/components/schemas/Device' nullable: true - serial: - type: string - title: Serial number - maxLength: 50 role: allOf: - - $ref: '#/components/schemas/BriefDeviceRole' + - $ref: '#/components/schemas/DeviceRole' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatform' + - $ref: '#/components/schemas/Platform' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddress' + - $ref: '#/components/schemas/IPAddress' nullable: true vcpus: type: number @@ -146359,7 +132275,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (MB) + title: Disk (GB) description: type: string maxLength: 200 @@ -146367,7 +132283,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplate' + - $ref: '#/components/schemas/ConfigTemplate' nullable: true local_context_data: nullable: true @@ -146403,7 +132319,6 @@ components: - config_context - created - display - - display_url - id - interface_count - last_updated @@ -146442,39 +132357,35 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefClusterRequest' + - $ref: '#/components/schemas/ClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' + - $ref: '#/components/schemas/DeviceRequest' nullable: true - serial: - type: string - title: Serial number - maxLength: 50 role: allOf: - - $ref: '#/components/schemas/BriefDeviceRoleRequest' + - $ref: '#/components/schemas/DeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' + - $ref: '#/components/schemas/PlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true vcpus: type: number @@ -146494,7 +132405,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (MB) + title: Disk (GB) description: type: string maxLength: 200 @@ -146502,7 +132413,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' + - $ref: '#/components/schemas/ConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -146528,10 +132439,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -146618,7 +132525,6 @@ components: required: - created - display - - display_url - id - last_updated - name @@ -146715,10 +132621,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -146730,7 +132632,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/BriefWirelessLANGroup' + - $ref: '#/components/schemas/WirelessLANGroup' nullable: true status: type: object @@ -146760,11 +132662,11 @@ components: - Deprecated vlan: allOf: - - $ref: '#/components/schemas/BriefVLAN' + - $ref: '#/components/schemas/VLAN' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/Tenant' nullable: true auth_type: type: object @@ -146840,7 +132742,6 @@ components: required: - created - display - - display_url - id - last_updated - ssid @@ -146856,10 +132757,6 @@ components: type: string format: uri readOnly: true - display_url: - type: string - format: uri - readOnly: true display: type: string readOnly: true @@ -146870,30 +132767,9 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - parent: - allOf: - - $ref: '#/components/schemas/NestedWirelessLANGroup' - nullable: true description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true wirelesslan_count: type: integer readOnly: true @@ -146904,11 +132780,8 @@ components: title: ' depth' required: - _depth - - created - display - - display_url - id - - last_updated - name - slug - url @@ -146956,7 +132829,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' + - $ref: '#/components/schemas/WirelessLANGroupRequest' nullable: true status: enum: @@ -146976,250 +132849,11 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) - - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto - - * `tkip` - TKIP - - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - ssid - WirelessLink: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display_url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - interface_a: - $ref: '#/components/schemas/BriefInterface' - interface_b: - $ref: '#/components/schemas/BriefInterface' - ssid: - type: string - maxLength: 32 - status: - type: object - properties: - value: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - label: - type: string - enum: - - Connected - - Planned - - Decommissioning - tenant: - allOf: - - $ref: '#/components/schemas/BriefTenant' + - $ref: '#/components/schemas/VLANRequest' nullable: true - auth_type: - type: object - properties: - value: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) - - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - label: - type: string - enum: - - Open - - WEP - - WPA Personal (PSK) - - WPA Enterprise - auth_cipher: - type: object - properties: - value: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto - - * `tkip` - TKIP - - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - label: - type: string - enum: - - Auto - - TKIP - - AES - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - distance: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - distance_unit: - type: object - properties: - value: - enum: - - km - - m - - mi - - ft - - '' - type: string - description: '* `km` - Kilometers - - * `m` - Meters - - * `mi` - Miles - - * `ft` - Feet' - x-spec-enum-id: 53542e7902f946af - label: - type: string - enum: - - Kilometers - - Meters - - Miles - - Feet - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - display_url - - id - - interface_a - - interface_b - - last_updated - - url - WirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/BriefInterfaceRequest' - interface_b: - $ref: '#/components/schemas/BriefInterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true auth_type: enum: @@ -147254,31 +132888,205 @@ components: type: string title: Pre-shared key maxLength: 64 - distance: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - ssid + WirelessLink: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + interface_a: + $ref: '#/components/schemas/Interface' + interface_b: + $ref: '#/components/schemas/Interface' + ssid: + type: string + maxLength: 32 + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/Tenant' + nullable: true + auth_type: + type: object + properties: + value: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + label: + type: string + enum: + - Open + - WEP + - WPA Personal (PSK) + - WPA Enterprise + auth_cipher: + type: object + properties: + value: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + label: + type: string + enum: + - Auto + - TKIP + - AES + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - id + - interface_a + - interface_b + - last_updated + - url + WirelessLinkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + interface_a: + $ref: '#/components/schemas/InterfaceRequest' + interface_b: + $ref: '#/components/schemas/InterfaceRequest' + ssid: + type: string + maxLength: 32 + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/TenantRequest' nullable: true - distance_unit: + auth_type: enum: - - km - - m - - mi - - ft + - open + - wep + - wpa-personal + - wpa-enterprise - '' type: string - description: '* `km` - Kilometers + description: '* `open` - Open - * `m` - Meters + * `wep` - WEP - * `mi` - Miles + * `wpa-personal` - WPA Personal (PSK) - * `ft` - Feet' - x-spec-enum-id: 53542e7902f946af - nullable: true + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 description: type: string maxLength: 200 @@ -147302,10 +133110,10 @@ components: type: string minLength: 1 rir: - $ref: '#/components/schemas/BriefRIRRequest' + $ref: '#/components/schemas/RIRRequest' tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true date_added: type: string @@ -147354,7 +133162,6 @@ components: - smf-os1 - smf-os2 - aoc - - usb - power - '' type: string @@ -147402,10 +133209,8 @@ components: * `aoc` - Active Optical Cabling (AOC) - * `usb` - USB - * `power` - Power' - x-spec-enum-id: 7b11d524b2b1a7ef + x-spec-enum-id: e671018e64196f8d a_terminations: type: array items: @@ -147428,7 +133233,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true label: type: string @@ -147479,37 +133284,6 @@ components: custom_fields: type: object additionalProperties: {} - WritableCircuitGroupAssignmentRequest: - type: object - description: Base serializer for group assignments under CircuitSerializer. - properties: - group: - $ref: '#/components/schemas/BriefCircuitGroupRequest' - circuit: - $ref: '#/components/schemas/BriefCircuitRequest' - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - required: - - circuit - - group WritableCircuitRequest: type: object description: Adds support for custom fields and tags. @@ -147521,13 +133295,13 @@ components: description: Unique circuit ID maxLength: 100 provider: - $ref: '#/components/schemas/BriefProviderRequest' + $ref: '#/components/schemas/ProviderRequest' provider_account: allOf: - - $ref: '#/components/schemas/BriefProviderAccountRequest' + - $ref: '#/components/schemas/ProviderAccountRequest' nullable: true type: - $ref: '#/components/schemas/BriefCircuitTypeRequest' + $ref: '#/components/schemas/CircuitTypeRequest' status: enum: - planned @@ -147551,7 +133325,7 @@ components: x-spec-enum-id: 63c838134a022200 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true install_date: type: string @@ -147582,10 +133356,6 @@ components: custom_fields: type: object additionalProperties: {} - assignments: - type: array - items: - $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid - provider @@ -147599,10 +133369,10 @@ components: minLength: 1 maxLength: 100 type: - $ref: '#/components/schemas/BriefClusterTypeRequest' + $ref: '#/components/schemas/ClusterTypeRequest' group: allOf: - - $ref: '#/components/schemas/BriefClusterGroupRequest' + - $ref: '#/components/schemas/ClusterGroupRequest' nullable: true status: enum: @@ -147624,11 +133394,11 @@ components: x-spec-enum-id: 79d20a734d0eecbb tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true description: type: string @@ -147650,10 +133420,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -147773,11 +133543,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -147848,10 +133618,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -147971,11 +133741,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -148053,10 +133823,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/BriefContactRequest' + $ref: '#/components/schemas/ContactRequest' role: allOf: - - $ref: '#/components/schemas/BriefContactRoleRequest' + - $ref: '#/components/schemas/ContactRoleRequest' nullable: true priority: enum: @@ -148237,12 +134007,8 @@ components: maxLength: 200 required: type: boolean - description: This field is required when creating new objects or editing - an existing object. - unique: - type: boolean - title: Must be unique - description: The value of this field must be unique for the assigned object + description: If true, this field is required when creating new objects or + editing an existing object. search_weight: type: integer maximum: 32767 @@ -148303,10 +134069,6 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). - related_object_filter: - nullable: true - description: Filter the object selection choices using a query_params dict - (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -148337,7 +134099,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -148366,13 +134128,13 @@ components: description: type: string maxLength: 200 + comments: + type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing - comments: - type: string custom_fields: type: object additionalProperties: {} @@ -148385,10 +134147,10 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' + $ref: '#/components/schemas/ManufacturerRequest' default_platform: allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' + - $ref: '#/components/schemas/PlatformRequest' nullable: true model: type: string @@ -148512,16 +134274,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/BriefDeviceTypeRequest' + $ref: '#/components/schemas/DeviceTypeRequest' role: - $ref: '#/components/schemas/BriefDeviceRoleRequest' + $ref: '#/components/schemas/DeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' + - $ref: '#/components/schemas/PlatformRequest' nullable: true serial: type: string @@ -148534,14 +134296,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/BriefSiteRequest' + $ref: '#/components/schemas/SiteRequest' location: allOf: - - $ref: '#/components/schemas/BriefLocationRequest' + - $ref: '#/components/schemas/LocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/BriefRackRequest' + - $ref: '#/components/schemas/RackRequest' nullable: true position: type: number @@ -148631,23 +134393,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefClusterRequest' + - $ref: '#/components/schemas/ClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/BriefVirtualChassisRequest' + - $ref: '#/components/schemas/VirtualChassisRequest' nullable: true vc_position: type: integer @@ -148667,7 +134429,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' + - $ref: '#/components/schemas/ConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -148697,35 +134459,28 @@ components: type: string minLength: 1 maxLength: 150 + type_create: + type: boolean + title: On create + description: Triggers when a matching object is created. + type_update: + type: boolean + title: On update + description: Triggers when a matching object is updated. + type_delete: + type: boolean + title: On delete + description: Triggers when a matching object is deleted. + type_job_start: + type: boolean + title: On job start + description: Triggers when a job for a matching object is started. + type_job_end: + type: boolean + title: On job end + description: Triggers when a job for a matching object terminates. enabled: type: boolean - event_types: - type: array - items: - enum: - - object_created - - object_updated - - object_deleted - - job_started - - job_completed - - job_failed - - job_errored - type: string - description: '* `object_created` - Object created - - * `object_updated` - Object updated - - * `object_deleted` - Object deleted - - * `job_started` - Job started - - * `job_completed` - Job completed - - * `job_failed` - Job failed - - * `job_errored` - Job errored' - x-spec-enum-id: 80d172232f4af424 - description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -148734,14 +134489,11 @@ components: enum: - webhook - script - - notification type: string description: '* `webhook` - Webhook - * `script` - Script - - * `notification` - Notification' - x-spec-enum-id: d07193c73ebc03c6 + * `script` - Script' + x-spec-enum-id: a08300d86473de6e action_object_type: type: string action_object_id: @@ -148762,7 +134514,6 @@ components: $ref: '#/components/schemas/NestedTagRequest' required: - action_object_type - - event_types - name - object_types WritableFrontPortRequest: @@ -148770,10 +134521,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -148831,14 +134582,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -148933,24 +134676,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ @@ -148990,11 +134717,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -149054,14 +134781,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -149156,30 +134875,14 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/BriefRearPortTemplateRequest' + $ref: '#/components/schemas/RearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -149423,11 +135126,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true status: enum: @@ -149526,11 +135229,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true status: enum: @@ -149549,7 +135252,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/BriefRoleRequest' + - $ref: '#/components/schemas/RoleRequest' nullable: true description: type: string @@ -149697,9 +135400,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/BriefIKEPolicyRequest' + $ref: '#/components/schemas/IKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/BriefIPSecPolicyRequest' + $ref: '#/components/schemas/IPSecPolicyRequest' comments: type: string tags: @@ -149804,14 +135507,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -149831,7 +135534,6 @@ components: - 100base-tx - 100base-t1 - 1000base-t - - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -149885,7 +135587,6 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay - - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -149967,8 +135668,6 @@ components: * `1000base-t` - 1000BASE-T (1GE) - * `1000base-tx` - 1000BASE-TX (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -150075,8 +135774,6 @@ components: * `ieee802.11ay` - IEEE 802.11ay - * `ieee802.11be` - IEEE 802.11be - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -150204,7 +135901,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 + x-spec-enum-id: b9a351ea129ed754 enabled: type: boolean parent: @@ -150946,7 +136643,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true tagged_vlans: type: array @@ -150961,7 +136658,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tags: type: array @@ -150983,11 +136680,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -151009,7 +136706,6 @@ components: - 100base-tx - 100base-t1 - 1000base-t - - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t @@ -151063,7 +136759,6 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay - - ieee802.11be - ieee802.15.1 - other-wireless - gsm @@ -151145,8 +136840,6 @@ components: * `1000base-t` - 1000BASE-T (1GE) - * `1000base-tx` - 1000BASE-TX (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -151253,8 +136946,6 @@ components: * `ieee802.11ay` - IEEE 802.11ay - * `ieee802.11be` - IEEE 802.11be - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) @@ -151382,7 +137073,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: 8d111a81a4af2fa3 + x-spec-enum-id: b9a351ea129ed754 enabled: type: boolean mgmt_only: @@ -151563,7 +137254,7 @@ components: type: string tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true tags: type: array @@ -151590,7 +137281,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ site: - $ref: '#/components/schemas/BriefSiteRequest' + $ref: '#/components/schemas/SiteRequest' parent: type: integer nullable: true @@ -151614,7 +137305,7 @@ components: x-spec-enum-id: e363a8ddb138be50 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true facility: type: string @@ -151640,11 +137331,11 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module_bay: type: integer module_type: - $ref: '#/components/schemas/BriefModuleTypeRequest' + $ref: '#/components/schemas/ModuleTypeRequest' status: enum: - offline @@ -151696,7 +137387,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' + $ref: '#/components/schemas/ManufacturerRequest' model: type: string minLength: 1 @@ -151705,28 +137396,6 @@ components: type: string description: Discrete part number (optional) maxLength: 50 - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive' - x-spec-enum-id: f6e5562e0e98d69d weight: type: number format: double @@ -151771,10 +137440,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/BriefPowerPanelRequest' + $ref: '#/components/schemas/PowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/BriefRackRequest' + - $ref: '#/components/schemas/RackRequest' nullable: true name: type: string @@ -151843,7 +137512,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true comments: type: string @@ -151862,10 +137531,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -151938,7 +137607,6 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r - - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -151976,7 +137644,7 @@ components: - other - '' type: string - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 2ff919f516566857 description: 'Physical port type @@ -152102,8 +137770,6 @@ components: * `nema-l21-30r` - NEMA L21-30R - * `nema-l22-20r` - NEMA L22-20R - * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -152175,7 +137841,7 @@ components: * `other` - Other' power_port: allOf: - - $ref: '#/components/schemas/BriefPowerPortRequest' + - $ref: '#/components/schemas/PowerPortRequest' nullable: true feed_leg: enum: @@ -152218,11 +137884,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -152297,7 +137963,6 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r - - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -152457,8 +138122,6 @@ components: * `nema-l21-30r` - NEMA L21-30R - * `nema-l22-20r` - NEMA L22-20R - * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -152528,10 +138191,10 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 83934a5ad90d6138 + x-spec-enum-id: 2ff919f516566857 power_port: allOf: - - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' + - $ref: '#/components/schemas/PowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -152559,10 +138222,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -152635,7 +138298,6 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p - - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -152680,7 +138342,7 @@ components: - other - '' type: string - x-spec-enum-id: f1bd4aedff3a591b + x-spec-enum-id: 6d680dea031864ae description: 'Physical port type @@ -152806,8 +138468,6 @@ components: * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-20p` - NEMA L22-20P - * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -152928,11 +138588,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -153007,7 +138667,6 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p - - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -153174,8 +138833,6 @@ components: * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-20p` - NEMA L22-20P - * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -153259,7 +138916,7 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: f1bd4aedff3a591b + x-spec-enum-id: 6d680dea031864ae maximum_draw: type: integer maximum: 2147483647 @@ -153286,19 +138943,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true status: enum: @@ -153320,7 +138977,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/BriefRoleRequest' + - $ref: '#/components/schemas/RoleRequest' nullable: true is_pool: type: boolean @@ -153356,14 +139013,14 @@ components: nullable: true maxLength: 50 site: - $ref: '#/components/schemas/BriefSiteRequest' + $ref: '#/components/schemas/SiteRequest' location: allOf: - - $ref: '#/components/schemas/BriefLocationRequest' + - $ref: '#/components/schemas/LocationRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true status: enum: @@ -153385,7 +139042,7 @@ components: x-spec-enum-id: 0c556d55dc1baa13 role: allOf: - - $ref: '#/components/schemas/BriefRackRoleRequest' + - $ref: '#/components/schemas/RackRoleRequest' nullable: true serial: type: string @@ -153396,11 +139053,7 @@ components: nullable: true description: A unique tag used to identify this rack maxLength: 50 - rack_type: - allOf: - - $ref: '#/components/schemas/BriefRackTypeRequest' - nullable: true - form_factor: + type: enum: - 2-post-frame - 4-post-frame @@ -153519,16 +139172,6 @@ components: nullable: true description: Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - airflow: - enum: - - front-to-rear - - rear-to-front - - '' - type: string - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front' - x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 @@ -153544,165 +139187,15 @@ components: required: - name - site - WritableRackTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/BriefManufacturerRequest' - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - form_factor: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - type: string - description: '* `2-post-frame` - 2-post frame - - * `4-post-frame` - 4-post frame - - * `4-post-cabinet` - 4-post cabinet - - * `wall-frame` - Wall-mounted frame - - * `wall-frame-vertical` - Wall-mounted frame (vertical) - - * `wall-cabinet` - Wall-mounted cabinet - - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: 'Rail-to-rail width - - - * `10` - 10 inches - - * `19` - 19 inches - - * `21` - 21 inches - - * `23` - 23 inches' - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters - - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - form_factor - - manufacturer - - model - - slug WritableRearPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' module: allOf: - - $ref: '#/components/schemas/BriefModuleRequest' + - $ref: '#/components/schemas/ModuleRequest' nullable: true name: type: string @@ -153760,14 +139253,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -153862,24 +139347,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ @@ -153915,11 +139384,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/BriefDeviceTypeRequest' + - $ref: '#/components/schemas/DeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/BriefModuleTypeRequest' + - $ref: '#/components/schemas/ModuleTypeRequest' nullable: true name: type: string @@ -153979,14 +139448,6 @@ components: - urm-p4 - urm-p8 - splice - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -154081,24 +139542,8 @@ components: * `splice` - Splice - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B - - * `usb-micro-a` - USB Micro A - - * `usb-micro-b` - USB Micro B - - * `usb-micro-ab` - USB Micro AB - * `other` - Other' - x-spec-enum-id: c5086c01f1f9c18a + x-spec-enum-id: 0276d1110ada597a color: type: string pattern: ^[0-9a-f]{6}$ @@ -154149,11 +139594,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' + - $ref: '#/components/schemas/DeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/BriefVirtualMachineRequest' + - $ref: '#/components/schemas/VirtualMachineRequest' nullable: true name: type: string @@ -154305,15 +139750,15 @@ components: x-spec-enum-id: e363a8ddb138be50 region: allOf: - - $ref: '#/components/schemas/BriefRegionRequest' + - $ref: '#/components/schemas/RegionRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/BriefSiteGroupRequest' + - $ref: '#/components/schemas/SiteGroupRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true facility: type: string @@ -154322,7 +139767,6 @@ components: time_zone: type: string nullable: true - minLength: 1 description: type: string maxLength: 200 @@ -154419,7 +139863,7 @@ components: x-spec-enum-id: 0d65f7912cba74aa group: allOf: - - $ref: '#/components/schemas/BriefTunnelGroupRequest' + - $ref: '#/components/schemas/TunnelGroupRequest' nullable: true encapsulation: enum: @@ -154438,11 +139882,11 @@ components: x-spec-enum-id: 5fc36bb745852746 ipsec_profile: allOf: - - $ref: '#/components/schemas/BriefIPSecProfileRequest' + - $ref: '#/components/schemas/IPSecProfileRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true tunnel_id: type: integer @@ -154470,7 +139914,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/BriefTunnelRequest' + $ref: '#/components/schemas/TunnelRequest' role: enum: - peer @@ -154493,7 +139937,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true tags: type: array @@ -154512,11 +139956,11 @@ components: properties: site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/BriefVLANGroupRequest' + - $ref: '#/components/schemas/VLANGroupRequest' nullable: true vid: type: integer @@ -154530,7 +139974,7 @@ components: maxLength: 64 tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true status: enum: @@ -154549,7 +139993,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/BriefRoleRequest' + - $ref: '#/components/schemas/RoleRequest' nullable: true description: type: string @@ -154571,7 +140015,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/BriefVirtualMachineRequest' + $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 @@ -154616,7 +140060,7 @@ components: * `tagged-all` - Tagged (All)' untagged_vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true tagged_vlans: type: array @@ -154624,7 +140068,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/BriefVRFRequest' + - $ref: '#/components/schemas/VRFRequest' nullable: true tags: type: array @@ -154673,7 +140117,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/BriefDeviceRequest' + $ref: '#/components/schemas/DeviceRequest' identifier: type: integer maximum: 32767 @@ -154681,15 +140125,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true status: enum: @@ -154750,39 +140194,35 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/BriefSiteRequest' + - $ref: '#/components/schemas/SiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/BriefClusterRequest' + - $ref: '#/components/schemas/ClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/BriefDeviceRequest' + - $ref: '#/components/schemas/DeviceRequest' nullable: true - serial: - type: string - title: Serial number - maxLength: 50 role: allOf: - - $ref: '#/components/schemas/BriefDeviceRoleRequest' + - $ref: '#/components/schemas/DeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/BriefPlatformRequest' + - $ref: '#/components/schemas/PlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/BriefIPAddressRequest' + - $ref: '#/components/schemas/IPAddressRequest' nullable: true vcpus: type: number @@ -154802,7 +140242,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (MB) + title: Disk (GB) description: type: string maxLength: 200 @@ -154810,7 +140250,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/BriefConfigTemplateRequest' + - $ref: '#/components/schemas/ConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -154868,7 +140308,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' + - $ref: '#/components/schemas/WirelessLANGroupRequest' nullable: true status: enum: @@ -154887,11 +140327,11 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/BriefVLANRequest' + - $ref: '#/components/schemas/VLANRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true auth_type: enum: @@ -154944,9 +140384,9 @@ components: description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/BriefInterfaceRequest' + $ref: '#/components/schemas/InterfaceRequest' interface_b: - $ref: '#/components/schemas/BriefInterfaceRequest' + $ref: '#/components/schemas/InterfaceRequest' ssid: type: string maxLength: 32 @@ -154964,7 +140404,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/BriefTenantRequest' + - $ref: '#/components/schemas/TenantRequest' nullable: true auth_type: enum: @@ -155001,30 +140441,6 @@ components: type: string title: Pre-shared key maxLength: 64 - distance: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - distance_unit: - enum: - - km - - m - - mi - - ft - - '' - type: string - description: '* `km` - Kilometers - - * `m` - Meters - - * `mi` - Miles - - * `ft` - Feet' - x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 diff --git a/api_circuits.go b/api_circuits.go index 9e5981154..7e493535b 100644 --- a/api_circuits.go +++ b/api_circuits.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,3981 +24,6 @@ import ( // CircuitsAPIService CircuitsAPI service type CircuitsAPIService service -type ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest -} - -func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { - r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy - -Delete a list of Circuit group assignment objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { - return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupAssignmentRequest == nil { - return nil, reportError("circuitGroupAssignmentRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupAssignmentRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest -} - -func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { - r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate - -Patch a list of Circuit group assignment objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { - return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []CircuitGroupAssignment -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitGroupAssignment - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupAssignmentRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest -} - -func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { - r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate - -Put a list of Circuit group assignment objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { - return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []CircuitGroupAssignment -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitGroupAssignment - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupAssignmentRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest -} - -func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsCreateRequest { - r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsCreateExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate - -Post a list of Circuit group assignment objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupAssignmentsCreateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest { - return ApiCircuitsCircuitGroupAssignmentsCreateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return CircuitGroupAssignment -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroupAssignment - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableCircuitGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableCircuitGroupAssignmentRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 -} - -func (r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsDestroyExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy - -Delete a Circuit group assignment object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Circuit group assignment. - @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest { - return ApiCircuitsCircuitGroupAssignmentsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsListRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuit *[]string - circuitN *[]string - circuitId *[]int32 - circuitIdN *[]int32 - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - offset *int32 - ordering *string - priority *CircuitsCircuitGroupAssignmentsListPriorityParameter - priorityN *CircuitsCircuitGroupAssignmentsListPriorityParameter - provider *[]string - providerN *[]string - providerId *[]int32 - providerIdN *[]int32 - q *string - tag *[]string - tagN *[]string - updatedByRequest *string -} - -// Circuit (CID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Circuit(circuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.circuit = &circuit - return r -} - -// Circuit (CID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitN(circuitN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.circuitN = &circuitN - return r -} - -// Circuit (ID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.circuitId = &circuitId - return r -} - -// Circuit (ID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitIdN(circuitIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.circuitIdN = &circuitIdN - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.created = &created - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdN = &createdN - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.createdByRequest = &createdByRequest - return r -} - -// Circuit group (slug) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Group(group []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.group = &group - return r -} - -// Circuit group (slug) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupN(groupN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.groupN = &groupN - return r -} - -// Circuit group (ID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupId(groupId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.groupId = &groupId - return r -} - -// Circuit group (ID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.groupIdN = &groupIdN - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Id(id []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.id = &id - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.idN = &idN - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdated = &lastUpdated - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.limit = &limit - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} - -// The initial index from which to return the results. -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.ordering = &ordering - return r -} - -// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.priority = &priority - return r -} - -// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) PriorityN(priorityN CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.priorityN = &priorityN - return r -} - -// Provider (slug) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Provider(provider []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.provider = &provider - return r -} - -// Provider (slug) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.providerN = &providerN - return r -} - -// Provider (ID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.providerId = &providerId - return r -} - -// Provider (ID) -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.providerIdN = &providerIdN - return r -} - -// Search -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Q(q string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.q = &q - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.tag = &tag - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.tagN = &tagN - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Execute() (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsListExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList - -Get a list of Circuit group assignment objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupAssignmentsListRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest { - return ApiCircuitsCircuitGroupAssignmentsListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedCircuitGroupAssignmentList -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitGroupAssignmentList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.circuit != nil { - t := *r.circuit - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", t, "multi") - } - } - if r.circuitN != nil { - t := *r.circuitN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", t, "multi") - } - } - if r.circuitId != nil { - t := *r.circuitId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "multi") - } - } - if r.circuitIdN != nil { - t := *r.circuitIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", t, "multi") - } - } - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } - } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } - } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } - } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } - } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } - } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.group != nil { - t := *r.group - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") - } - } - if r.groupN != nil { - t := *r.groupN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") - } - } - if r.groupId != nil { - t := *r.groupId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") - } - } - if r.groupIdN != nil { - t := *r.groupIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") - } - } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } - } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } - } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") - } - } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } - } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } - } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") - } - } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") - } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.priority != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "") - } - if r.priorityN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", r.priorityN, "") - } - if r.provider != nil { - t := *r.provider - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") - } - } - if r.providerN != nil { - t := *r.providerN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") - } - } - if r.providerId != nil { - t := *r.providerId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") - } - } - if r.providerIdN != nil { - t := *r.providerIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") - } - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.tag != nil { - t := *r.tag - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") - } - } - if r.tagN != nil { - t := *r.tagN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") - } - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedWritableCircuitGroupAssignmentRequest *PatchedWritableCircuitGroupAssignmentRequest -} - -func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { - r.patchedWritableCircuitGroupAssignmentRequest = &patchedWritableCircuitGroupAssignmentRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate - -Patch a Circuit group assignment object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Circuit group assignment. - @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { - return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CircuitGroupAssignment -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroupAssignment - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedWritableCircuitGroupAssignmentRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 -} - -func (r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsRetrieveExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve - -Get a Circuit group assignment object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Circuit group assignment. - @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest { - return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CircuitGroupAssignment -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroupAssignment - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupAssignmentsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest -} - -func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { - r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest - return r -} - -func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupAssignmentsUpdateExecute(r) -} - -/* -CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate - -Put a Circuit group assignment object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this Circuit group assignment. - @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { - return ApiCircuitsCircuitGroupAssignmentsUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CircuitGroupAssignment -func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroupAssignment - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableCircuitGroupAssignmentRequest == nil { - return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableCircuitGroupAssignmentRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupRequest *[]CircuitGroupRequest -} - -func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkDestroyRequest { - r.circuitGroupRequest = &circuitGroupRequest - return r -} - -func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsBulkDestroyExecute(r) -} - -/* -CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy - -Delete a list of circuit group objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupsBulkDestroyRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest { - return ApiCircuitsCircuitGroupsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupRequest == nil { - return nil, reportError("circuitGroupRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupRequest *[]CircuitGroupRequest -} - -func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { - r.circuitGroupRequest = &circuitGroupRequest - return r -} - -func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsBulkPartialUpdateExecute(r) -} - -/* -CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate - -Patch a list of circuit group objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { - return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []CircuitGroup -func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitGroup - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupRequest == nil { - return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupRequest *[]CircuitGroupRequest -} - -func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkUpdateRequest { - r.circuitGroupRequest = &circuitGroupRequest - return r -} - -func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsBulkUpdateExecute(r) -} - -/* -CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate - -Put a list of circuit group objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupsBulkUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest { - return ApiCircuitsCircuitGroupsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []CircuitGroup -func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []CircuitGroup - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupRequest == nil { - return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsCreateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - circuitGroupRequest *CircuitGroupRequest -} - -func (r ApiCircuitsCircuitGroupsCreateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsCreateRequest { - r.circuitGroupRequest = &circuitGroupRequest - return r -} - -func (r ApiCircuitsCircuitGroupsCreateRequest) Execute() (*CircuitGroup, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsCreateExecute(r) -} - -/* -CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate - -Post a list of circuit group objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupsCreateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest { - return ApiCircuitsCircuitGroupsCreateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return CircuitGroup -func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroup - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupRequest == nil { - return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsDestroyRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 -} - -func (r ApiCircuitsCircuitGroupsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsDestroyExecute(r) -} - -/* -CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy - -Delete a circuit group object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit group. - @return ApiCircuitsCircuitGroupsDestroyRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest { - return ApiCircuitsCircuitGroupsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsListRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string - tenantId *[]*int32 - tenantIdN *[]*int32 - updatedByRequest *string -} - -func (r ApiCircuitsCircuitGroupsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.created = &created - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.createdN = &createdN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupsListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) Description(description []string) ApiCircuitsCircuitGroupsListRequest { - r.description = &description - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitGroupsListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitGroupsListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) Id(id []int32) ApiCircuitsCircuitGroupsListRequest { - r.id = &id - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupsListRequest { - r.idN = &idN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdated = &lastUpdated - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupsListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiCircuitsCircuitGroupsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupsListRequest { - r.limit = &limit - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupsListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) Name(name []string) ApiCircuitsCircuitGroupsListRequest { - r.name = &name - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitGroupsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameIc(nameIc []string) ApiCircuitsCircuitGroupsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameIe(nameIe []string) ApiCircuitsCircuitGroupsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameIew(nameIew []string) ApiCircuitsCircuitGroupsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitGroupsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameN(nameN []string) ApiCircuitsCircuitGroupsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameNic(nameNic []string) ApiCircuitsCircuitGroupsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameNie(nameNie []string) ApiCircuitsCircuitGroupsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitGroupsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitGroupsListRequest { - r.nameNisw = &nameNisw - return r -} - -// The initial index from which to return the results. -func (r ApiCircuitsCircuitGroupsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiCircuitsCircuitGroupsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupsListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiCircuitsCircuitGroupsListRequest) Q(q string) ApiCircuitsCircuitGroupsListRequest { - r.q = &q - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) Slug(slug []string) ApiCircuitsCircuitGroupsListRequest { - r.slug = &slug - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitGroupsListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitGroupsListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitGroupsListRequest { - r.slugIe = &slugIe - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitGroupsListRequest { - r.slugIew = &slugIew - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitGroupsListRequest { - r.slugIsw = &slugIsw - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugN(slugN []string) ApiCircuitsCircuitGroupsListRequest { - r.slugN = &slugN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitGroupsListRequest { - r.slugNic = &slugNic - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitGroupsListRequest { - r.slugNie = &slugNie - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitGroupsListRequest { - r.slugNiew = &slugNiew - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitGroupsListRequest { - r.slugNisw = &slugNisw - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupsListRequest { - r.tag = &tag - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupsListRequest { - r.tagN = &tagN - return r -} - -// Tenant (slug) -func (r ApiCircuitsCircuitGroupsListRequest) Tenant(tenant []string) ApiCircuitsCircuitGroupsListRequest { - r.tenant = &tenant - return r -} - -// Tenant (slug) -func (r ApiCircuitsCircuitGroupsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitGroupsListRequest { - r.tenantN = &tenantN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitGroupsListRequest { - r.tenantGroup = &tenantGroup - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitGroupsListRequest { - r.tenantGroupN = &tenantGroupN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitGroupsListRequest { - r.tenantGroupId = &tenantGroupId - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitGroupsListRequest { - r.tenantGroupIdN = &tenantGroupIdN - return r -} - -// Tenant (ID) -func (r ApiCircuitsCircuitGroupsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitGroupsListRequest { - r.tenantId = &tenantId - return r -} - -// Tenant (ID) -func (r ApiCircuitsCircuitGroupsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitGroupsListRequest { - r.tenantIdN = &tenantIdN - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupsListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiCircuitsCircuitGroupsListRequest) Execute() (*PaginatedCircuitGroupList, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsListExecute(r) -} - -/* -CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList - -Get a list of circuit group objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCircuitsCircuitGroupsListRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest { - return ApiCircuitsCircuitGroupsListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedCircuitGroupList -func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedCircuitGroupList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } - } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } - } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } - } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } - } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } - } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") - } - } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") - } - } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } - } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } - } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } - } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") - } - } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") - } - } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } - } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } - } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } - } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") - } - } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } - } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } - } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") - } - } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") - } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } - } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } - } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") - } - } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } - } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } - } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } - } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") - } - } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } - } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") - } - } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } - } - if r.slugIe != nil { - t := *r.slugIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") - } - } - if r.slugIew != nil { - t := *r.slugIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") - } - } - if r.slugIsw != nil { - t := *r.slugIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } - } - if r.slugN != nil { - t := *r.slugN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } - } - if r.slugNic != nil { - t := *r.slugNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } - } - if r.slugNie != nil { - t := *r.slugNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") - } - } - if r.slugNiew != nil { - t := *r.slugNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") - } - } - if r.slugNisw != nil { - t := *r.slugNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") - } - } - if r.tag != nil { - t := *r.tag - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") - } - } - if r.tagN != nil { - t := *r.tagN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") - } - } - if r.tenant != nil { - t := *r.tenant - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") - } - } - if r.tenantN != nil { - t := *r.tenantN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") - } - } - if r.tenantGroup != nil { - t := *r.tenantGroup - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") - } - } - if r.tenantGroupN != nil { - t := *r.tenantGroupN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") - } - } - if r.tenantGroupId != nil { - t := *r.tenantGroupId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") - } - } - if r.tenantGroupIdN != nil { - t := *r.tenantGroupIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") - } - } - if r.tenantId != nil { - t := *r.tenantId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") - } - } - if r.tenantIdN != nil { - t := *r.tenantIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") - } - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - patchedCircuitGroupRequest *PatchedCircuitGroupRequest -} - -func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) PatchedCircuitGroupRequest(patchedCircuitGroupRequest PatchedCircuitGroupRequest) ApiCircuitsCircuitGroupsPartialUpdateRequest { - r.patchedCircuitGroupRequest = &patchedCircuitGroupRequest - return r -} - -func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsPartialUpdateExecute(r) -} - -/* -CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate - -Patch a circuit group object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit group. - @return ApiCircuitsCircuitGroupsPartialUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest { - return ApiCircuitsCircuitGroupsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CircuitGroup -func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroup - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedCircuitGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsRetrieveRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 -} - -func (r ApiCircuitsCircuitGroupsRetrieveRequest) Execute() (*CircuitGroup, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsRetrieveExecute(r) -} - -/* -CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve - -Get a circuit group object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit group. - @return ApiCircuitsCircuitGroupsRetrieveRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest { - return ApiCircuitsCircuitGroupsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CircuitGroup -func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroup - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCircuitsCircuitGroupsUpdateRequest struct { - ctx context.Context - ApiService *CircuitsAPIService - id int32 - circuitGroupRequest *CircuitGroupRequest -} - -func (r ApiCircuitsCircuitGroupsUpdateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsUpdateRequest { - r.circuitGroupRequest = &circuitGroupRequest - return r -} - -func (r ApiCircuitsCircuitGroupsUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { - return r.ApiService.CircuitsCircuitGroupsUpdateExecute(r) -} - -/* -CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate - -Put a circuit group object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this circuit group. - @return ApiCircuitsCircuitGroupsUpdateRequest -*/ -func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest { - return ApiCircuitsCircuitGroupsUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return CircuitGroup -func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *CircuitGroup - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.circuitGroupRequest == nil { - return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.circuitGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { ctx context.Context ApiService *CircuitsAPIService @@ -9590,8 +5615,8 @@ type ApiCircuitsCircuitsListRequest struct { commitRateN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -9649,16 +5674,16 @@ type ApiCircuitsCircuitsListRequest struct { providerNetworkId *[]int32 providerNetworkIdN *[]int32 q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 status *[]string @@ -9667,10 +5692,10 @@ type ApiCircuitsCircuitsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]*int32 @@ -9793,12 +5818,14 @@ func (r ApiCircuitsCircuitsListRequest) ContactN(contactN []int32) ApiCircuitsCi return r } -func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []string) ApiCircuitsCircuitsListRequest { +// Contact group +func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []int32) ApiCircuitsCircuitsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsCircuitsListRequest { +// Contact group +func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsCircuitsListRequest { r.contactGroupN = &contactGroupN return r } @@ -10104,22 +6131,26 @@ func (r ApiCircuitsCircuitsListRequest) Q(q string) ApiCircuitsCircuitsListReque return r } -func (r ApiCircuitsCircuitsListRequest) Region(region []string) ApiCircuitsCircuitsListRequest { +// Region (slug) +func (r ApiCircuitsCircuitsListRequest) Region(region []int32) ApiCircuitsCircuitsListRequest { r.region = ®ion return r } -func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []string) ApiCircuitsCircuitsListRequest { +// Region (slug) +func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []int32) ApiCircuitsCircuitsListRequest { r.regionN = ®ionN return r } -func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []string) ApiCircuitsCircuitsListRequest { +// Region (ID) +func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []int32) ApiCircuitsCircuitsListRequest { r.regionId = ®ionId return r } -func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []string) ApiCircuitsCircuitsListRequest { +// Region (ID) +func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []int32) ApiCircuitsCircuitsListRequest { r.regionIdN = ®ionIdN return r } @@ -10136,22 +6167,26 @@ func (r ApiCircuitsCircuitsListRequest) SiteN(siteN []string) ApiCircuitsCircuit return r } -func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []string) ApiCircuitsCircuitsListRequest { +// Site group (slug) +func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []int32) ApiCircuitsCircuitsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsCircuitsListRequest { +// Site group (slug) +func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsCircuitsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsCircuitsListRequest { +// Site group (ID) +func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsCircuitsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsCircuitsListRequest { +// Site group (ID) +func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsCircuitsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -10200,22 +6235,26 @@ func (r ApiCircuitsCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsCir return r } -func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitsListRequest { +// Tenant Group (slug) +func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []int32) ApiCircuitsCircuitsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitsListRequest { +// Tenant Group (slug) +func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []int32) ApiCircuitsCircuitsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitsListRequest { +// Tenant Group (ID) +func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []int32) ApiCircuitsCircuitsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitsListRequest { +// Tenant Group (ID) +func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiCircuitsCircuitsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -16890,8 +12929,8 @@ type ApiCircuitsProvidersListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -16943,16 +12982,16 @@ type ApiCircuitsProvidersListRequest struct { offset *int32 ordering *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -17007,12 +13046,14 @@ func (r ApiCircuitsProvidersListRequest) ContactN(contactN []int32) ApiCircuitsP return r } -func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []string) ApiCircuitsProvidersListRequest { +// Contact group +func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []int32) ApiCircuitsProvidersListRequest { r.contactGroup = &contactGroup return r } -func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsProvidersListRequest { +// Contact group +func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsProvidersListRequest { r.contactGroupN = &contactGroupN return r } @@ -17278,22 +13319,26 @@ func (r ApiCircuitsProvidersListRequest) Q(q string) ApiCircuitsProvidersListReq return r } -func (r ApiCircuitsProvidersListRequest) Region(region []string) ApiCircuitsProvidersListRequest { +// Region (slug) +func (r ApiCircuitsProvidersListRequest) Region(region []int32) ApiCircuitsProvidersListRequest { r.region = ®ion return r } -func (r ApiCircuitsProvidersListRequest) RegionN(regionN []string) ApiCircuitsProvidersListRequest { +// Region (slug) +func (r ApiCircuitsProvidersListRequest) RegionN(regionN []int32) ApiCircuitsProvidersListRequest { r.regionN = ®ionN return r } -func (r ApiCircuitsProvidersListRequest) RegionId(regionId []string) ApiCircuitsProvidersListRequest { +// Region (ID) +func (r ApiCircuitsProvidersListRequest) RegionId(regionId []int32) ApiCircuitsProvidersListRequest { r.regionId = ®ionId return r } -func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []string) ApiCircuitsProvidersListRequest { +// Region (ID) +func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []int32) ApiCircuitsProvidersListRequest { r.regionIdN = ®ionIdN return r } @@ -17310,22 +13355,26 @@ func (r ApiCircuitsProvidersListRequest) SiteN(siteN []string) ApiCircuitsProvid return r } -func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []string) ApiCircuitsProvidersListRequest { +// Site group (slug) +func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []int32) ApiCircuitsProvidersListRequest { r.siteGroup = &siteGroup return r } -func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsProvidersListRequest { +// Site group (slug) +func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsProvidersListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsProvidersListRequest { +// Site group (ID) +func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsProvidersListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsProvidersListRequest { +// Site group (ID) +func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsProvidersListRequest { r.siteGroupIdN = &siteGroupIdN return r } diff --git a/api_core.go b/api_core.go index ecae14a73..73022d419 100644 --- a/api_core.go +++ b/api_core.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -4567,1155 +4567,3 @@ func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } - -type ApiCoreObjectChangesListRequest struct { - ctx context.Context - ApiService *CoreAPIService - action *CoreObjectChangesListActionParameter - actionN *CoreObjectChangesListActionParameter - changedObjectId *[]int32 - changedObjectIdEmpty *bool - changedObjectIdGt *[]int32 - changedObjectIdGte *[]int32 - changedObjectIdLt *[]int32 - changedObjectIdLte *[]int32 - changedObjectIdN *[]int32 - changedObjectType *string - changedObjectTypeN *string - changedObjectTypeId *[]int32 - changedObjectTypeIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - objectRepr *[]string - objectReprEmpty *bool - objectReprIc *[]string - objectReprIe *[]string - objectReprIew *[]string - objectReprIsw *[]string - objectReprN *[]string - objectReprNic *[]string - objectReprNie *[]string - objectReprNiew *[]string - objectReprNisw *[]string - offset *int32 - ordering *string - q *string - relatedObjectId *[]int32 - relatedObjectIdEmpty *bool - relatedObjectIdGt *[]int32 - relatedObjectIdGte *[]int32 - relatedObjectIdLt *[]int32 - relatedObjectIdLte *[]int32 - relatedObjectIdN *[]int32 - relatedObjectType *int32 - relatedObjectTypeN *int32 - requestId *string - timeAfter *time.Time - timeBefore *time.Time - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - userName *[]string - userNameEmpty *bool - userNameIc *[]string - userNameIe *[]string - userNameIew *[]string - userNameIsw *[]string - userNameN *[]string - userNameNic *[]string - userNameNie *[]string - userNameNiew *[]string - userNameNisw *[]string -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiCoreObjectChangesListRequest) Action(action CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { - r.action = &action - return r -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiCoreObjectChangesListRequest) ActionN(actionN CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { - r.actionN = &actionN - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiCoreObjectChangesListRequest { - r.changedObjectId = &changedObjectId - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { - r.changedObjectIdEmpty = &changedObjectIdEmpty - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiCoreObjectChangesListRequest { - r.changedObjectIdGt = &changedObjectIdGt - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiCoreObjectChangesListRequest { - r.changedObjectIdGte = &changedObjectIdGte - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiCoreObjectChangesListRequest { - r.changedObjectIdLt = &changedObjectIdLt - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiCoreObjectChangesListRequest { - r.changedObjectIdLte = &changedObjectIdLte - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiCoreObjectChangesListRequest { - r.changedObjectIdN = &changedObjectIdN - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiCoreObjectChangesListRequest { - r.changedObjectType = &changedObjectType - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiCoreObjectChangesListRequest { - r.changedObjectTypeN = &changedObjectTypeN - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiCoreObjectChangesListRequest { - r.changedObjectTypeId = &changedObjectTypeId - return r -} - -func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiCoreObjectChangesListRequest { - r.changedObjectTypeIdN = &changedObjectTypeIdN - return r -} - -func (r ApiCoreObjectChangesListRequest) Id(id []int32) ApiCoreObjectChangesListRequest { - r.id = &id - return r -} - -func (r ApiCoreObjectChangesListRequest) IdEmpty(idEmpty bool) ApiCoreObjectChangesListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiCoreObjectChangesListRequest) IdGt(idGt []int32) ApiCoreObjectChangesListRequest { - r.idGt = &idGt - return r -} - -func (r ApiCoreObjectChangesListRequest) IdGte(idGte []int32) ApiCoreObjectChangesListRequest { - r.idGte = &idGte - return r -} - -func (r ApiCoreObjectChangesListRequest) IdLt(idLt []int32) ApiCoreObjectChangesListRequest { - r.idLt = &idLt - return r -} - -func (r ApiCoreObjectChangesListRequest) IdLte(idLte []int32) ApiCoreObjectChangesListRequest { - r.idLte = &idLte - return r -} - -func (r ApiCoreObjectChangesListRequest) IdN(idN []int32) ApiCoreObjectChangesListRequest { - r.idN = &idN - return r -} - -// Number of results to return per page. -func (r ApiCoreObjectChangesListRequest) Limit(limit int32) ApiCoreObjectChangesListRequest { - r.limit = &limit - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiCoreObjectChangesListRequest { - r.objectRepr = &objectRepr - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiCoreObjectChangesListRequest { - r.objectReprEmpty = &objectReprEmpty - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiCoreObjectChangesListRequest { - r.objectReprIc = &objectReprIc - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiCoreObjectChangesListRequest { - r.objectReprIe = &objectReprIe - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiCoreObjectChangesListRequest { - r.objectReprIew = &objectReprIew - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiCoreObjectChangesListRequest { - r.objectReprIsw = &objectReprIsw - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiCoreObjectChangesListRequest { - r.objectReprN = &objectReprN - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiCoreObjectChangesListRequest { - r.objectReprNic = &objectReprNic - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiCoreObjectChangesListRequest { - r.objectReprNie = &objectReprNie - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiCoreObjectChangesListRequest { - r.objectReprNiew = &objectReprNiew - return r -} - -func (r ApiCoreObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiCoreObjectChangesListRequest { - r.objectReprNisw = &objectReprNisw - return r -} - -// The initial index from which to return the results. -func (r ApiCoreObjectChangesListRequest) Offset(offset int32) ApiCoreObjectChangesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiCoreObjectChangesListRequest) Ordering(ordering string) ApiCoreObjectChangesListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiCoreObjectChangesListRequest) Q(q string) ApiCoreObjectChangesListRequest { - r.q = &q - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiCoreObjectChangesListRequest { - r.relatedObjectId = &relatedObjectId - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { - r.relatedObjectIdEmpty = &relatedObjectIdEmpty - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiCoreObjectChangesListRequest { - r.relatedObjectIdGt = &relatedObjectIdGt - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiCoreObjectChangesListRequest { - r.relatedObjectIdGte = &relatedObjectIdGte - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiCoreObjectChangesListRequest { - r.relatedObjectIdLt = &relatedObjectIdLt - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiCoreObjectChangesListRequest { - r.relatedObjectIdLte = &relatedObjectIdLte - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiCoreObjectChangesListRequest { - r.relatedObjectIdN = &relatedObjectIdN - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiCoreObjectChangesListRequest { - r.relatedObjectType = &relatedObjectType - return r -} - -func (r ApiCoreObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiCoreObjectChangesListRequest { - r.relatedObjectTypeN = &relatedObjectTypeN - return r -} - -func (r ApiCoreObjectChangesListRequest) RequestId(requestId string) ApiCoreObjectChangesListRequest { - r.requestId = &requestId - return r -} - -func (r ApiCoreObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiCoreObjectChangesListRequest { - r.timeAfter = &timeAfter - return r -} - -func (r ApiCoreObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiCoreObjectChangesListRequest { - r.timeBefore = &timeBefore - return r -} - -// User name -func (r ApiCoreObjectChangesListRequest) User(user []string) ApiCoreObjectChangesListRequest { - r.user = &user - return r -} - -// User name -func (r ApiCoreObjectChangesListRequest) UserN(userN []string) ApiCoreObjectChangesListRequest { - r.userN = &userN - return r -} - -// User (ID) -func (r ApiCoreObjectChangesListRequest) UserId(userId []*int32) ApiCoreObjectChangesListRequest { - r.userId = &userId - return r -} - -// User (ID) -func (r ApiCoreObjectChangesListRequest) UserIdN(userIdN []*int32) ApiCoreObjectChangesListRequest { - r.userIdN = &userIdN - return r -} - -func (r ApiCoreObjectChangesListRequest) UserName(userName []string) ApiCoreObjectChangesListRequest { - r.userName = &userName - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiCoreObjectChangesListRequest { - r.userNameEmpty = &userNameEmpty - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameIc(userNameIc []string) ApiCoreObjectChangesListRequest { - r.userNameIc = &userNameIc - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameIe(userNameIe []string) ApiCoreObjectChangesListRequest { - r.userNameIe = &userNameIe - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameIew(userNameIew []string) ApiCoreObjectChangesListRequest { - r.userNameIew = &userNameIew - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiCoreObjectChangesListRequest { - r.userNameIsw = &userNameIsw - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameN(userNameN []string) ApiCoreObjectChangesListRequest { - r.userNameN = &userNameN - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameNic(userNameNic []string) ApiCoreObjectChangesListRequest { - r.userNameNic = &userNameNic - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameNie(userNameNie []string) ApiCoreObjectChangesListRequest { - r.userNameNie = &userNameNie - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiCoreObjectChangesListRequest { - r.userNameNiew = &userNameNiew - return r -} - -func (r ApiCoreObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiCoreObjectChangesListRequest { - r.userNameNisw = &userNameNisw - return r -} - -func (r ApiCoreObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { - return r.ApiService.CoreObjectChangesListExecute(r) -} - -/* -CoreObjectChangesList Method for CoreObjectChangesList - -Retrieve a list of recent changes. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiCoreObjectChangesListRequest -*/ -func (a *CoreAPIService) CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest { - return ApiCoreObjectChangesListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedObjectChangeList -func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedObjectChangeList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/core/object-changes/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.action != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") - } - if r.actionN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") - } - if r.changedObjectId != nil { - t := *r.changedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") - } - } - if r.changedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") - } - if r.changedObjectIdGt != nil { - t := *r.changedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") - } - } - if r.changedObjectIdGte != nil { - t := *r.changedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") - } - } - if r.changedObjectIdLt != nil { - t := *r.changedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") - } - } - if r.changedObjectIdLte != nil { - t := *r.changedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") - } - } - if r.changedObjectIdN != nil { - t := *r.changedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") - } - } - if r.changedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") - } - if r.changedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") - } - if r.changedObjectTypeId != nil { - t := *r.changedObjectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") - } - } - if r.changedObjectTypeIdN != nil { - t := *r.changedObjectTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") - } - } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.objectRepr != nil { - t := *r.objectRepr - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") - } - } - if r.objectReprEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") - } - if r.objectReprIc != nil { - t := *r.objectReprIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") - } - } - if r.objectReprIe != nil { - t := *r.objectReprIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") - } - } - if r.objectReprIew != nil { - t := *r.objectReprIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") - } - } - if r.objectReprIsw != nil { - t := *r.objectReprIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") - } - } - if r.objectReprN != nil { - t := *r.objectReprN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") - } - } - if r.objectReprNic != nil { - t := *r.objectReprNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") - } - } - if r.objectReprNie != nil { - t := *r.objectReprNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") - } - } - if r.objectReprNiew != nil { - t := *r.objectReprNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") - } - } - if r.objectReprNisw != nil { - t := *r.objectReprNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedObjectId != nil { - t := *r.relatedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") - } - } - if r.relatedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") - } - if r.relatedObjectIdGt != nil { - t := *r.relatedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") - } - } - if r.relatedObjectIdGte != nil { - t := *r.relatedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") - } - } - if r.relatedObjectIdLt != nil { - t := *r.relatedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") - } - } - if r.relatedObjectIdLte != nil { - t := *r.relatedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") - } - } - if r.relatedObjectIdN != nil { - t := *r.relatedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") - } - } - if r.relatedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") - } - if r.relatedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") - } - if r.requestId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") - } - if r.timeAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") - } - if r.timeBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } - } - if r.userN != nil { - t := *r.userN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") - } - } - if r.userId != nil { - t := *r.userId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") - } - } - if r.userIdN != nil { - t := *r.userIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") - } - } - if r.userName != nil { - t := *r.userName - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") - } - } - if r.userNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") - } - if r.userNameIc != nil { - t := *r.userNameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") - } - } - if r.userNameIe != nil { - t := *r.userNameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") - } - } - if r.userNameIew != nil { - t := *r.userNameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") - } - } - if r.userNameIsw != nil { - t := *r.userNameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") - } - } - if r.userNameN != nil { - t := *r.userNameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") - } - } - if r.userNameNic != nil { - t := *r.userNameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") - } - } - if r.userNameNie != nil { - t := *r.userNameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") - } - } - if r.userNameNiew != nil { - t := *r.userNameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") - } - } - if r.userNameNisw != nil { - t := *r.userNameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") - } - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiCoreObjectChangesRetrieveRequest struct { - ctx context.Context - ApiService *CoreAPIService - id int32 -} - -func (r ApiCoreObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { - return r.ApiService.CoreObjectChangesRetrieveExecute(r) -} - -/* -CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve - -Retrieve a list of recent changes. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object change. - @return ApiCoreObjectChangesRetrieveRequest -*/ -func (a *CoreAPIService) CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest { - return ApiCoreObjectChangesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return ObjectChange -func (a *CoreAPIService) CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectChange - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/core/object-changes/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} diff --git a/api_dcim.go b/api_dcim.go index a8d0c8b4b..0427ae7cc 100644 --- a/api_dcim.go +++ b/api_dcim.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2355,10 +2355,10 @@ type ApiDcimCablesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]int32 @@ -2796,22 +2796,26 @@ func (r ApiDcimCablesListRequest) TenantN(tenantN []string) ApiDcimCablesListReq return r } -func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []string) ApiDcimCablesListRequest { +// Tenant Group (slug) +func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []int32) ApiDcimCablesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimCablesListRequest { +// Tenant Group (slug) +func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimCablesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimCablesListRequest { +// Tenant Group (ID) +func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimCablesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimCablesListRequest { +// Tenant Group (ID) +func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimCablesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5062,6 +5066,8 @@ type ApiDcimConsolePortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -5091,6 +5097,8 @@ type ApiDcimConsolePortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -5217,6 +5225,18 @@ func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } +// Device type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePortTemplatesListRequest { r.id = &id return r @@ -5365,6 +5385,18 @@ func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } +// Module type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimConsolePortTemplatesListRequest) Name(name []string) ApiDcimConsolePortTemplatesListRequest { r.name = &name return r @@ -5711,6 +5743,28 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5998,6 +6052,28 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -7196,12 +7272,6 @@ type ApiDcimConsolePortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -7259,16 +7329,20 @@ type ApiDcimConsolePortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter @@ -7437,40 +7511,6 @@ func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimCons return r } -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsolePortsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsolePortsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsolePortsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsolePortsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimConsolePortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsolePortsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimConsolePortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsolePortsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest { r.deviceType = &deviceType @@ -7774,26 +7814,54 @@ func (r ApiDcimConsolePortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsoleP return r } -func (r ApiDcimConsolePortsListRequest) Region(region []string) ApiDcimConsolePortsListRequest { +// Region (slug) +func (r ApiDcimConsolePortsListRequest) Region(region []int32) ApiDcimConsolePortsListRequest { r.region = ®ion return r } -func (r ApiDcimConsolePortsListRequest) RegionN(regionN []string) ApiDcimConsolePortsListRequest { +// Region (slug) +func (r ApiDcimConsolePortsListRequest) RegionN(regionN []int32) ApiDcimConsolePortsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimConsolePortsListRequest) RegionId(regionId []string) ApiDcimConsolePortsListRequest { +// Region (ID) +func (r ApiDcimConsolePortsListRequest) RegionId(regionId []int32) ApiDcimConsolePortsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsolePortsListRequest { +// Region (ID) +func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsolePortsListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) Role(role []string) ApiDcimConsolePortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) RoleN(roleN []string) ApiDcimConsolePortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) RoleId(roleId []int32) ApiDcimConsolePortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsolePortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { r.site = &site @@ -7806,22 +7874,26 @@ func (r ApiDcimConsolePortsListRequest) SiteN(siteN []string) ApiDcimConsolePort return r } -func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsolePortsListRequest { +// Site group (slug) +func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsolePortsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsolePortsListRequest { +// Site group (slug) +func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsolePortsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsolePortsListRequest { +// Site group (ID) +func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsolePortsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsolePortsListRequest { +// Site group (ID) +func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsolePortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -8213,72 +8285,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -8870,6 +8876,50 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -10232,6 +10282,8 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -10261,6 +10313,8 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -10387,6 +10441,18 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeId return r } +// Device type (ID) +func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.id = &id return r @@ -10535,6 +10601,18 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeId return r } +// Module type (ID) +func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimConsoleServerPortTemplatesListRequest) Name(name []string) ApiDcimConsoleServerPortTemplatesListRequest { r.name = &name return r @@ -10881,6 +10959,28 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11168,6 +11268,28 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -12366,12 +12488,6 @@ type ApiDcimConsoleServerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -12429,16 +12545,20 @@ type ApiDcimConsoleServerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter @@ -12607,40 +12727,6 @@ func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDc return r } -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsoleServerPortsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsoleServerPortsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsoleServerPortsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsoleServerPortsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimConsoleServerPortsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest { r.deviceType = &deviceType @@ -12944,26 +13030,54 @@ func (r ApiDcimConsoleServerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimCo return r } -func (r ApiDcimConsoleServerPortsListRequest) Region(region []string) ApiDcimConsoleServerPortsListRequest { +// Region (slug) +func (r ApiDcimConsoleServerPortsListRequest) Region(region []int32) ApiDcimConsoleServerPortsListRequest { r.region = ®ion return r } -func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []string) ApiDcimConsoleServerPortsListRequest { +// Region (slug) +func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []int32) ApiDcimConsoleServerPortsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []string) ApiDcimConsoleServerPortsListRequest { +// Region (ID) +func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []int32) ApiDcimConsoleServerPortsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsoleServerPortsListRequest { +// Region (ID) +func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsoleServerPortsListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) Role(role []string) ApiDcimConsoleServerPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) RoleN(roleN []string) ApiDcimConsoleServerPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) RoleId(roleId []int32) ApiDcimConsoleServerPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { r.site = &site @@ -12976,22 +13090,26 @@ func (r ApiDcimConsoleServerPortsListRequest) SiteN(siteN []string) ApiDcimConso return r } -func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsoleServerPortsListRequest { +// Site group (slug) +func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsoleServerPortsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsoleServerPortsListRequest { +// Site group (slug) +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsoleServerPortsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsoleServerPortsListRequest { +// Site group (ID) +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsoleServerPortsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsoleServerPortsListRequest { +// Site group (ID) +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsoleServerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -13383,72 +13501,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14040,6 +14092,50 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -15402,6 +15498,8 @@ type ApiDcimDeviceBayTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 + devicetypeId *[]int32 + devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -15553,6 +15651,18 @@ func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int3 return r } +// Device type (ID) +func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTemplatesListRequest { r.id = &id return r @@ -16023,6 +16133,28 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -17474,12 +17606,6 @@ type ApiDcimDeviceBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -17537,16 +17663,20 @@ type ApiDcimDeviceBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -17677,40 +17807,6 @@ func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDevice return r } -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) DeviceRole(deviceRole []string) ApiDcimDeviceBaysListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimDeviceBaysListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimDeviceBaysListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimDeviceBaysListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimDeviceBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimDeviceBaysListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimDeviceBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimDeviceBaysListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest { r.deviceType = &deviceType @@ -18016,26 +18112,54 @@ func (r ApiDcimDeviceBaysListRequest) RackIdN(rackIdN []int32) ApiDcimDeviceBays return r } -func (r ApiDcimDeviceBaysListRequest) Region(region []string) ApiDcimDeviceBaysListRequest { +// Region (slug) +func (r ApiDcimDeviceBaysListRequest) Region(region []int32) ApiDcimDeviceBaysListRequest { r.region = ®ion return r } -func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []string) ApiDcimDeviceBaysListRequest { +// Region (slug) +func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []int32) ApiDcimDeviceBaysListRequest { r.regionN = ®ionN return r } -func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []string) ApiDcimDeviceBaysListRequest { +// Region (ID) +func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []int32) ApiDcimDeviceBaysListRequest { r.regionId = ®ionId return r } -func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []string) ApiDcimDeviceBaysListRequest { +// Region (ID) +func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimDeviceBaysListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) Role(role []string) ApiDcimDeviceBaysListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) RoleN(roleN []string) ApiDcimDeviceBaysListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) RoleId(roleId []int32) ApiDcimDeviceBaysListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimDeviceBaysListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { r.site = &site @@ -18048,22 +18172,26 @@ func (r ApiDcimDeviceBaysListRequest) SiteN(siteN []string) ApiDcimDeviceBaysLis return r } -func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []string) ApiDcimDeviceBaysListRequest { +// Site group (slug) +func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimDeviceBaysListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimDeviceBaysListRequest { +// Site group (slug) +func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDeviceBaysListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimDeviceBaysListRequest { +// Site group (ID) +func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDeviceBaysListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDeviceBaysListRequest { +// Site group (ID) +func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDeviceBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -18397,72 +18525,6 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -19070,6 +19132,50 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -26481,10 +26587,6 @@ type ApiDcimDevicesListRequest struct { assetTagNie *[]string assetTagNiew *[]string assetTagNisw *[]string - clusterGroup *[]string - clusterGroupN *[]string - clusterGroupId *[]int32 - clusterGroupIdN *[]int32 clusterId *[]*int32 clusterIdN *[]*int32 configTemplateId *[]*int32 @@ -26507,8 +26609,8 @@ type ApiDcimDevicesListRequest struct { consoleServerPorts *bool contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -26593,8 +26695,8 @@ type ApiDcimDevicesListRequest struct { latitudeN *[]float64 limit *int32 localContextData *bool - locationId *[]string - locationIdN *[]string + locationId *[]int32 + locationIdN *[]int32 longitude *[]float64 longitudeEmpty *bool longitudeGt *[]float64 @@ -26688,10 +26790,10 @@ type ApiDcimDevicesListRequest struct { rearPortCountLt *[]int32 rearPortCountLte *[]int32 rearPortCountN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 role *[]string roleN *[]string roleId *[]int32 @@ -26709,10 +26811,10 @@ type ApiDcimDevicesListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 status *[]string @@ -26721,10 +26823,10 @@ type ApiDcimDevicesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -26814,30 +26916,6 @@ func (r ApiDcimDevicesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimDe return r } -// Cluster group (slug) -func (r ApiDcimDevicesListRequest) ClusterGroup(clusterGroup []string) ApiDcimDevicesListRequest { - r.clusterGroup = &clusterGroup - return r -} - -// Cluster group (slug) -func (r ApiDcimDevicesListRequest) ClusterGroupN(clusterGroupN []string) ApiDcimDevicesListRequest { - r.clusterGroupN = &clusterGroupN - return r -} - -// Cluster group (ID) -func (r ApiDcimDevicesListRequest) ClusterGroupId(clusterGroupId []int32) ApiDcimDevicesListRequest { - r.clusterGroupId = &clusterGroupId - return r -} - -// Cluster group (ID) -func (r ApiDcimDevicesListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiDcimDevicesListRequest { - r.clusterGroupIdN = &clusterGroupIdN - return r -} - // VM cluster (ID) func (r ApiDcimDevicesListRequest) ClusterId(clusterId []*int32) ApiDcimDevicesListRequest { r.clusterId = &clusterId @@ -26956,12 +27034,14 @@ func (r ApiDcimDevicesListRequest) ContactN(contactN []int32) ApiDcimDevicesList return r } -func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []string) ApiDcimDevicesListRequest { +// Contact group +func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []int32) ApiDcimDevicesListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []string) ApiDcimDevicesListRequest { +// Contact group +func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimDevicesListRequest { r.contactGroupN = &contactGroupN return r } @@ -27402,12 +27482,14 @@ func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDc return r } -func (r ApiDcimDevicesListRequest) LocationId(locationId []string) ApiDcimDevicesListRequest { +// Location (ID) +func (r ApiDcimDevicesListRequest) LocationId(locationId []int32) ApiDcimDevicesListRequest { r.locationId = &locationId return r } -func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []string) ApiDcimDevicesListRequest { +// Location (ID) +func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []int32) ApiDcimDevicesListRequest { r.locationIdN = &locationIdN return r } @@ -27906,22 +27988,26 @@ func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDci return r } -func (r ApiDcimDevicesListRequest) Region(region []string) ApiDcimDevicesListRequest { +// Region (slug) +func (r ApiDcimDevicesListRequest) Region(region []int32) ApiDcimDevicesListRequest { r.region = ®ion return r } -func (r ApiDcimDevicesListRequest) RegionN(regionN []string) ApiDcimDevicesListRequest { +// Region (slug) +func (r ApiDcimDevicesListRequest) RegionN(regionN []int32) ApiDcimDevicesListRequest { r.regionN = ®ionN return r } -func (r ApiDcimDevicesListRequest) RegionId(regionId []string) ApiDcimDevicesListRequest { +// Region (ID) +func (r ApiDcimDevicesListRequest) RegionId(regionId []int32) ApiDcimDevicesListRequest { r.regionId = ®ionId return r } -func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []string) ApiDcimDevicesListRequest { +// Region (ID) +func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []int32) ApiDcimDevicesListRequest { r.regionIdN = ®ionIdN return r } @@ -28017,22 +28103,26 @@ func (r ApiDcimDevicesListRequest) SiteN(siteN []string) ApiDcimDevicesListReque return r } -func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []string) ApiDcimDevicesListRequest { +// Site group (slug) +func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []int32) ApiDcimDevicesListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []string) ApiDcimDevicesListRequest { +// Site group (slug) +func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDevicesListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []string) ApiDcimDevicesListRequest { +// Site group (ID) +func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDevicesListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDevicesListRequest { +// Site group (ID) +func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDevicesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -28081,22 +28171,26 @@ func (r ApiDcimDevicesListRequest) TenantN(tenantN []string) ApiDcimDevicesListR return r } -func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []string) ApiDcimDevicesListRequest { +// Tenant Group (slug) +func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []int32) ApiDcimDevicesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimDevicesListRequest { +// Tenant Group (slug) +func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimDevicesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimDevicesListRequest { +// Tenant Group (ID) +func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimDevicesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimDevicesListRequest { +// Tenant Group (ID) +func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimDevicesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28366,50 +28460,6 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") } } - if r.clusterGroup != nil { - t := *r.clusterGroup - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") - } - } - if r.clusterGroupN != nil { - t := *r.clusterGroupN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") - } - } - if r.clusterGroupId != nil { - t := *r.clusterGroupId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") - } - } - if r.clusterGroupIdN != nil { - t := *r.clusterGroupIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") - } - } if r.clusterId != nil { t := *r.clusterId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -32142,6 +32192,8 @@ type ApiDcimFrontPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -32171,6 +32223,8 @@ type ApiDcimFrontPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -32361,6 +32415,18 @@ func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } +// Device type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTemplatesListRequest { r.id = &id return r @@ -32509,6 +32575,18 @@ func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } +// Module type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimFrontPortTemplatesListRequest) Name(name []string) ApiDcimFrontPortTemplatesListRequest { r.name = &name return r @@ -33011,6 +33089,28 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33298,6 +33398,28 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -34613,12 +34735,6 @@ type ApiDcimFrontPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -34685,16 +34801,20 @@ type ApiDcimFrontPortsListRequest struct { rearPortPositionLt *[]int32 rearPortPositionLte *[]int32 rearPortPositionN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -34911,40 +35031,6 @@ func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontP return r } -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) DeviceRole(deviceRole []string) ApiDcimFrontPortsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimFrontPortsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimFrontPortsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimFrontPortsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimFrontPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimFrontPortsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimFrontPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimFrontPortsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest { r.deviceType = &deviceType @@ -35293,26 +35379,54 @@ func (r ApiDcimFrontPortsListRequest) RearPortPositionN(rearPortPositionN []int3 return r } -func (r ApiDcimFrontPortsListRequest) Region(region []string) ApiDcimFrontPortsListRequest { +// Region (slug) +func (r ApiDcimFrontPortsListRequest) Region(region []int32) ApiDcimFrontPortsListRequest { r.region = ®ion return r } -func (r ApiDcimFrontPortsListRequest) RegionN(regionN []string) ApiDcimFrontPortsListRequest { +// Region (slug) +func (r ApiDcimFrontPortsListRequest) RegionN(regionN []int32) ApiDcimFrontPortsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimFrontPortsListRequest) RegionId(regionId []string) ApiDcimFrontPortsListRequest { +// Region (ID) +func (r ApiDcimFrontPortsListRequest) RegionId(regionId []int32) ApiDcimFrontPortsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []string) ApiDcimFrontPortsListRequest { +// Region (ID) +func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimFrontPortsListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) Role(role []string) ApiDcimFrontPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) RoleN(roleN []string) ApiDcimFrontPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) RoleId(roleId []int32) ApiDcimFrontPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimFrontPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { r.site = &site @@ -35325,22 +35439,26 @@ func (r ApiDcimFrontPortsListRequest) SiteN(siteN []string) ApiDcimFrontPortsLis return r } -func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []string) ApiDcimFrontPortsListRequest { +// Site group (slug) +func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimFrontPortsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimFrontPortsListRequest { +// Site group (slug) +func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimFrontPortsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimFrontPortsListRequest { +// Site group (ID) +func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimFrontPortsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimFrontPortsListRequest { +// Site group (ID) +func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimFrontPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -35828,72 +35946,6 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36576,6 +36628,50 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -37934,6 +38030,8 @@ type ApiDcimInterfaceTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 enabled *bool id *[]int32 idEmpty *bool @@ -37965,6 +38063,8 @@ type ApiDcimInterfaceTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -38107,6 +38207,18 @@ func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } +// Device type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) Enabled(enabled bool) ApiDcimInterfaceTemplatesListRequest { r.enabled = &enabled return r @@ -38265,6 +38377,18 @@ func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } +// Module type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimInterfaceTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) Name(name []string) ApiDcimInterfaceTemplatesListRequest { r.name = &name return r @@ -38661,6 +38785,28 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } @@ -38954,6 +39100,28 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -40236,12 +40404,6 @@ type ApiDcimInterfacesListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -40335,10 +40497,10 @@ type ApiDcimInterfacesListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 rfChannel *[]string rfChannelN *[]string rfChannelFrequency *[]float64 @@ -40357,12 +40519,16 @@ type ApiDcimInterfacesListRequest struct { rfChannelWidthN *[]float64 rfRole *[]string rfRoleN *[]string + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 speed *[]int32 @@ -40583,40 +40749,6 @@ func (r ApiDcimInterfacesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInterf return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) DeviceRole(deviceRole []string) ApiDcimInterfacesListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimInterfacesListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInterfacesListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimInterfacesListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInterfacesListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimInterfacesListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInterfacesListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimInterfacesListRequest) DeviceStatus(deviceStatus []string) ApiDcimInterfacesListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimInterfacesListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInterfacesListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest { r.deviceType = &deviceType @@ -41111,22 +41243,26 @@ func (r ApiDcimInterfacesListRequest) RackIdN(rackIdN []int32) ApiDcimInterfaces return r } -func (r ApiDcimInterfacesListRequest) Region(region []string) ApiDcimInterfacesListRequest { +// Region (slug) +func (r ApiDcimInterfacesListRequest) Region(region []int32) ApiDcimInterfacesListRequest { r.region = ®ion return r } -func (r ApiDcimInterfacesListRequest) RegionN(regionN []string) ApiDcimInterfacesListRequest { +// Region (slug) +func (r ApiDcimInterfacesListRequest) RegionN(regionN []int32) ApiDcimInterfacesListRequest { r.regionN = ®ionN return r } -func (r ApiDcimInterfacesListRequest) RegionId(regionId []string) ApiDcimInterfacesListRequest { +// Region (ID) +func (r ApiDcimInterfacesListRequest) RegionId(regionId []int32) ApiDcimInterfacesListRequest { r.regionId = ®ionId return r } -func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []string) ApiDcimInterfacesListRequest { +// Region (ID) +func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []int32) ApiDcimInterfacesListRequest { r.regionIdN = ®ionIdN return r } @@ -41221,6 +41357,30 @@ func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterface return r } +// Device role (slug) +func (r ApiDcimInterfacesListRequest) Role(role []string) ApiDcimInterfacesListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimInterfacesListRequest) RoleN(roleN []string) ApiDcimInterfacesListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) RoleId(roleId []int32) ApiDcimInterfacesListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) RoleIdN(roleIdN []int32) ApiDcimInterfacesListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimInterfacesListRequest) Site(site []string) ApiDcimInterfacesListRequest { r.site = &site @@ -41233,22 +41393,26 @@ func (r ApiDcimInterfacesListRequest) SiteN(siteN []string) ApiDcimInterfacesLis return r } -func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []string) ApiDcimInterfacesListRequest { +// Site group (slug) +func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []int32) ApiDcimInterfacesListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []string) ApiDcimInterfacesListRequest { +// Site group (slug) +func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInterfacesListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []string) ApiDcimInterfacesListRequest { +// Site group (ID) +func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInterfacesListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInterfacesListRequest { +// Site group (ID) +func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInterfacesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -41874,72 +42038,6 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -43061,6 +43159,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -47111,6 +47253,8 @@ type ApiDcimInventoryItemTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 + devicetypeId *[]int32 + devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -47328,6 +47472,18 @@ func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN [] return r } +// Device type (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimInventoryItemTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventoryItemTemplatesListRequest { r.id = &id return r @@ -47996,6 +48152,28 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -49690,12 +49868,6 @@ type ApiDcimInventoryItemsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -49767,10 +49939,10 @@ type ApiDcimInventoryItemsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 role *[]string roleN *[]string roleId *[]*int32 @@ -49788,10 +49960,10 @@ type ApiDcimInventoryItemsListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -50022,40 +50194,6 @@ func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimIn return r } -// Device role (slug) -func (r ApiDcimInventoryItemsListRequest) DeviceRole(deviceRole []string) ApiDcimInventoryItemsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimInventoryItemsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInventoryItemsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimInventoryItemsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInventoryItemsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimInventoryItemsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInventoryItemsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimInventoryItemsListRequest) DeviceStatus(deviceStatus []string) ApiDcimInventoryItemsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimInventoryItemsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimInventoryItemsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimInventoryItemsListRequest) DeviceType(deviceType []string) ApiDcimInventoryItemsListRequest { r.deviceType = &deviceType @@ -50433,22 +50571,26 @@ func (r ApiDcimInventoryItemsListRequest) RackIdN(rackIdN []int32) ApiDcimInvent return r } -func (r ApiDcimInventoryItemsListRequest) Region(region []string) ApiDcimInventoryItemsListRequest { +// Region (slug) +func (r ApiDcimInventoryItemsListRequest) Region(region []int32) ApiDcimInventoryItemsListRequest { r.region = ®ion return r } -func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []string) ApiDcimInventoryItemsListRequest { +// Region (slug) +func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []int32) ApiDcimInventoryItemsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []string) ApiDcimInventoryItemsListRequest { +// Region (ID) +func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []int32) ApiDcimInventoryItemsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []string) ApiDcimInventoryItemsListRequest { +// Region (ID) +func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []int32) ApiDcimInventoryItemsListRequest { r.regionIdN = ®ionIdN return r } @@ -50544,22 +50686,26 @@ func (r ApiDcimInventoryItemsListRequest) SiteN(siteN []string) ApiDcimInventory return r } -func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []string) ApiDcimInventoryItemsListRequest { +// Site group (slug) +func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []int32) ApiDcimInventoryItemsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []string) ApiDcimInventoryItemsListRequest { +// Site group (slug) +func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInventoryItemsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []string) ApiDcimInventoryItemsListRequest { +// Site group (ID) +func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInventoryItemsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInventoryItemsListRequest { +// Site group (ID) +func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInventoryItemsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -51089,72 +51235,6 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -53252,14 +53332,14 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe type ApiDcimLocationsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]string - ancestorN *[]string - ancestorId *[]string - ancestorIdN *[]string + ancestor *[]int32 + ancestorN *[]int32 + ancestorId *[]int32 + ancestorIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -53326,16 +53406,16 @@ type ApiDcimLocationsListRequest struct { parentId *[]*int32 parentIdN *[]*int32 q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -53355,31 +53435,35 @@ type ApiDcimLocationsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string } -func (r ApiDcimLocationsListRequest) Ancestor(ancestor []string) ApiDcimLocationsListRequest { +// Location (slug) +func (r ApiDcimLocationsListRequest) Ancestor(ancestor []int32) ApiDcimLocationsListRequest { r.ancestor = &ancestor return r } -func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []string) ApiDcimLocationsListRequest { +// Location (slug) +func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []int32) ApiDcimLocationsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []string) ApiDcimLocationsListRequest { +// Location (ID) +func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []int32) ApiDcimLocationsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimLocationsListRequest { +// Location (ID) +func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimLocationsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -53396,12 +53480,14 @@ func (r ApiDcimLocationsListRequest) ContactN(contactN []int32) ApiDcimLocations return r } -func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []string) ApiDcimLocationsListRequest { +// Contact group +func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []int32) ApiDcimLocationsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []string) ApiDcimLocationsListRequest { +// Contact group +func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimLocationsListRequest { r.contactGroupN = &contactGroupN return r } @@ -53746,22 +53832,26 @@ func (r ApiDcimLocationsListRequest) Q(q string) ApiDcimLocationsListRequest { return r } -func (r ApiDcimLocationsListRequest) Region(region []string) ApiDcimLocationsListRequest { +// Region (slug) +func (r ApiDcimLocationsListRequest) Region(region []int32) ApiDcimLocationsListRequest { r.region = ®ion return r } -func (r ApiDcimLocationsListRequest) RegionN(regionN []string) ApiDcimLocationsListRequest { +// Region (slug) +func (r ApiDcimLocationsListRequest) RegionN(regionN []int32) ApiDcimLocationsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimLocationsListRequest) RegionId(regionId []string) ApiDcimLocationsListRequest { +// Region (ID) +func (r ApiDcimLocationsListRequest) RegionId(regionId []int32) ApiDcimLocationsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []string) ApiDcimLocationsListRequest { +// Region (ID) +func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []int32) ApiDcimLocationsListRequest { r.regionIdN = ®ionIdN return r } @@ -53778,22 +53868,26 @@ func (r ApiDcimLocationsListRequest) SiteN(siteN []string) ApiDcimLocationsListR return r } -func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []string) ApiDcimLocationsListRequest { +// Site group (slug) +func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []int32) ApiDcimLocationsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimLocationsListRequest { +// Site group (slug) +func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimLocationsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimLocationsListRequest { +// Site group (ID) +func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimLocationsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimLocationsListRequest { +// Site group (ID) +func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimLocationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -53897,22 +53991,26 @@ func (r ApiDcimLocationsListRequest) TenantN(tenantN []string) ApiDcimLocationsL return r } -func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []string) ApiDcimLocationsListRequest { +// Tenant Group (slug) +func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimLocationsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimLocationsListRequest { +// Tenant Group (slug) +func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimLocationsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimLocationsListRequest { +// Tenant Group (ID) +func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimLocationsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimLocationsListRequest { +// Tenant Group (ID) +func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimLocationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -56129,8 +56227,8 @@ type ApiDcimManufacturersListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -56210,12 +56308,14 @@ func (r ApiDcimManufacturersListRequest) ContactN(contactN []int32) ApiDcimManuf return r } -func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []string) ApiDcimManufacturersListRequest { +// Contact group +func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []int32) ApiDcimManufacturersListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []string) ApiDcimManufacturersListRequest { +// Contact group +func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []int32) ApiDcimManufacturersListRequest { r.contactGroupN = &contactGroupN return r } @@ -58320,8 +58420,10 @@ type ApiDcimModuleBayTemplatesListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - deviceTypeId *[]*int32 - deviceTypeIdN *[]*int32 + deviceTypeId *[]int32 + deviceTypeIdN *[]int32 + devicetypeId *[]int32 + devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -58349,8 +58451,6 @@ type ApiDcimModuleBayTemplatesListRequest struct { lastUpdatedN *[]time.Time limit *int32 modifiedByRequest *string - moduleTypeId *[]*int32 - moduleTypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -58475,17 +58575,29 @@ func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw [] } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } +// Device type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTemplatesListRequest { r.id = &id return r @@ -58622,18 +58734,6 @@ func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByReques return r } -// Module type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { - r.moduleTypeId = &moduleTypeId - return r -} - -// Module type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { - r.moduleTypeIdN = &moduleTypeIdN - return r -} - func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { r.name = &name return r @@ -59023,6 +59123,28 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -59288,28 +59410,6 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } - if r.moduleTypeId != nil { - t := *r.moduleTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") - } - } - if r.moduleTypeIdN != nil { - t := *r.moduleTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -60609,12 +60709,6 @@ type ApiDcimModuleBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -60652,8 +60746,6 @@ type ApiDcimModuleBaysListRequest struct { locationId *[]int32 locationIdN *[]int32 modifiedByRequest *string - moduleId *[]*int32 - moduleIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -60667,8 +60759,6 @@ type ApiDcimModuleBaysListRequest struct { nameNisw *[]string offset *int32 ordering *string - parentId *[]*int32 - parentIdN *[]*int32 position *[]string positionEmpty *bool positionIc *[]string @@ -60685,16 +60775,20 @@ type ApiDcimModuleBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -60825,40 +60919,6 @@ func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModule return r } -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) DeviceRole(deviceRole []string) ApiDcimModuleBaysListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimModuleBaysListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimModuleBaysListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimModuleBaysListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimModuleBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimModuleBaysListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimModuleBaysListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimModuleBaysListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest { r.deviceType = &deviceType @@ -61055,18 +61115,6 @@ func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string return r } -// Module (ID) -func (r ApiDcimModuleBaysListRequest) ModuleId(moduleId []*int32) ApiDcimModuleBaysListRequest { - r.moduleId = &moduleId - return r -} - -// Module (ID) -func (r ApiDcimModuleBaysListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimModuleBaysListRequest { - r.moduleIdN = &moduleIdN - return r -} - func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { r.name = &name return r @@ -61134,18 +61182,6 @@ func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBay return r } -// Parent module bay (ID) -func (r ApiDcimModuleBaysListRequest) ParentId(parentId []*int32) ApiDcimModuleBaysListRequest { - r.parentId = &parentId - return r -} - -// Parent module bay (ID) -func (r ApiDcimModuleBaysListRequest) ParentIdN(parentIdN []*int32) ApiDcimModuleBaysListRequest { - r.parentIdN = &parentIdN - return r -} - func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest { r.position = &position return r @@ -61231,26 +61267,54 @@ func (r ApiDcimModuleBaysListRequest) RackIdN(rackIdN []int32) ApiDcimModuleBays return r } -func (r ApiDcimModuleBaysListRequest) Region(region []string) ApiDcimModuleBaysListRequest { +// Region (slug) +func (r ApiDcimModuleBaysListRequest) Region(region []int32) ApiDcimModuleBaysListRequest { r.region = ®ion return r } -func (r ApiDcimModuleBaysListRequest) RegionN(regionN []string) ApiDcimModuleBaysListRequest { +// Region (slug) +func (r ApiDcimModuleBaysListRequest) RegionN(regionN []int32) ApiDcimModuleBaysListRequest { r.regionN = ®ionN return r } -func (r ApiDcimModuleBaysListRequest) RegionId(regionId []string) ApiDcimModuleBaysListRequest { +// Region (ID) +func (r ApiDcimModuleBaysListRequest) RegionId(regionId []int32) ApiDcimModuleBaysListRequest { r.regionId = ®ionId return r } -func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []string) ApiDcimModuleBaysListRequest { +// Region (ID) +func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimModuleBaysListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) Role(role []string) ApiDcimModuleBaysListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) RoleN(roleN []string) ApiDcimModuleBaysListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) RoleId(roleId []int32) ApiDcimModuleBaysListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimModuleBaysListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { r.site = &site @@ -61263,22 +61327,26 @@ func (r ApiDcimModuleBaysListRequest) SiteN(siteN []string) ApiDcimModuleBaysLis return r } -func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []string) ApiDcimModuleBaysListRequest { +// Site group (slug) +func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimModuleBaysListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimModuleBaysListRequest { +// Site group (slug) +func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimModuleBaysListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimModuleBaysListRequest { +// Site group (ID) +func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimModuleBaysListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimModuleBaysListRequest { +// Site group (ID) +func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimModuleBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -61612,72 +61680,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62053,28 +62055,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } - if r.moduleId != nil { - t := *r.moduleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") - } - } - if r.moduleIdN != nil { - t := *r.moduleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62194,28 +62174,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } - if r.parentId != nil { - t := *r.parentId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") - } - } - if r.parentIdN != nil { - t := *r.parentIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") - } - } if r.position != nil { t := *r.position if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62420,6 +62378,50 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -63615,8 +63617,6 @@ func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr type ApiDcimModuleTypesListRequest struct { ctx context.Context ApiService *DcimAPIService - airflow *DcimModuleTypesListAirflowParameter - airflowN *DcimModuleTypesListAirflowParameter consolePorts *bool consoleServerPorts *bool created *[]time.Time @@ -63701,18 +63701,6 @@ type ApiDcimModuleTypesListRequest struct { weightUnitN *DcimDeviceTypesListWeightUnitParameter } -// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive -func (r ApiDcimModuleTypesListRequest) Airflow(airflow DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { - r.airflow = &airflow - return r -} - -// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive -func (r ApiDcimModuleTypesListRequest) AirflowN(airflowN DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { - r.airflowN = &airflowN - return r -} - // Has console ports func (r ApiDcimModuleTypesListRequest) ConsolePorts(consolePorts bool) ApiDcimModuleTypesListRequest { r.consolePorts = &consolePorts @@ -64180,12 +64168,6 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.airflow != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") - } - if r.airflowN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") - } if r.consolePorts != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") } @@ -66018,8 +66000,8 @@ type ApiDcimModulesListRequest struct { manufacturerId *[]int32 manufacturerIdN *[]int32 modifiedByRequest *string - moduleBayId *[]string - moduleBayIdN *[]string + moduleBayId *[]int32 + moduleBayIdN *[]int32 moduleType *[]string moduleTypeN *[]string moduleTypeId *[]int32 @@ -66312,12 +66294,14 @@ func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) A return r } -func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []string) ApiDcimModulesListRequest { +// Module Bay (ID) +func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []int32) ApiDcimModulesListRequest { r.moduleBayId = &moduleBayId return r } -func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []string) ApiDcimModulesListRequest { +// Module Bay (ID) +func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []int32) ApiDcimModulesListRequest { r.moduleBayIdN = &moduleBayIdN return r } @@ -70551,16 +70535,16 @@ type ApiDcimPowerFeedsListRequest struct { q *string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 status *[]string @@ -70571,10 +70555,10 @@ type ApiDcimPowerFeedsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 type_ *DcimPowerFeedsListTypeParameter @@ -71023,22 +71007,26 @@ func (r ApiDcimPowerFeedsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerFeeds return r } -func (r ApiDcimPowerFeedsListRequest) Region(region []string) ApiDcimPowerFeedsListRequest { +// Region (slug) +func (r ApiDcimPowerFeedsListRequest) Region(region []int32) ApiDcimPowerFeedsListRequest { r.region = ®ion return r } -func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []string) ApiDcimPowerFeedsListRequest { +// Region (slug) +func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []int32) ApiDcimPowerFeedsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []string) ApiDcimPowerFeedsListRequest { +// Region (ID) +func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []int32) ApiDcimPowerFeedsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerFeedsListRequest { +// Region (ID) +func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerFeedsListRequest { r.regionIdN = ®ionIdN return r } @@ -71055,22 +71043,26 @@ func (r ApiDcimPowerFeedsListRequest) SiteN(siteN []string) ApiDcimPowerFeedsLis return r } -func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerFeedsListRequest { +// Site group (slug) +func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerFeedsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerFeedsListRequest { +// Site group (slug) +func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerFeedsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerFeedsListRequest { +// Site group (ID) +func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerFeedsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerFeedsListRequest { +// Site group (ID) +func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerFeedsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -71131,22 +71123,26 @@ func (r ApiDcimPowerFeedsListRequest) TenantN(tenantN []string) ApiDcimPowerFeed return r } -func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []string) ApiDcimPowerFeedsListRequest { +// Tenant Group (slug) +func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []int32) ApiDcimPowerFeedsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimPowerFeedsListRequest { +// Tenant Group (slug) +func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimPowerFeedsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimPowerFeedsListRequest { +// Tenant Group (ID) +func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimPowerFeedsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimPowerFeedsListRequest { +// Tenant Group (ID) +func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimPowerFeedsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -73545,6 +73541,8 @@ type ApiDcimPowerOutletTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 feedLeg *[]string feedLegN *[]string id *[]int32 @@ -73576,6 +73574,8 @@ type ApiDcimPowerOutletTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -73704,6 +73704,18 @@ func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } +// Device type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + // Phase (for three-phase feeds) func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletTemplatesListRequest { r.feedLeg = &feedLeg @@ -73864,6 +73876,18 @@ func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } +// Module type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimPowerOutletTemplatesListRequest) Name(name []string) ApiDcimPowerOutletTemplatesListRequest { r.name = &name return r @@ -73949,13 +73973,13 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTe return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) TypeN(typeN DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.typeN = &typeN return r @@ -74222,6 +74246,28 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.feedLeg != nil { t := *r.feedLeg if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -74531,6 +74577,28 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -75751,12 +75819,6 @@ type ApiDcimPowerOutletsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -75818,16 +75880,20 @@ type ApiDcimPowerOutletsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -75994,40 +76060,6 @@ func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowe return r } -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerOutletsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerOutletsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerOutletsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerOutletsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimPowerOutletsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerOutletsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimPowerOutletsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerOutletsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest { r.deviceType = &deviceType @@ -76355,26 +76387,54 @@ func (r ApiDcimPowerOutletsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerOut return r } -func (r ApiDcimPowerOutletsListRequest) Region(region []string) ApiDcimPowerOutletsListRequest { +// Region (slug) +func (r ApiDcimPowerOutletsListRequest) Region(region []int32) ApiDcimPowerOutletsListRequest { r.region = ®ion return r } -func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []string) ApiDcimPowerOutletsListRequest { +// Region (slug) +func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []int32) ApiDcimPowerOutletsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []string) ApiDcimPowerOutletsListRequest { +// Region (ID) +func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []int32) ApiDcimPowerOutletsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerOutletsListRequest { +// Region (ID) +func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerOutletsListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) Role(role []string) ApiDcimPowerOutletsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) RoleN(roleN []string) ApiDcimPowerOutletsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) RoleId(roleId []int32) ApiDcimPowerOutletsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerOutletsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { r.site = &site @@ -76387,22 +76447,26 @@ func (r ApiDcimPowerOutletsListRequest) SiteN(siteN []string) ApiDcimPowerOutlet return r } -func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerOutletsListRequest { +// Site group (slug) +func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerOutletsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerOutletsListRequest { +// Site group (slug) +func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerOutletsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerOutletsListRequest { +// Site group (ID) +func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerOutletsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerOutletsListRequest { +// Site group (ID) +func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerOutletsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -76782,72 +76846,6 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -77483,6 +77481,50 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -78820,8 +78862,8 @@ type ApiDcimPowerPanelsListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -78858,8 +78900,8 @@ type ApiDcimPowerPanelsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - locationId *[]string - locationIdN *[]string + locationId *[]int32 + locationIdN *[]int32 modifiedByRequest *string name *[]string nameEmpty *bool @@ -78875,16 +78917,16 @@ type ApiDcimPowerPanelsListRequest struct { offset *int32 ordering *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -78904,12 +78946,14 @@ func (r ApiDcimPowerPanelsListRequest) ContactN(contactN []int32) ApiDcimPowerPa return r } -func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []string) ApiDcimPowerPanelsListRequest { +// Contact group +func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []int32) ApiDcimPowerPanelsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []string) ApiDcimPowerPanelsListRequest { +// Contact group +func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimPowerPanelsListRequest { r.contactGroupN = &contactGroupN return r } @@ -79097,12 +79141,14 @@ func (r ApiDcimPowerPanelsListRequest) Limit(limit int32) ApiDcimPowerPanelsList return r } -func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []string) ApiDcimPowerPanelsListRequest { +// Location (ID) +func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []int32) ApiDcimPowerPanelsListRequest { r.locationId = &locationId return r } -func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []string) ApiDcimPowerPanelsListRequest { +// Location (ID) +func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPanelsListRequest { r.locationIdN = &locationIdN return r } @@ -79185,22 +79231,26 @@ func (r ApiDcimPowerPanelsListRequest) Q(q string) ApiDcimPowerPanelsListRequest return r } -func (r ApiDcimPowerPanelsListRequest) Region(region []string) ApiDcimPowerPanelsListRequest { +// Region (slug) +func (r ApiDcimPowerPanelsListRequest) Region(region []int32) ApiDcimPowerPanelsListRequest { r.region = ®ion return r } -func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []string) ApiDcimPowerPanelsListRequest { +// Region (slug) +func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []int32) ApiDcimPowerPanelsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []string) ApiDcimPowerPanelsListRequest { +// Region (ID) +func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []int32) ApiDcimPowerPanelsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPanelsListRequest { +// Region (ID) +func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPanelsListRequest { r.regionIdN = ®ionIdN return r } @@ -79217,22 +79267,26 @@ func (r ApiDcimPowerPanelsListRequest) SiteN(siteN []string) ApiDcimPowerPanelsL return r } -func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPanelsListRequest { +// Site group (slug) +func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPanelsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPanelsListRequest { +// Site group (slug) +func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPanelsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPanelsListRequest { +// Site group (ID) +func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPanelsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPanelsListRequest { +// Site group (ID) +func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPanelsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -81083,6 +81137,8 @@ type ApiDcimPowerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -81119,6 +81175,8 @@ type ApiDcimPowerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -81280,6 +81338,18 @@ func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } +// Device type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTemplatesListRequest { r.id = &id return r @@ -81463,6 +81533,18 @@ func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } +// Module type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerPortTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimPowerPortTemplatesListRequest) Name(name []string) ApiDcimPowerPortTemplatesListRequest { r.name = &name return r @@ -81536,13 +81618,13 @@ func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTempla return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) TypeN(typeN DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.typeN = &typeN return r @@ -81878,6 +81960,28 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -82234,6 +82338,28 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -83439,12 +83565,6 @@ type ApiDcimPowerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -83509,16 +83629,20 @@ type ApiDcimPowerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -83720,40 +83844,6 @@ func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerP return r } -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerPortsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerPortsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerPortsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerPortsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimPowerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerPortsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimPowerPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimPowerPortsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest { r.deviceType = &deviceType @@ -84092,26 +84182,54 @@ func (r ApiDcimPowerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerPorts return r } -func (r ApiDcimPowerPortsListRequest) Region(region []string) ApiDcimPowerPortsListRequest { +// Region (slug) +func (r ApiDcimPowerPortsListRequest) Region(region []int32) ApiDcimPowerPortsListRequest { r.region = ®ion return r } -func (r ApiDcimPowerPortsListRequest) RegionN(regionN []string) ApiDcimPowerPortsListRequest { +// Region (slug) +func (r ApiDcimPowerPortsListRequest) RegionN(regionN []int32) ApiDcimPowerPortsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimPowerPortsListRequest) RegionId(regionId []string) ApiDcimPowerPortsListRequest { +// Region (ID) +func (r ApiDcimPowerPortsListRequest) RegionId(regionId []int32) ApiDcimPowerPortsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPortsListRequest { +// Region (ID) +func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPortsListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) Role(role []string) ApiDcimPowerPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) RoleN(roleN []string) ApiDcimPowerPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) RoleId(roleId []int32) ApiDcimPowerPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimPowerPortsListRequest) Site(site []string) ApiDcimPowerPortsListRequest { r.site = &site @@ -84124,22 +84242,26 @@ func (r ApiDcimPowerPortsListRequest) SiteN(siteN []string) ApiDcimPowerPortsLis return r } -func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPortsListRequest { +// Site group (slug) +func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPortsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPortsListRequest { +// Site group (slug) +func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPortsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPortsListRequest { +// Site group (ID) +func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPortsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPortsListRequest { +// Site group (ID) +func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -84588,72 +84710,6 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -85314,6 +85370,50 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -86683,36 +86783,36 @@ type ApiDcimRackReservationsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]string - locationN *[]string - locationId *[]string - locationIdN *[]string + location *[]int32 + locationN *[]int32 + locationId *[]int32 + locationIdN *[]int32 modifiedByRequest *string offset *int32 ordering *string q *string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 unit *float32 @@ -86894,22 +86994,26 @@ func (r ApiDcimRackReservationsListRequest) Limit(limit int32) ApiDcimRackReserv return r } -func (r ApiDcimRackReservationsListRequest) Location(location []string) ApiDcimRackReservationsListRequest { +// Location (slug) +func (r ApiDcimRackReservationsListRequest) Location(location []int32) ApiDcimRackReservationsListRequest { r.location = &location return r } -func (r ApiDcimRackReservationsListRequest) LocationN(locationN []string) ApiDcimRackReservationsListRequest { +// Location (slug) +func (r ApiDcimRackReservationsListRequest) LocationN(locationN []int32) ApiDcimRackReservationsListRequest { r.locationN = &locationN return r } -func (r ApiDcimRackReservationsListRequest) LocationId(locationId []string) ApiDcimRackReservationsListRequest { +// Location (ID) +func (r ApiDcimRackReservationsListRequest) LocationId(locationId []int32) ApiDcimRackReservationsListRequest { r.locationId = &locationId return r } -func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []string) ApiDcimRackReservationsListRequest { +// Location (ID) +func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []int32) ApiDcimRackReservationsListRequest { r.locationIdN = &locationIdN return r } @@ -86949,22 +87053,26 @@ func (r ApiDcimRackReservationsListRequest) RackIdN(rackIdN []int32) ApiDcimRack return r } -func (r ApiDcimRackReservationsListRequest) Region(region []string) ApiDcimRackReservationsListRequest { +// Region (slug) +func (r ApiDcimRackReservationsListRequest) Region(region []int32) ApiDcimRackReservationsListRequest { r.region = ®ion return r } -func (r ApiDcimRackReservationsListRequest) RegionN(regionN []string) ApiDcimRackReservationsListRequest { +// Region (slug) +func (r ApiDcimRackReservationsListRequest) RegionN(regionN []int32) ApiDcimRackReservationsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimRackReservationsListRequest) RegionId(regionId []string) ApiDcimRackReservationsListRequest { +// Region (ID) +func (r ApiDcimRackReservationsListRequest) RegionId(regionId []int32) ApiDcimRackReservationsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []string) ApiDcimRackReservationsListRequest { +// Region (ID) +func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []int32) ApiDcimRackReservationsListRequest { r.regionIdN = ®ionIdN return r } @@ -86981,22 +87089,26 @@ func (r ApiDcimRackReservationsListRequest) SiteN(siteN []string) ApiDcimRackRes return r } -func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []string) ApiDcimRackReservationsListRequest { +// Site group (slug) +func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []int32) ApiDcimRackReservationsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRackReservationsListRequest { +// Site group (slug) +func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRackReservationsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRackReservationsListRequest { +// Site group (ID) +func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRackReservationsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRackReservationsListRequest { +// Site group (ID) +func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRackReservationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -87035,22 +87147,26 @@ func (r ApiDcimRackReservationsListRequest) TenantN(tenantN []string) ApiDcimRac return r } -func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []string) ApiDcimRackReservationsListRequest { +// Tenant Group (slug) +func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimRackReservationsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRackReservationsListRequest { +// Tenant Group (slug) +func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRackReservationsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRackReservationsListRequest { +// Tenant Group (ID) +func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRackReservationsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRackReservationsListRequest { +// Tenant Group (ID) +func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRackReservationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -90169,3069 +90285,33 @@ func (a *DcimAPIService) DcimRackRolesListExecute(r ApiDcimRackRolesListRequest) return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedRackRoleRequest *PatchedRackRoleRequest -} - -func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { - r.patchedRackRoleRequest = &patchedRackRoleRequest - return r -} - -func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesPartialUpdateExecute(r) -} - -/* -DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate - -Patch a rack role object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesPartialUpdateRequest -*/ -func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { - return ApiDcimRackRolesPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return RackRole -func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedRackRoleRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackRolesRetrieveRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesRetrieveExecute(r) -} - -/* -DcimRackRolesRetrieve Method for DcimRackRolesRetrieve - -Get a rack role object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesRetrieveRequest -*/ -func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { - return ApiDcimRackRolesRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return RackRole -func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - rackRoleRequest *RackRoleRequest -} - -func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { - r.rackRoleRequest = &rackRoleRequest - return r -} - -func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesUpdateExecute(r) -} - -/* -DcimRackRolesUpdate Method for DcimRackRolesUpdate - -Put a rack role object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesUpdateRequest -*/ -func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { - return ApiDcimRackRolesUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return RackRole -func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackRole - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rackRoleRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackTypesBulkDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackTypeRequest *[]RackTypeRequest -} - -func (r ApiDcimRackTypesBulkDestroyRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkDestroyRequest { - r.rackTypeRequest = &rackTypeRequest - return r -} - -func (r ApiDcimRackTypesBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimRackTypesBulkDestroyExecute(r) -} - -/* -DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy - -Delete a list of rack type objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackTypesBulkDestroyRequest -*/ -func (a *DcimAPIService) DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest { - return ApiDcimRackTypesBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-types/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.rackTypeRequest == nil { - return nil, reportError("rackTypeRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rackTypeRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDcimRackTypesBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackTypeRequest *[]RackTypeRequest -} - -func (r ApiDcimRackTypesBulkPartialUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkPartialUpdateRequest { - r.rackTypeRequest = &rackTypeRequest - return r -} - -func (r ApiDcimRackTypesBulkPartialUpdateRequest) Execute() ([]RackType, *http.Response, error) { - return r.ApiService.DcimRackTypesBulkPartialUpdateExecute(r) -} - -/* -DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate - -Patch a list of rack type objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackTypesBulkPartialUpdateRequest -*/ -func (a *DcimAPIService) DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest { - return ApiDcimRackTypesBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []RackType -func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-types/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.rackTypeRequest == nil { - return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rackTypeRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackTypesBulkUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - rackTypeRequest *[]RackTypeRequest -} - -func (r ApiDcimRackTypesBulkUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkUpdateRequest { - r.rackTypeRequest = &rackTypeRequest - return r -} - -func (r ApiDcimRackTypesBulkUpdateRequest) Execute() ([]RackType, *http.Response, error) { - return r.ApiService.DcimRackTypesBulkUpdateExecute(r) -} - -/* -DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate - -Put a list of rack type objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackTypesBulkUpdateRequest -*/ -func (a *DcimAPIService) DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest { - return ApiDcimRackTypesBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return []RackType -func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []RackType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-types/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.rackTypeRequest == nil { - return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.rackTypeRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackTypesCreateRequest struct { - ctx context.Context - ApiService *DcimAPIService - writableRackTypeRequest *WritableRackTypeRequest -} - -func (r ApiDcimRackTypesCreateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesCreateRequest { - r.writableRackTypeRequest = &writableRackTypeRequest - return r -} - -func (r ApiDcimRackTypesCreateRequest) Execute() (*RackType, *http.Response, error) { - return r.ApiService.DcimRackTypesCreateExecute(r) -} - -/* -DcimRackTypesCreate Method for DcimRackTypesCreate - -Post a list of rack type objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackTypesCreateRequest -*/ -func (a *DcimAPIService) DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest { - return ApiDcimRackTypesCreateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return RackType -func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *RackType - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-types/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.writableRackTypeRequest == nil { - return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.writableRackTypeRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackTypesDestroyRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 -} - -func (r ApiDcimRackTypesDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.DcimRackTypesDestroyExecute(r) -} - -/* -DcimRackTypesDestroy Method for DcimRackTypesDestroy - -Delete a rack type object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack type. - @return ApiDcimRackTypesDestroyRequest -*/ -func (a *DcimAPIService) DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest { - return ApiDcimRackTypesDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *DcimAPIService) DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiDcimRackTypesListRequest struct { - ctx context.Context - ApiService *DcimAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - descUnits *bool - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - formFactor *[]string - formFactorN *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 - maxWeight *[]int32 - maxWeightEmpty *bool - maxWeightGt *[]int32 - maxWeightGte *[]int32 - maxWeightLt *[]int32 - maxWeightLte *[]int32 - maxWeightN *[]int32 - model *[]string - modelEmpty *bool - modelIc *[]string - modelIe *[]string - modelIew *[]string - modelIsw *[]string - modelN *[]string - modelNic *[]string - modelNie *[]string - modelNiew *[]string - modelNisw *[]string - modifiedByRequest *string - mountingDepth *[]int32 - mountingDepthEmpty *bool - mountingDepthGt *[]int32 - mountingDepthGte *[]int32 - mountingDepthLt *[]int32 - mountingDepthLte *[]int32 - mountingDepthN *[]int32 - offset *int32 - ordering *string - outerDepth *[]int32 - outerDepthEmpty *bool - outerDepthGt *[]int32 - outerDepthGte *[]int32 - outerDepthLt *[]int32 - outerDepthLte *[]int32 - outerDepthN *[]int32 - outerUnit *DcimRackTypesListOuterUnitParameter - outerUnitN *DcimRackTypesListOuterUnitParameter - outerWidth *[]int32 - outerWidthEmpty *bool - outerWidthGt *[]int32 - outerWidthGte *[]int32 - outerWidthLt *[]int32 - outerWidthLte *[]int32 - outerWidthN *[]int32 - q *string - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - startingUnit *[]int32 - startingUnitEmpty *bool - startingUnitGt *[]int32 - startingUnitGte *[]int32 - startingUnitLt *[]int32 - startingUnitLte *[]int32 - startingUnitN *[]int32 - tag *[]string - tagN *[]string - uHeight *[]int32 - uHeightEmpty *bool - uHeightGt *[]int32 - uHeightGte *[]int32 - uHeightLt *[]int32 - uHeightLte *[]int32 - uHeightN *[]int32 - updatedByRequest *string - weight *[]float64 - weightEmpty *bool - weightGt *[]float64 - weightGte *[]float64 - weightLt *[]float64 - weightLte *[]float64 - weightN *[]float64 - weightUnit *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter - width *[]int32 - widthN *[]int32 -} - -func (r ApiDcimRackTypesListRequest) Created(created []time.Time) ApiDcimRackTypesListRequest { - r.created = &created - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackTypesListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackTypesListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackTypesListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackTypesListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackTypesListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedN(createdN []time.Time) ApiDcimRackTypesListRequest { - r.createdN = &createdN - return r -} - -func (r ApiDcimRackTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackTypesListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiDcimRackTypesListRequest) DescUnits(descUnits bool) ApiDcimRackTypesListRequest { - r.descUnits = &descUnits - return r -} - -func (r ApiDcimRackTypesListRequest) Description(description []string) ApiDcimRackTypesListRequest { - r.description = &description - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackTypesListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackTypesListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackTypesListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackTypesListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackTypesListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionN(descriptionN []string) ApiDcimRackTypesListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackTypesListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackTypesListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackTypesListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiDcimRackTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackTypesListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiDcimRackTypesListRequest) FormFactor(formFactor []string) ApiDcimRackTypesListRequest { - r.formFactor = &formFactor - return r -} - -func (r ApiDcimRackTypesListRequest) FormFactorN(formFactorN []string) ApiDcimRackTypesListRequest { - r.formFactorN = &formFactorN - return r -} - -func (r ApiDcimRackTypesListRequest) Id(id []int32) ApiDcimRackTypesListRequest { - r.id = &id - return r -} - -func (r ApiDcimRackTypesListRequest) IdEmpty(idEmpty bool) ApiDcimRackTypesListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) IdGt(idGt []int32) ApiDcimRackTypesListRequest { - r.idGt = &idGt - return r -} - -func (r ApiDcimRackTypesListRequest) IdGte(idGte []int32) ApiDcimRackTypesListRequest { - r.idGte = &idGte - return r -} - -func (r ApiDcimRackTypesListRequest) IdLt(idLt []int32) ApiDcimRackTypesListRequest { - r.idLt = &idLt - return r -} - -func (r ApiDcimRackTypesListRequest) IdLte(idLte []int32) ApiDcimRackTypesListRequest { - r.idLte = &idLte - return r -} - -func (r ApiDcimRackTypesListRequest) IdN(idN []int32) ApiDcimRackTypesListRequest { - r.idN = &idN - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdated = &lastUpdated - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiDcimRackTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackTypesListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiDcimRackTypesListRequest) Limit(limit int32) ApiDcimRackTypesListRequest { - r.limit = &limit - return r -} - -// Manufacturer (slug) -func (r ApiDcimRackTypesListRequest) Manufacturer(manufacturer []string) ApiDcimRackTypesListRequest { - r.manufacturer = &manufacturer - return r -} - -// Manufacturer (slug) -func (r ApiDcimRackTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimRackTypesListRequest { - r.manufacturerN = &manufacturerN - return r -} - -// Manufacturer (ID) -func (r ApiDcimRackTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRackTypesListRequest { - r.manufacturerId = &manufacturerId - return r -} - -// Manufacturer (ID) -func (r ApiDcimRackTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRackTypesListRequest { - r.manufacturerIdN = &manufacturerIdN - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeight(maxWeight []int32) ApiDcimRackTypesListRequest { - r.maxWeight = &maxWeight - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeightEmpty(maxWeightEmpty bool) ApiDcimRackTypesListRequest { - r.maxWeightEmpty = &maxWeightEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeightGt(maxWeightGt []int32) ApiDcimRackTypesListRequest { - r.maxWeightGt = &maxWeightGt - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeightGte(maxWeightGte []int32) ApiDcimRackTypesListRequest { - r.maxWeightGte = &maxWeightGte - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeightLt(maxWeightLt []int32) ApiDcimRackTypesListRequest { - r.maxWeightLt = &maxWeightLt - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeightLte(maxWeightLte []int32) ApiDcimRackTypesListRequest { - r.maxWeightLte = &maxWeightLte - return r -} - -func (r ApiDcimRackTypesListRequest) MaxWeightN(maxWeightN []int32) ApiDcimRackTypesListRequest { - r.maxWeightN = &maxWeightN - return r -} - -func (r ApiDcimRackTypesListRequest) Model(model []string) ApiDcimRackTypesListRequest { - r.model = &model - return r -} - -func (r ApiDcimRackTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimRackTypesListRequest { - r.modelEmpty = &modelEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) ModelIc(modelIc []string) ApiDcimRackTypesListRequest { - r.modelIc = &modelIc - return r -} - -func (r ApiDcimRackTypesListRequest) ModelIe(modelIe []string) ApiDcimRackTypesListRequest { - r.modelIe = &modelIe - return r -} - -func (r ApiDcimRackTypesListRequest) ModelIew(modelIew []string) ApiDcimRackTypesListRequest { - r.modelIew = &modelIew - return r -} - -func (r ApiDcimRackTypesListRequest) ModelIsw(modelIsw []string) ApiDcimRackTypesListRequest { - r.modelIsw = &modelIsw - return r -} - -func (r ApiDcimRackTypesListRequest) ModelN(modelN []string) ApiDcimRackTypesListRequest { - r.modelN = &modelN - return r -} - -func (r ApiDcimRackTypesListRequest) ModelNic(modelNic []string) ApiDcimRackTypesListRequest { - r.modelNic = &modelNic - return r -} - -func (r ApiDcimRackTypesListRequest) ModelNie(modelNie []string) ApiDcimRackTypesListRequest { - r.modelNie = &modelNie - return r -} - -func (r ApiDcimRackTypesListRequest) ModelNiew(modelNiew []string) ApiDcimRackTypesListRequest { - r.modelNiew = &modelNiew - return r -} - -func (r ApiDcimRackTypesListRequest) ModelNisw(modelNisw []string) ApiDcimRackTypesListRequest { - r.modelNisw = &modelNisw - return r -} - -func (r ApiDcimRackTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackTypesListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepth(mountingDepth []int32) ApiDcimRackTypesListRequest { - r.mountingDepth = &mountingDepth - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepthEmpty(mountingDepthEmpty bool) ApiDcimRackTypesListRequest { - r.mountingDepthEmpty = &mountingDepthEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepthGt(mountingDepthGt []int32) ApiDcimRackTypesListRequest { - r.mountingDepthGt = &mountingDepthGt - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepthGte(mountingDepthGte []int32) ApiDcimRackTypesListRequest { - r.mountingDepthGte = &mountingDepthGte - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepthLt(mountingDepthLt []int32) ApiDcimRackTypesListRequest { - r.mountingDepthLt = &mountingDepthLt - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepthLte(mountingDepthLte []int32) ApiDcimRackTypesListRequest { - r.mountingDepthLte = &mountingDepthLte - return r -} - -func (r ApiDcimRackTypesListRequest) MountingDepthN(mountingDepthN []int32) ApiDcimRackTypesListRequest { - r.mountingDepthN = &mountingDepthN - return r -} - -// The initial index from which to return the results. -func (r ApiDcimRackTypesListRequest) Offset(offset int32) ApiDcimRackTypesListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiDcimRackTypesListRequest) Ordering(ordering string) ApiDcimRackTypesListRequest { - r.ordering = &ordering - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepth(outerDepth []int32) ApiDcimRackTypesListRequest { - r.outerDepth = &outerDepth - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepthEmpty(outerDepthEmpty bool) ApiDcimRackTypesListRequest { - r.outerDepthEmpty = &outerDepthEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepthGt(outerDepthGt []int32) ApiDcimRackTypesListRequest { - r.outerDepthGt = &outerDepthGt - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepthGte(outerDepthGte []int32) ApiDcimRackTypesListRequest { - r.outerDepthGte = &outerDepthGte - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepthLt(outerDepthLt []int32) ApiDcimRackTypesListRequest { - r.outerDepthLt = &outerDepthLt - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepthLte(outerDepthLte []int32) ApiDcimRackTypesListRequest { - r.outerDepthLte = &outerDepthLte - return r -} - -func (r ApiDcimRackTypesListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRackTypesListRequest { - r.outerDepthN = &outerDepthN - return r -} - -// * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRackTypesListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { - r.outerUnit = &outerUnit - return r -} - -// * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRackTypesListRequest) OuterUnitN(outerUnitN DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { - r.outerUnitN = &outerUnitN - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidth(outerWidth []int32) ApiDcimRackTypesListRequest { - r.outerWidth = &outerWidth - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidthEmpty(outerWidthEmpty bool) ApiDcimRackTypesListRequest { - r.outerWidthEmpty = &outerWidthEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidthGt(outerWidthGt []int32) ApiDcimRackTypesListRequest { - r.outerWidthGt = &outerWidthGt - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidthGte(outerWidthGte []int32) ApiDcimRackTypesListRequest { - r.outerWidthGte = &outerWidthGte - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidthLt(outerWidthLt []int32) ApiDcimRackTypesListRequest { - r.outerWidthLt = &outerWidthLt - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidthLte(outerWidthLte []int32) ApiDcimRackTypesListRequest { - r.outerWidthLte = &outerWidthLte - return r -} - -func (r ApiDcimRackTypesListRequest) OuterWidthN(outerWidthN []int32) ApiDcimRackTypesListRequest { - r.outerWidthN = &outerWidthN - return r -} - -// Search -func (r ApiDcimRackTypesListRequest) Q(q string) ApiDcimRackTypesListRequest { - r.q = &q - return r -} - -func (r ApiDcimRackTypesListRequest) Slug(slug []string) ApiDcimRackTypesListRequest { - r.slug = &slug - return r -} - -func (r ApiDcimRackTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackTypesListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) SlugIc(slugIc []string) ApiDcimRackTypesListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiDcimRackTypesListRequest) SlugIe(slugIe []string) ApiDcimRackTypesListRequest { - r.slugIe = &slugIe - return r -} - -func (r ApiDcimRackTypesListRequest) SlugIew(slugIew []string) ApiDcimRackTypesListRequest { - r.slugIew = &slugIew - return r -} - -func (r ApiDcimRackTypesListRequest) SlugIsw(slugIsw []string) ApiDcimRackTypesListRequest { - r.slugIsw = &slugIsw - return r -} - -func (r ApiDcimRackTypesListRequest) SlugN(slugN []string) ApiDcimRackTypesListRequest { - r.slugN = &slugN - return r -} - -func (r ApiDcimRackTypesListRequest) SlugNic(slugNic []string) ApiDcimRackTypesListRequest { - r.slugNic = &slugNic - return r -} - -func (r ApiDcimRackTypesListRequest) SlugNie(slugNie []string) ApiDcimRackTypesListRequest { - r.slugNie = &slugNie - return r -} - -func (r ApiDcimRackTypesListRequest) SlugNiew(slugNiew []string) ApiDcimRackTypesListRequest { - r.slugNiew = &slugNiew - return r -} - -func (r ApiDcimRackTypesListRequest) SlugNisw(slugNisw []string) ApiDcimRackTypesListRequest { - r.slugNisw = &slugNisw - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnit(startingUnit []int32) ApiDcimRackTypesListRequest { - r.startingUnit = &startingUnit - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnitEmpty(startingUnitEmpty bool) ApiDcimRackTypesListRequest { - r.startingUnitEmpty = &startingUnitEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnitGt(startingUnitGt []int32) ApiDcimRackTypesListRequest { - r.startingUnitGt = &startingUnitGt - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnitGte(startingUnitGte []int32) ApiDcimRackTypesListRequest { - r.startingUnitGte = &startingUnitGte - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnitLt(startingUnitLt []int32) ApiDcimRackTypesListRequest { - r.startingUnitLt = &startingUnitLt - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnitLte(startingUnitLte []int32) ApiDcimRackTypesListRequest { - r.startingUnitLte = &startingUnitLte - return r -} - -func (r ApiDcimRackTypesListRequest) StartingUnitN(startingUnitN []int32) ApiDcimRackTypesListRequest { - r.startingUnitN = &startingUnitN - return r -} - -func (r ApiDcimRackTypesListRequest) Tag(tag []string) ApiDcimRackTypesListRequest { - r.tag = &tag - return r -} - -func (r ApiDcimRackTypesListRequest) TagN(tagN []string) ApiDcimRackTypesListRequest { - r.tagN = &tagN - return r -} - -func (r ApiDcimRackTypesListRequest) UHeight(uHeight []int32) ApiDcimRackTypesListRequest { - r.uHeight = &uHeight - return r -} - -func (r ApiDcimRackTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimRackTypesListRequest { - r.uHeightEmpty = &uHeightEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) UHeightGt(uHeightGt []int32) ApiDcimRackTypesListRequest { - r.uHeightGt = &uHeightGt - return r -} - -func (r ApiDcimRackTypesListRequest) UHeightGte(uHeightGte []int32) ApiDcimRackTypesListRequest { - r.uHeightGte = &uHeightGte - return r -} - -func (r ApiDcimRackTypesListRequest) UHeightLt(uHeightLt []int32) ApiDcimRackTypesListRequest { - r.uHeightLt = &uHeightLt - return r -} - -func (r ApiDcimRackTypesListRequest) UHeightLte(uHeightLte []int32) ApiDcimRackTypesListRequest { - r.uHeightLte = &uHeightLte - return r -} - -func (r ApiDcimRackTypesListRequest) UHeightN(uHeightN []int32) ApiDcimRackTypesListRequest { - r.uHeightN = &uHeightN - return r -} - -func (r ApiDcimRackTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackTypesListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiDcimRackTypesListRequest) Weight(weight []float64) ApiDcimRackTypesListRequest { - r.weight = &weight - return r -} - -func (r ApiDcimRackTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimRackTypesListRequest { - r.weightEmpty = &weightEmpty - return r -} - -func (r ApiDcimRackTypesListRequest) WeightGt(weightGt []float64) ApiDcimRackTypesListRequest { - r.weightGt = &weightGt - return r -} - -func (r ApiDcimRackTypesListRequest) WeightGte(weightGte []float64) ApiDcimRackTypesListRequest { - r.weightGte = &weightGte - return r -} - -func (r ApiDcimRackTypesListRequest) WeightLt(weightLt []float64) ApiDcimRackTypesListRequest { - r.weightLt = &weightLt - return r -} - -func (r ApiDcimRackTypesListRequest) WeightLte(weightLte []float64) ApiDcimRackTypesListRequest { - r.weightLte = &weightLte - return r -} - -func (r ApiDcimRackTypesListRequest) WeightN(weightN []float64) ApiDcimRackTypesListRequest { - r.weightN = &weightN - return r -} - -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimRackTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { - r.weightUnit = &weightUnit - return r -} - -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimRackTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { - r.weightUnitN = &weightUnitN - return r -} - -// Rail-to-rail width -func (r ApiDcimRackTypesListRequest) Width(width []int32) ApiDcimRackTypesListRequest { - r.width = &width - return r -} - -// Rail-to-rail width -func (r ApiDcimRackTypesListRequest) WidthN(widthN []int32) ApiDcimRackTypesListRequest { - r.widthN = &widthN - return r -} - -func (r ApiDcimRackTypesListRequest) Execute() (*PaginatedRackTypeList, *http.Response, error) { - return r.ApiService.DcimRackTypesListExecute(r) -} - -/* -DcimRackTypesList Method for DcimRackTypesList - -Get a list of rack type objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiDcimRackTypesListRequest -*/ -func (a *DcimAPIService) DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest { - return ApiDcimRackTypesListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedRackTypeList -func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedRackTypeList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/dcim/rack-types/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } - } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } - } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } - } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } - } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } - } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.descUnits != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "") - } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") - } - } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") - } - } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } - } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } - } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } - } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") - } - } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") - } - } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } - } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.formFactor != nil { - t := *r.formFactor - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") - } - } - if r.formFactorN != nil { - t := *r.formFactorN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") - } - } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } - } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } - } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") - } - } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } - } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } - } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") - } - } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") - } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.manufacturer != nil { - t := *r.manufacturer - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") - } - } - if r.manufacturerN != nil { - t := *r.manufacturerN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") - } - } - if r.manufacturerId != nil { - t := *r.manufacturerId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") - } - } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") - } - } - if r.maxWeight != nil { - t := *r.maxWeight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "multi") - } - } - if r.maxWeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "") - } - if r.maxWeightGt != nil { - t := *r.maxWeightGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "multi") - } - } - if r.maxWeightGte != nil { - t := *r.maxWeightGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "multi") - } - } - if r.maxWeightLt != nil { - t := *r.maxWeightLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "multi") - } - } - if r.maxWeightLte != nil { - t := *r.maxWeightLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "multi") - } - } - if r.maxWeightN != nil { - t := *r.maxWeightN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "multi") - } - } - if r.model != nil { - t := *r.model - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") - } - } - if r.modelEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "") - } - if r.modelIc != nil { - t := *r.modelIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") - } - } - if r.modelIe != nil { - t := *r.modelIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") - } - } - if r.modelIew != nil { - t := *r.modelIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") - } - } - if r.modelIsw != nil { - t := *r.modelIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") - } - } - if r.modelN != nil { - t := *r.modelN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") - } - } - if r.modelNic != nil { - t := *r.modelNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") - } - } - if r.modelNie != nil { - t := *r.modelNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") - } - } - if r.modelNiew != nil { - t := *r.modelNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") - } - } - if r.modelNisw != nil { - t := *r.modelNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") - } - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.mountingDepth != nil { - t := *r.mountingDepth - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "multi") - } - } - if r.mountingDepthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "") - } - if r.mountingDepthGt != nil { - t := *r.mountingDepthGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "multi") - } - } - if r.mountingDepthGte != nil { - t := *r.mountingDepthGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "multi") - } - } - if r.mountingDepthLt != nil { - t := *r.mountingDepthLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "multi") - } - } - if r.mountingDepthLte != nil { - t := *r.mountingDepthLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "multi") - } - } - if r.mountingDepthN != nil { - t := *r.mountingDepthN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.outerDepth != nil { - t := *r.outerDepth - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "multi") - } - } - if r.outerDepthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "") - } - if r.outerDepthGt != nil { - t := *r.outerDepthGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "multi") - } - } - if r.outerDepthGte != nil { - t := *r.outerDepthGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "multi") - } - } - if r.outerDepthLt != nil { - t := *r.outerDepthLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "multi") - } - } - if r.outerDepthLte != nil { - t := *r.outerDepthLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "multi") - } - } - if r.outerDepthN != nil { - t := *r.outerDepthN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "multi") - } - } - if r.outerUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "") - } - if r.outerUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit__n", r.outerUnitN, "") - } - if r.outerWidth != nil { - t := *r.outerWidth - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "multi") - } - } - if r.outerWidthEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "") - } - if r.outerWidthGt != nil { - t := *r.outerWidthGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "multi") - } - } - if r.outerWidthGte != nil { - t := *r.outerWidthGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "multi") - } - } - if r.outerWidthLt != nil { - t := *r.outerWidthLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "multi") - } - } - if r.outerWidthLte != nil { - t := *r.outerWidthLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "multi") - } - } - if r.outerWidthN != nil { - t := *r.outerWidthN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "multi") - } - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } - } - if r.slugIe != nil { - t := *r.slugIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") - } - } - if r.slugIew != nil { - t := *r.slugIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") - } - } - if r.slugIsw != nil { - t := *r.slugIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } - } - if r.slugN != nil { - t := *r.slugN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } - } - if r.slugNic != nil { - t := *r.slugNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } - } - if r.slugNie != nil { - t := *r.slugNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") - } - } - if r.slugNiew != nil { - t := *r.slugNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") - } - } - if r.slugNisw != nil { - t := *r.slugNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") - } - } - if r.startingUnit != nil { - t := *r.startingUnit - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "multi") - } - } - if r.startingUnitEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "") - } - if r.startingUnitGt != nil { - t := *r.startingUnitGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "multi") - } - } - if r.startingUnitGte != nil { - t := *r.startingUnitGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "multi") - } - } - if r.startingUnitLt != nil { - t := *r.startingUnitLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "multi") - } - } - if r.startingUnitLte != nil { - t := *r.startingUnitLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "multi") - } - } - if r.startingUnitN != nil { - t := *r.startingUnitN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "multi") - } - } - if r.tag != nil { - t := *r.tag - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") - } - } - if r.tagN != nil { - t := *r.tagN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") - } - } - if r.uHeight != nil { - t := *r.uHeight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") - } - } - if r.uHeightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") - } - if r.uHeightGt != nil { - t := *r.uHeightGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") - } - } - if r.uHeightGte != nil { - t := *r.uHeightGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") - } - } - if r.uHeightLt != nil { - t := *r.uHeightLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") - } - } - if r.uHeightLte != nil { - t := *r.uHeightLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") - } - } - if r.uHeightN != nil { - t := *r.uHeightN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") - } - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.weight != nil { - t := *r.weight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") - } - } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") - } - } - if r.weightGte != nil { - t := *r.weightGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") - } - } - if r.weightLt != nil { - t := *r.weightLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") - } - } - if r.weightLte != nil { - t := *r.weightLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") - } - } - if r.weightN != nil { - t := *r.weightN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } - } - if r.weightUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") - } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") - } - if r.width != nil { - t := *r.width - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") - } - } - if r.widthN != nil { - t := *r.widthN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") - } - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiDcimRackTypesPartialUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - patchedWritableRackTypeRequest *PatchedWritableRackTypeRequest +type ApiDcimRackRolesPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + patchedRackRoleRequest *PatchedRackRoleRequest } -func (r ApiDcimRackTypesPartialUpdateRequest) PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest PatchedWritableRackTypeRequest) ApiDcimRackTypesPartialUpdateRequest { - r.patchedWritableRackTypeRequest = &patchedWritableRackTypeRequest +func (r ApiDcimRackRolesPartialUpdateRequest) PatchedRackRoleRequest(patchedRackRoleRequest PatchedRackRoleRequest) ApiDcimRackRolesPartialUpdateRequest { + r.patchedRackRoleRequest = &patchedRackRoleRequest return r } -func (r ApiDcimRackTypesPartialUpdateRequest) Execute() (*RackType, *http.Response, error) { - return r.ApiService.DcimRackTypesPartialUpdateExecute(r) +func (r ApiDcimRackRolesPartialUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesPartialUpdateExecute(r) } /* -DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate +DcimRackRolesPartialUpdate Method for DcimRackRolesPartialUpdate -Patch a rack type object. +Patch a rack role object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack type. - @return ApiDcimRackTypesPartialUpdateRequest + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesPartialUpdateRequest */ -func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest { - return ApiDcimRackTypesPartialUpdateRequest{ +func (a *DcimAPIService) DcimRackRolesPartialUpdate(ctx context.Context, id int32) ApiDcimRackRolesPartialUpdateRequest { + return ApiDcimRackRolesPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -93240,21 +90320,21 @@ func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int3 // Execute executes the request // -// @return RackType -func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPartialUpdateRequest) (*RackRole, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackType + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -93279,7 +90359,7 @@ func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPar localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedWritableRackTypeRequest + localVarPostBody = r.patchedRackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -93331,27 +90411,27 @@ func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackTypesRetrieveRequest struct { +type ApiDcimRackRolesRetrieveRequest struct { ctx context.Context ApiService *DcimAPIService id int32 } -func (r ApiDcimRackTypesRetrieveRequest) Execute() (*RackType, *http.Response, error) { - return r.ApiService.DcimRackTypesRetrieveExecute(r) +func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesRetrieveExecute(r) } /* -DcimRackTypesRetrieve Method for DcimRackTypesRetrieve +DcimRackRolesRetrieve Method for DcimRackRolesRetrieve -Get a rack type object. +Get a rack role object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack type. - @return ApiDcimRackTypesRetrieveRequest + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesRetrieveRequest */ -func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest { - return ApiDcimRackTypesRetrieveRequest{ +func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { + return ApiDcimRackRolesRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -93360,21 +90440,21 @@ func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) Ap // Execute executes the request // -// @return RackType -func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackType + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -93449,33 +90529,33 @@ func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackTypesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - writableRackTypeRequest *WritableRackTypeRequest +type ApiDcimRackRolesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + rackRoleRequest *RackRoleRequest } -func (r ApiDcimRackTypesUpdateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesUpdateRequest { - r.writableRackTypeRequest = &writableRackTypeRequest +func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { + r.rackRoleRequest = &rackRoleRequest return r } -func (r ApiDcimRackTypesUpdateRequest) Execute() (*RackType, *http.Response, error) { - return r.ApiService.DcimRackTypesUpdateExecute(r) +func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesUpdateExecute(r) } /* -DcimRackTypesUpdate Method for DcimRackTypesUpdate +DcimRackRolesUpdate Method for DcimRackRolesUpdate -Put a rack type object. +Put a rack role object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack type. - @return ApiDcimRackTypesUpdateRequest + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesUpdateRequest */ -func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest { - return ApiDcimRackTypesUpdateRequest{ +func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { + return ApiDcimRackRolesUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -93484,28 +90564,28 @@ func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiD // Execute executes the request // -// @return RackType -func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) { +// @return RackRole +func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackType + localVarReturnValue *RackRole ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.writableRackTypeRequest == nil { - return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") } // to determine the Content-Type header @@ -93526,7 +90606,7 @@ func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.writableRackTypeRequest + localVarPostBody = r.rackRoleRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -94423,8 +91503,6 @@ func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati type ApiDcimRacksListRequest struct { ctx context.Context ApiService *DcimAPIService - airflow *DcimRacksListAirflowParameter - airflowN *DcimRacksListAirflowParameter assetTag *[]string assetTagEmpty *bool assetTagIc *[]string @@ -94438,8 +91516,8 @@ type ApiDcimRacksListRequest struct { assetTagNisw *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -94473,8 +91551,6 @@ type ApiDcimRacksListRequest struct { facilityIdNie *[]string facilityIdNiew *[]string facilityIdNisw *[]string - formFactor *[]string - formFactorN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -94490,14 +91566,10 @@ type ApiDcimRacksListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]string - locationN *[]string - locationId *[]string - locationIdN *[]string - manufacturer *[]string - manufacturerN *[]string - manufacturerId *[]int32 - manufacturerIdN *[]int32 + location *[]int32 + locationN *[]int32 + locationId *[]int32 + locationIdN *[]int32 maxWeight *[]int32 maxWeightEmpty *bool maxWeightGt *[]int32 @@ -94533,8 +91605,8 @@ type ApiDcimRacksListRequest struct { outerDepthLt *[]int32 outerDepthLte *[]int32 outerDepthN *[]int32 - outerUnit *DcimRackTypesListOuterUnitParameter - outerUnitN *DcimRackTypesListOuterUnitParameter + outerUnit *DcimRacksListOuterUnitParameter + outerUnitN *DcimRacksListOuterUnitParameter outerWidth *[]int32 outerWidthEmpty *bool outerWidthGt *[]int32 @@ -94543,14 +91615,10 @@ type ApiDcimRacksListRequest struct { outerWidthLte *[]int32 outerWidthN *[]int32 q *string - rackType *[]string - rackTypeN *[]string - rackTypeId *[]*int32 - rackTypeIdN *[]*int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 role *[]string roleN *[]string roleId *[]*int32 @@ -94568,10 +91636,10 @@ type ApiDcimRacksListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 startingUnit *[]int32 @@ -94587,12 +91655,14 @@ type ApiDcimRacksListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 + type_ *[]string + typeN *[]string uHeight *[]int32 uHeightEmpty *bool uHeightGt *[]int32 @@ -94614,18 +91684,6 @@ type ApiDcimRacksListRequest struct { widthN *[]int32 } -// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front -func (r ApiDcimRacksListRequest) Airflow(airflow DcimRacksListAirflowParameter) ApiDcimRacksListRequest { - r.airflow = &airflow - return r -} - -// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front -func (r ApiDcimRacksListRequest) AirflowN(airflowN DcimRacksListAirflowParameter) ApiDcimRacksListRequest { - r.airflowN = &airflowN - return r -} - func (r ApiDcimRacksListRequest) AssetTag(assetTag []string) ApiDcimRacksListRequest { r.assetTag = &assetTag return r @@ -94693,12 +91751,14 @@ func (r ApiDcimRacksListRequest) ContactN(contactN []int32) ApiDcimRacksListRequ return r } -func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []string) ApiDcimRacksListRequest { +// Contact group +func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []int32) ApiDcimRacksListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []string) ApiDcimRacksListRequest { +// Contact group +func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRacksListRequest { r.contactGroupN = &contactGroupN return r } @@ -94870,16 +91930,6 @@ func (r ApiDcimRacksListRequest) FacilityIdNisw(facilityIdNisw []string) ApiDcim return r } -func (r ApiDcimRacksListRequest) FormFactor(formFactor []string) ApiDcimRacksListRequest { - r.formFactor = &formFactor - return r -} - -func (r ApiDcimRacksListRequest) FormFactorN(formFactorN []string) ApiDcimRacksListRequest { - r.formFactorN = &formFactorN - return r -} - func (r ApiDcimRacksListRequest) Id(id []int32) ApiDcimRacksListRequest { r.id = &id return r @@ -94956,50 +92006,30 @@ func (r ApiDcimRacksListRequest) Limit(limit int32) ApiDcimRacksListRequest { return r } -func (r ApiDcimRacksListRequest) Location(location []string) ApiDcimRacksListRequest { +// Location (slug) +func (r ApiDcimRacksListRequest) Location(location []int32) ApiDcimRacksListRequest { r.location = &location return r } -func (r ApiDcimRacksListRequest) LocationN(locationN []string) ApiDcimRacksListRequest { +// Location (slug) +func (r ApiDcimRacksListRequest) LocationN(locationN []int32) ApiDcimRacksListRequest { r.locationN = &locationN return r } -func (r ApiDcimRacksListRequest) LocationId(locationId []string) ApiDcimRacksListRequest { +// Location (ID) +func (r ApiDcimRacksListRequest) LocationId(locationId []int32) ApiDcimRacksListRequest { r.locationId = &locationId return r } -func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []string) ApiDcimRacksListRequest { +// Location (ID) +func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []int32) ApiDcimRacksListRequest { r.locationIdN = &locationIdN return r } -// Manufacturer (slug) -func (r ApiDcimRacksListRequest) Manufacturer(manufacturer []string) ApiDcimRacksListRequest { - r.manufacturer = &manufacturer - return r -} - -// Manufacturer (slug) -func (r ApiDcimRacksListRequest) ManufacturerN(manufacturerN []string) ApiDcimRacksListRequest { - r.manufacturerN = &manufacturerN - return r -} - -// Manufacturer (ID) -func (r ApiDcimRacksListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRacksListRequest { - r.manufacturerId = &manufacturerId - return r -} - -// Manufacturer (ID) -func (r ApiDcimRacksListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRacksListRequest { - r.manufacturerIdN = &manufacturerIdN - return r -} - func (r ApiDcimRacksListRequest) MaxWeight(maxWeight []int32) ApiDcimRacksListRequest { r.maxWeight = &maxWeight return r @@ -95178,13 +92208,13 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnit = &outerUnit return r } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnitN = &outerUnitN return r } @@ -95230,46 +92260,26 @@ func (r ApiDcimRacksListRequest) Q(q string) ApiDcimRacksListRequest { return r } -// Rack type (slug) -func (r ApiDcimRacksListRequest) RackType(rackType []string) ApiDcimRacksListRequest { - r.rackType = &rackType - return r -} - -// Rack type (slug) -func (r ApiDcimRacksListRequest) RackTypeN(rackTypeN []string) ApiDcimRacksListRequest { - r.rackTypeN = &rackTypeN - return r -} - -// Rack type (ID) -func (r ApiDcimRacksListRequest) RackTypeId(rackTypeId []*int32) ApiDcimRacksListRequest { - r.rackTypeId = &rackTypeId - return r -} - -// Rack type (ID) -func (r ApiDcimRacksListRequest) RackTypeIdN(rackTypeIdN []*int32) ApiDcimRacksListRequest { - r.rackTypeIdN = &rackTypeIdN - return r -} - -func (r ApiDcimRacksListRequest) Region(region []string) ApiDcimRacksListRequest { +// Region (slug) +func (r ApiDcimRacksListRequest) Region(region []int32) ApiDcimRacksListRequest { r.region = ®ion return r } -func (r ApiDcimRacksListRequest) RegionN(regionN []string) ApiDcimRacksListRequest { +// Region (slug) +func (r ApiDcimRacksListRequest) RegionN(regionN []int32) ApiDcimRacksListRequest { r.regionN = ®ionN return r } -func (r ApiDcimRacksListRequest) RegionId(regionId []string) ApiDcimRacksListRequest { +// Region (ID) +func (r ApiDcimRacksListRequest) RegionId(regionId []int32) ApiDcimRacksListRequest { r.regionId = ®ionId return r } -func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []string) ApiDcimRacksListRequest { +// Region (ID) +func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []int32) ApiDcimRacksListRequest { r.regionIdN = ®ionIdN return r } @@ -95365,22 +92375,26 @@ func (r ApiDcimRacksListRequest) SiteN(siteN []string) ApiDcimRacksListRequest { return r } -func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []string) ApiDcimRacksListRequest { +// Site group (slug) +func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []int32) ApiDcimRacksListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []string) ApiDcimRacksListRequest { +// Site group (slug) +func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRacksListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []string) ApiDcimRacksListRequest { +// Site group (ID) +func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRacksListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRacksListRequest { +// Site group (ID) +func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRacksListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -95464,22 +92478,26 @@ func (r ApiDcimRacksListRequest) TenantN(tenantN []string) ApiDcimRacksListReque return r } -func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []string) ApiDcimRacksListRequest { +// Tenant Group (slug) +func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []int32) ApiDcimRacksListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRacksListRequest { +// Tenant Group (slug) +func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRacksListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRacksListRequest { +// Tenant Group (ID) +func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRacksListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRacksListRequest { +// Tenant Group (ID) +func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRacksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -95496,6 +92514,16 @@ func (r ApiDcimRacksListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRacksListR return r } +func (r ApiDcimRacksListRequest) Type_(type_ []string) ApiDcimRacksListRequest { + r.type_ = &type_ + return r +} + +func (r ApiDcimRacksListRequest) TypeN(typeN []string) ApiDcimRacksListRequest { + r.typeN = &typeN + return r +} + func (r ApiDcimRacksListRequest) UHeight(uHeight []int32) ApiDcimRacksListRequest { r.uHeight = &uHeight return r @@ -95636,12 +92664,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.airflow != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") - } - if r.airflowN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") - } if r.assetTag != nil { t := *r.assetTag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96130,28 +93152,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "multi") } } - if r.formFactor != nil { - t := *r.formFactor - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") - } - } - if r.formFactorN != nil { - t := *r.formFactorN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96345,50 +93345,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } - if r.manufacturer != nil { - t := *r.manufacturer - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") - } - } - if r.manufacturerN != nil { - t := *r.manufacturerN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") - } - } - if r.manufacturerId != nil { - t := *r.manufacturerId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") - } - } - if r.manufacturerIdN != nil { - t := *r.manufacturerIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") - } - } if r.maxWeight != nil { t := *r.maxWeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96796,50 +93752,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } - if r.rackType != nil { - t := *r.rackType - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", t, "multi") - } - } - if r.rackTypeN != nil { - t := *r.rackTypeN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", t, "multi") - } - } - if r.rackTypeId != nil { - t := *r.rackTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", t, "multi") - } - } - if r.rackTypeIdN != nil { - t := *r.rackTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", t, "multi") - } - } if r.region != nil { t := *r.region if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -97330,6 +94242,28 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") } } + if r.type_ != nil { + t := *r.type_ + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") + } + } + if r.typeN != nil { + t := *r.typeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") + } + } if r.uHeight != nil { t := *r.uHeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -98569,6 +95503,8 @@ type ApiDcimRearPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 + devicetypeId *[]*int32 + devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -98598,6 +95534,8 @@ type ApiDcimRearPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 + moduletypeId *[]*int32 + moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -98786,6 +95724,18 @@ func (r ApiDcimRearPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int3 return r } +// Device type (ID) +func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest { + r.devicetypeId = &devicetypeId + return r +} + +// Device type (ID) +func (r ApiDcimRearPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { + r.devicetypeIdN = &devicetypeIdN + return r +} + func (r ApiDcimRearPortTemplatesListRequest) Id(id []int32) ApiDcimRearPortTemplatesListRequest { r.id = &id return r @@ -98934,6 +95884,18 @@ func (r ApiDcimRearPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int3 return r } +// Module type (ID) +func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest { + r.moduletypeId = &moduletypeId + return r +} + +// Module type (ID) +func (r ApiDcimRearPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { + r.moduletypeIdN = &moduletypeIdN + return r +} + func (r ApiDcimRearPortTemplatesListRequest) Name(name []string) ApiDcimRearPortTemplatesListRequest { r.name = &name return r @@ -99426,6 +96388,28 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } + if r.devicetypeId != nil { + t := *r.devicetypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + } + } + if r.devicetypeIdN != nil { + t := *r.devicetypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -99713,6 +96697,28 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } + if r.moduletypeId != nil { + t := *r.moduletypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") + } + } + if r.moduletypeIdN != nil { + t := *r.moduletypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -101006,12 +98012,6 @@ type ApiDcimRearPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 - deviceRole *[]string - deviceRoleN *[]string - deviceRoleId *[]int32 - deviceRoleIdN *[]int32 - deviceStatus *[]string - deviceStatusN *[]string deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -101076,16 +98076,20 @@ type ApiDcimRearPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -101302,40 +98306,6 @@ func (r ApiDcimRearPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimRearPor return r } -// Device role (slug) -func (r ApiDcimRearPortsListRequest) DeviceRole(deviceRole []string) ApiDcimRearPortsListRequest { - r.deviceRole = &deviceRole - return r -} - -// Device role (slug) -func (r ApiDcimRearPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimRearPortsListRequest { - r.deviceRoleN = &deviceRoleN - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimRearPortsListRequest { - r.deviceRoleId = &deviceRoleId - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimRearPortsListRequest { - r.deviceRoleIdN = &deviceRoleIdN - return r -} - -func (r ApiDcimRearPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimRearPortsListRequest { - r.deviceStatus = &deviceStatus - return r -} - -func (r ApiDcimRearPortsListRequest) DeviceStatusN(deviceStatusN []string) ApiDcimRearPortsListRequest { - r.deviceStatusN = &deviceStatusN - return r -} - // Device type (model) func (r ApiDcimRearPortsListRequest) DeviceType(deviceType []string) ApiDcimRearPortsListRequest { r.deviceType = &deviceType @@ -101674,26 +98644,54 @@ func (r ApiDcimRearPortsListRequest) RackIdN(rackIdN []int32) ApiDcimRearPortsLi return r } -func (r ApiDcimRearPortsListRequest) Region(region []string) ApiDcimRearPortsListRequest { +// Region (slug) +func (r ApiDcimRearPortsListRequest) Region(region []int32) ApiDcimRearPortsListRequest { r.region = ®ion return r } -func (r ApiDcimRearPortsListRequest) RegionN(regionN []string) ApiDcimRearPortsListRequest { +// Region (slug) +func (r ApiDcimRearPortsListRequest) RegionN(regionN []int32) ApiDcimRearPortsListRequest { r.regionN = ®ionN return r } -func (r ApiDcimRearPortsListRequest) RegionId(regionId []string) ApiDcimRearPortsListRequest { +// Region (ID) +func (r ApiDcimRearPortsListRequest) RegionId(regionId []int32) ApiDcimRearPortsListRequest { r.regionId = ®ionId return r } -func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []string) ApiDcimRearPortsListRequest { +// Region (ID) +func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimRearPortsListRequest { r.regionIdN = ®ionIdN return r } +// Device role (slug) +func (r ApiDcimRearPortsListRequest) Role(role []string) ApiDcimRearPortsListRequest { + r.role = &role + return r +} + +// Device role (slug) +func (r ApiDcimRearPortsListRequest) RoleN(roleN []string) ApiDcimRearPortsListRequest { + r.roleN = &roleN + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) RoleId(roleId []int32) ApiDcimRearPortsListRequest { + r.roleId = &roleId + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimRearPortsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site name (slug) func (r ApiDcimRearPortsListRequest) Site(site []string) ApiDcimRearPortsListRequest { r.site = &site @@ -101706,22 +98704,26 @@ func (r ApiDcimRearPortsListRequest) SiteN(siteN []string) ApiDcimRearPortsListR return r } -func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []string) ApiDcimRearPortsListRequest { +// Site group (slug) +func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimRearPortsListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRearPortsListRequest { +// Site group (slug) +func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRearPortsListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRearPortsListRequest { +// Site group (ID) +func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRearPortsListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRearPortsListRequest { +// Site group (ID) +func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRearPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -102209,72 +99211,6 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } - if r.deviceRole != nil { - t := *r.deviceRole - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") - } - } - if r.deviceRoleN != nil { - t := *r.deviceRoleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") - } - } - if r.deviceRoleId != nil { - t := *r.deviceRoleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") - } - } - if r.deviceRoleIdN != nil { - t := *r.deviceRoleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") - } - } - if r.deviceStatus != nil { - t := *r.deviceStatus - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") - } - } - if r.deviceStatusN != nil { - t := *r.deviceStatusN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") - } - } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -102935,6 +99871,50 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -104270,14 +101250,14 @@ func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques type ApiDcimRegionsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]string - ancestorN *[]string - ancestorId *[]string - ancestorIdN *[]string + ancestor *[]int32 + ancestorN *[]int32 + ancestorId *[]int32 + ancestorIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -104349,22 +101329,26 @@ type ApiDcimRegionsListRequest struct { updatedByRequest *string } -func (r ApiDcimRegionsListRequest) Ancestor(ancestor []string) ApiDcimRegionsListRequest { +// Region (slug) +func (r ApiDcimRegionsListRequest) Ancestor(ancestor []int32) ApiDcimRegionsListRequest { r.ancestor = &ancestor return r } -func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []string) ApiDcimRegionsListRequest { +// Region (slug) +func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []int32) ApiDcimRegionsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []string) ApiDcimRegionsListRequest { +// Region (ID) +func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []int32) ApiDcimRegionsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimRegionsListRequest { +// Region (ID) +func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimRegionsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -104381,12 +101365,14 @@ func (r ApiDcimRegionsListRequest) ContactN(contactN []int32) ApiDcimRegionsList return r } -func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []string) ApiDcimRegionsListRequest { +// Contact group +func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []int32) ApiDcimRegionsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []string) ApiDcimRegionsListRequest { +// Contact group +func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRegionsListRequest { r.contactGroupN = &contactGroupN return r } @@ -106584,14 +103570,14 @@ func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy type ApiDcimSiteGroupsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]string - ancestorN *[]string - ancestorId *[]string - ancestorIdN *[]string + ancestor *[]int32 + ancestorN *[]int32 + ancestorId *[]int32 + ancestorIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -106663,22 +103649,26 @@ type ApiDcimSiteGroupsListRequest struct { updatedByRequest *string } -func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []string) ApiDcimSiteGroupsListRequest { +// Site group (slug) +func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []int32) ApiDcimSiteGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []string) ApiDcimSiteGroupsListRequest { +// Site group (slug) +func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []int32) ApiDcimSiteGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []string) ApiDcimSiteGroupsListRequest { +// Site group (ID) +func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []int32) ApiDcimSiteGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimSiteGroupsListRequest { +// Site group (ID) +func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimSiteGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -106695,12 +103685,14 @@ func (r ApiDcimSiteGroupsListRequest) ContactN(contactN []int32) ApiDcimSiteGrou return r } -func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []string) ApiDcimSiteGroupsListRequest { +// Contact group +func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []int32) ApiDcimSiteGroupsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []string) ApiDcimSiteGroupsListRequest { +// Contact group +func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSiteGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -108904,8 +105896,8 @@ type ApiDcimSitesListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -108938,10 +105930,10 @@ type ApiDcimSitesListRequest struct { facilityNie *[]string facilityNiew *[]string facilityNisw *[]string - group *[]string - groupN *[]string - groupId *[]string - groupIdN *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -108986,10 +105978,10 @@ type ApiDcimSitesListRequest struct { offset *int32 ordering *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 slug *[]string slugEmpty *bool slugIc *[]string @@ -109007,10 +105999,10 @@ type ApiDcimSitesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 timeZone *[]string @@ -109062,12 +106054,14 @@ func (r ApiDcimSitesListRequest) ContactN(contactN []int32) ApiDcimSitesListRequ return r } -func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []string) ApiDcimSitesListRequest { +// Contact group +func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []int32) ApiDcimSitesListRequest { r.contactGroup = &contactGroup return r } -func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []string) ApiDcimSitesListRequest { +// Contact group +func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSitesListRequest { r.contactGroupN = &contactGroupN return r } @@ -109234,22 +106228,26 @@ func (r ApiDcimSitesListRequest) FacilityNisw(facilityNisw []string) ApiDcimSite return r } -func (r ApiDcimSitesListRequest) Group(group []string) ApiDcimSitesListRequest { +// Group (slug) +func (r ApiDcimSitesListRequest) Group(group []int32) ApiDcimSitesListRequest { r.group = &group return r } -func (r ApiDcimSitesListRequest) GroupN(groupN []string) ApiDcimSitesListRequest { +// Group (slug) +func (r ApiDcimSitesListRequest) GroupN(groupN []int32) ApiDcimSitesListRequest { r.groupN = &groupN return r } -func (r ApiDcimSitesListRequest) GroupId(groupId []string) ApiDcimSitesListRequest { +// Group (ID) +func (r ApiDcimSitesListRequest) GroupId(groupId []int32) ApiDcimSitesListRequest { r.groupId = &groupId return r } -func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []string) ApiDcimSitesListRequest { +// Group (ID) +func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []int32) ApiDcimSitesListRequest { r.groupIdN = &groupIdN return r } @@ -109478,22 +106476,26 @@ func (r ApiDcimSitesListRequest) Q(q string) ApiDcimSitesListRequest { return r } -func (r ApiDcimSitesListRequest) Region(region []string) ApiDcimSitesListRequest { +// Region (slug) +func (r ApiDcimSitesListRequest) Region(region []int32) ApiDcimSitesListRequest { r.region = ®ion return r } -func (r ApiDcimSitesListRequest) RegionN(regionN []string) ApiDcimSitesListRequest { +// Region (slug) +func (r ApiDcimSitesListRequest) RegionN(regionN []int32) ApiDcimSitesListRequest { r.regionN = ®ionN return r } -func (r ApiDcimSitesListRequest) RegionId(regionId []string) ApiDcimSitesListRequest { +// Region (ID) +func (r ApiDcimSitesListRequest) RegionId(regionId []int32) ApiDcimSitesListRequest { r.regionId = ®ionId return r } -func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []string) ApiDcimSitesListRequest { +// Region (ID) +func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []int32) ApiDcimSitesListRequest { r.regionIdN = ®ionIdN return r } @@ -109585,22 +106587,26 @@ func (r ApiDcimSitesListRequest) TenantN(tenantN []string) ApiDcimSitesListReque return r } -func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []string) ApiDcimSitesListRequest { +// Tenant Group (slug) +func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []int32) ApiDcimSitesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimSitesListRequest { +// Tenant Group (slug) +func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimSitesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimSitesListRequest { +// Tenant Group (ID) +func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimSitesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimSitesListRequest { +// Tenant Group (ID) +func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimSitesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -112096,16 +109102,16 @@ type ApiDcimVirtualChassisListRequest struct { offset *int32 ordering *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -112480,22 +109486,26 @@ func (r ApiDcimVirtualChassisListRequest) Q(q string) ApiDcimVirtualChassisListR return r } -func (r ApiDcimVirtualChassisListRequest) Region(region []string) ApiDcimVirtualChassisListRequest { +// Region (slug) +func (r ApiDcimVirtualChassisListRequest) Region(region []int32) ApiDcimVirtualChassisListRequest { r.region = ®ion return r } -func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []string) ApiDcimVirtualChassisListRequest { +// Region (slug) +func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []int32) ApiDcimVirtualChassisListRequest { r.regionN = ®ionN return r } -func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []string) ApiDcimVirtualChassisListRequest { +// Region (ID) +func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []int32) ApiDcimVirtualChassisListRequest { r.regionId = ®ionId return r } -func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []string) ApiDcimVirtualChassisListRequest { +// Region (ID) +func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []int32) ApiDcimVirtualChassisListRequest { r.regionIdN = ®ionIdN return r } @@ -112512,22 +109522,26 @@ func (r ApiDcimVirtualChassisListRequest) SiteN(siteN []string) ApiDcimVirtualCh return r } -func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []string) ApiDcimVirtualChassisListRequest { +// Site group (slug) +func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []int32) ApiDcimVirtualChassisListRequest { r.siteGroup = &siteGroup return r } -func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []string) ApiDcimVirtualChassisListRequest { +// Site group (slug) +func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []int32) ApiDcimVirtualChassisListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []string) ApiDcimVirtualChassisListRequest { +// Site group (ID) +func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []int32) ApiDcimVirtualChassisListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimVirtualChassisListRequest { +// Site group (ID) +func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimVirtualChassisListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -114629,10 +111643,10 @@ type ApiDcimVirtualDeviceContextsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -115020,22 +112034,26 @@ func (r ApiDcimVirtualDeviceContextsListRequest) TenantN(tenantN []string) ApiDc return r } -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []string) ApiDcimVirtualDeviceContextsListRequest { +// Tenant Group (slug) +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []int32) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimVirtualDeviceContextsListRequest { +// Tenant Group (slug) +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimVirtualDeviceContextsListRequest { +// Tenant Group (ID) +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimVirtualDeviceContextsListRequest { +// Tenant Group (ID) +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_extras.go b/api_extras.go index 2390af24a..2b89c130c 100644 --- a/api_extras.go +++ b/api_extras.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2262,6 +2262,10 @@ type ApiExtrasConfigContextsListRequest struct { regionN *[]string regionId *[]int32 regionIdN *[]int32 + role *[]string + roleN *[]string + roleId *[]int32 + roleIdN *[]int32 site *[]string siteN *[]string siteGroup *[]string @@ -2778,6 +2782,30 @@ func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtr return r } +// Role (slug) +func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { + r.role = &role + return r +} + +// Role (slug) +func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { + r.roleN = &roleN + return r +} + +// Role +func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { + r.roleId = &roleId + return r +} + +// Role +func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { + r.roleIdN = &roleIdN + return r +} + // Site (slug) func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { r.site = &site @@ -3873,6 +3901,50 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } + if r.role != nil { + t := *r.role + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + } + } + if r.roleN != nil { + t := *r.roleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + } + } + if r.roleId != nil { + t := *r.roleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + } + } + if r.roleIdN != nil { + t := *r.roleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9808,7 +9880,6 @@ type ApiExtrasCustomFieldsListRequest struct { uiEditableN *ExtrasCustomFieldsListUiEditableParameter uiVisible *ExtrasCustomFieldsListUiVisibleParameter uiVisibleN *ExtrasCustomFieldsListUiVisibleParameter - unique *bool updatedByRequest *string validationMaximum *[]int32 validationMaximumEmpty *bool @@ -10396,11 +10467,6 @@ func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN ExtrasCustomFiel return r } -func (r ApiExtrasCustomFieldsListRequest) Unique(unique bool) ApiExtrasCustomFieldsListRequest { - r.unique = &unique - return r -} - func (r ApiExtrasCustomFieldsListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasCustomFieldsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -11539,9 +11605,6 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if r.uiVisibleN != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "") } - if r.unique != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "unique", r.unique, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -12998,13 +13061,13 @@ type ApiExtrasCustomLinksListRequest struct { weightN *[]int32 } -// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClass(buttonClass ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClass = &buttonClass return r } -// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClassN(buttonClassN ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClassN = &buttonClassN return r @@ -15702,7 +15765,6 @@ type ApiExtrasEventRulesListRequest struct { descriptionNiew *[]string descriptionNisw *[]string enabled *bool - eventType *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -15747,6 +15809,11 @@ type ApiExtrasEventRulesListRequest struct { q *string tag *[]string tagN *[]string + typeCreate *bool + typeDelete *bool + typeJobEnd *bool + typeJobStart *bool + typeUpdate *bool updatedByRequest *string } @@ -15905,11 +15972,6 @@ func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRule return r } -func (r ApiExtrasEventRulesListRequest) EventType(eventType []string) ApiExtrasEventRulesListRequest { - r.eventType = &eventType - return r -} - func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest { r.id = &id return r @@ -16134,6 +16196,31 @@ func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesL return r } +func (r ApiExtrasEventRulesListRequest) TypeCreate(typeCreate bool) ApiExtrasEventRulesListRequest { + r.typeCreate = &typeCreate + return r +} + +func (r ApiExtrasEventRulesListRequest) TypeDelete(typeDelete bool) ApiExtrasEventRulesListRequest { + r.typeDelete = &typeDelete + return r +} + +func (r ApiExtrasEventRulesListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasEventRulesListRequest { + r.typeJobEnd = &typeJobEnd + return r +} + +func (r ApiExtrasEventRulesListRequest) TypeJobStart(typeJobStart bool) ApiExtrasEventRulesListRequest { + r.typeJobStart = &typeJobStart + return r +} + +func (r ApiExtrasEventRulesListRequest) TypeUpdate(typeUpdate bool) ApiExtrasEventRulesListRequest { + r.typeUpdate = &typeUpdate + return r +} + func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -16481,17 +16568,6 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } - if r.eventType != nil { - t := *r.eventType - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -16840,6 +16916,21 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") } } + if r.typeCreate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "") + } + if r.typeDelete != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "") + } + if r.typeJobEnd != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "") + } + if r.typeJobStart != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "") + } + if r.typeUpdate != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "") + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -23695,394 +23786,407 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationGroupsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationGroupRequest *[]NotificationGroupRequest +type ApiExtrasObjectChangesListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + action *ExtrasObjectChangesListActionParameter + actionN *ExtrasObjectChangesListActionParameter + changedObjectId *[]int32 + changedObjectIdEmpty *bool + changedObjectIdGt *[]int32 + changedObjectIdGte *[]int32 + changedObjectIdLt *[]int32 + changedObjectIdLte *[]int32 + changedObjectIdN *[]int32 + changedObjectType *string + changedObjectTypeN *string + changedObjectTypeId *[]int32 + changedObjectTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + objectRepr *[]string + objectReprEmpty *bool + objectReprIc *[]string + objectReprIe *[]string + objectReprIew *[]string + objectReprIsw *[]string + objectReprN *[]string + objectReprNic *[]string + objectReprNie *[]string + objectReprNiew *[]string + objectReprNisw *[]string + offset *int32 + ordering *string + q *string + relatedObjectId *[]int32 + relatedObjectIdEmpty *bool + relatedObjectIdGt *[]int32 + relatedObjectIdGte *[]int32 + relatedObjectIdLt *[]int32 + relatedObjectIdLte *[]int32 + relatedObjectIdN *[]int32 + relatedObjectType *int32 + relatedObjectTypeN *int32 + requestId *string + timeAfter *time.Time + timeBefore *time.Time + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + userName *[]string + userNameEmpty *bool + userNameIc *[]string + userNameIe *[]string + userNameIew *[]string + userNameIsw *[]string + userNameN *[]string + userNameNic *[]string + userNameNie *[]string + userNameNiew *[]string + userNameNisw *[]string } -func (r ApiExtrasNotificationGroupsBulkDestroyRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkDestroyRequest { - r.notificationGroupRequest = ¬ificationGroupRequest +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiExtrasObjectChangesListRequest) Action(action ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { + r.action = &action return r } -func (r ApiExtrasNotificationGroupsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsBulkDestroyExecute(r) +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiExtrasObjectChangesListRequest) ActionN(actionN ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { + r.actionN = &actionN + return r } -/* -ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy +func (r ApiExtrasObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectId = &changedObjectId + return r +} -Delete a list of notification group objects. +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { + r.changedObjectIdEmpty = &changedObjectIdEmpty + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationGroupsBulkDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest { - return ApiExtrasNotificationGroupsBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectIdGt = &changedObjectIdGt + return r } -// Execute executes the request -func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectIdGte = &changedObjectIdGte + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectIdLt = &changedObjectIdLt + return r +} - localVarPath := localBasePath + "/api/extras/notification-groups/" +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectIdLte = &changedObjectIdLte + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.notificationGroupRequest == nil { - return nil, reportError("notificationGroupRequest is required and must be specified") - } +func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectIdN = &changedObjectIdN + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiExtrasObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiExtrasObjectChangesListRequest { + r.changedObjectType = &changedObjectType + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiExtrasObjectChangesListRequest { + r.changedObjectTypeN = &changedObjectTypeN + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} +func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectTypeId = &changedObjectTypeId + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.notificationGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } +func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiExtrasObjectChangesListRequest { + r.changedObjectTypeIdN = &changedObjectTypeIdN + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } +func (r ApiExtrasObjectChangesListRequest) Id(id []int32) ApiExtrasObjectChangesListRequest { + r.id = &id + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } +func (r ApiExtrasObjectChangesListRequest) IdEmpty(idEmpty bool) ApiExtrasObjectChangesListRequest { + r.idEmpty = &idEmpty + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } +func (r ApiExtrasObjectChangesListRequest) IdGt(idGt []int32) ApiExtrasObjectChangesListRequest { + r.idGt = &idGt + return r +} - return localVarHTTPResponse, nil +func (r ApiExtrasObjectChangesListRequest) IdGte(idGte []int32) ApiExtrasObjectChangesListRequest { + r.idGte = &idGte + return r } -type ApiExtrasNotificationGroupsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationGroupRequest *[]NotificationGroupRequest +func (r ApiExtrasObjectChangesListRequest) IdLt(idLt []int32) ApiExtrasObjectChangesListRequest { + r.idLt = &idLt + return r } -func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { - r.notificationGroupRequest = ¬ificationGroupRequest +func (r ApiExtrasObjectChangesListRequest) IdLte(idLte []int32) ApiExtrasObjectChangesListRequest { + r.idLte = &idLte return r } -func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsBulkPartialUpdateExecute(r) +func (r ApiExtrasObjectChangesListRequest) IdN(idN []int32) ApiExtrasObjectChangesListRequest { + r.idN = &idN + return r } -/* -ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate +// Number of results to return per page. +func (r ApiExtrasObjectChangesListRequest) Limit(limit int32) ApiExtrasObjectChangesListRequest { + r.limit = &limit + return r +} -Patch a list of notification group objects. +func (r ApiExtrasObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiExtrasObjectChangesListRequest { + r.objectRepr = &objectRepr + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { - return ApiExtrasNotificationGroupsBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiExtrasObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiExtrasObjectChangesListRequest { + r.objectReprEmpty = &objectReprEmpty + return r } -// Execute executes the request -// -// @return []NotificationGroup -func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []NotificationGroup - ) +func (r ApiExtrasObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiExtrasObjectChangesListRequest { + r.objectReprIc = &objectReprIc + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiExtrasObjectChangesListRequest { + r.objectReprIe = &objectReprIe + return r +} - localVarPath := localBasePath + "/api/extras/notification-groups/" +func (r ApiExtrasObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiExtrasObjectChangesListRequest { + r.objectReprIew = &objectReprIew + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.notificationGroupRequest == nil { - return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") - } +func (r ApiExtrasObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiExtrasObjectChangesListRequest { + r.objectReprIsw = &objectReprIsw + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiExtrasObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiExtrasObjectChangesListRequest { + r.objectReprN = &objectReprN + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiExtrasObjectChangesListRequest { + r.objectReprNic = &objectReprNic + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiExtrasObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiExtrasObjectChangesListRequest { + r.objectReprNie = &objectReprNie + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.notificationGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiExtrasObjectChangesListRequest { + r.objectReprNiew = &objectReprNiew + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiExtrasObjectChangesListRequest { + r.objectReprNisw = &objectReprNisw + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +// The initial index from which to return the results. +func (r ApiExtrasObjectChangesListRequest) Offset(offset int32) ApiExtrasObjectChangesListRequest { + r.offset = &offset + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +// Which field to use when ordering the results. +func (r ApiExtrasObjectChangesListRequest) Ordering(ordering string) ApiExtrasObjectChangesListRequest { + r.ordering = &ordering + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +// Search +func (r ApiExtrasObjectChangesListRequest) Q(q string) ApiExtrasObjectChangesListRequest { + r.q = &q + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectId = &relatedObjectId + return r } -type ApiExtrasNotificationGroupsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationGroupRequest *[]NotificationGroupRequest +func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { + r.relatedObjectIdEmpty = &relatedObjectIdEmpty + return r } -func (r ApiExtrasNotificationGroupsBulkUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkUpdateRequest { - r.notificationGroupRequest = ¬ificationGroupRequest +func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectIdGt = &relatedObjectIdGt return r } -func (r ApiExtrasNotificationGroupsBulkUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsBulkUpdateExecute(r) +func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectIdGte = &relatedObjectIdGte + return r } -/* -ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate +func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectIdLt = &relatedObjectIdLt + return r +} -Put a list of notification group objects. +func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectIdLte = &relatedObjectIdLte + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationGroupsBulkUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest { - return ApiExtrasNotificationGroupsBulkUpdateRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectIdN = &relatedObjectIdN + return r } -// Execute executes the request -// -// @return []NotificationGroup -func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []NotificationGroup - ) +func (r ApiExtrasObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectType = &relatedObjectType + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiExtrasObjectChangesListRequest { + r.relatedObjectTypeN = &relatedObjectTypeN + return r +} - localVarPath := localBasePath + "/api/extras/notification-groups/" +func (r ApiExtrasObjectChangesListRequest) RequestId(requestId string) ApiExtrasObjectChangesListRequest { + r.requestId = &requestId + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.notificationGroupRequest == nil { - return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") - } +func (r ApiExtrasObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiExtrasObjectChangesListRequest { + r.timeAfter = &timeAfter + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} +func (r ApiExtrasObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiExtrasObjectChangesListRequest { + r.timeBefore = &timeBefore + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +// User name +func (r ApiExtrasObjectChangesListRequest) User(user []string) ApiExtrasObjectChangesListRequest { + r.user = &user + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +// User name +func (r ApiExtrasObjectChangesListRequest) UserN(userN []string) ApiExtrasObjectChangesListRequest { + r.userN = &userN + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.notificationGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +// User (ID) +func (r ApiExtrasObjectChangesListRequest) UserId(userId []*int32) ApiExtrasObjectChangesListRequest { + r.userId = &userId + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +// User (ID) +func (r ApiExtrasObjectChangesListRequest) UserIdN(userIdN []*int32) ApiExtrasObjectChangesListRequest { + r.userIdN = &userIdN + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasObjectChangesListRequest) UserName(userName []string) ApiExtrasObjectChangesListRequest { + r.userName = &userName + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiExtrasObjectChangesListRequest { + r.userNameEmpty = &userNameEmpty + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasObjectChangesListRequest) UserNameIc(userNameIc []string) ApiExtrasObjectChangesListRequest { + r.userNameIc = &userNameIc + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasObjectChangesListRequest) UserNameIe(userNameIe []string) ApiExtrasObjectChangesListRequest { + r.userNameIe = &userNameIe + return r } -type ApiExtrasNotificationGroupsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationGroupRequest *NotificationGroupRequest +func (r ApiExtrasObjectChangesListRequest) UserNameIew(userNameIew []string) ApiExtrasObjectChangesListRequest { + r.userNameIew = &userNameIew + return r +} + +func (r ApiExtrasObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiExtrasObjectChangesListRequest { + r.userNameIsw = &userNameIsw + return r +} + +func (r ApiExtrasObjectChangesListRequest) UserNameN(userNameN []string) ApiExtrasObjectChangesListRequest { + r.userNameN = &userNameN + return r +} + +func (r ApiExtrasObjectChangesListRequest) UserNameNic(userNameNic []string) ApiExtrasObjectChangesListRequest { + r.userNameNic = &userNameNic + return r +} + +func (r ApiExtrasObjectChangesListRequest) UserNameNie(userNameNie []string) ApiExtrasObjectChangesListRequest { + r.userNameNie = &userNameNie + return r } -func (r ApiExtrasNotificationGroupsCreateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsCreateRequest { - r.notificationGroupRequest = ¬ificationGroupRequest +func (r ApiExtrasObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiExtrasObjectChangesListRequest { + r.userNameNiew = &userNameNiew return r } -func (r ApiExtrasNotificationGroupsCreateRequest) Execute() (*NotificationGroup, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsCreateExecute(r) +func (r ApiExtrasObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiExtrasObjectChangesListRequest { + r.userNameNisw = &userNameNisw + return r +} + +func (r ApiExtrasObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { + return r.ApiService.ExtrasObjectChangesListExecute(r) } /* -ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate +ExtrasObjectChangesList Method for ExtrasObjectChangesList -Post a list of notification group objects. +Retrieve a list of recent changes. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationGroupsCreateRequest + @return ApiExtrasObjectChangesListRequest */ -func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest { - return ApiExtrasNotificationGroupsCreateRequest{ +func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { + return ApiExtrasObjectChangesListRequest{ ApiService: a, ctx: ctx, } @@ -24090,285 +24194,568 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) A // Execute executes the request // -// @return NotificationGroup -func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) { +// @return PaginatedObjectChangeList +func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *NotificationGroup + localVarReturnValue *PaginatedObjectChangeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notification-groups/" + localVarPath := localBasePath + "/api/extras/object-changes/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.notificationGroupRequest == nil { - return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.actionN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") } - // body params - localVarPostBody = r.notificationGroupRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.changedObjectId != nil { + t := *r.changedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.changedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.changedObjectIdGt != nil { + t := *r.changedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.changedObjectIdGte != nil { + t := *r.changedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.changedObjectIdLt != nil { + t := *r.changedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.changedObjectIdLte != nil { + t := *r.changedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasNotificationGroupsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} - -func (r ApiExtrasNotificationGroupsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsDestroyExecute(r) -} - -/* -ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy - -Delete a notification group object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification group. - @return ApiExtrasNotificationGroupsDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest { - return ApiExtrasNotificationGroupsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.changedObjectIdN != nil { + t := *r.changedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") + } } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.changedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") } - - localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.changedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.changedObjectTypeId != nil { + t := *r.changedObjectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") + } } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.changedObjectTypeIdN != nil { + t := *r.changedObjectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") } - return localVarHTTPResponse, newErr } - - return localVarHTTPResponse, nil -} - -type ApiExtrasNotificationGroupsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - limit *int32 - offset *int32 - ordering *string -} - -// Number of results to return per page. -func (r ApiExtrasNotificationGroupsListRequest) Limit(limit int32) ApiExtrasNotificationGroupsListRequest { - r.limit = &limit - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasNotificationGroupsListRequest) Offset(offset int32) ApiExtrasNotificationGroupsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasNotificationGroupsListRequest) Ordering(ordering string) ApiExtrasNotificationGroupsListRequest { - r.ordering = &ordering - return r -} - -func (r ApiExtrasNotificationGroupsListRequest) Execute() (*PaginatedNotificationGroupList, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsListExecute(r) -} - -/* -ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList - -Get a list of notification group objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationGroupsListRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest { - return ApiExtrasNotificationGroupsListRequest{ - ApiService: a, - ctx: ctx, + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedNotificationGroupList -func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedNotificationGroupList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/notification-groups/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + if r.objectRepr != nil { + t := *r.objectRepr + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") + } } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + if r.objectReprEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header + if r.objectReprIc != nil { + t := *r.objectReprIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") + } + } + if r.objectReprIe != nil { + t := *r.objectReprIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") + } + } + if r.objectReprIew != nil { + t := *r.objectReprIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") + } + } + if r.objectReprIsw != nil { + t := *r.objectReprIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") + } + } + if r.objectReprN != nil { + t := *r.objectReprN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") + } + } + if r.objectReprNic != nil { + t := *r.objectReprNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") + } + } + if r.objectReprNie != nil { + t := *r.objectReprNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") + } + } + if r.objectReprNiew != nil { + t := *r.objectReprNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") + } + } + if r.objectReprNisw != nil { + t := *r.objectReprNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.relatedObjectId != nil { + t := *r.relatedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") + } + } + if r.relatedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") + } + if r.relatedObjectIdGt != nil { + t := *r.relatedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") + } + } + if r.relatedObjectIdGte != nil { + t := *r.relatedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") + } + } + if r.relatedObjectIdLt != nil { + t := *r.relatedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") + } + } + if r.relatedObjectIdLte != nil { + t := *r.relatedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") + } + } + if r.relatedObjectIdN != nil { + t := *r.relatedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") + } + } + if r.relatedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") + } + if r.relatedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") + } + if r.timeAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") + } + if r.timeBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.userName != nil { + t := *r.userName + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") + } + } + if r.userNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") + } + if r.userNameIc != nil { + t := *r.userNameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") + } + } + if r.userNameIe != nil { + t := *r.userNameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") + } + } + if r.userNameIew != nil { + t := *r.userNameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") + } + } + if r.userNameIsw != nil { + t := *r.userNameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") + } + } + if r.userNameN != nil { + t := *r.userNameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") + } + } + if r.userNameNic != nil { + t := *r.userNameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") + } + } + if r.userNameNie != nil { + t := *r.userNameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") + } + } + if r.userNameNiew != nil { + t := *r.userNameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") + } + } + if r.userNameNisw != nil { + t := *r.userNameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) if localVarHTTPContentType != "" { localVarHeaderParams["Content-Type"] = localVarHTTPContentType @@ -24433,33 +24820,27 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotifi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationGroupsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedNotificationGroupRequest *PatchedNotificationGroupRequest -} - -func (r ApiExtrasNotificationGroupsPartialUpdateRequest) PatchedNotificationGroupRequest(patchedNotificationGroupRequest PatchedNotificationGroupRequest) ApiExtrasNotificationGroupsPartialUpdateRequest { - r.patchedNotificationGroupRequest = &patchedNotificationGroupRequest - return r +type ApiExtrasObjectChangesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasNotificationGroupsPartialUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsPartialUpdateExecute(r) +func (r ApiExtrasObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { + return r.ApiService.ExtrasObjectChangesRetrieveExecute(r) } /* -ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate +ExtrasObjectChangesRetrieve Method for ExtrasObjectChangesRetrieve -Patch a notification group object. +Retrieve a list of recent changes. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification group. - @return ApiExtrasNotificationGroupsPartialUpdateRequest + @param id A unique integer value identifying this object change. + @return ApiExtrasObjectChangesRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest { - return ApiExtrasNotificationGroupsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { + return ApiExtrasObjectChangesRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -24468,21 +24849,21 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Con // Execute executes the request // -// @return NotificationGroup -func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) { +// @return ObjectChange +func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *NotificationGroup + localVarReturnValue *ObjectChange ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath := localBasePath + "/api/extras/object-changes/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -24490,7 +24871,7 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExt localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -24506,8 +24887,6 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExt if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedNotificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24559,56 +24938,119 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExt return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationGroupsRetrieveRequest struct { +type ApiExtrasObjectTypesListRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 + appLabel *string + id *int32 + limit *int32 + model *string + offset *int32 + ordering *string + q *string +} + +func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { + r.appLabel = &appLabel + return r +} + +func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { + r.id = &id + return r +} + +// Number of results to return per page. +func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { + r.model = &model + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { + r.q = &q + return r } -func (r ApiExtrasNotificationGroupsRetrieveRequest) Execute() (*NotificationGroup, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsRetrieveExecute(r) +func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesListExecute(r) } /* -ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve +ExtrasObjectTypesList Method for ExtrasObjectTypesList -Get a notification group object. +Read-only list of ObjectTypes. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification group. - @return ApiExtrasNotificationGroupsRetrieveRequest + @return ApiExtrasObjectTypesListRequest */ -func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest { - return ApiExtrasNotificationGroupsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { + return ApiExtrasObjectTypesListRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request // -// @return NotificationGroup -func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) { +// @return PaginatedObjectTypeList +func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *NotificationGroup + localVarReturnValue *PaginatedObjectTypeList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/object-types/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.appLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -24677,33 +25119,27 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNo return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationGroupsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - notificationGroupRequest *NotificationGroupRequest -} - -func (r ApiExtrasNotificationGroupsUpdateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsUpdateRequest { - r.notificationGroupRequest = ¬ificationGroupRequest - return r +type ApiExtrasObjectTypesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasNotificationGroupsUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { - return r.ApiService.ExtrasNotificationGroupsUpdateExecute(r) +func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) } /* -ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate +ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve -Put a notification group object. +Read-only list of ObjectTypes. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification group. - @return ApiExtrasNotificationGroupsUpdateRequest + @param id A unique integer value identifying this object type. + @return ApiExtrasObjectTypesRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest { - return ApiExtrasNotificationGroupsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { + return ApiExtrasObjectTypesRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -24712,32 +25148,29 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, i // Execute executes the request // -// @return NotificationGroup -func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) { +// @return ObjectType +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *NotificationGroup + localVarReturnValue *ObjectType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath := localBasePath + "/api/extras/object-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.notificationGroupRequest == nil { - return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -24753,8 +25186,6 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNoti if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.notificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24806,56 +25237,56 @@ func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNoti return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationRequest *[]NotificationRequest +type ApiExtrasSavedFiltersBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest } -func (r ApiExtrasNotificationsBulkDestroyRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkDestroyRequest { - r.notificationRequest = ¬ificationRequest +func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { + r.savedFilterRequest = &savedFilterRequest return r } -func (r ApiExtrasNotificationsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasNotificationsBulkDestroyExecute(r) +func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) } /* -ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy +ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy -Delete a list of notification objects. +Delete a list of saved filter objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationsBulkDestroyRequest + @return ApiExtrasSavedFiltersBulkDestroyRequest */ -func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest { - return ApiExtrasNotificationsBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { + return ApiExtrasSavedFiltersBulkDestroyRequest{ ApiService: a, ctx: ctx, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notifications/" + localVarPath := localBasePath + "/api/extras/saved-filters/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.notificationRequest == nil { - return nil, reportError("notificationRequest is required and must be specified") + if r.savedFilterRequest == nil { + return nil, reportError("savedFilterRequest is required and must be specified") } // to determine the Content-Type header @@ -24876,7 +25307,7 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNoti localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.notificationRequest + localVarPostBody = r.savedFilterRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -24919,31 +25350,31 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNoti return localVarHTTPResponse, nil } -type ApiExtrasNotificationsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationRequest *[]NotificationRequest +type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest } -func (r ApiExtrasNotificationsBulkPartialUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkPartialUpdateRequest { - r.notificationRequest = ¬ificationRequest +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + r.savedFilterRequest = &savedFilterRequest return r } -func (r ApiExtrasNotificationsBulkPartialUpdateRequest) Execute() ([]Notification, *http.Response, error) { - return r.ApiService.ExtrasNotificationsBulkPartialUpdateExecute(r) +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) } /* -ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate +ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate -Patch a list of notification objects. +Patch a list of saved filter objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationsBulkPartialUpdateRequest + @return ApiExtrasSavedFiltersBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest { - return ApiExtrasNotificationsBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -24951,27 +25382,27 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Cont // Execute executes the request // -// @return []Notification -func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) { +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue []Notification + localVarReturnValue []SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notifications/" + localVarPath := localBasePath + "/api/extras/saved-filters/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.notificationRequest == nil { - return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } // to determine the Content-Type header @@ -24992,7 +25423,7 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtr localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.notificationRequest + localVarPostBody = r.savedFilterRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25044,31 +25475,31 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationRequest *[]NotificationRequest +type ApiExtrasSavedFiltersBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest } -func (r ApiExtrasNotificationsBulkUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkUpdateRequest { - r.notificationRequest = ¬ificationRequest +func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { + r.savedFilterRequest = &savedFilterRequest return r } -func (r ApiExtrasNotificationsBulkUpdateRequest) Execute() ([]Notification, *http.Response, error) { - return r.ApiService.ExtrasNotificationsBulkUpdateExecute(r) +func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) } /* -ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate +ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate -Put a list of notification objects. +Put a list of saved filter objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationsBulkUpdateRequest + @return ApiExtrasSavedFiltersBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest { - return ApiExtrasNotificationsBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { + return ApiExtrasSavedFiltersBulkUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25076,27 +25507,27 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) Ap // Execute executes the request // -// @return []Notification -func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) { +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue []Notification + localVarReturnValue []SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notifications/" + localVarPath := localBasePath + "/api/extras/saved-filters/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.notificationRequest == nil { - return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } // to determine the Content-Type header @@ -25117,7 +25548,7 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotif localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.notificationRequest + localVarPostBody = r.savedFilterRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25169,31 +25600,31 @@ func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotif return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - notificationRequest *NotificationRequest +type ApiExtrasSavedFiltersCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *SavedFilterRequest } -func (r ApiExtrasNotificationsCreateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsCreateRequest { - r.notificationRequest = ¬ificationRequest +func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { + r.savedFilterRequest = &savedFilterRequest return r } -func (r ApiExtrasNotificationsCreateRequest) Execute() (*Notification, *http.Response, error) { - return r.ApiService.ExtrasNotificationsCreateExecute(r) +func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersCreateExecute(r) } /* -ExtrasNotificationsCreate Method for ExtrasNotificationsCreate +ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate -Post a list of notification objects. +Post a list of saved filter objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationsCreateRequest + @return ApiExtrasSavedFiltersCreateRequest */ -func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest { - return ApiExtrasNotificationsCreateRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { + return ApiExtrasSavedFiltersCreateRequest{ ApiService: a, ctx: ctx, } @@ -25201,27 +25632,27 @@ func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExt // Execute executes the request // -// @return Notification -func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Notification + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notifications/" + localVarPath := localBasePath + "/api/extras/saved-filters/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.notificationRequest == nil { - return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } // to determine the Content-Type header @@ -25242,7 +25673,7 @@ func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificat localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.notificationRequest + localVarPostBody = r.savedFilterRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25294,27 +25725,27 @@ func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificat return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasNotificationsDestroyRequest struct { +type ApiExtrasSavedFiltersDestroyRequest struct { ctx context.Context ApiService *ExtrasAPIService id int32 } -func (r ApiExtrasNotificationsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasNotificationsDestroyExecute(r) +func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) } /* -ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy +ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy -Delete a notification object. +Delete a saved filter object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification. - @return ApiExtrasNotificationsDestroyRequest + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersDestroyRequest */ -func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest { - return ApiExtrasNotificationsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { + return ApiExtrasSavedFiltersDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -25322,19 +25753,19 @@ func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id in } // Execute executes the request -func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -25400,3831 +25831,1339 @@ func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotifica return localVarHTTPResponse, nil } -type ApiExtrasNotificationsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - limit *int32 - offset *int32 - ordering *string -} - -// Number of results to return per page. -func (r ApiExtrasNotificationsListRequest) Limit(limit int32) ApiExtrasNotificationsListRequest { - r.limit = &limit - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasNotificationsListRequest) Offset(offset int32) ApiExtrasNotificationsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasNotificationsListRequest) Ordering(ordering string) ApiExtrasNotificationsListRequest { - r.ordering = &ordering - return r -} - -func (r ApiExtrasNotificationsListRequest) Execute() (*PaginatedNotificationList, *http.Response, error) { - return r.ApiService.ExtrasNotificationsListExecute(r) -} - -/* -ExtrasNotificationsList Method for ExtrasNotificationsList - -Get a list of notification objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasNotificationsListRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest { - return ApiExtrasNotificationsListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedNotificationList -func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedNotificationList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +type ApiExtrasSavedFiltersListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + shared *bool + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + updatedByRequest *string + usable *bool + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} - localVarPath := localBasePath + "/api/extras/notifications/" +func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { + r.created = &created + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdEmpty = &createdEmpty + return r +} - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGt = &createdGt + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGte = &createdGte + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLt = &createdLt + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLte = &createdLte + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdN = &createdN + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { + r.createdByRequest = &createdByRequest + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { + r.description = &description + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIc = &descriptionIc + return r } -type ApiExtrasNotificationsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedNotificationRequest *PatchedNotificationRequest +func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIe = &descriptionIe + return r } -func (r ApiExtrasNotificationsPartialUpdateRequest) PatchedNotificationRequest(patchedNotificationRequest PatchedNotificationRequest) ApiExtrasNotificationsPartialUpdateRequest { - r.patchedNotificationRequest = &patchedNotificationRequest +func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIew = &descriptionIew return r } -func (r ApiExtrasNotificationsPartialUpdateRequest) Execute() (*Notification, *http.Response, error) { - return r.ApiService.ExtrasNotificationsPartialUpdateExecute(r) +func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIsw = &descriptionIsw + return r } -/* -ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate +func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { + r.descriptionN = &descriptionN + return r +} -Patch a notification object. +func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNic = &descriptionNic + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification. - @return ApiExtrasNotificationsPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest { - return ApiExtrasNotificationsPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNie = &descriptionNie + return r } -// Execute executes the request -// -// @return Notification -func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Notification - ) +func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNiew = &descriptionNiew + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNisw = &descriptionNisw + return r +} - localVarPath := localBasePath + "/api/extras/notifications/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedNotificationRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { + r.enabled = &enabled + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { + r.id = &id + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { + r.idEmpty = &idEmpty + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { + r.idGt = &idGt + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { + r.idGte = &idGte + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { + r.idLt = &idLt + return r } -type ApiExtrasNotificationsRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { + r.idLte = &idLte + return r } -func (r ApiExtrasNotificationsRetrieveRequest) Execute() (*Notification, *http.Response, error) { - return r.ApiService.ExtrasNotificationsRetrieveExecute(r) +func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { + r.idN = &idN + return r } -/* -ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve +func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdated = &lastUpdated + return r +} -Get a notification object. +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification. - @return ApiExtrasNotificationsRetrieveRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest { - return ApiExtrasNotificationsRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r } -// Execute executes the request -// -// @return Notification -func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Notification - ) +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} - localVarPath := localBasePath + "/api/extras/notifications/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +// Number of results to return per page. +func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { + r.limit = &limit + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { + r.name = &name + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { + r.nameEmpty = &nameEmpty + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { + r.nameIc = &nameIc + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { + r.nameIe = &nameIe + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { + r.nameIew = &nameIew + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { + r.nameIsw = &nameIsw + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { + r.nameN = &nameN + return r } -type ApiExtrasNotificationsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - notificationRequest *NotificationRequest +func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { + r.nameNic = &nameNic + return r } -func (r ApiExtrasNotificationsUpdateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsUpdateRequest { - r.notificationRequest = ¬ificationRequest +func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { + r.nameNie = &nameNie return r } -func (r ApiExtrasNotificationsUpdateRequest) Execute() (*Notification, *http.Response, error) { - return r.ApiService.ExtrasNotificationsUpdateExecute(r) +func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { + r.nameNiew = &nameNiew + return r } -/* -ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate +func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { + r.nameNisw = &nameNisw + return r +} -Put a notification object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this notification. - @return ApiExtrasNotificationsUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest { - return ApiExtrasNotificationsUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } +func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { + r.objectType = &objectType + return r } -// Execute executes the request -// -// @return Notification -func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Notification - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/notifications/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.notificationRequest == nil { - return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.notificationRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIc = &objectTypeIc + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIe = &objectTypeIe + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIew = &objectTypeIew + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIsw = &objectTypeIsw + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { + r.objectTypeN = &objectTypeN + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNic = &objectTypeNic + return r } -type ApiExtrasObjectTypesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - appLabel *string - id *int32 - limit *int32 - model *string - offset *int32 - ordering *string - q *string +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNie = &objectTypeNie + return r } -func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { - r.appLabel = &appLabel +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNiew = &objectTypeNiew return r } -func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { - r.id = &id +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNisw = &objectTypeNisw return r } -// Number of results to return per page. -func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { - r.limit = &limit +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeId = &objectTypeId return r } -func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { - r.model = &model +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeIdN = &objectTypeIdN return r } // The initial index from which to return the results. -func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { +func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { +func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { r.ordering = &ordering return r } // Search -func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { +func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { r.q = &q return r } -func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesListExecute(r) +func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { + r.shared = &shared + return r } -/* -ExtrasObjectTypesList Method for ExtrasObjectTypesList +func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { + r.slug = &slug + return r +} -Read-only list of ObjectTypes. +func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { + r.slugEmpty = &slugEmpty + return r +} - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectTypesListRequest -*/ -func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { - return ApiExtrasObjectTypesListRequest{ - ApiService: a, - ctx: ctx, - } +func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { + r.slugIc = &slugIc + return r } -// Execute executes the request -// -// @return PaginatedObjectTypeList -func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedObjectTypeList - ) +func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { + r.slugIe = &slugIe + return r +} - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } +func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { + r.slugIew = &slugIew + return r +} - localVarPath := localBasePath + "/api/extras/object-types/" +func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { + r.slugIsw = &slugIsw + return r +} - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} +func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { + r.slugN = &slugN + return r +} - if r.appLabel != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") - } - if r.id != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.model != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} +func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { + r.slugNic = &slugNic + return r +} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } +func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { + r.slugNie = &slugNie + return r +} - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} +func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { + r.slugNiew = &slugNiew + return r +} - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } +func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { + r.slugNisw = &slugNisw + return r +} - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { + r.updatedByRequest = &updatedByRequest + return r +} - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } +func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { + r.usable = &usable + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +// User (name) +func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { + r.user = &user + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +// User (name) +func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { + r.userN = &userN + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { + r.userId = &userId + return r } -type ApiExtrasObjectTypesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { + r.userIdN = &userIdN + return r } -func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { + r.weight = &weight + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { + r.weightN = &weightN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersListExecute(r) } /* -ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve +ExtrasSavedFiltersList Method for ExtrasSavedFiltersList -Read-only list of ObjectTypes. +Get a list of saved filter objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object type. - @return ApiExtrasObjectTypesRetrieveRequest + @return ApiExtrasSavedFiltersListRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { - return ApiExtrasObjectTypesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { + return ApiExtrasSavedFiltersListRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request // -// @return ObjectType -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { +// @return PaginatedSavedFilterList +func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ObjectType + localVarReturnValue *PaginatedSavedFilterList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/saved-filters/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest -} - -func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { - r.savedFilterRequest = &savedFilterRequest - return r -} - -func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) -} - -/* -ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy - -Delete a list of saved filter objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { - return ApiExtrasSavedFiltersBulkDestroyRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/saved-filters/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return nil, reportError("savedFilterRequest is required and must be specified") + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") } - // body params - localVarPostBody = r.savedFilterRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") } - return localVarHTTPResponse, newErr } - - return localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest -} - -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - r.savedFilterRequest = &savedFilterRequest - return r -} - -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) -} - -/* -ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate - -Patch a list of saved filter objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ - ApiService: a, - ctx: ctx, + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } } -} - -// Execute executes the request -// -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []SavedFilter - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/saved-filters/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } - // body params - localVarPostBody = r.savedFilterRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest -} - -func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { - r.savedFilterRequest = &savedFilterRequest - return r -} - -func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) -} - -/* -ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate - -Put a list of saved filter objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { - return ApiExtrasSavedFiltersBulkUpdateRequest{ - ApiService: a, - ctx: ctx, + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } } -} - -// Execute executes the request -// -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []SavedFilter - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/saved-filters/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } } - // body params - localVarPostBody = r.savedFilterRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *SavedFilterRequest -} - -func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { - r.savedFilterRequest = &savedFilterRequest - return r -} - -func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersCreateExecute(r) -} - -/* -ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate - -Post a list of saved filter objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersCreateRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { - return ApiExtrasSavedFiltersCreateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/saved-filters/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } - // body params - localVarPostBody = r.savedFilterRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} - -func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) -} - -/* -ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy - -Delete a saved filter object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { - return ApiExtrasSavedFiltersDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - shared *bool - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - updatedByRequest *string - usable *bool - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - weight *[]int32 - weightEmpty *bool - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 -} - -func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { - r.created = &created - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdEmpty = &createdEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGt = &createdGt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGte = &createdGte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLt = &createdLt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLte = &createdLte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdN = &createdN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { - r.createdByRequest = &createdByRequest - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { - r.description = &description - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIc = &descriptionIc - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIe = &descriptionIe - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIew = &descriptionIew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIsw = &descriptionIsw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { - r.descriptionN = &descriptionN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNic = &descriptionNic - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNie = &descriptionNie - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNiew = &descriptionNiew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNisw = &descriptionNisw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { - r.enabled = &enabled - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { - r.id = &id - return r -} - -func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { - r.idGt = &idGt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { - r.idN = &idN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdated = &lastUpdated - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} - -// Number of results to return per page. -func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { - r.limit = &limit - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { - r.name = &name - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { - r.nameN = &nameN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { - r.nameNisw = &nameNisw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { - r.objectType = &objectType - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIc = &objectTypeIc - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIe = &objectTypeIe - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIew = &objectTypeIew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIsw = &objectTypeIsw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { - r.objectTypeN = &objectTypeN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNic = &objectTypeNic - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNie = &objectTypeNie - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNiew = &objectTypeNiew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNisw = &objectTypeNisw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeId = &objectTypeId - return r -} - -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeIdN = &objectTypeIdN - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { - r.q = &q - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { - r.shared = &shared - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { - r.slug = &slug - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { - r.slugEmpty = &slugEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { - r.slugIc = &slugIc - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { - r.slugIe = &slugIe - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { - r.slugIew = &slugIew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { - r.slugIsw = &slugIsw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { - r.slugN = &slugN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { - r.slugNic = &slugNic - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { - r.slugNie = &slugNie - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { - r.slugNiew = &slugNiew - return r -} - -func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { - r.slugNisw = &slugNisw - return r -} - -func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { - r.updatedByRequest = &updatedByRequest - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { - r.usable = &usable - return r -} - -// User (name) -func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { - r.user = &user - return r -} - -// User (name) -func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { - r.userN = &userN - return r -} - -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { - r.userId = &userId - return r -} - -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { - r.userIdN = &userIdN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { - r.weight = &weight - return r -} - -func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { - r.weightEmpty = &weightEmpty - return r -} - -func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { - r.weightGt = &weightGt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { - r.weightGte = &weightGte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { - r.weightLt = &weightLt - return r -} - -func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { - r.weightLte = &weightLte - return r -} - -func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { - r.weightN = &weightN - return r -} - -func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersListExecute(r) -} - -/* -ExtrasSavedFiltersList Method for ExtrasSavedFiltersList - -Get a list of saved filter objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersListRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { - return ApiExtrasSavedFiltersListRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return PaginatedSavedFilterList -func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedSavedFilterList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/saved-filters/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } - } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } - } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } - } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } - } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } - } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") - } - } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") - } - } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } - } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } - } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } - } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") - } - } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") - } - } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } - } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") - } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } - } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } - } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") - } - } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } - } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } - } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") - } - } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") - } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } - } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } - } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") - } - } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } - } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } - } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } - } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") - } - } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } - } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") - } - } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } - } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") - } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") - } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") - } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") - } - if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") - } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") - } - if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") - } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") - } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") - } - if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") - } - if r.objectTypeId != nil { - t := *r.objectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") - } - } - if r.objectTypeIdN != nil { - t := *r.objectTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.shared != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") - } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } - } - if r.slugIe != nil { - t := *r.slugIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") - } - } - if r.slugIew != nil { - t := *r.slugIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") - } - } - if r.slugIsw != nil { - t := *r.slugIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } - } - if r.slugN != nil { - t := *r.slugN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } - } - if r.slugNic != nil { - t := *r.slugNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } - } - if r.slugNie != nil { - t := *r.slugNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") - } - } - if r.slugNiew != nil { - t := *r.slugNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") - } - } - if r.slugNisw != nil { - t := *r.slugNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") - } - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.usable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } - } - if r.userN != nil { - t := *r.userN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") - } - } - if r.userId != nil { - t := *r.userId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") - } - } - if r.userIdN != nil { - t := *r.userIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") - } - } - if r.weight != nil { - t := *r.weight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") - } - } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") - } - } - if r.weightGte != nil { - t := *r.weightGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") - } - } - if r.weightLt != nil { - t := *r.weightLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") - } - } - if r.weightLte != nil { - t := *r.weightLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") - } - } - if r.weightN != nil { - t := *r.weightN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedSavedFilterRequest *PatchedSavedFilterRequest -} - -func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { - r.patchedSavedFilterRequest = &patchedSavedFilterRequest - return r -} - -func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) -} - -/* -ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate - -Patch a saved filter object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersPartialUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { - return ApiExtrasSavedFiltersPartialUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPatch - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.patchedSavedFilterRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} - -func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) -} - -/* -ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve - -Get a saved filter object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersRetrieveRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { - return ApiExtrasSavedFiltersRetrieveRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSavedFiltersUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - savedFilterRequest *SavedFilterRequest -} - -func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { - r.savedFilterRequest = &savedFilterRequest - return r -} - -func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) -} - -/* -ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate - -Put a saved filter object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { - return ApiExtrasSavedFiltersUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.savedFilterRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasScriptsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService -} - -func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsCreateExecute(r) -} - -/* -ExtrasScriptsCreate Method for ExtrasScriptsCreate - -Post a list of script objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsCreateRequest -*/ -func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { - return ApiExtrasScriptsCreateRequest{ - ApiService: a, - ctx: ctx, - } -} - -// Execute executes the request -// -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPost - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Script - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/scripts/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasScriptsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string -} - -func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasScriptsDestroyExecute(r) -} - -/* -ExtrasScriptsDestroy Method for ExtrasScriptsDestroy - -Delete a script object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { - return ApiExtrasScriptsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/scripts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiExtrasScriptsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isExecutable *bool - limit *int32 - moduleId *[]int32 - moduleIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { - r.id = &id - return r -} - -func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { - r.idN = &idN - return r -} - -func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { - r.isExecutable = &isExecutable - return r -} - -// Number of results to return per page. -func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { - r.limit = &limit - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { - r.moduleId = &moduleId - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { - r.name = &name - return r -} - -func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { - r.nameNisw = &nameNisw - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { - r.ordering = &ordering - return r -} - -// Search -func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { - r.q = &q - return r -} - -func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { - return r.ApiService.ExtrasScriptsListExecute(r) -} - -/* -ExtrasScriptsList Method for ExtrasScriptsList - -Get a list of script objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsListRequest -*/ -func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { - return ApiExtrasScriptsListRequest{ - ApiService: a, - ctx: ctx, + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedScriptList -func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedScriptList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/scripts/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.id != nil { - t := *r.id + if r.nameNie != nil { + t := *r.nameNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") } } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } } - if r.idGt != nil { - t := *r.idGt + if r.nameNisw != nil { + t := *r.nameNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } - if r.idGte != nil { - t := *r.idGte + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + } + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + } + if r.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + } + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + } + if r.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + } + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + } + if r.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + } + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + } + if r.objectTypeId != nil { + t := *r.objectTypeId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") } } - if r.idLt != nil { - t := *r.idLt + if r.objectTypeIdN != nil { + t := *r.objectTypeIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") } } - if r.idLte != nil { - t := *r.idLte + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.shared != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") + } + if r.slug != nil { + t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") } } - if r.idN != nil { - t := *r.idN + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") } } - if r.isExecutable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } } - if r.moduleId != nil { - t := *r.moduleId + if r.slugIsw != nil { + t := *r.slugIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") } } - if r.moduleIdN != nil { - t := *r.moduleIdN + if r.slugN != nil { + t := *r.slugN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") } } - if r.name != nil { - t := *r.name + if r.slugNic != nil { + t := *r.slugNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") } } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } } - if r.nameIc != nil { - t := *r.nameIc + if r.slugNiew != nil { + t := *r.slugNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") } } - if r.nameIe != nil { - t := *r.nameIe + if r.slugNisw != nil { + t := *r.slugNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") } } - if r.nameIew != nil { - t := *r.nameIew + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.usable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") } } - if r.nameIsw != nil { - t := *r.nameIsw + if r.weight != nil { + t := *r.weight if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") } } - if r.nameN != nil { - t := *r.nameN + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") } } - if r.nameNic != nil { - t := *r.nameNic + if r.weightGte != nil { + t := *r.weightGte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") } } - if r.nameNie != nil { - t := *r.nameNie + if r.weightLt != nil { + t := *r.weightLt if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") } } - if r.nameNiew != nil { - t := *r.nameNiew + if r.weightLte != nil { + t := *r.weightLte if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") } } - if r.nameNisw != nil { - t := *r.nameNisw + if r.weightN != nil { + t := *r.weightN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") } } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -29293,33 +27232,33 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsPartialUpdateRequest struct { +type ApiExtrasSavedFiltersPartialUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string - patchedScriptInputRequest *PatchedScriptInputRequest + id int32 + patchedSavedFilterRequest *PatchedSavedFilterRequest } -func (r ApiExtrasScriptsPartialUpdateRequest) PatchedScriptInputRequest(patchedScriptInputRequest PatchedScriptInputRequest) ApiExtrasScriptsPartialUpdateRequest { - r.patchedScriptInputRequest = &patchedScriptInputRequest +func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { + r.patchedSavedFilterRequest = &patchedSavedFilterRequest return r } -func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) +func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) } /* -ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate +ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate -Patch a script object. +Patch a saved filter object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsPartialUpdateRequest + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { - return ApiExtrasScriptsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { + return ApiExtrasSavedFiltersPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -29328,21 +27267,21 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id st // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -29367,7 +27306,7 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedScriptInputRequest + localVarPostBody = r.patchedSavedFilterRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -29419,27 +27358,27 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsRetrieveRequest struct { +type ApiExtrasSavedFiltersRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string + id int32 } -func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsRetrieveExecute(r) +func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) } /* -ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve +ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve -Get a script object. +Get a saved filter object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsRetrieveRequest + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { - return ApiExtrasScriptsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { + return ApiExtrasSavedFiltersRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -29448,21 +27387,21 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -29537,185 +27476,63 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsUpdateRequest struct { +type ApiExtrasSavedFiltersUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string - scriptInputRequest *ScriptInputRequest -} - -func (r ApiExtrasScriptsUpdateRequest) ScriptInputRequest(scriptInputRequest ScriptInputRequest) ApiExtrasScriptsUpdateRequest { - r.scriptInputRequest = &scriptInputRequest - return r -} - -func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsUpdateExecute(r) -} - -/* -ExtrasScriptsUpdate Method for ExtrasScriptsUpdate - -Put a script object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsUpdateRequest -*/ -func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { - return ApiExtrasScriptsUpdateRequest{ - ApiService: a, - ctx: ctx, - id: id, - } -} - -// Execute executes the request -// -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *Script - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} - } - - localVarPath := localBasePath + "/api/extras/scripts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - if r.scriptInputRequest == nil { - return localVarReturnValue, nil, reportError("scriptInputRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - // body params - localVarPostBody = r.scriptInputRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSubscriptionsBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - subscriptionRequest *[]SubscriptionRequest + id int32 + savedFilterRequest *SavedFilterRequest } -func (r ApiExtrasSubscriptionsBulkDestroyRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkDestroyRequest { - r.subscriptionRequest = &subscriptionRequest +func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { + r.savedFilterRequest = &savedFilterRequest return r } -func (r ApiExtrasSubscriptionsBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSubscriptionsBulkDestroyExecute(r) +func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) } /* -ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy +ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate -Delete a list of subscription objects. +Put a saved filter object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSubscriptionsBulkDestroyRequest + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest { - return ApiExtrasSubscriptionsBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { + return ApiExtrasSavedFiltersUpdateRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) { +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/" + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.subscriptionRequest == nil { - return nil, reportError("subscriptionRequest is required and must be specified") + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") } // to determine the Content-Type header @@ -29728,7 +27545,7 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubs } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -29736,7 +27553,7 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubs localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.subscriptionRequest + localVarPostBody = r.savedFilterRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -29753,19 +27570,19 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubs } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -29773,37 +27590,40 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubs body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -type ApiExtrasSubscriptionsBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - subscriptionRequest *[]SubscriptionRequest + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkPartialUpdateRequest { - r.subscriptionRequest = &subscriptionRequest - return r +type ApiExtrasScriptsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService } -func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) Execute() ([]Subscription, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsBulkPartialUpdateExecute(r) +func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsCreateExecute(r) } /* -ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate +ExtrasScriptsCreate Method for ExtrasScriptsCreate -Patch a list of subscription objects. +Post a list of script objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSubscriptionsBulkPartialUpdateRequest + @return ApiExtrasScriptsCreateRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest { - return ApiExtrasSubscriptionsBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { + return ApiExtrasScriptsCreateRequest{ ApiService: a, ctx: ctx, } @@ -29811,31 +27631,28 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Cont // Execute executes the request // -// @return []Subscription -func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPatch + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue []Subscription + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/" + localVarPath := localBasePath + "/api/extras/scripts/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.subscriptionRequest == nil { - return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -29851,8 +27668,6 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtr if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -29904,63 +27719,55 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtr return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSubscriptionsBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - subscriptionRequest *[]SubscriptionRequest -} - -func (r ApiExtrasSubscriptionsBulkUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkUpdateRequest { - r.subscriptionRequest = &subscriptionRequest - return r +type ApiExtrasScriptsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id string } -func (r ApiExtrasSubscriptionsBulkUpdateRequest) Execute() ([]Subscription, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsBulkUpdateExecute(r) +func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasScriptsDestroyExecute(r) } /* -ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate +ExtrasScriptsDestroy Method for ExtrasScriptsDestroy -Put a list of subscription objects. +Delete a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSubscriptionsBulkUpdateRequest + @param id + @return ApiExtrasScriptsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest { - return ApiExtrasSubscriptionsBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { + return ApiExtrasScriptsDestroyRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request -// -// @return []Subscription -func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue []Subscription + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.subscriptionRequest == nil { - return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -29969,15 +27776,13 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubsc } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -29994,66 +27799,207 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubsc } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr } - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err - } + return localVarHTTPResponse, nil +} + +type ApiExtrasScriptsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isExecutable *bool + limit *int32 + moduleId *[]int32 + moduleIdN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string +} + +func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { + r.id = &id + return r +} + +func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { + r.isExecutable = &isExecutable + return r +} + +// Number of results to return per page. +func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { + r.limit = &limit + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { + r.moduleId = &moduleId + return r +} + +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { + r.moduleIdN = &moduleIdN + return r +} + +func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { + r.name = &name + return r +} + +func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { + r.nameNie = &nameNie + return r +} - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { + r.nameNiew = &nameNiew + return r +} - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } +func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { + r.nameNisw = &nameNisw + return r +} - return localVarReturnValue, localVarHTTPResponse, nil +// The initial index from which to return the results. +func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { + r.offset = &offset + return r } -type ApiExtrasSubscriptionsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - subscriptionRequest *SubscriptionRequest +// Which field to use when ordering the results. +func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { + r.ordering = &ordering + return r } -func (r ApiExtrasSubscriptionsCreateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsCreateRequest { - r.subscriptionRequest = &subscriptionRequest +// Search +func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { + r.q = &q return r } -func (r ApiExtrasSubscriptionsCreateRequest) Execute() (*Subscription, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsCreateExecute(r) +func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { + return r.ApiService.ExtrasScriptsListExecute(r) } /* -ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate +ExtrasScriptsList Method for ExtrasScriptsList -Post a list of subscription objects. +Get a list of script objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSubscriptionsCreateRequest + @return ApiExtrasScriptsListRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest { - return ApiExtrasSubscriptionsCreateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { + return ApiExtrasScriptsListRequest{ ApiService: a, ctx: ctx, } @@ -30061,274 +28007,235 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExt // Execute executes the request // -// @return Subscription -func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) { +// @return PaginatedScriptList +func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Subscription + localVarReturnValue *PaginatedScriptList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/" + localVarPath := localBasePath + "/api/extras/scripts/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.subscriptionRequest == nil { - return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") - } - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") } - // body params - localVarPostBody = r.subscriptionRequest - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } - return localVarReturnValue, localVarHTTPResponse, newErr } - - return localVarReturnValue, localVarHTTPResponse, nil -} - -type ApiExtrasSubscriptionsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 -} - -func (r ApiExtrasSubscriptionsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSubscriptionsDestroyExecute(r) -} - -/* -ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy - -Delete a subscription object. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this subscription. - @return ApiExtrasSubscriptionsDestroyRequest -*/ -func (a *ExtrasAPIService) ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest { - return ApiExtrasSubscriptionsDestroyRequest{ - ApiService: a, - ctx: ctx, - id: id, + if r.isExecutable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") } -} - -// Execute executes the request -func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) { - var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsDestroy") - if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - - localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType + if r.moduleId != nil { + t := *r.moduleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + } + } + if r.moduleIdN != nil { + t := *r.moduleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + } + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") } } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") } - return localVarHTTPResponse, newErr } - - return localVarHTTPResponse, nil -} - -type ApiExtrasSubscriptionsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - limit *int32 - offset *int32 - ordering *string -} - -// Number of results to return per page. -func (r ApiExtrasSubscriptionsListRequest) Limit(limit int32) ApiExtrasSubscriptionsListRequest { - r.limit = &limit - return r -} - -// The initial index from which to return the results. -func (r ApiExtrasSubscriptionsListRequest) Offset(offset int32) ApiExtrasSubscriptionsListRequest { - r.offset = &offset - return r -} - -// Which field to use when ordering the results. -func (r ApiExtrasSubscriptionsListRequest) Ordering(ordering string) ApiExtrasSubscriptionsListRequest { - r.ordering = &ordering - return r -} - -func (r ApiExtrasSubscriptionsListRequest) Execute() (*PaginatedSubscriptionList, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsListExecute(r) -} - -/* -ExtrasSubscriptionsList Method for ExtrasSubscriptionsList - -Get a list of subscription objects. - - @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSubscriptionsListRequest -*/ -func (a *ExtrasAPIService) ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest { - return ApiExtrasSubscriptionsListRequest{ - ApiService: a, - ctx: ctx, + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } } -} - -// Execute executes the request -// -// @return PaginatedSubscriptionList -func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) { - var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *PaginatedSubscriptionList - ) - - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsList") - if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } } - - localVarPath := localBasePath + "/api/extras/subscriptions/" - - localVarHeaderParams := make(map[string]string) - localVarQueryParams := url.Values{} - localVarFormParams := url.Values{} - - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") @@ -30336,6 +28243,9 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptio if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -30404,33 +28314,27 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptio return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSubscriptionsPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - patchedSubscriptionRequest *PatchedSubscriptionRequest -} - -func (r ApiExtrasSubscriptionsPartialUpdateRequest) PatchedSubscriptionRequest(patchedSubscriptionRequest PatchedSubscriptionRequest) ApiExtrasSubscriptionsPartialUpdateRequest { - r.patchedSubscriptionRequest = &patchedSubscriptionRequest - return r +type ApiExtrasScriptsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id string } -func (r ApiExtrasSubscriptionsPartialUpdateRequest) Execute() (*Subscription, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsPartialUpdateExecute(r) +func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) } /* -ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate +ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate -Patch a subscription object. +Patch a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this subscription. - @return ApiExtrasSubscriptionsPartialUpdateRequest + @param id + @return ApiExtrasScriptsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest { - return ApiExtrasSubscriptionsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { + return ApiExtrasScriptsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -30439,21 +28343,21 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, // Execute executes the request // -// @return Subscription -func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Subscription + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -30461,7 +28365,7 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSu localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -30477,8 +28381,6 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSu if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.patchedSubscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -30530,27 +28432,27 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSu return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSubscriptionsRetrieveRequest struct { +type ApiExtrasScriptsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 + id string } -func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r) +func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsRetrieveExecute(r) } /* -ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve +ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve -Get a subscription object. +Get a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this subscription. - @return ApiExtrasSubscriptionsRetrieveRequest + @param id + @return ApiExtrasScriptsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest { - return ApiExtrasSubscriptionsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { + return ApiExtrasScriptsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -30559,21 +28461,21 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id i // Execute executes the request // -// @return Subscription -func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Subscription + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -30648,33 +28550,27 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscri return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSubscriptionsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 - subscriptionRequest *SubscriptionRequest -} - -func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest { - r.subscriptionRequest = &subscriptionRequest - return r +type ApiExtrasScriptsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id string } -func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) { - return r.ApiService.ExtrasSubscriptionsUpdateExecute(r) +func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsUpdateExecute(r) } /* -ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate +ExtrasScriptsUpdate Method for ExtrasScriptsUpdate -Put a subscription object. +Put a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this subscription. - @return ApiExtrasSubscriptionsUpdateRequest + @param id + @return ApiExtrasScriptsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest { - return ApiExtrasSubscriptionsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { + return ApiExtrasScriptsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -30683,32 +28579,29 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int // Execute executes the request // -// @return Subscription -func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Subscription + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.subscriptionRequest == nil { - return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") - } // to determine the Content-Type header - localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + localVarHTTPContentTypes := []string{} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -30724,8 +28617,6 @@ func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscript if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - // body params - localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { diff --git a/api_ipam.go b/api_ipam.go index 08a835d00..0e906f752 100644 --- a/api_ipam.go +++ b/api_ipam.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -676,10 +676,10 @@ type ApiIpamAggregatesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -971,22 +971,26 @@ func (r ApiIpamAggregatesListRequest) TenantN(tenantN []string) ApiIpamAggregate return r } -func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []string) ApiIpamAggregatesListRequest { +// Tenant Group (slug) +func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAggregatesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAggregatesListRequest { +// Tenant Group (slug) +func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAggregatesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAggregatesListRequest { +// Tenant Group (ID) +func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAggregatesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAggregatesListRequest { +// Tenant Group (ID) +func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAggregatesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -3002,10 +3006,10 @@ type ApiIpamAsnRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3431,22 +3435,26 @@ func (r ApiIpamAsnRangesListRequest) TenantN(tenantN []string) ApiIpamAsnRangesL return r } -func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnRangesListRequest { +// Tenant Group (slug) +func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnRangesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnRangesListRequest { +// Tenant Group (slug) +func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnRangesListRequest { +// Tenant Group (ID) +func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnRangesListRequest { +// Tenant Group (ID) +func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5483,10 +5491,10 @@ type ApiIpamAsnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5815,22 +5823,26 @@ func (r ApiIpamAsnsListRequest) TenantN(tenantN []string) ApiIpamAsnsListRequest return r } -func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnsListRequest { +// Tenant Group (slug) +func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnsListRequest { +// Tenant Group (slug) +func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnsListRequest { +// Tenant Group (ID) +func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnsListRequest { +// Tenant Group (ID) +func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -11782,10 +11794,10 @@ type ApiIpamIpAddressesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12263,22 +12275,26 @@ func (r ApiIpamIpAddressesListRequest) TenantN(tenantN []string) ApiIpamIpAddres return r } -func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpAddressesListRequest { +// Tenant Group (slug) +func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpAddressesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpAddressesListRequest { +// Tenant Group (slug) +func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpAddressesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpAddressesListRequest { +// Tenant Group (ID) +func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpAddressesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpAddressesListRequest { +// Tenant Group (ID) +func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpAddressesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14740,10 +14756,10 @@ type ApiIpamIpRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -15071,22 +15087,26 @@ func (r ApiIpamIpRangesListRequest) TenantN(tenantN []string) ApiIpamIpRangesLis return r } -func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpRangesListRequest { +// Tenant Group (slug) +func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpRangesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpRangesListRequest { +// Tenant Group (slug) +func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpRangesListRequest { +// Tenant Group (ID) +func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpRangesListRequest { +// Tenant Group (ID) +func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -17455,20 +17475,20 @@ type ApiIpamPrefixesListRequest struct { presentInVrf *string presentInVrfId *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -17477,10 +17497,10 @@ type ApiIpamPrefixesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -17816,22 +17836,26 @@ func (r ApiIpamPrefixesListRequest) Q(q string) ApiIpamPrefixesListRequest { return r } -func (r ApiIpamPrefixesListRequest) Region(region []string) ApiIpamPrefixesListRequest { +// Region (slug) +func (r ApiIpamPrefixesListRequest) Region(region []int32) ApiIpamPrefixesListRequest { r.region = ®ion return r } -func (r ApiIpamPrefixesListRequest) RegionN(regionN []string) ApiIpamPrefixesListRequest { +// Region (slug) +func (r ApiIpamPrefixesListRequest) RegionN(regionN []int32) ApiIpamPrefixesListRequest { r.regionN = ®ionN return r } -func (r ApiIpamPrefixesListRequest) RegionId(regionId []string) ApiIpamPrefixesListRequest { +// Region (ID) +func (r ApiIpamPrefixesListRequest) RegionId(regionId []int32) ApiIpamPrefixesListRequest { r.regionId = ®ionId return r } -func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []string) ApiIpamPrefixesListRequest { +// Region (ID) +func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []int32) ApiIpamPrefixesListRequest { r.regionIdN = ®ionIdN return r } @@ -17872,22 +17896,26 @@ func (r ApiIpamPrefixesListRequest) SiteN(siteN []string) ApiIpamPrefixesListReq return r } -func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []string) ApiIpamPrefixesListRequest { +// Site group (slug) +func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []int32) ApiIpamPrefixesListRequest { r.siteGroup = &siteGroup return r } -func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []string) ApiIpamPrefixesListRequest { +// Site group (slug) +func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []int32) ApiIpamPrefixesListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []string) ApiIpamPrefixesListRequest { +// Site group (ID) +func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []int32) ApiIpamPrefixesListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamPrefixesListRequest { +// Site group (ID) +func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamPrefixesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -17938,22 +17966,26 @@ func (r ApiIpamPrefixesListRequest) TenantN(tenantN []string) ApiIpamPrefixesLis return r } -func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []string) ApiIpamPrefixesListRequest { +// Tenant Group (slug) +func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []int32) ApiIpamPrefixesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamPrefixesListRequest { +// Tenant Group (slug) +func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamPrefixesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamPrefixesListRequest { +// Tenant Group (ID) +func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamPrefixesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamPrefixesListRequest { +// Tenant Group (ID) +func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamPrefixesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -24427,10 +24459,10 @@ type ApiIpamRouteTargetsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -24803,22 +24835,26 @@ func (r ApiIpamRouteTargetsListRequest) TenantN(tenantN []string) ApiIpamRouteTa return r } -func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []string) ApiIpamRouteTargetsListRequest { +// Tenant Group (slug) +func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []int32) ApiIpamRouteTargetsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamRouteTargetsListRequest { +// Tenant Group (slug) +func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamRouteTargetsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamRouteTargetsListRequest { +// Tenant Group (ID) +func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamRouteTargetsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamRouteTargetsListRequest { +// Tenant Group (ID) +func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamRouteTargetsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28627,6 +28663,10 @@ type ApiIpamServicesListRequest struct { ipAddressN *[]string ipAddressId *[]int32 ipAddressIdN *[]int32 + ipaddress *[]string + ipaddressN *[]string + ipaddressId *[]int32 + ipaddressIdN *[]int32 lastUpdated *[]time.Time lastUpdatedEmpty *[]time.Time lastUpdatedGt *[]time.Time @@ -28840,6 +28880,30 @@ func (r ApiIpamServicesListRequest) IpAddressIdN(ipAddressIdN []int32) ApiIpamSe return r } +// IP address +func (r ApiIpamServicesListRequest) Ipaddress(ipaddress []string) ApiIpamServicesListRequest { + r.ipaddress = &ipaddress + return r +} + +// IP address +func (r ApiIpamServicesListRequest) IpaddressN(ipaddressN []string) ApiIpamServicesListRequest { + r.ipaddressN = &ipaddressN + return r +} + +// IP address (ID) +func (r ApiIpamServicesListRequest) IpaddressId(ipaddressId []int32) ApiIpamServicesListRequest { + r.ipaddressId = &ipaddressId + return r +} + +// IP address (ID) +func (r ApiIpamServicesListRequest) IpaddressIdN(ipaddressIdN []int32) ApiIpamServicesListRequest { + r.ipaddressIdN = &ipaddressIdN + return r +} + func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServicesListRequest { r.lastUpdated = &lastUpdated return r @@ -29406,6 +29470,50 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", t, "multi") } } + if r.ipaddress != nil { + t := *r.ipaddress + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", t, "multi") + } + } + if r.ipaddressN != nil { + t := *r.ipaddressN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", t, "multi") + } + } + if r.ipaddressId != nil { + t := *r.ipaddressId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", t, "multi") + } + } + if r.ipaddressIdN != nil { + t := *r.ipaddressIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", t, "multi") + } + } if r.lastUpdated != nil { t := *r.lastUpdated if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -30976,7 +31084,7 @@ type ApiIpamVlanGroupsListRequest struct { ApiService *IpamAPIService cluster *int32 clusterGroup *int32 - containsVid *float32 + clustergroup *int32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -31012,6 +31120,20 @@ type ApiIpamVlanGroupsListRequest struct { lastUpdatedN *[]time.Time limit *int32 location *int32 + maxVid *[]int32 + maxVidEmpty *bool + maxVidGt *[]int32 + maxVidGte *[]int32 + maxVidLt *[]int32 + maxVidLte *[]int32 + maxVidN *[]int32 + minVid *[]int32 + minVidEmpty *bool + minVidGt *[]int32 + minVidGte *[]int32 + minVidLt *[]int32 + minVidLte *[]int32 + minVidN *[]int32 modifiedByRequest *string name *[]string nameEmpty *bool @@ -31040,6 +31162,7 @@ type ApiIpamVlanGroupsListRequest struct { scopeTypeN *string site *int32 siteGroup *int32 + sitegroup *int32 slug *[]string slugEmpty *bool slugIc *[]string @@ -31066,8 +31189,8 @@ func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVl return r } -func (r ApiIpamVlanGroupsListRequest) ContainsVid(containsVid float32) ApiIpamVlanGroupsListRequest { - r.containsVid = &containsVid +func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup int32) ApiIpamVlanGroupsListRequest { + r.clustergroup = &clustergroup return r } @@ -31247,6 +31370,76 @@ func (r ApiIpamVlanGroupsListRequest) Location(location int32) ApiIpamVlanGroups return r } +func (r ApiIpamVlanGroupsListRequest) MaxVid(maxVid []int32) ApiIpamVlanGroupsListRequest { + r.maxVid = &maxVid + return r +} + +func (r ApiIpamVlanGroupsListRequest) MaxVidEmpty(maxVidEmpty bool) ApiIpamVlanGroupsListRequest { + r.maxVidEmpty = &maxVidEmpty + return r +} + +func (r ApiIpamVlanGroupsListRequest) MaxVidGt(maxVidGt []int32) ApiIpamVlanGroupsListRequest { + r.maxVidGt = &maxVidGt + return r +} + +func (r ApiIpamVlanGroupsListRequest) MaxVidGte(maxVidGte []int32) ApiIpamVlanGroupsListRequest { + r.maxVidGte = &maxVidGte + return r +} + +func (r ApiIpamVlanGroupsListRequest) MaxVidLt(maxVidLt []int32) ApiIpamVlanGroupsListRequest { + r.maxVidLt = &maxVidLt + return r +} + +func (r ApiIpamVlanGroupsListRequest) MaxVidLte(maxVidLte []int32) ApiIpamVlanGroupsListRequest { + r.maxVidLte = &maxVidLte + return r +} + +func (r ApiIpamVlanGroupsListRequest) MaxVidN(maxVidN []int32) ApiIpamVlanGroupsListRequest { + r.maxVidN = &maxVidN + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVid(minVid []int32) ApiIpamVlanGroupsListRequest { + r.minVid = &minVid + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVidEmpty(minVidEmpty bool) ApiIpamVlanGroupsListRequest { + r.minVidEmpty = &minVidEmpty + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVidGt(minVidGt []int32) ApiIpamVlanGroupsListRequest { + r.minVidGt = &minVidGt + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVidGte(minVidGte []int32) ApiIpamVlanGroupsListRequest { + r.minVidGte = &minVidGte + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVidLt(minVidLt []int32) ApiIpamVlanGroupsListRequest { + r.minVidLt = &minVidLt + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVidLte(minVidLte []int32) ApiIpamVlanGroupsListRequest { + r.minVidLte = &minVidLte + return r +} + +func (r ApiIpamVlanGroupsListRequest) MinVidN(minVidN []int32) ApiIpamVlanGroupsListRequest { + r.minVidN = &minVidN + return r +} + func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -31390,6 +31583,11 @@ func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGrou return r } +func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup int32) ApiIpamVlanGroupsListRequest { + r.sitegroup = &sitegroup + return r +} + func (r ApiIpamVlanGroupsListRequest) Slug(slug []string) ApiIpamVlanGroupsListRequest { r.slug = &slug return r @@ -31507,8 +31705,8 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.clusterGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", r.clusterGroup, "") } - if r.containsVid != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "contains_vid", r.containsVid, "") + if r.clustergroup != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "clustergroup", r.clustergroup, "") } if r.created != nil { t := *r.created @@ -31855,6 +32053,144 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.location != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "") } + if r.maxVid != nil { + t := *r.maxVid + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", t, "multi") + } + } + if r.maxVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__empty", r.maxVidEmpty, "") + } + if r.maxVidGt != nil { + t := *r.maxVidGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", t, "multi") + } + } + if r.maxVidGte != nil { + t := *r.maxVidGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", t, "multi") + } + } + if r.maxVidLt != nil { + t := *r.maxVidLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", t, "multi") + } + } + if r.maxVidLte != nil { + t := *r.maxVidLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", t, "multi") + } + } + if r.maxVidN != nil { + t := *r.maxVidN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", t, "multi") + } + } + if r.minVid != nil { + t := *r.minVid + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", t, "multi") + } + } + if r.minVidEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__empty", r.minVidEmpty, "") + } + if r.minVidGt != nil { + t := *r.minVidGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", t, "multi") + } + } + if r.minVidGte != nil { + t := *r.minVidGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", t, "multi") + } + } + if r.minVidLt != nil { + t := *r.minVidLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", t, "multi") + } + } + if r.minVidLte != nil { + t := *r.minVidLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", t, "multi") + } + } + if r.minVidN != nil { + t := *r.minVidN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", t, "multi") + } + } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -32067,6 +32403,9 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.siteGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", r.siteGroup, "") } + if r.sitegroup != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "sitegroup", r.sitegroup, "") + } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33303,20 +33642,20 @@ type ApiIpamVlansListRequest struct { offset *int32 ordering *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -33325,10 +33664,10 @@ type ApiIpamVlansListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -33653,22 +33992,26 @@ func (r ApiIpamVlansListRequest) Q(q string) ApiIpamVlansListRequest { return r } -func (r ApiIpamVlansListRequest) Region(region []string) ApiIpamVlansListRequest { +// Region (slug) +func (r ApiIpamVlansListRequest) Region(region []int32) ApiIpamVlansListRequest { r.region = ®ion return r } -func (r ApiIpamVlansListRequest) RegionN(regionN []string) ApiIpamVlansListRequest { +// Region (slug) +func (r ApiIpamVlansListRequest) RegionN(regionN []int32) ApiIpamVlansListRequest { r.regionN = ®ionN return r } -func (r ApiIpamVlansListRequest) RegionId(regionId []string) ApiIpamVlansListRequest { +// Region (ID) +func (r ApiIpamVlansListRequest) RegionId(regionId []int32) ApiIpamVlansListRequest { r.regionId = ®ionId return r } -func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []string) ApiIpamVlansListRequest { +// Region (ID) +func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []int32) ApiIpamVlansListRequest { r.regionIdN = ®ionIdN return r } @@ -33709,22 +34052,26 @@ func (r ApiIpamVlansListRequest) SiteN(siteN []string) ApiIpamVlansListRequest { return r } -func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []string) ApiIpamVlansListRequest { +// Site group (slug) +func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []int32) ApiIpamVlansListRequest { r.siteGroup = &siteGroup return r } -func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []string) ApiIpamVlansListRequest { +// Site group (slug) +func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []int32) ApiIpamVlansListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []string) ApiIpamVlansListRequest { +// Site group (ID) +func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []int32) ApiIpamVlansListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamVlansListRequest { +// Site group (ID) +func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamVlansListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -33775,22 +34122,26 @@ func (r ApiIpamVlansListRequest) TenantN(tenantN []string) ApiIpamVlansListReque return r } -func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []string) ApiIpamVlansListRequest { +// Tenant Group (slug) +func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []int32) ApiIpamVlansListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVlansListRequest { +// Tenant Group (slug) +func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVlansListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVlansListRequest { +// Tenant Group (ID) +func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVlansListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVlansListRequest { +// Tenant Group (ID) +func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVlansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -35943,10 +36294,10 @@ type ApiIpamVrfsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -36331,22 +36682,26 @@ func (r ApiIpamVrfsListRequest) TenantN(tenantN []string) ApiIpamVrfsListRequest return r } -func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []string) ApiIpamVrfsListRequest { +// Tenant Group (slug) +func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []int32) ApiIpamVrfsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVrfsListRequest { +// Tenant Group (slug) +func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVrfsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVrfsListRequest { +// Tenant Group (ID) +func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVrfsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVrfsListRequest { +// Tenant Group (ID) +func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVrfsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_schema.go b/api_schema.go index 161765a88..5394105aa 100644 --- a/api_schema.go +++ b/api_schema.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_status.go b/api_status.go index 6391bfcf5..9f266f523 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tenancy.go b/api_tenancy.go index 33122a720..0b17b4c3a 100644 --- a/api_tenancy.go +++ b/api_tenancy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -631,10 +631,10 @@ type ApiTenancyContactAssignmentsListRequest struct { createdLte *[]time.Time createdN *[]time.Time createdByRequest *string - group *[]string - groupN *[]string - groupId *[]string - groupIdN *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -664,8 +664,8 @@ type ApiTenancyContactAssignmentsListRequest struct { objectTypeIdN *int32 offset *int32 ordering *string - priority *CircuitsCircuitGroupAssignmentsListPriorityParameter - priorityN *CircuitsCircuitGroupAssignmentsListPriorityParameter + priority *TenancyContactAssignmentsListPriorityParameter + priorityN *TenancyContactAssignmentsListPriorityParameter q *string role *[]string roleN *[]string @@ -728,22 +728,26 @@ func (r ApiTenancyContactAssignmentsListRequest) CreatedByRequest(createdByReque return r } -func (r ApiTenancyContactAssignmentsListRequest) Group(group []string) ApiTenancyContactAssignmentsListRequest { +// Contact group (slug) +func (r ApiTenancyContactAssignmentsListRequest) Group(group []int32) ApiTenancyContactAssignmentsListRequest { r.group = &group return r } -func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []string) ApiTenancyContactAssignmentsListRequest { +// Contact group (slug) +func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []int32) ApiTenancyContactAssignmentsListRequest { r.groupN = &groupN return r } -func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []string) ApiTenancyContactAssignmentsListRequest { +// Contact group (ID) +func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []int32) ApiTenancyContactAssignmentsListRequest { r.groupId = &groupId return r } -func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactAssignmentsListRequest { +// Contact group (ID) +func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactAssignmentsListRequest { r.groupIdN = &groupIdN return r } @@ -897,13 +901,13 @@ func (r ApiTenancyContactAssignmentsListRequest) Ordering(ordering string) ApiTe } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Priority(priority TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priority = &priority return r } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priorityN = &priorityN return r } @@ -2495,10 +2499,10 @@ func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta type ApiTenancyContactGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]string - ancestorN *[]string - ancestorId *[]string - ancestorIdN *[]string + ancestor *[]int32 + ancestorN *[]int32 + ancestorId *[]int32 + ancestorIdN *[]int32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -2568,22 +2572,26 @@ type ApiTenancyContactGroupsListRequest struct { updatedByRequest *string } -func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []string) ApiTenancyContactGroupsListRequest { +// Contact group (slug) +func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyContactGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyContactGroupsListRequest { +// Contact group (slug) +func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyContactGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyContactGroupsListRequest { +// Contact group (ID) +func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyContactGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyContactGroupsListRequest { +// Contact group (ID) +func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyContactGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -6812,10 +6820,10 @@ type ApiTenancyContactsListRequest struct { emailNie *[]string emailNiew *[]string emailNisw *[]string - group *[]string - groupN *[]string - groupId *[]string - groupIdN *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -7089,22 +7097,26 @@ func (r ApiTenancyContactsListRequest) EmailNisw(emailNisw []string) ApiTenancyC return r } -func (r ApiTenancyContactsListRequest) Group(group []string) ApiTenancyContactsListRequest { +// Contact group (slug) +func (r ApiTenancyContactsListRequest) Group(group []int32) ApiTenancyContactsListRequest { r.group = &group return r } -func (r ApiTenancyContactsListRequest) GroupN(groupN []string) ApiTenancyContactsListRequest { +// Contact group (slug) +func (r ApiTenancyContactsListRequest) GroupN(groupN []int32) ApiTenancyContactsListRequest { r.groupN = &groupN return r } -func (r ApiTenancyContactsListRequest) GroupId(groupId []string) ApiTenancyContactsListRequest { +// Contact group (ID) +func (r ApiTenancyContactsListRequest) GroupId(groupId []int32) ApiTenancyContactsListRequest { r.groupId = &groupId return r } -func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactsListRequest { +// Contact group (ID) +func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactsListRequest { r.groupIdN = &groupIdN return r } @@ -9623,10 +9635,10 @@ func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant type ApiTenancyTenantGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]string - ancestorN *[]string - ancestorId *[]string - ancestorIdN *[]string + ancestor *[]int32 + ancestorN *[]int32 + ancestorId *[]int32 + ancestorIdN *[]int32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -9696,22 +9708,26 @@ type ApiTenancyTenantGroupsListRequest struct { updatedByRequest *string } -func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []string) ApiTenancyTenantGroupsListRequest { +// Tenant group (slug) +func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyTenantGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyTenantGroupsListRequest { +// Tenant group (slug) +func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyTenantGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyTenantGroupsListRequest { +// Tenant group (ID) +func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyTenantGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyTenantGroupsListRequest { +// Tenant group (ID) +func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyTenantGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -11833,8 +11849,8 @@ type ApiTenancyTenantsListRequest struct { ApiService *TenancyAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -11856,10 +11872,10 @@ type ApiTenancyTenantsListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]string - groupN *[]string - groupId *[]string - groupIdN *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -11918,12 +11934,14 @@ func (r ApiTenancyTenantsListRequest) ContactN(contactN []int32) ApiTenancyTenan return r } -func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []string) ApiTenancyTenantsListRequest { +// Contact group +func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []int32) ApiTenancyTenantsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []string) ApiTenancyTenantsListRequest { +// Contact group +func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []int32) ApiTenancyTenantsListRequest { r.contactGroupN = &contactGroupN return r } @@ -12035,22 +12053,26 @@ func (r ApiTenancyTenantsListRequest) DescriptionNisw(descriptionNisw []string) return r } -func (r ApiTenancyTenantsListRequest) Group(group []string) ApiTenancyTenantsListRequest { +// Tenant group (slug) +func (r ApiTenancyTenantsListRequest) Group(group []int32) ApiTenancyTenantsListRequest { r.group = &group return r } -func (r ApiTenancyTenantsListRequest) GroupN(groupN []string) ApiTenancyTenantsListRequest { +// Tenant group (slug) +func (r ApiTenancyTenantsListRequest) GroupN(groupN []int32) ApiTenancyTenantsListRequest { r.groupN = &groupN return r } -func (r ApiTenancyTenantsListRequest) GroupId(groupId []string) ApiTenancyTenantsListRequest { +// Tenant group (ID) +func (r ApiTenancyTenantsListRequest) GroupId(groupId []int32) ApiTenancyTenantsListRequest { r.groupId = &groupId return r } -func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []string) ApiTenancyTenantsListRequest { +// Tenant group (ID) +func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []int32) ApiTenancyTenantsListRequest { r.groupIdN = &groupIdN return r } diff --git a/api_users.go b/api_users.go index cd750c459..f872d1a93 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -733,47 +733,45 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque } type ApiUsersGroupsListRequest struct { - ctx context.Context - ApiService *UsersAPIService - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - notificationGroupId *[]int32 - notificationGroupIdN *[]int32 - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - userId *[]int32 - userIdN *[]int32 + ctx context.Context + ApiService *UsersAPIService + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + userId *[]int32 + userIdN *[]int32 } func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest { @@ -927,18 +925,6 @@ func (r ApiUsersGroupsListRequest) NameNisw(nameNisw []string) ApiUsersGroupsLis return r } -// Notification group (ID) -func (r ApiUsersGroupsListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersGroupsListRequest { - r.notificationGroupId = ¬ificationGroupId - return r -} - -// Notification group (ID) -func (r ApiUsersGroupsListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersGroupsListRequest { - r.notificationGroupIdN = ¬ificationGroupIdN - return r -} - // The initial index from which to return the results. func (r ApiUsersGroupsListRequest) Offset(offset int32) ApiUsersGroupsListRequest { r.offset = &offset @@ -1320,28 +1306,6 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } - if r.notificationGroupId != nil { - t := *r.notificationGroupId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") - } - } - if r.notificationGroupIdN != nil { - t := *r.notificationGroupIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") - } - } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -6339,88 +6303,86 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest } type ApiUsersUsersListRequest struct { - ctx context.Context - ApiService *UsersAPIService - dateJoined *[]time.Time - dateJoinedEmpty *bool - dateJoinedGt *[]time.Time - dateJoinedGte *[]time.Time - dateJoinedLt *[]time.Time - dateJoinedLte *[]time.Time - dateJoinedN *[]time.Time - email *[]string - emailEmpty *bool - emailIc *[]string - emailIe *[]string - emailIew *[]string - emailIsw *[]string - emailN *[]string - emailNic *[]string - emailNie *[]string - emailNiew *[]string - emailNisw *[]string - firstName *[]string - firstNameEmpty *bool - firstNameIc *[]string - firstNameIe *[]string - firstNameIew *[]string - firstNameIsw *[]string - firstNameN *[]string - firstNameNic *[]string - firstNameNie *[]string - firstNameNiew *[]string - firstNameNisw *[]string - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - isStaff *bool - isSuperuser *bool - lastLogin *[]time.Time - lastLoginEmpty *bool - lastLoginGt *[]time.Time - lastLoginGte *[]time.Time - lastLoginLt *[]time.Time - lastLoginLte *[]time.Time - lastLoginN *[]time.Time - lastName *[]string - lastNameEmpty *bool - lastNameIc *[]string - lastNameIe *[]string - lastNameIew *[]string - lastNameIsw *[]string - lastNameN *[]string - lastNameNic *[]string - lastNameNie *[]string - lastNameNiew *[]string - lastNameNisw *[]string - limit *int32 - notificationGroupId *[]int32 - notificationGroupIdN *[]int32 - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - username *[]string - usernameEmpty *bool - usernameIc *[]string - usernameIe *[]string - usernameIew *[]string - usernameIsw *[]string - usernameN *[]string - usernameNic *[]string - usernameNie *[]string - usernameNiew *[]string - usernameNisw *[]string + ctx context.Context + ApiService *UsersAPIService + dateJoined *[]time.Time + dateJoinedEmpty *bool + dateJoinedGt *[]time.Time + dateJoinedGte *[]time.Time + dateJoinedLt *[]time.Time + dateJoinedLte *[]time.Time + dateJoinedN *[]time.Time + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + firstName *[]string + firstNameEmpty *bool + firstNameIc *[]string + firstNameIe *[]string + firstNameIew *[]string + firstNameIsw *[]string + firstNameN *[]string + firstNameNic *[]string + firstNameNie *[]string + firstNameNiew *[]string + firstNameNisw *[]string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + isStaff *bool + isSuperuser *bool + lastLogin *[]time.Time + lastLoginEmpty *bool + lastLoginGt *[]time.Time + lastLoginGte *[]time.Time + lastLoginLt *[]time.Time + lastLoginLte *[]time.Time + lastLoginN *[]time.Time + lastName *[]string + lastNameEmpty *bool + lastNameIc *[]string + lastNameIe *[]string + lastNameIew *[]string + lastNameIsw *[]string + lastNameN *[]string + lastNameNic *[]string + lastNameNie *[]string + lastNameNiew *[]string + lastNameNisw *[]string + limit *int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + username *[]string + usernameEmpty *bool + usernameIc *[]string + usernameIe *[]string + usernameIew *[]string + usernameIsw *[]string + usernameN *[]string + usernameNic *[]string + usernameNie *[]string + usernameNiew *[]string + usernameNisw *[]string } func (r ApiUsersUsersListRequest) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest { @@ -6738,18 +6700,6 @@ func (r ApiUsersUsersListRequest) Limit(limit int32) ApiUsersUsersListRequest { return r } -// Notification group (ID) -func (r ApiUsersUsersListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersUsersListRequest { - r.notificationGroupId = ¬ificationGroupId - return r -} - -// Notification group (ID) -func (r ApiUsersUsersListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersUsersListRequest { - r.notificationGroupIdN = ¬ificationGroupIdN - return r -} - // The initial index from which to return the results. func (r ApiUsersUsersListRequest) Offset(offset int32) ApiUsersUsersListRequest { r.offset = &offset @@ -7478,28 +7428,6 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.notificationGroupId != nil { - t := *r.notificationGroupId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") - } - } - if r.notificationGroupIdN != nil { - t := *r.notificationGroupIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") - } - } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } diff --git a/api_virtualization.go b/api_virtualization.go index 62ae7138e..2216c43f9 100644 --- a/api_virtualization.go +++ b/api_virtualization.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -623,8 +623,8 @@ type ApiVirtualizationClusterGroupsListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -704,12 +704,14 @@ func (r ApiVirtualizationClusterGroupsListRequest) ContactN(contactN []int32) Ap return r } -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClusterGroupsListRequest { +// Contact group +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClusterGroupsListRequest { r.contactGroup = &contactGroup return r } -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClusterGroupsListRequest { +// Contact group +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClusterGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -4865,8 +4867,8 @@ type ApiVirtualizationClustersListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -4922,16 +4924,16 @@ type ApiVirtualizationClustersListRequest struct { offset *int32 ordering *string q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -4940,10 +4942,10 @@ type ApiVirtualizationClustersListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -4965,12 +4967,14 @@ func (r ApiVirtualizationClustersListRequest) ContactN(contactN []int32) ApiVirt return r } -func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClustersListRequest { +// Contact group +func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClustersListRequest { r.contactGroup = &contactGroup return r } -func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClustersListRequest { +// Contact group +func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClustersListRequest { r.contactGroupN = &contactGroupN return r } @@ -5260,22 +5264,26 @@ func (r ApiVirtualizationClustersListRequest) Q(q string) ApiVirtualizationClust return r } -func (r ApiVirtualizationClustersListRequest) Region(region []string) ApiVirtualizationClustersListRequest { +// Region (slug) +func (r ApiVirtualizationClustersListRequest) Region(region []int32) ApiVirtualizationClustersListRequest { r.region = ®ion return r } -func (r ApiVirtualizationClustersListRequest) RegionN(regionN []string) ApiVirtualizationClustersListRequest { +// Region (slug) +func (r ApiVirtualizationClustersListRequest) RegionN(regionN []int32) ApiVirtualizationClustersListRequest { r.regionN = ®ionN return r } -func (r ApiVirtualizationClustersListRequest) RegionId(regionId []string) ApiVirtualizationClustersListRequest { +// Region (ID) +func (r ApiVirtualizationClustersListRequest) RegionId(regionId []int32) ApiVirtualizationClustersListRequest { r.regionId = ®ionId return r } -func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []string) ApiVirtualizationClustersListRequest { +// Region (ID) +func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationClustersListRequest { r.regionIdN = ®ionIdN return r } @@ -5292,22 +5300,26 @@ func (r ApiVirtualizationClustersListRequest) SiteN(siteN []string) ApiVirtualiz return r } -func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []string) ApiVirtualizationClustersListRequest { +// Site group (slug) +func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationClustersListRequest { r.siteGroup = &siteGroup return r } -func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationClustersListRequest { +// Site group (slug) +func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationClustersListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationClustersListRequest { +// Site group (ID) +func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationClustersListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationClustersListRequest { +// Site group (ID) +func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationClustersListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -5356,22 +5368,26 @@ func (r ApiVirtualizationClustersListRequest) TenantN(tenantN []string) ApiVirtu return r } -func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationClustersListRequest { +// Tenant Group (slug) +func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationClustersListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationClustersListRequest { +// Tenant Group (slug) +func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationClustersListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationClustersListRequest { +// Tenant Group (ID) +func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationClustersListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationClustersListRequest { +// Tenant Group (ID) +func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationClustersListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -12051,8 +12067,8 @@ type ApiVirtualizationVirtualMachinesListRequest struct { configTemplateIdN *[]*int32 contact *[]int32 contactN *[]int32 - contactGroup *[]string - contactGroupN *[]string + contactGroup *[]int32 + contactGroupN *[]int32 contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12149,31 +12165,20 @@ type ApiVirtualizationVirtualMachinesListRequest struct { primaryIp6Id *[]int32 primaryIp6IdN *[]int32 q *string - region *[]string - regionN *[]string - regionId *[]string - regionIdN *[]string + region *[]int32 + regionN *[]int32 + regionId *[]int32 + regionIdN *[]int32 role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 - serial *[]string - serialEmpty *bool - serialIc *[]string - serialIe *[]string - serialIew *[]string - serialIsw *[]string - serialN *[]string - serialNic *[]string - serialNie *[]string - serialNiew *[]string - serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]string - siteGroupN *[]string - siteGroupId *[]string - siteGroupIdN *[]string + siteGroup *[]int32 + siteGroupN *[]int32 + siteGroupId *[]int32 + siteGroupIdN *[]int32 siteId *[]*int32 siteIdN *[]*int32 status *[]string @@ -12182,10 +12187,10 @@ type ApiVirtualizationVirtualMachinesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12301,12 +12306,14 @@ func (r ApiVirtualizationVirtualMachinesListRequest) ContactN(contactN []int32) return r } -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []string) ApiVirtualizationVirtualMachinesListRequest { +// Contact group +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationVirtualMachinesListRequest { r.contactGroup = &contactGroup return r } -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationVirtualMachinesListRequest { +// Contact group +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { r.contactGroupN = &contactGroupN return r } @@ -12811,22 +12818,26 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Q(q string) ApiVirtualizati return r } -func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []string) ApiVirtualizationVirtualMachinesListRequest { +// Region (slug) +func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []int32) ApiVirtualizationVirtualMachinesListRequest { r.region = ®ion return r } -func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []string) ApiVirtualizationVirtualMachinesListRequest { +// Region (slug) +func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []int32) ApiVirtualizationVirtualMachinesListRequest { r.regionN = ®ionN return r } -func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []string) ApiVirtualizationVirtualMachinesListRequest { +// Region (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []int32) ApiVirtualizationVirtualMachinesListRequest { r.regionId = ®ionId return r } -func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []string) ApiVirtualizationVirtualMachinesListRequest { +// Region (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationVirtualMachinesListRequest { r.regionIdN = ®ionIdN return r } @@ -12855,61 +12866,6 @@ func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []*int32) A return r } -func (r ApiVirtualizationVirtualMachinesListRequest) Serial(serial []string) ApiVirtualizationVirtualMachinesListRequest { - r.serial = &serial - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialEmpty(serialEmpty bool) ApiVirtualizationVirtualMachinesListRequest { - r.serialEmpty = &serialEmpty - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialIc(serialIc []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialIc = &serialIc - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialIe(serialIe []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialIe = &serialIe - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialIew(serialIew []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialIew = &serialIew - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialIsw(serialIsw []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialIsw = &serialIsw - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialN(serialN []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialN = &serialN - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialNic(serialNic []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialNic = &serialNic - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialNie(serialNie []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialNie = &serialNie - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialNiew(serialNiew []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialNiew = &serialNiew - return r -} - -func (r ApiVirtualizationVirtualMachinesListRequest) SerialNisw(serialNisw []string) ApiVirtualizationVirtualMachinesListRequest { - r.serialNisw = &serialNisw - return r -} - // Site (slug) func (r ApiVirtualizationVirtualMachinesListRequest) Site(site []string) ApiVirtualizationVirtualMachinesListRequest { r.site = &site @@ -12922,22 +12878,26 @@ func (r ApiVirtualizationVirtualMachinesListRequest) SiteN(siteN []string) ApiVi return r } -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []string) ApiVirtualizationVirtualMachinesListRequest { +// Site group (slug) +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationVirtualMachinesListRequest { r.siteGroup = &siteGroup return r } -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationVirtualMachinesListRequest { +// Site group (slug) +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupN = &siteGroupN return r } -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationVirtualMachinesListRequest { +// Site group (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupId = &siteGroupId return r } -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { +// Site group (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -12986,22 +12946,26 @@ func (r ApiVirtualizationVirtualMachinesListRequest) TenantN(tenantN []string) A return r } -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationVirtualMachinesListRequest { +// Tenant Group (slug) +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationVirtualMachinesListRequest { +// Tenant Group (slug) +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationVirtualMachinesListRequest { +// Tenant Group (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { +// Tenant Group (ID) +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14364,119 +14328,6 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") } } - if r.serial != nil { - t := *r.serial - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") - } - } - if r.serialEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") - } - if r.serialIc != nil { - t := *r.serialIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") - } - } - if r.serialIe != nil { - t := *r.serialIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") - } - } - if r.serialIew != nil { - t := *r.serialIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") - } - } - if r.serialIsw != nil { - t := *r.serialIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") - } - } - if r.serialN != nil { - t := *r.serialN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") - } - } - if r.serialNic != nil { - t := *r.serialNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") - } - } - if r.serialNie != nil { - t := *r.serialNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") - } - } - if r.serialNiew != nil { - t := *r.serialNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") - } - } - if r.serialNisw != nil { - t := *r.serialNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_vpn.go b/api_vpn.go index b22bce11f..6893f11ad 100644 --- a/api_vpn.go +++ b/api_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -685,6 +685,10 @@ type ApiVpnIkePoliciesListRequest struct { presharedKeyNie *string presharedKeyNiew *string presharedKeyNisw *string + proposal *[]string + proposalN *[]string + proposalId *[]int32 + proposalIdN *[]int32 q *string tag *[]string tagN *[]string @@ -1016,6 +1020,26 @@ func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) return r } +func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePoliciesListRequest { + r.proposal = &proposal + return r +} + +func (r ApiVpnIkePoliciesListRequest) ProposalN(proposalN []string) ApiVpnIkePoliciesListRequest { + r.proposalN = &proposalN + return r +} + +func (r ApiVpnIkePoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIkePoliciesListRequest { + r.proposalId = &proposalId + return r +} + +func (r ApiVpnIkePoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIkePoliciesListRequest { + r.proposalIdN = &proposalIdN + return r +} + // Search func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { r.q = &q @@ -1648,6 +1672,50 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if r.presharedKeyNisw != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "") } + if r.proposal != nil { + t := *r.proposal + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") + } + } + if r.proposalN != nil { + t := *r.proposalN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") + } + } + if r.proposalId != nil { + t := *r.proposalId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") + } + } + if r.proposalIdN != nil { + t := *r.proposalIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") + } + } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -5000,6 +5068,10 @@ type ApiVpnIpsecPoliciesListRequest struct { ordering *string pfsGroup *[]*int32 pfsGroupN *[]*int32 + proposal *[]string + proposalN *[]string + proposalId *[]int32 + proposalIdN *[]int32 q *string tag *[]string tagN *[]string @@ -5281,6 +5353,26 @@ func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []*int32) ApiVpnIpse return r } +func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecPoliciesListRequest { + r.proposal = &proposal + return r +} + +func (r ApiVpnIpsecPoliciesListRequest) ProposalN(proposalN []string) ApiVpnIpsecPoliciesListRequest { + r.proposalN = &proposalN + return r +} + +func (r ApiVpnIpsecPoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIpsecPoliciesListRequest { + r.proposalId = &proposalId + return r +} + +func (r ApiVpnIpsecPoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIpsecPoliciesListRequest { + r.proposalIdN = &proposalIdN + return r +} + // Search func (r ApiVpnIpsecPoliciesListRequest) Q(q string) ApiVpnIpsecPoliciesListRequest { r.q = &q @@ -5873,6 +5965,50 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "multi") } } + if r.proposal != nil { + t := *r.proposal + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") + } + } + if r.proposalN != nil { + t := *r.proposalN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") + } + } + if r.proposalId != nil { + t := *r.proposalId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") + } + } + if r.proposalIdN != nil { + t := *r.proposalIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") + } + } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -13566,10 +13702,10 @@ type ApiVpnL2vpnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -13986,22 +14122,26 @@ func (r ApiVpnL2vpnsListRequest) TenantN(tenantN []string) ApiVpnL2vpnsListReque return r } -func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []string) ApiVpnL2vpnsListRequest { +// Tenant Group (slug) +func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiVpnL2vpnsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnL2vpnsListRequest { +// Tenant Group (slug) +func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnL2vpnsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnL2vpnsListRequest { +// Tenant Group (ID) +func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnL2vpnsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnL2vpnsListRequest { +// Tenant Group (ID) +func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnL2vpnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -20063,10 +20203,10 @@ type ApiVpnTunnelsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 tunnelId *[]int32 @@ -20418,22 +20558,26 @@ func (r ApiVpnTunnelsListRequest) TenantN(tenantN []string) ApiVpnTunnelsListReq return r } -func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []string) ApiVpnTunnelsListRequest { +// Tenant Group (slug) +func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []int32) ApiVpnTunnelsListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnTunnelsListRequest { +// Tenant Group (slug) +func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnTunnelsListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnTunnelsListRequest { +// Tenant Group (ID) +func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnTunnelsListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnTunnelsListRequest { +// Tenant Group (ID) +func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnTunnelsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_wireless.go b/api_wireless.go index cf2ee2700..ac16ccf58 100644 --- a/api_wireless.go +++ b/api_wireless.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -621,10 +621,10 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele type ApiWirelessWirelessLanGroupsListRequest struct { ctx context.Context ApiService *WirelessAPIService - ancestor *[]string - ancestorN *[]string - ancestorId *[]string - ancestorIdN *[]string + ancestor *[]int32 + ancestorN *[]int32 + ancestorId *[]int32 + ancestorIdN *[]int32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -694,22 +694,22 @@ type ApiWirelessWirelessLanGroupsListRequest struct { updatedByRequest *string } -func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []string) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []int32) ApiWirelessWirelessLanGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []string) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []int32) ApiWirelessWirelessLanGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []string) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []int32) ApiWirelessWirelessLanGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiWirelessWirelessLanGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -2859,10 +2859,10 @@ type ApiWirelessWirelessLansListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]string - groupN *[]string - groupId *[]string - groupIdN *[]string + group *[]int32 + groupN *[]int32 + groupId *[]int32 + groupIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -2901,10 +2901,10 @@ type ApiWirelessWirelessLansListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3082,22 +3082,22 @@ func (r ApiWirelessWirelessLansListRequest) DescriptionNisw(descriptionNisw []st return r } -func (r ApiWirelessWirelessLansListRequest) Group(group []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) Group(group []int32) ApiWirelessWirelessLansListRequest { r.group = &group return r } -func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []int32) ApiWirelessWirelessLansListRequest { r.groupN = &groupN return r } -func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []int32) ApiWirelessWirelessLansListRequest { r.groupId = &groupId return r } -func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []int32) ApiWirelessWirelessLansListRequest { r.groupIdN = &groupIdN return r } @@ -3298,22 +3298,26 @@ func (r ApiWirelessWirelessLansListRequest) TenantN(tenantN []string) ApiWireles return r } -func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLansListRequest { +// Tenant Group (slug) +func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLansListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLansListRequest { +// Tenant Group (slug) +func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLansListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLansListRequest { +// Tenant Group (ID) +func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLansListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLansListRequest { +// Tenant Group (ID) +func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5305,15 +5309,6 @@ type ApiWirelessWirelessLinksListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - distance *[]float64 - distanceEmpty *bool - distanceGt *[]float64 - distanceGte *[]float64 - distanceLt *[]float64 - distanceLte *[]float64 - distanceN *[]float64 - distanceUnit *WirelessWirelessLinksListDistanceUnitParameter - distanceUnitN *WirelessWirelessLinksListDistanceUnitParameter id *[]int32 idEmpty *bool idGt *[]int32 @@ -5354,10 +5349,10 @@ type ApiWirelessWirelessLinksListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]string - tenantGroupN *[]string - tenantGroupId *[]string - tenantGroupIdN *[]string + tenantGroup *[]int32 + tenantGroupN *[]int32 + tenantGroupId *[]int32 + tenantGroupIdN *[]int32 tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5533,53 +5528,6 @@ func (r ApiWirelessWirelessLinksListRequest) DescriptionNisw(descriptionNisw []s return r } -func (r ApiWirelessWirelessLinksListRequest) Distance(distance []float64) ApiWirelessWirelessLinksListRequest { - r.distance = &distance - return r -} - -func (r ApiWirelessWirelessLinksListRequest) DistanceEmpty(distanceEmpty bool) ApiWirelessWirelessLinksListRequest { - r.distanceEmpty = &distanceEmpty - return r -} - -func (r ApiWirelessWirelessLinksListRequest) DistanceGt(distanceGt []float64) ApiWirelessWirelessLinksListRequest { - r.distanceGt = &distanceGt - return r -} - -func (r ApiWirelessWirelessLinksListRequest) DistanceGte(distanceGte []float64) ApiWirelessWirelessLinksListRequest { - r.distanceGte = &distanceGte - return r -} - -func (r ApiWirelessWirelessLinksListRequest) DistanceLt(distanceLt []float64) ApiWirelessWirelessLinksListRequest { - r.distanceLt = &distanceLt - return r -} - -func (r ApiWirelessWirelessLinksListRequest) DistanceLte(distanceLte []float64) ApiWirelessWirelessLinksListRequest { - r.distanceLte = &distanceLte - return r -} - -func (r ApiWirelessWirelessLinksListRequest) DistanceN(distanceN []float64) ApiWirelessWirelessLinksListRequest { - r.distanceN = &distanceN - return r -} - -// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet -func (r ApiWirelessWirelessLinksListRequest) DistanceUnit(distanceUnit WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { - r.distanceUnit = &distanceUnit - return r -} - -// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet -func (r ApiWirelessWirelessLinksListRequest) DistanceUnitN(distanceUnitN WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { - r.distanceUnitN = &distanceUnitN - return r -} - func (r ApiWirelessWirelessLinksListRequest) Id(id []int32) ApiWirelessWirelessLinksListRequest { r.id = &id return r @@ -5786,22 +5734,26 @@ func (r ApiWirelessWirelessLinksListRequest) TenantN(tenantN []string) ApiWirele return r } -func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLinksListRequest { +// Tenant Group (slug) +func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLinksListRequest { r.tenantGroup = &tenantGroup return r } -func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLinksListRequest { +// Tenant Group (slug) +func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLinksListRequest { r.tenantGroupN = &tenantGroupN return r } -func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLinksListRequest { +// Tenant Group (ID) +func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLinksListRequest { r.tenantGroupId = &tenantGroupId return r } -func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLinksListRequest { +// Tenant Group (ID) +func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLinksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -6214,81 +6166,6 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") } } - if r.distance != nil { - t := *r.distance - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance", t, "multi") - } - } - if r.distanceEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__empty", r.distanceEmpty, "") - } - if r.distanceGt != nil { - t := *r.distanceGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", t, "multi") - } - } - if r.distanceGte != nil { - t := *r.distanceGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", t, "multi") - } - } - if r.distanceLt != nil { - t := *r.distanceLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", t, "multi") - } - } - if r.distanceLte != nil { - t := *r.distanceLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", t, "multi") - } - } - if r.distanceN != nil { - t := *r.distanceN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", t, "multi") - } - } - if r.distanceUnit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit", r.distanceUnit, "") - } - if r.distanceUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit__n", r.distanceUnitN, "") - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/client.go b/client.go index 80c533f63..7ced10a11 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,7 +40,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the NetBox REST API API v4.1.1 (4.1) +// APIClient manages communication with the NetBox REST API API v4.0.3 (4.0) // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index 82caa23f4..e65a51b2f 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "go-netbox/4.1.1", + UserAgent: "go-netbox/4.0.3", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/ASN.md b/docs/ASN.md index 730b7346a..fed0cdda3 100644 --- a/docs/ASN.md +++ b/docs/ASN.md @@ -6,11 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableBriefRIR**](BriefRIR.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Rir** | Pointer to [**NullableRIR**](RIR.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -24,7 +23,7 @@ Name | Type | Description | Notes ### NewASN -`func NewASN(id int32, url string, displayUrl string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN` +`func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64, ) *ASN` NewASN instantiates a new ASN object This constructor will assign default values to properties that have it defined, @@ -79,26 +78,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ASN) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ASN) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ASN) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ASN) GetDisplay() string` @@ -141,20 +120,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASN) GetRir() BriefRIR` +`func (o *ASN) GetRir() RIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASN) GetRirOk() (*BriefRIR, bool)` +`func (o *ASN) GetRirOk() (*RIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASN) SetRir(v BriefRIR)` +`func (o *ASN) SetRir(v RIR)` SetRir sets Rir field to given value. @@ -176,20 +155,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASN) GetTenant() BriefTenant` +`func (o *ASN) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASN) GetTenantOk() (*BriefTenant, bool)` +`func (o *ASN) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASN) SetTenant(v BriefTenant)` +`func (o *ASN) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRange.md b/docs/ASNRange.md index 5158cf9e4..8efc8ef06 100644 --- a/docs/ASNRange.md +++ b/docs/ASNRange.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**BriefRIR**](BriefRIR.md) | | +**Rir** | [**RIR**](RIR.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +24,7 @@ Name | Type | Description | Notes ### NewASNRange -`func NewASNRange(id int32, url string, displayUrl string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` +`func NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` NewASNRange instantiates a new ASNRange object This constructor will assign default values to properties that have it defined, @@ -80,26 +79,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ASNRange) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ASNRange) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ASNRange) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ASNRange) GetDisplay() string` @@ -162,20 +141,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRange) GetRir() BriefRIR` +`func (o *ASNRange) GetRir() RIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRange) GetRirOk() (*BriefRIR, bool)` +`func (o *ASNRange) GetRirOk() (*RIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRange) SetRir(v BriefRIR)` +`func (o *ASNRange) SetRir(v RIR)` SetRir sets Rir field to given value. @@ -222,20 +201,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRange) GetTenant() BriefTenant` +`func (o *ASNRange) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRange) GetTenantOk() (*BriefTenant, bool)` +`func (o *ASNRange) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRange) SetTenant(v BriefTenant)` +`func (o *ASNRange) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRangeRequest.md b/docs/ASNRangeRequest.md index 1c1f5dd35..c7b5e284f 100644 --- a/docs/ASNRangeRequest.md +++ b/docs/ASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Rir** | [**RIRRequest**](RIRRequest.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewASNRangeRequest -`func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64, ) *ASNRangeRequest` +`func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64, ) *ASNRangeRequest` NewASNRangeRequest instantiates a new ASNRangeRequest object This constructor will assign default values to properties that have it defined, @@ -75,20 +75,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRangeRequest) GetRir() BriefRIRRequest` +`func (o *ASNRangeRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRangeRequest) SetRir(v BriefRIRRequest)` +`func (o *ASNRangeRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. @@ -135,20 +135,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRangeRequest) GetTenant() BriefTenantRequest` +`func (o *ASNRangeRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest)` +`func (o *ASNRangeRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRequest.md b/docs/ASNRequest.md index ef24115a1..c82eb0830 100644 --- a/docs/ASNRequest.md +++ b/docs/ASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -53,20 +53,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASNRequest) GetRir() BriefRIRRequest` +`func (o *ASNRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *ASNRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRequest) SetRir(v BriefRIRRequest)` +`func (o *ASNRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. @@ -88,20 +88,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASNRequest) GetTenant() BriefTenantRequest` +`func (o *ASNRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRequest) SetTenant(v BriefTenantRequest)` +`func (o *ASNRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/Aggregate.md b/docs/Aggregate.md index 781d2e690..aab5e7099 100644 --- a/docs/Aggregate.md +++ b/docs/Aggregate.md @@ -6,12 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Rir** | [**BriefRIR**](BriefRIR.md) | | -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Rir** | [**RIR**](RIR.md) | | +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -24,7 +23,7 @@ Name | Type | Description | Notes ### NewAggregate -`func NewAggregate(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` +`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` NewAggregate instantiates a new Aggregate object This constructor will assign default values to properties that have it defined, @@ -79,26 +78,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Aggregate) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Aggregate) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Aggregate) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Aggregate) GetDisplay() string` @@ -161,40 +140,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *Aggregate) GetRir() BriefRIR` +`func (o *Aggregate) GetRir() RIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *Aggregate) GetRirOk() (*BriefRIR, bool)` +`func (o *Aggregate) GetRirOk() (*RIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *Aggregate) SetRir(v BriefRIR)` +`func (o *Aggregate) SetRir(v RIR)` SetRir sets Rir field to given value. ### GetTenant -`func (o *Aggregate) GetTenant() BriefTenant` +`func (o *Aggregate) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Aggregate) GetTenantOk() (*BriefTenant, bool)` +`func (o *Aggregate) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Aggregate) SetTenant(v BriefTenant)` +`func (o *Aggregate) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/AggregateRequest.md b/docs/AggregateRequest.md index a11fa9f7a..197cf1897 100644 --- a/docs/AggregateRequest.md +++ b/docs/AggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Rir** | [**RIRRequest**](RIRRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewAggregateRequest -`func NewAggregateRequest(prefix string, rir BriefRIRRequest, ) *AggregateRequest` +`func NewAggregateRequest(prefix string, rir RIRRequest, ) *AggregateRequest` NewAggregateRequest instantiates a new AggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *AggregateRequest) GetRir() BriefRIRRequest` +`func (o *AggregateRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *AggregateRequest) SetRir(v BriefRIRRequest)` +`func (o *AggregateRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *AggregateRequest) GetTenant() BriefTenantRequest` +`func (o *AggregateRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *AggregateRequest) SetTenant(v BriefTenantRequest)` +`func (o *AggregateRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/AvailableIP.md b/docs/AvailableIP.md index 961593aa5..9fa0b65df 100644 --- a/docs/AvailableIP.md +++ b/docs/AvailableIP.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Address** | **string** | | [readonly] -**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] +**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] **Description** | Pointer to **string** | | [optional] ## Methods ### NewAvailableIP -`func NewAvailableIP(family int32, address string, vrf NullableBriefVRF, ) *AvailableIP` +`func NewAvailableIP(family int32, address string, vrf NullableVRF, ) *AvailableIP` NewAvailableIP instantiates a new AvailableIP object This constructor will assign default values to properties that have it defined, @@ -70,20 +70,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *AvailableIP) GetVrf() BriefVRF` +`func (o *AvailableIP) GetVrf() VRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool)` +`func (o *AvailableIP) GetVrfOk() (*VRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailableIP) SetVrf(v BriefVRF)` +`func (o *AvailableIP) SetVrf(v VRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailablePrefix.md b/docs/AvailablePrefix.md index dd8738306..e9f9da1fe 100644 --- a/docs/AvailablePrefix.md +++ b/docs/AvailablePrefix.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Prefix** | **string** | | [readonly] -**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] +**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] ## Methods ### NewAvailablePrefix -`func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF, ) *AvailablePrefix` +`func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF, ) *AvailablePrefix` NewAvailablePrefix instantiates a new AvailablePrefix object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetPrefix sets Prefix field to given value. ### GetVrf -`func (o *AvailablePrefix) GetVrf() BriefVRF` +`func (o *AvailablePrefix) GetVrf() VRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool)` +`func (o *AvailablePrefix) GetVrfOk() (*VRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailablePrefix) SetVrf(v BriefVRF)` +`func (o *AvailablePrefix) SetVrf(v VRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailableVLAN.md b/docs/AvailableVLAN.md index c00225080..86e18eea9 100644 --- a/docs/AvailableVLAN.md +++ b/docs/AvailableVLAN.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Vid** | **int32** | | [readonly] -**Group** | [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [readonly] +**Group** | [**NullableVLANGroup**](VLANGroup.md) | | [readonly] ## Methods ### NewAvailableVLAN -`func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup, ) *AvailableVLAN` +`func NewAvailableVLAN(vid int32, group NullableVLANGroup, ) *AvailableVLAN` NewAvailableVLAN instantiates a new AvailableVLAN object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetVid sets Vid field to given value. ### GetGroup -`func (o *AvailableVLAN) GetGroup() BriefVLANGroup` +`func (o *AvailableVLAN) GetGroup() VLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool)` +`func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *AvailableVLAN) SetGroup(v BriefVLANGroup)` +`func (o *AvailableVLAN) SetGroup(v VLANGroup)` SetGroup sets Group field to given value. diff --git a/docs/Bookmark.md b/docs/Bookmark.md index 05631b586..68ef93cce 100644 --- a/docs/Bookmark.md +++ b/docs/Bookmark.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **interface{}** | | [readonly] -**User** | [**BriefUser**](BriefUser.md) | | +**User** | [**User**](User.md) | | **Created** | **time.Time** | | [readonly] ## Methods ### NewBookmark -`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, ) *Bookmark` +`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time, ) *Bookmark` NewBookmark instantiates a new Bookmark object This constructor will assign default values to properties that have it defined, @@ -164,20 +164,20 @@ SetObject sets Object field to given value. UnsetObject ensures that no value is present for Object, not even an explicit nil ### GetUser -`func (o *Bookmark) GetUser() BriefUser` +`func (o *Bookmark) GetUser() User` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Bookmark) GetUserOk() (*BriefUser, bool)` +`func (o *Bookmark) GetUserOk() (*User, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Bookmark) SetUser(v BriefUser)` +`func (o *Bookmark) SetUser(v User)` SetUser sets User field to given value. diff --git a/docs/BookmarkRequest.md b/docs/BookmarkRequest.md index ab40a26e9..caeb3fc59 100644 --- a/docs/BookmarkRequest.md +++ b/docs/BookmarkRequest.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**User** | [**UserRequest**](UserRequest.md) | | ## Methods ### NewBookmarkRequest -`func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest, ) *BookmarkRequest` +`func NewBookmarkRequest(objectType string, objectId int64, user UserRequest, ) *BookmarkRequest` NewBookmarkRequest instantiates a new BookmarkRequest object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetObjectId sets ObjectId field to given value. ### GetUser -`func (o *BookmarkRequest) GetUser() BriefUserRequest` +`func (o *BookmarkRequest) GetUser() UserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` +`func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *BookmarkRequest) SetUser(v BriefUserRequest)` +`func (o *BookmarkRequest) SetUser(v UserRequest)` SetUser sets User field to given value. diff --git a/docs/Cable.md b/docs/Cable.md index 8a7a7c89e..389a4c616 100644 --- a/docs/Cable.md +++ b/docs/Cable.md @@ -6,29 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Type** | Pointer to [**CableType**](CableType.md) | | [optional] -**ATerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] -**BTerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] -**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Label** | Pointer to **string** | | [optional] -**Color** | Pointer to **string** | | [optional] -**Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**NullableCableLengthUnit**](CableLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewCable -`func NewCable(id int32, url string, displayUrl string, display string, created NullableTime, lastUpdated NullableTime, ) *Cable` +`func NewCable(id int32, url string, display string, ) *Cable` NewCable instantiates a new Cable object This constructor will assign default values to properties that have it defined, @@ -83,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Cable) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Cable) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Cable) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Cable) GetDisplay() string` @@ -123,141 +89,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetType - -`func (o *Cable) GetType() CableType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *Cable) GetTypeOk() (*CableType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *Cable) SetType(v CableType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *Cable) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetATerminations - -`func (o *Cable) GetATerminations() []GenericObject` - -GetATerminations returns the ATerminations field if non-nil, zero value otherwise. - -### GetATerminationsOk - -`func (o *Cable) GetATerminationsOk() (*[]GenericObject, bool)` - -GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetATerminations - -`func (o *Cable) SetATerminations(v []GenericObject)` - -SetATerminations sets ATerminations field to given value. - -### HasATerminations - -`func (o *Cable) HasATerminations() bool` - -HasATerminations returns a boolean if a field has been set. - -### GetBTerminations - -`func (o *Cable) GetBTerminations() []GenericObject` - -GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. - -### GetBTerminationsOk - -`func (o *Cable) GetBTerminationsOk() (*[]GenericObject, bool)` - -GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBTerminations - -`func (o *Cable) SetBTerminations(v []GenericObject)` - -SetBTerminations sets BTerminations field to given value. - -### HasBTerminations - -`func (o *Cable) HasBTerminations() bool` - -HasBTerminations returns a boolean if a field has been set. - -### GetStatus - -`func (o *Cable) GetStatus() CableStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Cable) GetStatusOk() (*CableStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Cable) SetStatus(v CableStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Cable) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *Cable) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Cable) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Cable) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Cable) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Cable) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Cable) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *Cable) GetLabel() string` @@ -283,101 +114,6 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. -### GetColor - -`func (o *Cable) GetColor() string` - -GetColor returns the Color field if non-nil, zero value otherwise. - -### GetColorOk - -`func (o *Cable) GetColorOk() (*string, bool)` - -GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetColor - -`func (o *Cable) SetColor(v string)` - -SetColor sets Color field to given value. - -### HasColor - -`func (o *Cable) HasColor() bool` - -HasColor returns a boolean if a field has been set. - -### GetLength - -`func (o *Cable) GetLength() float64` - -GetLength returns the Length field if non-nil, zero value otherwise. - -### GetLengthOk - -`func (o *Cable) GetLengthOk() (*float64, bool)` - -GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLength - -`func (o *Cable) SetLength(v float64)` - -SetLength sets Length field to given value. - -### HasLength - -`func (o *Cable) HasLength() bool` - -HasLength returns a boolean if a field has been set. - -### SetLengthNil - -`func (o *Cable) SetLengthNil(b bool)` - - SetLengthNil sets the value for Length to be an explicit nil - -### UnsetLength -`func (o *Cable) UnsetLength()` - -UnsetLength ensures that no value is present for Length, not even an explicit nil -### GetLengthUnit - -`func (o *Cable) GetLengthUnit() CableLengthUnit` - -GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. - -### GetLengthUnitOk - -`func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool)` - -GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLengthUnit - -`func (o *Cable) SetLengthUnit(v CableLengthUnit)` - -SetLengthUnit sets LengthUnit field to given value. - -### HasLengthUnit - -`func (o *Cable) HasLengthUnit() bool` - -HasLengthUnit returns a boolean if a field has been set. - -### SetLengthUnitNil - -`func (o *Cable) SetLengthUnitNil(b bool)` - - SetLengthUnitNil sets the value for LengthUnit to be an explicit nil - -### UnsetLengthUnit -`func (o *Cable) UnsetLengthUnit()` - -UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *Cable) GetDescription() string` @@ -403,141 +139,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Cable) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Cable) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Cable) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Cable) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Cable) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Cable) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Cable) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Cable) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Cable) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Cable) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Cable) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Cable) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Cable) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Cable) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Cable) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Cable) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Cable) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Cable) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Cable) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Cable) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Cable) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Cable) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/CableRequest.md b/docs/CableRequest.md index 61b9cded1..b90dfd2ea 100644 --- a/docs/CableRequest.md +++ b/docs/CableRequest.md @@ -4,19 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**CableType**](CableType.md) | | [optional] -**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] -**Color** | Pointer to **string** | | [optional] -**Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -37,141 +26,6 @@ NewCableRequestWithDefaults instantiates a new CableRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetType - -`func (o *CableRequest) GetType() CableType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CableRequest) GetTypeOk() (*CableType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CableRequest) SetType(v CableType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *CableRequest) HasType() bool` - -HasType returns a boolean if a field has been set. - -### GetATerminations - -`func (o *CableRequest) GetATerminations() []GenericObjectRequest` - -GetATerminations returns the ATerminations field if non-nil, zero value otherwise. - -### GetATerminationsOk - -`func (o *CableRequest) GetATerminationsOk() (*[]GenericObjectRequest, bool)` - -GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetATerminations - -`func (o *CableRequest) SetATerminations(v []GenericObjectRequest)` - -SetATerminations sets ATerminations field to given value. - -### HasATerminations - -`func (o *CableRequest) HasATerminations() bool` - -HasATerminations returns a boolean if a field has been set. - -### GetBTerminations - -`func (o *CableRequest) GetBTerminations() []GenericObjectRequest` - -GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. - -### GetBTerminationsOk - -`func (o *CableRequest) GetBTerminationsOk() (*[]GenericObjectRequest, bool)` - -GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetBTerminations - -`func (o *CableRequest) SetBTerminations(v []GenericObjectRequest)` - -SetBTerminations sets BTerminations field to given value. - -### HasBTerminations - -`func (o *CableRequest) HasBTerminations() bool` - -HasBTerminations returns a boolean if a field has been set. - -### GetStatus - -`func (o *CableRequest) GetStatus() CableStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CableRequest) SetStatus(v CableStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *CableRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *CableRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *CableRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *CableRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *CableRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *CableRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *CableRequest) GetLabel() string` @@ -197,101 +51,6 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. -### GetColor - -`func (o *CableRequest) GetColor() string` - -GetColor returns the Color field if non-nil, zero value otherwise. - -### GetColorOk - -`func (o *CableRequest) GetColorOk() (*string, bool)` - -GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetColor - -`func (o *CableRequest) SetColor(v string)` - -SetColor sets Color field to given value. - -### HasColor - -`func (o *CableRequest) HasColor() bool` - -HasColor returns a boolean if a field has been set. - -### GetLength - -`func (o *CableRequest) GetLength() float64` - -GetLength returns the Length field if non-nil, zero value otherwise. - -### GetLengthOk - -`func (o *CableRequest) GetLengthOk() (*float64, bool)` - -GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLength - -`func (o *CableRequest) SetLength(v float64)` - -SetLength sets Length field to given value. - -### HasLength - -`func (o *CableRequest) HasLength() bool` - -HasLength returns a boolean if a field has been set. - -### SetLengthNil - -`func (o *CableRequest) SetLengthNil(b bool)` - - SetLengthNil sets the value for Length to be an explicit nil - -### UnsetLength -`func (o *CableRequest) UnsetLength()` - -UnsetLength ensures that no value is present for Length, not even an explicit nil -### GetLengthUnit - -`func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit` - -GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. - -### GetLengthUnitOk - -`func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool)` - -GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLengthUnit - -`func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit)` - -SetLengthUnit sets LengthUnit field to given value. - -### HasLengthUnit - -`func (o *CableRequest) HasLengthUnit() bool` - -HasLengthUnit returns a boolean if a field has been set. - -### SetLengthUnitNil - -`func (o *CableRequest) SetLengthUnitNil(b bool)` - - SetLengthUnitNil sets the value for LengthUnit to be an explicit nil - -### UnsetLengthUnit -`func (o *CableRequest) UnsetLengthUnit()` - -UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *CableRequest) GetDescription() string` @@ -317,81 +76,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *CableRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *CableRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *CableRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *CableRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *CableRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *CableRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *CableRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *CableRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *CableRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *CableRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *CableRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *CableRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Circuit.md b/docs/Circuit.md index 24a6ce0de..b9bb4fd7e 100644 --- a/docs/Circuit.md +++ b/docs/Circuit.md @@ -6,32 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Cid** | **string** | Unique circuit ID | -**Provider** | [**BriefProvider**](BriefProvider.md) | | -**ProviderAccount** | Pointer to [**NullableBriefProviderAccount**](BriefProviderAccount.md) | | [optional] -**Type** | [**BriefCircuitType**](BriefCircuitType.md) | | -**Status** | Pointer to [**CircuitStatus**](CircuitStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**InstallDate** | Pointer to **NullableString** | | [optional] -**TerminationDate** | Pointer to **NullableString** | | [optional] -**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] -**TerminationA** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] -**TerminationZ** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializer**](BriefCircuitGroupAssignmentSerializer.md) | | [optional] ## Methods ### NewCircuit -`func NewCircuit(id int32, url string, displayUrl string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime, ) *Circuit` +`func NewCircuit(id int32, url string, display string, cid string, ) *Circuit` NewCircuit instantiates a new Circuit object This constructor will assign default values to properties that have it defined, @@ -86,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Circuit) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Circuit) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Circuit) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Circuit) GetDisplay() string` @@ -146,246 +109,6 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. -### GetProvider - -`func (o *Circuit) GetProvider() BriefProvider` - -GetProvider returns the Provider field if non-nil, zero value otherwise. - -### GetProviderOk - -`func (o *Circuit) GetProviderOk() (*BriefProvider, bool)` - -GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProvider - -`func (o *Circuit) SetProvider(v BriefProvider)` - -SetProvider sets Provider field to given value. - - -### GetProviderAccount - -`func (o *Circuit) GetProviderAccount() BriefProviderAccount` - -GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. - -### GetProviderAccountOk - -`func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool)` - -GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProviderAccount - -`func (o *Circuit) SetProviderAccount(v BriefProviderAccount)` - -SetProviderAccount sets ProviderAccount field to given value. - -### HasProviderAccount - -`func (o *Circuit) HasProviderAccount() bool` - -HasProviderAccount returns a boolean if a field has been set. - -### SetProviderAccountNil - -`func (o *Circuit) SetProviderAccountNil(b bool)` - - SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil - -### UnsetProviderAccount -`func (o *Circuit) UnsetProviderAccount()` - -UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil -### GetType - -`func (o *Circuit) GetType() BriefCircuitType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *Circuit) SetType(v BriefCircuitType)` - -SetType sets Type field to given value. - - -### GetStatus - -`func (o *Circuit) GetStatus() CircuitStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Circuit) GetStatusOk() (*CircuitStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Circuit) SetStatus(v CircuitStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Circuit) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *Circuit) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Circuit) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Circuit) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Circuit) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Circuit) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Circuit) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetInstallDate - -`func (o *Circuit) GetInstallDate() string` - -GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. - -### GetInstallDateOk - -`func (o *Circuit) GetInstallDateOk() (*string, bool)` - -GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstallDate - -`func (o *Circuit) SetInstallDate(v string)` - -SetInstallDate sets InstallDate field to given value. - -### HasInstallDate - -`func (o *Circuit) HasInstallDate() bool` - -HasInstallDate returns a boolean if a field has been set. - -### SetInstallDateNil - -`func (o *Circuit) SetInstallDateNil(b bool)` - - SetInstallDateNil sets the value for InstallDate to be an explicit nil - -### UnsetInstallDate -`func (o *Circuit) UnsetInstallDate()` - -UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil -### GetTerminationDate - -`func (o *Circuit) GetTerminationDate() string` - -GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. - -### GetTerminationDateOk - -`func (o *Circuit) GetTerminationDateOk() (*string, bool)` - -GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTerminationDate - -`func (o *Circuit) SetTerminationDate(v string)` - -SetTerminationDate sets TerminationDate field to given value. - -### HasTerminationDate - -`func (o *Circuit) HasTerminationDate() bool` - -HasTerminationDate returns a boolean if a field has been set. - -### SetTerminationDateNil - -`func (o *Circuit) SetTerminationDateNil(b bool)` - - SetTerminationDateNil sets the value for TerminationDate to be an explicit nil - -### UnsetTerminationDate -`func (o *Circuit) UnsetTerminationDate()` - -UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil -### GetCommitRate - -`func (o *Circuit) GetCommitRate() int32` - -GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. - -### GetCommitRateOk - -`func (o *Circuit) GetCommitRateOk() (*int32, bool)` - -GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommitRate - -`func (o *Circuit) SetCommitRate(v int32)` - -SetCommitRate sets CommitRate field to given value. - -### HasCommitRate - -`func (o *Circuit) HasCommitRate() bool` - -HasCommitRate returns a boolean if a field has been set. - -### SetCommitRateNil - -`func (o *Circuit) SetCommitRateNil(b bool)` - - SetCommitRateNil sets the value for CommitRate to be an explicit nil - -### UnsetCommitRate -`func (o *Circuit) UnsetCommitRate()` - -UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *Circuit) GetDescription() string` @@ -411,226 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTerminationA - -`func (o *Circuit) GetTerminationA() CircuitCircuitTermination` - -GetTerminationA returns the TerminationA field if non-nil, zero value otherwise. - -### GetTerminationAOk - -`func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool)` - -GetTerminationAOk returns a tuple with the TerminationA field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTerminationA - -`func (o *Circuit) SetTerminationA(v CircuitCircuitTermination)` - -SetTerminationA sets TerminationA field to given value. - - -### SetTerminationANil - -`func (o *Circuit) SetTerminationANil(b bool)` - - SetTerminationANil sets the value for TerminationA to be an explicit nil - -### UnsetTerminationA -`func (o *Circuit) UnsetTerminationA()` - -UnsetTerminationA ensures that no value is present for TerminationA, not even an explicit nil -### GetTerminationZ - -`func (o *Circuit) GetTerminationZ() CircuitCircuitTermination` - -GetTerminationZ returns the TerminationZ field if non-nil, zero value otherwise. - -### GetTerminationZOk - -`func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool)` - -GetTerminationZOk returns a tuple with the TerminationZ field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTerminationZ - -`func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination)` - -SetTerminationZ sets TerminationZ field to given value. - - -### SetTerminationZNil - -`func (o *Circuit) SetTerminationZNil(b bool)` - - SetTerminationZNil sets the value for TerminationZ to be an explicit nil - -### UnsetTerminationZ -`func (o *Circuit) UnsetTerminationZ()` - -UnsetTerminationZ ensures that no value is present for TerminationZ, not even an explicit nil -### GetComments - -`func (o *Circuit) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Circuit) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Circuit) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Circuit) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Circuit) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Circuit) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Circuit) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Circuit) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Circuit) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Circuit) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Circuit) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Circuit) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Circuit) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Circuit) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Circuit) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Circuit) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Circuit) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Circuit) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Circuit) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Circuit) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Circuit) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetAssignments - -`func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer` - -GetAssignments returns the Assignments field if non-nil, zero value otherwise. - -### GetAssignmentsOk - -`func (o *Circuit) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializer, bool)` - -GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignments - -`func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer)` - -SetAssignments sets Assignments field to given value. - -### HasAssignments - -`func (o *Circuit) HasAssignments() bool` - -HasAssignments 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/docs/CircuitRequest.md b/docs/CircuitRequest.md index 0b956756e..e28059fb5 100644 --- a/docs/CircuitRequest.md +++ b/docs/CircuitRequest.md @@ -5,25 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | -**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | -**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] -**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | -**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**InstallDate** | Pointer to **NullableString** | | [optional] -**TerminationDate** | Pointer to **NullableString** | | [optional] -**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewCircuitRequest -`func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *CircuitRequest` +`func NewCircuitRequest(cid string, ) *CircuitRequest` NewCircuitRequest instantiates a new CircuitRequest object This constructor will assign default values to properties that have it defined, @@ -58,246 +46,6 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. -### GetProvider - -`func (o *CircuitRequest) GetProvider() BriefProviderRequest` - -GetProvider returns the Provider field if non-nil, zero value otherwise. - -### GetProviderOk - -`func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` - -GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProvider - -`func (o *CircuitRequest) SetProvider(v BriefProviderRequest)` - -SetProvider sets Provider field to given value. - - -### GetProviderAccount - -`func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest` - -GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. - -### GetProviderAccountOk - -`func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` - -GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProviderAccount - -`func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` - -SetProviderAccount sets ProviderAccount field to given value. - -### HasProviderAccount - -`func (o *CircuitRequest) HasProviderAccount() bool` - -HasProviderAccount returns a boolean if a field has been set. - -### SetProviderAccountNil - -`func (o *CircuitRequest) SetProviderAccountNil(b bool)` - - SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil - -### UnsetProviderAccount -`func (o *CircuitRequest) UnsetProviderAccount()` - -UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil -### GetType - -`func (o *CircuitRequest) GetType() BriefCircuitTypeRequest` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest)` - -SetType sets Type field to given value. - - -### GetStatus - -`func (o *CircuitRequest) GetStatus() CircuitStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *CircuitRequest) SetStatus(v CircuitStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *CircuitRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *CircuitRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *CircuitRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *CircuitRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *CircuitRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *CircuitRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetInstallDate - -`func (o *CircuitRequest) GetInstallDate() string` - -GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. - -### GetInstallDateOk - -`func (o *CircuitRequest) GetInstallDateOk() (*string, bool)` - -GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstallDate - -`func (o *CircuitRequest) SetInstallDate(v string)` - -SetInstallDate sets InstallDate field to given value. - -### HasInstallDate - -`func (o *CircuitRequest) HasInstallDate() bool` - -HasInstallDate returns a boolean if a field has been set. - -### SetInstallDateNil - -`func (o *CircuitRequest) SetInstallDateNil(b bool)` - - SetInstallDateNil sets the value for InstallDate to be an explicit nil - -### UnsetInstallDate -`func (o *CircuitRequest) UnsetInstallDate()` - -UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil -### GetTerminationDate - -`func (o *CircuitRequest) GetTerminationDate() string` - -GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. - -### GetTerminationDateOk - -`func (o *CircuitRequest) GetTerminationDateOk() (*string, bool)` - -GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTerminationDate - -`func (o *CircuitRequest) SetTerminationDate(v string)` - -SetTerminationDate sets TerminationDate field to given value. - -### HasTerminationDate - -`func (o *CircuitRequest) HasTerminationDate() bool` - -HasTerminationDate returns a boolean if a field has been set. - -### SetTerminationDateNil - -`func (o *CircuitRequest) SetTerminationDateNil(b bool)` - - SetTerminationDateNil sets the value for TerminationDate to be an explicit nil - -### UnsetTerminationDate -`func (o *CircuitRequest) UnsetTerminationDate()` - -UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil -### GetCommitRate - -`func (o *CircuitRequest) GetCommitRate() int32` - -GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. - -### GetCommitRateOk - -`func (o *CircuitRequest) GetCommitRateOk() (*int32, bool)` - -GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCommitRate - -`func (o *CircuitRequest) SetCommitRate(v int32)` - -SetCommitRate sets CommitRate field to given value. - -### HasCommitRate - -`func (o *CircuitRequest) HasCommitRate() bool` - -HasCommitRate returns a boolean if a field has been set. - -### SetCommitRateNil - -`func (o *CircuitRequest) SetCommitRateNil(b bool)` - - SetCommitRateNil sets the value for CommitRate to be an explicit nil - -### UnsetCommitRate -`func (o *CircuitRequest) UnsetCommitRate()` - -UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *CircuitRequest) GetDescription() string` @@ -323,106 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *CircuitRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *CircuitRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *CircuitRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *CircuitRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *CircuitRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *CircuitRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *CircuitRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *CircuitRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *CircuitRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *CircuitRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *CircuitRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *CircuitRequest) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetAssignments - -`func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` - -GetAssignments returns the Assignments field if non-nil, zero value otherwise. - -### GetAssignmentsOk - -`func (o *CircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` - -GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignments - -`func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` - -SetAssignments sets Assignments field to given value. - -### HasAssignments - -`func (o *CircuitRequest) HasAssignments() bool` - -HasAssignments 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/docs/CircuitTermination.md b/docs/CircuitTermination.md index 718746e9d..11b220a6d 100644 --- a/docs/CircuitTermination.md +++ b/docs/CircuitTermination.md @@ -6,22 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Circuit** | [**BriefCircuit**](BriefCircuit.md) | | +**Circuit** | [**Circuit**](Circuit.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | [optional] +**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableProviderNetwork**](ProviderNetwork.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] **PpInfo** | Pointer to **string** | Patch panel ID and port number(s) | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -32,7 +31,7 @@ Name | Type | Description | Notes ### NewCircuitTermination -`func NewCircuitTermination(id int32, url string, displayUrl string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` +`func NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` NewCircuitTermination instantiates a new CircuitTermination object This constructor will assign default values to properties that have it defined, @@ -87,26 +86,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *CircuitTermination) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *CircuitTermination) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *CircuitTermination) GetDisplay() string` @@ -129,20 +108,20 @@ SetDisplay sets Display field to given value. ### GetCircuit -`func (o *CircuitTermination) GetCircuit() BriefCircuit` +`func (o *CircuitTermination) GetCircuit() Circuit` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool)` +`func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTermination) SetCircuit(v BriefCircuit)` +`func (o *CircuitTermination) SetCircuit(v Circuit)` SetCircuit sets Circuit field to given value. @@ -169,20 +148,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTermination) GetSite() BriefSite` +`func (o *CircuitTermination) GetSite() Site` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool)` +`func (o *CircuitTermination) GetSiteOk() (*Site, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTermination) SetSite(v BriefSite)` +`func (o *CircuitTermination) SetSite(v Site)` SetSite sets Site field to given value. @@ -204,20 +183,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork` +`func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` +`func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork)` +`func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork)` SetProviderNetwork sets ProviderNetwork field to given value. @@ -409,20 +388,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *CircuitTermination) GetCable() BriefCable` +`func (o *CircuitTermination) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *CircuitTermination) GetCableOk() (*BriefCable, bool)` +`func (o *CircuitTermination) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *CircuitTermination) SetCable(v BriefCable)` +`func (o *CircuitTermination) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -497,16 +476,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *CircuitTermination) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *CircuitTermination) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *CircuitTermination) GetTags() []NestedTag` diff --git a/docs/CircuitTerminationRequest.md b/docs/CircuitTerminationRequest.md index f4116a999..a99223da7 100644 --- a/docs/CircuitTerminationRequest.md +++ b/docs/CircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | +**Circuit** | [**CircuitRequest**](CircuitRequest.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewCircuitTerminationRequest -`func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` +`func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` NewCircuitTerminationRequest instantiates a new CircuitTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest` +`func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` +`func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` +`func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest)` SetCircuit sets Circuit field to given value. @@ -78,20 +78,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest` +`func (o *CircuitTerminationRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest)` +`func (o *CircuitTerminationRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -113,20 +113,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` +`func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` +`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` +`func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/CircuitType.md b/docs/CircuitType.md index aa83cc92d..ea037618e 100644 --- a/docs/CircuitType.md +++ b/docs/CircuitType.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewCircuitType -`func NewCircuitType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType` +`func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitType` NewCircuitType instantiates a new CircuitType object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *CircuitType) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *CircuitType) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *CircuitType) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *CircuitType) GetDisplay() string` diff --git a/docs/CircuitsAPI.md b/docs/CircuitsAPI.md index 6bdfd6e64..c78529d9c 100644 --- a/docs/CircuitsAPI.md +++ b/docs/CircuitsAPI.md @@ -4,24 +4,6 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- -[**CircuitsCircuitGroupAssignmentsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkDestroy) | **Delete** /api/circuits/circuit-group-assignments/ | -[**CircuitsCircuitGroupAssignmentsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/ | -[**CircuitsCircuitGroupAssignmentsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkUpdate) | **Put** /api/circuits/circuit-group-assignments/ | -[**CircuitsCircuitGroupAssignmentsCreate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsCreate) | **Post** /api/circuits/circuit-group-assignments/ | -[**CircuitsCircuitGroupAssignmentsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsDestroy) | **Delete** /api/circuits/circuit-group-assignments/{id}/ | -[**CircuitsCircuitGroupAssignmentsList**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsList) | **Get** /api/circuits/circuit-group-assignments/ | -[**CircuitsCircuitGroupAssignmentsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/{id}/ | -[**CircuitsCircuitGroupAssignmentsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsRetrieve) | **Get** /api/circuits/circuit-group-assignments/{id}/ | -[**CircuitsCircuitGroupAssignmentsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsUpdate) | **Put** /api/circuits/circuit-group-assignments/{id}/ | -[**CircuitsCircuitGroupsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsBulkDestroy) | **Delete** /api/circuits/circuit-groups/ | -[**CircuitsCircuitGroupsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkPartialUpdate) | **Patch** /api/circuits/circuit-groups/ | -[**CircuitsCircuitGroupsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkUpdate) | **Put** /api/circuits/circuit-groups/ | -[**CircuitsCircuitGroupsCreate**](CircuitsAPI.md#CircuitsCircuitGroupsCreate) | **Post** /api/circuits/circuit-groups/ | -[**CircuitsCircuitGroupsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsDestroy) | **Delete** /api/circuits/circuit-groups/{id}/ | -[**CircuitsCircuitGroupsList**](CircuitsAPI.md#CircuitsCircuitGroupsList) | **Get** /api/circuits/circuit-groups/ | -[**CircuitsCircuitGroupsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsPartialUpdate) | **Patch** /api/circuits/circuit-groups/{id}/ | -[**CircuitsCircuitGroupsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupsRetrieve) | **Get** /api/circuits/circuit-groups/{id}/ | -[**CircuitsCircuitGroupsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsUpdate) | **Put** /api/circuits/circuit-groups/{id}/ | [**CircuitsCircuitTerminationsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkDestroy) | **Delete** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkPartialUpdate) | **Patch** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkUpdate) | **Put** /api/circuits/circuit-terminations/ | @@ -80,1454 +62,6 @@ Method | HTTP request | Description -## CircuitsCircuitGroupAssignmentsBulkDestroy - -> CircuitsCircuitGroupAssignmentsBulkDestroy(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsBulkPartialUpdate - -> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: []CircuitGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | - -### Return type - -[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsBulkUpdate - -> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsBulkUpdate`: []CircuitGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | - -### Return type - -[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsCreate - -> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsCreate(ctx).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsCreate`: CircuitGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsCreateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | - -### Return type - -[**CircuitGroupAssignment**](CircuitGroupAssignment.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsDestroy - -> CircuitsCircuitGroupAssignmentsDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Circuit group assignment. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsList - -> PaginatedCircuitGroupAssignmentList CircuitsCircuitGroupAssignmentsList(ctx).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuit := []string{"Inner_example"} // []string | Circuit (CID) (optional) - circuitN := []string{"Inner_example"} // []string | Circuit (CID) (optional) - circuitId := []int32{int32(123)} // []int32 | Circuit (ID) (optional) - circuitIdN := []int32{int32(123)} // []int32 | Circuit (ID) (optional) - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - group := []string{"Inner_example"} // []string | Circuit group (slug) (optional) - groupN := []string{"Inner_example"} // []string | Circuit group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - priorityN := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - provider := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) - providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) - providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) - q := "q_example" // string | Search (optional) - tag := []string{"Inner_example"} // []string | (optional) - tagN := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsList`: PaginatedCircuitGroupAssignmentList - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuit** | **[]string** | Circuit (CID) | - **circuitN** | **[]string** | Circuit (CID) | - **circuitId** | **[]int32** | Circuit (ID) | - **circuitIdN** | **[]int32** | Circuit (ID) | - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **group** | **[]string** | Circuit group (slug) | - **groupN** | **[]string** | Circuit group (slug) | - **groupId** | **[]int32** | Circuit group (ID) | - **groupIdN** | **[]int32** | Circuit group (ID) | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | - **modifiedByRequest** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **priorityN** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **provider** | **[]string** | Provider (slug) | - **providerN** | **[]string** | Provider (slug) | - **providerId** | **[]int32** | Provider (ID) | - **providerIdN** | **[]int32** | Provider (ID) | - **q** | **string** | Search | - **tag** | **[]string** | | - **tagN** | **[]string** | | - **updatedByRequest** | **string** | | - -### Return type - -[**PaginatedCircuitGroupAssignmentList**](PaginatedCircuitGroupAssignmentList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsPartialUpdate - -> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. - patchedWritableCircuitGroupAssignmentRequest := *openapiclient.NewPatchedWritableCircuitGroupAssignmentRequest() // PatchedWritableCircuitGroupAssignmentRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsPartialUpdate`: CircuitGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Circuit group assignment. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **patchedWritableCircuitGroupAssignmentRequest** | [**PatchedWritableCircuitGroupAssignmentRequest**](PatchedWritableCircuitGroupAssignmentRequest.md) | | - -### Return type - -[**CircuitGroupAssignment**](CircuitGroupAssignment.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsRetrieve - -> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsRetrieve`: CircuitGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Circuit group assignment. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**CircuitGroupAssignment**](CircuitGroupAssignment.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupAssignmentsUpdate - -> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsUpdate(ctx, id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. - writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupAssignmentsUpdate`: CircuitGroupAssignment - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this Circuit group assignment. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | - -### Return type - -[**CircuitGroupAssignment**](CircuitGroupAssignment.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsBulkDestroy - -> CircuitsCircuitGroupsBulkDestroy(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsBulkPartialUpdate - -> []CircuitGroup CircuitsCircuitGroupsBulkPartialUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsBulkPartialUpdate`: []CircuitGroup - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | - -### Return type - -[**[]CircuitGroup**](CircuitGroup.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsBulkUpdate - -> []CircuitGroup CircuitsCircuitGroupsBulkUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsBulkUpdate`: []CircuitGroup - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | - -### Return type - -[**[]CircuitGroup**](CircuitGroup.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsCreate - -> CircuitGroup CircuitsCircuitGroupsCreate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsCreate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsCreate`: CircuitGroup - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsCreate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsCreateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | - -### Return type - -[**CircuitGroup**](CircuitGroup.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsDestroy - -> CircuitsCircuitGroupsDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit group. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this circuit group. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsList - -> PaginatedCircuitGroupList CircuitsCircuitGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - tag := []string{"Inner_example"} // []string | (optional) - tagN := []string{"Inner_example"} // []string | (optional) - tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) - tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsList`: PaginatedCircuitGroupList - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | - **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | - **tag** | **[]string** | | - **tagN** | **[]string** | | - **tenant** | **[]string** | Tenant (slug) | - **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | - **tenantId** | **[]int32** | Tenant (ID) | - **tenantIdN** | **[]int32** | Tenant (ID) | - **updatedByRequest** | **string** | | - -### Return type - -[**PaginatedCircuitGroupList**](PaginatedCircuitGroupList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsPartialUpdate - -> CircuitGroup CircuitsCircuitGroupsPartialUpdate(ctx, id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit group. - patchedCircuitGroupRequest := *openapiclient.NewPatchedCircuitGroupRequest() // PatchedCircuitGroupRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsPartialUpdate`: CircuitGroup - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this circuit group. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **patchedCircuitGroupRequest** | [**PatchedCircuitGroupRequest**](PatchedCircuitGroupRequest.md) | | - -### Return type - -[**CircuitGroup**](CircuitGroup.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsRetrieve - -> CircuitGroup CircuitsCircuitGroupsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit group. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsRetrieve`: CircuitGroup - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this circuit group. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**CircuitGroup**](CircuitGroup.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CircuitsCircuitGroupsUpdate - -> CircuitGroup CircuitsCircuitGroupsUpdate(ctx, id).CircuitGroupRequest(circuitGroupRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this circuit group. - circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).CircuitGroupRequest(circuitGroupRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CircuitsCircuitGroupsUpdate`: CircuitGroup - fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this circuit group. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | - -### Return type - -[**CircuitGroup**](CircuitGroup.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - ## CircuitsCircuitTerminationsBulkDestroy > CircuitsCircuitTerminationsBulkDestroy(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -1549,7 +83,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1613,7 +147,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1679,7 +213,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1745,7 +279,7 @@ import ( ) func main() { - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2353,7 +887,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit termination. - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3181,7 +1715,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3245,7 +1779,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3311,7 +1845,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3377,7 +1911,7 @@ import ( ) func main() { - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3532,8 +2066,8 @@ func main() { commitRateN := []int32{int32(123)} // []int32 | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -3591,16 +2125,16 @@ func main() { providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -3609,10 +2143,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) @@ -3675,8 +2209,8 @@ Name | Type | Description | Notes **commitRateN** | **[]int32** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -3734,16 +2268,16 @@ Name | Type | Description | Notes **providerNetworkId** | **[]int32** | Provider network (ID) | **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -3752,10 +2286,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | Termination A (ID) | @@ -3957,7 +2491,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit. - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4028,7 +2562,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4092,7 +2626,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4158,7 +2692,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4224,7 +2758,7 @@ import ( ) func main() { - providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4700,7 +3234,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider account. - providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4771,7 +3305,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4835,7 +3369,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4901,7 +3435,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4967,7 +3501,7 @@ import ( ) func main() { - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5443,7 +3977,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider network. - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5851,8 +4385,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -5904,16 +4438,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (optional) siteIdN := []int32{int32(123)} // []int32 | Site (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -5960,8 +4494,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | ASN (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -6013,16 +4547,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site | **siteIdN** | **[]int32** | Site | **slug** | **[]string** | | diff --git a/docs/Cluster.md b/docs/Cluster.md index ccdfb4376..00443ca40 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -6,28 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Type** | [**BriefClusterType**](BriefClusterType.md) | | -**Group** | Pointer to [**NullableBriefClusterGroup**](BriefClusterGroup.md) | | [optional] -**Status** | Pointer to [**ClusterStatus**](ClusterStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewCluster -`func NewCluster(id int32, url string, displayUrl string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime, ) *Cluster` +`func NewCluster(id int32, url string, display string, name string, ) *Cluster` NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, @@ -82,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Cluster) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Cluster) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Cluster) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Cluster) GetDisplay() string` @@ -142,156 +110,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetType - -`func (o *Cluster) GetType() BriefClusterType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *Cluster) GetTypeOk() (*BriefClusterType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *Cluster) SetType(v BriefClusterType)` - -SetType sets Type field to given value. - - -### GetGroup - -`func (o *Cluster) GetGroup() BriefClusterGroup` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *Cluster) SetGroup(v BriefClusterGroup)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *Cluster) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *Cluster) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *Cluster) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil -### GetStatus - -`func (o *Cluster) GetStatus() ClusterStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Cluster) GetStatusOk() (*ClusterStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Cluster) SetStatus(v ClusterStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Cluster) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *Cluster) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Cluster) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Cluster) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Cluster) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Cluster) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Cluster) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetSite - -`func (o *Cluster) GetSite() BriefSite` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *Cluster) GetSiteOk() (*BriefSite, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *Cluster) SetSite(v BriefSite)` - -SetSite sets Site field to given value. - -### HasSite - -`func (o *Cluster) HasSite() bool` - -HasSite returns a boolean if a field has been set. - -### SetSiteNil - -`func (o *Cluster) SetSiteNil(b bool)` - - SetSiteNil sets the value for Site to be an explicit nil - -### UnsetSite -`func (o *Cluster) UnsetSite()` - -UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *Cluster) GetDescription() string` @@ -317,166 +135,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Cluster) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Cluster) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Cluster) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Cluster) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Cluster) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Cluster) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Cluster) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Cluster) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Cluster) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Cluster) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Cluster) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Cluster) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Cluster) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Cluster) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Cluster) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Cluster) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Cluster) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Cluster) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Cluster) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Cluster) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Cluster) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetDeviceCount - -`func (o *Cluster) GetDeviceCount() int64` - -GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. - -### GetDeviceCountOk - -`func (o *Cluster) GetDeviceCountOk() (*int64, bool)` - -GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceCount - -`func (o *Cluster) SetDeviceCount(v int64)` - -SetDeviceCount sets DeviceCount field to given value. - -### HasDeviceCount - -`func (o *Cluster) HasDeviceCount() bool` - -HasDeviceCount returns a boolean if a field has been set. - ### GetVirtualmachineCount `func (o *Cluster) GetVirtualmachineCount() int64` diff --git a/docs/ClusterGroup.md b/docs/ClusterGroup.md index 82b09af11..ce837f38c 100644 --- a/docs/ClusterGroup.md +++ b/docs/ClusterGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewClusterGroup -`func NewClusterGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` +`func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterGroup` NewClusterGroup instantiates a new ClusterGroup object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ClusterGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ClusterGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ClusterGroup) GetDisplay() string` diff --git a/docs/ClusterRequest.md b/docs/ClusterRequest.md index 15316566b..bfe754ce8 100644 --- a/docs/ClusterRequest.md +++ b/docs/ClusterRequest.md @@ -5,21 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | -**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewClusterRequest -`func NewClusterRequest(name string, type_ BriefClusterTypeRequest, ) *ClusterRequest` +`func NewClusterRequest(name string, ) *ClusterRequest` NewClusterRequest instantiates a new ClusterRequest object This constructor will assign default values to properties that have it defined, @@ -54,156 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetType - -`func (o *ClusterRequest) GetType() BriefClusterTypeRequest` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *ClusterRequest) SetType(v BriefClusterTypeRequest)` - -SetType sets Type field to given value. - - -### GetGroup - -`func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *ClusterRequest) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *ClusterRequest) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *ClusterRequest) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil -### GetStatus - -`func (o *ClusterRequest) GetStatus() ClusterStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ClusterRequest) SetStatus(v ClusterStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *ClusterRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *ClusterRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *ClusterRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *ClusterRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *ClusterRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *ClusterRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetSite - -`func (o *ClusterRequest) GetSite() BriefSiteRequest` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *ClusterRequest) SetSite(v BriefSiteRequest)` - -SetSite sets Site field to given value. - -### HasSite - -`func (o *ClusterRequest) HasSite() bool` - -HasSite returns a boolean if a field has been set. - -### SetSiteNil - -`func (o *ClusterRequest) SetSiteNil(b bool)` - - SetSiteNil sets the value for Site to be an explicit nil - -### UnsetSite -`func (o *ClusterRequest) UnsetSite()` - -UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *ClusterRequest) GetDescription() string` @@ -229,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ClusterRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ClusterRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ClusterRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ClusterRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ClusterRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ClusterRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ClusterRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ClusterRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ClusterRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ClusterRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ClusterRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ClusterRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/ClusterType.md b/docs/ClusterType.md index 500170424..c759403ed 100644 --- a/docs/ClusterType.md +++ b/docs/ClusterType.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewClusterType -`func NewClusterType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` +`func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64, ) *ClusterType` NewClusterType instantiates a new ClusterType object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ClusterType) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ClusterType) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ClusterType) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ClusterType) GetDisplay() string` diff --git a/docs/ConfigContext.md b/docs/ConfigContext.md index 03698c00a..3d27ad7ed 100644 --- a/docs/ConfigContext.md +++ b/docs/ConfigContext.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Weight** | Pointer to **int32** | | [optional] @@ -25,9 +24,9 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional] **Tenants** | Pointer to [**[]Tenant**](Tenant.md) | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] +**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] +**DataFile** | [**DataFile**](DataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Data** | **interface{}** | | **Created** | **NullableTime** | | [readonly] @@ -37,7 +36,7 @@ Name | Type | Description | Notes ### NewConfigContext -`func NewConfigContext(id int32, url string, displayUrl string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` +`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` NewConfigContext instantiates a new ConfigContext object This constructor will assign default values to properties that have it defined, @@ -92,26 +91,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ConfigContext) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ConfigContext) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ConfigContext) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ConfigContext) GetDisplay() string` @@ -554,20 +533,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContext) GetDataSource() BriefDataSource` +`func (o *ConfigContext) GetDataSource() DataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool)` +`func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContext) SetDataSource(v BriefDataSource)` +`func (o *ConfigContext) SetDataSource(v DataSource)` SetDataSource sets DataSource field to given value. @@ -599,20 +578,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ConfigContext) GetDataFile() BriefDataFile` +`func (o *ConfigContext) GetDataFile() DataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool)` +`func (o *ConfigContext) GetDataFileOk() (*DataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ConfigContext) SetDataFile(v BriefDataFile)` +`func (o *ConfigContext) SetDataFile(v DataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md index a42d2482a..298074ebf 100644 --- a/docs/ConfigContextRequest.md +++ b/docs/ConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] **Data** | **interface{}** | | ## Methods @@ -465,20 +465,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest` +`func (o *ConfigContextRequest) GetDataSource() DataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` +`func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` +`func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ConfigTemplate.md b/docs/ConfigTemplate.md index df229b291..e87b65990 100644 --- a/docs/ConfigTemplate.md +++ b/docs/ConfigTemplate.md @@ -6,25 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] -**TemplateCode** | **string** | Jinja2 template code. | -**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] -**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | Pointer to [**BriefDataFile**](BriefDataFile.md) | | [optional] -**DataSynced** | **NullableTime** | | [readonly] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewConfigTemplate -`func NewConfigTemplate(id int32, url string, displayUrl string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate` +`func NewConfigTemplate(id int32, url string, display string, name string, ) *ConfigTemplate` NewConfigTemplate instantiates a new ConfigTemplate object This constructor will assign default values to properties that have it defined, @@ -79,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ConfigTemplate) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ConfigTemplate) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ConfigTemplate) GetDisplay() string` @@ -164,246 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetEnvironmentParams - -`func (o *ConfigTemplate) GetEnvironmentParams() interface{}` - -GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. - -### GetEnvironmentParamsOk - -`func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool)` - -GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnvironmentParams - -`func (o *ConfigTemplate) SetEnvironmentParams(v interface{})` - -SetEnvironmentParams sets EnvironmentParams field to given value. - -### HasEnvironmentParams - -`func (o *ConfigTemplate) HasEnvironmentParams() bool` - -HasEnvironmentParams returns a boolean if a field has been set. - -### SetEnvironmentParamsNil - -`func (o *ConfigTemplate) SetEnvironmentParamsNil(b bool)` - - SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil - -### UnsetEnvironmentParams -`func (o *ConfigTemplate) UnsetEnvironmentParams()` - -UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil -### GetTemplateCode - -`func (o *ConfigTemplate) GetTemplateCode() string` - -GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. - -### GetTemplateCodeOk - -`func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool)` - -GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTemplateCode - -`func (o *ConfigTemplate) SetTemplateCode(v string)` - -SetTemplateCode sets TemplateCode field to given value. - - -### GetDataSource - -`func (o *ConfigTemplate) GetDataSource() BriefDataSource` - -GetDataSource returns the DataSource field if non-nil, zero value otherwise. - -### GetDataSourceOk - -`func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool)` - -GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDataSource - -`func (o *ConfigTemplate) SetDataSource(v BriefDataSource)` - -SetDataSource sets DataSource field to given value. - -### HasDataSource - -`func (o *ConfigTemplate) HasDataSource() bool` - -HasDataSource returns a boolean if a field has been set. - -### GetDataPath - -`func (o *ConfigTemplate) GetDataPath() string` - -GetDataPath returns the DataPath field if non-nil, zero value otherwise. - -### GetDataPathOk - -`func (o *ConfigTemplate) GetDataPathOk() (*string, bool)` - -GetDataPathOk returns a tuple with the DataPath field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDataPath - -`func (o *ConfigTemplate) SetDataPath(v string)` - -SetDataPath sets DataPath field to given value. - - -### GetDataFile - -`func (o *ConfigTemplate) GetDataFile() BriefDataFile` - -GetDataFile returns the DataFile field if non-nil, zero value otherwise. - -### GetDataFileOk - -`func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool)` - -GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDataFile - -`func (o *ConfigTemplate) SetDataFile(v BriefDataFile)` - -SetDataFile sets DataFile field to given value. - -### HasDataFile - -`func (o *ConfigTemplate) HasDataFile() bool` - -HasDataFile returns a boolean if a field has been set. - -### GetDataSynced - -`func (o *ConfigTemplate) GetDataSynced() time.Time` - -GetDataSynced returns the DataSynced field if non-nil, zero value otherwise. - -### GetDataSyncedOk - -`func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool)` - -GetDataSyncedOk returns a tuple with the DataSynced field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDataSynced - -`func (o *ConfigTemplate) SetDataSynced(v time.Time)` - -SetDataSynced sets DataSynced field to given value. - - -### SetDataSyncedNil - -`func (o *ConfigTemplate) SetDataSyncedNil(b bool)` - - SetDataSyncedNil sets the value for DataSynced to be an explicit nil - -### UnsetDataSynced -`func (o *ConfigTemplate) UnsetDataSynced()` - -UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil -### GetTags - -`func (o *ConfigTemplate) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ConfigTemplate) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ConfigTemplate) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ConfigTemplate) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCreated - -`func (o *ConfigTemplate) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *ConfigTemplate) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *ConfigTemplate) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *ConfigTemplate) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *ConfigTemplate) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *ConfigTemplate) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *ConfigTemplate) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *ConfigTemplate) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ConfigTemplateRequest.md b/docs/ConfigTemplateRequest.md index 6865ade79..2c1540c0d 100644 --- a/docs/ConfigTemplateRequest.md +++ b/docs/ConfigTemplateRequest.md @@ -6,16 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] -**TemplateCode** | **string** | Jinja2 template code. | -**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods ### NewConfigTemplateRequest -`func NewConfigTemplateRequest(name string, templateCode string, ) *ConfigTemplateRequest` +`func NewConfigTemplateRequest(name string, ) *ConfigTemplateRequest` NewConfigTemplateRequest instantiates a new ConfigTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -75,111 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetEnvironmentParams - -`func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{}` - -GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. - -### GetEnvironmentParamsOk - -`func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool)` - -GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnvironmentParams - -`func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{})` - -SetEnvironmentParams sets EnvironmentParams field to given value. - -### HasEnvironmentParams - -`func (o *ConfigTemplateRequest) HasEnvironmentParams() bool` - -HasEnvironmentParams returns a boolean if a field has been set. - -### SetEnvironmentParamsNil - -`func (o *ConfigTemplateRequest) SetEnvironmentParamsNil(b bool)` - - SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil - -### UnsetEnvironmentParams -`func (o *ConfigTemplateRequest) UnsetEnvironmentParams()` - -UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil -### GetTemplateCode - -`func (o *ConfigTemplateRequest) GetTemplateCode() string` - -GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. - -### GetTemplateCodeOk - -`func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool)` - -GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTemplateCode - -`func (o *ConfigTemplateRequest) SetTemplateCode(v string)` - -SetTemplateCode sets TemplateCode field to given value. - - -### GetDataSource - -`func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` - -GetDataSource returns the DataSource field if non-nil, zero value otherwise. - -### GetDataSourceOk - -`func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` - -GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDataSource - -`func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` - -SetDataSource sets DataSource field to given value. - -### HasDataSource - -`func (o *ConfigTemplateRequest) HasDataSource() bool` - -HasDataSource returns a boolean if a field has been set. - -### GetTags - -`func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ConfigTemplateRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ConfigTemplateRequest) HasTags() bool` - -HasTags 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/docs/ConsolePort.md b/docs/ConsolePort.md index 10e6b5bdd..165ccf778 100644 --- a/docs/ConsolePort.md +++ b/docs/ConsolePort.md @@ -6,22 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,7 +32,7 @@ Name | Type | Description | Notes ### NewConsolePort -`func NewConsolePort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` +`func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` NewConsolePort instantiates a new ConsolePort object This constructor will assign default values to properties that have it defined, @@ -88,26 +87,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ConsolePort) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ConsolePort) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ConsolePort) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ConsolePort) GetDisplay() string` @@ -130,40 +109,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsolePort) GetDevice() BriefDevice` +`func (o *ConsolePort) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool)` +`func (o *ConsolePort) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePort) SetDevice(v BriefDevice)` +`func (o *ConsolePort) SetDevice(v Device)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePort) GetModule() BriefModule` +`func (o *ConsolePort) GetModule() Module` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePort) GetModuleOk() (*BriefModule, bool)` +`func (o *ConsolePort) GetModuleOk() (*Module, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePort) SetModule(v BriefModule)` +`func (o *ConsolePort) SetModule(v Module)` SetModule sets Module field to given value. @@ -340,20 +319,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsolePort) GetCable() BriefCable` +`func (o *ConsolePort) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsolePort) GetCableOk() (*BriefCable, bool)` +`func (o *ConsolePort) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsolePort) SetCable(v BriefCable)` +`func (o *ConsolePort) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -428,16 +407,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *ConsolePort) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *ConsolePort) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsolePort) GetConnectedEndpoints() []interface{}` @@ -458,16 +427,6 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. -### SetConnectedEndpointsNil - -`func (o *ConsolePort) SetConnectedEndpointsNil(b bool)` - - SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil - -### UnsetConnectedEndpoints -`func (o *ConsolePort) UnsetConnectedEndpoints()` - -UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsolePort) GetConnectedEndpointsType() string` @@ -488,16 +447,6 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. -### SetConnectedEndpointsTypeNil - -`func (o *ConsolePort) SetConnectedEndpointsTypeNil(b bool)` - - SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil - -### UnsetConnectedEndpointsType -`func (o *ConsolePort) UnsetConnectedEndpointsType()` - -UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsolePort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md index 4fdb86bae..3c9fe8176 100644 --- a/docs/ConsolePortRequest.md +++ b/docs/ConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsolePortRequest -`func NewConsolePortRequest(device BriefDeviceRequest, name string, ) *ConsolePortRequest` +`func NewConsolePortRequest(device DeviceRequest, name string, ) *ConsolePortRequest` NewConsolePortRequest instantiates a new ConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest` +`func (o *ConsolePortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *ConsolePortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePortRequest) GetModule() BriefModuleRequest` +`func (o *ConsolePortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePortRequest) SetModule(v BriefModuleRequest)` +`func (o *ConsolePortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md index 00f005d5e..d37560677 100644 --- a/docs/ConsolePortTemplate.md +++ b/docs/ConsolePortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType` +`func (o *ConsolePortTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *ConsolePortTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplate) GetModuleType() BriefModuleType` +`func (o *ConsolePortTemplate) GetModuleType() ModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` +`func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType)` +`func (o *ConsolePortTemplate) SetModuleType(v ModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md index 33af6cae0..bdd1627ea 100644 --- a/docs/ConsolePortTemplateRequest.md +++ b/docs/ConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPort.md b/docs/ConsoleServerPort.md index 9df3c48d7..7686dfe90 100644 --- a/docs/ConsoleServerPort.md +++ b/docs/ConsoleServerPort.md @@ -6,22 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,7 +32,7 @@ Name | Type | Description | Notes ### NewConsoleServerPort -`func NewConsoleServerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` +`func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` NewConsoleServerPort instantiates a new ConsoleServerPort object This constructor will assign default values to properties that have it defined, @@ -88,26 +87,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ConsoleServerPort) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ConsoleServerPort) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ConsoleServerPort) GetDisplay() string` @@ -130,40 +109,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsoleServerPort) GetDevice() BriefDevice` +`func (o *ConsoleServerPort) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool)` +`func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPort) SetDevice(v BriefDevice)` +`func (o *ConsoleServerPort) SetDevice(v Device)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPort) GetModule() BriefModule` +`func (o *ConsoleServerPort) GetModule() Module` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool)` +`func (o *ConsoleServerPort) GetModuleOk() (*Module, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPort) SetModule(v BriefModule)` +`func (o *ConsoleServerPort) SetModule(v Module)` SetModule sets Module field to given value. @@ -340,20 +319,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsoleServerPort) GetCable() BriefCable` +`func (o *ConsoleServerPort) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool)` +`func (o *ConsoleServerPort) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsoleServerPort) SetCable(v BriefCable)` +`func (o *ConsoleServerPort) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -428,16 +407,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *ConsoleServerPort) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *ConsoleServerPort) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{}` @@ -458,16 +427,6 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. -### SetConnectedEndpointsNil - -`func (o *ConsoleServerPort) SetConnectedEndpointsNil(b bool)` - - SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil - -### UnsetConnectedEndpoints -`func (o *ConsoleServerPort) UnsetConnectedEndpoints()` - -UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsoleServerPort) GetConnectedEndpointsType() string` @@ -488,16 +447,6 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. -### SetConnectedEndpointsTypeNil - -`func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil(b bool)` - - SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil - -### UnsetConnectedEndpointsType -`func (o *ConsoleServerPort) UnsetConnectedEndpointsType()` - -UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsoleServerPort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md index 3e59314af..995610c63 100644 --- a/docs/ConsoleServerPortRequest.md +++ b/docs/ConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsoleServerPortRequest -`func NewConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *ConsoleServerPortRequest` +`func NewConsoleServerPortRequest(device DeviceRequest, name string, ) *ConsoleServerPortRequest` NewConsoleServerPortRequest instantiates a new ConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest` +`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest` +`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest)` +`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md index 33411a949..dfc96440f 100644 --- a/docs/ConsoleServerPortTemplate.md +++ b/docs/ConsoleServerPortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType` +`func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType` +`func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` +`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType)` +`func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md index 2fe0e692e..6c677fcc5 100644 --- a/docs/ConsoleServerPortTemplateRequest.md +++ b/docs/ConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/Contact.md b/docs/Contact.md index 595ac8f33..d3701de38 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -6,27 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Group** | Pointer to [**NullableBriefContactGroup**](BriefContactGroup.md) | | [optional] **Name** | **string** | | -**Title** | Pointer to **string** | | [optional] -**Phone** | Pointer to **string** | | [optional] -**Email** | Pointer to **string** | | [optional] -**Address** | Pointer to **string** | | [optional] -**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContact -`func NewContact(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *Contact` +`func NewContact(id int32, url string, display string, name string, ) *Contact` NewContact instantiates a new Contact object This constructor will assign default values to properties that have it defined, @@ -81,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Contact) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Contact) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Contact) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Contact) GetDisplay() string` @@ -121,41 +89,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetGroup - -`func (o *Contact) GetGroup() BriefContactGroup` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *Contact) GetGroupOk() (*BriefContactGroup, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *Contact) SetGroup(v BriefContactGroup)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *Contact) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *Contact) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *Contact) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *Contact) GetName() string` @@ -176,131 +109,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTitle - -`func (o *Contact) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *Contact) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *Contact) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *Contact) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetPhone - -`func (o *Contact) GetPhone() string` - -GetPhone returns the Phone field if non-nil, zero value otherwise. - -### GetPhoneOk - -`func (o *Contact) GetPhoneOk() (*string, bool)` - -GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPhone - -`func (o *Contact) SetPhone(v string)` - -SetPhone sets Phone field to given value. - -### HasPhone - -`func (o *Contact) HasPhone() bool` - -HasPhone returns a boolean if a field has been set. - -### GetEmail - -`func (o *Contact) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *Contact) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *Contact) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *Contact) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetAddress - -`func (o *Contact) GetAddress() string` - -GetAddress returns the Address field if non-nil, zero value otherwise. - -### GetAddressOk - -`func (o *Contact) GetAddressOk() (*string, bool)` - -GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAddress - -`func (o *Contact) SetAddress(v string)` - -SetAddress sets Address field to given value. - -### HasAddress - -`func (o *Contact) HasAddress() bool` - -HasAddress returns a boolean if a field has been set. - -### GetLink - -`func (o *Contact) GetLink() string` - -GetLink returns the Link field if non-nil, zero value otherwise. - -### GetLinkOk - -`func (o *Contact) GetLinkOk() (*string, bool)` - -GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLink - -`func (o *Contact) SetLink(v string)` - -SetLink sets Link field to given value. - -### HasLink - -`func (o *Contact) HasLink() bool` - -HasLink returns a boolean if a field has been set. - ### GetDescription `func (o *Contact) GetDescription() string` @@ -326,141 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Contact) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Contact) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Contact) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Contact) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Contact) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Contact) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Contact) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Contact) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Contact) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Contact) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Contact) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Contact) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Contact) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Contact) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Contact) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Contact) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Contact) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Contact) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Contact) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Contact) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Contact) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Contact) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ContactAssignment.md b/docs/ContactAssignment.md index 637e6bf0e..26a003bab 100644 --- a/docs/ContactAssignment.md +++ b/docs/ContactAssignment.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **map[string]interface{}** | | [readonly] -**Contact** | [**BriefContact**](BriefContact.md) | | -**Role** | Pointer to [**NullableBriefContactRole**](BriefContactRole.md) | | [optional] -**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] +**Contact** | [**Contact**](Contact.md) | | +**Role** | Pointer to [**NullableContactRole**](ContactRole.md) | | [optional] +**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +22,7 @@ Name | Type | Description | Notes ### NewContactAssignment -`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` +`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` NewContactAssignment instantiates a new ContactAssignment object This constructor will assign default values to properties that have it defined, @@ -159,40 +159,40 @@ SetObject sets Object field to given value. ### GetContact -`func (o *ContactAssignment) GetContact() BriefContact` +`func (o *ContactAssignment) GetContact() Contact` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignment) GetContactOk() (*BriefContact, bool)` +`func (o *ContactAssignment) GetContactOk() (*Contact, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignment) SetContact(v BriefContact)` +`func (o *ContactAssignment) SetContact(v Contact)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignment) GetRole() BriefContactRole` +`func (o *ContactAssignment) GetRole() ContactRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool)` +`func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignment) SetRole(v BriefContactRole)` +`func (o *ContactAssignment) SetRole(v ContactRole)` SetRole sets Role field to given value. @@ -214,20 +214,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` +`func (o *ContactAssignment) GetPriority() ContactAssignmentPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` +`func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` +`func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority)` SetPriority sets Priority field to given value. diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md index 5ca6e4a62..de146e2f6 100644 --- a/docs/ContactAssignmentRequest.md +++ b/docs/ContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | -**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Contact** | [**ContactRequest**](ContactRequest.md) | | +**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewContactAssignmentRequest -`func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *ContactAssignmentRequest` +`func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *ContactAssignmentRequest` NewContactAssignmentRequest instantiates a new ContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *ContactAssignmentRequest) GetContact() BriefContactRequest` +`func (o *ContactAssignmentRequest) GetContact() ContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` +`func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest)` +`func (o *ContactAssignmentRequest) SetContact(v ContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest` +`func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` +`func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` +`func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` +`func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` +`func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` +`func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/ContactGroup.md b/docs/ContactGroup.md index 972485655..42b960ec3 100644 --- a/docs/ContactGroup.md +++ b/docs/ContactGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewContactGroup -`func NewContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` +`func NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32, ) *ContactGroup` NewContactGroup instantiates a new ContactGroup object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ContactGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ContactGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ContactGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ContactGroup) GetDisplay() string` diff --git a/docs/ContactRequest.md b/docs/ContactRequest.md index 13eead0d4..050fa6fb1 100644 --- a/docs/ContactRequest.md +++ b/docs/ContactRequest.md @@ -4,17 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | **string** | | -**Title** | Pointer to **string** | | [optional] -**Phone** | Pointer to **string** | | [optional] -**Email** | Pointer to **string** | | [optional] -**Address** | Pointer to **string** | | [optional] -**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -35,41 +26,6 @@ NewContactRequestWithDefaults instantiates a new ContactRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetGroup - -`func (o *ContactRequest) GetGroup() BriefContactGroupRequest` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *ContactRequest) SetGroup(v BriefContactGroupRequest)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *ContactRequest) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *ContactRequest) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *ContactRequest) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *ContactRequest) GetName() string` @@ -90,131 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTitle - -`func (o *ContactRequest) GetTitle() string` - -GetTitle returns the Title field if non-nil, zero value otherwise. - -### GetTitleOk - -`func (o *ContactRequest) GetTitleOk() (*string, bool)` - -GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTitle - -`func (o *ContactRequest) SetTitle(v string)` - -SetTitle sets Title field to given value. - -### HasTitle - -`func (o *ContactRequest) HasTitle() bool` - -HasTitle returns a boolean if a field has been set. - -### GetPhone - -`func (o *ContactRequest) GetPhone() string` - -GetPhone returns the Phone field if non-nil, zero value otherwise. - -### GetPhoneOk - -`func (o *ContactRequest) GetPhoneOk() (*string, bool)` - -GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPhone - -`func (o *ContactRequest) SetPhone(v string)` - -SetPhone sets Phone field to given value. - -### HasPhone - -`func (o *ContactRequest) HasPhone() bool` - -HasPhone returns a boolean if a field has been set. - -### GetEmail - -`func (o *ContactRequest) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *ContactRequest) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *ContactRequest) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *ContactRequest) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetAddress - -`func (o *ContactRequest) GetAddress() string` - -GetAddress returns the Address field if non-nil, zero value otherwise. - -### GetAddressOk - -`func (o *ContactRequest) GetAddressOk() (*string, bool)` - -GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAddress - -`func (o *ContactRequest) SetAddress(v string)` - -SetAddress sets Address field to given value. - -### HasAddress - -`func (o *ContactRequest) HasAddress() bool` - -HasAddress returns a boolean if a field has been set. - -### GetLink - -`func (o *ContactRequest) GetLink() string` - -GetLink returns the Link field if non-nil, zero value otherwise. - -### GetLinkOk - -`func (o *ContactRequest) GetLinkOk() (*string, bool)` - -GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLink - -`func (o *ContactRequest) SetLink(v string)` - -SetLink sets Link field to given value. - -### HasLink - -`func (o *ContactRequest) HasLink() bool` - -HasLink returns a boolean if a field has been set. - ### GetDescription `func (o *ContactRequest) GetDescription() string` @@ -240,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ContactRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ContactRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ContactRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ContactRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ContactRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ContactRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ContactRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ContactRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ContactRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ContactRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ContactRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ContactRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/ContactRole.md b/docs/ContactRole.md index ea561e527..66937cee4 100644 --- a/docs/ContactRole.md +++ b/docs/ContactRole.md @@ -6,21 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContactRole -`func NewContactRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *ContactRole` +`func NewContactRole(id int32, url string, display string, name string, slug string, ) *ContactRole` NewContactRole instantiates a new ContactRole object This constructor will assign default values to properties that have it defined, @@ -75,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ContactRole) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ContactRole) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ContactRole) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ContactRole) GetDisplay() string` @@ -180,116 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *ContactRole) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ContactRole) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ContactRole) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ContactRole) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ContactRole) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ContactRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ContactRole) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ContactRole) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *ContactRole) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *ContactRole) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *ContactRole) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *ContactRole) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *ContactRole) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *ContactRole) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *ContactRole) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *ContactRole) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *ContactRole) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ContactRoleRequest.md b/docs/ContactRoleRequest.md index dce32edee..615000a63 100644 --- a/docs/ContactRoleRequest.md +++ b/docs/ContactRoleRequest.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -94,56 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *ContactRoleRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ContactRoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ContactRoleRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ContactRoleRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ContactRoleRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ContactRoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ContactRoleRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/CoreAPI.md b/docs/CoreAPI.md index 639537d8f..18791cb42 100644 --- a/docs/CoreAPI.md +++ b/docs/CoreAPI.md @@ -18,8 +18,6 @@ Method | HTTP request | Description [**CoreDataSourcesUpdate**](CoreAPI.md#CoreDataSourcesUpdate) | **Put** /api/core/data-sources/{id}/ | [**CoreJobsList**](CoreAPI.md#CoreJobsList) | **Get** /api/core/jobs/ | [**CoreJobsRetrieve**](CoreAPI.md#CoreJobsRetrieve) | **Get** /api/core/jobs/{id}/ | -[**CoreObjectChangesList**](CoreAPI.md#CoreObjectChangesList) | **Get** /api/core/object-changes/ | -[**CoreObjectChangesRetrieve**](CoreAPI.md#CoreObjectChangesRetrieve) | **Get** /api/core/object-changes/{id}/ | @@ -301,7 +299,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -365,7 +363,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -431,7 +429,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1355,262 +1353,3 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) - -## CoreObjectChangesList - -> PaginatedObjectChangeList CoreObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - action := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - actionN := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - changedObjectId := []int32{int32(123)} // []int32 | (optional) - changedObjectIdEmpty := true // bool | (optional) - changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdN := []int32{int32(123)} // []int32 | (optional) - changedObjectType := "changedObjectType_example" // string | (optional) - changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) - changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) - changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - objectRepr := []string{"Inner_example"} // []string | (optional) - objectReprEmpty := true // bool | (optional) - objectReprIc := []string{"Inner_example"} // []string | (optional) - objectReprIe := []string{"Inner_example"} // []string | (optional) - objectReprIew := []string{"Inner_example"} // []string | (optional) - objectReprIsw := []string{"Inner_example"} // []string | (optional) - objectReprN := []string{"Inner_example"} // []string | (optional) - objectReprNic := []string{"Inner_example"} // []string | (optional) - objectReprNie := []string{"Inner_example"} // []string | (optional) - objectReprNiew := []string{"Inner_example"} // []string | (optional) - objectReprNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - relatedObjectId := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdEmpty := true // bool | (optional) - relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) - relatedObjectType := int32(56) // int32 | (optional) - relatedObjectTypeN := int32(56) // int32 | (optional) - requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - timeAfter := time.Now() // time.Time | (optional) - timeBefore := time.Now() // time.Time | (optional) - user := []string{"Inner_example"} // []string | User name (optional) - userN := []string{"Inner_example"} // []string | User name (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userName := []string{"Inner_example"} // []string | (optional) - userNameEmpty := true // bool | (optional) - userNameIc := []string{"Inner_example"} // []string | (optional) - userNameIe := []string{"Inner_example"} // []string | (optional) - userNameIew := []string{"Inner_example"} // []string | (optional) - userNameIsw := []string{"Inner_example"} // []string | (optional) - userNameN := []string{"Inner_example"} // []string | (optional) - userNameNic := []string{"Inner_example"} // []string | (optional) - userNameNie := []string{"Inner_example"} // []string | (optional) - userNameNiew := []string{"Inner_example"} // []string | (optional) - userNameNisw := []string{"Inner_example"} // []string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CoreObjectChangesList`: PaginatedObjectChangeList - fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiCoreObjectChangesListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **action** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **actionN** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **changedObjectId** | **[]int32** | | - **changedObjectIdEmpty** | **bool** | | - **changedObjectIdGt** | **[]int32** | | - **changedObjectIdGte** | **[]int32** | | - **changedObjectIdLt** | **[]int32** | | - **changedObjectIdLte** | **[]int32** | | - **changedObjectIdN** | **[]int32** | | - **changedObjectType** | **string** | | - **changedObjectTypeN** | **string** | | - **changedObjectTypeId** | **[]int32** | | - **changedObjectTypeIdN** | **[]int32** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **limit** | **int32** | Number of results to return per page. | - **objectRepr** | **[]string** | | - **objectReprEmpty** | **bool** | | - **objectReprIc** | **[]string** | | - **objectReprIe** | **[]string** | | - **objectReprIew** | **[]string** | | - **objectReprIsw** | **[]string** | | - **objectReprN** | **[]string** | | - **objectReprNic** | **[]string** | | - **objectReprNie** | **[]string** | | - **objectReprNiew** | **[]string** | | - **objectReprNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **relatedObjectId** | **[]int32** | | - **relatedObjectIdEmpty** | **bool** | | - **relatedObjectIdGt** | **[]int32** | | - **relatedObjectIdGte** | **[]int32** | | - **relatedObjectIdLt** | **[]int32** | | - **relatedObjectIdLte** | **[]int32** | | - **relatedObjectIdN** | **[]int32** | | - **relatedObjectType** | **int32** | | - **relatedObjectTypeN** | **int32** | | - **requestId** | **string** | | - **timeAfter** | **time.Time** | | - **timeBefore** | **time.Time** | | - **user** | **[]string** | User name | - **userN** | **[]string** | User name | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **userName** | **[]string** | | - **userNameEmpty** | **bool** | | - **userNameIc** | **[]string** | | - **userNameIe** | **[]string** | | - **userNameIew** | **[]string** | | - **userNameIsw** | **[]string** | | - **userNameN** | **[]string** | | - **userNameNic** | **[]string** | | - **userNameNie** | **[]string** | | - **userNameNiew** | **[]string** | | - **userNameNisw** | **[]string** | | - -### Return type - -[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## CoreObjectChangesRetrieve - -> ObjectChange CoreObjectChangesRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this object change. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `CoreObjectChangesRetrieve`: ObjectChange - fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object change. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiCoreObjectChangesRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**ObjectChange**](ObjectChange.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - diff --git a/docs/CustomField.md b/docs/CustomField.md index cb2086732..58a8f8771 100644 --- a/docs/CustomField.md +++ b/docs/CustomField.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Type** | [**CustomFieldType**](CustomFieldType.md) | | @@ -16,20 +15,18 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] -**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] +**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogic**](CustomFieldFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisible**](CustomFieldUiVisible.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditable**](CustomFieldUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] -**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSet**](BriefCustomFieldChoiceSet.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -38,7 +35,7 @@ Name | Type | Description | Notes ### NewCustomField -`func NewCustomField(id int32, url string, displayUrl string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` +`func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime, ) *CustomField` NewCustomField instantiates a new CustomField object This constructor will assign default values to properties that have it defined, @@ -93,26 +90,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *CustomField) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *CustomField) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *CustomField) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *CustomField) GetDisplay() string` @@ -348,31 +325,6 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. -### GetUnique - -`func (o *CustomField) GetUnique() bool` - -GetUnique returns the Unique field if non-nil, zero value otherwise. - -### GetUniqueOk - -`func (o *CustomField) GetUniqueOk() (*bool, bool)` - -GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUnique - -`func (o *CustomField) SetUnique(v bool)` - -SetUnique sets Unique field to given value. - -### HasUnique - -`func (o *CustomField) HasUnique() bool` - -HasUnique returns a boolean if a field has been set. - ### GetSearchWeight `func (o *CustomField) GetSearchWeight() int32` @@ -533,41 +485,6 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomField) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil -### GetRelatedObjectFilter - -`func (o *CustomField) GetRelatedObjectFilter() interface{}` - -GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. - -### GetRelatedObjectFilterOk - -`func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool)` - -GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelatedObjectFilter - -`func (o *CustomField) SetRelatedObjectFilter(v interface{})` - -SetRelatedObjectFilter sets RelatedObjectFilter field to given value. - -### HasRelatedObjectFilter - -`func (o *CustomField) HasRelatedObjectFilter() bool` - -HasRelatedObjectFilter returns a boolean if a field has been set. - -### SetRelatedObjectFilterNil - -`func (o *CustomField) SetRelatedObjectFilterNil(b bool)` - - SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil - -### UnsetRelatedObjectFilter -`func (o *CustomField) UnsetRelatedObjectFilter()` - -UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomField) GetWeight() int32` @@ -690,20 +607,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet` +`func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool)` +`func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet)` +`func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md index 92db3f28f..ebc8229ca 100644 --- a/docs/CustomFieldChoiceSet.md +++ b/docs/CustomFieldChoiceSet.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewCustomFieldChoiceSet -`func NewCustomFieldChoiceSet(id int32, url string, displayUrl string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` +`func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime, ) *CustomFieldChoiceSet` NewCustomFieldChoiceSet instantiates a new CustomFieldChoiceSet object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *CustomFieldChoiceSet) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *CustomFieldChoiceSet) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *CustomFieldChoiceSet) GetDisplay() string` diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md index e9b2185ec..ab9dfbfd1 100644 --- a/docs/CustomFieldRequest.md +++ b/docs/CustomFieldRequest.md @@ -11,20 +11,18 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] -**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] +**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] -**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -241,31 +239,6 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. -### GetUnique - -`func (o *CustomFieldRequest) GetUnique() bool` - -GetUnique returns the Unique field if non-nil, zero value otherwise. - -### GetUniqueOk - -`func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool)` - -GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUnique - -`func (o *CustomFieldRequest) SetUnique(v bool)` - -SetUnique sets Unique field to given value. - -### HasUnique - -`func (o *CustomFieldRequest) HasUnique() bool` - -HasUnique returns a boolean if a field has been set. - ### GetSearchWeight `func (o *CustomFieldRequest) GetSearchWeight() int32` @@ -426,41 +399,6 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil -### GetRelatedObjectFilter - -`func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{}` - -GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. - -### GetRelatedObjectFilterOk - -`func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` - -GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelatedObjectFilter - -`func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{})` - -SetRelatedObjectFilter sets RelatedObjectFilter field to given value. - -### HasRelatedObjectFilter - -`func (o *CustomFieldRequest) HasRelatedObjectFilter() bool` - -HasRelatedObjectFilter returns a boolean if a field has been set. - -### SetRelatedObjectFilterNil - -`func (o *CustomFieldRequest) SetRelatedObjectFilterNil(b bool)` - - SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil - -### UnsetRelatedObjectFilter -`func (o *CustomFieldRequest) UnsetRelatedObjectFilter()` - -UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomFieldRequest) GetWeight() int32` @@ -583,20 +521,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` +`func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` +`func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` +`func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomLink.md b/docs/CustomLink.md index 95496579d..c2b8e12ea 100644 --- a/docs/CustomLink.md +++ b/docs/CustomLink.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -24,7 +23,7 @@ Name | Type | Description | Notes ### NewCustomLink -`func NewCustomLink(id int32, url string, displayUrl string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` +`func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime, ) *CustomLink` NewCustomLink instantiates a new CustomLink object This constructor will assign default values to properties that have it defined, @@ -79,26 +78,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *CustomLink) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *CustomLink) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *CustomLink) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *CustomLink) GetDisplay() string` diff --git a/docs/CustomLinkButtonClass.md b/docs/CustomLinkButtonClass.md index bf68c5956..f62db6217 100644 --- a/docs/CustomLinkButtonClass.md +++ b/docs/CustomLinkButtonClass.md @@ -3,7 +3,7 @@ ## Enum -* `DEFAULT` (value: `"default"`) +* `OUTLINE_DARK` (value: `"outline-dark"`) * `BLUE` (value: `"blue"`) diff --git a/docs/DataFile.md b/docs/DataFile.md index 031354927..a332d29cb 100644 --- a/docs/DataFile.md +++ b/docs/DataFile.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Source** | [**BriefDataSource**](BriefDataSource.md) | | [readonly] +**Source** | [**DataSource**](DataSource.md) | | [readonly] **Path** | **string** | File path relative to the data source's root | [readonly] **LastUpdated** | **time.Time** | | [readonly] **Size** | **int32** | | [readonly] @@ -18,7 +17,7 @@ Name | Type | Description | Notes ### NewDataFile -`func NewDataFile(id int32, url string, displayUrl string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` +`func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` NewDataFile instantiates a new DataFile object This constructor will assign default values to properties that have it defined, @@ -73,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *DataFile) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *DataFile) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *DataFile) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *DataFile) GetDisplay() string` @@ -115,20 +94,20 @@ SetDisplay sets Display field to given value. ### GetSource -`func (o *DataFile) GetSource() BriefDataSource` +`func (o *DataFile) GetSource() DataSource` GetSource returns the Source field if non-nil, zero value otherwise. ### GetSourceOk -`func (o *DataFile) GetSourceOk() (*BriefDataSource, bool)` +`func (o *DataFile) GetSourceOk() (*DataSource, bool)` GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSource -`func (o *DataFile) SetSource(v BriefDataSource)` +`func (o *DataFile) SetSource(v DataSource)` SetSource sets Source field to given value. diff --git a/docs/DataSource.md b/docs/DataSource.md index 0d294c8ca..0768fd476 100644 --- a/docs/DataSource.md +++ b/docs/DataSource.md @@ -6,28 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Type** | [**DataSourceType**](DataSourceType.md) | | -**SourceUrl** | **string** | | -**Enabled** | Pointer to **bool** | | [optional] -**Status** | [**DataSourceStatus**](DataSourceStatus.md) | | **Description** | Pointer to **string** | | [optional] -**Parameters** | Pointer to **interface{}** | | [optional] -**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] -**Comments** | Pointer to **string** | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**LastSynced** | **NullableTime** | | [readonly] -**FileCount** | **int64** | | [readonly] ## Methods ### NewDataSource -`func NewDataSource(id int32, url string, displayUrl string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64, ) *DataSource` +`func NewDataSource(id int32, url string, display string, name string, ) *DataSource` NewDataSource instantiates a new DataSource object This constructor will assign default values to properties that have it defined, @@ -82,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *DataSource) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *DataSource) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *DataSource) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *DataSource) GetDisplay() string` @@ -142,91 +109,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetType - -`func (o *DataSource) GetType() DataSourceType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *DataSource) GetTypeOk() (*DataSourceType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *DataSource) SetType(v DataSourceType)` - -SetType sets Type field to given value. - - -### GetSourceUrl - -`func (o *DataSource) GetSourceUrl() string` - -GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. - -### GetSourceUrlOk - -`func (o *DataSource) GetSourceUrlOk() (*string, bool)` - -GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSourceUrl - -`func (o *DataSource) SetSourceUrl(v string)` - -SetSourceUrl sets SourceUrl field to given value. - - -### GetEnabled - -`func (o *DataSource) GetEnabled() bool` - -GetEnabled returns the Enabled field if non-nil, zero value otherwise. - -### GetEnabledOk - -`func (o *DataSource) GetEnabledOk() (*bool, bool)` - -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnabled - -`func (o *DataSource) SetEnabled(v bool)` - -SetEnabled sets Enabled field to given value. - -### HasEnabled - -`func (o *DataSource) HasEnabled() bool` - -HasEnabled returns a boolean if a field has been set. - -### GetStatus - -`func (o *DataSource) GetStatus() DataSourceStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *DataSource) SetStatus(v DataSourceStatus)` - -SetStatus sets Status field to given value. - - ### GetDescription `func (o *DataSource) GetDescription() string` @@ -252,226 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetParameters - -`func (o *DataSource) GetParameters() interface{}` - -GetParameters returns the Parameters field if non-nil, zero value otherwise. - -### GetParametersOk - -`func (o *DataSource) GetParametersOk() (*interface{}, bool)` - -GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParameters - -`func (o *DataSource) SetParameters(v interface{})` - -SetParameters sets Parameters field to given value. - -### HasParameters - -`func (o *DataSource) HasParameters() bool` - -HasParameters returns a boolean if a field has been set. - -### SetParametersNil - -`func (o *DataSource) SetParametersNil(b bool)` - - SetParametersNil sets the value for Parameters to be an explicit nil - -### UnsetParameters -`func (o *DataSource) UnsetParameters()` - -UnsetParameters ensures that no value is present for Parameters, not even an explicit nil -### GetIgnoreRules - -`func (o *DataSource) GetIgnoreRules() string` - -GetIgnoreRules returns the IgnoreRules field if non-nil, zero value otherwise. - -### GetIgnoreRulesOk - -`func (o *DataSource) GetIgnoreRulesOk() (*string, bool)` - -GetIgnoreRulesOk returns a tuple with the IgnoreRules field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIgnoreRules - -`func (o *DataSource) SetIgnoreRules(v string)` - -SetIgnoreRules sets IgnoreRules field to given value. - -### HasIgnoreRules - -`func (o *DataSource) HasIgnoreRules() bool` - -HasIgnoreRules returns a boolean if a field has been set. - -### GetComments - -`func (o *DataSource) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DataSource) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DataSource) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DataSource) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *DataSource) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *DataSource) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *DataSource) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *DataSource) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *DataSource) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *DataSource) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *DataSource) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *DataSource) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *DataSource) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *DataSource) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *DataSource) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *DataSource) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *DataSource) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetLastSynced - -`func (o *DataSource) GetLastSynced() time.Time` - -GetLastSynced returns the LastSynced field if non-nil, zero value otherwise. - -### GetLastSyncedOk - -`func (o *DataSource) GetLastSyncedOk() (*time.Time, bool)` - -GetLastSyncedOk returns a tuple with the LastSynced field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastSynced - -`func (o *DataSource) SetLastSynced(v time.Time)` - -SetLastSynced sets LastSynced field to given value. - - -### SetLastSyncedNil - -`func (o *DataSource) SetLastSyncedNil(b bool)` - - SetLastSyncedNil sets the value for LastSynced to be an explicit nil - -### UnsetLastSynced -`func (o *DataSource) UnsetLastSynced()` - -UnsetLastSynced ensures that no value is present for LastSynced, not even an explicit nil -### GetFileCount - -`func (o *DataSource) GetFileCount() int64` - -GetFileCount returns the FileCount field if non-nil, zero value otherwise. - -### GetFileCountOk - -`func (o *DataSource) GetFileCountOk() (*int64, bool)` - -GetFileCountOk returns a tuple with the FileCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFileCount - -`func (o *DataSource) SetFileCount(v int64)` - -SetFileCount sets FileCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DataSourceRequest.md b/docs/DataSourceRequest.md index 8aad888e3..f9f23e255 100644 --- a/docs/DataSourceRequest.md +++ b/docs/DataSourceRequest.md @@ -5,20 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | | +**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | | **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] -**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDataSourceRequest -`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest` +`func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string, ) *DataSourceRequest` NewDataSourceRequest instantiates a new DataSourceRequest object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetName sets Name field to given value. ### GetType -`func (o *DataSourceRequest) GetType() DataSourceTypeValue` +`func (o *DataSourceRequest) GetType() DataSourceRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)` +`func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *DataSourceRequest) SetType(v DataSourceTypeValue)` +`func (o *DataSourceRequest) SetType(v DataSourceRequestType)` SetType sets Type field to given value. @@ -143,6 +143,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetParameters `func (o *DataSourceRequest) GetParameters() interface{}` @@ -203,31 +228,6 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. -### GetComments - -`func (o *DataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetCustomFields `func (o *DataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/DcimAPI.md b/docs/DcimAPI.md index 8fa92b5c2..2e73f244a 100644 --- a/docs/DcimAPI.md +++ b/docs/DcimAPI.md @@ -310,15 +310,6 @@ Method | HTTP request | Description [**DcimRackRolesPartialUpdate**](DcimAPI.md#DcimRackRolesPartialUpdate) | **Patch** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesRetrieve**](DcimAPI.md#DcimRackRolesRetrieve) | **Get** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesUpdate**](DcimAPI.md#DcimRackRolesUpdate) | **Put** /api/dcim/rack-roles/{id}/ | -[**DcimRackTypesBulkDestroy**](DcimAPI.md#DcimRackTypesBulkDestroy) | **Delete** /api/dcim/rack-types/ | -[**DcimRackTypesBulkPartialUpdate**](DcimAPI.md#DcimRackTypesBulkPartialUpdate) | **Patch** /api/dcim/rack-types/ | -[**DcimRackTypesBulkUpdate**](DcimAPI.md#DcimRackTypesBulkUpdate) | **Put** /api/dcim/rack-types/ | -[**DcimRackTypesCreate**](DcimAPI.md#DcimRackTypesCreate) | **Post** /api/dcim/rack-types/ | -[**DcimRackTypesDestroy**](DcimAPI.md#DcimRackTypesDestroy) | **Delete** /api/dcim/rack-types/{id}/ | -[**DcimRackTypesList**](DcimAPI.md#DcimRackTypesList) | **Get** /api/dcim/rack-types/ | -[**DcimRackTypesPartialUpdate**](DcimAPI.md#DcimRackTypesPartialUpdate) | **Patch** /api/dcim/rack-types/{id}/ | -[**DcimRackTypesRetrieve**](DcimAPI.md#DcimRackTypesRetrieve) | **Get** /api/dcim/rack-types/{id}/ | -[**DcimRackTypesUpdate**](DcimAPI.md#DcimRackTypesUpdate) | **Put** /api/dcim/rack-types/{id}/ | [**DcimRacksBulkDestroy**](DcimAPI.md#DcimRacksBulkDestroy) | **Delete** /api/dcim/racks/ | [**DcimRacksBulkPartialUpdate**](DcimAPI.md#DcimRacksBulkPartialUpdate) | **Patch** /api/dcim/racks/ | [**DcimRacksBulkUpdate**](DcimAPI.md#DcimRacksBulkUpdate) | **Put** /api/dcim/racks/ | @@ -1520,10 +1511,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []int32{int32(123)} // []int32 | (optional) @@ -1643,10 +1634,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | | @@ -2292,7 +2283,7 @@ Name | Type | Description | Notes ## DcimConsolePortTemplatesList -> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -2333,6 +2324,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2362,6 +2355,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2382,7 +2377,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2424,6 +2419,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2453,6 +2450,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2724,7 +2723,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2788,7 +2787,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2854,7 +2853,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2920,7 +2919,7 @@ import ( ) func main() { - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3035,7 +3034,7 @@ Name | Type | Description | Notes ## DcimConsolePortsList -> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -3084,12 +3083,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -3147,16 +3140,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) @@ -3173,7 +3170,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3223,12 +3220,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -3286,16 +3277,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | @@ -3562,7 +3557,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console port. - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3944,7 +3939,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortTemplatesList -> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -3985,6 +3980,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4014,6 +4011,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4034,7 +4033,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4076,6 +4075,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -4105,6 +4106,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4376,7 +4379,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4440,7 +4443,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4506,7 +4509,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4572,7 +4575,7 @@ import ( ) func main() { - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4687,7 +4690,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortsList -> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -4736,12 +4739,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -4799,16 +4796,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) @@ -4825,7 +4826,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4875,12 +4876,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -4938,16 +4933,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | @@ -5214,7 +5213,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console server port. - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5285,7 +5284,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5349,7 +5348,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5415,7 +5414,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5481,7 +5480,7 @@ import ( ) func main() { - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5596,7 +5595,7 @@ Name | Type | Description | Notes ## DcimDeviceBayTemplatesList -> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -5637,6 +5636,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) + devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5682,7 +5683,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5724,6 +5725,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5949,7 +5952,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay template. - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6020,7 +6023,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6084,7 +6087,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6150,7 +6153,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6216,7 +6219,7 @@ import ( ) func main() { - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6331,7 +6334,7 @@ Name | Type | Description | Notes ## DcimDeviceBaysList -> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -6374,12 +6377,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -6437,16 +6434,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -6459,7 +6460,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6503,12 +6504,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -6566,16 +6561,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -6768,7 +6767,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay. - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7602,7 +7601,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7666,7 +7665,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7732,7 +7731,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7798,7 +7797,7 @@ import ( ) func main() { - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8510,7 +8509,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device type. - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8581,7 +8580,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8645,7 +8644,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8711,7 +8710,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8777,7 +8776,7 @@ import ( ) func main() { - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8892,7 +8891,7 @@ Name | Type | Description | Notes ## DcimDevicesList -> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() +> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() @@ -8925,10 +8924,6 @@ func main() { assetTagNie := []string{"Inner_example"} // []string | (optional) assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) - clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional) - clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional) - clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) - clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) @@ -8951,8 +8946,8 @@ func main() { consoleServerPorts := true // bool | Has console server ports (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -9037,8 +9032,8 @@ func main() { latitudeN := []float64{float64(123)} // []float64 | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) localContextData := true // bool | Has local config context data (optional) - locationId := []string{"Inner_example"} // []string | (optional) - locationIdN := []string{"Inner_example"} // []string | (optional) + locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) longitude := []float64{float64(123)} // []float64 | (optional) longitudeEmpty := true // bool | (optional) longitudeGt := []float64{float64(123)} // []float64 | (optional) @@ -9132,10 +9127,10 @@ func main() { rearPortCountLt := []int32{int32(123)} // []int32 | (optional) rearPortCountLte := []int32{int32(123)} // []int32 | (optional) rearPortCountN := []int32{int32(123)} // []int32 | (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []int32{int32(123)} // []int32 | Role (ID) (optional) @@ -9153,10 +9148,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -9165,10 +9160,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -9192,7 +9187,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9226,10 +9221,6 @@ Name | Type | Description | Notes **assetTagNie** | **[]string** | | **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | - **clusterGroup** | **[]string** | Cluster group (slug) | - **clusterGroupN** | **[]string** | Cluster group (slug) | - **clusterGroupId** | **[]int32** | Cluster group (ID) | - **clusterGroupIdN** | **[]int32** | Cluster group (ID) | **clusterId** | **[]int32** | VM cluster (ID) | **clusterIdN** | **[]int32** | VM cluster (ID) | **configTemplateId** | **[]int32** | Config template (ID) | @@ -9252,8 +9243,8 @@ Name | Type | Description | Notes **consoleServerPorts** | **bool** | Has console server ports | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -9338,8 +9329,8 @@ Name | Type | Description | Notes **latitudeN** | **[]float64** | | **limit** | **int32** | Number of results to return per page. | **localContextData** | **bool** | Has local config context data | - **locationId** | **[]string** | | - **locationIdN** | **[]string** | | + **locationId** | **[]int32** | Location (ID) | + **locationIdN** | **[]int32** | Location (ID) | **longitude** | **[]float64** | | **longitudeEmpty** | **bool** | | **longitudeGt** | **[]float64** | | @@ -9433,10 +9424,10 @@ Name | Type | Description | Notes **rearPortCountLt** | **[]int32** | | **rearPortCountLte** | **[]int32** | | **rearPortCountN** | **[]int32** | | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -9454,10 +9445,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -9466,10 +9457,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9603,7 +9594,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -9747,7 +9738,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9818,7 +9809,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9882,7 +9873,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9948,7 +9939,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10014,7 +10005,7 @@ import ( ) func main() { - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10129,7 +10120,7 @@ Name | Type | Description | Notes ## DcimFrontPortTemplatesList -> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -10181,6 +10172,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -10210,6 +10203,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10239,7 +10234,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10292,6 +10287,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -10321,6 +10318,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10530,7 +10529,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port template. - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10601,7 +10600,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10665,7 +10664,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10731,7 +10730,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10797,7 +10796,7 @@ import ( ) func main() { - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10912,7 +10911,7 @@ Name | Type | Description | Notes ## DcimFrontPortsList -> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -10971,12 +10970,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -11043,16 +11036,20 @@ func main() { rearPortPositionLt := []int32{int32(123)} // []int32 | (optional) rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -11067,7 +11064,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11127,12 +11124,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -11199,16 +11190,20 @@ Name | Type | Description | Notes **rearPortPositionLt** | **[]int32** | | **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -11473,7 +11468,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port. - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -11855,7 +11850,7 @@ Name | Type | Description | Notes ## DcimInterfaceTemplatesList -> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -11898,6 +11893,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -11929,6 +11926,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -11955,7 +11954,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11999,6 +11998,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12030,6 +12031,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12307,7 +12310,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12371,7 +12374,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12437,7 +12440,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12503,7 +12506,7 @@ import ( ) func main() { - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12618,7 +12621,7 @@ Name | Type | Description | Notes ## DcimInterfacesList -> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() +> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() @@ -12669,12 +12672,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -12768,10 +12765,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) rfChannel := []string{"Inner_example"} // []string | (optional) rfChannelN := []string{"Inner_example"} // []string | (optional) rfChannelFrequency := []float64{float64(123)} // []float64 | (optional) @@ -12790,12 +12787,16 @@ func main() { rfChannelWidthN := []float64{float64(123)} // []float64 | (optional) rfRole := []string{"Inner_example"} // []string | (optional) rfRoleN := []string{"Inner_example"} // []string | (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := []int32{int32(123)} // []int32 | (optional) @@ -12852,7 +12853,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -12904,12 +12905,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -13003,10 +12998,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **rfChannel** | **[]string** | | **rfChannelN** | **[]string** | | **rfChannelFrequency** | **[]float64** | | @@ -13025,12 +13020,16 @@ Name | Type | Description | Notes **rfChannelWidthN** | **[]float64** | | **rfRole** | **[]string** | | **rfRoleN** | **[]string** | | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | **[]int32** | | @@ -13337,7 +13336,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14165,7 +14164,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14229,7 +14228,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14295,7 +14294,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14361,7 +14360,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14476,7 +14475,7 @@ Name | Type | Description | Notes ## DcimInventoryItemTemplatesList -> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -14526,6 +14525,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) + devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -14592,7 +14593,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -14643,6 +14644,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -14889,7 +14892,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item template. - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14960,7 +14963,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15024,7 +15027,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15090,7 +15093,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15156,7 +15159,7 @@ import ( ) func main() { - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15271,7 +15274,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsList -> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -15334,12 +15337,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -15411,10 +15408,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -15432,10 +15429,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -15448,7 +15445,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -15512,12 +15509,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -15589,10 +15580,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -15610,10 +15601,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -15806,7 +15797,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item. - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15877,7 +15868,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15941,7 +15932,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16007,7 +15998,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16073,7 +16064,7 @@ import ( ) func main() { - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16208,14 +16199,14 @@ import ( ) func main() { - ancestor := []string{"Inner_example"} // []string | (optional) - ancestorN := []string{"Inner_example"} // []string | (optional) - ancestorId := []string{"Inner_example"} // []string | (optional) - ancestorIdN := []string{"Inner_example"} // []string | (optional) + ancestor := []int32{int32(123)} // []int32 | Location (slug) (optional) + ancestorN := []int32{int32(123)} // []int32 | Location (slug) (optional) + ancestorId := []int32{int32(123)} // []int32 | Location (ID) (optional) + ancestorIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -16282,16 +16273,16 @@ func main() { parentId := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) parentIdN := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -16311,10 +16302,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -16342,14 +16333,14 @@ Other parameters are passed through a pointer to a apiDcimLocationsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]string** | | - **ancestorN** | **[]string** | | - **ancestorId** | **[]string** | | - **ancestorIdN** | **[]string** | | + **ancestor** | **[]int32** | Location (slug) | + **ancestorN** | **[]int32** | Location (slug) | + **ancestorId** | **[]int32** | Location (ID) | + **ancestorIdN** | **[]int32** | Location (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -16416,16 +16407,16 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent location (ID) | **parentIdN** | **[]int32** | Parent location (ID) | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **slug** | **[]string** | | @@ -16445,10 +16436,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -16635,7 +16626,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this location. - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17039,8 +17030,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -17132,8 +17123,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -17453,7 +17444,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17517,7 +17508,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17583,7 +17574,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17649,7 +17640,7 @@ import ( ) func main() { - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17764,7 +17755,7 @@ Name | Type | Description | Notes ## DcimModuleBayTemplatesList -> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -17803,8 +17794,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) + deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) + devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -17832,8 +17825,6 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -17863,7 +17854,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -17905,6 +17896,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -17932,8 +17925,6 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **modifiedByRequest** | **string** | | - **moduleTypeId** | **[]int32** | Module type (ID) | - **moduleTypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18143,7 +18134,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay template. - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18214,7 +18205,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18278,7 +18269,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18344,7 +18335,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18410,7 +18401,7 @@ import ( ) func main() { - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18525,7 +18516,7 @@ Name | Type | Description | Notes ## DcimModuleBaysList -> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -18568,12 +18559,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -18611,8 +18596,6 @@ func main() { locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) - moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -18626,8 +18609,6 @@ func main() { nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - parentId := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) - parentIdN := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) position := []string{"Inner_example"} // []string | (optional) positionEmpty := true // bool | (optional) positionIc := []string{"Inner_example"} // []string | (optional) @@ -18644,16 +18625,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -18666,7 +18651,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -18710,12 +18695,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -18753,8 +18732,6 @@ Name | Type | Description | Notes **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | - **moduleId** | **[]int32** | Module (ID) | - **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18768,8 +18745,6 @@ Name | Type | Description | Notes **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **parentId** | **[]int32** | Parent module bay (ID) | - **parentIdN** | **[]int32** | Parent module bay (ID) | **position** | **[]string** | | **positionEmpty** | **bool** | | **positionIc** | **[]string** | | @@ -18786,16 +18761,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -18988,7 +18967,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay. - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19059,7 +19038,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19123,7 +19102,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19189,7 +19168,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19255,7 +19234,7 @@ import ( ) func main() { - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19370,7 +19349,7 @@ Name | Type | Description | Notes ## DcimModuleTypesList -> PaginatedModuleTypeList DcimModuleTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() @@ -19390,8 +19369,6 @@ import ( ) func main() { - airflow := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) - airflowN := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) consolePorts := true // bool | Has console ports (optional) consoleServerPorts := true // bool | Has console server ports (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -19477,7 +19454,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -19498,8 +19475,6 @@ Other parameters are passed through a pointer to a apiDcimModuleTypesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **airflow** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | - **airflowN** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | **consolePorts** | **bool** | Has console ports | **consoleServerPorts** | **bool** | Has console server ports | **created** | [**[]time.Time**](time.Time.md) | | @@ -19765,7 +19740,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module type. - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19836,7 +19811,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19900,7 +19875,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19966,7 +19941,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20032,7 +20007,7 @@ import ( ) func main() { - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20219,8 +20194,8 @@ func main() { manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - moduleBayId := []string{"Inner_example"} // []string | (optional) - moduleBayIdN := []string{"Inner_example"} // []string | (optional) + moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) + moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) moduleType := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional) @@ -20320,8 +20295,8 @@ Name | Type | Description | Notes **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **modifiedByRequest** | **string** | | - **moduleBayId** | **[]string** | | - **moduleBayIdN** | **[]string** | | + **moduleBayId** | **[]int32** | Module Bay (ID) | + **moduleBayIdN** | **[]int32** | Module Bay (ID) | **moduleType** | **[]string** | Module type (model) | **moduleTypeN** | **[]string** | Module type (model) | **moduleTypeId** | **[]int32** | Module type (ID) | @@ -20528,7 +20503,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module. - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21348,7 +21323,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21412,7 +21387,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21478,7 +21453,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21544,7 +21519,7 @@ import ( ) func main() { - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21763,16 +21738,16 @@ func main() { q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -21783,10 +21758,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) @@ -21907,16 +21882,16 @@ Name | Type | Description | Notes **q** | **string** | Search | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -21927,10 +21902,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | @@ -22196,7 +22171,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power feed. - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -22578,7 +22553,7 @@ Name | Type | Description | Notes ## DcimPowerOutletTemplatesList -> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -22619,6 +22594,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) id := []int32{int32(123)} // []int32 | (optional) @@ -22650,6 +22627,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -22666,13 +22645,13 @@ func main() { powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -22714,6 +22693,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **feedLeg** | **[]string** | Phase (for three-phase feeds) | **feedLegN** | **[]string** | Phase (for three-phase feeds) | **id** | **[]int32** | | @@ -22745,6 +22726,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -22761,8 +22744,8 @@ Name | Type | Description | Notes **powerPortId** | **[]int32** | Power port (ID) | **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -23018,7 +23001,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23082,7 +23065,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23148,7 +23131,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23214,7 +23197,7 @@ import ( ) func main() { - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23329,7 +23312,7 @@ Name | Type | Description | Notes ## DcimPowerOutletsList -> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -23378,12 +23361,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -23445,16 +23422,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -23469,7 +23450,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -23519,12 +23500,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -23586,16 +23561,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -23860,7 +23839,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power outlet. - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23931,7 +23910,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23995,7 +23974,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24061,7 +24040,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24127,7 +24106,7 @@ import ( ) func main() { - powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24264,8 +24243,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -24302,8 +24281,8 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - locationId := []string{"Inner_example"} // []string | (optional) - locationIdN := []string{"Inner_example"} // []string | (optional) + locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -24319,16 +24298,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -24360,8 +24339,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -24398,8 +24377,8 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **locationId** | **[]string** | | - **locationIdN** | **[]string** | | + **locationId** | **[]int32** | Location (ID) | + **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -24415,16 +24394,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -24613,7 +24592,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power panel. - powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24995,7 +24974,7 @@ Name | Type | Description | Notes ## DcimPowerPortTemplatesList -> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -25043,6 +25022,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -25079,6 +25060,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -25093,13 +25076,13 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25148,6 +25131,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -25184,6 +25169,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -25198,8 +25185,8 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -25455,7 +25442,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25519,7 +25506,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25585,7 +25572,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25651,7 +25638,7 @@ import ( ) func main() { - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25766,7 +25753,7 @@ Name | Type | Description | Notes ## DcimPowerPortsList -> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -25822,12 +25809,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -25892,16 +25873,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -25916,7 +25901,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25973,12 +25958,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -26043,16 +26022,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -26317,7 +26300,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power port. - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26388,7 +26371,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26452,7 +26435,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26518,7 +26501,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26584,7 +26567,7 @@ import ( ) func main() { - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26753,36 +26736,36 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []string{"Inner_example"} // []string | (optional) - locationN := []string{"Inner_example"} // []string | (optional) - locationId := []string{"Inner_example"} // []string | (optional) - locationIdN := []string{"Inner_example"} // []string | (optional) + location := []int32{int32(123)} // []int32 | Location (slug) (optional) + locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) + locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) unit := float32(8.14) // float32 | (optional) @@ -26849,805 +26832,48 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]string** | | - **locationN** | **[]string** | | - **locationId** | **[]string** | | - **locationIdN** | **[]string** | | - **modifiedByRequest** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **rackId** | **[]int32** | Rack (ID) | - **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | - **site** | **[]string** | Site (slug) | - **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | - **siteId** | **[]int32** | Site (ID) | - **siteIdN** | **[]int32** | Site (ID) | - **tag** | **[]string** | | - **tagN** | **[]string** | | - **tenant** | **[]string** | Tenant (slug) | - **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | - **tenantId** | **[]int32** | Tenant (ID) | - **tenantIdN** | **[]int32** | Tenant (ID) | - **unit** | **float32** | | - **updatedByRequest** | **string** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - -### Return type - -[**PaginatedRackReservationList**](PaginatedRackReservationList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackReservationsPartialUpdate - -> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackReservationsPartialUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | - -### Return type - -[**RackReservation**](RackReservation.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackReservationsRetrieve - -> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackReservationsRetrieve`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**RackReservation**](RackReservation.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackReservationsUpdate - -> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this rack reservation. - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackReservationsUpdate`: RackReservation - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack reservation. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | - -### Return type - -[**RackReservation**](RackReservation.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackRolesBulkDestroy - -> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackRolesBulkPartialUpdate - -> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackRolesBulkPartialUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | - -### Return type - -[**[]RackRole**](RackRole.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackRolesBulkUpdate - -> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackRolesBulkUpdate`: []RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | - -### Return type - -[**[]RackRole**](RackRole.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackRolesCreate - -> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackRolesCreate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | - -### Return type - -[**RackRole**](RackRole.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackRolesDestroy - -> DcimRackRolesDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRackRolesList - -> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - color := []string{"Inner_example"} // []string | (optional) - colorEmpty := true // bool | (optional) - colorIc := []string{"Inner_example"} // []string | (optional) - colorIe := []string{"Inner_example"} // []string | (optional) - colorIew := []string{"Inner_example"} // []string | (optional) - colorIsw := []string{"Inner_example"} // []string | (optional) - colorN := []string{"Inner_example"} // []string | (optional) - colorNic := []string{"Inner_example"} // []string | (optional) - colorNie := []string{"Inner_example"} // []string | (optional) - colorNiew := []string{"Inner_example"} // []string | (optional) - colorNisw := []string{"Inner_example"} // []string | (optional) - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - tag := []string{"Inner_example"} // []string | (optional) - tagN := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRackRolesList`: PaginatedRackRoleList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **color** | **[]string** | | - **colorEmpty** | **bool** | | - **colorIc** | **[]string** | | - **colorIe** | **[]string** | | - **colorIew** | **[]string** | | - **colorIsw** | **[]string** | | - **colorN** | **[]string** | | - **colorNic** | **[]string** | | - **colorNie** | **[]string** | | - **colorNiew** | **[]string** | | - **colorNisw** | **[]string** | | - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | + **location** | **[]int32** | Location (slug) | + **locationN** | **[]int32** | Location (slug) | + **locationId** | **[]int32** | Location (ID) | + **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | + **rackId** | **[]int32** | Rack (ID) | + **rackIdN** | **[]int32** | Rack (ID) | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **site** | **[]string** | Site (slug) | + **siteN** | **[]string** | Site (slug) | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteId** | **[]int32** | Site (ID) | + **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **unit** | **float32** | | **updatedByRequest** | **string** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | ### Return type -[**PaginatedRackRoleList**](PaginatedRackRoleList.md) +[**PaginatedRackReservationList**](PaginatedRackReservationList.md) ### Authorization @@ -27663,9 +26889,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesPartialUpdate +## DcimRackReservationsPartialUpdate -> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() +> RackReservation DcimRackReservationsPartialUpdate(ctx, id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() @@ -27684,18 +26910,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + patchedRackReservationRequest := *openapiclient.NewPatchedRackReservationRequest() // PatchedRackReservationRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsPartialUpdate(context.Background(), id).PatchedRackReservationRequest(patchedRackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesPartialUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) + // response from `DcimRackReservationsPartialUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsPartialUpdate`: %v\n", resp) } ``` @@ -27705,21 +26931,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | + **patchedRackReservationRequest** | [**PatchedRackReservationRequest**](PatchedRackReservationRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -27735,9 +26961,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesRetrieve +## DcimRackReservationsRetrieve -> RackRole DcimRackRolesRetrieve(ctx, id).Execute() +> RackReservation DcimRackReservationsRetrieve(ctx, id).Execute() @@ -27756,17 +26982,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. + id := int32(56) // int32 | A unique integer value identifying this rack reservation. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesRetrieve`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) + // response from `DcimRackReservationsRetrieve`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsRetrieve`: %v\n", resp) } ``` @@ -27776,11 +27002,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -27789,7 +27015,7 @@ Name | Type | Description | Notes ### Return type -[**RackRole**](RackRole.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -27805,9 +27031,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackRolesUpdate +## DcimRackReservationsUpdate -> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() +> RackReservation DcimRackReservationsUpdate(ctx, id).RackReservationRequest(rackReservationRequest).Execute() @@ -27826,18 +27052,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack role. - rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | + id := int32(56) // int32 | A unique integer value identifying this rack reservation. + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackReservationsUpdate(context.Background(), id).RackReservationRequest(rackReservationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackReservationsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackRolesUpdate`: RackRole - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) + // response from `DcimRackReservationsUpdate`: RackReservation + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackReservationsUpdate`: %v\n", resp) } ``` @@ -27847,21 +27073,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack role. | +**id** | **int32** | A unique integer value identifying this rack reservation. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackReservationsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | + **rackReservationRequest** | [**RackReservationRequest**](RackReservationRequest.md) | | ### Return type -[**RackRole**](RackRole.md) +[**RackReservation**](RackReservation.md) ### Authorization @@ -27877,9 +27103,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesBulkDestroy +## DcimRackRolesBulkDestroy -> DcimRackTypesBulkDestroy(ctx).RackTypeRequest(rackTypeRequest).Execute() +> DcimRackRolesBulkDestroy(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -27898,13 +27124,13 @@ import ( ) func main() { - rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).RackTypeRequest(rackTypeRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackRolesBulkDestroy(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27916,12 +27142,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | ### Return type @@ -27941,9 +27167,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesBulkPartialUpdate +## DcimRackRolesBulkPartialUpdate -> []RackType DcimRackTypesBulkPartialUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() +> []RackRole DcimRackRolesBulkPartialUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -27962,17 +27188,17 @@ import ( ) func main() { - rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkPartialUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesBulkPartialUpdate`: []RackType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkPartialUpdate`: %v\n", resp) + // response from `DcimRackRolesBulkPartialUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkPartialUpdate`: %v\n", resp) } ``` @@ -27982,16 +27208,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**[]RackType**](RackType.md) +[**[]RackRole**](RackRole.md) ### Authorization @@ -28007,9 +27233,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesBulkUpdate +## DcimRackRolesBulkUpdate -> []RackType DcimRackTypesBulkUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() +> []RackRole DcimRackRolesBulkUpdate(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -28028,17 +27254,17 @@ import ( ) func main() { - rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | + rackRoleRequest := []openapiclient.RackRoleRequest{*openapiclient.NewRackRoleRequest("Name_example", "Slug_example")} // []RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesBulkUpdate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesBulkUpdate`: []RackType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkUpdate`: %v\n", resp) + // response from `DcimRackRolesBulkUpdate`: []RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesBulkUpdate`: %v\n", resp) } ``` @@ -28048,16 +27274,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | + **rackRoleRequest** | [**[]RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**[]RackType**](RackType.md) +[**[]RackRole**](RackRole.md) ### Authorization @@ -28073,9 +27299,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesCreate +## DcimRackRolesCreate -> RackType DcimRackTypesCreate(ctx).WritableRackTypeRequest(writableRackTypeRequest).Execute() +> RackRole DcimRackRolesCreate(ctx).RackRoleRequest(rackRoleRequest).Execute() @@ -28094,17 +27320,17 @@ import ( ) func main() { - writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).WritableRackTypeRequest(writableRackTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesCreate(context.Background()).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesCreate`: RackType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesCreate`: %v\n", resp) + // response from `DcimRackRolesCreate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesCreate`: %v\n", resp) } ``` @@ -28114,16 +27340,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**RackType**](RackType.md) +[**RackRole**](RackRole.md) ### Authorization @@ -28139,9 +27365,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesDestroy +## DcimRackRolesDestroy -> DcimRackTypesDestroy(ctx, id).Execute() +> DcimRackRolesDestroy(ctx, id).Execute() @@ -28160,13 +27386,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack type. + id := int32(56) // int32 | A unique integer value identifying this rack role. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRackTypesDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackRolesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -28178,11 +27404,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack type. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -28207,9 +27433,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesList +## DcimRackRolesList -> PaginatedRackTypeList DcimRackTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() +> PaginatedRackRoleList DcimRackRolesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -28229,6 +27455,17 @@ import ( ) func main() { + color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) + colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + colorNiew := []string{"Inner_example"} // []string | (optional) + colorNisw := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -28237,7 +27474,6 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - descUnits := true // bool | (optional) description := []string{"Inner_example"} // []string | (optional) descriptionEmpty := true // bool | (optional) descriptionIc := []string{"Inner_example"} // []string | (optional) @@ -28249,8 +27485,6 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - formFactor := []string{"Inner_example"} // []string | (optional) - formFactorN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -28266,54 +27500,20 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) - manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) - manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) - manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) - maxWeight := []int32{int32(123)} // []int32 | (optional) - maxWeightEmpty := true // bool | (optional) - maxWeightGt := []int32{int32(123)} // []int32 | (optional) - maxWeightGte := []int32{int32(123)} // []int32 | (optional) - maxWeightLt := []int32{int32(123)} // []int32 | (optional) - maxWeightLte := []int32{int32(123)} // []int32 | (optional) - maxWeightN := []int32{int32(123)} // []int32 | (optional) - model := []string{"Inner_example"} // []string | (optional) - modelEmpty := true // bool | (optional) - modelIc := []string{"Inner_example"} // []string | (optional) - modelIe := []string{"Inner_example"} // []string | (optional) - modelIew := []string{"Inner_example"} // []string | (optional) - modelIsw := []string{"Inner_example"} // []string | (optional) - modelN := []string{"Inner_example"} // []string | (optional) - modelNic := []string{"Inner_example"} // []string | (optional) - modelNie := []string{"Inner_example"} // []string | (optional) - modelNiew := []string{"Inner_example"} // []string | (optional) - modelNisw := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - mountingDepth := []int32{int32(123)} // []int32 | (optional) - mountingDepthEmpty := true // bool | (optional) - mountingDepthGt := []int32{int32(123)} // []int32 | (optional) - mountingDepthGte := []int32{int32(123)} // []int32 | (optional) - mountingDepthLt := []int32{int32(123)} // []int32 | (optional) - mountingDepthLte := []int32{int32(123)} // []int32 | (optional) - mountingDepthN := []int32{int32(123)} // []int32 | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - outerDepth := []int32{int32(123)} // []int32 | (optional) - outerDepthEmpty := true // bool | (optional) - outerDepthGt := []int32{int32(123)} // []int32 | (optional) - outerDepthGte := []int32{int32(123)} // []int32 | (optional) - outerDepthLt := []int32{int32(123)} // []int32 | (optional) - outerDepthLte := []int32{int32(123)} // []int32 | (optional) - outerDepthN := []int32{int32(123)} // []int32 | (optional) - outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerUnitN := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerWidth := []int32{int32(123)} // []int32 | (optional) - outerWidthEmpty := true // bool | (optional) - outerWidthGt := []int32{int32(123)} // []int32 | (optional) - outerWidthGte := []int32{int32(123)} // []int32 | (optional) - outerWidthLt := []int32{int32(123)} // []int32 | (optional) - outerWidthLte := []int32{int32(123)} // []int32 | (optional) - outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) @@ -28326,44 +27526,19 @@ func main() { slugNie := []string{"Inner_example"} // []string | (optional) slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) - startingUnit := []int32{int32(123)} // []int32 | (optional) - startingUnitEmpty := true // bool | (optional) - startingUnitGt := []int32{int32(123)} // []int32 | (optional) - startingUnitGte := []int32{int32(123)} // []int32 | (optional) - startingUnitLt := []int32{int32(123)} // []int32 | (optional) - startingUnitLte := []int32{int32(123)} // []int32 | (optional) - startingUnitN := []int32{int32(123)} // []int32 | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - uHeight := []int32{int32(123)} // []int32 | (optional) - uHeightEmpty := true // bool | (optional) - uHeightGt := []int32{int32(123)} // []int32 | (optional) - uHeightGte := []int32{int32(123)} // []int32 | (optional) - uHeightLt := []int32{int32(123)} // []int32 | (optional) - uHeightLte := []int32{int32(123)} // []int32 | (optional) - uHeightN := []int32{int32(123)} // []int32 | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - weight := []float64{float64(123)} // []float64 | (optional) - weightEmpty := true // bool | (optional) - weightGt := []float64{float64(123)} // []float64 | (optional) - weightGte := []float64{float64(123)} // []float64 | (optional) - weightLt := []float64{float64(123)} // []float64 | (optional) - weightLte := []float64{float64(123)} // []float64 | (optional) - weightN := []float64{float64(123)} // []float64 | (optional) - weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) - widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesList`: PaginatedRackTypeList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesList`: %v\n", resp) + // response from `DcimRackRolesList`: PaginatedRackRoleList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesList`: %v\n", resp) } ``` @@ -28373,11 +27548,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **color** | **[]string** | | + **colorEmpty** | **bool** | | + **colorIc** | **[]string** | | + **colorIe** | **[]string** | | + **colorIew** | **[]string** | | + **colorIsw** | **[]string** | | + **colorN** | **[]string** | | + **colorNic** | **[]string** | | + **colorNie** | **[]string** | | + **colorNiew** | **[]string** | | + **colorNisw** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -28386,7 +27572,6 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | - **descUnits** | **bool** | | **description** | **[]string** | | **descriptionEmpty** | **bool** | | **descriptionIc** | **[]string** | | @@ -28398,8 +27583,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **formFactor** | **[]string** | | - **formFactorN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -28415,54 +27598,20 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **manufacturer** | **[]string** | Manufacturer (slug) | - **manufacturerN** | **[]string** | Manufacturer (slug) | - **manufacturerId** | **[]int32** | Manufacturer (ID) | - **manufacturerIdN** | **[]int32** | Manufacturer (ID) | - **maxWeight** | **[]int32** | | - **maxWeightEmpty** | **bool** | | - **maxWeightGt** | **[]int32** | | - **maxWeightGte** | **[]int32** | | - **maxWeightLt** | **[]int32** | | - **maxWeightLte** | **[]int32** | | - **maxWeightN** | **[]int32** | | - **model** | **[]string** | | - **modelEmpty** | **bool** | | - **modelIc** | **[]string** | | - **modelIe** | **[]string** | | - **modelIew** | **[]string** | | - **modelIsw** | **[]string** | | - **modelN** | **[]string** | | - **modelNic** | **[]string** | | - **modelNie** | **[]string** | | - **modelNiew** | **[]string** | | - **modelNisw** | **[]string** | | **modifiedByRequest** | **string** | | - **mountingDepth** | **[]int32** | | - **mountingDepthEmpty** | **bool** | | - **mountingDepthGt** | **[]int32** | | - **mountingDepthGte** | **[]int32** | | - **mountingDepthLt** | **[]int32** | | - **mountingDepthLte** | **[]int32** | | - **mountingDepthN** | **[]int32** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **outerDepth** | **[]int32** | | - **outerDepthEmpty** | **bool** | | - **outerDepthGt** | **[]int32** | | - **outerDepthGte** | **[]int32** | | - **outerDepthLt** | **[]int32** | | - **outerDepthLte** | **[]int32** | | - **outerDepthN** | **[]int32** | | - **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerUnitN** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerWidth** | **[]int32** | | - **outerWidthEmpty** | **bool** | | - **outerWidthGt** | **[]int32** | | - **outerWidthGte** | **[]int32** | | - **outerWidthLt** | **[]int32** | | - **outerWidthLte** | **[]int32** | | - **outerWidthN** | **[]int32** | | **q** | **string** | Search | **slug** | **[]string** | | **slugEmpty** | **bool** | | @@ -28475,38 +27624,13 @@ Name | Type | Description | Notes **slugNie** | **[]string** | | **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | - **startingUnit** | **[]int32** | | - **startingUnitEmpty** | **bool** | | - **startingUnitGt** | **[]int32** | | - **startingUnitGte** | **[]int32** | | - **startingUnitLt** | **[]int32** | | - **startingUnitLte** | **[]int32** | | - **startingUnitN** | **[]int32** | | **tag** | **[]string** | | **tagN** | **[]string** | | - **uHeight** | **[]int32** | | - **uHeightEmpty** | **bool** | | - **uHeightGt** | **[]int32** | | - **uHeightGte** | **[]int32** | | - **uHeightLt** | **[]int32** | | - **uHeightLte** | **[]int32** | | - **uHeightN** | **[]int32** | | **updatedByRequest** | **string** | | - **weight** | **[]float64** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]float64** | | - **weightGte** | **[]float64** | | - **weightLt** | **[]float64** | | - **weightLte** | **[]float64** | | - **weightN** | **[]float64** | | - **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **width** | **[]int32** | Rail-to-rail width | - **widthN** | **[]int32** | Rail-to-rail width | ### Return type -[**PaginatedRackTypeList**](PaginatedRackTypeList.md) +[**PaginatedRackRoleList**](PaginatedRackRoleList.md) ### Authorization @@ -28522,9 +27646,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesPartialUpdate +## DcimRackRolesPartialUpdate -> RackType DcimRackTypesPartialUpdate(ctx, id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() +> RackRole DcimRackRolesPartialUpdate(ctx, id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() @@ -28543,18 +27667,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack type. - patchedWritableRackTypeRequest := *openapiclient.NewPatchedWritableRackTypeRequest() // PatchedWritableRackTypeRequest | (optional) + id := int32(56) // int32 | A unique integer value identifying this rack role. + patchedRackRoleRequest := *openapiclient.NewPatchedRackRoleRequest() // PatchedRackRoleRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesPartialUpdate(context.Background(), id).PatchedRackRoleRequest(patchedRackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesPartialUpdate`: RackType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesPartialUpdate`: %v\n", resp) + // response from `DcimRackRolesPartialUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesPartialUpdate`: %v\n", resp) } ``` @@ -28564,21 +27688,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack type. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedWritableRackTypeRequest** | [**PatchedWritableRackTypeRequest**](PatchedWritableRackTypeRequest.md) | | + **patchedRackRoleRequest** | [**PatchedRackRoleRequest**](PatchedRackRoleRequest.md) | | ### Return type -[**RackType**](RackType.md) +[**RackRole**](RackRole.md) ### Authorization @@ -28594,9 +27718,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesRetrieve +## DcimRackRolesRetrieve -> RackType DcimRackTypesRetrieve(ctx, id).Execute() +> RackRole DcimRackRolesRetrieve(ctx, id).Execute() @@ -28615,17 +27739,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack type. + id := int32(56) // int32 | A unique integer value identifying this rack role. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesRetrieve`: RackType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesRetrieve`: %v\n", resp) + // response from `DcimRackRolesRetrieve`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesRetrieve`: %v\n", resp) } ``` @@ -28635,11 +27759,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack type. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -28648,7 +27772,7 @@ Name | Type | Description | Notes ### Return type -[**RackType**](RackType.md) +[**RackRole**](RackRole.md) ### Authorization @@ -28664,9 +27788,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRackTypesUpdate +## DcimRackRolesUpdate -> RackType DcimRackTypesUpdate(ctx, id).WritableRackTypeRequest(writableRackTypeRequest).Execute() +> RackRole DcimRackRolesUpdate(ctx, id).RackRoleRequest(rackRoleRequest).Execute() @@ -28685,18 +27809,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack type. - writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | + id := int32(56) // int32 | A unique integer value identifying this rack role. + rackRoleRequest := *openapiclient.NewRackRoleRequest("Name_example", "Slug_example") // RackRoleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).WritableRackTypeRequest(writableRackTypeRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackRolesUpdate(context.Background(), id).RackRoleRequest(rackRoleRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackRolesUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRackTypesUpdate`: RackType - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesUpdate`: %v\n", resp) + // response from `DcimRackRolesUpdate`: RackRole + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackRolesUpdate`: %v\n", resp) } ``` @@ -28706,21 +27830,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack type. | +**id** | **int32** | A unique integer value identifying this rack role. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRackTypesUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackRolesUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | + **rackRoleRequest** | [**RackRoleRequest**](RackRoleRequest.md) | | ### Return type -[**RackType**](RackType.md) +[**RackRole**](RackRole.md) ### Authorization @@ -28757,7 +27881,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28821,7 +27945,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28887,7 +28011,7 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28953,7 +28077,7 @@ import ( ) func main() { - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29162,7 +28286,7 @@ Name | Type | Description | Notes ## DcimRacksList -> PaginatedRackList DcimRacksList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() +> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() @@ -29182,8 +28306,6 @@ import ( ) func main() { - airflow := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) - airflowN := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) assetTag := []string{"Inner_example"} // []string | (optional) assetTagEmpty := true // bool | (optional) assetTagIc := []string{"Inner_example"} // []string | (optional) @@ -29197,8 +28319,8 @@ func main() { assetTagNisw := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -29232,8 +28354,6 @@ func main() { facilityIdNie := []string{"Inner_example"} // []string | (optional) facilityIdNiew := []string{"Inner_example"} // []string | (optional) facilityIdNisw := []string{"Inner_example"} // []string | (optional) - formFactor := []string{"Inner_example"} // []string | (optional) - formFactorN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -29249,14 +28369,10 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []string{"Inner_example"} // []string | (optional) - locationN := []string{"Inner_example"} // []string | (optional) - locationId := []string{"Inner_example"} // []string | (optional) - locationIdN := []string{"Inner_example"} // []string | (optional) - manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) - manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) - manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) - manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + location := []int32{int32(123)} // []int32 | Location (slug) (optional) + locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) + locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) maxWeight := []int32{int32(123)} // []int32 | (optional) maxWeightEmpty := true // bool | (optional) maxWeightGt := []int32{int32(123)} // []int32 | (optional) @@ -29292,8 +28408,8 @@ func main() { outerDepthLt := []int32{int32(123)} // []int32 | (optional) outerDepthLte := []int32{int32(123)} // []int32 | (optional) outerDepthN := []int32{int32(123)} // []int32 | (optional) - outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerUnitN := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnit := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnitN := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) outerWidth := []int32{int32(123)} // []int32 | (optional) outerWidthEmpty := true // bool | (optional) outerWidthGt := []int32{int32(123)} // []int32 | (optional) @@ -29302,14 +28418,10 @@ func main() { outerWidthLte := []int32{int32(123)} // []int32 | (optional) outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) - rackType := []string{"Inner_example"} // []string | Rack type (slug) (optional) - rackTypeN := []string{"Inner_example"} // []string | Rack type (slug) (optional) - rackTypeId := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) - rackTypeIdN := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -29327,10 +28439,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) startingUnit := []int32{int32(123)} // []int32 | (optional) @@ -29346,12 +28458,14 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + type_ := []string{"Inner_example"} // []string | (optional) + typeN := []string{"Inner_example"} // []string | (optional) uHeight := []int32{int32(123)} // []int32 | (optional) uHeightEmpty := true // bool | (optional) uHeightGt := []int32{int32(123)} // []int32 | (optional) @@ -29374,7 +28488,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorN(formFactorN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -29395,8 +28509,6 @@ Other parameters are passed through a pointer to a apiDcimRacksListRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **airflow** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | - **airflowN** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -29410,8 +28522,8 @@ Name | Type | Description | Notes **assetTagNisw** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -29445,8 +28557,6 @@ Name | Type | Description | Notes **facilityIdNie** | **[]string** | | **facilityIdNiew** | **[]string** | | **facilityIdNisw** | **[]string** | | - **formFactor** | **[]string** | | - **formFactorN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -29462,14 +28572,10 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]string** | | - **locationN** | **[]string** | | - **locationId** | **[]string** | | - **locationIdN** | **[]string** | | - **manufacturer** | **[]string** | Manufacturer (slug) | - **manufacturerN** | **[]string** | Manufacturer (slug) | - **manufacturerId** | **[]int32** | Manufacturer (ID) | - **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **location** | **[]int32** | Location (slug) | + **locationN** | **[]int32** | Location (slug) | + **locationId** | **[]int32** | Location (ID) | + **locationIdN** | **[]int32** | Location (ID) | **maxWeight** | **[]int32** | | **maxWeightEmpty** | **bool** | | **maxWeightGt** | **[]int32** | | @@ -29505,8 +28611,8 @@ Name | Type | Description | Notes **outerDepthLt** | **[]int32** | | **outerDepthLte** | **[]int32** | | **outerDepthN** | **[]int32** | | - **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerUnitN** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnit** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnitN** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | **outerWidth** | **[]int32** | | **outerWidthEmpty** | **bool** | | **outerWidthGt** | **[]int32** | | @@ -29515,14 +28621,10 @@ Name | Type | Description | Notes **outerWidthLte** | **[]int32** | | **outerWidthN** | **[]int32** | | **q** | **string** | Search | - **rackType** | **[]string** | Rack type (slug) | - **rackTypeN** | **[]string** | Rack type (slug) | - **rackTypeId** | **[]int32** | Rack type (ID) | - **rackTypeIdN** | **[]int32** | Rack type (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -29540,10 +28642,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **startingUnit** | **[]int32** | | @@ -29559,12 +28661,14 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | + **type_** | **[]string** | | + **typeN** | **[]string** | | **uHeight** | **[]int32** | | **uHeightEmpty** | **bool** | | **uHeightGt** | **[]int32** | | @@ -29767,7 +28871,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rack. - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29838,7 +28942,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29902,7 +29006,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29968,7 +29072,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30149,7 +29253,7 @@ Name | Type | Description | Notes ## DcimRearPortTemplatesList -> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() @@ -30201,6 +29305,8 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -30230,6 +29336,8 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -30257,7 +29365,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -30310,6 +29418,8 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | + **devicetypeId** | **[]int32** | Device type (ID) | + **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -30339,6 +29449,8 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | + **moduletypeId** | **[]int32** | Module type (ID) | + **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -30617,7 +29729,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30681,7 +29793,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30747,7 +29859,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30813,7 +29925,7 @@ import ( ) func main() { - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30928,7 +30040,7 @@ Name | Type | Description | Notes ## DcimRearPortsList -> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -30987,12 +30099,6 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) - deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) - deviceStatus := []string{"Inner_example"} // []string | (optional) - deviceStatusN := []string{"Inner_example"} // []string | (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -31057,16 +30163,20 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + role := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -31081,7 +30191,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusN(deviceStatusN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -31141,12 +30251,6 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | - **deviceRole** | **[]string** | Device role (slug) | - **deviceRoleN** | **[]string** | Device role (slug) | - **deviceRoleId** | **[]int32** | Device role (ID) | - **deviceRoleIdN** | **[]int32** | Device role (ID) | - **deviceStatus** | **[]string** | | - **deviceStatusN** | **[]string** | | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -31211,16 +30315,20 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | + **role** | **[]string** | Device role (slug) | + **roleN** | **[]string** | Device role (slug) | + **roleId** | **[]int32** | Device role (ID) | + **roleIdN** | **[]int32** | Device role (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -31485,7 +30593,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rear port. - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -31887,14 +30995,14 @@ import ( ) func main() { - ancestor := []string{"Inner_example"} // []string | (optional) - ancestorN := []string{"Inner_example"} // []string | (optional) - ancestorId := []string{"Inner_example"} // []string | (optional) - ancestorIdN := []string{"Inner_example"} // []string | (optional) + ancestor := []int32{int32(123)} // []int32 | Region (slug) (optional) + ancestorN := []int32{int32(123)} // []int32 | Region (slug) (optional) + ancestorId := []int32{int32(123)} // []int32 | Region (ID) (optional) + ancestorIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31988,14 +31096,14 @@ Other parameters are passed through a pointer to a apiDcimRegionsListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]string** | | - **ancestorN** | **[]string** | | - **ancestorId** | **[]string** | | - **ancestorIdN** | **[]string** | | + **ancestor** | **[]int32** | Region (slug) | + **ancestorN** | **[]int32** | Region (slug) | + **ancestorId** | **[]int32** | Region (ID) | + **ancestorIdN** | **[]int32** | Region (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32650,14 +31758,14 @@ import ( ) func main() { - ancestor := []string{"Inner_example"} // []string | (optional) - ancestorN := []string{"Inner_example"} // []string | (optional) - ancestorId := []string{"Inner_example"} // []string | (optional) - ancestorIdN := []string{"Inner_example"} // []string | (optional) + ancestor := []int32{int32(123)} // []int32 | Site group (slug) (optional) + ancestorN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + ancestorId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + ancestorIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -32751,14 +31859,14 @@ Other parameters are passed through a pointer to a apiDcimSiteGroupsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]string** | | - **ancestorN** | **[]string** | | - **ancestorId** | **[]string** | | - **ancestorIdN** | **[]string** | | + **ancestor** | **[]int32** | Site group (slug) | + **ancestorN** | **[]int32** | Site group (slug) | + **ancestorId** | **[]int32** | Site group (ID) | + **ancestorIdN** | **[]int32** | Site group (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -33419,8 +32527,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -33453,10 +32561,10 @@ func main() { facilityNie := []string{"Inner_example"} // []string | (optional) facilityNiew := []string{"Inner_example"} // []string | (optional) facilityNisw := []string{"Inner_example"} // []string | (optional) - group := []string{"Inner_example"} // []string | (optional) - groupN := []string{"Inner_example"} // []string | (optional) - groupId := []string{"Inner_example"} // []string | (optional) - groupIdN := []string{"Inner_example"} // []string | (optional) + group := []int32{int32(123)} // []int32 | Group (slug) (optional) + groupN := []int32{int32(123)} // []int32 | Group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -33501,10 +32609,10 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -33522,10 +32630,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) timeZone := []string{"Inner_example"} // []string | (optional) @@ -33569,8 +32677,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | AS (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -33603,10 +32711,10 @@ Name | Type | Description | Notes **facilityNie** | **[]string** | | **facilityNiew** | **[]string** | | **facilityNisw** | **[]string** | | - **group** | **[]string** | | - **groupN** | **[]string** | | - **groupId** | **[]string** | | - **groupIdN** | **[]string** | | + **group** | **[]int32** | Group (slug) | + **groupN** | **[]int32** | Group (slug) | + **groupId** | **[]int32** | Group (ID) | + **groupIdN** | **[]int32** | Group (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -33651,10 +32759,10 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -33672,10 +32780,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **timeZone** | **[]string** | | @@ -34345,16 +33453,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -34459,16 +33567,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -34732,7 +33840,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34796,7 +33904,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34862,7 +33970,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34928,7 +34036,7 @@ import ( ) func main() { - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -35136,10 +34244,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -35240,10 +34348,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -35430,7 +34538,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual device context. - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/Device.md b/docs/Device.md index 34c0a81b8..c83083a9c 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -6,18 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **NullableString** | | -**DeviceType** | Pointer to [**BriefDeviceType**](BriefDeviceType.md) | | [optional] -**Role** | Pointer to [**BriefDeviceRole**](BriefDeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**DeviceType** | Pointer to [**DeviceType**](DeviceType.md) | | [optional] +**Role** | Pointer to [**DeviceRole**](DeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**BriefSite**](BriefSite.md) | | [optional] -**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] -**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] +**Site** | Pointer to [**Site**](Site.md) | | [optional] +**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] +**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -25,17 +24,17 @@ Name | Type | Description | Notes **ParentDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -111,31 +110,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Device) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Device) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Device) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - -### HasDisplayUrl - -`func (o *Device) HasDisplayUrl() bool` - -HasDisplayUrl returns a boolean if a field has been set. - ### GetDisplay `func (o *Device) GetDisplay() string` @@ -188,20 +162,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *Device) GetDeviceType() BriefDeviceType` +`func (o *Device) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *Device) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *Device) SetDeviceType(v BriefDeviceType)` +`func (o *Device) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -213,20 +187,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *Device) GetRole() BriefDeviceRole` +`func (o *Device) GetRole() DeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Device) GetRoleOk() (*BriefDeviceRole, bool)` +`func (o *Device) GetRoleOk() (*DeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Device) SetRole(v BriefDeviceRole)` +`func (o *Device) SetRole(v DeviceRole)` SetRole sets Role field to given value. @@ -238,20 +212,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *Device) GetTenant() BriefTenant` +`func (o *Device) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Device) GetTenantOk() (*BriefTenant, bool)` +`func (o *Device) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Device) SetTenant(v BriefTenant)` +`func (o *Device) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -273,20 +247,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *Device) GetPlatform() BriefPlatform` +`func (o *Device) GetPlatform() Platform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *Device) GetPlatformOk() (*BriefPlatform, bool)` +`func (o *Device) GetPlatformOk() (*Platform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *Device) SetPlatform(v BriefPlatform)` +`func (o *Device) SetPlatform(v Platform)` SetPlatform sets Platform field to given value. @@ -368,20 +342,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *Device) GetSite() BriefSite` +`func (o *Device) GetSite() Site` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Device) GetSiteOk() (*BriefSite, bool)` +`func (o *Device) GetSiteOk() (*Site, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Device) SetSite(v BriefSite)` +`func (o *Device) SetSite(v Site)` SetSite sets Site field to given value. @@ -393,20 +367,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *Device) GetLocation() BriefLocation` +`func (o *Device) GetLocation() Location` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *Device) GetLocationOk() (*BriefLocation, bool)` +`func (o *Device) GetLocationOk() (*Location, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *Device) SetLocation(v BriefLocation)` +`func (o *Device) SetLocation(v Location)` SetLocation sets Location field to given value. @@ -428,20 +402,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *Device) GetRack() BriefRack` +`func (o *Device) GetRack() Rack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *Device) GetRackOk() (*BriefRack, bool)` +`func (o *Device) GetRackOk() (*Rack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *Device) SetRack(v BriefRack)` +`func (o *Device) SetRack(v Rack)` SetRack sets Rack field to given value. @@ -678,20 +652,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *Device) GetPrimaryIp() BriefIPAddress` +`func (o *Device) GetPrimaryIp() IPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool)` +`func (o *Device) GetPrimaryIpOk() (*IPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *Device) SetPrimaryIp(v BriefIPAddress)` +`func (o *Device) SetPrimaryIp(v IPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -713,20 +687,20 @@ HasPrimaryIp returns a boolean if a field has been set. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *Device) GetPrimaryIp4() BriefIPAddress` +`func (o *Device) GetPrimaryIp4() IPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` +`func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *Device) SetPrimaryIp4(v BriefIPAddress)` +`func (o *Device) SetPrimaryIp4(v IPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -748,20 +722,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *Device) GetPrimaryIp6() BriefIPAddress` +`func (o *Device) GetPrimaryIp6() IPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` +`func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *Device) SetPrimaryIp6(v BriefIPAddress)` +`func (o *Device) SetPrimaryIp6(v IPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -783,20 +757,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *Device) GetOobIp() BriefIPAddress` +`func (o *Device) GetOobIp() IPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *Device) GetOobIpOk() (*BriefIPAddress, bool)` +`func (o *Device) GetOobIpOk() (*IPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *Device) SetOobIp(v BriefIPAddress)` +`func (o *Device) SetOobIp(v IPAddress)` SetOobIp sets OobIp field to given value. @@ -818,20 +792,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *Device) GetCluster() BriefCluster` +`func (o *Device) GetCluster() Cluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *Device) GetClusterOk() (*BriefCluster, bool)` +`func (o *Device) GetClusterOk() (*Cluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *Device) SetCluster(v BriefCluster)` +`func (o *Device) SetCluster(v Cluster)` SetCluster sets Cluster field to given value. @@ -853,20 +827,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *Device) GetVirtualChassis() BriefVirtualChassis` +`func (o *Device) GetVirtualChassis() VirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` +`func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *Device) SetVirtualChassis(v BriefVirtualChassis)` +`func (o *Device) SetVirtualChassis(v VirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -1003,20 +977,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *Device) GetConfigTemplate() BriefConfigTemplate` +`func (o *Device) GetConfigTemplate() ConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` +`func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *Device) SetConfigTemplate(v BriefConfigTemplate)` +`func (o *Device) SetConfigTemplate(v ConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceBay.md b/docs/DeviceBay.md index f8a948546..e19772ad5 100644 --- a/docs/DeviceBay.md +++ b/docs/DeviceBay.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | +**Device** | [**Device**](Device.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableDevice**](Device.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewDeviceBay -`func NewDeviceBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` +`func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` NewDeviceBay instantiates a new DeviceBay object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *DeviceBay) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *DeviceBay) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *DeviceBay) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *DeviceBay) GetDisplay() string` @@ -119,20 +98,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *DeviceBay) GetDevice() BriefDevice` +`func (o *DeviceBay) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool)` +`func (o *DeviceBay) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBay) SetDevice(v BriefDevice)` +`func (o *DeviceBay) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -209,20 +188,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBay) GetInstalledDevice() BriefDevice` +`func (o *DeviceBay) GetInstalledDevice() Device` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool)` +`func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBay) SetInstalledDevice(v BriefDevice)` +`func (o *DeviceBay) SetInstalledDevice(v Device)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayRequest.md b/docs/DeviceBayRequest.md index 78e056c6d..9229313f3 100644 --- a/docs/DeviceBayRequest.md +++ b/docs/DeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewDeviceBayRequest -`func NewDeviceBayRequest(device BriefDeviceRequest, name string, ) *DeviceBayRequest` +`func NewDeviceBayRequest(device DeviceRequest, name string, ) *DeviceBayRequest` NewDeviceBayRequest instantiates a new DeviceBayRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest` +`func (o *DeviceBayRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest)` +`func (o *DeviceBayRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -123,20 +123,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` +`func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` +`func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md index a938074ce..ffb6fdad4 100644 --- a/docs/DeviceBayTemplate.md +++ b/docs/DeviceBayTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**DeviceType** | [**DeviceType**](DeviceType.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplate -`func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` +`func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` NewDeviceBayTemplate instantiates a new DeviceBayTemplate object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType` +`func (o *DeviceBayTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *DeviceBayTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md index 3dcbe7646..48b82be6a 100644 --- a/docs/DeviceBayTemplateRequest.md +++ b/docs/DeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplateRequest -`func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` +`func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` NewDeviceBayTemplateRequest instantiates a new DeviceBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceRole.md b/docs/DeviceRole.md index 1ab6beaa3..99ecb82bc 100644 --- a/docs/DeviceRole.md +++ b/docs/DeviceRole.md @@ -6,18 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Color** | Pointer to **string** | | [optional] -**VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] @@ -25,7 +17,7 @@ Name | Type | Description | Notes ### NewDeviceRole -`func NewDeviceRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -80,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *DeviceRole) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *DeviceRole) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *DeviceRole) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *DeviceRole) GetDisplay() string` @@ -160,91 +132,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetColor - -`func (o *DeviceRole) GetColor() string` - -GetColor returns the Color field if non-nil, zero value otherwise. - -### GetColorOk - -`func (o *DeviceRole) GetColorOk() (*string, bool)` - -GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetColor - -`func (o *DeviceRole) SetColor(v string)` - -SetColor sets Color field to given value. - -### HasColor - -`func (o *DeviceRole) HasColor() bool` - -HasColor returns a boolean if a field has been set. - -### GetVmRole - -`func (o *DeviceRole) GetVmRole() bool` - -GetVmRole returns the VmRole field if non-nil, zero value otherwise. - -### GetVmRoleOk - -`func (o *DeviceRole) GetVmRoleOk() (*bool, bool)` - -GetVmRoleOk returns a tuple with the VmRole field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVmRole - -`func (o *DeviceRole) SetVmRole(v bool)` - -SetVmRole sets VmRole field to given value. - -### HasVmRole - -`func (o *DeviceRole) HasVmRole() bool` - -HasVmRole returns a boolean if a field has been set. - -### GetConfigTemplate - -`func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate` - -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. - -### GetConfigTemplateOk - -`func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` - -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfigTemplate - -`func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate)` - -SetConfigTemplate sets ConfigTemplate field to given value. - -### HasConfigTemplate - -`func (o *DeviceRole) HasConfigTemplate() bool` - -HasConfigTemplate returns a boolean if a field has been set. - -### SetConfigTemplateNil - -`func (o *DeviceRole) SetConfigTemplateNil(b bool)` - - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil - -### UnsetConfigTemplate -`func (o *DeviceRole) UnsetConfigTemplate()` - -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *DeviceRole) GetDescription() string` @@ -270,116 +157,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *DeviceRole) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *DeviceRole) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *DeviceRole) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *DeviceRole) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *DeviceRole) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *DeviceRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *DeviceRole) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *DeviceRole) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *DeviceRole) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *DeviceRole) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *DeviceRole) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *DeviceRole) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *DeviceRole) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *DeviceRole) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *DeviceRole) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *DeviceRole) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *DeviceRole) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceRole) GetDeviceCount() int64` diff --git a/docs/DeviceRoleRequest.md b/docs/DeviceRoleRequest.md index 05cd2213c..63022acb9 100644 --- a/docs/DeviceRoleRequest.md +++ b/docs/DeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -124,20 +124,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceType.md b/docs/DeviceType.md index 9c365a837..9d02d28e7 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -6,45 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | -**DefaultPlatform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | **Model** | **string** | | **Slug** | **string** | | -**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] -**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] -**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] -**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] -**SubdeviceRole** | Pointer to [**NullableDeviceTypeSubdeviceRole**](DeviceTypeSubdeviceRole.md) | | [optional] -**Airflow** | Pointer to [**NullableDeviceTypeAirflow**](DeviceTypeAirflow.md) | | [optional] -**Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] -**FrontImage** | Pointer to **NullableString** | | [optional] -**RearImage** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] -**ConsolePortTemplateCount** | **int32** | | [readonly] -**ConsoleServerPortTemplateCount** | **int32** | | [readonly] -**PowerPortTemplateCount** | **int32** | | [readonly] -**PowerOutletTemplateCount** | **int32** | | [readonly] -**InterfaceTemplateCount** | **int32** | | [readonly] -**FrontPortTemplateCount** | **int32** | | [readonly] -**RearPortTemplateCount** | **int32** | | [readonly] -**DeviceBayTemplateCount** | **int32** | | [readonly] -**ModuleBayTemplateCount** | **int32** | | [readonly] -**InventoryItemTemplateCount** | **int32** | | [readonly] ## Methods ### NewDeviceType -`func NewDeviceType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32, ) *DeviceType` +`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, ) *DeviceType` NewDeviceType instantiates a new DeviceType object This constructor will assign default values to properties that have it defined, @@ -99,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *DeviceType) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *DeviceType) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *DeviceType) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *DeviceType) GetDisplay() string` @@ -141,59 +94,24 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *DeviceType) GetManufacturer() BriefManufacturer` +`func (o *DeviceType) GetManufacturer() Manufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` +`func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceType) SetManufacturer(v BriefManufacturer)` +`func (o *DeviceType) SetManufacturer(v Manufacturer)` SetManufacturer sets Manufacturer field to given value. -### GetDefaultPlatform - -`func (o *DeviceType) GetDefaultPlatform() BriefPlatform` - -GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. - -### GetDefaultPlatformOk - -`func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool)` - -GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultPlatform - -`func (o *DeviceType) SetDefaultPlatform(v BriefPlatform)` - -SetDefaultPlatform sets DefaultPlatform field to given value. - -### HasDefaultPlatform - -`func (o *DeviceType) HasDefaultPlatform() bool` - -HasDefaultPlatform returns a boolean if a field has been set. - -### SetDefaultPlatformNil - -`func (o *DeviceType) SetDefaultPlatformNil(b bool)` - - SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil - -### UnsetDefaultPlatform -`func (o *DeviceType) UnsetDefaultPlatform()` - -UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceType) GetModel() string` @@ -234,316 +152,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetPartNumber - -`func (o *DeviceType) GetPartNumber() string` - -GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. - -### GetPartNumberOk - -`func (o *DeviceType) GetPartNumberOk() (*string, bool)` - -GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPartNumber - -`func (o *DeviceType) SetPartNumber(v string)` - -SetPartNumber sets PartNumber field to given value. - -### HasPartNumber - -`func (o *DeviceType) HasPartNumber() bool` - -HasPartNumber returns a boolean if a field has been set. - -### GetUHeight - -`func (o *DeviceType) GetUHeight() float64` - -GetUHeight returns the UHeight field if non-nil, zero value otherwise. - -### GetUHeightOk - -`func (o *DeviceType) GetUHeightOk() (*float64, bool)` - -GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUHeight - -`func (o *DeviceType) SetUHeight(v float64)` - -SetUHeight sets UHeight field to given value. - -### HasUHeight - -`func (o *DeviceType) HasUHeight() bool` - -HasUHeight returns a boolean if a field has been set. - -### GetExcludeFromUtilization - -`func (o *DeviceType) GetExcludeFromUtilization() bool` - -GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. - -### GetExcludeFromUtilizationOk - -`func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool)` - -GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExcludeFromUtilization - -`func (o *DeviceType) SetExcludeFromUtilization(v bool)` - -SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. - -### HasExcludeFromUtilization - -`func (o *DeviceType) HasExcludeFromUtilization() bool` - -HasExcludeFromUtilization returns a boolean if a field has been set. - -### GetIsFullDepth - -`func (o *DeviceType) GetIsFullDepth() bool` - -GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. - -### GetIsFullDepthOk - -`func (o *DeviceType) GetIsFullDepthOk() (*bool, bool)` - -GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsFullDepth - -`func (o *DeviceType) SetIsFullDepth(v bool)` - -SetIsFullDepth sets IsFullDepth field to given value. - -### HasIsFullDepth - -`func (o *DeviceType) HasIsFullDepth() bool` - -HasIsFullDepth returns a boolean if a field has been set. - -### GetSubdeviceRole - -`func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole` - -GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. - -### GetSubdeviceRoleOk - -`func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool)` - -GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubdeviceRole - -`func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole)` - -SetSubdeviceRole sets SubdeviceRole field to given value. - -### HasSubdeviceRole - -`func (o *DeviceType) HasSubdeviceRole() bool` - -HasSubdeviceRole returns a boolean if a field has been set. - -### SetSubdeviceRoleNil - -`func (o *DeviceType) SetSubdeviceRoleNil(b bool)` - - SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil - -### UnsetSubdeviceRole -`func (o *DeviceType) UnsetSubdeviceRole()` - -UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil -### GetAirflow - -`func (o *DeviceType) GetAirflow() DeviceTypeAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *DeviceType) SetAirflow(v DeviceTypeAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *DeviceType) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - -### SetAirflowNil - -`func (o *DeviceType) SetAirflowNil(b bool)` - - SetAirflowNil sets the value for Airflow to be an explicit nil - -### UnsetAirflow -`func (o *DeviceType) UnsetAirflow()` - -UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -### GetWeight - -`func (o *DeviceType) GetWeight() float64` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *DeviceType) GetWeightOk() (*float64, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *DeviceType) SetWeight(v float64)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *DeviceType) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - -### SetWeightNil - -`func (o *DeviceType) SetWeightNil(b bool)` - - SetWeightNil sets the value for Weight to be an explicit nil - -### UnsetWeight -`func (o *DeviceType) UnsetWeight()` - -UnsetWeight ensures that no value is present for Weight, not even an explicit nil -### GetWeightUnit - -`func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit` - -GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. - -### GetWeightUnitOk - -`func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` - -GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeightUnit - -`func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit)` - -SetWeightUnit sets WeightUnit field to given value. - -### HasWeightUnit - -`func (o *DeviceType) HasWeightUnit() bool` - -HasWeightUnit returns a boolean if a field has been set. - -### SetWeightUnitNil - -`func (o *DeviceType) SetWeightUnitNil(b bool)` - - SetWeightUnitNil sets the value for WeightUnit to be an explicit nil - -### UnsetWeightUnit -`func (o *DeviceType) UnsetWeightUnit()` - -UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -### GetFrontImage - -`func (o *DeviceType) GetFrontImage() string` - -GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. - -### GetFrontImageOk - -`func (o *DeviceType) GetFrontImageOk() (*string, bool)` - -GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrontImage - -`func (o *DeviceType) SetFrontImage(v string)` - -SetFrontImage sets FrontImage field to given value. - -### HasFrontImage - -`func (o *DeviceType) HasFrontImage() bool` - -HasFrontImage returns a boolean if a field has been set. - -### SetFrontImageNil - -`func (o *DeviceType) SetFrontImageNil(b bool)` - - SetFrontImageNil sets the value for FrontImage to be an explicit nil - -### UnsetFrontImage -`func (o *DeviceType) UnsetFrontImage()` - -UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil -### GetRearImage - -`func (o *DeviceType) GetRearImage() string` - -GetRearImage returns the RearImage field if non-nil, zero value otherwise. - -### GetRearImageOk - -`func (o *DeviceType) GetRearImageOk() (*string, bool)` - -GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRearImage - -`func (o *DeviceType) SetRearImage(v string)` - -SetRearImage sets RearImage field to given value. - -### HasRearImage - -`func (o *DeviceType) HasRearImage() bool` - -HasRearImage returns a boolean if a field has been set. - -### SetRearImageNil - -`func (o *DeviceType) SetRearImageNil(b bool)` - - SetRearImageNil sets the value for RearImage to be an explicit nil - -### UnsetRearImage -`func (o *DeviceType) UnsetRearImage()` - -UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil ### GetDescription `func (o *DeviceType) GetDescription() string` @@ -569,141 +177,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *DeviceType) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DeviceType) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DeviceType) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DeviceType) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *DeviceType) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *DeviceType) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *DeviceType) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *DeviceType) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *DeviceType) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *DeviceType) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *DeviceType) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *DeviceType) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *DeviceType) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *DeviceType) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *DeviceType) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *DeviceType) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *DeviceType) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *DeviceType) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *DeviceType) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *DeviceType) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *DeviceType) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceType) GetDeviceCount() int64` @@ -729,206 +202,6 @@ SetDeviceCount sets DeviceCount field to given value. HasDeviceCount returns a boolean if a field has been set. -### GetConsolePortTemplateCount - -`func (o *DeviceType) GetConsolePortTemplateCount() int32` - -GetConsolePortTemplateCount returns the ConsolePortTemplateCount field if non-nil, zero value otherwise. - -### GetConsolePortTemplateCountOk - -`func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool)` - -GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConsolePortTemplateCount - -`func (o *DeviceType) SetConsolePortTemplateCount(v int32)` - -SetConsolePortTemplateCount sets ConsolePortTemplateCount field to given value. - - -### GetConsoleServerPortTemplateCount - -`func (o *DeviceType) GetConsoleServerPortTemplateCount() int32` - -GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field if non-nil, zero value otherwise. - -### GetConsoleServerPortTemplateCountOk - -`func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool)` - -GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConsoleServerPortTemplateCount - -`func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32)` - -SetConsoleServerPortTemplateCount sets ConsoleServerPortTemplateCount field to given value. - - -### GetPowerPortTemplateCount - -`func (o *DeviceType) GetPowerPortTemplateCount() int32` - -GetPowerPortTemplateCount returns the PowerPortTemplateCount field if non-nil, zero value otherwise. - -### GetPowerPortTemplateCountOk - -`func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool)` - -GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPowerPortTemplateCount - -`func (o *DeviceType) SetPowerPortTemplateCount(v int32)` - -SetPowerPortTemplateCount sets PowerPortTemplateCount field to given value. - - -### GetPowerOutletTemplateCount - -`func (o *DeviceType) GetPowerOutletTemplateCount() int32` - -GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field if non-nil, zero value otherwise. - -### GetPowerOutletTemplateCountOk - -`func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool)` - -GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPowerOutletTemplateCount - -`func (o *DeviceType) SetPowerOutletTemplateCount(v int32)` - -SetPowerOutletTemplateCount sets PowerOutletTemplateCount field to given value. - - -### GetInterfaceTemplateCount - -`func (o *DeviceType) GetInterfaceTemplateCount() int32` - -GetInterfaceTemplateCount returns the InterfaceTemplateCount field if non-nil, zero value otherwise. - -### GetInterfaceTemplateCountOk - -`func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool)` - -GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInterfaceTemplateCount - -`func (o *DeviceType) SetInterfaceTemplateCount(v int32)` - -SetInterfaceTemplateCount sets InterfaceTemplateCount field to given value. - - -### GetFrontPortTemplateCount - -`func (o *DeviceType) GetFrontPortTemplateCount() int32` - -GetFrontPortTemplateCount returns the FrontPortTemplateCount field if non-nil, zero value otherwise. - -### GetFrontPortTemplateCountOk - -`func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool)` - -GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrontPortTemplateCount - -`func (o *DeviceType) SetFrontPortTemplateCount(v int32)` - -SetFrontPortTemplateCount sets FrontPortTemplateCount field to given value. - - -### GetRearPortTemplateCount - -`func (o *DeviceType) GetRearPortTemplateCount() int32` - -GetRearPortTemplateCount returns the RearPortTemplateCount field if non-nil, zero value otherwise. - -### GetRearPortTemplateCountOk - -`func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool)` - -GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRearPortTemplateCount - -`func (o *DeviceType) SetRearPortTemplateCount(v int32)` - -SetRearPortTemplateCount sets RearPortTemplateCount field to given value. - - -### GetDeviceBayTemplateCount - -`func (o *DeviceType) GetDeviceBayTemplateCount() int32` - -GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field if non-nil, zero value otherwise. - -### GetDeviceBayTemplateCountOk - -`func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool)` - -GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceBayTemplateCount - -`func (o *DeviceType) SetDeviceBayTemplateCount(v int32)` - -SetDeviceBayTemplateCount sets DeviceBayTemplateCount field to given value. - - -### GetModuleBayTemplateCount - -`func (o *DeviceType) GetModuleBayTemplateCount() int32` - -GetModuleBayTemplateCount returns the ModuleBayTemplateCount field if non-nil, zero value otherwise. - -### GetModuleBayTemplateCountOk - -`func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool)` - -GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleBayTemplateCount - -`func (o *DeviceType) SetModuleBayTemplateCount(v int32)` - -SetModuleBayTemplateCount sets ModuleBayTemplateCount field to given value. - - -### GetInventoryItemTemplateCount - -`func (o *DeviceType) GetInventoryItemTemplateCount() int32` - -GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field if non-nil, zero value otherwise. - -### GetInventoryItemTemplateCountOk - -`func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool)` - -GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInventoryItemTemplateCount - -`func (o *DeviceType) SetInventoryItemTemplateCount(v int32)` - -SetInventoryItemTemplateCount sets InventoryItemTemplateCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceTypeRequest.md b/docs/DeviceTypeRequest.md index 8f7d9822f..a5e6c3add 100644 --- a/docs/DeviceTypeRequest.md +++ b/docs/DeviceTypeRequest.md @@ -4,30 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | -**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | **Model** | **string** | | **Slug** | **string** | | -**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] -**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] -**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] -**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] -**SubdeviceRole** | Pointer to [**NullableDeviceTypeRequestSubdeviceRole**](DeviceTypeRequestSubdeviceRole.md) | | [optional] -**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] -**Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] -**FrontImage** | Pointer to ***os.File** | | [optional] -**RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDeviceTypeRequest -`func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` +`func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` NewDeviceTypeRequest instantiates a new DeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -44,59 +30,24 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. -### GetDefaultPlatform - -`func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` - -GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. - -### GetDefaultPlatformOk - -`func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` - -GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDefaultPlatform - -`func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` - -SetDefaultPlatform sets DefaultPlatform field to given value. - -### HasDefaultPlatform - -`func (o *DeviceTypeRequest) HasDefaultPlatform() bool` - -HasDefaultPlatform returns a boolean if a field has been set. - -### SetDefaultPlatformNil - -`func (o *DeviceTypeRequest) SetDefaultPlatformNil(b bool)` - - SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil - -### UnsetDefaultPlatform -`func (o *DeviceTypeRequest) UnsetDefaultPlatform()` - -UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceTypeRequest) GetModel() string` @@ -137,296 +88,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetPartNumber - -`func (o *DeviceTypeRequest) GetPartNumber() string` - -GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. - -### GetPartNumberOk - -`func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool)` - -GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPartNumber - -`func (o *DeviceTypeRequest) SetPartNumber(v string)` - -SetPartNumber sets PartNumber field to given value. - -### HasPartNumber - -`func (o *DeviceTypeRequest) HasPartNumber() bool` - -HasPartNumber returns a boolean if a field has been set. - -### GetUHeight - -`func (o *DeviceTypeRequest) GetUHeight() float64` - -GetUHeight returns the UHeight field if non-nil, zero value otherwise. - -### GetUHeightOk - -`func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool)` - -GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUHeight - -`func (o *DeviceTypeRequest) SetUHeight(v float64)` - -SetUHeight sets UHeight field to given value. - -### HasUHeight - -`func (o *DeviceTypeRequest) HasUHeight() bool` - -HasUHeight returns a boolean if a field has been set. - -### GetExcludeFromUtilization - -`func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool` - -GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. - -### GetExcludeFromUtilizationOk - -`func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool)` - -GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExcludeFromUtilization - -`func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool)` - -SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. - -### HasExcludeFromUtilization - -`func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool` - -HasExcludeFromUtilization returns a boolean if a field has been set. - -### GetIsFullDepth - -`func (o *DeviceTypeRequest) GetIsFullDepth() bool` - -GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. - -### GetIsFullDepthOk - -`func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool)` - -GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsFullDepth - -`func (o *DeviceTypeRequest) SetIsFullDepth(v bool)` - -SetIsFullDepth sets IsFullDepth field to given value. - -### HasIsFullDepth - -`func (o *DeviceTypeRequest) HasIsFullDepth() bool` - -HasIsFullDepth returns a boolean if a field has been set. - -### GetSubdeviceRole - -`func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole` - -GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. - -### GetSubdeviceRoleOk - -`func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool)` - -GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSubdeviceRole - -`func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole)` - -SetSubdeviceRole sets SubdeviceRole field to given value. - -### HasSubdeviceRole - -`func (o *DeviceTypeRequest) HasSubdeviceRole() bool` - -HasSubdeviceRole returns a boolean if a field has been set. - -### SetSubdeviceRoleNil - -`func (o *DeviceTypeRequest) SetSubdeviceRoleNil(b bool)` - - SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil - -### UnsetSubdeviceRole -`func (o *DeviceTypeRequest) UnsetSubdeviceRole()` - -UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil -### GetAirflow - -`func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *DeviceTypeRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - -### SetAirflowNil - -`func (o *DeviceTypeRequest) SetAirflowNil(b bool)` - - SetAirflowNil sets the value for Airflow to be an explicit nil - -### UnsetAirflow -`func (o *DeviceTypeRequest) UnsetAirflow()` - -UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -### GetWeight - -`func (o *DeviceTypeRequest) GetWeight() float64` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *DeviceTypeRequest) SetWeight(v float64)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *DeviceTypeRequest) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - -### SetWeightNil - -`func (o *DeviceTypeRequest) SetWeightNil(b bool)` - - SetWeightNil sets the value for Weight to be an explicit nil - -### UnsetWeight -`func (o *DeviceTypeRequest) UnsetWeight()` - -UnsetWeight ensures that no value is present for Weight, not even an explicit nil -### GetWeightUnit - -`func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` - -GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. - -### GetWeightUnitOk - -`func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` - -GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeightUnit - -`func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` - -SetWeightUnit sets WeightUnit field to given value. - -### HasWeightUnit - -`func (o *DeviceTypeRequest) HasWeightUnit() bool` - -HasWeightUnit returns a boolean if a field has been set. - -### SetWeightUnitNil - -`func (o *DeviceTypeRequest) SetWeightUnitNil(b bool)` - - SetWeightUnitNil sets the value for WeightUnit to be an explicit nil - -### UnsetWeightUnit -`func (o *DeviceTypeRequest) UnsetWeightUnit()` - -UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -### GetFrontImage - -`func (o *DeviceTypeRequest) GetFrontImage() *os.File` - -GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. - -### GetFrontImageOk - -`func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool)` - -GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFrontImage - -`func (o *DeviceTypeRequest) SetFrontImage(v *os.File)` - -SetFrontImage sets FrontImage field to given value. - -### HasFrontImage - -`func (o *DeviceTypeRequest) HasFrontImage() bool` - -HasFrontImage returns a boolean if a field has been set. - -### GetRearImage - -`func (o *DeviceTypeRequest) GetRearImage() *os.File` - -GetRearImage returns the RearImage field if non-nil, zero value otherwise. - -### GetRearImageOk - -`func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool)` - -GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRearImage - -`func (o *DeviceTypeRequest) SetRearImage(v *os.File)` - -SetRearImage sets RearImage field to given value. - -### HasRearImage - -`func (o *DeviceTypeRequest) HasRearImage() bool` - -HasRearImage returns a boolean if a field has been set. - ### GetDescription `func (o *DeviceTypeRequest) GetDescription() string` @@ -452,81 +113,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *DeviceTypeRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DeviceTypeRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DeviceTypeRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *DeviceTypeRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *DeviceTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *DeviceTypeRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *DeviceTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *DeviceTypeRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md index f931fd5e5..570136c0d 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -6,18 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | -**Role** | [**BriefDeviceRole**](BriefDeviceRole.md) | | -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**DeviceType** | [**DeviceType**](DeviceType.md) | | +**Role** | [**DeviceRole**](DeviceRole.md) | | +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**BriefSite**](BriefSite.md) | | -**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] -**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] +**Site** | [**Site**](Site.md) | | +**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] +**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -25,17 +24,17 @@ Name | Type | Description | Notes **ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] +**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] **ConfigContext** | **interface{}** | | [readonly] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -57,7 +56,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` +`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` NewDeviceWithConfigContext instantiates a new DeviceWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -112,26 +111,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *DeviceWithConfigContext) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *DeviceWithConfigContext) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *DeviceWithConfigContext) GetDisplay() string` @@ -189,60 +168,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType` +`func (o *DeviceWithConfigContext) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType)` +`func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole` +`func (o *DeviceWithConfigContext) GetRole() DeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` +`func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole)` +`func (o *DeviceWithConfigContext) SetRole(v DeviceRole)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContext) GetTenant() BriefTenant` +`func (o *DeviceWithConfigContext) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool)` +`func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContext) SetTenant(v BriefTenant)` +`func (o *DeviceWithConfigContext) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -264,20 +243,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform` +`func (o *DeviceWithConfigContext) GetPlatform() Platform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` +`func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform)` +`func (o *DeviceWithConfigContext) SetPlatform(v Platform)` SetPlatform sets Platform field to given value. @@ -359,40 +338,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContext) GetSite() BriefSite` +`func (o *DeviceWithConfigContext) GetSite() Site` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool)` +`func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContext) SetSite(v BriefSite)` +`func (o *DeviceWithConfigContext) SetSite(v Site)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContext) GetLocation() BriefLocation` +`func (o *DeviceWithConfigContext) GetLocation() Location` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool)` +`func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContext) SetLocation(v BriefLocation)` +`func (o *DeviceWithConfigContext) SetLocation(v Location)` SetLocation sets Location field to given value. @@ -414,20 +393,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContext) GetRack() BriefRack` +`func (o *DeviceWithConfigContext) GetRack() Rack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool)` +`func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContext) SetRack(v BriefRack)` +`func (o *DeviceWithConfigContext) SetRack(v Rack)` SetRack sets Rack field to given value. @@ -659,20 +638,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -689,20 +668,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -724,20 +703,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -759,20 +738,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress` +`func (o *DeviceWithConfigContext) GetOobIp() IPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool)` +`func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress)` +`func (o *DeviceWithConfigContext) SetOobIp(v IPAddress)` SetOobIp sets OobIp field to given value. @@ -794,20 +773,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContext) GetCluster() BriefCluster` +`func (o *DeviceWithConfigContext) GetCluster() Cluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool)` +`func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContext) SetCluster(v BriefCluster)` +`func (o *DeviceWithConfigContext) SetCluster(v Cluster)` SetCluster sets Cluster field to given value. @@ -829,20 +808,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis` +`func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` +`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis)` +`func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -984,20 +963,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate` +`func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` +`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` +`func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md index d32891dde..6d521edef 100644 --- a/docs/DeviceWithConfigContextRequest.md +++ b/docs/DeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | -**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] +**Site** | [**SiteRequest**](SiteRequest.md) | | +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFaceValue**](DeviceFaceValue.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContextRequest -`func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, ) *DeviceWithConfigContextRequest` +`func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, ) *DeviceWithConfigContextRequest` NewDeviceWithConfigContextRequest instantiates a new DeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` +`func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` +`func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` +`func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` +`func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` +`func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest` +`func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` +`func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` +`func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` +`func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest` +`func (o *DeviceWithConfigContextRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` +`func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -530,20 +530,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -565,20 +565,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -600,20 +600,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -635,20 +635,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` +`func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` +`func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` SetCluster sets Cluster field to given value. @@ -670,20 +670,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` +`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -825,20 +825,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/EventRule.md b/docs/EventRule.md index dc71d933d..fa879bc56 100644 --- a/docs/EventRule.md +++ b/docs/EventRule.md @@ -6,12 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] -**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | | **ActionObjectType** | **string** | | @@ -27,7 +30,7 @@ Name | Type | Description | Notes ### NewEventRule -`func NewEventRule(id int32, url string, displayUrl string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` +`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` NewEventRule instantiates a new EventRule object This constructor will assign default values to properties that have it defined, @@ -82,26 +85,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *EventRule) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *EventRule) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *EventRule) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *EventRule) GetDisplay() string` @@ -162,6 +145,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTypeCreate + +`func (o *EventRule) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *EventRule) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *EventRule) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *EventRule) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *EventRule) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *EventRule) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *EventRule) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *EventRule) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *EventRule) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *EventRule) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *EventRule) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *EventRule) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *EventRule) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *EventRule) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *EventRule) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *EventRule) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + ### GetEnabled `func (o *EventRule) GetEnabled() bool` @@ -187,26 +295,6 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. -### GetEventTypes - -`func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner` - -GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. - -### GetEventTypesOk - -`func (o *EventRule) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` - -GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEventTypes - -`func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner)` - -SetEventTypes sets EventTypes field to given value. - - ### GetConditions `func (o *EventRule) GetConditions() interface{}` diff --git a/docs/EventRuleActionTypeLabel.md b/docs/EventRuleActionTypeLabel.md index 5c6ede174..7c1a6f459 100644 --- a/docs/EventRuleActionTypeLabel.md +++ b/docs/EventRuleActionTypeLabel.md @@ -7,8 +7,6 @@ * `SCRIPT` (value: `"Script"`) -* `NOTIFICATION` (value: `"Notification"`) - [[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/docs/EventRuleActionTypeValue.md b/docs/EventRuleActionTypeValue.md index 95b9781eb..73ad2faee 100644 --- a/docs/EventRuleActionTypeValue.md +++ b/docs/EventRuleActionTypeValue.md @@ -7,8 +7,6 @@ * `SCRIPT` (value: `"script"`) -* `NOTIFICATION` (value: `"notification"`) - [[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/docs/EventRuleRequest.md b/docs/EventRuleRequest.md index 1d3cd3044..68df12155 100644 --- a/docs/EventRuleRequest.md +++ b/docs/EventRuleRequest.md @@ -6,8 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] -**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | **ActionObjectType** | **string** | | @@ -20,7 +24,7 @@ Name | Type | Description | Notes ### NewEventRuleRequest -`func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` +`func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` NewEventRuleRequest instantiates a new EventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -75,6 +79,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTypeCreate + +`func (o *EventRuleRequest) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *EventRuleRequest) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *EventRuleRequest) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *EventRuleRequest) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *EventRuleRequest) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *EventRuleRequest) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *EventRuleRequest) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *EventRuleRequest) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *EventRuleRequest) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *EventRuleRequest) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *EventRuleRequest) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *EventRuleRequest) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *EventRuleRequest) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *EventRuleRequest) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *EventRuleRequest) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + ### GetEnabled `func (o *EventRuleRequest) GetEnabled() bool` @@ -100,26 +229,6 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. -### GetEventTypes - -`func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` - -GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. - -### GetEventTypesOk - -`func (o *EventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` - -GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEventTypes - -`func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` - -SetEventTypes sets EventTypes field to given value. - - ### GetConditions `func (o *EventRuleRequest) GetConditions() interface{}` diff --git a/docs/ExportTemplate.md b/docs/ExportTemplate.md index 27a90747a..0371ebe2e 100644 --- a/docs/ExportTemplate.md +++ b/docs/ExportTemplate.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -15,9 +14,9 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] +**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] +**DataFile** | [**DataFile**](DataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -26,7 +25,7 @@ Name | Type | Description | Notes ### NewExportTemplate -`func NewExportTemplate(id int32, url string, displayUrl string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` +`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` NewExportTemplate instantiates a new ExportTemplate object This constructor will assign default values to properties that have it defined, @@ -81,26 +80,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ExportTemplate) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ExportTemplate) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ExportTemplate) GetDisplay() string` @@ -283,20 +262,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplate) GetDataSource() BriefDataSource` +`func (o *ExportTemplate) GetDataSource() DataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool)` +`func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplate) SetDataSource(v BriefDataSource)` +`func (o *ExportTemplate) SetDataSource(v DataSource)` SetDataSource sets DataSource field to given value. @@ -328,20 +307,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ExportTemplate) GetDataFile() BriefDataFile` +`func (o *ExportTemplate) GetDataFile() DataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool)` +`func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ExportTemplate) SetDataFile(v BriefDataFile)` +`func (o *ExportTemplate) SetDataFile(v DataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ExportTemplateRequest.md b/docs/ExportTemplateRequest.md index 392c93a2c..1a7beb1a2 100644 --- a/docs/ExportTemplateRequest.md +++ b/docs/ExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] ## Methods @@ -194,20 +194,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest` +`func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` +`func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` +`func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ExtrasAPI.md b/docs/ExtrasAPI.md index e6b5d1af2..ed3040e29 100644 --- a/docs/ExtrasAPI.md +++ b/docs/ExtrasAPI.md @@ -103,24 +103,8 @@ Method | HTTP request | Description [**ExtrasJournalEntriesPartialUpdate**](ExtrasAPI.md#ExtrasJournalEntriesPartialUpdate) | **Patch** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesRetrieve**](ExtrasAPI.md#ExtrasJournalEntriesRetrieve) | **Get** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesUpdate**](ExtrasAPI.md#ExtrasJournalEntriesUpdate) | **Put** /api/extras/journal-entries/{id}/ | -[**ExtrasNotificationGroupsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsBulkDestroy) | **Delete** /api/extras/notification-groups/ | -[**ExtrasNotificationGroupsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkPartialUpdate) | **Patch** /api/extras/notification-groups/ | -[**ExtrasNotificationGroupsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkUpdate) | **Put** /api/extras/notification-groups/ | -[**ExtrasNotificationGroupsCreate**](ExtrasAPI.md#ExtrasNotificationGroupsCreate) | **Post** /api/extras/notification-groups/ | -[**ExtrasNotificationGroupsDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsDestroy) | **Delete** /api/extras/notification-groups/{id}/ | -[**ExtrasNotificationGroupsList**](ExtrasAPI.md#ExtrasNotificationGroupsList) | **Get** /api/extras/notification-groups/ | -[**ExtrasNotificationGroupsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsPartialUpdate) | **Patch** /api/extras/notification-groups/{id}/ | -[**ExtrasNotificationGroupsRetrieve**](ExtrasAPI.md#ExtrasNotificationGroupsRetrieve) | **Get** /api/extras/notification-groups/{id}/ | -[**ExtrasNotificationGroupsUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsUpdate) | **Put** /api/extras/notification-groups/{id}/ | -[**ExtrasNotificationsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationsBulkDestroy) | **Delete** /api/extras/notifications/ | -[**ExtrasNotificationsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkPartialUpdate) | **Patch** /api/extras/notifications/ | -[**ExtrasNotificationsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkUpdate) | **Put** /api/extras/notifications/ | -[**ExtrasNotificationsCreate**](ExtrasAPI.md#ExtrasNotificationsCreate) | **Post** /api/extras/notifications/ | -[**ExtrasNotificationsDestroy**](ExtrasAPI.md#ExtrasNotificationsDestroy) | **Delete** /api/extras/notifications/{id}/ | -[**ExtrasNotificationsList**](ExtrasAPI.md#ExtrasNotificationsList) | **Get** /api/extras/notifications/ | -[**ExtrasNotificationsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsPartialUpdate) | **Patch** /api/extras/notifications/{id}/ | -[**ExtrasNotificationsRetrieve**](ExtrasAPI.md#ExtrasNotificationsRetrieve) | **Get** /api/extras/notifications/{id}/ | -[**ExtrasNotificationsUpdate**](ExtrasAPI.md#ExtrasNotificationsUpdate) | **Put** /api/extras/notifications/{id}/ | +[**ExtrasObjectChangesList**](ExtrasAPI.md#ExtrasObjectChangesList) | **Get** /api/extras/object-changes/ | +[**ExtrasObjectChangesRetrieve**](ExtrasAPI.md#ExtrasObjectChangesRetrieve) | **Get** /api/extras/object-changes/{id}/ | [**ExtrasObjectTypesList**](ExtrasAPI.md#ExtrasObjectTypesList) | **Get** /api/extras/object-types/ | [**ExtrasObjectTypesRetrieve**](ExtrasAPI.md#ExtrasObjectTypesRetrieve) | **Get** /api/extras/object-types/{id}/ | [**ExtrasSavedFiltersBulkDestroy**](ExtrasAPI.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | @@ -138,15 +122,6 @@ Method | HTTP request | Description [**ExtrasScriptsPartialUpdate**](ExtrasAPI.md#ExtrasScriptsPartialUpdate) | **Patch** /api/extras/scripts/{id}/ | [**ExtrasScriptsRetrieve**](ExtrasAPI.md#ExtrasScriptsRetrieve) | **Get** /api/extras/scripts/{id}/ | [**ExtrasScriptsUpdate**](ExtrasAPI.md#ExtrasScriptsUpdate) | **Put** /api/extras/scripts/{id}/ | -[**ExtrasSubscriptionsBulkDestroy**](ExtrasAPI.md#ExtrasSubscriptionsBulkDestroy) | **Delete** /api/extras/subscriptions/ | -[**ExtrasSubscriptionsBulkPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkPartialUpdate) | **Patch** /api/extras/subscriptions/ | -[**ExtrasSubscriptionsBulkUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkUpdate) | **Put** /api/extras/subscriptions/ | -[**ExtrasSubscriptionsCreate**](ExtrasAPI.md#ExtrasSubscriptionsCreate) | **Post** /api/extras/subscriptions/ | -[**ExtrasSubscriptionsDestroy**](ExtrasAPI.md#ExtrasSubscriptionsDestroy) | **Delete** /api/extras/subscriptions/{id}/ | -[**ExtrasSubscriptionsList**](ExtrasAPI.md#ExtrasSubscriptionsList) | **Get** /api/extras/subscriptions/ | -[**ExtrasSubscriptionsPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsPartialUpdate) | **Patch** /api/extras/subscriptions/{id}/ | -[**ExtrasSubscriptionsRetrieve**](ExtrasAPI.md#ExtrasSubscriptionsRetrieve) | **Get** /api/extras/subscriptions/{id}/ | -[**ExtrasSubscriptionsUpdate**](ExtrasAPI.md#ExtrasSubscriptionsUpdate) | **Put** /api/extras/subscriptions/{id}/ | [**ExtrasTagsBulkDestroy**](ExtrasAPI.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ | [**ExtrasTagsBulkPartialUpdate**](ExtrasAPI.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ | [**ExtrasTagsBulkUpdate**](ExtrasAPI.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ | @@ -189,7 +164,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -253,7 +228,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -319,7 +294,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -385,7 +360,7 @@ import ( ) func main() { - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -789,7 +764,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this bookmark. - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1171,7 +1146,7 @@ Name | Type | Description | Notes ## ExtrasConfigContextsList -> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -1281,6 +1256,10 @@ func main() { regionN := []string{"Inner_example"} // []string | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (optional) regionIdN := []int32{int32(123)} // []int32 | Region (optional) + role := []string{"Inner_example"} // []string | Role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Role (slug) (optional) + roleId := []int32{int32(123)} // []int32 | Role (optional) + roleIdN := []int32{int32(123)} // []int32 | Role (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional) @@ -1312,7 +1291,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1423,6 +1402,10 @@ Name | Type | Description | Notes **regionN** | **[]string** | Region (slug) | **regionId** | **[]int32** | Region | **regionIdN** | **[]int32** | Region | + **role** | **[]string** | Role (slug) | + **roleN** | **[]string** | Role (slug) | + **roleId** | **[]int32** | Role | + **roleIdN** | **[]int32** | Role | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | **siteGroup** | **[]string** | Site group (slug) | @@ -1777,7 +1760,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1841,7 +1824,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1907,7 +1890,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1973,7 +1956,7 @@ import ( ) func main() { - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2373,7 +2356,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -2517,7 +2500,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2589,7 +2572,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3758,7 +3741,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldsList -> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -3886,7 +3869,6 @@ func main() { uiEditableN := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) uiVisible := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) uiVisibleN := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) - unique := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) validationMaximum := []int32{int32(123)} // []int32 | (optional) validationMaximumEmpty := true // bool | (optional) @@ -3923,7 +3905,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4052,7 +4034,6 @@ Name | Type | Description | Notes **uiEditableN** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | **uiVisible** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | **uiVisibleN** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | - **unique** | **bool** | | **updatedByRequest** | **string** | | **validationMaximum** | **[]int32** | | **validationMaximumEmpty** | **bool** | | @@ -4671,8 +4652,8 @@ import ( ) func main() { - buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) - buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4788,8 +4769,8 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | - **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5387,7 +5368,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5451,7 +5432,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5517,7 +5498,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5583,7 +5564,7 @@ import ( ) func main() { - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5698,7 +5679,7 @@ Name | Type | Description | Notes ## ExtrasEventRulesList -> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() @@ -5749,7 +5730,6 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) - eventType := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5794,11 +5774,16 @@ func main() { q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) + typeCreate := true // bool | (optional) + typeDelete := true // bool | (optional) + typeJobEnd := true // bool | (optional) + typeJobStart := true // bool | (optional) + typeUpdate := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5850,7 +5835,6 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **enabled** | **bool** | | - **eventType** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5895,6 +5879,11 @@ Name | Type | Description | Notes **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | + **typeCreate** | **bool** | | + **typeDelete** | **bool** | | + **typeJobEnd** | **bool** | | + **typeJobStart** | **bool** | | + **typeUpdate** | **bool** | | **updatedByRequest** | **string** | | ### Return type @@ -6079,7 +6068,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this event rule. - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7025,7 +7014,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7089,7 +7078,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7155,7 +7144,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7221,7 +7210,7 @@ import ( ) func main() { - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7691,7 +7680,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this image attachment. - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8434,9 +8423,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsBulkDestroy +## ExtrasObjectChangesList -> ExtrasNotificationGroupsBulkDestroy(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() +> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() @@ -8451,19 +8440,83 @@ import ( "context" "fmt" "os" + "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | + action := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + actionN := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + changedObjectId := []int32{int32(123)} // []int32 | (optional) + changedObjectIdEmpty := true // bool | (optional) + changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdN := []int32{int32(123)} // []int32 | (optional) + changedObjectType := "changedObjectType_example" // string | (optional) + changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) + changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) + changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + objectRepr := []string{"Inner_example"} // []string | (optional) + objectReprEmpty := true // bool | (optional) + objectReprIc := []string{"Inner_example"} // []string | (optional) + objectReprIe := []string{"Inner_example"} // []string | (optional) + objectReprIew := []string{"Inner_example"} // []string | (optional) + objectReprIsw := []string{"Inner_example"} // []string | (optional) + objectReprN := []string{"Inner_example"} // []string | (optional) + objectReprNic := []string{"Inner_example"} // []string | (optional) + objectReprNie := []string{"Inner_example"} // []string | (optional) + objectReprNiew := []string{"Inner_example"} // []string | (optional) + objectReprNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + relatedObjectId := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdEmpty := true // bool | (optional) + relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) + relatedObjectType := int32(56) // int32 | (optional) + relatedObjectTypeN := int32(56) // int32 | (optional) + requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + timeAfter := time.Now() // time.Time | (optional) + timeBefore := time.Now() // time.Time | (optional) + user := []string{"Inner_example"} // []string | User name (optional) + userN := []string{"Inner_example"} // []string | User name (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userName := []string{"Inner_example"} // []string | (optional) + userNameEmpty := true // bool | (optional) + userNameIc := []string{"Inner_example"} // []string | (optional) + userNameIe := []string{"Inner_example"} // []string | (optional) + userNameIew := []string{"Inner_example"} // []string | (optional) + userNameIsw := []string{"Inner_example"} // []string | (optional) + userNameN := []string{"Inner_example"} // []string | (optional) + userNameNic := []string{"Inner_example"} // []string | (optional) + userNameNie := []string{"Inner_example"} // []string | (optional) + userNameNiew := []string{"Inner_example"} // []string | (optional) + userNameNisw := []string{"Inner_example"} // []string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp) } ``` @@ -8473,16 +8526,77 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasObjectChangesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | + **action** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **actionN** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **changedObjectId** | **[]int32** | | + **changedObjectIdEmpty** | **bool** | | + **changedObjectIdGt** | **[]int32** | | + **changedObjectIdGte** | **[]int32** | | + **changedObjectIdLt** | **[]int32** | | + **changedObjectIdLte** | **[]int32** | | + **changedObjectIdN** | **[]int32** | | + **changedObjectType** | **string** | | + **changedObjectTypeN** | **string** | | + **changedObjectTypeId** | **[]int32** | | + **changedObjectTypeIdN** | **[]int32** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **objectRepr** | **[]string** | | + **objectReprEmpty** | **bool** | | + **objectReprIc** | **[]string** | | + **objectReprIe** | **[]string** | | + **objectReprIew** | **[]string** | | + **objectReprIsw** | **[]string** | | + **objectReprN** | **[]string** | | + **objectReprNic** | **[]string** | | + **objectReprNie** | **[]string** | | + **objectReprNiew** | **[]string** | | + **objectReprNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **relatedObjectId** | **[]int32** | | + **relatedObjectIdEmpty** | **bool** | | + **relatedObjectIdGt** | **[]int32** | | + **relatedObjectIdGte** | **[]int32** | | + **relatedObjectIdLt** | **[]int32** | | + **relatedObjectIdLte** | **[]int32** | | + **relatedObjectIdN** | **[]int32** | | + **relatedObjectType** | **int32** | | + **relatedObjectTypeN** | **int32** | | + **requestId** | **string** | | + **timeAfter** | **time.Time** | | + **timeBefore** | **time.Time** | | + **user** | **[]string** | User name | + **userN** | **[]string** | User name | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **userName** | **[]string** | | + **userNameEmpty** | **bool** | | + **userNameIc** | **[]string** | | + **userNameIe** | **[]string** | | + **userNameIew** | **[]string** | | + **userNameIsw** | **[]string** | | + **userNameN** | **[]string** | | + **userNameNic** | **[]string** | | + **userNameNie** | **[]string** | | + **userNameNiew** | **[]string** | | + **userNameNisw** | **[]string** | | ### Return type - (empty response body) +[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) ### Authorization @@ -8490,17 +8604,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined +- **Content-Type**: Not defined +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasNotificationGroupsBulkPartialUpdate +## ExtrasObjectChangesRetrieve -> []NotificationGroup ExtrasNotificationGroupsBulkPartialUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() +> ObjectChange ExtrasObjectChangesRetrieve(ctx, id).Execute() @@ -8519,36 +8633,40 @@ import ( ) func main() { - notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | + id := int32(56) // int32 | A unique integer value identifying this object change. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsBulkPartialUpdate`: []NotificationGroup - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasObjectChangesRetrieve`: ObjectChange + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object change. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasObjectChangesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | + ### Return type -[**[]NotificationGroup**](NotificationGroup.md) +[**ObjectChange**](ObjectChange.md) ### Authorization @@ -8556,7 +8674,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8564,9 +8682,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsBulkUpdate +## ExtrasObjectTypesList -> []NotificationGroup ExtrasNotificationGroupsBulkUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() +> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() @@ -8585,17 +8703,23 @@ import ( ) func main() { - notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | + appLabel := "appLabel_example" // string | (optional) + id := int32(56) // int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + model := "model_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsBulkUpdate`: []NotificationGroup - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate`: %v\n", resp) + // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) } ``` @@ -8605,16 +8729,22 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | + **appLabel** | **string** | | + **id** | **int32** | | + **limit** | **int32** | Number of results to return per page. | + **model** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | ### Return type -[**[]NotificationGroup**](NotificationGroup.md) +[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) ### Authorization @@ -8622,7 +8752,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8630,9 +8760,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsCreate +## ExtrasObjectTypesRetrieve -> NotificationGroup ExtrasNotificationGroupsCreate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() +> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() @@ -8651,36 +8781,40 @@ import ( ) func main() { - notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | + id := int32(56) // int32 | A unique integer value identifying this object type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsCreate`: NotificationGroup - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsCreate`: %v\n", resp) + // response from `ExtrasObjectTypesRetrieve`: ObjectType + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object type. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | + ### Return type -[**NotificationGroup**](NotificationGroup.md) +[**ObjectType**](ObjectType.md) ### Authorization @@ -8688,7 +8822,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8696,9 +8830,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsDestroy +## ExtrasSavedFiltersBulkDestroy -> ExtrasNotificationGroupsDestroy(ctx, id).Execute() +> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() @@ -8717,13 +8851,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this notification group. + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8732,19 +8866,15 @@ func main() { ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | ### Return type @@ -8756,7 +8886,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8764,9 +8894,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsList +## ExtrasSavedFiltersBulkPartialUpdate -> PaginatedNotificationGroupList ExtrasNotificationGroupsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() +> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() @@ -8785,19 +8915,17 @@ import ( ) func main() { - limit := int32(56) // int32 | Number of results to return per page. (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsList`: PaginatedNotificationGroupList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsList`: %v\n", resp) + // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) } ``` @@ -8807,18 +8935,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **limit** | **int32** | Number of results to return per page. | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | ### Return type -[**PaginatedNotificationGroupList**](PaginatedNotificationGroupList.md) +[**[]SavedFilter**](SavedFilter.md) ### Authorization @@ -8826,7 +8952,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8834,9 +8960,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsPartialUpdate +## ExtrasSavedFiltersBulkUpdate -> NotificationGroup ExtrasNotificationGroupsPartialUpdate(ctx, id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() +> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() @@ -8855,42 +8981,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this notification group. - patchedNotificationGroupRequest := *openapiclient.NewPatchedNotificationGroupRequest() // PatchedNotificationGroupRequest | (optional) + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsPartialUpdate`: NotificationGroup - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate`: %v\n", resp) + // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **patchedNotificationGroupRequest** | [**PatchedNotificationGroupRequest**](PatchedNotificationGroupRequest.md) | | + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | ### Return type -[**NotificationGroup**](NotificationGroup.md) +[**[]SavedFilter**](SavedFilter.md) ### Authorization @@ -8906,9 +9026,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsRetrieve +## ExtrasSavedFiltersCreate -> NotificationGroup ExtrasNotificationGroupsRetrieve(ctx, id).Execute() +> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() @@ -8927,40 +9047,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this notification group. + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsRetrieve`: NotificationGroup - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsRetrieve`: %v\n", resp) + // response from `ExtrasSavedFiltersCreate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | ### Return type -[**NotificationGroup**](NotificationGroup.md) +[**SavedFilter**](SavedFilter.md) ### Authorization @@ -8968,7 +9084,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8976,9 +9092,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasNotificationGroupsUpdate +## ExtrasSavedFiltersDestroy -> NotificationGroup ExtrasNotificationGroupsUpdate(ctx, id).NotificationGroupRequest(notificationGroupRequest).Execute() +> ExtrasSavedFiltersDestroy(ctx, id).Execute() @@ -8997,18 +9113,15 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this notification group. - notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | + id := int32(56) // int32 | A unique integer value identifying this saved filter. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).NotificationGroupRequest(notificationGroupRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasNotificationGroupsUpdate`: NotificationGroup - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsUpdate`: %v\n", resp) } ``` @@ -9018,21 +9131,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification group. | +**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasNotificationGroupsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**NotificationGroup**](NotificationGroup.md) + (empty response body) ### Authorization @@ -9040,17 +9152,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json +- **Content-Type**: Not defined +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasNotificationsBulkDestroy +## ExtrasSavedFiltersList -> ExtrasNotificationsBulkDestroy(ctx).NotificationRequest(notificationRequest).Execute() +> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -9065,1976 +9177,213 @@ import ( "context" "fmt" "os" + "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + enabled := true // bool | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + objectType := "objectType_example" // string | (optional) + objectTypeIc := "objectTypeIc_example" // string | (optional) + objectTypeIe := "objectTypeIe_example" // string | (optional) + objectTypeIew := "objectTypeIew_example" // string | (optional) + objectTypeIsw := "objectTypeIsw_example" // string | (optional) + objectTypeN := "objectTypeN_example" // string | (optional) + objectTypeNic := "objectTypeNic_example" // string | (optional) + objectTypeNie := "objectTypeNie_example" // string | (optional) + objectTypeNiew := "objectTypeNiew_example" // string | (optional) + objectTypeNisw := "objectTypeNisw_example" // string | (optional) + objectTypeId := []int32{int32(123)} // []int32 | (optional) + objectTypeIdN := []int32{int32(123)} // []int32 | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + shared := true // bool | (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + usable := true // bool | (optional) + user := []string{"Inner_example"} // []string | User (name) (optional) + userN := []string{"Inner_example"} // []string | User (name) (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []int32{int32(123)} // []int32 | (optional) + weightGte := []int32{int32(123)} // []int32 | (optional) + weightLt := []int32{int32(123)} // []int32 | (optional) + weightLte := []int32{int32(123)} // []int32 | (optional) + weightN := []int32{int32(123)} // []int32 | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).NotificationRequest(notificationRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsBulkDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsBulkPartialUpdate - -> []Notification ExtrasNotificationsBulkPartialUpdate(ctx).NotificationRequest(notificationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsBulkPartialUpdate`: []Notification - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsBulkPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | - -### Return type - -[**[]Notification**](Notification.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsBulkUpdate - -> []Notification ExtrasNotificationsBulkUpdate(ctx).NotificationRequest(notificationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsBulkUpdate`: []Notification - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsBulkUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | - -### Return type - -[**[]Notification**](Notification.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsCreate - -> Notification ExtrasNotificationsCreate(ctx).NotificationRequest(notificationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).NotificationRequest(notificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsCreate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsCreate`: Notification - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsCreate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsCreateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | - -### Return type - -[**Notification**](Notification.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsDestroy - -> ExtrasNotificationsDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this notification. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsList - -> PaginatedNotificationList ExtrasNotificationsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - limit := int32(56) // int32 | Number of results to return per page. (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsList`: PaginatedNotificationList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **limit** | **int32** | Number of results to return per page. | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - -### Return type - -[**PaginatedNotificationList**](PaginatedNotificationList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsPartialUpdate - -> Notification ExtrasNotificationsPartialUpdate(ctx, id).PatchedNotificationRequest(patchedNotificationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this notification. - patchedNotificationRequest := *openapiclient.NewPatchedNotificationRequest() // PatchedNotificationRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).PatchedNotificationRequest(patchedNotificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsPartialUpdate`: Notification - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **patchedNotificationRequest** | [**PatchedNotificationRequest**](PatchedNotificationRequest.md) | | - -### Return type - -[**Notification**](Notification.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsRetrieve - -> Notification ExtrasNotificationsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this notification. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsRetrieve`: Notification - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**Notification**](Notification.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasNotificationsUpdate - -> Notification ExtrasNotificationsUpdate(ctx, id).NotificationRequest(notificationRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this notification. - notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).NotificationRequest(notificationRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasNotificationsUpdate`: Notification - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this notification. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasNotificationsUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | - -### Return type - -[**Notification**](Notification.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasObjectTypesList - -> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - appLabel := "appLabel_example" // string | (optional) - id := int32(56) // int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - model := "model_example" // string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **appLabel** | **string** | | - **id** | **int32** | | - **limit** | **int32** | Number of results to return per page. | - **model** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - -### Return type - -[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasObjectTypesRetrieve - -> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this object type. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasObjectTypesRetrieve`: ObjectType - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object type. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**ObjectType**](ObjectType.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersBulkDestroy - -> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersBulkPartialUpdate - -> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | - -### Return type - -[**[]SavedFilter**](SavedFilter.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersBulkUpdate - -> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | - -### Return type - -[**[]SavedFilter**](SavedFilter.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersCreate - -> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersCreate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | - -### Return type - -[**SavedFilter**](SavedFilter.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersDestroy - -> ExtrasSavedFiltersDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersList - -> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - "time" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - enabled := true // bool | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - objectType := "objectType_example" // string | (optional) - objectTypeIc := "objectTypeIc_example" // string | (optional) - objectTypeIe := "objectTypeIe_example" // string | (optional) - objectTypeIew := "objectTypeIew_example" // string | (optional) - objectTypeIsw := "objectTypeIsw_example" // string | (optional) - objectTypeN := "objectTypeN_example" // string | (optional) - objectTypeNic := "objectTypeNic_example" // string | (optional) - objectTypeNie := "objectTypeNie_example" // string | (optional) - objectTypeNiew := "objectTypeNiew_example" // string | (optional) - objectTypeNisw := "objectTypeNisw_example" // string | (optional) - objectTypeId := []int32{int32(123)} // []int32 | (optional) - objectTypeIdN := []int32{int32(123)} // []int32 | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - shared := true // bool | (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - usable := true // bool | (optional) - user := []string{"Inner_example"} // []string | User (name) (optional) - userN := []string{"Inner_example"} // []string | User (name) (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - weight := []int32{int32(123)} // []int32 | (optional) - weightEmpty := true // bool | (optional) - weightGt := []int32{int32(123)} // []int32 | (optional) - weightGte := []int32{int32(123)} // []int32 | (optional) - weightLt := []int32{int32(123)} // []int32 | (optional) - weightLte := []int32{int32(123)} // []int32 | (optional) - weightN := []int32{int32(123)} // []int32 | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **enabled** | **bool** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | - **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **objectType** | **string** | | - **objectTypeIc** | **string** | | - **objectTypeIe** | **string** | | - **objectTypeIew** | **string** | | - **objectTypeIsw** | **string** | | - **objectTypeN** | **string** | | - **objectTypeNic** | **string** | | - **objectTypeNie** | **string** | | - **objectTypeNiew** | **string** | | - **objectTypeNisw** | **string** | | - **objectTypeId** | **[]int32** | | - **objectTypeIdN** | **[]int32** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **shared** | **bool** | | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | - **updatedByRequest** | **string** | | - **usable** | **bool** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **weight** | **[]int32** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]int32** | | - **weightGte** | **[]int32** | | - **weightLt** | **[]int32** | | - **weightLte** | **[]int32** | | - **weightN** | **[]int32** | | - -### Return type - -[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersPartialUpdate - -> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | - -### Return type - -[**SavedFilter**](SavedFilter.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersRetrieve - -> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersRetrieve`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**SavedFilter**](SavedFilter.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasSavedFiltersUpdate - -> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasSavedFiltersUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | - -### Return type - -[**SavedFilter**](SavedFilter.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasScriptsCreate - -> Script ExtrasScriptsCreate(ctx).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasScriptsCreate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) -} -``` - -### Path Parameters - -This endpoint does not need any parameter. - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern - - -### Return type - -[**Script**](Script.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasScriptsDestroy - -> ExtrasScriptsDestroy(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := "id_example" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - - (empty response body) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: Not defined - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasScriptsList - -> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - isExecutable := true // bool | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) - moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasScriptsList`: PaginatedScriptList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) -} -``` - -### Path Parameters - - - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **isExecutable** | **bool** | | - **limit** | **int32** | Number of results to return per page. | - **moduleId** | **[]int32** | Script module (ID) | - **moduleIdN** | **[]int32** | Script module (ID) | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - -### Return type - -[**PaginatedScriptList**](PaginatedScriptList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasScriptsPartialUpdate - -> Script ExtrasScriptsPartialUpdate(ctx, id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := "id_example" // string | - patchedScriptInputRequest := *openapiclient.NewPatchedScriptInputRequest() // PatchedScriptInputRequest | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasScriptsPartialUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **patchedScriptInputRequest** | [**PatchedScriptInputRequest**](PatchedScriptInputRequest.md) | | - -### Return type - -[**Script**](Script.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasScriptsRetrieve - -> Script ExtrasScriptsRetrieve(ctx, id).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := "id_example" // string | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasScriptsRetrieve`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | - -### Other Parameters - -Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - -### Return type - -[**Script**](Script.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## ExtrasScriptsUpdate - -> Script ExtrasScriptsUpdate(ctx, id).ScriptInputRequest(scriptInputRequest).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := "id_example" // string | - scriptInputRequest := *openapiclient.NewScriptInputRequest(interface{}(123), false) // ScriptInputRequest | - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).ScriptInputRequest(scriptInputRequest).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `ExtrasScriptsUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) + } + // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **scriptInputRequest** | [**ScriptInputRequest**](ScriptInputRequest.md) | | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **enabled** | **bool** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **objectType** | **string** | | + **objectTypeIc** | **string** | | + **objectTypeIe** | **string** | | + **objectTypeIew** | **string** | | + **objectTypeIsw** | **string** | | + **objectTypeN** | **string** | | + **objectTypeNic** | **string** | | + **objectTypeNie** | **string** | | + **objectTypeNiew** | **string** | | + **objectTypeNisw** | **string** | | + **objectTypeId** | **[]int32** | | + **objectTypeIdN** | **[]int32** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **shared** | **bool** | | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **updatedByRequest** | **string** | | + **usable** | **bool** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **weight** | **[]int32** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]int32** | | + **weightGte** | **[]int32** | | + **weightLt** | **[]int32** | | + **weightLte** | **[]int32** | | + **weightN** | **[]int32** | | ### Return type -[**Script**](Script.md) +[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) ### Authorization @@ -11042,7 +9391,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -11050,9 +9399,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsBulkDestroy +## ExtrasSavedFiltersPartialUpdate -> ExtrasSubscriptionsBulkDestroy(ctx).SubscriptionRequest(subscriptionRequest).Execute() +> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() @@ -11071,34 +9420,42 @@ import ( ) func main() { - subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | + id := int32(56) // int32 | A unique integer value identifying this saved filter. + patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | + + **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | ### Return type - (empty response body) +[**SavedFilter**](SavedFilter.md) ### Authorization @@ -11107,16 +9464,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **Accept**: Not defined +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSubscriptionsBulkPartialUpdate +## ExtrasSavedFiltersRetrieve -> []Subscription ExtrasSubscriptionsBulkPartialUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() +> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() @@ -11135,36 +9492,40 @@ import ( ) func main() { - subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | + id := int32(56) // int32 | A unique integer value identifying this saved filter. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsBulkPartialUpdate`: []Subscription - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasSavedFiltersRetrieve`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | + ### Return type -[**[]Subscription**](Subscription.md) +[**SavedFilter**](SavedFilter.md) ### Authorization @@ -11172,7 +9533,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -11180,9 +9541,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsBulkUpdate +## ExtrasSavedFiltersUpdate -> []Subscription ExtrasSubscriptionsBulkUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() +> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() @@ -11201,36 +9562,42 @@ import ( ) func main() { - subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | + id := int32(56) // int32 | A unique integer value identifying this saved filter. + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsBulkUpdate`: []Subscription - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkUpdate`: %v\n", resp) + // response from `ExtrasSavedFiltersUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | + + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | ### Return type -[**[]Subscription**](Subscription.md) +[**SavedFilter**](SavedFilter.md) ### Authorization @@ -11246,9 +9613,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsCreate +## ExtrasScriptsCreate -> Subscription ExtrasSubscriptionsCreate(ctx).SubscriptionRequest(subscriptionRequest).Execute() +> Script ExtrasScriptsCreate(ctx).Execute() @@ -11267,36 +9634,31 @@ import ( ) func main() { - subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsCreate`: Subscription - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsCreate`: %v\n", resp) + // response from `ExtrasScriptsCreate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) } ``` ### Path Parameters - +This endpoint does not need any parameter. ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsCreateRequest struct via the builder pattern - +Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Subscription**](Subscription.md) +[**Script**](Script.md) ### Authorization @@ -11304,7 +9666,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -11312,9 +9674,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsDestroy +## ExtrasScriptsDestroy -> ExtrasSubscriptionsDestroy(ctx, id).Execute() +> ExtrasScriptsDestroy(ctx, id).Execute() @@ -11333,13 +9695,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this subscription. + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -11351,11 +9713,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this subscription. | +**id** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -11380,9 +9742,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsList +## ExtrasScriptsList -> PaginatedSubscriptionList ExtrasSubscriptionsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() +> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() @@ -11401,19 +9763,41 @@ import ( ) func main() { + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + isExecutable := true // bool | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) + moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsList`: PaginatedSubscriptionList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsList`: %v\n", resp) + // response from `ExtrasScriptsList`: PaginatedScriptList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) } ``` @@ -11423,18 +9807,40 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **isExecutable** | **bool** | | **limit** | **int32** | Number of results to return per page. | + **moduleId** | **[]int32** | Script module (ID) | + **moduleIdN** | **[]int32** | Script module (ID) | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | ### Return type -[**PaginatedSubscriptionList**](PaginatedSubscriptionList.md) +[**PaginatedScriptList**](PaginatedScriptList.md) ### Authorization @@ -11450,9 +9856,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsPartialUpdate +## ExtrasScriptsPartialUpdate -> Subscription ExtrasSubscriptionsPartialUpdate(ctx, id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() +> Script ExtrasScriptsPartialUpdate(ctx, id).Execute() @@ -11471,18 +9877,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this subscription. - patchedSubscriptionRequest := *openapiclient.NewPatchedSubscriptionRequest() // PatchedSubscriptionRequest | (optional) + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsPartialUpdate`: Subscription - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsPartialUpdate`: %v\n", resp) + // response from `ExtrasScriptsPartialUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) } ``` @@ -11492,21 +9897,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this subscription. | +**id** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **patchedSubscriptionRequest** | [**PatchedSubscriptionRequest**](PatchedSubscriptionRequest.md) | | ### Return type -[**Subscription**](Subscription.md) +[**Script**](Script.md) ### Authorization @@ -11514,7 +9918,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -11522,9 +9926,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsRetrieve +## ExtrasScriptsRetrieve -> Subscription ExtrasSubscriptionsRetrieve(ctx, id).Execute() +> Script ExtrasScriptsRetrieve(ctx, id).Execute() @@ -11543,17 +9947,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this subscription. + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsRetrieve`: Subscription - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsRetrieve`: %v\n", resp) + // response from `ExtrasScriptsRetrieve`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) } ``` @@ -11563,11 +9967,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this subscription. | +**id** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -11576,7 +9980,7 @@ Name | Type | Description | Notes ### Return type -[**Subscription**](Subscription.md) +[**Script**](Script.md) ### Authorization @@ -11592,9 +9996,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSubscriptionsUpdate +## ExtrasScriptsUpdate -> Subscription ExtrasSubscriptionsUpdate(ctx, id).SubscriptionRequest(subscriptionRequest).Execute() +> Script ExtrasScriptsUpdate(ctx, id).Execute() @@ -11613,18 +10017,17 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this subscription. - subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | + id := "id_example" // string | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).SubscriptionRequest(subscriptionRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSubscriptionsUpdate`: Subscription - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsUpdate`: %v\n", resp) + // response from `ExtrasScriptsUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) } ``` @@ -11634,21 +10037,20 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this subscription. | +**id** | **string** | | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSubscriptionsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Subscription**](Subscription.md) +[**Script**](Script.md) ### Authorization @@ -11656,7 +10058,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) diff --git a/docs/ExtrasCustomLinksListButtonClassParameter.md b/docs/ExtrasCustomLinksListButtonClassParameter.md index 5540c98b8..f0207ccf5 100644 --- a/docs/ExtrasCustomLinksListButtonClassParameter.md +++ b/docs/ExtrasCustomLinksListButtonClassParameter.md @@ -9,8 +9,6 @@ * `CYAN` (value: `"cyan"`) -* `DEFAULT` (value: `"default"`) - * `GHOST_DARK` (value: `"ghost-dark"`) * `GRAY` (value: `"gray"`) @@ -21,6 +19,8 @@ * `ORANGE` (value: `"orange"`) +* `OUTLINE_DARK` (value: `"outline-dark"`) + * `PINK` (value: `"pink"`) * `PURPLE` (value: `"purple"`) diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md index 7822b3e13..1b55f2fa8 100644 --- a/docs/FHRPGroup.md +++ b/docs/FHRPGroup.md @@ -5,27 +5,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] -**Name** | Pointer to **string** | | [optional] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | +**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | **GroupId** | **int32** | | -**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] -**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**IpAddresses** | [**[]BriefIPAddress**](BriefIPAddress.md) | | [readonly] ## Methods ### NewFHRPGroup -`func NewFHRPGroup(id int32, url string, displayUrl string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress, ) *FHRPGroup` +`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroup` NewFHRPGroup instantiates a new FHRPGroup object This constructor will assign default values to properties that have it defined, @@ -60,31 +50,6 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. -### GetName - -`func (o *FHRPGroup) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *FHRPGroup) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *FHRPGroup) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *FHRPGroup) HasName() bool` - -HasName returns a boolean if a field has been set. - ### GetUrl `func (o *FHRPGroup) GetUrl() string` @@ -105,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *FHRPGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *FHRPGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *FHRPGroup) GetDisplay() string` @@ -147,20 +92,20 @@ SetDisplay sets Display field to given value. ### GetProtocol -`func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol` +`func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` +`func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` +`func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -185,56 +130,6 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. -### GetAuthType - -`func (o *FHRPGroup) GetAuthType() AuthenticationType` - -GetAuthType returns the AuthType field if non-nil, zero value otherwise. - -### GetAuthTypeOk - -`func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool)` - -GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthType - -`func (o *FHRPGroup) SetAuthType(v AuthenticationType)` - -SetAuthType sets AuthType field to given value. - -### HasAuthType - -`func (o *FHRPGroup) HasAuthType() bool` - -HasAuthType returns a boolean if a field has been set. - -### GetAuthKey - -`func (o *FHRPGroup) GetAuthKey() string` - -GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. - -### GetAuthKeyOk - -`func (o *FHRPGroup) GetAuthKeyOk() (*string, bool)` - -GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthKey - -`func (o *FHRPGroup) SetAuthKey(v string)` - -SetAuthKey sets AuthKey field to given value. - -### HasAuthKey - -`func (o *FHRPGroup) HasAuthKey() bool` - -HasAuthKey returns a boolean if a field has been set. - ### GetDescription `func (o *FHRPGroup) GetDescription() string` @@ -260,161 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *FHRPGroup) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *FHRPGroup) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *FHRPGroup) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *FHRPGroup) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *FHRPGroup) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *FHRPGroup) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *FHRPGroup) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *FHRPGroup) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *FHRPGroup) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *FHRPGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *FHRPGroup) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *FHRPGroup) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *FHRPGroup) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *FHRPGroup) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *FHRPGroup) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *FHRPGroup) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *FHRPGroup) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *FHRPGroup) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *FHRPGroup) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *FHRPGroup) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetIpAddresses - -`func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress` - -GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. - -### GetIpAddressesOk - -`func (o *FHRPGroup) GetIpAddressesOk() (*[]BriefIPAddress, bool)` - -GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpAddresses - -`func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress)` - -SetIpAddresses sets IpAddresses field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FHRPGroupAssignment.md b/docs/FHRPGroupAssignment.md index c12dfa473..c6fa9037f 100644 --- a/docs/FHRPGroupAssignment.md +++ b/docs/FHRPGroupAssignment.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Group** | [**BriefFHRPGroup**](BriefFHRPGroup.md) | | +**Group** | [**FHRPGroup**](FHRPGroup.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Interface** | **interface{}** | | [readonly] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignment -`func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` +`func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` NewFHRPGroupAssignment instantiates a new FHRPGroupAssignment object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetGroup -`func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup` +`func (o *FHRPGroupAssignment) GetGroup() FHRPGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool)` +`func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup)` +`func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupAssignmentRequest.md b/docs/FHRPGroupAssignmentRequest.md index 89a52663c..b589eac9d 100644 --- a/docs/FHRPGroupAssignmentRequest.md +++ b/docs/FHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | +**Group** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Priority** | **int32** | | @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignmentRequest -`func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` +`func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` NewFHRPGroupAssignmentRequest instantiates a new FHRPGroupAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` +`func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` +`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` +`func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md index 3cf2f71ca..f7572c47f 100644 --- a/docs/FHRPGroupRequest.md +++ b/docs/FHRPGroupRequest.md @@ -4,21 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Name** | Pointer to **string** | | [optional] -**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | +**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | **GroupId** | **int32** | | -**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] -**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewFHRPGroupRequest -`func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` +`func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` NewFHRPGroupRequest instantiates a new FHRPGroupRequest object This constructor will assign default values to properties that have it defined, @@ -33,47 +27,22 @@ NewFHRPGroupRequestWithDefaults instantiates a new FHRPGroupRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetName - -`func (o *FHRPGroupRequest) GetName() string` - -GetName returns the Name field if non-nil, zero value otherwise. - -### GetNameOk - -`func (o *FHRPGroupRequest) GetNameOk() (*string, bool)` - -GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetName - -`func (o *FHRPGroupRequest) SetName(v string)` - -SetName sets Name field to given value. - -### HasName - -`func (o *FHRPGroupRequest) HasName() bool` - -HasName returns a boolean if a field has been set. - ### GetProtocol -`func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` +`func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` +`func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` +`func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -98,56 +67,6 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. -### GetAuthType - -`func (o *FHRPGroupRequest) GetAuthType() AuthenticationType` - -GetAuthType returns the AuthType field if non-nil, zero value otherwise. - -### GetAuthTypeOk - -`func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool)` - -GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthType - -`func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType)` - -SetAuthType sets AuthType field to given value. - -### HasAuthType - -`func (o *FHRPGroupRequest) HasAuthType() bool` - -HasAuthType returns a boolean if a field has been set. - -### GetAuthKey - -`func (o *FHRPGroupRequest) GetAuthKey() string` - -GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. - -### GetAuthKeyOk - -`func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool)` - -GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAuthKey - -`func (o *FHRPGroupRequest) SetAuthKey(v string)` - -SetAuthKey sets AuthKey field to given value. - -### HasAuthKey - -`func (o *FHRPGroupRequest) HasAuthKey() bool` - -HasAuthKey returns a boolean if a field has been set. - ### GetDescription `func (o *FHRPGroupRequest) GetDescription() string` @@ -173,81 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *FHRPGroupRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *FHRPGroupRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *FHRPGroupRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *FHRPGroupRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *FHRPGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *FHRPGroupRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *FHRPGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *FHRPGroupRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/FrontPort.md b/docs/FrontPort.md index 216320be7..5cba25bc8 100644 --- a/docs/FrontPort.md +++ b/docs/FrontPort.md @@ -6,10 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -18,10 +17,10 @@ Name | Type | Description | Notes **RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -32,7 +31,7 @@ Name | Type | Description | Notes ### NewFrontPort -`func NewFrontPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` +`func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` NewFrontPort instantiates a new FrontPort object This constructor will assign default values to properties that have it defined, @@ -87,26 +86,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *FrontPort) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *FrontPort) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *FrontPort) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *FrontPort) GetDisplay() string` @@ -129,40 +108,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *FrontPort) GetDevice() BriefDevice` +`func (o *FrontPort) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool)` +`func (o *FrontPort) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPort) SetDevice(v BriefDevice)` +`func (o *FrontPort) SetDevice(v Device)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPort) GetModule() BriefModule` +`func (o *FrontPort) GetModule() Module` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPort) GetModuleOk() (*BriefModule, bool)` +`func (o *FrontPort) GetModuleOk() (*Module, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPort) SetModule(v BriefModule)` +`func (o *FrontPort) SetModule(v Module)` SetModule sets Module field to given value. @@ -369,20 +348,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *FrontPort) GetCable() BriefCable` +`func (o *FrontPort) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *FrontPort) GetCableOk() (*BriefCable, bool)` +`func (o *FrontPort) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *FrontPort) SetCable(v BriefCable)` +`func (o *FrontPort) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -457,16 +436,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *FrontPort) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *FrontPort) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *FrontPort) GetTags() []NestedTag` diff --git a/docs/FrontPortRearPort.md b/docs/FrontPortRearPort.md index d73450e26..59db5e9c0 100644 --- a/docs/FrontPortRearPort.md +++ b/docs/FrontPortRearPort.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] @@ -16,7 +15,7 @@ Name | Type | Description | Notes ### NewFrontPortRearPort -`func NewFrontPortRearPort(id int32, url string, displayUrl string, display string, name string, ) *FrontPortRearPort` +`func NewFrontPortRearPort(id int32, url string, display string, name string, ) *FrontPortRearPort` NewFrontPortRearPort instantiates a new FrontPortRearPort object This constructor will assign default values to properties that have it defined, @@ -71,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *FrontPortRearPort) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *FrontPortRearPort) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *FrontPortRearPort) GetDisplay() string` diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md index bd9fb2cd9..91c8194b7 100644 --- a/docs/FrontPortRequest.md +++ b/docs/FrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewFrontPortRequest -`func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` +`func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` NewFrontPortRequest instantiates a new FrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *FrontPortRequest) GetDevice() BriefDeviceRequest` +`func (o *FrontPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *FrontPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPortRequest) GetModule() BriefModuleRequest` +`func (o *FrontPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPortRequest) SetModule(v BriefModuleRequest)` +`func (o *FrontPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md index ceb079508..31aa9d758 100644 --- a/docs/FrontPortTemplate.md +++ b/docs/FrontPortTemplate.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**BriefRearPortTemplate**](BriefRearPortTemplate.md) | | +**RearPort** | [**RearPortTemplate**](RearPortTemplate.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplate -`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` +`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` NewFrontPortTemplate instantiates a new FrontPortTemplate object This constructor will assign default values to properties that have it defined, @@ -100,20 +100,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType` +`func (o *FrontPortTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *FrontPortTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -135,20 +135,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplate) GetModuleType() BriefModuleType` +`func (o *FrontPortTemplate) GetModuleType() ModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` +`func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplate) SetModuleType(v BriefModuleType)` +`func (o *FrontPortTemplate) SetModuleType(v ModuleType)` SetModuleType sets ModuleType field to given value. @@ -260,20 +260,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate` +`func (o *FrontPortTemplate) GetRearPort() RearPortTemplate` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool)` +`func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate)` +`func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md index 8e27f7687..08dc1ef79 100644 --- a/docs/FrontPortTemplateRequest.md +++ b/docs/FrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | +**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplateRequest -`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *FrontPortTemplateRequest` +`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *FrontPortTemplateRequest` NewFrontPortTemplateRequest instantiates a new FrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` +`func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` +`func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` +`func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTypeLabel.md b/docs/FrontPortTypeLabel.md index 0024e2bae..767d7d0ef 100644 --- a/docs/FrontPortTypeLabel.md +++ b/docs/FrontPortTypeLabel.md @@ -95,22 +95,6 @@ * `SPLICE` (value: `"Splice"`) -* `USB_TYPE_A` (value: `"USB Type A"`) - -* `USB_TYPE_B` (value: `"USB Type B"`) - -* `USB_TYPE_C` (value: `"USB Type C"`) - -* `USB_MINI_A` (value: `"USB Mini A"`) - -* `USB_MINI_B` (value: `"USB Mini B"`) - -* `USB_MICRO_A` (value: `"USB Micro A"`) - -* `USB_MICRO_B` (value: `"USB Micro B"`) - -* `USB_MICRO_AB` (value: `"USB Micro AB"`) - * `OTHER` (value: `"Other"`) diff --git a/docs/FrontPortTypeValue.md b/docs/FrontPortTypeValue.md index 6265dfe24..c6ac18122 100644 --- a/docs/FrontPortTypeValue.md +++ b/docs/FrontPortTypeValue.md @@ -95,22 +95,6 @@ * `SPLICE` (value: `"splice"`) -* `USB_A` (value: `"usb-a"`) - -* `USB_B` (value: `"usb-b"`) - -* `USB_C` (value: `"usb-c"`) - -* `USB_MINI_A` (value: `"usb-mini-a"`) - -* `USB_MINI_B` (value: `"usb-mini-b"`) - -* `USB_MICRO_A` (value: `"usb-micro-a"`) - -* `USB_MICRO_B` (value: `"usb-micro-b"`) - -* `USB_MICRO_AB` (value: `"usb-micro-ab"`) - * `OTHER` (value: `"other"`) diff --git a/docs/Group.md b/docs/Group.md index 38387646e..c9ac7b587 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -17,7 +16,7 @@ Name | Type | Description | Notes ### NewGroup -`func NewGroup(id int32, url string, displayUrl string, display string, name string, userCount int32, ) *Group` +`func NewGroup(id int32, url string, display string, name string, userCount int32, ) *Group` NewGroup instantiates a new Group object This constructor will assign default values to properties that have it defined, @@ -72,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Group) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Group) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Group) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Group) GetDisplay() string` diff --git a/docs/IKEPolicy.md b/docs/IKEPolicy.md index 2dce4ceae..91c8a8e58 100644 --- a/docs/IKEPolicy.md +++ b/docs/IKEPolicy.md @@ -6,12 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | | -**Mode** | Pointer to [**IKEPolicyMode**](IKEPolicyMode.md) | | [optional] +**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | | **Proposals** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -24,7 +23,7 @@ Name | Type | Description | Notes ### NewIKEPolicy -`func NewIKEPolicy(id int32, url string, displayUrl string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` +`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` NewIKEPolicy instantiates a new IKEPolicy object This constructor will assign default values to properties that have it defined, @@ -79,26 +78,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IKEPolicy) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IKEPolicy) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IKEPolicy) GetDisplay() string` @@ -203,11 +182,6 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. -### HasMode - -`func (o *IKEPolicy) HasMode() bool` - -HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEPolicyRequest.md b/docs/IKEPolicyRequest.md index 919cb92b9..9a18d7f6d 100644 --- a/docs/IKEPolicyRequest.md +++ b/docs/IKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | -**Mode** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional] +**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewIKEPolicyRequest -`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, ) *IKEPolicyRequest` +`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest` NewIKEPolicyRequest instantiates a new IKEPolicyRequest object This constructor will assign default values to properties that have it defined, @@ -117,11 +117,6 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. -### HasMode - -`func (o *IKEPolicyRequest) HasMode() bool` - -HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEProposal.md b/docs/IKEProposal.md index 906ae7899..ee499984d 100644 --- a/docs/IKEProposal.md +++ b/docs/IKEProposal.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethod**](IKEProposalAuthenticationMethod.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | -**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | [optional] +**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | **Group** | [**IKEProposalGroup**](IKEProposalGroup.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -25,7 +24,7 @@ Name | Type | Description | Notes ### NewIKEProposal -`func NewIKEProposal(id int32, url string, displayUrl string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` +`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` NewIKEProposal instantiates a new IKEProposal object This constructor will assign default values to properties that have it defined, @@ -80,26 +79,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IKEProposal) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IKEProposal) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IKEProposal) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IKEProposal) GetDisplay() string` @@ -224,11 +203,6 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. -### HasAuthenticationAlgorithm - -`func (o *IKEProposal) HasAuthenticationAlgorithm() bool` - -HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IKEProposalRequest.md b/docs/IKEProposalRequest.md index a96502c8a..d61d24fd8 100644 --- a/docs/IKEProposalRequest.md +++ b/docs/IKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] +**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | **Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewIKEProposalRequest -`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` +`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` NewIKEProposalRequest instantiates a new IKEProposalRequest object This constructor will assign default values to properties that have it defined, @@ -138,11 +138,6 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. -### HasAuthenticationAlgorithm - -`func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool` - -HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IPAddress.md b/docs/IPAddress.md index a782cecc4..ed004ef14 100644 --- a/docs/IPAddress.md +++ b/docs/IPAddress.md @@ -6,32 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Address** | **string** | | -**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Status** | Pointer to [**IPAddressStatus**](IPAddressStatus.md) | | [optional] -**Role** | Pointer to [**IPAddressRole**](IPAddressRole.md) | | [optional] -**AssignedObjectType** | Pointer to **NullableString** | | [optional] -**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] -**AssignedObject** | **interface{}** | | [readonly] -**NatInside** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] -**NatOutside** | [**[]NestedIPAddress**](NestedIPAddress.md) | | [readonly] -**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewIPAddress -`func NewIPAddress(id int32, url string, displayUrl string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress` +`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *IPAddress` NewIPAddress instantiates a new IPAddress object This constructor will assign default values to properties that have it defined, @@ -86,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IPAddress) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IPAddress) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IPAddress) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IPAddress) GetDisplay() string` @@ -166,306 +130,6 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. -### GetVrf - -`func (o *IPAddress) GetVrf() BriefVRF` - -GetVrf returns the Vrf field if non-nil, zero value otherwise. - -### GetVrfOk - -`func (o *IPAddress) GetVrfOk() (*BriefVRF, bool)` - -GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVrf - -`func (o *IPAddress) SetVrf(v BriefVRF)` - -SetVrf sets Vrf field to given value. - -### HasVrf - -`func (o *IPAddress) HasVrf() bool` - -HasVrf returns a boolean if a field has been set. - -### SetVrfNil - -`func (o *IPAddress) SetVrfNil(b bool)` - - SetVrfNil sets the value for Vrf to be an explicit nil - -### UnsetVrf -`func (o *IPAddress) UnsetVrf()` - -UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -### GetTenant - -`func (o *IPAddress) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *IPAddress) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *IPAddress) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *IPAddress) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *IPAddress) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *IPAddress) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetStatus - -`func (o *IPAddress) GetStatus() IPAddressStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *IPAddress) SetStatus(v IPAddressStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *IPAddress) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRole - -`func (o *IPAddress) GetRole() IPAddressRole` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *IPAddress) SetRole(v IPAddressRole)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *IPAddress) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetAssignedObjectType - -`func (o *IPAddress) GetAssignedObjectType() string` - -GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. - -### GetAssignedObjectTypeOk - -`func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool)` - -GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectType - -`func (o *IPAddress) SetAssignedObjectType(v string)` - -SetAssignedObjectType sets AssignedObjectType field to given value. - -### HasAssignedObjectType - -`func (o *IPAddress) HasAssignedObjectType() bool` - -HasAssignedObjectType returns a boolean if a field has been set. - -### SetAssignedObjectTypeNil - -`func (o *IPAddress) SetAssignedObjectTypeNil(b bool)` - - SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil - -### UnsetAssignedObjectType -`func (o *IPAddress) UnsetAssignedObjectType()` - -UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil -### GetAssignedObjectId - -`func (o *IPAddress) GetAssignedObjectId() int64` - -GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. - -### GetAssignedObjectIdOk - -`func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool)` - -GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectId - -`func (o *IPAddress) SetAssignedObjectId(v int64)` - -SetAssignedObjectId sets AssignedObjectId field to given value. - -### HasAssignedObjectId - -`func (o *IPAddress) HasAssignedObjectId() bool` - -HasAssignedObjectId returns a boolean if a field has been set. - -### SetAssignedObjectIdNil - -`func (o *IPAddress) SetAssignedObjectIdNil(b bool)` - - SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil - -### UnsetAssignedObjectId -`func (o *IPAddress) UnsetAssignedObjectId()` - -UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil -### GetAssignedObject - -`func (o *IPAddress) GetAssignedObject() interface{}` - -GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. - -### GetAssignedObjectOk - -`func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool)` - -GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObject - -`func (o *IPAddress) SetAssignedObject(v interface{})` - -SetAssignedObject sets AssignedObject field to given value. - - -### SetAssignedObjectNil - -`func (o *IPAddress) SetAssignedObjectNil(b bool)` - - SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil - -### UnsetAssignedObject -`func (o *IPAddress) UnsetAssignedObject()` - -UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil -### GetNatInside - -`func (o *IPAddress) GetNatInside() NestedIPAddress` - -GetNatInside returns the NatInside field if non-nil, zero value otherwise. - -### GetNatInsideOk - -`func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool)` - -GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNatInside - -`func (o *IPAddress) SetNatInside(v NestedIPAddress)` - -SetNatInside sets NatInside field to given value. - -### HasNatInside - -`func (o *IPAddress) HasNatInside() bool` - -HasNatInside returns a boolean if a field has been set. - -### SetNatInsideNil - -`func (o *IPAddress) SetNatInsideNil(b bool)` - - SetNatInsideNil sets the value for NatInside to be an explicit nil - -### UnsetNatInside -`func (o *IPAddress) UnsetNatInside()` - -UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil -### GetNatOutside - -`func (o *IPAddress) GetNatOutside() []NestedIPAddress` - -GetNatOutside returns the NatOutside field if non-nil, zero value otherwise. - -### GetNatOutsideOk - -`func (o *IPAddress) GetNatOutsideOk() (*[]NestedIPAddress, bool)` - -GetNatOutsideOk returns a tuple with the NatOutside field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNatOutside - -`func (o *IPAddress) SetNatOutside(v []NestedIPAddress)` - -SetNatOutside sets NatOutside field to given value. - - -### GetDnsName - -`func (o *IPAddress) GetDnsName() string` - -GetDnsName returns the DnsName field if non-nil, zero value otherwise. - -### GetDnsNameOk - -`func (o *IPAddress) GetDnsNameOk() (*string, bool)` - -GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDnsName - -`func (o *IPAddress) SetDnsName(v string)` - -SetDnsName sets DnsName field to given value. - -### HasDnsName - -`func (o *IPAddress) HasDnsName() bool` - -HasDnsName returns a boolean if a field has been set. - ### GetDescription `func (o *IPAddress) GetDescription() string` @@ -491,141 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *IPAddress) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *IPAddress) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *IPAddress) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *IPAddress) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *IPAddress) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *IPAddress) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *IPAddress) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *IPAddress) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *IPAddress) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *IPAddress) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *IPAddress) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *IPAddress) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *IPAddress) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *IPAddress) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *IPAddress) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *IPAddress) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *IPAddress) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *IPAddress) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *IPAddress) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *IPAddress) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *IPAddress) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/IPAddressRequest.md b/docs/IPAddressRequest.md index 808e934b2..7944d1cf9 100644 --- a/docs/IPAddressRequest.md +++ b/docs/IPAddressRequest.md @@ -5,18 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Status** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] -**Role** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] -**AssignedObjectType** | Pointer to **NullableString** | | [optional] -**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] -**NatInside** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] -**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -57,256 +46,6 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. -### GetVrf - -`func (o *IPAddressRequest) GetVrf() BriefVRFRequest` - -GetVrf returns the Vrf field if non-nil, zero value otherwise. - -### GetVrfOk - -`func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` - -GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVrf - -`func (o *IPAddressRequest) SetVrf(v BriefVRFRequest)` - -SetVrf sets Vrf field to given value. - -### HasVrf - -`func (o *IPAddressRequest) HasVrf() bool` - -HasVrf returns a boolean if a field has been set. - -### SetVrfNil - -`func (o *IPAddressRequest) SetVrfNil(b bool)` - - SetVrfNil sets the value for Vrf to be an explicit nil - -### UnsetVrf -`func (o *IPAddressRequest) UnsetVrf()` - -UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -### GetTenant - -`func (o *IPAddressRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *IPAddressRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *IPAddressRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *IPAddressRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *IPAddressRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetStatus - -`func (o *IPAddressRequest) GetStatus() IPAddressStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *IPAddressRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRole - -`func (o *IPAddressRequest) GetRole() IPAddressRoleValue` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *IPAddressRequest) SetRole(v IPAddressRoleValue)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *IPAddressRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### GetAssignedObjectType - -`func (o *IPAddressRequest) GetAssignedObjectType() string` - -GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. - -### GetAssignedObjectTypeOk - -`func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` - -GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectType - -`func (o *IPAddressRequest) SetAssignedObjectType(v string)` - -SetAssignedObjectType sets AssignedObjectType field to given value. - -### HasAssignedObjectType - -`func (o *IPAddressRequest) HasAssignedObjectType() bool` - -HasAssignedObjectType returns a boolean if a field has been set. - -### SetAssignedObjectTypeNil - -`func (o *IPAddressRequest) SetAssignedObjectTypeNil(b bool)` - - SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil - -### UnsetAssignedObjectType -`func (o *IPAddressRequest) UnsetAssignedObjectType()` - -UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil -### GetAssignedObjectId - -`func (o *IPAddressRequest) GetAssignedObjectId() int64` - -GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. - -### GetAssignedObjectIdOk - -`func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` - -GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectId - -`func (o *IPAddressRequest) SetAssignedObjectId(v int64)` - -SetAssignedObjectId sets AssignedObjectId field to given value. - -### HasAssignedObjectId - -`func (o *IPAddressRequest) HasAssignedObjectId() bool` - -HasAssignedObjectId returns a boolean if a field has been set. - -### SetAssignedObjectIdNil - -`func (o *IPAddressRequest) SetAssignedObjectIdNil(b bool)` - - SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil - -### UnsetAssignedObjectId -`func (o *IPAddressRequest) UnsetAssignedObjectId()` - -UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil -### GetNatInside - -`func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest` - -GetNatInside returns the NatInside field if non-nil, zero value otherwise. - -### GetNatInsideOk - -`func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool)` - -GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetNatInside - -`func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest)` - -SetNatInside sets NatInside field to given value. - -### HasNatInside - -`func (o *IPAddressRequest) HasNatInside() bool` - -HasNatInside returns a boolean if a field has been set. - -### SetNatInsideNil - -`func (o *IPAddressRequest) SetNatInsideNil(b bool)` - - SetNatInsideNil sets the value for NatInside to be an explicit nil - -### UnsetNatInside -`func (o *IPAddressRequest) UnsetNatInside()` - -UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil -### GetDnsName - -`func (o *IPAddressRequest) GetDnsName() string` - -GetDnsName returns the DnsName field if non-nil, zero value otherwise. - -### GetDnsNameOk - -`func (o *IPAddressRequest) GetDnsNameOk() (*string, bool)` - -GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDnsName - -`func (o *IPAddressRequest) SetDnsName(v string)` - -SetDnsName sets DnsName field to given value. - -### HasDnsName - -`func (o *IPAddressRequest) HasDnsName() bool` - -HasDnsName returns a boolean if a field has been set. - ### GetDescription `func (o *IPAddressRequest) GetDescription() string` @@ -332,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *IPAddressRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *IPAddressRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *IPAddressRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *IPAddressRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *IPAddressRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *IPAddressRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *IPAddressRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *IPAddressRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *IPAddressRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *IPAddressRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *IPAddressRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *IPAddressRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/IPRange.md b/docs/IPRange.md index 6ea477e32..4d6a50ec0 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -6,16 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **StartAddress** | **string** | | **EndAddress** | **string** | | **Size** | **int32** | | [readonly] -**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] +**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -28,7 +27,7 @@ Name | Type | Description | Notes ### NewIPRange -`func NewIPRange(id int32, url string, displayUrl string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` +`func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime, ) *IPRange` NewIPRange instantiates a new IPRange object This constructor will assign default values to properties that have it defined, @@ -83,26 +82,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IPRange) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IPRange) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IPRange) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IPRange) GetDisplay() string` @@ -205,20 +184,20 @@ SetSize sets Size field to given value. ### GetVrf -`func (o *IPRange) GetVrf() BriefVRF` +`func (o *IPRange) GetVrf() VRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRange) GetVrfOk() (*BriefVRF, bool)` +`func (o *IPRange) GetVrfOk() (*VRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRange) SetVrf(v BriefVRF)` +`func (o *IPRange) SetVrf(v VRF)` SetVrf sets Vrf field to given value. @@ -240,20 +219,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRange) GetTenant() BriefTenant` +`func (o *IPRange) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRange) GetTenantOk() (*BriefTenant, bool)` +`func (o *IPRange) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRange) SetTenant(v BriefTenant)` +`func (o *IPRange) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -300,20 +279,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRange) GetRole() BriefRole` +`func (o *IPRange) GetRole() Role` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRange) GetRoleOk() (*BriefRole, bool)` +`func (o *IPRange) GetRoleOk() (*Role, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRange) SetRole(v BriefRole)` +`func (o *IPRange) SetRole(v Role)` SetRole sets Role field to given value. diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md index 11d861c01..35f6cc221 100644 --- a/docs/IPRangeRequest.md +++ b/docs/IPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *IPRangeRequest) GetVrf() BriefVRFRequest` +`func (o *IPRangeRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRangeRequest) SetVrf(v BriefVRFRequest)` +`func (o *IPRangeRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRangeRequest) GetTenant() BriefTenantRequest` +`func (o *IPRangeRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRangeRequest) SetTenant(v BriefTenantRequest)` +`func (o *IPRangeRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRangeRequest) GetRole() BriefRoleRequest` +`func (o *IPRangeRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRangeRequest) SetRole(v BriefRoleRequest)` +`func (o *IPRangeRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/IPSecPolicy.md b/docs/IPSecPolicy.md index 5106d9867..7d7e216e5 100644 --- a/docs/IPSecPolicy.md +++ b/docs/IPSecPolicy.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewIPSecPolicy -`func NewIPSecPolicy(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` +`func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *IPSecPolicy` NewIPSecPolicy instantiates a new IPSecPolicy object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IPSecPolicy) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IPSecPolicy) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IPSecPolicy) GetDisplay() string` diff --git a/docs/IPSecProfile.md b/docs/IPSecProfile.md index 2dca50bda..9582c5258 100644 --- a/docs/IPSecProfile.md +++ b/docs/IPSecProfile.md @@ -6,13 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | | -**IkePolicy** | [**BriefIKEPolicy**](BriefIKEPolicy.md) | | -**IpsecPolicy** | [**BriefIPSecPolicy**](BriefIPSecPolicy.md) | | +**IkePolicy** | [**IKEPolicy**](IKEPolicy.md) | | +**IpsecPolicy** | [**IPSecPolicy**](IPSecPolicy.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewIPSecProfile -`func NewIPSecProfile(id int32, url string, displayUrl string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` +`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` NewIPSecProfile instantiates a new IPSecProfile object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IPSecProfile) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IPSecProfile) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IPSecProfile) GetDisplay() string` @@ -185,40 +164,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy` +`func (o *IPSecProfile) GetIkePolicy() IKEPolicy` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool)` +`func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy)` +`func (o *IPSecProfile) SetIkePolicy(v IKEPolicy)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy` +`func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool)` +`func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy)` +`func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md index 35d915482..74f1a9171 100644 --- a/docs/IPSecProfileRequest.md +++ b/docs/IPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | -**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | +**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | +**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewIPSecProfileRequest -`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *IPSecProfileRequest` +`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *IPSecProfileRequest` NewIPSecProfileRequest instantiates a new IPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` +`func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` +`func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` +`func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` +`func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProposal.md b/docs/IPSecProposal.md index 9deb648fb..6664ca6a2 100644 --- a/docs/IPSecProposal.md +++ b/docs/IPSecProposal.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -24,7 +23,7 @@ Name | Type | Description | Notes ### NewIPSecProposal -`func NewIPSecProposal(id int32, url string, displayUrl string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` +`func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime, ) *IPSecProposal` NewIPSecProposal instantiates a new IPSecProposal object This constructor will assign default values to properties that have it defined, @@ -79,26 +78,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *IPSecProposal) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *IPSecProposal) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *IPSecProposal) GetDisplay() string` diff --git a/docs/ImageAttachment.md b/docs/ImageAttachment.md index c7288671f..254d230c2 100644 --- a/docs/ImageAttachment.md +++ b/docs/ImageAttachment.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **Parent** | **interface{}** | | [readonly] **Name** | Pointer to **string** | | [optional] **Image** | **string** | | -**ImageHeight** | **int32** | | [readonly] -**ImageWidth** | **int32** | | [readonly] +**ImageHeight** | **int32** | | +**ImageWidth** | **int32** | | **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] diff --git a/docs/ImageAttachmentRequest.md b/docs/ImageAttachmentRequest.md index b79b8f76e..7728d54e5 100644 --- a/docs/ImageAttachmentRequest.md +++ b/docs/ImageAttachmentRequest.md @@ -8,12 +8,14 @@ Name | Type | Description | Notes **ObjectId** | **int64** | | **Name** | Pointer to **string** | | [optional] **Image** | ***os.File** | | +**ImageHeight** | **int32** | | +**ImageWidth** | **int32** | | ## Methods ### NewImageAttachmentRequest -`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, ) *ImageAttachmentRequest` +`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest` NewImageAttachmentRequest instantiates a new ImageAttachmentRequest object This constructor will assign default values to properties that have it defined, @@ -113,6 +115,46 @@ and a boolean to check if the value has been set. SetImage sets Image field to given value. +### GetImageHeight + +`func (o *ImageAttachmentRequest) GetImageHeight() int32` + +GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. + +### GetImageHeightOk + +`func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` + +GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageHeight + +`func (o *ImageAttachmentRequest) SetImageHeight(v int32)` + +SetImageHeight sets ImageHeight field to given value. + + +### GetImageWidth + +`func (o *ImageAttachmentRequest) GetImageWidth() int32` + +GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. + +### GetImageWidthOk + +`func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` + +GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageWidth + +`func (o *ImageAttachmentRequest) SetImageWidth(v int32)` + +SetImageWidth sets ImageWidth field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Interface.md b/docs/Interface.md index 55aaa4d75..222d4907d 100644 --- a/docs/Interface.md +++ b/docs/Interface.md @@ -6,11 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | +**Device** | [**Device**](Device.md) | | **Vdcs** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional] -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -33,19 +32,19 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **WirelessLink** | [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **WirelessLans** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] -**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -59,7 +58,7 @@ Name | Type | Description | Notes ### NewInterface -`func NewInterface(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` +`func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` NewInterface instantiates a new Interface object This constructor will assign default values to properties that have it defined, @@ -114,26 +113,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Interface) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Interface) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Interface) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Interface) GetDisplay() string` @@ -156,20 +135,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Interface) GetDevice() BriefDevice` +`func (o *Interface) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Interface) GetDeviceOk() (*BriefDevice, bool)` +`func (o *Interface) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Interface) SetDevice(v BriefDevice)` +`func (o *Interface) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -201,20 +180,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *Interface) GetModule() BriefModule` +`func (o *Interface) GetModule() Module` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *Interface) GetModuleOk() (*BriefModule, bool)` +`func (o *Interface) GetModuleOk() (*Module, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *Interface) SetModule(v BriefModule)` +`func (o *Interface) SetModule(v Module)` SetModule sets Module field to given value. @@ -886,20 +865,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *Interface) GetUntaggedVlan() BriefVLAN` +`func (o *Interface) GetUntaggedVlan() VLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool)` +`func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *Interface) SetUntaggedVlan(v BriefVLAN)` +`func (o *Interface) SetUntaggedVlan(v VLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -971,20 +950,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *Interface) GetCable() BriefCable` +`func (o *Interface) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *Interface) GetCableOk() (*BriefCable, bool)` +`func (o *Interface) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *Interface) SetCable(v BriefCable)` +`func (o *Interface) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -1089,16 +1068,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *Interface) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *Interface) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetWirelessLans `func (o *Interface) GetWirelessLans() []WirelessLAN` @@ -1126,20 +1095,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *Interface) GetVrf() BriefVRF` +`func (o *Interface) GetVrf() VRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Interface) GetVrfOk() (*BriefVRF, bool)` +`func (o *Interface) GetVrfOk() (*VRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Interface) SetVrf(v BriefVRF)` +`func (o *Interface) SetVrf(v VRF)` SetVrf sets Vrf field to given value. @@ -1161,20 +1130,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination` +`func (o *Interface) GetL2vpnTermination() L2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` +`func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination)` +`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. @@ -1209,16 +1178,6 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. -### SetConnectedEndpointsNil - -`func (o *Interface) SetConnectedEndpointsNil(b bool)` - - SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil - -### UnsetConnectedEndpoints -`func (o *Interface) UnsetConnectedEndpoints()` - -UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *Interface) GetConnectedEndpointsType() string` @@ -1239,16 +1198,6 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. -### SetConnectedEndpointsTypeNil - -`func (o *Interface) SetConnectedEndpointsTypeNil(b bool)` - - SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil - -### UnsetConnectedEndpointsType -`func (o *Interface) UnsetConnectedEndpointsType()` - -UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *Interface) GetConnectedEndpointsReachable() bool` diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md index 2a12dd4c4..9a58216f3 100644 --- a/docs/InterfaceRequest.md +++ b/docs/InterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewInterfaceRequest -`func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` +`func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` NewInterfaceRequest instantiates a new InterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InterfaceRequest) GetDevice() BriefDeviceRequest` +`func (o *InterfaceRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest)` +`func (o *InterfaceRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *InterfaceRequest) GetModule() BriefModuleRequest` +`func (o *InterfaceRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *InterfaceRequest) SetModule(v BriefModuleRequest)` +`func (o *InterfaceRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest` +`func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` +`func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` +`func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *InterfaceRequest) GetVrf() BriefVRFRequest` +`func (o *InterfaceRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *InterfaceRequest) SetVrf(v BriefVRFRequest)` +`func (o *InterfaceRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/InterfaceTemplate.md b/docs/InterfaceTemplate.md index 447d3bcb8..fe7c519cd 100644 --- a/docs/InterfaceTemplate.md +++ b/docs/InterfaceTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType` +`func (o *InterfaceTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *InterfaceTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -138,20 +138,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplate) GetModuleType() BriefModuleType` +`func (o *InterfaceTemplate) GetModuleType() ModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` +`func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplate) SetModuleType(v BriefModuleType)` +`func (o *InterfaceTemplate) SetModuleType(v ModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md index 5646cf9a6..e916c8116 100644 --- a/docs/InterfaceTemplateRequest.md +++ b/docs/InterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md index 16fefb006..74891e8c2 100644 --- a/docs/InterfaceTypeLabel.md +++ b/docs/InterfaceTypeLabel.md @@ -19,8 +19,6 @@ * `_1000_BASE_T__1_GE` (value: `"1000BASE-T (1GE)"`) -* `_1000_BASE_TX__1_GE` (value: `"1000BASE-TX (1GE)"`) - * `_2_5_GBASE_T__2_5_GE` (value: `"2.5GBASE-T (2.5GE)"`) * `_5_GBASE_T__5_GE` (value: `"5GBASE-T (5GE)"`) @@ -127,8 +125,6 @@ * `IEEE_802_11AY` (value: `"IEEE 802.11ay"`) -* `IEEE_802_11BE` (value: `"IEEE 802.11be"`) - * `IEEE_802_15_1__BLUETOOTH` (value: `"IEEE 802.15.1 (Bluetooth)"`) * `OTHER__WIRELESS` (value: `"Other (Wireless)"`) diff --git a/docs/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md index e42eb73f5..4d0b0417f 100644 --- a/docs/InterfaceTypeValue.md +++ b/docs/InterfaceTypeValue.md @@ -19,8 +19,6 @@ * `_1000BASE_T` (value: `"1000base-t"`) -* `_1000BASE_TX` (value: `"1000base-tx"`) - * `_2_5GBASE_T` (value: `"2.5gbase-t"`) * `_5GBASE_T` (value: `"5gbase-t"`) @@ -127,8 +125,6 @@ * `IEEE802_11AY` (value: `"ieee802.11ay"`) -* `IEEE802_11BE` (value: `"ieee802.11be"`) - * `IEEE802_15_1` (value: `"ieee802.15.1"`) * `OTHER_WIRELESS` (value: `"other-wireless"`) diff --git a/docs/InventoryItem.md b/docs/InventoryItem.md index a066deff5..899e554b9 100644 --- a/docs/InventoryItem.md +++ b/docs/InventoryItem.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | +**Device** | [**Device**](Device.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] +**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -32,7 +31,7 @@ Name | Type | Description | Notes ### NewInventoryItem -`func NewInventoryItem(id int32, url string, displayUrl string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -87,26 +86,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *InventoryItem) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *InventoryItem) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *InventoryItem) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *InventoryItem) GetDisplay() string` @@ -129,20 +108,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *InventoryItem) GetDevice() BriefDevice` +`func (o *InventoryItem) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool)` +`func (o *InventoryItem) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItem) SetDevice(v BriefDevice)` +`func (o *InventoryItem) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -229,20 +208,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItem) GetRole() BriefInventoryItemRole` +`func (o *InventoryItem) GetRole() InventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool)` +`func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItem) SetRole(v BriefInventoryItemRole)` +`func (o *InventoryItem) SetRole(v InventoryItemRole)` SetRole sets Role field to given value. @@ -264,20 +243,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItem) GetManufacturer() BriefManufacturer` +`func (o *InventoryItem) GetManufacturer() Manufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool)` +`func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItem) SetManufacturer(v BriefManufacturer)` +`func (o *InventoryItem) SetManufacturer(v Manufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRequest.md b/docs/InventoryItemRequest.md index 8fe8b8c2d..580df6b26 100644 --- a/docs/InventoryItemRequest.md +++ b/docs/InventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewInventoryItemRequest -`func NewInventoryItemRequest(device BriefDeviceRequest, name string, ) *InventoryItemRequest` +`func NewInventoryItemRequest(device DeviceRequest, name string, ) *InventoryItemRequest` NewInventoryItemRequest instantiates a new InventoryItemRequest object This constructor will assign default values to properties that have it defined, @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest` +`func (o *InventoryItemRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest)` +`func (o *InventoryItemRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -141,20 +141,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` +`func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` +`func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` +`func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -176,20 +176,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRole.md b/docs/InventoryItemRole.md index 855098b6f..ffd538ba1 100644 --- a/docs/InventoryItemRole.md +++ b/docs/InventoryItemRole.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewInventoryItemRole -`func NewInventoryItemRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` +`func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, ) *InventoryItemRole` NewInventoryItemRole instantiates a new InventoryItemRole object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *InventoryItemRole) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *InventoryItemRole) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *InventoryItemRole) GetDisplay() string` diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md index eddb4a2b3..94833b0ef 100644 --- a/docs/InventoryItemTemplate.md +++ b/docs/InventoryItemTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**DeviceType** | [**DeviceType**](DeviceType.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] +**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType` +`func (o *InventoryItemTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *InventoryItemTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -203,20 +203,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole` +`func (o *InventoryItemTemplate) GetRole() InventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool)` +`func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole)` +`func (o *InventoryItemTemplate) SetRole(v InventoryItemRole)` SetRole sets Role field to given value. @@ -238,20 +238,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer` +`func (o *InventoryItemTemplate) GetManufacturer() Manufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool)` +`func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer)` +`func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md index c73bbf2c3..fb68460d1 100644 --- a/docs/InventoryItemTemplateRequest.md +++ b/docs/InventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplateRequest -`func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` +`func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` NewInventoryItemTemplateRequest instantiates a new InventoryItemTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` +`func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` +`func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -171,20 +171,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md index 5e65710d7..3113766da 100644 --- a/docs/IpamAPI.md +++ b/docs/IpamAPI.md @@ -182,7 +182,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -246,7 +246,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -312,7 +312,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -378,7 +378,7 @@ import ( ) func main() { - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -568,10 +568,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -654,10 +654,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -844,7 +844,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this aggregate. - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1057,7 +1057,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1121,7 +1121,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1187,7 +1187,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1253,7 +1253,7 @@ import ( ) func main() { - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1470,10 +1470,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1583,10 +1583,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1773,7 +1773,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this ASN range. - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2236,10 +2236,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -2328,10 +2328,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2589,7 +2589,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2653,7 +2653,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2719,7 +2719,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2785,7 +2785,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3225,7 +3225,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment. - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3296,7 +3296,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3360,7 +3360,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3426,7 +3426,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3492,7 +3492,7 @@ import ( ) func main() { - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3984,7 +3984,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group. - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4474,10 +4474,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4603,10 +4603,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -5408,10 +5408,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -5504,10 +5504,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -6446,20 +6446,20 @@ func main() { presentInVrf := "presentInVrf_example" // string | (optional) presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this prefix (optional) @@ -6468,10 +6468,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -6576,20 +6576,20 @@ Name | Type | Description | Notes **presentInVrf** | **string** | | **presentInVrfId** | **string** | | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this prefix | @@ -6598,10 +6598,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -8760,10 +8760,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -8860,10 +8860,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -10151,7 +10151,7 @@ Name | Type | Description | Notes ## IpamServicesList -> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() +> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() @@ -10205,6 +10205,10 @@ func main() { ipAddressN := []string{"Inner_example"} // []string | IP address (optional) ipAddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) ipAddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) + ipaddress := []string{"Inner_example"} // []string | IP address (optional) + ipaddressN := []string{"Inner_example"} // []string | IP address (optional) + ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) + ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10241,7 +10245,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10296,6 +10300,10 @@ Name | Type | Description | Notes **ipAddressN** | **[]string** | IP address | **ipAddressId** | **[]int32** | IP address (ID) | **ipAddressIdN** | **[]int32** | IP address (ID) | + **ipaddress** | **[]string** | IP address | + **ipaddressN** | **[]string** | IP address | + **ipaddressId** | **[]int32** | IP address (ID) | + **ipaddressIdN** | **[]int32** | IP address (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -11036,7 +11044,7 @@ Name | Type | Description | Notes ## IpamVlanGroupsList -> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -11058,7 +11066,7 @@ import ( func main() { cluster := int32(56) // int32 | (optional) clusterGroup := int32(56) // int32 | (optional) - containsVid := float32(8.14) // float32 | (optional) + clustergroup := int32(56) // int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11094,6 +11102,20 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) location := int32(56) // int32 | (optional) + maxVid := []int32{int32(123)} // []int32 | (optional) + maxVidEmpty := true // bool | (optional) + maxVidGt := []int32{int32(123)} // []int32 | (optional) + maxVidGte := []int32{int32(123)} // []int32 | (optional) + maxVidLt := []int32{int32(123)} // []int32 | (optional) + maxVidLte := []int32{int32(123)} // []int32 | (optional) + maxVidN := []int32{int32(123)} // []int32 | (optional) + minVid := []int32{int32(123)} // []int32 | (optional) + minVidEmpty := true // bool | (optional) + minVidGt := []int32{int32(123)} // []int32 | (optional) + minVidGte := []int32{int32(123)} // []int32 | (optional) + minVidLt := []int32{int32(123)} // []int32 | (optional) + minVidLte := []int32{int32(123)} // []int32 | (optional) + minVidN := []int32{int32(123)} // []int32 | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -11122,6 +11144,7 @@ func main() { scopeTypeN := "scopeTypeN_example" // string | (optional) site := int32(56) // int32 | (optional) siteGroup := int32(56) // int32 | (optional) + sitegroup := int32(56) // int32 | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -11139,7 +11162,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11162,7 +11185,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster** | **int32** | | **clusterGroup** | **int32** | | - **containsVid** | **float32** | | + **clustergroup** | **int32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -11198,6 +11221,20 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **location** | **int32** | | + **maxVid** | **[]int32** | | + **maxVidEmpty** | **bool** | | + **maxVidGt** | **[]int32** | | + **maxVidGte** | **[]int32** | | + **maxVidLt** | **[]int32** | | + **maxVidLte** | **[]int32** | | + **maxVidN** | **[]int32** | | + **minVid** | **[]int32** | | + **minVidEmpty** | **bool** | | + **minVidGt** | **[]int32** | | + **minVidGte** | **[]int32** | | + **minVidLt** | **[]int32** | | + **minVidLte** | **[]int32** | | + **minVidN** | **[]int32** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -11226,6 +11263,7 @@ Name | Type | Description | Notes **scopeTypeN** | **string** | | **site** | **int32** | | **siteGroup** | **int32** | | + **sitegroup** | **int32** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -11885,20 +11923,20 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) @@ -11907,10 +11945,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12005,20 +12043,20 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this VLAN | @@ -12027,10 +12065,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -12699,10 +12737,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12803,10 +12841,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/Job.md b/docs/Job.md index 9db5ca2fd..1366c5915 100644 --- a/docs/Job.md +++ b/docs/Job.md @@ -6,18 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectType** | **string** | | [readonly] **ObjectId** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | -**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | +**Status** | [**JobStatus**](JobStatus.md) | | **Created** | **time.Time** | | [readonly] **Scheduled** | Pointer to **NullableTime** | | [optional] **Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional] **Started** | Pointer to **NullableTime** | | [optional] **Completed** | Pointer to **NullableTime** | | [optional] -**User** | [**BriefUser**](BriefUser.md) | | [readonly] +**User** | [**User**](User.md) | | [readonly] **Data** | Pointer to **interface{}** | | [optional] **Error** | **string** | | [readonly] **JobId** | **string** | | @@ -26,7 +25,7 @@ Name | Type | Description | Notes ### NewJob -`func NewJob(id int32, url string, displayUrl string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string, ) *Job` +`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string, ) *Job` NewJob instantiates a new Job object This constructor will assign default values to properties that have it defined, @@ -81,26 +80,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Job) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Job) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Job) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Job) GetDisplay() string` @@ -198,20 +177,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *Job) GetStatus() BriefJobStatus` +`func (o *Job) GetStatus() JobStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *Job) GetStatusOk() (*BriefJobStatus, bool)` +`func (o *Job) GetStatusOk() (*JobStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *Job) SetStatus(v BriefJobStatus)` +`func (o *Job) SetStatus(v JobStatus)` SetStatus sets Status field to given value. @@ -378,20 +357,20 @@ HasCompleted returns a boolean if a field has been set. UnsetCompleted ensures that no value is present for Completed, not even an explicit nil ### GetUser -`func (o *Job) GetUser() BriefUser` +`func (o *Job) GetUser() User` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Job) GetUserOk() (*BriefUser, bool)` +`func (o *Job) GetUserOk() (*User, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Job) SetUser(v BriefUser)` +`func (o *Job) SetUser(v User)` SetUser sets User field to given value. diff --git a/docs/JournalEntry.md b/docs/JournalEntry.md index 2470a93a0..de511cc13 100644 --- a/docs/JournalEntry.md +++ b/docs/JournalEntry.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **AssignedObjectType** | **string** | | **AssignedObjectId** | **int64** | | @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewJournalEntry -`func NewJournalEntry(id int32, url string, displayUrl string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` +`func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime, ) *JournalEntry` NewJournalEntry instantiates a new JournalEntry object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *JournalEntry) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *JournalEntry) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *JournalEntry) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *JournalEntry) GetDisplay() string` diff --git a/docs/L2VPN.md b/docs/L2VPN.md index 015695032..85cc2783e 100644 --- a/docs/L2VPN.md +++ b/docs/L2VPN.md @@ -6,27 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] -**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] -**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**Type** | Pointer to [**L2VPNType**](L2VPNType.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPN -`func NewL2VPN(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *L2VPN` +`func NewL2VPN(id int32, url string, display string, name string, slug string, ) *L2VPN` NewL2VPN instantiates a new L2VPN object This constructor will assign default values to properties that have it defined, @@ -81,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *L2VPN) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *L2VPN) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *L2VPN) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *L2VPN) GetDisplay() string` @@ -198,20 +169,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPN) GetType() BriefL2VPNType` +`func (o *L2VPN) GetType() L2VPNType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool)` +`func (o *L2VPN) GetTypeOk() (*L2VPNType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPN) SetType(v BriefL2VPNType)` +`func (o *L2VPN) SetType(v L2VPNType)` SetType sets Type field to given value. @@ -221,56 +192,6 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. -### GetImportTargets - -`func (o *L2VPN) GetImportTargets() []RouteTarget` - -GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. - -### GetImportTargetsOk - -`func (o *L2VPN) GetImportTargetsOk() (*[]RouteTarget, bool)` - -GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImportTargets - -`func (o *L2VPN) SetImportTargets(v []RouteTarget)` - -SetImportTargets sets ImportTargets field to given value. - -### HasImportTargets - -`func (o *L2VPN) HasImportTargets() bool` - -HasImportTargets returns a boolean if a field has been set. - -### GetExportTargets - -`func (o *L2VPN) GetExportTargets() []RouteTarget` - -GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. - -### GetExportTargetsOk - -`func (o *L2VPN) GetExportTargetsOk() (*[]RouteTarget, bool)` - -GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExportTargets - -`func (o *L2VPN) SetExportTargets(v []RouteTarget)` - -SetExportTargets sets ExportTargets field to given value. - -### HasExportTargets - -`func (o *L2VPN) HasExportTargets() bool` - -HasExportTargets returns a boolean if a field has been set. - ### GetDescription `func (o *L2VPN) GetDescription() string` @@ -296,176 +217,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *L2VPN) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *L2VPN) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *L2VPN) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *L2VPN) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTenant - -`func (o *L2VPN) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *L2VPN) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *L2VPN) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *L2VPN) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *L2VPN) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *L2VPN) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetTags - -`func (o *L2VPN) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *L2VPN) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *L2VPN) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *L2VPN) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *L2VPN) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *L2VPN) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *L2VPN) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *L2VPN) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *L2VPN) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *L2VPN) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *L2VPN) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *L2VPN) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *L2VPN) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *L2VPN) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *L2VPN) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *L2VPN) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *L2VPN) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/L2VPNRequest.md b/docs/L2VPNRequest.md index 22f327eb1..7c5fb24c8 100644 --- a/docs/L2VPNRequest.md +++ b/docs/L2VPNRequest.md @@ -7,14 +7,8 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] -**ImportTargets** | Pointer to **[]int32** | | [optional] -**ExportTargets** | Pointer to **[]int32** | | [optional] +**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -112,20 +106,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue` +`func (o *L2VPNRequest) GetType() L2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` +`func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue)` +`func (o *L2VPNRequest) SetType(v L2VPNTypeValue)` SetType sets Type field to given value. @@ -135,56 +129,6 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. -### GetImportTargets - -`func (o *L2VPNRequest) GetImportTargets() []int32` - -GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. - -### GetImportTargetsOk - -`func (o *L2VPNRequest) GetImportTargetsOk() (*[]int32, bool)` - -GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImportTargets - -`func (o *L2VPNRequest) SetImportTargets(v []int32)` - -SetImportTargets sets ImportTargets field to given value. - -### HasImportTargets - -`func (o *L2VPNRequest) HasImportTargets() bool` - -HasImportTargets returns a boolean if a field has been set. - -### GetExportTargets - -`func (o *L2VPNRequest) GetExportTargets() []int32` - -GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. - -### GetExportTargetsOk - -`func (o *L2VPNRequest) GetExportTargetsOk() (*[]int32, bool)` - -GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExportTargets - -`func (o *L2VPNRequest) SetExportTargets(v []int32)` - -SetExportTargets sets ExportTargets field to given value. - -### HasExportTargets - -`func (o *L2VPNRequest) HasExportTargets() bool` - -HasExportTargets returns a boolean if a field has been set. - ### GetDescription `func (o *L2VPNRequest) GetDescription() string` @@ -210,116 +154,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *L2VPNRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *L2VPNRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *L2VPNRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *L2VPNRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTenant - -`func (o *L2VPNRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *L2VPNRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *L2VPNRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *L2VPNRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *L2VPNRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetTags - -`func (o *L2VPNRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *L2VPNRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *L2VPNRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *L2VPNRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *L2VPNRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *L2VPNRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *L2VPNRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *L2VPNRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/L2VPNTermination.md b/docs/L2VPNTermination.md index d4e22cfc7..4c558a8e6 100644 --- a/docs/L2VPNTermination.md +++ b/docs/L2VPNTermination.md @@ -6,22 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | -**AssignedObjectType** | **string** | | -**AssignedObjectId** | **int64** | | -**AssignedObject** | **interface{}** | | [readonly] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**L2vpn** | [**L2VPN**](L2VPN.md) | | ## Methods ### NewL2VPNTermination -`func NewL2VPNTermination(id int32, url string, displayUrl string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination` +`func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN, ) *L2VPNTermination` NewL2VPNTermination instantiates a new L2VPNTermination object This constructor will assign default values to properties that have it defined, @@ -76,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *L2VPNTermination) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *L2VPNTermination) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *L2VPNTermination) GetDisplay() string` @@ -118,204 +90,24 @@ SetDisplay sets Display field to given value. ### GetL2vpn -`func (o *L2VPNTermination) GetL2vpn() BriefL2VPN` +`func (o *L2VPNTermination) GetL2vpn() L2VPN` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` +`func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN)` +`func (o *L2VPNTermination) SetL2vpn(v L2VPN)` SetL2vpn sets L2vpn field to given value. -### GetAssignedObjectType - -`func (o *L2VPNTermination) GetAssignedObjectType() string` - -GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. - -### GetAssignedObjectTypeOk - -`func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool)` - -GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectType - -`func (o *L2VPNTermination) SetAssignedObjectType(v string)` - -SetAssignedObjectType sets AssignedObjectType field to given value. - - -### GetAssignedObjectId - -`func (o *L2VPNTermination) GetAssignedObjectId() int64` - -GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. - -### GetAssignedObjectIdOk - -`func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool)` - -GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectId - -`func (o *L2VPNTermination) SetAssignedObjectId(v int64)` - -SetAssignedObjectId sets AssignedObjectId field to given value. - - -### GetAssignedObject - -`func (o *L2VPNTermination) GetAssignedObject() interface{}` - -GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. - -### GetAssignedObjectOk - -`func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool)` - -GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObject - -`func (o *L2VPNTermination) SetAssignedObject(v interface{})` - -SetAssignedObject sets AssignedObject field to given value. - - -### SetAssignedObjectNil - -`func (o *L2VPNTermination) SetAssignedObjectNil(b bool)` - - SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil - -### UnsetAssignedObject -`func (o *L2VPNTermination) UnsetAssignedObject()` - -UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil -### GetTags - -`func (o *L2VPNTermination) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *L2VPNTermination) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *L2VPNTermination) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *L2VPNTermination) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *L2VPNTermination) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *L2VPNTermination) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *L2VPNTermination) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *L2VPNTermination) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *L2VPNTermination) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *L2VPNTermination) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *L2VPNTermination) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *L2VPNTermination) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *L2VPNTermination) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *L2VPNTermination) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *L2VPNTermination) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *L2VPNTermination) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/L2VPNTerminationRequest.md b/docs/L2VPNTerminationRequest.md index 2fb1317c5..06ee7633d 100644 --- a/docs/L2VPNTerminationRequest.md +++ b/docs/L2VPNTerminationRequest.md @@ -4,17 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | -**AssignedObjectType** | **string** | | -**AssignedObjectId** | **int64** | | -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**L2vpn** | [**L2VPNRequest**](L2VPNRequest.md) | | ## Methods ### NewL2VPNTerminationRequest -`func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64, ) *L2VPNTerminationRequest` +`func NewL2VPNTerminationRequest(l2vpn L2VPNRequest, ) *L2VPNTerminationRequest` NewL2VPNTerminationRequest instantiates a new L2VPNTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -31,114 +27,24 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` +`func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` +`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` +`func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` SetL2vpn sets L2vpn field to given value. -### GetAssignedObjectType - -`func (o *L2VPNTerminationRequest) GetAssignedObjectType() string` - -GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. - -### GetAssignedObjectTypeOk - -`func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool)` - -GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectType - -`func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string)` - -SetAssignedObjectType sets AssignedObjectType field to given value. - - -### GetAssignedObjectId - -`func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64` - -GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. - -### GetAssignedObjectIdOk - -`func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool)` - -GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignedObjectId - -`func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64)` - -SetAssignedObjectId sets AssignedObjectId field to given value. - - -### GetTags - -`func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *L2VPNTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *L2VPNTerminationRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *L2VPNTerminationRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Location.md b/docs/Location.md index e13e7a298..4130ec547 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -6,29 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Site** | [**BriefSite**](BriefSite.md) | | -**Parent** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional] -**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **RackCount** | **int32** | | [readonly] [default to 0] -**DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, displayUrl string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, depth int32, ) *Location` +`func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -83,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Location) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Location) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Location) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Location) GetDisplay() string` @@ -163,146 +132,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetSite - -`func (o *Location) GetSite() BriefSite` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *Location) GetSiteOk() (*BriefSite, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *Location) SetSite(v BriefSite)` - -SetSite sets Site field to given value. - - -### GetParent - -`func (o *Location) GetParent() NestedLocation` - -GetParent returns the Parent field if non-nil, zero value otherwise. - -### GetParentOk - -`func (o *Location) GetParentOk() (*NestedLocation, bool)` - -GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParent - -`func (o *Location) SetParent(v NestedLocation)` - -SetParent sets Parent field to given value. - -### HasParent - -`func (o *Location) HasParent() bool` - -HasParent returns a boolean if a field has been set. - -### SetParentNil - -`func (o *Location) SetParentNil(b bool)` - - SetParentNil sets the value for Parent to be an explicit nil - -### UnsetParent -`func (o *Location) UnsetParent()` - -UnsetParent ensures that no value is present for Parent, not even an explicit nil -### GetStatus - -`func (o *Location) GetStatus() LocationStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Location) GetStatusOk() (*LocationStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Location) SetStatus(v LocationStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Location) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *Location) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Location) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Location) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Location) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Location) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Location) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetFacility - -`func (o *Location) GetFacility() string` - -GetFacility returns the Facility field if non-nil, zero value otherwise. - -### GetFacilityOk - -`func (o *Location) GetFacilityOk() (*string, bool)` - -GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFacility - -`func (o *Location) SetFacility(v string)` - -SetFacility sets Facility field to given value. - -### HasFacility - -`func (o *Location) HasFacility() bool` - -HasFacility returns a boolean if a field has been set. - ### GetDescription `func (o *Location) GetDescription() string` @@ -328,116 +157,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *Location) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Location) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Location) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Location) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Location) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Location) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Location) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Location) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Location) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Location) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Location) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Location) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Location) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Location) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Location) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Location) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Location) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Location) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetRackCount `func (o *Location) GetRackCount() int32` @@ -458,31 +177,6 @@ and a boolean to check if the value has been set. SetRackCount sets RackCount field to given value. -### GetDeviceCount - -`func (o *Location) GetDeviceCount() int32` - -GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. - -### GetDeviceCountOk - -`func (o *Location) GetDeviceCountOk() (*int32, bool)` - -GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceCount - -`func (o *Location) SetDeviceCount(v int32)` - -SetDeviceCount sets DeviceCount field to given value. - -### HasDeviceCount - -`func (o *Location) HasDeviceCount() bool` - -HasDeviceCount returns a boolean if a field has been set. - ### GetDepth `func (o *Location) GetDepth() int32` diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md index 0dd6b179c..f23f111fd 100644 --- a/docs/LocationRequest.md +++ b/docs/LocationRequest.md @@ -6,20 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | -**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional] -**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewLocationRequest -`func NewLocationRequest(name string, slug string, site BriefSiteRequest, ) *LocationRequest` +`func NewLocationRequest(name string, slug string, ) *LocationRequest` NewLocationRequest instantiates a new LocationRequest object This constructor will assign default values to properties that have it defined, @@ -74,146 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetSite - -`func (o *LocationRequest) GetSite() BriefSiteRequest` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *LocationRequest) SetSite(v BriefSiteRequest)` - -SetSite sets Site field to given value. - - -### GetParent - -`func (o *LocationRequest) GetParent() NestedLocationRequest` - -GetParent returns the Parent field if non-nil, zero value otherwise. - -### GetParentOk - -`func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool)` - -GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParent - -`func (o *LocationRequest) SetParent(v NestedLocationRequest)` - -SetParent sets Parent field to given value. - -### HasParent - -`func (o *LocationRequest) HasParent() bool` - -HasParent returns a boolean if a field has been set. - -### SetParentNil - -`func (o *LocationRequest) SetParentNil(b bool)` - - SetParentNil sets the value for Parent to be an explicit nil - -### UnsetParent -`func (o *LocationRequest) UnsetParent()` - -UnsetParent ensures that no value is present for Parent, not even an explicit nil -### GetStatus - -`func (o *LocationRequest) GetStatus() LocationStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *LocationRequest) SetStatus(v LocationStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *LocationRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetTenant - -`func (o *LocationRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *LocationRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *LocationRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *LocationRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *LocationRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetFacility - -`func (o *LocationRequest) GetFacility() string` - -GetFacility returns the Facility field if non-nil, zero value otherwise. - -### GetFacilityOk - -`func (o *LocationRequest) GetFacilityOk() (*string, bool)` - -GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFacility - -`func (o *LocationRequest) SetFacility(v string)` - -SetFacility sets Facility field to given value. - -### HasFacility - -`func (o *LocationRequest) HasFacility() bool` - -HasFacility returns a boolean if a field has been set. - ### GetDescription `func (o *LocationRequest) GetDescription() string` @@ -239,56 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *LocationRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *LocationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *LocationRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *LocationRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *LocationRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *LocationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *LocationRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *LocationRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Manufacturer.md b/docs/Manufacturer.md index 195a70ad0..753c72fe6 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -6,24 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] -**InventoryitemCount** | **int64** | | [readonly] -**PlatformCount** | **int64** | | [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, platformCount int64, ) *Manufacturer` +`func NewManufacturer(id int32, url string, display string, name string, slug string, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -78,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Manufacturer) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Manufacturer) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Manufacturer) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Manufacturer) GetDisplay() string` @@ -183,116 +156,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *Manufacturer) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Manufacturer) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Manufacturer) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Manufacturer) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Manufacturer) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Manufacturer) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Manufacturer) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Manufacturer) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Manufacturer) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Manufacturer) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Manufacturer) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Manufacturer) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Manufacturer) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Manufacturer) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Manufacturer) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Manufacturer) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Manufacturer) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDevicetypeCount `func (o *Manufacturer) GetDevicetypeCount() int64` @@ -318,46 +181,6 @@ SetDevicetypeCount sets DevicetypeCount field to given value. HasDevicetypeCount returns a boolean if a field has been set. -### GetInventoryitemCount - -`func (o *Manufacturer) GetInventoryitemCount() int64` - -GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. - -### GetInventoryitemCountOk - -`func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool)` - -GetInventoryitemCountOk returns a tuple with the InventoryitemCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInventoryitemCount - -`func (o *Manufacturer) SetInventoryitemCount(v int64)` - -SetInventoryitemCount sets InventoryitemCount field to given value. - - -### GetPlatformCount - -`func (o *Manufacturer) GetPlatformCount() int64` - -GetPlatformCount returns the PlatformCount field if non-nil, zero value otherwise. - -### GetPlatformCountOk - -`func (o *Manufacturer) GetPlatformCountOk() (*int64, bool)` - -GetPlatformCountOk returns a tuple with the PlatformCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPlatformCount - -`func (o *Manufacturer) SetPlatformCount(v int64)` - -SetPlatformCount sets PlatformCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ManufacturerRequest.md b/docs/ManufacturerRequest.md index 6f878526b..669fe2389 100644 --- a/docs/ManufacturerRequest.md +++ b/docs/ManufacturerRequest.md @@ -7,8 +7,6 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -94,56 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *ManufacturerRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ManufacturerRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ManufacturerRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ManufacturerRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ManufacturerRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ManufacturerRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ManufacturerRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Module.md b/docs/Module.md index 06a0d5e35..a9257180a 100644 --- a/docs/Module.md +++ b/docs/Module.md @@ -6,26 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | +**Device** | [**Device**](Device.md) | | **ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | -**ModuleType** | [**BriefModuleType**](BriefModuleType.md) | | -**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModule -`func NewModule(id int32, url string, displayUrl string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime, ) *Module` +`func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay, ) *Module` NewModule instantiates a new Module object This constructor will assign default values to properties that have it defined, @@ -80,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Module) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Module) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Module) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Module) GetDisplay() string` @@ -122,20 +91,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Module) GetDevice() BriefDevice` +`func (o *Module) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Module) GetDeviceOk() (*BriefDevice, bool)` +`func (o *Module) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Module) SetDevice(v BriefDevice)` +`func (o *Module) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -160,271 +129,6 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. -### GetModuleType - -`func (o *Module) GetModuleType() BriefModuleType` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *Module) SetModuleType(v BriefModuleType)` - -SetModuleType sets ModuleType field to given value. - - -### GetStatus - -`func (o *Module) GetStatus() ModuleStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Module) GetStatusOk() (*ModuleStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Module) SetStatus(v ModuleStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Module) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetSerial - -`func (o *Module) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *Module) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *Module) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *Module) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - -### GetAssetTag - -`func (o *Module) GetAssetTag() string` - -GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. - -### GetAssetTagOk - -`func (o *Module) GetAssetTagOk() (*string, bool)` - -GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssetTag - -`func (o *Module) SetAssetTag(v string)` - -SetAssetTag sets AssetTag field to given value. - -### HasAssetTag - -`func (o *Module) HasAssetTag() bool` - -HasAssetTag returns a boolean if a field has been set. - -### SetAssetTagNil - -`func (o *Module) SetAssetTagNil(b bool)` - - SetAssetTagNil sets the value for AssetTag to be an explicit nil - -### UnsetAssetTag -`func (o *Module) UnsetAssetTag()` - -UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetDescription - -`func (o *Module) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *Module) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *Module) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *Module) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetComments - -`func (o *Module) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Module) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Module) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Module) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Module) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Module) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Module) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Module) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Module) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Module) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Module) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Module) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Module) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Module) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Module) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Module) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Module) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Module) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Module) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Module) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Module) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Module) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ModuleBay.md b/docs/ModuleBay.md index eab5b9aa0..71f734939 100644 --- a/docs/ModuleBay.md +++ b/docs/ModuleBay.md @@ -6,12 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**InstalledModule** | Pointer to [**NullableModule**](Module.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -24,7 +22,7 @@ Name | Type | Description | Notes ### NewModuleBay -`func NewModuleBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` +`func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` NewModuleBay instantiates a new ModuleBay object This constructor will assign default values to properties that have it defined, @@ -79,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ModuleBay) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ModuleBay) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ModuleBay) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ModuleBay) GetDisplay() string` @@ -121,59 +99,24 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ModuleBay) GetDevice() BriefDevice` +`func (o *ModuleBay) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool)` +`func (o *ModuleBay) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBay) SetDevice(v BriefDevice)` +`func (o *ModuleBay) SetDevice(v Device)` SetDevice sets Device field to given value. -### GetModule - -`func (o *ModuleBay) GetModule() BriefModule` - -GetModule returns the Module field if non-nil, zero value otherwise. - -### GetModuleOk - -`func (o *ModuleBay) GetModuleOk() (*BriefModule, bool)` - -GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModule - -`func (o *ModuleBay) SetModule(v BriefModule)` - -SetModule sets Module field to given value. - -### HasModule - -`func (o *ModuleBay) HasModule() bool` - -HasModule returns a boolean if a field has been set. - -### SetModuleNil - -`func (o *ModuleBay) SetModuleNil(b bool)` - - SetModuleNil sets the value for Module to be an explicit nil - -### UnsetModule -`func (o *ModuleBay) UnsetModule()` - -UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBay) GetName() string` @@ -196,20 +139,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBay) GetInstalledModule() BriefModule` +`func (o *ModuleBay) GetInstalledModule() Module` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool)` +`func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBay) SetInstalledModule(v BriefModule)` +`func (o *ModuleBay) SetInstalledModule(v Module)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayRequest.md b/docs/ModuleBayRequest.md index 2062d984b..aa37cbe9d 100644 --- a/docs/ModuleBayRequest.md +++ b/docs/ModuleBayRequest.md @@ -4,10 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -18,7 +17,7 @@ Name | Type | Description | Notes ### NewModuleBayRequest -`func NewModuleBayRequest(device BriefDeviceRequest, name string, ) *ModuleBayRequest` +`func NewModuleBayRequest(device DeviceRequest, name string, ) *ModuleBayRequest` NewModuleBayRequest instantiates a new ModuleBayRequest object This constructor will assign default values to properties that have it defined, @@ -35,59 +34,24 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest` +`func (o *ModuleBayRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest)` +`func (o *ModuleBayRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. -### GetModule - -`func (o *ModuleBayRequest) GetModule() BriefModuleRequest` - -GetModule returns the Module field if non-nil, zero value otherwise. - -### GetModuleOk - -`func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` - -GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModule - -`func (o *ModuleBayRequest) SetModule(v BriefModuleRequest)` - -SetModule sets Module field to given value. - -### HasModule - -`func (o *ModuleBayRequest) HasModule() bool` - -HasModule returns a boolean if a field has been set. - -### SetModuleNil - -`func (o *ModuleBayRequest) SetModuleNil(b bool)` - - SetModuleNil sets the value for Module to be an explicit nil - -### UnsetModule -`func (o *ModuleBayRequest) UnsetModule()` - -UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBayRequest) GetName() string` @@ -110,20 +74,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest` +`func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` +`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` +`func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md index 1bac16365..237edfcaf 100644 --- a/docs/ModuleBayTemplate.md +++ b/docs/ModuleBayTemplate.md @@ -7,8 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] +**DeviceType** | [**DeviceType**](DeviceType.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -20,7 +19,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplate -`func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` +`func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` NewModuleBayTemplate instantiates a new ModuleBayTemplate object This constructor will assign default values to properties that have it defined, @@ -97,74 +96,24 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType` +`func (o *ModuleBayTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *ModuleBayTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. -### HasDeviceType -`func (o *ModuleBayTemplate) HasDeviceType() bool` - -HasDeviceType returns a boolean if a field has been set. - -### SetDeviceTypeNil - -`func (o *ModuleBayTemplate) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *ModuleBayTemplate) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *ModuleBayTemplate) GetModuleType() BriefModuleType` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *ModuleBayTemplate) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *ModuleBayTemplate) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *ModuleBayTemplate) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplate) GetName() string` diff --git a/docs/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md index 96ce2a437..75345ace9 100644 --- a/docs/ModuleBayTemplateRequest.md +++ b/docs/ModuleBayTemplateRequest.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -15,7 +14,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplateRequest -`func NewModuleBayTemplateRequest(name string, ) *ModuleBayTemplateRequest` +`func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *ModuleBayTemplateRequest` NewModuleBayTemplateRequest instantiates a new ModuleBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -32,74 +31,24 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. -### HasDeviceType -`func (o *ModuleBayTemplateRequest) HasDeviceType() bool` - -HasDeviceType returns a boolean if a field has been set. - -### SetDeviceTypeNil - -`func (o *ModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *ModuleBayTemplateRequest) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *ModuleBayTemplateRequest) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *ModuleBayTemplateRequest) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *ModuleBayTemplateRequest) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplateRequest) GetName() string` diff --git a/docs/ModuleRequest.md b/docs/ModuleRequest.md index 11b1cbda2..648ff41f3 100644 --- a/docs/ModuleRequest.md +++ b/docs/ModuleRequest.md @@ -4,22 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | -**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | -**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleRequest -`func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest, ) *ModuleRequest` +`func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest, ) *ModuleRequest` NewModuleRequest instantiates a new ModuleRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +28,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleRequest) GetDevice() BriefDeviceRequest` +`func (o *ModuleRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleRequest) SetDevice(v BriefDeviceRequest)` +`func (o *ModuleRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -74,211 +66,6 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. -### GetModuleType - -`func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest)` - -SetModuleType sets ModuleType field to given value. - - -### GetStatus - -`func (o *ModuleRequest) GetStatus() ModuleStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *ModuleRequest) SetStatus(v ModuleStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *ModuleRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetSerial - -`func (o *ModuleRequest) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *ModuleRequest) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *ModuleRequest) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *ModuleRequest) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - -### GetAssetTag - -`func (o *ModuleRequest) GetAssetTag() string` - -GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. - -### GetAssetTagOk - -`func (o *ModuleRequest) GetAssetTagOk() (*string, bool)` - -GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssetTag - -`func (o *ModuleRequest) SetAssetTag(v string)` - -SetAssetTag sets AssetTag field to given value. - -### HasAssetTag - -`func (o *ModuleRequest) HasAssetTag() bool` - -HasAssetTag returns a boolean if a field has been set. - -### SetAssetTagNil - -`func (o *ModuleRequest) SetAssetTagNil(b bool)` - - SetAssetTagNil sets the value for AssetTag to be an explicit nil - -### UnsetAssetTag -`func (o *ModuleRequest) UnsetAssetTag()` - -UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetDescription - -`func (o *ModuleRequest) GetDescription() string` - -GetDescription returns the Description field if non-nil, zero value otherwise. - -### GetDescriptionOk - -`func (o *ModuleRequest) GetDescriptionOk() (*string, bool)` - -GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescription - -`func (o *ModuleRequest) SetDescription(v string)` - -SetDescription sets Description field to given value. - -### HasDescription - -`func (o *ModuleRequest) HasDescription() bool` - -HasDescription returns a boolean if a field has been set. - -### GetComments - -`func (o *ModuleRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ModuleRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ModuleRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ModuleRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ModuleRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ModuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ModuleRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ModuleRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ModuleRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ModuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ModuleRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ModuleRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/ModuleType.md b/docs/ModuleType.md index c106f7fbb..2c09e327c 100644 --- a/docs/ModuleType.md +++ b/docs/ModuleType.md @@ -6,26 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | **Model** | **string** | | -**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] -**Airflow** | Pointer to [**NullableModuleTypeAirflow**](ModuleTypeAirflow.md) | | [optional] -**Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModuleType -`func NewModuleType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime, ) *ModuleType` +`func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string, ) *ModuleType` NewModuleType instantiates a new ModuleType object This constructor will assign default values to properties that have it defined, @@ -80,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ModuleType) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ModuleType) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ModuleType) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ModuleType) GetDisplay() string` @@ -122,20 +92,20 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *ModuleType) GetManufacturer() BriefManufacturer` +`func (o *ModuleType) GetManufacturer() Manufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` +`func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleType) SetManufacturer(v BriefManufacturer)` +`func (o *ModuleType) SetManufacturer(v Manufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -160,136 +130,6 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. -### GetPartNumber - -`func (o *ModuleType) GetPartNumber() string` - -GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. - -### GetPartNumberOk - -`func (o *ModuleType) GetPartNumberOk() (*string, bool)` - -GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPartNumber - -`func (o *ModuleType) SetPartNumber(v string)` - -SetPartNumber sets PartNumber field to given value. - -### HasPartNumber - -`func (o *ModuleType) HasPartNumber() bool` - -HasPartNumber returns a boolean if a field has been set. - -### GetAirflow - -`func (o *ModuleType) GetAirflow() ModuleTypeAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *ModuleType) SetAirflow(v ModuleTypeAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *ModuleType) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - -### SetAirflowNil - -`func (o *ModuleType) SetAirflowNil(b bool)` - - SetAirflowNil sets the value for Airflow to be an explicit nil - -### UnsetAirflow -`func (o *ModuleType) UnsetAirflow()` - -UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -### GetWeight - -`func (o *ModuleType) GetWeight() float64` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *ModuleType) GetWeightOk() (*float64, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *ModuleType) SetWeight(v float64)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *ModuleType) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - -### SetWeightNil - -`func (o *ModuleType) SetWeightNil(b bool)` - - SetWeightNil sets the value for Weight to be an explicit nil - -### UnsetWeight -`func (o *ModuleType) UnsetWeight()` - -UnsetWeight ensures that no value is present for Weight, not even an explicit nil -### GetWeightUnit - -`func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit` - -GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. - -### GetWeightUnitOk - -`func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` - -GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeightUnit - -`func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit)` - -SetWeightUnit sets WeightUnit field to given value. - -### HasWeightUnit - -`func (o *ModuleType) HasWeightUnit() bool` - -HasWeightUnit returns a boolean if a field has been set. - -### SetWeightUnitNil - -`func (o *ModuleType) SetWeightUnitNil(b bool)` - - SetWeightUnitNil sets the value for WeightUnit to be an explicit nil - -### UnsetWeightUnit -`func (o *ModuleType) UnsetWeightUnit()` - -UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleType) GetDescription() string` @@ -315,141 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ModuleType) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ModuleType) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ModuleType) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ModuleType) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ModuleType) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ModuleType) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ModuleType) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ModuleType) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ModuleType) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ModuleType) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ModuleType) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ModuleType) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *ModuleType) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *ModuleType) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *ModuleType) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *ModuleType) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *ModuleType) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *ModuleType) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *ModuleType) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *ModuleType) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *ModuleType) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ModuleTypeRequest.md b/docs/ModuleTypeRequest.md index ad422214b..53185cdf3 100644 --- a/docs/ModuleTypeRequest.md +++ b/docs/ModuleTypeRequest.md @@ -4,22 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | **Model** | **string** | | -**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] -**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] -**Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleTypeRequest -`func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *ModuleTypeRequest` +`func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *ModuleTypeRequest` NewModuleTypeRequest instantiates a new ModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +29,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -74,136 +67,6 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. -### GetPartNumber - -`func (o *ModuleTypeRequest) GetPartNumber() string` - -GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. - -### GetPartNumberOk - -`func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool)` - -GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPartNumber - -`func (o *ModuleTypeRequest) SetPartNumber(v string)` - -SetPartNumber sets PartNumber field to given value. - -### HasPartNumber - -`func (o *ModuleTypeRequest) HasPartNumber() bool` - -HasPartNumber returns a boolean if a field has been set. - -### GetAirflow - -`func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *ModuleTypeRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - -### SetAirflowNil - -`func (o *ModuleTypeRequest) SetAirflowNil(b bool)` - - SetAirflowNil sets the value for Airflow to be an explicit nil - -### UnsetAirflow -`func (o *ModuleTypeRequest) UnsetAirflow()` - -UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -### GetWeight - -`func (o *ModuleTypeRequest) GetWeight() float64` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *ModuleTypeRequest) SetWeight(v float64)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *ModuleTypeRequest) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - -### SetWeightNil - -`func (o *ModuleTypeRequest) SetWeightNil(b bool)` - - SetWeightNil sets the value for Weight to be an explicit nil - -### UnsetWeight -`func (o *ModuleTypeRequest) UnsetWeight()` - -UnsetWeight ensures that no value is present for Weight, not even an explicit nil -### GetWeightUnit - -`func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` - -GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. - -### GetWeightUnitOk - -`func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` - -GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeightUnit - -`func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` - -SetWeightUnit sets WeightUnit field to given value. - -### HasWeightUnit - -`func (o *ModuleTypeRequest) HasWeightUnit() bool` - -HasWeightUnit returns a boolean if a field has been set. - -### SetWeightUnitNil - -`func (o *ModuleTypeRequest) SetWeightUnitNil(b bool)` - - SetWeightUnitNil sets the value for WeightUnit to be an explicit nil - -### UnsetWeightUnit -`func (o *ModuleTypeRequest) UnsetWeightUnit()` - -UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleTypeRequest) GetDescription() string` @@ -229,81 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ModuleTypeRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ModuleTypeRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ModuleTypeRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ModuleTypeRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ModuleTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ModuleTypeRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ModuleTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ModuleTypeRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/NestedContactGroup.md b/docs/NestedContactGroup.md index 6778e5dee..57a1c07f4 100644 --- a/docs/NestedContactGroup.md +++ b/docs/NestedContactGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedContactGroup -`func NewNestedContactGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedContactGroup` +`func NewNestedContactGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedContactGroup` NewNestedContactGroup instantiates a new NestedContactGroup object This constructor will assign default values to properties that have it defined, @@ -71,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedContactGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedContactGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedContactGroup) GetDisplay() string` diff --git a/docs/NestedDevice.md b/docs/NestedDevice.md index 04b004992..ef9a0807e 100644 --- a/docs/NestedDevice.md +++ b/docs/NestedDevice.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] @@ -14,7 +13,7 @@ Name | Type | Description | Notes ### NewNestedDevice -`func NewNestedDevice(id int32, url string, displayUrl string, display string, ) *NestedDevice` +`func NewNestedDevice(id int32, url string, display string, ) *NestedDevice` NewNestedDevice instantiates a new NestedDevice object This constructor will assign default values to properties that have it defined, @@ -69,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedDevice) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedDevice) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedDevice) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedDevice) GetDisplay() string` diff --git a/docs/NestedGroup.md b/docs/NestedGroup.md index 9708bb72d..2510f7a46 100644 --- a/docs/NestedGroup.md +++ b/docs/NestedGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -14,7 +13,7 @@ Name | Type | Description | Notes ### NewNestedGroup -`func NewNestedGroup(id int32, url string, displayUrl string, display string, name string, ) *NestedGroup` +`func NewNestedGroup(id int32, url string, display string, name string, ) *NestedGroup` NewNestedGroup instantiates a new NestedGroup object This constructor will assign default values to properties that have it defined, @@ -69,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedGroup) GetDisplay() string` diff --git a/docs/NestedInterface.md b/docs/NestedInterface.md index 297c573b7..f5bc6feec 100644 --- a/docs/NestedInterface.md +++ b/docs/NestedInterface.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Device** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Name** | **string** | | @@ -17,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedInterface -`func NewNestedInterface(id int32, url string, displayUrl string, display string, device NestedDevice, name string, occupied bool, ) *NestedInterface` +`func NewNestedInterface(id int32, url string, display string, device NestedDevice, name string, occupied bool, ) *NestedInterface` NewNestedInterface instantiates a new NestedInterface object This constructor will assign default values to properties that have it defined, @@ -72,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedInterface) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedInterface) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedInterface) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedInterface) GetDisplay() string` diff --git a/docs/NestedModuleBay.md b/docs/NestedModuleBay.md index 937d673d8..fd92789c2 100644 --- a/docs/NestedModuleBay.md +++ b/docs/NestedModuleBay.md @@ -6,15 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] +**InstalledModule** | Pointer to [**NullableModuleBayNestedModule**](ModuleBayNestedModule.md) | | [optional] **Name** | **string** | | ## Methods ### NewNestedModuleBay -`func NewNestedModuleBay(id int32, url string, displayUrl string, display string, name string, ) *NestedModuleBay` +`func NewNestedModuleBay(id int32, url string, display string, name string, ) *NestedModuleBay` NewNestedModuleBay instantiates a new NestedModuleBay object This constructor will assign default values to properties that have it defined, @@ -69,46 +69,61 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl +### GetDisplay -`func (o *NestedModuleBay) GetDisplayUrl() string` +`func (o *NestedModuleBay) GetDisplay() string` -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. +GetDisplay returns the Display field if non-nil, zero value otherwise. -### GetDisplayUrlOk +### GetDisplayOk -`func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool)` +`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplayUrl +### SetDisplay -`func (o *NestedModuleBay) SetDisplayUrl(v string)` +`func (o *NestedModuleBay) SetDisplay(v string)` -SetDisplayUrl sets DisplayUrl field to given value. +SetDisplay sets Display field to given value. -### GetDisplay +### GetInstalledModule -`func (o *NestedModuleBay) GetDisplay() string` +`func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule` -GetDisplay returns the Display field if non-nil, zero value otherwise. +GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. -### GetDisplayOk +### GetInstalledModuleOk -`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` +`func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool)` -GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplay +### SetInstalledModule -`func (o *NestedModuleBay) SetDisplay(v string)` +`func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule)` -SetDisplay sets Display field to given value. +SetInstalledModule sets InstalledModule field to given value. + +### HasInstalledModule + +`func (o *NestedModuleBay) HasInstalledModule() bool` + +HasInstalledModule returns a boolean if a field has been set. + +### SetInstalledModuleNil + +`func (o *NestedModuleBay) SetInstalledModuleNil(b bool)` + + SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +### UnsetInstalledModule +`func (o *NestedModuleBay) UnsetInstalledModule()` +UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBay) GetName() string` diff --git a/docs/NestedModuleBayRequest.md b/docs/NestedModuleBayRequest.md index abf39c21c..e23d88b56 100644 --- a/docs/NestedModuleBayRequest.md +++ b/docs/NestedModuleBayRequest.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**InstalledModule** | Pointer to [**NullableModuleBayNestedModuleRequest**](ModuleBayNestedModuleRequest.md) | | [optional] **Name** | **string** | | ## Methods @@ -25,6 +26,41 @@ NewNestedModuleBayRequestWithDefaults instantiates a new NestedModuleBayRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetInstalledModule + +`func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest` + +GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. + +### GetInstalledModuleOk + +`func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool)` + +GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstalledModule + +`func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest)` + +SetInstalledModule sets InstalledModule field to given value. + +### HasInstalledModule + +`func (o *NestedModuleBayRequest) HasInstalledModule() bool` + +HasInstalledModule returns a boolean if a field has been set. + +### SetInstalledModuleNil + +`func (o *NestedModuleBayRequest) SetInstalledModuleNil(b bool)` + + SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil + +### UnsetInstalledModule +`func (o *NestedModuleBayRequest) UnsetInstalledModule()` + +UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBayRequest) GetName() string` diff --git a/docs/NestedRegion.md b/docs/NestedRegion.md index 54e2205b3..eb6f37ed6 100644 --- a/docs/NestedRegion.md +++ b/docs/NestedRegion.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedRegion -`func NewNestedRegion(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedRegion` +`func NewNestedRegion(id int32, url string, display string, name string, slug string, depth int32, ) *NestedRegion` NewNestedRegion instantiates a new NestedRegion object This constructor will assign default values to properties that have it defined, @@ -71,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedRegion) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedRegion) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedRegion) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedRegion) GetDisplay() string` diff --git a/docs/NestedSiteGroup.md b/docs/NestedSiteGroup.md index 02f2632db..0dd67ab6d 100644 --- a/docs/NestedSiteGroup.md +++ b/docs/NestedSiteGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedSiteGroup -`func NewNestedSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` +`func NewNestedSiteGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedSiteGroup` NewNestedSiteGroup instantiates a new NestedSiteGroup object This constructor will assign default values to properties that have it defined, @@ -71,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedSiteGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedSiteGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedSiteGroup) GetDisplay() string` diff --git a/docs/NestedTag.md b/docs/NestedTag.md index 69ab5ce08..f87362fdc 100644 --- a/docs/NestedTag.md +++ b/docs/NestedTag.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedTag -`func NewNestedTag(id int32, url string, displayUrl string, display string, name string, slug string, ) *NestedTag` +`func NewNestedTag(id int32, url string, display string, name string, slug string, ) *NestedTag` NewNestedTag instantiates a new NestedTag object This constructor will assign default values to properties that have it defined, @@ -71,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedTag) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedTag) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedTag) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedTag) GetDisplay() string` diff --git a/docs/NestedTenantGroup.md b/docs/NestedTenantGroup.md index 49035b582..3acbe4a23 100644 --- a/docs/NestedTenantGroup.md +++ b/docs/NestedTenantGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedTenantGroup -`func NewNestedTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` +`func NewNestedTenantGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedTenantGroup` NewNestedTenantGroup instantiates a new NestedTenantGroup object This constructor will assign default values to properties that have it defined, @@ -71,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedTenantGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedTenantGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedTenantGroup) GetDisplay() string` diff --git a/docs/NestedUser.md b/docs/NestedUser.md index adfe8b9c3..f4d0be09f 100644 --- a/docs/NestedUser.md +++ b/docs/NestedUser.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | @@ -14,7 +13,7 @@ Name | Type | Description | Notes ### NewNestedUser -`func NewNestedUser(id int32, url string, displayUrl string, display string, username string, ) *NestedUser` +`func NewNestedUser(id int32, url string, display string, username string, ) *NestedUser` NewNestedUser instantiates a new NestedUser object This constructor will assign default values to properties that have it defined, @@ -69,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedUser) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedUser) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedUser) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedUser) GetDisplay() string` diff --git a/docs/NestedVMInterface.md b/docs/NestedVMInterface.md index 8fcc143e8..bdc94d495 100644 --- a/docs/NestedVMInterface.md +++ b/docs/NestedVMInterface.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | | [readonly] **Name** | **string** | | @@ -15,7 +14,7 @@ Name | Type | Description | Notes ### NewNestedVMInterface -`func NewNestedVMInterface(id int32, url string, displayUrl string, display string, virtualMachine NestedVirtualMachine, name string, ) *NestedVMInterface` +`func NewNestedVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string, ) *NestedVMInterface` NewNestedVMInterface instantiates a new NestedVMInterface object This constructor will assign default values to properties that have it defined, @@ -70,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedVMInterface) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedVMInterface) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedVMInterface) GetDisplay() string` diff --git a/docs/NestedVirtualMachine.md b/docs/NestedVirtualMachine.md index 34103ae89..95a5a65aa 100644 --- a/docs/NestedVirtualMachine.md +++ b/docs/NestedVirtualMachine.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -14,7 +13,7 @@ Name | Type | Description | Notes ### NewNestedVirtualMachine -`func NewNestedVirtualMachine(id int32, url string, displayUrl string, display string, name string, ) *NestedVirtualMachine` +`func NewNestedVirtualMachine(id int32, url string, display string, name string, ) *NestedVirtualMachine` NewNestedVirtualMachine instantiates a new NestedVirtualMachine object This constructor will assign default values to properties that have it defined, @@ -69,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedVirtualMachine) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedVirtualMachine) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedVirtualMachine) GetDisplay() string` diff --git a/docs/NestedWirelessLink.md b/docs/NestedWirelessLink.md index 758992c48..3eeb8edce 100644 --- a/docs/NestedWirelessLink.md +++ b/docs/NestedWirelessLink.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Ssid** | Pointer to **string** | | [optional] @@ -14,7 +13,7 @@ Name | Type | Description | Notes ### NewNestedWirelessLink -`func NewNestedWirelessLink(id int32, url string, displayUrl string, display string, ) *NestedWirelessLink` +`func NewNestedWirelessLink(id int32, url string, display string, ) *NestedWirelessLink` NewNestedWirelessLink instantiates a new NestedWirelessLink object This constructor will assign default values to properties that have it defined, @@ -69,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *NestedWirelessLink) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *NestedWirelessLink) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *NestedWirelessLink) GetDisplay() string` diff --git a/docs/ObjectChange.md b/docs/ObjectChange.md index 95db4d90f..574ef3fe5 100644 --- a/docs/ObjectChange.md +++ b/docs/ObjectChange.md @@ -6,10 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Time** | **time.Time** | | [readonly] -**User** | [**BriefUser**](BriefUser.md) | | [readonly] +**User** | [**User**](User.md) | | [readonly] **UserName** | **string** | | [readonly] **RequestId** | **string** | | [readonly] **Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | | @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewObjectChange -`func NewObjectChange(id int32, url string, displayUrl string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` +`func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` NewObjectChange instantiates a new ObjectChange object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ObjectChange) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ObjectChange) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ObjectChange) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ObjectChange) GetDisplay() string` @@ -140,20 +119,20 @@ SetTime sets Time field to given value. ### GetUser -`func (o *ObjectChange) GetUser() BriefUser` +`func (o *ObjectChange) GetUser() User` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *ObjectChange) GetUserOk() (*BriefUser, bool)` +`func (o *ObjectChange) GetUserOk() (*User, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *ObjectChange) SetUser(v BriefUser)` +`func (o *ObjectChange) SetUser(v User)` SetUser sets User field to given value. diff --git a/docs/ObjectPermission.md b/docs/ObjectPermission.md index 87f7cf00e..fec4199e4 100644 --- a/docs/ObjectPermission.md +++ b/docs/ObjectPermission.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewObjectPermission -`func NewObjectPermission(id int32, url string, displayUrl string, display string, name string, objectTypes []string, actions []string, ) *ObjectPermission` +`func NewObjectPermission(id int32, url string, display string, name string, objectTypes []string, actions []string, ) *ObjectPermission` NewObjectPermission instantiates a new ObjectPermission object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ObjectPermission) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ObjectPermission) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ObjectPermission) GetDisplay() string` diff --git a/docs/PatchedASNRangeRequest.md b/docs/PatchedASNRangeRequest.md index 235fbbe6c..a777fc11f 100644 --- a/docs/PatchedASNRangeRequest.md +++ b/docs/PatchedASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] **Start** | Pointer to **int64** | | [optional] **End** | Pointer to **int64** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -85,20 +85,20 @@ HasSlug returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest` +`func (o *PatchedASNRangeRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest)` +`func (o *PatchedASNRangeRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. @@ -160,20 +160,20 @@ HasEnd returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedASNRangeRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedASNRequest.md b/docs/PatchedASNRequest.md index 498a45866..4df3e7c67 100644 --- a/docs/PatchedASNRequest.md +++ b/docs/PatchedASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | Pointer to **int64** | 16- or 32-bit autonomous system number | [optional] -**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -58,20 +58,20 @@ HasAsn returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRequest) GetRir() BriefRIRRequest` +`func (o *PatchedASNRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRequest) SetRir(v BriefRIRRequest)` +`func (o *PatchedASNRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. @@ -93,20 +93,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *PatchedASNRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedASNRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedASNRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedBookmarkRequest.md b/docs/PatchedBookmarkRequest.md index b82fd2d84..344f1ee74 100644 --- a/docs/PatchedBookmarkRequest.md +++ b/docs/PatchedBookmarkRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasObjectId returns a boolean if a field has been set. ### GetUser -`func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest` +`func (o *PatchedBookmarkRequest) GetUser() UserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` +`func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest)` +`func (o *PatchedBookmarkRequest) SetUser(v UserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedCircuitTerminationRequest.md b/docs/PatchedCircuitTerminationRequest.md index 28bdc580b..1785e201e 100644 --- a/docs/PatchedCircuitTerminationRequest.md +++ b/docs/PatchedCircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] +**Circuit** | Pointer to [**CircuitRequest**](CircuitRequest.md) | | [optional] **TermSide** | Pointer to [**Termination1**](Termination1.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest` +`func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` +`func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest)` SetCircuit sets Circuit field to given value. @@ -88,20 +88,20 @@ HasTermSide returns a boolean if a field has been set. ### GetSite -`func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest` +`func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -123,20 +123,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` +`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/PatchedConfigContextRequest.md b/docs/PatchedConfigContextRequest.md index 5162d6aca..c4a77f887 100644 --- a/docs/PatchedConfigContextRequest.md +++ b/docs/PatchedConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] **Data** | Pointer to **interface{}** | | [optional] ## Methods @@ -470,20 +470,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest` +`func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` +`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` +`func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedConfigTemplateRequest.md b/docs/PatchedConfigTemplateRequest.md index 37005f012..c9b147592 100644 --- a/docs/PatchedConfigTemplateRequest.md +++ b/docs/PatchedConfigTemplateRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] **TemplateCode** | Pointer to **string** | Jinja2 template code. | [optional] -**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -142,20 +142,20 @@ HasTemplateCode returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` +`func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` +`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` +`func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedContactRequest.md b/docs/PatchedContactRequest.md index 042bee775..d1ad6719e 100644 --- a/docs/PatchedContactRequest.md +++ b/docs/PatchedContactRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableContactGroupRequest**](ContactGroupRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Title** | Pointer to **string** | | [optional] **Phone** | Pointer to **string** | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest` +`func (o *PatchedContactRequest) GetGroup() ContactGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` +`func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest)` +`func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedDeviceBayRequest.md b/docs/PatchedDeviceBayRequest.md index 9df288606..bf25fd2a4 100644 --- a/docs/PatchedDeviceBayRequest.md +++ b/docs/PatchedDeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -133,20 +133,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` +`func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/PatchedDeviceBayTemplateRequest.md b/docs/PatchedDeviceBayTemplateRequest.md index dc8920d73..5ba265ed2 100644 --- a/docs/PatchedDeviceBayTemplateRequest.md +++ b/docs/PatchedDeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/PatchedDeviceRoleRequest.md b/docs/PatchedDeviceRoleRequest.md index f66bc8e9f..19824a38b 100644 --- a/docs/PatchedDeviceRoleRequest.md +++ b/docs/PatchedDeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -134,20 +134,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedExportTemplateRequest.md b/docs/PatchedExportTemplateRequest.md index 2195f5d07..0a424e1f2 100644 --- a/docs/PatchedExportTemplateRequest.md +++ b/docs/PatchedExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] ## Methods @@ -209,20 +209,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest` +`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` +`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` +`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedFHRPGroupAssignmentRequest.md b/docs/PatchedFHRPGroupAssignmentRequest.md index 94ee184e3..4e987d752 100644 --- a/docs/PatchedFHRPGroupAssignmentRequest.md +++ b/docs/PatchedFHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | [optional] +**Group** | Pointer to [**FHRPGroupRequest**](FHRPGroupRequest.md) | | [optional] **InterfaceType** | Pointer to **string** | | [optional] **InterfaceId** | Pointer to **int64** | | [optional] **Priority** | Pointer to **int32** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` +`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedFHRPGroupRequest.md b/docs/PatchedFHRPGroupRequest.md index b708c6485..b1e63b0ca 100644 --- a/docs/PatchedFHRPGroupRequest.md +++ b/docs/PatchedFHRPGroupRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Protocol** | Pointer to [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | [optional] +**Protocol** | Pointer to [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | [optional] **GroupId** | Pointer to **int32** | | [optional] **AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] **AuthKey** | Pointer to **string** | | [optional] @@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set. ### GetProtocol -`func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` +`func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` +`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` +`func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` SetProtocol sets Protocol field to given value. diff --git a/docs/PatchedImageAttachmentRequest.md b/docs/PatchedImageAttachmentRequest.md index fd6d6db09..de2766af0 100644 --- a/docs/PatchedImageAttachmentRequest.md +++ b/docs/PatchedImageAttachmentRequest.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **ObjectId** | Pointer to **int64** | | [optional] **Name** | Pointer to **string** | | [optional] **Image** | Pointer to ***os.File** | | [optional] +**ImageHeight** | Pointer to **int32** | | [optional] +**ImageWidth** | Pointer to **int32** | | [optional] ## Methods @@ -128,6 +130,56 @@ SetImage sets Image field to given value. HasImage returns a boolean if a field has been set. +### GetImageHeight + +`func (o *PatchedImageAttachmentRequest) GetImageHeight() int32` + +GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. + +### GetImageHeightOk + +`func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` + +GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageHeight + +`func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32)` + +SetImageHeight sets ImageHeight field to given value. + +### HasImageHeight + +`func (o *PatchedImageAttachmentRequest) HasImageHeight() bool` + +HasImageHeight returns a boolean if a field has been set. + +### GetImageWidth + +`func (o *PatchedImageAttachmentRequest) GetImageWidth() int32` + +GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. + +### GetImageWidthOk + +`func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` + +GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImageWidth + +`func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32)` + +SetImageWidth sets ImageWidth field to given value. + +### HasImageWidth + +`func (o *PatchedImageAttachmentRequest) HasImageWidth() bool` + +HasImageWidth 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/docs/PatchedInventoryItemRequest.md b/docs/PatchedInventoryItemRequest.md index 15eb808cc..29a3617b6 100644 --- a/docs/PatchedInventoryItemRequest.md +++ b/docs/PatchedInventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -151,20 +151,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` +`func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` +`func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -186,20 +186,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedInventoryItemTemplateRequest.md b/docs/PatchedInventoryItemTemplateRequest.md index 7be75bce8..8bc9025d4 100644 --- a/docs/PatchedInventoryItemTemplateRequest.md +++ b/docs/PatchedInventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -181,20 +181,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedL2VPNTerminationRequest.md b/docs/PatchedL2VPNTerminationRequest.md index 4027c8f8f..52faa0e93 100644 --- a/docs/PatchedL2VPNTerminationRequest.md +++ b/docs/PatchedL2VPNTerminationRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | Pointer to [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | [optional] +**L2vpn** | Pointer to [**L2VPNRequest**](L2VPNRequest.md) | | [optional] **AssignedObjectType** | Pointer to **string** | | [optional] **AssignedObjectId** | Pointer to **int64** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` +`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` SetL2vpn sets L2vpn field to given value. diff --git a/docs/PatchedModuleBayRequest.md b/docs/PatchedModuleBayRequest.md index 9a04dd1db..57abae4fc 100644 --- a/docs/PatchedModuleBayRequest.md +++ b/docs/PatchedModuleBayRequest.md @@ -4,10 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] -**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -35,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -58,41 +57,6 @@ SetDevice sets Device field to given value. HasDevice returns a boolean if a field has been set. -### GetModule - -`func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest` - -GetModule returns the Module field if non-nil, zero value otherwise. - -### GetModuleOk - -`func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` - -GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModule - -`func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest)` - -SetModule sets Module field to given value. - -### HasModule - -`func (o *PatchedModuleBayRequest) HasModule() bool` - -HasModule returns a boolean if a field has been set. - -### SetModuleNil - -`func (o *PatchedModuleBayRequest) SetModuleNil(b bool)` - - SetModuleNil sets the value for Module to be an explicit nil - -### UnsetModule -`func (o *PatchedModuleBayRequest) UnsetModule()` - -UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PatchedModuleBayRequest) GetName() string` @@ -120,20 +84,20 @@ HasName returns a boolean if a field has been set. ### GetInstalledModule -`func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest` +`func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` +`func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/PatchedModuleBayTemplateRequest.md b/docs/PatchedModuleBayTemplateRequest.md index faa58b18a..afa822d29 100644 --- a/docs/PatchedModuleBayTemplateRequest.md +++ b/docs/PatchedModuleBayTemplateRequest.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -32,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -55,51 +54,6 @@ SetDeviceType sets DeviceType field to given value. HasDeviceType returns a boolean if a field has been set. -### SetDeviceTypeNil - -`func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *PatchedModuleBayTemplateRequest) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PatchedModuleBayTemplateRequest) GetName() string` diff --git a/docs/PatchedPlatformRequest.md b/docs/PatchedPlatformRequest.md index a45b87ba4..8c681c658 100644 --- a/docs/PatchedPlatformRequest.md +++ b/docs/PatchedPlatformRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetManufacturer -`func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -118,20 +118,20 @@ HasManufacturer returns a boolean if a field has been set. UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil ### GetConfigTemplate -`func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedPowerPanelRequest.md b/docs/PatchedPowerPanelRequest.md index 832203743..1f2bda37d 100644 --- a/docs/PatchedPowerPanelRequest.md +++ b/docs/PatchedPowerPanelRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest` +`func (o *PatchedPowerPanelRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -58,20 +58,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest` +`func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest)` +`func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest)` SetLocation sets Location field to given value. diff --git a/docs/PatchedProviderAccountRequest.md b/docs/PatchedProviderAccountRequest.md index 8dcbb884e..e4f8fd72e 100644 --- a/docs/PatchedProviderAccountRequest.md +++ b/docs/PatchedProviderAccountRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] +**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest` +`func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` +`func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest)` +`func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedProviderNetworkRequest.md b/docs/PatchedProviderNetworkRequest.md index 9bc9624e3..71345eb12 100644 --- a/docs/PatchedProviderNetworkRequest.md +++ b/docs/PatchedProviderNetworkRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] +**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest` +`func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` +`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest)` +`func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedRackReservationRequest.md b/docs/PatchedRackReservationRequest.md index 0b0b9d334..5347665db 100644 --- a/docs/PatchedRackReservationRequest.md +++ b/docs/PatchedRackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | Pointer to [**BriefRackRequest**](BriefRackRequest.md) | | [optional] +**Rack** | Pointer to [**RackRequest**](RackRequest.md) | | [optional] **Units** | Pointer to **[]int32** | | [optional] -**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest` +`func (o *PatchedRackReservationRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest)` +`func (o *PatchedRackReservationRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -84,20 +84,20 @@ HasUnits returns a boolean if a field has been set. ### GetUser -`func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest` +`func (o *PatchedRackReservationRequest) GetUser() UserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` +`func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest)` +`func (o *PatchedRackReservationRequest) SetUser(v UserRequest)` SetUser sets User field to given value. @@ -109,20 +109,20 @@ HasUser returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedRackReservationRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedRouteTargetRequest.md b/docs/PatchedRouteTargetRequest.md index 95629a647..a08f52e55 100644 --- a/docs/PatchedRouteTargetRequest.md +++ b/docs/PatchedRouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -57,20 +57,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedTenantRequest.md b/docs/PatchedTenantRequest.md index a4b3b23b0..660e88810 100644 --- a/docs/PatchedTenantRequest.md +++ b/docs/PatchedTenantRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableTenantGroupRequest**](TenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest` +`func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` +`func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest)` +`func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedTokenRequest.md b/docs/PatchedTokenRequest.md index 8d27c1785..a62dfd87e 100644 --- a/docs/PatchedTokenRequest.md +++ b/docs/PatchedTokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *PatchedTokenRequest) GetUser() BriefUserRequest` +`func (o *PatchedTokenRequest) GetUser() UserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool)` +`func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedTokenRequest) SetUser(v BriefUserRequest)` +`func (o *PatchedTokenRequest) SetUser(v UserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedVLANGroupRequest.md b/docs/PatchedVLANGroupRequest.md index c9b9b4b28..9847c46b3 100644 --- a/docs/PatchedVLANGroupRequest.md +++ b/docs/PatchedVLANGroupRequest.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] +**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] +**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -151,6 +153,56 @@ HasScopeId returns a boolean if a field has been set. `func (o *PatchedVLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +### GetMinVid + +`func (o *PatchedVLANGroupRequest) GetMinVid() int32` + +GetMinVid returns the MinVid field if non-nil, zero value otherwise. + +### GetMinVidOk + +`func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool)` + +GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinVid + +`func (o *PatchedVLANGroupRequest) SetMinVid(v int32)` + +SetMinVid sets MinVid field to given value. + +### HasMinVid + +`func (o *PatchedVLANGroupRequest) HasMinVid() bool` + +HasMinVid returns a boolean if a field has been set. + +### GetMaxVid + +`func (o *PatchedVLANGroupRequest) GetMaxVid() int32` + +GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. + +### GetMaxVidOk + +`func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool)` + +GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxVid + +`func (o *PatchedVLANGroupRequest) SetMaxVid(v int32)` + +SetMaxVid sets MaxVid field to given value. + +### HasMaxVid + +`func (o *PatchedVLANGroupRequest) HasMaxVid() bool` + +HasMaxVid returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedVLANGroupRequest) GetDescription() string` diff --git a/docs/PatchedVRFRequest.md b/docs/PatchedVRFRequest.md index 5b3fbced6..5c927e21c 100644 --- a/docs/PatchedVRFRequest.md +++ b/docs/PatchedVRFRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -96,20 +96,20 @@ HasRd returns a boolean if a field has been set. UnsetRd ensures that no value is present for Rd, not even an explicit nil ### GetTenant -`func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedVRFRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedVRFRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedVirtualDiskRequest.md b/docs/PatchedVirtualDiskRequest.md index 1a7dd3c34..f8b0d3d48 100644 --- a/docs/PatchedVirtualDiskRequest.md +++ b/docs/PatchedVirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Size** | Pointer to **int32** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableAggregateRequest.md b/docs/PatchedWritableAggregateRequest.md index 3278caefc..41ef04822 100644 --- a/docs/PatchedWritableAggregateRequest.md +++ b/docs/PatchedWritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ HasPrefix returns a boolean if a field has been set. ### GetRir -`func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest` +`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest)` +`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. @@ -84,20 +84,20 @@ HasRir returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md index f01965e68..431b4945f 100644 --- a/docs/PatchedWritableCableRequest.md +++ b/docs/PatchedWritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] +**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PatchedWritableCableRequest) GetType() CableType` +`func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)` +`func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCableRequest) SetType(v CableType)` +`func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue` +`func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` +`func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue)` +`func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableCableRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue` +`func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` +`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` +`func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md index 7f012b64f..90bca5029 100644 --- a/docs/PatchedWritableCircuitRequest.md +++ b/docs/PatchedWritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | Pointer to **string** | Unique circuit ID | [optional] -**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] -**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] -**Type** | Pointer to [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | [optional] -**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] +**Type** | Pointer to [**CircuitTypeRequest**](CircuitTypeRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,7 +17,6 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods @@ -65,20 +64,20 @@ HasCid returns a boolean if a field has been set. ### GetProvider -`func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest` +`func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest)` +`func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest)` SetProvider sets Provider field to given value. @@ -90,20 +89,20 @@ HasProvider returns a boolean if a field has been set. ### GetProviderAccount -`func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` +`func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` +`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -125,20 +124,20 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest` +`func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` +`func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest)` SetType sets Type field to given value. @@ -150,20 +149,20 @@ HasType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue` +`func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` +`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue)` +`func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` SetStatus sets Status field to given value. @@ -175,20 +174,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -413,31 +412,6 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetAssignments - -`func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` - -GetAssignments returns the Assignments field if non-nil, zero value otherwise. - -### GetAssignmentsOk - -`func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` - -GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignments - -`func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` - -SetAssignments sets Assignments field to given value. - -### HasAssignments - -`func (o *PatchedWritableCircuitRequest) HasAssignments() bool` - -HasAssignments 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/docs/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md index 0e1f19b93..18ee4fc62 100644 --- a/docs/PatchedWritableClusterRequest.md +++ b/docs/PatchedWritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Type** | Pointer to [**ClusterTypeRequest**](ClusterTypeRequest.md) | | [optional] +**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -61,20 +61,20 @@ HasName returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest` +`func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest)` +`func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest)` SetType sets Type field to given value. @@ -86,20 +86,20 @@ HasType returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest` +`func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` +`func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest)` SetGroup sets Group field to given value. @@ -121,20 +121,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue` +`func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` +`func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue)` +`func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` SetStatus sets Status field to given value. @@ -146,20 +146,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -181,20 +181,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritableClusterRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. diff --git a/docs/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md index 1b5ea9f2d..52a08ee90 100644 --- a/docs/PatchedWritableConsolePortRequest.md +++ b/docs/PatchedWritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md index 854014935..d9dbf04aa 100644 --- a/docs/PatchedWritableConsolePortTemplateRequest.md +++ b/docs/PatchedWritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md index b2b57e24c..05b70f9d5 100644 --- a/docs/PatchedWritableConsoleServerPortRequest.md +++ b/docs/PatchedWritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md index b8326fbb5..ef7c3aa0e 100644 --- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md +++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md index 791ef1844..e2b7dc360 100644 --- a/docs/PatchedWritableContactAssignmentRequest.md +++ b/docs/PatchedWritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**Contact** | Pointer to [**BriefContactRequest**](BriefContactRequest.md) | | [optional] -**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Contact** | Pointer to [**ContactRequest**](ContactRequest.md) | | [optional] +**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasObjectId returns a boolean if a field has been set. ### GetContact -`func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)` SetContact sets Contact field to given value. @@ -108,20 +108,20 @@ HasContact returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` SetRole sets Role field to given value. @@ -143,20 +143,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` +`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` +`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md index 036786d58..21645eb48 100644 --- a/docs/PatchedWritableCustomFieldRequest.md +++ b/docs/PatchedWritableCustomFieldRequest.md @@ -11,20 +11,18 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] -**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] +**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] -**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -256,31 +254,6 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. -### GetUnique - -`func (o *PatchedWritableCustomFieldRequest) GetUnique() bool` - -GetUnique returns the Unique field if non-nil, zero value otherwise. - -### GetUniqueOk - -`func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` - -GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUnique - -`func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool)` - -SetUnique sets Unique field to given value. - -### HasUnique - -`func (o *PatchedWritableCustomFieldRequest) HasUnique() bool` - -HasUnique returns a boolean if a field has been set. - ### GetSearchWeight `func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32` @@ -441,41 +414,6 @@ HasDefault returns a boolean if a field has been set. `func (o *PatchedWritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil -### GetRelatedObjectFilter - -`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` - -GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. - -### GetRelatedObjectFilterOk - -`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` - -GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelatedObjectFilter - -`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` - -SetRelatedObjectFilter sets RelatedObjectFilter field to given value. - -### HasRelatedObjectFilter - -`func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool` - -HasRelatedObjectFilter returns a boolean if a field has been set. - -### SetRelatedObjectFilterNil - -`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` - - SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil - -### UnsetRelatedObjectFilter -`func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectFilter()` - -UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *PatchedWritableCustomFieldRequest) GetWeight() int32` @@ -598,20 +536,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/PatchedWritableDataSourceRequest.md b/docs/PatchedWritableDataSourceRequest.md index 144dda6f3..89182786d 100644 --- a/docs/PatchedWritableDataSourceRequest.md +++ b/docs/PatchedWritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] -**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -158,6 +158,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PatchedWritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetParameters `func (o *PatchedWritableDataSourceRequest) GetParameters() interface{}` @@ -218,31 +243,6 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. -### GetComments - -`func (o *PatchedWritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PatchedWritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetCustomFields `func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md index 6175c121a..330f80fe3 100644 --- a/docs/PatchedWritableDeviceTypeRequest.md +++ b/docs/PatchedWritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] -**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -44,20 +44,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -69,20 +69,20 @@ HasManufacturer returns a boolean if a field has been set. ### GetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -339,20 +339,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` +`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md index e460e8796..2d049b103 100644 --- a/docs/PatchedWritableDeviceWithConfigContextRequest.md +++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**Role** | Pointer to [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**Role** | Pointer to [**DeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] +**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**RackFace1**](RackFace1.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -90,20 +90,20 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -115,20 +115,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` SetRole sets Role field to given value. @@ -140,20 +140,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -175,20 +175,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` SetPlatform sets Platform field to given value. @@ -270,20 +270,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -295,20 +295,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` SetLocation sets Location field to given value. @@ -330,20 +330,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -545,20 +545,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -580,20 +580,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -615,20 +615,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -650,20 +650,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` SetCluster sets Cluster field to given value. @@ -685,20 +685,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -840,20 +840,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md index eced560e5..b1539fb42 100644 --- a/docs/PatchedWritableEventRuleRequest.md +++ b/docs/PatchedWritableEventRuleRequest.md @@ -6,8 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | Pointer to **[]string** | | [optional] **Name** | Pointer to **string** | | [optional] +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] -**EventTypes** | Pointer to [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | [optional] **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | Pointer to **string** | | [optional] @@ -85,55 +89,155 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. -### GetEnabled +### GetTypeCreate -`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool` -GetEnabled returns the Enabled field if non-nil, zero value otherwise. +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. -### GetEnabledOk +### GetTypeCreateOk -`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnabled +### SetTypeCreate -`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)` -SetEnabled sets Enabled field to given value. +SetTypeCreate sets TypeCreate field to given value. -### HasEnabled +### HasTypeCreate -`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool` -HasEnabled returns a boolean if a field has been set. +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. -### GetEventTypes +### GetTypeJobStart -`func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` +`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool` -GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. -### GetEventTypesOk +### GetTypeJobStartOk -`func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` +`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` -GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEventTypes +### SetTypeJobStart -`func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` +`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)` -SetEventTypes sets EventTypes field to given value. +SetTypeJobStart sets TypeJobStart field to given value. -### HasEventTypes +### HasTypeJobStart -`func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool` +`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool` -HasEventTypes returns a boolean if a field has been set. +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + +### GetEnabled + +`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. ### GetConditions diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md index 83f7b749b..1ad15f568 100644 --- a/docs/PatchedWritableFrontPortRequest.md +++ b/docs/PatchedWritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -63,20 +63,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md index 79b85c905..2b2676581 100644 --- a/docs/PatchedWritableFrontPortTemplateRequest.md +++ b/docs/PatchedWritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] **Color** | Pointer to **string** | | [optional] -**RearPort** | Pointer to [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | [optional] +**RearPort** | Pointer to [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | [optional] **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -205,20 +205,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md index 49191ed36..283f8e6e4 100644 --- a/docs/PatchedWritableIPAddressRequest.md +++ b/docs/PatchedWritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -64,20 +64,20 @@ HasAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest` +`func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest)` +`func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -99,20 +99,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md index 3179cd2c0..f38f93833 100644 --- a/docs/PatchedWritableIPRangeRequest.md +++ b/docs/PatchedWritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | Pointer to **string** | | [optional] **EndAddress** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -87,20 +87,20 @@ HasEndAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest` +`func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest)` +`func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -122,20 +122,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -182,20 +182,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest` +`func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest)` +`func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md index 8cb953b36..8692a34ab 100644 --- a/docs/PatchedWritableIPSecProfileRequest.md +++ b/docs/PatchedWritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional] -**IkePolicy** | Pointer to [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | [optional] -**IpsecPolicy** | Pointer to [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | [optional] +**IkePolicy** | Pointer to [**IKEPolicyRequest**](IKEPolicyRequest.md) | | [optional] +**IpsecPolicy** | Pointer to [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -109,20 +109,20 @@ HasMode returns a boolean if a field has been set. ### GetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. @@ -134,20 +134,20 @@ HasIkePolicy returns a boolean if a field has been set. ### GetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md index b80cdd3d0..be3d47b6d 100644 --- a/docs/PatchedWritableInterfaceRequest.md +++ b/docs/PatchedWritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -108,20 +108,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. @@ -803,20 +803,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` +`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -913,20 +913,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest` +`func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest)` +`func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md index 37a2b3973..dce5b9c25 100644 --- a/docs/PatchedWritableInterfaceTemplateRequest.md +++ b/docs/PatchedWritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableL2VPNRequest.md b/docs/PatchedWritableL2VPNRequest.md index f149765a2..27aad448f 100644 --- a/docs/PatchedWritableL2VPNRequest.md +++ b/docs/PatchedWritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -122,20 +122,20 @@ HasSlug returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue` +`func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` +`func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue)` SetType sets Type field to given value. @@ -247,20 +247,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md index cb0dab0cb..acc3b3ce7 100644 --- a/docs/PatchedWritableLocationRequest.md +++ b/docs/PatchedWritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] -**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -86,20 +86,20 @@ HasSlug returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritableLocationRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -146,20 +146,20 @@ HasParent returns a boolean if a field has been set. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue` +`func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` +`func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue)` +`func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` SetStatus sets Status field to given value. @@ -171,20 +171,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md index 044d52a7b..e5788f6e4 100644 --- a/docs/PatchedWritableModuleRequest.md +++ b/docs/PatchedWritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] **ModuleBay** | Pointer to **int32** | | [optional] -**ModuleType** | Pointer to [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] -**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**ModuleType** | Pointer to [**ModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -86,20 +86,20 @@ HasModuleBay returns a boolean if a field has been set. ### GetModuleType -`func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -111,20 +111,20 @@ HasModuleType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue` +`func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` +`func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue)` +`func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` SetStatus sets Status field to given value. diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md index 298b838d0..179b6c682 100644 --- a/docs/PatchedWritableModuleTypeRequest.md +++ b/docs/PatchedWritableModuleTypeRequest.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] -**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -36,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -109,31 +108,6 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. -### GetAirflow - -`func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - ### GetWeight `func (o *PatchedWritableModuleTypeRequest) GetWeight() float64` @@ -171,20 +145,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` +`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md index 5a5950774..cc35f75bc 100644 --- a/docs/PatchedWritablePowerFeedRequest.md +++ b/docs/PatchedWritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | Pointer to [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | [optional] -**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] +**PowerPanel** | Pointer to [**PowerPanelRequest**](PowerPanelRequest.md) | | [optional] +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -42,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. @@ -67,20 +67,20 @@ HasPowerPanel returns a boolean if a field has been set. ### GetRack -`func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest` +`func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -352,20 +352,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md index e32eb4ef3..eb1ac8177 100644 --- a/docs/PatchedWritablePowerOutletRequest.md +++ b/docs/PatchedWritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md index 702369449..f76400db6 100644 --- a/docs/PatchedWritablePowerOutletRequestType.md +++ b/docs/PatchedWritablePowerOutletRequestType.md @@ -125,8 +125,6 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) -* `NEMA_L22_20R` (value: `"nema-l22-20r"`) - * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md index 083418fb7..42e796ccf 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequest.md +++ b/docs/PatchedWritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -179,20 +179,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md index e607de63f..e1e5a0cbc 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequestType.md +++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md @@ -125,8 +125,6 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) -* `NEMA_L22_20R` (value: `"nema-l22-20r"`) - * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md index 50ac83cae..197374b54 100644 --- a/docs/PatchedWritablePowerPortRequest.md +++ b/docs/PatchedWritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md index ec314c471..0b2b85bc4 100644 --- a/docs/PatchedWritablePowerPortRequestType.md +++ b/docs/PatchedWritablePowerPortRequestType.md @@ -125,8 +125,6 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) -* `NEMA_L22_20P` (value: `"nema-l22-20p"`) - * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md index a6282b699..1b737c2aa 100644 --- a/docs/PatchedWritablePowerPortTemplateRequest.md +++ b/docs/PatchedWritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md index 296570b72..a6fc8d0bf 100644 --- a/docs/PatchedWritablePowerPortTemplateRequestType.md +++ b/docs/PatchedWritablePowerPortTemplateRequestType.md @@ -125,8 +125,6 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) -* `NEMA_L22_20P` (value: `"nema-l22-20p"`) - * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md index 11ecea4d7..91217763d 100644 --- a/docs/PatchedWritablePrefixRequest.md +++ b/docs/PatchedWritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -64,20 +64,20 @@ HasPrefix returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -99,20 +99,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest` +`func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest)` +`func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -134,20 +134,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -169,20 +169,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest` +`func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest)` +`func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest)` SetVlan sets Vlan field to given value. @@ -229,20 +229,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest` +`func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest)` +`func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md index 3a9f84d13..ee517e47e 100644 --- a/docs/PatchedWritableRackRequest.md +++ b/docs/PatchedWritableRackRequest.md @@ -6,27 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] -**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] +**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] -**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -113,20 +111,20 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritableRackRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritableRackRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -138,20 +136,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest` +`func (o *PatchedWritableRackRequest) GetLocation() LocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` +`func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest)` +`func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest)` SetLocation sets Location field to given value. @@ -173,20 +171,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableRackRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -233,20 +231,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest` +`func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` +`func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest)` +`func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest)` SetRole sets Role field to given value. @@ -326,65 +324,30 @@ HasAssetTag returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetRackType +### GetType -`func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest` +`func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType` -GetRackType returns the RackType field if non-nil, zero value otherwise. +GetType returns the Type field if non-nil, zero value otherwise. -### GetRackTypeOk +### GetTypeOk -`func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` +`func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` -GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRackType +### SetType -`func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest)` +`func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType)` -SetRackType sets RackType field to given value. +SetType sets Type field to given value. -### HasRackType +### HasType -`func (o *PatchedWritableRackRequest) HasRackType() bool` +`func (o *PatchedWritableRackRequest) HasType() bool` -HasRackType returns a boolean if a field has been set. - -### SetRackTypeNil - -`func (o *PatchedWritableRackRequest) SetRackTypeNil(b bool)` - - SetRackTypeNil sets the value for RackType to be an explicit nil - -### UnsetRackType -`func (o *PatchedWritableRackRequest) UnsetRackType()` - -UnsetRackType ensures that no value is present for RackType, not even an explicit nil -### GetFormFactor - -`func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` - -GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. - -### GetFormFactorOk - -`func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` - -GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormFactor - -`func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` - -SetFormFactor sets FormFactor field to given value. - -### HasFormFactor - -`func (o *PatchedWritableRackRequest) HasFormFactor() bool` - -HasFormFactor returns a boolean if a field has been set. +HasType returns a boolean if a field has been set. ### GetWidth @@ -533,20 +496,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` +`func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` +`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` +`func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -711,31 +674,6 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil -### GetAirflow - -`func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *PatchedWritableRackRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - ### GetDescription `func (o *PatchedWritableRackRequest) GetDescription() string` diff --git a/docs/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md index c3687e9e3..f77fdd2db 100644 --- a/docs/PatchedWritableRearPortRequest.md +++ b/docs/PatchedWritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest` +`func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest)` +`func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md index 2e43d2d10..200b96c81 100644 --- a/docs/PatchedWritableRearPortTemplateRequest.md +++ b/docs/PatchedWritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md index 7a04b670c..1766d4654 100644 --- a/docs/PatchedWritableServiceRequest.md +++ b/docs/PatchedWritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | Pointer to **[]int32** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md index 8c3c896c8..508c38a89 100644 --- a/docs/PatchedWritableSiteRequest.md +++ b/docs/PatchedWritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Full name of the site | [optional] **Slug** | Pointer to **string** | | [optional] -**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] -**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] +**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -93,20 +93,20 @@ HasSlug returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue` +`func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` +`func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue)` +`func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` SetStatus sets Status field to given value. @@ -118,20 +118,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest` +`func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest)` +`func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest)` SetRegion sets Region field to given value. @@ -153,20 +153,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest` +`func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` +`func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest)` SetGroup sets Group field to given value. @@ -188,20 +188,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md index a4407ef86..5fa722f81 100644 --- a/docs/PatchedWritableTunnelRequest.md +++ b/docs/PatchedWritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] **Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] -**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -87,20 +87,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` +`func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` +`func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ HasEncapsulation returns a boolean if a field has been set. ### GetIpsecProfile -`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` +`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -182,20 +182,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md index 3cbfca83e..15f17c622 100644 --- a/docs/PatchedWritableTunnelTerminationRequest.md +++ b/docs/PatchedWritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | Pointer to [**BriefTunnelRequest**](BriefTunnelRequest.md) | | [optional] +**Tunnel** | Pointer to [**TunnelRequest**](TunnelRequest.md) | | [optional] **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | Pointer to **string** | | [optional] **TerminationId** | Pointer to **NullableInt64** | | [optional] -**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -143,20 +143,20 @@ HasTerminationId returns a boolean if a field has been set. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md index 489fc76da..edfc174e7 100644 --- a/docs/PatchedWritableVLANRequest.md +++ b/docs/PatchedWritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] **Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] **Name** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritableVLANRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest` +`func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` +`func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest)` SetGroup sets Group field to given value. @@ -157,20 +157,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -217,20 +217,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest` +`func (o *PatchedWritableVLANRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest)` +`func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md index 219ce7f6b..ae6bedaea 100644 --- a/docs/PatchedWritableVMInterfaceRequest.md +++ b/docs/PatchedWritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -305,20 +305,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -365,20 +365,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableVirtualDeviceContextRequest.md b/docs/PatchedWritableVirtualDeviceContextRequest.md index e9b0dc680..1954bc853 100644 --- a/docs/PatchedWritableVirtualDeviceContextRequest.md +++ b/docs/PatchedWritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -62,20 +62,20 @@ HasName returns a boolean if a field has been set. ### GetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -122,20 +122,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -157,20 +157,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -192,20 +192,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md index 34e864ee1..08fc04070 100644 --- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md +++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md @@ -5,22 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -71,20 +70,20 @@ HasName returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` SetStatus sets Status field to given value. @@ -96,20 +95,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -131,20 +130,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` SetCluster sets Cluster field to given value. @@ -166,20 +165,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -199,47 +198,22 @@ HasDevice returns a boolean if a field has been set. `func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil -### GetSerial - -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - ### GetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` SetRole sets Role field to given value. @@ -261,20 +235,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -296,20 +270,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` SetPlatform sets Platform field to given value. @@ -331,20 +305,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -366,20 +340,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -556,20 +530,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md index efcbde378..6bb30de66 100644 --- a/docs/PatchedWritableWirelessLANRequest.md +++ b/docs/PatchedWritableWirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -88,20 +88,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` +`func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -148,20 +148,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest` +`func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest)` SetVlan sets Vlan field to given value. @@ -183,20 +183,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md index 5726a3256..a04db8cf4 100644 --- a/docs/PatchedWritableWirelessLinkRequest.md +++ b/docs/PatchedWritableWirelessLinkRequest.md @@ -4,16 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] -**InterfaceB** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] +**InterfaceA** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] +**InterfaceB** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] -**Distance** | Pointer to **NullableFloat64** | | [optional] -**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -40,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. @@ -65,20 +63,20 @@ HasInterfaceA returns a boolean if a field has been set. ### GetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -115,20 +113,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue` +`func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue)` +`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` SetStatus sets Status field to given value. @@ -140,20 +138,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -248,66 +246,6 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. -### GetDistance - -`func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64` - -GetDistance returns the Distance field if non-nil, zero value otherwise. - -### GetDistanceOk - -`func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` - -GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistance - -`func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64)` - -SetDistance sets Distance field to given value. - -### HasDistance - -`func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool` - -HasDistance returns a boolean if a field has been set. - -### SetDistanceNil - -`func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil(b bool)` - - SetDistanceNil sets the value for Distance to be an explicit nil - -### UnsetDistance -`func (o *PatchedWritableWirelessLinkRequest) UnsetDistance()` - -UnsetDistance ensures that no value is present for Distance, not even an explicit nil -### GetDistanceUnit - -`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` - -GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. - -### GetDistanceUnitOk - -`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` - -GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistanceUnit - -`func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` - -SetDistanceUnit sets DistanceUnit field to given value. - -### HasDistanceUnit - -`func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool` - -HasDistanceUnit returns a boolean if a field has been set. - ### GetDescription `func (o *PatchedWritableWirelessLinkRequest) GetDescription() string` diff --git a/docs/Platform.md b/docs/Platform.md index dc8b1beb4..d4c3b9c56 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -6,17 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] @@ -24,7 +17,7 @@ Name | Type | Description | Notes ### NewPlatform -`func NewPlatform(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *Platform` +`func NewPlatform(id int32, url string, display string, name string, slug string, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -79,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Platform) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Platform) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Platform) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Platform) GetDisplay() string` @@ -159,76 +132,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetManufacturer - -`func (o *Platform) GetManufacturer() BriefManufacturer` - -GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. - -### GetManufacturerOk - -`func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool)` - -GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetManufacturer - -`func (o *Platform) SetManufacturer(v BriefManufacturer)` - -SetManufacturer sets Manufacturer field to given value. - -### HasManufacturer - -`func (o *Platform) HasManufacturer() bool` - -HasManufacturer returns a boolean if a field has been set. - -### SetManufacturerNil - -`func (o *Platform) SetManufacturerNil(b bool)` - - SetManufacturerNil sets the value for Manufacturer to be an explicit nil - -### UnsetManufacturer -`func (o *Platform) UnsetManufacturer()` - -UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil -### GetConfigTemplate - -`func (o *Platform) GetConfigTemplate() BriefConfigTemplate` - -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. - -### GetConfigTemplateOk - -`func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` - -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfigTemplate - -`func (o *Platform) SetConfigTemplate(v BriefConfigTemplate)` - -SetConfigTemplate sets ConfigTemplate field to given value. - -### HasConfigTemplate - -`func (o *Platform) HasConfigTemplate() bool` - -HasConfigTemplate returns a boolean if a field has been set. - -### SetConfigTemplateNil - -`func (o *Platform) SetConfigTemplateNil(b bool)` - - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil - -### UnsetConfigTemplate -`func (o *Platform) UnsetConfigTemplate()` - -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *Platform) GetDescription() string` @@ -254,116 +157,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *Platform) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Platform) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Platform) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Platform) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Platform) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Platform) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Platform) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Platform) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Platform) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Platform) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Platform) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Platform) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Platform) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Platform) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Platform) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Platform) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Platform) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Platform) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Platform) GetDeviceCount() int64` diff --git a/docs/PlatformRequest.md b/docs/PlatformRequest.md index 160d7324a..39c7230e5 100644 --- a/docs/PlatformRequest.md +++ b/docs/PlatformRequest.md @@ -6,11 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -71,76 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetManufacturer - -`func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest` - -GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. - -### GetManufacturerOk - -`func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` - -GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetManufacturer - -`func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest)` - -SetManufacturer sets Manufacturer field to given value. - -### HasManufacturer - -`func (o *PlatformRequest) HasManufacturer() bool` - -HasManufacturer returns a boolean if a field has been set. - -### SetManufacturerNil - -`func (o *PlatformRequest) SetManufacturerNil(b bool)` - - SetManufacturerNil sets the value for Manufacturer to be an explicit nil - -### UnsetManufacturer -`func (o *PlatformRequest) UnsetManufacturer()` - -UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil -### GetConfigTemplate - -`func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` - -GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. - -### GetConfigTemplateOk - -`func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` - -GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConfigTemplate - -`func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` - -SetConfigTemplate sets ConfigTemplate field to given value. - -### HasConfigTemplate - -`func (o *PlatformRequest) HasConfigTemplate() bool` - -HasConfigTemplate returns a boolean if a field has been set. - -### SetConfigTemplateNil - -`func (o *PlatformRequest) SetConfigTemplateNil(b bool)` - - SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil - -### UnsetConfigTemplate -`func (o *PlatformRequest) UnsetConfigTemplate()` - -UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *PlatformRequest) GetDescription() string` @@ -166,56 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *PlatformRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *PlatformRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *PlatformRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *PlatformRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *PlatformRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *PlatformRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *PlatformRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *PlatformRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/PowerFeed.md b/docs/PowerFeed.md index fd7d76f87..d1fe1f236 100644 --- a/docs/PowerFeed.md +++ b/docs/PowerFeed.md @@ -6,10 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**PowerPanel** | [**BriefPowerPanel**](BriefPowerPanel.md) | | -**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] +**PowerPanel** | [**PowerPanel**](PowerPanel.md) | | +**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PowerFeedStatus**](PowerFeedStatus.md) | | [optional] **Type** | Pointer to [**PowerFeedType**](PowerFeedType.md) | | [optional] @@ -19,15 +18,15 @@ Name | Type | Description | Notes **Amperage** | Pointer to **int32** | | [optional] **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -39,7 +38,7 @@ Name | Type | Description | Notes ### NewPowerFeed -`func NewPowerFeed(id int32, url string, displayUrl string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` +`func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` NewPowerFeed instantiates a new PowerFeed object This constructor will assign default values to properties that have it defined, @@ -94,26 +93,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *PowerFeed) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *PowerFeed) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *PowerFeed) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *PowerFeed) GetDisplay() string` @@ -136,40 +115,40 @@ SetDisplay sets Display field to given value. ### GetPowerPanel -`func (o *PowerFeed) GetPowerPanel() BriefPowerPanel` +`func (o *PowerFeed) GetPowerPanel() PowerPanel` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool)` +`func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel)` +`func (o *PowerFeed) SetPowerPanel(v PowerPanel)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeed) GetRack() BriefRack` +`func (o *PowerFeed) GetRack() Rack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeed) GetRackOk() (*BriefRack, bool)` +`func (o *PowerFeed) GetRackOk() (*Rack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeed) SetRack(v BriefRack)` +`func (o *PowerFeed) SetRack(v Rack)` SetRack sets Rack field to given value. @@ -411,20 +390,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerFeed) GetCable() BriefCable` +`func (o *PowerFeed) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerFeed) GetCableOk() (*BriefCable, bool)` +`func (o *PowerFeed) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerFeed) SetCable(v BriefCable)` +`func (o *PowerFeed) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -499,16 +478,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *PowerFeed) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *PowerFeed) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerFeed) GetConnectedEndpoints() []interface{}` @@ -529,16 +498,6 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. -### SetConnectedEndpointsNil - -`func (o *PowerFeed) SetConnectedEndpointsNil(b bool)` - - SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil - -### UnsetConnectedEndpoints -`func (o *PowerFeed) UnsetConnectedEndpoints()` - -UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerFeed) GetConnectedEndpointsType() string` @@ -559,16 +518,6 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. -### SetConnectedEndpointsTypeNil - -`func (o *PowerFeed) SetConnectedEndpointsTypeNil(b bool)` - - SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil - -### UnsetConnectedEndpointsType -`func (o *PowerFeed) UnsetConnectedEndpointsType()` - -UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerFeed) GetConnectedEndpointsReachable() bool` @@ -616,20 +565,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeed) GetTenant() BriefTenant` +`func (o *PowerFeed) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool)` +`func (o *PowerFeed) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeed) SetTenant(v BriefTenant)` +`func (o *PowerFeed) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md index a08360ebc..d72dbffb6 100644 --- a/docs/PowerFeedRequest.md +++ b/docs/PowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] +**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewPowerFeedRequest -`func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *PowerFeedRequest` +`func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *PowerFeedRequest` NewPowerFeedRequest instantiates a new PowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` +`func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` +`func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` +`func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeedRequest) GetRack() BriefRackRequest` +`func (o *PowerFeedRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeedRequest) SetRack(v BriefRackRequest)` +`func (o *PowerFeedRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeedRequest) GetTenant() BriefTenantRequest` +`func (o *PowerFeedRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest)` +`func (o *PowerFeedRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerOutlet.md b/docs/PowerOutlet.md index b17d6815b..488ae2777 100644 --- a/docs/PowerOutlet.md +++ b/docs/PowerOutlet.md @@ -6,23 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPort**](BriefPowerPort.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPort**](PowerPort.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsType** | **string** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -34,7 +33,7 @@ Name | Type | Description | Notes ### NewPowerOutlet -`func NewPowerOutlet(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` +`func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` NewPowerOutlet instantiates a new PowerOutlet object This constructor will assign default values to properties that have it defined, @@ -89,26 +88,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *PowerOutlet) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *PowerOutlet) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *PowerOutlet) GetDisplay() string` @@ -131,40 +110,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerOutlet) GetDevice() BriefDevice` +`func (o *PowerOutlet) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool)` +`func (o *PowerOutlet) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutlet) SetDevice(v BriefDevice)` +`func (o *PowerOutlet) SetDevice(v Device)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutlet) GetModule() BriefModule` +`func (o *PowerOutlet) GetModule() Module` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool)` +`func (o *PowerOutlet) GetModuleOk() (*Module, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutlet) SetModule(v BriefModule)` +`func (o *PowerOutlet) SetModule(v Module)` SetModule sets Module field to given value. @@ -266,20 +245,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutlet) GetPowerPort() BriefPowerPort` +`func (o *PowerOutlet) GetPowerPort() PowerPort` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool)` +`func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutlet) SetPowerPort(v BriefPowerPort)` +`func (o *PowerOutlet) SetPowerPort(v PowerPort)` SetPowerPort sets PowerPort field to given value. @@ -386,20 +365,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerOutlet) GetCable() BriefCable` +`func (o *PowerOutlet) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerOutlet) GetCableOk() (*BriefCable, bool)` +`func (o *PowerOutlet) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerOutlet) SetCable(v BriefCable)` +`func (o *PowerOutlet) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -474,16 +453,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *PowerOutlet) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *PowerOutlet) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerOutlet) GetConnectedEndpoints() []interface{}` @@ -504,16 +473,6 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. -### SetConnectedEndpointsNil - -`func (o *PowerOutlet) SetConnectedEndpointsNil(b bool)` - - SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil - -### UnsetConnectedEndpoints -`func (o *PowerOutlet) UnsetConnectedEndpoints()` - -UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerOutlet) GetConnectedEndpointsType() string` @@ -534,16 +493,6 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. -### SetConnectedEndpointsTypeNil - -`func (o *PowerOutlet) SetConnectedEndpointsTypeNil(b bool)` - - SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil - -### UnsetConnectedEndpointsType -`func (o *PowerOutlet) UnsetConnectedEndpointsType()` - -UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerOutlet) GetConnectedEndpointsReachable() bool` diff --git a/docs/PowerOutletRequest.md b/docs/PowerOutletRequest.md index d972b8040..13dda02fd 100644 --- a/docs/PowerOutletRequest.md +++ b/docs/PowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewPowerOutletRequest -`func NewPowerOutletRequest(device BriefDeviceRequest, name string, ) *PowerOutletRequest` +`func NewPowerOutletRequest(device DeviceRequest, name string, ) *PowerOutletRequest` NewPowerOutletRequest instantiates a new PowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest` +`func (o *PowerOutletRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PowerOutletRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutletRequest) GetModule() BriefModuleRequest` +`func (o *PowerOutletRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutletRequest) SetModule(v BriefModuleRequest)` +`func (o *PowerOutletRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest` +`func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` +`func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` +`func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletRequestType.md index ea20ff0b9..c44e44e53 100644 --- a/docs/PowerOutletRequestType.md +++ b/docs/PowerOutletRequestType.md @@ -125,8 +125,6 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) -* `NEMA_L22_20R` (value: `"nema-l22-20r"`) - * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md index e762a82dc..f682defaf 100644 --- a/docs/PowerOutletTemplate.md +++ b/docs/PowerOutletTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortTemplate**](BriefPowerPortTemplate.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -99,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType` +`func (o *PowerOutletTemplate) GetDeviceType() DeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` +`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType)` +`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)` SetDeviceType sets DeviceType field to given value. @@ -134,20 +134,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplate) GetModuleType() BriefModuleType` +`func (o *PowerOutletTemplate) GetModuleType() ModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` +`func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType)` +`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)` SetModuleType sets ModuleType field to given value. @@ -249,20 +249,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate` +`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool)` +`func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate)` +`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md index c4cb92e50..36e06e4b6 100644 --- a/docs/PowerOutletTemplateRequest.md +++ b/docs/PowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -184,20 +184,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` +`func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` +`func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md index 28e2d8309..4df800c34 100644 --- a/docs/PowerOutletTypeLabel.md +++ b/docs/PowerOutletTypeLabel.md @@ -125,8 +125,6 @@ * `NEMA_L21_30_R` (value: `"NEMA L21-30R"`) -* `NEMA_L22_20_R` (value: `"NEMA L22-20R"`) - * `NEMA_L22_30_R` (value: `"NEMA L22-30R"`) * `CS6360_C` (value: `"CS6360C"`) diff --git a/docs/PowerPanel.md b/docs/PowerPanel.md index f5b2a53fe..31346d707 100644 --- a/docs/PowerPanel.md +++ b/docs/PowerPanel.md @@ -6,24 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Site** | [**BriefSite**](BriefSite.md) | | -**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] **PowerfeedCount** | **int64** | | [readonly] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPanel -`func NewPowerPanel(id int32, url string, displayUrl string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime, ) *PowerPanel` +`func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *PowerPanel` NewPowerPanel instantiates a new PowerPanel object This constructor will assign default values to properties that have it defined, @@ -78,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *PowerPanel) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *PowerPanel) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *PowerPanel) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *PowerPanel) GetDisplay() string` @@ -118,61 +90,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetSite - -`func (o *PowerPanel) GetSite() BriefSite` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *PowerPanel) GetSiteOk() (*BriefSite, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *PowerPanel) SetSite(v BriefSite)` - -SetSite sets Site field to given value. - - -### GetLocation - -`func (o *PowerPanel) GetLocation() BriefLocation` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *PowerPanel) SetLocation(v BriefLocation)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *PowerPanel) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### SetLocationNil - -`func (o *PowerPanel) SetLocationNil(b bool)` - - SetLocationNil sets the value for Location to be an explicit nil - -### UnsetLocation -`func (o *PowerPanel) UnsetLocation()` - -UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanel) GetName() string` @@ -218,81 +135,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *PowerPanel) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PowerPanel) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PowerPanel) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PowerPanel) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *PowerPanel) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *PowerPanel) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *PowerPanel) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *PowerPanel) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *PowerPanel) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *PowerPanel) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *PowerPanel) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *PowerPanel) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - ### GetPowerfeedCount `func (o *PowerPanel) GetPowerfeedCount() int64` @@ -313,66 +155,6 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. -### GetCreated - -`func (o *PowerPanel) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *PowerPanel) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *PowerPanel) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *PowerPanel) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *PowerPanel) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *PowerPanel) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *PowerPanel) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *PowerPanel) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *PowerPanel) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/PowerPanelRequest.md b/docs/PowerPanelRequest.md index dbe61e3b7..1993a4681 100644 --- a/docs/PowerPanelRequest.md +++ b/docs/PowerPanelRequest.md @@ -4,19 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPanelRequest -`func NewPowerPanelRequest(site BriefSiteRequest, name string, ) *PowerPanelRequest` +`func NewPowerPanelRequest(name string, ) *PowerPanelRequest` NewPowerPanelRequest instantiates a new PowerPanelRequest object This constructor will assign default values to properties that have it defined, @@ -31,61 +26,6 @@ NewPowerPanelRequestWithDefaults instantiates a new PowerPanelRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetSite - -`func (o *PowerPanelRequest) GetSite() BriefSiteRequest` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *PowerPanelRequest) SetSite(v BriefSiteRequest)` - -SetSite sets Site field to given value. - - -### GetLocation - -`func (o *PowerPanelRequest) GetLocation() BriefLocationRequest` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *PowerPanelRequest) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### SetLocationNil - -`func (o *PowerPanelRequest) SetLocationNil(b bool)` - - SetLocationNil sets the value for Location to be an explicit nil - -### UnsetLocation -`func (o *PowerPanelRequest) UnsetLocation()` - -UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanelRequest) GetName() string` @@ -131,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *PowerPanelRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PowerPanelRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PowerPanelRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PowerPanelRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *PowerPanelRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *PowerPanelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *PowerPanelRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *PowerPanelRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *PowerPanelRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *PowerPanelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *PowerPanelRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/PowerPort.md b/docs/PowerPort.md index 8b21830a2..43c65c7fa 100644 --- a/docs/PowerPort.md +++ b/docs/PowerPort.md @@ -6,35 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | **Name** | **string** | | -**Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] -**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] -**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] -**CableEnd** | **string** | | [readonly] -**LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] -**ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **NullableString** | | [readonly] -**ConnectedEndpointsReachable** | **bool** | | [readonly] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerPort -`func NewPowerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerPort` +`func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool, ) *PowerPort` NewPowerPort instantiates a new PowerPort object This constructor will assign default values to properties that have it defined, @@ -89,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *PowerPort) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *PowerPort) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *PowerPort) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *PowerPort) GetDisplay() string` @@ -131,59 +94,24 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerPort) GetDevice() BriefDevice` +`func (o *PowerPort) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool)` +`func (o *PowerPort) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPort) SetDevice(v BriefDevice)` +`func (o *PowerPort) SetDevice(v Device)` SetDevice sets Device field to given value. -### GetModule - -`func (o *PowerPort) GetModule() BriefModule` - -GetModule returns the Module field if non-nil, zero value otherwise. - -### GetModuleOk - -`func (o *PowerPort) GetModuleOk() (*BriefModule, bool)` - -GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModule - -`func (o *PowerPort) SetModule(v BriefModule)` - -SetModule sets Module field to given value. - -### HasModule - -`func (o *PowerPort) HasModule() bool` - -HasModule returns a boolean if a field has been set. - -### SetModuleNil - -`func (o *PowerPort) SetModuleNil(b bool)` - - SetModuleNil sets the value for Module to be an explicit nil - -### UnsetModule -`func (o *PowerPort) UnsetModule()` - -UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPort) GetName() string` @@ -204,136 +132,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetLabel - -`func (o *PowerPort) GetLabel() string` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *PowerPort) GetLabelOk() (*string, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *PowerPort) SetLabel(v string)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *PowerPort) HasLabel() bool` - -HasLabel returns a boolean if a field has been set. - -### GetType - -`func (o *PowerPort) GetType() PowerPortType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PowerPort) GetTypeOk() (*PowerPortType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *PowerPort) SetType(v PowerPortType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *PowerPort) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *PowerPort) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *PowerPort) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetMaximumDraw - -`func (o *PowerPort) GetMaximumDraw() int32` - -GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. - -### GetMaximumDrawOk - -`func (o *PowerPort) GetMaximumDrawOk() (*int32, bool)` - -GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaximumDraw - -`func (o *PowerPort) SetMaximumDraw(v int32)` - -SetMaximumDraw sets MaximumDraw field to given value. - -### HasMaximumDraw - -`func (o *PowerPort) HasMaximumDraw() bool` - -HasMaximumDraw returns a boolean if a field has been set. - -### SetMaximumDrawNil - -`func (o *PowerPort) SetMaximumDrawNil(b bool)` - - SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil - -### UnsetMaximumDraw -`func (o *PowerPort) UnsetMaximumDraw()` - -UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -### GetAllocatedDraw - -`func (o *PowerPort) GetAllocatedDraw() int32` - -GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. - -### GetAllocatedDrawOk - -`func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool)` - -GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllocatedDraw - -`func (o *PowerPort) SetAllocatedDraw(v int32)` - -SetAllocatedDraw sets AllocatedDraw field to given value. - -### HasAllocatedDraw - -`func (o *PowerPort) HasAllocatedDraw() bool` - -HasAllocatedDraw returns a boolean if a field has been set. - -### SetAllocatedDrawNil - -`func (o *PowerPort) SetAllocatedDrawNil(b bool)` - - SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil - -### UnsetAllocatedDraw -`func (o *PowerPort) UnsetAllocatedDraw()` - -UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPort) GetDescription() string` @@ -359,47 +157,22 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetMarkConnected - -`func (o *PowerPort) GetMarkConnected() bool` - -GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. - -### GetMarkConnectedOk - -`func (o *PowerPort) GetMarkConnectedOk() (*bool, bool)` - -GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarkConnected - -`func (o *PowerPort) SetMarkConnected(v bool)` - -SetMarkConnected sets MarkConnected field to given value. - -### HasMarkConnected - -`func (o *PowerPort) HasMarkConnected() bool` - -HasMarkConnected returns a boolean if a field has been set. - ### GetCable -`func (o *PowerPort) GetCable() BriefCable` +`func (o *PowerPort) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerPort) GetCableOk() (*BriefCable, bool)` +`func (o *PowerPort) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerPort) SetCable(v BriefCable)` +`func (o *PowerPort) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -414,266 +187,6 @@ SetCable sets Cable field to given value. `func (o *PowerPort) UnsetCable()` UnsetCable ensures that no value is present for Cable, not even an explicit nil -### GetCableEnd - -`func (o *PowerPort) GetCableEnd() string` - -GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. - -### GetCableEndOk - -`func (o *PowerPort) GetCableEndOk() (*string, bool)` - -GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCableEnd - -`func (o *PowerPort) SetCableEnd(v string)` - -SetCableEnd sets CableEnd field to given value. - - -### GetLinkPeers - -`func (o *PowerPort) GetLinkPeers() []interface{}` - -GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. - -### GetLinkPeersOk - -`func (o *PowerPort) GetLinkPeersOk() (*[]interface{}, bool)` - -GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinkPeers - -`func (o *PowerPort) SetLinkPeers(v []interface{})` - -SetLinkPeers sets LinkPeers field to given value. - - -### GetLinkPeersType - -`func (o *PowerPort) GetLinkPeersType() string` - -GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. - -### GetLinkPeersTypeOk - -`func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool)` - -GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLinkPeersType - -`func (o *PowerPort) SetLinkPeersType(v string)` - -SetLinkPeersType sets LinkPeersType field to given value. - - -### SetLinkPeersTypeNil - -`func (o *PowerPort) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *PowerPort) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil -### GetConnectedEndpoints - -`func (o *PowerPort) GetConnectedEndpoints() []interface{}` - -GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. - -### GetConnectedEndpointsOk - -`func (o *PowerPort) GetConnectedEndpointsOk() (*[]interface{}, bool)` - -GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConnectedEndpoints - -`func (o *PowerPort) SetConnectedEndpoints(v []interface{})` - -SetConnectedEndpoints sets ConnectedEndpoints field to given value. - - -### SetConnectedEndpointsNil - -`func (o *PowerPort) SetConnectedEndpointsNil(b bool)` - - SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil - -### UnsetConnectedEndpoints -`func (o *PowerPort) UnsetConnectedEndpoints()` - -UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil -### GetConnectedEndpointsType - -`func (o *PowerPort) GetConnectedEndpointsType() string` - -GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. - -### GetConnectedEndpointsTypeOk - -`func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool)` - -GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConnectedEndpointsType - -`func (o *PowerPort) SetConnectedEndpointsType(v string)` - -SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. - - -### SetConnectedEndpointsTypeNil - -`func (o *PowerPort) SetConnectedEndpointsTypeNil(b bool)` - - SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil - -### UnsetConnectedEndpointsType -`func (o *PowerPort) UnsetConnectedEndpointsType()` - -UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil -### GetConnectedEndpointsReachable - -`func (o *PowerPort) GetConnectedEndpointsReachable() bool` - -GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. - -### GetConnectedEndpointsReachableOk - -`func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool)` - -GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetConnectedEndpointsReachable - -`func (o *PowerPort) SetConnectedEndpointsReachable(v bool)` - -SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. - - -### GetTags - -`func (o *PowerPort) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *PowerPort) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *PowerPort) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *PowerPort) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *PowerPort) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *PowerPort) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *PowerPort) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *PowerPort) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *PowerPort) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *PowerPort) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *PowerPort) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *PowerPort) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *PowerPort) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *PowerPort) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *PowerPort) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *PowerPort) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *PowerPort) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetOccupied `func (o *PowerPort) GetOccupied() bool` diff --git a/docs/PowerPortRequest.md b/docs/PowerPortRequest.md index 26e241c9a..5828bf357 100644 --- a/docs/PowerPortRequest.md +++ b/docs/PowerPortRequest.md @@ -4,23 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Name** | **string** | | -**Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] -**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] -**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPortRequest -`func NewPowerPortRequest(device BriefDeviceRequest, name string, ) *PowerPortRequest` +`func NewPowerPortRequest(device DeviceRequest, name string, ) *PowerPortRequest` NewPowerPortRequest instantiates a new PowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,59 +29,24 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerPortRequest) GetDevice() BriefDeviceRequest` +`func (o *PowerPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *PowerPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. -### GetModule - -`func (o *PowerPortRequest) GetModule() BriefModuleRequest` - -GetModule returns the Module field if non-nil, zero value otherwise. - -### GetModuleOk - -`func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` - -GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModule - -`func (o *PowerPortRequest) SetModule(v BriefModuleRequest)` - -SetModule sets Module field to given value. - -### HasModule - -`func (o *PowerPortRequest) HasModule() bool` - -HasModule returns a boolean if a field has been set. - -### SetModuleNil - -`func (o *PowerPortRequest) SetModuleNil(b bool)` - - SetModuleNil sets the value for Module to be an explicit nil - -### UnsetModule -`func (o *PowerPortRequest) UnsetModule()` - -UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPortRequest) GetName() string` @@ -110,136 +67,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetLabel - -`func (o *PowerPortRequest) GetLabel() string` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *PowerPortRequest) GetLabelOk() (*string, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *PowerPortRequest) SetLabel(v string)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *PowerPortRequest) HasLabel() bool` - -HasLabel returns a boolean if a field has been set. - -### GetType - -`func (o *PowerPortRequest) GetType() PowerPortRequestType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *PowerPortRequest) SetType(v PowerPortRequestType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *PowerPortRequest) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *PowerPortRequest) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *PowerPortRequest) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetMaximumDraw - -`func (o *PowerPortRequest) GetMaximumDraw() int32` - -GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. - -### GetMaximumDrawOk - -`func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool)` - -GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaximumDraw - -`func (o *PowerPortRequest) SetMaximumDraw(v int32)` - -SetMaximumDraw sets MaximumDraw field to given value. - -### HasMaximumDraw - -`func (o *PowerPortRequest) HasMaximumDraw() bool` - -HasMaximumDraw returns a boolean if a field has been set. - -### SetMaximumDrawNil - -`func (o *PowerPortRequest) SetMaximumDrawNil(b bool)` - - SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil - -### UnsetMaximumDraw -`func (o *PowerPortRequest) UnsetMaximumDraw()` - -UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -### GetAllocatedDraw - -`func (o *PowerPortRequest) GetAllocatedDraw() int32` - -GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. - -### GetAllocatedDrawOk - -`func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool)` - -GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllocatedDraw - -`func (o *PowerPortRequest) SetAllocatedDraw(v int32)` - -SetAllocatedDraw sets AllocatedDraw field to given value. - -### HasAllocatedDraw - -`func (o *PowerPortRequest) HasAllocatedDraw() bool` - -HasAllocatedDraw returns a boolean if a field has been set. - -### SetAllocatedDrawNil - -`func (o *PowerPortRequest) SetAllocatedDrawNil(b bool)` - - SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil - -### UnsetAllocatedDraw -`func (o *PowerPortRequest) UnsetAllocatedDraw()` - -UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortRequest) GetDescription() string` @@ -265,81 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetMarkConnected - -`func (o *PowerPortRequest) GetMarkConnected() bool` - -GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. - -### GetMarkConnectedOk - -`func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool)` - -GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMarkConnected - -`func (o *PowerPortRequest) SetMarkConnected(v bool)` - -SetMarkConnected sets MarkConnected field to given value. - -### HasMarkConnected - -`func (o *PowerPortRequest) HasMarkConnected() bool` - -HasMarkConnected returns a boolean if a field has been set. - -### GetTags - -`func (o *PowerPortRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *PowerPortRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *PowerPortRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *PowerPortRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *PowerPortRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *PowerPortRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *PowerPortRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *PowerPortRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/PowerPortTemplate.md b/docs/PowerPortTemplate.md index 6f50846c8..0ddb2e324 100644 --- a/docs/PowerPortTemplate.md +++ b/docs/PowerPortTemplate.md @@ -7,22 +7,14 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | -**Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] -**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] -**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPortTemplate -`func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerPortTemplate` +`func NewPowerPortTemplate(id int32, url string, display string, name string, ) *PowerPortTemplate` NewPowerPortTemplate instantiates a new PowerPortTemplate object This constructor will assign default values to properties that have it defined, @@ -97,76 +89,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetDeviceType - -`func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType` - -GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. - -### GetDeviceTypeOk - -`func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` - -GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceType - -`func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType)` - -SetDeviceType sets DeviceType field to given value. - -### HasDeviceType - -`func (o *PowerPortTemplate) HasDeviceType() bool` - -HasDeviceType returns a boolean if a field has been set. - -### SetDeviceTypeNil - -`func (o *PowerPortTemplate) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *PowerPortTemplate) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *PowerPortTemplate) GetModuleType() BriefModuleType` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *PowerPortTemplate) SetModuleType(v BriefModuleType)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *PowerPortTemplate) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *PowerPortTemplate) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *PowerPortTemplate) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplate) GetName() string` @@ -187,136 +109,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetLabel - -`func (o *PowerPortTemplate) GetLabel() string` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *PowerPortTemplate) GetLabelOk() (*string, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *PowerPortTemplate) SetLabel(v string)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *PowerPortTemplate) HasLabel() bool` - -HasLabel returns a boolean if a field has been set. - -### GetType - -`func (o *PowerPortTemplate) GetType() PowerPortType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *PowerPortTemplate) SetType(v PowerPortType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *PowerPortTemplate) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *PowerPortTemplate) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *PowerPortTemplate) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetMaximumDraw - -`func (o *PowerPortTemplate) GetMaximumDraw() int32` - -GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. - -### GetMaximumDrawOk - -`func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool)` - -GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaximumDraw - -`func (o *PowerPortTemplate) SetMaximumDraw(v int32)` - -SetMaximumDraw sets MaximumDraw field to given value. - -### HasMaximumDraw - -`func (o *PowerPortTemplate) HasMaximumDraw() bool` - -HasMaximumDraw returns a boolean if a field has been set. - -### SetMaximumDrawNil - -`func (o *PowerPortTemplate) SetMaximumDrawNil(b bool)` - - SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil - -### UnsetMaximumDraw -`func (o *PowerPortTemplate) UnsetMaximumDraw()` - -UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -### GetAllocatedDraw - -`func (o *PowerPortTemplate) GetAllocatedDraw() int32` - -GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. - -### GetAllocatedDrawOk - -`func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool)` - -GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllocatedDraw - -`func (o *PowerPortTemplate) SetAllocatedDraw(v int32)` - -SetAllocatedDraw sets AllocatedDraw field to given value. - -### HasAllocatedDraw - -`func (o *PowerPortTemplate) HasAllocatedDraw() bool` - -HasAllocatedDraw returns a boolean if a field has been set. - -### SetAllocatedDrawNil - -`func (o *PowerPortTemplate) SetAllocatedDrawNil(b bool)` - - SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil - -### UnsetAllocatedDraw -`func (o *PowerPortTemplate) UnsetAllocatedDraw()` - -UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplate) GetDescription() string` @@ -342,66 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetCreated - -`func (o *PowerPortTemplate) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *PowerPortTemplate) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *PowerPortTemplate) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *PowerPortTemplate) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *PowerPortTemplate) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *PowerPortTemplate) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *PowerPortTemplate) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *PowerPortTemplate) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md index 30f81cd0b..7c113cd12 100644 --- a/docs/PowerPortTemplateRequest.md +++ b/docs/PowerPortTemplateRequest.md @@ -4,13 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | -**Label** | Pointer to **string** | Physical label | [optional] -**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] -**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] -**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -32,76 +26,6 @@ NewPowerPortTemplateRequestWithDefaults instantiates a new PowerPortTemplateRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetDeviceType - -`func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` - -GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. - -### GetDeviceTypeOk - -`func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` - -GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceType - -`func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` - -SetDeviceType sets DeviceType field to given value. - -### HasDeviceType - -`func (o *PowerPortTemplateRequest) HasDeviceType() bool` - -HasDeviceType returns a boolean if a field has been set. - -### SetDeviceTypeNil - -`func (o *PowerPortTemplateRequest) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *PowerPortTemplateRequest) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *PowerPortTemplateRequest) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *PowerPortTemplateRequest) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *PowerPortTemplateRequest) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplateRequest) GetName() string` @@ -122,136 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetLabel - -`func (o *PowerPortTemplateRequest) GetLabel() string` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *PowerPortTemplateRequest) SetLabel(v string)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *PowerPortTemplateRequest) HasLabel() bool` - -HasLabel returns a boolean if a field has been set. - -### GetType - -`func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType)` - -SetType sets Type field to given value. - -### HasType - -`func (o *PowerPortTemplateRequest) HasType() bool` - -HasType returns a boolean if a field has been set. - -### SetTypeNil - -`func (o *PowerPortTemplateRequest) SetTypeNil(b bool)` - - SetTypeNil sets the value for Type to be an explicit nil - -### UnsetType -`func (o *PowerPortTemplateRequest) UnsetType()` - -UnsetType ensures that no value is present for Type, not even an explicit nil -### GetMaximumDraw - -`func (o *PowerPortTemplateRequest) GetMaximumDraw() int32` - -GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. - -### GetMaximumDrawOk - -`func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool)` - -GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaximumDraw - -`func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32)` - -SetMaximumDraw sets MaximumDraw field to given value. - -### HasMaximumDraw - -`func (o *PowerPortTemplateRequest) HasMaximumDraw() bool` - -HasMaximumDraw returns a boolean if a field has been set. - -### SetMaximumDrawNil - -`func (o *PowerPortTemplateRequest) SetMaximumDrawNil(b bool)` - - SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil - -### UnsetMaximumDraw -`func (o *PowerPortTemplateRequest) UnsetMaximumDraw()` - -UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -### GetAllocatedDraw - -`func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32` - -GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. - -### GetAllocatedDrawOk - -`func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool)` - -GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAllocatedDraw - -`func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32)` - -SetAllocatedDraw sets AllocatedDraw field to given value. - -### HasAllocatedDraw - -`func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool` - -HasAllocatedDraw returns a boolean if a field has been set. - -### SetAllocatedDrawNil - -`func (o *PowerPortTemplateRequest) SetAllocatedDrawNil(b bool)` - - SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil - -### UnsetAllocatedDraw -`func (o *PowerPortTemplateRequest) UnsetAllocatedDraw()` - -UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplateRequest) GetDescription() string` diff --git a/docs/Prefix.md b/docs/Prefix.md index 66c553024..b1b6821a6 100644 --- a/docs/Prefix.md +++ b/docs/Prefix.md @@ -6,16 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] -**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] **Status** | Pointer to [**PrefixStatus**](PrefixStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] +**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -31,7 +30,7 @@ Name | Type | Description | Notes ### NewPrefix -`func NewPrefix(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` +`func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32, ) *Prefix` NewPrefix instantiates a new Prefix object This constructor will assign default values to properties that have it defined, @@ -86,26 +85,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Prefix) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Prefix) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Prefix) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Prefix) GetDisplay() string` @@ -168,20 +147,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *Prefix) GetSite() BriefSite` +`func (o *Prefix) GetSite() Site` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Prefix) GetSiteOk() (*BriefSite, bool)` +`func (o *Prefix) GetSiteOk() (*Site, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Prefix) SetSite(v BriefSite)` +`func (o *Prefix) SetSite(v Site)` SetSite sets Site field to given value. @@ -203,20 +182,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *Prefix) GetVrf() BriefVRF` +`func (o *Prefix) GetVrf() VRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Prefix) GetVrfOk() (*BriefVRF, bool)` +`func (o *Prefix) GetVrfOk() (*VRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Prefix) SetVrf(v BriefVRF)` +`func (o *Prefix) SetVrf(v VRF)` SetVrf sets Vrf field to given value. @@ -238,20 +217,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *Prefix) GetTenant() BriefTenant` +`func (o *Prefix) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Prefix) GetTenantOk() (*BriefTenant, bool)` +`func (o *Prefix) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Prefix) SetTenant(v BriefTenant)` +`func (o *Prefix) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -273,20 +252,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *Prefix) GetVlan() BriefVLAN` +`func (o *Prefix) GetVlan() VLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *Prefix) GetVlanOk() (*BriefVLAN, bool)` +`func (o *Prefix) GetVlanOk() (*VLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *Prefix) SetVlan(v BriefVLAN)` +`func (o *Prefix) SetVlan(v VLAN)` SetVlan sets Vlan field to given value. @@ -333,20 +312,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *Prefix) GetRole() BriefRole` +`func (o *Prefix) GetRole() Role` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Prefix) GetRoleOk() (*BriefRole, bool)` +`func (o *Prefix) GetRoleOk() (*Role, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Prefix) SetRole(v BriefRole)` +`func (o *Prefix) SetRole(v Role)` SetRole sets Role field to given value. diff --git a/docs/PrefixRequest.md b/docs/PrefixRequest.md index 9f8079465..ae1f2006b 100644 --- a/docs/PrefixRequest.md +++ b/docs/PrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *PrefixRequest) GetSite() BriefSiteRequest` +`func (o *PrefixRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PrefixRequest) SetSite(v BriefSiteRequest)` +`func (o *PrefixRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PrefixRequest) GetVrf() BriefVRFRequest` +`func (o *PrefixRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PrefixRequest) SetVrf(v BriefVRFRequest)` +`func (o *PrefixRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PrefixRequest) GetTenant() BriefTenantRequest` +`func (o *PrefixRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PrefixRequest) SetTenant(v BriefTenantRequest)` +`func (o *PrefixRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PrefixRequest) GetVlan() BriefVLANRequest` +`func (o *PrefixRequest) GetVlan() VLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` +`func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PrefixRequest) SetVlan(v BriefVLANRequest)` +`func (o *PrefixRequest) SetVlan(v VLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PrefixRequest) GetRole() BriefRoleRequest` +`func (o *PrefixRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PrefixRequest) SetRole(v BriefRoleRequest)` +`func (o *PrefixRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/Provider.md b/docs/Provider.md index 7f587c8e7..16fd7e5df 100644 --- a/docs/Provider.md +++ b/docs/Provider.md @@ -6,25 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the provider | **Slug** | **string** | | -**Accounts** | Pointer to [**[]NestedProviderAccount**](NestedProviderAccount.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **CircuitCount** | **int64** | | [readonly] ## Methods ### NewProvider -`func NewProvider(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *Provider` +`func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Provider` NewProvider instantiates a new Provider object This constructor will assign default values to properties that have it defined, @@ -79,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Provider) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Provider) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Provider) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Provider) GetDisplay() string` @@ -159,31 +131,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetAccounts - -`func (o *Provider) GetAccounts() []NestedProviderAccount` - -GetAccounts returns the Accounts field if non-nil, zero value otherwise. - -### GetAccountsOk - -`func (o *Provider) GetAccountsOk() (*[]NestedProviderAccount, bool)` - -GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccounts - -`func (o *Provider) SetAccounts(v []NestedProviderAccount)` - -SetAccounts sets Accounts field to given value. - -### HasAccounts - -`func (o *Provider) HasAccounts() bool` - -HasAccounts returns a boolean if a field has been set. - ### GetDescription `func (o *Provider) GetDescription() string` @@ -209,166 +156,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Provider) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Provider) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Provider) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Provider) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetAsns - -`func (o *Provider) GetAsns() []ASN` - -GetAsns returns the Asns field if non-nil, zero value otherwise. - -### GetAsnsOk - -`func (o *Provider) GetAsnsOk() (*[]ASN, bool)` - -GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsns - -`func (o *Provider) SetAsns(v []ASN)` - -SetAsns sets Asns field to given value. - -### HasAsns - -`func (o *Provider) HasAsns() bool` - -HasAsns returns a boolean if a field has been set. - -### GetTags - -`func (o *Provider) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Provider) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Provider) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Provider) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Provider) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Provider) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Provider) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Provider) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Provider) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Provider) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Provider) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Provider) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Provider) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Provider) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Provider) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Provider) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Provider) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Provider) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetCircuitCount `func (o *Provider) GetCircuitCount() int64` diff --git a/docs/ProviderAccount.md b/docs/ProviderAccount.md index 4ea7ef591..aac9f2198 100644 --- a/docs/ProviderAccount.md +++ b/docs/ProviderAccount.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Provider** | [**BriefProvider**](BriefProvider.md) | | +**Provider** | [**Provider**](Provider.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewProviderAccount -`func NewProviderAccount(id int32, url string, displayUrl string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` +`func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` NewProviderAccount instantiates a new ProviderAccount object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ProviderAccount) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ProviderAccount) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ProviderAccount) GetDisplay() string` @@ -119,20 +98,20 @@ SetDisplay sets Display field to given value. ### GetProvider -`func (o *ProviderAccount) GetProvider() BriefProvider` +`func (o *ProviderAccount) GetProvider() Provider` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool)` +`func (o *ProviderAccount) GetProviderOk() (*Provider, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *ProviderAccount) SetProvider(v BriefProvider)` +`func (o *ProviderAccount) SetProvider(v Provider)` SetProvider sets Provider field to given value. diff --git a/docs/ProviderAccountRequest.md b/docs/ProviderAccountRequest.md index bf38cf07e..73ff7c78b 100644 --- a/docs/ProviderAccountRequest.md +++ b/docs/ProviderAccountRequest.md @@ -4,19 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderAccountRequest -`func NewProviderAccountRequest(provider BriefProviderRequest, account string, ) *ProviderAccountRequest` +`func NewProviderAccountRequest(account string, ) *ProviderAccountRequest` NewProviderAccountRequest instantiates a new ProviderAccountRequest object This constructor will assign default values to properties that have it defined, @@ -31,26 +27,6 @@ NewProviderAccountRequestWithDefaults instantiates a new ProviderAccountRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetProvider - -`func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest` - -GetProvider returns the Provider field if non-nil, zero value otherwise. - -### GetProviderOk - -`func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` - -GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProvider - -`func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest)` - -SetProvider sets Provider field to given value. - - ### GetName `func (o *ProviderAccountRequest) GetName() string` @@ -121,81 +97,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ProviderAccountRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ProviderAccountRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ProviderAccountRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ProviderAccountRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ProviderAccountRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ProviderAccountRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ProviderAccountRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ProviderAccountRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/ProviderNetwork.md b/docs/ProviderNetwork.md index b0fdec44c..de3e09373 100644 --- a/docs/ProviderNetwork.md +++ b/docs/ProviderNetwork.md @@ -6,23 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | **string** | | -**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewProviderNetwork -`func NewProviderNetwork(id int32, url string, displayUrl string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime, ) *ProviderNetwork` +`func NewProviderNetwork(id int32, url string, display string, name string, ) *ProviderNetwork` NewProviderNetwork instantiates a new ProviderNetwork object This constructor will assign default values to properties that have it defined, @@ -77,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ProviderNetwork) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ProviderNetwork) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ProviderNetwork) GetDisplay() string` @@ -117,26 +89,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetProvider - -`func (o *ProviderNetwork) GetProvider() BriefProvider` - -GetProvider returns the Provider field if non-nil, zero value otherwise. - -### GetProviderOk - -`func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool)` - -GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProvider - -`func (o *ProviderNetwork) SetProvider(v BriefProvider)` - -SetProvider sets Provider field to given value. - - ### GetName `func (o *ProviderNetwork) GetName() string` @@ -157,31 +109,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetServiceId - -`func (o *ProviderNetwork) GetServiceId() string` - -GetServiceId returns the ServiceId field if non-nil, zero value otherwise. - -### GetServiceIdOk - -`func (o *ProviderNetwork) GetServiceIdOk() (*string, bool)` - -GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServiceId - -`func (o *ProviderNetwork) SetServiceId(v string)` - -SetServiceId sets ServiceId field to given value. - -### HasServiceId - -`func (o *ProviderNetwork) HasServiceId() bool` - -HasServiceId returns a boolean if a field has been set. - ### GetDescription `func (o *ProviderNetwork) GetDescription() string` @@ -207,141 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ProviderNetwork) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ProviderNetwork) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ProviderNetwork) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ProviderNetwork) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ProviderNetwork) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ProviderNetwork) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ProviderNetwork) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ProviderNetwork) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ProviderNetwork) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ProviderNetwork) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ProviderNetwork) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ProviderNetwork) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *ProviderNetwork) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *ProviderNetwork) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *ProviderNetwork) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *ProviderNetwork) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *ProviderNetwork) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *ProviderNetwork) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *ProviderNetwork) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *ProviderNetwork) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ProviderNetworkRequest.md b/docs/ProviderNetworkRequest.md index 45b2b952a..21f981aa6 100644 --- a/docs/ProviderNetworkRequest.md +++ b/docs/ProviderNetworkRequest.md @@ -4,19 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | **string** | | -**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderNetworkRequest -`func NewProviderNetworkRequest(provider BriefProviderRequest, name string, ) *ProviderNetworkRequest` +`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest` NewProviderNetworkRequest instantiates a new ProviderNetworkRequest object This constructor will assign default values to properties that have it defined, @@ -31,26 +26,6 @@ NewProviderNetworkRequestWithDefaults instantiates a new ProviderNetworkRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetProvider - -`func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest` - -GetProvider returns the Provider field if non-nil, zero value otherwise. - -### GetProviderOk - -`func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` - -GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetProvider - -`func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest)` - -SetProvider sets Provider field to given value. - - ### GetName `func (o *ProviderNetworkRequest) GetName() string` @@ -71,31 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetServiceId - -`func (o *ProviderNetworkRequest) GetServiceId() string` - -GetServiceId returns the ServiceId field if non-nil, zero value otherwise. - -### GetServiceIdOk - -`func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool)` - -GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetServiceId - -`func (o *ProviderNetworkRequest) SetServiceId(v string)` - -SetServiceId sets ServiceId field to given value. - -### HasServiceId - -`func (o *ProviderNetworkRequest) HasServiceId() bool` - -HasServiceId returns a boolean if a field has been set. - ### GetDescription `func (o *ProviderNetworkRequest) GetDescription() string` @@ -121,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ProviderNetworkRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ProviderNetworkRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ProviderNetworkRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ProviderNetworkRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ProviderNetworkRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ProviderNetworkRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ProviderNetworkRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/ProviderRequest.md b/docs/ProviderRequest.md index c03de9ce6..a7e51837e 100644 --- a/docs/ProviderRequest.md +++ b/docs/ProviderRequest.md @@ -6,12 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the provider | **Slug** | **string** | | -**Accounts** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Asns** | Pointer to **[]int32** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -72,31 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetAccounts - -`func (o *ProviderRequest) GetAccounts() []int32` - -GetAccounts returns the Accounts field if non-nil, zero value otherwise. - -### GetAccountsOk - -`func (o *ProviderRequest) GetAccountsOk() (*[]int32, bool)` - -GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAccounts - -`func (o *ProviderRequest) SetAccounts(v []int32)` - -SetAccounts sets Accounts field to given value. - -### HasAccounts - -`func (o *ProviderRequest) HasAccounts() bool` - -HasAccounts returns a boolean if a field has been set. - ### GetDescription `func (o *ProviderRequest) GetDescription() string` @@ -122,106 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *ProviderRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *ProviderRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *ProviderRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *ProviderRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetAsns - -`func (o *ProviderRequest) GetAsns() []int32` - -GetAsns returns the Asns field if non-nil, zero value otherwise. - -### GetAsnsOk - -`func (o *ProviderRequest) GetAsnsOk() (*[]int32, bool)` - -GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsns - -`func (o *ProviderRequest) SetAsns(v []int32)` - -SetAsns sets Asns field to given value. - -### HasAsns - -`func (o *ProviderRequest) HasAsns() bool` - -HasAsns returns a boolean if a field has been set. - -### GetTags - -`func (o *ProviderRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *ProviderRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *ProviderRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *ProviderRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *ProviderRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *ProviderRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *ProviderRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *ProviderRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/RIR.md b/docs/RIR.md index 2bb4cce6e..2c027c73a 100644 --- a/docs/RIR.md +++ b/docs/RIR.md @@ -6,23 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **AggregateCount** | **int64** | | [readonly] ## Methods ### NewRIR -`func NewRIR(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64, ) *RIR` +`func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *RIR` NewRIR instantiates a new RIR object This constructor will assign default values to properties that have it defined, @@ -77,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *RIR) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *RIR) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *RIR) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *RIR) GetDisplay() string` @@ -157,31 +131,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetIsPrivate - -`func (o *RIR) GetIsPrivate() bool` - -GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. - -### GetIsPrivateOk - -`func (o *RIR) GetIsPrivateOk() (*bool, bool)` - -GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsPrivate - -`func (o *RIR) SetIsPrivate(v bool)` - -SetIsPrivate sets IsPrivate field to given value. - -### HasIsPrivate - -`func (o *RIR) HasIsPrivate() bool` - -HasIsPrivate returns a boolean if a field has been set. - ### GetDescription `func (o *RIR) GetDescription() string` @@ -207,116 +156,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *RIR) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *RIR) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *RIR) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *RIR) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *RIR) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *RIR) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *RIR) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *RIR) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *RIR) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *RIR) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *RIR) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *RIR) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *RIR) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *RIR) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *RIR) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *RIR) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *RIR) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *RIR) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetAggregateCount `func (o *RIR) GetAggregateCount() int64` diff --git a/docs/RIRRequest.md b/docs/RIRRequest.md index 761c2570e..3a102b34c 100644 --- a/docs/RIRRequest.md +++ b/docs/RIRRequest.md @@ -6,10 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -70,31 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetIsPrivate - -`func (o *RIRRequest) GetIsPrivate() bool` - -GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. - -### GetIsPrivateOk - -`func (o *RIRRequest) GetIsPrivateOk() (*bool, bool)` - -GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsPrivate - -`func (o *RIRRequest) SetIsPrivate(v bool)` - -SetIsPrivate sets IsPrivate field to given value. - -### HasIsPrivate - -`func (o *RIRRequest) HasIsPrivate() bool` - -HasIsPrivate returns a boolean if a field has been set. - ### GetDescription `func (o *RIRRequest) GetDescription() string` @@ -120,56 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *RIRRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *RIRRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *RIRRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *RIRRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *RIRRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *RIRRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *RIRRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *RIRRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Rack.md b/docs/Rack.md index da8228764..20e4a6cb2 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -6,45 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**BriefSite**](BriefSite.md) | | -**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Status** | Pointer to [**RackStatus**](RackStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRackRole**](BriefRackRole.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**RackType** | Pointer to [**NullableBriefRackType**](BriefRackType.md) | | [optional] -**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.md) | | [optional] -**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] -**UHeight** | Pointer to **int32** | Height in rack units | [optional] -**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] -**Weight** | Pointer to **NullableFloat64** | | [optional] -**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] -**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] -**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] -**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] -**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] -**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] -**Airflow** | Pointer to [**RackAirflow**](RackAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] -**PowerfeedCount** | **int64** | | [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, displayUrl string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, powerfeedCount int64, ) *Rack` +`func NewRack(id int32, url string, display string, name string, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -99,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Rack) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Rack) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Rack) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Rack) GetDisplay() string` @@ -159,691 +110,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetFacilityId - -`func (o *Rack) GetFacilityId() string` - -GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. - -### GetFacilityIdOk - -`func (o *Rack) GetFacilityIdOk() (*string, bool)` - -GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFacilityId - -`func (o *Rack) SetFacilityId(v string)` - -SetFacilityId sets FacilityId field to given value. - -### HasFacilityId - -`func (o *Rack) HasFacilityId() bool` - -HasFacilityId returns a boolean if a field has been set. - -### SetFacilityIdNil - -`func (o *Rack) SetFacilityIdNil(b bool)` - - SetFacilityIdNil sets the value for FacilityId to be an explicit nil - -### UnsetFacilityId -`func (o *Rack) UnsetFacilityId()` - -UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil -### GetSite - -`func (o *Rack) GetSite() BriefSite` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *Rack) GetSiteOk() (*BriefSite, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *Rack) SetSite(v BriefSite)` - -SetSite sets Site field to given value. - - -### GetLocation - -`func (o *Rack) GetLocation() BriefLocation` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *Rack) GetLocationOk() (*BriefLocation, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *Rack) SetLocation(v BriefLocation)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *Rack) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### SetLocationNil - -`func (o *Rack) SetLocationNil(b bool)` - - SetLocationNil sets the value for Location to be an explicit nil - -### UnsetLocation -`func (o *Rack) UnsetLocation()` - -UnsetLocation ensures that no value is present for Location, not even an explicit nil -### GetTenant - -`func (o *Rack) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Rack) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Rack) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Rack) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Rack) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Rack) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetStatus - -`func (o *Rack) GetStatus() RackStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Rack) GetStatusOk() (*RackStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Rack) SetStatus(v RackStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Rack) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRole - -`func (o *Rack) GetRole() BriefRackRole` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *Rack) GetRoleOk() (*BriefRackRole, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *Rack) SetRole(v BriefRackRole)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *Rack) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### SetRoleNil - -`func (o *Rack) SetRoleNil(b bool)` - - SetRoleNil sets the value for Role to be an explicit nil - -### UnsetRole -`func (o *Rack) UnsetRole()` - -UnsetRole ensures that no value is present for Role, not even an explicit nil -### GetSerial - -`func (o *Rack) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *Rack) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *Rack) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *Rack) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - -### GetAssetTag - -`func (o *Rack) GetAssetTag() string` - -GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. - -### GetAssetTagOk - -`func (o *Rack) GetAssetTagOk() (*string, bool)` - -GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssetTag - -`func (o *Rack) SetAssetTag(v string)` - -SetAssetTag sets AssetTag field to given value. - -### HasAssetTag - -`func (o *Rack) HasAssetTag() bool` - -HasAssetTag returns a boolean if a field has been set. - -### SetAssetTagNil - -`func (o *Rack) SetAssetTagNil(b bool)` - - SetAssetTagNil sets the value for AssetTag to be an explicit nil - -### UnsetAssetTag -`func (o *Rack) UnsetAssetTag()` - -UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetRackType - -`func (o *Rack) GetRackType() BriefRackType` - -GetRackType returns the RackType field if non-nil, zero value otherwise. - -### GetRackTypeOk - -`func (o *Rack) GetRackTypeOk() (*BriefRackType, bool)` - -GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRackType - -`func (o *Rack) SetRackType(v BriefRackType)` - -SetRackType sets RackType field to given value. - -### HasRackType - -`func (o *Rack) HasRackType() bool` - -HasRackType returns a boolean if a field has been set. - -### SetRackTypeNil - -`func (o *Rack) SetRackTypeNil(b bool)` - - SetRackTypeNil sets the value for RackType to be an explicit nil - -### UnsetRackType -`func (o *Rack) UnsetRackType()` - -UnsetRackType ensures that no value is present for RackType, not even an explicit nil -### GetFormFactor - -`func (o *Rack) GetFormFactor() RackFormFactor` - -GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. - -### GetFormFactorOk - -`func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool)` - -GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormFactor - -`func (o *Rack) SetFormFactor(v RackFormFactor)` - -SetFormFactor sets FormFactor field to given value. - -### HasFormFactor - -`func (o *Rack) HasFormFactor() bool` - -HasFormFactor returns a boolean if a field has been set. - -### SetFormFactorNil - -`func (o *Rack) SetFormFactorNil(b bool)` - - SetFormFactorNil sets the value for FormFactor to be an explicit nil - -### UnsetFormFactor -`func (o *Rack) UnsetFormFactor()` - -UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil -### GetWidth - -`func (o *Rack) GetWidth() RackWidth` - -GetWidth returns the Width field if non-nil, zero value otherwise. - -### GetWidthOk - -`func (o *Rack) GetWidthOk() (*RackWidth, bool)` - -GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWidth - -`func (o *Rack) SetWidth(v RackWidth)` - -SetWidth sets Width field to given value. - -### HasWidth - -`func (o *Rack) HasWidth() bool` - -HasWidth returns a boolean if a field has been set. - -### GetUHeight - -`func (o *Rack) GetUHeight() int32` - -GetUHeight returns the UHeight field if non-nil, zero value otherwise. - -### GetUHeightOk - -`func (o *Rack) GetUHeightOk() (*int32, bool)` - -GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUHeight - -`func (o *Rack) SetUHeight(v int32)` - -SetUHeight sets UHeight field to given value. - -### HasUHeight - -`func (o *Rack) HasUHeight() bool` - -HasUHeight returns a boolean if a field has been set. - -### GetStartingUnit - -`func (o *Rack) GetStartingUnit() int32` - -GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. - -### GetStartingUnitOk - -`func (o *Rack) GetStartingUnitOk() (*int32, bool)` - -GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartingUnit - -`func (o *Rack) SetStartingUnit(v int32)` - -SetStartingUnit sets StartingUnit field to given value. - -### HasStartingUnit - -`func (o *Rack) HasStartingUnit() bool` - -HasStartingUnit returns a boolean if a field has been set. - -### GetWeight - -`func (o *Rack) GetWeight() float64` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *Rack) GetWeightOk() (*float64, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *Rack) SetWeight(v float64)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *Rack) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - -### SetWeightNil - -`func (o *Rack) SetWeightNil(b bool)` - - SetWeightNil sets the value for Weight to be an explicit nil - -### UnsetWeight -`func (o *Rack) UnsetWeight()` - -UnsetWeight ensures that no value is present for Weight, not even an explicit nil -### GetMaxWeight - -`func (o *Rack) GetMaxWeight() int32` - -GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. - -### GetMaxWeightOk - -`func (o *Rack) GetMaxWeightOk() (*int32, bool)` - -GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxWeight - -`func (o *Rack) SetMaxWeight(v int32)` - -SetMaxWeight sets MaxWeight field to given value. - -### HasMaxWeight - -`func (o *Rack) HasMaxWeight() bool` - -HasMaxWeight returns a boolean if a field has been set. - -### SetMaxWeightNil - -`func (o *Rack) SetMaxWeightNil(b bool)` - - SetMaxWeightNil sets the value for MaxWeight to be an explicit nil - -### UnsetMaxWeight -`func (o *Rack) UnsetMaxWeight()` - -UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil -### GetWeightUnit - -`func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit` - -GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. - -### GetWeightUnitOk - -`func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` - -GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeightUnit - -`func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit)` - -SetWeightUnit sets WeightUnit field to given value. - -### HasWeightUnit - -`func (o *Rack) HasWeightUnit() bool` - -HasWeightUnit returns a boolean if a field has been set. - -### SetWeightUnitNil - -`func (o *Rack) SetWeightUnitNil(b bool)` - - SetWeightUnitNil sets the value for WeightUnit to be an explicit nil - -### UnsetWeightUnit -`func (o *Rack) UnsetWeightUnit()` - -UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -### GetDescUnits - -`func (o *Rack) GetDescUnits() bool` - -GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. - -### GetDescUnitsOk - -`func (o *Rack) GetDescUnitsOk() (*bool, bool)` - -GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescUnits - -`func (o *Rack) SetDescUnits(v bool)` - -SetDescUnits sets DescUnits field to given value. - -### HasDescUnits - -`func (o *Rack) HasDescUnits() bool` - -HasDescUnits returns a boolean if a field has been set. - -### GetOuterWidth - -`func (o *Rack) GetOuterWidth() int32` - -GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. - -### GetOuterWidthOk - -`func (o *Rack) GetOuterWidthOk() (*int32, bool)` - -GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterWidth - -`func (o *Rack) SetOuterWidth(v int32)` - -SetOuterWidth sets OuterWidth field to given value. - -### HasOuterWidth - -`func (o *Rack) HasOuterWidth() bool` - -HasOuterWidth returns a boolean if a field has been set. - -### SetOuterWidthNil - -`func (o *Rack) SetOuterWidthNil(b bool)` - - SetOuterWidthNil sets the value for OuterWidth to be an explicit nil - -### UnsetOuterWidth -`func (o *Rack) UnsetOuterWidth()` - -UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil -### GetOuterDepth - -`func (o *Rack) GetOuterDepth() int32` - -GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. - -### GetOuterDepthOk - -`func (o *Rack) GetOuterDepthOk() (*int32, bool)` - -GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterDepth - -`func (o *Rack) SetOuterDepth(v int32)` - -SetOuterDepth sets OuterDepth field to given value. - -### HasOuterDepth - -`func (o *Rack) HasOuterDepth() bool` - -HasOuterDepth returns a boolean if a field has been set. - -### SetOuterDepthNil - -`func (o *Rack) SetOuterDepthNil(b bool)` - - SetOuterDepthNil sets the value for OuterDepth to be an explicit nil - -### UnsetOuterDepth -`func (o *Rack) UnsetOuterDepth()` - -UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil -### GetOuterUnit - -`func (o *Rack) GetOuterUnit() RackOuterUnit` - -GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. - -### GetOuterUnitOk - -`func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool)` - -GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterUnit - -`func (o *Rack) SetOuterUnit(v RackOuterUnit)` - -SetOuterUnit sets OuterUnit field to given value. - -### HasOuterUnit - -`func (o *Rack) HasOuterUnit() bool` - -HasOuterUnit returns a boolean if a field has been set. - -### SetOuterUnitNil - -`func (o *Rack) SetOuterUnitNil(b bool)` - - SetOuterUnitNil sets the value for OuterUnit to be an explicit nil - -### UnsetOuterUnit -`func (o *Rack) UnsetOuterUnit()` - -UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil -### GetMountingDepth - -`func (o *Rack) GetMountingDepth() int32` - -GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. - -### GetMountingDepthOk - -`func (o *Rack) GetMountingDepthOk() (*int32, bool)` - -GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMountingDepth - -`func (o *Rack) SetMountingDepth(v int32)` - -SetMountingDepth sets MountingDepth field to given value. - -### HasMountingDepth - -`func (o *Rack) HasMountingDepth() bool` - -HasMountingDepth returns a boolean if a field has been set. - -### SetMountingDepthNil - -`func (o *Rack) SetMountingDepthNil(b bool)` - - SetMountingDepthNil sets the value for MountingDepth to be an explicit nil - -### UnsetMountingDepth -`func (o *Rack) UnsetMountingDepth()` - -UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil -### GetAirflow - -`func (o *Rack) GetAirflow() RackAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *Rack) GetAirflowOk() (*RackAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *Rack) SetAirflow(v RackAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *Rack) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - ### GetDescription `func (o *Rack) GetDescription() string` @@ -869,141 +135,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Rack) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Rack) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Rack) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Rack) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Rack) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Rack) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Rack) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Rack) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Rack) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Rack) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Rack) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Rack) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Rack) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Rack) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Rack) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Rack) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Rack) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Rack) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Rack) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Rack) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Rack) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Rack) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Rack) GetDeviceCount() int64` @@ -1029,26 +160,6 @@ SetDeviceCount sets DeviceCount field to given value. HasDeviceCount returns a boolean if a field has been set. -### GetPowerfeedCount - -`func (o *Rack) GetPowerfeedCount() int64` - -GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. - -### GetPowerfeedCountOk - -`func (o *Rack) GetPowerfeedCountOk() (*int64, bool)` - -GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPowerfeedCount - -`func (o *Rack) SetPowerfeedCount(v int64)` - -SetPowerfeedCount sets PowerfeedCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RackRequest.md b/docs/RackRequest.md index 12ddea190..fdc2c2dd5 100644 --- a/docs/RackRequest.md +++ b/docs/RackRequest.md @@ -5,38 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] -**FormFactor** | Pointer to [**NullableRackRequestFormFactor**](RackRequestFormFactor.md) | | [optional] -**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] -**UHeight** | Pointer to **int32** | Height in rack units | [optional] -**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] -**Weight** | Pointer to **NullableFloat64** | | [optional] -**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] -**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] -**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] -**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] -**OuterUnit** | Pointer to [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.md) | | [optional] -**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] -**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewRackRequest -`func NewRackRequest(name string, site BriefSiteRequest, ) *RackRequest` +`func NewRackRequest(name string, ) *RackRequest` NewRackRequest instantiates a new RackRequest object This constructor will assign default values to properties that have it defined, @@ -71,691 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetFacilityId - -`func (o *RackRequest) GetFacilityId() string` - -GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. - -### GetFacilityIdOk - -`func (o *RackRequest) GetFacilityIdOk() (*string, bool)` - -GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFacilityId - -`func (o *RackRequest) SetFacilityId(v string)` - -SetFacilityId sets FacilityId field to given value. - -### HasFacilityId - -`func (o *RackRequest) HasFacilityId() bool` - -HasFacilityId returns a boolean if a field has been set. - -### SetFacilityIdNil - -`func (o *RackRequest) SetFacilityIdNil(b bool)` - - SetFacilityIdNil sets the value for FacilityId to be an explicit nil - -### UnsetFacilityId -`func (o *RackRequest) UnsetFacilityId()` - -UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil -### GetSite - -`func (o *RackRequest) GetSite() BriefSiteRequest` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *RackRequest) SetSite(v BriefSiteRequest)` - -SetSite sets Site field to given value. - - -### GetLocation - -`func (o *RackRequest) GetLocation() BriefLocationRequest` - -GetLocation returns the Location field if non-nil, zero value otherwise. - -### GetLocationOk - -`func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool)` - -GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLocation - -`func (o *RackRequest) SetLocation(v BriefLocationRequest)` - -SetLocation sets Location field to given value. - -### HasLocation - -`func (o *RackRequest) HasLocation() bool` - -HasLocation returns a boolean if a field has been set. - -### SetLocationNil - -`func (o *RackRequest) SetLocationNil(b bool)` - - SetLocationNil sets the value for Location to be an explicit nil - -### UnsetLocation -`func (o *RackRequest) UnsetLocation()` - -UnsetLocation ensures that no value is present for Location, not even an explicit nil -### GetTenant - -`func (o *RackRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *RackRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *RackRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *RackRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *RackRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetStatus - -`func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *RackRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRole - -`func (o *RackRequest) GetRole() BriefRackRoleRequest` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *RackRequest) SetRole(v BriefRackRoleRequest)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *RackRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### SetRoleNil - -`func (o *RackRequest) SetRoleNil(b bool)` - - SetRoleNil sets the value for Role to be an explicit nil - -### UnsetRole -`func (o *RackRequest) UnsetRole()` - -UnsetRole ensures that no value is present for Role, not even an explicit nil -### GetSerial - -`func (o *RackRequest) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *RackRequest) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *RackRequest) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *RackRequest) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - -### GetAssetTag - -`func (o *RackRequest) GetAssetTag() string` - -GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. - -### GetAssetTagOk - -`func (o *RackRequest) GetAssetTagOk() (*string, bool)` - -GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssetTag - -`func (o *RackRequest) SetAssetTag(v string)` - -SetAssetTag sets AssetTag field to given value. - -### HasAssetTag - -`func (o *RackRequest) HasAssetTag() bool` - -HasAssetTag returns a boolean if a field has been set. - -### SetAssetTagNil - -`func (o *RackRequest) SetAssetTagNil(b bool)` - - SetAssetTagNil sets the value for AssetTag to be an explicit nil - -### UnsetAssetTag -`func (o *RackRequest) UnsetAssetTag()` - -UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetRackType - -`func (o *RackRequest) GetRackType() BriefRackTypeRequest` - -GetRackType returns the RackType field if non-nil, zero value otherwise. - -### GetRackTypeOk - -`func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` - -GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRackType - -`func (o *RackRequest) SetRackType(v BriefRackTypeRequest)` - -SetRackType sets RackType field to given value. - -### HasRackType - -`func (o *RackRequest) HasRackType() bool` - -HasRackType returns a boolean if a field has been set. - -### SetRackTypeNil - -`func (o *RackRequest) SetRackTypeNil(b bool)` - - SetRackTypeNil sets the value for RackType to be an explicit nil - -### UnsetRackType -`func (o *RackRequest) UnsetRackType()` - -UnsetRackType ensures that no value is present for RackType, not even an explicit nil -### GetFormFactor - -`func (o *RackRequest) GetFormFactor() RackRequestFormFactor` - -GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. - -### GetFormFactorOk - -`func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool)` - -GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormFactor - -`func (o *RackRequest) SetFormFactor(v RackRequestFormFactor)` - -SetFormFactor sets FormFactor field to given value. - -### HasFormFactor - -`func (o *RackRequest) HasFormFactor() bool` - -HasFormFactor returns a boolean if a field has been set. - -### SetFormFactorNil - -`func (o *RackRequest) SetFormFactorNil(b bool)` - - SetFormFactorNil sets the value for FormFactor to be an explicit nil - -### UnsetFormFactor -`func (o *RackRequest) UnsetFormFactor()` - -UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil -### GetWidth - -`func (o *RackRequest) GetWidth() RackWidthValue` - -GetWidth returns the Width field if non-nil, zero value otherwise. - -### GetWidthOk - -`func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool)` - -GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWidth - -`func (o *RackRequest) SetWidth(v RackWidthValue)` - -SetWidth sets Width field to given value. - -### HasWidth - -`func (o *RackRequest) HasWidth() bool` - -HasWidth returns a boolean if a field has been set. - -### GetUHeight - -`func (o *RackRequest) GetUHeight() int32` - -GetUHeight returns the UHeight field if non-nil, zero value otherwise. - -### GetUHeightOk - -`func (o *RackRequest) GetUHeightOk() (*int32, bool)` - -GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUHeight - -`func (o *RackRequest) SetUHeight(v int32)` - -SetUHeight sets UHeight field to given value. - -### HasUHeight - -`func (o *RackRequest) HasUHeight() bool` - -HasUHeight returns a boolean if a field has been set. - -### GetStartingUnit - -`func (o *RackRequest) GetStartingUnit() int32` - -GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. - -### GetStartingUnitOk - -`func (o *RackRequest) GetStartingUnitOk() (*int32, bool)` - -GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStartingUnit - -`func (o *RackRequest) SetStartingUnit(v int32)` - -SetStartingUnit sets StartingUnit field to given value. - -### HasStartingUnit - -`func (o *RackRequest) HasStartingUnit() bool` - -HasStartingUnit returns a boolean if a field has been set. - -### GetWeight - -`func (o *RackRequest) GetWeight() float64` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *RackRequest) GetWeightOk() (*float64, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *RackRequest) SetWeight(v float64)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *RackRequest) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - -### SetWeightNil - -`func (o *RackRequest) SetWeightNil(b bool)` - - SetWeightNil sets the value for Weight to be an explicit nil - -### UnsetWeight -`func (o *RackRequest) UnsetWeight()` - -UnsetWeight ensures that no value is present for Weight, not even an explicit nil -### GetMaxWeight - -`func (o *RackRequest) GetMaxWeight() int32` - -GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. - -### GetMaxWeightOk - -`func (o *RackRequest) GetMaxWeightOk() (*int32, bool)` - -GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxWeight - -`func (o *RackRequest) SetMaxWeight(v int32)` - -SetMaxWeight sets MaxWeight field to given value. - -### HasMaxWeight - -`func (o *RackRequest) HasMaxWeight() bool` - -HasMaxWeight returns a boolean if a field has been set. - -### SetMaxWeightNil - -`func (o *RackRequest) SetMaxWeightNil(b bool)` - - SetMaxWeightNil sets the value for MaxWeight to be an explicit nil - -### UnsetMaxWeight -`func (o *RackRequest) UnsetMaxWeight()` - -UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil -### GetWeightUnit - -`func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` - -GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. - -### GetWeightUnitOk - -`func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` - -GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeightUnit - -`func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` - -SetWeightUnit sets WeightUnit field to given value. - -### HasWeightUnit - -`func (o *RackRequest) HasWeightUnit() bool` - -HasWeightUnit returns a boolean if a field has been set. - -### SetWeightUnitNil - -`func (o *RackRequest) SetWeightUnitNil(b bool)` - - SetWeightUnitNil sets the value for WeightUnit to be an explicit nil - -### UnsetWeightUnit -`func (o *RackRequest) UnsetWeightUnit()` - -UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -### GetDescUnits - -`func (o *RackRequest) GetDescUnits() bool` - -GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. - -### GetDescUnitsOk - -`func (o *RackRequest) GetDescUnitsOk() (*bool, bool)` - -GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDescUnits - -`func (o *RackRequest) SetDescUnits(v bool)` - -SetDescUnits sets DescUnits field to given value. - -### HasDescUnits - -`func (o *RackRequest) HasDescUnits() bool` - -HasDescUnits returns a boolean if a field has been set. - -### GetOuterWidth - -`func (o *RackRequest) GetOuterWidth() int32` - -GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. - -### GetOuterWidthOk - -`func (o *RackRequest) GetOuterWidthOk() (*int32, bool)` - -GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterWidth - -`func (o *RackRequest) SetOuterWidth(v int32)` - -SetOuterWidth sets OuterWidth field to given value. - -### HasOuterWidth - -`func (o *RackRequest) HasOuterWidth() bool` - -HasOuterWidth returns a boolean if a field has been set. - -### SetOuterWidthNil - -`func (o *RackRequest) SetOuterWidthNil(b bool)` - - SetOuterWidthNil sets the value for OuterWidth to be an explicit nil - -### UnsetOuterWidth -`func (o *RackRequest) UnsetOuterWidth()` - -UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil -### GetOuterDepth - -`func (o *RackRequest) GetOuterDepth() int32` - -GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. - -### GetOuterDepthOk - -`func (o *RackRequest) GetOuterDepthOk() (*int32, bool)` - -GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterDepth - -`func (o *RackRequest) SetOuterDepth(v int32)` - -SetOuterDepth sets OuterDepth field to given value. - -### HasOuterDepth - -`func (o *RackRequest) HasOuterDepth() bool` - -HasOuterDepth returns a boolean if a field has been set. - -### SetOuterDepthNil - -`func (o *RackRequest) SetOuterDepthNil(b bool)` - - SetOuterDepthNil sets the value for OuterDepth to be an explicit nil - -### UnsetOuterDepth -`func (o *RackRequest) UnsetOuterDepth()` - -UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil -### GetOuterUnit - -`func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit` - -GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. - -### GetOuterUnitOk - -`func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool)` - -GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetOuterUnit - -`func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit)` - -SetOuterUnit sets OuterUnit field to given value. - -### HasOuterUnit - -`func (o *RackRequest) HasOuterUnit() bool` - -HasOuterUnit returns a boolean if a field has been set. - -### SetOuterUnitNil - -`func (o *RackRequest) SetOuterUnitNil(b bool)` - - SetOuterUnitNil sets the value for OuterUnit to be an explicit nil - -### UnsetOuterUnit -`func (o *RackRequest) UnsetOuterUnit()` - -UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil -### GetMountingDepth - -`func (o *RackRequest) GetMountingDepth() int32` - -GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. - -### GetMountingDepthOk - -`func (o *RackRequest) GetMountingDepthOk() (*int32, bool)` - -GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMountingDepth - -`func (o *RackRequest) SetMountingDepth(v int32)` - -SetMountingDepth sets MountingDepth field to given value. - -### HasMountingDepth - -`func (o *RackRequest) HasMountingDepth() bool` - -HasMountingDepth returns a boolean if a field has been set. - -### SetMountingDepthNil - -`func (o *RackRequest) SetMountingDepthNil(b bool)` - - SetMountingDepthNil sets the value for MountingDepth to be an explicit nil - -### UnsetMountingDepth -`func (o *RackRequest) UnsetMountingDepth()` - -UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil -### GetAirflow - -`func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *RackRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - ### GetDescription `func (o *RackRequest) GetDescription() string` @@ -781,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *RackRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *RackRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *RackRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *RackRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *RackRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *RackRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *RackRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *RackRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *RackRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *RackRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *RackRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *RackRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/RackReservation.md b/docs/RackReservation.md index 3908a59cf..d8fdbd2ff 100644 --- a/docs/RackReservation.md +++ b/docs/RackReservation.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Rack** | [**BriefRack**](BriefRack.md) | | +**Rack** | [**Rack**](Rack.md) | | **Units** | **[]int32** | | **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**User** | [**BriefUser**](BriefUser.md) | | -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**User** | [**User**](User.md) | | +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewRackReservation -`func NewRackReservation(id int32, url string, displayUrl string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string, ) *RackReservation` +`func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string, ) *RackReservation` NewRackReservation instantiates a new RackReservation object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *RackReservation) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *RackReservation) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *RackReservation) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *RackReservation) GetDisplay() string` @@ -120,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetRack -`func (o *RackReservation) GetRack() BriefRack` +`func (o *RackReservation) GetRack() Rack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservation) GetRackOk() (*BriefRack, bool)` +`func (o *RackReservation) GetRackOk() (*Rack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservation) SetRack(v BriefRack)` +`func (o *RackReservation) SetRack(v Rack)` SetRack sets Rack field to given value. @@ -220,40 +199,40 @@ SetLastUpdated sets LastUpdated field to given value. UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetUser -`func (o *RackReservation) GetUser() BriefUser` +`func (o *RackReservation) GetUser() User` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservation) GetUserOk() (*BriefUser, bool)` +`func (o *RackReservation) GetUserOk() (*User, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservation) SetUser(v BriefUser)` +`func (o *RackReservation) SetUser(v User)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservation) GetTenant() BriefTenant` +`func (o *RackReservation) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservation) GetTenantOk() (*BriefTenant, bool)` +`func (o *RackReservation) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservation) SetTenant(v BriefTenant)` +`func (o *RackReservation) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RackReservationRequest.md b/docs/RackReservationRequest.md index 1910e473a..e87e36a89 100644 --- a/docs/RackReservationRequest.md +++ b/docs/RackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | [**BriefRackRequest**](BriefRackRequest.md) | | +**Rack** | [**RackRequest**](RackRequest.md) | | **Units** | **[]int32** | | -**User** | [**BriefUserRequest**](BriefUserRequest.md) | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**User** | [**UserRequest**](UserRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewRackReservationRequest -`func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string, ) *RackReservationRequest` +`func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string, ) *RackReservationRequest` NewRackReservationRequest instantiates a new RackReservationRequest object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *RackReservationRequest) GetRack() BriefRackRequest` +`func (o *RackReservationRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservationRequest) SetRack(v BriefRackRequest)` +`func (o *RackReservationRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -74,40 +74,40 @@ SetUnits sets Units field to given value. ### GetUser -`func (o *RackReservationRequest) GetUser() BriefUserRequest` +`func (o *RackReservationRequest) GetUser() UserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` +`func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservationRequest) SetUser(v BriefUserRequest)` +`func (o *RackReservationRequest) SetUser(v UserRequest)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservationRequest) GetTenant() BriefTenantRequest` +`func (o *RackReservationRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservationRequest) SetTenant(v BriefTenantRequest)` +`func (o *RackReservationRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/RackRole.md b/docs/RackRole.md index 25a4d6f53..a13905573 100644 --- a/docs/RackRole.md +++ b/docs/RackRole.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewRackRole -`func NewRackRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` +`func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64, ) *RackRole` NewRackRole instantiates a new RackRole object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *RackRole) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *RackRole) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *RackRole) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *RackRole) GetDisplay() string` diff --git a/docs/RackUnit.md b/docs/RackUnit.md index 170729fb9..507d76f97 100644 --- a/docs/RackUnit.md +++ b/docs/RackUnit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **float64** | | [readonly] **Name** | **string** | | [readonly] **Face** | [**RackUnitFace**](RackUnitFace.md) | | -**Device** | [**BriefDevice**](BriefDevice.md) | | [readonly] +**Device** | [**Device**](Device.md) | | [readonly] **Occupied** | **bool** | | [readonly] **Display** | **string** | | [readonly] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewRackUnit -`func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string, ) *RackUnit` +`func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string, ) *RackUnit` NewRackUnit instantiates a new RackUnit object This constructor will assign default values to properties that have it defined, @@ -92,20 +92,20 @@ SetFace sets Face field to given value. ### GetDevice -`func (o *RackUnit) GetDevice() BriefDevice` +`func (o *RackUnit) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool)` +`func (o *RackUnit) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RackUnit) SetDevice(v BriefDevice)` +`func (o *RackUnit) SetDevice(v Device)` SetDevice sets Device field to given value. diff --git a/docs/RearPort.md b/docs/RearPort.md index a491dd748..18ec1face 100644 --- a/docs/RearPort.md +++ b/docs/RearPort.md @@ -6,10 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | [**BriefDevice**](BriefDevice.md) | | -**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] +**Device** | [**Device**](Device.md) | | +**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -17,10 +16,10 @@ Name | Type | Description | Notes **Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**Cable** | [**NullableCable**](Cable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +30,7 @@ Name | Type | Description | Notes ### NewRearPort -`func NewRearPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` +`func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` NewRearPort instantiates a new RearPort object This constructor will assign default values to properties that have it defined, @@ -86,26 +85,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *RearPort) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *RearPort) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *RearPort) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *RearPort) GetDisplay() string` @@ -128,40 +107,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *RearPort) GetDevice() BriefDevice` +`func (o *RearPort) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPort) GetDeviceOk() (*BriefDevice, bool)` +`func (o *RearPort) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPort) SetDevice(v BriefDevice)` +`func (o *RearPort) SetDevice(v Device)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPort) GetModule() BriefModule` +`func (o *RearPort) GetModule() Module` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPort) GetModuleOk() (*BriefModule, bool)` +`func (o *RearPort) GetModuleOk() (*Module, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPort) SetModule(v BriefModule)` +`func (o *RearPort) SetModule(v Module)` SetModule sets Module field to given value. @@ -348,20 +327,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *RearPort) GetCable() BriefCable` +`func (o *RearPort) GetCable() Cable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *RearPort) GetCableOk() (*BriefCable, bool)` +`func (o *RearPort) GetCableOk() (*Cable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *RearPort) SetCable(v BriefCable)` +`func (o *RearPort) SetCable(v Cable)` SetCable sets Cable field to given value. @@ -436,16 +415,6 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. -### SetLinkPeersTypeNil - -`func (o *RearPort) SetLinkPeersTypeNil(b bool)` - - SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil - -### UnsetLinkPeersType -`func (o *RearPort) UnsetLinkPeersType()` - -UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *RearPort) GetTags() []NestedTag` diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md index 8a6a32755..3555c4450 100644 --- a/docs/RearPortRequest.md +++ b/docs/RearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewRearPortRequest -`func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` +`func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` NewRearPortRequest instantiates a new RearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *RearPortRequest) GetDevice() BriefDeviceRequest` +`func (o *RearPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *RearPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPortRequest) GetModule() BriefModuleRequest` +`func (o *RearPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPortRequest) SetModule(v BriefModuleRequest)` +`func (o *RearPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/RearPortTemplate.md b/docs/RearPortTemplate.md index a687076f7..004494da3 100644 --- a/docs/RearPortTemplate.md +++ b/docs/RearPortTemplate.md @@ -7,22 +7,14 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | -**Label** | Pointer to **string** | Physical label | [optional] -**Type** | [**FrontPortType**](FrontPortType.md) | | -**Color** | Pointer to **string** | | [optional] -**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewRearPortTemplate -`func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime, ) *RearPortTemplate` +`func NewRearPortTemplate(id int32, url string, display string, name string, ) *RearPortTemplate` NewRearPortTemplate instantiates a new RearPortTemplate object This constructor will assign default values to properties that have it defined, @@ -97,76 +89,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetDeviceType - -`func (o *RearPortTemplate) GetDeviceType() BriefDeviceType` - -GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. - -### GetDeviceTypeOk - -`func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` - -GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceType - -`func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType)` - -SetDeviceType sets DeviceType field to given value. - -### HasDeviceType - -`func (o *RearPortTemplate) HasDeviceType() bool` - -HasDeviceType returns a boolean if a field has been set. - -### SetDeviceTypeNil - -`func (o *RearPortTemplate) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *RearPortTemplate) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *RearPortTemplate) GetModuleType() BriefModuleType` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *RearPortTemplate) SetModuleType(v BriefModuleType)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *RearPortTemplate) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *RearPortTemplate) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *RearPortTemplate) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplate) GetName() string` @@ -187,101 +109,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetLabel - -`func (o *RearPortTemplate) GetLabel() string` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *RearPortTemplate) GetLabelOk() (*string, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *RearPortTemplate) SetLabel(v string)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *RearPortTemplate) HasLabel() bool` - -HasLabel returns a boolean if a field has been set. - -### GetType - -`func (o *RearPortTemplate) GetType() FrontPortType` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *RearPortTemplate) SetType(v FrontPortType)` - -SetType sets Type field to given value. - - -### GetColor - -`func (o *RearPortTemplate) GetColor() string` - -GetColor returns the Color field if non-nil, zero value otherwise. - -### GetColorOk - -`func (o *RearPortTemplate) GetColorOk() (*string, bool)` - -GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetColor - -`func (o *RearPortTemplate) SetColor(v string)` - -SetColor sets Color field to given value. - -### HasColor - -`func (o *RearPortTemplate) HasColor() bool` - -HasColor returns a boolean if a field has been set. - -### GetPositions - -`func (o *RearPortTemplate) GetPositions() int32` - -GetPositions returns the Positions field if non-nil, zero value otherwise. - -### GetPositionsOk - -`func (o *RearPortTemplate) GetPositionsOk() (*int32, bool)` - -GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPositions - -`func (o *RearPortTemplate) SetPositions(v int32)` - -SetPositions sets Positions field to given value. - -### HasPositions - -`func (o *RearPortTemplate) HasPositions() bool` - -HasPositions returns a boolean if a field has been set. - ### GetDescription `func (o *RearPortTemplate) GetDescription() string` @@ -307,66 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetCreated - -`func (o *RearPortTemplate) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *RearPortTemplate) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *RearPortTemplate) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *RearPortTemplate) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *RearPortTemplate) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *RearPortTemplate) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *RearPortTemplate) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *RearPortTemplate) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md index 71bf28cd3..d139cde91 100644 --- a/docs/RearPortTemplateRequest.md +++ b/docs/RearPortTemplateRequest.md @@ -4,20 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | -**Label** | Pointer to **string** | Physical label | [optional] -**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | -**Color** | Pointer to **string** | | [optional] -**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewRearPortTemplateRequest -`func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *RearPortTemplateRequest` +`func NewRearPortTemplateRequest(name string, ) *RearPortTemplateRequest` NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -32,76 +26,6 @@ NewRearPortTemplateRequestWithDefaults instantiates a new RearPortTemplateReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetDeviceType - -`func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` - -GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. - -### GetDeviceTypeOk - -`func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` - -GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceType - -`func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` - -SetDeviceType sets DeviceType field to given value. - -### HasDeviceType - -`func (o *RearPortTemplateRequest) HasDeviceType() bool` - -HasDeviceType returns a boolean if a field has been set. - -### SetDeviceTypeNil - -`func (o *RearPortTemplateRequest) SetDeviceTypeNil(b bool)` - - SetDeviceTypeNil sets the value for DeviceType to be an explicit nil - -### UnsetDeviceType -`func (o *RearPortTemplateRequest) UnsetDeviceType()` - -UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -### GetModuleType - -`func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` - -GetModuleType returns the ModuleType field if non-nil, zero value otherwise. - -### GetModuleTypeOk - -`func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` - -GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetModuleType - -`func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` - -SetModuleType sets ModuleType field to given value. - -### HasModuleType - -`func (o *RearPortTemplateRequest) HasModuleType() bool` - -HasModuleType returns a boolean if a field has been set. - -### SetModuleTypeNil - -`func (o *RearPortTemplateRequest) SetModuleTypeNil(b bool)` - - SetModuleTypeNil sets the value for ModuleType to be an explicit nil - -### UnsetModuleType -`func (o *RearPortTemplateRequest) UnsetModuleType()` - -UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplateRequest) GetName() string` @@ -122,101 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetLabel - -`func (o *RearPortTemplateRequest) GetLabel() string` - -GetLabel returns the Label field if non-nil, zero value otherwise. - -### GetLabelOk - -`func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool)` - -GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLabel - -`func (o *RearPortTemplateRequest) SetLabel(v string)` - -SetLabel sets Label field to given value. - -### HasLabel - -`func (o *RearPortTemplateRequest) HasLabel() bool` - -HasLabel returns a boolean if a field has been set. - -### GetType - -`func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue` - -GetType returns the Type field if non-nil, zero value otherwise. - -### GetTypeOk - -`func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)` - -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetType - -`func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue)` - -SetType sets Type field to given value. - - -### GetColor - -`func (o *RearPortTemplateRequest) GetColor() string` - -GetColor returns the Color field if non-nil, zero value otherwise. - -### GetColorOk - -`func (o *RearPortTemplateRequest) GetColorOk() (*string, bool)` - -GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetColor - -`func (o *RearPortTemplateRequest) SetColor(v string)` - -SetColor sets Color field to given value. - -### HasColor - -`func (o *RearPortTemplateRequest) HasColor() bool` - -HasColor returns a boolean if a field has been set. - -### GetPositions - -`func (o *RearPortTemplateRequest) GetPositions() int32` - -GetPositions returns the Positions field if non-nil, zero value otherwise. - -### GetPositionsOk - -`func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool)` - -GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPositions - -`func (o *RearPortTemplateRequest) SetPositions(v int32)` - -SetPositions sets Positions field to given value. - -### HasPositions - -`func (o *RearPortTemplateRequest) HasPositions() bool` - -HasPositions returns a boolean if a field has been set. - ### GetDescription `func (o *RearPortTemplateRequest) GetDescription() string` diff --git a/docs/Region.md b/docs/Region.md index a1f9b45c1..f7c3a1a81 100644 --- a/docs/Region.md +++ b/docs/Region.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewRegion -`func NewRegion(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` +`func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *Region` NewRegion instantiates a new Region object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Region) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Region) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Region) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Region) GetDisplay() string` diff --git a/docs/Role.md b/docs/Role.md index d4fcda2d9..2129bc8e4 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,16 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **VlanCount** | **int64** | | [readonly] @@ -23,7 +17,7 @@ Name | Type | Description | Notes ### NewRole -`func NewRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, vlanCount int64, ) *Role` +`func NewRole(id int32, url string, display string, name string, slug string, vlanCount int64, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -78,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Role) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Role) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Role) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Role) GetDisplay() string` @@ -158,31 +132,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetWeight - -`func (o *Role) GetWeight() int32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *Role) GetWeightOk() (*int32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *Role) SetWeight(v int32)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *Role) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - ### GetDescription `func (o *Role) GetDescription() string` @@ -208,116 +157,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *Role) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Role) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Role) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Role) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Role) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Role) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Role) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Role) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Role) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Role) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Role) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Role) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Role) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Role) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Role) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Role) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Role) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Role) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetPrefixCount `func (o *Role) GetPrefixCount() int64` diff --git a/docs/RoleRequest.md b/docs/RoleRequest.md index 8a35bd48f..4ea26627a 100644 --- a/docs/RoleRequest.md +++ b/docs/RoleRequest.md @@ -6,10 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -70,31 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetWeight - -`func (o *RoleRequest) GetWeight() int32` - -GetWeight returns the Weight field if non-nil, zero value otherwise. - -### GetWeightOk - -`func (o *RoleRequest) GetWeightOk() (*int32, bool)` - -GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetWeight - -`func (o *RoleRequest) SetWeight(v int32)` - -SetWeight sets Weight field to given value. - -### HasWeight - -`func (o *RoleRequest) HasWeight() bool` - -HasWeight returns a boolean if a field has been set. - ### GetDescription `func (o *RoleRequest) GetDescription() string` @@ -120,56 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *RoleRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *RoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *RoleRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *RoleRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *RoleRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *RoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *RoleRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *RoleRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/RouteTarget.md b/docs/RouteTarget.md index f203abad9..55b89b478 100644 --- a/docs/RouteTarget.md +++ b/docs/RouteTarget.md @@ -6,10 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewRouteTarget -`func NewRouteTarget(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` +`func NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *RouteTarget` NewRouteTarget instantiates a new RouteTarget object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *RouteTarget) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *RouteTarget) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *RouteTarget) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *RouteTarget) GetDisplay() string` @@ -138,20 +117,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTarget) GetTenant() BriefTenant` +`func (o *RouteTarget) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool)` +`func (o *RouteTarget) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTarget) SetTenant(v BriefTenant)` +`func (o *RouteTarget) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RouteTargetRequest.md b/docs/RouteTargetRequest.md index 55aedbd23..2627327d1 100644 --- a/docs/RouteTargetRequest.md +++ b/docs/RouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -52,20 +52,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTargetRequest) GetTenant() BriefTenantRequest` +`func (o *RouteTargetRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest)` +`func (o *RouteTargetRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md index 88b69affe..78ce2dbcb 100644 --- a/docs/SavedFilter.md +++ b/docs/SavedFilter.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -24,7 +23,7 @@ Name | Type | Description | Notes ### NewSavedFilter -`func NewSavedFilter(id int32, url string, displayUrl string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` +`func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime, ) *SavedFilter` NewSavedFilter instantiates a new SavedFilter object This constructor will assign default values to properties that have it defined, @@ -79,26 +78,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *SavedFilter) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *SavedFilter) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *SavedFilter) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *SavedFilter) GetDisplay() string` diff --git a/docs/SchemaAPI.md b/docs/SchemaAPI.md index 166791f3f..21435ca5d 100644 --- a/docs/SchemaAPI.md +++ b/docs/SchemaAPI.md @@ -30,7 +30,7 @@ import ( func main() { format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional) - lang := openapiclient.schema_retrieve_lang_parameter("cs") // SchemaRetrieveLangParameter | (optional) + lang := openapiclient.schema_retrieve_lang_parameter("de") // SchemaRetrieveLangParameter | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/SchemaRetrieveLangParameter.md b/docs/SchemaRetrieveLangParameter.md index ffba2fac9..aed2056cb 100644 --- a/docs/SchemaRetrieveLangParameter.md +++ b/docs/SchemaRetrieveLangParameter.md @@ -3,10 +3,6 @@ ## Enum -* `CS` (value: `"cs"`) - -* `DA` (value: `"da"`) - * `DE` (value: `"de"`) * `EN` (value: `"en"`) @@ -15,14 +11,8 @@ * `FR` (value: `"fr"`) -* `IT` (value: `"it"`) - * `JA` (value: `"ja"`) -* `NL` (value: `"nl"`) - -* `PL` (value: `"pl"`) - * `PT` (value: `"pt"`) * `RU` (value: `"ru"`) diff --git a/docs/Script.md b/docs/Script.md index 8ddbdc5c7..e8ce7b887 100644 --- a/docs/Script.md +++ b/docs/Script.md @@ -6,12 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Module** | **int32** | | [readonly] **Name** | **string** | | [readonly] -**Description** | **NullableString** | | [readonly] +**Description** | **string** | | [readonly] **Vars** | **interface{}** | | [readonly] -**Result** | [**BriefJob**](BriefJob.md) | | [readonly] +**Result** | [**Job**](Job.md) | | [readonly] **Display** | **string** | | [readonly] **IsExecutable** | **bool** | | [readonly] @@ -19,7 +18,7 @@ Name | Type | Description | Notes ### NewScript -`func NewScript(id int32, url string, displayUrl string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool, ) *Script` +`func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool, ) *Script` NewScript instantiates a new Script object This constructor will assign default values to properties that have it defined, @@ -74,26 +73,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Script) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Script) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Script) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetModule `func (o *Script) GetModule() int32` @@ -154,16 +133,6 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. -### SetDescriptionNil - -`func (o *Script) SetDescriptionNil(b bool)` - - SetDescriptionNil sets the value for Description to be an explicit nil - -### UnsetDescription -`func (o *Script) UnsetDescription()` - -UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetVars `func (o *Script) GetVars() interface{}` @@ -196,20 +165,20 @@ SetVars sets Vars field to given value. UnsetVars ensures that no value is present for Vars, not even an explicit nil ### GetResult -`func (o *Script) GetResult() BriefJob` +`func (o *Script) GetResult() Job` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *Script) GetResultOk() (*BriefJob, bool)` +`func (o *Script) GetResultOk() (*Job, bool)` GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResult -`func (o *Script) SetResult(v BriefJob)` +`func (o *Script) SetResult(v Job)` SetResult sets Result field to given value. diff --git a/docs/Service.md b/docs/Service.md index 9e154aaf6..230dccd71 100644 --- a/docs/Service.md +++ b/docs/Service.md @@ -6,10 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableBriefVirtualMachine**](BriefVirtualMachine.md) | | [optional] +**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableVirtualMachine**](VirtualMachine.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -25,7 +24,7 @@ Name | Type | Description | Notes ### NewService -`func NewService(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` +`func NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *Service` NewService instantiates a new Service object This constructor will assign default values to properties that have it defined, @@ -80,26 +79,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Service) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Service) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Service) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Service) GetDisplay() string` @@ -122,20 +101,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Service) GetDevice() BriefDevice` +`func (o *Service) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Service) GetDeviceOk() (*BriefDevice, bool)` +`func (o *Service) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Service) SetDevice(v BriefDevice)` +`func (o *Service) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -157,20 +136,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *Service) GetVirtualMachine() BriefVirtualMachine` +`func (o *Service) GetVirtualMachine() VirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` +`func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *Service) SetVirtualMachine(v BriefVirtualMachine)` +`func (o *Service) SetVirtualMachine(v VirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md index 832124979..bfabf2ad6 100644 --- a/docs/ServiceRequest.md +++ b/docs/ServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ServiceRequest) GetDevice() BriefDeviceRequest` +`func (o *ServiceRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ServiceRequest) SetDevice(v BriefDeviceRequest)` +`func (o *ServiceRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceTemplate.md b/docs/ServiceTemplate.md index a817c1d46..a83d4f5cb 100644 --- a/docs/ServiceTemplate.md +++ b/docs/ServiceTemplate.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] @@ -22,7 +21,7 @@ Name | Type | Description | Notes ### NewServiceTemplate -`func NewServiceTemplate(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` +`func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime, ) *ServiceTemplate` NewServiceTemplate instantiates a new ServiceTemplate object This constructor will assign default values to properties that have it defined, @@ -77,26 +76,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *ServiceTemplate) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *ServiceTemplate) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *ServiceTemplate) GetDisplay() string` diff --git a/docs/Site.md b/docs/Site.md index a4a66d72a..0458e57f6 100644 --- a/docs/Site.md +++ b/docs/Site.md @@ -6,39 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] -**Region** | Pointer to [**NullableBriefRegion**](BriefRegion.md) | | [optional] -**Group** | Pointer to [**NullableBriefSiteGroup**](BriefSiteGroup.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Facility** | Pointer to **string** | Local facility ID or description | [optional] -**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] -**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] -**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] -**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] -**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] -**Comments** | Pointer to **string** | | [optional] -**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**CircuitCount** | **int64** | | [readonly] -**DeviceCount** | Pointer to **int64** | | [optional] [readonly] -**PrefixCount** | Pointer to **int64** | | [optional] [readonly] -**RackCount** | **int64** | | [readonly] -**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] -**VlanCount** | **int64** | | [readonly] ## Methods ### NewSite -`func NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, rackCount int64, vlanCount int64, ) *Site` +`func NewSite(id int32, url string, display string, name string, slug string, ) *Site` NewSite instantiates a new Site object This constructor will assign default values to properties that have it defined, @@ -93,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Site) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Site) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Site) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Site) GetDisplay() string` @@ -173,196 +130,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetStatus - -`func (o *Site) GetStatus() LocationStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Site) GetStatusOk() (*LocationStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Site) SetStatus(v LocationStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *Site) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRegion - -`func (o *Site) GetRegion() BriefRegion` - -GetRegion returns the Region field if non-nil, zero value otherwise. - -### GetRegionOk - -`func (o *Site) GetRegionOk() (*BriefRegion, bool)` - -GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegion - -`func (o *Site) SetRegion(v BriefRegion)` - -SetRegion sets Region field to given value. - -### HasRegion - -`func (o *Site) HasRegion() bool` - -HasRegion returns a boolean if a field has been set. - -### SetRegionNil - -`func (o *Site) SetRegionNil(b bool)` - - SetRegionNil sets the value for Region to be an explicit nil - -### UnsetRegion -`func (o *Site) UnsetRegion()` - -UnsetRegion ensures that no value is present for Region, not even an explicit nil -### GetGroup - -`func (o *Site) GetGroup() BriefSiteGroup` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *Site) GetGroupOk() (*BriefSiteGroup, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *Site) SetGroup(v BriefSiteGroup)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *Site) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *Site) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *Site) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil -### GetTenant - -`func (o *Site) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Site) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Site) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Site) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Site) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Site) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetFacility - -`func (o *Site) GetFacility() string` - -GetFacility returns the Facility field if non-nil, zero value otherwise. - -### GetFacilityOk - -`func (o *Site) GetFacilityOk() (*string, bool)` - -GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFacility - -`func (o *Site) SetFacility(v string)` - -SetFacility sets Facility field to given value. - -### HasFacility - -`func (o *Site) HasFacility() bool` - -HasFacility returns a boolean if a field has been set. - -### GetTimeZone - -`func (o *Site) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *Site) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *Site) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *Site) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *Site) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *Site) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *Site) GetDescription() string` @@ -388,421 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetPhysicalAddress - -`func (o *Site) GetPhysicalAddress() string` - -GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. - -### GetPhysicalAddressOk - -`func (o *Site) GetPhysicalAddressOk() (*string, bool)` - -GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPhysicalAddress - -`func (o *Site) SetPhysicalAddress(v string)` - -SetPhysicalAddress sets PhysicalAddress field to given value. - -### HasPhysicalAddress - -`func (o *Site) HasPhysicalAddress() bool` - -HasPhysicalAddress returns a boolean if a field has been set. - -### GetShippingAddress - -`func (o *Site) GetShippingAddress() string` - -GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. - -### GetShippingAddressOk - -`func (o *Site) GetShippingAddressOk() (*string, bool)` - -GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShippingAddress - -`func (o *Site) SetShippingAddress(v string)` - -SetShippingAddress sets ShippingAddress field to given value. - -### HasShippingAddress - -`func (o *Site) HasShippingAddress() bool` - -HasShippingAddress returns a boolean if a field has been set. - -### GetLatitude - -`func (o *Site) GetLatitude() float64` - -GetLatitude returns the Latitude field if non-nil, zero value otherwise. - -### GetLatitudeOk - -`func (o *Site) GetLatitudeOk() (*float64, bool)` - -GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLatitude - -`func (o *Site) SetLatitude(v float64)` - -SetLatitude sets Latitude field to given value. - -### HasLatitude - -`func (o *Site) HasLatitude() bool` - -HasLatitude returns a boolean if a field has been set. - -### SetLatitudeNil - -`func (o *Site) SetLatitudeNil(b bool)` - - SetLatitudeNil sets the value for Latitude to be an explicit nil - -### UnsetLatitude -`func (o *Site) UnsetLatitude()` - -UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil -### GetLongitude - -`func (o *Site) GetLongitude() float64` - -GetLongitude returns the Longitude field if non-nil, zero value otherwise. - -### GetLongitudeOk - -`func (o *Site) GetLongitudeOk() (*float64, bool)` - -GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLongitude - -`func (o *Site) SetLongitude(v float64)` - -SetLongitude sets Longitude field to given value. - -### HasLongitude - -`func (o *Site) HasLongitude() bool` - -HasLongitude returns a boolean if a field has been set. - -### SetLongitudeNil - -`func (o *Site) SetLongitudeNil(b bool)` - - SetLongitudeNil sets the value for Longitude to be an explicit nil - -### UnsetLongitude -`func (o *Site) UnsetLongitude()` - -UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil -### GetComments - -`func (o *Site) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Site) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Site) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Site) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetAsns - -`func (o *Site) GetAsns() []ASN` - -GetAsns returns the Asns field if non-nil, zero value otherwise. - -### GetAsnsOk - -`func (o *Site) GetAsnsOk() (*[]ASN, bool)` - -GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsns - -`func (o *Site) SetAsns(v []ASN)` - -SetAsns sets Asns field to given value. - -### HasAsns - -`func (o *Site) HasAsns() bool` - -HasAsns returns a boolean if a field has been set. - -### GetTags - -`func (o *Site) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Site) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Site) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Site) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Site) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Site) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Site) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Site) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Site) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Site) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Site) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Site) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Site) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Site) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Site) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Site) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Site) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Site) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetCircuitCount - -`func (o *Site) GetCircuitCount() int64` - -GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. - -### GetCircuitCountOk - -`func (o *Site) GetCircuitCountOk() (*int64, bool)` - -GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCircuitCount - -`func (o *Site) SetCircuitCount(v int64)` - -SetCircuitCount sets CircuitCount field to given value. - - -### GetDeviceCount - -`func (o *Site) GetDeviceCount() int64` - -GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. - -### GetDeviceCountOk - -`func (o *Site) GetDeviceCountOk() (*int64, bool)` - -GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceCount - -`func (o *Site) SetDeviceCount(v int64)` - -SetDeviceCount sets DeviceCount field to given value. - -### HasDeviceCount - -`func (o *Site) HasDeviceCount() bool` - -HasDeviceCount returns a boolean if a field has been set. - -### GetPrefixCount - -`func (o *Site) GetPrefixCount() int64` - -GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. - -### GetPrefixCountOk - -`func (o *Site) GetPrefixCountOk() (*int64, bool)` - -GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrefixCount - -`func (o *Site) SetPrefixCount(v int64)` - -SetPrefixCount sets PrefixCount field to given value. - -### HasPrefixCount - -`func (o *Site) HasPrefixCount() bool` - -HasPrefixCount returns a boolean if a field has been set. - -### GetRackCount - -`func (o *Site) GetRackCount() int64` - -GetRackCount returns the RackCount field if non-nil, zero value otherwise. - -### GetRackCountOk - -`func (o *Site) GetRackCountOk() (*int64, bool)` - -GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRackCount - -`func (o *Site) SetRackCount(v int64)` - -SetRackCount sets RackCount field to given value. - - -### GetVirtualmachineCount - -`func (o *Site) GetVirtualmachineCount() int64` - -GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. - -### GetVirtualmachineCountOk - -`func (o *Site) GetVirtualmachineCountOk() (*int64, bool)` - -GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVirtualmachineCount - -`func (o *Site) SetVirtualmachineCount(v int64)` - -SetVirtualmachineCount sets VirtualmachineCount field to given value. - -### HasVirtualmachineCount - -`func (o *Site) HasVirtualmachineCount() bool` - -HasVirtualmachineCount returns a boolean if a field has been set. - -### GetVlanCount - -`func (o *Site) GetVlanCount() int64` - -GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. - -### GetVlanCountOk - -`func (o *Site) GetVlanCountOk() (*int64, bool)` - -GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCount - -`func (o *Site) SetVlanCount(v int64)` - -SetVlanCount sets VlanCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/SiteGroup.md b/docs/SiteGroup.md index b61125c26..b97426cac 100644 --- a/docs/SiteGroup.md +++ b/docs/SiteGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewSiteGroup -`func NewSiteGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` +`func NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32, ) *SiteGroup` NewSiteGroup instantiates a new SiteGroup object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *SiteGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *SiteGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *SiteGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *SiteGroup) GetDisplay() string` diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md index a4efb9544..b12c9721b 100644 --- a/docs/SiteRequest.md +++ b/docs/SiteRequest.md @@ -6,21 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] -**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Facility** | Pointer to **string** | Local facility ID or description | [optional] -**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] -**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] -**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] -**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] -**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] -**Comments** | Pointer to **string** | | [optional] -**Asns** | Pointer to **[]int32** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -81,196 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetStatus - -`func (o *SiteRequest) GetStatus() LocationStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *SiteRequest) SetStatus(v LocationStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *SiteRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRegion - -`func (o *SiteRequest) GetRegion() BriefRegionRequest` - -GetRegion returns the Region field if non-nil, zero value otherwise. - -### GetRegionOk - -`func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` - -GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRegion - -`func (o *SiteRequest) SetRegion(v BriefRegionRequest)` - -SetRegion sets Region field to given value. - -### HasRegion - -`func (o *SiteRequest) HasRegion() bool` - -HasRegion returns a boolean if a field has been set. - -### SetRegionNil - -`func (o *SiteRequest) SetRegionNil(b bool)` - - SetRegionNil sets the value for Region to be an explicit nil - -### UnsetRegion -`func (o *SiteRequest) UnsetRegion()` - -UnsetRegion ensures that no value is present for Region, not even an explicit nil -### GetGroup - -`func (o *SiteRequest) GetGroup() BriefSiteGroupRequest` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *SiteRequest) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *SiteRequest) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *SiteRequest) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil -### GetTenant - -`func (o *SiteRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *SiteRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *SiteRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *SiteRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *SiteRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetFacility - -`func (o *SiteRequest) GetFacility() string` - -GetFacility returns the Facility field if non-nil, zero value otherwise. - -### GetFacilityOk - -`func (o *SiteRequest) GetFacilityOk() (*string, bool)` - -GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFacility - -`func (o *SiteRequest) SetFacility(v string)` - -SetFacility sets Facility field to given value. - -### HasFacility - -`func (o *SiteRequest) HasFacility() bool` - -HasFacility returns a boolean if a field has been set. - -### GetTimeZone - -`func (o *SiteRequest) GetTimeZone() string` - -GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. - -### GetTimeZoneOk - -`func (o *SiteRequest) GetTimeZoneOk() (*string, bool)` - -GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTimeZone - -`func (o *SiteRequest) SetTimeZone(v string)` - -SetTimeZone sets TimeZone field to given value. - -### HasTimeZone - -`func (o *SiteRequest) HasTimeZone() bool` - -HasTimeZone returns a boolean if a field has been set. - -### SetTimeZoneNil - -`func (o *SiteRequest) SetTimeZoneNil(b bool)` - - SetTimeZoneNil sets the value for TimeZone to be an explicit nil - -### UnsetTimeZone -`func (o *SiteRequest) UnsetTimeZone()` - -UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *SiteRequest) GetDescription() string` @@ -296,226 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetPhysicalAddress - -`func (o *SiteRequest) GetPhysicalAddress() string` - -GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. - -### GetPhysicalAddressOk - -`func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool)` - -GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPhysicalAddress - -`func (o *SiteRequest) SetPhysicalAddress(v string)` - -SetPhysicalAddress sets PhysicalAddress field to given value. - -### HasPhysicalAddress - -`func (o *SiteRequest) HasPhysicalAddress() bool` - -HasPhysicalAddress returns a boolean if a field has been set. - -### GetShippingAddress - -`func (o *SiteRequest) GetShippingAddress() string` - -GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. - -### GetShippingAddressOk - -`func (o *SiteRequest) GetShippingAddressOk() (*string, bool)` - -GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetShippingAddress - -`func (o *SiteRequest) SetShippingAddress(v string)` - -SetShippingAddress sets ShippingAddress field to given value. - -### HasShippingAddress - -`func (o *SiteRequest) HasShippingAddress() bool` - -HasShippingAddress returns a boolean if a field has been set. - -### GetLatitude - -`func (o *SiteRequest) GetLatitude() float64` - -GetLatitude returns the Latitude field if non-nil, zero value otherwise. - -### GetLatitudeOk - -`func (o *SiteRequest) GetLatitudeOk() (*float64, bool)` - -GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLatitude - -`func (o *SiteRequest) SetLatitude(v float64)` - -SetLatitude sets Latitude field to given value. - -### HasLatitude - -`func (o *SiteRequest) HasLatitude() bool` - -HasLatitude returns a boolean if a field has been set. - -### SetLatitudeNil - -`func (o *SiteRequest) SetLatitudeNil(b bool)` - - SetLatitudeNil sets the value for Latitude to be an explicit nil - -### UnsetLatitude -`func (o *SiteRequest) UnsetLatitude()` - -UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil -### GetLongitude - -`func (o *SiteRequest) GetLongitude() float64` - -GetLongitude returns the Longitude field if non-nil, zero value otherwise. - -### GetLongitudeOk - -`func (o *SiteRequest) GetLongitudeOk() (*float64, bool)` - -GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLongitude - -`func (o *SiteRequest) SetLongitude(v float64)` - -SetLongitude sets Longitude field to given value. - -### HasLongitude - -`func (o *SiteRequest) HasLongitude() bool` - -HasLongitude returns a boolean if a field has been set. - -### SetLongitudeNil - -`func (o *SiteRequest) SetLongitudeNil(b bool)` - - SetLongitudeNil sets the value for Longitude to be an explicit nil - -### UnsetLongitude -`func (o *SiteRequest) UnsetLongitude()` - -UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil -### GetComments - -`func (o *SiteRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *SiteRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *SiteRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *SiteRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetAsns - -`func (o *SiteRequest) GetAsns() []int32` - -GetAsns returns the Asns field if non-nil, zero value otherwise. - -### GetAsnsOk - -`func (o *SiteRequest) GetAsnsOk() (*[]int32, bool)` - -GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAsns - -`func (o *SiteRequest) SetAsns(v []int32)` - -SetAsns sets Asns field to given value. - -### HasAsns - -`func (o *SiteRequest) HasAsns() bool` - -HasAsns returns a boolean if a field has been set. - -### GetTags - -`func (o *SiteRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *SiteRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *SiteRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *SiteRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *SiteRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *SiteRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *SiteRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *SiteRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Tag.md b/docs/Tag.md index 19bec48eb..603faa5a0 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewTag -`func NewTag(id int32, url string, displayUrl string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` +`func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime, ) *Tag` NewTag instantiates a new Tag object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Tag) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Tag) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Tag) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Tag) GetDisplay() string` diff --git a/docs/TenancyAPI.md b/docs/TenancyAPI.md index fd75ebd5c..0314e6397 100644 --- a/docs/TenancyAPI.md +++ b/docs/TenancyAPI.md @@ -82,7 +82,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -146,7 +146,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -212,7 +212,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -278,7 +278,7 @@ import ( ) func main() { - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -423,10 +423,10 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - group := []string{"Inner_example"} // []string | (optional) - groupN := []string{"Inner_example"} // []string | (optional) - groupId := []string{"Inner_example"} // []string | (optional) - groupIdN := []string{"Inner_example"} // []string | (optional) + group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) + groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -456,8 +456,8 @@ func main() { objectTypeIdN := int32(56) // int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - priorityN := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priority := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priorityN := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | Contact role (slug) (optional) roleN := []string{"Inner_example"} // []string | Contact role (slug) (optional) @@ -500,10 +500,10 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | - **group** | **[]string** | | - **groupN** | **[]string** | | - **groupId** | **[]string** | | - **groupIdN** | **[]string** | | + **group** | **[]int32** | Contact group (slug) | + **groupN** | **[]int32** | Contact group (slug) | + **groupId** | **[]int32** | Contact group (ID) | + **groupIdN** | **[]int32** | Contact group (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -533,8 +533,8 @@ Name | Type | Description | Notes **objectTypeIdN** | **int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **priorityN** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priority** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priorityN** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | **q** | **string** | Search | **role** | **[]string** | Contact role (slug) | **roleN** | **[]string** | Contact role (slug) | @@ -726,7 +726,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this contact assignment. - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1128,10 +1128,10 @@ import ( ) func main() { - ancestor := []string{"Inner_example"} // []string | (optional) - ancestorN := []string{"Inner_example"} // []string | (optional) - ancestorId := []string{"Inner_example"} // []string | (optional) - ancestorIdN := []string{"Inner_example"} // []string | (optional) + ancestor := []int32{int32(123)} // []int32 | Contact group (slug) (optional) + ancestorN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) + ancestorId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + ancestorIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1223,10 +1223,10 @@ Other parameters are passed through a pointer to a apiTenancyContactGroupsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]string** | | - **ancestorN** | **[]string** | | - **ancestorId** | **[]string** | | - **ancestorIdN** | **[]string** | | + **ancestor** | **[]int32** | Contact group (slug) | + **ancestorN** | **[]int32** | Contact group (slug) | + **ancestorId** | **[]int32** | Contact group (ID) | + **ancestorIdN** | **[]int32** | Contact group (ID) | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -2655,10 +2655,10 @@ func main() { emailNie := []string{"Inner_example"} // []string | (optional) emailNiew := []string{"Inner_example"} // []string | (optional) emailNisw := []string{"Inner_example"} // []string | (optional) - group := []string{"Inner_example"} // []string | (optional) - groupN := []string{"Inner_example"} // []string | (optional) - groupId := []string{"Inner_example"} // []string | (optional) - groupIdN := []string{"Inner_example"} // []string | (optional) + group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) + groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2790,10 +2790,10 @@ Name | Type | Description | Notes **emailNie** | **[]string** | | **emailNiew** | **[]string** | | **emailNisw** | **[]string** | | - **group** | **[]string** | | - **groupN** | **[]string** | | - **groupId** | **[]string** | | - **groupIdN** | **[]string** | | + **group** | **[]int32** | Contact group (slug) | + **groupN** | **[]int32** | Contact group (slug) | + **groupId** | **[]int32** | Contact group (ID) | + **groupIdN** | **[]int32** | Contact group (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3445,10 +3445,10 @@ import ( ) func main() { - ancestor := []string{"Inner_example"} // []string | (optional) - ancestorN := []string{"Inner_example"} // []string | (optional) - ancestorId := []string{"Inner_example"} // []string | (optional) - ancestorIdN := []string{"Inner_example"} // []string | (optional) + ancestor := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) + ancestorN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) + ancestorId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + ancestorIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3540,10 +3540,10 @@ Other parameters are passed through a pointer to a apiTenancyTenantGroupsListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]string** | | - **ancestorN** | **[]string** | | - **ancestorId** | **[]string** | | - **ancestorIdN** | **[]string** | | + **ancestor** | **[]int32** | Tenant group (slug) | + **ancestorN** | **[]int32** | Tenant group (slug) | + **ancestorId** | **[]int32** | Tenant group (ID) | + **ancestorIdN** | **[]int32** | Tenant group (ID) | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -4198,8 +4198,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4221,10 +4221,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []string{"Inner_example"} // []string | (optional) - groupN := []string{"Inner_example"} // []string | (optional) - groupId := []string{"Inner_example"} // []string | (optional) - groupIdN := []string{"Inner_example"} // []string | (optional) + group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) + groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4295,8 +4295,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4318,10 +4318,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]string** | | - **groupN** | **[]string** | | - **groupId** | **[]string** | | - **groupIdN** | **[]string** | | + **group** | **[]int32** | Tenant group (slug) | + **groupN** | **[]int32** | Tenant group (slug) | + **groupId** | **[]int32** | Tenant group (ID) | + **groupIdN** | **[]int32** | Tenant group (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/Tenant.md b/docs/Tenant.md index b02a1bf13..68d998dce 100644 --- a/docs/Tenant.md +++ b/docs/Tenant.md @@ -6,33 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Group** | Pointer to [**NullableBriefTenantGroup**](BriefTenantGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**CircuitCount** | **int64** | | [readonly] -**DeviceCount** | Pointer to **int64** | | [optional] [readonly] -**IpaddressCount** | **int64** | | [readonly] -**PrefixCount** | Pointer to **int64** | | [optional] [readonly] -**RackCount** | **int64** | | [readonly] -**SiteCount** | **int64** | | [readonly] -**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] -**VlanCount** | **int64** | | [readonly] -**VrfCount** | **int64** | | [readonly] -**ClusterCount** | **int64** | | [readonly] ## Methods ### NewTenant -`func NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, rackCount int64, siteCount int64, vlanCount int64, vrfCount int64, clusterCount int64, ) *Tenant` +`func NewTenant(id int32, url string, display string, name string, slug string, ) *Tenant` NewTenant instantiates a new Tenant object This constructor will assign default values to properties that have it defined, @@ -87,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Tenant) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Tenant) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Tenant) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Tenant) GetDisplay() string` @@ -167,41 +130,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetGroup - -`func (o *Tenant) GetGroup() BriefTenantGroup` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *Tenant) SetGroup(v BriefTenantGroup)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *Tenant) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *Tenant) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *Tenant) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *Tenant) GetDescription() string` @@ -227,356 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Tenant) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Tenant) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Tenant) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Tenant) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Tenant) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Tenant) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Tenant) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Tenant) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Tenant) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Tenant) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Tenant) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Tenant) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Tenant) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Tenant) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Tenant) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Tenant) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Tenant) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Tenant) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Tenant) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Tenant) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Tenant) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetCircuitCount - -`func (o *Tenant) GetCircuitCount() int64` - -GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. - -### GetCircuitCountOk - -`func (o *Tenant) GetCircuitCountOk() (*int64, bool)` - -GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCircuitCount - -`func (o *Tenant) SetCircuitCount(v int64)` - -SetCircuitCount sets CircuitCount field to given value. - - -### GetDeviceCount - -`func (o *Tenant) GetDeviceCount() int64` - -GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. - -### GetDeviceCountOk - -`func (o *Tenant) GetDeviceCountOk() (*int64, bool)` - -GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDeviceCount - -`func (o *Tenant) SetDeviceCount(v int64)` - -SetDeviceCount sets DeviceCount field to given value. - -### HasDeviceCount - -`func (o *Tenant) HasDeviceCount() bool` - -HasDeviceCount returns a boolean if a field has been set. - -### GetIpaddressCount - -`func (o *Tenant) GetIpaddressCount() int64` - -GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. - -### GetIpaddressCountOk - -`func (o *Tenant) GetIpaddressCountOk() (*int64, bool)` - -GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpaddressCount - -`func (o *Tenant) SetIpaddressCount(v int64)` - -SetIpaddressCount sets IpaddressCount field to given value. - - -### GetPrefixCount - -`func (o *Tenant) GetPrefixCount() int64` - -GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. - -### GetPrefixCountOk - -`func (o *Tenant) GetPrefixCountOk() (*int64, bool)` - -GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrefixCount - -`func (o *Tenant) SetPrefixCount(v int64)` - -SetPrefixCount sets PrefixCount field to given value. - -### HasPrefixCount - -`func (o *Tenant) HasPrefixCount() bool` - -HasPrefixCount returns a boolean if a field has been set. - -### GetRackCount - -`func (o *Tenant) GetRackCount() int64` - -GetRackCount returns the RackCount field if non-nil, zero value otherwise. - -### GetRackCountOk - -`func (o *Tenant) GetRackCountOk() (*int64, bool)` - -GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRackCount - -`func (o *Tenant) SetRackCount(v int64)` - -SetRackCount sets RackCount field to given value. - - -### GetSiteCount - -`func (o *Tenant) GetSiteCount() int64` - -GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. - -### GetSiteCountOk - -`func (o *Tenant) GetSiteCountOk() (*int64, bool)` - -GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSiteCount - -`func (o *Tenant) SetSiteCount(v int64)` - -SetSiteCount sets SiteCount field to given value. - - -### GetVirtualmachineCount - -`func (o *Tenant) GetVirtualmachineCount() int64` - -GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. - -### GetVirtualmachineCountOk - -`func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool)` - -GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVirtualmachineCount - -`func (o *Tenant) SetVirtualmachineCount(v int64)` - -SetVirtualmachineCount sets VirtualmachineCount field to given value. - -### HasVirtualmachineCount - -`func (o *Tenant) HasVirtualmachineCount() bool` - -HasVirtualmachineCount returns a boolean if a field has been set. - -### GetVlanCount - -`func (o *Tenant) GetVlanCount() int64` - -GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. - -### GetVlanCountOk - -`func (o *Tenant) GetVlanCountOk() (*int64, bool)` - -GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVlanCount - -`func (o *Tenant) SetVlanCount(v int64)` - -SetVlanCount sets VlanCount field to given value. - - -### GetVrfCount - -`func (o *Tenant) GetVrfCount() int64` - -GetVrfCount returns the VrfCount field if non-nil, zero value otherwise. - -### GetVrfCountOk - -`func (o *Tenant) GetVrfCountOk() (*int64, bool)` - -GetVrfCountOk returns a tuple with the VrfCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetVrfCount - -`func (o *Tenant) SetVrfCount(v int64)` - -SetVrfCount sets VrfCount field to given value. - - -### GetClusterCount - -`func (o *Tenant) GetClusterCount() int64` - -GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. - -### GetClusterCountOk - -`func (o *Tenant) GetClusterCountOk() (*int64, bool)` - -GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetClusterCount - -`func (o *Tenant) SetClusterCount(v int64)` - -SetClusterCount sets ClusterCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TenantGroup.md b/docs/TenantGroup.md index 229c2960e..22a3d41c5 100644 --- a/docs/TenantGroup.md +++ b/docs/TenantGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewTenantGroup -`func NewTenantGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` +`func NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32, ) *TenantGroup` NewTenantGroup instantiates a new TenantGroup object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *TenantGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *TenantGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *TenantGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *TenantGroup) GetDisplay() string` diff --git a/docs/TenantRequest.md b/docs/TenantRequest.md index 948e6d6e2..7a4881f71 100644 --- a/docs/TenantRequest.md +++ b/docs/TenantRequest.md @@ -6,11 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -71,41 +67,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetGroup - -`func (o *TenantRequest) GetGroup() BriefTenantGroupRequest` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *TenantRequest) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *TenantRequest) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *TenantRequest) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *TenantRequest) GetDescription() string` @@ -131,81 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *TenantRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *TenantRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *TenantRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *TenantRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *TenantRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *TenantRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *TenantRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *TenantRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *TenantRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *TenantRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *TenantRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *TenantRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/Token.md b/docs/Token.md index 1910ba9d4..d39896b1e 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**User** | [**BriefUser**](BriefUser.md) | | +**User** | [**User**](User.md) | | **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] @@ -20,7 +19,7 @@ Name | Type | Description | Notes ### NewToken -`func NewToken(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, ) *Token` +`func NewToken(id int32, url string, display string, user User, created time.Time, ) *Token` NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, @@ -75,26 +74,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Token) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Token) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Token) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Token) GetDisplay() string` @@ -117,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *Token) GetUser() BriefUser` +`func (o *Token) GetUser() User` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Token) GetUserOk() (*BriefUser, bool)` +`func (o *Token) GetUserOk() (*User, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Token) SetUser(v BriefUser)` +`func (o *Token) SetUser(v User)` SetUser sets User field to given value. diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md index d0dca806d..8b0aa1be2 100644 --- a/docs/TokenProvision.md +++ b/docs/TokenProvision.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**User** | [**BriefUser**](BriefUser.md) | | [readonly] +**User** | [**User**](User.md) | | [readonly] **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | **time.Time** | | [readonly] @@ -20,7 +19,7 @@ Name | Type | Description | Notes ### NewTokenProvision -`func NewTokenProvision(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` +`func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` NewTokenProvision instantiates a new TokenProvision object This constructor will assign default values to properties that have it defined, @@ -75,26 +74,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *TokenProvision) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *TokenProvision) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *TokenProvision) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *TokenProvision) GetDisplay() string` @@ -117,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *TokenProvision) GetUser() BriefUser` +`func (o *TokenProvision) GetUser() User` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenProvision) GetUserOk() (*BriefUser, bool)` +`func (o *TokenProvision) GetUserOk() (*User, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenProvision) SetUser(v BriefUser)` +`func (o *TokenProvision) SetUser(v User)` SetUser sets User field to given value. diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index b34549c9c..06de41a6d 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**User** | [**UserRequest**](UserRequest.md) | | **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewTokenRequest -`func NewTokenRequest(user BriefUserRequest, ) *TokenRequest` +`func NewTokenRequest(user UserRequest, ) *TokenRequest` NewTokenRequest instantiates a new TokenRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *TokenRequest) GetUser() BriefUserRequest` +`func (o *TokenRequest) GetUser() UserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool)` +`func (o *TokenRequest) GetUserOk() (*UserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenRequest) SetUser(v BriefUserRequest)` +`func (o *TokenRequest) SetUser(v UserRequest)` SetUser sets User field to given value. diff --git a/docs/Tunnel.md b/docs/Tunnel.md index 188930ec1..0ed442472 100644 --- a/docs/Tunnel.md +++ b/docs/Tunnel.md @@ -6,28 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Status** | [**TunnelStatus**](TunnelStatus.md) | | -**Group** | Pointer to [**NullableBriefTunnelGroup**](BriefTunnelGroup.md) | | [optional] -**Encapsulation** | [**TunnelEncapsulation**](TunnelEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableBriefIPSecProfile**](BriefIPSecProfile.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**TerminationsCount** | **int64** | | [readonly] ## Methods ### NewTunnel -`func NewTunnel(id int32, url string, displayUrl string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64, ) *Tunnel` +`func NewTunnel(id int32, url string, display string, name string, ) *Tunnel` NewTunnel instantiates a new Tunnel object This constructor will assign default values to properties that have it defined, @@ -82,26 +69,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Tunnel) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Tunnel) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Tunnel) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Tunnel) GetDisplay() string` @@ -142,186 +109,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetStatus - -`func (o *Tunnel) GetStatus() TunnelStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *Tunnel) SetStatus(v TunnelStatus)` - -SetStatus sets Status field to given value. - - -### GetGroup - -`func (o *Tunnel) GetGroup() BriefTunnelGroup` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *Tunnel) SetGroup(v BriefTunnelGroup)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *Tunnel) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *Tunnel) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *Tunnel) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil -### GetEncapsulation - -`func (o *Tunnel) GetEncapsulation() TunnelEncapsulation` - -GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. - -### GetEncapsulationOk - -`func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool)` - -GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEncapsulation - -`func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation)` - -SetEncapsulation sets Encapsulation field to given value. - - -### GetIpsecProfile - -`func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile` - -GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. - -### GetIpsecProfileOk - -`func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool)` - -GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpsecProfile - -`func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile)` - -SetIpsecProfile sets IpsecProfile field to given value. - -### HasIpsecProfile - -`func (o *Tunnel) HasIpsecProfile() bool` - -HasIpsecProfile returns a boolean if a field has been set. - -### SetIpsecProfileNil - -`func (o *Tunnel) SetIpsecProfileNil(b bool)` - - SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil - -### UnsetIpsecProfile -`func (o *Tunnel) UnsetIpsecProfile()` - -UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil -### GetTenant - -`func (o *Tunnel) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *Tunnel) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *Tunnel) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *Tunnel) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *Tunnel) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *Tunnel) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetTunnelId - -`func (o *Tunnel) GetTunnelId() int64` - -GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. - -### GetTunnelIdOk - -`func (o *Tunnel) GetTunnelIdOk() (*int64, bool)` - -GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTunnelId - -`func (o *Tunnel) SetTunnelId(v int64)` - -SetTunnelId sets TunnelId field to given value. - -### HasTunnelId - -`func (o *Tunnel) HasTunnelId() bool` - -HasTunnelId returns a boolean if a field has been set. - -### SetTunnelIdNil - -`func (o *Tunnel) SetTunnelIdNil(b bool)` - - SetTunnelIdNil sets the value for TunnelId to be an explicit nil - -### UnsetTunnelId -`func (o *Tunnel) UnsetTunnelId()` - -UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *Tunnel) GetDescription() string` @@ -347,161 +134,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *Tunnel) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *Tunnel) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *Tunnel) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *Tunnel) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *Tunnel) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *Tunnel) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *Tunnel) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *Tunnel) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *Tunnel) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *Tunnel) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *Tunnel) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *Tunnel) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *Tunnel) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *Tunnel) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *Tunnel) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *Tunnel) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *Tunnel) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *Tunnel) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *Tunnel) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *Tunnel) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *Tunnel) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetTerminationsCount - -`func (o *Tunnel) GetTerminationsCount() int64` - -GetTerminationsCount returns the TerminationsCount field if non-nil, zero value otherwise. - -### GetTerminationsCountOk - -`func (o *Tunnel) GetTerminationsCountOk() (*int64, bool)` - -GetTerminationsCountOk returns a tuple with the TerminationsCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTerminationsCount - -`func (o *Tunnel) SetTerminationsCount(v int64)` - -SetTerminationsCount sets TerminationsCount field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TunnelGroup.md b/docs/TunnelGroup.md index 879e3b595..696dd4040 100644 --- a/docs/TunnelGroup.md +++ b/docs/TunnelGroup.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewTunnelGroup -`func NewTunnelGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` +`func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64, ) *TunnelGroup` NewTunnelGroup instantiates a new TunnelGroup object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *TunnelGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *TunnelGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *TunnelGroup) GetDisplay() string` diff --git a/docs/TunnelRequest.md b/docs/TunnelRequest.md index 37d929b18..03d4cda24 100644 --- a/docs/TunnelRequest.md +++ b/docs/TunnelRequest.md @@ -5,22 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | -**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] -**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewTunnelRequest -`func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest` +`func NewTunnelRequest(name string, ) *TunnelRequest` NewTunnelRequest instantiates a new TunnelRequest object This constructor will assign default values to properties that have it defined, @@ -55,186 +46,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetStatus - -`func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)` - -SetStatus sets Status field to given value. - - -### GetGroup - -`func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *TunnelRequest) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *TunnelRequest) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *TunnelRequest) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil -### GetEncapsulation - -`func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation` - -GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. - -### GetEncapsulationOk - -`func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` - -GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEncapsulation - -`func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)` - -SetEncapsulation sets Encapsulation field to given value. - - -### GetIpsecProfile - -`func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` - -GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. - -### GetIpsecProfileOk - -`func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` - -GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpsecProfile - -`func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` - -SetIpsecProfile sets IpsecProfile field to given value. - -### HasIpsecProfile - -`func (o *TunnelRequest) HasIpsecProfile() bool` - -HasIpsecProfile returns a boolean if a field has been set. - -### SetIpsecProfileNil - -`func (o *TunnelRequest) SetIpsecProfileNil(b bool)` - - SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil - -### UnsetIpsecProfile -`func (o *TunnelRequest) UnsetIpsecProfile()` - -UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil -### GetTenant - -`func (o *TunnelRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *TunnelRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *TunnelRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *TunnelRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *TunnelRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetTunnelId - -`func (o *TunnelRequest) GetTunnelId() int64` - -GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. - -### GetTunnelIdOk - -`func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool)` - -GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTunnelId - -`func (o *TunnelRequest) SetTunnelId(v int64)` - -SetTunnelId sets TunnelId field to given value. - -### HasTunnelId - -`func (o *TunnelRequest) HasTunnelId() bool` - -HasTunnelId returns a boolean if a field has been set. - -### SetTunnelIdNil - -`func (o *TunnelRequest) SetTunnelIdNil(b bool)` - - SetTunnelIdNil sets the value for TunnelId to be an explicit nil - -### UnsetTunnelId -`func (o *TunnelRequest) UnsetTunnelId()` - -UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *TunnelRequest) GetDescription() string` @@ -260,81 +71,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *TunnelRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *TunnelRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *TunnelRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *TunnelRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *TunnelRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *TunnelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *TunnelRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *TunnelRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *TunnelRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *TunnelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *TunnelRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *TunnelRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/TunnelTermination.md b/docs/TunnelTermination.md index 7fd55af86..1804e64d5 100644 --- a/docs/TunnelTermination.md +++ b/docs/TunnelTermination.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Tunnel** | [**BriefTunnel**](BriefTunnel.md) | | +**Tunnel** | [**Tunnel**](Tunnel.md) | | **Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | **Termination** | **interface{}** | | [readonly] -**OutsideIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OutsideIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -23,7 +22,7 @@ Name | Type | Description | Notes ### NewTunnelTermination -`func NewTunnelTermination(id int32, url string, displayUrl string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` +`func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` NewTunnelTermination instantiates a new TunnelTermination object This constructor will assign default values to properties that have it defined, @@ -78,26 +77,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *TunnelTermination) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *TunnelTermination) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *TunnelTermination) GetDisplay() string` @@ -120,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetTunnel -`func (o *TunnelTermination) GetTunnel() BriefTunnel` +`func (o *TunnelTermination) GetTunnel() Tunnel` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool)` +`func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTermination) SetTunnel(v BriefTunnel)` +`func (o *TunnelTermination) SetTunnel(v Tunnel)` SetTunnel sets Tunnel field to given value. @@ -240,20 +219,20 @@ SetTermination sets Termination field to given value. UnsetTermination ensures that no value is present for Termination, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTermination) GetOutsideIp() BriefIPAddress` +`func (o *TunnelTermination) GetOutsideIp() IPAddress` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool)` +`func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress)` +`func (o *TunnelTermination) SetOutsideIp(v IPAddress)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md index 5466a217e..e684cfe20 100644 --- a/docs/TunnelTerminationRequest.md +++ b/docs/TunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | +**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | **Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewTunnelTerminationRequest -`func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` +`func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest` +`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` +`func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` +`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -123,20 +123,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` +`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` +`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` +`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/User.md b/docs/User.md index 2513a6671..5312320e3 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,24 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | -**FirstName** | Pointer to **string** | | [optional] -**LastName** | Pointer to **string** | | [optional] -**Email** | Pointer to **string** | | [optional] -**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] -**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] -**DateJoined** | Pointer to **time.Time** | | [optional] -**LastLogin** | Pointer to **NullableTime** | | [optional] -**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] -**Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] ## Methods ### NewUser -`func NewUser(id int32, url string, displayUrl string, display string, username string, ) *User` +`func NewUser(id int32, url string, display string, username string, ) *User` NewUser instantiates a new User object This constructor will assign default values to properties that have it defined, @@ -78,26 +68,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *User) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *User) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *User) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *User) GetDisplay() string` @@ -138,241 +108,6 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. -### GetFirstName - -`func (o *User) GetFirstName() string` - -GetFirstName returns the FirstName field if non-nil, zero value otherwise. - -### GetFirstNameOk - -`func (o *User) GetFirstNameOk() (*string, bool)` - -GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFirstName - -`func (o *User) SetFirstName(v string)` - -SetFirstName sets FirstName field to given value. - -### HasFirstName - -`func (o *User) HasFirstName() bool` - -HasFirstName returns a boolean if a field has been set. - -### GetLastName - -`func (o *User) GetLastName() string` - -GetLastName returns the LastName field if non-nil, zero value otherwise. - -### GetLastNameOk - -`func (o *User) GetLastNameOk() (*string, bool)` - -GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastName - -`func (o *User) SetLastName(v string)` - -SetLastName sets LastName field to given value. - -### HasLastName - -`func (o *User) HasLastName() bool` - -HasLastName returns a boolean if a field has been set. - -### GetEmail - -`func (o *User) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *User) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *User) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *User) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetIsStaff - -`func (o *User) GetIsStaff() bool` - -GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. - -### GetIsStaffOk - -`func (o *User) GetIsStaffOk() (*bool, bool)` - -GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsStaff - -`func (o *User) SetIsStaff(v bool)` - -SetIsStaff sets IsStaff field to given value. - -### HasIsStaff - -`func (o *User) HasIsStaff() bool` - -HasIsStaff returns a boolean if a field has been set. - -### GetIsActive - -`func (o *User) GetIsActive() bool` - -GetIsActive returns the IsActive field if non-nil, zero value otherwise. - -### GetIsActiveOk - -`func (o *User) GetIsActiveOk() (*bool, bool)` - -GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsActive - -`func (o *User) SetIsActive(v bool)` - -SetIsActive sets IsActive field to given value. - -### HasIsActive - -`func (o *User) HasIsActive() bool` - -HasIsActive returns a boolean if a field has been set. - -### GetDateJoined - -`func (o *User) GetDateJoined() time.Time` - -GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. - -### GetDateJoinedOk - -`func (o *User) GetDateJoinedOk() (*time.Time, bool)` - -GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDateJoined - -`func (o *User) SetDateJoined(v time.Time)` - -SetDateJoined sets DateJoined field to given value. - -### HasDateJoined - -`func (o *User) HasDateJoined() bool` - -HasDateJoined returns a boolean if a field has been set. - -### GetLastLogin - -`func (o *User) GetLastLogin() time.Time` - -GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. - -### GetLastLoginOk - -`func (o *User) GetLastLoginOk() (*time.Time, bool)` - -GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastLogin - -`func (o *User) SetLastLogin(v time.Time)` - -SetLastLogin sets LastLogin field to given value. - -### HasLastLogin - -`func (o *User) HasLastLogin() bool` - -HasLastLogin returns a boolean if a field has been set. - -### SetLastLoginNil - -`func (o *User) SetLastLoginNil(b bool)` - - SetLastLoginNil sets the value for LastLogin to be an explicit nil - -### UnsetLastLogin -`func (o *User) UnsetLastLogin()` - -UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil -### GetGroups - -`func (o *User) GetGroups() []Group` - -GetGroups returns the Groups field if non-nil, zero value otherwise. - -### GetGroupsOk - -`func (o *User) GetGroupsOk() (*[]Group, bool)` - -GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroups - -`func (o *User) SetGroups(v []Group)` - -SetGroups sets Groups field to given value. - -### HasGroups - -`func (o *User) HasGroups() bool` - -HasGroups returns a boolean if a field has been set. - -### GetPermissions - -`func (o *User) GetPermissions() []ObjectPermission` - -GetPermissions returns the Permissions field if non-nil, zero value otherwise. - -### GetPermissionsOk - -`func (o *User) GetPermissionsOk() (*[]ObjectPermission, bool)` - -GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPermissions - -`func (o *User) SetPermissions(v []ObjectPermission)` - -SetPermissions sets Permissions field to given value. - -### HasPermissions - -`func (o *User) HasPermissions() bool` - -HasPermissions 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/docs/UserRequest.md b/docs/UserRequest.md index 03e64cb5f..58e87259f 100644 --- a/docs/UserRequest.md +++ b/docs/UserRequest.md @@ -5,22 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | -**Password** | **string** | | -**FirstName** | Pointer to **string** | | [optional] -**LastName** | Pointer to **string** | | [optional] -**Email** | Pointer to **string** | | [optional] -**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] -**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] -**DateJoined** | Pointer to **time.Time** | | [optional] -**LastLogin** | Pointer to **NullableTime** | | [optional] -**Groups** | Pointer to **[]int32** | | [optional] -**Permissions** | Pointer to **[]int32** | | [optional] ## Methods ### NewUserRequest -`func NewUserRequest(username string, password string, ) *UserRequest` +`func NewUserRequest(username string, ) *UserRequest` NewUserRequest instantiates a new UserRequest object This constructor will assign default values to properties that have it defined, @@ -55,261 +45,6 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. -### GetPassword - -`func (o *UserRequest) GetPassword() string` - -GetPassword returns the Password field if non-nil, zero value otherwise. - -### GetPasswordOk - -`func (o *UserRequest) GetPasswordOk() (*string, bool)` - -GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPassword - -`func (o *UserRequest) SetPassword(v string)` - -SetPassword sets Password field to given value. - - -### GetFirstName - -`func (o *UserRequest) GetFirstName() string` - -GetFirstName returns the FirstName field if non-nil, zero value otherwise. - -### GetFirstNameOk - -`func (o *UserRequest) GetFirstNameOk() (*string, bool)` - -GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFirstName - -`func (o *UserRequest) SetFirstName(v string)` - -SetFirstName sets FirstName field to given value. - -### HasFirstName - -`func (o *UserRequest) HasFirstName() bool` - -HasFirstName returns a boolean if a field has been set. - -### GetLastName - -`func (o *UserRequest) GetLastName() string` - -GetLastName returns the LastName field if non-nil, zero value otherwise. - -### GetLastNameOk - -`func (o *UserRequest) GetLastNameOk() (*string, bool)` - -GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastName - -`func (o *UserRequest) SetLastName(v string)` - -SetLastName sets LastName field to given value. - -### HasLastName - -`func (o *UserRequest) HasLastName() bool` - -HasLastName returns a boolean if a field has been set. - -### GetEmail - -`func (o *UserRequest) GetEmail() string` - -GetEmail returns the Email field if non-nil, zero value otherwise. - -### GetEmailOk - -`func (o *UserRequest) GetEmailOk() (*string, bool)` - -GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEmail - -`func (o *UserRequest) SetEmail(v string)` - -SetEmail sets Email field to given value. - -### HasEmail - -`func (o *UserRequest) HasEmail() bool` - -HasEmail returns a boolean if a field has been set. - -### GetIsStaff - -`func (o *UserRequest) GetIsStaff() bool` - -GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. - -### GetIsStaffOk - -`func (o *UserRequest) GetIsStaffOk() (*bool, bool)` - -GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsStaff - -`func (o *UserRequest) SetIsStaff(v bool)` - -SetIsStaff sets IsStaff field to given value. - -### HasIsStaff - -`func (o *UserRequest) HasIsStaff() bool` - -HasIsStaff returns a boolean if a field has been set. - -### GetIsActive - -`func (o *UserRequest) GetIsActive() bool` - -GetIsActive returns the IsActive field if non-nil, zero value otherwise. - -### GetIsActiveOk - -`func (o *UserRequest) GetIsActiveOk() (*bool, bool)` - -GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIsActive - -`func (o *UserRequest) SetIsActive(v bool)` - -SetIsActive sets IsActive field to given value. - -### HasIsActive - -`func (o *UserRequest) HasIsActive() bool` - -HasIsActive returns a boolean if a field has been set. - -### GetDateJoined - -`func (o *UserRequest) GetDateJoined() time.Time` - -GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. - -### GetDateJoinedOk - -`func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool)` - -GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDateJoined - -`func (o *UserRequest) SetDateJoined(v time.Time)` - -SetDateJoined sets DateJoined field to given value. - -### HasDateJoined - -`func (o *UserRequest) HasDateJoined() bool` - -HasDateJoined returns a boolean if a field has been set. - -### GetLastLogin - -`func (o *UserRequest) GetLastLogin() time.Time` - -GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. - -### GetLastLoginOk - -`func (o *UserRequest) GetLastLoginOk() (*time.Time, bool)` - -GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastLogin - -`func (o *UserRequest) SetLastLogin(v time.Time)` - -SetLastLogin sets LastLogin field to given value. - -### HasLastLogin - -`func (o *UserRequest) HasLastLogin() bool` - -HasLastLogin returns a boolean if a field has been set. - -### SetLastLoginNil - -`func (o *UserRequest) SetLastLoginNil(b bool)` - - SetLastLoginNil sets the value for LastLogin to be an explicit nil - -### UnsetLastLogin -`func (o *UserRequest) UnsetLastLogin()` - -UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil -### GetGroups - -`func (o *UserRequest) GetGroups() []int32` - -GetGroups returns the Groups field if non-nil, zero value otherwise. - -### GetGroupsOk - -`func (o *UserRequest) GetGroupsOk() (*[]int32, bool)` - -GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroups - -`func (o *UserRequest) SetGroups(v []int32)` - -SetGroups sets Groups field to given value. - -### HasGroups - -`func (o *UserRequest) HasGroups() bool` - -HasGroups returns a boolean if a field has been set. - -### GetPermissions - -`func (o *UserRequest) GetPermissions() []int32` - -GetPermissions returns the Permissions field if non-nil, zero value otherwise. - -### GetPermissionsOk - -`func (o *UserRequest) GetPermissionsOk() (*[]int32, bool)` - -GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPermissions - -`func (o *UserRequest) SetPermissions(v []int32)` - -SetPermissions sets Permissions field to given value. - -### HasPermissions - -`func (o *UserRequest) HasPermissions() bool` - -HasPermissions 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/docs/UsersAPI.md b/docs/UsersAPI.md index 114471722..2da4d42da 100644 --- a/docs/UsersAPI.md +++ b/docs/UsersAPI.md @@ -438,7 +438,7 @@ Name | Type | Description | Notes ## UsersGroupsList -> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() @@ -487,8 +487,6 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) - notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) - notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -499,7 +497,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -550,8 +548,6 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | - **notificationGroupId** | **[]int32** | Notification group (ID) | - **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -1541,7 +1537,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1605,7 +1601,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1671,7 +1667,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1737,7 +1733,7 @@ import ( ) func main() { - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2247,7 +2243,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this token. - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2318,7 +2314,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2382,7 +2378,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2448,7 +2444,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2514,7 +2510,7 @@ import ( ) func main() { - userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2629,7 +2625,7 @@ Name | Type | Description | Notes ## UsersUsersList -> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() +> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() @@ -2711,8 +2707,6 @@ func main() { lastNameNiew := []string{"Inner_example"} // []string | (optional) lastNameNisw := []string{"Inner_example"} // []string | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) - notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -2732,7 +2726,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2815,8 +2809,6 @@ Name | Type | Description | Notes **lastNameNiew** | **[]string** | | **lastNameNisw** | **[]string** | | **limit** | **int32** | Number of results to return per page. | - **notificationGroupId** | **[]int32** | Notification group (ID) | - **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -3016,7 +3008,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this user. - userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/VLAN.md b/docs/VLAN.md index 0a59ba1f5..81cee5529 100644 --- a/docs/VLAN.md +++ b/docs/VLAN.md @@ -6,29 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] -**Group** | Pointer to [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVLAN -`func NewVLAN(id int32, url string, displayUrl string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, ) *VLAN` +`func NewVLAN(id int32, url string, display string, vid int32, name string, ) *VLAN` NewVLAN instantiates a new VLAN object This constructor will assign default values to properties that have it defined, @@ -83,26 +70,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VLAN) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VLAN) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VLAN) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VLAN) GetDisplay() string` @@ -123,76 +90,6 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. -### GetSite - -`func (o *VLAN) GetSite() BriefSite` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *VLAN) GetSiteOk() (*BriefSite, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *VLAN) SetSite(v BriefSite)` - -SetSite sets Site field to given value. - -### HasSite - -`func (o *VLAN) HasSite() bool` - -HasSite returns a boolean if a field has been set. - -### SetSiteNil - -`func (o *VLAN) SetSiteNil(b bool)` - - SetSiteNil sets the value for Site to be an explicit nil - -### UnsetSite -`func (o *VLAN) UnsetSite()` - -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetGroup - -`func (o *VLAN) GetGroup() BriefVLANGroup` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *VLAN) SetGroup(v BriefVLANGroup)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *VLAN) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *VLAN) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *VLAN) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLAN) GetVid() int32` @@ -233,101 +130,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTenant - -`func (o *VLAN) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *VLAN) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *VLAN) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *VLAN) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *VLAN) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *VLAN) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetStatus - -`func (o *VLAN) GetStatus() IPRangeStatus` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *VLAN) SetStatus(v IPRangeStatus)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *VLAN) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRole - -`func (o *VLAN) GetRole() BriefRole` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *VLAN) GetRoleOk() (*BriefRole, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *VLAN) SetRole(v BriefRole)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *VLAN) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### SetRoleNil - -`func (o *VLAN) SetRoleNil(b bool)` - - SetRoleNil sets the value for Role to be an explicit nil - -### UnsetRole -`func (o *VLAN) UnsetRole()` - -UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLAN) GetDescription() string` @@ -353,196 +155,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *VLAN) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *VLAN) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *VLAN) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *VLAN) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetL2vpnTermination - -`func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination` - -GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. - -### GetL2vpnTerminationOk - -`func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` - -GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetL2vpnTermination - -`func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination)` - -SetL2vpnTermination sets L2vpnTermination field to given value. - - -### SetL2vpnTerminationNil - -`func (o *VLAN) SetL2vpnTerminationNil(b bool)` - - SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil - -### UnsetL2vpnTermination -`func (o *VLAN) UnsetL2vpnTermination()` - -UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil -### GetTags - -`func (o *VLAN) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *VLAN) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *VLAN) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *VLAN) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *VLAN) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *VLAN) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *VLAN) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *VLAN) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *VLAN) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *VLAN) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *VLAN) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *VLAN) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *VLAN) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *VLAN) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *VLAN) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *VLAN) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *VLAN) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetPrefixCount - -`func (o *VLAN) GetPrefixCount() int64` - -GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. - -### GetPrefixCountOk - -`func (o *VLAN) GetPrefixCountOk() (*int64, bool)` - -GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetPrefixCount - -`func (o *VLAN) SetPrefixCount(v int64)` - -SetPrefixCount sets PrefixCount field to given value. - -### HasPrefixCount - -`func (o *VLAN) HasPrefixCount() bool` - -HasPrefixCount 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/docs/VLANGroup.md b/docs/VLANGroup.md index 8622cfb99..6df7b1d13 100644 --- a/docs/VLANGroup.md +++ b/docs/VLANGroup.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] **Scope** | **interface{}** | | [readonly] +**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] +**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewVLANGroup -`func NewVLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` +`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` NewVLANGroup instantiates a new VLANGroup object This constructor will assign default values to properties that have it defined, @@ -80,26 +81,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VLANGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VLANGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VLANGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VLANGroup) GetDisplay() string` @@ -260,6 +241,56 @@ SetScope sets Scope field to given value. `func (o *VLANGroup) UnsetScope()` UnsetScope ensures that no value is present for Scope, not even an explicit nil +### GetMinVid + +`func (o *VLANGroup) GetMinVid() int32` + +GetMinVid returns the MinVid field if non-nil, zero value otherwise. + +### GetMinVidOk + +`func (o *VLANGroup) GetMinVidOk() (*int32, bool)` + +GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinVid + +`func (o *VLANGroup) SetMinVid(v int32)` + +SetMinVid sets MinVid field to given value. + +### HasMinVid + +`func (o *VLANGroup) HasMinVid() bool` + +HasMinVid returns a boolean if a field has been set. + +### GetMaxVid + +`func (o *VLANGroup) GetMaxVid() int32` + +GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. + +### GetMaxVidOk + +`func (o *VLANGroup) GetMaxVidOk() (*int32, bool)` + +GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxVid + +`func (o *VLANGroup) SetMaxVid(v int32)` + +SetMaxVid sets MaxVid field to given value. + +### HasMaxVid + +`func (o *VLANGroup) HasMaxVid() bool` + +HasMaxVid returns a boolean if a field has been set. + ### GetDescription `func (o *VLANGroup) GetDescription() string` diff --git a/docs/VLANGroupRequest.md b/docs/VLANGroupRequest.md index 768c049b0..efd4ab4ff 100644 --- a/docs/VLANGroupRequest.md +++ b/docs/VLANGroupRequest.md @@ -8,6 +8,8 @@ Name | Type | Description | Notes **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] +**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] +**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -141,6 +143,56 @@ HasScopeId returns a boolean if a field has been set. `func (o *VLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil +### GetMinVid + +`func (o *VLANGroupRequest) GetMinVid() int32` + +GetMinVid returns the MinVid field if non-nil, zero value otherwise. + +### GetMinVidOk + +`func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool)` + +GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMinVid + +`func (o *VLANGroupRequest) SetMinVid(v int32)` + +SetMinVid sets MinVid field to given value. + +### HasMinVid + +`func (o *VLANGroupRequest) HasMinVid() bool` + +HasMinVid returns a boolean if a field has been set. + +### GetMaxVid + +`func (o *VLANGroupRequest) GetMaxVid() int32` + +GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. + +### GetMaxVidOk + +`func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool)` + +GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxVid + +`func (o *VLANGroupRequest) SetMaxVid(v int32)` + +SetMaxVid sets MaxVid field to given value. + +### HasMaxVid + +`func (o *VLANGroupRequest) HasMaxVid() bool` + +HasMaxVid returns a boolean if a field has been set. + ### GetDescription `func (o *VLANGroupRequest) GetDescription() string` diff --git a/docs/VLANRequest.md b/docs/VLANRequest.md index 0b7ddd1b8..8ee516347 100644 --- a/docs/VLANRequest.md +++ b/docs/VLANRequest.md @@ -4,17 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -35,76 +27,6 @@ NewVLANRequestWithDefaults instantiates a new VLANRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetSite - -`func (o *VLANRequest) GetSite() BriefSiteRequest` - -GetSite returns the Site field if non-nil, zero value otherwise. - -### GetSiteOk - -`func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` - -GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSite - -`func (o *VLANRequest) SetSite(v BriefSiteRequest)` - -SetSite sets Site field to given value. - -### HasSite - -`func (o *VLANRequest) HasSite() bool` - -HasSite returns a boolean if a field has been set. - -### SetSiteNil - -`func (o *VLANRequest) SetSiteNil(b bool)` - - SetSiteNil sets the value for Site to be an explicit nil - -### UnsetSite -`func (o *VLANRequest) UnsetSite()` - -UnsetSite ensures that no value is present for Site, not even an explicit nil -### GetGroup - -`func (o *VLANRequest) GetGroup() BriefVLANGroupRequest` - -GetGroup returns the Group field if non-nil, zero value otherwise. - -### GetGroupOk - -`func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` - -GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetGroup - -`func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest)` - -SetGroup sets Group field to given value. - -### HasGroup - -`func (o *VLANRequest) HasGroup() bool` - -HasGroup returns a boolean if a field has been set. - -### SetGroupNil - -`func (o *VLANRequest) SetGroupNil(b bool)` - - SetGroupNil sets the value for Group to be an explicit nil - -### UnsetGroup -`func (o *VLANRequest) UnsetGroup()` - -UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLANRequest) GetVid() int32` @@ -145,101 +67,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTenant - -`func (o *VLANRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *VLANRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *VLANRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *VLANRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *VLANRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetStatus - -`func (o *VLANRequest) GetStatus() IPRangeStatusValue` - -GetStatus returns the Status field if non-nil, zero value otherwise. - -### GetStatusOk - -`func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool)` - -GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetStatus - -`func (o *VLANRequest) SetStatus(v IPRangeStatusValue)` - -SetStatus sets Status field to given value. - -### HasStatus - -`func (o *VLANRequest) HasStatus() bool` - -HasStatus returns a boolean if a field has been set. - -### GetRole - -`func (o *VLANRequest) GetRole() BriefRoleRequest` - -GetRole returns the Role field if non-nil, zero value otherwise. - -### GetRoleOk - -`func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` - -GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRole - -`func (o *VLANRequest) SetRole(v BriefRoleRequest)` - -SetRole sets Role field to given value. - -### HasRole - -`func (o *VLANRequest) HasRole() bool` - -HasRole returns a boolean if a field has been set. - -### SetRoleNil - -`func (o *VLANRequest) SetRoleNil(b bool)` - - SetRoleNil sets the value for Role to be an explicit nil - -### UnsetRole -`func (o *VLANRequest) UnsetRole()` - -UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLANRequest) GetDescription() string` @@ -265,81 +92,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *VLANRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *VLANRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *VLANRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *VLANRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *VLANRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *VLANRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *VLANRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *VLANRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *VLANRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *VLANRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *VLANRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *VLANRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/VMInterface.md b/docs/VMInterface.md index 6af5432f3..ba4d5ef2c 100644 --- a/docs/VMInterface.md +++ b/docs/VMInterface.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | +**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] @@ -17,10 +16,10 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] -**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] +**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -32,7 +31,7 @@ Name | Type | Description | Notes ### NewVMInterface -`func NewVMInterface(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` +`func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` NewVMInterface instantiates a new VMInterface object This constructor will assign default values to properties that have it defined, @@ -87,26 +86,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VMInterface) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VMInterface) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VMInterface) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VMInterface) GetDisplay() string` @@ -129,20 +108,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine` +`func (o *VMInterface) GetVirtualMachine() VirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` +`func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine)` +`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -384,20 +363,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterface) GetUntaggedVlan() BriefVLAN` +`func (o *VMInterface) GetUntaggedVlan() VLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool)` +`func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterface) SetUntaggedVlan(v BriefVLAN)` +`func (o *VMInterface) SetUntaggedVlan(v VLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -444,20 +423,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterface) GetVrf() BriefVRF` +`func (o *VMInterface) GetVrf() VRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterface) GetVrfOk() (*BriefVRF, bool)` +`func (o *VMInterface) GetVrfOk() (*VRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterface) SetVrf(v BriefVRF)` +`func (o *VMInterface) SetVrf(v VRF)` SetVrf sets Vrf field to given value. @@ -479,20 +458,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination` +`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` +`func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination)` +`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md index 9285ac301..f82ea7526 100644 --- a/docs/VMInterfaceRequest.md +++ b/docs/VMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | +**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewVMInterfaceRequest -`func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *VMInterfaceRequest` +`func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *VMInterfaceRequest` NewVMInterfaceRequest instantiates a new VMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` +`func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` +`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` +`func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest` +`func (o *VMInterfaceRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest)` +`func (o *VMInterfaceRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/VRF.md b/docs/VRF.md index 986b246f7..efb68c006 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -6,28 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] -**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] -**IpaddressCount** | **int64** | | [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64, ) *VRF` +`func NewVRF(id int32, url string, display string, name string, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -82,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VRF) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VRF) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VRF) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VRF) GetDisplay() string` @@ -177,66 +146,6 @@ HasRd returns a boolean if a field has been set. `func (o *VRF) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil -### GetTenant - -`func (o *VRF) GetTenant() BriefTenant` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *VRF) GetTenantOk() (*BriefTenant, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *VRF) SetTenant(v BriefTenant)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *VRF) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *VRF) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *VRF) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetEnforceUnique - -`func (o *VRF) GetEnforceUnique() bool` - -GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. - -### GetEnforceUniqueOk - -`func (o *VRF) GetEnforceUniqueOk() (*bool, bool)` - -GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnforceUnique - -`func (o *VRF) SetEnforceUnique(v bool)` - -SetEnforceUnique sets EnforceUnique field to given value. - -### HasEnforceUnique - -`func (o *VRF) HasEnforceUnique() bool` - -HasEnforceUnique returns a boolean if a field has been set. - ### GetDescription `func (o *VRF) GetDescription() string` @@ -262,211 +171,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *VRF) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *VRF) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *VRF) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *VRF) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetImportTargets - -`func (o *VRF) GetImportTargets() []RouteTarget` - -GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. - -### GetImportTargetsOk - -`func (o *VRF) GetImportTargetsOk() (*[]RouteTarget, bool)` - -GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImportTargets - -`func (o *VRF) SetImportTargets(v []RouteTarget)` - -SetImportTargets sets ImportTargets field to given value. - -### HasImportTargets - -`func (o *VRF) HasImportTargets() bool` - -HasImportTargets returns a boolean if a field has been set. - -### GetExportTargets - -`func (o *VRF) GetExportTargets() []RouteTarget` - -GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. - -### GetExportTargetsOk - -`func (o *VRF) GetExportTargetsOk() (*[]RouteTarget, bool)` - -GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExportTargets - -`func (o *VRF) SetExportTargets(v []RouteTarget)` - -SetExportTargets sets ExportTargets field to given value. - -### HasExportTargets - -`func (o *VRF) HasExportTargets() bool` - -HasExportTargets returns a boolean if a field has been set. - -### GetTags - -`func (o *VRF) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *VRF) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *VRF) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *VRF) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *VRF) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *VRF) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *VRF) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *VRF) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *VRF) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *VRF) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *VRF) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *VRF) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *VRF) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *VRF) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *VRF) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *VRF) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *VRF) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *VRF) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil -### GetIpaddressCount - -`func (o *VRF) GetIpaddressCount() int64` - -GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. - -### GetIpaddressCountOk - -`func (o *VRF) GetIpaddressCountOk() (*int64, bool)` - -GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetIpaddressCount - -`func (o *VRF) SetIpaddressCount(v int64)` - -SetIpaddressCount sets IpaddressCount field to given value. - - ### GetPrefixCount `func (o *VRF) GetPrefixCount() int64` diff --git a/docs/VRFRequest.md b/docs/VRFRequest.md index 292a8949e..6637879c6 100644 --- a/docs/VRFRequest.md +++ b/docs/VRFRequest.md @@ -6,14 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**ImportTargets** | Pointer to **[]int32** | | [optional] -**ExportTargets** | Pointer to **[]int32** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -89,66 +82,6 @@ HasRd returns a boolean if a field has been set. `func (o *VRFRequest) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil -### GetTenant - -`func (o *VRFRequest) GetTenant() BriefTenantRequest` - -GetTenant returns the Tenant field if non-nil, zero value otherwise. - -### GetTenantOk - -`func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` - -GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTenant - -`func (o *VRFRequest) SetTenant(v BriefTenantRequest)` - -SetTenant sets Tenant field to given value. - -### HasTenant - -`func (o *VRFRequest) HasTenant() bool` - -HasTenant returns a boolean if a field has been set. - -### SetTenantNil - -`func (o *VRFRequest) SetTenantNil(b bool)` - - SetTenantNil sets the value for Tenant to be an explicit nil - -### UnsetTenant -`func (o *VRFRequest) UnsetTenant()` - -UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -### GetEnforceUnique - -`func (o *VRFRequest) GetEnforceUnique() bool` - -GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. - -### GetEnforceUniqueOk - -`func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool)` - -GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEnforceUnique - -`func (o *VRFRequest) SetEnforceUnique(v bool)` - -SetEnforceUnique sets EnforceUnique field to given value. - -### HasEnforceUnique - -`func (o *VRFRequest) HasEnforceUnique() bool` - -HasEnforceUnique returns a boolean if a field has been set. - ### GetDescription `func (o *VRFRequest) GetDescription() string` @@ -174,131 +107,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *VRFRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *VRFRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *VRFRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *VRFRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetImportTargets - -`func (o *VRFRequest) GetImportTargets() []int32` - -GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. - -### GetImportTargetsOk - -`func (o *VRFRequest) GetImportTargetsOk() (*[]int32, bool)` - -GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImportTargets - -`func (o *VRFRequest) SetImportTargets(v []int32)` - -SetImportTargets sets ImportTargets field to given value. - -### HasImportTargets - -`func (o *VRFRequest) HasImportTargets() bool` - -HasImportTargets returns a boolean if a field has been set. - -### GetExportTargets - -`func (o *VRFRequest) GetExportTargets() []int32` - -GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. - -### GetExportTargetsOk - -`func (o *VRFRequest) GetExportTargetsOk() (*[]int32, bool)` - -GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetExportTargets - -`func (o *VRFRequest) SetExportTargets(v []int32)` - -SetExportTargets sets ExportTargets field to given value. - -### HasExportTargets - -`func (o *VRFRequest) HasExportTargets() bool` - -HasExportTargets returns a boolean if a field has been set. - -### GetTags - -`func (o *VRFRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *VRFRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *VRFRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *VRFRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *VRFRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *VRFRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *VRFRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *VRFRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/VirtualChassis.md b/docs/VirtualChassis.md index a69dd31c8..325cd6a07 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -6,25 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **MemberCount** | **int32** | | [readonly] -**Members** | [**[]NestedDevice**](NestedDevice.md) | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -79,26 +71,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VirtualChassis) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VirtualChassis) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VirtualChassis) GetDisplay() string` @@ -139,31 +111,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetDomain - -`func (o *VirtualChassis) GetDomain() string` - -GetDomain returns the Domain field if non-nil, zero value otherwise. - -### GetDomainOk - -`func (o *VirtualChassis) GetDomainOk() (*string, bool)` - -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomain - -`func (o *VirtualChassis) SetDomain(v string)` - -SetDomain sets Domain field to given value. - -### HasDomain - -`func (o *VirtualChassis) HasDomain() bool` - -HasDomain returns a boolean if a field has been set. - ### GetMaster `func (o *VirtualChassis) GetMaster() NestedDevice` @@ -224,141 +171,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *VirtualChassis) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *VirtualChassis) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *VirtualChassis) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *VirtualChassis) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *VirtualChassis) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *VirtualChassis) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *VirtualChassis) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *VirtualChassis) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *VirtualChassis) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *VirtualChassis) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *VirtualChassis) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *VirtualChassis) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *VirtualChassis) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *VirtualChassis) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *VirtualChassis) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *VirtualChassis) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *VirtualChassis) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *VirtualChassis) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *VirtualChassis) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *VirtualChassis) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetMemberCount `func (o *VirtualChassis) GetMemberCount() int32` @@ -379,26 +191,6 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. -### GetMembers - -`func (o *VirtualChassis) GetMembers() []NestedDevice` - -GetMembers returns the Members field if non-nil, zero value otherwise. - -### GetMembersOk - -`func (o *VirtualChassis) GetMembersOk() (*[]NestedDevice, bool)` - -GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMembers - -`func (o *VirtualChassis) SetMembers(v []NestedDevice)` - -SetMembers sets Members field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualChassisRequest.md b/docs/VirtualChassisRequest.md index c8f966eb5..76fe6fb80 100644 --- a/docs/VirtualChassisRequest.md +++ b/docs/VirtualChassisRequest.md @@ -5,12 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -51,31 +47,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetDomain - -`func (o *VirtualChassisRequest) GetDomain() string` - -GetDomain returns the Domain field if non-nil, zero value otherwise. - -### GetDomainOk - -`func (o *VirtualChassisRequest) GetDomainOk() (*string, bool)` - -GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDomain - -`func (o *VirtualChassisRequest) SetDomain(v string)` - -SetDomain sets Domain field to given value. - -### HasDomain - -`func (o *VirtualChassisRequest) HasDomain() bool` - -HasDomain returns a boolean if a field has been set. - ### GetMaster `func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest` @@ -136,81 +107,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *VirtualChassisRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *VirtualChassisRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *VirtualChassisRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - -### GetTags - -`func (o *VirtualChassisRequest) GetTags() []NestedTagRequest` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *VirtualChassisRequest) GetTagsOk() (*[]NestedTagRequest, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *VirtualChassisRequest) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *VirtualChassisRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *VirtualChassisRequest) HasCustomFields() bool` - -HasCustomFields 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/docs/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index e45d92a95..6bdea62eb 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -6,15 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Device** | [**BriefDevice**](BriefDevice.md) | | +**Device** | [**Device**](Device.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] **Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -28,7 +27,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, displayUrl string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -83,26 +82,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VirtualDeviceContext) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VirtualDeviceContext) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VirtualDeviceContext) GetDisplay() string` @@ -145,20 +124,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContext) GetDevice() BriefDevice` +`func (o *VirtualDeviceContext) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool)` +`func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContext) SetDevice(v BriefDevice)` +`func (o *VirtualDeviceContext) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -200,20 +179,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContext) GetTenant() BriefTenant` +`func (o *VirtualDeviceContext) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool)` +`func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContext) SetTenant(v BriefTenant)` +`func (o *VirtualDeviceContext) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -235,20 +214,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -265,20 +244,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -300,20 +279,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md index 2604eb36a..f3436b2b5 100644 --- a/docs/VirtualDeviceContextRequest.md +++ b/docs/VirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContextRequest -`func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` +`func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` NewVirtualDeviceContextRequest instantiates a new VirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` +`func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` +`func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest` +`func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDisk.md b/docs/VirtualDisk.md index abbaa3bc5..2bc24b4e8 100644 --- a/docs/VirtualDisk.md +++ b/docs/VirtualDisk.md @@ -6,9 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | +**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -21,7 +20,7 @@ Name | Type | Description | Notes ### NewVirtualDisk -`func NewVirtualDisk(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` +`func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` NewVirtualDisk instantiates a new VirtualDisk object This constructor will assign default values to properties that have it defined, @@ -76,26 +75,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VirtualDisk) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VirtualDisk) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VirtualDisk) GetDisplay() string` @@ -118,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine` +`func (o *VirtualDisk) GetVirtualMachine() VirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` +`func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine)` +`func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md index 737588e43..3ec5d8bf7 100644 --- a/docs/VirtualDiskRequest.md +++ b/docs/VirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | +**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewVirtualDiskRequest -`func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` +`func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` NewVirtualDiskRequest instantiates a new VirtualDiskRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md index 062f8d52d..bb09969ee 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -6,26 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] -**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] -**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**Role** | Pointer to [**NullableBriefDeviceRole**](BriefDeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] -**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Status** | Pointer to [**VirtualMachineWithConfigContextStatus**](VirtualMachineWithConfigContextStatus.md) | | [optional] +**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] +**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] +**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] +**Role** | Pointer to [**NullableDeviceRole**](DeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -39,7 +37,7 @@ Name | Type | Description | Notes ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, displayUrl string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -94,26 +92,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *VirtualMachineWithConfigContext) GetDisplay() string` @@ -156,20 +134,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus` +`func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool)` +`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus)` +`func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus)` SetStatus sets Status field to given value. @@ -181,20 +159,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContext) GetSite() BriefSite` +`func (o *VirtualMachineWithConfigContext) GetSite() Site` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool)` +`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite)` +`func (o *VirtualMachineWithConfigContext) SetSite(v Site)` SetSite sets Site field to given value. @@ -216,20 +194,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster` +`func (o *VirtualMachineWithConfigContext) GetCluster() Cluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool)` +`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster)` +`func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster)` SetCluster sets Cluster field to given value. @@ -251,20 +229,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice` +`func (o *VirtualMachineWithConfigContext) GetDevice() Device` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool)` +`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice)` +`func (o *VirtualMachineWithConfigContext) SetDevice(v Device)` SetDevice sets Device field to given value. @@ -284,47 +262,22 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContext) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil -### GetSerial - -`func (o *VirtualMachineWithConfigContext) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *VirtualMachineWithConfigContext) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *VirtualMachineWithConfigContext) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - ### GetRole -`func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole` +`func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` +`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole)` +`func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole)` SetRole sets Role field to given value. @@ -346,20 +299,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant` +`func (o *VirtualMachineWithConfigContext) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool)` +`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant)` +`func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -381,20 +334,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform` +`func (o *VirtualMachineWithConfigContext) GetPlatform() Platform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` +`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform)` +`func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform)` SetPlatform sets Platform field to given value. @@ -416,20 +369,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -446,20 +399,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -481,20 +434,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -671,20 +624,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` +`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md index 7bc48c424..44050ed13 100644 --- a/docs/VirtualMachineWithConfigContextRequest.md +++ b/docs/VirtualMachineWithConfigContextRequest.md @@ -5,22 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -66,20 +65,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` +`func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` +`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` SetStatus sets Status field to given value. @@ -91,20 +90,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -126,20 +125,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` SetCluster sets Cluster field to given value. @@ -161,20 +160,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -194,47 +193,22 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil -### GetSerial - -`func (o *VirtualMachineWithConfigContextRequest) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - ### GetRole -`func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` SetRole sets Role field to given value. @@ -256,20 +230,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -291,20 +265,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` SetPlatform sets Platform field to given value. @@ -326,20 +300,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -361,20 +335,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -551,20 +525,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualizationAPI.md b/docs/VirtualizationAPI.md index 857336f1a..b93f4f266 100644 --- a/docs/VirtualizationAPI.md +++ b/docs/VirtualizationAPI.md @@ -416,8 +416,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -509,8 +509,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -1565,7 +1565,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1629,7 +1629,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1695,7 +1695,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1761,7 +1761,7 @@ import ( ) func main() { - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1898,8 +1898,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1955,16 +1955,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -1973,10 +1973,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional) @@ -2010,8 +2010,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2067,16 +2067,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -2085,10 +2085,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | Cluster type (slug) | @@ -2279,7 +2279,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this cluster. - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2350,7 +2350,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2414,7 +2414,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2480,7 +2480,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2546,7 +2546,7 @@ import ( ) func main() { - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3076,7 +3076,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3147,7 +3147,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3211,7 +3211,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3277,7 +3277,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3343,7 +3343,7 @@ import ( ) func main() { - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3811,7 +3811,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual disk. - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4193,7 +4193,7 @@ Name | Type | Description | Notes ## VirtualizationVirtualMachinesList -> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() +> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() @@ -4229,8 +4229,8 @@ func main() { configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []string{"Inner_example"} // []string | (optional) - contactGroupN := []string{"Inner_example"} // []string | (optional) + contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4327,31 +4327,20 @@ func main() { primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) - region := []string{"Inner_example"} // []string | (optional) - regionN := []string{"Inner_example"} // []string | (optional) - regionId := []string{"Inner_example"} // []string | (optional) - regionIdN := []string{"Inner_example"} // []string | (optional) + region := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) + regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) + regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) - serial := []string{"Inner_example"} // []string | (optional) - serialEmpty := true // bool | (optional) - serialIc := []string{"Inner_example"} // []string | (optional) - serialIe := []string{"Inner_example"} // []string | (optional) - serialIew := []string{"Inner_example"} // []string | (optional) - serialIsw := []string{"Inner_example"} // []string | (optional) - serialN := []string{"Inner_example"} // []string | (optional) - serialNic := []string{"Inner_example"} // []string | (optional) - serialNie := []string{"Inner_example"} // []string | (optional) - serialNiew := []string{"Inner_example"} // []string | (optional) - serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []string{"Inner_example"} // []string | (optional) - siteGroupN := []string{"Inner_example"} // []string | (optional) - siteGroupId := []string{"Inner_example"} // []string | (optional) - siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) + siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) @@ -4360,10 +4349,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4384,7 +4373,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4421,8 +4410,8 @@ Name | Type | Description | Notes **configTemplateIdN** | **[]int32** | Config template (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]string** | | - **contactGroupN** | **[]string** | | + **contactGroup** | **[]int32** | Contact group | + **contactGroupN** | **[]int32** | Contact group | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4519,31 +4508,20 @@ Name | Type | Description | Notes **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) | **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | - **region** | **[]string** | | - **regionN** | **[]string** | | - **regionId** | **[]string** | | - **regionIdN** | **[]string** | | + **region** | **[]int32** | Region (slug) | + **regionN** | **[]int32** | Region (slug) | + **regionId** | **[]int32** | Region (ID) | + **regionIdN** | **[]int32** | Region (ID) | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | - **serial** | **[]string** | | - **serialEmpty** | **bool** | | - **serialIc** | **[]string** | | - **serialIe** | **[]string** | | - **serialIew** | **[]string** | | - **serialIsw** | **[]string** | | - **serialN** | **[]string** | | - **serialNic** | **[]string** | | - **serialNie** | **[]string** | | - **serialNiew** | **[]string** | | - **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]string** | | - **siteGroupN** | **[]string** | | - **siteGroupId** | **[]string** | | - **siteGroupIdN** | **[]string** | | + **siteGroup** | **[]int32** | Site group (slug) | + **siteGroupN** | **[]int32** | Site group (slug) | + **siteGroupId** | **[]int32** | Site group (ID) | + **siteGroupIdN** | **[]int32** | Site group (ID) | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | @@ -4552,10 +4530,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md index b4be1dc00..4a260a9e0 100644 --- a/docs/VpnAPI.md +++ b/docs/VpnAPI.md @@ -118,7 +118,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -182,7 +182,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -248,7 +248,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +429,7 @@ Name | Type | Description | Notes ## VpnIkePoliciesList -> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() +> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() @@ -513,6 +513,10 @@ func main() { presharedKeyNie := "presharedKeyNie_example" // string | (optional) presharedKeyNiew := "presharedKeyNiew_example" // string | (optional) presharedKeyNisw := "presharedKeyNisw_example" // string | (optional) + proposal := []string{"Inner_example"} // []string | (optional) + proposalN := []string{"Inner_example"} // []string | (optional) + proposalId := []int32{int32(123)} // []int32 | (optional) + proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -522,7 +526,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -607,6 +611,10 @@ Name | Type | Description | Notes **presharedKeyNie** | **string** | | **presharedKeyNiew** | **string** | | **presharedKeyNisw** | **string** | | + **proposal** | **[]string** | | + **proposalN** | **[]string** | | + **proposalId** | **[]int32** | | + **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -867,7 +875,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -931,7 +939,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -997,7 +1005,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1929,7 +1937,7 @@ Name | Type | Description | Notes ## VpnIpsecPoliciesList -> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2003,6 +2011,10 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) pfsGroup := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) pfsGroupN := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) + proposal := []string{"Inner_example"} // []string | (optional) + proposalN := []string{"Inner_example"} // []string | (optional) + proposalId := []int32{int32(123)} // []int32 | (optional) + proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -2010,7 +2022,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2085,6 +2097,10 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **pfsGroup** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | **pfsGroupN** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | + **proposal** | **[]string** | | + **proposalN** | **[]string** | | + **proposalId** | **[]int32** | | + **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -2343,7 +2359,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2407,7 +2423,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2473,7 +2489,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2539,7 +2555,7 @@ import ( ) func main() { - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3005,7 +3021,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this IPSec profile. - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3833,7 +3849,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3897,7 +3913,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3963,7 +3979,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4029,7 +4045,7 @@ import ( ) func main() { - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4519,7 +4535,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN termination. - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4786,7 +4802,7 @@ import ( ) func main() { - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5000,10 +5016,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | (optional) @@ -5112,10 +5128,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | | @@ -5304,7 +5320,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN. - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6110,7 +6126,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6174,7 +6190,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6240,7 +6256,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6306,7 +6322,7 @@ import ( ) func main() { - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6758,7 +6774,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this tunnel termination. - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6829,7 +6845,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6893,7 +6909,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6959,7 +6975,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7225,10 +7241,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tunnelId := []int32{int32(123)} // []int32 | (optional) @@ -7328,10 +7344,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **tunnelId** | **[]int32** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 6f1965a4c..146995485 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,7 +6,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -27,7 +26,7 @@ Name | Type | Description | Notes ### NewWebhook -`func NewWebhook(id int32, url string, displayUrl string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` +`func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime, ) *Webhook` NewWebhook instantiates a new Webhook object This constructor will assign default values to properties that have it defined, @@ -82,26 +81,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *Webhook) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *Webhook) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *Webhook) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *Webhook) GetDisplay() string` diff --git a/docs/WirelessAPI.md b/docs/WirelessAPI.md index 6b26fe066..e35e3430e 100644 --- a/docs/WirelessAPI.md +++ b/docs/WirelessAPI.md @@ -386,10 +386,10 @@ import ( ) func main() { - ancestor := []string{"Inner_example"} // []string | (optional) - ancestorN := []string{"Inner_example"} // []string | (optional) - ancestorId := []string{"Inner_example"} // []string | (optional) - ancestorIdN := []string{"Inner_example"} // []string | (optional) + ancestor := []int32{int32(123)} // []int32 | (optional) + ancestorN := []int32{int32(123)} // []int32 | (optional) + ancestorId := []int32{int32(123)} // []int32 | (optional) + ancestorIdN := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -481,10 +481,10 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]string** | | - **ancestorN** | **[]string** | | - **ancestorId** | **[]string** | | - **ancestorIdN** | **[]string** | | + **ancestor** | **[]int32** | | + **ancestorN** | **[]int32** | | + **ancestorId** | **[]int32** | | + **ancestorIdN** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1171,10 +1171,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []string{"Inner_example"} // []string | (optional) - groupN := []string{"Inner_example"} // []string | (optional) - groupId := []string{"Inner_example"} // []string | (optional) - groupIdN := []string{"Inner_example"} // []string | (optional) + group := []int32{int32(123)} // []int32 | (optional) + groupN := []int32{int32(123)} // []int32 | (optional) + groupId := []int32{int32(123)} // []int32 | (optional) + groupIdN := []int32{int32(123)} // []int32 | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1213,10 +1213,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1280,10 +1280,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]string** | | - **groupN** | **[]string** | | - **groupId** | **[]string** | | - **groupIdN** | **[]string** | | + **group** | **[]int32** | | + **groupN** | **[]int32** | | + **groupId** | **[]int32** | | + **groupIdN** | **[]int32** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1322,10 +1322,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1585,7 +1585,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1649,7 +1649,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +1715,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1781,7 +1781,7 @@ import ( ) func main() { - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1896,7 +1896,7 @@ Name | Type | Description | Notes ## WirelessWirelessLinksList -> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).DistanceUnitN(distanceUnitN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1950,15 +1950,6 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - distance := []float64{float64(123)} // []float64 | (optional) - distanceEmpty := true // bool | (optional) - distanceGt := []float64{float64(123)} // []float64 | (optional) - distanceGte := []float64{float64(123)} // []float64 | (optional) - distanceLt := []float64{float64(123)} // []float64 | (optional) - distanceLte := []float64{float64(123)} // []float64 | (optional) - distanceN := []float64{float64(123)} // []float64 | (optional) - distanceUnit := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) - distanceUnitN := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1999,17 +1990,17 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []string{"Inner_example"} // []string | (optional) - tenantGroupN := []string{"Inner_example"} // []string | (optional) - tenantGroupId := []string{"Inner_example"} // []string | (optional) - tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) + tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).DistanceUnitN(distanceUnitN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2064,15 +2055,6 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **distance** | **[]float64** | | - **distanceEmpty** | **bool** | | - **distanceGt** | **[]float64** | | - **distanceGte** | **[]float64** | | - **distanceLt** | **[]float64** | | - **distanceLte** | **[]float64** | | - **distanceN** | **[]float64** | | - **distanceUnit** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | - **distanceUnitN** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2113,10 +2095,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]string** | | - **tenantGroupN** | **[]string** | | - **tenantGroupId** | **[]string** | | - **tenantGroupIdN** | **[]string** | | + **tenantGroup** | **[]int32** | Tenant Group (slug) | + **tenantGroupN** | **[]int32** | Tenant Group (slug) | + **tenantGroupId** | **[]int32** | Tenant Group (ID) | + **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2303,7 +2285,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this wireless link. - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/WirelessLAN.md b/docs/WirelessLAN.md index 6a61ef291..8bc856e77 100644 --- a/docs/WirelessLAN.md +++ b/docs/WirelessLAN.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableBriefWirelessLANGroup**](BriefWirelessLANGroup.md) | | [optional] +**Group** | Pointer to [**NullableWirelessLANGroup**](WirelessLANGroup.md) | | [optional] **Status** | Pointer to [**WirelessLANStatus**](WirelessLANStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -27,7 +26,7 @@ Name | Type | Description | Notes ### NewWirelessLAN -`func NewWirelessLAN(id int32, url string, displayUrl string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` +`func NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime, ) *WirelessLAN` NewWirelessLAN instantiates a new WirelessLAN object This constructor will assign default values to properties that have it defined, @@ -82,26 +81,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *WirelessLAN) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *WirelessLAN) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *WirelessLAN) GetDisplay() string` @@ -169,20 +148,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup` +`func (o *WirelessLAN) GetGroup() WirelessLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool)` +`func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup)` +`func (o *WirelessLAN) SetGroup(v WirelessLANGroup)` SetGroup sets Group field to given value. @@ -229,20 +208,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLAN) GetVlan() BriefVLAN` +`func (o *WirelessLAN) GetVlan() VLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool)` +`func (o *WirelessLAN) GetVlanOk() (*VLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLAN) SetVlan(v BriefVLAN)` +`func (o *WirelessLAN) SetVlan(v VLAN)` SetVlan sets Vlan field to given value. @@ -264,20 +243,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLAN) GetTenant() BriefTenant` +`func (o *WirelessLAN) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool)` +`func (o *WirelessLAN) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLAN) SetTenant(v BriefTenant)` +`func (o *WirelessLAN) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLANGroup.md b/docs/WirelessLANGroup.md index 2242ea72d..aae3009eb 100644 --- a/docs/WirelessLANGroup.md +++ b/docs/WirelessLANGroup.md @@ -6,16 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Parent** | Pointer to [**NullableNestedWirelessLANGroup**](NestedWirelessLANGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] -**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] -**CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Created** | **NullableTime** | | [readonly] -**LastUpdated** | **NullableTime** | | [readonly] **WirelesslanCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -23,7 +17,7 @@ Name | Type | Description | Notes ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -78,26 +72,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *WirelessLANGroup) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *WirelessLANGroup) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *WirelessLANGroup) GetDisplay() string` @@ -158,41 +132,6 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. -### GetParent - -`func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup` - -GetParent returns the Parent field if non-nil, zero value otherwise. - -### GetParentOk - -`func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool)` - -GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetParent - -`func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup)` - -SetParent sets Parent field to given value. - -### HasParent - -`func (o *WirelessLANGroup) HasParent() bool` - -HasParent returns a boolean if a field has been set. - -### SetParentNil - -`func (o *WirelessLANGroup) SetParentNil(b bool)` - - SetParentNil sets the value for Parent to be an explicit nil - -### UnsetParent -`func (o *WirelessLANGroup) UnsetParent()` - -UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetDescription `func (o *WirelessLANGroup) GetDescription() string` @@ -218,116 +157,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetTags - -`func (o *WirelessLANGroup) GetTags() []NestedTag` - -GetTags returns the Tags field if non-nil, zero value otherwise. - -### GetTagsOk - -`func (o *WirelessLANGroup) GetTagsOk() (*[]NestedTag, bool)` - -GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTags - -`func (o *WirelessLANGroup) SetTags(v []NestedTag)` - -SetTags sets Tags field to given value. - -### HasTags - -`func (o *WirelessLANGroup) HasTags() bool` - -HasTags returns a boolean if a field has been set. - -### GetCustomFields - -`func (o *WirelessLANGroup) GetCustomFields() map[string]interface{}` - -GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. - -### GetCustomFieldsOk - -`func (o *WirelessLANGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` - -GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCustomFields - -`func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{})` - -SetCustomFields sets CustomFields field to given value. - -### HasCustomFields - -`func (o *WirelessLANGroup) HasCustomFields() bool` - -HasCustomFields returns a boolean if a field has been set. - -### GetCreated - -`func (o *WirelessLANGroup) GetCreated() time.Time` - -GetCreated returns the Created field if non-nil, zero value otherwise. - -### GetCreatedOk - -`func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool)` - -GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetCreated - -`func (o *WirelessLANGroup) SetCreated(v time.Time)` - -SetCreated sets Created field to given value. - - -### SetCreatedNil - -`func (o *WirelessLANGroup) SetCreatedNil(b bool)` - - SetCreatedNil sets the value for Created to be an explicit nil - -### UnsetCreated -`func (o *WirelessLANGroup) UnsetCreated()` - -UnsetCreated ensures that no value is present for Created, not even an explicit nil -### GetLastUpdated - -`func (o *WirelessLANGroup) GetLastUpdated() time.Time` - -GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. - -### GetLastUpdatedOk - -`func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool)` - -GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetLastUpdated - -`func (o *WirelessLANGroup) SetLastUpdated(v time.Time)` - -SetLastUpdated sets LastUpdated field to given value. - - -### SetLastUpdatedNil - -`func (o *WirelessLANGroup) SetLastUpdatedNil(b bool)` - - SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil - -### UnsetLastUpdated -`func (o *WirelessLANGroup) UnsetLastUpdated()` - -UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetWirelesslanCount `func (o *WirelessLANGroup) GetWirelesslanCount() int32` diff --git a/docs/WirelessLANRequest.md b/docs/WirelessLANRequest.md index b4617be51..84671d664 100644 --- a/docs/WirelessLANRequest.md +++ b/docs/WirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` +`func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` +`func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` +`func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLANRequest) GetVlan() BriefVLANRequest` +`func (o *WirelessLANRequest) GetVlan() VLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` +`func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest)` +`func (o *WirelessLANRequest) SetVlan(v VLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLANRequest) GetTenant() BriefTenantRequest` +`func (o *WirelessLANRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest)` +`func (o *WirelessLANRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLink.md b/docs/WirelessLink.md index e1f980a0e..9f446e21f 100644 --- a/docs/WirelessLink.md +++ b/docs/WirelessLink.md @@ -6,18 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] **Display** | **string** | | [readonly] -**InterfaceA** | [**BriefInterface**](BriefInterface.md) | | -**InterfaceB** | [**BriefInterface**](BriefInterface.md) | | +**InterfaceA** | [**Interface**](Interface.md) | | +**InterfaceB** | [**Interface**](Interface.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**WirelessLinkStatus**](WirelessLinkStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] -**Distance** | Pointer to **NullableFloat64** | | [optional] -**DistanceUnit** | Pointer to [**NullableWirelessLinkDistanceUnit**](WirelessLinkDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -29,7 +26,7 @@ Name | Type | Description | Notes ### NewWirelessLink -`func NewWirelessLink(id int32, url string, displayUrl string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` +`func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` NewWirelessLink instantiates a new WirelessLink object This constructor will assign default values to properties that have it defined, @@ -84,26 +81,6 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplayUrl - -`func (o *WirelessLink) GetDisplayUrl() string` - -GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. - -### GetDisplayUrlOk - -`func (o *WirelessLink) GetDisplayUrlOk() (*string, bool)` - -GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDisplayUrl - -`func (o *WirelessLink) SetDisplayUrl(v string)` - -SetDisplayUrl sets DisplayUrl field to given value. - - ### GetDisplay `func (o *WirelessLink) GetDisplay() string` @@ -126,40 +103,40 @@ SetDisplay sets Display field to given value. ### GetInterfaceA -`func (o *WirelessLink) GetInterfaceA() BriefInterface` +`func (o *WirelessLink) GetInterfaceA() Interface` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool)` +`func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLink) SetInterfaceA(v BriefInterface)` +`func (o *WirelessLink) SetInterfaceA(v Interface)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLink) GetInterfaceB() BriefInterface` +`func (o *WirelessLink) GetInterfaceB() Interface` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool)` +`func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLink) SetInterfaceB(v BriefInterface)` +`func (o *WirelessLink) SetInterfaceB(v Interface)` SetInterfaceB sets InterfaceB field to given value. @@ -191,20 +168,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLink) GetStatus() CableStatus` +`func (o *WirelessLink) GetStatus() WirelessLinkStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLink) GetStatusOk() (*CableStatus, bool)` +`func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLink) SetStatus(v CableStatus)` +`func (o *WirelessLink) SetStatus(v WirelessLinkStatus)` SetStatus sets Status field to given value. @@ -216,20 +193,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLink) GetTenant() BriefTenant` +`func (o *WirelessLink) GetTenant() Tenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool)` +`func (o *WirelessLink) GetTenantOk() (*Tenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLink) SetTenant(v BriefTenant)` +`func (o *WirelessLink) SetTenant(v Tenant)` SetTenant sets Tenant field to given value. @@ -324,76 +301,6 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. -### GetDistance - -`func (o *WirelessLink) GetDistance() float64` - -GetDistance returns the Distance field if non-nil, zero value otherwise. - -### GetDistanceOk - -`func (o *WirelessLink) GetDistanceOk() (*float64, bool)` - -GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistance - -`func (o *WirelessLink) SetDistance(v float64)` - -SetDistance sets Distance field to given value. - -### HasDistance - -`func (o *WirelessLink) HasDistance() bool` - -HasDistance returns a boolean if a field has been set. - -### SetDistanceNil - -`func (o *WirelessLink) SetDistanceNil(b bool)` - - SetDistanceNil sets the value for Distance to be an explicit nil - -### UnsetDistance -`func (o *WirelessLink) UnsetDistance()` - -UnsetDistance ensures that no value is present for Distance, not even an explicit nil -### GetDistanceUnit - -`func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit` - -GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. - -### GetDistanceUnitOk - -`func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool)` - -GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistanceUnit - -`func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit)` - -SetDistanceUnit sets DistanceUnit field to given value. - -### HasDistanceUnit - -`func (o *WirelessLink) HasDistanceUnit() bool` - -HasDistanceUnit returns a boolean if a field has been set. - -### SetDistanceUnitNil - -`func (o *WirelessLink) SetDistanceUnitNil(b bool)` - - SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil - -### UnsetDistanceUnit -`func (o *WirelessLink) UnsetDistanceUnit()` - -UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLink) GetDescription() string` diff --git a/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md index 4cc414500..cbb26cae5 100644 --- a/docs/WirelessLinkRequest.md +++ b/docs/WirelessLinkRequest.md @@ -4,16 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | -**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] -**Distance** | Pointer to **NullableFloat64** | | [optional] -**DistanceUnit** | Pointer to [**NullableWirelessLinkRequestDistanceUnit**](WirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -23,7 +21,7 @@ Name | Type | Description | Notes ### NewWirelessLinkRequest -`func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WirelessLinkRequest` +`func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WirelessLinkRequest` NewWirelessLinkRequest instantiates a new WirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -40,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -105,20 +103,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLinkRequest) GetStatus() CableStatusValue` +`func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` +`func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLinkRequest) SetStatus(v CableStatusValue)` +`func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` SetStatus sets Status field to given value. @@ -130,20 +128,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest` +`func (o *WirelessLinkRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest)` +`func (o *WirelessLinkRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -238,76 +236,6 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. -### GetDistance - -`func (o *WirelessLinkRequest) GetDistance() float64` - -GetDistance returns the Distance field if non-nil, zero value otherwise. - -### GetDistanceOk - -`func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool)` - -GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistance - -`func (o *WirelessLinkRequest) SetDistance(v float64)` - -SetDistance sets Distance field to given value. - -### HasDistance - -`func (o *WirelessLinkRequest) HasDistance() bool` - -HasDistance returns a boolean if a field has been set. - -### SetDistanceNil - -`func (o *WirelessLinkRequest) SetDistanceNil(b bool)` - - SetDistanceNil sets the value for Distance to be an explicit nil - -### UnsetDistance -`func (o *WirelessLinkRequest) UnsetDistance()` - -UnsetDistance ensures that no value is present for Distance, not even an explicit nil -### GetDistanceUnit - -`func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit` - -GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. - -### GetDistanceUnitOk - -`func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool)` - -GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistanceUnit - -`func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit)` - -SetDistanceUnit sets DistanceUnit field to given value. - -### HasDistanceUnit - -`func (o *WirelessLinkRequest) HasDistanceUnit() bool` - -HasDistanceUnit returns a boolean if a field has been set. - -### SetDistanceUnitNil - -`func (o *WirelessLinkRequest) SetDistanceUnitNil(b bool)` - - SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil - -### UnsetDistanceUnit -`func (o *WirelessLinkRequest) UnsetDistanceUnit()` - -UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLinkRequest) GetDescription() string` diff --git a/docs/WritableAggregateRequest.md b/docs/WritableAggregateRequest.md index cbcd91bcd..169807729 100644 --- a/docs/WritableAggregateRequest.md +++ b/docs/WritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Rir** | [**RIRRequest**](RIRRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableAggregateRequest -`func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest, ) *WritableAggregateRequest` +`func NewWritableAggregateRequest(prefix string, rir RIRRequest, ) *WritableAggregateRequest` NewWritableAggregateRequest instantiates a new WritableAggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *WritableAggregateRequest) GetRir() BriefRIRRequest` +`func (o *WritableAggregateRequest) GetRir() RIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` +`func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest)` +`func (o *WritableAggregateRequest) SetRir(v RIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest` +`func (o *WritableAggregateRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableAggregateRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md index cb8fa67e5..aef093b34 100644 --- a/docs/WritableCableRequest.md +++ b/docs/WritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] +**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *WritableCableRequest) GetType() CableType` +`func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)` +`func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCableRequest) SetType(v CableType)` +`func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *WritableCableRequest) GetStatus() CableStatusValue` +`func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` +`func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCableRequest) SetStatus(v CableStatusValue)` +`func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCableRequest) GetTenant() BriefTenantRequest` +`func (o *WritableCableRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCableRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableCableRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue` +`func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` +`func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` +`func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md index 8382f981d..02a8ad3f7 100644 --- a/docs/WritableCircuitRequest.md +++ b/docs/WritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | -**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | -**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] -**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | -**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Provider** | [**ProviderRequest**](ProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] +**Type** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | +**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,13 +17,12 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] -**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewWritableCircuitRequest -`func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *WritableCircuitRequest` +`func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest, ) *WritableCircuitRequest` NewWritableCircuitRequest instantiates a new WritableCircuitRequest object This constructor will assign default values to properties that have it defined, @@ -60,40 +59,40 @@ SetCid sets Cid field to given value. ### GetProvider -`func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest` +`func (o *WritableCircuitRequest) GetProvider() ProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest)` +`func (o *WritableCircuitRequest) SetProvider(v ProviderRequest)` SetProvider sets Provider field to given value. ### GetProviderAccount -`func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` +`func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` +`func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -115,40 +114,40 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest` +`func (o *WritableCircuitRequest) GetType() CircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` +`func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` +`func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest)` SetType sets Type field to given value. ### GetStatus -`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue` +`func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` +`func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue)` +`func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` SetStatus sets Status field to given value. @@ -160,20 +159,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest` +`func (o *WritableCircuitRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableCircuitRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -398,31 +397,6 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. -### GetAssignments - -`func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` - -GetAssignments returns the Assignments field if non-nil, zero value otherwise. - -### GetAssignmentsOk - -`func (o *WritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` - -GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAssignments - -`func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` - -SetAssignments sets Assignments field to given value. - -### HasAssignments - -`func (o *WritableCircuitRequest) HasAssignments() bool` - -HasAssignments 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/docs/WritableClusterRequest.md b/docs/WritableClusterRequest.md index d25e42949..430b5cf50 100644 --- a/docs/WritableClusterRequest.md +++ b/docs/WritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | -**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Type** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableClusterRequest -`func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest, ) *WritableClusterRequest` +`func NewWritableClusterRequest(name string, type_ ClusterTypeRequest, ) *WritableClusterRequest` NewWritableClusterRequest instantiates a new WritableClusterRequest object This constructor will assign default values to properties that have it defined, @@ -56,40 +56,40 @@ SetName sets Name field to given value. ### GetType -`func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest` +`func (o *WritableClusterRequest) GetType() ClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` +`func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest)` +`func (o *WritableClusterRequest) SetType(v ClusterTypeRequest)` SetType sets Type field to given value. ### GetGroup -`func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest` +`func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` +`func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` +`func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest)` SetGroup sets Group field to given value. @@ -111,20 +111,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *WritableClusterRequest) GetStatus() ClusterStatusValue` +`func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` +`func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue)` +`func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` SetStatus sets Status field to given value. @@ -136,20 +136,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableClusterRequest) GetTenant() BriefTenantRequest` +`func (o *WritableClusterRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableClusterRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -171,20 +171,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *WritableClusterRequest) GetSite() BriefSiteRequest` +`func (o *WritableClusterRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableClusterRequest) SetSite(v BriefSiteRequest)` +`func (o *WritableClusterRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. diff --git a/docs/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md index 9b0b4a502..0ba0c6885 100644 --- a/docs/WritableConsolePortRequest.md +++ b/docs/WritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsolePortRequest -`func NewWritableConsolePortRequest(device BriefDeviceRequest, name string, ) *WritableConsolePortRequest` +`func NewWritableConsolePortRequest(device DeviceRequest, name string, ) *WritableConsolePortRequest` NewWritableConsolePortRequest instantiates a new WritableConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableConsolePortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest` +`func (o *WritableConsolePortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest)` +`func (o *WritableConsolePortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md index b675fc60b..3799557e8 100644 --- a/docs/WritableConsolePortTemplateRequest.md +++ b/docs/WritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md index 82d557c25..6af4a78aa 100644 --- a/docs/WritableConsoleServerPortRequest.md +++ b/docs/WritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsoleServerPortRequest -`func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *WritableConsoleServerPortRequest` +`func NewWritableConsoleServerPortRequest(device DeviceRequest, name string, ) *WritableConsoleServerPortRequest` NewWritableConsoleServerPortRequest instantiates a new WritableConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest` +`func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` +`func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md index 122f48c6a..e35a4b9ec 100644 --- a/docs/WritableConsoleServerPortTemplateRequest.md +++ b/docs/WritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md index dc94d6b6f..678cd6e27 100644 --- a/docs/WritableContactAssignmentRequest.md +++ b/docs/WritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | -**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] +**Contact** | [**ContactRequest**](ContactRequest.md) | | +**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableContactAssignmentRequest -`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *WritableContactAssignmentRequest` +`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *WritableContactAssignmentRequest` NewWritableContactAssignmentRequest instantiates a new WritableContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest` +`func (o *WritableContactAssignmentRequest) GetContact() ContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest)` +`func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` +`func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` +`func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` +`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` +`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` +`func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md index 2e40f4558..f82e51b73 100644 --- a/docs/WritableCustomFieldRequest.md +++ b/docs/WritableCustomFieldRequest.md @@ -11,20 +11,18 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] -**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] +**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] -**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -246,31 +244,6 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. -### GetUnique - -`func (o *WritableCustomFieldRequest) GetUnique() bool` - -GetUnique returns the Unique field if non-nil, zero value otherwise. - -### GetUniqueOk - -`func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` - -GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetUnique - -`func (o *WritableCustomFieldRequest) SetUnique(v bool)` - -SetUnique sets Unique field to given value. - -### HasUnique - -`func (o *WritableCustomFieldRequest) HasUnique() bool` - -HasUnique returns a boolean if a field has been set. - ### GetSearchWeight `func (o *WritableCustomFieldRequest) GetSearchWeight() int32` @@ -431,41 +404,6 @@ HasDefault returns a boolean if a field has been set. `func (o *WritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil -### GetRelatedObjectFilter - -`func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` - -GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. - -### GetRelatedObjectFilterOk - -`func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` - -GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetRelatedObjectFilter - -`func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` - -SetRelatedObjectFilter sets RelatedObjectFilter field to given value. - -### HasRelatedObjectFilter - -`func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool` - -HasRelatedObjectFilter returns a boolean if a field has been set. - -### SetRelatedObjectFilterNil - -`func (o *WritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` - - SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil - -### UnsetRelatedObjectFilter -`func (o *WritableCustomFieldRequest) UnsetRelatedObjectFilter()` - -UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *WritableCustomFieldRequest) GetWeight() int32` @@ -588,20 +526,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` +`func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` +`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` +`func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/WritableDataSourceRequest.md b/docs/WritableDataSourceRequest.md index aa37a1cc4..02b680911 100644 --- a/docs/WritableDataSourceRequest.md +++ b/docs/WritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] -**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -143,6 +143,31 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *WritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetParameters `func (o *WritableDataSourceRequest) GetParameters() interface{}` @@ -203,31 +228,6 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. -### GetComments - -`func (o *WritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *WritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *WritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetCustomFields `func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md index 53aefbe6c..14fb74555 100644 --- a/docs/WritableDeviceTypeRequest.md +++ b/docs/WritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | -**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewWritableDeviceTypeRequest -`func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` +`func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` NewWritableDeviceTypeRequest instantiates a new WritableDeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -44,40 +44,40 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. ### GetDefaultPlatform -`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` +`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -324,20 +324,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` +`func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` +`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` +`func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md index 694be056b..0935ed356 100644 --- a/docs/WritableDeviceWithConfigContextRequest.md +++ b/docs/WritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | -**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] +**Site** | [**SiteRequest**](SiteRequest.md) | | +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | [**RackFace1**](RackFace1.md) | | **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewWritableDeviceWithConfigContextRequest -`func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` +`func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -525,20 +525,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -560,20 +560,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -595,20 +595,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -630,20 +630,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` SetCluster sets Cluster field to given value. @@ -665,20 +665,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -820,20 +820,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md index bcd1ad37f..d091d02bf 100644 --- a/docs/WritableEventRuleRequest.md +++ b/docs/WritableEventRuleRequest.md @@ -6,8 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | +**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] +**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] +**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] +**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] +**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] -**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | **string** | | @@ -20,7 +24,7 @@ Name | Type | Description | Notes ### NewWritableEventRuleRequest -`func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string, ) *WritableEventRuleRequest` +`func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest` NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -75,6 +79,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTypeCreate + +`func (o *WritableEventRuleRequest) GetTypeCreate() bool` + +GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. + +### GetTypeCreateOk + +`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` + +GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeCreate + +`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)` + +SetTypeCreate sets TypeCreate field to given value. + +### HasTypeCreate + +`func (o *WritableEventRuleRequest) HasTypeCreate() bool` + +HasTypeCreate returns a boolean if a field has been set. + +### GetTypeUpdate + +`func (o *WritableEventRuleRequest) GetTypeUpdate() bool` + +GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. + +### GetTypeUpdateOk + +`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` + +GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeUpdate + +`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)` + +SetTypeUpdate sets TypeUpdate field to given value. + +### HasTypeUpdate + +`func (o *WritableEventRuleRequest) HasTypeUpdate() bool` + +HasTypeUpdate returns a boolean if a field has been set. + +### GetTypeDelete + +`func (o *WritableEventRuleRequest) GetTypeDelete() bool` + +GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. + +### GetTypeDeleteOk + +`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` + +GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeDelete + +`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)` + +SetTypeDelete sets TypeDelete field to given value. + +### HasTypeDelete + +`func (o *WritableEventRuleRequest) HasTypeDelete() bool` + +HasTypeDelete returns a boolean if a field has been set. + +### GetTypeJobStart + +`func (o *WritableEventRuleRequest) GetTypeJobStart() bool` + +GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. + +### GetTypeJobStartOk + +`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` + +GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobStart + +`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)` + +SetTypeJobStart sets TypeJobStart field to given value. + +### HasTypeJobStart + +`func (o *WritableEventRuleRequest) HasTypeJobStart() bool` + +HasTypeJobStart returns a boolean if a field has been set. + +### GetTypeJobEnd + +`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool` + +GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. + +### GetTypeJobEndOk + +`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` + +GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTypeJobEnd + +`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)` + +SetTypeJobEnd sets TypeJobEnd field to given value. + +### HasTypeJobEnd + +`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool` + +HasTypeJobEnd returns a boolean if a field has been set. + ### GetEnabled `func (o *WritableEventRuleRequest) GetEnabled() bool` @@ -100,26 +229,6 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. -### GetEventTypes - -`func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` - -GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. - -### GetEventTypesOk - -`func (o *WritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` - -GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetEventTypes - -`func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` - -SetEventTypes sets EventTypes field to given value. - - ### GetConditions `func (o *WritableEventRuleRequest) GetConditions() interface{}` diff --git a/docs/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md index 303853918..42fc87826 100644 --- a/docs/WritableFrontPortRequest.md +++ b/docs/WritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortRequest -`func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` +`func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` NewWritableFrontPortRequest instantiates a new WritableFrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableFrontPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest` +`func (o *WritableFrontPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest)` +`func (o *WritableFrontPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md index 3aa02af78..8806917ff 100644 --- a/docs/WritableFrontPortTemplateRequest.md +++ b/docs/WritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | +**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortTemplateRequest -`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` +`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` NewWritableFrontPortTemplateRequest instantiates a new WritableFrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` +`func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` +`func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md index ca192ccab..6eaaca69a 100644 --- a/docs/WritableIPAddressRequest.md +++ b/docs/WritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -59,20 +59,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest` +`func (o *WritableIPAddressRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest)` +`func (o *WritableIPAddressRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -94,20 +94,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest` +`func (o *WritableIPAddressRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableIPAddressRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md index 186e2cb36..5edb8406d 100644 --- a/docs/WritableIPRangeRequest.md +++ b/docs/WritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest` +`func (o *WritableIPRangeRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest)` +`func (o *WritableIPRangeRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest` +`func (o *WritableIPRangeRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableIPRangeRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest` +`func (o *WritableIPRangeRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest)` +`func (o *WritableIPRangeRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md index 11cd4baa0..f4d30c4c1 100644 --- a/docs/WritableIPSecProfileRequest.md +++ b/docs/WritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | -**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | +**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | +**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableIPSecProfileRequest -`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *WritableIPSecProfileRequest` +`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *WritableIPSecProfileRequest` NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md index f5eb17d11..d0870300e 100644 --- a/docs/WritableInterfaceRequest.md +++ b/docs/WritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewWritableInterfaceRequest -`func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` +`func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` NewWritableInterfaceRequest instantiates a new WritableInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableInterfaceRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest` +`func (o *WritableInterfaceRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest)` +`func (o *WritableInterfaceRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` +`func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` +`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` +`func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest` +`func (o *WritableInterfaceRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest)` +`func (o *WritableInterfaceRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md index 503f4e400..e5f0f4deb 100644 --- a/docs/WritableInterfaceTemplateRequest.md +++ b/docs/WritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md index df3aa2b33..d8d0852be 100644 --- a/docs/WritableL2VPNRequest.md +++ b/docs/WritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | +**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | | **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableL2VPNRequest -`func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue, ) *WritableL2VPNRequest` +`func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *WritableL2VPNRequest` NewWritableL2VPNRequest instantiates a new WritableL2VPNRequest object This constructor will assign default values to properties that have it defined, @@ -112,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue` +`func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` +`func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` +`func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue)` SetType sets Type field to given value. @@ -232,20 +232,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest` +`func (o *WritableL2VPNRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableL2VPNRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableLocationRequest.md b/docs/WritableLocationRequest.md index 1e4c81e9b..dd699d818 100644 --- a/docs/WritableLocationRequest.md +++ b/docs/WritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Site** | [**SiteRequest**](SiteRequest.md) | | **Parent** | **NullableInt32** | | -**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableLocationRequest -`func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32, ) *WritableLocationRequest` +`func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32, ) *WritableLocationRequest` NewWritableLocationRequest instantiates a new WritableLocationRequest object This constructor will assign default values to properties that have it defined, @@ -76,20 +76,20 @@ SetSlug sets Slug field to given value. ### GetSite -`func (o *WritableLocationRequest) GetSite() BriefSiteRequest` +`func (o *WritableLocationRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableLocationRequest) SetSite(v BriefSiteRequest)` +`func (o *WritableLocationRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -126,20 +126,20 @@ SetParent sets Parent field to given value. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *WritableLocationRequest) GetStatus() LocationStatusValue` +`func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` +`func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableLocationRequest) SetStatus(v LocationStatusValue)` +`func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` SetStatus sets Status field to given value. @@ -151,20 +151,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableLocationRequest) GetTenant() BriefTenantRequest` +`func (o *WritableLocationRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableLocationRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableModuleRequest.md b/docs/WritableModuleRequest.md index a815e5e6b..95f95384c 100644 --- a/docs/WritableModuleRequest.md +++ b/docs/WritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **ModuleBay** | **int32** | | -**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | -**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**ModuleType** | [**ModuleTypeRequest**](ModuleTypeRequest.md) | | +**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleRequest -`func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest, ) *WritableModuleRequest` +`func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest, ) *WritableModuleRequest` NewWritableModuleRequest instantiates a new WritableModuleRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableModuleRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableModuleRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -76,40 +76,40 @@ SetModuleBay sets ModuleBay field to given value. ### GetModuleType -`func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. ### GetStatus -`func (o *WritableModuleRequest) GetStatus() ModuleStatusValue` +`func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` +`func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue)` +`func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` SetStatus sets Status field to given value. diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md index 013d928c9..ada1a71f7 100644 --- a/docs/WritableModuleTypeRequest.md +++ b/docs/WritableModuleTypeRequest.md @@ -4,12 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | **Model** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] -**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +18,7 @@ Name | Type | Description | Notes ### NewWritableModuleTypeRequest -`func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *WritableModuleTypeRequest` +`func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *WritableModuleTypeRequest` NewWritableModuleTypeRequest instantiates a new WritableModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` +`func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` +`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` +`func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -99,31 +98,6 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. -### GetAirflow - -`func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *WritableModuleTypeRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - ### GetWeight `func (o *WritableModuleTypeRequest) GetWeight() float64` @@ -161,20 +135,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` +`func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` +`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` +`func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md index c7ee1dfc9..f8ee53481 100644 --- a/docs/WritablePowerFeedRequest.md +++ b/docs/WritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] +**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewWritablePowerFeedRequest -`func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *WritablePowerFeedRequest` +`func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *WritablePowerFeedRequest` NewWritablePowerFeedRequest instantiates a new WritablePowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` +`func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` +`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` +`func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest` +`func (o *WritablePowerFeedRequest) GetRack() RackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` +`func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest)` +`func (o *WritablePowerFeedRequest) SetRack(v RackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest` +`func (o *WritablePowerFeedRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md index dcba99ba5..978dfe761 100644 --- a/docs/WritablePowerOutletRequest.md +++ b/docs/WritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerOutletRequest -`func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string, ) *WritablePowerOutletRequest` +`func NewWritablePowerOutletRequest(device DeviceRequest, name string, ) *WritablePowerOutletRequest` NewWritablePowerOutletRequest instantiates a new WritablePowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest` +`func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest` +`func (o *WritablePowerOutletRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest)` +`func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. @@ -162,20 +162,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` +`func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` +`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` +`func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md index eae1aa815..196e5721a 100644 --- a/docs/WritablePowerOutletTemplateRequest.md +++ b/docs/WritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -174,20 +174,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md index 914481d74..55d032308 100644 --- a/docs/WritablePowerPortRequest.md +++ b/docs/WritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerPortRequest -`func NewWritablePowerPortRequest(device BriefDeviceRequest, name string, ) *WritablePowerPortRequest` +`func NewWritablePowerPortRequest(device DeviceRequest, name string, ) *WritablePowerPortRequest` NewWritablePowerPortRequest instantiates a new WritablePowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest` +`func (o *WritablePowerPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest` +`func (o *WritablePowerPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest)` +`func (o *WritablePowerPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md index 54d00f9c0..75edd9950 100644 --- a/docs/WritablePowerPortTemplateRequest.md +++ b/docs/WritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md index 9ff1ed781..87080ca95 100644 --- a/docs/WritablePrefixRequest.md +++ b/docs/WritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *WritablePrefixRequest) GetSite() BriefSiteRequest` +`func (o *WritablePrefixRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest)` +`func (o *WritablePrefixRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest` +`func (o *WritablePrefixRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest)` +`func (o *WritablePrefixRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest` +`func (o *WritablePrefixRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritablePrefixRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest` +`func (o *WritablePrefixRequest) GetVlan() VLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` +`func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest)` +`func (o *WritablePrefixRequest) SetVlan(v VLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritablePrefixRequest) GetRole() BriefRoleRequest` +`func (o *WritablePrefixRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest)` +`func (o *WritablePrefixRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md index 864bdfd6a..a9a7cf6f5 100644 --- a/docs/WritableRackRequest.md +++ b/docs/WritableRackRequest.md @@ -6,27 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | -**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | [**SiteRequest**](SiteRequest.md) | | +**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] -**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] +**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] +**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] -**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -36,7 +34,7 @@ Name | Type | Description | Notes ### NewWritableRackRequest -`func NewWritableRackRequest(name string, site BriefSiteRequest, ) *WritableRackRequest` +`func NewWritableRackRequest(name string, site SiteRequest, ) *WritableRackRequest` NewWritableRackRequest instantiates a new WritableRackRequest object This constructor will assign default values to properties that have it defined, @@ -108,40 +106,40 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *WritableRackRequest) GetSite() BriefSiteRequest` +`func (o *WritableRackRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableRackRequest) SetSite(v BriefSiteRequest)` +`func (o *WritableRackRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableRackRequest) GetLocation() BriefLocationRequest` +`func (o *WritableRackRequest) GetLocation() LocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` +`func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableRackRequest) SetLocation(v BriefLocationRequest)` +`func (o *WritableRackRequest) SetLocation(v LocationRequest)` SetLocation sets Location field to given value. @@ -163,20 +161,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *WritableRackRequest) GetTenant() BriefTenantRequest` +`func (o *WritableRackRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableRackRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableRackRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -223,20 +221,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableRackRequest) GetRole() BriefRackRoleRequest` +`func (o *WritableRackRequest) GetRole() RackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` +`func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest)` +`func (o *WritableRackRequest) SetRole(v RackRoleRequest)` SetRole sets Role field to given value. @@ -316,65 +314,30 @@ HasAssetTag returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetRackType +### GetType -`func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest` +`func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType` -GetRackType returns the RackType field if non-nil, zero value otherwise. +GetType returns the Type field if non-nil, zero value otherwise. -### GetRackTypeOk +### GetTypeOk -`func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` +`func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` -GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetRackType +### SetType -`func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest)` +`func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType)` -SetRackType sets RackType field to given value. +SetType sets Type field to given value. -### HasRackType +### HasType -`func (o *WritableRackRequest) HasRackType() bool` +`func (o *WritableRackRequest) HasType() bool` -HasRackType returns a boolean if a field has been set. - -### SetRackTypeNil - -`func (o *WritableRackRequest) SetRackTypeNil(b bool)` - - SetRackTypeNil sets the value for RackType to be an explicit nil - -### UnsetRackType -`func (o *WritableRackRequest) UnsetRackType()` - -UnsetRackType ensures that no value is present for RackType, not even an explicit nil -### GetFormFactor - -`func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` - -GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. - -### GetFormFactorOk - -`func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` - -GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetFormFactor - -`func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` - -SetFormFactor sets FormFactor field to given value. - -### HasFormFactor - -`func (o *WritableRackRequest) HasFormFactor() bool` - -HasFormFactor returns a boolean if a field has been set. +HasType returns a boolean if a field has been set. ### GetWidth @@ -523,20 +486,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` +`func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` +`func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` +`func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` SetWeightUnit sets WeightUnit field to given value. @@ -701,31 +664,6 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil -### GetAirflow - -`func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` - -GetAirflow returns the Airflow field if non-nil, zero value otherwise. - -### GetAirflowOk - -`func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` - -GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetAirflow - -`func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` - -SetAirflow sets Airflow field to given value. - -### HasAirflow - -`func (o *WritableRackRequest) HasAirflow() bool` - -HasAirflow returns a boolean if a field has been set. - ### GetDescription `func (o *WritableRackRequest) GetDescription() string` diff --git a/docs/WritableRearPortRequest.md b/docs/WritableRearPortRequest.md index 10050601f..5e366e7c5 100644 --- a/docs/WritableRearPortRequest.md +++ b/docs/WritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | -**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] +**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableRearPortRequest -`func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` +`func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` NewWritableRearPortRequest instantiates a new WritableRearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableRearPortRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableRearPortRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableRearPortRequest) GetModule() BriefModuleRequest` +`func (o *WritableRearPortRequest) GetModule() ModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` +`func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest)` +`func (o *WritableRearPortRequest) SetModule(v ModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md index 4e3c43248..075a046aa 100644 --- a/docs/WritableRearPortTemplateRequest.md +++ b/docs/WritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableServiceRequest.md b/docs/WritableServiceRequest.md index 2a2d4015e..f4617ee50 100644 --- a/docs/WritableServiceRequest.md +++ b/docs/WritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableServiceRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableServiceRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/WritableSiteRequest.md b/docs/WritableSiteRequest.md index fbb616a48..d5fe57fa6 100644 --- a/docs/WritableSiteRequest.md +++ b/docs/WritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] -**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] +**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ SetSlug sets Slug field to given value. ### GetStatus -`func (o *WritableSiteRequest) GetStatus() LocationStatusValue` +`func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` +`func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableSiteRequest) SetStatus(v LocationStatusValue)` +`func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` SetStatus sets Status field to given value. @@ -108,20 +108,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *WritableSiteRequest) GetRegion() BriefRegionRequest` +`func (o *WritableSiteRequest) GetRegion() RegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` +`func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest)` +`func (o *WritableSiteRequest) SetRegion(v RegionRequest)` SetRegion sets Region field to given value. @@ -143,20 +143,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest` +`func (o *WritableSiteRequest) GetGroup() SiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` +`func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` +`func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest)` SetGroup sets Group field to given value. @@ -178,20 +178,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *WritableSiteRequest) GetTenant() BriefTenantRequest` +`func (o *WritableSiteRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableSiteRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelRequest.md b/docs/WritableTunnelRequest.md index 68b5e21ad..074647508 100644 --- a/docs/WritableTunnelRequest.md +++ b/docs/WritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] **Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -82,20 +82,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` +`func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` +`func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` +`func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest)` SetGroup sets Group field to given value. @@ -137,20 +137,20 @@ SetEncapsulation sets Encapsulation field to given value. ### GetIpsecProfile -`func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` +`func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` +`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` +`func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -172,20 +172,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest` +`func (o *WritableTunnelRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableTunnelRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md index fc0483773..99cb6a025 100644 --- a/docs/WritableTunnelTerminationRequest.md +++ b/docs/WritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | +**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableTunnelTerminationRequest -`func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` +`func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` +`func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` +`func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -128,20 +128,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` +`func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` +`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/WritableVLANRequest.md b/docs/WritableVLANRequest.md index cfe381a06..e9b762013 100644 --- a/docs/WritableVLANRequest.md +++ b/docs/WritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *WritableVLANRequest) GetSite() BriefSiteRequest` +`func (o *WritableVLANRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVLANRequest) SetSite(v BriefSiteRequest)` +`func (o *WritableVLANRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest` +`func (o *WritableVLANRequest) GetGroup() VLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` +`func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` +`func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *WritableVLANRequest) GetTenant() BriefTenantRequest` +`func (o *WritableVLANRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableVLANRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -207,20 +207,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableVLANRequest) GetRole() BriefRoleRequest` +`func (o *WritableVLANRequest) GetRole() RoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` +`func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVLANRequest) SetRole(v BriefRoleRequest)` +`func (o *WritableVLANRequest) SetRole(v RoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md index a617cbe51..9177b40ec 100644 --- a/docs/WritableVMInterfaceRequest.md +++ b/docs/WritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | +**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableVMInterfaceRequest -`func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` +`func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` NewWritableVMInterfaceRequest instantiates a new WritableVMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` +`func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` +`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` +`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest` +`func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` +`func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md index a945ebeae..30df18d9a 100644 --- a/docs/WritableVirtualDeviceContextRequest.md +++ b/docs/WritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Device** | [**DeviceRequest**](DeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableVirtualDeviceContextRequest -`func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` +`func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` +`func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/WritableVirtualMachineWithConfigContextRequest.md b/docs/WritableVirtualMachineWithConfigContextRequest.md index c69283c3c..c0ebf4e16 100644 --- a/docs/WritableVirtualMachineWithConfigContextRequest.md +++ b/docs/WritableVirtualMachineWithConfigContextRequest.md @@ -5,22 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] -**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] -**Serial** | Pointer to **string** | | [optional] -**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -66,20 +65,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` SetStatus sets Status field to given value. @@ -91,20 +90,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` SetSite sets Site field to given value. @@ -126,20 +125,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` SetCluster sets Cluster field to given value. @@ -161,20 +160,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` SetDevice sets Device field to given value. @@ -194,47 +193,22 @@ HasDevice returns a boolean if a field has been set. `func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil -### GetSerial - -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string` - -GetSerial returns the Serial field if non-nil, zero value otherwise. - -### GetSerialOk - -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` - -GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetSerial - -`func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` - -SetSerial sets Serial field to given value. - -### HasSerial - -`func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool` - -HasSerial returns a boolean if a field has been set. - ### GetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` SetRole sets Role field to given value. @@ -256,20 +230,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -291,20 +265,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` SetPlatform sets Platform field to given value. @@ -326,20 +300,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -361,20 +335,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -551,20 +525,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableWirelessLANRequest.md b/docs/WritableWirelessLANRequest.md index 4da60fd33..2a85bd219 100644 --- a/docs/WritableWirelessLANRequest.md +++ b/docs/WritableWirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` +`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` +`func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` +`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest` +`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` +`func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` +`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest` +`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md index 0708fcc74..43c031946 100644 --- a/docs/WritableWirelessLinkRequest.md +++ b/docs/WritableWirelessLinkRequest.md @@ -4,16 +4,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | -**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] -**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] **AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] **AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] -**Distance** | Pointer to **NullableFloat64** | | [optional] -**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -23,7 +21,7 @@ Name | Type | Description | Notes ### NewWritableWirelessLinkRequest -`func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WritableWirelessLinkRequest` +`func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WritableWirelessLinkRequest` NewWritableWirelessLinkRequest instantiates a new WritableWirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -40,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -105,20 +103,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue` +`func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` +`func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue)` +`func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` SetStatus sets Status field to given value. @@ -130,20 +128,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest` +`func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` +`func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest)` SetTenant sets Tenant field to given value. @@ -238,66 +236,6 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. -### GetDistance - -`func (o *WritableWirelessLinkRequest) GetDistance() float64` - -GetDistance returns the Distance field if non-nil, zero value otherwise. - -### GetDistanceOk - -`func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` - -GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistance - -`func (o *WritableWirelessLinkRequest) SetDistance(v float64)` - -SetDistance sets Distance field to given value. - -### HasDistance - -`func (o *WritableWirelessLinkRequest) HasDistance() bool` - -HasDistance returns a boolean if a field has been set. - -### SetDistanceNil - -`func (o *WritableWirelessLinkRequest) SetDistanceNil(b bool)` - - SetDistanceNil sets the value for Distance to be an explicit nil - -### UnsetDistance -`func (o *WritableWirelessLinkRequest) UnsetDistance()` - -UnsetDistance ensures that no value is present for Distance, not even an explicit nil -### GetDistanceUnit - -`func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` - -GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. - -### GetDistanceUnitOk - -`func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` - -GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetDistanceUnit - -`func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` - -SetDistanceUnit sets DistanceUnit field to given value. - -### HasDistanceUnit - -`func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool` - -HasDistanceUnit returns a boolean if a field has been set. - ### GetDescription `func (o *WritableWirelessLinkRequest) GetDescription() string` diff --git a/model_aggregate.go b/model_aggregate.go index 6a6182c06..be5226a6e 100644 --- a/model_aggregate.go +++ b/model_aggregate.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,12 +23,11 @@ var _ MappedNullable = &Aggregate{} type Aggregate struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Family AggregateFamily `json:"family"` Prefix string `json:"prefix"` - Rir BriefRIR `json:"rir"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + Rir RIR `json:"rir"` + Tenant NullableTenant `json:"tenant,omitempty"` DateAdded NullableString `json:"date_added,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -45,11 +44,10 @@ type _Aggregate Aggregate // 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 NewAggregate(id int32, url string, displayUrl string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime) *Aggregate { +func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime) *Aggregate { this := Aggregate{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Prefix = prefix @@ -115,30 +113,6 @@ func (o *Aggregate) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Aggregate) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Aggregate) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Aggregate) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Aggregate) GetDisplay() string { if o == nil { @@ -212,9 +186,9 @@ func (o *Aggregate) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *Aggregate) GetRir() BriefRIR { +func (o *Aggregate) GetRir() RIR { if o == nil { - var ret BriefRIR + var ret RIR return ret } @@ -223,7 +197,7 @@ func (o *Aggregate) GetRir() BriefRIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *Aggregate) GetRirOk() (*BriefRIR, bool) { +func (o *Aggregate) GetRirOk() (*RIR, bool) { if o == nil { return nil, false } @@ -231,14 +205,14 @@ func (o *Aggregate) GetRirOk() (*BriefRIR, bool) { } // SetRir sets field value -func (o *Aggregate) SetRir(v BriefRIR) { +func (o *Aggregate) SetRir(v RIR) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Aggregate) GetTenant() BriefTenant { +func (o *Aggregate) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -247,7 +221,7 @@ func (o *Aggregate) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Aggregate) GetTenantOk() (*BriefTenant, bool) { +func (o *Aggregate) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -263,8 +237,8 @@ func (o *Aggregate) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Aggregate) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *Aggregate) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -513,7 +487,6 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -553,7 +526,6 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "family", "prefix", @@ -591,7 +563,6 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_aggregate_family.go b/model_aggregate_family.go index 761f477b5..c022e4c41 100644 --- a/model_aggregate_family.go +++ b/model_aggregate_family.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go index 0ff05d1c1..6702e6180 100644 --- a/model_aggregate_family_label.go +++ b/model_aggregate_family_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go index 17060e9c2..63ca9026f 100644 --- a/model_aggregate_family_value.go +++ b/model_aggregate_family_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_request.go b/model_aggregate_request.go index 47bf759f6..886f759d6 100644 --- a/model_aggregate_request.go +++ b/model_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &AggregateRequest{} // AggregateRequest Adds support for custom fields and tags. type AggregateRequest struct { - Prefix string `json:"prefix"` - Rir BriefRIRRequest `json:"rir"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir RIRRequest `json:"rir"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _AggregateRequest AggregateRequest // 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 NewAggregateRequest(prefix string, rir BriefRIRRequest) *AggregateRequest { +func NewAggregateRequest(prefix string, rir RIRRequest) *AggregateRequest { this := AggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *AggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *AggregateRequest) GetRir() BriefRIRRequest { +func (o *AggregateRequest) GetRir() RIRRequest { if o == nil { - var ret BriefRIRRequest + var ret RIRRequest return ret } @@ -88,7 +88,7 @@ func (o *AggregateRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { } // SetRir sets field value -func (o *AggregateRequest) SetRir(v BriefRIRRequest) { +func (o *AggregateRequest) SetRir(v RIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AggregateRequest) GetTenant() BriefTenantRequest { +func (o *AggregateRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *AggregateRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *AggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *AggregateRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *AggregateRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn.go b/model_asn.go index de5917b21..971d63862 100644 --- a/model_asn.go +++ b/model_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,13 @@ var _ MappedNullable = &ASN{} // ASN Adds support for custom fields and tags. type ASN struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // 16- or 32-bit autonomous system number Asn int64 `json:"asn"` - Rir NullableBriefRIR `json:"rir,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + Rir NullableRIR `json:"rir,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -46,11 +45,10 @@ type _ASN ASN // 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 NewASN(id int32, url string, displayUrl string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { +func NewASN(id int32, url string, display string, asn int64, created NullableTime, lastUpdated NullableTime, siteCount int64, providerCount int64) *ASN { this := ASN{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Asn = asn this.Created = created @@ -116,30 +114,6 @@ func (o *ASN) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ASN) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ASN) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ASN) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ASN) GetDisplay() string { if o == nil { @@ -189,9 +163,9 @@ func (o *ASN) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetRir() BriefRIR { +func (o *ASN) GetRir() RIR { if o == nil || IsNil(o.Rir.Get()) { - var ret BriefRIR + var ret RIR return ret } return *o.Rir.Get() @@ -200,7 +174,7 @@ func (o *ASN) GetRir() BriefRIR { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetRirOk() (*BriefRIR, bool) { +func (o *ASN) GetRirOk() (*RIR, bool) { if o == nil { return nil, false } @@ -216,8 +190,8 @@ func (o *ASN) HasRir() bool { return false } -// SetRir gets a reference to the given NullableBriefRIR and assigns it to the Rir field. -func (o *ASN) SetRir(v BriefRIR) { +// SetRir gets a reference to the given NullableRIR and assigns it to the Rir field. +func (o *ASN) SetRir(v RIR) { o.Rir.Set(&v) } @@ -232,9 +206,9 @@ func (o *ASN) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetTenant() BriefTenant { +func (o *ASN) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -243,7 +217,7 @@ func (o *ASN) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetTenantOk() (*BriefTenant, bool) { +func (o *ASN) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -259,8 +233,8 @@ func (o *ASN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *ASN) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *ASN) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -514,7 +488,6 @@ func (o ASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["asn"] = o.Asn if o.Rir.IsSet() { @@ -554,7 +527,6 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "asn", "created", @@ -592,7 +564,6 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "asn") delete(additionalProperties, "rir") diff --git a/model_asn_range.go b/model_asn_range.go index eec2c3d7c..037e760ce 100644 --- a/model_asn_range.go +++ b/model_asn_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,13 @@ var _ MappedNullable = &ASNRange{} type ASNRange struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` - Rir BriefRIR `json:"rir"` + Rir RIR `json:"rir"` Start int64 `json:"start"` End int64 `json:"end"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -46,11 +45,10 @@ type _ASNRange ASNRange // 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 NewASNRange(id int32, url string, displayUrl string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { +func NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { this := ASNRange{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -119,30 +117,6 @@ func (o *ASNRange) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ASNRange) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ASNRange) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ASNRange) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ASNRange) GetDisplay() string { if o == nil { @@ -216,9 +190,9 @@ func (o *ASNRange) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRange) GetRir() BriefRIR { +func (o *ASNRange) GetRir() RIR { if o == nil { - var ret BriefRIR + var ret RIR return ret } @@ -227,7 +201,7 @@ func (o *ASNRange) GetRir() BriefRIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRange) GetRirOk() (*BriefRIR, bool) { +func (o *ASNRange) GetRirOk() (*RIR, bool) { if o == nil { return nil, false } @@ -235,7 +209,7 @@ func (o *ASNRange) GetRirOk() (*BriefRIR, bool) { } // SetRir sets field value -func (o *ASNRange) SetRir(v BriefRIR) { +func (o *ASNRange) SetRir(v RIR) { o.Rir = v } @@ -288,9 +262,9 @@ func (o *ASNRange) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRange) GetTenant() BriefTenant { +func (o *ASNRange) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -299,7 +273,7 @@ func (o *ASNRange) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRange) GetTenantOk() (*BriefTenant, bool) { +func (o *ASNRange) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -315,8 +289,8 @@ func (o *ASNRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *ASNRange) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *ASNRange) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -514,7 +488,6 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -551,7 +524,6 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -592,7 +564,6 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_asn_range_request.go b/model_asn_range_request.go index bfe6fc721..83a9d61da 100644 --- a/model_asn_range_request.go +++ b/model_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &ASNRangeRequest{} // ASNRangeRequest Adds support for custom fields and tags. type ASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir BriefRIRRequest `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir RIRRequest `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _ASNRangeRequest ASNRangeRequest // 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 NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64) *ASNRangeRequest { +func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64) *ASNRangeRequest { this := ASNRangeRequest{} this.Name = name this.Slug = slug @@ -105,9 +105,9 @@ func (o *ASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRangeRequest) GetRir() BriefRIRRequest { +func (o *ASNRangeRequest) GetRir() RIRRequest { if o == nil { - var ret BriefRIRRequest + var ret RIRRequest return ret } @@ -116,7 +116,7 @@ func (o *ASNRangeRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { if o == nil { return nil, false } @@ -124,7 +124,7 @@ func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { } // SetRir sets field value -func (o *ASNRangeRequest) SetRir(v BriefRIRRequest) { +func (o *ASNRangeRequest) SetRir(v RIRRequest) { o.Rir = v } @@ -177,9 +177,9 @@ func (o *ASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRangeRequest) GetTenant() BriefTenantRequest { +func (o *ASNRangeRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -188,7 +188,7 @@ func (o *ASNRangeRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -204,8 +204,8 @@ func (o *ASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *ASNRangeRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn_request.go b/model_asn_request.go index d6be5cc35..2d8e8162f 100644 --- a/model_asn_request.go +++ b/model_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &ASNRequest{} // ASNRequest Adds support for custom fields and tags. type ASNRequest struct { // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableBriefRIRRequest `json:"rir,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn int64 `json:"asn"` + Rir NullableRIRRequest `json:"rir,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,9 +76,9 @@ func (o *ASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetRir() BriefRIRRequest { +func (o *ASNRequest) GetRir() RIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret BriefRIRRequest + var ret RIRRequest return ret } return *o.Rir.Get() @@ -87,7 +87,7 @@ func (o *ASNRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *ASNRequest) GetRirOk() (*RIRRequest, bool) { if o == nil { return nil, false } @@ -103,8 +103,8 @@ func (o *ASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. -func (o *ASNRequest) SetRir(v BriefRIRRequest) { +// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. +func (o *ASNRequest) SetRir(v RIRRequest) { o.Rir.Set(&v) } @@ -119,9 +119,9 @@ func (o *ASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetTenant() BriefTenantRequest { +func (o *ASNRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -146,8 +146,8 @@ func (o *ASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *ASNRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *ASNRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_authentication.go b/model_authentication.go index b52e23501..9642d196e 100644 --- a/model_authentication.go +++ b/model_authentication.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go index bf7ee4e2d..1c9752516 100644 --- a/model_authentication_cipher.go +++ b/model_authentication_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_type.go b/model_authentication_type.go index e7d389d78..87147a487 100644 --- a/model_authentication_type.go +++ b/model_authentication_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go index 66ffadf3e..7c661a0a6 100644 --- a/model_authentication_type_1.go +++ b/model_authentication_type_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_asn.go b/model_available_asn.go index 27d9b270f..e398bbbb2 100644 --- a/model_available_asn.go +++ b/model_available_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_ip.go b/model_available_ip.go index dd1a13ba4..b06e6140c 100644 --- a/model_available_ip.go +++ b/model_available_ip.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &AvailableIP{} // AvailableIP Representation of an IP address which does not exist in the database. type AvailableIP struct { - Family int32 `json:"family"` - Address string `json:"address"` - Vrf NullableBriefVRF `json:"vrf"` - Description *string `json:"description,omitempty"` + Family int32 `json:"family"` + Address string `json:"address"` + Vrf NullableVRF `json:"vrf"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _AvailableIP AvailableIP // 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 NewAvailableIP(family int32, address string, vrf NullableBriefVRF) *AvailableIP { +func NewAvailableIP(family int32, address string, vrf NullableVRF) *AvailableIP { this := AvailableIP{} this.Family = family this.Address = address @@ -98,10 +98,10 @@ func (o *AvailableIP) SetAddress(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for BriefVRF will be returned -func (o *AvailableIP) GetVrf() BriefVRF { +// If the value is explicit nil, the zero value for VRF will be returned +func (o *AvailableIP) GetVrf() VRF { if o == nil || o.Vrf.Get() == nil { - var ret BriefVRF + var ret VRF return ret } @@ -111,7 +111,7 @@ func (o *AvailableIP) GetVrf() BriefVRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool) { +func (o *AvailableIP) GetVrfOk() (*VRF, bool) { if o == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool) { } // SetVrf sets field value -func (o *AvailableIP) SetVrf(v BriefVRF) { +func (o *AvailableIP) SetVrf(v VRF) { o.Vrf.Set(&v) } diff --git a/model_available_prefix.go b/model_available_prefix.go index 9ff51b590..6efa0386c 100644 --- a/model_available_prefix.go +++ b/model_available_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &AvailablePrefix{} // AvailablePrefix Representation of a prefix which does not exist in the database. type AvailablePrefix struct { - Family int32 `json:"family"` - Prefix string `json:"prefix"` - Vrf NullableBriefVRF `json:"vrf"` + Family int32 `json:"family"` + Prefix string `json:"prefix"` + Vrf NullableVRF `json:"vrf"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _AvailablePrefix AvailablePrefix // 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 NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF) *AvailablePrefix { +func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF) *AvailablePrefix { this := AvailablePrefix{} this.Family = family this.Prefix = prefix @@ -97,10 +97,10 @@ func (o *AvailablePrefix) SetPrefix(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for BriefVRF will be returned -func (o *AvailablePrefix) GetVrf() BriefVRF { +// If the value is explicit nil, the zero value for VRF will be returned +func (o *AvailablePrefix) GetVrf() VRF { if o == nil || o.Vrf.Get() == nil { - var ret BriefVRF + var ret VRF return ret } @@ -110,7 +110,7 @@ func (o *AvailablePrefix) GetVrf() BriefVRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool) { +func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { if o == nil { return nil, false } @@ -118,7 +118,7 @@ func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool) { } // SetVrf sets field value -func (o *AvailablePrefix) SetVrf(v BriefVRF) { +func (o *AvailablePrefix) SetVrf(v VRF) { o.Vrf.Set(&v) } diff --git a/model_available_vlan.go b/model_available_vlan.go index 7975395cb..8228b8d05 100644 --- a/model_available_vlan.go +++ b/model_available_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableVLAN{} // AvailableVLAN Representation of a VLAN which does not exist in the database. type AvailableVLAN struct { - Vid int32 `json:"vid"` - Group NullableBriefVLANGroup `json:"group"` + Vid int32 `json:"vid"` + Group NullableVLANGroup `json:"group"` AdditionalProperties map[string]interface{} } @@ -31,7 +31,7 @@ type _AvailableVLAN AvailableVLAN // 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 NewAvailableVLAN(vid int32, group NullableBriefVLANGroup) *AvailableVLAN { +func NewAvailableVLAN(vid int32, group NullableVLANGroup) *AvailableVLAN { this := AvailableVLAN{} this.Vid = vid this.Group = group @@ -71,10 +71,10 @@ func (o *AvailableVLAN) SetVid(v int32) { } // GetGroup returns the Group field value -// If the value is explicit nil, the zero value for BriefVLANGroup will be returned -func (o *AvailableVLAN) GetGroup() BriefVLANGroup { +// If the value is explicit nil, the zero value for VLANGroup will be returned +func (o *AvailableVLAN) GetGroup() VLANGroup { if o == nil || o.Group.Get() == nil { - var ret BriefVLANGroup + var ret VLANGroup return ret } @@ -84,7 +84,7 @@ func (o *AvailableVLAN) GetGroup() BriefVLANGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool) { +func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { if o == nil { return nil, false } @@ -92,7 +92,7 @@ func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool) { } // SetGroup sets field value -func (o *AvailableVLAN) SetGroup(v BriefVLANGroup) { +func (o *AvailableVLAN) SetGroup(v VLANGroup) { o.Group.Set(&v) } diff --git a/model_bookmark.go b/model_bookmark.go index cf080af13..6552b0da1 100644 --- a/model_bookmark.go +++ b/model_bookmark.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,7 +27,7 @@ type Bookmark struct { ObjectType string `json:"object_type"` ObjectId int64 `json:"object_id"` Object interface{} `json:"object"` - User BriefUser `json:"user"` + User User `json:"user"` Created time.Time `json:"created"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _Bookmark Bookmark // 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 NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time) *Bookmark { +func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time) *Bookmark { this := Bookmark{} this.Id = id this.Url = url @@ -206,9 +206,9 @@ func (o *Bookmark) SetObject(v interface{}) { } // GetUser returns the User field value -func (o *Bookmark) GetUser() BriefUser { +func (o *Bookmark) GetUser() User { if o == nil { - var ret BriefUser + var ret User return ret } @@ -217,7 +217,7 @@ func (o *Bookmark) GetUser() BriefUser { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Bookmark) GetUserOk() (*BriefUser, bool) { +func (o *Bookmark) GetUserOk() (*User, bool) { if o == nil { return nil, false } @@ -225,7 +225,7 @@ func (o *Bookmark) GetUserOk() (*BriefUser, bool) { } // SetUser sets field value -func (o *Bookmark) SetUser(v BriefUser) { +func (o *Bookmark) SetUser(v User) { o.User = v } diff --git a/model_bookmark_request.go b/model_bookmark_request.go index fbf72a1d1..22932dcd2 100644 --- a/model_bookmark_request.go +++ b/model_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &BookmarkRequest{} // BookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BookmarkRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - User BriefUserRequest `json:"user"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User UserRequest `json:"user"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _BookmarkRequest BookmarkRequest // 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 NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest) *BookmarkRequest { +func NewBookmarkRequest(objectType string, objectId int64, user UserRequest) *BookmarkRequest { this := BookmarkRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -97,9 +97,9 @@ func (o *BookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value -func (o *BookmarkRequest) GetUser() BriefUserRequest { +func (o *BookmarkRequest) GetUser() UserRequest { if o == nil { - var ret BriefUserRequest + var ret UserRequest return ret } @@ -108,7 +108,7 @@ func (o *BookmarkRequest) GetUser() BriefUserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { +func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { if o == nil { return nil, false } @@ -116,7 +116,7 @@ func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { } // SetUser sets field value -func (o *BookmarkRequest) SetUser(v BriefUserRequest) { +func (o *BookmarkRequest) SetUser(v UserRequest) { o.User = v } diff --git a/model_brief_cable.go b/model_brief_cable.go index 9cf80ed4b..7a28fd7ac 100644 --- a/model_brief_cable.go +++ b/model_brief_cable.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefCable{} // BriefCable Adds support for custom fields and tags. type BriefCable struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -187,7 +187,7 @@ func (o *BriefCable) SetDescription(v string) { } func (o BriefCable) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -228,10 +228,10 @@ func (o *BriefCable) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -296,5 +296,3 @@ func (v *NullableBriefCable) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cable_request.go b/model_brief_cable_request.go index 337e8285b..5b7c80bbb 100644 --- a/model_brief_cable_request.go +++ b/model_brief_cable_request.go @@ -19,8 +19,8 @@ var _ MappedNullable = &BriefCableRequest{} // BriefCableRequest Adds support for custom fields and tags. type BriefCableRequest struct { - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *BriefCableRequest) SetDescription(v string) { } func (o BriefCableRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableBriefCableRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit.go b/model_brief_circuit.go index d4e59b4d4..a8c6ed93d 100644 --- a/model_brief_circuit.go +++ b/model_brief_circuit.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefCircuit{} // BriefCircuit Adds support for custom fields and tags. type BriefCircuit struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Provider BriefProvider `json:"provider"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *BriefCircuit) SetDescription(v string) { } func (o BriefCircuit) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -249,10 +249,10 @@ func (o *BriefCircuit) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -318,5 +318,3 @@ func (v *NullableBriefCircuit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_group.go b/model_brief_circuit_group.go index 7bde85ef7..d1b0a1ab0 100644 --- a/model_brief_circuit_group.go +++ b/model_brief_circuit_group.go @@ -20,10 +20,10 @@ var _ MappedNullable = &BriefCircuitGroup{} // BriefCircuitGroup Adds support for custom fields and tags. type BriefCircuitGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *BriefCircuitGroup) SetName(v string) { } func (o BriefCircuitGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -184,10 +184,10 @@ func (o *BriefCircuitGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -251,5 +251,3 @@ func (v *NullableBriefCircuitGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_group_assignment_serializer_.go b/model_brief_circuit_group_assignment_serializer_.go index d1d454d92..d3be5f3d1 100644 --- a/model_brief_circuit_group_assignment_serializer_.go +++ b/model_brief_circuit_group_assignment_serializer_.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefCircuitGroupAssignmentSerializer{} // BriefCircuitGroupAssignmentSerializer Base serializer for group assignments under CircuitSerializer. type BriefCircuitGroupAssignmentSerializer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group BriefCircuitGroup `json:"group"` - Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefCircuitGroupAssignmentSerializer) SetPriority(v BriefCircuitGroupA } func (o BriefCircuitGroupAssignmentSerializer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefCircuitGroupAssignmentSerializer) UnmarshalJSON(data []byte) (err err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializer) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_group_assignment_serializer__priority.go b/model_brief_circuit_group_assignment_serializer__priority.go index d2a5c664b..f42c396c9 100644 --- a/model_brief_circuit_group_assignment_serializer__priority.go +++ b/model_brief_circuit_group_assignment_serializer__priority.go @@ -19,8 +19,8 @@ var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerPriority{} // BriefCircuitGroupAssignmentSerializerPriority struct for BriefCircuitGroupAssignmentSerializerPriority type BriefCircuitGroupAssignmentSerializerPriority struct { - Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"` - Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"` + Value *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"value,omitempty"` + Label *BriefCircuitGroupAssignmentSerializerPriorityLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *BriefCircuitGroupAssignmentSerializerPriority) SetLabel(v BriefCircuitG } func (o BriefCircuitGroupAssignmentSerializerPriority) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerPriority) UnmarshalJSON(sr v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_group_assignment_serializer__priority_label.go b/model_brief_circuit_group_assignment_serializer__priority_label.go index e728ce6d5..0a5024f8a 100644 --- a/model_brief_circuit_group_assignment_serializer__priority_label.go +++ b/model_brief_circuit_group_assignment_serializer__priority_label.go @@ -20,10 +20,10 @@ type BriefCircuitGroupAssignmentSerializerPriorityLabel string // List of BriefCircuitGroupAssignmentSerializer__priority_label const ( - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Primary" BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Secondary" - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary" - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityLabel = "Tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYLABEL_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityLabel = "Inactive" ) // All allowed values of BriefCircuitGroupAssignmentSerializerPriorityLabel enum @@ -112,4 +112,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityLabel) UnmarshalJS v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_circuit_group_assignment_serializer__priority_value.go b/model_brief_circuit_group_assignment_serializer__priority_value.go index afa9ea726..d4ae85a09 100644 --- a/model_brief_circuit_group_assignment_serializer__priority_value.go +++ b/model_brief_circuit_group_assignment_serializer__priority_value.go @@ -20,11 +20,11 @@ type BriefCircuitGroupAssignmentSerializerPriorityValue string // List of BriefCircuitGroupAssignmentSerializer__priority_value const ( - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_PRIMARY BriefCircuitGroupAssignmentSerializerPriorityValue = "primary" BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_SECONDARY BriefCircuitGroupAssignmentSerializerPriorityValue = "secondary" - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary" - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive" - BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = "" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_TERTIARY BriefCircuitGroupAssignmentSerializerPriorityValue = "tertiary" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_INACTIVE BriefCircuitGroupAssignmentSerializerPriorityValue = "inactive" + BRIEFCIRCUITGROUPASSIGNMENTSERIALIZERPRIORITYVALUE_EMPTY BriefCircuitGroupAssignmentSerializerPriorityValue = "" ) // All allowed values of BriefCircuitGroupAssignmentSerializerPriorityValue enum @@ -114,4 +114,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerPriorityValue) UnmarshalJS v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_circuit_group_assignment_serializer_request.go b/model_brief_circuit_group_assignment_serializer_request.go index a9208eeab..ec7ad6d36 100644 --- a/model_brief_circuit_group_assignment_serializer_request.go +++ b/model_brief_circuit_group_assignment_serializer_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefCircuitGroupAssignmentSerializerRequest{} // BriefCircuitGroupAssignmentSerializerRequest Base serializer for group assignments under CircuitSerializer. type BriefCircuitGroupAssignmentSerializerRequest struct { - Group BriefCircuitGroupRequest `json:"group"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Group BriefCircuitGroupRequest `json:"group"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefCircuitGroupAssignmentSerializerRequest) SetPriority(v BriefCircui } func (o BriefCircuitGroupAssignmentSerializerRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(data []byte err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefCircuitGroupAssignmentSerializerRequest) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_group_request.go b/model_brief_circuit_group_request.go index 4403da75e..e3ffa0b94 100644 --- a/model_brief_circuit_group_request.go +++ b/model_brief_circuit_group_request.go @@ -20,7 +20,7 @@ var _ MappedNullable = &BriefCircuitGroupRequest{} // BriefCircuitGroupRequest Adds support for custom fields and tags. type BriefCircuitGroupRequest struct { - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *BriefCircuitGroupRequest) SetName(v string) { } func (o BriefCircuitGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -100,10 +100,10 @@ func (o *BriefCircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -164,5 +164,3 @@ func (v *NullableBriefCircuitGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_request.go b/model_brief_circuit_request.go index 083b51866..bd236fc47 100644 --- a/model_brief_circuit_request.go +++ b/model_brief_circuit_request.go @@ -21,9 +21,9 @@ var _ MappedNullable = &BriefCircuitRequest{} // BriefCircuitRequest Adds support for custom fields and tags. type BriefCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider BriefProviderRequest `json:"provider"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,7 @@ func (o *BriefCircuitRequest) SetDescription(v string) { } func (o BriefCircuitRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -165,10 +165,10 @@ func (o *BriefCircuitRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -231,5 +231,3 @@ func (v *NullableBriefCircuitRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go index 93af03ca3..5240c922f 100644 --- a/model_brief_circuit_type.go +++ b/model_brief_circuit_type.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefCircuitType{} // BriefCircuitType Adds support for custom fields and tags. type BriefCircuitType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefCircuitType) SetCircuitCount(v int64) { } func (o BriefCircuitType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefCircuitType) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefCircuitType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_circuit_type_request.go b/model_brief_circuit_type_request.go index 00b0d0d50..7225e8e9f 100644 --- a/model_brief_circuit_type_request.go +++ b/model_brief_circuit_type_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefCircuitTypeRequest{} // BriefCircuitTypeRequest Adds support for custom fields and tags. type BriefCircuitTypeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefCircuitTypeRequest) SetDescription(v string) { } func (o BriefCircuitTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefCircuitTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefCircuitTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cluster.go b/model_brief_cluster.go index 597aed350..df84ea9f6 100644 --- a/model_brief_cluster.go +++ b/model_brief_cluster.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefCluster{} // BriefCluster Adds support for custom fields and tags. type BriefCluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -213,7 +213,7 @@ func (o *BriefCluster) SetVirtualmachineCount(v int64) { } func (o BriefCluster) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -256,10 +256,10 @@ func (o *BriefCluster) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -325,5 +325,3 @@ func (v *NullableBriefCluster) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cluster_group.go b/model_brief_cluster_group.go index b5e6109ab..d747246f1 100644 --- a/model_brief_cluster_group.go +++ b/model_brief_cluster_group.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefClusterGroup{} // BriefClusterGroup Adds support for custom fields and tags. type BriefClusterGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - ClusterCount int64 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ClusterCount int64 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefClusterGroup) SetClusterCount(v int64) { } func (o BriefClusterGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefClusterGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefClusterGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cluster_group_request.go b/model_brief_cluster_group_request.go index 290eadc28..f1f6ca58b 100644 --- a/model_brief_cluster_group_request.go +++ b/model_brief_cluster_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefClusterGroupRequest{} // BriefClusterGroupRequest Adds support for custom fields and tags. type BriefClusterGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefClusterGroupRequest) SetDescription(v string) { } func (o BriefClusterGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefClusterGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefClusterGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cluster_request.go b/model_brief_cluster_request.go index fc8b17908..79535ab10 100644 --- a/model_brief_cluster_request.go +++ b/model_brief_cluster_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefClusterRequest{} // BriefClusterRequest Adds support for custom fields and tags. type BriefClusterRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefClusterRequest) SetDescription(v string) { } func (o BriefClusterRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefClusterRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefClusterRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cluster_type.go b/model_brief_cluster_type.go index 02c306bde..369f920b5 100644 --- a/model_brief_cluster_type.go +++ b/model_brief_cluster_type.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefClusterType{} // BriefClusterType Adds support for custom fields and tags. type BriefClusterType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - ClusterCount int64 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ClusterCount int64 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefClusterType) SetClusterCount(v int64) { } func (o BriefClusterType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefClusterType) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefClusterType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_cluster_type_request.go b/model_brief_cluster_type_request.go index 55e2055bb..a01bf48ce 100644 --- a/model_brief_cluster_type_request.go +++ b/model_brief_cluster_type_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefClusterTypeRequest{} // BriefClusterTypeRequest Adds support for custom fields and tags. type BriefClusterTypeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefClusterTypeRequest) SetDescription(v string) { } func (o BriefClusterTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefClusterTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefClusterTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_config_template.go b/model_brief_config_template.go index 3b1363bf6..acb30df29 100644 --- a/model_brief_config_template.go +++ b/model_brief_config_template.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefConfigTemplate{} // BriefConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type BriefConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefConfigTemplate) SetDescription(v string) { } func (o BriefConfigTemplate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefConfigTemplate) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefConfigTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_config_template_request.go b/model_brief_config_template_request.go index cceca5b14..a5c8c174c 100644 --- a/model_brief_config_template_request.go +++ b/model_brief_config_template_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefConfigTemplateRequest{} // BriefConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type BriefConfigTemplateRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefConfigTemplateRequest) SetDescription(v string) { } func (o BriefConfigTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefConfigTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_contact.go b/model_brief_contact.go index 961bdbd8d..a19efe0ef 100644 --- a/model_brief_contact.go +++ b/model_brief_contact.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefContact{} // BriefContact Adds support for custom fields and tags. type BriefContact struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefContact) SetDescription(v string) { } func (o BriefContact) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefContact) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefContact) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_contact_group.go b/model_brief_contact_group.go index 1186b2cd6..53ec773fd 100644 --- a/model_brief_contact_group.go +++ b/model_brief_contact_group.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefContactGroup{} // BriefContactGroup Extends PrimaryModelSerializer to include MPTT support. type BriefContactGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - ContactCount int32 `json:"contact_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + ContactCount int32 `json:"contact_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,7 @@ func (o *BriefContactGroup) SetDepth(v int32) { } func (o BriefContactGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -304,10 +304,10 @@ func (o *BriefContactGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -375,5 +375,3 @@ func (v *NullableBriefContactGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_contact_group_request.go b/model_brief_contact_group_request.go index 55f256ced..cb9fa8477 100644 --- a/model_brief_contact_group_request.go +++ b/model_brief_contact_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefContactGroupRequest{} // BriefContactGroupRequest Extends PrimaryModelSerializer to include MPTT support. type BriefContactGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefContactGroupRequest) SetDescription(v string) { } func (o BriefContactGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefContactGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefContactGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_contact_request.go b/model_brief_contact_request.go index 0dd12f719..5b4879b7c 100644 --- a/model_brief_contact_request.go +++ b/model_brief_contact_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefContactRequest{} // BriefContactRequest Adds support for custom fields and tags. type BriefContactRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefContactRequest) SetDescription(v string) { } func (o BriefContactRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefContactRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefContactRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_contact_role.go b/model_brief_contact_role.go index ed4f82234..69c46b628 100644 --- a/model_brief_contact_role.go +++ b/model_brief_contact_role.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefContactRole{} // BriefContactRole Adds support for custom fields and tags. type BriefContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefContactRole) SetDescription(v string) { } func (o BriefContactRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefContactRole) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefContactRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_contact_role_request.go b/model_brief_contact_role_request.go index d3860e788..40611faa0 100644 --- a/model_brief_contact_role_request.go +++ b/model_brief_contact_role_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefContactRoleRequest{} // BriefContactRoleRequest Adds support for custom fields and tags. type BriefContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefContactRoleRequest) SetDescription(v string) { } func (o BriefContactRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefContactRoleRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefContactRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go index 190417f23..d7e0896cb 100644 --- a/model_brief_custom_field_choice_set.go +++ b/model_brief_custom_field_choice_set.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefCustomFieldChoiceSet{} // BriefCustomFieldChoiceSet Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefCustomFieldChoiceSet struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - ChoicesCount string `json:"choices_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + ChoicesCount string `json:"choices_count"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefCustomFieldChoiceSet) SetChoicesCount(v string) { } func (o BriefCustomFieldChoiceSet) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefCustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefCustomFieldChoiceSet) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_custom_field_choice_set_request.go b/model_brief_custom_field_choice_set_request.go index 729fbcb23..440e4a2af 100644 --- a/model_brief_custom_field_choice_set_request.go +++ b/model_brief_custom_field_choice_set_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefCustomFieldChoiceSetRequest{} // BriefCustomFieldChoiceSetRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefCustomFieldChoiceSetRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefCustomFieldChoiceSetRequest) SetDescription(v string) { } func (o BriefCustomFieldChoiceSetRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefCustomFieldChoiceSetRequest) UnmarshalJSON(data []byte) (err error err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefCustomFieldChoiceSetRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_data_file.go b/model_brief_data_file.go index 5ec67396b..5ec460480 100644 --- a/model_brief_data_file.go +++ b/model_brief_data_file.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefDataFile{} // BriefDataFile Adds support for custom fields and tags. type BriefDataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // File path relative to the data source's root - Path string `json:"path"` + Path string `json:"path"` AdditionalProperties map[string]interface{} } @@ -148,7 +148,7 @@ func (o *BriefDataFile) SetPath(v string) { } func (o BriefDataFile) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -185,10 +185,10 @@ func (o *BriefDataFile) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -252,5 +252,3 @@ func (v *NullableBriefDataFile) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_data_source.go b/model_brief_data_source.go index d5644cb60..554ac6aca 100644 --- a/model_brief_data_source.go +++ b/model_brief_data_source.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefDataSource{} // BriefDataSource Adds support for custom fields and tags. type BriefDataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefDataSource) SetDescription(v string) { } func (o BriefDataSource) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefDataSource) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefDataSource) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_data_source_request.go b/model_brief_data_source_request.go index 53b5f201c..3c6aa53b9 100644 --- a/model_brief_data_source_request.go +++ b/model_brief_data_source_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefDataSourceRequest{} // BriefDataSourceRequest Adds support for custom fields and tags. type BriefDataSourceRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefDataSourceRequest) SetDescription(v string) { } func (o BriefDataSourceRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefDataSourceRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefDataSourceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_device.go b/model_brief_device.go index dee00a690..09635c150 100644 --- a/model_brief_device.go +++ b/model_brief_device.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefDevice{} // BriefDevice Adds support for custom fields and tags. type BriefDevice struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -154,6 +154,7 @@ func (o *BriefDevice) HasName() bool { func (o *BriefDevice) SetName(v string) { o.Name.Set(&v) } + // SetNameNil sets the value for Name to be an explicit nil func (o *BriefDevice) SetNameNil() { o.Name.Set(nil) @@ -197,7 +198,7 @@ func (o *BriefDevice) SetDescription(v string) { } func (o BriefDevice) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -238,10 +239,10 @@ func (o *BriefDevice) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -306,5 +307,3 @@ func (v *NullableBriefDevice) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_device_request.go b/model_brief_device_request.go index 6d5cf9128..c5731c065 100644 --- a/model_brief_device_request.go +++ b/model_brief_device_request.go @@ -19,8 +19,8 @@ var _ MappedNullable = &BriefDeviceRequest{} // BriefDeviceRequest Adds support for custom fields and tags. type BriefDeviceRequest struct { - Name NullableString `json:"name,omitempty"` - Description *string `json:"description,omitempty"` + Name NullableString `json:"name,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,6 +75,7 @@ func (o *BriefDeviceRequest) HasName() bool { func (o *BriefDeviceRequest) SetName(v string) { o.Name.Set(&v) } + // SetNameNil sets the value for Name to be an explicit nil func (o *BriefDeviceRequest) SetNameNil() { o.Name.Set(nil) @@ -118,7 +119,7 @@ func (o *BriefDeviceRequest) SetDescription(v string) { } func (o BriefDeviceRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -198,5 +199,3 @@ func (v *NullableBriefDeviceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_device_role.go b/model_brief_device_role.go index 008f6743b..bed181246 100644 --- a/model_brief_device_role.go +++ b/model_brief_device_role.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefDeviceRole{} // BriefDeviceRole Adds support for custom fields and tags. type BriefDeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -272,7 +272,7 @@ func (o *BriefDeviceRole) SetVirtualmachineCount(v int64) { } func (o BriefDeviceRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -320,10 +320,10 @@ func (o *BriefDeviceRole) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -391,5 +391,3 @@ func (v *NullableBriefDeviceRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_device_role_request.go b/model_brief_device_role_request.go index 3ecff372b..f1755f531 100644 --- a/model_brief_device_role_request.go +++ b/model_brief_device_role_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefDeviceRoleRequest{} // BriefDeviceRoleRequest Adds support for custom fields and tags. type BriefDeviceRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefDeviceRoleRequest) SetDescription(v string) { } func (o BriefDeviceRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefDeviceRoleRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefDeviceRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_device_type.go b/model_brief_device_type.go index 8cc27da8b..fc540dd13 100644 --- a/model_brief_device_type.go +++ b/model_brief_device_type.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefDeviceType{} // BriefDeviceType Adds support for custom fields and tags. type BriefDeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer BriefManufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -265,7 +265,7 @@ func (o *BriefDeviceType) SetDeviceCount(v int64) { } func (o BriefDeviceType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -312,10 +312,10 @@ func (o *BriefDeviceType) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -383,5 +383,3 @@ func (v *NullableBriefDeviceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_device_type_request.go b/model_brief_device_type_request.go index f5d86a0c9..8414c35bb 100644 --- a/model_brief_device_type_request.go +++ b/model_brief_device_type_request.go @@ -20,10 +20,10 @@ var _ MappedNullable = &BriefDeviceTypeRequest{} // BriefDeviceTypeRequest Adds support for custom fields and tags. type BriefDeviceTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -154,7 +154,7 @@ func (o *BriefDeviceTypeRequest) SetDescription(v string) { } func (o BriefDeviceTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -192,10 +192,10 @@ func (o *BriefDeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -259,5 +259,3 @@ func (v *NullableBriefDeviceTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_fhrp_group.go b/model_brief_fhrp_group.go index b8b99f7cb..f298b6356 100644 --- a/model_brief_fhrp_group.go +++ b/model_brief_fhrp_group.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefFHRPGroup{} // BriefFHRPGroup Adds support for custom fields and tags. type BriefFHRPGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Protocol BriefFHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefFHRPGroup) SetDescription(v string) { } func (o BriefFHRPGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefFHRPGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefFHRPGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_fhrp_group_protocol.go b/model_brief_fhrp_group_protocol.go index db68a3f28..258baea61 100644 --- a/model_brief_fhrp_group_protocol.go +++ b/model_brief_fhrp_group_protocol.go @@ -20,13 +20,13 @@ type BriefFHRPGroupProtocol string // List of BriefFHRPGroup_protocol const ( - BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2" - BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3" - BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp" + BRIEFFHRPGROUPPROTOCOL_VRRP2 BriefFHRPGroupProtocol = "vrrp2" + BRIEFFHRPGROUPPROTOCOL_VRRP3 BriefFHRPGroupProtocol = "vrrp3" + BRIEFFHRPGROUPPROTOCOL_CARP BriefFHRPGroupProtocol = "carp" BRIEFFHRPGROUPPROTOCOL_CLUSTERXL BriefFHRPGroupProtocol = "clusterxl" - BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp" - BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp" - BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other" + BRIEFFHRPGROUPPROTOCOL_HSRP BriefFHRPGroupProtocol = "hsrp" + BRIEFFHRPGROUPPROTOCOL_GLBP BriefFHRPGroupProtocol = "glbp" + BRIEFFHRPGROUPPROTOCOL_OTHER BriefFHRPGroupProtocol = "other" ) // All allowed values of BriefFHRPGroupProtocol enum @@ -118,4 +118,3 @@ func (v *NullableBriefFHRPGroupProtocol) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_fhrp_group_request.go b/model_brief_fhrp_group_request.go index a36941dd1..1e0446aba 100644 --- a/model_brief_fhrp_group_request.go +++ b/model_brief_fhrp_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefFHRPGroupRequest{} // BriefFHRPGroupRequest Adds support for custom fields and tags. type BriefFHRPGroupRequest struct { - Protocol BriefFHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefFHRPGroupRequest) SetDescription(v string) { } func (o BriefFHRPGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefFHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefFHRPGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ike_policy.go b/model_brief_ike_policy.go index a1a95c2b4..8da1faca9 100644 --- a/model_brief_ike_policy.go +++ b/model_brief_ike_policy.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefIKEPolicy{} // BriefIKEPolicy Adds support for custom fields and tags. type BriefIKEPolicy struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefIKEPolicy) SetDescription(v string) { } func (o BriefIKEPolicy) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefIKEPolicy) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefIKEPolicy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ike_policy_request.go b/model_brief_ike_policy_request.go index f34860bb3..d6eb3cb57 100644 --- a/model_brief_ike_policy_request.go +++ b/model_brief_ike_policy_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIKEPolicyRequest{} // BriefIKEPolicyRequest Adds support for custom fields and tags. type BriefIKEPolicyRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefIKEPolicyRequest) SetDescription(v string) { } func (o BriefIKEPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefIKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefIKEPolicyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_interface.go b/model_brief_interface.go index d98b5712f..b0af0fb13 100644 --- a/model_brief_interface.go +++ b/model_brief_interface.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefInterface{} // BriefInterface Adds support for custom fields and tags. type BriefInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Cable NullableBriefCable `json:"cable"` - Occupied bool `json:"_occupied"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -260,7 +260,7 @@ func (o *BriefInterface) SetOccupied(v bool) { } func (o BriefInterface) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -306,10 +306,10 @@ func (o *BriefInterface) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -377,5 +377,3 @@ func (v *NullableBriefInterface) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_interface_request.go b/model_brief_interface_request.go index bb21457af..75534f287 100644 --- a/model_brief_interface_request.go +++ b/model_brief_interface_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefInterfaceRequest{} // BriefInterfaceRequest Adds support for custom fields and tags. type BriefInterfaceRequest struct { - Device BriefDeviceRequest `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefInterfaceRequest) SetDescription(v string) { } func (o BriefInterfaceRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefInterfaceRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefInterfaceRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go index 35ac22127..5b3959b47 100644 --- a/model_brief_inventory_item_role.go +++ b/model_brief_inventory_item_role.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefInventoryItemRole{} // BriefInventoryItemRole Adds support for custom fields and tags. type BriefInventoryItemRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - InventoryitemCount int64 `json:"inventoryitem_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefInventoryItemRole) SetInventoryitemCount(v int64) { } func (o BriefInventoryItemRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefInventoryItemRole) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefInventoryItemRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_inventory_item_role_request.go b/model_brief_inventory_item_role_request.go index 787b36797..bc67d73a0 100644 --- a/model_brief_inventory_item_role_request.go +++ b/model_brief_inventory_item_role_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefInventoryItemRoleRequest{} // BriefInventoryItemRoleRequest Adds support for custom fields and tags. type BriefInventoryItemRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefInventoryItemRoleRequest) SetDescription(v string) { } func (o BriefInventoryItemRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefInventoryItemRoleRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefInventoryItemRoleRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ip_address.go b/model_brief_ip_address.go index 23e6529cc..ddcf5fdff 100644 --- a/model_brief_ip_address.go +++ b/model_brief_ip_address.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefIPAddress{} // BriefIPAddress Adds support for custom fields and tags. type BriefIPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefIPAddress) SetDescription(v string) { } func (o BriefIPAddress) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefIPAddress) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefIPAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ip_address_request.go b/model_brief_ip_address_request.go index cf8576d41..5e56f7c6f 100644 --- a/model_brief_ip_address_request.go +++ b/model_brief_ip_address_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIPAddressRequest{} // BriefIPAddressRequest Adds support for custom fields and tags. type BriefIPAddressRequest struct { - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefIPAddressRequest) SetDescription(v string) { } func (o BriefIPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefIPAddressRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefIPAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ip_sec_policy.go b/model_brief_ip_sec_policy.go index e5b1bfa07..1b6fffc33 100644 --- a/model_brief_ip_sec_policy.go +++ b/model_brief_ip_sec_policy.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefIPSecPolicy{} // BriefIPSecPolicy Adds support for custom fields and tags. type BriefIPSecPolicy struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefIPSecPolicy) SetDescription(v string) { } func (o BriefIPSecPolicy) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefIPSecPolicy) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefIPSecPolicy) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ip_sec_policy_request.go b/model_brief_ip_sec_policy_request.go index 6603e1f49..1548cb779 100644 --- a/model_brief_ip_sec_policy_request.go +++ b/model_brief_ip_sec_policy_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIPSecPolicyRequest{} // BriefIPSecPolicyRequest Adds support for custom fields and tags. type BriefIPSecPolicyRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefIPSecPolicyRequest) SetDescription(v string) { } func (o BriefIPSecPolicyRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefIPSecPolicyRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefIPSecPolicyRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ip_sec_profile.go b/model_brief_ip_sec_profile.go index 1abe8a939..1b4fc3592 100644 --- a/model_brief_ip_sec_profile.go +++ b/model_brief_ip_sec_profile.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefIPSecProfile{} // BriefIPSecProfile Adds support for custom fields and tags. type BriefIPSecProfile struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefIPSecProfile) SetDescription(v string) { } func (o BriefIPSecProfile) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefIPSecProfile) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefIPSecProfile) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_ip_sec_profile_request.go b/model_brief_ip_sec_profile_request.go index 6902a645a..7321e231e 100644 --- a/model_brief_ip_sec_profile_request.go +++ b/model_brief_ip_sec_profile_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefIPSecProfileRequest{} // BriefIPSecProfileRequest Adds support for custom fields and tags. type BriefIPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefIPSecProfileRequest) SetDescription(v string) { } func (o BriefIPSecProfileRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefIPSecProfileRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefIPSecProfileRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_job.go b/model_brief_job.go index 50c317dd8..37912f6a2 100644 --- a/model_brief_job.go +++ b/model_brief_job.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the BriefJob type satisfies the MappedNullable interface at compile time @@ -21,11 +21,11 @@ var _ MappedNullable = &BriefJob{} // BriefJob struct for BriefJob type BriefJob struct { - Url string `json:"url"` - Status BriefJobStatus `json:"status"` - Created time.Time `json:"created"` - Completed NullableTime `json:"completed,omitempty"` - User BriefUser `json:"user"` + Url string `json:"url"` + Status BriefJobStatus `json:"status"` + Created time.Time `json:"created"` + Completed NullableTime `json:"completed,omitempty"` + User BriefUser `json:"user"` AdditionalProperties map[string]interface{} } @@ -156,6 +156,7 @@ func (o *BriefJob) HasCompleted() bool { func (o *BriefJob) SetCompleted(v time.Time) { o.Completed.Set(&v) } + // SetCompletedNil sets the value for Completed to be an explicit nil func (o *BriefJob) SetCompletedNil() { o.Completed.Set(nil) @@ -191,7 +192,7 @@ func (o *BriefJob) SetUser(v BriefUser) { } func (o BriefJob) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -231,10 +232,10 @@ func (o *BriefJob) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -299,5 +300,3 @@ func (v *NullableBriefJob) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_job_request.go b/model_brief_job_request.go index 687ce51b1..d6fbad508 100644 --- a/model_brief_job_request.go +++ b/model_brief_job_request.go @@ -20,7 +20,7 @@ var _ MappedNullable = &BriefJobRequest{} // BriefJobRequest struct for BriefJobRequest type BriefJobRequest struct { - Completed NullableTime `json:"completed,omitempty"` + Completed NullableTime `json:"completed,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,6 +75,7 @@ func (o *BriefJobRequest) HasCompleted() bool { func (o *BriefJobRequest) SetCompleted(v time.Time) { o.Completed.Set(&v) } + // SetCompletedNil sets the value for Completed to be an explicit nil func (o *BriefJobRequest) SetCompletedNil() { o.Completed.Set(nil) @@ -86,7 +87,7 @@ func (o *BriefJobRequest) UnsetCompleted() { } func (o BriefJobRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -162,5 +163,3 @@ func (v *NullableBriefJobRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_job_status.go b/model_brief_job_status.go index 088c5bf0c..c74c3169e 100644 --- a/model_brief_job_status.go +++ b/model_brief_job_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &BriefJobStatus{} // BriefJobStatus struct for BriefJobStatus type BriefJobStatus struct { - Value *BriefJobStatusValue `json:"value,omitempty"` - Label *BriefJobStatusLabel `json:"label,omitempty"` + Value *BriefJobStatusValue `json:"value,omitempty"` + Label *BriefJobStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *BriefJobStatus) SetLabel(v BriefJobStatusLabel) { } func (o BriefJobStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableBriefJobStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_job_status_label.go b/model_brief_job_status_label.go index 96f405432..2cda8ab28 100644 --- a/model_brief_job_status_label.go +++ b/model_brief_job_status_label.go @@ -20,12 +20,12 @@ type BriefJobStatusLabel string // List of BriefJob_status_label const ( - BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending" + BRIEFJOBSTATUSLABEL_PENDING BriefJobStatusLabel = "Pending" BRIEFJOBSTATUSLABEL_SCHEDULED BriefJobStatusLabel = "Scheduled" - BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running" + BRIEFJOBSTATUSLABEL_RUNNING BriefJobStatusLabel = "Running" BRIEFJOBSTATUSLABEL_COMPLETED BriefJobStatusLabel = "Completed" - BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored" - BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed" + BRIEFJOBSTATUSLABEL_ERRORED BriefJobStatusLabel = "Errored" + BRIEFJOBSTATUSLABEL_FAILED BriefJobStatusLabel = "Failed" ) // All allowed values of BriefJobStatusLabel enum @@ -116,4 +116,3 @@ func (v *NullableBriefJobStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_job_status_value.go b/model_brief_job_status_value.go index 8a61ae0d0..b4c937c60 100644 --- a/model_brief_job_status_value.go +++ b/model_brief_job_status_value.go @@ -20,12 +20,12 @@ type BriefJobStatusValue string // List of BriefJob_status_value const ( - BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending" + BRIEFJOBSTATUSVALUE_PENDING BriefJobStatusValue = "pending" BRIEFJOBSTATUSVALUE_SCHEDULED BriefJobStatusValue = "scheduled" - BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running" + BRIEFJOBSTATUSVALUE_RUNNING BriefJobStatusValue = "running" BRIEFJOBSTATUSVALUE_COMPLETED BriefJobStatusValue = "completed" - BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored" - BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed" + BRIEFJOBSTATUSVALUE_ERRORED BriefJobStatusValue = "errored" + BRIEFJOBSTATUSVALUE_FAILED BriefJobStatusValue = "failed" ) // All allowed values of BriefJobStatusValue enum @@ -116,4 +116,3 @@ func (v *NullableBriefJobStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_l2_vpn.go b/model_brief_l2_vpn.go index 54c07e0aa..7fbb57772 100644 --- a/model_brief_l2_vpn.go +++ b/model_brief_l2_vpn.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefL2VPN{} // BriefL2VPN Adds support for custom fields and tags. type BriefL2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *BriefL2VPNType `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -159,6 +159,7 @@ func (o *BriefL2VPN) HasIdentifier() bool { func (o *BriefL2VPN) SetIdentifier(v int64) { o.Identifier.Set(&v) } + // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *BriefL2VPN) SetIdentifierNil() { o.Identifier.Set(nil) @@ -282,7 +283,7 @@ func (o *BriefL2VPN) SetDescription(v string) { } func (o BriefL2VPN) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -330,10 +331,10 @@ func (o *BriefL2VPN) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -401,5 +402,3 @@ func (v *NullableBriefL2VPN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_l2_vpn_request.go b/model_brief_l2_vpn_request.go index f35d73907..3c9ac88b0 100644 --- a/model_brief_l2_vpn_request.go +++ b/model_brief_l2_vpn_request.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefL2VPNRequest{} // BriefL2VPNRequest Adds support for custom fields and tags. type BriefL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *BriefL2VPNTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,6 +81,7 @@ func (o *BriefL2VPNRequest) HasIdentifier() bool { func (o *BriefL2VPNRequest) SetIdentifier(v int64) { o.Identifier.Set(&v) } + // SetIdentifierNil sets the value for Identifier to be an explicit nil func (o *BriefL2VPNRequest) SetIdentifierNil() { o.Identifier.Set(nil) @@ -204,7 +205,7 @@ func (o *BriefL2VPNRequest) SetDescription(v string) { } func (o BriefL2VPNRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -246,10 +247,10 @@ func (o *BriefL2VPNRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -314,5 +315,3 @@ func (v *NullableBriefL2VPNRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_l2_vpn_termination.go b/model_brief_l2_vpn_termination.go index 56b3590ca..54b320230 100644 --- a/model_brief_l2_vpn_termination.go +++ b/model_brief_l2_vpn_termination.go @@ -20,10 +20,10 @@ var _ MappedNullable = &BriefL2VPNTermination{} // BriefL2VPNTermination Adds support for custom fields and tags. type BriefL2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - L2vpn BriefL2VPN `json:"l2vpn"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` AdditionalProperties map[string]interface{} } @@ -147,7 +147,7 @@ func (o *BriefL2VPNTermination) SetL2vpn(v BriefL2VPN) { } func (o BriefL2VPNTermination) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -184,10 +184,10 @@ func (o *BriefL2VPNTermination) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -251,5 +251,3 @@ func (v *NullableBriefL2VPNTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_l2_vpn_termination_request.go b/model_brief_l2_vpn_termination_request.go index f151be3fd..4afb8d0d9 100644 --- a/model_brief_l2_vpn_termination_request.go +++ b/model_brief_l2_vpn_termination_request.go @@ -20,7 +20,7 @@ var _ MappedNullable = &BriefL2VPNTerminationRequest{} // BriefL2VPNTerminationRequest Adds support for custom fields and tags. type BriefL2VPNTerminationRequest struct { - L2vpn BriefL2VPNRequest `json:"l2vpn"` + L2vpn BriefL2VPNRequest `json:"l2vpn"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *BriefL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { } func (o BriefL2VPNTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -100,10 +100,10 @@ func (o *BriefL2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -164,5 +164,3 @@ func (v *NullableBriefL2VPNTerminationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_l2_vpn_type.go b/model_brief_l2_vpn_type.go index be9d92c61..20dd337b4 100644 --- a/model_brief_l2_vpn_type.go +++ b/model_brief_l2_vpn_type.go @@ -19,8 +19,8 @@ var _ MappedNullable = &BriefL2VPNType{} // BriefL2VPNType struct for BriefL2VPNType type BriefL2VPNType struct { - Value *BriefL2VPNTypeValue `json:"value,omitempty"` - Label *BriefL2VPNTypeLabel `json:"label,omitempty"` + Value *BriefL2VPNTypeValue `json:"value,omitempty"` + Label *BriefL2VPNTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *BriefL2VPNType) SetLabel(v BriefL2VPNTypeLabel) { } func (o BriefL2VPNType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableBriefL2VPNType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_l2_vpn_type_label.go b/model_brief_l2_vpn_type_label.go index 5e43e09a9..dcb9b299a 100644 --- a/model_brief_l2_vpn_type_label.go +++ b/model_brief_l2_vpn_type_label.go @@ -20,17 +20,17 @@ type BriefL2VPNTypeLabel string // List of BriefL2VPN_type_label const ( - BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS" - BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS" - BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN" - BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN" - BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN" - BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN" - BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL" - BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL" - BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN" - BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN" - BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree" + BRIEFL2VPNTYPELABEL_VPWS BriefL2VPNTypeLabel = "VPWS" + BRIEFL2VPNTYPELABEL_VPLS BriefL2VPNTypeLabel = "VPLS" + BRIEFL2VPNTYPELABEL_VXLAN BriefL2VPNTypeLabel = "VXLAN" + BRIEFL2VPNTYPELABEL_VXLAN_EVPN BriefL2VPNTypeLabel = "VXLAN-EVPN" + BRIEFL2VPNTYPELABEL_MPLS_EVPN BriefL2VPNTypeLabel = "MPLS EVPN" + BRIEFL2VPNTYPELABEL_PBB_EVPN BriefL2VPNTypeLabel = "PBB EVPN" + BRIEFL2VPNTYPELABEL_EPL BriefL2VPNTypeLabel = "EPL" + BRIEFL2VPNTYPELABEL_EVPL BriefL2VPNTypeLabel = "EVPL" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_LAN BriefL2VPNTypeLabel = "Ethernet Virtual Private LAN" + BRIEFL2VPNTYPELABEL_ETHERNET_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Private Tree" BRIEFL2VPNTYPELABEL_ETHERNET_VIRTUAL_PRIVATE_TREE BriefL2VPNTypeLabel = "Ethernet Virtual Private Tree" ) @@ -128,4 +128,3 @@ func (v *NullableBriefL2VPNTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_l2_vpn_type_value.go b/model_brief_l2_vpn_type_value.go index e5840967e..dc5065a51 100644 --- a/model_brief_l2_vpn_type_value.go +++ b/model_brief_l2_vpn_type_value.go @@ -20,18 +20,18 @@ type BriefL2VPNTypeValue string // List of BriefL2VPN_type_value const ( - BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws" - BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls" - BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan" + BRIEFL2VPNTYPEVALUE_VPWS BriefL2VPNTypeValue = "vpws" + BRIEFL2VPNTYPEVALUE_VPLS BriefL2VPNTypeValue = "vpls" + BRIEFL2VPNTYPEVALUE_VXLAN BriefL2VPNTypeValue = "vxlan" BRIEFL2VPNTYPEVALUE_VXLAN_EVPN BriefL2VPNTypeValue = "vxlan-evpn" - BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn" - BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn" - BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl" - BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl" - BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan" - BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan" - BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree" - BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree" + BRIEFL2VPNTYPEVALUE_MPLS_EVPN BriefL2VPNTypeValue = "mpls-evpn" + BRIEFL2VPNTYPEVALUE_PBB_EVPN BriefL2VPNTypeValue = "pbb-evpn" + BRIEFL2VPNTYPEVALUE_EPL BriefL2VPNTypeValue = "epl" + BRIEFL2VPNTYPEVALUE_EVPL BriefL2VPNTypeValue = "evpl" + BRIEFL2VPNTYPEVALUE_EP_LAN BriefL2VPNTypeValue = "ep-lan" + BRIEFL2VPNTYPEVALUE_EVP_LAN BriefL2VPNTypeValue = "evp-lan" + BRIEFL2VPNTYPEVALUE_EP_TREE BriefL2VPNTypeValue = "ep-tree" + BRIEFL2VPNTYPEVALUE_EVP_TREE BriefL2VPNTypeValue = "evp-tree" ) // All allowed values of BriefL2VPNTypeValue enum @@ -128,4 +128,3 @@ func (v *NullableBriefL2VPNTypeValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_brief_location.go b/model_brief_location.go index c8e48ea5e..6fa073cfd 100644 --- a/model_brief_location.go +++ b/model_brief_location.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefLocation{} // BriefLocation Extends PrimaryModelSerializer to include MPTT support. type BriefLocation struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - RackCount int32 `json:"rack_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int32 `json:"rack_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,7 @@ func (o *BriefLocation) SetDepth(v int32) { } func (o BriefLocation) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -304,10 +304,10 @@ func (o *BriefLocation) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -375,5 +375,3 @@ func (v *NullableBriefLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_location_request.go b/model_brief_location_request.go index 3aca82583..03194e1c6 100644 --- a/model_brief_location_request.go +++ b/model_brief_location_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefLocationRequest{} // BriefLocationRequest Extends PrimaryModelSerializer to include MPTT support. type BriefLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefLocationRequest) SetDescription(v string) { } func (o BriefLocationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefLocationRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefLocationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_manufacturer.go b/model_brief_manufacturer.go index d45eb5e0a..8fa57edd0 100644 --- a/model_brief_manufacturer.go +++ b/model_brief_manufacturer.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefManufacturer{} // BriefManufacturer Adds support for custom fields and tags. type BriefManufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -239,7 +239,7 @@ func (o *BriefManufacturer) SetDevicetypeCount(v int64) { } func (o BriefManufacturer) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -284,10 +284,10 @@ func (o *BriefManufacturer) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -354,5 +354,3 @@ func (v *NullableBriefManufacturer) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_manufacturer_request.go b/model_brief_manufacturer_request.go index b7e7ee0da..ca9af173e 100644 --- a/model_brief_manufacturer_request.go +++ b/model_brief_manufacturer_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefManufacturerRequest{} // BriefManufacturerRequest Adds support for custom fields and tags. type BriefManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefManufacturerRequest) SetDescription(v string) { } func (o BriefManufacturerRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefManufacturerRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefManufacturerRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_module.go b/model_brief_module.go index b193529cc..bea103e2a 100644 --- a/model_brief_module.go +++ b/model_brief_module.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefModule{} // BriefModule Adds support for custom fields and tags. type BriefModule struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` AdditionalProperties map[string]interface{} } @@ -173,7 +173,7 @@ func (o *BriefModule) SetModuleBay(v NestedModuleBay) { } func (o BriefModule) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -212,10 +212,10 @@ func (o *BriefModule) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -280,5 +280,3 @@ func (v *NullableBriefModule) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_module_request.go b/model_brief_module_request.go index c73285810..34049d03d 100644 --- a/model_brief_module_request.go +++ b/model_brief_module_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefModuleRequest{} // BriefModuleRequest Adds support for custom fields and tags. type BriefModuleRequest struct { - Device BriefDeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` AdditionalProperties map[string]interface{} } @@ -95,7 +95,7 @@ func (o *BriefModuleRequest) SetModuleBay(v NestedModuleBayRequest) { } func (o BriefModuleRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -128,10 +128,10 @@ func (o *BriefModuleRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -193,5 +193,3 @@ func (v *NullableBriefModuleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_module_type.go b/model_brief_module_type.go index 1aeffa122..8e1667bdf 100644 --- a/model_brief_module_type.go +++ b/model_brief_module_type.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefModuleType{} // BriefModuleType Adds support for custom fields and tags. type BriefModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer BriefManufacturer `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefModuleType) SetDescription(v string) { } func (o BriefModuleType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefModuleType) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefModuleType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_module_type_request.go b/model_brief_module_type_request.go index 26dd0c991..aee60c62c 100644 --- a/model_brief_module_type_request.go +++ b/model_brief_module_type_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefModuleTypeRequest{} // BriefModuleTypeRequest Adds support for custom fields and tags. type BriefModuleTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefModuleTypeRequest) SetDescription(v string) { } func (o BriefModuleTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefModuleTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_platform.go b/model_brief_platform.go index bb15c407a..92cff5539 100644 --- a/model_brief_platform.go +++ b/model_brief_platform.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefPlatform{} // BriefPlatform Adds support for custom fields and tags. type BriefPlatform struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -272,7 +272,7 @@ func (o *BriefPlatform) SetVirtualmachineCount(v int64) { } func (o BriefPlatform) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -320,10 +320,10 @@ func (o *BriefPlatform) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -391,5 +391,3 @@ func (v *NullableBriefPlatform) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_platform_request.go b/model_brief_platform_request.go index c927d2253..718d9e407 100644 --- a/model_brief_platform_request.go +++ b/model_brief_platform_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefPlatformRequest{} // BriefPlatformRequest Adds support for custom fields and tags. type BriefPlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefPlatformRequest) SetDescription(v string) { } func (o BriefPlatformRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefPlatformRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefPlatformRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go index 5428d5ca8..7b416ab30 100644 --- a/model_brief_power_panel.go +++ b/model_brief_power_panel.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefPowerPanel{} // BriefPowerPanel Adds support for custom fields and tags. type BriefPowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefPowerPanel) SetPowerfeedCount(v int64) { } func (o BriefPowerPanel) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefPowerPanel) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefPowerPanel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_power_panel_request.go b/model_brief_power_panel_request.go index 263ae9c5c..698765eb5 100644 --- a/model_brief_power_panel_request.go +++ b/model_brief_power_panel_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefPowerPanelRequest{} // BriefPowerPanelRequest Adds support for custom fields and tags. type BriefPowerPanelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefPowerPanelRequest) SetDescription(v string) { } func (o BriefPowerPanelRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefPowerPanelRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefPowerPanelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_power_port.go b/model_brief_power_port.go index 881296bdc..f82033d29 100644 --- a/model_brief_power_port.go +++ b/model_brief_power_port.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefPowerPort{} // BriefPowerPort Adds support for custom fields and tags. type BriefPowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Cable NullableBriefCable `json:"cable"` - Occupied bool `json:"_occupied"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableBriefCable `json:"cable"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -260,7 +260,7 @@ func (o *BriefPowerPort) SetOccupied(v bool) { } func (o BriefPowerPort) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -306,10 +306,10 @@ func (o *BriefPowerPort) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -377,5 +377,3 @@ func (v *NullableBriefPowerPort) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_power_port_request.go b/model_brief_power_port_request.go index 56df9c8c3..4740eda83 100644 --- a/model_brief_power_port_request.go +++ b/model_brief_power_port_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefPowerPortRequest{} // BriefPowerPortRequest Adds support for custom fields and tags. type BriefPowerPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefPowerPortRequest) SetDescription(v string) { } func (o BriefPowerPortRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefPowerPortRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefPowerPortRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_power_port_template.go b/model_brief_power_port_template.go index afc308328..92bcc7980 100644 --- a/model_brief_power_port_template.go +++ b/model_brief_power_port_template.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefPowerPortTemplate{} // BriefPowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefPowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -181,7 +181,7 @@ func (o *BriefPowerPortTemplate) SetDescription(v string) { } func (o BriefPowerPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -221,10 +221,10 @@ func (o *BriefPowerPortTemplate) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -289,5 +289,3 @@ func (v *NullableBriefPowerPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_power_port_template_request.go b/model_brief_power_port_template_request.go index b80c4ace3..313c1462f 100644 --- a/model_brief_power_port_template_request.go +++ b/model_brief_power_port_template_request.go @@ -21,8 +21,8 @@ var _ MappedNullable = &BriefPowerPortTemplateRequest{} // BriefPowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefPowerPortTemplateRequest struct { // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -103,7 +103,7 @@ func (o *BriefPowerPortTemplateRequest) SetDescription(v string) { } func (o BriefPowerPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -137,10 +137,10 @@ func (o *BriefPowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -202,5 +202,3 @@ func (v *NullableBriefPowerPortTemplateRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_provider.go b/model_brief_provider.go index 4539a319e..165838d3e 100644 --- a/model_brief_provider.go +++ b/model_brief_provider.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefProvider{} // BriefProvider Adds support for custom fields and tags. type BriefProvider struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -233,7 +233,7 @@ func (o *BriefProvider) SetCircuitCount(v int64) { } func (o BriefProvider) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -277,10 +277,10 @@ func (o *BriefProvider) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -347,5 +347,3 @@ func (v *NullableBriefProvider) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_provider_account.go b/model_brief_provider_account.go index c0db0a26d..24af5c481 100644 --- a/model_brief_provider_account.go +++ b/model_brief_provider_account.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefProviderAccount{} // BriefProviderAccount Adds support for custom fields and tags. type BriefProviderAccount struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -217,7 +217,7 @@ func (o *BriefProviderAccount) SetDescription(v string) { } func (o BriefProviderAccount) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -260,10 +260,10 @@ func (o *BriefProviderAccount) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -329,5 +329,3 @@ func (v *NullableBriefProviderAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_provider_account_request.go b/model_brief_provider_account_request.go index d0a46925c..b415deb76 100644 --- a/model_brief_provider_account_request.go +++ b/model_brief_provider_account_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefProviderAccountRequest{} // BriefProviderAccountRequest Adds support for custom fields and tags. type BriefProviderAccountRequest struct { - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -139,7 +139,7 @@ func (o *BriefProviderAccountRequest) SetDescription(v string) { } func (o BriefProviderAccountRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -176,10 +176,10 @@ func (o *BriefProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -242,5 +242,3 @@ func (v *NullableBriefProviderAccountRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_provider_network.go b/model_brief_provider_network.go index 37f32ad2e..06c4e626b 100644 --- a/model_brief_provider_network.go +++ b/model_brief_provider_network.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefProviderNetwork{} // BriefProviderNetwork Adds support for custom fields and tags. type BriefProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefProviderNetwork) SetDescription(v string) { } func (o BriefProviderNetwork) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefProviderNetwork) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefProviderNetwork) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_provider_network_request.go b/model_brief_provider_network_request.go index 47caca15c..d7c3c6087 100644 --- a/model_brief_provider_network_request.go +++ b/model_brief_provider_network_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefProviderNetworkRequest{} // BriefProviderNetworkRequest Adds support for custom fields and tags. type BriefProviderNetworkRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefProviderNetworkRequest) SetDescription(v string) { } func (o BriefProviderNetworkRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefProviderNetworkRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_provider_request.go b/model_brief_provider_request.go index 753683045..a91662dd5 100644 --- a/model_brief_provider_request.go +++ b/model_brief_provider_request.go @@ -21,9 +21,9 @@ var _ MappedNullable = &BriefProviderRequest{} // BriefProviderRequest Adds support for custom fields and tags. type BriefProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,7 @@ func (o *BriefProviderRequest) SetDescription(v string) { } func (o BriefProviderRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -165,10 +165,10 @@ func (o *BriefProviderRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -231,5 +231,3 @@ func (v *NullableBriefProviderRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rack.go b/model_brief_rack.go index 0048cd664..4540f7012 100644 --- a/model_brief_rack.go +++ b/model_brief_rack.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefRack{} // BriefRack Adds support for custom fields and tags. type BriefRack struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -213,7 +213,7 @@ func (o *BriefRack) SetDeviceCount(v int64) { } func (o BriefRack) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -256,10 +256,10 @@ func (o *BriefRack) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -325,5 +325,3 @@ func (v *NullableBriefRack) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rack_request.go b/model_brief_rack_request.go index 459c0a20b..8b9d1ce27 100644 --- a/model_brief_rack_request.go +++ b/model_brief_rack_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefRackRequest{} // BriefRackRequest Adds support for custom fields and tags. type BriefRackRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefRackRequest) SetDescription(v string) { } func (o BriefRackRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefRackRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefRackRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rack_role.go b/model_brief_rack_role.go index aff4c9353..a8143304c 100644 --- a/model_brief_rack_role.go +++ b/model_brief_rack_role.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefRackRole{} // BriefRackRole Adds support for custom fields and tags. type BriefRackRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - RackCount int64 `json:"rack_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int64 `json:"rack_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefRackRole) SetRackCount(v int64) { } func (o BriefRackRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefRackRole) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefRackRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rack_role_request.go b/model_brief_rack_role_request.go index 997269187..629e5d282 100644 --- a/model_brief_rack_role_request.go +++ b/model_brief_rack_role_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRackRoleRequest{} // BriefRackRoleRequest Adds support for custom fields and tags. type BriefRackRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefRackRoleRequest) SetDescription(v string) { } func (o BriefRackRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefRackRoleRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefRackRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rack_type.go b/model_brief_rack_type.go index f2e14404c..3ad571835 100644 --- a/model_brief_rack_type.go +++ b/model_brief_rack_type.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefRackType{} // BriefRackType Adds support for custom fields and tags. type BriefRackType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer BriefManufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefRackType) SetDescription(v string) { } func (o BriefRackType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefRackType) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefRackType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rack_type_request.go b/model_brief_rack_type_request.go index 0ca2cdaa7..90913dbba 100644 --- a/model_brief_rack_type_request.go +++ b/model_brief_rack_type_request.go @@ -20,10 +20,10 @@ var _ MappedNullable = &BriefRackTypeRequest{} // BriefRackTypeRequest Adds support for custom fields and tags. type BriefRackTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -154,7 +154,7 @@ func (o *BriefRackTypeRequest) SetDescription(v string) { } func (o BriefRackTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -192,10 +192,10 @@ func (o *BriefRackTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -259,5 +259,3 @@ func (v *NullableBriefRackTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rear_port_template.go b/model_brief_rear_port_template.go index 9b79d572f..718cb0432 100644 --- a/model_brief_rear_port_template.go +++ b/model_brief_rear_port_template.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefRearPortTemplate{} // BriefRearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefRearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -181,7 +181,7 @@ func (o *BriefRearPortTemplate) SetDescription(v string) { } func (o BriefRearPortTemplate) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -221,10 +221,10 @@ func (o *BriefRearPortTemplate) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -289,5 +289,3 @@ func (v *NullableBriefRearPortTemplate) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rear_port_template_request.go b/model_brief_rear_port_template_request.go index 77e702f41..aa3e0549a 100644 --- a/model_brief_rear_port_template_request.go +++ b/model_brief_rear_port_template_request.go @@ -21,8 +21,8 @@ var _ MappedNullable = &BriefRearPortTemplateRequest{} // BriefRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefRearPortTemplateRequest struct { // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -103,7 +103,7 @@ func (o *BriefRearPortTemplateRequest) SetDescription(v string) { } func (o BriefRearPortTemplateRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -137,10 +137,10 @@ func (o *BriefRearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -202,5 +202,3 @@ func (v *NullableBriefRearPortTemplateRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_region.go b/model_brief_region.go index b0f218bff..5154b613e 100644 --- a/model_brief_region.go +++ b/model_brief_region.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefRegion{} // BriefRegion Extends PrimaryModelSerializer to include MPTT support. type BriefRegion struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - SiteCount int32 `json:"site_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,7 @@ func (o *BriefRegion) SetDepth(v int32) { } func (o BriefRegion) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -304,10 +304,10 @@ func (o *BriefRegion) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -375,5 +375,3 @@ func (v *NullableBriefRegion) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_region_request.go b/model_brief_region_request.go index b32a8c87f..a465c8c9a 100644 --- a/model_brief_region_request.go +++ b/model_brief_region_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRegionRequest{} // BriefRegionRequest Extends PrimaryModelSerializer to include MPTT support. type BriefRegionRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefRegionRequest) SetDescription(v string) { } func (o BriefRegionRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefRegionRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefRegionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rir.go b/model_brief_rir.go index 2e320e371..04885a05a 100644 --- a/model_brief_rir.go +++ b/model_brief_rir.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefRIR{} // BriefRIR Adds support for custom fields and tags. type BriefRIR struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - AggregateCount int64 `json:"aggregate_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AggregateCount int64 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefRIR) SetAggregateCount(v int64) { } func (o BriefRIR) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefRIR) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefRIR) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_rir_request.go b/model_brief_rir_request.go index 25be77358..7702acf4d 100644 --- a/model_brief_rir_request.go +++ b/model_brief_rir_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRIRRequest{} // BriefRIRRequest Adds support for custom fields and tags. type BriefRIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefRIRRequest) SetDescription(v string) { } func (o BriefRIRRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefRIRRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefRIRRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_role.go b/model_brief_role.go index 165fd7d33..0a99c096f 100644 --- a/model_brief_role.go +++ b/model_brief_role.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefRole{} // BriefRole Adds support for custom fields and tags. type BriefRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` - VlanCount int64 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -265,7 +265,7 @@ func (o *BriefRole) SetVlanCount(v int64) { } func (o BriefRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -312,10 +312,10 @@ func (o *BriefRole) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -383,5 +383,3 @@ func (v *NullableBriefRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_role_request.go b/model_brief_role_request.go index 3ae5b7752..46b746300 100644 --- a/model_brief_role_request.go +++ b/model_brief_role_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefRoleRequest{} // BriefRoleRequest Adds support for custom fields and tags. type BriefRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefRoleRequest) SetDescription(v string) { } func (o BriefRoleRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefRoleRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefRoleRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_site.go b/model_brief_site.go index 34bd9c466..ef79d8ff1 100644 --- a/model_brief_site.go +++ b/model_brief_site.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefSite{} // BriefSite Adds support for custom fields and tags. type BriefSite struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *BriefSite) SetDescription(v string) { } func (o BriefSite) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -249,10 +249,10 @@ func (o *BriefSite) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -318,5 +318,3 @@ func (v *NullableBriefSite) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_site_group.go b/model_brief_site_group.go index 134ace94e..543e0482c 100644 --- a/model_brief_site_group.go +++ b/model_brief_site_group.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefSiteGroup{} // BriefSiteGroup Extends PrimaryModelSerializer to include MPTT support. type BriefSiteGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - SiteCount int32 `json:"site_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + SiteCount int32 `json:"site_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,7 @@ func (o *BriefSiteGroup) SetDepth(v int32) { } func (o BriefSiteGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -304,10 +304,10 @@ func (o *BriefSiteGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -375,5 +375,3 @@ func (v *NullableBriefSiteGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_site_group_request.go b/model_brief_site_group_request.go index 77aa4f891..c102e6c37 100644 --- a/model_brief_site_group_request.go +++ b/model_brief_site_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefSiteGroupRequest{} // BriefSiteGroupRequest Extends PrimaryModelSerializer to include MPTT support. type BriefSiteGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefSiteGroupRequest) SetDescription(v string) { } func (o BriefSiteGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefSiteGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefSiteGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_site_request.go b/model_brief_site_request.go index aa567e97d..696a8caff 100644 --- a/model_brief_site_request.go +++ b/model_brief_site_request.go @@ -21,9 +21,9 @@ var _ MappedNullable = &BriefSiteRequest{} // BriefSiteRequest Adds support for custom fields and tags. type BriefSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,7 @@ func (o *BriefSiteRequest) SetDescription(v string) { } func (o BriefSiteRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -165,10 +165,10 @@ func (o *BriefSiteRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -231,5 +231,3 @@ func (v *NullableBriefSiteRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tenant.go b/model_brief_tenant.go index 0877cf653..851c0d954 100644 --- a/model_brief_tenant.go +++ b/model_brief_tenant.go @@ -20,12 +20,12 @@ var _ MappedNullable = &BriefTenant{} // BriefTenant Adds support for custom fields and tags. type BriefTenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *BriefTenant) SetDescription(v string) { } func (o BriefTenant) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *BriefTenant) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableBriefTenant) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go index e3e10cf88..5b79f74cd 100644 --- a/model_brief_tenant_group.go +++ b/model_brief_tenant_group.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefTenantGroup{} // BriefTenantGroup Extends PrimaryModelSerializer to include MPTT support. type BriefTenantGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - TenantCount int32 `json:"tenant_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + TenantCount int32 `json:"tenant_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,7 @@ func (o *BriefTenantGroup) SetDepth(v int32) { } func (o BriefTenantGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -304,10 +304,10 @@ func (o *BriefTenantGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -375,5 +375,3 @@ func (v *NullableBriefTenantGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tenant_group_request.go b/model_brief_tenant_group_request.go index f80f9a426..c522e318e 100644 --- a/model_brief_tenant_group_request.go +++ b/model_brief_tenant_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefTenantGroupRequest{} // BriefTenantGroupRequest Extends PrimaryModelSerializer to include MPTT support. type BriefTenantGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefTenantGroupRequest) SetDescription(v string) { } func (o BriefTenantGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefTenantGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefTenantGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tenant_request.go b/model_brief_tenant_request.go index d0b84a90a..a5ebf7d19 100644 --- a/model_brief_tenant_request.go +++ b/model_brief_tenant_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefTenantRequest{} // BriefTenantRequest Adds support for custom fields and tags. type BriefTenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefTenantRequest) SetDescription(v string) { } func (o BriefTenantRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefTenantRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefTenantRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tunnel.go b/model_brief_tunnel.go index 6923ffd96..3007657ee 100644 --- a/model_brief_tunnel.go +++ b/model_brief_tunnel.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefTunnel{} // BriefTunnel Adds support for custom fields and tags. type BriefTunnel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefTunnel) SetDescription(v string) { } func (o BriefTunnel) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefTunnel) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefTunnel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go index f08cc5639..438f8159f 100644 --- a/model_brief_tunnel_group.go +++ b/model_brief_tunnel_group.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefTunnelGroup{} // BriefTunnelGroup Adds support for custom fields and tags. type BriefTunnelGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - TunnelCount int64 `json:"tunnel_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + TunnelCount int64 `json:"tunnel_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefTunnelGroup) SetTunnelCount(v int64) { } func (o BriefTunnelGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefTunnelGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefTunnelGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tunnel_group_request.go b/model_brief_tunnel_group_request.go index 77fafcefd..c8ec8a4c4 100644 --- a/model_brief_tunnel_group_request.go +++ b/model_brief_tunnel_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefTunnelGroupRequest{} // BriefTunnelGroupRequest Adds support for custom fields and tags. type BriefTunnelGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefTunnelGroupRequest) SetDescription(v string) { } func (o BriefTunnelGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefTunnelGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefTunnelGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_tunnel_request.go b/model_brief_tunnel_request.go index 61cf4ae9e..a9a19f8e7 100644 --- a/model_brief_tunnel_request.go +++ b/model_brief_tunnel_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefTunnelRequest{} // BriefTunnelRequest Adds support for custom fields and tags. type BriefTunnelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefTunnelRequest) SetDescription(v string) { } func (o BriefTunnelRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefTunnelRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefTunnelRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_user.go b/model_brief_user.go index d9c3fade5..efcc6491e 100644 --- a/model_brief_user.go +++ b/model_brief_user.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefUser{} // BriefUser Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefUser struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` AdditionalProperties map[string]interface{} } @@ -148,7 +148,7 @@ func (o *BriefUser) SetUsername(v string) { } func (o BriefUser) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -185,10 +185,10 @@ func (o *BriefUser) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -252,5 +252,3 @@ func (v *NullableBriefUser) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_user_request.go b/model_brief_user_request.go index 45097d524..09f699613 100644 --- a/model_brief_user_request.go +++ b/model_brief_user_request.go @@ -21,7 +21,7 @@ var _ MappedNullable = &BriefUserRequest{} // BriefUserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BriefUserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` AdditionalProperties map[string]interface{} } @@ -70,7 +70,7 @@ func (o *BriefUserRequest) SetUsername(v string) { } func (o BriefUserRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -101,10 +101,10 @@ func (o *BriefUserRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -165,5 +165,3 @@ func (v *NullableBriefUserRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go index 0c265b140..2db268c5e 100644 --- a/model_brief_virtual_chassis.go +++ b/model_brief_virtual_chassis.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVirtualChassis{} // BriefVirtualChassis Adds support for custom fields and tags. type BriefVirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - MemberCount int32 `json:"member_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + MemberCount int32 `json:"member_count"` AdditionalProperties map[string]interface{} } @@ -182,6 +182,7 @@ func (o *BriefVirtualChassis) HasMaster() bool { func (o *BriefVirtualChassis) SetMaster(v NestedDevice) { o.Master.Set(&v) } + // SetMasterNil sets the value for Master to be an explicit nil func (o *BriefVirtualChassis) SetMasterNil() { o.Master.Set(nil) @@ -249,7 +250,7 @@ func (o *BriefVirtualChassis) SetMemberCount(v int32) { } func (o BriefVirtualChassis) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -294,10 +295,10 @@ func (o *BriefVirtualChassis) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -364,5 +365,3 @@ func (v *NullableBriefVirtualChassis) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_virtual_chassis_request.go b/model_brief_virtual_chassis_request.go index f588ed481..d9a22957e 100644 --- a/model_brief_virtual_chassis_request.go +++ b/model_brief_virtual_chassis_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefVirtualChassisRequest{} // BriefVirtualChassisRequest Adds support for custom fields and tags. type BriefVirtualChassisRequest struct { - Name string `json:"name"` - Master NullableNestedDeviceRequest `json:"master,omitempty"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Master NullableNestedDeviceRequest `json:"master,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,6 +102,7 @@ func (o *BriefVirtualChassisRequest) HasMaster() bool { func (o *BriefVirtualChassisRequest) SetMaster(v NestedDeviceRequest) { o.Master.Set(&v) } + // SetMasterNil sets the value for Master to be an explicit nil func (o *BriefVirtualChassisRequest) SetMasterNil() { o.Master.Set(nil) @@ -145,7 +146,7 @@ func (o *BriefVirtualChassisRequest) SetDescription(v string) { } func (o BriefVirtualChassisRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -182,10 +183,10 @@ func (o *BriefVirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -248,5 +249,3 @@ func (v *NullableBriefVirtualChassisRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_virtual_machine.go b/model_brief_virtual_machine.go index 9f31e83f5..93ea27565 100644 --- a/model_brief_virtual_machine.go +++ b/model_brief_virtual_machine.go @@ -20,11 +20,11 @@ var _ MappedNullable = &BriefVirtualMachine{} // BriefVirtualMachine Adds support for custom fields and tags. type BriefVirtualMachine struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -180,7 +180,7 @@ func (o *BriefVirtualMachine) SetDescription(v string) { } func (o BriefVirtualMachine) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +220,10 @@ func (o *BriefVirtualMachine) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -288,5 +288,3 @@ func (v *NullableBriefVirtualMachine) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_virtual_machine_request.go b/model_brief_virtual_machine_request.go index 4a80df37b..c60396fb5 100644 --- a/model_brief_virtual_machine_request.go +++ b/model_brief_virtual_machine_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &BriefVirtualMachineRequest{} // BriefVirtualMachineRequest Adds support for custom fields and tags. type BriefVirtualMachineRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -102,7 +102,7 @@ func (o *BriefVirtualMachineRequest) SetDescription(v string) { } func (o BriefVirtualMachineRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -136,10 +136,10 @@ func (o *BriefVirtualMachineRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -201,5 +201,3 @@ func (v *NullableBriefVirtualMachineRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_vlan.go b/model_brief_vlan.go index 25497f0e3..86e6f80e7 100644 --- a/model_brief_vlan.go +++ b/model_brief_vlan.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVLAN{} // BriefVLAN Adds support for custom fields and tags. type BriefVLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,7 +207,7 @@ func (o *BriefVLAN) SetDescription(v string) { } func (o BriefVLAN) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -249,10 +249,10 @@ func (o *BriefVLAN) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -318,5 +318,3 @@ func (v *NullableBriefVLAN) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_vlan_group.go b/model_brief_vlan_group.go index 3f925a51e..1d4f446e2 100644 --- a/model_brief_vlan_group.go +++ b/model_brief_vlan_group.go @@ -20,13 +20,13 @@ var _ MappedNullable = &BriefVLANGroup{} // BriefVLANGroup Adds support for custom fields and tags. type BriefVLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - VlanCount int64 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -232,7 +232,7 @@ func (o *BriefVLANGroup) SetVlanCount(v int64) { } func (o BriefVLANGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -276,10 +276,10 @@ func (o *BriefVLANGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -346,5 +346,3 @@ func (v *NullableBriefVLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_vlan_group_request.go b/model_brief_vlan_group_request.go index e1a37c2be..f282a43da 100644 --- a/model_brief_vlan_group_request.go +++ b/model_brief_vlan_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefVLANGroupRequest{} // BriefVLANGroupRequest Adds support for custom fields and tags. type BriefVLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefVLANGroupRequest) SetDescription(v string) { } func (o BriefVLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefVLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_vlan_request.go b/model_brief_vlan_request.go index 8720223bd..2c32c9b7e 100644 --- a/model_brief_vlan_request.go +++ b/model_brief_vlan_request.go @@ -21,9 +21,9 @@ var _ MappedNullable = &BriefVLANRequest{} // BriefVLANRequest Adds support for custom fields and tags. type BriefVLANRequest struct { // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,7 +129,7 @@ func (o *BriefVLANRequest) SetDescription(v string) { } func (o BriefVLANRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -165,10 +165,10 @@ func (o *BriefVLANRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -231,5 +231,3 @@ func (v *NullableBriefVLANRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_vrf.go b/model_brief_vrf.go index a85c3f202..cf8906aae 100644 --- a/model_brief_vrf.go +++ b/model_brief_vrf.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefVRF{} // BriefVRF Adds support for custom fields and tags. type BriefVRF struct { - Id int32 `json:"id"` - Url string `json:"url"` + Id int32 `json:"id"` + Url string `json:"url"` Display string `json:"display"` - Name string `json:"name"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -182,6 +182,7 @@ func (o *BriefVRF) HasRd() bool { func (o *BriefVRF) SetRd(v string) { o.Rd.Set(&v) } + // SetRdNil sets the value for Rd to be an explicit nil func (o *BriefVRF) SetRdNil() { o.Rd.Set(nil) @@ -257,7 +258,7 @@ func (o *BriefVRF) SetPrefixCount(v int64) { } func (o BriefVRF) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -303,10 +304,10 @@ func (o *BriefVRF) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -373,5 +374,3 @@ func (v *NullableBriefVRF) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_vrf_request.go b/model_brief_vrf_request.go index 3e0bccae9..0ac318a1d 100644 --- a/model_brief_vrf_request.go +++ b/model_brief_vrf_request.go @@ -22,8 +22,8 @@ var _ MappedNullable = &BriefVRFRequest{} type BriefVRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -103,6 +103,7 @@ func (o *BriefVRFRequest) HasRd() bool { func (o *BriefVRFRequest) SetRd(v string) { o.Rd.Set(&v) } + // SetRdNil sets the value for Rd to be an explicit nil func (o *BriefVRFRequest) SetRdNil() { o.Rd.Set(nil) @@ -146,7 +147,7 @@ func (o *BriefVRFRequest) SetDescription(v string) { } func (o BriefVRFRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -183,10 +184,10 @@ func (o *BriefVRFRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -249,5 +250,3 @@ func (v *NullableBriefVRFRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go index 7f8f91dea..86d5efca6 100644 --- a/model_brief_wireless_lan_group.go +++ b/model_brief_wireless_lan_group.go @@ -20,14 +20,14 @@ var _ MappedNullable = &BriefWirelessLANGroup{} // BriefWirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. type BriefWirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -258,7 +258,7 @@ func (o *BriefWirelessLANGroup) SetDepth(v int32) { } func (o BriefWirelessLANGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -304,10 +304,10 @@ func (o *BriefWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -375,5 +375,3 @@ func (v *NullableBriefWirelessLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_brief_wireless_lan_group_request.go b/model_brief_wireless_lan_group_request.go index 9fecaf299..34443248a 100644 --- a/model_brief_wireless_lan_group_request.go +++ b/model_brief_wireless_lan_group_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &BriefWirelessLANGroupRequest{} // BriefWirelessLANGroupRequest Extends PrimaryModelSerializer to include MPTT support. type BriefWirelessLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -128,7 +128,7 @@ func (o *BriefWirelessLANGroupRequest) SetDescription(v string) { } func (o BriefWirelessLANGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -164,10 +164,10 @@ func (o *BriefWirelessLANGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -230,5 +230,3 @@ func (v *NullableBriefWirelessLANGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_cable.go b/model_cable.go index c80822dc0..b9a89b5f0 100644 --- a/model_cable.go +++ b/model_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Cable type satisfies the MappedNullable interface at compile time @@ -21,25 +20,11 @@ var _ MappedNullable = &Cable{} // Cable Adds support for custom fields and tags. type Cable struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Type *CableType `json:"type,omitempty"` - ATerminations []GenericObject `json:"a_terminations,omitempty"` - BTerminations []GenericObject `json:"b_terminations,omitempty"` - Status *CableStatus `json:"status,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,14 +34,11 @@ type _Cable Cable // 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 NewCable(id int32, url string, displayUrl string, display string, created NullableTime, lastUpdated NullableTime) *Cable { +func NewCable(id int32, url string, display string) *Cable { this := Cable{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -116,30 +98,6 @@ func (o *Cable) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Cable) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Cable) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Cable) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Cable) GetDisplay() string { if o == nil { @@ -164,177 +122,6 @@ func (o *Cable) SetDisplay(v string) { o.Display = v } -// GetType returns the Type field value if set, zero value otherwise. -func (o *Cable) GetType() CableType { - if o == nil || IsNil(o.Type) { - var ret CableType - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetTypeOk() (*CableType, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *Cable) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given CableType and assigns it to the Type field. -func (o *Cable) SetType(v CableType) { - o.Type = &v -} - -// GetATerminations returns the ATerminations field value if set, zero value otherwise. -func (o *Cable) GetATerminations() []GenericObject { - if o == nil || IsNil(o.ATerminations) { - var ret []GenericObject - return ret - } - return o.ATerminations -} - -// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetATerminationsOk() ([]GenericObject, bool) { - if o == nil || IsNil(o.ATerminations) { - return nil, false - } - return o.ATerminations, true -} - -// HasATerminations returns a boolean if a field has been set. -func (o *Cable) HasATerminations() bool { - if o != nil && !IsNil(o.ATerminations) { - return true - } - - return false -} - -// SetATerminations gets a reference to the given []GenericObject and assigns it to the ATerminations field. -func (o *Cable) SetATerminations(v []GenericObject) { - o.ATerminations = v -} - -// GetBTerminations returns the BTerminations field value if set, zero value otherwise. -func (o *Cable) GetBTerminations() []GenericObject { - if o == nil || IsNil(o.BTerminations) { - var ret []GenericObject - return ret - } - return o.BTerminations -} - -// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetBTerminationsOk() ([]GenericObject, bool) { - if o == nil || IsNil(o.BTerminations) { - return nil, false - } - return o.BTerminations, true -} - -// HasBTerminations returns a boolean if a field has been set. -func (o *Cable) HasBTerminations() bool { - if o != nil && !IsNil(o.BTerminations) { - return true - } - - return false -} - -// SetBTerminations gets a reference to the given []GenericObject and assigns it to the BTerminations field. -func (o *Cable) SetBTerminations(v []GenericObject) { - o.BTerminations = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Cable) GetStatus() CableStatus { - if o == nil || IsNil(o.Status) { - var ret CableStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetStatusOk() (*CableStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Cable) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. -func (o *Cable) SetStatus(v CableStatus) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Cable) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cable) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Cable) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Cable) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Cable) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Cable) UnsetTenant() { - o.Tenant.Unset() -} - // GetLabel returns the Label field value if set, zero value otherwise. func (o *Cable) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -367,124 +154,6 @@ func (o *Cable) SetLabel(v string) { o.Label = &v } -// GetColor returns the Color field value if set, zero value otherwise. -func (o *Cable) GetColor() string { - if o == nil || IsNil(o.Color) { - var ret string - return ret - } - return *o.Color -} - -// GetColorOk returns a tuple with the Color field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetColorOk() (*string, bool) { - if o == nil || IsNil(o.Color) { - return nil, false - } - return o.Color, true -} - -// HasColor returns a boolean if a field has been set. -func (o *Cable) HasColor() bool { - if o != nil && !IsNil(o.Color) { - return true - } - - return false -} - -// SetColor gets a reference to the given string and assigns it to the Color field. -func (o *Cable) SetColor(v string) { - o.Color = &v -} - -// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Cable) GetLength() float64 { - if o == nil || IsNil(o.Length.Get()) { - var ret float64 - return ret - } - return *o.Length.Get() -} - -// GetLengthOk returns a tuple with the Length field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cable) GetLengthOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Length.Get(), o.Length.IsSet() -} - -// HasLength returns a boolean if a field has been set. -func (o *Cable) HasLength() bool { - if o != nil && o.Length.IsSet() { - return true - } - - return false -} - -// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. -func (o *Cable) SetLength(v float64) { - o.Length.Set(&v) -} - -// SetLengthNil sets the value for Length to be an explicit nil -func (o *Cable) SetLengthNil() { - o.Length.Set(nil) -} - -// UnsetLength ensures that no value is present for Length, not even an explicit nil -func (o *Cable) UnsetLength() { - o.Length.Unset() -} - -// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Cable) GetLengthUnit() CableLengthUnit { - if o == nil || IsNil(o.LengthUnit.Get()) { - var ret CableLengthUnit - return ret - } - return *o.LengthUnit.Get() -} - -// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool) { - if o == nil { - return nil, false - } - return o.LengthUnit.Get(), o.LengthUnit.IsSet() -} - -// HasLengthUnit returns a boolean if a field has been set. -func (o *Cable) HasLengthUnit() bool { - if o != nil && o.LengthUnit.IsSet() { - return true - } - - return false -} - -// SetLengthUnit gets a reference to the given NullableCableLengthUnit and assigns it to the LengthUnit field. -func (o *Cable) SetLengthUnit(v CableLengthUnit) { - o.LengthUnit.Set(&v) -} - -// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil -func (o *Cable) SetLengthUnitNil() { - o.LengthUnit.Set(nil) -} - -// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil -func (o *Cable) UnsetLengthUnit() { - o.LengthUnit.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cable) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -517,154 +186,6 @@ func (o *Cable) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Cable) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Cable) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Cable) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Cable) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Cable) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Cable) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Cable) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cable) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Cable) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Cable) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Cable) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cable) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Cable) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Cable) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cable) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Cable) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o Cable) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -677,49 +198,13 @@ func (o Cable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.ATerminations) { - toSerialize["a_terminations"] = o.ATerminations - } - if !IsNil(o.BTerminations) { - toSerialize["b_terminations"] = o.BTerminations - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Color) { - toSerialize["color"] = o.Color - } - if o.Length.IsSet() { - toSerialize["length"] = o.Length.Get() - } - if o.LengthUnit.IsSet() { - toSerialize["length_unit"] = o.LengthUnit.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -735,10 +220,7 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -770,23 +252,9 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "type") - delete(additionalProperties, "a_terminations") - delete(additionalProperties, "b_terminations") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") delete(additionalProperties, "label") - delete(additionalProperties, "color") - delete(additionalProperties, "length") - delete(additionalProperties, "length_unit") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go index 02efbf192..dc34aa744 100644 --- a/model_cable_length_unit.go +++ b/model_cable_length_unit.go @@ -19,8 +19,8 @@ var _ MappedNullable = &CableLengthUnit{} // CableLengthUnit struct for CableLengthUnit type CableLengthUnit struct { - Value *CableLengthUnitValue `json:"value,omitempty"` - Label *CableLengthUnitLabel `json:"label,omitempty"` + Value *CableLengthUnitValue `json:"value,omitempty"` + Label *CableLengthUnitLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CableLengthUnit) SetLabel(v CableLengthUnitLabel) { } func (o CableLengthUnit) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableCableLengthUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go index 081ba0326..56d9ae417 100644 --- a/model_cable_length_unit_label.go +++ b/model_cable_length_unit_label.go @@ -20,12 +20,12 @@ type CableLengthUnitLabel string // List of Cable_length_unit_label const ( - CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers" - CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters" + CABLELENGTHUNITLABEL_KILOMETERS CableLengthUnitLabel = "Kilometers" + CABLELENGTHUNITLABEL_METERS CableLengthUnitLabel = "Meters" CABLELENGTHUNITLABEL_CENTIMETERS CableLengthUnitLabel = "Centimeters" - CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles" - CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet" - CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches" + CABLELENGTHUNITLABEL_MILES CableLengthUnitLabel = "Miles" + CABLELENGTHUNITLABEL_FEET CableLengthUnitLabel = "Feet" + CABLELENGTHUNITLABEL_INCHES CableLengthUnitLabel = "Inches" ) // All allowed values of CableLengthUnitLabel enum @@ -116,4 +116,3 @@ func (v *NullableCableLengthUnitLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cable_length_unit_value.go b/model_cable_length_unit_value.go index 8f227bce1..840cb901c 100644 --- a/model_cable_length_unit_value.go +++ b/model_cable_length_unit_value.go @@ -20,12 +20,12 @@ type CableLengthUnitValue string // List of Cable_length_unit_value const ( - CABLELENGTHUNITVALUE_KM CableLengthUnitValue = "km" - CABLELENGTHUNITVALUE_M CableLengthUnitValue = "m" - CABLELENGTHUNITVALUE_CM CableLengthUnitValue = "cm" - CABLELENGTHUNITVALUE_MI CableLengthUnitValue = "mi" - CABLELENGTHUNITVALUE_FT CableLengthUnitValue = "ft" - CABLELENGTHUNITVALUE_IN CableLengthUnitValue = "in" + CABLELENGTHUNITVALUE_KM CableLengthUnitValue = "km" + CABLELENGTHUNITVALUE_M CableLengthUnitValue = "m" + CABLELENGTHUNITVALUE_CM CableLengthUnitValue = "cm" + CABLELENGTHUNITVALUE_MI CableLengthUnitValue = "mi" + CABLELENGTHUNITVALUE_FT CableLengthUnitValue = "ft" + CABLELENGTHUNITVALUE_IN CableLengthUnitValue = "in" CABLELENGTHUNITVALUE_EMPTY CableLengthUnitValue = "" ) @@ -118,4 +118,3 @@ func (v *NullableCableLengthUnitValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cable_request.go b/model_cable_request.go index 680ac3157..0b4bad8c8 100644 --- a/model_cable_request.go +++ b/model_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,8 @@ var _ MappedNullable = &CableRequest{} // CableRequest Adds support for custom fields and tags. type CableRequest struct { - Type *CableType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *CableStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,177 +43,6 @@ func NewCableRequestWithDefaults() *CableRequest { return &this } -// GetType returns the Type field value if set, zero value otherwise. -func (o *CableRequest) GetType() CableType { - if o == nil || IsNil(o.Type) { - var ret CableType - return ret - } - return *o.Type -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetTypeOk() (*CableType, bool) { - if o == nil || IsNil(o.Type) { - return nil, false - } - return o.Type, true -} - -// HasType returns a boolean if a field has been set. -func (o *CableRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { - return true - } - - return false -} - -// SetType gets a reference to the given CableType and assigns it to the Type field. -func (o *CableRequest) SetType(v CableType) { - o.Type = &v -} - -// GetATerminations returns the ATerminations field value if set, zero value otherwise. -func (o *CableRequest) GetATerminations() []GenericObjectRequest { - if o == nil || IsNil(o.ATerminations) { - var ret []GenericObjectRequest - return ret - } - return o.ATerminations -} - -// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetATerminationsOk() ([]GenericObjectRequest, bool) { - if o == nil || IsNil(o.ATerminations) { - return nil, false - } - return o.ATerminations, true -} - -// HasATerminations returns a boolean if a field has been set. -func (o *CableRequest) HasATerminations() bool { - if o != nil && !IsNil(o.ATerminations) { - return true - } - - return false -} - -// SetATerminations gets a reference to the given []GenericObjectRequest and assigns it to the ATerminations field. -func (o *CableRequest) SetATerminations(v []GenericObjectRequest) { - o.ATerminations = v -} - -// GetBTerminations returns the BTerminations field value if set, zero value otherwise. -func (o *CableRequest) GetBTerminations() []GenericObjectRequest { - if o == nil || IsNil(o.BTerminations) { - var ret []GenericObjectRequest - return ret - } - return o.BTerminations -} - -// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetBTerminationsOk() ([]GenericObjectRequest, bool) { - if o == nil || IsNil(o.BTerminations) { - return nil, false - } - return o.BTerminations, true -} - -// HasBTerminations returns a boolean if a field has been set. -func (o *CableRequest) HasBTerminations() bool { - if o != nil && !IsNil(o.BTerminations) { - return true - } - - return false -} - -// SetBTerminations gets a reference to the given []GenericObjectRequest and assigns it to the BTerminations field. -func (o *CableRequest) SetBTerminations(v []GenericObjectRequest) { - o.BTerminations = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *CableRequest) GetStatus() CableStatusValue { - if o == nil || IsNil(o.Status) { - var ret CableStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *CableRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. -func (o *CableRequest) SetStatus(v CableStatusValue) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CableRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *CableRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *CableRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *CableRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *CableRequest) UnsetTenant() { - o.Tenant.Unset() -} - // GetLabel returns the Label field value if set, zero value otherwise. func (o *CableRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -257,124 +75,6 @@ func (o *CableRequest) SetLabel(v string) { o.Label = &v } -// GetColor returns the Color field value if set, zero value otherwise. -func (o *CableRequest) GetColor() string { - if o == nil || IsNil(o.Color) { - var ret string - return ret - } - return *o.Color -} - -// GetColorOk returns a tuple with the Color field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetColorOk() (*string, bool) { - if o == nil || IsNil(o.Color) { - return nil, false - } - return o.Color, true -} - -// HasColor returns a boolean if a field has been set. -func (o *CableRequest) HasColor() bool { - if o != nil && !IsNil(o.Color) { - return true - } - - return false -} - -// SetColor gets a reference to the given string and assigns it to the Color field. -func (o *CableRequest) SetColor(v string) { - o.Color = &v -} - -// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CableRequest) GetLength() float64 { - if o == nil || IsNil(o.Length.Get()) { - var ret float64 - return ret - } - return *o.Length.Get() -} - -// GetLengthOk returns a tuple with the Length field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CableRequest) GetLengthOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Length.Get(), o.Length.IsSet() -} - -// HasLength returns a boolean if a field has been set. -func (o *CableRequest) HasLength() bool { - if o != nil && o.Length.IsSet() { - return true - } - - return false -} - -// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. -func (o *CableRequest) SetLength(v float64) { - o.Length.Set(&v) -} - -// SetLengthNil sets the value for Length to be an explicit nil -func (o *CableRequest) SetLengthNil() { - o.Length.Set(nil) -} - -// UnsetLength ensures that no value is present for Length, not even an explicit nil -func (o *CableRequest) UnsetLength() { - o.Length.Unset() -} - -// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit { - if o == nil || IsNil(o.LengthUnit.Get()) { - var ret CableRequestLengthUnit - return ret - } - return *o.LengthUnit.Get() -} - -// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { - if o == nil { - return nil, false - } - return o.LengthUnit.Get(), o.LengthUnit.IsSet() -} - -// HasLengthUnit returns a boolean if a field has been set. -func (o *CableRequest) HasLengthUnit() bool { - if o != nil && o.LengthUnit.IsSet() { - return true - } - - return false -} - -// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit) { - o.LengthUnit.Set(&v) -} - -// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil -func (o *CableRequest) SetLengthUnitNil() { - o.LengthUnit.Set(nil) -} - -// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil -func (o *CableRequest) UnsetLengthUnit() { - o.LengthUnit.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *CableRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -407,102 +107,6 @@ func (o *CableRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *CableRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *CableRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *CableRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *CableRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *CableRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *CableRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *CableRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CableRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *CableRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *CableRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o CableRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -513,45 +117,12 @@ func (o CableRequest) MarshalJSON() ([]byte, error) { func (o CableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Type) { - toSerialize["type"] = o.Type - } - if !IsNil(o.ATerminations) { - toSerialize["a_terminations"] = o.ATerminations - } - if !IsNil(o.BTerminations) { - toSerialize["b_terminations"] = o.BTerminations - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } if !IsNil(o.Label) { toSerialize["label"] = o.Label } - if !IsNil(o.Color) { - toSerialize["color"] = o.Color - } - if o.Length.IsSet() { - toSerialize["length"] = o.Length.Get() - } - if o.LengthUnit.IsSet() { - toSerialize["length_unit"] = o.LengthUnit.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -574,19 +145,8 @@ func (o *CableRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "type") - delete(additionalProperties, "a_terminations") - delete(additionalProperties, "b_terminations") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") delete(additionalProperties, "label") - delete(additionalProperties, "color") - delete(additionalProperties, "length") - delete(additionalProperties, "length_unit") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go index 72263943c..be62b6c86 100644 --- a/model_cable_request_length_unit.go +++ b/model_cable_request_length_unit.go @@ -20,12 +20,12 @@ type CableRequestLengthUnit string // List of CableRequest_length_unit const ( - CABLEREQUESTLENGTHUNIT_KM CableRequestLengthUnit = "km" - CABLEREQUESTLENGTHUNIT_M CableRequestLengthUnit = "m" - CABLEREQUESTLENGTHUNIT_CM CableRequestLengthUnit = "cm" - CABLEREQUESTLENGTHUNIT_MI CableRequestLengthUnit = "mi" - CABLEREQUESTLENGTHUNIT_FT CableRequestLengthUnit = "ft" - CABLEREQUESTLENGTHUNIT_IN CableRequestLengthUnit = "in" + CABLEREQUESTLENGTHUNIT_KM CableRequestLengthUnit = "km" + CABLEREQUESTLENGTHUNIT_M CableRequestLengthUnit = "m" + CABLEREQUESTLENGTHUNIT_CM CableRequestLengthUnit = "cm" + CABLEREQUESTLENGTHUNIT_MI CableRequestLengthUnit = "mi" + CABLEREQUESTLENGTHUNIT_FT CableRequestLengthUnit = "ft" + CABLEREQUESTLENGTHUNIT_IN CableRequestLengthUnit = "in" CABLEREQUESTLENGTHUNIT_EMPTY CableRequestLengthUnit = "" ) @@ -118,4 +118,3 @@ func (v *NullableCableRequestLengthUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cable_status.go b/model_cable_status.go index b6a64294f..b8a4505fe 100644 --- a/model_cable_status.go +++ b/model_cable_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &CableStatus{} // CableStatus struct for CableStatus type CableStatus struct { - Value *CableStatusValue `json:"value,omitempty"` - Label *CableStatusLabel `json:"label,omitempty"` + Value *CableStatusValue `json:"value,omitempty"` + Label *CableStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CableStatus) SetLabel(v CableStatusLabel) { } func (o CableStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableCableStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_cable_status_label.go b/model_cable_status_label.go index 6573e7123..9734a9ff1 100644 --- a/model_cable_status_label.go +++ b/model_cable_status_label.go @@ -20,8 +20,8 @@ type CableStatusLabel string // List of Cable_status_label const ( - CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected" - CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned" + CABLESTATUSLABEL_CONNECTED CableStatusLabel = "Connected" + CABLESTATUSLABEL_PLANNED CableStatusLabel = "Planned" CABLESTATUSLABEL_DECOMMISSIONING CableStatusLabel = "Decommissioning" ) @@ -110,4 +110,3 @@ func (v *NullableCableStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cable_status_value.go b/model_cable_status_value.go index ee55ca3f3..95bfe9a1d 100644 --- a/model_cable_status_value.go +++ b/model_cable_status_value.go @@ -20,8 +20,8 @@ type CableStatusValue string // List of Cable_status_value const ( - CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected" - CABLESTATUSVALUE_PLANNED CableStatusValue = "planned" + CABLESTATUSVALUE_CONNECTED CableStatusValue = "connected" + CABLESTATUSVALUE_PLANNED CableStatusValue = "planned" CABLESTATUSVALUE_DECOMMISSIONING CableStatusValue = "decommissioning" ) @@ -110,4 +110,3 @@ func (v *NullableCableStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cable_termination.go b/model_cable_termination.go index 066bfc3a6..3e2427ac6 100644 --- a/model_cable_termination.go +++ b/model_cable_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go index ef4b6ca4e..fb17abb8a 100644 --- a/model_cable_termination_request.go +++ b/model_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_type.go b/model_cable_type.go index 7d0df7a7b..a9abad7cf 100644 --- a/model_cable_type.go +++ b/model_cable_type.go @@ -20,31 +20,31 @@ type CableType string // List of Cable_type const ( - CABLETYPE_CAT3 CableType = "cat3" - CABLETYPE_CAT5 CableType = "cat5" - CABLETYPE_CAT5E CableType = "cat5e" - CABLETYPE_CAT6 CableType = "cat6" - CABLETYPE_CAT6A CableType = "cat6a" - CABLETYPE_CAT7 CableType = "cat7" - CABLETYPE_CAT7A CableType = "cat7a" - CABLETYPE_CAT8 CableType = "cat8" - CABLETYPE_DAC_ACTIVE CableType = "dac-active" + CABLETYPE_CAT3 CableType = "cat3" + CABLETYPE_CAT5 CableType = "cat5" + CABLETYPE_CAT5E CableType = "cat5e" + CABLETYPE_CAT6 CableType = "cat6" + CABLETYPE_CAT6A CableType = "cat6a" + CABLETYPE_CAT7 CableType = "cat7" + CABLETYPE_CAT7A CableType = "cat7a" + CABLETYPE_CAT8 CableType = "cat8" + CABLETYPE_DAC_ACTIVE CableType = "dac-active" CABLETYPE_DAC_PASSIVE CableType = "dac-passive" CABLETYPE_MRJ21_TRUNK CableType = "mrj21-trunk" - CABLETYPE_COAXIAL CableType = "coaxial" - CABLETYPE_MMF CableType = "mmf" - CABLETYPE_MMF_OM1 CableType = "mmf-om1" - CABLETYPE_MMF_OM2 CableType = "mmf-om2" - CABLETYPE_MMF_OM3 CableType = "mmf-om3" - CABLETYPE_MMF_OM4 CableType = "mmf-om4" - CABLETYPE_MMF_OM5 CableType = "mmf-om5" - CABLETYPE_SMF CableType = "smf" - CABLETYPE_SMF_OS1 CableType = "smf-os1" - CABLETYPE_SMF_OS2 CableType = "smf-os2" - CABLETYPE_AOC CableType = "aoc" - CABLETYPE_USB CableType = "usb" - CABLETYPE_POWER CableType = "power" - CABLETYPE_EMPTY CableType = "" + CABLETYPE_COAXIAL CableType = "coaxial" + CABLETYPE_MMF CableType = "mmf" + CABLETYPE_MMF_OM1 CableType = "mmf-om1" + CABLETYPE_MMF_OM2 CableType = "mmf-om2" + CABLETYPE_MMF_OM3 CableType = "mmf-om3" + CABLETYPE_MMF_OM4 CableType = "mmf-om4" + CABLETYPE_MMF_OM5 CableType = "mmf-om5" + CABLETYPE_SMF CableType = "smf" + CABLETYPE_SMF_OS1 CableType = "smf-os1" + CABLETYPE_SMF_OS2 CableType = "smf-os2" + CABLETYPE_AOC CableType = "aoc" + CABLETYPE_USB CableType = "usb" + CABLETYPE_POWER CableType = "power" + CABLETYPE_EMPTY CableType = "" ) // All allowed values of CableType enum @@ -154,4 +154,3 @@ func (v *NullableCableType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_circuit.go b/model_circuit.go index b6d3f1b15..bd64655eb 100644 --- a/model_circuit.go +++ b/model_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Circuit type satisfies the MappedNullable interface at compile time @@ -21,30 +20,12 @@ var _ MappedNullable = &Circuit{} // Circuit Adds support for custom fields and tags. type Circuit struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Provider BriefProvider `json:"provider"` - ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"` - Type BriefCircuitType `json:"type"` - Status *CircuitStatus `json:"status,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` - // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - TerminationA NullableCircuitCircuitTermination `json:"termination_a"` - TerminationZ NullableCircuitCircuitTermination `json:"termination_z"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"` + Cid string `json:"cid"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,19 +35,12 @@ type _Circuit Circuit // 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 NewCircuit(id int32, url string, displayUrl string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime) *Circuit { +func NewCircuit(id int32, url string, display string, cid string) *Circuit { this := Circuit{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Cid = cid - this.Provider = provider - this.Type = type_ - this.TerminationA = terminationA - this.TerminationZ = terminationZ - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -126,30 +100,6 @@ func (o *Circuit) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Circuit) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Circuit) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Circuit) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Circuit) GetDisplay() string { if o == nil { @@ -198,301 +148,6 @@ func (o *Circuit) SetCid(v string) { o.Cid = v } -// GetProvider returns the Provider field value -func (o *Circuit) GetProvider() BriefProvider { - if o == nil { - var ret BriefProvider - return ret - } - - return o.Provider -} - -// GetProviderOk returns a tuple with the Provider field value -// and a boolean to check if the value has been set. -func (o *Circuit) GetProviderOk() (*BriefProvider, bool) { - if o == nil { - return nil, false - } - return &o.Provider, true -} - -// SetProvider sets field value -func (o *Circuit) SetProvider(v BriefProvider) { - o.Provider = v -} - -// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Circuit) GetProviderAccount() BriefProviderAccount { - if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret BriefProviderAccount - return ret - } - return *o.ProviderAccount.Get() -} - -// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool) { - if o == nil { - return nil, false - } - return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() -} - -// HasProviderAccount returns a boolean if a field has been set. -func (o *Circuit) HasProviderAccount() bool { - if o != nil && o.ProviderAccount.IsSet() { - return true - } - - return false -} - -// SetProviderAccount gets a reference to the given NullableBriefProviderAccount and assigns it to the ProviderAccount field. -func (o *Circuit) SetProviderAccount(v BriefProviderAccount) { - o.ProviderAccount.Set(&v) -} - -// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil -func (o *Circuit) SetProviderAccountNil() { - o.ProviderAccount.Set(nil) -} - -// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil -func (o *Circuit) UnsetProviderAccount() { - o.ProviderAccount.Unset() -} - -// GetType returns the Type field value -func (o *Circuit) GetType() BriefCircuitType { - if o == nil { - var ret BriefCircuitType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *Circuit) SetType(v BriefCircuitType) { - o.Type = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Circuit) GetStatus() CircuitStatus { - if o == nil || IsNil(o.Status) { - var ret CircuitStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Circuit) GetStatusOk() (*CircuitStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Circuit) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given CircuitStatus and assigns it to the Status field. -func (o *Circuit) SetStatus(v CircuitStatus) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Circuit) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Circuit) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Circuit) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Circuit) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Circuit) UnsetTenant() { - o.Tenant.Unset() -} - -// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Circuit) GetInstallDate() string { - if o == nil || IsNil(o.InstallDate.Get()) { - var ret string - return ret - } - return *o.InstallDate.Get() -} - -// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetInstallDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.InstallDate.Get(), o.InstallDate.IsSet() -} - -// HasInstallDate returns a boolean if a field has been set. -func (o *Circuit) HasInstallDate() bool { - if o != nil && o.InstallDate.IsSet() { - return true - } - - return false -} - -// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. -func (o *Circuit) SetInstallDate(v string) { - o.InstallDate.Set(&v) -} - -// SetInstallDateNil sets the value for InstallDate to be an explicit nil -func (o *Circuit) SetInstallDateNil() { - o.InstallDate.Set(nil) -} - -// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil -func (o *Circuit) UnsetInstallDate() { - o.InstallDate.Unset() -} - -// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Circuit) GetTerminationDate() string { - if o == nil || IsNil(o.TerminationDate.Get()) { - var ret string - return ret - } - return *o.TerminationDate.Get() -} - -// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetTerminationDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.TerminationDate.Get(), o.TerminationDate.IsSet() -} - -// HasTerminationDate returns a boolean if a field has been set. -func (o *Circuit) HasTerminationDate() bool { - if o != nil && o.TerminationDate.IsSet() { - return true - } - - return false -} - -// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. -func (o *Circuit) SetTerminationDate(v string) { - o.TerminationDate.Set(&v) -} - -// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil -func (o *Circuit) SetTerminationDateNil() { - o.TerminationDate.Set(nil) -} - -// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil -func (o *Circuit) UnsetTerminationDate() { - o.TerminationDate.Unset() -} - -// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Circuit) GetCommitRate() int32 { - if o == nil || IsNil(o.CommitRate.Get()) { - var ret int32 - return ret - } - return *o.CommitRate.Get() -} - -// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetCommitRateOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.CommitRate.Get(), o.CommitRate.IsSet() -} - -// HasCommitRate returns a boolean if a field has been set. -func (o *Circuit) HasCommitRate() bool { - if o != nil && o.CommitRate.IsSet() { - return true - } - - return false -} - -// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. -func (o *Circuit) SetCommitRate(v int32) { - o.CommitRate.Set(&v) -} - -// SetCommitRateNil sets the value for CommitRate to be an explicit nil -func (o *Circuit) SetCommitRateNil() { - o.CommitRate.Set(nil) -} - -// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil -func (o *Circuit) UnsetCommitRate() { - o.CommitRate.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Circuit) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -525,238 +180,6 @@ func (o *Circuit) SetDescription(v string) { o.Description = &v } -// GetTerminationA returns the TerminationA field value -// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned -func (o *Circuit) GetTerminationA() CircuitCircuitTermination { - if o == nil || o.TerminationA.Get() == nil { - var ret CircuitCircuitTermination - return ret - } - - return *o.TerminationA.Get() -} - -// GetTerminationAOk returns a tuple with the TerminationA field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool) { - if o == nil { - return nil, false - } - return o.TerminationA.Get(), o.TerminationA.IsSet() -} - -// SetTerminationA sets field value -func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) { - o.TerminationA.Set(&v) -} - -// GetTerminationZ returns the TerminationZ field value -// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned -func (o *Circuit) GetTerminationZ() CircuitCircuitTermination { - if o == nil || o.TerminationZ.Get() == nil { - var ret CircuitCircuitTermination - return ret - } - - return *o.TerminationZ.Get() -} - -// GetTerminationZOk returns a tuple with the TerminationZ field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool) { - if o == nil { - return nil, false - } - return o.TerminationZ.Get(), o.TerminationZ.IsSet() -} - -// SetTerminationZ sets field value -func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) { - o.TerminationZ.Set(&v) -} - -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Circuit) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Circuit) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Circuit) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Circuit) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Circuit) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Circuit) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Circuit) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Circuit) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Circuit) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Circuit) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Circuit) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Circuit) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Circuit) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Circuit) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Circuit) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Circuit) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetAssignments returns the Assignments field value if set, zero value otherwise. -func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer { - if o == nil || IsNil(o.Assignments) { - var ret []BriefCircuitGroupAssignmentSerializer - return ret - } - return o.Assignments -} - -// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Circuit) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializer, bool) { - if o == nil || IsNil(o.Assignments) { - return nil, false - } - return o.Assignments, true -} - -// HasAssignments returns a boolean if a field has been set. -func (o *Circuit) HasAssignments() bool { - if o != nil && !IsNil(o.Assignments) { - return true - } - - return false -} - -// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializer and assigns it to the Assignments field. -func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer) { - o.Assignments = v -} - func (o Circuit) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -769,48 +192,11 @@ func (o Circuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid - toSerialize["provider"] = o.Provider - if o.ProviderAccount.IsSet() { - toSerialize["provider_account"] = o.ProviderAccount.Get() - } - toSerialize["type"] = o.Type - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if o.InstallDate.IsSet() { - toSerialize["install_date"] = o.InstallDate.Get() - } - if o.TerminationDate.IsSet() { - toSerialize["termination_date"] = o.TerminationDate.Get() - } - if o.CommitRate.IsSet() { - toSerialize["commit_rate"] = o.CommitRate.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["termination_a"] = o.TerminationA.Get() - toSerialize["termination_z"] = o.TerminationZ.Get() - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - if !IsNil(o.Assignments) { - toSerialize["assignments"] = o.Assignments - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -826,15 +212,8 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "cid", - "provider", - "type", - "termination_a", - "termination_z", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -866,26 +245,9 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "cid") - delete(additionalProperties, "provider") - delete(additionalProperties, "provider_account") - delete(additionalProperties, "type") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") - delete(additionalProperties, "install_date") - delete(additionalProperties, "termination_date") - delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") - delete(additionalProperties, "termination_a") - delete(additionalProperties, "termination_z") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go index fd20f4020..e2dfff0e0 100644 --- a/model_circuit_circuit_termination.go +++ b/model_circuit_circuit_termination.go @@ -20,19 +20,19 @@ var _ MappedNullable = &CircuitCircuitTermination{} // CircuitCircuitTermination Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type CircuitCircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Site NullableBriefSite `json:"site"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Site NullableBriefSite `json:"site"` ProviderNetwork NullableBriefProviderNetwork `json:"provider_network"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` // ID of the local cross-connect - XconnectId *string `json:"xconnect_id,omitempty"` - Description *string `json:"description,omitempty"` + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -241,6 +241,7 @@ func (o *CircuitCircuitTermination) HasPortSpeed() bool { func (o *CircuitCircuitTermination) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } + // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *CircuitCircuitTermination) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -283,6 +284,7 @@ func (o *CircuitCircuitTermination) HasUpstreamSpeed() bool { func (o *CircuitCircuitTermination) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } + // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *CircuitCircuitTermination) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -358,7 +360,7 @@ func (o *CircuitCircuitTermination) SetDescription(v string) { } func (o CircuitCircuitTermination) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -411,10 +413,10 @@ func (o *CircuitCircuitTermination) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -484,5 +486,3 @@ func (v *NullableCircuitCircuitTermination) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go index 3aaa9a31f..3c6665d7c 100644 --- a/model_circuit_circuit_termination_request.go +++ b/model_circuit_circuit_termination_request.go @@ -20,15 +20,15 @@ var _ MappedNullable = &CircuitCircuitTerminationRequest{} // CircuitCircuitTerminationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type CircuitCircuitTerminationRequest struct { - Site NullableBriefSiteRequest `json:"site"` + Site NullableBriefSiteRequest `json:"site"` ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed UpstreamSpeed NullableInt32 `json:"upstream_speed,omitempty"` // ID of the local cross-connect - XconnectId *string `json:"xconnect_id,omitempty"` - Description *string `json:"description,omitempty"` + XconnectId *string `json:"xconnect_id,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -137,6 +137,7 @@ func (o *CircuitCircuitTerminationRequest) HasPortSpeed() bool { func (o *CircuitCircuitTerminationRequest) SetPortSpeed(v int32) { o.PortSpeed.Set(&v) } + // SetPortSpeedNil sets the value for PortSpeed to be an explicit nil func (o *CircuitCircuitTerminationRequest) SetPortSpeedNil() { o.PortSpeed.Set(nil) @@ -179,6 +180,7 @@ func (o *CircuitCircuitTerminationRequest) HasUpstreamSpeed() bool { func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeed(v int32) { o.UpstreamSpeed.Set(&v) } + // SetUpstreamSpeedNil sets the value for UpstreamSpeed to be an explicit nil func (o *CircuitCircuitTerminationRequest) SetUpstreamSpeedNil() { o.UpstreamSpeed.Set(nil) @@ -254,7 +256,7 @@ func (o *CircuitCircuitTerminationRequest) SetDescription(v string) { } func (o CircuitCircuitTerminationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -299,10 +301,10 @@ func (o *CircuitCircuitTerminationRequest) UnmarshalJSON(data []byte) (err error err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -368,5 +370,3 @@ func (v *NullableCircuitCircuitTerminationRequest) UnmarshalJSON(src []byte) err v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_group.go b/model_circuit_group.go index 8e302dbc9..8cb8619ab 100644 --- a/model_circuit_group.go +++ b/model_circuit_group.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the CircuitGroup type satisfies the MappedNullable interface at compile time @@ -21,19 +21,19 @@ var _ MappedNullable = &CircuitGroup{} // CircuitGroup Adds support for custom fields and tags. type CircuitGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int64 `json:"circuit_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -273,6 +273,7 @@ func (o *CircuitGroup) HasTenant() bool { func (o *CircuitGroup) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } + // SetTenantNil sets the value for Tenant to be an explicit nil func (o *CircuitGroup) SetTenantNil() { o.Tenant.Set(nil) @@ -424,7 +425,7 @@ func (o *CircuitGroup) SetCircuitCount(v int64) { } func (o CircuitGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -483,10 +484,10 @@ func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -559,5 +560,3 @@ func (v *NullableCircuitGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_group_assignment.go b/model_circuit_group_assignment.go index 21e86032d..ac8dc7f04 100644 --- a/model_circuit_group_assignment.go +++ b/model_circuit_group_assignment.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the CircuitGroupAssignment type satisfies the MappedNullable interface at compile time @@ -21,16 +21,16 @@ var _ MappedNullable = &CircuitGroupAssignment{} // CircuitGroupAssignment Base serializer for group assignments under CircuitSerializer. type CircuitGroupAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Group BriefCircuitGroup `json:"group"` - Circuit BriefCircuit `json:"circuit"` - Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Group BriefCircuitGroup `json:"group"` + Circuit BriefCircuit `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -322,7 +322,7 @@ func (o *CircuitGroupAssignment) SetLastUpdated(v time.Time) { } func (o CircuitGroupAssignment) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -373,10 +373,10 @@ func (o *CircuitGroupAssignment) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -446,5 +446,3 @@ func (v *NullableCircuitGroupAssignment) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_group_assignment_request.go b/model_circuit_group_assignment_request.go index 0f25ca607..c8d040ee7 100644 --- a/model_circuit_group_assignment_request.go +++ b/model_circuit_group_assignment_request.go @@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitGroupAssignmentRequest{} // CircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. type CircuitGroupAssignmentRequest struct { - Group BriefCircuitGroupRequest `json:"group"` - Circuit BriefCircuitRequest `json:"circuit"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Group BriefCircuitGroupRequest `json:"group"` + Circuit BriefCircuitRequest `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -161,7 +161,7 @@ func (o *CircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { } func (o CircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -200,10 +200,10 @@ func (o *CircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -267,5 +267,3 @@ func (v *NullableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_group_request.go b/model_circuit_group_request.go index d13f3ae9e..2520e790e 100644 --- a/model_circuit_group_request.go +++ b/model_circuit_group_request.go @@ -20,12 +20,12 @@ var _ MappedNullable = &CircuitGroupRequest{} // CircuitGroupRequest Adds support for custom fields and tags. type CircuitGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -162,6 +162,7 @@ func (o *CircuitGroupRequest) HasTenant() bool { func (o *CircuitGroupRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } + // SetTenantNil sets the value for Tenant to be an explicit nil func (o *CircuitGroupRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -237,7 +238,7 @@ func (o *CircuitGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o CircuitGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -282,10 +283,10 @@ func (o *CircuitGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -351,5 +352,3 @@ func (v *NullableCircuitGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_request.go b/model_circuit_request.go index c457e8c2b..f5d44906d 100644 --- a/model_circuit_request.go +++ b/model_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,8 @@ var _ MappedNullable = &CircuitRequest{} // CircuitRequest Adds support for custom fields and tags. type CircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider BriefProviderRequest `json:"provider"` - ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` - Type BriefCircuitTypeRequest `json:"type"` - Status *CircuitStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` - // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` + Cid string `json:"cid"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,11 +32,9 @@ type _CircuitRequest CircuitRequest // 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 NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *CircuitRequest { +func NewCircuitRequest(cid string) *CircuitRequest { this := CircuitRequest{} this.Cid = cid - this.Provider = provider - this.Type = type_ return &this } @@ -85,301 +70,6 @@ func (o *CircuitRequest) SetCid(v string) { o.Cid = v } -// GetProvider returns the Provider field value -func (o *CircuitRequest) GetProvider() BriefProviderRequest { - if o == nil { - var ret BriefProviderRequest - return ret - } - - return o.Provider -} - -// GetProviderOk returns a tuple with the Provider field value -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { - if o == nil { - return nil, false - } - return &o.Provider, true -} - -// SetProvider sets field value -func (o *CircuitRequest) SetProvider(v BriefProviderRequest) { - o.Provider = v -} - -// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest { - if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret BriefProviderAccountRequest - return ret - } - return *o.ProviderAccount.Get() -} - -// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { - if o == nil { - return nil, false - } - return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() -} - -// HasProviderAccount returns a boolean if a field has been set. -func (o *CircuitRequest) HasProviderAccount() bool { - if o != nil && o.ProviderAccount.IsSet() { - return true - } - - return false -} - -// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { - o.ProviderAccount.Set(&v) -} - -// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil -func (o *CircuitRequest) SetProviderAccountNil() { - o.ProviderAccount.Set(nil) -} - -// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil -func (o *CircuitRequest) UnsetProviderAccount() { - o.ProviderAccount.Unset() -} - -// GetType returns the Type field value -func (o *CircuitRequest) GetType() BriefCircuitTypeRequest { - if o == nil { - var ret BriefCircuitTypeRequest - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest) { - o.Type = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *CircuitRequest) GetStatus() CircuitStatusValue { - if o == nil || IsNil(o.Status) { - var ret CircuitStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *CircuitRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. -func (o *CircuitRequest) SetStatus(v CircuitStatusValue) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *CircuitRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *CircuitRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *CircuitRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *CircuitRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitRequest) GetInstallDate() string { - if o == nil || IsNil(o.InstallDate.Get()) { - var ret string - return ret - } - return *o.InstallDate.Get() -} - -// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitRequest) GetInstallDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.InstallDate.Get(), o.InstallDate.IsSet() -} - -// HasInstallDate returns a boolean if a field has been set. -func (o *CircuitRequest) HasInstallDate() bool { - if o != nil && o.InstallDate.IsSet() { - return true - } - - return false -} - -// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. -func (o *CircuitRequest) SetInstallDate(v string) { - o.InstallDate.Set(&v) -} - -// SetInstallDateNil sets the value for InstallDate to be an explicit nil -func (o *CircuitRequest) SetInstallDateNil() { - o.InstallDate.Set(nil) -} - -// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil -func (o *CircuitRequest) UnsetInstallDate() { - o.InstallDate.Unset() -} - -// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitRequest) GetTerminationDate() string { - if o == nil || IsNil(o.TerminationDate.Get()) { - var ret string - return ret - } - return *o.TerminationDate.Get() -} - -// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitRequest) GetTerminationDateOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.TerminationDate.Get(), o.TerminationDate.IsSet() -} - -// HasTerminationDate returns a boolean if a field has been set. -func (o *CircuitRequest) HasTerminationDate() bool { - if o != nil && o.TerminationDate.IsSet() { - return true - } - - return false -} - -// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. -func (o *CircuitRequest) SetTerminationDate(v string) { - o.TerminationDate.Set(&v) -} - -// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil -func (o *CircuitRequest) SetTerminationDateNil() { - o.TerminationDate.Set(nil) -} - -// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil -func (o *CircuitRequest) UnsetTerminationDate() { - o.TerminationDate.Unset() -} - -// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitRequest) GetCommitRate() int32 { - if o == nil || IsNil(o.CommitRate.Get()) { - var ret int32 - return ret - } - return *o.CommitRate.Get() -} - -// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitRequest) GetCommitRateOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.CommitRate.Get(), o.CommitRate.IsSet() -} - -// HasCommitRate returns a boolean if a field has been set. -func (o *CircuitRequest) HasCommitRate() bool { - if o != nil && o.CommitRate.IsSet() { - return true - } - - return false -} - -// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. -func (o *CircuitRequest) SetCommitRate(v int32) { - o.CommitRate.Set(&v) -} - -// SetCommitRateNil sets the value for CommitRate to be an explicit nil -func (o *CircuitRequest) SetCommitRateNil() { - o.CommitRate.Set(nil) -} - -// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil -func (o *CircuitRequest) UnsetCommitRate() { - o.CommitRate.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *CircuitRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -412,134 +102,6 @@ func (o *CircuitRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *CircuitRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *CircuitRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *CircuitRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *CircuitRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *CircuitRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *CircuitRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *CircuitRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *CircuitRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *CircuitRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetAssignments returns the Assignments field value if set, zero value otherwise. -func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { - if o == nil || IsNil(o.Assignments) { - var ret []BriefCircuitGroupAssignmentSerializerRequest - return ret - } - return o.Assignments -} - -// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { - if o == nil || IsNil(o.Assignments) { - return nil, false - } - return o.Assignments, true -} - -// HasAssignments returns a boolean if a field has been set. -func (o *CircuitRequest) HasAssignments() bool { - if o != nil && !IsNil(o.Assignments) { - return true - } - - return false -} - -// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. -func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { - o.Assignments = v -} - func (o CircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -551,41 +113,9 @@ func (o CircuitRequest) MarshalJSON() ([]byte, error) { func (o CircuitRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["cid"] = o.Cid - toSerialize["provider"] = o.Provider - if o.ProviderAccount.IsSet() { - toSerialize["provider_account"] = o.ProviderAccount.Get() - } - toSerialize["type"] = o.Type - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if o.InstallDate.IsSet() { - toSerialize["install_date"] = o.InstallDate.Get() - } - if o.TerminationDate.IsSet() { - toSerialize["termination_date"] = o.TerminationDate.Get() - } - if o.CommitRate.IsSet() { - toSerialize["commit_rate"] = o.CommitRate.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - if !IsNil(o.Assignments) { - toSerialize["assignments"] = o.Assignments - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -600,8 +130,6 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "cid", - "provider", - "type", } allProperties := make(map[string]interface{}) @@ -632,19 +160,7 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "cid") - delete(additionalProperties, "provider") - delete(additionalProperties, "provider_account") - delete(additionalProperties, "type") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") - delete(additionalProperties, "install_date") - delete(additionalProperties, "termination_date") - delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_status.go b/model_circuit_status.go index 3fa6736c2..3ffa86a21 100644 --- a/model_circuit_status.go +++ b/model_circuit_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &CircuitStatus{} // CircuitStatus struct for CircuitStatus type CircuitStatus struct { - Value *CircuitStatusValue `json:"value,omitempty"` - Label *CircuitStatusLabel `json:"label,omitempty"` + Value *CircuitStatusValue `json:"value,omitempty"` + Label *CircuitStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *CircuitStatus) SetLabel(v CircuitStatusLabel) { } func (o CircuitStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableCircuitStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go index 75c455542..6112909d2 100644 --- a/model_circuit_status_label.go +++ b/model_circuit_status_label.go @@ -20,10 +20,10 @@ type CircuitStatusLabel string // List of Circuit_status_label const ( - CIRCUITSTATUSLABEL_PLANNED CircuitStatusLabel = "Planned" - CIRCUITSTATUSLABEL_PROVISIONING CircuitStatusLabel = "Provisioning" - CIRCUITSTATUSLABEL_ACTIVE CircuitStatusLabel = "Active" - CIRCUITSTATUSLABEL_OFFLINE CircuitStatusLabel = "Offline" + CIRCUITSTATUSLABEL_PLANNED CircuitStatusLabel = "Planned" + CIRCUITSTATUSLABEL_PROVISIONING CircuitStatusLabel = "Provisioning" + CIRCUITSTATUSLABEL_ACTIVE CircuitStatusLabel = "Active" + CIRCUITSTATUSLABEL_OFFLINE CircuitStatusLabel = "Offline" CIRCUITSTATUSLABEL_DEPROVISIONING CircuitStatusLabel = "Deprovisioning" CIRCUITSTATUSLABEL_DECOMMISSIONED CircuitStatusLabel = "Decommissioned" ) @@ -116,4 +116,3 @@ func (v *NullableCircuitStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_circuit_status_value.go b/model_circuit_status_value.go index 0b21c4168..f6f5baa28 100644 --- a/model_circuit_status_value.go +++ b/model_circuit_status_value.go @@ -20,10 +20,10 @@ type CircuitStatusValue string // List of Circuit_status_value const ( - CIRCUITSTATUSVALUE_PLANNED CircuitStatusValue = "planned" - CIRCUITSTATUSVALUE_PROVISIONING CircuitStatusValue = "provisioning" - CIRCUITSTATUSVALUE_ACTIVE CircuitStatusValue = "active" - CIRCUITSTATUSVALUE_OFFLINE CircuitStatusValue = "offline" + CIRCUITSTATUSVALUE_PLANNED CircuitStatusValue = "planned" + CIRCUITSTATUSVALUE_PROVISIONING CircuitStatusValue = "provisioning" + CIRCUITSTATUSVALUE_ACTIVE CircuitStatusValue = "active" + CIRCUITSTATUSVALUE_OFFLINE CircuitStatusValue = "offline" CIRCUITSTATUSVALUE_DEPROVISIONING CircuitStatusValue = "deprovisioning" CIRCUITSTATUSVALUE_DECOMMISSIONED CircuitStatusValue = "decommissioned" ) @@ -116,4 +116,3 @@ func (v *NullableCircuitStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_circuit_termination.go b/model_circuit_termination.go index bf8729627..e9304fcbe 100644 --- a/model_circuit_termination.go +++ b/model_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,13 @@ var _ MappedNullable = &CircuitTermination{} // CircuitTermination Adds support for custom fields and tags. type CircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Circuit BriefCircuit `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableBriefSite `json:"site,omitempty"` - ProviderNetwork NullableBriefProviderNetwork `json:"provider_network,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Circuit Circuit `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableSite `json:"site,omitempty"` + ProviderNetwork NullableProviderNetwork `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -39,12 +38,12 @@ type CircuitTermination struct { PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -59,11 +58,10 @@ type _CircuitTermination CircuitTermination // 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 NewCircuitTermination(id int32, url string, displayUrl string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { +func NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { this := CircuitTermination{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Circuit = circuit this.TermSide = termSide @@ -133,30 +131,6 @@ func (o *CircuitTermination) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *CircuitTermination) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *CircuitTermination) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *CircuitTermination) GetDisplay() string { if o == nil { @@ -182,9 +156,9 @@ func (o *CircuitTermination) SetDisplay(v string) { } // GetCircuit returns the Circuit field value -func (o *CircuitTermination) GetCircuit() BriefCircuit { +func (o *CircuitTermination) GetCircuit() Circuit { if o == nil { - var ret BriefCircuit + var ret Circuit return ret } @@ -193,7 +167,7 @@ func (o *CircuitTermination) GetCircuit() BriefCircuit { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool) { +func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { if o == nil { return nil, false } @@ -201,7 +175,7 @@ func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool) { } // SetCircuit sets field value -func (o *CircuitTermination) SetCircuit(v BriefCircuit) { +func (o *CircuitTermination) SetCircuit(v Circuit) { o.Circuit = v } @@ -230,9 +204,9 @@ func (o *CircuitTermination) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetSite() BriefSite { +func (o *CircuitTermination) GetSite() Site { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSite + var ret Site return ret } return *o.Site.Get() @@ -241,7 +215,7 @@ func (o *CircuitTermination) GetSite() BriefSite { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool) { +func (o *CircuitTermination) GetSiteOk() (*Site, bool) { if o == nil { return nil, false } @@ -257,8 +231,8 @@ func (o *CircuitTermination) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. -func (o *CircuitTermination) SetSite(v BriefSite) { +// SetSite gets a reference to the given NullableSite and assigns it to the Site field. +func (o *CircuitTermination) SetSite(v Site) { o.Site.Set(&v) } @@ -273,9 +247,9 @@ func (o *CircuitTermination) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork { +func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret BriefProviderNetwork + var ret ProviderNetwork return ret } return *o.ProviderNetwork.Get() @@ -284,7 +258,7 @@ func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork { // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { +func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool) { if o == nil { return nil, false } @@ -300,8 +274,8 @@ func (o *CircuitTermination) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableBriefProviderNetwork and assigns it to the ProviderNetwork field. -func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork) { +// SetProviderNetwork gets a reference to the given NullableProviderNetwork and assigns it to the ProviderNetwork field. +func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork) { o.ProviderNetwork.Set(&v) } @@ -530,10 +504,10 @@ func (o *CircuitTermination) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *CircuitTermination) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *CircuitTermination) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -543,7 +517,7 @@ func (o *CircuitTermination) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetCableOk() (*BriefCable, bool) { +func (o *CircuitTermination) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -551,7 +525,7 @@ func (o *CircuitTermination) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *CircuitTermination) SetCable(v BriefCable) { +func (o *CircuitTermination) SetCable(v Cable) { o.Cable.Set(&v) } @@ -604,29 +578,27 @@ func (o *CircuitTermination) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *CircuitTermination) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CircuitTermination) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *CircuitTermination) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetTags returns the Tags field value if set, zero value otherwise. @@ -781,7 +753,6 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide @@ -812,7 +783,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -837,7 +808,6 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "circuit", "term_side", @@ -879,7 +849,6 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go index 451b75a18..d8a1b14e4 100644 --- a/model_circuit_termination_request.go +++ b/model_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitTerminationRequest{} // CircuitTerminationRequest Adds support for custom fields and tags. type CircuitTerminationRequest struct { - Circuit BriefCircuitRequest `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit CircuitRequest `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -46,7 +46,7 @@ type _CircuitTerminationRequest CircuitTerminationRequest // 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 NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1) *CircuitTerminationRequest { +func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1) *CircuitTerminationRequest { this := CircuitTerminationRequest{} this.Circuit = circuit this.TermSide = termSide @@ -62,9 +62,9 @@ func NewCircuitTerminationRequestWithDefaults() *CircuitTerminationRequest { } // GetCircuit returns the Circuit field value -func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest { +func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { if o == nil { - var ret BriefCircuitRequest + var ret CircuitRequest return ret } @@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { +func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { if o == nil { return nil, false } @@ -81,7 +81,7 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) } // SetCircuit sets field value -func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { +func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest) { o.Circuit = v } @@ -110,9 +110,9 @@ func (o *CircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest { +func (o *CircuitTerminationRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -121,7 +121,7 @@ func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -137,8 +137,8 @@ func (o *CircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *CircuitTerminationRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -153,9 +153,9 @@ func (o *CircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { +func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret BriefProviderNetworkRequest + var ret ProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -164,7 +164,7 @@ func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkReq // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { +func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -180,8 +180,8 @@ func (o *CircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_circuit_type.go b/model_circuit_type.go index 28e56cb0a..56afd1a84 100644 --- a/model_circuit_type.go +++ b/model_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &CircuitType{} type CircuitType struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,11 +42,10 @@ type _CircuitType CircuitType // 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 NewCircuitType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { +func NewCircuitType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitType { this := CircuitType{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,30 +111,6 @@ func (o *CircuitType) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *CircuitType) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *CircuitType) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *CircuitType) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *CircuitType) GetDisplay() string { if o == nil { @@ -425,7 +399,6 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -459,7 +432,6 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -497,7 +469,6 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go index 048fedb95..48eba514f 100644 --- a/model_circuit_type_request.go +++ b/model_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuits_circuit_group_assignments_list_priority_parameter.go b/model_circuits_circuit_group_assignments_list_priority_parameter.go index a8aa57e32..4d15b73b7 100644 --- a/model_circuits_circuit_group_assignments_list_priority_parameter.go +++ b/model_circuits_circuit_group_assignments_list_priority_parameter.go @@ -20,10 +20,10 @@ type CircuitsCircuitGroupAssignmentsListPriorityParameter string // List of circuits_circuit_group_assignments_list_priority_parameter const ( - CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive" - CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_INACTIVE CircuitsCircuitGroupAssignmentsListPriorityParameter = "inactive" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_PRIMARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "primary" CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_SECONDARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "secondary" - CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary" + CIRCUITSCIRCUITGROUPASSIGNMENTSLISTPRIORITYPARAMETER_TERTIARY CircuitsCircuitGroupAssignmentsListPriorityParameter = "tertiary" ) // All allowed values of CircuitsCircuitGroupAssignmentsListPriorityParameter enum @@ -112,4 +112,3 @@ func (v *NullableCircuitsCircuitGroupAssignmentsListPriorityParameter) Unmarshal v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go index 09cdeaa0f..b4ea69c2c 100644 --- a/model_circuits_circuit_terminations_list_cable_end_parameter.go +++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster.go b/model_cluster.go index a11ca90a5..64f264c1c 100644 --- a/model_cluster.go +++ b/model_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Cluster type satisfies the MappedNullable interface at compile time @@ -21,24 +20,12 @@ var _ MappedNullable = &Cluster{} // Cluster Adds support for custom fields and tags. type Cluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Type BriefClusterType `json:"type"` - Group NullableBriefClusterGroup `json:"group,omitempty"` - Status *ClusterStatus `json:"status,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Site NullableBriefSite `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,16 +35,12 @@ type _Cluster Cluster // 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 NewCluster(id int32, url string, displayUrl string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime) *Cluster { +func NewCluster(id int32, url string, display string, name string) *Cluster { this := Cluster{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Type = type_ - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -117,30 +100,6 @@ func (o *Cluster) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Cluster) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Cluster) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Cluster) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Cluster) GetDisplay() string { if o == nil { @@ -189,191 +148,6 @@ func (o *Cluster) SetName(v string) { o.Name = v } -// GetType returns the Type field value -func (o *Cluster) GetType() BriefClusterType { - if o == nil { - var ret BriefClusterType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *Cluster) GetTypeOk() (*BriefClusterType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *Cluster) SetType(v BriefClusterType) { - o.Type = v -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Cluster) GetGroup() BriefClusterGroup { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefClusterGroup - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *Cluster) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefClusterGroup and assigns it to the Group field. -func (o *Cluster) SetGroup(v BriefClusterGroup) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *Cluster) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *Cluster) UnsetGroup() { - o.Group.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Cluster) GetStatus() ClusterStatus { - if o == nil || IsNil(o.Status) { - var ret ClusterStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cluster) GetStatusOk() (*ClusterStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Cluster) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. -func (o *Cluster) SetStatus(v ClusterStatus) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Cluster) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cluster) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Cluster) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Cluster) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Cluster) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Cluster) UnsetTenant() { - o.Tenant.Unset() -} - -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Cluster) GetSite() BriefSite { - if o == nil || IsNil(o.Site.Get()) { - var ret BriefSite - return ret - } - return *o.Site.Get() -} - -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cluster) GetSiteOk() (*BriefSite, bool) { - if o == nil { - return nil, false - } - return o.Site.Get(), o.Site.IsSet() -} - -// HasSite returns a boolean if a field has been set. -func (o *Cluster) HasSite() bool { - if o != nil && o.Site.IsSet() { - return true - } - - return false -} - -// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. -func (o *Cluster) SetSite(v BriefSite) { - o.Site.Set(&v) -} - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *Cluster) SetSiteNil() { - o.Site.Set(nil) -} - -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *Cluster) UnsetSite() { - o.Site.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cluster) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -406,186 +180,6 @@ func (o *Cluster) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Cluster) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cluster) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Cluster) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Cluster) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Cluster) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cluster) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Cluster) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Cluster) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Cluster) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cluster) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Cluster) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Cluster) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Cluster) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cluster) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Cluster) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Cluster) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Cluster) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. -func (o *Cluster) GetDeviceCount() int64 { - if o == nil || IsNil(o.DeviceCount) { - var ret int64 - return ret - } - return *o.DeviceCount -} - -// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Cluster) GetDeviceCountOk() (*int64, bool) { - if o == nil || IsNil(o.DeviceCount) { - return nil, false - } - return o.DeviceCount, true -} - -// HasDeviceCount returns a boolean if a field has been set. -func (o *Cluster) HasDeviceCount() bool { - if o != nil && !IsNil(o.DeviceCount) { - return true - } - - return false -} - -// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. -func (o *Cluster) SetDeviceCount(v int64) { - o.DeviceCount = &v -} - // GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *Cluster) GetVirtualmachineCount() int64 { if o == nil || IsNil(o.VirtualmachineCount) { @@ -630,39 +224,11 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name - toSerialize["type"] = o.Type - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - if !IsNil(o.DeviceCount) { - toSerialize["device_count"] = o.DeviceCount - } if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } @@ -681,12 +247,8 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "type", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -718,21 +280,9 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") - delete(additionalProperties, "type") - delete(additionalProperties, "group") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") - delete(additionalProperties, "site") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_group.go b/model_cluster_group.go index 00ac37186..9544ec850 100644 --- a/model_cluster_group.go +++ b/model_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &ClusterGroup{} type ClusterGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,11 +41,10 @@ type _ClusterGroup ClusterGroup // 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 NewClusterGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { +func NewClusterGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterGroup { this := ClusterGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -112,30 +110,6 @@ func (o *ClusterGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ClusterGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ClusterGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ClusterGroup) GetDisplay() string { if o == nil { @@ -392,7 +366,6 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -423,7 +396,6 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -461,7 +433,6 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go index b41e192c4..1f9566748 100644 --- a/model_cluster_group_request.go +++ b/model_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_request.go b/model_cluster_request.go index 96cce68a3..a89789ff3 100644 --- a/model_cluster_request.go +++ b/model_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,8 @@ var _ MappedNullable = &ClusterRequest{} // ClusterRequest Adds support for custom fields and tags. type ClusterRequest struct { - Name string `json:"name"` - Type BriefClusterTypeRequest `json:"type"` - Group NullableBriefClusterGroupRequest `json:"group,omitempty"` - Status *ClusterStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,10 +31,9 @@ type _ClusterRequest ClusterRequest // 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 NewClusterRequest(name string, type_ BriefClusterTypeRequest) *ClusterRequest { +func NewClusterRequest(name string) *ClusterRequest { this := ClusterRequest{} this.Name = name - this.Type = type_ return &this } @@ -78,191 +69,6 @@ func (o *ClusterRequest) SetName(v string) { o.Name = v } -// GetType returns the Type field value -func (o *ClusterRequest) GetType() BriefClusterTypeRequest { - if o == nil { - var ret BriefClusterTypeRequest - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *ClusterRequest) SetType(v BriefClusterTypeRequest) { - o.Type = v -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefClusterGroupRequest - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *ClusterRequest) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. -func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *ClusterRequest) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *ClusterRequest) UnsetGroup() { - o.Group.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *ClusterRequest) GetStatus() ClusterStatusValue { - if o == nil || IsNil(o.Status) { - var ret ClusterStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *ClusterRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. -func (o *ClusterRequest) SetStatus(v ClusterStatusValue) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ClusterRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *ClusterRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *ClusterRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *ClusterRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *ClusterRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ClusterRequest) GetSite() BriefSiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest - return ret - } - return *o.Site.Get() -} - -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { - if o == nil { - return nil, false - } - return o.Site.Get(), o.Site.IsSet() -} - -// HasSite returns a boolean if a field has been set. -func (o *ClusterRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { - return true - } - - return false -} - -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *ClusterRequest) SetSite(v BriefSiteRequest) { - o.Site.Set(&v) -} - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *ClusterRequest) SetSiteNil() { - o.Site.Set(nil) -} - -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *ClusterRequest) UnsetSite() { - o.Site.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -295,102 +101,6 @@ func (o *ClusterRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ClusterRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ClusterRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ClusterRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ClusterRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ClusterRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ClusterRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ClusterRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ClusterRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ClusterRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ClusterRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ClusterRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ClusterRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ClusterRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -402,31 +112,9 @@ func (o ClusterRequest) MarshalJSON() ([]byte, error) { func (o ClusterRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - toSerialize["type"] = o.Type - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -441,7 +129,6 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", - "type", } allProperties := make(map[string]interface{}) @@ -472,15 +159,7 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") - delete(additionalProperties, "type") - delete(additionalProperties, "group") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") - delete(additionalProperties, "site") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_status.go b/model_cluster_status.go index 80215c338..b6be09db7 100644 --- a/model_cluster_status.go +++ b/model_cluster_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &ClusterStatus{} // ClusterStatus struct for ClusterStatus type ClusterStatus struct { - Value *ClusterStatusValue `json:"value,omitempty"` - Label *ClusterStatusLabel `json:"label,omitempty"` + Value *ClusterStatusValue `json:"value,omitempty"` + Label *ClusterStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ClusterStatus) SetLabel(v ClusterStatusLabel) { } func (o ClusterStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableClusterStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go index 3b8625454..67cf9f0f3 100644 --- a/model_cluster_status_label.go +++ b/model_cluster_status_label.go @@ -20,11 +20,11 @@ type ClusterStatusLabel string // List of Cluster_status_label const ( - CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned" - CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging" - CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active" + CLUSTERSTATUSLABEL_PLANNED ClusterStatusLabel = "Planned" + CLUSTERSTATUSLABEL_STAGING ClusterStatusLabel = "Staging" + CLUSTERSTATUSLABEL_ACTIVE ClusterStatusLabel = "Active" CLUSTERSTATUSLABEL_DECOMMISSIONING ClusterStatusLabel = "Decommissioning" - CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline" + CLUSTERSTATUSLABEL_OFFLINE ClusterStatusLabel = "Offline" ) // All allowed values of ClusterStatusLabel enum @@ -114,4 +114,3 @@ func (v *NullableClusterStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cluster_status_value.go b/model_cluster_status_value.go index c24c42609..b79145591 100644 --- a/model_cluster_status_value.go +++ b/model_cluster_status_value.go @@ -20,11 +20,11 @@ type ClusterStatusValue string // List of Cluster_status_value const ( - CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned" - CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging" - CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active" + CLUSTERSTATUSVALUE_PLANNED ClusterStatusValue = "planned" + CLUSTERSTATUSVALUE_STAGING ClusterStatusValue = "staging" + CLUSTERSTATUSVALUE_ACTIVE ClusterStatusValue = "active" CLUSTERSTATUSVALUE_DECOMMISSIONING ClusterStatusValue = "decommissioning" - CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline" + CLUSTERSTATUSVALUE_OFFLINE ClusterStatusValue = "offline" ) // All allowed values of ClusterStatusValue enum @@ -114,4 +114,3 @@ func (v *NullableClusterStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_cluster_type.go b/model_cluster_type.go index 89916d06f..df806d509 100644 --- a/model_cluster_type.go +++ b/model_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &ClusterType{} type ClusterType struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,11 +41,10 @@ type _ClusterType ClusterType // 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 NewClusterType(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { +func NewClusterType(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, clusterCount int64) *ClusterType { this := ClusterType{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -112,30 +110,6 @@ func (o *ClusterType) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ClusterType) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ClusterType) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ClusterType) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ClusterType) GetDisplay() string { if o == nil { @@ -392,7 +366,6 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -423,7 +396,6 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -461,7 +433,6 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go index 284d95ad8..a72f53e3b 100644 --- a/model_cluster_type_request.go +++ b/model_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_config_context.go b/model_config_context.go index e37ee4c13..8cfdce327 100644 --- a/model_config_context.go +++ b/model_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,35 +21,34 @@ var _ MappedNullable = &ConfigContext{} // ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []Region `json:"regions,omitempty"` - SiteGroups []SiteGroup `json:"site_groups,omitempty"` - Sites []Site `json:"sites,omitempty"` - Locations []Location `json:"locations,omitempty"` - DeviceTypes []DeviceType `json:"device_types,omitempty"` - Roles []DeviceRole `json:"roles,omitempty"` - Platforms []Platform `json:"platforms,omitempty"` - ClusterTypes []ClusterType `json:"cluster_types,omitempty"` - ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` - Clusters []Cluster `json:"clusters,omitempty"` - TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` - Tenants []Tenant `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *BriefDataSource `json:"data_source,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []Region `json:"regions,omitempty"` + SiteGroups []SiteGroup `json:"site_groups,omitempty"` + Sites []Site `json:"sites,omitempty"` + Locations []Location `json:"locations,omitempty"` + DeviceTypes []DeviceType `json:"device_types,omitempty"` + Roles []DeviceRole `json:"roles,omitempty"` + Platforms []Platform `json:"platforms,omitempty"` + ClusterTypes []ClusterType `json:"cluster_types,omitempty"` + ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` + Clusters []Cluster `json:"clusters,omitempty"` + TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` + Tenants []Tenant `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *DataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile BriefDataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Data interface{} `json:"data"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile DataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Data interface{} `json:"data"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -59,11 +58,10 @@ type _ConfigContext ConfigContext // 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 NewConfigContext(id int32, url string, displayUrl string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { +func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { this := ConfigContext{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.DataPath = dataPath @@ -131,30 +129,6 @@ func (o *ConfigContext) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ConfigContext) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ConfigContext) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ConfigContext) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ConfigContext) GetDisplay() string { if o == nil { @@ -716,9 +690,9 @@ func (o *ConfigContext) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContext) GetDataSource() BriefDataSource { +func (o *ConfigContext) GetDataSource() DataSource { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSource + var ret DataSource return ret } return *o.DataSource @@ -726,7 +700,7 @@ func (o *ConfigContext) GetDataSource() BriefDataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool) { +func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -742,8 +716,8 @@ func (o *ConfigContext) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. -func (o *ConfigContext) SetDataSource(v BriefDataSource) { +// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. +func (o *ConfigContext) SetDataSource(v DataSource) { o.DataSource = &v } @@ -772,9 +746,9 @@ func (o *ConfigContext) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ConfigContext) GetDataFile() BriefDataFile { +func (o *ConfigContext) GetDataFile() DataFile { if o == nil { - var ret BriefDataFile + var ret DataFile return ret } @@ -783,7 +757,7 @@ func (o *ConfigContext) GetDataFile() BriefDataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool) { +func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { if o == nil { return nil, false } @@ -791,7 +765,7 @@ func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool) { } // SetDataFile sets field value -func (o *ConfigContext) SetDataFile(v BriefDataFile) { +func (o *ConfigContext) SetDataFile(v DataFile) { o.DataFile = v } @@ -911,7 +885,6 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Weight) { @@ -988,7 +961,6 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "data_path", @@ -1028,7 +1000,6 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "weight") diff --git a/model_config_context_request.go b/model_config_context_request.go index 6ea6e7b5c..86b8fad88 100644 --- a/model_config_context_request.go +++ b/model_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &ConfigContextRequest{} // ConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContextRequest struct { - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *DataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -600,9 +600,9 @@ func (o *ConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest { +func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSourceRequest + var ret DataSourceRequest return ret } return *o.DataSource @@ -610,7 +610,7 @@ func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { +func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -626,8 +626,8 @@ func (o *ConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. -func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { +// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. +func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest) { o.DataSource = &v } diff --git a/model_config_template.go b/model_config_template.go index 415fa1a07..3995c0dbd 100644 --- a/model_config_template.go +++ b/model_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the ConfigTemplate type satisfies the MappedNullable interface at compile time @@ -21,24 +20,11 @@ var _ MappedNullable = &ConfigTemplate{} // ConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - // Any additional parameters to pass when constructing the Jinja2 environment. - EnvironmentParams interface{} `json:"environment_params,omitempty"` - // Jinja2 template code. - TemplateCode string `json:"template_code"` - DataSource *BriefDataSource `json:"data_source,omitempty"` - // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile *BriefDataFile `json:"data_file,omitempty"` - DataSynced NullableTime `json:"data_synced"` - Tags []NestedTag `json:"tags,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,18 +34,12 @@ type _ConfigTemplate ConfigTemplate // 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 NewConfigTemplate(id int32, url string, displayUrl string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate { +func NewConfigTemplate(id int32, url string, display string, name string) *ConfigTemplate { this := ConfigTemplate{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.TemplateCode = templateCode - this.DataPath = dataPath - this.DataSynced = dataSynced - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -119,30 +99,6 @@ func (o *ConfigTemplate) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ConfigTemplate) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ConfigTemplate) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ConfigTemplate) GetDisplay() string { if o == nil { @@ -223,261 +179,6 @@ func (o *ConfigTemplate) SetDescription(v string) { o.Description = &v } -// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConfigTemplate) GetEnvironmentParams() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.EnvironmentParams -} - -// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool) { - if o == nil || IsNil(o.EnvironmentParams) { - return nil, false - } - return &o.EnvironmentParams, true -} - -// HasEnvironmentParams returns a boolean if a field has been set. -func (o *ConfigTemplate) HasEnvironmentParams() bool { - if o != nil && !IsNil(o.EnvironmentParams) { - return true - } - - return false -} - -// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. -func (o *ConfigTemplate) SetEnvironmentParams(v interface{}) { - o.EnvironmentParams = v -} - -// GetTemplateCode returns the TemplateCode field value -func (o *ConfigTemplate) GetTemplateCode() string { - if o == nil { - var ret string - return ret - } - - return o.TemplateCode -} - -// GetTemplateCodeOk returns a tuple with the TemplateCode field value -// and a boolean to check if the value has been set. -func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TemplateCode, true -} - -// SetTemplateCode sets field value -func (o *ConfigTemplate) SetTemplateCode(v string) { - o.TemplateCode = v -} - -// GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigTemplate) GetDataSource() BriefDataSource { - if o == nil || IsNil(o.DataSource) { - var ret BriefDataSource - return ret - } - return *o.DataSource -} - -// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool) { - if o == nil || IsNil(o.DataSource) { - return nil, false - } - return o.DataSource, true -} - -// HasDataSource returns a boolean if a field has been set. -func (o *ConfigTemplate) HasDataSource() bool { - if o != nil && !IsNil(o.DataSource) { - return true - } - - return false -} - -// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. -func (o *ConfigTemplate) SetDataSource(v BriefDataSource) { - o.DataSource = &v -} - -// GetDataPath returns the DataPath field value -func (o *ConfigTemplate) GetDataPath() string { - if o == nil { - var ret string - return ret - } - - return o.DataPath -} - -// GetDataPathOk returns a tuple with the DataPath field value -// and a boolean to check if the value has been set. -func (o *ConfigTemplate) GetDataPathOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DataPath, true -} - -// SetDataPath sets field value -func (o *ConfigTemplate) SetDataPath(v string) { - o.DataPath = v -} - -// GetDataFile returns the DataFile field value if set, zero value otherwise. -func (o *ConfigTemplate) GetDataFile() BriefDataFile { - if o == nil || IsNil(o.DataFile) { - var ret BriefDataFile - return ret - } - return *o.DataFile -} - -// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool) { - if o == nil || IsNil(o.DataFile) { - return nil, false - } - return o.DataFile, true -} - -// HasDataFile returns a boolean if a field has been set. -func (o *ConfigTemplate) HasDataFile() bool { - if o != nil && !IsNil(o.DataFile) { - return true - } - - return false -} - -// SetDataFile gets a reference to the given BriefDataFile and assigns it to the DataFile field. -func (o *ConfigTemplate) SetDataFile(v BriefDataFile) { - o.DataFile = &v -} - -// GetDataSynced returns the DataSynced field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ConfigTemplate) GetDataSynced() time.Time { - if o == nil || o.DataSynced.Get() == nil { - var ret time.Time - return ret - } - - return *o.DataSynced.Get() -} - -// GetDataSyncedOk returns a tuple with the DataSynced field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.DataSynced.Get(), o.DataSynced.IsSet() -} - -// SetDataSynced sets field value -func (o *ConfigTemplate) SetDataSynced(v time.Time) { - o.DataSynced.Set(&v) -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ConfigTemplate) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigTemplate) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ConfigTemplate) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *ConfigTemplate) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ConfigTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *ConfigTemplate) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ConfigTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *ConfigTemplate) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o ConfigTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -490,29 +191,11 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if o.EnvironmentParams != nil { - toSerialize["environment_params"] = o.EnvironmentParams - } - toSerialize["template_code"] = o.TemplateCode - if !IsNil(o.DataSource) { - toSerialize["data_source"] = o.DataSource - } - toSerialize["data_path"] = o.DataPath - if !IsNil(o.DataFile) { - toSerialize["data_file"] = o.DataFile - } - toSerialize["data_synced"] = o.DataSynced.Get() - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -528,14 +211,8 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "template_code", - "data_path", - "data_synced", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -567,19 +244,9 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "environment_params") - delete(additionalProperties, "template_code") - delete(additionalProperties, "data_source") - delete(additionalProperties, "data_path") - delete(additionalProperties, "data_file") - delete(additionalProperties, "data_synced") - delete(additionalProperties, "tags") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_config_template_request.go b/model_config_template_request.go index cd7bf0ee5..916c0e491 100644 --- a/model_config_template_request.go +++ b/model_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,8 @@ var _ MappedNullable = &ConfigTemplateRequest{} // ConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplateRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - // Any additional parameters to pass when constructing the Jinja2 environment. - EnvironmentParams interface{} `json:"environment_params,omitempty"` - // Jinja2 template code. - TemplateCode string `json:"template_code"` - DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,10 +31,9 @@ type _ConfigTemplateRequest ConfigTemplateRequest // 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 NewConfigTemplateRequest(name string, templateCode string) *ConfigTemplateRequest { +func NewConfigTemplateRequest(name string) *ConfigTemplateRequest { this := ConfigTemplateRequest{} this.Name = name - this.TemplateCode = templateCode return &this } @@ -108,127 +101,6 @@ func (o *ConfigTemplateRequest) SetDescription(v string) { o.Description = &v } -// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.EnvironmentParams -} - -// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) { - if o == nil || IsNil(o.EnvironmentParams) { - return nil, false - } - return &o.EnvironmentParams, true -} - -// HasEnvironmentParams returns a boolean if a field has been set. -func (o *ConfigTemplateRequest) HasEnvironmentParams() bool { - if o != nil && !IsNil(o.EnvironmentParams) { - return true - } - - return false -} - -// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. -func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{}) { - o.EnvironmentParams = v -} - -// GetTemplateCode returns the TemplateCode field value -func (o *ConfigTemplateRequest) GetTemplateCode() string { - if o == nil { - var ret string - return ret - } - - return o.TemplateCode -} - -// GetTemplateCodeOk returns a tuple with the TemplateCode field value -// and a boolean to check if the value has been set. -func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.TemplateCode, true -} - -// SetTemplateCode sets field value -func (o *ConfigTemplateRequest) SetTemplateCode(v string) { - o.TemplateCode = v -} - -// GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { - if o == nil || IsNil(o.DataSource) { - var ret BriefDataSourceRequest - return ret - } - return *o.DataSource -} - -// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { - if o == nil || IsNil(o.DataSource) { - return nil, false - } - return o.DataSource, true -} - -// HasDataSource returns a boolean if a field has been set. -func (o *ConfigTemplateRequest) HasDataSource() bool { - if o != nil && !IsNil(o.DataSource) { - return true - } - - return false -} - -// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. -func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { - o.DataSource = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ConfigTemplateRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ConfigTemplateRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -243,16 +115,6 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if o.EnvironmentParams != nil { - toSerialize["environment_params"] = o.EnvironmentParams - } - toSerialize["template_code"] = o.TemplateCode - if !IsNil(o.DataSource) { - toSerialize["data_source"] = o.DataSource - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -267,7 +129,6 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", - "template_code", } allProperties := make(map[string]interface{}) @@ -299,10 +160,6 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "environment_params") - delete(additionalProperties, "template_code") - delete(additionalProperties, "data_source") - delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } diff --git a/model_console_port.go b/model_console_port.go index b4ce532ad..c931788c3 100644 --- a/model_console_port.go +++ b/model_console_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,26 @@ var _ MappedNullable = &ConsolePort{} // ConsolePort Adds support for custom fields and tags. type ConsolePort struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Module NullableModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortType `json:"type,omitempty"` Speed NullableConsolePortSpeed `json:"speed,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -57,11 +56,10 @@ type _ConsolePort ConsolePort // 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 NewConsolePort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { +func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { this := ConsolePort{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -134,30 +132,6 @@ func (o *ConsolePort) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ConsolePort) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ConsolePort) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ConsolePort) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ConsolePort) GetDisplay() string { if o == nil { @@ -183,9 +157,9 @@ func (o *ConsolePort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsolePort) GetDevice() BriefDevice { +func (o *ConsolePort) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -194,7 +168,7 @@ func (o *ConsolePort) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool) { +func (o *ConsolePort) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -202,14 +176,14 @@ func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *ConsolePort) SetDevice(v BriefDevice) { +func (o *ConsolePort) SetDevice(v Device) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePort) GetModule() BriefModule { +func (o *ConsolePort) GetModule() Module { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule + var ret Module return ret } return *o.Module.Get() @@ -218,7 +192,7 @@ func (o *ConsolePort) GetModule() BriefModule { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetModuleOk() (*BriefModule, bool) { +func (o *ConsolePort) GetModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -234,8 +208,8 @@ func (o *ConsolePort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *ConsolePort) SetModule(v BriefModule) { +// SetModule gets a reference to the given NullableModule and assigns it to the Module field. +func (o *ConsolePort) SetModule(v Module) { o.Module.Set(&v) } @@ -445,10 +419,10 @@ func (o *ConsolePort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *ConsolePort) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *ConsolePort) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -458,7 +432,7 @@ func (o *ConsolePort) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetCableOk() (*BriefCable, bool) { +func (o *ConsolePort) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -466,7 +440,7 @@ func (o *ConsolePort) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *ConsolePort) SetCable(v BriefCable) { +func (o *ConsolePort) SetCable(v Cable) { o.Cable.Set(&v) } @@ -519,33 +493,30 @@ func (o *ConsolePort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *ConsolePort) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetConnectedEndpoints returns the ConnectedEndpoints field value -// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsolePort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -557,9 +528,8 @@ func (o *ConsolePort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.ConnectedEndpoints) { + if o == nil { return nil, false } return o.ConnectedEndpoints, true @@ -571,29 +541,27 @@ func (o *ConsolePort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value -// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetConnectedEndpointsType() string { - if o == nil || o.ConnectedEndpointsType.Get() == nil { + if o == nil { var ret string return ret } - return *o.ConnectedEndpointsType.Get() + return o.ConnectedEndpointsType } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() + return &o.ConnectedEndpointsType, true } // SetConnectedEndpointsType sets field value func (o *ConsolePort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType.Set(&v) + o.ConnectedEndpointsType = v } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -772,7 +740,6 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -797,11 +764,9 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() - if o.ConnectedEndpoints != nil { - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - } - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -827,7 +792,6 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -872,7 +836,6 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_port_request.go b/model_console_port_request.go index 0902b63a1..02bc1a10a 100644 --- a/model_console_port_request.go +++ b/model_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsolePortRequest{} // ConsolePortRequest Adds support for custom fields and tags. type ConsolePortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsolePortRequest ConsolePortRequest // 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 NewConsolePortRequest(device BriefDeviceRequest, name string) *ConsolePortRequest { +func NewConsolePortRequest(device DeviceRequest, name string) *ConsolePortRequest { this := ConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsolePortRequestWithDefaults() *ConsolePortRequest { } // GetDevice returns the Device field value -func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest { +func (o *ConsolePortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest) { +func (o *ConsolePortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortRequest) GetModule() BriefModuleRequest { +func (o *ConsolePortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsolePortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *ConsolePortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *ConsolePortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go index 3961404a1..c00a14247 100644 --- a/model_console_port_request_speed.go +++ b/model_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed.go b/model_console_port_speed.go index 5c6100934..e28484684 100644 --- a/model_console_port_speed.go +++ b/model_console_port_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go index 67a2e9b4d..4a4aaa975 100644 --- a/model_console_port_speed_label.go +++ b/model_console_port_speed_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go index b8422c6b2..814b669e0 100644 --- a/model_console_port_speed_value.go +++ b/model_console_port_speed_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_template.go b/model_console_port_template.go index 44c4231f7..804ed4efc 100644 --- a/model_console_port_template.go +++ b/model_console_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsolePortTemplate{} // ConsolePortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableDeviceType `json:"device_type,omitempty"` + ModuleType NullableModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsolePortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType { +func (o *ConsolePortTemplate) GetDeviceType() DeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType + var ret DeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsolePortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType) { +// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. +func (o *ConsolePortTemplate) SetDeviceType(v DeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsolePortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetModuleType() BriefModuleType { +func (o *ConsolePortTemplate) GetModuleType() ModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType + var ret ModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsolePortTemplate) GetModuleType() BriefModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { +func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsolePortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType) { +// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. +func (o *ConsolePortTemplate) SetModuleType(v ModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go index 8507dbc4c..e3f1100b7 100644 --- a/model_console_port_template_request.go +++ b/model_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsolePortTemplateRequest{} // ConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsolePortTemplateRequestWithDefaults() *ConsolePortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_console_port_type.go b/model_console_port_type.go index 5bb4fc95e..9e92401fc 100644 --- a/model_console_port_type.go +++ b/model_console_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go index f4e5e6676..9e6a3ab15 100644 --- a/model_console_port_type_label.go +++ b/model_console_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go index da45425bd..f9f68676d 100644 --- a/model_console_port_type_value.go +++ b/model_console_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_server_port.go b/model_console_server_port.go index 929c798e8..958e45db0 100644 --- a/model_console_server_port.go +++ b/model_console_server_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,26 @@ var _ MappedNullable = &ConsoleServerPort{} // ConsoleServerPort Adds support for custom fields and tags. type ConsoleServerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Module NullableModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortType `json:"type,omitempty"` Speed NullableConsolePortSpeed `json:"speed,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -57,11 +56,10 @@ type _ConsoleServerPort ConsoleServerPort // 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 NewConsoleServerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { +func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { this := ConsoleServerPort{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -134,30 +132,6 @@ func (o *ConsoleServerPort) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ConsoleServerPort) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ConsoleServerPort) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ConsoleServerPort) GetDisplay() string { if o == nil { @@ -183,9 +157,9 @@ func (o *ConsoleServerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsoleServerPort) GetDevice() BriefDevice { +func (o *ConsoleServerPort) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -194,7 +168,7 @@ func (o *ConsoleServerPort) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool) { +func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -202,14 +176,14 @@ func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *ConsoleServerPort) SetDevice(v BriefDevice) { +func (o *ConsoleServerPort) SetDevice(v Device) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPort) GetModule() BriefModule { +func (o *ConsoleServerPort) GetModule() Module { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule + var ret Module return ret } return *o.Module.Get() @@ -218,7 +192,7 @@ func (o *ConsoleServerPort) GetModule() BriefModule { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool) { +func (o *ConsoleServerPort) GetModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -234,8 +208,8 @@ func (o *ConsoleServerPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *ConsoleServerPort) SetModule(v BriefModule) { +// SetModule gets a reference to the given NullableModule and assigns it to the Module field. +func (o *ConsoleServerPort) SetModule(v Module) { o.Module.Set(&v) } @@ -445,10 +419,10 @@ func (o *ConsoleServerPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *ConsoleServerPort) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *ConsoleServerPort) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -458,7 +432,7 @@ func (o *ConsoleServerPort) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool) { +func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -466,7 +440,7 @@ func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *ConsoleServerPort) SetCable(v BriefCable) { +func (o *ConsoleServerPort) SetCable(v Cable) { o.Cable.Set(&v) } @@ -519,33 +493,30 @@ func (o *ConsoleServerPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *ConsoleServerPort) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetConnectedEndpoints returns the ConnectedEndpoints field value -// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -557,9 +528,8 @@ func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.ConnectedEndpoints) { + if o == nil { return nil, false } return o.ConnectedEndpoints, true @@ -571,29 +541,27 @@ func (o *ConsoleServerPort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value -// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetConnectedEndpointsType() string { - if o == nil || o.ConnectedEndpointsType.Get() == nil { + if o == nil { var ret string return ret } - return *o.ConnectedEndpointsType.Get() + return o.ConnectedEndpointsType } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() + return &o.ConnectedEndpointsType, true } // SetConnectedEndpointsType sets field value func (o *ConsoleServerPort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType.Set(&v) + o.ConnectedEndpointsType = v } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -772,7 +740,6 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -797,11 +764,9 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() - if o.ConnectedEndpoints != nil { - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - } - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -827,7 +792,6 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -872,7 +836,6 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go index b24db5ce7..a51f7782a 100644 --- a/model_console_server_port_request.go +++ b/model_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsoleServerPortRequest{} // ConsoleServerPortRequest Adds support for custom fields and tags. type ConsoleServerPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsoleServerPortRequest ConsoleServerPortRequest // 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 NewConsoleServerPortRequest(device BriefDeviceRequest, name string) *ConsoleServerPortRequest { +func NewConsoleServerPortRequest(device DeviceRequest, name string) *ConsoleServerPortRequest { this := ConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest { } // GetDevice returns the Device field value -func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest { +func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest { +func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go index d84a82a86..1ab6eee1c 100644 --- a/model_console_server_port_template.go +++ b/model_console_server_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsoleServerPortTemplate{} // ConsoleServerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableDeviceType `json:"device_type,omitempty"` + ModuleType NullableModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType { +func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType + var ret DeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType) { +// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsoleServerPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType { +func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType + var ret ModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { +func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType) { +// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go index c947a82f6..bcbbf7a82 100644 --- a/model_console_server_port_template_request.go +++ b/model_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{} // ConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsoleServerPortTemplateRequestWithDefaults() *ConsoleServerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeReques // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeReques // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_contact.go b/model_contact.go index c93339a1d..74e7412d7 100644 --- a/model_contact.go +++ b/model_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Contact type satisfies the MappedNullable interface at compile time @@ -21,23 +20,11 @@ var _ MappedNullable = &Contact{} // Contact Adds support for custom fields and tags. type Contact struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Group NullableBriefContactGroup `json:"group,omitempty"` - Name string `json:"name"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,15 +34,12 @@ type _Contact Contact // 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 NewContact(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *Contact { +func NewContact(id int32, url string, display string, name string) *Contact { this := Contact{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -115,30 +99,6 @@ func (o *Contact) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Contact) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Contact) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Contact) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Contact) GetDisplay() string { if o == nil { @@ -163,49 +123,6 @@ func (o *Contact) SetDisplay(v string) { o.Display = v } -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Contact) GetGroup() BriefContactGroup { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefContactGroup - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Contact) GetGroupOk() (*BriefContactGroup, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *Contact) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefContactGroup and assigns it to the Group field. -func (o *Contact) SetGroup(v BriefContactGroup) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *Contact) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *Contact) UnsetGroup() { - o.Group.Unset() -} - // GetName returns the Name field value func (o *Contact) GetName() string { if o == nil { @@ -230,166 +147,6 @@ func (o *Contact) SetName(v string) { o.Name = v } -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *Contact) GetTitle() string { - if o == nil || IsNil(o.Title) { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetTitleOk() (*string, bool) { - if o == nil || IsNil(o.Title) { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *Contact) HasTitle() bool { - if o != nil && !IsNil(o.Title) { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *Contact) SetTitle(v string) { - o.Title = &v -} - -// GetPhone returns the Phone field value if set, zero value otherwise. -func (o *Contact) GetPhone() string { - if o == nil || IsNil(o.Phone) { - var ret string - return ret - } - return *o.Phone -} - -// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetPhoneOk() (*string, bool) { - if o == nil || IsNil(o.Phone) { - return nil, false - } - return o.Phone, true -} - -// HasPhone returns a boolean if a field has been set. -func (o *Contact) HasPhone() bool { - if o != nil && !IsNil(o.Phone) { - return true - } - - return false -} - -// SetPhone gets a reference to the given string and assigns it to the Phone field. -func (o *Contact) SetPhone(v string) { - o.Phone = &v -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *Contact) GetEmail() string { - if o == nil || IsNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *Contact) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *Contact) SetEmail(v string) { - o.Email = &v -} - -// GetAddress returns the Address field value if set, zero value otherwise. -func (o *Contact) GetAddress() string { - if o == nil || IsNil(o.Address) { - var ret string - return ret - } - return *o.Address -} - -// GetAddressOk returns a tuple with the Address field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetAddressOk() (*string, bool) { - if o == nil || IsNil(o.Address) { - return nil, false - } - return o.Address, true -} - -// HasAddress returns a boolean if a field has been set. -func (o *Contact) HasAddress() bool { - if o != nil && !IsNil(o.Address) { - return true - } - - return false -} - -// SetAddress gets a reference to the given string and assigns it to the Address field. -func (o *Contact) SetAddress(v string) { - o.Address = &v -} - -// GetLink returns the Link field value if set, zero value otherwise. -func (o *Contact) GetLink() string { - if o == nil || IsNil(o.Link) { - var ret string - return ret - } - return *o.Link -} - -// GetLinkOk returns a tuple with the Link field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetLinkOk() (*string, bool) { - if o == nil || IsNil(o.Link) { - return nil, false - } - return o.Link, true -} - -// HasLink returns a boolean if a field has been set. -func (o *Contact) HasLink() bool { - if o != nil && !IsNil(o.Link) { - return true - } - - return false -} - -// SetLink gets a reference to the given string and assigns it to the Link field. -func (o *Contact) SetLink(v string) { - o.Link = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Contact) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -422,154 +179,6 @@ func (o *Contact) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Contact) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Contact) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Contact) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Contact) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Contact) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Contact) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Contact) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Contact) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Contact) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Contact) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Contact) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Contact) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Contact) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Contact) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Contact) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Contact) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o Contact) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -582,41 +191,11 @@ func (o Contact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Title) { - toSerialize["title"] = o.Title - } - if !IsNil(o.Phone) { - toSerialize["phone"] = o.Phone - } - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.Address) { - toSerialize["address"] = o.Address - } - if !IsNil(o.Link) { - toSerialize["link"] = o.Link - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -632,11 +211,8 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -668,21 +244,9 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "group") delete(additionalProperties, "name") - delete(additionalProperties, "title") - delete(additionalProperties, "phone") - delete(additionalProperties, "email") - delete(additionalProperties, "address") - delete(additionalProperties, "link") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_assignment.go b/model_contact_assignment.go index 99017f24c..a62312639 100644 --- a/model_contact_assignment.go +++ b/model_contact_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,19 +21,19 @@ var _ MappedNullable = &ContactAssignment{} // ContactAssignment Adds support for custom fields and tags. type ContactAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object map[string]interface{} `json:"object"` - Contact BriefContact `json:"contact"` - Role NullableBriefContactRole `json:"role,omitempty"` - Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + Contact Contact `json:"contact"` + Role NullableContactRole `json:"role,omitempty"` + Priority *ContactAssignmentPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -43,7 +43,7 @@ type _ContactAssignment ContactAssignment // 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 NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { +func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { this := ContactAssignment{} this.Id = id this.Url = url @@ -210,9 +210,9 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) { } // GetContact returns the Contact field value -func (o *ContactAssignment) GetContact() BriefContact { +func (o *ContactAssignment) GetContact() Contact { if o == nil { - var ret BriefContact + var ret Contact return ret } @@ -221,7 +221,7 @@ func (o *ContactAssignment) GetContact() BriefContact { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetContactOk() (*BriefContact, bool) { +func (o *ContactAssignment) GetContactOk() (*Contact, bool) { if o == nil { return nil, false } @@ -229,14 +229,14 @@ func (o *ContactAssignment) GetContactOk() (*BriefContact, bool) { } // SetContact sets field value -func (o *ContactAssignment) SetContact(v BriefContact) { +func (o *ContactAssignment) SetContact(v Contact) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignment) GetRole() BriefContactRole { +func (o *ContactAssignment) GetRole() ContactRole { if o == nil || IsNil(o.Role.Get()) { - var ret BriefContactRole + var ret ContactRole return ret } return *o.Role.Get() @@ -245,7 +245,7 @@ func (o *ContactAssignment) GetRole() BriefContactRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool) { +func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *ContactAssignment) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefContactRole and assigns it to the Role field. -func (o *ContactAssignment) SetRole(v BriefContactRole) { +// SetRole gets a reference to the given NullableContactRole and assigns it to the Role field. +func (o *ContactAssignment) SetRole(v ContactRole) { o.Role.Set(&v) } @@ -277,9 +277,9 @@ func (o *ContactAssignment) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { +func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { if o == nil || IsNil(o.Priority) { - var ret BriefCircuitGroupAssignmentSerializerPriority + var ret ContactAssignmentPriority return ret } return *o.Priority @@ -287,7 +287,7 @@ func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerP // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { +func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -303,8 +303,8 @@ func (o *ContactAssignment) HasPriority() bool { return false } -// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. -func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { +// SetPriority gets a reference to the given ContactAssignmentPriority and assigns it to the Priority field. +func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority) { o.Priority = &v } diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go index c68bd34ce..8fb3e6e65 100644 --- a/model_contact_assignment_request.go +++ b/model_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ContactAssignmentRequest{} // ContactAssignmentRequest Adds support for custom fields and tags. type ContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact BriefContactRequest `json:"contact"` - Role NullableBriefContactRoleRequest `json:"role,omitempty"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact ContactRequest `json:"contact"` + Role NullableContactRoleRequest `json:"role,omitempty"` + Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _ContactAssignmentRequest ContactAssignmentRequest // 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 NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *ContactAssignmentRequest { +func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *ContactAssignmentRequest { this := ContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *ContactAssignmentRequest) GetContact() BriefContactRequest { +func (o *ContactAssignmentRequest) GetContact() ContactRequest { if o == nil { - var ret BriefContactRequest + var ret ContactRequest return ret } @@ -112,7 +112,7 @@ func (o *ContactAssignmentRequest) GetContact() BriefContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { +func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { } // SetContact sets field value -func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest) { +func (o *ContactAssignmentRequest) SetContact(v ContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest { +func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefContactRoleRequest + var ret ContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { +func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *ContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. -func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { +// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. +func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *ContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { +func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { if o == nil || IsNil(o.Priority) { - var ret BriefCircuitGroupAssignmentSerializerPriorityValue + var ret ContactAssignmentPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSeri // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { +func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *ContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. -func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { +// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. +func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { o.Priority = &v } diff --git a/model_contact_group.go b/model_contact_group.go index 2fd4f8bd9..12c15cf45 100644 --- a/model_contact_group.go +++ b/model_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &ContactGroup{} type ContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -44,11 +43,10 @@ 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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { +func NewContactGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, contactCount int32, depth int32) *ContactGroup { this := ContactGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -115,30 +113,6 @@ func (o *ContactGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ContactGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ContactGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ContactGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ContactGroup) GetDisplay() string { if o == nil { @@ -462,7 +436,6 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -497,7 +470,6 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -536,7 +508,6 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_contact_group_request.go b/model_contact_group_request.go index cd71a09de..9aea2147b 100644 --- a/model_contact_group_request.go +++ b/model_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_contact_request.go b/model_contact_request.go index 27db2b5ff..bb1e2df50 100644 --- a/model_contact_request.go +++ b/model_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,8 @@ var _ MappedNullable = &ContactRequest{} // ContactRequest Adds support for custom fields and tags. type ContactRequest struct { - Group NullableBriefContactGroupRequest `json:"group,omitempty"` - Name string `json:"name"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,49 +45,6 @@ func NewContactRequestWithDefaults() *ContactRequest { return &this } -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactRequest) GetGroup() BriefContactGroupRequest { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefContactGroupRequest - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *ContactRequest) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. -func (o *ContactRequest) SetGroup(v BriefContactGroupRequest) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *ContactRequest) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *ContactRequest) UnsetGroup() { - o.Group.Unset() -} - // GetName returns the Name field value func (o *ContactRequest) GetName() string { if o == nil { @@ -121,166 +69,6 @@ func (o *ContactRequest) SetName(v string) { o.Name = v } -// GetTitle returns the Title field value if set, zero value otherwise. -func (o *ContactRequest) GetTitle() string { - if o == nil || IsNil(o.Title) { - var ret string - return ret - } - return *o.Title -} - -// GetTitleOk returns a tuple with the Title field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetTitleOk() (*string, bool) { - if o == nil || IsNil(o.Title) { - return nil, false - } - return o.Title, true -} - -// HasTitle returns a boolean if a field has been set. -func (o *ContactRequest) HasTitle() bool { - if o != nil && !IsNil(o.Title) { - return true - } - - return false -} - -// SetTitle gets a reference to the given string and assigns it to the Title field. -func (o *ContactRequest) SetTitle(v string) { - o.Title = &v -} - -// GetPhone returns the Phone field value if set, zero value otherwise. -func (o *ContactRequest) GetPhone() string { - if o == nil || IsNil(o.Phone) { - var ret string - return ret - } - return *o.Phone -} - -// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetPhoneOk() (*string, bool) { - if o == nil || IsNil(o.Phone) { - return nil, false - } - return o.Phone, true -} - -// HasPhone returns a boolean if a field has been set. -func (o *ContactRequest) HasPhone() bool { - if o != nil && !IsNil(o.Phone) { - return true - } - - return false -} - -// SetPhone gets a reference to the given string and assigns it to the Phone field. -func (o *ContactRequest) SetPhone(v string) { - o.Phone = &v -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *ContactRequest) GetEmail() string { - if o == nil || IsNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *ContactRequest) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *ContactRequest) SetEmail(v string) { - o.Email = &v -} - -// GetAddress returns the Address field value if set, zero value otherwise. -func (o *ContactRequest) GetAddress() string { - if o == nil || IsNil(o.Address) { - var ret string - return ret - } - return *o.Address -} - -// GetAddressOk returns a tuple with the Address field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetAddressOk() (*string, bool) { - if o == nil || IsNil(o.Address) { - return nil, false - } - return o.Address, true -} - -// HasAddress returns a boolean if a field has been set. -func (o *ContactRequest) HasAddress() bool { - if o != nil && !IsNil(o.Address) { - return true - } - - return false -} - -// SetAddress gets a reference to the given string and assigns it to the Address field. -func (o *ContactRequest) SetAddress(v string) { - o.Address = &v -} - -// GetLink returns the Link field value if set, zero value otherwise. -func (o *ContactRequest) GetLink() string { - if o == nil || IsNil(o.Link) { - var ret string - return ret - } - return *o.Link -} - -// GetLinkOk returns a tuple with the Link field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetLinkOk() (*string, bool) { - if o == nil || IsNil(o.Link) { - return nil, false - } - return o.Link, true -} - -// HasLink returns a boolean if a field has been set. -func (o *ContactRequest) HasLink() bool { - if o != nil && !IsNil(o.Link) { - return true - } - - return false -} - -// SetLink gets a reference to the given string and assigns it to the Link field. -func (o *ContactRequest) SetLink(v string) { - o.Link = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -313,102 +101,6 @@ func (o *ContactRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ContactRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ContactRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ContactRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ContactRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ContactRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ContactRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ContactRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ContactRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ContactRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ContactRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -419,37 +111,10 @@ func (o ContactRequest) MarshalJSON() ([]byte, error) { func (o ContactRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Title) { - toSerialize["title"] = o.Title - } - if !IsNil(o.Phone) { - toSerialize["phone"] = o.Phone - } - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.Address) { - toSerialize["address"] = o.Address - } - if !IsNil(o.Link) { - toSerialize["link"] = o.Link - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -493,17 +158,8 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "group") delete(additionalProperties, "name") - delete(additionalProperties, "title") - delete(additionalProperties, "phone") - delete(additionalProperties, "email") - delete(additionalProperties, "address") - delete(additionalProperties, "link") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role.go b/model_contact_role.go index 748497899..bb4b6f62b 100644 --- a/model_contact_role.go +++ b/model_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the ContactRole type satisfies the MappedNullable interface at compile time @@ -21,17 +20,12 @@ var _ MappedNullable = &ContactRole{} // ContactRole Adds support for custom fields and tags. type ContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,16 +35,13 @@ type _ContactRole ContactRole // 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 NewContactRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *ContactRole { +func NewContactRole(id int32, url string, display string, name string, slug string) *ContactRole { this := ContactRole{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -110,30 +101,6 @@ func (o *ContactRole) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ContactRole) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ContactRole) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ContactRole) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ContactRole) GetDisplay() string { if o == nil { @@ -238,122 +205,6 @@ func (o *ContactRole) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ContactRole) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRole) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ContactRole) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *ContactRole) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ContactRole) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRole) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ContactRole) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ContactRole) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ContactRole) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactRole) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *ContactRole) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ContactRole) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *ContactRole) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o ContactRole) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -366,21 +217,12 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -396,12 +238,9 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -433,15 +272,10 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role_request.go b/model_contact_role_request.go index 88ece951d..c60293780 100644 --- a/model_contact_role_request.go +++ b/model_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,9 @@ var _ MappedNullable = &ContactRoleRequest{} // ContactRoleRequest Adds support for custom fields and tags. type ContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,70 +127,6 @@ func (o *ContactRoleRequest) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ContactRoleRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ContactRoleRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ContactRoleRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ContactRoleRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ContactRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ContactRoleRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ContactRoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -208,12 +142,6 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -261,8 +189,6 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_core_object_changes_list_action_parameter.go b/model_core_object_changes_list_action_parameter.go index c17128e35..b0efb5f51 100644 --- a/model_core_object_changes_list_action_parameter.go +++ b/model_core_object_changes_list_action_parameter.go @@ -110,4 +110,3 @@ func (v *NullableCoreObjectChangesListActionParameter) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_custom_field.go b/model_custom_field.go index ba55e0998..aea0cf477 100644 --- a/model_custom_field.go +++ b/model_custom_field.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &CustomField{} type CustomField struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Type CustomFieldType `json:"type"` @@ -36,10 +35,8 @@ type CustomField struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // This field is required when creating new objects or editing an existing object. + // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` - // The value of this field must be unique for the assigned object - Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` @@ -49,8 +46,6 @@ type CustomField struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` - // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). - RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -58,11 +53,11 @@ type CustomField struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableCustomFieldChoiceSet `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -72,11 +67,10 @@ type _CustomField CustomField // 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 NewCustomField(id int32, url string, displayUrl string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { +func NewCustomField(id int32, url string, display string, objectTypes []string, type_ CustomFieldType, dataType string, name string, created NullableTime, lastUpdated NullableTime) *CustomField { this := CustomField{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Type = type_ @@ -143,30 +137,6 @@ func (o *CustomField) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *CustomField) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *CustomField) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *CustomField) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *CustomField) GetDisplay() string { if o == nil { @@ -458,38 +428,6 @@ func (o *CustomField) SetRequired(v bool) { o.Required = &v } -// GetUnique returns the Unique field value if set, zero value otherwise. -func (o *CustomField) GetUnique() bool { - if o == nil || IsNil(o.Unique) { - var ret bool - return ret - } - return *o.Unique -} - -// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CustomField) GetUniqueOk() (*bool, bool) { - if o == nil || IsNil(o.Unique) { - return nil, false - } - return o.Unique, true -} - -// HasUnique returns a boolean if a field has been set. -func (o *CustomField) HasUnique() bool { - if o != nil && !IsNil(o.Unique) { - return true - } - - return false -} - -// SetUnique gets a reference to the given bool and assigns it to the Unique field. -func (o *CustomField) SetUnique(v bool) { - o.Unique = &v -} - // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomField) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -683,39 +621,6 @@ func (o *CustomField) SetDefault(v interface{}) { o.Default = v } -// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetRelatedObjectFilter() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.RelatedObjectFilter -} - -// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool) { - if o == nil || IsNil(o.RelatedObjectFilter) { - return nil, false - } - return &o.RelatedObjectFilter, true -} - -// HasRelatedObjectFilter returns a boolean if a field has been set. -func (o *CustomField) HasRelatedObjectFilter() bool { - if o != nil && !IsNil(o.RelatedObjectFilter) { - return true - } - - return false -} - -// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. -func (o *CustomField) SetRelatedObjectFilter(v interface{}) { - o.RelatedObjectFilter = v -} - // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomField) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -867,9 +772,9 @@ func (o *CustomField) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet { +func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret BriefCustomFieldChoiceSet + var ret CustomFieldChoiceSet return ret } return *o.ChoiceSet.Get() @@ -878,7 +783,7 @@ func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool) { +func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool) { if o == nil { return nil, false } @@ -894,8 +799,8 @@ func (o *CustomField) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSet and assigns it to the ChoiceSet field. -func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet) { +// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSet and assigns it to the ChoiceSet field. +func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet) { o.ChoiceSet.Set(&v) } @@ -1005,7 +910,6 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["type"] = o.Type @@ -1026,9 +930,6 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } - if !IsNil(o.Unique) { - toSerialize["unique"] = o.Unique - } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -1047,9 +948,6 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } - if o.RelatedObjectFilter != nil { - toSerialize["related_object_filter"] = o.RelatedObjectFilter - } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -1085,7 +983,6 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "object_types", "type", @@ -1124,7 +1021,6 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "type") @@ -1135,14 +1031,12 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") - delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") - delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go index d19b4b105..7926b715a 100644 --- a/model_custom_field_choice_set.go +++ b/model_custom_field_choice_set.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &CustomFieldChoiceSet{} type CustomFieldChoiceSet struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -43,11 +42,10 @@ type _CustomFieldChoiceSet CustomFieldChoiceSet // 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 NewCustomFieldChoiceSet(id int32, url string, displayUrl string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { +func NewCustomFieldChoiceSet(id int32, url string, display string, name string, extraChoices [][]interface{}, choicesCount string, created NullableTime, lastUpdated NullableTime) *CustomFieldChoiceSet { this := CustomFieldChoiceSet{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.ExtraChoices = extraChoices @@ -113,30 +111,6 @@ func (o *CustomFieldChoiceSet) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *CustomFieldChoiceSet) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *CustomFieldChoiceSet) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *CustomFieldChoiceSet) GetDisplay() string { if o == nil { @@ -393,7 +367,6 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -424,7 +397,6 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "extra_choices", @@ -462,7 +434,6 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go index 591484b28..387404fe0 100644 --- a/model_custom_field_choice_set_base_choices.go +++ b/model_custom_field_choice_set_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go index e059ea12c..bea7b22b5 100644 --- a/model_custom_field_choice_set_base_choices_label.go +++ b/model_custom_field_choice_set_base_choices_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go index 6692ac26c..2e891195a 100644 --- a/model_custom_field_choice_set_base_choices_value.go +++ b/model_custom_field_choice_set_base_choices_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go index 9f7caa51b..9b0c67818 100644 --- a/model_custom_field_choice_set_request.go +++ b/model_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go index 0f0e582ea..ec27bbfe0 100644 --- a/model_custom_field_filter_logic.go +++ b/model_custom_field_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go index 3d7f34f32..55b62d6da 100644 --- a/model_custom_field_filter_logic_label.go +++ b/model_custom_field_filter_logic_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go index 5c2f596ab..b99381d64 100644 --- a/model_custom_field_filter_logic_value.go +++ b/model_custom_field_filter_logic_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_request.go b/model_custom_field_request.go index a65b77d78..e62680adb 100644 --- a/model_custom_field_request.go +++ b/model_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,10 +30,8 @@ type CustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // This field is required when creating new objects or editing an existing object. + // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` - // The value of this field must be unique for the assigned object - Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"` @@ -43,8 +41,6 @@ type CustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` - // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). - RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -52,9 +48,9 @@ type CustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -323,38 +319,6 @@ func (o *CustomFieldRequest) SetRequired(v bool) { o.Required = &v } -// GetUnique returns the Unique field value if set, zero value otherwise. -func (o *CustomFieldRequest) GetUnique() bool { - if o == nil || IsNil(o.Unique) { - var ret bool - return ret - } - return *o.Unique -} - -// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool) { - if o == nil || IsNil(o.Unique) { - return nil, false - } - return o.Unique, true -} - -// HasUnique returns a boolean if a field has been set. -func (o *CustomFieldRequest) HasUnique() bool { - if o != nil && !IsNil(o.Unique) { - return true - } - - return false -} - -// SetUnique gets a reference to the given bool and assigns it to the Unique field. -func (o *CustomFieldRequest) SetUnique(v bool) { - o.Unique = &v -} - // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -548,39 +512,6 @@ func (o *CustomFieldRequest) SetDefault(v interface{}) { o.Default = v } -// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.RelatedObjectFilter -} - -// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { - if o == nil || IsNil(o.RelatedObjectFilter) { - return nil, false - } - return &o.RelatedObjectFilter, true -} - -// HasRelatedObjectFilter returns a boolean if a field has been set. -func (o *CustomFieldRequest) HasRelatedObjectFilter() bool { - if o != nil && !IsNil(o.RelatedObjectFilter) { - return true - } - - return false -} - -// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. -func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{}) { - o.RelatedObjectFilter = v -} - // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -732,9 +663,9 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { +func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret BriefCustomFieldChoiceSetRequest + var ret CustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -743,7 +674,7 @@ func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { +func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -759,8 +690,8 @@ func (o *CustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -834,9 +765,6 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } - if !IsNil(o.Unique) { - toSerialize["unique"] = o.Unique - } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -855,9 +783,6 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } - if o.RelatedObjectFilter != nil { - toSerialize["related_object_filter"] = o.RelatedObjectFilter - } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -929,14 +854,12 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") - delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") - delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_type.go b/model_custom_field_type.go index 1452081c5..a3be15abf 100644 --- a/model_custom_field_type.go +++ b/model_custom_field_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go index 82ed258b6..4e8cbc627 100644 --- a/model_custom_field_type_label.go +++ b/model_custom_field_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go index ad1f827b4..097829be5 100644 --- a/model_custom_field_type_value.go +++ b/model_custom_field_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go index 2fa940d68..8d3e41d9a 100644 --- a/model_custom_field_ui_editable.go +++ b/model_custom_field_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go index 4efc566cf..6c09b4063 100644 --- a/model_custom_field_ui_editable_label.go +++ b/model_custom_field_ui_editable_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go index a247267c1..b758a5455 100644 --- a/model_custom_field_ui_editable_value.go +++ b/model_custom_field_ui_editable_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go index 1fc6e5c3b..d643bce9c 100644 --- a/model_custom_field_ui_visible.go +++ b/model_custom_field_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go index e887833e4..b66ef1e2b 100644 --- a/model_custom_field_ui_visible_label.go +++ b/model_custom_field_ui_visible_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go index c85711446..d9f11b99b 100644 --- a/model_custom_field_ui_visible_value.go +++ b/model_custom_field_ui_visible_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_link.go b/model_custom_link.go index aa3c797e1..1de90af8a 100644 --- a/model_custom_link.go +++ b/model_custom_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &CustomLink{} type CustomLink struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -49,11 +48,10 @@ type _CustomLink CustomLink // 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 NewCustomLink(id int32, url string, displayUrl string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { +func NewCustomLink(id int32, url string, display string, objectTypes []string, name string, linkText string, linkUrl string, created NullableTime, lastUpdated NullableTime) *CustomLink { this := CustomLink{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -120,30 +118,6 @@ func (o *CustomLink) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *CustomLink) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *CustomLink) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *CustomLink) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *CustomLink) GetDisplay() string { if o == nil { @@ -488,7 +462,6 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -526,7 +499,6 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "object_types", "name", @@ -565,7 +537,6 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go index 4686b78a8..50fd2a8f1 100644 --- a/model_custom_link_button_class.go +++ b/model_custom_link_button_class.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,31 +15,31 @@ import ( "fmt" ) -// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link type CustomLinkButtonClass string // List of CustomLink_button_class const ( - CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default" - CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" - CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" - CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" - CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" - CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" - CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" - CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" - CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" - CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" - CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" - CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" - CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" - CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" - CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" + CUSTOMLINKBUTTONCLASS_OUTLINE_DARK CustomLinkButtonClass = "outline-dark" + CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" + CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" + CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" + CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" + CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" + CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" + CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" + CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" + CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" + CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" + CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" + CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" + CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" + CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" ) // All allowed values of CustomLinkButtonClass enum var AllowedCustomLinkButtonClassEnumValues = []CustomLinkButtonClass{ - "default", + "outline-dark", "blue", "indigo", "purple", diff --git a/model_custom_link_request.go b/model_custom_link_request.go index eef1e3fde..6de4bbfdb 100644 --- a/model_custom_link_request.go +++ b/model_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard.go b/model_dashboard.go index f23bc107d..5f90d03d6 100644 --- a/model_dashboard.go +++ b/model_dashboard.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard_request.go b/model_dashboard_request.go index fc181f111..800dcc04e 100644 --- a/model_dashboard_request.go +++ b/model_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_file.go b/model_data_file.go index a149ebe88..53adc911d 100644 --- a/model_data_file.go +++ b/model_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,10 @@ var _ MappedNullable = &DataFile{} // DataFile Adds support for custom fields and tags. type DataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Source BriefDataSource `json:"source"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Source DataSource `json:"source"` // File path relative to the data source's root Path string `json:"path"` LastUpdated time.Time `json:"last_updated"` @@ -41,11 +40,10 @@ type _DataFile DataFile // 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 NewDataFile(id int32, url string, displayUrl string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { +func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { this := DataFile{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Source = source this.Path = path @@ -111,30 +109,6 @@ func (o *DataFile) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *DataFile) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *DataFile) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *DataFile) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *DataFile) GetDisplay() string { if o == nil { @@ -160,9 +134,9 @@ func (o *DataFile) SetDisplay(v string) { } // GetSource returns the Source field value -func (o *DataFile) GetSource() BriefDataSource { +func (o *DataFile) GetSource() DataSource { if o == nil { - var ret BriefDataSource + var ret DataSource return ret } @@ -171,7 +145,7 @@ func (o *DataFile) GetSource() BriefDataSource { // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. -func (o *DataFile) GetSourceOk() (*BriefDataSource, bool) { +func (o *DataFile) GetSourceOk() (*DataSource, bool) { if o == nil { return nil, false } @@ -179,7 +153,7 @@ func (o *DataFile) GetSourceOk() (*BriefDataSource, bool) { } // SetSource sets field value -func (o *DataFile) SetSource(v BriefDataSource) { +func (o *DataFile) SetSource(v DataSource) { o.Source = v } @@ -291,7 +265,6 @@ func (o DataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["source"] = o.Source toSerialize["path"] = o.Path @@ -313,7 +286,6 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "source", "path", @@ -351,7 +323,6 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "source") delete(additionalProperties, "path") diff --git a/model_data_source.go b/model_data_source.go index b8d43d966..2757ef5b2 100644 --- a/model_data_source.go +++ b/model_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the DataSource type satisfies the MappedNullable interface at compile time @@ -21,25 +20,11 @@ var _ MappedNullable = &DataSource{} // DataSource Adds support for custom fields and tags. type DataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Type DataSourceType `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Status DataSourceStatus `json:"status"` - Description *string `json:"description,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` - // Patterns (one per line) matching files to ignore when syncing - IgnoreRules *string `json:"ignore_rules,omitempty"` - Comments *string `json:"comments,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - LastSynced NullableTime `json:"last_synced"` - FileCount int64 `json:"file_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,20 +34,12 @@ type _DataSource DataSource // 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 NewDataSource(id int32, url string, displayUrl string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64) *DataSource { +func NewDataSource(id int32, url string, display string, name string) *DataSource { this := DataSource{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Type = type_ - this.SourceUrl = sourceUrl - this.Status = status - this.Created = created - this.LastUpdated = lastUpdated - this.LastSynced = lastSynced - this.FileCount = fileCount return &this } @@ -122,30 +99,6 @@ func (o *DataSource) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *DataSource) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *DataSource) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *DataSource) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *DataSource) GetDisplay() string { if o == nil { @@ -194,110 +147,6 @@ func (o *DataSource) SetName(v string) { o.Name = v } -// GetType returns the Type field value -func (o *DataSource) GetType() DataSourceType { - if o == nil { - var ret DataSourceType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *DataSource) GetTypeOk() (*DataSourceType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *DataSource) SetType(v DataSourceType) { - o.Type = v -} - -// GetSourceUrl returns the SourceUrl field value -func (o *DataSource) GetSourceUrl() string { - if o == nil { - var ret string - return ret - } - - return o.SourceUrl -} - -// GetSourceUrlOk returns a tuple with the SourceUrl field value -// and a boolean to check if the value has been set. -func (o *DataSource) GetSourceUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.SourceUrl, true -} - -// SetSourceUrl sets field value -func (o *DataSource) SetSourceUrl(v string) { - o.SourceUrl = v -} - -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *DataSource) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool - return ret - } - return *o.Enabled -} - -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSource) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { - return nil, false - } - return o.Enabled, true -} - -// HasEnabled returns a boolean if a field has been set. -func (o *DataSource) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { - return true - } - - return false -} - -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *DataSource) SetEnabled(v bool) { - o.Enabled = &v -} - -// GetStatus returns the Status field value -func (o *DataSource) GetStatus() DataSourceStatus { - if o == nil { - var ret DataSourceStatus - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *DataSource) SetStatus(v DataSourceStatus) { - o.Status = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *DataSource) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -330,237 +179,6 @@ func (o *DataSource) SetDescription(v string) { o.Description = &v } -// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DataSource) GetParameters() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.Parameters -} - -// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DataSource) GetParametersOk() (*interface{}, bool) { - if o == nil || IsNil(o.Parameters) { - return nil, false - } - return &o.Parameters, true -} - -// HasParameters returns a boolean if a field has been set. -func (o *DataSource) HasParameters() bool { - if o != nil && !IsNil(o.Parameters) { - return true - } - - return false -} - -// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. -func (o *DataSource) SetParameters(v interface{}) { - o.Parameters = v -} - -// GetIgnoreRules returns the IgnoreRules field value if set, zero value otherwise. -func (o *DataSource) GetIgnoreRules() string { - if o == nil || IsNil(o.IgnoreRules) { - var ret string - return ret - } - return *o.IgnoreRules -} - -// GetIgnoreRulesOk returns a tuple with the IgnoreRules field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSource) GetIgnoreRulesOk() (*string, bool) { - if o == nil || IsNil(o.IgnoreRules) { - return nil, false - } - return o.IgnoreRules, true -} - -// HasIgnoreRules returns a boolean if a field has been set. -func (o *DataSource) HasIgnoreRules() bool { - if o != nil && !IsNil(o.IgnoreRules) { - return true - } - - return false -} - -// SetIgnoreRules gets a reference to the given string and assigns it to the IgnoreRules field. -func (o *DataSource) SetIgnoreRules(v string) { - o.IgnoreRules = &v -} - -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DataSource) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSource) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DataSource) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DataSource) SetComments(v string) { - o.Comments = &v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *DataSource) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSource) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *DataSource) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *DataSource) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DataSource) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DataSource) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *DataSource) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DataSource) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *DataSource) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetLastSynced returns the LastSynced field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DataSource) GetLastSynced() time.Time { - if o == nil || o.LastSynced.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastSynced.Get() -} - -// GetLastSyncedOk returns a tuple with the LastSynced field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DataSource) GetLastSyncedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastSynced.Get(), o.LastSynced.IsSet() -} - -// SetLastSynced sets field value -func (o *DataSource) SetLastSynced(v time.Time) { - o.LastSynced.Set(&v) -} - -// GetFileCount returns the FileCount field value -func (o *DataSource) GetFileCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.FileCount -} - -// GetFileCountOk returns a tuple with the FileCount field value -// and a boolean to check if the value has been set. -func (o *DataSource) GetFileCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.FileCount, true -} - -// SetFileCount sets field value -func (o *DataSource) SetFileCount(v int64) { - o.FileCount = v -} - func (o DataSource) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -573,34 +191,11 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name - toSerialize["type"] = o.Type - toSerialize["source_url"] = o.SourceUrl - if !IsNil(o.Enabled) { - toSerialize["enabled"] = o.Enabled - } - toSerialize["status"] = o.Status if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if o.Parameters != nil { - toSerialize["parameters"] = o.Parameters - } - if !IsNil(o.IgnoreRules) { - toSerialize["ignore_rules"] = o.IgnoreRules - } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["last_synced"] = o.LastSynced.Get() - toSerialize["file_count"] = o.FileCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -616,16 +211,8 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "type", - "source_url", - "status", - "created", - "last_updated", - "last_synced", - "file_count", } allProperties := make(map[string]interface{}) @@ -657,22 +244,9 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") - delete(additionalProperties, "type") - delete(additionalProperties, "source_url") - delete(additionalProperties, "enabled") - delete(additionalProperties, "status") delete(additionalProperties, "description") - delete(additionalProperties, "parameters") - delete(additionalProperties, "ignore_rules") - delete(additionalProperties, "comments") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "last_synced") - delete(additionalProperties, "file_count") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_request.go b/model_data_source_request.go index acb516a3e..356c146f7 100644 --- a/model_data_source_request.go +++ b/model_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &DataSourceRequest{} // DataSourceRequest Adds support for custom fields and tags. type DataSourceRequest struct { - Name string `json:"name"` - Type DataSourceTypeValue `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` + Name string `json:"name"` + Type DataSourceRequestType `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` - Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _DataSourceRequest DataSourceRequest // 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 NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest { +func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string) *DataSourceRequest { this := DataSourceRequest{} this.Name = name this.Type = type_ @@ -80,9 +80,9 @@ func (o *DataSourceRequest) SetName(v string) { } // GetType returns the Type field value -func (o *DataSourceRequest) GetType() DataSourceTypeValue { +func (o *DataSourceRequest) GetType() DataSourceRequestType { if o == nil { - var ret DataSourceTypeValue + var ret DataSourceRequestType return ret } @@ -91,7 +91,7 @@ func (o *DataSourceRequest) GetType() DataSourceTypeValue { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) { +func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { if o == nil { return nil, false } @@ -99,7 +99,7 @@ func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) { } // SetType sets field value -func (o *DataSourceRequest) SetType(v DataSourceTypeValue) { +func (o *DataSourceRequest) SetType(v DataSourceRequestType) { o.Type = v } @@ -191,6 +191,38 @@ func (o *DataSourceRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DataSourceRequest) GetParameters() interface{} { if o == nil { @@ -256,38 +288,6 @@ func (o *DataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *DataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") + delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") - delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_status.go b/model_data_source_status.go index e55268943..4a232e601 100644 --- a/model_data_source_status.go +++ b/model_data_source_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &DataSourceStatus{} // DataSourceStatus struct for DataSourceStatus type DataSourceStatus struct { - Value *DataSourceStatusValue `json:"value,omitempty"` - Label *DataSourceStatusLabel `json:"label,omitempty"` + Value *DataSourceStatusValue `json:"value,omitempty"` + Label *DataSourceStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DataSourceStatus) SetLabel(v DataSourceStatusLabel) { } func (o DataSourceStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableDataSourceStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go index d49dc58f7..7c1878ebe 100644 --- a/model_data_source_status_label.go +++ b/model_data_source_status_label.go @@ -20,11 +20,11 @@ type DataSourceStatusLabel string // List of DataSource_status_label const ( - DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New" - DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued" - DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing" + DATASOURCESTATUSLABEL_NEW DataSourceStatusLabel = "New" + DATASOURCESTATUSLABEL_QUEUED DataSourceStatusLabel = "Queued" + DATASOURCESTATUSLABEL_SYNCING DataSourceStatusLabel = "Syncing" DATASOURCESTATUSLABEL_COMPLETED DataSourceStatusLabel = "Completed" - DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed" + DATASOURCESTATUSLABEL_FAILED DataSourceStatusLabel = "Failed" ) // All allowed values of DataSourceStatusLabel enum @@ -114,4 +114,3 @@ func (v *NullableDataSourceStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_data_source_status_value.go b/model_data_source_status_value.go index 229bc9412..3144e06e6 100644 --- a/model_data_source_status_value.go +++ b/model_data_source_status_value.go @@ -20,11 +20,11 @@ type DataSourceStatusValue string // List of DataSource_status_value const ( - DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new" - DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued" - DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing" + DATASOURCESTATUSVALUE_NEW DataSourceStatusValue = "new" + DATASOURCESTATUSVALUE_QUEUED DataSourceStatusValue = "queued" + DATASOURCESTATUSVALUE_SYNCING DataSourceStatusValue = "syncing" DATASOURCESTATUSVALUE_COMPLETED DataSourceStatusValue = "completed" - DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed" + DATASOURCESTATUSVALUE_FAILED DataSourceStatusValue = "failed" ) // All allowed values of DataSourceStatusValue enum @@ -114,4 +114,3 @@ func (v *NullableDataSourceStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_data_source_type.go b/model_data_source_type.go index e4b689200..372434485 100644 --- a/model_data_source_type.go +++ b/model_data_source_type.go @@ -19,8 +19,8 @@ var _ MappedNullable = &DataSourceType{} // DataSourceType struct for DataSourceType type DataSourceType struct { - Value *DataSourceTypeValue `json:"value,omitempty"` - Label *DataSourceTypeLabel `json:"label,omitempty"` + Value *DataSourceTypeValue `json:"value,omitempty"` + Label *DataSourceTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DataSourceType) SetLabel(v DataSourceTypeLabel) { } func (o DataSourceType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableDataSourceType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go index c15b1b87b..ce2aa0a89 100644 --- a/model_data_source_type_label.go +++ b/model_data_source_type_label.go @@ -20,9 +20,9 @@ type DataSourceTypeLabel string // List of DataSource_type_label const ( - DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------" - DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local" - DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git" + DATASOURCETYPELABEL________ DataSourceTypeLabel = "---------" + DATASOURCETYPELABEL_LOCAL DataSourceTypeLabel = "Local" + DATASOURCETYPELABEL_GIT DataSourceTypeLabel = "Git" DATASOURCETYPELABEL_AMAZON_S3 DataSourceTypeLabel = "Amazon S3" ) @@ -112,4 +112,3 @@ func (v *NullableDataSourceTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_data_source_type_value.go b/model_data_source_type_value.go index 2b7ee17c7..9a9e076e2 100644 --- a/model_data_source_type_value.go +++ b/model_data_source_type_value.go @@ -20,8 +20,8 @@ type DataSourceTypeValue string // List of DataSource_type_value const ( - DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local" - DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git" + DATASOURCETYPEVALUE_LOCAL DataSourceTypeValue = "local" + DATASOURCETYPEVALUE_GIT DataSourceTypeValue = "git" DATASOURCETYPEVALUE_AMAZON_S3 DataSourceTypeValue = "amazon-s3" ) @@ -110,4 +110,3 @@ func (v *NullableDataSourceTypeValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_dcim_cables_list_length_unit_parameter.go b/model_dcim_cables_list_length_unit_parameter.go index c75367e7b..f19ebe5fe 100644 --- a/model_dcim_cables_list_length_unit_parameter.go +++ b/model_dcim_cables_list_length_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_port_templates_list_type_parameter.go b/model_dcim_console_port_templates_list_type_parameter.go index 65e818ac8..7554c6357 100644 --- a/model_dcim_console_port_templates_list_type_parameter.go +++ b/model_dcim_console_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_ports_list_speed_parameter.go b/model_dcim_console_ports_list_speed_parameter.go index f6c2231f8..1f1008b17 100644 --- a/model_dcim_console_ports_list_speed_parameter.go +++ b/model_dcim_console_ports_list_speed_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_airflow_parameter.go b/model_dcim_device_types_list_airflow_parameter.go index 60f2617bb..0d667f224 100644 --- a/model_dcim_device_types_list_airflow_parameter.go +++ b/model_dcim_device_types_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_weight_unit_parameter.go b/model_dcim_device_types_list_weight_unit_parameter.go index b764e17d8..acfb6c6fe 100644 --- a/model_dcim_device_types_list_weight_unit_parameter.go +++ b/model_dcim_device_types_list_weight_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go index 9df25dd93..62cac6541 100644 --- a/model_dcim_devices_render_config_create_format_parameter.go +++ b/model_dcim_devices_render_config_create_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go index d045a72fc..64b1b66da 100644 --- a/model_dcim_interfaces_list_mode_parameter.go +++ b/model_dcim_interfaces_list_mode_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_module_types_list_airflow_parameter.go b/model_dcim_module_types_list_airflow_parameter.go index aa054247b..371b8c3ee 100644 --- a/model_dcim_module_types_list_airflow_parameter.go +++ b/model_dcim_module_types_list_airflow_parameter.go @@ -22,10 +22,10 @@ type DcimModuleTypesListAirflowParameter string const ( DCIMMODULETYPESLISTAIRFLOWPARAMETER_FRONT_TO_REAR DcimModuleTypesListAirflowParameter = "front-to-rear" DCIMMODULETYPESLISTAIRFLOWPARAMETER_LEFT_TO_RIGHT DcimModuleTypesListAirflowParameter = "left-to-right" - DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_PASSIVE DcimModuleTypesListAirflowParameter = "passive" DCIMMODULETYPESLISTAIRFLOWPARAMETER_REAR_TO_FRONT DcimModuleTypesListAirflowParameter = "rear-to-front" DCIMMODULETYPESLISTAIRFLOWPARAMETER_RIGHT_TO_LEFT DcimModuleTypesListAirflowParameter = "right-to-left" - DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear" + DCIMMODULETYPESLISTAIRFLOWPARAMETER_SIDE_TO_REAR DcimModuleTypesListAirflowParameter = "side-to-rear" ) // All allowed values of DcimModuleTypesListAirflowParameter enum @@ -116,4 +116,3 @@ func (v *NullableDcimModuleTypesListAirflowParameter) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_dcim_power_feeds_list_phase_parameter.go b/model_dcim_power_feeds_list_phase_parameter.go index 1e77aede6..887c4c185 100644 --- a/model_dcim_power_feeds_list_phase_parameter.go +++ b/model_dcim_power_feeds_list_phase_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_supply_parameter.go b/model_dcim_power_feeds_list_supply_parameter.go index 02f1901e6..a9d411a9a 100644 --- a/model_dcim_power_feeds_list_supply_parameter.go +++ b/model_dcim_power_feeds_list_supply_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_type_parameter.go b/model_dcim_power_feeds_list_type_parameter.go index 73ec1afc3..133f1c231 100644 --- a/model_dcim_power_feeds_list_type_parameter.go +++ b/model_dcim_power_feeds_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_outlet_templates_list_type_parameter.go b/model_dcim_power_outlet_templates_list_type_parameter.go index 0e65367c8..dc7840bb1 100644 --- a/model_dcim_power_outlet_templates_list_type_parameter.go +++ b/model_dcim_power_outlet_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_port_templates_list_type_parameter.go b/model_dcim_power_port_templates_list_type_parameter.go index 0cc6d2650..dcc5cfc55 100644 --- a/model_dcim_power_port_templates_list_type_parameter.go +++ b/model_dcim_power_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_rack_types_list_outer_unit_parameter.go b/model_dcim_rack_types_list_outer_unit_parameter.go index 16482f672..10f065563 100644 --- a/model_dcim_rack_types_list_outer_unit_parameter.go +++ b/model_dcim_rack_types_list_outer_unit_parameter.go @@ -108,4 +108,3 @@ func (v *NullableDcimRackTypesListOuterUnitParameter) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_dcim_racks_elevation_retrieve_face_parameter.go b/model_dcim_racks_elevation_retrieve_face_parameter.go index aee452ec5..564e2c159 100644 --- a/model_dcim_racks_elevation_retrieve_face_parameter.go +++ b/model_dcim_racks_elevation_retrieve_face_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go index 65183876f..2506cd2cc 100644 --- a/model_dcim_racks_elevation_retrieve_render_parameter.go +++ b/model_dcim_racks_elevation_retrieve_render_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_list_airflow_parameter.go b/model_dcim_racks_list_airflow_parameter.go index 18bfdc40b..04ade69d5 100644 --- a/model_dcim_racks_list_airflow_parameter.go +++ b/model_dcim_racks_list_airflow_parameter.go @@ -108,4 +108,3 @@ func (v *NullableDcimRacksListAirflowParameter) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device.go b/model_device.go index a064565e6..701b56150 100644 --- a/model_device.go +++ b/model_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,43 +21,42 @@ var _ MappedNullable = &Device{} // Device Adds support for custom fields and tags. type Device struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl *string `json:"display_url,omitempty"` - Display string `json:"display"` - Name NullableString `json:"name"` - DeviceType *BriefDeviceType `json:"device_type,omitempty"` - Role *BriefDeviceRole `json:"role,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Platform NullableBriefPlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name"` + DeviceType *DeviceType `json:"device_type,omitempty"` + Role *DeviceRole `json:"role,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` + Platform NullablePlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *BriefSite `json:"site,omitempty"` - Location NullableBriefLocation `json:"location,omitempty"` - Rack NullableBriefRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *Site `json:"site,omitempty"` + Location NullableLocation `json:"location,omitempty"` + Rack NullableRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` - Cluster NullableBriefCluster `json:"cluster,omitempty"` - VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableIPAddress `json:"oob_ip,omitempty"` + Cluster NullableCluster `json:"cluster,omitempty"` + VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -149,38 +148,6 @@ func (o *Device) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. -func (o *Device) GetDisplayUrl() string { - if o == nil || IsNil(o.DisplayUrl) { - var ret string - return ret - } - return *o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Device) GetDisplayUrlOk() (*string, bool) { - if o == nil || IsNil(o.DisplayUrl) { - return nil, false - } - return o.DisplayUrl, true -} - -// HasDisplayUrl returns a boolean if a field has been set. -func (o *Device) HasDisplayUrl() bool { - if o != nil && !IsNil(o.DisplayUrl) { - return true - } - - return false -} - -// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. -func (o *Device) SetDisplayUrl(v string) { - o.DisplayUrl = &v -} - // GetDisplay returns the Display field value func (o *Device) GetDisplay() string { if o == nil { @@ -232,9 +199,9 @@ func (o *Device) SetName(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *Device) GetDeviceType() BriefDeviceType { +func (o *Device) GetDeviceType() DeviceType { if o == nil || IsNil(o.DeviceType) { - var ret BriefDeviceType + var ret DeviceType return ret } return *o.DeviceType @@ -242,7 +209,7 @@ func (o *Device) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -258,15 +225,15 @@ func (o *Device) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given BriefDeviceType and assigns it to the DeviceType field. -func (o *Device) SetDeviceType(v BriefDeviceType) { +// SetDeviceType gets a reference to the given DeviceType and assigns it to the DeviceType field. +func (o *Device) SetDeviceType(v DeviceType) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *Device) GetRole() BriefDeviceRole { +func (o *Device) GetRole() DeviceRole { if o == nil || IsNil(o.Role) { - var ret BriefDeviceRole + var ret DeviceRole return ret } return *o.Role @@ -274,7 +241,7 @@ func (o *Device) GetRole() BriefDeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetRoleOk() (*BriefDeviceRole, bool) { +func (o *Device) GetRoleOk() (*DeviceRole, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -290,15 +257,15 @@ func (o *Device) HasRole() bool { return false } -// SetRole gets a reference to the given BriefDeviceRole and assigns it to the Role field. -func (o *Device) SetRole(v BriefDeviceRole) { +// SetRole gets a reference to the given DeviceRole and assigns it to the Role field. +func (o *Device) SetRole(v DeviceRole) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetTenant() BriefTenant { +func (o *Device) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -307,7 +274,7 @@ func (o *Device) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetTenantOk() (*BriefTenant, bool) { +func (o *Device) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -323,8 +290,8 @@ func (o *Device) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Device) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *Device) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -339,9 +306,9 @@ func (o *Device) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPlatform() BriefPlatform { +func (o *Device) GetPlatform() Platform { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatform + var ret Platform return ret } return *o.Platform.Get() @@ -350,7 +317,7 @@ func (o *Device) GetPlatform() BriefPlatform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPlatformOk() (*BriefPlatform, bool) { +func (o *Device) GetPlatformOk() (*Platform, bool) { if o == nil { return nil, false } @@ -366,8 +333,8 @@ func (o *Device) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. -func (o *Device) SetPlatform(v BriefPlatform) { +// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. +func (o *Device) SetPlatform(v Platform) { o.Platform.Set(&v) } @@ -457,9 +424,9 @@ func (o *Device) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *Device) GetSite() BriefSite { +func (o *Device) GetSite() Site { if o == nil || IsNil(o.Site) { - var ret BriefSite + var ret Site return ret } return *o.Site @@ -467,7 +434,7 @@ func (o *Device) GetSite() BriefSite { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetSiteOk() (*BriefSite, bool) { +func (o *Device) GetSiteOk() (*Site, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -483,15 +450,15 @@ func (o *Device) HasSite() bool { return false } -// SetSite gets a reference to the given BriefSite and assigns it to the Site field. -func (o *Device) SetSite(v BriefSite) { +// SetSite gets a reference to the given Site and assigns it to the Site field. +func (o *Device) SetSite(v Site) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetLocation() BriefLocation { +func (o *Device) GetLocation() Location { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocation + var ret Location return ret } return *o.Location.Get() @@ -500,7 +467,7 @@ func (o *Device) GetLocation() BriefLocation { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetLocationOk() (*BriefLocation, bool) { +func (o *Device) GetLocationOk() (*Location, bool) { if o == nil { return nil, false } @@ -516,8 +483,8 @@ func (o *Device) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. -func (o *Device) SetLocation(v BriefLocation) { +// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. +func (o *Device) SetLocation(v Location) { o.Location.Set(&v) } @@ -532,9 +499,9 @@ func (o *Device) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetRack() BriefRack { +func (o *Device) GetRack() Rack { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRack + var ret Rack return ret } return *o.Rack.Get() @@ -543,7 +510,7 @@ func (o *Device) GetRack() BriefRack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetRackOk() (*BriefRack, bool) { +func (o *Device) GetRackOk() (*Rack, bool) { if o == nil { return nil, false } @@ -559,8 +526,8 @@ func (o *Device) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. -func (o *Device) SetRack(v BriefRack) { +// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. +func (o *Device) SetRack(v Rack) { o.Rack.Set(&v) } @@ -843,9 +810,9 @@ func (o *Device) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp() BriefIPAddress { +func (o *Device) GetPrimaryIp() IPAddress { if o == nil || IsNil(o.PrimaryIp.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp.Get() @@ -854,7 +821,7 @@ func (o *Device) GetPrimaryIp() BriefIPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool) { +func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -870,8 +837,8 @@ func (o *Device) HasPrimaryIp() bool { return false } -// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. -func (o *Device) SetPrimaryIp(v BriefIPAddress) { +// SetPrimaryIp gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp field. +func (o *Device) SetPrimaryIp(v IPAddress) { o.PrimaryIp.Set(&v) } @@ -886,9 +853,9 @@ func (o *Device) UnsetPrimaryIp() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp4() BriefIPAddress { +func (o *Device) GetPrimaryIp4() IPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp4.Get() @@ -897,7 +864,7 @@ func (o *Device) GetPrimaryIp4() BriefIPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { +func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -913,8 +880,8 @@ func (o *Device) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. -func (o *Device) SetPrimaryIp4(v BriefIPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. +func (o *Device) SetPrimaryIp4(v IPAddress) { o.PrimaryIp4.Set(&v) } @@ -929,9 +896,9 @@ func (o *Device) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp6() BriefIPAddress { +func (o *Device) GetPrimaryIp6() IPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp6.Get() @@ -940,7 +907,7 @@ func (o *Device) GetPrimaryIp6() BriefIPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { +func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -956,8 +923,8 @@ func (o *Device) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. -func (o *Device) SetPrimaryIp6(v BriefIPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. +func (o *Device) SetPrimaryIp6(v IPAddress) { o.PrimaryIp6.Set(&v) } @@ -972,9 +939,9 @@ func (o *Device) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetOobIp() BriefIPAddress { +func (o *Device) GetOobIp() IPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.OobIp.Get() @@ -983,7 +950,7 @@ func (o *Device) GetOobIp() BriefIPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetOobIpOk() (*BriefIPAddress, bool) { +func (o *Device) GetOobIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -999,8 +966,8 @@ func (o *Device) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. -func (o *Device) SetOobIp(v BriefIPAddress) { +// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. +func (o *Device) SetOobIp(v IPAddress) { o.OobIp.Set(&v) } @@ -1015,9 +982,9 @@ func (o *Device) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetCluster() BriefCluster { +func (o *Device) GetCluster() Cluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefCluster + var ret Cluster return ret } return *o.Cluster.Get() @@ -1026,7 +993,7 @@ func (o *Device) GetCluster() BriefCluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetClusterOk() (*BriefCluster, bool) { +func (o *Device) GetClusterOk() (*Cluster, bool) { if o == nil { return nil, false } @@ -1042,8 +1009,8 @@ func (o *Device) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. -func (o *Device) SetCluster(v BriefCluster) { +// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. +func (o *Device) SetCluster(v Cluster) { o.Cluster.Set(&v) } @@ -1058,9 +1025,9 @@ func (o *Device) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetVirtualChassis() BriefVirtualChassis { +func (o *Device) GetVirtualChassis() VirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret BriefVirtualChassis + var ret VirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1069,7 +1036,7 @@ func (o *Device) GetVirtualChassis() BriefVirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { +func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool) { if o == nil { return nil, false } @@ -1085,8 +1052,8 @@ func (o *Device) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. -func (o *Device) SetVirtualChassis(v BriefVirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. +func (o *Device) SetVirtualChassis(v VirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1243,9 +1210,9 @@ func (o *Device) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetConfigTemplate() BriefConfigTemplate { +func (o *Device) GetConfigTemplate() ConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplate + var ret ConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1254,7 +1221,7 @@ func (o *Device) GetConfigTemplate() BriefConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { +func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool) { if o == nil { return nil, false } @@ -1270,8 +1237,8 @@ func (o *Device) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. -func (o *Device) SetConfigTemplate(v BriefConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Device) SetConfigTemplate(v ConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1800,9 +1767,6 @@ func (o Device) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - if !IsNil(o.DisplayUrl) { - toSerialize["display_url"] = o.DisplayUrl - } toSerialize["display"] = o.Display toSerialize["name"] = o.Name.Get() if !IsNil(o.DeviceType) { @@ -1978,7 +1942,6 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_airflow.go b/model_device_airflow.go index 00a752776..b3812caae 100644 --- a/model_device_airflow.go +++ b/model_device_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go index bdf8bdb46..9d2429b94 100644 --- a/model_device_airflow_label.go +++ b/model_device_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go index 11b552c60..9ff9281c9 100644 --- a/model_device_airflow_value.go +++ b/model_device_airflow_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_bay.go b/model_device_bay.go index 22e3c118a..ab35b6a54 100644 --- a/model_device_bay.go +++ b/model_device_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,15 @@ var _ MappedNullable = &DeviceBay{} // DeviceBay Adds support for custom fields and tags. type DeviceBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` - InstalledDevice NullableBriefDevice `json:"installed_device,omitempty"` + InstalledDevice NullableDevice `json:"installed_device,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -44,11 +43,10 @@ type _DeviceBay DeviceBay // 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 NewDeviceBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { +func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { this := DeviceBay{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -113,30 +111,6 @@ func (o *DeviceBay) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *DeviceBay) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *DeviceBay) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *DeviceBay) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *DeviceBay) GetDisplay() string { if o == nil { @@ -162,9 +136,9 @@ func (o *DeviceBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *DeviceBay) GetDevice() BriefDevice { +func (o *DeviceBay) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -173,7 +147,7 @@ func (o *DeviceBay) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool) { +func (o *DeviceBay) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -181,7 +155,7 @@ func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *DeviceBay) SetDevice(v BriefDevice) { +func (o *DeviceBay) SetDevice(v Device) { o.Device = v } @@ -274,9 +248,9 @@ func (o *DeviceBay) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBay) GetInstalledDevice() BriefDevice { +func (o *DeviceBay) GetInstalledDevice() Device { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret BriefDevice + var ret Device return ret } return *o.InstalledDevice.Get() @@ -285,7 +259,7 @@ func (o *DeviceBay) GetInstalledDevice() BriefDevice { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool) { +func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -301,8 +275,8 @@ func (o *DeviceBay) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableBriefDevice and assigns it to the InstalledDevice field. -func (o *DeviceBay) SetInstalledDevice(v BriefDevice) { +// SetInstalledDevice gets a reference to the given NullableDevice and assigns it to the InstalledDevice field. +func (o *DeviceBay) SetInstalledDevice(v Device) { o.InstalledDevice.Set(&v) } @@ -444,7 +418,6 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -480,7 +453,6 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -517,7 +489,6 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_device_bay_request.go b/model_device_bay_request.go index 17ef09ae8..514b0172e 100644 --- a/model_device_bay_request.go +++ b/model_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &DeviceBayRequest{} // DeviceBayRequest Adds support for custom fields and tags. type DeviceBayRequest struct { - Device BriefDeviceRequest `json:"device"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _DeviceBayRequest DeviceBayRequest // 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 NewDeviceBayRequest(device BriefDeviceRequest, name string) *DeviceBayRequest { +func NewDeviceBayRequest(device DeviceRequest, name string) *DeviceBayRequest { this := DeviceBayRequest{} this.Device = device this.Name = name @@ -53,9 +53,9 @@ func NewDeviceBayRequestWithDefaults() *DeviceBayRequest { } // GetDevice returns the Device field value -func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest { +func (o *DeviceBayRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest) { +func (o *DeviceBayRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -165,9 +165,9 @@ func (o *DeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { +func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.InstalledDevice.Get() @@ -176,7 +176,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { +func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -192,8 +192,8 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. -func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. +func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_device_bay_template.go b/model_device_bay_template.go index 1dedbb099..6ea0c9a93 100644 --- a/model_device_bay_template.go +++ b/model_device_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &DeviceBayTemplate{} // DeviceBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType BriefDeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType DeviceType `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -41,7 +41,7 @@ type _DeviceBayTemplate DeviceBayTemplate // 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 NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { +func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { this := DeviceBayTemplate{} this.Id = id this.Url = url @@ -134,9 +134,9 @@ func (o *DeviceBayTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType { +func (o *DeviceBayTemplate) GetDeviceType() DeviceType { if o == nil { - var ret BriefDeviceType + var ret DeviceType return ret } @@ -145,7 +145,7 @@ func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -153,7 +153,7 @@ func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType) { +func (o *DeviceBayTemplate) SetDeviceType(v DeviceType) { o.DeviceType = v } diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go index 05bfa2736..b75a4eaa3 100644 --- a/model_device_bay_template_request.go +++ b/model_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &DeviceBayTemplateRequest{} // DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplateRequest struct { - DeviceType BriefDeviceTypeRequest `json:"device_type"` + DeviceType DeviceTypeRequest `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -35,7 +35,7 @@ type _DeviceBayTemplateRequest DeviceBayTemplateRequest // 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 NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *DeviceBayTemplateRequest { +func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string) *DeviceBayTemplateRequest { this := DeviceBayTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -51,9 +51,9 @@ func NewDeviceBayTemplateRequestWithDefaults() *DeviceBayTemplateRequest { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } @@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, b } // SetDeviceType sets field value -func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = v } diff --git a/model_device_face.go b/model_device_face.go index 1ad93cac2..380afa689 100644 --- a/model_device_face.go +++ b/model_device_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_label.go b/model_device_face_label.go index e503f66cb..b74e4452a 100644 --- a/model_device_face_label.go +++ b/model_device_face_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_value.go b/model_device_face_value.go index aa8337318..c693fb0de 100644 --- a/model_device_face_value.go +++ b/model_device_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_role.go b/model_device_role.go index ef4c31a8b..bcd70a8fe 100644 --- a/model_device_role.go +++ b/model_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the DeviceRole type satisfies the MappedNullable interface at compile time @@ -21,23 +20,14 @@ var _ MappedNullable = &DeviceRole{} // DeviceRole Adds support for custom fields and tags. type DeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Color *string `json:"color,omitempty"` - // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,16 +37,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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *DeviceRole { +func NewDeviceRole(id int32, url string, display string, name string, slug string) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -116,30 +103,6 @@ func (o *DeviceRole) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *DeviceRole) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *DeviceRole) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *DeviceRole) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *DeviceRole) GetDisplay() string { if o == nil { @@ -212,113 +175,6 @@ func (o *DeviceRole) SetSlug(v string) { o.Slug = v } -// GetColor returns the Color field value if set, zero value otherwise. -func (o *DeviceRole) GetColor() string { - if o == nil || IsNil(o.Color) { - var ret string - return ret - } - return *o.Color -} - -// GetColorOk returns a tuple with the Color field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceRole) GetColorOk() (*string, bool) { - if o == nil || IsNil(o.Color) { - return nil, false - } - return o.Color, true -} - -// HasColor returns a boolean if a field has been set. -func (o *DeviceRole) HasColor() bool { - if o != nil && !IsNil(o.Color) { - return true - } - - return false -} - -// SetColor gets a reference to the given string and assigns it to the Color field. -func (o *DeviceRole) SetColor(v string) { - o.Color = &v -} - -// GetVmRole returns the VmRole field value if set, zero value otherwise. -func (o *DeviceRole) GetVmRole() bool { - if o == nil || IsNil(o.VmRole) { - var ret bool - return ret - } - return *o.VmRole -} - -// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceRole) GetVmRoleOk() (*bool, bool) { - if o == nil || IsNil(o.VmRole) { - return nil, false - } - return o.VmRole, true -} - -// HasVmRole returns a boolean if a field has been set. -func (o *DeviceRole) HasVmRole() bool { - if o != nil && !IsNil(o.VmRole) { - return true - } - - return false -} - -// SetVmRole gets a reference to the given bool and assigns it to the VmRole field. -func (o *DeviceRole) SetVmRole(v bool) { - o.VmRole = &v -} - -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplate - return ret - } - return *o.ConfigTemplate.Get() -} - -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { - if o == nil { - return nil, false - } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() -} - -// HasConfigTemplate returns a boolean if a field has been set. -func (o *DeviceRole) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true - } - - return false -} - -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate) { - o.ConfigTemplate.Set(&v) -} - -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *DeviceRole) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) -} - -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *DeviceRole) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -351,122 +207,6 @@ func (o *DeviceRole) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *DeviceRole) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceRole) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *DeviceRole) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *DeviceRole) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *DeviceRole) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceRole) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *DeviceRole) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *DeviceRole) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DeviceRole) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRole) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *DeviceRole) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DeviceRole) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *DeviceRole) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceRole) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -543,30 +283,12 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Color) { - toSerialize["color"] = o.Color - } - if !IsNil(o.VmRole) { - toSerialize["vm_role"] = o.VmRole - } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -588,12 +310,9 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -625,18 +344,10 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "color") - delete(additionalProperties, "vm_role") - delete(additionalProperties, "config_template") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_device_role_request.go b/model_device_role_request.go index 372639e95..111b389d1 100644 --- a/model_device_role_request.go +++ b/model_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,11 +24,11 @@ type DeviceRoleRequest struct { Slug string `json:"slug"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -166,9 +166,9 @@ func (o *DeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -177,7 +177,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_device_status.go b/model_device_status.go index ccf7bd107..04e480442 100644 --- a/model_device_status.go +++ b/model_device_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_label.go b/model_device_status_label.go index 61904d51f..4490be89a 100644 --- a/model_device_status_label.go +++ b/model_device_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_value.go b/model_device_status_value.go index 0ff3689a0..032b9b5b6 100644 --- a/model_device_status_value.go +++ b/model_device_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type.go b/model_device_type.go index afcd735a2..491bcc177 100644 --- a/model_device_type.go +++ b/model_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the DeviceType type satisfies the MappedNullable interface at compile time @@ -21,45 +20,15 @@ var _ MappedNullable = &DeviceType{} // DeviceType Adds support for custom fields and tags. type DeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Manufacturer BriefManufacturer `json:"manufacturer"` - DefaultPlatform NullableBriefPlatform `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` - // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - UHeight *float64 `json:"u_height,omitempty"` - // Devices of this type are excluded when calculating rack utilization. - ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` - // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"` - Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` - FrontImage NullableString `json:"front_image,omitempty"` - RearImage NullableString `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount *int64 `json:"device_count,omitempty"` - ConsolePortTemplateCount int32 `json:"console_port_template_count"` - ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"` - PowerPortTemplateCount int32 `json:"power_port_template_count"` - PowerOutletTemplateCount int32 `json:"power_outlet_template_count"` - InterfaceTemplateCount int32 `json:"interface_template_count"` - FrontPortTemplateCount int32 `json:"front_port_template_count"` - RearPortTemplateCount int32 `json:"rear_port_template_count"` - DeviceBayTemplateCount int32 `json:"device_bay_template_count"` - ModuleBayTemplateCount int32 `json:"module_bay_template_count"` - InventoryItemTemplateCount int32 `json:"inventory_item_template_count"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer Manufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + AdditionalProperties map[string]interface{} } type _DeviceType DeviceType @@ -68,29 +37,14 @@ type _DeviceType DeviceType // 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 NewDeviceType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32) *DeviceType { +func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string) *DeviceType { this := DeviceType{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model this.Slug = slug - var uHeight float64 = 1.0 - this.UHeight = &uHeight - this.Created = created - this.LastUpdated = lastUpdated - this.ConsolePortTemplateCount = consolePortTemplateCount - this.ConsoleServerPortTemplateCount = consoleServerPortTemplateCount - this.PowerPortTemplateCount = powerPortTemplateCount - this.PowerOutletTemplateCount = powerOutletTemplateCount - this.InterfaceTemplateCount = interfaceTemplateCount - this.FrontPortTemplateCount = frontPortTemplateCount - this.RearPortTemplateCount = rearPortTemplateCount - this.DeviceBayTemplateCount = deviceBayTemplateCount - this.ModuleBayTemplateCount = moduleBayTemplateCount - this.InventoryItemTemplateCount = inventoryItemTemplateCount return &this } @@ -99,8 +53,6 @@ func NewDeviceType(id int32, url string, displayUrl string, display string, manu // but it doesn't guarantee that properties required by API are set func NewDeviceTypeWithDefaults() *DeviceType { this := DeviceType{} - var uHeight float64 = 1.0 - this.UHeight = &uHeight return &this } @@ -152,30 +104,6 @@ func (o *DeviceType) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *DeviceType) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *DeviceType) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *DeviceType) GetDisplay() string { if o == nil { @@ -201,9 +129,9 @@ func (o *DeviceType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *DeviceType) GetManufacturer() BriefManufacturer { +func (o *DeviceType) GetManufacturer() Manufacturer { if o == nil { - var ret BriefManufacturer + var ret Manufacturer return ret } @@ -212,7 +140,7 @@ func (o *DeviceType) GetManufacturer() BriefManufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { +func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { if o == nil { return nil, false } @@ -220,53 +148,10 @@ func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { } // SetManufacturer sets field value -func (o *DeviceType) SetManufacturer(v BriefManufacturer) { +func (o *DeviceType) SetManufacturer(v Manufacturer) { o.Manufacturer = v } -// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetDefaultPlatform() BriefPlatform { - if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret BriefPlatform - return ret - } - return *o.DefaultPlatform.Get() -} - -// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool) { - if o == nil { - return nil, false - } - return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() -} - -// HasDefaultPlatform returns a boolean if a field has been set. -func (o *DeviceType) HasDefaultPlatform() bool { - if o != nil && o.DefaultPlatform.IsSet() { - return true - } - - return false -} - -// SetDefaultPlatform gets a reference to the given NullableBriefPlatform and assigns it to the DefaultPlatform field. -func (o *DeviceType) SetDefaultPlatform(v BriefPlatform) { - o.DefaultPlatform.Set(&v) -} - -// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil -func (o *DeviceType) SetDefaultPlatformNil() { - o.DefaultPlatform.Set(nil) -} - -// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil -func (o *DeviceType) UnsetDefaultPlatform() { - o.DefaultPlatform.Unset() -} - // GetModel returns the Model field value func (o *DeviceType) GetModel() string { if o == nil { @@ -315,392 +200,6 @@ func (o *DeviceType) SetSlug(v string) { o.Slug = v } -// GetPartNumber returns the PartNumber field value if set, zero value otherwise. -func (o *DeviceType) GetPartNumber() string { - if o == nil || IsNil(o.PartNumber) { - var ret string - return ret - } - return *o.PartNumber -} - -// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetPartNumberOk() (*string, bool) { - if o == nil || IsNil(o.PartNumber) { - return nil, false - } - return o.PartNumber, true -} - -// HasPartNumber returns a boolean if a field has been set. -func (o *DeviceType) HasPartNumber() bool { - if o != nil && !IsNil(o.PartNumber) { - return true - } - - return false -} - -// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. -func (o *DeviceType) SetPartNumber(v string) { - o.PartNumber = &v -} - -// GetUHeight returns the UHeight field value if set, zero value otherwise. -func (o *DeviceType) GetUHeight() float64 { - if o == nil || IsNil(o.UHeight) { - var ret float64 - return ret - } - return *o.UHeight -} - -// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetUHeightOk() (*float64, bool) { - if o == nil || IsNil(o.UHeight) { - return nil, false - } - return o.UHeight, true -} - -// HasUHeight returns a boolean if a field has been set. -func (o *DeviceType) HasUHeight() bool { - if o != nil && !IsNil(o.UHeight) { - return true - } - - return false -} - -// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. -func (o *DeviceType) SetUHeight(v float64) { - o.UHeight = &v -} - -// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. -func (o *DeviceType) GetExcludeFromUtilization() bool { - if o == nil || IsNil(o.ExcludeFromUtilization) { - var ret bool - return ret - } - return *o.ExcludeFromUtilization -} - -// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool) { - if o == nil || IsNil(o.ExcludeFromUtilization) { - return nil, false - } - return o.ExcludeFromUtilization, true -} - -// HasExcludeFromUtilization returns a boolean if a field has been set. -func (o *DeviceType) HasExcludeFromUtilization() bool { - if o != nil && !IsNil(o.ExcludeFromUtilization) { - return true - } - - return false -} - -// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. -func (o *DeviceType) SetExcludeFromUtilization(v bool) { - o.ExcludeFromUtilization = &v -} - -// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. -func (o *DeviceType) GetIsFullDepth() bool { - if o == nil || IsNil(o.IsFullDepth) { - var ret bool - return ret - } - return *o.IsFullDepth -} - -// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetIsFullDepthOk() (*bool, bool) { - if o == nil || IsNil(o.IsFullDepth) { - return nil, false - } - return o.IsFullDepth, true -} - -// HasIsFullDepth returns a boolean if a field has been set. -func (o *DeviceType) HasIsFullDepth() bool { - if o != nil && !IsNil(o.IsFullDepth) { - return true - } - - return false -} - -// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. -func (o *DeviceType) SetIsFullDepth(v bool) { - o.IsFullDepth = &v -} - -// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole { - if o == nil || IsNil(o.SubdeviceRole.Get()) { - var ret DeviceTypeSubdeviceRole - return ret - } - return *o.SubdeviceRole.Get() -} - -// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool) { - if o == nil { - return nil, false - } - return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() -} - -// HasSubdeviceRole returns a boolean if a field has been set. -func (o *DeviceType) HasSubdeviceRole() bool { - if o != nil && o.SubdeviceRole.IsSet() { - return true - } - - return false -} - -// SetSubdeviceRole gets a reference to the given NullableDeviceTypeSubdeviceRole and assigns it to the SubdeviceRole field. -func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole) { - o.SubdeviceRole.Set(&v) -} - -// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil -func (o *DeviceType) SetSubdeviceRoleNil() { - o.SubdeviceRole.Set(nil) -} - -// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil -func (o *DeviceType) UnsetSubdeviceRole() { - o.SubdeviceRole.Unset() -} - -// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetAirflow() DeviceTypeAirflow { - if o == nil || IsNil(o.Airflow.Get()) { - var ret DeviceTypeAirflow - return ret - } - return *o.Airflow.Get() -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool) { - if o == nil { - return nil, false - } - return o.Airflow.Get(), o.Airflow.IsSet() -} - -// HasAirflow returns a boolean if a field has been set. -func (o *DeviceType) HasAirflow() bool { - if o != nil && o.Airflow.IsSet() { - return true - } - - return false -} - -// SetAirflow gets a reference to the given NullableDeviceTypeAirflow and assigns it to the Airflow field. -func (o *DeviceType) SetAirflow(v DeviceTypeAirflow) { - o.Airflow.Set(&v) -} - -// SetAirflowNil sets the value for Airflow to be an explicit nil -func (o *DeviceType) SetAirflowNil() { - o.Airflow.Set(nil) -} - -// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -func (o *DeviceType) UnsetAirflow() { - o.Airflow.Unset() -} - -// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetWeight() float64 { - if o == nil || IsNil(o.Weight.Get()) { - var ret float64 - return ret - } - return *o.Weight.Get() -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetWeightOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Weight.Get(), o.Weight.IsSet() -} - -// HasWeight returns a boolean if a field has been set. -func (o *DeviceType) HasWeight() bool { - if o != nil && o.Weight.IsSet() { - return true - } - - return false -} - -// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. -func (o *DeviceType) SetWeight(v float64) { - o.Weight.Set(&v) -} - -// SetWeightNil sets the value for Weight to be an explicit nil -func (o *DeviceType) SetWeightNil() { - o.Weight.Set(nil) -} - -// UnsetWeight ensures that no value is present for Weight, not even an explicit nil -func (o *DeviceType) UnsetWeight() { - o.Weight.Unset() -} - -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit { - if o == nil || IsNil(o.WeightUnit.Get()) { - var ret DeviceTypeWeightUnit - return ret - } - return *o.WeightUnit.Get() -} - -// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { - if o == nil { - return nil, false - } - return o.WeightUnit.Get(), o.WeightUnit.IsSet() -} - -// HasWeightUnit returns a boolean if a field has been set. -func (o *DeviceType) HasWeightUnit() bool { - if o != nil && o.WeightUnit.IsSet() { - return true - } - - return false -} - -// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. -func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit) { - o.WeightUnit.Set(&v) -} - -// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil -func (o *DeviceType) SetWeightUnitNil() { - o.WeightUnit.Set(nil) -} - -// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -func (o *DeviceType) UnsetWeightUnit() { - o.WeightUnit.Unset() -} - -// GetFrontImage returns the FrontImage field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetFrontImage() string { - if o == nil || IsNil(o.FrontImage.Get()) { - var ret string - return ret - } - return *o.FrontImage.Get() -} - -// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetFrontImageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.FrontImage.Get(), o.FrontImage.IsSet() -} - -// HasFrontImage returns a boolean if a field has been set. -func (o *DeviceType) HasFrontImage() bool { - if o != nil && o.FrontImage.IsSet() { - return true - } - - return false -} - -// SetFrontImage gets a reference to the given NullableString and assigns it to the FrontImage field. -func (o *DeviceType) SetFrontImage(v string) { - o.FrontImage.Set(&v) -} - -// SetFrontImageNil sets the value for FrontImage to be an explicit nil -func (o *DeviceType) SetFrontImageNil() { - o.FrontImage.Set(nil) -} - -// UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil -func (o *DeviceType) UnsetFrontImage() { - o.FrontImage.Unset() -} - -// GetRearImage returns the RearImage field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceType) GetRearImage() string { - if o == nil || IsNil(o.RearImage.Get()) { - var ret string - return ret - } - return *o.RearImage.Get() -} - -// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetRearImageOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.RearImage.Get(), o.RearImage.IsSet() -} - -// HasRearImage returns a boolean if a field has been set. -func (o *DeviceType) HasRearImage() bool { - if o != nil && o.RearImage.IsSet() { - return true - } - - return false -} - -// SetRearImage gets a reference to the given NullableString and assigns it to the RearImage field. -func (o *DeviceType) SetRearImage(v string) { - o.RearImage.Set(&v) -} - -// SetRearImageNil sets the value for RearImage to be an explicit nil -func (o *DeviceType) SetRearImageNil() { - o.RearImage.Set(nil) -} - -// UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil -func (o *DeviceType) UnsetRearImage() { - o.RearImage.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -733,154 +232,6 @@ func (o *DeviceType) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DeviceType) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DeviceType) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DeviceType) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *DeviceType) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *DeviceType) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *DeviceType) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *DeviceType) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceType) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *DeviceType) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *DeviceType) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DeviceType) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *DeviceType) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *DeviceType) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *DeviceType) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceType) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -913,246 +264,6 @@ func (o *DeviceType) SetDeviceCount(v int64) { o.DeviceCount = &v } -// GetConsolePortTemplateCount returns the ConsolePortTemplateCount field value -func (o *DeviceType) GetConsolePortTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ConsolePortTemplateCount -} - -// GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ConsolePortTemplateCount, true -} - -// SetConsolePortTemplateCount sets field value -func (o *DeviceType) SetConsolePortTemplateCount(v int32) { - o.ConsolePortTemplateCount = v -} - -// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value -func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ConsoleServerPortTemplateCount -} - -// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ConsoleServerPortTemplateCount, true -} - -// SetConsoleServerPortTemplateCount sets field value -func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) { - o.ConsoleServerPortTemplateCount = v -} - -// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value -func (o *DeviceType) GetPowerPortTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.PowerPortTemplateCount -} - -// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.PowerPortTemplateCount, true -} - -// SetPowerPortTemplateCount sets field value -func (o *DeviceType) SetPowerPortTemplateCount(v int32) { - o.PowerPortTemplateCount = v -} - -// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value -func (o *DeviceType) GetPowerOutletTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.PowerOutletTemplateCount -} - -// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.PowerOutletTemplateCount, true -} - -// SetPowerOutletTemplateCount sets field value -func (o *DeviceType) SetPowerOutletTemplateCount(v int32) { - o.PowerOutletTemplateCount = v -} - -// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value -func (o *DeviceType) GetInterfaceTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.InterfaceTemplateCount -} - -// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.InterfaceTemplateCount, true -} - -// SetInterfaceTemplateCount sets field value -func (o *DeviceType) SetInterfaceTemplateCount(v int32) { - o.InterfaceTemplateCount = v -} - -// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value -func (o *DeviceType) GetFrontPortTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.FrontPortTemplateCount -} - -// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.FrontPortTemplateCount, true -} - -// SetFrontPortTemplateCount sets field value -func (o *DeviceType) SetFrontPortTemplateCount(v int32) { - o.FrontPortTemplateCount = v -} - -// GetRearPortTemplateCount returns the RearPortTemplateCount field value -func (o *DeviceType) GetRearPortTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.RearPortTemplateCount -} - -// GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.RearPortTemplateCount, true -} - -// SetRearPortTemplateCount sets field value -func (o *DeviceType) SetRearPortTemplateCount(v int32) { - o.RearPortTemplateCount = v -} - -// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value -func (o *DeviceType) GetDeviceBayTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.DeviceBayTemplateCount -} - -// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.DeviceBayTemplateCount, true -} - -// SetDeviceBayTemplateCount sets field value -func (o *DeviceType) SetDeviceBayTemplateCount(v int32) { - o.DeviceBayTemplateCount = v -} - -// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value -func (o *DeviceType) GetModuleBayTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ModuleBayTemplateCount -} - -// GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ModuleBayTemplateCount, true -} - -// SetModuleBayTemplateCount sets field value -func (o *DeviceType) SetModuleBayTemplateCount(v int32) { - o.ModuleBayTemplateCount = v -} - -// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value -func (o *DeviceType) GetInventoryItemTemplateCount() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.InventoryItemTemplateCount -} - -// GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field value -// and a boolean to check if the value has been set. -func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.InventoryItemTemplateCount, true -} - -// SetInventoryItemTemplateCount sets field value -func (o *DeviceType) SetInventoryItemTemplateCount(v int32) { - o.InventoryItemTemplateCount = v -} - func (o DeviceType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -1165,71 +276,16 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer - if o.DefaultPlatform.IsSet() { - toSerialize["default_platform"] = o.DefaultPlatform.Get() - } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug - if !IsNil(o.PartNumber) { - toSerialize["part_number"] = o.PartNumber - } - if !IsNil(o.UHeight) { - toSerialize["u_height"] = o.UHeight - } - if !IsNil(o.ExcludeFromUtilization) { - toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization - } - if !IsNil(o.IsFullDepth) { - toSerialize["is_full_depth"] = o.IsFullDepth - } - if o.SubdeviceRole.IsSet() { - toSerialize["subdevice_role"] = o.SubdeviceRole.Get() - } - if o.Airflow.IsSet() { - toSerialize["airflow"] = o.Airflow.Get() - } - if o.Weight.IsSet() { - toSerialize["weight"] = o.Weight.Get() - } - if o.WeightUnit.IsSet() { - toSerialize["weight_unit"] = o.WeightUnit.Get() - } - if o.FrontImage.IsSet() { - toSerialize["front_image"] = o.FrontImage.Get() - } - if o.RearImage.IsSet() { - toSerialize["rear_image"] = o.RearImage.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } - toSerialize["console_port_template_count"] = o.ConsolePortTemplateCount - toSerialize["console_server_port_template_count"] = o.ConsoleServerPortTemplateCount - toSerialize["power_port_template_count"] = o.PowerPortTemplateCount - toSerialize["power_outlet_template_count"] = o.PowerOutletTemplateCount - toSerialize["interface_template_count"] = o.InterfaceTemplateCount - toSerialize["front_port_template_count"] = o.FrontPortTemplateCount - toSerialize["rear_port_template_count"] = o.RearPortTemplateCount - toSerialize["device_bay_template_count"] = o.DeviceBayTemplateCount - toSerialize["module_bay_template_count"] = o.ModuleBayTemplateCount - toSerialize["inventory_item_template_count"] = o.InventoryItemTemplateCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1245,23 +301,10 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "manufacturer", "model", "slug", - "created", - "last_updated", - "console_port_template_count", - "console_server_port_template_count", - "power_port_template_count", - "power_outlet_template_count", - "interface_template_count", - "front_port_template_count", - "rear_port_template_count", - "device_bay_template_count", - "module_bay_template_count", - "inventory_item_template_count", } allProperties := make(map[string]interface{}) @@ -1293,39 +336,12 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") - delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") - delete(additionalProperties, "part_number") - delete(additionalProperties, "u_height") - delete(additionalProperties, "exclude_from_utilization") - delete(additionalProperties, "is_full_depth") - delete(additionalProperties, "subdevice_role") - delete(additionalProperties, "airflow") - delete(additionalProperties, "weight") - delete(additionalProperties, "weight_unit") - delete(additionalProperties, "front_image") - delete(additionalProperties, "rear_image") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") - delete(additionalProperties, "console_port_template_count") - delete(additionalProperties, "console_server_port_template_count") - delete(additionalProperties, "power_port_template_count") - delete(additionalProperties, "power_outlet_template_count") - delete(additionalProperties, "interface_template_count") - delete(additionalProperties, "front_port_template_count") - delete(additionalProperties, "rear_port_template_count") - delete(additionalProperties, "device_bay_template_count") - delete(additionalProperties, "module_bay_template_count") - delete(additionalProperties, "inventory_item_template_count") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go index dc4e6ca54..ee6c423c3 100644 --- a/model_device_type_airflow.go +++ b/model_device_type_airflow.go @@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceTypeAirflow{} // DeviceTypeAirflow struct for DeviceTypeAirflow type DeviceTypeAirflow struct { - Value *DeviceAirflowValue `json:"value,omitempty"` - Label *DeviceAirflowLabel `json:"label,omitempty"` + Value *DeviceAirflowValue `json:"value,omitempty"` + Label *DeviceAirflowLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DeviceTypeAirflow) SetLabel(v DeviceAirflowLabel) { } func (o DeviceTypeAirflow) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableDeviceTypeAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_device_type_request.go b/model_device_type_request.go index 08c2fd234..f72377aaa 100644 --- a/model_device_type_request.go +++ b/model_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "os" ) // checks if the DeviceTypeRequest type satisfies the MappedNullable interface at compile time @@ -21,27 +20,10 @@ var _ MappedNullable = &DeviceTypeRequest{} // DeviceTypeRequest Adds support for custom fields and tags. type DeviceTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` - // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - UHeight *float64 `json:"u_height,omitempty"` - // Devices of this type are excluded when calculating rack utilization. - ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` - // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole NullableDeviceTypeRequestSubdeviceRole `json:"subdevice_role,omitempty"` - Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Manufacturer ManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,13 +33,11 @@ type _DeviceTypeRequest DeviceTypeRequest // 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 NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *DeviceTypeRequest { +func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *DeviceTypeRequest { this := DeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model this.Slug = slug - var uHeight float64 = 1.0 - this.UHeight = &uHeight return &this } @@ -66,15 +46,13 @@ func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, s // but it doesn't guarantee that properties required by API are set func NewDeviceTypeRequestWithDefaults() *DeviceTypeRequest { this := DeviceTypeRequest{} - var uHeight float64 = 1.0 - this.UHeight = &uHeight return &this } // GetManufacturer returns the Manufacturer field value -func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { +func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { if o == nil { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } @@ -83,7 +61,7 @@ func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -91,53 +69,10 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool } // SetManufacturer sets field value -func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { +func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer = v } -// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { - if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret BriefPlatformRequest - return ret - } - return *o.DefaultPlatform.Get() -} - -// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { - if o == nil { - return nil, false - } - return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() -} - -// HasDefaultPlatform returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasDefaultPlatform() bool { - if o != nil && o.DefaultPlatform.IsSet() { - return true - } - - return false -} - -// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. -func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { - o.DefaultPlatform.Set(&v) -} - -// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil -func (o *DeviceTypeRequest) SetDefaultPlatformNil() { - o.DefaultPlatform.Set(nil) -} - -// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil -func (o *DeviceTypeRequest) UnsetDefaultPlatform() { - o.DefaultPlatform.Unset() -} - // GetModel returns the Model field value func (o *DeviceTypeRequest) GetModel() string { if o == nil { @@ -186,370 +121,6 @@ func (o *DeviceTypeRequest) SetSlug(v string) { o.Slug = v } -// GetPartNumber returns the PartNumber field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetPartNumber() string { - if o == nil || IsNil(o.PartNumber) { - var ret string - return ret - } - return *o.PartNumber -} - -// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool) { - if o == nil || IsNil(o.PartNumber) { - return nil, false - } - return o.PartNumber, true -} - -// HasPartNumber returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasPartNumber() bool { - if o != nil && !IsNil(o.PartNumber) { - return true - } - - return false -} - -// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. -func (o *DeviceTypeRequest) SetPartNumber(v string) { - o.PartNumber = &v -} - -// GetUHeight returns the UHeight field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetUHeight() float64 { - if o == nil || IsNil(o.UHeight) { - var ret float64 - return ret - } - return *o.UHeight -} - -// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool) { - if o == nil || IsNil(o.UHeight) { - return nil, false - } - return o.UHeight, true -} - -// HasUHeight returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasUHeight() bool { - if o != nil && !IsNil(o.UHeight) { - return true - } - - return false -} - -// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. -func (o *DeviceTypeRequest) SetUHeight(v float64) { - o.UHeight = &v -} - -// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool { - if o == nil || IsNil(o.ExcludeFromUtilization) { - var ret bool - return ret - } - return *o.ExcludeFromUtilization -} - -// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool) { - if o == nil || IsNil(o.ExcludeFromUtilization) { - return nil, false - } - return o.ExcludeFromUtilization, true -} - -// HasExcludeFromUtilization returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool { - if o != nil && !IsNil(o.ExcludeFromUtilization) { - return true - } - - return false -} - -// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. -func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool) { - o.ExcludeFromUtilization = &v -} - -// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetIsFullDepth() bool { - if o == nil || IsNil(o.IsFullDepth) { - var ret bool - return ret - } - return *o.IsFullDepth -} - -// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool) { - if o == nil || IsNil(o.IsFullDepth) { - return nil, false - } - return o.IsFullDepth, true -} - -// HasIsFullDepth returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasIsFullDepth() bool { - if o != nil && !IsNil(o.IsFullDepth) { - return true - } - - return false -} - -// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. -func (o *DeviceTypeRequest) SetIsFullDepth(v bool) { - o.IsFullDepth = &v -} - -// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole { - if o == nil || IsNil(o.SubdeviceRole.Get()) { - var ret DeviceTypeRequestSubdeviceRole - return ret - } - return *o.SubdeviceRole.Get() -} - -// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool) { - if o == nil { - return nil, false - } - return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() -} - -// HasSubdeviceRole returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasSubdeviceRole() bool { - if o != nil && o.SubdeviceRole.IsSet() { - return true - } - - return false -} - -// SetSubdeviceRole gets a reference to the given NullableDeviceTypeRequestSubdeviceRole and assigns it to the SubdeviceRole field. -func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole) { - o.SubdeviceRole.Set(&v) -} - -// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil -func (o *DeviceTypeRequest) SetSubdeviceRoleNil() { - o.SubdeviceRole.Set(nil) -} - -// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil -func (o *DeviceTypeRequest) UnsetSubdeviceRole() { - o.SubdeviceRole.Unset() -} - -// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { - if o == nil || IsNil(o.Airflow.Get()) { - var ret DeviceTypeRequestAirflow - return ret - } - return *o.Airflow.Get() -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { - if o == nil { - return nil, false - } - return o.Airflow.Get(), o.Airflow.IsSet() -} - -// HasAirflow returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasAirflow() bool { - if o != nil && o.Airflow.IsSet() { - return true - } - - return false -} - -// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. -func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { - o.Airflow.Set(&v) -} - -// SetAirflowNil sets the value for Airflow to be an explicit nil -func (o *DeviceTypeRequest) SetAirflowNil() { - o.Airflow.Set(nil) -} - -// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -func (o *DeviceTypeRequest) UnsetAirflow() { - o.Airflow.Unset() -} - -// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceTypeRequest) GetWeight() float64 { - if o == nil || IsNil(o.Weight.Get()) { - var ret float64 - return ret - } - return *o.Weight.Get() -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Weight.Get(), o.Weight.IsSet() -} - -// HasWeight returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasWeight() bool { - if o != nil && o.Weight.IsSet() { - return true - } - - return false -} - -// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. -func (o *DeviceTypeRequest) SetWeight(v float64) { - o.Weight.Set(&v) -} - -// SetWeightNil sets the value for Weight to be an explicit nil -func (o *DeviceTypeRequest) SetWeightNil() { - o.Weight.Set(nil) -} - -// UnsetWeight ensures that no value is present for Weight, not even an explicit nil -func (o *DeviceTypeRequest) UnsetWeight() { - o.Weight.Unset() -} - -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit.Get()) { - var ret DeviceTypeRequestWeightUnit - return ret - } - return *o.WeightUnit.Get() -} - -// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { - if o == nil { - return nil, false - } - return o.WeightUnit.Get(), o.WeightUnit.IsSet() -} - -// HasWeightUnit returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasWeightUnit() bool { - if o != nil && o.WeightUnit.IsSet() { - return true - } - - return false -} - -// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { - o.WeightUnit.Set(&v) -} - -// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil -func (o *DeviceTypeRequest) SetWeightUnitNil() { - o.WeightUnit.Set(nil) -} - -// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -func (o *DeviceTypeRequest) UnsetWeightUnit() { - o.WeightUnit.Unset() -} - -// GetFrontImage returns the FrontImage field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetFrontImage() *os.File { - if o == nil || IsNil(o.FrontImage) { - var ret *os.File - return ret - } - return *o.FrontImage -} - -// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool) { - if o == nil || IsNil(o.FrontImage) { - return nil, false - } - return o.FrontImage, true -} - -// HasFrontImage returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasFrontImage() bool { - if o != nil && !IsNil(o.FrontImage) { - return true - } - - return false -} - -// SetFrontImage gets a reference to the given *os.File and assigns it to the FrontImage field. -func (o *DeviceTypeRequest) SetFrontImage(v *os.File) { - o.FrontImage = &v -} - -// GetRearImage returns the RearImage field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetRearImage() *os.File { - if o == nil || IsNil(o.RearImage) { - var ret *os.File - return ret - } - return *o.RearImage -} - -// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool) { - if o == nil || IsNil(o.RearImage) { - return nil, false - } - return o.RearImage, true -} - -// HasRearImage returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasRearImage() bool { - if o != nil && !IsNil(o.RearImage) { - return true - } - - return false -} - -// SetRearImage gets a reference to the given *os.File and assigns it to the RearImage field. -func (o *DeviceTypeRequest) SetRearImage(v *os.File) { - o.RearImage = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -582,102 +153,6 @@ func (o *DeviceTypeRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DeviceTypeRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *DeviceTypeRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -689,53 +164,11 @@ func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer - if o.DefaultPlatform.IsSet() { - toSerialize["default_platform"] = o.DefaultPlatform.Get() - } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug - if !IsNil(o.PartNumber) { - toSerialize["part_number"] = o.PartNumber - } - if !IsNil(o.UHeight) { - toSerialize["u_height"] = o.UHeight - } - if !IsNil(o.ExcludeFromUtilization) { - toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization - } - if !IsNil(o.IsFullDepth) { - toSerialize["is_full_depth"] = o.IsFullDepth - } - if o.SubdeviceRole.IsSet() { - toSerialize["subdevice_role"] = o.SubdeviceRole.Get() - } - if o.Airflow.IsSet() { - toSerialize["airflow"] = o.Airflow.Get() - } - if o.Weight.IsSet() { - toSerialize["weight"] = o.Weight.Get() - } - if o.WeightUnit.IsSet() { - toSerialize["weight_unit"] = o.WeightUnit.Get() - } - if !IsNil(o.FrontImage) { - toSerialize["front_image"] = o.FrontImage - } - if !IsNil(o.RearImage) { - toSerialize["rear_image"] = o.RearImage - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -782,23 +215,9 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") - delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") - delete(additionalProperties, "part_number") - delete(additionalProperties, "u_height") - delete(additionalProperties, "exclude_from_utilization") - delete(additionalProperties, "is_full_depth") - delete(additionalProperties, "subdevice_role") - delete(additionalProperties, "airflow") - delete(additionalProperties, "weight") - delete(additionalProperties, "weight_unit") - delete(additionalProperties, "front_image") - delete(additionalProperties, "rear_image") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go index 8c3a8d0d7..2808adfe4 100644 --- a/model_device_type_request_airflow.go +++ b/model_device_type_request_airflow.go @@ -24,10 +24,10 @@ const ( DEVICETYPEREQUESTAIRFLOW_REAR_TO_FRONT DeviceTypeRequestAirflow = "rear-to-front" DEVICETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT DeviceTypeRequestAirflow = "left-to-right" DEVICETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT DeviceTypeRequestAirflow = "right-to-left" - DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear" - DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive" - DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed" - DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = "" + DEVICETYPEREQUESTAIRFLOW_SIDE_TO_REAR DeviceTypeRequestAirflow = "side-to-rear" + DEVICETYPEREQUESTAIRFLOW_PASSIVE DeviceTypeRequestAirflow = "passive" + DEVICETYPEREQUESTAIRFLOW_MIXED DeviceTypeRequestAirflow = "mixed" + DEVICETYPEREQUESTAIRFLOW_EMPTY DeviceTypeRequestAirflow = "" ) // All allowed values of DeviceTypeRequestAirflow enum @@ -120,4 +120,3 @@ func (v *NullableDeviceTypeRequestAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_type_request_subdevice_role.go b/model_device_type_request_subdevice_role.go index f0f8c76bb..b53b882fc 100644 --- a/model_device_type_request_subdevice_role.go +++ b/model_device_type_request_subdevice_role.go @@ -21,8 +21,8 @@ type DeviceTypeRequestSubdeviceRole string // List of DeviceTypeRequest_subdevice_role const ( DEVICETYPEREQUESTSUBDEVICEROLE_PARENT DeviceTypeRequestSubdeviceRole = "parent" - DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child" - DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = "" + DEVICETYPEREQUESTSUBDEVICEROLE_CHILD DeviceTypeRequestSubdeviceRole = "child" + DEVICETYPEREQUESTSUBDEVICEROLE_EMPTY DeviceTypeRequestSubdeviceRole = "" ) // All allowed values of DeviceTypeRequestSubdeviceRole enum @@ -110,4 +110,3 @@ func (v *NullableDeviceTypeRequestSubdeviceRole) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_type_request_weight_unit.go b/model_device_type_request_weight_unit.go index e6c3d33a2..c3c8d1968 100644 --- a/model_device_type_request_weight_unit.go +++ b/model_device_type_request_weight_unit.go @@ -20,10 +20,10 @@ type DeviceTypeRequestWeightUnit string // List of DeviceTypeRequest_weight_unit const ( - DEVICETYPEREQUESTWEIGHTUNIT_KG DeviceTypeRequestWeightUnit = "kg" - DEVICETYPEREQUESTWEIGHTUNIT_G DeviceTypeRequestWeightUnit = "g" - DEVICETYPEREQUESTWEIGHTUNIT_LB DeviceTypeRequestWeightUnit = "lb" - DEVICETYPEREQUESTWEIGHTUNIT_OZ DeviceTypeRequestWeightUnit = "oz" + DEVICETYPEREQUESTWEIGHTUNIT_KG DeviceTypeRequestWeightUnit = "kg" + DEVICETYPEREQUESTWEIGHTUNIT_G DeviceTypeRequestWeightUnit = "g" + DEVICETYPEREQUESTWEIGHTUNIT_LB DeviceTypeRequestWeightUnit = "lb" + DEVICETYPEREQUESTWEIGHTUNIT_OZ DeviceTypeRequestWeightUnit = "oz" DEVICETYPEREQUESTWEIGHTUNIT_EMPTY DeviceTypeRequestWeightUnit = "" ) @@ -114,4 +114,3 @@ func (v *NullableDeviceTypeRequestWeightUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_type_subdevice_role.go b/model_device_type_subdevice_role.go index 5b75b637d..46b5a8f68 100644 --- a/model_device_type_subdevice_role.go +++ b/model_device_type_subdevice_role.go @@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceTypeSubdeviceRole{} // DeviceTypeSubdeviceRole struct for DeviceTypeSubdeviceRole type DeviceTypeSubdeviceRole struct { - Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"` - Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"` + Value *DeviceTypeSubdeviceRoleValue `json:"value,omitempty"` + Label *DeviceTypeSubdeviceRoleLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DeviceTypeSubdeviceRole) SetLabel(v DeviceTypeSubdeviceRoleLabel) { } func (o DeviceTypeSubdeviceRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableDeviceTypeSubdeviceRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go index 93ca1992a..043957dca 100644 --- a/model_device_type_subdevice_role_label.go +++ b/model_device_type_subdevice_role_label.go @@ -21,7 +21,7 @@ type DeviceTypeSubdeviceRoleLabel string // List of DeviceType_subdevice_role_label const ( DEVICETYPESUBDEVICEROLELABEL_PARENT DeviceTypeSubdeviceRoleLabel = "Parent" - DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child" + DEVICETYPESUBDEVICEROLELABEL_CHILD DeviceTypeSubdeviceRoleLabel = "Child" ) // All allowed values of DeviceTypeSubdeviceRoleLabel enum @@ -108,4 +108,3 @@ func (v *NullableDeviceTypeSubdeviceRoleLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_type_subdevice_role_value.go b/model_device_type_subdevice_role_value.go index 72f6d0fab..2b9833779 100644 --- a/model_device_type_subdevice_role_value.go +++ b/model_device_type_subdevice_role_value.go @@ -21,8 +21,8 @@ type DeviceTypeSubdeviceRoleValue string // List of DeviceType_subdevice_role_value const ( DEVICETYPESUBDEVICEROLEVALUE_PARENT DeviceTypeSubdeviceRoleValue = "parent" - DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child" - DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = "" + DEVICETYPESUBDEVICEROLEVALUE_CHILD DeviceTypeSubdeviceRoleValue = "child" + DEVICETYPESUBDEVICEROLEVALUE_EMPTY DeviceTypeSubdeviceRoleValue = "" ) // All allowed values of DeviceTypeSubdeviceRoleValue enum @@ -110,4 +110,3 @@ func (v *NullableDeviceTypeSubdeviceRoleValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_type_weight_unit.go b/model_device_type_weight_unit.go index 91dbf9510..422695824 100644 --- a/model_device_type_weight_unit.go +++ b/model_device_type_weight_unit.go @@ -19,8 +19,8 @@ var _ MappedNullable = &DeviceTypeWeightUnit{} // DeviceTypeWeightUnit struct for DeviceTypeWeightUnit type DeviceTypeWeightUnit struct { - Value *DeviceTypeWeightUnitValue `json:"value,omitempty"` - Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"` + Value *DeviceTypeWeightUnitValue `json:"value,omitempty"` + Label *DeviceTypeWeightUnitLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *DeviceTypeWeightUnit) SetLabel(v DeviceTypeWeightUnitLabel) { } func (o DeviceTypeWeightUnit) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableDeviceTypeWeightUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go index 54a687c4a..20a3372ce 100644 --- a/model_device_type_weight_unit_label.go +++ b/model_device_type_weight_unit_label.go @@ -21,9 +21,9 @@ type DeviceTypeWeightUnitLabel string // List of DeviceType_weight_unit_label const ( DEVICETYPEWEIGHTUNITLABEL_KILOGRAMS DeviceTypeWeightUnitLabel = "Kilograms" - DEVICETYPEWEIGHTUNITLABEL_GRAMS DeviceTypeWeightUnitLabel = "Grams" - DEVICETYPEWEIGHTUNITLABEL_POUNDS DeviceTypeWeightUnitLabel = "Pounds" - DEVICETYPEWEIGHTUNITLABEL_OUNCES DeviceTypeWeightUnitLabel = "Ounces" + DEVICETYPEWEIGHTUNITLABEL_GRAMS DeviceTypeWeightUnitLabel = "Grams" + DEVICETYPEWEIGHTUNITLABEL_POUNDS DeviceTypeWeightUnitLabel = "Pounds" + DEVICETYPEWEIGHTUNITLABEL_OUNCES DeviceTypeWeightUnitLabel = "Ounces" ) // All allowed values of DeviceTypeWeightUnitLabel enum @@ -112,4 +112,3 @@ func (v *NullableDeviceTypeWeightUnitLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_type_weight_unit_value.go b/model_device_type_weight_unit_value.go index 7a188d0f2..eb0590007 100644 --- a/model_device_type_weight_unit_value.go +++ b/model_device_type_weight_unit_value.go @@ -20,10 +20,10 @@ type DeviceTypeWeightUnitValue string // List of DeviceType_weight_unit_value const ( - DEVICETYPEWEIGHTUNITVALUE_KG DeviceTypeWeightUnitValue = "kg" - DEVICETYPEWEIGHTUNITVALUE_G DeviceTypeWeightUnitValue = "g" - DEVICETYPEWEIGHTUNITVALUE_LB DeviceTypeWeightUnitValue = "lb" - DEVICETYPEWEIGHTUNITVALUE_OZ DeviceTypeWeightUnitValue = "oz" + DEVICETYPEWEIGHTUNITVALUE_KG DeviceTypeWeightUnitValue = "kg" + DEVICETYPEWEIGHTUNITVALUE_G DeviceTypeWeightUnitValue = "g" + DEVICETYPEWEIGHTUNITVALUE_LB DeviceTypeWeightUnitValue = "lb" + DEVICETYPEWEIGHTUNITVALUE_OZ DeviceTypeWeightUnitValue = "oz" DEVICETYPEWEIGHTUNITVALUE_EMPTY DeviceTypeWeightUnitValue = "" ) @@ -114,4 +114,3 @@ func (v *NullableDeviceTypeWeightUnitValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_device_with_config_context.go b/model_device_with_config_context.go index 607416f4d..f4dfc538e 100644 --- a/model_device_with_config_context.go +++ b/model_device_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,44 +21,43 @@ var _ MappedNullable = &DeviceWithConfigContext{} // DeviceWithConfigContext Adds support for custom fields and tags. type DeviceWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType BriefDeviceType `json:"device_type"` - Role BriefDeviceRole `json:"role"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Platform NullableBriefPlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType DeviceType `json:"device_type"` + Role DeviceRole `json:"role"` + Tenant NullableTenant `json:"tenant,omitempty"` + Platform NullablePlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site BriefSite `json:"site"` - Location NullableBriefLocation `json:"location,omitempty"` - Rack NullableBriefRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site Site `json:"site"` + Location NullableLocation `json:"location,omitempty"` + Rack NullableRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableBriefIPAddress `json:"primary_ip"` - PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` - Cluster NullableBriefCluster `json:"cluster,omitempty"` - VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableIPAddress `json:"primary_ip"` + PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableIPAddress `json:"oob_ip,omitempty"` + Cluster NullableCluster `json:"cluster,omitempty"` + VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` - ConfigContext interface{} `json:"config_context"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + ConfigContext interface{} `json:"config_context"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -84,11 +83,10 @@ type _DeviceWithConfigContext DeviceWithConfigContext // 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 NewDeviceWithConfigContext(id int32, url string, displayUrl string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { +func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { this := DeviceWithConfigContext{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.DeviceType = deviceType this.Role = role @@ -167,30 +165,6 @@ func (o *DeviceWithConfigContext) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *DeviceWithConfigContext) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *DeviceWithConfigContext) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *DeviceWithConfigContext) GetDisplay() string { if o == nil { @@ -259,9 +233,9 @@ func (o *DeviceWithConfigContext) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType { +func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { if o == nil { - var ret BriefDeviceType + var ret DeviceType return ret } @@ -270,7 +244,7 @@ func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -278,14 +252,14 @@ func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType) { +func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole { +func (o *DeviceWithConfigContext) GetRole() DeviceRole { if o == nil { - var ret BriefDeviceRole + var ret DeviceRole return ret } @@ -294,7 +268,7 @@ func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { +func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { if o == nil { return nil, false } @@ -302,14 +276,14 @@ func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { } // SetRole sets field value -func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole) { +func (o *DeviceWithConfigContext) SetRole(v DeviceRole) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetTenant() BriefTenant { +func (o *DeviceWithConfigContext) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -318,7 +292,7 @@ func (o *DeviceWithConfigContext) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool) { +func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -334,8 +308,8 @@ func (o *DeviceWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *DeviceWithConfigContext) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *DeviceWithConfigContext) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -350,9 +324,9 @@ func (o *DeviceWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform { +func (o *DeviceWithConfigContext) GetPlatform() Platform { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatform + var ret Platform return ret } return *o.Platform.Get() @@ -361,7 +335,7 @@ func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { +func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool) { if o == nil { return nil, false } @@ -377,8 +351,8 @@ func (o *DeviceWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. -func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform) { +// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. +func (o *DeviceWithConfigContext) SetPlatform(v Platform) { o.Platform.Set(&v) } @@ -468,9 +442,9 @@ func (o *DeviceWithConfigContext) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContext) GetSite() BriefSite { +func (o *DeviceWithConfigContext) GetSite() Site { if o == nil { - var ret BriefSite + var ret Site return ret } @@ -479,7 +453,7 @@ func (o *DeviceWithConfigContext) GetSite() BriefSite { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool) { +func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { if o == nil { return nil, false } @@ -487,14 +461,14 @@ func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContext) SetSite(v BriefSite) { +func (o *DeviceWithConfigContext) SetSite(v Site) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetLocation() BriefLocation { +func (o *DeviceWithConfigContext) GetLocation() Location { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocation + var ret Location return ret } return *o.Location.Get() @@ -503,7 +477,7 @@ func (o *DeviceWithConfigContext) GetLocation() BriefLocation { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool) { +func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool) { if o == nil { return nil, false } @@ -519,8 +493,8 @@ func (o *DeviceWithConfigContext) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. -func (o *DeviceWithConfigContext) SetLocation(v BriefLocation) { +// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. +func (o *DeviceWithConfigContext) SetLocation(v Location) { o.Location.Set(&v) } @@ -535,9 +509,9 @@ func (o *DeviceWithConfigContext) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetRack() BriefRack { +func (o *DeviceWithConfigContext) GetRack() Rack { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRack + var ret Rack return ret } return *o.Rack.Get() @@ -546,7 +520,7 @@ func (o *DeviceWithConfigContext) GetRack() BriefRack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool) { +func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool) { if o == nil { return nil, false } @@ -562,8 +536,8 @@ func (o *DeviceWithConfigContext) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. -func (o *DeviceWithConfigContext) SetRack(v BriefRack) { +// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. +func (o *DeviceWithConfigContext) SetRack(v Rack) { o.Rack.Set(&v) } @@ -829,10 +803,10 @@ func (o *DeviceWithConfigContext) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for BriefIPAddress will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress { +// If the value is explicit nil, the zero value for IPAddress will be returned +func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret BriefIPAddress + var ret IPAddress return ret } @@ -842,7 +816,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -850,14 +824,14 @@ func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { } // SetPrimaryIp sets field value -func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress) { +func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp4.Get() @@ -866,7 +840,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -882,8 +856,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress) { o.PrimaryIp4.Set(&v) } @@ -898,9 +872,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp6.Get() @@ -909,7 +883,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -925,8 +899,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress) { o.PrimaryIp6.Set(&v) } @@ -941,9 +915,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress { +func (o *DeviceWithConfigContext) GetOobIp() IPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.OobIp.Get() @@ -952,7 +926,7 @@ func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool) { +func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -968,8 +942,8 @@ func (o *DeviceWithConfigContext) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. -func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress) { +// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. +func (o *DeviceWithConfigContext) SetOobIp(v IPAddress) { o.OobIp.Set(&v) } @@ -984,9 +958,9 @@ func (o *DeviceWithConfigContext) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetCluster() BriefCluster { +func (o *DeviceWithConfigContext) GetCluster() Cluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefCluster + var ret Cluster return ret } return *o.Cluster.Get() @@ -995,7 +969,7 @@ func (o *DeviceWithConfigContext) GetCluster() BriefCluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool) { +func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool) { if o == nil { return nil, false } @@ -1011,8 +985,8 @@ func (o *DeviceWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. -func (o *DeviceWithConfigContext) SetCluster(v BriefCluster) { +// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. +func (o *DeviceWithConfigContext) SetCluster(v Cluster) { o.Cluster.Set(&v) } @@ -1027,9 +1001,9 @@ func (o *DeviceWithConfigContext) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis { +func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret BriefVirtualChassis + var ret VirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1038,7 +1012,7 @@ func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { +func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool) { if o == nil { return nil, false } @@ -1054,8 +1028,8 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1220,9 +1194,9 @@ func (o *DeviceWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate { +func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplate + var ret ConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1231,7 +1205,7 @@ func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { +func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { if o == nil { return nil, false } @@ -1247,8 +1221,8 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1689,7 +1663,6 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -1804,7 +1777,6 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device_type", "role", @@ -1855,7 +1827,6 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go index 75a1b8447..b259fc842 100644 --- a/model_device_with_config_context_request.go +++ b/model_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{} // DeviceWithConfigContextRequest Adds support for custom fields and tags. type DeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType BriefDeviceTypeRequest `json:"device_type"` - Role BriefDeviceRoleRequest `json:"role"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType DeviceTypeRequest `json:"device_type"` + Role DeviceRoleRequest `json:"role"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Platform NullablePlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site BriefSiteRequest `json:"site"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Rack NullableBriefRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFaceValue `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site SiteRequest `json:"site"` + Location NullableLocationRequest `json:"location,omitempty"` + Rack NullableRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFaceValue `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _DeviceWithConfigContextRequest DeviceWithConfigContextRequest // 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 NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *DeviceWithConfigContextRequest { +func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest) *DeviceWithConfigContextRequest { this := DeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -124,9 +124,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { if o == nil { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } @@ -135,7 +135,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -143,14 +143,14 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequ } // SetDeviceType sets field value -func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { +func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { +func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { if o == nil { - var ret BriefDeviceRoleRequest + var ret DeviceRoleRequest return ret } @@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -167,14 +167,14 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, b } // SetRole sets field value -func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { +func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { +func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -183,7 +183,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -199,8 +199,8 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -215,9 +215,9 @@ func (o *DeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { +func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.Platform.Get() @@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -242,8 +242,8 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. -func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { +// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. +func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { o.Platform.Set(&v) } @@ -333,9 +333,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest { +func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { if o == nil { - var ret BriefSiteRequest + var ret SiteRequest return ret } @@ -344,7 +344,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -352,14 +352,14 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { +func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { +func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest + var ret LocationRequest return ret } return *o.Location.Get() @@ -368,7 +368,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { if o == nil { return nil, false } @@ -384,8 +384,8 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { +// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. +func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest) { o.Location.Set(&v) } @@ -400,9 +400,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest { +func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack.Get() @@ -411,7 +411,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -427,8 +427,8 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. -func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. +func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest) { o.Rack.Set(&v) } @@ -668,9 +668,9 @@ func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -679,7 +679,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -695,8 +695,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -711,9 +711,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -722,7 +722,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -738,8 +738,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -754,9 +754,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.OobIp.Get() @@ -765,7 +765,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -781,8 +781,8 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. -func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { +// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. +func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { o.OobIp.Set(&v) } @@ -797,9 +797,9 @@ func (o *DeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { +func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefClusterRequest + var ret ClusterRequest return ret } return *o.Cluster.Get() @@ -808,7 +808,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { if o == nil { return nil, false } @@ -824,8 +824,8 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. -func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { +// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. +func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { o.Cluster.Set(&v) } @@ -840,9 +840,9 @@ func (o *DeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { +func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret BriefVirtualChassisRequest + var ret VirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -851,7 +851,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassis // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -867,8 +867,8 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1033,9 +1033,9 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1044,7 +1044,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplate // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1060,8 +1060,8 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_encryption.go b/model_encryption.go index 0a51f381f..718a00acd 100644 --- a/model_encryption.go +++ b/model_encryption.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end.go b/model_end.go index eececa162..e5ba360cb 100644 --- a/model_end.go +++ b/model_end.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end_1.go b/model_end_1.go index 05bfc2b0c..b71fc25b1 100644 --- a/model_end_1.go +++ b/model_end_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event.go b/model_event.go index a726272d7..95efbf9e7 100644 --- a/model_event.go +++ b/model_event.go @@ -23,10 +23,10 @@ const ( EVENT_OBJECT_CREATED Event = "object_created" EVENT_OBJECT_UPDATED Event = "object_updated" EVENT_OBJECT_DELETED Event = "object_deleted" - EVENT_JOB_STARTED Event = "job_started" - EVENT_JOB_COMPLETED Event = "job_completed" - EVENT_JOB_FAILED Event = "job_failed" - EVENT_JOB_ERRORED Event = "job_errored" + EVENT_JOB_STARTED Event = "job_started" + EVENT_JOB_COMPLETED Event = "job_completed" + EVENT_JOB_FAILED Event = "job_failed" + EVENT_JOB_ERRORED Event = "job_errored" ) // All allowed values of Event enum @@ -118,4 +118,3 @@ func (v *NullableEvent) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_event_rule.go b/model_event_rule.go index 9e472b28d..b3f5d4e41 100644 --- a/model_event_rule.go +++ b/model_event_rule.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,20 @@ var _ MappedNullable = &EventRule{} type EventRule struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - // The types of event which will trigger this rule. - EventTypes []EventRuleEventTypesInner `json:"event_types"` + // Triggers when a matching object is created. + TypeCreate *bool `json:"type_create,omitempty"` + // Triggers when a matching object is updated. + TypeUpdate *bool `json:"type_update,omitempty"` + // Triggers when a matching object is deleted. + TypeDelete *bool `json:"type_delete,omitempty"` + // Triggers when a job for a matching object is started. + TypeJobStart *bool `json:"type_job_start,omitempty"` + // Triggers when a job for a matching object terminates. + TypeJobEnd *bool `json:"type_job_end,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType EventRuleActionType `json:"action_type"` @@ -50,15 +57,13 @@ type _EventRule EventRule // 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 NewEventRule(id int32, url string, displayUrl string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { +func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { this := EventRule{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name - this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType this.ActionObject = actionObject @@ -123,30 +128,6 @@ func (o *EventRule) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *EventRule) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *EventRule) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *EventRule) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *EventRule) GetDisplay() string { if o == nil { @@ -219,6 +200,166 @@ func (o *EventRule) SetName(v string) { o.Name = v } +// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. +func (o *EventRule) GetTypeCreate() bool { + if o == nil || IsNil(o.TypeCreate) { + var ret bool + return ret + } + return *o.TypeCreate +} + +// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetTypeCreateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeCreate) { + return nil, false + } + return o.TypeCreate, true +} + +// HasTypeCreate returns a boolean if a field has been set. +func (o *EventRule) HasTypeCreate() bool { + if o != nil && !IsNil(o.TypeCreate) { + return true + } + + return false +} + +// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. +func (o *EventRule) SetTypeCreate(v bool) { + o.TypeCreate = &v +} + +// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. +func (o *EventRule) GetTypeUpdate() bool { + if o == nil || IsNil(o.TypeUpdate) { + var ret bool + return ret + } + return *o.TypeUpdate +} + +// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetTypeUpdateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeUpdate) { + return nil, false + } + return o.TypeUpdate, true +} + +// HasTypeUpdate returns a boolean if a field has been set. +func (o *EventRule) HasTypeUpdate() bool { + if o != nil && !IsNil(o.TypeUpdate) { + return true + } + + return false +} + +// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. +func (o *EventRule) SetTypeUpdate(v bool) { + o.TypeUpdate = &v +} + +// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. +func (o *EventRule) GetTypeDelete() bool { + if o == nil || IsNil(o.TypeDelete) { + var ret bool + return ret + } + return *o.TypeDelete +} + +// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetTypeDeleteOk() (*bool, bool) { + if o == nil || IsNil(o.TypeDelete) { + return nil, false + } + return o.TypeDelete, true +} + +// HasTypeDelete returns a boolean if a field has been set. +func (o *EventRule) HasTypeDelete() bool { + if o != nil && !IsNil(o.TypeDelete) { + return true + } + + return false +} + +// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. +func (o *EventRule) SetTypeDelete(v bool) { + o.TypeDelete = &v +} + +// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. +func (o *EventRule) GetTypeJobStart() bool { + if o == nil || IsNil(o.TypeJobStart) { + var ret bool + return ret + } + return *o.TypeJobStart +} + +// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetTypeJobStartOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobStart) { + return nil, false + } + return o.TypeJobStart, true +} + +// HasTypeJobStart returns a boolean if a field has been set. +func (o *EventRule) HasTypeJobStart() bool { + if o != nil && !IsNil(o.TypeJobStart) { + return true + } + + return false +} + +// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. +func (o *EventRule) SetTypeJobStart(v bool) { + o.TypeJobStart = &v +} + +// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. +func (o *EventRule) GetTypeJobEnd() bool { + if o == nil || IsNil(o.TypeJobEnd) { + var ret bool + return ret + } + return *o.TypeJobEnd +} + +// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetTypeJobEndOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobEnd) { + return nil, false + } + return o.TypeJobEnd, true +} + +// HasTypeJobEnd returns a boolean if a field has been set. +func (o *EventRule) HasTypeJobEnd() bool { + if o != nil && !IsNil(o.TypeJobEnd) { + return true + } + + return false +} + +// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. +func (o *EventRule) SetTypeJobEnd(v bool) { + o.TypeJobEnd = &v +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRule) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -251,30 +392,6 @@ func (o *EventRule) SetEnabled(v bool) { o.Enabled = &v } -// GetEventTypes returns the EventTypes field value -func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner { - if o == nil { - var ret []EventRuleEventTypesInner - return ret - } - - return o.EventTypes -} - -// GetEventTypesOk returns a tuple with the EventTypes field value -// and a boolean to check if the value has been set. -func (o *EventRule) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { - if o == nil { - return nil, false - } - return o.EventTypes, true -} - -// SetEventTypes sets field value -func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner) { - o.EventTypes = v -} - // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetConditions() interface{} { if o == nil { @@ -583,14 +700,27 @@ func (o EventRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name + if !IsNil(o.TypeCreate) { + toSerialize["type_create"] = o.TypeCreate + } + if !IsNil(o.TypeUpdate) { + toSerialize["type_update"] = o.TypeUpdate + } + if !IsNil(o.TypeDelete) { + toSerialize["type_delete"] = o.TypeDelete + } + if !IsNil(o.TypeJobStart) { + toSerialize["type_job_start"] = o.TypeJobStart + } + if !IsNil(o.TypeJobEnd) { + toSerialize["type_job_end"] = o.TypeJobEnd + } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -626,11 +756,9 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "object_types", "name", - "event_types", "action_type", "action_object_type", "action_object", @@ -667,12 +795,15 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") + delete(additionalProperties, "type_create") + delete(additionalProperties, "type_update") + delete(additionalProperties, "type_delete") + delete(additionalProperties, "type_job_start") + delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") - delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go index db537a54c..1c8cb0534 100644 --- a/model_event_rule_action_type.go +++ b/model_event_rule_action_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go index 6084a7451..d58423d47 100644 --- a/model_event_rule_action_type_label.go +++ b/model_event_rule_action_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,14 @@ type EventRuleActionTypeLabel string // List of EventRule_action_type_label const ( - EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" - EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" - EVENTRULEACTIONTYPELABEL_NOTIFICATION EventRuleActionTypeLabel = "Notification" + EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" + EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" ) // All allowed values of EventRuleActionTypeLabel enum var AllowedEventRuleActionTypeLabelEnumValues = []EventRuleActionTypeLabel{ "Webhook", "Script", - "Notification", } func (v *EventRuleActionTypeLabel) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go index 33fca2a74..9c309b8d2 100644 --- a/model_event_rule_action_type_value.go +++ b/model_event_rule_action_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,21 +15,19 @@ import ( "fmt" ) -// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script * `notification` - Notification +// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script type EventRuleActionTypeValue string // List of EventRule_action_type_value const ( - EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" - EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" - EVENTRULEACTIONTYPEVALUE_NOTIFICATION EventRuleActionTypeValue = "notification" + EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" + EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" ) // All allowed values of EventRuleActionTypeValue enum var AllowedEventRuleActionTypeValueEnumValues = []EventRuleActionTypeValue{ "webhook", "script", - "notification", } func (v *EventRuleActionTypeValue) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_event_types_inner.go b/model_event_rule_event_types_inner.go index 60e1344bc..f73381c4c 100644 --- a/model_event_rule_event_types_inner.go +++ b/model_event_rule_event_types_inner.go @@ -23,10 +23,10 @@ const ( EVENTRULEEVENTTYPESINNER_OBJECT_CREATED EventRuleEventTypesInner = "object_created" EVENTRULEEVENTTYPESINNER_OBJECT_UPDATED EventRuleEventTypesInner = "object_updated" EVENTRULEEVENTTYPESINNER_OBJECT_DELETED EventRuleEventTypesInner = "object_deleted" - EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started" - EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed" - EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed" - EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored" + EVENTRULEEVENTTYPESINNER_JOB_STARTED EventRuleEventTypesInner = "job_started" + EVENTRULEEVENTTYPESINNER_JOB_COMPLETED EventRuleEventTypesInner = "job_completed" + EVENTRULEEVENTTYPESINNER_JOB_FAILED EventRuleEventTypesInner = "job_failed" + EVENTRULEEVENTTYPESINNER_JOB_ERRORED EventRuleEventTypesInner = "job_errored" ) // All allowed values of EventRuleEventTypesInner enum @@ -118,4 +118,3 @@ func (v *NullableEventRuleEventTypesInner) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_event_rule_request.go b/model_event_rule_request.go index 4efdd2165..e9a76def0 100644 --- a/model_event_rule_request.go +++ b/model_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,9 +22,17 @@ var _ MappedNullable = &EventRuleRequest{} type EventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - // The types of event which will trigger this rule. - EventTypes []EventRuleEventTypesInner `json:"event_types"` + // Triggers when a matching object is created. + TypeCreate *bool `json:"type_create,omitempty"` + // Triggers when a matching object is updated. + TypeUpdate *bool `json:"type_update,omitempty"` + // Triggers when a matching object is deleted. + TypeDelete *bool `json:"type_delete,omitempty"` + // Triggers when a job for a matching object is started. + TypeJobStart *bool `json:"type_job_start,omitempty"` + // Triggers when a job for a matching object terminates. + TypeJobEnd *bool `json:"type_job_end,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType EventRuleActionTypeValue `json:"action_type"` @@ -42,11 +50,10 @@ type _EventRuleRequest EventRuleRequest // 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 NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { +func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { this := EventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name - this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType return &this @@ -108,6 +115,166 @@ func (o *EventRuleRequest) SetName(v string) { o.Name = v } +// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. +func (o *EventRuleRequest) GetTypeCreate() bool { + if o == nil || IsNil(o.TypeCreate) { + var ret bool + return ret + } + return *o.TypeCreate +} + +// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeCreate) { + return nil, false + } + return o.TypeCreate, true +} + +// HasTypeCreate returns a boolean if a field has been set. +func (o *EventRuleRequest) HasTypeCreate() bool { + if o != nil && !IsNil(o.TypeCreate) { + return true + } + + return false +} + +// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. +func (o *EventRuleRequest) SetTypeCreate(v bool) { + o.TypeCreate = &v +} + +// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. +func (o *EventRuleRequest) GetTypeUpdate() bool { + if o == nil || IsNil(o.TypeUpdate) { + var ret bool + return ret + } + return *o.TypeUpdate +} + +// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeUpdate) { + return nil, false + } + return o.TypeUpdate, true +} + +// HasTypeUpdate returns a boolean if a field has been set. +func (o *EventRuleRequest) HasTypeUpdate() bool { + if o != nil && !IsNil(o.TypeUpdate) { + return true + } + + return false +} + +// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. +func (o *EventRuleRequest) SetTypeUpdate(v bool) { + o.TypeUpdate = &v +} + +// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. +func (o *EventRuleRequest) GetTypeDelete() bool { + if o == nil || IsNil(o.TypeDelete) { + var ret bool + return ret + } + return *o.TypeDelete +} + +// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool) { + if o == nil || IsNil(o.TypeDelete) { + return nil, false + } + return o.TypeDelete, true +} + +// HasTypeDelete returns a boolean if a field has been set. +func (o *EventRuleRequest) HasTypeDelete() bool { + if o != nil && !IsNil(o.TypeDelete) { + return true + } + + return false +} + +// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. +func (o *EventRuleRequest) SetTypeDelete(v bool) { + o.TypeDelete = &v +} + +// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. +func (o *EventRuleRequest) GetTypeJobStart() bool { + if o == nil || IsNil(o.TypeJobStart) { + var ret bool + return ret + } + return *o.TypeJobStart +} + +// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobStart) { + return nil, false + } + return o.TypeJobStart, true +} + +// HasTypeJobStart returns a boolean if a field has been set. +func (o *EventRuleRequest) HasTypeJobStart() bool { + if o != nil && !IsNil(o.TypeJobStart) { + return true + } + + return false +} + +// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. +func (o *EventRuleRequest) SetTypeJobStart(v bool) { + o.TypeJobStart = &v +} + +// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. +func (o *EventRuleRequest) GetTypeJobEnd() bool { + if o == nil || IsNil(o.TypeJobEnd) { + var ret bool + return ret + } + return *o.TypeJobEnd +} + +// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobEnd) { + return nil, false + } + return o.TypeJobEnd, true +} + +// HasTypeJobEnd returns a boolean if a field has been set. +func (o *EventRuleRequest) HasTypeJobEnd() bool { + if o != nil && !IsNil(o.TypeJobEnd) { + return true + } + + return false +} + +// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. +func (o *EventRuleRequest) SetTypeJobEnd(v bool) { + o.TypeJobEnd = &v +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -140,30 +307,6 @@ func (o *EventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } -// GetEventTypes returns the EventTypes field value -func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { - if o == nil { - var ret []EventRuleEventTypesInner - return ret - } - - return o.EventTypes -} - -// GetEventTypesOk returns a tuple with the EventTypes field value -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { - if o == nil { - return nil, false - } - return o.EventTypes, true -} - -// SetEventTypes sets field value -func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { - o.EventTypes = v -} - // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRuleRequest) GetConditions() interface{} { if o == nil { @@ -396,10 +539,24 @@ func (o EventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name + if !IsNil(o.TypeCreate) { + toSerialize["type_create"] = o.TypeCreate + } + if !IsNil(o.TypeUpdate) { + toSerialize["type_update"] = o.TypeUpdate + } + if !IsNil(o.TypeDelete) { + toSerialize["type_delete"] = o.TypeDelete + } + if !IsNil(o.TypeJobStart) { + toSerialize["type_job_start"] = o.TypeJobStart + } + if !IsNil(o.TypeJobEnd) { + toSerialize["type_job_end"] = o.TypeJobEnd + } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -432,7 +589,6 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", - "event_types", "action_type", "action_object_type", } @@ -466,8 +622,12 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") + delete(additionalProperties, "type_create") + delete(additionalProperties, "type_update") + delete(additionalProperties, "type_delete") + delete(additionalProperties, "type_job_start") + delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") - delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_export_template.go b/model_export_template.go index a4f5fc191..e034604cd 100644 --- a/model_export_template.go +++ b/model_export_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &ExportTemplate{} type ExportTemplate struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -35,14 +34,14 @@ type ExportTemplate struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *BriefDataSource `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *DataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile BriefDataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile DataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -52,11 +51,10 @@ type _ExportTemplate ExportTemplate // 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 NewExportTemplate(id int32, url string, displayUrl string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { +func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { this := ExportTemplate{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -125,30 +123,6 @@ func (o *ExportTemplate) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ExportTemplate) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ExportTemplate) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ExportTemplate) GetDisplay() string { if o == nil { @@ -374,9 +348,9 @@ func (o *ExportTemplate) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplate) GetDataSource() BriefDataSource { +func (o *ExportTemplate) GetDataSource() DataSource { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSource + var ret DataSource return ret } return *o.DataSource @@ -384,7 +358,7 @@ func (o *ExportTemplate) GetDataSource() BriefDataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool) { +func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -400,8 +374,8 @@ func (o *ExportTemplate) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. -func (o *ExportTemplate) SetDataSource(v BriefDataSource) { +// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. +func (o *ExportTemplate) SetDataSource(v DataSource) { o.DataSource = &v } @@ -430,9 +404,9 @@ func (o *ExportTemplate) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ExportTemplate) GetDataFile() BriefDataFile { +func (o *ExportTemplate) GetDataFile() DataFile { if o == nil { - var ret BriefDataFile + var ret DataFile return ret } @@ -441,7 +415,7 @@ func (o *ExportTemplate) GetDataFile() BriefDataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool) { +func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { if o == nil { return nil, false } @@ -449,7 +423,7 @@ func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool) { } // SetDataFile sets field value -func (o *ExportTemplate) SetDataFile(v BriefDataFile) { +func (o *ExportTemplate) SetDataFile(v DataFile) { o.DataFile = v } @@ -543,7 +517,6 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -583,7 +556,6 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "object_types", "name", @@ -624,7 +596,6 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_export_template_request.go b/model_export_template_request.go index 2daa4d33c..16e3ea6a5 100644 --- a/model_export_template_request.go +++ b/model_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,8 @@ type ExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *DataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -258,9 +258,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest { +func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSourceRequest + var ret DataSourceRequest return ret } return *o.DataSource @@ -268,7 +268,7 @@ func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { +func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -284,8 +284,8 @@ func (o *ExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. -func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { +// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. +func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest) { o.DataSource = &v } diff --git a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go index e7a6ca182..549d77f70 100644 --- a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go +++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_filter_logic_parameter.go b/model_extras_custom_fields_list_filter_logic_parameter.go index a215904e7..e06b57950 100644 --- a/model_extras_custom_fields_list_filter_logic_parameter.go +++ b/model_extras_custom_fields_list_filter_logic_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_editable_parameter.go b/model_extras_custom_fields_list_ui_editable_parameter.go index 12a81600e..507235fe9 100644 --- a/model_extras_custom_fields_list_ui_editable_parameter.go +++ b/model_extras_custom_fields_list_ui_editable_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_visible_parameter.go b/model_extras_custom_fields_list_ui_visible_parameter.go index 090c7b314..47e4aaa2b 100644 --- a/model_extras_custom_fields_list_ui_visible_parameter.go +++ b/model_extras_custom_fields_list_ui_visible_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_links_list_button_class_parameter.go b/model_extras_custom_links_list_button_class_parameter.go index 618602acf..db3b288e9 100644 --- a/model_extras_custom_links_list_button_class_parameter.go +++ b/model_extras_custom_links_list_button_class_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ type ExtrasCustomLinksListButtonClassParameter string // List of extras_custom_links_list_button_class_parameter const ( - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_OUTLINE_DARK ExtrasCustomLinksListButtonClassParameter = "outline-dark" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" ) // All allowed values of ExtrasCustomLinksListButtonClassParameter enum @@ -42,12 +42,12 @@ var AllowedExtrasCustomLinksListButtonClassParameterEnumValues = []ExtrasCustomL "black", "blue", "cyan", - "default", "ghost-dark", "gray", "green", "indigo", "orange", + "outline-dark", "pink", "purple", "red", diff --git a/model_fhrp_group.go b/model_fhrp_group.go index da049c284..edddea0c1 100644 --- a/model_fhrp_group.go +++ b/model_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the FHRPGroup type satisfies the MappedNullable interface at compile time @@ -21,22 +20,12 @@ var _ MappedNullable = &FHRPGroup{} // FHRPGroup Adds support for custom fields and tags. type FHRPGroup struct { - Id int32 `json:"id"` - Name *string `json:"name,omitempty"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Protocol BriefFHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - AuthType *AuthenticationType `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - IpAddresses []BriefIPAddress `json:"ip_addresses"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Protocol FHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,17 +35,13 @@ type _FHRPGroup FHRPGroup // 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 NewFHRPGroup(id int32, url string, displayUrl string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress) *FHRPGroup { +func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *FHRPGroup { this := FHRPGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Protocol = protocol this.GroupId = groupId - this.Created = created - this.LastUpdated = lastUpdated - this.IpAddresses = ipAddresses return &this } @@ -92,38 +77,6 @@ func (o *FHRPGroup) SetId(v int32) { o.Id = v } -// GetName returns the Name field value if set, zero value otherwise. -func (o *FHRPGroup) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *FHRPGroup) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *FHRPGroup) SetName(v string) { - o.Name = &v -} - // GetUrl returns the Url field value func (o *FHRPGroup) GetUrl() string { if o == nil { @@ -148,30 +101,6 @@ func (o *FHRPGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *FHRPGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *FHRPGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *FHRPGroup) GetDisplay() string { if o == nil { @@ -197,9 +126,9 @@ func (o *FHRPGroup) SetDisplay(v string) { } // GetProtocol returns the Protocol field value -func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol { +func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { if o == nil { - var ret BriefFHRPGroupProtocol + var ret FHRPGroupProtocol return ret } @@ -208,7 +137,7 @@ func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { +func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -216,7 +145,7 @@ func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { +func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol) { o.Protocol = v } @@ -244,70 +173,6 @@ func (o *FHRPGroup) SetGroupId(v int32) { o.GroupId = v } -// GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *FHRPGroup) GetAuthType() AuthenticationType { - if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType - return ret - } - return *o.AuthType -} - -// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType, bool) { - if o == nil || IsNil(o.AuthType) { - return nil, false - } - return o.AuthType, true -} - -// HasAuthType returns a boolean if a field has been set. -func (o *FHRPGroup) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { - return true - } - - return false -} - -// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. -func (o *FHRPGroup) SetAuthType(v AuthenticationType) { - o.AuthType = &v -} - -// GetAuthKey returns the AuthKey field value if set, zero value otherwise. -func (o *FHRPGroup) GetAuthKey() string { - if o == nil || IsNil(o.AuthKey) { - var ret string - return ret - } - return *o.AuthKey -} - -// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetAuthKeyOk() (*string, bool) { - if o == nil || IsNil(o.AuthKey) { - return nil, false - } - return o.AuthKey, true -} - -// HasAuthKey returns a boolean if a field has been set. -func (o *FHRPGroup) HasAuthKey() bool { - if o != nil && !IsNil(o.AuthKey) { - return true - } - - return false -} - -// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. -func (o *FHRPGroup) SetAuthKey(v string) { - o.AuthKey = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -340,178 +205,6 @@ func (o *FHRPGroup) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *FHRPGroup) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *FHRPGroup) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *FHRPGroup) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *FHRPGroup) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *FHRPGroup) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *FHRPGroup) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *FHRPGroup) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *FHRPGroup) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *FHRPGroup) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *FHRPGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *FHRPGroup) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *FHRPGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *FHRPGroup) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetIpAddresses returns the IpAddresses field value -func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress { - if o == nil { - var ret []BriefIPAddress - return ret - } - - return o.IpAddresses -} - -// GetIpAddressesOk returns a tuple with the IpAddresses field value -// and a boolean to check if the value has been set. -func (o *FHRPGroup) GetIpAddressesOk() ([]BriefIPAddress, bool) { - if o == nil { - return nil, false - } - return o.IpAddresses, true -} - -// SetIpAddresses sets field value -func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress) { - o.IpAddresses = v -} - func (o FHRPGroup) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -523,35 +216,13 @@ func (o FHRPGroup) MarshalJSON() ([]byte, error) { func (o FHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType - } - if !IsNil(o.AuthKey) { - toSerialize["auth_key"] = o.AuthKey - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["ip_addresses"] = o.IpAddresses for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -567,13 +238,9 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "protocol", "group_id", - "created", - "last_updated", - "ip_addresses", } allProperties := make(map[string]interface{}) @@ -604,21 +271,11 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") - delete(additionalProperties, "name") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") - delete(additionalProperties, "auth_type") - delete(additionalProperties, "auth_key") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "ip_addresses") o.AdditionalProperties = additionalProperties } diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go index 8f9ae4bf1..d81aefa15 100644 --- a/model_fhrp_group_assignment.go +++ b/model_fhrp_group_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &FHRPGroupAssignment{} // FHRPGroupAssignment Adds support for custom fields and tags. type FHRPGroupAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group BriefFHRPGroup `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Interface interface{} `json:"interface"` - Priority int32 `json:"priority"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group FHRPGroup `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Interface interface{} `json:"interface"` + Priority int32 `json:"priority"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FHRPGroupAssignment FHRPGroupAssignment // 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 NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { +func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { this := FHRPGroupAssignment{} this.Id = id this.Url = url @@ -136,9 +136,9 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup { +func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { if o == nil { - var ret BriefFHRPGroup + var ret FHRPGroup return ret } @@ -147,7 +147,7 @@ func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool) { +func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { if o == nil { return nil, false } @@ -155,7 +155,7 @@ func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup) { +func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup) { o.Group = v } diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go index a9ba01d6a..fda4826a1 100644 --- a/model_fhrp_group_assignment_request.go +++ b/model_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{} // FHRPGroupAssignmentRequest Adds support for custom fields and tags. type FHRPGroupAssignmentRequest struct { - Group BriefFHRPGroupRequest `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group FHRPGroupRequest `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _FHRPGroupAssignmentRequest FHRPGroupAssignmentRequest // 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 NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { +func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { this := FHRPGroupAssignmentRequest{} this.Group = group this.InterfaceType = interfaceType @@ -51,9 +51,9 @@ func NewFHRPGroupAssignmentRequestWithDefaults() *FHRPGroupAssignmentRequest { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { +func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { if o == nil { - var ret BriefFHRPGroupRequest + var ret FHRPGroupRequest return ret } @@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { +func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) } // SetGroup sets field value -func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { +func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { o.Group = v } diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go index 0990f1939..a3fbe2568 100644 --- a/model_fhrp_group_request.go +++ b/model_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,9 @@ var _ MappedNullable = &FHRPGroupRequest{} // FHRPGroupRequest Adds support for custom fields and tags. type FHRPGroupRequest struct { - Name *string `json:"name,omitempty"` - Protocol BriefFHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - AuthType *AuthenticationType `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Protocol FHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,7 +32,7 @@ type _FHRPGroupRequest FHRPGroupRequest // 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 NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *FHRPGroupRequest { +func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *FHRPGroupRequest { this := FHRPGroupRequest{} this.Protocol = protocol this.GroupId = groupId @@ -53,42 +47,10 @@ func NewFHRPGroupRequestWithDefaults() *FHRPGroupRequest { return &this } -// GetName returns the Name field value if set, zero value otherwise. -func (o *FHRPGroupRequest) GetName() string { - if o == nil || IsNil(o.Name) { - var ret string - return ret - } - return *o.Name -} - -// GetNameOk returns a tuple with the Name field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetNameOk() (*string, bool) { - if o == nil || IsNil(o.Name) { - return nil, false - } - return o.Name, true -} - -// HasName returns a boolean if a field has been set. -func (o *FHRPGroupRequest) HasName() bool { - if o != nil && !IsNil(o.Name) { - return true - } - - return false -} - -// SetName gets a reference to the given string and assigns it to the Name field. -func (o *FHRPGroupRequest) SetName(v string) { - o.Name = &v -} - // GetProtocol returns the Protocol field value -func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { +func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { if o == nil { - var ret BriefFHRPGroupProtocol + var ret FHRPGroupProtocol return ret } @@ -97,7 +59,7 @@ func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { +func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -105,7 +67,7 @@ func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { +func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { o.Protocol = v } @@ -133,70 +95,6 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) { o.GroupId = v } -// GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *FHRPGroupRequest) GetAuthType() AuthenticationType { - if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType - return ret - } - return *o.AuthType -} - -// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) { - if o == nil || IsNil(o.AuthType) { - return nil, false - } - return o.AuthType, true -} - -// HasAuthType returns a boolean if a field has been set. -func (o *FHRPGroupRequest) HasAuthType() bool { - if o != nil && !IsNil(o.AuthType) { - return true - } - - return false -} - -// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. -func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType) { - o.AuthType = &v -} - -// GetAuthKey returns the AuthKey field value if set, zero value otherwise. -func (o *FHRPGroupRequest) GetAuthKey() string { - if o == nil || IsNil(o.AuthKey) { - var ret string - return ret - } - return *o.AuthKey -} - -// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool) { - if o == nil || IsNil(o.AuthKey) { - return nil, false - } - return o.AuthKey, true -} - -// HasAuthKey returns a boolean if a field has been set. -func (o *FHRPGroupRequest) HasAuthKey() bool { - if o != nil && !IsNil(o.AuthKey) { - return true - } - - return false -} - -// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. -func (o *FHRPGroupRequest) SetAuthKey(v string) { - o.AuthKey = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -229,102 +127,6 @@ func (o *FHRPGroupRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *FHRPGroupRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *FHRPGroupRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *FHRPGroupRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *FHRPGroupRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *FHRPGroupRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *FHRPGroupRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -335,29 +137,11 @@ func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.Name) { - toSerialize["name"] = o.Name - } toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId - if !IsNil(o.AuthType) { - toSerialize["auth_type"] = o.AuthType - } - if !IsNil(o.AuthKey) { - toSerialize["auth_key"] = o.AuthKey - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -402,15 +186,9 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "name") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") - delete(additionalProperties, "auth_type") - delete(additionalProperties, "auth_key") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_front_port.go b/model_front_port.go index a4ff37bf0..14255269d 100644 --- a/model_front_port.go +++ b/model_front_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,12 @@ var _ MappedNullable = &FrontPort{} // FrontPort Adds support for custom fields and tags. type FrontPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Module NullableModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortType `json:"type"` @@ -37,12 +36,12 @@ type FrontPort struct { RearPortPosition *int32 `json:"rear_port_position,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -57,11 +56,10 @@ type _FrontPort FrontPort // 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 NewFrontPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { +func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { this := FrontPort{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -137,30 +135,6 @@ func (o *FrontPort) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *FrontPort) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *FrontPort) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *FrontPort) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *FrontPort) GetDisplay() string { if o == nil { @@ -186,9 +160,9 @@ func (o *FrontPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *FrontPort) GetDevice() BriefDevice { +func (o *FrontPort) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -197,7 +171,7 @@ func (o *FrontPort) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool) { +func (o *FrontPort) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -205,14 +179,14 @@ func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *FrontPort) SetDevice(v BriefDevice) { +func (o *FrontPort) SetDevice(v Device) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPort) GetModule() BriefModule { +func (o *FrontPort) GetModule() Module { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule + var ret Module return ret } return *o.Module.Get() @@ -221,7 +195,7 @@ func (o *FrontPort) GetModule() BriefModule { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetModuleOk() (*BriefModule, bool) { +func (o *FrontPort) GetModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -237,8 +211,8 @@ func (o *FrontPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *FrontPort) SetModule(v BriefModule) { +// SetModule gets a reference to the given NullableModule and assigns it to the Module field. +func (o *FrontPort) SetModule(v Module) { o.Module.Set(&v) } @@ -485,10 +459,10 @@ func (o *FrontPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *FrontPort) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *FrontPort) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -498,7 +472,7 @@ func (o *FrontPort) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetCableOk() (*BriefCable, bool) { +func (o *FrontPort) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -506,7 +480,7 @@ func (o *FrontPort) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *FrontPort) SetCable(v BriefCable) { +func (o *FrontPort) SetCable(v Cable) { o.Cable.Set(&v) } @@ -559,29 +533,27 @@ func (o *FrontPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *FrontPort) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *FrontPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *FrontPort) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetTags returns the Tags field value if set, zero value otherwise. @@ -736,7 +708,6 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -763,7 +734,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -788,7 +759,6 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -832,7 +802,6 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go index f2a25fa25..bfddbbc62 100644 --- a/model_front_port_rear_port.go +++ b/model_front_port_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,10 @@ var _ MappedNullable = &FrontPortRearPort{} // FrontPortRearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) type FrontPortRearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` @@ -37,11 +36,10 @@ type _FrontPortRearPort FrontPortRearPort // 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 NewFrontPortRearPort(id int32, url string, displayUrl string, display string, name string) *FrontPortRearPort { +func NewFrontPortRearPort(id int32, url string, display string, name string) *FrontPortRearPort { this := FrontPortRearPort{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -103,30 +101,6 @@ func (o *FrontPortRearPort) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *FrontPortRearPort) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *FrontPortRearPort) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *FrontPortRearPort) GetDisplay() string { if o == nil { @@ -251,7 +225,6 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -275,7 +248,6 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", } @@ -309,7 +281,6 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "label") diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go index fecb1f8f5..efa9119db 100644 --- a/model_front_port_rear_port_request.go +++ b/model_front_port_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_request.go b/model_front_port_request.go index b60b44893..b3cc287bb 100644 --- a/model_front_port_request.go +++ b/model_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &FrontPortRequest{} // FrontPortRequest Adds support for custom fields and tags. type FrontPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -44,7 +44,7 @@ type _FrontPortRequest FrontPortRequest // 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 NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { +func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { this := FrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewFrontPortRequestWithDefaults() *FrontPortRequest { } // GetDevice returns the Device field value -func (o *FrontPortRequest) GetDevice() BriefDeviceRequest { +func (o *FrontPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *FrontPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *FrontPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortRequest) GetModule() BriefModuleRequest { +func (o *FrontPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *FrontPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *FrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *FrontPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *FrontPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_front_port_template.go b/model_front_port_template.go index 8866bd4ec..66ed54500 100644 --- a/model_front_port_template.go +++ b/model_front_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,22 +21,22 @@ var _ MappedNullable = &FrontPortTemplate{} // FrontPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableDeviceType `json:"device_type,omitempty"` + ModuleType NullableModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - RearPort BriefRearPortTemplate `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + RearPort RearPortTemplate `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -46,7 +46,7 @@ type _FrontPortTemplate FrontPortTemplate // 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 NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { +func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { this := FrontPortTemplate{} this.Id = id this.Url = url @@ -144,9 +144,9 @@ func (o *FrontPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType { +func (o *FrontPortTemplate) GetDeviceType() DeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType + var ret DeviceType return ret } return *o.DeviceType.Get() @@ -155,7 +155,7 @@ func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -171,8 +171,8 @@ func (o *FrontPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType) { +// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. +func (o *FrontPortTemplate) SetDeviceType(v DeviceType) { o.DeviceType.Set(&v) } @@ -187,9 +187,9 @@ func (o *FrontPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetModuleType() BriefModuleType { +func (o *FrontPortTemplate) GetModuleType() ModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType + var ret ModuleType return ret } return *o.ModuleType.Get() @@ -198,7 +198,7 @@ func (o *FrontPortTemplate) GetModuleType() BriefModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { +func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *FrontPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *FrontPortTemplate) SetModuleType(v BriefModuleType) { +// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. +func (o *FrontPortTemplate) SetModuleType(v ModuleType) { o.ModuleType.Set(&v) } @@ -342,9 +342,9 @@ func (o *FrontPortTemplate) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate { +func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { if o == nil { - var ret BriefRearPortTemplate + var ret RearPortTemplate return ret } @@ -353,7 +353,7 @@ func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool) { +func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { if o == nil { return nil, false } @@ -361,7 +361,7 @@ func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool) { } // SetRearPort sets field value -func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate) { +func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate) { o.RearPort = v } diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go index 0d79753a1..995c21f99 100644 --- a/model_front_port_template_request.go +++ b/model_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &FrontPortTemplateRequest{} // FrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort BriefRearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort RearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FrontPortTemplateRequest FrontPortTemplateRequest // 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 NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *FrontPortTemplateRequest { +func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *FrontPortTemplateRequest { this := FrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,9 @@ func NewFrontPortTemplateRequestWithDefaults() *FrontPortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *FrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { +func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { if o == nil { - var ret BriefRearPortTemplateRequest + var ret RearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { +func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateReques } // SetRearPort sets field value -func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { +func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { o.RearPort = v } diff --git a/model_front_port_type.go b/model_front_port_type.go index 8b92247a1..17d119046 100644 --- a/model_front_port_type.go +++ b/model_front_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go index ab707ca62..88117ae3a 100644 --- a/model_front_port_type_label.go +++ b/model_front_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,61 +20,53 @@ type FrontPortTypeLabel string // List of FrontPort_type_label const ( - FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" - FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" - FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" - FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" - FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" - FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" - FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" - FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" - FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" - FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" - FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" - FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" - FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" - FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" - FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" - FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" - FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" - FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" - FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" - FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" - FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" - FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" - FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" - FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" - FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" - FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" - FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" - FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" - FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" - FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" - FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" - FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" - FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" - FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" - FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" - FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" - FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" - FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" - FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" - FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" - FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" - FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" - FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" - FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" - FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" - FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" - FRONTPORTTYPELABEL_USB_TYPE_A FrontPortTypeLabel = "USB Type A" - FRONTPORTTYPELABEL_USB_TYPE_B FrontPortTypeLabel = "USB Type B" - FRONTPORTTYPELABEL_USB_TYPE_C FrontPortTypeLabel = "USB Type C" - FRONTPORTTYPELABEL_USB_MINI_A FrontPortTypeLabel = "USB Mini A" - FRONTPORTTYPELABEL_USB_MINI_B FrontPortTypeLabel = "USB Mini B" - FRONTPORTTYPELABEL_USB_MICRO_A FrontPortTypeLabel = "USB Micro A" - FRONTPORTTYPELABEL_USB_MICRO_B FrontPortTypeLabel = "USB Micro B" - FRONTPORTTYPELABEL_USB_MICRO_AB FrontPortTypeLabel = "USB Micro AB" - FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" + FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" + FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" + FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" + FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" + FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" + FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" + FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" + FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" + FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" + FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" + FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" + FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" + FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" + FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" + FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" + FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" + FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" + FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" + FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" + FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" + FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" + FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" + FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" + FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" + FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" + FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" + FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" + FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" + FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" + FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" + FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" + FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" + FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" + FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" + FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" + FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" + FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" + FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" + FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" + FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" + FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" + FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" + FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" + FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" + FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" + FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" + FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" ) // All allowed values of FrontPortTypeLabel enum @@ -125,14 +117,6 @@ var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{ "URM-P4", "URM-P8", "Splice", - "USB Type A", - "USB Type B", - "USB Type C", - "USB Mini A", - "USB Mini B", - "USB Micro A", - "USB Micro B", - "USB Micro AB", "Other", } diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go index 0449b9e7d..55f3bf9e5 100644 --- a/model_front_port_type_value.go +++ b/model_front_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,66 +15,58 @@ import ( "fmt" ) -// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other type FrontPortTypeValue string // List of FrontPort_type_value const ( - FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" - FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" - FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" - FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" - FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" - FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" - FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" - FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" - FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" - FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" - FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" - FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" - FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" - FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" - FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" - FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" - FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" - FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" - FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" - FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" - FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" - FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" - FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" - FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" - FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" - FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" - FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" - FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" - FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" - FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" - FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" - FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" - FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" - FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" - FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" - FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" - FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" - FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" - FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" - FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" - FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" - FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" - FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" - FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" - FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" - FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" - FRONTPORTTYPEVALUE_USB_A FrontPortTypeValue = "usb-a" - FRONTPORTTYPEVALUE_USB_B FrontPortTypeValue = "usb-b" - FRONTPORTTYPEVALUE_USB_C FrontPortTypeValue = "usb-c" - FRONTPORTTYPEVALUE_USB_MINI_A FrontPortTypeValue = "usb-mini-a" - FRONTPORTTYPEVALUE_USB_MINI_B FrontPortTypeValue = "usb-mini-b" - FRONTPORTTYPEVALUE_USB_MICRO_A FrontPortTypeValue = "usb-micro-a" - FRONTPORTTYPEVALUE_USB_MICRO_B FrontPortTypeValue = "usb-micro-b" - FRONTPORTTYPEVALUE_USB_MICRO_AB FrontPortTypeValue = "usb-micro-ab" - FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" + FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" + FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" + FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" + FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" + FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" + FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" + FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" + FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" + FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" + FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" + FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" + FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" + FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" + FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" + FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" + FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" + FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" + FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" + FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" + FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" + FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" + FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" + FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" + FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" + FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" + FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" + FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" + FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" + FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" + FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" + FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" + FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" + FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" + FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" + FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" + FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" + FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" + FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" + FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" + FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" + FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" + FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" + FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" + FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" + FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" + FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" + FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" ) // All allowed values of FrontPortTypeValue enum @@ -125,14 +117,6 @@ var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{ "urm-p4", "urm-p8", "splice", - "usb-a", - "usb-b", - "usb-c", - "usb-mini-a", - "usb-mini-b", - "usb-micro-a", - "usb-micro-b", - "usb-micro-ab", "other", } diff --git a/model_generic_object.go b/model_generic_object.go index d49043125..e40ac1015 100644 --- a/model_generic_object.go +++ b/model_generic_object.go @@ -20,9 +20,9 @@ var _ MappedNullable = &GenericObject{} // GenericObject Minimal representation of some generic object identified by ContentType and PK. type GenericObject struct { - ObjectType string `json:"object_type"` - ObjectId int32 `json:"object_id"` - Object interface{} `json:"object"` + ObjectType string `json:"object_type"` + ObjectId int32 `json:"object_id"` + Object interface{} `json:"object"` AdditionalProperties map[string]interface{} } @@ -123,7 +123,7 @@ func (o *GenericObject) SetObject(v interface{}) { } func (o GenericObject) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -160,10 +160,10 @@ func (o *GenericObject) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -226,5 +226,3 @@ func (v *NullableGenericObject) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_generic_object_request.go b/model_generic_object_request.go index 52eaee1b8..af5fa0e13 100644 --- a/model_generic_object_request.go +++ b/model_generic_object_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_group.go b/model_group.go index 705396209..cc0cb78e9 100644 --- a/model_group.go +++ b/model_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &Group{} type Group struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -37,11 +36,10 @@ type _Group Group // 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 NewGroup(id int32, url string, displayUrl string, display string, name string, userCount int32) *Group { +func NewGroup(id int32, url string, display string, name string, userCount int32) *Group { this := Group{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.UserCount = userCount @@ -104,30 +102,6 @@ func (o *Group) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Group) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Group) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Group) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Group) GetDisplay() string { if o == nil { @@ -276,7 +250,6 @@ func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -301,7 +274,6 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "user_count", @@ -336,7 +308,6 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_group_request.go b/model_group_request.go index 5f8e5ef72..a3b3fc4d9 100644 --- a/model_group_request.go +++ b/model_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy.go b/model_ike_policy.go index 99c503a99..60a132594 100644 --- a/model_ike_policy.go +++ b/model_ike_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,12 +23,11 @@ var _ MappedNullable = &IKEPolicy{} type IKEPolicy struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersion `json:"version"` - Mode *IKEPolicyMode `json:"mode,omitempty"` + Mode IKEPolicyMode `json:"mode"` Proposals []IKEProposal `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -45,14 +44,14 @@ type _IKEPolicy IKEPolicy // 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 NewIKEPolicy(id int32, url string, displayUrl string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime) *IKEPolicy { +func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime) *IKEPolicy { this := IKEPolicy{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Version = version + this.Mode = mode this.Created = created this.LastUpdated = lastUpdated return &this @@ -114,30 +113,6 @@ func (o *IKEPolicy) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IKEPolicy) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IKEPolicy) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IKEPolicy) GetDisplay() string { if o == nil { @@ -242,36 +217,28 @@ func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) { o.Version = v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value func (o *IKEPolicy) GetMode() IKEPolicyMode { - if o == nil || IsNil(o.Mode) { + if o == nil { var ret IKEPolicyMode return ret } - return *o.Mode + + return o.Mode } -// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// GetModeOk returns a tuple with the Mode field value // and a boolean to check if the value has been set. func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true -} - -// HasMode returns a boolean if a field has been set. -func (o *IKEPolicy) HasMode() bool { - if o != nil && !IsNil(o.Mode) { - return true - } - - return false + return &o.Mode, true } -// SetMode gets a reference to the given IKEPolicyMode and assigns it to the Mode field. +// SetMode sets field value func (o *IKEPolicy) SetMode(v IKEPolicyMode) { - o.Mode = &v + o.Mode = v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -498,16 +465,13 @@ func (o IKEPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode - } + toSerialize["mode"] = o.Mode if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -540,10 +504,10 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "version", + "mode", "created", "last_updated", } @@ -577,7 +541,6 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go index 151201775..561cdd0ee 100644 --- a/model_ike_policy_mode.go +++ b/model_ike_policy_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go index 3d5338559..6f710f6ac 100644 --- a/model_ike_policy_mode_label.go +++ b/model_ike_policy_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go index c08f20fe1..f7209d932 100644 --- a/model_ike_policy_mode_value.go +++ b/model_ike_policy_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go index 68cd58f3e..b10b248b6 100644 --- a/model_ike_policy_request.go +++ b/model_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type IKEPolicyRequest struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersionValue `json:"version"` - Mode *IKEPolicyModeValue `json:"mode,omitempty"` + Mode IKEPolicyModeValue `json:"mode"` Proposals []int32 `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -38,10 +38,11 @@ type _IKEPolicyRequest IKEPolicyRequest // 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 NewIKEPolicyRequest(name string, version IKEPolicyVersionValue) *IKEPolicyRequest { +func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue) *IKEPolicyRequest { this := IKEPolicyRequest{} this.Name = name this.Version = version + this.Mode = mode return &this } @@ -133,36 +134,28 @@ func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) { o.Version = v } -// GetMode returns the Mode field value if set, zero value otherwise. +// GetMode returns the Mode field value func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue { - if o == nil || IsNil(o.Mode) { + if o == nil { var ret IKEPolicyModeValue return ret } - return *o.Mode + + return o.Mode } -// GetModeOk returns a tuple with the Mode field value if set, nil otherwise +// GetModeOk returns a tuple with the Mode field value // and a boolean to check if the value has been set. func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) { - if o == nil || IsNil(o.Mode) { + if o == nil { return nil, false } - return o.Mode, true -} - -// HasMode returns a boolean if a field has been set. -func (o *IKEPolicyRequest) HasMode() bool { - if o != nil && !IsNil(o.Mode) { - return true - } - - return false + return &o.Mode, true } -// SetMode gets a reference to the given IKEPolicyModeValue and assigns it to the Mode field. +// SetMode sets field value func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue) { - o.Mode = &v + o.Mode = v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -340,9 +333,7 @@ func (o IKEPolicyRequest) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - if !IsNil(o.Mode) { - toSerialize["mode"] = o.Mode - } + toSerialize["mode"] = o.Mode if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -373,6 +364,7 @@ func (o *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "version", + "mode", } allProperties := make(map[string]interface{}) diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go index 6cf10e47b..afa22c6de 100644 --- a/model_ike_policy_version.go +++ b/model_ike_policy_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go index 5324f9381..8b11ad9d6 100644 --- a/model_ike_policy_version_label.go +++ b/model_ike_policy_version_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go index 8f0101394..7abf472f2 100644 --- a/model_ike_policy_version_value.go +++ b/model_ike_policy_version_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal.go b/model_ike_proposal.go index eefc00a5b..cd4eed1ca 100644 --- a/model_ike_proposal.go +++ b/model_ike_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,15 @@ var _ MappedNullable = &IKEProposal{} // IKEProposal Adds support for custom fields and tags. type IKEProposal struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` - AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` - Group IKEProposalGroup `json:"group"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` + AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"` + Group IKEProposalGroup `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -47,15 +46,15 @@ type _IKEProposal IKEProposal // 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 NewIKEProposal(id int32, url string, displayUrl string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { +func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { this := IKEProposal{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm + this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group this.Created = created this.LastUpdated = lastUpdated @@ -118,30 +117,6 @@ func (o *IKEProposal) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IKEProposal) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IKEProposal) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IKEProposal) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IKEProposal) GetDisplay() string { if o == nil { @@ -270,36 +245,28 @@ func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) { o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { var ret IKEProposalAuthenticationAlgorithm return ret } - return *o.AuthenticationAlgorithm + + return o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value // and a boolean to check if the value has been set. func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { return nil, false } - return o.AuthenticationAlgorithm, true -} - -// HasAuthenticationAlgorithm returns a boolean if a field has been set. -func (o *IKEProposal) HasAuthenticationAlgorithm() bool { - if o != nil && !IsNil(o.AuthenticationAlgorithm) { - return true - } - - return false + return &o.AuthenticationAlgorithm, true } -// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. +// SetAuthenticationAlgorithm sets field value func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = &v + o.AuthenticationAlgorithm = v } // GetGroup returns the Group field value @@ -529,7 +496,6 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -537,9 +503,7 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - if !IsNil(o.AuthenticationAlgorithm) { - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm - } + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -570,11 +534,11 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "authentication_method", "encryption_algorithm", + "authentication_algorithm", "group", "created", "last_updated", @@ -609,7 +573,6 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go index d43da6376..beeab8334 100644 --- a/model_ike_proposal_authentication_algorithm.go +++ b/model_ike_proposal_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go index 6726ed8a2..ed37a3e8d 100644 --- a/model_ike_proposal_authentication_algorithm_label.go +++ b/model_ike_proposal_authentication_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go index 531a08660..ac2ff5a01 100644 --- a/model_ike_proposal_authentication_algorithm_value.go +++ b/model_ike_proposal_authentication_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go index c20c8d073..ce563d6e2 100644 --- a/model_ike_proposal_authentication_method.go +++ b/model_ike_proposal_authentication_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go index 50f06871a..35519ca6b 100644 --- a/model_ike_proposal_authentication_method_label.go +++ b/model_ike_proposal_authentication_method_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go index a5361b076..c1e5b8266 100644 --- a/model_ike_proposal_authentication_method_value.go +++ b/model_ike_proposal_authentication_method_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go index 5fb37a4e6..208e10199 100644 --- a/model_ike_proposal_encryption_algorithm.go +++ b/model_ike_proposal_encryption_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go index 138e88d02..4485f50f2 100644 --- a/model_ike_proposal_encryption_algorithm_label.go +++ b/model_ike_proposal_encryption_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go index ca9314a83..f152c2e12 100644 --- a/model_ike_proposal_encryption_algorithm_value.go +++ b/model_ike_proposal_encryption_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go index 4e1a0a106..b4e572948 100644 --- a/model_ike_proposal_group.go +++ b/model_ike_proposal_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go index d69292327..acb825e47 100644 --- a/model_ike_proposal_group_label.go +++ b/model_ike_proposal_group_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go index b7aef39a7..482fc4b74 100644 --- a/model_ike_proposal_group_value.go +++ b/model_ike_proposal_group_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go index 618c2a4fd..532a3552d 100644 --- a/model_ike_proposal_request.go +++ b/model_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &IKEProposalRequest{} // IKEProposalRequest Adds support for custom fields and tags. type IKEProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"` - Group IKEProposalGroupValue `json:"group"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` + AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"` + Group IKEProposalGroupValue `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,11 +40,12 @@ type _IKEProposalRequest IKEProposalRequest // 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 NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { +func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { this := IKEProposalRequest{} this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm + this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group return &this } @@ -161,36 +162,28 @@ func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgor o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { var ret IKEProposalAuthenticationAlgorithmValue return ret } - return *o.AuthenticationAlgorithm + + return o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value // and a boolean to check if the value has been set. func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) { - if o == nil || IsNil(o.AuthenticationAlgorithm) { + if o == nil { return nil, false } - return o.AuthenticationAlgorithm, true -} - -// HasAuthenticationAlgorithm returns a boolean if a field has been set. -func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool { - if o != nil && !IsNil(o.AuthenticationAlgorithm) { - return true - } - - return false + return &o.AuthenticationAlgorithm, true } -// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the AuthenticationAlgorithm field. +// SetAuthenticationAlgorithm sets field value func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) { - o.AuthenticationAlgorithm = &v + o.AuthenticationAlgorithm = v } // GetGroup returns the Group field value @@ -372,9 +365,7 @@ func (o IKEProposalRequest) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - if !IsNil(o.AuthenticationAlgorithm) { - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm - } + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -404,6 +395,7 @@ func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", + "authentication_algorithm", "group", } diff --git a/model_image_attachment.go b/model_image_attachment.go index ee5f25445..3eef1f2cd 100644 --- a/model_image_attachment.go +++ b/model_image_attachment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go index 56ae5e0a4..26ce0cc75 100644 --- a/model_image_attachment_request.go +++ b/model_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,6 +25,8 @@ type ImageAttachmentRequest struct { ObjectId int64 `json:"object_id"` Name *string `json:"name,omitempty"` Image *os.File `json:"image"` + ImageHeight int32 `json:"image_height"` + ImageWidth int32 `json:"image_width"` AdditionalProperties map[string]interface{} } @@ -34,11 +36,13 @@ type _ImageAttachmentRequest ImageAttachmentRequest // 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 NewImageAttachmentRequest(objectType string, objectId int64, image *os.File) *ImageAttachmentRequest { +func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest { this := ImageAttachmentRequest{} this.ObjectType = objectType this.ObjectId = objectId this.Image = image + this.ImageHeight = imageHeight + this.ImageWidth = imageWidth return &this } @@ -154,6 +158,54 @@ func (o *ImageAttachmentRequest) SetImage(v *os.File) { o.Image = v } +// GetImageHeight returns the ImageHeight field value +func (o *ImageAttachmentRequest) GetImageHeight() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ImageHeight +} + +// GetImageHeightOk returns a tuple with the ImageHeight field value +// and a boolean to check if the value has been set. +func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ImageHeight, true +} + +// SetImageHeight sets field value +func (o *ImageAttachmentRequest) SetImageHeight(v int32) { + o.ImageHeight = v +} + +// GetImageWidth returns the ImageWidth field value +func (o *ImageAttachmentRequest) GetImageWidth() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ImageWidth +} + +// GetImageWidthOk returns a tuple with the ImageWidth field value +// and a boolean to check if the value has been set. +func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ImageWidth, true +} + +// SetImageWidth sets field value +func (o *ImageAttachmentRequest) SetImageWidth(v int32) { + o.ImageWidth = v +} + func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -170,6 +222,8 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name } toSerialize["image"] = o.Image + toSerialize["image_height"] = o.ImageHeight + toSerialize["image_width"] = o.ImageWidth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -186,6 +240,8 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { "object_type", "object_id", "image", + "image_height", + "image_width", } allProperties := make(map[string]interface{}) @@ -219,6 +275,8 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") + delete(additionalProperties, "image_height") + delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_interface.go b/model_interface.go index 1bc3f59d3..8990492b1 100644 --- a/model_interface.go +++ b/model_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,13 @@ var _ MappedNullable = &Interface{} // Interface Adds support for custom fields and tags. type Interface struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` + Module NullableModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceType `json:"type"` @@ -52,31 +51,31 @@ type Interface struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` + Cable NullableCable `json:"cable"` CableEnd string `json:"cable_end"` WirelessLink NullableNestedWirelessLink `json:"wireless_link"` LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` - WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` - Vrf NullableBriefVRF `json:"vrf,omitempty"` - L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` - Occupied bool `json:"_occupied"` + LinkPeersType string `json:"link_peers_type"` + WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` + Vrf NullableVRF `json:"vrf,omitempty"` + L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -86,11 +85,10 @@ type _Interface Interface // 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 NewInterface(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { +func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { this := Interface{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -168,30 +166,6 @@ func (o *Interface) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Interface) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Interface) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Interface) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Interface) GetDisplay() string { if o == nil { @@ -217,9 +191,9 @@ func (o *Interface) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Interface) GetDevice() BriefDevice { +func (o *Interface) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -228,7 +202,7 @@ func (o *Interface) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Interface) GetDeviceOk() (*BriefDevice, bool) { +func (o *Interface) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -236,7 +210,7 @@ func (o *Interface) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *Interface) SetDevice(v BriefDevice) { +func (o *Interface) SetDevice(v Device) { o.Device = v } @@ -273,9 +247,9 @@ func (o *Interface) SetVdcs(v []VirtualDeviceContext) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetModule() BriefModule { +func (o *Interface) GetModule() Module { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule + var ret Module return ret } return *o.Module.Get() @@ -284,7 +258,7 @@ func (o *Interface) GetModule() BriefModule { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetModuleOk() (*BriefModule, bool) { +func (o *Interface) GetModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -300,8 +274,8 @@ func (o *Interface) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *Interface) SetModule(v BriefModule) { +// SetModule gets a reference to the given NullableModule and assigns it to the Module field. +func (o *Interface) SetModule(v Module) { o.Module.Set(&v) } @@ -1125,9 +1099,9 @@ func (o *Interface) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetUntaggedVlan() BriefVLAN { +func (o *Interface) GetUntaggedVlan() VLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLAN + var ret VLAN return ret } return *o.UntaggedVlan.Get() @@ -1136,7 +1110,7 @@ func (o *Interface) GetUntaggedVlan() BriefVLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool) { +func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool) { if o == nil { return nil, false } @@ -1152,8 +1126,8 @@ func (o *Interface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. -func (o *Interface) SetUntaggedVlan(v BriefVLAN) { +// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. +func (o *Interface) SetUntaggedVlan(v VLAN) { o.UntaggedVlan.Set(&v) } @@ -1232,10 +1206,10 @@ func (o *Interface) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *Interface) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *Interface) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -1245,7 +1219,7 @@ func (o *Interface) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetCableOk() (*BriefCable, bool) { +func (o *Interface) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -1253,7 +1227,7 @@ func (o *Interface) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *Interface) SetCable(v BriefCable) { +func (o *Interface) SetCable(v Cable) { o.Cable.Set(&v) } @@ -1332,29 +1306,27 @@ func (o *Interface) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *Interface) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetWirelessLans returns the WirelessLans field value if set, zero value otherwise. @@ -1390,9 +1362,9 @@ func (o *Interface) SetWirelessLans(v []WirelessLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetVrf() BriefVRF { +func (o *Interface) GetVrf() VRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRF + var ret VRF return ret } return *o.Vrf.Get() @@ -1401,7 +1373,7 @@ func (o *Interface) GetVrf() BriefVRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetVrfOk() (*BriefVRF, bool) { +func (o *Interface) GetVrfOk() (*VRF, bool) { if o == nil { return nil, false } @@ -1417,8 +1389,8 @@ func (o *Interface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. -func (o *Interface) SetVrf(v BriefVRF) { +// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. +func (o *Interface) SetVrf(v VRF) { o.Vrf.Set(&v) } @@ -1433,10 +1405,10 @@ func (o *Interface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned -func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination { +// If the value is explicit nil, the zero value for L2VPNTermination will be returned +func (o *Interface) GetL2vpnTermination() L2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret BriefL2VPNTermination + var ret L2VPNTermination return ret } @@ -1446,7 +1418,7 @@ func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { +func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { if o == nil { return nil, false } @@ -1454,12 +1426,11 @@ func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination) { +func (o *Interface) SetL2vpnTermination(v L2VPNTermination) { o.L2vpnTermination.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value -// If the value is explicit nil, the zero value for []interface{} will be returned func (o *Interface) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -1471,9 +1442,8 @@ func (o *Interface) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.ConnectedEndpoints) { + if o == nil { return nil, false } return o.ConnectedEndpoints, true @@ -1485,29 +1455,27 @@ func (o *Interface) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value -// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetConnectedEndpointsType() string { - if o == nil || o.ConnectedEndpointsType.Get() == nil { + if o == nil { var ret string return ret } - return *o.ConnectedEndpointsType.Get() + return o.ConnectedEndpointsType } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() + return &o.ConnectedEndpointsType, true } // SetConnectedEndpointsType sets field value func (o *Interface) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType.Set(&v) + o.ConnectedEndpointsType = v } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -1734,7 +1702,6 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if !IsNil(o.Vdcs) { @@ -1818,7 +1785,7 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["cable_end"] = o.CableEnd toSerialize["wireless_link"] = o.WirelessLink.Get() toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.WirelessLans) { toSerialize["wireless_lans"] = o.WirelessLans } @@ -1826,10 +1793,8 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["vrf"] = o.Vrf.Get() } toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - if o.ConnectedEndpoints != nil { - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - } - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -1857,7 +1822,6 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -1907,7 +1871,6 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "vdcs") diff --git a/model_interface_duplex.go b/model_interface_duplex.go index 20b698df9..aa73ec088 100644 --- a/model_interface_duplex.go +++ b/model_interface_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go index b07851622..eaab1a072 100644 --- a/model_interface_duplex_label.go +++ b/model_interface_duplex_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go index 79448a9ed..93e3ce120 100644 --- a/model_interface_duplex_value.go +++ b/model_interface_duplex_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode.go b/model_interface_mode.go index 64f057836..9441de5dd 100644 --- a/model_interface_mode.go +++ b/model_interface_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go index 5c66f05a5..cde6b2ae1 100644 --- a/model_interface_mode_label.go +++ b/model_interface_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go index 919132510..f057fe019 100644 --- a/model_interface_mode_value.go +++ b/model_interface_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go index e41348fb1..8f365d75e 100644 --- a/model_interface_poe_mode.go +++ b/model_interface_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go index 92ec5bc4e..7736be9cc 100644 --- a/model_interface_poe_mode_label.go +++ b/model_interface_poe_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go index cd289eb9a..4e044ad15 100644 --- a/model_interface_poe_mode_value.go +++ b/model_interface_poe_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go index b0fa196bb..ef7c2e113 100644 --- a/model_interface_poe_type.go +++ b/model_interface_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go index ce5332126..21265631b 100644 --- a/model_interface_poe_type_label.go +++ b/model_interface_poe_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go index e511ff713..d1f9f85a3 100644 --- a/model_interface_poe_type_value.go +++ b/model_interface_poe_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_request.go b/model_interface_request.go index 57b5d34d6..b066995e9 100644 --- a/model_interface_request.go +++ b/model_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &InterfaceRequest{} // InterfaceRequest Adds support for custom fields and tags. type InterfaceRequest struct { - Device BriefDeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type InterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _InterfaceRequest InterfaceRequest // 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 NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { +func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { this := InterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest { } // GetDevice returns the Device field value -func (o *InterfaceRequest) GetDevice() BriefDeviceRequest { +func (o *InterfaceRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *InterfaceRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest) { +func (o *InterfaceRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *InterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetModule() BriefModuleRequest { +func (o *InterfaceRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *InterfaceRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *InterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *InterfaceRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *InterfaceRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *InterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest { +func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { +func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. -func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. +func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *InterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetVrf() BriefVRFRequest { +func (o *InterfaceRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *InterfaceRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *InterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *InterfaceRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *InterfaceRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go index b0bc7e279..2cfab20fa 100644 --- a/model_interface_request_duplex.go +++ b/model_interface_request_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go index 7530c0c84..6cdd517fa 100644 --- a/model_interface_rf_channel.go +++ b/model_interface_rf_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go index 296bde025..c6ca5df46 100644 --- a/model_interface_rf_channel_label.go +++ b/model_interface_rf_channel_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go index d7a734309..5a426d213 100644 --- a/model_interface_rf_channel_value.go +++ b/model_interface_rf_channel_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go index e93f09938..a7f8f1cd9 100644 --- a/model_interface_rf_role.go +++ b/model_interface_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go index 04792da60..201cb2af4 100644 --- a/model_interface_rf_role_label.go +++ b/model_interface_rf_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go index dc2925fc0..364371e9c 100644 --- a/model_interface_rf_role_value.go +++ b/model_interface_rf_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template.go b/model_interface_template.go index dbcf9ad3f..37184eb6b 100644 --- a/model_interface_template.go +++ b/model_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &InterfaceTemplate{} // InterfaceTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableDeviceType `json:"device_type,omitempty"` + ModuleType NullableModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -142,9 +142,9 @@ func (o *InterfaceTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType { +func (o *InterfaceTemplate) GetDeviceType() DeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType + var ret DeviceType return ret } return *o.DeviceType.Get() @@ -153,7 +153,7 @@ func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -169,8 +169,8 @@ func (o *InterfaceTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType) { +// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. +func (o *InterfaceTemplate) SetDeviceType(v DeviceType) { o.DeviceType.Set(&v) } @@ -185,9 +185,9 @@ func (o *InterfaceTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetModuleType() BriefModuleType { +func (o *InterfaceTemplate) GetModuleType() ModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType + var ret ModuleType return ret } return *o.ModuleType.Get() @@ -196,7 +196,7 @@ func (o *InterfaceTemplate) GetModuleType() BriefModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { +func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool) { if o == nil { return nil, false } @@ -212,8 +212,8 @@ func (o *InterfaceTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *InterfaceTemplate) SetModuleType(v BriefModuleType) { +// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. +func (o *InterfaceTemplate) SetModuleType(v ModuleType) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go index fcac24873..7811b7e10 100644 --- a/model_interface_template_poe_mode.go +++ b/model_interface_template_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go index 07f6b4ee4..2c1cb4d01 100644 --- a/model_interface_template_poe_type.go +++ b/model_interface_template_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request.go b/model_interface_template_request.go index ea39d689b..bea10caaf 100644 --- a/model_interface_template_request.go +++ b/model_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceTemplateRequest{} // InterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewInterfaceTemplateRequestWithDefaults() *InterfaceTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *InterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go index d0f660cc0..f2b93a781 100644 --- a/model_interface_template_request_poe_mode.go +++ b/model_interface_template_request_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go index da18fde07..1f35567e1 100644 --- a/model_interface_template_request_poe_type.go +++ b/model_interface_template_request_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go index 3227b7bb5..db39e8514 100644 --- a/model_interface_template_request_rf_role.go +++ b/model_interface_template_request_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go index b8b4a7ab6..3eaf185c1 100644 --- a/model_interface_template_rf_role.go +++ b/model_interface_template_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type.go b/model_interface_type.go index c909247b0..d5a16d3e2 100644 --- a/model_interface_type.go +++ b/model_interface_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type_label.go b/model_interface_type_label.go index dc6af7d8b..99dedfa78 100644 --- a/model_interface_type_label.go +++ b/model_interface_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,7 +28,6 @@ const ( INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" INTERFACETYPELABEL__100_BASE_T1__10_100_ME_SINGLE_PAIR InterfaceTypeLabel = "100BASE-T1 (10/100ME Single Pair)" INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)" - INTERFACETYPELABEL__1000_BASE_TX__1_GE InterfaceTypeLabel = "1000BASE-TX (1GE)" INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)" INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)" INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)" @@ -82,7 +81,6 @@ const ( INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad" INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax" INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay" - INTERFACETYPELABEL_IEEE_802_11BE InterfaceTypeLabel = "IEEE 802.11be" INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)" INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)" INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM" @@ -159,7 +157,6 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "100BASE-TX (10/100ME)", "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", - "1000BASE-TX (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", "10GBASE-T (10GE)", @@ -213,7 +210,6 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "IEEE 802.11ad", "IEEE 802.11ax", "IEEE 802.11ay", - "IEEE 802.11be", "IEEE 802.15.1 (Bluetooth)", "Other (Wireless)", "GSM", diff --git a/model_interface_type_value.go b/model_interface_type_value.go index 11fa8c35d..324edde78 100644 --- a/model_interface_type_value.go +++ b/model_interface_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other type InterfaceTypeValue string // List of Interface_type_value @@ -28,7 +28,6 @@ const ( INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx" INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1" INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t" - INTERFACETYPEVALUE__1000BASE_TX InterfaceTypeValue = "1000base-tx" INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t" INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t" INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t" @@ -82,7 +81,6 @@ const ( INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad" INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax" INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay" - INTERFACETYPEVALUE_IEEE802_11BE InterfaceTypeValue = "ieee802.11be" INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1" INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless" INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm" @@ -159,7 +157,6 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "100base-tx", "100base-t1", "1000base-t", - "1000base-tx", "2.5gbase-t", "5gbase-t", "10gbase-t", @@ -213,7 +210,6 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "ieee802.11ad", "ieee802.11ax", "ieee802.11ay", - "ieee802.11be", "ieee802.15.1", "other-wireless", "gsm", diff --git a/model_inventory_item.go b/model_inventory_item.go index 1edc76cba..288a4619c 100644 --- a/model_inventory_item.go +++ b/model_inventory_item.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,16 @@ var _ MappedNullable = &InventoryItem{} // InventoryItem Adds support for custom fields and tags. type InventoryItem struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableBriefInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -57,11 +56,10 @@ 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, displayUrl string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -128,30 +126,6 @@ func (o *InventoryItem) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *InventoryItem) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *InventoryItem) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *InventoryItem) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *InventoryItem) GetDisplay() string { if o == nil { @@ -177,9 +151,9 @@ func (o *InventoryItem) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *InventoryItem) GetDevice() BriefDevice { +func (o *InventoryItem) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -188,7 +162,7 @@ func (o *InventoryItem) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool) { +func (o *InventoryItem) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -196,7 +170,7 @@ func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *InventoryItem) SetDevice(v BriefDevice) { +func (o *InventoryItem) SetDevice(v Device) { o.Device = v } @@ -300,9 +274,9 @@ func (o *InventoryItem) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetRole() BriefInventoryItemRole { +func (o *InventoryItem) GetRole() InventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret BriefInventoryItemRole + var ret InventoryItemRole return ret } return *o.Role.Get() @@ -311,7 +285,7 @@ func (o *InventoryItem) GetRole() BriefInventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool) { +func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool) { if o == nil { return nil, false } @@ -327,8 +301,8 @@ func (o *InventoryItem) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. -func (o *InventoryItem) SetRole(v BriefInventoryItemRole) { +// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. +func (o *InventoryItem) SetRole(v InventoryItemRole) { o.Role.Set(&v) } @@ -343,9 +317,9 @@ func (o *InventoryItem) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetManufacturer() BriefManufacturer { +func (o *InventoryItem) GetManufacturer() Manufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturer + var ret Manufacturer return ret } return *o.Manufacturer.Get() @@ -354,7 +328,7 @@ func (o *InventoryItem) GetManufacturer() BriefManufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool) { +func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool) { if o == nil { return nil, false } @@ -370,8 +344,8 @@ func (o *InventoryItem) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItem) SetManufacturer(v BriefManufacturer) { +// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItem) SetManufacturer(v Manufacturer) { o.Manufacturer.Set(&v) } @@ -820,7 +794,6 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Parent.IsSet() { @@ -884,7 +857,6 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -923,7 +895,6 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "parent") diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go index d135dd9df..c93a233fc 100644 --- a/model_inventory_item_request.go +++ b/model_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &InventoryItemRequest{} // InventoryItemRequest Adds support for custom fields and tags. type InventoryItemRequest struct { - Device BriefDeviceRequest `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -48,7 +48,7 @@ type _InventoryItemRequest InventoryItemRequest // 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 NewInventoryItemRequest(device BriefDeviceRequest, name string) *InventoryItemRequest { +func NewInventoryItemRequest(device DeviceRequest, name string) *InventoryItemRequest { this := InventoryItemRequest{} this.Device = device this.Name = name @@ -64,9 +64,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest { } // GetDevice returns the Device field value -func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest { +func (o *InventoryItemRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -75,7 +75,7 @@ func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -83,7 +83,7 @@ func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest) { +func (o *InventoryItemRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -187,9 +187,9 @@ func (o *InventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { +func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefInventoryItemRoleRequest + var ret InventoryItemRoleRequest return ret } return *o.Role.Get() @@ -198,7 +198,7 @@ func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { +func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *InventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest) { o.Role.Set(&v) } @@ -230,9 +230,9 @@ func (o *InventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest { +func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -241,7 +241,7 @@ func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *InventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go index df4e46ac8..ee6f28990 100644 --- a/model_inventory_item_role.go +++ b/model_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &InventoryItemRole{} type InventoryItemRole struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,11 +42,10 @@ type _InventoryItemRole InventoryItemRole // 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 NewInventoryItemRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { +func NewInventoryItemRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64) *InventoryItemRole { this := InventoryItemRole{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,30 +111,6 @@ func (o *InventoryItemRole) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *InventoryItemRole) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *InventoryItemRole) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *InventoryItemRole) GetDisplay() string { if o == nil { @@ -425,7 +399,6 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -459,7 +432,6 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -497,7 +469,6 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go index e1dfdf5f2..c00674ef5 100644 --- a/model_inventory_item_role_request.go +++ b/model_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go index ca03976ca..2e4179281 100644 --- a/model_inventory_item_template.go +++ b/model_inventory_item_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,17 @@ var _ MappedNullable = &InventoryItemTemplate{} // InventoryItemTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType BriefDeviceType `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType DeviceType `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableBriefInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -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, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url @@ -145,9 +145,9 @@ func (o *InventoryItemTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType { +func (o *InventoryItemTemplate) GetDeviceType() DeviceType { if o == nil { - var ret BriefDeviceType + var ret DeviceType return ret } @@ -156,7 +156,7 @@ func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -164,7 +164,7 @@ func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { } // SetDeviceType sets field value -func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType) { +func (o *InventoryItemTemplate) SetDeviceType(v DeviceType) { o.DeviceType = v } @@ -268,9 +268,9 @@ func (o *InventoryItemTemplate) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole { +func (o *InventoryItemTemplate) GetRole() InventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret BriefInventoryItemRole + var ret InventoryItemRole return ret } return *o.Role.Get() @@ -279,7 +279,7 @@ func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool) { +func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool) { if o == nil { return nil, false } @@ -295,8 +295,8 @@ func (o *InventoryItemTemplate) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. -func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole) { +// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. +func (o *InventoryItemTemplate) SetRole(v InventoryItemRole) { o.Role.Set(&v) } @@ -311,9 +311,9 @@ func (o *InventoryItemTemplate) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer { +func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturer + var ret Manufacturer return ret } return *o.Manufacturer.Get() @@ -322,7 +322,7 @@ func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool) { +func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool) { if o == nil { return nil, false } @@ -338,8 +338,8 @@ func (o *InventoryItemTemplate) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer) { +// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go index 70a5300c1..c7d639e2d 100644 --- a/model_inventory_item_template_request.go +++ b/model_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &InventoryItemTemplateRequest{} // InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplateRequest struct { - DeviceType BriefDeviceTypeRequest `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType DeviceTypeRequest `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -42,7 +42,7 @@ type _InventoryItemTemplateRequest InventoryItemTemplateRequest // 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 NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *InventoryItemTemplateRequest { +func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string) *InventoryItemTemplateRequest { this := InventoryItemTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -58,9 +58,9 @@ func NewInventoryItemTemplateRequestWithDefaults() *InventoryItemTemplateRequest } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } @@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,7 +77,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeReques } // SetDeviceType sets field value -func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = v } @@ -181,9 +181,9 @@ func (o *InventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { +func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefInventoryItemRoleRequest + var ret InventoryItemRoleRequest return ret } return *o.Role.Get() @@ -192,7 +192,7 @@ func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { +func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -208,8 +208,8 @@ func (o *InventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { o.Role.Set(&v) } @@ -224,9 +224,9 @@ func (o *InventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { +func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerReques // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_ip_address.go b/model_ip_address.go index 1f75c7269..5fdb687b4 100644 --- a/model_ip_address.go +++ b/model_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the IPAddress type satisfies the MappedNullable interface at compile time @@ -21,29 +20,12 @@ var _ MappedNullable = &IPAddress{} // IPAddress Adds support for custom fields and tags. type IPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Address string `json:"address"` - Vrf NullableBriefVRF `json:"vrf,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Status *IPAddressStatus `json:"status,omitempty"` - Role *IPAddressRole `json:"role,omitempty"` - AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` - AssignedObject interface{} `json:"assigned_object"` - NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` - NatOutside []NestedIPAddress `json:"nat_outside"` - // Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,18 +35,13 @@ type _IPAddress IPAddress // 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 NewIPAddress(id int32, url string, displayUrl string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress { +func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress { this := IPAddress{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Address = address - this.AssignedObject = assignedObject - this.NatOutside = natOutside - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -124,30 +101,6 @@ func (o *IPAddress) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IPAddress) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IPAddress) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IPAddress) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IPAddress) GetDisplay() string { if o == nil { @@ -220,367 +173,6 @@ func (o *IPAddress) SetAddress(v string) { o.Address = v } -// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddress) GetVrf() BriefVRF { - if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRF - return ret - } - return *o.Vrf.Get() -} - -// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetVrfOk() (*BriefVRF, bool) { - if o == nil { - return nil, false - } - return o.Vrf.Get(), o.Vrf.IsSet() -} - -// HasVrf returns a boolean if a field has been set. -func (o *IPAddress) HasVrf() bool { - if o != nil && o.Vrf.IsSet() { - return true - } - - return false -} - -// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. -func (o *IPAddress) SetVrf(v BriefVRF) { - o.Vrf.Set(&v) -} - -// SetVrfNil sets the value for Vrf to be an explicit nil -func (o *IPAddress) SetVrfNil() { - o.Vrf.Set(nil) -} - -// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -func (o *IPAddress) UnsetVrf() { - o.Vrf.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddress) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *IPAddress) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *IPAddress) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *IPAddress) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *IPAddress) UnsetTenant() { - o.Tenant.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *IPAddress) GetStatus() IPAddressStatus { - if o == nil || IsNil(o.Status) { - var ret IPAddressStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *IPAddress) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given IPAddressStatus and assigns it to the Status field. -func (o *IPAddress) SetStatus(v IPAddressStatus) { - o.Status = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *IPAddress) GetRole() IPAddressRole { - if o == nil || IsNil(o.Role) { - var ret IPAddressRole - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *IPAddress) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given IPAddressRole and assigns it to the Role field. -func (o *IPAddress) SetRole(v IPAddressRole) { - o.Role = &v -} - -// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddress) GetAssignedObjectType() string { - if o == nil || IsNil(o.AssignedObjectType.Get()) { - var ret string - return ret - } - return *o.AssignedObjectType.Get() -} - -// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() -} - -// HasAssignedObjectType returns a boolean if a field has been set. -func (o *IPAddress) HasAssignedObjectType() bool { - if o != nil && o.AssignedObjectType.IsSet() { - return true - } - - return false -} - -// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. -func (o *IPAddress) SetAssignedObjectType(v string) { - o.AssignedObjectType.Set(&v) -} - -// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil -func (o *IPAddress) SetAssignedObjectTypeNil() { - o.AssignedObjectType.Set(nil) -} - -// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil -func (o *IPAddress) UnsetAssignedObjectType() { - o.AssignedObjectType.Unset() -} - -// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddress) GetAssignedObjectId() int64 { - if o == nil || IsNil(o.AssignedObjectId.Get()) { - var ret int64 - return ret - } - return *o.AssignedObjectId.Get() -} - -// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() -} - -// HasAssignedObjectId returns a boolean if a field has been set. -func (o *IPAddress) HasAssignedObjectId() bool { - if o != nil && o.AssignedObjectId.IsSet() { - return true - } - - return false -} - -// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. -func (o *IPAddress) SetAssignedObjectId(v int64) { - o.AssignedObjectId.Set(&v) -} - -// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil -func (o *IPAddress) SetAssignedObjectIdNil() { - o.AssignedObjectId.Set(nil) -} - -// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil -func (o *IPAddress) UnsetAssignedObjectId() { - o.AssignedObjectId.Unset() -} - -// GetAssignedObject returns the AssignedObject field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *IPAddress) GetAssignedObject() interface{} { - if o == nil { - var ret interface{} - return ret - } - - return o.AssignedObject -} - -// GetAssignedObjectOk returns a tuple with the AssignedObject field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool) { - if o == nil || IsNil(o.AssignedObject) { - return nil, false - } - return &o.AssignedObject, true -} - -// SetAssignedObject sets field value -func (o *IPAddress) SetAssignedObject(v interface{}) { - o.AssignedObject = v -} - -// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddress) GetNatInside() NestedIPAddress { - if o == nil || IsNil(o.NatInside.Get()) { - var ret NestedIPAddress - return ret - } - return *o.NatInside.Get() -} - -// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool) { - if o == nil { - return nil, false - } - return o.NatInside.Get(), o.NatInside.IsSet() -} - -// HasNatInside returns a boolean if a field has been set. -func (o *IPAddress) HasNatInside() bool { - if o != nil && o.NatInside.IsSet() { - return true - } - - return false -} - -// SetNatInside gets a reference to the given NullableNestedIPAddress and assigns it to the NatInside field. -func (o *IPAddress) SetNatInside(v NestedIPAddress) { - o.NatInside.Set(&v) -} - -// SetNatInsideNil sets the value for NatInside to be an explicit nil -func (o *IPAddress) SetNatInsideNil() { - o.NatInside.Set(nil) -} - -// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil -func (o *IPAddress) UnsetNatInside() { - o.NatInside.Unset() -} - -// GetNatOutside returns the NatOutside field value -func (o *IPAddress) GetNatOutside() []NestedIPAddress { - if o == nil { - var ret []NestedIPAddress - return ret - } - - return o.NatOutside -} - -// GetNatOutsideOk returns a tuple with the NatOutside field value -// and a boolean to check if the value has been set. -func (o *IPAddress) GetNatOutsideOk() ([]NestedIPAddress, bool) { - if o == nil { - return nil, false - } - return o.NatOutside, true -} - -// SetNatOutside sets field value -func (o *IPAddress) SetNatOutside(v []NestedIPAddress) { - o.NatOutside = v -} - -// GetDnsName returns the DnsName field value if set, zero value otherwise. -func (o *IPAddress) GetDnsName() string { - if o == nil || IsNil(o.DnsName) { - var ret string - return ret - } - return *o.DnsName -} - -// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddress) GetDnsNameOk() (*string, bool) { - if o == nil || IsNil(o.DnsName) { - return nil, false - } - return o.DnsName, true -} - -// HasDnsName returns a boolean if a field has been set. -func (o *IPAddress) HasDnsName() bool { - if o != nil && !IsNil(o.DnsName) { - return true - } - - return false -} - -// SetDnsName gets a reference to the given string and assigns it to the DnsName field. -func (o *IPAddress) SetDnsName(v string) { - o.DnsName = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddress) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -613,154 +205,6 @@ func (o *IPAddress) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *IPAddress) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddress) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *IPAddress) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *IPAddress) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *IPAddress) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddress) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *IPAddress) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *IPAddress) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *IPAddress) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddress) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *IPAddress) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *IPAddress) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *IPAddress) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *IPAddress) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *IPAddress) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *IPAddress) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o IPAddress) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -773,52 +217,12 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address - if o.Vrf.IsSet() { - toSerialize["vrf"] = o.Vrf.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if o.AssignedObjectType.IsSet() { - toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() - } - if o.AssignedObjectId.IsSet() { - toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() - } - if o.AssignedObject != nil { - toSerialize["assigned_object"] = o.AssignedObject - } - if o.NatInside.IsSet() { - toSerialize["nat_inside"] = o.NatInside.Get() - } - toSerialize["nat_outside"] = o.NatOutside - if !IsNil(o.DnsName) { - toSerialize["dns_name"] = o.DnsName - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -834,14 +238,9 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "family", "address", - "assigned_object", - "nat_outside", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -873,26 +272,10 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "address") - delete(additionalProperties, "vrf") - delete(additionalProperties, "tenant") - delete(additionalProperties, "status") - delete(additionalProperties, "role") - delete(additionalProperties, "assigned_object_type") - delete(additionalProperties, "assigned_object_id") - delete(additionalProperties, "assigned_object") - delete(additionalProperties, "nat_inside") - delete(additionalProperties, "nat_outside") - delete(additionalProperties, "dns_name") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_request.go b/model_ip_address_request.go index 2e83edacc..6c3232de2 100644 --- a/model_ip_address_request.go +++ b/model_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,8 @@ var _ MappedNullable = &IPAddressRequest{} // IPAddressRequest Adds support for custom fields and tags. type IPAddressRequest struct { - Address string `json:"address"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Status *IPAddressStatusValue `json:"status,omitempty"` - Role *IPAddressRoleValue `json:"role,omitempty"` - AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` - AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` - NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"` - // Hostname or FQDN (not case-sensitive) - DnsName *string `json:"dns_name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Address string `json:"address"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,317 +69,6 @@ func (o *IPAddressRequest) SetAddress(v string) { o.Address = v } -// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddressRequest) GetVrf() BriefVRFRequest { - if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest - return ret - } - return *o.Vrf.Get() -} - -// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { - if o == nil { - return nil, false - } - return o.Vrf.Get(), o.Vrf.IsSet() -} - -// HasVrf returns a boolean if a field has been set. -func (o *IPAddressRequest) HasVrf() bool { - if o != nil && o.Vrf.IsSet() { - return true - } - - return false -} - -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *IPAddressRequest) SetVrf(v BriefVRFRequest) { - o.Vrf.Set(&v) -} - -// SetVrfNil sets the value for Vrf to be an explicit nil -func (o *IPAddressRequest) SetVrfNil() { - o.Vrf.Set(nil) -} - -// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil -func (o *IPAddressRequest) UnsetVrf() { - o.Vrf.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddressRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *IPAddressRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *IPAddressRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *IPAddressRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *IPAddressRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *IPAddressRequest) GetStatus() IPAddressStatusValue { - if o == nil || IsNil(o.Status) { - var ret IPAddressStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *IPAddressRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given IPAddressStatusValue and assigns it to the Status field. -func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue) { - o.Status = &v -} - -// GetRole returns the Role field value if set, zero value otherwise. -func (o *IPAddressRequest) GetRole() IPAddressRoleValue { - if o == nil || IsNil(o.Role) { - var ret IPAddressRoleValue - return ret - } - return *o.Role -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool) { - if o == nil || IsNil(o.Role) { - return nil, false - } - return o.Role, true -} - -// HasRole returns a boolean if a field has been set. -func (o *IPAddressRequest) HasRole() bool { - if o != nil && !IsNil(o.Role) { - return true - } - - return false -} - -// SetRole gets a reference to the given IPAddressRoleValue and assigns it to the Role field. -func (o *IPAddressRequest) SetRole(v IPAddressRoleValue) { - o.Role = &v -} - -// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddressRequest) GetAssignedObjectType() string { - if o == nil || IsNil(o.AssignedObjectType.Get()) { - var ret string - return ret - } - return *o.AssignedObjectType.Get() -} - -// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() -} - -// HasAssignedObjectType returns a boolean if a field has been set. -func (o *IPAddressRequest) HasAssignedObjectType() bool { - if o != nil && o.AssignedObjectType.IsSet() { - return true - } - - return false -} - -// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. -func (o *IPAddressRequest) SetAssignedObjectType(v string) { - o.AssignedObjectType.Set(&v) -} - -// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil -func (o *IPAddressRequest) SetAssignedObjectTypeNil() { - o.AssignedObjectType.Set(nil) -} - -// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil -func (o *IPAddressRequest) UnsetAssignedObjectType() { - o.AssignedObjectType.Unset() -} - -// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddressRequest) GetAssignedObjectId() int64 { - if o == nil || IsNil(o.AssignedObjectId.Get()) { - var ret int64 - return ret - } - return *o.AssignedObjectId.Get() -} - -// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() -} - -// HasAssignedObjectId returns a boolean if a field has been set. -func (o *IPAddressRequest) HasAssignedObjectId() bool { - if o != nil && o.AssignedObjectId.IsSet() { - return true - } - - return false -} - -// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. -func (o *IPAddressRequest) SetAssignedObjectId(v int64) { - o.AssignedObjectId.Set(&v) -} - -// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil -func (o *IPAddressRequest) SetAssignedObjectIdNil() { - o.AssignedObjectId.Set(nil) -} - -// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil -func (o *IPAddressRequest) UnsetAssignedObjectId() { - o.AssignedObjectId.Unset() -} - -// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest { - if o == nil || IsNil(o.NatInside.Get()) { - var ret NestedIPAddressRequest - return ret - } - return *o.NatInside.Get() -} - -// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool) { - if o == nil { - return nil, false - } - return o.NatInside.Get(), o.NatInside.IsSet() -} - -// HasNatInside returns a boolean if a field has been set. -func (o *IPAddressRequest) HasNatInside() bool { - if o != nil && o.NatInside.IsSet() { - return true - } - - return false -} - -// SetNatInside gets a reference to the given NullableNestedIPAddressRequest and assigns it to the NatInside field. -func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest) { - o.NatInside.Set(&v) -} - -// SetNatInsideNil sets the value for NatInside to be an explicit nil -func (o *IPAddressRequest) SetNatInsideNil() { - o.NatInside.Set(nil) -} - -// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil -func (o *IPAddressRequest) UnsetNatInside() { - o.NatInside.Unset() -} - -// GetDnsName returns the DnsName field value if set, zero value otherwise. -func (o *IPAddressRequest) GetDnsName() string { - if o == nil || IsNil(o.DnsName) { - var ret string - return ret - } - return *o.DnsName -} - -// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddressRequest) GetDnsNameOk() (*string, bool) { - if o == nil || IsNil(o.DnsName) { - return nil, false - } - return o.DnsName, true -} - -// HasDnsName returns a boolean if a field has been set. -func (o *IPAddressRequest) HasDnsName() bool { - if o != nil && !IsNil(o.DnsName) { - return true - } - - return false -} - -// SetDnsName gets a reference to the given string and assigns it to the DnsName field. -func (o *IPAddressRequest) SetDnsName(v string) { - o.DnsName = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddressRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -424,102 +101,6 @@ func (o *IPAddressRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *IPAddressRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddressRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *IPAddressRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *IPAddressRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *IPAddressRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddressRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *IPAddressRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *IPAddressRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *IPAddressRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *IPAddressRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *IPAddressRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *IPAddressRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o IPAddressRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -531,42 +112,9 @@ func (o IPAddressRequest) MarshalJSON() ([]byte, error) { func (o IPAddressRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address - if o.Vrf.IsSet() { - toSerialize["vrf"] = o.Vrf.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Role) { - toSerialize["role"] = o.Role - } - if o.AssignedObjectType.IsSet() { - toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() - } - if o.AssignedObjectId.IsSet() { - toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() - } - if o.NatInside.IsSet() { - toSerialize["nat_inside"] = o.NatInside.Get() - } - if !IsNil(o.DnsName) { - toSerialize["dns_name"] = o.DnsName - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -611,18 +159,7 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "address") - delete(additionalProperties, "vrf") - delete(additionalProperties, "tenant") - delete(additionalProperties, "status") - delete(additionalProperties, "role") - delete(additionalProperties, "assigned_object_type") - delete(additionalProperties, "assigned_object_id") - delete(additionalProperties, "nat_inside") - delete(additionalProperties, "dns_name") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_role.go b/model_ip_address_role.go index acc433aaa..bd21ea2be 100644 --- a/model_ip_address_role.go +++ b/model_ip_address_role.go @@ -19,8 +19,8 @@ var _ MappedNullable = &IPAddressRole{} // IPAddressRole struct for IPAddressRole type IPAddressRole struct { - Value *IPAddressRoleValue `json:"value,omitempty"` - Label *IPAddressRoleLabel `json:"label,omitempty"` + Value *IPAddressRoleValue `json:"value,omitempty"` + Label *IPAddressRoleLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IPAddressRole) SetLabel(v IPAddressRoleLabel) { } func (o IPAddressRole) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableIPAddressRole) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go index c129c2302..08557463d 100644 --- a/model_ip_address_role_label.go +++ b/model_ip_address_role_label.go @@ -20,14 +20,14 @@ type IPAddressRoleLabel string // List of IPAddress_role_label const ( - IPADDRESSROLELABEL_LOOPBACK IPAddressRoleLabel = "Loopback" + IPADDRESSROLELABEL_LOOPBACK IPAddressRoleLabel = "Loopback" IPADDRESSROLELABEL_SECONDARY IPAddressRoleLabel = "Secondary" - IPADDRESSROLELABEL_ANYCAST IPAddressRoleLabel = "Anycast" - IPADDRESSROLELABEL_VIP IPAddressRoleLabel = "VIP" - IPADDRESSROLELABEL_VRRP IPAddressRoleLabel = "VRRP" - IPADDRESSROLELABEL_HSRP IPAddressRoleLabel = "HSRP" - IPADDRESSROLELABEL_GLBP IPAddressRoleLabel = "GLBP" - IPADDRESSROLELABEL_CARP IPAddressRoleLabel = "CARP" + IPADDRESSROLELABEL_ANYCAST IPAddressRoleLabel = "Anycast" + IPADDRESSROLELABEL_VIP IPAddressRoleLabel = "VIP" + IPADDRESSROLELABEL_VRRP IPAddressRoleLabel = "VRRP" + IPADDRESSROLELABEL_HSRP IPAddressRoleLabel = "HSRP" + IPADDRESSROLELABEL_GLBP IPAddressRoleLabel = "GLBP" + IPADDRESSROLELABEL_CARP IPAddressRoleLabel = "CARP" ) // All allowed values of IPAddressRoleLabel enum @@ -120,4 +120,3 @@ func (v *NullableIPAddressRoleLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_ip_address_role_value.go b/model_ip_address_role_value.go index ea1ddb4f5..5a21c75a0 100644 --- a/model_ip_address_role_value.go +++ b/model_ip_address_role_value.go @@ -20,15 +20,15 @@ type IPAddressRoleValue string // List of IPAddress_role_value const ( - IPADDRESSROLEVALUE_LOOPBACK IPAddressRoleValue = "loopback" + IPADDRESSROLEVALUE_LOOPBACK IPAddressRoleValue = "loopback" IPADDRESSROLEVALUE_SECONDARY IPAddressRoleValue = "secondary" - IPADDRESSROLEVALUE_ANYCAST IPAddressRoleValue = "anycast" - IPADDRESSROLEVALUE_VIP IPAddressRoleValue = "vip" - IPADDRESSROLEVALUE_VRRP IPAddressRoleValue = "vrrp" - IPADDRESSROLEVALUE_HSRP IPAddressRoleValue = "hsrp" - IPADDRESSROLEVALUE_GLBP IPAddressRoleValue = "glbp" - IPADDRESSROLEVALUE_CARP IPAddressRoleValue = "carp" - IPADDRESSROLEVALUE_EMPTY IPAddressRoleValue = "" + IPADDRESSROLEVALUE_ANYCAST IPAddressRoleValue = "anycast" + IPADDRESSROLEVALUE_VIP IPAddressRoleValue = "vip" + IPADDRESSROLEVALUE_VRRP IPAddressRoleValue = "vrrp" + IPADDRESSROLEVALUE_HSRP IPAddressRoleValue = "hsrp" + IPADDRESSROLEVALUE_GLBP IPAddressRoleValue = "glbp" + IPADDRESSROLEVALUE_CARP IPAddressRoleValue = "carp" + IPADDRESSROLEVALUE_EMPTY IPAddressRoleValue = "" ) // All allowed values of IPAddressRoleValue enum @@ -122,4 +122,3 @@ func (v *NullableIPAddressRoleValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_ip_address_status.go b/model_ip_address_status.go index c99d69f6a..7b2e35d56 100644 --- a/model_ip_address_status.go +++ b/model_ip_address_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &IPAddressStatus{} // IPAddressStatus struct for IPAddressStatus type IPAddressStatus struct { - Value *IPAddressStatusValue `json:"value,omitempty"` - Label *IPAddressStatusLabel `json:"label,omitempty"` + Value *IPAddressStatusValue `json:"value,omitempty"` + Label *IPAddressStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *IPAddressStatus) SetLabel(v IPAddressStatusLabel) { } func (o IPAddressStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableIPAddressStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go index 98e133a7f..0c25bca23 100644 --- a/model_ip_address_status_label.go +++ b/model_ip_address_status_label.go @@ -20,11 +20,11 @@ type IPAddressStatusLabel string // List of IPAddress_status_label const ( - IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active" - IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved" + IPADDRESSSTATUSLABEL_ACTIVE IPAddressStatusLabel = "Active" + IPADDRESSSTATUSLABEL_RESERVED IPAddressStatusLabel = "Reserved" IPADDRESSSTATUSLABEL_DEPRECATED IPAddressStatusLabel = "Deprecated" - IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP" - IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC" + IPADDRESSSTATUSLABEL_DHCP IPAddressStatusLabel = "DHCP" + IPADDRESSSTATUSLABEL_SLAAC IPAddressStatusLabel = "SLAAC" ) // All allowed values of IPAddressStatusLabel enum @@ -114,4 +114,3 @@ func (v *NullableIPAddressStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_ip_address_status_value.go b/model_ip_address_status_value.go index 1b745acb9..21152a155 100644 --- a/model_ip_address_status_value.go +++ b/model_ip_address_status_value.go @@ -20,11 +20,11 @@ type IPAddressStatusValue string // List of IPAddress_status_value const ( - IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active" - IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved" + IPADDRESSSTATUSVALUE_ACTIVE IPAddressStatusValue = "active" + IPADDRESSSTATUSVALUE_RESERVED IPAddressStatusValue = "reserved" IPADDRESSSTATUSVALUE_DEPRECATED IPAddressStatusValue = "deprecated" - IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp" - IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac" + IPADDRESSSTATUSVALUE_DHCP IPAddressStatusValue = "dhcp" + IPADDRESSSTATUSVALUE_SLAAC IPAddressStatusValue = "slaac" ) // All allowed values of IPAddressStatusValue enum @@ -114,4 +114,3 @@ func (v *NullableIPAddressStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_ip_range.go b/model_ip_range.go index 782e7942d..8775cca43 100644 --- a/model_ip_range.go +++ b/model_ip_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,16 +23,15 @@ var _ MappedNullable = &IPRange{} type IPRange struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Family AggregateFamily `json:"family"` StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` Size int32 `json:"size"` - Vrf NullableBriefVRF `json:"vrf,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + Vrf NullableVRF `json:"vrf,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` Status *IPRangeStatus `json:"status,omitempty"` - Role NullableBriefRole `json:"role,omitempty"` + Role NullableRole `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -50,11 +49,10 @@ type _IPRange IPRange // 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 NewIPRange(id int32, url string, displayUrl string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { +func NewIPRange(id int32, url string, display string, family AggregateFamily, startAddress string, endAddress string, size int32, created NullableTime, lastUpdated NullableTime) *IPRange { this := IPRange{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Family = family this.StartAddress = startAddress @@ -121,30 +119,6 @@ func (o *IPRange) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IPRange) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IPRange) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IPRange) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IPRange) GetDisplay() string { if o == nil { @@ -266,9 +240,9 @@ func (o *IPRange) SetSize(v int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetVrf() BriefVRF { +func (o *IPRange) GetVrf() VRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRF + var ret VRF return ret } return *o.Vrf.Get() @@ -277,7 +251,7 @@ func (o *IPRange) GetVrf() BriefVRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetVrfOk() (*BriefVRF, bool) { +func (o *IPRange) GetVrfOk() (*VRF, bool) { if o == nil { return nil, false } @@ -293,8 +267,8 @@ func (o *IPRange) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. -func (o *IPRange) SetVrf(v BriefVRF) { +// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. +func (o *IPRange) SetVrf(v VRF) { o.Vrf.Set(&v) } @@ -309,9 +283,9 @@ func (o *IPRange) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetTenant() BriefTenant { +func (o *IPRange) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -320,7 +294,7 @@ func (o *IPRange) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetTenantOk() (*BriefTenant, bool) { +func (o *IPRange) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -336,8 +310,8 @@ func (o *IPRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *IPRange) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *IPRange) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -384,9 +358,9 @@ func (o *IPRange) SetStatus(v IPRangeStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetRole() BriefRole { +func (o *IPRange) GetRole() Role { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRole + var ret Role return ret } return *o.Role.Get() @@ -395,7 +369,7 @@ func (o *IPRange) GetRole() BriefRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetRoleOk() (*BriefRole, bool) { +func (o *IPRange) GetRoleOk() (*Role, bool) { if o == nil { return nil, false } @@ -411,8 +385,8 @@ func (o *IPRange) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. -func (o *IPRange) SetRole(v BriefRole) { +// SetRole gets a reference to the given NullableRole and assigns it to the Role field. +func (o *IPRange) SetRole(v Role) { o.Role.Set(&v) } @@ -650,7 +624,6 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["start_address"] = o.StartAddress @@ -700,7 +673,6 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "family", "start_address", @@ -739,7 +711,6 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "start_address") diff --git a/model_ip_range_request.go b/model_ip_range_request.go index 0685390f2..89c81001d 100644 --- a/model_ip_range_request.go +++ b/model_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &IPRangeRequest{} // IPRangeRequest Adds support for custom fields and tags. type IPRangeRequest struct { - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Status *IPRangeStatusValue `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` // Treat as fully utilized MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} @@ -105,9 +105,9 @@ func (o *IPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetVrf() BriefVRFRequest { +func (o *IPRangeRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *IPRangeRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *IPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *IPRangeRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *IPRangeRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *IPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetTenant() BriefTenantRequest { +func (o *IPRangeRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *IPRangeRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *IPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *IPRangeRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *IPRangeRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetRole() BriefRoleRequest { +func (o *IPRangeRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *IPRangeRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *IPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *IPRangeRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *IPRangeRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_ip_range_status.go b/model_ip_range_status.go index dc694097b..7382048fb 100644 --- a/model_ip_range_status.go +++ b/model_ip_range_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go index e981f6ae4..385ab47e7 100644 --- a/model_ip_range_status_label.go +++ b/model_ip_range_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go index 6667c09bf..df62fcdf6 100644 --- a/model_ip_range_status_value.go +++ b/model_ip_range_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go index 846853460..36f1f6c99 100644 --- a/model_ip_sec_policy.go +++ b/model_ip_sec_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &IPSecPolicy{} type IPSecPolicy struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -43,11 +42,10 @@ type _IPSecPolicy IPSecPolicy // 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 NewIPSecPolicy(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { +func NewIPSecPolicy(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *IPSecPolicy { this := IPSecPolicy{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Created = created @@ -111,30 +109,6 @@ func (o *IPSecPolicy) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IPSecPolicy) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IPSecPolicy) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IPSecPolicy) GetDisplay() string { if o == nil { @@ -439,7 +413,6 @@ func (o IPSecPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -477,7 +450,6 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "created", @@ -513,7 +485,6 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go index 0ef197a67..9612f14fa 100644 --- a/model_ip_sec_policy_request.go +++ b/model_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go index ab4af3f12..9146d8074 100644 --- a/model_ip_sec_profile.go +++ b/model_ip_sec_profile.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,12 @@ var _ MappedNullable = &IPSecProfile{} type IPSecProfile struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Mode IPSecProfileMode `json:"mode"` - IkePolicy BriefIKEPolicy `json:"ike_policy"` - IpsecPolicy BriefIPSecPolicy `json:"ipsec_policy"` + IkePolicy IKEPolicy `json:"ike_policy"` + IpsecPolicy IPSecPolicy `json:"ipsec_policy"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -44,11 +43,10 @@ type _IPSecProfile IPSecProfile // 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 NewIPSecProfile(id int32, url string, displayUrl string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { +func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { this := IPSecProfile{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Mode = mode @@ -115,30 +113,6 @@ func (o *IPSecProfile) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IPSecProfile) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IPSecProfile) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IPSecProfile) GetDisplay() string { if o == nil { @@ -244,9 +218,9 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy { +func (o *IPSecProfile) GetIkePolicy() IKEPolicy { if o == nil { - var ret BriefIKEPolicy + var ret IKEPolicy return ret } @@ -255,7 +229,7 @@ func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool) { +func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { if o == nil { return nil, false } @@ -263,14 +237,14 @@ func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy) { +func (o *IPSecProfile) SetIkePolicy(v IKEPolicy) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy { +func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { if o == nil { - var ret BriefIPSecPolicy + var ret IPSecPolicy return ret } @@ -279,7 +253,7 @@ func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool) { +func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { if o == nil { return nil, false } @@ -287,7 +261,7 @@ func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy) { +func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy) { o.IpsecPolicy = v } @@ -451,7 +425,6 @@ func (o IPSecProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -486,7 +459,6 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "mode", @@ -525,7 +497,6 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go index 95f1d923a..69bcffc18 100644 --- a/model_ip_sec_profile_mode.go +++ b/model_ip_sec_profile_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go index a2acd238f..31f8922ec 100644 --- a/model_ip_sec_profile_mode_label.go +++ b/model_ip_sec_profile_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go index d5b89c8b5..75a1b1c6a 100644 --- a/model_ip_sec_profile_mode_value.go +++ b/model_ip_sec_profile_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go index 6dcc8c15c..09202cc1e 100644 --- a/model_ip_sec_profile_request.go +++ b/model_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &IPSecProfileRequest{} // IPSecProfileRequest Adds support for custom fields and tags. type IPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` - IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy IKEPolicyRequest `json:"ike_policy"` + IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _IPSecProfileRequest IPSecProfileRequest // 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 NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *IPSecProfileRequest { +func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *IPSecProfileRequest { this := IPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { +func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { if o == nil { - var ret BriefIKEPolicyRequest + var ret IKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { +func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { +func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { if o == nil { - var ret BriefIPSecPolicyRequest + var ret IPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool } // SetIpsecPolicy sets field value -func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { +func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go index 4676b155f..cdc9250e2 100644 --- a/model_ip_sec_proposal.go +++ b/model_ip_sec_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &IPSecProposal{} type IPSecProposal struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -47,11 +46,10 @@ type _IPSecProposal IPSecProposal // 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 NewIPSecProposal(id int32, url string, displayUrl string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { +func NewIPSecProposal(id int32, url string, display string, name string, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, created NullableTime, lastUpdated NullableTime) *IPSecProposal { this := IPSecProposal{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.EncryptionAlgorithm = encryptionAlgorithm @@ -117,30 +115,6 @@ func (o *IPSecProposal) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *IPSecProposal) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *IPSecProposal) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *IPSecProposal) GetDisplay() string { if o == nil { @@ -515,7 +489,6 @@ func (o IPSecProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -555,7 +528,6 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "encryption_algorithm", @@ -593,7 +565,6 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go index 69372b5e1..1a4cdf787 100644 --- a/model_ip_sec_proposal_request.go +++ b/model_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go index d12c7b46e..f5e1d118c 100644 --- a/model_ipam_service_templates_list_protocol_parameter.go +++ b/model_ipam_service_templates_list_protocol_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_job.go b/model_job.go index 8706b45ec..7c41c0fe1 100644 --- a/model_job.go +++ b/model_job.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,20 @@ var _ MappedNullable = &Job{} // Job struct for Job type Job struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId NullableInt64 `json:"object_id,omitempty"` - Name string `json:"name"` - Status BriefJobStatus `json:"status"` - Created time.Time `json:"created"` - Scheduled NullableTime `json:"scheduled,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId NullableInt64 `json:"object_id,omitempty"` + Name string `json:"name"` + Status JobStatus `json:"status"` + Created time.Time `json:"created"` + Scheduled NullableTime `json:"scheduled,omitempty"` // Recurrence interval (in minutes) Interval NullableInt32 `json:"interval,omitempty"` Started NullableTime `json:"started,omitempty"` Completed NullableTime `json:"completed,omitempty"` - User BriefUser `json:"user"` + User User `json:"user"` Data interface{} `json:"data,omitempty"` Error string `json:"error"` JobId string `json:"job_id"` @@ -48,11 +47,10 @@ type _Job Job // 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 NewJob(id int32, url string, displayUrl string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string) *Job { +func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string) *Job { this := Job{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.ObjectType = objectType this.Name = name @@ -120,30 +118,6 @@ func (o *Job) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Job) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Job) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Job) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Job) GetDisplay() string { if o == nil { @@ -260,9 +234,9 @@ func (o *Job) SetName(v string) { } // GetStatus returns the Status field value -func (o *Job) GetStatus() BriefJobStatus { +func (o *Job) GetStatus() JobStatus { if o == nil { - var ret BriefJobStatus + var ret JobStatus return ret } @@ -271,7 +245,7 @@ func (o *Job) GetStatus() BriefJobStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *Job) GetStatusOk() (*BriefJobStatus, bool) { +func (o *Job) GetStatusOk() (*JobStatus, bool) { if o == nil { return nil, false } @@ -279,7 +253,7 @@ func (o *Job) GetStatusOk() (*BriefJobStatus, bool) { } // SetStatus sets field value -func (o *Job) SetStatus(v BriefJobStatus) { +func (o *Job) SetStatus(v JobStatus) { o.Status = v } @@ -480,9 +454,9 @@ func (o *Job) UnsetCompleted() { } // GetUser returns the User field value -func (o *Job) GetUser() BriefUser { +func (o *Job) GetUser() User { if o == nil { - var ret BriefUser + var ret User return ret } @@ -491,7 +465,7 @@ func (o *Job) GetUser() BriefUser { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Job) GetUserOk() (*BriefUser, bool) { +func (o *Job) GetUserOk() (*User, bool) { if o == nil { return nil, false } @@ -499,7 +473,7 @@ func (o *Job) GetUserOk() (*BriefUser, bool) { } // SetUser sets field value -func (o *Job) SetUser(v BriefUser) { +func (o *Job) SetUser(v User) { o.User = v } @@ -596,7 +570,6 @@ func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_type"] = o.ObjectType if o.ObjectId.IsSet() { @@ -638,7 +611,6 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "object_type", "name", @@ -678,7 +650,6 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_type") delete(additionalProperties, "object_id") diff --git a/model_journal_entry.go b/model_journal_entry.go index ce70ab4c1..85c554b79 100644 --- a/model_journal_entry.go +++ b/model_journal_entry.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &JournalEntry{} type JournalEntry struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` AssignedObjectType string `json:"assigned_object_type"` AssignedObjectId int64 `json:"assigned_object_id"` @@ -44,11 +43,10 @@ type _JournalEntry JournalEntry // 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 NewJournalEntry(id int32, url string, displayUrl string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { +func NewJournalEntry(id int32, url string, display string, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, comments string, lastUpdated NullableTime) *JournalEntry { this := JournalEntry{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.AssignedObjectType = assignedObjectType this.AssignedObjectId = assignedObjectId @@ -115,30 +113,6 @@ func (o *JournalEntry) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *JournalEntry) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *JournalEntry) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *JournalEntry) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *JournalEntry) GetDisplay() string { if o == nil { @@ -464,7 +438,6 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId @@ -501,7 +474,6 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "assigned_object_type", "assigned_object_id", @@ -540,7 +512,6 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "assigned_object_type") delete(additionalProperties, "assigned_object_id") diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go index 4140ff8ac..18d34bc98 100644 --- a/model_journal_entry_kind.go +++ b/model_journal_entry_kind.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go index a7f5d3c88..5c61d6c58 100644 --- a/model_journal_entry_kind_label.go +++ b/model_journal_entry_kind_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go index aae4f9798..06b51fe78 100644 --- a/model_journal_entry_kind_value.go +++ b/model_journal_entry_kind_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go index d06931476..03045dce6 100644 --- a/model_journal_entry_request.go +++ b/model_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_l2_vpn.go b/model_l2_vpn.go index 05e025e89..b59c4021b 100644 --- a/model_l2_vpn.go +++ b/model_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the L2VPN type satisfies the MappedNullable interface at compile time @@ -21,23 +20,14 @@ var _ MappedNullable = &L2VPN{} // L2VPN Adds support for custom fields and tags. type L2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *BriefL2VPNType `json:"type,omitempty"` - ImportTargets []RouteTarget `json:"import_targets,omitempty"` - ExportTargets []RouteTarget `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *L2VPNType `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,16 +37,13 @@ type _L2VPN L2VPN // 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 NewL2VPN(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *L2VPN { +func NewL2VPN(id int32, url string, display string, name string, slug string) *L2VPN { this := L2VPN{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -116,30 +103,6 @@ func (o *L2VPN) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *L2VPN) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *L2VPN) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *L2VPN) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *L2VPN) GetDisplay() string { if o == nil { @@ -256,9 +219,9 @@ func (o *L2VPN) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPN) GetType() BriefL2VPNType { +func (o *L2VPN) GetType() L2VPNType { if o == nil || IsNil(o.Type) { - var ret BriefL2VPNType + var ret L2VPNType return ret } return *o.Type @@ -266,7 +229,7 @@ func (o *L2VPN) GetType() BriefL2VPNType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool) { +func (o *L2VPN) GetTypeOk() (*L2VPNType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -282,75 +245,11 @@ func (o *L2VPN) HasType() bool { return false } -// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. -func (o *L2VPN) SetType(v BriefL2VPNType) { +// SetType gets a reference to the given L2VPNType and assigns it to the Type field. +func (o *L2VPN) SetType(v L2VPNType) { o.Type = &v } -// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. -func (o *L2VPN) GetImportTargets() []RouteTarget { - if o == nil || IsNil(o.ImportTargets) { - var ret []RouteTarget - return ret - } - return o.ImportTargets -} - -// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPN) GetImportTargetsOk() ([]RouteTarget, bool) { - if o == nil || IsNil(o.ImportTargets) { - return nil, false - } - return o.ImportTargets, true -} - -// HasImportTargets returns a boolean if a field has been set. -func (o *L2VPN) HasImportTargets() bool { - if o != nil && !IsNil(o.ImportTargets) { - return true - } - - return false -} - -// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. -func (o *L2VPN) SetImportTargets(v []RouteTarget) { - o.ImportTargets = v -} - -// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. -func (o *L2VPN) GetExportTargets() []RouteTarget { - if o == nil || IsNil(o.ExportTargets) { - var ret []RouteTarget - return ret - } - return o.ExportTargets -} - -// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPN) GetExportTargetsOk() ([]RouteTarget, bool) { - if o == nil || IsNil(o.ExportTargets) { - return nil, false - } - return o.ExportTargets, true -} - -// HasExportTargets returns a boolean if a field has been set. -func (o *L2VPN) HasExportTargets() bool { - if o != nil && !IsNil(o.ExportTargets) { - return true - } - - return false -} - -// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. -func (o *L2VPN) SetExportTargets(v []RouteTarget) { - o.ExportTargets = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -383,197 +282,6 @@ func (o *L2VPN) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *L2VPN) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPN) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *L2VPN) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *L2VPN) SetComments(v string) { - o.Comments = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *L2VPN) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPN) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *L2VPN) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *L2VPN) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *L2VPN) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *L2VPN) UnsetTenant() { - o.Tenant.Unset() -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *L2VPN) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPN) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *L2VPN) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *L2VPN) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *L2VPN) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPN) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *L2VPN) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *L2VPN) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *L2VPN) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPN) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *L2VPN) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *L2VPN) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *L2VPN) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o L2VPN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -586,7 +294,6 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() @@ -596,29 +303,9 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !IsNil(o.ImportTargets) { - toSerialize["import_targets"] = o.ImportTargets - } - if !IsNil(o.ExportTargets) { - toSerialize["export_targets"] = o.ExportTargets - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -634,12 +321,9 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -671,21 +355,12 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "identifier") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") - delete(additionalProperties, "import_targets") - delete(additionalProperties, "export_targets") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tenant") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go index 3fb2a88a3..9722c656c 100644 --- a/model_l2_vpn_request.go +++ b/model_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,11 @@ var _ MappedNullable = &L2VPNRequest{} // L2VPNRequest Adds support for custom fields and tags. type L2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *BriefL2VPNTypeValue `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *L2VPNTypeValue `json:"type,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -147,9 +141,9 @@ func (o *L2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue { +func (o *L2VPNRequest) GetType() L2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret BriefL2VPNTypeValue + var ret L2VPNTypeValue return ret } return *o.Type @@ -157,7 +151,7 @@ func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { +func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -173,75 +167,11 @@ func (o *L2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. -func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue) { +// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. +func (o *L2VPNRequest) SetType(v L2VPNTypeValue) { o.Type = &v } -// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. -func (o *L2VPNRequest) GetImportTargets() []int32 { - if o == nil || IsNil(o.ImportTargets) { - var ret []int32 - return ret - } - return o.ImportTargets -} - -// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetImportTargetsOk() ([]int32, bool) { - if o == nil || IsNil(o.ImportTargets) { - return nil, false - } - return o.ImportTargets, true -} - -// HasImportTargets returns a boolean if a field has been set. -func (o *L2VPNRequest) HasImportTargets() bool { - if o != nil && !IsNil(o.ImportTargets) { - return true - } - - return false -} - -// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. -func (o *L2VPNRequest) SetImportTargets(v []int32) { - o.ImportTargets = v -} - -// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. -func (o *L2VPNRequest) GetExportTargets() []int32 { - if o == nil || IsNil(o.ExportTargets) { - var ret []int32 - return ret - } - return o.ExportTargets -} - -// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetExportTargetsOk() ([]int32, bool) { - if o == nil || IsNil(o.ExportTargets) { - return nil, false - } - return o.ExportTargets, true -} - -// HasExportTargets returns a boolean if a field has been set. -func (o *L2VPNRequest) HasExportTargets() bool { - if o != nil && !IsNil(o.ExportTargets) { - return true - } - - return false -} - -// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. -func (o *L2VPNRequest) SetExportTargets(v []int32) { - o.ExportTargets = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPNRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -274,145 +204,6 @@ func (o *L2VPNRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *L2VPNRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *L2VPNRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *L2VPNRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *L2VPNRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *L2VPNRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *L2VPNRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *L2VPNRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *L2VPNRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *L2VPNRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *L2VPNRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *L2VPNRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *L2VPNRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *L2VPNRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *L2VPNRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o L2VPNRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -431,27 +222,9 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } - if !IsNil(o.ImportTargets) { - toSerialize["import_targets"] = o.ImportTargets - } - if !IsNil(o.ExportTargets) { - toSerialize["export_targets"] = o.ExportTargets - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -500,13 +273,7 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") - delete(additionalProperties, "import_targets") - delete(additionalProperties, "export_targets") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tenant") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go index a6be754eb..b70569c1f 100644 --- a/model_l2_vpn_termination.go +++ b/model_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the L2VPNTermination type satisfies the MappedNullable interface at compile time @@ -21,18 +20,10 @@ var _ MappedNullable = &L2VPNTermination{} // L2VPNTermination Adds support for custom fields and tags. type L2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - L2vpn BriefL2VPN `json:"l2vpn"` - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - AssignedObject interface{} `json:"assigned_object"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + L2vpn L2VPN `json:"l2vpn"` AdditionalProperties map[string]interface{} } @@ -42,18 +33,12 @@ type _L2VPNTermination L2VPNTermination // 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 NewL2VPNTermination(id int32, url string, displayUrl string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination { +func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN) *L2VPNTermination { this := L2VPNTermination{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.L2vpn = l2vpn - this.AssignedObjectType = assignedObjectType - this.AssignedObjectId = assignedObjectId - this.AssignedObject = assignedObject - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -113,30 +98,6 @@ func (o *L2VPNTermination) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *L2VPNTermination) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *L2VPNTermination) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *L2VPNTermination) GetDisplay() string { if o == nil { @@ -162,9 +123,9 @@ func (o *L2VPNTermination) SetDisplay(v string) { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTermination) GetL2vpn() BriefL2VPN { +func (o *L2VPNTermination) GetL2vpn() L2VPN { if o == nil { - var ret BriefL2VPN + var ret L2VPN return ret } @@ -173,7 +134,7 @@ func (o *L2VPNTermination) GetL2vpn() BriefL2VPN { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { +func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { if o == nil { return nil, false } @@ -181,200 +142,10 @@ func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { } // SetL2vpn sets field value -func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN) { +func (o *L2VPNTermination) SetL2vpn(v L2VPN) { o.L2vpn = v } -// GetAssignedObjectType returns the AssignedObjectType field value -func (o *L2VPNTermination) GetAssignedObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.AssignedObjectType -} - -// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value -// and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AssignedObjectType, true -} - -// SetAssignedObjectType sets field value -func (o *L2VPNTermination) SetAssignedObjectType(v string) { - o.AssignedObjectType = v -} - -// GetAssignedObjectId returns the AssignedObjectId field value -func (o *L2VPNTermination) GetAssignedObjectId() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.AssignedObjectId -} - -// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value -// and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.AssignedObjectId, true -} - -// SetAssignedObjectId sets field value -func (o *L2VPNTermination) SetAssignedObjectId(v int64) { - o.AssignedObjectId = v -} - -// GetAssignedObject returns the AssignedObject field value -// If the value is explicit nil, the zero value for interface{} will be returned -func (o *L2VPNTermination) GetAssignedObject() interface{} { - if o == nil { - var ret interface{} - return ret - } - - return o.AssignedObject -} - -// GetAssignedObjectOk returns a tuple with the AssignedObject field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool) { - if o == nil || IsNil(o.AssignedObject) { - return nil, false - } - return &o.AssignedObject, true -} - -// SetAssignedObject sets field value -func (o *L2VPNTermination) SetAssignedObject(v interface{}) { - o.AssignedObject = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *L2VPNTermination) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *L2VPNTermination) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *L2VPNTermination) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *L2VPNTermination) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *L2VPNTermination) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *L2VPNTermination) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *L2VPNTermination) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *L2VPNTermination) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *L2VPNTermination) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *L2VPNTermination) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o L2VPNTermination) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -387,22 +158,8 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn - toSerialize["assigned_object_type"] = o.AssignedObjectType - toSerialize["assigned_object_id"] = o.AssignedObjectId - if o.AssignedObject != nil { - toSerialize["assigned_object"] = o.AssignedObject - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -418,14 +175,8 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "l2vpn", - "assigned_object_type", - "assigned_object_id", - "assigned_object", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -457,16 +208,8 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "l2vpn") - delete(additionalProperties, "assigned_object_type") - delete(additionalProperties, "assigned_object_id") - delete(additionalProperties, "assigned_object") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go index 9b5cbfaa2..6b293da4e 100644 --- a/model_l2_vpn_termination_request.go +++ b/model_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,7 @@ var _ MappedNullable = &L2VPNTerminationRequest{} // L2VPNTerminationRequest Adds support for custom fields and tags. type L2VPNTerminationRequest struct { - L2vpn BriefL2VPNRequest `json:"l2vpn"` - AssignedObjectType string `json:"assigned_object_type"` - AssignedObjectId int64 `json:"assigned_object_id"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + L2vpn L2VPNRequest `json:"l2vpn"` AdditionalProperties map[string]interface{} } @@ -34,11 +30,9 @@ type _L2VPNTerminationRequest L2VPNTerminationRequest // 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 NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest { +func NewL2VPNTerminationRequest(l2vpn L2VPNRequest) *L2VPNTerminationRequest { this := L2VPNTerminationRequest{} this.L2vpn = l2vpn - this.AssignedObjectType = assignedObjectType - this.AssignedObjectId = assignedObjectId return &this } @@ -51,9 +45,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { +func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { if o == nil { - var ret BriefL2VPNRequest + var ret L2VPNRequest return ret } @@ -62,7 +56,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { +func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { if o == nil { return nil, false } @@ -70,122 +64,10 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { } // SetL2vpn sets field value -func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { +func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { o.L2vpn = v } -// GetAssignedObjectType returns the AssignedObjectType field value -func (o *L2VPNTerminationRequest) GetAssignedObjectType() string { - if o == nil { - var ret string - return ret - } - - return o.AssignedObjectType -} - -// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value -// and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.AssignedObjectType, true -} - -// SetAssignedObjectType sets field value -func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string) { - o.AssignedObjectType = v -} - -// GetAssignedObjectId returns the AssignedObjectId field value -func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.AssignedObjectId -} - -// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value -// and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.AssignedObjectId, true -} - -// SetAssignedObjectId sets field value -func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64) { - o.AssignedObjectId = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *L2VPNTerminationRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *L2VPNTerminationRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -197,14 +79,6 @@ func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["l2vpn"] = o.L2vpn - toSerialize["assigned_object_type"] = o.AssignedObjectType - toSerialize["assigned_object_id"] = o.AssignedObjectId - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -219,8 +93,6 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "l2vpn", - "assigned_object_type", - "assigned_object_id", } allProperties := make(map[string]interface{}) @@ -251,10 +123,6 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "l2vpn") - delete(additionalProperties, "assigned_object_type") - delete(additionalProperties, "assigned_object_id") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location.go b/model_location.go index 0d54fda22..3da41e65f 100644 --- a/model_location.go +++ b/model_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Location type satisfies the MappedNullable interface at compile time @@ -21,26 +20,14 @@ var _ MappedNullable = &Location{} // Location Extends PrimaryModelSerializer to include MPTT support. type Location struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Site BriefSite `json:"site"` - Parent NullableNestedLocation `json:"parent,omitempty"` - Status *LocationStatus `json:"status,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - // Local facility ID or description - Facility *string `json:"facility,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - RackCount int32 `json:"rack_count"` - DeviceCount *int32 `json:"device_count,omitempty"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + RackCount int32 `json:"rack_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -50,17 +37,13 @@ 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, displayUrl string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, depth int32) *Location { +func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32) *Location { this := Location{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Site = site - this.Created = created - this.LastUpdated = lastUpdated this.RackCount = rackCount this.Depth = depth return &this @@ -122,30 +105,6 @@ func (o *Location) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Location) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Location) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Location) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Location) GetDisplay() string { if o == nil { @@ -218,180 +177,6 @@ func (o *Location) SetSlug(v string) { o.Slug = v } -// GetSite returns the Site field value -func (o *Location) GetSite() BriefSite { - if o == nil { - var ret BriefSite - return ret - } - - return o.Site -} - -// GetSiteOk returns a tuple with the Site field value -// and a boolean to check if the value has been set. -func (o *Location) GetSiteOk() (*BriefSite, bool) { - if o == nil { - return nil, false - } - return &o.Site, true -} - -// SetSite sets field value -func (o *Location) SetSite(v BriefSite) { - o.Site = v -} - -// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Location) GetParent() NestedLocation { - if o == nil || IsNil(o.Parent.Get()) { - var ret NestedLocation - return ret - } - return *o.Parent.Get() -} - -// GetParentOk returns a tuple with the Parent field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Location) GetParentOk() (*NestedLocation, bool) { - if o == nil { - return nil, false - } - return o.Parent.Get(), o.Parent.IsSet() -} - -// HasParent returns a boolean if a field has been set. -func (o *Location) HasParent() bool { - if o != nil && o.Parent.IsSet() { - return true - } - - return false -} - -// SetParent gets a reference to the given NullableNestedLocation and assigns it to the Parent field. -func (o *Location) SetParent(v NestedLocation) { - o.Parent.Set(&v) -} - -// SetParentNil sets the value for Parent to be an explicit nil -func (o *Location) SetParentNil() { - o.Parent.Set(nil) -} - -// UnsetParent ensures that no value is present for Parent, not even an explicit nil -func (o *Location) UnsetParent() { - o.Parent.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Location) GetStatus() LocationStatus { - if o == nil || IsNil(o.Status) { - var ret LocationStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Location) GetStatusOk() (*LocationStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Location) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. -func (o *Location) SetStatus(v LocationStatus) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Location) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Location) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Location) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Location) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Location) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Location) UnsetTenant() { - o.Tenant.Unset() -} - -// GetFacility returns the Facility field value if set, zero value otherwise. -func (o *Location) GetFacility() string { - if o == nil || IsNil(o.Facility) { - var ret string - return ret - } - return *o.Facility -} - -// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Location) GetFacilityOk() (*string, bool) { - if o == nil || IsNil(o.Facility) { - return nil, false - } - return o.Facility, true -} - -// HasFacility returns a boolean if a field has been set. -func (o *Location) HasFacility() bool { - if o != nil && !IsNil(o.Facility) { - return true - } - - return false -} - -// SetFacility gets a reference to the given string and assigns it to the Facility field. -func (o *Location) SetFacility(v string) { - o.Facility = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Location) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -424,122 +209,6 @@ func (o *Location) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Location) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Location) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Location) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Location) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Location) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Location) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Location) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Location) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Location) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Location) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Location) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Location) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Location) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Location) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetRackCount returns the RackCount field value func (o *Location) GetRackCount() int32 { if o == nil { @@ -564,38 +233,6 @@ func (o *Location) SetRackCount(v int32) { o.RackCount = v } -// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. -func (o *Location) GetDeviceCount() int32 { - if o == nil || IsNil(o.DeviceCount) { - var ret int32 - return ret - } - return *o.DeviceCount -} - -// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Location) GetDeviceCountOk() (*int32, bool) { - if o == nil || IsNil(o.DeviceCount) { - return nil, false - } - return o.DeviceCount, true -} - -// HasDeviceCount returns a boolean if a field has been set. -func (o *Location) HasDeviceCount() bool { - if o != nil && !IsNil(o.DeviceCount) { - return true - } - - return false -} - -// SetDeviceCount gets a reference to the given int32 and assigns it to the DeviceCount field. -func (o *Location) SetDeviceCount(v int32) { - o.DeviceCount = &v -} - // GetDepth returns the Depth field value func (o *Location) GetDepth() int32 { if o == nil { @@ -632,38 +269,13 @@ func (o Location) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["site"] = o.Site - if o.Parent.IsSet() { - toSerialize["parent"] = o.Parent.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Facility) { - toSerialize["facility"] = o.Facility - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["rack_count"] = o.RackCount - if !IsNil(o.DeviceCount) { - toSerialize["device_count"] = o.DeviceCount - } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -680,13 +292,9 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "site", - "created", - "last_updated", "rack_count", "_depth", } @@ -720,22 +328,11 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "site") - delete(additionalProperties, "parent") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") - delete(additionalProperties, "facility") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "rack_count") - delete(additionalProperties, "device_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } diff --git a/model_location_request.go b/model_location_request.go index bfe455506..5f282485a 100644 --- a/model_location_request.go +++ b/model_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,9 @@ var _ MappedNullable = &LocationRequest{} // LocationRequest Extends PrimaryModelSerializer to include MPTT support. type LocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site BriefSiteRequest `json:"site"` - Parent NullableNestedLocationRequest `json:"parent,omitempty"` - Status *LocationStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - // Local facility ID or description - Facility *string `json:"facility,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,11 +32,10 @@ type _LocationRequest LocationRequest // 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 NewLocationRequest(name string, slug string, site BriefSiteRequest) *LocationRequest { +func NewLocationRequest(name string, slug string) *LocationRequest { this := LocationRequest{} this.Name = name this.Slug = slug - this.Site = site return &this } @@ -104,180 +95,6 @@ func (o *LocationRequest) SetSlug(v string) { o.Slug = v } -// GetSite returns the Site field value -func (o *LocationRequest) GetSite() BriefSiteRequest { - if o == nil { - var ret BriefSiteRequest - return ret - } - - return o.Site -} - -// GetSiteOk returns a tuple with the Site field value -// and a boolean to check if the value has been set. -func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { - if o == nil { - return nil, false - } - return &o.Site, true -} - -// SetSite sets field value -func (o *LocationRequest) SetSite(v BriefSiteRequest) { - o.Site = v -} - -// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LocationRequest) GetParent() NestedLocationRequest { - if o == nil || IsNil(o.Parent.Get()) { - var ret NestedLocationRequest - return ret - } - return *o.Parent.Get() -} - -// GetParentOk returns a tuple with the Parent field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool) { - if o == nil { - return nil, false - } - return o.Parent.Get(), o.Parent.IsSet() -} - -// HasParent returns a boolean if a field has been set. -func (o *LocationRequest) HasParent() bool { - if o != nil && o.Parent.IsSet() { - return true - } - - return false -} - -// SetParent gets a reference to the given NullableNestedLocationRequest and assigns it to the Parent field. -func (o *LocationRequest) SetParent(v NestedLocationRequest) { - o.Parent.Set(&v) -} - -// SetParentNil sets the value for Parent to be an explicit nil -func (o *LocationRequest) SetParentNil() { - o.Parent.Set(nil) -} - -// UnsetParent ensures that no value is present for Parent, not even an explicit nil -func (o *LocationRequest) UnsetParent() { - o.Parent.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *LocationRequest) GetStatus() LocationStatusValue { - if o == nil || IsNil(o.Status) { - var ret LocationStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *LocationRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. -func (o *LocationRequest) SetStatus(v LocationStatusValue) { - o.Status = &v -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *LocationRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *LocationRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *LocationRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *LocationRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *LocationRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetFacility returns the Facility field value if set, zero value otherwise. -func (o *LocationRequest) GetFacility() string { - if o == nil || IsNil(o.Facility) { - var ret string - return ret - } - return *o.Facility -} - -// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocationRequest) GetFacilityOk() (*string, bool) { - if o == nil || IsNil(o.Facility) { - return nil, false - } - return o.Facility, true -} - -// HasFacility returns a boolean if a field has been set. -func (o *LocationRequest) HasFacility() bool { - if o != nil && !IsNil(o.Facility) { - return true - } - - return false -} - -// SetFacility gets a reference to the given string and assigns it to the Facility field. -func (o *LocationRequest) SetFacility(v string) { - o.Facility = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *LocationRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -310,70 +127,6 @@ func (o *LocationRequest) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *LocationRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocationRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *LocationRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *LocationRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *LocationRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *LocationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *LocationRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *LocationRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o LocationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -386,28 +139,9 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - toSerialize["site"] = o.Site - if o.Parent.IsSet() { - toSerialize["parent"] = o.Parent.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Facility) { - toSerialize["facility"] = o.Facility - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -423,7 +157,6 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", - "site", } allProperties := make(map[string]interface{}) @@ -455,14 +188,7 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "site") - delete(additionalProperties, "parent") - delete(additionalProperties, "status") - delete(additionalProperties, "tenant") - delete(additionalProperties, "facility") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location_status.go b/model_location_status.go index 294d6ecf3..2486c2dce 100644 --- a/model_location_status.go +++ b/model_location_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &LocationStatus{} // LocationStatus struct for LocationStatus type LocationStatus struct { - Value *LocationStatusValue `json:"value,omitempty"` - Label *LocationStatusLabel `json:"label,omitempty"` + Value *LocationStatusValue `json:"value,omitempty"` + Label *LocationStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *LocationStatus) SetLabel(v LocationStatusLabel) { } func (o LocationStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableLocationStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_location_status_label.go b/model_location_status_label.go index ef259a6c4..a7eb2cc75 100644 --- a/model_location_status_label.go +++ b/model_location_status_label.go @@ -20,11 +20,11 @@ type LocationStatusLabel string // List of Location_status_label const ( - LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned" - LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging" - LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active" + LOCATIONSTATUSLABEL_PLANNED LocationStatusLabel = "Planned" + LOCATIONSTATUSLABEL_STAGING LocationStatusLabel = "Staging" + LOCATIONSTATUSLABEL_ACTIVE LocationStatusLabel = "Active" LOCATIONSTATUSLABEL_DECOMMISSIONING LocationStatusLabel = "Decommissioning" - LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired" + LOCATIONSTATUSLABEL_RETIRED LocationStatusLabel = "Retired" ) // All allowed values of LocationStatusLabel enum @@ -114,4 +114,3 @@ func (v *NullableLocationStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_location_status_value.go b/model_location_status_value.go index cf375bf35..24b5f6f4f 100644 --- a/model_location_status_value.go +++ b/model_location_status_value.go @@ -20,11 +20,11 @@ type LocationStatusValue string // List of Location_status_value const ( - LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned" - LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging" - LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active" + LOCATIONSTATUSVALUE_PLANNED LocationStatusValue = "planned" + LOCATIONSTATUSVALUE_STAGING LocationStatusValue = "staging" + LOCATIONSTATUSVALUE_ACTIVE LocationStatusValue = "active" LOCATIONSTATUSVALUE_DECOMMISSIONING LocationStatusValue = "decommissioning" - LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired" + LOCATIONSTATUSVALUE_RETIRED LocationStatusValue = "retired" ) // All allowed values of LocationStatusValue enum @@ -114,4 +114,3 @@ func (v *NullableLocationStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_manufacturer.go b/model_manufacturer.go index 7e8307969..5be331410 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Manufacturer type satisfies the MappedNullable interface at compile time @@ -21,20 +20,13 @@ var _ MappedNullable = &Manufacturer{} // Manufacturer Adds support for custom fields and tags. type Manufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DevicetypeCount *int64 `json:"devicetype_count,omitempty"` - InventoryitemCount int64 `json:"inventoryitem_count"` - PlatformCount int64 `json:"platform_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,18 +36,13 @@ type _Manufacturer Manufacturer // 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 NewManufacturer(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, platformCount int64) *Manufacturer { +func NewManufacturer(id int32, url string, display string, name string, slug string) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.InventoryitemCount = inventoryitemCount - this.PlatformCount = platformCount return &this } @@ -115,30 +102,6 @@ func (o *Manufacturer) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Manufacturer) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Manufacturer) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Manufacturer) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Manufacturer) GetDisplay() string { if o == nil { @@ -243,122 +206,6 @@ func (o *Manufacturer) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Manufacturer) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Manufacturer) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Manufacturer) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Manufacturer) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Manufacturer) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Manufacturer) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Manufacturer) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Manufacturer) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Manufacturer) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Manufacturer) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Manufacturer) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Manufacturer) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Manufacturer) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. func (o *Manufacturer) GetDevicetypeCount() int64 { if o == nil || IsNil(o.DevicetypeCount) { @@ -391,54 +238,6 @@ func (o *Manufacturer) SetDevicetypeCount(v int64) { o.DevicetypeCount = &v } -// GetInventoryitemCount returns the InventoryitemCount field value -func (o *Manufacturer) GetInventoryitemCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.InventoryitemCount -} - -// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value -// and a boolean to check if the value has been set. -func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.InventoryitemCount, true -} - -// SetInventoryitemCount sets field value -func (o *Manufacturer) SetInventoryitemCount(v int64) { - o.InventoryitemCount = v -} - -// GetPlatformCount returns the PlatformCount field value -func (o *Manufacturer) GetPlatformCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.PlatformCount -} - -// GetPlatformCountOk returns a tuple with the PlatformCount field value -// and a boolean to check if the value has been set. -func (o *Manufacturer) GetPlatformCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.PlatformCount, true -} - -// SetPlatformCount sets field value -func (o *Manufacturer) SetPlatformCount(v int64) { - o.PlatformCount = v -} - func (o Manufacturer) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -451,26 +250,15 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DevicetypeCount) { toSerialize["devicetype_count"] = o.DevicetypeCount } - toSerialize["inventoryitem_count"] = o.InventoryitemCount - toSerialize["platform_count"] = o.PlatformCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -486,14 +274,9 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", - "inventoryitem_count", - "platform_count", } allProperties := make(map[string]interface{}) @@ -525,18 +308,11 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "devicetype_count") - delete(additionalProperties, "inventoryitem_count") - delete(additionalProperties, "platform_count") o.AdditionalProperties = additionalProperties } diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go index 259b40a91..35e495df8 100644 --- a/model_manufacturer_request.go +++ b/model_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,9 @@ var _ MappedNullable = &ManufacturerRequest{} // ManufacturerRequest Adds support for custom fields and tags. type ManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -129,70 +127,6 @@ func (o *ManufacturerRequest) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ManufacturerRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ManufacturerRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ManufacturerRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ManufacturerRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ManufacturerRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ManufacturerRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ManufacturerRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ManufacturerRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -208,12 +142,6 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -261,8 +189,6 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module.go b/model_module.go index c9af801ef..7154265d7 100644 --- a/model_module.go +++ b/model_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Module type satisfies the MappedNullable interface at compile time @@ -21,23 +20,11 @@ var _ MappedNullable = &Module{} // Module Adds support for custom fields and tags. type Module struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` - ModuleType BriefModuleType `json:"module_type"` - Status *ModuleStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` - // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` AdditionalProperties map[string]interface{} } @@ -47,17 +34,13 @@ type _Module Module // 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 NewModule(id int32, url string, displayUrl string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime) *Module { +func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay) *Module { this := Module{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.ModuleBay = moduleBay - this.ModuleType = moduleType - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -117,30 +100,6 @@ func (o *Module) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Module) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Module) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Module) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Module) GetDisplay() string { if o == nil { @@ -166,9 +125,9 @@ func (o *Module) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Module) GetDevice() BriefDevice { +func (o *Module) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -177,7 +136,7 @@ func (o *Module) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Module) GetDeviceOk() (*BriefDevice, bool) { +func (o *Module) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -185,7 +144,7 @@ func (o *Module) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *Module) SetDevice(v BriefDevice) { +func (o *Module) SetDevice(v Device) { o.Device = v } @@ -213,317 +172,6 @@ func (o *Module) SetModuleBay(v NestedModuleBay) { o.ModuleBay = v } -// GetModuleType returns the ModuleType field value -func (o *Module) GetModuleType() BriefModuleType { - if o == nil { - var ret BriefModuleType - return ret - } - - return o.ModuleType -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value -// and a boolean to check if the value has been set. -func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool) { - if o == nil { - return nil, false - } - return &o.ModuleType, true -} - -// SetModuleType sets field value -func (o *Module) SetModuleType(v BriefModuleType) { - o.ModuleType = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Module) GetStatus() ModuleStatus { - if o == nil || IsNil(o.Status) { - var ret ModuleStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Module) GetStatusOk() (*ModuleStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Module) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. -func (o *Module) SetStatus(v ModuleStatus) { - o.Status = &v -} - -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *Module) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Module) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *Module) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *Module) SetSerial(v string) { - o.Serial = &v -} - -// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Module) GetAssetTag() string { - if o == nil || IsNil(o.AssetTag.Get()) { - var ret string - return ret - } - return *o.AssetTag.Get() -} - -// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Module) GetAssetTagOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.AssetTag.Get(), o.AssetTag.IsSet() -} - -// HasAssetTag returns a boolean if a field has been set. -func (o *Module) HasAssetTag() bool { - if o != nil && o.AssetTag.IsSet() { - return true - } - - return false -} - -// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. -func (o *Module) SetAssetTag(v string) { - o.AssetTag.Set(&v) -} - -// SetAssetTagNil sets the value for AssetTag to be an explicit nil -func (o *Module) SetAssetTagNil() { - o.AssetTag.Set(nil) -} - -// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -func (o *Module) UnsetAssetTag() { - o.AssetTag.Unset() -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *Module) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Module) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *Module) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *Module) SetDescription(v string) { - o.Description = &v -} - -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Module) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Module) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Module) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Module) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Module) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Module) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Module) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Module) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Module) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Module) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Module) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Module) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Module) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Module) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Module) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Module) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Module) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Module) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o Module) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -536,34 +184,9 @@ func (o Module) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay - toSerialize["module_type"] = o.ModuleType - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } - if o.AssetTag.IsSet() { - toSerialize["asset_tag"] = o.AssetTag.Get() - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -579,13 +202,9 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "module_bay", - "module_type", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -617,20 +236,9 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module_bay") - delete(additionalProperties, "module_type") - delete(additionalProperties, "status") - delete(additionalProperties, "serial") - delete(additionalProperties, "asset_tag") - delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_bay.go b/model_module_bay.go index 8049e37db..3f883cc15 100644 --- a/model_module_bay.go +++ b/model_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,12 @@ var _ MappedNullable = &ModuleBay{} // ModuleBay Adds support for custom fields and tags. type ModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` - InstalledModule NullableBriefModule `json:"installed_module,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Name string `json:"name"` + InstalledModule NullableModule `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -47,11 +45,10 @@ type _ModuleBay ModuleBay // 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 NewModuleBay(id int32, url string, displayUrl string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { +func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { this := ModuleBay{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -116,30 +113,6 @@ func (o *ModuleBay) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ModuleBay) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ModuleBay) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ModuleBay) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ModuleBay) GetDisplay() string { if o == nil { @@ -165,9 +138,9 @@ func (o *ModuleBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ModuleBay) GetDevice() BriefDevice { +func (o *ModuleBay) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -176,7 +149,7 @@ func (o *ModuleBay) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool) { +func (o *ModuleBay) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -184,53 +157,10 @@ func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *ModuleBay) SetDevice(v BriefDevice) { +func (o *ModuleBay) SetDevice(v Device) { o.Device = v } -// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBay) GetModule() BriefModule { - if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule - return ret - } - return *o.Module.Get() -} - -// GetModuleOk returns a tuple with the Module field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBay) GetModuleOk() (*BriefModule, bool) { - if o == nil { - return nil, false - } - return o.Module.Get(), o.Module.IsSet() -} - -// HasModule returns a boolean if a field has been set. -func (o *ModuleBay) HasModule() bool { - if o != nil && o.Module.IsSet() { - return true - } - - return false -} - -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *ModuleBay) SetModule(v BriefModule) { - o.Module.Set(&v) -} - -// SetModuleNil sets the value for Module to be an explicit nil -func (o *ModuleBay) SetModuleNil() { - o.Module.Set(nil) -} - -// UnsetModule ensures that no value is present for Module, not even an explicit nil -func (o *ModuleBay) UnsetModule() { - o.Module.Unset() -} - // GetName returns the Name field value func (o *ModuleBay) GetName() string { if o == nil { @@ -256,9 +186,9 @@ func (o *ModuleBay) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBay) GetInstalledModule() BriefModule { +func (o *ModuleBay) GetInstalledModule() Module { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret BriefModule + var ret Module return ret } return *o.InstalledModule.Get() @@ -267,7 +197,7 @@ func (o *ModuleBay) GetInstalledModule() BriefModule { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool) { +func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -283,8 +213,8 @@ func (o *ModuleBay) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableBriefModule and assigns it to the InstalledModule field. -func (o *ModuleBay) SetInstalledModule(v BriefModule) { +// SetInstalledModule gets a reference to the given NullableModule and assigns it to the InstalledModule field. +func (o *ModuleBay) SetInstalledModule(v Module) { o.InstalledModule.Set(&v) } @@ -522,12 +452,8 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device - if o.Module.IsSet() { - toSerialize["module"] = o.Module.Get() - } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -564,7 +490,6 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -601,10 +526,8 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") - delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_request.go b/model_module_bay_request.go index 0c97cde78..7fb1ba15c 100644 --- a/model_module_bay_request.go +++ b/model_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,9 @@ var _ MappedNullable = &ModuleBayRequest{} // ModuleBayRequest Adds support for custom fields and tags. type ModuleBayRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` - InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` + Device DeviceRequest `json:"device"` + Name string `json:"name"` + InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -40,7 +39,7 @@ type _ModuleBayRequest ModuleBayRequest // 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 NewModuleBayRequest(device BriefDeviceRequest, name string) *ModuleBayRequest { +func NewModuleBayRequest(device DeviceRequest, name string) *ModuleBayRequest { this := ModuleBayRequest{} this.Device = device this.Name = name @@ -56,9 +55,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest { } // GetDevice returns the Device field value -func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest { +func (o *ModuleBayRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -67,7 +66,7 @@ func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -75,53 +74,10 @@ func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest) { +func (o *ModuleBayRequest) SetDevice(v DeviceRequest) { o.Device = v } -// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayRequest) GetModule() BriefModuleRequest { - if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest - return ret - } - return *o.Module.Get() -} - -// GetModuleOk returns a tuple with the Module field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.Module.Get(), o.Module.IsSet() -} - -// HasModule returns a boolean if a field has been set. -func (o *ModuleBayRequest) HasModule() bool { - if o != nil && o.Module.IsSet() { - return true - } - - return false -} - -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *ModuleBayRequest) SetModule(v BriefModuleRequest) { - o.Module.Set(&v) -} - -// SetModuleNil sets the value for Module to be an explicit nil -func (o *ModuleBayRequest) SetModuleNil() { - o.Module.Set(nil) -} - -// UnsetModule ensures that no value is present for Module, not even an explicit nil -func (o *ModuleBayRequest) UnsetModule() { - o.Module.Unset() -} - // GetName returns the Name field value func (o *ModuleBayRequest) GetName() string { if o == nil { @@ -147,9 +103,9 @@ func (o *ModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest { +func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.InstalledModule.Get() @@ -158,7 +114,7 @@ func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { +func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -174,8 +130,8 @@ func (o *ModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. -func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { +// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. +func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest) { o.InstalledModule.Set(&v) } @@ -360,9 +316,6 @@ func (o ModuleBayRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device - if o.Module.IsSet() { - toSerialize["module"] = o.Module.Get() - } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -427,7 +380,6 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") - delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_template.go b/model_module_bay_template.go index 77e427e5f..114c363b6 100644 --- a/model_module_bay_template.go +++ b/model_module_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,10 @@ var _ MappedNullable = &ModuleBayTemplate{} // ModuleBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType DeviceType `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -44,11 +43,12 @@ type _ModuleBayTemplate ModuleBayTemplate // 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 NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { +func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { this := ModuleBayTemplate{} this.Id = id this.Url = url this.Display = display + this.DeviceType = deviceType this.Name = name this.Created = created this.LastUpdated = lastUpdated @@ -135,90 +135,28 @@ func (o *ModuleBayTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType - return ret - } - return *o.DeviceType.Get() -} - -// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +// GetDeviceType returns the DeviceType field value +func (o *ModuleBayTemplate) GetDeviceType() DeviceType { if o == nil { - return nil, false - } - return o.DeviceType.Get(), o.DeviceType.IsSet() -} - -// HasDeviceType returns a boolean if a field has been set. -func (o *ModuleBayTemplate) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { - return true - } - - return false -} - -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *ModuleBayTemplate) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *ModuleBayTemplate) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayTemplate) GetModuleType() BriefModuleType { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType + var ret DeviceType return ret } - return *o.ModuleType.Get() + + return o.DeviceType } -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { +func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } - return o.ModuleType.Get(), o.ModuleType.IsSet() -} - -// HasModuleType returns a boolean if a field has been set. -func (o *ModuleBayTemplate) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType) { - o.ModuleType.Set(&v) + return &o.DeviceType, true } -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *ModuleBayTemplate) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *ModuleBayTemplate) UnsetModuleType() { - o.ModuleType.Unset() +// SetDeviceType sets field value +func (o *ModuleBayTemplate) SetDeviceType(v DeviceType) { + o.DeviceType = v } // GetName returns the Name field value @@ -406,12 +344,7 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() - } + toSerialize["device_type"] = o.DeviceType toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -440,6 +373,7 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", + "device_type", "name", "created", "last_updated", @@ -476,7 +410,6 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "url") delete(additionalProperties, "display") delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go index 95e2f850f..6e407360e 100644 --- a/model_module_bay_template_request.go +++ b/model_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,7 @@ var _ MappedNullable = &ModuleBayTemplateRequest{} // ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType DeviceTypeRequest `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -38,8 +37,9 @@ type _ModuleBayTemplateRequest ModuleBayTemplateRequest // 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 NewModuleBayTemplateRequest(name string) *ModuleBayTemplateRequest { +func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string) *ModuleBayTemplateRequest { this := ModuleBayTemplateRequest{} + this.DeviceType = deviceType this.Name = name return &this } @@ -52,90 +52,28 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest - return ret - } - return *o.DeviceType.Get() -} - -// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +// GetDeviceType returns the DeviceType field value +func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil { - return nil, false - } - return o.DeviceType.Get(), o.DeviceType.IsSet() -} - -// HasDeviceType returns a boolean if a field has been set. -func (o *ModuleBayTemplateRequest) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { - return true - } - - return false -} - -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *ModuleBayTemplateRequest) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *ModuleBayTemplateRequest) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret DeviceTypeRequest return ret } - return *o.ModuleType.Get() + + return o.DeviceType } -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } - return o.ModuleType.Get(), o.ModuleType.IsSet() + return &o.DeviceType, true } -// HasModuleType returns a boolean if a field has been set. -func (o *ModuleBayTemplateRequest) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { - o.ModuleType.Set(&v) -} - -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *ModuleBayTemplateRequest) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *ModuleBayTemplateRequest) UnsetModuleType() { - o.ModuleType.Unset() +// SetDeviceType sets field value +func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { + o.DeviceType = v } // GetName returns the Name field value @@ -268,12 +206,7 @@ func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() - } + toSerialize["device_type"] = o.DeviceType toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -297,6 +230,7 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "device_type", "name", } @@ -328,7 +262,6 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_request.go b/model_module_request.go index 83adb0595..0cdc3bf19 100644 --- a/model_module_request.go +++ b/model_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,8 @@ var _ MappedNullable = &ModuleRequest{} // ModuleRequest Adds support for custom fields and tags. type ModuleRequest struct { - Device BriefDeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` - ModuleType BriefModuleTypeRequest `json:"module_type"` - Status *ModuleStatusValue `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` - // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Device DeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` AdditionalProperties map[string]interface{} } @@ -40,11 +31,10 @@ type _ModuleRequest ModuleRequest // 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 NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest) *ModuleRequest { +func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest) *ModuleRequest { this := ModuleRequest{} this.Device = device this.ModuleBay = moduleBay - this.ModuleType = moduleType return &this } @@ -57,9 +47,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest { } // GetDevice returns the Device field value -func (o *ModuleRequest) GetDevice() BriefDeviceRequest { +func (o *ModuleRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -68,7 +58,7 @@ func (o *ModuleRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -76,7 +66,7 @@ func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleRequest) SetDevice(v BriefDeviceRequest) { +func (o *ModuleRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -104,265 +94,6 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) { o.ModuleBay = v } -// GetModuleType returns the ModuleType field value -func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest { - if o == nil { - var ret BriefModuleTypeRequest - return ret - } - - return o.ModuleType -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { - if o == nil { - return nil, false - } - return &o.ModuleType, true -} - -// SetModuleType sets field value -func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest) { - o.ModuleType = v -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *ModuleRequest) GetStatus() ModuleStatusValue { - if o == nil || IsNil(o.Status) { - var ret ModuleStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *ModuleRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. -func (o *ModuleRequest) SetStatus(v ModuleStatusValue) { - o.Status = &v -} - -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *ModuleRequest) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *ModuleRequest) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *ModuleRequest) SetSerial(v string) { - o.Serial = &v -} - -// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleRequest) GetAssetTag() string { - if o == nil || IsNil(o.AssetTag.Get()) { - var ret string - return ret - } - return *o.AssetTag.Get() -} - -// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleRequest) GetAssetTagOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.AssetTag.Get(), o.AssetTag.IsSet() -} - -// HasAssetTag returns a boolean if a field has been set. -func (o *ModuleRequest) HasAssetTag() bool { - if o != nil && o.AssetTag.IsSet() { - return true - } - - return false -} - -// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. -func (o *ModuleRequest) SetAssetTag(v string) { - o.AssetTag.Set(&v) -} - -// SetAssetTagNil sets the value for AssetTag to be an explicit nil -func (o *ModuleRequest) SetAssetTagNil() { - o.AssetTag.Set(nil) -} - -// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -func (o *ModuleRequest) UnsetAssetTag() { - o.AssetTag.Unset() -} - -// GetDescription returns the Description field value if set, zero value otherwise. -func (o *ModuleRequest) GetDescription() string { - if o == nil || IsNil(o.Description) { - var ret string - return ret - } - return *o.Description -} - -// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetDescriptionOk() (*string, bool) { - if o == nil || IsNil(o.Description) { - return nil, false - } - return o.Description, true -} - -// HasDescription returns a boolean if a field has been set. -func (o *ModuleRequest) HasDescription() bool { - if o != nil && !IsNil(o.Description) { - return true - } - - return false -} - -// SetDescription gets a reference to the given string and assigns it to the Description field. -func (o *ModuleRequest) SetDescription(v string) { - o.Description = &v -} - -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ModuleRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ModuleRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ModuleRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ModuleRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ModuleRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ModuleRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ModuleRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ModuleRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ModuleRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ModuleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -375,28 +106,6 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay - toSerialize["module_type"] = o.ModuleType - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } - if o.AssetTag.IsSet() { - toSerialize["asset_tag"] = o.AssetTag.Get() - } - if !IsNil(o.Description) { - toSerialize["description"] = o.Description - } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -412,7 +121,6 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "device", "module_bay", - "module_type", } allProperties := make(map[string]interface{}) @@ -444,14 +152,6 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") delete(additionalProperties, "module_bay") - delete(additionalProperties, "module_type") - delete(additionalProperties, "status") - delete(additionalProperties, "serial") - delete(additionalProperties, "asset_tag") - delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_status.go b/model_module_status.go index c4c5444ab..a40e902cf 100644 --- a/model_module_status.go +++ b/model_module_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &ModuleStatus{} // ModuleStatus struct for ModuleStatus type ModuleStatus struct { - Value *ModuleStatusValue `json:"value,omitempty"` - Label *ModuleStatusLabel `json:"label,omitempty"` + Value *ModuleStatusValue `json:"value,omitempty"` + Label *ModuleStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ModuleStatus) SetLabel(v ModuleStatusLabel) { } func (o ModuleStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableModuleStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_module_status_label.go b/model_module_status_label.go index 763a2d414..dfc2bb71d 100644 --- a/model_module_status_label.go +++ b/model_module_status_label.go @@ -20,11 +20,11 @@ type ModuleStatusLabel string // List of Module_status_label const ( - MODULESTATUSLABEL_OFFLINE ModuleStatusLabel = "Offline" - MODULESTATUSLABEL_ACTIVE ModuleStatusLabel = "Active" - MODULESTATUSLABEL_PLANNED ModuleStatusLabel = "Planned" - MODULESTATUSLABEL_STAGED ModuleStatusLabel = "Staged" - MODULESTATUSLABEL_FAILED ModuleStatusLabel = "Failed" + MODULESTATUSLABEL_OFFLINE ModuleStatusLabel = "Offline" + MODULESTATUSLABEL_ACTIVE ModuleStatusLabel = "Active" + MODULESTATUSLABEL_PLANNED ModuleStatusLabel = "Planned" + MODULESTATUSLABEL_STAGED ModuleStatusLabel = "Staged" + MODULESTATUSLABEL_FAILED ModuleStatusLabel = "Failed" MODULESTATUSLABEL_DECOMMISSIONING ModuleStatusLabel = "Decommissioning" ) @@ -116,4 +116,3 @@ func (v *NullableModuleStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_module_status_value.go b/model_module_status_value.go index 67f6871c2..f06946d30 100644 --- a/model_module_status_value.go +++ b/model_module_status_value.go @@ -20,11 +20,11 @@ type ModuleStatusValue string // List of Module_status_value const ( - MODULESTATUSVALUE_OFFLINE ModuleStatusValue = "offline" - MODULESTATUSVALUE_ACTIVE ModuleStatusValue = "active" - MODULESTATUSVALUE_PLANNED ModuleStatusValue = "planned" - MODULESTATUSVALUE_STAGED ModuleStatusValue = "staged" - MODULESTATUSVALUE_FAILED ModuleStatusValue = "failed" + MODULESTATUSVALUE_OFFLINE ModuleStatusValue = "offline" + MODULESTATUSVALUE_ACTIVE ModuleStatusValue = "active" + MODULESTATUSVALUE_PLANNED ModuleStatusValue = "planned" + MODULESTATUSVALUE_STAGED ModuleStatusValue = "staged" + MODULESTATUSVALUE_FAILED ModuleStatusValue = "failed" MODULESTATUSVALUE_DECOMMISSIONING ModuleStatusValue = "decommissioning" ) @@ -116,4 +116,3 @@ func (v *NullableModuleStatusValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_module_type.go b/model_module_type.go index b4b1c1274..4b14e7719 100644 --- a/model_module_type.go +++ b/model_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the ModuleType type satisfies the MappedNullable interface at compile time @@ -21,23 +20,12 @@ var _ MappedNullable = &ModuleType{} // ModuleType Adds support for custom fields and tags. type ModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Manufacturer BriefManufacturer `json:"manufacturer"` - Model string `json:"model"` - // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Airflow NullableModuleTypeAirflow `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Manufacturer Manufacturer `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,16 +35,13 @@ type _ModuleType ModuleType // 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 NewModuleType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime) *ModuleType { +func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string) *ModuleType { this := ModuleType{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -116,30 +101,6 @@ func (o *ModuleType) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ModuleType) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ModuleType) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ModuleType) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ModuleType) GetDisplay() string { if o == nil { @@ -165,9 +126,9 @@ func (o *ModuleType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleType) GetManufacturer() BriefManufacturer { +func (o *ModuleType) GetManufacturer() Manufacturer { if o == nil { - var ret BriefManufacturer + var ret Manufacturer return ret } @@ -176,7 +137,7 @@ func (o *ModuleType) GetManufacturer() BriefManufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { +func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { if o == nil { return nil, false } @@ -184,7 +145,7 @@ func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { } // SetManufacturer sets field value -func (o *ModuleType) SetManufacturer(v BriefManufacturer) { +func (o *ModuleType) SetManufacturer(v Manufacturer) { o.Manufacturer = v } @@ -212,167 +173,6 @@ func (o *ModuleType) SetModel(v string) { o.Model = v } -// GetPartNumber returns the PartNumber field value if set, zero value otherwise. -func (o *ModuleType) GetPartNumber() string { - if o == nil || IsNil(o.PartNumber) { - var ret string - return ret - } - return *o.PartNumber -} - -// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleType) GetPartNumberOk() (*string, bool) { - if o == nil || IsNil(o.PartNumber) { - return nil, false - } - return o.PartNumber, true -} - -// HasPartNumber returns a boolean if a field has been set. -func (o *ModuleType) HasPartNumber() bool { - if o != nil && !IsNil(o.PartNumber) { - return true - } - - return false -} - -// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. -func (o *ModuleType) SetPartNumber(v string) { - o.PartNumber = &v -} - -// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleType) GetAirflow() ModuleTypeAirflow { - if o == nil || IsNil(o.Airflow.Get()) { - var ret ModuleTypeAirflow - return ret - } - return *o.Airflow.Get() -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool) { - if o == nil { - return nil, false - } - return o.Airflow.Get(), o.Airflow.IsSet() -} - -// HasAirflow returns a boolean if a field has been set. -func (o *ModuleType) HasAirflow() bool { - if o != nil && o.Airflow.IsSet() { - return true - } - - return false -} - -// SetAirflow gets a reference to the given NullableModuleTypeAirflow and assigns it to the Airflow field. -func (o *ModuleType) SetAirflow(v ModuleTypeAirflow) { - o.Airflow.Set(&v) -} - -// SetAirflowNil sets the value for Airflow to be an explicit nil -func (o *ModuleType) SetAirflowNil() { - o.Airflow.Set(nil) -} - -// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -func (o *ModuleType) UnsetAirflow() { - o.Airflow.Unset() -} - -// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleType) GetWeight() float64 { - if o == nil || IsNil(o.Weight.Get()) { - var ret float64 - return ret - } - return *o.Weight.Get() -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleType) GetWeightOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Weight.Get(), o.Weight.IsSet() -} - -// HasWeight returns a boolean if a field has been set. -func (o *ModuleType) HasWeight() bool { - if o != nil && o.Weight.IsSet() { - return true - } - - return false -} - -// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. -func (o *ModuleType) SetWeight(v float64) { - o.Weight.Set(&v) -} - -// SetWeightNil sets the value for Weight to be an explicit nil -func (o *ModuleType) SetWeightNil() { - o.Weight.Set(nil) -} - -// UnsetWeight ensures that no value is present for Weight, not even an explicit nil -func (o *ModuleType) UnsetWeight() { - o.Weight.Unset() -} - -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit { - if o == nil || IsNil(o.WeightUnit.Get()) { - var ret DeviceTypeWeightUnit - return ret - } - return *o.WeightUnit.Get() -} - -// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { - if o == nil { - return nil, false - } - return o.WeightUnit.Get(), o.WeightUnit.IsSet() -} - -// HasWeightUnit returns a boolean if a field has been set. -func (o *ModuleType) HasWeightUnit() bool { - if o != nil && o.WeightUnit.IsSet() { - return true - } - - return false -} - -// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. -func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit) { - o.WeightUnit.Set(&v) -} - -// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil -func (o *ModuleType) SetWeightUnitNil() { - o.WeightUnit.Set(nil) -} - -// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -func (o *ModuleType) UnsetWeightUnit() { - o.WeightUnit.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -405,154 +205,6 @@ func (o *ModuleType) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ModuleType) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleType) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ModuleType) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ModuleType) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ModuleType) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleType) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ModuleType) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *ModuleType) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ModuleType) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleType) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ModuleType) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ModuleType) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ModuleType) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleType) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *ModuleType) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ModuleType) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *ModuleType) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o ModuleType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -565,36 +217,12 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model - if !IsNil(o.PartNumber) { - toSerialize["part_number"] = o.PartNumber - } - if o.Airflow.IsSet() { - toSerialize["airflow"] = o.Airflow.Get() - } - if o.Weight.IsSet() { - toSerialize["weight"] = o.Weight.Get() - } - if o.WeightUnit.IsSet() { - toSerialize["weight_unit"] = o.WeightUnit.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -610,12 +238,9 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "manufacturer", "model", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -647,20 +272,10 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") - delete(additionalProperties, "part_number") - delete(additionalProperties, "airflow") - delete(additionalProperties, "weight") - delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_airflow.go b/model_module_type_airflow.go index 5b34c3831..593877481 100644 --- a/model_module_type_airflow.go +++ b/model_module_type_airflow.go @@ -19,8 +19,8 @@ var _ MappedNullable = &ModuleTypeAirflow{} // ModuleTypeAirflow struct for ModuleTypeAirflow type ModuleTypeAirflow struct { - Value *ModuleTypeAirflowValue `json:"value,omitempty"` - Label *ModuleTypeAirflowLabel `json:"label,omitempty"` + Value *ModuleTypeAirflowValue `json:"value,omitempty"` + Label *ModuleTypeAirflowLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *ModuleTypeAirflow) SetLabel(v ModuleTypeAirflowLabel) { } func (o ModuleTypeAirflow) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableModuleTypeAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_module_type_airflow_label.go b/model_module_type_airflow_label.go index 2b73517e5..471944e16 100644 --- a/model_module_type_airflow_label.go +++ b/model_module_type_airflow_label.go @@ -24,8 +24,8 @@ const ( MODULETYPEAIRFLOWLABEL_REAR_TO_FRONT ModuleTypeAirflowLabel = "Rear to front" MODULETYPEAIRFLOWLABEL_LEFT_TO_RIGHT ModuleTypeAirflowLabel = "Left to right" MODULETYPEAIRFLOWLABEL_RIGHT_TO_LEFT ModuleTypeAirflowLabel = "Right to left" - MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear" - MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive" + MODULETYPEAIRFLOWLABEL_SIDE_TO_REAR ModuleTypeAirflowLabel = "Side to rear" + MODULETYPEAIRFLOWLABEL_PASSIVE ModuleTypeAirflowLabel = "Passive" ) // All allowed values of ModuleTypeAirflowLabel enum @@ -116,4 +116,3 @@ func (v *NullableModuleTypeAirflowLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_module_type_airflow_value.go b/model_module_type_airflow_value.go index dabf7c39e..9a137a826 100644 --- a/model_module_type_airflow_value.go +++ b/model_module_type_airflow_value.go @@ -24,9 +24,9 @@ const ( MODULETYPEAIRFLOWVALUE_REAR_TO_FRONT ModuleTypeAirflowValue = "rear-to-front" MODULETYPEAIRFLOWVALUE_LEFT_TO_RIGHT ModuleTypeAirflowValue = "left-to-right" MODULETYPEAIRFLOWVALUE_RIGHT_TO_LEFT ModuleTypeAirflowValue = "right-to-left" - MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear" - MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive" - MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = "" + MODULETYPEAIRFLOWVALUE_SIDE_TO_REAR ModuleTypeAirflowValue = "side-to-rear" + MODULETYPEAIRFLOWVALUE_PASSIVE ModuleTypeAirflowValue = "passive" + MODULETYPEAIRFLOWVALUE_EMPTY ModuleTypeAirflowValue = "" ) // All allowed values of ModuleTypeAirflowValue enum @@ -118,4 +118,3 @@ func (v *NullableModuleTypeAirflowValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_module_type_request.go b/model_module_type_request.go index 689035e21..e247e6402 100644 --- a/model_module_type_request.go +++ b/model_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,9 @@ var _ MappedNullable = &ModuleTypeRequest{} // ModuleTypeRequest Adds support for custom fields and tags. type ModuleTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Manufacturer ManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +32,7 @@ type _ModuleTypeRequest ModuleTypeRequest // 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 NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *ModuleTypeRequest { +func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string) *ModuleTypeRequest { this := ModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -56,9 +48,9 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { +func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { if o == nil { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } @@ -67,7 +59,7 @@ func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -75,7 +67,7 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool } // SetManufacturer sets field value -func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { +func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer = v } @@ -103,167 +95,6 @@ func (o *ModuleTypeRequest) SetModel(v string) { o.Model = v } -// GetPartNumber returns the PartNumber field value if set, zero value otherwise. -func (o *ModuleTypeRequest) GetPartNumber() string { - if o == nil || IsNil(o.PartNumber) { - var ret string - return ret - } - return *o.PartNumber -} - -// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool) { - if o == nil || IsNil(o.PartNumber) { - return nil, false - } - return o.PartNumber, true -} - -// HasPartNumber returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasPartNumber() bool { - if o != nil && !IsNil(o.PartNumber) { - return true - } - - return false -} - -// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. -func (o *ModuleTypeRequest) SetPartNumber(v string) { - o.PartNumber = &v -} - -// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { - if o == nil || IsNil(o.Airflow.Get()) { - var ret ModuleTypeRequestAirflow - return ret - } - return *o.Airflow.Get() -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { - if o == nil { - return nil, false - } - return o.Airflow.Get(), o.Airflow.IsSet() -} - -// HasAirflow returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasAirflow() bool { - if o != nil && o.Airflow.IsSet() { - return true - } - - return false -} - -// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. -func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { - o.Airflow.Set(&v) -} - -// SetAirflowNil sets the value for Airflow to be an explicit nil -func (o *ModuleTypeRequest) SetAirflowNil() { - o.Airflow.Set(nil) -} - -// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil -func (o *ModuleTypeRequest) UnsetAirflow() { - o.Airflow.Unset() -} - -// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleTypeRequest) GetWeight() float64 { - if o == nil || IsNil(o.Weight.Get()) { - var ret float64 - return ret - } - return *o.Weight.Get() -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Weight.Get(), o.Weight.IsSet() -} - -// HasWeight returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasWeight() bool { - if o != nil && o.Weight.IsSet() { - return true - } - - return false -} - -// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. -func (o *ModuleTypeRequest) SetWeight(v float64) { - o.Weight.Set(&v) -} - -// SetWeightNil sets the value for Weight to be an explicit nil -func (o *ModuleTypeRequest) SetWeightNil() { - o.Weight.Set(nil) -} - -// UnsetWeight ensures that no value is present for Weight, not even an explicit nil -func (o *ModuleTypeRequest) UnsetWeight() { - o.Weight.Unset() -} - -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit.Get()) { - var ret DeviceTypeRequestWeightUnit - return ret - } - return *o.WeightUnit.Get() -} - -// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { - if o == nil { - return nil, false - } - return o.WeightUnit.Get(), o.WeightUnit.IsSet() -} - -// HasWeightUnit returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasWeightUnit() bool { - if o != nil && o.WeightUnit.IsSet() { - return true - } - - return false -} - -// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { - o.WeightUnit.Set(&v) -} - -// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil -func (o *ModuleTypeRequest) SetWeightUnitNil() { - o.WeightUnit.Set(nil) -} - -// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -func (o *ModuleTypeRequest) UnsetWeightUnit() { - o.WeightUnit.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -296,102 +127,6 @@ func (o *ModuleTypeRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ModuleTypeRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ModuleTypeRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ModuleTypeRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ModuleTypeRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -404,30 +139,9 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model - if !IsNil(o.PartNumber) { - toSerialize["part_number"] = o.PartNumber - } - if o.Airflow.IsSet() { - toSerialize["airflow"] = o.Airflow.Get() - } - if o.Weight.IsSet() { - toSerialize["weight"] = o.Weight.Get() - } - if o.WeightUnit.IsSet() { - toSerialize["weight_unit"] = o.WeightUnit.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -474,14 +188,7 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") - delete(additionalProperties, "part_number") - delete(additionalProperties, "airflow") - delete(additionalProperties, "weight") - delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_request_airflow.go b/model_module_type_request_airflow.go index c84edb978..a9747a89a 100644 --- a/model_module_type_request_airflow.go +++ b/model_module_type_request_airflow.go @@ -24,9 +24,9 @@ const ( MODULETYPEREQUESTAIRFLOW_REAR_TO_FRONT ModuleTypeRequestAirflow = "rear-to-front" MODULETYPEREQUESTAIRFLOW_LEFT_TO_RIGHT ModuleTypeRequestAirflow = "left-to-right" MODULETYPEREQUESTAIRFLOW_RIGHT_TO_LEFT ModuleTypeRequestAirflow = "right-to-left" - MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear" - MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive" - MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = "" + MODULETYPEREQUESTAIRFLOW_SIDE_TO_REAR ModuleTypeRequestAirflow = "side-to-rear" + MODULETYPEREQUESTAIRFLOW_PASSIVE ModuleTypeRequestAirflow = "passive" + MODULETYPEREQUESTAIRFLOW_EMPTY ModuleTypeRequestAirflow = "" ) // All allowed values of ModuleTypeRequestAirflow enum @@ -118,4 +118,3 @@ func (v *NullableModuleTypeRequestAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go index 5a6924671..88eb0f283 100644 --- a/model_nested_contact_group.go +++ b/model_nested_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedContactGroup{} type NestedContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -36,11 +35,10 @@ 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, displayUrl string, display string, name string, slug string, depth int32) *NestedContactGroup { +func NewNestedContactGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedContactGroup { this := NestedContactGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -104,30 +102,6 @@ func (o *NestedContactGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedContactGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedContactGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedContactGroup) GetDisplay() string { if o == nil { @@ -236,7 +210,6 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -256,7 +229,6 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -292,7 +264,6 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go index 727aba59f..f275f723d 100644 --- a/model_nested_contact_group_request.go +++ b/model_nested_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_device.go b/model_nested_device.go index b0e254185..b37d25f5e 100644 --- a/model_nested_device.go +++ b/model_nested_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedDevice{} type NestedDevice struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} @@ -34,11 +33,10 @@ type _NestedDevice NestedDevice // 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 NewNestedDevice(id int32, url string, displayUrl string, display string) *NestedDevice { +func NewNestedDevice(id int32, url string, display string) *NestedDevice { this := NestedDevice{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display return &this } @@ -99,30 +97,6 @@ func (o *NestedDevice) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedDevice) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedDevice) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedDevice) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedDevice) GetDisplay() string { if o == nil { @@ -202,7 +176,6 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -222,7 +195,6 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", } @@ -255,7 +227,6 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_device_request.go b/model_nested_device_request.go index 648e65cef..3d4692d86 100644 --- a/model_nested_device_request.go +++ b/model_nested_device_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_group.go b/model_nested_group.go index 016fa9b41..434d1679e 100644 --- a/model_nested_group.go +++ b/model_nested_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedGroup{} type NestedGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` AdditionalProperties map[string]interface{} @@ -34,11 +33,10 @@ type _NestedGroup NestedGroup // 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 NewNestedGroup(id int32, url string, displayUrl string, display string, name string) *NestedGroup { +func NewNestedGroup(id int32, url string, display string, name string) *NestedGroup { this := NestedGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -100,30 +98,6 @@ func (o *NestedGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedGroup) GetDisplay() string { if o == nil { @@ -184,7 +158,6 @@ func (o NestedGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -202,7 +175,6 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", } @@ -236,7 +208,6 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_interface.go b/model_nested_interface.go index 23b32113a..fd6230adf 100644 --- a/model_nested_interface.go +++ b/model_nested_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedInterface{} type NestedInterface struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Device NestedDevice `json:"device"` Name string `json:"name"` @@ -37,11 +36,10 @@ type _NestedInterface NestedInterface // 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 NewNestedInterface(id int32, url string, displayUrl string, display string, device NestedDevice, name string, occupied bool) *NestedInterface { +func NewNestedInterface(id int32, url string, display string, device NestedDevice, name string, occupied bool) *NestedInterface { this := NestedInterface{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -105,30 +103,6 @@ func (o *NestedInterface) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedInterface) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedInterface) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedInterface) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedInterface) GetDisplay() string { if o == nil { @@ -280,7 +254,6 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -303,7 +276,6 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -339,7 +311,6 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go index 530a6c2da..ddb108ba7 100644 --- a/model_nested_interface_request.go +++ b/model_nested_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go index 6b9017737..af9322a66 100644 --- a/model_nested_interface_template.go +++ b/model_nested_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go index 88221e71e..db741a1b6 100644 --- a/model_nested_interface_template_request.go +++ b/model_nested_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go index d45e27d03..111eec2fd 100644 --- a/model_nested_ip_address.go +++ b/model_nested_ip_address.go @@ -20,12 +20,12 @@ var _ MappedNullable = &NestedIPAddress{} // NestedIPAddress Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedIPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Family int32 `json:"family"` - Address string `json:"address"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Family int32 `json:"family"` + Address string `json:"address"` AdditionalProperties map[string]interface{} } @@ -199,7 +199,7 @@ func (o *NestedIPAddress) SetAddress(v string) { } func (o NestedIPAddress) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -240,10 +240,10 @@ func (o *NestedIPAddress) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -309,5 +309,3 @@ func (v *NullableNestedIPAddress) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go index 7322f6d4c..04c6e1e0d 100644 --- a/model_nested_ip_address_request.go +++ b/model_nested_ip_address_request.go @@ -20,7 +20,7 @@ var _ MappedNullable = &NestedIPAddressRequest{} // NestedIPAddressRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedIPAddressRequest struct { - Address string `json:"address"` + Address string `json:"address"` AdditionalProperties map[string]interface{} } @@ -69,7 +69,7 @@ func (o *NestedIPAddressRequest) SetAddress(v string) { } func (o NestedIPAddressRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -100,10 +100,10 @@ func (o *NestedIPAddressRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -164,5 +164,3 @@ func (v *NullableNestedIPAddressRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_nested_location.go b/model_nested_location.go index f30d022da..7969efa5d 100644 --- a/model_nested_location.go +++ b/model_nested_location.go @@ -20,13 +20,13 @@ var _ MappedNullable = &NestedLocation{} // NestedLocation Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedLocation struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -225,7 +225,7 @@ func (o *NestedLocation) SetDepth(v int32) { } func (o NestedLocation) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -268,10 +268,10 @@ func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -338,5 +338,3 @@ func (v *NullableNestedLocation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_nested_location_request.go b/model_nested_location_request.go index 4560215b7..467e1f8a8 100644 --- a/model_nested_location_request.go +++ b/model_nested_location_request.go @@ -20,8 +20,8 @@ var _ MappedNullable = &NestedLocationRequest{} // NestedLocationRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` + Name string `json:"name"` + Slug string `json:"slug"` AdditionalProperties map[string]interface{} } @@ -95,7 +95,7 @@ func (o *NestedLocationRequest) SetSlug(v string) { } func (o NestedLocationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -128,10 +128,10 @@ func (o *NestedLocationRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -193,5 +193,3 @@ func (v *NullableNestedLocationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go index b149afac9..c217493c7 100644 --- a/model_nested_module_bay.go +++ b/model_nested_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &NestedModuleBay{} // NestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -34,11 +34,10 @@ type _NestedModuleBay NestedModuleBay // 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 NewNestedModuleBay(id int32, url string, displayUrl string, display string, name string) *NestedModuleBay { +func NewNestedModuleBay(id int32, url string, display string, name string) *NestedModuleBay { this := NestedModuleBay{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -100,52 +99,71 @@ func (o *NestedModuleBay) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedModuleBay) GetDisplayUrl() string { +// GetDisplay returns the Display field value +func (o *NestedModuleBay) GetDisplay() string { if o == nil { var ret string return ret } - return o.DisplayUrl + return o.Display } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayOk returns a tuple with the Display field value // and a boolean to check if the value has been set. -func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool) { +func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } - return &o.DisplayUrl, true + return &o.Display, true } -// SetDisplayUrl sets field value -func (o *NestedModuleBay) SetDisplayUrl(v string) { - o.DisplayUrl = v +// SetDisplay sets field value +func (o *NestedModuleBay) SetDisplay(v string) { + o.Display = v } -// GetDisplay returns the Display field value -func (o *NestedModuleBay) GetDisplay() string { - if o == nil { - var ret string +// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule { + if o == nil || IsNil(o.InstalledModule.Get()) { + var ret ModuleBayNestedModule return ret } - - return o.Display + return *o.InstalledModule.Get() } -// GetDisplayOk returns a tuple with the Display field value +// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool) { if o == nil { return nil, false } - return &o.Display, true + return o.InstalledModule.Get(), o.InstalledModule.IsSet() } -// SetDisplay sets field value -func (o *NestedModuleBay) SetDisplay(v string) { - o.Display = v +// HasInstalledModule returns a boolean if a field has been set. +func (o *NestedModuleBay) HasInstalledModule() bool { + if o != nil && o.InstalledModule.IsSet() { + return true + } + + return false +} + +// SetInstalledModule gets a reference to the given NullableModuleBayNestedModule and assigns it to the InstalledModule field. +func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule) { + o.InstalledModule.Set(&v) +} + +// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +func (o *NestedModuleBay) SetInstalledModuleNil() { + o.InstalledModule.Set(nil) +} + +// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil +func (o *NestedModuleBay) UnsetInstalledModule() { + o.InstalledModule.Unset() } // GetName returns the Name field value @@ -184,8 +202,10 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display + if o.InstalledModule.IsSet() { + toSerialize["installed_module"] = o.InstalledModule.Get() + } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -202,7 +222,6 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", } @@ -236,8 +255,8 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go index cc0d07f53..cda6e8c0c 100644 --- a/model_nested_module_bay_request.go +++ b/model_nested_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,8 @@ var _ MappedNullable = &NestedModuleBayRequest{} // NestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBayRequest struct { - Name string `json:"name"` + InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -44,6 +45,49 @@ func NewNestedModuleBayRequestWithDefaults() *NestedModuleBayRequest { return &this } +// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest { + if o == nil || IsNil(o.InstalledModule.Get()) { + var ret ModuleBayNestedModuleRequest + return ret + } + return *o.InstalledModule.Get() +} + +// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.InstalledModule.Get(), o.InstalledModule.IsSet() +} + +// HasInstalledModule returns a boolean if a field has been set. +func (o *NestedModuleBayRequest) HasInstalledModule() bool { + if o != nil && o.InstalledModule.IsSet() { + return true + } + + return false +} + +// SetInstalledModule gets a reference to the given NullableModuleBayNestedModuleRequest and assigns it to the InstalledModule field. +func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) { + o.InstalledModule.Set(&v) +} + +// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +func (o *NestedModuleBayRequest) SetInstalledModuleNil() { + o.InstalledModule.Set(nil) +} + +// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil +func (o *NestedModuleBayRequest) UnsetInstalledModule() { + o.InstalledModule.Unset() +} + // GetName returns the Name field value func (o *NestedModuleBayRequest) GetName() string { if o == nil { @@ -78,6 +122,9 @@ func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.InstalledModule.IsSet() { + toSerialize["installed_module"] = o.InstalledModule.Get() + } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -122,6 +169,7 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go index 01fb64499..b13aaaeaf 100644 --- a/model_nested_provider_account.go +++ b/model_nested_provider_account.go @@ -20,12 +20,12 @@ var _ MappedNullable = &NestedProviderAccount{} // NestedProviderAccount Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedProviderAccount struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` AdditionalProperties map[string]interface{} } @@ -206,7 +206,7 @@ func (o *NestedProviderAccount) SetAccount(v string) { } func (o NestedProviderAccount) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -248,10 +248,10 @@ func (o *NestedProviderAccount) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -317,5 +317,3 @@ func (v *NullableNestedProviderAccount) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_nested_region.go b/model_nested_region.go index 4d1fa217b..4282f5dd6 100644 --- a/model_nested_region.go +++ b/model_nested_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedRegion{} type NestedRegion struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -36,11 +35,10 @@ 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, displayUrl string, display string, name string, slug string, depth int32) *NestedRegion { +func NewNestedRegion(id int32, url string, display string, name string, slug string, depth int32) *NestedRegion { this := NestedRegion{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -104,30 +102,6 @@ func (o *NestedRegion) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedRegion) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedRegion) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedRegion) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedRegion) GetDisplay() string { if o == nil { @@ -236,7 +210,6 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -256,7 +229,6 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -292,7 +264,6 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_region_request.go b/model_nested_region_request.go index 6a1fe4279..945e3f650 100644 --- a/model_nested_region_request.go +++ b/model_nested_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_site_group.go b/model_nested_site_group.go index 5d45772a0..1b288b168 100644 --- a/model_nested_site_group.go +++ b/model_nested_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedSiteGroup{} type NestedSiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -36,11 +35,10 @@ 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, displayUrl string, display string, name string, slug string, depth int32) *NestedSiteGroup { +func NewNestedSiteGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedSiteGroup { this := NestedSiteGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -104,30 +102,6 @@ func (o *NestedSiteGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedSiteGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedSiteGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedSiteGroup) GetDisplay() string { if o == nil { @@ -236,7 +210,6 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -256,7 +229,6 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -292,7 +264,6 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go index eeaf37cc0..e0fbe632a 100644 --- a/model_nested_site_group_request.go +++ b/model_nested_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tag.go b/model_nested_tag.go index 93b75f808..f03a0a999 100644 --- a/model_nested_tag.go +++ b/model_nested_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedTag{} type NestedTag struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -36,11 +35,10 @@ type _NestedTag NestedTag // 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 NewNestedTag(id int32, url string, displayUrl string, display string, name string, slug string) *NestedTag { +func NewNestedTag(id int32, url string, display string, name string, slug string) *NestedTag { this := NestedTag{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -103,30 +101,6 @@ func (o *NestedTag) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedTag) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedTag) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedTag) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedTag) GetDisplay() string { if o == nil { @@ -243,7 +217,6 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -265,7 +238,6 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -300,7 +272,6 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go index c10ab5ab6..f0d7d61b4 100644 --- a/model_nested_tag_request.go +++ b/model_nested_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go index 5814c2c37..a157ee354 100644 --- a/model_nested_tenant_group.go +++ b/model_nested_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedTenantGroup{} type NestedTenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -36,11 +35,10 @@ 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, displayUrl string, display string, name string, slug string, depth int32) *NestedTenantGroup { +func NewNestedTenantGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedTenantGroup { this := NestedTenantGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -104,30 +102,6 @@ func (o *NestedTenantGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedTenantGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedTenantGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedTenantGroup) GetDisplay() string { if o == nil { @@ -236,7 +210,6 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -256,7 +229,6 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -292,7 +264,6 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go index a16ab558b..c5ecbf890 100644 --- a/model_nested_tenant_group_request.go +++ b/model_nested_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_user.go b/model_nested_user.go index e7396b1a3..470de1aff 100644 --- a/model_nested_user.go +++ b/model_nested_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,9 @@ var _ MappedNullable = &NestedUser{} // NestedUser Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedUser struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Username string `json:"username"` AdditionalProperties map[string]interface{} @@ -35,11 +34,10 @@ type _NestedUser NestedUser // 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 NewNestedUser(id int32, url string, displayUrl string, display string, username string) *NestedUser { +func NewNestedUser(id int32, url string, display string, username string) *NestedUser { this := NestedUser{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Username = username return &this @@ -101,30 +99,6 @@ func (o *NestedUser) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedUser) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedUser) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedUser) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedUser) GetDisplay() string { if o == nil { @@ -185,7 +159,6 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["username"] = o.Username @@ -203,7 +176,6 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "username", } @@ -237,7 +209,6 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go index 917467ab5..e19da59db 100644 --- a/model_nested_virtual_machine.go +++ b/model_nested_virtual_machine.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedVirtualMachine{} type NestedVirtualMachine struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` AdditionalProperties map[string]interface{} @@ -34,11 +33,10 @@ type _NestedVirtualMachine NestedVirtualMachine // 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 NewNestedVirtualMachine(id int32, url string, displayUrl string, display string, name string) *NestedVirtualMachine { +func NewNestedVirtualMachine(id int32, url string, display string, name string) *NestedVirtualMachine { this := NestedVirtualMachine{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name return &this @@ -100,30 +98,6 @@ func (o *NestedVirtualMachine) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedVirtualMachine) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedVirtualMachine) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedVirtualMachine) GetDisplay() string { if o == nil { @@ -184,7 +158,6 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -202,7 +175,6 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", } @@ -236,7 +208,6 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go index 3a71f40e2..7fb0d2b03 100644 --- a/model_nested_virtual_machine_request.go +++ b/model_nested_virtual_machine_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go index 5d4c419e0..be1622431 100644 --- a/model_nested_vm_interface.go +++ b/model_nested_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedVMInterface{} type NestedVMInterface struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` VirtualMachine NestedVirtualMachine `json:"virtual_machine"` Name string `json:"name"` @@ -35,11 +34,10 @@ type _NestedVMInterface NestedVMInterface // 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 NewNestedVMInterface(id int32, url string, displayUrl string, display string, virtualMachine NestedVirtualMachine, name string) *NestedVMInterface { +func NewNestedVMInterface(id int32, url string, display string, virtualMachine NestedVirtualMachine, name string) *NestedVMInterface { this := NestedVMInterface{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -102,30 +100,6 @@ func (o *NestedVMInterface) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedVMInterface) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedVMInterface) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedVMInterface) GetDisplay() string { if o == nil { @@ -210,7 +184,6 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -229,7 +202,6 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "virtual_machine", "name", @@ -264,7 +236,6 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go index 5c31e855b..ee8ecb2a3 100644 --- a/model_nested_vm_interface_request.go +++ b/model_nested_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go index e1ff2fbc1..bb782742d 100644 --- a/model_nested_wireless_lan_group.go +++ b/model_nested_wireless_lan_group.go @@ -20,13 +20,13 @@ var _ MappedNullable = &NestedWirelessLANGroup{} // NestedWirelessLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedWirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -225,7 +225,7 @@ func (o *NestedWirelessLANGroup) SetDepth(v int32) { } func (o NestedWirelessLANGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -268,10 +268,10 @@ func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -338,5 +338,3 @@ func (v *NullableNestedWirelessLANGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go index 304b68ce8..8e8b204a1 100644 --- a/model_nested_wireless_lan_group_request.go +++ b/model_nested_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go index 1bb94fc28..bc6328e76 100644 --- a/model_nested_wireless_link.go +++ b/model_nested_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &NestedWirelessLink{} type NestedWirelessLink struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} @@ -34,11 +33,10 @@ type _NestedWirelessLink NestedWirelessLink // 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 NewNestedWirelessLink(id int32, url string, displayUrl string, display string) *NestedWirelessLink { +func NewNestedWirelessLink(id int32, url string, display string) *NestedWirelessLink { this := NestedWirelessLink{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display return &this } @@ -99,30 +97,6 @@ func (o *NestedWirelessLink) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *NestedWirelessLink) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *NestedWirelessLink) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *NestedWirelessLink) GetDisplay() string { if o == nil { @@ -191,7 +165,6 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if !IsNil(o.Ssid) { toSerialize["ssid"] = o.Ssid @@ -211,7 +184,6 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", } @@ -244,7 +216,6 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") o.AdditionalProperties = additionalProperties diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go index 97c39ec10..49e586028 100644 --- a/model_nested_wireless_link_request.go +++ b/model_nested_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_notification.go b/model_notification.go index d85778ba1..c2abe13bc 100644 --- a/model_notification.go +++ b/model_notification.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the Notification type satisfies the MappedNullable interface at compile time @@ -21,16 +21,16 @@ var _ MappedNullable = &Notification{} // Notification Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Notification struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object interface{} `json:"object"` - User BriefUser `json:"user"` - Created time.Time `json:"created"` - Read NullableTime `json:"read,omitempty"` - EventType Event `json:"event_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` AdditionalProperties map[string]interface{} } @@ -288,6 +288,7 @@ func (o *Notification) HasRead() bool { func (o *Notification) SetRead(v time.Time) { o.Read.Set(&v) } + // SetReadNil sets the value for Read to be an explicit nil func (o *Notification) SetReadNil() { o.Read.Set(nil) @@ -323,7 +324,7 @@ func (o *Notification) SetEventType(v Event) { } func (o Notification) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -375,10 +376,10 @@ func (o *Notification) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -448,5 +449,3 @@ func (v *NullableNotification) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_notification_group.go b/model_notification_group.go index d94f0d6fb..9d6f702c0 100644 --- a/model_notification_group.go +++ b/model_notification_group.go @@ -20,14 +20,14 @@ var _ MappedNullable = &NotificationGroup{} // NotificationGroup Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type NotificationGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DisplayUrl string `json:"display_url"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Groups []Group `json:"groups,omitempty"` - Users []User `json:"users,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DisplayUrl string `json:"display_url"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []Group `json:"groups,omitempty"` + Users []User `json:"users,omitempty"` AdditionalProperties map[string]interface{} } @@ -272,7 +272,7 @@ func (o *NotificationGroup) SetUsers(v []User) { } func (o NotificationGroup) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -320,10 +320,10 @@ func (o *NotificationGroup) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -391,5 +391,3 @@ func (v *NullableNotificationGroup) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_notification_group_request.go b/model_notification_group_request.go index 698bc3ead..8a04b26b3 100644 --- a/model_notification_group_request.go +++ b/model_notification_group_request.go @@ -20,10 +20,10 @@ var _ MappedNullable = &NotificationGroupRequest{} // NotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type NotificationGroupRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` AdditionalProperties map[string]interface{} } @@ -168,7 +168,7 @@ func (o *NotificationGroupRequest) SetUsers(v []int32) { } func (o NotificationGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -208,10 +208,10 @@ func (o *NotificationGroupRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -275,5 +275,3 @@ func (v *NullableNotificationGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_notification_request.go b/model_notification_request.go index 8e78f5a3d..7a7f80a2e 100644 --- a/model_notification_request.go +++ b/model_notification_request.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the NotificationRequest type satisfies the MappedNullable interface at compile time @@ -21,11 +21,11 @@ var _ MappedNullable = &NotificationRequest{} // NotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type NotificationRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - User BriefUserRequest `json:"user"` - Read NullableTime `json:"read,omitempty"` - EventType Event `json:"event_type"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` + Read NullableTime `json:"read,omitempty"` + EventType Event `json:"event_type"` AdditionalProperties map[string]interface{} } @@ -156,6 +156,7 @@ func (o *NotificationRequest) HasRead() bool { func (o *NotificationRequest) SetRead(v time.Time) { o.Read.Set(&v) } + // SetReadNil sets the value for Read to be an explicit nil func (o *NotificationRequest) SetReadNil() { o.Read.Set(nil) @@ -191,7 +192,7 @@ func (o *NotificationRequest) SetEventType(v Event) { } func (o NotificationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -231,10 +232,10 @@ func (o *NotificationRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -299,5 +300,3 @@ func (v *NullableNotificationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_object_change.go b/model_object_change.go index f82fb00cd..24b5c95cc 100644 --- a/model_object_change.go +++ b/model_object_change.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,10 +23,9 @@ var _ MappedNullable = &ObjectChange{} type ObjectChange struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Time time.Time `json:"time"` - User BriefUser `json:"user"` + User User `json:"user"` UserName string `json:"user_name"` RequestId string `json:"request_id"` Action ObjectChangeAction `json:"action"` @@ -44,11 +43,10 @@ type _ObjectChange ObjectChange // 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 NewObjectChange(id int32, url string, displayUrl string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { +func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { this := ObjectChange{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Time = time this.User = user @@ -119,30 +117,6 @@ func (o *ObjectChange) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ObjectChange) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ObjectChange) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ObjectChange) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ObjectChange) GetDisplay() string { if o == nil { @@ -192,9 +166,9 @@ func (o *ObjectChange) SetTime(v time.Time) { } // GetUser returns the User field value -func (o *ObjectChange) GetUser() BriefUser { +func (o *ObjectChange) GetUser() User { if o == nil { - var ret BriefUser + var ret User return ret } @@ -203,7 +177,7 @@ func (o *ObjectChange) GetUser() BriefUser { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *ObjectChange) GetUserOk() (*BriefUser, bool) { +func (o *ObjectChange) GetUserOk() (*User, bool) { if o == nil { return nil, false } @@ -211,7 +185,7 @@ func (o *ObjectChange) GetUserOk() (*BriefUser, bool) { } // SetUser sets field value -func (o *ObjectChange) SetUser(v BriefUser) { +func (o *ObjectChange) SetUser(v User) { o.User = v } @@ -425,7 +399,6 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["time"] = o.Time toSerialize["user"] = o.User @@ -458,7 +431,6 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "time", "user", @@ -501,7 +473,6 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "time") delete(additionalProperties, "user") diff --git a/model_object_change_action.go b/model_object_change_action.go index 6c35d4b59..4e2bcdbc3 100644 --- a/model_object_change_action.go +++ b/model_object_change_action.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go index 1a327631d..ee7329967 100644 --- a/model_object_change_action_label.go +++ b/model_object_change_action_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go index 5a8cadc06..59e9cd339 100644 --- a/model_object_change_action_value.go +++ b/model_object_change_action_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_permission.go b/model_object_permission.go index 1f592ea9a..7835c2b8d 100644 --- a/model_object_permission.go +++ b/model_object_permission.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,6 @@ var _ MappedNullable = &ObjectPermission{} type ObjectPermission struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -43,11 +42,10 @@ type _ObjectPermission ObjectPermission // 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 NewObjectPermission(id int32, url string, displayUrl string, display string, name string, objectTypes []string, actions []string) *ObjectPermission { +func NewObjectPermission(id int32, url string, display string, name string, objectTypes []string, actions []string) *ObjectPermission { this := ObjectPermission{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.ObjectTypes = objectTypes @@ -111,30 +109,6 @@ func (o *ObjectPermission) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ObjectPermission) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ObjectPermission) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ObjectPermission) GetDisplay() string { if o == nil { @@ -404,7 +378,6 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -439,7 +412,6 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "object_types", @@ -475,7 +447,6 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_object_permission_request.go b/model_object_permission_request.go index eb669ac88..05e9aa4e2 100644 --- a/model_object_permission_request.go +++ b/model_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_type.go b/model_object_type.go index 655aa37d2..f08d354c9 100644 --- a/model_object_type.go +++ b/model_object_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go index c6c83d1a7..81e2b8603 100644 --- a/model_paginated_aggregate_list.go +++ b/model_paginated_aggregate_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go index 7009e4608..183c0353f 100644 --- a/model_paginated_asn_list.go +++ b/model_paginated_asn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go index 1ee76f53b..d96366e06 100644 --- a/model_paginated_asn_range_list.go +++ b/model_paginated_asn_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go index 170b3c3da..64a4425b2 100644 --- a/model_paginated_bookmark_list.go +++ b/model_paginated_bookmark_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go index 90859b01f..cc214c3b2 100644 --- a/model_paginated_cable_list.go +++ b/model_paginated_cable_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go index 29b017aa0..3a368c6b3 100644 --- a/model_paginated_cable_termination_list.go +++ b/model_paginated_cable_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_group_assignment_list.go b/model_paginated_circuit_group_assignment_list.go index 92230ccf7..d1dea9dd9 100644 --- a/model_paginated_circuit_group_assignment_list.go +++ b/model_paginated_circuit_group_assignment_list.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitGroupAssignmentList{} // PaginatedCircuitGroupAssignmentList struct for PaginatedCircuitGroupAssignmentList type PaginatedCircuitGroupAssignmentList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CircuitGroupAssignment `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroupAssignment `json:"results"` AdditionalProperties map[string]interface{} } @@ -104,6 +104,7 @@ func (o *PaginatedCircuitGroupAssignmentList) HasNext() bool { func (o *PaginatedCircuitGroupAssignmentList) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCircuitGroupAssignmentList) SetNextNil() { o.Next.Set(nil) @@ -146,6 +147,7 @@ func (o *PaginatedCircuitGroupAssignmentList) HasPrevious() bool { func (o *PaginatedCircuitGroupAssignmentList) SetPrevious(v string) { o.Previous.Set(&v) } + // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCircuitGroupAssignmentList) SetPreviousNil() { o.Previous.Set(nil) @@ -181,7 +183,7 @@ func (o *PaginatedCircuitGroupAssignmentList) SetResults(v []CircuitGroupAssignm } func (o PaginatedCircuitGroupAssignmentList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +222,10 @@ func (o *PaginatedCircuitGroupAssignmentList) UnmarshalJSON(data []byte) (err er err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -287,5 +289,3 @@ func (v *NullablePaginatedCircuitGroupAssignmentList) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_paginated_circuit_group_list.go b/model_paginated_circuit_group_list.go index ba6bbd1a3..06997e5d2 100644 --- a/model_paginated_circuit_group_list.go +++ b/model_paginated_circuit_group_list.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedCircuitGroupList{} // PaginatedCircuitGroupList struct for PaginatedCircuitGroupList type PaginatedCircuitGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []CircuitGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []CircuitGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -104,6 +104,7 @@ func (o *PaginatedCircuitGroupList) HasNext() bool { func (o *PaginatedCircuitGroupList) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedCircuitGroupList) SetNextNil() { o.Next.Set(nil) @@ -146,6 +147,7 @@ func (o *PaginatedCircuitGroupList) HasPrevious() bool { func (o *PaginatedCircuitGroupList) SetPrevious(v string) { o.Previous.Set(&v) } + // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedCircuitGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -181,7 +183,7 @@ func (o *PaginatedCircuitGroupList) SetResults(v []CircuitGroup) { } func (o PaginatedCircuitGroupList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +222,10 @@ func (o *PaginatedCircuitGroupList) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -287,5 +289,3 @@ func (v *NullablePaginatedCircuitGroupList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go index 0c58ed2d3..d2a32fd8a 100644 --- a/model_paginated_circuit_list.go +++ b/model_paginated_circuit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go index b50164eb8..71138eab9 100644 --- a/model_paginated_circuit_termination_list.go +++ b/model_paginated_circuit_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go index 6d9f9c3e9..148793830 100644 --- a/model_paginated_circuit_type_list.go +++ b/model_paginated_circuit_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go index f5b36990d..2263a7dfb 100644 --- a/model_paginated_cluster_group_list.go +++ b/model_paginated_cluster_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go index 34228b3d7..da077b2c6 100644 --- a/model_paginated_cluster_list.go +++ b/model_paginated_cluster_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go index 2ec2342fb..7243ef83d 100644 --- a/model_paginated_cluster_type_list.go +++ b/model_paginated_cluster_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go index c71d1c37c..4db50833d 100644 --- a/model_paginated_config_context_list.go +++ b/model_paginated_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go index 09d4ffe97..36f8990ff 100644 --- a/model_paginated_config_template_list.go +++ b/model_paginated_config_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go index d28bfe8f0..7d8bb8367 100644 --- a/model_paginated_console_port_list.go +++ b/model_paginated_console_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go index 4a4c09428..b424049c9 100644 --- a/model_paginated_console_port_template_list.go +++ b/model_paginated_console_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go index 0ad87ae00..adfb94743 100644 --- a/model_paginated_console_server_port_list.go +++ b/model_paginated_console_server_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go index f3b9785c4..51278f9f8 100644 --- a/model_paginated_console_server_port_template_list.go +++ b/model_paginated_console_server_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go index 18bed698f..ea9e23946 100644 --- a/model_paginated_contact_assignment_list.go +++ b/model_paginated_contact_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go index 5258ff539..77bd6c70f 100644 --- a/model_paginated_contact_group_list.go +++ b/model_paginated_contact_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go index 3cf70ac19..72294eba7 100644 --- a/model_paginated_contact_list.go +++ b/model_paginated_contact_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go index 5c5873c96..fc486241c 100644 --- a/model_paginated_contact_role_list.go +++ b/model_paginated_contact_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go index b5d9571e2..48e25bb94 100644 --- a/model_paginated_custom_field_choice_set_list.go +++ b/model_paginated_custom_field_choice_set_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go index 293ca2b85..1f0c58fc0 100644 --- a/model_paginated_custom_field_list.go +++ b/model_paginated_custom_field_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go index 9ed4a2176..00815cc84 100644 --- a/model_paginated_custom_link_list.go +++ b/model_paginated_custom_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go index 86ff12069..260f045b2 100644 --- a/model_paginated_data_file_list.go +++ b/model_paginated_data_file_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go index 2cc611ddb..326295e6d 100644 --- a/model_paginated_data_source_list.go +++ b/model_paginated_data_source_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go index 107345ef7..c83d4e2c6 100644 --- a/model_paginated_device_bay_list.go +++ b/model_paginated_device_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go index 0c9c4eadb..45928db4d 100644 --- a/model_paginated_device_bay_template_list.go +++ b/model_paginated_device_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go index 61925657c..15f1f91b8 100644 --- a/model_paginated_device_role_list.go +++ b/model_paginated_device_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go index cd489ed9a..66636b1bf 100644 --- a/model_paginated_device_type_list.go +++ b/model_paginated_device_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go index 65b7e1127..654c3dff0 100644 --- a/model_paginated_device_with_config_context_list.go +++ b/model_paginated_device_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go index 7eba5e299..0d05d05cd 100644 --- a/model_paginated_event_rule_list.go +++ b/model_paginated_event_rule_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go index ebd3f4e61..d1160be70 100644 --- a/model_paginated_export_template_list.go +++ b/model_paginated_export_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go index a8c732e57..45ede081c 100644 --- a/model_paginated_fhrp_group_assignment_list.go +++ b/model_paginated_fhrp_group_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go index 0f846f23e..a0faea759 100644 --- a/model_paginated_fhrp_group_list.go +++ b/model_paginated_fhrp_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go index f63523553..4e6f4d89f 100644 --- a/model_paginated_front_port_list.go +++ b/model_paginated_front_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go index 8ac3ee81b..66bfe434b 100644 --- a/model_paginated_front_port_template_list.go +++ b/model_paginated_front_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go index e9b21094f..4c9d72781 100644 --- a/model_paginated_group_list.go +++ b/model_paginated_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go index 653b7c0c3..f49bbcfd2 100644 --- a/model_paginated_ike_policy_list.go +++ b/model_paginated_ike_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go index 5b662299c..7a9cb122b 100644 --- a/model_paginated_ike_proposal_list.go +++ b/model_paginated_ike_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go index f11189e58..0dcc7260c 100644 --- a/model_paginated_image_attachment_list.go +++ b/model_paginated_image_attachment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go index e50226c19..9ea763c86 100644 --- a/model_paginated_interface_list.go +++ b/model_paginated_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go index 1ae3a254e..c7f17dff3 100644 --- a/model_paginated_interface_template_list.go +++ b/model_paginated_interface_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go index 84c5220e6..8eae06c5d 100644 --- a/model_paginated_inventory_item_list.go +++ b/model_paginated_inventory_item_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go index b9bd492c3..7a3dfa86a 100644 --- a/model_paginated_inventory_item_role_list.go +++ b/model_paginated_inventory_item_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go index 0232fa0b9..8e1ebbaad 100644 --- a/model_paginated_inventory_item_template_list.go +++ b/model_paginated_inventory_item_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go index 6d63f492c..71c624ba5 100644 --- a/model_paginated_ip_address_list.go +++ b/model_paginated_ip_address_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go index b193d7bbf..64b6c2ca5 100644 --- a/model_paginated_ip_range_list.go +++ b/model_paginated_ip_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go index 5e2227e4a..3904a4021 100644 --- a/model_paginated_ip_sec_policy_list.go +++ b/model_paginated_ip_sec_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go index 0fd4a0272..13e5dc8cc 100644 --- a/model_paginated_ip_sec_profile_list.go +++ b/model_paginated_ip_sec_profile_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go index f313018ff..562d884cf 100644 --- a/model_paginated_ip_sec_proposal_list.go +++ b/model_paginated_ip_sec_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go index 26a4d5715..9c5266b90 100644 --- a/model_paginated_job_list.go +++ b/model_paginated_job_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go index 7139b196e..39deffe63 100644 --- a/model_paginated_journal_entry_list.go +++ b/model_paginated_journal_entry_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go index 64e0ed7cd..130fb6318 100644 --- a/model_paginated_l2_vpn_list.go +++ b/model_paginated_l2_vpn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go index 9661701e5..6fdc179ae 100644 --- a/model_paginated_l2_vpn_termination_list.go +++ b/model_paginated_l2_vpn_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go index f809c4a09..303ddb6f1 100644 --- a/model_paginated_location_list.go +++ b/model_paginated_location_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go index de01bdd8a..1642d70e3 100644 --- a/model_paginated_manufacturer_list.go +++ b/model_paginated_manufacturer_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go index cca78ae53..70cca7b2d 100644 --- a/model_paginated_module_bay_list.go +++ b/model_paginated_module_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go index 551d96ead..af3faa856 100644 --- a/model_paginated_module_bay_template_list.go +++ b/model_paginated_module_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go index af8c0f865..af55ae292 100644 --- a/model_paginated_module_list.go +++ b/model_paginated_module_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go index 073d01443..375f3b8f4 100644 --- a/model_paginated_module_type_list.go +++ b/model_paginated_module_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_notification_group_list.go b/model_paginated_notification_group_list.go index 6e4663544..7ecd87d9a 100644 --- a/model_paginated_notification_group_list.go +++ b/model_paginated_notification_group_list.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedNotificationGroupList{} // PaginatedNotificationGroupList struct for PaginatedNotificationGroupList type PaginatedNotificationGroupList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []NotificationGroup `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []NotificationGroup `json:"results"` AdditionalProperties map[string]interface{} } @@ -104,6 +104,7 @@ func (o *PaginatedNotificationGroupList) HasNext() bool { func (o *PaginatedNotificationGroupList) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedNotificationGroupList) SetNextNil() { o.Next.Set(nil) @@ -146,6 +147,7 @@ func (o *PaginatedNotificationGroupList) HasPrevious() bool { func (o *PaginatedNotificationGroupList) SetPrevious(v string) { o.Previous.Set(&v) } + // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedNotificationGroupList) SetPreviousNil() { o.Previous.Set(nil) @@ -181,7 +183,7 @@ func (o *PaginatedNotificationGroupList) SetResults(v []NotificationGroup) { } func (o PaginatedNotificationGroupList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +222,10 @@ func (o *PaginatedNotificationGroupList) UnmarshalJSON(data []byte) (err error) err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -287,5 +289,3 @@ func (v *NullablePaginatedNotificationGroupList) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_paginated_notification_list.go b/model_paginated_notification_list.go index 1959f1adc..1d663dee5 100644 --- a/model_paginated_notification_list.go +++ b/model_paginated_notification_list.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedNotificationList{} // PaginatedNotificationList struct for PaginatedNotificationList type PaginatedNotificationList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Notification `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Notification `json:"results"` AdditionalProperties map[string]interface{} } @@ -104,6 +104,7 @@ func (o *PaginatedNotificationList) HasNext() bool { func (o *PaginatedNotificationList) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedNotificationList) SetNextNil() { o.Next.Set(nil) @@ -146,6 +147,7 @@ func (o *PaginatedNotificationList) HasPrevious() bool { func (o *PaginatedNotificationList) SetPrevious(v string) { o.Previous.Set(&v) } + // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedNotificationList) SetPreviousNil() { o.Previous.Set(nil) @@ -181,7 +183,7 @@ func (o *PaginatedNotificationList) SetResults(v []Notification) { } func (o PaginatedNotificationList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +222,10 @@ func (o *PaginatedNotificationList) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -287,5 +289,3 @@ func (v *NullablePaginatedNotificationList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go index f330a9698..c4cd994e4 100644 --- a/model_paginated_object_change_list.go +++ b/model_paginated_object_change_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go index 11fc0ae28..2484322f1 100644 --- a/model_paginated_object_permission_list.go +++ b/model_paginated_object_permission_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go index 522eb2cf7..1a24ef887 100644 --- a/model_paginated_object_type_list.go +++ b/model_paginated_object_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go index 2a488d754..a5637f786 100644 --- a/model_paginated_platform_list.go +++ b/model_paginated_platform_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go index fb3d7670c..a90726d50 100644 --- a/model_paginated_power_feed_list.go +++ b/model_paginated_power_feed_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go index 26425b036..42cc10417 100644 --- a/model_paginated_power_outlet_list.go +++ b/model_paginated_power_outlet_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go index 614cc6f75..dabff54c7 100644 --- a/model_paginated_power_outlet_template_list.go +++ b/model_paginated_power_outlet_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go index 308656a76..a84ec9363 100644 --- a/model_paginated_power_panel_list.go +++ b/model_paginated_power_panel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go index 0ab6a3caf..a1b147420 100644 --- a/model_paginated_power_port_list.go +++ b/model_paginated_power_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go index d374c87c5..d8e709152 100644 --- a/model_paginated_power_port_template_list.go +++ b/model_paginated_power_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go index 7ddb16c83..07147ed99 100644 --- a/model_paginated_prefix_list.go +++ b/model_paginated_prefix_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go index 48d72dc61..c48585038 100644 --- a/model_paginated_provider_account_list.go +++ b/model_paginated_provider_account_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go index cfe0f17db..5b180ac54 100644 --- a/model_paginated_provider_list.go +++ b/model_paginated_provider_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go index c4859849b..b97c267f7 100644 --- a/model_paginated_provider_network_list.go +++ b/model_paginated_provider_network_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go index 86069f277..f7bdd10a2 100644 --- a/model_paginated_rack_list.go +++ b/model_paginated_rack_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go index b191e703a..20a799464 100644 --- a/model_paginated_rack_reservation_list.go +++ b/model_paginated_rack_reservation_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go index 602f02990..e15fd7e27 100644 --- a/model_paginated_rack_role_list.go +++ b/model_paginated_rack_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_type_list.go b/model_paginated_rack_type_list.go index a7408da09..9a16db96b 100644 --- a/model_paginated_rack_type_list.go +++ b/model_paginated_rack_type_list.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedRackTypeList{} // PaginatedRackTypeList struct for PaginatedRackTypeList type PaginatedRackTypeList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []RackType `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []RackType `json:"results"` AdditionalProperties map[string]interface{} } @@ -104,6 +104,7 @@ func (o *PaginatedRackTypeList) HasNext() bool { func (o *PaginatedRackTypeList) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedRackTypeList) SetNextNil() { o.Next.Set(nil) @@ -146,6 +147,7 @@ func (o *PaginatedRackTypeList) HasPrevious() bool { func (o *PaginatedRackTypeList) SetPrevious(v string) { o.Previous.Set(&v) } + // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedRackTypeList) SetPreviousNil() { o.Previous.Set(nil) @@ -181,7 +183,7 @@ func (o *PaginatedRackTypeList) SetResults(v []RackType) { } func (o PaginatedRackTypeList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +222,10 @@ func (o *PaginatedRackTypeList) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -287,5 +289,3 @@ func (v *NullablePaginatedRackTypeList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go index 3a55e32c7..6aaf2e9d7 100644 --- a/model_paginated_rack_unit_list.go +++ b/model_paginated_rack_unit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go index b97230354..c365786aa 100644 --- a/model_paginated_rear_port_list.go +++ b/model_paginated_rear_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go index d6f4cbb72..72c089dfb 100644 --- a/model_paginated_rear_port_template_list.go +++ b/model_paginated_rear_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go index de3e80481..3107d8007 100644 --- a/model_paginated_region_list.go +++ b/model_paginated_region_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go index 3eb1ba8f7..87507a75d 100644 --- a/model_paginated_rir_list.go +++ b/model_paginated_rir_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go index 60ae46699..c22ab93d1 100644 --- a/model_paginated_role_list.go +++ b/model_paginated_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go index 28a024800..b6f02c906 100644 --- a/model_paginated_route_target_list.go +++ b/model_paginated_route_target_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go index 1138351ad..485e61081 100644 --- a/model_paginated_saved_filter_list.go +++ b/model_paginated_saved_filter_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go index 7cb07d00d..72fec520f 100644 --- a/model_paginated_script_list.go +++ b/model_paginated_script_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go index f1d11e59a..08b5508be 100644 --- a/model_paginated_service_list.go +++ b/model_paginated_service_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go index 3dcd1650e..e86b9abb9 100644 --- a/model_paginated_service_template_list.go +++ b/model_paginated_service_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go index 40435aaed..ddcd397c9 100644 --- a/model_paginated_site_group_list.go +++ b/model_paginated_site_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go index 1934e59f5..a580aaeda 100644 --- a/model_paginated_site_list.go +++ b/model_paginated_site_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_subscription_list.go b/model_paginated_subscription_list.go index af56a666c..1402263c4 100644 --- a/model_paginated_subscription_list.go +++ b/model_paginated_subscription_list.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PaginatedSubscriptionList{} // PaginatedSubscriptionList struct for PaginatedSubscriptionList type PaginatedSubscriptionList struct { - Count int32 `json:"count"` - Next NullableString `json:"next,omitempty"` - Previous NullableString `json:"previous,omitempty"` - Results []Subscription `json:"results"` + Count int32 `json:"count"` + Next NullableString `json:"next,omitempty"` + Previous NullableString `json:"previous,omitempty"` + Results []Subscription `json:"results"` AdditionalProperties map[string]interface{} } @@ -104,6 +104,7 @@ func (o *PaginatedSubscriptionList) HasNext() bool { func (o *PaginatedSubscriptionList) SetNext(v string) { o.Next.Set(&v) } + // SetNextNil sets the value for Next to be an explicit nil func (o *PaginatedSubscriptionList) SetNextNil() { o.Next.Set(nil) @@ -146,6 +147,7 @@ func (o *PaginatedSubscriptionList) HasPrevious() bool { func (o *PaginatedSubscriptionList) SetPrevious(v string) { o.Previous.Set(&v) } + // SetPreviousNil sets the value for Previous to be an explicit nil func (o *PaginatedSubscriptionList) SetPreviousNil() { o.Previous.Set(nil) @@ -181,7 +183,7 @@ func (o *PaginatedSubscriptionList) SetResults(v []Subscription) { } func (o PaginatedSubscriptionList) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -220,10 +222,10 @@ func (o *PaginatedSubscriptionList) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -287,5 +289,3 @@ func (v *NullablePaginatedSubscriptionList) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go index 8396766c3..129bb69b6 100644 --- a/model_paginated_tag_list.go +++ b/model_paginated_tag_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go index 28f7a9479..5fcddc543 100644 --- a/model_paginated_tenant_group_list.go +++ b/model_paginated_tenant_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go index 47171d67d..812dfe386 100644 --- a/model_paginated_tenant_list.go +++ b/model_paginated_tenant_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go index ef4ffa5ad..9a4bd2ab9 100644 --- a/model_paginated_token_list.go +++ b/model_paginated_token_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go index 62e15f811..df1b972fb 100644 --- a/model_paginated_tunnel_group_list.go +++ b/model_paginated_tunnel_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go index f1573f68b..768bdd00e 100644 --- a/model_paginated_tunnel_list.go +++ b/model_paginated_tunnel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go index 0016390f7..f81a84ee0 100644 --- a/model_paginated_tunnel_termination_list.go +++ b/model_paginated_tunnel_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go index 60158a9c2..2d6a25913 100644 --- a/model_paginated_user_list.go +++ b/model_paginated_user_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go index 669c94054..6971b8d29 100644 --- a/model_paginated_virtual_chassis_list.go +++ b/model_paginated_virtual_chassis_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go index 43b8f5f94..3c5f35c09 100644 --- a/model_paginated_virtual_device_context_list.go +++ b/model_paginated_virtual_device_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go index 0fe3e2fbf..1a16c146d 100644 --- a/model_paginated_virtual_disk_list.go +++ b/model_paginated_virtual_disk_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go index c4999c512..a4ee1f21d 100644 --- a/model_paginated_virtual_machine_with_config_context_list.go +++ b/model_paginated_virtual_machine_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go index 7dbf5849b..cd2ac4951 100644 --- a/model_paginated_vlan_group_list.go +++ b/model_paginated_vlan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go index 902c4214f..28d8921ca 100644 --- a/model_paginated_vlan_list.go +++ b/model_paginated_vlan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go index 45a4ea1b7..c7d824fa8 100644 --- a/model_paginated_vm_interface_list.go +++ b/model_paginated_vm_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go index 71e41b578..95d2794d7 100644 --- a/model_paginated_vrf_list.go +++ b/model_paginated_vrf_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go index c251bc5c7..242804243 100644 --- a/model_paginated_webhook_list.go +++ b/model_paginated_webhook_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go index 9fd07a72c..c311ebbe7 100644 --- a/model_paginated_wireless_lan_group_list.go +++ b/model_paginated_wireless_lan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go index cc1d91270..cc98bc170 100644 --- a/model_paginated_wireless_lan_list.go +++ b/model_paginated_wireless_lan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go index c2968f550..6fb1c17df 100644 --- a/model_paginated_wireless_link_list.go +++ b/model_paginated_wireless_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status.go b/model_parent_child_status.go index ffabaf958..06c4e1b12 100644 --- a/model_parent_child_status.go +++ b/model_parent_child_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go index a081ba05c..cb1bfa703 100644 --- a/model_parent_child_status_1.go +++ b/model_parent_child_status_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_asn_range_request.go b/model_patched_asn_range_request.go index 5ddf4cf01..1b27ab643 100644 --- a/model_patched_asn_range_request.go +++ b/model_patched_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedASNRangeRequest{} // PatchedASNRangeRequest Adds support for custom fields and tags. type PatchedASNRangeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Rir *BriefRIRRequest `json:"rir,omitempty"` - Start *int64 `json:"start,omitempty"` - End *int64 `json:"end,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Rir *RIRRequest `json:"rir,omitempty"` + Start *int64 `json:"start,omitempty"` + End *int64 `json:"end,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,9 +115,9 @@ func (o *PatchedASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest { +func (o *PatchedASNRangeRequest) GetRir() RIRRequest { if o == nil || IsNil(o.Rir) { - var ret BriefRIRRequest + var ret RIRRequest return ret } return *o.Rir @@ -125,7 +125,7 @@ func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedASNRangeRequest) HasRir() bool { return false } -// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. -func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest) { +// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. +func (o *PatchedASNRangeRequest) SetRir(v RIRRequest) { o.Rir = &v } @@ -211,9 +211,9 @@ func (o *PatchedASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest { +func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -222,7 +222,7 @@ func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -238,8 +238,8 @@ func (o *PatchedASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_asn_request.go b/model_patched_asn_request.go index 82e9f5ff1..141b3513f 100644 --- a/model_patched_asn_request.go +++ b/model_patched_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedASNRequest{} // PatchedASNRequest Adds support for custom fields and tags. type PatchedASNRequest struct { // 16- or 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - Rir NullableBriefRIRRequest `json:"rir,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn *int64 `json:"asn,omitempty"` + Rir NullableRIRRequest `json:"rir,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetRir() BriefRIRRequest { +func (o *PatchedASNRequest) GetRir() RIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret BriefRIRRequest + var ret RIRRequest return ret } return *o.Rir.Get() @@ -93,7 +93,7 @@ func (o *PatchedASNRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. -func (o *PatchedASNRequest) SetRir(v BriefRIRRequest) { +// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRequest) SetRir(v RIRRequest) { o.Rir.Set(&v) } @@ -125,9 +125,9 @@ func (o *PatchedASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetTenant() BriefTenantRequest { +func (o *PatchedASNRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -136,7 +136,7 @@ func (o *PatchedASNRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *PatchedASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_bookmark_request.go b/model_patched_bookmark_request.go index f010f0f43..77f3b9cf4 100644 --- a/model_patched_bookmark_request.go +++ b/model_patched_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedBookmarkRequest{} // PatchedBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedBookmarkRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *BriefUserRequest `json:"user,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *UserRequest `json:"user,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,9 +109,9 @@ func (o *PatchedBookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest { +func (o *PatchedBookmarkRequest) GetUser() UserRequest { if o == nil || IsNil(o.User) { - var ret BriefUserRequest + var ret UserRequest return ret } return *o.User @@ -119,7 +119,7 @@ func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { +func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -135,8 +135,8 @@ func (o *PatchedBookmarkRequest) HasUser() bool { return false } -// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. -func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest) { +// SetUser gets a reference to the given UserRequest and assigns it to the User field. +func (o *PatchedBookmarkRequest) SetUser(v UserRequest) { o.User = &v } diff --git a/model_patched_cable_termination_request.go b/model_patched_cable_termination_request.go index d1b084862..f7377564b 100644 --- a/model_patched_cable_termination_request.go +++ b/model_patched_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_circuit_group_request.go b/model_patched_circuit_group_request.go index d30453c0b..10f887d38 100644 --- a/model_patched_circuit_group_request.go +++ b/model_patched_circuit_group_request.go @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedCircuitGroupRequest{} // PatchedCircuitGroupRequest Adds support for custom fields and tags. type PatchedCircuitGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -175,6 +175,7 @@ func (o *PatchedCircuitGroupRequest) HasTenant() bool { func (o *PatchedCircuitGroupRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } + // SetTenantNil sets the value for Tenant to be an explicit nil func (o *PatchedCircuitGroupRequest) SetTenantNil() { o.Tenant.Set(nil) @@ -250,7 +251,7 @@ func (o *PatchedCircuitGroupRequest) SetCustomFields(v map[string]interface{}) { } func (o PatchedCircuitGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -346,5 +347,3 @@ func (v *NullablePatchedCircuitGroupRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_circuit_termination_request.go b/model_patched_circuit_termination_request.go index a38ffcee8..5367122df 100644 --- a/model_patched_circuit_termination_request.go +++ b/model_patched_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCircuitTerminationRequest{} // PatchedCircuitTerminationRequest Adds support for custom fields and tags. type PatchedCircuitTerminationRequest struct { - Circuit *BriefCircuitRequest `json:"circuit,omitempty"` - TermSide *Termination1 `json:"term_side,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit *CircuitRequest `json:"circuit,omitempty"` + TermSide *Termination1 `json:"term_side,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -59,9 +59,9 @@ func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminatio } // GetCircuit returns the Circuit field value if set, zero value otherwise. -func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest { +func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { if o == nil || IsNil(o.Circuit) { - var ret BriefCircuitRequest + var ret CircuitRequest return ret } return *o.Circuit @@ -69,7 +69,7 @@ func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { if o == nil || IsNil(o.Circuit) { return nil, false } @@ -85,8 +85,8 @@ func (o *PatchedCircuitTerminationRequest) HasCircuit() bool { return false } -// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. -func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { +// SetCircuit gets a reference to the given CircuitRequest and assigns it to the Circuit field. +func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest) { o.Circuit = &v } @@ -123,9 +123,9 @@ func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest { +func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -134,7 +134,7 @@ func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -150,8 +150,8 @@ func (o *PatchedCircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -166,9 +166,9 @@ func (o *PatchedCircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { +func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret BriefProviderNetworkRequest + var ret ProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -177,7 +177,7 @@ func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNet // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go index 6ad1ce4db..cfb64cab6 100644 --- a/model_patched_circuit_type_request.go +++ b/model_patched_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go index d5c132088..10b1fdbac 100644 --- a/model_patched_cluster_group_request.go +++ b/model_patched_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go index f9e3c0441..bcb47d3cd 100644 --- a/model_patched_cluster_type_request.go +++ b/model_patched_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_config_context_request.go b/model_patched_config_context_request.go index a52336ac5..f8665cfe6 100644 --- a/model_patched_config_context_request.go +++ b/model_patched_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedConfigContextRequest{} // PatchedConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data,omitempty"` + Name *string `json:"name,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *DataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -605,9 +605,9 @@ func (o *PatchedConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest { +func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSourceRequest + var ret DataSourceRequest return ret } return *o.DataSource @@ -615,7 +615,7 @@ func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { +func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -631,8 +631,8 @@ func (o *PatchedConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { +// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_config_template_request.go b/model_patched_config_template_request.go index 49c775dd9..f4db50b41 100644 --- a/model_patched_config_template_request.go +++ b/model_patched_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,9 +24,9 @@ type PatchedConfigTemplateRequest struct { // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode *string `json:"template_code,omitempty"` - DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + TemplateCode *string `json:"template_code,omitempty"` + DataSource *DataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { +func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSourceRequest + var ret DataSourceRequest return ret } return *o.DataSource @@ -189,7 +189,7 @@ func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { +func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedConfigTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { +// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_contact_request.go b/model_patched_contact_request.go index ebf63f050..d5baee7b4 100644 --- a/model_patched_contact_request.go +++ b/model_patched_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedContactRequest{} // PatchedContactRequest Adds support for custom fields and tags. type PatchedContactRequest struct { - Group NullableBriefContactGroupRequest `json:"group,omitempty"` - Name *string `json:"name,omitempty"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableContactGroupRequest `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,9 +53,9 @@ func NewPatchedContactRequestWithDefaults() *PatchedContactRequest { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest { +func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefContactGroupRequest + var ret ContactGroupRequest return ret } return *o.Group.Get() @@ -64,7 +64,7 @@ func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { +func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool) { if o == nil { return nil, false } @@ -80,8 +80,8 @@ func (o *PatchedContactRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. -func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest) { +// SetGroup gets a reference to the given NullableContactGroupRequest and assigns it to the Group field. +func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go index f8c0a6226..70f768954 100644 --- a/model_patched_contact_role_request.go +++ b/model_patched_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go index 197bd4037..19833836f 100644 --- a/model_patched_custom_link_request.go +++ b/model_patched_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go index cfcf636b0..eeef729d4 100644 --- a/model_patched_dashboard_request.go +++ b/model_patched_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_device_bay_request.go b/model_patched_device_bay_request.go index fecd6adad..a9acadd79 100644 --- a/model_patched_device_bay_request.go +++ b/model_patched_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedDeviceBayRequest{} // PatchedDeviceBayRequest Adds support for custom fields and tags. type PatchedDeviceBayRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -60,7 +60,7 @@ func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedDeviceBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest) { o.Device = &v } @@ -178,9 +178,9 @@ func (o *PatchedDeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { +func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.InstalledDevice.Get() @@ -189,7 +189,7 @@ func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. -func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. +func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_patched_device_bay_template_request.go b/model_patched_device_bay_template_request.go index 7ca91202e..0bb253897 100644 --- a/model_patched_device_bay_template_request.go +++ b/model_patched_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedDeviceBayTemplateRequest{} // PatchedDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedDeviceBayTemplateRequest struct { - DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -48,9 +48,9 @@ func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType @@ -58,7 +58,7 @@ func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = &v } diff --git a/model_patched_device_role_request.go b/model_patched_device_role_request.go index 97a30aaa5..f2ef464b9 100644 --- a/model_patched_device_role_request.go +++ b/model_patched_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,11 @@ type PatchedDeviceRoleRequest struct { Slug *string `json:"slug,omitempty"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedDeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -190,7 +190,7 @@ func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateReques // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_export_template_request.go b/model_patched_export_template_request.go index aea76a28a..db7c07934 100644 --- a/model_patched_export_template_request.go +++ b/model_patched_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,8 @@ type PatchedExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *DataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -278,9 +278,9 @@ func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest { +func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret BriefDataSourceRequest + var ret DataSourceRequest return ret } return *o.DataSource @@ -288,7 +288,7 @@ func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { +func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -304,8 +304,8 @@ func (o *PatchedExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. -func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { +// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. +func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go index 10b0f3275..de95655e2 100644 --- a/model_patched_fhrp_group_assignment_request.go +++ b/model_patched_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{} // PatchedFHRPGroupAssignmentRequest Adds support for custom fields and tags. type PatchedFHRPGroupAssignmentRequest struct { - Group *BriefFHRPGroupRequest `json:"group,omitempty"` - InterfaceType *string `json:"interface_type,omitempty"` - InterfaceId *int64 `json:"interface_id,omitempty"` - Priority *int32 `json:"priority,omitempty"` + Group *FHRPGroupRequest `json:"group,omitempty"` + InterfaceType *string `json:"interface_type,omitempty"` + InterfaceId *int64 `json:"interface_id,omitempty"` + Priority *int32 `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,9 +46,9 @@ func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignm } // GetGroup returns the Group field value if set, zero value otherwise. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { if o == nil || IsNil(o.Group) { - var ret BriefFHRPGroupRequest + var ret FHRPGroupRequest return ret } return *o.Group @@ -56,7 +56,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { if o == nil || IsNil(o.Group) { return nil, false } @@ -72,8 +72,8 @@ func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given BriefFHRPGroupRequest and assigns it to the Group field. -func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { +// SetGroup gets a reference to the given FHRPGroupRequest and assigns it to the Group field. +func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { o.Group = &v } diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go index adec461c2..1d2151449 100644 --- a/model_patched_fhrp_group_request.go +++ b/model_patched_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{} // PatchedFHRPGroupRequest Adds support for custom fields and tags. type PatchedFHRPGroupRequest struct { - Name *string `json:"name,omitempty"` - Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"` - GroupId *int32 `json:"group_id,omitempty"` - AuthType *AuthenticationType `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *FHRPGroupProtocol `json:"protocol,omitempty"` + GroupId *int32 `json:"group_id,omitempty"` + AuthType *AuthenticationType `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,9 +83,9 @@ func (o *PatchedFHRPGroupRequest) SetName(v string) { } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { +func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { if o == nil || IsNil(o.Protocol) { - var ret BriefFHRPGroupProtocol + var ret FHRPGroupProtocol return ret } return *o.Protocol @@ -93,7 +93,7 @@ func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { +func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedFHRPGroupRequest) HasProtocol() bool { return false } -// SetProtocol gets a reference to the given BriefFHRPGroupProtocol and assigns it to the Protocol field. -func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { +// SetProtocol gets a reference to the given FHRPGroupProtocol and assigns it to the Protocol field. +func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { o.Protocol = &v } diff --git a/model_patched_group_request.go b/model_patched_group_request.go index 058fe7fea..5d42e7f8d 100644 --- a/model_patched_group_request.go +++ b/model_patched_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go index d36b4493f..0544fcc6f 100644 --- a/model_patched_image_attachment_request.go +++ b/model_patched_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,8 @@ type PatchedImageAttachmentRequest struct { ObjectId *int64 `json:"object_id,omitempty"` Name *string `json:"name,omitempty"` Image **os.File `json:"image,omitempty"` + ImageHeight *int32 `json:"image_height,omitempty"` + ImageWidth *int32 `json:"image_width,omitempty"` AdditionalProperties map[string]interface{} } @@ -174,6 +176,70 @@ func (o *PatchedImageAttachmentRequest) SetImage(v *os.File) { o.Image = &v } +// GetImageHeight returns the ImageHeight field value if set, zero value otherwise. +func (o *PatchedImageAttachmentRequest) GetImageHeight() int32 { + if o == nil || IsNil(o.ImageHeight) { + var ret int32 + return ret + } + return *o.ImageHeight +} + +// GetImageHeightOk returns a tuple with the ImageHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { + if o == nil || IsNil(o.ImageHeight) { + return nil, false + } + return o.ImageHeight, true +} + +// HasImageHeight returns a boolean if a field has been set. +func (o *PatchedImageAttachmentRequest) HasImageHeight() bool { + if o != nil && !IsNil(o.ImageHeight) { + return true + } + + return false +} + +// SetImageHeight gets a reference to the given int32 and assigns it to the ImageHeight field. +func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32) { + o.ImageHeight = &v +} + +// GetImageWidth returns the ImageWidth field value if set, zero value otherwise. +func (o *PatchedImageAttachmentRequest) GetImageWidth() int32 { + if o == nil || IsNil(o.ImageWidth) { + var ret int32 + return ret + } + return *o.ImageWidth +} + +// GetImageWidthOk returns a tuple with the ImageWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { + if o == nil || IsNil(o.ImageWidth) { + return nil, false + } + return o.ImageWidth, true +} + +// HasImageWidth returns a boolean if a field has been set. +func (o *PatchedImageAttachmentRequest) HasImageWidth() bool { + if o != nil && !IsNil(o.ImageWidth) { + return true + } + + return false +} + +// SetImageWidth gets a reference to the given int32 and assigns it to the ImageWidth field. +func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32) { + o.ImageWidth = &v +} + func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -196,6 +262,12 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Image) { toSerialize["image"] = o.Image } + if !IsNil(o.ImageHeight) { + toSerialize["image_height"] = o.ImageHeight + } + if !IsNil(o.ImageWidth) { + toSerialize["image_width"] = o.ImageWidth + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -222,6 +294,8 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") + delete(additionalProperties, "image_height") + delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_inventory_item_request.go b/model_patched_inventory_item_request.go index 3f91fbade..399e6ab59 100644 --- a/model_patched_inventory_item_request.go +++ b/model_patched_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedInventoryItemRequest{} // PatchedInventoryItemRequest Adds support for custom fields and tags. type PatchedInventoryItemRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,8 +87,8 @@ func (o *PatchedInventoryItemRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest) { o.Device = &v } @@ -200,9 +200,9 @@ func (o *PatchedInventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { +func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefInventoryItemRoleRequest + var ret InventoryItemRoleRequest return ret } return *o.Role.Get() @@ -211,7 +211,7 @@ func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -227,8 +227,8 @@ func (o *PatchedInventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest) { o.Role.Set(&v) } @@ -243,9 +243,9 @@ func (o *PatchedInventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest { +func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -254,7 +254,7 @@ func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -270,8 +270,8 @@ func (o *PatchedInventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go index 9e585d79f..f3abd36d0 100644 --- a/model_patched_inventory_item_role_request.go +++ b/model_patched_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go index 7fe7d8886..070c2170d 100644 --- a/model_patched_inventory_item_template_request.go +++ b/model_patched_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedInventoryItemTemplateRequest{} // PatchedInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedInventoryItemTemplateRequest struct { - DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -55,9 +55,9 @@ func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemT } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType @@ -65,7 +65,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeReq // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = &v } @@ -194,9 +194,9 @@ func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { +func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefInventoryItemRoleRequest + var ret InventoryItemRoleRequest return ret } return *o.Role.Get() @@ -205,7 +205,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRe // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -221,8 +221,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { o.Role.Set(&v) } @@ -237,9 +237,9 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -248,7 +248,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacture // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -264,8 +264,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go index 6329db2c8..73cb0720e 100644 --- a/model_patched_l2_vpn_termination_request.go +++ b/model_patched_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedL2VPNTerminationRequest{} // PatchedL2VPNTerminationRequest Adds support for custom fields and tags. type PatchedL2VPNTerminationRequest struct { - L2vpn *BriefL2VPNRequest `json:"l2vpn,omitempty"` + L2vpn *L2VPNRequest `json:"l2vpn,omitempty"` AssignedObjectType *string `json:"assigned_object_type,omitempty"` AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -47,9 +47,9 @@ func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationReq } // GetL2vpn returns the L2vpn field value if set, zero value otherwise. -func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { +func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { if o == nil || IsNil(o.L2vpn) { - var ret BriefL2VPNRequest + var ret L2VPNRequest return ret } return *o.L2vpn @@ -57,7 +57,7 @@ func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { +func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { if o == nil || IsNil(o.L2vpn) { return nil, false } @@ -73,8 +73,8 @@ func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool { return false } -// SetL2vpn gets a reference to the given BriefL2VPNRequest and assigns it to the L2vpn field. -func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { +// SetL2vpn gets a reference to the given L2VPNRequest and assigns it to the L2vpn field. +func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { o.L2vpn = &v } diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go index 735f0a2fb..7a325529e 100644 --- a/model_patched_manufacturer_request.go +++ b/model_patched_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_module_bay_request.go b/model_patched_module_bay_request.go index 7aba1f58b..8a6147e44 100644 --- a/model_patched_module_bay_request.go +++ b/model_patched_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,9 @@ var _ MappedNullable = &PatchedModuleBayRequest{} // PatchedModuleBayRequest Adds support for custom fields and tags. type PatchedModuleBayRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` - InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Name *string `json:"name,omitempty"` + InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -53,9 +52,9 @@ func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -63,7 +62,7 @@ func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,54 +78,11 @@ func (o *PatchedModuleBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest) { o.Device = &v } -// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest { - if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest - return ret - } - return *o.Module.Get() -} - -// GetModuleOk returns a tuple with the Module field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.Module.Get(), o.Module.IsSet() -} - -// HasModule returns a boolean if a field has been set. -func (o *PatchedModuleBayRequest) HasModule() bool { - if o != nil && o.Module.IsSet() { - return true - } - - return false -} - -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest) { - o.Module.Set(&v) -} - -// SetModuleNil sets the value for Module to be an explicit nil -func (o *PatchedModuleBayRequest) SetModuleNil() { - o.Module.Set(nil) -} - -// UnsetModule ensures that no value is present for Module, not even an explicit nil -func (o *PatchedModuleBayRequest) UnsetModule() { - o.Module.Unset() -} - // GetName returns the Name field value if set, zero value otherwise. func (o *PatchedModuleBayRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -160,9 +116,9 @@ func (o *PatchedModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest { +func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.InstalledModule.Get() @@ -171,7 +127,7 @@ func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -187,8 +143,8 @@ func (o *PatchedModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. -func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { +// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. +func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest) { o.InstalledModule.Set(&v) } @@ -375,9 +331,6 @@ func (o PatchedModuleBayRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Device) { toSerialize["device"] = o.Device } - if o.Module.IsSet() { - toSerialize["module"] = o.Module.Get() - } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -422,7 +375,6 @@ func (o *PatchedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") - delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_patched_module_bay_template_request.go b/model_patched_module_bay_template_request.go index 30f78eafc..baeb07d2c 100644 --- a/model_patched_module_bay_template_request.go +++ b/model_patched_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,7 @@ var _ MappedNullable = &PatchedModuleBayTemplateRequest{} // PatchedModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedModuleBayTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,90 +49,36 @@ func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateR return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise. +func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { + if o == nil || IsNil(o.DeviceType) { + var ret DeviceTypeRequest return ret } - return *o.DeviceType.Get() + return *o.DeviceType } // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { - if o == nil { +func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { + if o == nil || IsNil(o.DeviceType) { return nil, false } - return o.DeviceType.Get(), o.DeviceType.IsSet() + return o.DeviceType, true } // HasDeviceType returns a boolean if a field has been set. func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { + if o != nil && !IsNil(o.DeviceType) { return true } return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest - return ret - } - return *o.ModuleType.Get() -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.ModuleType.Get(), o.ModuleType.IsSet() -} - -// HasModuleType returns a boolean if a field has been set. -func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { - o.ModuleType.Set(&v) -} - -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *PatchedModuleBayTemplateRequest) UnsetModuleType() { - o.ModuleType.Unset() +// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { + o.DeviceType = &v } // GetName returns the Name field value if set, zero value otherwise. @@ -274,11 +219,8 @@ func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o PatchedModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() + if !IsNil(o.DeviceType) { + toSerialize["device_type"] = o.DeviceType } if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -315,7 +257,6 @@ func (o *PatchedModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_patched_notification_group_request.go b/model_patched_notification_group_request.go index 3945f2f10..6abb9f42c 100644 --- a/model_patched_notification_group_request.go +++ b/model_patched_notification_group_request.go @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedNotificationGroupRequest{} // PatchedNotificationGroupRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedNotificationGroupRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Users []int32 `json:"users,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Users []int32 `json:"users,omitempty"` AdditionalProperties map[string]interface{} } @@ -174,7 +174,7 @@ func (o *PatchedNotificationGroupRequest) SetUsers(v []int32) { } func (o PatchedNotificationGroupRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,5 +262,3 @@ func (v *NullablePatchedNotificationGroupRequest) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_notification_request.go b/model_patched_notification_request.go index 01178aef3..ed3fc13c2 100644 --- a/model_patched_notification_request.go +++ b/model_patched_notification_request.go @@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedNotificationRequest{} // PatchedNotificationRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedNotificationRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *BriefUserRequest `json:"user,omitempty"` - Read NullableTime `json:"read,omitempty"` - EventType *Event `json:"event_type,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Read NullableTime `json:"read,omitempty"` + EventType *Event `json:"event_type,omitempty"` AdditionalProperties map[string]interface{} } @@ -175,6 +175,7 @@ func (o *PatchedNotificationRequest) HasRead() bool { func (o *PatchedNotificationRequest) SetRead(v time.Time) { o.Read.Set(&v) } + // SetReadNil sets the value for Read to be an explicit nil func (o *PatchedNotificationRequest) SetReadNil() { o.Read.Set(nil) @@ -218,7 +219,7 @@ func (o *PatchedNotificationRequest) SetEventType(v Event) { } func (o PatchedNotificationRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -310,5 +311,3 @@ func (v *NullablePatchedNotificationRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_object_permission_request.go b/model_patched_object_permission_request.go index 42a8b2b0b..39a1c0ffd 100644 --- a/model_patched_object_permission_request.go +++ b/model_patched_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_platform_request.go b/model_patched_platform_request.go index a41cebf88..2b69b6bb3 100644 --- a/model_patched_platform_request.go +++ b/model_patched_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPlatformRequest{} // PatchedPlatformRequest Adds support for custom fields and tags. type PatchedPlatformRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedPlatformRequest) SetSlug(v string) { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest { +func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -124,7 +124,7 @@ func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedPlatformRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer.Set(&v) } @@ -156,9 +156,9 @@ func (o *PatchedPlatformRequest) UnsetManufacturer() { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -167,7 +167,7 @@ func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -183,8 +183,8 @@ func (o *PatchedPlatformRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_power_panel_request.go b/model_patched_power_panel_request.go index f6bd11404..855e8aea4 100644 --- a/model_patched_power_panel_request.go +++ b/model_patched_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPowerPanelRequest{} // PatchedPowerPanelRequest Adds support for custom fields and tags. type PatchedPowerPanelRequest struct { - Site *BriefSiteRequest `json:"site,omitempty"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site *SiteRequest `json:"site,omitempty"` + Location NullableLocationRequest `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,9 +49,9 @@ func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest { +func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site @@ -59,7 +59,7 @@ func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -75,15 +75,15 @@ func (o *PatchedPowerPanelRequest) HasSite() bool { return false } -// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. -func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. +func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest { +func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest + var ret LocationRequest return ret } return *o.Location.Get() @@ -92,7 +92,7 @@ func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { +func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedPowerPanelRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest) { +// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. +func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest) { o.Location.Set(&v) } diff --git a/model_patched_provider_account_request.go b/model_patched_provider_account_request.go index fad367cc6..e413eac6c 100644 --- a/model_patched_provider_account_request.go +++ b/model_patched_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderAccountRequest{} // PatchedProviderAccountRequest Adds support for custom fields and tags. type PatchedProviderAccountRequest struct { - Provider *BriefProviderRequest `json:"provider,omitempty"` + Provider *ProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` Account *string `json:"account,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest { +func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { if o == nil || IsNil(o.Provider) { - var ret BriefProviderRequest + var ret ProviderRequest return ret } return *o.Provider @@ -63,7 +63,7 @@ func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { +func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedProviderAccountRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest) { +// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_network_request.go b/model_patched_provider_network_request.go index ba7e9e84e..f25971cb9 100644 --- a/model_patched_provider_network_request.go +++ b/model_patched_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderNetworkRequest{} // PatchedProviderNetworkRequest Adds support for custom fields and tags. type PatchedProviderNetworkRequest struct { - Provider *BriefProviderRequest `json:"provider,omitempty"` + Provider *ProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` ServiceId *string `json:"service_id,omitempty"` Description *string `json:"description,omitempty"` @@ -49,9 +49,9 @@ func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest { +func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { if o == nil || IsNil(o.Provider) { - var ret BriefProviderRequest + var ret ProviderRequest return ret } return *o.Provider @@ -59,7 +59,7 @@ func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { +func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedProviderNetworkRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest) { +// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_request.go b/model_patched_provider_request.go index ad5dab626..1c4432678 100644 --- a/model_patched_provider_request.go +++ b/model_patched_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rack_reservation_request.go b/model_patched_rack_reservation_request.go index 6654331fa..c5e404cb3 100644 --- a/model_patched_rack_reservation_request.go +++ b/model_patched_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedRackReservationRequest{} // PatchedRackReservationRequest Adds support for custom fields and tags. type PatchedRackReservationRequest struct { - Rack *BriefRackRequest `json:"rack,omitempty"` - Units []int32 `json:"units,omitempty"` - User *BriefUserRequest `json:"user,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack *RackRequest `json:"rack,omitempty"` + Units []int32 `json:"units,omitempty"` + User *UserRequest `json:"user,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationReque } // GetRack returns the Rack field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest { +func (o *PatchedRackReservationRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack @@ -60,7 +60,7 @@ func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool) { if o == nil || IsNil(o.Rack) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedRackReservationRequest) HasRack() bool { return false } -// SetRack gets a reference to the given BriefRackRequest and assigns it to the Rack field. -func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given RackRequest and assigns it to the Rack field. +func (o *PatchedRackReservationRequest) SetRack(v RackRequest) { o.Rack = &v } @@ -114,9 +114,9 @@ func (o *PatchedRackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest { +func (o *PatchedRackReservationRequest) GetUser() UserRequest { if o == nil || IsNil(o.User) { - var ret BriefUserRequest + var ret UserRequest return ret } return *o.User @@ -124,7 +124,7 @@ func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { +func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -140,15 +140,15 @@ func (o *PatchedRackReservationRequest) HasUser() bool { return false } -// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. -func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest) { +// SetUser gets a reference to the given UserRequest and assigns it to the User field. +func (o *PatchedRackReservationRequest) SetUser(v UserRequest) { o.User = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest { +func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -157,7 +157,7 @@ func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -173,8 +173,8 @@ func (o *PatchedRackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go index ed79eaaa8..6d892aa82 100644 --- a/model_patched_rack_role_request.go +++ b/model_patched_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go index e5b3aaf71..0b99fe529 100644 --- a/model_patched_rir_request.go +++ b/model_patched_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_role_request.go b/model_patched_role_request.go index 40600e554..7352ad89e 100644 --- a/model_patched_role_request.go +++ b/model_patched_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_route_target_request.go b/model_patched_route_target_request.go index 6872dfc47..b2a367b40 100644 --- a/model_patched_route_target_request.go +++ b/model_patched_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRouteTargetRequest{} // PatchedRouteTargetRequest Adds support for custom fields and tags. type PatchedRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,9 +81,9 @@ func (o *PatchedRouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest { +func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -92,7 +92,7 @@ func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedRouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go index e89d8c756..0f76328b3 100644 --- a/model_patched_saved_filter_request.go +++ b/model_patched_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_script_input_request.go b/model_patched_script_input_request.go index 54d23f3dd..c9e282a82 100644 --- a/model_patched_script_input_request.go +++ b/model_patched_script_input_request.go @@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedScriptInputRequest{} // PatchedScriptInputRequest struct for PatchedScriptInputRequest type PatchedScriptInputRequest struct { - Data interface{} `json:"data,omitempty"` - Commit *bool `json:"commit,omitempty"` - ScheduleAt NullableTime `json:"schedule_at,omitempty"` - Interval NullableInt32 `json:"interval,omitempty"` + Data interface{} `json:"data,omitempty"` + Commit *bool `json:"commit,omitempty"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` AdditionalProperties map[string]interface{} } @@ -143,6 +143,7 @@ func (o *PatchedScriptInputRequest) HasScheduleAt() bool { func (o *PatchedScriptInputRequest) SetScheduleAt(v time.Time) { o.ScheduleAt.Set(&v) } + // SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil func (o *PatchedScriptInputRequest) SetScheduleAtNil() { o.ScheduleAt.Set(nil) @@ -185,6 +186,7 @@ func (o *PatchedScriptInputRequest) HasInterval() bool { func (o *PatchedScriptInputRequest) SetInterval(v int32) { o.Interval.Set(&v) } + // SetIntervalNil sets the value for Interval to be an explicit nil func (o *PatchedScriptInputRequest) SetIntervalNil() { o.Interval.Set(nil) @@ -196,7 +198,7 @@ func (o *PatchedScriptInputRequest) UnsetInterval() { } func (o PatchedScriptInputRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -284,5 +286,3 @@ func (v *NullablePatchedScriptInputRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_subscription_request.go b/model_patched_subscription_request.go index 9b5148f49..065fca25d 100644 --- a/model_patched_subscription_request.go +++ b/model_patched_subscription_request.go @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedSubscriptionRequest{} // PatchedSubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedSubscriptionRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *BriefUserRequest `json:"user,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,7 +141,7 @@ func (o *PatchedSubscriptionRequest) SetUser(v BriefUserRequest) { } func (o PatchedSubscriptionRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -225,5 +225,3 @@ func (v *NullablePatchedSubscriptionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go index 10aaa4e3f..df4b1fd5b 100644 --- a/model_patched_tag_request.go +++ b/model_patched_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_tenant_request.go b/model_patched_tenant_request.go index dd31e2f10..394851841 100644 --- a/model_patched_tenant_request.go +++ b/model_patched_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedTenantRequest{} // PatchedTenantRequest Adds support for custom fields and tags. type PatchedTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Group NullableBriefTenantGroupRequest `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Group NullableTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedTenantRequest) SetSlug(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest { +func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefTenantGroupRequest + var ret TenantGroupRequest return ret } return *o.Group.Get() @@ -124,7 +124,7 @@ func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { +func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedTenantRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. -func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest) { +// SetGroup gets a reference to the given NullableTenantGroupRequest and assigns it to the Group field. +func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_token_request.go b/model_patched_token_request.go index e9ac649b0..87277f496 100644 --- a/model_patched_token_request.go +++ b/model_patched_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedTokenRequest{} // PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedTokenRequest struct { - User *BriefUserRequest `json:"user,omitempty"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User *UserRequest `json:"user,omitempty"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -50,9 +50,9 @@ func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedTokenRequest) GetUser() BriefUserRequest { +func (o *PatchedTokenRequest) GetUser() UserRequest { if o == nil || IsNil(o.User) { - var ret BriefUserRequest + var ret UserRequest return ret } return *o.User @@ -60,7 +60,7 @@ func (o *PatchedTokenRequest) GetUser() BriefUserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool) { +func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedTokenRequest) HasUser() bool { return false } -// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. -func (o *PatchedTokenRequest) SetUser(v BriefUserRequest) { +// SetUser gets a reference to the given UserRequest and assigns it to the User field. +func (o *PatchedTokenRequest) SetUser(v UserRequest) { o.User = &v } diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go index 82e56512b..d01b7dc83 100644 --- a/model_patched_tunnel_group_request.go +++ b/model_patched_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_user_request.go b/model_patched_user_request.go index 7f6a0cd34..b03530987 100644 --- a/model_patched_user_request.go +++ b/model_patched_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_virtual_disk_request.go b/model_patched_virtual_disk_request.go index eb625f0eb..17afe0ffa 100644 --- a/model_patched_virtual_disk_request.go +++ b/model_patched_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualDiskRequest{} // PatchedVirtualDiskRequest Adds support for custom fields and tags. type PatchedVirtualDiskRequest struct { - VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Size *int32 `json:"size,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Size *int32 `json:"size,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,9 +48,9 @@ func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } return *o.VirtualMachine @@ -58,7 +58,7 @@ func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineReque // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine = &v } diff --git a/model_patched_vlan_group_request.go b/model_patched_vlan_group_request.go index c1ce1b6c7..39f5d4933 100644 --- a/model_patched_vlan_group_request.go +++ b/model_patched_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,14 @@ var _ MappedNullable = &PatchedVLANGroupRequest{} // PatchedVLANGroupRequest Adds support for custom fields and tags. type PatchedVLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + // Lowest permissible ID of a child VLAN + MinVid *int32 `json:"min_vid,omitempty"` + // Highest permissible ID of a child VLAN + MaxVid *int32 `json:"max_vid,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -198,6 +202,70 @@ func (o *PatchedVLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } +// GetMinVid returns the MinVid field value if set, zero value otherwise. +func (o *PatchedVLANGroupRequest) GetMinVid() int32 { + if o == nil || IsNil(o.MinVid) { + var ret int32 + return ret + } + return *o.MinVid +} + +// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool) { + if o == nil || IsNil(o.MinVid) { + return nil, false + } + return o.MinVid, true +} + +// HasMinVid returns a boolean if a field has been set. +func (o *PatchedVLANGroupRequest) HasMinVid() bool { + if o != nil && !IsNil(o.MinVid) { + return true + } + + return false +} + +// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. +func (o *PatchedVLANGroupRequest) SetMinVid(v int32) { + o.MinVid = &v +} + +// GetMaxVid returns the MaxVid field value if set, zero value otherwise. +func (o *PatchedVLANGroupRequest) GetMaxVid() int32 { + if o == nil || IsNil(o.MaxVid) { + var ret int32 + return ret + } + return *o.MaxVid +} + +// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool) { + if o == nil || IsNil(o.MaxVid) { + return nil, false + } + return o.MaxVid, true +} + +// HasMaxVid returns a boolean if a field has been set. +func (o *PatchedVLANGroupRequest) HasMaxVid() bool { + if o != nil && !IsNil(o.MaxVid) { + return true + } + + return false +} + +// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. +func (o *PatchedVLANGroupRequest) SetMaxVid(v int32) { + o.MaxVid = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedVLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -316,6 +384,12 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } + if !IsNil(o.MinVid) { + toSerialize["min_vid"] = o.MinVid + } + if !IsNil(o.MaxVid) { + toSerialize["max_vid"] = o.MaxVid + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -351,6 +425,8 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") + delete(additionalProperties, "min_vid") + delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_patched_vrf_request.go b/model_patched_vrf_request.go index 24dc48de8..9dfb98881 100644 --- a/model_patched_vrf_request.go +++ b/model_patched_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &PatchedVRFRequest{} type PatchedVRFRequest struct { Name *string `json:"name,omitempty"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF EnforceUnique *bool `json:"enforce_unique,omitempty"` Description *string `json:"description,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedVRFRequest) UnsetRd() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest { +func (o *PatchedVRFRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -140,7 +140,7 @@ func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -156,8 +156,8 @@ func (o *PatchedVRFRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedVRFRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go index e9531a4af..5c726471e 100644 --- a/model_patched_webhook_request.go +++ b/model_patched_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go index 4811b97cb..184b35a71 100644 --- a/model_patched_webhook_request_http_method.go +++ b/model_patched_webhook_request_http_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go index 016b76fdc..0c3c8d591 100644 --- a/model_patched_writable_aggregate_request.go +++ b/model_patched_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{} // PatchedWritableAggregateRequest Adds support for custom fields and tags. type PatchedWritableAggregateRequest struct { - Prefix *string `json:"prefix,omitempty"` - Rir *BriefRIRRequest `json:"rir,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix *string `json:"prefix,omitempty"` + Rir *RIRRequest `json:"rir,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest { +func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { if o == nil || IsNil(o.Rir) { - var ret BriefRIRRequest + var ret RIRRequest return ret } return *o.Rir @@ -92,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -108,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool { return false } -// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. -func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest) { +// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. +func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest) { o.Rir = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -125,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go index a1cb15401..158155396 100644 --- a/model_patched_writable_cable_request.go +++ b/model_patched_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableCableRequest{} // PatchedWritableCableRequest Adds support for custom fields and tags. type PatchedWritableCableRequest struct { - Type *CableType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *CableStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *PatchedWritableCableRequestType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetType() CableType { +func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType { if o == nil || IsNil(o.Type) { - var ret CableType + var ret PatchedWritableCableRequestType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *PatchedWritableCableRequest) GetType() CableType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool) { +func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given CableType and assigns it to the Type field. -func (o *PatchedWritableCableRequest) SetType(v CableType) { +// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. +func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest) } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue { +func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { if o == nil || IsNil(o.Status) { - var ret CableStatusValue + var ret PatchedWritableCableRequestStatus return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { +func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *PatchedWritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. -func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. +func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *PatchedWritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *PatchedWritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue { +func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { if o == nil || IsNil(o.LengthUnit) { - var ret CableLengthUnitValue + var ret PatchedWritableCableRequestLengthUnit return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue { // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { +func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. -func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { +// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { o.LengthUnit = &v } diff --git a/model_patched_writable_circuit_group_assignment_request.go b/model_patched_writable_circuit_group_assignment_request.go index be9486871..b58eb5368 100644 --- a/model_patched_writable_circuit_group_assignment_request.go +++ b/model_patched_writable_circuit_group_assignment_request.go @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableCircuitGroupAssignmentRequest{} // PatchedWritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. type PatchedWritableCircuitGroupAssignmentRequest struct { - Group *BriefCircuitGroupRequest `json:"group,omitempty"` - Circuit *BriefCircuitRequest `json:"circuit,omitempty"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Group *BriefCircuitGroupRequest `json:"group,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -174,7 +174,7 @@ func (o *PatchedWritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequ } func (o PatchedWritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -262,5 +262,3 @@ func (v *NullablePatchedWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go index 9b68fb84b..a9b2fa643 100644 --- a/model_patched_writable_circuit_request.go +++ b/model_patched_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,20 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{} // PatchedWritableCircuitRequest Adds support for custom fields and tags. type PatchedWritableCircuitRequest struct { // Unique circuit ID - Cid *string `json:"cid,omitempty"` - Provider *BriefProviderRequest `json:"provider,omitempty"` - ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` - Type *BriefCircuitTypeRequest `json:"type,omitempty"` - Status *CircuitStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid *string `json:"cid,omitempty"` + Provider *ProviderRequest `json:"provider,omitempty"` + ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` + Type *CircuitTypeRequest `json:"type,omitempty"` + Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -90,9 +89,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest { +func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { if o == nil || IsNil(o.Provider) { - var ret BriefProviderRequest + var ret ProviderRequest return ret } return *o.Provider @@ -100,7 +99,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -116,15 +115,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. -func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest) { +// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. +func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest) { o.Provider = &v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { +func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret BriefProviderAccountRequest + var ret ProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -133,7 +132,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccoun // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -149,8 +148,8 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -165,9 +164,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest { +func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { if o == nil || IsNil(o.Type) { - var ret BriefCircuitTypeRequest + var ret CircuitTypeRequest return ret } return *o.Type @@ -175,7 +174,7 @@ func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -191,15 +190,15 @@ func (o *PatchedWritableCircuitRequest) HasType() bool { return false } -// SetType gets a reference to the given BriefCircuitTypeRequest and assigns it to the Type field. -func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { +// SetType gets a reference to the given CircuitTypeRequest and assigns it to the Type field. +func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest) { o.Type = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue { +func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { if o == nil || IsNil(o.Status) { - var ret CircuitStatusValue + var ret PatchedWritableCircuitRequestStatus return ret } return *o.Status @@ -207,7 +206,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { +func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -223,15 +222,15 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. -func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. +func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -240,7 +239,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -256,8 +255,8 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -528,38 +527,6 @@ func (o *PatchedWritableCircuitRequest) SetCustomFields(v map[string]interface{} o.CustomFields = v } -// GetAssignments returns the Assignments field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { - if o == nil || IsNil(o.Assignments) { - var ret []BriefCircuitGroupAssignmentSerializerRequest - return ret - } - return o.Assignments -} - -// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { - if o == nil || IsNil(o.Assignments) { - return nil, false - } - return o.Assignments, true -} - -// HasAssignments returns a boolean if a field has been set. -func (o *PatchedWritableCircuitRequest) HasAssignments() bool { - if o != nil && !IsNil(o.Assignments) { - return true - } - - return false -} - -// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. -func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { - o.Assignments = v -} - func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -609,9 +576,6 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - if !IsNil(o.Assignments) { - toSerialize["assignments"] = o.Assignments - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -647,7 +611,6 @@ func (o *PatchedWritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go index 8c1ba9eb2..686e11522 100644 --- a/model_patched_writable_cluster_request.go +++ b/model_patched_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableClusterRequest{} // PatchedWritableClusterRequest Adds support for custom fields and tags. type PatchedWritableClusterRequest struct { - Name *string `json:"name,omitempty"` - Type *BriefClusterTypeRequest `json:"type,omitempty"` - Group NullableBriefClusterGroupRequest `json:"group,omitempty"` - Status *ClusterStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Type *ClusterTypeRequest `json:"type,omitempty"` + Group NullableClusterGroupRequest `json:"group,omitempty"` + Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,9 +84,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest { +func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { if o == nil || IsNil(o.Type) { - var ret BriefClusterTypeRequest + var ret ClusterTypeRequest return ret } return *o.Type @@ -94,7 +94,7 @@ func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -110,15 +110,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool { return false } -// SetType gets a reference to the given BriefClusterTypeRequest and assigns it to the Type field. -func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest) { +// SetType gets a reference to the given ClusterTypeRequest and assigns it to the Type field. +func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest) { o.Type = &v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest { +func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefClusterGroupRequest + var ret ClusterGroupRequest return ret } return *o.Group.Get() @@ -127,7 +127,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { +func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. -func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { +// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. +func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest) { o.Group.Set(&v) } @@ -159,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue { +func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { if o == nil || IsNil(o.Status) { - var ret ClusterStatusValue + var ret PatchedWritableClusterRequestStatus return ret } return *o.Status @@ -169,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { +func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -185,15 +185,15 @@ func (o *PatchedWritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. -func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) { +// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. +func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go index 8b646c383..5e75fe1df 100644 --- a/model_patched_writable_console_port_request.go +++ b/model_patched_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{} // PatchedWritableConsolePortRequest Adds support for custom fields and tags. type PatchedWritableConsolePortRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsolePortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go index 21e97fa70..9fb31ae8e 100644 --- a/model_patched_writable_console_port_request_speed.go +++ b/model_patched_writable_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go index 4cd1da2d9..db1edadc3 100644 --- a/model_patched_writable_console_port_request_type.go +++ b/model_patched_writable_console_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go index e98b18115..a4c19d0c0 100644 --- a/model_patched_writable_console_port_template_request.go +++ b/model_patched_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{} // PatchedWritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsolePortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsolePortTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceT // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleT // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go index f57ad98dd..c5a84421b 100644 --- a/model_patched_writable_console_server_port_request.go +++ b/model_patched_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{} // PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags. type PatchedWritableConsoleServerPortRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go index 67a1600ca..07402cdcd 100644 --- a/model_patched_writable_console_server_port_template_request.go +++ b/model_patched_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{} // PatchedWritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsoleServerPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsoleServerPortTemplateRequestWithDefaults() *PatchedWr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefD // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefM // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go index 0afcf3ba4..8a792f86b 100644 --- a/model_patched_writable_contact_assignment_request.go +++ b/model_patched_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{} // PatchedWritableContactAssignmentRequest Adds support for custom fields and tags. type PatchedWritableContactAssignmentRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Contact *BriefContactRequest `json:"contact,omitempty"` - Role NullableBriefContactRoleRequest `json:"role,omitempty"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Contact *ContactRequest `json:"contact,omitempty"` + Role NullableContactRoleRequest `json:"role,omitempty"` + Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest { +func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { if o == nil || IsNil(o.Contact) { - var ret BriefContactRequest + var ret ContactRequest return ret } return *o.Contact @@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactReque // GetContactOk returns a tuple with the Contact field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { if o == nil || IsNil(o.Contact) { return nil, false } @@ -139,15 +139,15 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool { return false } -// SetContact gets a reference to the given BriefContactRequest and assigns it to the Contact field. -func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest) { +// SetContact gets a reference to the given ContactRequest and assigns it to the Contact field. +func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest) { o.Contact = &v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { +func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefContactRoleRequest + var ret ContactRoleRequest return ret } return *o.Role.Get() @@ -156,7 +156,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequ // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { if o == nil { return nil, false } @@ -172,8 +172,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. -func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { +// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. +func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { o.Role.Set(&v) } @@ -188,9 +188,9 @@ func (o *PatchedWritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { +func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { if o == nil || IsNil(o.Priority) { - var ret BriefCircuitGroupAssignmentSerializerPriorityValue + var ret ContactAssignmentPriorityValue return ret } return *o.Priority @@ -198,7 +198,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGrou // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -214,8 +214,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. -func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { +// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. +func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { o.Priority = &v } diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go index 19503e255..b7868b9e7 100644 --- a/model_patched_writable_contact_group_request.go +++ b/model_patched_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go index 2a0321c11..685a24ba2 100644 --- a/model_patched_writable_custom_field_choice_set_request.go +++ b/model_patched_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request_base_choices.go b/model_patched_writable_custom_field_choice_set_request_base_choices.go index e0bba990d..05ed85e77 100644 --- a/model_patched_writable_custom_field_choice_set_request_base_choices.go +++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go index 5e5a7d9de..4e6a76214 100644 --- a/model_patched_writable_custom_field_request.go +++ b/model_patched_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,10 +29,8 @@ type PatchedWritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // This field is required when creating new objects or editing an existing object. + // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` - // The value of this field must be unique for the assigned object - Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -42,8 +40,6 @@ type PatchedWritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` - // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). - RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -51,9 +47,9 @@ type PatchedWritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -343,38 +339,6 @@ func (o *PatchedWritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } -// GetUnique returns the Unique field value if set, zero value otherwise. -func (o *PatchedWritableCustomFieldRequest) GetUnique() bool { - if o == nil || IsNil(o.Unique) { - var ret bool - return ret - } - return *o.Unique -} - -// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { - if o == nil || IsNil(o.Unique) { - return nil, false - } - return o.Unique, true -} - -// HasUnique returns a boolean if a field has been set. -func (o *PatchedWritableCustomFieldRequest) HasUnique() bool { - if o != nil && !IsNil(o.Unique) { - return true - } - - return false -} - -// SetUnique gets a reference to the given bool and assigns it to the Unique field. -func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool) { - o.Unique = &v -} - // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -568,39 +532,6 @@ func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } -// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.RelatedObjectFilter -} - -// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { - if o == nil || IsNil(o.RelatedObjectFilter) { - return nil, false - } - return &o.RelatedObjectFilter, true -} - -// HasRelatedObjectFilter returns a boolean if a field has been set. -func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool { - if o != nil && !IsNil(o.RelatedObjectFilter) { - return true - } - - return false -} - -// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. -func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { - o.RelatedObjectFilter = v -} - // GetWeight returns the Weight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -752,9 +683,9 @@ func (o *PatchedWritableCustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret BriefCustomFieldChoiceSetRequest + var ret CustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -763,7 +694,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoic // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -779,8 +710,8 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -860,9 +791,6 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Required) { toSerialize["required"] = o.Required } - if !IsNil(o.Unique) { - toSerialize["unique"] = o.Unique - } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -881,9 +809,6 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if o.Default != nil { toSerialize["default"] = o.Default } - if o.RelatedObjectFilter != nil { - toSerialize["related_object_filter"] = o.RelatedObjectFilter - } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -932,14 +857,12 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") - delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") - delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go index b3b9850d6..617a06855 100644 --- a/model_patched_writable_custom_field_request_filter_logic.go +++ b/model_patched_writable_custom_field_request_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go index 23559ae84..3efb71f2c 100644 --- a/model_patched_writable_custom_field_request_type.go +++ b/model_patched_writable_custom_field_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go index 400ecc5cf..2ebd0d168 100644 --- a/model_patched_writable_custom_field_request_ui_editable.go +++ b/model_patched_writable_custom_field_request_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go index a76b0d6ca..2b2609423 100644 --- a/model_patched_writable_custom_field_request_ui_visible.go +++ b/model_patched_writable_custom_field_request_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go index a40196121..4446f37e8 100644 --- a/model_patched_writable_data_source_request.go +++ b/model_patched_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,10 +24,10 @@ type PatchedWritableDataSourceRequest struct { SourceUrl *string `json:"source_url,omitempty"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` - Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -211,6 +211,38 @@ func (o *PatchedWritableDataSourceRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -276,38 +308,6 @@ func (o *PatchedWritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PatchedWritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PatchedWritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PatchedWritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -365,15 +365,15 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -404,9 +404,9 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") + delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") - delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go index 0b9e23402..e5906960d 100644 --- a/model_patched_writable_device_type_request.go +++ b/model_patched_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,27 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{} // PatchedWritableDeviceTypeRequest Adds support for custom fields and tags. type PatchedWritableDeviceTypeRequest struct { - Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` - DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` + Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` + DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -68,9 +68,9 @@ func NewPatchedWritableDeviceTypeRequestWithDefaults() *PatchedWritableDeviceTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer @@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRe // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -94,15 +94,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer = &v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformReq // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. -func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. +func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -442,9 +442,9 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { if o == nil || IsNil(o.WeightUnit) { - var ret DeviceTypeWeightUnitValue + var ret PatchedWritableDeviceTypeRequestWeightUnit return ret } return *o.WeightUnit @@ -452,7 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitV // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -468,8 +468,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. -func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { +// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { o.WeightUnit = &v } diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go index 2f394f858..2594a9023 100644 --- a/model_patched_writable_device_with_config_context_request.go +++ b/model_patched_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,37 +19,37 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{} // PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` - Role *BriefDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + Role *DeviceRoleRequest `json:"role,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Platform NullablePlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *BriefSiteRequest `json:"site,omitempty"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Rack NullableBriefRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *RackFace1 `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *SiteRequest `json:"site,omitempty"` + Location NullableLocationRequest `json:"location,omitempty"` + Rack NullableRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *RackFace1 `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -120,9 +120,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType @@ -130,7 +130,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDev // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -146,15 +146,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { if o == nil || IsNil(o.Role) { - var ret BriefDeviceRoleRequest + var ret DeviceRoleRequest return ret } return *o.Role @@ -162,7 +162,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRol // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -178,15 +178,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { +// SetRole gets a reference to the given DeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -195,7 +195,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantR // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -211,8 +211,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -227,9 +227,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.Platform.Get() @@ -238,7 +238,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatf // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -254,8 +254,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { +// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { o.Platform.Set(&v) } @@ -345,9 +345,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site @@ -355,7 +355,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteReque // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -371,15 +371,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest + var ret LocationRequest return ret } return *o.Location.Get() @@ -388,7 +388,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocat // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { if o == nil { return nil, false } @@ -404,8 +404,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { +// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { o.Location.Set(&v) } @@ -420,9 +420,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack.Get() @@ -431,7 +431,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackReque // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -447,8 +447,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { o.Rack.Set(&v) } @@ -688,9 +688,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirfl } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -699,7 +699,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPA // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -715,8 +715,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -731,9 +731,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -742,7 +742,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPA // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -758,8 +758,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -774,9 +774,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.OobIp.Get() @@ -785,7 +785,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddres // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -801,8 +801,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { +// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { o.OobIp.Set(&v) } @@ -817,9 +817,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefClusterRequest + var ret ClusterRequest return ret } return *o.Cluster.Get() @@ -828,7 +828,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefCluste // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { if o == nil { return nil, false } @@ -844,8 +844,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { +// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { o.Cluster.Set(&v) } @@ -860,9 +860,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret BriefVirtualChassisRequest + var ret VirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -871,7 +871,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() Brie // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -887,8 +887,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool return false } -// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1053,9 +1053,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1064,7 +1064,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() Brie // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1080,8 +1080,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go index 8972a8e43..0251a39dc 100644 --- a/model_patched_writable_event_rule_request.go +++ b/model_patched_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,17 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{} type PatchedWritableEventRuleRequest struct { ObjectTypes []string `json:"object_types,omitempty"` Name *string `json:"name,omitempty"` - Enabled *bool `json:"enabled,omitempty"` - // The types of event which will trigger this rule. - EventTypes []EventRuleEventTypesInner `json:"event_types,omitempty"` + // Triggers when a matching object is created. + TypeCreate *bool `json:"type_create,omitempty"` + // Triggers when a matching object is updated. + TypeUpdate *bool `json:"type_update,omitempty"` + // Triggers when a matching object is deleted. + TypeDelete *bool `json:"type_delete,omitempty"` + // Triggers when a job for a matching object is started. + TypeJobStart *bool `json:"type_job_start,omitempty"` + // Triggers when a job for a matching object terminates. + TypeJobEnd *bool `json:"type_job_end,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` @@ -118,68 +126,196 @@ func (o *PatchedWritableEventRuleRequest) SetName(v string) { o.Name = &v } -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { +// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool { + if o == nil || IsNil(o.TypeCreate) { var ret bool return ret } - return *o.Enabled + return *o.TypeCreate } -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { +func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeCreate) { return nil, false } - return o.Enabled, true + return o.TypeCreate, true } -// HasEnabled returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { +// HasTypeCreate returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool { + if o != nil && !IsNil(o.TypeCreate) { return true } return false } -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { - o.Enabled = &v +// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. +func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool) { + o.TypeCreate = &v +} + +// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool { + if o == nil || IsNil(o.TypeUpdate) { + var ret bool + return ret + } + return *o.TypeUpdate +} + +// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeUpdate) { + return nil, false + } + return o.TypeUpdate, true +} + +// HasTypeUpdate returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool { + if o != nil && !IsNil(o.TypeUpdate) { + return true + } + + return false } -// GetEventTypes returns the EventTypes field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { - if o == nil || IsNil(o.EventTypes) { - var ret []EventRuleEventTypesInner +// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. +func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool) { + o.TypeUpdate = &v +} + +// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool { + if o == nil || IsNil(o.TypeDelete) { + var ret bool return ret } - return o.EventTypes + return *o.TypeDelete } -// GetEventTypesOk returns a tuple with the EventTypes field value if set, nil otherwise +// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { - if o == nil || IsNil(o.EventTypes) { +func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { + if o == nil || IsNil(o.TypeDelete) { return nil, false } - return o.EventTypes, true + return o.TypeDelete, true } -// HasEventTypes returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool { - if o != nil && !IsNil(o.EventTypes) { +// HasTypeDelete returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool { + if o != nil && !IsNil(o.TypeDelete) { return true } return false } -// SetEventTypes gets a reference to the given []EventRuleEventTypesInner and assigns it to the EventTypes field. -func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { - o.EventTypes = v +// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. +func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool) { + o.TypeDelete = &v +} + +// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool { + if o == nil || IsNil(o.TypeJobStart) { + var ret bool + return ret + } + return *o.TypeJobStart +} + +// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobStart) { + return nil, false + } + return o.TypeJobStart, true +} + +// HasTypeJobStart returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool { + if o != nil && !IsNil(o.TypeJobStart) { + return true + } + + return false +} + +// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. +func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool) { + o.TypeJobStart = &v +} + +// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool { + if o == nil || IsNil(o.TypeJobEnd) { + var ret bool + return ret + } + return *o.TypeJobEnd +} + +// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobEnd) { + return nil, false + } + return o.TypeJobEnd, true +} + +// HasTypeJobEnd returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool { + if o != nil && !IsNil(o.TypeJobEnd) { + return true + } + + return false +} + +// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. +func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool) { + o.TypeJobEnd = &v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { + o.Enabled = &v } // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). @@ -434,12 +570,24 @@ func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Name) { toSerialize["name"] = o.Name } + if !IsNil(o.TypeCreate) { + toSerialize["type_create"] = o.TypeCreate + } + if !IsNil(o.TypeUpdate) { + toSerialize["type_update"] = o.TypeUpdate + } + if !IsNil(o.TypeDelete) { + toSerialize["type_delete"] = o.TypeDelete + } + if !IsNil(o.TypeJobStart) { + toSerialize["type_job_start"] = o.TypeJobStart + } + if !IsNil(o.TypeJobEnd) { + toSerialize["type_job_end"] = o.TypeJobEnd + } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - if !IsNil(o.EventTypes) { - toSerialize["event_types"] = o.EventTypes - } if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -485,8 +633,12 @@ func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") + delete(additionalProperties, "type_create") + delete(additionalProperties, "type_update") + delete(additionalProperties, "type_delete") + delete(additionalProperties, "type_job_start") + delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") - delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go index 8c146788b..56a5a766f 100644 --- a/model_patched_writable_front_port_request.go +++ b/model_patched_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{} // PatchedWritableFrontPortRequest Adds support for custom fields and tags. type PatchedWritableFrontPortRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedWritableFrontPortRequestWithDefaults() *PatchedWritableFrontPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,15 +87,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go index 205b7257c..a7e2d7d33 100644 --- a/model_patched_writable_front_port_template_request.go +++ b/model_patched_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{} // PatchedWritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableFrontPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *BriefRearPortTemplateRequest `json:"rear_port,omitempty"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + RearPort *RearPortTemplateRequest `json:"rear_port,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,9 +57,9 @@ func NewPatchedWritableFrontPortTemplateRequestWithDefaults() *PatchedWritableFr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -68,7 +68,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTyp // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -100,9 +100,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTyp // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -271,9 +271,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { if o == nil || IsNil(o.RearPort) { - var ret BriefRearPortTemplateRequest + var ret RearPortTemplateRequest return ret } return *o.RearPort @@ -281,7 +281,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTem // GetRearPortOk returns a tuple with the RearPort field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { if o == nil || IsNil(o.RearPort) { return nil, false } @@ -297,8 +297,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool { return false } -// SetRearPort gets a reference to the given BriefRearPortTemplateRequest and assigns it to the RearPort field. -func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { +// SetRearPort gets a reference to the given RearPortTemplateRequest and assigns it to the RearPort field. +func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { o.RearPort = &v } diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go index a72ce9090..58f359b1e 100644 --- a/model_patched_writable_ike_policy_request.go +++ b/model_patched_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go index 9b400ad00..16fbd5659 100644 --- a/model_patched_writable_ike_policy_request_mode.go +++ b/model_patched_writable_ike_policy_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go index 71a408f1b..2a6c5849c 100644 --- a/model_patched_writable_ike_policy_request_version.go +++ b/model_patched_writable_ike_policy_request_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go index 29f372406..6de0b3f45 100644 --- a/model_patched_writable_ike_proposal_request.go +++ b/model_patched_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go index 0ccfcda63..98ac12303 100644 --- a/model_patched_writable_ike_proposal_request_authentication_algorithm.go +++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go index 51ffc74d2..89cee3081 100644 --- a/model_patched_writable_ike_proposal_request_group.go +++ b/model_patched_writable_ike_proposal_request_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go index a06f523ae..16c8c59a0 100644 --- a/model_patched_writable_interface_request.go +++ b/model_patched_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{} // PatchedWritableInterfaceRequest Adds support for custom fields and tags. type PatchedWritableInterfaceRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *InterfaceTypeValue `json:"type,omitempty"` @@ -46,16 +46,16 @@ type PatchedWritableInterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,9 +79,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -89,7 +89,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -105,8 +105,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest) { o.Device = &v } @@ -143,9 +143,9 @@ func (o *PatchedWritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -154,7 +154,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -170,8 +170,8 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } @@ -1011,9 +1011,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1022,7 +1022,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -1038,8 +1038,8 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1150,9 +1150,9 @@ func (o *PatchedWritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest { +func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -1161,7 +1161,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -1177,8 +1177,8 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go index 92e0a858b..8417725be 100644 --- a/model_patched_writable_interface_request_mode.go +++ b/model_patched_writable_interface_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go index cef20a302..f88d3d205 100644 --- a/model_patched_writable_interface_template_request.go +++ b/model_patched_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{} // PatchedWritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableInterfaceTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -56,9 +56,9 @@ func NewPatchedWritableInterfaceTemplateRequestWithDefaults() *PatchedWritableIn } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTyp // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTyp // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go index 3b121ba28..8aced88b8 100644 --- a/model_patched_writable_ip_address_request.go +++ b/model_patched_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{} // PatchedWritableIPAddressRequest Adds support for custom fields and tags. type PatchedWritableIPAddressRequest struct { Address *string `json:"address,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -89,9 +89,9 @@ func (o *PatchedWritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest { +func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go index 8e3ba0c0e..c50d40236 100644 --- a/model_patched_writable_ip_address_request_role.go +++ b/model_patched_writable_ip_address_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go index 483c89cb0..aa05d1c78 100644 --- a/model_patched_writable_ip_address_request_status.go +++ b/model_patched_writable_ip_address_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go index 6c5ee83ca..3ae8f8a3b 100644 --- a/model_patched_writable_ip_range_request.go +++ b/model_patched_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{} type PatchedWritableIPRangeRequest struct { StartAddress *string `json:"start_address,omitempty"` EndAddress *string `json:"end_address,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest { +func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -161,9 +161,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeReques } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest { +func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go index f6fba2a7e..c5cdba089 100644 --- a/model_patched_writable_ip_range_request_status.go +++ b/model_patched_writable_ip_range_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go index 30eecae8e..6c4c674f7 100644 --- a/model_patched_writable_ip_sec_policy_request.go +++ b/model_patched_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go index acb893a49..8b81531d6 100644 --- a/model_patched_writable_ip_sec_policy_request_pfs_group.go +++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go index 4a6af5dba..1c0acccc0 100644 --- a/model_patched_writable_ip_sec_profile_request.go +++ b/model_patched_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableIPSecProfileRequest{} // PatchedWritableIPSecProfileRequest Adds support for custom fields and tags. type PatchedWritableIPSecProfileRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Mode *IPSecProfileModeValue `json:"mode,omitempty"` - IkePolicy *BriefIKEPolicyRequest `json:"ike_policy,omitempty"` - IpsecPolicy *BriefIPSecPolicyRequest `json:"ipsec_policy,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Mode *IPSecProfileModeValue `json:"mode,omitempty"` + IkePolicy *IKEPolicyRequest `json:"ike_policy,omitempty"` + IpsecPolicy *IPSecPolicyRequest `json:"ipsec_policy,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,9 +146,9 @@ func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { if o == nil || IsNil(o.IkePolicy) { - var ret BriefIKEPolicyRequest + var ret IKEPolicyRequest return ret } return *o.IkePolicy @@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyReques // GetIkePolicyOk returns a tuple with the IkePolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { if o == nil || IsNil(o.IkePolicy) { return nil, false } @@ -172,15 +172,15 @@ func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool { return false } -// SetIkePolicy gets a reference to the given BriefIKEPolicyRequest and assigns it to the IkePolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { +// SetIkePolicy gets a reference to the given IKEPolicyRequest and assigns it to the IkePolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { o.IkePolicy = &v } // GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { if o == nil || IsNil(o.IpsecPolicy) { - var ret BriefIPSecPolicyRequest + var ret IPSecPolicyRequest return ret } return *o.IpsecPolicy @@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRe // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { if o == nil || IsNil(o.IpsecPolicy) { return nil, false } @@ -204,8 +204,8 @@ func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool { return false } -// SetIpsecPolicy gets a reference to the given BriefIPSecPolicyRequest and assigns it to the IpsecPolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { +// SetIpsecPolicy gets a reference to the given IPSecPolicyRequest and assigns it to the IpsecPolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { o.IpsecPolicy = &v } diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go index 94c7feb86..b79dc65d8 100644 --- a/model_patched_writable_ip_sec_proposal_request.go +++ b/model_patched_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go index 0f350e592..97f19a1e7 100644 --- a/model_patched_writable_journal_entry_request.go +++ b/model_patched_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go index 841f1bef9..0cbb2327b 100644 --- a/model_patched_writable_l2_vpn_request.go +++ b/model_patched_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableL2VPNRequest{} // PatchedWritableL2VPNRequest Adds support for custom fields and tags. type PatchedWritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Type *BriefL2VPNTypeValue `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Type *L2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -160,9 +160,9 @@ func (o *PatchedWritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue { +func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret BriefL2VPNTypeValue + var ret L2VPNTypeValue return ret } return *o.Type @@ -170,7 +170,7 @@ func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { +func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -186,8 +186,8 @@ func (o *PatchedWritableL2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. -func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { +// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. +func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue) { o.Type = &v } @@ -320,9 +320,9 @@ func (o *PatchedWritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -331,7 +331,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -347,8 +347,8 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go index 9d1d8cc52..338f115dd 100644 --- a/model_patched_writable_location_request.go +++ b/model_patched_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableLocationRequest{} // PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Site *BriefSiteRequest `json:"site,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Status *LocationStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Site *SiteRequest `json:"site,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site @@ -127,7 +127,7 @@ func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. +func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest) { o.Site = &v } @@ -192,9 +192,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue { +func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { if o == nil || IsNil(o.Status) { - var ret LocationStatusValue + var ret PatchedWritableLocationRequestStatus return ret } return *o.Status @@ -202,7 +202,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { +func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -218,15 +218,15 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. -func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) { +// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. +func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -235,7 +235,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go index ef38b38ef..5d7316da7 100644 --- a/model_patched_writable_module_request.go +++ b/model_patched_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableModuleRequest{} // PatchedWritableModuleRequest Adds support for custom fields and tags. type PatchedWritableModuleRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - ModuleBay *int32 `json:"module_bay,omitempty"` - ModuleType *BriefModuleTypeRequest `json:"module_type,omitempty"` - Status *ModuleStatusValue `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + ModuleBay *int32 `json:"module_bay,omitempty"` + ModuleType *ModuleTypeRequest `json:"module_type,omitempty"` + Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableModuleRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest) { o.Device = &v } @@ -117,9 +117,9 @@ func (o *PatchedWritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType @@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil || IsNil(o.ModuleType) { return nil, false } @@ -143,15 +143,15 @@ func (o *PatchedWritableModuleRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given BriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given ModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue { +func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { if o == nil || IsNil(o.Status) { - var ret ModuleStatusValue + var ret PatchedWritableModuleRequestStatus return ret } return *o.Status @@ -159,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { +func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -175,8 +175,8 @@ func (o *PatchedWritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. -func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue) { +// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. +func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { o.Status = &v } diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go index 767a1c3e4..284d2cda9 100644 --- a/model_patched_writable_module_type_request.go +++ b/model_patched_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,16 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{} // PatchedWritableModuleTypeRequest Adds support for custom fields and tags. type PatchedWritableModuleTypeRequest struct { - Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` + Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,9 +52,9 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { +func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } return *o.Manufacturer @@ -63,7 +62,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRe // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -79,8 +78,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { +// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer = &v } @@ -148,38 +147,6 @@ func (o *PatchedWritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { - if o == nil || IsNil(o.Airflow) { - var ret ModuleTypeAirflowValue - return ret - } - return *o.Airflow -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { - if o == nil || IsNil(o.Airflow) { - return nil, false - } - return o.Airflow, true -} - -// HasAirflow returns a boolean if a field has been set. -func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { - return true - } - - return false -} - -// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. -func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { - o.Airflow = &v -} - // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -224,9 +191,9 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { if o == nil || IsNil(o.WeightUnit) { - var ret DeviceTypeWeightUnitValue + var ret PatchedWritableDeviceTypeRequestWeightUnit return ret } return *o.WeightUnit @@ -234,7 +201,7 @@ func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitV // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -250,8 +217,8 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. -func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { +// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { o.WeightUnit = &v } @@ -402,9 +369,6 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow - } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -448,7 +412,6 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") - delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go index 59fe67cfb..cd730a4d0 100644 --- a/model_patched_writable_power_feed_request.go +++ b/model_patched_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{} // PatchedWritablePowerFeedRequest Adds support for custom fields and tags. type PatchedWritablePowerFeedRequest struct { - PowerPanel *BriefPowerPanelRequest `json:"power_panel,omitempty"` - Rack NullableBriefRackRequest `json:"rack,omitempty"` + PowerPanel *PowerPanelRequest `json:"power_panel,omitempty"` + Rack NullableRackRequest `json:"rack,omitempty"` Name *string `json:"name,omitempty"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -31,12 +31,12 @@ type PatchedWritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR } // GetPowerPanel returns the PowerPanel field value if set, zero value otherwise. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { if o == nil || IsNil(o.PowerPanel) { - var ret BriefPowerPanelRequest + var ret PowerPanelRequest return ret } return *o.PowerPanel @@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest // GetPowerPanelOk returns a tuple with the PowerPanel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { if o == nil || IsNil(o.PowerPanel) { return nil, false } @@ -86,15 +86,15 @@ func (o *PatchedWritablePowerFeedRequest) HasPowerPanel() bool { return false } -// SetPowerPanel gets a reference to the given BriefPowerPanelRequest and assigns it to the PowerPanel field. -func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { +// SetPowerPanel gets a reference to the given PowerPanelRequest and assigns it to the PowerPanel field. +func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { o.PowerPanel = &v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest { +func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack.Get() @@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -119,8 +119,8 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. -func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. +func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest) { o.Rack.Set(&v) } @@ -455,9 +455,9 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -466,7 +466,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -482,8 +482,8 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go index 9bb391b27..9a576dfa2 100644 --- a/model_patched_writable_power_feed_request_phase.go +++ b/model_patched_writable_power_feed_request_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go index 1f536c5f7..e83c0f2fa 100644 --- a/model_patched_writable_power_feed_request_status.go +++ b/model_patched_writable_power_feed_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go index 4c3ad86a3..e8b5b27a3 100644 --- a/model_patched_writable_power_feed_request_supply.go +++ b/model_patched_writable_power_feed_request_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go index 419531ff0..6951215c4 100644 --- a/model_patched_writable_power_feed_request_type.go +++ b/model_patched_writable_power_feed_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go index 8d094a661..4a3f01b5d 100644 --- a/model_patched_writable_power_outlet_request.go +++ b/model_patched_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{} // PatchedWritablePowerOutletRequest Adds support for custom fields and tags. type PatchedWritablePowerOutletRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` + PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -55,9 +55,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -81,15 +81,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -98,7 +98,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } @@ -226,9 +226,9 @@ func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutlet } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { +func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortRequest + var ret PowerPortRequest return ret } return *o.PowerPort.Get() @@ -237,7 +237,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { if o == nil { return nil, false } @@ -253,8 +253,8 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { +// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go index 343fb92fc..bb994c190 100644 --- a/model_patched_writable_power_outlet_request_feed_leg.go +++ b/model_patched_writable_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go index 3cf0cf726..b71ce89bf 100644 --- a/model_patched_writable_power_outlet_request_type.go +++ b/model_patched_writable_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletRequestType string // List of PatchedWritablePowerOutletRequest_type @@ -81,7 +81,6 @@ const ( PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r" - PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletRequestType = "nema-l22-20r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C" @@ -183,7 +182,6 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", - "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go index 421e133c1..665ffab4e 100644 --- a/model_patched_writable_power_outlet_template_request.go +++ b/model_patched_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{} // PatchedWritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerOutletTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -52,9 +52,9 @@ func NewPatchedWritablePowerOutletTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceT // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleT // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePow } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortTemplateRequest + var ret PowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPor // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go index ab90308a4..1ca291711 100644 --- a/model_patched_writable_power_outlet_template_request_type.go +++ b/model_patched_writable_power_outlet_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletTemplateRequestType string // List of PatchedWritablePowerOutletTemplateRequest_type @@ -81,7 +81,6 @@ const ( PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r" - PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-20r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C" @@ -183,7 +182,6 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", - "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go index 66633f2c0..1df1cacd1 100644 --- a/model_patched_writable_power_port_request.go +++ b/model_patched_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{} // PatchedWritablePowerPortRequest Adds support for custom fields and tags. type PatchedWritablePowerPortRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -83,15 +83,15 @@ func (o *PatchedWritablePowerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go index 62de6fec2..fd8a265b0 100644 --- a/model_patched_writable_power_port_request_type.go +++ b/model_patched_writable_power_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortRequestType string // List of PatchedWritablePowerPortRequest_type @@ -81,7 +81,6 @@ const ( PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p" - PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortRequestType = "nema-l22-20p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c" @@ -190,7 +189,6 @@ var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowe "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", - "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go index f07f9ab83..6598158be 100644 --- a/model_patched_writable_power_port_template_request.go +++ b/model_patched_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{} // PatchedWritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -54,9 +54,9 @@ func NewPatchedWritablePowerPortTemplateRequestWithDefaults() *PatchedWritablePo } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTyp // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTyp // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go index be2bcd2c5..554ee3f09 100644 --- a/model_patched_writable_power_port_template_request_type.go +++ b/model_patched_writable_power_port_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortTemplateRequestType string // List of PatchedWritablePowerPortTemplateRequest_type @@ -81,7 +81,6 @@ const ( PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p" - PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortTemplateRequestType = "nema-l22-20p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c" @@ -190,7 +189,6 @@ var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWrit "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", - "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go index a95c8c4b2..4f5dc38b7 100644 --- a/model_patched_writable_prefix_request.go +++ b/model_patched_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{} // PatchedWritablePrefixRequest Adds support for custom fields and tags. type PatchedWritablePrefixRequest struct { Prefix *string `json:"prefix,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -89,9 +89,9 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest { +func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -175,9 +175,9 @@ func (o *PatchedWritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -186,7 +186,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -202,8 +202,8 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -218,9 +218,9 @@ func (o *PatchedWritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest { +func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.Vlan.Get() @@ -229,7 +229,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -245,8 +245,8 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest) { +// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest) { o.Vlan.Set(&v) } @@ -293,9 +293,9 @@ func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestS } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest { +func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -304,7 +304,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -320,8 +320,8 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go index 73893bfbc..ecbeb236f 100644 --- a/model_patched_writable_prefix_request_status.go +++ b/model_patched_writable_prefix_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go index a634cef64..2b21e78d4 100644 --- a/model_patched_writable_rack_request.go +++ b/model_patched_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,25 +21,24 @@ var _ MappedNullable = &PatchedWritableRackRequest{} type PatchedWritableRackRequest struct { Name *string `json:"name,omitempty"` FacilityId NullableString `json:"facility_id,omitempty"` - Site *BriefSiteRequest `json:"site,omitempty"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site *SiteRequest `json:"site,omitempty"` + Location NullableLocationRequest `json:"location,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Role NullableRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` - FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Type *PatchedWritableRackRequestType `json:"type,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -48,12 +47,11 @@ type PatchedWritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -152,9 +150,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritableRackRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site @@ -162,7 +160,7 @@ func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -178,15 +176,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool { return false } -// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. +func (o *PatchedWritableRackRequest) SetSite(v SiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest { +func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest + var ret LocationRequest return ret } return *o.Location.Get() @@ -195,7 +193,7 @@ func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { +func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool) { if o == nil { return nil, false } @@ -211,8 +209,8 @@ func (o *PatchedWritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest) { +// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. +func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest) { o.Location.Set(&v) } @@ -227,9 +225,9 @@ func (o *PatchedWritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -238,7 +236,7 @@ func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -254,8 +252,8 @@ func (o *PatchedWritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -302,9 +300,9 @@ func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest { +func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRackRoleRequest + var ret RackRoleRequest return ret } return *o.Role.Get() @@ -313,7 +311,7 @@ func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { +func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { if o == nil { return nil, false } @@ -329,8 +327,8 @@ func (o *PatchedWritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. -func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest) { +// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. +func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest) { o.Role.Set(&v) } @@ -419,79 +417,36 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest { - if o == nil || IsNil(o.RackType.Get()) { - var ret BriefRackTypeRequest +// GetType returns the Type field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType { + if o == nil || IsNil(o.Type) { + var ret PatchedWritableRackRequestType return ret } - return *o.RackType.Get() + return *o.Type } -// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.RackType.Get(), o.RackType.IsSet() -} - -// HasRackType returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasRackType() bool { - if o != nil && o.RackType.IsSet() { - return true - } - - return false -} - -// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. -func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest) { - o.RackType.Set(&v) -} - -// SetRackTypeNil sets the value for RackType to be an explicit nil -func (o *PatchedWritableRackRequest) SetRackTypeNil() { - o.RackType.Set(nil) -} - -// UnsetRackType ensures that no value is present for RackType, not even an explicit nil -func (o *PatchedWritableRackRequest) UnsetRackType() { - o.RackType.Unset() -} - -// GetFormFactor returns the FormFactor field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { - if o == nil || IsNil(o.FormFactor) { - var ret PatchedWritableRackRequestFormFactor - return ret - } - return *o.FormFactor -} - -// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { - if o == nil || IsNil(o.FormFactor) { +func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { + if o == nil || IsNil(o.Type) { return nil, false } - return o.FormFactor, true + return o.Type, true } -// HasFormFactor returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasFormFactor() bool { - if o != nil && !IsNil(o.FormFactor) { +// HasType returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { return true } return false } -// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. -func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { - o.FormFactor = &v +// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. +func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType) { + o.Type = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -677,9 +632,9 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { +func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { if o == nil || IsNil(o.WeightUnit) { - var ret DeviceTypeWeightUnitValue + var ret PatchedWritableDeviceTypeRequestWeightUnit return ret } return *o.WeightUnit @@ -687,7 +642,7 @@ func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { +func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -703,8 +658,8 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. -func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { +// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { o.WeightUnit = &v } @@ -901,38 +856,6 @@ func (o *PatchedWritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { - if o == nil || IsNil(o.Airflow) { - var ret PatchedWritableRackRequestAirflow - return ret - } - return *o.Airflow -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { - if o == nil || IsNil(o.Airflow) { - return nil, false - } - return o.Airflow, true -} - -// HasAirflow returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { - return true - } - - return false -} - -// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. -func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { - o.Airflow = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1098,11 +1021,8 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if o.RackType.IsSet() { - toSerialize["rack_type"] = o.RackType.Get() - } - if !IsNil(o.FormFactor) { - toSerialize["form_factor"] = o.FormFactor + if !IsNil(o.Type) { + toSerialize["type"] = o.Type } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1137,9 +1057,6 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1183,8 +1100,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "rack_type") - delete(additionalProperties, "form_factor") + delete(additionalProperties, "type") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1196,7 +1112,6 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") - delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_rack_request_airflow.go b/model_patched_writable_rack_request_airflow.go index 5cebdcb46..bc860e794 100644 --- a/model_patched_writable_rack_request_airflow.go +++ b/model_patched_writable_rack_request_airflow.go @@ -22,7 +22,7 @@ type PatchedWritableRackRequestAirflow string const ( PATCHEDWRITABLERACKREQUESTAIRFLOW_FRONT_TO_REAR PatchedWritableRackRequestAirflow = "front-to-rear" PATCHEDWRITABLERACKREQUESTAIRFLOW_REAR_TO_FRONT PatchedWritableRackRequestAirflow = "rear-to-front" - PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = "" + PATCHEDWRITABLERACKREQUESTAIRFLOW_EMPTY PatchedWritableRackRequestAirflow = "" ) // All allowed values of PatchedWritableRackRequestAirflow enum @@ -110,4 +110,3 @@ func (v *NullablePatchedWritableRackRequestAirflow) UnmarshalJSON(src []byte) er v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_patched_writable_rack_request_form_factor.go b/model_patched_writable_rack_request_form_factor.go index a75b4fe76..b53dacc4f 100644 --- a/model_patched_writable_rack_request_form_factor.go +++ b/model_patched_writable_rack_request_form_factor.go @@ -20,14 +20,14 @@ type PatchedWritableRackRequestFormFactor string // List of PatchedWritableRackRequest_form_factor const ( - PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame" - PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame" - PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet" - PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame" - PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical" - PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackRequestFormFactor = "wall-cabinet" PATCHEDWRITABLERACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackRequestFormFactor = "wall-cabinet-vertical" - PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = "" + PATCHEDWRITABLERACKREQUESTFORMFACTOR_EMPTY PatchedWritableRackRequestFormFactor = "" ) // All allowed values of PatchedWritableRackRequestFormFactor enum @@ -120,4 +120,3 @@ func (v *NullablePatchedWritableRackRequestFormFactor) UnmarshalJSON(src []byte) v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go index a89a47209..21a86aded 100644 --- a/model_patched_writable_rack_request_outer_unit.go +++ b/model_patched_writable_rack_request_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go index 55ed8f113..9dc9df329 100644 --- a/model_patched_writable_rack_request_status.go +++ b/model_patched_writable_rack_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go index cc26611ef..19908dc01 100644 --- a/model_patched_writable_rack_request_width.go +++ b/model_patched_writable_rack_request_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_type_request.go b/model_patched_writable_rack_type_request.go index 3dd7ed87d..1f2fd36e5 100644 --- a/model_patched_writable_rack_type_request.go +++ b/model_patched_writable_rack_type_request.go @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableRackTypeRequest{} // PatchedWritableRackTypeRequest Adds support for custom fields and tags. type PatchedWritableRackTypeRequest struct { - Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` - Description *string `json:"description,omitempty"` - FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` + Description *string `json:"description,omitempty"` + FormFactor *PatchedWritableRackTypeRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack @@ -34,17 +34,17 @@ type PatchedWritableRackTypeRequest struct { // Outer dimension of rack (width) OuterWidth NullableInt32 `json:"outer_width,omitempty"` // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -387,6 +387,7 @@ func (o *PatchedWritableRackTypeRequest) HasOuterWidth() bool { func (o *PatchedWritableRackTypeRequest) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } + // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *PatchedWritableRackTypeRequest) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -429,6 +430,7 @@ func (o *PatchedWritableRackTypeRequest) HasOuterDepth() bool { func (o *PatchedWritableRackTypeRequest) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } + // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *PatchedWritableRackTypeRequest) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -503,6 +505,7 @@ func (o *PatchedWritableRackTypeRequest) HasWeight() bool { func (o *PatchedWritableRackTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } + // SetWeightNil sets the value for Weight to be an explicit nil func (o *PatchedWritableRackTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -545,6 +548,7 @@ func (o *PatchedWritableRackTypeRequest) HasMaxWeight() bool { func (o *PatchedWritableRackTypeRequest) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } + // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *PatchedWritableRackTypeRequest) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -619,6 +623,7 @@ func (o *PatchedWritableRackTypeRequest) HasMountingDepth() bool { func (o *PatchedWritableRackTypeRequest) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } + // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *PatchedWritableRackTypeRequest) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -726,7 +731,7 @@ func (o *PatchedWritableRackTypeRequest) SetCustomFields(v map[string]interface{ } func (o PatchedWritableRackTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -874,5 +879,3 @@ func (v *NullablePatchedWritableRackTypeRequest) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_patched_writable_rack_type_request_form_factor.go b/model_patched_writable_rack_type_request_form_factor.go index 7636b0656..31d5b9af4 100644 --- a/model_patched_writable_rack_type_request_form_factor.go +++ b/model_patched_writable_rack_type_request_form_factor.go @@ -20,12 +20,12 @@ type PatchedWritableRackTypeRequestFormFactor string // List of PatchedWritableRackTypeRequest_form_factor const ( - PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame" - PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame" - PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet" - PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame" - PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical" - PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__2_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "2-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_FRAME PatchedWritableRackTypeRequestFormFactor = "4-post-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR__4_POST_CABINET PatchedWritableRackTypeRequestFormFactor = "4-post-cabinet" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME PatchedWritableRackTypeRequestFormFactor = "wall-frame" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_FRAME_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-frame-vertical" + PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET PatchedWritableRackTypeRequestFormFactor = "wall-cabinet" PATCHEDWRITABLERACKTYPEREQUESTFORMFACTOR_WALL_CABINET_VERTICAL PatchedWritableRackTypeRequestFormFactor = "wall-cabinet-vertical" ) @@ -118,4 +118,3 @@ func (v *NullablePatchedWritableRackTypeRequestFormFactor) UnmarshalJSON(src []b v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go index d830e3b39..881056212 100644 --- a/model_patched_writable_rear_port_request.go +++ b/model_patched_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{} // PatchedWritableRearPortRequest Adds support for custom fields and tags. type PatchedWritableRearPortRequest struct { - Device *BriefDeviceRequest `json:"device,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -82,15 +82,15 @@ func (o *PatchedWritableRearPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest { +func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -115,8 +115,8 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go index 5de046173..5280e4ec8 100644 --- a/model_patched_writable_rear_port_template_request.go +++ b/model_patched_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{} // PatchedWritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableRearPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -52,9 +52,9 @@ func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRea } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceType // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleType // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go index 1d627a82f..f2deb297b 100644 --- a/model_patched_writable_region_request.go +++ b/model_patched_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go index 90396a9b0..9f1abb8c1 100644 --- a/model_patched_writable_service_request.go +++ b/model_patched_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableServiceRequest{} // PatchedWritableServiceRequest Adds support for custom fields and tags. type PatchedWritableServiceRequest struct { - Device NullableBriefDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports,omitempty"` @@ -52,9 +52,9 @@ func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceReque } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest) { o.Device.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineR // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go index 71f875d4c..4b7b5d491 100644 --- a/model_patched_writable_service_request_protocol.go +++ b/model_patched_writable_service_request_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go index bf02b2075..182e8786d 100644 --- a/model_patched_writable_service_template_request.go +++ b/model_patched_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go index 5e0c53952..784b86567 100644 --- a/model_patched_writable_site_group_request.go +++ b/model_patched_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go index b1971a349..35523daf2 100644 --- a/model_patched_writable_site_request.go +++ b/model_patched_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritableSiteRequest{} // PatchedWritableSiteRequest Adds support for custom fields and tags. type PatchedWritableSiteRequest struct { // Full name of the site - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *LocationStatusValue `json:"status,omitempty"` - Region NullableBriefRegionRequest `json:"region,omitempty"` - Group NullableBriefSiteGroupRequest `json:"group,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` + Region NullableRegionRequest `json:"region,omitempty"` + Group NullableSiteGroupRequest `json:"group,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedWritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue { +func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { if o == nil || IsNil(o.Status) { - var ret LocationStatusValue + var ret PatchedWritableLocationRequestStatus return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { +func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,15 +155,15 @@ func (o *PatchedWritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. -func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) { +// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. +func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest { +func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret BriefRegionRequest + var ret RegionRequest return ret } return *o.Region.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { +func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. -func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest) { +// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. +func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest) { o.Region.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest { +func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefSiteGroupRequest + var ret SiteGroupRequest return ret } return *o.Group.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { +func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. -func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { +// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. +func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest) { o.Group.Set(&v) } @@ -247,9 +247,9 @@ func (o *PatchedWritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -258,7 +258,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -274,8 +274,8 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go index bd07aece2..86547508d 100644 --- a/model_patched_writable_tenant_group_request.go +++ b/model_patched_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go index 888406456..cac6687a1 100644 --- a/model_patched_writable_tunnel_request.go +++ b/model_patched_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{} type PatchedWritableTunnelRequest struct { Name *string `json:"name,omitempty"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Group NullableTunnelGroupRequest `json:"group,omitempty"` Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"` - IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` TunnelId NullableInt64 `json:"tunnel_id,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestS } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { +func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefTunnelGroupRequest + var ret TunnelGroupRequest return ret } return *o.Group.Get() @@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -144,8 +144,8 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. -func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { +// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. +func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest) { o.Group.Set(&v) } @@ -192,9 +192,9 @@ func (o *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelR } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { +func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret BriefIPSecProfileRequest + var ret IPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -203,7 +203,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileReques // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -219,8 +219,8 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -235,9 +235,9 @@ func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -246,7 +246,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -262,8 +262,8 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go index 39e76f57a..54582c03d 100644 --- a/model_patched_writable_tunnel_request_encapsulation.go +++ b/model_patched_writable_tunnel_request_encapsulation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go index 4ec095689..b4b020162 100644 --- a/model_patched_writable_tunnel_request_status.go +++ b/model_patched_writable_tunnel_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go index 3e946c172..361991390 100644 --- a/model_patched_writable_tunnel_termination_request.go +++ b/model_patched_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{} // PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags. type PatchedWritableTunnelTerminationRequest struct { - Tunnel *BriefTunnelRequest `json:"tunnel,omitempty"` + Tunnel *TunnelRequest `json:"tunnel,omitempty"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType *string `json:"termination_type,omitempty"` TerminationId NullableInt64 `json:"termination_id,omitempty"` - OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -49,9 +49,9 @@ func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTu } // GetTunnel returns the Tunnel field value if set, zero value otherwise. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { if o == nil || IsNil(o.Tunnel) { - var ret BriefTunnelRequest + var ret TunnelRequest return ret } return *o.Tunnel @@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest // GetTunnelOk returns a tuple with the Tunnel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { if o == nil || IsNil(o.Tunnel) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool { return false } -// SetTunnel gets a reference to the given BriefTunnelRequest and assigns it to the Tunnel field. -func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { +// SetTunnel gets a reference to the given TunnelRequest and assigns it to the Tunnel field. +func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { o.Tunnel = &v } @@ -188,9 +188,9 @@ func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId() { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.OutsideIp.Get() @@ -199,7 +199,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressR // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. -func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. +func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go index 7a730dd24..8bc7b5eea 100644 --- a/model_patched_writable_tunnel_termination_request_role.go +++ b/model_patched_writable_tunnel_termination_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go index 890f61323..f160befac 100644 --- a/model_patched_writable_virtual_chassis_request.go +++ b/model_patched_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go index bb664e202..34ba5129c 100644 --- a/model_patched_writable_virtual_device_context_request.go +++ b/model_patched_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{} // PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualDeviceContextRequest struct { Name *string `json:"name,omitempty"` - Device *BriefDeviceRequest `json:"device,omitempty"` + Device *DeviceRequest `json:"device,omitempty"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` Status *PatchedWritableVirtualDeviceContextRequestStatus `json:"status,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device @@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequ // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -111,8 +111,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { o.Device = &v } @@ -160,9 +160,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -171,7 +171,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequ // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -187,8 +187,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -203,9 +203,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -214,7 +214,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddr // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -230,8 +230,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -246,9 +246,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -257,7 +257,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddr // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -273,8 +273,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go index bb51c5213..9bed2f913 100644 --- a/model_patched_writable_virtual_device_context_request_status.go +++ b/model_patched_writable_virtual_device_context_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go index 3b53ff653..e9006bf84 100644 --- a/model_patched_writable_virtual_machine_with_config_context_request.go +++ b/model_patched_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,23 +19,22 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{} // PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualMachineWithConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Status *ModuleStatusValue `json:"status,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` - Device NullableBriefDeviceRequest `json:"device,omitempty"` - Serial *string `json:"serial,omitempty"` - Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Platform NullableBriefPlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Name *string `json:"name,omitempty"` + Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Cluster NullableClusterRequest `json:"cluster,omitempty"` + Device NullableDeviceRequest `json:"device,omitempty"` + Role NullableDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Platform NullablePlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -95,9 +94,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { if o == nil || IsNil(o.Status) { - var ret ModuleStatusValue + var ret PatchedWritableModuleRequestStatus return ret } return *o.Status @@ -105,7 +104,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Modu // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -121,15 +120,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool return false } -// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { +// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -138,7 +137,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefS // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -154,8 +153,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -170,9 +169,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefClusterRequest + var ret ClusterRequest return ret } return *o.Cluster.Get() @@ -181,7 +180,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() Bri // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { if o == nil { return nil, false } @@ -197,8 +196,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo return false } -// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { +// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { o.Cluster.Set(&v) } @@ -213,9 +212,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device.Get() @@ -224,7 +223,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() Brie // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -240,8 +239,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool return false } -// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { o.Device.Set(&v) } @@ -255,42 +254,10 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { - o.Serial = &v -} - // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefDeviceRoleRequest + var ret DeviceRoleRequest return ret } return *o.Role.Get() @@ -299,7 +266,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefD // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -315,8 +282,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { +// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { o.Role.Set(&v) } @@ -331,9 +298,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -342,7 +309,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() Brie // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -358,8 +325,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -374,9 +341,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.Platform.Get() @@ -385,7 +352,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() Br // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -401,8 +368,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo return false } -// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { +// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { o.Platform.Set(&v) } @@ -417,9 +384,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPlatform() } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -428,7 +395,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -444,8 +411,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -460,9 +427,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4( } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -471,7 +438,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -487,8 +454,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -696,9 +663,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetComments(v st } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -707,7 +674,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplat // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -723,8 +690,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -860,9 +827,6 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -932,7 +896,6 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(da delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") - delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go index 7cb5eaf35..f341c2425 100644 --- a/model_patched_writable_vlan_request.go +++ b/model_patched_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableVLANRequest{} // PatchedWritableVLANRequest Adds support for custom fields and tags. type PatchedWritableVLANRequest struct { - Site NullableBriefSiteRequest `json:"site,omitempty"` - Group NullableBriefVLANGroupRequest `json:"group,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Group NullableVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid *int32 `json:"vid,omitempty"` Name *string `json:"name,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableVLANRequestWithDefaults() *PatchedWritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest { +func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest { +func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefVLANGroupRequest + var ret VLANGroupRequest return ret } return *o.Group.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { +func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { +// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest) { o.Group.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -279,9 +279,9 @@ func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest { +func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -290,7 +290,7 @@ func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -306,8 +306,8 @@ func (o *PatchedWritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go index fca8f23eb..74ada78e4 100644 --- a/model_patched_writable_vlan_request_status.go +++ b/model_patched_writable_vlan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go index 4e0e00413..fd72c0f66 100644 --- a/model_patched_writable_vm_interface_request.go +++ b/model_patched_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{} // PatchedWritableVMInterfaceRequest Adds support for custom fields and tags. type PatchedWritableVMInterfaceRequest struct { - VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -28,9 +28,9 @@ type PatchedWritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -56,9 +56,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } return *o.VirtualMachine @@ -66,7 +66,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMach // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -82,8 +82,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine = &v } @@ -388,9 +388,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRe } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.UntaggedVlan.Get() @@ -399,7 +399,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -415,8 +415,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { o.UntaggedVlan.Set(&v) } @@ -463,9 +463,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -474,7 +474,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -490,8 +490,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go index 73559710e..1ffc71e4c 100644 --- a/model_patched_writable_wireless_lan_group_request.go +++ b/model_patched_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go index bc38ef0c7..961912611 100644 --- a/model_patched_writable_wireless_lan_request.go +++ b/model_patched_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{} type PatchedWritableWirelessLANRequest struct { Ssid *string `json:"ssid,omitempty"` Description *string `json:"description,omitempty"` - Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableVLANRequest `json:"vlan,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` AuthType *AuthenticationType1 `json:"auth_type,omitempty"` AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { +func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefWirelessLANGroupRequest + var ret WirelessLANGroupRequest return ret } return *o.Group.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequ // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { o.Group.Set(&v) } @@ -193,9 +193,9 @@ func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessL } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest { +func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.Vlan.Get() @@ -204,7 +204,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -220,8 +220,8 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { +// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest) { o.Vlan.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go index 3b947d219..2960171ff 100644 --- a/model_patched_writable_wireless_lan_request_status.go +++ b/model_patched_writable_wireless_lan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go index b44e387d4..53a6fee89 100644 --- a/model_patched_writable_wireless_link_request.go +++ b/model_patched_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,20 +19,18 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{} // PatchedWritableWirelessLinkRequest Adds support for custom fields and tags. type PatchedWritableWirelessLinkRequest struct { - InterfaceA *BriefInterfaceRequest `json:"interface_a,omitempty"` - InterfaceB *BriefInterfaceRequest `json:"interface_b,omitempty"` - Ssid *string `json:"ssid,omitempty"` - Status *CableStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Distance NullableFloat64 `json:"distance,omitempty"` - DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA *InterfaceRequest `json:"interface_a,omitempty"` + InterfaceB *InterfaceRequest `json:"interface_b,omitempty"` + Ssid *string `json:"ssid,omitempty"` + Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,9 +54,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles } // GetInterfaceA returns the InterfaceA field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { if o == nil || IsNil(o.InterfaceA) { - var ret BriefInterfaceRequest + var ret InterfaceRequest return ret } return *o.InterfaceA @@ -66,7 +64,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceReque // GetInterfaceAOk returns a tuple with the InterfaceA field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceA) { return nil, false } @@ -82,15 +80,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool { return false } -// SetInterfaceA gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceA field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { +// SetInterfaceA gets a reference to the given InterfaceRequest and assigns it to the InterfaceA field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { o.InterfaceA = &v } // GetInterfaceB returns the InterfaceB field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { if o == nil || IsNil(o.InterfaceB) { - var ret BriefInterfaceRequest + var ret InterfaceRequest return ret } return *o.InterfaceB @@ -98,7 +96,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceReque // GetInterfaceBOk returns a tuple with the InterfaceB field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceB) { return nil, false } @@ -114,8 +112,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool { return false } -// SetInterfaceB gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceB field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { +// SetInterfaceB gets a reference to the given InterfaceRequest and assigns it to the InterfaceB field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { o.InterfaceB = &v } @@ -152,9 +150,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue { +func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { if o == nil || IsNil(o.Status) { - var ret CableStatusValue + var ret PatchedWritableCableRequestStatus return ret } return *o.Status @@ -162,7 +160,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -178,15 +176,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. -func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. +func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest { +func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -195,7 +193,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -211,8 +209,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -322,81 +320,6 @@ func (o *PatchedWritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } -// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64 { - if o == nil || IsNil(o.Distance.Get()) { - var ret float64 - return ret - } - return *o.Distance.Get() -} - -// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Distance.Get(), o.Distance.IsSet() -} - -// HasDistance returns a boolean if a field has been set. -func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool { - if o != nil && o.Distance.IsSet() { - return true - } - - return false -} - -// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. -func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64) { - o.Distance.Set(&v) -} - -// SetDistanceNil sets the value for Distance to be an explicit nil -func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil() { - o.Distance.Set(nil) -} - -// UnsetDistance ensures that no value is present for Distance, not even an explicit nil -func (o *PatchedWritableWirelessLinkRequest) UnsetDistance() { - o.Distance.Unset() -} - -// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { - if o == nil || IsNil(o.DistanceUnit) { - var ret PatchedWritableWirelessLinkRequestDistanceUnit - return ret - } - return *o.DistanceUnit -} - -// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { - if o == nil || IsNil(o.DistanceUnit) { - return nil, false - } - return o.DistanceUnit, true -} - -// HasDistanceUnit returns a boolean if a field has been set. -func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool { - if o != nil && !IsNil(o.DistanceUnit) { - return true - } - - return false -} - -// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. -func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { - o.DistanceUnit = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -559,12 +482,6 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } - if o.Distance.IsSet() { - toSerialize["distance"] = o.Distance.Get() - } - if !IsNil(o.DistanceUnit) { - toSerialize["distance_unit"] = o.DistanceUnit - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -607,8 +524,6 @@ func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err err delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") - delete(additionalProperties, "distance") - delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_wireless_link_request_distance_unit.go b/model_patched_writable_wireless_link_request_distance_unit.go index c0367dc99..2c2419af8 100644 --- a/model_patched_writable_wireless_link_request_distance_unit.go +++ b/model_patched_writable_wireless_link_request_distance_unit.go @@ -20,10 +20,10 @@ type PatchedWritableWirelessLinkRequestDistanceUnit string // List of PatchedWritableWirelessLinkRequest_distance_unit const ( - PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_KM PatchedWritableWirelessLinkRequestDistanceUnit = "km" - PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_M PatchedWritableWirelessLinkRequestDistanceUnit = "m" - PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_MI PatchedWritableWirelessLinkRequestDistanceUnit = "mi" - PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_FT PatchedWritableWirelessLinkRequestDistanceUnit = "ft" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_KM PatchedWritableWirelessLinkRequestDistanceUnit = "km" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_M PatchedWritableWirelessLinkRequestDistanceUnit = "m" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_MI PatchedWritableWirelessLinkRequestDistanceUnit = "mi" + PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_FT PatchedWritableWirelessLinkRequestDistanceUnit = "ft" PATCHEDWRITABLEWIRELESSLINKREQUESTDISTANCEUNIT_EMPTY PatchedWritableWirelessLinkRequestDistanceUnit = "" ) @@ -114,4 +114,3 @@ func (v *NullablePatchedWritableWirelessLinkRequestDistanceUnit) UnmarshalJSON(s v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_platform.go b/model_platform.go index 6e19cdb97..95143bd8e 100644 --- a/model_platform.go +++ b/model_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Platform type satisfies the MappedNullable interface at compile time @@ -21,21 +20,14 @@ var _ MappedNullable = &Platform{} // Platform Adds support for custom fields and tags. type Platform struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` - ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,16 +37,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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *Platform { +func NewPlatform(id int32, url string, display string, name string, slug string) *Platform { this := Platform{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -114,30 +103,6 @@ func (o *Platform) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Platform) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Platform) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Platform) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Platform) GetDisplay() string { if o == nil { @@ -210,92 +175,6 @@ func (o *Platform) SetSlug(v string) { o.Slug = v } -// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Platform) GetManufacturer() BriefManufacturer { - if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturer - return ret - } - return *o.Manufacturer.Get() -} - -// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool) { - if o == nil { - return nil, false - } - return o.Manufacturer.Get(), o.Manufacturer.IsSet() -} - -// HasManufacturer returns a boolean if a field has been set. -func (o *Platform) HasManufacturer() bool { - if o != nil && o.Manufacturer.IsSet() { - return true - } - - return false -} - -// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. -func (o *Platform) SetManufacturer(v BriefManufacturer) { - o.Manufacturer.Set(&v) -} - -// SetManufacturerNil sets the value for Manufacturer to be an explicit nil -func (o *Platform) SetManufacturerNil() { - o.Manufacturer.Set(nil) -} - -// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil -func (o *Platform) UnsetManufacturer() { - o.Manufacturer.Unset() -} - -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Platform) GetConfigTemplate() BriefConfigTemplate { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplate - return ret - } - return *o.ConfigTemplate.Get() -} - -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { - if o == nil { - return nil, false - } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() -} - -// HasConfigTemplate returns a boolean if a field has been set. -func (o *Platform) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true - } - - return false -} - -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. -func (o *Platform) SetConfigTemplate(v BriefConfigTemplate) { - o.ConfigTemplate.Set(&v) -} - -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *Platform) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) -} - -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *Platform) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Platform) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -328,122 +207,6 @@ func (o *Platform) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Platform) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Platform) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Platform) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Platform) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Platform) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Platform) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Platform) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Platform) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Platform) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Platform) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Platform) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Platform) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Platform) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Platform) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Platform) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -520,27 +283,12 @@ func (o Platform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if o.Manufacturer.IsSet() { - toSerialize["manufacturer"] = o.Manufacturer.Get() - } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -562,12 +310,9 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -599,17 +344,10 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "manufacturer") - delete(additionalProperties, "config_template") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_platform_request.go b/model_platform_request.go index 382dc8554..365ea0c95 100644 --- a/model_platform_request.go +++ b/model_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,9 @@ var _ MappedNullable = &PlatformRequest{} // PlatformRequest Adds support for custom fields and tags. type PlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -99,92 +95,6 @@ func (o *PlatformRequest) SetSlug(v string) { o.Slug = v } -// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest { - if o == nil || IsNil(o.Manufacturer.Get()) { - var ret BriefManufacturerRequest - return ret - } - return *o.Manufacturer.Get() -} - -// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { - if o == nil { - return nil, false - } - return o.Manufacturer.Get(), o.Manufacturer.IsSet() -} - -// HasManufacturer returns a boolean if a field has been set. -func (o *PlatformRequest) HasManufacturer() bool { - if o != nil && o.Manufacturer.IsSet() { - return true - } - - return false -} - -// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. -func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest) { - o.Manufacturer.Set(&v) -} - -// SetManufacturerNil sets the value for Manufacturer to be an explicit nil -func (o *PlatformRequest) SetManufacturerNil() { - o.Manufacturer.Set(nil) -} - -// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil -func (o *PlatformRequest) UnsetManufacturer() { - o.Manufacturer.Unset() -} - -// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { - if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest - return ret - } - return *o.ConfigTemplate.Get() -} - -// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { - if o == nil { - return nil, false - } - return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() -} - -// HasConfigTemplate returns a boolean if a field has been set. -func (o *PlatformRequest) HasConfigTemplate() bool { - if o != nil && o.ConfigTemplate.IsSet() { - return true - } - - return false -} - -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { - o.ConfigTemplate.Set(&v) -} - -// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil -func (o *PlatformRequest) SetConfigTemplateNil() { - o.ConfigTemplate.Set(nil) -} - -// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil -func (o *PlatformRequest) UnsetConfigTemplate() { - o.ConfigTemplate.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -217,70 +127,6 @@ func (o *PlatformRequest) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *PlatformRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlatformRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *PlatformRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *PlatformRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *PlatformRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PlatformRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *PlatformRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *PlatformRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o PlatformRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -293,21 +139,9 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if o.Manufacturer.IsSet() { - toSerialize["manufacturer"] = o.Manufacturer.Get() - } - if o.ConfigTemplate.IsSet() { - toSerialize["config_template"] = o.ConfigTemplate.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -354,11 +188,7 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "manufacturer") - delete(additionalProperties, "config_template") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_feed.go b/model_power_feed.go index 02b2020ac..d946fcb84 100644 --- a/model_power_feed.go +++ b/model_power_feed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,33 +21,32 @@ var _ MappedNullable = &PowerFeed{} // PowerFeed Adds support for custom fields and tags. type PowerFeed struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - PowerPanel BriefPowerPanel `json:"power_panel"` - Rack NullableBriefRack `json:"rack,omitempty"` - Name string `json:"name"` - Status *PowerFeedStatus `json:"status,omitempty"` - Type *PowerFeedType `json:"type,omitempty"` - Supply *PowerFeedSupply `json:"supply,omitempty"` - Phase *PowerFeedPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + PowerPanel PowerPanel `json:"power_panel"` + Rack NullableRack `json:"rack,omitempty"` + Name string `json:"name"` + Status *PowerFeedStatus `json:"status,omitempty"` + Type *PowerFeedType `json:"type,omitempty"` + Supply *PowerFeedSupply `json:"supply,omitempty"` + Phase *PowerFeedPhase `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Description *string `json:"description,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -63,11 +62,10 @@ type _PowerFeed PowerFeed // 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 NewPowerFeed(id int32, url string, displayUrl string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { +func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { this := PowerFeed{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.PowerPanel = powerPanel this.Name = name @@ -140,30 +138,6 @@ func (o *PowerFeed) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *PowerFeed) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *PowerFeed) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *PowerFeed) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *PowerFeed) GetDisplay() string { if o == nil { @@ -189,9 +163,9 @@ func (o *PowerFeed) SetDisplay(v string) { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeed) GetPowerPanel() BriefPowerPanel { +func (o *PowerFeed) GetPowerPanel() PowerPanel { if o == nil { - var ret BriefPowerPanel + var ret PowerPanel return ret } @@ -200,7 +174,7 @@ func (o *PowerFeed) GetPowerPanel() BriefPowerPanel { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool) { +func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { if o == nil { return nil, false } @@ -208,14 +182,14 @@ func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool) { } // SetPowerPanel sets field value -func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel) { +func (o *PowerFeed) SetPowerPanel(v PowerPanel) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetRack() BriefRack { +func (o *PowerFeed) GetRack() Rack { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRack + var ret Rack return ret } return *o.Rack.Get() @@ -224,7 +198,7 @@ func (o *PowerFeed) GetRack() BriefRack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetRackOk() (*BriefRack, bool) { +func (o *PowerFeed) GetRackOk() (*Rack, bool) { if o == nil { return nil, false } @@ -240,8 +214,8 @@ func (o *PowerFeed) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. -func (o *PowerFeed) SetRack(v BriefRack) { +// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. +func (o *PowerFeed) SetRack(v Rack) { o.Rack.Set(&v) } @@ -536,10 +510,10 @@ func (o *PowerFeed) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *PowerFeed) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *PowerFeed) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -549,7 +523,7 @@ func (o *PowerFeed) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetCableOk() (*BriefCable, bool) { +func (o *PowerFeed) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -557,7 +531,7 @@ func (o *PowerFeed) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *PowerFeed) SetCable(v BriefCable) { +func (o *PowerFeed) SetCable(v Cable) { o.Cable.Set(&v) } @@ -610,33 +584,30 @@ func (o *PowerFeed) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *PowerFeed) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetConnectedEndpoints returns the ConnectedEndpoints field value -// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerFeed) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -648,9 +619,8 @@ func (o *PowerFeed) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.ConnectedEndpoints) { + if o == nil { return nil, false } return o.ConnectedEndpoints, true @@ -662,29 +632,27 @@ func (o *PowerFeed) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value -// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetConnectedEndpointsType() string { - if o == nil || o.ConnectedEndpointsType.Get() == nil { + if o == nil { var ret string return ret } - return *o.ConnectedEndpointsType.Get() + return o.ConnectedEndpointsType } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() + return &o.ConnectedEndpointsType, true } // SetConnectedEndpointsType sets field value func (o *PowerFeed) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType.Set(&v) + o.ConnectedEndpointsType = v } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -744,9 +712,9 @@ func (o *PowerFeed) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetTenant() BriefTenant { +func (o *PowerFeed) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -755,7 +723,7 @@ func (o *PowerFeed) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool) { +func (o *PowerFeed) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -771,8 +739,8 @@ func (o *PowerFeed) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *PowerFeed) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *PowerFeed) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -970,7 +938,6 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["power_panel"] = o.PowerPanel if o.Rack.IsSet() { @@ -1004,11 +971,9 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() - if o.ConnectedEndpoints != nil { - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - } - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -1043,7 +1008,6 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "power_panel", "name", @@ -1088,7 +1052,6 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "power_panel") delete(additionalProperties, "rack") diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go index 7251c6364..728d75ab9 100644 --- a/model_power_feed_phase.go +++ b/model_power_feed_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go index 8d7156e61..1e4274876 100644 --- a/model_power_feed_phase_label.go +++ b/model_power_feed_phase_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_request.go b/model_power_feed_request.go index 819b5d0c4..51865eb47 100644 --- a/model_power_feed_request.go +++ b/model_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedRequest{} // PowerFeedRequest Adds support for custom fields and tags. type PowerFeedRequest struct { - PowerPanel BriefPowerPanelRequest `json:"power_panel"` - Rack NullableBriefRackRequest `json:"rack,omitempty"` + PowerPanel PowerPanelRequest `json:"power_panel"` + Rack NullableRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type PowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _PowerFeedRequest PowerFeedRequest // 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 NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *PowerFeedRequest { +func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string) *PowerFeedRequest { this := PowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewPowerFeedRequestWithDefaults() *PowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { +func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { if o == nil { - var ret BriefPowerPanelRequest + var ret PowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { +func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { } // SetPowerPanel sets field value -func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { +func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetRack() BriefRackRequest { +func (o *PowerFeedRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *PowerFeedRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. -func (o *PowerFeedRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. +func (o *PowerFeedRequest) SetRack(v RackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *PowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetTenant() BriefTenantRequest { +func (o *PowerFeedRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *PowerFeedRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *PowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PowerFeedRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_power_feed_status.go b/model_power_feed_status.go index 4cae9f476..e0b9ca575 100644 --- a/model_power_feed_status.go +++ b/model_power_feed_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go index f55fff67b..25d308214 100644 --- a/model_power_feed_status_label.go +++ b/model_power_feed_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go index 94b9f2990..f7a5c9251 100644 --- a/model_power_feed_supply.go +++ b/model_power_feed_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go index 7295bd3b7..07573618e 100644 --- a/model_power_feed_supply_label.go +++ b/model_power_feed_supply_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type.go b/model_power_feed_type.go index bb84aa7ab..0e839a1a2 100644 --- a/model_power_feed_type.go +++ b/model_power_feed_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go index 6c9caa928..e98943a9f 100644 --- a/model_power_feed_type_label.go +++ b/model_power_feed_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet.go b/model_power_outlet.go index 0029693a8..2072ed336 100644 --- a/model_power_outlet.go +++ b/model_power_outlet.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,28 +21,27 @@ var _ MappedNullable = &PowerOutlet{} // PowerOutlet Adds support for custom fields and tags. type PowerOutlet struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Module NullableModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullableBriefPowerPort `json:"power_port,omitempty"` + PowerPort NullablePowerPort `json:"power_port,omitempty"` FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsType string `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -58,11 +57,10 @@ type _PowerOutlet PowerOutlet // 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 NewPowerOutlet(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { +func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { this := PowerOutlet{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -135,30 +133,6 @@ func (o *PowerOutlet) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *PowerOutlet) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *PowerOutlet) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *PowerOutlet) GetDisplay() string { if o == nil { @@ -184,9 +158,9 @@ func (o *PowerOutlet) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerOutlet) GetDevice() BriefDevice { +func (o *PowerOutlet) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -195,7 +169,7 @@ func (o *PowerOutlet) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool) { +func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -203,14 +177,14 @@ func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *PowerOutlet) SetDevice(v BriefDevice) { +func (o *PowerOutlet) SetDevice(v Device) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetModule() BriefModule { +func (o *PowerOutlet) GetModule() Module { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule + var ret Module return ret } return *o.Module.Get() @@ -219,7 +193,7 @@ func (o *PowerOutlet) GetModule() BriefModule { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool) { +func (o *PowerOutlet) GetModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -235,8 +209,8 @@ func (o *PowerOutlet) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *PowerOutlet) SetModule(v BriefModule) { +// SetModule gets a reference to the given NullableModule and assigns it to the Module field. +func (o *PowerOutlet) SetModule(v Module) { o.Module.Set(&v) } @@ -350,9 +324,9 @@ func (o *PowerOutlet) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetPowerPort() BriefPowerPort { +func (o *PowerOutlet) GetPowerPort() PowerPort { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPort + var ret PowerPort return ret } return *o.PowerPort.Get() @@ -361,7 +335,7 @@ func (o *PowerOutlet) GetPowerPort() BriefPowerPort { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool) { +func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool) { if o == nil { return nil, false } @@ -377,8 +351,8 @@ func (o *PowerOutlet) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPort and assigns it to the PowerPort field. -func (o *PowerOutlet) SetPowerPort(v BriefPowerPort) { +// SetPowerPort gets a reference to the given NullablePowerPort and assigns it to the PowerPort field. +func (o *PowerOutlet) SetPowerPort(v PowerPort) { o.PowerPort.Set(&v) } @@ -500,10 +474,10 @@ func (o *PowerOutlet) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *PowerOutlet) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *PowerOutlet) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -513,7 +487,7 @@ func (o *PowerOutlet) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetCableOk() (*BriefCable, bool) { +func (o *PowerOutlet) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -521,7 +495,7 @@ func (o *PowerOutlet) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *PowerOutlet) SetCable(v BriefCable) { +func (o *PowerOutlet) SetCable(v Cable) { o.Cable.Set(&v) } @@ -574,33 +548,30 @@ func (o *PowerOutlet) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *PowerOutlet) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetConnectedEndpoints returns the ConnectedEndpoints field value -// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -612,9 +583,8 @@ func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.ConnectedEndpoints) { + if o == nil { return nil, false } return o.ConnectedEndpoints, true @@ -626,29 +596,27 @@ func (o *PowerOutlet) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value -// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetConnectedEndpointsType() string { - if o == nil || o.ConnectedEndpointsType.Get() == nil { + if o == nil { var ret string return ret } - return *o.ConnectedEndpointsType.Get() + return o.ConnectedEndpointsType } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() + return &o.ConnectedEndpointsType, true } // SetConnectedEndpointsType sets field value func (o *PowerOutlet) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType.Set(&v) + o.ConnectedEndpointsType = v } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -827,7 +795,6 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -855,11 +822,9 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() - if o.ConnectedEndpoints != nil { - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - } - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -885,7 +850,6 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -930,7 +894,6 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go index a34f7b7bb..95698360a 100644 --- a/model_power_outlet_feed_leg.go +++ b/model_power_outlet_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go index 91f98a31a..8a906036c 100644 --- a/model_power_outlet_feed_leg_label.go +++ b/model_power_outlet_feed_leg_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go index 84daef03a..bc3abd6e5 100644 --- a/model_power_outlet_feed_leg_value.go +++ b/model_power_outlet_feed_leg_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go index 188f9158c..122e3eb78 100644 --- a/model_power_outlet_request.go +++ b/model_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PowerOutletRequest{} // PowerOutletRequest Adds support for custom fields and tags. type PowerOutletRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` + PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _PowerOutletRequest PowerOutletRequest // 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 NewPowerOutletRequest(device BriefDeviceRequest, name string) *PowerOutletRequest { +func NewPowerOutletRequest(device DeviceRequest, name string) *PowerOutletRequest { this := PowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest { } // GetDevice returns the Device field value -func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest { +func (o *PowerOutletRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest) { +func (o *PowerOutletRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetModule() BriefModuleRequest { +func (o *PowerOutletRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *PowerOutletRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PowerOutletRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *PowerOutletRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } @@ -224,9 +224,9 @@ func (o *PowerOutletRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest { +func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortRequest + var ret PowerPortRequest return ret } return *o.PowerPort.Get() @@ -235,7 +235,7 @@ func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { +func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. -func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { +// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. +func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go index 0552bf3aa..7cb04c40c 100644 --- a/model_power_outlet_request_feed_leg.go +++ b/model_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go index 88ae2d3d6..ab5cb9272 100644 --- a/model_power_outlet_request_type.go +++ b/model_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PowerOutletRequestType string // List of PowerOutletRequest_type @@ -81,7 +81,6 @@ const ( POWEROUTLETREQUESTTYPE_NEMA_L15_60R PowerOutletRequestType = "nema-l15-60r" POWEROUTLETREQUESTTYPE_NEMA_L21_20R PowerOutletRequestType = "nema-l21-20r" POWEROUTLETREQUESTTYPE_NEMA_L21_30R PowerOutletRequestType = "nema-l21-30r" - POWEROUTLETREQUESTTYPE_NEMA_L22_20R PowerOutletRequestType = "nema-l22-20r" POWEROUTLETREQUESTTYPE_NEMA_L22_30R PowerOutletRequestType = "nema-l22-30r" POWEROUTLETREQUESTTYPE_CS6360_C PowerOutletRequestType = "CS6360C" POWEROUTLETREQUESTTYPE_CS6364_C PowerOutletRequestType = "CS6364C" @@ -183,7 +182,6 @@ var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{ "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", - "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go index fc87fff21..8d700a116 100644 --- a/model_power_outlet_template.go +++ b/model_power_outlet_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,21 @@ var _ MappedNullable = &PowerOutletTemplate{} // PowerOutletTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableDeviceType `json:"device_type,omitempty"` + ModuleType NullableModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortTemplate `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletType `json:"type,omitempty"` + PowerPort NullablePowerPortTemplate `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -137,9 +137,9 @@ func (o *PowerOutletTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType { +func (o *PowerOutletTemplate) GetDeviceType() DeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType + var ret DeviceType return ret } return *o.DeviceType.Get() @@ -148,7 +148,7 @@ func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { +func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool) { if o == nil { return nil, false } @@ -164,8 +164,8 @@ func (o *PowerOutletTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType) { +// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. +func (o *PowerOutletTemplate) SetDeviceType(v DeviceType) { o.DeviceType.Set(&v) } @@ -180,9 +180,9 @@ func (o *PowerOutletTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetModuleType() BriefModuleType { +func (o *PowerOutletTemplate) GetModuleType() ModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType + var ret ModuleType return ret } return *o.ModuleType.Get() @@ -191,7 +191,7 @@ func (o *PowerOutletTemplate) GetModuleType() BriefModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { +func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool) { if o == nil { return nil, false } @@ -207,8 +207,8 @@ func (o *PowerOutletTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType) { +// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. +func (o *PowerOutletTemplate) SetModuleType(v ModuleType) { o.ModuleType.Set(&v) } @@ -322,9 +322,9 @@ func (o *PowerOutletTemplate) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate { +func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortTemplate + var ret PowerPortTemplate return ret } return *o.PowerPort.Get() @@ -333,7 +333,7 @@ func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool) { +func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool) { if o == nil { return nil, false } @@ -349,8 +349,8 @@ func (o *PowerOutletTemplate) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplate and assigns it to the PowerPort field. -func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate) { +// SetPowerPort gets a reference to the given NullablePowerPortTemplate and assigns it to the PowerPort field. +func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go index ec3e31492..55567b581 100644 --- a/model_power_outlet_template_request.go +++ b/model_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{} // PowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletRequestType `json:"type,omitempty"` + PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewPowerOutletTemplateRequestWithDefaults() *PowerOutletTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -239,9 +239,9 @@ func (o *PowerOutletTemplateRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { +func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortTemplateRequest + var ret PowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -250,7 +250,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateReques // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { +func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -266,8 +266,8 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go index be175b54a..2f39149ab 100644 --- a/model_power_outlet_type.go +++ b/model_power_outlet_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go index 48a4d6333..4b09dda97 100644 --- a/model_power_outlet_type_label.go +++ b/model_power_outlet_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -81,7 +81,6 @@ const ( POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R" POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R" POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R" - POWEROUTLETTYPELABEL_NEMA_L22_20_R PowerOutletTypeLabel = "NEMA L22-20R" POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R" POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C" POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C" @@ -182,7 +181,6 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "NEMA L15-60R", "NEMA L21-20R", "NEMA L21-30R", - "NEMA L22-20R", "NEMA L22-30R", "CS6360C", "CS6364C", diff --git a/model_power_panel.go b/model_power_panel.go index c6dc32842..9548ab75a 100644 --- a/model_power_panel.go +++ b/model_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the PowerPanel type satisfies the MappedNullable interface at compile time @@ -21,20 +20,12 @@ var _ MappedNullable = &PowerPanel{} // PowerPanel Adds support for custom fields and tags. type PowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Site BriefSite `json:"site"` - Location NullableBriefLocation `json:"location,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -44,17 +35,13 @@ type _PowerPanel PowerPanel // 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 NewPowerPanel(id int32, url string, displayUrl string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime) *PowerPanel { +func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *PowerPanel { this := PowerPanel{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display - this.Site = site this.Name = name this.PowerfeedCount = powerfeedCount - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -114,30 +101,6 @@ func (o *PowerPanel) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *PowerPanel) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *PowerPanel) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *PowerPanel) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *PowerPanel) GetDisplay() string { if o == nil { @@ -162,73 +125,6 @@ func (o *PowerPanel) SetDisplay(v string) { o.Display = v } -// GetSite returns the Site field value -func (o *PowerPanel) GetSite() BriefSite { - if o == nil { - var ret BriefSite - return ret - } - - return o.Site -} - -// GetSiteOk returns a tuple with the Site field value -// and a boolean to check if the value has been set. -func (o *PowerPanel) GetSiteOk() (*BriefSite, bool) { - if o == nil { - return nil, false - } - return &o.Site, true -} - -// SetSite sets field value -func (o *PowerPanel) SetSite(v BriefSite) { - o.Site = v -} - -// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPanel) GetLocation() BriefLocation { - if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocation - return ret - } - return *o.Location.Get() -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool) { - if o == nil { - return nil, false - } - return o.Location.Get(), o.Location.IsSet() -} - -// HasLocation returns a boolean if a field has been set. -func (o *PowerPanel) HasLocation() bool { - if o != nil && o.Location.IsSet() { - return true - } - - return false -} - -// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. -func (o *PowerPanel) SetLocation(v BriefLocation) { - o.Location.Set(&v) -} - -// SetLocationNil sets the value for Location to be an explicit nil -func (o *PowerPanel) SetLocationNil() { - o.Location.Set(nil) -} - -// UnsetLocation ensures that no value is present for Location, not even an explicit nil -func (o *PowerPanel) UnsetLocation() { - o.Location.Unset() -} - // GetName returns the Name field value func (o *PowerPanel) GetName() string { if o == nil { @@ -285,102 +181,6 @@ func (o *PowerPanel) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PowerPanel) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPanel) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PowerPanel) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PowerPanel) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *PowerPanel) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPanel) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *PowerPanel) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *PowerPanel) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *PowerPanel) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPanel) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *PowerPanel) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *PowerPanel) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - // GetPowerfeedCount returns the PowerfeedCount field value func (o *PowerPanel) GetPowerfeedCount() int64 { if o == nil { @@ -405,58 +205,6 @@ func (o *PowerPanel) SetPowerfeedCount(v int64) { o.PowerfeedCount = v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *PowerPanel) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPanel) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *PowerPanel) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *PowerPanel) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *PowerPanel) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o PowerPanel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -469,28 +217,12 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - toSerialize["site"] = o.Site - if o.Location.IsSet() { - toSerialize["location"] = o.Location.Get() - } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } toSerialize["powerfeed_count"] = o.PowerfeedCount - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -506,13 +238,9 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", - "site", "name", "powerfeed_count", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -544,18 +272,10 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "site") - delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") delete(additionalProperties, "powerfeed_count") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_panel_request.go b/model_power_panel_request.go index 7d32ca37f..41ab3ae46 100644 --- a/model_power_panel_request.go +++ b/model_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,8 @@ var _ MappedNullable = &PowerPanelRequest{} // PowerPanelRequest Adds support for custom fields and tags. type PowerPanelRequest struct { - Site BriefSiteRequest `json:"site"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,9 +31,8 @@ type _PowerPanelRequest PowerPanelRequest // 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 NewPowerPanelRequest(site BriefSiteRequest, name string) *PowerPanelRequest { +func NewPowerPanelRequest(name string) *PowerPanelRequest { this := PowerPanelRequest{} - this.Site = site this.Name = name return &this } @@ -51,73 +45,6 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest { return &this } -// GetSite returns the Site field value -func (o *PowerPanelRequest) GetSite() BriefSiteRequest { - if o == nil { - var ret BriefSiteRequest - return ret - } - - return o.Site -} - -// GetSiteOk returns a tuple with the Site field value -// and a boolean to check if the value has been set. -func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { - if o == nil { - return nil, false - } - return &o.Site, true -} - -// SetSite sets field value -func (o *PowerPanelRequest) SetSite(v BriefSiteRequest) { - o.Site = v -} - -// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPanelRequest) GetLocation() BriefLocationRequest { - if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest - return ret - } - return *o.Location.Get() -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { - if o == nil { - return nil, false - } - return o.Location.Get(), o.Location.IsSet() -} - -// HasLocation returns a boolean if a field has been set. -func (o *PowerPanelRequest) HasLocation() bool { - if o != nil && o.Location.IsSet() { - return true - } - - return false -} - -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest) { - o.Location.Set(&v) -} - -// SetLocationNil sets the value for Location to be an explicit nil -func (o *PowerPanelRequest) SetLocationNil() { - o.Location.Set(nil) -} - -// UnsetLocation ensures that no value is present for Location, not even an explicit nil -func (o *PowerPanelRequest) UnsetLocation() { - o.Location.Unset() -} - // GetName returns the Name field value func (o *PowerPanelRequest) GetName() string { if o == nil { @@ -174,102 +101,6 @@ func (o *PowerPanelRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PowerPanelRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPanelRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PowerPanelRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PowerPanelRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *PowerPanelRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *PowerPanelRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *PowerPanelRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *PowerPanelRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPanelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *PowerPanelRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -280,23 +111,10 @@ func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["site"] = o.Site - if o.Location.IsSet() { - toSerialize["location"] = o.Location.Get() - } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -310,7 +128,6 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "site", "name", } @@ -341,13 +158,8 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "site") - delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port.go b/model_power_port.go index ecd4322f6..bfc69ca0f 100644 --- a/model_power_port.go +++ b/model_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the PowerPort type satisfies the MappedNullable interface at compile time @@ -21,37 +20,15 @@ var _ MappedNullable = &PowerPort{} // PowerPort Adds support for custom fields and tags. type PowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` - // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerPortType `json:"type,omitempty"` - // Maximum power draw (watts) - MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` - // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` - // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` - // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Cable NullableCable `json:"cable"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerPort PowerPort @@ -60,23 +37,14 @@ type _PowerPort PowerPort // 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 NewPowerPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerPort { +func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool) *PowerPort { this := PowerPort{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name this.Cable = cable - this.CableEnd = cableEnd - this.LinkPeers = linkPeers - this.LinkPeersType = linkPeersType - this.ConnectedEndpoints = connectedEndpoints - this.ConnectedEndpointsType = connectedEndpointsType - this.ConnectedEndpointsReachable = connectedEndpointsReachable - this.Created = created - this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -137,30 +105,6 @@ func (o *PowerPort) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *PowerPort) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *PowerPort) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *PowerPort) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *PowerPort) GetDisplay() string { if o == nil { @@ -186,9 +130,9 @@ func (o *PowerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerPort) GetDevice() BriefDevice { +func (o *PowerPort) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -197,7 +141,7 @@ func (o *PowerPort) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool) { +func (o *PowerPort) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -205,53 +149,10 @@ func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *PowerPort) SetDevice(v BriefDevice) { +func (o *PowerPort) SetDevice(v Device) { o.Device = v } -// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPort) GetModule() BriefModule { - if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule - return ret - } - return *o.Module.Get() -} - -// GetModuleOk returns a tuple with the Module field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetModuleOk() (*BriefModule, bool) { - if o == nil { - return nil, false - } - return o.Module.Get(), o.Module.IsSet() -} - -// HasModule returns a boolean if a field has been set. -func (o *PowerPort) HasModule() bool { - if o != nil && o.Module.IsSet() { - return true - } - - return false -} - -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *PowerPort) SetModule(v BriefModule) { - o.Module.Set(&v) -} - -// SetModuleNil sets the value for Module to be an explicit nil -func (o *PowerPort) SetModuleNil() { - o.Module.Set(nil) -} - -// UnsetModule ensures that no value is present for Module, not even an explicit nil -func (o *PowerPort) UnsetModule() { - o.Module.Unset() -} - // GetName returns the Name field value func (o *PowerPort) GetName() string { if o == nil { @@ -276,167 +177,6 @@ func (o *PowerPort) SetName(v string) { o.Name = v } -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *PowerPort) GetLabel() string { - if o == nil || IsNil(o.Label) { - var ret string - return ret - } - return *o.Label -} - -// GetLabelOk returns a tuple with the Label field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPort) GetLabelOk() (*string, bool) { - if o == nil || IsNil(o.Label) { - return nil, false - } - return o.Label, true -} - -// HasLabel returns a boolean if a field has been set. -func (o *PowerPort) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *PowerPort) SetLabel(v string) { - o.Label = &v -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPort) GetType() PowerPortType { - if o == nil || IsNil(o.Type.Get()) { - var ret PowerPortType - return ret - } - return *o.Type.Get() -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetTypeOk() (*PowerPortType, bool) { - if o == nil { - return nil, false - } - return o.Type.Get(), o.Type.IsSet() -} - -// HasType returns a boolean if a field has been set. -func (o *PowerPort) HasType() bool { - if o != nil && o.Type.IsSet() { - return true - } - - return false -} - -// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. -func (o *PowerPort) SetType(v PowerPortType) { - o.Type.Set(&v) -} - -// SetTypeNil sets the value for Type to be an explicit nil -func (o *PowerPort) SetTypeNil() { - o.Type.Set(nil) -} - -// UnsetType ensures that no value is present for Type, not even an explicit nil -func (o *PowerPort) UnsetType() { - o.Type.Unset() -} - -// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPort) GetMaximumDraw() int32 { - if o == nil || IsNil(o.MaximumDraw.Get()) { - var ret int32 - return ret - } - return *o.MaximumDraw.Get() -} - -// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetMaximumDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() -} - -// HasMaximumDraw returns a boolean if a field has been set. -func (o *PowerPort) HasMaximumDraw() bool { - if o != nil && o.MaximumDraw.IsSet() { - return true - } - - return false -} - -// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. -func (o *PowerPort) SetMaximumDraw(v int32) { - o.MaximumDraw.Set(&v) -} - -// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil -func (o *PowerPort) SetMaximumDrawNil() { - o.MaximumDraw.Set(nil) -} - -// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -func (o *PowerPort) UnsetMaximumDraw() { - o.MaximumDraw.Unset() -} - -// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPort) GetAllocatedDraw() int32 { - if o == nil || IsNil(o.AllocatedDraw.Get()) { - var ret int32 - return ret - } - return *o.AllocatedDraw.Get() -} - -// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() -} - -// HasAllocatedDraw returns a boolean if a field has been set. -func (o *PowerPort) HasAllocatedDraw() bool { - if o != nil && o.AllocatedDraw.IsSet() { - return true - } - - return false -} - -// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. -func (o *PowerPort) SetAllocatedDraw(v int32) { - o.AllocatedDraw.Set(&v) -} - -// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil -func (o *PowerPort) SetAllocatedDrawNil() { - o.AllocatedDraw.Set(nil) -} - -// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil -func (o *PowerPort) UnsetAllocatedDraw() { - o.AllocatedDraw.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPort) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -469,43 +209,11 @@ func (o *PowerPort) SetDescription(v string) { o.Description = &v } -// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. -func (o *PowerPort) GetMarkConnected() bool { - if o == nil || IsNil(o.MarkConnected) { - var ret bool - return ret - } - return *o.MarkConnected -} - -// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPort) GetMarkConnectedOk() (*bool, bool) { - if o == nil || IsNil(o.MarkConnected) { - return nil, false - } - return o.MarkConnected, true -} - -// HasMarkConnected returns a boolean if a field has been set. -func (o *PowerPort) HasMarkConnected() bool { - if o != nil && !IsNil(o.MarkConnected) { - return true - } - - return false -} - -// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. -func (o *PowerPort) SetMarkConnected(v bool) { - o.MarkConnected = &v -} - // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *PowerPort) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *PowerPort) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -515,7 +223,7 @@ func (o *PowerPort) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetCableOk() (*BriefCable, bool) { +func (o *PowerPort) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -523,276 +231,10 @@ func (o *PowerPort) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *PowerPort) SetCable(v BriefCable) { +func (o *PowerPort) SetCable(v Cable) { o.Cable.Set(&v) } -// GetCableEnd returns the CableEnd field value -func (o *PowerPort) GetCableEnd() string { - if o == nil { - var ret string - return ret - } - - return o.CableEnd -} - -// GetCableEndOk returns a tuple with the CableEnd field value -// and a boolean to check if the value has been set. -func (o *PowerPort) GetCableEndOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.CableEnd, true -} - -// SetCableEnd sets field value -func (o *PowerPort) SetCableEnd(v string) { - o.CableEnd = v -} - -// GetLinkPeers returns the LinkPeers field value -func (o *PowerPort) GetLinkPeers() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.LinkPeers -} - -// GetLinkPeersOk returns a tuple with the LinkPeers field value -// and a boolean to check if the value has been set. -func (o *PowerPort) GetLinkPeersOk() ([]interface{}, bool) { - if o == nil { - return nil, false - } - return o.LinkPeers, true -} - -// SetLinkPeers sets field value -func (o *PowerPort) SetLinkPeers(v []interface{}) { - o.LinkPeers = v -} - -// GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned -func (o *PowerPort) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { - var ret string - return ret - } - - return *o.LinkPeersType.Get() -} - -// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() -} - -// SetLinkPeersType sets field value -func (o *PowerPort) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) -} - -// GetConnectedEndpoints returns the ConnectedEndpoints field value -// If the value is explicit nil, the zero value for []interface{} will be returned -func (o *PowerPort) GetConnectedEndpoints() []interface{} { - if o == nil { - var ret []interface{} - return ret - } - - return o.ConnectedEndpoints -} - -// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil || IsNil(o.ConnectedEndpoints) { - return nil, false - } - return o.ConnectedEndpoints, true -} - -// SetConnectedEndpoints sets field value -func (o *PowerPort) SetConnectedEndpoints(v []interface{}) { - o.ConnectedEndpoints = v -} - -// GetConnectedEndpointsType returns the ConnectedEndpointsType field value -// If the value is explicit nil, the zero value for string will be returned -func (o *PowerPort) GetConnectedEndpointsType() string { - if o == nil || o.ConnectedEndpointsType.Get() == nil { - var ret string - return ret - } - - return *o.ConnectedEndpointsType.Get() -} - -// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() -} - -// SetConnectedEndpointsType sets field value -func (o *PowerPort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType.Set(&v) -} - -// GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value -func (o *PowerPort) GetConnectedEndpointsReachable() bool { - if o == nil { - var ret bool - return ret - } - - return o.ConnectedEndpointsReachable -} - -// GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field value -// and a boolean to check if the value has been set. -func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool) { - if o == nil { - return nil, false - } - return &o.ConnectedEndpointsReachable, true -} - -// SetConnectedEndpointsReachable sets field value -func (o *PowerPort) SetConnectedEndpointsReachable(v bool) { - o.ConnectedEndpointsReachable = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *PowerPort) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPort) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *PowerPort) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *PowerPort) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *PowerPort) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPort) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *PowerPort) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *PowerPort) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *PowerPort) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *PowerPort) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *PowerPort) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *PowerPort) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetOccupied returns the Occupied field value func (o *PowerPort) GetOccupied() bool { if o == nil { @@ -829,48 +271,13 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device - if o.Module.IsSet() { - toSerialize["module"] = o.Module.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Label) { - toSerialize["label"] = o.Label - } - if o.Type.IsSet() { - toSerialize["type"] = o.Type.Get() - } - if o.MaximumDraw.IsSet() { - toSerialize["maximum_draw"] = o.MaximumDraw.Get() - } - if o.AllocatedDraw.IsSet() { - toSerialize["allocated_draw"] = o.AllocatedDraw.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.MarkConnected) { - toSerialize["mark_connected"] = o.MarkConnected - } toSerialize["cable"] = o.Cable.Get() - toSerialize["cable_end"] = o.CableEnd - toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() - if o.ConnectedEndpoints != nil { - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - } - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() - toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -887,19 +294,10 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", "cable", - "cable_end", - "link_peers", - "link_peers_type", - "connected_endpoints", - "connected_endpoints_type", - "connected_endpoints_reachable", - "created", - "last_updated", "_occupied", } @@ -932,28 +330,11 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") - delete(additionalProperties, "module") delete(additionalProperties, "name") - delete(additionalProperties, "label") - delete(additionalProperties, "type") - delete(additionalProperties, "maximum_draw") - delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") - delete(additionalProperties, "mark_connected") delete(additionalProperties, "cable") - delete(additionalProperties, "cable_end") - delete(additionalProperties, "link_peers") - delete(additionalProperties, "link_peers_type") - delete(additionalProperties, "connected_endpoints") - delete(additionalProperties, "connected_endpoints_type") - delete(additionalProperties, "connected_endpoints_reachable") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "_occupied") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request.go b/model_power_port_request.go index 8db3fbd7e..b699633c5 100644 --- a/model_power_port_request.go +++ b/model_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,9 @@ var _ MappedNullable = &PowerPortRequest{} // PowerPortRequest Adds support for custom fields and tags. type PowerPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` - // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerPortRequestType `json:"type,omitempty"` - // Maximum power draw (watts) - MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` - // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` - // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Device DeviceRequest `json:"device"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +32,7 @@ type _PowerPortRequest PowerPortRequest // 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 NewPowerPortRequest(device BriefDeviceRequest, name string) *PowerPortRequest { +func NewPowerPortRequest(device DeviceRequest, name string) *PowerPortRequest { this := PowerPortRequest{} this.Device = device this.Name = name @@ -60,9 +48,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest { } // GetDevice returns the Device field value -func (o *PowerPortRequest) GetDevice() BriefDeviceRequest { +func (o *PowerPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -71,7 +59,7 @@ func (o *PowerPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -79,53 +67,10 @@ func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *PowerPortRequest) SetDevice(v DeviceRequest) { o.Device = v } -// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortRequest) GetModule() BriefModuleRequest { - if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest - return ret - } - return *o.Module.Get() -} - -// GetModuleOk returns a tuple with the Module field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.Module.Get(), o.Module.IsSet() -} - -// HasModule returns a boolean if a field has been set. -func (o *PowerPortRequest) HasModule() bool { - if o != nil && o.Module.IsSet() { - return true - } - - return false -} - -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *PowerPortRequest) SetModule(v BriefModuleRequest) { - o.Module.Set(&v) -} - -// SetModuleNil sets the value for Module to be an explicit nil -func (o *PowerPortRequest) SetModuleNil() { - o.Module.Set(nil) -} - -// UnsetModule ensures that no value is present for Module, not even an explicit nil -func (o *PowerPortRequest) UnsetModule() { - o.Module.Unset() -} - // GetName returns the Name field value func (o *PowerPortRequest) GetName() string { if o == nil { @@ -150,167 +95,6 @@ func (o *PowerPortRequest) SetName(v string) { o.Name = v } -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *PowerPortRequest) GetLabel() string { - if o == nil || IsNil(o.Label) { - var ret string - return ret - } - return *o.Label -} - -// GetLabelOk returns a tuple with the Label field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetLabelOk() (*string, bool) { - if o == nil || IsNil(o.Label) { - return nil, false - } - return o.Label, true -} - -// HasLabel returns a boolean if a field has been set. -func (o *PowerPortRequest) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *PowerPortRequest) SetLabel(v string) { - o.Label = &v -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortRequest) GetType() PowerPortRequestType { - if o == nil || IsNil(o.Type.Get()) { - var ret PowerPortRequestType - return ret - } - return *o.Type.Get() -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool) { - if o == nil { - return nil, false - } - return o.Type.Get(), o.Type.IsSet() -} - -// HasType returns a boolean if a field has been set. -func (o *PowerPortRequest) HasType() bool { - if o != nil && o.Type.IsSet() { - return true - } - - return false -} - -// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. -func (o *PowerPortRequest) SetType(v PowerPortRequestType) { - o.Type.Set(&v) -} - -// SetTypeNil sets the value for Type to be an explicit nil -func (o *PowerPortRequest) SetTypeNil() { - o.Type.Set(nil) -} - -// UnsetType ensures that no value is present for Type, not even an explicit nil -func (o *PowerPortRequest) UnsetType() { - o.Type.Unset() -} - -// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortRequest) GetMaximumDraw() int32 { - if o == nil || IsNil(o.MaximumDraw.Get()) { - var ret int32 - return ret - } - return *o.MaximumDraw.Get() -} - -// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() -} - -// HasMaximumDraw returns a boolean if a field has been set. -func (o *PowerPortRequest) HasMaximumDraw() bool { - if o != nil && o.MaximumDraw.IsSet() { - return true - } - - return false -} - -// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. -func (o *PowerPortRequest) SetMaximumDraw(v int32) { - o.MaximumDraw.Set(&v) -} - -// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil -func (o *PowerPortRequest) SetMaximumDrawNil() { - o.MaximumDraw.Set(nil) -} - -// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -func (o *PowerPortRequest) UnsetMaximumDraw() { - o.MaximumDraw.Unset() -} - -// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortRequest) GetAllocatedDraw() int32 { - if o == nil || IsNil(o.AllocatedDraw.Get()) { - var ret int32 - return ret - } - return *o.AllocatedDraw.Get() -} - -// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() -} - -// HasAllocatedDraw returns a boolean if a field has been set. -func (o *PowerPortRequest) HasAllocatedDraw() bool { - if o != nil && o.AllocatedDraw.IsSet() { - return true - } - - return false -} - -// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. -func (o *PowerPortRequest) SetAllocatedDraw(v int32) { - o.AllocatedDraw.Set(&v) -} - -// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil -func (o *PowerPortRequest) SetAllocatedDrawNil() { - o.AllocatedDraw.Set(nil) -} - -// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil -func (o *PowerPortRequest) UnsetAllocatedDraw() { - o.AllocatedDraw.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -343,102 +127,6 @@ func (o *PowerPortRequest) SetDescription(v string) { o.Description = &v } -// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. -func (o *PowerPortRequest) GetMarkConnected() bool { - if o == nil || IsNil(o.MarkConnected) { - var ret bool - return ret - } - return *o.MarkConnected -} - -// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool) { - if o == nil || IsNil(o.MarkConnected) { - return nil, false - } - return o.MarkConnected, true -} - -// HasMarkConnected returns a boolean if a field has been set. -func (o *PowerPortRequest) HasMarkConnected() bool { - if o != nil && !IsNil(o.MarkConnected) { - return true - } - - return false -} - -// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. -func (o *PowerPortRequest) SetMarkConnected(v bool) { - o.MarkConnected = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *PowerPortRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *PowerPortRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *PowerPortRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *PowerPortRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *PowerPortRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *PowerPortRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o PowerPortRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -450,34 +138,10 @@ func (o PowerPortRequest) MarshalJSON() ([]byte, error) { func (o PowerPortRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device - if o.Module.IsSet() { - toSerialize["module"] = o.Module.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Label) { - toSerialize["label"] = o.Label - } - if o.Type.IsSet() { - toSerialize["type"] = o.Type.Get() - } - if o.MaximumDraw.IsSet() { - toSerialize["maximum_draw"] = o.MaximumDraw.Get() - } - if o.AllocatedDraw.IsSet() { - toSerialize["allocated_draw"] = o.AllocatedDraw.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.MarkConnected) { - toSerialize["mark_connected"] = o.MarkConnected - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -523,16 +187,8 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") - delete(additionalProperties, "module") delete(additionalProperties, "name") - delete(additionalProperties, "label") - delete(additionalProperties, "type") - delete(additionalProperties, "maximum_draw") - delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") - delete(additionalProperties, "mark_connected") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request_type.go b/model_power_port_request_type.go index db4361bf7..950e7bb66 100644 --- a/model_power_port_request_type.go +++ b/model_power_port_request_type.go @@ -20,111 +20,111 @@ type PowerPortRequestType string // List of PowerPortRequest_type const ( - POWERPORTREQUESTTYPE_IEC_60320_C6 PowerPortRequestType = "iec-60320-c6" - POWERPORTREQUESTTYPE_IEC_60320_C8 PowerPortRequestType = "iec-60320-c8" - POWERPORTREQUESTTYPE_IEC_60320_C14 PowerPortRequestType = "iec-60320-c14" - POWERPORTREQUESTTYPE_IEC_60320_C16 PowerPortRequestType = "iec-60320-c16" - POWERPORTREQUESTTYPE_IEC_60320_C20 PowerPortRequestType = "iec-60320-c20" - POWERPORTREQUESTTYPE_IEC_60320_C22 PowerPortRequestType = "iec-60320-c22" - POWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PowerPortRequestType = "iec-60309-p-n-e-4h" - POWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PowerPortRequestType = "iec-60309-p-n-e-6h" - POWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PowerPortRequestType = "iec-60309-p-n-e-9h" - POWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PowerPortRequestType = "iec-60309-2p-e-4h" - POWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PowerPortRequestType = "iec-60309-2p-e-6h" - POWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PowerPortRequestType = "iec-60309-2p-e-9h" - POWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PowerPortRequestType = "iec-60309-3p-e-4h" - POWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PowerPortRequestType = "iec-60309-3p-e-6h" - POWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PowerPortRequestType = "iec-60309-3p-e-9h" - POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PowerPortRequestType = "iec-60309-3p-n-e-4h" - POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PowerPortRequestType = "iec-60309-3p-n-e-6h" - POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PowerPortRequestType = "iec-60309-3p-n-e-9h" - POWERPORTREQUESTTYPE_IEC_60906_1 PowerPortRequestType = "iec-60906-1" - POWERPORTREQUESTTYPE_NBR_14136_10A PowerPortRequestType = "nbr-14136-10a" - POWERPORTREQUESTTYPE_NBR_14136_20A PowerPortRequestType = "nbr-14136-20a" - POWERPORTREQUESTTYPE_NEMA_1_15P PowerPortRequestType = "nema-1-15p" - POWERPORTREQUESTTYPE_NEMA_5_15P PowerPortRequestType = "nema-5-15p" - POWERPORTREQUESTTYPE_NEMA_5_20P PowerPortRequestType = "nema-5-20p" - POWERPORTREQUESTTYPE_NEMA_5_30P PowerPortRequestType = "nema-5-30p" - POWERPORTREQUESTTYPE_NEMA_5_50P PowerPortRequestType = "nema-5-50p" - POWERPORTREQUESTTYPE_NEMA_6_15P PowerPortRequestType = "nema-6-15p" - POWERPORTREQUESTTYPE_NEMA_6_20P PowerPortRequestType = "nema-6-20p" - POWERPORTREQUESTTYPE_NEMA_6_30P PowerPortRequestType = "nema-6-30p" - POWERPORTREQUESTTYPE_NEMA_6_50P PowerPortRequestType = "nema-6-50p" - POWERPORTREQUESTTYPE_NEMA_10_30P PowerPortRequestType = "nema-10-30p" - POWERPORTREQUESTTYPE_NEMA_10_50P PowerPortRequestType = "nema-10-50p" - POWERPORTREQUESTTYPE_NEMA_14_20P PowerPortRequestType = "nema-14-20p" - POWERPORTREQUESTTYPE_NEMA_14_30P PowerPortRequestType = "nema-14-30p" - POWERPORTREQUESTTYPE_NEMA_14_50P PowerPortRequestType = "nema-14-50p" - POWERPORTREQUESTTYPE_NEMA_14_60P PowerPortRequestType = "nema-14-60p" - POWERPORTREQUESTTYPE_NEMA_15_15P PowerPortRequestType = "nema-15-15p" - POWERPORTREQUESTTYPE_NEMA_15_20P PowerPortRequestType = "nema-15-20p" - POWERPORTREQUESTTYPE_NEMA_15_30P PowerPortRequestType = "nema-15-30p" - POWERPORTREQUESTTYPE_NEMA_15_50P PowerPortRequestType = "nema-15-50p" - POWERPORTREQUESTTYPE_NEMA_15_60P PowerPortRequestType = "nema-15-60p" - POWERPORTREQUESTTYPE_NEMA_L1_15P PowerPortRequestType = "nema-l1-15p" - POWERPORTREQUESTTYPE_NEMA_L5_15P PowerPortRequestType = "nema-l5-15p" - POWERPORTREQUESTTYPE_NEMA_L5_20P PowerPortRequestType = "nema-l5-20p" - POWERPORTREQUESTTYPE_NEMA_L5_30P PowerPortRequestType = "nema-l5-30p" - POWERPORTREQUESTTYPE_NEMA_L5_50P PowerPortRequestType = "nema-l5-50p" - POWERPORTREQUESTTYPE_NEMA_L6_15P PowerPortRequestType = "nema-l6-15p" - POWERPORTREQUESTTYPE_NEMA_L6_20P PowerPortRequestType = "nema-l6-20p" - POWERPORTREQUESTTYPE_NEMA_L6_30P PowerPortRequestType = "nema-l6-30p" - POWERPORTREQUESTTYPE_NEMA_L6_50P PowerPortRequestType = "nema-l6-50p" - POWERPORTREQUESTTYPE_NEMA_L10_30P PowerPortRequestType = "nema-l10-30p" - POWERPORTREQUESTTYPE_NEMA_L14_20P PowerPortRequestType = "nema-l14-20p" - POWERPORTREQUESTTYPE_NEMA_L14_30P PowerPortRequestType = "nema-l14-30p" - POWERPORTREQUESTTYPE_NEMA_L14_50P PowerPortRequestType = "nema-l14-50p" - POWERPORTREQUESTTYPE_NEMA_L14_60P PowerPortRequestType = "nema-l14-60p" - POWERPORTREQUESTTYPE_NEMA_L15_20P PowerPortRequestType = "nema-l15-20p" - POWERPORTREQUESTTYPE_NEMA_L15_30P PowerPortRequestType = "nema-l15-30p" - POWERPORTREQUESTTYPE_NEMA_L15_50P PowerPortRequestType = "nema-l15-50p" - POWERPORTREQUESTTYPE_NEMA_L15_60P PowerPortRequestType = "nema-l15-60p" - POWERPORTREQUESTTYPE_NEMA_L21_20P PowerPortRequestType = "nema-l21-20p" - POWERPORTREQUESTTYPE_NEMA_L21_30P PowerPortRequestType = "nema-l21-30p" - POWERPORTREQUESTTYPE_NEMA_L22_20P PowerPortRequestType = "nema-l22-20p" - POWERPORTREQUESTTYPE_NEMA_L22_30P PowerPortRequestType = "nema-l22-30p" - POWERPORTREQUESTTYPE_CS6361C PowerPortRequestType = "cs6361c" - POWERPORTREQUESTTYPE_CS6365C PowerPortRequestType = "cs6365c" - POWERPORTREQUESTTYPE_CS8165C PowerPortRequestType = "cs8165c" - POWERPORTREQUESTTYPE_CS8265C PowerPortRequestType = "cs8265c" - POWERPORTREQUESTTYPE_CS8365C PowerPortRequestType = "cs8365c" - POWERPORTREQUESTTYPE_CS8465C PowerPortRequestType = "cs8465c" - POWERPORTREQUESTTYPE_ITA_C PowerPortRequestType = "ita-c" - POWERPORTREQUESTTYPE_ITA_E PowerPortRequestType = "ita-e" - POWERPORTREQUESTTYPE_ITA_F PowerPortRequestType = "ita-f" - POWERPORTREQUESTTYPE_ITA_EF PowerPortRequestType = "ita-ef" - POWERPORTREQUESTTYPE_ITA_G PowerPortRequestType = "ita-g" - POWERPORTREQUESTTYPE_ITA_H PowerPortRequestType = "ita-h" - POWERPORTREQUESTTYPE_ITA_I PowerPortRequestType = "ita-i" - POWERPORTREQUESTTYPE_ITA_J PowerPortRequestType = "ita-j" - POWERPORTREQUESTTYPE_ITA_K PowerPortRequestType = "ita-k" - POWERPORTREQUESTTYPE_ITA_L PowerPortRequestType = "ita-l" - POWERPORTREQUESTTYPE_ITA_M PowerPortRequestType = "ita-m" - POWERPORTREQUESTTYPE_ITA_N PowerPortRequestType = "ita-n" - POWERPORTREQUESTTYPE_ITA_O PowerPortRequestType = "ita-o" - POWERPORTREQUESTTYPE_USB_A PowerPortRequestType = "usb-a" - POWERPORTREQUESTTYPE_USB_B PowerPortRequestType = "usb-b" - POWERPORTREQUESTTYPE_USB_C PowerPortRequestType = "usb-c" - POWERPORTREQUESTTYPE_USB_MINI_A PowerPortRequestType = "usb-mini-a" - POWERPORTREQUESTTYPE_USB_MINI_B PowerPortRequestType = "usb-mini-b" - POWERPORTREQUESTTYPE_USB_MICRO_A PowerPortRequestType = "usb-micro-a" - POWERPORTREQUESTTYPE_USB_MICRO_B PowerPortRequestType = "usb-micro-b" - POWERPORTREQUESTTYPE_USB_MICRO_AB PowerPortRequestType = "usb-micro-ab" - POWERPORTREQUESTTYPE_USB_3_B PowerPortRequestType = "usb-3-b" - POWERPORTREQUESTTYPE_USB_3_MICRO_B PowerPortRequestType = "usb-3-micro-b" - POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PowerPortRequestType = "molex-micro-fit-1x2" - POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PowerPortRequestType = "molex-micro-fit-2x2" - POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PowerPortRequestType = "molex-micro-fit-2x4" - POWERPORTREQUESTTYPE_DC_TERMINAL PowerPortRequestType = "dc-terminal" - POWERPORTREQUESTTYPE_SAF_D_GRID PowerPortRequestType = "saf-d-grid" - POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PowerPortRequestType = "neutrik-powercon-20" - POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PowerPortRequestType = "neutrik-powercon-32" - POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerPortRequestType = "neutrik-powercon-true1" + POWERPORTREQUESTTYPE_IEC_60320_C6 PowerPortRequestType = "iec-60320-c6" + POWERPORTREQUESTTYPE_IEC_60320_C8 PowerPortRequestType = "iec-60320-c8" + POWERPORTREQUESTTYPE_IEC_60320_C14 PowerPortRequestType = "iec-60320-c14" + POWERPORTREQUESTTYPE_IEC_60320_C16 PowerPortRequestType = "iec-60320-c16" + POWERPORTREQUESTTYPE_IEC_60320_C20 PowerPortRequestType = "iec-60320-c20" + POWERPORTREQUESTTYPE_IEC_60320_C22 PowerPortRequestType = "iec-60320-c22" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_4H PowerPortRequestType = "iec-60309-p-n-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_6H PowerPortRequestType = "iec-60309-p-n-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_P_N_E_9H PowerPortRequestType = "iec-60309-p-n-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_4H PowerPortRequestType = "iec-60309-2p-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_6H PowerPortRequestType = "iec-60309-2p-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_2P_E_9H PowerPortRequestType = "iec-60309-2p-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_4H PowerPortRequestType = "iec-60309-3p-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_6H PowerPortRequestType = "iec-60309-3p-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_3P_E_9H PowerPortRequestType = "iec-60309-3p-e-9h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_4H PowerPortRequestType = "iec-60309-3p-n-e-4h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_6H PowerPortRequestType = "iec-60309-3p-n-e-6h" + POWERPORTREQUESTTYPE_IEC_60309_3P_N_E_9H PowerPortRequestType = "iec-60309-3p-n-e-9h" + POWERPORTREQUESTTYPE_IEC_60906_1 PowerPortRequestType = "iec-60906-1" + POWERPORTREQUESTTYPE_NBR_14136_10A PowerPortRequestType = "nbr-14136-10a" + POWERPORTREQUESTTYPE_NBR_14136_20A PowerPortRequestType = "nbr-14136-20a" + POWERPORTREQUESTTYPE_NEMA_1_15P PowerPortRequestType = "nema-1-15p" + POWERPORTREQUESTTYPE_NEMA_5_15P PowerPortRequestType = "nema-5-15p" + POWERPORTREQUESTTYPE_NEMA_5_20P PowerPortRequestType = "nema-5-20p" + POWERPORTREQUESTTYPE_NEMA_5_30P PowerPortRequestType = "nema-5-30p" + POWERPORTREQUESTTYPE_NEMA_5_50P PowerPortRequestType = "nema-5-50p" + POWERPORTREQUESTTYPE_NEMA_6_15P PowerPortRequestType = "nema-6-15p" + POWERPORTREQUESTTYPE_NEMA_6_20P PowerPortRequestType = "nema-6-20p" + POWERPORTREQUESTTYPE_NEMA_6_30P PowerPortRequestType = "nema-6-30p" + POWERPORTREQUESTTYPE_NEMA_6_50P PowerPortRequestType = "nema-6-50p" + POWERPORTREQUESTTYPE_NEMA_10_30P PowerPortRequestType = "nema-10-30p" + POWERPORTREQUESTTYPE_NEMA_10_50P PowerPortRequestType = "nema-10-50p" + POWERPORTREQUESTTYPE_NEMA_14_20P PowerPortRequestType = "nema-14-20p" + POWERPORTREQUESTTYPE_NEMA_14_30P PowerPortRequestType = "nema-14-30p" + POWERPORTREQUESTTYPE_NEMA_14_50P PowerPortRequestType = "nema-14-50p" + POWERPORTREQUESTTYPE_NEMA_14_60P PowerPortRequestType = "nema-14-60p" + POWERPORTREQUESTTYPE_NEMA_15_15P PowerPortRequestType = "nema-15-15p" + POWERPORTREQUESTTYPE_NEMA_15_20P PowerPortRequestType = "nema-15-20p" + POWERPORTREQUESTTYPE_NEMA_15_30P PowerPortRequestType = "nema-15-30p" + POWERPORTREQUESTTYPE_NEMA_15_50P PowerPortRequestType = "nema-15-50p" + POWERPORTREQUESTTYPE_NEMA_15_60P PowerPortRequestType = "nema-15-60p" + POWERPORTREQUESTTYPE_NEMA_L1_15P PowerPortRequestType = "nema-l1-15p" + POWERPORTREQUESTTYPE_NEMA_L5_15P PowerPortRequestType = "nema-l5-15p" + POWERPORTREQUESTTYPE_NEMA_L5_20P PowerPortRequestType = "nema-l5-20p" + POWERPORTREQUESTTYPE_NEMA_L5_30P PowerPortRequestType = "nema-l5-30p" + POWERPORTREQUESTTYPE_NEMA_L5_50P PowerPortRequestType = "nema-l5-50p" + POWERPORTREQUESTTYPE_NEMA_L6_15P PowerPortRequestType = "nema-l6-15p" + POWERPORTREQUESTTYPE_NEMA_L6_20P PowerPortRequestType = "nema-l6-20p" + POWERPORTREQUESTTYPE_NEMA_L6_30P PowerPortRequestType = "nema-l6-30p" + POWERPORTREQUESTTYPE_NEMA_L6_50P PowerPortRequestType = "nema-l6-50p" + POWERPORTREQUESTTYPE_NEMA_L10_30P PowerPortRequestType = "nema-l10-30p" + POWERPORTREQUESTTYPE_NEMA_L14_20P PowerPortRequestType = "nema-l14-20p" + POWERPORTREQUESTTYPE_NEMA_L14_30P PowerPortRequestType = "nema-l14-30p" + POWERPORTREQUESTTYPE_NEMA_L14_50P PowerPortRequestType = "nema-l14-50p" + POWERPORTREQUESTTYPE_NEMA_L14_60P PowerPortRequestType = "nema-l14-60p" + POWERPORTREQUESTTYPE_NEMA_L15_20P PowerPortRequestType = "nema-l15-20p" + POWERPORTREQUESTTYPE_NEMA_L15_30P PowerPortRequestType = "nema-l15-30p" + POWERPORTREQUESTTYPE_NEMA_L15_50P PowerPortRequestType = "nema-l15-50p" + POWERPORTREQUESTTYPE_NEMA_L15_60P PowerPortRequestType = "nema-l15-60p" + POWERPORTREQUESTTYPE_NEMA_L21_20P PowerPortRequestType = "nema-l21-20p" + POWERPORTREQUESTTYPE_NEMA_L21_30P PowerPortRequestType = "nema-l21-30p" + POWERPORTREQUESTTYPE_NEMA_L22_20P PowerPortRequestType = "nema-l22-20p" + POWERPORTREQUESTTYPE_NEMA_L22_30P PowerPortRequestType = "nema-l22-30p" + POWERPORTREQUESTTYPE_CS6361C PowerPortRequestType = "cs6361c" + POWERPORTREQUESTTYPE_CS6365C PowerPortRequestType = "cs6365c" + POWERPORTREQUESTTYPE_CS8165C PowerPortRequestType = "cs8165c" + POWERPORTREQUESTTYPE_CS8265C PowerPortRequestType = "cs8265c" + POWERPORTREQUESTTYPE_CS8365C PowerPortRequestType = "cs8365c" + POWERPORTREQUESTTYPE_CS8465C PowerPortRequestType = "cs8465c" + POWERPORTREQUESTTYPE_ITA_C PowerPortRequestType = "ita-c" + POWERPORTREQUESTTYPE_ITA_E PowerPortRequestType = "ita-e" + POWERPORTREQUESTTYPE_ITA_F PowerPortRequestType = "ita-f" + POWERPORTREQUESTTYPE_ITA_EF PowerPortRequestType = "ita-ef" + POWERPORTREQUESTTYPE_ITA_G PowerPortRequestType = "ita-g" + POWERPORTREQUESTTYPE_ITA_H PowerPortRequestType = "ita-h" + POWERPORTREQUESTTYPE_ITA_I PowerPortRequestType = "ita-i" + POWERPORTREQUESTTYPE_ITA_J PowerPortRequestType = "ita-j" + POWERPORTREQUESTTYPE_ITA_K PowerPortRequestType = "ita-k" + POWERPORTREQUESTTYPE_ITA_L PowerPortRequestType = "ita-l" + POWERPORTREQUESTTYPE_ITA_M PowerPortRequestType = "ita-m" + POWERPORTREQUESTTYPE_ITA_N PowerPortRequestType = "ita-n" + POWERPORTREQUESTTYPE_ITA_O PowerPortRequestType = "ita-o" + POWERPORTREQUESTTYPE_USB_A PowerPortRequestType = "usb-a" + POWERPORTREQUESTTYPE_USB_B PowerPortRequestType = "usb-b" + POWERPORTREQUESTTYPE_USB_C PowerPortRequestType = "usb-c" + POWERPORTREQUESTTYPE_USB_MINI_A PowerPortRequestType = "usb-mini-a" + POWERPORTREQUESTTYPE_USB_MINI_B PowerPortRequestType = "usb-mini-b" + POWERPORTREQUESTTYPE_USB_MICRO_A PowerPortRequestType = "usb-micro-a" + POWERPORTREQUESTTYPE_USB_MICRO_B PowerPortRequestType = "usb-micro-b" + POWERPORTREQUESTTYPE_USB_MICRO_AB PowerPortRequestType = "usb-micro-ab" + POWERPORTREQUESTTYPE_USB_3_B PowerPortRequestType = "usb-3-b" + POWERPORTREQUESTTYPE_USB_3_MICRO_B PowerPortRequestType = "usb-3-micro-b" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_1X2 PowerPortRequestType = "molex-micro-fit-1x2" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PowerPortRequestType = "molex-micro-fit-2x2" + POWERPORTREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PowerPortRequestType = "molex-micro-fit-2x4" + POWERPORTREQUESTTYPE_DC_TERMINAL PowerPortRequestType = "dc-terminal" + POWERPORTREQUESTTYPE_SAF_D_GRID PowerPortRequestType = "saf-d-grid" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_20 PowerPortRequestType = "neutrik-powercon-20" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_32 PowerPortRequestType = "neutrik-powercon-32" + POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1 PowerPortRequestType = "neutrik-powercon-true1" POWERPORTREQUESTTYPE_NEUTRIK_POWERCON_TRUE1_TOP PowerPortRequestType = "neutrik-powercon-true1-top" - POWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PowerPortRequestType = "ubiquiti-smartpower" - POWERPORTREQUESTTYPE_HARDWIRED PowerPortRequestType = "hardwired" - POWERPORTREQUESTTYPE_OTHER PowerPortRequestType = "other" - POWERPORTREQUESTTYPE_EMPTY PowerPortRequestType = "" + POWERPORTREQUESTTYPE_UBIQUITI_SMARTPOWER PowerPortRequestType = "ubiquiti-smartpower" + POWERPORTREQUESTTYPE_HARDWIRED PowerPortRequestType = "hardwired" + POWERPORTREQUESTTYPE_OTHER PowerPortRequestType = "other" + POWERPORTREQUESTTYPE_EMPTY PowerPortRequestType = "" ) // All allowed values of PowerPortRequestType enum @@ -314,4 +314,3 @@ func (v *NullablePowerPortRequestType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_power_port_template.go b/model_power_port_template.go index 44e2d5cc1..2178d92e0 100644 --- a/model_power_port_template.go +++ b/model_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the PowerPortTemplate type satisfies the MappedNullable interface at compile time @@ -21,23 +20,12 @@ var _ MappedNullable = &PowerPortTemplate{} // PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerPortType `json:"type,omitempty"` - // Maximum power draw (watts) - MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` - // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,14 +35,12 @@ type _PowerPortTemplate PowerPortTemplate // 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 NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *PowerPortTemplate { +func NewPowerPortTemplate(id int32, url string, display string, name string) *PowerPortTemplate { this := PowerPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -138,92 +124,6 @@ func (o *PowerPortTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType - return ret - } - return *o.DeviceType.Get() -} - -// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { - if o == nil { - return nil, false - } - return o.DeviceType.Get(), o.DeviceType.IsSet() -} - -// HasDeviceType returns a boolean if a field has been set. -func (o *PowerPortTemplate) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { - return true - } - - return false -} - -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *PowerPortTemplate) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *PowerPortTemplate) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplate) GetModuleType() BriefModuleType { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType - return ret - } - return *o.ModuleType.Get() -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { - if o == nil { - return nil, false - } - return o.ModuleType.Get(), o.ModuleType.IsSet() -} - -// HasModuleType returns a boolean if a field has been set. -func (o *PowerPortTemplate) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *PowerPortTemplate) SetModuleType(v BriefModuleType) { - o.ModuleType.Set(&v) -} - -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *PowerPortTemplate) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *PowerPortTemplate) UnsetModuleType() { - o.ModuleType.Unset() -} - // GetName returns the Name field value func (o *PowerPortTemplate) GetName() string { if o == nil { @@ -248,167 +148,6 @@ func (o *PowerPortTemplate) SetName(v string) { o.Name = v } -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *PowerPortTemplate) GetLabel() string { - if o == nil || IsNil(o.Label) { - var ret string - return ret - } - return *o.Label -} - -// GetLabelOk returns a tuple with the Label field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPortTemplate) GetLabelOk() (*string, bool) { - if o == nil || IsNil(o.Label) { - return nil, false - } - return o.Label, true -} - -// HasLabel returns a boolean if a field has been set. -func (o *PowerPortTemplate) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *PowerPortTemplate) SetLabel(v string) { - o.Label = &v -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplate) GetType() PowerPortType { - if o == nil || IsNil(o.Type.Get()) { - var ret PowerPortType - return ret - } - return *o.Type.Get() -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool) { - if o == nil { - return nil, false - } - return o.Type.Get(), o.Type.IsSet() -} - -// HasType returns a boolean if a field has been set. -func (o *PowerPortTemplate) HasType() bool { - if o != nil && o.Type.IsSet() { - return true - } - - return false -} - -// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. -func (o *PowerPortTemplate) SetType(v PowerPortType) { - o.Type.Set(&v) -} - -// SetTypeNil sets the value for Type to be an explicit nil -func (o *PowerPortTemplate) SetTypeNil() { - o.Type.Set(nil) -} - -// UnsetType ensures that no value is present for Type, not even an explicit nil -func (o *PowerPortTemplate) UnsetType() { - o.Type.Unset() -} - -// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplate) GetMaximumDraw() int32 { - if o == nil || IsNil(o.MaximumDraw.Get()) { - var ret int32 - return ret - } - return *o.MaximumDraw.Get() -} - -// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() -} - -// HasMaximumDraw returns a boolean if a field has been set. -func (o *PowerPortTemplate) HasMaximumDraw() bool { - if o != nil && o.MaximumDraw.IsSet() { - return true - } - - return false -} - -// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. -func (o *PowerPortTemplate) SetMaximumDraw(v int32) { - o.MaximumDraw.Set(&v) -} - -// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil -func (o *PowerPortTemplate) SetMaximumDrawNil() { - o.MaximumDraw.Set(nil) -} - -// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -func (o *PowerPortTemplate) UnsetMaximumDraw() { - o.MaximumDraw.Unset() -} - -// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplate) GetAllocatedDraw() int32 { - if o == nil || IsNil(o.AllocatedDraw.Get()) { - var ret int32 - return ret - } - return *o.AllocatedDraw.Get() -} - -// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() -} - -// HasAllocatedDraw returns a boolean if a field has been set. -func (o *PowerPortTemplate) HasAllocatedDraw() bool { - if o != nil && o.AllocatedDraw.IsSet() { - return true - } - - return false -} - -// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. -func (o *PowerPortTemplate) SetAllocatedDraw(v int32) { - o.AllocatedDraw.Set(&v) -} - -// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil -func (o *PowerPortTemplate) SetAllocatedDrawNil() { - o.AllocatedDraw.Set(nil) -} - -// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil -func (o *PowerPortTemplate) UnsetAllocatedDraw() { - o.AllocatedDraw.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -441,58 +180,6 @@ func (o *PowerPortTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *PowerPortTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *PowerPortTemplate) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *PowerPortTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *PowerPortTemplate) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -506,30 +193,10 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Label) { - toSerialize["label"] = o.Label - } - if o.Type.IsSet() { - toSerialize["type"] = o.Type.Get() - } - if o.MaximumDraw.IsSet() { - toSerialize["maximum_draw"] = o.MaximumDraw.Get() - } - if o.AllocatedDraw.IsSet() { - toSerialize["allocated_draw"] = o.AllocatedDraw.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -547,8 +214,6 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -581,16 +246,8 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") - delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") - delete(additionalProperties, "label") - delete(additionalProperties, "type") - delete(additionalProperties, "maximum_draw") - delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go index 7a2c750b2..4f2826e7f 100644 --- a/model_power_port_template_request.go +++ b/model_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,9 @@ var _ MappedNullable = &PowerPortTemplateRequest{} // PowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerPortRequestType `json:"type,omitempty"` - // Maximum power draw (watts) - MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` - // Allocated power draw (watts) - AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,92 +46,6 @@ func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest - return ret - } - return *o.DeviceType.Get() -} - -// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.DeviceType.Get(), o.DeviceType.IsSet() -} - -// HasDeviceType returns a boolean if a field has been set. -func (o *PowerPortTemplateRequest) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { - return true - } - - return false -} - -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *PowerPortTemplateRequest) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *PowerPortTemplateRequest) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest - return ret - } - return *o.ModuleType.Get() -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.ModuleType.Get(), o.ModuleType.IsSet() -} - -// HasModuleType returns a boolean if a field has been set. -func (o *PowerPortTemplateRequest) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { - o.ModuleType.Set(&v) -} - -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *PowerPortTemplateRequest) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *PowerPortTemplateRequest) UnsetModuleType() { - o.ModuleType.Unset() -} - // GetName returns the Name field value func (o *PowerPortTemplateRequest) GetName() string { if o == nil { @@ -165,167 +70,6 @@ func (o *PowerPortTemplateRequest) SetName(v string) { o.Name = v } -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *PowerPortTemplateRequest) GetLabel() string { - if o == nil || IsNil(o.Label) { - var ret string - return ret - } - return *o.Label -} - -// GetLabelOk returns a tuple with the Label field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool) { - if o == nil || IsNil(o.Label) { - return nil, false - } - return o.Label, true -} - -// HasLabel returns a boolean if a field has been set. -func (o *PowerPortTemplateRequest) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *PowerPortTemplateRequest) SetLabel(v string) { - o.Label = &v -} - -// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType { - if o == nil || IsNil(o.Type.Get()) { - var ret PowerPortRequestType - return ret - } - return *o.Type.Get() -} - -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool) { - if o == nil { - return nil, false - } - return o.Type.Get(), o.Type.IsSet() -} - -// HasType returns a boolean if a field has been set. -func (o *PowerPortTemplateRequest) HasType() bool { - if o != nil && o.Type.IsSet() { - return true - } - - return false -} - -// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. -func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType) { - o.Type.Set(&v) -} - -// SetTypeNil sets the value for Type to be an explicit nil -func (o *PowerPortTemplateRequest) SetTypeNil() { - o.Type.Set(nil) -} - -// UnsetType ensures that no value is present for Type, not even an explicit nil -func (o *PowerPortTemplateRequest) UnsetType() { - o.Type.Unset() -} - -// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplateRequest) GetMaximumDraw() int32 { - if o == nil || IsNil(o.MaximumDraw.Get()) { - var ret int32 - return ret - } - return *o.MaximumDraw.Get() -} - -// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() -} - -// HasMaximumDraw returns a boolean if a field has been set. -func (o *PowerPortTemplateRequest) HasMaximumDraw() bool { - if o != nil && o.MaximumDraw.IsSet() { - return true - } - - return false -} - -// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. -func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32) { - o.MaximumDraw.Set(&v) -} - -// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil -func (o *PowerPortTemplateRequest) SetMaximumDrawNil() { - o.MaximumDraw.Set(nil) -} - -// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil -func (o *PowerPortTemplateRequest) UnsetMaximumDraw() { - o.MaximumDraw.Unset() -} - -// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32 { - if o == nil || IsNil(o.AllocatedDraw.Get()) { - var ret int32 - return ret - } - return *o.AllocatedDraw.Get() -} - -// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() -} - -// HasAllocatedDraw returns a boolean if a field has been set. -func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool { - if o != nil && o.AllocatedDraw.IsSet() { - return true - } - - return false -} - -// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. -func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32) { - o.AllocatedDraw.Set(&v) -} - -// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil -func (o *PowerPortTemplateRequest) SetAllocatedDrawNil() { - o.AllocatedDraw.Set(nil) -} - -// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil -func (o *PowerPortTemplateRequest) UnsetAllocatedDraw() { - o.AllocatedDraw.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -368,25 +112,7 @@ func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Label) { - toSerialize["label"] = o.Label - } - if o.Type.IsSet() { - toSerialize["type"] = o.Type.Get() - } - if o.MaximumDraw.IsSet() { - toSerialize["maximum_draw"] = o.MaximumDraw.Get() - } - if o.AllocatedDraw.IsSet() { - toSerialize["allocated_draw"] = o.AllocatedDraw.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -433,13 +159,7 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") - delete(additionalProperties, "label") - delete(additionalProperties, "type") - delete(additionalProperties, "maximum_draw") - delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_type.go b/model_power_port_type.go index d103e8523..109040ab4 100644 --- a/model_power_port_type.go +++ b/model_power_port_type.go @@ -19,8 +19,8 @@ var _ MappedNullable = &PowerPortType{} // PowerPortType struct for PowerPortType type PowerPortType struct { - Value *PatchedWritablePowerPortTemplateRequestType `json:"value,omitempty"` - Label *PowerPortTypeLabel `json:"label,omitempty"` + Value *PatchedWritablePowerPortTemplateRequestType `json:"value,omitempty"` + Label *PowerPortTypeLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *PowerPortType) SetLabel(v PowerPortTypeLabel) { } func (o PowerPortType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullablePowerPortType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go index f7613c60d..6bd53f776 100644 --- a/model_power_port_type_label.go +++ b/model_power_port_type_label.go @@ -20,110 +20,110 @@ type PowerPortTypeLabel string // List of PowerPort_type_label const ( - POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6" - POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8" - POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14" - POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16" - POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20" - POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22" - POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H" - POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H" - POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H" - POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H" - POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H" - POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H" - POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H" - POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H" - POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H" - POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H" - POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H" - POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H" - POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1" - POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)" - POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)" - POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P" - POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P" - POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P" - POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P" - POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P" - POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P" - POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P" - POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P" - POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P" - POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P" - POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P" - POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P" - POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P" - POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P" - POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P" - POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P" - POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P" - POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P" - POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P" - POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P" - POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P" - POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P" - POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P" - POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P" - POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P" - POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P" - POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P" - POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P" - POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P" - POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P" - POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P" - POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P" - POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P" - POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P" - POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P" - POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P" - POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P" - POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P" - POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P" - POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P" - POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P" - POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P" - POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C" - POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C" - POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C" - POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C" - POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C" - POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C" - POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)" - POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)" - POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)" - POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)" - POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)" - POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H" - POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I" - POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J" - POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K" - POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)" - POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)" - POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N" - POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O" - POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A" - POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B" - POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C" - POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A" - POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B" - POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A" - POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B" - POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB" - POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B" - POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B" - POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2" - POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2" - POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4" - POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal" - POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid" - POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)" - POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)" - POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1" + POWERPORTTYPELABEL_C6 PowerPortTypeLabel = "C6" + POWERPORTTYPELABEL_C8 PowerPortTypeLabel = "C8" + POWERPORTTYPELABEL_C14 PowerPortTypeLabel = "C14" + POWERPORTTYPELABEL_C16 PowerPortTypeLabel = "C16" + POWERPORTTYPELABEL_C20 PowerPortTypeLabel = "C20" + POWERPORTTYPELABEL_C22 PowerPortTypeLabel = "C22" + POWERPORTTYPELABEL_PNE_4_H PowerPortTypeLabel = "P+N+E 4H" + POWERPORTTYPELABEL_PNE_6_H PowerPortTypeLabel = "P+N+E 6H" + POWERPORTTYPELABEL_PNE_9_H PowerPortTypeLabel = "P+N+E 9H" + POWERPORTTYPELABEL__2_PE_4_H PowerPortTypeLabel = "2P+E 4H" + POWERPORTTYPELABEL__2_PE_6_H PowerPortTypeLabel = "2P+E 6H" + POWERPORTTYPELABEL__2_PE_9_H PowerPortTypeLabel = "2P+E 9H" + POWERPORTTYPELABEL__3_PE_4_H PowerPortTypeLabel = "3P+E 4H" + POWERPORTTYPELABEL__3_PE_6_H PowerPortTypeLabel = "3P+E 6H" + POWERPORTTYPELABEL__3_PE_9_H PowerPortTypeLabel = "3P+E 9H" + POWERPORTTYPELABEL__3_PNE_4_H PowerPortTypeLabel = "3P+N+E 4H" + POWERPORTTYPELABEL__3_PNE_6_H PowerPortTypeLabel = "3P+N+E 6H" + POWERPORTTYPELABEL__3_PNE_9_H PowerPortTypeLabel = "3P+N+E 9H" + POWERPORTTYPELABEL_IEC_60906_1 PowerPortTypeLabel = "IEC 60906-1" + POWERPORTTYPELABEL__2_PT_10_A__NBR_14136 PowerPortTypeLabel = "2P+T 10A (NBR 14136)" + POWERPORTTYPELABEL__2_PT_20_A__NBR_14136 PowerPortTypeLabel = "2P+T 20A (NBR 14136)" + POWERPORTTYPELABEL_NEMA_1_15_P PowerPortTypeLabel = "NEMA 1-15P" + POWERPORTTYPELABEL_NEMA_5_15_P PowerPortTypeLabel = "NEMA 5-15P" + POWERPORTTYPELABEL_NEMA_5_20_P PowerPortTypeLabel = "NEMA 5-20P" + POWERPORTTYPELABEL_NEMA_5_30_P PowerPortTypeLabel = "NEMA 5-30P" + POWERPORTTYPELABEL_NEMA_5_50_P PowerPortTypeLabel = "NEMA 5-50P" + POWERPORTTYPELABEL_NEMA_6_15_P PowerPortTypeLabel = "NEMA 6-15P" + POWERPORTTYPELABEL_NEMA_6_20_P PowerPortTypeLabel = "NEMA 6-20P" + POWERPORTTYPELABEL_NEMA_6_30_P PowerPortTypeLabel = "NEMA 6-30P" + POWERPORTTYPELABEL_NEMA_6_50_P PowerPortTypeLabel = "NEMA 6-50P" + POWERPORTTYPELABEL_NEMA_10_30_P PowerPortTypeLabel = "NEMA 10-30P" + POWERPORTTYPELABEL_NEMA_10_50_P PowerPortTypeLabel = "NEMA 10-50P" + POWERPORTTYPELABEL_NEMA_14_20_P PowerPortTypeLabel = "NEMA 14-20P" + POWERPORTTYPELABEL_NEMA_14_30_P PowerPortTypeLabel = "NEMA 14-30P" + POWERPORTTYPELABEL_NEMA_14_50_P PowerPortTypeLabel = "NEMA 14-50P" + POWERPORTTYPELABEL_NEMA_14_60_P PowerPortTypeLabel = "NEMA 14-60P" + POWERPORTTYPELABEL_NEMA_15_15_P PowerPortTypeLabel = "NEMA 15-15P" + POWERPORTTYPELABEL_NEMA_15_20_P PowerPortTypeLabel = "NEMA 15-20P" + POWERPORTTYPELABEL_NEMA_15_30_P PowerPortTypeLabel = "NEMA 15-30P" + POWERPORTTYPELABEL_NEMA_15_50_P PowerPortTypeLabel = "NEMA 15-50P" + POWERPORTTYPELABEL_NEMA_15_60_P PowerPortTypeLabel = "NEMA 15-60P" + POWERPORTTYPELABEL_NEMA_L1_15_P PowerPortTypeLabel = "NEMA L1-15P" + POWERPORTTYPELABEL_NEMA_L5_15_P PowerPortTypeLabel = "NEMA L5-15P" + POWERPORTTYPELABEL_NEMA_L5_20_P PowerPortTypeLabel = "NEMA L5-20P" + POWERPORTTYPELABEL_NEMA_L5_30_P PowerPortTypeLabel = "NEMA L5-30P" + POWERPORTTYPELABEL_NEMA_L5_50_P PowerPortTypeLabel = "NEMA L5-50P" + POWERPORTTYPELABEL_NEMA_L6_15_P PowerPortTypeLabel = "NEMA L6-15P" + POWERPORTTYPELABEL_NEMA_L6_20_P PowerPortTypeLabel = "NEMA L6-20P" + POWERPORTTYPELABEL_NEMA_L6_30_P PowerPortTypeLabel = "NEMA L6-30P" + POWERPORTTYPELABEL_NEMA_L6_50_P PowerPortTypeLabel = "NEMA L6-50P" + POWERPORTTYPELABEL_NEMA_L10_30_P PowerPortTypeLabel = "NEMA L10-30P" + POWERPORTTYPELABEL_NEMA_L14_20_P PowerPortTypeLabel = "NEMA L14-20P" + POWERPORTTYPELABEL_NEMA_L14_30_P PowerPortTypeLabel = "NEMA L14-30P" + POWERPORTTYPELABEL_NEMA_L14_50_P PowerPortTypeLabel = "NEMA L14-50P" + POWERPORTTYPELABEL_NEMA_L14_60_P PowerPortTypeLabel = "NEMA L14-60P" + POWERPORTTYPELABEL_NEMA_L15_20_P PowerPortTypeLabel = "NEMA L15-20P" + POWERPORTTYPELABEL_NEMA_L15_30_P PowerPortTypeLabel = "NEMA L15-30P" + POWERPORTTYPELABEL_NEMA_L15_50_P PowerPortTypeLabel = "NEMA L15-50P" + POWERPORTTYPELABEL_NEMA_L15_60_P PowerPortTypeLabel = "NEMA L15-60P" + POWERPORTTYPELABEL_NEMA_L21_20_P PowerPortTypeLabel = "NEMA L21-20P" + POWERPORTTYPELABEL_NEMA_L21_30_P PowerPortTypeLabel = "NEMA L21-30P" + POWERPORTTYPELABEL_NEMA_L22_20_P PowerPortTypeLabel = "NEMA L22-20P" + POWERPORTTYPELABEL_NEMA_L22_30_P PowerPortTypeLabel = "NEMA L22-30P" + POWERPORTTYPELABEL_CS6361_C PowerPortTypeLabel = "CS6361C" + POWERPORTTYPELABEL_CS6365_C PowerPortTypeLabel = "CS6365C" + POWERPORTTYPELABEL_CS8165_C PowerPortTypeLabel = "CS8165C" + POWERPORTTYPELABEL_CS8265_C PowerPortTypeLabel = "CS8265C" + POWERPORTTYPELABEL_CS8365_C PowerPortTypeLabel = "CS8365C" + POWERPORTTYPELABEL_CS8465_C PowerPortTypeLabel = "CS8465C" + POWERPORTTYPELABEL_ITA_TYPE_C__CEE_7_16 PowerPortTypeLabel = "ITA Type C (CEE 7/16)" + POWERPORTTYPELABEL_ITA_TYPE_E__CEE_7_6 PowerPortTypeLabel = "ITA Type E (CEE 7/6)" + POWERPORTTYPELABEL_ITA_TYPE_F__CEE_7_4 PowerPortTypeLabel = "ITA Type F (CEE 7/4)" + POWERPORTTYPELABEL_ITA_TYPE_E_F__CEE_7_7 PowerPortTypeLabel = "ITA Type E/F (CEE 7/7)" + POWERPORTTYPELABEL_ITA_TYPE_G__BS_1363 PowerPortTypeLabel = "ITA Type G (BS 1363)" + POWERPORTTYPELABEL_ITA_TYPE_H PowerPortTypeLabel = "ITA Type H" + POWERPORTTYPELABEL_ITA_TYPE_I PowerPortTypeLabel = "ITA Type I" + POWERPORTTYPELABEL_ITA_TYPE_J PowerPortTypeLabel = "ITA Type J" + POWERPORTTYPELABEL_ITA_TYPE_K PowerPortTypeLabel = "ITA Type K" + POWERPORTTYPELABEL_ITA_TYPE_L__CEI_23_50 PowerPortTypeLabel = "ITA Type L (CEI 23-50)" + POWERPORTTYPELABEL_ITA_TYPE_M__BS_546 PowerPortTypeLabel = "ITA Type M (BS 546)" + POWERPORTTYPELABEL_ITA_TYPE_N PowerPortTypeLabel = "ITA Type N" + POWERPORTTYPELABEL_ITA_TYPE_O PowerPortTypeLabel = "ITA Type O" + POWERPORTTYPELABEL_USB_TYPE_A PowerPortTypeLabel = "USB Type A" + POWERPORTTYPELABEL_USB_TYPE_B PowerPortTypeLabel = "USB Type B" + POWERPORTTYPELABEL_USB_TYPE_C PowerPortTypeLabel = "USB Type C" + POWERPORTTYPELABEL_USB_MINI_A PowerPortTypeLabel = "USB Mini A" + POWERPORTTYPELABEL_USB_MINI_B PowerPortTypeLabel = "USB Mini B" + POWERPORTTYPELABEL_USB_MICRO_A PowerPortTypeLabel = "USB Micro A" + POWERPORTTYPELABEL_USB_MICRO_B PowerPortTypeLabel = "USB Micro B" + POWERPORTTYPELABEL_USB_MICRO_AB PowerPortTypeLabel = "USB Micro AB" + POWERPORTTYPELABEL_USB_3_0_TYPE_B PowerPortTypeLabel = "USB 3.0 Type B" + POWERPORTTYPELABEL_USB_3_0_MICRO_B PowerPortTypeLabel = "USB 3.0 Micro B" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_1X2 PowerPortTypeLabel = "Molex Micro-Fit 1x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerPortTypeLabel = "Molex Micro-Fit 2x2" + POWERPORTTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerPortTypeLabel = "Molex Micro-Fit 2x4" + POWERPORTTYPELABEL_DC_TERMINAL PowerPortTypeLabel = "DC Terminal" + POWERPORTTYPELABEL_SAF_D_GRID PowerPortTypeLabel = "Saf-D-Grid" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__20_A PowerPortTypeLabel = "Neutrik powerCON (20A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON__32_A PowerPortTypeLabel = "Neutrik powerCON (32A)" + POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1 PowerPortTypeLabel = "Neutrik powerCON TRUE1" POWERPORTTYPELABEL_NEUTRIK_POWER_CON_TRUE1_TOP PowerPortTypeLabel = "Neutrik powerCON TRUE1 TOP" - POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower" - POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired" - POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other" + POWERPORTTYPELABEL_UBIQUITI_SMART_POWER PowerPortTypeLabel = "Ubiquiti SmartPower" + POWERPORTTYPELABEL_HARDWIRED PowerPortTypeLabel = "Hardwired" + POWERPORTTYPELABEL_OTHER PowerPortTypeLabel = "Other" ) // All allowed values of PowerPortTypeLabel enum @@ -312,4 +312,3 @@ func (v *NullablePowerPortTypeLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_prefix.go b/model_prefix.go index cd3356df9..69448e57b 100644 --- a/model_prefix.go +++ b/model_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,17 @@ var _ MappedNullable = &Prefix{} // Prefix Adds support for custom fields and tags. type Prefix struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Prefix string `json:"prefix"` - Site NullableBriefSite `json:"site,omitempty"` - Vrf NullableBriefVRF `json:"vrf,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Vlan NullableBriefVLAN `json:"vlan,omitempty"` - Status *PrefixStatus `json:"status,omitempty"` - Role NullableBriefRole `json:"role,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Site NullableSite `json:"site,omitempty"` + Vrf NullableVRF `json:"vrf,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` + Vlan NullableVLAN `json:"vlan,omitempty"` + Status *PrefixStatus `json:"status,omitempty"` + Role NullableRole `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -54,11 +53,10 @@ 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, displayUrl string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { +func NewPrefix(id int32, url string, display string, family AggregateFamily, prefix string, created NullableTime, lastUpdated NullableTime, children int32, depth int32) *Prefix { this := Prefix{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Prefix = prefix @@ -125,30 +123,6 @@ func (o *Prefix) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Prefix) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Prefix) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Prefix) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Prefix) GetDisplay() string { if o == nil { @@ -222,9 +196,9 @@ func (o *Prefix) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetSite() BriefSite { +func (o *Prefix) GetSite() Site { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSite + var ret Site return ret } return *o.Site.Get() @@ -233,7 +207,7 @@ func (o *Prefix) GetSite() BriefSite { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetSiteOk() (*BriefSite, bool) { +func (o *Prefix) GetSiteOk() (*Site, bool) { if o == nil { return nil, false } @@ -249,8 +223,8 @@ func (o *Prefix) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. -func (o *Prefix) SetSite(v BriefSite) { +// SetSite gets a reference to the given NullableSite and assigns it to the Site field. +func (o *Prefix) SetSite(v Site) { o.Site.Set(&v) } @@ -265,9 +239,9 @@ func (o *Prefix) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVrf() BriefVRF { +func (o *Prefix) GetVrf() VRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRF + var ret VRF return ret } return *o.Vrf.Get() @@ -276,7 +250,7 @@ func (o *Prefix) GetVrf() BriefVRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVrfOk() (*BriefVRF, bool) { +func (o *Prefix) GetVrfOk() (*VRF, bool) { if o == nil { return nil, false } @@ -292,8 +266,8 @@ func (o *Prefix) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. -func (o *Prefix) SetVrf(v BriefVRF) { +// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. +func (o *Prefix) SetVrf(v VRF) { o.Vrf.Set(&v) } @@ -308,9 +282,9 @@ func (o *Prefix) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetTenant() BriefTenant { +func (o *Prefix) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -319,7 +293,7 @@ func (o *Prefix) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetTenantOk() (*BriefTenant, bool) { +func (o *Prefix) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -335,8 +309,8 @@ func (o *Prefix) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Prefix) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *Prefix) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -351,9 +325,9 @@ func (o *Prefix) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVlan() BriefVLAN { +func (o *Prefix) GetVlan() VLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLAN + var ret VLAN return ret } return *o.Vlan.Get() @@ -362,7 +336,7 @@ func (o *Prefix) GetVlan() BriefVLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVlanOk() (*BriefVLAN, bool) { +func (o *Prefix) GetVlanOk() (*VLAN, bool) { if o == nil { return nil, false } @@ -378,8 +352,8 @@ func (o *Prefix) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. -func (o *Prefix) SetVlan(v BriefVLAN) { +// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. +func (o *Prefix) SetVlan(v VLAN) { o.Vlan.Set(&v) } @@ -426,9 +400,9 @@ func (o *Prefix) SetStatus(v PrefixStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetRole() BriefRole { +func (o *Prefix) GetRole() Role { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRole + var ret Role return ret } return *o.Role.Get() @@ -437,7 +411,7 @@ func (o *Prefix) GetRole() BriefRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetRoleOk() (*BriefRole, bool) { +func (o *Prefix) GetRoleOk() (*Role, bool) { if o == nil { return nil, false } @@ -453,8 +427,8 @@ func (o *Prefix) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. -func (o *Prefix) SetRole(v BriefRole) { +// SetRole gets a reference to the given NullableRole and assigns it to the Role field. +func (o *Prefix) SetRole(v Role) { o.Role.Set(&v) } @@ -772,7 +746,6 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -831,7 +804,6 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "family", "prefix", @@ -870,7 +842,6 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_prefix_request.go b/model_prefix_request.go index ce3bd1690..5634c83a7 100644 --- a/model_prefix_request.go +++ b/model_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PrefixRequest{} // PrefixRequest Adds support for custom fields and tags. type PrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` - Status *PrefixStatusValue `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Prefix string `json:"prefix"` + Site NullableSiteRequest `json:"site,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableVLANRequest `json:"vlan,omitempty"` + Status *PrefixStatusValue `json:"status,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *PrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetSite() BriefSiteRequest { +func (o *PrefixRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *PrefixRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *PrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *PrefixRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *PrefixRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *PrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVrf() BriefVRFRequest { +func (o *PrefixRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *PrefixRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *PrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *PrefixRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *PrefixRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *PrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetTenant() BriefTenantRequest { +func (o *PrefixRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *PrefixRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *PrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *PrefixRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *PrefixRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *PrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVlan() BriefVLANRequest { +func (o *PrefixRequest) GetVlan() VLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *PrefixRequest) GetVlan() BriefVLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { +func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *PrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. -func (o *PrefixRequest) SetVlan(v BriefVLANRequest) { +// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. +func (o *PrefixRequest) SetVlan(v VLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *PrefixRequest) SetStatus(v PrefixStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetRole() BriefRoleRequest { +func (o *PrefixRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *PrefixRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *PrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *PrefixRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *PrefixRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_prefix_status.go b/model_prefix_status.go index f038c6460..f2406410f 100644 --- a/model_prefix_status.go +++ b/model_prefix_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go index 3c86d87db..41bac8bf7 100644 --- a/model_prefix_status_label.go +++ b/model_prefix_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go index 40239ab9b..7e225f700 100644 --- a/model_prefix_status_value.go +++ b/model_prefix_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_provider.go b/model_provider.go index 05a533f2e..a368b3c0b 100644 --- a/model_provider.go +++ b/model_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Provider type satisfies the MappedNullable interface at compile time @@ -21,22 +20,14 @@ var _ MappedNullable = &Provider{} // Provider Adds support for custom fields and tags. type Provider struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Accounts []NestedProviderAccount `json:"accounts,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []ASN `json:"asns,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int64 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -46,16 +37,13 @@ type _Provider Provider // 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 NewProvider(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *Provider { +func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *Provider { this := Provider{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.CircuitCount = circuitCount return &this } @@ -116,30 +104,6 @@ func (o *Provider) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Provider) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Provider) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Provider) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Provider) GetDisplay() string { if o == nil { @@ -212,38 +176,6 @@ func (o *Provider) SetSlug(v string) { o.Slug = v } -// GetAccounts returns the Accounts field value if set, zero value otherwise. -func (o *Provider) GetAccounts() []NestedProviderAccount { - if o == nil || IsNil(o.Accounts) { - var ret []NestedProviderAccount - return ret - } - return o.Accounts -} - -// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Provider) GetAccountsOk() ([]NestedProviderAccount, bool) { - if o == nil || IsNil(o.Accounts) { - return nil, false - } - return o.Accounts, true -} - -// HasAccounts returns a boolean if a field has been set. -func (o *Provider) HasAccounts() bool { - if o != nil && !IsNil(o.Accounts) { - return true - } - - return false -} - -// SetAccounts gets a reference to the given []NestedProviderAccount and assigns it to the Accounts field. -func (o *Provider) SetAccounts(v []NestedProviderAccount) { - o.Accounts = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Provider) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -276,186 +208,6 @@ func (o *Provider) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Provider) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Provider) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Provider) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Provider) SetComments(v string) { - o.Comments = &v -} - -// GetAsns returns the Asns field value if set, zero value otherwise. -func (o *Provider) GetAsns() []ASN { - if o == nil || IsNil(o.Asns) { - var ret []ASN - return ret - } - return o.Asns -} - -// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Provider) GetAsnsOk() ([]ASN, bool) { - if o == nil || IsNil(o.Asns) { - return nil, false - } - return o.Asns, true -} - -// HasAsns returns a boolean if a field has been set. -func (o *Provider) HasAsns() bool { - if o != nil && !IsNil(o.Asns) { - return true - } - - return false -} - -// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. -func (o *Provider) SetAsns(v []ASN) { - o.Asns = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Provider) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Provider) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Provider) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Provider) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Provider) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Provider) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Provider) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Provider) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Provider) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Provider) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Provider) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Provider) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Provider) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Provider) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetCircuitCount returns the CircuitCount field value func (o *Provider) GetCircuitCount() int64 { if o == nil { @@ -492,30 +244,12 @@ func (o Provider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Accounts) { - toSerialize["accounts"] = o.Accounts - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Asns) { - toSerialize["asns"] = o.Asns - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { @@ -532,12 +266,9 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", "circuit_count", } @@ -570,18 +301,10 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "accounts") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "asns") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "circuit_count") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_account.go b/model_provider_account.go index 80a99e0fe..e1b668c13 100644 --- a/model_provider_account.go +++ b/model_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,8 @@ var _ MappedNullable = &ProviderAccount{} type ProviderAccount struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` - Provider BriefProvider `json:"provider"` + Provider Provider `json:"provider"` Name *string `json:"name,omitempty"` Account string `json:"account"` Description *string `json:"description,omitempty"` @@ -43,11 +42,10 @@ type _ProviderAccount ProviderAccount // 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 NewProviderAccount(id int32, url string, displayUrl string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { +func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { this := ProviderAccount{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Provider = provider var name string = "" @@ -116,30 +114,6 @@ func (o *ProviderAccount) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ProviderAccount) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ProviderAccount) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ProviderAccount) GetDisplay() string { if o == nil { @@ -165,9 +139,9 @@ func (o *ProviderAccount) SetDisplay(v string) { } // GetProvider returns the Provider field value -func (o *ProviderAccount) GetProvider() BriefProvider { +func (o *ProviderAccount) GetProvider() Provider { if o == nil { - var ret BriefProvider + var ret Provider return ret } @@ -176,7 +150,7 @@ func (o *ProviderAccount) GetProvider() BriefProvider { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool) { +func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { if o == nil { return nil, false } @@ -184,7 +158,7 @@ func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool) { } // SetProvider sets field value -func (o *ProviderAccount) SetProvider(v BriefProvider) { +func (o *ProviderAccount) SetProvider(v Provider) { o.Provider = v } @@ -436,7 +410,6 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider if !IsNil(o.Name) { @@ -472,7 +445,6 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "provider", "account", @@ -509,7 +481,6 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "provider") delete(additionalProperties, "name") diff --git a/model_provider_account_request.go b/model_provider_account_request.go index b817b78fd..feca4b6ea 100644 --- a/model_provider_account_request.go +++ b/model_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,9 @@ var _ MappedNullable = &ProviderAccountRequest{} // ProviderAccountRequest Adds support for custom fields and tags. type ProviderAccountRequest struct { - Provider BriefProviderRequest `json:"provider"` - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,9 +32,8 @@ type _ProviderAccountRequest ProviderAccountRequest // 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 NewProviderAccountRequest(provider BriefProviderRequest, account string) *ProviderAccountRequest { +func NewProviderAccountRequest(account string) *ProviderAccountRequest { this := ProviderAccountRequest{} - this.Provider = provider var name string = "" this.Name = &name this.Account = account @@ -55,30 +50,6 @@ func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest { return &this } -// GetProvider returns the Provider field value -func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest { - if o == nil { - var ret BriefProviderRequest - return ret - } - - return o.Provider -} - -// GetProviderOk returns a tuple with the Provider field value -// and a boolean to check if the value has been set. -func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { - if o == nil { - return nil, false - } - return &o.Provider, true -} - -// SetProvider sets field value -func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest) { - o.Provider = v -} - // GetName returns the Name field value if set, zero value otherwise. func (o *ProviderAccountRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -167,102 +138,6 @@ func (o *ProviderAccountRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ProviderAccountRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ProviderAccountRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ProviderAccountRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ProviderAccountRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderAccountRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ProviderAccountRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderAccountRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ProviderAccountRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -273,7 +148,6 @@ func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["provider"] = o.Provider if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -281,15 +155,6 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -303,7 +168,6 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "provider", "account", } @@ -334,13 +198,9 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "provider") delete(additionalProperties, "name") delete(additionalProperties, "account") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network.go b/model_provider_network.go index 361f1b903..213b6174c 100644 --- a/model_provider_network.go +++ b/model_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the ProviderNetwork type satisfies the MappedNullable interface at compile time @@ -21,19 +20,11 @@ var _ MappedNullable = &ProviderNetwork{} // ProviderNetwork Adds support for custom fields and tags. type ProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Provider BriefProvider `json:"provider"` - Name string `json:"name"` - ServiceId *string `json:"service_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,16 +34,12 @@ type _ProviderNetwork ProviderNetwork // 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 NewProviderNetwork(id int32, url string, displayUrl string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime) *ProviderNetwork { +func NewProviderNetwork(id int32, url string, display string, name string) *ProviderNetwork { this := ProviderNetwork{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display - this.Provider = provider this.Name = name - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -112,30 +99,6 @@ func (o *ProviderNetwork) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ProviderNetwork) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ProviderNetwork) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ProviderNetwork) GetDisplay() string { if o == nil { @@ -160,30 +123,6 @@ func (o *ProviderNetwork) SetDisplay(v string) { o.Display = v } -// GetProvider returns the Provider field value -func (o *ProviderNetwork) GetProvider() BriefProvider { - if o == nil { - var ret BriefProvider - return ret - } - - return o.Provider -} - -// GetProviderOk returns a tuple with the Provider field value -// and a boolean to check if the value has been set. -func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool) { - if o == nil { - return nil, false - } - return &o.Provider, true -} - -// SetProvider sets field value -func (o *ProviderNetwork) SetProvider(v BriefProvider) { - o.Provider = v -} - // GetName returns the Name field value func (o *ProviderNetwork) GetName() string { if o == nil { @@ -208,38 +147,6 @@ func (o *ProviderNetwork) SetName(v string) { o.Name = v } -// GetServiceId returns the ServiceId field value if set, zero value otherwise. -func (o *ProviderNetwork) GetServiceId() string { - if o == nil || IsNil(o.ServiceId) { - var ret string - return ret - } - return *o.ServiceId -} - -// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetwork) GetServiceIdOk() (*string, bool) { - if o == nil || IsNil(o.ServiceId) { - return nil, false - } - return o.ServiceId, true -} - -// HasServiceId returns a boolean if a field has been set. -func (o *ProviderNetwork) HasServiceId() bool { - if o != nil && !IsNil(o.ServiceId) { - return true - } - - return false -} - -// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. -func (o *ProviderNetwork) SetServiceId(v string) { - o.ServiceId = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetwork) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -272,154 +179,6 @@ func (o *ProviderNetwork) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ProviderNetwork) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetwork) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ProviderNetwork) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ProviderNetwork) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ProviderNetwork) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetwork) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ProviderNetwork) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *ProviderNetwork) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ProviderNetwork) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetwork) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ProviderNetwork) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ProviderNetwork) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ProviderNetwork) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *ProviderNetwork) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *ProviderNetwork) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *ProviderNetwork) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o ProviderNetwork) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -432,27 +191,11 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name - if !IsNil(o.ServiceId) { - toSerialize["service_id"] = o.ServiceId - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -468,12 +211,8 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", - "provider", "name", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -505,17 +244,9 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "provider") delete(additionalProperties, "name") - delete(additionalProperties, "service_id") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network_request.go b/model_provider_network_request.go index c3b5a7a65..05b023aca 100644 --- a/model_provider_network_request.go +++ b/model_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,8 @@ var _ MappedNullable = &ProviderNetworkRequest{} // ProviderNetworkRequest Adds support for custom fields and tags. type ProviderNetworkRequest struct { - Provider BriefProviderRequest `json:"provider"` - Name string `json:"name"` - ServiceId *string `json:"service_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,9 +31,8 @@ type _ProviderNetworkRequest ProviderNetworkRequest // 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 NewProviderNetworkRequest(provider BriefProviderRequest, name string) *ProviderNetworkRequest { +func NewProviderNetworkRequest(name string) *ProviderNetworkRequest { this := ProviderNetworkRequest{} - this.Provider = provider this.Name = name return &this } @@ -51,30 +45,6 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest { return &this } -// GetProvider returns the Provider field value -func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest { - if o == nil { - var ret BriefProviderRequest - return ret - } - - return o.Provider -} - -// GetProviderOk returns a tuple with the Provider field value -// and a boolean to check if the value has been set. -func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { - if o == nil { - return nil, false - } - return &o.Provider, true -} - -// SetProvider sets field value -func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest) { - o.Provider = v -} - // GetName returns the Name field value func (o *ProviderNetworkRequest) GetName() string { if o == nil { @@ -99,38 +69,6 @@ func (o *ProviderNetworkRequest) SetName(v string) { o.Name = v } -// GetServiceId returns the ServiceId field value if set, zero value otherwise. -func (o *ProviderNetworkRequest) GetServiceId() string { - if o == nil || IsNil(o.ServiceId) { - var ret string - return ret - } - return *o.ServiceId -} - -// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool) { - if o == nil || IsNil(o.ServiceId) { - return nil, false - } - return o.ServiceId, true -} - -// HasServiceId returns a boolean if a field has been set. -func (o *ProviderNetworkRequest) HasServiceId() bool { - if o != nil && !IsNil(o.ServiceId) { - return true - } - - return false -} - -// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. -func (o *ProviderNetworkRequest) SetServiceId(v string) { - o.ServiceId = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetworkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -163,102 +101,6 @@ func (o *ProviderNetworkRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ProviderNetworkRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ProviderNetworkRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ProviderNetworkRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ProviderNetworkRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderNetworkRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ProviderNetworkRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -269,23 +111,10 @@ func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name - if !IsNil(o.ServiceId) { - toSerialize["service_id"] = o.ServiceId - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -299,7 +128,6 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "provider", "name", } @@ -330,13 +158,8 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "provider") delete(additionalProperties, "name") - delete(additionalProperties, "service_id") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_request.go b/model_provider_request.go index 5c02bb7a6..1edfe34ee 100644 --- a/model_provider_request.go +++ b/model_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,9 @@ var _ MappedNullable = &ProviderRequest{} // ProviderRequest Adds support for custom fields and tags. type ProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Accounts []int32 `json:"accounts,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -101,38 +96,6 @@ func (o *ProviderRequest) SetSlug(v string) { o.Slug = v } -// GetAccounts returns the Accounts field value if set, zero value otherwise. -func (o *ProviderRequest) GetAccounts() []int32 { - if o == nil || IsNil(o.Accounts) { - var ret []int32 - return ret - } - return o.Accounts -} - -// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderRequest) GetAccountsOk() ([]int32, bool) { - if o == nil || IsNil(o.Accounts) { - return nil, false - } - return o.Accounts, true -} - -// HasAccounts returns a boolean if a field has been set. -func (o *ProviderRequest) HasAccounts() bool { - if o != nil && !IsNil(o.Accounts) { - return true - } - - return false -} - -// SetAccounts gets a reference to the given []int32 and assigns it to the Accounts field. -func (o *ProviderRequest) SetAccounts(v []int32) { - o.Accounts = v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -165,134 +128,6 @@ func (o *ProviderRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *ProviderRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *ProviderRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *ProviderRequest) SetComments(v string) { - o.Comments = &v -} - -// GetAsns returns the Asns field value if set, zero value otherwise. -func (o *ProviderRequest) GetAsns() []int32 { - if o == nil || IsNil(o.Asns) { - var ret []int32 - return ret - } - return o.Asns -} - -// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderRequest) GetAsnsOk() ([]int32, bool) { - if o == nil || IsNil(o.Asns) { - return nil, false - } - return o.Asns, true -} - -// HasAsns returns a boolean if a field has been set. -func (o *ProviderRequest) HasAsns() bool { - if o != nil && !IsNil(o.Asns) { - return true - } - - return false -} - -// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. -func (o *ProviderRequest) SetAsns(v []int32) { - o.Asns = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *ProviderRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *ProviderRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *ProviderRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *ProviderRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *ProviderRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *ProviderRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *ProviderRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o ProviderRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -305,24 +140,9 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Accounts) { - toSerialize["accounts"] = o.Accounts - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Asns) { - toSerialize["asns"] = o.Asns - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -369,12 +189,7 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "accounts") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "asns") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack.go b/model_rack.go index 52f79e576..95c82770b 100644 --- a/model_rack.go +++ b/model_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Rack type satisfies the MappedNullable interface at compile time @@ -21,49 +20,12 @@ var _ MappedNullable = &Rack{} // Rack Adds support for custom fields and tags. type Rack struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - FacilityId NullableString `json:"facility_id,omitempty"` - Site BriefSite `json:"site"` - Location NullableBriefLocation `json:"location,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Status *RackStatus `json:"status,omitempty"` - Role NullableBriefRackRole `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` - // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - RackType NullableBriefRackType `json:"rack_type,omitempty"` - FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` - Width *RackWidth `json:"width,omitempty"` - // Height in rack units - UHeight *int32 `json:"u_height,omitempty"` - // Starting unit for rack - StartingUnit *int32 `json:"starting_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` - // Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - // Outer dimension of rack (width) - OuterWidth NullableInt32 `json:"outer_width,omitempty"` - // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` - // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Airflow *RackAirflow `json:"airflow,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - DeviceCount *int64 `json:"device_count,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + DeviceCount *int64 `json:"device_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -73,17 +35,12 @@ type _Rack Rack // 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 NewRack(id int32, url string, displayUrl string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, powerfeedCount int64) *Rack { +func NewRack(id int32, url string, display string, name string) *Rack { this := Rack{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Site = site - this.Created = created - this.LastUpdated = lastUpdated - this.PowerfeedCount = powerfeedCount return &this } @@ -143,926 +100,52 @@ func (o *Rack) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Rack) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Rack) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Rack) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - -// GetDisplay returns the Display field value -func (o *Rack) GetDisplay() string { - if o == nil { - var ret string - return ret - } - - return o.Display -} - -// GetDisplayOk returns a tuple with the Display field value -// and a boolean to check if the value has been set. -func (o *Rack) GetDisplayOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Display, true -} - -// SetDisplay sets field value -func (o *Rack) SetDisplay(v string) { - o.Display = v -} - -// GetName returns the Name field value -func (o *Rack) GetName() string { - if o == nil { - var ret string - return ret - } - - return o.Name -} - -// GetNameOk returns a tuple with the Name field value -// and a boolean to check if the value has been set. -func (o *Rack) GetNameOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Name, true -} - -// SetName sets field value -func (o *Rack) SetName(v string) { - o.Name = v -} - -// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetFacilityId() string { - if o == nil || IsNil(o.FacilityId.Get()) { - var ret string - return ret - } - return *o.FacilityId.Get() -} - -// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetFacilityIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.FacilityId.Get(), o.FacilityId.IsSet() -} - -// HasFacilityId returns a boolean if a field has been set. -func (o *Rack) HasFacilityId() bool { - if o != nil && o.FacilityId.IsSet() { - return true - } - - return false -} - -// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. -func (o *Rack) SetFacilityId(v string) { - o.FacilityId.Set(&v) -} - -// SetFacilityIdNil sets the value for FacilityId to be an explicit nil -func (o *Rack) SetFacilityIdNil() { - o.FacilityId.Set(nil) -} - -// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil -func (o *Rack) UnsetFacilityId() { - o.FacilityId.Unset() -} - -// GetSite returns the Site field value -func (o *Rack) GetSite() BriefSite { - if o == nil { - var ret BriefSite - return ret - } - - return o.Site -} - -// GetSiteOk returns a tuple with the Site field value -// and a boolean to check if the value has been set. -func (o *Rack) GetSiteOk() (*BriefSite, bool) { - if o == nil { - return nil, false - } - return &o.Site, true -} - -// SetSite sets field value -func (o *Rack) SetSite(v BriefSite) { - o.Site = v -} - -// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetLocation() BriefLocation { - if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocation - return ret - } - return *o.Location.Get() -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetLocationOk() (*BriefLocation, bool) { - if o == nil { - return nil, false - } - return o.Location.Get(), o.Location.IsSet() -} - -// HasLocation returns a boolean if a field has been set. -func (o *Rack) HasLocation() bool { - if o != nil && o.Location.IsSet() { - return true - } - - return false -} - -// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. -func (o *Rack) SetLocation(v BriefLocation) { - o.Location.Set(&v) -} - -// SetLocationNil sets the value for Location to be an explicit nil -func (o *Rack) SetLocationNil() { - o.Location.Set(nil) -} - -// UnsetLocation ensures that no value is present for Location, not even an explicit nil -func (o *Rack) UnsetLocation() { - o.Location.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Rack) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Rack) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Rack) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Rack) UnsetTenant() { - o.Tenant.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Rack) GetStatus() RackStatus { - if o == nil || IsNil(o.Status) { - var ret RackStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetStatusOk() (*RackStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Rack) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given RackStatus and assigns it to the Status field. -func (o *Rack) SetStatus(v RackStatus) { - o.Status = &v -} - -// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetRole() BriefRackRole { - if o == nil || IsNil(o.Role.Get()) { - var ret BriefRackRole - return ret - } - return *o.Role.Get() -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetRoleOk() (*BriefRackRole, bool) { - if o == nil { - return nil, false - } - return o.Role.Get(), o.Role.IsSet() -} - -// HasRole returns a boolean if a field has been set. -func (o *Rack) HasRole() bool { - if o != nil && o.Role.IsSet() { - return true - } - - return false -} - -// SetRole gets a reference to the given NullableBriefRackRole and assigns it to the Role field. -func (o *Rack) SetRole(v BriefRackRole) { - o.Role.Set(&v) -} - -// SetRoleNil sets the value for Role to be an explicit nil -func (o *Rack) SetRoleNil() { - o.Role.Set(nil) -} - -// UnsetRole ensures that no value is present for Role, not even an explicit nil -func (o *Rack) UnsetRole() { - o.Role.Unset() -} - -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *Rack) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *Rack) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *Rack) SetSerial(v string) { - o.Serial = &v -} - -// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetAssetTag() string { - if o == nil || IsNil(o.AssetTag.Get()) { - var ret string - return ret - } - return *o.AssetTag.Get() -} - -// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetAssetTagOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.AssetTag.Get(), o.AssetTag.IsSet() -} - -// HasAssetTag returns a boolean if a field has been set. -func (o *Rack) HasAssetTag() bool { - if o != nil && o.AssetTag.IsSet() { - return true - } - - return false -} - -// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. -func (o *Rack) SetAssetTag(v string) { - o.AssetTag.Set(&v) -} - -// SetAssetTagNil sets the value for AssetTag to be an explicit nil -func (o *Rack) SetAssetTagNil() { - o.AssetTag.Set(nil) -} - -// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -func (o *Rack) UnsetAssetTag() { - o.AssetTag.Unset() -} - -// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetRackType() BriefRackType { - if o == nil || IsNil(o.RackType.Get()) { - var ret BriefRackType - return ret - } - return *o.RackType.Get() -} - -// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetRackTypeOk() (*BriefRackType, bool) { - if o == nil { - return nil, false - } - return o.RackType.Get(), o.RackType.IsSet() -} - -// HasRackType returns a boolean if a field has been set. -func (o *Rack) HasRackType() bool { - if o != nil && o.RackType.IsSet() { - return true - } - - return false -} - -// SetRackType gets a reference to the given NullableBriefRackType and assigns it to the RackType field. -func (o *Rack) SetRackType(v BriefRackType) { - o.RackType.Set(&v) -} - -// SetRackTypeNil sets the value for RackType to be an explicit nil -func (o *Rack) SetRackTypeNil() { - o.RackType.Set(nil) -} - -// UnsetRackType ensures that no value is present for RackType, not even an explicit nil -func (o *Rack) UnsetRackType() { - o.RackType.Unset() -} - -// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetFormFactor() RackFormFactor { - if o == nil || IsNil(o.FormFactor.Get()) { - var ret RackFormFactor - return ret - } - return *o.FormFactor.Get() -} - -// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool) { - if o == nil { - return nil, false - } - return o.FormFactor.Get(), o.FormFactor.IsSet() -} - -// HasFormFactor returns a boolean if a field has been set. -func (o *Rack) HasFormFactor() bool { - if o != nil && o.FormFactor.IsSet() { - return true - } - - return false -} - -// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. -func (o *Rack) SetFormFactor(v RackFormFactor) { - o.FormFactor.Set(&v) -} - -// SetFormFactorNil sets the value for FormFactor to be an explicit nil -func (o *Rack) SetFormFactorNil() { - o.FormFactor.Set(nil) -} - -// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil -func (o *Rack) UnsetFormFactor() { - o.FormFactor.Unset() -} - -// GetWidth returns the Width field value if set, zero value otherwise. -func (o *Rack) GetWidth() RackWidth { - if o == nil || IsNil(o.Width) { - var ret RackWidth - return ret - } - return *o.Width -} - -// GetWidthOk returns a tuple with the Width field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetWidthOk() (*RackWidth, bool) { - if o == nil || IsNil(o.Width) { - return nil, false - } - return o.Width, true -} - -// HasWidth returns a boolean if a field has been set. -func (o *Rack) HasWidth() bool { - if o != nil && !IsNil(o.Width) { - return true - } - - return false -} - -// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. -func (o *Rack) SetWidth(v RackWidth) { - o.Width = &v -} - -// GetUHeight returns the UHeight field value if set, zero value otherwise. -func (o *Rack) GetUHeight() int32 { - if o == nil || IsNil(o.UHeight) { - var ret int32 - return ret - } - return *o.UHeight -} - -// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetUHeightOk() (*int32, bool) { - if o == nil || IsNil(o.UHeight) { - return nil, false - } - return o.UHeight, true -} - -// HasUHeight returns a boolean if a field has been set. -func (o *Rack) HasUHeight() bool { - if o != nil && !IsNil(o.UHeight) { - return true - } - - return false -} - -// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. -func (o *Rack) SetUHeight(v int32) { - o.UHeight = &v -} - -// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. -func (o *Rack) GetStartingUnit() int32 { - if o == nil || IsNil(o.StartingUnit) { - var ret int32 - return ret - } - return *o.StartingUnit -} - -// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetStartingUnitOk() (*int32, bool) { - if o == nil || IsNil(o.StartingUnit) { - return nil, false - } - return o.StartingUnit, true -} - -// HasStartingUnit returns a boolean if a field has been set. -func (o *Rack) HasStartingUnit() bool { - if o != nil && !IsNil(o.StartingUnit) { - return true - } - - return false -} - -// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. -func (o *Rack) SetStartingUnit(v int32) { - o.StartingUnit = &v -} - -// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetWeight() float64 { - if o == nil || IsNil(o.Weight.Get()) { - var ret float64 - return ret - } - return *o.Weight.Get() -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetWeightOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Weight.Get(), o.Weight.IsSet() -} - -// HasWeight returns a boolean if a field has been set. -func (o *Rack) HasWeight() bool { - if o != nil && o.Weight.IsSet() { - return true - } - - return false -} - -// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. -func (o *Rack) SetWeight(v float64) { - o.Weight.Set(&v) -} - -// SetWeightNil sets the value for Weight to be an explicit nil -func (o *Rack) SetWeightNil() { - o.Weight.Set(nil) -} - -// UnsetWeight ensures that no value is present for Weight, not even an explicit nil -func (o *Rack) UnsetWeight() { - o.Weight.Unset() -} - -// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetMaxWeight() int32 { - if o == nil || IsNil(o.MaxWeight.Get()) { - var ret int32 - return ret - } - return *o.MaxWeight.Get() -} - -// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetMaxWeightOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MaxWeight.Get(), o.MaxWeight.IsSet() -} - -// HasMaxWeight returns a boolean if a field has been set. -func (o *Rack) HasMaxWeight() bool { - if o != nil && o.MaxWeight.IsSet() { - return true - } - - return false -} - -// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. -func (o *Rack) SetMaxWeight(v int32) { - o.MaxWeight.Set(&v) -} - -// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil -func (o *Rack) SetMaxWeightNil() { - o.MaxWeight.Set(nil) -} - -// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil -func (o *Rack) UnsetMaxWeight() { - o.MaxWeight.Unset() -} - -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit { - if o == nil || IsNil(o.WeightUnit.Get()) { - var ret DeviceTypeWeightUnit - return ret - } - return *o.WeightUnit.Get() -} - -// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { +// GetDisplay returns the Display field value +func (o *Rack) GetDisplay() string { if o == nil { - return nil, false - } - return o.WeightUnit.Get(), o.WeightUnit.IsSet() -} - -// HasWeightUnit returns a boolean if a field has been set. -func (o *Rack) HasWeightUnit() bool { - if o != nil && o.WeightUnit.IsSet() { - return true - } - - return false -} - -// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. -func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit) { - o.WeightUnit.Set(&v) -} - -// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil -func (o *Rack) SetWeightUnitNil() { - o.WeightUnit.Set(nil) -} - -// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -func (o *Rack) UnsetWeightUnit() { - o.WeightUnit.Unset() -} - -// GetDescUnits returns the DescUnits field value if set, zero value otherwise. -func (o *Rack) GetDescUnits() bool { - if o == nil || IsNil(o.DescUnits) { - var ret bool + var ret string return ret } - return *o.DescUnits -} - -// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetDescUnitsOk() (*bool, bool) { - if o == nil || IsNil(o.DescUnits) { - return nil, false - } - return o.DescUnits, true -} - -// HasDescUnits returns a boolean if a field has been set. -func (o *Rack) HasDescUnits() bool { - if o != nil && !IsNil(o.DescUnits) { - return true - } - - return false -} - -// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. -func (o *Rack) SetDescUnits(v bool) { - o.DescUnits = &v -} -// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetOuterWidth() int32 { - if o == nil || IsNil(o.OuterWidth.Get()) { - var ret int32 - return ret - } - return *o.OuterWidth.Get() + return o.Display } -// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// GetDisplayOk returns a tuple with the Display field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetOuterWidthOk() (*int32, bool) { +func (o *Rack) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } - return o.OuterWidth.Get(), o.OuterWidth.IsSet() -} - -// HasOuterWidth returns a boolean if a field has been set. -func (o *Rack) HasOuterWidth() bool { - if o != nil && o.OuterWidth.IsSet() { - return true - } - - return false -} - -// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. -func (o *Rack) SetOuterWidth(v int32) { - o.OuterWidth.Set(&v) -} - -// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil -func (o *Rack) SetOuterWidthNil() { - o.OuterWidth.Set(nil) -} - -// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil -func (o *Rack) UnsetOuterWidth() { - o.OuterWidth.Unset() + return &o.Display, true } -// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetOuterDepth() int32 { - if o == nil || IsNil(o.OuterDepth.Get()) { - var ret int32 - return ret - } - return *o.OuterDepth.Get() +// SetDisplay sets field value +func (o *Rack) SetDisplay(v string) { + o.Display = v } -// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetOuterDepthOk() (*int32, bool) { +// GetName returns the Name field value +func (o *Rack) GetName() string { if o == nil { - return nil, false - } - return o.OuterDepth.Get(), o.OuterDepth.IsSet() -} - -// HasOuterDepth returns a boolean if a field has been set. -func (o *Rack) HasOuterDepth() bool { - if o != nil && o.OuterDepth.IsSet() { - return true - } - - return false -} - -// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. -func (o *Rack) SetOuterDepth(v int32) { - o.OuterDepth.Set(&v) -} - -// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil -func (o *Rack) SetOuterDepthNil() { - o.OuterDepth.Set(nil) -} - -// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil -func (o *Rack) UnsetOuterDepth() { - o.OuterDepth.Unset() -} - -// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetOuterUnit() RackOuterUnit { - if o == nil || IsNil(o.OuterUnit.Get()) { - var ret RackOuterUnit + var ret string return ret } - return *o.OuterUnit.Get() -} - -// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool) { - if o == nil { - return nil, false - } - return o.OuterUnit.Get(), o.OuterUnit.IsSet() -} - -// HasOuterUnit returns a boolean if a field has been set. -func (o *Rack) HasOuterUnit() bool { - if o != nil && o.OuterUnit.IsSet() { - return true - } - - return false -} - -// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. -func (o *Rack) SetOuterUnit(v RackOuterUnit) { - o.OuterUnit.Set(&v) -} - -// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil -func (o *Rack) SetOuterUnitNil() { - o.OuterUnit.Set(nil) -} - -// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil -func (o *Rack) UnsetOuterUnit() { - o.OuterUnit.Unset() -} -// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Rack) GetMountingDepth() int32 { - if o == nil || IsNil(o.MountingDepth.Get()) { - var ret int32 - return ret - } - return *o.MountingDepth.Get() + return o.Name } -// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// GetNameOk returns a tuple with the Name field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetMountingDepthOk() (*int32, bool) { +func (o *Rack) GetNameOk() (*string, bool) { if o == nil { return nil, false } - return o.MountingDepth.Get(), o.MountingDepth.IsSet() -} - -// HasMountingDepth returns a boolean if a field has been set. -func (o *Rack) HasMountingDepth() bool { - if o != nil && o.MountingDepth.IsSet() { - return true - } - - return false -} - -// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. -func (o *Rack) SetMountingDepth(v int32) { - o.MountingDepth.Set(&v) -} - -// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil -func (o *Rack) SetMountingDepthNil() { - o.MountingDepth.Set(nil) -} - -// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil -func (o *Rack) UnsetMountingDepth() { - o.MountingDepth.Unset() -} - -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *Rack) GetAirflow() RackAirflow { - if o == nil || IsNil(o.Airflow) { - var ret RackAirflow - return ret - } - return *o.Airflow -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetAirflowOk() (*RackAirflow, bool) { - if o == nil || IsNil(o.Airflow) { - return nil, false - } - return o.Airflow, true -} - -// HasAirflow returns a boolean if a field has been set. -func (o *Rack) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { - return true - } - - return false + return &o.Name, true } -// SetAirflow gets a reference to the given RackAirflow and assigns it to the Airflow field. -func (o *Rack) SetAirflow(v RackAirflow) { - o.Airflow = &v +// SetName sets field value +func (o *Rack) SetName(v string) { + o.Name = v } // GetDescription returns the Description field value if set, zero value otherwise. @@ -1097,154 +180,6 @@ func (o *Rack) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Rack) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Rack) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Rack) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Rack) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Rack) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Rack) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Rack) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Rack) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Rack) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Rack) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Rack) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Rack) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Rack) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Rack) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Rack) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Rack) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -1277,30 +212,6 @@ func (o *Rack) SetDeviceCount(v int64) { o.DeviceCount = &v } -// GetPowerfeedCount returns the PowerfeedCount field value -func (o *Rack) GetPowerfeedCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.PowerfeedCount -} - -// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value -// and a boolean to check if the value has been set. -func (o *Rack) GetPowerfeedCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.PowerfeedCount, true -} - -// SetPowerfeedCount sets field value -func (o *Rack) SetPowerfeedCount(v int64) { - o.PowerfeedCount = v -} - func (o Rack) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -1313,91 +224,14 @@ func (o Rack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name - if o.FacilityId.IsSet() { - toSerialize["facility_id"] = o.FacilityId.Get() - } - toSerialize["site"] = o.Site - if o.Location.IsSet() { - toSerialize["location"] = o.Location.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Role.IsSet() { - toSerialize["role"] = o.Role.Get() - } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } - if o.AssetTag.IsSet() { - toSerialize["asset_tag"] = o.AssetTag.Get() - } - if o.RackType.IsSet() { - toSerialize["rack_type"] = o.RackType.Get() - } - if o.FormFactor.IsSet() { - toSerialize["form_factor"] = o.FormFactor.Get() - } - if !IsNil(o.Width) { - toSerialize["width"] = o.Width - } - if !IsNil(o.UHeight) { - toSerialize["u_height"] = o.UHeight - } - if !IsNil(o.StartingUnit) { - toSerialize["starting_unit"] = o.StartingUnit - } - if o.Weight.IsSet() { - toSerialize["weight"] = o.Weight.Get() - } - if o.MaxWeight.IsSet() { - toSerialize["max_weight"] = o.MaxWeight.Get() - } - if o.WeightUnit.IsSet() { - toSerialize["weight_unit"] = o.WeightUnit.Get() - } - if !IsNil(o.DescUnits) { - toSerialize["desc_units"] = o.DescUnits - } - if o.OuterWidth.IsSet() { - toSerialize["outer_width"] = o.OuterWidth.Get() - } - if o.OuterDepth.IsSet() { - toSerialize["outer_depth"] = o.OuterDepth.Get() - } - if o.OuterUnit.IsSet() { - toSerialize["outer_unit"] = o.OuterUnit.Get() - } - if o.MountingDepth.IsSet() { - toSerialize["mounting_depth"] = o.MountingDepth.Get() - } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } - toSerialize["powerfeed_count"] = o.PowerfeedCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1413,13 +247,8 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "site", - "created", - "last_updated", - "powerfeed_count", } allProperties := make(map[string]interface{}) @@ -1451,39 +280,10 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") - delete(additionalProperties, "facility_id") - delete(additionalProperties, "site") - delete(additionalProperties, "location") - delete(additionalProperties, "tenant") - delete(additionalProperties, "status") - delete(additionalProperties, "role") - delete(additionalProperties, "serial") - delete(additionalProperties, "asset_tag") - delete(additionalProperties, "rack_type") - delete(additionalProperties, "form_factor") - delete(additionalProperties, "width") - delete(additionalProperties, "u_height") - delete(additionalProperties, "starting_unit") - delete(additionalProperties, "weight") - delete(additionalProperties, "max_weight") - delete(additionalProperties, "weight_unit") - delete(additionalProperties, "desc_units") - delete(additionalProperties, "outer_width") - delete(additionalProperties, "outer_depth") - delete(additionalProperties, "outer_unit") - delete(additionalProperties, "mounting_depth") - delete(additionalProperties, "airflow") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") - delete(additionalProperties, "powerfeed_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_airflow.go b/model_rack_airflow.go index 610bd0172..988301e5f 100644 --- a/model_rack_airflow.go +++ b/model_rack_airflow.go @@ -19,8 +19,8 @@ var _ MappedNullable = &RackAirflow{} // RackAirflow struct for RackAirflow type RackAirflow struct { - Value *PatchedWritableRackRequestAirflow `json:"value,omitempty"` - Label *RackAirflowLabel `json:"label,omitempty"` + Value *PatchedWritableRackRequestAirflow `json:"value,omitempty"` + Label *RackAirflowLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *RackAirflow) SetLabel(v RackAirflowLabel) { } func (o RackAirflow) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableRackAirflow) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_airflow_label.go b/model_rack_airflow_label.go index 8c878c175..324cf1fd2 100644 --- a/model_rack_airflow_label.go +++ b/model_rack_airflow_label.go @@ -108,4 +108,3 @@ func (v *NullableRackAirflowLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_face.go b/model_rack_face.go index bc93b22c3..a0c96cd51 100644 --- a/model_rack_face.go +++ b/model_rack_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_face_1.go b/model_rack_face_1.go index c9c0463ec..bbb650941 100644 --- a/model_rack_face_1.go +++ b/model_rack_face_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_form_factor.go b/model_rack_form_factor.go index 552091463..55e13a90d 100644 --- a/model_rack_form_factor.go +++ b/model_rack_form_factor.go @@ -19,8 +19,8 @@ var _ MappedNullable = &RackFormFactor{} // RackFormFactor struct for RackFormFactor type RackFormFactor struct { - Value *PatchedWritableRackRequestFormFactor `json:"value,omitempty"` - Label *RackFormFactorLabel `json:"label,omitempty"` + Value *PatchedWritableRackRequestFormFactor `json:"value,omitempty"` + Label *RackFormFactorLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *RackFormFactor) SetLabel(v RackFormFactorLabel) { } func (o RackFormFactor) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableRackFormFactor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_form_factor_label.go b/model_rack_form_factor_label.go index bd134be7d..cb88961b7 100644 --- a/model_rack_form_factor_label.go +++ b/model_rack_form_factor_label.go @@ -20,12 +20,12 @@ type RackFormFactorLabel string // List of Rack_form_factor_label const ( - RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame" - RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame" - RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet" - RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame" - RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)" - RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet" + RACKFORMFACTORLABEL__2_POST_FRAME RackFormFactorLabel = "2-post frame" + RACKFORMFACTORLABEL__4_POST_FRAME RackFormFactorLabel = "4-post frame" + RACKFORMFACTORLABEL__4_POST_CABINET RackFormFactorLabel = "4-post cabinet" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME RackFormFactorLabel = "Wall-mounted frame" + RACKFORMFACTORLABEL_WALL_MOUNTED_FRAME__VERTICAL RackFormFactorLabel = "Wall-mounted frame (vertical)" + RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET RackFormFactorLabel = "Wall-mounted cabinet" RACKFORMFACTORLABEL_WALL_MOUNTED_CABINET__VERTICAL RackFormFactorLabel = "Wall-mounted cabinet (vertical)" ) @@ -118,4 +118,3 @@ func (v *NullableRackFormFactorLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go index 7b487ce8e..76b0db79c 100644 --- a/model_rack_outer_unit.go +++ b/model_rack_outer_unit.go @@ -19,8 +19,8 @@ var _ MappedNullable = &RackOuterUnit{} // RackOuterUnit struct for RackOuterUnit type RackOuterUnit struct { - Value *PatchedWritableRackRequestOuterUnit `json:"value,omitempty"` - Label *RackOuterUnitLabel `json:"label,omitempty"` + Value *PatchedWritableRackRequestOuterUnit `json:"value,omitempty"` + Label *RackOuterUnitLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *RackOuterUnit) SetLabel(v RackOuterUnitLabel) { } func (o RackOuterUnit) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableRackOuterUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go index 3312d2f66..bbb050e3e 100644 --- a/model_rack_outer_unit_label.go +++ b/model_rack_outer_unit_label.go @@ -21,7 +21,7 @@ type RackOuterUnitLabel string // List of Rack_outer_unit_label const ( RACKOUTERUNITLABEL_MILLIMETERS RackOuterUnitLabel = "Millimeters" - RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches" + RACKOUTERUNITLABEL_INCHES RackOuterUnitLabel = "Inches" ) // All allowed values of RackOuterUnitLabel enum @@ -108,4 +108,3 @@ func (v *NullableRackOuterUnitLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_request.go b/model_rack_request.go index dfa36681f..820be5e16 100644 --- a/model_rack_request.go +++ b/model_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,41 +20,8 @@ var _ MappedNullable = &RackRequest{} // RackRequest Adds support for custom fields and tags. type RackRequest struct { - Name string `json:"name"` - FacilityId NullableString `json:"facility_id,omitempty"` - Site BriefSiteRequest `json:"site"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableBriefRackRoleRequest `json:"role,omitempty"` - Serial *string `json:"serial,omitempty"` - // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` - FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` - Width *RackWidthValue `json:"width,omitempty"` - // Height in rack units - UHeight *int32 `json:"u_height,omitempty"` - // Starting unit for rack - StartingUnit *int32 `json:"starting_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - // Units are numbered top-to-bottom - DescUnits *bool `json:"desc_units,omitempty"` - // Outer dimension of rack (width) - OuterWidth NullableInt32 `json:"outer_width,omitempty"` - // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` - // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -64,10 +31,9 @@ type _RackRequest RackRequest // 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 NewRackRequest(name string, site BriefSiteRequest) *RackRequest { +func NewRackRequest(name string) *RackRequest { this := RackRequest{} this.Name = name - this.Site = site return &this } @@ -103,856 +69,6 @@ func (o *RackRequest) SetName(v string) { o.Name = v } -// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetFacilityId() string { - if o == nil || IsNil(o.FacilityId.Get()) { - var ret string - return ret - } - return *o.FacilityId.Get() -} - -// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetFacilityIdOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.FacilityId.Get(), o.FacilityId.IsSet() -} - -// HasFacilityId returns a boolean if a field has been set. -func (o *RackRequest) HasFacilityId() bool { - if o != nil && o.FacilityId.IsSet() { - return true - } - - return false -} - -// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. -func (o *RackRequest) SetFacilityId(v string) { - o.FacilityId.Set(&v) -} - -// SetFacilityIdNil sets the value for FacilityId to be an explicit nil -func (o *RackRequest) SetFacilityIdNil() { - o.FacilityId.Set(nil) -} - -// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil -func (o *RackRequest) UnsetFacilityId() { - o.FacilityId.Unset() -} - -// GetSite returns the Site field value -func (o *RackRequest) GetSite() BriefSiteRequest { - if o == nil { - var ret BriefSiteRequest - return ret - } - - return o.Site -} - -// GetSiteOk returns a tuple with the Site field value -// and a boolean to check if the value has been set. -func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) { - if o == nil { - return nil, false - } - return &o.Site, true -} - -// SetSite sets field value -func (o *RackRequest) SetSite(v BriefSiteRequest) { - o.Site = v -} - -// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetLocation() BriefLocationRequest { - if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest - return ret - } - return *o.Location.Get() -} - -// GetLocationOk returns a tuple with the Location field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool) { - if o == nil { - return nil, false - } - return o.Location.Get(), o.Location.IsSet() -} - -// HasLocation returns a boolean if a field has been set. -func (o *RackRequest) HasLocation() bool { - if o != nil && o.Location.IsSet() { - return true - } - - return false -} - -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *RackRequest) SetLocation(v BriefLocationRequest) { - o.Location.Set(&v) -} - -// SetLocationNil sets the value for Location to be an explicit nil -func (o *RackRequest) SetLocationNil() { - o.Location.Set(nil) -} - -// UnsetLocation ensures that no value is present for Location, not even an explicit nil -func (o *RackRequest) UnsetLocation() { - o.Location.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *RackRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *RackRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *RackRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *RackRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus { - if o == nil || IsNil(o.Status) { - var ret PatchedWritableRackRequestStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *RackRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field. -func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) { - o.Status = &v -} - -// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetRole() BriefRackRoleRequest { - if o == nil || IsNil(o.Role.Get()) { - var ret BriefRackRoleRequest - return ret - } - return *o.Role.Get() -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { - if o == nil { - return nil, false - } - return o.Role.Get(), o.Role.IsSet() -} - -// HasRole returns a boolean if a field has been set. -func (o *RackRequest) HasRole() bool { - if o != nil && o.Role.IsSet() { - return true - } - - return false -} - -// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. -func (o *RackRequest) SetRole(v BriefRackRoleRequest) { - o.Role.Set(&v) -} - -// SetRoleNil sets the value for Role to be an explicit nil -func (o *RackRequest) SetRoleNil() { - o.Role.Set(nil) -} - -// UnsetRole ensures that no value is present for Role, not even an explicit nil -func (o *RackRequest) UnsetRole() { - o.Role.Unset() -} - -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *RackRequest) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *RackRequest) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *RackRequest) SetSerial(v string) { - o.Serial = &v -} - -// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetAssetTag() string { - if o == nil || IsNil(o.AssetTag.Get()) { - var ret string - return ret - } - return *o.AssetTag.Get() -} - -// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetAssetTagOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.AssetTag.Get(), o.AssetTag.IsSet() -} - -// HasAssetTag returns a boolean if a field has been set. -func (o *RackRequest) HasAssetTag() bool { - if o != nil && o.AssetTag.IsSet() { - return true - } - - return false -} - -// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. -func (o *RackRequest) SetAssetTag(v string) { - o.AssetTag.Set(&v) -} - -// SetAssetTagNil sets the value for AssetTag to be an explicit nil -func (o *RackRequest) SetAssetTagNil() { - o.AssetTag.Set(nil) -} - -// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -func (o *RackRequest) UnsetAssetTag() { - o.AssetTag.Unset() -} - -// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetRackType() BriefRackTypeRequest { - if o == nil || IsNil(o.RackType.Get()) { - var ret BriefRackTypeRequest - return ret - } - return *o.RackType.Get() -} - -// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.RackType.Get(), o.RackType.IsSet() -} - -// HasRackType returns a boolean if a field has been set. -func (o *RackRequest) HasRackType() bool { - if o != nil && o.RackType.IsSet() { - return true - } - - return false -} - -// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. -func (o *RackRequest) SetRackType(v BriefRackTypeRequest) { - o.RackType.Set(&v) -} - -// SetRackTypeNil sets the value for RackType to be an explicit nil -func (o *RackRequest) SetRackTypeNil() { - o.RackType.Set(nil) -} - -// UnsetRackType ensures that no value is present for RackType, not even an explicit nil -func (o *RackRequest) UnsetRackType() { - o.RackType.Unset() -} - -// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetFormFactor() RackRequestFormFactor { - if o == nil || IsNil(o.FormFactor.Get()) { - var ret RackRequestFormFactor - return ret - } - return *o.FormFactor.Get() -} - -// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool) { - if o == nil { - return nil, false - } - return o.FormFactor.Get(), o.FormFactor.IsSet() -} - -// HasFormFactor returns a boolean if a field has been set. -func (o *RackRequest) HasFormFactor() bool { - if o != nil && o.FormFactor.IsSet() { - return true - } - - return false -} - -// SetFormFactor gets a reference to the given NullableRackRequestFormFactor and assigns it to the FormFactor field. -func (o *RackRequest) SetFormFactor(v RackRequestFormFactor) { - o.FormFactor.Set(&v) -} - -// SetFormFactorNil sets the value for FormFactor to be an explicit nil -func (o *RackRequest) SetFormFactorNil() { - o.FormFactor.Set(nil) -} - -// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil -func (o *RackRequest) UnsetFormFactor() { - o.FormFactor.Unset() -} - -// GetWidth returns the Width field value if set, zero value otherwise. -func (o *RackRequest) GetWidth() RackWidthValue { - if o == nil || IsNil(o.Width) { - var ret RackWidthValue - return ret - } - return *o.Width -} - -// GetWidthOk returns a tuple with the Width field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool) { - if o == nil || IsNil(o.Width) { - return nil, false - } - return o.Width, true -} - -// HasWidth returns a boolean if a field has been set. -func (o *RackRequest) HasWidth() bool { - if o != nil && !IsNil(o.Width) { - return true - } - - return false -} - -// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. -func (o *RackRequest) SetWidth(v RackWidthValue) { - o.Width = &v -} - -// GetUHeight returns the UHeight field value if set, zero value otherwise. -func (o *RackRequest) GetUHeight() int32 { - if o == nil || IsNil(o.UHeight) { - var ret int32 - return ret - } - return *o.UHeight -} - -// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetUHeightOk() (*int32, bool) { - if o == nil || IsNil(o.UHeight) { - return nil, false - } - return o.UHeight, true -} - -// HasUHeight returns a boolean if a field has been set. -func (o *RackRequest) HasUHeight() bool { - if o != nil && !IsNil(o.UHeight) { - return true - } - - return false -} - -// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. -func (o *RackRequest) SetUHeight(v int32) { - o.UHeight = &v -} - -// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. -func (o *RackRequest) GetStartingUnit() int32 { - if o == nil || IsNil(o.StartingUnit) { - var ret int32 - return ret - } - return *o.StartingUnit -} - -// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetStartingUnitOk() (*int32, bool) { - if o == nil || IsNil(o.StartingUnit) { - return nil, false - } - return o.StartingUnit, true -} - -// HasStartingUnit returns a boolean if a field has been set. -func (o *RackRequest) HasStartingUnit() bool { - if o != nil && !IsNil(o.StartingUnit) { - return true - } - - return false -} - -// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. -func (o *RackRequest) SetStartingUnit(v int32) { - o.StartingUnit = &v -} - -// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetWeight() float64 { - if o == nil || IsNil(o.Weight.Get()) { - var ret float64 - return ret - } - return *o.Weight.Get() -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetWeightOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Weight.Get(), o.Weight.IsSet() -} - -// HasWeight returns a boolean if a field has been set. -func (o *RackRequest) HasWeight() bool { - if o != nil && o.Weight.IsSet() { - return true - } - - return false -} - -// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. -func (o *RackRequest) SetWeight(v float64) { - o.Weight.Set(&v) -} - -// SetWeightNil sets the value for Weight to be an explicit nil -func (o *RackRequest) SetWeightNil() { - o.Weight.Set(nil) -} - -// UnsetWeight ensures that no value is present for Weight, not even an explicit nil -func (o *RackRequest) UnsetWeight() { - o.Weight.Unset() -} - -// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetMaxWeight() int32 { - if o == nil || IsNil(o.MaxWeight.Get()) { - var ret int32 - return ret - } - return *o.MaxWeight.Get() -} - -// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetMaxWeightOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MaxWeight.Get(), o.MaxWeight.IsSet() -} - -// HasMaxWeight returns a boolean if a field has been set. -func (o *RackRequest) HasMaxWeight() bool { - if o != nil && o.MaxWeight.IsSet() { - return true - } - - return false -} - -// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. -func (o *RackRequest) SetMaxWeight(v int32) { - o.MaxWeight.Set(&v) -} - -// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil -func (o *RackRequest) SetMaxWeightNil() { - o.MaxWeight.Set(nil) -} - -// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil -func (o *RackRequest) UnsetMaxWeight() { - o.MaxWeight.Unset() -} - -// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { - if o == nil || IsNil(o.WeightUnit.Get()) { - var ret DeviceTypeRequestWeightUnit - return ret - } - return *o.WeightUnit.Get() -} - -// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { - if o == nil { - return nil, false - } - return o.WeightUnit.Get(), o.WeightUnit.IsSet() -} - -// HasWeightUnit returns a boolean if a field has been set. -func (o *RackRequest) HasWeightUnit() bool { - if o != nil && o.WeightUnit.IsSet() { - return true - } - - return false -} - -// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { - o.WeightUnit.Set(&v) -} - -// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil -func (o *RackRequest) SetWeightUnitNil() { - o.WeightUnit.Set(nil) -} - -// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil -func (o *RackRequest) UnsetWeightUnit() { - o.WeightUnit.Unset() -} - -// GetDescUnits returns the DescUnits field value if set, zero value otherwise. -func (o *RackRequest) GetDescUnits() bool { - if o == nil || IsNil(o.DescUnits) { - var ret bool - return ret - } - return *o.DescUnits -} - -// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetDescUnitsOk() (*bool, bool) { - if o == nil || IsNil(o.DescUnits) { - return nil, false - } - return o.DescUnits, true -} - -// HasDescUnits returns a boolean if a field has been set. -func (o *RackRequest) HasDescUnits() bool { - if o != nil && !IsNil(o.DescUnits) { - return true - } - - return false -} - -// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. -func (o *RackRequest) SetDescUnits(v bool) { - o.DescUnits = &v -} - -// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetOuterWidth() int32 { - if o == nil || IsNil(o.OuterWidth.Get()) { - var ret int32 - return ret - } - return *o.OuterWidth.Get() -} - -// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetOuterWidthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.OuterWidth.Get(), o.OuterWidth.IsSet() -} - -// HasOuterWidth returns a boolean if a field has been set. -func (o *RackRequest) HasOuterWidth() bool { - if o != nil && o.OuterWidth.IsSet() { - return true - } - - return false -} - -// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. -func (o *RackRequest) SetOuterWidth(v int32) { - o.OuterWidth.Set(&v) -} - -// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil -func (o *RackRequest) SetOuterWidthNil() { - o.OuterWidth.Set(nil) -} - -// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil -func (o *RackRequest) UnsetOuterWidth() { - o.OuterWidth.Unset() -} - -// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetOuterDepth() int32 { - if o == nil || IsNil(o.OuterDepth.Get()) { - var ret int32 - return ret - } - return *o.OuterDepth.Get() -} - -// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetOuterDepthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.OuterDepth.Get(), o.OuterDepth.IsSet() -} - -// HasOuterDepth returns a boolean if a field has been set. -func (o *RackRequest) HasOuterDepth() bool { - if o != nil && o.OuterDepth.IsSet() { - return true - } - - return false -} - -// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. -func (o *RackRequest) SetOuterDepth(v int32) { - o.OuterDepth.Set(&v) -} - -// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil -func (o *RackRequest) SetOuterDepthNil() { - o.OuterDepth.Set(nil) -} - -// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil -func (o *RackRequest) UnsetOuterDepth() { - o.OuterDepth.Unset() -} - -// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit { - if o == nil || IsNil(o.OuterUnit.Get()) { - var ret RackRequestOuterUnit - return ret - } - return *o.OuterUnit.Get() -} - -// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) { - if o == nil { - return nil, false - } - return o.OuterUnit.Get(), o.OuterUnit.IsSet() -} - -// HasOuterUnit returns a boolean if a field has been set. -func (o *RackRequest) HasOuterUnit() bool { - if o != nil && o.OuterUnit.IsSet() { - return true - } - - return false -} - -// SetOuterUnit gets a reference to the given NullableRackRequestOuterUnit and assigns it to the OuterUnit field. -func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit) { - o.OuterUnit.Set(&v) -} - -// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil -func (o *RackRequest) SetOuterUnitNil() { - o.OuterUnit.Set(nil) -} - -// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil -func (o *RackRequest) UnsetOuterUnit() { - o.OuterUnit.Unset() -} - -// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackRequest) GetMountingDepth() int32 { - if o == nil || IsNil(o.MountingDepth.Get()) { - var ret int32 - return ret - } - return *o.MountingDepth.Get() -} - -// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackRequest) GetMountingDepthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return o.MountingDepth.Get(), o.MountingDepth.IsSet() -} - -// HasMountingDepth returns a boolean if a field has been set. -func (o *RackRequest) HasMountingDepth() bool { - if o != nil && o.MountingDepth.IsSet() { - return true - } - - return false -} - -// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. -func (o *RackRequest) SetMountingDepth(v int32) { - o.MountingDepth.Set(&v) -} - -// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil -func (o *RackRequest) SetMountingDepthNil() { - o.MountingDepth.Set(nil) -} - -// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil -func (o *RackRequest) UnsetMountingDepth() { - o.MountingDepth.Unset() -} - -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow { - if o == nil || IsNil(o.Airflow) { - var ret PatchedWritableRackRequestAirflow - return ret - } - return *o.Airflow -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { - if o == nil || IsNil(o.Airflow) { - return nil, false - } - return o.Airflow, true -} - -// HasAirflow returns a boolean if a field has been set. -func (o *RackRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { - return true - } - - return false -} - -// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. -func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { - o.Airflow = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *RackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -985,102 +101,6 @@ func (o *RackRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *RackRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *RackRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *RackRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *RackRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *RackRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *RackRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *RackRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RackRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *RackRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *RackRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o RackRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -1092,82 +112,9 @@ func (o RackRequest) MarshalJSON() ([]byte, error) { func (o RackRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if o.FacilityId.IsSet() { - toSerialize["facility_id"] = o.FacilityId.Get() - } - toSerialize["site"] = o.Site - if o.Location.IsSet() { - toSerialize["location"] = o.Location.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Role.IsSet() { - toSerialize["role"] = o.Role.Get() - } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } - if o.AssetTag.IsSet() { - toSerialize["asset_tag"] = o.AssetTag.Get() - } - if o.RackType.IsSet() { - toSerialize["rack_type"] = o.RackType.Get() - } - if o.FormFactor.IsSet() { - toSerialize["form_factor"] = o.FormFactor.Get() - } - if !IsNil(o.Width) { - toSerialize["width"] = o.Width - } - if !IsNil(o.UHeight) { - toSerialize["u_height"] = o.UHeight - } - if !IsNil(o.StartingUnit) { - toSerialize["starting_unit"] = o.StartingUnit - } - if o.Weight.IsSet() { - toSerialize["weight"] = o.Weight.Get() - } - if o.MaxWeight.IsSet() { - toSerialize["max_weight"] = o.MaxWeight.Get() - } - if o.WeightUnit.IsSet() { - toSerialize["weight_unit"] = o.WeightUnit.Get() - } - if !IsNil(o.DescUnits) { - toSerialize["desc_units"] = o.DescUnits - } - if o.OuterWidth.IsSet() { - toSerialize["outer_width"] = o.OuterWidth.Get() - } - if o.OuterDepth.IsSet() { - toSerialize["outer_depth"] = o.OuterDepth.Get() - } - if o.OuterUnit.IsSet() { - toSerialize["outer_unit"] = o.OuterUnit.Get() - } - if o.MountingDepth.IsSet() { - toSerialize["mounting_depth"] = o.MountingDepth.Get() - } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1182,7 +129,6 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", - "site", } allProperties := make(map[string]interface{}) @@ -1213,32 +159,7 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") - delete(additionalProperties, "facility_id") - delete(additionalProperties, "site") - delete(additionalProperties, "location") - delete(additionalProperties, "tenant") - delete(additionalProperties, "status") - delete(additionalProperties, "role") - delete(additionalProperties, "serial") - delete(additionalProperties, "asset_tag") - delete(additionalProperties, "rack_type") - delete(additionalProperties, "form_factor") - delete(additionalProperties, "width") - delete(additionalProperties, "u_height") - delete(additionalProperties, "starting_unit") - delete(additionalProperties, "weight") - delete(additionalProperties, "max_weight") - delete(additionalProperties, "weight_unit") - delete(additionalProperties, "desc_units") - delete(additionalProperties, "outer_width") - delete(additionalProperties, "outer_depth") - delete(additionalProperties, "outer_unit") - delete(additionalProperties, "mounting_depth") - delete(additionalProperties, "airflow") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_request_form_factor.go b/model_rack_request_form_factor.go index c585593f3..e414a6c35 100644 --- a/model_rack_request_form_factor.go +++ b/model_rack_request_form_factor.go @@ -20,14 +20,14 @@ type RackRequestFormFactor string // List of RackRequest_form_factor const ( - RACKREQUESTFORMFACTOR__2_POST_FRAME RackRequestFormFactor = "2-post-frame" - RACKREQUESTFORMFACTOR__4_POST_FRAME RackRequestFormFactor = "4-post-frame" - RACKREQUESTFORMFACTOR__4_POST_CABINET RackRequestFormFactor = "4-post-cabinet" - RACKREQUESTFORMFACTOR_WALL_FRAME RackRequestFormFactor = "wall-frame" - RACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL RackRequestFormFactor = "wall-frame-vertical" - RACKREQUESTFORMFACTOR_WALL_CABINET RackRequestFormFactor = "wall-cabinet" + RACKREQUESTFORMFACTOR__2_POST_FRAME RackRequestFormFactor = "2-post-frame" + RACKREQUESTFORMFACTOR__4_POST_FRAME RackRequestFormFactor = "4-post-frame" + RACKREQUESTFORMFACTOR__4_POST_CABINET RackRequestFormFactor = "4-post-cabinet" + RACKREQUESTFORMFACTOR_WALL_FRAME RackRequestFormFactor = "wall-frame" + RACKREQUESTFORMFACTOR_WALL_FRAME_VERTICAL RackRequestFormFactor = "wall-frame-vertical" + RACKREQUESTFORMFACTOR_WALL_CABINET RackRequestFormFactor = "wall-cabinet" RACKREQUESTFORMFACTOR_WALL_CABINET_VERTICAL RackRequestFormFactor = "wall-cabinet-vertical" - RACKREQUESTFORMFACTOR_EMPTY RackRequestFormFactor = "" + RACKREQUESTFORMFACTOR_EMPTY RackRequestFormFactor = "" ) // All allowed values of RackRequestFormFactor enum @@ -120,4 +120,3 @@ func (v *NullableRackRequestFormFactor) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_request_outer_unit.go b/model_rack_request_outer_unit.go index 89e600724..f7f18feff 100644 --- a/model_rack_request_outer_unit.go +++ b/model_rack_request_outer_unit.go @@ -20,8 +20,8 @@ type RackRequestOuterUnit string // List of RackRequest_outer_unit const ( - RACKREQUESTOUTERUNIT_MM RackRequestOuterUnit = "mm" - RACKREQUESTOUTERUNIT_IN RackRequestOuterUnit = "in" + RACKREQUESTOUTERUNIT_MM RackRequestOuterUnit = "mm" + RACKREQUESTOUTERUNIT_IN RackRequestOuterUnit = "in" RACKREQUESTOUTERUNIT_EMPTY RackRequestOuterUnit = "" ) @@ -110,4 +110,3 @@ func (v *NullableRackRequestOuterUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_reservation.go b/model_rack_reservation.go index 0d88b0d8b..f4cdb1411 100644 --- a/model_rack_reservation.go +++ b/model_rack_reservation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,13 @@ var _ MappedNullable = &RackReservation{} type RackReservation struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` - Rack BriefRack `json:"rack"` + Rack Rack `json:"rack"` Units []int32 `json:"units"` Created NullableTime `json:"created"` LastUpdated NullableTime `json:"last_updated"` - User BriefUser `json:"user"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + User User `json:"user"` + Tenant NullableTenant `json:"tenant,omitempty"` Description string `json:"description"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -44,11 +43,10 @@ type _RackReservation RackReservation // 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 NewRackReservation(id int32, url string, displayUrl string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string) *RackReservation { +func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string) *RackReservation { this := RackReservation{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Rack = rack this.Units = units @@ -115,30 +113,6 @@ func (o *RackReservation) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *RackReservation) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *RackReservation) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *RackReservation) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *RackReservation) GetDisplay() string { if o == nil { @@ -164,9 +138,9 @@ func (o *RackReservation) SetDisplay(v string) { } // GetRack returns the Rack field value -func (o *RackReservation) GetRack() BriefRack { +func (o *RackReservation) GetRack() Rack { if o == nil { - var ret BriefRack + var ret Rack return ret } @@ -175,7 +149,7 @@ func (o *RackReservation) GetRack() BriefRack { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetRackOk() (*BriefRack, bool) { +func (o *RackReservation) GetRackOk() (*Rack, bool) { if o == nil { return nil, false } @@ -183,7 +157,7 @@ func (o *RackReservation) GetRackOk() (*BriefRack, bool) { } // SetRack sets field value -func (o *RackReservation) SetRack(v BriefRack) { +func (o *RackReservation) SetRack(v Rack) { o.Rack = v } @@ -264,9 +238,9 @@ func (o *RackReservation) SetLastUpdated(v time.Time) { } // GetUser returns the User field value -func (o *RackReservation) GetUser() BriefUser { +func (o *RackReservation) GetUser() User { if o == nil { - var ret BriefUser + var ret User return ret } @@ -275,7 +249,7 @@ func (o *RackReservation) GetUser() BriefUser { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetUserOk() (*BriefUser, bool) { +func (o *RackReservation) GetUserOk() (*User, bool) { if o == nil { return nil, false } @@ -283,14 +257,14 @@ func (o *RackReservation) GetUserOk() (*BriefUser, bool) { } // SetUser sets field value -func (o *RackReservation) SetUser(v BriefUser) { +func (o *RackReservation) SetUser(v User) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservation) GetTenant() BriefTenant { +func (o *RackReservation) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -299,7 +273,7 @@ func (o *RackReservation) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservation) GetTenantOk() (*BriefTenant, bool) { +func (o *RackReservation) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -315,8 +289,8 @@ func (o *RackReservation) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *RackReservation) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *RackReservation) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -462,7 +436,6 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["rack"] = o.Rack toSerialize["units"] = o.Units @@ -497,7 +470,6 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "rack", "units", @@ -536,7 +508,6 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "rack") delete(additionalProperties, "units") diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go index ca3ff81a3..f08054702 100644 --- a/model_rack_reservation_request.go +++ b/model_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &RackReservationRequest{} // RackReservationRequest Adds support for custom fields and tags. type RackReservationRequest struct { - Rack BriefRackRequest `json:"rack"` - Units []int32 `json:"units"` - User BriefUserRequest `json:"user"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack RackRequest `json:"rack"` + Units []int32 `json:"units"` + User UserRequest `json:"user"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _RackReservationRequest RackReservationRequest // 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 NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string) *RackReservationRequest { +func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string) *RackReservationRequest { this := RackReservationRequest{} this.Rack = rack this.Units = units @@ -55,9 +55,9 @@ func NewRackReservationRequestWithDefaults() *RackReservationRequest { } // GetRack returns the Rack field value -func (o *RackReservationRequest) GetRack() BriefRackRequest { +func (o *RackReservationRequest) GetRack() RackRequest { if o == nil { - var ret BriefRackRequest + var ret RackRequest return ret } @@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -74,7 +74,7 @@ func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { } // SetRack sets field value -func (o *RackReservationRequest) SetRack(v BriefRackRequest) { +func (o *RackReservationRequest) SetRack(v RackRequest) { o.Rack = v } @@ -103,9 +103,9 @@ func (o *RackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value -func (o *RackReservationRequest) GetUser() BriefUserRequest { +func (o *RackReservationRequest) GetUser() UserRequest { if o == nil { - var ret BriefUserRequest + var ret UserRequest return ret } @@ -114,7 +114,7 @@ func (o *RackReservationRequest) GetUser() BriefUserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { +func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { if o == nil { return nil, false } @@ -122,14 +122,14 @@ func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { } // SetUser sets field value -func (o *RackReservationRequest) SetUser(v BriefUserRequest) { +func (o *RackReservationRequest) SetUser(v UserRequest) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservationRequest) GetTenant() BriefTenantRequest { +func (o *RackReservationRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -138,7 +138,7 @@ func (o *RackReservationRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -154,8 +154,8 @@ func (o *RackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *RackReservationRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *RackReservationRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_rack_role.go b/model_rack_role.go index 622cf88a4..6f5af14fd 100644 --- a/model_rack_role.go +++ b/model_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &RackRole{} type RackRole struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,11 +42,10 @@ type _RackRole RackRole // 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 NewRackRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { +func NewRackRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, rackCount int64) *RackRole { this := RackRole{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,30 +111,6 @@ func (o *RackRole) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *RackRole) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *RackRole) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *RackRole) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *RackRole) GetDisplay() string { if o == nil { @@ -425,7 +399,6 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -459,7 +432,6 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -497,7 +469,6 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_rack_role_request.go b/model_rack_role_request.go index 43cdf4b13..f3d72593d 100644 --- a/model_rack_role_request.go +++ b/model_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_status.go b/model_rack_status.go index a3fcc5d2a..d61e12e04 100644 --- a/model_rack_status.go +++ b/model_rack_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &RackStatus{} // RackStatus struct for RackStatus type RackStatus struct { - Value *PatchedWritableRackRequestStatus `json:"value,omitempty"` - Label *RackStatusLabel `json:"label,omitempty"` + Value *PatchedWritableRackRequestStatus `json:"value,omitempty"` + Label *RackStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *RackStatus) SetLabel(v RackStatusLabel) { } func (o RackStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableRackStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_status_label.go b/model_rack_status_label.go index cfcb1635d..016bb26c1 100644 --- a/model_rack_status_label.go +++ b/model_rack_status_label.go @@ -20,10 +20,10 @@ type RackStatusLabel string // List of Rack_status_label const ( - RACKSTATUSLABEL_RESERVED RackStatusLabel = "Reserved" - RACKSTATUSLABEL_AVAILABLE RackStatusLabel = "Available" - RACKSTATUSLABEL_PLANNED RackStatusLabel = "Planned" - RACKSTATUSLABEL_ACTIVE RackStatusLabel = "Active" + RACKSTATUSLABEL_RESERVED RackStatusLabel = "Reserved" + RACKSTATUSLABEL_AVAILABLE RackStatusLabel = "Available" + RACKSTATUSLABEL_PLANNED RackStatusLabel = "Planned" + RACKSTATUSLABEL_ACTIVE RackStatusLabel = "Active" RACKSTATUSLABEL_DEPRECATED RackStatusLabel = "Deprecated" ) @@ -114,4 +114,3 @@ func (v *NullableRackStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_type.go b/model_rack_type.go index bdea556cd..032eebdbb 100644 --- a/model_rack_type.go +++ b/model_rack_type.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the RackType type satisfies the MappedNullable interface at compile time @@ -21,16 +21,16 @@ var _ MappedNullable = &RackType{} // RackType Adds support for custom fields and tags. type RackType struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Manufacturer BriefManufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` - Width *RackWidth `json:"width,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl string `json:"display_url"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack @@ -40,19 +40,19 @@ type RackType struct { // Outer dimension of rack (width) OuterWidth NullableInt32 `json:"outer_width,omitempty"` // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -316,6 +316,7 @@ func (o *RackType) HasFormFactor() bool { func (o *RackType) SetFormFactor(v RackFormFactor) { o.FormFactor.Set(&v) } + // SetFormFactorNil sets the value for FormFactor to be an explicit nil func (o *RackType) SetFormFactorNil() { o.FormFactor.Set(nil) @@ -486,6 +487,7 @@ func (o *RackType) HasOuterWidth() bool { func (o *RackType) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } + // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *RackType) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -528,6 +530,7 @@ func (o *RackType) HasOuterDepth() bool { func (o *RackType) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } + // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *RackType) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -570,6 +573,7 @@ func (o *RackType) HasOuterUnit() bool { func (o *RackType) SetOuterUnit(v RackOuterUnit) { o.OuterUnit.Set(&v) } + // SetOuterUnitNil sets the value for OuterUnit to be an explicit nil func (o *RackType) SetOuterUnitNil() { o.OuterUnit.Set(nil) @@ -612,6 +616,7 @@ func (o *RackType) HasWeight() bool { func (o *RackType) SetWeight(v float64) { o.Weight.Set(&v) } + // SetWeightNil sets the value for Weight to be an explicit nil func (o *RackType) SetWeightNil() { o.Weight.Set(nil) @@ -654,6 +659,7 @@ func (o *RackType) HasMaxWeight() bool { func (o *RackType) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } + // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *RackType) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -696,6 +702,7 @@ func (o *RackType) HasWeightUnit() bool { func (o *RackType) SetWeightUnit(v DeviceTypeWeightUnit) { o.WeightUnit.Set(&v) } + // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *RackType) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -738,6 +745,7 @@ func (o *RackType) HasMountingDepth() bool { func (o *RackType) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } + // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *RackType) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -897,7 +905,7 @@ func (o *RackType) SetLastUpdated(v time.Time) { } func (o RackType) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -992,10 +1000,10 @@ func (o *RackType) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -1080,5 +1088,3 @@ func (v *NullableRackType) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_type_request.go b/model_rack_type_request.go index 153f03f11..4ad445c4c 100644 --- a/model_rack_type_request.go +++ b/model_rack_type_request.go @@ -20,12 +20,12 @@ var _ MappedNullable = &RackTypeRequest{} // RackTypeRequest Adds support for custom fields and tags. type RackTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` - Width *RackWidthValue `json:"width,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack @@ -35,17 +35,17 @@ type RackTypeRequest struct { // Outer dimension of rack (width) OuterWidth NullableInt32 `json:"outer_width,omitempty"` // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -207,6 +207,7 @@ func (o *RackTypeRequest) HasFormFactor() bool { func (o *RackTypeRequest) SetFormFactor(v RackRequestFormFactor) { o.FormFactor.Set(&v) } + // SetFormFactorNil sets the value for FormFactor to be an explicit nil func (o *RackTypeRequest) SetFormFactorNil() { o.FormFactor.Set(nil) @@ -377,6 +378,7 @@ func (o *RackTypeRequest) HasOuterWidth() bool { func (o *RackTypeRequest) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } + // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *RackTypeRequest) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -419,6 +421,7 @@ func (o *RackTypeRequest) HasOuterDepth() bool { func (o *RackTypeRequest) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } + // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *RackTypeRequest) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -461,6 +464,7 @@ func (o *RackTypeRequest) HasOuterUnit() bool { func (o *RackTypeRequest) SetOuterUnit(v RackRequestOuterUnit) { o.OuterUnit.Set(&v) } + // SetOuterUnitNil sets the value for OuterUnit to be an explicit nil func (o *RackTypeRequest) SetOuterUnitNil() { o.OuterUnit.Set(nil) @@ -503,6 +507,7 @@ func (o *RackTypeRequest) HasWeight() bool { func (o *RackTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } + // SetWeightNil sets the value for Weight to be an explicit nil func (o *RackTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -545,6 +550,7 @@ func (o *RackTypeRequest) HasMaxWeight() bool { func (o *RackTypeRequest) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } + // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *RackTypeRequest) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -587,6 +593,7 @@ func (o *RackTypeRequest) HasWeightUnit() bool { func (o *RackTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { o.WeightUnit.Set(&v) } + // SetWeightUnitNil sets the value for WeightUnit to be an explicit nil func (o *RackTypeRequest) SetWeightUnitNil() { o.WeightUnit.Set(nil) @@ -629,6 +636,7 @@ func (o *RackTypeRequest) HasMountingDepth() bool { func (o *RackTypeRequest) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } + // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *RackTypeRequest) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -736,7 +744,7 @@ func (o *RackTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o RackTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -819,10 +827,10 @@ func (o *RackTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -901,5 +909,3 @@ func (v *NullableRackTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_unit.go b/model_rack_unit.go index d23bdfcb7..6bd4ac781 100644 --- a/model_rack_unit.go +++ b/model_rack_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type RackUnit struct { Id float64 `json:"id"` Name string `json:"name"` Face RackUnitFace `json:"face"` - Device BriefDevice `json:"device"` + Device Device `json:"device"` Occupied bool `json:"occupied"` Display string `json:"display"` AdditionalProperties map[string]interface{} @@ -35,7 +35,7 @@ type _RackUnit RackUnit // 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 NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string) *RackUnit { +func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string) *RackUnit { this := RackUnit{} this.Id = id this.Name = name @@ -127,9 +127,9 @@ func (o *RackUnit) SetFace(v RackUnitFace) { } // GetDevice returns the Device field value -func (o *RackUnit) GetDevice() BriefDevice { +func (o *RackUnit) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -138,7 +138,7 @@ func (o *RackUnit) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool) { +func (o *RackUnit) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -146,7 +146,7 @@ func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *RackUnit) SetDevice(v BriefDevice) { +func (o *RackUnit) SetDevice(v Device) { o.Device = v } diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go index 9485cdea5..081988bab 100644 --- a/model_rack_unit_face.go +++ b/model_rack_unit_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go index bbedfc296..1219f8e2c 100644 --- a/model_rack_unit_face_value.go +++ b/model_rack_unit_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_width.go b/model_rack_width.go index 41a83f1c7..2dd95e3a9 100644 --- a/model_rack_width.go +++ b/model_rack_width.go @@ -19,8 +19,8 @@ var _ MappedNullable = &RackWidth{} // RackWidth struct for RackWidth type RackWidth struct { - Value *RackWidthValue `json:"value,omitempty"` - Label *RackWidthLabel `json:"label,omitempty"` + Value *RackWidthValue `json:"value,omitempty"` + Label *RackWidthLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *RackWidth) SetLabel(v RackWidthLabel) { } func (o RackWidth) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableRackWidth) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_rack_width_label.go b/model_rack_width_label.go index d675b6c4c..86bb5bbc3 100644 --- a/model_rack_width_label.go +++ b/model_rack_width_label.go @@ -112,4 +112,3 @@ func (v *NullableRackWidthLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rack_width_value.go b/model_rack_width_value.go index 979207053..413b62441 100644 --- a/model_rack_width_value.go +++ b/model_rack_width_value.go @@ -112,4 +112,3 @@ func (v *NullableRackWidthValue) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_rear_port.go b/model_rear_port.go index 4ef7189e0..874ce1541 100644 --- a/model_rear_port.go +++ b/model_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,12 @@ var _ MappedNullable = &RearPort{} // RearPort Adds support for custom fields and tags. type RearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device BriefDevice `json:"device"` - Module NullableBriefModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device Device `json:"device"` + Module NullableModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortType `json:"type"` @@ -36,12 +35,12 @@ type RearPort struct { Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableBriefCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType NullableString `json:"link_peers_type"` + LinkPeersType string `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -56,11 +55,10 @@ type _RearPort RearPort // 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 NewRearPort(id int32, url string, displayUrl string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { +func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { this := RearPort{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Device = device this.Name = name @@ -131,30 +129,6 @@ func (o *RearPort) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *RearPort) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *RearPort) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *RearPort) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *RearPort) GetDisplay() string { if o == nil { @@ -180,9 +154,9 @@ func (o *RearPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *RearPort) GetDevice() BriefDevice { +func (o *RearPort) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -191,7 +165,7 @@ func (o *RearPort) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPort) GetDeviceOk() (*BriefDevice, bool) { +func (o *RearPort) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -199,14 +173,14 @@ func (o *RearPort) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *RearPort) SetDevice(v BriefDevice) { +func (o *RearPort) SetDevice(v Device) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPort) GetModule() BriefModule { +func (o *RearPort) GetModule() Module { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModule + var ret Module return ret } return *o.Module.Get() @@ -215,7 +189,7 @@ func (o *RearPort) GetModule() BriefModule { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetModuleOk() (*BriefModule, bool) { +func (o *RearPort) GetModuleOk() (*Module, bool) { if o == nil { return nil, false } @@ -231,8 +205,8 @@ func (o *RearPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. -func (o *RearPort) SetModule(v BriefModule) { +// SetModule gets a reference to the given NullableModule and assigns it to the Module field. +func (o *RearPort) SetModule(v Module) { o.Module.Set(&v) } @@ -455,10 +429,10 @@ func (o *RearPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for BriefCable will be returned -func (o *RearPort) GetCable() BriefCable { +// If the value is explicit nil, the zero value for Cable will be returned +func (o *RearPort) GetCable() Cable { if o == nil || o.Cable.Get() == nil { - var ret BriefCable + var ret Cable return ret } @@ -468,7 +442,7 @@ func (o *RearPort) GetCable() BriefCable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetCableOk() (*BriefCable, bool) { +func (o *RearPort) GetCableOk() (*Cable, bool) { if o == nil { return nil, false } @@ -476,7 +450,7 @@ func (o *RearPort) GetCableOk() (*BriefCable, bool) { } // SetCable sets field value -func (o *RearPort) SetCable(v BriefCable) { +func (o *RearPort) SetCable(v Cable) { o.Cable.Set(&v) } @@ -529,29 +503,27 @@ func (o *RearPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value -// If the value is explicit nil, the zero value for string will be returned func (o *RearPort) GetLinkPeersType() string { - if o == nil || o.LinkPeersType.Get() == nil { + if o == nil { var ret string return ret } - return *o.LinkPeersType.Get() + return o.LinkPeersType } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RearPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() + return &o.LinkPeersType, true } // SetLinkPeersType sets field value func (o *RearPort) SetLinkPeersType(v string) { - o.LinkPeersType.Set(&v) + o.LinkPeersType = v } // GetTags returns the Tags field value if set, zero value otherwise. @@ -706,7 +678,6 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -732,7 +703,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType.Get() + toSerialize["link_peers_type"] = o.LinkPeersType if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -757,7 +728,6 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "device", "name", @@ -800,7 +770,6 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_rear_port_request.go b/model_rear_port_request.go index 5c10f3963..0ea93e90e 100644 --- a/model_rear_port_request.go +++ b/model_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &RearPortRequest{} // RearPortRequest Adds support for custom fields and tags. type RearPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _RearPortRequest RearPortRequest // 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 NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { +func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { this := RearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewRearPortRequestWithDefaults() *RearPortRequest { } // GetDevice returns the Device field value -func (o *RearPortRequest) GetDevice() BriefDeviceRequest { +func (o *RearPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *RearPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *RearPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortRequest) GetModule() BriefModuleRequest { +func (o *RearPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *RearPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *RearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *RearPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *RearPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_rear_port_template.go b/model_rear_port_template.go index 96880d92a..c0fc38788 100644 --- a/model_rear_port_template.go +++ b/model_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the RearPortTemplate type satisfies the MappedNullable interface at compile time @@ -21,21 +20,12 @@ var _ MappedNullable = &RearPortTemplate{} // RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` - ModuleType NullableBriefModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,15 +35,12 @@ type _RearPortTemplate RearPortTemplate // 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 NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime) *RearPortTemplate { +func NewRearPortTemplate(id int32, url string, display string, name string) *RearPortTemplate { this := RearPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name - this.Type = type_ - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -137,92 +124,6 @@ func (o *RearPortTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortTemplate) GetDeviceType() BriefDeviceType { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceType - return ret - } - return *o.DeviceType.Get() -} - -// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { - if o == nil { - return nil, false - } - return o.DeviceType.Get(), o.DeviceType.IsSet() -} - -// HasDeviceType returns a boolean if a field has been set. -func (o *RearPortTemplate) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { - return true - } - - return false -} - -// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. -func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *RearPortTemplate) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *RearPortTemplate) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortTemplate) GetModuleType() BriefModuleType { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleType - return ret - } - return *o.ModuleType.Get() -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { - if o == nil { - return nil, false - } - return o.ModuleType.Get(), o.ModuleType.IsSet() -} - -// HasModuleType returns a boolean if a field has been set. -func (o *RearPortTemplate) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. -func (o *RearPortTemplate) SetModuleType(v BriefModuleType) { - o.ModuleType.Set(&v) -} - -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *RearPortTemplate) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *RearPortTemplate) UnsetModuleType() { - o.ModuleType.Unset() -} - // GetName returns the Name field value func (o *RearPortTemplate) GetName() string { if o == nil { @@ -247,126 +148,6 @@ func (o *RearPortTemplate) SetName(v string) { o.Name = v } -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *RearPortTemplate) GetLabel() string { - if o == nil || IsNil(o.Label) { - var ret string - return ret - } - return *o.Label -} - -// GetLabelOk returns a tuple with the Label field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RearPortTemplate) GetLabelOk() (*string, bool) { - if o == nil || IsNil(o.Label) { - return nil, false - } - return o.Label, true -} - -// HasLabel returns a boolean if a field has been set. -func (o *RearPortTemplate) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *RearPortTemplate) SetLabel(v string) { - o.Label = &v -} - -// GetType returns the Type field value -func (o *RearPortTemplate) GetType() FrontPortType { - if o == nil { - var ret FrontPortType - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *RearPortTemplate) SetType(v FrontPortType) { - o.Type = v -} - -// GetColor returns the Color field value if set, zero value otherwise. -func (o *RearPortTemplate) GetColor() string { - if o == nil || IsNil(o.Color) { - var ret string - return ret - } - return *o.Color -} - -// GetColorOk returns a tuple with the Color field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RearPortTemplate) GetColorOk() (*string, bool) { - if o == nil || IsNil(o.Color) { - return nil, false - } - return o.Color, true -} - -// HasColor returns a boolean if a field has been set. -func (o *RearPortTemplate) HasColor() bool { - if o != nil && !IsNil(o.Color) { - return true - } - - return false -} - -// SetColor gets a reference to the given string and assigns it to the Color field. -func (o *RearPortTemplate) SetColor(v string) { - o.Color = &v -} - -// GetPositions returns the Positions field value if set, zero value otherwise. -func (o *RearPortTemplate) GetPositions() int32 { - if o == nil || IsNil(o.Positions) { - var ret int32 - return ret - } - return *o.Positions -} - -// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RearPortTemplate) GetPositionsOk() (*int32, bool) { - if o == nil || IsNil(o.Positions) { - return nil, false - } - return o.Positions, true -} - -// HasPositions returns a boolean if a field has been set. -func (o *RearPortTemplate) HasPositions() bool { - if o != nil && !IsNil(o.Positions) { - return true - } - - return false -} - -// SetPositions gets a reference to the given int32 and assigns it to the Positions field. -func (o *RearPortTemplate) SetPositions(v int32) { - o.Positions = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -399,58 +180,6 @@ func (o *RearPortTemplate) SetDescription(v string) { o.Description = &v } -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *RearPortTemplate) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *RearPortTemplate) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *RearPortTemplate) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *RearPortTemplate) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - func (o RearPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -464,28 +193,10 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Label) { - toSerialize["label"] = o.Label - } - toSerialize["type"] = o.Type - if !IsNil(o.Color) { - toSerialize["color"] = o.Color - } - if !IsNil(o.Positions) { - toSerialize["positions"] = o.Positions - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -503,9 +214,6 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "type", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -538,16 +246,8 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") - delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") - delete(additionalProperties, "label") - delete(additionalProperties, "type") - delete(additionalProperties, "color") - delete(additionalProperties, "positions") delete(additionalProperties, "description") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go index 5cb428c0c..094c72a2d 100644 --- a/model_rear_port_template_request.go +++ b/model_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,9 @@ var _ MappedNullable = &RearPortTemplateRequest{} // RearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - Positions *int32 `json:"positions,omitempty"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,10 +32,9 @@ type _RearPortTemplateRequest RearPortTemplateRequest // 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 NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *RearPortTemplateRequest { +func NewRearPortTemplateRequest(name string) *RearPortTemplateRequest { this := RearPortTemplateRequest{} this.Name = name - this.Type = type_ return &this } @@ -54,92 +46,6 @@ func NewRearPortTemplateRequestWithDefaults() *RearPortTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { - if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest - return ret - } - return *o.DeviceType.Get() -} - -// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.DeviceType.Get(), o.DeviceType.IsSet() -} - -// HasDeviceType returns a boolean if a field has been set. -func (o *RearPortTemplateRequest) HasDeviceType() bool { - if o != nil && o.DeviceType.IsSet() { - return true - } - - return false -} - -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { - o.DeviceType.Set(&v) -} - -// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil -func (o *RearPortTemplateRequest) SetDeviceTypeNil() { - o.DeviceType.Set(nil) -} - -// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil -func (o *RearPortTemplateRequest) UnsetDeviceType() { - o.DeviceType.Unset() -} - -// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { - if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest - return ret - } - return *o.ModuleType.Get() -} - -// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.ModuleType.Get(), o.ModuleType.IsSet() -} - -// HasModuleType returns a boolean if a field has been set. -func (o *RearPortTemplateRequest) HasModuleType() bool { - if o != nil && o.ModuleType.IsSet() { - return true - } - - return false -} - -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { - o.ModuleType.Set(&v) -} - -// SetModuleTypeNil sets the value for ModuleType to be an explicit nil -func (o *RearPortTemplateRequest) SetModuleTypeNil() { - o.ModuleType.Set(nil) -} - -// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil -func (o *RearPortTemplateRequest) UnsetModuleType() { - o.ModuleType.Unset() -} - // GetName returns the Name field value func (o *RearPortTemplateRequest) GetName() string { if o == nil { @@ -164,126 +70,6 @@ func (o *RearPortTemplateRequest) SetName(v string) { o.Name = v } -// GetLabel returns the Label field value if set, zero value otherwise. -func (o *RearPortTemplateRequest) GetLabel() string { - if o == nil || IsNil(o.Label) { - var ret string - return ret - } - return *o.Label -} - -// GetLabelOk returns a tuple with the Label field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool) { - if o == nil || IsNil(o.Label) { - return nil, false - } - return o.Label, true -} - -// HasLabel returns a boolean if a field has been set. -func (o *RearPortTemplateRequest) HasLabel() bool { - if o != nil && !IsNil(o.Label) { - return true - } - - return false -} - -// SetLabel gets a reference to the given string and assigns it to the Label field. -func (o *RearPortTemplateRequest) SetLabel(v string) { - o.Label = &v -} - -// GetType returns the Type field value -func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue { - if o == nil { - var ret FrontPortTypeValue - return ret - } - - return o.Type -} - -// GetTypeOk returns a tuple with the Type field value -// and a boolean to check if the value has been set. -func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) { - if o == nil { - return nil, false - } - return &o.Type, true -} - -// SetType sets field value -func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) { - o.Type = v -} - -// GetColor returns the Color field value if set, zero value otherwise. -func (o *RearPortTemplateRequest) GetColor() string { - if o == nil || IsNil(o.Color) { - var ret string - return ret - } - return *o.Color -} - -// GetColorOk returns a tuple with the Color field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RearPortTemplateRequest) GetColorOk() (*string, bool) { - if o == nil || IsNil(o.Color) { - return nil, false - } - return o.Color, true -} - -// HasColor returns a boolean if a field has been set. -func (o *RearPortTemplateRequest) HasColor() bool { - if o != nil && !IsNil(o.Color) { - return true - } - - return false -} - -// SetColor gets a reference to the given string and assigns it to the Color field. -func (o *RearPortTemplateRequest) SetColor(v string) { - o.Color = &v -} - -// GetPositions returns the Positions field value if set, zero value otherwise. -func (o *RearPortTemplateRequest) GetPositions() int32 { - if o == nil || IsNil(o.Positions) { - var ret int32 - return ret - } - return *o.Positions -} - -// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool) { - if o == nil || IsNil(o.Positions) { - return nil, false - } - return o.Positions, true -} - -// HasPositions returns a boolean if a field has been set. -func (o *RearPortTemplateRequest) HasPositions() bool { - if o != nil && !IsNil(o.Positions) { - return true - } - - return false -} - -// SetPositions gets a reference to the given int32 and assigns it to the Positions field. -func (o *RearPortTemplateRequest) SetPositions(v int32) { - o.Positions = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -326,23 +112,7 @@ func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.DeviceType.IsSet() { - toSerialize["device_type"] = o.DeviceType.Get() - } - if o.ModuleType.IsSet() { - toSerialize["module_type"] = o.ModuleType.Get() - } toSerialize["name"] = o.Name - if !IsNil(o.Label) { - toSerialize["label"] = o.Label - } - toSerialize["type"] = o.Type - if !IsNil(o.Color) { - toSerialize["color"] = o.Color - } - if !IsNil(o.Positions) { - toSerialize["positions"] = o.Positions - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -360,7 +130,6 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", - "type", } allProperties := make(map[string]interface{}) @@ -390,13 +159,7 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "device_type") - delete(additionalProperties, "module_type") delete(additionalProperties, "name") - delete(additionalProperties, "label") - delete(additionalProperties, "type") - delete(additionalProperties, "color") - delete(additionalProperties, "positions") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_region.go b/model_region.go index 2ba4931aa..41939f635 100644 --- a/model_region.go +++ b/model_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &Region{} type Region struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -44,11 +43,10 @@ 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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { +func NewRegion(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *Region { this := Region{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -115,30 +113,6 @@ func (o *Region) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Region) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Region) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Region) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Region) GetDisplay() string { if o == nil { @@ -462,7 +436,6 @@ func (o Region) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -497,7 +470,6 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -536,7 +508,6 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_region_request.go b/model_region_request.go index ff81fb35a..a014b4811 100644 --- a/model_region_request.go +++ b/model_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rir.go b/model_rir.go index 3a3442b35..503050bfc 100644 --- a/model_rir.go +++ b/model_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the RIR type satisfies the MappedNullable interface at compile time @@ -21,20 +20,13 @@ var _ MappedNullable = &RIR{} // RIR Adds support for custom fields and tags. type RIR struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - // IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - AggregateCount int64 `json:"aggregate_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + AggregateCount int64 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -44,16 +36,13 @@ type _RIR RIR // 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 NewRIR(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64) *RIR { +func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *RIR { this := RIR{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.AggregateCount = aggregateCount return &this } @@ -114,30 +103,6 @@ func (o *RIR) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *RIR) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *RIR) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *RIR) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *RIR) GetDisplay() string { if o == nil { @@ -210,38 +175,6 @@ func (o *RIR) SetSlug(v string) { o.Slug = v } -// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. -func (o *RIR) GetIsPrivate() bool { - if o == nil || IsNil(o.IsPrivate) { - var ret bool - return ret - } - return *o.IsPrivate -} - -// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RIR) GetIsPrivateOk() (*bool, bool) { - if o == nil || IsNil(o.IsPrivate) { - return nil, false - } - return o.IsPrivate, true -} - -// HasIsPrivate returns a boolean if a field has been set. -func (o *RIR) HasIsPrivate() bool { - if o != nil && !IsNil(o.IsPrivate) { - return true - } - - return false -} - -// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. -func (o *RIR) SetIsPrivate(v bool) { - o.IsPrivate = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIR) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -274,122 +207,6 @@ func (o *RIR) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *RIR) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RIR) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *RIR) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *RIR) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *RIR) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RIR) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *RIR) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *RIR) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *RIR) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RIR) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *RIR) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *RIR) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RIR) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *RIR) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetAggregateCount returns the AggregateCount field value func (o *RIR) GetAggregateCount() int64 { if o == nil { @@ -426,24 +243,12 @@ func (o RIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.IsPrivate) { - toSerialize["is_private"] = o.IsPrivate - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["aggregate_count"] = o.AggregateCount for key, value := range o.AdditionalProperties { @@ -460,12 +265,9 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", "aggregate_count", } @@ -498,16 +300,10 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "is_private") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "aggregate_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rir_request.go b/model_rir_request.go index 87d506ffa..c7ddc0294 100644 --- a/model_rir_request.go +++ b/model_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,9 @@ var _ MappedNullable = &RIRRequest{} // RIRRequest Adds support for custom fields and tags. type RIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - // IP space managed by this RIR is considered private - IsPrivate *bool `json:"is_private,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -99,38 +95,6 @@ func (o *RIRRequest) SetSlug(v string) { o.Slug = v } -// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. -func (o *RIRRequest) GetIsPrivate() bool { - if o == nil || IsNil(o.IsPrivate) { - var ret bool - return ret - } - return *o.IsPrivate -} - -// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RIRRequest) GetIsPrivateOk() (*bool, bool) { - if o == nil || IsNil(o.IsPrivate) { - return nil, false - } - return o.IsPrivate, true -} - -// HasIsPrivate returns a boolean if a field has been set. -func (o *RIRRequest) HasIsPrivate() bool { - if o != nil && !IsNil(o.IsPrivate) { - return true - } - - return false -} - -// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. -func (o *RIRRequest) SetIsPrivate(v bool) { - o.IsPrivate = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIRRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -163,70 +127,6 @@ func (o *RIRRequest) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *RIRRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RIRRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *RIRRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *RIRRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *RIRRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RIRRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *RIRRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *RIRRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o RIRRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -239,18 +139,9 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.IsPrivate) { - toSerialize["is_private"] = o.IsPrivate - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -297,10 +188,7 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "is_private") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_role.go b/model_role.go index db888a98c..7e651644c 100644 --- a/model_role.go +++ b/model_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Role type satisfies the MappedNullable interface at compile time @@ -21,20 +20,14 @@ var _ MappedNullable = &Role{} // Role Adds support for custom fields and tags. type Role struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - PrefixCount *int64 `json:"prefix_count,omitempty"` - VlanCount int64 `json:"vlan_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount int64 `json:"vlan_count"` AdditionalProperties map[string]interface{} } @@ -44,16 +37,13 @@ type _Role Role // 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 NewRole(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, vlanCount int64) *Role { +func NewRole(id int32, url string, display string, name string, slug string, vlanCount int64) *Role { this := Role{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.VlanCount = vlanCount return &this } @@ -114,30 +104,6 @@ func (o *Role) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Role) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Role) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Role) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Role) GetDisplay() string { if o == nil { @@ -210,38 +176,6 @@ func (o *Role) SetSlug(v string) { o.Slug = v } -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *Role) GetWeight() int32 { - if o == nil || IsNil(o.Weight) { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Role) GetWeightOk() (*int32, bool) { - if o == nil || IsNil(o.Weight) { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *Role) HasWeight() bool { - if o != nil && !IsNil(o.Weight) { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *Role) SetWeight(v int32) { - o.Weight = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Role) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -274,122 +208,6 @@ func (o *Role) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Role) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Role) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Role) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Role) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Role) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Role) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Role) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Role) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Role) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Role) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Role) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Role) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Role) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Role) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *Role) GetPrefixCount() int64 { if o == nil || IsNil(o.PrefixCount) { @@ -458,24 +276,12 @@ func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Weight) { - toSerialize["weight"] = o.Weight - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -495,12 +301,9 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", "vlan_count", } @@ -533,16 +336,10 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "weight") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "prefix_count") delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties diff --git a/model_role_request.go b/model_role_request.go index 494172a03..601cac559 100644 --- a/model_role_request.go +++ b/model_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,9 @@ var _ MappedNullable = &RoleRequest{} // RoleRequest Adds support for custom fields and tags. type RoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -98,38 +95,6 @@ func (o *RoleRequest) SetSlug(v string) { o.Slug = v } -// GetWeight returns the Weight field value if set, zero value otherwise. -func (o *RoleRequest) GetWeight() int32 { - if o == nil || IsNil(o.Weight) { - var ret int32 - return ret - } - return *o.Weight -} - -// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RoleRequest) GetWeightOk() (*int32, bool) { - if o == nil || IsNil(o.Weight) { - return nil, false - } - return o.Weight, true -} - -// HasWeight returns a boolean if a field has been set. -func (o *RoleRequest) HasWeight() bool { - if o != nil && !IsNil(o.Weight) { - return true - } - - return false -} - -// SetWeight gets a reference to the given int32 and assigns it to the Weight field. -func (o *RoleRequest) SetWeight(v int32) { - o.Weight = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *RoleRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -162,70 +127,6 @@ func (o *RoleRequest) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *RoleRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *RoleRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *RoleRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *RoleRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *RoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *RoleRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *RoleRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o RoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -238,18 +139,9 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Weight) { - toSerialize["weight"] = o.Weight - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -296,10 +188,7 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "weight") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_route_target.go b/model_route_target.go index 580b1da00..7856b51ca 100644 --- a/model_route_target.go +++ b/model_route_target.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,12 @@ var _ MappedNullable = &RouteTarget{} // RouteTarget Adds support for custom fields and tags. type RouteTarget struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Route target value (formatted in accordance with RFC 4360) Name string `json:"name"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -43,11 +42,10 @@ type _RouteTarget RouteTarget // 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 NewRouteTarget(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { +func NewRouteTarget(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *RouteTarget { this := RouteTarget{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Created = created @@ -111,30 +109,6 @@ func (o *RouteTarget) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *RouteTarget) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *RouteTarget) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *RouteTarget) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *RouteTarget) GetDisplay() string { if o == nil { @@ -184,9 +158,9 @@ func (o *RouteTarget) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTarget) GetTenant() BriefTenant { +func (o *RouteTarget) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -195,7 +169,7 @@ func (o *RouteTarget) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool) { +func (o *RouteTarget) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -211,8 +185,8 @@ func (o *RouteTarget) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *RouteTarget) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *RouteTarget) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -418,7 +392,6 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Tenant.IsSet() { @@ -453,7 +426,6 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "created", @@ -489,7 +461,6 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "tenant") diff --git a/model_route_target_request.go b/model_route_target_request.go index 1e28790e4..f913d4bdf 100644 --- a/model_route_target_request.go +++ b/model_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &RouteTargetRequest{} // RouteTargetRequest Adds support for custom fields and tags. type RouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,9 +75,9 @@ func (o *RouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTargetRequest) GetTenant() BriefTenantRequest { +func (o *RouteTargetRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -86,7 +86,7 @@ func (o *RouteTargetRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -102,8 +102,8 @@ func (o *RouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *RouteTargetRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_saved_filter.go b/model_saved_filter.go index cd5247d62..4282ab65a 100644 --- a/model_saved_filter.go +++ b/model_saved_filter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &SavedFilter{} type SavedFilter struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -45,11 +44,10 @@ type _SavedFilter SavedFilter // 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 NewSavedFilter(id int32, url string, displayUrl string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { +func NewSavedFilter(id int32, url string, display string, objectTypes []string, name string, slug string, parameters interface{}, created NullableTime, lastUpdated NullableTime) *SavedFilter { this := SavedFilter{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.ObjectTypes = objectTypes this.Name = name @@ -116,30 +114,6 @@ func (o *SavedFilter) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *SavedFilter) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *SavedFilter) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *SavedFilter) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *SavedFilter) GetDisplay() string { if o == nil { @@ -497,7 +471,6 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -537,7 +510,6 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "object_types", "name", @@ -576,7 +548,6 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go index 6c2b3e146..d38d5ce3e 100644 --- a/model_saved_filter_request.go +++ b/model_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go index 88d0073ee..19b41f6a5 100644 --- a/model_schema_retrieve_format_parameter.go +++ b/model_schema_retrieve_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go index f675e7e88..301bf4dbb 100644 --- a/model_schema_retrieve_lang_parameter.go +++ b/model_schema_retrieve_lang_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,11 @@ type SchemaRetrieveLangParameter string // List of schema_retrieve_lang_parameter const ( - SCHEMARETRIEVELANGPARAMETER_CS SchemaRetrieveLangParameter = "cs" - SCHEMARETRIEVELANGPARAMETER_DA SchemaRetrieveLangParameter = "da" SCHEMARETRIEVELANGPARAMETER_DE SchemaRetrieveLangParameter = "de" SCHEMARETRIEVELANGPARAMETER_EN SchemaRetrieveLangParameter = "en" SCHEMARETRIEVELANGPARAMETER_ES SchemaRetrieveLangParameter = "es" SCHEMARETRIEVELANGPARAMETER_FR SchemaRetrieveLangParameter = "fr" - SCHEMARETRIEVELANGPARAMETER_IT SchemaRetrieveLangParameter = "it" SCHEMARETRIEVELANGPARAMETER_JA SchemaRetrieveLangParameter = "ja" - SCHEMARETRIEVELANGPARAMETER_NL SchemaRetrieveLangParameter = "nl" - SCHEMARETRIEVELANGPARAMETER_PL SchemaRetrieveLangParameter = "pl" SCHEMARETRIEVELANGPARAMETER_PT SchemaRetrieveLangParameter = "pt" SCHEMARETRIEVELANGPARAMETER_RU SchemaRetrieveLangParameter = "ru" SCHEMARETRIEVELANGPARAMETER_TR SchemaRetrieveLangParameter = "tr" @@ -39,16 +34,11 @@ const ( // All allowed values of SchemaRetrieveLangParameter enum var AllowedSchemaRetrieveLangParameterEnumValues = []SchemaRetrieveLangParameter{ - "cs", - "da", "de", "en", "es", "fr", - "it", "ja", - "nl", - "pl", "pt", "ru", "tr", diff --git a/model_script.go b/model_script.go index 5c0584baa..738094f17 100644 --- a/model_script.go +++ b/model_script.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,15 @@ var _ MappedNullable = &Script{} // Script Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Script struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Module int32 `json:"module"` - Name string `json:"name"` - Description NullableString `json:"description"` - Vars interface{} `json:"vars"` - Result BriefJob `json:"result"` - Display string `json:"display"` - IsExecutable bool `json:"is_executable"` + Id int32 `json:"id"` + Url string `json:"url"` + Module int32 `json:"module"` + Name string `json:"name"` + Description string `json:"description"` + Vars interface{} `json:"vars"` + Result Job `json:"result"` + Display string `json:"display"` + IsExecutable bool `json:"is_executable"` AdditionalProperties map[string]interface{} } @@ -39,11 +38,10 @@ type _Script Script // 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 NewScript(id int32, url string, displayUrl string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool) *Script { +func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool) *Script { this := Script{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Module = module this.Name = name this.Description = description @@ -110,30 +108,6 @@ func (o *Script) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Script) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Script) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Script) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetModule returns the Module field value func (o *Script) GetModule() int32 { if o == nil { @@ -183,29 +157,27 @@ func (o *Script) SetName(v string) { } // GetDescription returns the Description field value -// If the value is explicit nil, the zero value for string will be returned func (o *Script) GetDescription() string { - if o == nil || o.Description.Get() == nil { + if o == nil { var ret string return ret } - return *o.Description.Get() + return o.Description } // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Script) GetDescriptionOk() (*string, bool) { if o == nil { return nil, false } - return o.Description.Get(), o.Description.IsSet() + return &o.Description, true } // SetDescription sets field value func (o *Script) SetDescription(v string) { - o.Description.Set(&v) + o.Description = v } // GetVars returns the Vars field value @@ -235,9 +207,9 @@ func (o *Script) SetVars(v interface{}) { } // GetResult returns the Result field value -func (o *Script) GetResult() BriefJob { +func (o *Script) GetResult() Job { if o == nil { - var ret BriefJob + var ret Job return ret } @@ -246,7 +218,7 @@ func (o *Script) GetResult() BriefJob { // GetResultOk returns a tuple with the Result field value // and a boolean to check if the value has been set. -func (o *Script) GetResultOk() (*BriefJob, bool) { +func (o *Script) GetResultOk() (*Job, bool) { if o == nil { return nil, false } @@ -254,7 +226,7 @@ func (o *Script) GetResultOk() (*BriefJob, bool) { } // SetResult sets field value -func (o *Script) SetResult(v BriefJob) { +func (o *Script) SetResult(v Job) { o.Result = v } @@ -318,10 +290,9 @@ func (o Script) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["module"] = o.Module toSerialize["name"] = o.Name - toSerialize["description"] = o.Description.Get() + toSerialize["description"] = o.Description if o.Vars != nil { toSerialize["vars"] = o.Vars } @@ -343,7 +314,6 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "module", "name", "description", @@ -382,7 +352,6 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_script_input_request.go b/model_script_input_request.go index bf60f865e..4b40ca523 100644 --- a/model_script_input_request.go +++ b/model_script_input_request.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the ScriptInputRequest type satisfies the MappedNullable interface at compile time @@ -21,10 +21,10 @@ var _ MappedNullable = &ScriptInputRequest{} // ScriptInputRequest struct for ScriptInputRequest type ScriptInputRequest struct { - Data interface{} `json:"data"` - Commit bool `json:"commit"` - ScheduleAt NullableTime `json:"schedule_at,omitempty"` - Interval NullableInt32 `json:"interval,omitempty"` + Data interface{} `json:"data"` + Commit bool `json:"commit"` + ScheduleAt NullableTime `json:"schedule_at,omitempty"` + Interval NullableInt32 `json:"interval,omitempty"` AdditionalProperties map[string]interface{} } @@ -131,6 +131,7 @@ func (o *ScriptInputRequest) HasScheduleAt() bool { func (o *ScriptInputRequest) SetScheduleAt(v time.Time) { o.ScheduleAt.Set(&v) } + // SetScheduleAtNil sets the value for ScheduleAt to be an explicit nil func (o *ScriptInputRequest) SetScheduleAtNil() { o.ScheduleAt.Set(nil) @@ -173,6 +174,7 @@ func (o *ScriptInputRequest) HasInterval() bool { func (o *ScriptInputRequest) SetInterval(v int32) { o.Interval.Set(&v) } + // SetIntervalNil sets the value for Interval to be an explicit nil func (o *ScriptInputRequest) SetIntervalNil() { o.Interval.Set(nil) @@ -184,7 +186,7 @@ func (o *ScriptInputRequest) UnsetInterval() { } func (o ScriptInputRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -225,10 +227,10 @@ func (o *ScriptInputRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -292,5 +294,3 @@ func (v *NullableScriptInputRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_service.go b/model_service.go index 973d3291b..e12f61b56 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,22 +21,21 @@ var _ MappedNullable = &Service{} // Service Adds support for custom fields and tags. type Service struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Device NullableBriefDevice `json:"device,omitempty"` - VirtualMachine NullableBriefVirtualMachine `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Device NullableDevice `json:"device,omitempty"` + VirtualMachine NullableVirtualMachine `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -46,11 +45,10 @@ type _Service Service // 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 NewService(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { +func NewService(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *Service { this := Service{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Ports = ports @@ -115,30 +113,6 @@ func (o *Service) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Service) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Service) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Service) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Service) GetDisplay() string { if o == nil { @@ -164,9 +138,9 @@ func (o *Service) SetDisplay(v string) { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetDevice() BriefDevice { +func (o *Service) GetDevice() Device { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDevice + var ret Device return ret } return *o.Device.Get() @@ -175,7 +149,7 @@ func (o *Service) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetDeviceOk() (*BriefDevice, bool) { +func (o *Service) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -191,8 +165,8 @@ func (o *Service) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. -func (o *Service) SetDevice(v BriefDevice) { +// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. +func (o *Service) SetDevice(v Device) { o.Device.Set(&v) } @@ -207,9 +181,9 @@ func (o *Service) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetVirtualMachine() BriefVirtualMachine { +func (o *Service) GetVirtualMachine() VirtualMachine { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret BriefVirtualMachine + var ret VirtualMachine return ret } return *o.VirtualMachine.Get() @@ -218,7 +192,7 @@ func (o *Service) GetVirtualMachine() BriefVirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { +func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool) { if o == nil { return nil, false } @@ -234,8 +208,8 @@ func (o *Service) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachine and assigns it to the VirtualMachine field. -func (o *Service) SetVirtualMachine(v BriefVirtualMachine) { +// SetVirtualMachine gets a reference to the given NullableVirtualMachine and assigns it to the VirtualMachine field. +func (o *Service) SetVirtualMachine(v VirtualMachine) { o.VirtualMachine.Set(&v) } @@ -553,7 +527,6 @@ func (o Service) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() @@ -598,7 +571,6 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "ports", @@ -635,7 +607,6 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "virtual_machine") diff --git a/model_service_protocol.go b/model_service_protocol.go index 5438e2b05..bdd307844 100644 --- a/model_service_protocol.go +++ b/model_service_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go index e9f1dbcde..b210b80a3 100644 --- a/model_service_protocol_label.go +++ b/model_service_protocol_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_request.go b/model_service_request.go index a25ff2189..9b3bc7f2b 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ServiceRequest{} // ServiceRequest Adds support for custom fields and tags. type ServiceRequest struct { - Device NullableBriefDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports"` @@ -55,9 +55,9 @@ func NewServiceRequestWithDefaults() *ServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetDevice() BriefDeviceRequest { +func (o *ServiceRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device.Get() @@ -66,7 +66,7 @@ func (o *ServiceRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *ServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. -func (o *ServiceRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. +func (o *ServiceRequest) SetDevice(v DeviceRequest) { o.Device.Set(&v) } @@ -98,9 +98,9 @@ func (o *ServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -109,7 +109,7 @@ func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *ServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_service_template.go b/model_service_template.go index 712147a0b..9d8086877 100644 --- a/model_service_template.go +++ b/model_service_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &ServiceTemplate{} type ServiceTemplate struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Protocol *ServiceProtocol `json:"protocol,omitempty"` @@ -43,11 +42,10 @@ type _ServiceTemplate ServiceTemplate // 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 NewServiceTemplate(id int32, url string, displayUrl string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { +func NewServiceTemplate(id int32, url string, display string, name string, ports []int32, created NullableTime, lastUpdated NullableTime) *ServiceTemplate { this := ServiceTemplate{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Ports = ports @@ -112,30 +110,6 @@ func (o *ServiceTemplate) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *ServiceTemplate) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *ServiceTemplate) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *ServiceTemplate) GetDisplay() string { if o == nil { @@ -432,7 +406,6 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Protocol) { @@ -468,7 +441,6 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "ports", @@ -505,7 +477,6 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "protocol") diff --git a/model_service_template_request.go b/model_service_template_request.go index a7a361954..39275e46c 100644 --- a/model_service_template_request.go +++ b/model_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site.go b/model_site.go index 7660a50b7..1e847b294 100644 --- a/model_site.go +++ b/model_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Site type satisfies the MappedNullable interface at compile time @@ -21,41 +20,13 @@ var _ MappedNullable = &Site{} // Site Adds support for custom fields and tags. type Site struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *LocationStatus `json:"status,omitempty"` - Region NullableBriefRegion `json:"region,omitempty"` - Group NullableBriefSiteGroup `json:"group,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - // Local facility ID or description - Facility *string `json:"facility,omitempty"` - TimeZone NullableString `json:"time_zone,omitempty"` - Description *string `json:"description,omitempty"` - // Physical location of the building - PhysicalAddress *string `json:"physical_address,omitempty"` - // If different from the physical address - ShippingAddress *string `json:"shipping_address,omitempty"` - // GPS coordinate in decimal format (xx.yyyyyy) - Latitude NullableFloat64 `json:"latitude,omitempty"` - // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []ASN `json:"asns,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int64 `json:"circuit_count"` - DeviceCount *int64 `json:"device_count,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` - RackCount int64 `json:"rack_count"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` - VlanCount int64 `json:"vlan_count"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -65,19 +36,13 @@ type _Site Site // 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 NewSite(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, rackCount int64, vlanCount int64) *Site { +func NewSite(id int32, url string, display string, name string, slug string) *Site { this := Site{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.CircuitCount = circuitCount - this.RackCount = rackCount - this.VlanCount = vlanCount return &this } @@ -137,30 +102,6 @@ func (o *Site) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Site) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Site) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Site) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Site) GetDisplay() string { if o == nil { @@ -233,242 +174,6 @@ func (o *Site) SetSlug(v string) { o.Slug = v } -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *Site) GetStatus() LocationStatus { - if o == nil || IsNil(o.Status) { - var ret LocationStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetStatusOk() (*LocationStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *Site) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. -func (o *Site) SetStatus(v LocationStatus) { - o.Status = &v -} - -// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Site) GetRegion() BriefRegion { - if o == nil || IsNil(o.Region.Get()) { - var ret BriefRegion - return ret - } - return *o.Region.Get() -} - -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetRegionOk() (*BriefRegion, bool) { - if o == nil { - return nil, false - } - return o.Region.Get(), o.Region.IsSet() -} - -// HasRegion returns a boolean if a field has been set. -func (o *Site) HasRegion() bool { - if o != nil && o.Region.IsSet() { - return true - } - - return false -} - -// SetRegion gets a reference to the given NullableBriefRegion and assigns it to the Region field. -func (o *Site) SetRegion(v BriefRegion) { - o.Region.Set(&v) -} - -// SetRegionNil sets the value for Region to be an explicit nil -func (o *Site) SetRegionNil() { - o.Region.Set(nil) -} - -// UnsetRegion ensures that no value is present for Region, not even an explicit nil -func (o *Site) UnsetRegion() { - o.Region.Unset() -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Site) GetGroup() BriefSiteGroup { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefSiteGroup - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetGroupOk() (*BriefSiteGroup, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *Site) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefSiteGroup and assigns it to the Group field. -func (o *Site) SetGroup(v BriefSiteGroup) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *Site) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *Site) UnsetGroup() { - o.Group.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Site) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Site) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Site) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Site) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Site) UnsetTenant() { - o.Tenant.Unset() -} - -// GetFacility returns the Facility field value if set, zero value otherwise. -func (o *Site) GetFacility() string { - if o == nil || IsNil(o.Facility) { - var ret string - return ret - } - return *o.Facility -} - -// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetFacilityOk() (*string, bool) { - if o == nil || IsNil(o.Facility) { - return nil, false - } - return o.Facility, true -} - -// HasFacility returns a boolean if a field has been set. -func (o *Site) HasFacility() bool { - if o != nil && !IsNil(o.Facility) { - return true - } - - return false -} - -// SetFacility gets a reference to the given string and assigns it to the Facility field. -func (o *Site) SetFacility(v string) { - o.Facility = &v -} - -// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Site) GetTimeZone() string { - if o == nil || IsNil(o.TimeZone.Get()) { - var ret string - return ret - } - return *o.TimeZone.Get() -} - -// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetTimeZoneOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.TimeZone.Get(), o.TimeZone.IsSet() -} - -// HasTimeZone returns a boolean if a field has been set. -func (o *Site) HasTimeZone() bool { - if o != nil && o.TimeZone.IsSet() { - return true - } - - return false -} - -// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. -func (o *Site) SetTimeZone(v string) { - o.TimeZone.Set(&v) -} - -// SetTimeZoneNil sets the value for TimeZone to be an explicit nil -func (o *Site) SetTimeZoneNil() { - o.TimeZone.Set(nil) -} - -// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -func (o *Site) UnsetTimeZone() { - o.TimeZone.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Site) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -501,504 +206,6 @@ func (o *Site) SetDescription(v string) { o.Description = &v } -// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. -func (o *Site) GetPhysicalAddress() string { - if o == nil || IsNil(o.PhysicalAddress) { - var ret string - return ret - } - return *o.PhysicalAddress -} - -// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetPhysicalAddressOk() (*string, bool) { - if o == nil || IsNil(o.PhysicalAddress) { - return nil, false - } - return o.PhysicalAddress, true -} - -// HasPhysicalAddress returns a boolean if a field has been set. -func (o *Site) HasPhysicalAddress() bool { - if o != nil && !IsNil(o.PhysicalAddress) { - return true - } - - return false -} - -// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. -func (o *Site) SetPhysicalAddress(v string) { - o.PhysicalAddress = &v -} - -// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. -func (o *Site) GetShippingAddress() string { - if o == nil || IsNil(o.ShippingAddress) { - var ret string - return ret - } - return *o.ShippingAddress -} - -// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetShippingAddressOk() (*string, bool) { - if o == nil || IsNil(o.ShippingAddress) { - return nil, false - } - return o.ShippingAddress, true -} - -// HasShippingAddress returns a boolean if a field has been set. -func (o *Site) HasShippingAddress() bool { - if o != nil && !IsNil(o.ShippingAddress) { - return true - } - - return false -} - -// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. -func (o *Site) SetShippingAddress(v string) { - o.ShippingAddress = &v -} - -// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Site) GetLatitude() float64 { - if o == nil || IsNil(o.Latitude.Get()) { - var ret float64 - return ret - } - return *o.Latitude.Get() -} - -// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetLatitudeOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Latitude.Get(), o.Latitude.IsSet() -} - -// HasLatitude returns a boolean if a field has been set. -func (o *Site) HasLatitude() bool { - if o != nil && o.Latitude.IsSet() { - return true - } - - return false -} - -// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. -func (o *Site) SetLatitude(v float64) { - o.Latitude.Set(&v) -} - -// SetLatitudeNil sets the value for Latitude to be an explicit nil -func (o *Site) SetLatitudeNil() { - o.Latitude.Set(nil) -} - -// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil -func (o *Site) UnsetLatitude() { - o.Latitude.Unset() -} - -// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Site) GetLongitude() float64 { - if o == nil || IsNil(o.Longitude.Get()) { - var ret float64 - return ret - } - return *o.Longitude.Get() -} - -// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetLongitudeOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Longitude.Get(), o.Longitude.IsSet() -} - -// HasLongitude returns a boolean if a field has been set. -func (o *Site) HasLongitude() bool { - if o != nil && o.Longitude.IsSet() { - return true - } - - return false -} - -// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. -func (o *Site) SetLongitude(v float64) { - o.Longitude.Set(&v) -} - -// SetLongitudeNil sets the value for Longitude to be an explicit nil -func (o *Site) SetLongitudeNil() { - o.Longitude.Set(nil) -} - -// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil -func (o *Site) UnsetLongitude() { - o.Longitude.Unset() -} - -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Site) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Site) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Site) SetComments(v string) { - o.Comments = &v -} - -// GetAsns returns the Asns field value if set, zero value otherwise. -func (o *Site) GetAsns() []ASN { - if o == nil || IsNil(o.Asns) { - var ret []ASN - return ret - } - return o.Asns -} - -// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetAsnsOk() ([]ASN, bool) { - if o == nil || IsNil(o.Asns) { - return nil, false - } - return o.Asns, true -} - -// HasAsns returns a boolean if a field has been set. -func (o *Site) HasAsns() bool { - if o != nil && !IsNil(o.Asns) { - return true - } - - return false -} - -// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. -func (o *Site) SetAsns(v []ASN) { - o.Asns = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Site) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Site) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Site) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Site) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Site) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Site) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Site) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Site) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Site) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Site) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Site) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetCircuitCount returns the CircuitCount field value -func (o *Site) GetCircuitCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.CircuitCount -} - -// GetCircuitCountOk returns a tuple with the CircuitCount field value -// and a boolean to check if the value has been set. -func (o *Site) GetCircuitCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.CircuitCount, true -} - -// SetCircuitCount sets field value -func (o *Site) SetCircuitCount(v int64) { - o.CircuitCount = v -} - -// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. -func (o *Site) GetDeviceCount() int64 { - if o == nil || IsNil(o.DeviceCount) { - var ret int64 - return ret - } - return *o.DeviceCount -} - -// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetDeviceCountOk() (*int64, bool) { - if o == nil || IsNil(o.DeviceCount) { - return nil, false - } - return o.DeviceCount, true -} - -// HasDeviceCount returns a boolean if a field has been set. -func (o *Site) HasDeviceCount() bool { - if o != nil && !IsNil(o.DeviceCount) { - return true - } - - return false -} - -// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. -func (o *Site) SetDeviceCount(v int64) { - o.DeviceCount = &v -} - -// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. -func (o *Site) GetPrefixCount() int64 { - if o == nil || IsNil(o.PrefixCount) { - var ret int64 - return ret - } - return *o.PrefixCount -} - -// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetPrefixCountOk() (*int64, bool) { - if o == nil || IsNil(o.PrefixCount) { - return nil, false - } - return o.PrefixCount, true -} - -// HasPrefixCount returns a boolean if a field has been set. -func (o *Site) HasPrefixCount() bool { - if o != nil && !IsNil(o.PrefixCount) { - return true - } - - return false -} - -// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. -func (o *Site) SetPrefixCount(v int64) { - o.PrefixCount = &v -} - -// GetRackCount returns the RackCount field value -func (o *Site) GetRackCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.RackCount -} - -// GetRackCountOk returns a tuple with the RackCount field value -// and a boolean to check if the value has been set. -func (o *Site) GetRackCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.RackCount, true -} - -// SetRackCount sets field value -func (o *Site) SetRackCount(v int64) { - o.RackCount = v -} - -// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. -func (o *Site) GetVirtualmachineCount() int64 { - if o == nil || IsNil(o.VirtualmachineCount) { - var ret int64 - return ret - } - return *o.VirtualmachineCount -} - -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Site) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil || IsNil(o.VirtualmachineCount) { - return nil, false - } - return o.VirtualmachineCount, true -} - -// HasVirtualmachineCount returns a boolean if a field has been set. -func (o *Site) HasVirtualmachineCount() bool { - if o != nil && !IsNil(o.VirtualmachineCount) { - return true - } - - return false -} - -// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. -func (o *Site) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = &v -} - -// GetVlanCount returns the VlanCount field value -func (o *Site) GetVlanCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.VlanCount -} - -// GetVlanCountOk returns a tuple with the VlanCount field value -// and a boolean to check if the value has been set. -func (o *Site) GetVlanCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.VlanCount, true -} - -// SetVlanCount sets field value -func (o *Site) SetVlanCount(v int64) { - o.VlanCount = v -} - func (o Site) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -1011,69 +218,12 @@ func (o Site) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Region.IsSet() { - toSerialize["region"] = o.Region.Get() - } - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Facility) { - toSerialize["facility"] = o.Facility - } - if o.TimeZone.IsSet() { - toSerialize["time_zone"] = o.TimeZone.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.PhysicalAddress) { - toSerialize["physical_address"] = o.PhysicalAddress - } - if !IsNil(o.ShippingAddress) { - toSerialize["shipping_address"] = o.ShippingAddress - } - if o.Latitude.IsSet() { - toSerialize["latitude"] = o.Latitude.Get() - } - if o.Longitude.IsSet() { - toSerialize["longitude"] = o.Longitude.Get() - } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Asns) { - toSerialize["asns"] = o.Asns - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["circuit_count"] = o.CircuitCount - if !IsNil(o.DeviceCount) { - toSerialize["device_count"] = o.DeviceCount - } - if !IsNil(o.PrefixCount) { - toSerialize["prefix_count"] = o.PrefixCount - } - toSerialize["rack_count"] = o.RackCount - if !IsNil(o.VirtualmachineCount) { - toSerialize["virtualmachine_count"] = o.VirtualmachineCount - } - toSerialize["vlan_count"] = o.VlanCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -1089,15 +239,9 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", - "circuit_count", - "rack_count", - "vlan_count", } allProperties := make(map[string]interface{}) @@ -1129,33 +273,10 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "status") - delete(additionalProperties, "region") - delete(additionalProperties, "group") - delete(additionalProperties, "tenant") - delete(additionalProperties, "facility") - delete(additionalProperties, "time_zone") delete(additionalProperties, "description") - delete(additionalProperties, "physical_address") - delete(additionalProperties, "shipping_address") - delete(additionalProperties, "latitude") - delete(additionalProperties, "longitude") - delete(additionalProperties, "comments") - delete(additionalProperties, "asns") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "circuit_count") - delete(additionalProperties, "device_count") - delete(additionalProperties, "prefix_count") - delete(additionalProperties, "rack_count") - delete(additionalProperties, "virtualmachine_count") - delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties } diff --git a/model_site_group.go b/model_site_group.go index d29d14f0d..36320a38d 100644 --- a/model_site_group.go +++ b/model_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &SiteGroup{} type SiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -44,11 +43,10 @@ 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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { +func NewSiteGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, siteCount int32, depth int32) *SiteGroup { this := SiteGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -115,30 +113,6 @@ func (o *SiteGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *SiteGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *SiteGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *SiteGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *SiteGroup) GetDisplay() string { if o == nil { @@ -462,7 +436,6 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -497,7 +470,6 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -536,7 +508,6 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_site_group_request.go b/model_site_group_request.go index cb799b120..1cd1ab1c5 100644 --- a/model_site_group_request.go +++ b/model_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site_request.go b/model_site_request.go index 18f9eb5ff..60b8fd8dc 100644 --- a/model_site_request.go +++ b/model_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,28 +21,9 @@ var _ MappedNullable = &SiteRequest{} // SiteRequest Adds support for custom fields and tags. type SiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *LocationStatusValue `json:"status,omitempty"` - Region NullableBriefRegionRequest `json:"region,omitempty"` - Group NullableBriefSiteGroupRequest `json:"group,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - // Local facility ID or description - Facility *string `json:"facility,omitempty"` - TimeZone NullableString `json:"time_zone,omitempty"` - Description *string `json:"description,omitempty"` - // Physical location of the building - PhysicalAddress *string `json:"physical_address,omitempty"` - // If different from the physical address - ShippingAddress *string `json:"shipping_address,omitempty"` - // GPS coordinate in decimal format (xx.yyyyyy) - Latitude NullableFloat64 `json:"latitude,omitempty"` - // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Comments *string `json:"comments,omitempty"` - Asns []int32 `json:"asns,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,242 +96,6 @@ func (o *SiteRequest) SetSlug(v string) { o.Slug = v } -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *SiteRequest) GetStatus() LocationStatusValue { - if o == nil || IsNil(o.Status) { - var ret LocationStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *SiteRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. -func (o *SiteRequest) SetStatus(v LocationStatusValue) { - o.Status = &v -} - -// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SiteRequest) GetRegion() BriefRegionRequest { - if o == nil || IsNil(o.Region.Get()) { - var ret BriefRegionRequest - return ret - } - return *o.Region.Get() -} - -// GetRegionOk returns a tuple with the Region field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { - if o == nil { - return nil, false - } - return o.Region.Get(), o.Region.IsSet() -} - -// HasRegion returns a boolean if a field has been set. -func (o *SiteRequest) HasRegion() bool { - if o != nil && o.Region.IsSet() { - return true - } - - return false -} - -// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. -func (o *SiteRequest) SetRegion(v BriefRegionRequest) { - o.Region.Set(&v) -} - -// SetRegionNil sets the value for Region to be an explicit nil -func (o *SiteRequest) SetRegionNil() { - o.Region.Set(nil) -} - -// UnsetRegion ensures that no value is present for Region, not even an explicit nil -func (o *SiteRequest) UnsetRegion() { - o.Region.Unset() -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SiteRequest) GetGroup() BriefSiteGroupRequest { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefSiteGroupRequest - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *SiteRequest) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. -func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *SiteRequest) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *SiteRequest) UnsetGroup() { - o.Group.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SiteRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *SiteRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *SiteRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *SiteRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *SiteRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetFacility returns the Facility field value if set, zero value otherwise. -func (o *SiteRequest) GetFacility() string { - if o == nil || IsNil(o.Facility) { - var ret string - return ret - } - return *o.Facility -} - -// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetFacilityOk() (*string, bool) { - if o == nil || IsNil(o.Facility) { - return nil, false - } - return o.Facility, true -} - -// HasFacility returns a boolean if a field has been set. -func (o *SiteRequest) HasFacility() bool { - if o != nil && !IsNil(o.Facility) { - return true - } - - return false -} - -// SetFacility gets a reference to the given string and assigns it to the Facility field. -func (o *SiteRequest) SetFacility(v string) { - o.Facility = &v -} - -// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SiteRequest) GetTimeZone() string { - if o == nil || IsNil(o.TimeZone.Get()) { - var ret string - return ret - } - return *o.TimeZone.Get() -} - -// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SiteRequest) GetTimeZoneOk() (*string, bool) { - if o == nil { - return nil, false - } - return o.TimeZone.Get(), o.TimeZone.IsSet() -} - -// HasTimeZone returns a boolean if a field has been set. -func (o *SiteRequest) HasTimeZone() bool { - if o != nil && o.TimeZone.IsSet() { - return true - } - - return false -} - -// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. -func (o *SiteRequest) SetTimeZone(v string) { - o.TimeZone.Set(&v) -} - -// SetTimeZoneNil sets the value for TimeZone to be an explicit nil -func (o *SiteRequest) SetTimeZoneNil() { - o.TimeZone.Set(nil) -} - -// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil -func (o *SiteRequest) UnsetTimeZone() { - o.TimeZone.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *SiteRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -383,284 +128,6 @@ func (o *SiteRequest) SetDescription(v string) { o.Description = &v } -// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. -func (o *SiteRequest) GetPhysicalAddress() string { - if o == nil || IsNil(o.PhysicalAddress) { - var ret string - return ret - } - return *o.PhysicalAddress -} - -// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool) { - if o == nil || IsNil(o.PhysicalAddress) { - return nil, false - } - return o.PhysicalAddress, true -} - -// HasPhysicalAddress returns a boolean if a field has been set. -func (o *SiteRequest) HasPhysicalAddress() bool { - if o != nil && !IsNil(o.PhysicalAddress) { - return true - } - - return false -} - -// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. -func (o *SiteRequest) SetPhysicalAddress(v string) { - o.PhysicalAddress = &v -} - -// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. -func (o *SiteRequest) GetShippingAddress() string { - if o == nil || IsNil(o.ShippingAddress) { - var ret string - return ret - } - return *o.ShippingAddress -} - -// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetShippingAddressOk() (*string, bool) { - if o == nil || IsNil(o.ShippingAddress) { - return nil, false - } - return o.ShippingAddress, true -} - -// HasShippingAddress returns a boolean if a field has been set. -func (o *SiteRequest) HasShippingAddress() bool { - if o != nil && !IsNil(o.ShippingAddress) { - return true - } - - return false -} - -// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. -func (o *SiteRequest) SetShippingAddress(v string) { - o.ShippingAddress = &v -} - -// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SiteRequest) GetLatitude() float64 { - if o == nil || IsNil(o.Latitude.Get()) { - var ret float64 - return ret - } - return *o.Latitude.Get() -} - -// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SiteRequest) GetLatitudeOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Latitude.Get(), o.Latitude.IsSet() -} - -// HasLatitude returns a boolean if a field has been set. -func (o *SiteRequest) HasLatitude() bool { - if o != nil && o.Latitude.IsSet() { - return true - } - - return false -} - -// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. -func (o *SiteRequest) SetLatitude(v float64) { - o.Latitude.Set(&v) -} - -// SetLatitudeNil sets the value for Latitude to be an explicit nil -func (o *SiteRequest) SetLatitudeNil() { - o.Latitude.Set(nil) -} - -// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil -func (o *SiteRequest) UnsetLatitude() { - o.Latitude.Unset() -} - -// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *SiteRequest) GetLongitude() float64 { - if o == nil || IsNil(o.Longitude.Get()) { - var ret float64 - return ret - } - return *o.Longitude.Get() -} - -// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *SiteRequest) GetLongitudeOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Longitude.Get(), o.Longitude.IsSet() -} - -// HasLongitude returns a boolean if a field has been set. -func (o *SiteRequest) HasLongitude() bool { - if o != nil && o.Longitude.IsSet() { - return true - } - - return false -} - -// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. -func (o *SiteRequest) SetLongitude(v float64) { - o.Longitude.Set(&v) -} - -// SetLongitudeNil sets the value for Longitude to be an explicit nil -func (o *SiteRequest) SetLongitudeNil() { - o.Longitude.Set(nil) -} - -// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil -func (o *SiteRequest) UnsetLongitude() { - o.Longitude.Unset() -} - -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *SiteRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *SiteRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *SiteRequest) SetComments(v string) { - o.Comments = &v -} - -// GetAsns returns the Asns field value if set, zero value otherwise. -func (o *SiteRequest) GetAsns() []int32 { - if o == nil || IsNil(o.Asns) { - var ret []int32 - return ret - } - return o.Asns -} - -// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetAsnsOk() ([]int32, bool) { - if o == nil || IsNil(o.Asns) { - return nil, false - } - return o.Asns, true -} - -// HasAsns returns a boolean if a field has been set. -func (o *SiteRequest) HasAsns() bool { - if o != nil && !IsNil(o.Asns) { - return true - } - - return false -} - -// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. -func (o *SiteRequest) SetAsns(v []int32) { - o.Asns = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *SiteRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *SiteRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *SiteRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *SiteRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *SiteRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *SiteRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *SiteRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o SiteRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -673,51 +140,9 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Region.IsSet() { - toSerialize["region"] = o.Region.Get() - } - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Facility) { - toSerialize["facility"] = o.Facility - } - if o.TimeZone.IsSet() { - toSerialize["time_zone"] = o.TimeZone.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.PhysicalAddress) { - toSerialize["physical_address"] = o.PhysicalAddress - } - if !IsNil(o.ShippingAddress) { - toSerialize["shipping_address"] = o.ShippingAddress - } - if o.Latitude.IsSet() { - toSerialize["latitude"] = o.Latitude.Get() - } - if o.Longitude.IsSet() { - toSerialize["longitude"] = o.Longitude.Get() - } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Asns) { - toSerialize["asns"] = o.Asns - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -764,21 +189,7 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "status") - delete(additionalProperties, "region") - delete(additionalProperties, "group") - delete(additionalProperties, "tenant") - delete(additionalProperties, "facility") - delete(additionalProperties, "time_zone") delete(additionalProperties, "description") - delete(additionalProperties, "physical_address") - delete(additionalProperties, "shipping_address") - delete(additionalProperties, "latitude") - delete(additionalProperties, "longitude") - delete(additionalProperties, "comments") - delete(additionalProperties, "asns") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_subscription.go b/model_subscription.go index ea42acc40..37c4e6a11 100644 --- a/model_subscription.go +++ b/model_subscription.go @@ -12,8 +12,8 @@ package netbox import ( "encoding/json" - "time" "fmt" + "time" ) // checks if the Subscription type satisfies the MappedNullable interface at compile time @@ -21,14 +21,14 @@ var _ MappedNullable = &Subscription{} // Subscription Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Subscription struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object interface{} `json:"object"` - User BriefUser `json:"user"` - Created time.Time `json:"created"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object interface{} `json:"object"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` AdditionalProperties map[string]interface{} } @@ -254,7 +254,7 @@ func (o *Subscription) SetCreated(v time.Time) { } func (o Subscription) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -301,10 +301,10 @@ func (o *Subscription) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -372,5 +372,3 @@ func (v *NullableSubscription) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_subscription_request.go b/model_subscription_request.go index f91ce9764..ba6de2e10 100644 --- a/model_subscription_request.go +++ b/model_subscription_request.go @@ -20,9 +20,9 @@ var _ MappedNullable = &SubscriptionRequest{} // SubscriptionRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type SubscriptionRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - User BriefUserRequest `json:"user"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` AdditionalProperties map[string]interface{} } @@ -121,7 +121,7 @@ func (o *SubscriptionRequest) SetUser(v BriefUserRequest) { } func (o SubscriptionRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -156,10 +156,10 @@ func (o *SubscriptionRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -222,5 +222,3 @@ func (v *NullableSubscriptionRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_tag.go b/model_tag.go index 1f30de7cc..976b2af1a 100644 --- a/model_tag.go +++ b/model_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &Tag{} type Tag struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,11 +41,10 @@ type _Tag Tag // 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 NewTag(id int32, url string, displayUrl string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { +func NewTag(id int32, url string, display string, name string, slug string, taggedItems int64, created NullableTime, lastUpdated NullableTime) *Tag { this := Tag{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -112,30 +110,6 @@ func (o *Tag) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Tag) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Tag) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Tag) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Tag) GetDisplay() string { if o == nil { @@ -392,7 +366,6 @@ func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -423,7 +396,6 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -461,7 +433,6 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tag_request.go b/model_tag_request.go index e3d389778..3e2e1c595 100644 --- a/model_tag_request.go +++ b/model_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant.go b/model_tenant.go index 76e2f8839..0c4232d93 100644 --- a/model_tenant.go +++ b/model_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Tenant type satisfies the MappedNullable interface at compile time @@ -21,29 +20,12 @@ var _ MappedNullable = &Tenant{} // Tenant Adds support for custom fields and tags. type Tenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Group NullableBriefTenantGroup `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CircuitCount int64 `json:"circuit_count"` - DeviceCount *int64 `json:"device_count,omitempty"` - IpaddressCount int64 `json:"ipaddress_count"` - PrefixCount *int64 `json:"prefix_count,omitempty"` - RackCount int64 `json:"rack_count"` - SiteCount int64 `json:"site_count"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` - VlanCount int64 `json:"vlan_count"` - VrfCount int64 `json:"vrf_count"` - ClusterCount int64 `json:"cluster_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,23 +35,13 @@ type _Tenant Tenant // 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 NewTenant(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, rackCount int64, siteCount int64, vlanCount int64, vrfCount int64, clusterCount int64) *Tenant { +func NewTenant(id int32, url string, display string, name string, slug string) *Tenant { this := Tenant{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated - this.CircuitCount = circuitCount - this.IpaddressCount = ipaddressCount - this.RackCount = rackCount - this.SiteCount = siteCount - this.VlanCount = vlanCount - this.VrfCount = vrfCount - this.ClusterCount = clusterCount return &this } @@ -129,30 +101,6 @@ func (o *Tenant) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Tenant) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Tenant) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Tenant) GetDisplay() string { if o == nil { @@ -225,49 +173,6 @@ func (o *Tenant) SetSlug(v string) { o.Slug = v } -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Tenant) GetGroup() BriefTenantGroup { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefTenantGroup - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *Tenant) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefTenantGroup and assigns it to the Group field. -func (o *Tenant) SetGroup(v BriefTenantGroup) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *Tenant) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *Tenant) UnsetGroup() { - o.Group.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tenant) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -300,418 +205,6 @@ func (o *Tenant) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Tenant) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tenant) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Tenant) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Tenant) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Tenant) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tenant) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Tenant) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Tenant) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Tenant) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tenant) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Tenant) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Tenant) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Tenant) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tenant) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Tenant) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Tenant) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Tenant) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetCircuitCount returns the CircuitCount field value -func (o *Tenant) GetCircuitCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.CircuitCount -} - -// GetCircuitCountOk returns a tuple with the CircuitCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetCircuitCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.CircuitCount, true -} - -// SetCircuitCount sets field value -func (o *Tenant) SetCircuitCount(v int64) { - o.CircuitCount = v -} - -// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. -func (o *Tenant) GetDeviceCount() int64 { - if o == nil || IsNil(o.DeviceCount) { - var ret int64 - return ret - } - return *o.DeviceCount -} - -// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tenant) GetDeviceCountOk() (*int64, bool) { - if o == nil || IsNil(o.DeviceCount) { - return nil, false - } - return o.DeviceCount, true -} - -// HasDeviceCount returns a boolean if a field has been set. -func (o *Tenant) HasDeviceCount() bool { - if o != nil && !IsNil(o.DeviceCount) { - return true - } - - return false -} - -// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. -func (o *Tenant) SetDeviceCount(v int64) { - o.DeviceCount = &v -} - -// GetIpaddressCount returns the IpaddressCount field value -func (o *Tenant) GetIpaddressCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.IpaddressCount -} - -// GetIpaddressCountOk returns a tuple with the IpaddressCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetIpaddressCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.IpaddressCount, true -} - -// SetIpaddressCount sets field value -func (o *Tenant) SetIpaddressCount(v int64) { - o.IpaddressCount = v -} - -// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. -func (o *Tenant) GetPrefixCount() int64 { - if o == nil || IsNil(o.PrefixCount) { - var ret int64 - return ret - } - return *o.PrefixCount -} - -// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tenant) GetPrefixCountOk() (*int64, bool) { - if o == nil || IsNil(o.PrefixCount) { - return nil, false - } - return o.PrefixCount, true -} - -// HasPrefixCount returns a boolean if a field has been set. -func (o *Tenant) HasPrefixCount() bool { - if o != nil && !IsNil(o.PrefixCount) { - return true - } - - return false -} - -// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. -func (o *Tenant) SetPrefixCount(v int64) { - o.PrefixCount = &v -} - -// GetRackCount returns the RackCount field value -func (o *Tenant) GetRackCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.RackCount -} - -// GetRackCountOk returns a tuple with the RackCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetRackCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.RackCount, true -} - -// SetRackCount sets field value -func (o *Tenant) SetRackCount(v int64) { - o.RackCount = v -} - -// GetSiteCount returns the SiteCount field value -func (o *Tenant) GetSiteCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.SiteCount -} - -// GetSiteCountOk returns a tuple with the SiteCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetSiteCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.SiteCount, true -} - -// SetSiteCount sets field value -func (o *Tenant) SetSiteCount(v int64) { - o.SiteCount = v -} - -// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. -func (o *Tenant) GetVirtualmachineCount() int64 { - if o == nil || IsNil(o.VirtualmachineCount) { - var ret int64 - return ret - } - return *o.VirtualmachineCount -} - -// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool) { - if o == nil || IsNil(o.VirtualmachineCount) { - return nil, false - } - return o.VirtualmachineCount, true -} - -// HasVirtualmachineCount returns a boolean if a field has been set. -func (o *Tenant) HasVirtualmachineCount() bool { - if o != nil && !IsNil(o.VirtualmachineCount) { - return true - } - - return false -} - -// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. -func (o *Tenant) SetVirtualmachineCount(v int64) { - o.VirtualmachineCount = &v -} - -// GetVlanCount returns the VlanCount field value -func (o *Tenant) GetVlanCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.VlanCount -} - -// GetVlanCountOk returns a tuple with the VlanCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetVlanCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.VlanCount, true -} - -// SetVlanCount sets field value -func (o *Tenant) SetVlanCount(v int64) { - o.VlanCount = v -} - -// GetVrfCount returns the VrfCount field value -func (o *Tenant) GetVrfCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.VrfCount -} - -// GetVrfCountOk returns a tuple with the VrfCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetVrfCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.VrfCount, true -} - -// SetVrfCount sets field value -func (o *Tenant) SetVrfCount(v int64) { - o.VrfCount = v -} - -// GetClusterCount returns the ClusterCount field value -func (o *Tenant) GetClusterCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.ClusterCount -} - -// GetClusterCountOk returns a tuple with the ClusterCount field value -// and a boolean to check if the value has been set. -func (o *Tenant) GetClusterCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.ClusterCount, true -} - -// SetClusterCount sets field value -func (o *Tenant) SetClusterCount(v int64) { - o.ClusterCount = v -} - func (o Tenant) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -724,43 +217,12 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["circuit_count"] = o.CircuitCount - if !IsNil(o.DeviceCount) { - toSerialize["device_count"] = o.DeviceCount - } - toSerialize["ipaddress_count"] = o.IpaddressCount - if !IsNil(o.PrefixCount) { - toSerialize["prefix_count"] = o.PrefixCount - } - toSerialize["rack_count"] = o.RackCount - toSerialize["site_count"] = o.SiteCount - if !IsNil(o.VirtualmachineCount) { - toSerialize["virtualmachine_count"] = o.VirtualmachineCount - } - toSerialize["vlan_count"] = o.VlanCount - toSerialize["vrf_count"] = o.VrfCount - toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -776,19 +238,9 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", - "circuit_count", - "ipaddress_count", - "rack_count", - "site_count", - "vlan_count", - "vrf_count", - "cluster_count", } allProperties := make(map[string]interface{}) @@ -820,27 +272,10 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "group") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "circuit_count") - delete(additionalProperties, "device_count") - delete(additionalProperties, "ipaddress_count") - delete(additionalProperties, "prefix_count") - delete(additionalProperties, "rack_count") - delete(additionalProperties, "site_count") - delete(additionalProperties, "virtualmachine_count") - delete(additionalProperties, "vlan_count") - delete(additionalProperties, "vrf_count") - delete(additionalProperties, "cluster_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tenant_group.go b/model_tenant_group.go index c6d7e4f2b..ef3aab867 100644 --- a/model_tenant_group.go +++ b/model_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &TenantGroup{} type TenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -44,11 +43,10 @@ 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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { +func NewTenantGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tenantCount int32, depth int32) *TenantGroup { this := TenantGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -115,30 +113,6 @@ func (o *TenantGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *TenantGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *TenantGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *TenantGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *TenantGroup) GetDisplay() string { if o == nil { @@ -462,7 +436,6 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -497,7 +470,6 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -536,7 +508,6 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go index e54ab884e..70e0f8dfc 100644 --- a/model_tenant_group_request.go +++ b/model_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant_request.go b/model_tenant_request.go index 4726ed422..5b7a6cb22 100644 --- a/model_tenant_request.go +++ b/model_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,9 @@ var _ MappedNullable = &TenantRequest{} // TenantRequest Adds support for custom fields and tags. type TenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Group NullableBriefTenantGroupRequest `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -99,49 +95,6 @@ func (o *TenantRequest) SetSlug(v string) { o.Slug = v } -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TenantRequest) GetGroup() BriefTenantGroupRequest { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefTenantGroupRequest - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *TenantRequest) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. -func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *TenantRequest) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *TenantRequest) UnsetGroup() { - o.Group.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *TenantRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -174,102 +127,6 @@ func (o *TenantRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *TenantRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TenantRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *TenantRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *TenantRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *TenantRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TenantRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *TenantRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *TenantRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *TenantRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TenantRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *TenantRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *TenantRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o TenantRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -282,21 +139,9 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -343,11 +188,7 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "group") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_termination.go b/model_termination.go index 5381a5375..8c028ef17 100644 --- a/model_termination.go +++ b/model_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_termination_1.go b/model_termination_1.go index 7496f17f8..c68e40d67 100644 --- a/model_termination_1.go +++ b/model_termination_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token.go b/model_token.go index 50fa94e81..017655fd0 100644 --- a/model_token.go +++ b/model_token.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,14 @@ var _ MappedNullable = &Token{} // Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Token struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - User BriefUser `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + User User `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -42,11 +41,10 @@ type _Token Token // 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 NewToken(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time) *Token { +func NewToken(id int32, url string, display string, user User, created time.Time) *Token { this := Token{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.User = user this.Created = created @@ -109,30 +107,6 @@ func (o *Token) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Token) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Token) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Token) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Token) GetDisplay() string { if o == nil { @@ -158,9 +132,9 @@ func (o *Token) SetDisplay(v string) { } // GetUser returns the User field value -func (o *Token) GetUser() BriefUser { +func (o *Token) GetUser() User { if o == nil { - var ret BriefUser + var ret User return ret } @@ -169,7 +143,7 @@ func (o *Token) GetUser() BriefUser { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Token) GetUserOk() (*BriefUser, bool) { +func (o *Token) GetUserOk() (*User, bool) { if o == nil { return nil, false } @@ -177,7 +151,7 @@ func (o *Token) GetUserOk() (*BriefUser, bool) { } // SetUser sets field value -func (o *Token) SetUser(v BriefUser) { +func (o *Token) SetUser(v User) { o.User = v } @@ -399,7 +373,6 @@ func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -433,7 +406,6 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "user", "created", @@ -468,7 +440,6 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision.go b/model_token_provision.go index ff372b2d4..d2058fd4a 100644 --- a/model_token_provision.go +++ b/model_token_provision.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,14 @@ var _ MappedNullable = &TokenProvision{} // TokenProvision Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenProvision struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - User BriefUser `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed time.Time `json:"last_used"` - Key string `json:"key"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + User User `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed time.Time `json:"last_used"` + Key string `json:"key"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -42,11 +41,10 @@ type _TokenProvision TokenProvision // 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 NewTokenProvision(id int32, url string, displayUrl string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string) *TokenProvision { +func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string) *TokenProvision { this := TokenProvision{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.User = user this.Created = created @@ -111,30 +109,6 @@ func (o *TokenProvision) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *TokenProvision) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *TokenProvision) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *TokenProvision) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *TokenProvision) GetDisplay() string { if o == nil { @@ -160,9 +134,9 @@ func (o *TokenProvision) SetDisplay(v string) { } // GetUser returns the User field value -func (o *TokenProvision) GetUser() BriefUser { +func (o *TokenProvision) GetUser() User { if o == nil { - var ret BriefUser + var ret User return ret } @@ -171,7 +145,7 @@ func (o *TokenProvision) GetUser() BriefUser { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenProvision) GetUserOk() (*BriefUser, bool) { +func (o *TokenProvision) GetUserOk() (*User, bool) { if o == nil { return nil, false } @@ -179,7 +153,7 @@ func (o *TokenProvision) GetUserOk() (*BriefUser, bool) { } // SetUser sets field value -func (o *TokenProvision) SetUser(v BriefUser) { +func (o *TokenProvision) SetUser(v User) { o.User = v } @@ -374,7 +348,6 @@ func (o TokenProvision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -404,7 +377,6 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "user", "created", @@ -441,7 +413,6 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision_request.go b/model_token_provision_request.go index d1dcb3328..f880694d4 100644 --- a/model_token_provision_request.go +++ b/model_token_provision_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token_request.go b/model_token_request.go index 93a6d9bd8..a472e9650 100644 --- a/model_token_request.go +++ b/model_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &TokenRequest{} // TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenRequest struct { - User BriefUserRequest `json:"user"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User UserRequest `json:"user"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -37,7 +37,7 @@ type _TokenRequest TokenRequest // 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 NewTokenRequest(user BriefUserRequest) *TokenRequest { +func NewTokenRequest(user UserRequest) *TokenRequest { this := TokenRequest{} this.User = user return &this @@ -52,9 +52,9 @@ func NewTokenRequestWithDefaults() *TokenRequest { } // GetUser returns the User field value -func (o *TokenRequest) GetUser() BriefUserRequest { +func (o *TokenRequest) GetUser() UserRequest { if o == nil { - var ret BriefUserRequest + var ret UserRequest return ret } @@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() BriefUserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) { +func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) { } // SetUser sets field value -func (o *TokenRequest) SetUser(v BriefUserRequest) { +func (o *TokenRequest) SetUser(v UserRequest) { o.User = v } diff --git a/model_tunnel.go b/model_tunnel.go index c3954ecbc..b947b58fc 100644 --- a/model_tunnel.go +++ b/model_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the Tunnel type satisfies the MappedNullable interface at compile time @@ -21,24 +20,11 @@ var _ MappedNullable = &Tunnel{} // Tunnel Adds support for custom fields and tags. type Tunnel struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Status TunnelStatus `json:"status"` - Group NullableBriefTunnelGroup `json:"group,omitempty"` - Encapsulation TunnelEncapsulation `json:"encapsulation"` - IpsecProfile NullableBriefIPSecProfile `json:"ipsec_profile,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - TunnelId NullableInt64 `json:"tunnel_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - TerminationsCount int64 `json:"terminations_count"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,18 +34,12 @@ type _Tunnel Tunnel // 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 NewTunnel(id int32, url string, displayUrl string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64) *Tunnel { +func NewTunnel(id int32, url string, display string, name string) *Tunnel { this := Tunnel{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Status = status - this.Encapsulation = encapsulation - this.Created = created - this.LastUpdated = lastUpdated - this.TerminationsCount = terminationsCount return &this } @@ -119,30 +99,6 @@ func (o *Tunnel) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Tunnel) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Tunnel) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Tunnel) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Tunnel) GetDisplay() string { if o == nil { @@ -191,226 +147,6 @@ func (o *Tunnel) SetName(v string) { o.Name = v } -// GetStatus returns the Status field value -func (o *Tunnel) GetStatus() TunnelStatus { - if o == nil { - var ret TunnelStatus - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *Tunnel) SetStatus(v TunnelStatus) { - o.Status = v -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Tunnel) GetGroup() BriefTunnelGroup { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefTunnelGroup - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *Tunnel) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefTunnelGroup and assigns it to the Group field. -func (o *Tunnel) SetGroup(v BriefTunnelGroup) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *Tunnel) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *Tunnel) UnsetGroup() { - o.Group.Unset() -} - -// GetEncapsulation returns the Encapsulation field value -func (o *Tunnel) GetEncapsulation() TunnelEncapsulation { - if o == nil { - var ret TunnelEncapsulation - return ret - } - - return o.Encapsulation -} - -// GetEncapsulationOk returns a tuple with the Encapsulation field value -// and a boolean to check if the value has been set. -func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool) { - if o == nil { - return nil, false - } - return &o.Encapsulation, true -} - -// SetEncapsulation sets field value -func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation) { - o.Encapsulation = v -} - -// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile { - if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret BriefIPSecProfile - return ret - } - return *o.IpsecProfile.Get() -} - -// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool) { - if o == nil { - return nil, false - } - return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() -} - -// HasIpsecProfile returns a boolean if a field has been set. -func (o *Tunnel) HasIpsecProfile() bool { - if o != nil && o.IpsecProfile.IsSet() { - return true - } - - return false -} - -// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfile and assigns it to the IpsecProfile field. -func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile) { - o.IpsecProfile.Set(&v) -} - -// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil -func (o *Tunnel) SetIpsecProfileNil() { - o.IpsecProfile.Set(nil) -} - -// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil -func (o *Tunnel) UnsetIpsecProfile() { - o.IpsecProfile.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Tunnel) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tunnel) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *Tunnel) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *Tunnel) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *Tunnel) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *Tunnel) UnsetTenant() { - o.Tenant.Unset() -} - -// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Tunnel) GetTunnelId() int64 { - if o == nil || IsNil(o.TunnelId.Get()) { - var ret int64 - return ret - } - return *o.TunnelId.Get() -} - -// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tunnel) GetTunnelIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.TunnelId.Get(), o.TunnelId.IsSet() -} - -// HasTunnelId returns a boolean if a field has been set. -func (o *Tunnel) HasTunnelId() bool { - if o != nil && o.TunnelId.IsSet() { - return true - } - - return false -} - -// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. -func (o *Tunnel) SetTunnelId(v int64) { - o.TunnelId.Set(&v) -} - -// SetTunnelIdNil sets the value for TunnelId to be an explicit nil -func (o *Tunnel) SetTunnelIdNil() { - o.TunnelId.Set(nil) -} - -// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil -func (o *Tunnel) UnsetTunnelId() { - o.TunnelId.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tunnel) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -443,178 +179,6 @@ func (o *Tunnel) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *Tunnel) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tunnel) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *Tunnel) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *Tunnel) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *Tunnel) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tunnel) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *Tunnel) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *Tunnel) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *Tunnel) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *Tunnel) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *Tunnel) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *Tunnel) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Tunnel) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tunnel) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *Tunnel) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *Tunnel) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *Tunnel) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetTerminationsCount returns the TerminationsCount field value -func (o *Tunnel) GetTerminationsCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.TerminationsCount -} - -// GetTerminationsCountOk returns a tuple with the TerminationsCount field value -// and a boolean to check if the value has been set. -func (o *Tunnel) GetTerminationsCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.TerminationsCount, true -} - -// SetTerminationsCount sets field value -func (o *Tunnel) SetTerminationsCount(v int64) { - o.TerminationsCount = v -} - func (o Tunnel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -627,38 +191,11 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name - toSerialize["status"] = o.Status - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } - toSerialize["encapsulation"] = o.Encapsulation - if o.IpsecProfile.IsSet() { - toSerialize["ipsec_profile"] = o.IpsecProfile.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if o.TunnelId.IsSet() { - toSerialize["tunnel_id"] = o.TunnelId.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["terminations_count"] = o.TerminationsCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -674,14 +211,8 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "status", - "encapsulation", - "created", - "last_updated", - "terminations_count", } allProperties := make(map[string]interface{}) @@ -713,22 +244,9 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") - delete(additionalProperties, "status") - delete(additionalProperties, "group") - delete(additionalProperties, "encapsulation") - delete(additionalProperties, "ipsec_profile") - delete(additionalProperties, "tenant") - delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "terminations_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go index 31874937e..8bd08ed5e 100644 --- a/model_tunnel_encapsulation.go +++ b/model_tunnel_encapsulation.go @@ -19,8 +19,8 @@ var _ MappedNullable = &TunnelEncapsulation{} // TunnelEncapsulation struct for TunnelEncapsulation type TunnelEncapsulation struct { - Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"` - Label *TunnelEncapsulationLabel `json:"label,omitempty"` + Value *PatchedWritableTunnelRequestEncapsulation `json:"value,omitempty"` + Label *TunnelEncapsulationLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *TunnelEncapsulation) SetLabel(v TunnelEncapsulationLabel) { } func (o TunnelEncapsulation) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableTunnelEncapsulation) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_tunnel_encapsulation_label.go b/model_tunnel_encapsulation_label.go index 1ed321455..09e344d5c 100644 --- a/model_tunnel_encapsulation_label.go +++ b/model_tunnel_encapsulation_label.go @@ -21,9 +21,9 @@ type TunnelEncapsulationLabel string // List of Tunnel_encapsulation_label const ( TUNNELENCAPSULATIONLABEL_I_PSEC___TRANSPORT TunnelEncapsulationLabel = "IPsec - Transport" - TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel" - TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP" - TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE" + TUNNELENCAPSULATIONLABEL_I_PSEC___TUNNEL TunnelEncapsulationLabel = "IPsec - Tunnel" + TUNNELENCAPSULATIONLABEL_IP_IN_IP TunnelEncapsulationLabel = "IP-in-IP" + TUNNELENCAPSULATIONLABEL_GRE TunnelEncapsulationLabel = "GRE" ) // All allowed values of TunnelEncapsulationLabel enum @@ -112,4 +112,3 @@ func (v *NullableTunnelEncapsulationLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_tunnel_group.go b/model_tunnel_group.go index 3bce5526e..c4ba9d081 100644 --- a/model_tunnel_group.go +++ b/model_tunnel_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &TunnelGroup{} type TunnelGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -42,11 +41,10 @@ type _TunnelGroup TunnelGroup // 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 NewTunnelGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { +func NewTunnelGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, tunnelCount int64) *TunnelGroup { this := TunnelGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -112,30 +110,6 @@ func (o *TunnelGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *TunnelGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *TunnelGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *TunnelGroup) GetDisplay() string { if o == nil { @@ -392,7 +366,6 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -423,7 +396,6 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -461,7 +433,6 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go index 03e39ef27..f19727186 100644 --- a/model_tunnel_group_request.go +++ b/model_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_request.go b/model_tunnel_request.go index 67a83389f..c6e7ce560 100644 --- a/model_tunnel_request.go +++ b/model_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,8 @@ var _ MappedNullable = &TunnelRequest{} // TunnelRequest Adds support for custom fields and tags. type TunnelRequest struct { - Name string `json:"name"` - Status PatchedWritableTunnelRequestStatus `json:"status"` - Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` - Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` - IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - TunnelId NullableInt64 `json:"tunnel_id,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,11 +31,9 @@ type _TunnelRequest TunnelRequest // 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 NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest { +func NewTunnelRequest(name string) *TunnelRequest { this := TunnelRequest{} this.Name = name - this.Status = status - this.Encapsulation = encapsulation return &this } @@ -80,226 +69,6 @@ func (o *TunnelRequest) SetName(v string) { o.Name = v } -// GetStatus returns the Status field value -func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus { - if o == nil { - var ret PatchedWritableTunnelRequestStatus - return ret - } - - return o.Status -} - -// GetStatusOk returns a tuple with the Status field value -// and a boolean to check if the value has been set. -func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool) { - if o == nil { - return nil, false - } - return &o.Status, true -} - -// SetStatus sets field value -func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) { - o.Status = v -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefTunnelGroupRequest - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *TunnelRequest) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. -func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *TunnelRequest) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *TunnelRequest) UnsetGroup() { - o.Group.Unset() -} - -// GetEncapsulation returns the Encapsulation field value -func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation { - if o == nil { - var ret PatchedWritableTunnelRequestEncapsulation - return ret - } - - return o.Encapsulation -} - -// GetEncapsulationOk returns a tuple with the Encapsulation field value -// and a boolean to check if the value has been set. -func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { - if o == nil { - return nil, false - } - return &o.Encapsulation, true -} - -// SetEncapsulation sets field value -func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation) { - o.Encapsulation = v -} - -// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { - if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret BriefIPSecProfileRequest - return ret - } - return *o.IpsecProfile.Get() -} - -// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { - if o == nil { - return nil, false - } - return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() -} - -// HasIpsecProfile returns a boolean if a field has been set. -func (o *TunnelRequest) HasIpsecProfile() bool { - if o != nil && o.IpsecProfile.IsSet() { - return true - } - - return false -} - -// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { - o.IpsecProfile.Set(&v) -} - -// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil -func (o *TunnelRequest) SetIpsecProfileNil() { - o.IpsecProfile.Set(nil) -} - -// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil -func (o *TunnelRequest) UnsetIpsecProfile() { - o.IpsecProfile.Unset() -} - -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *TunnelRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *TunnelRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *TunnelRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *TunnelRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelRequest) GetTunnelId() int64 { - if o == nil || IsNil(o.TunnelId.Get()) { - var ret int64 - return ret - } - return *o.TunnelId.Get() -} - -// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool) { - if o == nil { - return nil, false - } - return o.TunnelId.Get(), o.TunnelId.IsSet() -} - -// HasTunnelId returns a boolean if a field has been set. -func (o *TunnelRequest) HasTunnelId() bool { - if o != nil && o.TunnelId.IsSet() { - return true - } - - return false -} - -// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. -func (o *TunnelRequest) SetTunnelId(v int64) { - o.TunnelId.Set(&v) -} - -// SetTunnelIdNil sets the value for TunnelId to be an explicit nil -func (o *TunnelRequest) SetTunnelIdNil() { - o.TunnelId.Set(nil) -} - -// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil -func (o *TunnelRequest) UnsetTunnelId() { - o.TunnelId.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -332,102 +101,6 @@ func (o *TunnelRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *TunnelRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TunnelRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *TunnelRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *TunnelRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *TunnelRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TunnelRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *TunnelRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *TunnelRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *TunnelRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *TunnelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *TunnelRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *TunnelRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o TunnelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -439,32 +112,9 @@ func (o TunnelRequest) MarshalJSON() ([]byte, error) { func (o TunnelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - toSerialize["status"] = o.Status - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } - toSerialize["encapsulation"] = o.Encapsulation - if o.IpsecProfile.IsSet() { - toSerialize["ipsec_profile"] = o.IpsecProfile.Get() - } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if o.TunnelId.IsSet() { - toSerialize["tunnel_id"] = o.TunnelId.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -479,8 +129,6 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", - "status", - "encapsulation", } allProperties := make(map[string]interface{}) @@ -511,16 +159,7 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") - delete(additionalProperties, "status") - delete(additionalProperties, "group") - delete(additionalProperties, "encapsulation") - delete(additionalProperties, "ipsec_profile") - delete(additionalProperties, "tenant") - delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_status.go b/model_tunnel_status.go index ce24b246d..7160b5286 100644 --- a/model_tunnel_status.go +++ b/model_tunnel_status.go @@ -19,8 +19,8 @@ var _ MappedNullable = &TunnelStatus{} // TunnelStatus struct for TunnelStatus type TunnelStatus struct { - Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"` - Label *TunnelStatusLabel `json:"label,omitempty"` + Value *PatchedWritableTunnelRequestStatus `json:"value,omitempty"` + Label *TunnelStatusLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *TunnelStatus) SetLabel(v TunnelStatusLabel) { } func (o TunnelStatus) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableTunnelStatus) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_tunnel_status_label.go b/model_tunnel_status_label.go index b279cbc12..063915234 100644 --- a/model_tunnel_status_label.go +++ b/model_tunnel_status_label.go @@ -20,8 +20,8 @@ type TunnelStatusLabel string // List of Tunnel_status_label const ( - TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned" - TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active" + TUNNELSTATUSLABEL_PLANNED TunnelStatusLabel = "Planned" + TUNNELSTATUSLABEL_ACTIVE TunnelStatusLabel = "Active" TUNNELSTATUSLABEL_DISABLED TunnelStatusLabel = "Disabled" ) @@ -110,4 +110,3 @@ func (v *NullableTunnelStatusLabel) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_tunnel_termination.go b/model_tunnel_termination.go index 2a522902b..014447ce2 100644 --- a/model_tunnel_termination.go +++ b/model_tunnel_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,13 @@ var _ MappedNullable = &TunnelTermination{} type TunnelTermination struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` - Tunnel BriefTunnel `json:"tunnel"` + Tunnel Tunnel `json:"tunnel"` Role TunnelTerminationRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` Termination interface{} `json:"termination"` - OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"` + OutsideIp NullableIPAddress `json:"outside_ip,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -44,11 +43,10 @@ type _TunnelTermination TunnelTermination // 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 NewTunnelTermination(id int32, url string, displayUrl string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { +func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { this := TunnelTermination{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Tunnel = tunnel this.Role = role @@ -116,30 +114,6 @@ func (o *TunnelTermination) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *TunnelTermination) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *TunnelTermination) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *TunnelTermination) GetDisplay() string { if o == nil { @@ -165,9 +139,9 @@ func (o *TunnelTermination) SetDisplay(v string) { } // GetTunnel returns the Tunnel field value -func (o *TunnelTermination) GetTunnel() BriefTunnel { +func (o *TunnelTermination) GetTunnel() Tunnel { if o == nil { - var ret BriefTunnel + var ret Tunnel return ret } @@ -176,7 +150,7 @@ func (o *TunnelTermination) GetTunnel() BriefTunnel { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool) { +func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { if o == nil { return nil, false } @@ -184,7 +158,7 @@ func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool) { } // SetTunnel sets field value -func (o *TunnelTermination) SetTunnel(v BriefTunnel) { +func (o *TunnelTermination) SetTunnel(v Tunnel) { o.Tunnel = v } @@ -289,9 +263,9 @@ func (o *TunnelTermination) SetTermination(v interface{}) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTermination) GetOutsideIp() BriefIPAddress { +func (o *TunnelTermination) GetOutsideIp() IPAddress { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.OutsideIp.Get() @@ -300,7 +274,7 @@ func (o *TunnelTermination) GetOutsideIp() BriefIPAddress { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool) { +func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -316,8 +290,8 @@ func (o *TunnelTermination) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableBriefIPAddress and assigns it to the OutsideIp field. -func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress) { +// SetOutsideIp gets a reference to the given NullableIPAddress and assigns it to the OutsideIp field. +func (o *TunnelTermination) SetOutsideIp(v IPAddress) { o.OutsideIp.Set(&v) } @@ -459,7 +433,6 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["tunnel"] = o.Tunnel toSerialize["role"] = o.Role @@ -494,7 +467,6 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "tunnel", "role", @@ -534,7 +506,6 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "tunnel") delete(additionalProperties, "role") diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go index 34d817096..d38e99b53 100644 --- a/model_tunnel_termination_request.go +++ b/model_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelTerminationRequest{} // TunnelTerminationRequest Adds support for custom fields and tags. type TunnelTerminationRequest struct { - Tunnel BriefTunnelRequest `json:"tunnel"` + Tunnel TunnelRequest `json:"tunnel"` Role PatchedWritableTunnelTerminationRequestRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,7 +36,7 @@ type _TunnelTerminationRequest TunnelTerminationRequest // 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 NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { +func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { this := TunnelTerminationRequest{} this.Tunnel = tunnel this.Role = role @@ -54,9 +54,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest { } // GetTunnel returns the Tunnel field value -func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest { +func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { if o == nil { - var ret BriefTunnelRequest + var ret TunnelRequest return ret } @@ -65,7 +65,7 @@ func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { +func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { if o == nil { return nil, false } @@ -73,7 +73,7 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { } // SetTunnel sets field value -func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { +func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest) { o.Tunnel = v } @@ -152,9 +152,9 @@ func (o *TunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { +func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.OutsideIp.Get() @@ -163,7 +163,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { +func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -179,8 +179,8 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. -func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. +func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go index 1291d5aad..fe1ea1a38 100644 --- a/model_tunnel_termination_role.go +++ b/model_tunnel_termination_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go index ece2e7073..f59fb7fd8 100644 --- a/model_tunnel_termination_role_label.go +++ b/model_tunnel_termination_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user.go b/model_user.go index 50b2c2665..09bd2a3cd 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the User type satisfies the MappedNullable interface at compile time @@ -21,23 +20,11 @@ var _ MappedNullable = &User{} // User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type User struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - FirstName *string `json:"first_name,omitempty"` - LastName *string `json:"last_name,omitempty"` - Email *string `json:"email,omitempty"` - // Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - DateJoined *time.Time `json:"date_joined,omitempty"` - LastLogin NullableTime `json:"last_login,omitempty"` - Groups []Group `json:"groups,omitempty"` - Permissions []ObjectPermission `json:"permissions,omitempty"` + Username string `json:"username"` AdditionalProperties map[string]interface{} } @@ -47,11 +34,10 @@ type _User User // 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 NewUser(id int32, url string, displayUrl string, display string, username string) *User { +func NewUser(id int32, url string, display string, username string) *User { this := User{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Username = username return &this @@ -113,30 +99,6 @@ func (o *User) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *User) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *User) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *User) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *User) GetDisplay() string { if o == nil { @@ -185,305 +147,6 @@ func (o *User) SetUsername(v string) { o.Username = v } -// GetFirstName returns the FirstName field value if set, zero value otherwise. -func (o *User) GetFirstName() string { - if o == nil || IsNil(o.FirstName) { - var ret string - return ret - } - return *o.FirstName -} - -// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetFirstNameOk() (*string, bool) { - if o == nil || IsNil(o.FirstName) { - return nil, false - } - return o.FirstName, true -} - -// HasFirstName returns a boolean if a field has been set. -func (o *User) HasFirstName() bool { - if o != nil && !IsNil(o.FirstName) { - return true - } - - return false -} - -// SetFirstName gets a reference to the given string and assigns it to the FirstName field. -func (o *User) SetFirstName(v string) { - o.FirstName = &v -} - -// GetLastName returns the LastName field value if set, zero value otherwise. -func (o *User) GetLastName() string { - if o == nil || IsNil(o.LastName) { - var ret string - return ret - } - return *o.LastName -} - -// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetLastNameOk() (*string, bool) { - if o == nil || IsNil(o.LastName) { - return nil, false - } - return o.LastName, true -} - -// HasLastName returns a boolean if a field has been set. -func (o *User) HasLastName() bool { - if o != nil && !IsNil(o.LastName) { - return true - } - - return false -} - -// SetLastName gets a reference to the given string and assigns it to the LastName field. -func (o *User) SetLastName(v string) { - o.LastName = &v -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *User) GetEmail() string { - if o == nil || IsNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *User) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *User) SetEmail(v string) { - o.Email = &v -} - -// GetIsStaff returns the IsStaff field value if set, zero value otherwise. -func (o *User) GetIsStaff() bool { - if o == nil || IsNil(o.IsStaff) { - var ret bool - return ret - } - return *o.IsStaff -} - -// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetIsStaffOk() (*bool, bool) { - if o == nil || IsNil(o.IsStaff) { - return nil, false - } - return o.IsStaff, true -} - -// HasIsStaff returns a boolean if a field has been set. -func (o *User) HasIsStaff() bool { - if o != nil && !IsNil(o.IsStaff) { - return true - } - - return false -} - -// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. -func (o *User) SetIsStaff(v bool) { - o.IsStaff = &v -} - -// GetIsActive returns the IsActive field value if set, zero value otherwise. -func (o *User) GetIsActive() bool { - if o == nil || IsNil(o.IsActive) { - var ret bool - return ret - } - return *o.IsActive -} - -// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetIsActiveOk() (*bool, bool) { - if o == nil || IsNil(o.IsActive) { - return nil, false - } - return o.IsActive, true -} - -// HasIsActive returns a boolean if a field has been set. -func (o *User) HasIsActive() bool { - if o != nil && !IsNil(o.IsActive) { - return true - } - - return false -} - -// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. -func (o *User) SetIsActive(v bool) { - o.IsActive = &v -} - -// GetDateJoined returns the DateJoined field value if set, zero value otherwise. -func (o *User) GetDateJoined() time.Time { - if o == nil || IsNil(o.DateJoined) { - var ret time.Time - return ret - } - return *o.DateJoined -} - -// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetDateJoinedOk() (*time.Time, bool) { - if o == nil || IsNil(o.DateJoined) { - return nil, false - } - return o.DateJoined, true -} - -// HasDateJoined returns a boolean if a field has been set. -func (o *User) HasDateJoined() bool { - if o != nil && !IsNil(o.DateJoined) { - return true - } - - return false -} - -// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. -func (o *User) SetDateJoined(v time.Time) { - o.DateJoined = &v -} - -// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *User) GetLastLogin() time.Time { - if o == nil || IsNil(o.LastLogin.Get()) { - var ret time.Time - return ret - } - return *o.LastLogin.Get() -} - -// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *User) GetLastLoginOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastLogin.Get(), o.LastLogin.IsSet() -} - -// HasLastLogin returns a boolean if a field has been set. -func (o *User) HasLastLogin() bool { - if o != nil && o.LastLogin.IsSet() { - return true - } - - return false -} - -// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. -func (o *User) SetLastLogin(v time.Time) { - o.LastLogin.Set(&v) -} - -// SetLastLoginNil sets the value for LastLogin to be an explicit nil -func (o *User) SetLastLoginNil() { - o.LastLogin.Set(nil) -} - -// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil -func (o *User) UnsetLastLogin() { - o.LastLogin.Unset() -} - -// GetGroups returns the Groups field value if set, zero value otherwise. -func (o *User) GetGroups() []Group { - if o == nil || IsNil(o.Groups) { - var ret []Group - return ret - } - return o.Groups -} - -// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetGroupsOk() ([]Group, bool) { - if o == nil || IsNil(o.Groups) { - return nil, false - } - return o.Groups, true -} - -// HasGroups returns a boolean if a field has been set. -func (o *User) HasGroups() bool { - if o != nil && !IsNil(o.Groups) { - return true - } - - return false -} - -// SetGroups gets a reference to the given []Group and assigns it to the Groups field. -func (o *User) SetGroups(v []Group) { - o.Groups = v -} - -// GetPermissions returns the Permissions field value if set, zero value otherwise. -func (o *User) GetPermissions() []ObjectPermission { - if o == nil || IsNil(o.Permissions) { - var ret []ObjectPermission - return ret - } - return o.Permissions -} - -// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *User) GetPermissionsOk() ([]ObjectPermission, bool) { - if o == nil || IsNil(o.Permissions) { - return nil, false - } - return o.Permissions, true -} - -// HasPermissions returns a boolean if a field has been set. -func (o *User) HasPermissions() bool { - if o != nil && !IsNil(o.Permissions) { - return true - } - - return false -} - -// SetPermissions gets a reference to the given []ObjectPermission and assigns it to the Permissions field. -func (o *User) SetPermissions(v []ObjectPermission) { - o.Permissions = v -} - func (o User) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -496,36 +159,8 @@ func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["username"] = o.Username - if !IsNil(o.FirstName) { - toSerialize["first_name"] = o.FirstName - } - if !IsNil(o.LastName) { - toSerialize["last_name"] = o.LastName - } - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.IsStaff) { - toSerialize["is_staff"] = o.IsStaff - } - if !IsNil(o.IsActive) { - toSerialize["is_active"] = o.IsActive - } - if !IsNil(o.DateJoined) { - toSerialize["date_joined"] = o.DateJoined - } - if o.LastLogin.IsSet() { - toSerialize["last_login"] = o.LastLogin.Get() - } - if !IsNil(o.Groups) { - toSerialize["groups"] = o.Groups - } - if !IsNil(o.Permissions) { - toSerialize["permissions"] = o.Permissions - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -541,7 +176,6 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "username", } @@ -575,18 +209,8 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") - delete(additionalProperties, "first_name") - delete(additionalProperties, "last_name") - delete(additionalProperties, "email") - delete(additionalProperties, "is_staff") - delete(additionalProperties, "is_active") - delete(additionalProperties, "date_joined") - delete(additionalProperties, "last_login") - delete(additionalProperties, "groups") - delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_user_request.go b/model_user_request.go index 9ed8f68c8..33ff7942b 100644 --- a/model_user_request.go +++ b/model_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the UserRequest type satisfies the MappedNullable interface at compile time @@ -22,19 +21,7 @@ var _ MappedNullable = &UserRequest{} // UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type UserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` - Password string `json:"password"` - FirstName *string `json:"first_name,omitempty"` - LastName *string `json:"last_name,omitempty"` - Email *string `json:"email,omitempty"` - // Designates whether the user can log into this admin site. - IsStaff *bool `json:"is_staff,omitempty"` - // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. - IsActive *bool `json:"is_active,omitempty"` - DateJoined *time.Time `json:"date_joined,omitempty"` - LastLogin NullableTime `json:"last_login,omitempty"` - Groups []int32 `json:"groups,omitempty"` - Permissions []int32 `json:"permissions,omitempty"` + Username string `json:"username"` AdditionalProperties map[string]interface{} } @@ -44,10 +31,9 @@ type _UserRequest UserRequest // 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 NewUserRequest(username string, password string) *UserRequest { +func NewUserRequest(username string) *UserRequest { this := UserRequest{} this.Username = username - this.Password = password return &this } @@ -83,329 +69,6 @@ func (o *UserRequest) SetUsername(v string) { o.Username = v } -// GetPassword returns the Password field value -func (o *UserRequest) GetPassword() string { - if o == nil { - var ret string - return ret - } - - return o.Password -} - -// GetPasswordOk returns a tuple with the Password field value -// and a boolean to check if the value has been set. -func (o *UserRequest) GetPasswordOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.Password, true -} - -// SetPassword sets field value -func (o *UserRequest) SetPassword(v string) { - o.Password = v -} - -// GetFirstName returns the FirstName field value if set, zero value otherwise. -func (o *UserRequest) GetFirstName() string { - if o == nil || IsNil(o.FirstName) { - var ret string - return ret - } - return *o.FirstName -} - -// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetFirstNameOk() (*string, bool) { - if o == nil || IsNil(o.FirstName) { - return nil, false - } - return o.FirstName, true -} - -// HasFirstName returns a boolean if a field has been set. -func (o *UserRequest) HasFirstName() bool { - if o != nil && !IsNil(o.FirstName) { - return true - } - - return false -} - -// SetFirstName gets a reference to the given string and assigns it to the FirstName field. -func (o *UserRequest) SetFirstName(v string) { - o.FirstName = &v -} - -// GetLastName returns the LastName field value if set, zero value otherwise. -func (o *UserRequest) GetLastName() string { - if o == nil || IsNil(o.LastName) { - var ret string - return ret - } - return *o.LastName -} - -// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetLastNameOk() (*string, bool) { - if o == nil || IsNil(o.LastName) { - return nil, false - } - return o.LastName, true -} - -// HasLastName returns a boolean if a field has been set. -func (o *UserRequest) HasLastName() bool { - if o != nil && !IsNil(o.LastName) { - return true - } - - return false -} - -// SetLastName gets a reference to the given string and assigns it to the LastName field. -func (o *UserRequest) SetLastName(v string) { - o.LastName = &v -} - -// GetEmail returns the Email field value if set, zero value otherwise. -func (o *UserRequest) GetEmail() string { - if o == nil || IsNil(o.Email) { - var ret string - return ret - } - return *o.Email -} - -// GetEmailOk returns a tuple with the Email field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetEmailOk() (*string, bool) { - if o == nil || IsNil(o.Email) { - return nil, false - } - return o.Email, true -} - -// HasEmail returns a boolean if a field has been set. -func (o *UserRequest) HasEmail() bool { - if o != nil && !IsNil(o.Email) { - return true - } - - return false -} - -// SetEmail gets a reference to the given string and assigns it to the Email field. -func (o *UserRequest) SetEmail(v string) { - o.Email = &v -} - -// GetIsStaff returns the IsStaff field value if set, zero value otherwise. -func (o *UserRequest) GetIsStaff() bool { - if o == nil || IsNil(o.IsStaff) { - var ret bool - return ret - } - return *o.IsStaff -} - -// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetIsStaffOk() (*bool, bool) { - if o == nil || IsNil(o.IsStaff) { - return nil, false - } - return o.IsStaff, true -} - -// HasIsStaff returns a boolean if a field has been set. -func (o *UserRequest) HasIsStaff() bool { - if o != nil && !IsNil(o.IsStaff) { - return true - } - - return false -} - -// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. -func (o *UserRequest) SetIsStaff(v bool) { - o.IsStaff = &v -} - -// GetIsActive returns the IsActive field value if set, zero value otherwise. -func (o *UserRequest) GetIsActive() bool { - if o == nil || IsNil(o.IsActive) { - var ret bool - return ret - } - return *o.IsActive -} - -// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetIsActiveOk() (*bool, bool) { - if o == nil || IsNil(o.IsActive) { - return nil, false - } - return o.IsActive, true -} - -// HasIsActive returns a boolean if a field has been set. -func (o *UserRequest) HasIsActive() bool { - if o != nil && !IsNil(o.IsActive) { - return true - } - - return false -} - -// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. -func (o *UserRequest) SetIsActive(v bool) { - o.IsActive = &v -} - -// GetDateJoined returns the DateJoined field value if set, zero value otherwise. -func (o *UserRequest) GetDateJoined() time.Time { - if o == nil || IsNil(o.DateJoined) { - var ret time.Time - return ret - } - return *o.DateJoined -} - -// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool) { - if o == nil || IsNil(o.DateJoined) { - return nil, false - } - return o.DateJoined, true -} - -// HasDateJoined returns a boolean if a field has been set. -func (o *UserRequest) HasDateJoined() bool { - if o != nil && !IsNil(o.DateJoined) { - return true - } - - return false -} - -// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. -func (o *UserRequest) SetDateJoined(v time.Time) { - o.DateJoined = &v -} - -// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *UserRequest) GetLastLogin() time.Time { - if o == nil || IsNil(o.LastLogin.Get()) { - var ret time.Time - return ret - } - return *o.LastLogin.Get() -} - -// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *UserRequest) GetLastLoginOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastLogin.Get(), o.LastLogin.IsSet() -} - -// HasLastLogin returns a boolean if a field has been set. -func (o *UserRequest) HasLastLogin() bool { - if o != nil && o.LastLogin.IsSet() { - return true - } - - return false -} - -// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. -func (o *UserRequest) SetLastLogin(v time.Time) { - o.LastLogin.Set(&v) -} - -// SetLastLoginNil sets the value for LastLogin to be an explicit nil -func (o *UserRequest) SetLastLoginNil() { - o.LastLogin.Set(nil) -} - -// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil -func (o *UserRequest) UnsetLastLogin() { - o.LastLogin.Unset() -} - -// GetGroups returns the Groups field value if set, zero value otherwise. -func (o *UserRequest) GetGroups() []int32 { - if o == nil || IsNil(o.Groups) { - var ret []int32 - return ret - } - return o.Groups -} - -// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetGroupsOk() ([]int32, bool) { - if o == nil || IsNil(o.Groups) { - return nil, false - } - return o.Groups, true -} - -// HasGroups returns a boolean if a field has been set. -func (o *UserRequest) HasGroups() bool { - if o != nil && !IsNil(o.Groups) { - return true - } - - return false -} - -// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. -func (o *UserRequest) SetGroups(v []int32) { - o.Groups = v -} - -// GetPermissions returns the Permissions field value if set, zero value otherwise. -func (o *UserRequest) GetPermissions() []int32 { - if o == nil || IsNil(o.Permissions) { - var ret []int32 - return ret - } - return o.Permissions -} - -// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *UserRequest) GetPermissionsOk() ([]int32, bool) { - if o == nil || IsNil(o.Permissions) { - return nil, false - } - return o.Permissions, true -} - -// HasPermissions returns a boolean if a field has been set. -func (o *UserRequest) HasPermissions() bool { - if o != nil && !IsNil(o.Permissions) { - return true - } - - return false -} - -// SetPermissions gets a reference to the given []int32 and assigns it to the Permissions field. -func (o *UserRequest) SetPermissions(v []int32) { - o.Permissions = v -} - func (o UserRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -417,34 +80,6 @@ func (o UserRequest) MarshalJSON() ([]byte, error) { func (o UserRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["username"] = o.Username - toSerialize["password"] = o.Password - if !IsNil(o.FirstName) { - toSerialize["first_name"] = o.FirstName - } - if !IsNil(o.LastName) { - toSerialize["last_name"] = o.LastName - } - if !IsNil(o.Email) { - toSerialize["email"] = o.Email - } - if !IsNil(o.IsStaff) { - toSerialize["is_staff"] = o.IsStaff - } - if !IsNil(o.IsActive) { - toSerialize["is_active"] = o.IsActive - } - if !IsNil(o.DateJoined) { - toSerialize["date_joined"] = o.DateJoined - } - if o.LastLogin.IsSet() { - toSerialize["last_login"] = o.LastLogin.Get() - } - if !IsNil(o.Groups) { - toSerialize["groups"] = o.Groups - } - if !IsNil(o.Permissions) { - toSerialize["permissions"] = o.Permissions - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -459,7 +94,6 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "username", - "password", } allProperties := make(map[string]interface{}) @@ -490,16 +124,6 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "username") - delete(additionalProperties, "password") - delete(additionalProperties, "first_name") - delete(additionalProperties, "last_name") - delete(additionalProperties, "email") - delete(additionalProperties, "is_staff") - delete(additionalProperties, "is_active") - delete(additionalProperties, "date_joined") - delete(additionalProperties, "last_login") - delete(additionalProperties, "groups") - delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go index 1e7fdc207..c23f98276 100644 --- a/model_virtual_chassis.go +++ b/model_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the VirtualChassis type satisfies the MappedNullable interface at compile time @@ -21,21 +20,13 @@ var _ MappedNullable = &VirtualChassis{} // VirtualChassis Adds support for custom fields and tags. type VirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Domain *string `json:"domain,omitempty"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - MemberCount int32 `json:"member_count"` - Members []NestedDevice `json:"members"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + MemberCount int32 `json:"member_count"` AdditionalProperties map[string]interface{} } @@ -45,17 +36,13 @@ type _VirtualChassis VirtualChassis // 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 NewVirtualChassis(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice) *VirtualChassis { +func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated this.MemberCount = memberCount - this.Members = members return &this } @@ -115,30 +102,6 @@ func (o *VirtualChassis) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VirtualChassis) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VirtualChassis) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VirtualChassis) GetDisplay() string { if o == nil { @@ -187,38 +150,6 @@ func (o *VirtualChassis) SetName(v string) { o.Name = v } -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *VirtualChassis) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *VirtualChassis) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *VirtualChassis) SetDomain(v string) { - o.Domain = &v -} - // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassis) GetMaster() NestedDevice { if o == nil || IsNil(o.Master.Get()) { @@ -294,154 +225,6 @@ func (o *VirtualChassis) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *VirtualChassis) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *VirtualChassis) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *VirtualChassis) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *VirtualChassis) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *VirtualChassis) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *VirtualChassis) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *VirtualChassis) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *VirtualChassis) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *VirtualChassis) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *VirtualChassis) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *VirtualChassis) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *VirtualChassis) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *VirtualChassis) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetMemberCount returns the MemberCount field value func (o *VirtualChassis) GetMemberCount() int32 { if o == nil { @@ -466,30 +249,6 @@ func (o *VirtualChassis) SetMemberCount(v int32) { o.MemberCount = v } -// GetMembers returns the Members field value -func (o *VirtualChassis) GetMembers() []NestedDevice { - if o == nil { - var ret []NestedDevice - return ret - } - - return o.Members -} - -// GetMembersOk returns a tuple with the Members field value -// and a boolean to check if the value has been set. -func (o *VirtualChassis) GetMembersOk() ([]NestedDevice, bool) { - if o == nil { - return nil, false - } - return o.Members, true -} - -// SetMembers sets field value -func (o *VirtualChassis) SetMembers(v []NestedDevice) { - o.Members = v -} - func (o VirtualChassis) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -502,31 +261,15 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["member_count"] = o.MemberCount - toSerialize["members"] = o.Members for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -542,13 +285,9 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "created", - "last_updated", "member_count", - "members", } allProperties := make(map[string]interface{}) @@ -580,19 +319,11 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") - delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "member_count") - delete(additionalProperties, "members") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go index 6081a59f4..12a6c68c6 100644 --- a/model_virtual_chassis_request.go +++ b/model_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,8 @@ var _ MappedNullable = &VirtualChassisRequest{} // VirtualChassisRequest Adds support for custom fields and tags. type VirtualChassisRequest struct { Name string `json:"name"` - Domain *string `json:"domain,omitempty"` Master NullableNestedDeviceRequest `json:"master,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -74,38 +70,6 @@ func (o *VirtualChassisRequest) SetName(v string) { o.Name = v } -// GetDomain returns the Domain field value if set, zero value otherwise. -func (o *VirtualChassisRequest) GetDomain() string { - if o == nil || IsNil(o.Domain) { - var ret string - return ret - } - return *o.Domain -} - -// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassisRequest) GetDomainOk() (*string, bool) { - if o == nil || IsNil(o.Domain) { - return nil, false - } - return o.Domain, true -} - -// HasDomain returns a boolean if a field has been set. -func (o *VirtualChassisRequest) HasDomain() bool { - if o != nil && !IsNil(o.Domain) { - return true - } - - return false -} - -// SetDomain gets a reference to the given string and assigns it to the Domain field. -func (o *VirtualChassisRequest) SetDomain(v string) { - o.Domain = &v -} - // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest { if o == nil || IsNil(o.Master.Get()) { @@ -181,102 +145,6 @@ func (o *VirtualChassisRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *VirtualChassisRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *VirtualChassisRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *VirtualChassisRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *VirtualChassisRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassisRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *VirtualChassisRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualChassisRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *VirtualChassisRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -288,24 +156,12 @@ func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name - if !IsNil(o.Domain) { - toSerialize["domain"] = o.Domain - } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -350,12 +206,8 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") - delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go index af0753f58..8e7c0ec50 100644 --- a/model_virtual_device_context.go +++ b/model_virtual_device_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,15 +23,14 @@ var _ MappedNullable = &VirtualDeviceContext{} type VirtualDeviceContext struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` - Device BriefDevice `json:"device"` + Device Device `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - PrimaryIp NullableBriefIPAddress `json:"primary_ip"` - PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` + PrimaryIp NullableIPAddress `json:"primary_ip"` + PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` Status VirtualDeviceContextStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -49,11 +48,10 @@ type _VirtualDeviceContext VirtualDeviceContext // 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 NewVirtualDeviceContext(id int32, url string, displayUrl string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Device = device @@ -121,30 +119,6 @@ func (o *VirtualDeviceContext) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VirtualDeviceContext) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VirtualDeviceContext) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VirtualDeviceContext) GetDisplay() string { if o == nil { @@ -194,9 +168,9 @@ func (o *VirtualDeviceContext) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContext) GetDevice() BriefDevice { +func (o *VirtualDeviceContext) GetDevice() Device { if o == nil { - var ret BriefDevice + var ret Device return ret } @@ -205,7 +179,7 @@ func (o *VirtualDeviceContext) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool) { +func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -213,7 +187,7 @@ func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContext) SetDevice(v BriefDevice) { +func (o *VirtualDeviceContext) SetDevice(v Device) { o.Device = v } @@ -261,9 +235,9 @@ func (o *VirtualDeviceContext) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetTenant() BriefTenant { +func (o *VirtualDeviceContext) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -272,7 +246,7 @@ func (o *VirtualDeviceContext) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool) { +func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -288,8 +262,8 @@ func (o *VirtualDeviceContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *VirtualDeviceContext) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *VirtualDeviceContext) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -304,10 +278,10 @@ func (o *VirtualDeviceContext) UnsetTenant() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for BriefIPAddress will be returned -func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress { +// If the value is explicit nil, the zero value for IPAddress will be returned +func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret BriefIPAddress + var ret IPAddress return ret } @@ -317,7 +291,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -325,14 +299,14 @@ func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress) { +func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp4.Get() @@ -341,7 +315,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -357,8 +331,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress) { o.PrimaryIp4.Set(&v) } @@ -373,9 +347,9 @@ func (o *VirtualDeviceContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp6.Get() @@ -384,7 +358,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -400,8 +374,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress) { o.PrimaryIp6.Set(&v) } @@ -655,7 +629,6 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["device"] = o.Device @@ -703,7 +676,6 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "device", @@ -743,7 +715,6 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device") diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go index 2fc47c5e6..64ba644f6 100644 --- a/model_virtual_device_context_request.go +++ b/model_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &VirtualDeviceContextRequest{} // VirtualDeviceContextRequest Adds support for custom fields and tags. type VirtualDeviceContextRequest struct { Name string `json:"name"` - Device BriefDeviceRequest `json:"device"` + Device DeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,7 +40,7 @@ type _VirtualDeviceContextRequest VirtualDeviceContextRequest // 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 NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { +func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { this := VirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *VirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { +func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) } // SetDevice sets field value -func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { +func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -148,9 +148,9 @@ func (o *VirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest { +func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *VirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,9 +234,9 @@ func (o *VirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go index d1d458491..121a4f6ab 100644 --- a/model_virtual_device_context_status.go +++ b/model_virtual_device_context_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go index b04de0f7e..01cf885ef 100644 --- a/model_virtual_device_context_status_label.go +++ b/model_virtual_device_context_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_disk.go b/model_virtual_disk.go index 79539c2ca..581eae9f1 100644 --- a/model_virtual_disk.go +++ b/model_virtual_disk.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,8 @@ var _ MappedNullable = &VirtualDisk{} type VirtualDisk struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` - VirtualMachine BriefVirtualMachine `json:"virtual_machine"` + VirtualMachine VirtualMachine `json:"virtual_machine"` Name string `json:"name"` Description *string `json:"description,omitempty"` Size int32 `json:"size"` @@ -42,11 +41,10 @@ type _VirtualDisk VirtualDisk // 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 NewVirtualDisk(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { +func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { this := VirtualDisk{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -112,30 +110,6 @@ func (o *VirtualDisk) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VirtualDisk) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VirtualDisk) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VirtualDisk) GetDisplay() string { if o == nil { @@ -161,9 +135,9 @@ func (o *VirtualDisk) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine { +func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { if o == nil { - var ret BriefVirtualMachine + var ret VirtualMachine return ret } @@ -172,7 +146,7 @@ func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { +func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { if o == nil { return nil, false } @@ -180,7 +154,7 @@ func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine) { +func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine) { o.VirtualMachine = v } @@ -392,7 +366,6 @@ func (o VirtualDisk) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -423,7 +396,6 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "virtual_machine", "name", @@ -461,7 +433,6 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go index 9a819b331..1403ba9b1 100644 --- a/model_virtual_disk_request.go +++ b/model_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualDiskRequest{} // VirtualDiskRequest Adds support for custom fields and tags. type VirtualDiskRequest struct { - VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Size int32 `json:"size"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Size int32 `json:"size"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _VirtualDiskRequest VirtualDiskRequest // 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 NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32) *VirtualDiskRequest { +func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32) *VirtualDiskRequest { this := VirtualDiskRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -52,9 +52,9 @@ func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } @@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, } // SetVirtualMachine sets field value -func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine = v } diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go index 0362a6c12..b51baaf12 100644 --- a/model_virtual_machine_with_config_context.go +++ b/model_virtual_machine_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,28 +21,26 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{} // VirtualMachineWithConfigContext Adds support for custom fields and tags. type VirtualMachineWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Status *ModuleStatus `json:"status,omitempty"` - Site NullableBriefSite `json:"site,omitempty"` - Cluster NullableBriefCluster `json:"cluster,omitempty"` - Device NullableBriefDevice `json:"device,omitempty"` - Serial *string `json:"serial,omitempty"` - Role NullableBriefDeviceRole `json:"role,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Platform NullableBriefPlatform `json:"platform,omitempty"` - PrimaryIp NullableBriefIPAddress `json:"primary_ip"` - PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Status *VirtualMachineWithConfigContextStatus `json:"status,omitempty"` + Site NullableSite `json:"site,omitempty"` + Cluster NullableCluster `json:"cluster,omitempty"` + Device NullableDevice `json:"device,omitempty"` + Role NullableDeviceRole `json:"role,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` + Platform NullablePlatform `json:"platform,omitempty"` + PrimaryIp NullableIPAddress `json:"primary_ip"` + PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -61,11 +59,10 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext // 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 NewVirtualMachineWithConfigContext(id int32, url string, displayUrl string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.PrimaryIp = primaryIp @@ -133,30 +130,6 @@ func (o *VirtualMachineWithConfigContext) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VirtualMachineWithConfigContext) GetDisplay() string { if o == nil { @@ -206,9 +179,9 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus { +func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus { if o == nil || IsNil(o.Status) { - var ret ModuleStatus + var ret VirtualMachineWithConfigContextStatus return ret } return *o.Status @@ -216,7 +189,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool) { +func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -232,15 +205,15 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool { return false } -// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus) { +// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field. +func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetSite() BriefSite { +func (o *VirtualMachineWithConfigContext) GetSite() Site { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSite + var ret Site return ret } return *o.Site.Get() @@ -249,7 +222,7 @@ func (o *VirtualMachineWithConfigContext) GetSite() BriefSite { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool) { +func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool) { if o == nil { return nil, false } @@ -265,8 +238,8 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. -func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite) { +// SetSite gets a reference to the given NullableSite and assigns it to the Site field. +func (o *VirtualMachineWithConfigContext) SetSite(v Site) { o.Site.Set(&v) } @@ -281,9 +254,9 @@ func (o *VirtualMachineWithConfigContext) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster { +func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefCluster + var ret Cluster return ret } return *o.Cluster.Get() @@ -292,7 +265,7 @@ func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool) { +func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool) { if o == nil { return nil, false } @@ -308,8 +281,8 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster) { +// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster) { o.Cluster.Set(&v) } @@ -324,9 +297,9 @@ func (o *VirtualMachineWithConfigContext) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice { +func (o *VirtualMachineWithConfigContext) GetDevice() Device { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDevice + var ret Device return ret } return *o.Device.Get() @@ -335,7 +308,7 @@ func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool) { +func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool) { if o == nil { return nil, false } @@ -351,8 +324,8 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. -func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice) { +// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. +func (o *VirtualMachineWithConfigContext) SetDevice(v Device) { o.Device.Set(&v) } @@ -366,42 +339,10 @@ func (o *VirtualMachineWithConfigContext) UnsetDevice() { o.Device.Unset() } -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContext) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *VirtualMachineWithConfigContext) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *VirtualMachineWithConfigContext) SetSerial(v string) { - o.Serial = &v -} - // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole { +func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { if o == nil || IsNil(o.Role.Get()) { - var ret BriefDeviceRole + var ret DeviceRole return ret } return *o.Role.Get() @@ -410,7 +351,7 @@ func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { +func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool) { if o == nil { return nil, false } @@ -426,8 +367,8 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefDeviceRole and assigns it to the Role field. -func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole) { +// SetRole gets a reference to the given NullableDeviceRole and assigns it to the Role field. +func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole) { o.Role.Set(&v) } @@ -442,9 +383,9 @@ func (o *VirtualMachineWithConfigContext) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant { +func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -453,7 +394,7 @@ func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool) { +func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -469,8 +410,8 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -485,9 +426,9 @@ func (o *VirtualMachineWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform { +func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatform + var ret Platform return ret } return *o.Platform.Get() @@ -496,7 +437,7 @@ func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { +func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool) { if o == nil { return nil, false } @@ -512,8 +453,8 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform) { +// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform) { o.Platform.Set(&v) } @@ -528,10 +469,10 @@ func (o *VirtualMachineWithConfigContext) UnsetPlatform() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for BriefIPAddress will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress { +// If the value is explicit nil, the zero value for IPAddress will be returned +func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret BriefIPAddress + var ret IPAddress return ret } @@ -541,7 +482,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { if o == nil { return nil, false } @@ -549,14 +490,14 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, boo } // SetPrimaryIp sets field value -func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress) { +func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp4.Get() @@ -565,7 +506,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -581,8 +522,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress) { o.PrimaryIp4.Set(&v) } @@ -597,9 +538,9 @@ func (o *VirtualMachineWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddress + var ret IPAddress return ret } return *o.PrimaryIp6.Get() @@ -608,7 +549,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { if o == nil { return nil, false } @@ -624,8 +565,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress) { o.PrimaryIp6.Set(&v) } @@ -833,9 +774,9 @@ func (o *VirtualMachineWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate { +func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplate + var ret ConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -844,7 +785,7 @@ func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplat // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { +func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { if o == nil { return nil, false } @@ -860,8 +801,8 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1110,7 +1051,6 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Status) { @@ -1125,9 +1065,6 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -1193,7 +1130,6 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "primary_ip", @@ -1233,14 +1169,12 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "status") delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") - delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go index 5070409e9..7795d684a 100644 --- a/model_virtual_machine_with_config_context_request.go +++ b/model_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,22 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{} // VirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type VirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *ModuleStatusValue `json:"status,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` - Device NullableBriefDeviceRequest `json:"device,omitempty"` - Serial *string `json:"serial,omitempty"` - Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Platform NullableBriefPlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Cluster NullableClusterRequest `json:"cluster,omitempty"` + Device NullableDeviceRequest `json:"device,omitempty"` + Role NullableDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Platform NullablePlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -89,9 +88,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { +func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { if o == nil || IsNil(o.Status) { - var ret ModuleStatusValue + var ret PatchedWritableModuleRequestStatus return ret } return *o.Status @@ -99,7 +98,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -115,15 +114,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. -func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { +// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. +func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { +func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -132,7 +131,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -148,8 +147,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -164,9 +163,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { +func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefClusterRequest + var ret ClusterRequest return ret } return *o.Cluster.Get() @@ -175,7 +174,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterReques // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { if o == nil { return nil, false } @@ -191,8 +190,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { +// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { o.Cluster.Set(&v) } @@ -207,9 +206,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { +func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device.Get() @@ -218,7 +217,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -234,8 +233,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. -func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. +func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { o.Device.Set(&v) } @@ -249,42 +248,10 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextRequest) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string) { - o.Serial = &v -} - // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { +func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefDeviceRoleRequest + var ret DeviceRoleRequest return ret } return *o.Role.Get() @@ -293,7 +260,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleReques // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -309,8 +276,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. -func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { +// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. +func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { o.Role.Set(&v) } @@ -325,9 +292,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { +func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -336,7 +303,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -352,8 +319,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -368,9 +335,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.Platform.Get() @@ -379,7 +346,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequ // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -395,8 +362,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { +// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { o.Platform.Set(&v) } @@ -411,9 +378,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -422,7 +389,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressR // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -438,8 +405,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -454,9 +421,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -465,7 +432,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressR // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -481,8 +448,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -690,9 +657,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -701,7 +668,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfig // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -717,8 +684,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -852,9 +819,6 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{}, if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -945,7 +909,6 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") - delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_vlan.go b/model_vlan.go index 1bae8d24c..434660f55 100644 --- a/model_vlan.go +++ b/model_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the VLAN type satisfies the MappedNullable interface at compile time @@ -21,26 +20,13 @@ var _ MappedNullable = &VLAN{} // VLAN Adds support for custom fields and tags. type VLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Site NullableBriefSite `json:"site,omitempty"` - Group NullableBriefVLANGroup `json:"group,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - Status *IPRangeStatus `json:"status,omitempty"` - Role NullableBriefRole `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - PrefixCount *int64 `json:"prefix_count,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,17 +36,13 @@ type _VLAN VLAN // 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 NewVLAN(id int32, url string, displayUrl string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime) *VLAN { +func NewVLAN(id int32, url string, display string, vid int32, name string) *VLAN { this := VLAN{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Vid = vid this.Name = name - this.L2vpnTermination = l2vpnTermination - this.Created = created - this.LastUpdated = lastUpdated return &this } @@ -120,30 +102,6 @@ func (o *VLAN) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VLAN) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VLAN) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VLAN) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VLAN) GetDisplay() string { if o == nil { @@ -168,92 +126,6 @@ func (o *VLAN) SetDisplay(v string) { o.Display = v } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLAN) GetSite() BriefSite { - if o == nil || IsNil(o.Site.Get()) { - var ret BriefSite - return ret - } - return *o.Site.Get() -} - -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetSiteOk() (*BriefSite, bool) { - if o == nil { - return nil, false - } - return o.Site.Get(), o.Site.IsSet() -} - -// HasSite returns a boolean if a field has been set. -func (o *VLAN) HasSite() bool { - if o != nil && o.Site.IsSet() { - return true - } - - return false -} - -// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. -func (o *VLAN) SetSite(v BriefSite) { - o.Site.Set(&v) -} - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *VLAN) SetSiteNil() { - o.Site.Set(nil) -} - -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *VLAN) UnsetSite() { - o.Site.Unset() -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLAN) GetGroup() BriefVLANGroup { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefVLANGroup - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *VLAN) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefVLANGroup and assigns it to the Group field. -func (o *VLAN) SetGroup(v BriefVLANGroup) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *VLAN) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *VLAN) UnsetGroup() { - o.Group.Unset() -} - // GetVid returns the Vid field value func (o *VLAN) GetVid() int32 { if o == nil { @@ -302,124 +174,6 @@ func (o *VLAN) SetName(v string) { o.Name = v } -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLAN) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *VLAN) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *VLAN) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *VLAN) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *VLAN) UnsetTenant() { - o.Tenant.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *VLAN) GetStatus() IPRangeStatus { - if o == nil || IsNil(o.Status) { - var ret IPRangeStatus - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *VLAN) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given IPRangeStatus and assigns it to the Status field. -func (o *VLAN) SetStatus(v IPRangeStatus) { - o.Status = &v -} - -// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLAN) GetRole() BriefRole { - if o == nil || IsNil(o.Role.Get()) { - var ret BriefRole - return ret - } - return *o.Role.Get() -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetRoleOk() (*BriefRole, bool) { - if o == nil { - return nil, false - } - return o.Role.Get(), o.Role.IsSet() -} - -// HasRole returns a boolean if a field has been set. -func (o *VLAN) HasRole() bool { - if o != nil && o.Role.IsSet() { - return true - } - - return false -} - -// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. -func (o *VLAN) SetRole(v BriefRole) { - o.Role.Set(&v) -} - -// SetRoleNil sets the value for Role to be an explicit nil -func (o *VLAN) SetRoleNil() { - o.Role.Set(nil) -} - -// UnsetRole ensures that no value is present for Role, not even an explicit nil -func (o *VLAN) UnsetRole() { - o.Role.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLAN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -452,212 +206,6 @@ func (o *VLAN) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *VLAN) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLAN) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *VLAN) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *VLAN) SetComments(v string) { - o.Comments = &v -} - -// GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned -func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination { - if o == nil || o.L2vpnTermination.Get() == nil { - var ret BriefL2VPNTermination - return ret - } - - return *o.L2vpnTermination.Get() -} - -// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { - if o == nil { - return nil, false - } - return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() -} - -// SetL2vpnTermination sets field value -func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination) { - o.L2vpnTermination.Set(&v) -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *VLAN) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLAN) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *VLAN) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *VLAN) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *VLAN) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLAN) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *VLAN) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *VLAN) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *VLAN) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *VLAN) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *VLAN) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *VLAN) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. -func (o *VLAN) GetPrefixCount() int64 { - if o == nil || IsNil(o.PrefixCount) { - var ret int64 - return ret - } - return *o.PrefixCount -} - -// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLAN) GetPrefixCountOk() (*int64, bool) { - if o == nil || IsNil(o.PrefixCount) { - return nil, false - } - return o.PrefixCount, true -} - -// HasPrefixCount returns a boolean if a field has been set. -func (o *VLAN) HasPrefixCount() bool { - if o != nil && !IsNil(o.PrefixCount) { - return true - } - - return false -} - -// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. -func (o *VLAN) SetPrefixCount(v int64) { - o.PrefixCount = &v -} - func (o VLAN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -670,43 +218,12 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Role.IsSet() { - toSerialize["role"] = o.Role.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - if !IsNil(o.PrefixCount) { - toSerialize["prefix_count"] = o.PrefixCount - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -722,13 +239,9 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "vid", "name", - "l2vpn_termination", - "created", - "last_updated", } allProperties := make(map[string]interface{}) @@ -760,23 +273,10 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "site") - delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") - delete(additionalProperties, "tenant") - delete(additionalProperties, "status") - delete(additionalProperties, "role") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "l2vpn_termination") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vlan_group.go b/model_vlan_group.go index ad4e70ab7..4ec3a4991 100644 --- a/model_vlan_group.go +++ b/model_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,18 @@ var _ MappedNullable = &VLANGroup{} // VLANGroup Adds support for custom fields and tags. type VLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - Scope interface{} `json:"scope"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope"` + // Lowest permissible ID of a child VLAN + MinVid *int32 `json:"min_vid,omitempty"` + // Highest permissible ID of a child VLAN + MaxVid *int32 `json:"max_vid,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -46,11 +49,10 @@ type _VLANGroup VLANGroup // 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 NewVLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { +func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { this := VLANGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -118,30 +120,6 @@ func (o *VLANGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VLANGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VLANGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VLANGroup) GetDisplay() string { if o == nil { @@ -326,6 +304,70 @@ func (o *VLANGroup) SetScope(v interface{}) { o.Scope = v } +// GetMinVid returns the MinVid field value if set, zero value otherwise. +func (o *VLANGroup) GetMinVid() int32 { + if o == nil || IsNil(o.MinVid) { + var ret int32 + return ret + } + return *o.MinVid +} + +// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANGroup) GetMinVidOk() (*int32, bool) { + if o == nil || IsNil(o.MinVid) { + return nil, false + } + return o.MinVid, true +} + +// HasMinVid returns a boolean if a field has been set. +func (o *VLANGroup) HasMinVid() bool { + if o != nil && !IsNil(o.MinVid) { + return true + } + + return false +} + +// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. +func (o *VLANGroup) SetMinVid(v int32) { + o.MinVid = &v +} + +// GetMaxVid returns the MaxVid field value if set, zero value otherwise. +func (o *VLANGroup) GetMaxVid() int32 { + if o == nil || IsNil(o.MaxVid) { + var ret int32 + return ret + } + return *o.MaxVid +} + +// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANGroup) GetMaxVidOk() (*int32, bool) { + if o == nil || IsNil(o.MaxVid) { + return nil, false + } + return o.MaxVid, true +} + +// HasMaxVid returns a boolean if a field has been set. +func (o *VLANGroup) HasMaxVid() bool { + if o != nil && !IsNil(o.MaxVid) { + return true + } + + return false +} + +// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. +func (o *VLANGroup) SetMaxVid(v int32) { + o.MaxVid = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -534,7 +576,6 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -547,6 +588,12 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { if o.Scope != nil { toSerialize["scope"] = o.Scope } + if !IsNil(o.MinVid) { + toSerialize["min_vid"] = o.MinVid + } + if !IsNil(o.MaxVid) { + toSerialize["max_vid"] = o.MaxVid + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -575,7 +622,6 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", @@ -615,13 +661,14 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") delete(additionalProperties, "scope") + delete(additionalProperties, "min_vid") + delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go index 6971b73e8..fb2c9e458 100644 --- a/model_vlan_group_request.go +++ b/model_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,14 @@ var _ MappedNullable = &VLANGroupRequest{} // VLANGroupRequest Adds support for custom fields and tags. type VLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + // Lowest permissible ID of a child VLAN + MinVid *int32 `json:"min_vid,omitempty"` + // Highest permissible ID of a child VLAN + MaxVid *int32 `json:"max_vid,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -185,6 +189,70 @@ func (o *VLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } +// GetMinVid returns the MinVid field value if set, zero value otherwise. +func (o *VLANGroupRequest) GetMinVid() int32 { + if o == nil || IsNil(o.MinVid) { + var ret int32 + return ret + } + return *o.MinVid +} + +// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool) { + if o == nil || IsNil(o.MinVid) { + return nil, false + } + return o.MinVid, true +} + +// HasMinVid returns a boolean if a field has been set. +func (o *VLANGroupRequest) HasMinVid() bool { + if o != nil && !IsNil(o.MinVid) { + return true + } + + return false +} + +// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. +func (o *VLANGroupRequest) SetMinVid(v int32) { + o.MinVid = &v +} + +// GetMaxVid returns the MaxVid field value if set, zero value otherwise. +func (o *VLANGroupRequest) GetMaxVid() int32 { + if o == nil || IsNil(o.MaxVid) { + var ret int32 + return ret + } + return *o.MaxVid +} + +// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool) { + if o == nil || IsNil(o.MaxVid) { + return nil, false + } + return o.MaxVid, true +} + +// HasMaxVid returns a boolean if a field has been set. +func (o *VLANGroupRequest) HasMaxVid() bool { + if o != nil && !IsNil(o.MaxVid) { + return true + } + + return false +} + +// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. +func (o *VLANGroupRequest) SetMaxVid(v int32) { + o.MaxVid = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -299,6 +367,12 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } + if !IsNil(o.MinVid) { + toSerialize["min_vid"] = o.MinVid + } + if !IsNil(o.MaxVid) { + toSerialize["max_vid"] = o.MaxVid + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -356,6 +430,8 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") + delete(additionalProperties, "min_vid") + delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_request.go b/model_vlan_request.go index 947a6cfae..af65d4166 100644 --- a/model_vlan_request.go +++ b/model_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,10 @@ var _ MappedNullable = &VLANRequest{} // VLANRequest Adds support for custom fields and tags. type VLANRequest struct { - Site NullableBriefSiteRequest `json:"site,omitempty"` - Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Status *IPRangeStatusValue `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,92 +48,6 @@ func NewVLANRequestWithDefaults() *VLANRequest { return &this } -// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLANRequest) GetSite() BriefSiteRequest { - if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest - return ret - } - return *o.Site.Get() -} - -// GetSiteOk returns a tuple with the Site field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { - if o == nil { - return nil, false - } - return o.Site.Get(), o.Site.IsSet() -} - -// HasSite returns a boolean if a field has been set. -func (o *VLANRequest) HasSite() bool { - if o != nil && o.Site.IsSet() { - return true - } - - return false -} - -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *VLANRequest) SetSite(v BriefSiteRequest) { - o.Site.Set(&v) -} - -// SetSiteNil sets the value for Site to be an explicit nil -func (o *VLANRequest) SetSiteNil() { - o.Site.Set(nil) -} - -// UnsetSite ensures that no value is present for Site, not even an explicit nil -func (o *VLANRequest) UnsetSite() { - o.Site.Unset() -} - -// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLANRequest) GetGroup() BriefVLANGroupRequest { - if o == nil || IsNil(o.Group.Get()) { - var ret BriefVLANGroupRequest - return ret - } - return *o.Group.Get() -} - -// GetGroupOk returns a tuple with the Group field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { - if o == nil { - return nil, false - } - return o.Group.Get(), o.Group.IsSet() -} - -// HasGroup returns a boolean if a field has been set. -func (o *VLANRequest) HasGroup() bool { - if o != nil && o.Group.IsSet() { - return true - } - - return false -} - -// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. -func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest) { - o.Group.Set(&v) -} - -// SetGroupNil sets the value for Group to be an explicit nil -func (o *VLANRequest) SetGroupNil() { - o.Group.Set(nil) -} - -// UnsetGroup ensures that no value is present for Group, not even an explicit nil -func (o *VLANRequest) UnsetGroup() { - o.Group.Unset() -} - // GetVid returns the Vid field value func (o *VLANRequest) GetVid() int32 { if o == nil { @@ -190,124 +96,6 @@ func (o *VLANRequest) SetName(v string) { o.Name = v } -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLANRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *VLANRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *VLANRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *VLANRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *VLANRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetStatus returns the Status field value if set, zero value otherwise. -func (o *VLANRequest) GetStatus() IPRangeStatusValue { - if o == nil || IsNil(o.Status) { - var ret IPRangeStatusValue - return ret - } - return *o.Status -} - -// GetStatusOk returns a tuple with the Status field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool) { - if o == nil || IsNil(o.Status) { - return nil, false - } - return o.Status, true -} - -// HasStatus returns a boolean if a field has been set. -func (o *VLANRequest) HasStatus() bool { - if o != nil && !IsNil(o.Status) { - return true - } - - return false -} - -// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field. -func (o *VLANRequest) SetStatus(v IPRangeStatusValue) { - o.Status = &v -} - -// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VLANRequest) GetRole() BriefRoleRequest { - if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest - return ret - } - return *o.Role.Get() -} - -// GetRoleOk returns a tuple with the Role field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { - if o == nil { - return nil, false - } - return o.Role.Get(), o.Role.IsSet() -} - -// HasRole returns a boolean if a field has been set. -func (o *VLANRequest) HasRole() bool { - if o != nil && o.Role.IsSet() { - return true - } - - return false -} - -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *VLANRequest) SetRole(v BriefRoleRequest) { - o.Role.Set(&v) -} - -// SetRoleNil sets the value for Role to be an explicit nil -func (o *VLANRequest) SetRoleNil() { - o.Role.Set(nil) -} - -// UnsetRole ensures that no value is present for Role, not even an explicit nil -func (o *VLANRequest) UnsetRole() { - o.Role.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -340,102 +128,6 @@ func (o *VLANRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *VLANRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *VLANRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *VLANRequest) SetComments(v string) { - o.Comments = &v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *VLANRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *VLANRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *VLANRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *VLANRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *VLANRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *VLANRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o VLANRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -446,35 +138,11 @@ func (o VLANRequest) MarshalJSON() ([]byte, error) { func (o VLANRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.Site.IsSet() { - toSerialize["site"] = o.Site.Get() - } - if o.Group.IsSet() { - toSerialize["group"] = o.Group.Get() - } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.Status) { - toSerialize["status"] = o.Status - } - if o.Role.IsSet() { - toSerialize["role"] = o.Role.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -519,17 +187,9 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "site") - delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") - delete(additionalProperties, "tenant") - delete(additionalProperties, "status") - delete(additionalProperties, "role") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_vm_interface.go b/model_vm_interface.go index 37fcef23e..ebe068fef 100644 --- a/model_vm_interface.go +++ b/model_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,29 +21,28 @@ var _ MappedNullable = &VMInterface{} // VMInterface Adds support for custom fields and tags. type VMInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - VirtualMachine BriefVirtualMachine `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedVMInterface `json:"parent,omitempty"` - Bridge NullableNestedVMInterface `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` - Mode *InterfaceMode `json:"mode,omitempty"` - UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` - Vrf NullableBriefVRF `json:"vrf,omitempty"` - L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + VirtualMachine VirtualMachine `json:"virtual_machine"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedVMInterface `json:"parent,omitempty"` + Bridge NullableNestedVMInterface `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + Vrf NullableVRF `json:"vrf,omitempty"` + L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` AdditionalProperties map[string]interface{} } @@ -53,11 +52,10 @@ type _VMInterface VMInterface // 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 NewVMInterface(id int32, url string, displayUrl string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { +func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { this := VMInterface{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.VirtualMachine = virtualMachine this.Name = name @@ -125,30 +123,6 @@ func (o *VMInterface) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VMInterface) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VMInterface) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VMInterface) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VMInterface) GetDisplay() string { if o == nil { @@ -174,9 +148,9 @@ func (o *VMInterface) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine { +func (o *VMInterface) GetVirtualMachine() VirtualMachine { if o == nil { - var ret BriefVirtualMachine + var ret VirtualMachine return ret } @@ -185,7 +159,7 @@ func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { +func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { if o == nil { return nil, false } @@ -193,7 +167,7 @@ func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine) { +func (o *VMInterface) SetVirtualMachine(v VirtualMachine) { o.VirtualMachine = v } @@ -490,9 +464,9 @@ func (o *VMInterface) SetMode(v InterfaceMode) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetUntaggedVlan() BriefVLAN { +func (o *VMInterface) GetUntaggedVlan() VLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLAN + var ret VLAN return ret } return *o.UntaggedVlan.Get() @@ -501,7 +475,7 @@ func (o *VMInterface) GetUntaggedVlan() BriefVLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool) { +func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool) { if o == nil { return nil, false } @@ -517,8 +491,8 @@ func (o *VMInterface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. -func (o *VMInterface) SetUntaggedVlan(v BriefVLAN) { +// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. +func (o *VMInterface) SetUntaggedVlan(v VLAN) { o.UntaggedVlan.Set(&v) } @@ -565,9 +539,9 @@ func (o *VMInterface) SetTaggedVlans(v []VLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetVrf() BriefVRF { +func (o *VMInterface) GetVrf() VRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRF + var ret VRF return ret } return *o.Vrf.Get() @@ -576,7 +550,7 @@ func (o *VMInterface) GetVrf() BriefVRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetVrfOk() (*BriefVRF, bool) { +func (o *VMInterface) GetVrfOk() (*VRF, bool) { if o == nil { return nil, false } @@ -592,8 +566,8 @@ func (o *VMInterface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. -func (o *VMInterface) SetVrf(v BriefVRF) { +// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. +func (o *VMInterface) SetVrf(v VRF) { o.Vrf.Set(&v) } @@ -608,10 +582,10 @@ func (o *VMInterface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned -func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination { +// If the value is explicit nil, the zero value for L2VPNTermination will be returned +func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret BriefL2VPNTermination + var ret L2VPNTermination return ret } @@ -621,7 +595,7 @@ func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { +func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { if o == nil { return nil, false } @@ -629,7 +603,7 @@ func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination) { +func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination) { o.L2vpnTermination.Set(&v) } @@ -809,7 +783,6 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -869,7 +842,6 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "virtual_machine", "name", @@ -909,7 +881,6 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go index 43993f9bf..17f56f869 100644 --- a/model_vm_interface_request.go +++ b/model_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &VMInterfaceRequest{} // VMInterfaceRequest Adds support for custom fields and tags. type VMInterfaceRequest struct { - VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` + VirtualMachine VirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type VMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *InterfaceModeValue `json:"mode,omitempty"` - UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _VMInterfaceRequest VMInterfaceRequest // 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 NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *VMInterfaceRequest { +func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *VMInterfaceRequest { this := VMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, } // SetVirtualMachine sets field value -func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { +func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { +func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. -func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. +func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest { +func (o *VMInterfaceRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *VMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *VMInterfaceRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } diff --git a/model_vrf.go b/model_vrf.go index c28225847..e060fd153 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the VRF type satisfies the MappedNullable interface at compile time @@ -21,26 +20,14 @@ var _ MappedNullable = &VRF{} // VRF Adds support for custom fields and tags. type VRF struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - // Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ImportTargets []RouteTarget `json:"import_targets,omitempty"` - ExportTargets []RouteTarget `json:"export_targets,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - IpaddressCount int64 `json:"ipaddress_count"` - PrefixCount *int64 `json:"prefix_count,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,16 +37,12 @@ type _VRF VRF // 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 NewVRF(id int32, url string, displayUrl string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64) *VRF { +func NewVRF(id int32, url string, display string, name string) *VRF { this := VRF{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name - this.Created = created - this.LastUpdated = lastUpdated - this.IpaddressCount = ipaddressCount return &this } @@ -119,30 +102,6 @@ func (o *VRF) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *VRF) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *VRF) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *VRF) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *VRF) GetDisplay() string { if o == nil { @@ -234,81 +193,6 @@ func (o *VRF) UnsetRd() { o.Rd.Unset() } -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VRF) GetTenant() BriefTenant { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VRF) GetTenantOk() (*BriefTenant, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *VRF) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *VRF) SetTenant(v BriefTenant) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *VRF) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *VRF) UnsetTenant() { - o.Tenant.Unset() -} - -// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. -func (o *VRF) GetEnforceUnique() bool { - if o == nil || IsNil(o.EnforceUnique) { - var ret bool - return ret - } - return *o.EnforceUnique -} - -// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRF) GetEnforceUniqueOk() (*bool, bool) { - if o == nil || IsNil(o.EnforceUnique) { - return nil, false - } - return o.EnforceUnique, true -} - -// HasEnforceUnique returns a boolean if a field has been set. -func (o *VRF) HasEnforceUnique() bool { - if o != nil && !IsNil(o.EnforceUnique) { - return true - } - - return false -} - -// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. -func (o *VRF) SetEnforceUnique(v bool) { - o.EnforceUnique = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRF) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -341,242 +225,6 @@ func (o *VRF) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *VRF) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRF) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *VRF) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *VRF) SetComments(v string) { - o.Comments = &v -} - -// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. -func (o *VRF) GetImportTargets() []RouteTarget { - if o == nil || IsNil(o.ImportTargets) { - var ret []RouteTarget - return ret - } - return o.ImportTargets -} - -// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRF) GetImportTargetsOk() ([]RouteTarget, bool) { - if o == nil || IsNil(o.ImportTargets) { - return nil, false - } - return o.ImportTargets, true -} - -// HasImportTargets returns a boolean if a field has been set. -func (o *VRF) HasImportTargets() bool { - if o != nil && !IsNil(o.ImportTargets) { - return true - } - - return false -} - -// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. -func (o *VRF) SetImportTargets(v []RouteTarget) { - o.ImportTargets = v -} - -// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. -func (o *VRF) GetExportTargets() []RouteTarget { - if o == nil || IsNil(o.ExportTargets) { - var ret []RouteTarget - return ret - } - return o.ExportTargets -} - -// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRF) GetExportTargetsOk() ([]RouteTarget, bool) { - if o == nil || IsNil(o.ExportTargets) { - return nil, false - } - return o.ExportTargets, true -} - -// HasExportTargets returns a boolean if a field has been set. -func (o *VRF) HasExportTargets() bool { - if o != nil && !IsNil(o.ExportTargets) { - return true - } - - return false -} - -// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. -func (o *VRF) SetExportTargets(v []RouteTarget) { - o.ExportTargets = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *VRF) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRF) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *VRF) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *VRF) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *VRF) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRF) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *VRF) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *VRF) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *VRF) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VRF) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *VRF) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *VRF) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VRF) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *VRF) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - -// GetIpaddressCount returns the IpaddressCount field value -func (o *VRF) GetIpaddressCount() int64 { - if o == nil { - var ret int64 - return ret - } - - return o.IpaddressCount -} - -// GetIpaddressCountOk returns a tuple with the IpaddressCount field value -// and a boolean to check if the value has been set. -func (o *VRF) GetIpaddressCountOk() (*int64, bool) { - if o == nil { - return nil, false - } - return &o.IpaddressCount, true -} - -// SetIpaddressCount sets field value -func (o *VRF) SetIpaddressCount(v int64) { - o.IpaddressCount = v -} - // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *VRF) GetPrefixCount() int64 { if o == nil || IsNil(o.PrefixCount) { @@ -621,39 +269,14 @@ func (o VRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.EnforceUnique) { - toSerialize["enforce_unique"] = o.EnforceUnique - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.ImportTargets) { - toSerialize["import_targets"] = o.ImportTargets - } - if !IsNil(o.ExportTargets) { - toSerialize["export_targets"] = o.ExportTargets - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["ipaddress_count"] = o.IpaddressCount if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -672,12 +295,8 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", - "created", - "last_updated", - "ipaddress_count", } allProperties := make(map[string]interface{}) @@ -709,21 +328,10 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "rd") - delete(additionalProperties, "tenant") - delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "import_targets") - delete(additionalProperties, "export_targets") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") - delete(additionalProperties, "ipaddress_count") delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vrf_request.go b/model_vrf_request.go index d6afc35a6..16ae86557 100644 --- a/model_vrf_request.go +++ b/model_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,16 +22,8 @@ var _ MappedNullable = &VRFRequest{} type VRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - // Prevent duplicate prefixes/IP addresses within this VRF - EnforceUnique *bool `json:"enforce_unique,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -122,81 +114,6 @@ func (o *VRFRequest) UnsetRd() { o.Rd.Unset() } -// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VRFRequest) GetTenant() BriefTenantRequest { - if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest - return ret - } - return *o.Tenant.Get() -} - -// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { - if o == nil { - return nil, false - } - return o.Tenant.Get(), o.Tenant.IsSet() -} - -// HasTenant returns a boolean if a field has been set. -func (o *VRFRequest) HasTenant() bool { - if o != nil && o.Tenant.IsSet() { - return true - } - - return false -} - -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *VRFRequest) SetTenant(v BriefTenantRequest) { - o.Tenant.Set(&v) -} - -// SetTenantNil sets the value for Tenant to be an explicit nil -func (o *VRFRequest) SetTenantNil() { - o.Tenant.Set(nil) -} - -// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil -func (o *VRFRequest) UnsetTenant() { - o.Tenant.Unset() -} - -// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. -func (o *VRFRequest) GetEnforceUnique() bool { - if o == nil || IsNil(o.EnforceUnique) { - var ret bool - return ret - } - return *o.EnforceUnique -} - -// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool) { - if o == nil || IsNil(o.EnforceUnique) { - return nil, false - } - return o.EnforceUnique, true -} - -// HasEnforceUnique returns a boolean if a field has been set. -func (o *VRFRequest) HasEnforceUnique() bool { - if o != nil && !IsNil(o.EnforceUnique) { - return true - } - - return false -} - -// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. -func (o *VRFRequest) SetEnforceUnique(v bool) { - o.EnforceUnique = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRFRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -229,166 +146,6 @@ func (o *VRFRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *VRFRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRFRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *VRFRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *VRFRequest) SetComments(v string) { - o.Comments = &v -} - -// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. -func (o *VRFRequest) GetImportTargets() []int32 { - if o == nil || IsNil(o.ImportTargets) { - var ret []int32 - return ret - } - return o.ImportTargets -} - -// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRFRequest) GetImportTargetsOk() ([]int32, bool) { - if o == nil || IsNil(o.ImportTargets) { - return nil, false - } - return o.ImportTargets, true -} - -// HasImportTargets returns a boolean if a field has been set. -func (o *VRFRequest) HasImportTargets() bool { - if o != nil && !IsNil(o.ImportTargets) { - return true - } - - return false -} - -// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. -func (o *VRFRequest) SetImportTargets(v []int32) { - o.ImportTargets = v -} - -// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. -func (o *VRFRequest) GetExportTargets() []int32 { - if o == nil || IsNil(o.ExportTargets) { - var ret []int32 - return ret - } - return o.ExportTargets -} - -// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRFRequest) GetExportTargetsOk() ([]int32, bool) { - if o == nil || IsNil(o.ExportTargets) { - return nil, false - } - return o.ExportTargets, true -} - -// HasExportTargets returns a boolean if a field has been set. -func (o *VRFRequest) HasExportTargets() bool { - if o != nil && !IsNil(o.ExportTargets) { - return true - } - - return false -} - -// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. -func (o *VRFRequest) SetExportTargets(v []int32) { - o.ExportTargets = v -} - -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *VRFRequest) GetTags() []NestedTagRequest { - if o == nil || IsNil(o.Tags) { - var ret []NestedTagRequest - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRFRequest) GetTagsOk() ([]NestedTagRequest, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *VRFRequest) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. -func (o *VRFRequest) SetTags(v []NestedTagRequest) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *VRFRequest) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VRFRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *VRFRequest) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *VRFRequest) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - func (o VRFRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -403,30 +160,9 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) { if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } - if o.Tenant.IsSet() { - toSerialize["tenant"] = o.Tenant.Get() - } - if !IsNil(o.EnforceUnique) { - toSerialize["enforce_unique"] = o.EnforceUnique - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } - if !IsNil(o.ImportTargets) { - toSerialize["import_targets"] = o.ImportTargets - } - if !IsNil(o.ExportTargets) { - toSerialize["export_targets"] = o.ExportTargets - } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -472,14 +208,7 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "rd") - delete(additionalProperties, "tenant") - delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") - delete(additionalProperties, "comments") - delete(additionalProperties, "import_targets") - delete(additionalProperties, "export_targets") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_webhook.go b/model_webhook.go index 326371c87..598066292 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,6 @@ var _ MappedNullable = &Webhook{} type Webhook struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -55,11 +54,10 @@ type _Webhook Webhook // 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 NewWebhook(id int32, url string, displayUrl string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { +func NewWebhook(id int32, url string, display string, name string, payloadUrl string, created NullableTime, lastUpdated NullableTime) *Webhook { this := Webhook{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.PayloadUrl = payloadUrl @@ -124,30 +122,6 @@ func (o *Webhook) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *Webhook) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *Webhook) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *Webhook) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *Webhook) GetDisplay() string { if o == nil { @@ -615,7 +589,6 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -666,7 +639,6 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "payload_url", @@ -703,7 +675,6 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_webhook_request.go b/model_webhook_request.go index d8b2207e7..09152c9ce 100644 --- a/model_webhook_request.go +++ b/model_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_channel.go b/model_wireless_channel.go index 4fd59e089..0950f88f1 100644 --- a/model_wireless_channel.go +++ b/model_wireless_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan.go b/model_wireless_lan.go index 752d00f26..4825664b8 100644 --- a/model_wireless_lan.go +++ b/model_wireless_lan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,23 @@ var _ MappedNullable = &WirelessLAN{} // WirelessLAN Adds support for custom fields and tags. type WirelessLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableBriefWirelessLANGroup `json:"group,omitempty"` - Status *WirelessLANStatus `json:"status,omitempty"` - Vlan NullableBriefVLAN `json:"vlan,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableWirelessLANGroup `json:"group,omitempty"` + Status *WirelessLANStatus `json:"status,omitempty"` + Vlan NullableVLAN `json:"vlan,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -48,11 +47,10 @@ type _WirelessLAN WirelessLAN // 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 NewWirelessLAN(id int32, url string, displayUrl string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { +func NewWirelessLAN(id int32, url string, display string, ssid string, created NullableTime, lastUpdated NullableTime) *WirelessLAN { this := WirelessLAN{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Ssid = ssid this.Created = created @@ -116,30 +114,6 @@ func (o *WirelessLAN) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *WirelessLAN) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *WirelessLAN) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *WirelessLAN) GetDisplay() string { if o == nil { @@ -221,9 +195,9 @@ func (o *WirelessLAN) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup { +func (o *WirelessLAN) GetGroup() WirelessLANGroup { if o == nil || IsNil(o.Group.Get()) { - var ret BriefWirelessLANGroup + var ret WirelessLANGroup return ret } return *o.Group.Get() @@ -232,7 +206,7 @@ func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool) { +func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool) { if o == nil { return nil, false } @@ -248,8 +222,8 @@ func (o *WirelessLAN) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefWirelessLANGroup and assigns it to the Group field. -func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup) { +// SetGroup gets a reference to the given NullableWirelessLANGroup and assigns it to the Group field. +func (o *WirelessLAN) SetGroup(v WirelessLANGroup) { o.Group.Set(&v) } @@ -296,9 +270,9 @@ func (o *WirelessLAN) SetStatus(v WirelessLANStatus) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetVlan() BriefVLAN { +func (o *WirelessLAN) GetVlan() VLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLAN + var ret VLAN return ret } return *o.Vlan.Get() @@ -307,7 +281,7 @@ func (o *WirelessLAN) GetVlan() BriefVLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool) { +func (o *WirelessLAN) GetVlanOk() (*VLAN, bool) { if o == nil { return nil, false } @@ -323,8 +297,8 @@ func (o *WirelessLAN) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. -func (o *WirelessLAN) SetVlan(v BriefVLAN) { +// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. +func (o *WirelessLAN) SetVlan(v VLAN) { o.Vlan.Set(&v) } @@ -339,9 +313,9 @@ func (o *WirelessLAN) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetTenant() BriefTenant { +func (o *WirelessLAN) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -350,7 +324,7 @@ func (o *WirelessLAN) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool) { +func (o *WirelessLAN) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -366,8 +340,8 @@ func (o *WirelessLAN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *WirelessLAN) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *WirelessLAN) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -637,7 +611,6 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["ssid"] = o.Ssid if !IsNil(o.Description) { @@ -690,7 +663,6 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "ssid", "created", @@ -726,7 +698,6 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") delete(additionalProperties, "description") diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go index 09395fd61..7edf6beb1 100644 --- a/model_wireless_lan_auth_cipher.go +++ b/model_wireless_lan_auth_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go index 2cdb9d1d0..212607db6 100644 --- a/model_wireless_lan_auth_cipher_label.go +++ b/model_wireless_lan_auth_cipher_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go index b7e1591f9..e601548bd 100644 --- a/model_wireless_lan_auth_cipher_value.go +++ b/model_wireless_lan_auth_cipher_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go index e9cf5308a..5d67cd317 100644 --- a/model_wireless_lan_auth_type.go +++ b/model_wireless_lan_auth_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go index 4527e03d8..3a804f5bc 100644 --- a/model_wireless_lan_auth_type_label.go +++ b/model_wireless_lan_auth_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go index e2b5c5c7c..aa1b05122 100644 --- a/model_wireless_lan_auth_type_value.go +++ b/model_wireless_lan_auth_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go index 1d5ad82d6..ca2ffb94f 100644 --- a/model_wireless_lan_group.go +++ b/model_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,7 +13,6 @@ package netbox import ( "encoding/json" "fmt" - "time" ) // checks if the WirelessLANGroup type satisfies the MappedNullable interface at compile time @@ -21,20 +20,14 @@ var _ MappedNullable = &WirelessLANGroup{} // WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. type WirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -44,16 +37,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, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug - this.Created = created - this.LastUpdated = lastUpdated this.WirelesslanCount = wirelesslanCount this.Depth = depth return &this @@ -115,30 +105,6 @@ func (o *WirelessLANGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *WirelessLANGroup) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *WirelessLANGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *WirelessLANGroup) GetDisplay() string { if o == nil { @@ -211,49 +177,6 @@ func (o *WirelessLANGroup) SetSlug(v string) { o.Slug = v } -// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup { - if o == nil || IsNil(o.Parent.Get()) { - var ret NestedWirelessLANGroup - return ret - } - return *o.Parent.Get() -} - -// GetParentOk returns a tuple with the Parent field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool) { - if o == nil { - return nil, false - } - return o.Parent.Get(), o.Parent.IsSet() -} - -// HasParent returns a boolean if a field has been set. -func (o *WirelessLANGroup) HasParent() bool { - if o != nil && o.Parent.IsSet() { - return true - } - - return false -} - -// SetParent gets a reference to the given NullableNestedWirelessLANGroup and assigns it to the Parent field. -func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup) { - o.Parent.Set(&v) -} - -// SetParentNil sets the value for Parent to be an explicit nil -func (o *WirelessLANGroup) SetParentNil() { - o.Parent.Set(nil) -} - -// UnsetParent ensures that no value is present for Parent, not even an explicit nil -func (o *WirelessLANGroup) UnsetParent() { - o.Parent.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -286,122 +209,6 @@ func (o *WirelessLANGroup) SetDescription(v string) { o.Description = &v } -// GetTags returns the Tags field value if set, zero value otherwise. -func (o *WirelessLANGroup) GetTags() []NestedTag { - if o == nil || IsNil(o.Tags) { - var ret []NestedTag - return ret - } - return o.Tags -} - -// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WirelessLANGroup) GetTagsOk() ([]NestedTag, bool) { - if o == nil || IsNil(o.Tags) { - return nil, false - } - return o.Tags, true -} - -// HasTags returns a boolean if a field has been set. -func (o *WirelessLANGroup) HasTags() bool { - if o != nil && !IsNil(o.Tags) { - return true - } - - return false -} - -// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. -func (o *WirelessLANGroup) SetTags(v []NestedTag) { - o.Tags = v -} - -// GetCustomFields returns the CustomFields field value if set, zero value otherwise. -func (o *WirelessLANGroup) GetCustomFields() map[string]interface{} { - if o == nil || IsNil(o.CustomFields) { - var ret map[string]interface{} - return ret - } - return o.CustomFields -} - -// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WirelessLANGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { - if o == nil || IsNil(o.CustomFields) { - return map[string]interface{}{}, false - } - return o.CustomFields, true -} - -// HasCustomFields returns a boolean if a field has been set. -func (o *WirelessLANGroup) HasCustomFields() bool { - if o != nil && !IsNil(o.CustomFields) { - return true - } - - return false -} - -// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. -func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{}) { - o.CustomFields = v -} - -// GetCreated returns the Created field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *WirelessLANGroup) GetCreated() time.Time { - if o == nil || o.Created.Get() == nil { - var ret time.Time - return ret - } - - return *o.Created.Get() -} - -// GetCreatedOk returns a tuple with the Created field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.Created.Get(), o.Created.IsSet() -} - -// SetCreated sets field value -func (o *WirelessLANGroup) SetCreated(v time.Time) { - o.Created.Set(&v) -} - -// GetLastUpdated returns the LastUpdated field value -// If the value is explicit nil, the zero value for time.Time will be returned -func (o *WirelessLANGroup) GetLastUpdated() time.Time { - if o == nil || o.LastUpdated.Get() == nil { - var ret time.Time - return ret - } - - return *o.LastUpdated.Get() -} - -// GetLastUpdatedOk returns a tuple with the LastUpdated field value -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool) { - if o == nil { - return nil, false - } - return o.LastUpdated.Get(), o.LastUpdated.IsSet() -} - -// SetLastUpdated sets field value -func (o *WirelessLANGroup) SetLastUpdated(v time.Time) { - o.LastUpdated.Set(&v) -} - // GetWirelesslanCount returns the WirelesslanCount field value func (o *WirelessLANGroup) GetWirelesslanCount() int32 { if o == nil { @@ -462,24 +269,12 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug - if o.Parent.IsSet() { - toSerialize["parent"] = o.Parent.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Tags) { - toSerialize["tags"] = o.Tags - } - if !IsNil(o.CustomFields) { - toSerialize["custom_fields"] = o.CustomFields - } - toSerialize["created"] = o.Created.Get() - toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["wirelesslan_count"] = o.WirelesslanCount toSerialize["_depth"] = o.Depth @@ -497,12 +292,9 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", - "created", - "last_updated", "wirelesslan_count", "_depth", } @@ -536,16 +328,10 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") - delete(additionalProperties, "parent") delete(additionalProperties, "description") - delete(additionalProperties, "tags") - delete(additionalProperties, "custom_fields") - delete(additionalProperties, "created") - delete(additionalProperties, "last_updated") delete(additionalProperties, "wirelesslan_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go index cc1442843..7063e6d87 100644 --- a/model_wireless_lan_group_request.go +++ b/model_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go index 0126c5a47..f2ac3edde 100644 --- a/model_wireless_lan_request.go +++ b/model_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WirelessLANRequest{} // WirelessLANRequest Adds support for custom fields and tags. type WirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` - Status *WirelessLANStatusValue `json:"status,omitempty"` - Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Status *WirelessLANStatusValue `json:"status,omitempty"` + Vlan NullableVLANRequest `json:"vlan,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *WirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { +func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefWirelessLANGroupRequest + var ret WirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { +func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. -func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. +func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetVlan() BriefVLANRequest { +func (o *WirelessLANRequest) GetVlan() VLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WirelessLANRequest) GetVlan() BriefVLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { +func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. -func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest) { +// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. +func (o *WirelessLANRequest) SetVlan(v VLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetTenant() BriefTenantRequest { +func (o *WirelessLANRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WirelessLANRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WirelessLANRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go index 9c547609a..0b14b4e12 100644 --- a/model_wireless_lan_status.go +++ b/model_wireless_lan_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go index 78bae5b53..21057de6f 100644 --- a/model_wireless_lan_status_label.go +++ b/model_wireless_lan_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go index 2490eda4f..ac9292d67 100644 --- a/model_wireless_lan_status_value.go +++ b/model_wireless_lan_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_link.go b/model_wireless_link.go index 7ace7f837..8626318ea 100644 --- a/model_wireless_link.go +++ b/model_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,23 @@ var _ MappedNullable = &WirelessLink{} // WirelessLink Adds support for custom fields and tags. type WirelessLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - InterfaceA BriefInterface `json:"interface_a"` - InterfaceB BriefInterface `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *CableStatus `json:"status,omitempty"` - Tenant NullableBriefTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Distance NullableFloat64 `json:"distance,omitempty"` - DistanceUnit NullableWirelessLinkDistanceUnit `json:"distance_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + InterfaceA Interface `json:"interface_a"` + InterfaceB Interface `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *WirelessLinkStatus `json:"status,omitempty"` + Tenant NullableTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -50,11 +47,10 @@ type _WirelessLink WirelessLink // 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 NewWirelessLink(id int32, url string, displayUrl string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime) *WirelessLink { +func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime) *WirelessLink { this := WirelessLink{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -119,30 +115,6 @@ func (o *WirelessLink) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value -func (o *WirelessLink) GetDisplayUrl() string { - if o == nil { - var ret string - return ret - } - - return o.DisplayUrl -} - -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value -// and a boolean to check if the value has been set. -func (o *WirelessLink) GetDisplayUrlOk() (*string, bool) { - if o == nil { - return nil, false - } - return &o.DisplayUrl, true -} - -// SetDisplayUrl sets field value -func (o *WirelessLink) SetDisplayUrl(v string) { - o.DisplayUrl = v -} - // GetDisplay returns the Display field value func (o *WirelessLink) GetDisplay() string { if o == nil { @@ -168,9 +140,9 @@ func (o *WirelessLink) SetDisplay(v string) { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLink) GetInterfaceA() BriefInterface { +func (o *WirelessLink) GetInterfaceA() Interface { if o == nil { - var ret BriefInterface + var ret Interface return ret } @@ -179,7 +151,7 @@ func (o *WirelessLink) GetInterfaceA() BriefInterface { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool) { +func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { if o == nil { return nil, false } @@ -187,14 +159,14 @@ func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool) { } // SetInterfaceA sets field value -func (o *WirelessLink) SetInterfaceA(v BriefInterface) { +func (o *WirelessLink) SetInterfaceA(v Interface) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLink) GetInterfaceB() BriefInterface { +func (o *WirelessLink) GetInterfaceB() Interface { if o == nil { - var ret BriefInterface + var ret Interface return ret } @@ -203,7 +175,7 @@ func (o *WirelessLink) GetInterfaceB() BriefInterface { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool) { +func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { if o == nil { return nil, false } @@ -211,7 +183,7 @@ func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool) { } // SetInterfaceB sets field value -func (o *WirelessLink) SetInterfaceB(v BriefInterface) { +func (o *WirelessLink) SetInterfaceB(v Interface) { o.InterfaceB = v } @@ -248,9 +220,9 @@ func (o *WirelessLink) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLink) GetStatus() CableStatus { +func (o *WirelessLink) GetStatus() WirelessLinkStatus { if o == nil || IsNil(o.Status) { - var ret CableStatus + var ret WirelessLinkStatus return ret } return *o.Status @@ -258,7 +230,7 @@ func (o *WirelessLink) GetStatus() CableStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLink) GetStatusOk() (*CableStatus, bool) { +func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -274,15 +246,15 @@ func (o *WirelessLink) HasStatus() bool { return false } -// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. -func (o *WirelessLink) SetStatus(v CableStatus) { +// SetStatus gets a reference to the given WirelessLinkStatus and assigns it to the Status field. +func (o *WirelessLink) SetStatus(v WirelessLinkStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetTenant() BriefTenant { +func (o *WirelessLink) GetTenant() Tenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenant + var ret Tenant return ret } return *o.Tenant.Get() @@ -291,7 +263,7 @@ func (o *WirelessLink) GetTenant() BriefTenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool) { +func (o *WirelessLink) GetTenantOk() (*Tenant, bool) { if o == nil { return nil, false } @@ -307,8 +279,8 @@ func (o *WirelessLink) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. -func (o *WirelessLink) SetTenant(v BriefTenant) { +// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. +func (o *WirelessLink) SetTenant(v Tenant) { o.Tenant.Set(&v) } @@ -418,92 +390,6 @@ func (o *WirelessLink) SetAuthPsk(v string) { o.AuthPsk = &v } -// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetDistance() float64 { - if o == nil || IsNil(o.Distance.Get()) { - var ret float64 - return ret - } - return *o.Distance.Get() -} - -// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLink) GetDistanceOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Distance.Get(), o.Distance.IsSet() -} - -// HasDistance returns a boolean if a field has been set. -func (o *WirelessLink) HasDistance() bool { - if o != nil && o.Distance.IsSet() { - return true - } - - return false -} - -// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. -func (o *WirelessLink) SetDistance(v float64) { - o.Distance.Set(&v) -} - -// SetDistanceNil sets the value for Distance to be an explicit nil -func (o *WirelessLink) SetDistanceNil() { - o.Distance.Set(nil) -} - -// UnsetDistance ensures that no value is present for Distance, not even an explicit nil -func (o *WirelessLink) UnsetDistance() { - o.Distance.Unset() -} - -// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit { - if o == nil || IsNil(o.DistanceUnit.Get()) { - var ret WirelessLinkDistanceUnit - return ret - } - return *o.DistanceUnit.Get() -} - -// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool) { - if o == nil { - return nil, false - } - return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() -} - -// HasDistanceUnit returns a boolean if a field has been set. -func (o *WirelessLink) HasDistanceUnit() bool { - if o != nil && o.DistanceUnit.IsSet() { - return true - } - - return false -} - -// SetDistanceUnit gets a reference to the given NullableWirelessLinkDistanceUnit and assigns it to the DistanceUnit field. -func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit) { - o.DistanceUnit.Set(&v) -} - -// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil -func (o *WirelessLink) SetDistanceUnitNil() { - o.DistanceUnit.Set(nil) -} - -// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil -func (o *WirelessLink) UnsetDistanceUnit() { - o.DistanceUnit.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLink) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -696,7 +582,6 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl toSerialize["display"] = o.Display toSerialize["interface_a"] = o.InterfaceA toSerialize["interface_b"] = o.InterfaceB @@ -718,12 +603,6 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } - if o.Distance.IsSet() { - toSerialize["distance"] = o.Distance.Get() - } - if o.DistanceUnit.IsSet() { - toSerialize["distance_unit"] = o.DistanceUnit.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -753,7 +632,6 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "interface_a", "interface_b", @@ -790,7 +668,6 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") - delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "interface_a") delete(additionalProperties, "interface_b") @@ -800,8 +677,6 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") - delete(additionalProperties, "distance") - delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_distance_unit.go b/model_wireless_link_distance_unit.go index f00dc88c9..6591aa6ae 100644 --- a/model_wireless_link_distance_unit.go +++ b/model_wireless_link_distance_unit.go @@ -19,8 +19,8 @@ var _ MappedNullable = &WirelessLinkDistanceUnit{} // WirelessLinkDistanceUnit struct for WirelessLinkDistanceUnit type WirelessLinkDistanceUnit struct { - Value *PatchedWritableWirelessLinkRequestDistanceUnit `json:"value,omitempty"` - Label *WirelessLinkDistanceUnitLabel `json:"label,omitempty"` + Value *PatchedWritableWirelessLinkRequestDistanceUnit `json:"value,omitempty"` + Label *WirelessLinkDistanceUnitLabel `json:"label,omitempty"` AdditionalProperties map[string]interface{} } @@ -108,7 +108,7 @@ func (o *WirelessLinkDistanceUnit) SetLabel(v WirelessLinkDistanceUnitLabel) { } func (o WirelessLinkDistanceUnit) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -188,5 +188,3 @@ func (v *NullableWirelessLinkDistanceUnit) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_wireless_link_distance_unit_label.go b/model_wireless_link_distance_unit_label.go index beb10239b..b475c01b0 100644 --- a/model_wireless_link_distance_unit_label.go +++ b/model_wireless_link_distance_unit_label.go @@ -21,9 +21,9 @@ type WirelessLinkDistanceUnitLabel string // List of WirelessLink_distance_unit_label const ( WIRELESSLINKDISTANCEUNITLABEL_KILOMETERS WirelessLinkDistanceUnitLabel = "Kilometers" - WIRELESSLINKDISTANCEUNITLABEL_METERS WirelessLinkDistanceUnitLabel = "Meters" - WIRELESSLINKDISTANCEUNITLABEL_MILES WirelessLinkDistanceUnitLabel = "Miles" - WIRELESSLINKDISTANCEUNITLABEL_FEET WirelessLinkDistanceUnitLabel = "Feet" + WIRELESSLINKDISTANCEUNITLABEL_METERS WirelessLinkDistanceUnitLabel = "Meters" + WIRELESSLINKDISTANCEUNITLABEL_MILES WirelessLinkDistanceUnitLabel = "Miles" + WIRELESSLINKDISTANCEUNITLABEL_FEET WirelessLinkDistanceUnitLabel = "Feet" ) // All allowed values of WirelessLinkDistanceUnitLabel enum @@ -112,4 +112,3 @@ func (v *NullableWirelessLinkDistanceUnitLabel) UnmarshalJSON(src []byte) error v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go index 1fbfd1646..ac8afc386 100644 --- a/model_wireless_link_request.go +++ b/model_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,18 @@ var _ MappedNullable = &WirelessLinkRequest{} // WirelessLinkRequest Adds support for custom fields and tags. type WirelessLinkRequest struct { - InterfaceA BriefInterfaceRequest `json:"interface_a"` - InterfaceB BriefInterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *CableStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Distance NullableFloat64 `json:"distance,omitempty"` - DistanceUnit NullableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA InterfaceRequest `json:"interface_a"` + InterfaceB InterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +41,7 @@ type _WirelessLinkRequest WirelessLinkRequest // 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 NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WirelessLinkRequest { +func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WirelessLinkRequest { this := WirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -59,9 +57,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { if o == nil { - var ret BriefInterfaceRequest + var ret InterfaceRequest return ret } @@ -70,7 +68,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { if o == nil { return nil, false } @@ -78,14 +76,14 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { } // SetInterfaceA sets field value -func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { if o == nil { - var ret BriefInterfaceRequest + var ret InterfaceRequest return ret } @@ -94,7 +92,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +100,7 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { } // SetInterfaceB sets field value -func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { o.InterfaceB = v } @@ -139,9 +137,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLinkRequest) GetStatus() CableStatusValue { +func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { if o == nil || IsNil(o.Status) { - var ret CableStatusValue + var ret PatchedWritableCableRequestStatus return ret } return *o.Status @@ -149,7 +147,7 @@ func (o *WirelessLinkRequest) GetStatus() CableStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { +func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -165,15 +163,15 @@ func (o *WirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. -func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. +func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest { +func (o *WirelessLinkRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -182,7 +180,7 @@ func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -198,8 +196,8 @@ func (o *WirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WirelessLinkRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -309,92 +307,6 @@ func (o *WirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } -// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetDistance() float64 { - if o == nil || IsNil(o.Distance.Get()) { - var ret float64 - return ret - } - return *o.Distance.Get() -} - -// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Distance.Get(), o.Distance.IsSet() -} - -// HasDistance returns a boolean if a field has been set. -func (o *WirelessLinkRequest) HasDistance() bool { - if o != nil && o.Distance.IsSet() { - return true - } - - return false -} - -// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. -func (o *WirelessLinkRequest) SetDistance(v float64) { - o.Distance.Set(&v) -} - -// SetDistanceNil sets the value for Distance to be an explicit nil -func (o *WirelessLinkRequest) SetDistanceNil() { - o.Distance.Set(nil) -} - -// UnsetDistance ensures that no value is present for Distance, not even an explicit nil -func (o *WirelessLinkRequest) UnsetDistance() { - o.Distance.Unset() -} - -// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit { - if o == nil || IsNil(o.DistanceUnit.Get()) { - var ret WirelessLinkRequestDistanceUnit - return ret - } - return *o.DistanceUnit.Get() -} - -// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool) { - if o == nil { - return nil, false - } - return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() -} - -// HasDistanceUnit returns a boolean if a field has been set. -func (o *WirelessLinkRequest) HasDistanceUnit() bool { - if o != nil && o.DistanceUnit.IsSet() { - return true - } - - return false -} - -// SetDistanceUnit gets a reference to the given NullableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. -func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit) { - o.DistanceUnit.Set(&v) -} - -// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil -func (o *WirelessLinkRequest) SetDistanceUnitNil() { - o.DistanceUnit.Set(nil) -} - -// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil -func (o *WirelessLinkRequest) UnsetDistanceUnit() { - o.DistanceUnit.Unset() -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -553,12 +465,6 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } - if o.Distance.IsSet() { - toSerialize["distance"] = o.Distance.Get() - } - if o.DistanceUnit.IsSet() { - toSerialize["distance_unit"] = o.DistanceUnit.Get() - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -623,8 +529,6 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") - delete(additionalProperties, "distance") - delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_request_distance_unit.go b/model_wireless_link_request_distance_unit.go index 5a52143b2..3f9a01da0 100644 --- a/model_wireless_link_request_distance_unit.go +++ b/model_wireless_link_request_distance_unit.go @@ -20,10 +20,10 @@ type WirelessLinkRequestDistanceUnit string // List of WirelessLinkRequest_distance_unit const ( - WIRELESSLINKREQUESTDISTANCEUNIT_KM WirelessLinkRequestDistanceUnit = "km" - WIRELESSLINKREQUESTDISTANCEUNIT_M WirelessLinkRequestDistanceUnit = "m" - WIRELESSLINKREQUESTDISTANCEUNIT_MI WirelessLinkRequestDistanceUnit = "mi" - WIRELESSLINKREQUESTDISTANCEUNIT_FT WirelessLinkRequestDistanceUnit = "ft" + WIRELESSLINKREQUESTDISTANCEUNIT_KM WirelessLinkRequestDistanceUnit = "km" + WIRELESSLINKREQUESTDISTANCEUNIT_M WirelessLinkRequestDistanceUnit = "m" + WIRELESSLINKREQUESTDISTANCEUNIT_MI WirelessLinkRequestDistanceUnit = "mi" + WIRELESSLINKREQUESTDISTANCEUNIT_FT WirelessLinkRequestDistanceUnit = "ft" WIRELESSLINKREQUESTDISTANCEUNIT_EMPTY WirelessLinkRequestDistanceUnit = "" ) @@ -114,4 +114,3 @@ func (v *NullableWirelessLinkRequestDistanceUnit) UnmarshalJSON(src []byte) erro v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_wireless_role.go b/model_wireless_role.go index 5fd60fdb3..8aa2042e3 100644 --- a/model_wireless_role.go +++ b/model_wireless_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_wireless_links_list_distance_unit_parameter.go b/model_wireless_wireless_links_list_distance_unit_parameter.go index 9459e0229..9181c220d 100644 --- a/model_wireless_wireless_links_list_distance_unit_parameter.go +++ b/model_wireless_wireless_links_list_distance_unit_parameter.go @@ -22,7 +22,7 @@ type WirelessWirelessLinksListDistanceUnitParameter string const ( WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_FT WirelessWirelessLinksListDistanceUnitParameter = "ft" WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_KM WirelessWirelessLinksListDistanceUnitParameter = "km" - WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_M WirelessWirelessLinksListDistanceUnitParameter = "m" + WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_M WirelessWirelessLinksListDistanceUnitParameter = "m" WIRELESSWIRELESSLINKSLISTDISTANCEUNITPARAMETER_MI WirelessWirelessLinksListDistanceUnitParameter = "mi" ) @@ -112,4 +112,3 @@ func (v *NullableWirelessWirelessLinksListDistanceUnitParameter) UnmarshalJSON(s v.isSet = true return json.Unmarshal(src, &v.value) } - diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go index cd4d087f7..b16c5390b 100644 --- a/model_writable_aggregate_request.go +++ b/model_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableAggregateRequest{} // WritableAggregateRequest Adds support for custom fields and tags. type WritableAggregateRequest struct { - Prefix string `json:"prefix"` - Rir BriefRIRRequest `json:"rir"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir RIRRequest `json:"rir"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableAggregateRequest WritableAggregateRequest // 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 NewWritableAggregateRequest(prefix string, rir BriefRIRRequest) *WritableAggregateRequest { +func NewWritableAggregateRequest(prefix string, rir RIRRequest) *WritableAggregateRequest { this := WritableAggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *WritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *WritableAggregateRequest) GetRir() BriefRIRRequest { +func (o *WritableAggregateRequest) GetRir() RIRRequest { if o == nil { - var ret BriefRIRRequest + var ret RIRRequest return ret } @@ -88,7 +88,7 @@ func (o *WritableAggregateRequest) GetRir() BriefRIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { +func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { } // SetRir sets field value -func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest) { +func (o *WritableAggregateRequest) SetRir(v RIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest { +func (o *WritableAggregateRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *WritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableAggregateRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go index 43d625ff8..7d440df5e 100644 --- a/model_writable_cable_request.go +++ b/model_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableCableRequest{} // WritableCableRequest Adds support for custom fields and tags. type WritableCableRequest struct { - Type *CableType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *CableStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *PatchedWritableCableRequestType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *WritableCableRequest) GetType() CableType { +func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { if o == nil || IsNil(o.Type) { - var ret CableType + var ret PatchedWritableCableRequestType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *WritableCableRequest) GetType() CableType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetTypeOk() (*CableType, bool) { +func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *WritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given CableType and assigns it to the Type field. -func (o *WritableCableRequest) SetType(v CableType) { +// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. +func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCableRequest) GetStatus() CableStatusValue { +func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { if o == nil || IsNil(o.Status) { - var ret CableStatusValue + var ret PatchedWritableCableRequestStatus return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *WritableCableRequest) GetStatus() CableStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { +func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *WritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. -func (o *WritableCableRequest) SetStatus(v CableStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. +func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCableRequest) GetTenant() BriefTenantRequest { +func (o *WritableCableRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *WritableCableRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *WritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableCableRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableCableRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *WritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue { +func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { if o == nil || IsNil(o.LengthUnit) { - var ret CableLengthUnitValue + var ret PatchedWritableCableRequestLengthUnit return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue { // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { +func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *WritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. -func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { +// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { o.LengthUnit = &v } diff --git a/model_writable_circuit_group_assignment_request.go b/model_writable_circuit_group_assignment_request.go index 9a112f8c8..342c33163 100644 --- a/model_writable_circuit_group_assignment_request.go +++ b/model_writable_circuit_group_assignment_request.go @@ -20,10 +20,10 @@ var _ MappedNullable = &WritableCircuitGroupAssignmentRequest{} // WritableCircuitGroupAssignmentRequest Base serializer for group assignments under CircuitSerializer. type WritableCircuitGroupAssignmentRequest struct { - Group BriefCircuitGroupRequest `json:"group"` - Circuit BriefCircuitRequest `json:"circuit"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + Group BriefCircuitGroupRequest `json:"group"` + Circuit BriefCircuitRequest `json:"circuit"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -161,7 +161,7 @@ func (o *WritableCircuitGroupAssignmentRequest) SetTags(v []NestedTagRequest) { } func (o WritableCircuitGroupAssignmentRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -200,10 +200,10 @@ func (o *WritableCircuitGroupAssignmentRequest) UnmarshalJSON(data []byte) (err err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -267,5 +267,3 @@ func (v *NullableWritableCircuitGroupAssignmentRequest) UnmarshalJSON(src []byte v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go index 8d5cd04ff..8b3bc60b2 100644 --- a/model_writable_circuit_request.go +++ b/model_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,20 @@ var _ MappedNullable = &WritableCircuitRequest{} // WritableCircuitRequest Adds support for custom fields and tags. type WritableCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider BriefProviderRequest `json:"provider"` - ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` - Type BriefCircuitTypeRequest `json:"type"` - Status *CircuitStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid string `json:"cid"` + Provider ProviderRequest `json:"provider"` + ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` + Type CircuitTypeRequest `json:"type"` + Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,7 +44,7 @@ type _WritableCircuitRequest WritableCircuitRequest // 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 NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *WritableCircuitRequest { +func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest) *WritableCircuitRequest { this := WritableCircuitRequest{} this.Cid = cid this.Provider = provider @@ -86,9 +85,9 @@ func (o *WritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value -func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest { +func (o *WritableCircuitRequest) GetProvider() ProviderRequest { if o == nil { - var ret BriefProviderRequest + var ret ProviderRequest return ret } @@ -97,7 +96,7 @@ func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { +func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { if o == nil { return nil, false } @@ -105,14 +104,14 @@ func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { } // SetProvider sets field value -func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest) { +func (o *WritableCircuitRequest) SetProvider(v ProviderRequest) { o.Provider = v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { +func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret BriefProviderAccountRequest + var ret ProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -121,7 +120,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountReques // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { +func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -137,8 +136,8 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -153,9 +152,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value -func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest { +func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { if o == nil { - var ret BriefCircuitTypeRequest + var ret CircuitTypeRequest return ret } @@ -164,7 +163,7 @@ func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { +func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { if o == nil { return nil, false } @@ -172,14 +171,14 @@ func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { } // SetType sets field value -func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { +func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest) { o.Type = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue { +func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { if o == nil || IsNil(o.Status) { - var ret CircuitStatusValue + var ret PatchedWritableCircuitRequestStatus return ret } return *o.Status @@ -187,7 +186,7 @@ func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { +func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -203,15 +202,15 @@ func (o *WritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. -func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. +func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest { +func (o *WritableCircuitRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -220,7 +219,7 @@ func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -236,8 +235,8 @@ func (o *WritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableCircuitRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -508,38 +507,6 @@ func (o *WritableCircuitRequest) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } -// GetAssignments returns the Assignments field value if set, zero value otherwise. -func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { - if o == nil || IsNil(o.Assignments) { - var ret []BriefCircuitGroupAssignmentSerializerRequest - return ret - } - return o.Assignments -} - -// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { - if o == nil || IsNil(o.Assignments) { - return nil, false - } - return o.Assignments, true -} - -// HasAssignments returns a boolean if a field has been set. -func (o *WritableCircuitRequest) HasAssignments() bool { - if o != nil && !IsNil(o.Assignments) { - return true - } - - return false -} - -// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. -func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { - o.Assignments = v -} - func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -583,9 +550,6 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } - if !IsNil(o.Assignments) { - toSerialize["assignments"] = o.Assignments - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -644,7 +608,6 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") - delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go index efd188874..25402473e 100644 --- a/model_writable_cluster_request.go +++ b/model_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableClusterRequest{} // WritableClusterRequest Adds support for custom fields and tags. type WritableClusterRequest struct { - Name string `json:"name"` - Type BriefClusterTypeRequest `json:"type"` - Group NullableBriefClusterGroupRequest `json:"group,omitempty"` - Status *ClusterStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Type ClusterTypeRequest `json:"type"` + Group NullableClusterGroupRequest `json:"group,omitempty"` + Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _WritableClusterRequest WritableClusterRequest // 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 NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest) *WritableClusterRequest { +func NewWritableClusterRequest(name string, type_ ClusterTypeRequest) *WritableClusterRequest { this := WritableClusterRequest{} this.Name = name this.Type = type_ @@ -79,9 +79,9 @@ func (o *WritableClusterRequest) SetName(v string) { } // GetType returns the Type field value -func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest { +func (o *WritableClusterRequest) GetType() ClusterTypeRequest { if o == nil { - var ret BriefClusterTypeRequest + var ret ClusterTypeRequest return ret } @@ -90,7 +90,7 @@ func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { +func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { if o == nil { return nil, false } @@ -98,14 +98,14 @@ func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { } // SetType sets field value -func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest) { +func (o *WritableClusterRequest) SetType(v ClusterTypeRequest) { o.Type = v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest { +func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefClusterGroupRequest + var ret ClusterGroupRequest return ret } return *o.Group.Get() @@ -114,7 +114,7 @@ func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { +func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -130,8 +130,8 @@ func (o *WritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. -func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { +// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. +func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest) { o.Group.Set(&v) } @@ -146,9 +146,9 @@ func (o *WritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableClusterRequest) GetStatus() ClusterStatusValue { +func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { if o == nil || IsNil(o.Status) { - var ret ClusterStatusValue + var ret PatchedWritableClusterRequestStatus return ret } return *o.Status @@ -156,7 +156,7 @@ func (o *WritableClusterRequest) GetStatus() ClusterStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { +func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -172,15 +172,15 @@ func (o *WritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. -func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) { +// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. +func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetTenant() BriefTenantRequest { +func (o *WritableClusterRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -189,7 +189,7 @@ func (o *WritableClusterRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *WritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableClusterRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -221,9 +221,9 @@ func (o *WritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetSite() BriefSiteRequest { +func (o *WritableClusterRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -232,7 +232,7 @@ func (o *WritableClusterRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -248,8 +248,8 @@ func (o *WritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *WritableClusterRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *WritableClusterRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go index b71ff3cf4..60b31d0af 100644 --- a/model_writable_console_port_request.go +++ b/model_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsolePortRequest{} // WritableConsolePortRequest Adds support for custom fields and tags. type WritableConsolePortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsolePortRequest WritableConsolePortRequest // 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 NewWritableConsolePortRequest(device BriefDeviceRequest, name string) *WritableConsolePortRequest { +func NewWritableConsolePortRequest(device DeviceRequest, name string) *WritableConsolePortRequest { this := WritableConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsolePortRequestWithDefaults() *WritableConsolePortRequest { } // GetDevice returns the Device field value -func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest { +func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest { +func (o *WritableConsolePortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritableConsolePortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go index 002f475ec..afe73d3de 100644 --- a/model_writable_console_port_template_request.go +++ b/model_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{} // WritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsolePortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsolePortTemplateRequestWithDefaults() *WritableConsolePortTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go index a8696612a..8f1c21baa 100644 --- a/model_writable_console_server_port_request.go +++ b/model_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{} // WritableConsoleServerPortRequest Adds support for custom fields and tags. type WritableConsoleServerPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsoleServerPortRequest WritableConsoleServerPortRequest // 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 NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string) *WritableConsoleServerPortRequest { +func NewWritableConsoleServerPortRequest(device DeviceRequest, name string) *WritableConsoleServerPortRequest { this := WritableConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsoleServerPortRequestWithDefaults() *WritableConsoleServerPor } // GetDevice returns the Device field value -func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { +func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, b } // SetDevice sets field value -func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest { +func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go index 85f79e7ea..74ef741d9 100644 --- a/model_writable_console_server_port_template_request.go +++ b/model_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{} // WritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsoleServerPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsoleServerPortTemplateRequestWithDefaults() *WritableConsoleS } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTy // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTy // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go index 8a6345e79..39fc360da 100644 --- a/model_writable_contact_assignment_request.go +++ b/model_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{} // WritableContactAssignmentRequest Adds support for custom fields and tags. type WritableContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact BriefContactRequest `json:"contact"` - Role NullableBriefContactRoleRequest `json:"role,omitempty"` - Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact ContactRequest `json:"contact"` + Role NullableContactRoleRequest `json:"role,omitempty"` + Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _WritableContactAssignmentRequest WritableContactAssignmentRequest // 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 NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *WritableContactAssignmentRequest { +func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *WritableContactAssignmentRequest { this := WritableContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest { +func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { if o == nil { - var ret BriefContactRequest + var ret ContactRequest return ret } @@ -112,7 +112,7 @@ func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { +func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, } // SetContact sets field value -func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest) { +func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { +func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefContactRoleRequest + var ret ContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { +func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *WritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. -func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { +// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. +func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *WritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { +func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { if o == nil || IsNil(o.Priority) { - var ret BriefCircuitGroupAssignmentSerializerPriorityValue + var ret ContactAssignmentPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssign // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { +func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *WritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. -func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { +// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. +func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { o.Priority = &v } diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go index 977ad23bd..18c9c5d25 100644 --- a/model_writable_contact_group_request.go +++ b/model_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go index 598c2535b..204ccffd1 100644 --- a/model_writable_custom_field_choice_set_request.go +++ b/model_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go index 99c206350..5429f4cc5 100644 --- a/model_writable_custom_field_request.go +++ b/model_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,10 +30,8 @@ type WritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // This field is required when creating new objects or editing an existing object. + // If true, this field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` - // The value of this field must be unique for the assigned object - Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -43,8 +41,6 @@ type WritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` - // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). - RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -52,9 +48,9 @@ type WritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -330,38 +326,6 @@ func (o *WritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } -// GetUnique returns the Unique field value if set, zero value otherwise. -func (o *WritableCustomFieldRequest) GetUnique() bool { - if o == nil || IsNil(o.Unique) { - var ret bool - return ret - } - return *o.Unique -} - -// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { - if o == nil || IsNil(o.Unique) { - return nil, false - } - return o.Unique, true -} - -// HasUnique returns a boolean if a field has been set. -func (o *WritableCustomFieldRequest) HasUnique() bool { - if o != nil && !IsNil(o.Unique) { - return true - } - - return false -} - -// SetUnique gets a reference to the given bool and assigns it to the Unique field. -func (o *WritableCustomFieldRequest) SetUnique(v bool) { - o.Unique = &v -} - // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -555,39 +519,6 @@ func (o *WritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } -// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { - if o == nil { - var ret interface{} - return ret - } - return o.RelatedObjectFilter -} - -// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { - if o == nil || IsNil(o.RelatedObjectFilter) { - return nil, false - } - return &o.RelatedObjectFilter, true -} - -// HasRelatedObjectFilter returns a boolean if a field has been set. -func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool { - if o != nil && !IsNil(o.RelatedObjectFilter) { - return true - } - - return false -} - -// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. -func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { - o.RelatedObjectFilter = v -} - // GetWeight returns the Weight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -739,9 +670,9 @@ func (o *WritableCustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { +func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret BriefCustomFieldChoiceSetRequest + var ret CustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -750,7 +681,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetReq // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { +func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -766,8 +697,8 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -843,9 +774,6 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } - if !IsNil(o.Unique) { - toSerialize["unique"] = o.Unique - } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -864,9 +792,6 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } - if o.RelatedObjectFilter != nil { - toSerialize["related_object_filter"] = o.RelatedObjectFilter - } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -937,14 +862,12 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") - delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") - delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go index e358fcfe5..d661bb97c 100644 --- a/model_writable_data_source_request.go +++ b/model_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,10 +25,10 @@ type WritableDataSourceRequest struct { SourceUrl string `json:"source_url"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` - Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -191,6 +191,38 @@ func (o *WritableDataSourceRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -256,38 +288,6 @@ func (o *WritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *WritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *WritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *WritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") + delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") - delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go index 7027cda6e..4275e29a1 100644 --- a/model_writable_device_type_request.go +++ b/model_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{} // WritableDeviceTypeRequest Adds support for custom fields and tags. type WritableDeviceTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Manufacturer ManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,7 +51,7 @@ type _WritableDeviceTypeRequest WritableDeviceTypeRequest // 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 NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { +func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { this := WritableDeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -72,9 +72,9 @@ func NewWritableDeviceTypeRequestWithDefaults() *WritableDeviceTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { +func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { if o == nil { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } @@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -91,14 +91,14 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerReque } // SetManufacturer sets field value -func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { +func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer = v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { +func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -107,7 +107,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { +func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -123,8 +123,8 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. -func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. +func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -422,9 +422,9 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { +func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { if o == nil || IsNil(o.WeightUnit) { - var ret DeviceTypeWeightUnitValue + var ret PatchedWritableDeviceTypeRequestWeightUnit return ret } return *o.WeightUnit @@ -432,7 +432,7 @@ func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { +func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -448,8 +448,8 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. -func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { +// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { o.WeightUnit = &v } diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go index 0f83791c9..ee7fcd1a6 100644 --- a/model_writable_device_with_config_context_request.go +++ b/model_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{} // WritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type WritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType BriefDeviceTypeRequest `json:"device_type"` - Role BriefDeviceRoleRequest `json:"role"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType DeviceTypeRequest `json:"device_type"` + Role DeviceRoleRequest `json:"role"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Platform NullablePlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site BriefSiteRequest `json:"site"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Rack NullableBriefRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face RackFace1 `json:"face"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site SiteRequest `json:"site"` + Location NullableLocationRequest `json:"location,omitempty"` + Rack NullableRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face RackFace1 `json:"face"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _WritableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequ // 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 NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { +func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { this := WritableDeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -125,9 +125,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { if o == nil { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } @@ -136,7 +136,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceType // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -144,14 +144,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDevice } // SetDeviceType sets field value -func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { if o == nil { - var ret BriefDeviceRoleRequest + var ret DeviceRoleRequest return ret } @@ -160,7 +160,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleReques // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -168,14 +168,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRe } // SetRole sets field value -func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { +func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -184,7 +184,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -200,8 +200,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -216,9 +216,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.Platform.Get() @@ -227,7 +227,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequ // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -243,8 +243,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. -func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { +// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. +func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { o.Platform.Set(&v) } @@ -334,9 +334,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { +func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { if o == nil { - var ret BriefSiteRequest + var ret SiteRequest return ret } @@ -345,7 +345,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -353,14 +353,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, } // SetSite sets field value -func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { +func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest + var ret LocationRequest return ret } return *o.Location.Get() @@ -369,7 +369,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequ // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { if o == nil { return nil, false } @@ -385,8 +385,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { +// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. +func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { o.Location.Set(&v) } @@ -401,9 +401,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack.Get() @@ -412,7 +412,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -428,8 +428,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. -func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. +func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { o.Rack.Set(&v) } @@ -661,9 +661,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -672,7 +672,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressR // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -688,8 +688,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -704,9 +704,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -715,7 +715,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressR // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -731,8 +731,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -747,9 +747,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.OobIp.Get() @@ -758,7 +758,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressReques // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -774,8 +774,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. -func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { +// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. +func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { o.OobIp.Set(&v) } @@ -790,9 +790,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { +func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefClusterRequest + var ret ClusterRequest return ret } return *o.Cluster.Get() @@ -801,7 +801,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterReques // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { if o == nil { return nil, false } @@ -817,8 +817,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. -func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { +// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. +func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { o.Cluster.Set(&v) } @@ -833,9 +833,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret BriefVirtualChassisRequest + var ret VirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -844,7 +844,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtua // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -860,8 +860,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1026,9 +1026,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1037,7 +1037,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfig // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1053,8 +1053,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go index d35aaea83..266bff6f0 100644 --- a/model_writable_event_rule_request.go +++ b/model_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,9 +22,17 @@ var _ MappedNullable = &WritableEventRuleRequest{} type WritableEventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - // The types of event which will trigger this rule. - EventTypes []EventRuleEventTypesInner `json:"event_types"` + // Triggers when a matching object is created. + TypeCreate *bool `json:"type_create,omitempty"` + // Triggers when a matching object is updated. + TypeUpdate *bool `json:"type_update,omitempty"` + // Triggers when a matching object is deleted. + TypeDelete *bool `json:"type_delete,omitempty"` + // Triggers when a job for a matching object is started. + TypeJobStart *bool `json:"type_job_start,omitempty"` + // Triggers when a job for a matching object terminates. + TypeJobEnd *bool `json:"type_job_end,omitempty"` + Enabled *bool `json:"enabled,omitempty"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` @@ -42,11 +50,10 @@ type _WritableEventRuleRequest WritableEventRuleRequest // 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 NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string) *WritableEventRuleRequest { +func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string) *WritableEventRuleRequest { this := WritableEventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name - this.EventTypes = eventTypes this.ActionObjectType = actionObjectType return &this } @@ -107,6 +114,166 @@ func (o *WritableEventRuleRequest) SetName(v string) { o.Name = v } +// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. +func (o *WritableEventRuleRequest) GetTypeCreate() bool { + if o == nil || IsNil(o.TypeCreate) { + var ret bool + return ret + } + return *o.TypeCreate +} + +// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeCreate) { + return nil, false + } + return o.TypeCreate, true +} + +// HasTypeCreate returns a boolean if a field has been set. +func (o *WritableEventRuleRequest) HasTypeCreate() bool { + if o != nil && !IsNil(o.TypeCreate) { + return true + } + + return false +} + +// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. +func (o *WritableEventRuleRequest) SetTypeCreate(v bool) { + o.TypeCreate = &v +} + +// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. +func (o *WritableEventRuleRequest) GetTypeUpdate() bool { + if o == nil || IsNil(o.TypeUpdate) { + var ret bool + return ret + } + return *o.TypeUpdate +} + +// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { + if o == nil || IsNil(o.TypeUpdate) { + return nil, false + } + return o.TypeUpdate, true +} + +// HasTypeUpdate returns a boolean if a field has been set. +func (o *WritableEventRuleRequest) HasTypeUpdate() bool { + if o != nil && !IsNil(o.TypeUpdate) { + return true + } + + return false +} + +// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. +func (o *WritableEventRuleRequest) SetTypeUpdate(v bool) { + o.TypeUpdate = &v +} + +// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. +func (o *WritableEventRuleRequest) GetTypeDelete() bool { + if o == nil || IsNil(o.TypeDelete) { + var ret bool + return ret + } + return *o.TypeDelete +} + +// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { + if o == nil || IsNil(o.TypeDelete) { + return nil, false + } + return o.TypeDelete, true +} + +// HasTypeDelete returns a boolean if a field has been set. +func (o *WritableEventRuleRequest) HasTypeDelete() bool { + if o != nil && !IsNil(o.TypeDelete) { + return true + } + + return false +} + +// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. +func (o *WritableEventRuleRequest) SetTypeDelete(v bool) { + o.TypeDelete = &v +} + +// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. +func (o *WritableEventRuleRequest) GetTypeJobStart() bool { + if o == nil || IsNil(o.TypeJobStart) { + var ret bool + return ret + } + return *o.TypeJobStart +} + +// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobStart) { + return nil, false + } + return o.TypeJobStart, true +} + +// HasTypeJobStart returns a boolean if a field has been set. +func (o *WritableEventRuleRequest) HasTypeJobStart() bool { + if o != nil && !IsNil(o.TypeJobStart) { + return true + } + + return false +} + +// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. +func (o *WritableEventRuleRequest) SetTypeJobStart(v bool) { + o.TypeJobStart = &v +} + +// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. +func (o *WritableEventRuleRequest) GetTypeJobEnd() bool { + if o == nil || IsNil(o.TypeJobEnd) { + var ret bool + return ret + } + return *o.TypeJobEnd +} + +// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { + if o == nil || IsNil(o.TypeJobEnd) { + return nil, false + } + return o.TypeJobEnd, true +} + +// HasTypeJobEnd returns a boolean if a field has been set. +func (o *WritableEventRuleRequest) HasTypeJobEnd() bool { + if o != nil && !IsNil(o.TypeJobEnd) { + return true + } + + return false +} + +// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. +func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool) { + o.TypeJobEnd = &v +} + // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableEventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -139,30 +306,6 @@ func (o *WritableEventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } -// GetEventTypes returns the EventTypes field value -func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { - if o == nil { - var ret []EventRuleEventTypesInner - return ret - } - - return o.EventTypes -} - -// GetEventTypesOk returns a tuple with the EventTypes field value -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { - if o == nil { - return nil, false - } - return o.EventTypes, true -} - -// SetEventTypes sets field value -func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { - o.EventTypes = v -} - // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableEventRuleRequest) GetConditions() interface{} { if o == nil { @@ -403,10 +546,24 @@ func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name + if !IsNil(o.TypeCreate) { + toSerialize["type_create"] = o.TypeCreate + } + if !IsNil(o.TypeUpdate) { + toSerialize["type_update"] = o.TypeUpdate + } + if !IsNil(o.TypeDelete) { + toSerialize["type_delete"] = o.TypeDelete + } + if !IsNil(o.TypeJobStart) { + toSerialize["type_job_start"] = o.TypeJobStart + } + if !IsNil(o.TypeJobEnd) { + toSerialize["type_job_end"] = o.TypeJobEnd + } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } - toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -441,7 +598,6 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", - "event_types", "action_object_type", } @@ -474,8 +630,12 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") + delete(additionalProperties, "type_create") + delete(additionalProperties, "type_update") + delete(additionalProperties, "type_delete") + delete(additionalProperties, "type_job_start") + delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") - delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go index cb291dc07..a8fb95366 100644 --- a/model_writable_front_port_request.go +++ b/model_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableFrontPortRequest{} // WritableFrontPortRequest Adds support for custom fields and tags. type WritableFrontPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -44,7 +44,7 @@ type _WritableFrontPortRequest WritableFrontPortRequest // 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 NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { +func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { this := WritableFrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewWritableFrontPortRequestWithDefaults() *WritableFrontPortRequest { } // GetDevice returns the Device field value -func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest { +func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest { +func (o *WritableFrontPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *WritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritableFrontPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go index ddcc416c9..135e41ea9 100644 --- a/model_writable_front_port_template_request.go +++ b/model_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{} // WritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableFrontPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort BriefRearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort RearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableFrontPortTemplateRequest WritableFrontPortTemplateRequest // 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 NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *WritableFrontPortTemplateRequest { +func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *WritableFrontPortTemplateRequest { this := WritableFrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,9 @@ func NewWritableFrontPortTemplateRequestWithDefaults() *WritableFrontPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeReques // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *WritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeReques // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { +func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { if o == nil { - var ret BriefRearPortTemplateRequest + var ret RearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRe // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTempla } // SetRearPort sets field value -func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { +func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { o.RearPort = v } diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go index 6fd5f476e..d734a972d 100644 --- a/model_writable_ike_policy_request.go +++ b/model_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go index 4f4e0d9ed..1783b8e23 100644 --- a/model_writable_ike_proposal_request.go +++ b/model_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go index 35ee2bee8..0cefa53d8 100644 --- a/model_writable_interface_request.go +++ b/model_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &WritableInterfaceRequest{} // WritableInterfaceRequest Adds support for custom fields and tags. type WritableInterfaceRequest struct { - Device BriefDeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type WritableInterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest // 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 NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { +func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { this := WritableInterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest { } // GetDevice returns the Device field value -func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest { +func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *WritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest { +func (o *WritableInterfaceRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *WritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritableInterfaceRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *WritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { +func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { +func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *WritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest { +func (o *WritableInterfaceRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *WritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *WritableInterfaceRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go index 65857c07e..a0d61207c 100644 --- a/model_writable_interface_template_request.go +++ b/model_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{} // WritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableInterfaceTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewWritableInterfaceTemplateRequestWithDefaults() *WritableInterfaceTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeReques // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeReques // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go index 412988972..05fae1d60 100644 --- a/model_writable_ip_address_request.go +++ b/model_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &WritableIPAddressRequest{} // WritableIPAddressRequest Adds support for custom fields and tags. type WritableIPAddressRequest struct { Address string `json:"address"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -83,9 +83,9 @@ func (o *WritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest { +func (o *WritableIPAddressRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -94,7 +94,7 @@ func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *WritableIPAddressRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest { +func (o *WritableIPAddressRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableIPAddressRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go index 5345772df..c93135b4c 100644 --- a/model_writable_ip_range_request.go +++ b/model_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableIPRangeRequest{} type WritableIPRangeRequest struct { StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -105,9 +105,9 @@ func (o *WritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest { +func (o *WritableIPRangeRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *WritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *WritableIPRangeRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *WritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest { +func (o *WritableIPRangeRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableIPRangeRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest { +func (o *WritableIPRangeRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *WritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *WritableIPRangeRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go index bfc816aa8..d6599e673 100644 --- a/model_writable_ip_sec_policy_request.go +++ b/model_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go index eabd409f5..0f60eeb67 100644 --- a/model_writable_ip_sec_profile_request.go +++ b/model_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableIPSecProfileRequest{} // WritableIPSecProfileRequest Adds support for custom fields and tags. type WritableIPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` - IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy IKEPolicyRequest `json:"ike_policy"` + IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableIPSecProfileRequest WritableIPSecProfileRequest // 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 NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *WritableIPSecProfileRequest { +func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *WritableIPSecProfileRequest { this := WritableIPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { if o == nil { - var ret BriefIKEPolicyRequest + var ret IKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, } // SetIkePolicy sets field value -func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { if o == nil { - var ret BriefIPSecPolicyRequest + var ret IPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyReque } // SetIpsecPolicy sets field value -func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go index ab3da503e..f04acc1ab 100644 --- a/model_writable_ip_sec_proposal_request.go +++ b/model_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go index 47b3a478c..ab1c91cc2 100644 --- a/model_writable_journal_entry_request.go +++ b/model_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go index f55bd69f0..64af85b8d 100644 --- a/model_writable_l2_vpn_request.go +++ b/model_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableL2VPNRequest{} // WritableL2VPNRequest Adds support for custom fields and tags. type WritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type BriefL2VPNTypeValue `json:"type"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type L2VPNTypeValue `json:"type"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableL2VPNRequest WritableL2VPNRequest // 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 NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue) *WritableL2VPNRequest { +func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *WritableL2VPNRequest { this := WritableL2VPNRequest{} this.Name = name this.Slug = slug @@ -148,9 +148,9 @@ func (o *WritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value -func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue { +func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { if o == nil { - var ret BriefL2VPNTypeValue + var ret L2VPNTypeValue return ret } @@ -159,7 +159,7 @@ func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { +func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { if o == nil { return nil, false } @@ -167,7 +167,7 @@ func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { } // SetType sets field value -func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { +func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue) { o.Type = v } @@ -300,9 +300,9 @@ func (o *WritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest { +func (o *WritableL2VPNRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -311,7 +311,7 @@ func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -327,8 +327,8 @@ func (o *WritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableL2VPNRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_location_request.go b/model_writable_location_request.go index a62203794..4ee75bbce 100644 --- a/model_writable_location_request.go +++ b/model_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &WritableLocationRequest{} // WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type WritableLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site BriefSiteRequest `json:"site"` - Parent NullableInt32 `json:"parent"` - Status *LocationStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site SiteRequest `json:"site"` + Parent NullableInt32 `json:"parent"` + Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableLocationRequest WritableLocationRequest // 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 NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32) *WritableLocationRequest { +func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32) *WritableLocationRequest { this := WritableLocationRequest{} this.Name = name this.Slug = slug @@ -106,9 +106,9 @@ func (o *WritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value -func (o *WritableLocationRequest) GetSite() BriefSiteRequest { +func (o *WritableLocationRequest) GetSite() SiteRequest { if o == nil { - var ret BriefSiteRequest + var ret SiteRequest return ret } @@ -117,7 +117,7 @@ func (o *WritableLocationRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -125,7 +125,7 @@ func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { } // SetSite sets field value -func (o *WritableLocationRequest) SetSite(v BriefSiteRequest) { +func (o *WritableLocationRequest) SetSite(v SiteRequest) { o.Site = v } @@ -156,9 +156,9 @@ func (o *WritableLocationRequest) SetParent(v int32) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableLocationRequest) GetStatus() LocationStatusValue { +func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { if o == nil || IsNil(o.Status) { - var ret LocationStatusValue + var ret PatchedWritableLocationRequestStatus return ret } return *o.Status @@ -166,7 +166,7 @@ func (o *WritableLocationRequest) GetStatus() LocationStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { +func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -182,15 +182,15 @@ func (o *WritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. -func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) { +// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. +func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableLocationRequest) GetTenant() BriefTenantRequest { +func (o *WritableLocationRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -199,7 +199,7 @@ func (o *WritableLocationRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *WritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableLocationRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_module_request.go b/model_writable_module_request.go index 230253625..83271a51e 100644 --- a/model_writable_module_request.go +++ b/model_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableModuleRequest{} // WritableModuleRequest Adds support for custom fields and tags. type WritableModuleRequest struct { - Device BriefDeviceRequest `json:"device"` - ModuleBay int32 `json:"module_bay"` - ModuleType BriefModuleTypeRequest `json:"module_type"` - Status *ModuleStatusValue `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device DeviceRequest `json:"device"` + ModuleBay int32 `json:"module_bay"` + ModuleType ModuleTypeRequest `json:"module_type"` + Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableModuleRequest WritableModuleRequest // 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 NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest) *WritableModuleRequest { +func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest) *WritableModuleRequest { this := WritableModuleRequest{} this.Device = device this.ModuleBay = moduleBay @@ -57,9 +57,9 @@ func NewWritableModuleRequestWithDefaults() *WritableModuleRequest { } // GetDevice returns the Device field value -func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest { +func (o *WritableModuleRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -76,7 +76,7 @@ func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableModuleRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -105,9 +105,9 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value -func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { if o == nil { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } @@ -116,7 +116,7 @@ func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,14 +124,14 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool } // SetModuleType sets field value -func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { +func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableModuleRequest) GetStatus() ModuleStatusValue { +func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { if o == nil || IsNil(o.Status) { - var ret ModuleStatusValue + var ret PatchedWritableModuleRequestStatus return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *WritableModuleRequest) GetStatus() ModuleStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { +func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,8 +155,8 @@ func (o *WritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. -func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue) { +// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. +func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { o.Status = &v } diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go index 9c89e6398..a321613fe 100644 --- a/model_writable_module_type_request.go +++ b/model_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,16 @@ var _ MappedNullable = &WritableModuleTypeRequest{} // WritableModuleTypeRequest Adds support for custom fields and tags. type WritableModuleTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` + Manufacturer ManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +39,7 @@ type _WritableModuleTypeRequest WritableModuleTypeRequest // 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 NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *WritableModuleTypeRequest { +func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string) *WritableModuleTypeRequest { this := WritableModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -56,9 +55,9 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { +func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { if o == nil { - var ret BriefManufacturerRequest + var ret ManufacturerRequest return ret } @@ -67,7 +66,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { +func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { if o == nil { return nil, false } @@ -75,7 +74,7 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerReque } // SetManufacturer sets field value -func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { +func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { o.Manufacturer = v } @@ -135,38 +134,6 @@ func (o *WritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { - if o == nil || IsNil(o.Airflow) { - var ret ModuleTypeAirflowValue - return ret - } - return *o.Airflow -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { - if o == nil || IsNil(o.Airflow) { - return nil, false - } - return o.Airflow, true -} - -// HasAirflow returns a boolean if a field has been set. -func (o *WritableModuleTypeRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { - return true - } - - return false -} - -// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. -func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { - o.Airflow = &v -} - // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -211,9 +178,9 @@ func (o *WritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { +func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { if o == nil || IsNil(o.WeightUnit) { - var ret DeviceTypeWeightUnitValue + var ret PatchedWritableDeviceTypeRequestWeightUnit return ret } return *o.WeightUnit @@ -221,7 +188,7 @@ func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { +func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -237,8 +204,8 @@ func (o *WritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. -func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { +// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { o.WeightUnit = &v } @@ -385,9 +352,6 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow - } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -453,7 +417,6 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") - delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go index 004f7fec3..3a6fcef64 100644 --- a/model_writable_power_feed_request.go +++ b/model_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerFeedRequest{} // WritablePowerFeedRequest Adds support for custom fields and tags. type WritablePowerFeedRequest struct { - PowerPanel BriefPowerPanelRequest `json:"power_panel"` - Rack NullableBriefRackRequest `json:"rack,omitempty"` + PowerPanel PowerPanelRequest `json:"power_panel"` + Rack NullableRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type WritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _WritablePowerFeedRequest WritablePowerFeedRequest // 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 NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *WritablePowerFeedRequest { +func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string) *WritablePowerFeedRequest { this := WritablePowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewWritablePowerFeedRequestWithDefaults() *WritablePowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { +func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { if o == nil { - var ret BriefPowerPanelRequest + var ret PowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { +func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, b } // SetPowerPanel sets field value -func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { +func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest { +func (o *WritablePowerFeedRequest) GetRack() RackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret BriefRackRequest + var ret RackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { +func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *WritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. -func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest) { +// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. +func (o *WritablePowerFeedRequest) SetRack(v RackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest { +func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *WritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go index fec01de84..024131d9b 100644 --- a/model_writable_power_outlet_request.go +++ b/model_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritablePowerOutletRequest{} // WritablePowerOutletRequest Adds support for custom fields and tags. type WritablePowerOutletRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` + PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _WritablePowerOutletRequest WritablePowerOutletRequest // 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 NewWritablePowerOutletRequest(device BriefDeviceRequest, name string) *WritablePowerOutletRequest { +func NewWritablePowerOutletRequest(device DeviceRequest, name string) *WritablePowerOutletRequest { this := WritablePowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest { } // GetDevice returns the Device field value -func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest { +func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest { +func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *WritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } @@ -213,9 +213,9 @@ func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequest } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { +func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortRequest + var ret PowerPortRequest return ret } return *o.PowerPort.Get() @@ -224,7 +224,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { +func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { if o == nil { return nil, false } @@ -240,8 +240,8 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { +// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go index b2f94c639..d74116d27 100644 --- a/model_writable_power_outlet_template_request.go +++ b/model_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{} // WritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerOutletTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -54,9 +54,9 @@ func NewWritablePowerOutletTemplateRequestWithDefaults() *WritablePowerOutletTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -228,9 +228,9 @@ func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutle } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { +func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret BriefPowerPortTemplateRequest + var ret PowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -239,7 +239,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTempla // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -255,8 +255,8 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go index 446abcb34..1634269d8 100644 --- a/model_writable_power_port_request.go +++ b/model_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritablePowerPortRequest{} // WritablePowerPortRequest Adds support for custom fields and tags. type WritablePowerPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -44,7 +44,7 @@ type _WritablePowerPortRequest WritablePowerPortRequest // 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 NewWritablePowerPortRequest(device BriefDeviceRequest, name string) *WritablePowerPortRequest { +func NewWritablePowerPortRequest(device DeviceRequest, name string) *WritablePowerPortRequest { this := WritablePowerPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritablePowerPortRequestWithDefaults() *WritablePowerPortRequest { } // GetDevice returns the Device field value -func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest { +func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest { +func (o *WritablePowerPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritablePowerPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go index 073b958dd..0f35c5336 100644 --- a/model_writable_power_port_template_request.go +++ b/model_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{} // WritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -56,9 +56,9 @@ func NewWritablePowerPortTemplateRequestWithDefaults() *WritablePowerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeReques // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeReques // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go index 11445a0aa..2b7bd6bba 100644 --- a/model_writable_prefix_request.go +++ b/model_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritablePrefixRequest{} // WritablePrefixRequest Adds support for custom fields and tags. type WritablePrefixRequest struct { Prefix string `json:"prefix"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vlan NullableVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *WritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetSite() BriefSiteRequest { +func (o *WritablePrefixRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *WritablePrefixRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *WritablePrefixRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest { +func (o *WritablePrefixRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *WritablePrefixRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *WritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest { +func (o *WritablePrefixRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *WritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritablePrefixRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *WritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest { +func (o *WritablePrefixRequest) GetVlan() VLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { +func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *WritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. -func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest) { +// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. +func (o *WritablePrefixRequest) SetVlan(v VLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetRole() BriefRoleRequest { +func (o *WritablePrefixRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *WritablePrefixRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *WritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *WritablePrefixRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go index f8f7996e4..fd0dcb924 100644 --- a/model_writable_rack_request.go +++ b/model_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,25 +22,24 @@ var _ MappedNullable = &WritableRackRequest{} type WritableRackRequest struct { Name string `json:"name"` FacilityId NullableString `json:"facility_id,omitempty"` - Site BriefSiteRequest `json:"site"` - Location NullableBriefLocationRequest `json:"location,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site SiteRequest `json:"site"` + Location NullableLocationRequest `json:"location,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Role NullableRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` - FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Type *PatchedWritableRackRequestType `json:"type,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -49,12 +48,11 @@ type WritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -64,7 +62,7 @@ type _WritableRackRequest WritableRackRequest // 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 NewWritableRackRequest(name string, site BriefSiteRequest) *WritableRackRequest { +func NewWritableRackRequest(name string, site SiteRequest) *WritableRackRequest { this := WritableRackRequest{} this.Name = name this.Site = site @@ -147,9 +145,9 @@ func (o *WritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value -func (o *WritableRackRequest) GetSite() BriefSiteRequest { +func (o *WritableRackRequest) GetSite() SiteRequest { if o == nil { - var ret BriefSiteRequest + var ret SiteRequest return ret } @@ -158,7 +156,7 @@ func (o *WritableRackRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -166,14 +164,14 @@ func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { } // SetSite sets field value -func (o *WritableRackRequest) SetSite(v BriefSiteRequest) { +func (o *WritableRackRequest) SetSite(v SiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetLocation() BriefLocationRequest { +func (o *WritableRackRequest) GetLocation() LocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret BriefLocationRequest + var ret LocationRequest return ret } return *o.Location.Get() @@ -182,7 +180,7 @@ func (o *WritableRackRequest) GetLocation() BriefLocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { +func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool) { if o == nil { return nil, false } @@ -198,8 +196,8 @@ func (o *WritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. -func (o *WritableRackRequest) SetLocation(v BriefLocationRequest) { +// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. +func (o *WritableRackRequest) SetLocation(v LocationRequest) { o.Location.Set(&v) } @@ -214,9 +212,9 @@ func (o *WritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetTenant() BriefTenantRequest { +func (o *WritableRackRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -225,7 +223,7 @@ func (o *WritableRackRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -241,8 +239,8 @@ func (o *WritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableRackRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableRackRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -289,9 +287,9 @@ func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetRole() BriefRackRoleRequest { +func (o *WritableRackRequest) GetRole() RackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRackRoleRequest + var ret RackRoleRequest return ret } return *o.Role.Get() @@ -300,7 +298,7 @@ func (o *WritableRackRequest) GetRole() BriefRackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { +func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { if o == nil { return nil, false } @@ -316,8 +314,8 @@ func (o *WritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. -func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest) { +// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. +func (o *WritableRackRequest) SetRole(v RackRoleRequest) { o.Role.Set(&v) } @@ -406,79 +404,36 @@ func (o *WritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest { - if o == nil || IsNil(o.RackType.Get()) { - var ret BriefRackTypeRequest +// GetType returns the Type field value if set, zero value otherwise. +func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType { + if o == nil || IsNil(o.Type) { + var ret PatchedWritableRackRequestType return ret } - return *o.RackType.Get() + return *o.Type } -// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { - if o == nil { - return nil, false - } - return o.RackType.Get(), o.RackType.IsSet() -} - -// HasRackType returns a boolean if a field has been set. -func (o *WritableRackRequest) HasRackType() bool { - if o != nil && o.RackType.IsSet() { - return true - } - - return false -} - -// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. -func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest) { - o.RackType.Set(&v) -} - -// SetRackTypeNil sets the value for RackType to be an explicit nil -func (o *WritableRackRequest) SetRackTypeNil() { - o.RackType.Set(nil) -} - -// UnsetRackType ensures that no value is present for RackType, not even an explicit nil -func (o *WritableRackRequest) UnsetRackType() { - o.RackType.Unset() -} - -// GetFormFactor returns the FormFactor field value if set, zero value otherwise. -func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { - if o == nil || IsNil(o.FormFactor) { - var ret PatchedWritableRackRequestFormFactor - return ret - } - return *o.FormFactor -} - -// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { - if o == nil || IsNil(o.FormFactor) { +func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { + if o == nil || IsNil(o.Type) { return nil, false } - return o.FormFactor, true + return o.Type, true } -// HasFormFactor returns a boolean if a field has been set. -func (o *WritableRackRequest) HasFormFactor() bool { - if o != nil && !IsNil(o.FormFactor) { +// HasType returns a boolean if a field has been set. +func (o *WritableRackRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { return true } return false } -// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. -func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { - o.FormFactor = &v +// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. +func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType) { + o.Type = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -664,9 +619,9 @@ func (o *WritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { +func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { if o == nil || IsNil(o.WeightUnit) { - var ret DeviceTypeWeightUnitValue + var ret PatchedWritableDeviceTypeRequestWeightUnit return ret } return *o.WeightUnit @@ -674,7 +629,7 @@ func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { +func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -690,8 +645,8 @@ func (o *WritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. -func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { +// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { o.WeightUnit = &v } @@ -888,38 +843,6 @@ func (o *WritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } -// GetAirflow returns the Airflow field value if set, zero value otherwise. -func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { - if o == nil || IsNil(o.Airflow) { - var ret PatchedWritableRackRequestAirflow - return ret - } - return *o.Airflow -} - -// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { - if o == nil || IsNil(o.Airflow) { - return nil, false - } - return o.Airflow, true -} - -// HasAirflow returns a boolean if a field has been set. -func (o *WritableRackRequest) HasAirflow() bool { - if o != nil && !IsNil(o.Airflow) { - return true - } - - return false -} - -// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. -func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { - o.Airflow = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1081,11 +1004,8 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if o.RackType.IsSet() { - toSerialize["rack_type"] = o.RackType.Get() - } - if !IsNil(o.FormFactor) { - toSerialize["form_factor"] = o.FormFactor + if !IsNil(o.Type) { + toSerialize["type"] = o.Type } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1120,9 +1040,6 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } - if !IsNil(o.Airflow) { - toSerialize["airflow"] = o.Airflow - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1188,8 +1105,7 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "rack_type") - delete(additionalProperties, "form_factor") + delete(additionalProperties, "type") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1201,7 +1117,6 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") - delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_writable_rack_type_request.go b/model_writable_rack_type_request.go index 6f76991fb..0ad581983 100644 --- a/model_writable_rack_type_request.go +++ b/model_writable_rack_type_request.go @@ -20,12 +20,12 @@ var _ MappedNullable = &WritableRackTypeRequest{} // WritableRackTypeRequest Adds support for custom fields and tags. type WritableRackTypeRequest struct { - Manufacturer BriefManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + FormFactor PatchedWritableRackTypeRequestFormFactor `json:"form_factor"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack @@ -35,17 +35,17 @@ type WritableRackTypeRequest struct { // Outer dimension of rack (width) OuterWidth NullableInt32 `json:"outer_width,omitempty"` // Outer dimension of rack (depth) - OuterDepth NullableInt32 `json:"outer_depth,omitempty"` - OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -360,6 +360,7 @@ func (o *WritableRackTypeRequest) HasOuterWidth() bool { func (o *WritableRackTypeRequest) SetOuterWidth(v int32) { o.OuterWidth.Set(&v) } + // SetOuterWidthNil sets the value for OuterWidth to be an explicit nil func (o *WritableRackTypeRequest) SetOuterWidthNil() { o.OuterWidth.Set(nil) @@ -402,6 +403,7 @@ func (o *WritableRackTypeRequest) HasOuterDepth() bool { func (o *WritableRackTypeRequest) SetOuterDepth(v int32) { o.OuterDepth.Set(&v) } + // SetOuterDepthNil sets the value for OuterDepth to be an explicit nil func (o *WritableRackTypeRequest) SetOuterDepthNil() { o.OuterDepth.Set(nil) @@ -476,6 +478,7 @@ func (o *WritableRackTypeRequest) HasWeight() bool { func (o *WritableRackTypeRequest) SetWeight(v float64) { o.Weight.Set(&v) } + // SetWeightNil sets the value for Weight to be an explicit nil func (o *WritableRackTypeRequest) SetWeightNil() { o.Weight.Set(nil) @@ -518,6 +521,7 @@ func (o *WritableRackTypeRequest) HasMaxWeight() bool { func (o *WritableRackTypeRequest) SetMaxWeight(v int32) { o.MaxWeight.Set(&v) } + // SetMaxWeightNil sets the value for MaxWeight to be an explicit nil func (o *WritableRackTypeRequest) SetMaxWeightNil() { o.MaxWeight.Set(nil) @@ -592,6 +596,7 @@ func (o *WritableRackTypeRequest) HasMountingDepth() bool { func (o *WritableRackTypeRequest) SetMountingDepth(v int32) { o.MountingDepth.Set(&v) } + // SetMountingDepthNil sets the value for MountingDepth to be an explicit nil func (o *WritableRackTypeRequest) SetMountingDepthNil() { o.MountingDepth.Set(nil) @@ -699,7 +704,7 @@ func (o *WritableRackTypeRequest) SetCustomFields(v map[string]interface{}) { } func (o WritableRackTypeRequest) MarshalJSON() ([]byte, error) { - toSerialize,err := o.ToMap() + toSerialize, err := o.ToMap() if err != nil { return []byte{}, err } @@ -781,10 +786,10 @@ func (o *WritableRackTypeRequest) UnmarshalJSON(data []byte) (err error) { err = json.Unmarshal(data, &allProperties) if err != nil { - return err; + return err } - for _, requiredProperty := range(requiredProperties) { + for _, requiredProperty := range requiredProperties { if _, exists := allProperties[requiredProperty]; !exists { return fmt.Errorf("no value given for required property %v", requiredProperty) } @@ -863,5 +868,3 @@ func (v *NullableWritableRackTypeRequest) UnmarshalJSON(src []byte) error { v.isSet = true return json.Unmarshal(src, &v.value) } - - diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go index d7db1446a..0bd5f8acb 100644 --- a/model_writable_rear_port_request.go +++ b/model_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableRearPortRequest{} // WritableRearPortRequest Adds support for custom fields and tags. type WritableRearPortRequest struct { - Device BriefDeviceRequest `json:"device"` - Module NullableBriefModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device DeviceRequest `json:"device"` + Module NullableModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _WritableRearPortRequest WritableRearPortRequest // 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 NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { +func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { this := WritableRearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritableRearPortRequestWithDefaults() *WritableRearPortRequest { } // GetDevice returns the Device field value -func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest { +func (o *WritableRearPortRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableRearPortRequest) SetDevice(v DeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortRequest) GetModule() BriefModuleRequest { +func (o *WritableRearPortRequest) GetModule() ModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret BriefModuleRequest + var ret ModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritableRearPortRequest) GetModule() BriefModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { +func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. -func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest) { +// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. +func (o *WritableRearPortRequest) SetModule(v ModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go index e19a55ebd..68e2467e9 100644 --- a/model_writable_rear_port_template_request.go +++ b/model_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{} // WritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableRearPortTemplateRequest struct { - DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -55,9 +55,9 @@ func NewWritableRearPortTemplateRequestWithDefaults() *WritableRearPortTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { +func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret BriefDeviceTypeRequest + var ret DeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -98,9 +98,9 @@ func (o *WritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { +func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret BriefModuleTypeRequest + var ret ModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -109,7 +109,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_region_request.go b/model_writable_region_request.go index 2cb7a901b..10e3c56c2 100644 --- a/model_writable_region_request.go +++ b/model_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_service_request.go b/model_writable_service_request.go index 83a66a2da..a3150a128 100644 --- a/model_writable_service_request.go +++ b/model_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableServiceRequest{} // WritableServiceRequest Adds support for custom fields and tags. type WritableServiceRequest struct { - Device NullableBriefDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` Ports []int32 `json:"ports"` @@ -56,9 +56,9 @@ func NewWritableServiceRequestWithDefaults() *WritableServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest { +func (o *WritableServiceRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device.Get() @@ -67,7 +67,7 @@ func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. -func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. +func (o *WritableServiceRequest) SetDevice(v DeviceRequest) { o.Device.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -110,7 +110,7 @@ func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go index 75229dffb..c7008f3ed 100644 --- a/model_writable_service_template_request.go +++ b/model_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go index ca6538ca9..b0c4346c1 100644 --- a/model_writable_site_group_request.go +++ b/model_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_request.go b/model_writable_site_request.go index 897915d18..2fcc03600 100644 --- a/model_writable_site_request.go +++ b/model_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritableSiteRequest{} // WritableSiteRequest Adds support for custom fields and tags. type WritableSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *LocationStatusValue `json:"status,omitempty"` - Region NullableBriefRegionRequest `json:"region,omitempty"` - Group NullableBriefSiteGroupRequest `json:"group,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` + Region NullableRegionRequest `json:"region,omitempty"` + Group NullableSiteGroupRequest `json:"group,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -116,9 +116,9 @@ func (o *WritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableSiteRequest) GetStatus() LocationStatusValue { +func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { if o == nil || IsNil(o.Status) { - var ret LocationStatusValue + var ret PatchedWritableLocationRequestStatus return ret } return *o.Status @@ -126,7 +126,7 @@ func (o *WritableSiteRequest) GetStatus() LocationStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { +func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -142,15 +142,15 @@ func (o *WritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. -func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) { +// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. +func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetRegion() BriefRegionRequest { +func (o *WritableSiteRequest) GetRegion() RegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret BriefRegionRequest + var ret RegionRequest return ret } return *o.Region.Get() @@ -159,7 +159,7 @@ func (o *WritableSiteRequest) GetRegion() BriefRegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { +func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. -func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest) { +// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. +func (o *WritableSiteRequest) SetRegion(v RegionRequest) { o.Region.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest { +func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefSiteGroupRequest + var ret SiteGroupRequest return ret } return *o.Group.Get() @@ -202,7 +202,7 @@ func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { +func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. -func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { +// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. +func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest) { o.Group.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetTenant() BriefTenantRequest { +func (o *WritableSiteRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableSiteRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go index fe928af5a..a8b1c1775 100644 --- a/model_writable_tenant_group_request.go +++ b/model_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go index c67ec7182..057faf1f7 100644 --- a/model_writable_tunnel_request.go +++ b/model_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableTunnelRequest{} type WritableTunnelRequest struct { Name string `json:"name"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Group NullableTunnelGroupRequest `json:"group,omitempty"` Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` - IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` TunnelId NullableInt64 `json:"tunnel_id,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { +func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefTunnelGroupRequest + var ret TunnelGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { +func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. -func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { +// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. +func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest) { o.Group.Set(&v) } @@ -179,9 +179,9 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { +func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret BriefIPSecProfileRequest + var ret IPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -190,7 +190,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { +func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -222,9 +222,9 @@ func (o *WritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest { +func (o *WritableTunnelRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -249,8 +249,8 @@ func (o *WritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableTunnelRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go index e329fb56d..ec11b7d2b 100644 --- a/model_writable_tunnel_termination_request.go +++ b/model_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{} // WritableTunnelTerminationRequest Adds support for custom fields and tags. type WritableTunnelTerminationRequest struct { - Tunnel BriefTunnelRequest `json:"tunnel"` + Tunnel TunnelRequest `json:"tunnel"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,7 +36,7 @@ type _WritableTunnelTerminationRequest WritableTunnelTerminationRequest // 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 NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { +func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { this := WritableTunnelTerminationRequest{} this.Tunnel = tunnel this.TerminationType = terminationType @@ -53,9 +53,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio } // GetTunnel returns the Tunnel field value -func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { +func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { if o == nil { - var ret BriefTunnelRequest + var ret TunnelRequest return ret } @@ -64,7 +64,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, b } // SetTunnel sets field value -func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { +func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { o.Tunnel = v } @@ -159,9 +159,9 @@ func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { +func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.OutsideIp.Get() @@ -170,7 +170,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -186,8 +186,8 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. -func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. +func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go index e5263bcde..76b1664be 100644 --- a/model_writable_virtual_chassis_request.go +++ b/model_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go index 09e979b9b..9c16e0e71 100644 --- a/model_writable_virtual_device_context_request.go +++ b/model_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{} // WritableVirtualDeviceContextRequest Adds support for custom fields and tags. type WritableVirtualDeviceContextRequest struct { Name string `json:"name"` - Device BriefDeviceRequest `json:"device"` + Device DeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,7 +40,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest // 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 NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { +func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { this := WritableVirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { +func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { if o == nil { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest } // SetDevice sets field value -func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { +func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { o.Device = v } @@ -148,9 +148,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { +func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequ // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequ // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_writable_virtual_machine_with_config_context_request.go b/model_writable_virtual_machine_with_config_context_request.go index a87525a3f..a24bbacab 100644 --- a/model_writable_virtual_machine_with_config_context_request.go +++ b/model_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,23 +20,22 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{} // WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type WritableVirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *ModuleStatusValue `json:"status,omitempty"` - Site NullableBriefSiteRequest `json:"site,omitempty"` - Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` - Device NullableBriefDeviceRequest `json:"device,omitempty"` - Serial *string `json:"serial,omitempty"` - Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - Platform NullableBriefPlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Cluster NullableClusterRequest `json:"cluster,omitempty"` + Device NullableDeviceRequest `json:"device,omitempty"` + Role NullableDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + Platform NullablePlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -89,9 +88,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { if o == nil || IsNil(o.Status) { - var ret ModuleStatusValue + var ret PatchedWritableModuleRequestStatus return ret } return *o.Status @@ -99,7 +98,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatu // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -115,15 +114,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { +// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -132,7 +131,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequ // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -148,8 +147,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -164,9 +163,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret BriefClusterRequest + var ret ClusterRequest return ret } return *o.Cluster.Get() @@ -175,7 +174,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClust // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { if o == nil { return nil, false } @@ -191,8 +190,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { +// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { o.Cluster.Set(&v) } @@ -207,9 +206,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret BriefDeviceRequest + var ret DeviceRequest return ret } return *o.Device.Get() @@ -218,7 +217,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDevice // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { if o == nil { return nil, false } @@ -234,8 +233,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { +// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { o.Device.Set(&v) } @@ -249,42 +248,10 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } -// GetSerial returns the Serial field value if set, zero value otherwise. -func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string { - if o == nil || IsNil(o.Serial) { - var ret string - return ret - } - return *o.Serial -} - -// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { - if o == nil || IsNil(o.Serial) { - return nil, false - } - return o.Serial, true -} - -// HasSerial returns a boolean if a field has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool { - if o != nil && !IsNil(o.Serial) { - return true - } - - return false -} - -// SetSerial gets a reference to the given string and assigns it to the Serial field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { - o.Serial = &v -} - // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefDeviceRoleRequest + var ret DeviceRoleRequest return ret } return *o.Role.Get() @@ -293,7 +260,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRo // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -309,8 +276,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { +// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { o.Role.Set(&v) } @@ -325,9 +292,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -336,7 +303,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenant // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -352,8 +319,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -368,9 +335,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret BriefPlatformRequest + var ret PlatformRequest return ret } return *o.Platform.Get() @@ -379,7 +346,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlat // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { if o == nil { return nil, false } @@ -395,8 +362,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { +// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { o.Platform.Set(&v) } @@ -411,9 +378,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -422,7 +389,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIP // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -438,8 +405,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -454,9 +421,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret BriefIPAddressRequest + var ret IPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -465,7 +432,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIP // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { if o == nil { return nil, false } @@ -481,8 +448,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -690,9 +657,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret BriefConfigTemplateRequest + var ret ConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -701,7 +668,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() Bri // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -717,8 +684,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo return false } -// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -852,9 +819,6 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } - if !IsNil(o.Serial) { - toSerialize["serial"] = o.Serial - } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -945,7 +909,6 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") - delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go index 167faab20..047e6f389 100644 --- a/model_writable_vlan_request.go +++ b/model_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableVLANRequest{} // WritableVLANRequest Adds support for custom fields and tags. type WritableVLANRequest struct { - Site NullableBriefSiteRequest `json:"site,omitempty"` - Group NullableBriefVLANGroupRequest `json:"group,omitempty"` + Site NullableSiteRequest `json:"site,omitempty"` + Group NullableVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid int32 `json:"vid"` Name string `json:"name"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableBriefRoleRequest `json:"role,omitempty"` + Role NullableRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -57,9 +57,9 @@ func NewWritableVLANRequestWithDefaults() *WritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetSite() BriefSiteRequest { +func (o *WritableVLANRequest) GetSite() SiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret BriefSiteRequest + var ret SiteRequest return ret } return *o.Site.Get() @@ -68,7 +68,7 @@ func (o *WritableVLANRequest) GetSite() BriefSiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { +func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *WritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. -func (o *WritableVLANRequest) SetSite(v BriefSiteRequest) { +// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. +func (o *WritableVLANRequest) SetSite(v SiteRequest) { o.Site.Set(&v) } @@ -100,9 +100,9 @@ func (o *WritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest { +func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefVLANGroupRequest + var ret VLANGroupRequest return ret } return *o.Group.Get() @@ -111,7 +111,7 @@ func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { +func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *WritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. -func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { +// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. +func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest) { o.Group.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetTenant() BriefTenantRequest { +func (o *WritableVLANRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *WritableVLANRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableVLANRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -266,9 +266,9 @@ func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetRole() BriefRoleRequest { +func (o *WritableVLANRequest) GetRole() RoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret BriefRoleRequest + var ret RoleRequest return ret } return *o.Role.Get() @@ -277,7 +277,7 @@ func (o *WritableVLANRequest) GetRole() BriefRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { +func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { if o == nil { return nil, false } @@ -293,8 +293,8 @@ func (o *WritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. -func (o *WritableVLANRequest) SetRole(v BriefRoleRequest) { +// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. +func (o *WritableVLANRequest) SetRole(v RoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go index cc88a8eba..3c0acb800 100644 --- a/model_writable_vm_interface_request.go +++ b/model_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &WritableVMInterfaceRequest{} // WritableVMInterfaceRequest Adds support for custom fields and tags. type WritableVMInterfaceRequest struct { - VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` + VirtualMachine VirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type WritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Vrf NullableVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _WritableVMInterfaceRequest WritableVMInterfaceRequest // 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 NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *WritableVMInterfaceRequest { +func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *WritableVMInterfaceRequest { this := WritableVMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { +func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { if o == nil { - var ret BriefVirtualMachineRequest + var ret VirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequ // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachine } // SetVirtualMachine sets field value -func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { +func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMo } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { +func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { +func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest { +func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret BriefVRFRequest + var ret VRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. -func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { +// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. +func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go index f1bc7bb63..e64cce0c9 100644 --- a/model_writable_wireless_lan_group_request.go +++ b/model_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go index a0d82d6d1..098a33b0b 100644 --- a/model_writable_wireless_lan_request.go +++ b/model_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableWirelessLANRequest{} type WritableWirelessLANRequest struct { Ssid string `json:"ssid"` Description *string `json:"description,omitempty"` - Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableVLANRequest `json:"vlan,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` AuthType *AuthenticationType1 `json:"auth_type,omitempty"` AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { +func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret BriefWirelessLANGroupRequest + var ret WirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { +func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. -func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. +func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANReque } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest { +func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret BriefVLANRequest + var ret VLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { +func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. -func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { +// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. +func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest { +func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go index 6e8a0b55e..84ae70e23 100644 --- a/model_writable_wireless_link_request.go +++ b/model_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,18 @@ var _ MappedNullable = &WritableWirelessLinkRequest{} // WritableWirelessLinkRequest Adds support for custom fields and tags. type WritableWirelessLinkRequest struct { - InterfaceA BriefInterfaceRequest `json:"interface_a"` - InterfaceB BriefInterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *CableStatusValue `json:"status,omitempty"` - Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Distance NullableFloat64 `json:"distance,omitempty"` - DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA InterfaceRequest `json:"interface_a"` + InterfaceB InterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` + Tenant NullableTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType1 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,7 +41,7 @@ type _WritableWirelessLinkRequest WritableWirelessLinkRequest // 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 NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WritableWirelessLinkRequest { +func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WritableWirelessLinkRequest { this := WritableWirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -59,9 +57,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { if o == nil { - var ret BriefInterfaceRequest + var ret InterfaceRequest return ret } @@ -70,7 +68,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { if o == nil { return nil, false } @@ -78,14 +76,14 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, } // SetInterfaceA sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { if o == nil { - var ret BriefInterfaceRequest + var ret InterfaceRequest return ret } @@ -94,7 +92,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +100,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, } // SetInterfaceB sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { o.InterfaceB = v } @@ -139,9 +137,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue { +func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { if o == nil || IsNil(o.Status) { - var ret CableStatusValue + var ret PatchedWritableCableRequestStatus return ret } return *o.Status @@ -149,7 +147,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { +func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -165,15 +163,15 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. -func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) { +// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. +func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest { +func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret BriefTenantRequest + var ret TenantRequest return ret } return *o.Tenant.Get() @@ -182,7 +180,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { +func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { if o == nil { return nil, false } @@ -198,8 +196,8 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { +// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest) { o.Tenant.Set(&v) } @@ -309,81 +307,6 @@ func (o *WritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } -// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLinkRequest) GetDistance() float64 { - if o == nil || IsNil(o.Distance.Get()) { - var ret float64 - return ret - } - return *o.Distance.Get() -} - -// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { - if o == nil { - return nil, false - } - return o.Distance.Get(), o.Distance.IsSet() -} - -// HasDistance returns a boolean if a field has been set. -func (o *WritableWirelessLinkRequest) HasDistance() bool { - if o != nil && o.Distance.IsSet() { - return true - } - - return false -} - -// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. -func (o *WritableWirelessLinkRequest) SetDistance(v float64) { - o.Distance.Set(&v) -} - -// SetDistanceNil sets the value for Distance to be an explicit nil -func (o *WritableWirelessLinkRequest) SetDistanceNil() { - o.Distance.Set(nil) -} - -// UnsetDistance ensures that no value is present for Distance, not even an explicit nil -func (o *WritableWirelessLinkRequest) UnsetDistance() { - o.Distance.Unset() -} - -// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { - if o == nil || IsNil(o.DistanceUnit) { - var ret PatchedWritableWirelessLinkRequestDistanceUnit - return ret - } - return *o.DistanceUnit -} - -// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { - if o == nil || IsNil(o.DistanceUnit) { - return nil, false - } - return o.DistanceUnit, true -} - -// HasDistanceUnit returns a boolean if a field has been set. -func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool { - if o != nil && !IsNil(o.DistanceUnit) { - return true - } - - return false -} - -// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. -func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { - o.DistanceUnit = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -542,12 +465,6 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } - if o.Distance.IsSet() { - toSerialize["distance"] = o.Distance.Get() - } - if !IsNil(o.DistanceUnit) { - toSerialize["distance_unit"] = o.DistanceUnit - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -612,8 +529,6 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") - delete(additionalProperties, "distance") - delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/response.go b/response.go index 41c41c650..d10be0f11 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/scripts/set-versions.sh b/scripts/set-versions.sh index 014d68e64..094f9af5c 100755 --- a/scripts/set-versions.sh +++ b/scripts/set-versions.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -NETBOX_VERSION='latest' +NETBOX_VERSION='4.0.3' NETBOX_DOCKER_VERSION='auto' set -euo pipefail diff --git a/utils.go b/utils.go index 9381f6094..31b2f6c2e 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.0.3 (4.0) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. From 31c90565f62c8957e7b0aa6198ca3bfe279721eb Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Wed, 9 Oct 2024 21:58:33 +0530 Subject: [PATCH 07/16] remove vlan_count as well --- api/openapi.yaml | 2 -- docs/Role.md | 9 +++++++-- docs/VLANGroup.md | 9 +++++++-- model_role.go | 36 ++++++++++++++++++++++-------------- model_vlan_group.go | 36 ++++++++++++++++++++++-------------- scripts/fix-spec.py | 1 + 6 files changed, 59 insertions(+), 34 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 4474f7ddd..226031d47 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -130118,7 +130118,6 @@ components: - name - slug - url - - vlan_count RoleRequest: type: object description: Adds support for custom fields and tags. @@ -131547,7 +131546,6 @@ components: - slug - url - utilization - - vlan_count VLANGroupRequest: type: object description: Adds support for custom fields and tags. diff --git a/docs/Role.md b/docs/Role.md index 2129bc8e4..5f1292314 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] -**VlanCount** | **int64** | | [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewRole -`func NewRole(id int32, url string, display string, name string, slug string, vlanCount int64, ) *Role` +`func NewRole(id int32, url string, display string, name string, slug string, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -201,6 +201,11 @@ and a boolean to check if the value has been set. SetVlanCount sets VlanCount field to given value. +### HasVlanCount + +`func (o *Role) HasVlanCount() bool` + +HasVlanCount 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/docs/VLANGroup.md b/docs/VLANGroup.md index 6df7b1d13..b0b4f79b4 100644 --- a/docs/VLANGroup.md +++ b/docs/VLANGroup.md @@ -19,14 +19,14 @@ Name | Type | Description | Notes **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**VlanCount** | **int64** | | [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] **Utilization** | **string** | | [readonly] ## Methods ### NewVLANGroup -`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string, ) *VLANGroup` +`func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, utilization string, ) *VLANGroup` NewVLANGroup instantiates a new VLANGroup object This constructor will assign default values to properties that have it defined, @@ -445,6 +445,11 @@ and a boolean to check if the value has been set. SetVlanCount sets VlanCount field to given value. +### HasVlanCount + +`func (o *VLANGroup) HasVlanCount() bool` + +HasVlanCount returns a boolean if a field has been set. ### GetUtilization diff --git a/model_role.go b/model_role.go index 7e651644c..0b40bcf08 100644 --- a/model_role.go +++ b/model_role.go @@ -27,7 +27,7 @@ type Role struct { Slug string `json:"slug"` Description *string `json:"description,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` - VlanCount int64 `json:"vlan_count"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _Role Role // 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 NewRole(id int32, url string, display string, name string, slug string, vlanCount int64) *Role { +func NewRole(id int32, url string, display string, name string, slug string) *Role { this := Role{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.VlanCount = vlanCount return &this } @@ -240,28 +239,36 @@ func (o *Role) SetPrefixCount(v int64) { o.PrefixCount = &v } -// GetVlanCount returns the VlanCount field value +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. func (o *Role) GetVlanCount() int64 { - if o == nil { + if o == nil || IsNil(o.VlanCount) { var ret int64 return ret } - - return o.VlanCount + return *o.VlanCount } -// GetVlanCountOk returns a tuple with the VlanCount field value +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Role) GetVlanCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VlanCount) { return nil, false } - return &o.VlanCount, true + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *Role) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false } -// SetVlanCount sets field value +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. func (o *Role) SetVlanCount(v int64) { - o.VlanCount = v + o.VlanCount = &v } func (o Role) MarshalJSON() ([]byte, error) { @@ -285,7 +292,9 @@ func (o Role) ToMap() (map[string]interface{}, error) { if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } - toSerialize["vlan_count"] = o.VlanCount + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -304,7 +313,6 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "vlan_count", } allProperties := make(map[string]interface{}) diff --git a/model_vlan_group.go b/model_vlan_group.go index 4ec3a4991..9f511c80e 100644 --- a/model_vlan_group.go +++ b/model_vlan_group.go @@ -38,7 +38,7 @@ type VLANGroup struct { CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` LastUpdated NullableTime `json:"last_updated"` - VlanCount int64 `json:"vlan_count"` + VlanCount *int64 `json:"vlan_count,omitempty"` Utilization string `json:"utilization"` AdditionalProperties map[string]interface{} } @@ -49,7 +49,7 @@ type _VLANGroup VLANGroup // 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 NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, vlanCount int64, utilization string) *VLANGroup { +func NewVLANGroup(id int32, url string, display string, name string, slug string, scope interface{}, created NullableTime, lastUpdated NullableTime, utilization string) *VLANGroup { this := VLANGroup{} this.Id = id this.Url = url @@ -59,7 +59,6 @@ func NewVLANGroup(id int32, url string, display string, name string, slug string this.Scope = scope this.Created = created this.LastUpdated = lastUpdated - this.VlanCount = vlanCount this.Utilization = utilization return &this } @@ -516,28 +515,36 @@ func (o *VLANGroup) SetLastUpdated(v time.Time) { o.LastUpdated.Set(&v) } -// GetVlanCount returns the VlanCount field value +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. func (o *VLANGroup) GetVlanCount() int64 { - if o == nil { + if o == nil || IsNil(o.VlanCount) { var ret int64 return ret } - - return o.VlanCount + return *o.VlanCount } -// GetVlanCountOk returns a tuple with the VlanCount field value +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *VLANGroup) GetVlanCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VlanCount) { return nil, false } - return &o.VlanCount, true + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *VLANGroup) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false } -// SetVlanCount sets field value +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. func (o *VLANGroup) SetVlanCount(v int64) { - o.VlanCount = v + o.VlanCount = &v } // GetUtilization returns the Utilization field value @@ -605,7 +612,9 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { } toSerialize["created"] = o.Created.Get() toSerialize["last_updated"] = o.LastUpdated.Get() - toSerialize["vlan_count"] = o.VlanCount + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } toSerialize["utilization"] = o.Utilization for key, value := range o.AdditionalProperties { @@ -628,7 +637,6 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { "scope", "created", "last_updated", - "vlan_count", "utilization", } diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index d2dabc4e5..f886f47ab 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -47,6 +47,7 @@ 'device_count', 'virtualmachine_count', 'prefix_count', + 'vlan_count', ] schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] From 5e3eff00a5393ab5ba49a9bf4edd3a100613f396 Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Wed, 9 Oct 2024 22:38:34 +0530 Subject: [PATCH 08/16] remove display_url with 4.1.3 build --- .openapi-generator/FILES | 660 +- api/netbox_docker_version | 2 +- api/netbox_version | 2 +- api/openapi.yaml | 138451 ++++++++++----- api_circuits.go | 4265 +- api_core.go | 1592 +- api_dcim.go | 13977 +- api_extras.go | 8198 +- api_ipam.go | 1706 +- api_schema.go | 2 +- api_status.go | 2 +- api_tenancy.go | 126 +- api_users.go | 312 +- api_virtualization.go | 657 +- api_vpn.go | 2927 +- api_wireless.go | 1151 +- client.go | 4 +- configuration.go | 4 +- docs/ASN.md | 42 +- docs/ASNRange.md | 44 +- docs/ASNRangeRequest.md | 18 +- docs/ASNRequest.md | 16 +- docs/Aggregate.md | 44 +- docs/AggregateRequest.md | 18 +- docs/Authentication.md | 8 +- docs/AuthenticationCipher.md | 8 +- docs/AuthenticationType.md | 4 +- docs/AuthenticationType1.md | 6 +- docs/AvailableIP.md | 10 +- docs/AvailablePrefix.md | 10 +- docs/AvailableVLAN.md | 10 +- docs/Bookmark.md | 10 +- docs/BookmarkRequest.md | 10 +- docs/BriefRole.md | 9 +- docs/BriefVLANGroup.md | 9 +- docs/Cable.md | 406 +- docs/CableRequest.md | 316 + docs/Circuit.md | 504 +- docs/CircuitCircuitTermination.md | 9 +- docs/CircuitGroup.md | 9 +- docs/CircuitGroupAssignment.md | 9 +- docs/CircuitRequest.md | 354 +- docs/CircuitTermination.md | 72 +- docs/CircuitTerminationRequest.md | 26 +- docs/CircuitType.md | 26 + docs/CircuitsAPI.md | 1634 +- docs/Cluster.md | 349 +- docs/ClusterGroup.md | 26 + docs/ClusterRequest.md | 235 +- docs/ClusterType.md | 26 + docs/ConfigContext.md | 44 +- docs/ConfigContextRequest.md | 8 +- docs/ConfigTemplate.md | 277 +- docs/ConfigTemplateRequest.md | 111 +- docs/ConsolePort.md | 86 +- docs/ConsolePortRequest.md | 18 +- docs/ConsolePortTemplate.md | 16 +- docs/ConsolePortTemplateRequest.md | 16 +- docs/ConsoleServerPort.md | 86 +- docs/ConsoleServerPortRequest.md | 18 +- docs/ConsoleServerPortTemplate.md | 16 +- docs/ConsoleServerPortTemplateRequest.md | 16 +- docs/Contact.md | 334 +- docs/ContactAssignment.md | 26 +- docs/ContactAssignmentRequest.md | 26 +- docs/ContactGroup.md | 26 + docs/ContactRequest.md | 244 + docs/ContactRole.md | 142 +- docs/ContactRoleRequest.md | 52 + docs/CoreAPI.md | 331 +- docs/CustomField.md | 98 +- docs/CustomFieldChoiceSet.md | 26 + docs/CustomFieldRequest.md | 72 +- docs/CustomLink.md | 26 + docs/CustomLinkButtonClass.md | 2 +- docs/DataFile.md | 36 +- docs/DataSource.md | 345 +- docs/DataSourceRequest.md | 62 +- docs/DcimAPI.md | 3788 +- docs/Device.md | 138 +- docs/DeviceBay.md | 44 +- docs/DeviceBayRequest.md | 18 +- docs/DeviceBayTemplate.md | 10 +- docs/DeviceBayTemplateRequest.md | 10 +- docs/DeviceRole.md | 230 +- docs/DeviceRoleRequest.md | 8 +- docs/DeviceType.md | 742 +- docs/DeviceTypeRequest.md | 424 +- docs/DeviceWithConfigContext.md | 140 +- docs/DeviceWithConfigContextRequest.md | 106 +- docs/Encryption.md | 8 +- docs/EventRule.md | 179 +- docs/EventRuleActionTypeLabel.md | 2 + docs/EventRuleActionTypeValue.md | 2 + docs/EventRuleRequest.md | 153 +- docs/ExportTemplate.md | 44 +- docs/ExportTemplateRequest.md | 8 +- docs/ExtrasAPI.md | 2954 +- ...trasCustomLinksListButtonClassParameter.md | 4 +- docs/FHRPGroup.md | 275 +- docs/FHRPGroupAssignment.md | 10 +- docs/FHRPGroupAssignmentRequest.md | 10 +- docs/FHRPGroupRequest.md | 166 +- docs/FrontPort.md | 64 +- docs/FrontPortRearPort.md | 26 + docs/FrontPortRequest.md | 18 +- docs/FrontPortTemplate.md | 26 +- docs/FrontPortTemplateRequest.md | 26 +- docs/FrontPortTypeLabel.md | 16 + docs/FrontPortTypeValue.md | 16 + docs/Group.md | 26 + docs/IKEPolicy.md | 35 +- docs/IKEPolicyRequest.md | 9 +- docs/IKEProposal.md | 35 +- docs/IKEProposalRequest.md | 9 +- docs/IPAddress.md | 478 +- docs/IPAddressRequest.md | 336 + docs/IPRange.md | 50 +- docs/IPRangeRequest.md | 24 +- docs/IPSecPolicy.md | 26 + docs/IPSecProfile.md | 44 +- docs/IPSecProfileRequest.md | 18 +- docs/IPSecProposal.md | 26 + docs/ImageAttachment.md | 4 +- docs/ImageAttachmentRequest.md | 44 +- docs/Interface.md | 110 +- docs/InterfaceRequest.md | 34 +- docs/InterfaceTemplate.md | 16 +- docs/InterfaceTemplateRequest.md | 16 +- docs/InterfaceTypeLabel.md | 8 + docs/InterfaceTypeValue.md | 8 + docs/InventoryItem.md | 52 +- docs/InventoryItemRequest.md | 26 +- docs/InventoryItemRole.md | 26 + docs/InventoryItemTemplate.md | 26 +- docs/InventoryItemTemplateRequest.md | 26 +- docs/IpamAPI.md | 480 +- docs/Job.md | 44 +- docs/JournalEntry.md | 26 + docs/L2VPN.md | 264 +- docs/L2VPNRequest.md | 174 +- docs/L2VPNTermination.md | 223 +- docs/L2VPNTerminationRequest.md | 104 +- docs/Location.md | 313 +- docs/LocationRequest.md | 199 +- docs/Manufacturer.md | 184 +- docs/ManufacturerRequest.md | 52 + docs/Module.md | 311 +- docs/ModuleBay.md | 80 +- docs/ModuleBayRequest.md | 54 +- docs/ModuleBayTemplate.md | 61 +- docs/ModuleBayTemplateRequest.md | 61 +- docs/ModuleRequest.md | 223 +- docs/ModuleType.md | 310 +- docs/ModuleTypeRequest.md | 222 +- docs/NestedContactGroup.md | 26 + docs/NestedDevice.md | 26 + docs/NestedGroup.md | 26 + docs/NestedIPAddress.md | 9 +- docs/NestedInterface.md | 26 + docs/NestedLocation.md | 9 +- docs/NestedModuleBay.md | 56 +- docs/NestedModuleBayRequest.md | 36 - docs/NestedProviderAccount.md | 9 +- docs/NestedRegion.md | 26 + docs/NestedSiteGroup.md | 26 + docs/NestedTag.md | 26 + docs/NestedTenantGroup.md | 26 + docs/NestedUser.md | 26 + docs/NestedVMInterface.md | 26 + docs/NestedVirtualMachine.md | 26 + docs/NestedWirelessLANGroup.md | 9 +- docs/NestedWirelessLink.md | 26 + docs/NotificationGroup.md | 9 +- docs/ObjectChange.md | 36 +- docs/ObjectPermission.md | 26 + docs/PatchedASNRangeRequest.md | 16 +- docs/PatchedASNRequest.md | 16 +- docs/PatchedBookmarkRequest.md | 8 +- docs/PatchedCircuitTerminationRequest.md | 24 +- docs/PatchedConfigContextRequest.md | 8 +- docs/PatchedConfigTemplateRequest.md | 8 +- docs/PatchedContactRequest.md | 8 +- docs/PatchedDeviceBayRequest.md | 16 +- docs/PatchedDeviceBayTemplateRequest.md | 8 +- docs/PatchedDeviceRoleRequest.md | 8 +- docs/PatchedExportTemplateRequest.md | 8 +- docs/PatchedFHRPGroupAssignmentRequest.md | 8 +- docs/PatchedFHRPGroupRequest.md | 16 +- docs/PatchedImageAttachmentRequest.md | 52 - docs/PatchedInventoryItemRequest.md | 24 +- docs/PatchedInventoryItemTemplateRequest.md | 24 +- docs/PatchedL2VPNTerminationRequest.md | 8 +- docs/PatchedModuleBayRequest.md | 52 +- docs/PatchedModuleBayTemplateRequest.md | 54 +- docs/PatchedPlatformRequest.md | 16 +- docs/PatchedPowerPanelRequest.md | 16 +- docs/PatchedProviderAccountRequest.md | 8 +- docs/PatchedProviderNetworkRequest.md | 8 +- docs/PatchedRackReservationRequest.md | 24 +- docs/PatchedRouteTargetRequest.md | 8 +- docs/PatchedTenantRequest.md | 8 +- docs/PatchedTokenRequest.md | 8 +- docs/PatchedVLANGroupRequest.md | 52 - docs/PatchedVRFRequest.md | 8 +- docs/PatchedVirtualDiskRequest.md | 8 +- docs/PatchedWritableAggregateRequest.md | 16 +- docs/PatchedWritableCableRequest.md | 32 +- docs/PatchedWritableCircuitRequest.md | 66 +- docs/PatchedWritableClusterRequest.md | 40 +- docs/PatchedWritableConsolePortRequest.md | 16 +- ...tchedWritableConsolePortTemplateRequest.md | 16 +- ...PatchedWritableConsoleServerPortRequest.md | 16 +- ...ritableConsoleServerPortTemplateRequest.md | 16 +- ...PatchedWritableContactAssignmentRequest.md | 24 +- docs/PatchedWritableCustomFieldRequest.md | 72 +- docs/PatchedWritableDataSourceRequest.md | 52 +- docs/PatchedWritableDeviceTypeRequest.md | 24 +- ...dWritableDeviceWithConfigContextRequest.md | 104 +- docs/PatchedWritableEventRuleRequest.md | 154 +- docs/PatchedWritableFrontPortRequest.md | 16 +- ...PatchedWritableFrontPortTemplateRequest.md | 24 +- docs/PatchedWritableIPAddressRequest.md | 16 +- docs/PatchedWritableIPRangeRequest.md | 24 +- docs/PatchedWritableIPSecProfileRequest.md | 16 +- docs/PatchedWritableIPSecProposalRequest.md | 16 +- docs/PatchedWritableInterfaceRequest.md | 48 +- ...PatchedWritableInterfaceTemplateRequest.md | 24 +- docs/PatchedWritableL2VPNRequest.md | 16 +- docs/PatchedWritableLocationRequest.md | 24 +- docs/PatchedWritableModuleRequest.md | 24 +- docs/PatchedWritableModuleTypeRequest.md | 42 +- docs/PatchedWritablePowerFeedRequest.md | 24 +- docs/PatchedWritablePowerOutletRequest.md | 24 +- docs/PatchedWritablePowerOutletRequestType.md | 4 + ...tchedWritablePowerOutletTemplateRequest.md | 24 +- ...dWritablePowerOutletTemplateRequestType.md | 4 + docs/PatchedWritablePowerPortRequest.md | 16 +- docs/PatchedWritablePowerPortRequestType.md | 2 + ...PatchedWritablePowerPortTemplateRequest.md | 16 +- ...hedWritablePowerPortTemplateRequestType.md | 2 + docs/PatchedWritablePrefixRequest.md | 40 +- docs/PatchedWritableRackRequest.md | 128 +- docs/PatchedWritableRearPortRequest.md | 16 +- .../PatchedWritableRearPortTemplateRequest.md | 16 +- docs/PatchedWritableServiceRequest.md | 16 +- docs/PatchedWritableSiteRequest.md | 32 +- docs/PatchedWritableTunnelRequest.md | 24 +- ...PatchedWritableTunnelTerminationRequest.md | 16 +- docs/PatchedWritableVLANRequest.md | 32 +- docs/PatchedWritableVMInterfaceRequest.md | 24 +- ...chedWritableVirtualDeviceContextRequest.md | 32 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/PatchedWritableWirelessLANRequest.md | 40 +- docs/PatchedWritableWirelessLinkRequest.md | 110 +- docs/Platform.md | 214 +- docs/PlatformRequest.md | 124 + docs/PowerFeed.md | 94 +- docs/PowerFeedRequest.md | 26 +- docs/PowerOutlet.md | 94 +- docs/PowerOutletRequest.md | 26 +- docs/PowerOutletRequestType.md | 4 + docs/PowerOutletTemplate.md | 24 +- docs/PowerOutletTemplateRequest.md | 24 +- docs/PowerOutletTypeLabel.md | 4 + docs/PowerPanel.md | 225 +- docs/PowerPanelRequest.md | 137 +- docs/PowerPort.md | 510 +- docs/PowerPortRequest.md | 258 +- docs/PowerPortTemplate.md | 270 +- docs/PowerPortTemplateRequest.md | 206 + docs/Prefix.md | 66 +- docs/PrefixRequest.md | 40 +- docs/Provider.md | 220 +- docs/ProviderAccount.md | 36 +- docs/ProviderAccountRequest.md | 101 +- docs/ProviderNetwork.md | 215 +- docs/ProviderNetworkRequest.md | 127 +- docs/ProviderRequest.md | 130 + docs/RIR.md | 168 +- docs/RIRRequest.md | 78 + docs/Rack.md | 896 +- docs/RackRequest.md | 787 +- docs/RackReservation.md | 52 +- docs/RackReservationRequest.md | 26 +- docs/RackRole.md | 26 + docs/RackType.md | 9 +- docs/RackUnit.md | 10 +- docs/RearPort.md | 64 +- docs/RearPortRequest.md | 18 +- docs/RearPortTemplate.md | 235 +- docs/RearPortTemplateRequest.md | 173 +- docs/Region.md | 26 + docs/Role.md | 168 +- docs/RoleRequest.md | 78 + docs/RouteTarget.md | 34 +- docs/RouteTargetRequest.md | 8 +- docs/SavedFilter.md | 26 + docs/SchemaAPI.md | 2 +- docs/SchemaRetrieveLangParameter.md | 10 + docs/Script.md | 48 +- docs/Service.md | 42 +- docs/ServiceRequest.md | 16 +- docs/ServiceTemplate.md | 26 + docs/Site.md | 660 +- docs/SiteGroup.md | 26 + docs/SiteRequest.md | 424 + docs/Tag.md | 26 + docs/TenancyAPI.md | 108 +- docs/Tenant.md | 434 +- docs/TenantGroup.md | 26 + docs/TenantRequest.md | 114 + docs/Token.md | 36 +- docs/TokenProvision.md | 36 +- docs/TokenRequest.md | 10 +- docs/Tunnel.md | 375 +- docs/TunnelGroup.md | 26 + docs/TunnelRequest.md | 266 +- docs/TunnelTermination.md | 44 +- docs/TunnelTerminationRequest.md | 18 +- docs/User.md | 270 + docs/UserRequest.md | 267 +- docs/UsersAPI.md | 36 +- docs/VLAN.md | 395 +- docs/VLANGroup.md | 78 +- docs/VLANGroupRequest.md | 52 - docs/VLANRequest.md | 248 + docs/VMInterface.md | 60 +- docs/VMInterfaceRequest.md | 26 +- docs/VRF.md | 303 +- docs/VRFRequest.md | 192 + docs/VirtualChassis.md | 215 +- docs/VirtualChassisRequest.md | 104 + docs/VirtualDeviceContext.md | 68 +- docs/VirtualDeviceContextRequest.md | 34 +- docs/VirtualDisk.md | 36 +- docs/VirtualDiskRequest.md | 10 +- docs/VirtualMachineWithConfigContext.md | 142 +- .../VirtualMachineWithConfigContextRequest.md | 106 +- docs/VirtualizationAPI.md | 230 +- docs/VpnAPI.md | 434 +- docs/Webhook.md | 26 + docs/WirelessAPI.md | 230 +- docs/WirelessChannel.md | 246 +- docs/WirelessLAN.md | 50 +- docs/WirelessLANGroup.md | 178 +- docs/WirelessLANRequest.md | 24 +- docs/WirelessLink.md | 132 +- docs/WirelessLinkRequest.md | 106 +- docs/WirelessRole.md | 4 +- docs/WritableAggregateRequest.md | 18 +- docs/WritableCableRequest.md | 32 +- docs/WritableCircuitRequest.md | 68 +- docs/WritableClusterRequest.md | 42 +- docs/WritableConsolePortRequest.md | 18 +- docs/WritableConsolePortTemplateRequest.md | 16 +- docs/WritableConsoleServerPortRequest.md | 18 +- ...ritableConsoleServerPortTemplateRequest.md | 16 +- docs/WritableContactAssignmentRequest.md | 26 +- docs/WritableCustomFieldRequest.md | 72 +- docs/WritableDataSourceRequest.md | 52 +- docs/WritableDeviceTypeRequest.md | 26 +- .../WritableDeviceWithConfigContextRequest.md | 106 +- docs/WritableEventRuleRequest.md | 153 +- docs/WritableFrontPortRequest.md | 18 +- docs/WritableFrontPortTemplateRequest.md | 26 +- docs/WritableIPAddressRequest.md | 16 +- docs/WritableIPRangeRequest.md | 24 +- docs/WritableIPSecProfileRequest.md | 18 +- docs/WritableIPSecProposalRequest.md | 16 +- docs/WritableInterfaceRequest.md | 50 +- docs/WritableInterfaceTemplateRequest.md | 24 +- docs/WritableL2VPNRequest.md | 18 +- docs/WritableLocationRequest.md | 26 +- docs/WritableModuleRequest.md | 26 +- docs/WritableModuleTypeRequest.md | 44 +- docs/WritablePowerFeedRequest.md | 26 +- docs/WritablePowerOutletRequest.md | 26 +- docs/WritablePowerOutletTemplateRequest.md | 24 +- docs/WritablePowerPortRequest.md | 18 +- docs/WritablePowerPortTemplateRequest.md | 16 +- docs/WritablePrefixRequest.md | 40 +- docs/WritableRackRequest.md | 130 +- docs/WritableRearPortRequest.md | 18 +- docs/WritableRearPortTemplateRequest.md | 16 +- docs/WritableServiceRequest.md | 16 +- docs/WritableSiteRequest.md | 32 +- docs/WritableTunnelRequest.md | 24 +- docs/WritableTunnelTerminationRequest.md | 18 +- docs/WritableVLANRequest.md | 32 +- docs/WritableVMInterfaceRequest.md | 26 +- docs/WritableVirtualDeviceContextRequest.md | 34 +- ...eVirtualMachineWithConfigContextRequest.md | 106 +- docs/WritableWirelessLANRequest.md | 40 +- docs/WritableWirelessLinkRequest.md | 112 +- model_aggregate.go | 63 +- model_aggregate_family.go | 2 +- model_aggregate_family_label.go | 2 +- model_aggregate_family_value.go | 2 +- model_aggregate_request.go | 38 +- model_asn.go | 69 +- model_asn_range.go | 63 +- model_asn_range_request.go | 40 +- model_asn_request.go | 36 +- model_authentication.go | 12 +- model_authentication_cipher.go | 12 +- model_authentication_type.go | 12 +- model_authentication_type_1.go | 12 +- model_available_asn.go | 2 +- model_available_ip.go | 22 +- model_available_prefix.go | 20 +- model_available_vlan.go | 18 +- model_bookmark.go | 14 +- model_bookmark_request.go | 18 +- model_brief_cable.go | 2 +- model_brief_cable_request.go | 2 +- model_brief_circuit.go | 2 +- model_brief_circuit_group.go | 2 +- ...ef_circuit_group_assignment_serializer_.go | 2 +- ...t_group_assignment_serializer__priority.go | 2 +- ...p_assignment_serializer__priority_label.go | 2 +- ...p_assignment_serializer__priority_value.go | 2 +- ...uit_group_assignment_serializer_request.go | 2 +- model_brief_circuit_group_request.go | 2 +- model_brief_circuit_request.go | 2 +- model_brief_circuit_type.go | 2 +- model_brief_circuit_type_request.go | 2 +- model_brief_cluster.go | 2 +- model_brief_cluster_group.go | 2 +- model_brief_cluster_group_request.go | 2 +- model_brief_cluster_request.go | 2 +- model_brief_cluster_type.go | 2 +- model_brief_cluster_type_request.go | 2 +- model_brief_config_template.go | 2 +- model_brief_config_template_request.go | 2 +- model_brief_contact.go | 2 +- model_brief_contact_group.go | 2 +- model_brief_contact_group_request.go | 2 +- model_brief_contact_request.go | 2 +- model_brief_contact_role.go | 2 +- model_brief_contact_role_request.go | 2 +- model_brief_custom_field_choice_set.go | 2 +- ...l_brief_custom_field_choice_set_request.go | 2 +- model_brief_data_file.go | 2 +- model_brief_data_source.go | 2 +- model_brief_data_source_request.go | 2 +- model_brief_device.go | 2 +- model_brief_device_request.go | 2 +- model_brief_device_role.go | 2 +- model_brief_device_role_request.go | 2 +- model_brief_device_type.go | 2 +- model_brief_device_type_request.go | 2 +- model_brief_fhrp_group.go | 2 +- model_brief_fhrp_group_protocol.go | 2 +- model_brief_fhrp_group_request.go | 2 +- model_brief_ike_policy.go | 2 +- model_brief_ike_policy_request.go | 2 +- model_brief_interface.go | 2 +- model_brief_interface_request.go | 2 +- model_brief_inventory_item_role.go | 2 +- model_brief_inventory_item_role_request.go | 2 +- model_brief_ip_address.go | 2 +- model_brief_ip_address_request.go | 2 +- model_brief_ip_sec_policy.go | 2 +- model_brief_ip_sec_policy_request.go | 2 +- model_brief_ip_sec_profile.go | 2 +- model_brief_ip_sec_profile_request.go | 2 +- model_brief_job.go | 2 +- model_brief_job_request.go | 2 +- model_brief_job_status.go | 2 +- model_brief_job_status_label.go | 2 +- model_brief_job_status_value.go | 2 +- model_brief_l2_vpn.go | 2 +- model_brief_l2_vpn_request.go | 2 +- model_brief_l2_vpn_termination.go | 2 +- model_brief_l2_vpn_termination_request.go | 2 +- model_brief_l2_vpn_type.go | 2 +- model_brief_l2_vpn_type_label.go | 2 +- model_brief_l2_vpn_type_value.go | 2 +- model_brief_location.go | 2 +- model_brief_location_request.go | 2 +- model_brief_manufacturer.go | 2 +- model_brief_manufacturer_request.go | 2 +- model_brief_module.go | 2 +- model_brief_module_request.go | 2 +- model_brief_module_type.go | 2 +- model_brief_module_type_request.go | 2 +- model_brief_platform.go | 2 +- model_brief_platform_request.go | 2 +- model_brief_power_panel.go | 2 +- model_brief_power_panel_request.go | 2 +- model_brief_power_port.go | 2 +- model_brief_power_port_request.go | 2 +- model_brief_power_port_template.go | 2 +- model_brief_power_port_template_request.go | 2 +- model_brief_provider.go | 2 +- model_brief_provider_account.go | 2 +- model_brief_provider_account_request.go | 2 +- model_brief_provider_network.go | 2 +- model_brief_provider_network_request.go | 2 +- model_brief_provider_request.go | 2 +- model_brief_rack.go | 2 +- model_brief_rack_request.go | 2 +- model_brief_rack_role.go | 2 +- model_brief_rack_role_request.go | 2 +- model_brief_rack_type.go | 2 +- model_brief_rack_type_request.go | 2 +- model_brief_rear_port_template.go | 2 +- model_brief_rear_port_template_request.go | 2 +- model_brief_region.go | 2 +- model_brief_region_request.go | 2 +- model_brief_rir.go | 2 +- model_brief_rir_request.go | 2 +- model_brief_role.go | 38 +- model_brief_role_request.go | 2 +- model_brief_site.go | 2 +- model_brief_site_group.go | 2 +- model_brief_site_group_request.go | 2 +- model_brief_site_request.go | 2 +- model_brief_tenant.go | 2 +- model_brief_tenant_group.go | 2 +- model_brief_tenant_group_request.go | 2 +- model_brief_tenant_request.go | 2 +- model_brief_tunnel.go | 2 +- model_brief_tunnel_group.go | 2 +- model_brief_tunnel_group_request.go | 2 +- model_brief_tunnel_request.go | 2 +- model_brief_user.go | 2 +- model_brief_user_request.go | 2 +- model_brief_virtual_chassis.go | 2 +- model_brief_virtual_chassis_request.go | 2 +- model_brief_virtual_machine.go | 2 +- model_brief_virtual_machine_request.go | 2 +- model_brief_vlan.go | 2 +- model_brief_vlan_group.go | 38 +- model_brief_vlan_group_request.go | 2 +- model_brief_vlan_request.go | 2 +- model_brief_vrf.go | 2 +- model_brief_vrf_request.go | 2 +- model_brief_wireless_lan_group.go | 2 +- model_brief_wireless_lan_group_request.go | 2 +- model_cable.go | 554 +- model_cable_length_unit.go | 2 +- model_cable_length_unit_label.go | 2 +- model_cable_length_unit_value.go | 2 +- model_cable_request.go | 446 +- model_cable_request_length_unit.go | 2 +- model_cable_status.go | 2 +- model_cable_status_label.go | 2 +- model_cable_status_value.go | 2 +- model_cable_termination.go | 2 +- model_cable_termination_request.go | 2 +- model_cable_type.go | 2 +- model_circuit.go | 660 +- model_circuit_circuit_termination.go | 38 +- model_circuit_circuit_termination_request.go | 2 +- model_circuit_group.go | 38 +- model_circuit_group_assignment.go | 38 +- model_circuit_group_assignment_request.go | 2 +- model_circuit_group_request.go | 2 +- model_circuit_request.go | 492 +- model_circuit_status.go | 2 +- model_circuit_status_label.go | 2 +- model_circuit_status_value.go | 2 +- model_circuit_termination.go | 115 +- model_circuit_termination_request.go | 40 +- model_circuit_type.go | 39 +- model_circuit_type_request.go | 2 +- ...oup_assignments_list_priority_parameter.go | 2 +- ...t_terminations_list_cable_end_parameter.go | 2 +- model_cluster.go | 474 +- model_cluster_group.go | 39 +- model_cluster_group_request.go | 2 +- model_cluster_request.go | 329 +- model_cluster_status.go | 2 +- model_cluster_status_label.go | 2 +- model_cluster_status_value.go | 2 +- model_cluster_type.go | 39 +- model_cluster_type_request.go | 2 +- model_config_context.go | 113 +- model_config_context_request.go | 50 +- model_config_template.go | 355 +- model_config_template_request.go | 151 +- model_console_port.go | 125 +- model_console_port_request.go | 28 +- model_console_port_request_speed.go | 2 +- model_console_port_speed.go | 2 +- model_console_port_speed_label.go | 2 +- model_console_port_speed_value.go | 2 +- model_console_port_template.go | 32 +- model_console_port_template_request.go | 26 +- model_console_port_type.go | 2 +- model_console_port_type_label.go | 2 +- model_console_port_type_value.go | 2 +- model_console_server_port.go | 125 +- model_console_server_port_request.go | 28 +- model_console_server_port_template.go | 32 +- model_console_server_port_template_request.go | 26 +- model_contact.go | 458 +- model_contact_assignment.go | 58 +- model_contact_assignment_request.go | 46 +- model_contact_group.go | 39 +- model_contact_group_request.go | 2 +- model_contact_request.go | 350 +- model_contact_role.go | 190 +- model_contact_role_request.go | 82 +- ...re_object_changes_list_action_parameter.go | 2 +- model_custom_field.go | 138 +- model_custom_field_choice_set.go | 39 +- model_custom_field_choice_set_base_choices.go | 2 +- ...tom_field_choice_set_base_choices_label.go | 2 +- ...tom_field_choice_set_base_choices_value.go | 2 +- model_custom_field_choice_set_request.go | 2 +- model_custom_field_filter_logic.go | 2 +- model_custom_field_filter_logic_label.go | 2 +- model_custom_field_filter_logic_value.go | 2 +- model_custom_field_request.go | 97 +- model_custom_field_type.go | 2 +- model_custom_field_type_label.go | 2 +- model_custom_field_type_value.go | 2 +- model_custom_field_ui_editable.go | 2 +- model_custom_field_ui_editable_label.go | 2 +- model_custom_field_ui_editable_value.go | 2 +- model_custom_field_ui_visible.go | 2 +- model_custom_field_ui_visible_label.go | 2 +- model_custom_field_ui_visible_value.go | 2 +- model_custom_link.go | 39 +- model_custom_link_button_class.go | 36 +- model_custom_link_request.go | 2 +- model_dashboard.go | 2 +- model_dashboard_request.go | 2 +- model_data_file.go | 57 +- model_data_source.go | 448 +- model_data_source_request.go | 98 +- model_data_source_status.go | 2 +- model_data_source_status_label.go | 2 +- model_data_source_status_value.go | 2 +- model_data_source_type.go | 2 +- model_data_source_type_label.go | 2 +- model_data_source_type_value.go | 2 +- ..._dcim_cables_list_length_unit_parameter.go | 2 +- ...sole_port_templates_list_type_parameter.go | 2 +- ...dcim_console_ports_list_speed_parameter.go | 2 +- ...cim_device_types_list_airflow_parameter.go | 2 +- ...device_types_list_weight_unit_parameter.go | 2 +- ...s_render_config_create_format_parameter.go | 2 +- model_dcim_interfaces_list_mode_parameter.go | 2 +- ...cim_module_types_list_airflow_parameter.go | 2 +- ...l_dcim_power_feeds_list_phase_parameter.go | 2 +- ..._dcim_power_feeds_list_supply_parameter.go | 2 +- model_dcim_power_feeds_list_type_parameter.go | 2 +- ...er_outlet_templates_list_type_parameter.go | 2 +- ...ower_port_templates_list_type_parameter.go | 2 +- ...im_rack_types_list_outer_unit_parameter.go | 2 +- ...racks_elevation_retrieve_face_parameter.go | 2 +- ...cks_elevation_retrieve_render_parameter.go | 2 +- model_dcim_racks_list_airflow_parameter.go | 2 +- model_device.go | 237 +- model_device_airflow.go | 2 +- model_device_airflow_label.go | 2 +- model_device_airflow_value.go | 2 +- model_device_bay.go | 71 +- model_device_bay_request.go | 36 +- model_device_bay_template.go | 20 +- model_device_bay_template_request.go | 14 +- model_device_face.go | 2 +- model_device_face_label.go | 2 +- model_device_face_value.go | 2 +- model_device_role.go | 317 +- model_device_role_request.go | 22 +- model_device_status.go | 2 +- model_device_status_label.go | 2 +- model_device_status_value.go | 2 +- model_device_type.go | 1022 +- model_device_type_airflow.go | 2 +- model_device_type_request.go | 601 +- model_device_type_request_airflow.go | 2 +- model_device_type_request_subdevice_role.go | 2 +- model_device_type_request_weight_unit.go | 2 +- model_device_type_subdevice_role.go | 2 +- model_device_type_subdevice_role_label.go | 2 +- model_device_type_subdevice_role_value.go | 2 +- model_device_type_weight_unit.go | 2 +- model_device_type_weight_unit_label.go | 2 +- model_device_type_weight_unit_value.go | 2 +- model_device_with_config_context.go | 235 +- model_device_with_config_context_request.go | 176 +- model_encryption.go | 12 +- model_end.go | 2 +- model_end_1.go | 2 +- model_event.go | 2 +- model_event_rule.go | 263 +- model_event_rule_action_type.go | 2 +- model_event_rule_action_type_label.go | 8 +- model_event_rule_action_type_value.go | 10 +- model_event_rule_event_types_inner.go | 2 +- model_event_rule_request.go | 226 +- model_export_template.go | 73 +- model_export_template_request.go | 16 +- ...choice_sets_list_base_choices_parameter.go | 2 +- ...stom_fields_list_filter_logic_parameter.go | 2 +- ...ustom_fields_list_ui_editable_parameter.go | 2 +- ...custom_fields_list_ui_visible_parameter.go | 2 +- ...ustom_links_list_button_class_parameter.go | 34 +- model_fhrp_group.go | 375 +- model_fhrp_group_assignment.go | 32 +- model_fhrp_group_assignment_request.go | 20 +- model_fhrp_group_request.go | 240 +- model_front_port.go | 103 +- model_front_port_rear_port.go | 47 +- model_front_port_rear_port_request.go | 2 +- model_front_port_request.go | 28 +- model_front_port_template.go | 58 +- model_front_port_template_request.go | 48 +- model_front_port_type.go | 2 +- model_front_port_type_label.go | 112 +- model_front_port_type_value.go | 114 +- model_generic_object.go | 2 +- model_generic_object_request.go | 2 +- model_group.go | 39 +- model_group_request.go | 2 +- model_ike_policy.go | 75 +- model_ike_policy_mode.go | 2 +- model_ike_policy_mode_label.go | 2 +- model_ike_policy_mode_value.go | 2 +- model_ike_policy_request.go | 38 +- model_ike_policy_version.go | 2 +- model_ike_policy_version_label.go | 2 +- model_ike_policy_version_value.go | 2 +- model_ike_proposal.go | 91 +- ...l_ike_proposal_authentication_algorithm.go | 2 +- ...proposal_authentication_algorithm_label.go | 2 +- ...proposal_authentication_algorithm_value.go | 2 +- model_ike_proposal_authentication_method.go | 2 +- ...ke_proposal_authentication_method_label.go | 2 +- ...ke_proposal_authentication_method_value.go | 2 +- model_ike_proposal_encryption_algorithm.go | 2 +- ...ike_proposal_encryption_algorithm_label.go | 2 +- ...ike_proposal_encryption_algorithm_value.go | 2 +- model_ike_proposal_group.go | 2 +- model_ike_proposal_group_label.go | 2 +- model_ike_proposal_group_value.go | 2 +- model_ike_proposal_request.go | 48 +- model_image_attachment.go | 2 +- model_image_attachment_request.go | 62 +- model_interface.go | 183 +- model_interface_duplex.go | 2 +- model_interface_duplex_label.go | 2 +- model_interface_duplex_value.go | 2 +- model_interface_mode.go | 2 +- model_interface_mode_label.go | 2 +- model_interface_mode_value.go | 2 +- model_interface_poe_mode.go | 2 +- model_interface_poe_mode_label.go | 2 +- model_interface_poe_mode_value.go | 2 +- model_interface_poe_type.go | 2 +- model_interface_poe_type_label.go | 2 +- model_interface_poe_type_value.go | 2 +- model_interface_request.go | 68 +- model_interface_request_duplex.go | 2 +- model_interface_rf_channel.go | 2 +- model_interface_rf_channel_label.go | 2 +- model_interface_rf_channel_value.go | 2 +- model_interface_rf_role.go | 2 +- model_interface_rf_role_label.go | 2 +- model_interface_rf_role_value.go | 2 +- model_interface_template.go | 32 +- model_interface_template_poe_mode.go | 2 +- model_interface_template_poe_type.go | 2 +- model_interface_template_request.go | 26 +- model_interface_template_request_poe_mode.go | 2 +- model_interface_template_request_poe_type.go | 2 +- model_interface_template_request_rf_role.go | 2 +- model_interface_template_rf_role.go | 2 +- model_interface_type.go | 2 +- model_interface_type_label.go | 10 +- model_interface_type_value.go | 12 +- model_inventory_item.go | 87 +- model_inventory_item_request.go | 44 +- model_inventory_item_role.go | 39 +- model_inventory_item_role_request.go | 2 +- model_inventory_item_template.go | 48 +- model_inventory_item_template_request.go | 42 +- model_ip_address.go | 641 +- model_ip_address_request.go | 469 +- model_ip_address_role.go | 2 +- model_ip_address_role_label.go | 2 +- model_ip_address_role_value.go | 2 +- model_ip_address_status.go | 2 +- model_ip_address_status_label.go | 2 +- model_ip_address_status_value.go | 2 +- model_ip_range.go | 75 +- model_ip_range_request.go | 52 +- model_ip_range_status.go | 2 +- model_ip_range_status_label.go | 2 +- model_ip_range_status_value.go | 2 +- model_ip_sec_policy.go | 39 +- model_ip_sec_policy_request.go | 2 +- model_ip_sec_profile.go | 61 +- model_ip_sec_profile_mode.go | 2 +- model_ip_sec_profile_mode_label.go | 2 +- model_ip_sec_profile_mode_value.go | 2 +- model_ip_sec_profile_request.go | 36 +- model_ip_sec_proposal.go | 39 +- model_ip_sec_proposal_request.go | 2 +- ...rvice_templates_list_protocol_parameter.go | 2 +- model_job.go | 77 +- model_journal_entry.go | 39 +- model_journal_entry_kind.go | 2 +- model_journal_entry_kind_label.go | 2 +- model_journal_entry_kind_value.go | 2 +- model_journal_entry_request.go | 2 +- model_l2_vpn.go | 363 +- model_l2_vpn_request.go | 255 +- model_l2_vpn_termination.go | 285 +- model_l2_vpn_termination_request.go | 146 +- model_location.go | 431 +- model_location_request.go | 284 +- model_location_status.go | 2 +- model_location_status_label.go | 2 +- model_location_status_value.go | 2 +- model_manufacturer.go | 250 +- model_manufacturer_request.go | 82 +- model_module.go | 422 +- model_module_bay.go | 119 +- model_module_bay_request.go | 76 +- model_module_bay_template.go | 107 +- model_module_bay_template_request.go | 101 +- model_module_request.go | 316 +- model_module_status.go | 2 +- model_module_status_label.go | 2 +- model_module_status_value.go | 2 +- model_module_type.go | 417 +- model_module_type_airflow.go | 2 +- model_module_type_airflow_label.go | 2 +- model_module_type_airflow_value.go | 2 +- model_module_type_request.go | 311 +- model_module_type_request_airflow.go | 2 +- model_nested_contact_group.go | 51 +- model_nested_contact_group_request.go | 2 +- model_nested_device.go | 39 +- model_nested_device_request.go | 2 +- model_nested_group.go | 47 +- model_nested_interface.go | 39 +- model_nested_interface_request.go | 2 +- model_nested_interface_template.go | 2 +- model_nested_interface_template_request.go | 2 +- model_nested_ip_address.go | 48 +- model_nested_ip_address_request.go | 2 +- model_nested_location.go | 50 +- model_nested_location_request.go | 2 +- model_nested_module_bay.go | 95 +- model_nested_module_bay_request.go | 52 +- model_nested_provider_account.go | 38 +- model_nested_region.go | 51 +- model_nested_region_request.go | 2 +- model_nested_site_group.go | 51 +- model_nested_site_group_request.go | 2 +- model_nested_tag.go | 39 +- model_nested_tag_request.go | 2 +- model_nested_tenant_group.go | 51 +- model_nested_tenant_group_request.go | 2 +- model_nested_user.go | 45 +- model_nested_virtual_machine.go | 47 +- model_nested_virtual_machine_request.go | 2 +- model_nested_vm_interface.go | 39 +- model_nested_vm_interface_request.go | 2 +- model_nested_wireless_lan_group.go | 50 +- model_nested_wireless_lan_group_request.go | 2 +- model_nested_wireless_link.go | 39 +- model_nested_wireless_link_request.go | 2 +- model_notification.go | 2 +- model_notification_group.go | 38 +- model_notification_group_request.go | 2 +- model_notification_request.go | 2 +- model_object_change.go | 51 +- model_object_change_action.go | 2 +- model_object_change_action_label.go | 2 +- model_object_change_action_value.go | 2 +- model_object_permission.go | 39 +- model_object_permission_request.go | 2 +- model_object_type.go | 2 +- model_paginated_aggregate_list.go | 2 +- model_paginated_asn_list.go | 2 +- model_paginated_asn_range_list.go | 2 +- model_paginated_bookmark_list.go | 2 +- model_paginated_cable_list.go | 2 +- model_paginated_cable_termination_list.go | 2 +- ...paginated_circuit_group_assignment_list.go | 2 +- model_paginated_circuit_group_list.go | 2 +- model_paginated_circuit_list.go | 2 +- model_paginated_circuit_termination_list.go | 2 +- model_paginated_circuit_type_list.go | 2 +- model_paginated_cluster_group_list.go | 2 +- model_paginated_cluster_list.go | 2 +- model_paginated_cluster_type_list.go | 2 +- model_paginated_config_context_list.go | 2 +- model_paginated_config_template_list.go | 2 +- model_paginated_console_port_list.go | 2 +- model_paginated_console_port_template_list.go | 2 +- model_paginated_console_server_port_list.go | 2 +- ...nated_console_server_port_template_list.go | 2 +- model_paginated_contact_assignment_list.go | 2 +- model_paginated_contact_group_list.go | 2 +- model_paginated_contact_list.go | 2 +- model_paginated_contact_role_list.go | 2 +- ..._paginated_custom_field_choice_set_list.go | 2 +- model_paginated_custom_field_list.go | 2 +- model_paginated_custom_link_list.go | 2 +- model_paginated_data_file_list.go | 2 +- model_paginated_data_source_list.go | 2 +- model_paginated_device_bay_list.go | 2 +- model_paginated_device_bay_template_list.go | 2 +- model_paginated_device_role_list.go | 2 +- model_paginated_device_type_list.go | 2 +- ...ginated_device_with_config_context_list.go | 2 +- model_paginated_event_rule_list.go | 2 +- model_paginated_export_template_list.go | 2 +- model_paginated_fhrp_group_assignment_list.go | 2 +- model_paginated_fhrp_group_list.go | 2 +- model_paginated_front_port_list.go | 2 +- model_paginated_front_port_template_list.go | 2 +- model_paginated_group_list.go | 2 +- model_paginated_ike_policy_list.go | 2 +- model_paginated_ike_proposal_list.go | 2 +- model_paginated_image_attachment_list.go | 2 +- model_paginated_interface_list.go | 2 +- model_paginated_interface_template_list.go | 2 +- model_paginated_inventory_item_list.go | 2 +- model_paginated_inventory_item_role_list.go | 2 +- ..._paginated_inventory_item_template_list.go | 2 +- model_paginated_ip_address_list.go | 2 +- model_paginated_ip_range_list.go | 2 +- model_paginated_ip_sec_policy_list.go | 2 +- model_paginated_ip_sec_profile_list.go | 2 +- model_paginated_ip_sec_proposal_list.go | 2 +- model_paginated_job_list.go | 2 +- model_paginated_journal_entry_list.go | 2 +- model_paginated_l2_vpn_list.go | 2 +- model_paginated_l2_vpn_termination_list.go | 2 +- model_paginated_location_list.go | 2 +- model_paginated_manufacturer_list.go | 2 +- model_paginated_module_bay_list.go | 2 +- model_paginated_module_bay_template_list.go | 2 +- model_paginated_module_list.go | 2 +- model_paginated_module_type_list.go | 2 +- model_paginated_notification_group_list.go | 2 +- model_paginated_notification_list.go | 2 +- model_paginated_object_change_list.go | 2 +- model_paginated_object_permission_list.go | 2 +- model_paginated_object_type_list.go | 2 +- model_paginated_platform_list.go | 2 +- model_paginated_power_feed_list.go | 2 +- model_paginated_power_outlet_list.go | 2 +- model_paginated_power_outlet_template_list.go | 2 +- model_paginated_power_panel_list.go | 2 +- model_paginated_power_port_list.go | 2 +- model_paginated_power_port_template_list.go | 2 +- model_paginated_prefix_list.go | 2 +- model_paginated_provider_account_list.go | 2 +- model_paginated_provider_list.go | 2 +- model_paginated_provider_network_list.go | 2 +- model_paginated_rack_list.go | 2 +- model_paginated_rack_reservation_list.go | 2 +- model_paginated_rack_role_list.go | 2 +- model_paginated_rack_type_list.go | 2 +- model_paginated_rack_unit_list.go | 2 +- model_paginated_rear_port_list.go | 2 +- model_paginated_rear_port_template_list.go | 2 +- model_paginated_region_list.go | 2 +- model_paginated_rir_list.go | 2 +- model_paginated_role_list.go | 2 +- model_paginated_route_target_list.go | 2 +- model_paginated_saved_filter_list.go | 2 +- model_paginated_script_list.go | 2 +- model_paginated_service_list.go | 2 +- model_paginated_service_template_list.go | 2 +- model_paginated_site_group_list.go | 2 +- model_paginated_site_list.go | 2 +- model_paginated_subscription_list.go | 2 +- model_paginated_tag_list.go | 2 +- model_paginated_tenant_group_list.go | 2 +- model_paginated_tenant_list.go | 2 +- model_paginated_token_list.go | 2 +- model_paginated_tunnel_group_list.go | 2 +- model_paginated_tunnel_list.go | 2 +- model_paginated_tunnel_termination_list.go | 2 +- model_paginated_user_list.go | 2 +- model_paginated_virtual_chassis_list.go | 2 +- ...l_paginated_virtual_device_context_list.go | 2 +- model_paginated_virtual_disk_list.go | 2 +- ...irtual_machine_with_config_context_list.go | 2 +- model_paginated_vlan_group_list.go | 2 +- model_paginated_vlan_list.go | 2 +- model_paginated_vm_interface_list.go | 2 +- model_paginated_vrf_list.go | 2 +- model_paginated_webhook_list.go | 2 +- model_paginated_wireless_lan_group_list.go | 2 +- model_paginated_wireless_lan_list.go | 2 +- model_paginated_wireless_link_list.go | 2 +- model_parent_child_status.go | 2 +- model_parent_child_status_1.go | 2 +- model_patched_asn_range_request.go | 40 +- model_patched_asn_request.go | 36 +- model_patched_bookmark_request.go | 18 +- model_patched_cable_termination_request.go | 2 +- model_patched_circuit_group_request.go | 2 +- model_patched_circuit_termination_request.go | 40 +- model_patched_circuit_type_request.go | 2 +- model_patched_cluster_group_request.go | 2 +- model_patched_cluster_type_request.go | 2 +- model_patched_config_context_request.go | 50 +- model_patched_config_template_request.go | 18 +- model_patched_contact_request.go | 34 +- model_patched_contact_role_request.go | 2 +- model_patched_custom_link_request.go | 2 +- model_patched_dashboard_request.go | 2 +- model_patched_device_bay_request.go | 36 +- model_patched_device_bay_template_request.go | 14 +- model_patched_device_role_request.go | 22 +- model_patched_export_template_request.go | 16 +- ...l_patched_fhrp_group_assignment_request.go | 20 +- model_patched_fhrp_group_request.go | 40 +- model_patched_group_request.go | 2 +- model_patched_image_attachment_request.go | 76 +- model_patched_inventory_item_request.go | 44 +- model_patched_inventory_item_role_request.go | 2 +- ...patched_inventory_item_template_request.go | 42 +- model_patched_l2_vpn_termination_request.go | 14 +- model_patched_manufacturer_request.go | 2 +- model_patched_module_bay_request.go | 76 +- model_patched_module_bay_template_request.go | 91 +- model_patched_notification_group_request.go | 2 +- model_patched_notification_request.go | 2 +- model_patched_object_permission_request.go | 2 +- model_patched_platform_request.go | 36 +- model_patched_power_panel_request.go | 36 +- model_patched_provider_account_request.go | 14 +- model_patched_provider_network_request.go | 14 +- model_patched_provider_request.go | 2 +- model_patched_rack_reservation_request.go | 48 +- model_patched_rack_role_request.go | 2 +- model_patched_rir_request.go | 2 +- model_patched_role_request.go | 2 +- model_patched_route_target_request.go | 24 +- model_patched_saved_filter_request.go | 2 +- model_patched_script_input_request.go | 2 +- model_patched_subscription_request.go | 2 +- model_patched_tag_request.go | 2 +- model_patched_tenant_request.go | 26 +- model_patched_token_request.go | 20 +- model_patched_tunnel_group_request.go | 2 +- model_patched_user_request.go | 2 +- model_patched_virtual_disk_request.go | 24 +- model_patched_vlan_group_request.go | 86 +- model_patched_vrf_request.go | 16 +- model_patched_webhook_request.go | 2 +- model_patched_webhook_request_http_method.go | 2 +- model_patched_writable_aggregate_request.go | 38 +- model_patched_writable_cable_request.go | 68 +- ...itable_circuit_group_assignment_request.go | 2 +- model_patched_writable_circuit_request.go | 115 +- model_patched_writable_cluster_request.go | 72 +- ...l_patched_writable_console_port_request.go | 28 +- ...hed_writable_console_port_request_speed.go | 2 +- ...ched_writable_console_port_request_type.go | 2 +- ..._writable_console_port_template_request.go | 26 +- ...ed_writable_console_server_port_request.go | 28 +- ...le_console_server_port_template_request.go | 26 +- ...hed_writable_contact_assignment_request.go | 46 +- ..._patched_writable_contact_group_request.go | 2 +- ...ritable_custom_field_choice_set_request.go | 2 +- ...m_field_choice_set_request_base_choices.go | 2 +- ...l_patched_writable_custom_field_request.go | 97 +- ...table_custom_field_request_filter_logic.go | 2 +- ...ched_writable_custom_field_request_type.go | 2 +- ...itable_custom_field_request_ui_editable.go | 2 +- ...ritable_custom_field_request_ui_visible.go | 2 +- model_patched_writable_data_source_request.go | 76 +- model_patched_writable_device_type_request.go | 62 +- ...able_device_with_config_context_request.go | 180 +- model_patched_writable_event_rule_request.go | 226 +- model_patched_writable_front_port_request.go | 28 +- ...ed_writable_front_port_template_request.go | 48 +- model_patched_writable_ike_policy_request.go | 2 +- ...atched_writable_ike_policy_request_mode.go | 2 +- ...hed_writable_ike_policy_request_version.go | 2 +- ...l_patched_writable_ike_proposal_request.go | 2 +- ...oposal_request_authentication_algorithm.go | 2 +- ...hed_writable_ike_proposal_request_group.go | 2 +- model_patched_writable_interface_request.go | 92 +- ...patched_writable_interface_request_mode.go | 2 +- ...hed_writable_interface_template_request.go | 38 +- model_patched_writable_ip_address_request.go | 26 +- ...atched_writable_ip_address_request_role.go | 2 +- ...ched_writable_ip_address_request_status.go | 2 +- model_patched_writable_ip_range_request.go | 38 +- ...atched_writable_ip_range_request_status.go | 2 +- ..._patched_writable_ip_sec_policy_request.go | 2 +- ...ritable_ip_sec_policy_request_pfs_group.go | 2 +- ...patched_writable_ip_sec_profile_request.go | 38 +- ...atched_writable_ip_sec_proposal_request.go | 30 +- ..._patched_writable_journal_entry_request.go | 2 +- model_patched_writable_l2_vpn_request.go | 44 +- model_patched_writable_location_request.go | 44 +- model_patched_writable_module_request.go | 42 +- model_patched_writable_module_type_request.go | 77 +- model_patched_writable_power_feed_request.go | 48 +- ...tched_writable_power_feed_request_phase.go | 2 +- ...ched_writable_power_feed_request_status.go | 2 +- ...ched_writable_power_feed_request_supply.go | 2 +- ...atched_writable_power_feed_request_type.go | 2 +- ...l_patched_writable_power_outlet_request.go | 40 +- ..._writable_power_outlet_request_feed_leg.go | 2 +- ...ched_writable_power_outlet_request_type.go | 8 +- ..._writable_power_outlet_template_request.go | 38 +- ...able_power_outlet_template_request_type.go | 8 +- model_patched_writable_power_port_request.go | 28 +- ...atched_writable_power_port_request_type.go | 6 +- ...ed_writable_power_port_template_request.go | 26 +- ...itable_power_port_template_request_type.go | 6 +- model_patched_writable_prefix_request.go | 62 +- ..._patched_writable_prefix_request_status.go | 2 +- model_patched_writable_rack_request.go | 201 +- ...l_patched_writable_rack_request_airflow.go | 2 +- ...tched_writable_rack_request_form_factor.go | 2 +- ...atched_writable_rack_request_outer_unit.go | 2 +- model_patched_writable_rack_request_status.go | 2 +- model_patched_writable_rack_request_width.go | 2 +- model_patched_writable_rack_type_request.go | 2 +- ..._writable_rack_type_request_form_factor.go | 2 +- model_patched_writable_rear_port_request.go | 28 +- ...hed_writable_rear_port_template_request.go | 26 +- model_patched_writable_region_request.go | 2 +- model_patched_writable_service_request.go | 26 +- ...tched_writable_service_request_protocol.go | 2 +- ...tched_writable_service_template_request.go | 2 +- model_patched_writable_site_group_request.go | 2 +- model_patched_writable_site_request.go | 54 +- ...l_patched_writable_tenant_group_request.go | 2 +- model_patched_writable_tunnel_request.go | 38 +- ...d_writable_tunnel_request_encapsulation.go | 2 +- ..._patched_writable_tunnel_request_status.go | 2 +- ...hed_writable_tunnel_termination_request.go | 26 +- ...ritable_tunnel_termination_request_role.go | 2 +- ...atched_writable_virtual_chassis_request.go | 2 +- ...writable_virtual_device_context_request.go | 50 +- ...e_virtual_device_context_request_status.go | 2 +- ...ual_machine_with_config_context_request.go | 171 +- model_patched_writable_vlan_request.go | 50 +- model_patched_writable_vlan_request_status.go | 2 +- ...l_patched_writable_vm_interface_request.go | 38 +- ...hed_writable_wireless_lan_group_request.go | 2 +- ...l_patched_writable_wireless_lan_request.go | 62 +- ...ed_writable_wireless_lan_request_status.go | 2 +- ..._patched_writable_wireless_link_request.go | 171 +- ...ble_wireless_link_request_distance_unit.go | 2 +- model_platform.go | 290 +- model_platform_request.go | 178 +- model_power_feed.go | 149 +- model_power_feed_phase.go | 2 +- model_power_feed_phase_label.go | 2 +- model_power_feed_request.go | 48 +- model_power_feed_status.go | 2 +- model_power_feed_status_label.go | 2 +- model_power_feed_supply.go | 2 +- model_power_feed_supply_label.go | 2 +- model_power_feed_type.go | 2 +- model_power_feed_type_label.go | 2 +- model_power_outlet.go | 137 +- model_power_outlet_feed_leg.go | 2 +- model_power_outlet_feed_leg_label.go | 2 +- model_power_outlet_feed_leg_value.go | 2 +- model_power_outlet_request.go | 40 +- model_power_outlet_request_feed_leg.go | 2 +- model_power_outlet_request_type.go | 8 +- model_power_outlet_template.go | 56 +- model_power_outlet_template_request.go | 46 +- model_power_outlet_type.go | 2 +- model_power_outlet_type_label.go | 6 +- model_power_panel.go | 304 +- model_power_panel_request.go | 196 +- model_power_port.go | 667 +- model_power_port_request.go | 362 +- model_power_port_request_type.go | 2 +- model_power_port_template.go | 357 +- model_power_port_template_request.go | 286 +- model_power_port_type.go | 2 +- model_power_port_type_label.go | 2 +- model_prefix.go | 111 +- model_prefix_request.go | 66 +- model_prefix_status.go | 2 +- model_prefix_status_label.go | 2 +- model_prefix_status_value.go | 2 +- model_provider.go | 303 +- model_provider_account.go | 51 +- model_provider_account_request.go | 150 +- model_provider_network.go | 291 +- model_provider_network_request.go | 185 +- model_provider_request.go | 193 +- model_rack.go | 1260 +- model_rack_airflow.go | 2 +- model_rack_airflow_label.go | 2 +- model_rack_face.go | 2 +- model_rack_face_1.go | 2 +- model_rack_form_factor.go | 2 +- model_rack_form_factor_label.go | 2 +- model_rack_outer_unit.go | 2 +- model_rack_outer_unit_label.go | 2 +- model_rack_request.go | 1087 +- model_rack_request_form_factor.go | 2 +- model_rack_request_outer_unit.go | 2 +- model_rack_reservation.go | 73 +- model_rack_reservation_request.go | 46 +- model_rack_role.go | 39 +- model_rack_role_request.go | 2 +- model_rack_status.go | 2 +- model_rack_status_label.go | 2 +- model_rack_type.go | 38 +- model_rack_type_request.go | 2 +- model_rack_unit.go | 14 +- model_rack_unit_face.go | 2 +- model_rack_unit_face_value.go | 2 +- model_rack_width.go | 2 +- model_rack_width_label.go | 2 +- model_rack_width_value.go | 2 +- model_rear_port.go | 103 +- model_rear_port_request.go | 28 +- model_rear_port_template.go | 314 +- model_rear_port_template_request.go | 245 +- model_region.go | 39 +- model_region_request.go | 2 +- model_rir.go | 230 +- model_rir_request.go | 120 +- model_role.go | 231 +- model_role_request.go | 119 +- model_route_target.go | 57 +- model_route_target_request.go | 24 +- model_saved_filter.go | 39 +- model_saved_filter_request.go | 2 +- model_schema_retrieve_format_parameter.go | 2 +- model_schema_retrieve_lang_parameter.go | 12 +- model_script.go | 79 +- model_script_input_request.go | 2 +- model_service.go | 89 +- model_service_protocol.go | 2 +- model_service_protocol_label.go | 2 +- model_service_request.go | 26 +- model_service_template.go | 39 +- model_service_template_request.go | 2 +- model_site.go | 911 +- model_site_group.go | 39 +- model_site_group_request.go | 2 +- model_site_request.go | 597 +- model_subscription.go | 2 +- model_subscription_request.go | 2 +- model_tag.go | 39 +- model_tag_request.go | 2 +- model_tenant.go | 597 +- model_tenant_group.go | 39 +- model_tenant_group_request.go | 2 +- model_tenant_request.go | 167 +- model_termination.go | 2 +- model_termination_1.go | 2 +- model_token.go | 65 +- model_token_provision.go | 65 +- model_token_provision_request.go | 2 +- model_token_request.go | 20 +- model_tunnel.go | 504 +- model_tunnel_encapsulation.go | 2 +- model_tunnel_encapsulation_label.go | 2 +- model_tunnel_group.go | 39 +- model_tunnel_group_request.go | 2 +- model_tunnel_request.go | 369 +- model_tunnel_status.go | 2 +- model_tunnel_status_label.go | 2 +- model_tunnel_termination.go | 63 +- model_tunnel_termination_request.go | 26 +- model_tunnel_termination_role.go | 2 +- model_tunnel_termination_role_label.go | 2 +- model_user.go | 394 +- model_user_request.go | 382 +- model_virtual_chassis.go | 295 +- model_virtual_chassis_request.go | 150 +- model_virtual_device_context.go | 99 +- model_virtual_device_context_request.go | 50 +- model_virtual_device_context_status.go | 2 +- model_virtual_device_context_status_label.go | 2 +- model_virtual_disk.go | 51 +- model_virtual_disk_request.go | 24 +- model_virtual_machine_with_config_context.go | 228 +- ...ual_machine_with_config_context_request.go | 171 +- model_vlan.go | 524 +- model_vlan_group.go | 131 +- model_vlan_group_request.go | 86 +- model_vlan_request.go | 348 +- model_vm_interface.go | 123 +- model_vm_interface_request.go | 38 +- model_vrf.go | 418 +- model_vrf_request.go | 277 +- model_webhook.go | 39 +- model_webhook_request.go | 2 +- model_wireless_channel.go | 356 +- model_wireless_lan.go | 103 +- model_wireless_lan_auth_cipher.go | 2 +- model_wireless_lan_auth_cipher_label.go | 2 +- model_wireless_lan_auth_cipher_value.go | 2 +- model_wireless_lan_auth_type.go | 2 +- model_wireless_lan_auth_type_label.go | 2 +- model_wireless_lan_auth_type_value.go | 2 +- model_wireless_lan_group.go | 242 +- model_wireless_lan_group_request.go | 2 +- model_wireless_lan_request.go | 56 +- model_wireless_lan_status.go | 2 +- model_wireless_lan_status_label.go | 2 +- model_wireless_lan_status_value.go | 2 +- model_wireless_link.go | 207 +- model_wireless_link_distance_unit.go | 2 +- model_wireless_link_distance_unit_label.go | 2 +- model_wireless_link_request.go | 160 +- model_wireless_link_request_distance_unit.go | 2 +- model_wireless_role.go | 8 +- ...less_links_list_distance_unit_parameter.go | 2 +- model_writable_aggregate_request.go | 38 +- model_writable_cable_request.go | 68 +- ...itable_circuit_group_assignment_request.go | 2 +- model_writable_circuit_request.go | 113 +- model_writable_cluster_request.go | 72 +- model_writable_console_port_request.go | 28 +- ..._writable_console_port_template_request.go | 26 +- model_writable_console_server_port_request.go | 28 +- ...le_console_server_port_template_request.go | 26 +- model_writable_contact_assignment_request.go | 46 +- model_writable_contact_group_request.go | 2 +- ...ritable_custom_field_choice_set_request.go | 2 +- model_writable_custom_field_request.go | 97 +- model_writable_data_source_request.go | 76 +- model_writable_device_type_request.go | 62 +- ...able_device_with_config_context_request.go | 176 +- model_writable_event_rule_request.go | 226 +- model_writable_front_port_request.go | 28 +- model_writable_front_port_template_request.go | 48 +- model_writable_ike_policy_request.go | 2 +- model_writable_ike_proposal_request.go | 2 +- model_writable_interface_request.go | 92 +- model_writable_interface_template_request.go | 38 +- model_writable_ip_address_request.go | 26 +- model_writable_ip_range_request.go | 38 +- model_writable_ip_sec_policy_request.go | 2 +- model_writable_ip_sec_profile_request.go | 36 +- model_writable_ip_sec_proposal_request.go | 30 +- model_writable_journal_entry_request.go | 2 +- model_writable_l2_vpn_request.go | 44 +- model_writable_location_request.go | 44 +- model_writable_module_request.go | 40 +- model_writable_module_type_request.go | 77 +- model_writable_power_feed_request.go | 48 +- model_writable_power_outlet_request.go | 40 +- ..._writable_power_outlet_template_request.go | 38 +- model_writable_power_port_request.go | 28 +- model_writable_power_port_template_request.go | 26 +- model_writable_prefix_request.go | 62 +- model_writable_rack_request.go | 201 +- model_writable_rack_type_request.go | 2 +- model_writable_rear_port_request.go | 28 +- model_writable_rear_port_template_request.go | 26 +- model_writable_region_request.go | 2 +- model_writable_service_request.go | 26 +- model_writable_service_template_request.go | 2 +- model_writable_site_group_request.go | 2 +- model_writable_site_request.go | 54 +- model_writable_tenant_group_request.go | 2 +- model_writable_tunnel_request.go | 38 +- model_writable_tunnel_termination_request.go | 26 +- model_writable_virtual_chassis_request.go | 2 +- ...writable_virtual_device_context_request.go | 50 +- ...ual_machine_with_config_context_request.go | 171 +- model_writable_vlan_request.go | 50 +- model_writable_vm_interface_request.go | 38 +- model_writable_wireless_lan_group_request.go | 2 +- model_writable_wireless_lan_request.go | 62 +- model_writable_wireless_link_request.go | 169 +- response.go | 2 +- scripts/fix-spec.py | 1 + scripts/set-versions.sh | 2 +- utils.go | 2 +- 1386 files changed, 195290 insertions(+), 62168 deletions(-) diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index 4aaeb069f..2ee3bcecc 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -22,31 +22,184 @@ docs/AggregateFamilyLabel.md docs/AggregateFamilyValue.md docs/AggregateRequest.md docs/Authentication.md +docs/Authentication1.md docs/AuthenticationCipher.md +docs/AuthenticationCipher1.md docs/AuthenticationType.md docs/AuthenticationType1.md +docs/AuthenticationType2.md +docs/AuthenticationType3.md docs/AvailableASN.md docs/AvailableIP.md docs/AvailablePrefix.md docs/AvailableVLAN.md docs/Bookmark.md docs/BookmarkRequest.md +docs/BriefCable.md +docs/BriefCableRequest.md +docs/BriefCircuit.md +docs/BriefCircuitGroup.md +docs/BriefCircuitGroupAssignmentSerializer.md +docs/BriefCircuitGroupAssignmentSerializerPriority.md +docs/BriefCircuitGroupAssignmentSerializerPriorityLabel.md +docs/BriefCircuitGroupAssignmentSerializerPriorityValue.md +docs/BriefCircuitGroupAssignmentSerializerRequest.md +docs/BriefCircuitGroupRequest.md +docs/BriefCircuitRequest.md +docs/BriefCircuitType.md +docs/BriefCircuitTypeRequest.md +docs/BriefCluster.md +docs/BriefClusterGroup.md +docs/BriefClusterGroupRequest.md +docs/BriefClusterRequest.md +docs/BriefClusterType.md +docs/BriefClusterTypeRequest.md +docs/BriefConfigTemplate.md +docs/BriefConfigTemplateRequest.md +docs/BriefContact.md +docs/BriefContactGroup.md +docs/BriefContactGroupRequest.md +docs/BriefContactRequest.md +docs/BriefContactRole.md +docs/BriefContactRoleRequest.md +docs/BriefCustomFieldChoiceSet.md +docs/BriefCustomFieldChoiceSetRequest.md +docs/BriefDataFile.md +docs/BriefDataSource.md +docs/BriefDataSourceRequest.md +docs/BriefDevice.md +docs/BriefDeviceRequest.md +docs/BriefDeviceRole.md +docs/BriefDeviceRoleRequest.md +docs/BriefDeviceType.md +docs/BriefDeviceTypeRequest.md +docs/BriefFHRPGroup.md +docs/BriefFHRPGroupProtocol.md +docs/BriefFHRPGroupRequest.md +docs/BriefIKEPolicy.md +docs/BriefIKEPolicyRequest.md +docs/BriefIPAddress.md +docs/BriefIPAddressRequest.md +docs/BriefIPSecPolicy.md +docs/BriefIPSecPolicyRequest.md +docs/BriefIPSecProfile.md +docs/BriefIPSecProfileRequest.md +docs/BriefInterface.md +docs/BriefInterfaceRequest.md +docs/BriefInventoryItemRole.md +docs/BriefInventoryItemRoleRequest.md +docs/BriefJob.md +docs/BriefJobRequest.md +docs/BriefJobStatus.md +docs/BriefJobStatusLabel.md +docs/BriefJobStatusValue.md +docs/BriefL2VPN.md +docs/BriefL2VPNRequest.md +docs/BriefL2VPNTermination.md +docs/BriefL2VPNTerminationRequest.md +docs/BriefL2VPNType.md +docs/BriefL2VPNTypeLabel.md +docs/BriefL2VPNTypeValue.md +docs/BriefLocation.md +docs/BriefLocationRequest.md +docs/BriefManufacturer.md +docs/BriefManufacturerRequest.md +docs/BriefModule.md +docs/BriefModuleRequest.md +docs/BriefModuleType.md +docs/BriefModuleTypeRequest.md +docs/BriefPlatform.md +docs/BriefPlatformRequest.md +docs/BriefPowerPanel.md +docs/BriefPowerPanelRequest.md +docs/BriefPowerPort.md +docs/BriefPowerPortRequest.md +docs/BriefPowerPortTemplate.md +docs/BriefPowerPortTemplateRequest.md +docs/BriefProvider.md +docs/BriefProviderAccount.md +docs/BriefProviderAccountRequest.md +docs/BriefProviderNetwork.md +docs/BriefProviderNetworkRequest.md +docs/BriefProviderRequest.md +docs/BriefRIR.md +docs/BriefRIRRequest.md +docs/BriefRack.md +docs/BriefRackRequest.md +docs/BriefRackRole.md +docs/BriefRackRoleRequest.md +docs/BriefRackType.md +docs/BriefRackTypeRequest.md +docs/BriefRearPortTemplate.md +docs/BriefRearPortTemplateRequest.md +docs/BriefRegion.md +docs/BriefRegionRequest.md +docs/BriefRole.md +docs/BriefRoleRequest.md +docs/BriefSite.md +docs/BriefSiteGroup.md +docs/BriefSiteGroupRequest.md +docs/BriefSiteRequest.md +docs/BriefTenant.md +docs/BriefTenantGroup.md +docs/BriefTenantGroupRequest.md +docs/BriefTenantRequest.md +docs/BriefTunnel.md +docs/BriefTunnelGroup.md +docs/BriefTunnelGroupRequest.md +docs/BriefTunnelRequest.md +docs/BriefUser.md +docs/BriefUserRequest.md +docs/BriefVLAN.md +docs/BriefVLANGroup.md +docs/BriefVLANGroupRequest.md +docs/BriefVLANRequest.md +docs/BriefVRF.md +docs/BriefVRFRequest.md +docs/BriefVirtualChassis.md +docs/BriefVirtualChassisRequest.md +docs/BriefVirtualMachine.md +docs/BriefVirtualMachineRequest.md +docs/BriefWirelessLANGroup.md +docs/BriefWirelessLANGroupRequest.md docs/Cable.md +docs/CableLengthUnit.md +docs/CableLengthUnitLabel.md +docs/CableLengthUnitValue.md docs/CableRequest.md +docs/CableRequestLengthUnit.md +docs/CableStatus.md +docs/CableStatusLabel.md +docs/CableStatusValue.md docs/CableTermination.md docs/CableTerminationRequest.md +docs/CableType.md docs/Circuit.md +docs/CircuitCircuitTermination.md +docs/CircuitCircuitTerminationRequest.md +docs/CircuitGroup.md +docs/CircuitGroupAssignment.md +docs/CircuitGroupAssignmentRequest.md +docs/CircuitGroupRequest.md docs/CircuitRequest.md +docs/CircuitStatus.md +docs/CircuitStatusLabel.md +docs/CircuitStatusValue.md docs/CircuitTermination.md docs/CircuitTerminationRequest.md docs/CircuitType.md docs/CircuitTypeRequest.md docs/CircuitsAPI.md +docs/CircuitsCircuitGroupAssignmentsListPriorityParameter.md docs/CircuitsCircuitTerminationsListCableEndParameter.md +docs/CircuitsCircuitsListStatusIcParameterInner.md docs/Cluster.md docs/ClusterGroup.md docs/ClusterGroupRequest.md docs/ClusterRequest.md +docs/ClusterStatus.md +docs/ClusterStatusLabel.md +docs/ClusterStatusValue.md docs/ClusterType.md docs/ClusterTypeRequest.md docs/ConfigContext.md @@ -70,9 +223,6 @@ docs/ConsoleServerPortTemplate.md docs/ConsoleServerPortTemplateRequest.md docs/Contact.md docs/ContactAssignment.md -docs/ContactAssignmentPriority.md -docs/ContactAssignmentPriorityLabel.md -docs/ContactAssignmentPriorityValue.md docs/ContactAssignmentRequest.md docs/ContactGroup.md docs/ContactGroupRequest.md @@ -80,6 +230,8 @@ docs/ContactRequest.md docs/ContactRole.md docs/ContactRoleRequest.md docs/CoreAPI.md +docs/CoreJobsListStatusIcParameterInner.md +docs/CoreObjectChangesListActionParameter.md docs/CustomField.md docs/CustomFieldChoiceSet.md docs/CustomFieldChoiceSetBaseChoices.md @@ -107,23 +259,50 @@ docs/DashboardRequest.md docs/DataFile.md docs/DataSource.md docs/DataSourceRequest.md -docs/DataSourceRequestType.md +docs/DataSourceStatus.md +docs/DataSourceStatusLabel.md +docs/DataSourceStatusValue.md +docs/DataSourceType.md +docs/DataSourceTypeLabel.md +docs/DataSourceTypeValue.md docs/DcimAPI.md docs/DcimCablesListLengthUnitParameter.md +docs/DcimCablesListStatusIcParameterInner.md +docs/DcimCablesListTypeIcParameterInner.md docs/DcimConsolePortTemplatesListTypeParameter.md +docs/DcimConsolePortsListDeviceStatusIcParameterInner.md docs/DcimConsolePortsListSpeedParameter.md +docs/DcimConsolePortsListTypeIcParameterInner.md docs/DcimDeviceTypesListAirflowParameter.md docs/DcimDeviceTypesListWeightUnitParameter.md docs/DcimDevicesRenderConfigCreateFormatParameter.md +docs/DcimFrontPortTemplatesListTypeIcParameterInner.md +docs/DcimInterfaceTemplatesListPoeModeIcParameterInner.md +docs/DcimInterfaceTemplatesListPoeTypeIcParameterInner.md +docs/DcimInterfaceTemplatesListTypeIcParameterInner.md +docs/DcimInterfacesListDuplexIcParameterInner.md docs/DcimInterfacesListModeParameter.md +docs/DcimLocationsListStatusIcParameterInner.md +docs/DcimModuleTypesListAirflowParameter.md +docs/DcimModulesListStatusIcParameterInner.md docs/DcimPowerFeedsListPhaseParameter.md +docs/DcimPowerFeedsListStatusIcParameterInner.md docs/DcimPowerFeedsListSupplyParameter.md docs/DcimPowerFeedsListTypeParameter.md +docs/DcimPowerOutletTemplatesListFeedLegIcParameterInner.md docs/DcimPowerOutletTemplatesListTypeParameter.md +docs/DcimPowerOutletsListTypeIcParameterInner.md docs/DcimPowerPortTemplatesListTypeParameter.md +docs/DcimPowerPortsListTypeIcParameterInner.md +docs/DcimRackTypesListFormFactorIcParameterInner.md +docs/DcimRackTypesListOuterUnitParameter.md +docs/DcimRackTypesListWidthIcParameterInner.md docs/DcimRacksElevationRetrieveFaceParameter.md docs/DcimRacksElevationRetrieveRenderParameter.md -docs/DcimRacksListOuterUnitParameter.md +docs/DcimRacksListAirflowParameter.md +docs/DcimRacksListFormFactorIcParameterInner.md +docs/DcimRacksListStatusIcParameterInner.md +docs/DcimVirtualDeviceContextsListStatusIcParameterInner.md docs/Device.md docs/DeviceAirflow.md docs/DeviceAirflowLabel.md @@ -135,37 +314,51 @@ docs/DeviceBayTemplateRequest.md docs/DeviceFace.md docs/DeviceFaceLabel.md docs/DeviceFaceValue.md -docs/DeviceRequest.md docs/DeviceRole.md docs/DeviceRoleRequest.md docs/DeviceStatus.md docs/DeviceStatusLabel.md docs/DeviceStatusValue.md docs/DeviceType.md +docs/DeviceTypeAirflow.md docs/DeviceTypeRequest.md +docs/DeviceTypeRequestAirflow.md +docs/DeviceTypeRequestSubdeviceRole.md +docs/DeviceTypeRequestWeightUnit.md +docs/DeviceTypeSubdeviceRole.md +docs/DeviceTypeSubdeviceRoleLabel.md +docs/DeviceTypeSubdeviceRoleValue.md +docs/DeviceTypeWeightUnit.md +docs/DeviceTypeWeightUnitLabel.md +docs/DeviceTypeWeightUnitValue.md docs/DeviceWithConfigContext.md docs/DeviceWithConfigContextRequest.md docs/Encryption.md +docs/Encryption1.md docs/End.md docs/End1.md +docs/Event.md docs/EventRule.md docs/EventRuleActionType.md docs/EventRuleActionTypeLabel.md docs/EventRuleActionTypeValue.md +docs/EventRuleEventTypesInner.md docs/EventRuleRequest.md docs/ExportTemplate.md docs/ExportTemplateRequest.md docs/ExtrasAPI.md docs/ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md docs/ExtrasCustomFieldsListFilterLogicParameter.md +docs/ExtrasCustomFieldsListTypeIcParameterInner.md docs/ExtrasCustomFieldsListUiEditableParameter.md docs/ExtrasCustomFieldsListUiVisibleParameter.md docs/ExtrasCustomLinksListButtonClassParameter.md -docs/ExtrasObjectChangesListActionParameter.md +docs/ExtrasEventRulesListActionTypeIcParameterInner.md +docs/ExtrasJournalEntriesListKindIcParameterInner.md +docs/ExtrasWebhooksListHttpMethodIcParameterInner.md docs/FHRPGroup.md docs/FHRPGroupAssignment.md docs/FHRPGroupAssignmentRequest.md -docs/FHRPGroupProtocol.md docs/FHRPGroupRequest.md docs/FrontPort.md docs/FrontPortRearPort.md @@ -176,6 +369,7 @@ docs/FrontPortTemplateRequest.md docs/FrontPortType.md docs/FrontPortTypeLabel.md docs/FrontPortTypeValue.md +docs/GenericObject.md docs/GenericObjectRequest.md docs/Group.md docs/GroupRequest.md @@ -203,6 +397,12 @@ docs/IKEProposalGroupValue.md docs/IKEProposalRequest.md docs/IPAddress.md docs/IPAddressRequest.md +docs/IPAddressRole.md +docs/IPAddressRoleLabel.md +docs/IPAddressRoleValue.md +docs/IPAddressStatus.md +docs/IPAddressStatusLabel.md +docs/IPAddressStatusValue.md docs/IPRange.md docs/IPRangeRequest.md docs/IPRangeStatus.md @@ -258,12 +458,13 @@ docs/InventoryItemRoleRequest.md docs/InventoryItemTemplate.md docs/InventoryItemTemplateRequest.md docs/IpamAPI.md +docs/IpamFhrpGroupsListProtocolIcParameterInner.md +docs/IpamIpAddressesListRoleIcParameterInner.md +docs/IpamIpAddressesListStatusIcParameterInner.md +docs/IpamIpRangesListStatusIcParameterInner.md +docs/IpamPrefixesListStatusIcParameterInner.md docs/IpamServiceTemplatesListProtocolParameter.md docs/Job.md -docs/JobRequest.md -docs/JobStatus.md -docs/JobStatusLabel.md -docs/JobStatusValue.md docs/JournalEntry.md docs/JournalEntryKind.md docs/JournalEntryKindLabel.md @@ -273,34 +474,44 @@ docs/L2VPN.md docs/L2VPNRequest.md docs/L2VPNTermination.md docs/L2VPNTerminationRequest.md -docs/L2VPNType.md -docs/L2VPNTypeLabel.md -docs/L2VPNTypeValue.md docs/Location.md docs/LocationRequest.md +docs/LocationStatus.md +docs/LocationStatusLabel.md +docs/LocationStatusValue.md docs/Manufacturer.md docs/ManufacturerRequest.md docs/Module.md docs/ModuleBay.md -docs/ModuleBayNestedModule.md -docs/ModuleBayNestedModuleRequest.md docs/ModuleBayRequest.md docs/ModuleBayTemplate.md docs/ModuleBayTemplateRequest.md docs/ModuleRequest.md +docs/ModuleStatus.md +docs/ModuleStatusLabel.md +docs/ModuleStatusValue.md docs/ModuleType.md +docs/ModuleTypeAirflow.md +docs/ModuleTypeAirflowLabel.md +docs/ModuleTypeAirflowValue.md docs/ModuleTypeRequest.md +docs/ModuleTypeRequestAirflow.md docs/NestedContactGroup.md docs/NestedContactGroupRequest.md docs/NestedDevice.md docs/NestedDeviceRequest.md docs/NestedGroup.md +docs/NestedIPAddress.md +docs/NestedIPAddressRequest.md docs/NestedInterface.md docs/NestedInterfaceRequest.md docs/NestedInterfaceTemplate.md docs/NestedInterfaceTemplateRequest.md +docs/NestedLocation.md +docs/NestedLocationRequest.md docs/NestedModuleBay.md docs/NestedModuleBayRequest.md +docs/NestedProviderAccount.md docs/NestedRegion.md docs/NestedRegionRequest.md docs/NestedSiteGroup.md @@ -314,9 +525,14 @@ docs/NestedVMInterface.md docs/NestedVMInterfaceRequest.md docs/NestedVirtualMachine.md docs/NestedVirtualMachineRequest.md +docs/NestedWirelessLANGroup.md docs/NestedWirelessLANGroupRequest.md docs/NestedWirelessLink.md docs/NestedWirelessLinkRequest.md +docs/Notification.md +docs/NotificationGroup.md +docs/NotificationGroupRequest.md +docs/NotificationRequest.md docs/ObjectChange.md docs/ObjectChangeAction.md docs/ObjectChangeActionLabel.md @@ -330,6 +546,8 @@ docs/PaginatedAggregateList.md docs/PaginatedBookmarkList.md docs/PaginatedCableList.md docs/PaginatedCableTerminationList.md +docs/PaginatedCircuitGroupAssignmentList.md +docs/PaginatedCircuitGroupList.md docs/PaginatedCircuitList.md docs/PaginatedCircuitTerminationList.md docs/PaginatedCircuitTypeList.md @@ -386,6 +604,8 @@ docs/PaginatedModuleBayList.md docs/PaginatedModuleBayTemplateList.md docs/PaginatedModuleList.md docs/PaginatedModuleTypeList.md +docs/PaginatedNotificationGroupList.md +docs/PaginatedNotificationList.md docs/PaginatedObjectChangeList.md docs/PaginatedObjectPermissionList.md docs/PaginatedObjectTypeList.md @@ -404,6 +624,7 @@ docs/PaginatedRIRList.md docs/PaginatedRackList.md docs/PaginatedRackReservationList.md docs/PaginatedRackRoleList.md +docs/PaginatedRackTypeList.md docs/PaginatedRackUnitList.md docs/PaginatedRearPortList.md docs/PaginatedRearPortTemplateList.md @@ -416,6 +637,7 @@ docs/PaginatedServiceList.md docs/PaginatedServiceTemplateList.md docs/PaginatedSiteGroupList.md docs/PaginatedSiteList.md +docs/PaginatedSubscriptionList.md docs/PaginatedTagList.md docs/PaginatedTenantGroupList.md docs/PaginatedTenantList.md @@ -442,6 +664,7 @@ docs/PatchedASNRangeRequest.md docs/PatchedASNRequest.md docs/PatchedBookmarkRequest.md docs/PatchedCableTerminationRequest.md +docs/PatchedCircuitGroupRequest.md docs/PatchedCircuitTerminationRequest.md docs/PatchedCircuitTypeRequest.md docs/PatchedClusterGroupRequest.md @@ -467,6 +690,8 @@ docs/PatchedL2VPNTerminationRequest.md docs/PatchedManufacturerRequest.md docs/PatchedModuleBayRequest.md docs/PatchedModuleBayTemplateRequest.md +docs/PatchedNotificationGroupRequest.md +docs/PatchedNotificationRequest.md docs/PatchedObjectPermissionRequest.md docs/PatchedPlatformRequest.md docs/PatchedPowerPanelRequest.md @@ -479,6 +704,8 @@ docs/PatchedRackRoleRequest.md docs/PatchedRoleRequest.md docs/PatchedRouteTargetRequest.md docs/PatchedSavedFilterRequest.md +docs/PatchedScriptInputRequest.md +docs/PatchedSubscriptionRequest.md docs/PatchedTagRequest.md docs/PatchedTenantRequest.md docs/PatchedTokenRequest.md @@ -491,13 +718,9 @@ docs/PatchedWebhookRequest.md docs/PatchedWebhookRequestHttpMethod.md docs/PatchedWritableAggregateRequest.md docs/PatchedWritableCableRequest.md -docs/PatchedWritableCableRequestLengthUnit.md -docs/PatchedWritableCableRequestStatus.md -docs/PatchedWritableCableRequestType.md +docs/PatchedWritableCircuitGroupAssignmentRequest.md docs/PatchedWritableCircuitRequest.md -docs/PatchedWritableCircuitRequestStatus.md docs/PatchedWritableClusterRequest.md -docs/PatchedWritableClusterRequestStatus.md docs/PatchedWritableConsolePortRequest.md docs/PatchedWritableConsolePortRequestSpeed.md docs/PatchedWritableConsolePortRequestType.md @@ -515,7 +738,6 @@ docs/PatchedWritableCustomFieldRequestUiEditable.md docs/PatchedWritableCustomFieldRequestUiVisible.md docs/PatchedWritableDataSourceRequest.md docs/PatchedWritableDeviceTypeRequest.md -docs/PatchedWritableDeviceTypeRequestWeightUnit.md docs/PatchedWritableDeviceWithConfigContextRequest.md docs/PatchedWritableEventRuleRequest.md docs/PatchedWritableFrontPortRequest.md @@ -541,9 +763,7 @@ docs/PatchedWritableInterfaceTemplateRequest.md docs/PatchedWritableJournalEntryRequest.md docs/PatchedWritableL2VPNRequest.md docs/PatchedWritableLocationRequest.md -docs/PatchedWritableLocationRequestStatus.md docs/PatchedWritableModuleRequest.md -docs/PatchedWritableModuleRequestStatus.md docs/PatchedWritableModuleTypeRequest.md docs/PatchedWritablePowerFeedRequest.md docs/PatchedWritablePowerFeedRequestPhase.md @@ -562,10 +782,13 @@ docs/PatchedWritablePowerPortTemplateRequestType.md docs/PatchedWritablePrefixRequest.md docs/PatchedWritablePrefixRequestStatus.md docs/PatchedWritableRackRequest.md +docs/PatchedWritableRackRequestAirflow.md +docs/PatchedWritableRackRequestFormFactor.md docs/PatchedWritableRackRequestOuterUnit.md docs/PatchedWritableRackRequestStatus.md -docs/PatchedWritableRackRequestType.md docs/PatchedWritableRackRequestWidth.md +docs/PatchedWritableRackTypeRequest.md +docs/PatchedWritableRackTypeRequestFormFactor.md docs/PatchedWritableRearPortRequest.md docs/PatchedWritableRearPortTemplateRequest.md docs/PatchedWritableRegionRequest.md @@ -591,6 +814,7 @@ docs/PatchedWritableWirelessLANGroupRequest.md docs/PatchedWritableWirelessLANRequest.md docs/PatchedWritableWirelessLANRequestStatus.md docs/PatchedWritableWirelessLinkRequest.md +docs/PatchedWritableWirelessLinkRequestDistanceUnit.md docs/Platform.md docs/PlatformRequest.md docs/PowerFeed.md @@ -618,8 +842,11 @@ docs/PowerPanel.md docs/PowerPanelRequest.md docs/PowerPort.md docs/PowerPortRequest.md +docs/PowerPortRequestType.md docs/PowerPortTemplate.md docs/PowerPortTemplateRequest.md +docs/PowerPortType.md +docs/PowerPortTypeLabel.md docs/Prefix.md docs/PrefixRequest.md docs/PrefixStatus.md @@ -634,16 +861,31 @@ docs/ProviderRequest.md docs/RIR.md docs/RIRRequest.md docs/Rack.md +docs/RackAirflow.md +docs/RackAirflowLabel.md docs/RackFace.md docs/RackFace1.md +docs/RackFormFactor.md +docs/RackFormFactorLabel.md +docs/RackOuterUnit.md +docs/RackOuterUnitLabel.md docs/RackRequest.md +docs/RackRequestFormFactor.md +docs/RackRequestOuterUnit.md docs/RackReservation.md docs/RackReservationRequest.md docs/RackRole.md docs/RackRoleRequest.md +docs/RackStatus.md +docs/RackStatusLabel.md +docs/RackType.md +docs/RackTypeRequest.md docs/RackUnit.md docs/RackUnitFace.md docs/RackUnitFaceValue.md +docs/RackWidth.md +docs/RackWidthLabel.md +docs/RackWidthValue.md docs/RearPort.md docs/RearPortRequest.md docs/RearPortTemplate.md @@ -660,6 +902,7 @@ docs/SchemaAPI.md docs/SchemaRetrieveFormatParameter.md docs/SchemaRetrieveLangParameter.md docs/Script.md +docs/ScriptInputRequest.md docs/Service.md docs/ServiceProtocol.md docs/ServiceProtocolLabel.md @@ -671,10 +914,11 @@ docs/SiteGroup.md docs/SiteGroupRequest.md docs/SiteRequest.md docs/StatusAPI.md +docs/Subscription.md +docs/SubscriptionRequest.md docs/Tag.md docs/TagRequest.md docs/TenancyAPI.md -docs/TenancyContactAssignmentsListPriorityParameter.md docs/Tenant.md docs/TenantGroup.md docs/TenantGroupRequest.md @@ -686,9 +930,13 @@ docs/TokenProvision.md docs/TokenProvisionRequest.md docs/TokenRequest.md docs/Tunnel.md +docs/TunnelEncapsulation.md +docs/TunnelEncapsulationLabel.md docs/TunnelGroup.md docs/TunnelGroupRequest.md docs/TunnelRequest.md +docs/TunnelStatus.md +docs/TunnelStatusLabel.md docs/TunnelTermination.md docs/TunnelTerminationRequest.md docs/TunnelTerminationRole.md @@ -712,18 +960,28 @@ docs/VirtualDeviceContextStatus.md docs/VirtualDeviceContextStatusLabel.md docs/VirtualDisk.md docs/VirtualDiskRequest.md -docs/VirtualMachine.md -docs/VirtualMachineRequest.md docs/VirtualMachineWithConfigContext.md docs/VirtualMachineWithConfigContextRequest.md -docs/VirtualMachineWithConfigContextStatus.md -docs/VirtualMachineWithConfigContextStatusLabel.md docs/VirtualizationAPI.md +docs/VirtualizationClustersListStatusIcParameterInner.md docs/VpnAPI.md +docs/VpnIkePoliciesListModeIcParameterInner.md +docs/VpnIkePoliciesListVersionIcParameterInner.md +docs/VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md +docs/VpnIkeProposalsListAuthenticationMethodIcParameterInner.md +docs/VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md +docs/VpnIkeProposalsListGroupIcParameterInner.md +docs/VpnIpsecPoliciesListPfsGroupIcParameterInner.md +docs/VpnIpsecProfilesListModeIcParameterInner.md +docs/VpnL2vpnsListTypeIcParameterInner.md +docs/VpnTunnelTerminationsListRoleIcParameterInner.md +docs/VpnTunnelsListEncapsulationIcParameterInner.md +docs/VpnTunnelsListStatusIcParameterInner.md docs/Webhook.md docs/WebhookRequest.md docs/WirelessAPI.md docs/WirelessChannel.md +docs/WirelessChannel1.md docs/WirelessLAN.md docs/WirelessLANAuthCipher.md docs/WirelessLANAuthCipherLabel.md @@ -738,12 +996,17 @@ docs/WirelessLANStatus.md docs/WirelessLANStatusLabel.md docs/WirelessLANStatusValue.md docs/WirelessLink.md +docs/WirelessLinkDistanceUnit.md +docs/WirelessLinkDistanceUnitLabel.md docs/WirelessLinkRequest.md -docs/WirelessLinkStatus.md -docs/WirelessLinkStatusLabel.md +docs/WirelessLinkRequestDistanceUnit.md docs/WirelessRole.md +docs/WirelessRole1.md +docs/WirelessWirelessLansListStatusIcParameterInner.md +docs/WirelessWirelessLinksListDistanceUnitParameter.md docs/WritableAggregateRequest.md docs/WritableCableRequest.md +docs/WritableCircuitGroupAssignmentRequest.md docs/WritableCircuitRequest.md docs/WritableClusterRequest.md docs/WritableConsolePortRequest.md @@ -781,6 +1044,7 @@ docs/WritablePowerPortRequest.md docs/WritablePowerPortTemplateRequest.md docs/WritablePrefixRequest.md docs/WritableRackRequest.md +docs/WritableRackTypeRequest.md docs/WritableRearPortRequest.md docs/WritableRearPortTemplateRequest.md docs/WritableRegionRequest.md @@ -811,30 +1075,183 @@ model_asn_range.go model_asn_range_request.go model_asn_request.go model_authentication.go +model_authentication_1.go model_authentication_cipher.go +model_authentication_cipher_1.go model_authentication_type.go model_authentication_type_1.go +model_authentication_type_2.go +model_authentication_type_3.go model_available_asn.go model_available_ip.go model_available_prefix.go model_available_vlan.go model_bookmark.go model_bookmark_request.go +model_brief_cable.go +model_brief_cable_request.go +model_brief_circuit.go +model_brief_circuit_group.go +model_brief_circuit_group_assignment_serializer_.go +model_brief_circuit_group_assignment_serializer__priority.go +model_brief_circuit_group_assignment_serializer__priority_label.go +model_brief_circuit_group_assignment_serializer__priority_value.go +model_brief_circuit_group_assignment_serializer_request.go +model_brief_circuit_group_request.go +model_brief_circuit_request.go +model_brief_circuit_type.go +model_brief_circuit_type_request.go +model_brief_cluster.go +model_brief_cluster_group.go +model_brief_cluster_group_request.go +model_brief_cluster_request.go +model_brief_cluster_type.go +model_brief_cluster_type_request.go +model_brief_config_template.go +model_brief_config_template_request.go +model_brief_contact.go +model_brief_contact_group.go +model_brief_contact_group_request.go +model_brief_contact_request.go +model_brief_contact_role.go +model_brief_contact_role_request.go +model_brief_custom_field_choice_set.go +model_brief_custom_field_choice_set_request.go +model_brief_data_file.go +model_brief_data_source.go +model_brief_data_source_request.go +model_brief_device.go +model_brief_device_request.go +model_brief_device_role.go +model_brief_device_role_request.go +model_brief_device_type.go +model_brief_device_type_request.go +model_brief_fhrp_group.go +model_brief_fhrp_group_protocol.go +model_brief_fhrp_group_request.go +model_brief_ike_policy.go +model_brief_ike_policy_request.go +model_brief_interface.go +model_brief_interface_request.go +model_brief_inventory_item_role.go +model_brief_inventory_item_role_request.go +model_brief_ip_address.go +model_brief_ip_address_request.go +model_brief_ip_sec_policy.go +model_brief_ip_sec_policy_request.go +model_brief_ip_sec_profile.go +model_brief_ip_sec_profile_request.go +model_brief_job.go +model_brief_job_request.go +model_brief_job_status.go +model_brief_job_status_label.go +model_brief_job_status_value.go +model_brief_l2_vpn.go +model_brief_l2_vpn_request.go +model_brief_l2_vpn_termination.go +model_brief_l2_vpn_termination_request.go +model_brief_l2_vpn_type.go +model_brief_l2_vpn_type_label.go +model_brief_l2_vpn_type_value.go +model_brief_location.go +model_brief_location_request.go +model_brief_manufacturer.go +model_brief_manufacturer_request.go +model_brief_module.go +model_brief_module_request.go +model_brief_module_type.go +model_brief_module_type_request.go +model_brief_platform.go +model_brief_platform_request.go +model_brief_power_panel.go +model_brief_power_panel_request.go +model_brief_power_port.go +model_brief_power_port_request.go +model_brief_power_port_template.go +model_brief_power_port_template_request.go +model_brief_provider.go +model_brief_provider_account.go +model_brief_provider_account_request.go +model_brief_provider_network.go +model_brief_provider_network_request.go +model_brief_provider_request.go +model_brief_rack.go +model_brief_rack_request.go +model_brief_rack_role.go +model_brief_rack_role_request.go +model_brief_rack_type.go +model_brief_rack_type_request.go +model_brief_rear_port_template.go +model_brief_rear_port_template_request.go +model_brief_region.go +model_brief_region_request.go +model_brief_rir.go +model_brief_rir_request.go +model_brief_role.go +model_brief_role_request.go +model_brief_site.go +model_brief_site_group.go +model_brief_site_group_request.go +model_brief_site_request.go +model_brief_tenant.go +model_brief_tenant_group.go +model_brief_tenant_group_request.go +model_brief_tenant_request.go +model_brief_tunnel.go +model_brief_tunnel_group.go +model_brief_tunnel_group_request.go +model_brief_tunnel_request.go +model_brief_user.go +model_brief_user_request.go +model_brief_virtual_chassis.go +model_brief_virtual_chassis_request.go +model_brief_virtual_machine.go +model_brief_virtual_machine_request.go +model_brief_vlan.go +model_brief_vlan_group.go +model_brief_vlan_group_request.go +model_brief_vlan_request.go +model_brief_vrf.go +model_brief_vrf_request.go +model_brief_wireless_lan_group.go +model_brief_wireless_lan_group_request.go model_cable.go +model_cable_length_unit.go +model_cable_length_unit_label.go +model_cable_length_unit_value.go model_cable_request.go +model_cable_request_length_unit.go +model_cable_status.go +model_cable_status_label.go +model_cable_status_value.go model_cable_termination.go model_cable_termination_request.go +model_cable_type.go model_circuit.go +model_circuit_circuit_termination.go +model_circuit_circuit_termination_request.go +model_circuit_group.go +model_circuit_group_assignment.go +model_circuit_group_assignment_request.go +model_circuit_group_request.go model_circuit_request.go +model_circuit_status.go +model_circuit_status_label.go +model_circuit_status_value.go model_circuit_termination.go model_circuit_termination_request.go model_circuit_type.go model_circuit_type_request.go +model_circuits_circuit_group_assignments_list_priority_parameter.go model_circuits_circuit_terminations_list_cable_end_parameter.go +model_circuits_circuits_list_status__ic_parameter_inner.go model_cluster.go model_cluster_group.go model_cluster_group_request.go model_cluster_request.go +model_cluster_status.go +model_cluster_status_label.go +model_cluster_status_value.go model_cluster_type.go model_cluster_type_request.go model_config_context.go @@ -858,15 +1275,14 @@ model_console_server_port_template.go model_console_server_port_template_request.go model_contact.go model_contact_assignment.go -model_contact_assignment_priority.go -model_contact_assignment_priority_label.go -model_contact_assignment_priority_value.go model_contact_assignment_request.go model_contact_group.go model_contact_group_request.go model_contact_request.go model_contact_role.go model_contact_role_request.go +model_core_jobs_list_status__ic_parameter_inner.go +model_core_object_changes_list_action_parameter.go model_custom_field.go model_custom_field_choice_set.go model_custom_field_choice_set_base_choices.go @@ -894,22 +1310,49 @@ model_dashboard_request.go model_data_file.go model_data_source.go model_data_source_request.go -model_data_source_request_type.go +model_data_source_status.go +model_data_source_status_label.go +model_data_source_status_value.go +model_data_source_type.go +model_data_source_type_label.go +model_data_source_type_value.go model_dcim_cables_list_length_unit_parameter.go +model_dcim_cables_list_status__ic_parameter_inner.go +model_dcim_cables_list_type__ic_parameter_inner.go model_dcim_console_port_templates_list_type_parameter.go +model_dcim_console_ports_list_device_status__ic_parameter_inner.go model_dcim_console_ports_list_speed_parameter.go +model_dcim_console_ports_list_type__ic_parameter_inner.go model_dcim_device_types_list_airflow_parameter.go model_dcim_device_types_list_weight_unit_parameter.go model_dcim_devices_render_config_create_format_parameter.go +model_dcim_front_port_templates_list_type__ic_parameter_inner.go +model_dcim_interface_templates_list_poe_mode__ic_parameter_inner.go +model_dcim_interface_templates_list_poe_type__ic_parameter_inner.go +model_dcim_interface_templates_list_type__ic_parameter_inner.go +model_dcim_interfaces_list_duplex__ic_parameter_inner.go model_dcim_interfaces_list_mode_parameter.go +model_dcim_locations_list_status__ic_parameter_inner.go +model_dcim_module_types_list_airflow_parameter.go +model_dcim_modules_list_status__ic_parameter_inner.go model_dcim_power_feeds_list_phase_parameter.go +model_dcim_power_feeds_list_status__ic_parameter_inner.go model_dcim_power_feeds_list_supply_parameter.go model_dcim_power_feeds_list_type_parameter.go +model_dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner.go model_dcim_power_outlet_templates_list_type_parameter.go +model_dcim_power_outlets_list_type__ic_parameter_inner.go model_dcim_power_port_templates_list_type_parameter.go +model_dcim_power_ports_list_type__ic_parameter_inner.go +model_dcim_rack_types_list_form_factor__ic_parameter_inner.go +model_dcim_rack_types_list_outer_unit_parameter.go +model_dcim_rack_types_list_width__ic_parameter_inner.go model_dcim_racks_elevation_retrieve_face_parameter.go model_dcim_racks_elevation_retrieve_render_parameter.go -model_dcim_racks_list_outer_unit_parameter.go +model_dcim_racks_list_airflow_parameter.go +model_dcim_racks_list_form_factor__ic_parameter_inner.go +model_dcim_racks_list_status__ic_parameter_inner.go +model_dcim_virtual_device_contexts_list_status__ic_parameter_inner.go model_device.go model_device_airflow.go model_device_airflow_label.go @@ -921,36 +1364,50 @@ model_device_bay_template_request.go model_device_face.go model_device_face_label.go model_device_face_value.go -model_device_request.go model_device_role.go model_device_role_request.go model_device_status.go model_device_status_label.go model_device_status_value.go model_device_type.go +model_device_type_airflow.go model_device_type_request.go +model_device_type_request_airflow.go +model_device_type_request_subdevice_role.go +model_device_type_request_weight_unit.go +model_device_type_subdevice_role.go +model_device_type_subdevice_role_label.go +model_device_type_subdevice_role_value.go +model_device_type_weight_unit.go +model_device_type_weight_unit_label.go +model_device_type_weight_unit_value.go model_device_with_config_context.go model_device_with_config_context_request.go model_encryption.go +model_encryption_1.go model_end.go model_end_1.go +model_event.go model_event_rule.go model_event_rule_action_type.go model_event_rule_action_type_label.go model_event_rule_action_type_value.go +model_event_rule_event_types_inner.go model_event_rule_request.go model_export_template.go model_export_template_request.go model_extras_custom_field_choice_sets_list_base_choices_parameter.go model_extras_custom_fields_list_filter_logic_parameter.go +model_extras_custom_fields_list_type__ic_parameter_inner.go model_extras_custom_fields_list_ui_editable_parameter.go model_extras_custom_fields_list_ui_visible_parameter.go model_extras_custom_links_list_button_class_parameter.go -model_extras_object_changes_list_action_parameter.go +model_extras_event_rules_list_action_type__ic_parameter_inner.go +model_extras_journal_entries_list_kind__ic_parameter_inner.go +model_extras_webhooks_list_http_method__ic_parameter_inner.go model_fhrp_group.go model_fhrp_group_assignment.go model_fhrp_group_assignment_request.go -model_fhrp_group_protocol.go model_fhrp_group_request.go model_front_port.go model_front_port_rear_port.go @@ -961,6 +1418,7 @@ model_front_port_template_request.go model_front_port_type.go model_front_port_type_label.go model_front_port_type_value.go +model_generic_object.go model_generic_object_request.go model_group.go model_group_request.go @@ -1028,6 +1486,12 @@ model_inventory_item_template.go model_inventory_item_template_request.go model_ip_address.go model_ip_address_request.go +model_ip_address_role.go +model_ip_address_role_label.go +model_ip_address_role_value.go +model_ip_address_status.go +model_ip_address_status_label.go +model_ip_address_status_value.go model_ip_range.go model_ip_range_request.go model_ip_range_status.go @@ -1042,12 +1506,13 @@ model_ip_sec_profile_mode_value.go model_ip_sec_profile_request.go model_ip_sec_proposal.go model_ip_sec_proposal_request.go +model_ipam_fhrp_groups_list_protocol__ic_parameter_inner.go +model_ipam_ip_addresses_list_role__ic_parameter_inner.go +model_ipam_ip_addresses_list_status__ic_parameter_inner.go +model_ipam_ip_ranges_list_status__ic_parameter_inner.go +model_ipam_prefixes_list_status__ic_parameter_inner.go model_ipam_service_templates_list_protocol_parameter.go model_job.go -model_job_request.go -model_job_status.go -model_job_status_label.go -model_job_status_value.go model_journal_entry.go model_journal_entry_kind.go model_journal_entry_kind_label.go @@ -1057,23 +1522,28 @@ model_l2_vpn.go model_l2_vpn_request.go model_l2_vpn_termination.go model_l2_vpn_termination_request.go -model_l2_vpn_type.go -model_l2_vpn_type_label.go -model_l2_vpn_type_value.go model_location.go model_location_request.go +model_location_status.go +model_location_status_label.go +model_location_status_value.go model_manufacturer.go model_manufacturer_request.go model_module.go model_module_bay.go -model_module_bay_nested_module.go -model_module_bay_nested_module_request.go model_module_bay_request.go model_module_bay_template.go model_module_bay_template_request.go model_module_request.go +model_module_status.go +model_module_status_label.go +model_module_status_value.go model_module_type.go +model_module_type_airflow.go +model_module_type_airflow_label.go +model_module_type_airflow_value.go model_module_type_request.go +model_module_type_request_airflow.go model_nested_contact_group.go model_nested_contact_group_request.go model_nested_device.go @@ -1083,8 +1553,13 @@ model_nested_interface.go model_nested_interface_request.go model_nested_interface_template.go model_nested_interface_template_request.go +model_nested_ip_address.go +model_nested_ip_address_request.go +model_nested_location.go +model_nested_location_request.go model_nested_module_bay.go model_nested_module_bay_request.go +model_nested_provider_account.go model_nested_region.go model_nested_region_request.go model_nested_site_group.go @@ -1098,9 +1573,14 @@ model_nested_virtual_machine.go model_nested_virtual_machine_request.go model_nested_vm_interface.go model_nested_vm_interface_request.go +model_nested_wireless_lan_group.go model_nested_wireless_lan_group_request.go model_nested_wireless_link.go model_nested_wireless_link_request.go +model_notification.go +model_notification_group.go +model_notification_group_request.go +model_notification_request.go model_object_change.go model_object_change_action.go model_object_change_action_label.go @@ -1114,6 +1594,8 @@ model_paginated_asn_range_list.go model_paginated_bookmark_list.go model_paginated_cable_list.go model_paginated_cable_termination_list.go +model_paginated_circuit_group_assignment_list.go +model_paginated_circuit_group_list.go model_paginated_circuit_list.go model_paginated_circuit_termination_list.go model_paginated_circuit_type_list.go @@ -1170,6 +1652,8 @@ model_paginated_module_bay_list.go model_paginated_module_bay_template_list.go model_paginated_module_list.go model_paginated_module_type_list.go +model_paginated_notification_group_list.go +model_paginated_notification_list.go model_paginated_object_change_list.go model_paginated_object_permission_list.go model_paginated_object_type_list.go @@ -1187,6 +1671,7 @@ model_paginated_provider_network_list.go model_paginated_rack_list.go model_paginated_rack_reservation_list.go model_paginated_rack_role_list.go +model_paginated_rack_type_list.go model_paginated_rack_unit_list.go model_paginated_rear_port_list.go model_paginated_rear_port_template_list.go @@ -1200,6 +1685,7 @@ model_paginated_service_list.go model_paginated_service_template_list.go model_paginated_site_group_list.go model_paginated_site_list.go +model_paginated_subscription_list.go model_paginated_tag_list.go model_paginated_tenant_group_list.go model_paginated_tenant_list.go @@ -1226,6 +1712,7 @@ model_patched_asn_range_request.go model_patched_asn_request.go model_patched_bookmark_request.go model_patched_cable_termination_request.go +model_patched_circuit_group_request.go model_patched_circuit_termination_request.go model_patched_circuit_type_request.go model_patched_cluster_group_request.go @@ -1251,6 +1738,8 @@ model_patched_l2_vpn_termination_request.go model_patched_manufacturer_request.go model_patched_module_bay_request.go model_patched_module_bay_template_request.go +model_patched_notification_group_request.go +model_patched_notification_request.go model_patched_object_permission_request.go model_patched_platform_request.go model_patched_power_panel_request.go @@ -1263,6 +1752,8 @@ model_patched_rir_request.go model_patched_role_request.go model_patched_route_target_request.go model_patched_saved_filter_request.go +model_patched_script_input_request.go +model_patched_subscription_request.go model_patched_tag_request.go model_patched_tenant_request.go model_patched_token_request.go @@ -1275,13 +1766,9 @@ model_patched_webhook_request.go model_patched_webhook_request_http_method.go model_patched_writable_aggregate_request.go model_patched_writable_cable_request.go -model_patched_writable_cable_request_length_unit.go -model_patched_writable_cable_request_status.go -model_patched_writable_cable_request_type.go +model_patched_writable_circuit_group_assignment_request.go model_patched_writable_circuit_request.go -model_patched_writable_circuit_request_status.go model_patched_writable_cluster_request.go -model_patched_writable_cluster_request_status.go model_patched_writable_console_port_request.go model_patched_writable_console_port_request_speed.go model_patched_writable_console_port_request_type.go @@ -1299,7 +1786,6 @@ model_patched_writable_custom_field_request_ui_editable.go model_patched_writable_custom_field_request_ui_visible.go model_patched_writable_data_source_request.go model_patched_writable_device_type_request.go -model_patched_writable_device_type_request_weight_unit.go model_patched_writable_device_with_config_context_request.go model_patched_writable_event_rule_request.go model_patched_writable_front_port_request.go @@ -1325,9 +1811,7 @@ model_patched_writable_ip_sec_proposal_request.go model_patched_writable_journal_entry_request.go model_patched_writable_l2_vpn_request.go model_patched_writable_location_request.go -model_patched_writable_location_request_status.go model_patched_writable_module_request.go -model_patched_writable_module_request_status.go model_patched_writable_module_type_request.go model_patched_writable_power_feed_request.go model_patched_writable_power_feed_request_phase.go @@ -1346,10 +1830,13 @@ model_patched_writable_power_port_template_request_type.go model_patched_writable_prefix_request.go model_patched_writable_prefix_request_status.go model_patched_writable_rack_request.go +model_patched_writable_rack_request_airflow.go +model_patched_writable_rack_request_form_factor.go model_patched_writable_rack_request_outer_unit.go model_patched_writable_rack_request_status.go -model_patched_writable_rack_request_type.go model_patched_writable_rack_request_width.go +model_patched_writable_rack_type_request.go +model_patched_writable_rack_type_request_form_factor.go model_patched_writable_rear_port_request.go model_patched_writable_rear_port_template_request.go model_patched_writable_region_request.go @@ -1375,6 +1862,7 @@ model_patched_writable_wireless_lan_group_request.go model_patched_writable_wireless_lan_request.go model_patched_writable_wireless_lan_request_status.go model_patched_writable_wireless_link_request.go +model_patched_writable_wireless_link_request_distance_unit.go model_platform.go model_platform_request.go model_power_feed.go @@ -1402,8 +1890,11 @@ model_power_panel.go model_power_panel_request.go model_power_port.go model_power_port_request.go +model_power_port_request_type.go model_power_port_template.go model_power_port_template_request.go +model_power_port_type.go +model_power_port_type_label.go model_prefix.go model_prefix_request.go model_prefix_status.go @@ -1416,16 +1907,31 @@ model_provider_network.go model_provider_network_request.go model_provider_request.go model_rack.go +model_rack_airflow.go +model_rack_airflow_label.go model_rack_face.go model_rack_face_1.go +model_rack_form_factor.go +model_rack_form_factor_label.go +model_rack_outer_unit.go +model_rack_outer_unit_label.go model_rack_request.go +model_rack_request_form_factor.go +model_rack_request_outer_unit.go model_rack_reservation.go model_rack_reservation_request.go model_rack_role.go model_rack_role_request.go +model_rack_status.go +model_rack_status_label.go +model_rack_type.go +model_rack_type_request.go model_rack_unit.go model_rack_unit_face.go model_rack_unit_face_value.go +model_rack_width.go +model_rack_width_label.go +model_rack_width_value.go model_rear_port.go model_rear_port_request.go model_rear_port_template.go @@ -1443,6 +1949,7 @@ model_saved_filter_request.go model_schema_retrieve_format_parameter.go model_schema_retrieve_lang_parameter.go model_script.go +model_script_input_request.go model_service.go model_service_protocol.go model_service_protocol_label.go @@ -1453,9 +1960,10 @@ model_site.go model_site_group.go model_site_group_request.go model_site_request.go +model_subscription.go +model_subscription_request.go model_tag.go model_tag_request.go -model_tenancy_contact_assignments_list_priority_parameter.go model_tenant.go model_tenant_group.go model_tenant_group_request.go @@ -1467,9 +1975,13 @@ model_token_provision.go model_token_provision_request.go model_token_request.go model_tunnel.go +model_tunnel_encapsulation.go +model_tunnel_encapsulation_label.go model_tunnel_group.go model_tunnel_group_request.go model_tunnel_request.go +model_tunnel_status.go +model_tunnel_status_label.go model_tunnel_termination.go model_tunnel_termination_request.go model_tunnel_termination_role.go @@ -1484,23 +1996,33 @@ model_virtual_device_context_status.go model_virtual_device_context_status_label.go model_virtual_disk.go model_virtual_disk_request.go -model_virtual_machine.go -model_virtual_machine_request.go model_virtual_machine_with_config_context.go model_virtual_machine_with_config_context_request.go -model_virtual_machine_with_config_context_status.go -model_virtual_machine_with_config_context_status_label.go +model_virtualization_clusters_list_status__ic_parameter_inner.go model_vlan.go model_vlan_group.go model_vlan_group_request.go model_vlan_request.go model_vm_interface.go model_vm_interface_request.go +model_vpn_ike_policies_list_mode__ic_parameter_inner.go +model_vpn_ike_policies_list_version__ic_parameter_inner.go +model_vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner.go +model_vpn_ike_proposals_list_authentication_method__ic_parameter_inner.go +model_vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner.go +model_vpn_ike_proposals_list_group__ic_parameter_inner.go +model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go +model_vpn_ipsec_profiles_list_mode__ic_parameter_inner.go +model_vpn_l2vpns_list_type__ic_parameter_inner.go +model_vpn_tunnel_terminations_list_role__ic_parameter_inner.go +model_vpn_tunnels_list_encapsulation__ic_parameter_inner.go +model_vpn_tunnels_list_status__ic_parameter_inner.go model_vrf.go model_vrf_request.go model_webhook.go model_webhook_request.go model_wireless_channel.go +model_wireless_channel_1.go model_wireless_lan.go model_wireless_lan_auth_cipher.go model_wireless_lan_auth_cipher_label.go @@ -1515,12 +2037,17 @@ model_wireless_lan_status.go model_wireless_lan_status_label.go model_wireless_lan_status_value.go model_wireless_link.go +model_wireless_link_distance_unit.go +model_wireless_link_distance_unit_label.go model_wireless_link_request.go -model_wireless_link_status.go -model_wireless_link_status_label.go +model_wireless_link_request_distance_unit.go model_wireless_role.go +model_wireless_role_1.go +model_wireless_wireless_lans_list_status__ic_parameter_inner.go +model_wireless_wireless_links_list_distance_unit_parameter.go model_writable_aggregate_request.go model_writable_cable_request.go +model_writable_circuit_group_assignment_request.go model_writable_circuit_request.go model_writable_cluster_request.go model_writable_console_port_request.go @@ -1558,6 +2085,7 @@ model_writable_power_port_request.go model_writable_power_port_template_request.go model_writable_prefix_request.go model_writable_rack_request.go +model_writable_rack_type_request.go model_writable_rear_port_request.go model_writable_rear_port_template_request.go model_writable_region_request.go diff --git a/api/netbox_docker_version b/api/netbox_docker_version index dedcc7d43..b50214693 100644 --- a/api/netbox_docker_version +++ b/api/netbox_docker_version @@ -1 +1 @@ -2.9.1 +3.0.2 diff --git a/api/netbox_version b/api/netbox_version index c4e41f945..de197cc33 100644 --- a/api/netbox_version +++ b/api/netbox_version @@ -1 +1 @@ -4.0.3 +4.1.3 diff --git a/api/openapi.yaml b/api/openapi.yaml index 226031d47..0405b41b7 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -1,68 +1,42 @@ openapi: 3.0.3 info: title: NetBox REST API - version: 4.0.3 (4.0) + version: 4.1.3 (4.1) license: name: Apache v2 License paths: - /api/circuits/circuit-terminations/: + /api/circuits/circuit-group-assignments/: get: - operationId: circuits_circuit_terminations_list - description: Get a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_list + description: Get a list of Circuit group assignment objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: circuit schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + title: Circuit ID + description: Circuit (CID) explode: true style: form - in: query - name: cable_id__n + name: circuit__n schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + title: Circuit ID + description: Circuit (CID) explode: true style: form - - in: query - name: cabled - schema: - type: boolean - in: query name: circuit_id schema: type: array items: type: integer - description: Circuit + description: Circuit (ID) explode: true style: form - in: query @@ -71,7 +45,7 @@ paths: type: array items: type: integer - description: Circuit + description: Circuit (ID) explode: true style: form - in: query @@ -143,87 +117,39 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: group schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__nie + name: group__n schema: type: array items: type: string + description: Circuit group (slug) explode: true style: form - in: query - name: description__niew + name: group_id schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + description: Circuit group (ID) explode: true style: form - in: query @@ -353,19 +279,11 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_connected - schema: - type: boolean - in: query name: modified_by_request schema: type: string format: uuid - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -379,147 +297,22 @@ paths: schema: type: string - in: query - name: port_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__empty - schema: - type: boolean - - in: query - name: port_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: port_speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: pp_info - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__empty - schema: - type: boolean - - in: query - name: pp_info__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pp_info__nisw + name: priority schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query name: provider schema: @@ -556,69 +349,11 @@ paths: description: Provider (ID) explode: true style: form - - in: query - name: provider_network_id - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - - in: query - name: provider_network_id__n - schema: - type: array - items: - type: integer - nullable: true - description: ProviderNetwork (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - - in: query - name: site - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - in: query name: tag schema: @@ -635,177 +370,11 @@ paths: type: string explode: true style: form - - in: query - name: term_side - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - - in: query - name: term_side__n - schema: - type: string - x-spec-enum-id: 95b8fcc737f355d0 - title: Termination - enum: - - A - - Z - description: '* `A` - A - - * `Z` - Z' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: upstream_speed - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__empty - schema: - type: boolean - - in: query - name: upstream_speed__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: upstream_speed__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: xconnect_id - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__empty - schema: - type: boolean - - in: query - name: xconnect_id__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: xconnect_id__nisw - schema: - type: array - items: - type: string - explode: true - style: form tags: - circuits security: @@ -816,21 +385,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTerminationList' + $ref: '#/components/schemas/PaginatedCircuitGroupAssignmentList' description: '' post: - operationId: circuits_circuit_terminations_create - description: Post a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_create + description: Post a list of Circuit group assignment objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -840,11 +409,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_bulk_update - description: Put a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_update + description: Put a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -853,12 +422,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -870,11 +439,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_bulk_partial_update - description: Patch a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_partial_update + description: Patch a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -883,12 +452,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -900,11 +469,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_bulk_destroy - description: Delete a list of circuit termination objects. + operationId: circuits_circuit_group_assignments_bulk_destroy + description: Delete a list of Circuit group assignment objects. tags: - circuits requestBody: @@ -913,12 +482,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/CircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -926,16 +495,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/: + /api/circuits/circuit-group-assignments/{id}/: get: - operationId: circuits_circuit_terminations_retrieve - description: Get a circuit termination object. + operationId: circuits_circuit_group_assignments_retrieve + description: Get a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -947,17 +516,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' put: - operationId: circuits_circuit_terminations_update - description: Put a circuit termination object. + operationId: circuits_circuit_group_assignments_update + description: Put a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -965,10 +534,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTerminationRequest' + $ref: '#/components/schemas/WritableCircuitGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -978,17 +547,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' patch: - operationId: circuits_circuit_terminations_partial_update - description: Patch a circuit termination object. + operationId: circuits_circuit_group_assignments_partial_update + description: Patch a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -996,10 +565,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTerminationRequest' + $ref: '#/components/schemas/PatchedWritableCircuitGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1008,17 +577,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTermination' + $ref: '#/components/schemas/CircuitGroupAssignment' description: '' delete: - operationId: circuits_circuit_terminations_destroy - description: Delete a circuit termination object. + operationId: circuits_circuit_group_assignments_destroy + description: Delete a Circuit group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit termination. + description: A unique integer value identifying this Circuit group assignment. required: true tags: - circuits @@ -1028,118 +597,11 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-terminations/{id}/paths/: - get: - operationId: circuits_circuit_terminations_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this circuit termination. - required: true - tags: - - circuits - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CircuitTermination' - description: '' - /api/circuits/circuit-types/: + /api/circuits/circuit-groups/: get: - operationId: circuits_circuit_types_list - description: Get a list of circuit type objects. + operationId: circuits_circuit_groups_list + description: Get a list of circuit group objects. parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: created schema: @@ -1625,6 +1087,76 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -1640,21 +1172,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitTypeList' + $ref: '#/components/schemas/PaginatedCircuitGroupList' description: '' post: - operationId: circuits_circuit_types_create - description: Post a list of circuit type objects. + operationId: circuits_circuit_groups_create + description: Post a list of circuit group objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1664,11 +1196,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_bulk_update - description: Put a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_update + description: Put a list of circuit group objects. tags: - circuits requestBody: @@ -1677,12 +1209,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1694,11 +1226,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_bulk_partial_update - description: Patch a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_partial_update + description: Patch a list of circuit group objects. tags: - circuits requestBody: @@ -1707,12 +1239,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1724,11 +1256,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_bulk_destroy - description: Delete a list of circuit type objects. + operationId: circuits_circuit_groups_bulk_destroy + description: Delete a list of circuit group objects. tags: - circuits requestBody: @@ -1737,12 +1269,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1750,16 +1282,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuit-types/{id}/: + /api/circuits/circuit-groups/{id}/: get: - operationId: circuits_circuit_types_retrieve - description: Get a circuit type object. + operationId: circuits_circuit_groups_retrieve + description: Get a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1771,17 +1303,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' put: - operationId: circuits_circuit_types_update - description: Put a circuit type object. + operationId: circuits_circuit_groups_update + description: Put a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1789,10 +1321,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/CircuitGroupRequest' required: true security: - cookieAuth: [] @@ -1802,17 +1334,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' patch: - operationId: circuits_circuit_types_partial_update - description: Patch a circuit type object. + operationId: circuits_circuit_groups_partial_update + description: Patch a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1820,10 +1352,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCircuitTypeRequest' + $ref: '#/components/schemas/PatchedCircuitGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -1832,17 +1364,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CircuitType' + $ref: '#/components/schemas/CircuitGroup' description: '' delete: - operationId: circuits_circuit_types_destroy - description: Delete a circuit type object. + operationId: circuits_circuit_groups_destroy + description: Delete a circuit group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit type. + description: A unique integer value identifying this circuit group. required: true tags: - circuits @@ -1852,205 +1384,62 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/: + /api/circuits/circuit-terminations/: get: - operationId: circuits_circuits_list - description: Get a list of circuit objects. + operationId: circuits_circuit_terminations_list + description: Get a list of circuit termination objects. parameters: - in: query - name: cid - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__empty - schema: - type: boolean - - in: query - name: cid__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: cid__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: commit_rate - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__empty - schema: - type: boolean - - in: query - name: commit_rate__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: commit_rate__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: contact + name: cable_end schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact__n + name: cable_id schema: type: array items: type: integer - description: Contact + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cabled schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: boolean - in: query - name: contact_role + name: circuit_id schema: type: array items: type: integer - description: Contact Role + description: Circuit explode: true style: form - in: query - name: contact_role__n + name: circuit_id__n schema: type: array items: type: integer - description: Contact Role + description: Circuit explode: true style: form - in: query @@ -2263,64 +1652,6 @@ paths: format: int32 explode: true style: form - - in: query - name: install_date - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__empty - schema: - type: boolean - - in: query - name: install_date__gt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__gte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lt - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__lte - schema: - type: array - items: - type: string - format: date - explode: true - style: form - - in: query - name: install_date__n - schema: - type: array - items: - type: string - format: date - explode: true - style: form - in: query name: last_updated schema: @@ -2390,11 +1721,19 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -2408,457 +1747,421 @@ paths: schema: type: string - in: query - name: provider + name: port_speed schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider__n + name: port_speed__empty + schema: + type: boolean + - in: query + name: port_speed__gt schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account + name: port_speed__gte schema: type: array items: - type: string - title: Account ID - description: Provider account (account) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account__n + name: port_speed__lt schema: type: array items: - type: string - title: Account ID - description: Provider account (account) + type: integer + format: int32 explode: true style: form - in: query - name: provider_account_id + name: port_speed__lte schema: type: array items: type: integer - description: Provider account (ID) + format: int32 explode: true style: form - in: query - name: provider_account_id__n + name: port_speed__n schema: type: array items: type: integer - description: Provider account (ID) + format: int32 explode: true style: form - in: query - name: provider_id + name: pp_info schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: pp_info__empty + schema: + type: boolean + - in: query + name: pp_info__ic schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_network_id + name: pp_info__ie schema: type: array items: - type: integer - description: Provider network (ID) + type: string explode: true style: form - in: query - name: provider_network_id__n + name: pp_info__iew schema: type: array items: - type: integer - description: Provider network (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: pp_info__isw schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: pp_info__n schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: pp_info__nic schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: pp_info__nie schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: pp_info__niew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: pp_info__nisw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: provider schema: type: array items: - type: integer - description: Site group (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group__n + name: provider__n schema: type: array items: - type: integer - description: Site group (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: site_group_id + name: provider_id schema: type: array items: type: integer - description: Site group (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_group_id__n + name: provider_id__n schema: type: array items: type: integer - description: Site group (ID) + description: Provider (ID) explode: true style: form - in: query - name: site_id + name: provider_network_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: ProviderNetwork (ID) explode: true style: form - in: query - name: site_id__n + name: provider_network_id__n schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: ProviderNetwork (ID) explode: true style: form - in: query - name: status + name: q + schema: + type: string + description: Search + - in: query + name: site schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 + description: Site (slug) explode: true style: form - in: query - name: status__n + name: site__n schema: type: array items: type: string - x-spec-enum-id: 63c838134a022200 + description: Site (slug) explode: true style: form - in: query - name: tag + name: site_id schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: tag__n + name: site_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Site (ID) explode: true style: form - in: query - name: tenant + name: tag schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: tag__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: term_side schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string + x-spec-enum-id: 95b8fcc737f355d0 + title: Termination + enum: + - A + - Z + description: '* `A` - A + + * `Z` - Z' - in: query - name: tenant_group__n + name: updated_by_request schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string + format: uuid - in: query - name: tenant_group_id + name: upstream_speed schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: upstream_speed__empty + schema: + type: boolean + - in: query + name: upstream_speed__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: upstream_speed__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: upstream_speed__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id + name: upstream_speed__lte schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_a_id__n + name: upstream_speed__n schema: type: array items: type: integer - nullable: true - description: Termination A (ID) + format: int32 explode: true style: form - in: query - name: termination_date + name: xconnect_id schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__empty + name: xconnect_id__empty schema: type: boolean - in: query - name: termination_date__gt + name: xconnect_id__ic schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__gte + name: xconnect_id__ie schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lt + name: xconnect_id__iew schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__lte + name: xconnect_id__isw schema: type: array items: type: string - format: date explode: true style: form - in: query - name: termination_date__n + name: xconnect_id__n schema: type: array items: type: string - format: date - explode: true - style: form - - in: query - name: termination_z_id - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) - explode: true - style: form - - in: query - name: termination_z_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Termination A (ID) explode: true style: form - in: query - name: type + name: xconnect_id__nic schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type__n + name: xconnect_id__nie schema: type: array items: type: string - description: Circuit type (slug) explode: true style: form - in: query - name: type_id + name: xconnect_id__niew schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - in: query - name: type_id__n + name: xconnect_id__nisw schema: type: array items: - type: integer - description: Circuit type (ID) + type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - circuits security: @@ -2869,21 +2172,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCircuitList' + $ref: '#/components/schemas/PaginatedCircuitTerminationList' description: '' post: - operationId: circuits_circuits_create - description: Post a list of circuit objects. + operationId: circuits_circuit_terminations_create + description: Post a list of circuit termination objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2893,11 +2196,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_bulk_update - description: Put a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_update + description: Put a list of circuit termination objects. tags: - circuits requestBody: @@ -2906,12 +2209,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2923,11 +2226,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_bulk_partial_update - description: Patch a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_partial_update + description: Patch a list of circuit termination objects. tags: - circuits requestBody: @@ -2936,12 +2239,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2953,11 +2256,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_bulk_destroy - description: Delete a list of circuit objects. + operationId: circuits_circuit_terminations_bulk_destroy + description: Delete a list of circuit termination objects. tags: - circuits requestBody: @@ -2966,12 +2269,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -2979,16 +2282,16 @@ paths: responses: '204': description: No response body - /api/circuits/circuits/{id}/: + /api/circuits/circuit-terminations/{id}/: get: - operationId: circuits_circuits_retrieve - description: Get a circuit object. + operationId: circuits_circuit_terminations_retrieve + description: Get a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3000,17 +2303,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' put: - operationId: circuits_circuits_update - description: Put a circuit object. + operationId: circuits_circuit_terminations_update + description: Put a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3018,10 +2321,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCircuitRequest' + $ref: '#/components/schemas/CircuitTerminationRequest' required: true security: - cookieAuth: [] @@ -3031,17 +2334,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' patch: - operationId: circuits_circuits_partial_update - description: Patch a circuit object. + operationId: circuits_circuit_terminations_partial_update + description: Patch a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3049,10 +2352,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCircuitRequest' + $ref: '#/components/schemas/PatchedCircuitTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3061,17 +2364,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/CircuitTermination' description: '' delete: - operationId: circuits_circuits_destroy - description: Delete a circuit object. + operationId: circuits_circuit_terminations_destroy + description: Delete a circuit termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this circuit. + description: A unique integer value identifying this circuit termination. required: true tags: - circuits @@ -3081,13 +2384,36 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/: + /api/circuits/circuit-terminations/{id}/paths/: get: - operationId: circuits_provider_accounts_list - description: Get a list of provider account objects. + operationId: circuits_circuit_terminations_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this circuit termination. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/CircuitTermination' + description: '' + /api/circuits/circuit-types/: + get: + operationId: circuits_circuit_types_list + description: Get a list of circuit type objects. parameters: - in: query - name: account + name: color schema: type: array items: @@ -3095,11 +2421,11 @@ paths: explode: true style: form - in: query - name: account__empty + name: color__empty schema: type: boolean - in: query - name: account__ic + name: color__ic schema: type: array items: @@ -3107,7 +2433,7 @@ paths: explode: true style: form - in: query - name: account__ie + name: color__ie schema: type: array items: @@ -3115,7 +2441,7 @@ paths: explode: true style: form - in: query - name: account__iew + name: color__iew schema: type: array items: @@ -3123,7 +2449,7 @@ paths: explode: true style: form - in: query - name: account__isw + name: color__isw schema: type: array items: @@ -3131,7 +2457,7 @@ paths: explode: true style: form - in: query - name: account__n + name: color__n schema: type: array items: @@ -3139,7 +2465,7 @@ paths: explode: true style: form - in: query - name: account__nic + name: color__nic schema: type: array items: @@ -3147,7 +2473,7 @@ paths: explode: true style: form - in: query - name: account__nie + name: color__nie schema: type: array items: @@ -3155,7 +2481,7 @@ paths: explode: true style: form - in: query - name: account__niew + name: color__niew schema: type: array items: @@ -3163,7 +2489,7 @@ paths: explode: true style: form - in: query - name: account__nisw + name: color__nisw schema: type: array items: @@ -3551,46 +2877,94 @@ paths: schema: type: string - in: query - name: provider + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: slug__ie schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: slug__iew schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -3622,21 +2996,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderAccountList' + $ref: '#/components/schemas/PaginatedCircuitTypeList' description: '' post: - operationId: circuits_provider_accounts_create - description: Post a list of provider account objects. + operationId: circuits_circuit_types_create + description: Post a list of circuit type objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3646,11 +3020,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_bulk_update - description: Put a list of provider account objects. + operationId: circuits_circuit_types_bulk_update + description: Put a list of circuit type objects. tags: - circuits requestBody: @@ -3659,12 +3033,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3676,11 +3050,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_bulk_partial_update - description: Patch a list of provider account objects. + operationId: circuits_circuit_types_bulk_partial_update + description: Patch a list of circuit type objects. tags: - circuits requestBody: @@ -3689,12 +3063,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3706,11 +3080,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_bulk_destroy - description: Delete a list of provider account objects. + operationId: circuits_circuit_types_bulk_destroy + description: Delete a list of circuit type objects. tags: - circuits requestBody: @@ -3719,12 +3093,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3732,16 +3106,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-accounts/{id}/: + /api/circuits/circuit-types/{id}/: get: - operationId: circuits_provider_accounts_retrieve - description: Get a provider account object. + operationId: circuits_circuit_types_retrieve + description: Get a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3753,17 +3127,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' put: - operationId: circuits_provider_accounts_update - description: Put a provider account object. + operationId: circuits_circuit_types_update + description: Put a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3771,10 +3145,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderAccountRequest' + $ref: '#/components/schemas/CircuitTypeRequest' required: true security: - cookieAuth: [] @@ -3784,17 +3158,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' patch: - operationId: circuits_provider_accounts_partial_update - description: Patch a provider account object. + operationId: circuits_circuit_types_partial_update + description: Patch a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3802,10 +3176,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderAccountRequest' + $ref: '#/components/schemas/PatchedCircuitTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -3814,17 +3188,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderAccount' + $ref: '#/components/schemas/CircuitType' description: '' delete: - operationId: circuits_provider_accounts_destroy - description: Delete a provider account object. + operationId: circuits_circuit_types_destroy + description: Delete a circuit type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider account. + description: A unique integer value identifying this circuit type. required: true tags: - circuits @@ -3834,11 +3208,205 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/: + /api/circuits/circuits/: get: - operationId: circuits_provider_networks_list - description: Get a list of provider network objects. + operationId: circuits_circuits_list + description: Get a list of circuit objects. parameters: + - in: query + name: cid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__empty + schema: + type: boolean + - in: query + name: cid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: cid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: commit_rate + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__empty + schema: + type: boolean + - in: query + name: commit_rate__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: commit_rate__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -4049,6 +3617,64 @@ paths: format: int32 explode: true style: form + - in: query + name: install_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__empty + schema: + type: boolean + - in: query + name: install_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: install_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form - in: query name: last_updated schema: @@ -4123,52 +3749,117 @@ paths: schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__empty + name: provider__n schema: - type: boolean + type: array + items: + type: string + description: Provider (slug) + explode: true + style: form - in: query - name: name__ic + name: provider_account schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__ie + name: provider_account__n schema: type: array items: type: string + title: Account ID + description: Provider account (account) explode: true style: form - in: query - name: name__iew + name: provider_account_id schema: type: array items: - type: string + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: name__isw + name: provider_account_id__n schema: type: array items: - type: string + type: integer + description: Provider account (ID) explode: true style: form - in: query - name: name__n + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_network_id + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: provider_network_id__n + schema: + type: array + items: + type: integer + description: Provider network (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -4176,7 +3867,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: region__n schema: type: array items: @@ -4184,7 +3875,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: region_id schema: type: array items: @@ -4192,7 +3883,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: region_id__n schema: type: array items: @@ -4200,148 +3891,327 @@ paths: explode: true style: form - in: query - name: name__nisw + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: site__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: provider + name: site_group__n schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider__n + name: site_group_id schema: type: array items: type: string - description: Provider (slug) explode: true style: form - in: query - name: provider_id + name: site_group_id__n schema: type: array items: - type: integer - description: Provider (ID) + type: string explode: true style: form - in: query - name: provider_id__n + name: site_id schema: type: array items: type: integer - description: Provider (ID) + description: Site (ID) explode: true style: form - in: query - name: q + name: site_id__n schema: - type: string - description: Search + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: service_id + name: status schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 explode: true style: form - in: query - name: service_id__empty + name: status__empty schema: type: boolean - in: query - name: service_id__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query - name: service_id__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 63c838134a022200 + enum: + - active + - decommissioned + - deprovisioning + - offline + - planned + - provisioning + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' explode: true style: form - in: query @@ -4360,6 +4230,210 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: termination_a_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_a_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_date + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__empty + schema: + type: boolean + - in: query + name: termination_date__gt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__gte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__lt + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__lte + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_date__n + schema: + type: array + items: + type: string + format: date + explode: true + style: form + - in: query + name: termination_z_id + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: termination_z_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Termination A (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + description: Circuit type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Circuit type (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -4375,21 +4449,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderNetworkList' + $ref: '#/components/schemas/PaginatedCircuitList' description: '' post: - operationId: circuits_provider_networks_create - description: Post a list of provider network objects. + operationId: circuits_circuits_create + description: Post a list of circuit objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4399,11 +4473,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_bulk_update - description: Put a list of provider network objects. + operationId: circuits_circuits_bulk_update + description: Put a list of circuit objects. tags: - circuits requestBody: @@ -4412,12 +4486,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4429,11 +4503,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_bulk_partial_update - description: Patch a list of provider network objects. + operationId: circuits_circuits_bulk_partial_update + description: Patch a list of circuit objects. tags: - circuits requestBody: @@ -4442,12 +4516,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4459,11 +4533,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_bulk_destroy - description: Delete a list of provider network objects. + operationId: circuits_circuits_bulk_destroy + description: Delete a list of circuit objects. tags: - circuits requestBody: @@ -4472,12 +4546,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/CircuitRequest' required: true security: - cookieAuth: [] @@ -4485,16 +4559,16 @@ paths: responses: '204': description: No response body - /api/circuits/provider-networks/{id}/: + /api/circuits/circuits/{id}/: get: - operationId: circuits_provider_networks_retrieve - description: Get a provider network object. + operationId: circuits_circuits_retrieve + description: Get a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4506,17 +4580,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' put: - operationId: circuits_provider_networks_update - description: Put a provider network object. + operationId: circuits_circuits_update + description: Put a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4524,10 +4598,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderNetworkRequest' + $ref: '#/components/schemas/WritableCircuitRequest' required: true security: - cookieAuth: [] @@ -4537,17 +4611,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' patch: - operationId: circuits_provider_networks_partial_update - description: Patch a provider network object. + operationId: circuits_circuits_partial_update + description: Patch a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4555,10 +4629,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderNetworkRequest' + $ref: '#/components/schemas/PatchedWritableCircuitRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -4567,17 +4641,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderNetwork' + $ref: '#/components/schemas/Circuit' description: '' delete: - operationId: circuits_provider_networks_destroy - description: Delete a provider network object. + operationId: circuits_circuits_destroy + description: Delete a circuit object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider network. + description: A unique integer value identifying this circuit. required: true tags: - circuits @@ -4587,105 +4661,93 @@ paths: responses: '204': description: No response body - /api/circuits/providers/: + /api/circuits/provider-accounts/: get: - operationId: circuits_providers_list - description: Get a list of provider objects. + operationId: circuits_provider_accounts_list + description: Get a list of provider account objects. parameters: - in: query - name: asn + name: account schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn__n + name: account__empty + schema: + type: boolean + - in: query + name: account__ic schema: type: array items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: ASN + type: string explode: true style: form - in: query - name: asn_id + name: account__ie schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: asn_id__n + name: account__iew schema: type: array items: - type: integer - description: ASN (ID) + type: string explode: true style: form - in: query - name: contact + name: account__isw schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: account__n schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: account__nic schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: account__nie schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: account__niew schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: account__nisw schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query @@ -5069,220 +5131,64 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: provider schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: region__n + name: provider__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Provider (slug) explode: true style: form - in: query - name: region_id + name: provider_id schema: type: array items: type: integer - description: Region (ID) + description: Provider (ID) explode: true style: form - in: query - name: region_id__n + name: provider_id__n schema: type: array items: type: integer - description: Region (ID) + description: Provider (ID) explode: true style: form - in: query - name: site + name: q schema: - type: array - items: - type: string - description: Site (slug) - explode: true - style: form + type: string + description: Search - in: query - name: site__n + name: tag schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n + name: tag__n schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid @@ -5296,21 +5202,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedProviderList' + $ref: '#/components/schemas/PaginatedProviderAccountList' description: '' post: - operationId: circuits_providers_create - description: Post a list of provider objects. + operationId: circuits_provider_accounts_create + description: Post a list of provider account objects. tags: - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5320,11 +5226,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_bulk_update - description: Put a list of provider objects. + operationId: circuits_provider_accounts_bulk_update + description: Put a list of provider account objects. tags: - circuits requestBody: @@ -5333,12 +5239,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5350,11 +5256,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_bulk_partial_update - description: Patch a list of provider objects. + operationId: circuits_provider_accounts_bulk_partial_update + description: Patch a list of provider account objects. tags: - circuits requestBody: @@ -5363,12 +5269,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5380,11 +5286,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_bulk_destroy - description: Delete a list of provider objects. + operationId: circuits_provider_accounts_bulk_destroy + description: Delete a list of provider account objects. tags: - circuits requestBody: @@ -5393,12 +5299,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5406,16 +5312,16 @@ paths: responses: '204': description: No response body - /api/circuits/providers/{id}/: + /api/circuits/provider-accounts/{id}/: get: - operationId: circuits_providers_retrieve - description: Get a provider object. + operationId: circuits_provider_accounts_retrieve + description: Get a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5427,17 +5333,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' put: - operationId: circuits_providers_update - description: Put a provider object. + operationId: circuits_provider_accounts_update + description: Put a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5445,10 +5351,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/ProviderAccountRequest' required: true security: - cookieAuth: [] @@ -5458,17 +5364,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' patch: - operationId: circuits_providers_partial_update - description: Patch a provider object. + operationId: circuits_provider_accounts_partial_update + description: Patch a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5476,10 +5382,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedProviderRequest' + $ref: '#/components/schemas/PatchedProviderAccountRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -5488,17 +5394,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/ProviderAccount' description: '' delete: - operationId: circuits_providers_destroy - description: Delete a provider object. + operationId: circuits_provider_accounts_destroy + description: Delete a provider account object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this provider. + description: A unique integer value identifying this provider account. required: true tags: - circuits @@ -5508,10 +5414,10 @@ paths: responses: '204': description: No response body - /api/core/data-files/: + /api/circuits/provider-networks/: get: - operationId: core_data_files_list - description: Get a list of data file objects. + operationId: circuits_provider_networks_list + description: Get a list of provider network objects. parameters: - in: query name: created @@ -5582,7 +5488,7 @@ paths: type: string format: uuid - in: query - name: hash + name: description schema: type: array items: @@ -5590,11 +5496,11 @@ paths: explode: true style: form - in: query - name: hash__empty + name: description__empty schema: type: boolean - in: query - name: hash__ic + name: description__ic schema: type: array items: @@ -5602,7 +5508,7 @@ paths: explode: true style: form - in: query - name: hash__ie + name: description__ie schema: type: array items: @@ -5610,7 +5516,7 @@ paths: explode: true style: form - in: query - name: hash__iew + name: description__iew schema: type: array items: @@ -5618,7 +5524,7 @@ paths: explode: true style: form - in: query - name: hash__isw + name: description__isw schema: type: array items: @@ -5626,7 +5532,7 @@ paths: explode: true style: form - in: query - name: hash__n + name: description__n schema: type: array items: @@ -5634,7 +5540,7 @@ paths: explode: true style: form - in: query - name: hash__nic + name: description__nic schema: type: array items: @@ -5642,7 +5548,7 @@ paths: explode: true style: form - in: query - name: hash__nie + name: description__nie schema: type: array items: @@ -5650,7 +5556,7 @@ paths: explode: true style: form - in: query - name: hash__niew + name: description__niew schema: type: array items: @@ -5658,7 +5564,7 @@ paths: explode: true style: form - in: query - name: hash__nisw + name: description__nisw schema: type: array items: @@ -5797,20 +5703,20 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: name schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: - type: string + type: boolean - in: query - name: path + name: name__ic schema: type: array items: @@ -5818,11 +5724,15 @@ paths: explode: true style: form - in: query - name: path__empty + name: name__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: path__ic + name: name__iew schema: type: array items: @@ -5830,7 +5740,7 @@ paths: explode: true style: form - in: query - name: path__ie + name: name__isw schema: type: array items: @@ -5838,7 +5748,7 @@ paths: explode: true style: form - in: query - name: path__iew + name: name__n schema: type: array items: @@ -5846,7 +5756,7 @@ paths: explode: true style: form - in: query - name: path__isw + name: name__nic schema: type: array items: @@ -5854,7 +5764,7 @@ paths: explode: true style: form - in: query - name: path__n + name: name__nie schema: type: array items: @@ -5862,7 +5772,7 @@ paths: explode: true style: form - in: query - name: path__nic + name: name__niew schema: type: array items: @@ -5870,125 +5780,164 @@ paths: explode: true style: form - in: query - name: path__nie + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: path__niew + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: path__nisw + name: provider__n schema: type: array items: type: string + description: Provider (slug) + explode: true + style: form + - in: query + name: provider_id + schema: + type: array + items: + type: integer + description: Provider (ID) + explode: true + style: form + - in: query + name: provider_id__n + schema: + type: array + items: + type: integer + description: Provider (ID) explode: true style: form - in: query name: q schema: type: string + description: Search - in: query - name: size + name: service_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__empty + name: service_id__empty schema: type: boolean - in: query - name: size__gt + name: service_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__gte + name: service_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lt + name: service_id__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__lte + name: service_id__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: size__n + name: service_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: source + name: service_id__nic schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source__n + name: service_id__nie schema: type: array items: type: string - description: Data source (name) explode: true style: form - in: query - name: source_id + name: service_id__niew schema: type: array items: - type: integer - description: Data source (ID) + type: string explode: true style: form - in: query - name: source_id__n + name: service_id__nisw schema: type: array items: - type: integer - description: Data source (ID) + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -5997,7 +5946,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6006,21 +5955,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataFileList' + $ref: '#/components/schemas/PaginatedProviderNetworkList' description: '' - /api/core/data-files/{id}/: + post: + operationId: circuits_provider_networks_create + description: Post a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + put: + operationId: circuits_provider_networks_bulk_update + description: Put a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_bulk_partial_update + description: Patch a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_bulk_destroy + description: Delete a list of provider network objects. + tags: + - circuits + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/provider-networks/{id}/: get: - operationId: core_data_files_retrieve - description: Get a data file object. + operationId: circuits_provider_networks_retrieve + description: Get a provider network object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data file. + description: A unique integer value identifying this provider network. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6029,13 +6086,186 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataFile' + $ref: '#/components/schemas/ProviderNetwork' description: '' - /api/core/data-sources/: + put: + operationId: circuits_provider_networks_update + description: Put a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ProviderNetworkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + patch: + operationId: circuits_provider_networks_partial_update + description: Patch a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedProviderNetworkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ProviderNetwork' + description: '' + delete: + operationId: circuits_provider_networks_destroy + description: Delete a provider network object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this provider network. + required: true + tags: + - circuits + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/circuits/providers/: get: - operationId: core_data_sources_list - description: Get a list of data source objects. + operationId: circuits_providers_list + description: Get a list of provider objects. parameters: + - in: query + name: asn + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn__n + schema: + type: array + items: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: ASN + explode: true + style: form + - in: query + name: asn_id + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: asn_id__n + schema: + type: array + items: + type: integer + description: ASN (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -6188,10 +6418,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -6250,64 +6476,6 @@ paths: format: int32 explode: true style: form - - in: query - name: last_synced - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__empty - schema: - type: boolean - - in: query - name: last_synced__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_synced__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - in: query name: last_updated schema: @@ -6484,7 +6652,7 @@ paths: type: string description: Search - in: query - name: source_url + name: region schema: type: array items: @@ -6492,11 +6660,15 @@ paths: explode: true style: form - in: query - name: source_url__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: source_url__ic + name: region_id schema: type: array items: @@ -6504,7 +6676,7 @@ paths: explode: true style: form - in: query - name: source_url__ie + name: region_id__n schema: type: array items: @@ -6512,23 +6684,25 @@ paths: explode: true style: form - in: query - name: source_url__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: source_url__n + name: site_group schema: type: array items: @@ -6536,7 +6710,7 @@ paths: explode: true style: form - in: query - name: source_url__nic + name: site_group__n schema: type: array items: @@ -6544,7 +6718,7 @@ paths: explode: true style: form - in: query - name: source_url__nie + name: site_group_id schema: type: array items: @@ -6552,7 +6726,7 @@ paths: explode: true style: form - in: query - name: source_url__niew + name: site_group_id__n schema: type: array items: @@ -6560,7 +6734,25 @@ paths: explode: true style: form - in: query - name: source_url__nisw + name: site_id + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: slug schema: type: array items: @@ -6568,7 +6760,11 @@ paths: explode: true style: form - in: query - name: status + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -6576,7 +6772,7 @@ paths: explode: true style: form - in: query - name: status__n + name: slug__ie schema: type: array items: @@ -6584,7 +6780,7 @@ paths: explode: true style: form - in: query - name: tag + name: slug__iew schema: type: array items: @@ -6592,7 +6788,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__isw schema: type: array items: @@ -6600,7 +6796,7 @@ paths: explode: true style: form - in: query - name: type + name: slug__n schema: type: array items: @@ -6608,7 +6804,47 @@ paths: explode: true style: form - in: query - name: type__n + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n schema: type: array items: @@ -6621,7 +6857,7 @@ paths: type: string format: uuid tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6630,21 +6866,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDataSourceList' + $ref: '#/components/schemas/PaginatedProviderList' description: '' post: - operationId: core_data_sources_create - description: Post a list of data source objects. + operationId: circuits_providers_create + description: Post a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6654,25 +6890,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_bulk_update - description: Put a list of data source objects. + operationId: circuits_providers_bulk_update + description: Put a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6684,25 +6920,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_bulk_partial_update - description: Patch a list of data source objects. + operationId: circuits_providers_bulk_partial_update + description: Patch a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6714,25 +6950,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_bulk_destroy - description: Delete a list of data source objects. + operationId: circuits_providers_bulk_destroy + description: Delete a list of provider objects. tags: - - core + - circuits requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6740,19 +6976,19 @@ paths: responses: '204': description: No response body - /api/core/data-sources/{id}/: + /api/circuits/providers/{id}/: get: - operationId: core_data_sources_retrieve - description: Get a data source object. + operationId: circuits_providers_retrieve + description: Get a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] @@ -6761,28 +6997,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' put: - operationId: core_data_sources_update - description: Put a data source object. + operationId: circuits_providers_update + description: Put a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDataSourceRequest' + $ref: '#/components/schemas/ProviderRequest' required: true security: - cookieAuth: [] @@ -6792,28 +7028,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' patch: - operationId: core_data_sources_partial_update - description: Patch a data source object. + operationId: circuits_providers_partial_update + description: Patch a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDataSourceRequest' + $ref: '#/components/schemas/PatchedProviderRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -6822,222 +7058,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/Provider' description: '' delete: - operationId: core_data_sources_destroy - description: Delete a data source object. + operationId: circuits_providers_destroy + description: Delete a provider object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this data source. + description: A unique integer value identifying this provider. required: true tags: - - core + - circuits security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/core/data-sources/{id}/sync/: - post: - operationId: core_data_sources_sync_create - description: Enqueue a job to synchronize the DataSource. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this data source. - required: true - tags: - - core - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDataSourceRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DataSource' - description: '' - /api/core/jobs/: + /api/core/data-files/: get: - operationId: core_jobs_list - description: Retrieve a list of job results + operationId: core_data_files_list + description: Get a list of data file objects. parameters: - in: query - name: completed + name: created schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: completed__after + name: created__empty schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: completed__before + name: created__gt schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: created - schema: - type: string - format: date-time - - in: query - name: created__after - schema: - type: string - format: date-time - - in: query - name: created__before - schema: - type: string - format: date-time - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n + name: created__gte schema: type: array items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interval - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interval__empty - schema: - type: boolean - - in: query - name: interval__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interval__gte - schema: - type: array - items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interval__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: job_id + name: created_by_request schema: type: string format: uuid - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: name + name: hash schema: type: array items: @@ -7045,11 +7160,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: hash__empty schema: type: boolean - in: query - name: name__ic + name: hash__ic schema: type: array items: @@ -7057,7 +7172,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: hash__ie schema: type: array items: @@ -7065,7 +7180,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: hash__iew schema: type: array items: @@ -7073,7 +7188,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: hash__isw schema: type: array items: @@ -7081,7 +7196,7 @@ paths: explode: true style: form - in: query - name: name__n + name: hash__n schema: type: array items: @@ -7089,7 +7204,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: hash__nic schema: type: array items: @@ -7097,7 +7212,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: hash__nie schema: type: array items: @@ -7105,7 +7220,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: hash__niew schema: type: array items: @@ -7113,7 +7228,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: hash__nisw schema: type: array items: @@ -7121,7 +7236,7 @@ paths: explode: true style: form - in: query - name: object_id + name: id schema: type: array items: @@ -7130,11 +7245,11 @@ paths: explode: true style: form - in: query - name: object_id__empty + name: id__empty schema: type: boolean - in: query - name: object_id__gt + name: id__gt schema: type: array items: @@ -7143,7 +7258,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: id__gte schema: type: array items: @@ -7152,7 +7267,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: id__lt schema: type: array items: @@ -7161,7 +7276,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: id__lte schema: type: array items: @@ -7170,7 +7285,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: id__n schema: type: array items: @@ -7179,160 +7294,7 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: integer - - in: query - name: object_type__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: scheduled - schema: - type: string - format: date-time - - in: query - name: scheduled__after - schema: - type: string - format: date-time - - in: query - name: scheduled__before - schema: - type: string - format: date-time - - in: query - name: started - schema: - type: string - format: date-time - - in: query - name: started__after - schema: - type: string - format: date-time - - in: query - name: started__before - schema: - type: string - format: date-time - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e33887d83efcc138 - explode: true - style: form - - in: query - name: user - schema: - type: integer - - in: query - name: user__n - schema: - type: integer - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJobList' - description: '' - /api/core/jobs/{id}/: - get: - operationId: core_jobs_retrieve - description: Retrieve a list of job results - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this job. - required: true - tags: - - core - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Job' - description: '' - /api/dcim/cable-terminations/: - get: - operationId: dcim_cable_terminations_list - description: Get a list of cable termination objects. - parameters: - - in: query - name: cable - schema: - type: integer - - in: query - name: cable__n - schema: - type: integer - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - title: End - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: created + name: last_updated schema: type: array items: @@ -7341,7 +7303,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -7350,7 +7312,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -7359,7 +7321,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -7368,7 +7330,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -7377,7 +7339,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -7386,7 +7348,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -7394,157 +7356,150 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: id + name: path schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: path__empty schema: type: boolean - in: query - name: id__gt + name: path__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: path__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: path__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: path__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: path__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: path__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: path__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: path__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: path__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: q + schema: + type: string + - in: query + name: size schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: size__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: termination_id + name: size__lt schema: type: array items: @@ -7553,11 +7508,7 @@ paths: explode: true style: form - in: query - name: termination_id__empty - schema: - type: boolean - - in: query - name: termination_id__gt + name: size__lte schema: type: array items: @@ -7566,7 +7517,7 @@ paths: explode: true style: form - in: query - name: termination_id__gte + name: size__n schema: type: array items: @@ -7575,129 +7526,48 @@ paths: explode: true style: form - in: query - name: termination_id__lt + name: source schema: type: array items: - type: integer - format: int32 + type: string + description: Data source (name) explode: true style: form - in: query - name: termination_id__lte + name: source__n schema: type: array items: - type: integer - format: int32 + type: string + description: Data source (name) explode: true style: form - in: query - name: termination_id__n + name: source_id schema: type: array items: type: integer - format: int32 + description: Data source (ID) explode: true style: form - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n + name: source_id__n schema: - type: string + type: array + items: + type: integer + description: Data source (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCableTerminationList' - description: '' - post: - operationId: dcim_cable_terminations_create - description: Post a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - put: - operationId: dcim_cable_terminations_bulk_update - description: Put a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTermination' - description: '' - patch: - operationId: dcim_cable_terminations_bulk_partial_update - description: Patch a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -7706,108 +7576,21 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/PaginatedDataFileList' description: '' - delete: - operationId: dcim_cable_terminations_bulk_destroy - description: Delete a list of cable termination objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/cable-terminations/{id}/: + /api/core/data-files/{id}/: get: - operationId: dcim_cable_terminations_retrieve - description: Get a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - put: - operationId: dcim_cable_terminations_update - description: Put a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/CableTerminationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CableTermination' - description: '' - patch: - operationId: dcim_cable_terminations_partial_update - description: Patch a cable termination object. + operationId: core_data_files_retrieve + description: Get a data file object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable termination. + description: A unique integer value identifying this data file. required: true tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedCableTerminationRequest' + - core security: - cookieAuth: [] - tokenAuth: [] @@ -7816,74 +7599,13 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CableTermination' + $ref: '#/components/schemas/DataFile' description: '' - delete: - operationId: dcim_cable_terminations_destroy - description: Delete a cable termination object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this cable termination. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/cables/: + /api/core/data-sources/: get: - operationId: dcim_cables_list - description: Get a list of cable objects. + operationId: core_data_sources_list + description: Get a list of data source objects. parameters: - - in: query - name: circuittermination_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: consoleport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: consoleserverport_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: created schema: @@ -8037,31 +7759,9 @@ paths: explode: true style: form - in: query - name: device - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: frontport_id + name: enabled schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query name: id schema: @@ -8121,96 +7821,61 @@ paths: explode: true style: form - in: query - name: interface_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: label + name: last_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: last_synced__empty schema: type: boolean - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n + name: last_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nie + name: last_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__niew + name: last_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nisw + name: last_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query @@ -8276,118 +7941,79 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: length + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__empty + name: name__empty schema: type: boolean - in: query - name: length__gt + name: name__ic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__gte + name: name__ie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lt + name: name__iew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__lte + name: name__isw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length__n + name: name__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: length_unit - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - in: query - name: length_unit__n - schema: - type: string - x-spec-enum-id: e64ce3a2c5997172 - enum: - - cm - - ft - - in - - km - - m - - mi - description: '* `km` - Kilometers - - * `m` - Meters - - * `cm` - Centimeters - - * `mi` - Miles - - * `ft` - Feet - - * `in` - Inches' - - name: limit - required: false - in: query - description: Number of results to return per page. + name: name__nic schema: - type: integer + type: array + items: + type: string + explode: true + style: form - in: query - name: location + name: name__nie schema: type: array items: @@ -8395,19 +8021,21 @@ paths: explode: true style: form - in: query - name: location_id + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: modified_by_request + name: name__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -8421,39 +8049,40 @@ paths: schema: type: string - in: query - name: powerfeed_id + name: q + schema: + type: string + description: Search + - in: query + name: source_url schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: poweroutlet_id + name: source_url__empty + schema: + type: boolean + - in: query + name: source_url__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: powerport_id + name: source_url__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: source_url__iew schema: type: array items: @@ -8461,25 +8090,23 @@ paths: explode: true style: form - in: query - name: rack_id + name: source_url__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rearport_id + name: source_url__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: site + name: source_url__nic schema: type: array items: @@ -8487,34 +8114,31 @@ paths: explode: true style: form - in: query - name: site_id + name: source_url__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: status + name: source_url__niew schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: status__n + name: source_url__nisw schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: tag + name: status schema: type: array items: @@ -8522,7 +8146,11 @@ paths: explode: true style: form - in: query - name: tag__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: @@ -8530,120 +8158,127 @@ paths: explode: true style: form - in: query - name: tenant + name: status__ie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: status__iew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: status__isw schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: status__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: status__nic schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: status__nie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: status__niew schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: status__nisw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: termination_a_id + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_a_type + name: tag__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: termination_a_type__n + name: type schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: termination_b_id + name: type__empty + schema: + type: boolean + - in: query + name: type__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_b_type + name: type__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: termination_b_type__n + name: type__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: type + name: type__isw schema: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query @@ -8652,21 +8287,47 @@ paths: type: array items: type: string - x-spec-enum-id: e671018e64196f8d explode: true style: form - in: query - name: unterminated + name: type__nic schema: - type: boolean - description: Unterminated + type: array + items: + type: string + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -8675,21 +8336,22 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCableList' + $ref: '#/components/schemas/PaginatedDataSourceList' description: '' post: - operationId: dcim_cables_create - description: Post a list of cable objects. + operationId: core_data_sources_create + description: Post a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8698,25 +8360,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_cables_bulk_update - description: Put a list of cable objects. + operationId: core_data_sources_bulk_update + description: Put a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8728,25 +8390,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_cables_bulk_partial_update - description: Patch a list of cable objects. + operationId: core_data_sources_bulk_partial_update + description: Patch a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8758,25 +8420,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_cables_bulk_destroy - description: Delete a list of cable objects. + operationId: core_data_sources_bulk_destroy + description: Delete a list of data source objects. tags: - - dcim + - core requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CableRequest' + $ref: '#/components/schemas/DataSourceRequest' required: true security: - cookieAuth: [] @@ -8784,19 +8446,19 @@ paths: responses: '204': description: No response body - /api/dcim/cables/{id}/: + /api/core/data-sources/{id}/: get: - operationId: dcim_cables_retrieve - description: Get a cable object. + operationId: core_data_sources_retrieve + description: Get a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -8805,28 +8467,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' put: - operationId: dcim_cables_update - description: Put a cable object. + operationId: core_data_sources_update + description: Put a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableCableRequest' + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8835,28 +8498,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' patch: - operationId: dcim_cables_partial_update - description: Patch a cable object. + operationId: core_data_sources_partial_update + description: Patch a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableCableRequest' + $ref: '#/components/schemas/PatchedWritableDataSourceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -8865,57 +8528,48 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cable' + $ref: '#/components/schemas/DataSource' description: '' delete: - operationId: dcim_cables_destroy - description: Delete a cable object. + operationId: core_data_sources_destroy + description: Delete a data source object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cable. + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/dcim/connected-device/: - get: - operationId: dcim_connected_device_list - description: 'This endpoint allows a user to determine what device (if any) - is connected to a given peer device and peer - - interface. This is useful in a situation where a device boots with no configuration, - but can detect its neighbors - - via a protocol such as LLDP. Two query parameters must be included in the - request: - - - * `peer_device`: The name of the peer device - - * `peer_interface`: The name of the peer interface' + /api/core/data-sources/{id}/sync/: + post: + operationId: core_data_sources_sync_create + description: Enqueue a job to synchronize the DataSource. parameters: - - in: query - name: peer_device - schema: - type: string - description: The name of the peer device - required: true - - in: query - name: peer_interface + - in: path + name: id schema: - type: string - description: The name of the peer interface + type: integer + description: A unique integer value identifying this data source. required: true tags: - - dcim + - core + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDataSourceRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -8924,121 +8578,172 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/DataSource' description: '' - /api/dcim/console-port-templates/: + /api/core/jobs/: get: - operationId: dcim_console_port_templates_list - description: Get a list of console port template objects. + operationId: core_jobs_list + description: Retrieve a list of job results parameters: + - in: query + name: completed + schema: + type: string + format: date-time + - in: query + name: completed__after + schema: + type: string + format: date-time + - in: query + name: completed__before + schema: + type: string + format: date-time - in: query name: created + schema: + type: string + format: date-time + - in: query + name: created__after + schema: + type: string + format: date-time + - in: query + name: created__before + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: interval schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: interval__empty schema: - type: string - format: uuid + type: boolean - in: query - name: description + name: interval__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: interval__gte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: description__ic + name: interval__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: interval__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: interval__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: job_id + schema: + type: string + format: uuid + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: name schema: type: array items: @@ -9046,7 +8751,11 @@ paths: explode: true style: form - in: query - name: description__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -9054,7 +8763,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__ie schema: type: array items: @@ -9062,7 +8771,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__iew schema: type: array items: @@ -9070,7 +8779,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__isw schema: type: array items: @@ -9078,7 +8787,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__n schema: type: array items: @@ -9086,47 +8795,39 @@ paths: explode: true style: form - in: query - name: device_type_id + name: name__nic schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: name__nie schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id + name: name__niew schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: devicetype_id__n + name: name__nisw schema: type: array items: - type: integer - nullable: true - description: Device type (ID) + type: string explode: true style: form - in: query - name: id + name: object_id schema: type: array items: @@ -9135,11 +8836,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: object_id__empty schema: type: boolean - in: query - name: id__gt + name: object_id__gt schema: type: array items: @@ -9148,7 +8849,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: object_id__gte schema: type: array items: @@ -9157,7 +8858,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: object_id__lt schema: type: array items: @@ -9166,7 +8867,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: object_id__lte schema: type: array items: @@ -9175,7 +8876,7 @@ paths: explode: true style: form - in: query - name: id__n + name: object_id__n schema: type: array items: @@ -9184,205 +8885,526 @@ paths: explode: true style: form - in: query - name: label + name: object_type + schema: + type: integer + - in: query + name: object_type__n + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: scheduled + schema: + type: string + format: date-time + - in: query + name: scheduled__after + schema: + type: string + format: date-time + - in: query + name: scheduled__before + schema: + type: string + format: date-time + - in: query + name: started + schema: + type: string + format: date-time + - in: query + name: started__after + schema: + type: string + format: date-time + - in: query + name: started__before + schema: + type: string + format: date-time + - in: query + name: status schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 explode: true style: form - in: query - name: label__empty + name: status__empty schema: type: boolean - in: query - name: label__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: label__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: e33887d83efcc138 + enum: + - completed + - errored + - failed + - pending + - running + - scheduled + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' explode: true style: form - in: query - name: last_updated + name: user + schema: + type: integer + - in: query + name: user__n + schema: + type: integer + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedJobList' + description: '' + /api/core/jobs/{id}/: + get: + operationId: core_jobs_retrieve + description: Retrieve a list of job results + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this job. + required: true + tags: + - core + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Job' + description: '' + /api/core/object-changes/: + get: + operationId: core_object_changes_list + description: Retrieve a list of recent changes. + parameters: + - in: query + name: action + schema: + type: string + x-spec-enum-id: 544f9b3b28b7ce6a + enum: + - create + - delete + - update + description: '* `create` - Created + + * `update` - Updated + + * `delete` - Deleted' + - in: query + name: changed_object_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: changed_object_id__empty + schema: + type: boolean + - in: query + name: changed_object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gt + name: changed_object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: changed_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: changed_object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: changed_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: changed_object_type + schema: + type: string + - in: query + name: changed_object_type__n + schema: + type: string + - in: query + name: changed_object_type_id schema: type: array items: - type: string - format: date-time + type: integer explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: changed_object_type_id__n schema: - type: integer + type: array + items: + type: integer + explode: true + style: form - in: query - name: modified_by_request + name: id schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: module_type_id + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: id__gte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id + name: id__lt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id__n + name: id__lte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: name + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: object_repr schema: type: array items: @@ -9390,11 +9412,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: object_repr__empty schema: type: boolean - in: query - name: name__ic + name: object_repr__ic schema: type: array items: @@ -9402,7 +9424,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: object_repr__ie schema: type: array items: @@ -9410,7 +9432,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: object_repr__iew schema: type: array items: @@ -9418,7 +9440,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: object_repr__isw schema: type: array items: @@ -9426,7 +9448,7 @@ paths: explode: true style: form - in: query - name: name__n + name: object_repr__n schema: type: array items: @@ -9434,7 +9456,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: object_repr__nic schema: type: array items: @@ -9442,7 +9464,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: object_repr__nie schema: type: array items: @@ -9450,7 +9472,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: object_repr__niew schema: type: array items: @@ -9458,7 +9480,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: object_repr__nisw schema: type: array items: @@ -9483,50 +9505,210 @@ paths: type: string description: Search - in: query - name: type + name: related_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_id__empty + schema: + type: boolean + - in: query + name: related_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: related_object_type + schema: + type: integer + - in: query + name: related_object_type__n + schema: + type: integer + - in: query + name: request_id schema: type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' + format: uuid - in: query - name: type__n + name: time_after schema: type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' + format: date-time - in: query - name: updated_by_request + name: time_before schema: type: string - format: uuid + format: date-time + - in: query + name: user + schema: + type: array + items: + type: string + description: User name + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User name + explode: true + style: form + - in: query + name: user_id + schema: + type: array + items: + type: integer + nullable: true + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + nullable: true + description: User (ID) + explode: true + style: form + - in: query + name: user_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__empty + schema: + type: boolean + - in: query + name: user_name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: user_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form tags: - - dcim + - core security: - cookieAuth: [] - tokenAuth: [] @@ -9535,50 +9717,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortTemplateList' + $ref: '#/components/schemas/PaginatedObjectChangeList' description: '' - post: - operationId: dcim_console_port_templates_create - description: Post a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + /api/core/object-changes/{id}/: + get: + operationId: core_object_changes_retrieve + description: Retrieve a list of recent changes. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this object change. required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConsolePortTemplate' - description: '' - put: - operationId: dcim_console_port_templates_bulk_update - description: Put a list of console port template objects. tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true + - core security: - cookieAuth: [] - tokenAuth: [] @@ -9587,43 +9740,415 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/ObjectChange' description: '' - patch: - operationId: dcim_console_port_templates_bulk_partial_update - description: Patch a list of console port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConsolePortTemplate' + /api/dcim/cable-terminations/: + get: + operationId: dcim_cable_terminations_list + description: Get a list of cable termination objects. + parameters: + - in: query + name: cable + schema: + type: integer + - in: query + name: cable__n + schema: + type: integer + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + title: End + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: termination_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedCableTerminationList' + description: '' + post: + operationId: dcim_cable_terminations_create + description: Post a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/CableTermination' + description: '' + put: + operationId: dcim_cable_terminations_bulk_update + description: Put a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTermination' + description: '' + patch: + operationId: dcim_cable_terminations_bulk_partial_update + description: Patch a list of cable termination objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/CableTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/CableTermination' description: '' delete: - operationId: dcim_console_port_templates_bulk_destroy - description: Delete a list of console port template objects. + operationId: dcim_cable_terminations_bulk_destroy + description: Delete a list of cable termination objects. tags: - dcim requestBody: @@ -9632,12 +10157,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortTemplateRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -9645,16 +10170,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-port-templates/{id}/: + /api/dcim/cable-terminations/{id}/: get: - operationId: dcim_console_port_templates_retrieve - description: Get a console port template object. + operationId: dcim_cable_terminations_retrieve + description: Get a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -9666,17 +10191,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/CableTermination' description: '' put: - operationId: dcim_console_port_templates_update - description: Put a console port template object. + operationId: dcim_cable_terminations_update + description: Put a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -9684,10 +10209,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/CableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortTemplateRequest' + $ref: '#/components/schemas/CableTerminationRequest' required: true security: - cookieAuth: [] @@ -9697,17 +10222,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/CableTermination' description: '' patch: - operationId: dcim_console_port_templates_partial_update - description: Patch a console port template object. + operationId: dcim_cable_terminations_partial_update + description: Patch a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -9715,10 +10240,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' + $ref: '#/components/schemas/PatchedCableTerminationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' + $ref: '#/components/schemas/PatchedCableTerminationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -9727,17 +10252,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePortTemplate' + $ref: '#/components/schemas/CableTermination' description: '' delete: - operationId: dcim_console_port_templates_destroy - description: Delete a console port template object. + operationId: dcim_cable_terminations_destroy + description: Delete a cable termination object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port template. + description: A unique integer value identifying this cable termination. required: true tags: - dcim @@ -9747,183 +10272,192 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/: + /api/dcim/cables/: get: - operationId: dcim_console_ports_list - description: Get a list of console port objects. + operationId: dcim_cables_list + description: Get a list of cable objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: circuittermination_id schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cable_id__n + name: color schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string explode: true style: form - in: query - name: cabled + name: color__empty schema: type: boolean - in: query - name: connected + name: color__ic schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: created + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: color__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: color__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: consoleport_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: consoleserverport_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: description__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -9931,7 +10465,11 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -9939,7 +10477,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: description__ie schema: type: array items: @@ -9947,7 +10485,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__iew schema: type: array items: @@ -9955,77 +10493,77 @@ paths: explode: true style: form - in: query - name: device + name: description__isw schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: description__n schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: description__nic schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__nie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: description__niew schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: description__nisw schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: device + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device_id schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: frontport_id schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query @@ -10086,6 +10624,15 @@ paths: format: int32 explode: true style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: label schema: @@ -10233,99 +10780,161 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: length schema: - type: integer + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: location + name: length__empty + schema: + type: boolean + - in: query + name: length__gt schema: type: array items: - type: string - description: Location (slug) + type: number + format: double explode: true style: form - in: query - name: location__n + name: length__gte schema: type: array items: - type: string - description: Location (slug) + type: number + format: double explode: true style: form - in: query - name: location_id + name: length__lt schema: type: array items: - type: integer - description: Location (ID) + type: number + format: double explode: true style: form - in: query - name: location_id__n + name: length__lte schema: type: array items: - type: integer - description: Location (ID) + type: number + format: double explode: true style: form - in: query - name: mark_connected + name: length__n schema: - type: boolean + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: modified_by_request + name: length_unit schema: type: string - format: uuid + x-spec-enum-id: e64ce3a2c5997172 + enum: + - cm + - ft + - in + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: module_id + name: location schema: type: array items: - type: integer - nullable: true - description: Module (ID) + type: string explode: true style: form - in: query - name: module_id__n + name: location_id schema: type: array items: type: integer - nullable: true - description: Module (ID) + format: int32 explode: true style: form - in: query - name: name + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: powerfeed_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: poweroutlet_id schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: name__ic + name: powerport_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: @@ -10333,23 +10942,25 @@ paths: explode: true style: form - in: query - name: name__iew + name: rack_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: rearport_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: site schema: type: array items: @@ -10357,328 +10968,648 @@ paths: explode: true style: form - in: query - name: name__nic + name: site_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: status schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: name__niew + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__nisw + name: status__ie schema: type: array items: type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: occupied - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: status__iew schema: type: array items: type: string - description: Rack (name) + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: rack__n + name: status__isw schema: type: array items: type: string - description: Rack (name) + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: rack_id + name: status__n schema: type: array items: - type: integer - description: Rack (ID) + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: rack_id__n + name: status__nic schema: type: array items: - type: integer - description: Rack (ID) + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: region + name: status__nie schema: type: array items: - type: integer - description: Region (slug) + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: region__n + name: status__niew schema: type: array items: - type: integer - description: Region (slug) + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: region_id + name: status__nisw schema: type: array items: - type: integer - description: Region (ID) + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: region_id__n + name: tag schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: tag__n schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: tenant schema: type: array items: type: string - description: Device role (slug) + description: Tenant (slug) explode: true style: form - in: query - name: role_id + name: tenant__n schema: type: array items: - type: integer - description: Device role (ID) + type: string + description: Tenant (slug) explode: true style: form - in: query - name: role_id__n + name: tenant_group schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: site + name: tenant_group__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: tenant_group_id schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: tenant_group_id__n schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: tenant_id schema: type: array items: type: integer - description: Site group (slug) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site_group_id + name: tenant_id__n schema: type: array items: type: integer - description: Site group (ID) + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: site_group_id__n + name: termination_a_id schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: termination_a_type + schema: + type: string + - in: query + name: termination_a_type__n + schema: + type: string + - in: query + name: termination_b_id schema: type: array items: type: integer - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: termination_b_type + schema: + type: string + - in: query + name: termination_b_type__n + schema: + type: string + - in: query + name: type schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: 7b11d524b2b1a7ef explode: true style: form - in: query - name: speed + name: type__empty schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + * `cat5` - CAT5 - * `1200` - 1200 bps + * `cat5e` - CAT5e - * `2400` - 2400 bps + * `cat6` - CAT6 - * `4800` - 4800 bps + * `cat6a` - CAT6a - * `9600` - 9600 bps + * `cat7` - CAT7 - * `19200` - 19.2 kbps + * `cat7a` - CAT7a - * `38400` - 38.4 kbps + * `cat8` - CAT8 - * `57600` - 57.6 kbps + * `dac-active` - Direct Attach Copper (Active) - * `115200` - 115.2 kbps' - - in: query - name: speed__n - schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second + * `dac-passive` - Direct Attach Copper (Passive) + * `mrj21-trunk` - MRJ21 Trunk - * `1200` - 1200 bps + * `coaxial` - Coaxial - * `2400` - 2400 bps + * `mmf` - Multimode Fiber - * `4800` - 4800 bps + * `mmf-om1` - Multimode Fiber (OM1) - * `9600` - 9600 bps + * `mmf-om2` - Multimode Fiber (OM2) - * `19200` - 19.2 kbps + * `mmf-om3` - Multimode Fiber (OM3) - * `38400` - 38.4 kbps + * `mmf-om4` - Multimode Fiber (OM4) - * `57600` - 57.6 kbps + * `mmf-om5` - Multimode Fiber (OM5) - * `115200` - 115.2 kbps' + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + explode: true + style: form - in: query - name: tag + name: type__ie schema: type: array items: type: string + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form - in: query - name: tag__n + name: type__iew schema: type: array items: type: string - explode: true + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + explode: true style: form - in: query - name: type + name: type__isw schema: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form - in: query @@ -10687,51 +11618,420 @@ paths: type: array items: type: string - x-spec-enum-id: c5f7197b7211818a - description: Physical port type + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_chassis + name: type__nic schema: type: array items: type: string - description: Virtual Chassis + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form - in: query - name: virtual_chassis__n + name: type__nie schema: type: array items: type: string - description: Virtual Chassis + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form - in: query - name: virtual_chassis_id + name: type__niew schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form - in: query - name: virtual_chassis_id__n + name: type__nisw schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string + x-spec-enum-id: 7b11d524b2b1a7ef + enum: + - '' + - aoc + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - coaxial + - dac-active + - dac-passive + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - mrj21-trunk + - power + - smf + - smf-os1 + - smf-os2 + - usb + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' explode: true style: form + - in: query + name: unterminated + schema: + type: boolean + description: Unterminated + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - dcim security: @@ -10742,22 +12042,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsolePortList' + $ref: '#/components/schemas/PaginatedCableList' description: '' post: - operationId: dcim_console_ports_create - description: Post a list of console port objects. + operationId: dcim_cables_create + description: Post a list of cable objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10766,11 +12065,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_console_ports_bulk_update - description: Put a list of console port objects. + operationId: dcim_cables_bulk_update + description: Put a list of cable objects. tags: - dcim requestBody: @@ -10779,12 +12078,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10796,11 +12095,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_console_ports_bulk_partial_update - description: Patch a list of console port objects. + operationId: dcim_cables_bulk_partial_update + description: Patch a list of cable objects. tags: - dcim requestBody: @@ -10809,12 +12108,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10826,11 +12125,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_console_ports_bulk_destroy - description: Delete a list of console port objects. + operationId: dcim_cables_bulk_destroy + description: Delete a list of cable objects. tags: - dcim requestBody: @@ -10839,12 +12138,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsolePortRequest' + $ref: '#/components/schemas/CableRequest' required: true security: - cookieAuth: [] @@ -10852,16 +12151,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/: + /api/dcim/cables/{id}/: get: - operationId: dcim_console_ports_retrieve - description: Get a console port object. + operationId: dcim_cables_retrieve + description: Get a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10873,17 +12172,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' put: - operationId: dcim_console_ports_update - description: Put a console port object. + operationId: dcim_cables_update + description: Put a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10891,11 +12190,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' + $ref: '#/components/schemas/WritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsolePortRequest' - required: true + $ref: '#/components/schemas/WritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10904,17 +12202,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' patch: - operationId: dcim_console_ports_partial_update - description: Patch a console port object. + operationId: dcim_cables_partial_update + description: Patch a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10922,10 +12220,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsolePortRequest' + $ref: '#/components/schemas/PatchedWritableCableRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -10934,17 +12232,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + $ref: '#/components/schemas/Cable' description: '' delete: - operationId: dcim_console_ports_destroy - description: Delete a console port object. + operationId: dcim_cables_destroy + description: Delete a cable object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console port. + description: A unique integer value identifying this cable. required: true tags: - dcim @@ -10954,17 +12252,34 @@ paths: responses: '204': description: No response body - /api/dcim/console-ports/{id}/trace/: + /api/dcim/connected-device/: get: - operationId: dcim_console_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_connected_device_list + description: 'This endpoint allows a user to determine what device (if any) + is connected to a given peer device and peer + + interface. This is useful in a situation where a device boots with no configuration, + but can detect its neighbors + + via a protocol such as LLDP. Two query parameters must be included in the + request: + + + * `peer_device`: The name of the peer device + + * `peer_interface`: The name of the peer interface' parameters: - - in: path - name: id + - in: query + name: peer_device schema: - type: integer - description: A unique integer value identifying this console port. + type: string + description: The name of the peer device + required: true + - in: query + name: peer_interface + schema: + type: string + description: The name of the peer interface required: true tags: - dcim @@ -10976,12 +12291,14 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsolePort' + type: array + items: + $ref: '#/components/schemas/Device' description: '' - /api/dcim/console-server-port-templates/: + /api/dcim/console-port-templates/: get: - operationId: dcim_console_server_port_templates_list - description: Get a list of console server port template objects. + operationId: dcim_console_port_templates_list + description: Get a list of console port template objects. parameters: - in: query name: created @@ -11155,26 +12472,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -11411,26 +12708,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -11552,25 +12829,6 @@ paths: * `Other` - [(''other'', ''Other'')]' - in: query - name: type__n - schema: - type: string - x-spec-enum-id: c5f7197b7211818a - enum: - - Other - - Serial - - USB - description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), - (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), - (''mini-din-8'', ''Mini-DIN 8'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB'')] - - * `Other` - [(''other'', ''Other'')]' - - in: query name: updated_by_request schema: type: string @@ -11585,21 +12843,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' + $ref: '#/components/schemas/PaginatedConsolePortTemplateList' description: '' post: - operationId: dcim_console_server_port_templates_create - description: Post a list of console server port template objects. + operationId: dcim_console_port_templates_create + description: Post a list of console port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11609,11 +12867,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_console_server_port_templates_bulk_update - description: Put a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_update + description: Put a list of console port template objects. tags: - dcim requestBody: @@ -11622,12 +12880,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11639,11 +12897,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_console_server_port_templates_bulk_partial_update - description: Patch a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_partial_update + description: Patch a list of console port template objects. tags: - dcim requestBody: @@ -11652,12 +12910,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11669,11 +12927,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_console_server_port_templates_bulk_destroy - description: Delete a list of console server port template objects. + operationId: dcim_console_port_templates_bulk_destroy + description: Delete a list of console port template objects. tags: - dcim requestBody: @@ -11682,12 +12940,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/ConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11695,16 +12953,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-port-templates/{id}/: + /api/dcim/console-port-templates/{id}/: get: - operationId: dcim_console_server_port_templates_retrieve - description: Get a console server port template object. + operationId: dcim_console_port_templates_retrieve + description: Get a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11716,17 +12974,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' put: - operationId: dcim_console_server_port_templates_update - description: Put a console server port template object. + operationId: dcim_console_port_templates_update + description: Put a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11734,10 +12992,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/WritableConsolePortTemplateRequest' required: true security: - cookieAuth: [] @@ -11747,17 +13005,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' patch: - operationId: dcim_console_server_port_templates_partial_update - description: Patch a console server port template object. + operationId: dcim_console_port_templates_partial_update + description: Patch a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11765,10 +13023,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -11777,17 +13035,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPortTemplate' + $ref: '#/components/schemas/ConsolePortTemplate' description: '' delete: - operationId: dcim_console_server_port_templates_destroy - description: Delete a console server port template object. + operationId: dcim_console_port_templates_destroy + description: Delete a console port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port template. + description: A unique integer value identifying this console port template. required: true tags: - dcim @@ -11797,10 +13055,10 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/: + /api/dcim/console-ports/: get: - operationId: dcim_console_server_ports_list - description: Get a list of console server port objects. + operationId: dcim_console_ports_list + description: Get a list of console port objects. parameters: - in: query name: cable_end @@ -11813,17 +13071,6 @@ paths: description: '* `A` - A * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - in: query name: cable_id schema: @@ -12042,6 +13289,325 @@ paths: description: Device (ID) explode: true style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query name: device_type schema: @@ -12500,8 +14066,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -12509,62 +14074,23 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -12590,8 +14116,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -12599,8 +14124,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -12608,8 +14132,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -12617,8 +14140,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -12673,62 +14195,265 @@ paths: * `115200` - 115.2 kbps' - in: query - name: speed__n + name: tag schema: - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - enum: - - 115200 - - 1200 - - 19200 - - 2400 - - 38400 - - 4800 - - 57600 - - 9600 - description: 'Port speed in bits per second + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type - * `1200` - 1200 bps + * `de-9` - DE-9 - * `2400` - 2400 bps + * `db-25` - DB-25 - * `4800` - 4800 bps + * `rj-11` - RJ-11 - * `9600` - 9600 bps + * `rj-12` - RJ-12 - * `19200` - 19.2 kbps + * `rj-45` - RJ-45 - * `38400` - 38.4 kbps + * `mini-din-8` - Mini-DIN 8 - * `57600` - 57.6 kbps + * `usb-a` - USB Type A - * `115200` - 115.2 kbps' + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form - in: query - name: tag + name: type__ie schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: tag__n + name: type__iew schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: type + name: type__isw schema: type: array items: type: string x-spec-enum-id: c5f7197b7211818a - description: Physical port type + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query @@ -12738,7 +14463,287 @@ paths: items: type: string x-spec-enum-id: c5f7197b7211818a - description: Physical port type + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query @@ -12792,21 +14797,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedConsoleServerPortList' + $ref: '#/components/schemas/PaginatedConsolePortList' description: '' post: - operationId: dcim_console_server_ports_create - description: Post a list of console server port objects. + operationId: dcim_console_ports_create + description: Post a list of console port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -12816,11 +14821,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_server_ports_bulk_update - description: Put a list of console server port objects. + operationId: dcim_console_ports_bulk_update + description: Put a list of console port objects. tags: - dcim requestBody: @@ -12829,12 +14834,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12846,11 +14851,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_server_ports_bulk_partial_update - description: Patch a list of console server port objects. + operationId: dcim_console_ports_bulk_partial_update + description: Patch a list of console port objects. tags: - dcim requestBody: @@ -12859,12 +14864,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12876,11 +14881,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_server_ports_bulk_destroy - description: Delete a list of console server port objects. + operationId: dcim_console_ports_bulk_destroy + description: Delete a list of console port objects. tags: - dcim requestBody: @@ -12889,12 +14894,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConsoleServerPortRequest' + $ref: '#/components/schemas/ConsolePortRequest' required: true security: - cookieAuth: [] @@ -12902,16 +14907,16 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/: + /api/dcim/console-ports/{id}/: get: - operationId: dcim_console_server_ports_retrieve - description: Get a console server port object. + operationId: dcim_console_ports_retrieve + description: Get a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12923,17 +14928,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' put: - operationId: dcim_console_server_ports_update - description: Put a console server port object. + operationId: dcim_console_ports_update + description: Put a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12941,10 +14946,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableConsoleServerPortRequest' + $ref: '#/components/schemas/WritableConsolePortRequest' required: true security: - cookieAuth: [] @@ -12954,17 +14959,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' patch: - operationId: dcim_console_server_ports_partial_update - description: Patch a console server port object. + operationId: dcim_console_ports_partial_update + description: Patch a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -12972,10 +14977,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' + $ref: '#/components/schemas/PatchedWritableConsolePortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -12984,17 +14989,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' delete: - operationId: dcim_console_server_ports_destroy - description: Delete a console server port object. + operationId: dcim_console_ports_destroy + description: Delete a console port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -13004,9 +15009,9 @@ paths: responses: '204': description: No response body - /api/dcim/console-server-ports/{id}/trace/: + /api/dcim/console-ports/{id}/trace/: get: - operationId: dcim_console_server_ports_trace_retrieve + operationId: dcim_console_ports_trace_retrieve description: Trace a complete cable path and return each segment as a three-tuple of (termination, cable, termination). parameters: @@ -13014,7 +15019,7 @@ paths: name: id schema: type: integer - description: A unique integer value identifying this console server port. + description: A unique integer value identifying this console port. required: true tags: - dcim @@ -13026,12 +15031,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConsoleServerPort' + $ref: '#/components/schemas/ConsolePort' description: '' - /api/dcim/device-bay-templates/: + /api/dcim/console-server-port-templates/: get: - operationId: dcim_device_bay_templates_list - description: Get a list of device bay template objects. + operationId: dcim_console_server_port_templates_list + description: Get a list of console server port template objects. parameters: - in: query name: created @@ -13191,6 +15196,7 @@ paths: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13200,24 +15206,7 @@ paths: type: array items: type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -13437,6 +15426,26 @@ paths: schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -13538,6 +15547,25 @@ paths: schema: type: string description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - Other + - Serial + - USB + description: '* `Serial` - [(''de-9'', ''DE-9''), (''db-25'', ''DB-25''), + (''rj-11'', ''RJ-11''), (''rj-12'', ''RJ-12''), (''rj-45'', ''RJ-45''), + (''mini-din-8'', ''Mini-DIN 8'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB'')] + + * `Other` - [(''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -13553,21 +15581,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' + $ref: '#/components/schemas/PaginatedConsoleServerPortTemplateList' description: '' post: - operationId: dcim_device_bay_templates_create - description: Post a list of device bay template objects. + operationId: dcim_console_server_port_templates_create + description: Post a list of console server port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13577,11 +15605,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_device_bay_templates_bulk_update - description: Put a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_update + description: Put a list of console server port template objects. tags: - dcim requestBody: @@ -13590,12 +15618,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13607,11 +15635,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_device_bay_templates_bulk_partial_update - description: Patch a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_partial_update + description: Patch a list of console server port template objects. tags: - dcim requestBody: @@ -13620,12 +15648,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13637,11 +15665,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_device_bay_templates_bulk_destroy - description: Delete a list of device bay template objects. + operationId: dcim_console_server_port_templates_bulk_destroy + description: Delete a list of console server port template objects. tags: - dcim requestBody: @@ -13650,12 +15678,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/ConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13663,16 +15691,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bay-templates/{id}/: + /api/dcim/console-server-port-templates/{id}/: get: - operationId: dcim_device_bay_templates_retrieve - description: Get a device bay template object. + operationId: dcim_console_server_port_templates_retrieve + description: Get a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13684,17 +15712,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' put: - operationId: dcim_device_bay_templates_update - description: Put a device bay template object. + operationId: dcim_console_server_port_templates_update + description: Put a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13702,10 +15730,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayTemplateRequest' + $ref: '#/components/schemas/WritableConsoleServerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -13715,17 +15743,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' patch: - operationId: dcim_device_bay_templates_partial_update - description: Patch a device bay template object. + operationId: dcim_console_server_port_templates_partial_update + description: Patch a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13733,10 +15761,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -13745,17 +15773,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayTemplate' + $ref: '#/components/schemas/ConsoleServerPortTemplate' description: '' delete: - operationId: dcim_device_bay_templates_destroy - description: Delete a device bay template object. + operationId: dcim_console_server_port_templates_destroy + description: Delete a console server port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay template. + description: A unique integer value identifying this console server port template. required: true tags: - dcim @@ -13765,11 +15793,50 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/: + /api/dcim/console-server-ports/: get: - operationId: dcim_device_bays_list - description: Get a list of device bay objects. + operationId: dcim_console_server_ports_list + description: Get a list of console server port objects. parameters: + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -13961,83 +16028,362 @@ paths: explode: true style: form - in: query - name: device_type + name: device_role schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type__n + name: device_role__n schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type_id + name: device_role_id schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: device_type_id__n + name: device_role_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: id + name: device_status schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: id__empty + name: device_status__empty schema: type: boolean - in: query - name: id__gt + name: device_status__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id__gte + name: device_status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: id__lt + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: id__lte + name: id schema: type: array items: @@ -14046,7 +16392,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -14055,43 +16405,39 @@ paths: explode: true style: form - in: query - name: installed_device + name: id__gte schema: type: array items: - type: string - nullable: true - description: Installed device (name) + type: integer + format: int32 explode: true style: form - in: query - name: installed_device__n + name: id__lt schema: type: array items: - type: string - nullable: true - description: Installed device (name) + type: integer + format: int32 explode: true style: form - in: query - name: installed_device_id + name: id__lte schema: type: array items: type: integer - nullable: true - description: Installed device (ID) + format: int32 explode: true style: form - in: query - name: installed_device_id__n + name: id__n schema: type: array items: type: integer - nullable: true - description: Installed device (ID) + format: int32 explode: true style: form - in: query @@ -14283,11 +16629,35 @@ paths: description: Location (ID) explode: true style: form + - in: query + name: mark_connected + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form - in: query name: name schema: @@ -14372,6 +16742,10 @@ paths: type: string explode: true style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -14430,8 +16804,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -14439,8 +16812,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -14448,8 +16820,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -14457,132 +16828,660 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: role + name: site schema: type: array items: type: string - description: Device role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role__n + name: site__n schema: type: array items: type: string - description: Device role (slug) + description: Site name (slug) explode: true style: form - in: query - name: role_id + name: site_group schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: site_group__n schema: type: array items: - type: integer - description: Device role (ID) + type: string explode: true style: form - in: query - name: site + name: site_group_id schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: site_group_id__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: site_id schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group__n + name: site_id__n schema: type: array items: type: integer - description: Site group (slug) + description: Site (ID) explode: true style: form - in: query - name: site_group_id + name: speed + schema: + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + enum: + - 115200 + - 1200 + - 19200 + - 2400 + - 38400 + - 4800 + - 57600 + - 9600 + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + - in: query + name: tag schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: tag__n schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: type schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: c5f7197b7211818a + description: Physical port type explode: true style: form - in: query - name: site_id__n + name: type__empty + schema: + type: boolean + - in: query + name: type__ic schema: type: array items: - type: integer - description: Site (ID) + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: tag + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__iew schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: tag__n + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: c5f7197b7211818a + enum: + - '' + - db-25 + - de-9 + - mini-din-8 + - other + - rj-11 + - rj-12 + - rj-45 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query @@ -14636,21 +17535,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceBayList' + $ref: '#/components/schemas/PaginatedConsoleServerPortList' description: '' post: - operationId: dcim_device_bays_create - description: Post a list of device bay objects. + operationId: dcim_console_server_ports_create + description: Post a list of console server port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14660,11 +17559,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_bays_bulk_update - description: Put a list of device bay objects. + operationId: dcim_console_server_ports_bulk_update + description: Put a list of console server port objects. tags: - dcim requestBody: @@ -14673,12 +17572,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14690,11 +17589,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_bays_bulk_partial_update - description: Patch a list of device bay objects. + operationId: dcim_console_server_ports_bulk_partial_update + description: Patch a list of console server port objects. tags: - dcim requestBody: @@ -14703,12 +17602,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14720,11 +17619,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_bays_bulk_destroy - description: Delete a list of device bay objects. + operationId: dcim_console_server_ports_bulk_destroy + description: Delete a list of console server port objects. tags: - dcim requestBody: @@ -14733,12 +17632,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/ConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14746,16 +17645,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-bays/{id}/: + /api/dcim/console-server-ports/{id}/: get: - operationId: dcim_device_bays_retrieve - description: Get a device bay object. + operationId: dcim_console_server_ports_retrieve + description: Get a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14767,17 +17666,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' put: - operationId: dcim_device_bays_update - description: Put a device bay object. + operationId: dcim_console_server_ports_update + description: Put a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14785,10 +17684,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceBayRequest' + $ref: '#/components/schemas/WritableConsoleServerPortRequest' required: true security: - cookieAuth: [] @@ -14798,17 +17697,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' patch: - operationId: dcim_device_bays_partial_update - description: Patch a device bay object. + operationId: dcim_console_server_ports_partial_update + description: Patch a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14816,10 +17715,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceBayRequest' + $ref: '#/components/schemas/PatchedWritableConsoleServerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -14828,17 +17727,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceBay' + $ref: '#/components/schemas/ConsoleServerPort' description: '' delete: - operationId: dcim_device_bays_destroy - description: Delete a device bay object. + operationId: dcim_console_server_ports_destroy + description: Delete a console server port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device bay. + description: A unique integer value identifying this console server port. required: true tags: - dcim @@ -14848,115 +17747,35 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/: + /api/dcim/console-server-ports/{id}/trace/: get: - operationId: dcim_device_roles_list - description: Get a list of device role objects. + operationId: dcim_console_server_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: config_template_id - schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form - - in: query - name: config_template_id__n + - in: path + name: id schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form + type: integer + description: A unique integer value identifying this console server port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConsoleServerPort' + description: '' + /api/dcim/device-bay-templates/: + get: + operationId: dcim_device_bay_templates_list + description: Get a list of device bay template objects. + parameters: - in: query name: created schema: @@ -15109,6 +17928,24 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -15168,81 +18005,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: label__nie schema: type: array items: @@ -15250,11 +18073,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -15262,7 +18081,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -15270,80 +18089,81 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: name schema: type: array items: @@ -15351,11 +18171,11 @@ paths: explode: true style: form - in: query - name: slug__empty + name: name__empty schema: type: boolean - in: query - name: slug__ic + name: name__ic schema: type: array items: @@ -15363,7 +18183,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: name__ie schema: type: array items: @@ -15371,7 +18191,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__iew schema: type: array items: @@ -15379,7 +18199,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__isw schema: type: array items: @@ -15387,7 +18207,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__n schema: type: array items: @@ -15395,7 +18215,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__nic schema: type: array items: @@ -15403,7 +18223,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__nie schema: type: array items: @@ -15411,7 +18231,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__niew schema: type: array items: @@ -15419,38 +18239,35 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: tag + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag__n + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: vm_role - schema: - type: boolean tags: - dcim security: @@ -15461,21 +18278,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceRoleList' + $ref: '#/components/schemas/PaginatedDeviceBayTemplateList' description: '' post: - operationId: dcim_device_roles_create - description: Post a list of device role objects. + operationId: dcim_device_bay_templates_create + description: Post a list of device bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15485,11 +18302,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_device_roles_bulk_update - description: Put a list of device role objects. + operationId: dcim_device_bay_templates_bulk_update + description: Put a list of device bay template objects. tags: - dcim requestBody: @@ -15498,12 +18315,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15515,11 +18332,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_device_roles_bulk_partial_update - description: Patch a list of device role objects. + operationId: dcim_device_bay_templates_bulk_partial_update + description: Patch a list of device bay template objects. tags: - dcim requestBody: @@ -15528,12 +18345,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15545,11 +18362,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_device_roles_bulk_destroy - description: Delete a list of device role objects. + operationId: dcim_device_bay_templates_bulk_destroy + description: Delete a list of device bay template objects. tags: - dcim requestBody: @@ -15558,12 +18375,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15571,16 +18388,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-roles/{id}/: + /api/dcim/device-bay-templates/{id}/: get: - operationId: dcim_device_roles_retrieve - description: Get a device role object. + operationId: dcim_device_bay_templates_retrieve + description: Get a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15592,17 +18409,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' put: - operationId: dcim_device_roles_update - description: Put a device role object. + operationId: dcim_device_bay_templates_update + description: Put a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15610,10 +18427,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/DeviceBayTemplateRequest' required: true security: - cookieAuth: [] @@ -15623,17 +18440,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' patch: - operationId: dcim_device_roles_partial_update - description: Patch a device role object. + operationId: dcim_device_bay_templates_partial_update + description: Patch a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15641,10 +18458,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedDeviceRoleRequest' + $ref: '#/components/schemas/PatchedDeviceBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -15653,17 +18470,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/DeviceBayTemplate' description: '' delete: - operationId: dcim_device_roles_destroy - description: Delete a device role object. + operationId: dcim_device_bay_templates_destroy + description: Delete a device bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device role. + description: A unique integer value identifying this device bay template. required: true tags: - dcim @@ -15673,448 +18490,558 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/: + /api/dcim/device-bays/: get: - operationId: dcim_device_types_list - description: Get a list of device type objects. + operationId: dcim_device_bays_list + description: Get a list of device bay objects. parameters: - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: console_port_template_count + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: console_port_template_count__gt + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__gte + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__lt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__lte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_template_count__n + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_ports + name: created_by_request schema: - type: boolean - description: Has console ports + type: string + format: uuid - in: query - name: console_server_port_template_count + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__empty + name: description__empty schema: type: boolean - in: query - name: console_server_port_template_count__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_template_count__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports - schema: - type: boolean - description: Has console server ports - - in: query - name: created + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: device schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: created__lte + name: device__n schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: created__n + name: device_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - in: query - name: created_by_request + name: device_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form - in: query - name: default_platform + name: device_role schema: type: array items: type: string - description: Default platform (slug) + description: Device role (slug) explode: true style: form - in: query - name: default_platform__n + name: device_role__n schema: type: array items: type: string - description: Default platform (slug) + description: Device role (slug) explode: true style: form - in: query - name: default_platform_id + name: device_role_id schema: type: array items: type: integer - nullable: true - description: Default platform (ID) + description: Device role (ID) explode: true style: form - in: query - name: default_platform_id__n + name: device_role_id__n schema: type: array items: type: integer - nullable: true - description: Default platform (ID) + description: Device role (ID) explode: true style: form - in: query - name: description + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: description__empty + name: device_status__empty schema: type: boolean - in: query - name: description__ic + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__ie + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__iew + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__isw + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__n + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__nic + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: description__nisw + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: device_bay_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: device_bay_template_count__empty - schema: - type: boolean - - in: query - name: device_bay_template_count__gt + name: device_status__nisw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: device_bay_template_count__gte + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: device_bay_template_count__lt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: device_bay_template_count__lte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: device_bay_template_count__n + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: device_bays - schema: - type: boolean - description: Has device bays - - in: query - name: exclude_from_utilization - schema: - type: boolean - - in: query - name: front_port_template_count + name: id schema: type: array items: @@ -16123,29 +19050,11 @@ paths: explode: true style: form - in: query - name: front_port_template_count__empty + name: id__empty schema: type: boolean - in: query - name: front_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: front_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: front_port_template_count__lt + name: id__gt schema: type: array items: @@ -16154,7 +19063,7 @@ paths: explode: true style: form - in: query - name: front_port_template_count__lte + name: id__gte schema: type: array items: @@ -16163,7 +19072,7 @@ paths: explode: true style: form - in: query - name: front_port_template_count__n + name: id__lt schema: type: array items: @@ -16172,17 +19081,7 @@ paths: explode: true style: form - in: query - name: has_front_image - schema: - type: boolean - description: Has a front image - - in: query - name: has_rear_image - schema: - type: boolean - description: Has a rear image - - in: query - name: id + name: id__lte schema: type: array items: @@ -16191,11 +19090,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -16204,171 +19099,129 @@ paths: explode: true style: form - in: query - name: id__gte + name: installed_device schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: id__lt + name: installed_device__n schema: type: array items: - type: integer - format: int32 + type: string + nullable: true + description: Installed device (name) explode: true style: form - in: query - name: id__lte + name: installed_device_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: id__n + name: installed_device_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Installed device (ID) explode: true style: form - in: query - name: interface_template_count + name: label schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_template_count__empty + name: label__empty schema: type: boolean - in: query - name: interface_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_template_count__lt + name: label__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_template_count__lte + name: label__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interface_template_count__n + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_template_count + name: label__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__empty - schema: - type: boolean - - in: query - name: inventory_item_template_count__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: inventory_item_template_count__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: inventory_items - schema: - type: boolean - description: Has inventory items - - in: query - name: is_full_depth - schema: - type: boolean - in: query name: last_updated schema: @@ -16439,43 +19292,48 @@ paths: schema: type: integer - in: query - name: manufacturer + name: location schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer__n + name: location__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Location (slug) explode: true style: form - in: query - name: manufacturer_id + name: location_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: location_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Location (ID) explode: true style: form - in: query - name: model + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -16483,11 +19341,11 @@ paths: explode: true style: form - in: query - name: model__empty + name: name__empty schema: type: boolean - in: query - name: model__ic + name: name__ic schema: type: array items: @@ -16495,7 +19353,7 @@ paths: explode: true style: form - in: query - name: model__ie + name: name__ie schema: type: array items: @@ -16503,7 +19361,7 @@ paths: explode: true style: form - in: query - name: model__iew + name: name__iew schema: type: array items: @@ -16511,7 +19369,7 @@ paths: explode: true style: form - in: query - name: model__isw + name: name__isw schema: type: array items: @@ -16519,7 +19377,7 @@ paths: explode: true style: form - in: query - name: model__n + name: name__n schema: type: array items: @@ -16527,7 +19385,7 @@ paths: explode: true style: form - in: query - name: model__nic + name: name__nic schema: type: array items: @@ -16535,7 +19393,7 @@ paths: explode: true style: form - in: query - name: model__nie + name: name__nie schema: type: array items: @@ -16543,7 +19401,7 @@ paths: explode: true style: form - in: query - name: model__niew + name: name__niew schema: type: array items: @@ -16551,81 +19409,13 @@ paths: explode: true style: form - in: query - name: model__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_bay_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__empty - schema: - type: boolean - - in: query - name: module_bay_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bay_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: module_bays - schema: - type: boolean - description: Has module bays - name: offset required: false in: query @@ -16638,286 +19428,65 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: part_number - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__empty - schema: - type: boolean - - in: query - name: part_number__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: part_number__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlet_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__empty - schema: - type: boolean - - in: query - name: power_outlet_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlet_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_port_template_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__empty - schema: - type: boolean - - in: query - name: power_port_template_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_template_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - in: query name: q schema: type: string description: Search - in: query - name: rear_port_template_count + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: rear_port_template_count__empty - schema: - type: boolean - - in: query - name: rear_port_template_count__gt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: rear_port_template_count__gte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: rear_port_template_count__lt + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: rear_port_template_count__lte + name: region schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: rear_port_template_count__n + name: region__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: slug + name: region_id schema: type: array items: @@ -16925,11 +19494,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: region_id__n schema: type: array items: @@ -16937,23 +19502,25 @@ paths: explode: true style: form - in: query - name: slug__ie + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__iew + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__isw + name: site_group schema: type: array items: @@ -16961,7 +19528,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: site_group__n schema: type: array items: @@ -16969,7 +19536,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: site_group_id schema: type: array items: @@ -16977,7 +19544,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: site_group_id__n schema: type: array items: @@ -16985,53 +19552,23 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: slug__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - - in: query - name: subdevice_role - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - - in: query - name: subdevice_role__n - schema: - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - enum: - - child - - parent - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. - - - * `parent` - Parent - - * `child` - Child' - in: query name: tag schema: @@ -17048,161 +19585,47 @@ paths: type: string explode: true style: form - - in: query - name: u_height - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__empty - schema: - type: boolean - - in: query - name: u_height__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: u_height__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid - in: query - name: weight - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: weight__gte + name: virtual_chassis schema: type: array items: - type: number - format: double + type: string + description: Virtual Chassis explode: true style: form - in: query - name: weight__lt + name: virtual_chassis__n schema: type: array items: - type: number - format: double + type: string + description: Virtual Chassis explode: true style: form - in: query - name: weight__lte + name: virtual_chassis_id schema: type: array items: - type: number - format: double + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: weight__n + name: virtual_chassis_id__n schema: type: array items: - type: number - format: double + type: integer + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' tags: - dcim security: @@ -17213,21 +19636,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceTypeList' + $ref: '#/components/schemas/PaginatedDeviceBayList' description: '' post: - operationId: dcim_device_types_create - description: Post a list of device type objects. + operationId: dcim_device_bays_create + description: Post a list of device bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17237,11 +19660,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_types_bulk_update - description: Put a list of device type objects. + operationId: dcim_device_bays_bulk_update + description: Put a list of device bay objects. tags: - dcim requestBody: @@ -17250,12 +19673,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17267,11 +19690,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_types_bulk_partial_update - description: Patch a list of device type objects. + operationId: dcim_device_bays_bulk_partial_update + description: Patch a list of device bay objects. tags: - dcim requestBody: @@ -17280,12 +19703,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17297,11 +19720,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_types_bulk_destroy - description: Delete a list of device type objects. + operationId: dcim_device_bays_bulk_destroy + description: Delete a list of device bay objects. tags: - dcim requestBody: @@ -17310,12 +19733,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17323,16 +19746,16 @@ paths: responses: '204': description: No response body - /api/dcim/device-types/{id}/: + /api/dcim/device-bays/{id}/: get: - operationId: dcim_device_types_retrieve - description: Get a device type object. + operationId: dcim_device_bays_retrieve + description: Get a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17344,17 +19767,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' put: - operationId: dcim_device_types_update - description: Put a device type object. + operationId: dcim_device_bays_update + description: Put a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17362,10 +19785,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceTypeRequest' + $ref: '#/components/schemas/DeviceBayRequest' required: true security: - cookieAuth: [] @@ -17375,17 +19798,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' patch: - operationId: dcim_device_types_partial_update - description: Patch a device type object. + operationId: dcim_device_bays_partial_update + description: Patch a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17393,10 +19816,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' + $ref: '#/components/schemas/PatchedDeviceBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -17405,17 +19828,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/DeviceBay' description: '' delete: - operationId: dcim_device_types_destroy - description: Delete a device type object. + operationId: dcim_device_bays_destroy + description: Delete a device bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device type. + description: A unique integer value identifying this device bay. required: true tags: - dcim @@ -17425,65 +19848,13 @@ paths: responses: '204': description: No response body - /api/dcim/devices/: + /api/dcim/device-roles/: get: - operationId: dcim_devices_list - description: Get a list of device objects. + operationId: dcim_device_roles_list + description: Get a list of device role objects. parameters: - in: query - name: airflow - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: airflow__n - schema: - type: string - x-spec-enum-id: 58e389e240a5e53d - enum: - - front-to-rear - - left-to-right - - mixed - - passive - - rear-to-front - - right-to-left - - side-to-rear - description: '* `front-to-rear` - Front to rear - - * `rear-to-front` - Rear to front - - * `left-to-right` - Left to right - - * `right-to-left` - Right to left - - * `side-to-rear` - Side to rear - - * `passive` - Passive - - * `mixed` - Mixed' - - in: query - name: asset_tag + name: color schema: type: array items: @@ -17491,11 +19862,11 @@ paths: explode: true style: form - in: query - name: asset_tag__empty + name: color__empty schema: type: boolean - in: query - name: asset_tag__ic + name: color__ic schema: type: array items: @@ -17503,7 +19874,7 @@ paths: explode: true style: form - in: query - name: asset_tag__ie + name: color__ie schema: type: array items: @@ -17511,7 +19882,7 @@ paths: explode: true style: form - in: query - name: asset_tag__iew + name: color__iew schema: type: array items: @@ -17519,7 +19890,7 @@ paths: explode: true style: form - in: query - name: asset_tag__isw + name: color__isw schema: type: array items: @@ -17527,7 +19898,7 @@ paths: explode: true style: form - in: query - name: asset_tag__n + name: color__n schema: type: array items: @@ -17535,7 +19906,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nic + name: color__nic schema: type: array items: @@ -17543,7 +19914,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nie + name: color__nie schema: type: array items: @@ -17551,7 +19922,7 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: color__niew schema: type: array items: @@ -17559,7 +19930,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: color__nisw schema: type: array items: @@ -17567,227 +19938,237 @@ paths: explode: true style: form - in: query - name: cluster_id + name: config_template_id schema: type: array items: type: integer nullable: true - description: VM cluster (ID) + description: Config template (ID) explode: true style: form - in: query - name: cluster_id__n + name: config_template_id__n schema: type: array items: type: integer nullable: true - description: VM cluster (ID) + description: Config template (ID) explode: true style: form - in: query - name: config_template_id + name: created schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string + format: date-time explode: true style: form - in: query - name: config_template_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string + format: date-time explode: true style: form - in: query - name: console_port_count + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__empty - schema: - type: boolean - - in: query - name: console_port_count__gt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__gte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__lt + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__lte + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: console_port_count__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_ports + name: description__empty schema: type: boolean - description: Has console ports - in: query - name: console_server_port_count + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__empty + name: description__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: console_server_port_count__gt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__gte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lt + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__lte + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_port_count__n + name: description__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: console_server_ports + name: description__niew schema: - type: boolean - description: Has console server ports + type: array + items: + type: string + explode: true + style: form - in: query - name: contact + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: id__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: id__lt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: id__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: id__n schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: created + name: last_updated schema: type: array items: @@ -17796,7 +20177,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -17805,7 +20186,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -17814,7 +20195,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -17823,7 +20204,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -17832,7 +20213,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -17841,7 +20222,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -17849,13 +20230,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created_by_request + name: modified_by_request schema: type: string format: uuid - in: query - name: description + name: name schema: type: array items: @@ -17863,11 +20250,11 @@ paths: explode: true style: form - in: query - name: description__empty + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -17875,7 +20262,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -17883,7 +20270,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -17891,7 +20278,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -17899,7 +20286,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -17907,7 +20294,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -17915,7 +20302,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -17923,7 +20310,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -17931,138 +20318,394 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: device_bay_count + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__empty + name: slug__empty schema: type: boolean - in: query - name: device_bay_count__gt + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__gte + name: slug__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__lt + name: slug__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__lte + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bay_count__n + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: device_bays + name: slug__nic schema: - type: boolean - description: Has device bays + type: array + items: + type: string + explode: true + style: form - in: query - name: device_type + name: slug__nie schema: type: array items: type: string - description: Device type (slug) explode: true style: form - in: query - name: device_type__n + name: slug__niew schema: type: array items: type: string - description: Device type (slug) explode: true style: form - in: query - name: device_type_id + name: slug__nisw schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: tag schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: face + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request schema: type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - enum: - - front - - rear - description: '* `front` - Front - - * `rear` - Rear' + format: uuid + - in: query + name: vm_role + schema: + type: boolean + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceRoleList' + description: '' + post: + operationId: dcim_device_roles_create + description: Post a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + put: + operationId: dcim_device_roles_bulk_update + description: Put a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRole' + description: '' + patch: + operationId: dcim_device_roles_bulk_partial_update + description: Patch a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRole' + description: '' + delete: + operationId: dcim_device_roles_bulk_destroy + description: Delete a list of device role objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-roles/{id}/: + get: + operationId: dcim_device_roles_retrieve + description: Get a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + put: + operationId: dcim_device_roles_update + description: Put a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DeviceRoleRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + patch: + operationId: dcim_device_roles_partial_update + description: Patch a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDeviceRoleRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDeviceRoleRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/DeviceRole' + description: '' + delete: + operationId: dcim_device_roles_destroy + description: Delete a device role object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this device role. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/device-types/: + get: + operationId: dcim_device_types_list + description: Get a list of device type objects. + parameters: - in: query - name: face__n + name: airflow schema: type: string - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face + x-spec-enum-id: 58e389e240a5e53d enum: - - front - - rear - description: '* `front` - Front + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear - * `rear` - Rear' + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: front_port_count + name: console_port_template_count schema: type: array items: @@ -18071,11 +20714,11 @@ paths: explode: true style: form - in: query - name: front_port_count__empty + name: console_port_template_count__empty schema: type: boolean - in: query - name: front_port_count__gt + name: console_port_template_count__gt schema: type: array items: @@ -18084,7 +20727,7 @@ paths: explode: true style: form - in: query - name: front_port_count__gte + name: console_port_template_count__gte schema: type: array items: @@ -18093,7 +20736,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lt + name: console_port_template_count__lt schema: type: array items: @@ -18102,7 +20745,7 @@ paths: explode: true style: form - in: query - name: front_port_count__lte + name: console_port_template_count__lte schema: type: array items: @@ -18111,7 +20754,7 @@ paths: explode: true style: form - in: query - name: front_port_count__n + name: console_port_template_count__n schema: type: array items: @@ -18120,22 +20763,12 @@ paths: explode: true style: form - in: query - name: has_oob_ip - schema: - type: boolean - description: Has an out-of-band IP - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: has_virtual_device_context + name: console_ports schema: type: boolean - description: Has virtual device context + description: Has console ports - in: query - name: id + name: console_server_port_template_count schema: type: array items: @@ -18144,11 +20777,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: console_server_port_template_count__empty schema: type: boolean - in: query - name: id__gt + name: console_server_port_template_count__gt schema: type: array items: @@ -18157,7 +20790,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: console_server_port_template_count__gte schema: type: array items: @@ -18166,7 +20799,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: console_server_port_template_count__lt schema: type: array items: @@ -18175,7 +20808,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: console_server_port_template_count__lte schema: type: array items: @@ -18184,7 +20817,7 @@ paths: explode: true style: form - in: query - name: id__n + name: console_server_port_template_count__n schema: type: array items: @@ -18193,480 +20826,458 @@ paths: explode: true style: form - in: query - name: interface_count + name: console_server_ports + schema: + type: boolean + description: Has console server ports + - in: query + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interface_count__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: inventory_item_count + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: inventory_item_count__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: inventory_item_count__gt + name: default_platform schema: type: array items: - type: integer - format: int32 + type: string + description: Default platform (slug) explode: true style: form - in: query - name: inventory_item_count__gte + name: default_platform__n schema: type: array items: - type: integer - format: int32 + type: string + description: Default platform (slug) explode: true style: form - in: query - name: inventory_item_count__lt + name: default_platform_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Default platform (ID) explode: true style: form - in: query - name: inventory_item_count__lte + name: default_platform_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Default platform (ID) explode: true style: form - in: query - name: inventory_item_count__n + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: is_full_depth + name: description__empty schema: type: boolean - description: Is full depth - in: query - name: last_updated + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: latitude + name: description__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt + name: description__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__gte + name: device_bay_template_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: latitude__lt + name: device_bay_template_count__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: latitude__lte + name: device_bay_template_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: latitude__n + name: device_bay_template_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: local_context_data - schema: - type: boolean - description: Has local config context data - in: query - name: location_id + name: device_bay_template_count__lt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: device_bay_template_count__lte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: longitude + name: device_bay_template_count__n schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__empty + name: device_bays schema: type: boolean + description: Has device bays - in: query - name: longitude__gt + name: exclude_from_utilization schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: longitude__gte + name: front_port_template_count schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__lt + name: front_port_template_count__empty schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: boolean - in: query - name: longitude__lte + name: front_port_template_count__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: longitude__n + name: front_port_template_count__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: mac_address + name: front_port_template_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__ic + name: front_port_template_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__ie + name: front_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__iew + name: has_front_image schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has a front image - in: query - name: mac_address__isw + name: has_rear_image + schema: + type: boolean + description: Has a rear image + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: mac_address__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer + name: interface_template_count schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer__n + name: interface_template_count__empty + schema: + type: boolean + - in: query + name: interface_template_count__gt schema: type: array items: - type: string - description: Manufacturer (slug) + type: integer + format: int32 explode: true style: form - in: query - name: manufacturer_id + name: interface_template_count__gte schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: manufacturer_id__n + name: interface_template_count__lt schema: type: array items: type: integer - description: Manufacturer (ID) + format: int32 explode: true style: form - in: query - name: model + name: interface_template_count__lte schema: type: array items: - type: string - description: Device model (slug) + type: integer + format: int32 explode: true style: form - in: query - name: model__n + name: interface_template_count__n schema: type: array items: - type: string - description: Device model (slug) + type: integer + format: int32 explode: true style: form - in: query - name: modified_by_request + name: interfaces schema: - type: string - format: uuid + type: boolean + description: Has interfaces - in: query - name: module_bay_count + name: inventory_item_template_count schema: type: array items: @@ -18675,11 +21286,11 @@ paths: explode: true style: form - in: query - name: module_bay_count__empty + name: inventory_item_template_count__empty schema: type: boolean - in: query - name: module_bay_count__gt + name: inventory_item_template_count__gt schema: type: array items: @@ -18688,7 +21299,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__gte + name: inventory_item_template_count__gte schema: type: array items: @@ -18697,7 +21308,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__lt + name: inventory_item_template_count__lt schema: type: array items: @@ -18706,7 +21317,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__lte + name: inventory_item_template_count__lte schema: type: array items: @@ -18715,7 +21326,7 @@ paths: explode: true style: form - in: query - name: module_bay_count__n + name: inventory_item_template_count__n schema: type: array items: @@ -18724,263 +21335,210 @@ paths: explode: true style: form - in: query - name: module_bays + name: inventory_items schema: type: boolean - description: Has module bays - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form + description: Has inventory items - in: query - name: name__empty + name: is_full_depth schema: type: boolean - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - in: query - name: oob_ip_id - schema: - type: array - items: - type: integer - description: OOB IP (ID) - explode: true - style: form - - in: query - name: oob_ip_id__n + name: manufacturer schema: type: array items: - type: integer - description: OOB IP (ID) + type: string + description: Manufacturer (slug) explode: true style: form - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent_bay_id + name: manufacturer__n schema: type: array items: - type: integer - description: Parent bay (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: parent_bay_id__n + name: manufacturer_id schema: type: array items: type: integer - description: Parent bay (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: parent_device_id + name: manufacturer_id__n schema: type: array items: type: integer - description: Parent Device (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: parent_device_id__n + name: model schema: type: array items: - type: integer - description: Parent Device (ID) + type: string explode: true style: form - in: query - name: pass_through_ports + name: model__empty schema: type: boolean - description: Has pass-through ports - in: query - name: platform + name: model__ic schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: model__ie schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: model__iew schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: platform_id__n + name: model__isw schema: type: array items: - type: integer - nullable: true - description: Platform (ID) + type: string explode: true style: form - in: query - name: position + name: model__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__gt + name: model__nic schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__gte + name: model__nie schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lt + name: model__niew schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__lte + name: model__nisw schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: position__n + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: power_outlet_count + name: module_bay_template_count schema: type: array items: @@ -18989,11 +21547,11 @@ paths: explode: true style: form - in: query - name: power_outlet_count__empty + name: module_bay_template_count__empty schema: type: boolean - in: query - name: power_outlet_count__gt + name: module_bay_template_count__gt schema: type: array items: @@ -19002,7 +21560,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__gte + name: module_bay_template_count__gte schema: type: array items: @@ -19011,7 +21569,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__lt + name: module_bay_template_count__lt schema: type: array items: @@ -19020,7 +21578,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__lte + name: module_bay_template_count__lte schema: type: array items: @@ -19029,7 +21587,7 @@ paths: explode: true style: form - in: query - name: power_outlet_count__n + name: module_bay_template_count__n schema: type: array items: @@ -19038,134 +21596,113 @@ paths: explode: true style: form - in: query - name: power_outlets + name: module_bays schema: type: boolean - description: Has power outlets - - in: query - name: power_port_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: power_port_count__empty + description: Has module bays + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: boolean + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: power_port_count__gt + name: part_number schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__gte + name: part_number__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: power_port_count__lt + name: part_number__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__lte + name: part_number__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_port_count__n + name: part_number__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: primary_ip4_id + name: part_number__isw schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: part_number__n schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: part_number__nic schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: part_number__nie schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack_id + name: part_number__niew schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: part_number__nisw schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rear_port_count + name: pass_through_ports + schema: + type: boolean + description: Has pass-through ports + - in: query + name: power_outlet_template_count schema: type: array items: @@ -19174,11 +21711,11 @@ paths: explode: true style: form - in: query - name: rear_port_count__empty + name: power_outlet_template_count__empty schema: type: boolean - in: query - name: rear_port_count__gt + name: power_outlet_template_count__gt schema: type: array items: @@ -19187,7 +21724,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__gte + name: power_outlet_template_count__gte schema: type: array items: @@ -19196,7 +21733,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lt + name: power_outlet_template_count__lt schema: type: array items: @@ -19205,7 +21742,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__lte + name: power_outlet_template_count__lte schema: type: array items: @@ -19214,7 +21751,7 @@ paths: explode: true style: form - in: query - name: rear_port_count__n + name: power_outlet_template_count__n schema: type: array items: @@ -19223,253 +21760,166 @@ paths: explode: true style: form - in: query - name: region + name: power_outlets schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form + type: boolean + description: Has power outlets - in: query - name: region__n + name: power_port_template_count schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: region_id + name: power_port_template_count__empty schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: boolean - in: query - name: region_id__n + name: power_port_template_count__gt schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) + format: int32 explode: true style: form - in: query - name: role__n + name: power_port_template_count__gte schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: power_port_template_count__lt schema: type: array items: type: integer - description: Role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: power_port_template_count__lte schema: type: array items: type: integer - description: Role (ID) + format: int32 explode: true style: form - in: query - name: serial + name: power_port_template_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: serial__empty + name: power_ports schema: type: boolean + description: Has power ports - in: query - name: serial__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__niew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: serial__nisw + name: rear_port_template_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: site + name: rear_port_template_count__empty schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form + type: boolean - in: query - name: site__n + name: rear_port_template_count__gt schema: type: array items: - type: string - description: Site name (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: rear_port_template_count__gte schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group__n + name: rear_port_template_count__lt schema: type: array items: type: integer - description: Site group (slug) + format: int32 explode: true style: form - in: query - name: site_group_id + name: rear_port_template_count__lte schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: rear_port_template_count__n schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: slug schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__empty schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: boolean - in: query - name: status + name: slug__ic schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: status__n + name: slug__ie schema: type: array items: type: string - x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: tag + name: slug__iew schema: type: array items: @@ -19477,7 +21927,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__isw schema: type: array items: @@ -19485,223 +21935,215 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: slug__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: slug__niew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: subdevice_role schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + enum: + - child + - parent + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vc_position + name: u_height schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_position__empty + name: u_height__empty schema: type: boolean - in: query - name: vc_position__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vc_position__gte + name: u_height__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_position__lt + name: u_height__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_position__lte + name: u_height__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_position__n + name: u_height__lte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority + name: u_height__n schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__empty + name: updated_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: vc_priority__gt + name: weight schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__gte + name: weight__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: vc_priority__lt + name: weight__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__lte + name: weight__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: vc_priority__n + name: weight__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_id + name: weight__lte schema: type: array items: - type: integer - description: Virtual chassis (ID) + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_id__n + name: weight__n schema: type: array items: - type: integer - description: Virtual chassis (ID) + type: number + format: double explode: true style: form - in: query - name: virtual_chassis_member + name: weight_unit schema: - type: boolean - description: Is a virtual chassis member + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -19712,21 +22154,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + $ref: '#/components/schemas/PaginatedDeviceTypeList' description: '' post: - operationId: dcim_devices_create - description: Post a list of device objects. + operationId: dcim_device_types_create + description: Post a list of device type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19736,11 +22178,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_devices_bulk_update - description: Put a list of device objects. + operationId: dcim_device_types_bulk_update + description: Put a list of device type objects. tags: - dcim requestBody: @@ -19749,12 +22191,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19766,11 +22208,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_devices_bulk_partial_update - description: Patch a list of device objects. + operationId: dcim_device_types_bulk_partial_update + description: Patch a list of device type objects. tags: - dcim requestBody: @@ -19779,12 +22221,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19796,11 +22238,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_devices_bulk_destroy - description: Delete a list of device objects. + operationId: dcim_device_types_bulk_destroy + description: Delete a list of device type objects. tags: - dcim requestBody: @@ -19809,12 +22251,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/DeviceWithConfigContextRequest' + $ref: '#/components/schemas/DeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19822,16 +22264,16 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/: + /api/dcim/device-types/{id}/: get: - operationId: dcim_devices_retrieve - description: Get a device object. + operationId: dcim_device_types_retrieve + description: Get a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19843,17 +22285,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' put: - operationId: dcim_devices_update - description: Put a device object. + operationId: dcim_device_types_update + description: Put a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19861,10 +22303,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/WritableDeviceTypeRequest' required: true security: - cookieAuth: [] @@ -19874,17 +22316,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' patch: - operationId: dcim_devices_partial_update - description: Patch a device object. + operationId: dcim_device_types_partial_update + description: Patch a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19892,10 +22334,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableDeviceTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -19904,17 +22346,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/DeviceWithConfigContext' + $ref: '#/components/schemas/DeviceType' description: '' delete: - operationId: dcim_devices_destroy - description: Delete a device object. + operationId: dcim_device_types_destroy + description: Delete a device type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this device. + description: A unique integer value identifying this device type. required: true tags: - dcim @@ -19924,55 +22366,39 @@ paths: responses: '204': description: No response body - /api/dcim/devices/{id}/render-config/: - post: - operationId: dcim_devices_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. + /api/dcim/devices/: + get: + operationId: dcim_devices_list + description: Get a list of device objects. parameters: - in: query - name: format + name: airflow schema: type: string + x-spec-enum-id: 58e389e240a5e53d enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this device. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/DeviceWithConfigContext' - description: '' - /api/dcim/front-port-templates/: - get: - operationId: dcim_front_port_templates_list - description: Get a list of front port template objects. - parameters: + - front-to-rear + - left-to-right + - mixed + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' - in: query - name: color + name: asset_tag schema: type: array items: @@ -19980,11 +22406,11 @@ paths: explode: true style: form - in: query - name: color__empty + name: asset_tag__empty schema: type: boolean - in: query - name: color__ic + name: asset_tag__ic schema: type: array items: @@ -19992,7 +22418,7 @@ paths: explode: true style: form - in: query - name: color__ie + name: asset_tag__ie schema: type: array items: @@ -20000,7 +22426,7 @@ paths: explode: true style: form - in: query - name: color__iew + name: asset_tag__iew schema: type: array items: @@ -20008,7 +22434,7 @@ paths: explode: true style: form - in: query - name: color__isw + name: asset_tag__isw schema: type: array items: @@ -20016,7 +22442,7 @@ paths: explode: true style: form - in: query - name: color__n + name: asset_tag__n schema: type: array items: @@ -20024,7 +22450,7 @@ paths: explode: true style: form - in: query - name: color__nic + name: asset_tag__nic schema: type: array items: @@ -20032,7 +22458,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: asset_tag__nie schema: type: array items: @@ -20040,7 +22466,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: asset_tag__niew schema: type: array items: @@ -20048,7 +22474,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: asset_tag__nisw schema: type: array items: @@ -20056,309 +22482,329 @@ paths: explode: true style: form - in: query - name: created + name: cluster_group schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__empty + name: cluster_group__n schema: type: array items: type: string - format: date-time + description: Cluster group (slug) explode: true style: form - in: query - name: created__gt + name: cluster_group_id schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: created__gte + name: cluster_group_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: created__lt + name: cluster_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: created__lte + name: cluster_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: VM cluster (ID) explode: true style: form - in: query - name: created__n + name: config_template_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Config template (ID) explode: true style: form - in: query - name: created_by_request + name: config_template_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form - in: query - name: description + name: console_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: console_port_count__empty schema: type: boolean - in: query - name: description__ic + name: console_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: console_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: console_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: console_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: console_port_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: console_ports schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has console ports - in: query - name: description__nie + name: console_server_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: console_server_port_count__empty + schema: + type: boolean + - in: query + name: console_server_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: console_server_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: console_server_port_count__lt schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: console_server_port_count__lte schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id + name: console_server_port_count__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: devicetype_id__n + name: console_server_ports + schema: + type: boolean + description: Has console server ports + - in: query + name: contact schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Contact explode: true style: form - in: query - name: id + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__lte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__n + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: label + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -20366,7 +22812,11 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -20374,7 +22824,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__ie schema: type: array items: @@ -20382,7 +22832,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__iew schema: type: array items: @@ -20390,238 +22840,261 @@ paths: explode: true style: form - in: query - name: last_updated + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: device_bay_count schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: device_bay_count__empty schema: - type: string - format: uuid + type: boolean - in: query - name: module_type_id + name: device_bay_count__gt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: module_type_id__n + name: device_bay_count__gte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id + name: device_bay_count__lt schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: moduletype_id__n + name: device_bay_count__lte schema: type: array items: type: integer - nullable: true - description: Module type (ID) + format: int32 explode: true style: form - in: query - name: name + name: device_bay_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: device_bays schema: type: boolean + description: Has device bays - in: query - name: name__ic + name: device_type schema: type: array items: type: string + description: Device type (slug) explode: true style: form - in: query - name: name__ie + name: device_type__n schema: type: array items: type: string + description: Device type (slug) explode: true style: form - in: query - name: name__iew + name: device_type_id schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: name__isw + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: name__n + name: face + schema: + type: string + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + enum: + - front + - rear + description: '* `front` - Front + + * `rear` - Rear' + - in: query + name: front_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: front_port_count__empty + schema: + type: boolean + - in: query + name: front_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: front_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: front_port_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: front_port_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: front_port_count__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_oob_ip schema: - type: string + type: boolean + description: Has an out-of-band IP - in: query - name: q + name: has_primary_ip schema: - type: string - description: Search + type: boolean + description: Has a primary IP - in: query - name: rear_port_id + name: has_virtual_device_context + schema: + type: boolean + description: Has virtual device context + - in: query + name: id schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: rear_port_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: rear_port_position + name: id__gte schema: type: array items: @@ -20630,11 +23103,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty - schema: - type: boolean - - in: query - name: rear_port_position__gt + name: id__lt schema: type: array items: @@ -20643,7 +23112,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: id__lte schema: type: array items: @@ -20652,7 +23121,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: id__n schema: type: array items: @@ -20661,7 +23130,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: interface_count schema: type: array items: @@ -20670,7 +23139,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt schema: type: array items: @@ -20679,491 +23152,317 @@ paths: explode: true style: form - in: query - name: type + name: interface_count__gte schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: integer + format: int32 explode: true style: form - in: query - name: type__n + name: interface_count__lt schema: type: array items: - type: string - x-spec-enum-id: 0276d1110ada597a + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontPortTemplateList' - description: '' - post: - operationId: dcim_front_port_templates_create - description: Post a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_bulk_update - description: Put a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_bulk_partial_update - description: Patch a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_bulk_destroy - description: Delete a list of front port template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/FrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-port-templates/{id}/: - get: - operationId: dcim_front_port_templates_retrieve - description: Get a front port template object. - parameters: - - in: path - name: id + name: interface_count__lte schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - put: - operationId: dcim_front_port_templates_update - description: Put a front port template object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__n schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - patch: - operationId: dcim_front_port_templates_partial_update - description: Patch a front port template object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interfaces schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/FrontPortTemplate' - description: '' - delete: - operationId: dcim_front_port_templates_destroy - description: Delete a front port template object. - parameters: - - in: path - name: id + type: boolean + description: Has interfaces + - in: query + name: inventory_item_count schema: - type: integer - description: A unique integer value identifying this front port template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/front-ports/: - get: - operationId: dcim_front_ports_list - description: Get a list of front port objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: cable_end + name: inventory_item_count__empty schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: boolean - in: query - name: cable_end__n + name: inventory_item_count__gt schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: cable_id + name: inventory_item_count__gte schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cable_id__n + name: inventory_item_count__lt schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled + name: inventory_item_count__lte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: color + name: inventory_item_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__empty + name: is_full_depth schema: type: boolean + description: Is full depth - in: query - name: color__ic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__niew + name: latitude schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: color__nisw + name: latitude__empty + schema: + type: boolean + - in: query + name: latitude__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: created + name: latitude__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__empty + name: latitude__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gt + name: latitude__lte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created__gte + name: latitude__n schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created__lt + name: local_context_data + schema: + type: boolean + description: Has local config context data + - in: query + name: location_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: location_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: longitude schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: created_by_request + name: longitude__empty schema: - type: string - format: uuid + type: boolean - in: query - name: description + name: longitude__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__empty + name: longitude__gte schema: - type: boolean + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: description__ic + name: longitude__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__ie + name: longitude__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__iew + name: longitude__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: description__isw + name: mac_address schema: type: array items: @@ -21171,7 +23470,7 @@ paths: explode: true style: form - in: query - name: description__n + name: mac_address__ic schema: type: array items: @@ -21179,7 +23478,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: mac_address__ie schema: type: array items: @@ -21187,7 +23486,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: mac_address__iew schema: type: array items: @@ -21195,7 +23494,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: mac_address__isw schema: type: array items: @@ -21203,7 +23502,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: mac_address__n schema: type: array items: @@ -21211,81 +23510,98 @@ paths: explode: true style: form - in: query - name: device + name: mac_address__nic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: mac_address__nie schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: mac_address__niew schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: mac_address__nisw schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: manufacturer schema: type: array items: type: string - description: Device type (model) + description: Manufacturer (slug) explode: true style: form - in: query - name: device_type__n + name: manufacturer__n schema: type: array items: type: string - description: Device type (model) + description: Manufacturer (slug) explode: true style: form - in: query - name: device_type_id + name: manufacturer_id schema: type: array items: type: integer - description: Device type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: device_type_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: id + name: model + schema: + type: array + items: + type: string + description: Device model (slug) + explode: true + style: form + - in: query + name: model__n + schema: + type: array + items: + type: string + description: Device model (slug) + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_bay_count schema: type: array items: @@ -21294,11 +23610,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: module_bay_count__empty schema: type: boolean - in: query - name: id__gt + name: module_bay_count__gt schema: type: array items: @@ -21307,7 +23623,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: module_bay_count__gte schema: type: array items: @@ -21316,7 +23632,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: module_bay_count__lt schema: type: array items: @@ -21325,7 +23641,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: module_bay_count__lte schema: type: array items: @@ -21334,7 +23650,7 @@ paths: explode: true style: form - in: query - name: id__n + name: module_bay_count__n schema: type: array items: @@ -21343,7 +23659,12 @@ paths: explode: true style: form - in: query - name: label + name: module_bays + schema: + type: boolean + description: Has module bays + - in: query + name: name schema: type: array items: @@ -21351,11 +23672,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: name__empty schema: type: boolean - in: query - name: label__ic + name: name__ic schema: type: array items: @@ -21363,7 +23684,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: name__ie schema: type: array items: @@ -21371,7 +23692,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: name__iew schema: type: array items: @@ -21379,7 +23700,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: name__isw schema: type: array items: @@ -21387,7 +23708,7 @@ paths: explode: true style: form - in: query - name: label__n + name: name__n schema: type: array items: @@ -21395,7 +23716,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: name__nic schema: type: array items: @@ -21403,7 +23724,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: name__nie schema: type: array items: @@ -21411,7 +23732,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: name__niew schema: type: array items: @@ -21419,306 +23740,367 @@ paths: explode: true style: form - in: query - name: label__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer - in: query - name: last_updated + name: oob_ip_id schema: type: array items: - type: string - format: date-time + type: integer + description: OOB IP (ID) explode: true style: form - in: query - name: last_updated__empty + name: oob_ip_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: OOB IP (ID) explode: true style: form + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: last_updated__gt + name: parent_bay_id schema: type: array items: - type: string - format: date-time + type: integer + description: Parent bay (ID) explode: true style: form - in: query - name: last_updated__gte + name: parent_bay_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Parent bay (ID) explode: true style: form - in: query - name: last_updated__lt + name: parent_device_id schema: type: array items: - type: string - format: date-time + type: integer + description: Parent Device (ID) explode: true style: form - in: query - name: last_updated__lte + name: parent_device_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Parent Device (ID) explode: true style: form - in: query - name: last_updated__n + name: pass_through_ports + schema: + type: boolean + description: Has pass-through ports + - in: query + name: platform schema: type: array items: type: string - format: date-time + description: Platform (slug) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: platform__n schema: type: array items: type: string - description: Location (slug) + description: Platform (slug) explode: true style: form - in: query - name: location__n + name: platform_id schema: type: array items: - type: string - description: Location (slug) + type: integer + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: location_id + name: platform_id__n schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Platform (ID) explode: true style: form - in: query - name: location_id__n + name: position schema: type: array items: - type: integer - description: Location (ID) + type: number + format: double explode: true style: form - in: query - name: mark_connected + name: position__empty schema: type: boolean - in: query - name: modified_by_request + name: position__gt schema: - type: string - format: uuid + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: module_id + name: position__gte schema: type: array items: - type: integer - nullable: true - description: Module (ID) + type: number + format: double explode: true style: form - in: query - name: module_id__n + name: position__lt schema: type: array items: - type: integer - nullable: true - description: Module (ID) + type: number + format: double explode: true style: form - in: query - name: name + name: position__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__empty + name: position__n schema: - type: boolean + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: name__ic + name: power_outlet_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: power_outlet_count__empty + schema: + type: boolean + - in: query + name: power_outlet_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: power_outlet_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: power_outlet_count__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: power_outlet_count__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: power_outlet_count__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: power_outlets + schema: + type: boolean + description: Has power outlets + - in: query + name: power_port_count schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: power_port_count__empty + schema: + type: boolean + - in: query + name: power_port_count__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: power_port_count__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: occupied + name: power_port_count__lt schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_count__lte schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: power_port_count__n schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: power_ports schema: - type: string - description: Search + type: boolean + description: Has power ports - in: query - name: rack + name: primary_ip4_id schema: type: array items: - type: string - description: Rack (name) + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rack__n + name: primary_ip4_id__n schema: type: array items: - type: string - description: Rack (name) + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: rack_id + name: primary_ip6_id schema: type: array items: type: integer - description: Rack (ID) + description: Primary IPv6 (ID) explode: true style: form - in: query - name: rack_id__n + name: primary_ip6_id__n schema: type: array items: type: integer - description: Rack (ID) + description: Primary IPv6 (ID) explode: true style: form - in: query - name: rear_port_id + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: type: integer + description: Rack (ID) explode: true style: form - in: query - name: rear_port_id__n + name: rack_id__n schema: type: array items: type: integer + description: Rack (ID) explode: true style: form - in: query - name: rear_port_position + name: rear_port_count schema: type: array items: @@ -21727,11 +24109,11 @@ paths: explode: true style: form - in: query - name: rear_port_position__empty + name: rear_port_count__empty schema: type: boolean - in: query - name: rear_port_position__gt + name: rear_port_count__gt schema: type: array items: @@ -21740,7 +24122,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__gte + name: rear_port_count__gte schema: type: array items: @@ -21749,7 +24131,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lt + name: rear_port_count__lt schema: type: array items: @@ -21758,7 +24140,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__lte + name: rear_port_count__lte schema: type: array items: @@ -21767,7 +24149,7 @@ paths: explode: true style: form - in: query - name: rear_port_position__n + name: rear_port_count__n schema: type: array items: @@ -21780,8 +24162,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -21789,8 +24170,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -21798,8 +24178,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -21807,8 +24186,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -21817,7 +24195,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -21826,7 +24204,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -21835,7 +24213,7 @@ paths: type: array items: type: integer - description: Device role (ID) + description: Role (ID) explode: true style: form - in: query @@ -21844,7 +24222,91 @@ paths: type: array items: type: integer - description: Device role (ID) + description: Role (ID) + explode: true + style: form + - in: query + name: serial + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -21870,8 +24332,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -21879,8 +24340,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -21888,8 +24348,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -21897,8 +24356,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -21920,105 +24378,543 @@ paths: explode: true style: form - in: query - name: tag + name: status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: tag__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: type + name: status__ie schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: type__n + name: status__iew schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: updated_by_request + name: status__isw schema: - type: string - format: uuid + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: virtual_chassis + name: status__n schema: type: array items: type: string - description: Virtual Chassis + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: virtual_chassis__n + name: status__nic schema: type: array items: type: string - description: Virtual Chassis + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: virtual_chassis_id + name: status__nie schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: virtual_chassis_id__n + name: status__niew schema: type: array items: - type: integer - description: Virtual Chassis (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedFrontPortList' - description: '' - post: - operationId: dcim_front_ports_create - description: Post a list of front port objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vc_position + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__empty + schema: + type: boolean + - in: query + name: vc_position__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_position__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__empty + schema: + type: boolean + - in: query + name: vc_priority__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vc_priority__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_member + schema: + type: boolean + description: Is a virtual chassis member + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedDeviceWithConfigContextList' + description: '' + post: + operationId: dcim_devices_create + description: Post a list of device objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22028,11 +24924,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_front_ports_bulk_update - description: Put a list of front port objects. + operationId: dcim_devices_bulk_update + description: Put a list of device objects. tags: - dcim requestBody: @@ -22041,12 +24937,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22058,11 +24954,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_front_ports_bulk_partial_update - description: Patch a list of front port objects. + operationId: dcim_devices_bulk_partial_update + description: Patch a list of device objects. tags: - dcim requestBody: @@ -22071,12 +24967,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22088,11 +24984,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_front_ports_bulk_destroy - description: Delete a list of front port objects. + operationId: dcim_devices_bulk_destroy + description: Delete a list of device objects. tags: - dcim requestBody: @@ -22101,12 +24997,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FrontPortRequest' + $ref: '#/components/schemas/DeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22114,16 +25010,16 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/: + /api/dcim/devices/{id}/: get: - operationId: dcim_front_ports_retrieve - description: Get a front port object. + operationId: dcim_devices_retrieve + description: Get a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22135,17 +25031,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' put: - operationId: dcim_front_ports_update - description: Put a front port object. + operationId: dcim_devices_update + description: Put a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22153,10 +25049,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableFrontPortRequest' + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -22166,17 +25062,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' patch: - operationId: dcim_front_ports_partial_update - description: Patch a front port object. + operationId: dcim_devices_partial_update + description: Patch a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22184,10 +25080,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableFrontPortRequest' + $ref: '#/components/schemas/PatchedWritableDeviceWithConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -22196,17 +25092,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' delete: - operationId: dcim_front_ports_destroy - description: Delete a front port object. + operationId: dcim_devices_destroy + description: Delete a device object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim @@ -22216,19 +25112,35 @@ paths: responses: '204': description: No response body - /api/dcim/front-ports/{id}/paths/: - get: - operationId: dcim_front_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. + /api/dcim/devices/{id}/render-config/: + post: + operationId: dcim_devices_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt - in: path name: id schema: type: integer - description: A unique integer value identifying this front port. + description: A unique integer value identifying this device. required: true tags: - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableDeviceWithConfigContextRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -22237,27 +25149,98 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FrontPort' + $ref: '#/components/schemas/DeviceWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/DeviceWithConfigContext' description: '' - /api/dcim/interface-templates/: + /api/dcim/front-port-templates/: get: - operationId: dcim_interface_templates_list - description: Get a list of interface template objects. + operationId: dcim_front_port_templates_list + description: Get a list of front port template objects. parameters: - in: query - name: bridge_id + name: color schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: bridge_id__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: - type: integer + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -22432,30 +25415,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -22667,10 +25626,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mgmt_only - schema: - type: boolean - in: query name: modified_by_request schema: @@ -22696,26 +25651,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -22812,756 +25747,2085 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: poe_mode - schema: - type: array - items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd - explode: true - style: form - - in: query - name: poe_mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2f2fe6dcdc7772bd - explode: true - style: form - - in: query - name: poe_type - schema: - type: array - items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 - explode: true - style: form - - in: query - name: poe_type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 74bd3be4012f6da9 - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: rf_role - schema: - type: array - items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - explode: true - style: form - - in: query - name: rf_role__n + name: rear_port_id schema: type: array items: - type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role + type: integer explode: true style: form - in: query - name: type + name: rear_port_id__n schema: type: array items: - type: string - x-spec-enum-id: b9a351ea129ed754 + type: integer explode: true style: form - in: query - name: type__n + name: rear_port_position schema: type: array items: - type: string - x-spec-enum-id: b9a351ea129ed754 + type: integer + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInterfaceTemplateList' - description: '' - post: - operationId: dcim_interface_templates_create - description: Post a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - put: - operationId: dcim_interface_templates_bulk_update - description: Put a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - patch: - operationId: dcim_interface_templates_bulk_partial_update - description: Patch a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - delete: - operationId: dcim_interface_templates_bulk_destroy - description: Delete a list of interface template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/interface-templates/{id}/: - get: - operationId: dcim_interface_templates_retrieve - description: Get a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - put: - operationId: dcim_interface_templates_update - description: Put a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableInterfaceTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - patch: - operationId: dcim_interface_templates_partial_update - description: Patch a interface template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InterfaceTemplate' - description: '' - delete: - operationId: dcim_interface_templates_destroy - description: Delete a interface template object. - parameters: - - in: path - name: id + name: rear_port_position__empty schema: - type: integer - description: A unique integer value identifying this interface template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/interfaces/: - get: - operationId: dcim_interfaces_list - description: Get a list of interface objects. - parameters: + type: boolean - in: query - name: bridge_id + name: rear_port_position__gt schema: type: array items: type: integer - description: Bridged interface (ID) + format: int32 explode: true style: form - in: query - name: bridge_id__n + name: rear_port_position__gte schema: type: array items: type: integer - description: Bridged interface (ID) + format: int32 explode: true style: form - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: rear_port_position__lt schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cable_id__n + name: rear_port_position__lte schema: type: array items: type: integer - nullable: true - description: Cable (ID) + format: int32 explode: true style: form - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - - in: query - name: created + name: rear_port_position__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: type schema: type: array items: type: string - format: date-time + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: created__gt + name: type__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gte + name: type__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: created__lt + name: type__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: created__lte + name: type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: created__n + name: type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: type__nic schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: description__ie + name: type__nie schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: description__iew + name: type__niew schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: description__isw + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: description__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedFrontPortTemplateList' + description: '' + post: + operationId: dcim_front_port_templates_create + description: Post a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + put: + operationId: dcim_front_port_templates_bulk_update + description: Put a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + patch: + operationId: dcim_front_port_templates_bulk_partial_update + description: Patch a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + delete: + operationId: dcim_front_port_templates_bulk_destroy + description: Delete a list of front port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/FrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/front-port-templates/{id}/: + get: + operationId: dcim_front_port_templates_retrieve + description: Get a front port template object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + put: + operationId: dcim_front_port_templates_update + description: Put a front port template object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableFrontPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + patch: + operationId: dcim_front_port_templates_partial_update + description: Patch a front port template object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableFrontPortTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/FrontPortTemplate' + description: '' + delete: + operationId: dcim_front_port_templates_destroy + description: Delete a front port template object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form + type: integer + description: A unique integer value identifying this front port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/front-ports/: + get: + operationId: dcim_front_ports_list + description: Get a list of front port objects. + parameters: - in: query - name: device + name: cable_end schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: device__n + name: cable_id schema: type: array items: - type: string + type: integer nullable: true - description: Device (name) + description: Cable (ID) explode: true style: form - in: query - name: device_id + name: cable_id__n schema: type: array items: type: integer - description: Device (ID) + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: device_id__n + name: cabled schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form + type: boolean - in: query - name: device_type + name: color schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type_id + name: color__ie schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: device_type_id__n + name: color__iew schema: type: array items: - type: integer - description: Device type (ID) + type: string explode: true style: form - in: query - name: duplex + name: color__isw schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true explode: true style: form - in: query - name: duplex__n + name: color__n schema: type: array items: type: string - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true explode: true style: form - in: query - name: enabled - schema: - type: boolean - - in: query - name: id + name: color__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: color__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: color__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: color__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: kind - schema: - type: string - description: Kind of interface - - in: query - name: l2vpn + name: created__gt schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + format: date-time explode: true style: form - in: query - name: l2vpn__n + name: created__gte schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + format: date-time explode: true style: form - in: query - name: l2vpn_id + name: created__lt schema: type: array items: - type: integer - description: L2VPN (ID) + type: string + format: date-time explode: true style: form - in: query - name: l2vpn_id__n + name: created__lte schema: type: array items: - type: integer - description: L2VPN (ID) + type: string + format: date-time explode: true style: form - in: query - name: label + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty + name: created_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: label__ic + name: description schema: type: array items: @@ -23569,15 +27833,11 @@ paths: explode: true style: form - in: query - name: label__ie + name: description__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: label__iew + name: description__ic schema: type: array items: @@ -23585,7 +27845,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: description__ie schema: type: array items: @@ -23593,7 +27853,7 @@ paths: explode: true style: form - in: query - name: label__n + name: description__iew schema: type: array items: @@ -23601,7 +27861,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: description__isw schema: type: array items: @@ -23609,7 +27869,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: description__n schema: type: array items: @@ -23617,7 +27877,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: description__nic schema: type: array items: @@ -23625,7 +27885,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: description__nie schema: type: array items: @@ -23633,277 +27893,416 @@ paths: explode: true style: form - in: query - name: lag_id + name: description__niew schema: type: array items: - type: integer - description: LAG interface (ID) + type: string explode: true style: form - in: query - name: lag_id__n + name: description__nisw schema: type: array items: - type: integer - description: LAG interface (ID) + type: string explode: true style: form - in: query - name: last_updated + name: device schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: last_updated__empty + name: device__n schema: type: array items: type: string - format: date-time + nullable: true + description: Device (name) explode: true style: form - in: query - name: last_updated__gt + name: device_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - in: query - name: last_updated__gte + name: device_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device (ID) explode: true style: form - in: query - name: last_updated__lt + name: device_role schema: type: array items: type: string - format: date-time + description: Device role (slug) explode: true style: form - in: query - name: last_updated__lte + name: device_role__n schema: type: array items: type: string - format: date-time + description: Device role (slug) explode: true style: form - in: query - name: last_updated__n + name: device_role_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device role (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: device_role_id__n schema: type: array items: - type: string - description: Location (slug) + type: integer + description: Device role (ID) explode: true style: form - in: query - name: location__n + name: device_status schema: type: array items: type: string - description: Location (slug) + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: location_id + name: device_status__empty schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form + type: boolean - in: query - name: location_id__n + name: device_status__ic schema: type: array items: - type: integer - description: Location (ID) + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__ic + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__ie + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__iew + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__isw + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__n + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__nic + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__nie + name: device_status__nisw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: mac_address__niew + name: device_type schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: mac_address__nisw + name: device_type__n schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: mgmt_only - schema: - type: boolean - - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_id + name: device_type_id schema: type: array items: type: integer - nullable: true - description: Module (ID) + description: Device type (ID) explode: true style: form - in: query - name: module_id__n + name: device_type_id__n schema: type: array items: type: integer - nullable: true - description: Module (ID) + description: Device type (ID) explode: true style: form - in: query - name: mtu + name: id schema: type: array items: @@ -23912,11 +28311,11 @@ paths: explode: true style: form - in: query - name: mtu__empty + name: id__empty schema: type: boolean - in: query - name: mtu__gt + name: id__gt schema: type: array items: @@ -23925,7 +28324,7 @@ paths: explode: true style: form - in: query - name: mtu__gte + name: id__gte schema: type: array items: @@ -23934,7 +28333,7 @@ paths: explode: true style: form - in: query - name: mtu__lt + name: id__lt schema: type: array items: @@ -23943,7 +28342,7 @@ paths: explode: true style: form - in: query - name: mtu__lte + name: id__lte schema: type: array items: @@ -23952,7 +28351,7 @@ paths: explode: true style: form - in: query - name: mtu__n + name: id__n schema: type: array items: @@ -23961,7 +28360,7 @@ paths: explode: true style: form - in: query - name: name + name: label schema: type: array items: @@ -23969,11 +28368,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -23981,7 +28380,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -23989,7 +28388,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -23997,7 +28396,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -24005,7 +28404,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -24013,7 +28412,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -24021,7 +28420,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -24029,7 +28428,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -24037,7 +28436,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: @@ -24045,497 +28444,298 @@ paths: explode: true style: form - in: query - name: occupied - schema: - type: boolean - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent_id - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: poe_mode + name: last_updated schema: type: array items: type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + format: date-time explode: true style: form - in: query - name: poe_mode__n + name: last_updated__empty schema: type: array items: type: string - x-spec-enum-id: 2f2fe6dcdc7772bd + format: date-time explode: true style: form - in: query - name: poe_type + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: 74bd3be4012f6da9 + format: date-time explode: true style: form - in: query - name: poe_type__n + name: last_updated__gte schema: type: array items: type: string - x-spec-enum-id: 74bd3be4012f6da9 + format: date-time explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: last_updated__lt schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack__n + name: last_updated__lte schema: type: array items: type: string - description: Rack (name) + format: date-time explode: true style: form - in: query - name: rack_id + name: last_updated__n schema: type: array items: - type: integer - description: Rack (ID) + type: string + format: date-time explode: true style: form - - in: query - name: rack_id__n + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form + type: integer - in: query - name: region + name: location schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Location (slug) explode: true style: form - in: query - name: region__n + name: location__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: Location (slug) explode: true style: form - in: query - name: region_id + name: location_id schema: type: array items: type: integer - description: Region (ID) + description: Location (ID) explode: true style: form - in: query - name: region_id__n + name: location_id__n schema: type: array items: type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: rf_channel - schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel__n - schema: - type: array - items: - type: string - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - explode: true - style: form - - in: query - name: rf_channel_frequency - schema: - type: array - items: - type: number - format: double + description: Location (ID) explode: true style: form - in: query - name: rf_channel_frequency__empty + name: mark_connected schema: type: boolean - in: query - name: rf_channel_frequency__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_frequency__lt + name: modified_by_request schema: - type: array - items: - type: number - format: double - explode: true - style: form + type: string + format: uuid - in: query - name: rf_channel_frequency__lte + name: module_id schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: rf_channel_frequency__n + name: module_id__n schema: type: array items: - type: number - format: double + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: rf_channel_width + name: name schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: rf_channel_width__empty + name: name__empty schema: type: boolean - in: query - name: rf_channel_width__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_channel_width__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: rf_role + name: name__ic schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: rf_role__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role explode: true style: form - in: query - name: role + name: name__iew schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: name__isw schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: site + name: name__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: name__nic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: name__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: name__niew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: name__nisw schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: occupied schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: string - in: query - name: speed + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: speed__empty + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: speed__gt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: speed__gte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: speed__lt + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: speed__lte + name: rear_port_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: speed__n + name: rear_port_id__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string explode: true style: form - in: query - name: tx_power + name: rear_port_position schema: type: array items: @@ -24544,11 +28744,11 @@ paths: explode: true style: form - in: query - name: tx_power__empty + name: rear_port_position__empty schema: type: boolean - in: query - name: tx_power__gt + name: rear_port_position__gt schema: type: array items: @@ -24557,7 +28757,7 @@ paths: explode: true style: form - in: query - name: tx_power__gte + name: rear_port_position__gte schema: type: array items: @@ -24566,7 +28766,7 @@ paths: explode: true style: form - in: query - name: tx_power__lt + name: rear_port_position__lt schema: type: array items: @@ -24575,7 +28775,7 @@ paths: explode: true style: form - in: query - name: tx_power__lte + name: rear_port_position__lte schema: type: array items: @@ -24584,7 +28784,7 @@ paths: explode: true style: form - in: query - name: tx_power__n + name: rear_port_position__n schema: type: array items: @@ -24593,126 +28793,107 @@ paths: explode: true style: form - in: query - name: type + name: region schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 explode: true style: form - in: query - name: type__n + name: region__n schema: type: array items: type: string - x-spec-enum-id: b9a351ea129ed754 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vdc + name: region_id schema: type: array items: type: string - description: Virtual Device Context explode: true style: form - in: query - name: vdc__n + name: region_id__n schema: type: array items: type: string - description: Virtual Device Context explode: true style: form - in: query - name: vdc_id + name: site schema: type: array items: - type: integer - description: Virtual Device Context + type: string + description: Site name (slug) explode: true style: form - in: query - name: vdc_id__n + name: site__n schema: type: array items: - type: integer - description: Virtual Device Context + type: string + description: Site name (slug) explode: true style: form - in: query - name: vdc_identifier + name: site_group schema: type: array items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) + type: string explode: true style: form - in: query - name: vdc_identifier__n + name: site_group__n schema: type: array items: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Virtual Device Context (Identifier) + type: string explode: true style: form - in: query - name: virtual_chassis + name: site_group_id schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis__n + name: site_group_id__n schema: type: array items: type: string - description: Virtual Chassis explode: true style: form - in: query - name: virtual_chassis_id + name: site_id schema: type: array items: type: integer - description: Virtual Chassis (ID) + description: Site (ID) explode: true style: form - in: query - name: virtual_chassis_id__n + name: site_id__n schema: type: array items: type: integer - description: Virtual Chassis (ID) + description: Site (ID) explode: true style: form - in: query - name: virtual_chassis_member + name: tag schema: type: array items: @@ -24720,180 +28901,1631 @@ paths: explode: true style: form - in: query - name: virtual_chassis_member_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf + name: tag__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: type schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - description: VRF + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: vrf_id__n + name: type__empty schema: - type: array - items: - type: integer - description: VRF - explode: true - style: form + type: boolean - in: query - name: wireless_lan_id + name: type__ic schema: type: array items: - type: integer - description: Wireless LAN + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wireless_lan_id__n + name: type__ie schema: type: array items: - type: integer - description: Wireless LAN + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wireless_link_id + name: type__iew schema: type: array items: - type: integer - nullable: true - description: Wireless link + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wireless_link_id__n + name: type__isw schema: type: array items: - type: integer - nullable: true - description: Wireless link + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wwn + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wwn__ic + name: type__nic schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wwn__ie + name: type__nie schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wwn__iew + name: type__niew schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wwn__isw + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: wwn__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: wwn__nic + name: virtual_chassis schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: wwn__nie + name: virtual_chassis__n schema: type: array items: type: string + description: Virtual Chassis explode: true style: form - in: query - name: wwn__niew + name: virtual_chassis_id schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: wwn__nisw + name: virtual_chassis_id__n schema: type: array items: - type: string + type: integer + description: Virtual Chassis (ID) explode: true style: form tags: @@ -24906,21 +30538,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedInterfaceList' + $ref: '#/components/schemas/PaginatedFrontPortList' description: '' post: - operationId: dcim_interfaces_create - description: Post a list of interface objects. + operationId: dcim_front_ports_create + description: Post a list of front port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -24930,12 +30562,12 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_interfaces_bulk_update - description: Put a list of interface objects. - tags: + operationId: dcim_front_ports_bulk_update + description: Put a list of front port objects. + tags: - dcim requestBody: content: @@ -24943,12 +30575,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -24960,11 +30592,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: dcim_front_ports_bulk_partial_update + description: Patch a list of front port objects. tags: - dcim requestBody: @@ -24973,12 +30605,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -24990,11 +30622,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: dcim_front_ports_bulk_destroy + description: Delete a list of front port objects. tags: - dcim requestBody: @@ -25003,12 +30635,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/FrontPortRequest' required: true security: - cookieAuth: [] @@ -25016,16 +30648,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/: + /api/dcim/front-ports/{id}/: get: - operationId: dcim_interfaces_retrieve - description: Get a interface object. + operationId: dcim_front_ports_retrieve + description: Get a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25037,17 +30669,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' put: - operationId: dcim_interfaces_update - description: Put a interface object. + operationId: dcim_front_ports_update + description: Put a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25055,10 +30687,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableInterfaceRequest' + $ref: '#/components/schemas/WritableFrontPortRequest' required: true security: - cookieAuth: [] @@ -25068,17 +30700,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' patch: - operationId: dcim_interfaces_partial_update - description: Patch a interface object. + operationId: dcim_front_ports_partial_update + description: Patch a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25086,10 +30718,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableInterfaceRequest' + $ref: '#/components/schemas/PatchedWritableFrontPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -25098,17 +30730,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' delete: - operationId: dcim_interfaces_destroy - description: Delete a interface object. + operationId: dcim_front_ports_destroy + description: Delete a front port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25118,17 +30750,16 @@ paths: responses: '204': description: No response body - /api/dcim/interfaces/{id}/trace/: + /api/dcim/front-ports/{id}/paths/: get: - operationId: dcim_interfaces_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_front_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this front port. required: true tags: - dcim @@ -25140,83 +30771,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Interface' + $ref: '#/components/schemas/FrontPort' description: '' - /api/dcim/inventory-item-roles/: + /api/dcim/interface-templates/: get: - operationId: dcim_inventory_item_roles_list - description: Get a list of inventory item role objects. + operationId: dcim_interface_templates_list + description: Get a list of interface template objects. parameters: - in: query - name: color + name: bridge_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: color__empty + name: bridge_id__n schema: - type: boolean + type: array + items: + type: integer + explode: true + style: form - in: query - name: color__ic + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nie + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__niew + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -25224,7 +30871,11 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -25232,135 +30883,153 @@ paths: explode: true style: form - in: query - name: created + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: description__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: description + name: device_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: description__empty + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: enabled schema: type: boolean - in: query - name: description__ic + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: label schema: type: array items: @@ -25368,7 +31037,11 @@ paths: explode: true style: form - in: query - name: description__niew + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: @@ -25376,7 +31049,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: label__ie schema: type: array items: @@ -25384,61 +31057,59 @@ paths: explode: true style: form - in: query - name: id + name: label__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: label__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: id__gt + name: label__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: label__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: label__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: label__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: label__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -25510,11 +31181,35 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mgmt_only + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - in: query + name: module_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form + - in: query + name: module_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query name: name schema: @@ -25612,973 +31307,4589 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: poe_mode schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: slug__empty + name: poe_mode__empty schema: type: boolean - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie + name: poe_mode__ic schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__iew + name: poe_mode__ie schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__isw + name: poe_mode__iew schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__n + name: poe_mode__isw schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__nic + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__nie + name: poe_mode__nic schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__niew + name: poe_mode__nie schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: slug__nisw + name: poe_mode__niew schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: tag + name: poe_mode__nisw schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: tag__n + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInventoryItemRoleList' - description: '' - post: - operationId: dcim_inventory_item_roles_create - description: Post a list of inventory item role objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRole' - description: '' - put: - operationId: dcim_inventory_item_roles_bulk_update - description: Put a list of inventory item role objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRoleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRole' - description: '' - patch: - operationId: dcim_inventory_item_roles_bulk_partial_update - description: Patch a list of inventory item role objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRoleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRole' - description: '' - delete: - operationId: dcim_inventory_item_roles_bulk_destroy - description: Delete a list of inventory item role objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRoleRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-item-roles/{id}/: - get: - operationId: dcim_inventory_item_roles_retrieve - description: Get a inventory item role object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item role. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRole' - description: '' - put: - operationId: dcim_inventory_item_roles_update - description: Put a inventory item role object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemRoleRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRole' - description: '' - patch: - operationId: dcim_inventory_item_roles_partial_update - description: Patch a inventory item role object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item role. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRole' - description: '' - delete: - operationId: dcim_inventory_item_roles_destroy - description: Delete a inventory item role object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item role. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-item-templates/: - get: - operationId: dcim_inventory_item_templates_list - description: Get a list of inventory item template objects. - parameters: - - in: query - name: component_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_type - schema: - type: string - - in: query - name: component_type__n - schema: - type: string - - in: query - name: created + name: poe_type__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__empty + name: poe_type__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__gt + name: poe_type__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__gte + name: poe_type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__lt + name: poe_type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__lte + name: poe_type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__n + name: poe_type__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: poe_type__nie schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: poe_type__niew schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: description__ie + name: poe_type__nisw schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: description__iew + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: description__isw + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: description__n + name: rf_role__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nic + name: rf_role__ic schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: description__nie + name: rf_role__ie schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: description__niew + name: rf_role__iew schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: description__nisw + name: rf_role__isw schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: label + name: rf_role__n schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: rf_role__nic schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: label__ie + name: rf_role__nie schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: label__iew + name: rf_role__niew schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: label__isw + name: rf_role__nisw schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: label__n + name: type schema: type: array items: type: string + x-spec-enum-id: 56365107f9c2326f + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: label__nic + name: type__ie schema: type: array items: type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: label__nie + name: type__iew schema: type: array items: type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: label__niew + name: type__isw schema: type: array items: type: string - explode: true - style: form + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' + explode: true + style: form - in: query - name: label__nisw + name: type__n schema: type: array items: type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: last_updated + name: type__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: last_updated__empty + name: type__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: last_updated__gt + name: type__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: last_updated__gte + name: type__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: last_updated__lt + name: updated_by_request + schema: + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedInterfaceTemplateList' + description: '' + post: + operationId: dcim_interface_templates_create + description: Post a list of interface template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/InterfaceTemplate' + description: '' + put: + operationId: dcim_interface_templates_bulk_update + description: Put a list of interface template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplate' + description: '' + patch: + operationId: dcim_interface_templates_bulk_partial_update + description: Patch a list of interface template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplate' + description: '' + delete: + operationId: dcim_interface_templates_bulk_destroy + description: Delete a list of interface template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/InterfaceTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/interface-templates/{id}/: + get: + operationId: dcim_interface_templates_retrieve + description: Get a interface template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InterfaceTemplate' + description: '' + put: + operationId: dcim_interface_templates_update + description: Put a interface template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableInterfaceTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InterfaceTemplate' + description: '' + patch: + operationId: dcim_interface_templates_partial_update + description: Patch a interface template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableInterfaceTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/InterfaceTemplate' + description: '' + delete: + operationId: dcim_interface_templates_destroy + description: Delete a interface template object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this interface template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/interfaces/: + get: + operationId: dcim_interfaces_list + description: Get a list of interface objects. + parameters: + - in: query + name: bridge_id schema: type: array items: - type: string - format: date-time + type: integer + description: Bridged interface (ID) explode: true style: form - in: query - name: last_updated__lte + name: bridge_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Bridged interface (ID) explode: true style: form - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer__n + name: cable_end schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: manufacturer_id + name: cable_id schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) + description: Cable (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: cable_id__n schema: type: array items: type: integer nullable: true - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string + description: Cable (ID) explode: true style: form - in: query - name: name__empty + name: cabled schema: type: boolean - in: query - name: name__ic + name: connected schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__ie + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__iew + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + name: created_by_request schema: type: string + format: uuid - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent inventory item (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Parent inventory item (ID) - explode: true - style: form - - in: query - name: part_id + name: description schema: type: array items: @@ -26586,11 +35897,11 @@ paths: explode: true style: form - in: query - name: part_id__empty + name: description__empty schema: type: boolean - in: query - name: part_id__ic + name: description__ic schema: type: array items: @@ -26598,7 +35909,7 @@ paths: explode: true style: form - in: query - name: part_id__ie + name: description__ie schema: type: array items: @@ -26606,7 +35917,7 @@ paths: explode: true style: form - in: query - name: part_id__iew + name: description__iew schema: type: array items: @@ -26614,7 +35925,7 @@ paths: explode: true style: form - in: query - name: part_id__isw + name: description__isw schema: type: array items: @@ -26622,7 +35933,7 @@ paths: explode: true style: form - in: query - name: part_id__n + name: description__n schema: type: array items: @@ -26630,7 +35941,7 @@ paths: explode: true style: form - in: query - name: part_id__nic + name: description__nic schema: type: array items: @@ -26638,7 +35949,7 @@ paths: explode: true style: form - in: query - name: part_id__nie + name: description__nie schema: type: array items: @@ -26646,7 +35957,7 @@ paths: explode: true style: form - in: query - name: part_id__niew + name: description__niew schema: type: array items: @@ -26654,7 +35965,7 @@ paths: explode: true style: form - in: query - name: part_id__nisw + name: description__nisw schema: type: array items: @@ -26662,667 +35973,647 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: device schema: type: array items: type: string - description: Role (slug) + nullable: true + description: Device (name) explode: true style: form - in: query - name: role__n + name: device__n schema: type: array items: type: string - description: Role (slug) + nullable: true + description: Device (name) explode: true style: form - in: query - name: role_id + name: device_id schema: type: array items: type: integer - nullable: true - description: Role (ID) + description: Device (ID) explode: true style: form - in: query - name: role_id__n + name: device_id__n schema: type: array items: type: integer - nullable: true - description: Role (ID) + description: Device (ID) explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' - description: '' - post: - operationId: dcim_inventory_item_templates_create - description: Post a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - put: - operationId: dcim_inventory_item_templates_bulk_update - description: Put a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - patch: - operationId: dcim_inventory_item_templates_bulk_partial_update - description: Patch a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - delete: - operationId: dcim_inventory_item_templates_bulk_destroy - description: Delete a list of inventory item template objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-item-templates/{id}/: - get: - operationId: dcim_inventory_item_templates_retrieve - description: Get a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - put: - operationId: dcim_inventory_item_templates_update - description: Put a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - patch: - operationId: dcim_inventory_item_templates_partial_update - description: Patch a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemTemplate' - description: '' - delete: - operationId: dcim_inventory_item_templates_destroy - description: Delete a inventory item template object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item template. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-items/: - get: - operationId: dcim_inventory_items_list - description: Get a list of inventory item objects. - parameters: - - in: query - name: asset_tag + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic + name: device_role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: asset_tag__ie + name: device_role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: asset_tag__iew + name: device_role_id__n schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: asset_tag__isw + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: asset_tag__n + name: device_status__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: asset_tag__nic + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: asset_tag__nie + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: asset_tag__niew + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: asset_tag__nisw + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: component_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: component_id__n + name: device_status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: component_type - schema: - type: string - - in: query - name: component_type__n - schema: - type: string - - in: query - name: created + name: device_status__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: created__empty + name: device_status__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: created__gt + name: device_status__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: created__gte + name: device_status__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: created__lt + name: device_type schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: created__lte + name: device_type__n schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: created__n + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: device_type_id__n schema: type: array items: - type: string + type: integer + description: Device type (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: duplex schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true explode: true style: form - in: query - name: description__ie + name: duplex__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__iew + name: duplex__ic schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: description__isw + name: duplex__ie schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: description__n + name: duplex__iew schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: description__nic + name: duplex__isw schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: description__nie + name: duplex__n schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: description__niew + name: duplex__nic schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: description__nisw + name: duplex__nie schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 + nullable: true + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: device + name: duplex__niew schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 nullable: true - description: Device (name) + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: device__n + name: duplex__nisw schema: type: array items: type: string + x-spec-enum-id: 47eab9b1a65a1e21 nullable: true - description: Device (name) + enum: + - '' + - null + - auto + - full + - half + description: '* `half` - Half + + * `full` - Full + + * `auto` - Auto' explode: true style: form - in: query - name: device_id + name: enabled schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form + type: boolean - in: query - name: device_id__n + name: id schema: type: array items: type: integer - description: Device (ID) + format: int32 explode: true style: form - in: query - name: device_type + name: id__empty schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form + type: boolean - in: query - name: device_type__n + name: id__gt schema: type: array items: - type: string - description: Device type (model) + type: integer + format: int32 explode: true style: form - in: query - name: device_type_id + name: id__gte schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: device_type_id__n + name: id__lt schema: type: array items: type: integer - description: Device type (ID) + format: int32 explode: true style: form - in: query - name: discovered - schema: - type: boolean - - in: query - name: id + name: id__lte schema: type: array items: @@ -27331,11 +36622,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__n schema: type: array items: @@ -27344,39 +36631,52 @@ paths: explode: true style: form - in: query - name: id__gte + name: kind + schema: + type: string + description: Kind of interface + - in: query + name: l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: id__lt + name: l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: id__lte + name: l2vpn_id schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query - name: id__n + name: l2vpn_id__n schema: type: array items: type: integer - format: int32 + description: L2VPN (ID) explode: true style: form - in: query @@ -27463,6 +36763,24 @@ paths: type: string explode: true style: form + - in: query + name: lag_id + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form + - in: query + name: lag_id__n + schema: + type: array + items: + type: integer + description: LAG interface (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -27569,50 +36887,23 @@ paths: explode: true style: form - in: query - name: manufacturer + name: mac_address schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer__n + name: mac_address__ic schema: type: array items: type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: integer - nullable: true - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: manufacturer_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Manufacturer (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: mac_address__ie schema: type: array items: @@ -27620,11 +36911,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: mac_address__iew schema: type: array items: @@ -27632,7 +36919,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: mac_address__isw schema: type: array items: @@ -27640,7 +36927,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: mac_address__n schema: type: array items: @@ -27648,7 +36935,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: mac_address__nic schema: type: array items: @@ -27656,7 +36943,7 @@ paths: explode: true style: form - in: query - name: name__n + name: mac_address__nie schema: type: array items: @@ -27664,7 +36951,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: mac_address__niew schema: type: array items: @@ -27672,7 +36959,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: mac_address__nisw schema: type: array items: @@ -27680,107 +36967,115 @@ paths: explode: true style: form - in: query - name: name__niew + name: mark_connected schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__nisw + name: mgmt_only schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + type: boolean + - in: query + name: mode schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: modified_by_request schema: type: string + format: uuid - in: query - name: parent_id + name: module_id schema: type: array items: type: integer nullable: true - description: Parent inventory item (ID) + description: Module (ID) explode: true style: form - in: query - name: parent_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Parent inventory item (ID) + description: Module (ID) explode: true style: form - in: query - name: part_id + name: mtu schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__empty + name: mtu__empty schema: type: boolean - in: query - name: part_id__ic + name: mtu__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__ie + name: mtu__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__iew + name: mtu__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__isw + name: mtu__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__n + name: mtu__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: part_id__nic + name: name schema: type: array items: @@ -27788,7 +37083,11 @@ paths: explode: true style: form - in: query - name: part_id__nie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -27796,7 +37095,7 @@ paths: explode: true style: form - in: query - name: part_id__niew + name: name__ie schema: type: array items: @@ -27804,7 +37103,7 @@ paths: explode: true style: form - in: query - name: part_id__nisw + name: name__iew schema: type: array items: @@ -27812,772 +37111,606 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: name__isw schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: name__n schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack_id + name: name__nic schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: rack_id__n + name: name__nie schema: type: array items: - type: integer - description: Rack (ID) + type: string explode: true style: form - in: query - name: region + name: name__niew schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: name__nisw schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent_id schema: type: array items: type: integer - description: Region (ID) + description: Parent interface (ID) explode: true style: form - in: query - name: region_id__n + name: parent_id__n schema: type: array items: type: integer - description: Region (ID) + description: Parent interface (ID) explode: true style: form - in: query - name: role + name: poe_mode schema: type: array items: type: string - description: Role (slug) + x-spec-enum-id: 2f2fe6dcdc7772bd explode: true style: form - in: query - name: role__n + name: poe_mode__empty + schema: + type: boolean + - in: query + name: poe_mode__ic schema: type: array items: type: string - description: Role (slug) + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: role_id + name: poe_mode__ie schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: role_id__n + name: poe_mode__iew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial + name: poe_mode__isw schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial__empty - schema: - type: boolean - - in: query - name: serial__ic + name: poe_mode__n schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial__ie + name: poe_mode__nic schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial__iew + name: poe_mode__nie schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial__isw + name: poe_mode__niew schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial__n + name: poe_mode__nisw schema: type: array items: type: string + x-spec-enum-id: 2f2fe6dcdc7772bd + enum: + - '' + - pd + - pse + description: '* `pd` - PD + + * `pse` - PSE' explode: true style: form - in: query - name: serial__nic + name: poe_type schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 explode: true style: form - in: query - name: serial__nie + name: poe_type__empty + schema: + type: boolean + - in: query + name: poe_type__ic schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: serial__niew + name: poe_type__ie schema: type: array items: type: string + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: serial__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedInventoryItemList' - description: '' - post: - operationId: dcim_inventory_items_create - description: Post a list of inventory item objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - put: - operationId: dcim_inventory_items_bulk_update - description: Put a list of inventory item objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItem' - description: '' - patch: - operationId: dcim_inventory_items_bulk_partial_update - description: Patch a list of inventory item objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItem' - description: '' - delete: - operationId: dcim_inventory_items_bulk_destroy - description: Delete a list of inventory item objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/InventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/inventory-items/{id}/: - get: - operationId: dcim_inventory_items_retrieve - description: Get a inventory item object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - put: - operationId: dcim_inventory_items_update - description: Put a inventory item object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItemRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/InventoryItemRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - patch: - operationId: dcim_inventory_items_partial_update - description: Patch a inventory item object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedInventoryItemRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/InventoryItem' - description: '' - delete: - operationId: dcim_inventory_items_destroy - description: Delete a inventory item object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this inventory item. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/locations/: - get: - operationId: dcim_locations_list - description: Get a list of location objects. - parameters: - - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: ancestor_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: created + name: poe_type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__empty + name: poe_type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__gt + name: poe_type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__gte + name: poe_type__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__lt + name: poe_type__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__lte + name: poe_type__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created__n + name: poe_type__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 74bd3be4012f6da9 + enum: + - '' + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + description: '* `type1-ieee802.3af` - 802.3af (Type 1) + + * `type2-ieee802.3at` - 802.3at (Type 2) + + * `type3-ieee802.3bt` - 802.3bt (Type 3) + + * `type4-ieee802.3bt` - 802.3bt (Type 4) + + * `passive-24v-2pair` - Passive 24V (2-pair) + + * `passive-24v-4pair` - Passive 24V (4-pair) + + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' explode: true style: form - in: query - name: created_by_request + name: q schema: type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form + description: Search - in: query - name: description__ie + name: rack schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: description__iew + name: rack__n schema: type: array items: type: string + description: Rack (name) explode: true style: form - in: query - name: description__isw + name: rack_id schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: description__n + name: rack_id__n schema: type: array items: - type: string + type: integer + description: Rack (ID) explode: true style: form - in: query - name: description__nic + name: region schema: type: array items: @@ -28585,7 +37718,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: region__n schema: type: array items: @@ -28593,7 +37726,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: region_id schema: type: array items: @@ -28601,7 +37734,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: region_id__n schema: type: array items: @@ -28609,394 +37742,5718 @@ paths: explode: true style: form - in: query - name: facility + name: rf_channel schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel explode: true style: form - in: query - name: facility__empty + name: rf_channel__empty schema: type: boolean - in: query - name: facility__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nic + name: rf_channel__ic schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: facility__nie + name: rf_channel__ie schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: facility__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: facility__nisw + name: rf_channel__iew schema: type: array items: type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: id + name: rf_channel__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: rf_channel__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: id__gte + name: rf_channel__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: id__lt + name: rf_channel__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: id__lte + name: rf_channel__niew schema: type: array items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 + type: string + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: last_updated + name: rf_channel__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + enum: + - '' + - 2.4g-1-2412-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 60g-1-58320-2160 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-2-60480-2160 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 6g-1-5955-20 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-11-6005-40 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-13-6015-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-15-6025-160 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-17-6035-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-19-6045-40 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-21-6055-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-23-6065-80 + - 6g-233-7115-20 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-3-5965-40 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-5-5975-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-7-5985-80 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-9-5995-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + + * `2.4g-2-2417-22` - 2 (2417 MHz) + + * `2.4g-3-2422-22` - 3 (2422 MHz) + + * `2.4g-4-2427-22` - 4 (2427 MHz) + + * `2.4g-5-2432-22` - 5 (2432 MHz) + + * `2.4g-6-2437-22` - 6 (2437 MHz) + + * `2.4g-7-2442-22` - 7 (2442 MHz) + + * `2.4g-8-2447-22` - 8 (2447 MHz) + + * `2.4g-9-2452-22` - 9 (2452 MHz) + + * `2.4g-10-2457-22` - 10 (2457 MHz) + + * `2.4g-11-2462-22` - 11 (2462 MHz) + + * `2.4g-12-2467-22` - 12 (2467 MHz) + + * `2.4g-13-2472-22` - 13 (2472 MHz) + + * `5g-32-5160-20` - 32 (5160/20 MHz) + + * `5g-34-5170-40` - 34 (5170/40 MHz) + + * `5g-36-5180-20` - 36 (5180/20 MHz) + + * `5g-38-5190-40` - 38 (5190/40 MHz) + + * `5g-40-5200-20` - 40 (5200/20 MHz) + + * `5g-42-5210-80` - 42 (5210/80 MHz) + + * `5g-44-5220-20` - 44 (5220/20 MHz) + + * `5g-46-5230-40` - 46 (5230/40 MHz) + + * `5g-48-5240-20` - 48 (5240/20 MHz) + + * `5g-50-5250-160` - 50 (5250/160 MHz) + + * `5g-52-5260-20` - 52 (5260/20 MHz) + + * `5g-54-5270-40` - 54 (5270/40 MHz) + + * `5g-56-5280-20` - 56 (5280/20 MHz) + + * `5g-58-5290-80` - 58 (5290/80 MHz) + + * `5g-60-5300-20` - 60 (5300/20 MHz) + + * `5g-62-5310-40` - 62 (5310/40 MHz) + + * `5g-64-5320-20` - 64 (5320/20 MHz) + + * `5g-100-5500-20` - 100 (5500/20 MHz) + + * `5g-102-5510-40` - 102 (5510/40 MHz) + + * `5g-104-5520-20` - 104 (5520/20 MHz) + + * `5g-106-5530-80` - 106 (5530/80 MHz) + + * `5g-108-5540-20` - 108 (5540/20 MHz) + + * `5g-110-5550-40` - 110 (5550/40 MHz) + + * `5g-112-5560-20` - 112 (5560/20 MHz) + + * `5g-114-5570-160` - 114 (5570/160 MHz) + + * `5g-116-5580-20` - 116 (5580/20 MHz) + + * `5g-118-5590-40` - 118 (5590/40 MHz) + + * `5g-120-5600-20` - 120 (5600/20 MHz) + + * `5g-122-5610-80` - 122 (5610/80 MHz) + + * `5g-124-5620-20` - 124 (5620/20 MHz) + + * `5g-126-5630-40` - 126 (5630/40 MHz) + + * `5g-128-5640-20` - 128 (5640/20 MHz) + + * `5g-132-5660-20` - 132 (5660/20 MHz) + + * `5g-134-5670-40` - 134 (5670/40 MHz) + + * `5g-136-5680-20` - 136 (5680/20 MHz) + + * `5g-138-5690-80` - 138 (5690/80 MHz) + + * `5g-140-5700-20` - 140 (5700/20 MHz) + + * `5g-142-5710-40` - 142 (5710/40 MHz) + + * `5g-144-5720-20` - 144 (5720/20 MHz) + + * `5g-149-5745-20` - 149 (5745/20 MHz) + + * `5g-151-5755-40` - 151 (5755/40 MHz) + + * `5g-153-5765-20` - 153 (5765/20 MHz) + + * `5g-155-5775-80` - 155 (5775/80 MHz) + + * `5g-157-5785-20` - 157 (5785/20 MHz) + + * `5g-159-5795-40` - 159 (5795/40 MHz) + + * `5g-161-5805-20` - 161 (5805/20 MHz) + + * `5g-163-5815-160` - 163 (5815/160 MHz) + + * `5g-165-5825-20` - 165 (5825/20 MHz) + + * `5g-167-5835-40` - 167 (5835/40 MHz) + + * `5g-169-5845-20` - 169 (5845/20 MHz) + + * `5g-171-5855-80` - 171 (5855/80 MHz) + + * `5g-173-5865-20` - 173 (5865/20 MHz) + + * `5g-175-5875-40` - 175 (5875/40 MHz) + + * `5g-177-5885-20` - 177 (5885/20 MHz) + + * `6g-1-5955-20` - 1 (5955/20 MHz) + + * `6g-3-5965-40` - 3 (5965/40 MHz) + + * `6g-5-5975-20` - 5 (5975/20 MHz) + + * `6g-7-5985-80` - 7 (5985/80 MHz) + + * `6g-9-5995-20` - 9 (5995/20 MHz) + + * `6g-11-6005-40` - 11 (6005/40 MHz) + + * `6g-13-6015-20` - 13 (6015/20 MHz) + + * `6g-15-6025-160` - 15 (6025/160 MHz) + + * `6g-17-6035-20` - 17 (6035/20 MHz) + + * `6g-19-6045-40` - 19 (6045/40 MHz) + + * `6g-21-6055-20` - 21 (6055/20 MHz) + + * `6g-23-6065-80` - 23 (6065/80 MHz) + + * `6g-25-6075-20` - 25 (6075/20 MHz) + + * `6g-27-6085-40` - 27 (6085/40 MHz) + + * `6g-29-6095-20` - 29 (6095/20 MHz) + + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) + + * `6g-163-6765-40` - 163 (6765/40 MHz) + + * `6g-165-6775-20` - 165 (6775/20 MHz) + + * `6g-167-6785-80` - 167 (6785/80 MHz) + + * `6g-169-6795-20` - 169 (6795/20 MHz) + + * `6g-171-6805-40` - 171 (6805/40 MHz) + + * `6g-173-6815-20` - 173 (6815/20 MHz) + + * `6g-175-6825-160` - 175 (6825/160 MHz) + + * `6g-177-6835-20` - 177 (6835/20 MHz) + + * `6g-179-6845-40` - 179 (6845/40 MHz) + + * `6g-181-6855-20` - 181 (6855/20 MHz) + + * `6g-183-6865-80` - 183 (6865/80 MHz) + + * `6g-185-6875-20` - 185 (6875/20 MHz) + + * `6g-187-6885-40` - 187 (6885/40 MHz) + + * `6g-189-6895-20` - 189 (6895/20 MHz) + + * `6g-193-6915-20` - 193 (6915/20 MHz) + + * `6g-195-6925-40` - 195 (6925/40 MHz) + + * `6g-197-6935-20` - 197 (6935/20 MHz) + + * `6g-199-6945-80` - 199 (6945/80 MHz) + + * `6g-201-6955-20` - 201 (6955/20 MHz) + + * `6g-203-6965-40` - 203 (6965/40 MHz) + + * `6g-205-6975-20` - 205 (6975/20 MHz) + + * `6g-207-6985-160` - 207 (6985/160 MHz) + + * `6g-209-6995-20` - 209 (6995/20 MHz) + + * `6g-211-7005-40` - 211 (7005/40 MHz) + + * `6g-213-7015-20` - 213 (7015/20 MHz) + + * `6g-215-7025-80` - 215 (7025/80 MHz) + + * `6g-217-7035-20` - 217 (7035/20 MHz) + + * `6g-219-7045-40` - 219 (7045/40 MHz) + + * `6g-221-7055-20` - 221 (7055/20 MHz) + + * `6g-225-7075-20` - 225 (7075/20 MHz) + + * `6g-227-7085-40` - 227 (7085/40 MHz) + + * `6g-229-7095-20` - 229 (7095/20 MHz) + + * `6g-233-7115-20` - 233 (7115/20 MHz) + + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' explode: true style: form - in: query - name: last_updated__empty + name: rf_channel_frequency schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__gt + name: rf_channel_frequency__empty + schema: + type: boolean + - in: query + name: rf_channel_frequency__gt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__gte + name: rf_channel_frequency__gte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__lt + name: rf_channel_frequency__lt schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__lte + name: rf_channel_frequency__lte schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - in: query - name: last_updated__n + name: rf_channel_frequency__n schema: type: array items: - type: string - format: date-time + type: number + format: double explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: rf_channel_width schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__empty + name: rf_channel_width__empty schema: type: boolean - in: query - name: name__ic + name: rf_channel_width__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__ie + name: rf_channel_width__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__iew + name: rf_channel_width__lt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__isw + name: rf_channel_width__lte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__n + name: rf_channel_width__n schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: name__nic + name: rf_role schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role explode: true style: form - in: query - name: name__nie + name: rf_role__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__niew + name: rf_role__ic schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: name__nisw + name: rf_role__ie schema: type: array items: type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: rf_role__iew schema: type: array items: type: string - description: Parent location (slug) + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: parent__n + name: rf_role__isw schema: type: array items: type: string - description: Parent location (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent location (ID) + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: parent_id__n + name: rf_role__n schema: type: array items: - type: integer - nullable: true - description: Parent location (ID) + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: rf_role__nic schema: type: array items: - type: integer - description: Region (slug) + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: region__n + name: rf_role__nie schema: type: array items: - type: integer - description: Region (slug) + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: region_id + name: rf_role__niew schema: type: array items: - type: integer - description: Region (ID) + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query - name: region_id__n + name: rf_role__nisw schema: type: array items: - type: integer - description: Region (ID) + type: string + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + enum: + - '' + - ap + - station + description: '* `ap` - Access point + + * `station` - Station' explode: true style: form - in: query @@ -29005,7 +43462,7 @@ paths: type: array items: type: string - description: Site (slug) + description: Site name (slug) explode: true style: form - in: query @@ -29014,7 +43471,7 @@ paths: type: array items: type: string - description: Site (slug) + description: Site name (slug) explode: true style: form - in: query @@ -29022,8 +43479,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -29031,8 +43487,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -29040,8 +43495,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -29049,8 +43503,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -29072,890 +43525,3927 @@ paths: explode: true style: form - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew + name: speed schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__isw + name: speed__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__n + name: speed__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nic + name: speed__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nie + name: speed__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__niew + name: speed__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__nisw + name: speed__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: status + name: tag schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: status__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: tag + name: tx_power schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: tx_power__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: tenant + name: tx_power__gt schema: type: array items: - type: string - description: Tenant (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tenant__n + name: tx_power__gte schema: type: array items: - type: string - description: Tenant (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tenant_group + name: tx_power__lt schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group__n + name: tx_power__lte schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: tx_power__n schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: type schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + x-spec-enum-id: 56365107f9c2326f + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: tenant_id + name: type__ie schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedLocationList' - description: '' - post: - operationId: dcim_locations_create - description: Post a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - put: - operationId: dcim_locations_bulk_update - description: Put a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Location' - description: '' - patch: - operationId: dcim_locations_bulk_partial_update - description: Patch a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Location' - description: '' - delete: - operationId: dcim_locations_bulk_destroy - description: Delete a list of location objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/LocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/locations/{id}/: - get: - operationId: dcim_locations_retrieve - description: Get a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - put: - operationId: dcim_locations_update - description: Put a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableLocationRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - patch: - operationId: dcim_locations_partial_update - description: Patch a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableLocationRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Location' - description: '' - delete: - operationId: dcim_locations_destroy - description: Delete a location object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this location. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/manufacturers/: - get: - operationId: dcim_manufacturers_list - description: Get a list of manufacturer objects. - parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: created + name: type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: created__empty + name: type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: created__gt + name: type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: created__gte + name: type__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: created__lt + name: type__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: created__lte + name: type__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: 56365107f9c2326f + enum: + - 1000base-kx + - 1000base-t + - 1000base-tx + - 1000base-x-gbic + - 1000base-x-sfp + - 100base-fx + - 100base-lfx + - 100base-t1 + - 100base-tx + - 100base-x-sfp + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cpak + - 100gbase-x-cxp + - 100gbase-x-dsfp + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 100gbase-x-sfpdd + - 10g-epon + - 10gbase-cx4 + - 10gbase-kr + - 10gbase-kx4 + - 10gbase-t + - 10gbase-x-sfpp + - 10gbase-x-x2 + - 10gbase-x-xenpak + - 10gbase-x-xfp + - 128gfc-qsfp28 + - 16gfc-sfpp + - 1gfc-sfp + - 2.5gbase-kx + - 2.5gbase-t + - 200gbase-x-cfp2 + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 25g-pon + - 25gbase-kr + - 25gbase-x-sfp28 + - 2gfc-sfp + - 32gfc-sfp28 + - 32gfc-sfpp + - 400gbase-x-cdfp + - 400gbase-x-cfp2 + - 400gbase-x-cfp8 + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 40gbase-kr4 + - 40gbase-x-qsfpp + - 4g + - 4gfc-sfp + - 50g-pon + - 50gbase-kr + - 50gbase-x-sfp28 + - 50gbase-x-sfp56 + - 5g + - 5gbase-kr + - 5gbase-t + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 800gbase-x-osfp + - 800gbase-x-qsfpdd + - 8gfc-sfpp + - bpon + - bridge + - cdma + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise + - cisco-stackwise-160 + - cisco-stackwise-1t + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-80 + - cisco-stackwise-plus + - docsis + - e1 + - e3 + - epon + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - gpon + - gsm + - ieee802.11a + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.11g + - ieee802.11n + - ieee802.15.1 + - ieee802.15.4 + - infiniband-ddr + - infiniband-edr + - infiniband-fdr + - infiniband-fdr10 + - infiniband-hdr + - infiniband-ndr + - infiniband-qdr + - infiniband-sdr + - infiniband-xdr + - juniper-vcp + - lag + - lte + - ng-pon2 + - other + - other-wireless + - sonet-oc12 + - sonet-oc192 + - sonet-oc1920 + - sonet-oc3 + - sonet-oc3840 + - sonet-oc48 + - sonet-oc768 + - t1 + - t3 + - virtual + - xdsl + - xg-pon + - xgs-pon + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) + + * `32gfc-sfp28` - SFP28 (32GFC) + + * `32gfc-sfpp` - SFP+ (32GFC) + + * `64gfc-qsfpp` - QSFP+ (64GFC) + + * `64gfc-sfpdd` - SFP-DD (64GFC) + + * `64gfc-sfpp` - SFP+ (64GFC) + + * `128gfc-qsfp28` - QSFP28 (128GFC) + + * `infiniband-sdr` - SDR (2 Gbps) + + * `infiniband-ddr` - DDR (4 Gbps) + + * `infiniband-qdr` - QDR (8 Gbps) + + * `infiniband-fdr10` - FDR10 (10 Gbps) + + * `infiniband-fdr` - FDR (13.5 Gbps) + + * `infiniband-edr` - EDR (25 Gbps) + + * `infiniband-hdr` - HDR (50 Gbps) + + * `infiniband-ndr` - NDR (100 Gbps) + + * `infiniband-xdr` - XDR (250 Gbps) + + * `t1` - T1 (1.544 Mbps) + + * `e1` - E1 (2.048 Mbps) + + * `t3` - T3 (45 Mbps) + + * `e3` - E3 (34 Mbps) + + * `xdsl` - xDSL + + * `docsis` - DOCSIS + + * `bpon` - BPON (622 Mbps / 155 Mbps) + + * `epon` - EPON (1 Gbps) + + * `10g-epon` - 10G-EPON (10 Gbps) + + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + + * `xgs-pon` - XGS-PON (10 Gbps) + + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + + * `25g-pon` - 25G-PON (25 Gbps) + + * `50g-pon` - 50G-PON (50 Gbps) + + * `cisco-stackwise` - Cisco StackWise + + * `cisco-stackwise-plus` - Cisco StackWise Plus + + * `cisco-flexstack` - Cisco FlexStack + + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' explode: true style: form - in: query - name: description__nie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: description__niew + name: vdc schema: type: array items: type: string + description: Virtual Device Context explode: true style: form - in: query - name: description__nisw + name: vdc__n schema: type: array items: type: string + description: Virtual Device Context explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte + name: vdc_id schema: type: array items: type: integer - format: int32 + description: Virtual Device Context explode: true style: form - in: query - name: id__lt + name: vdc_id__n schema: type: array items: type: integer - format: int32 + description: Virtual Device Context explode: true style: form - in: query - name: id__lte + name: vdc_identifier schema: type: array items: type: integer - format: int32 + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) explode: true style: form - in: query - name: id__n + name: vdc_identifier__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time + maximum: 32767 + minimum: 0 + nullable: true + description: Virtual Device Context (Identifier) explode: true style: form - in: query - name: last_updated__empty + name: virtual_chassis schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__gt + name: virtual_chassis__n schema: type: array items: type: string - format: date-time + description: Virtual Chassis explode: true style: form - in: query - name: last_updated__gte + name: virtual_chassis_id schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: last_updated__lt + name: virtual_chassis_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Virtual Chassis (ID) explode: true style: form - in: query - name: last_updated__lte + name: virtual_chassis_member schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: virtual_chassis_member_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: vlan schema: type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form + description: Assigned VID - in: query - name: name__iew + name: vlan_id schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Assigned VLAN - in: query - name: name__isw + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: name__n + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: name__nic + name: vrf_id schema: type: array items: - type: string + type: integer + description: VRF explode: true style: form - in: query - name: name__nie + name: vrf_id__n schema: type: array items: - type: string + type: integer + description: VRF explode: true style: form - in: query - name: name__niew + name: wireless_lan_id schema: type: array items: - type: string + type: integer + description: Wireless LAN explode: true style: form - in: query - name: name__nisw + name: wireless_lan_id__n schema: type: array items: - type: string + type: integer + description: Wireless LAN explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: wireless_link_id schema: type: array items: - type: string + type: integer + nullable: true + description: Wireless link explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: wireless_link_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Wireless link explode: true style: form - in: query - name: slug__ie + name: wwn schema: type: array items: @@ -29963,7 +47453,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: wwn__ic schema: type: array items: @@ -29971,7 +47461,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: wwn__ie schema: type: array items: @@ -29979,7 +47469,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: wwn__iew schema: type: array items: @@ -29987,7 +47477,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: wwn__isw schema: type: array items: @@ -29995,7 +47485,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: wwn__n schema: type: array items: @@ -30003,7 +47493,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: wwn__nic schema: type: array items: @@ -30011,7 +47501,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: wwn__nie schema: type: array items: @@ -30019,7 +47509,7 @@ paths: explode: true style: form - in: query - name: tag + name: wwn__niew schema: type: array items: @@ -30027,18 +47517,13 @@ paths: explode: true style: form - in: query - name: tag__n + name: wwn__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -30049,21 +47534,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedManufacturerList' + $ref: '#/components/schemas/PaginatedInterfaceList' description: '' post: - operationId: dcim_manufacturers_create - description: Post a list of manufacturer objects. + operationId: dcim_interfaces_create + description: Post a list of interface objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' required: true security: - cookieAuth: [] @@ -30073,11 +47558,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/Interface' description: '' put: - operationId: dcim_manufacturers_bulk_update - description: Put a list of manufacturer objects. + operationId: dcim_interfaces_bulk_update + description: Put a list of interface objects. tags: - dcim requestBody: @@ -30086,12 +47571,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -30103,11 +47588,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/Interface' description: '' patch: - operationId: dcim_manufacturers_bulk_partial_update - description: Patch a list of manufacturer objects. + operationId: dcim_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - dcim requestBody: @@ -30116,12 +47601,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -30133,11 +47618,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/Interface' description: '' delete: - operationId: dcim_manufacturers_bulk_destroy - description: Delete a list of manufacturer objects. + operationId: dcim_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - dcim requestBody: @@ -30146,12 +47631,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/InterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/InterfaceRequest' required: true security: - cookieAuth: [] @@ -30159,16 +47644,16 @@ paths: responses: '204': description: No response body - /api/dcim/manufacturers/{id}/: + /api/dcim/interfaces/{id}/: get: - operationId: dcim_manufacturers_retrieve - description: Get a manufacturer object. + operationId: dcim_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -30180,17 +47665,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/Interface' description: '' put: - operationId: dcim_manufacturers_update - description: Put a manufacturer object. + operationId: dcim_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -30198,10 +47683,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/WritableInterfaceRequest' required: true security: - cookieAuth: [] @@ -30211,17 +47696,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/Interface' description: '' patch: - operationId: dcim_manufacturers_partial_update - description: Patch a manufacturer object. + operationId: dcim_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -30229,10 +47714,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedManufacturerRequest' + $ref: '#/components/schemas/PatchedWritableInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -30241,17 +47726,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/Interface' description: '' delete: - operationId: dcim_manufacturers_destroy - description: Delete a manufacturer object. + operationId: dcim_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this manufacturer. + description: A unique integer value identifying this interface. required: true tags: - dcim @@ -30261,81 +47746,81 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/: + /api/dcim/interfaces/{id}/trace/: get: - operationId: dcim_module_bay_templates_list - description: Get a list of module bay template objects. + operationId: dcim_interfaces_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: created + - in: path + name: id schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: integer + description: A unique integer value identifying this interface. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Interface' + description: '' + /api/dcim/inventory-item-roles/: + get: + operationId: dcim_inventory_item_roles_list + description: Get a list of inventory item role objects. + parameters: - in: query - name: created__empty + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: color__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gte + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: color__n schema: type: array items: @@ -30343,11 +47828,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__nic schema: type: array items: @@ -30355,7 +47836,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nie schema: type: array items: @@ -30363,7 +47844,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: color__niew schema: type: array items: @@ -30371,7 +47852,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: color__nisw schema: type: array items: @@ -30379,141 +47860,127 @@ paths: explode: true style: form - in: query - name: description__n + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n + name: created__lte schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: devicetype_id + name: created__n schema: type: array items: - type: integer - description: Device type (ID) + type: string + format: date-time explode: true style: form - in: query - name: devicetype_id__n + name: created_by_request schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: label + name: description__nic schema: type: array items: @@ -30521,11 +47988,7 @@ paths: explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: description__nie schema: type: array items: @@ -30533,7 +47996,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: description__niew schema: type: array items: @@ -30541,7 +48004,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: description__nisw schema: type: array items: @@ -30549,51 +48012,61 @@ paths: explode: true style: form - in: query - name: label__isw + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nic + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nie + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__niew + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: label__nisw + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -30767,7 +48240,12 @@ paths: schema: type: string - in: query - name: position + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -30775,11 +48253,11 @@ paths: explode: true style: form - in: query - name: position__empty + name: slug__empty schema: type: boolean - in: query - name: position__ic + name: slug__ic schema: type: array items: @@ -30787,7 +48265,7 @@ paths: explode: true style: form - in: query - name: position__ie + name: slug__ie schema: type: array items: @@ -30795,7 +48273,7 @@ paths: explode: true style: form - in: query - name: position__iew + name: slug__iew schema: type: array items: @@ -30803,7 +48281,7 @@ paths: explode: true style: form - in: query - name: position__isw + name: slug__isw schema: type: array items: @@ -30811,7 +48289,7 @@ paths: explode: true style: form - in: query - name: position__n + name: slug__n schema: type: array items: @@ -30819,7 +48297,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: slug__nic schema: type: array items: @@ -30827,7 +48305,7 @@ paths: explode: true style: form - in: query - name: position__nie + name: slug__nie schema: type: array items: @@ -30835,7 +48313,7 @@ paths: explode: true style: form - in: query - name: position__niew + name: slug__niew schema: type: array items: @@ -30843,7 +48321,7 @@ paths: explode: true style: form - in: query - name: position__nisw + name: slug__nisw schema: type: array items: @@ -30851,10 +48329,21 @@ paths: explode: true style: form - in: query - name: q + name: tag schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: @@ -30870,21 +48359,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayTemplateList' + $ref: '#/components/schemas/PaginatedInventoryItemRoleList' description: '' post: - operationId: dcim_module_bay_templates_create - description: Post a list of module bay template objects. + operationId: dcim_inventory_item_roles_create + description: Post a list of inventory item role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -30894,11 +48383,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_module_bay_templates_bulk_update - description: Put a list of module bay template objects. + operationId: dcim_inventory_item_roles_bulk_update + description: Put a list of inventory item role objects. tags: - dcim requestBody: @@ -30907,12 +48396,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -30924,11 +48413,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_module_bay_templates_bulk_partial_update - description: Patch a list of module bay template objects. + operationId: dcim_inventory_item_roles_bulk_partial_update + description: Patch a list of inventory item role objects. tags: - dcim requestBody: @@ -30937,12 +48426,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -30954,11 +48443,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_module_bay_templates_bulk_destroy - description: Delete a list of module bay template objects. + operationId: dcim_inventory_item_roles_bulk_destroy + description: Delete a list of inventory item role objects. tags: - dcim requestBody: @@ -30967,12 +48456,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -30980,16 +48469,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bay-templates/{id}/: + /api/dcim/inventory-item-roles/{id}/: get: - operationId: dcim_module_bay_templates_retrieve - description: Get a module bay template object. + operationId: dcim_inventory_item_roles_retrieve + description: Get a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -31001,17 +48490,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItemRole' description: '' put: - operationId: dcim_module_bay_templates_update - description: Put a module bay template object. + operationId: dcim_inventory_item_roles_update + description: Put a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -31019,10 +48508,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayTemplateRequest' + $ref: '#/components/schemas/InventoryItemRoleRequest' required: true security: - cookieAuth: [] @@ -31032,17 +48521,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItemRole' description: '' patch: - operationId: dcim_module_bay_templates_partial_update - description: Patch a module bay template object. + operationId: dcim_inventory_item_roles_partial_update + description: Patch a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -31050,10 +48539,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' + $ref: '#/components/schemas/PatchedInventoryItemRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -31062,17 +48551,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayTemplate' + $ref: '#/components/schemas/InventoryItemRole' description: '' delete: - operationId: dcim_module_bay_templates_destroy - description: Delete a module bay template object. + operationId: dcim_inventory_item_roles_destroy + description: Delete a inventory item role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay template. + description: A unique integer value identifying this inventory item role. required: true tags: - dcim @@ -31082,133 +48571,152 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/: + /api/dcim/inventory-item-templates/: get: - operationId: dcim_module_bays_list - description: Get a list of module bay objects. + operationId: dcim_inventory_item_templates_list + description: Get a list of inventory item template objects. parameters: - in: query - name: created + name: component_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: component_id__empty schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gt + name: component_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: component_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: component_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: component_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: component_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: component_type schema: type: string - format: uuid - in: query - name: description + name: component_type__n + schema: + type: string + - in: query + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: description__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -31216,7 +48724,11 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -31224,7 +48736,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: description__ie schema: type: array items: @@ -31232,7 +48744,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__iew schema: type: array items: @@ -31240,59 +48752,51 @@ paths: explode: true style: form - in: query - name: device + name: description__isw schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: description__n schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: description__nic schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: description__nie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_type + name: description__niew schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query - name: device_type__n + name: description__nisw schema: type: array items: type: string - description: Device type (model) explode: true style: form - in: query @@ -31371,24 +48875,6 @@ paths: format: int32 explode: true style: form - - in: query - name: installed_module_id - schema: - type: array - items: - type: integer - description: Installed module (ID) - explode: true - style: form - - in: query - name: installed_module_id__n - schema: - type: array - items: - type: integer - description: Installed module (ID) - explode: true - style: form - in: query name: label schema: @@ -31543,39 +49029,41 @@ paths: schema: type: integer - in: query - name: location + name: manufacturer schema: type: array items: type: string - description: Location (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: location__n + name: manufacturer__n schema: type: array items: type: string - description: Location (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: location_id + name: manufacturer_id schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Manufacturer (ID) explode: true style: form - in: query - name: location_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Location (ID) + nullable: true + description: Manufacturer (ID) explode: true style: form - in: query @@ -31680,27 +49168,27 @@ paths: schema: type: string - in: query - name: position + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: position__empty - schema: - type: boolean - - in: query - name: position__ic + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: position__ie + name: part_id schema: type: array items: @@ -31708,15 +49196,11 @@ paths: explode: true style: form - in: query - name: position__iew + name: part_id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: position__isw + name: part_id__ic schema: type: array items: @@ -31724,7 +49208,7 @@ paths: explode: true style: form - in: query - name: position__n + name: part_id__ie schema: type: array items: @@ -31732,7 +49216,7 @@ paths: explode: true style: form - in: query - name: position__nic + name: part_id__iew schema: type: array items: @@ -31740,7 +49224,7 @@ paths: explode: true style: form - in: query - name: position__nie + name: part_id__isw schema: type: array items: @@ -31748,7 +49232,7 @@ paths: explode: true style: form - in: query - name: position__niew + name: part_id__n schema: type: array items: @@ -31756,7 +49240,7 @@ paths: explode: true style: form - in: query - name: position__nisw + name: part_id__nic schema: type: array items: @@ -31764,89 +49248,41 @@ paths: explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rack + name: part_id__nie schema: type: array items: type: string - description: Rack (name) explode: true style: form - in: query - name: rack__n + name: part_id__niew schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) explode: true style: form - in: query - name: region_id + name: part_id__nisw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: q schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: string + description: Search - in: query name: role schema: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -31855,7 +49291,7 @@ paths: type: array items: type: string - description: Device role (slug) + description: Role (slug) explode: true style: form - in: query @@ -31864,7 +49300,8 @@ paths: type: array items: type: integer - description: Device role (ID) + nullable: true + description: Role (ID) explode: true style: form - in: query @@ -31873,95 +49310,8 @@ paths: type: array items: type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string + nullable: true + description: Role (ID) explode: true style: form - in: query @@ -31969,42 +49319,6 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -32015,21 +49329,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleBayList' + $ref: '#/components/schemas/PaginatedInventoryItemTemplateList' description: '' post: - operationId: dcim_module_bays_create - description: Post a list of module bay objects. + operationId: dcim_inventory_item_templates_create + description: Post a list of inventory item template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32039,11 +49353,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_module_bays_bulk_update - description: Put a list of module bay objects. + operationId: dcim_inventory_item_templates_bulk_update + description: Put a list of inventory item template objects. tags: - dcim requestBody: @@ -32052,12 +49366,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32069,11 +49383,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_module_bays_bulk_partial_update - description: Patch a list of module bay objects. + operationId: dcim_inventory_item_templates_bulk_partial_update + description: Patch a list of inventory item template objects. tags: - dcim requestBody: @@ -32082,12 +49396,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32099,11 +49413,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_module_bays_bulk_destroy - description: Delete a list of module bay objects. + operationId: dcim_inventory_item_templates_bulk_destroy + description: Delete a list of inventory item template objects. tags: - dcim requestBody: @@ -32112,12 +49426,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32125,16 +49439,16 @@ paths: responses: '204': description: No response body - /api/dcim/module-bays/{id}/: + /api/dcim/inventory-item-templates/{id}/: get: - operationId: dcim_module_bays_retrieve - description: Get a module bay object. + operationId: dcim_inventory_item_templates_retrieve + description: Get a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -32146,17 +49460,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' put: - operationId: dcim_module_bays_update - description: Put a module bay object. + operationId: dcim_inventory_item_templates_update + description: Put a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -32164,10 +49478,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ModuleBayRequest' + $ref: '#/components/schemas/InventoryItemTemplateRequest' required: true security: - cookieAuth: [] @@ -32177,17 +49491,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' patch: - operationId: dcim_module_bays_partial_update - description: Patch a module bay object. + operationId: dcim_inventory_item_templates_partial_update + description: Patch a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -32195,10 +49509,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedModuleBayRequest' + $ref: '#/components/schemas/PatchedInventoryItemTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -32207,17 +49521,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ModuleBay' + $ref: '#/components/schemas/InventoryItemTemplate' description: '' delete: - operationId: dcim_module_bays_destroy - description: Delete a module bay object. + operationId: dcim_inventory_item_templates_destroy + description: Delete a inventory item template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module bay. + description: A unique integer value identifying this inventory item template. required: true tags: - dcim @@ -32227,91 +49541,65 @@ paths: responses: '204': description: No response body - /api/dcim/module-types/: + /api/dcim/inventory-items/: get: - operationId: dcim_module_types_list - description: Get a list of module type objects. + operationId: dcim_inventory_items_list + description: Get a list of inventory item objects. parameters: - in: query - name: console_ports - schema: - type: boolean - description: Has console ports - - in: query - name: console_server_ports - schema: - type: boolean - description: Has console server ports - - in: query - name: created + name: asset_tag schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: asset_tag__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: asset_tag__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: asset_tag__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: asset_tag__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: asset_tag__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: asset_tag__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: asset_tag__nic schema: type: array items: @@ -32319,11 +49607,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: asset_tag__nie schema: type: array items: @@ -32331,7 +49615,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: asset_tag__niew schema: type: array items: @@ -32339,7 +49623,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: asset_tag__nisw schema: type: array items: @@ -32347,55 +49631,61 @@ paths: explode: true style: form - in: query - name: description__isw + name: component_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: component_id__empty schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: component_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: component_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: component_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: component_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: id + name: component_id__n schema: type: array items: @@ -32404,61 +49694,51 @@ paths: explode: true style: form - in: query - name: id__empty + name: component_type schema: - type: boolean + type: string - in: query - name: id__gt + name: component_type__n schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__gte + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: interfaces - schema: - type: boolean - description: Has interfaces - - in: query - name: last_updated + name: created__lt schema: type: array items: @@ -32467,7 +49747,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__lte schema: type: array items: @@ -32476,7 +49756,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__n schema: type: array items: @@ -32485,85 +49765,80 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: manufacturer + name: description__isw schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer__n + name: description__n schema: type: array items: type: string - description: Manufacturer (slug) explode: true style: form - in: query - name: manufacturer_id + name: description__nic schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: manufacturer_id__n + name: description__nie schema: type: array items: - type: integer - description: Manufacturer (ID) + type: string explode: true style: form - in: query - name: model + name: description__niew schema: type: array items: @@ -32571,11 +49846,7 @@ paths: explode: true style: form - in: query - name: model__empty - schema: - type: boolean - - in: query - name: model__ic + name: description__nisw schema: type: array items: @@ -32583,532 +49854,462 @@ paths: explode: true style: form - in: query - name: model__ie + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: model__iew + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: model__isw + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: model__n + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: model__nic + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: model__nie + name: device_role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: model__niew + name: device_role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: model__nisw + name: device_role_id__n schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: part_number + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: part_number__empty + name: device_status__empty schema: type: boolean - in: query - name: part_number__ic + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__ie + name: device_status__ie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__iew + name: device_status__iew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__isw + name: device_status__isw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__n + name: device_status__n schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__nic + name: device_status__nic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__nie + name: device_status__nie schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__niew + name: device_status__niew schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: part_number__nisw + name: device_status__nisw schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: pass_through_ports - schema: - type: boolean - description: Has pass-through ports - - in: query - name: power_outlets - schema: - type: boolean - description: Has power outlets - - in: query - name: power_ports - schema: - type: boolean - description: Has power ports - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: tag + name: device_type schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: tag__n + name: device_type__n schema: type: array items: type: string + description: Device type (model) explode: true style: form - in: query - name: updated_by_request + name: device_type_id schema: - type: string - format: uuid + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query - name: weight + name: device_type_id__n schema: type: array items: - type: number - format: double + type: integer + description: Device type (ID) explode: true style: form - in: query - name: weight__empty + name: discovered schema: type: boolean - in: query - name: weight__gt + name: id schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__gte + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__lt + name: id__gte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__lte + name: id__lt schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight__n + name: id__lte schema: type: array items: - type: number - format: double + type: integer + format: int32 explode: true style: form - in: query - name: weight_unit - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedModuleTypeList' - description: '' - post: - operationId: dcim_module_types_create - description: Post a list of module type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ModuleType' - description: '' - put: - operationId: dcim_module_types_bulk_update - description: Put a list of module type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleType' - description: '' - patch: - operationId: dcim_module_types_bulk_partial_update - description: Patch a list of module type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleType' - description: '' - delete: - operationId: dcim_module_types_bulk_destroy - description: Delete a list of module type objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleTypeRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ModuleTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/module-types/{id}/: - get: - operationId: dcim_module_types_retrieve - description: Get a module type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this module type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ModuleType' - description: '' - put: - operationId: dcim_module_types_update - description: Put a module type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this module type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableModuleTypeRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ModuleType' - description: '' - patch: - operationId: dcim_module_types_partial_update - description: Patch a module type object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this module type. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ModuleType' - description: '' - delete: - operationId: dcim_module_types_destroy - description: Delete a module type object. - parameters: - - in: path - name: id + name: id__n schema: - type: integer - description: A unique integer value identifying this module type. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/modules/: - get: - operationId: dcim_modules_list - description: Get a list of module objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: asset_tag + name: label schema: type: array items: @@ -33116,11 +50317,11 @@ paths: explode: true style: form - in: query - name: asset_tag__empty + name: label__empty schema: type: boolean - in: query - name: asset_tag__ic + name: label__ic schema: type: array items: @@ -33128,7 +50329,7 @@ paths: explode: true style: form - in: query - name: asset_tag__ie + name: label__ie schema: type: array items: @@ -33136,7 +50337,7 @@ paths: explode: true style: form - in: query - name: asset_tag__iew + name: label__iew schema: type: array items: @@ -33144,7 +50345,7 @@ paths: explode: true style: form - in: query - name: asset_tag__isw + name: label__isw schema: type: array items: @@ -33152,7 +50353,7 @@ paths: explode: true style: form - in: query - name: asset_tag__n + name: label__n schema: type: array items: @@ -33160,7 +50361,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nic + name: label__nic schema: type: array items: @@ -33168,7 +50369,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nie + name: label__nie schema: type: array items: @@ -33176,7 +50377,7 @@ paths: explode: true style: form - in: query - name: asset_tag__niew + name: label__niew schema: type: array items: @@ -33184,7 +50385,7 @@ paths: explode: true style: form - in: query - name: asset_tag__nisw + name: label__nisw schema: type: array items: @@ -33192,7 +50393,7 @@ paths: explode: true style: form - in: query - name: created + name: last_updated schema: type: array items: @@ -33201,7 +50402,7 @@ paths: explode: true style: form - in: query - name: created__empty + name: last_updated__empty schema: type: array items: @@ -33210,7 +50411,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: last_updated__gt schema: type: array items: @@ -33219,7 +50420,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: last_updated__gte schema: type: array items: @@ -33228,7 +50429,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: last_updated__lt schema: type: array items: @@ -33237,7 +50438,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: last_updated__lte schema: type: array items: @@ -33246,7 +50447,7 @@ paths: explode: true style: form - in: query - name: created__n + name: last_updated__n schema: type: array items: @@ -33254,49 +50455,93 @@ paths: format: date-time explode: true style: form - - in: query - name: created_by_request + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: string - format: uuid + type: integer - in: query - name: description + name: location schema: type: array items: type: string + description: Location (slug) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: location__n schema: type: array items: type: string + description: Location (slug) explode: true style: form - in: query - name: description__ie + name: location_id + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location (ID) + explode: true + style: form + - in: query + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: description__iew + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: description__isw + name: manufacturer_id + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: manufacturer_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Manufacturer (ID) + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -33304,7 +50549,11 @@ paths: explode: true style: form - in: query - name: description__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -33312,7 +50561,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__ie schema: type: array items: @@ -33320,7 +50569,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__iew schema: type: array items: @@ -33328,7 +50577,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__isw schema: type: array items: @@ -33336,7 +50585,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__n schema: type: array items: @@ -33344,262 +50593,264 @@ paths: explode: true style: form - in: query - name: device_id + name: name__nic schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: name__nie schema: type: array items: - type: integer - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: id__gt + name: parent_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: id__gte + name: parent_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Parent inventory item (ID) explode: true style: form - in: query - name: id__lt + name: part_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: part_id__empty + schema: + type: boolean + - in: query + name: part_id__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: part_id__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: part_id__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: part_id__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: part_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: part_id__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: part_id__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: part_id__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: part_id__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: q schema: - type: integer + type: string + description: Search - in: query - name: manufacturer + name: rack schema: type: array items: type: string - description: Manufacturer (slug) + description: Rack (name) explode: true style: form - in: query - name: manufacturer__n + name: rack__n schema: type: array items: type: string - description: Manufacturer (slug) + description: Rack (name) explode: true style: form - in: query - name: manufacturer_id + name: rack_id schema: type: array items: type: integer - description: Manufacturer (ID) + description: Rack (ID) explode: true style: form - in: query - name: manufacturer_id__n + name: rack_id__n schema: type: array items: type: integer - description: Manufacturer (ID) + description: Rack (ID) explode: true style: form - in: query - name: modified_by_request + name: region schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: module_bay_id + name: region__n schema: type: array items: - type: integer - description: Module Bay (ID) + type: string explode: true style: form - in: query - name: module_bay_id__n + name: region_id schema: type: array items: - type: integer - description: Module Bay (ID) + type: string explode: true style: form - in: query - name: module_type + name: region_id__n schema: type: array items: type: string - description: Module type (model) explode: true style: form - in: query - name: module_type__n + name: role schema: type: array items: type: string - description: Module type (model) + description: Role (slug) explode: true style: form - in: query - name: module_type_id + name: role__n schema: type: array items: - type: integer - description: Module type (ID) + type: string + description: Role (slug) explode: true style: form - in: query - name: module_type_id__n + name: role_id schema: type: array items: type: integer - description: Module type (ID) + nullable: true + description: Role (ID) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: role_id__n schema: - type: string - description: Search + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form - in: query name: serial schema: @@ -33685,21 +50936,71 @@ paths: explode: true style: form - in: query - name: status + name: site schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + description: Site name (slug) explode: true style: form - in: query - name: status__n + name: site__n schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda + description: Site name (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) explode: true style: form - in: query @@ -33723,6 +51024,42 @@ paths: schema: type: string format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form + - in: query + name: virtual_chassis_id__n + schema: + type: array + items: + type: integer + description: Virtual Chassis (ID) + explode: true + style: form tags: - dcim security: @@ -33733,21 +51070,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedModuleList' + $ref: '#/components/schemas/PaginatedInventoryItemList' description: '' post: - operationId: dcim_modules_create - description: Post a list of module objects. + operationId: dcim_inventory_items_create + description: Post a list of inventory item objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -33757,11 +51094,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_modules_bulk_update - description: Put a list of module objects. + operationId: dcim_inventory_items_bulk_update + description: Put a list of inventory item objects. tags: - dcim requestBody: @@ -33770,12 +51107,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -33787,11 +51124,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_modules_bulk_partial_update - description: Patch a list of module objects. + operationId: dcim_inventory_items_bulk_partial_update + description: Patch a list of inventory item objects. tags: - dcim requestBody: @@ -33800,12 +51137,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -33817,11 +51154,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_modules_bulk_destroy - description: Delete a list of module objects. + operationId: dcim_inventory_items_bulk_destroy + description: Delete a list of inventory item objects. tags: - dcim requestBody: @@ -33830,12 +51167,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -33843,16 +51180,16 @@ paths: responses: '204': description: No response body - /api/dcim/modules/{id}/: + /api/dcim/inventory-items/{id}/: get: - operationId: dcim_modules_retrieve - description: Get a module object. + operationId: dcim_inventory_items_retrieve + description: Get a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -33864,17 +51201,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/InventoryItem' description: '' put: - operationId: dcim_modules_update - description: Put a module object. + operationId: dcim_inventory_items_update + description: Put a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -33882,10 +51219,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableModuleRequest' + $ref: '#/components/schemas/InventoryItemRequest' required: true security: - cookieAuth: [] @@ -33895,17 +51232,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/InventoryItem' description: '' patch: - operationId: dcim_modules_partial_update - description: Patch a module object. + operationId: dcim_inventory_items_partial_update + description: Patch a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -33913,10 +51250,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableModuleRequest' + $ref: '#/components/schemas/PatchedInventoryItemRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -33925,17 +51262,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Module' + $ref: '#/components/schemas/InventoryItem' description: '' delete: - operationId: dcim_modules_destroy - description: Delete a module object. + operationId: dcim_inventory_items_destroy + description: Delete a inventory item object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this module. + description: A unique integer value identifying this inventory item. required: true tags: - dcim @@ -33945,33 +51282,93 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/: + /api/dcim/locations/: get: - operationId: dcim_platforms_list - description: Get a list of platform objects. + operationId: dcim_locations_list + description: Get a list of location objects. parameters: - in: query - name: available_for_device_type + name: ancestor schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: config_template_id + name: ancestor__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact schema: type: array items: type: integer - nullable: true - description: Config template (ID) + description: Contact explode: true style: form - in: query - name: config_template_id__n + name: contact__n schema: type: array items: type: integer - nullable: true - description: Config template (ID) + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role explode: true style: form - in: query @@ -34126,6 +51523,90 @@ paths: type: string explode: true style: form + - in: query + name: facility + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: facility__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: id schema: @@ -34253,42 +51734,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: manufacturer - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer__n - schema: - type: array - items: - type: string - description: Manufacturer (slug) - explode: true - style: form - - in: query - name: manufacturer_id - schema: - type: array - items: - type: integer - description: Manufacturer (ID) - explode: true - style: form - - in: query - name: manufacturer_id__n - schema: - type: array - items: - type: integer - description: Manufacturer (ID) - explode: true - style: form - in: query name: modified_by_request schema: @@ -34390,11 +51835,149 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: parent + schema: + type: array + items: + type: string + description: Parent location (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent location (slug) + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent location (ID) + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent location (ID) + explode: true + style: form - in: query name: q schema: type: string description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query name: slug schema: @@ -34479,6 +52062,235 @@ paths: type: string explode: true style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + explode: true + style: form - in: query name: tag schema: @@ -34495,6 +52307,76 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: @@ -34510,21 +52392,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPlatformList' + $ref: '#/components/schemas/PaginatedLocationList' description: '' post: - operationId: dcim_platforms_create - description: Post a list of platform objects. + operationId: dcim_locations_create + description: Post a list of location objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -34534,11 +52416,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_platforms_bulk_update - description: Put a list of platform objects. + operationId: dcim_locations_bulk_update + description: Put a list of location objects. tags: - dcim requestBody: @@ -34547,12 +52429,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -34564,11 +52446,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_platforms_bulk_partial_update - description: Patch a list of platform objects. + operationId: dcim_locations_bulk_partial_update + description: Patch a list of location objects. tags: - dcim requestBody: @@ -34577,12 +52459,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -34594,11 +52476,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_platforms_bulk_destroy - description: Delete a list of platform objects. + operationId: dcim_locations_bulk_destroy + description: Delete a list of location objects. tags: - dcim requestBody: @@ -34607,12 +52489,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/LocationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/LocationRequest' required: true security: - cookieAuth: [] @@ -34620,16 +52502,16 @@ paths: responses: '204': description: No response body - /api/dcim/platforms/{id}/: + /api/dcim/locations/{id}/: get: - operationId: dcim_platforms_retrieve - description: Get a platform object. + operationId: dcim_locations_retrieve + description: Get a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -34641,17 +52523,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/Location' description: '' put: - operationId: dcim_platforms_update - description: Put a platform object. + operationId: dcim_locations_update + description: Put a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -34659,10 +52541,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PlatformRequest' + $ref: '#/components/schemas/WritableLocationRequest' required: true security: - cookieAuth: [] @@ -34672,17 +52554,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/Location' description: '' patch: - operationId: dcim_platforms_partial_update - description: Patch a platform object. + operationId: dcim_locations_partial_update + description: Patch a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -34690,10 +52572,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPlatformRequest' + $ref: '#/components/schemas/PatchedWritableLocationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -34702,17 +52584,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Platform' + $ref: '#/components/schemas/Location' description: '' delete: - operationId: dcim_platforms_destroy - description: Delete a platform object. + operationId: dcim_locations_destroy + description: Delete a location object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this platform. + description: A unique integer value identifying this location. required: true tags: - dcim @@ -34722,177 +52604,63 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/: + /api/dcim/manufacturers/: get: - operationId: dcim_power_feeds_list - description: Get a list of power feed objects. - parameters: - - in: query - name: amperage - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__empty - schema: - type: boolean - - in: query - name: amperage__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: amperage__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: available_power__empty - schema: - type: boolean - - in: query - name: available_power__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + operationId: dcim_manufacturers_list + description: Get a list of manufacturer objects. + parameters: - in: query - name: available_power__gte + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: available_power__lt + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: available_power__lte + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: available_power__n + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: contact_role schema: type: array items: type: integer - nullable: true - description: Cable (ID) + description: Contact Role explode: true style: form - in: query - name: cable_id__n + name: contact_role__n schema: type: array items: type: integer - nullable: true - description: Cable (ID) + description: Contact Role explode: true style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - in: query name: created schema: @@ -35172,68 +52940,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: max_utilization - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__empty - schema: - type: boolean - - in: query - name: max_utilization__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_utilization__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -35323,10 +53029,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -35339,219 +53041,57 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: phase - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: phase__n - schema: - type: string - x-spec-enum-id: 994bc0696f4df57f - enum: - - single-phase - - three-phase - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - - in: query - name: power_panel_id - schema: - type: array - items: - type: integer - description: Power panel (ID) - explode: true - style: form - - in: query - name: power_panel_id__n - schema: - type: array - items: - type: integer - description: Power panel (ID) - explode: true - style: form - in: query name: q schema: type: string description: Search - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id + name: slug schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: slug__empty schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: boolean - in: query - name: site + name: slug__ic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__ie schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) explode: true style: form - in: query - name: status + name: slug__iew schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: status__n + name: slug__isw schema: type: array items: type: string - x-spec-enum-id: b77fc919138c12f6 explode: true style: form - in: query - name: supply - schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' - - in: query - name: supply__n - schema: - type: string - x-spec-enum-id: 1b6d99616ca6412b - enum: - - ac - - dc - description: '* `ac` - AC - - * `dc` - DC' - - in: query - name: tag + name: slug__n schema: type: array items: @@ -35559,7 +53099,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nic schema: type: array items: @@ -35567,164 +53107,50 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__niew schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) explode: true style: form - in: query - name: tenant_group_id__n + name: slug__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - - in: query - name: type - schema: - type: string - x-spec-enum-id: 093a164236819eb8 - enum: - - primary - - redundant - description: '* `primary` - Primary - - * `redundant` - Redundant' - - in: query - name: type__n - schema: - type: string - x-spec-enum-id: 093a164236819eb8 - enum: - - primary - - redundant - description: '* `primary` - Primary - - * `redundant` - Redundant' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: voltage - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__empty - schema: - type: boolean - - in: query - name: voltage__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: voltage__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - dcim security: @@ -35735,21 +53161,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerFeedList' + $ref: '#/components/schemas/PaginatedManufacturerList' description: '' post: - operationId: dcim_power_feeds_create - description: Post a list of power feed objects. + operationId: dcim_manufacturers_create + description: Post a list of manufacturer objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -35759,11 +53185,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_power_feeds_bulk_update - description: Put a list of power feed objects. + operationId: dcim_manufacturers_bulk_update + description: Put a list of manufacturer objects. tags: - dcim requestBody: @@ -35772,12 +53198,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -35789,11 +53215,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_power_feeds_bulk_partial_update - description: Patch a list of power feed objects. + operationId: dcim_manufacturers_bulk_partial_update + description: Patch a list of manufacturer objects. tags: - dcim requestBody: @@ -35802,12 +53228,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -35819,11 +53245,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_power_feeds_bulk_destroy - description: Delete a list of power feed objects. + operationId: dcim_manufacturers_bulk_destroy + description: Delete a list of manufacturer objects. tags: - dcim requestBody: @@ -35832,12 +53258,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -35845,16 +53271,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/: + /api/dcim/manufacturers/{id}/: get: - operationId: dcim_power_feeds_retrieve - description: Get a power feed object. + operationId: dcim_manufacturers_retrieve + description: Get a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -35866,17 +53292,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Manufacturer' description: '' put: - operationId: dcim_power_feeds_update - description: Put a power feed object. + operationId: dcim_manufacturers_update + description: Put a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -35884,10 +53310,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerFeedRequest' + $ref: '#/components/schemas/ManufacturerRequest' required: true security: - cookieAuth: [] @@ -35897,17 +53323,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Manufacturer' description: '' patch: - operationId: dcim_power_feeds_partial_update - description: Patch a power feed object. + operationId: dcim_manufacturers_partial_update + description: Patch a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -35915,10 +53341,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' + $ref: '#/components/schemas/PatchedManufacturerRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -35927,17 +53353,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerFeed' + $ref: '#/components/schemas/Manufacturer' description: '' delete: - operationId: dcim_power_feeds_destroy - description: Delete a power feed object. + operationId: dcim_manufacturers_destroy + description: Delete a manufacturer object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power feed. + description: A unique integer value identifying this manufacturer. required: true tags: - dcim @@ -35947,34 +53373,10 @@ paths: responses: '204': description: No response body - /api/dcim/power-feeds/{id}/trace/: - get: - operationId: dcim_power_feeds_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power feed. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerFeed' - description: '' - /api/dcim/power-outlet-templates/: + /api/dcim/module-bay-templates/: get: - operationId: dcim_power_outlet_templates_list - description: Get a list of power outlet template objects. + operationId: dcim_module_bay_templates_list + description: Get a list of module bay template objects. parameters: - in: query name: created @@ -36148,46 +53550,6 @@ paths: description: Device type (ID) explode: true style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: feed_leg - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) - explode: true - style: form - - in: query - name: feed_leg__n - schema: - type: array - items: - type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) - explode: true - style: form - in: query name: id schema: @@ -36424,26 +53786,6 @@ paths: description: Module type (ID) explode: true style: form - - in: query - name: moduletype_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: moduletype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - in: query name: name schema: @@ -36541,194 +53883,94 @@ paths: schema: type: string - in: query - name: power_port_id + name: position schema: type: array items: - type: integer - nullable: true - description: Power port (ID) + type: string explode: true style: form - in: query - name: power_port_id__n + name: position__empty + schema: + type: boolean + - in: query + name: position__ic schema: type: array items: - type: integer - nullable: true - description: Power port (ID) + type: string explode: true style: form - in: query - name: q + name: position__ie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: type + name: position__iew schema: - type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + type: array + items: + type: string + explode: true + style: form - in: query - name: type__n + name: position__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: q schema: type: string - x-spec-enum-id: 2ff919f516566857 - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - ITA/International - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', - ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', - ''C19''), (''iec-60320-c21'', ''C21'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', - ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA - 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), - (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', - ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA - 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA - 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA - 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA - 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA - 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] - - * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', - ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', - ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', - ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', - ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', - ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', - ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', - ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', - ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', - ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', - ''NEMA L21-30R''), (''nema-l22-30r'', ''NEMA L22-30R'')] - - * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), - (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), - (''CS8464C'', ''CS8464C'')] - - * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', - ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O''), (''ita-multistandard'', ''ITA Multistandard'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), - (''usb-c'', ''USB Type C'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''hdot-cx'', ''HDOT Cx''), (''saf-d-grid'', ''Saf-D-Grid''), - (''neutrik-powercon-20a'', ''Neutrik powerCON (20A)''), (''neutrik-powercon-32a'', - ''Neutrik powerCON (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON - TRUE1''), (''neutrik-powercon-true1-top'', ''Neutrik powerCON TRUE1 TOP''), - (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + description: Search - in: query name: updated_by_request schema: @@ -36744,21 +53986,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' + $ref: '#/components/schemas/PaginatedModuleBayTemplateList' description: '' post: - operationId: dcim_power_outlet_templates_create - description: Post a list of power outlet template objects. + operationId: dcim_module_bay_templates_create + description: Post a list of module bay template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -36768,11 +54010,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_power_outlet_templates_bulk_update - description: Put a list of power outlet template objects. + operationId: dcim_module_bay_templates_bulk_update + description: Put a list of module bay template objects. tags: - dcim requestBody: @@ -36781,12 +54023,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -36798,11 +54040,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_power_outlet_templates_bulk_partial_update - description: Patch a list of power outlet template objects. + operationId: dcim_module_bay_templates_bulk_partial_update + description: Patch a list of module bay template objects. tags: - dcim requestBody: @@ -36811,12 +54053,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -36828,11 +54070,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_power_outlet_templates_bulk_destroy - description: Delete a list of power outlet template objects. + operationId: dcim_module_bay_templates_bulk_destroy + description: Delete a list of module bay template objects. tags: - dcim requestBody: @@ -36841,12 +54083,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -36854,16 +54096,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlet-templates/{id}/: + /api/dcim/module-bay-templates/{id}/: get: - operationId: dcim_power_outlet_templates_retrieve - description: Get a power outlet template object. + operationId: dcim_module_bay_templates_retrieve + description: Get a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -36875,17 +54117,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' put: - operationId: dcim_power_outlet_templates_update - description: Put a power outlet template object. + operationId: dcim_module_bay_templates_update + description: Put a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -36893,10 +54135,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/ModuleBayTemplateRequest' required: true security: - cookieAuth: [] @@ -36906,17 +54148,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' patch: - operationId: dcim_power_outlet_templates_partial_update - description: Patch a power outlet template object. + operationId: dcim_module_bay_templates_partial_update + description: Patch a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -36924,10 +54166,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' + $ref: '#/components/schemas/PatchedModuleBayTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -36936,17 +54178,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutletTemplate' + $ref: '#/components/schemas/ModuleBayTemplate' description: '' delete: - operationId: dcim_power_outlet_templates_destroy - description: Delete a power outlet template object. + operationId: dcim_module_bay_templates_destroy + description: Delete a module bay template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet template. + description: A unique integer value identifying this module bay template. required: true tags: - dcim @@ -36956,81 +54198,31 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/: + /api/dcim/module-bays/: get: - operationId: dcim_power_outlets_list - description: Get a list of power outlet objects. + operationId: dcim_module_bays_list + description: Get a list of module bay objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id + name: created schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cable_id__n + name: created__empty schema: type: array items: - type: integer - nullable: true - description: Cable (ID) + type: string + format: date-time explode: true style: form - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt + name: created__gt schema: type: array items: @@ -37202,59 +54394,358 @@ paths: explode: true style: form - in: query - name: device_type + name: device_role schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type__n + name: device_role__n schema: type: array items: type: string - description: Device type (model) + description: Device role (slug) explode: true style: form - in: query - name: device_type_id + name: device_role_id schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: device_type_id__n + name: device_role_id__n schema: type: array items: type: integer - description: Device type (ID) + description: Device role (ID) explode: true style: form - in: query - name: feed_leg + name: device_status schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: feed_leg__n + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic schema: type: array items: type: string - x-spec-enum-id: a4902339df0b7c06 - description: Phase (for three-phase feeds) + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) explode: true style: form - in: query @@ -37315,6 +54806,24 @@ paths: format: int32 explode: true style: form + - in: query + name: installed_module_id + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form + - in: query + name: installed_module_id__n + schema: + type: array + items: + type: integer + description: Installed module (ID) + explode: true + style: form - in: query name: label schema: @@ -37504,10 +55013,6 @@ paths: description: Location (ID) explode: true style: form - - in: query - name: mark_connected - schema: - type: boolean - in: query name: modified_by_request schema: @@ -37617,10 +55122,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -37634,23 +55135,107 @@ paths: schema: type: string - in: query - name: power_port_id + name: parent_id schema: type: array items: type: integer nullable: true - description: Power port (ID) + description: Parent module bay (ID) explode: true style: form - in: query - name: power_port_id__n + name: parent_id__n schema: type: array items: type: integer nullable: true - description: Power port (ID) + description: Parent module bay (ID) + explode: true + style: form + - in: query + name: position + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__empty + schema: + type: boolean + - in: query + name: position__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: position__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -37699,8 +55284,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -37708,62 +55292,23 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: region_id__n schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query @@ -37789,8 +55334,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -37798,8 +55342,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -37807,8 +55350,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -37816,8 +55358,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -37854,26 +55395,6 @@ paths: type: string explode: true style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 2ff919f516566857 - description: Physical port type - explode: true - style: form - in: query name: updated_by_request schema: @@ -37925,21 +55446,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerOutletList' + $ref: '#/components/schemas/PaginatedModuleBayList' description: '' post: - operationId: dcim_power_outlets_create - description: Post a list of power outlet objects. + operationId: dcim_module_bays_create + description: Post a list of module bay objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -37949,11 +55470,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_power_outlets_bulk_update - description: Put a list of power outlet objects. + operationId: dcim_module_bays_bulk_update + description: Put a list of module bay objects. tags: - dcim requestBody: @@ -37962,12 +55483,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -37979,11 +55500,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_power_outlets_bulk_partial_update - description: Patch a list of power outlet objects. + operationId: dcim_module_bays_bulk_partial_update + description: Patch a list of module bay objects. tags: - dcim requestBody: @@ -37992,12 +55513,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -38009,11 +55530,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_power_outlets_bulk_destroy - description: Delete a list of power outlet objects. + operationId: dcim_module_bays_bulk_destroy + description: Delete a list of module bay objects. tags: - dcim requestBody: @@ -38022,12 +55543,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -38035,16 +55556,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/: + /api/dcim/module-bays/{id}/: get: - operationId: dcim_power_outlets_retrieve - description: Get a power outlet object. + operationId: dcim_module_bays_retrieve + description: Get a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -38056,17 +55577,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/ModuleBay' description: '' put: - operationId: dcim_power_outlets_update - description: Put a power outlet object. + operationId: dcim_module_bays_update + description: Put a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -38074,10 +55595,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerOutletRequest' + $ref: '#/components/schemas/ModuleBayRequest' required: true security: - cookieAuth: [] @@ -38087,17 +55608,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/ModuleBay' description: '' patch: - operationId: dcim_power_outlets_partial_update - description: Patch a power outlet object. + operationId: dcim_module_bays_partial_update + description: Patch a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -38105,10 +55626,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' + $ref: '#/components/schemas/PatchedModuleBayRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38117,17 +55638,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerOutlet' + $ref: '#/components/schemas/ModuleBay' description: '' delete: - operationId: dcim_power_outlets_destroy - description: Delete a power outlet object. + operationId: dcim_module_bays_destroy + description: Delete a module bay object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power outlet. + description: A unique integer value identifying this module bay. required: true tags: - dcim @@ -38137,89 +55658,44 @@ paths: responses: '204': description: No response body - /api/dcim/power-outlets/{id}/trace/: - get: - operationId: dcim_power_outlets_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this power outlet. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerOutlet' - description: '' - /api/dcim/power-panels/: + /api/dcim/module-types/: get: - operationId: dcim_power_panels_list - description: Get a list of power panel objects. + operationId: dcim_module_types_list + description: Get a list of module type objects. parameters: - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n + name: airflow schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: string + x-spec-enum-id: f6e5562e0e98d69d + enum: + - front-to-rear + - left-to-right + - passive + - rear-to-front + - right-to-left + - side-to-rear + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' - in: query - name: contact_role + name: console_ports schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean + description: Has console ports - in: query - name: contact_role__n + name: console_server_ports schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean + description: Has console server ports - in: query name: created schema: @@ -38430,6 +55906,11 @@ paths: format: int32 explode: true style: form + - in: query + name: interfaces + schema: + type: boolean + description: Has interfaces - in: query name: last_updated schema: @@ -38500,30 +55981,43 @@ paths: schema: type: integer - in: query - name: location_id + name: manufacturer schema: type: array items: - type: integer - description: Location (ID) + type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: location_id__n + name: manufacturer__n + schema: + type: array + items: + type: string + description: Manufacturer (slug) + explode: true + style: form + - in: query + name: manufacturer_id schema: type: array items: type: integer - description: Location (ID) + description: Manufacturer (ID) explode: true style: form - in: query - name: modified_by_request + name: manufacturer_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + description: Manufacturer (ID) + explode: true + style: form - in: query - name: name + name: model schema: type: array items: @@ -38531,11 +56025,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: model__empty schema: type: boolean - in: query - name: name__ic + name: model__ic schema: type: array items: @@ -38543,7 +56037,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: model__ie schema: type: array items: @@ -38551,7 +56045,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: model__iew schema: type: array items: @@ -38559,7 +56053,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: model__isw schema: type: array items: @@ -38567,7 +56061,7 @@ paths: explode: true style: form - in: query - name: name__n + name: model__n schema: type: array items: @@ -38575,7 +56069,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: model__nic schema: type: array items: @@ -38583,7 +56077,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: model__nie schema: type: array items: @@ -38591,7 +56085,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: model__niew schema: type: array items: @@ -38599,13 +56093,18 @@ paths: explode: true style: form - in: query - name: name__nisw + name: model__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -38619,139 +56118,205 @@ paths: schema: type: string - in: query - name: q + name: part_number schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: region + name: part_number__empty + schema: + type: boolean + - in: query + name: part_number__ic schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region__n + name: part_number__ie schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query - name: region_id + name: part_number__iew schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: part_number__isw schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: site + name: part_number__n schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: part_number__nic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site_group + name: part_number__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: part_number__niew schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: part_number__nisw schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_group_id__n + name: pass_through_ports + schema: + type: boolean + description: Has pass-through ports + - in: query + name: power_outlets + schema: + type: boolean + description: Has power outlets + - in: query + name: power_ports + schema: + type: boolean + description: Has power ports + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: tag__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: integer - description: Site (ID) + type: number + format: double explode: true style: form - in: query - name: tag + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: tag__n + name: weight__gte schema: type: array items: - type: string + type: number + format: double explode: true style: form - in: query - name: updated_by_request + name: weight__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight_unit schema: type: string - format: uuid + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' tags: - dcim security: @@ -38762,21 +56327,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPanelList' + $ref: '#/components/schemas/PaginatedModuleTypeList' description: '' post: - operationId: dcim_power_panels_create - description: Post a list of power panel objects. + operationId: dcim_module_types_create + description: Post a list of module type objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -38786,11 +56351,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_panels_bulk_update - description: Put a list of power panel objects. + operationId: dcim_module_types_bulk_update + description: Put a list of module type objects. tags: - dcim requestBody: @@ -38799,12 +56364,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -38816,11 +56381,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_panels_bulk_partial_update - description: Patch a list of power panel objects. + operationId: dcim_module_types_bulk_partial_update + description: Patch a list of module type objects. tags: - dcim requestBody: @@ -38829,12 +56394,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -38846,11 +56411,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_panels_bulk_destroy - description: Delete a list of power panel objects. + operationId: dcim_module_types_bulk_destroy + description: Delete a list of module type objects. tags: - dcim requestBody: @@ -38859,12 +56424,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/ModuleTypeRequest' required: true security: - cookieAuth: [] @@ -38872,16 +56437,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-panels/{id}/: + /api/dcim/module-types/{id}/: get: - operationId: dcim_power_panels_retrieve - description: Get a power panel object. + operationId: dcim_module_types_retrieve + description: Get a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -38893,17 +56458,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleType' description: '' put: - operationId: dcim_power_panels_update - description: Put a power panel object. + operationId: dcim_module_types_update + description: Put a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -38911,10 +56476,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/WritableModuleTypeRequest' required: true security: - cookieAuth: [] @@ -38924,17 +56489,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleType' description: '' patch: - operationId: dcim_power_panels_partial_update - description: Patch a power panel object. + operationId: dcim_module_types_partial_update + description: Patch a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -38942,10 +56507,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedPowerPanelRequest' + $ref: '#/components/schemas/PatchedWritableModuleTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -38954,17 +56519,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPanel' + $ref: '#/components/schemas/ModuleType' description: '' delete: - operationId: dcim_power_panels_destroy - description: Delete a power panel object. + operationId: dcim_module_types_destroy + description: Delete a module type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power panel. + description: A unique integer value identifying this module type. required: true tags: - dcim @@ -38974,67 +56539,93 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/: + /api/dcim/modules/: get: - operationId: dcim_power_port_templates_list - description: Get a list of power port template objects. + operationId: dcim_modules_list + description: Get a list of module objects. parameters: - in: query - name: allocated_draw + name: asset_tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__empty + name: asset_tag__empty schema: type: boolean - in: query - name: allocated_draw__gt + name: asset_tag__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__gte + name: asset_tag__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__lt + name: asset_tag__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__lte + name: asset_tag__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: allocated_draw__n + name: asset_tag__n schema: type: array items: - type: integer - format: int32 + type: string + explode: true + style: form + - in: query + name: asset_tag__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: asset_tag__nisw + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -39190,43 +56781,21 @@ paths: explode: true style: form - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id + name: device_id schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query - name: devicetype_id__n + name: device_id__n schema: type: array items: type: integer - nullable: true - description: Device type (ID) + description: Device (ID) explode: true style: form - in: query @@ -39288,532 +56857,540 @@ paths: explode: true style: form - in: query - name: label + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__ie + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__iew + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__isw + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__n + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: label__nic + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: label__nie + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__niew + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: label__nisw + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: last_updated + name: manufacturer_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: last_updated__empty + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_bay_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: module_bay_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: module_type schema: type: array items: type: string - format: date-time + description: Module type (model) explode: true style: form - in: query - name: last_updated__lt + name: module_type__n schema: type: array items: type: string - format: date-time + description: Module type (model) explode: true style: form - in: query - name: last_updated__lte + name: module_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Module type (ID) explode: true style: form - in: query - name: last_updated__n + name: module_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Module type (ID) explode: true style: form - - name: limit + - name: offset required: false in: query - description: Number of results to return per page. + description: The initial index from which to return the results. schema: type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: maximum_draw + name: q + schema: + type: string + description: Search + - in: query + name: serial schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__empty + name: serial__empty schema: type: boolean - in: query - name: maximum_draw__gt + name: serial__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__gte + name: serial__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__lt + name: serial__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__lte + name: serial__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: maximum_draw__n + name: serial__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_type_id + name: serial__nic schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: module_type_id__n + name: serial__nie schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: serial__niew schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id__n + name: serial__nisw schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: name + name: status schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: name__empty + name: status__empty schema: type: boolean - in: query - name: name__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: name__nisw + name: status__nisw schema: type: array items: type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: type - schema: - type: string - x-spec-enum-id: 6d680dea031864ae - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - International/ITA - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] - - * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] - - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] - - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O'')] + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + * `active` - Active - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + * `planned` - Planned - * `DC` - [(''dc-terminal'', ''DC Terminal'')] + * `staged` - Staged - * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + * `failed` - Failed - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: type__n + name: tag schema: - type: string - x-spec-enum-id: 6d680dea031864ae - enum: - - California Style - - DC - - IEC 60309 - - IEC 60320 - - IEC 60906-1 - - International/ITA - - Molex - - NEMA (Locking) - - NEMA (Non-locking) - - Other - - Proprietary - - USB - description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', - ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', - ''C20''), (''iec-60320-c22'', ''C22'')] - - * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', - ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', - ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', - ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', - ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', - ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', - ''3P+N+E 9H'')] - - * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', - ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] - - * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', - ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA - 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), - (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', - ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA - 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA - 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA - 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA - 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA - 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] - - * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', - ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', - ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', - ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', - ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', - ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', - ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', - ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', - ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', - ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', - ''NEMA L21-30P''), (''nema-l22-30p'', ''NEMA L22-30P'')] - - * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), - (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), - (''cs8465c'', ''CS8465C'')] - - * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', - ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', - ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', - ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), - (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', - ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA - Type O'')] - - * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', - ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB - Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro - B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type - B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] - - * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', - ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] - - * `DC` - [(''dc-terminal'', ''DC Terminal'')] - - * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', - ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON - (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', - ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] - - * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: @@ -39829,21 +57406,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortTemplateList' + $ref: '#/components/schemas/PaginatedModuleList' description: '' post: - operationId: dcim_power_port_templates_create - description: Post a list of power port template objects. + operationId: dcim_modules_create + description: Post a list of module objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -39853,11 +57430,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_power_port_templates_bulk_update - description: Put a list of power port template objects. + operationId: dcim_modules_bulk_update + description: Put a list of module objects. tags: - dcim requestBody: @@ -39866,12 +57443,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -39883,11 +57460,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_power_port_templates_bulk_partial_update - description: Patch a list of power port template objects. + operationId: dcim_modules_bulk_partial_update + description: Patch a list of module objects. tags: - dcim requestBody: @@ -39896,12 +57473,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -39913,11 +57490,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_power_port_templates_bulk_destroy - description: Delete a list of power port template objects. + operationId: dcim_modules_bulk_destroy + description: Delete a list of module objects. tags: - dcim requestBody: @@ -39926,12 +57503,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortTemplateRequest' + $ref: '#/components/schemas/ModuleRequest' required: true security: - cookieAuth: [] @@ -39939,16 +57516,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-port-templates/{id}/: + /api/dcim/modules/{id}/: get: - operationId: dcim_power_port_templates_retrieve - description: Get a power port template object. + operationId: dcim_modules_retrieve + description: Get a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -39960,17 +57537,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/Module' description: '' put: - operationId: dcim_power_port_templates_update - description: Put a power port template object. + operationId: dcim_modules_update + description: Put a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -39978,10 +57555,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortTemplateRequest' + $ref: '#/components/schemas/WritableModuleRequest' required: true security: - cookieAuth: [] @@ -39991,17 +57568,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/Module' description: '' patch: - operationId: dcim_power_port_templates_partial_update - description: Patch a power port template object. + operationId: dcim_modules_partial_update + description: Patch a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -40009,10 +57586,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' + $ref: '#/components/schemas/PatchedWritableModuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -40021,17 +57598,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPortTemplate' + $ref: '#/components/schemas/Module' description: '' delete: - operationId: dcim_power_port_templates_destroy - description: Delete a power port template object. + operationId: dcim_modules_destroy + description: Delete a module object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port template. + description: A unique integer value identifying this module. required: true tags: - dcim @@ -40041,119 +57618,35 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/: + /api/dcim/platforms/: get: - operationId: dcim_power_ports_list - description: Get a list of power port objects. + operationId: dcim_platforms_list + description: Get a list of platform objects. parameters: - in: query - name: allocated_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__empty - schema: - type: boolean - - in: query - name: allocated_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: allocated_draw__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n + name: available_for_device_type schema: type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - in: query - name: cable_id + name: config_template_id schema: type: array items: type: integer nullable: true - description: Cable (ID) + description: Config template (ID) explode: true style: form - in: query - name: cable_id__n + name: config_template_id__n schema: type: array items: type: integer nullable: true - description: Cable (ID) + description: Config template (ID) explode: true style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: connected - schema: - type: boolean - in: query name: created schema: @@ -40306,80 +57799,6 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -40438,90 +57857,6 @@ paths: format: int32 explode: true style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: last_updated schema: @@ -40592,101 +57927,39 @@ paths: schema: type: integer - in: query - name: location + name: manufacturer schema: type: array items: type: string - description: Location (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: location__n + name: manufacturer__n schema: type: array items: type: string - description: Location (slug) - explode: true - style: form - - in: query - name: location_id - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: location_id__n - schema: - type: array - items: - type: integer - description: Location (ID) - explode: true - style: form - - in: query - name: mark_connected - schema: - type: boolean - - in: query - name: maximum_draw - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__empty - schema: - type: boolean - - in: query - name: maximum_draw__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: maximum_draw__lt - schema: - type: array - items: - type: integer - format: int32 + description: Manufacturer (slug) explode: true style: form - in: query - name: maximum_draw__lte + name: manufacturer_id schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query - name: maximum_draw__n + name: manufacturer_id__n schema: type: array items: type: integer - format: int32 + description: Manufacturer (ID) explode: true style: form - in: query @@ -40694,26 +57967,6 @@ paths: schema: type: string format: uuid - - in: query - name: module_id - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - - in: query - name: module_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Module (ID) - explode: true - style: form - in: query name: name schema: @@ -40798,10 +58051,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -40820,187 +58069,75 @@ paths: type: string description: Search - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n + name: slug schema: type: array items: type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) explode: true style: form - in: query - name: region_id__n + name: slug__empty schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: boolean - in: query - name: role + name: slug__ic schema: type: array items: type: string - description: Device role (slug) explode: true style: form - in: query - name: role__n + name: slug__ie schema: type: array items: type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) explode: true style: form - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: site + name: slug__iew schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__isw schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) explode: true style: form - in: query - name: site_group_id__n + name: slug__n schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: slug__nic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__nie schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: slug__niew schema: type: array items: @@ -41008,7 +58145,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nisw schema: type: array items: @@ -41016,23 +58153,19 @@ paths: explode: true style: form - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: 6d680dea031864ae - description: Physical port type explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: 6d680dea031864ae - description: Physical port type explode: true style: form - in: query @@ -41040,42 +58173,6 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -41086,21 +58183,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPowerPortList' + $ref: '#/components/schemas/PaginatedPlatformList' description: '' post: - operationId: dcim_power_ports_create - description: Post a list of power port objects. + operationId: dcim_platforms_create + description: Post a list of platform objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -41110,11 +58207,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_power_ports_bulk_update - description: Put a list of power port objects. + operationId: dcim_platforms_bulk_update + description: Put a list of platform objects. tags: - dcim requestBody: @@ -41123,12 +58220,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -41140,11 +58237,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_power_ports_bulk_partial_update - description: Patch a list of power port objects. + operationId: dcim_platforms_bulk_partial_update + description: Patch a list of platform objects. tags: - dcim requestBody: @@ -41153,12 +58250,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -41170,11 +58267,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_power_ports_bulk_destroy - description: Delete a list of power port objects. + operationId: dcim_platforms_bulk_destroy + description: Delete a list of platform objects. tags: - dcim requestBody: @@ -41183,12 +58280,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -41196,16 +58293,16 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/: + /api/dcim/platforms/{id}/: get: - operationId: dcim_power_ports_retrieve - description: Get a power port object. + operationId: dcim_platforms_retrieve + description: Get a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -41217,17 +58314,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/Platform' description: '' put: - operationId: dcim_power_ports_update - description: Put a power port object. + operationId: dcim_platforms_update + description: Put a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -41235,10 +58332,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePowerPortRequest' + $ref: '#/components/schemas/PlatformRequest' required: true security: - cookieAuth: [] @@ -41248,17 +58345,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/Platform' description: '' patch: - operationId: dcim_power_ports_partial_update - description: Patch a power port object. + operationId: dcim_platforms_partial_update + description: Patch a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -41266,10 +58363,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePowerPortRequest' + $ref: '#/components/schemas/PatchedPlatformRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -41278,17 +58375,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PowerPort' + $ref: '#/components/schemas/Platform' description: '' delete: - operationId: dcim_power_ports_destroy - description: Delete a power port object. + operationId: dcim_platforms_destroy + description: Delete a platform object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this power port. + description: A unique integer value identifying this platform. required: true tags: - dcim @@ -41298,35 +58395,166 @@ paths: responses: '204': description: No response body - /api/dcim/power-ports/{id}/trace/: + /api/dcim/power-feeds/: get: - operationId: dcim_power_ports_trace_retrieve - description: Trace a complete cable path and return each segment as a three-tuple - of (termination, cable, termination). + operationId: dcim_power_feeds_list + description: Get a list of power feed objects. parameters: - - in: path - name: id + - in: query + name: amperage schema: - type: integer - description: A unique integer value identifying this power port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PowerPort' - description: '' - /api/dcim/rack-reservations/: - get: - operationId: dcim_rack_reservations_list - description: Get a list of rack reservation objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__empty + schema: + type: boolean + - in: query + name: amperage__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: amperage__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__empty + schema: + type: boolean + - in: query + name: available_power__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: available_power__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: cable_end + schema: + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' + - in: query + name: cable_id + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cable_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Cable (ID) + explode: true + style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -41607,39 +58835,65 @@ paths: schema: type: integer - in: query - name: location + name: mark_connected + schema: + type: boolean + - in: query + name: max_utilization schema: type: array items: type: integer - description: Location (slug) + format: int32 explode: true style: form - in: query - name: location__n + name: max_utilization__empty + schema: + type: boolean + - in: query + name: max_utilization__gt schema: type: array items: type: integer - description: Location (slug) + format: int32 explode: true style: form - in: query - name: location_id + name: max_utilization__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: max_utilization__lt schema: type: array items: type: integer - description: Location (ID) + format: int32 + explode: true + style: form + - in: query + name: max_utilization__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: max_utilization__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -41647,6 +58901,94 @@ paths: schema: type: string format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: occupied + schema: + type: boolean - name: offset required: false in: query @@ -41659,6 +59001,35 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: phase + schema: + type: string + x-spec-enum-id: 994bc0696f4df57f + enum: + - single-phase + - three-phase + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + - in: query + name: power_panel_id + schema: + type: array + items: + type: integer + description: Power panel (ID) + explode: true + style: form + - in: query + name: power_panel_id__n + schema: + type: array + items: + type: integer + description: Power panel (ID) + explode: true + style: form - in: query name: q schema: @@ -41687,8 +59058,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -41696,8 +59066,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -41705,8 +59074,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -41714,8 +59082,7 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query @@ -41724,7 +59091,7 @@ paths: type: array items: type: string - description: Site (slug) + description: Site name (slug) explode: true style: form - in: query @@ -41733,7 +59100,7 @@ paths: type: array items: type: string - description: Site (slug) + description: Site name (slug) explode: true style: form - in: query @@ -41741,8 +59108,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -41750,8 +59116,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -41759,8 +59124,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -41768,8 +59132,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -41790,6 +59153,219 @@ paths: description: Site (ID) explode: true style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: b77fc919138c12f6 + enum: + - active + - failed + - offline + - planned + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + explode: true + style: form + - in: query + name: supply + schema: + type: string + x-spec-enum-id: 1b6d99616ca6412b + enum: + - ac + - dc + description: '* `ac` - AC + + * `dc` - DC' - in: query name: tag schema: @@ -41829,8 +59405,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -41838,8 +59413,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -41847,8 +59421,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -41856,8 +59429,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -41881,48 +59453,77 @@ paths: explode: true style: form - in: query - name: unit + name: type schema: - type: number + type: string + x-spec-enum-id: 093a164236819eb8 + enum: + - primary + - redundant + description: '* `primary` - Primary + + * `redundant` - Redundant' - in: query name: updated_by_request schema: type: string format: uuid - in: query - name: user + name: voltage schema: type: array items: - type: string - description: User (name) + type: integer + format: int32 explode: true style: form - in: query - name: user__n + name: voltage__empty + schema: + type: boolean + - in: query + name: voltage__gt schema: type: array items: - type: string - description: User (name) + type: integer + format: int32 explode: true style: form - in: query - name: user_id + name: voltage__gte schema: type: array items: type: integer - description: User (ID) + format: int32 explode: true style: form - in: query - name: user_id__n + name: voltage__lt schema: type: array items: type: integer - description: User (ID) + format: int32 + explode: true + style: form + - in: query + name: voltage__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: voltage__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form tags: @@ -41935,21 +59536,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackReservationList' + $ref: '#/components/schemas/PaginatedPowerFeedList' description: '' post: - operationId: dcim_rack_reservations_create - description: Post a list of rack reservation objects. + operationId: dcim_power_feeds_create + description: Post a list of power feed objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -41959,11 +59560,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_rack_reservations_bulk_update - description: Put a list of rack reservation objects. + operationId: dcim_power_feeds_bulk_update + description: Put a list of power feed objects. tags: - dcim requestBody: @@ -41972,12 +59573,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -41989,11 +59590,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_rack_reservations_bulk_partial_update - description: Patch a list of rack reservation objects. + operationId: dcim_power_feeds_bulk_partial_update + description: Patch a list of power feed objects. tags: - dcim requestBody: @@ -42002,12 +59603,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -42019,11 +59620,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_rack_reservations_bulk_destroy - description: Delete a list of rack reservation objects. + operationId: dcim_power_feeds_bulk_destroy + description: Delete a list of power feed objects. tags: - dcim requestBody: @@ -42032,12 +59633,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerFeedRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/PowerFeedRequest' required: true security: - cookieAuth: [] @@ -42045,16 +59646,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-reservations/{id}/: + /api/dcim/power-feeds/{id}/: get: - operationId: dcim_rack_reservations_retrieve - description: Get a rack reservation object. + operationId: dcim_power_feeds_retrieve + description: Get a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -42066,17 +59667,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerFeed' description: '' put: - operationId: dcim_rack_reservations_update - description: Put a rack reservation object. + operationId: dcim_power_feeds_update + description: Put a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -42084,10 +59685,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackReservationRequest' + $ref: '#/components/schemas/WritablePowerFeedRequest' required: true security: - cookieAuth: [] @@ -42097,17 +59698,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerFeed' description: '' patch: - operationId: dcim_rack_reservations_partial_update - description: Patch a rack reservation object. + operationId: dcim_power_feeds_partial_update + description: Patch a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -42115,10 +59716,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackReservationRequest' + $ref: '#/components/schemas/PatchedWritablePowerFeedRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42127,17 +59728,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackReservation' + $ref: '#/components/schemas/PowerFeed' description: '' delete: - operationId: dcim_rack_reservations_destroy - description: Delete a rack reservation object. + operationId: dcim_power_feeds_destroy + description: Delete a power feed object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack reservation. + description: A unique integer value identifying this power feed. required: true tags: - dcim @@ -42147,65 +59748,105 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/: + /api/dcim/power-feeds/{id}/trace/: get: - operationId: dcim_rack_roles_list - description: Get a list of rack role objects. + operationId: dcim_power_feeds_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this power feed. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerFeed' + description: '' + /api/dcim/power-outlet-templates/: + get: + operationId: dcim_power_outlet_templates_list + description: Get a list of power outlet template objects. parameters: - in: query - name: color + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: color__ic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__ie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__iew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__isw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__n + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: color__nic + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -42213,7 +59854,11 @@ paths: explode: true style: form - in: query - name: color__nie + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -42221,7 +59866,7 @@ paths: explode: true style: form - in: query - name: color__niew + name: description__ie schema: type: array items: @@ -42229,7 +59874,7 @@ paths: explode: true style: form - in: query - name: color__nisw + name: description__iew schema: type: array items: @@ -42237,155 +59882,283 @@ paths: explode: true style: form - in: query - name: created + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Device type (ID) explode: true style: form - in: query - name: created_by_request + name: device_type_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query - name: description + name: feed_leg schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - in: query - name: description__empty + name: feed_leg__empty schema: type: boolean - in: query - name: description__ic + name: feed_leg__ic schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__ie + name: feed_leg__ie schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__iew + name: feed_leg__iew schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__isw + name: feed_leg__isw schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__n + name: feed_leg__n schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__nic + name: feed_leg__nic schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__nie + name: feed_leg__nie schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__niew + name: feed_leg__niew schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: description__nisw + name: feed_leg__nisw schema: type: array items: type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query @@ -42447,81 +60220,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -42529,11 +60288,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -42541,7 +60296,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -42549,92 +60304,101 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: modified_by_request schema: type: string - description: Search + format: uuid - in: query - name: slug + name: module_type_id schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: slug__empty + name: module_type_id__n schema: - type: boolean + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query - name: slug__ic + name: name schema: type: array items: @@ -42642,7 +60406,11 @@ paths: explode: true style: form - in: query - name: slug__ie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -42650,7 +60418,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__ie schema: type: array items: @@ -42658,7 +60426,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__iew schema: type: array items: @@ -42666,7 +60434,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__isw schema: type: array items: @@ -42674,7 +60442,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__n schema: type: array items: @@ -42682,7 +60450,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__nic schema: type: array items: @@ -42690,7 +60458,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__nie schema: type: array items: @@ -42698,7 +60466,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__niew schema: type: array items: @@ -42706,21 +60474,133 @@ paths: explode: true style: form - in: query - name: tag + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tag__n + name: power_port_id schema: type: array items: - type: string + type: integer + nullable: true + description: Power port (ID) explode: true style: form + - in: query + name: power_port_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Power port (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: type + schema: + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - ITA/International + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c5'', ''C5''), (''iec-60320-c7'', + ''C7''), (''iec-60320-c13'', ''C13''), (''iec-60320-c15'', ''C15''), (''iec-60320-c19'', + ''C19''), (''iec-60320-c21'', ''C21'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15r'', ''NEMA 1-15R''), (''nema-5-15r'', + ''NEMA 5-15R''), (''nema-5-20r'', ''NEMA 5-20R''), (''nema-5-30r'', ''NEMA + 5-30R''), (''nema-5-50r'', ''NEMA 5-50R''), (''nema-6-15r'', ''NEMA 6-15R''), + (''nema-6-20r'', ''NEMA 6-20R''), (''nema-6-30r'', ''NEMA 6-30R''), (''nema-6-50r'', + ''NEMA 6-50R''), (''nema-10-30r'', ''NEMA 10-30R''), (''nema-10-50r'', ''NEMA + 10-50R''), (''nema-14-20r'', ''NEMA 14-20R''), (''nema-14-30r'', ''NEMA + 14-30R''), (''nema-14-50r'', ''NEMA 14-50R''), (''nema-14-60r'', ''NEMA + 14-60R''), (''nema-15-15r'', ''NEMA 15-15R''), (''nema-15-20r'', ''NEMA + 15-20R''), (''nema-15-30r'', ''NEMA 15-30R''), (''nema-15-50r'', ''NEMA + 15-50R''), (''nema-15-60r'', ''NEMA 15-60R'')] + + * `NEMA (Locking)` - [(''nema-l1-15r'', ''NEMA L1-15R''), (''nema-l5-15r'', + ''NEMA L5-15R''), (''nema-l5-20r'', ''NEMA L5-20R''), (''nema-l5-30r'', + ''NEMA L5-30R''), (''nema-l5-50r'', ''NEMA L5-50R''), (''nema-l6-15r'', + ''NEMA L6-15R''), (''nema-l6-20r'', ''NEMA L6-20R''), (''nema-l6-30r'', + ''NEMA L6-30R''), (''nema-l6-50r'', ''NEMA L6-50R''), (''nema-l10-30r'', + ''NEMA L10-30R''), (''nema-l14-20r'', ''NEMA L14-20R''), (''nema-l14-30r'', + ''NEMA L14-30R''), (''nema-l14-50r'', ''NEMA L14-50R''), (''nema-l14-60r'', + ''NEMA L14-60R''), (''nema-l15-20r'', ''NEMA L15-20R''), (''nema-l15-30r'', + ''NEMA L15-30R''), (''nema-l15-50r'', ''NEMA L15-50R''), (''nema-l15-60r'', + ''NEMA L15-60R''), (''nema-l21-20r'', ''NEMA L21-20R''), (''nema-l21-30r'', + ''NEMA L21-30R''), (''nema-l22-20r'', ''NEMA L22-20R''), (''nema-l22-30r'', + ''NEMA L22-30R'')] + + * `California Style` - [(''CS6360C'', ''CS6360C''), (''CS6364C'', ''CS6364C''), + (''CS8164C'', ''CS8164C''), (''CS8264C'', ''CS8264C''), (''CS8364C'', ''CS8364C''), + (''CS8464C'', ''CS8464C'')] + + * `ITA/International` - [(''ita-e'', ''ITA Type E (CEE 7/5)''), (''ita-f'', + ''ITA Type F (CEE 7/3)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O''), (''ita-multistandard'', ''ITA Multistandard'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-micro-b'', ''USB Micro B''), + (''usb-c'', ''USB Type C'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''eaton-c39'', ''Eaton C39''), (''hdot-cx'', ''HDOT + Cx''), (''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20a'', ''Neutrik + powerCON (20A)''), (''neutrik-powercon-32a'', ''Neutrik powerCON (32A)''), + (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: @@ -42736,21 +60616,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackRoleList' + $ref: '#/components/schemas/PaginatedPowerOutletTemplateList' description: '' post: - operationId: dcim_rack_roles_create - description: Post a list of rack role objects. + operationId: dcim_power_outlet_templates_create + description: Post a list of power outlet template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -42760,11 +60640,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_rack_roles_bulk_update - description: Put a list of rack role objects. + operationId: dcim_power_outlet_templates_bulk_update + description: Put a list of power outlet template objects. tags: - dcim requestBody: @@ -42773,12 +60653,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -42790,11 +60670,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_rack_roles_bulk_partial_update - description: Patch a list of rack role objects. + operationId: dcim_power_outlet_templates_bulk_partial_update + description: Patch a list of power outlet template objects. tags: - dcim requestBody: @@ -42803,12 +60683,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -42820,11 +60700,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_rack_roles_bulk_destroy - description: Delete a list of rack role objects. + operationId: dcim_power_outlet_templates_bulk_destroy + description: Delete a list of power outlet template objects. tags: - dcim requestBody: @@ -42833,12 +60713,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/PowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -42846,16 +60726,16 @@ paths: responses: '204': description: No response body - /api/dcim/rack-roles/{id}/: + /api/dcim/power-outlet-templates/{id}/: get: - operationId: dcim_rack_roles_retrieve - description: Get a rack role object. + operationId: dcim_power_outlet_templates_retrieve + description: Get a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -42867,17 +60747,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' put: - operationId: dcim_rack_roles_update - description: Put a rack role object. + operationId: dcim_power_outlet_templates_update + description: Put a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -42885,10 +60765,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RackRoleRequest' + $ref: '#/components/schemas/WritablePowerOutletTemplateRequest' required: true security: - cookieAuth: [] @@ -42898,17 +60778,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' patch: - operationId: dcim_rack_roles_partial_update - description: Patch a rack role object. + operationId: dcim_power_outlet_templates_partial_update + description: Patch a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -42916,10 +60796,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRackRoleRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -42928,17 +60808,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RackRole' + $ref: '#/components/schemas/PowerOutletTemplate' description: '' delete: - operationId: dcim_rack_roles_destroy - description: Delete a rack role object. + operationId: dcim_power_outlet_templates_destroy + description: Delete a power outlet template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack role. + description: A unique integer value identifying this power outlet template. required: true tags: - dcim @@ -42948,149 +60828,50 @@ paths: responses: '204': description: No response body - /api/dcim/racks/: + /api/dcim/power-outlets/: get: - operationId: dcim_racks_list - description: Get a list of rack objects. + operationId: dcim_power_outlets_list + description: Get a list of power outlet objects. parameters: - in: query - name: asset_tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__empty - schema: - type: boolean - - in: query - name: asset_tag__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: asset_tag__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n + name: cable_end schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_group + name: cable_id schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_group__n + name: cable_id__n schema: type: array items: type: integer - description: Contact group + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role + name: cabled schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query - name: contact_role__n + name: connected schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: boolean - in: query name: created schema: @@ -43159,10 +60940,6 @@ paths: schema: type: string format: uuid - - in: query - name: desc_units - schema: - type: boolean - in: query name: description schema: @@ -43248,317 +61025,612 @@ paths: explode: true style: form - in: query - name: facility_id + name: device schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility_id__empty - schema: - type: boolean - - in: query - name: facility_id__ic + name: device__n schema: type: array items: type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: facility_id__ie + name: device_id schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility_id__iew + name: device_id__n schema: type: array items: - type: string + type: integer + description: Device (ID) explode: true style: form - in: query - name: facility_id__isw + name: device_role schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility_id__n + name: device_role__n schema: type: array items: type: string + description: Device role (slug) explode: true style: form - in: query - name: facility_id__nic + name: device_role_id schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: facility_id__nie + name: device_role_id__n schema: type: array items: - type: string + type: integer + description: Device role (ID) explode: true style: form - in: query - name: facility_id__niew + name: device_status schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: facility_id__nisw + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic schema: type: array items: type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id + name: device_status__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: device_status__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id__gte + name: device_status__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id__lt + name: device_status__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id__lte + name: device_status__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: id__n + name: device_status__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: last_updated + name: device_status__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: last_updated__empty + name: device_status__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: last_updated__gt + name: device_type schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__gte + name: device_type__n schema: type: array items: type: string - format: date-time + description: Device type (model) explode: true style: form - in: query - name: last_updated__lt + name: device_type_id schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__lte + name: device_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Device type (ID) explode: true style: form - in: query - name: last_updated__n + name: feed_leg schema: type: array items: type: string - format: date-time + x-spec-enum-id: a4902339df0b7c06 + description: Phase (for three-phase feeds) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: feed_leg__empty schema: - type: array - items: - type: integer - description: Location (slug) - explode: true - style: form + type: boolean - in: query - name: location__n + name: feed_leg__ic schema: type: array items: - type: integer - description: Location (slug) + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: location_id + name: feed_leg__ie schema: type: array items: - type: integer - description: Location (ID) + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: location_id__n + name: feed_leg__iew schema: type: array items: - type: integer - description: Location (ID) + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: max_weight + name: feed_leg__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: max_weight__empty - schema: - type: boolean - - in: query - name: max_weight__gt + name: feed_leg__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: max_weight__gte + name: feed_leg__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: max_weight__lt + name: feed_leg__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: max_weight__lte + name: feed_leg__niew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: max_weight__n + name: feed_leg__nisw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a4902339df0b7c06 + enum: + - '' + - A + - B + - C + description: 'Phase (for three-phase feeds) + + + * `A` - A + + * `B` - B + + * `C` - C' explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: mounting_depth + name: id schema: type: array items: @@ -43567,11 +61639,11 @@ paths: explode: true style: form - in: query - name: mounting_depth__empty + name: id__empty schema: type: boolean - in: query - name: mounting_depth__gt + name: id__gt schema: type: array items: @@ -43580,7 +61652,7 @@ paths: explode: true style: form - in: query - name: mounting_depth__gte + name: id__gte schema: type: array items: @@ -43589,7 +61661,7 @@ paths: explode: true style: form - in: query - name: mounting_depth__lt + name: id__lt schema: type: array items: @@ -43598,7 +61670,7 @@ paths: explode: true style: form - in: query - name: mounting_depth__lte + name: id__lte schema: type: array items: @@ -43607,7 +61679,7 @@ paths: explode: true style: form - in: query - name: mounting_depth__n + name: id__n schema: type: array items: @@ -43616,7 +61688,7 @@ paths: explode: true style: form - in: query - name: name + name: label schema: type: array items: @@ -43624,11 +61696,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: label__empty schema: type: boolean - in: query - name: name__ic + name: label__ic schema: type: array items: @@ -43636,7 +61708,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__ie schema: type: array items: @@ -43644,7 +61716,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: label__iew schema: type: array items: @@ -43652,7 +61724,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: label__isw schema: type: array items: @@ -43660,7 +61732,7 @@ paths: explode: true style: form - in: query - name: name__n + name: label__n schema: type: array items: @@ -43668,7 +61740,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: label__nic schema: type: array items: @@ -43676,7 +61748,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: label__nie schema: type: array items: @@ -43684,7 +61756,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: label__niew schema: type: array items: @@ -43692,244 +61764,149 @@ paths: explode: true style: form - in: query - name: name__nisw + name: label__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: outer_depth + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: outer_depth__empty - schema: - type: boolean - - in: query - name: outer_depth__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: outer_depth__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: outer_depth__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: outer_depth__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: outer_depth__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: outer_unit - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_unit__n - schema: - type: string - x-spec-enum-id: 86a846b6c40f495e - enum: - - in - - mm - description: '* `mm` - Millimeters - - * `in` - Inches' - - in: query - name: outer_width + name: last_updated__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - - in: query - name: outer_width__empty + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: boolean + type: integer - in: query - name: outer_width__gt + name: location schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: outer_width__gte + name: location__n schema: type: array items: - type: integer - format: int32 + type: string + description: Location (slug) explode: true style: form - in: query - name: outer_width__lt + name: location_id schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: outer_width__lte + name: location_id__n schema: type: array items: type: integer - format: int32 + description: Location (ID) explode: true style: form - in: query - name: outer_width__n + name: mark_connected schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: q + name: modified_by_request schema: type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + format: uuid - in: query - name: role_id + name: module_id schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Module (ID) explode: true style: form - in: query - name: role_id__n + name: module_id__n schema: type: array items: type: integer nullable: true - description: Role (ID) + description: Module (ID) explode: true style: form - in: query - name: serial + name: name schema: type: array items: @@ -43937,27 +61914,11 @@ paths: explode: true style: form - in: query - name: serial__empty + name: name__empty schema: type: boolean - in: query - name: serial__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: serial__iew + name: name__ic schema: type: array items: @@ -43965,7 +61926,7 @@ paths: explode: true style: form - in: query - name: serial__isw + name: name__ie schema: type: array items: @@ -43973,7 +61934,7 @@ paths: explode: true style: form - in: query - name: serial__n + name: name__iew schema: type: array items: @@ -43981,7 +61942,7 @@ paths: explode: true style: form - in: query - name: serial__nic + name: name__isw schema: type: array items: @@ -43989,7 +61950,7 @@ paths: explode: true style: form - in: query - name: serial__nie + name: name__n schema: type: array items: @@ -43997,7 +61958,7 @@ paths: explode: true style: form - in: query - name: serial__niew + name: name__nic schema: type: array items: @@ -44005,7 +61966,7 @@ paths: explode: true style: form - in: query - name: serial__nisw + name: name__nie schema: type: array items: @@ -44013,155 +61974,116 @@ paths: explode: true style: form - in: query - name: site + name: name__niew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__nisw schema: type: array items: type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) explode: true style: form - in: query - name: site_group_id + name: occupied schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form + type: string - in: query - name: site_id__n + name: power_port_id schema: type: array items: type: integer - description: Site (ID) + nullable: true + description: Power port (ID) explode: true style: form - in: query - name: starting_unit + name: power_port_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Power port (ID) explode: true style: form - in: query - name: starting_unit__empty - schema: - type: boolean - - in: query - name: starting_unit__gt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: starting_unit__gte + name: rack schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: starting_unit__lt + name: rack__n schema: type: array items: - type: integer - format: int32 + type: string + description: Rack (name) explode: true style: form - in: query - name: starting_unit__lte + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: starting_unit__n + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: status + name: region schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: status__n + name: region__n schema: type: array items: type: string - x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: tag + name: region_id schema: type: array items: @@ -44169,7 +62091,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: region_id__n schema: type: array items: @@ -44177,270 +62099,2905 @@ paths: explode: true style: form - in: query - name: tenant + name: site schema: type: array items: type: string - description: Tenant (slug) + description: Site name (slug) explode: true style: form - in: query - name: tenant__n + name: site__n schema: type: array items: type: string - description: Tenant (slug) + description: Site name (slug) explode: true style: form - in: query - name: tenant_group + name: site_group schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: site_group__n schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: site_group_id schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: site_group_id__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: site_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: tenant_id__n + name: site_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Site (ID) explode: true style: form - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: e32aaa89a223f2ea - explode: true - style: form - - in: query - name: u_height - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: u_height__empty - schema: - type: boolean - - in: query - name: u_height__gt - schema: - type: array - items: - type: integer - format: int32 explode: true style: form - in: query - name: u_height__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: u_height__lt + name: type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: f8c08053f2db8830 + description: Physical port type explode: true style: form - in: query - name: u_height__lte - schema: - type: array - items: - type: integer - format: int32 + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: u_height__n + name: type__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: weight + name: type__iew schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: type__isw schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: weight__gte + name: type__n schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: weight__lt + name: type__nic schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: weight__lte + name: type__nie schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: weight__n + name: type__niew schema: type: array items: - type: number - format: double + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type + + + * `iec-60320-c5` - C5 + + * `iec-60320-c7` - C7 + + * `iec-60320-c13` - C13 + + * `iec-60320-c15` - C15 + + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: weight_unit + name: type__nisw schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms + type: array + items: + type: string + x-spec-enum-id: f8c08053f2db8830 + enum: + - '' + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - dc-terminal + - eaton-c39 + - hardwired + - hdot-cx + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60320-c5 + - iec-60320-c7 + - iec-60906-1 + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-multistandard + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-l1-15r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-a + - usb-c + - usb-micro-b + description: 'Physical port type - * `g` - Grams - * `lb` - Pounds + * `iec-60320-c5` - C5 - * `oz` - Ounces' - - in: query - name: weight_unit__n - schema: - type: string - x-spec-enum-id: 7c1876f422815884 - enum: - - g - - kg - - lb - - oz - description: '* `kg` - Kilograms + * `iec-60320-c7` - C7 - * `g` - Grams + * `iec-60320-c13` - C13 - * `lb` - Pounds + * `iec-60320-c15` - C15 - * `oz` - Ounces' + * `iec-60320-c19` - C19 + + * `iec-60320-c21` - C21 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + explode: true + style: form - in: query - name: width + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: Virtual Chassis (ID) explode: true style: form - in: query - name: width__n + name: virtual_chassis_id__n schema: type: array items: type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: Rail-to-rail width + description: Virtual Chassis (ID) explode: true style: form tags: @@ -44453,21 +65010,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackList' + $ref: '#/components/schemas/PaginatedPowerOutletList' description: '' post: - operationId: dcim_racks_create - description: Post a list of rack objects. + operationId: dcim_power_outlets_create + description: Post a list of power outlet objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -44477,11 +65034,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_racks_bulk_update - description: Put a list of rack objects. + operationId: dcim_power_outlets_bulk_update + description: Put a list of power outlet objects. tags: - dcim requestBody: @@ -44490,12 +65047,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -44507,11 +65064,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_racks_bulk_partial_update - description: Patch a list of rack objects. + operationId: dcim_power_outlets_bulk_partial_update + description: Patch a list of power outlet objects. tags: - dcim requestBody: @@ -44520,12 +65077,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -44537,11 +65094,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_racks_bulk_destroy - description: Delete a list of rack objects. + operationId: dcim_power_outlets_bulk_destroy + description: Delete a list of power outlet objects. tags: - dcim requestBody: @@ -44550,12 +65107,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerOutletRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/PowerOutletRequest' required: true security: - cookieAuth: [] @@ -44563,16 +65120,16 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/: + /api/dcim/power-outlets/{id}/: get: - operationId: dcim_racks_retrieve - description: Get a rack object. + operationId: dcim_power_outlets_retrieve + description: Get a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -44584,17 +65141,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerOutlet' description: '' put: - operationId: dcim_racks_update - description: Put a rack object. + operationId: dcim_power_outlets_update + description: Put a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -44602,10 +65159,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRackRequest' + $ref: '#/components/schemas/WritablePowerOutletRequest' required: true security: - cookieAuth: [] @@ -44615,17 +65172,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerOutlet' description: '' patch: - operationId: dcim_racks_partial_update - description: Patch a rack object. + operationId: dcim_power_outlets_partial_update + description: Patch a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -44633,10 +65190,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRackRequest' + $ref: '#/components/schemas/PatchedWritablePowerOutletRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -44645,17 +65202,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/PowerOutlet' description: '' delete: - operationId: dcim_racks_destroy - description: Delete a rack object. + operationId: dcim_power_outlets_destroy + description: Delete a power outlet object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power outlet. required: true tags: - dcim @@ -44665,93 +65222,18 @@ paths: responses: '204': description: No response body - /api/dcim/racks/{id}/elevation/: + /api/dcim/power-outlets/{id}/trace/: get: - operationId: dcim_racks_elevation_retrieve - description: Rack elevation representing the list of rack units. Also supports - rendering the elevation as an SVG. + operationId: dcim_power_outlets_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: exclude - schema: - type: integer - - in: query - name: expand_devices - schema: - type: boolean - default: true - - in: query - name: face - schema: - enum: - - front - - rear - type: string - x-spec-enum-id: d2fb9b3f75158b83 - default: front - minLength: 1 - description: '* `front` - Front - - * `rear` - Rear' - in: path name: id schema: type: integer - description: A unique integer value identifying this rack. + description: A unique integer value identifying this power outlet. required: true - - in: query - name: include_images - schema: - type: boolean - default: true - - in: query - name: legend_width - schema: - type: integer - default: 30 - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: margin_width - schema: - type: integer - default: 15 - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - in: query - name: q - schema: - type: string - minLength: 1 - - in: query - name: render - schema: - enum: - - json - - svg - type: string - x-spec-enum-id: 09901a5ff13ba07a - default: json - minLength: 1 - description: '* `json` - json - - * `svg` - svg' - - in: query - name: unit_height - schema: - type: integer - - in: query - name: unit_width - schema: - type: integer tags: - dcim security: @@ -44762,67 +65244,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRackUnitList' + $ref: '#/components/schemas/PowerOutlet' description: '' - /api/dcim/rear-port-templates/: + /api/dcim/power-panels/: get: - operationId: dcim_rear_port_templates_list - description: Get a list of rear port template objects. + operationId: dcim_power_panels_list + description: Get a list of power panel objects. parameters: - in: query - name: color - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw + name: contact schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: color__n + name: contact__n schema: type: array items: - type: string + type: integer + description: Contact explode: true style: form - in: query - name: color__nic + name: contact_group schema: type: array items: @@ -44830,7 +65278,7 @@ paths: explode: true style: form - in: query - name: color__nie + name: contact_group__n schema: type: array items: @@ -44838,19 +65286,21 @@ paths: explode: true style: form - in: query - name: color__niew + name: contact_role schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query - name: color__nisw + name: contact_role__n schema: type: array items: - type: string + type: integer + description: Contact Role explode: true style: form - in: query @@ -45005,46 +65455,6 @@ paths: type: string explode: true style: form - - in: query - name: device_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: device_type_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - - in: query - name: devicetype_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device type (ID) - explode: true - style: form - in: query name: id schema: @@ -45103,90 +65513,6 @@ paths: format: int32 explode: true style: form - - in: query - name: label - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__empty - schema: - type: boolean - - in: query - name: label__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: label__nisw - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: last_updated schema: @@ -45257,50 +65583,26 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: module_type_id - schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form - - in: query - name: module_type_id__n + name: location_id schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id + name: location_id__n schema: type: array items: - type: integer - nullable: true - description: Module type (ID) + type: string explode: true style: form - in: query - name: moduletype_id__n + name: modified_by_request schema: - type: array - items: - type: integer - nullable: true - description: Module type (ID) - explode: true - style: form + type: string + format: uuid - in: query name: name schema: @@ -45398,84 +65700,124 @@ paths: schema: type: string - in: query - name: positions + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: positions__gt + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__gte + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: positions__lt + name: site schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: positions__lte + name: site__n schema: type: array items: - type: integer - format: int32 + type: string + description: Site name (slug) explode: true style: form - in: query - name: positions__n + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id schema: type: array items: type: integer - format: int32 + description: Site (ID) explode: true style: form - in: query - name: q + name: site_id__n schema: - type: string - description: Search + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form - in: query - name: type + name: tag schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query - name: type__n + name: tag__n schema: type: array items: type: string - x-spec-enum-id: 0276d1110ada597a explode: true style: form - in: query @@ -45493,21 +65835,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortTemplateList' + $ref: '#/components/schemas/PaginatedPowerPanelList' description: '' post: - operationId: dcim_rear_port_templates_create - description: Post a list of rear port template objects. + operationId: dcim_power_panels_create + description: Post a list of power panel objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -45517,11 +65859,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_rear_port_templates_bulk_update - description: Put a list of rear port template objects. + operationId: dcim_power_panels_bulk_update + description: Put a list of power panel objects. tags: - dcim requestBody: @@ -45530,12 +65872,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -45547,11 +65889,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_rear_port_templates_bulk_partial_update - description: Patch a list of rear port template objects. + operationId: dcim_power_panels_bulk_partial_update + description: Patch a list of power panel objects. tags: - dcim requestBody: @@ -45560,12 +65902,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -45577,11 +65919,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_rear_port_templates_bulk_destroy - description: Delete a list of rear port template objects. + operationId: dcim_power_panels_bulk_destroy + description: Delete a list of power panel objects. tags: - dcim requestBody: @@ -45590,12 +65932,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -45603,16 +65945,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-port-templates/{id}/: + /api/dcim/power-panels/{id}/: get: - operationId: dcim_rear_port_templates_retrieve - description: Get a rear port template object. + operationId: dcim_power_panels_retrieve + description: Get a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -45624,17 +65966,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerPanel' description: '' put: - operationId: dcim_rear_port_templates_update - description: Put a rear port template object. + operationId: dcim_power_panels_update + description: Put a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -45642,10 +65984,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortTemplateRequest' + $ref: '#/components/schemas/PowerPanelRequest' required: true security: - cookieAuth: [] @@ -45655,17 +65997,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerPanel' description: '' patch: - operationId: dcim_rear_port_templates_partial_update - description: Patch a rear port template object. + operationId: dcim_power_panels_partial_update + description: Patch a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -45673,10 +66015,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + $ref: '#/components/schemas/PatchedPowerPanelRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -45685,17 +66027,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/PowerPanel' description: '' delete: - operationId: dcim_rear_port_templates_destroy - description: Delete a rear port template object. + operationId: dcim_power_panels_destroy + description: Delete a power panel object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port template. + description: A unique integer value identifying this power panel. required: true tags: - dcim @@ -45705,139 +66047,67 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/: + /api/dcim/power-port-templates/: get: - operationId: dcim_rear_ports_list - description: Get a list of rear port objects. + operationId: dcim_power_port_templates_list + description: Get a list of power port template objects. parameters: - in: query - name: cable_end - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_end__n - schema: - type: string - x-spec-enum-id: 1db84f9b93b261c8 - enum: - - A - - B - description: '* `A` - A - - * `B` - B' - - in: query - name: cable_id - schema: - type: array - items: - type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cable_id__n + name: allocated_draw schema: type: array items: type: integer - nullable: true - description: Cable (ID) - explode: true - style: form - - in: query - name: cabled - schema: - type: boolean - - in: query - name: color - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: color__empty + name: allocated_draw__empty schema: type: boolean - in: query - name: color__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: color__n + name: allocated_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: allocated_draw__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nie + name: allocated_draw__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: allocated_draw__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: allocated_draw__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -45992,68 +66262,13 @@ paths: type: string explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device (name) - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - description: Device (ID) - explode: true - style: form - - in: query - name: device_type - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - - in: query - name: device_type__n - schema: - type: array - items: - type: string - description: Device type (model) - explode: true - style: form - in: query name: device_type_id schema: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -46063,6 +66278,7 @@ paths: type: array items: type: integer + nullable: true description: Device type (ID) explode: true style: form @@ -46278,68 +66494,86 @@ paths: schema: type: integer - in: query - name: location + name: maximum_draw schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location__n + name: maximum_draw__empty + schema: + type: boolean + - in: query + name: maximum_draw__gt schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location_id + name: maximum_draw__gte schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: location_id__n + name: maximum_draw__lt schema: type: array items: type: integer - description: Location (ID) + format: int32 explode: true style: form - in: query - name: mark_connected + name: maximum_draw__lte schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: module_id + name: module_type_id schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Module type (ID) explode: true style: form - in: query - name: module_id__n + name: module_type_id__n schema: type: array items: type: integer nullable: true - description: Module (ID) + description: Module type (ID) explode: true style: form - in: query @@ -46426,10 +66660,6 @@ paths: type: string explode: true style: form - - in: query - name: occupied - schema: - type: boolean - name: offset required: false in: query @@ -46442,324 +66672,102 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: positions - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__empty - schema: - type: boolean - - in: query - name: positions__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: positions__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: q schema: type: string description: Search - - in: query - name: rack - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack__n - schema: - type: array - items: - type: string - description: Rack (name) - explode: true - style: form - - in: query - name: rack_id - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: rack_id__n - schema: - type: array - items: - type: integer - description: Rack (ID) - explode: true - style: form - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role__n - schema: - type: array - items: - type: string - description: Device role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - description: Device role (ID) - explode: true - style: form - - in: query - name: site - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site__n - schema: - type: array - items: - type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - description: Site (ID) - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - in: query name: type schema: - type: array - items: - type: string - x-spec-enum-id: 0276d1110ada597a - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0276d1110ada597a - explode: true - style: form + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - California Style + - DC + - IEC 60309 + - IEC 60320 + - IEC 60906-1 + - International/ITA + - Molex + - NEMA (Locking) + - NEMA (Non-locking) + - Other + - Proprietary + - USB + description: '* `IEC 60320` - [(''iec-60320-c6'', ''C6''), (''iec-60320-c8'', + ''C8''), (''iec-60320-c14'', ''C14''), (''iec-60320-c16'', ''C16''), (''iec-60320-c20'', + ''C20''), (''iec-60320-c22'', ''C22'')] + + * `IEC 60309` - [(''iec-60309-p-n-e-4h'', ''P+N+E 4H''), (''iec-60309-p-n-e-6h'', + ''P+N+E 6H''), (''iec-60309-p-n-e-9h'', ''P+N+E 9H''), (''iec-60309-2p-e-4h'', + ''2P+E 4H''), (''iec-60309-2p-e-6h'', ''2P+E 6H''), (''iec-60309-2p-e-9h'', + ''2P+E 9H''), (''iec-60309-3p-e-4h'', ''3P+E 4H''), (''iec-60309-3p-e-6h'', + ''3P+E 6H''), (''iec-60309-3p-e-9h'', ''3P+E 9H''), (''iec-60309-3p-n-e-4h'', + ''3P+N+E 4H''), (''iec-60309-3p-n-e-6h'', ''3P+N+E 6H''), (''iec-60309-3p-n-e-9h'', + ''3P+N+E 9H'')] + + * `IEC 60906-1` - [(''iec-60906-1'', ''IEC 60906-1''), (''nbr-14136-10a'', + ''2P+T 10A (NBR 14136)''), (''nbr-14136-20a'', ''2P+T 20A (NBR 14136)'')] + + * `NEMA (Non-locking)` - [(''nema-1-15p'', ''NEMA 1-15P''), (''nema-5-15p'', + ''NEMA 5-15P''), (''nema-5-20p'', ''NEMA 5-20P''), (''nema-5-30p'', ''NEMA + 5-30P''), (''nema-5-50p'', ''NEMA 5-50P''), (''nema-6-15p'', ''NEMA 6-15P''), + (''nema-6-20p'', ''NEMA 6-20P''), (''nema-6-30p'', ''NEMA 6-30P''), (''nema-6-50p'', + ''NEMA 6-50P''), (''nema-10-30p'', ''NEMA 10-30P''), (''nema-10-50p'', ''NEMA + 10-50P''), (''nema-14-20p'', ''NEMA 14-20P''), (''nema-14-30p'', ''NEMA + 14-30P''), (''nema-14-50p'', ''NEMA 14-50P''), (''nema-14-60p'', ''NEMA + 14-60P''), (''nema-15-15p'', ''NEMA 15-15P''), (''nema-15-20p'', ''NEMA + 15-20P''), (''nema-15-30p'', ''NEMA 15-30P''), (''nema-15-50p'', ''NEMA + 15-50P''), (''nema-15-60p'', ''NEMA 15-60P'')] + + * `NEMA (Locking)` - [(''nema-l1-15p'', ''NEMA L1-15P''), (''nema-l5-15p'', + ''NEMA L5-15P''), (''nema-l5-20p'', ''NEMA L5-20P''), (''nema-l5-30p'', + ''NEMA L5-30P''), (''nema-l5-50p'', ''NEMA L5-50P''), (''nema-l6-15p'', + ''NEMA L6-15P''), (''nema-l6-20p'', ''NEMA L6-20P''), (''nema-l6-30p'', + ''NEMA L6-30P''), (''nema-l6-50p'', ''NEMA L6-50P''), (''nema-l10-30p'', + ''NEMA L10-30P''), (''nema-l14-20p'', ''NEMA L14-20P''), (''nema-l14-30p'', + ''NEMA L14-30P''), (''nema-l14-50p'', ''NEMA L14-50P''), (''nema-l14-60p'', + ''NEMA L14-60P''), (''nema-l15-20p'', ''NEMA L15-20P''), (''nema-l15-30p'', + ''NEMA L15-30P''), (''nema-l15-50p'', ''NEMA L15-50P''), (''nema-l15-60p'', + ''NEMA L15-60P''), (''nema-l21-20p'', ''NEMA L21-20P''), (''nema-l21-30p'', + ''NEMA L21-30P''), (''nema-l22-20p'', ''NEMA L22-20P''), (''nema-l22-30p'', + ''NEMA L22-30P'')] + + * `California Style` - [(''cs6361c'', ''CS6361C''), (''cs6365c'', ''CS6365C''), + (''cs8165c'', ''CS8165C''), (''cs8265c'', ''CS8265C''), (''cs8365c'', ''CS8365C''), + (''cs8465c'', ''CS8465C'')] + + * `International/ITA` - [(''ita-c'', ''ITA Type C (CEE 7/16)''), (''ita-e'', + ''ITA Type E (CEE 7/6)''), (''ita-f'', ''ITA Type F (CEE 7/4)''), (''ita-ef'', + ''ITA Type E/F (CEE 7/7)''), (''ita-g'', ''ITA Type G (BS 1363)''), (''ita-h'', + ''ITA Type H''), (''ita-i'', ''ITA Type I''), (''ita-j'', ''ITA Type J''), + (''ita-k'', ''ITA Type K''), (''ita-l'', ''ITA Type L (CEI 23-50)''), (''ita-m'', + ''ITA Type M (BS 546)''), (''ita-n'', ''ITA Type N''), (''ita-o'', ''ITA + Type O'')] + + * `USB` - [(''usb-a'', ''USB Type A''), (''usb-b'', ''USB Type B''), (''usb-c'', + ''USB Type C''), (''usb-mini-a'', ''USB Mini A''), (''usb-mini-b'', ''USB + Mini B''), (''usb-micro-a'', ''USB Micro A''), (''usb-micro-b'', ''USB Micro + B''), (''usb-micro-ab'', ''USB Micro AB''), (''usb-3-b'', ''USB 3.0 Type + B''), (''usb-3-micro-b'', ''USB 3.0 Micro B'')] + + * `Molex` - [(''molex-micro-fit-1x2'', ''Molex Micro-Fit 1x2''), (''molex-micro-fit-2x2'', + ''Molex Micro-Fit 2x2''), (''molex-micro-fit-2x4'', ''Molex Micro-Fit 2x4'')] + + * `DC` - [(''dc-terminal'', ''DC Terminal'')] + + * `Proprietary` - [(''saf-d-grid'', ''Saf-D-Grid''), (''neutrik-powercon-20'', + ''Neutrik powerCON (20A)''), (''neutrik-powercon-32'', ''Neutrik powerCON + (32A)''), (''neutrik-powercon-true1'', ''Neutrik powerCON TRUE1''), (''neutrik-powercon-true1-top'', + ''Neutrik powerCON TRUE1 TOP''), (''ubiquiti-smartpower'', ''Ubiquiti SmartPower'')] + + * `Other` - [(''hardwired'', ''Hardwired''), (''other'', ''Other'')]' - in: query name: updated_by_request schema: type: string format: uuid - - in: query - name: virtual_chassis - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis__n - schema: - type: array - items: - type: string - description: Virtual Chassis - explode: true - style: form - - in: query - name: virtual_chassis_id - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form - - in: query - name: virtual_chassis_id__n - schema: - type: array - items: - type: integer - description: Virtual Chassis (ID) - explode: true - style: form tags: - dcim security: @@ -46770,21 +66778,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRearPortList' + $ref: '#/components/schemas/PaginatedPowerPortTemplateList' description: '' post: - operationId: dcim_rear_ports_create - description: Post a list of rear port objects. + operationId: dcim_power_port_templates_create + description: Post a list of power port template objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -46794,11 +66802,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_rear_ports_bulk_update - description: Put a list of rear port objects. + operationId: dcim_power_port_templates_bulk_update + description: Put a list of power port template objects. tags: - dcim requestBody: @@ -46807,12 +66815,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -46824,11 +66832,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_rear_ports_bulk_partial_update - description: Patch a list of rear port objects. + operationId: dcim_power_port_templates_bulk_partial_update + description: Patch a list of power port template objects. tags: - dcim requestBody: @@ -46837,12 +66845,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -46854,11 +66862,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_rear_ports_bulk_destroy - description: Delete a list of rear port objects. + operationId: dcim_power_port_templates_bulk_destroy + description: Delete a list of power port template objects. tags: - dcim requestBody: @@ -46867,12 +66875,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RearPortRequest' + $ref: '#/components/schemas/PowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -46880,16 +66888,16 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/: + /api/dcim/power-port-templates/{id}/: get: - operationId: dcim_rear_ports_retrieve - description: Get a rear port object. + operationId: dcim_power_port_templates_retrieve + description: Get a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -46901,17 +66909,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerPortTemplate' description: '' put: - operationId: dcim_rear_ports_update - description: Put a rear port object. + operationId: dcim_power_port_templates_update + description: Put a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -46919,10 +66927,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableRearPortRequest' + $ref: '#/components/schemas/WritablePowerPortTemplateRequest' required: true security: - cookieAuth: [] @@ -46932,17 +66940,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerPortTemplate' description: '' patch: - operationId: dcim_rear_ports_partial_update - description: Patch a rear port object. + operationId: dcim_power_port_templates_partial_update + description: Patch a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -46950,10 +66958,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableRearPortRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -46962,17 +66970,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RearPort' + $ref: '#/components/schemas/PowerPortTemplate' description: '' delete: - operationId: dcim_rear_ports_destroy - description: Delete a rear port object. + operationId: dcim_power_port_templates_destroy + description: Delete a power port template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this rear port. + description: A unique integer value identifying this power port template. required: true tags: - dcim @@ -46982,124 +66990,108 @@ paths: responses: '204': description: No response body - /api/dcim/rear-ports/{id}/paths/: - get: - operationId: dcim_rear_ports_paths_retrieve - description: Return all CablePaths which traverse a given pass-through port. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this rear port. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/RearPort' - description: '' - /api/dcim/regions/: + /api/dcim/power-ports/: get: - operationId: dcim_regions_list - description: Get a list of region objects. + operationId: dcim_power_ports_list + description: Get a list of power port objects. parameters: - in: query - name: ancestor + name: allocated_draw schema: type: array items: type: integer - description: Region (slug) + format: int32 explode: true style: form - in: query - name: ancestor__n + name: allocated_draw__empty schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form + type: boolean - in: query - name: ancestor_id + name: allocated_draw__gt schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: ancestor_id__n + name: allocated_draw__gte schema: type: array items: type: integer - description: Region (ID) + format: int32 explode: true style: form - in: query - name: contact + name: allocated_draw__lt schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: allocated_draw__lte schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: allocated_draw__n schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: cable_end schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: contact_role + name: cable_id schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: contact_role__n + name: cable_id__n schema: type: array items: type: integer - description: Contact Role + nullable: true + description: Cable (ID) explode: true style: form + - in: query + name: cabled + schema: + type: boolean + - in: query + name: connected + schema: + type: boolean - in: query name: created schema: @@ -47252,6 +67244,399 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_role + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role__n + schema: + type: array + items: + type: string + description: Device role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Device role (ID) + explode: true + style: form + - in: query + name: device_status + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + explode: true + style: form + - in: query + name: device_status__empty + schema: + type: boolean + - in: query + name: device_status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: device_type + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type__n + schema: + type: array + items: + type: string + description: Device type (model) + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -47311,81 +67696,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -47393,11 +67764,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -47405,7 +67772,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -47413,138 +67780,199 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: location schema: type: array items: type: string - description: Parent region (slug) + description: Location (slug) explode: true style: form - in: query - name: parent__n + name: location__n schema: type: array items: type: string - description: Parent region (slug) + description: Location (slug) explode: true style: form - in: query - name: parent_id + name: location_id schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + description: Location (ID) explode: true style: form - in: query - name: parent_id__n + name: location_id__n schema: type: array items: type: integer - nullable: true - description: Parent region (ID) + description: Location (ID) explode: true style: form - in: query - name: q + name: mark_connected schema: - type: string - description: Search + type: boolean - in: query - name: slug + name: maximum_draw schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__empty + name: maximum_draw__empty schema: type: boolean - in: query - name: slug__ic + name: maximum_draw__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: slug__ie + name: maximum_draw__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: maximum_draw__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: module_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Module (ID) + explode: true + style: form + - in: query + name: name schema: type: array items: @@ -47552,7 +67980,11 @@ paths: explode: true style: form - in: query - name: slug__iew + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -47560,7 +67992,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: name__ie schema: type: array items: @@ -47568,7 +68000,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: name__iew schema: type: array items: @@ -47576,7 +68008,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: name__isw schema: type: array items: @@ -47584,7 +68016,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: name__n schema: type: array items: @@ -47592,7 +68024,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: name__nic schema: type: array items: @@ -47600,7 +68032,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: name__nie schema: type: array items: @@ -47608,7 +68040,7 @@ paths: explode: true style: form - in: query - name: tag + name: name__niew schema: type: array items: @@ -47616,7 +68048,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nisw schema: type: array items: @@ -47624,397 +68056,122 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedRegionList' - description: '' - post: - operationId: dcim_regions_create - description: Post a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_bulk_update - description: Put a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_bulk_partial_update - description: Patch a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_bulk_destroy - description: Delete a list of region objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/RegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/regions/{id}/: - get: - operationId: dcim_regions_retrieve - description: Get a region object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - put: - operationId: dcim_regions_update - description: Put a region object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableRegionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - patch: - operationId: dcim_regions_partial_update - description: Patch a region object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableRegionRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Region' - description: '' - delete: - operationId: dcim_regions_destroy - description: Delete a region object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this region. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/site-groups/: - get: - operationId: dcim_site_groups_list - description: Get a list of site group objects. - parameters: - - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: ancestor_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - in: query - name: contact__n + name: q schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form + type: string + description: Search - in: query - name: contact_group + name: rack schema: type: array items: - type: integer - description: Contact group + type: string + description: Rack (name) explode: true style: form - in: query - name: contact_group__n + name: rack__n schema: type: array items: - type: integer - description: Contact group + type: string + description: Rack (name) explode: true style: form - in: query - name: contact_role + name: rack_id schema: type: array items: type: integer - description: Contact Role + description: Rack (ID) explode: true style: form - in: query - name: contact_role__n + name: rack_id__n schema: type: array items: type: integer - description: Contact Role + description: Rack (ID) explode: true style: form - in: query - name: created + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: region_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: region_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: site schema: type: array items: type: string - format: date-time + description: Site name (slug) explode: true style: form - in: query - name: created__lte + name: site__n schema: type: array items: type: string - format: date-time + description: Site name (slug) explode: true style: form - in: query - name: created__n + name: site_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: site_group__n schema: type: array items: @@ -48022,11 +68179,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: site_group_id schema: type: array items: @@ -48034,7 +68187,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: site_group_id__n schema: type: array items: @@ -48042,23 +68195,25 @@ paths: explode: true style: form - in: query - name: description__iew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: description__isw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: description__n + name: tag schema: type: array items: @@ -48066,7 +68221,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: tag__n schema: type: array items: @@ -48074,405 +68229,2985 @@ paths: explode: true style: form - in: query - name: description__nie + name: type schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + description: Physical port type explode: true style: form - in: query - name: description__niew - schema: - type: array - items: - type: string + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: description__nisw + name: type__ie schema: type: array items: type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte + name: type__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: id__lt + name: type__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: id__lte + name: type__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: id__n + name: type__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: last_updated + name: type__nie schema: type: array items: type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: last_updated__lte + name: type__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - in: query - name: last_updated__n + name: type__nisw schema: type: array items: type: string - format: date-time + x-spec-enum-id: f1bd4aedff3a591b + enum: + - '' + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - dc-terminal + - hardwired + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60320-c6 + - iec-60320-c8 + - iec-60906-1 + - ita-c + - ita-e + - ita-ef + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-l1-15p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - other + - saf-d-grid + - ubiquiti-smartpower + - usb-3-b + - usb-3-micro-b + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: 'Physical port type + + + * `iec-60320-c6` - C6 + + * `iec-60320-c8` - C8 + + * `iec-60320-c14` - C14 + + * `iec-60320-c16` - C16 + + * `iec-60320-c20` - C20 + + * `iec-60320-c22` - C22 + + * `iec-60309-p-n-e-4h` - P+N+E 4H + + * `iec-60309-p-n-e-6h` - P+N+E 6H + + * `iec-60309-p-n-e-9h` - P+N+E 9H + + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15p` - NEMA 1-15P + + * `nema-5-15p` - NEMA 5-15P + + * `nema-5-20p` - NEMA 5-20P + + * `nema-5-30p` - NEMA 5-30P + + * `nema-5-50p` - NEMA 5-50P + + * `nema-6-15p` - NEMA 6-15P + + * `nema-6-20p` - NEMA 6-20P + + * `nema-6-30p` - NEMA 6-30P + + * `nema-6-50p` - NEMA 6-50P + + * `nema-10-30p` - NEMA 10-30P + + * `nema-10-50p` - NEMA 10-50P + + * `nema-14-20p` - NEMA 14-20P + + * `nema-14-30p` - NEMA 14-30P + + * `nema-14-50p` - NEMA 14-50P + + * `nema-14-60p` - NEMA 14-60P + + * `nema-15-15p` - NEMA 15-15P + + * `nema-15-20p` - NEMA 15-20P + + * `nema-15-30p` - NEMA 15-30P + + * `nema-15-50p` - NEMA 15-50P + + * `nema-15-60p` - NEMA 15-60P + + * `nema-l1-15p` - NEMA L1-15P + + * `nema-l5-15p` - NEMA L5-15P + + * `nema-l5-20p` - NEMA L5-20P + + * `nema-l5-30p` - NEMA L5-30P + + * `nema-l5-50p` - NEMA L5-50P + + * `nema-l6-15p` - NEMA L6-15P + + * `nema-l6-20p` - NEMA L6-20P + + * `nema-l6-30p` - NEMA L6-30P + + * `nema-l6-50p` - NEMA L6-50P + + * `nema-l10-30p` - NEMA L10-30P + + * `nema-l14-20p` - NEMA L14-20P + + * `nema-l14-30p` - NEMA L14-30P + + * `nema-l14-50p` - NEMA L14-50P + + * `nema-l14-60p` - NEMA L14-60P + + * `nema-l15-20p` - NEMA L15-20P + + * `nema-l15-30p` - NEMA L15-30P + + * `nema-l15-50p` - NEMA L15-50P + + * `nema-l15-60p` - NEMA L15-60P + + * `nema-l21-20p` - NEMA L21-20P + + * `nema-l21-30p` - NEMA L21-30P + + * `nema-l22-20p` - NEMA L22-20P + + * `nema-l22-30p` - NEMA L22-30P + + * `cs6361c` - CS6361C + + * `cs6365c` - CS6365C + + * `cs8165c` - CS8165C + + * `cs8265c` - CS8265C + + * `cs8365c` - CS8365C + + * `cs8465c` - CS8465C + + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: updated_by_request schema: type: string format: uuid - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent + name: virtual_chassis schema: type: array items: type: string - description: Parent site group (slug) + description: Virtual Chassis explode: true style: form - in: query - name: parent__n + name: virtual_chassis__n schema: type: array items: type: string - description: Parent site group (slug) + description: Virtual Chassis explode: true style: form - in: query - name: parent_id + name: virtual_chassis_id schema: type: array items: type: integer - nullable: true - description: Parent site group (ID) + description: Virtual Chassis (ID) explode: true style: form - in: query - name: parent_id__n + name: virtual_chassis_id__n schema: type: array items: type: integer - nullable: true - description: Parent site group (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string + description: Virtual Chassis (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -48483,21 +71218,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteGroupList' + $ref: '#/components/schemas/PaginatedPowerPortList' description: '' post: - operationId: dcim_site_groups_create - description: Post a list of site group objects. + operationId: dcim_power_ports_create + description: Post a list of power port objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' required: true security: - cookieAuth: [] @@ -48507,11 +71242,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPort' description: '' put: - operationId: dcim_site_groups_bulk_update - description: Put a list of site group objects. + operationId: dcim_power_ports_bulk_update + description: Put a list of power port objects. tags: - dcim requestBody: @@ -48520,12 +71255,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -48537,11 +71272,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPort' description: '' patch: - operationId: dcim_site_groups_bulk_partial_update - description: Patch a list of site group objects. + operationId: dcim_power_ports_bulk_partial_update + description: Patch a list of power port objects. tags: - dcim requestBody: @@ -48550,12 +71285,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -48567,11 +71302,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPort' description: '' delete: - operationId: dcim_site_groups_bulk_destroy - description: Delete a list of site group objects. + operationId: dcim_power_ports_bulk_destroy + description: Delete a list of power port objects. tags: - dcim requestBody: @@ -48580,12 +71315,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteGroupRequest' + $ref: '#/components/schemas/PowerPortRequest' required: true security: - cookieAuth: [] @@ -48593,16 +71328,16 @@ paths: responses: '204': description: No response body - /api/dcim/site-groups/{id}/: + /api/dcim/power-ports/{id}/: get: - operationId: dcim_site_groups_retrieve - description: Get a site group object. + operationId: dcim_power_ports_retrieve + description: Get a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -48614,17 +71349,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPort' description: '' put: - operationId: dcim_site_groups_update - description: Put a site group object. + operationId: dcim_power_ports_update + description: Put a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -48632,10 +71367,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteGroupRequest' + $ref: '#/components/schemas/WritablePowerPortRequest' required: true security: - cookieAuth: [] @@ -48645,17 +71380,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPort' description: '' patch: - operationId: dcim_site_groups_partial_update - description: Patch a site group object. + operationId: dcim_power_ports_partial_update + description: Patch a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -48663,10 +71398,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' + $ref: '#/components/schemas/PatchedWritablePowerPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -48675,17 +71410,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SiteGroup' + $ref: '#/components/schemas/PowerPort' description: '' delete: - operationId: dcim_site_groups_destroy - description: Delete a site group object. + operationId: dcim_power_ports_destroy + description: Delete a power port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site group. + description: A unique integer value identifying this power port. required: true tags: - dcim @@ -48695,107 +71430,35 @@ paths: responses: '204': description: No response body - /api/dcim/sites/: + /api/dcim/power-ports/{id}/trace/: get: - operationId: dcim_sites_list - description: Get a list of site objects. + operationId: dcim_power_ports_trace_retrieve + description: Trace a complete cable path and return each segment as a three-tuple + of (termination, cable, termination). parameters: - - in: query - name: asn - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) - explode: true - style: form - - in: query - name: asn__n - schema: - type: array - items: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: AS (ID) - explode: true - style: form - - in: query - name: asn_id - schema: - type: array - items: - type: integer - description: AS (ID) - explode: true - style: form - - in: query - name: asn_id__n - schema: - type: array - items: - type: integer - description: AS (ID) - explode: true - style: form - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n + - in: path + name: id schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: integer + description: A unique integer value identifying this power port. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PowerPort' + description: '' + /api/dcim/rack-reservations/: + get: + operationId: dcim_rack_reservations_list + description: Get a list of rack reservation objects. + parameters: - in: query name: created schema: @@ -48949,694 +71612,382 @@ paths: explode: true style: form - in: query - name: facility + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__empty + name: id__empty schema: type: boolean - in: query - name: facility__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: facility__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: facility__nie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: facility__niew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: facility__nisw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: group + name: last_updated__lt schema: type: array items: - type: integer - description: Group (slug) + type: string + format: date-time explode: true style: form - in: query - name: group__n + name: last_updated__lte schema: type: array items: - type: integer - description: Group (slug) + type: string + format: date-time explode: true style: form - in: query - name: group_id + name: last_updated__n schema: type: array items: - type: integer - description: Group (ID) + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: group_id__n + name: location schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: id + name: location__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: location_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: location_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: rack_id schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: id__lte + name: rack_id__n schema: type: array items: type: integer - format: int32 + description: Rack (ID) explode: true style: form - in: query - name: id__n + name: region schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: region_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: region_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: site schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__lt + name: site__n schema: type: array items: type: string - format: date-time + description: Site (slug) explode: true style: form - in: query - name: last_updated__lte + name: site_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: site_group__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: latitude + name: site_group_id schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__empty - schema: - type: boolean - - in: query - name: latitude__gt + name: site_group_id__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__gte + name: site_id schema: type: array items: - type: number - format: double + type: integer + description: Site (ID) explode: true style: form - in: query - name: latitude__lt + name: site_id__n schema: type: array items: - type: number - format: double + type: integer + description: Site (ID) explode: true style: form - in: query - name: latitude__lte + name: tag schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: latitude__n + name: tag__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: longitude + name: tenant schema: type: array items: - type: number - format: double + type: string + description: Tenant (slug) explode: true style: form - in: query - name: longitude__empty - schema: - type: boolean - - in: query - name: longitude__gt + name: tenant__n schema: type: array items: - type: number - format: double + type: string + description: Tenant (slug) explode: true style: form - in: query - name: longitude__gte + name: tenant_group schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: longitude__lt + name: tenant_group__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: longitude__lte + name: tenant_group_id schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: longitude__n + name: tenant_group_id__n schema: type: array items: - type: number - format: double + type: string explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: status - schema: - type: array - items: - type: string - x-spec-enum-id: e363a8ddb138be50 - explode: true - style: form - - in: query - name: status__n - schema: - type: array - items: - type: string - x-spec-enum-id: e363a8ddb138be50 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n + name: tenant_id__n schema: type: array items: @@ -49646,90 +71997,50 @@ paths: explode: true style: form - in: query - name: time_zone - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: time_zone__isw + name: unit schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: time_zone__n + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: time_zone__nic + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: time_zone__nie + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: time_zone__niew + name: user_id schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - in: query - name: time_zone__nisw + name: user_id__n schema: type: array items: - type: string + type: integer + description: User (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - dcim security: @@ -49740,21 +72051,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSiteList' + $ref: '#/components/schemas/PaginatedRackReservationList' description: '' post: - operationId: dcim_sites_create - description: Post a list of site objects. + operationId: dcim_rack_reservations_create + description: Post a list of rack reservation objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -49764,11 +72075,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_sites_bulk_update - description: Put a list of site objects. + operationId: dcim_rack_reservations_bulk_update + description: Put a list of rack reservation objects. tags: - dcim requestBody: @@ -49777,12 +72088,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -49794,11 +72105,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_sites_bulk_partial_update - description: Patch a list of site objects. + operationId: dcim_rack_reservations_bulk_partial_update + description: Patch a list of rack reservation objects. tags: - dcim requestBody: @@ -49807,12 +72118,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -49824,11 +72135,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_sites_bulk_destroy - description: Delete a list of site objects. + operationId: dcim_rack_reservations_bulk_destroy + description: Delete a list of rack reservation objects. tags: - dcim requestBody: @@ -49837,12 +72148,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -49850,16 +72161,16 @@ paths: responses: '204': description: No response body - /api/dcim/sites/{id}/: + /api/dcim/rack-reservations/{id}/: get: - operationId: dcim_sites_retrieve - description: Get a site object. + operationId: dcim_rack_reservations_retrieve + description: Get a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -49871,17 +72182,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RackReservation' description: '' put: - operationId: dcim_sites_update - description: Put a site object. + operationId: dcim_rack_reservations_update + description: Put a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -49889,10 +72200,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/RackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableSiteRequest' + $ref: '#/components/schemas/RackReservationRequest' required: true security: - cookieAuth: [] @@ -49902,17 +72213,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RackReservation' description: '' patch: - operationId: dcim_sites_partial_update - description: Patch a site object. + operationId: dcim_rack_reservations_partial_update + description: Patch a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -49920,10 +72231,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableSiteRequest' + $ref: '#/components/schemas/PatchedRackReservationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -49932,17 +72243,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/RackReservation' description: '' delete: - operationId: dcim_sites_destroy - description: Delete a site object. + operationId: dcim_rack_reservations_destroy + description: Delete a rack reservation object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this site. + description: A unique integer value identifying this rack reservation. required: true tags: - dcim @@ -49952,81 +72263,73 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/: + /api/dcim/rack-roles/: get: - operationId: dcim_virtual_chassis_list - description: Get a list of virtual chassis objects. + operationId: dcim_rack_roles_list + description: Get a list of rack role objects. parameters: - in: query - name: created + name: color schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: color__empty + schema: + type: boolean + - in: query + name: color__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: color__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: color__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: color__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: color__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: color__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: color__nie schema: type: array items: @@ -50034,11 +72337,7 @@ paths: explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: color__niew schema: type: array items: @@ -50046,7 +72345,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: color__nisw schema: type: array items: @@ -50054,63 +72353,75 @@ paths: explode: true style: form - in: query - name: description__iew + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: domain + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -50118,11 +72429,11 @@ paths: explode: true style: form - in: query - name: domain__empty + name: description__empty schema: type: boolean - in: query - name: domain__ic + name: description__ic schema: type: array items: @@ -50130,7 +72441,7 @@ paths: explode: true style: form - in: query - name: domain__ie + name: description__ie schema: type: array items: @@ -50138,7 +72449,7 @@ paths: explode: true style: form - in: query - name: domain__iew + name: description__iew schema: type: array items: @@ -50146,7 +72457,7 @@ paths: explode: true style: form - in: query - name: domain__isw + name: description__isw schema: type: array items: @@ -50154,7 +72465,7 @@ paths: explode: true style: form - in: query - name: domain__n + name: description__n schema: type: array items: @@ -50162,7 +72473,7 @@ paths: explode: true style: form - in: query - name: domain__nic + name: description__nic schema: type: array items: @@ -50170,7 +72481,7 @@ paths: explode: true style: form - in: query - name: domain__nie + name: description__nie schema: type: array items: @@ -50178,7 +72489,7 @@ paths: explode: true style: form - in: query - name: domain__niew + name: description__niew schema: type: array items: @@ -50186,7 +72497,7 @@ paths: explode: true style: form - in: query - name: domain__nisw + name: description__nisw schema: type: array items: @@ -50320,104 +72631,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: master - schema: - type: array - items: - type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master__n - schema: - type: array - items: - type: string - nullable: true - description: Master (name) - explode: true - style: form - - in: query - name: master_id - schema: - type: array - items: - type: integer - nullable: true - description: Master (ID) - explode: true - style: form - - in: query - name: master_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Master (ID) - explode: true - style: form - - in: query - name: member_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__empty - schema: - type: boolean - - in: query - name: member_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: member_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -50525,115 +72738,59 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id + name: slug schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: slug__empty schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: boolean - in: query - name: site + name: slug__ic schema: type: array items: type: string - description: Site name (slug) explode: true style: form - in: query - name: site__n + name: slug__ie schema: type: array items: type: string - description: Site name (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) explode: true style: form - in: query - name: site_group_id__n + name: slug__iew schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query - name: site_id + name: slug__isw schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: slug__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: slug__nic schema: type: array items: @@ -50641,7 +72798,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nie schema: type: array items: @@ -50649,39 +72806,35 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__nisw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -50699,21 +72852,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualChassisList' + $ref: '#/components/schemas/PaginatedRackRoleList' description: '' post: - operationId: dcim_virtual_chassis_create - description: Post a list of virtual chassis objects. + operationId: dcim_rack_roles_create + description: Post a list of rack role objects. tags: - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -50723,11 +72876,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_virtual_chassis_bulk_update - description: Put a list of virtual chassis objects. + operationId: dcim_rack_roles_bulk_update + description: Put a list of rack role objects. tags: - dcim requestBody: @@ -50736,12 +72889,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -50753,11 +72906,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_virtual_chassis_bulk_partial_update - description: Patch a list of virtual chassis objects. + operationId: dcim_rack_roles_bulk_partial_update + description: Patch a list of rack role objects. tags: - dcim requestBody: @@ -50766,12 +72919,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -50783,11 +72936,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_virtual_chassis_bulk_destroy - description: Delete a list of virtual chassis objects. + operationId: dcim_rack_roles_bulk_destroy + description: Delete a list of rack role objects. tags: - dcim requestBody: @@ -50796,12 +72949,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -50809,16 +72962,16 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-chassis/{id}/: + /api/dcim/rack-roles/{id}/: get: - operationId: dcim_virtual_chassis_retrieve - description: Get a virtual chassis object. + operationId: dcim_rack_roles_retrieve + description: Get a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -50830,17 +72983,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackRole' description: '' put: - operationId: dcim_virtual_chassis_update - description: Put a virtual chassis object. + operationId: dcim_rack_roles_update + description: Put a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -50848,10 +73001,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualChassisRequest' + $ref: '#/components/schemas/RackRoleRequest' required: true security: - cookieAuth: [] @@ -50861,17 +73014,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackRole' description: '' patch: - operationId: dcim_virtual_chassis_partial_update - description: Patch a virtual chassis object. + operationId: dcim_rack_roles_partial_update + description: Patch a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -50879,10 +73032,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' + $ref: '#/components/schemas/PatchedRackRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -50891,17 +73044,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualChassis' + $ref: '#/components/schemas/RackRole' description: '' delete: - operationId: dcim_virtual_chassis_destroy - description: Delete a virtual chassis object. + operationId: dcim_rack_roles_destroy + description: Delete a rack role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual chassis. + description: A unique integer value identifying this rack role. required: true tags: - dcim @@ -50911,10 +73064,10 @@ paths: responses: '204': description: No response body - /api/dcim/virtual-device-contexts/: + /api/dcim/rack-types/: get: - operationId: dcim_virtual_device_contexts_list - description: Get a list of virtual device context objects. + operationId: dcim_rack_types_list + description: Get a list of rack type objects. parameters: - in: query name: created @@ -50984,6 +73137,10 @@ paths: schema: type: string format: uuid + - in: query + name: desc_units + schema: + type: boolean - in: query name: description schema: @@ -51069,106 +73226,290 @@ paths: explode: true style: form - in: query - name: device + name: form_factor schema: type: array items: - type: integer - description: Device model + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: device__n + name: form_factor__empty + schema: + type: boolean + - in: query + name: form_factor__ic schema: type: array items: - type: integer - description: Device model + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: device_id + name: form_factor__ie schema: type: array items: - type: integer - description: VDC (ID) + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: device_id__n + name: form_factor__iew schema: type: array items: - type: integer - description: VDC (ID) + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id + name: form_factor__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: form_factor__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: id__gte + name: form_factor__nic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: id__lt + name: form_factor__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: id__lte + name: form_factor__niew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: id__n + name: form_factor__nisw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: identifier + name: id schema: type: array items: @@ -51177,11 +73518,11 @@ paths: explode: true style: form - in: query - name: identifier__empty + name: id__empty schema: type: boolean - in: query - name: identifier__gt + name: id__gt schema: type: array items: @@ -51190,7 +73531,7 @@ paths: explode: true style: form - in: query - name: identifier__gte + name: id__gte schema: type: array items: @@ -51199,7 +73540,7 @@ paths: explode: true style: form - in: query - name: identifier__lt + name: id__lt schema: type: array items: @@ -51208,7 +73549,7 @@ paths: explode: true style: form - in: query - name: identifier__lte + name: id__lte schema: type: array items: @@ -51217,7 +73558,7 @@ paths: explode: true style: form - in: query - name: identifier__n + name: id__n schema: type: array items: @@ -51225,24 +73566,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -51313,167 +73636,161 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: manufacturer schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: manufacturer__n schema: type: array items: type: string + description: Manufacturer (slug) explode: true style: form - in: query - name: name__ie + name: manufacturer_id schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__iew + name: manufacturer_id__n schema: type: array items: - type: string + type: integer + description: Manufacturer (ID) explode: true style: form - in: query - name: name__isw + name: max_weight schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: max_weight__empty + schema: + type: boolean + - in: query + name: max_weight__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: max_weight__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: max_weight__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: max_weight__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: max_weight__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: primary_ip4_id + name: model schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip4_id__n + name: model__empty + schema: + type: boolean + - in: query + name: model__ic schema: type: array items: - type: integer - description: Primary IPv4 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id + name: model__ie schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: primary_ip6_id__n + name: model__iew schema: type: array items: - type: integer - description: Primary IPv6 (ID) + type: string explode: true style: form - in: query - name: q + name: model__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: status + name: model__n schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: status__n + name: model__nic schema: type: array items: type: string - x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: tag + name: model__nie schema: type: array items: @@ -51481,7 +73798,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: model__niew schema: type: array items: @@ -51489,318 +73806,159 @@ paths: explode: true style: form - in: query - name: tenant + name: model__nisw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: mounting_depth schema: type: array items: - type: string - description: Tenant (slug) + type: integer + format: int32 explode: true style: form - in: query - name: tenant_group + name: mounting_depth__empty + schema: + type: boolean + - in: query + name: mounting_depth__gt schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group__n + name: mounting_depth__gte schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: mounting_depth__lt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: mounting_depth__lte schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: mounting_depth__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tenant_id__n + name: outer_depth schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request + name: outer_depth__empty schema: - type: string - format: uuid - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' - description: '' - post: - operationId: dcim_virtual_device_contexts_create - description: Post a list of virtual device context objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualDeviceContext' - description: '' - put: - operationId: dcim_virtual_device_contexts_bulk_update - description: Put a list of virtual device context objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContext' - description: '' - patch: - operationId: dcim_virtual_device_contexts_bulk_partial_update - description: Patch a list of virtual device context objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContext' - description: '' - delete: - operationId: dcim_virtual_device_contexts_bulk_destroy - description: Delete a list of virtual device context objects. - tags: - - dcim - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VirtualDeviceContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/dcim/virtual-device-contexts/{id}/: - get: - operationId: dcim_virtual_device_contexts_retrieve - description: Get a virtual device context object. - parameters: - - in: path - name: id + type: boolean + - in: query + name: outer_depth__gt schema: - type: integer - description: A unique integer value identifying this virtual device context. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualDeviceContext' - description: '' - put: - operationId: dcim_virtual_device_contexts_update - description: Put a virtual device context object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__gte schema: - type: integer - description: A unique integer value identifying this virtual device context. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualDeviceContext' - description: '' - patch: - operationId: dcim_virtual_device_contexts_partial_update - description: Patch a virtual device context object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__lt schema: - type: integer - description: A unique integer value identifying this virtual device context. - required: true - tags: - - dcim - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualDeviceContext' - description: '' - delete: - operationId: dcim_virtual_device_contexts_destroy - description: Delete a virtual device context object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__lte schema: - type: integer - description: A unique integer value identifying this virtual device context. - required: true - tags: - - dcim - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/bookmarks/: - get: - operationId: extras_bookmarks_list - description: Get a list of bookmark objects. - parameters: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: created + name: outer_depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_unit schema: type: string - format: date-time + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: id + name: outer_width schema: type: array items: @@ -51809,11 +73967,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: outer_width__empty schema: type: boolean - in: query - name: id__gt + name: outer_width__gt schema: type: array items: @@ -51822,7 +73980,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: outer_width__gte schema: type: array items: @@ -51831,7 +73989,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: outer_width__lt schema: type: array items: @@ -51840,7 +73998,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: outer_width__lte schema: type: array items: @@ -51849,7 +74007,7 @@ paths: explode: true style: form - in: query - name: id__n + name: outer_width__n schema: type: array items: @@ -51857,14 +74015,97 @@ paths: format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: q schema: - type: integer + type: string + description: Search - in: query - name: object_id + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: starting_unit schema: type: array items: @@ -51873,11 +74114,11 @@ paths: explode: true style: form - in: query - name: object_id__empty + name: starting_unit__empty schema: type: boolean - in: query - name: object_id__gt + name: starting_unit__gt schema: type: array items: @@ -51886,7 +74127,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: starting_unit__gte schema: type: array items: @@ -51895,7 +74136,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: starting_unit__lt schema: type: array items: @@ -51904,7 +74145,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: starting_unit__lte schema: type: array items: @@ -51913,7 +74154,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: starting_unit__n schema: type: array items: @@ -51922,15 +74163,23 @@ paths: explode: true style: form - in: query - name: object_type + name: tag schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: tag__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: u_height schema: type: array items: @@ -51939,7 +74188,11 @@ paths: explode: true style: form - in: query - name: object_type_id__empty + name: u_height__empty + schema: + type: boolean + - in: query + name: u_height__gt schema: type: array items: @@ -51948,7 +74201,7 @@ paths: explode: true style: form - in: query - name: object_type_id__gt + name: u_height__gte schema: type: array items: @@ -51957,7 +74210,7 @@ paths: explode: true style: form - in: query - name: object_type_id__gte + name: u_height__lt schema: type: array items: @@ -51966,7 +74219,7 @@ paths: explode: true style: form - in: query - name: object_type_id__lt + name: u_height__lte schema: type: array items: @@ -51975,7 +74228,7 @@ paths: explode: true style: form - in: query - name: object_type_id__lte + name: u_height__n schema: type: array items: @@ -51984,64 +74237,313 @@ paths: explode: true style: form - in: query - name: object_type_id__n + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: weight__empty schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight_unit schema: type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' - in: query - name: user + name: width schema: type: array items: - type: string - description: User (name) + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width explode: true style: form - in: query - name: user__n + name: width__ic schema: type: array items: - type: string - description: User (name) + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' explode: true style: form - in: query - name: user_id + name: width__ie schema: type: array items: type: integer - description: User (ID) + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' explode: true style: form - in: query - name: user_id__n + name: width__iew schema: type: array items: type: integer - description: User (ID) + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' explode: true style: form tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -52050,21 +74552,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedBookmarkList' + $ref: '#/components/schemas/PaginatedRackTypeList' description: '' post: - operationId: extras_bookmarks_create - description: Post a list of bookmark objects. + operationId: dcim_rack_types_create + description: Post a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -52074,25 +74576,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: extras_bookmarks_bulk_update - description: Put a list of bookmark objects. + operationId: dcim_rack_types_bulk_update + description: Put a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -52104,25 +74606,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: extras_bookmarks_bulk_partial_update - description: Patch a list of bookmark objects. + operationId: dcim_rack_types_bulk_partial_update + description: Patch a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -52134,25 +74636,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: extras_bookmarks_bulk_destroy - description: Delete a list of bookmark objects. + operationId: dcim_rack_types_bulk_destroy + description: Delete a list of rack type objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/RackTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/RackTypeRequest' required: true security: - cookieAuth: [] @@ -52160,19 +74662,19 @@ paths: responses: '204': description: No response body - /api/extras/bookmarks/{id}/: + /api/dcim/rack-types/{id}/: get: - operationId: extras_bookmarks_retrieve - description: Get a bookmark object. + operationId: dcim_rack_types_retrieve + description: Get a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this rack type. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -52181,28 +74683,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/RackType' description: '' put: - operationId: extras_bookmarks_update - description: Put a bookmark object. + operationId: dcim_rack_types_update + description: Put a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this rack type. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/BookmarkRequest' + $ref: '#/components/schemas/WritableRackTypeRequest' required: true security: - cookieAuth: [] @@ -52212,28 +74714,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/RackType' description: '' patch: - operationId: extras_bookmarks_partial_update - description: Patch a bookmark object. + operationId: dcim_rack_types_partial_update + description: Patch a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this rack type. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedBookmarkRequest' + $ref: '#/components/schemas/PatchedWritableRackTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -52242,235 +74744,189 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Bookmark' + $ref: '#/components/schemas/RackType' description: '' delete: - operationId: extras_bookmarks_destroy - description: Delete a bookmark object. + operationId: dcim_rack_types_destroy + description: Delete a rack type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this bookmark. + description: A unique integer value identifying this rack type. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-contexts/: + /api/dcim/racks/: get: - operationId: extras_config_contexts_list - description: Get a list of config context objects. + operationId: dcim_racks_list + description: Get a list of rack objects. parameters: - in: query - name: auto_sync_enabled - schema: - type: boolean - - in: query - name: cluster_group + name: airflow schema: - type: array - items: - type: string - description: Cluster group (slug) - explode: true - style: form + type: string + x-spec-enum-id: a784734d07ef1b3c + enum: + - front-to-rear + - rear-to-front + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' - in: query - name: cluster_group__n + name: asset_tag schema: type: array items: type: string - description: Cluster group (slug) explode: true style: form - in: query - name: cluster_group_id - schema: - type: array - items: - type: integer - description: Cluster group - explode: true - style: form - - in: query - name: cluster_group_id__n - schema: - type: array - items: - type: integer - description: Cluster group - explode: true - style: form - - in: query - name: cluster_id + name: asset_tag__empty schema: - type: array - items: - type: integer - description: Cluster - explode: true - style: form + type: boolean - in: query - name: cluster_id__n + name: asset_tag__ic schema: type: array items: - type: integer - description: Cluster + type: string explode: true style: form - in: query - name: cluster_type + name: asset_tag__ie schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type__n + name: asset_tag__iew schema: type: array items: type: string - description: Cluster type (slug) explode: true style: form - in: query - name: cluster_type_id + name: asset_tag__isw schema: type: array items: - type: integer - description: Cluster type + type: string explode: true style: form - in: query - name: cluster_type_id__n + name: asset_tag__n schema: type: array items: - type: integer - description: Cluster type + type: string explode: true style: form - in: query - name: created + name: asset_tag__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: asset_tag__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: asset_tag__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: asset_tag__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: data_file_id + name: contact_group__n schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: contact_role schema: type: array items: type: integer - nullable: true - description: Data file (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id + name: contact_role__n schema: type: array items: type: integer - nullable: true - description: Data source (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id__n + name: created schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string + format: date-time explode: true style: form - in: query - name: data_synced + name: created__empty schema: type: array items: @@ -52479,11 +74935,7 @@ paths: explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: created__gt schema: type: array items: @@ -52492,7 +74944,7 @@ paths: explode: true style: form - in: query - name: data_synced__gte + name: created__gte schema: type: array items: @@ -52501,7 +74953,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: created__lt schema: type: array items: @@ -52510,7 +74962,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: created__lte schema: type: array items: @@ -52519,7 +74971,7 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: created__n schema: type: array items: @@ -52527,6 +74979,15 @@ paths: format: date-time explode: true style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: desc_units + schema: + type: boolean - in: query name: description schema: @@ -52612,627 +75073,864 @@ paths: explode: true style: form - in: query - name: device_role + name: facility_id schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: device_role__n + name: facility_id__empty + schema: + type: boolean + - in: query + name: facility_id__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: device_role_id + name: facility_id__ie schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: device_role_id__n + name: facility_id__iew schema: type: array items: - type: integer - description: Role + type: string explode: true style: form - in: query - name: device_type_id + name: facility_id__isw schema: type: array items: - type: integer - description: Device type + type: string explode: true style: form - in: query - name: device_type_id__n + name: facility_id__n schema: type: array items: - type: integer - description: Device type + type: string explode: true style: form - in: query - name: id + name: facility_id__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: facility_id__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: facility_id__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: facility_id__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: form_factor schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea explode: true style: form - in: query - name: id__n + name: form_factor__empty + schema: + type: boolean + - in: query + name: form_factor__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: is_active - schema: - type: boolean - - in: query - name: last_updated + name: form_factor__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: last_updated__empty + name: form_factor__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: last_updated__gt + name: form_factor__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: last_updated__gte + name: form_factor__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: last_updated__lt + name: form_factor__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: last_updated__lte + name: form_factor__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: last_updated__n + name: form_factor__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: location + name: form_factor__nisw schema: type: array items: type: string - description: Location (slug) + x-spec-enum-id: e32aaa89a223f2ea + enum: + - '' + - 2-post-frame + - 4-post-cabinet + - 4-post-frame + - wall-cabinet + - wall-cabinet-vertical + - wall-frame + - wall-frame-vertical + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' explode: true style: form - in: query - name: location__n + name: id schema: type: array items: - type: string - description: Location (slug) + type: integer + format: int32 explode: true style: form - in: query - name: location_id + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: Location + format: int32 explode: true style: form - in: query - name: location_id__n + name: id__gte schema: type: array items: type: integer - description: Location + format: int32 explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: platform + name: location schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform__n + name: location__n schema: type: array items: type: string - description: Platform (slug) explode: true style: form - in: query - name: platform_id + name: location_id schema: type: array items: - type: integer - description: Platform + type: string explode: true style: form - in: query - name: platform_id__n + name: location_id__n schema: type: array items: - type: integer - description: Platform + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region + name: manufacturer schema: type: array items: type: string - description: Region (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: region__n + name: manufacturer__n schema: type: array items: type: string - description: Region (slug) + description: Manufacturer (slug) explode: true style: form - in: query - name: region_id + name: manufacturer_id schema: type: array items: type: integer - description: Region + description: Manufacturer (ID) explode: true style: form - in: query - name: region_id__n + name: manufacturer_id__n schema: type: array items: type: integer - description: Region + description: Manufacturer (ID) explode: true style: form - in: query - name: role + name: max_weight schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: max_weight__empty + schema: + type: boolean + - in: query + name: max_weight__gt schema: type: array items: - type: string - description: Role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: max_weight__gte schema: type: array items: type: integer - description: Role + format: int32 explode: true style: form - in: query - name: role_id__n + name: max_weight__lt schema: type: array items: type: integer - description: Role + format: int32 explode: true style: form - in: query - name: site + name: max_weight__lte schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site__n + name: max_weight__n schema: type: array items: - type: string - description: Site (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: mounting_depth schema: type: array items: - type: string - description: Site group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group__n + name: mounting_depth__empty + schema: + type: boolean + - in: query + name: mounting_depth__gt schema: type: array items: - type: string - description: Site group (slug) + type: integer + format: int32 explode: true style: form - in: query - name: site_group_id + name: mounting_depth__gte schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: mounting_depth__lt schema: type: array items: type: integer - description: Site group + format: int32 explode: true style: form - in: query - name: site_id + name: mounting_depth__lte schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form - in: query - name: site_id__n + name: mounting_depth__n schema: type: array items: type: integer - description: Site + format: int32 explode: true style: form - in: query - name: tag + name: name schema: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - description: Tag (slug) explode: true style: form - in: query - name: tag_id + name: name__ie schema: type: array items: - type: integer - description: Tag + type: string explode: true style: form - in: query - name: tag_id__n + name: name__iew schema: type: array items: - type: integer - description: Tag + type: string explode: true style: form - in: query - name: tenant + name: name__isw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nic schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group__n + name: name__nie schema: type: array items: type: string - description: Tenant group (slug) explode: true style: form - in: query - name: tenant_group_id + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: outer_depth schema: type: array items: type: integer - description: Tenant group + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: outer_depth__empty + schema: + type: boolean + - in: query + name: outer_depth__gt schema: type: array items: type: integer - description: Tenant group + format: int32 explode: true style: form - in: query - name: tenant_id + name: outer_depth__gte schema: type: array items: type: integer - description: Tenant + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: outer_depth__lt schema: type: array items: type: integer - description: Tenant + format: int32 explode: true style: form - in: query - name: updated_by_request + name: outer_depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: outer_unit schema: type: string - format: uuid + x-spec-enum-id: 86a846b6c40f495e + enum: + - in + - mm + description: '* `mm` - Millimeters + + * `in` - Inches' - in: query - name: weight + name: outer_width schema: type: array items: @@ -53241,11 +75939,11 @@ paths: explode: true style: form - in: query - name: weight__empty + name: outer_width__empty schema: type: boolean - in: query - name: weight__gt + name: outer_width__gt schema: type: array items: @@ -53254,7 +75952,7 @@ paths: explode: true style: form - in: query - name: weight__gte + name: outer_width__gte schema: type: array items: @@ -53263,7 +75961,7 @@ paths: explode: true style: form - in: query - name: weight__lt + name: outer_width__lt schema: type: array items: @@ -53272,7 +75970,7 @@ paths: explode: true style: form - in: query - name: weight__lte + name: outer_width__lte schema: type: array items: @@ -53281,7 +75979,7 @@ paths: explode: true style: form - in: query - name: weight__n + name: outer_width__n schema: type: array items: @@ -53289,438 +75987,173 @@ paths: format: int32 explode: true style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConfigContextList' - description: '' - post: - operationId: extras_config_contexts_create - description: Post a list of config context objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - put: - operationId: extras_config_contexts_bulk_update - description: Put a list of config context objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContext' - description: '' - patch: - operationId: extras_config_contexts_bulk_partial_update - description: Patch a list of config context objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContext' - description: '' - delete: - operationId: extras_config_contexts_bulk_destroy - description: Delete a list of config context objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/config-contexts/{id}/: - get: - operationId: extras_config_contexts_retrieve - description: Get a config context object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - put: - operationId: extras_config_contexts_update - description: Put a config context object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - patch: - operationId: extras_config_contexts_partial_update - description: Patch a config context object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedConfigContextRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - delete: - operationId: extras_config_contexts_destroy - description: Delete a config context object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/config-contexts/{id}/sync/: - post: - operationId: extras_config_contexts_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this config context. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigContext' - description: '' - /api/extras/config-templates/: - get: - operationId: extras_config_templates_list - description: Get a list of config template objects. - parameters: - in: query - name: auto_sync_enabled + name: q schema: - type: boolean + type: string + description: Search - in: query - name: created + name: rack_type schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: created__empty + name: rack_type__n schema: type: array items: type: string - format: date-time + description: Rack type (slug) explode: true style: form - in: query - name: created__gt + name: rack_type_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Rack type (ID) explode: true style: form - in: query - name: created__gte + name: rack_type_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Rack type (ID) explode: true style: form - in: query - name: created__lt + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: region_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: region_id__n schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: data_file_id + name: role schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string + description: Role (slug) explode: true style: form - in: query - name: data_file_id__n + name: role__n schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string + description: Role (slug) explode: true style: form - in: query - name: data_source_id + name: role_id schema: type: array items: type: integer nullable: true - description: Data source (ID) + description: Role (ID) explode: true style: form - in: query - name: data_source_id__n + name: role_id__n schema: type: array items: type: integer nullable: true - description: Data source (ID) + description: Role (ID) explode: true style: form - in: query - name: data_synced + name: serial schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__empty + name: serial__empty schema: type: boolean - in: query - name: data_synced__gt + name: serial__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__gte + name: serial__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lt + name: serial__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__lte + name: serial__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: data_synced__n + name: serial__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: description + name: serial__nic schema: type: array items: @@ -53728,11 +76161,15 @@ paths: explode: true style: form - in: query - name: description__empty + name: serial__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: description__ic + name: serial__niew schema: type: array items: @@ -53740,7 +76177,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: serial__nisw schema: type: array items: @@ -53748,23 +76185,25 @@ paths: explode: true style: form - in: query - name: description__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: description__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: description__n + name: site_group schema: type: array items: @@ -53772,7 +76211,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: site_group__n schema: type: array items: @@ -53780,7 +76219,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: site_group_id schema: type: array items: @@ -53788,7 +76227,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: site_group_id__n schema: type: array items: @@ -53796,15 +76235,25 @@ paths: explode: true style: form - in: query - name: description__nisw + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: id + name: site_id__n + schema: + type: array + items: + type: integer + description: Site (ID) + explode: true + style: form + - in: query + name: starting_unit schema: type: array items: @@ -53813,11 +76262,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: starting_unit__empty schema: type: boolean - in: query - name: id__gt + name: starting_unit__gt schema: type: array items: @@ -53826,7 +76275,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: starting_unit__gte schema: type: array items: @@ -53835,7 +76284,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: starting_unit__lt schema: type: array items: @@ -53844,7 +76293,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: starting_unit__lte schema: type: array items: @@ -53853,7 +76302,7 @@ paths: explode: true style: form - in: query - name: id__n + name: starting_unit__n schema: type: array items: @@ -53862,93 +76311,236 @@ paths: explode: true style: form - in: query - name: last_updated + name: status schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 explode: true style: form - in: query - name: last_updated__empty + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: last_updated__gt + name: status__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: last_updated__gte + name: status__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: last_updated__lt + name: status__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: last_updated__lte + name: status__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: last_updated__n + name: status__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: status__nie schema: - type: string - format: uuid + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + explode: true + style: form - in: query - name: name + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: name__empty + name: status__nisw schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 0c556d55dc1baa13 + enum: + - active + - available + - deprecated + - planned + - reserved + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + explode: true + style: form - in: query - name: name__ic + name: tag schema: type: array items: @@ -53956,7 +76548,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: tag__n schema: type: array items: @@ -53964,23 +76556,25 @@ paths: explode: true style: form - in: query - name: name__iew + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__isw + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: name__n + name: tenant_group schema: type: array items: @@ -53988,7 +76582,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: tenant_group__n schema: type: array items: @@ -53996,7 +76590,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: tenant_group_id schema: type: array items: @@ -54004,7 +76598,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: tenant_group_id__n schema: type: array items: @@ -54012,44 +76606,81 @@ paths: explode: true style: form - in: query - name: name__nisw + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: tenant_id__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: u_height schema: - type: string + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: u_height__empty schema: - type: string - description: Search + type: boolean - in: query - name: tag + name: u_height__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: u_height__gte schema: type: array items: - type: string + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: u_height__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form - in: query @@ -54057,59 +76688,360 @@ paths: schema: type: string format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedConfigTemplateList' - description: '' - post: - operationId: extras_config_templates_create - description: Post a list of config template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - put: - operationId: extras_config_templates_bulk_update - description: Put a list of config template objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ConfigTemplateRequest' + - in: query + name: weight + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: weight_unit + schema: + type: string + x-spec-enum-id: 7c1876f422815884 + enum: + - g + - kg + - lb + - oz + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + - in: query + name: width + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: Rail-to-rail width + explode: true + style: form + - in: query + name: width__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + - in: query + name: width__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: 9b322795f297a9c3 + enum: + - 10 + - 19 + - 21 + - 23 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + explode: true + style: form + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRackList' + description: '' + post: + operationId: dcim_racks_create + description: Post a list of rack objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableRackRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableRackRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Rack' + description: '' + put: + operationId: dcim_racks_bulk_update + description: Put a list of rack objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RackRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -54121,25 +77053,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: extras_config_templates_bulk_partial_update - description: Patch a list of config template objects. + operationId: dcim_racks_bulk_partial_update + description: Patch a list of rack objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -54151,25 +77083,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: extras_config_templates_bulk_destroy - description: Delete a list of config template objects. + operationId: dcim_racks_bulk_destroy + description: Delete a list of rack objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/RackRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/RackRequest' required: true security: - cookieAuth: [] @@ -54177,19 +77109,19 @@ paths: responses: '204': description: No response body - /api/extras/config-templates/{id}/: + /api/dcim/racks/{id}/: get: - operationId: extras_config_templates_retrieve - description: Get a config template object. + operationId: dcim_racks_retrieve + description: Get a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54198,28 +77130,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Rack' description: '' put: - operationId: extras_config_templates_update - description: Put a config template object. + operationId: dcim_racks_update + description: Put a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + $ref: '#/components/schemas/WritableRackRequest' required: true security: - cookieAuth: [] @@ -54229,28 +77161,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Rack' description: '' patch: - operationId: extras_config_templates_partial_update - description: Patch a config template object. + operationId: dcim_racks_partial_update + description: Patch a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedConfigTemplateRequest' + $ref: '#/components/schemas/PatchedWritableRackRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -54259,94 +77191,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/Rack' description: '' delete: - operationId: extras_config_templates_destroy - description: Delete a config template object. + operationId: dcim_racks_destroy + description: Delete a rack object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. + description: A unique integer value identifying this rack. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/config-templates/{id}/render/: - post: - operationId: extras_config_templates_render_create - description: 'Render a ConfigTemplate using the context data provided (if any). - If the client requests "text/plain" data, - - return the raw rendered content, rather than serialized JSON.' + /api/dcim/racks/{id}/elevation/: + get: + operationId: dcim_racks_elevation_retrieve + description: Rack elevation representing the list of rack units. Also supports + rendering the elevation as an SVG. parameters: - in: query - name: format + name: exclude + schema: + type: integer + - in: query + name: expand_devices + schema: + type: boolean + default: true + - in: query + name: face schema: - type: string enum: - - json - - txt + - front + - rear + type: string + x-spec-enum-id: d2fb9b3f75158b83 + default: front + minLength: 1 + description: '* `front` - Front + + * `rear` - Rear' - in: path name: id schema: type: integer - description: A unique integer value identifying this config template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' + description: A unique integer value identifying this rack. required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplate' - text/plain: - schema: - $ref: '#/components/schemas/ConfigTemplate' - description: '' - /api/extras/config-templates/{id}/sync/: - post: - operationId: extras_config_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id + - in: query + name: include_images + schema: + type: boolean + default: true + - in: query + name: legend_width + schema: + type: integer + default: 30 + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: margin_width + schema: + type: integer + default: 15 + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - in: query + name: q + schema: + type: string + minLength: 1 + - in: query + name: render + schema: + enum: + - json + - svg + type: string + x-spec-enum-id: 09901a5ff13ba07a + default: json + minLength: 1 + description: '* `json` - json + + * `svg` - svg' + - in: query + name: unit_height + schema: + type: integer + - in: query + name: unit_width schema: type: integer - description: A unique integer value identifying this config template. - required: true tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ConfigTemplateRequest' - required: true + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -54355,49 +77308,91 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ConfigTemplate' + $ref: '#/components/schemas/PaginatedRackUnitList' description: '' - /api/extras/custom-field-choice-sets/: + /api/dcim/rear-port-templates/: get: - operationId: extras_custom_field_choice_sets_list - description: Get a list of custom field choice set objects. + operationId: dcim_rear_port_templates_list + description: Get a list of rear port template objects. parameters: - in: query - name: base_choices + name: color schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' + type: array + items: + type: string + explode: true + style: form - in: query - name: base_choices__n + name: color__empty schema: - type: string - x-spec-enum-id: cf0efb5195f85007 - enum: - - IATA - - ISO_3166 - - UN_LOCODE - description: 'Base set of predefined choices (optional) - - - * `IATA` - IATA (Airport codes) - - * `ISO_3166` - ISO 3166 (Country codes) - - * `UN_LOCODE` - UN/LOCODE (Location codes)' + type: boolean - in: query - name: choice + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw schema: type: array items: @@ -54556,6 +77551,26 @@ paths: type: string explode: true style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device type (ID) + explode: true + style: form - in: query name: id schema: @@ -54615,81 +77630,67 @@ paths: explode: true style: form - in: query - name: last_updated + name: label schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: label__empty + schema: + type: boolean + - in: query + name: label__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: label__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: label__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: label__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: label__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: label__nic schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: label__nie schema: type: array items: @@ -54697,11 +77698,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: label__niew schema: type: array items: @@ -54709,7 +77706,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: label__nisw schema: type: array items: @@ -54717,347 +77714,101 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - name: offset + - name: limit required: false in: query - description: The initial index from which to return the results. + description: Number of results to return per page. schema: type: integer - in: query - name: order_alphabetically - schema: - type: boolean - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request + name: modified_by_request schema: type: string format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' - description: '' - post: - operationId: extras_custom_field_choice_sets_create - description: Post a list of custom field choice set objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - put: - operationId: extras_custom_field_choice_sets_bulk_update - description: Put a list of custom field choice set objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - patch: - operationId: extras_custom_field_choice_sets_bulk_partial_update - description: Patch a list of custom field choice set objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - delete: - operationId: extras_custom_field_choice_sets_bulk_destroy - description: Delete a list of custom field choice set objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/custom-field-choice-sets/{id}/: - get: - operationId: extras_custom_field_choice_sets_retrieve - description: Get a custom field choice set object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - put: - operationId: extras_custom_field_choice_sets_update - description: Put a custom field choice set object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - patch: - operationId: extras_custom_field_choice_sets_partial_update - description: Patch a custom field choice set object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - delete: - operationId: extras_custom_field_choice_sets_destroy - description: Delete a custom field choice set object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/custom-field-choice-sets/{id}/choices/: - get: - operationId: extras_custom_field_choice_sets_choices_retrieve - description: Provides an endpoint to iterate through each choice in a set. - parameters: - - in: path - name: id + - in: query + name: module_type_id schema: - type: integer - description: A unique integer value identifying this custom field choice set. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomFieldChoiceSet' - description: '' - /api/extras/custom-fields/: - get: - operationId: extras_custom_fields_list - description: Get a list of custom field objects. - parameters: + type: array + items: + type: integer + nullable: true + description: Module type (ID) + explode: true + style: form - in: query - name: choice_set + name: module_type_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Module type (ID) explode: true style: form - in: query - name: choice_set__n + name: name schema: type: array items: @@ -55065,359 +77816,2004 @@ paths: explode: true style: form - in: query - name: choice_set_id + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: choice_set_id__n + name: name__ie schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: created + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - in: query - name: created_by_request + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: description + name: positions schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: positions__empty schema: type: boolean - in: query - name: description__ic + name: positions__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: positions__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: positions__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: positions__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__n + name: positions__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: description__nie + name: type schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - in: query - name: description__niew + name: type__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__nisw + name: type__ic schema: type: array items: type: string - explode: true - style: form - - in: query - name: filter_logic - schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + * `8p6c` - 8P6C - * `disabled` - Disabled + * `8p4c` - 8P4C - * `loose` - Loose + * `8p2c` - 8P2C - * `exact` - Exact' - - in: query - name: filter_logic__n - schema: - type: string - x-spec-enum-id: a958350ae21c10ee - enum: - - disabled - - exact - - loose - description: 'Loose matches any instance of a given string; exact matches - the entire field. + * `6p6c` - 6P6C + * `6p4c` - 6P4C - * `disabled` - Disabled + * `6p2c` - 6P2C - * `loose` - Loose + * `4p4c` - 4P4C - * `exact` - Exact' - - in: query - name: group_name - schema: - type: array - items: - type: string + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__empty - schema: - type: boolean - - in: query - name: group_name__ic + name: type__ie schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__ie + name: type__iew schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__iew + name: type__isw schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__isw + name: type__n schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__n + name: type__nic schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__nic + name: type__nie schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__nie + name: type__niew schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__niew + name: type__nisw schema: type: array items: type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: group_name__nisw + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form - - in: query + type: string + format: uuid + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedRearPortTemplateList' + description: '' + post: + operationId: dcim_rear_port_templates_create + description: Post a list of rear port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableRearPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableRearPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPortTemplate' + description: '' + put: + operationId: dcim_rear_port_templates_bulk_update + description: Put a list of rear port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplate' + description: '' + patch: + operationId: dcim_rear_port_templates_bulk_partial_update + description: Patch a list of rear port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplate' + description: '' + delete: + operationId: dcim_rear_port_templates_bulk_destroy + description: Delete a list of rear port template objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplateRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/RearPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/rear-port-templates/{id}/: + get: + operationId: dcim_rear_port_templates_retrieve + description: Get a rear port template object. + parameters: + - in: path name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty + type: integer + description: A unique integer value identifying this rear port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPortTemplate' + description: '' + put: + operationId: dcim_rear_port_templates_update + description: Put a rear port template object. + parameters: + - in: path + name: id schema: - type: boolean - - in: query - name: id__gt + type: integer + description: A unique integer value identifying this rear port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableRearPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableRearPortTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPortTemplate' + description: '' + patch: + operationId: dcim_rear_port_templates_partial_update + description: Patch a rear port template object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte + type: integer + description: A unique integer value identifying this rear port template. + required: true + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableRearPortTemplateRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/RearPortTemplate' + description: '' + delete: + operationId: dcim_rear_port_templates_destroy + description: Delete a rear port template object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: integer + description: A unique integer value identifying this rear port template. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/rear-ports/: + get: + operationId: dcim_rear_ports_list + description: Get a list of rear port objects. + parameters: - in: query - name: id__lt + name: cable_end schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + x-spec-enum-id: 1db84f9b93b261c8 + enum: + - A + - B + description: '* `A` - A + + * `B` - B' - in: query - name: id__lte + name: cable_id schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: id__n + name: cable_id__n schema: type: array items: type: integer - format: int32 + nullable: true + description: Cable (ID) explode: true style: form - in: query - name: is_cloneable + name: cabled schema: type: boolean - in: query - name: label + name: color schema: type: array items: @@ -55425,11 +79821,11 @@ paths: explode: true style: form - in: query - name: label__empty + name: color__empty schema: type: boolean - in: query - name: label__ic + name: color__ic schema: type: array items: @@ -55437,7 +79833,7 @@ paths: explode: true style: form - in: query - name: label__ie + name: color__ie schema: type: array items: @@ -55445,7 +79841,7 @@ paths: explode: true style: form - in: query - name: label__iew + name: color__iew schema: type: array items: @@ -55453,7 +79849,7 @@ paths: explode: true style: form - in: query - name: label__isw + name: color__isw schema: type: array items: @@ -55461,7 +79857,7 @@ paths: explode: true style: form - in: query - name: label__n + name: color__n schema: type: array items: @@ -55469,7 +79865,7 @@ paths: explode: true style: form - in: query - name: label__nic + name: color__nic schema: type: array items: @@ -55477,7 +79873,7 @@ paths: explode: true style: form - in: query - name: label__nie + name: color__nie schema: type: array items: @@ -55485,7 +79881,7 @@ paths: explode: true style: form - in: query - name: label__niew + name: color__niew schema: type: array items: @@ -55493,7 +79889,7 @@ paths: explode: true style: form - in: query - name: label__nisw + name: color__nisw schema: type: array items: @@ -55501,7 +79897,7 @@ paths: explode: true style: form - in: query - name: last_updated + name: created schema: type: array items: @@ -55510,7 +79906,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__empty schema: type: array items: @@ -55519,7 +79915,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gt schema: type: array items: @@ -55528,7 +79924,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__gte schema: type: array items: @@ -55537,7 +79933,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lt schema: type: array items: @@ -55546,7 +79942,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__lte schema: type: array items: @@ -55555,7 +79951,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__n schema: type: array items: @@ -55563,19 +79959,13 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - in: query - name: name + name: description schema: type: array items: @@ -55583,11 +79973,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -55595,7 +79985,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -55603,7 +79993,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -55611,7 +80001,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -55619,7 +80009,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -55627,7 +80017,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -55635,7 +80025,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -55643,7 +80033,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -55651,7 +80041,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: @@ -55659,319 +80049,400 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id + name: device schema: type: array items: - type: integer + type: string + nullable: true + description: Device (name) explode: true style: form - in: query - name: object_type_id__n + name: device__n schema: type: array items: - type: integer + type: string + nullable: true + description: Device (name) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: related_object_type - schema: - type: string - - in: query - name: related_object_type__n - schema: - type: string - in: query - name: related_object_type_id + name: device_id schema: type: array items: type: integer + description: Device (ID) explode: true style: form - in: query - name: related_object_type_id__n + name: device_id__n schema: type: array items: type: integer + description: Device (ID) explode: true style: form - in: query - name: required - schema: - type: boolean - - in: query - name: search_weight + name: device_role schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: search_weight__empty - schema: - type: boolean - - in: query - name: search_weight__gt + name: device_role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device role (slug) explode: true style: form - in: query - name: search_weight__gte + name: device_role_id schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: search_weight__lt + name: device_role_id__n schema: type: array items: type: integer - format: int32 + description: Device role (ID) explode: true style: form - in: query - name: search_weight__lte + name: device_status schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 explode: true style: form - in: query - name: search_weight__n + name: device_status__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: type + name: device_status__ic schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: type__n + name: device_status__ie schema: type: array items: type: string - x-spec-enum-id: 22e3a64138d10046 - description: The type of data this custom field holds + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: ui_editable + name: device_status__iew schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + * `active` - Active - * `yes` - Yes + * `planned` - Planned - * `no` - No + * `staged` - Staged - * `hidden` - Hidden' + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: ui_editable__n + name: device_status__isw schema: - type: string - x-spec-enum-id: 1065673147e26bb5 - enum: - - hidden - - 'no' - - 'yes' - description: 'Specifies whether the custom field value can be edited in the - UI + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + * `active` - Active - * `yes` - Yes + * `planned` - Planned - * `no` - No + * `staged` - Staged - * `hidden` - Hidden' + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: ui_visible + name: device_status__n schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + * `active` - Active - * `always` - Always + * `planned` - Planned - * `if-set` - If set + * `staged` - Staged - * `hidden` - Hidden' + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: ui_visible__n + name: device_status__nic schema: - type: string - x-spec-enum-id: cd2cf94af56de747 - enum: - - always - - hidden - - if-set - description: 'Specifies whether the custom field is displayed in the UI + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + * `active` - Active - * `always` - Always + * `planned` - Planned - * `if-set` - If set + * `staged` - Staged - * `hidden` - Hidden' - - in: query - name: updated_by_request - schema: - type: string - format: uuid + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: validation_maximum + name: device_status__nie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: validation_maximum__empty + name: device_status__niew schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + explode: true + style: form - in: query - name: validation_maximum__gt + name: device_status__nisw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 8d8971779f16ee18 + enum: + - active + - decommissioning + - failed + - inventory + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' explode: true style: form - in: query - name: validation_maximum__gte + name: device_type schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: validation_maximum__lt + name: device_type__n schema: type: array items: - type: integer - format: int32 + type: string + description: Device type (model) explode: true style: form - in: query - name: validation_maximum__lte + name: device_type_id schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: validation_maximum__n + name: device_type_id__n schema: type: array items: type: integer - format: int32 + description: Device type (ID) explode: true style: form - in: query - name: validation_minimum + name: id schema: type: array items: @@ -55980,11 +80451,11 @@ paths: explode: true style: form - in: query - name: validation_minimum__empty + name: id__empty schema: type: boolean - in: query - name: validation_minimum__gt + name: id__gt schema: type: array items: @@ -55993,7 +80464,7 @@ paths: explode: true style: form - in: query - name: validation_minimum__gte + name: id__gte schema: type: array items: @@ -56002,7 +80473,7 @@ paths: explode: true style: form - in: query - name: validation_minimum__lt + name: id__lt schema: type: array items: @@ -56011,7 +80482,7 @@ paths: explode: true style: form - in: query - name: validation_minimum__lte + name: id__lte schema: type: array items: @@ -56020,7 +80491,7 @@ paths: explode: true style: form - in: query - name: validation_minimum__n + name: id__n schema: type: array items: @@ -56029,7 +80500,7 @@ paths: explode: true style: form - in: query - name: validation_regex + name: label schema: type: array items: @@ -56037,11 +80508,11 @@ paths: explode: true style: form - in: query - name: validation_regex__empty + name: label__empty schema: type: boolean - in: query - name: validation_regex__ic + name: label__ic schema: type: array items: @@ -56049,7 +80520,7 @@ paths: explode: true style: form - in: query - name: validation_regex__ie + name: label__ie schema: type: array items: @@ -56057,7 +80528,7 @@ paths: explode: true style: form - in: query - name: validation_regex__iew + name: label__iew schema: type: array items: @@ -56065,7 +80536,7 @@ paths: explode: true style: form - in: query - name: validation_regex__isw + name: label__isw schema: type: array items: @@ -56073,7 +80544,7 @@ paths: explode: true style: form - in: query - name: validation_regex__n + name: label__n schema: type: array items: @@ -56081,7 +80552,7 @@ paths: explode: true style: form - in: query - name: validation_regex__nic + name: label__nic schema: type: array items: @@ -56089,7 +80560,7 @@ paths: explode: true style: form - in: query - name: validation_regex__nie + name: label__nie schema: type: array items: @@ -56097,7 +80568,7 @@ paths: explode: true style: form - in: query - name: validation_regex__niew + name: label__niew schema: type: array items: @@ -56105,7 +80576,7 @@ paths: explode: true style: form - in: query - name: validation_regex__nisw + name: label__nisw schema: type: array items: @@ -56113,400 +80584,61 @@ paths: explode: true style: form - in: query - name: weight + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: weight__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: weight__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: weight__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: weight__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedCustomFieldList' - description: '' - post: - operationId: extras_custom_fields_create - description: Post a list of custom field objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomField' - description: '' - put: - operationId: extras_custom_fields_bulk_update - description: Put a list of custom field objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomField' - description: '' - patch: - operationId: extras_custom_fields_bulk_partial_update - description: Patch a list of custom field objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomField' - description: '' - delete: - operationId: extras_custom_fields_bulk_destroy - description: Delete a list of custom field objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/CustomFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/custom-fields/{id}/: - get: - operationId: extras_custom_fields_retrieve - description: Get a custom field object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomField' - description: '' - put: - operationId: extras_custom_fields_update - description: Put a custom field object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableCustomFieldRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomField' - description: '' - patch: - operationId: extras_custom_fields_partial_update - description: Patch a custom field object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/CustomField' - description: '' - delete: - operationId: extras_custom_fields_destroy - description: Delete a custom field object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this custom field. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/custom-links/: - get: - operationId: extras_custom_links_list - description: Get a list of custom link objects. - parameters: - - in: query - name: button_class - schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `outline-dark` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' - - in: query - name: button_class__n - schema: - type: string - x-spec-enum-id: 9378cdf56abee54a - enum: - - black - - blue - - cyan - - ghost-dark - - gray - - green - - indigo - - orange - - outline-dark - - pink - - purple - - red - - teal - - white - - yellow - description: 'The class of the first link in a group will be used for the - dropdown button - - - * `outline-dark` - Default - - * `blue` - Blue - - * `indigo` - Indigo - - * `purple` - Purple - - * `pink` - Pink - - * `red` - Red - - * `orange` - Orange - - * `yellow` - Yellow - - * `green` - Green - - * `teal` - Teal - - * `cyan` - Cyan - - * `gray` - Gray - - * `black` - Black - - * `white` - White - - * `ghost-dark` - Link' - in: query - name: created + name: last_updated__n schema: type: array items: @@ -56514,71 +80646,79 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: created__empty + name: location schema: type: array items: type: string - format: date-time + description: Location (slug) explode: true style: form - in: query - name: created__gt + name: location__n schema: type: array items: type: string - format: date-time + description: Location (slug) explode: true style: form - in: query - name: created__gte + name: location_id schema: type: array items: - type: string - format: date-time + type: integer + description: Location (ID) explode: true style: form - in: query - name: created__lt + name: location_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Location (ID) explode: true style: form - in: query - name: created__lte + name: mark_connected + schema: + type: boolean + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: module_id schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: created__n + name: module_id__n schema: type: array items: - type: string - format: date-time + type: integer + nullable: true + description: Module (ID) explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: enabled - schema: - type: boolean - - in: query - name: group_name + name: name schema: type: array items: @@ -56586,11 +80726,11 @@ paths: explode: true style: form - in: query - name: group_name__empty + name: name__empty schema: type: boolean - in: query - name: group_name__ic + name: name__ic schema: type: array items: @@ -56598,7 +80738,7 @@ paths: explode: true style: form - in: query - name: group_name__ie + name: name__ie schema: type: array items: @@ -56606,7 +80746,7 @@ paths: explode: true style: form - in: query - name: group_name__iew + name: name__iew schema: type: array items: @@ -56614,7 +80754,7 @@ paths: explode: true style: form - in: query - name: group_name__isw + name: name__isw schema: type: array items: @@ -56622,7 +80762,7 @@ paths: explode: true style: form - in: query - name: group_name__n + name: name__n schema: type: array items: @@ -56630,7 +80770,7 @@ paths: explode: true style: form - in: query - name: group_name__nic + name: name__nic schema: type: array items: @@ -56638,7 +80778,7 @@ paths: explode: true style: form - in: query - name: group_name__nie + name: name__nie schema: type: array items: @@ -56646,7 +80786,7 @@ paths: explode: true style: form - in: query - name: group_name__niew + name: name__niew schema: type: array items: @@ -56654,7 +80794,7 @@ paths: explode: true style: form - in: query - name: group_name__nisw + name: name__nisw schema: type: array items: @@ -56662,7 +80802,23 @@ paths: explode: true style: form - in: query - name: id + name: occupied + schema: + type: boolean + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: positions schema: type: array items: @@ -56671,11 +80827,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: positions__empty schema: type: boolean - in: query - name: id__gt + name: positions__gt schema: type: array items: @@ -56684,7 +80840,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: positions__gte schema: type: array items: @@ -56693,7 +80849,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: positions__lt schema: type: array items: @@ -56702,7 +80858,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: positions__lte schema: type: array items: @@ -56711,7 +80867,7 @@ paths: explode: true style: form - in: query - name: id__n + name: positions__n schema: type: array items: @@ -56720,161 +80876,72 @@ paths: explode: true style: form - in: query - name: last_updated + name: q + schema: + type: string + description: Search + - in: query + name: rack schema: type: array items: type: string - format: date-time + description: Rack (name) explode: true style: form - in: query - name: last_updated__empty + name: rack__n schema: type: array items: type: string - format: date-time + description: Rack (name) explode: true style: form - in: query - name: last_updated__gt + name: rack_id schema: type: array items: - type: string - format: date-time + type: integer + description: Rack (ID) explode: true style: form - in: query - name: last_updated__gte + name: rack_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Rack (ID) explode: true style: form - in: query - name: last_updated__lt + name: region schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: region__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: region_id schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: link_text - schema: - type: string - - in: query - name: link_text__ic - schema: - type: string - - in: query - name: link_text__ie - schema: - type: string - - in: query - name: link_text__iew - schema: - type: string - - in: query - name: link_text__isw - schema: - type: string - - in: query - name: link_text__n - schema: - type: string - - in: query - name: link_text__nic - schema: - type: string - - in: query - name: link_text__nie - schema: - type: string - - in: query - name: link_text__niew - schema: - type: string - - in: query - name: link_text__nisw - schema: - type: string - - in: query - name: link_url - schema: - type: string - - in: query - name: link_url__ic - schema: - type: string - - in: query - name: link_url__ie - schema: - type: string - - in: query - name: link_url__iew - schema: - type: string - - in: query - name: link_url__isw - schema: - type: string - - in: query - name: link_url__n - schema: - type: string - - in: query - name: link_url__nic - schema: - type: string - - in: query - name: link_url__nie - schema: - type: string - - in: query - name: link_url__niew - schema: - type: string - - in: query - name: link_url__nisw - schema: - type: string - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: region_id__n schema: type: array items: @@ -56882,27 +80949,25 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__ie + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: name__iew + name: site_group schema: type: array items: @@ -56910,7 +80975,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: site_group__n schema: type: array items: @@ -56918,7 +80983,7 @@ paths: explode: true style: form - in: query - name: name__n + name: site_group_id schema: type: array items: @@ -56926,7 +80991,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: site_group_id__n schema: type: array items: @@ -56934,23 +80999,25 @@ paths: explode: true style: form - in: query - name: name__nie + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: name__niew + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: name__nisw + name: tag schema: type: array items: @@ -56958,147 +81025,1635 @@ paths: explode: true style: form - in: query - name: new_window - schema: - type: boolean - - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id + name: tag__n schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: type schema: type: array items: - type: integer + type: string + x-spec-enum-id: c5086c01f1f9c18a explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: updated_by_request + name: type__empty schema: - type: string - format: uuid + type: boolean - in: query - name: weight + name: type__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: type__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: weight__gte + name: type__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: weight__lt + name: type__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' explode: true style: form - in: query - name: weight__lte + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: c5086c01f1f9c18a + enum: + - 110-punch + - 4p2c + - 4p4c + - 6p2c + - 6p4c + - 6p6c + - 8p2c + - 8p4c + - 8p6c + - 8p8c + - bnc + - cs + - f + - fc + - gg45 + - lc + - lc-apc + - lc-pc + - lc-upc + - lsh + - lsh-apc + - lsh-pc + - lsh-upc + - lx5 + - lx5-apc + - lx5-pc + - lx5-upc + - mpo + - mrj21 + - mtrj + - n + - other + - sc + - sc-apc + - sc-pc + - sc-upc + - sma-905 + - sma-906 + - sn + - splice + - st + - tera-1p + - tera-2p + - tera-4p + - urm-p2 + - urm-p4 + - urm-p8 + - usb-a + - usb-b + - usb-c + - usb-micro-a + - usb-micro-ab + - usb-micro-b + - usb-mini-a + - usb-mini-b + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_chassis + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis__n + schema: + type: array + items: + type: string + description: Virtual Chassis + explode: true + style: form + - in: query + name: virtual_chassis_id schema: type: array items: type: integer - format: int32 + description: Virtual Chassis (ID) explode: true style: form - in: query - name: weight__n + name: virtual_chassis_id__n schema: type: array items: type: integer - format: int32 + description: Virtual Chassis (ID) explode: true style: form tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57107,21 +82662,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedCustomLinkList' + $ref: '#/components/schemas/PaginatedRearPortList' description: '' post: - operationId: extras_custom_links_create - description: Post a list of custom link objects. + operationId: dcim_rear_ports_create + description: Post a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -57131,25 +82686,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: extras_custom_links_bulk_update - description: Put a list of custom link objects. + operationId: dcim_rear_ports_bulk_update + description: Put a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -57161,25 +82716,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: extras_custom_links_bulk_partial_update - description: Patch a list of custom link objects. + operationId: dcim_rear_ports_bulk_partial_update + description: Patch a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -57191,25 +82746,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: extras_custom_links_bulk_destroy - description: Delete a list of custom link objects. + operationId: dcim_rear_ports_bulk_destroy + description: Delete a list of rear port objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/RearPortRequest' required: true security: - cookieAuth: [] @@ -57217,19 +82772,19 @@ paths: responses: '204': description: No response body - /api/extras/custom-links/{id}/: + /api/dcim/rear-ports/{id}/: get: - operationId: extras_custom_links_retrieve - description: Get a custom link object. + operationId: dcim_rear_ports_retrieve + description: Get a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57238,28 +82793,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' put: - operationId: extras_custom_links_update - description: Put a custom link object. + operationId: dcim_rear_ports_update + description: Put a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/CustomLinkRequest' + $ref: '#/components/schemas/WritableRearPortRequest' required: true security: - cookieAuth: [] @@ -57269,28 +82824,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' patch: - operationId: extras_custom_links_partial_update - description: Patch a custom link object. + operationId: dcim_rear_ports_partial_update + description: Patch a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedCustomLinkRequest' + $ref: '#/components/schemas/PatchedWritableRearPortRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -57299,78 +82854,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/CustomLink' + $ref: '#/components/schemas/RearPort' description: '' delete: - operationId: extras_custom_links_destroy - description: Delete a custom link object. + operationId: dcim_rear_ports_destroy + description: Delete a rear port object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this custom link. + description: A unique integer value identifying this rear port. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/dashboard/: + /api/dcim/rear-ports/{id}/paths/: get: - operationId: extras_dashboard_retrieve - description: Get a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - put: - operationId: extras_dashboard_update - description: Put a list of dashboard objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/DashboardRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/DashboardRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Dashboard' - description: '' - patch: - operationId: extras_dashboard_partial_update - description: Patch a list of dashboard objects. + operationId: dcim_rear_ports_paths_retrieve + description: Return all CablePaths which traverse a given pass-through port. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this rear port. + required: true tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedDashboardRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedDashboardRequest' + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57379,111 +82895,95 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Dashboard' + $ref: '#/components/schemas/RearPort' description: '' - delete: - operationId: extras_dashboard_destroy - description: Delete a list of dashboard objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/event-rules/: + /api/dcim/regions/: get: - operationId: extras_event_rules_list - description: Get a list of event rule objects. + operationId: dcim_regions_list + description: Get a list of region objects. parameters: - in: query - name: action_object_id + name: ancestor schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__empty + name: ancestor__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__gt + name: ancestor_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__gte + name: ancestor_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_id__lt + name: contact schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: action_object_id__lte + name: contact__n schema: type: array items: type: integer - format: int32 + description: Contact explode: true style: form - in: query - name: action_object_id__n + name: contact_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: action_object_type - schema: - type: string - - in: query - name: action_object_type__n + name: contact_group__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: action_type + name: contact_role schema: type: array items: - type: string - x-spec-enum-id: a08300d86473de6e + type: integer + description: Contact Role explode: true style: form - in: query - name: action_type__n + name: contact_role__n schema: type: array items: - type: string - x-spec-enum-id: a08300d86473de6e + type: integer + description: Contact Role explode: true style: form - in: query @@ -57638,10 +83138,6 @@ paths: type: string explode: true style: form - - in: query - name: enabled - schema: - type: boolean - in: query name: id schema: @@ -57858,81 +83354,107 @@ paths: type: string explode: true style: form - - in: query - name: object_type + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - - in: query - name: object_type__ic + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__ie + name: parent schema: - type: string + type: array + items: + type: string + description: Parent region (slug) + explode: true + style: form - in: query - name: object_type__iew + name: parent__n schema: - type: string + type: array + items: + type: string + description: Parent region (slug) + explode: true + style: form - in: query - name: object_type__isw + name: parent_id schema: - type: string + type: array + items: + type: integer + nullable: true + description: Parent region (ID) + explode: true + style: form - in: query - name: object_type__n + name: parent_id__n schema: - type: string + type: array + items: + type: integer + nullable: true + description: Parent region (ID) + explode: true + style: form - in: query - name: object_type__nic + name: q schema: type: string + description: Search - in: query - name: object_type__nie + name: slug schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: slug__empty schema: - type: string + type: boolean - in: query - name: object_type__nisw + name: slug__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__ie schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: slug__n schema: type: array items: @@ -57940,7 +83462,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nic schema: type: array items: @@ -57948,32 +83470,52 @@ paths: explode: true style: form - in: query - name: type_create + name: slug__nie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_delete + name: slug__niew schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_job_end + name: slug__nisw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_job_start + name: tag schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: type_update + name: tag__n schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -57982,21 +83524,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedEventRuleList' + $ref: '#/components/schemas/PaginatedRegionList' description: '' post: - operationId: extras_event_rules_create - description: Post a list of event rule objects. + operationId: dcim_regions_create + description: Post a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -58006,25 +83548,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' put: - operationId: extras_event_rules_bulk_update - description: Put a list of event rule objects. + operationId: dcim_regions_bulk_update + description: Put a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -58036,25 +83578,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: extras_event_rules_bulk_partial_update - description: Patch a list of event rule objects. + operationId: dcim_regions_bulk_partial_update + description: Patch a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -58066,25 +83608,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: extras_event_rules_bulk_destroy - description: Delete a list of event rule objects. + operationId: dcim_regions_bulk_destroy + description: Delete a list of region objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/EventRuleRequest' + $ref: '#/components/schemas/RegionRequest' required: true security: - cookieAuth: [] @@ -58092,19 +83634,19 @@ paths: responses: '204': description: No response body - /api/extras/event-rules/{id}/: + /api/dcim/regions/{id}/: get: - operationId: extras_event_rules_retrieve - description: Get a event rule object. + operationId: dcim_regions_retrieve + description: Get a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -58113,28 +83655,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' put: - operationId: extras_event_rules_update - description: Put a event rule object. + operationId: dcim_regions_update + description: Put a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableEventRuleRequest' + $ref: '#/components/schemas/WritableRegionRequest' required: true security: - cookieAuth: [] @@ -58144,28 +83686,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' patch: - operationId: extras_event_rules_partial_update - description: Patch a event rule object. + operationId: dcim_regions_partial_update + description: Patch a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableEventRuleRequest' + $ref: '#/components/schemas/PatchedWritableRegionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -58174,149 +83716,126 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/EventRule' + $ref: '#/components/schemas/Region' description: '' delete: - operationId: extras_event_rules_destroy - description: Delete a event rule object. + operationId: dcim_regions_destroy + description: Delete a region object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this event rule. + description: A unique integer value identifying this region. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/export-templates/: + /api/dcim/site-groups/: get: - operationId: extras_export_templates_list - description: Get a list of export template objects. + operationId: dcim_site_groups_list + description: Get a list of site group objects. parameters: - in: query - name: as_attachment - schema: - type: boolean - - in: query - name: auto_sync_enabled - schema: - type: boolean - - in: query - name: created + name: ancestor schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: ancestor__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: ancestor_id schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: ancestor_id__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: data_file_id + name: contact_group__n schema: type: array items: - type: integer - nullable: true - description: Data file (ID) + type: string explode: true style: form - in: query - name: data_file_id__n + name: contact_role schema: type: array items: type: integer - nullable: true - description: Data file (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id + name: contact_role__n schema: type: array items: type: integer - nullable: true - description: Data source (ID) + description: Contact Role explode: true style: form - in: query - name: data_source_id__n + name: created schema: type: array items: - type: integer - nullable: true - description: Data source (ID) + type: string + format: date-time explode: true style: form - in: query - name: data_synced + name: created__empty schema: type: array items: @@ -58325,11 +83844,7 @@ paths: explode: true style: form - in: query - name: data_synced__empty - schema: - type: boolean - - in: query - name: data_synced__gt + name: created__gt schema: type: array items: @@ -58338,7 +83853,7 @@ paths: explode: true style: form - in: query - name: data_synced__gte + name: created__gte schema: type: array items: @@ -58347,7 +83862,7 @@ paths: explode: true style: form - in: query - name: data_synced__lt + name: created__lt schema: type: array items: @@ -58356,7 +83871,7 @@ paths: explode: true style: form - in: query - name: data_synced__lte + name: created__lte schema: type: array items: @@ -58365,7 +83880,7 @@ paths: explode: true style: form - in: query - name: data_synced__n + name: created__n schema: type: array items: @@ -58373,6 +83888,11 @@ paths: format: date-time explode: true style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -58458,96 +83978,12 @@ paths: explode: true style: form - in: query - name: file_extension + name: id schema: type: array items: - type: string - explode: true - style: form - - in: query - name: file_extension__empty - schema: - type: boolean - - in: query - name: file_extension__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: file_extension__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 + type: integer + format: int32 explode: true style: form - in: query @@ -58669,7 +84105,12 @@ paths: schema: type: integer - in: query - name: mime_type + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: @@ -58677,11 +84118,11 @@ paths: explode: true style: form - in: query - name: mime_type__empty + name: name__empty schema: type: boolean - in: query - name: mime_type__ic + name: name__ic schema: type: array items: @@ -58689,7 +84130,7 @@ paths: explode: true style: form - in: query - name: mime_type__ie + name: name__ie schema: type: array items: @@ -58697,7 +84138,7 @@ paths: explode: true style: form - in: query - name: mime_type__iew + name: name__iew schema: type: array items: @@ -58705,7 +84146,7 @@ paths: explode: true style: form - in: query - name: mime_type__isw + name: name__isw schema: type: array items: @@ -58713,7 +84154,7 @@ paths: explode: true style: form - in: query - name: mime_type__n + name: name__n schema: type: array items: @@ -58721,7 +84162,7 @@ paths: explode: true style: form - in: query - name: mime_type__nic + name: name__nic schema: type: array items: @@ -58729,7 +84170,7 @@ paths: explode: true style: form - in: query - name: mime_type__nie + name: name__nie schema: type: array items: @@ -58737,7 +84178,7 @@ paths: explode: true style: form - in: query - name: mime_type__niew + name: name__niew schema: type: array items: @@ -58745,56 +84186,70 @@ paths: explode: true style: form - in: query - name: mime_type__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: modified_by_request + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid - in: query - name: name + name: parent schema: type: array items: type: string + description: Parent site group (slug) explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: parent__n schema: type: array items: type: string + description: Parent site group (slug) explode: true style: form - in: query - name: name__ie + name: parent_id schema: type: array items: - type: string + type: integer + nullable: true + description: Parent site group (ID) explode: true style: form - in: query - name: name__iew + name: parent_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Parent site group (ID) explode: true style: form - in: query - name: name__isw + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -58802,7 +84257,11 @@ paths: explode: true style: form - in: query - name: name__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -58810,7 +84269,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: slug__ie schema: type: array items: @@ -58818,7 +84277,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: slug__iew schema: type: array items: @@ -58826,7 +84285,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: slug__isw schema: type: array items: @@ -58834,7 +84293,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: slug__n schema: type: array items: @@ -58842,85 +84301,60 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__ic - schema: - type: string - - in: query - name: object_type__ie - schema: - type: string - - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie + name: slug__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: slug__nie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: slug__niew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__nisw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: tag schema: type: array items: - type: integer + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: q + name: tag__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -58929,21 +84363,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedExportTemplateList' + $ref: '#/components/schemas/PaginatedSiteGroupList' description: '' post: - operationId: extras_export_templates_create - description: Post a list of export template objects. + operationId: dcim_site_groups_create + description: Post a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -58953,25 +84387,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_export_templates_bulk_update - description: Put a list of export template objects. + operationId: dcim_site_groups_bulk_update + description: Put a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -58983,25 +84417,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_export_templates_bulk_partial_update - description: Patch a list of export template objects. + operationId: dcim_site_groups_bulk_partial_update + description: Patch a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -59013,25 +84447,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_export_templates_bulk_destroy - description: Delete a list of export template objects. + operationId: dcim_site_groups_bulk_destroy + description: Delete a list of site group objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/SiteGroupRequest' required: true security: - cookieAuth: [] @@ -59039,19 +84473,19 @@ paths: responses: '204': description: No response body - /api/extras/export-templates/{id}/: + /api/dcim/site-groups/{id}/: get: - operationId: extras_export_templates_retrieve - description: Get a export template object. + operationId: dcim_site_groups_retrieve + description: Get a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -59060,28 +84494,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' put: - operationId: extras_export_templates_update - description: Put a export template object. + operationId: dcim_site_groups_update + description: Put a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ExportTemplateRequest' + $ref: '#/components/schemas/WritableSiteGroupRequest' required: true security: - cookieAuth: [] @@ -59091,28 +84525,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' patch: - operationId: extras_export_templates_partial_update - description: Patch a export template object. + operationId: dcim_site_groups_partial_update + description: Patch a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedExportTemplateRequest' + $ref: '#/components/schemas/PatchedWritableSiteGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -59121,382 +84555,315 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ExportTemplate' + $ref: '#/components/schemas/SiteGroup' description: '' delete: - operationId: extras_export_templates_destroy - description: Delete a export template object. + operationId: dcim_site_groups_destroy + description: Delete a site group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this export template. + description: A unique integer value identifying this site group. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/export-templates/{id}/sync/: - post: - operationId: extras_export_templates_sync_create - description: Provide a /sync API endpoint to synchronize an object's data from - its associated DataFile (if any). - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this export template. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ExportTemplateRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ExportTemplate' - description: '' - /api/extras/image-attachments/: + /api/dcim/sites/: get: - operationId: extras_image_attachments_list - description: Get a list of image attachment objects. + operationId: dcim_sites_list + description: Get a list of site objects. parameters: - in: query - name: created + name: asn schema: type: array items: - type: string - format: date-time + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: created__empty + name: asn__n schema: type: array items: - type: string - format: date-time + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: AS (ID) explode: true style: form - in: query - name: created__gt + name: asn_id schema: type: array items: - type: string - format: date-time + type: integer + description: AS (ID) explode: true style: form - in: query - name: created__gte + name: asn_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: AS (ID) explode: true style: form - in: query - name: created__lt + name: contact schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__lte + name: contact__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact explode: true style: form - in: query - name: created__n + name: contact_group schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: id + name: contact_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: contact_role schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__gte + name: contact_role__n schema: type: array items: type: integer - format: int32 + description: Contact Role explode: true style: form - in: query - name: id__lt + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__empty - schema: - type: boolean - - in: query - name: image_height__gt + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__gte + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__lt + name: created__n schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: image_height__lte + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: image_height__n + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__empty - schema: - type: boolean - - in: query - name: image_width__gt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__gte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__lt + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__lte + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: image_width__n + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: facility schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: facility__empty + schema: + type: boolean + - in: query + name: facility__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: facility__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: facility__iew schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: facility__isw schema: type: array items: @@ -59504,11 +84871,7 @@ paths: explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: facility__n schema: type: array items: @@ -59516,7 +84879,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: facility__nic schema: type: array items: @@ -59524,7 +84887,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: facility__nie schema: type: array items: @@ -59532,7 +84895,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: facility__niew schema: type: array items: @@ -59540,7 +84903,7 @@ paths: explode: true style: form - in: query - name: name__n + name: facility__nisw schema: type: array items: @@ -59548,7 +84911,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: group schema: type: array items: @@ -59556,7 +84919,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: group__n schema: type: array items: @@ -59564,7 +84927,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: group_id schema: type: array items: @@ -59572,7 +84935,7 @@ paths: explode: true style: form - in: query - name: name__nisw + name: group_id__n schema: type: array items: @@ -59580,7 +84943,7 @@ paths: explode: true style: form - in: query - name: object_id + name: id schema: type: array items: @@ -59589,11 +84952,11 @@ paths: explode: true style: form - in: query - name: object_id__empty + name: id__empty schema: type: boolean - in: query - name: object_id__gt + name: id__gt schema: type: array items: @@ -59602,7 +84965,7 @@ paths: explode: true style: form - in: query - name: object_id__gte + name: id__gte schema: type: array items: @@ -59611,7 +84974,7 @@ paths: explode: true style: form - in: query - name: object_id__lt + name: id__lt schema: type: array items: @@ -59620,7 +84983,7 @@ paths: explode: true style: form - in: query - name: object_id__lte + name: id__lte schema: type: array items: @@ -59629,7 +84992,7 @@ paths: explode: true style: form - in: query - name: object_id__n + name: id__n schema: type: array items: @@ -59638,555 +85001,279 @@ paths: explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type_id - schema: - type: integer - - in: query - name: object_type_id__n - schema: - type: integer - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedImageAttachmentList' - description: '' - post: - operationId: extras_image_attachments_create - description: Post a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_bulk_update - description: Put a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_bulk_partial_update - description: Patch a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachment' - description: '' - delete: - operationId: extras_image_attachments_bulk_destroy - description: Delete a list of image attachment objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/image-attachments/{id}/: - get: - operationId: extras_image_attachments_retrieve - description: Get a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - put: - operationId: extras_image_attachments_update - description: Put a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ImageAttachmentRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - patch: - operationId: extras_image_attachments_partial_update - description: Patch a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedImageAttachmentRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ImageAttachment' - description: '' - delete: - operationId: extras_image_attachments_destroy - description: Delete a image attachment object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this image attachment. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/journal-entries/: - get: - operationId: extras_journal_entries_list - description: Get a list of journal entry objects. - parameters: - - in: query - name: assigned_object_id + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type - schema: - type: string - - in: query - name: assigned_object_type__n - schema: - type: string - - in: query - name: assigned_object_type_id + name: last_updated__n schema: type: array items: - type: integer + type: string + format: date-time explode: true style: form - in: query - name: assigned_object_type_id__n + name: latitude schema: type: array items: - type: integer + type: number + format: double explode: true style: form - in: query - name: created_after + name: latitude__empty schema: - type: string - format: date-time + type: boolean - in: query - name: created_before + name: latitude__gt schema: - type: string - format: date-time + type: array + items: + type: number + format: double + explode: true + style: form - in: query - name: created_by + name: latitude__gte schema: type: array items: - type: string - description: User (name) + type: number + format: double explode: true style: form - in: query - name: created_by__n + name: latitude__lt schema: type: array items: - type: string - description: User (name) + type: number + format: double explode: true style: form - in: query - name: created_by_id + name: latitude__lte schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: number + format: double explode: true style: form - in: query - name: created_by_id__n + name: latitude__n schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: number + format: double explode: true style: form - - in: query - name: created_by_request + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: string - format: uuid + type: integer - in: query - name: id + name: longitude schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__empty + name: longitude__empty schema: type: boolean - in: query - name: id__gt + name: longitude__gt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__gte + name: longitude__gte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__lt + name: longitude__lt schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__lte + name: longitude__lte schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: id__n + name: longitude__n schema: type: array items: - type: integer - format: int32 + type: number + format: double explode: true style: form - in: query - name: kind + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name schema: type: array items: type: string - x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: kind__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: name__nisw schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -60205,7 +85292,7 @@ paths: type: string description: Search - in: query - name: tag + name: region schema: type: array items: @@ -60213,7 +85300,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: region__n schema: type: array items: @@ -60221,633 +85308,422 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedJournalEntryList' - description: '' - post: - operationId: extras_journal_entries_create - description: Post a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - put: - operationId: extras_journal_entries_bulk_update - description: Put a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntry' - description: '' - patch: - operationId: extras_journal_entries_bulk_partial_update - description: Patch a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntry' - description: '' - delete: - operationId: extras_journal_entries_bulk_destroy - description: Delete a list of journal entry objects. - tags: - - extras - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/JournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/journal-entries/{id}/: - get: - operationId: extras_journal_entries_retrieve - description: Get a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - put: - operationId: extras_journal_entries_update - description: Put a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableJournalEntryRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - patch: - operationId: extras_journal_entries_partial_update - description: Patch a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/JournalEntry' - description: '' - delete: - operationId: extras_journal_entries_destroy - description: Delete a journal entry object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this journal entry. - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/object-changes/: - get: - operationId: extras_object_changes_list - description: Retrieve a list of recent changes. - parameters: - - in: query - name: action - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: action__n - schema: - type: string - x-spec-enum-id: 544f9b3b28b7ce6a - enum: - - create - - delete - - update - description: '* `create` - Created - - * `update` - Updated - - * `delete` - Deleted' - - in: query - name: changed_object_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: changed_object_id__empty - schema: - type: boolean - - in: query - name: changed_object_id__gt + name: region_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_id__gte + name: region_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_id__lt + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_id__lte + name: slug__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: changed_object_id__n + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: changed_object_type - schema: - type: string - - in: query - name: changed_object_type__n - schema: - type: string - - in: query - name: changed_object_type_id + name: slug__ie schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: changed_object_type_id__n + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: id + name: slug__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: slug__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: slug__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: slug__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: slug__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: object_repr + name: status schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 explode: true style: form - in: query - name: object_repr__empty + name: status__empty schema: type: boolean - in: query - name: object_repr__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - in: query - name: object_repr__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: e363a8ddb138be50 + enum: + - active + - decommissioning + - planned + - retired + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: related_object_id + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_id__empty - schema: - type: boolean - - in: query - name: related_object_id__gt + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_id__gte + name: tenant schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: related_object_id__lt + name: tenant__n schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: related_object_id__lte + name: tenant_group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_id__n + name: tenant_group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: related_object_type - schema: - type: integer - - in: query - name: related_object_type__n - schema: - type: integer - - in: query - name: request_id - schema: - type: string - format: uuid - - in: query - name: time_after - schema: - type: string - format: date-time - - in: query - name: time_before - schema: - type: string - format: date-time - - in: query - name: user + name: tenant_group_id schema: type: array items: type: string - description: User name explode: true style: form - in: query - name: user__n + name: tenant_group_id__n schema: type: array items: type: string - description: User name explode: true style: form - in: query - name: user_id + name: tenant_id schema: type: array items: type: integer nullable: true - description: User (ID) + description: Tenant (ID) explode: true style: form - in: query - name: user_id__n + name: tenant_id__n schema: type: array items: type: integer nullable: true - description: User (ID) + description: Tenant (ID) explode: true style: form - in: query - name: user_name + name: time_zone schema: type: array items: @@ -60855,11 +85731,7 @@ paths: explode: true style: form - in: query - name: user_name__empty - schema: - type: boolean - - in: query - name: user_name__ic + name: time_zone__ic schema: type: array items: @@ -60867,7 +85739,7 @@ paths: explode: true style: form - in: query - name: user_name__ie + name: time_zone__ie schema: type: array items: @@ -60875,7 +85747,7 @@ paths: explode: true style: form - in: query - name: user_name__iew + name: time_zone__iew schema: type: array items: @@ -60883,7 +85755,7 @@ paths: explode: true style: form - in: query - name: user_name__isw + name: time_zone__isw schema: type: array items: @@ -60891,7 +85763,7 @@ paths: explode: true style: form - in: query - name: user_name__n + name: time_zone__n schema: type: array items: @@ -60899,7 +85771,7 @@ paths: explode: true style: form - in: query - name: user_name__nic + name: time_zone__nic schema: type: array items: @@ -60907,7 +85779,7 @@ paths: explode: true style: form - in: query - name: user_name__nie + name: time_zone__nie schema: type: array items: @@ -60915,7 +85787,7 @@ paths: explode: true style: form - in: query - name: user_name__niew + name: time_zone__niew schema: type: array items: @@ -60923,15 +85795,20 @@ paths: explode: true style: form - in: query - name: user_name__nisw + name: time_zone__nisw schema: type: array items: type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -60940,21 +85817,129 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectChangeList' + $ref: '#/components/schemas/PaginatedSiteList' + description: '' + post: + operationId: dcim_sites_create + description: Post a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Site' + description: '' + put: + operationId: dcim_sites_bulk_update + description: Put a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Site' + description: '' + patch: + operationId: dcim_sites_bulk_partial_update + description: Patch a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Site' description: '' - /api/extras/object-changes/{id}/: + delete: + operationId: dcim_sites_bulk_destroy + description: Delete a list of site objects. + tags: + - dcim + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/SiteRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/sites/{id}/: get: - operationId: extras_object_changes_retrieve - description: Retrieve a list of recent changes. + operationId: dcim_sites_retrieve + description: Get a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this object change. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -60963,50 +85948,29 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectChange' + $ref: '#/components/schemas/Site' description: '' - /api/extras/object-types/: - get: - operationId: extras_object_types_list - description: Read-only list of ObjectTypes. + put: + operationId: dcim_sites_update + description: Put a site object. parameters: - - in: query - name: app_label - schema: - type: string - - in: query + - in: path name: id schema: type: integer - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: model - schema: - type: string - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search + description: A unique integer value identifying this site. + required: true tags: - - extras + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableSiteRequest' + required: true security: - cookieAuth: [] - tokenAuth: [] @@ -61015,21 +85979,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectTypeList' + $ref: '#/components/schemas/Site' description: '' - /api/extras/object-types/{id}/: - get: - operationId: extras_object_types_retrieve - description: Read-only list of ObjectTypes. + patch: + operationId: dcim_sites_partial_update + description: Patch a site object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this object type. + description: A unique integer value identifying this site. required: true tags: - - extras + - dcim + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableSiteRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableSiteRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -61038,12 +86009,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectType' + $ref: '#/components/schemas/Site' description: '' - /api/extras/saved-filters/: + delete: + operationId: dcim_sites_destroy + description: Delete a site object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this site. + required: true + tags: + - dcim + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/dcim/virtual-chassis/: get: - operationId: extras_saved_filters_list - description: Get a list of saved filter objects. + operationId: dcim_virtual_chassis_list + description: Get a list of virtual chassis objects. parameters: - in: query name: created @@ -61198,9 +86187,89 @@ paths: explode: true style: form - in: query - name: enabled + name: domain + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__empty schema: type: boolean + - in: query + name: domain__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: domain__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: id schema: @@ -61328,6 +86397,104 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: master + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master__n + schema: + type: array + items: + type: string + nullable: true + description: Master (name) + explode: true + style: form + - in: query + name: master_id + schema: + type: array + items: + type: integer + nullable: true + description: Master (ID) + explode: true + style: form + - in: query + name: master_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Master (ID) + explode: true + style: form + - in: query + name: member_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__empty + schema: + type: boolean + - in: query + name: member_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: member_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: modified_by_request schema: @@ -61417,97 +86584,25 @@ paths: type: string explode: true style: form - - in: query - name: object_type + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - - in: query - name: object_type__ic + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__ie + name: q schema: type: string + description: Search - in: query - name: object_type__iew - schema: - type: string - - in: query - name: object_type__isw - schema: - type: string - - in: query - name: object_type__n - schema: - type: string - - in: query - name: object_type__nic - schema: - type: string - - in: query - name: object_type__nie - schema: - type: string - - in: query - name: object_type__niew - schema: - type: string - - in: query - name: object_type__nisw - schema: - type: string - - in: query - name: object_type_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: object_type_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: shared - schema: - type: boolean - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: region schema: type: array items: @@ -61515,7 +86610,7 @@ paths: explode: true style: form - in: query - name: slug__ie + name: region__n schema: type: array items: @@ -61523,7 +86618,7 @@ paths: explode: true style: form - in: query - name: slug__iew + name: region_id schema: type: array items: @@ -61531,7 +86626,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: region_id__n schema: type: array items: @@ -61539,23 +86634,25 @@ paths: explode: true style: form - in: query - name: slug__n + name: site schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nic + name: site__n schema: type: array items: type: string + description: Site name (slug) explode: true style: form - in: query - name: slug__nie + name: site_group schema: type: array items: @@ -61563,7 +86660,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: site_group__n schema: type: array items: @@ -61571,7 +86668,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: site_group_id schema: type: array items: @@ -61579,112 +86676,90 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: usable - schema: - type: boolean - - in: query - name: user + name: site_group_id__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: site_id schema: type: array items: - type: string - description: User (name) + type: integer + description: Site (ID) explode: true style: form - in: query - name: user_id + name: site_id__n schema: type: array items: type: integer - nullable: true - description: User (ID) + description: Site (ID) explode: true style: form - in: query - name: user_id__n + name: tag schema: type: array items: - type: integer - nullable: true - description: User (ID) + type: string explode: true style: form - in: query - name: weight + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: weight__empty - schema: - type: boolean - - in: query - name: weight__gt + name: tenant schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: weight__gte + name: tenant__n schema: type: array items: - type: integer - format: int32 + type: string + description: Tenant (slug) explode: true style: form - in: query - name: weight__lt + name: tenant_id schema: type: array items: type: integer - format: int32 + description: Tenant (ID) explode: true style: form - in: query - name: weight__lte + name: tenant_id__n schema: type: array items: type: integer - format: int32 + description: Tenant (ID) explode: true style: form - in: query - name: weight__n + name: updated_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -61693,21 +86768,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedSavedFilterList' + $ref: '#/components/schemas/PaginatedVirtualChassisList' description: '' post: - operationId: extras_saved_filters_create - description: Post a list of saved filter objects. + operationId: dcim_virtual_chassis_create + description: Post a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61717,25 +86792,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_saved_filters_bulk_update - description: Put a list of saved filter objects. + operationId: dcim_virtual_chassis_bulk_update + description: Put a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61747,25 +86822,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_saved_filters_bulk_partial_update - description: Patch a list of saved filter objects. + operationId: dcim_virtual_chassis_bulk_partial_update + description: Patch a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61777,25 +86852,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_saved_filters_bulk_destroy - description: Delete a list of saved filter objects. + operationId: dcim_virtual_chassis_bulk_destroy + description: Delete a list of virtual chassis objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/VirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61803,19 +86878,19 @@ paths: responses: '204': description: No response body - /api/extras/saved-filters/{id}/: + /api/dcim/virtual-chassis/{id}/: get: - operationId: extras_saved_filters_retrieve - description: Get a saved filter object. + operationId: dcim_virtual_chassis_retrieve + description: Get a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -61824,28 +86899,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' put: - operationId: extras_saved_filters_update - description: Put a saved filter object. + operationId: dcim_virtual_chassis_update + description: Put a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/SavedFilterRequest' + $ref: '#/components/schemas/WritableVirtualChassisRequest' required: true security: - cookieAuth: [] @@ -61855,28 +86930,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' patch: - operationId: extras_saved_filters_partial_update - description: Patch a saved filter object. + operationId: dcim_virtual_chassis_partial_update + description: Patch a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedSavedFilterRequest' + $ref: '#/components/schemas/PatchedWritableVirtualChassisRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -61885,119 +86960,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/SavedFilter' + $ref: '#/components/schemas/VirtualChassis' description: '' delete: - operationId: extras_saved_filters_destroy - description: Delete a saved filter object. + operationId: dcim_virtual_chassis_destroy + description: Delete a virtual chassis object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this saved filter. + description: A unique integer value identifying this virtual chassis. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/scripts/: + /api/dcim/virtual-device-contexts/: get: - operationId: extras_scripts_list - description: Get a list of script objects. + operationId: dcim_virtual_device_contexts_list + description: Get a list of virtual device context objects. parameters: - in: query - name: id + name: created schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: created__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: created__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: created__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: created__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: created__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: is_executable - schema: - type: boolean - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: module_id + name: created__n schema: type: array items: - type: integer - description: Script module (ID) + type: string + format: date-time explode: true style: form - in: query - name: module_id__n + name: created_by_request schema: - type: array - items: - type: integer - description: Script module (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: name + name: description schema: type: array items: @@ -62005,11 +87062,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic + name: description__ic schema: type: array items: @@ -62017,7 +87074,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: description__ie schema: type: array items: @@ -62025,7 +87082,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: description__iew schema: type: array items: @@ -62033,7 +87090,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__isw schema: type: array items: @@ -62041,7 +87098,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__n schema: type: array items: @@ -62049,7 +87106,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__nic schema: type: array items: @@ -62057,7 +87114,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__nie schema: type: array items: @@ -62065,7 +87122,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__niew schema: type: array items: @@ -62073,241 +87130,105 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedScriptList' - description: '' - post: - operationId: extras_scripts_create - description: Post a list of script objects. - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - /api/extras/scripts/{id}/: - get: - operationId: extras_scripts_retrieve - description: Get a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - put: - operationId: extras_scripts_update - description: Put a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - patch: - operationId: extras_scripts_partial_update - description: Patch a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/Script' - description: '' - delete: - operationId: extras_scripts_destroy - description: Delete a script object. - parameters: - - in: path - name: id - schema: - type: string - pattern: ^[^/]+$ - required: true - tags: - - extras - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/extras/tags/: - get: - operationId: extras_tags_list - description: Get a list of tag objects. - parameters: - in: query - name: color + name: device schema: type: array items: - type: string + type: integer + description: Device model explode: true style: form - in: query - name: color__empty - schema: - type: boolean - - in: query - name: color__ic + name: device__n schema: type: array items: - type: string + type: integer + description: Device model explode: true style: form - in: query - name: color__ie + name: device_id schema: type: array items: - type: string + type: integer + description: VDC (ID) explode: true style: form - in: query - name: color__iew + name: device_id__n schema: type: array items: - type: string + type: integer + description: VDC (ID) explode: true style: form - in: query - name: color__isw + name: has_primary_ip schema: - type: array - items: - type: string - explode: true - style: form + type: boolean + description: Has a primary IP - in: query - name: color__n + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nic + name: id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: color__nie + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__niew + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: color__nisw + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: content_type + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: content_type_id + name: id__n schema: type: array items: @@ -62316,417 +87237,469 @@ paths: explode: true style: form - in: query - name: created + name: identifier schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__empty + name: identifier__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: identifier__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: identifier__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: identifier__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: identifier__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: identifier__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: interface_id schema: type: array items: - type: string + type: integer + description: Interface (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: interface_id__n schema: type: array items: - type: string + type: integer + description: Interface (ID) explode: true style: form - in: query - name: description__ie + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: description__nisw + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: for_object_type_id + name: modified_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: id + name: name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: name__empty schema: type: boolean - in: query - name: id__gt + name: name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: last_updated__lt + name: primary_ip4_id schema: type: array items: - type: string - format: date-time + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: last_updated__lte + name: primary_ip4_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Primary IPv4 (ID) explode: true style: form - in: query - name: last_updated__n + name: primary_ip6_id schema: type: array items: - type: string - format: date-time + type: integer + description: Primary IPv6 (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: primary_ip6_id__n schema: type: array items: - type: string + type: integer + description: Primary IPv6 (ID) explode: true style: form - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: status schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab explode: true style: form - in: query - name: name__ie + name: status__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: name__iew + name: status__ic schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: name__isw + name: status__ie schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: name__n + name: status__iew schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: name__nic + name: status__isw schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: name__nie + name: status__n schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: name__niew + name: status__nic schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: name__nisw + name: status__nie schema: type: array items: type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: object_types + name: status__niew schema: type: array items: - type: integer + type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - in: query - name: object_types__n + name: status__nisw schema: type: array items: - type: integer + type: string + x-spec-enum-id: ee1ef02def7a91ab + enum: + - active + - offline + - planned + description: '* `active` - Active + + * `planned` - Planned + + * `offline` - Offline' explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - in: query - name: slug + name: tag schema: type: array items: @@ -62734,11 +87707,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: tag__n schema: type: array items: @@ -62746,23 +87715,25 @@ paths: explode: true style: form - in: query - name: slug__ie + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__iew + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__isw + name: tenant_group schema: type: array items: @@ -62770,7 +87741,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tenant_group__n schema: type: array items: @@ -62778,7 +87749,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant_group_id schema: type: array items: @@ -62786,7 +87757,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant_group_id__n schema: type: array items: @@ -62794,19 +87765,23 @@ paths: explode: true style: form - in: query - name: slug__niew + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__nisw + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query @@ -62815,7 +87790,7 @@ paths: type: string format: uuid tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -62824,21 +87799,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTagList' + $ref: '#/components/schemas/PaginatedVirtualDeviceContextList' description: '' post: - operationId: extras_tags_create - description: Post a list of tag objects. + operationId: dcim_virtual_device_contexts_create + description: Post a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62848,25 +87823,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_tags_bulk_update - description: Put a list of tag objects. + operationId: dcim_virtual_device_contexts_bulk_update + description: Put a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62878,25 +87853,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_tags_bulk_partial_update - description: Patch a list of tag objects. + operationId: dcim_virtual_device_contexts_bulk_partial_update + description: Patch a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62908,25 +87883,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_tags_bulk_destroy - description: Delete a list of tag objects. + operationId: dcim_virtual_device_contexts_bulk_destroy + description: Delete a list of virtual device context objects. tags: - - extras + - dcim requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/VirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62934,19 +87909,19 @@ paths: responses: '204': description: No response body - /api/extras/tags/{id}/: + /api/dcim/virtual-device-contexts/{id}/: get: - operationId: extras_tags_retrieve - description: Get a tag object. + operationId: dcim_virtual_device_contexts_retrieve + description: Get a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] @@ -62955,28 +87930,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' put: - operationId: extras_tags_update - description: Put a tag object. + operationId: dcim_virtual_device_contexts_update + description: Put a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TagRequest' + $ref: '#/components/schemas/WritableVirtualDeviceContextRequest' required: true security: - cookieAuth: [] @@ -62986,28 +87961,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' patch: - operationId: extras_tags_partial_update - description: Patch a tag object. + operationId: dcim_virtual_device_contexts_partial_update + description: Patch a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTagRequest' + $ref: '#/components/schemas/PatchedWritableVirtualDeviceContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63016,113 +87991,596 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tag' + $ref: '#/components/schemas/VirtualDeviceContext' description: '' delete: - operationId: extras_tags_destroy - description: Delete a tag object. + operationId: dcim_virtual_device_contexts_destroy + description: Delete a virtual device context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tag. + description: A unique integer value identifying this virtual device context. required: true tags: - - extras + - dcim security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/extras/webhooks/: + /api/extras/bookmarks/: get: - operationId: extras_webhooks_list - description: Get a list of webhook objects. + operationId: extras_bookmarks_list + description: Get a list of bookmark objects. parameters: - in: query - name: ca_file_path + name: created + schema: + type: string + format: date-time + - in: query + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__empty + name: id__empty schema: type: boolean - in: query - name: ca_file_path__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: ca_file_path__nic + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nie + name: object_id__empty + schema: + type: boolean + - in: query + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__niew + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: ca_file_path__nisw + name: object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__empty + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: object_type_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: user + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user__n + schema: + type: array + items: + type: string + description: User (name) + explode: true + style: form + - in: query + name: user_id + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + description: User (ID) + explode: true + style: form + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedBookmarkList' + description: '' + post: + operationId: extras_bookmarks_create + description: Post a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_bulk_update + description: Put a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_bulk_partial_update + description: Patch a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_bulk_destroy + description: Delete a list of bookmark objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/bookmarks/{id}/: + get: + operationId: extras_bookmarks_retrieve + description: Get a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + put: + operationId: extras_bookmarks_update + description: Put a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/BookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/BookmarkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + patch: + operationId: extras_bookmarks_partial_update + description: Patch a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedBookmarkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Bookmark' + description: '' + delete: + operationId: extras_bookmarks_destroy + description: Delete a bookmark object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this bookmark. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/config-contexts/: + get: + operationId: extras_config_contexts_list + description: Get a list of config context objects. + parameters: + - in: query + name: auto_sync_enabled + schema: + type: boolean + - in: query + name: cluster_group + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group__n + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group_id + schema: + type: array + items: + type: integer + description: Cluster group + explode: true + style: form + - in: query + name: cluster_group_id__n + schema: + type: array + items: + type: integer + description: Cluster group + explode: true + style: form + - in: query + name: cluster_id + schema: + type: array + items: + type: integer + description: Cluster + explode: true + style: form + - in: query + name: cluster_id__n + schema: + type: array + items: + type: integer + description: Cluster + explode: true + style: form + - in: query + name: cluster_type + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type__n schema: type: array items: type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type_id + schema: + type: array + items: + type: integer + description: Cluster type + explode: true + style: form + - in: query + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type explode: true style: form - in: query @@ -63194,91 +88652,105 @@ paths: type: string format: uuid - in: query - name: description + name: data_file_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: data_file_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__ie + name: data_source_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__iew + name: data_source_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__isw + name: data_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: http_content_type + name: description schema: type: array items: @@ -63286,11 +88758,11 @@ paths: explode: true style: form - in: query - name: http_content_type__empty + name: description__empty schema: type: boolean - in: query - name: http_content_type__ic + name: description__ic schema: type: array items: @@ -63298,7 +88770,7 @@ paths: explode: true style: form - in: query - name: http_content_type__ie + name: description__ie schema: type: array items: @@ -63306,7 +88778,7 @@ paths: explode: true style: form - in: query - name: http_content_type__iew + name: description__iew schema: type: array items: @@ -63314,7 +88786,7 @@ paths: explode: true style: form - in: query - name: http_content_type__isw + name: description__isw schema: type: array items: @@ -63322,7 +88794,7 @@ paths: explode: true style: form - in: query - name: http_content_type__n + name: description__n schema: type: array items: @@ -63330,7 +88802,7 @@ paths: explode: true style: form - in: query - name: http_content_type__nic + name: description__nic schema: type: array items: @@ -63338,7 +88810,7 @@ paths: explode: true style: form - in: query - name: http_content_type__nie + name: description__nie schema: type: array items: @@ -63346,7 +88818,7 @@ paths: explode: true style: form - in: query - name: http_content_type__niew + name: description__niew schema: type: array items: @@ -63354,7 +88826,7 @@ paths: explode: true style: form - in: query - name: http_content_type__nisw + name: description__nisw schema: type: array items: @@ -63362,21 +88834,57 @@ paths: explode: true style: form - in: query - name: http_method + name: device_role schema: type: array items: type: string - x-spec-enum-id: a12018571a034921 + description: Role (slug) explode: true style: form - in: query - name: http_method__n + name: device_role__n schema: type: array items: type: string - x-spec-enum-id: a12018571a034921 + description: Role (slug) + explode: true + style: form + - in: query + name: device_role_id + schema: + type: array + items: + type: integer + description: Role + explode: true + style: form + - in: query + name: device_role_id__n + schema: + type: array + items: + type: integer + description: Role + explode: true + style: form + - in: query + name: device_type_id + schema: + type: array + items: + type: integer + description: Device type + explode: true + style: form + - in: query + name: device_type_id__n + schema: + type: array + items: + type: integer + description: Device type explode: true style: form - in: query @@ -63437,6 +88945,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_active + schema: + type: boolean - in: query name: last_updated schema: @@ -63506,6 +89018,42 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location__n + schema: + type: array + items: + type: string + description: Location (slug) + explode: true + style: form + - in: query + name: location_id + schema: + type: array + items: + type: integer + description: Location + explode: true + style: form + - in: query + name: location_id__n + schema: + type: array + items: + type: integer + description: Location + explode: true + style: form - in: query name: modified_by_request schema: @@ -63608,11 +89156,39 @@ paths: schema: type: string - in: query - name: payload_url + name: platform + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform__n schema: type: array items: type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform_id + schema: + type: array + items: + type: integer + description: Platform + explode: true + style: form + - in: query + name: platform_id__n + schema: + type: array + items: + type: integer + description: Platform explode: true style: form - in: query @@ -63621,107 +89197,219 @@ paths: type: string description: Search - in: query - name: secret + name: region schema: type: array items: type: string + description: Region (slug) explode: true style: form - in: query - name: secret__empty + name: region__n schema: - type: boolean + type: array + items: + type: string + description: Region (slug) + explode: true + style: form - in: query - name: secret__ic + name: region_id schema: type: array items: - type: string + type: integer + description: Region explode: true style: form - in: query - name: secret__ie + name: region_id__n schema: type: array items: - type: string + type: integer + description: Region explode: true style: form - in: query - name: secret__iew + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: secret__isw + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: secret__n + name: site_group schema: type: array items: type: string + description: Site group (slug) explode: true style: form - in: query - name: secret__nic + name: site_group__n schema: type: array items: type: string + description: Site group (slug) explode: true style: form - in: query - name: secret__nie + name: site_group_id + schema: + type: array + items: + type: integer + description: Site group + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: integer + description: Site group + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + description: Site + explode: true + style: form + - in: query + name: tag schema: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query - name: secret__niew + name: tag__n schema: type: array items: type: string + description: Tag (slug) explode: true style: form - in: query - name: secret__nisw + name: tag_id + schema: + type: array + items: + type: integer + description: Tag + explode: true + style: form + - in: query + name: tag_id__n + schema: + type: array + items: + type: integer + description: Tag + explode: true + style: form + - in: query + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: ssl_verification + name: tenant__n schema: - type: boolean + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form - in: query - name: tag + name: tenant_group schema: type: array items: type: string + description: Tenant group (slug) explode: true style: form - in: query - name: tag__n + name: tenant_group__n schema: type: array items: type: string + description: Tenant group (slug) + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: integer + description: Tenant group + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: integer + description: Tenant group + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + description: Tenant + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + description: Tenant explode: true style: form - in: query @@ -63729,6 +89417,64 @@ paths: schema: type: string format: uuid + - in: query + name: weight + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - extras security: @@ -63739,21 +89485,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWebhookList' + $ref: '#/components/schemas/PaginatedConfigContextList' description: '' post: - operationId: extras_webhooks_create - description: Post a list of webhook objects. + operationId: extras_config_contexts_create + description: Post a list of config context objects. tags: - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63763,11 +89509,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_webhooks_bulk_update - description: Put a list of webhook objects. + operationId: extras_config_contexts_bulk_update + description: Put a list of config context objects. tags: - extras requestBody: @@ -63776,12 +89522,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63793,11 +89539,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_webhooks_bulk_partial_update - description: Patch a list of webhook objects. + operationId: extras_config_contexts_bulk_partial_update + description: Patch a list of config context objects. tags: - extras requestBody: @@ -63806,12 +89552,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63823,11 +89569,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_webhooks_bulk_destroy - description: Delete a list of webhook objects. + operationId: extras_config_contexts_bulk_destroy + description: Delete a list of config context objects. tags: - extras requestBody: @@ -63836,12 +89582,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63849,16 +89595,16 @@ paths: responses: '204': description: No response body - /api/extras/webhooks/{id}/: + /api/extras/config-contexts/{id}/: get: - operationId: extras_webhooks_retrieve - description: Get a webhook object. + operationId: extras_config_contexts_retrieve + description: Get a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63870,17 +89616,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' put: - operationId: extras_webhooks_update - description: Put a webhook object. + operationId: extras_config_contexts_update + description: Put a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63888,10 +89634,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WebhookRequest' + $ref: '#/components/schemas/ConfigContextRequest' required: true security: - cookieAuth: [] @@ -63901,17 +89647,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' patch: - operationId: extras_webhooks_partial_update - description: Patch a webhook object. + operationId: extras_config_contexts_partial_update + description: Patch a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63919,10 +89665,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWebhookRequest' + $ref: '#/components/schemas/PatchedConfigContextRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -63931,17 +89677,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Webhook' + $ref: '#/components/schemas/ConfigContext' description: '' delete: - operationId: extras_webhooks_destroy - description: Delete a webhook object. + operationId: extras_config_contexts_destroy + description: Delete a config context object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this webhook. + description: A unique integer value identifying this config context. required: true tags: - extras @@ -63951,11 +89697,48 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/: + /api/extras/config-contexts/{id}/sync/: + post: + operationId: extras_config_contexts_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config context. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigContext' + description: '' + /api/extras/config-templates/: get: - operationId: ipam_aggregates_list - description: Get a list of aggregate objects. + operationId: extras_config_templates_list + description: Get a list of config template objects. parameters: + - in: query + name: auto_sync_enabled + schema: + type: boolean - in: query name: created schema: @@ -64025,73 +89808,113 @@ paths: type: string format: uuid - in: query - name: date_added + name: data_file_id schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: date_added__empty - schema: - type: boolean - - in: query - name: date_added__gt + name: data_file_id__n schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: date_added__gte + name: data_source_id schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: date_added__lt + name: data_source_id__n schema: type: array items: - type: string - format: date + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: date_added__lte + name: data_synced schema: type: array items: type: string - format: date + format: date-time explode: true style: form - in: query - name: date_added__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string - format: date + format: date-time explode: true style: form - in: query - name: description + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__empty + name: data_synced__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: data_synced__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: type: boolean - in: query @@ -64166,10 +89989,6 @@ paths: type: string explode: true style: form - - in: query - name: family - schema: - type: number - in: query name: id schema: @@ -64302,66 +90121,36 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: prefix - schema: - type: string - description: Prefix - in: query - name: q - schema: - type: string - description: Search - - in: query - name: rir + name: name schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: name__empty schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form + type: boolean - in: query - name: rir_id + name: name__ic schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: name__ie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: tag + name: name__iew schema: type: array items: @@ -64369,7 +90158,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__isw schema: type: array items: @@ -64377,77 +90166,76 @@ paths: explode: true style: form - in: query - name: tenant + name: name__n schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nie schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: name__niew schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: name__nisw schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tenant_group_id__n + name: q schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string + description: Search - in: query - name: tenant_id + name: tag schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -64456,7 +90244,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64465,21 +90253,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedAggregateList' + $ref: '#/components/schemas/PaginatedConfigTemplateList' description: '' post: - operationId: ipam_aggregates_create - description: Post a list of aggregate objects. + operationId: extras_config_templates_create + description: Post a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64489,25 +90277,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: ipam_aggregates_bulk_update - description: Put a list of aggregate objects. + operationId: extras_config_templates_bulk_update + description: Put a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64519,25 +90307,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: ipam_aggregates_bulk_partial_update - description: Patch a list of aggregate objects. + operationId: extras_config_templates_bulk_partial_update + description: Patch a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64549,25 +90337,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: ipam_aggregates_bulk_destroy - description: Delete a list of aggregate objects. + operationId: extras_config_templates_bulk_destroy + description: Delete a list of config template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/AggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64575,19 +90363,19 @@ paths: responses: '204': description: No response body - /api/ipam/aggregates/{id}/: + /api/extras/config-templates/{id}/: get: - operationId: ipam_aggregates_retrieve - description: Get a aggregate object. + operationId: extras_config_templates_retrieve + description: Get a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -64596,28 +90384,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' put: - operationId: ipam_aggregates_update - description: Put a aggregate object. + operationId: extras_config_templates_update + description: Put a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableAggregateRequest' + $ref: '#/components/schemas/ConfigTemplateRequest' required: true security: - cookieAuth: [] @@ -64627,28 +90415,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' patch: - operationId: ipam_aggregates_partial_update - description: Patch a aggregate object. + operationId: extras_config_templates_partial_update + description: Patch a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableAggregateRequest' + $ref: '#/components/schemas/PatchedConfigTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -64657,31 +90445,134 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Aggregate' + $ref: '#/components/schemas/ConfigTemplate' description: '' delete: - operationId: ipam_aggregates_destroy - description: Delete a aggregate object. + operationId: extras_config_templates_destroy + description: Delete a config template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this aggregate. + description: A unique integer value identifying this config template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/: + /api/extras/config-templates/{id}/render/: + post: + operationId: extras_config_templates_render_create + description: 'Render a ConfigTemplate using the context data provided (if any). + If the client requests "text/plain" data, + + return the raw rendered content, rather than serialized JSON.' + parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplate' + text/plain: + schema: + $ref: '#/components/schemas/ConfigTemplate' + description: '' + /api/extras/config-templates/{id}/sync/: + post: + operationId: extras_config_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this config template. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ConfigTemplateRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ConfigTemplate' + description: '' + /api/extras/custom-field-choice-sets/: get: - operationId: ipam_asn_ranges_list - description: Get a list of ASN range objects. + operationId: extras_custom_field_choice_sets_list + description: Get a list of custom field choice set objects. parameters: + - in: query + name: base_choices + schema: + type: string + x-spec-enum-id: cf0efb5195f85007 + enum: + - IATA + - ISO_3166 + - UN_LOCODE + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + - in: query + name: choice + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -64834,64 +90725,6 @@ paths: type: string explode: true style: form - - in: query - name: end - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__empty - schema: - type: boolean - - in: query - name: end__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: end__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: id schema: @@ -65114,6 +90947,10 @@ paths: description: The initial index from which to return the results. schema: type: integer + - in: query + name: order_alphabetically + schema: + type: boolean - name: ordering required: false in: query @@ -65125,281 +90962,13 @@ paths: schema: type: string description: Search - - in: query - name: rir - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir__n - schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form - - in: query - name: rir_id - schema: - type: array - items: - type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: rir_id__n - schema: - type: array - items: - type: integer - description: RIR (ID) - explode: true - style: form - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: start - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__empty - schema: - type: boolean - - in: query - name: start__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: start__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65408,21 +90977,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedASNRangeList' + $ref: '#/components/schemas/PaginatedCustomFieldChoiceSetList' description: '' post: - operationId: ipam_asn_ranges_create - description: Post a list of ASN range objects. + operationId: extras_custom_field_choice_sets_create + description: Post a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65432,25 +91001,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: ipam_asn_ranges_bulk_update - description: Put a list of ASN range objects. + operationId: extras_custom_field_choice_sets_bulk_update + description: Put a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65462,25 +91031,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: ipam_asn_ranges_bulk_partial_update - description: Patch a list of ASN range objects. + operationId: extras_custom_field_choice_sets_bulk_partial_update + description: Patch a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65492,25 +91061,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: ipam_asn_ranges_bulk_destroy - description: Delete a list of ASN range objects. + operationId: extras_custom_field_choice_sets_bulk_destroy + description: Delete a list of custom field choice set objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/CustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65518,19 +91087,19 @@ paths: responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/: + /api/extras/custom-field-choice-sets/{id}/: get: - operationId: ipam_asn_ranges_retrieve - description: Get a ASN range object. + operationId: extras_custom_field_choice_sets_retrieve + description: Get a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65539,28 +91108,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' put: - operationId: ipam_asn_ranges_update - description: Put a ASN range object. + operationId: extras_custom_field_choice_sets_update + description: Put a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ASNRangeRequest' + $ref: '#/components/schemas/WritableCustomFieldChoiceSetRequest' required: true security: - cookieAuth: [] @@ -65570,28 +91139,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' patch: - operationId: ipam_asn_ranges_partial_update - description: Patch a ASN range object. + operationId: extras_custom_field_choice_sets_partial_update + description: Patch a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedASNRangeRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldChoiceSetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -65600,38 +91169,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ASNRange' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' delete: - operationId: ipam_asn_ranges_destroy - description: Delete a ASN range object. + operationId: extras_custom_field_choice_sets_destroy + description: Delete a custom field choice set object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this ASN range. + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/asn-ranges/{id}/available-asns/: + /api/extras/custom-field-choice-sets/{id}/choices/: get: - operationId: ipam_asn_ranges_available_asns_list - description: Get a ASN object. + operationId: extras_custom_field_choice_sets_choices_retrieve + description: Provides an endpoint to iterate through each choice in a set. parameters: - in: path name: id schema: type: integer + description: A unique integer value identifying this custom field choice set. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -65640,107 +91210,45 @@ paths: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/AvailableASN' - description: '' - post: - operationId: ipam_asn_ranges_available_asns_create - description: Post a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' + $ref: '#/components/schemas/CustomFieldChoiceSet' description: '' - /api/ipam/asns/: + /api/extras/custom-fields/: get: - operationId: ipam_asns_list - description: Get a list of ASN objects. + operationId: extras_custom_fields_list + description: Get a list of custom field objects. parameters: - in: query - name: asn - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: asn__empty - schema: - type: boolean - - in: query - name: asn__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: asn__gte + name: choice_set schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lt + name: choice_set__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: asn__lte + name: choice_set_id schema: type: array items: type: integer - format: int32 + nullable: true explode: true style: form - in: query - name: asn__n + name: choice_set_id__n schema: type: array items: type: integer - format: int32 + nullable: true explode: true style: form - in: query @@ -65896,264 +91404,231 @@ paths: explode: true style: form - in: query - name: id + name: filter_logic + schema: + type: string + x-spec-enum-id: a958350ae21c10ee + enum: + - disabled + - exact + - loose + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + - in: query + name: group_name schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: group_name__empty schema: type: boolean - in: query - name: id__gt + name: group_name__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: group_name__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: group_name__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: group_name__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: group_name__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: group_name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: group_name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: group_name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: group_name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__n + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: provider + name: id__gte schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider__n + name: id__lt schema: type: array items: - type: string - description: Provider (slug) + type: integer + format: int32 explode: true style: form - in: query - name: provider_id + name: id__lte schema: type: array items: type: integer - description: Provider (ID) + format: int32 explode: true style: form - in: query - name: provider_id__n + name: id__n schema: type: array items: type: integer - description: Provider (ID) + format: int32 explode: true style: form - in: query - name: q + name: is_cloneable schema: - type: string - description: Search + type: boolean - in: query - name: rir + name: label schema: type: array items: type: string - description: RIR (slug) explode: true style: form - in: query - name: rir__n + name: label__empty schema: - type: array - items: - type: string - description: RIR (slug) - explode: true - style: form + type: boolean - in: query - name: rir_id + name: label__ic schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: rir_id__n + name: label__ie schema: type: array items: - type: integer - description: RIR (ID) + type: string explode: true style: form - in: query - name: site + name: label__iew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: label__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_id + name: label__n schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: site_id__n + name: label__nic schema: type: array items: - type: integer - description: Site (ID) + type: string explode: true style: form - in: query - name: tag + name: label__nie schema: type: array items: @@ -66161,7 +91636,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: label__niew schema: type: array items: @@ -66169,381 +91644,149 @@ paths: explode: true style: form - in: query - name: tenant + name: label__nisw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: last_updated schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant_group + name: last_updated__empty schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + format: date-time explode: true style: form - in: query - name: tenant_group__n + name: last_updated__gt schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string + format: date-time explode: true style: form - in: query - name: tenant_group_id + name: last_updated__gte schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + format: date-time explode: true style: form - in: query - name: tenant_group_id__n + name: last_updated__lt schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string + format: date-time explode: true style: form - in: query - name: tenant_id + name: last_updated__lte schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + format: date-time explode: true style: form - in: query - name: tenant_id__n + name: last_updated__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: updated_by_request + name: modified_by_request schema: type: string format: uuid - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedASNList' - description: '' - post: - operationId: ipam_asns_create - description: Post a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - put: - operationId: ipam_asns_bulk_update - description: Put a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - patch: - operationId: ipam_asns_bulk_partial_update - description: Patch a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASN' - description: '' - delete: - operationId: ipam_asns_bulk_destroy - description: Delete a list of ASN objects. - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/ipam/asns/{id}/: - get: - operationId: ipam_asns_retrieve - description: Get a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - put: - operationId: ipam_asns_update - description: Put a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/ASNRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/ASNRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - patch: - operationId: ipam_asns_partial_update - description: Patch a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedASNRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedASNRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ASN' - description: '' - delete: - operationId: ipam_asns_destroy - description: Delete a ASN object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this ASN. - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/ipam/fhrp-group-assignments/: - get: - operationId: ipam_fhrp_group_assignments_list - description: Get a list of FHRP group assignment objects. - parameters: - in: query - name: created + name: name schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: device + name: name__nie schema: type: array items: @@ -66551,83 +91794,124 @@ paths: explode: true style: form - in: query - name: device_id + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: group_id + name: name__nisw schema: type: array items: - type: integer - description: Group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: object_type schema: - type: array - items: - type: integer - description: Group (ID) - explode: true - style: form + type: string - in: query - name: id + name: object_type__ic schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: id__empty + name: object_type__ie schema: - type: boolean + type: string - in: query - name: id__gt + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: id__gte + name: object_type_id__n schema: type: array items: type: integer - format: int32 explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: id__lt + name: q + schema: + type: string + description: Search + - in: query + name: related_object_type + schema: + type: string + - in: query + name: related_object_type__n + schema: + type: string + - in: query + name: related_object_type_id schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: id__lte + name: related_object_type_id__n schema: type: array items: type: integer - format: int32 explode: true style: form - in: query - name: id__n + name: required + schema: + type: boolean + - in: query + name: search_weight schema: type: array items: @@ -66636,7 +91920,11 @@ paths: explode: true style: form - in: query - name: interface_id + name: search_weight__empty + schema: + type: boolean + - in: query + name: search_weight__gt schema: type: array items: @@ -66645,11 +91933,7 @@ paths: explode: true style: form - in: query - name: interface_id__empty - schema: - type: boolean - - in: query - name: interface_id__gt + name: search_weight__gte schema: type: array items: @@ -66658,7 +91942,7 @@ paths: explode: true style: form - in: query - name: interface_id__gte + name: search_weight__lt schema: type: array items: @@ -66667,7 +91951,7 @@ paths: explode: true style: form - in: query - name: interface_id__lt + name: search_weight__lte schema: type: array items: @@ -66676,7 +91960,7 @@ paths: explode: true style: form - in: query - name: interface_id__lte + name: search_weight__n schema: type: array items: @@ -66685,110 +91969,524 @@ paths: explode: true style: form - in: query - name: interface_id__n + name: type schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: 22e3a64138d10046 + description: The type of data this custom field holds explode: true style: form - in: query - name: interface_type + name: type__empty schema: - type: string + type: boolean - in: query - name: interface_type__n + name: type__ic schema: - type: string + type: array + items: + type: string + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' + explode: true + style: form - in: query - name: last_updated + name: type__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - in: query - name: last_updated__empty + name: type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - in: query - name: last_updated__gt + name: type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - in: query - name: last_updated__gte + name: type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - in: query - name: last_updated__lt + name: type__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - in: query - name: last_updated__lte + name: type__nie schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - in: query - name: last_updated__n + name: type__niew schema: type: array items: type: string - format: date-time + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: type__nisw schema: - type: integer + type: array + items: + type: string + x-spec-enum-id: 22e3a64138d10046 + enum: + - boolean + - date + - datetime + - decimal + - integer + - json + - longtext + - multiobject + - multiselect + - object + - select + - text + - url + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' + explode: true + style: form - in: query - name: modified_by_request + name: ui_editable schema: type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + x-spec-enum-id: 1065673147e26bb5 + enum: + - hidden + - 'no' + - 'yes' + description: 'Specifies whether the custom field value can be edited in the + UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' + - in: query + name: ui_visible schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + x-spec-enum-id: cd2cf94af56de747 + enum: + - always + - hidden + - if-set + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' + - in: query + name: unique + schema: + type: boolean + - in: query + name: updated_by_request schema: type: string + format: uuid - in: query - name: priority + name: validation_maximum schema: type: array items: @@ -66797,11 +92495,11 @@ paths: explode: true style: form - in: query - name: priority__empty + name: validation_maximum__empty schema: type: boolean - in: query - name: priority__gt + name: validation_maximum__gt schema: type: array items: @@ -66810,7 +92508,7 @@ paths: explode: true style: form - in: query - name: priority__gte + name: validation_maximum__gte schema: type: array items: @@ -66819,7 +92517,7 @@ paths: explode: true style: form - in: query - name: priority__lt + name: validation_maximum__lt schema: type: array items: @@ -66828,7 +92526,7 @@ paths: explode: true style: form - in: query - name: priority__lte + name: validation_maximum__lte schema: type: array items: @@ -66837,7 +92535,7 @@ paths: explode: true style: form - in: query - name: priority__n + name: validation_maximum__n schema: type: array items: @@ -66846,12 +92544,65 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: validation_minimum schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: virtual_machine + name: validation_minimum__empty + schema: + type: boolean + - in: query + name: validation_minimum__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_minimum__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: validation_regex schema: type: array items: @@ -66859,7 +92610,132 @@ paths: explode: true style: form - in: query - name: virtual_machine_id + name: validation_regex__empty + schema: + type: boolean + - in: query + name: validation_regex__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: validation_regex__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: weight + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n schema: type: array items: @@ -66868,7 +92744,7 @@ paths: explode: true style: form tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -66877,21 +92753,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' + $ref: '#/components/schemas/PaginatedCustomFieldList' description: '' post: - operationId: ipam_fhrp_group_assignments_create - description: Post a list of FHRP group assignment objects. + operationId: extras_custom_fields_create + description: Post a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -66901,25 +92777,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: ipam_fhrp_group_assignments_bulk_update - description: Put a list of FHRP group assignment objects. + operationId: extras_custom_fields_bulk_update + description: Put a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -66931,25 +92807,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: ipam_fhrp_group_assignments_bulk_partial_update - description: Patch a list of FHRP group assignment objects. + operationId: extras_custom_fields_bulk_partial_update + description: Patch a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -66961,25 +92837,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: ipam_fhrp_group_assignments_bulk_destroy - description: Delete a list of FHRP group assignment objects. + operationId: extras_custom_fields_bulk_destroy + description: Delete a list of custom field objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/CustomFieldRequest' required: true security: - cookieAuth: [] @@ -66987,19 +92863,19 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-group-assignments/{id}/: + /api/extras/custom-fields/{id}/: get: - operationId: ipam_fhrp_group_assignments_retrieve - description: Get a FHRP group assignment object. + operationId: extras_custom_fields_retrieve + description: Get a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -67008,28 +92884,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' put: - operationId: ipam_fhrp_group_assignments_update - description: Put a FHRP group assignment object. + operationId: extras_custom_fields_update + description: Put a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupAssignmentRequest' + $ref: '#/components/schemas/WritableCustomFieldRequest' required: true security: - cookieAuth: [] @@ -67039,28 +92915,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' patch: - operationId: ipam_fhrp_group_assignments_partial_update - description: Patch a FHRP group assignment object. + operationId: extras_custom_fields_partial_update + description: Patch a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' + $ref: '#/components/schemas/PatchedWritableCustomFieldRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67069,135 +92945,85 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupAssignment' + $ref: '#/components/schemas/CustomField' description: '' delete: - operationId: ipam_fhrp_group_assignments_destroy - description: Delete a FHRP group assignment object. + operationId: extras_custom_fields_destroy + description: Delete a custom field object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group assignment. + description: A unique integer value identifying this custom field. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/fhrp-groups/: + /api/extras/custom-links/: get: - operationId: ipam_fhrp_groups_list - description: Get a list of FHRP group objects. + operationId: extras_custom_links_list + description: Get a list of custom link objects. parameters: - in: query - name: auth_key - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__empty - schema: - type: boolean - - in: query - name: auth_key__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_key__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_type - schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form - - in: query - name: auth_type__n + name: button_class schema: - type: array - items: - type: string - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - explode: true - style: form + type: string + x-spec-enum-id: ee8e5bb1ccdcdb19 + enum: + - black + - blue + - cyan + - default + - ghost-dark + - gray + - green + - indigo + - orange + - pink + - purple + - red + - teal + - white + - yellow + description: 'The class of the first link in a group will be used for the + dropdown button + + + * `default` - Default + + * `blue` - Blue + + * `indigo` - Indigo + + * `purple` - Purple + + * `pink` - Pink + + * `red` - Red + + * `orange` - Orange + + * `yellow` - Yellow + + * `green` - Green + + * `teal` - Teal + + * `cyan` - Cyan + + * `gray` - Gray + + * `black` - Black + + * `white` - White + + * `ghost-dark` - Link' - in: query name: created schema: @@ -67267,19 +93093,11 @@ paths: type: string format: uuid - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty + name: enabled schema: type: boolean - in: query - name: description__ic + name: group_name schema: type: array items: @@ -67287,15 +93105,11 @@ paths: explode: true style: form - in: query - name: description__ie + name: group_name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__iew + name: group_name__ic schema: type: array items: @@ -67303,7 +93117,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: group_name__ie schema: type: array items: @@ -67311,7 +93125,7 @@ paths: explode: true style: form - in: query - name: description__n + name: group_name__iew schema: type: array items: @@ -67319,7 +93133,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: group_name__isw schema: type: array items: @@ -67327,7 +93141,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: group_name__n schema: type: array items: @@ -67335,7 +93149,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: group_name__nic schema: type: array items: @@ -67343,7 +93157,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: group_name__nie schema: type: array items: @@ -67351,61 +93165,19 @@ paths: explode: true style: form - in: query - name: group_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__empty - schema: - type: boolean - - in: query - name: group_id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: group_id__lte + name: group_name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: group_id__n + name: group_name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -67535,6 +93307,86 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: link_text + schema: + type: string + - in: query + name: link_text__ic + schema: + type: string + - in: query + name: link_text__ie + schema: + type: string + - in: query + name: link_text__iew + schema: + type: string + - in: query + name: link_text__isw + schema: + type: string + - in: query + name: link_text__n + schema: + type: string + - in: query + name: link_text__nic + schema: + type: string + - in: query + name: link_text__nie + schema: + type: string + - in: query + name: link_text__niew + schema: + type: string + - in: query + name: link_text__nisw + schema: + type: string + - in: query + name: link_url + schema: + type: string + - in: query + name: link_url__ic + schema: + type: string + - in: query + name: link_url__ie + schema: + type: string + - in: query + name: link_url__iew + schema: + type: string + - in: query + name: link_url__isw + schema: + type: string + - in: query + name: link_url__n + schema: + type: string + - in: query + name: link_url__nic + schema: + type: string + - in: query + name: link_url__nie + schema: + type: string + - in: query + name: link_url__niew + schema: + type: string + - in: query + name: link_url__nisw + schema: + type: string - in: query name: modified_by_request schema: @@ -67624,72 +93476,148 @@ paths: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: new_window schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: boolean + - in: query + name: object_type schema: type: string - in: query - name: protocol + name: object_type__ic schema: - type: array - items: - type: string - x-spec-enum-id: 40dc831c689b4b78 - explode: true - style: form + type: string - in: query - name: protocol__n + name: object_type__ie schema: - type: array - items: - type: string - x-spec-enum-id: 40dc831c689b4b78 - explode: true - style: form + type: string - in: query - name: q + name: object_type__iew schema: type: string - description: Search - in: query - name: related_ip + name: object_type__isw schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: tag + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: tag__n + name: object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - - in: query - name: updated_by_request + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: string - format: uuid - tags: - - ipam + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: weight + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + tags: + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -67698,21 +93626,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedFHRPGroupList' + $ref: '#/components/schemas/PaginatedCustomLinkList' description: '' post: - operationId: ipam_fhrp_groups_create - description: Post a list of FHRP group objects. + operationId: extras_custom_links_create + description: Post a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67722,25 +93650,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: ipam_fhrp_groups_bulk_update - description: Put a list of FHRP group objects. + operationId: extras_custom_links_bulk_update + description: Put a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67752,25 +93680,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: ipam_fhrp_groups_bulk_partial_update - description: Patch a list of FHRP group objects. + operationId: extras_custom_links_bulk_partial_update + description: Patch a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67782,25 +93710,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: ipam_fhrp_groups_bulk_destroy - description: Delete a list of FHRP group objects. + operationId: extras_custom_links_bulk_destroy + description: Delete a list of custom link objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67808,19 +93736,19 @@ paths: responses: '204': description: No response body - /api/ipam/fhrp-groups/{id}/: + /api/extras/custom-links/{id}/: get: - operationId: ipam_fhrp_groups_retrieve - description: Get a FHRP group object. + operationId: extras_custom_links_retrieve + description: Get a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -67829,28 +93757,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' put: - operationId: ipam_fhrp_groups_update - description: Put a FHRP group object. + operationId: extras_custom_links_update + description: Put a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/CustomLinkRequest' required: true security: - cookieAuth: [] @@ -67860,28 +93788,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' patch: - operationId: ipam_fhrp_groups_partial_update - description: Patch a FHRP group object. + operationId: extras_custom_links_partial_update + description: Patch a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedFHRPGroupRequest' + $ref: '#/components/schemas/PatchedCustomLinkRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -67890,46 +93818,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/CustomLink' description: '' delete: - operationId: ipam_fhrp_groups_destroy - description: Delete a FHRP group object. + operationId: extras_custom_links_destroy + description: Delete a custom link object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this FHRP group. + description: A unique integer value identifying this custom link. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/ip-addresses/: + /api/extras/dashboard/: get: - operationId: ipam_ip_addresses_list - description: Get a list of IP address objects. + operationId: extras_dashboard_retrieve + description: Get a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + put: + operationId: extras_dashboard_update + description: Put a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/DashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/DashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + patch: + operationId: extras_dashboard_partial_update + description: Patch a list of dashboard objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedDashboardRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Dashboard' + description: '' + delete: + operationId: extras_dashboard_destroy + description: Delete a list of dashboard objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/event-rules/: + get: + operationId: extras_event_rules_list + description: Get a list of event rule objects. parameters: - in: query - name: address + name: action_object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: assigned - schema: - type: boolean - description: Is assigned - - in: query - name: assigned_object_id + name: action_object_id__empty schema: type: array items: @@ -67938,11 +93935,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__empty - schema: - type: boolean - - in: query - name: assigned_object_id__gt + name: action_object_id__gt schema: type: array items: @@ -67951,7 +93944,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__gte + name: action_object_id__gte schema: type: array items: @@ -67960,7 +93953,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lt + name: action_object_id__lt schema: type: array items: @@ -67969,7 +93962,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__lte + name: action_object_id__lte schema: type: array items: @@ -67978,7 +93971,7 @@ paths: explode: true style: form - in: query - name: assigned_object_id__n + name: action_object_id__n schema: type: array items: @@ -67987,189 +93980,258 @@ paths: explode: true style: form - in: query - name: assigned_object_type - schema: - type: integer - - in: query - name: assigned_object_type__n + name: action_object_type schema: - type: integer + type: string - in: query - name: assigned_to_interface + name: action_object_type__n schema: - type: boolean - description: Is assigned to an interface + type: string - in: query - name: created + name: action_type schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 explode: true style: form - in: query - name: created__empty + name: action_type__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: action_type__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: created__gte + name: action_type__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: created__lt + name: action_type__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: created__lte + name: action_type__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: created__n + name: action_type__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: action_type__nic schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: action_type__nie schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: description__ie + name: action_type__niew schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: description__iew + name: action_type__nisw schema: type: array items: type: string + x-spec-enum-id: d07193c73ebc03c6 + enum: + - notification + - script + - webhook + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' explode: true style: form - in: query - name: description__isw + name: created schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: device_id + name: created_by_request schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + format: uuid - in: query - name: dns_name + name: description schema: type: array items: @@ -68177,11 +94239,11 @@ paths: explode: true style: form - in: query - name: dns_name__empty + name: description__empty schema: type: boolean - in: query - name: dns_name__ic + name: description__ic schema: type: array items: @@ -68189,7 +94251,7 @@ paths: explode: true style: form - in: query - name: dns_name__ie + name: description__ie schema: type: array items: @@ -68197,7 +94259,7 @@ paths: explode: true style: form - in: query - name: dns_name__iew + name: description__iew schema: type: array items: @@ -68205,7 +94267,7 @@ paths: explode: true style: form - in: query - name: dns_name__isw + name: description__isw schema: type: array items: @@ -68213,7 +94275,7 @@ paths: explode: true style: form - in: query - name: dns_name__n + name: description__n schema: type: array items: @@ -68221,7 +94283,7 @@ paths: explode: true style: form - in: query - name: dns_name__nic + name: description__nic schema: type: array items: @@ -68229,7 +94291,7 @@ paths: explode: true style: form - in: query - name: dns_name__nie + name: description__nie schema: type: array items: @@ -68237,7 +94299,7 @@ paths: explode: true style: form - in: query - name: dns_name__niew + name: description__niew schema: type: array items: @@ -68245,7 +94307,7 @@ paths: explode: true style: form - in: query - name: dns_name__nisw + name: description__nisw schema: type: array items: @@ -68253,25 +94315,15 @@ paths: explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: fhrpgroup_id + name: enabled schema: - type: array - items: - type: integer - description: FHRP group (ID) - explode: true - style: form + type: boolean - in: query - name: fhrpgroup_id__n + name: event_type schema: type: array items: - type: integer - description: FHRP group (ID) + type: string explode: true style: form - in: query @@ -68332,42 +94384,6 @@ paths: format: int32 explode: true style: form - - in: query - name: interface - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface__n - schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - - in: query - name: interface_id__n - schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -68437,60 +94453,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - in: query - name: nat_inside_id - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - in: query - name: nat_inside_id__n - schema: - type: array - items: - type: integer - description: NAT inside IP address (ID) - explode: true - style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent + name: name schema: type: array items: @@ -68498,78 +94467,43 @@ paths: explode: true style: form - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q + name: name__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: name__ic schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP explode: true style: form - in: query - name: role__n + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 10fbcb4930889b0f - description: The functional role of this IP - explode: true - style: form - - in: query - name: service_id - schema: - type: array - items: - type: integer - description: Service (ID) - explode: true - style: form - - in: query - name: service_id__n - schema: - type: array - items: - type: integer - description: Service (ID) explode: true style: form - in: query - name: status + name: name__iew schema: type: array items: type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP explode: true style: form - in: query - name: status__n + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 24935cfee15bd268 - description: The operational status of this IP explode: true style: form - in: query - name: tag + name: name__n schema: type: array items: @@ -68577,7 +94511,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nic schema: type: array items: @@ -68585,181 +94519,125 @@ paths: explode: true style: form - in: query - name: tenant + name: name__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: name__nisw schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: object_type schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form + type: string - in: query - name: tenant_group_id + name: object_type__ic schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string - in: query - name: tenant_group_id__n + name: object_type__ie schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: string - in: query - name: tenant_id + name: object_type__iew schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string - in: query - name: tenant_id__n + name: object_type__isw schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form + type: string - in: query - name: updated_by_request + name: object_type__n schema: type: string - format: uuid - in: query - name: virtual_machine + name: object_type__nic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: virtual_machine_id + name: object_type__nie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: vminterface + name: object_type__niew schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form + type: string - in: query - name: vminterface__n + name: object_type__nisw schema: - type: array - items: - type: string - description: VM interface (name) - explode: true - style: form + type: string - in: query - name: vminterface_id + name: object_type_id schema: type: array items: type: integer - description: VM interface (ID) explode: true style: form - in: query - name: vminterface_id__n + name: object_type_id__n schema: type: array items: type: integer - description: VM interface (ID) explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: vrf + name: q schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form + type: string + description: Search - in: query - name: vrf__n + name: tag schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: tag__n schema: type: array items: - type: integer - nullable: true - description: VRF + type: string explode: true style: form - in: query - name: vrf_id__n + name: updated_by_request schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form + type: string + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -68768,21 +94646,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPAddressList' + $ref: '#/components/schemas/PaginatedEventRuleList' description: '' post: - operationId: ipam_ip_addresses_create - description: Post a list of IP address objects. + operationId: extras_event_rules_create + description: Post a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' required: true security: - cookieAuth: [] @@ -68792,25 +94670,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' put: - operationId: ipam_ip_addresses_bulk_update - description: Put a list of IP address objects. + operationId: extras_event_rules_bulk_update + description: Put a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -68822,25 +94700,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' patch: - operationId: ipam_ip_addresses_bulk_partial_update - description: Patch a list of IP address objects. + operationId: extras_event_rules_bulk_partial_update + description: Patch a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -68852,25 +94730,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' delete: - operationId: ipam_ip_addresses_bulk_destroy - description: Delete a list of IP address objects. + operationId: extras_event_rules_bulk_destroy + description: Delete a list of event rule objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/EventRuleRequest' required: true security: - cookieAuth: [] @@ -68878,19 +94756,19 @@ paths: responses: '204': description: No response body - /api/ipam/ip-addresses/{id}/: + /api/extras/event-rules/{id}/: get: - operationId: ipam_ip_addresses_retrieve - description: Get a IP address object. + operationId: extras_event_rules_retrieve + description: Get a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -68899,28 +94777,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' put: - operationId: ipam_ip_addresses_update - description: Put a IP address object. + operationId: extras_event_rules_update + description: Put a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPAddressRequest' + $ref: '#/components/schemas/WritableEventRuleRequest' required: true security: - cookieAuth: [] @@ -68930,28 +94808,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' patch: - operationId: ipam_ip_addresses_partial_update - description: Patch a IP address object. + operationId: extras_event_rules_partial_update + description: Patch a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPAddressRequest' + $ref: '#/components/schemas/PatchedWritableEventRuleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -68960,36 +94838,39 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/EventRule' description: '' delete: - operationId: ipam_ip_addresses_destroy - description: Delete a IP address object. + operationId: extras_event_rules_destroy + description: Delete a event rule object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP address. + description: A unique integer value identifying this event rule. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/ip-ranges/: + /api/extras/export-templates/: get: - operationId: ipam_ip_ranges_list - description: Get a list of IP range objects. + operationId: extras_export_templates_list + description: Get a list of export template objects. parameters: - in: query - name: contains + name: as_attachment schema: - type: string - description: Ranges which contain this prefix or IP + type: boolean + - in: query + name: auto_sync_enabled + schema: + type: boolean - in: query name: created schema: @@ -69059,91 +94940,105 @@ paths: type: string format: uuid - in: query - name: description + name: data_file_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: data_file_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data file (ID) explode: true style: form - in: query - name: description__ie + name: data_source_id schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__iew + name: data_source_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Data source (ID) explode: true style: form - in: query - name: description__isw + name: data_synced schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: data_synced__empty + schema: + type: boolean + - in: query + name: data_synced__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: data_synced__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: data_synced__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: data_synced__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: data_synced__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: end_address + name: description schema: type: array items: @@ -69151,159 +95046,119 @@ paths: explode: true style: form - in: query - name: family + name: description__empty schema: - type: number + type: boolean - in: query - name: id + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: description__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: last_updated + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: file_extension schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: file_extension__empty + schema: + type: boolean + - in: query + name: file_extension__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: file_extension__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: file_extension__iew schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: mark_utilized - schema: - type: boolean - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: file_extension__isw schema: type: array items: @@ -69311,50 +95166,47 @@ paths: explode: true style: form - in: query - name: q + name: file_extension__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: role + name: file_extension__nic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: file_extension__nie schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: file_extension__niew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: file_extension__nisw schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: size + name: id schema: type: array items: @@ -69363,11 +95215,11 @@ paths: explode: true style: form - in: query - name: size__empty + name: id__empty schema: type: boolean - in: query - name: size__gt + name: id__gt schema: type: array items: @@ -69376,7 +95228,7 @@ paths: explode: true style: form - in: query - name: size__gte + name: id__gte schema: type: array items: @@ -69385,7 +95237,7 @@ paths: explode: true style: form - in: query - name: size__lt + name: id__lt schema: type: array items: @@ -69394,7 +95246,7 @@ paths: explode: true style: form - in: query - name: size__lte + name: id__lte schema: type: array items: @@ -69403,7 +95255,7 @@ paths: explode: true style: form - in: query - name: size__n + name: id__n schema: type: array items: @@ -69412,172 +95264,327 @@ paths: explode: true style: form - in: query - name: start_address + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: status + name: last_updated__empty schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range + format: date-time explode: true style: form - in: query - name: status__n + name: last_updated__gt schema: type: array items: type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this range + format: date-time explode: true style: form - in: query - name: tag + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tag__n + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: tenant + name: last_updated__lte schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - in: query - name: tenant__n + name: last_updated__n schema: type: array items: type: string - description: Tenant (slug) + format: date-time explode: true style: form - - in: query - name: tenant_group - schema: - type: array + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: mime_type + schema: + type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group__n + name: mime_type__empty + schema: + type: boolean + - in: query + name: mime_type__ic schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query - name: tenant_group_id + name: mime_type__ie schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: mime_type__iew schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: mime_type__isw schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tenant_id__n + name: mime_type__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: updated_by_request + name: mime_type__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mime_type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mime_type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mime_type__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: modified_by_request schema: type: string format: uuid - in: query - name: vrf + name: name schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: object_type + schema: + type: string + - in: query + name: object_type__ic + schema: + type: string + - in: query + name: object_type__ie + schema: + type: string + - in: query + name: object_type__iew + schema: + type: string + - in: query + name: object_type__isw + schema: + type: string + - in: query + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: type: integer - nullable: true - description: VRF explode: true style: form - in: query - name: vrf_id__n + name: object_type_id__n schema: type: array items: type: integer - nullable: true - description: VRF explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -69586,21 +95593,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPRangeList' + $ref: '#/components/schemas/PaginatedExportTemplateList' description: '' post: - operationId: ipam_ip_ranges_create - description: Post a list of IP range objects. + operationId: extras_export_templates_create + description: Post a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69610,25 +95617,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: ipam_ip_ranges_bulk_update - description: Put a list of IP range objects. + operationId: extras_export_templates_bulk_update + description: Put a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69640,25 +95647,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: ipam_ip_ranges_bulk_partial_update - description: Patch a list of IP range objects. + operationId: extras_export_templates_bulk_partial_update + description: Patch a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69670,25 +95677,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: ipam_ip_ranges_bulk_destroy - description: Delete a list of IP range objects. + operationId: extras_export_templates_bulk_destroy + description: Delete a list of export template objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69696,19 +95703,19 @@ paths: responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/: + /api/extras/export-templates/{id}/: get: - operationId: ipam_ip_ranges_retrieve - description: Get a IP range object. + operationId: extras_export_templates_retrieve + description: Get a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -69717,28 +95724,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' put: - operationId: ipam_ip_ranges_update - description: Put a IP range object. + operationId: extras_export_templates_update + description: Put a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPRangeRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] @@ -69748,28 +95755,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' patch: - operationId: ipam_ip_ranges_partial_update - description: Patch a IP range object. + operationId: extras_export_templates_partial_update + description: Patch a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPRangeRequest' + $ref: '#/components/schemas/PatchedExportTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -69778,159 +95785,64 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPRange' + $ref: '#/components/schemas/ExportTemplate' description: '' delete: - operationId: ipam_ip_ranges_destroy - description: Delete a IP range object. + operationId: extras_export_templates_destroy + description: Delete a export template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IP range. + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/ip-ranges/{id}/available-ips/: - get: - operationId: ipam_ip_ranges_available_ips_list - description: Get a IP address object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' + /api/extras/export-templates/{id}/sync/: post: - operationId: ipam_ip_ranges_available_ips_create - description: Post a IP address object. + operationId: extras_export_templates_sync_create + description: Provide a /sync API endpoint to synchronize an object's data from + its associated DataFile (if any). parameters: - in: path name: id schema: type: integer + description: A unique integer value identifying this export template. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ExportTemplateRequest' multipart/form-data: schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' + $ref: '#/components/schemas/ExportTemplateRequest' required: true security: - cookieAuth: [] - tokenAuth: [] responses: - '201': + '200': content: application/json: schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' + $ref: '#/components/schemas/ExportTemplate' description: '' - /api/ipam/prefixes/: + /api/extras/image-attachments/: get: - operationId: ipam_prefixes_list - description: Get a list of prefix objects. + operationId: extras_image_attachments_list + description: Get a list of image attachment objects. parameters: - - in: query - name: children - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__empty - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: children__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: contains - schema: - type: string - description: Prefixes which contain this prefix or IP - in: query name: created schema: @@ -70000,7 +95912,7 @@ paths: type: string format: uuid - in: query - name: depth + name: id schema: type: array items: @@ -70009,16 +95921,11 @@ paths: explode: true style: form - in: query - name: depth__empty + name: id__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: depth__gt + name: id__gt schema: type: array items: @@ -70027,7 +95934,7 @@ paths: explode: true style: form - in: query - name: depth__gte + name: id__gte schema: type: array items: @@ -70036,7 +95943,7 @@ paths: explode: true style: form - in: query - name: depth__lt + name: id__lt schema: type: array items: @@ -70045,7 +95952,7 @@ paths: explode: true style: form - in: query - name: depth__lte + name: id__lte schema: type: array items: @@ -70054,7 +95961,7 @@ paths: explode: true style: form - in: query - name: depth__n + name: id__n schema: type: array items: @@ -70063,95 +95970,65 @@ paths: explode: true style: form - in: query - name: description + name: image_height schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: image_height__empty schema: type: boolean - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n + name: image_height__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: image_height__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: image_height__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: image_height__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: image_height__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: family - schema: - type: number - - in: query - name: id + name: image_width schema: type: array items: @@ -70160,11 +96037,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: image_width__empty schema: type: boolean - in: query - name: id__gt + name: image_width__gt schema: type: array items: @@ -70173,7 +96050,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: image_width__gte schema: type: array items: @@ -70182,7 +96059,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: image_width__lt schema: type: array items: @@ -70191,7 +96068,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: image_width__lte schema: type: array items: @@ -70200,7 +96077,7 @@ paths: explode: true style: form - in: query - name: id__n + name: image_width__n schema: type: array items: @@ -70208,10 +96085,6 @@ paths: format: int32 explode: true style: form - - in: query - name: is_pool - schema: - type: boolean - in: query name: last_updated schema: @@ -70281,46 +96154,13 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mark_utilized - schema: - type: boolean - - in: query - name: mask_length - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mask_length__gte - schema: - type: number - - in: query - name: mask_length__lte - schema: - type: number - in: query name: modified_by_request schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: prefix + name: name schema: type: array items: @@ -70328,188 +96168,51 @@ paths: explode: true style: form - in: query - name: present_in_vrf - schema: - type: string - - in: query - name: present_in_vrf_id - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: region_id__n - schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form - - in: query - name: role + name: name__empty schema: - type: array - items: - type: string - description: Role (slug) - explode: true - style: form + type: boolean - in: query - name: role__n + name: name__ic schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) explode: true style: form - in: query - name: site + name: name__ie schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: name__iew schema: type: array items: type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) explode: true style: form - in: query - name: status + name: name__isw schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: status__n + name: name__n schema: type: array items: type: string - x-spec-enum-id: d38bee5f512701d9 - description: Operational status of this prefix explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -70517,7 +96220,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie schema: type: array items: @@ -70525,193 +96228,119 @@ paths: explode: true style: form - in: query - name: tenant + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nisw schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) explode: true style: form - in: query - name: tenant_group__n + name: object_id schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: object_id__empty schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form + type: boolean - in: query - name: tenant_group_id__n + name: object_id__gt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: object_id__gte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: object_id__lt schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: vlan_id + name: object_id__lte schema: type: array items: type: integer - nullable: true - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_id__n + name: object_id__n schema: type: array items: type: integer - nullable: true - description: VLAN (ID) + format: int32 explode: true style: form - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt + name: object_type schema: - type: integer - description: VLAN number (1-4094) + type: string - in: query - name: vlan_vid__gte + name: object_type__n schema: - type: integer - description: VLAN number (1-4094) + type: string - in: query - name: vlan_vid__lt + name: object_type_id schema: type: integer - description: VLAN number (1-4094) - in: query - name: vlan_vid__lte + name: object_type_id__n schema: type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__n + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: type: integer - description: VLAN number (1-4094) - - in: query - name: vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: VRF (RD) - explode: true - style: form - - in: query - name: vrf_id - schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form - - in: query - name: vrf_id__n + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - nullable: true - description: VRF - explode: true - style: form + type: string - in: query - name: within + name: q schema: type: string - description: Within prefix + description: Search - in: query - name: within_include + name: updated_by_request schema: type: string - description: Within and including prefix + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -70720,21 +96349,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedPrefixList' + $ref: '#/components/schemas/PaginatedImageAttachmentList' description: '' post: - operationId: ipam_prefixes_create - description: Post a list of prefix objects. + operationId: extras_image_attachments_create + description: Post a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70744,25 +96373,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: ipam_prefixes_bulk_update - description: Put a list of prefix objects. + operationId: extras_image_attachments_bulk_update + description: Put a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70774,25 +96403,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: ipam_prefixes_bulk_partial_update - description: Patch a list of prefix objects. + operationId: extras_image_attachments_bulk_partial_update + description: Patch a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70804,25 +96433,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: ipam_prefixes_bulk_destroy - description: Delete a list of prefix objects. + operationId: extras_image_attachments_bulk_destroy + description: Delete a list of image attachment objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/PrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70830,19 +96459,19 @@ paths: responses: '204': description: No response body - /api/ipam/prefixes/{id}/: + /api/extras/image-attachments/{id}/: get: - operationId: ipam_prefixes_retrieve - description: Get a prefix object. + operationId: extras_image_attachments_retrieve + description: Get a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -70851,28 +96480,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' put: - operationId: ipam_prefixes_update - description: Put a prefix object. + operationId: extras_image_attachments_update + description: Put a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritablePrefixRequest' + $ref: '#/components/schemas/ImageAttachmentRequest' required: true security: - cookieAuth: [] @@ -70882,28 +96511,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' patch: - operationId: ipam_prefixes_partial_update - description: Patch a prefix object. + operationId: extras_image_attachments_partial_update + description: Patch a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritablePrefixRequest' + $ref: '#/components/schemas/PatchedImageAttachmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -70912,303 +96541,166 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Prefix' + $ref: '#/components/schemas/ImageAttachment' description: '' delete: - operationId: ipam_prefixes_destroy - description: Delete a prefix object. + operationId: extras_image_attachments_destroy + description: Delete a image attachment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this prefix. + description: A unique integer value identifying this image attachment. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/prefixes/{id}/available-ips/: + /api/extras/journal-entries/: get: - operationId: ipam_prefixes_available_ips_list - description: Get a IP address object. + operationId: extras_journal_entries_list + description: Get a list of journal entry objects. parameters: - - in: path - name: id + - in: query + name: assigned_object_id schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableIP' - description: '' - post: - operationId: ipam_prefixes_available_ips_create - description: Post a IP address object. - parameters: - - in: path - name: id + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__empty schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddressRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/IPAddress' - description: '' - /api/ipam/prefixes/{id}/available-prefixes/: - get: - operationId: ipam_prefixes_available_prefixes_list - description: Get a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailablePrefix' - description: '' - post: - operationId: ipam_prefixes_available_prefixes_create - description: Post a prefix object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/PrefixRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/Prefix' - description: '' - /api/ipam/rirs/: - get: - operationId: ipam_rirs_list - description: Get a list of RIR objects. - parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__gt + name: assigned_object_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__gte + name: assigned_object_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: assigned_object_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: assigned_object_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: assigned_object_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request + name: assigned_object_type schema: type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: description__empty + name: assigned_object_type__n schema: - type: boolean + type: string - in: query - name: description__ic + name: assigned_object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: description__ie + name: assigned_object_type_id__n schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: description__iew + name: created_after schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: description__isw + name: created_before schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: date-time - in: query - name: description__n + name: created_by schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__nic + name: created_by__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: description__nie + name: created_by_id schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: description__niew + name: created_by_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: User (ID) explode: true style: form - in: query - name: description__nisw + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query name: id schema: @@ -71268,167 +96760,281 @@ paths: explode: true style: form - in: query - name: is_private - schema: - type: boolean - - in: query - name: last_updated + name: kind schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 explode: true style: form - in: query - name: last_updated__empty + name: kind__empty + schema: + type: boolean + - in: query + name: kind__ic schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: last_updated__gt + name: kind__ie schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: last_updated__gte + name: kind__iew schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: last_updated__lt + name: kind__isw schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: last_updated__lte + name: kind__n schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: last_updated__n + name: kind__nic schema: type: array items: type: string - format: date-time + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query - name: name + name: kind__nie schema: type: array items: type: string + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: kind__niew schema: type: array items: type: string + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: name__ie + name: kind__nisw schema: type: array items: type: string + x-spec-enum-id: a21af280f632fa34 + enum: + - danger + - info + - success + - warning + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' explode: true style: form - in: query - name: name__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - name: offset required: false in: query @@ -71447,7 +97053,7 @@ paths: type: string description: Search - in: query - name: slug + name: tag schema: type: array items: @@ -71455,11 +97061,7 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: tag__n schema: type: array items: @@ -71467,92 +97069,502 @@ paths: explode: true style: form - in: query - name: slug__ie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew + type: string + format: uuid + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedJournalEntryList' + description: '' + post: + operationId: extras_journal_entries_create + description: Post a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + put: + operationId: extras_journal_entries_bulk_update + description: Put a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntry' + description: '' + patch: + operationId: extras_journal_entries_bulk_partial_update + description: Patch a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntry' + description: '' + delete: + operationId: extras_journal_entries_bulk_destroy + description: Delete a list of journal entry objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/JournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/journal-entries/{id}/: + get: + operationId: extras_journal_entries_retrieve + description: Get a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + put: + operationId: extras_journal_entries_update + description: Put a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableJournalEntryRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + patch: + operationId: extras_journal_entries_partial_update + description: Patch a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableJournalEntryRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/JournalEntry' + description: '' + delete: + operationId: extras_journal_entries_destroy + description: Delete a journal entry object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie + type: integer + description: A unique integer value identifying this journal entry. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notification-groups/: + get: + operationId: extras_notification_groups_list + description: Get a list of notification group objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag + type: string + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedNotificationGroupList' + description: '' + post: + operationId: extras_notification_groups_create + description: Post a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + put: + operationId: extras_notification_groups_bulk_update + description: Put a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + description: '' + patch: + operationId: extras_notification_groups_bulk_partial_update + description: Patch a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + description: '' + delete: + operationId: extras_notification_groups_bulk_destroy + description: Delete a list of notification group objects. + tags: + - extras + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notification-groups/{id}/: + get: + operationId: extras_notification_groups_retrieve + description: Get a notification group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + put: + operationId: extras_notification_groups_update + description: Put a notification group object. + parameters: + - in: path + name: id schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/NotificationGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + patch: + operationId: extras_notification_groups_partial_update + description: Patch a notification group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedNotificationGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedNotificationGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/NotificationGroup' + description: '' + delete: + operationId: extras_notification_groups_destroy + description: Delete a notification group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this notification group. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/notifications/: + get: + operationId: extras_notifications_list + description: Get a list of notification objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -71561,21 +97573,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRIRList' + $ref: '#/components/schemas/PaginatedNotificationList' description: '' post: - operationId: ipam_rirs_create - description: Post a list of RIR objects. + operationId: extras_notifications_create + description: Post a list of notification objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -71585,25 +97597,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/Notification' description: '' put: - operationId: ipam_rirs_bulk_update - description: Put a list of RIR objects. + operationId: extras_notifications_bulk_update + description: Put a list of notification objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -71615,25 +97627,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/Notification' description: '' patch: - operationId: ipam_rirs_bulk_partial_update - description: Patch a list of RIR objects. + operationId: extras_notifications_bulk_partial_update + description: Patch a list of notification objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -71645,25 +97657,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/Notification' description: '' delete: - operationId: ipam_rirs_bulk_destroy - description: Delete a list of RIR objects. + operationId: extras_notifications_bulk_destroy + description: Delete a list of notification objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -71671,19 +97683,19 @@ paths: responses: '204': description: No response body - /api/ipam/rirs/{id}/: + /api/extras/notifications/{id}/: get: - operationId: ipam_rirs_retrieve - description: Get a RIR object. + operationId: extras_notifications_retrieve + description: Get a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this notification. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -71692,28 +97704,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/Notification' description: '' put: - operationId: ipam_rirs_update - description: Put a RIR object. + operationId: extras_notifications_update + description: Put a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this notification. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/NotificationRequest' required: true security: - cookieAuth: [] @@ -71723,28 +97735,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/Notification' description: '' patch: - operationId: ipam_rirs_partial_update - description: Patch a RIR object. + operationId: extras_notifications_partial_update + description: Patch a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this notification. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedNotificationRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRIRRequest' + $ref: '#/components/schemas/PatchedNotificationRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -71753,30 +97765,105 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RIR' + $ref: '#/components/schemas/Notification' description: '' delete: - operationId: ipam_rirs_destroy - description: Delete a RIR object. + operationId: extras_notifications_destroy + description: Delete a notification object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this RIR. + description: A unique integer value identifying this notification. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/roles/: + /api/extras/object-types/: get: - operationId: ipam_roles_list - description: Get a list of role objects. + operationId: extras_object_types_list + description: Read-only list of ObjectTypes. + parameters: + - in: query + name: app_label + schema: + type: string + - in: query + name: id + schema: + type: integer + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: model + schema: + type: string + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedObjectTypeList' + description: '' + /api/extras/object-types/{id}/: + get: + operationId: extras_object_types_retrieve + description: Read-only list of ObjectTypes. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this object type. + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/ObjectType' + description: '' + /api/extras/saved-filters/: + get: + operationId: extras_saved_filters_list + description: Get a list of saved filter objects. parameters: - in: query name: created @@ -71930,6 +98017,10 @@ paths: type: string explode: true style: form + - in: query + name: enabled + schema: + type: boolean - in: query name: id schema: @@ -72146,49 +98237,109 @@ paths: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: object_type schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: string + - in: query + name: object_type__ic schema: type: string - in: query - name: q + name: object_type__ie schema: type: string - description: Search - in: query - name: slug + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: slug__empty + name: object_type__isw schema: - type: boolean + type: string - in: query - name: slug__ic + name: object_type__n + schema: + type: string + - in: query + name: object_type__nic + schema: + type: string + - in: query + name: object_type__nie + schema: + type: string + - in: query + name: object_type__niew + schema: + type: string + - in: query + name: object_type__nisw + schema: + type: string + - in: query + name: object_type_id schema: type: array items: - type: string + type: integer explode: true style: form - in: query - name: slug__ie + name: object_type_id__n schema: type: array items: - type: string + type: integer + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: shared + schema: + type: boolean + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -72248,26 +98399,52 @@ paths: explode: true style: form - in: query - name: tag + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: usable + schema: + type: boolean + - in: query + name: user schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: tag__n + name: user__n schema: type: array items: type: string + description: User (name) explode: true style: form - in: query - name: updated_by_request + name: user_id schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: User (ID) + explode: true + style: form + - in: query + name: user_id__n + schema: + type: array + items: + type: integer + nullable: true + description: User (ID) + explode: true + style: form - in: query name: weight schema: @@ -72327,7 +98504,7 @@ paths: explode: true style: form tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -72336,21 +98513,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRoleList' + $ref: '#/components/schemas/PaginatedSavedFilterList' description: '' post: - operationId: ipam_roles_create - description: Post a list of role objects. + operationId: extras_saved_filters_create + description: Post a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72360,25 +98537,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_roles_bulk_update - description: Put a list of role objects. + operationId: extras_saved_filters_bulk_update + description: Put a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72390,25 +98567,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_roles_bulk_partial_update - description: Patch a list of role objects. + operationId: extras_saved_filters_bulk_partial_update + description: Patch a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72420,25 +98597,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_roles_bulk_destroy - description: Delete a list of role objects. + operationId: extras_saved_filters_bulk_destroy + description: Delete a list of saved filter objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72446,19 +98623,19 @@ paths: responses: '204': description: No response body - /api/ipam/roles/{id}/: + /api/extras/saved-filters/{id}/: get: - operationId: ipam_roles_retrieve - description: Get a role object. + operationId: extras_saved_filters_retrieve + description: Get a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -72467,28 +98644,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' put: - operationId: ipam_roles_update - description: Put a role object. + operationId: extras_saved_filters_update + description: Put a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RoleRequest' + $ref: '#/components/schemas/SavedFilterRequest' required: true security: - cookieAuth: [] @@ -72498,28 +98675,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' patch: - operationId: ipam_roles_partial_update - description: Patch a role object. + operationId: extras_saved_filters_partial_update + description: Patch a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRoleRequest' + $ref: '#/components/schemas/PatchedSavedFilterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -72528,267 +98705,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Role' + $ref: '#/components/schemas/SavedFilter' description: '' delete: - operationId: ipam_roles_destroy - description: Delete a role object. + operationId: extras_saved_filters_destroy + description: Delete a saved filter object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this role. + description: A unique integer value identifying this saved filter. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/route-targets/: + /api/extras/scripts/: get: - operationId: ipam_route_targets_list - description: Get a list of route target objects. + operationId: extras_scripts_list + description: Get a list of script objects. parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: exporting_l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) - explode: true - style: form - - in: query - name: exporting_l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Exporting L2VPN (identifier) - explode: true - style: form - - in: query - name: exporting_l2vpn_id - schema: - type: array - items: - type: integer - description: Exporting L2VPN - explode: true - style: form - - in: query - name: exporting_l2vpn_id__n - schema: - type: array - items: - type: integer - description: Exporting L2VPN - explode: true - style: form - - in: query - name: exporting_vrf - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) - explode: true - style: form - - in: query - name: exporting_vrf__n - schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Export VRF (RD) - explode: true - style: form - - in: query - name: exporting_vrf_id - schema: - type: array - items: - type: integer - description: Exporting VRF - explode: true - style: form - - in: query - name: exporting_vrf_id__n - schema: - type: array - items: - type: integer - description: Exporting VRF - explode: true - style: form - in: query name: id schema: @@ -72848,163 +98789,33 @@ paths: explode: true style: form - in: query - name: importing_l2vpn - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form - - in: query - name: importing_l2vpn__n - schema: - type: array - items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: Importing L2VPN (identifier) - explode: true - style: form - - in: query - name: importing_l2vpn_id - schema: - type: array - items: - type: integer - description: Importing L2VPN - explode: true - style: form - - in: query - name: importing_l2vpn_id__n - schema: - type: array - items: - type: integer - description: Importing L2VPN - explode: true - style: form - - in: query - name: importing_vrf + name: is_executable schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) - explode: true - style: form - - in: query - name: importing_vrf__n + type: boolean + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - nullable: true - title: Route distinguisher - description: Import VRF (RD) - explode: true - style: form + type: integer - in: query - name: importing_vrf_id + name: module_id schema: type: array items: type: integer - description: Importing VRF + description: Script module (ID) explode: true style: form - in: query - name: importing_vrf_id__n + name: module_id__n schema: type: array items: type: integer - description: Importing VRF - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time + description: Script module (ID) explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -73106,103 +98917,160 @@ paths: schema: type: string description: Search - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant__n - schema: - type: array - items: - type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedScriptList' + description: '' + post: + operationId: extras_scripts_create + description: Post a list of script objects. + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + /api/extras/scripts/{id}/: + get: + operationId: extras_scripts_retrieve + description: Get a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + put: + operationId: extras_scripts_update + description: Put a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/ScriptInputRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/ScriptInputRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + patch: + operationId: extras_scripts_partial_update + description: Patch a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedScriptInputRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedScriptInputRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Script' + description: '' + delete: + operationId: extras_scripts_destroy + description: Delete a script object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id + type: string + pattern: ^[^/]+$ + required: true + tags: + - extras + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/extras/subscriptions/: + get: + operationId: extras_subscriptions_list + description: Get a list of subscription objects. + parameters: + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n + type: integer + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: updated_by_request + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -73211,21 +99079,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedRouteTargetList' + $ref: '#/components/schemas/PaginatedSubscriptionList' description: '' post: - operationId: ipam_route_targets_create - description: Post a list of route target objects. + operationId: extras_subscriptions_create + description: Post a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73235,25 +99103,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' put: - operationId: ipam_route_targets_bulk_update - description: Put a list of route target objects. + operationId: extras_subscriptions_bulk_update + description: Put a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73265,25 +99133,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' patch: - operationId: ipam_route_targets_bulk_partial_update - description: Patch a list of route target objects. + operationId: extras_subscriptions_bulk_partial_update + description: Patch a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73295,25 +99163,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' delete: - operationId: ipam_route_targets_bulk_destroy - description: Delete a list of route target objects. + operationId: extras_subscriptions_bulk_destroy + description: Delete a list of subscription objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73321,19 +99189,19 @@ paths: responses: '204': description: No response body - /api/ipam/route-targets/{id}/: + /api/extras/subscriptions/{id}/: get: - operationId: ipam_route_targets_retrieve - description: Get a route target object. + operationId: extras_subscriptions_retrieve + description: Get a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -73342,28 +99210,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' put: - operationId: ipam_route_targets_update - description: Put a route target object. + operationId: extras_subscriptions_update + description: Put a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/RouteTargetRequest' + $ref: '#/components/schemas/SubscriptionRequest' required: true security: - cookieAuth: [] @@ -73373,28 +99241,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' patch: - operationId: ipam_route_targets_partial_update - description: Patch a route target object. + operationId: extras_subscriptions_partial_update + description: Patch a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedSubscriptionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedRouteTargetRequest' + $ref: '#/components/schemas/PatchedSubscriptionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -73403,31 +99271,132 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/RouteTarget' + $ref: '#/components/schemas/Subscription' description: '' delete: - operationId: ipam_route_targets_destroy - description: Delete a route target object. + operationId: extras_subscriptions_destroy + description: Delete a subscription object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this route target. + description: A unique integer value identifying this subscription. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/service-templates/: + /api/extras/tags/: get: - operationId: ipam_service_templates_list - description: Get a list of service template objects. + operationId: extras_tags_list + description: Get a list of tag objects. parameters: + - in: query + name: color + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__empty + schema: + type: boolean + - in: query + name: color__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: color__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: content_type + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: content_type_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: created schema: @@ -73580,6 +99549,15 @@ paths: type: string explode: true style: form + - in: query + name: for_object_type_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: id schema: @@ -73796,6 +99774,22 @@ paths: type: string explode: true style: form + - in: query + name: object_types + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: object_types__n + schema: + type: array + items: + type: integer + explode: true + style: form - name: offset required: false in: query @@ -73808,45 +99802,13 @@ paths: description: Which field to use when ordering the results. schema: type: string - - in: query - name: port - schema: - type: number - - in: query - name: protocol - schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' - - in: query - name: protocol__n - schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' - in: query name: q schema: type: string description: Search - in: query - name: tag + name: slug schema: type: array items: @@ -73854,7 +99816,75 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw schema: type: array items: @@ -73867,7 +99897,7 @@ paths: type: string format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -73876,21 +99906,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceTemplateList' + $ref: '#/components/schemas/PaginatedTagList' description: '' post: - operationId: ipam_service_templates_create - description: Post a list of service template objects. + operationId: extras_tags_create + description: Post a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73900,25 +99930,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_service_templates_bulk_update - description: Put a list of service template objects. + operationId: extras_tags_bulk_update + description: Put a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73930,25 +99960,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_service_templates_bulk_partial_update - description: Patch a list of service template objects. + operationId: extras_tags_bulk_partial_update + description: Patch a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73960,25 +99990,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_service_templates_bulk_destroy - description: Delete a list of service template objects. + operationId: extras_tags_bulk_destroy + description: Delete a list of tag objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -73986,19 +100016,19 @@ paths: responses: '204': description: No response body - /api/ipam/service-templates/{id}/: + /api/extras/tags/{id}/: get: - operationId: ipam_service_templates_retrieve - description: Get a service template object. + operationId: extras_tags_retrieve + description: Get a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -74007,28 +100037,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' put: - operationId: ipam_service_templates_update - description: Put a service template object. + operationId: extras_tags_update + description: Put a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceTemplateRequest' + $ref: '#/components/schemas/TagRequest' required: true security: - cookieAuth: [] @@ -74038,28 +100068,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' patch: - operationId: ipam_service_templates_partial_update - description: Patch a service template object. + operationId: extras_tags_partial_update + description: Patch a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedTagRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' + $ref: '#/components/schemas/PatchedTagRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74068,31 +100098,115 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ServiceTemplate' + $ref: '#/components/schemas/Tag' description: '' delete: - operationId: ipam_service_templates_destroy - description: Delete a service template object. + operationId: extras_tags_destroy + description: Delete a tag object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service template. + description: A unique integer value identifying this tag. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/services/: + /api/extras/webhooks/: get: - operationId: ipam_services_list - description: Get a list of service objects. + operationId: extras_webhooks_list + description: Get a list of webhook objects. parameters: + - in: query + name: ca_file_path + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__empty + schema: + type: boolean + - in: query + name: ca_file_path__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ca_file_path__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -74246,173 +100360,374 @@ paths: explode: true style: form - in: query - name: device + name: http_content_type schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device__n + name: http_content_type__empty + schema: + type: boolean + - in: query + name: http_content_type__ic schema: type: array items: type: string - nullable: true - description: Device (name) explode: true style: form - in: query - name: device_id + name: http_content_type__ie schema: type: array items: - type: integer - nullable: true - description: Device (ID) + type: string explode: true style: form - in: query - name: device_id__n + name: http_content_type__iew schema: type: array items: - type: integer - nullable: true - description: Device (ID) + type: string explode: true style: form - in: query - name: id + name: http_content_type__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: http_content_type__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_content_type__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: http_method + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + explode: true + style: form + - in: query + name: http_method__empty schema: type: boolean - in: query - name: id__gt + name: http_method__ic schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: id__gte + name: http_method__ie schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: id__lt + name: http_method__iew schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: id__lte + name: http_method__isw schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: id__n + name: http_method__n schema: type: array items: - type: integer - format: int32 + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: ip_address + name: http_method__nic schema: type: array items: type: string - description: IP address + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: ip_address__n + name: http_method__nie schema: type: array items: type: string - description: IP address + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' explode: true style: form - in: query - name: ip_address_id + name: http_method__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' + explode: true + style: form + - in: query + name: http_method__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a12018571a034921 + enum: + - DELETE + - GET + - PATCH + - POST + - PUT + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' + explode: true + style: form + - in: query + name: id schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query - name: ip_address_id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query - name: ipaddress + name: id__gte schema: type: array items: - type: string - description: IP address + type: integer + format: int32 explode: true style: form - in: query - name: ipaddress__n + name: id__lt schema: type: array items: - type: string - description: IP address + type: integer + format: int32 explode: true style: form - in: query - name: ipaddress_id + name: id__lte schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query - name: ipaddress_id__n + name: id__n schema: type: array items: type: integer - description: IP address (ID) + format: int32 explode: true style: form - in: query @@ -74586,44 +100901,32 @@ paths: schema: type: string - in: query - name: port + name: payload_url schema: - type: number + type: array + items: + type: string + explode: true + style: form - in: query - name: protocol + name: q schema: type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + description: Search - in: query - name: protocol__n + name: secret schema: - type: string - x-spec-enum-id: 5521e084b1ad51de - enum: - - sctp - - tcp - - udp - description: '* `tcp` - TCP - - * `udp` - UDP - - * `sctp` - SCTP' + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: secret__empty schema: - type: string - description: Search + type: boolean - in: query - name: tag + name: secret__ic schema: type: array items: @@ -74631,7 +100934,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: secret__ie schema: type: array items: @@ -74639,50 +100942,88 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: secret__iew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: virtual_machine + name: secret__isw schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine__n + name: secret__n schema: type: array items: type: string - description: Virtual machine (name) explode: true style: form - in: query - name: virtual_machine_id + name: secret__nic schema: type: array items: - type: integer - nullable: true - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: secret__nie schema: type: array items: - type: integer - nullable: true - description: Virtual machine (ID) + type: string + explode: true + style: form + - in: query + name: secret__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: secret__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssl_verification + schema: + type: boolean + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -74691,21 +101032,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedServiceList' + $ref: '#/components/schemas/PaginatedWebhookList' description: '' post: - operationId: ipam_services_create - description: Post a list of service objects. + operationId: extras_webhooks_create + description: Post a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74715,25 +101056,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_services_bulk_update - description: Put a list of service objects. + operationId: extras_webhooks_bulk_update + description: Put a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74745,25 +101086,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_services_bulk_partial_update - description: Patch a list of service objects. + operationId: extras_webhooks_bulk_partial_update + description: Patch a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74775,25 +101116,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_services_bulk_destroy - description: Delete a list of service objects. + operationId: extras_webhooks_bulk_destroy + description: Delete a list of webhook objects. tags: - - ipam + - extras requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74801,19 +101142,19 @@ paths: responses: '204': description: No response body - /api/ipam/services/{id}/: + /api/extras/webhooks/{id}/: get: - operationId: ipam_services_retrieve - description: Get a service object. + operationId: extras_webhooks_retrieve + description: Get a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] @@ -74822,28 +101163,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' put: - operationId: ipam_services_update - description: Put a service object. + operationId: extras_webhooks_update + description: Put a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableServiceRequest' + $ref: '#/components/schemas/WebhookRequest' required: true security: - cookieAuth: [] @@ -74853,28 +101194,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' patch: - operationId: ipam_services_partial_update - description: Patch a service object. + operationId: extras_webhooks_partial_update + description: Patch a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableServiceRequest' + $ref: '#/components/schemas/PatchedWebhookRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -74883,43 +101224,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Service' + $ref: '#/components/schemas/Webhook' description: '' delete: - operationId: ipam_services_destroy - description: Delete a service object. + operationId: extras_webhooks_destroy + description: Delete a webhook object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this service. + description: A unique integer value identifying this webhook. required: true tags: - - ipam + - extras security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/ipam/vlan-groups/: + /api/ipam/aggregates/: get: - operationId: ipam_vlan_groups_list - description: Get a list of VLAN group objects. + operationId: ipam_aggregates_list + description: Get a list of aggregate objects. parameters: - - in: query - name: cluster - schema: - type: integer - - in: query - name: cluster_group - schema: - type: integer - - in: query - name: clustergroup - schema: - type: integer - in: query name: created schema: @@ -74989,59 +101318,65 @@ paths: type: string format: uuid - in: query - name: description + name: date_added schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__empty + name: date_added__empty schema: type: boolean - in: query - name: description__ic + name: date_added__gt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__ie + name: date_added__gte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__iew + name: date_added__lt schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__isw + name: date_added__lte schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__n + name: date_added__n schema: type: array items: type: string + format: date explode: true style: form - in: query - name: description__nic + name: description schema: type: array items: @@ -75049,15 +101384,11 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: description__niew + name: description__ic schema: type: array items: @@ -75065,7 +101396,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__ie schema: type: array items: @@ -75073,196 +101404,67 @@ paths: explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: description__nisw schema: type: array items: type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - - in: query - name: location - schema: - type: integer - - in: query - name: max_vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__empty - schema: - type: boolean - - in: query - name: max_vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: max_vid__lte - schema: - type: array - items: - type: integer - format: int32 explode: true style: form - in: query - name: max_vid__n + name: family schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: number - in: query - name: min_vid + name: id schema: type: array items: @@ -75271,11 +101473,11 @@ paths: explode: true style: form - in: query - name: min_vid__empty + name: id__empty schema: type: boolean - in: query - name: min_vid__gt + name: id__gt schema: type: array items: @@ -75284,7 +101486,7 @@ paths: explode: true style: form - in: query - name: min_vid__gte + name: id__gte schema: type: array items: @@ -75293,7 +101495,7 @@ paths: explode: true style: form - in: query - name: min_vid__lt + name: id__lt schema: type: array items: @@ -75302,7 +101504,7 @@ paths: explode: true style: form - in: query - name: min_vid__lte + name: id__lte schema: type: array items: @@ -75311,7 +101513,7 @@ paths: explode: true style: form - in: query - name: min_vid__n + name: id__n schema: type: array items: @@ -75320,94 +101522,79 @@ paths: explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__ie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__iew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__isw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__n + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: name__nie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: name__niew + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - name: offset required: false in: query @@ -75421,98 +101608,61 @@ paths: schema: type: string - in: query - name: q + name: prefix schema: type: string - description: Search - - in: query - name: rack - schema: - type: integer - - in: query - name: region - schema: - type: integer - - in: query - name: scope_id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + description: Prefix - in: query - name: scope_id__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: scope_id__gt + name: rir schema: type: array items: - type: integer - format: int32 + type: string + description: RIR (slug) explode: true style: form - in: query - name: scope_id__gte + name: rir__n schema: type: array items: - type: integer - format: int32 + type: string + description: RIR (slug) explode: true style: form - in: query - name: scope_id__lt + name: rir_id schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: scope_id__lte + name: rir_id__n schema: type: array items: type: integer - format: int32 + description: RIR (ID) explode: true style: form - in: query - name: scope_id__n + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: scope_type - schema: - type: string - - in: query - name: scope_type__n - schema: - type: string - - in: query - name: site - schema: - type: integer - - in: query - name: site_group - schema: - type: integer - - in: query - name: sitegroup - schema: - type: integer - - in: query - name: slug + name: tag__n schema: type: array items: @@ -75520,27 +101670,25 @@ paths: explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__ie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__iew + name: tenant_group schema: type: array items: @@ -75548,7 +101696,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: tenant_group__n schema: type: array items: @@ -75556,7 +101704,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tenant_group_id schema: type: array items: @@ -75564,7 +101712,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant_group_id__n schema: type: array items: @@ -75572,47 +101720,27 @@ paths: explode: true style: form - in: query - name: slug__nie + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__niew + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request + name: updated_by_request schema: type: string format: uuid @@ -75626,21 +101754,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANGroupList' + $ref: '#/components/schemas/PaginatedAggregateList' description: '' post: - operationId: ipam_vlan_groups_create - description: Post a list of VLAN group objects. + operationId: ipam_aggregates_create + description: Post a list of aggregate objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -75650,11 +101778,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_vlan_groups_bulk_update - description: Put a list of VLAN group objects. + operationId: ipam_aggregates_bulk_update + description: Put a list of aggregate objects. tags: - ipam requestBody: @@ -75663,12 +101791,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -75680,11 +101808,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_vlan_groups_bulk_partial_update - description: Patch a list of VLAN group objects. + operationId: ipam_aggregates_bulk_partial_update + description: Patch a list of aggregate objects. tags: - ipam requestBody: @@ -75693,12 +101821,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -75710,11 +101838,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_vlan_groups_bulk_destroy - description: Delete a list of VLAN group objects. + operationId: ipam_aggregates_bulk_destroy + description: Delete a list of aggregate objects. tags: - ipam requestBody: @@ -75723,12 +101851,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/AggregateRequest' required: true security: - cookieAuth: [] @@ -75736,16 +101864,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/: + /api/ipam/aggregates/{id}/: get: - operationId: ipam_vlan_groups_retrieve - description: Get a VLAN group object. + operationId: ipam_aggregates_retrieve + description: Get a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75757,17 +101885,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' put: - operationId: ipam_vlan_groups_update - description: Put a VLAN group object. + operationId: ipam_aggregates_update + description: Put a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75775,10 +101903,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VLANGroupRequest' + $ref: '#/components/schemas/WritableAggregateRequest' required: true security: - cookieAuth: [] @@ -75788,17 +101916,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' patch: - operationId: ipam_vlan_groups_partial_update - description: Patch a VLAN group object. + operationId: ipam_aggregates_partial_update + description: Patch a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75806,10 +101934,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableAggregateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -75818,17 +101946,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLANGroup' + $ref: '#/components/schemas/Aggregate' description: '' delete: - operationId: ipam_vlan_groups_destroy - description: Delete a VLAN group object. + operationId: ipam_aggregates_destroy + description: Delete a aggregate object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN group. + description: A unique integer value identifying this aggregate. required: true tags: - ipam @@ -75838,83 +101966,11 @@ paths: responses: '204': description: No response body - /api/ipam/vlan-groups/{id}/available-vlans/: - get: - operationId: ipam_vlan_groups_available_vlans_list - description: Get a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/AvailableVLAN' - description: '' - post: - operationId: ipam_vlan_groups_available_vlans_create - description: Post a VLAN object. - parameters: - - in: path - name: id - schema: - type: integer - required: true - tags: - - ipam - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/VLANRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/VLAN' - description: '' - /api/ipam/vlans/: + /api/ipam/asn-ranges/: get: - operationId: ipam_vlans_list - description: Get a list of VLAN objects. + operationId: ipam_asn_ranges_list + description: Get a list of ASN range objects. parameters: - - in: query - name: available_at_site - schema: - type: string - - in: query - name: available_on_device - schema: - type: string - - in: query - name: available_on_virtualmachine - schema: - type: string - in: query name: created schema: @@ -76068,45 +102124,38 @@ paths: explode: true style: form - in: query - name: group + name: end schema: type: array items: - type: string - description: Group + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: end__empty schema: - type: array - items: - type: string - description: Group - explode: true - style: form + type: boolean - in: query - name: group_id + name: end__gt schema: type: array items: type: integer - nullable: true - description: Group (ID) + format: int32 explode: true style: form - in: query - name: group_id__n + name: end__gte schema: type: array items: type: integer - nullable: true - description: Group (ID) + format: int32 explode: true style: form - in: query - name: id + name: end__lt schema: type: array items: @@ -76115,11 +102164,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: end__lte schema: type: array items: @@ -76128,7 +102173,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: end__n schema: type: array items: @@ -76137,7 +102182,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: id schema: type: array items: @@ -76146,16 +102191,11 @@ paths: explode: true style: form - in: query - name: id__lte + name: id__empty schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: id__n + name: id__gt schema: type: array items: @@ -76164,47 +102204,39 @@ paths: explode: true style: form - in: query - name: l2vpn + name: id__gte schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn__n + name: id__lt schema: type: array items: type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + format: int32 explode: true style: form - in: query - name: l2vpn_id + name: id__lte schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query - name: l2vpn_id__n + name: id__n schema: type: array items: type: integer - description: L2VPN (ID) + format: int32 explode: true style: form - in: query @@ -76383,171 +102415,181 @@ paths: type: string description: Search - in: query - name: region + name: rir schema: type: array items: - type: integer - description: Region (slug) + type: string + description: RIR (slug) explode: true style: form - in: query - name: region__n + name: rir__n schema: type: array items: - type: integer - description: Region (slug) + type: string + description: RIR (slug) explode: true style: form - in: query - name: region_id + name: rir_id schema: type: array items: type: integer - description: Region (ID) + description: RIR (ID) explode: true style: form - in: query - name: region_id__n + name: rir_id__n schema: type: array items: type: integer - description: Region (ID) + description: RIR (ID) explode: true style: form - in: query - name: role + name: slug schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role_id + name: slug__ie schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: role_id__n + name: slug__iew schema: type: array items: - type: integer - nullable: true - description: Role (ID) + type: string explode: true style: form - in: query - name: site + name: slug__isw schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: slug__n schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site_group + name: slug__nic schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group__n + name: slug__nie schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query - name: site_group_id + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: start schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_group_id__n + name: start__empty + schema: + type: boolean + - in: query + name: start__gt schema: type: array items: type: integer - description: Site group (ID) + format: int32 explode: true style: form - in: query - name: site_id + name: start__gte schema: type: array items: type: integer - nullable: true - description: Site (ID) + format: int32 explode: true style: form - in: query - name: site_id__n + name: start__lt schema: type: array items: type: integer - nullable: true - description: Site (ID) + format: int32 explode: true style: form - in: query - name: status + name: start__lte schema: type: array items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN + type: integer + format: int32 explode: true style: form - in: query - name: status__n + name: start__n schema: type: array items: - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: Operational status of this VLAN + type: integer + format: int32 explode: true style: form - in: query @@ -76589,8 +102631,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -76598,8 +102639,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -76607,8 +102647,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -76616,8 +102655,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -76645,64 +102683,6 @@ paths: schema: type: string format: uuid - - in: query - name: vid - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__empty - schema: - type: boolean - - in: query - name: vid__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: vid__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - ipam security: @@ -76713,21 +102693,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVLANList' + $ref: '#/components/schemas/PaginatedASNRangeList' description: '' post: - operationId: ipam_vlans_create - description: Post a list of VLAN objects. + operationId: ipam_asn_ranges_create + description: Post a list of ASN range objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76737,11 +102717,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_vlans_bulk_update - description: Put a list of VLAN objects. + operationId: ipam_asn_ranges_bulk_update + description: Put a list of ASN range objects. tags: - ipam requestBody: @@ -76750,12 +102730,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76767,11 +102747,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_vlans_bulk_partial_update - description: Patch a list of VLAN objects. + operationId: ipam_asn_ranges_bulk_partial_update + description: Patch a list of ASN range objects. tags: - ipam requestBody: @@ -76780,12 +102760,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76797,11 +102777,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_vlans_bulk_destroy - description: Delete a list of VLAN objects. + operationId: ipam_asn_ranges_bulk_destroy + description: Delete a list of ASN range objects. tags: - ipam requestBody: @@ -76810,12 +102790,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76823,16 +102803,16 @@ paths: responses: '204': description: No response body - /api/ipam/vlans/{id}/: + /api/ipam/asn-ranges/{id}/: get: - operationId: ipam_vlans_retrieve - description: Get a VLAN object. + operationId: ipam_asn_ranges_retrieve + description: Get a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76844,17 +102824,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' put: - operationId: ipam_vlans_update - description: Put a VLAN object. + operationId: ipam_asn_ranges_update + description: Put a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76862,10 +102842,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVLANRequest' + $ref: '#/components/schemas/ASNRangeRequest' required: true security: - cookieAuth: [] @@ -76875,17 +102855,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' patch: - operationId: ipam_vlans_partial_update - description: Patch a VLAN object. + operationId: ipam_asn_ranges_partial_update + description: Patch a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76893,10 +102873,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVLANRequest' + $ref: '#/components/schemas/PatchedASNRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -76905,17 +102885,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VLAN' + $ref: '#/components/schemas/ASNRange' description: '' delete: - operationId: ipam_vlans_destroy - description: Delete a VLAN object. + operationId: ipam_asn_ranges_destroy + description: Delete a ASN range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VLAN. + description: A unique integer value identifying this ASN range. required: true tags: - ipam @@ -76925,11 +102905,129 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/: + /api/ipam/asn-ranges/{id}/available-asns/: get: - operationId: ipam_vrfs_list - description: Get a list of VRF objects. + operationId: ipam_asn_ranges_available_asns_list + description: Get a ASN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableASN' + description: '' + post: + operationId: ipam_asn_ranges_available_asns_create + description: Post a ASN object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/ASNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/ASN' + description: '' + /api/ipam/asns/: + get: + operationId: ipam_asns_list + description: Get a list of ASN objects. parameters: + - in: query + name: asn + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__empty + schema: + type: boolean + - in: query + name: asn__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: asn__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query name: created schema: @@ -77082,46 +103180,6 @@ paths: type: string explode: true style: form - - in: query - name: enforce_unique - schema: - type: boolean - - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target_id - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - - in: query - name: export_target_id__n - schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form - in: query name: id schema: @@ -77180,42 +103238,6 @@ paths: format: int32 explode: true style: form - - in: query - name: import_target - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target__n - schema: - type: array - items: - type: string - description: Import target (name) - explode: true - style: form - - in: query - name: import_target_id - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - - in: query - name: import_target_id__n - schema: - type: array - items: - type: integer - description: Import target - explode: true - style: form - in: query name: last_updated schema: @@ -77290,189 +103312,129 @@ paths: schema: type: string format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nic + name: provider schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__nie + name: provider__n schema: type: array items: type: string + description: Provider (slug) explode: true style: form - in: query - name: name__niew + name: provider_id schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - in: query - name: name__nisw + name: provider_id__n schema: type: array items: - type: string + type: integer + description: Provider (ID) explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query name: q schema: type: string description: Search - in: query - name: rd - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__empty - schema: - type: boolean - - in: query - name: rd__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: rd__ie + name: rir schema: type: array items: type: string + description: RIR (slug) explode: true style: form - in: query - name: rd__iew + name: rir__n schema: type: array items: type: string + description: RIR (slug) explode: true style: form - in: query - name: rd__isw + name: rir_id schema: type: array items: - type: string + type: integer + description: RIR (ID) explode: true style: form - in: query - name: rd__n + name: rir_id__n schema: type: array items: - type: string + type: integer + description: RIR (ID) explode: true style: form - in: query - name: rd__nic + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: rd__nie + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: rd__niew + name: site_id schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query - name: rd__nisw + name: site_id__n schema: type: array items: - type: string + type: integer + description: Site (ID) explode: true style: form - in: query @@ -77514,8 +103476,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -77523,8 +103484,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -77532,8 +103492,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -77541,8 +103500,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -77580,21 +103538,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVRFList' + $ref: '#/components/schemas/PaginatedASNList' description: '' post: - operationId: ipam_vrfs_create - description: Post a list of VRF objects. + operationId: ipam_asns_create + description: Post a list of ASN objects. tags: - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77604,11 +103562,11 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_vrfs_bulk_update - description: Put a list of VRF objects. + operationId: ipam_asns_bulk_update + description: Put a list of ASN objects. tags: - ipam requestBody: @@ -77617,12 +103575,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77634,11 +103592,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_vrfs_bulk_partial_update - description: Patch a list of VRF objects. + operationId: ipam_asns_bulk_partial_update + description: Patch a list of ASN objects. tags: - ipam requestBody: @@ -77647,12 +103605,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77664,11 +103622,11 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_vrfs_bulk_destroy - description: Delete a list of VRF objects. + operationId: ipam_asns_bulk_destroy + description: Delete a list of ASN objects. tags: - ipam requestBody: @@ -77677,12 +103635,12 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77690,16 +103648,16 @@ paths: responses: '204': description: No response body - /api/ipam/vrfs/{id}/: + /api/ipam/asns/{id}/: get: - operationId: ipam_vrfs_retrieve - description: Get a VRF object. + operationId: ipam_asns_retrieve + description: Get a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77711,17 +103669,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' put: - operationId: ipam_vrfs_update - description: Put a VRF object. + operationId: ipam_asns_update + description: Put a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77729,10 +103687,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VRFRequest' + $ref: '#/components/schemas/ASNRequest' required: true security: - cookieAuth: [] @@ -77742,17 +103700,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' patch: - operationId: ipam_vrfs_partial_update - description: Patch a VRF object. + operationId: ipam_asns_partial_update + description: Patch a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77760,10 +103718,10 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedASNRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVRFRequest' + $ref: '#/components/schemas/PatchedASNRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -77772,17 +103730,17 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VRF' + $ref: '#/components/schemas/ASN' description: '' delete: - operationId: ipam_vrfs_destroy - description: Delete a VRF object. + operationId: ipam_asns_destroy + description: Delete a ASN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this VRF. + description: A unique integer value identifying this ASN. required: true tags: - ipam @@ -77792,106 +103750,11 @@ paths: responses: '204': description: No response body - /api/schema/: - get: - operationId: schema_retrieve - description: 'OpenApi3 schema for this API. Format can be selected via content - negotiation. - - - - YAML: application/vnd.oai.openapi - - - JSON: application/vnd.oai.openapi+json' - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - yaml - - in: query - name: lang - schema: - type: string - enum: - - de - - en - - es - - fr - - ja - - pt - - ru - - tr - - uk - - zh - tags: - - schema - security: - - cookieAuth: [] - - tokenAuth: [] - - {} - responses: - '200': - content: - application/vnd.oai.openapi: - schema: - type: object - additionalProperties: {} - application/yaml: - schema: - type: object - additionalProperties: {} - application/vnd.oai.openapi+json: - schema: - type: object - additionalProperties: {} - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/status/: - get: - operationId: status_retrieve - description: A lightweight read-only endpoint for conveying NetBox's current - operational status. - tags: - - status - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/tenancy/contact-assignments/: + /api/ipam/fhrp-group-assignments/: get: - operationId: tenancy_contact_assignments_list - description: Get a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_list + description: Get a list of FHRP group assignment objects. parameters: - - in: query - name: contact_id - schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form - - in: query - name: contact_id__n - schema: - type: array - items: - type: integer - description: Contact (ID) - explode: true - style: form - in: query name: created schema: @@ -77961,21 +103824,20 @@ paths: type: string format: uuid - in: query - name: group + name: device schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group__n + name: device_id schema: type: array items: type: integer - description: Contact group (slug) + format: int32 explode: true style: form - in: query @@ -77984,7 +103846,7 @@ paths: type: array items: type: integer - description: Contact group (ID) + description: Group (ID) explode: true style: form - in: query @@ -77993,7 +103855,7 @@ paths: type: array items: type: integer - description: Contact group (ID) + description: Group (ID) explode: true style: form - in: query @@ -78055,153 +103917,145 @@ paths: explode: true style: form - in: query - name: last_updated + name: interface_id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__empty + name: interface_id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: interface_id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__gte + name: interface_id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lt + name: interface_id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__lte + name: interface_id__lte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: last_updated__n + name: interface_id__n schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: interface_type schema: - type: integer + type: string - in: query - name: modified_by_request + name: interface_type__n schema: type: string - format: uuid - in: query - name: object_id + name: last_updated schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__empty - schema: - type: boolean - - in: query - name: object_id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: object_type - schema: - type: string - - in: query - name: object_type__n + name: last_updated__n schema: - type: string - - in: query - name: object_type_id + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. schema: type: integer - in: query - name: object_type_id__n + name: modified_by_request schema: - type: integer + type: string + format: uuid - name: offset required: false in: query @@ -78217,88 +104071,68 @@ paths: - in: query name: priority schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' - - in: query - name: priority__n - schema: - type: string - x-spec-enum-id: ef3a31644cec7524 - enum: - - inactive - - primary - - secondary - - tertiary - description: '* `primary` - Primary - - * `secondary` - Secondary - - * `tertiary` - Tertiary - - * `inactive` - Inactive' + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: q + name: priority__empty schema: - type: string - description: Search + type: boolean - in: query - name: role + name: priority__gt schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role__n + name: priority__gte schema: type: array items: - type: string - description: Contact role (slug) + type: integer + format: int32 explode: true style: form - in: query - name: role_id + name: priority__lt schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: role_id__n + name: priority__lte schema: type: array items: type: integer - description: Contact role (ID) + format: int32 explode: true style: form - in: query - name: tag + name: priority__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: tag__n + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine schema: type: array items: @@ -78306,12 +104140,16 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: virtual_machine_id schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -78320,21 +104158,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactAssignmentList' + $ref: '#/components/schemas/PaginatedFHRPGroupAssignmentList' description: '' post: - operationId: tenancy_contact_assignments_create - description: Post a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_create + description: Post a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78344,25 +104182,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: tenancy_contact_assignments_bulk_update - description: Put a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_bulk_update + description: Put a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78374,25 +104212,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: tenancy_contact_assignments_bulk_partial_update - description: Patch a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_bulk_partial_update + description: Patch a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78404,25 +104242,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: tenancy_contact_assignments_bulk_destroy - description: Delete a list of contact assignment objects. + operationId: ipam_fhrp_group_assignments_bulk_destroy + description: Delete a list of FHRP group assignment objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78430,19 +104268,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-assignments/{id}/: + /api/ipam/fhrp-group-assignments/{id}/: get: - operationId: tenancy_contact_assignments_retrieve - description: Get a contact assignment object. + operationId: ipam_fhrp_group_assignments_retrieve + description: Get a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -78451,28 +104289,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' put: - operationId: tenancy_contact_assignments_update - description: Put a contact assignment object. + operationId: ipam_fhrp_group_assignments_update + description: Put a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableContactAssignmentRequest' + $ref: '#/components/schemas/FHRPGroupAssignmentRequest' required: true security: - cookieAuth: [] @@ -78482,28 +104320,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' patch: - operationId: tenancy_contact_assignments_partial_update - description: Patch a contact assignment object. + operationId: ipam_fhrp_group_assignments_partial_update + description: Patch a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' + $ref: '#/components/schemas/PatchedFHRPGroupAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -78512,279 +104350,284 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactAssignment' + $ref: '#/components/schemas/FHRPGroupAssignment' description: '' delete: - operationId: tenancy_contact_assignments_destroy - description: Delete a contact assignment object. + operationId: ipam_fhrp_group_assignments_destroy + description: Delete a FHRP group assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact assignment. + description: A unique integer value identifying this FHRP group assignment. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contact-groups/: + /api/ipam/fhrp-groups/: get: - operationId: tenancy_contact_groups_list - description: Get a list of contact group objects. + operationId: ipam_fhrp_groups_list + description: Get a list of FHRP group objects. parameters: - in: query - name: ancestor + name: auth_key schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: ancestor__n + name: auth_key__empty + schema: + type: boolean + - in: query + name: auth_key__ic schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: ancestor_id + name: auth_key__ie schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query - name: ancestor_id__n + name: auth_key__iew schema: type: array items: - type: integer - description: Contact group (ID) + type: string explode: true style: form - in: query - name: created + name: auth_key__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: auth_key__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: auth_key__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: auth_key__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte + name: auth_key__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: auth_key__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: auth_type schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type explode: true style: form - in: query - name: description__empty + name: auth_type__empty schema: type: boolean - in: query - name: description__ic + name: auth_type__ic schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__ie + name: auth_type__ie schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__iew + name: auth_type__iew schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__isw + name: auth_type__isw schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__n + name: auth_type__n schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__nic + name: auth_type__nic schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__nie + name: auth_type__nie schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__niew + name: auth_type__niew schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: description__nisw + name: auth_type__nisw schema: type: array items: type: string + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + enum: + - '' + - md5 + - plaintext + description: '* `plaintext` - Plaintext + + * `md5` - MD5' explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated + name: created schema: type: array items: @@ -78793,7 +104636,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: created__empty schema: type: array items: @@ -78802,7 +104645,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__gt schema: type: array items: @@ -78811,7 +104654,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__gte schema: type: array items: @@ -78820,7 +104663,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__lt schema: type: array items: @@ -78829,7 +104672,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__lte schema: type: array items: @@ -78838,7 +104681,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__n schema: type: array items: @@ -78846,19 +104689,13 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - in: query - name: name + name: description schema: type: array items: @@ -78866,27 +104703,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: description__empty schema: type: boolean - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew + name: description__ic schema: type: array items: @@ -78894,7 +104715,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: description__ie schema: type: array items: @@ -78902,7 +104723,7 @@ paths: explode: true style: form - in: query - name: name__n + name: description__iew schema: type: array items: @@ -78910,7 +104731,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: description__isw schema: type: array items: @@ -78918,7 +104739,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: description__n schema: type: array items: @@ -78926,7 +104747,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: description__nic schema: type: array items: @@ -78934,550 +104755,85 @@ paths: explode: true style: form - in: query - name: name__nisw + name: description__nie schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: parent + name: description__niew schema: type: array items: type: string - description: Parent contact group (slug) explode: true style: form - in: query - name: parent__n + name: description__nisw schema: type: array items: type: string - description: Parent contact group (slug) - explode: true - style: form - - in: query - name: parent_id - schema: - type: array - items: - type: integer - nullable: true - description: Parent contact group (ID) explode: true style: form - in: query - name: parent_id__n + name: group_id schema: type: array items: type: integer - nullable: true - description: Parent contact group (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedContactGroupList' - description: '' - post: - operationId: tenancy_contact_groups_create - description: Post a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - put: - operationId: tenancy_contact_groups_bulk_update - description: Put a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroup' - description: '' - patch: - operationId: tenancy_contact_groups_bulk_partial_update - description: Patch a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroup' - description: '' - delete: - operationId: tenancy_contact_groups_bulk_destroy - description: Delete a list of contact group objects. - tags: - - tenancy - requestBody: - content: - application/json: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - multipart/form-data: - schema: - type: array - items: - $ref: '#/components/schemas/ContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/tenancy/contact-groups/{id}/: - get: - operationId: tenancy_contact_groups_retrieve - description: Get a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - put: - operationId: tenancy_contact_groups_update - description: Put a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableContactGroupRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - patch: - operationId: tenancy_contact_groups_partial_update - description: Patch a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableContactGroupRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/ContactGroup' - description: '' - delete: - operationId: tenancy_contact_groups_destroy - description: Delete a contact group object. - parameters: - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this contact group. - required: true - tags: - - tenancy - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body - /api/tenancy/contact-roles/: - get: - operationId: tenancy_contact_roles_list - description: Get a list of contact role objects. - parameters: - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string + format: int32 explode: true style: form - in: query - name: description__empty + name: group_id__empty schema: type: boolean - in: query - name: description__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__n + name: group_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nic + name: group_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nie + name: group_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__niew + name: group_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query @@ -79709,88 +105065,295 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: protocol schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 explode: true style: form - in: query - name: slug__empty + name: protocol__empty schema: type: boolean - in: query - name: slug__ic + name: protocol__ic schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__ie + name: protocol__ie schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__iew + name: protocol__iew schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__isw + name: protocol__isw schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__n + name: protocol__n schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__nic + name: protocol__nic schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__nie + name: protocol__nie schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__niew + name: protocol__niew schema: type: array items: type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' explode: true style: form - in: query - name: slug__nisw + name: protocol__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 40dc831c689b4b78 + enum: + - carp + - clusterxl + - glbp + - hsrp + - other + - vrrp2 + - vrrp3 + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: related_ip schema: type: array items: @@ -79819,7 +105382,7 @@ paths: type: string format: uuid tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79828,21 +105391,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactRoleList' + $ref: '#/components/schemas/PaginatedFHRPGroupList' description: '' post: - operationId: tenancy_contact_roles_create - description: Post a list of contact role objects. + operationId: ipam_fhrp_groups_create + description: Post a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79852,25 +105415,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: tenancy_contact_roles_bulk_update - description: Put a list of contact role objects. + operationId: ipam_fhrp_groups_bulk_update + description: Put a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79882,25 +105445,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: tenancy_contact_roles_bulk_partial_update - description: Patch a list of contact role objects. + operationId: ipam_fhrp_groups_bulk_partial_update + description: Patch a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79912,25 +105475,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: tenancy_contact_roles_bulk_destroy - description: Delete a list of contact role objects. + operationId: ipam_fhrp_groups_bulk_destroy + description: Delete a list of FHRP group objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79938,19 +105501,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contact-roles/{id}/: + /api/ipam/fhrp-groups/{id}/: get: - operationId: tenancy_contact_roles_retrieve - description: Get a contact role object. + operationId: ipam_fhrp_groups_retrieve + description: Get a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -79959,28 +105522,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' put: - operationId: tenancy_contact_roles_update - description: Put a contact role object. + operationId: ipam_fhrp_groups_update + description: Put a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRoleRequest' + $ref: '#/components/schemas/FHRPGroupRequest' required: true security: - cookieAuth: [] @@ -79990,28 +105553,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' patch: - operationId: tenancy_contact_roles_partial_update - description: Patch a contact role object. + operationId: ipam_fhrp_groups_partial_update + description: Patch a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRoleRequest' + $ref: '#/components/schemas/PatchedFHRPGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -80020,30 +105583,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ContactRole' + $ref: '#/components/schemas/FHRPGroup' description: '' delete: - operationId: tenancy_contact_roles_destroy - description: Delete a contact role object. + operationId: ipam_fhrp_groups_destroy + description: Delete a FHRP group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact role. + description: A unique integer value identifying this FHRP group. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/contacts/: + /api/ipam/ip-addresses/: get: - operationId: tenancy_contacts_list - description: Get a list of contact objects. + operationId: ipam_ip_addresses_list + description: Get a list of IP address objects. parameters: - in: query name: address @@ -80054,81 +105617,81 @@ paths: explode: true style: form - in: query - name: address__empty + name: assigned schema: type: boolean + description: Is assigned - in: query - name: address__ic + name: assigned_object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__ie + name: assigned_object_id__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: address__iew + name: assigned_object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__isw + name: assigned_object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__n + name: assigned_object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__nic + name: assigned_object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__nie + name: assigned_object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: address__niew + name: assigned_object_type schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: address__nisw + name: assigned_object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer + - in: query + name: assigned_to_interface + schema: + type: boolean + description: Is assigned to an interface - in: query name: created schema: @@ -80282,7 +105845,7 @@ paths: explode: true style: form - in: query - name: email + name: device schema: type: array items: @@ -80290,19 +105853,16 @@ paths: explode: true style: form - in: query - name: email__empty - schema: - type: boolean - - in: query - name: email__ic + name: device_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: email__ie + name: dns_name schema: type: array items: @@ -80310,7 +105870,11 @@ paths: explode: true style: form - in: query - name: email__iew + name: dns_name__empty + schema: + type: boolean + - in: query + name: dns_name__ic schema: type: array items: @@ -80318,7 +105882,7 @@ paths: explode: true style: form - in: query - name: email__isw + name: dns_name__ie schema: type: array items: @@ -80326,7 +105890,7 @@ paths: explode: true style: form - in: query - name: email__n + name: dns_name__iew schema: type: array items: @@ -80334,7 +105898,7 @@ paths: explode: true style: form - in: query - name: email__nic + name: dns_name__isw schema: type: array items: @@ -80342,7 +105906,7 @@ paths: explode: true style: form - in: query - name: email__nie + name: dns_name__n schema: type: array items: @@ -80350,7 +105914,7 @@ paths: explode: true style: form - in: query - name: email__niew + name: dns_name__nic schema: type: array items: @@ -80358,7 +105922,7 @@ paths: explode: true style: form - in: query - name: email__nisw + name: dns_name__nie schema: type: array items: @@ -80366,39 +105930,41 @@ paths: explode: true style: form - in: query - name: group + name: dns_name__niew schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group__n + name: dns_name__nisw schema: type: array items: - type: integer - description: Contact group (slug) + type: string explode: true style: form - in: query - name: group_id + name: family + schema: + type: number + - in: query + name: fhrpgroup_id schema: type: array items: type: integer - description: Contact group (ID) + description: FHRP group (ID) explode: true style: form - in: query - name: group_id__n + name: fhrpgroup_id__n schema: type: array items: type: integer - description: Contact group (ID) + description: FHRP group (ID) explode: true style: form - in: query @@ -80460,34 +106026,43 @@ paths: explode: true style: form - in: query - name: last_updated + name: interface schema: type: array items: type: string - format: date-time + description: Interface (name) explode: true style: form - in: query - name: last_updated__empty + name: interface__n schema: type: array items: type: string - format: date-time + description: Interface (name) explode: true style: form - in: query - name: last_updated__gt + name: interface_id schema: type: array items: - type: string - format: date-time + type: integer + description: Interface (ID) explode: true style: form - in: query - name: last_updated__gte + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: last_updated schema: type: array items: @@ -80496,7 +106071,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: last_updated__empty schema: type: array items: @@ -80505,7 +106080,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: last_updated__gt schema: type: array items: @@ -80514,7 +106089,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: last_updated__gte schema: type: array items: @@ -80522,42 +106097,93 @@ paths: format: date-time explode: true style: form - - name: limit - required: false + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false in: query description: Number of results to return per page. schema: type: integer - in: query - name: link + name: mask_length schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: link__empty + name: mask_length__gte schema: - type: boolean + type: number - in: query - name: link__ic + name: mask_length__lte + schema: + type: number + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: nat_inside_id schema: type: array items: - type: string + type: integer + description: NAT inside IP address (ID) explode: true style: form - in: query - name: link__ie + name: nat_inside_id__n schema: type: array items: - type: string + type: integer + description: NAT inside IP address (ID) explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: link__iew + name: parent schema: type: array items: @@ -80565,192 +106191,642 @@ paths: explode: true style: form - in: query - name: link__isw + name: present_in_vrf + schema: + type: string + - in: query + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + description: The functional role of this IP explode: true style: form - in: query - name: link__n + name: role__empty + schema: + type: boolean + - in: query + name: role__ic schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: link__nic + name: role__ie schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: link__nie + name: role__iew schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: link__niew + name: role__isw schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: link__nisw + name: role__n schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name + name: role__nic schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: name__empty + name: role__nie schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + explode: true + style: form - in: query - name: name__ic + name: role__niew schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: name__ie + name: role__nisw schema: type: array items: type: string + x-spec-enum-id: 10fbcb4930889b0f + enum: + - '' + - anycast + - carp + - glbp + - hsrp + - loopback + - secondary + - vip + - vrrp + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' explode: true style: form - in: query - name: name__iew + name: service_id schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__isw + name: service_id__n schema: type: array items: - type: string + type: integer + description: Service (ID) explode: true style: form - in: query - name: name__n + name: status schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + description: The operational status of this IP explode: true style: form - in: query - name: name__nic + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: name__nie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: name__niew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: name__nisw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: phone + name: status__n schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: phone__empty + name: status__nic schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + explode: true + style: form - in: query - name: phone__ic + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: phone__ie + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: phone__iew + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 24935cfee15bd268 + enum: + - active + - deprecated + - dhcp + - reserved + - slaac + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' explode: true style: form - in: query - name: phone__isw + name: tag schema: type: array items: @@ -80758,7 +106834,7 @@ paths: explode: true style: form - in: query - name: phone__n + name: tag__n schema: type: array items: @@ -80766,23 +106842,25 @@ paths: explode: true style: form - in: query - name: phone__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: phone__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: phone__niew + name: tenant_group schema: type: array items: @@ -80790,7 +106868,7 @@ paths: explode: true style: form - in: query - name: phone__nisw + name: tenant_group__n schema: type: array items: @@ -80798,12 +106876,15 @@ paths: explode: true style: form - in: query - name: q + name: tenant_group_id schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: tenant_group_id__n schema: type: array items: @@ -80811,27 +106892,32 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_id schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: title + name: tenant_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: title__empty + name: updated_by_request schema: - type: boolean + type: string + format: uuid - in: query - name: title__ic + name: virtual_machine schema: type: array items: @@ -80839,76 +106925,94 @@ paths: explode: true style: form - in: query - name: title__ie + name: virtual_machine_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: title__iew + name: vminterface schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: title__isw + name: vminterface__n schema: type: array items: type: string + description: VM interface (name) explode: true style: form - in: query - name: title__n + name: vminterface_id schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: title__nic + name: vminterface_id__n schema: type: array items: - type: string + type: integer + description: VM interface (ID) explode: true style: form - in: query - name: title__nie + name: vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: title__niew + name: vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: title__nisw + name: vrf_id schema: type: array items: - type: string + type: integer + nullable: true + description: VRF explode: true style: form - in: query - name: updated_by_request + name: vrf_id__n schema: - type: string - format: uuid + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -80917,21 +107021,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedContactList' + $ref: '#/components/schemas/PaginatedIPAddressList' description: '' post: - operationId: tenancy_contacts_create - description: Post a list of contact objects. + operationId: ipam_ip_addresses_create + description: Post a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -80941,25 +107045,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: tenancy_contacts_bulk_update - description: Put a list of contact objects. + operationId: ipam_ip_addresses_bulk_update + description: Put a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -80971,25 +107075,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: tenancy_contacts_bulk_partial_update - description: Patch a list of contact objects. + operationId: ipam_ip_addresses_bulk_partial_update + description: Patch a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -81001,25 +107105,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: tenancy_contacts_bulk_destroy - description: Delete a list of contact objects. + operationId: ipam_ip_addresses_bulk_destroy + description: Delete a list of IP address objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/IPAddressRequest' required: true security: - cookieAuth: [] @@ -81027,19 +107131,19 @@ paths: responses: '204': description: No response body - /api/tenancy/contacts/{id}/: + /api/ipam/ip-addresses/{id}/: get: - operationId: tenancy_contacts_retrieve - description: Get a contact object. + operationId: ipam_ip_addresses_retrieve + description: Get a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -81048,28 +107152,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' put: - operationId: tenancy_contacts_update - description: Put a contact object. + operationId: ipam_ip_addresses_update + description: Put a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/WritableIPAddressRequest' required: true security: - cookieAuth: [] @@ -81079,28 +107183,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' patch: - operationId: tenancy_contacts_partial_update - description: Patch a contact object. + operationId: ipam_ip_addresses_partial_update + description: Patch a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedContactRequest' + $ref: '#/components/schemas/PatchedWritableIPAddressRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81109,67 +107213,36 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/IPAddress' description: '' delete: - operationId: tenancy_contacts_destroy - description: Delete a contact object. + operationId: ipam_ip_addresses_destroy + description: Delete a IP address object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this contact. + description: A unique integer value identifying this IP address. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/tenant-groups/: + /api/ipam/ip-ranges/: get: - operationId: tenancy_tenant_groups_list - description: Get a list of tenant group objects. + operationId: ipam_ip_ranges_list + description: Get a list of IP range objects. parameters: - in: query - name: ancestor - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: ancestor__n - schema: - type: array - items: - type: integer - description: Tenant group (slug) - explode: true - style: form - - in: query - name: ancestor_id - schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form - - in: query - name: ancestor_id__n + name: contains schema: - type: array - items: - type: integer - description: Tenant group (ID) - explode: true - style: form + type: string + description: Ranges which contain this prefix or IP - in: query name: created schema: @@ -81322,6 +107395,18 @@ paths: type: string explode: true style: form + - in: query + name: end_address + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: family + schema: + type: number - in: query name: id schema: @@ -81449,13 +107534,29 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean - in: query name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: parent schema: type: array items: @@ -81463,174 +107564,319 @@ paths: explode: true style: form - in: query - name: name__empty + name: q schema: - type: boolean + type: string + description: Search - in: query - name: name__ic + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__ie + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__iew + name: role_id schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__isw + name: role_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query - name: name__n + name: size schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: size__empty + schema: + type: boolean + - in: query + name: size__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nie + name: size__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__niew + name: size__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nisw + name: size__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: size__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: start_address schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: parent + name: status schema: type: array items: type: string - description: Parent tenant group (slug) + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this range explode: true style: form - in: query - name: parent__n + name: status__empty + schema: + type: boolean + - in: query + name: status__ic schema: type: array items: type: string - description: Parent tenant group (slug) + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: parent_id + name: status__ie schema: type: array items: - type: integer - nullable: true - description: Parent tenant group (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: parent_id__n + name: status__iew schema: type: array items: - type: integer - nullable: true - description: Parent tenant group (ID) + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: q + name: status__isw schema: - type: string - description: Search + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form - in: query - name: slug + name: status__n schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__empty + name: status__nic schema: - type: boolean + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form - in: query - name: slug__ic + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__ie + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__iew + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__isw + name: tag schema: type: array items: @@ -81638,7 +107884,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: tag__n schema: type: array items: @@ -81646,23 +107892,25 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tenant schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__nie + name: tenant__n schema: type: array items: type: string + description: Tenant (slug) explode: true style: form - in: query - name: slug__niew + name: tenant_group schema: type: array items: @@ -81670,7 +107918,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: tenant_group__n schema: type: array items: @@ -81678,7 +107926,7 @@ paths: explode: true style: form - in: query - name: tag + name: tenant_group_id schema: type: array items: @@ -81686,20 +107934,82 @@ paths: explode: true style: form - in: query - name: tag__n + name: tenant_group_id__n schema: type: array items: type: string explode: true style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -81708,21 +108018,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantGroupList' + $ref: '#/components/schemas/PaginatedIPRangeList' description: '' post: - operationId: tenancy_tenant_groups_create - description: Post a list of tenant group objects. + operationId: ipam_ip_ranges_create + description: Post a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -81732,25 +108042,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: tenancy_tenant_groups_bulk_update - description: Put a list of tenant group objects. + operationId: ipam_ip_ranges_bulk_update + description: Put a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -81762,25 +108072,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: tenancy_tenant_groups_bulk_partial_update - description: Patch a list of tenant group objects. + operationId: ipam_ip_ranges_bulk_partial_update + description: Patch a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -81792,25 +108102,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: tenancy_tenant_groups_bulk_destroy - description: Delete a list of tenant group objects. + operationId: ipam_ip_ranges_bulk_destroy + description: Delete a list of IP range objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantGroupRequest' + $ref: '#/components/schemas/IPRangeRequest' required: true security: - cookieAuth: [] @@ -81818,19 +108128,19 @@ paths: responses: '204': description: No response body - /api/tenancy/tenant-groups/{id}/: + /api/ipam/ip-ranges/{id}/: get: - operationId: tenancy_tenant_groups_retrieve - description: Get a tenant group object. + operationId: ipam_ip_ranges_retrieve + description: Get a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -81839,28 +108149,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' put: - operationId: tenancy_tenant_groups_update - description: Put a tenant group object. + operationId: ipam_ip_ranges_update + description: Put a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTenantGroupRequest' + $ref: '#/components/schemas/WritableIPRangeRequest' required: true security: - cookieAuth: [] @@ -81870,28 +108180,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' patch: - operationId: tenancy_tenant_groups_partial_update - description: Patch a tenant group object. + operationId: ipam_ip_ranges_partial_update + description: Patch a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' + $ref: '#/components/schemas/PatchedWritableIPRangeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -81900,85 +108210,159 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TenantGroup' + $ref: '#/components/schemas/IPRange' description: '' delete: - operationId: tenancy_tenant_groups_destroy - description: Delete a tenant group object. + operationId: ipam_ip_ranges_destroy + description: Delete a IP range object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant group. + description: A unique integer value identifying this IP range. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/tenancy/tenants/: + /api/ipam/ip-ranges/{id}/available-ips/: get: - operationId: tenancy_tenants_list - description: Get a list of tenant objects. + operationId: ipam_ip_ranges_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableIP' + description: '' + post: + operationId: ipam_ip_ranges_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/: + get: + operationId: ipam_prefixes_list + description: Get a list of prefix objects. parameters: - in: query - name: contact + name: children schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact__n + name: children__empty schema: type: array items: type: integer - description: Contact + format: int32 explode: true style: form - in: query - name: contact_group + name: children__gt schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_group__n + name: children__gte schema: type: array items: type: integer - description: Contact group + format: int32 explode: true style: form - in: query - name: contact_role + name: children__lt schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form - in: query - name: contact_role__n + name: children__lte schema: type: array items: type: integer - description: Contact Role + format: int32 explode: true style: form + - in: query + name: children__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: contains + schema: + type: string + description: Prefixes which contain this prefix or IP - in: query name: created schema: @@ -82048,43 +108432,70 @@ paths: type: string format: uuid - in: query - name: description + name: depth schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: depth__empty schema: - type: boolean + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: description__ic + name: depth__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: depth__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: depth__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__isw + name: depth__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: depth__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: description schema: type: array items: @@ -82092,7 +108503,11 @@ paths: explode: true style: form - in: query - name: description__n + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -82100,7 +108515,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: description__ie schema: type: array items: @@ -82108,7 +108523,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: description__iew schema: type: array items: @@ -82116,7 +108531,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: description__isw schema: type: array items: @@ -82124,7 +108539,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: description__n schema: type: array items: @@ -82132,41 +108547,41 @@ paths: explode: true style: form - in: query - name: group + name: description__nic schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query - name: group__n + name: description__nie schema: type: array items: - type: integer - description: Tenant group (slug) + type: string explode: true style: form - in: query - name: group_id + name: description__niew schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form - in: query - name: group_id__n + name: description__nisw schema: type: array items: - type: integer - description: Tenant group (ID) + type: string explode: true style: form + - in: query + name: family + schema: + type: number - in: query name: id schema: @@ -82225,6 +108640,10 @@ paths: format: int32 explode: true style: form + - in: query + name: is_pool + schema: + type: boolean - in: query name: last_updated schema: @@ -82294,13 +108713,46 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: mark_utilized + schema: + type: boolean + - in: query + name: mask_length + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mask_length__gte + schema: + type: number + - in: query + name: mask_length__lte + schema: + type: number - in: query name: modified_by_request schema: type: string format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: name + name: prefix schema: type: array items: @@ -82308,11 +108760,20 @@ paths: explode: true style: form - in: query - name: name__empty + name: present_in_vrf schema: - type: boolean + type: string - in: query - name: name__ic + name: present_in_vrf_id + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -82320,7 +108781,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: region__n schema: type: array items: @@ -82328,7 +108789,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: region_id schema: type: array items: @@ -82336,7 +108797,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: region_id__n schema: type: array items: @@ -82344,144 +108805,341 @@ paths: explode: true style: form - in: query - name: name__n + name: role schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nic + name: role__n schema: type: array items: type: string + description: Role (slug) explode: true style: form - in: query - name: name__nie + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: site schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__niew + name: site__n schema: type: array items: type: string + description: Site (slug) explode: true style: form - in: query - name: name__nisw + name: site_group schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: site_group__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: site_group_id__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: slug + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + description: Operational status of this prefix explode: true style: form - in: query - name: slug__empty + name: status__empty schema: type: boolean - in: query - name: slug__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query - name: slug__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: d38bee5f512701d9 + enum: + - active + - container + - deprecated + - reserved + description: 'Operational status of this prefix + + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query @@ -82500,13 +109158,190 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + nullable: true + description: VRF + explode: true + style: form + - in: query + name: within + schema: + type: string + description: Within prefix + - in: query + name: within_include + schema: + type: string + description: Within and including prefix tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -82515,21 +109350,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTenantList' + $ref: '#/components/schemas/PaginatedPrefixList' description: '' post: - operationId: tenancy_tenants_create - description: Post a list of tenant objects. + operationId: ipam_prefixes_create + description: Post a list of prefix objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -82539,25 +109374,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: tenancy_tenants_bulk_update - description: Put a list of tenant objects. + operationId: ipam_prefixes_bulk_update + description: Put a list of prefix objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -82569,25 +109404,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: tenancy_tenants_bulk_partial_update - description: Patch a list of tenant objects. + operationId: ipam_prefixes_bulk_partial_update + description: Patch a list of prefix objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -82599,25 +109434,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: tenancy_tenants_bulk_destroy - description: Delete a list of tenant objects. + operationId: ipam_prefixes_bulk_destroy + description: Delete a list of prefix objects. tags: - - tenancy + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/PrefixRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/PrefixRequest' required: true security: - cookieAuth: [] @@ -82625,19 +109460,19 @@ paths: responses: '204': description: No response body - /api/tenancy/tenants/{id}/: + /api/ipam/prefixes/{id}/: get: - operationId: tenancy_tenants_retrieve - description: Get a tenant object. + operationId: ipam_prefixes_retrieve + description: Get a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this prefix. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -82646,28 +109481,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/Prefix' description: '' put: - operationId: tenancy_tenants_update - description: Put a tenant object. + operationId: ipam_prefixes_update + description: Put a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this prefix. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/WritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TenantRequest' + $ref: '#/components/schemas/WritablePrefixRequest' required: true security: - cookieAuth: [] @@ -82677,28 +109512,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/Prefix' description: '' patch: - operationId: tenancy_tenants_partial_update - description: Patch a tenant object. + operationId: ipam_prefixes_partial_update + description: Patch a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this prefix. required: true tags: - - tenancy + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTenantRequest' + $ref: '#/components/schemas/PatchedWritablePrefixRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -82707,33 +109542,38 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tenant' + $ref: '#/components/schemas/Prefix' description: '' delete: - operationId: tenancy_tenants_destroy - description: Delete a tenant object. + operationId: ipam_prefixes_destroy + description: Delete a prefix object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tenant. + description: A unique integer value identifying this prefix. required: true tags: - - tenancy + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/config/: + /api/ipam/prefixes/{id}/available-ips/: get: - operationId: users_config_retrieve - description: An API endpoint via which a user can update his or her own UserConfig - data (but no one else's). + operationId: ipam_prefixes_available_ips_list + description: Get a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -82742,14 +109582,179 @@ paths: content: application/json: schema: - type: object - additionalProperties: {} + type: array + items: + $ref: '#/components/schemas/AvailableIP' description: '' - /api/users/groups/: + post: + operationId: ipam_prefixes_available_ips_create + description: Post a IP address object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddressRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPAddress' + description: '' + /api/ipam/prefixes/{id}/available-prefixes/: get: - operationId: users_groups_list - description: Get a list of group objects. + operationId: ipam_prefixes_available_prefixes_list + description: Get a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailablePrefix' + description: '' + post: + operationId: ipam_prefixes_available_prefixes_create + description: Post a prefix object. + parameters: + - in: path + name: id + schema: + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/PrefixRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Prefix' + description: '' + /api/ipam/rirs/: + get: + operationId: ipam_rirs_list + description: Get a list of RIR objects. parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -82892,12 +109897,84 @@ paths: format: int32 explode: true style: form + - in: query + name: is_private + schema: + type: boolean + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - name: limit required: false in: query description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -82995,48 +110072,117 @@ paths: schema: type: string - in: query - name: permission_id + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: permission_id__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - description: Permission (ID) + type: string explode: true style: form - in: query - name: q + name: slug__ie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: user_id + name: slug__iew schema: type: array items: - type: integer - description: User (ID) + type: string explode: true style: form - in: query - name: user_id__n + name: slug__isw schema: type: array items: - type: integer - description: User (ID) + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83045,21 +110191,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedGroupList' + $ref: '#/components/schemas/PaginatedRIRList' description: '' post: - operationId: users_groups_create - description: Post a list of group objects. + operationId: ipam_rirs_create + description: Post a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83069,25 +110215,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: users_groups_bulk_update - description: Put a list of group objects. + operationId: ipam_rirs_bulk_update + description: Put a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83099,25 +110245,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: users_groups_bulk_partial_update - description: Patch a list of group objects. + operationId: ipam_rirs_bulk_partial_update + description: Patch a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83129,25 +110275,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: users_groups_bulk_destroy - description: Delete a list of group objects. + operationId: ipam_rirs_bulk_destroy + description: Delete a list of RIR objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83155,19 +110301,19 @@ paths: responses: '204': description: No response body - /api/users/groups/{id}/: + /api/ipam/rirs/{id}/: get: - operationId: users_groups_retrieve - description: Get a group object. + operationId: ipam_rirs_retrieve + description: Get a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83176,28 +110322,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/RIR' description: '' put: - operationId: users_groups_update - description: Put a group object. + operationId: ipam_rirs_update + description: Put a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/GroupRequest' + $ref: '#/components/schemas/RIRRequest' required: true security: - cookieAuth: [] @@ -83207,28 +110353,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/RIR' description: '' patch: - operationId: users_groups_partial_update - description: Patch a group object. + operationId: ipam_rirs_partial_update + description: Patch a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedGroupRequest' + $ref: '#/components/schemas/PatchedRIRRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedGroupRequest' + $ref: '#/components/schemas/PatchedRIRRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83237,47 +110383,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Group' + $ref: '#/components/schemas/RIR' description: '' delete: - operationId: users_groups_destroy - description: Delete a group object. + operationId: ipam_rirs_destroy + description: Delete a RIR object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this group. + description: A unique integer value identifying this RIR. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/permissions/: + /api/ipam/roles/: get: - operationId: users_permissions_list - description: Get a list of permission objects. + operationId: ipam_roles_list + description: Get a list of role objects. parameters: - in: query - name: can_add + name: created schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: can_change + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: can_delete + name: created__gt schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: can_view + name: created__gte schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid - in: query name: description schema: @@ -83363,47 +110561,56 @@ paths: explode: true style: form - in: query - name: enabled + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty schema: type: boolean - in: query - name: group + name: id__gt schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group__n + name: id__gte schema: type: array items: - type: string - description: Group (name) + type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: id__lt schema: type: array items: type: integer - description: Group + format: int32 explode: true style: form - in: query - name: group_id__n + name: id__lte schema: type: array items: type: integer - description: Group + format: int32 explode: true style: form - in: query - name: id + name: id__n schema: type: array items: @@ -83412,52 +110619,66 @@ paths: explode: true style: form - in: query - name: id__empty + name: last_updated schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: id__gt + name: last_updated__empty schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__gte + name: last_updated__gt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lt + name: last_updated__gte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__lte + name: last_updated__lt schema: type: array items: - type: integer - format: int32 + type: string + format: date-time explode: true style: form - in: query - name: id__n + name: last_updated__lte schema: type: array items: - type: integer - format: int32 + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time explode: true style: form - name: limit @@ -83466,6 +110687,11 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid - in: query name: name schema: @@ -83550,133 +110776,188 @@ paths: type: string explode: true style: form - - in: query - name: object_type + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: type: string - in: query - name: object_type__ic + name: q schema: type: string + description: Search - in: query - name: object_type__ie + name: slug schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__iew + name: slug__empty schema: - type: string + type: boolean - in: query - name: object_type__isw + name: slug__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__n + name: slug__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nic + name: slug__iew schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nie + name: slug__isw schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__niew + name: slug__n schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type__nisw + name: slug__nic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: object_type_id + name: slug__nie schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_type_id__n + name: slug__niew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types + name: slug__nisw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: object_types__n + name: tag schema: type: array items: - type: integer + type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: tag__n schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request schema: type: string + format: uuid - in: query - name: q + name: weight schema: - type: string - description: Search + type: array + items: + type: integer + format: int32 + explode: true + style: form - in: query - name: user + name: weight__empty + schema: + type: boolean + - in: query + name: weight__gt schema: type: array items: - type: string - description: User (name) + type: integer + format: int32 explode: true style: form - in: query - name: user__n + name: weight__gte schema: type: array items: - type: string - description: User (name) + type: integer + format: int32 explode: true style: form - in: query - name: user_id + name: weight__lt schema: type: array items: type: integer - description: User + format: int32 explode: true style: form - in: query - name: user_id__n + name: weight__lte schema: type: array items: type: integer - description: User + format: int32 + explode: true + style: form + - in: query + name: weight__n + schema: + type: array + items: + type: integer + format: int32 explode: true style: form tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83685,21 +110966,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedObjectPermissionList' + $ref: '#/components/schemas/PaginatedRoleList' description: '' post: - operationId: users_permissions_create - description: Post a list of permission objects. + operationId: ipam_roles_create + description: Post a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -83709,25 +110990,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Role' description: '' put: - operationId: users_permissions_bulk_update - description: Put a list of permission objects. + operationId: ipam_roles_bulk_update + description: Put a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -83739,25 +111020,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: users_permissions_bulk_partial_update - description: Patch a list of permission objects. + operationId: ipam_roles_bulk_partial_update + description: Patch a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -83769,25 +111050,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: users_permissions_bulk_destroy - description: Delete a list of permission objects. + operationId: ipam_roles_bulk_destroy + description: Delete a list of role objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -83795,19 +111076,19 @@ paths: responses: '204': description: No response body - /api/users/permissions/{id}/: + /api/ipam/roles/{id}/: get: - operationId: users_permissions_retrieve - description: Get a permission object. + operationId: ipam_roles_retrieve + description: Get a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -83816,28 +111097,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Role' description: '' put: - operationId: users_permissions_update - description: Put a permission object. + operationId: ipam_roles_update + description: Put a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ObjectPermissionRequest' + $ref: '#/components/schemas/RoleRequest' required: true security: - cookieAuth: [] @@ -83847,28 +111128,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Role' description: '' patch: - operationId: users_permissions_partial_update - description: Patch a permission object. + operationId: ipam_roles_partial_update + description: Patch a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedObjectPermissionRequest' + $ref: '#/components/schemas/PatchedRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -83877,46 +111158,99 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ObjectPermission' + $ref: '#/components/schemas/Role' description: '' delete: - operationId: users_permissions_destroy - description: Delete a permission object. + operationId: ipam_roles_destroy + description: Delete a role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this permission. + description: A unique integer value identifying this role. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/: + /api/ipam/route-targets/: get: - operationId: users_tokens_list - description: Get a list of token objects. + operationId: ipam_route_targets_list + description: Get a list of route target objects. parameters: - in: query name: created schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__gte schema: - type: string - format: date-time + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request schema: type: string - format: date-time + format: uuid - in: query name: description schema: @@ -84002,20 +111336,89 @@ paths: explode: true style: form - in: query - name: expires + name: exporting_l2vpn schema: - type: string - format: date-time + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) + explode: true + style: form - in: query - name: expires__gte + name: exporting_l2vpn__n schema: - type: string - format: date-time + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Exporting L2VPN (identifier) + explode: true + style: form - in: query - name: expires__lte + name: exporting_l2vpn_id schema: - type: string - format: date-time + type: array + items: + type: integer + description: Exporting L2VPN + explode: true + style: form + - in: query + name: exporting_l2vpn_id__n + schema: + type: array + items: + type: integer + description: Exporting L2VPN + explode: true + style: form + - in: query + name: exporting_vrf + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) + explode: true + style: form + - in: query + name: exporting_vrf__n + schema: + type: array + items: + type: string + nullable: true + title: Route distinguisher + description: Export VRF (RD) + explode: true + style: form + - in: query + name: exporting_vrf_id + schema: + type: array + items: + type: integer + description: Exporting VRF + explode: true + style: form + - in: query + name: exporting_vrf_id__n + schema: + type: array + items: + type: integer + description: Exporting VRF + explode: true + style: form - in: query name: id schema: @@ -84075,91 +111478,145 @@ paths: explode: true style: form - in: query - name: key + name: importing_l2vpn schema: type: array items: - type: string + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) explode: true style: form - in: query - name: key__empty + name: importing_l2vpn__n schema: - type: boolean + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: Importing L2VPN (identifier) + explode: true + style: form - in: query - name: key__ic + name: importing_l2vpn_id schema: type: array items: - type: string + type: integer + description: Importing L2VPN explode: true style: form - in: query - name: key__ie + name: importing_l2vpn_id__n + schema: + type: array + items: + type: integer + description: Importing L2VPN + explode: true + style: form + - in: query + name: importing_vrf schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: key__iew + name: importing_vrf__n schema: type: array items: type: string + nullable: true + title: Route distinguisher + description: Import VRF (RD) explode: true style: form - in: query - name: key__isw + name: importing_vrf_id + schema: + type: array + items: + type: integer + description: Importing VRF + explode: true + style: form + - in: query + name: importing_vrf_id__n + schema: + type: array + items: + type: integer + description: Importing VRF + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__n + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nic + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nie + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__niew + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: key__nisw + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: last_used + name: last_updated__n schema: type: array items: @@ -84167,61 +111624,101 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: last_used__empty + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: type: boolean - in: query - name: last_used__gt + name: name__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__gte + name: name__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lt + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__lte + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_used__n + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: name__nic schema: - type: integer + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form - name: offset required: false in: query @@ -84240,47 +111737,98 @@ paths: type: string description: Search - in: query - name: user + name: tag schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user__n + name: tag__n schema: type: array items: type: string - description: User (name) explode: true style: form - in: query - name: user_id + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id schema: type: array items: type: integer - description: User + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: user_id__n + name: tenant_id__n schema: type: array items: type: integer - description: User + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: write_enabled + name: updated_by_request schema: - type: boolean + type: string + format: uuid tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -84289,21 +111837,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTokenList' + $ref: '#/components/schemas/PaginatedRouteTargetList' description: '' post: - operationId: users_tokens_create - description: Post a list of token objects. + operationId: ipam_route_targets_create + description: Post a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -84313,25 +111861,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: users_tokens_bulk_update - description: Put a list of token objects. + operationId: ipam_route_targets_bulk_update + description: Put a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -84343,25 +111891,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: users_tokens_bulk_partial_update - description: Patch a list of token objects. + operationId: ipam_route_targets_bulk_partial_update + description: Patch a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -84373,25 +111921,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: users_tokens_bulk_destroy - description: Delete a list of token objects. + operationId: ipam_route_targets_bulk_destroy + description: Delete a list of route target objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -84399,19 +111947,19 @@ paths: responses: '204': description: No response body - /api/users/tokens/{id}/: + /api/ipam/route-targets/{id}/: get: - operationId: users_tokens_retrieve - description: Get a token object. + operationId: ipam_route_targets_retrieve + description: Get a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -84420,28 +111968,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/RouteTarget' description: '' put: - operationId: users_tokens_update - description: Put a token object. + operationId: ipam_route_targets_update + description: Put a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TokenRequest' + $ref: '#/components/schemas/RouteTargetRequest' required: true security: - cookieAuth: [] @@ -84451,28 +111999,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/RouteTarget' description: '' patch: - operationId: users_tokens_partial_update - description: Patch a token object. + operationId: ipam_route_targets_partial_update + description: Patch a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTokenRequest' + $ref: '#/components/schemas/PatchedRouteTargetRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -84481,66 +112029,33 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Token' + $ref: '#/components/schemas/RouteTarget' description: '' delete: - operationId: users_tokens_destroy - description: Delete a token object. + operationId: ipam_route_targets_destroy + description: Delete a route target object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this token. + description: A unique integer value identifying this route target. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/users/tokens/provision/: - post: - operationId: users_tokens_provision_create - description: Non-authenticated REST API endpoint via which a user may create - a Token. - tags: - - users - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/TokenProvisionRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '201': - content: - application/json: - schema: - $ref: '#/components/schemas/TokenProvision' - description: '' - '401': - content: - application/json: - schema: - type: object - additionalProperties: {} - description: '' - /api/users/users/: + /api/ipam/service-templates/: get: - operationId: users_users_list - description: Get a list of user objects. + operationId: ipam_service_templates_list + description: Get a list of service template objects. parameters: - in: query - name: date_joined + name: created schema: type: array items: @@ -84549,11 +112064,16 @@ paths: explode: true style: form - in: query - name: date_joined__empty + name: created__empty schema: - type: boolean + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: date_joined__gt + name: created__gt schema: type: array items: @@ -84562,7 +112082,7 @@ paths: explode: true style: form - in: query - name: date_joined__gte + name: created__gte schema: type: array items: @@ -84571,7 +112091,7 @@ paths: explode: true style: form - in: query - name: date_joined__lt + name: created__lt schema: type: array items: @@ -84580,7 +112100,7 @@ paths: explode: true style: form - in: query - name: date_joined__lte + name: created__lte schema: type: array items: @@ -84589,7 +112109,7 @@ paths: explode: true style: form - in: query - name: date_joined__n + name: created__n schema: type: array items: @@ -84598,7 +112118,12 @@ paths: explode: true style: form - in: query - name: email + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -84606,11 +112131,11 @@ paths: explode: true style: form - in: query - name: email__empty + name: description__empty schema: type: boolean - in: query - name: email__ic + name: description__ic schema: type: array items: @@ -84618,7 +112143,7 @@ paths: explode: true style: form - in: query - name: email__ie + name: description__ie schema: type: array items: @@ -84626,7 +112151,7 @@ paths: explode: true style: form - in: query - name: email__iew + name: description__iew schema: type: array items: @@ -84634,7 +112159,7 @@ paths: explode: true style: form - in: query - name: email__isw + name: description__isw schema: type: array items: @@ -84642,7 +112167,7 @@ paths: explode: true style: form - in: query - name: email__n + name: description__n schema: type: array items: @@ -84650,7 +112175,7 @@ paths: explode: true style: form - in: query - name: email__nic + name: description__nic schema: type: array items: @@ -84658,7 +112183,7 @@ paths: explode: true style: form - in: query - name: email__nie + name: description__nie schema: type: array items: @@ -84666,7 +112191,7 @@ paths: explode: true style: form - in: query - name: email__niew + name: description__niew schema: type: array items: @@ -84674,7 +112199,7 @@ paths: explode: true style: form - in: query - name: email__nisw + name: description__nisw schema: type: array items: @@ -84682,197 +112207,83 @@ paths: explode: true style: form - in: query - name: first_name + name: id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__empty + name: id__empty schema: type: boolean - in: query - name: first_name__ic + name: id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__ie + name: id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__iew + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__isw + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__n + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: first_name__nic + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: first_name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: first_name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Group (name) - explode: true - style: form - - in: query - name: group__n + name: last_updated__empty schema: type: array items: type: string - description: Group (name) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - description: Group - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - description: Group - explode: true - style: form - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 + format: date-time explode: true style: form - in: query - name: is_active - schema: - type: boolean - - in: query - name: is_staff - schema: - type: boolean - - in: query - name: is_superuser - schema: - type: boolean - - in: query - name: last_login + name: last_updated__gt schema: type: array items: @@ -84881,11 +112292,7 @@ paths: explode: true style: form - in: query - name: last_login__empty - schema: - type: boolean - - in: query - name: last_login__gt + name: last_updated__gte schema: type: array items: @@ -84894,7 +112301,7 @@ paths: explode: true style: form - in: query - name: last_login__gte + name: last_updated__lt schema: type: array items: @@ -84903,7 +112310,7 @@ paths: explode: true style: form - in: query - name: last_login__lt + name: last_updated__lte schema: type: array items: @@ -84912,7 +112319,7 @@ paths: explode: true style: form - in: query - name: last_login__lte + name: last_updated__n schema: type: array items: @@ -84920,17 +112327,19 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: last_login__n + name: modified_by_request schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: uuid - in: query - name: last_name + name: name schema: type: array items: @@ -84938,11 +112347,11 @@ paths: explode: true style: form - in: query - name: last_name__empty + name: name__empty schema: type: boolean - in: query - name: last_name__ic + name: name__ic schema: type: array items: @@ -84950,7 +112359,7 @@ paths: explode: true style: form - in: query - name: last_name__ie + name: name__ie schema: type: array items: @@ -84958,7 +112367,7 @@ paths: explode: true style: form - in: query - name: last_name__iew + name: name__iew schema: type: array items: @@ -84966,7 +112375,7 @@ paths: explode: true style: form - in: query - name: last_name__isw + name: name__isw schema: type: array items: @@ -84974,7 +112383,7 @@ paths: explode: true style: form - in: query - name: last_name__n + name: name__n schema: type: array items: @@ -84982,7 +112391,7 @@ paths: explode: true style: form - in: query - name: last_name__nic + name: name__nic schema: type: array items: @@ -84990,7 +112399,7 @@ paths: explode: true style: form - in: query - name: last_name__nie + name: name__nie schema: type: array items: @@ -84998,7 +112407,7 @@ paths: explode: true style: form - in: query - name: last_name__niew + name: name__niew schema: type: array items: @@ -85006,19 +112415,13 @@ paths: explode: true style: form - in: query - name: last_name__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - name: offset required: false in: query @@ -85032,90 +112435,30 @@ paths: schema: type: string - in: query - name: permission_id + name: port schema: - type: array - items: - type: integer - description: Permission (ID) - explode: true - style: form + type: number - in: query - name: permission_id__n + name: protocol schema: - type: array - items: - type: integer - description: Permission (ID) - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query name: q schema: type: string description: Search - in: query - name: username - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__empty - schema: - type: boolean - - in: query - name: username__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: username__nie + name: tag schema: type: array items: @@ -85123,7 +112466,7 @@ paths: explode: true style: form - in: query - name: username__niew + name: tag__n schema: type: array items: @@ -85131,15 +112474,12 @@ paths: explode: true style: form - in: query - name: username__nisw + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -85148,21 +112488,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedUserList' + $ref: '#/components/schemas/PaginatedServiceTemplateList' description: '' post: - operationId: users_users_create - description: Post a list of user objects. + operationId: ipam_service_templates_create + description: Post a list of service template objects. tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85172,25 +112512,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: users_users_bulk_update - description: Put a list of user objects. + operationId: ipam_service_templates_bulk_update + description: Put a list of service template objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85202,25 +112542,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: users_users_bulk_partial_update - description: Patch a list of user objects. + operationId: ipam_service_templates_bulk_partial_update + description: Patch a list of service template objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85232,25 +112572,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: users_users_bulk_destroy - description: Delete a list of user objects. + operationId: ipam_service_templates_bulk_destroy + description: Delete a list of service template objects. tags: - - users + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/ServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85258,19 +112598,19 @@ paths: responses: '204': description: No response body - /api/users/users/{id}/: + /api/ipam/service-templates/{id}/: get: - operationId: users_users_retrieve - description: Get a user object. + operationId: ipam_service_templates_retrieve + description: Get a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this service template. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -85279,28 +112619,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/ServiceTemplate' description: '' put: - operationId: users_users_update - description: Put a user object. + operationId: ipam_service_templates_update + description: Put a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this service template. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/WritableServiceTemplateRequest' required: true security: - cookieAuth: [] @@ -85310,28 +112650,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/ServiceTemplate' description: '' patch: - operationId: users_users_partial_update - description: Patch a user object. + operationId: ipam_service_templates_partial_update + description: Patch a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this service template. required: true tags: - - users + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedUserRequest' + $ref: '#/components/schemas/PatchedWritableServiceTemplateRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -85340,85 +112680,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/ServiceTemplate' description: '' delete: - operationId: users_users_destroy - description: Delete a user object. + operationId: ipam_service_templates_destroy + description: Delete a service template object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this user. + description: A unique integer value identifying this service template. required: true tags: - - users + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-groups/: + /api/ipam/services/: get: - operationId: virtualization_cluster_groups_list - description: Get a list of cluster group objects. + operationId: ipam_services_list + description: Get a list of service objects. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_group__n - schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form - - in: query - name: contact_role - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - - in: query - name: contact_role__n - schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form - in: query name: created schema: @@ -85571,6 +112857,46 @@ paths: type: string explode: true style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form - in: query name: id schema: @@ -85629,6 +112955,42 @@ paths: format: int32 explode: true style: form + - in: query + name: ip_address + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ip_address__n + schema: + type: array + items: + type: string + description: IP address + explode: true + style: form + - in: query + name: ip_address_id + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form + - in: query + name: ip_address_id__n + schema: + type: array + items: + type: integer + description: IP address (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -85800,56 +113162,30 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie + name: port schema: - type: array - items: - type: string - explode: true - style: form + type: number - in: query - name: slug__iew + name: protocol schema: - type: array - items: - type: string - explode: true - style: form + type: string + x-spec-enum-id: 5521e084b1ad51de + enum: + - sctp + - tcp + - udp + description: '* `tcp` - TCP + + * `udp` - UDP + + * `sctp` - SCTP' - in: query - name: slug__isw + name: q schema: - type: array - items: - type: string - explode: true - style: form + type: string + description: Search - in: query - name: slug__n + name: tag schema: type: array items: @@ -85857,7 +113193,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: tag__n schema: type: array items: @@ -85865,52 +113201,50 @@ paths: explode: true style: form - in: query - name: slug__nie + name: updated_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: slug__niew + name: virtual_machine schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: slug__nisw + name: virtual_machine__n schema: type: array items: type: string + description: Virtual machine (name) explode: true style: form - in: query - name: tag + name: virtual_machine_id schema: type: array items: - type: string + type: integer + nullable: true + description: Virtual machine (ID) explode: true style: form - in: query - name: tag__n + name: virtual_machine_id__n schema: type: array items: - type: string + type: integer + nullable: true + description: Virtual machine (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -85919,21 +113253,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterGroupList' + $ref: '#/components/schemas/PaginatedServiceList' description: '' post: - operationId: virtualization_cluster_groups_create - description: Post a list of cluster group objects. + operationId: ipam_services_create + description: Post a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -85943,25 +113277,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Service' description: '' put: - operationId: virtualization_cluster_groups_bulk_update - description: Put a list of cluster group objects. + operationId: ipam_services_bulk_update + description: Put a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -85973,25 +113307,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: virtualization_cluster_groups_bulk_partial_update - description: Patch a list of cluster group objects. + operationId: ipam_services_bulk_partial_update + description: Patch a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -86003,25 +113337,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: virtualization_cluster_groups_bulk_destroy - description: Delete a list of cluster group objects. + operationId: ipam_services_bulk_destroy + description: Delete a list of service objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/ServiceRequest' required: true security: - cookieAuth: [] @@ -86029,19 +113363,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-groups/{id}/: + /api/ipam/services/{id}/: get: - operationId: virtualization_cluster_groups_retrieve - description: Get a cluster group object. + operationId: ipam_services_retrieve + description: Get a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -86050,28 +113384,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Service' description: '' put: - operationId: virtualization_cluster_groups_update - description: Put a cluster group object. + operationId: ipam_services_update + description: Put a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterGroupRequest' + $ref: '#/components/schemas/WritableServiceRequest' required: true security: - cookieAuth: [] @@ -86081,28 +113415,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Service' description: '' patch: - operationId: virtualization_cluster_groups_partial_update - description: Patch a cluster group object. + operationId: ipam_services_partial_update + description: Patch a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterGroupRequest' + $ref: '#/components/schemas/PatchedWritableServiceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86111,31 +113445,43 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterGroup' + $ref: '#/components/schemas/Service' description: '' delete: - operationId: virtualization_cluster_groups_destroy - description: Delete a cluster group object. + operationId: ipam_services_destroy + description: Delete a service object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster group. + description: A unique integer value identifying this service. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/cluster-types/: + /api/ipam/vlan-groups/: get: - operationId: virtualization_cluster_types_list - description: Get a list of cluster type objects. + operationId: ipam_vlan_groups_list + description: Get a list of VLAN group objects. parameters: + - in: query + name: cluster + schema: + type: integer + - in: query + name: cluster_group + schema: + type: integer + - in: query + name: contains_vid + schema: + type: number - in: query name: created schema: @@ -86415,6 +113761,10 @@ paths: description: Number of results to return per page. schema: type: integer + - in: query + name: location + schema: + type: integer - in: query name: modified_by_request schema: @@ -86521,6 +113871,88 @@ paths: schema: type: string description: Search + - in: query + name: rack + schema: + type: integer + - in: query + name: region + schema: + type: integer + - in: query + name: scope_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__empty + schema: + type: boolean + - in: query + name: scope_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: scope_type + schema: + type: string + - in: query + name: scope_type__n + schema: + type: string + - in: query + name: site + schema: + type: integer + - in: query + name: site_group + schema: + type: integer - in: query name: slug schema: @@ -86627,7 +114059,7 @@ paths: type: string format: uuid tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -86636,21 +114068,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterTypeList' + $ref: '#/components/schemas/PaginatedVLANGroupList' description: '' post: - operationId: virtualization_cluster_types_create - description: Post a list of cluster type objects. + operationId: ipam_vlan_groups_create + description: Post a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -86660,25 +114092,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: virtualization_cluster_types_bulk_update - description: Put a list of cluster type objects. + operationId: ipam_vlan_groups_bulk_update + description: Put a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -86690,25 +114122,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: virtualization_cluster_types_bulk_partial_update - description: Patch a list of cluster type objects. + operationId: ipam_vlan_groups_bulk_partial_update + description: Patch a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -86720,25 +114152,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: virtualization_cluster_types_bulk_destroy - description: Delete a list of cluster type objects. + operationId: ipam_vlan_groups_bulk_destroy + description: Delete a list of VLAN group objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -86746,19 +114178,19 @@ paths: responses: '204': description: No response body - /api/virtualization/cluster-types/{id}/: + /api/ipam/vlan-groups/{id}/: get: - operationId: virtualization_cluster_types_retrieve - description: Get a cluster type object. + operationId: ipam_vlan_groups_retrieve + description: Get a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -86767,28 +114199,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/VLANGroup' description: '' put: - operationId: virtualization_cluster_types_update - description: Put a cluster type object. + operationId: ipam_vlan_groups_update + description: Put a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/VLANGroupRequest' required: true security: - cookieAuth: [] @@ -86798,28 +114230,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/VLANGroup' description: '' patch: - operationId: virtualization_cluster_types_partial_update - description: Patch a cluster type object. + operationId: ipam_vlan_groups_partial_update + description: Patch a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedClusterTypeRequest' + $ref: '#/components/schemas/PatchedVLANGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -86828,85 +114260,103 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/ClusterType' + $ref: '#/components/schemas/VLANGroup' description: '' delete: - operationId: virtualization_cluster_types_destroy - description: Delete a cluster type object. + operationId: ipam_vlan_groups_destroy + description: Delete a VLAN group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster type. + description: A unique integer value identifying this VLAN group. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/clusters/: + /api/ipam/vlan-groups/{id}/available-vlans/: get: - operationId: virtualization_clusters_list - description: Get a list of cluster objects. + operationId: ipam_vlan_groups_available_vlans_list + description: Get a VLAN object. parameters: - - in: query - name: contact - schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact__n + - in: path + name: id schema: - type: array - items: - type: integer - description: Contact - explode: true - style: form - - in: query - name: contact_group + type: integer + required: true + tags: + - ipam + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/AvailableVLAN' + description: '' + post: + operationId: ipam_vlan_groups_available_vlans_create + description: Post a VLAN object. + parameters: + - in: path + name: id schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: integer + required: true + tags: + - ipam + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VLAN' + description: '' + /api/ipam/vlans/: + get: + operationId: ipam_vlans_list + description: Get a list of VLAN objects. + parameters: - in: query - name: contact_group__n + name: available_at_site schema: - type: array - items: - type: integer - description: Contact group - explode: true - style: form + type: string - in: query - name: contact_role + name: available_on_device schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query - name: contact_role__n + name: available_on_virtualmachine schema: - type: array - items: - type: integer - description: Contact Role - explode: true - style: form + type: string - in: query name: created schema: @@ -87065,7 +114515,7 @@ paths: type: array items: type: string - description: Parent group (slug) + description: Group explode: true style: form - in: query @@ -87074,7 +114524,7 @@ paths: type: array items: type: string - description: Parent group (slug) + description: Group explode: true style: form - in: query @@ -87084,7 +114534,7 @@ paths: items: type: integer nullable: true - description: Parent group (ID) + description: Group (ID) explode: true style: form - in: query @@ -87094,7 +114544,7 @@ paths: items: type: integer nullable: true - description: Parent group (ID) + description: Group (ID) explode: true style: form - in: query @@ -87155,6 +114605,50 @@ paths: format: int32 explode: true style: form + - in: query + name: l2vpn + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form - in: query name: last_updated schema: @@ -87335,8 +114829,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -87344,8 +114837,7 @@ paths: schema: type: array items: - type: integer - description: Region (slug) + type: string explode: true style: form - in: query @@ -87353,17 +114845,53 @@ paths: schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id schema: type: array items: type: integer - description: Region (ID) + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) explode: true style: form - in: query @@ -87389,8 +114917,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -87398,8 +114925,7 @@ paths: schema: type: array items: - type: integer - description: Site group (slug) + type: string explode: true style: form - in: query @@ -87407,8 +114933,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -87416,8 +114941,7 @@ paths: schema: type: array items: - type: integer - description: Site group (ID) + type: string explode: true style: form - in: query @@ -87446,7 +114970,96 @@ paths: type: array items: type: string - x-spec-enum-id: 79d20a734d0eecbb + x-spec-enum-id: 6388dfb94ca1cc15 + description: Operational status of this VLAN + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query @@ -87455,7 +115068,103 @@ paths: type: array items: type: string - x-spec-enum-id: 79d20a734d0eecbb + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + enum: + - active + - deprecated + - reserved + description: 'Operational status of this VLAN + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' explode: true style: form - in: query @@ -87497,8 +115206,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -87506,8 +115214,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (slug) + type: string explode: true style: form - in: query @@ -87515,8 +115222,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -87524,8 +115230,7 @@ paths: schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query @@ -87549,48 +115254,70 @@ paths: explode: true style: form - in: query - name: type + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vid schema: type: array items: - type: string - description: Cluster type (slug) + type: integer + format: int32 explode: true style: form - in: query - name: type__n + name: vid__empty + schema: + type: boolean + - in: query + name: vid__gt schema: type: array items: - type: string - description: Cluster type (slug) + type: integer + format: int32 explode: true style: form - in: query - name: type_id + name: vid__gte schema: type: array items: type: integer - description: Cluster type (ID) + format: int32 explode: true style: form - in: query - name: type_id__n + name: vid__lt schema: type: array items: type: integer - description: Cluster type (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request + name: vid__lte schema: - type: string - format: uuid + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: vid__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -87599,21 +115326,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedClusterList' + $ref: '#/components/schemas/PaginatedVLANList' description: '' post: - operationId: virtualization_clusters_create - description: Post a list of cluster objects. + operationId: ipam_vlans_create + description: Post a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -87623,25 +115350,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: virtualization_clusters_bulk_update - description: Put a list of cluster objects. + operationId: ipam_vlans_bulk_update + description: Put a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -87653,25 +115380,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: virtualization_clusters_bulk_partial_update - description: Patch a list of cluster objects. + operationId: ipam_vlans_bulk_partial_update + description: Patch a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -87683,25 +115410,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: virtualization_clusters_bulk_destroy - description: Delete a list of cluster objects. + operationId: ipam_vlans_bulk_destroy + description: Delete a list of VLAN objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/ClusterRequest' + $ref: '#/components/schemas/VLANRequest' required: true security: - cookieAuth: [] @@ -87709,19 +115436,19 @@ paths: responses: '204': description: No response body - /api/virtualization/clusters/{id}/: + /api/ipam/vlans/{id}/: get: - operationId: virtualization_clusters_retrieve - description: Get a cluster object. + operationId: ipam_vlans_retrieve + description: Get a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -87730,28 +115457,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLAN' description: '' put: - operationId: virtualization_clusters_update - description: Put a cluster object. + operationId: ipam_vlans_update + description: Put a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableClusterRequest' + $ref: '#/components/schemas/WritableVLANRequest' required: true security: - cookieAuth: [] @@ -87761,28 +115488,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLAN' description: '' patch: - operationId: virtualization_clusters_partial_update - description: Patch a cluster object. + operationId: ipam_vlans_partial_update + description: Patch a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableClusterRequest' + $ref: '#/components/schemas/PatchedWritableVLANRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -87791,85 +115518,31 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Cluster' + $ref: '#/components/schemas/VLAN' description: '' delete: - operationId: virtualization_clusters_destroy - description: Delete a cluster object. + operationId: ipam_vlans_destroy + description: Delete a VLAN object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this cluster. + description: A unique integer value identifying this VLAN. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/interfaces/: + /api/ipam/vrfs/: get: - operationId: virtualization_interfaces_list - description: Get a list of interface objects. + operationId: ipam_vrfs_list + description: Get a list of VRF objects. parameters: - - in: query - name: bridge_id - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: bridge_id__n - schema: - type: array - items: - type: integer - description: Bridged interface (ID) - explode: true - style: form - - in: query - name: cluster - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster__n - schema: - type: array - items: - type: string - description: Cluster - explode: true - style: form - - in: query - name: cluster_id - schema: - type: array - items: - type: integer - description: Cluster (ID) - explode: true - style: form - - in: query - name: cluster_id__n - schema: - type: array - items: - type: integer - description: Cluster (ID) - explode: true - style: form - in: query name: created schema: @@ -88023,9 +115696,45 @@ paths: explode: true style: form - in: query - name: enabled + name: enforce_unique schema: type: boolean + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form - in: query name: id schema: @@ -88085,47 +115794,39 @@ paths: explode: true style: form - in: query - name: l2vpn + name: import_target schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + description: Import target (name) explode: true style: form - in: query - name: l2vpn__n + name: import_target__n schema: type: array items: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - description: L2VPN + type: string + description: Import target (name) explode: true style: form - in: query - name: l2vpn_id + name: import_target_id schema: type: array items: type: integer - description: L2VPN (ID) + description: Import target explode: true style: form - in: query - name: l2vpn_id__n + name: import_target_id__n schema: type: array items: type: integer - description: L2VPN (ID) + description: Import target explode: true style: form - in: query @@ -88198,15 +115899,12 @@ paths: schema: type: integer - in: query - name: mac_address + name: modified_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: mac_address__ic + name: name schema: type: array items: @@ -88214,15 +115912,11 @@ paths: explode: true style: form - in: query - name: mac_address__ie + name: name__empty schema: - type: array - items: - type: string - explode: true - style: form + type: boolean - in: query - name: mac_address__iew + name: name__ic schema: type: array items: @@ -88230,7 +115924,7 @@ paths: explode: true style: form - in: query - name: mac_address__isw + name: name__ie schema: type: array items: @@ -88238,7 +115932,7 @@ paths: explode: true style: form - in: query - name: mac_address__n + name: name__iew schema: type: array items: @@ -88246,7 +115940,7 @@ paths: explode: true style: form - in: query - name: mac_address__nic + name: name__isw schema: type: array items: @@ -88254,7 +115948,7 @@ paths: explode: true style: form - in: query - name: mac_address__nie + name: name__n schema: type: array items: @@ -88262,7 +115956,7 @@ paths: explode: true style: form - in: query - name: mac_address__niew + name: name__nic schema: type: array items: @@ -88270,7 +115964,7 @@ paths: explode: true style: form - in: query - name: mac_address__nisw + name: name__nie schema: type: array items: @@ -88278,104 +115972,40 @@ paths: explode: true style: form - in: query - name: mode - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: mode__n - schema: - type: string - x-spec-enum-id: 79109bd9dbb73a3c - enum: - - access - - tagged - - tagged-all - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: mtu - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__empty - schema: - type: boolean - - in: query - name: mtu__gt + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: mtu__gte + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - - in: query - name: mtu__lt + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: mtu__lte + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: mtu__n + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: name + name: rd schema: type: array items: @@ -88383,11 +116013,11 @@ paths: explode: true style: form - in: query - name: name__empty + name: rd__empty schema: type: boolean - in: query - name: name__ic + name: rd__ic schema: type: array items: @@ -88395,7 +116025,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: rd__ie schema: type: array items: @@ -88403,7 +116033,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: rd__iew schema: type: array items: @@ -88411,7 +116041,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: rd__isw schema: type: array items: @@ -88419,7 +116049,7 @@ paths: explode: true style: form - in: query - name: name__n + name: rd__n schema: type: array items: @@ -88427,7 +116057,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: rd__nic schema: type: array items: @@ -88435,7 +116065,7 @@ paths: explode: true style: form - in: query - name: name__nie + name: rd__nie schema: type: array items: @@ -88443,7 +116073,7 @@ paths: explode: true style: form - in: query - name: name__niew + name: rd__niew schema: type: array items: @@ -88451,48 +116081,13 @@ paths: explode: true style: form - in: query - name: name__nisw + name: rd__nisw schema: type: array items: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: parent_id - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: parent_id__n - schema: - type: array - items: - type: integer - description: Parent interface (ID) - explode: true - style: form - - in: query - name: q - schema: - type: string - description: Search - in: query name: tag schema: @@ -88510,98 +116105,82 @@ paths: explode: true style: form - in: query - name: updated_by_request - schema: - type: string - format: uuid - - in: query - name: virtual_machine + name: tenant schema: type: array items: type: string - description: Virtual machine + description: Tenant (slug) explode: true style: form - in: query - name: virtual_machine__n + name: tenant__n schema: type: array items: type: string - description: Virtual machine + description: Tenant (slug) explode: true style: form - in: query - name: virtual_machine_id + name: tenant_group schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: virtual_machine_id__n + name: tenant_group__n schema: type: array items: - type: integer - description: Virtual machine (ID) + type: string explode: true style: form - in: query - name: vlan - schema: - type: string - description: Assigned VID - - in: query - name: vlan_id - schema: - type: string - description: Assigned VLAN - - in: query - name: vrf + name: tenant_group_id schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf__n + name: tenant_group_id__n schema: type: array items: type: string - nullable: true - title: Route distinguisher - description: VRF (RD) explode: true style: form - in: query - name: vrf_id + name: tenant_id schema: type: array items: type: integer - description: VRF + nullable: true + description: Tenant (ID) explode: true style: form - in: query - name: vrf_id__n + name: tenant_id__n schema: type: array items: type: integer - description: VRF + nullable: true + description: Tenant (ID) explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -88610,21 +116189,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVMInterfaceList' + $ref: '#/components/schemas/PaginatedVRFList' description: '' post: - operationId: virtualization_interfaces_create - description: Post a list of interface objects. + operationId: ipam_vrfs_create + description: Post a list of VRF objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -88634,25 +116213,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: virtualization_interfaces_bulk_update - description: Put a list of interface objects. + operationId: ipam_vrfs_bulk_update + description: Put a list of VRF objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -88664,25 +116243,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: virtualization_interfaces_bulk_partial_update - description: Patch a list of interface objects. + operationId: ipam_vrfs_bulk_partial_update + description: Patch a list of VRF objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -88694,25 +116273,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: virtualization_interfaces_bulk_destroy - description: Delete a list of interface objects. + operationId: ipam_vrfs_bulk_destroy + description: Delete a list of VRF objects. tags: - - virtualization + - ipam requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -88720,19 +116299,19 @@ paths: responses: '204': description: No response body - /api/virtualization/interfaces/{id}/: + /api/ipam/vrfs/{id}/: get: - operationId: virtualization_interfaces_retrieve - description: Get a interface object. + operationId: ipam_vrfs_retrieve + description: Get a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VRF. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] @@ -88741,28 +116320,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VRF' description: '' put: - operationId: virtualization_interfaces_update - description: Put a interface object. + operationId: ipam_vrfs_update + description: Put a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VRF. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVMInterfaceRequest' + $ref: '#/components/schemas/VRFRequest' required: true security: - cookieAuth: [] @@ -88772,28 +116351,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VRF' description: '' patch: - operationId: virtualization_interfaces_partial_update - description: Patch a interface object. + operationId: ipam_vrfs_partial_update + description: Patch a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VRF. required: true tags: - - virtualization + - ipam requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedVRFRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' + $ref: '#/components/schemas/PatchedVRFRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -88802,69 +116381,133 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VMInterface' + $ref: '#/components/schemas/VRF' description: '' delete: - operationId: virtualization_interfaces_destroy - description: Delete a interface object. + operationId: ipam_vrfs_destroy + description: Delete a VRF object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this interface. + description: A unique integer value identifying this VRF. required: true tags: - - virtualization + - ipam security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-disks/: + /api/schema/: get: - operationId: virtualization_virtual_disks_list - description: Get a list of virtual disk objects. + operationId: schema_retrieve + description: 'OpenApi3 schema for this API. Format can be selected via content + negotiation. + + + - YAML: application/vnd.oai.openapi + + - JSON: application/vnd.oai.openapi+json' parameters: - in: query - name: created + name: format schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + enum: + - json + - yaml - in: query - name: created__empty + name: lang schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + enum: + - cs + - da + - de + - en + - es + - fr + - it + - ja + - nl + - pl + - pt + - ru + - tr + - uk + - zh + tags: + - schema + security: + - cookieAuth: [] + - tokenAuth: [] + - {} + responses: + '200': + content: + application/vnd.oai.openapi: + schema: + type: object + additionalProperties: {} + application/yaml: + schema: + type: object + additionalProperties: {} + application/vnd.oai.openapi+json: + schema: + type: object + additionalProperties: {} + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/status/: + get: + operationId: status_retrieve + description: A lightweight read-only endpoint for conveying NetBox's current + operational status. + tags: + - status + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/tenancy/contact-assignments/: + get: + operationId: tenancy_contact_assignments_list + description: Get a list of contact assignment objects. + parameters: - in: query - name: created__gt + name: contact_id schema: type: array items: - type: string - format: date-time + type: integer + description: Contact (ID) explode: true style: form - in: query - name: created__gte + name: contact_id__n schema: type: array items: - type: string - format: date-time + type: integer + description: Contact (ID) explode: true style: form - in: query - name: created__lt + name: created schema: type: array items: @@ -88873,7 +116516,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: created__empty schema: type: array items: @@ -88882,7 +116525,7 @@ paths: explode: true style: form - in: query - name: created__n + name: created__gt schema: type: array items: @@ -88891,64 +116534,48 @@ paths: explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__ie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__iew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: created_by_request schema: - type: array - items: - type: string - explode: true - style: form + type: string + format: uuid - in: query - name: description__nic + name: group schema: type: array items: @@ -88956,7 +116583,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: group__n schema: type: array items: @@ -88964,7 +116591,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: group_id schema: type: array items: @@ -88972,7 +116599,7 @@ paths: explode: true style: form - in: query - name: description__nisw + name: group_id__n schema: type: array items: @@ -89112,89 +116739,79 @@ paths: type: string format: uuid - in: query - name: name + name: object_id schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__empty + name: object_id__empty schema: type: boolean - in: query - name: name__ic + name: object_id__gt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__ie + name: object_id__gte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__iew + name: object_id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__isw + name: object_id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__n + name: object_id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: name__nic + name: object_type schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__nie + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: name__niew + name: object_type_id schema: - type: array - items: - type: string - explode: true - style: form + type: integer - in: query - name: name__nisw + name: object_type_id__n schema: - type: array - items: - type: string - explode: true - style: form + type: integer - name: offset required: false in: query @@ -89208,66 +116825,61 @@ paths: schema: type: string - in: query - name: q + name: priority schema: type: string - description: Search - - in: query - name: size - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: size__empty - schema: - type: boolean + x-spec-enum-id: ef3a31644cec7524 + enum: + - inactive + - primary + - secondary + - tertiary + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' - in: query - name: size__gt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: size__gte + name: role schema: type: array items: - type: integer - format: int32 + type: string + description: Contact role (slug) explode: true style: form - in: query - name: size__lt + name: role__n schema: type: array items: - type: integer - format: int32 + type: string + description: Contact role (slug) explode: true style: form - in: query - name: size__lte + name: role_id schema: type: array items: type: integer - format: int32 + description: Contact role (ID) explode: true style: form - in: query - name: size__n + name: role_id__n schema: type: array items: type: integer - format: int32 + description: Contact role (ID) explode: true style: form - in: query @@ -89291,44 +116903,8 @@ paths: schema: type: string format: uuid - - in: query - name: virtual_machine - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine__n - schema: - type: array - items: - type: string - description: Virtual machine - explode: true - style: form - - in: query - name: virtual_machine_id - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: virtual_machine_id__n - schema: - type: array - items: - type: integer - description: Virtual machine (ID) - explode: true - style: form tags: - - virtualization + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -89337,21 +116913,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualDiskList' + $ref: '#/components/schemas/PaginatedContactAssignmentList' description: '' post: - operationId: virtualization_virtual_disks_create - description: Post a list of virtual disk objects. + operationId: tenancy_contact_assignments_create + description: Post a list of contact assignment objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -89361,25 +116937,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: virtualization_virtual_disks_bulk_update - description: Put a list of virtual disk objects. + operationId: tenancy_contact_assignments_bulk_update + description: Put a list of contact assignment objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -89391,25 +116967,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: virtualization_virtual_disks_bulk_partial_update - description: Patch a list of virtual disk objects. + operationId: tenancy_contact_assignments_bulk_partial_update + description: Patch a list of contact assignment objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -89421,25 +116997,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: virtualization_virtual_disks_bulk_destroy - description: Delete a list of virtual disk objects. + operationId: tenancy_contact_assignments_bulk_destroy + description: Delete a list of contact assignment objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/ContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -89447,19 +117023,19 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-disks/{id}/: + /api/tenancy/contact-assignments/{id}/: get: - operationId: virtualization_virtual_disks_retrieve - description: Get a virtual disk object. + operationId: tenancy_contact_assignments_retrieve + description: Get a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this contact assignment. required: true tags: - - virtualization + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -89468,28 +117044,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ContactAssignment' description: '' put: - operationId: virtualization_virtual_disks_update - description: Put a virtual disk object. + operationId: tenancy_contact_assignments_update + description: Put a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this contact assignment. required: true tags: - - virtualization + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/VirtualDiskRequest' + $ref: '#/components/schemas/WritableContactAssignmentRequest' required: true security: - cookieAuth: [] @@ -89499,28 +117075,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ContactAssignment' description: '' patch: - operationId: virtualization_virtual_disks_partial_update - description: Patch a virtual disk object. + operationId: tenancy_contact_assignments_partial_update + description: Patch a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this contact assignment. required: true tags: - - virtualization + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedVirtualDiskRequest' + $ref: '#/components/schemas/PatchedWritableContactAssignmentRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -89529,798 +117105,342 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualDisk' + $ref: '#/components/schemas/ContactAssignment' description: '' delete: - operationId: virtualization_virtual_disks_destroy - description: Delete a virtual disk object. + operationId: tenancy_contact_assignments_destroy + description: Delete a contact assignment object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual disk. + description: A unique integer value identifying this contact assignment. required: true tags: - - virtualization + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-machines/: + /api/tenancy/contact-groups/: get: - operationId: virtualization_virtual_machines_list - description: Get a list of virtual machine objects. + operationId: tenancy_contact_groups_list + description: Get a list of contact group objects. parameters: - in: query - name: cluster + name: ancestor schema: type: array items: type: string - description: Cluster explode: true style: form - in: query - name: cluster__n + name: ancestor__n schema: type: array items: type: string - description: Cluster explode: true style: form - in: query - name: cluster_group + name: ancestor_id schema: type: array items: type: string - description: Cluster group (slug) explode: true style: form - in: query - name: cluster_group__n + name: ancestor_id__n schema: type: array items: type: string - description: Cluster group (slug) explode: true style: form - in: query - name: cluster_group_id + name: created schema: type: array items: - type: integer - description: Cluster group (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_group_id__n + name: created__empty schema: type: array items: - type: integer - description: Cluster group (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_id + name: created__gt schema: type: array items: - type: integer - nullable: true - description: Cluster (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_id__n + name: created__gte schema: type: array items: - type: integer - nullable: true - description: Cluster (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_type + name: created__lt schema: type: array items: type: string - description: Cluster type (slug) + format: date-time explode: true style: form - in: query - name: cluster_type__n + name: created__lte schema: type: array items: type: string - description: Cluster type (slug) + format: date-time explode: true style: form - in: query - name: cluster_type_id + name: created__n schema: type: array items: - type: integer - description: Cluster type (ID) + type: string + format: date-time explode: true style: form - in: query - name: cluster_type_id__n + name: created_by_request schema: - type: array - items: - type: integer - description: Cluster type (ID) - explode: true - style: form + type: string + format: uuid - in: query - name: config_template_id + name: description schema: type: array items: - type: integer - nullable: true - description: Config template (ID) + type: string explode: true style: form - in: query - name: config_template_id__n + name: description__empty schema: - type: array - items: - type: integer - nullable: true - description: Config template (ID) - explode: true - style: form + type: boolean - in: query - name: contact + name: description__ic schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact__n + name: description__ie schema: type: array items: - type: integer - description: Contact + type: string explode: true style: form - in: query - name: contact_group + name: description__iew schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_group__n + name: description__isw schema: type: array items: - type: integer - description: Contact group + type: string explode: true style: form - in: query - name: contact_role + name: description__n schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: contact_role__n + name: description__nic schema: type: array items: - type: integer - description: Contact Role + type: string explode: true style: form - in: query - name: created + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: created__lte + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: id__lt schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty - schema: - type: boolean - - in: query - name: description__ic + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__ie + name: id__n schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__iew + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__isw + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__n + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nic + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nie + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__niew + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: description__nisw + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form - - in: query - name: device - schema: - type: array - items: - type: string - nullable: true - description: Device - explode: true - style: form - - in: query - name: device__n - schema: - type: array - items: - type: string - nullable: true - description: Device - explode: true - style: form - - in: query - name: device_id - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: device_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Device (ID) - explode: true - style: form - - in: query - name: disk - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__empty - schema: - type: boolean - - in: query - name: disk__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: disk__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: has_primary_ip - schema: - type: boolean - description: Has a primary IP - - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__empty - schema: - type: boolean - - in: query - name: interface_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: interface_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - name: limit + required: false + in: query + description: Number of results to return per page. schema: type: integer - - in: query - name: local_context_data - schema: - type: boolean - description: Has local config context data - - in: query - name: mac_address - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: mac_address__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: memory - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: memory__empty - schema: - type: boolean - - in: query - name: memory__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: memory__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: memory__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: memory__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: memory__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query name: modified_by_request schema: @@ -90423,77 +117543,41 @@ paths: schema: type: string - in: query - name: platform + name: parent schema: type: array items: type: string - description: Platform (slug) + description: Parent contact group (slug) explode: true style: form - in: query - name: platform__n + name: parent__n schema: type: array items: type: string - description: Platform (slug) + description: Parent contact group (slug) explode: true style: form - in: query - name: platform_id + name: parent_id schema: type: array items: type: integer nullable: true - description: Platform (ID) + description: Parent contact group (ID) explode: true style: form - in: query - name: platform_id__n + name: parent_id__n schema: type: array items: type: integer nullable: true - description: Platform (ID) - explode: true - style: form - - in: query - name: primary_ip4_id - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip4_id__n - schema: - type: array - items: - type: integer - description: Primary IPv4 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) - explode: true - style: form - - in: query - name: primary_ip6_id__n - schema: - type: array - items: - type: integer - description: Primary IPv6 (ID) + description: Parent contact group (ID) explode: true style: form - in: query @@ -90502,173 +117586,67 @@ paths: type: string description: Search - in: query - name: region - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region__n - schema: - type: array - items: - type: integer - description: Region (slug) - explode: true - style: form - - in: query - name: region_id + name: slug schema: type: array items: - type: integer - description: Region (ID) + type: string explode: true style: form - in: query - name: region_id__n + name: slug__empty schema: - type: array - items: - type: integer - description: Region (ID) - explode: true - style: form + type: boolean - in: query - name: role + name: slug__ic schema: type: array items: type: string - description: Role (slug) explode: true style: form - in: query - name: role__n + name: slug__ie schema: type: array items: type: string - description: Role (slug) - explode: true - style: form - - in: query - name: role_id - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) - explode: true - style: form - - in: query - name: role_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Role (ID) explode: true style: form - in: query - name: site + name: slug__iew schema: type: array items: type: string - description: Site (slug) explode: true style: form - in: query - name: site__n + name: slug__isw schema: type: array items: type: string - description: Site (slug) - explode: true - style: form - - in: query - name: site_group - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group__n - schema: - type: array - items: - type: integer - description: Site group (slug) - explode: true - style: form - - in: query - name: site_group_id - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_group_id__n - schema: - type: array - items: - type: integer - description: Site group (ID) - explode: true - style: form - - in: query - name: site_id - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) - explode: true - style: form - - in: query - name: site_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Site (ID) explode: true style: form - in: query - name: status + name: slug__n schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: status__n + name: slug__nic schema: type: array items: type: string - x-spec-enum-id: 2217e87d0c3efdda explode: true style: form - in: query - name: tag + name: slug__nie schema: type: array items: @@ -90676,7 +117654,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__niew schema: type: array items: @@ -90684,77 +117662,27 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__nisw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: tag schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) explode: true style: form - in: query - name: tenant_id__n + name: tag__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query @@ -90762,124 +117690,8 @@ paths: schema: type: string format: uuid - - in: query - name: vcpus - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__empty - schema: - type: boolean - - in: query - name: vcpus__gt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__gte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lt - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__lte - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: vcpus__n - schema: - type: array - items: - type: number - format: double - explode: true - style: form - - in: query - name: virtual_disk_count - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__empty - schema: - type: boolean - - in: query - name: virtual_disk_count__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__lte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: virtual_disk_count__n - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form tags: - - virtualization + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -90888,21 +117700,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + $ref: '#/components/schemas/PaginatedContactGroupList' description: '' post: - operationId: virtualization_virtual_machines_create - description: Post a list of virtual machine objects. + operationId: tenancy_contact_groups_create + description: Post a list of contact group objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -90912,25 +117724,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: virtualization_virtual_machines_bulk_update - description: Put a list of virtual machine objects. + operationId: tenancy_contact_groups_bulk_update + description: Put a list of contact group objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -90942,25 +117754,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: virtualization_virtual_machines_bulk_partial_update - description: Patch a list of virtual machine objects. + operationId: tenancy_contact_groups_bulk_partial_update + description: Patch a list of contact group objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -90972,25 +117784,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: virtualization_virtual_machines_bulk_destroy - description: Delete a list of virtual machine objects. + operationId: tenancy_contact_groups_bulk_destroy + description: Delete a list of contact group objects. tags: - - virtualization + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ContactGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/ContactGroupRequest' required: true security: - cookieAuth: [] @@ -90998,19 +117810,19 @@ paths: responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/: + /api/tenancy/contact-groups/{id}/: get: - operationId: virtualization_virtual_machines_retrieve - description: Get a virtual machine object. + operationId: tenancy_contact_groups_retrieve + description: Get a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this contact group. required: true tags: - - virtualization + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -91019,28 +117831,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/ContactGroup' description: '' put: - operationId: virtualization_virtual_machines_update - description: Put a virtual machine object. + operationId: tenancy_contact_groups_update + description: Put a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this contact group. required: true tags: - - virtualization + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/WritableContactGroupRequest' required: true security: - cookieAuth: [] @@ -91050,28 +117862,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/ContactGroup' description: '' patch: - operationId: virtualization_virtual_machines_partial_update - description: Patch a virtual machine object. + operationId: tenancy_contact_groups_partial_update + description: Patch a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this contact group. required: true tags: - - virtualization + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + $ref: '#/components/schemas/PatchedWritableContactGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91080,72 +117892,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' + $ref: '#/components/schemas/ContactGroup' description: '' delete: - operationId: virtualization_virtual_machines_destroy - description: Delete a virtual machine object. + operationId: tenancy_contact_groups_destroy + description: Delete a contact group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this virtual machine. + description: A unique integer value identifying this contact group. required: true tags: - - virtualization + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/virtualization/virtual-machines/{id}/render-config/: - post: - operationId: virtualization_virtual_machines_render_config_create - description: Resolve and render the preferred ConfigTemplate for this Device. - parameters: - - in: query - name: format - schema: - type: string - enum: - - json - - txt - - in: path - name: id - schema: - type: integer - description: A unique integer value identifying this virtual machine. - required: true - tags: - - virtualization - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - text/plain: - schema: - $ref: '#/components/schemas/VirtualMachineWithConfigContext' - description: '' - /api/vpn/ike-policies/: + /api/tenancy/contact-roles/: get: - operationId: vpn_ike_policies_list - description: Get a list of IKE policy objects. + operationId: tenancy_contact_roles_list + description: Get a list of contact role objects. parameters: - in: query name: created @@ -91357,38 +118127,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ike_proposal - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ike_proposal__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ike_proposal_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ike_proposal_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -91458,24 +118196,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mode - schema: - type: array - items: - type: string - x-spec-enum-id: 64c1be7bdb2548ca - explode: true - style: form - - in: query - name: mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 64c1be7bdb2548ca - explode: true - style: form - in: query name: modified_by_request schema: @@ -91578,47 +118298,24 @@ paths: schema: type: string - in: query - name: preshared_key - schema: - type: string - - in: query - name: preshared_key__ic - schema: - type: string - - in: query - name: preshared_key__ie - schema: - type: string - - in: query - name: preshared_key__iew - schema: - type: string - - in: query - name: preshared_key__isw - schema: - type: string - - in: query - name: preshared_key__n - schema: - type: string - - in: query - name: preshared_key__nic - schema: - type: string - - in: query - name: preshared_key__nie + name: q schema: type: string + description: Search - in: query - name: preshared_key__niew + name: slug schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: preshared_key__nisw + name: slug__empty schema: - type: string + type: boolean - in: query - name: proposal + name: slug__ic schema: type: array items: @@ -91626,7 +118323,7 @@ paths: explode: true style: form - in: query - name: proposal__n + name: slug__ie schema: type: array items: @@ -91634,28 +118331,31 @@ paths: explode: true style: form - in: query - name: proposal_id + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: proposal_id__n + name: slug__isw schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: q + name: slug__n schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: tag + name: slug__nic schema: type: array items: @@ -91663,7 +118363,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__nie schema: type: array items: @@ -91671,30 +118371,44 @@ paths: explode: true style: form - in: query - name: updated_by_request + name: slug__niew schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: version + name: slug__nisw schema: type: array items: - type: integer - x-spec-enum-id: 00872b77916a1fde + type: string explode: true style: form - in: query - name: version__n + name: tag schema: type: array items: - type: integer - x-spec-enum-id: 00872b77916a1fde + type: string explode: true style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -91703,21 +118417,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEPolicyList' + $ref: '#/components/schemas/PaginatedContactRoleList' description: '' post: - operationId: vpn_ike_policies_create - description: Post a list of IKE policy objects. + operationId: tenancy_contact_roles_create + description: Post a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -91727,25 +118441,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: vpn_ike_policies_bulk_update - description: Put a list of IKE policy objects. + operationId: tenancy_contact_roles_bulk_update + description: Put a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -91757,25 +118471,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: vpn_ike_policies_bulk_partial_update - description: Patch a list of IKE policy objects. + operationId: tenancy_contact_roles_bulk_partial_update + description: Patch a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -91787,25 +118501,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: vpn_ike_policies_bulk_destroy - description: Delete a list of IKE policy objects. + operationId: tenancy_contact_roles_bulk_destroy + description: Delete a list of contact role objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -91813,19 +118527,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-policies/{id}/: + /api/tenancy/contact-roles/{id}/: get: - operationId: vpn_ike_policies_retrieve - description: Get a IKE policy object. + operationId: tenancy_contact_roles_retrieve + description: Get a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -91834,28 +118548,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/ContactRole' description: '' put: - operationId: vpn_ike_policies_update - description: Put a IKE policy object. + operationId: tenancy_contact_roles_update + description: Put a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEPolicyRequest' + $ref: '#/components/schemas/ContactRoleRequest' required: true security: - cookieAuth: [] @@ -91865,28 +118579,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/ContactRole' description: '' patch: - operationId: vpn_ike_policies_partial_update - description: Patch a IKE policy object. + operationId: tenancy_contact_roles_partial_update + description: Patch a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + $ref: '#/components/schemas/PatchedContactRoleRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -91895,65 +118609,113 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/ContactRole' description: '' delete: - operationId: vpn_ike_policies_destroy - description: Delete a IKE policy object. + operationId: tenancy_contact_roles_destroy + description: Delete a contact role object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE policy. + description: A unique integer value identifying this contact role. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ike-proposals/: + /api/tenancy/contacts/: get: - operationId: vpn_ike_proposals_list - description: Get a list of IKE proposal objects. + operationId: tenancy_contacts_list + description: Get a list of contact objects. parameters: - in: query - name: authentication_algorithm + name: address schema: type: array items: type: string - x-spec-enum-id: 0830e8839f5dea4f explode: true style: form - in: query - name: authentication_algorithm__n + name: address__empty + schema: + type: boolean + - in: query + name: address__ic schema: type: array items: type: string - x-spec-enum-id: 0830e8839f5dea4f explode: true style: form - in: query - name: authentication_method + name: address__ie schema: type: array items: type: string - x-spec-enum-id: 92bb2f1103b3a262 explode: true style: form - in: query - name: authentication_method__n + name: address__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: address__nisw schema: type: array items: type: string - x-spec-enum-id: 92bb2f1103b3a262 explode: true style: form - in: query @@ -92109,21 +118871,87 @@ paths: explode: true style: form - in: query - name: encryption_algorithm + name: email schema: type: array items: type: string - x-spec-enum-id: b022535cfdee79fe explode: true style: form - in: query - name: encryption_algorithm__n + name: email__empty + schema: + type: boolean + - in: query + name: email__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nisw schema: type: array items: type: string - x-spec-enum-id: b022535cfdee79fe explode: true style: form - in: query @@ -92131,9 +118959,7 @@ paths: schema: type: array items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID + type: string explode: true style: form - in: query @@ -92141,9 +118967,23 @@ paths: schema: type: array items: - type: integer - x-spec-enum-id: dbef43be795462a8 - description: Diffie-Hellman group ID + type: string + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: string explode: true style: form - in: query @@ -92205,43 +119045,43 @@ paths: explode: true style: form - in: query - name: ike_policy + name: last_updated schema: type: array items: type: string - description: IKE policy (name) + format: date-time explode: true style: form - in: query - name: ike_policy__n + name: last_updated__empty schema: type: array items: type: string - description: IKE policy (name) + format: date-time explode: true style: form - in: query - name: ike_policy_id + name: last_updated__gt schema: type: array items: - type: integer - description: IKE policy (ID) + type: string + format: date-time explode: true style: form - in: query - name: ike_policy_id__n + name: last_updated__gte schema: type: array items: - type: integer - description: IKE policy (ID) + type: string + format: date-time explode: true style: form - in: query - name: last_updated + name: last_updated__lt schema: type: array items: @@ -92250,7 +119090,7 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: last_updated__lte schema: type: array items: @@ -92259,7 +119099,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: last_updated__n schema: type: array items: @@ -92267,48 +119107,96 @@ paths: format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: last_updated__gte + name: link schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: link__empty + schema: + type: boolean + - in: query + name: link__ic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: link__ie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: link__iew schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: link__isw schema: - type: integer + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: link__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: modified_by_request schema: @@ -92410,71 +119298,165 @@ paths: description: Which field to use when ordering the results. schema: type: string + - in: query + name: phone + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__empty + schema: + type: boolean + - in: query + name: phone__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: phone__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: q schema: type: string description: Search - in: query - name: sa_lifetime + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime__empty + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__empty schema: type: boolean - in: query - name: sa_lifetime__gt + name: title__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime__gte + name: title__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime__lt + name: title__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime__lte + name: title__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: sa_lifetime__n + name: title__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tag + name: title__nic schema: type: array items: @@ -92482,7 +119464,23 @@ paths: explode: true style: form - in: query - name: tag__n + name: title__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: title__nisw schema: type: array items: @@ -92495,7 +119493,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -92504,21 +119502,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIKEProposalList' + $ref: '#/components/schemas/PaginatedContactList' description: '' post: - operationId: vpn_ike_proposals_create - description: Post a list of IKE proposal objects. + operationId: tenancy_contacts_create + description: Post a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -92528,25 +119526,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: vpn_ike_proposals_bulk_update - description: Put a list of IKE proposal objects. + operationId: tenancy_contacts_bulk_update + description: Put a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -92558,25 +119556,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: vpn_ike_proposals_bulk_partial_update - description: Patch a list of IKE proposal objects. + operationId: tenancy_contacts_bulk_partial_update + description: Patch a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -92588,25 +119586,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: vpn_ike_proposals_bulk_destroy - description: Delete a list of IKE proposal objects. + operationId: tenancy_contacts_bulk_destroy + description: Delete a list of contact objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -92614,19 +119612,19 @@ paths: responses: '204': description: No response body - /api/vpn/ike-proposals/{id}/: + /api/tenancy/contacts/{id}/: get: - operationId: vpn_ike_proposals_retrieve - description: Get a IKE proposal object. + operationId: tenancy_contacts_retrieve + description: Get a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -92635,28 +119633,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/Contact' description: '' put: - operationId: vpn_ike_proposals_update - description: Put a IKE proposal object. + operationId: tenancy_contacts_update + description: Put a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIKEProposalRequest' + $ref: '#/components/schemas/ContactRequest' required: true security: - cookieAuth: [] @@ -92666,28 +119664,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/Contact' description: '' patch: - operationId: vpn_ike_proposals_partial_update - description: Patch a IKE proposal object. + operationId: tenancy_contacts_partial_update + description: Patch a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedContactRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + $ref: '#/components/schemas/PatchedContactRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -92696,31 +119694,63 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IKEProposal' + $ref: '#/components/schemas/Contact' description: '' delete: - operationId: vpn_ike_proposals_destroy - description: Delete a IKE proposal object. + operationId: tenancy_contacts_destroy + description: Delete a contact object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IKE proposal. + description: A unique integer value identifying this contact. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-policies/: + /api/tenancy/tenant-groups/: get: - operationId: vpn_ipsec_policies_list - description: Get a list of IPSec policy objects. + operationId: tenancy_tenant_groups_list + description: Get a list of tenant group objects. parameters: + - in: query + name: ancestor + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: created schema: @@ -92931,38 +119961,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ipsec_proposal - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ipsec_proposal__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: ipsec_proposal_id - schema: - type: array - items: - type: integer - explode: true - style: form - - in: query - name: ipsec_proposal_id__n - schema: - type: array - items: - type: integer - explode: true - style: form - in: query name: last_updated schema: @@ -93134,29 +120132,50 @@ paths: schema: type: string - in: query - name: pfs_group + name: parent + schema: + type: array + items: + type: string + description: Parent tenant group (slug) + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + description: Parent tenant group (slug) + explode: true + style: form + - in: query + name: parent_id schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + description: Parent tenant group (ID) explode: true style: form - in: query - name: pfs_group__n + name: parent_id__n schema: type: array items: type: integer - x-spec-enum-id: dbef43be795462a8 nullable: true - description: Diffie-Hellman group for Perfect Forward Secrecy + description: Parent tenant group (ID) explode: true style: form - in: query - name: proposal + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: @@ -93164,7 +120183,11 @@ paths: explode: true style: form - in: query - name: proposal__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: @@ -93172,26 +120195,69 @@ paths: explode: true style: form - in: query - name: proposal_id + name: slug__ie schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: proposal_id__n + name: slug__iew schema: type: array items: - type: integer + type: string explode: true style: form - in: query - name: q + name: slug__isw schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -93214,7 +120280,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -93223,21 +120289,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecPolicyList' + $ref: '#/components/schemas/PaginatedTenantGroupList' description: '' post: - operationId: vpn_ipsec_policies_create - description: Post a list of IPSec policy objects. + operationId: tenancy_tenant_groups_create + description: Post a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -93247,25 +120313,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: vpn_ipsec_policies_bulk_update - description: Put a list of IPSec policy objects. + operationId: tenancy_tenant_groups_bulk_update + description: Put a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -93277,25 +120343,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: vpn_ipsec_policies_bulk_partial_update - description: Patch a list of IPSec policy objects. + operationId: tenancy_tenant_groups_bulk_partial_update + description: Patch a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -93307,25 +120373,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: vpn_ipsec_policies_bulk_destroy - description: Delete a list of IPSec policy objects. + operationId: tenancy_tenant_groups_bulk_destroy + description: Delete a list of tenant group objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/TenantGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/TenantGroupRequest' required: true security: - cookieAuth: [] @@ -93333,19 +120399,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-policies/{id}/: + /api/tenancy/tenant-groups/{id}/: get: - operationId: vpn_ipsec_policies_retrieve - description: Get a IPSec policy object. + operationId: tenancy_tenant_groups_retrieve + description: Get a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -93354,28 +120420,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/TenantGroup' description: '' put: - operationId: vpn_ipsec_policies_update - description: Put a IPSec policy object. + operationId: tenancy_tenant_groups_update + description: Put a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecPolicyRequest' + $ref: '#/components/schemas/WritableTenantGroupRequest' required: true security: - cookieAuth: [] @@ -93385,28 +120451,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/TenantGroup' description: '' patch: - operationId: vpn_ipsec_policies_partial_update - description: Patch a IPSec policy object. + operationId: tenancy_tenant_groups_partial_update + description: Patch a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + $ref: '#/components/schemas/PatchedWritableTenantGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -93415,31 +120481,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/TenantGroup' description: '' delete: - operationId: vpn_ipsec_policies_destroy - description: Delete a IPSec policy object. + operationId: tenancy_tenant_groups_destroy + description: Delete a tenant group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec policy. + description: A unique integer value identifying this tenant group. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-profiles/: + /api/tenancy/tenants/: get: - operationId: vpn_ipsec_profiles_list - description: Get a list of IPSec profile objects. + operationId: tenancy_tenants_list + description: Get a list of tenant objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -93593,56 +120711,39 @@ paths: explode: true style: form - in: query - name: id - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: group schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: group__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: group_id schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: group_id__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__n + name: id schema: type: array items: @@ -93651,75 +120752,52 @@ paths: explode: true style: form - in: query - name: ike_policy - schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form - - in: query - name: ike_policy__n + name: id__empty schema: - type: array - items: - type: string - description: IKE policy (name) - explode: true - style: form + type: boolean - in: query - name: ike_policy_id + name: id__gt schema: type: array items: type: integer - description: IKE policy (ID) + format: int32 explode: true style: form - in: query - name: ike_policy_id__n + name: id__gte schema: type: array items: type: integer - description: IKE policy (ID) - explode: true - style: form - - in: query - name: ipsec_policy - schema: - type: array - items: - type: string - description: IPSec policy (name) + format: int32 explode: true style: form - in: query - name: ipsec_policy__n + name: id__lt schema: type: array items: - type: string - description: IPSec policy (name) + type: integer + format: int32 explode: true style: form - in: query - name: ipsec_policy_id + name: id__lte schema: type: array items: type: integer - description: IPSec policy (ID) + format: int32 explode: true style: form - in: query - name: ipsec_policy_id__n + name: id__n schema: type: array items: type: integer - description: IPSec policy (ID) + format: int32 explode: true style: form - in: query @@ -93791,24 +120869,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: mode - schema: - type: array - items: - type: string - x-spec-enum-id: 1136c2cdfee84436 - explode: true - style: form - - in: query - name: mode__n - schema: - type: array - items: - type: string - x-spec-enum-id: 1136c2cdfee84436 - explode: true - style: form - in: query name: modified_by_request schema: @@ -93915,6 +120975,90 @@ paths: schema: type: string description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form - in: query name: tag schema: @@ -93937,7 +121081,7 @@ paths: type: string format: uuid tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -93946,21 +121090,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProfileList' + $ref: '#/components/schemas/PaginatedTenantList' description: '' post: - operationId: vpn_ipsec_profiles_create - description: Post a list of IPSec profile objects. + operationId: tenancy_tenants_create + description: Post a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -93970,25 +121114,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: vpn_ipsec_profiles_bulk_update - description: Put a list of IPSec profile objects. + operationId: tenancy_tenants_bulk_update + description: Put a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -94000,25 +121144,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: vpn_ipsec_profiles_bulk_partial_update - description: Patch a list of IPSec profile objects. + operationId: tenancy_tenants_bulk_partial_update + description: Patch a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -94030,25 +121174,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: vpn_ipsec_profiles_bulk_destroy - description: Delete a list of IPSec profile objects. + operationId: tenancy_tenants_bulk_destroy + description: Delete a list of tenant objects. tags: - - vpn + - tenancy requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -94056,19 +121200,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-profiles/{id}/: + /api/tenancy/tenants/{id}/: get: - operationId: vpn_ipsec_profiles_retrieve - description: Get a IPSec profile object. + operationId: tenancy_tenants_retrieve + description: Get a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] @@ -94077,28 +121221,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/Tenant' description: '' put: - operationId: vpn_ipsec_profiles_update - description: Put a IPSec profile object. + operationId: tenancy_tenants_update + description: Put a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProfileRequest' + $ref: '#/components/schemas/TenantRequest' required: true security: - cookieAuth: [] @@ -94108,28 +121252,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/Tenant' description: '' patch: - operationId: vpn_ipsec_profiles_partial_update - description: Patch a IPSec profile object. + operationId: tenancy_tenants_partial_update + description: Patch a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedTenantRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + $ref: '#/components/schemas/PatchedTenantRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94138,119 +121282,49 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProfile' + $ref: '#/components/schemas/Tenant' description: '' delete: - operationId: vpn_ipsec_profiles_destroy - description: Delete a IPSec profile object. + operationId: tenancy_tenants_destroy + description: Delete a tenant object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec profile. + description: A unique integer value identifying this tenant. required: true tags: - - vpn + - tenancy security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/ipsec-proposals/: + /api/users/config/: get: - operationId: vpn_ipsec_proposals_list - description: Get a list of IPSec proposal objects. + operationId: users_config_retrieve + description: An API endpoint via which a user can update his or her own UserConfig + data (but no one else's). + tags: + - users + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/groups/: + get: + operationId: users_groups_list + description: Get a list of group objects. parameters: - - in: query - name: authentication_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form - - in: query - name: authentication_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - explode: true - style: form - - in: query - name: created - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request - schema: - type: string - format: uuid - in: query name: description schema: @@ -94335,26 +121409,6 @@ paths: type: string explode: true style: form - - in: query - name: encryption_algorithm - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - - in: query - name: encryption_algorithm__n - schema: - type: array - items: - type: string - x-spec-enum-id: b022535cfdee79fe - title: Encryption - explode: true - style: form - in: query name: id schema: @@ -94413,116 +121467,12 @@ paths: format: int32 explode: true style: form - - in: query - name: ipsec_policy - schema: - type: array - items: - type: string - description: IPSec policy (name) - explode: true - style: form - - in: query - name: ipsec_policy__n - schema: - type: array - items: - type: string - description: IPSec policy (name) - explode: true - style: form - - in: query - name: ipsec_policy_id - schema: - type: array - items: - type: integer - description: IPSec policy (ID) - explode: true - style: form - - in: query - name: ipsec_policy_id__n - schema: - type: array - items: - type: integer - description: IPSec policy (ID) - explode: true - style: form - - in: query - name: last_updated - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__gte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: last_updated__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - name: limit required: false in: query description: Number of results to return per page. schema: type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - in: query name: name schema: @@ -94607,162 +121557,79 @@ paths: type: string explode: true style: form - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - - in: query - name: q - schema: - type: string - description: Search - - in: query - name: sa_lifetime_data - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: sa_lifetime_data__empty - schema: - type: boolean - - in: query - name: sa_lifetime_data__gt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: sa_lifetime_data__gte - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: sa_lifetime_data__lt - schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - in: query - name: sa_lifetime_data__lte + name: notification_group_id schema: type: array items: type: integer - format: int32 + description: Notification group (ID) explode: true style: form - in: query - name: sa_lifetime_data__n + name: notification_group_id__n schema: type: array items: type: integer - format: int32 + description: Notification group (ID) explode: true style: form - - in: query - name: sa_lifetime_seconds + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form - - in: query - name: sa_lifetime_seconds__empty + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: boolean + type: string - in: query - name: sa_lifetime_seconds__gt + name: permission_id schema: type: array items: type: integer - format: int32 + description: Permission (ID) explode: true style: form - in: query - name: sa_lifetime_seconds__gte + name: permission_id__n schema: type: array items: type: integer - format: int32 + description: Permission (ID) explode: true style: form - in: query - name: sa_lifetime_seconds__lt + name: q schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string + description: Search - in: query - name: sa_lifetime_seconds__lte + name: user_id schema: type: array items: type: integer - format: int32 + description: User (ID) explode: true style: form - in: query - name: sa_lifetime_seconds__n + name: user_id__n schema: type: array items: type: integer - format: int32 - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string + description: User (ID) explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -94771,21 +121638,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedIPSecProposalList' + $ref: '#/components/schemas/PaginatedGroupList' description: '' post: - operationId: vpn_ipsec_proposals_create - description: Post a list of IPSec proposal objects. + operationId: users_groups_create + description: Post a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -94795,25 +121662,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Group' description: '' put: - operationId: vpn_ipsec_proposals_bulk_update - description: Put a list of IPSec proposal objects. + operationId: users_groups_bulk_update + description: Put a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -94825,25 +121692,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: vpn_ipsec_proposals_bulk_partial_update - description: Patch a list of IPSec proposal objects. + operationId: users_groups_bulk_partial_update + description: Patch a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -94855,25 +121722,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: vpn_ipsec_proposals_bulk_destroy - description: Delete a list of IPSec proposal objects. + operationId: users_groups_bulk_destroy + description: Delete a list of group objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/IPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -94881,19 +121748,19 @@ paths: responses: '204': description: No response body - /api/vpn/ipsec-proposals/{id}/: + /api/users/groups/{id}/: get: - operationId: vpn_ipsec_proposals_retrieve - description: Get a IPSec proposal object. + operationId: users_groups_retrieve + description: Get a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -94902,28 +121769,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Group' description: '' put: - operationId: vpn_ipsec_proposals_update - description: Put a IPSec proposal object. + operationId: users_groups_update + description: Put a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableIPSecProposalRequest' + $ref: '#/components/schemas/GroupRequest' required: true security: - cookieAuth: [] @@ -94933,28 +121800,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Group' description: '' patch: - operationId: vpn_ipsec_proposals_partial_update - description: Patch a IPSec proposal object. + operationId: users_groups_partial_update + description: Patch a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + $ref: '#/components/schemas/PatchedGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -94963,201 +121830,169 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/IPSecProposal' + $ref: '#/components/schemas/Group' description: '' delete: - operationId: vpn_ipsec_proposals_destroy - description: Delete a IPSec proposal object. + operationId: users_groups_destroy + description: Delete a group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this IPSec proposal. + description: A unique integer value identifying this group. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/l2vpn-terminations/: + /api/users/permissions/: get: - operationId: vpn_l2vpn_terminations_list - description: Get a list of L2VPN termination objects. + operationId: users_permissions_list + description: Get a list of permission objects. parameters: - in: query - name: assigned_object_id + name: can_add schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: assigned_object_id__empty + name: can_change schema: type: boolean - in: query - name: assigned_object_id__gt + name: can_delete schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: assigned_object_id__gte + name: can_view schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: boolean - in: query - name: assigned_object_id__lt + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__lte + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_id__n + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: assigned_object_type - schema: - type: string - - in: query - name: assigned_object_type__n - schema: - type: string - - in: query - name: created + name: description__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: description__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lt + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__lte + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__n + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: enabled schema: - type: string - format: uuid + type: boolean - in: query - name: device + name: group schema: type: array items: type: string - nullable: true - description: Device (name) + description: Group (name) explode: true style: form - in: query - name: device__n + name: group__n schema: type: array items: type: string - nullable: true - description: Device (name) + description: Group (name) explode: true style: form - in: query - name: device_id + name: group_id schema: type: array items: type: integer - description: Device (ID) + description: Group explode: true style: form - in: query - name: device_id__n + name: group_id__n schema: type: array items: type: integer - description: Device (ID) + description: Group explode: true style: form - in: query @@ -95218,369 +122053,223 @@ paths: format: int32 explode: true style: form - - in: query - name: interface + - name: limit + required: false + in: query + description: Number of results to return per page. schema: - type: array - items: - type: string - description: Interface (name) - explode: true - style: form + type: integer - in: query - name: interface__n + name: name schema: type: array items: type: string - description: Interface (name) - explode: true - style: form - - in: query - name: interface_id - schema: - type: array - items: - type: integer - description: Interface (ID) explode: true style: form - in: query - name: interface_id__n + name: name__empty schema: - type: array - items: - type: integer - description: Interface (ID) - explode: true - style: form + type: boolean - in: query - name: l2vpn + name: name__ic schema: type: array items: type: string - description: L2VPN (slug) explode: true style: form - in: query - name: l2vpn__n + name: name__ie schema: type: array items: type: string - description: L2VPN (slug) - explode: true - style: form - - in: query - name: l2vpn_id - schema: - type: array - items: - type: integer - description: L2VPN (ID) explode: true style: form - in: query - name: l2vpn_id__n - schema: - type: array - items: - type: integer - description: L2VPN (ID) - explode: true - style: form - - in: query - name: last_updated + name: name__iew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__empty + name: name__isw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gt + name: name__n schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__gte + name: name__nic schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lt + name: name__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__lte + name: name__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: last_updated__n + name: name__nisw schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + name: object_type schema: type: string - in: query - name: q + name: object_type__ic schema: type: string - description: Search - - in: query - name: region - schema: - type: array - items: - type: string - explode: true - style: form - in: query - name: region_id + name: object_type__ie schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: site + name: object_type__iew schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: site_id + name: object_type__isw schema: - type: array - items: - type: integer - format: int32 - explode: true - style: form + type: string - in: query - name: tag + name: object_type__n schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: tag__n + name: object_type__nic schema: - type: array - items: - type: string - explode: true - style: form + type: string - in: query - name: updated_by_request + name: object_type__nie schema: type: string - format: uuid - in: query - name: virtual_machine + name: object_type__niew schema: - type: array - items: - type: string - description: Virtual machine (name) - explode: true - style: form + type: string - in: query - name: virtual_machine__n + name: object_type__nisw schema: - type: array - items: - type: string - description: Virtual machine (name) - explode: true - style: form + type: string - in: query - name: virtual_machine_id + name: object_type_id schema: type: array items: type: integer - description: Virtual machine (ID) explode: true style: form - in: query - name: virtual_machine_id__n + name: object_type_id__n schema: type: array items: type: integer - description: Virtual machine (ID) - explode: true - style: form - - in: query - name: vlan - schema: - type: array - items: - type: string - description: VLAN (name) - explode: true - style: form - - in: query - name: vlan__n - schema: - type: array - items: - type: string - description: VLAN (name) explode: true style: form - in: query - name: vlan_id + name: object_types schema: type: array items: type: integer - description: VLAN (ID) explode: true style: form - in: query - name: vlan_id__n + name: object_types__n schema: type: array items: type: integer - description: VLAN (ID) explode: true style: form - - in: query - name: vlan_vid - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__empty - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gt - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__gte - schema: - type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lt + - name: offset + required: false + in: query + description: The initial index from which to return the results. schema: type: integer - description: VLAN number (1-4094) - - in: query - name: vlan_vid__lte + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. schema: - type: integer - description: VLAN number (1-4094) + type: string - in: query - name: vlan_vid__n + name: q schema: - type: integer - description: VLAN number (1-4094) + type: string + description: Search - in: query - name: vminterface + name: user schema: type: array items: type: string - description: VM interface (name) + description: User (name) explode: true style: form - in: query - name: vminterface__n + name: user__n schema: type: array items: type: string - description: VM interface (name) + description: User (name) explode: true style: form - in: query - name: vminterface_id + name: user_id schema: type: array items: type: integer - description: VM Interface (ID) + description: User explode: true style: form - in: query - name: vminterface_id__n + name: user_id__n schema: type: array items: type: integer - description: VM Interface (ID) + description: User explode: true style: form tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -95589,21 +122278,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + $ref: '#/components/schemas/PaginatedObjectPermissionList' description: '' post: - operationId: vpn_l2vpn_terminations_create - description: Post a list of L2VPN termination objects. + operationId: users_permissions_create + description: Post a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -95613,25 +122302,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: vpn_l2vpn_terminations_bulk_update - description: Put a list of L2VPN termination objects. + operationId: users_permissions_bulk_update + description: Put a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -95643,25 +122332,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: vpn_l2vpn_terminations_bulk_partial_update - description: Patch a list of L2VPN termination objects. + operationId: users_permissions_bulk_partial_update + description: Patch a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -95673,25 +122362,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: vpn_l2vpn_terminations_bulk_destroy - description: Delete a list of L2VPN termination objects. + operationId: users_permissions_bulk_destroy + description: Delete a list of permission objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -95699,19 +122388,19 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpn-terminations/{id}/: + /api/users/permissions/{id}/: get: - operationId: vpn_l2vpn_terminations_retrieve - description: Get a L2VPN termination object. + operationId: users_permissions_retrieve + description: Get a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -95720,28 +122409,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' put: - operationId: vpn_l2vpn_terminations_update - description: Put a L2VPN termination object. + operationId: users_permissions_update + description: Put a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/L2VPNTerminationRequest' + $ref: '#/components/schemas/ObjectPermissionRequest' required: true security: - cookieAuth: [] @@ -95751,28 +122440,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' patch: - operationId: vpn_l2vpn_terminations_partial_update - description: Patch a L2VPN termination object. + operationId: users_permissions_partial_update + description: Patch a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + $ref: '#/components/schemas/PatchedObjectPermissionRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -95781,99 +122470,46 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPNTermination' + $ref: '#/components/schemas/ObjectPermission' description: '' delete: - operationId: vpn_l2vpn_terminations_destroy - description: Delete a L2VPN termination object. + operationId: users_permissions_destroy + description: Delete a permission object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN termination. + description: A unique integer value identifying this permission. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/l2vpns/: + /api/users/tokens/: get: - operationId: vpn_l2vpns_list - description: Get a list of L2VPN objects. + operationId: users_tokens_list + description: Get a list of token objects. parameters: - in: query name: created schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__empty - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__gt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query name: created__gte schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__lt - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: string + format: date-time - in: query name: created__lte - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created__n - schema: - type: array - items: - type: string - format: date-time - explode: true - style: form - - in: query - name: created_by_request schema: type: string - format: uuid + format: date-time - in: query name: description schema: @@ -95959,41 +122595,20 @@ paths: explode: true style: form - in: query - name: export_target - schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form - - in: query - name: export_target__n + name: expires schema: - type: array - items: - type: string - description: Export target (name) - explode: true - style: form + type: string + format: date-time - in: query - name: export_target_id + name: expires__gte schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form + type: string + format: date-time - in: query - name: export_target_id__n + name: expires__lte schema: - type: array - items: - type: integer - description: Export target - explode: true - style: form + type: string + format: date-time - in: query name: id schema: @@ -96053,101 +122668,91 @@ paths: explode: true style: form - in: query - name: identifier + name: key schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier__empty + name: key__empty schema: type: boolean - in: query - name: identifier__gt + name: key__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier__gte + name: key__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier__lt + name: key__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier__lte + name: key__isw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: identifier__n + name: key__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: import_target + name: key__nic schema: type: array items: type: string - description: Import target (name) explode: true style: form - in: query - name: import_target__n + name: key__nie schema: type: array items: type: string - description: Import target (name) explode: true style: form - in: query - name: import_target_id + name: key__niew schema: type: array items: - type: integer - description: Import target + type: string explode: true style: form - in: query - name: import_target_id__n + name: key__nisw schema: type: array items: - type: integer - description: Import target + type: string explode: true style: form - in: query - name: last_updated + name: last_used schema: type: array items: @@ -96156,16 +122761,11 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: last_used__empty schema: - type: array - items: - type: string - format: date-time - explode: true - style: form + type: boolean - in: query - name: last_updated__gt + name: last_used__gt schema: type: array items: @@ -96174,7 +122774,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: last_used__gte schema: type: array items: @@ -96183,7 +122783,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: last_used__lt schema: type: array items: @@ -96192,7 +122792,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: last_used__lte schema: type: array items: @@ -96201,7 +122801,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: last_used__n schema: type: array items: @@ -96215,95 +122815,6 @@ paths: description: Number of results to return per page. schema: type: integer - - in: query - name: modified_by_request - schema: - type: string - format: uuid - - in: query - name: name - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__empty - schema: - type: boolean - - in: query - name: name__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: name__nisw - schema: - type: array - items: - type: string - explode: true - style: form - name: offset required: false in: query @@ -96322,204 +122833,47 @@ paths: type: string description: Search - in: query - name: slug - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__niew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: slug__nisw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tag__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: tenant + name: user schema: type: array items: type: string - description: Tenant (slug) + description: User (name) explode: true style: form - in: query - name: tenant__n + name: user__n schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) + description: User (name) explode: true style: form - in: query - name: tenant_id + name: user_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: User explode: true style: form - in: query - name: tenant_id__n + name: user_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: type - schema: - type: array - items: - type: string - x-spec-enum-id: dbaa4f996ec2d110 - explode: true - style: form - - in: query - name: type__n - schema: - type: array - items: - type: string - x-spec-enum-id: dbaa4f996ec2d110 + description: User explode: true style: form - in: query - name: updated_by_request + name: write_enabled schema: - type: string - format: uuid + type: boolean tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -96528,21 +122882,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedL2VPNList' + $ref: '#/components/schemas/PaginatedTokenList' description: '' post: - operationId: vpn_l2vpns_create - description: Post a list of L2VPN objects. + operationId: users_tokens_create + description: Post a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -96552,25 +122906,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Token' description: '' put: - operationId: vpn_l2vpns_bulk_update - description: Put a list of L2VPN objects. + operationId: users_tokens_bulk_update + description: Put a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -96582,25 +122936,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: vpn_l2vpns_bulk_partial_update - description: Patch a list of L2VPN objects. + operationId: users_tokens_bulk_partial_update + description: Patch a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -96612,25 +122966,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: vpn_l2vpns_bulk_destroy - description: Delete a list of L2VPN objects. + operationId: users_tokens_bulk_destroy + description: Delete a list of token objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -96638,19 +122992,19 @@ paths: responses: '204': description: No response body - /api/vpn/l2vpns/{id}/: + /api/users/tokens/{id}/: get: - operationId: vpn_l2vpns_retrieve - description: Get a L2VPN object. + operationId: users_tokens_retrieve + description: Get a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -96659,28 +123013,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Token' description: '' put: - operationId: vpn_l2vpns_update - description: Put a L2VPN object. + operationId: users_tokens_update + description: Put a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableL2VPNRequest' + $ref: '#/components/schemas/TokenRequest' required: true security: - cookieAuth: [] @@ -96690,28 +123044,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Token' description: '' patch: - operationId: vpn_l2vpns_partial_update - description: Patch a L2VPN object. + operationId: users_tokens_partial_update + description: Patch a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedTokenRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + $ref: '#/components/schemas/PatchedTokenRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -96720,33 +123074,66 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/Token' description: '' delete: - operationId: vpn_l2vpns_destroy - description: Delete a L2VPN object. + operationId: users_tokens_destroy + description: Delete a token object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this L2VPN. + description: A unique integer value identifying this token. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnel-groups/: + /api/users/tokens/provision/: + post: + operationId: users_tokens_provision_create + description: Non-authenticated REST API endpoint via which a user may create + a Token. + tags: + - users + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TokenProvisionRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TokenProvision' + description: '' + '401': + content: + application/json: + schema: + type: object + additionalProperties: {} + description: '' + /api/users/users/: get: - operationId: vpn_tunnel_groups_list - description: Get a list of tunnel group objects. + operationId: users_users_list + description: Get a list of user objects. parameters: - in: query - name: created + name: date_joined schema: type: array items: @@ -96755,7 +123142,11 @@ paths: explode: true style: form - in: query - name: created__empty + name: date_joined__empty + schema: + type: boolean + - in: query + name: date_joined__gt schema: type: array items: @@ -96764,7 +123155,7 @@ paths: explode: true style: form - in: query - name: created__gt + name: date_joined__gte schema: type: array items: @@ -96773,7 +123164,7 @@ paths: explode: true style: form - in: query - name: created__gte + name: date_joined__lt schema: type: array items: @@ -96782,7 +123173,7 @@ paths: explode: true style: form - in: query - name: created__lt + name: date_joined__lte schema: type: array items: @@ -96791,7 +123182,7 @@ paths: explode: true style: form - in: query - name: created__lte + name: date_joined__n schema: type: array items: @@ -96800,21 +123191,19 @@ paths: explode: true style: form - in: query - name: created__n + name: email schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created_by_request + name: email__empty schema: - type: string - format: uuid + type: boolean - in: query - name: description + name: email__ic schema: type: array items: @@ -96822,11 +123211,83 @@ paths: explode: true style: form - in: query - name: description__empty + name: email__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: email__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: first_name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: first_name__empty schema: type: boolean - in: query - name: description__ic + name: first_name__ic schema: type: array items: @@ -96834,7 +123295,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: first_name__ie schema: type: array items: @@ -96842,7 +123303,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: first_name__iew schema: type: array items: @@ -96850,7 +123311,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: first_name__isw schema: type: array items: @@ -96858,7 +123319,7 @@ paths: explode: true style: form - in: query - name: description__n + name: first_name__n schema: type: array items: @@ -96866,7 +123327,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: first_name__nic schema: type: array items: @@ -96874,7 +123335,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: first_name__nie schema: type: array items: @@ -96882,7 +123343,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: first_name__niew schema: type: array items: @@ -96890,11 +123351,47 @@ paths: explode: true style: form - in: query - name: description__nisw + name: first_name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Group (name) + explode: true + style: form + - in: query + name: group__n schema: type: array items: type: string + description: Group (name) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + description: Group + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + description: Group explode: true style: form - in: query @@ -96956,7 +123453,19 @@ paths: explode: true style: form - in: query - name: last_updated + name: is_active + schema: + type: boolean + - in: query + name: is_staff + schema: + type: boolean + - in: query + name: is_superuser + schema: + type: boolean + - in: query + name: last_login schema: type: array items: @@ -96965,7 +123474,11 @@ paths: explode: true style: form - in: query - name: last_updated__empty + name: last_login__empty + schema: + type: boolean + - in: query + name: last_login__gt schema: type: array items: @@ -96974,7 +123487,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: last_login__gte schema: type: array items: @@ -96983,7 +123496,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: last_login__lt schema: type: array items: @@ -96992,7 +123505,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: last_login__lte schema: type: array items: @@ -97001,7 +123514,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: last_login__n schema: type: array items: @@ -97010,27 +123523,19 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: last_name schema: type: array items: type: string - format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. - schema: - type: integer - in: query - name: modified_by_request + name: last_name__empty schema: - type: string - format: uuid + type: boolean - in: query - name: name + name: last_name__ic schema: type: array items: @@ -97038,11 +123543,15 @@ paths: explode: true style: form - in: query - name: name__empty + name: last_name__ie schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: name__ic + name: last_name__iew schema: type: array items: @@ -97050,7 +123559,7 @@ paths: explode: true style: form - in: query - name: name__ie + name: last_name__isw schema: type: array items: @@ -97058,7 +123567,7 @@ paths: explode: true style: form - in: query - name: name__iew + name: last_name__n schema: type: array items: @@ -97066,7 +123575,7 @@ paths: explode: true style: form - in: query - name: name__isw + name: last_name__nic schema: type: array items: @@ -97074,7 +123583,7 @@ paths: explode: true style: form - in: query - name: name__n + name: last_name__nie schema: type: array items: @@ -97082,7 +123591,7 @@ paths: explode: true style: form - in: query - name: name__nic + name: last_name__niew schema: type: array items: @@ -97090,27 +123599,35 @@ paths: explode: true style: form - in: query - name: name__nie + name: last_name__nisw schema: type: array items: type: string explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: name__niew + name: notification_group_id schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - in: query - name: name__nisw + name: notification_group_id__n schema: type: array items: - type: string + type: integer + description: Notification group (ID) explode: true style: form - name: offset @@ -97126,32 +123643,30 @@ paths: schema: type: string - in: query - name: q - schema: - type: string - description: Search - - in: query - name: slug + name: permission_id schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__empty - schema: - type: boolean - - in: query - name: slug__ic + name: permission_id__n schema: type: array items: - type: string + type: integer + description: Permission (ID) explode: true style: form - in: query - name: slug__ie + name: q + schema: + type: string + description: Search + - in: query + name: username schema: type: array items: @@ -97159,7 +123674,11 @@ paths: explode: true style: form - in: query - name: slug__iew + name: username__empty + schema: + type: boolean + - in: query + name: username__ic schema: type: array items: @@ -97167,7 +123686,7 @@ paths: explode: true style: form - in: query - name: slug__isw + name: username__ie schema: type: array items: @@ -97175,7 +123694,7 @@ paths: explode: true style: form - in: query - name: slug__n + name: username__iew schema: type: array items: @@ -97183,7 +123702,7 @@ paths: explode: true style: form - in: query - name: slug__nic + name: username__isw schema: type: array items: @@ -97191,7 +123710,7 @@ paths: explode: true style: form - in: query - name: slug__nie + name: username__n schema: type: array items: @@ -97199,7 +123718,7 @@ paths: explode: true style: form - in: query - name: slug__niew + name: username__nic schema: type: array items: @@ -97207,7 +123726,7 @@ paths: explode: true style: form - in: query - name: slug__nisw + name: username__nie schema: type: array items: @@ -97215,7 +123734,7 @@ paths: explode: true style: form - in: query - name: tag + name: username__niew schema: type: array items: @@ -97223,20 +123742,15 @@ paths: explode: true style: form - in: query - name: tag__n + name: username__nisw schema: type: array items: type: string explode: true style: form - - in: query - name: updated_by_request - schema: - type: string - format: uuid tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -97245,21 +123759,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelGroupList' + $ref: '#/components/schemas/PaginatedUserList' description: '' post: - operationId: vpn_tunnel_groups_create - description: Post a list of tunnel group objects. + operationId: users_users_create + description: Post a list of user objects. tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -97269,25 +123783,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/User' description: '' put: - operationId: vpn_tunnel_groups_bulk_update - description: Put a list of tunnel group objects. + operationId: users_users_bulk_update + description: Put a list of user objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -97299,25 +123813,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/User' description: '' patch: - operationId: vpn_tunnel_groups_bulk_partial_update - description: Patch a list of tunnel group objects. + operationId: users_users_bulk_partial_update + description: Patch a list of user objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -97329,25 +123843,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/User' description: '' delete: - operationId: vpn_tunnel_groups_bulk_destroy - description: Delete a list of tunnel group objects. + operationId: users_users_bulk_destroy + description: Delete a list of user objects. tags: - - vpn + - users requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -97355,19 +123869,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-groups/{id}/: + /api/users/users/{id}/: get: - operationId: vpn_tunnel_groups_retrieve - description: Get a tunnel group object. + operationId: users_users_retrieve + description: Get a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this user. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] @@ -97376,28 +123890,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/User' description: '' put: - operationId: vpn_tunnel_groups_update - description: Put a tunnel group object. + operationId: users_users_update + description: Put a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this user. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/TunnelGroupRequest' + $ref: '#/components/schemas/UserRequest' required: true security: - cookieAuth: [] @@ -97407,28 +123921,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/User' description: '' patch: - operationId: vpn_tunnel_groups_partial_update - description: Patch a tunnel group object. + operationId: users_users_partial_update + description: Patch a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this user. required: true tags: - - vpn + - users requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedUserRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedTunnelGroupRequest' + $ref: '#/components/schemas/PatchedUserRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -97437,31 +123951,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelGroup' + $ref: '#/components/schemas/User' description: '' delete: - operationId: vpn_tunnel_groups_destroy - description: Delete a tunnel group object. + operationId: users_users_destroy + description: Delete a user object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel group. + description: A unique integer value identifying this user. required: true tags: - - vpn + - users security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnel-terminations/: + /api/virtualization/cluster-groups/: get: - operationId: vpn_tunnel_terminations_list - description: Get a list of tunnel termination objects. + operationId: virtualization_cluster_groups_list + description: Get a list of cluster group objects. parameters: + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form - in: query name: created schema: @@ -97531,47 +124097,91 @@ paths: type: string format: uuid - in: query - name: id + name: description schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__empty + name: description__empty schema: type: boolean - in: query - name: id__gt + name: description__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__gte + name: description__ie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lt + name: description__iew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: id__lte + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id schema: type: array items: @@ -97580,7 +124190,11 @@ paths: explode: true style: form - in: query - name: id__n + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: @@ -97589,39 +124203,39 @@ paths: explode: true style: form - in: query - name: interface + name: id__gte schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface__n + name: id__lt schema: type: array items: - type: string - description: Interface (name) + type: integer + format: int32 explode: true style: form - in: query - name: interface_id + name: id__lte schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query - name: interface_id__n + name: id__n schema: type: array items: type: integer - description: Interface (ID) + format: int32 explode: true style: form - in: query @@ -97698,61 +124312,44 @@ paths: schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. - schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. - schema: - type: string - in: query - name: outside_ip_id + name: name schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: outside_ip_id__n + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: - type: integer - description: Outside IP (ID) + type: string explode: true style: form - in: query - name: q - schema: - type: string - description: Search - - in: query - name: role + name: name__ie schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: role__n + name: name__iew schema: type: array items: type: string - x-spec-enum-id: 52225cd60b867572 explode: true style: form - in: query - name: tag + name: name__isw schema: type: array items: @@ -97760,7 +124357,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__n schema: type: array items: @@ -97768,150 +124365,161 @@ paths: explode: true style: form - in: query - name: termination_id + name: name__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_id__empty - schema: - type: boolean - - in: query - name: termination_id__gt + name: name__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_id__gte + name: name__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_id__lt + name: name__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: termination_id__lte + name: q + schema: + type: string + description: Search + - in: query + name: slug schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_id__n + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: termination_type - schema: - type: string - - in: query - name: termination_type__n + name: slug__ie schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: tunnel + name: slug__iew schema: type: array items: type: string - description: Tunnel (name) explode: true style: form - in: query - name: tunnel__n + name: slug__isw schema: type: array items: type: string - description: Tunnel (name) explode: true style: form - in: query - name: tunnel_id + name: slug__n schema: type: array items: - type: integer - description: Tunnel (ID) + type: string explode: true style: form - in: query - name: tunnel_id__n + name: slug__nic schema: type: array items: - type: integer - description: Tunnel (ID) + type: string explode: true style: form - in: query - name: updated_by_request + name: slug__nie schema: - type: string - format: uuid + type: array + items: + type: string + explode: true + style: form - in: query - name: vminterface + name: slug__niew schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface__n + name: slug__nisw schema: type: array items: type: string - description: VM interface (name) explode: true style: form - in: query - name: vminterface_id + name: tag schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form - in: query - name: vminterface_id__n + name: tag__n schema: type: array items: - type: integer - description: VM interface (ID) + type: string explode: true style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -97920,21 +124528,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelTerminationList' + $ref: '#/components/schemas/PaginatedClusterGroupList' description: '' post: - operationId: vpn_tunnel_terminations_create - description: Post a list of tunnel termination objects. + operationId: virtualization_cluster_groups_create + description: Post a list of cluster group objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -97944,25 +124552,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: vpn_tunnel_terminations_bulk_update - description: Put a list of tunnel termination objects. + operationId: virtualization_cluster_groups_bulk_update + description: Put a list of cluster group objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -97974,25 +124582,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: vpn_tunnel_terminations_bulk_partial_update - description: Patch a list of tunnel termination objects. + operationId: virtualization_cluster_groups_bulk_partial_update + description: Patch a list of cluster group objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -98004,25 +124612,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: vpn_tunnel_terminations_bulk_destroy - description: Delete a list of tunnel termination objects. + operationId: virtualization_cluster_groups_bulk_destroy + description: Delete a list of cluster group objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -98030,19 +124638,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnel-terminations/{id}/: + /api/virtualization/cluster-groups/{id}/: get: - operationId: vpn_tunnel_terminations_retrieve - description: Get a tunnel termination object. + operationId: virtualization_cluster_groups_retrieve + description: Get a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this cluster group. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -98051,28 +124659,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ClusterGroup' description: '' put: - operationId: vpn_tunnel_terminations_update - description: Put a tunnel termination object. + operationId: virtualization_cluster_groups_update + description: Put a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this cluster group. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelTerminationRequest' + $ref: '#/components/schemas/ClusterGroupRequest' required: true security: - cookieAuth: [] @@ -98082,28 +124690,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ClusterGroup' description: '' patch: - operationId: vpn_tunnel_terminations_partial_update - description: Patch a tunnel termination object. + operationId: virtualization_cluster_groups_partial_update + description: Patch a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this cluster group. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + $ref: '#/components/schemas/PatchedClusterGroupRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98112,30 +124720,30 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/TunnelTermination' + $ref: '#/components/schemas/ClusterGroup' description: '' delete: - operationId: vpn_tunnel_terminations_destroy - description: Delete a tunnel termination object. + operationId: virtualization_cluster_groups_destroy + description: Delete a cluster group object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel termination. + description: A unique integer value identifying this cluster group. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/vpn/tunnels/: + /api/virtualization/cluster-types/: get: - operationId: vpn_tunnels_list - description: Get a list of tunnel objects. + operationId: virtualization_cluster_types_list + description: Get a list of cluster type objects. parameters: - in: query name: created @@ -98289,62 +124897,6 @@ paths: type: string explode: true style: form - - in: query - name: encapsulation - schema: - type: array - items: - type: string - x-spec-enum-id: 5fc36bb745852746 - explode: true - style: form - - in: query - name: encapsulation__n - schema: - type: array - items: - type: string - x-spec-enum-id: 5fc36bb745852746 - explode: true - style: form - - in: query - name: group - schema: - type: array - items: - type: string - description: Tunnel group (slug) - explode: true - style: form - - in: query - name: group__n - schema: - type: array - items: - type: string - description: Tunnel group (slug) - explode: true - style: form - - in: query - name: group_id - schema: - type: array - items: - type: integer - nullable: true - description: Tunnel group (ID) - explode: true - style: form - - in: query - name: group_id__n - schema: - type: array - items: - type: integer - nullable: true - description: Tunnel group (ID) - explode: true - style: form - in: query name: id schema: @@ -98403,44 +124955,6 @@ paths: format: int32 explode: true style: form - - in: query - name: ipsec_profile - schema: - type: array - items: - type: string - description: IPSec profile (name) - explode: true - style: form - - in: query - name: ipsec_profile__n - schema: - type: array - items: - type: string - description: IPSec profile (name) - explode: true - style: form - - in: query - name: ipsec_profile_id - schema: - type: array - items: - type: integer - nullable: true - description: IPSec profile (ID) - explode: true - style: form - - in: query - name: ipsec_profile_id__n - schema: - type: array - items: - type: integer - nullable: true - description: IPSec profile (ID) - explode: true - style: form - in: query name: last_updated schema: @@ -98617,25 +125131,19 @@ paths: type: string description: Search - in: query - name: status + name: slug schema: type: array items: type: string - x-spec-enum-id: 0d65f7912cba74aa explode: true style: form - in: query - name: status__n + name: slug__empty schema: - type: array - items: - type: string - x-spec-enum-id: 0d65f7912cba74aa - explode: true - style: form + type: boolean - in: query - name: tag + name: slug__ic schema: type: array items: @@ -98643,7 +125151,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: slug__ie schema: type: array items: @@ -98651,135 +125159,75 @@ paths: explode: true style: form - in: query - name: tenant + name: slug__iew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: slug__isw schema: type: array items: type: string - description: Tenant (slug) - explode: true - style: form - - in: query - name: tenant_group - schema: - type: array - items: - type: integer - description: Tenant Group (slug) explode: true style: form - in: query - name: tenant_group__n - schema: - type: array - items: - type: integer - description: Tenant Group (slug) - explode: true - style: form - - in: query - name: tenant_group_id - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_group_id__n - schema: - type: array - items: - type: integer - description: Tenant Group (ID) - explode: true - style: form - - in: query - name: tenant_id - schema: - type: array - items: - type: integer - nullable: true - description: Tenant (ID) - explode: true - style: form - - in: query - name: tenant_id__n + name: slug__n schema: type: array items: - type: integer - nullable: true - description: Tenant (ID) + type: string explode: true style: form - in: query - name: tunnel_id + name: slug__nic schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tunnel_id__empty - schema: - type: boolean - - in: query - name: tunnel_id__gt + name: slug__nie schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tunnel_id__gte + name: slug__niew schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tunnel_id__lt + name: slug__nisw schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tunnel_id__lte + name: tag schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query - name: tunnel_id__n + name: tag__n schema: type: array items: - type: integer - format: int32 + type: string explode: true style: form - in: query @@ -98788,7 +125236,7 @@ paths: type: string format: uuid tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -98797,21 +125245,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedTunnelList' + $ref: '#/components/schemas/PaginatedClusterTypeList' description: '' post: - operationId: vpn_tunnels_create - description: Post a list of tunnel objects. + operationId: virtualization_cluster_types_create + description: Post a list of cluster type objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -98821,25 +125269,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/ClusterType' description: '' put: - operationId: vpn_tunnels_bulk_update - description: Put a list of tunnel objects. + operationId: virtualization_cluster_types_bulk_update + description: Put a list of cluster type objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -98851,25 +125299,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/ClusterType' description: '' patch: - operationId: vpn_tunnels_bulk_partial_update - description: Patch a list of tunnel objects. + operationId: virtualization_cluster_types_bulk_partial_update + description: Patch a list of cluster type objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -98881,25 +125329,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/ClusterType' description: '' delete: - operationId: vpn_tunnels_bulk_destroy - description: Delete a list of tunnel objects. + operationId: virtualization_cluster_types_bulk_destroy + description: Delete a list of cluster type objects. tags: - - vpn + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -98907,19 +125355,19 @@ paths: responses: '204': description: No response body - /api/vpn/tunnels/{id}/: + /api/virtualization/cluster-types/{id}/: get: - operationId: vpn_tunnels_retrieve - description: Get a tunnel object. + operationId: virtualization_cluster_types_retrieve + description: Get a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this cluster type. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -98928,28 +125376,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/ClusterType' description: '' put: - operationId: vpn_tunnels_update - description: Put a tunnel object. + operationId: virtualization_cluster_types_update + description: Put a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this cluster type. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableTunnelRequest' + $ref: '#/components/schemas/ClusterTypeRequest' required: true security: - cookieAuth: [] @@ -98959,28 +125407,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/ClusterType' description: '' patch: - operationId: vpn_tunnels_partial_update - description: Patch a tunnel object. + operationId: virtualization_cluster_types_partial_update + description: Patch a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this cluster type. required: true tags: - - vpn + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedClusterTypeRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableTunnelRequest' + $ref: '#/components/schemas/PatchedClusterTypeRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -98989,61 +125437,81 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/ClusterType' description: '' delete: - operationId: vpn_tunnels_destroy - description: Delete a tunnel object. + operationId: virtualization_cluster_types_destroy + description: Delete a cluster type object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this tunnel. + description: A unique integer value identifying this cluster type. required: true tags: - - vpn + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lan-groups/: + /api/virtualization/clusters/: get: - operationId: wireless_wireless_lan_groups_list - description: Get a list of wireless LAN group objects. + operationId: virtualization_clusters_list + description: Get a list of cluster objects. parameters: - in: query - name: ancestor + name: contact schema: type: array items: type: integer + description: Contact explode: true style: form - in: query - name: ancestor__n + name: contact__n schema: type: array items: type: integer + description: Contact explode: true style: form - in: query - name: ancestor_id + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role schema: type: array items: type: integer + description: Contact Role explode: true style: form - in: query - name: ancestor_id__n + name: contact_role__n schema: type: array items: type: integer + description: Contact Role explode: true style: form - in: query @@ -99198,6 +125666,44 @@ paths: type: string explode: true style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Parent group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Parent group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Parent group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Parent group (ID) + explode: true + style: form - in: query name: id schema: @@ -99427,7 +125933,12 @@ paths: schema: type: string - in: query - name: parent + name: q + schema: + type: string + description: Search + - in: query + name: region schema: type: array items: @@ -99435,7 +125946,7 @@ paths: explode: true style: form - in: query - name: parent__n + name: region__n schema: type: array items: @@ -99443,110 +125954,318 @@ paths: explode: true style: form - in: query - name: parent_id + name: region_id schema: type: array items: - type: integer - nullable: true + type: string explode: true style: form - in: query - name: parent_id__n + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id schema: type: array items: type: integer nullable: true + description: Site (ID) explode: true style: form - in: query - name: q + name: site_id__n schema: - type: string - description: Search + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form - in: query - name: slug + name: status schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb explode: true style: form - in: query - name: slug__empty + name: status__empty schema: type: boolean - in: query - name: slug__ic + name: status__ic schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__ie + name: status__ie schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__iew + name: status__iew schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__isw + name: status__isw schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__n + name: status__n schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__nic + name: status__nic schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__nie + name: status__nie schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__niew + name: status__niew schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query - name: slug__nisw + name: status__nisw schema: type: array items: type: string + x-spec-enum-id: 79d20a734d0eecbb + enum: + - active + - decommissioning + - offline + - planned + - staging + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' explode: true style: form - in: query @@ -99565,13 +126284,119 @@ paths: type: string explode: true style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: type_id + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: type_id__n + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form - in: query name: updated_by_request schema: type: string format: uuid tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -99580,21 +126405,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + $ref: '#/components/schemas/PaginatedClusterList' description: '' post: - operationId: wireless_wireless_lan_groups_create - description: Post a list of wireless LAN group objects. + operationId: virtualization_clusters_create + description: Post a list of cluster objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -99604,25 +126429,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: wireless_wireless_lan_groups_bulk_update - description: Put a list of wireless LAN group objects. + operationId: virtualization_clusters_bulk_update + description: Put a list of cluster objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -99634,25 +126459,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: wireless_wireless_lan_groups_bulk_partial_update - description: Patch a list of wireless LAN group objects. + operationId: virtualization_clusters_bulk_partial_update + description: Patch a list of cluster objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -99664,25 +126489,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: wireless_wireless_lan_groups_bulk_destroy - description: Delete a list of wireless LAN group objects. + operationId: virtualization_clusters_bulk_destroy + description: Delete a list of cluster objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/ClusterRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANGroupRequest' + $ref: '#/components/schemas/ClusterRequest' required: true security: - cookieAuth: [] @@ -99690,19 +126515,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lan-groups/{id}/: + /api/virtualization/clusters/{id}/: get: - operationId: wireless_wireless_lan_groups_retrieve - description: Get a wireless LAN group object. + operationId: virtualization_clusters_retrieve + description: Get a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this cluster. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -99711,28 +126536,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/Cluster' description: '' put: - operationId: wireless_wireless_lan_groups_update - description: Put a wireless LAN group object. + operationId: virtualization_clusters_update + description: Put a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this cluster. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + $ref: '#/components/schemas/WritableClusterRequest' required: true security: - cookieAuth: [] @@ -99742,28 +126567,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/Cluster' description: '' patch: - operationId: wireless_wireless_lan_groups_partial_update - description: Patch a wireless LAN group object. + operationId: virtualization_clusters_partial_update + description: Patch a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this cluster. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + $ref: '#/components/schemas/PatchedWritableClusterRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -99772,153 +126597,83 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLANGroup' + $ref: '#/components/schemas/Cluster' description: '' delete: - operationId: wireless_wireless_lan_groups_destroy - description: Delete a wireless LAN group object. + operationId: virtualization_clusters_destroy + description: Delete a cluster object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN group. + description: A unique integer value identifying this cluster. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-lans/: + /api/virtualization/interfaces/: get: - operationId: wireless_wireless_lans_list - description: Get a list of wireless LAN objects. + operationId: virtualization_interfaces_list + description: Get a list of interface objects. parameters: - in: query - name: auth_cipher - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_cipher__n - schema: - type: array - items: - type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - explode: true - style: form - - in: query - name: auth_psk - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__ie - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__iew - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__isw - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__n - schema: - type: array - items: - type: string - explode: true - style: form - - in: query - name: auth_psk__nic + name: bridge_id schema: type: array items: - type: string + type: integer + description: Bridged interface (ID) explode: true style: form - in: query - name: auth_psk__nie + name: bridge_id__n schema: type: array items: - type: string + type: integer + description: Bridged interface (ID) explode: true style: form - in: query - name: auth_psk__niew + name: cluster schema: type: array items: type: string + description: Cluster explode: true style: form - in: query - name: auth_psk__nisw + name: cluster__n schema: type: array items: type: string + description: Cluster explode: true style: form - in: query - name: auth_type + name: cluster_id schema: type: array items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + type: integer + description: Cluster (ID) explode: true style: form - in: query - name: auth_type__n + name: cluster_id__n schema: type: array items: - type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type + type: integer + description: Cluster (ID) explode: true style: form - in: query @@ -100074,39 +126829,33 @@ paths: explode: true style: form - in: query - name: group + name: enabled schema: - type: array - items: - type: integer - explode: true - style: form + type: boolean - in: query - name: group__n + name: id schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: group_id + name: id__empty schema: - type: array - items: - type: integer - explode: true - style: form + type: boolean - in: query - name: group_id__n + name: id__gt schema: type: array items: type: integer + format: int32 explode: true style: form - in: query - name: id + name: id__gte schema: type: array items: @@ -100115,11 +126864,7 @@ paths: explode: true style: form - in: query - name: id__empty - schema: - type: boolean - - in: query - name: id__gt + name: id__lt schema: type: array items: @@ -100128,7 +126873,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: id__lte schema: type: array items: @@ -100137,7 +126882,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: id__n schema: type: array items: @@ -100146,37 +126891,47 @@ paths: explode: true style: form - in: query - name: id__lte + name: l2vpn schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: id__n + name: l2vpn__n schema: type: array items: type: integer - format: int32 + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + description: L2VPN explode: true style: form - in: query - name: interface_id + name: l2vpn_id schema: type: array items: type: integer + description: L2VPN (ID) explode: true style: form - in: query - name: interface_id__n + name: l2vpn_id__n schema: type: array items: type: integer + description: L2VPN (ID) explode: true style: form - in: query @@ -100249,29 +127004,31 @@ paths: schema: type: integer - in: query - name: modified_by_request - schema: - type: string - format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + name: mac_address schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__ic schema: - type: string + type: array + items: + type: string + explode: true + style: form - in: query - name: q + name: mac_address__ie schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: ssid + name: mac_address__iew schema: type: array items: @@ -100279,11 +127036,15 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: mac_address__isw schema: - type: boolean + type: array + items: + type: string + explode: true + style: form - in: query - name: ssid__ic + name: mac_address__n schema: type: array items: @@ -100291,7 +127052,7 @@ paths: explode: true style: form - in: query - name: ssid__ie + name: mac_address__nic schema: type: array items: @@ -100299,7 +127060,7 @@ paths: explode: true style: form - in: query - name: ssid__iew + name: mac_address__nie schema: type: array items: @@ -100307,7 +127068,7 @@ paths: explode: true style: form - in: query - name: ssid__isw + name: mac_address__niew schema: type: array items: @@ -100315,7 +127076,7 @@ paths: explode: true style: form - in: query - name: ssid__n + name: mac_address__nisw schema: type: array items: @@ -100323,7 +127084,87 @@ paths: explode: true style: form - in: query - name: ssid__nic + name: mode + schema: + type: string + x-spec-enum-id: 79109bd9dbb73a3c + enum: + - access + - tagged + - tagged-all + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: mtu + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__empty + schema: + type: boolean + - in: query + name: mtu__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: mtu__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: name schema: type: array items: @@ -100331,7 +127172,11 @@ paths: explode: true style: form - in: query - name: ssid__nie + name: name__empty + schema: + type: boolean + - in: query + name: name__ic schema: type: array items: @@ -100339,7 +127184,7 @@ paths: explode: true style: form - in: query - name: ssid__niew + name: name__ie schema: type: array items: @@ -100347,7 +127192,7 @@ paths: explode: true style: form - in: query - name: ssid__nisw + name: name__iew schema: type: array items: @@ -100355,25 +127200,23 @@ paths: explode: true style: form - in: query - name: status + name: name__isw schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: status__n + name: name__n schema: type: array items: type: string - x-spec-enum-id: 412ebdca597f609e explode: true style: form - in: query - name: tag + name: name__nic schema: type: array items: @@ -100381,7 +127224,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: name__nie schema: type: array items: @@ -100389,104 +127232,165 @@ paths: explode: true style: form - in: query - name: tenant + name: name__niew schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: name__nisw schema: type: array items: type: string - description: Tenant (slug) explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: tenant_group + name: parent_id schema: type: array items: type: integer - description: Tenant Group (slug) + description: Parent interface (ID) explode: true style: form - in: query - name: tenant_group__n + name: parent_id__n schema: type: array items: type: integer - description: Tenant Group (slug) + description: Parent interface (ID) explode: true style: form - in: query - name: tenant_group_id + name: q + schema: + type: string + description: Search + - in: query + name: tag schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_group_id__n + name: tag__n schema: type: array items: - type: integer - description: Tenant Group (ID) + type: string explode: true style: form - in: query - name: tenant_id + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine_id schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Virtual machine (ID) explode: true style: form - in: query - name: tenant_id__n + name: virtual_machine_id__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + description: Virtual machine (ID) explode: true style: form - in: query - name: updated_by_request + name: vlan schema: type: string - format: uuid + description: Assigned VID - in: query name: vlan_id + schema: + type: string + description: Assigned VLAN + - in: query + name: vrf schema: type: array items: - type: integer + type: string nullable: true + title: Route distinguisher + description: VRF (RD) explode: true style: form - in: query - name: vlan_id__n + name: vrf__n schema: type: array items: - type: integer + type: string nullable: true + title: Route distinguisher + description: VRF (RD) + explode: true + style: form + - in: query + name: vrf_id + schema: + type: array + items: + type: integer + description: VRF + explode: true + style: form + - in: query + name: vrf_id__n + schema: + type: array + items: + type: integer + description: VRF explode: true style: form tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -100495,21 +127399,21 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/PaginatedWirelessLANList' + $ref: '#/components/schemas/PaginatedVMInterfaceList' description: '' post: - operationId: wireless_wireless_lans_create - description: Post a list of wireless LAN objects. + operationId: virtualization_interfaces_create + description: Post a list of interface objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -100519,25 +127423,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: wireless_wireless_lans_bulk_update - description: Put a list of wireless LAN objects. + operationId: virtualization_interfaces_bulk_update + description: Put a list of interface objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -100549,25 +127453,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: wireless_wireless_lans_bulk_partial_update - description: Patch a list of wireless LAN objects. + operationId: virtualization_interfaces_bulk_partial_update + description: Patch a list of interface objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -100579,25 +127483,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: wireless_wireless_lans_bulk_destroy - description: Delete a list of wireless LAN objects. + operationId: virtualization_interfaces_bulk_destroy + description: Delete a list of interface objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/VMInterfaceRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLANRequest' + $ref: '#/components/schemas/VMInterfaceRequest' required: true security: - cookieAuth: [] @@ -100605,19 +127509,19 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-lans/{id}/: + /api/virtualization/interfaces/{id}/: get: - operationId: wireless_wireless_lans_retrieve - description: Get a wireless LAN object. + operationId: virtualization_interfaces_retrieve + description: Get a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this interface. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] @@ -100626,28 +127530,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/VMInterface' description: '' put: - operationId: wireless_wireless_lans_update - description: Put a wireless LAN object. + operationId: virtualization_interfaces_update + description: Put a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this interface. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLANRequest' + $ref: '#/components/schemas/WritableVMInterfaceRequest' required: true security: - cookieAuth: [] @@ -100657,28 +127561,28 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/VMInterface' description: '' patch: - operationId: wireless_wireless_lans_partial_update - description: Patch a wireless LAN object. + operationId: virtualization_interfaces_partial_update + description: Patch a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this interface. required: true tags: - - wireless + - virtualization requestBody: content: application/json: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' multipart/form-data: schema: - $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + $ref: '#/components/schemas/PatchedWritableVMInterfaceRequest' security: - cookieAuth: [] - tokenAuth: [] @@ -100687,97 +127591,101 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLAN' + $ref: '#/components/schemas/VMInterface' description: '' delete: - operationId: wireless_wireless_lans_destroy - description: Delete a wireless LAN object. + operationId: virtualization_interfaces_destroy + description: Delete a interface object. parameters: - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless LAN. + description: A unique integer value identifying this interface. required: true tags: - - wireless + - virtualization security: - cookieAuth: [] - tokenAuth: [] responses: '204': description: No response body - /api/wireless/wireless-links/: + /api/virtualization/virtual-disks/: get: - operationId: wireless_wireless_links_list - description: Get a list of wireless link objects. + operationId: virtualization_virtual_disks_list + description: Get a list of virtual disk objects. parameters: - in: query - name: auth_cipher + name: created schema: type: array items: type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher + format: date-time explode: true style: form - in: query - name: auth_cipher__n + name: created__empty schema: type: array items: type: string - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher + format: date-time explode: true style: form - in: query - name: auth_psk + name: created__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__empty - schema: - type: boolean - - in: query - name: auth_psk__ic + name: created__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__ie + name: created__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__iew + name: created__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__isw + name: created__n schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: auth_psk__n + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description schema: type: array items: @@ -100785,7 +127693,11 @@ paths: explode: true style: form - in: query - name: auth_psk__nic + name: description__empty + schema: + type: boolean + - in: query + name: description__ic schema: type: array items: @@ -100793,7 +127705,7 @@ paths: explode: true style: form - in: query - name: auth_psk__nie + name: description__ie schema: type: array items: @@ -100801,7 +127713,7 @@ paths: explode: true style: form - in: query - name: auth_psk__niew + name: description__iew schema: type: array items: @@ -100809,7 +127721,7 @@ paths: explode: true style: form - in: query - name: auth_psk__nisw + name: description__isw schema: type: array items: @@ -100817,107 +127729,191 @@ paths: explode: true style: form - in: query - name: auth_type + name: description__n schema: type: array items: type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type explode: true style: form - in: query - name: auth_type__n + name: description__nic schema: type: array items: type: string - x-spec-enum-id: a2043acb899b3954 - title: Authentication type explode: true style: form - in: query - name: created + name: description__nie schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__empty + name: description__niew schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gt + name: description__nisw schema: type: array items: type: string - format: date-time explode: true style: form - in: query - name: created__gte + name: id schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lt + name: id__empty + schema: + type: boolean + - in: query + name: id__gt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__lte + name: id__gte schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created__n + name: id__lt schema: type: array items: - type: string - format: date-time + type: integer + format: int32 explode: true style: form - in: query - name: created_by_request - schema: - type: string - format: uuid - - in: query - name: description + name: id__lte schema: type: array items: - type: string + type: integer + format: int32 explode: true style: form - in: query - name: description__empty + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty schema: type: boolean - in: query - name: description__ic + name: name__ic schema: type: array items: @@ -100925,7 +127921,7 @@ paths: explode: true style: form - in: query - name: description__ie + name: name__ie schema: type: array items: @@ -100933,7 +127929,7 @@ paths: explode: true style: form - in: query - name: description__iew + name: name__iew schema: type: array items: @@ -100941,7 +127937,7 @@ paths: explode: true style: form - in: query - name: description__isw + name: name__isw schema: type: array items: @@ -100949,7 +127945,7 @@ paths: explode: true style: form - in: query - name: description__n + name: name__n schema: type: array items: @@ -100957,7 +127953,7 @@ paths: explode: true style: form - in: query - name: description__nic + name: name__nic schema: type: array items: @@ -100965,7 +127961,7 @@ paths: explode: true style: form - in: query - name: description__nie + name: name__nie schema: type: array items: @@ -100973,7 +127969,7 @@ paths: explode: true style: form - in: query - name: description__niew + name: name__niew schema: type: array items: @@ -100981,15 +127977,32 @@ paths: explode: true style: form - in: query - name: description__nisw + name: name__nisw schema: type: array items: type: string explode: true style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string - in: query - name: id + name: q + schema: + type: string + description: Search + - in: query + name: size schema: type: array items: @@ -100998,11 +128011,11 @@ paths: explode: true style: form - in: query - name: id__empty + name: size__empty schema: type: boolean - in: query - name: id__gt + name: size__gt schema: type: array items: @@ -101011,7 +128024,7 @@ paths: explode: true style: form - in: query - name: id__gte + name: size__gte schema: type: array items: @@ -101020,7 +128033,7 @@ paths: explode: true style: form - in: query - name: id__lt + name: size__lt schema: type: array items: @@ -101029,7 +128042,7 @@ paths: explode: true style: form - in: query - name: id__lte + name: size__lte schema: type: array items: @@ -101038,7 +128051,7 @@ paths: explode: true style: form - in: query - name: id__n + name: size__n schema: type: array items: @@ -101047,48 +128060,473 @@ paths: explode: true style: form - in: query - name: interface_a_id + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine + explode: true + style: form + - in: query + name: virtual_machine_id schema: type: array items: type: integer + description: Virtual machine (ID) explode: true style: form - in: query - name: interface_a_id__n + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVirtualDiskList' + description: '' + post: + operationId: virtualization_virtual_disks_create + description: Post a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + put: + operationId: virtualization_virtual_disks_bulk_update + description: Put a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDisk' + description: '' + patch: + operationId: virtualization_virtual_disks_bulk_partial_update + description: Patch a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDisk' + description: '' + delete: + operationId: virtualization_virtual_disks_bulk_destroy + description: Delete a list of virtual disk objects. + tags: + - virtualization + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-disks/{id}/: + get: + operationId: virtualization_virtual_disks_retrieve + description: Get a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + put: + operationId: virtualization_virtual_disks_update + description: Put a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/VirtualDiskRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + patch: + operationId: virtualization_virtual_disks_partial_update + description: Patch a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedVirtualDiskRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedVirtualDiskRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualDisk' + description: '' + delete: + operationId: virtualization_virtual_disks_destroy + description: Delete a virtual disk object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual disk. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-machines/: + get: + operationId: virtualization_virtual_machines_list + description: Get a list of virtual machine objects. + parameters: + - in: query + name: cluster + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster__n + schema: + type: array + items: + type: string + description: Cluster + explode: true + style: form + - in: query + name: cluster_group + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group__n + schema: + type: array + items: + type: string + description: Cluster group (slug) + explode: true + style: form + - in: query + name: cluster_group_id schema: type: array items: type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: interface_b_id + name: cluster_group_id__n schema: type: array items: type: integer + description: Cluster group (ID) explode: true style: form - in: query - name: interface_b_id__n + name: cluster_id + schema: + type: array + items: + type: integer + nullable: true + description: Cluster (ID) + explode: true + style: form + - in: query + name: cluster_id__n schema: type: array items: type: integer + nullable: true + description: Cluster (ID) explode: true style: form - in: query - name: last_updated + name: cluster_type schema: type: array items: type: string - format: date-time + description: Cluster type (slug) explode: true style: form - in: query - name: last_updated__empty + name: cluster_type__n + schema: + type: array + items: + type: string + description: Cluster type (slug) + explode: true + style: form + - in: query + name: cluster_type_id + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: cluster_type_id__n + schema: + type: array + items: + type: integer + description: Cluster type (ID) + explode: true + style: form + - in: query + name: config_template_id + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: config_template_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Config template (ID) + explode: true + style: form + - in: query + name: contact + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact__n + schema: + type: array + items: + type: integer + description: Contact + explode: true + style: form + - in: query + name: contact_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: contact_role + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: contact_role__n + schema: + type: array + items: + type: integer + description: Contact Role + explode: true + style: form + - in: query + name: created schema: type: array items: @@ -101097,7 +128535,7 @@ paths: explode: true style: form - in: query - name: last_updated__gt + name: created__empty schema: type: array items: @@ -101106,7 +128544,7 @@ paths: explode: true style: form - in: query - name: last_updated__gte + name: created__gt schema: type: array items: @@ -101115,7 +128553,7 @@ paths: explode: true style: form - in: query - name: last_updated__lt + name: created__gte schema: type: array items: @@ -101124,7 +128562,7 @@ paths: explode: true style: form - in: query - name: last_updated__lte + name: created__lt schema: type: array items: @@ -101133,7 +128571,7 @@ paths: explode: true style: form - in: query - name: last_updated__n + name: created__lte schema: type: array items: @@ -101141,36 +128579,42 @@ paths: format: date-time explode: true style: form - - name: limit - required: false - in: query - description: Number of results to return per page. + - in: query + name: created__n schema: - type: integer + type: array + items: + type: string + format: date-time + explode: true + style: form - in: query - name: modified_by_request + name: created_by_request schema: type: string format: uuid - - name: offset - required: false - in: query - description: The initial index from which to return the results. + - in: query + name: description schema: - type: integer - - name: ordering - required: false - in: query - description: Which field to use when ordering the results. + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty schema: - type: string + type: boolean - in: query - name: q + name: description__ic schema: - type: string - description: Search + type: array + items: + type: string + explode: true + style: form - in: query - name: ssid + name: description__ie schema: type: array items: @@ -101178,67 +128622,356 @@ paths: explode: true style: form - in: query - name: ssid__empty + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Device (ID) + explode: true + style: form + - in: query + name: disk + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__empty schema: type: boolean - in: query - name: ssid__ic + name: disk__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: disk__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: has_primary_ip + schema: + type: boolean + description: Has a primary IP + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__empty + schema: + type: boolean + - in: query + name: interface_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ssid__ie + name: last_updated__empty schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ssid__iew + name: last_updated__gt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ssid__isw + name: last_updated__gte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ssid__n + name: last_updated__lt schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ssid__nic + name: last_updated__lte schema: type: array items: type: string + format: date-time explode: true style: form - in: query - name: ssid__nie + name: last_updated__n schema: type: array items: type: string + format: date-time explode: true style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer - in: query - name: ssid__niew + name: local_context_data + schema: + type: boolean + description: Has local config context data + - in: query + name: mac_address schema: type: array items: @@ -101246,7 +128979,7 @@ paths: explode: true style: form - in: query - name: ssid__nisw + name: mac_address__ic schema: type: array items: @@ -101254,25 +128987,23 @@ paths: explode: true style: form - in: query - name: status + name: mac_address__ie schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: status__n + name: mac_address__iew schema: type: array items: type: string - x-spec-enum-id: fbc2f302c08be50d explode: true style: form - in: query - name: tag + name: mac_address__isw schema: type: array items: @@ -101280,7 +129011,7 @@ paths: explode: true style: form - in: query - name: tag__n + name: mac_address__n schema: type: array items: @@ -101288,109 +129019,987 @@ paths: explode: true style: form - in: query - name: tenant + name: mac_address__nic schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant__n + name: mac_address__nie schema: type: array items: type: string - description: Tenant (slug) explode: true style: form - in: query - name: tenant_group + name: mac_address__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: mac_address__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: memory schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group__n + name: memory__empty + schema: + type: boolean + - in: query + name: memory__gt schema: type: array items: type: integer - description: Tenant Group (slug) + format: int32 explode: true style: form - in: query - name: tenant_group_id + name: memory__gte schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_group_id__n + name: memory__lt schema: type: array items: type: integer - description: Tenant Group (ID) + format: int32 explode: true style: form - in: query - name: tenant_id + name: memory__lte schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: tenant_id__n + name: memory__n schema: type: array items: type: integer - nullable: true - description: Tenant (ID) + format: int32 explode: true style: form - in: query - name: updated_by_request + name: modified_by_request schema: type: string format: uuid - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/PaginatedWirelessLinkList' - description: '' - post: - operationId: wireless_wireless_links_create - description: Post a list of wireless link objects. - tags: - - wireless - requestBody: - content: + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: platform + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform__n + schema: + type: array + items: + type: string + description: Platform (slug) + explode: true + style: form + - in: query + name: platform_id + schema: + type: array + items: + type: integer + nullable: true + description: Platform (ID) + explode: true + style: form + - in: query + name: platform_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Platform (ID) + explode: true + style: form + - in: query + name: primary_ip4_id + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip4_id__n + schema: + type: array + items: + type: integer + description: Primary IPv4 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: primary_ip6_id__n + schema: + type: array + items: + type: integer + description: Primary IPv6 (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: role + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + description: Role (slug) + explode: true + style: form + - in: query + name: role_id + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: role_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Role (ID) + explode: true + style: form + - in: query + name: serial + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__empty + schema: + type: boolean + - in: query + name: serial__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: serial__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site__n + schema: + type: array + items: + type: string + description: Site (slug) + explode: true + style: form + - in: query + name: site_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: site_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Site (ID) + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 2217e87d0c3efdda + enum: + - active + - decommissioning + - failed + - offline + - planned + - staged + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vcpus + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__empty + schema: + type: boolean + - in: query + name: vcpus__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: vcpus__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: virtual_disk_count + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__empty + schema: + type: boolean + - in: query + name: virtual_disk_count__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: virtual_disk_count__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedVirtualMachineWithConfigContextList' + description: '' + post: + operationId: virtualization_virtual_machines_create + description: Post a list of virtual machine objects. + tags: + - virtualization + requestBody: + content: application/json: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' multipart/form-data: schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -101400,25 +130009,25 @@ paths: content: application/json: schema: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' put: - operationId: wireless_wireless_links_bulk_update - description: Put a list of wireless link objects. + operationId: virtualization_virtual_machines_bulk_update + description: Put a list of virtual machine objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -101430,25 +130039,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' patch: - operationId: wireless_wireless_links_bulk_partial_update - description: Patch a list of wireless link objects. + operationId: virtualization_virtual_machines_bulk_partial_update + description: Patch a list of virtual machine objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -101460,25 +130069,25 @@ paths: schema: type: array items: - $ref: '#/components/schemas/WirelessLink' + $ref: '#/components/schemas/VirtualMachineWithConfigContext' description: '' delete: - operationId: wireless_wireless_links_bulk_destroy - description: Delete a list of wireless link objects. + operationId: virtualization_virtual_machines_bulk_destroy + description: Delete a list of virtual machine objects. tags: - - wireless + - virtualization requestBody: content: application/json: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' multipart/form-data: schema: type: array items: - $ref: '#/components/schemas/WirelessLinkRequest' + $ref: '#/components/schemas/VirtualMachineWithConfigContextRequest' required: true security: - cookieAuth: [] @@ -101486,111 +130095,18273 @@ paths: responses: '204': description: No response body - /api/wireless/wireless-links/{id}/: + /api/virtualization/virtual-machines/{id}/: get: - operationId: wireless_wireless_links_retrieve - description: Get a wireless link object. + operationId: virtualization_virtual_machines_retrieve + description: Get a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + put: + operationId: virtualization_virtual_machines_update + description: Put a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + patch: + operationId: virtualization_virtual_machines_partial_update + description: Patch a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableVirtualMachineWithConfigContextRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + delete: + operationId: virtualization_virtual_machines_destroy + description: Delete a virtual machine object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/virtualization/virtual-machines/{id}/render-config/: + post: + operationId: virtualization_virtual_machines_render_config_create + description: Resolve and render the preferred ConfigTemplate for this Device. parameters: + - in: query + name: format + schema: + type: string + enum: + - json + - txt - in: path name: id schema: type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - put: - operationId: wireless_wireless_links_update - description: Put a wireless link object. - parameters: - - in: path - name: id - schema: + description: A unique integer value identifying this virtual machine. + required: true + tags: + - virtualization + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableVirtualMachineWithConfigContextRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + text/plain: + schema: + $ref: '#/components/schemas/VirtualMachineWithConfigContext' + description: '' + /api/vpn/ike-policies/: + get: + operationId: vpn_ike_policies_list + description: Get a list of IKE policy objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: ike_proposal + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ike_proposal__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ike_proposal_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: ike_proposal_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + explode: true + style: form + - in: query + name: mode__empty + schema: + type: boolean + - in: query + name: mode__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: mode__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 64c1be7bdb2548ca + enum: + - '' + - aggressive + - main + description: '* `aggressive` - Aggressive + + * `main` - Main' + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: preshared_key + schema: + type: string + - in: query + name: preshared_key__ic + schema: + type: string + - in: query + name: preshared_key__ie + schema: + type: string + - in: query + name: preshared_key__iew + schema: + type: string + - in: query + name: preshared_key__isw + schema: + type: string + - in: query + name: preshared_key__n + schema: + type: string + - in: query + name: preshared_key__nic + schema: + type: string + - in: query + name: preshared_key__nie + schema: + type: string + - in: query + name: preshared_key__niew + schema: + type: string + - in: query + name: preshared_key__nisw + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: version + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + explode: true + style: form + - in: query + name: version__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__n + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + - in: query + name: version__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: 00872b77916a1fde + enum: + - 1 + - 2 + description: '* `1` - IKEv1 + + * `2` - IKEv2' + explode: true + style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIKEPolicyList' + description: '' + post: + operationId: vpn_ike_policies_create + description: Post a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + put: + operationId: vpn_ike_policies_bulk_update + description: Put a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicy' + description: '' + patch: + operationId: vpn_ike_policies_bulk_partial_update + description: Patch a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicy' + description: '' + delete: + operationId: vpn_ike_policies_bulk_destroy + description: Delete a list of IKE policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ike-policies/{id}/: + get: + operationId: vpn_ike_policies_retrieve + description: Get a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + put: + operationId: vpn_ike_policies_update + description: Put a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + patch: + operationId: vpn_ike_policies_partial_update + description: Patch a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIKEPolicyRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEPolicy' + description: '' + delete: + operationId: vpn_ike_policies_destroy + description: Delete a IKE policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ike-proposals/: + get: + operationId: vpn_ike_proposals_list + description: Get a list of IKE proposal objects. + parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + explode: true + style: form + - in: query + name: authentication_algorithm__empty + schema: + type: boolean + - in: query + name: authentication_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_method + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + explode: true + style: form + - in: query + name: authentication_method__empty + schema: + type: boolean + - in: query + name: authentication_method__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__n + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: authentication_method__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 92bb2f1103b3a262 + enum: + - certificates + - dsa-signatures + - preshared-keys + - rsa-signatures + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + explode: true + style: form + - in: query + name: encryption_algorithm__empty + schema: + type: boolean + - in: query + name: encryption_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + enum: + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + description: Diffie-Hellman group ID + explode: true + style: form + - in: query + name: group__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: group__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__empty + schema: + type: boolean + - in: query + name: sa_lifetime__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIKEProposalList' + description: '' + post: + operationId: vpn_ike_proposals_create + description: Post a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + put: + operationId: vpn_ike_proposals_bulk_update + description: Put a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposal' + description: '' + patch: + operationId: vpn_ike_proposals_bulk_partial_update + description: Patch a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposal' + description: '' + delete: + operationId: vpn_ike_proposals_bulk_destroy + description: Delete a list of IKE proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ike-proposals/{id}/: + get: + operationId: vpn_ike_proposals_retrieve + description: Get a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + put: + operationId: vpn_ike_proposals_update + description: Put a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIKEProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + patch: + operationId: vpn_ike_proposals_partial_update + description: Patch a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIKEProposalRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IKEProposal' + description: '' + delete: + operationId: vpn_ike_proposals_destroy + description: Delete a IKE proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IKE proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-policies/: + get: + operationId: vpn_ipsec_policies_list + description: Get a list of IPSec policy objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: ipsec_proposal + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ipsec_proposal__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ipsec_proposal_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: ipsec_proposal_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: pfs_group + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: Diffie-Hellman group for Perfect Forward Secrecy + explode: true + style: form + - in: query + name: pfs_group__ic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__ie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__iew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__isw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__n + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__nic + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__nie + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__niew + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: pfs_group__nisw + schema: + type: array + items: + type: integer + x-spec-enum-id: dbef43be795462a8 + nullable: true + enum: + - 1 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 2 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + - 5 + - null + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecPolicyList' + description: '' + post: + operationId: vpn_ipsec_policies_create + description: Post a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + put: + operationId: vpn_ipsec_policies_bulk_update + description: Put a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + patch: + operationId: vpn_ipsec_policies_bulk_partial_update + description: Patch a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + delete: + operationId: vpn_ipsec_policies_bulk_destroy + description: Delete a list of IPSec policy objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-policies/{id}/: + get: + operationId: vpn_ipsec_policies_retrieve + description: Get a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + put: + operationId: vpn_ipsec_policies_update + description: Put a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecPolicyRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + patch: + operationId: vpn_ipsec_policies_partial_update + description: Patch a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecPolicyRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecPolicy' + description: '' + delete: + operationId: vpn_ipsec_policies_destroy + description: Delete a IPSec policy object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec policy. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-profiles/: + get: + operationId: vpn_ipsec_profiles_list + description: Get a list of IPSec profile objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: ike_policy + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy__n + schema: + type: array + items: + type: string + description: IKE policy (name) + explode: true + style: form + - in: query + name: ike_policy_id + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ike_policy_id__n + schema: + type: array + items: + type: integer + description: IKE policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy__n + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy_id + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy_id__n + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: mode + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + explode: true + style: form + - in: query + name: mode__empty + schema: + type: boolean + - in: query + name: mode__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__n + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: mode__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 1136c2cdfee84436 + enum: + - ah + - esp + description: '* `esp` - ESP + + * `ah` - AH' + explode: true + style: form + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecProfileList' + description: '' + post: + operationId: vpn_ipsec_profiles_create + description: Post a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + put: + operationId: vpn_ipsec_profiles_bulk_update + description: Put a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfile' + description: '' + patch: + operationId: vpn_ipsec_profiles_bulk_partial_update + description: Patch a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfile' + description: '' + delete: + operationId: vpn_ipsec_profiles_bulk_destroy + description: Delete a list of IPSec profile objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-profiles/{id}/: + get: + operationId: vpn_ipsec_profiles_retrieve + description: Get a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + put: + operationId: vpn_ipsec_profiles_update + description: Put a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProfileRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + patch: + operationId: vpn_ipsec_profiles_partial_update + description: Patch a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProfileRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProfile' + description: '' + delete: + operationId: vpn_ipsec_profiles_destroy + description: Delete a IPSec profile object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec profile. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-proposals/: + get: + operationId: vpn_ipsec_proposals_list + description: Get a list of IPSec proposal objects. + parameters: + - in: query + name: authentication_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + explode: true + style: form + - in: query + name: authentication_algorithm__empty + schema: + type: boolean + - in: query + name: authentication_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: authentication_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + enum: + - '' + - hmac-md5 + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encryption_algorithm + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + explode: true + style: form + - in: query + name: encryption_algorithm__empty + schema: + type: boolean + - in: query + name: encryption_algorithm__ic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__ie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__iew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__isw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__n + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__nic + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__nie + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__niew + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: encryption_algorithm__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: b022535cfdee79fe + title: Encryption + enum: + - '' + - 3des-cbc + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - des-cbc + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: ipsec_policy + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy__n + schema: + type: array + items: + type: string + description: IPSec policy (name) + explode: true + style: form + - in: query + name: ipsec_policy_id + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: ipsec_policy_id__n + schema: + type: array + items: + type: integer + description: IPSec policy (ID) + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: sa_lifetime_data + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__empty + schema: + type: boolean + - in: query + name: sa_lifetime_data__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_data__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__empty + schema: + type: boolean + - in: query + name: sa_lifetime_seconds__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: sa_lifetime_seconds__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedIPSecProposalList' + description: '' + post: + operationId: vpn_ipsec_proposals_create + description: Post a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + put: + operationId: vpn_ipsec_proposals_bulk_update + description: Put a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposal' + description: '' + patch: + operationId: vpn_ipsec_proposals_bulk_partial_update + description: Patch a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposal' + description: '' + delete: + operationId: vpn_ipsec_proposals_bulk_destroy + description: Delete a list of IPSec proposal objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/IPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/ipsec-proposals/{id}/: + get: + operationId: vpn_ipsec_proposals_retrieve + description: Get a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + put: + operationId: vpn_ipsec_proposals_update + description: Put a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableIPSecProposalRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + patch: + operationId: vpn_ipsec_proposals_partial_update + description: Patch a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableIPSecProposalRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/IPSecProposal' + description: '' + delete: + operationId: vpn_ipsec_proposals_destroy + description: Delete a IPSec proposal object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this IPSec proposal. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpn-terminations/: + get: + operationId: vpn_l2vpn_terminations_list + description: Get a list of L2VPN termination objects. + parameters: + - in: query + name: assigned_object_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__empty + schema: + type: boolean + - in: query + name: assigned_object_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: assigned_object_type + schema: + type: string + - in: query + name: assigned_object_type__n + schema: + type: string + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: device + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device__n + schema: + type: array + items: + type: string + nullable: true + description: Device (name) + explode: true + style: form + - in: query + name: device_id + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: device_id__n + schema: + type: array + items: + type: integer + description: Device (ID) + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: l2vpn + schema: + type: array + items: + type: string + description: L2VPN (slug) + explode: true + style: form + - in: query + name: l2vpn__n + schema: + type: array + items: + type: string + description: L2VPN (slug) + explode: true + style: form + - in: query + name: l2vpn_id + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: l2vpn_id__n + schema: + type: array + items: + type: integer + description: L2VPN (ID) + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: region + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: region_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: site + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: site_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: virtual_machine + schema: + type: array + items: + type: string + description: Virtual machine (name) + explode: true + style: form + - in: query + name: virtual_machine__n + schema: + type: array + items: + type: string + description: Virtual machine (name) + explode: true + style: form + - in: query + name: virtual_machine_id + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: virtual_machine_id__n + schema: + type: array + items: + type: integer + description: Virtual machine (ID) + explode: true + style: form + - in: query + name: vlan + schema: + type: array + items: + type: string + description: VLAN (name) + explode: true + style: form + - in: query + name: vlan__n + schema: + type: array + items: + type: string + description: VLAN (name) + explode: true + style: form + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + description: VLAN (ID) + explode: true + style: form + - in: query + name: vlan_vid + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__empty + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__gte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lt + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__lte + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vlan_vid__n + schema: + type: integer + description: VLAN number (1-4094) + - in: query + name: vminterface + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface__n + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM Interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM Interface (ID) + explode: true + style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedL2VPNTerminationList' + description: '' + post: + operationId: vpn_l2vpn_terminations_create + description: Post a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + put: + operationId: vpn_l2vpn_terminations_bulk_update + description: Put a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + patch: + operationId: vpn_l2vpn_terminations_bulk_partial_update + description: Patch a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + delete: + operationId: vpn_l2vpn_terminations_bulk_destroy + description: Delete a list of L2VPN termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpn-terminations/{id}/: + get: + operationId: vpn_l2vpn_terminations_retrieve + description: Get a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + put: + operationId: vpn_l2vpn_terminations_update + description: Put a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/L2VPNTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + patch: + operationId: vpn_l2vpn_terminations_partial_update + description: Patch a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedL2VPNTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPNTermination' + description: '' + delete: + operationId: vpn_l2vpn_terminations_destroy + description: Delete a L2VPN termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpns/: + get: + operationId: vpn_l2vpns_list + description: Get a list of L2VPN objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: export_target + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target__n + schema: + type: array + items: + type: string + description: Export target (name) + explode: true + style: form + - in: query + name: export_target_id + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: export_target_id__n + schema: + type: array + items: + type: integer + description: Export target + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__empty + schema: + type: boolean + - in: query + name: identifier__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: identifier__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: import_target + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target__n + schema: + type: array + items: + type: string + description: Import target (name) + explode: true + style: form + - in: query + name: import_target_id + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: import_target_id__n + schema: + type: array + items: + type: integer + description: Import target + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: type + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + explode: true + style: form + - in: query + name: type__empty + schema: + type: boolean + - in: query + name: type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__n + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: dbaa4f996ec2d110 + enum: + - ep-lan + - ep-tree + - epl + - evp-lan + - evp-tree + - evpl + - mpls-evpn + - pbb-evpn + - vpls + - vpws + - vxlan + - vxlan-evpn + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedL2VPNList' + description: '' + post: + operationId: vpn_l2vpns_create + description: Post a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + put: + operationId: vpn_l2vpns_bulk_update + description: Put a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPN' + description: '' + patch: + operationId: vpn_l2vpns_bulk_partial_update + description: Patch a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPN' + description: '' + delete: + operationId: vpn_l2vpns_bulk_destroy + description: Delete a list of L2VPN objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/L2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/l2vpns/{id}/: + get: + operationId: vpn_l2vpns_retrieve + description: Get a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + put: + operationId: vpn_l2vpns_update + description: Put a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableL2VPNRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + patch: + operationId: vpn_l2vpns_partial_update + description: Patch a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableL2VPNRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/L2VPN' + description: '' + delete: + operationId: vpn_l2vpns_destroy + description: Delete a L2VPN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this L2VPN. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-groups/: + get: + operationId: vpn_tunnel_groups_list + description: Get a list of tunnel group objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelGroupList' + description: '' + post: + operationId: vpn_tunnel_groups_create + description: Post a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + put: + operationId: vpn_tunnel_groups_bulk_update + description: Put a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroup' + description: '' + patch: + operationId: vpn_tunnel_groups_bulk_partial_update + description: Patch a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroup' + description: '' + delete: + operationId: vpn_tunnel_groups_bulk_destroy + description: Delete a list of tunnel group objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-groups/{id}/: + get: + operationId: vpn_tunnel_groups_retrieve + description: Get a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + put: + operationId: vpn_tunnel_groups_update + description: Put a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/TunnelGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + patch: + operationId: vpn_tunnel_groups_partial_update + description: Patch a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedTunnelGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedTunnelGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelGroup' + description: '' + delete: + operationId: vpn_tunnel_groups_destroy + description: Delete a tunnel group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel group. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-terminations/: + get: + operationId: vpn_tunnel_terminations_list + description: Get a list of tunnel termination objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface__n + schema: + type: array + items: + type: string + description: Interface (name) + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + description: Interface (ID) + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: outside_ip_id + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: outside_ip_id__n + schema: + type: array + items: + type: integer + description: Outside IP (ID) + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: role + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + explode: true + style: form + - in: query + name: role__empty + schema: + type: boolean + - in: query + name: role__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__n + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: role__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 52225cd60b867572 + enum: + - hub + - peer + - spoke + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: termination_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__empty + schema: + type: boolean + - in: query + name: termination_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: termination_type + schema: + type: string + - in: query + name: termination_type__n + schema: + type: string + - in: query + name: tunnel + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel__n + schema: + type: array + items: + type: string + description: Tunnel (name) + explode: true + style: form + - in: query + name: tunnel_id + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + description: Tunnel (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vminterface + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface__n + schema: + type: array + items: + type: string + description: VM interface (name) + explode: true + style: form + - in: query + name: vminterface_id + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + - in: query + name: vminterface_id__n + schema: + type: array + items: + type: integer + description: VM interface (ID) + explode: true + style: form + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelTerminationList' + description: '' + post: + operationId: vpn_tunnel_terminations_create + description: Post a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_bulk_update + description: Put a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_bulk_partial_update + description: Patch a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_bulk_destroy + description: Delete a list of tunnel termination objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnel-terminations/{id}/: + get: + operationId: vpn_tunnel_terminations_retrieve + description: Get a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + put: + operationId: vpn_tunnel_terminations_update + description: Put a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelTerminationRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + patch: + operationId: vpn_tunnel_terminations_partial_update + description: Patch a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelTerminationRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/TunnelTermination' + description: '' + delete: + operationId: vpn_tunnel_terminations_destroy + description: Delete a tunnel termination object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel termination. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnels/: + get: + operationId: vpn_tunnels_list + description: Get a list of tunnel objects. + parameters: + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: encapsulation + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + explode: true + style: form + - in: query + name: encapsulation__empty + schema: + type: boolean + - in: query + name: encapsulation__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__n + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: encapsulation__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 5fc36bb745852746 + enum: + - gre + - ip-ip + - ipsec-transport + - ipsec-tunnel + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + description: Tunnel group (slug) + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tunnel group (ID) + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: ipsec_profile + schema: + type: array + items: + type: string + description: IPSec profile (name) + explode: true + style: form + - in: query + name: ipsec_profile__n + schema: + type: array + items: + type: string + description: IPSec profile (name) + explode: true + style: form + - in: query + name: ipsec_profile_id + schema: + type: array + items: + type: integer + nullable: true + description: IPSec profile (ID) + explode: true + style: form + - in: query + name: ipsec_profile_id__n + schema: + type: array + items: + type: integer + nullable: true + description: IPSec profile (ID) + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 0d65f7912cba74aa + enum: + - active + - disabled + - planned + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tunnel_id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__empty + schema: + type: boolean + - in: query + name: tunnel_id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: tunnel_id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedTunnelList' + description: '' + post: + operationId: vpn_tunnels_create + description: Post a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + put: + operationId: vpn_tunnels_bulk_update + description: Put a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Tunnel' + description: '' + patch: + operationId: vpn_tunnels_bulk_partial_update + description: Patch a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/Tunnel' + description: '' + delete: + operationId: vpn_tunnels_bulk_destroy + description: Delete a list of tunnel objects. + tags: + - vpn + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/TunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/vpn/tunnels/{id}/: + get: + operationId: vpn_tunnels_retrieve + description: Get a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + put: + operationId: vpn_tunnels_update + description: Put a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableTunnelRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + patch: + operationId: vpn_tunnels_partial_update + description: Patch a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableTunnelRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/Tunnel' + description: '' + delete: + operationId: vpn_tunnels_destroy + description: Delete a tunnel object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this tunnel. + required: true + tags: + - vpn + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lan-groups/: + get: + operationId: wireless_wireless_lan_groups_list + description: Get a list of wireless LAN group objects. + parameters: + - in: query + name: ancestor + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ancestor_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - in: query + name: name + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__empty + schema: + type: boolean + - in: query + name: name__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: name__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: parent + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: parent_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: parent_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: slug + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__empty + schema: + type: boolean + - in: query + name: slug__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: slug__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANGroupList' + description: '' + post: + operationId: wireless_wireless_lan_groups_create + description: Post a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_bulk_update + description: Put a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_bulk_partial_update + description: Patch a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_bulk_destroy + description: Delete a list of wireless LAN group objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lan-groups/{id}/: + get: + operationId: wireless_wireless_lan_groups_retrieve + description: Get a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + put: + operationId: wireless_wireless_lan_groups_update + description: Put a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANGroupRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + patch: + operationId: wireless_wireless_lan_groups_partial_update + description: Patch a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANGroupRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLANGroup' + description: '' + delete: + operationId: wireless_wireless_lan_groups_destroy + description: Delete a wireless LAN group object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN group. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/: + get: + operationId: wireless_wireless_lans_list + description: Get a list of wireless LAN objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__empty + schema: + type: boolean + - in: query + name: auth_cipher__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__empty + schema: + type: boolean + - in: query + name: auth_type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 412ebdca597f609e + enum: + - active + - deprecated + - disabled + - reserved + description: '* `active` - Active + + * `reserved` - Reserved + + * `disabled` - Disabled + + * `deprecated` - Deprecated' + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + - in: query + name: vlan_id + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + - in: query + name: vlan_id__n + schema: + type: array + items: + type: integer + nullable: true + explode: true + style: form + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLANList' + description: '' + post: + operationId: wireless_wireless_lans_create + description: Post a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_bulk_update + description: Put a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_bulk_partial_update + description: Patch a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_bulk_destroy + description: Delete a list of wireless LAN objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-lans/{id}/: + get: + operationId: wireless_wireless_lans_retrieve + description: Get a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + put: + operationId: wireless_wireless_lans_update + description: Put a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLANRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + patch: + operationId: wireless_wireless_lans_partial_update + description: Patch a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLANRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLAN' + description: '' + delete: + operationId: wireless_wireless_lans_destroy + description: Delete a wireless LAN object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless LAN. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/: + get: + operationId: wireless_wireless_links_list + description: Get a list of wireless link objects. + parameters: + - in: query + name: auth_cipher + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + explode: true + style: form + - in: query + name: auth_cipher__empty + schema: + type: boolean + - in: query + name: auth_cipher__ic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__ie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__iew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__isw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__n + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__nic + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__nie + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__niew + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_cipher__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + enum: + - '' + - aes + - auto + - tkip + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + explode: true + style: form + - in: query + name: auth_psk + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__empty + schema: + type: boolean + - in: query + name: auth_psk__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_psk__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: auth_type + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + explode: true + style: form + - in: query + name: auth_type__empty + schema: + type: boolean + - in: query + name: auth_type__ic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__ie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__iew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__isw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__n + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__nic + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__nie + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__niew + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: auth_type__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + enum: + - '' + - open + - wep + - wpa-enterprise + - wpa-personal + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + explode: true + style: form + - in: query + name: created + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: created_by_request + schema: + type: string + format: uuid + - in: query + name: description + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__empty + schema: + type: boolean + - in: query + name: description__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: description__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: distance + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__empty + schema: + type: boolean + - in: query + name: distance__gt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__gte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lt + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__lte + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance__n + schema: + type: array + items: + type: number + format: double + explode: true + style: form + - in: query + name: distance_unit + schema: + type: string + x-spec-enum-id: 53542e7902f946af + enum: + - ft + - km + - m + - mi + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + - in: query + name: id + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__empty + schema: + type: boolean + - in: query + name: id__gt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__gte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lt + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__lte + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: id__n + schema: + type: array + items: + type: integer + format: int32 + explode: true + style: form + - in: query + name: interface_a_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_a_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: interface_b_id__n + schema: + type: array + items: + type: integer + explode: true + style: form + - in: query + name: last_updated + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__empty + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__gte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lt + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__lte + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - in: query + name: last_updated__n + schema: + type: array + items: + type: string + format: date-time + explode: true + style: form + - name: limit + required: false + in: query + description: Number of results to return per page. + schema: + type: integer + - in: query + name: modified_by_request + schema: + type: string + format: uuid + - name: offset + required: false + in: query + description: The initial index from which to return the results. + schema: + type: integer + - name: ordering + required: false + in: query + description: Which field to use when ordering the results. + schema: + type: string + - in: query + name: q + schema: + type: string + description: Search + - in: query + name: ssid + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__empty + schema: + type: boolean + - in: query + name: ssid__ic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__ie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__iew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__isw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nic + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nie + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__niew + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: ssid__nisw + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: status + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + explode: true + style: form + - in: query + name: status__empty + schema: + type: boolean + - in: query + name: status__ic + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__ie + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__iew + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__isw + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__n + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__nic + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__nie + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__niew + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: status__nisw + schema: + type: array + items: + type: string + x-spec-enum-id: fbc2f302c08be50d + enum: + - connected + - decommissioning + - planned + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + explode: true + style: form + - in: query + name: tag + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tag__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant__n + schema: + type: array + items: + type: string + description: Tenant (slug) + explode: true + style: form + - in: query + name: tenant_group + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_group_id__n + schema: + type: array + items: + type: string + explode: true + style: form + - in: query + name: tenant_id + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: tenant_id__n + schema: + type: array + items: + type: integer + nullable: true + description: Tenant (ID) + explode: true + style: form + - in: query + name: updated_by_request + schema: + type: string + format: uuid + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/PaginatedWirelessLinkList' + description: '' + post: + operationId: wireless_wireless_links_create + description: Post a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '201': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_bulk_update + description: Put a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_bulk_partial_update + description: Patch a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_bulk_destroy + description: Delete a list of wireless link objects. + tags: + - wireless + requestBody: + content: + application/json: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + multipart/form-data: + schema: + type: array + items: + $ref: '#/components/schemas/WirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body + /api/wireless/wireless-links/{id}/: + get: + operationId: wireless_wireless_links_retrieve + description: Get a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + put: + operationId: wireless_wireless_links_update + description: Put a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/WritableWirelessLinkRequest' + required: true + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + patch: + operationId: wireless_wireless_links_partial_update + description: Patch a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + requestBody: + content: + application/json: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + multipart/form-data: + schema: + $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/WirelessLink' + description: '' + delete: + operationId: wireless_wireless_links_destroy + description: Delete a wireless link object. + parameters: + - in: path + name: id + schema: + type: integer + description: A unique integer value identifying this wireless link. + required: true + tags: + - wireless + security: + - cookieAuth: [] + - tokenAuth: [] + responses: + '204': + description: No response body +components: + schemas: + ASN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIR' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + site_count: + type: integer + format: int64 + readOnly: true + provider_count: + type: integer + format: int64 + readOnly: true + required: + - asn + - created + - display + - id + - last_updated + - provider_count + - site_count + - url + ASNRange: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIR' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + asn_count: + type: integer + readOnly: true + required: + - asn_count + - created + - display + - end + - id + - last_updated + - name + - rir + - slug + - start + - url + ASNRangeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + rir: + $ref: '#/components/schemas/BriefRIRRequest' + start: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + end: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - end + - name + - rir + - slug + - start + ASNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + asn: + type: integer + maximum: 4294967295 + minimum: 1 + format: int64 + description: 16- or 32-bit autonomous system number + rir: + allOf: + - $ref: '#/components/schemas/BriefRIRRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - asn + Aggregate: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + prefix: + type: string + rir: + $ref: '#/components/schemas/BriefRIR' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - family + - id + - last_updated + - prefix + - rir + - url + AggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + date_added: + type: string + format: date + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - prefix + - rir + AvailableASN: + type: object + description: Representation of an ASN which does not exist in the database. + properties: + asn: + type: integer + readOnly: true + description: + type: string + required: + - asn + AvailableIP: + type: object + description: Representation of an IP address which does not exist in the database. + properties: + family: + type: integer + readOnly: true + address: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + description: + type: string + required: + - address + - family + - vrf + AvailablePrefix: + type: object + description: Representation of a prefix which does not exist in the database. + properties: + family: + type: integer + readOnly: true + prefix: + type: string + readOnly: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + readOnly: true + nullable: true + required: + - family + - prefix + - vrf + AvailableVLAN: + type: object + description: Representation of a VLAN which does not exist in the database. + properties: + vid: + type: integer + readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + readOnly: true + nullable: true + required: + - group + - vid + Bookmark: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + BookmarkRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + required: + - object_id + - object_type + - user + BriefCable: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefCableRequest: + type: object + description: Adds support for custom fields and tags. + properties: + label: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + BriefCircuit: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + cid: + type: string + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + description: + type: string + maxLength: 200 + required: + - cid + - display + - id + - provider + - url + BriefCircuitGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + required: + - display + - id + - name + - url + BriefCircuitGroupAssignmentSerializer_: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + group: + $ref: '#/components/schemas/BriefCircuitGroup' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + required: + - display + - group + - id + - url + BriefCircuitGroupAssignmentSerializer_Request: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + required: + - group + BriefCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + required: + - name + BriefCircuitRequest: + type: object + description: Adds support for custom fields and tags. + properties: + cid: + type: string + minLength: 1 + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + description: + type: string + maxLength: 200 + required: + - cid + - provider + BriefCircuitType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefCircuitTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCluster: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefClusterGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - cluster_count + - display + - id + - name + - slug + - url + BriefClusterGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefClusterRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefClusterType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + cluster_count: + type: integer + format: int64 + readOnly: true + required: + - cluster_count + - display + - id + - name + - slug + - url + BriefClusterTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefConfigTemplate: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefConfigTemplateRequest: + type: object + description: 'Introduces support for Tag assignment. Adds `tags` serialization, + and handles tag assignment + + on create() and update().' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContact: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefContactGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + contact_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - contact_count + - display + - id + - name + - slug + - url + BriefContactGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefContactRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefContactRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefContactRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefCustomFieldChoiceSet: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + choices_count: + type: string + readOnly: true + required: + - choices_count + - display + - id + - name + - url + BriefCustomFieldChoiceSetRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDataFile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + path: + type: string + readOnly: true + description: File path relative to the data source's root + required: + - display + - id + - path + - url + BriefDataSource: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefDataSourceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefDevice: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - url + BriefDeviceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + nullable: true + maxLength: 64 + description: + type: string + maxLength: 200 + BriefDeviceRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefDeviceRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefDeviceType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefDeviceTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefFHRPGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - display + - group_id + - id + - protocol + - url + BriefFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + required: + - group_id + - protocol + BriefIKEPolicy: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIKEPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPAddress: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: object + properties: + value: + enum: + - 4 + - 6 + type: integer + description: '* `4` - IPv4 + + * `6` - IPv6' + x-spec-enum-id: d72003fd1af3603d + label: + type: string + enum: + - IPv4 + - IPv6 + readOnly: true + address: + type: string + description: + type: string + maxLength: 200 + required: + - address + - display + - family + - id + - url + BriefIPAddressRequest: + type: object + description: Adds support for custom fields and tags. + properties: + address: + type: string + minLength: 1 + description: + type: string + maxLength: 200 + required: + - address + BriefIPSecPolicy: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIPSecPolicyRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefIPSecProfile: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefIPSecProfileRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefInterface: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + BriefInterfaceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefInventoryItemRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + inventoryitem_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - inventoryitem_count + - name + - slug + - url + BriefInventoryItemRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefJob: + type: object + properties: + url: + type: string + format: uri + readOnly: true + status: + type: object + properties: + value: + enum: + - pending + - scheduled + - running + - completed + - errored + - failed + type: string + description: '* `pending` - Pending + + * `scheduled` - Scheduled + + * `running` - Running + + * `completed` - Completed + + * `errored` - Errored + + * `failed` - Failed' + x-spec-enum-id: e33887d83efcc138 + label: + type: string + enum: + - Pending + - Scheduled + - Running + - Completed + - Errored + - Failed + readOnly: true + created: + type: string + format: date-time + readOnly: true + completed: + type: string + format: date-time + nullable: true + user: + allOf: + - $ref: '#/components/schemas/BriefUser' + readOnly: true + required: + - created + - status + - url + - user + BriefJobRequest: + type: object + properties: + completed: + type: string + format: date-time + nullable: true + BriefL2VPN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + type: object + properties: + value: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + label: + type: string + enum: + - VPWS + - VPLS + - VXLAN + - VXLAN-EVPN + - MPLS EVPN + - PBB EVPN + - EPL + - EVPL + - Ethernet Private LAN + - Ethernet Virtual Private LAN + - Ethernet Private Tree + - Ethernet Virtual Private Tree + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefL2VPNRequest: + type: object + description: Adds support for custom fields and tags. + properties: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: + enum: + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree + type: string + description: '* `vpws` - VPWS + + * `vpls` - VPLS + + * `vxlan` - VXLAN + + * `vxlan-evpn` - VXLAN-EVPN + + * `mpls-evpn` - MPLS EVPN + + * `pbb-evpn` - PBB EVPN + + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefL2VPNTermination: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + l2vpn: + $ref: '#/components/schemas/BriefL2VPN' + required: + - display + - id + - l2vpn + - url + BriefL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + required: + - l2vpn + BriefLocation: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - rack_count + - slug + - url + BriefLocationRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefManufacturer: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + devicetype_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefModule: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + module_bay: + $ref: '#/components/schemas/NestedModuleBay' + required: + - device + - display + - id + - module_bay + - url + BriefModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + $ref: '#/components/schemas/NestedModuleBayRequest' + required: + - device + - module_bay + BriefModuleType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - url + BriefModuleTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + BriefPlatform: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefPowerPanel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - powerfeed_count + - url + BriefPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefPowerPort: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + device: + $ref: '#/components/schemas/BriefDevice' + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - device + - display + - id + - name + - url + BriefPowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - device + - name + BriefPowerPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefPowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefProvider: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the provider + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + circuit_count: + type: integer + format: int64 + readOnly: true + required: + - circuit_count + - display + - id + - name + - slug + - url + BriefProviderAccount: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + default: '' + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + - display + - id + - url + BriefProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - account + BriefProviderNetwork: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRIR: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + aggregate_count: type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/WritableWirelessLinkRequest' - required: true - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - patch: - operationId: wireless_wireless_links_partial_update - description: Patch a wireless link object. - parameters: - - in: path - name: id - schema: + format: int64 + readOnly: true + required: + - aggregate_count + - display + - id + - name + - slug + - url + BriefRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRack: + type: object + description: Adds support for custom fields and tags. + properties: + id: type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - requestBody: - content: - application/json: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' - multipart/form-data: - schema: - $ref: '#/components/schemas/PatchedWritableWirelessLinkRequest' - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '200': - content: - application/json: - schema: - $ref: '#/components/schemas/WirelessLink' - description: '' - delete: - operationId: wireless_wireless_links_destroy - description: Delete a wireless link object. - parameters: - - in: path - name: id - schema: + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + device_count: type: integer - description: A unique integer value identifying this wireless link. - required: true - tags: - - wireless - security: - - cookieAuth: [] - - tokenAuth: [] - responses: - '204': - description: No response body -components: - schemas: - ASN: + format: int64 + readOnly: true + required: + - display + - id + - name + - url + BriefRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefRackRole: type: object description: Adds support for custom fields and tags. properties: @@ -101604,60 +148375,376 @@ components: display: type: string readOnly: true - asn: + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + rack_count: type: integer - maximum: 4294967295 - minimum: 1 format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIR' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true + readOnly: true + required: + - display + - id + - name + - rack_count + - slug + - url + BriefRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 - comments: + required: + - name + - slug + BriefRackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: + format: uri + readOnly: true + display: type: string - format: date-time readOnly: true - nullable: true - last_updated: + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: type: string - format: date-time + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - manufacturer + - model + - slug + - url + BriefRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - manufacturer + - model + - slug + BriefRearPortTemplate: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer readOnly: true - nullable: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefRegion: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - site_count + - slug + - url + BriefRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefRole: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + prefix_count: type: integer format: int64 readOnly: true - provider_count: + vlan_count: type: integer format: int64 readOnly: true required: - - asn - - created - display - id - - last_updated - - provider_count + - name + - slug + - url + BriefRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSite: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + description: Full name of the site + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefSiteGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + site_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name - site_count + - slug - url - ASNRange: + BriefSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenant: type: object description: Adds support for custom fields and tags. properties: @@ -101678,60 +148765,519 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIR' - start: + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - slug + - url + BriefTenantGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: type: integer - maximum: 4294967295 + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant_count: + type: integer + readOnly: true + default: 0 + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - tenant_count + - url + BriefTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnel: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefTunnelGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tunnel_count: + type: integer + format: int64 + readOnly: true + required: + - display + - id + - name + - slug + - tunnel_count + - url + BriefTunnelGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + required: + - name + BriefUser: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + username: + type: string + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - display + - id + - url + - username + BriefUserRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + username: + type: string + minLength: 1 + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + required: + - username + BriefVLAN: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + vid: + type: integer + maximum: 4094 minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + - vid + BriefVLANGroup: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + vlan_count: + type: integer format: int64 - end: + readOnly: true + required: + - display + - id + - name + - slug + - url + BriefVLANGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + required: + - name + - slug + BriefVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + vid: type: integer - maximum: 4294967295 + maximum: 4094 minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + - vid + BriefVRF: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + description: + type: string + maxLength: 200 + prefix_count: + type: integer format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' + readOnly: true + required: + - display + - id + - name + - url + BriefVRFRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + rd: + type: string nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: + required: + - name + BriefVirtualChassis: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: type: string - format: date-time readOnly: true + name: + type: string + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDevice' nullable: true - last_updated: + description: + type: string + maxLength: 200 + member_count: + type: integer + readOnly: true + required: + - display + - id + - member_count + - name + - url + BriefVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + master: + allOf: + - $ref: '#/components/schemas/NestedDeviceRequest' + nullable: true + description: + type: string + maxLength: 200 + required: + - name + BriefVirtualMachine: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - display + - id + - name + - url + BriefVirtualMachineRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + description: + type: string + maxLength: 200 + required: + - name + BriefWirelessLANGroup: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: type: string - format: date-time + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + wirelesslan_count: + type: integer readOnly: true - nullable: true - asn_count: + default: 0 + _depth: type: integer readOnly: true + title: ' depth' required: - - asn_count - - created + - _depth - display - - end - id - - last_updated - name - - rir - slug - - start - url - ASNRangeRequest: + - wirelesslan_count + BriefWirelessLANGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: name: type: string @@ -101742,71 +149288,13 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - rir: - $ref: '#/components/schemas/RIRRequest' - start: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - end: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true description: type: string maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} required: - - end - name - - rir - slug - - start - ASNRequest: - type: object - description: Adds support for custom fields and tags. - properties: - asn: - type: integer - maximum: 4294967295 - minimum: 1 - format: int64 - description: 16- or 32-bit autonomous system number - rir: - allOf: - - $ref: '#/components/schemas/RIRRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - asn - Aggregate: + Cable: type: object description: Adds support for custom fields and tags. properties: @@ -101817,38 +149305,171 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - family: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' + type: string + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObject' + status: type: object properties: value: enum: - - 4 - - 6 - type: integer - description: '* `4` - IPv4 + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected - * `6` - IPv6' - x-spec-enum-id: d72003fd1af3603d + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d label: type: string enum: - - IPv4 - - IPv6 - readOnly: true - prefix: - type: string - rir: - $ref: '#/components/schemas/RIR' + - Connected + - Planned + - Decommissioning tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true - date_added: + label: type: string - format: date + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + type: object + properties: + value: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 + label: + type: string + enum: + - Kilometers + - Meters + - Centimeters + - Miles + - Feet + - Inches nullable: true description: type: string @@ -101875,28 +149496,150 @@ components: required: - created - display - - family - id - last_updated - - prefix - - rir - url - AggregateRequest: + CableRequest: type: object description: Adds support for custom fields and tags. properties: - prefix: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' type: string - minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - date_added: + label: type: string - format: date + maxLength: 100 + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 nullable: true description: type: string @@ -101910,81 +149653,94 @@ components: custom_fields: type: object additionalProperties: {} - required: - - prefix - - rir - AvailableASN: + CableTermination: type: object - description: Representation of an ASN which does not exist in the database. + description: Adds support for custom fields and tags. properties: - asn: + id: type: integer readOnly: true - description: + url: type: string - required: - - asn - AvailableIP: - type: object - description: Representation of an IP address which does not exist in the database. - properties: - family: - type: integer + format: uri readOnly: true - address: + display: type: string readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' - readOnly: true - nullable: true - description: + cable: + type: integer + cable_end: + enum: + - A + - B type: string - required: - - address - - family - - vrf - AvailablePrefix: - type: object - description: Representation of a prefix which does not exist in the database. - properties: - family: + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + termination: + nullable: true readOnly: true - prefix: + created: type: string + format: date-time readOnly: true - vrf: - allOf: - - $ref: '#/components/schemas/VRF' + nullable: true + last_updated: + type: string + format: date-time readOnly: true nullable: true required: - - family - - prefix - - vrf - AvailableVLAN: + - cable + - cable_end + - created + - display + - id + - last_updated + - termination + - termination_id + - termination_type + - url + CableTerminationRequest: type: object - description: Representation of a VLAN which does not exist in the database. + description: Adds support for custom fields and tags. properties: - vid: + cable: type: integer - readOnly: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroup' - readOnly: true - nullable: true + cable_end: + enum: + - A + - B + type: string + description: '* `A` - A + + * `B` - B' + x-spec-enum-id: 1db84f9b93b261c8 + title: End + termination_type: + type: string + termination_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 required: - - group - - vid - Bookmark: + - cable + - cable_end + - termination_id + - termination_type + Circuit: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: id: type: integer @@ -101993,57 +149749,136 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - object_type: + cid: type: string - object_id: + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProvider' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccount' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitType' + status: + type: object + properties: + value: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + label: + type: string + enum: + - Planned + - Provisioning + - Active + - Offline + - Deprovisioning + - Decommissioned + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: type: integer - maximum: 9223372036854775807 + maximum: 2147483647 minimum: 0 - format: int64 - object: nullable: true + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + termination_a: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' readOnly: true - user: - $ref: '#/components/schemas/User' + nullable: true + termination_z: + allOf: + - $ref: '#/components/schemas/CircuitCircuitTermination' + readOnly: true + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} created: type: string format: date-time readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_' required: + - cid - created - display - id - - object - - object_id - - object_type + - last_updated + - provider + - termination_a + - termination_z + - type - url - - user - BookmarkRequest: + CircuitCircuitTermination: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - user: - $ref: '#/components/schemas/UserRequest' - required: - - object_id - - object_type - - user - Cable: - type: object - description: Adds support for custom fields and tags. + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' properties: id: type: integer @@ -102052,30 +149887,93 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - label: + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetwork' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: type: string - maxLength: 100 + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 description: type: string maxLength: 200 required: - display - id + - provider_network + - site - url - CableRequest: + CircuitCircuitTerminationRequest: type: object - description: Adds support for custom fields and tags. + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' properties: - label: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + provider_network: + allOf: + - $ref: '#/components/schemas/BriefProviderNetworkRequest' + nullable: true + port_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Port speed (Kbps) + description: Physical circuit speed + upstream_speed: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Upstream speed (Kbps) + description: Upstream speed, if different from port speed + xconnect_id: type: string - maxLength: 100 + title: Cross-connect ID + description: ID of the local cross-connect + maxLength: 50 description: type: string maxLength: 200 - CableTermination: + required: + - provider_network + - site + CircuitGroup: type: object description: Adds support for custom fields and tags. properties: @@ -102086,31 +149984,34 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - cable: - type: integer - cable_end: - enum: - - A - - B + name: type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: + maxLength: 100 + slug: type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - termination: + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' nullable: true - readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} created: type: string format: date-time @@ -102121,48 +150022,22 @@ components: format: date-time readOnly: true nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true required: - - cable - - cable_end + - circuit_count - created - display - id - last_updated - - termination - - termination_id - - termination_type + - name + - slug - url - CableTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cable: - type: integer - cable_end: - enum: - - A - - B - type: string - description: '* `A` - A - - * `B` - B' - x-spec-enum-id: 1db84f9b93b261c8 - title: End - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - required: - - cable - - cable_end - - termination_id - - termination_type - Circuit: + CircuitGroupAssignment: type: object - description: Adds support for custom fields and tags. + description: Base serializer for group assignments under CircuitSerializer. properties: id: type: integer @@ -102171,22 +150046,126 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - cid: + group: + $ref: '#/components/schemas/BriefCircuitGroup' + circuit: + $ref: '#/components/schemas/BriefCircuit' + priority: + type: object + properties: + value: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + label: + type: string + enum: + - Primary + - Secondary + - Tertiary + - Inactive + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: type: string - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - description: + format: date-time + readOnly: true + nullable: true + last_updated: type: string - maxLength: 200 + format: date-time + readOnly: true + nullable: true required: - - cid + - circuit + - created - display + - group - id + - last_updated - url + CircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - circuit + - group + CircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug CircuitRequest: type: object description: Adds support for custom fields and tags. @@ -102197,11 +150176,76 @@ components: title: Circuit ID description: Unique circuit ID maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: + allOf: + - $ref: '#/components/schemas/BriefProviderAccountRequest' + nullable: true + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + install_date: + type: string + format: date + nullable: true + title: Installed + termination_date: + type: string + format: date + nullable: true + title: Terminates + commit_rate: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Commit rate (Kbps) + description: Committed rate description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid + - provider + - type CircuitTermination: type: object description: Adds support for custom fields and tags. @@ -102213,11 +150257,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true circuit: - $ref: '#/components/schemas/Circuit' + $ref: '#/components/schemas/BriefCircuit' term_side: enum: - A @@ -102230,11 +150278,11 @@ components: title: Termination site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true provider_network: allOf: - - $ref: '#/components/schemas/ProviderNetwork' + - $ref: '#/components/schemas/BriefProviderNetwork' nullable: true port_speed: type: integer @@ -102268,7 +150316,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -102282,6 +150330,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -102321,7 +150370,7 @@ components: description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/BriefCircuitRequest' term_side: enum: - A @@ -102334,11 +150383,11 @@ components: title: Termination site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true provider_network: allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' + - $ref: '#/components/schemas/BriefProviderNetworkRequest' nullable: true port_speed: type: integer @@ -102391,6 +150440,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102479,23 +150532,96 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterType' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroup' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Offline + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true virtualmachine_count: type: integer format: int64 readOnly: true required: + - created - display - id + - last_updated - name + - type - url ClusterGroup: type: object @@ -102508,6 +150634,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102585,11 +150715,53 @@ components: type: string minLength: 1 maxLength: 100 + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - type ClusterType: type: object description: Adds support for custom fields and tags. @@ -102601,6 +150773,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102684,6 +150860,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102752,14 +150932,14 @@ components: items: type: string data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -102863,7 +151043,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} required: - data @@ -102882,6 +151062,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -102891,10 +151075,51 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSource' + data_path: + type: string + readOnly: true + description: Path to remote file (relative to data source root) + data_file: + $ref: '#/components/schemas/BriefDataFile' + data_synced: + type: string + format: date-time + readOnly: true + nullable: true + title: Date synced + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created + - data_path + - data_synced - display - id + - last_updated - name + - template_code - url ConfigTemplateRequest: type: object @@ -102910,8 +151135,24 @@ components: description: type: string maxLength: 200 + environment_params: + nullable: true + title: Environment parameters + description: Any additional + parameters to pass when constructing the Jinja2 environment. + template_code: + type: string + minLength: 1 + description: Jinja2 template code. + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' required: - name + - template_code ConsolePort: type: object description: Adds support for custom fields and tags. @@ -102923,14 +151164,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103059,7 +151304,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103073,13 +151318,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103125,10 +151373,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103250,11 +151498,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103364,11 +151612,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103445,14 +151693,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -103581,7 +151833,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -103595,13 +151847,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -103647,10 +151902,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -103772,11 +152027,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -103886,11 +152141,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -103967,18 +152222,64 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroup' + nullable: true name: type: string maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name - url ContactAssignment: @@ -104007,10 +152308,10 @@ components: additionalProperties: {} readOnly: true contact: - $ref: '#/components/schemas/Contact' + $ref: '#/components/schemas/BriefContact' role: allOf: - - $ref: '#/components/schemas/ContactRole' + - $ref: '#/components/schemas/BriefContactRole' nullable: true priority: type: object @@ -104077,10 +152378,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -104120,6 +152421,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104206,13 +152511,43 @@ components: type: object description: Adds support for custom fields and tags. properties: + group: + allOf: + - $ref: '#/components/schemas/BriefContactGroupRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + title: + type: string + maxLength: 100 + phone: + type: string + maxLength: 50 + email: + type: string + format: email + maxLength: 254 + address: + type: string + maxLength: 200 + link: + type: string + format: uri + maxLength: 200 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name ContactRole: @@ -104226,6 +152561,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104239,9 +152578,28 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name - slug - url @@ -104261,6 +152619,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -104278,6 +152643,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104371,8 +152740,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104449,6 +152822,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104479,7 +152856,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSet' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSet' nullable: true comments: type: string @@ -104517,6 +152894,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104694,8 +153075,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -104745,6 +153130,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -104775,7 +153164,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -104797,6 +153186,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -104825,7 +153218,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104841,12 +153234,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -104933,7 +153326,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -104949,12 +153342,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -105012,12 +153405,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true source: allOf: - - $ref: '#/components/schemas/DataSource' + - $ref: '#/components/schemas/BriefDataSource' readOnly: true path: type: string @@ -105054,19 +153451,118 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + type: + type: object + properties: + value: + enum: + - local + - git + - amazon-s3 + description: '* `None` - --------- + + * `local` - Local + + * `git` - Git + + * `amazon-s3` - Amazon S3' + x-spec-enum-id: 570db3f2d4e98ccf + label: + type: string + enum: + - '---------' + - Local + - Git + - Amazon S3 + source_url: + type: string + title: URL + maxLength: 200 + enabled: + type: boolean + status: + type: object + properties: + value: + enum: + - new + - queued + - syncing + - completed + - failed + type: string + description: '* `new` - New + + * `queued` - Queued + + * `syncing` - Syncing + + * `completed` - Completed + + * `failed` - Failed' + x-spec-enum-id: 6dfb2220617590c8 + label: + type: string + enum: + - New + - Queued + - Syncing + - Completed + - Failed + readOnly: true description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + last_synced: + type: string + format: date-time + readOnly: true + nullable: true + file_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - file_count - id + - last_synced + - last_updated - name + - source_url + - status + - type - url DataSourceRequest: type: object @@ -105099,13 +153595,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -105124,6 +153620,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105132,16 +153632,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105154,14 +153654,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105210,8 +153710,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105289,28 +153789,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105330,7 +153830,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -105400,11 +153900,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' name: type: string maxLength: 64 @@ -105417,7 +153921,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true tags: type: array @@ -105449,7 +153953,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' name: type: string minLength: 1 @@ -105463,7 +153967,7 @@ components: maxLength: 200 installed_device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true tags: type: array @@ -105493,7 +153997,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' name: type: string description: '{module} is accepted as a substitution for the module bay @@ -105532,7 +154036,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' name: type: string minLength: 1 @@ -105549,17 +154053,6 @@ components: required: - device_type - name - DeviceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - description: - type: string - maxLength: 200 DeviceRole: type: object description: Adds support for custom fields and tags. @@ -105571,6 +154064,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105581,9 +154078,37 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplate' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 @@ -105593,8 +154118,10 @@ components: format: int64 readOnly: true required: + - created - display - id + - last_updated - name - slug - url @@ -105621,7 +154148,7 @@ components: description: Virtual machines may be assigned to this role config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true description: type: string @@ -105647,11 +154174,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatform' + nullable: true model: type: string maxLength: 100 @@ -105659,18 +154194,198 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + type: object + properties: + value: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + label: + type: string + enum: + - Parent + - Child + nullable: true + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + - Mixed + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + front_image: + type: string + format: uri + nullable: true + rear_image: + type: string + format: uri + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true device_count: type: integer format: int64 readOnly: true + console_port_template_count: + type: integer + readOnly: true + console_server_port_template_count: + type: integer + readOnly: true + power_port_template_count: + type: integer + readOnly: true + power_outlet_template_count: + type: integer + readOnly: true + interface_template_count: + type: integer + readOnly: true + front_port_template_count: + type: integer + readOnly: true + rear_port_template_count: + type: integer + readOnly: true + device_bay_template_count: + type: integer + readOnly: true + module_bay_template_count: + type: integer + readOnly: true + inventory_item_template_count: + type: integer + readOnly: true required: + - console_port_template_count + - console_server_port_template_count + - created + - device_bay_template_count - display + - front_port_template_count - id + - interface_template_count + - inventory_item_template_count + - last_updated - manufacturer - model + - module_bay_template_count + - power_outlet_template_count + - power_port_template_count + - rear_port_template_count - slug - url DeviceTypeRequest: @@ -105678,7 +154393,11 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true model: type: string minLength: 1 @@ -105688,9 +154407,104 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: + type: boolean + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' + type: string + description: '* `parent` - Parent + + * `child` - Child' + x-spec-enum-id: d10d91f690a856c2 + nullable: true + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -105706,6 +154520,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -105714,16 +154532,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' role: - $ref: '#/components/schemas/DeviceRole' + $ref: '#/components/schemas/BriefDeviceRole' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true serial: type: string @@ -105736,14 +154554,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/Site' + $ref: '#/components/schemas/BriefSite' location: allOf: - - $ref: '#/components/schemas/Location' + - $ref: '#/components/schemas/BriefLocation' nullable: true rack: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefRack' nullable: true position: type: number @@ -105792,8 +154610,8 @@ components: parent_device: allOf: - $ref: '#/components/schemas/NestedDevice' - readOnly: true nullable: true + readOnly: true status: type: object properties: @@ -105871,28 +154689,28 @@ components: - Mixed primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassis' + - $ref: '#/components/schemas/BriefVirtualChassis' nullable: true vc_position: type: integer @@ -105912,7 +154730,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true config_context: nullable: true @@ -105999,16 +154817,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -106021,14 +154839,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -106117,23 +154935,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -106153,7 +154971,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -106181,6 +154999,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106191,28 +155013,35 @@ components: name: type: string maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106224,16 +155053,20 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 label: type: string enum: - Webhook - Script + - Notification action_object_type: type: string action_object_id: @@ -106272,6 +155105,7 @@ components: - action_type - created - display + - event_types - id - last_updated - name @@ -106289,28 +155123,35 @@ components: type: string minLength: 1 maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -106319,11 +155160,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -106345,6 +155189,7 @@ components: required: - action_object_type - action_type + - event_types - name - object_types ExportTemplate: @@ -106361,6 +155206,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106390,14 +155239,14 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSource' + $ref: '#/components/schemas/BriefDataSource' data_path: type: string readOnly: true description: Path to remote file (relative to data source root) data_file: allOf: - - $ref: '#/components/schemas/DataFile' + - $ref: '#/components/schemas/BriefDataFile' readOnly: true data_synced: type: string @@ -106462,7 +155311,7 @@ components: type: boolean description: Download file as attachment data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' required: - name - object_types @@ -106474,10 +155323,17 @@ components: id: type: integer readOnly: true + name: + type: string + maxLength: 100 url: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106509,13 +155365,55 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ip_addresses: + type: array + items: + $ref: '#/components/schemas/BriefIPAddress' + readOnly: true required: + - created - display - group_id - id + - ip_addresses + - last_updated - protocol - url FHRPGroupAssignment: @@ -106533,7 +155431,7 @@ components: type: string readOnly: true group: - $ref: '#/components/schemas/FHRPGroup' + $ref: '#/components/schemas/BriefFHRPGroup' interface_type: type: string interface_id: @@ -106574,7 +155472,7 @@ components: description: Adds support for custom fields and tags. properties: group: - $ref: '#/components/schemas/FHRPGroupRequest' + $ref: '#/components/schemas/BriefFHRPGroupRequest' interface_type: type: string interface_id: @@ -106595,6 +155493,9 @@ components: type: object description: Adds support for custom fields and tags. properties: + name: + type: string + maxLength: 100 protocol: enum: - vrrp2 @@ -106623,9 +155524,33 @@ components: type: integer maximum: 32767 minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - group_id - protocol @@ -106640,14 +155565,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -106707,6 +155636,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -106801,8 +155738,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -106852,6 +155805,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -106873,7 +155834,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -106887,6 +155848,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -106935,6 +155897,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -106976,10 +155942,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -107037,6 +156003,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107131,8 +156105,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -107182,11 +156172,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -107248,6 +156238,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107342,8 +156340,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -107393,13 +156407,21 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplate' + $ref: '#/components/schemas/BriefRearPortTemplate' rear_port_position: type: integer maximum: 1024 @@ -107436,11 +156458,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -107500,6 +156522,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -107594,14 +156624,30 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -107614,6 +156660,22 @@ components: - name - rear_port - type + GenericObject: + type: object + description: Minimal representation of some generic object identified by ContentType + and PK. + properties: + object_type: + type: string + object_id: + type: integer + object: + nullable: true + readOnly: true + required: + - object + - object_id + - object_type GenericObjectRequest: type: object description: Minimal representation of some generic object identified by ContentType @@ -107640,6 +156702,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107693,6 +156759,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -107767,7 +156837,6 @@ components: - display - id - last_updated - - mode - name - url - version @@ -107817,7 +156886,6 @@ components: type: object additionalProperties: {} required: - - mode - name - version IKEProposal: @@ -107831,6 +156899,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108066,7 +157138,6 @@ components: readOnly: true nullable: true required: - - authentication_algorithm - authentication_method - created - display @@ -108238,7 +157309,6 @@ components: type: object additionalProperties: {} required: - - authentication_algorithm - authentication_method - encryption_algorithm - group @@ -108254,6 +157324,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108277,14 +157351,142 @@ components: readOnly: true address: type: string + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRF' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + - DHCP + - SLAAC + role: + type: object + properties: + value: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + label: + type: string + enum: + - Loopback + - Secondary + - Anycast + - VIP + - VRRP + - HSRP + - GLBP + - CARP + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + assigned_object: + nullable: true + readOnly: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddress' + nullable: true + nat_outside: + type: array + items: + $ref: '#/components/schemas/NestedIPAddress' + readOnly: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: - address + - assigned_object + - created - display - family - id + - last_updated + - nat_outside - url IPAddressRequest: type: object @@ -108293,9 +157495,90 @@ components: address: type: string minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + x-spec-enum-id: 24935cfee15bd268 + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' + type: string + description: '* `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + x-spec-enum-id: 10fbcb4930889b0f + assigned_object_type: + type: string + nullable: true + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + nat_inside: + allOf: + - $ref: '#/components/schemas/NestedIPAddressRequest' + nullable: true + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - address IPRange: @@ -108309,6 +157592,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108339,11 +157626,11 @@ components: readOnly: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true status: type: object @@ -108368,7 +157655,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true description: type: string @@ -108417,11 +157704,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -108437,7 +157724,7 @@ components: x-spec-enum-id: 6388dfb94ca1cc15 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -108468,6 +157755,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108724,6 +158015,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -108751,9 +158046,9 @@ components: - ESP - AH ike_policy: - $ref: '#/components/schemas/IKEPolicy' + $ref: '#/components/schemas/BriefIKEPolicy' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicy' + $ref: '#/components/schemas/BriefIPSecPolicy' comments: type: string tags: @@ -108804,9 +158099,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -108832,6 +158127,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -109071,12 +158370,10 @@ components: format: uri image_height: type: integer - maximum: 32767 - minimum: 0 + readOnly: true image_width: type: integer - maximum: 32767 - minimum: 0 + readOnly: true created: type: string format: date-time @@ -109119,18 +158416,8 @@ components: image: type: string format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: - type: integer - maximum: 32767 - minimum: 0 required: - image - - image_height - - image_width - object_id - object_type Interface: @@ -109144,18 +158431,22 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' vdcs: type: array items: $ref: '#/components/schemas/VirtualDeviceContext' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -109177,10 +158468,12 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -109230,7 +158523,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -109311,6 +158606,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -109319,6 +158616,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -109417,8 +158716,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -109544,7 +158847,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 56365107f9c2326f label: type: string enum: @@ -109556,10 +158859,12 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) - 10GBASE-CX4 (10GE) + - SFP (100ME) - GBIC (1GE) - SFP (1GE) - SFP+ (10GE) @@ -109609,7 +158914,9 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) + - IEEE 802.15.4 (LR-WPAN) - Other (Wireless) - GSM - CDMA @@ -110660,7 +159967,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array @@ -110671,7 +159978,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -110690,26 +159997,29 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true wireless_lans: type: array items: $ref: '#/components/schemas/WirelessLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -110766,14 +160076,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -110793,10 +160103,12 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -110846,7 +160158,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -110927,6 +160241,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -110935,6 +160251,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -111033,8 +160351,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -111160,7 +160482,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 56365107f9c2326f enabled: type: boolean parent: @@ -111897,7 +161219,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -111912,7 +161234,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -111944,11 +161266,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -111972,10 +161294,12 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -112025,7 +161349,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -112106,6 +161432,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112114,6 +161442,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -112212,8 +161542,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -112339,7 +161673,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 56365107f9c2326f label: type: string enum: @@ -112351,10 +161685,12 @@ components: - 100BASE-TX (10/100ME) - 100BASE-T1 (10/100ME Single Pair) - 1000BASE-T (1GE) + - 1000BASE-TX (1GE) - 2.5GBASE-T (2.5GE) - 5GBASE-T (5GE) - 10GBASE-T (10GE) - 10GBASE-CX4 (10GE) + - SFP (100ME) - GBIC (1GE) - SFP (1GE) - SFP+ (10GE) @@ -112404,7 +161740,9 @@ components: - IEEE 802.11ad - IEEE 802.11ax - IEEE 802.11ay + - IEEE 802.11be - IEEE 802.15.1 (Bluetooth) + - IEEE 802.15.4 (LR-WPAN) - Other (Wireless) - GSM - CDMA @@ -112588,11 +161926,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -112614,10 +161952,12 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -112667,7 +162007,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -112748,6 +162090,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -112756,6 +162100,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -112854,8 +162200,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -112981,7 +162331,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 56365107f9c2326f enabled: type: boolean mgmt_only: @@ -113059,11 +162409,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' parent: type: integer nullable: true @@ -113076,11 +162430,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113149,7 +162503,7 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' parent: type: integer nullable: true @@ -113163,11 +162517,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113218,6 +162572,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113314,7 +162672,7 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + $ref: '#/components/schemas/BriefDeviceType' parent: type: integer nullable: true @@ -113329,11 +162687,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRole' + - $ref: '#/components/schemas/BriefInventoryItemRole' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/Manufacturer' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true part_id: type: string @@ -113386,7 +162744,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' parent: type: integer nullable: true @@ -113402,11 +162760,11 @@ components: maxLength: 64 role: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' nullable: true manufacturer: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefManufacturerRequest' nullable: true part_id: type: string @@ -113437,6 +162795,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113510,7 +162872,7 @@ components: nullable: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true data: nullable: true @@ -113531,13 +162893,6 @@ components: - status - url - user - JobRequest: - type: object - properties: - completed: - type: string - format: date-time - nullable: true JournalEntry: type: object description: Adds support for custom fields and tags. @@ -113549,6 +162904,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113673,6 +163032,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113746,12 +163109,45 @@ components: - Ethernet Virtual Private LAN - Ethernet Private Tree - Ethernet Virtual Private Tree + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name - slug - url @@ -113813,9 +163209,30 @@ components: * `evp-tree` - Ethernet Virtual Private Tree' x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113830,23 +163247,75 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true l2vpn: - $ref: '#/components/schemas/L2VPN' + $ref: '#/components/schemas/BriefL2VPN' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + assigned_object: + nullable: true + readOnly: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - assigned_object + - assigned_object_id + - assigned_object_type + - created - display - id - l2vpn + - last_updated - url L2VPNTerminationRequest: type: object description: Adds support for custom fields and tags. properties: l2vpn: - $ref: '#/components/schemas/L2VPNRequest' + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - assigned_object_id + - assigned_object_type - l2vpn Location: type: object @@ -113859,6 +163328,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113869,23 +163342,90 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSite' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocation' + nullable: true + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true rack_count: type: integer readOnly: true default: 0 + device_count: + type: integer + readOnly: true + default: 0 _depth: type: integer readOnly: true title: ' depth' required: - _depth + - created - display - id + - last_updated - name - rack_count + - site - slug - url LocationRequest: @@ -113901,11 +163441,51 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + allOf: + - $ref: '#/components/schemas/NestedLocationRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site - slug Manufacturer: type: object @@ -113918,6 +163498,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -113931,14 +163515,43 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true devicetype_count: type: integer format: int64 readOnly: true + inventoryitem_count: + type: integer + format: int64 + readOnly: true + platform_count: + type: integer + format: int64 + readOnly: true required: + - created - display - id + - inventoryitem_count + - last_updated - name + - platform_count - slug - url ManufacturerRequest: @@ -113957,6 +163570,13 @@ components: description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -113971,18 +163591,91 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module_bay: $ref: '#/components/schemas/NestedModuleBay' + module_type: + $ref: '#/components/schemas/BriefModuleType' + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + label: + type: string + enum: + - Offline + - Active + - Planned + - Staged + - Failed + - Decommissioning + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - device - display - id + - last_updated - module_bay + - module_type - url ModuleBay: type: object @@ -113995,17 +163688,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' + module: + allOf: + - $ref: '#/components/schemas/BriefModule' + nullable: true name: type: string maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true label: type: string @@ -114043,61 +163744,23 @@ components: - last_updated - name - url - ModuleBayNestedModule: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - serial: - type: string - title: Serial number - maxLength: 50 - required: - - display - - id - - url - ModuleBayNestedModuleRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - serial: - type: string - title: Serial number - maxLength: 50 ModuleBayRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 installed_module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true label: type: string @@ -114138,7 +163801,13 @@ components: type: string readOnly: true device_type: - $ref: '#/components/schemas/DeviceType' + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay @@ -114167,7 +163836,6 @@ components: nullable: true required: - created - - device_type - display - id - last_updated @@ -114181,7 +163849,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -114200,19 +163874,63 @@ components: type: string maxLength: 200 required: - - device_type - name ModuleRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: $ref: '#/components/schemas/NestedModuleBayRequest' + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - device - module_bay + - module_type ModuleType: type: object description: Adds support for custom fields and tags. @@ -114224,20 +163942,119 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true manufacturer: - $ref: '#/components/schemas/Manufacturer' + $ref: '#/components/schemas/BriefManufacturer' model: type: string maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + label: + type: string + enum: + - Front to rear + - Rear to front + - Left to right + - Right to left + - Side to rear + - Passive + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - manufacturer - model - url @@ -114246,14 +164063,75 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 maxLength: 100 + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - manufacturer - model @@ -114274,6 +164152,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114334,6 +164216,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114376,6 +164262,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114387,6 +164277,56 @@ components: - id - name - url + NestedIPAddress: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + family: + type: integer + readOnly: true + address: + type: string + required: + - address + - display + - family + - id + - url + NestedIPAddressRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + address: + type: string + minLength: 1 + required: + - address NestedInterface: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114404,6 +164344,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114495,6 +164439,70 @@ components: maxLength: 64 required: - name + NestedLocation: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + NestedLocationRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug NestedModuleBay: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114512,13 +164520,13 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModule' - nullable: true name: type: string maxLength: 64 @@ -114537,16 +164545,48 @@ components: subclassed to return a full representation of the related object on read.' properties: - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleBayNestedModuleRequest' - nullable: true name: type: string minLength: 1 maxLength: 64 required: - name + NestedProviderAccount: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + account: + type: string + title: Account ID + maxLength: 100 + required: + - account + - display + - id + - url NestedRegion: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114564,6 +164604,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114607,7 +164651,71 @@ components: required: - name - slug - NestedSiteGroup: + NestedSiteGroup: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url + NestedSiteGroupRequest: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + required: + - name + - slug + NestedTag: type: object description: 'Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a @@ -114624,63 +164732,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - _depth: - type: integer - readOnly: true - title: ' depth' - required: - - _depth - - display - - id - - name - - slug - - url - NestedSiteGroupRequest: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - required: - - name - - slug - NestedTag: - type: object - description: 'Represents an object related through a ForeignKey field. On write, - it accepts a primary key (PK) value or a - - dictionary of attributes which can be used to uniquely identify the related - object. This class should be - - subclassed to return a full representation of the related object on read.' - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -114748,6 +164800,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114808,6 +164864,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114839,6 +164899,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114888,6 +164952,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114915,6 +164983,48 @@ components: maxLength: 64 required: - name + NestedWirelessLANGroup: + type: object + description: 'Represents an object related through a ForeignKey field. On write, + it accepts a primary key (PK) value or a + + dictionary of attributes which can be used to uniquely identify the related + object. This class should be + + subclassed to return a full representation of the related object on read.' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + _depth: + type: integer + readOnly: true + title: ' depth' + required: + - _depth + - display + - id + - name + - slug + - url NestedWirelessLANGroupRequest: type: object description: 'Represents an object related through a ForeignKey field. On write, @@ -114954,6 +165064,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114977,6 +165091,192 @@ components: ssid: type: string maxLength: 32 + Notification: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - created + - display + - event_type + - id + - object + - object_id + - object_type + - url + - user + NotificationGroup: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + display_url: + type: string + format: uri + readOnly: true + name: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + $ref: '#/components/schemas/Group' + users: + type: array + items: + $ref: '#/components/schemas/User' + required: + - display + - id + - name + - url + NotificationGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + required: + - name + NotificationRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + required: + - event_type + - object_id + - object_type + - user ObjectChange: type: object properties: @@ -114987,6 +165287,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -114996,7 +165300,7 @@ components: readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true user_name: type: string @@ -115041,11 +165345,9 @@ components: prechange_data: readOnly: true nullable: true - title: Pre-change data postchange_data: readOnly: true nullable: true - title: Post-change data required: - action - changed_object @@ -115074,6 +165376,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -115321,6 +165627,52 @@ components: type: array items: $ref: '#/components/schemas/CableTermination' + PaginatedCircuitGroupAssignmentList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CircuitGroupAssignment' + PaginatedCircuitGroupList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/CircuitGroup' PaginatedCircuitList: type: object required: @@ -116609,6 +166961,52 @@ components: type: array items: $ref: '#/components/schemas/ModuleType' + PaginatedNotificationGroupList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/NotificationGroup' + PaginatedNotificationList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/Notification' PaginatedObjectChangeList: type: object required: @@ -117023,6 +167421,29 @@ components: type: array items: $ref: '#/components/schemas/RackRole' + PaginatedRackTypeList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/RackType' PaginatedRackUnitList: type: object required: @@ -117299,6 +167720,29 @@ components: type: array items: $ref: '#/components/schemas/Site' + PaginatedSubscriptionList: + type: object + required: + - count + - results + properties: + count: + type: integer + example: 123 + next: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=400&limit=100 + previous: + type: string + nullable: true + format: uri + example: http://api.example.org/accounts/?offset=200&limit=100 + results: + type: array + items: + $ref: '#/components/schemas/Subscription' PaginatedTagList: type: object required: @@ -117773,7 +168217,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' start: type: integer maximum: 4294967295 @@ -117786,7 +168230,7 @@ components: format: int64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117810,11 +168254,11 @@ components: description: 16- or 32-bit autonomous system number rir: allOf: - - $ref: '#/components/schemas/RIRRequest' + - $ref: '#/components/schemas/BriefRIRRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -117843,7 +168287,7 @@ components: minimum: 0 format: int64 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' PatchedCableTerminationRequest: type: object description: Adds support for custom fields and tags. @@ -117867,12 +168311,39 @@ components: maximum: 9223372036854775807 minimum: 0 format: int64 + PatchedCircuitGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} PatchedCircuitTerminationRequest: type: object description: Adds support for custom fields and tags. properties: circuit: - $ref: '#/components/schemas/CircuitRequest' + $ref: '#/components/schemas/BriefCircuitRequest' term_side: enum: - A @@ -117885,11 +168356,11 @@ components: title: Termination site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true provider_network: allOf: - - $ref: '#/components/schemas/ProviderNetworkRequest' + - $ref: '#/components/schemas/BriefProviderNetworkRequest' nullable: true port_speed: type: integer @@ -118075,7 +168546,7 @@ components: type: string minLength: 1 data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' data: {} PatchedConfigTemplateRequest: type: object @@ -118101,7 +168572,7 @@ components: minLength: 1 description: Jinja2 template code. data_source: - $ref: '#/components/schemas/DataSourceRequest' + $ref: '#/components/schemas/BriefDataSourceRequest' tags: type: array items: @@ -118112,7 +168583,7 @@ components: properties: group: allOf: - - $ref: '#/components/schemas/ContactGroupRequest' + - $ref: '#/components/schemas/BriefContactGroupRequest' nullable: true name: type: string @@ -118205,7 +168676,7 @@ components: maxLength: 50 button_class: enum: - - outline-dark + - default - blue - indigo - purple @@ -118221,12 +168692,12 @@ components: - white - ghost-dark type: string - x-spec-enum-id: 9378cdf56abee54a + x-spec-enum-id: ee8e5bb1ccdcdb19 description: 'The class of the first link in a group will be used for the dropdown button - * `outline-dark` - Default + * `default` - Default * `blue` - Blue @@ -118267,23 +168738,986 @@ components: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' + device: + $ref: '#/components/schemas/BriefDeviceRequest' + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + description: + type: string + maxLength: 200 + installed_device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedDeviceBayTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + description: + type: string + maxLength: 200 + PatchedDeviceRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + vm_role: + type: boolean + description: Virtual machines may be assigned to this role + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedExportTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + template_code: + type: string + minLength: 1 + description: Jinja2 template code. The list of objects being exported is + passed as a context variable named queryset. + mime_type: + type: string + description: Defaults to text/plain; charset=utf-8 + maxLength: 50 + file_extension: + type: string + description: Extension to append to the rendered filename + maxLength: 15 + as_attachment: + type: boolean + description: Download file as attachment + data_source: + $ref: '#/components/schemas/BriefDataSourceRequest' + PatchedFHRPGroupAssignmentRequest: + type: object + description: Adds support for custom fields and tags. + properties: + group: + $ref: '#/components/schemas/BriefFHRPGroupRequest' + interface_type: + type: string + interface_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + priority: + type: integer + maximum: 255 + minimum: 0 + PatchedFHRPGroupRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + maxLength: 100 + protocol: + enum: + - vrrp2 + - vrrp3 + - carp + - clusterxl + - hsrp + - glbp + - other + type: string + description: '* `vrrp2` - VRRPv2 + + * `vrrp3` - VRRPv3 + + * `carp` - CARP + + * `clusterxl` - ClusterXL + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `other` - Other' + x-spec-enum-id: 40dc831c689b4b78 + group_id: + type: integer + maximum: 32767 + minimum: 0 + auth_type: + enum: + - plaintext + - md5 + - '' + type: string + description: '* `plaintext` - Plaintext + + * `md5` - MD5' + x-spec-enum-id: 12b9faea3a45bf37 + title: Authentication type + auth_key: + type: string + title: Authentication key + maxLength: 255 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 150 + description: + type: string + maxLength: 200 + permissions: + type: array + items: + type: integer + PatchedImageAttachmentRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + name: + type: string + maxLength: 50 + image: + type: string + format: binary + PatchedInventoryItemRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this item + maxLength: 50 + discovered: + type: boolean + description: This item was automatically discovered + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedInventoryItemRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedInventoryItemTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + parent: + type: integer + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + role: + allOf: + - $ref: '#/components/schemas/BriefInventoryItemRoleRequest' + nullable: true + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + part_id: + type: string + description: Manufacturer-assigned part identifier + maxLength: 50 + description: + type: string + maxLength: 200 + component_type: + type: string + nullable: true + component_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + PatchedL2VPNTerminationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + l2vpn: + $ref: '#/components/schemas/BriefL2VPNRequest' + assigned_object_type: + type: string + assigned_object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedManufacturerRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedModuleBayRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + installed_module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + label: + type: string + description: Physical label + maxLength: 64 + position: + type: string + description: Identifier to reference when renaming installed components + maxLength: 30 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedModuleBayTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + position: + type: string + description: Identifier to reference when renaming installed components + maxLength: 30 + description: + type: string + maxLength: 200 + PatchedNotificationGroupRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedNotificationRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + read: + type: string + format: date-time + nullable: true + event_type: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + title: Event + PatchedObjectPermissionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + enabled: + type: boolean + object_types: + type: array + items: + type: string + actions: + type: array + items: + type: string + minLength: 1 + maxLength: 30 + description: The list of actions granted by this permission + constraints: + nullable: true + description: Queryset filter matching the applicable objects of the selected + type(s) + groups: + type: array + items: + type: integer + users: + type: array + items: + type: integer + PatchedPlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedPowerPanelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderAccountRequest: + type: object + description: Adds support for custom fields and tags. + properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' + name: + type: string + default: '' + maxLength: 100 + account: + type: string + minLength: 1 + title: Account ID + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderNetworkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' + name: + type: string + minLength: 1 + maxLength: 100 + service_id: + type: string + maxLength: 100 + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedProviderRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the provider + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackReservationRequest: + type: object + description: Adds support for custom fields and tags. + properties: + rack: + $ref: '#/components/schemas/BriefRackRequest' + units: + type: array + items: + type: integer + maximum: 32767 + minimum: 0 + user: + $ref: '#/components/schemas/BriefUserRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + minLength: 1 + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRackRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRoleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedRouteTargetRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Route target value (formatted in accordance with RFC 4360) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedSavedFilterRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_types: + type: array + items: + type: string + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + user: + type: integer + nullable: true + weight: + type: integer + maximum: 32767 + minimum: 0 + enabled: + type: boolean + shared: + type: boolean + parameters: {} + PatchedScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + PatchedSubscriptionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + PatchedTagRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + pattern: ^[-\w]+$ + maxLength: 100 + color: + type: string + minLength: 1 + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + description: + type: string + maxLength: 200 + object_types: + type: array + items: + type: string + PatchedTenantRequest: + type: object + description: Adds support for custom fields and tags. + properties: name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 100 + slug: type: string - description: Physical label - maxLength: 64 + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 - installed_device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true + comments: + type: string tags: type: array items: @@ -118291,29 +169725,34 @@ components: custom_fields: type: object additionalProperties: {} - PatchedDeviceBayTemplateRequest: + PatchedTokenRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - name: + user: + $ref: '#/components/schemas/BriefUserRequest' + expires: type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + format: date-time + nullable: true + last_used: type: string - description: Physical label - maxLength: 64 + format: date-time + nullable: true + key: + type: string + maxLength: 40 + minLength: 40 + write_enabled: + type: boolean + description: Permit create/update/delete operations using this key description: type: string maxLength: 200 - PatchedDeviceRoleRequest: + PatchedTunnelGroupRequest: type: object description: Adds support for custom fields and tags. properties: @@ -118326,18 +169765,6 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - color: - type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - vm_role: - type: boolean - description: Virtual machines may be assigned to this role - config_template: - allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true description: type: string maxLength: 200 @@ -118348,114 +169775,82 @@ components: custom_fields: type: object additionalProperties: {} - PatchedExportTemplateRequest: + PatchedUserRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - object_types: - type: array - items: - type: string - name: + username: type: string minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - template_code: + description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ + only. + pattern: ^[\w.@+-]+$ + maxLength: 150 + password: type: string + writeOnly: true minLength: 1 - description: Jinja2 template code. The list of objects being exported is - passed as a context variable named queryset. - mime_type: + maxLength: 128 + first_name: type: string - description: Defaults to text/plain; charset=utf-8 - maxLength: 50 - file_extension: + maxLength: 150 + last_name: type: string - description: Extension to append to the rendered filename - maxLength: 15 - as_attachment: + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: type: boolean - description: Download file as attachment - data_source: - $ref: '#/components/schemas/DataSourceRequest' - PatchedFHRPGroupAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - group: - $ref: '#/components/schemas/FHRPGroupRequest' - interface_type: + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: type: string - interface_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - priority: - type: integer - maximum: 255 - minimum: 0 - PatchedFHRPGroupRequest: + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer + PatchedVLANGroupRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string + minLength: 1 maxLength: 100 - protocol: - enum: - - vrrp2 - - vrrp3 - - carp - - clusterxl - - hsrp - - glbp - - other - type: string - description: '* `vrrp2` - VRRPv2 - - * `vrrp3` - VRRPv3 - - * `carp` - CARP - - * `clusterxl` - ClusterXL - - * `hsrp` - HSRP - - * `glbp` - GLBP - - * `other` - Other' - x-spec-enum-id: 40dc831c689b4b78 - group_id: - type: integer - maximum: 32767 - minimum: 0 - auth_type: - enum: - - plaintext - - md5 - - '' + slug: type: string - description: '* `plaintext` - Plaintext - - * `md5` - MD5' - x-spec-enum-id: 12b9faea3a45bf37 - title: Authentication type - auth_key: + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + scope_type: type: string - title: Authentication key - maxLength: 255 + nullable: true + scope_id: + type: integer + nullable: true description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -118463,105 +169858,172 @@ components: custom_fields: type: object additionalProperties: {} - PatchedGroupRequest: + PatchedVRFRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 150 + maxLength: 100 + rd: + type: string + nullable: true + title: Route distinguisher + description: Unique route distinguisher (as defined in RFC 4364) + maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 - permissions: + comments: + type: string + import_targets: type: array items: type: integer - PatchedImageAttachmentRequest: + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedVirtualDiskRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 + virtual_machine: + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string - maxLength: 50 - image: + minLength: 1 + maxLength: 64 + description: type: string - format: binary - image_height: - type: integer - maximum: 32767 - minimum: 0 - image_width: + maxLength: 200 + size: type: integer - maximum: 32767 + maximum: 2147483647 minimum: 0 - PatchedInventoryItemRequest: + title: Size (MB) + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWebhookRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - parent: - type: integer - nullable: true name: type: string minLength: 1 - maxLength: 64 - label: + maxLength: 150 + description: + type: string + maxLength: 200 + payload_url: + type: string + minLength: 1 + title: URL + description: This URL will be called using the HTTP method defined when + the webhook is called. Jinja2 template processing is supported with the + same context as the request body. + maxLength: 500 + http_method: + enum: + - GET + - POST + - PUT + - PATCH + - DELETE + type: string + description: '* `GET` - GET + + * `POST` - POST + + * `PUT` - PUT + + * `PATCH` - PATCH + + * `DELETE` - DELETE' + x-spec-enum-id: a12018571a034921 + http_content_type: + type: string + minLength: 1 + description: The complete list of official content types is available here. + maxLength: 100 + additional_headers: + type: string + description: 'User-supplied HTTP headers to be sent with the request in + addition to the HTTP content type. Headers should be defined in the format + Name: Value. Jinja2 template processing is supported with + the same context as the request body (below).' + body_template: + type: string + description: 'Jinja2 template for a custom request body. If blank, a JSON + object representing the change will be included. Available context data + includes: event, model, timestamp, + username, request_id, and data.' + secret: + type: string + description: When provided, the request will include a X-Hook-Signature + header containing a HMAC hex digest of the payload body using the secret + as the key. The secret is not transmitted in the request. + maxLength: 255 + ssl_verification: + type: boolean + description: Enable SSL certificate verification. Disable with caution! + ca_file_path: type: string - description: Physical label - maxLength: 64 - role: - allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' nullable: true - manufacturer: + description: The specific CA certificate file to use for SSL verification. + Leave blank to use the system defaults. + maxLength: 4096 + custom_fields: + type: object + additionalProperties: {} + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableAggregateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + rir: + $ref: '#/components/schemas/BriefRIRRequest' + tenant: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: + date_added: type: string + format: date nullable: true - description: A unique tag used to identify this item - maxLength: 50 - discovered: - type: boolean - description: This item was automatically discovered description: type: string maxLength: 200 - component_type: + comments: type: string - nullable: true - component_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true tags: type: array items: @@ -118569,27 +170031,152 @@ components: custom_fields: type: object additionalProperties: {} - PatchedInventoryItemRoleRequest: + PatchedWritableCableRequest: type: object description: Adds support for custom fields and tags. properties: - name: + type: + enum: + - cat3 + - cat5 + - cat5e + - cat6 + - cat6a + - cat7 + - cat7a + - cat8 + - dac-active + - dac-passive + - mrj21-trunk + - coaxial + - mmf + - mmf-om1 + - mmf-om2 + - mmf-om3 + - mmf-om4 + - mmf-om5 + - smf + - smf-os1 + - smf-os2 + - aoc + - usb + - power + - '' type: string - minLength: 1 - maxLength: 100 - slug: + description: '* `cat3` - CAT3 + + * `cat5` - CAT5 + + * `cat5e` - CAT5e + + * `cat6` - CAT6 + + * `cat6a` - CAT6a + + * `cat7` - CAT7 + + * `cat7a` - CAT7a + + * `cat8` - CAT8 + + * `dac-active` - Direct Attach Copper (Active) + + * `dac-passive` - Direct Attach Copper (Passive) + + * `mrj21-trunk` - MRJ21 Trunk + + * `coaxial` - Coaxial + + * `mmf` - Multimode Fiber + + * `mmf-om1` - Multimode Fiber (OM1) + + * `mmf-om2` - Multimode Fiber (OM2) + + * `mmf-om3` - Multimode Fiber (OM3) + + * `mmf-om4` - Multimode Fiber (OM4) + + * `mmf-om5` - Multimode Fiber (OM5) + + * `smf` - Singlemode Fiber + + * `smf-os1` - Singlemode Fiber (OS1) + + * `smf-os2` - Singlemode Fiber (OS2) + + * `aoc` - Active Optical Cabling (AOC) + + * `usb` - USB + + * `power` - Power' + x-spec-enum-id: 7b11d524b2b1a7ef + a_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + b_terminations: + type: array + items: + $ref: '#/components/schemas/GenericObjectRequest' + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + label: type: string - minLength: 1 maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ color: type: string - minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 + length: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + length_unit: + enum: + - km + - m + - cm + - mi + - ft + - in + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `cm` - Centimeters + + * `mi` - Miles + + * `ft` - Feet + + * `in` - Inches' + x-spec-enum-id: e64ce3a2c5997172 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -118597,65 +170184,99 @@ components: custom_fields: type: object additionalProperties: {} - PatchedInventoryItemTemplateRequest: + PatchedWritableCircuitGroupAssignmentRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + PatchedWritableCircuitRequest: + type: object + description: Adds support for custom fields and tags. properties: - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - parent: - type: integer - nullable: true - name: + cid: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - role: + title: Circuit ID + description: Unique circuit ID + maxLength: 100 + provider: + $ref: '#/components/schemas/BriefProviderRequest' + provider_account: allOf: - - $ref: '#/components/schemas/InventoryItemRoleRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true - manufacturer: + type: + $ref: '#/components/schemas/BriefCircuitTypeRequest' + status: + enum: + - planned + - provisioning + - active + - offline + - deprovisioning + - decommissioned + type: string + description: '* `planned` - Planned + + * `provisioning` - Provisioning + + * `active` - Active + + * `offline` - Offline + + * `deprovisioning` - Deprovisioning + + * `decommissioned` - Decommissioned' + x-spec-enum-id: 63c838134a022200 + tenant: allOf: - - $ref: '#/components/schemas/ManufacturerRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - part_id: - type: string - description: Manufacturer-assigned part identifier - maxLength: 50 - description: + install_date: type: string - maxLength: 200 - component_type: + format: date + nullable: true + title: Installed + termination_date: type: string + format: date nullable: true - component_id: + title: Terminates + commit_rate: type: integer - maximum: 9223372036854775807 + maximum: 2147483647 minimum: 0 - format: int64 nullable: true - PatchedL2VPNTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - l2vpn: - $ref: '#/components/schemas/L2VPNRequest' - assigned_object_type: + title: Commit rate (Kbps) + description: Committed rate + description: + type: string + maxLength: 200 + comments: type: string - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 tags: type: array items: @@ -118663,7 +170284,11 @@ components: custom_fields: type: object additionalProperties: {} - PatchedManufacturerRequest: + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' + PatchedWritableClusterRequest: type: object description: Adds support for custom fields and tags. properties: @@ -118671,14 +170296,43 @@ components: type: string minLength: 1 maxLength: 100 - slug: + type: + $ref: '#/components/schemas/BriefClusterTypeRequest' + group: + allOf: + - $ref: '#/components/schemas/BriefClusterGroupRequest' + nullable: true + status: + enum: + - planned + - staging + - active + - decommissioning + - offline type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `offline` - Offline' + x-spec-enum-id: 79d20a734d0eecbb + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -118686,31 +170340,115 @@ components: custom_fields: type: object additionalProperties: {} - PatchedModuleBayRequest: + PatchedWritableConsolePortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 maxLength: 64 - installed_module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true label: type: string description: Physical label maxLength: 64 - position: + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' type: string - description: Identifier to reference when renaming installed components - maxLength: 30 + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 description: type: string maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -118718,7 +170456,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedModuleBayTemplateRequest: + PatchedWritableConsolePortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -118726,7 +170464,13 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 @@ -118737,76 +170481,284 @@ components: type: string description: Physical label maxLength: 64 - position: + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' type: string - description: Identifier to reference when renaming installed components - maxLength: 30 + description: '* `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a description: type: string maxLength: 200 - PatchedObjectPermissionRequest: + PatchedWritableConsoleServerPortRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 - maxLength: 100 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + x-spec-enum-id: c5f7197b7211818a + description: 'Physical port type + + + * `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + speed: + enum: + - 1200 + - 2400 + - 4800 + - 9600 + - 19200 + - 38400 + - 57600 + - 115200 + type: integer + x-spec-enum-id: ab6d9635c131a378 + nullable: true + description: 'Port speed in bits per second + + + * `1200` - 1200 bps + + * `2400` - 2400 bps + + * `4800` - 4800 bps + + * `9600` - 9600 bps + + * `19200` - 19.2 kbps + + * `38400` - 38.4 kbps + + * `57600` - 57.6 kbps + + * `115200` - 115.2 kbps' + minimum: 0 + maximum: 2147483647 description: type: string maxLength: 200 - enabled: + mark_connected: type: boolean - object_types: - type: array - items: - type: string - actions: + description: Treat as if a cable is connected + tags: type: array items: - type: string - minLength: 1 - maxLength: 30 - description: The list of actions granted by this permission - constraints: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableConsoleServerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true - description: Queryset filter matching the applicable objects of the selected - type(s) - groups: - type: array - items: - type: integer - users: - type: array - items: - type: integer - PatchedPlatformRequest: + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - de-9 + - db-25 + - rj-11 + - rj-12 + - rj-45 + - mini-din-8 + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + - '' + type: string + description: '* `de-9` - DE-9 + + * `db-25` - DB-25 + + * `rj-11` - RJ-11 + + * `rj-12` - RJ-12 + + * `rj-45` - RJ-45 + + * `mini-din-8` - Mini-DIN 8 + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5f7197b7211818a + description: + type: string + maxLength: 200 + PatchedWritableContactAssignmentRequest: type: object description: Adds support for custom fields and tags. properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: + object_type: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - manufacturer: - allOf: - - $ref: '#/components/schemas/ManufacturerRequest' - nullable: true - config_template: + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + contact: + $ref: '#/components/schemas/BriefContactRequest' + role: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true - description: + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' type: string - maxLength: 200 + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 tags: type: array items: @@ -118814,25 +170766,25 @@ components: custom_fields: type: object additionalProperties: {} - PatchedPowerPanelRequest: + PatchedWritableContactGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: - site: - $ref: '#/components/schemas/SiteRequest' - location: - allOf: - - $ref: '#/components/schemas/LocationRequest' - nullable: true name: type: string minLength: 1 maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -118840,97 +170792,272 @@ components: custom_fields: type: object additionalProperties: {} - PatchedProviderAccountRequest: + PatchedWritableCustomFieldChoiceSetRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - provider: - $ref: '#/components/schemas/ProviderRequest' name: - type: string - default: '' - maxLength: 100 - account: type: string minLength: 1 - title: Account ID maxLength: 100 description: type: string maxLength: 200 - comments: + base_choices: + enum: + - IATA + - ISO_3166 + - UN_LOCODE + - '' type: string - tags: + x-spec-enum-id: cf0efb5195f85007 + description: 'Base set of predefined choices (optional) + + + * `IATA` - IATA (Airport codes) + + * `ISO_3166` - ISO 3166 (Country codes) + + * `UN_LOCODE` - UN/LOCODE (Location codes)' + extra_choices: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderNetworkRequest: + type: array + items: {} + maxItems: 2 + minItems: 2 + order_alphabetically: + type: boolean + description: Choices are automatically ordered alphabetically + PatchedWritableCustomFieldRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - provider: - $ref: '#/components/schemas/ProviderRequest' + object_types: + type: array + items: + type: string + type: + enum: + - text + - longtext + - integer + - decimal + - boolean + - date + - datetime + - url + - json + - select + - multiselect + - object + - multiobject + type: string + x-spec-enum-id: 22e3a64138d10046 + description: 'The type of data this custom field holds + + + * `text` - Text + + * `longtext` - Text (long) + + * `integer` - Integer + + * `decimal` - Decimal + + * `boolean` - Boolean (true/false) + + * `date` - Date + + * `datetime` - Date & time + + * `url` - URL + + * `json` - JSON + + * `select` - Selection + + * `multiselect` - Multiple selection + + * `object` - Object + + * `multiobject` - Multiple objects' + related_object_type: + type: string + nullable: true name: type: string minLength: 1 - maxLength: 100 - service_id: + description: Internal field name + pattern: ^[a-z0-9_]+$ + maxLength: 50 + label: type: string - maxLength: 100 + description: Name of the field as displayed to users (if not provided, 'the + field's name will be used) + maxLength: 50 + group_name: + type: string + description: Custom fields within the same group will be displayed together + maxLength: 50 description: type: string maxLength: 200 + required: + type: boolean + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object + search_weight: + type: integer + maximum: 32767 + minimum: 0 + description: Weighting for search. Lower values are considered more important. + Fields with a search weight of zero will be ignored. + filter_logic: + enum: + - disabled + - loose + - exact + type: string + x-spec-enum-id: a958350ae21c10ee + description: 'Loose matches any instance of a given string; exact matches + the entire field. + + + * `disabled` - Disabled + + * `loose` - Loose + + * `exact` - Exact' + ui_visible: + enum: + - always + - if-set + - hidden + type: string + x-spec-enum-id: cd2cf94af56de747 + description: 'Specifies whether the custom field is displayed in the UI + + + * `always` - Always + + * `if-set` - If set + + * `hidden` - Hidden' + ui_editable: + enum: + - 'yes' + - 'no' + - hidden + type: string + x-spec-enum-id: 1065673147e26bb5 + description: 'Specifies whether the custom field value can be edited in + the UI + + + * `yes` - Yes + + * `no` - No + + * `hidden` - Hidden' + is_cloneable: + type: boolean + description: Replicate this value when cloning objects + default: + nullable: true + description: Default value for the field (must be a JSON value). Encapsulate + strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). + weight: + type: integer + maximum: 32767 + minimum: 0 + title: Display weight + description: Fields with higher weights appear lower in a form. + validation_minimum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Minimum value + description: Minimum allowed value (for numeric fields) + validation_maximum: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + title: Maximum value + description: Maximum allowed value (for numeric fields) + validation_regex: + type: string + description: Regular expression to enforce on text field values. Use ^ and + $ to force matching of entire string. For example, ^[A-Z]{3}$ + will limit values to exactly three uppercase letters. + maxLength: 500 + choice_set: + allOf: + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' + nullable: true comments: type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedProviderRequest: + PatchedWritableDataSourceRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - description: Full name of the provider maxLength: 100 - slug: + type: type: string minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - accounts: - type: array - items: - type: integer + maxLength: 50 + source_url: + type: string + minLength: 1 + title: URL + maxLength: 200 + enabled: + type: boolean description: type: string maxLength: 200 + parameters: + nullable: true + ignore_rules: + type: string + description: Patterns (one per line) matching files to ignore when syncing comments: type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' custom_fields: type: object additionalProperties: {} - PatchedRIRRequest: + PatchedWritableDeviceTypeRequest: type: object description: Adds support for custom fields and tags. properties: - name: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + default_platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + model: type: string minLength: 1 maxLength: 100 @@ -118939,41 +171066,96 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ - is_private: + part_number: + type: string + description: Discrete part number (optional) + maxLength: 50 + u_height: + type: number + format: double + maximum: 1000 + minimum: 0 + exclusiveMaximum: true + default: 1.0 + title: Position (U) + exclude_from_utilization: type: boolean - title: Private - description: IP space managed by this RIR is considered private - description: + description: Devices of this type are excluded when calculating rack utilization. + is_full_depth: + type: boolean + description: Device consumes both front and rear rack faces. + subdevice_role: + enum: + - parent + - child + - '' type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRackReservationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - rack: - $ref: '#/components/schemas/RackRequest' - units: - type: array - items: - type: integer - maximum: 32767 - minimum: 0 - user: - $ref: '#/components/schemas/UserRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + x-spec-enum-id: d10d91f690a856c2 + title: Parent/child status + description: 'Parent devices house child devices in device bays. Leave blank + if this device type is neither a parent nor a child. + + + * `parent` - Parent + + * `child` - Child' + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + front_image: + type: string + format: binary + rear_image: + type: string + format: binary description: type: string - minLength: 1 maxLength: 200 comments: type: string @@ -118984,27 +171166,176 @@ components: custom_fields: type: object additionalProperties: {} - PatchedRackRoleRequest: + PatchedWritableDeviceWithConfigContextRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string - minLength: 1 - maxLength: 100 - slug: + nullable: true + maxLength: 64 + device_type: + $ref: '#/components/schemas/BriefDeviceTypeRequest' + role: + $ref: '#/components/schemas/BriefDeviceRoleRequest' + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + serial: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - color: + title: Serial number + description: Chassis serial number, assigned by the manufacturer + maxLength: 50 + asset_tag: type: string - minLength: 1 - pattern: ^[0-9a-f]{6}$ - maxLength: 6 + nullable: true + description: A unique tag used to identify this device + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true + position: + type: number + format: double + maximum: 1000 + minimum: 0.5 + exclusiveMaximum: true + nullable: true + title: Position (U) + face: + enum: + - front + - rear + - '' + type: string + description: '* `front` - Front + + * `rear` - Rear' + x-spec-enum-id: d2fb9b3f75158b83 + title: Rack face + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + status: + enum: + - offline + - active + - planned + - staged + - failed + - inventory + - decommissioning + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `staged` - Staged + + * `failed` - Failed + + * `inventory` - Inventory + + * `decommissioning` - Decommissioning' + x-spec-enum-id: 8d8971779f16ee18 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - mixed + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive + + * `mixed` - Mixed' + x-spec-enum-id: 58e389e240a5e53d + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + oob_ip: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/BriefClusterRequest' + nullable: true + virtual_chassis: + allOf: + - $ref: '#/components/schemas/BriefVirtualChassisRequest' + nullable: true + vc_position: + type: integer + maximum: 255 + minimum: 0 + nullable: true + vc_priority: + type: integer + maximum: 255 + minimum: 0 + nullable: true + description: Virtual chassis master election priority description: type: string maxLength: 200 + comments: + type: string + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -119012,51 +171343,285 @@ components: custom_fields: type: object additionalProperties: {} - PatchedRoleRequest: + PatchedWritableEventRuleRequest: type: object description: Adds support for custom fields and tags. properties: + object_types: + type: array + items: + type: string name: type: string minLength: 1 - maxLength: 100 - slug: + maxLength: 150 + enabled: + type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. + conditions: + nullable: true + description: A set of conditions which determine whether the event will + be generated. + action_type: + enum: + - webhook + - script + - notification type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - weight: + description: '* `webhook` - Webhook + + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 + action_object_type: + type: string + action_object_id: type: integer - maximum: 32767 + maximum: 9223372036854775807 minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + custom_fields: + type: object + additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedRouteTargetRequest: + PatchedWritableFrontPortRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true name: type: string minLength: 1 - description: Route target value (formatted in accordance with RFC 4360) - maxLength: 21 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + rear_port: + type: integer + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 + description: Mapped position on corresponding rear port description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -119064,70 +171629,214 @@ components: custom_fields: type: object additionalProperties: {} - PatchedSavedFilterRequest: + PatchedWritableFrontPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - object_types: - type: array - items: - type: string + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 - maxLength: 100 - slug: + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other type: string - maxLength: 200 - user: - type: integer - nullable: true - weight: - type: integer - maximum: 32767 - minimum: 0 - enabled: - type: boolean - shared: - type: boolean - parameters: {} - PatchedTagRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - pattern: ^[-\w]+$ - maxLength: 100 + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a color: type: string - minLength: 1 pattern: ^[0-9a-f]{6}$ maxLength: 6 + rear_port: + $ref: '#/components/schemas/BriefRearPortTemplateRequest' + rear_port_position: + type: integer + maximum: 1024 + minimum: 1 + default: 1 description: type: string maxLength: 200 - object_types: - type: array - items: - type: string - PatchedTenantRequest: + PatchedWritableIKEPolicyRequest: type: object description: Adds support for custom fields and tags. properties: @@ -119135,18 +171844,37 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - group: - allOf: - - $ref: '#/components/schemas/TenantGroupRequest' - nullable: true description: type: string maxLength: 200 + version: + enum: + - 1 + - 2 + type: integer + description: '* `1` - IKEv1 + + * `2` - IKEv2' + x-spec-enum-id: 00872b77916a1fde + minimum: 0 + maximum: 32767 + mode: + enum: + - aggressive + - main + - '' + type: string + description: '* `aggressive` - Aggressive + + * `main` - Main' + x-spec-enum-id: 64c1be7bdb2548ca + proposals: + type: array + items: + type: integer + preshared_key: + type: string + title: Pre-shared key comments: type: string tags: @@ -119156,34 +171884,7 @@ components: custom_fields: type: object additionalProperties: {} - PatchedTokenRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - user: - $ref: '#/components/schemas/UserRequest' - expires: - type: string - format: date-time - nullable: true - last_used: - type: string - format: date-time - nullable: true - key: - type: string - maxLength: 40 - minLength: 40 - write_enabled: - type: boolean - description: Permit create/update/delete operations using this key - description: - type: string - maxLength: 200 - PatchedTunnelGroupRequest: + PatchedWritableIKEProposalRequest: type: object description: Adds support for custom fields and tags. properties: @@ -119191,14 +171892,158 @@ components: type: string minLength: 1 maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ description: type: string maxLength: 200 + authentication_method: + enum: + - preshared-keys + - certificates + - rsa-signatures + - dsa-signatures + type: string + description: '* `preshared-keys` - Pre-shared keys + + * `certificates` - Certificates + + * `rsa-signatures` - RSA signatures + + * `dsa-signatures` - DSA signatures' + x-spec-enum-id: 92bb2f1103b3a262 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + authentication_algorithm: + enum: + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' + type: string + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + group: + enum: + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 + type: integer + x-spec-enum-id: dbef43be795462a8 + description: 'Diffie-Hellman group ID + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' + minimum: 0 + maximum: 32767 + sa_lifetime: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Security association lifetime (in seconds) + comments: + type: string tags: type: array items: @@ -119206,94 +172051,97 @@ components: custom_fields: type: object additionalProperties: {} - PatchedUserRequest: + PatchedWritableIPAddressRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - username: - type: string - minLength: 1 - description: Required. 150 characters or fewer. Letters, digits and @/./+/-/_ - only. - pattern: ^[\w.@+-]+$ - maxLength: 150 - password: + address: type: string - writeOnly: true minLength: 1 - maxLength: 128 - first_name: - type: string - maxLength: 150 - last_name: - type: string - maxLength: 150 - email: - type: string - format: email - title: Email address - maxLength: 254 - is_staff: - type: boolean - title: Staff status - description: Designates whether the user can log into this admin site. - is_active: - type: boolean - title: Active - description: Designates whether this user should be treated as active. Unselect - this instead of deleting accounts. - date_joined: - type: string - format: date-time - last_login: - type: string - format: date-time + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - groups: - type: array - items: - type: integer - permissions: - type: array - items: - type: integer - PatchedVLANGroupRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + - dhcp + - slaac type: string - minLength: 1 - maxLength: 100 - slug: + x-spec-enum-id: 24935cfee15bd268 + description: 'The operational status of this IP + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated + + * `dhcp` - DHCP + + * `slaac` - SLAAC' + role: + enum: + - loopback + - secondary + - anycast + - vip + - vrrp + - hsrp + - glbp + - carp + - '' type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - scope_type: + x-spec-enum-id: 10fbcb4930889b0f + description: 'The functional role of this IP + + + * `loopback` - Loopback + + * `secondary` - Secondary + + * `anycast` - Anycast + + * `vip` - VIP + + * `vrrp` - VRRP + + * `hsrp` - HSRP + + * `glbp` - GLBP + + * `carp` - CARP' + assigned_object_type: type: string nullable: true - scope_id: + assigned_object_id: type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: + nat_inside: type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN + nullable: true + title: NAT (inside) + description: The IP for which this address is the "outside" IP + dns_name: + type: string + description: Hostname or FQDN (not case-sensitive) + pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ + maxLength: 255 description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -119301,41 +172149,48 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVRFRequest: + PatchedWritableIPRangeRequest: type: object description: Adds support for custom fields and tags. properties: - name: + start_address: type: string minLength: 1 - maxLength: 100 - rd: + end_address: type: string + minLength: 1 + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - title: Route distinguisher - description: Unique route distinguisher (as defined in RFC 4364) - maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this range + + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true - enforce_unique: - type: boolean - title: Enforce unique space - description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 comments: type: string - import_targets: - type: array - items: - type: integer - export_targets: - type: array - items: - type: integer tags: type: array items: @@ -119343,24 +172198,107 @@ components: custom_fields: type: object additionalProperties: {} - PatchedVirtualDiskRequest: + mark_utilized: + type: boolean + description: Treat as fully utilized + PatchedWritableIPSecPolicyRequest: type: object description: Adds support for custom fields and tags. properties: - virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' name: type: string minLength: 1 - maxLength: 64 + maxLength: 100 description: type: string maxLength: 200 - size: + proposals: + type: array + items: + type: integer + pfs_group: + enum: + - 1 + - 2 + - 5 + - 14 + - 15 + - 16 + - 17 + - 18 + - 19 + - 20 + - 21 + - 22 + - 23 + - 24 + - 25 + - 26 + - 27 + - 28 + - 29 + - 30 + - 31 + - 32 + - 33 + - 34 type: integer - maximum: 2147483647 + x-spec-enum-id: dbef43be795462a8 + nullable: true + description: 'Diffie-Hellman group for Perfect Forward Secrecy + + + * `1` - Group 1 + + * `2` - Group 2 + + * `5` - Group 5 + + * `14` - Group 14 + + * `15` - Group 15 + + * `16` - Group 16 + + * `17` - Group 17 + + * `18` - Group 18 + + * `19` - Group 19 + + * `20` - Group 20 + + * `21` - Group 21 + + * `22` - Group 22 + + * `23` - Group 23 + + * `24` - Group 24 + + * `25` - Group 25 + + * `26` - Group 26 + + * `27` - Group 27 + + * `28` - Group 28 + + * `29` - Group 29 + + * `30` - Group 30 + + * `31` - Group 31 + + * `32` - Group 32 + + * `33` - Group 33 + + * `34` - Group 34' minimum: 0 - title: Size (GB) + maximum: 32767 + comments: + type: string tags: type: array items: @@ -119368,103 +172306,113 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWebhookRequest: + PatchedWritableIPSecProfileRequest: type: object description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 150 + maxLength: 100 description: type: string maxLength: 200 - payload_url: - type: string - minLength: 1 - title: URL - description: This URL will be called using the HTTP method defined when - the webhook is called. Jinja2 template processing is supported with the - same context as the request body. - maxLength: 500 - http_method: + mode: enum: - - GET - - POST - - PUT - - PATCH - - DELETE + - esp + - ah type: string - description: '* `GET` - GET - - * `POST` - POST - - * `PUT` - PUT - - * `PATCH` - PATCH + description: '* `esp` - ESP - * `DELETE` - DELETE' - x-spec-enum-id: a12018571a034921 - http_content_type: - type: string - minLength: 1 - description: The complete list of official content types is available here. - maxLength: 100 - additional_headers: - type: string - description: 'User-supplied HTTP headers to be sent with the request in - addition to the HTTP content type. Headers should be defined in the format - Name: Value. Jinja2 template processing is supported with - the same context as the request body (below).' - body_template: - type: string - description: 'Jinja2 template for a custom request body. If blank, a JSON - object representing the change will be included. Available context data - includes: event, model, timestamp, - username, request_id, and data.' - secret: - type: string - description: When provided, the request will include a X-Hook-Signature - header containing a HMAC hex digest of the payload body using the secret - as the key. The secret is not transmitted in the request. - maxLength: 255 - ssl_verification: - type: boolean - description: Enable SSL certificate verification. Disable with caution! - ca_file_path: + * `ah` - AH' + x-spec-enum-id: 1136c2cdfee84436 + ike_policy: + $ref: '#/components/schemas/BriefIKEPolicyRequest' + ipsec_policy: + $ref: '#/components/schemas/BriefIPSecPolicyRequest' + comments: type: string - nullable: true - description: The specific CA certificate file to use for SSL verification. - Leave blank to use the system defaults. - maxLength: 4096 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableAggregateRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedWritableIPSecProposalRequest: type: object description: Adds support for custom fields and tags. properties: - prefix: + name: type: string minLength: 1 - rir: - $ref: '#/components/schemas/RIRRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - date_added: - type: string - format: date - nullable: true + maxLength: 100 description: type: string maxLength: 200 + encryption_algorithm: + enum: + - aes-128-cbc + - aes-128-gcm + - aes-192-cbc + - aes-192-gcm + - aes-256-cbc + - aes-256-gcm + - 3des-cbc + - des-cbc + - '' + type: string + description: '* `aes-128-cbc` - 128-bit AES (CBC) + + * `aes-128-gcm` - 128-bit AES (GCM) + + * `aes-192-cbc` - 192-bit AES (CBC) + + * `aes-192-gcm` - 192-bit AES (GCM) + + * `aes-256-cbc` - 256-bit AES (CBC) + + * `aes-256-gcm` - 256-bit AES (GCM) + + * `3des-cbc` - 3DES + + * `des-cbc` - DES' + x-spec-enum-id: b022535cfdee79fe + title: Encryption + authentication_algorithm: + enum: + - hmac-sha1 + - hmac-sha256 + - hmac-sha384 + - hmac-sha512 + - hmac-md5 + - '' + type: string + description: '* `hmac-sha1` - SHA-1 HMAC + + * `hmac-sha256` - SHA-256 HMAC + + * `hmac-sha384` - SHA-384 HMAC + + * `hmac-sha512` - SHA-512 HMAC + + * `hmac-md5` - MD5 HMAC' + x-spec-enum-id: 0830e8839f5dea4f + title: Authentication + sa_lifetime_seconds: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (seconds) + description: Security association lifetime (seconds) + sa_lifetime_data: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: SA lifetime (KB) + description: Security association lifetime (in kilobytes) comments: type: string tags: @@ -119474,1353 +172422,1203 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableCableRequest: + PatchedWritableInterfaceRequest: type: object description: Adds support for custom fields and tags. properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + vdcs: + type: array + items: + type: integer + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 type: enum: - - cat3 - - cat5 - - cat5e - - cat6 - - cat6a - - cat7 - - cat7a - - cat8 - - dac-active - - dac-passive - - mrj21-trunk - - coaxial - - mmf - - mmf-om1 - - mmf-om2 - - mmf-om3 - - mmf-om4 - - mmf-om5 - - smf - - smf-os1 - - smf-os2 - - aoc - - power - - '' + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 1000base-tx + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 100base-x-sfp + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.15.1 + - ieee802.15.4 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 + - other type: string - description: '* `cat3` - CAT3 + description: '* `virtual` - Virtual + + * `bridge` - Bridge + + * `lag` - Link Aggregation Group (LAG) + + * `100base-fx` - 100BASE-FX (10/100ME FIBER) + + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + + * `100base-tx` - 100BASE-TX (10/100ME) + + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + + * `1000base-t` - 1000BASE-T (1GE) + + * `1000base-tx` - 1000BASE-TX (1GE) + + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + + * `5gbase-t` - 5GBASE-T (5GE) + + * `10gbase-t` - 10GBASE-T (10GE) + + * `10gbase-cx4` - 10GBASE-CX4 (10GE) + + * `100base-x-sfp` - SFP (100ME) + + * `1000base-x-gbic` - GBIC (1GE) + + * `1000base-x-sfp` - SFP (1GE) + + * `10gbase-x-sfpp` - SFP+ (10GE) + + * `10gbase-x-xfp` - XFP (10GE) + + * `10gbase-x-xenpak` - XENPAK (10GE) + + * `10gbase-x-x2` - X2 (10GE) + + * `25gbase-x-sfp28` - SFP28 (25GE) + + * `50gbase-x-sfp56` - SFP56 (50GE) + + * `40gbase-x-qsfpp` - QSFP+ (40GE) + + * `50gbase-x-sfp28` - QSFP28 (50GE) + + * `100gbase-x-cfp` - CFP (100GE) + + * `100gbase-x-cfp2` - CFP2 (100GE) + + * `200gbase-x-cfp2` - CFP2 (200GE) + + * `400gbase-x-cfp2` - CFP2 (400GE) + + * `100gbase-x-cfp4` - CFP4 (100GE) + + * `100gbase-x-cxp` - CXP (100GE) + + * `100gbase-x-cpak` - Cisco CPAK (100GE) + + * `100gbase-x-dsfp` - DSFP (100GE) + + * `100gbase-x-sfpdd` - SFP-DD (100GE) + + * `100gbase-x-qsfp28` - QSFP28 (100GE) + + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + + * `200gbase-x-qsfp56` - QSFP56 (200GE) + + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + + * `400gbase-x-qsfp112` - QSFP112 (400GE) + + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + + * `400gbase-x-osfp` - OSFP (400GE) + + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + + * `400gbase-x-cdfp` - CDFP (400GE) + + * `400gbase-x-cfp8` - CPF8 (400GE) + + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + + * `800gbase-x-osfp` - OSFP (800GE) + + * `1000base-kx` - 1000BASE-KX (1GE) + + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) + + * `10gbase-kx4` - 10GBASE-KX4 (10GE) + + * `25gbase-kr` - 25GBASE-KR (25GE) + + * `40gbase-kr4` - 40GBASE-KR4 (40GE) + + * `50gbase-kr` - 50GBASE-KR (50GE) + + * `100gbase-kp4` - 100GBASE-KP4 (100GE) + + * `100gbase-kr2` - 100GBASE-KR2 (100GE) + + * `100gbase-kr4` - 100GBASE-KR4 (100GE) + + * `ieee802.11a` - IEEE 802.11a + + * `ieee802.11g` - IEEE 802.11b/g + + * `ieee802.11n` - IEEE 802.11n + + * `ieee802.11ac` - IEEE 802.11ac + + * `ieee802.11ad` - IEEE 802.11ad + + * `ieee802.11ax` - IEEE 802.11ax + + * `ieee802.11ay` - IEEE 802.11ay + + * `ieee802.11be` - IEEE 802.11be + + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + + * `other-wireless` - Other (Wireless) + + * `gsm` - GSM + + * `cdma` - CDMA + + * `lte` - LTE + + * `4g` - 4G + + * `5g` - 5G + + * `sonet-oc3` - OC-3/STM-1 + + * `sonet-oc12` - OC-12/STM-4 + + * `sonet-oc48` - OC-48/STM-16 + + * `sonet-oc192` - OC-192/STM-64 + + * `sonet-oc768` - OC-768/STM-256 + + * `sonet-oc1920` - OC-1920/STM-640 + + * `sonet-oc3840` - OC-3840/STM-1234 + + * `1gfc-sfp` - SFP (1GFC) + + * `2gfc-sfp` - SFP (2GFC) + + * `4gfc-sfp` - SFP (4GFC) + + * `8gfc-sfpp` - SFP+ (8GFC) + + * `16gfc-sfpp` - SFP+ (16GFC) - * `cat5` - CAT5 + * `32gfc-sfp28` - SFP28 (32GFC) - * `cat5e` - CAT5e + * `32gfc-sfpp` - SFP+ (32GFC) - * `cat6` - CAT6 + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `cat6a` - CAT6a + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `cat7` - CAT7 + * `64gfc-sfpp` - SFP+ (64GFC) - * `cat7a` - CAT7a + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `cat8` - CAT8 + * `infiniband-sdr` - SDR (2 Gbps) - * `dac-active` - Direct Attach Copper (Active) + * `infiniband-ddr` - DDR (4 Gbps) - * `dac-passive` - Direct Attach Copper (Passive) + * `infiniband-qdr` - QDR (8 Gbps) - * `mrj21-trunk` - MRJ21 Trunk + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `coaxial` - Coaxial + * `infiniband-fdr` - FDR (13.5 Gbps) - * `mmf` - Multimode Fiber + * `infiniband-edr` - EDR (25 Gbps) - * `mmf-om1` - Multimode Fiber (OM1) + * `infiniband-hdr` - HDR (50 Gbps) - * `mmf-om2` - Multimode Fiber (OM2) + * `infiniband-ndr` - NDR (100 Gbps) - * `mmf-om3` - Multimode Fiber (OM3) + * `infiniband-xdr` - XDR (250 Gbps) - * `mmf-om4` - Multimode Fiber (OM4) + * `t1` - T1 (1.544 Mbps) - * `mmf-om5` - Multimode Fiber (OM5) + * `e1` - E1 (2.048 Mbps) - * `smf` - Singlemode Fiber + * `t3` - T3 (45 Mbps) - * `smf-os1` - Singlemode Fiber (OS1) + * `e3` - E3 (34 Mbps) - * `smf-os2` - Singlemode Fiber (OS2) + * `xdsl` - xDSL - * `aoc` - Active Optical Cabling (AOC) + * `docsis` - DOCSIS - * `power` - Power' - x-spec-enum-id: e671018e64196f8d - a_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - b_terminations: - type: array - items: - $ref: '#/components/schemas/GenericObjectRequest' - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `planned` - Planned + * `epon` - EPON (1 Gbps) - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - label: - type: string - maxLength: 100 - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - length: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - length_unit: - enum: - - km - - m - - cm - - mi - - ft - - in - - '' - type: string - description: '* `km` - Kilometers + * `10g-epon` - 10G-EPON (10 Gbps) - * `m` - Meters + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `cm` - Centimeters + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `mi` - Miles + * `xgs-pon` - XGS-PON (10 Gbps) - * `ft` - Feet + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `in` - Inches' - x-spec-enum-id: e64ce3a2c5997172 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCircuitRequest: - type: object - description: Adds support for custom fields and tags. - properties: - cid: - type: string - minLength: 1 - title: Circuit ID - description: Unique circuit ID - maxLength: 100 - provider: - $ref: '#/components/schemas/ProviderRequest' - provider_account: - allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' - nullable: true - type: - $ref: '#/components/schemas/CircuitTypeRequest' - status: - enum: - - planned - - provisioning - - active - - offline - - deprovisioning - - decommissioned - type: string - description: '* `planned` - Planned + * `25g-pon` - 25G-PON (25 Gbps) - * `provisioning` - Provisioning + * `50g-pon` - 50G-PON (50 Gbps) - * `active` - Active + * `cisco-stackwise` - Cisco StackWise - * `offline` - Offline + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `deprovisioning` - Deprovisioning + * `cisco-flexstack` - Cisco FlexStack - * `decommissioned` - Decommissioned' - x-spec-enum-id: 63c838134a022200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + * `cisco-flexstack-plus` - Cisco FlexStack Plus + + * `cisco-stackwise-80` - Cisco StackWise-80 + + * `cisco-stackwise-160` - Cisco StackWise-160 + + * `cisco-stackwise-320` - Cisco StackWise-320 + + * `cisco-stackwise-480` - Cisco StackWise-480 + + * `cisco-stackwise-1t` - Cisco StackWise-1T + + * `juniper-vcp` - Juniper VCP + + * `extreme-summitstack` - Extreme SummitStack + + * `extreme-summitstack-128` - Extreme SummitStack-128 + + * `extreme-summitstack-256` - Extreme SummitStack-256 + + * `extreme-summitstack-512` - Extreme SummitStack-512 + + * `other` - Other' + x-spec-enum-id: 56365107f9c2326f + enabled: + type: boolean + parent: + type: integer nullable: true - install_date: - type: string - format: date + title: Parent interface + bridge: + type: integer nullable: true - title: Installed - termination_date: + title: Bridge interface + lag: + type: integer + nullable: true + title: Parent LAG + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: type: string - format: date nullable: true - title: Terminates - commit_rate: + speed: type: integer maximum: 2147483647 minimum: 0 nullable: true - title: Commit rate (Kbps) - description: Committed rate - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableClusterRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - $ref: '#/components/schemas/ClusterTypeRequest' - group: - allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' - nullable: true - status: + title: Speed (Kbps) + duplex: enum: - - planned - - staging - - active - - decommissioning - - offline + - half + - full + - auto + - '' type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active + description: '* `half` - Half - * `decommissioning` - Decommissioning + * `full` - Full - * `offline` - Offline' - x-spec-enum-id: 79d20a734d0eecbb - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + * `auto` - Auto' + x-spec-enum-id: 47eab9b1a65a1e21 nullable: true - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' + wwn: + type: string nullable: true + mgmt_only: + type: boolean + title: Management only + description: This interface is used only for out-of-band management description: type: string maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsolePortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: + mode: + enum: + - access + - tagged + - tagged-all + - '' type: string - minLength: 1 - maxLength: 64 - label: + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy + + + * `access` - Access + + * `tagged` - Tagged + + * `tagged-all` - Tagged (All)' + rf_role: + enum: + - ap + - station + - '' type: string - description: Physical label - maxLength: 64 - type: + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + rf_channel: enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other + - 2.4g-1-2412-22 + - 2.4g-2-2417-22 + - 2.4g-3-2422-22 + - 2.4g-4-2427-22 + - 2.4g-5-2432-22 + - 2.4g-6-2437-22 + - 2.4g-7-2442-22 + - 2.4g-8-2447-22 + - 2.4g-9-2452-22 + - 2.4g-10-2457-22 + - 2.4g-11-2462-22 + - 2.4g-12-2467-22 + - 2.4g-13-2472-22 + - 5g-32-5160-20 + - 5g-34-5170-40 + - 5g-36-5180-20 + - 5g-38-5190-40 + - 5g-40-5200-20 + - 5g-42-5210-80 + - 5g-44-5220-20 + - 5g-46-5230-40 + - 5g-48-5240-20 + - 5g-50-5250-160 + - 5g-52-5260-20 + - 5g-54-5270-40 + - 5g-56-5280-20 + - 5g-58-5290-80 + - 5g-60-5300-20 + - 5g-62-5310-40 + - 5g-64-5320-20 + - 5g-100-5500-20 + - 5g-102-5510-40 + - 5g-104-5520-20 + - 5g-106-5530-80 + - 5g-108-5540-20 + - 5g-110-5550-40 + - 5g-112-5560-20 + - 5g-114-5570-160 + - 5g-116-5580-20 + - 5g-118-5590-40 + - 5g-120-5600-20 + - 5g-122-5610-80 + - 5g-124-5620-20 + - 5g-126-5630-40 + - 5g-128-5640-20 + - 5g-132-5660-20 + - 5g-134-5670-40 + - 5g-136-5680-20 + - 5g-138-5690-80 + - 5g-140-5700-20 + - 5g-142-5710-40 + - 5g-144-5720-20 + - 5g-149-5745-20 + - 5g-151-5755-40 + - 5g-153-5765-20 + - 5g-155-5775-80 + - 5g-157-5785-20 + - 5g-159-5795-40 + - 5g-161-5805-20 + - 5g-163-5815-160 + - 5g-165-5825-20 + - 5g-167-5835-40 + - 5g-169-5845-20 + - 5g-171-5855-80 + - 5g-173-5865-20 + - 5g-175-5875-40 + - 5g-177-5885-20 + - 6g-1-5955-20 + - 6g-3-5965-40 + - 6g-5-5975-20 + - 6g-7-5985-80 + - 6g-9-5995-20 + - 6g-11-6005-40 + - 6g-13-6015-20 + - 6g-15-6025-160 + - 6g-17-6035-20 + - 6g-19-6045-40 + - 6g-21-6055-20 + - 6g-23-6065-80 + - 6g-25-6075-20 + - 6g-27-6085-40 + - 6g-29-6095-20 + - 6g-31-6105-320 + - 6g-33-6115-20 + - 6g-35-6125-40 + - 6g-37-6135-20 + - 6g-39-6145-80 + - 6g-41-6155-20 + - 6g-43-6165-40 + - 6g-45-6175-20 + - 6g-47-6185-160 + - 6g-49-6195-20 + - 6g-51-6205-40 + - 6g-53-6215-20 + - 6g-55-6225-80 + - 6g-57-6235-20 + - 6g-59-6245-40 + - 6g-61-6255-20 + - 6g-65-6275-20 + - 6g-67-6285-40 + - 6g-69-6295-20 + - 6g-71-6305-80 + - 6g-73-6315-20 + - 6g-75-6325-40 + - 6g-77-6335-20 + - 6g-79-6345-160 + - 6g-81-6355-20 + - 6g-83-6365-40 + - 6g-85-6375-20 + - 6g-87-6385-80 + - 6g-89-6395-20 + - 6g-91-6405-40 + - 6g-93-6415-20 + - 6g-95-6425-320 + - 6g-97-6435-20 + - 6g-99-6445-40 + - 6g-101-6455-20 + - 6g-103-6465-80 + - 6g-105-6475-20 + - 6g-107-6485-40 + - 6g-109-6495-20 + - 6g-111-6505-160 + - 6g-113-6515-20 + - 6g-115-6525-40 + - 6g-117-6535-20 + - 6g-119-6545-80 + - 6g-121-6555-20 + - 6g-123-6565-40 + - 6g-125-6575-20 + - 6g-129-6595-20 + - 6g-131-6605-40 + - 6g-133-6615-20 + - 6g-135-6625-80 + - 6g-137-6635-20 + - 6g-139-6645-40 + - 6g-141-6655-20 + - 6g-143-6665-160 + - 6g-145-6675-20 + - 6g-147-6685-40 + - 6g-149-6695-20 + - 6g-151-6705-80 + - 6g-153-6715-20 + - 6g-155-6725-40 + - 6g-157-6735-20 + - 6g-159-6745-320 + - 6g-161-6755-20 + - 6g-163-6765-40 + - 6g-165-6775-20 + - 6g-167-6785-80 + - 6g-169-6795-20 + - 6g-171-6805-40 + - 6g-173-6815-20 + - 6g-175-6825-160 + - 6g-177-6835-20 + - 6g-179-6845-40 + - 6g-181-6855-20 + - 6g-183-6865-80 + - 6g-185-6875-20 + - 6g-187-6885-40 + - 6g-189-6895-20 + - 6g-193-6915-20 + - 6g-195-6925-40 + - 6g-197-6935-20 + - 6g-199-6945-80 + - 6g-201-6955-20 + - 6g-203-6965-40 + - 6g-205-6975-20 + - 6g-207-6985-160 + - 6g-209-6995-20 + - 6g-211-7005-40 + - 6g-213-7015-20 + - 6g-215-7025-80 + - 6g-217-7035-20 + - 6g-219-7045-40 + - 6g-221-7055-20 + - 6g-225-7075-20 + - 6g-227-7085-40 + - 6g-229-7095-20 + - 6g-233-7115-20 + - 60g-1-58320-2160 + - 60g-2-60480-2160 + - 60g-3-62640-2160 + - 60g-4-64800-2160 + - 60g-5-66960-2160 + - 60g-6-69120-2160 + - 60g-9-59400-4320 + - 60g-10-61560-4320 + - 60g-11-63720-4320 + - 60g-12-65880-4320 + - 60g-13-68040-4320 + - 60g-17-60480-6480 + - 60g-18-62640-6480 + - 60g-19-64800-6480 + - 60g-20-66960-6480 + - 60g-25-61560-6480 + - 60g-26-63720-6480 + - 60g-27-65880-6480 - '' type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type + description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + * `2.4g-2-2417-22` - 2 (2417 MHz) - * `de-9` - DE-9 + * `2.4g-3-2422-22` - 3 (2422 MHz) - * `db-25` - DB-25 + * `2.4g-4-2427-22` - 4 (2427 MHz) - * `rj-11` - RJ-11 + * `2.4g-5-2432-22` - 5 (2432 MHz) - * `rj-12` - RJ-12 + * `2.4g-6-2437-22` - 6 (2437 MHz) - * `rj-45` - RJ-45 + * `2.4g-7-2442-22` - 7 (2442 MHz) - * `mini-din-8` - Mini-DIN 8 + * `2.4g-8-2447-22` - 8 (2447 MHz) - * `usb-a` - USB Type A + * `2.4g-9-2452-22` - 9 (2452 MHz) - * `usb-b` - USB Type B + * `2.4g-10-2457-22` - 10 (2457 MHz) - * `usb-c` - USB Type C + * `2.4g-11-2462-22` - 11 (2462 MHz) - * `usb-mini-a` - USB Mini A + * `2.4g-12-2467-22` - 12 (2467 MHz) - * `usb-mini-b` - USB Mini B + * `2.4g-13-2472-22` - 13 (2472 MHz) - * `usb-micro-a` - USB Micro A + * `5g-32-5160-20` - 32 (5160/20 MHz) - * `usb-micro-b` - USB Micro B + * `5g-34-5170-40` - 34 (5170/40 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-36-5180-20` - 36 (5180/20 MHz) - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second + * `5g-38-5190-40` - 38 (5190/40 MHz) + * `5g-40-5200-20` - 40 (5200/20 MHz) - * `1200` - 1200 bps + * `5g-42-5210-80` - 42 (5210/80 MHz) - * `2400` - 2400 bps + * `5g-44-5220-20` - 44 (5220/20 MHz) - * `4800` - 4800 bps + * `5g-46-5230-40` - 46 (5230/40 MHz) - * `9600` - 9600 bps + * `5g-48-5240-20` - 48 (5240/20 MHz) - * `19200` - 19.2 kbps + * `5g-50-5250-160` - 50 (5250/160 MHz) - * `38400` - 38.4 kbps + * `5g-52-5260-20` - 52 (5260/20 MHz) - * `57600` - 57.6 kbps + * `5g-54-5270-40` - 54 (5270/40 MHz) - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsolePortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `5g-56-5280-20` - 56 (5280/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 + * `5g-58-5290-80` - 58 (5290/80 MHz) - * `db-25` - DB-25 + * `5g-60-5300-20` - 60 (5300/20 MHz) - * `rj-11` - RJ-11 + * `5g-62-5310-40` - 62 (5310/40 MHz) - * `rj-12` - RJ-12 + * `5g-64-5320-20` - 64 (5320/20 MHz) - * `rj-45` - RJ-45 + * `5g-100-5500-20` - 100 (5500/20 MHz) - * `mini-din-8` - Mini-DIN 8 + * `5g-102-5510-40` - 102 (5510/40 MHz) - * `usb-a` - USB Type A + * `5g-104-5520-20` - 104 (5520/20 MHz) - * `usb-b` - USB Type B + * `5g-106-5530-80` - 106 (5530/80 MHz) - * `usb-c` - USB Type C + * `5g-108-5540-20` - 108 (5540/20 MHz) - * `usb-mini-a` - USB Mini A + * `5g-110-5550-40` - 110 (5550/40 MHz) - * `usb-mini-b` - USB Mini B + * `5g-112-5560-20` - 112 (5560/20 MHz) - * `usb-micro-a` - USB Micro A + * `5g-114-5570-160` - 114 (5570/160 MHz) - * `usb-micro-b` - USB Micro B + * `5g-116-5580-20` - 116 (5580/20 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-118-5590-40` - 118 (5590/40 MHz) - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableConsoleServerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - x-spec-enum-id: c5f7197b7211818a - description: 'Physical port type + * `5g-120-5600-20` - 120 (5600/20 MHz) + * `5g-122-5610-80` - 122 (5610/80 MHz) - * `de-9` - DE-9 + * `5g-124-5620-20` - 124 (5620/20 MHz) - * `db-25` - DB-25 + * `5g-126-5630-40` - 126 (5630/40 MHz) - * `rj-11` - RJ-11 + * `5g-128-5640-20` - 128 (5640/20 MHz) - * `rj-12` - RJ-12 + * `5g-132-5660-20` - 132 (5660/20 MHz) - * `rj-45` - RJ-45 + * `5g-134-5670-40` - 134 (5670/40 MHz) - * `mini-din-8` - Mini-DIN 8 + * `5g-136-5680-20` - 136 (5680/20 MHz) - * `usb-a` - USB Type A + * `5g-138-5690-80` - 138 (5690/80 MHz) - * `usb-b` - USB Type B + * `5g-140-5700-20` - 140 (5700/20 MHz) - * `usb-c` - USB Type C + * `5g-142-5710-40` - 142 (5710/40 MHz) - * `usb-mini-a` - USB Mini A + * `5g-144-5720-20` - 144 (5720/20 MHz) - * `usb-mini-b` - USB Mini B + * `5g-149-5745-20` - 149 (5745/20 MHz) - * `usb-micro-a` - USB Micro A + * `5g-151-5755-40` - 151 (5755/40 MHz) - * `usb-micro-b` - USB Micro B + * `5g-153-5765-20` - 153 (5765/20 MHz) - * `usb-micro-ab` - USB Micro AB + * `5g-155-5775-80` - 155 (5775/80 MHz) - * `other` - Other' - speed: - enum: - - 1200 - - 2400 - - 4800 - - 9600 - - 19200 - - 38400 - - 57600 - - 115200 - type: integer - x-spec-enum-id: ab6d9635c131a378 - nullable: true - description: 'Port speed in bits per second + * `5g-157-5785-20` - 157 (5785/20 MHz) + * `5g-159-5795-40` - 159 (5795/40 MHz) - * `1200` - 1200 bps + * `5g-161-5805-20` - 161 (5805/20 MHz) - * `2400` - 2400 bps + * `5g-163-5815-160` - 163 (5815/160 MHz) - * `4800` - 4800 bps + * `5g-165-5825-20` - 165 (5825/20 MHz) - * `9600` - 9600 bps + * `5g-167-5835-40` - 167 (5835/40 MHz) - * `19200` - 19.2 kbps + * `5g-169-5845-20` - 169 (5845/20 MHz) - * `38400` - 38.4 kbps + * `5g-171-5855-80` - 171 (5855/80 MHz) - * `57600` - 57.6 kbps + * `5g-173-5865-20` - 173 (5865/20 MHz) - * `115200` - 115.2 kbps' - minimum: 0 - maximum: 2147483647 - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableConsoleServerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `5g-175-5875-40` - 175 (5875/40 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - de-9 - - db-25 - - rj-11 - - rj-12 - - rj-45 - - mini-din-8 - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - other - - '' - type: string - description: '* `de-9` - DE-9 + * `5g-177-5885-20` - 177 (5885/20 MHz) - * `db-25` - DB-25 + * `6g-1-5955-20` - 1 (5955/20 MHz) - * `rj-11` - RJ-11 + * `6g-3-5965-40` - 3 (5965/40 MHz) - * `rj-12` - RJ-12 + * `6g-5-5975-20` - 5 (5975/20 MHz) - * `rj-45` - RJ-45 + * `6g-7-5985-80` - 7 (5985/80 MHz) - * `mini-din-8` - Mini-DIN 8 + * `6g-9-5995-20` - 9 (5995/20 MHz) - * `usb-a` - USB Type A + * `6g-11-6005-40` - 11 (6005/40 MHz) - * `usb-b` - USB Type B + * `6g-13-6015-20` - 13 (6015/20 MHz) - * `usb-c` - USB Type C + * `6g-15-6025-160` - 15 (6025/160 MHz) - * `usb-mini-a` - USB Mini A + * `6g-17-6035-20` - 17 (6035/20 MHz) - * `usb-mini-b` - USB Mini B + * `6g-19-6045-40` - 19 (6045/40 MHz) - * `usb-micro-a` - USB Micro A + * `6g-21-6055-20` - 21 (6055/20 MHz) - * `usb-micro-b` - USB Micro B + * `6g-23-6065-80` - 23 (6065/80 MHz) - * `usb-micro-ab` - USB Micro AB + * `6g-25-6075-20` - 25 (6075/20 MHz) - * `other` - Other' - x-spec-enum-id: c5f7197b7211818a - description: - type: string - maxLength: 200 - PatchedWritableContactAssignmentRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_type: - type: string - object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - contact: - $ref: '#/components/schemas/ContactRequest' - role: - allOf: - - $ref: '#/components/schemas/ContactRoleRequest' - nullable: true - priority: - enum: - - primary - - secondary - - tertiary - - inactive - - '' - type: string - description: '* `primary` - Primary + * `6g-27-6085-40` - 27 (6085/40 MHz) - * `secondary` - Secondary + * `6g-29-6095-20` - 29 (6095/20 MHz) - * `tertiary` - Tertiary + * `6g-31-6105-320` - 31 (6105/320 MHz) + + * `6g-33-6115-20` - 33 (6115/20 MHz) + + * `6g-35-6125-40` - 35 (6125/40 MHz) + + * `6g-37-6135-20` - 37 (6135/20 MHz) + + * `6g-39-6145-80` - 39 (6145/80 MHz) + + * `6g-41-6155-20` - 41 (6155/20 MHz) + + * `6g-43-6165-40` - 43 (6165/40 MHz) + + * `6g-45-6175-20` - 45 (6175/20 MHz) + + * `6g-47-6185-160` - 47 (6185/160 MHz) + + * `6g-49-6195-20` - 49 (6195/20 MHz) + + * `6g-51-6205-40` - 51 (6205/40 MHz) + + * `6g-53-6215-20` - 53 (6215/20 MHz) + + * `6g-55-6225-80` - 55 (6225/80 MHz) + + * `6g-57-6235-20` - 57 (6235/20 MHz) + + * `6g-59-6245-40` - 59 (6245/40 MHz) + + * `6g-61-6255-20` - 61 (6255/20 MHz) + + * `6g-65-6275-20` - 65 (6275/20 MHz) + + * `6g-67-6285-40` - 67 (6285/40 MHz) + + * `6g-69-6295-20` - 69 (6295/20 MHz) + + * `6g-71-6305-80` - 71 (6305/80 MHz) + + * `6g-73-6315-20` - 73 (6315/20 MHz) + + * `6g-75-6325-40` - 75 (6325/40 MHz) + + * `6g-77-6335-20` - 77 (6335/20 MHz) + + * `6g-79-6345-160` - 79 (6345/160 MHz) + + * `6g-81-6355-20` - 81 (6355/20 MHz) + + * `6g-83-6365-40` - 83 (6365/40 MHz) + + * `6g-85-6375-20` - 85 (6375/20 MHz) + + * `6g-87-6385-80` - 87 (6385/80 MHz) + + * `6g-89-6395-20` - 89 (6395/20 MHz) + + * `6g-91-6405-40` - 91 (6405/40 MHz) + + * `6g-93-6415-20` - 93 (6415/20 MHz) + + * `6g-95-6425-320` - 95 (6425/320 MHz) + + * `6g-97-6435-20` - 97 (6435/20 MHz) + + * `6g-99-6445-40` - 99 (6445/40 MHz) + + * `6g-101-6455-20` - 101 (6455/20 MHz) + + * `6g-103-6465-80` - 103 (6465/80 MHz) + + * `6g-105-6475-20` - 105 (6475/20 MHz) + + * `6g-107-6485-40` - 107 (6485/40 MHz) + + * `6g-109-6495-20` - 109 (6495/20 MHz) + + * `6g-111-6505-160` - 111 (6505/160 MHz) + + * `6g-113-6515-20` - 113 (6515/20 MHz) + + * `6g-115-6525-40` - 115 (6525/40 MHz) + + * `6g-117-6535-20` - 117 (6535/20 MHz) + + * `6g-119-6545-80` - 119 (6545/80 MHz) + + * `6g-121-6555-20` - 121 (6555/20 MHz) + + * `6g-123-6565-40` - 123 (6565/40 MHz) + + * `6g-125-6575-20` - 125 (6575/20 MHz) + + * `6g-129-6595-20` - 129 (6595/20 MHz) + + * `6g-131-6605-40` - 131 (6605/40 MHz) + + * `6g-133-6615-20` - 133 (6615/20 MHz) + + * `6g-135-6625-80` - 135 (6625/80 MHz) + + * `6g-137-6635-20` - 137 (6635/20 MHz) + + * `6g-139-6645-40` - 139 (6645/40 MHz) + + * `6g-141-6655-20` - 141 (6655/20 MHz) + + * `6g-143-6665-160` - 143 (6665/160 MHz) + + * `6g-145-6675-20` - 145 (6675/20 MHz) + + * `6g-147-6685-40` - 147 (6685/40 MHz) + + * `6g-149-6695-20` - 149 (6695/20 MHz) + + * `6g-151-6705-80` - 151 (6705/80 MHz) + + * `6g-153-6715-20` - 153 (6715/20 MHz) + + * `6g-155-6725-40` - 155 (6725/40 MHz) + + * `6g-157-6735-20` - 157 (6735/20 MHz) + + * `6g-159-6745-320` - 159 (6745/320 MHz) + + * `6g-161-6755-20` - 161 (6755/20 MHz) - * `inactive` - Inactive' - x-spec-enum-id: ef3a31644cec7524 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableContactGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableCustomFieldChoiceSetRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-163-6765-40` - 163 (6765/40 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - base_choices: - enum: - - IATA - - ISO_3166 - - UN_LOCODE - - '' - type: string - x-spec-enum-id: cf0efb5195f85007 - description: 'Base set of predefined choices (optional) + * `6g-165-6775-20` - 165 (6775/20 MHz) + * `6g-167-6785-80` - 167 (6785/80 MHz) - * `IATA` - IATA (Airport codes) + * `6g-169-6795-20` - 169 (6795/20 MHz) - * `ISO_3166` - ISO 3166 (Country codes) + * `6g-171-6805-40` - 171 (6805/40 MHz) - * `UN_LOCODE` - UN/LOCODE (Location codes)' - extra_choices: - type: array - items: - type: array - items: {} - maxItems: 2 - minItems: 2 - order_alphabetically: - type: boolean - description: Choices are automatically ordered alphabetically - PatchedWritableCustomFieldRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `6g-173-6815-20` - 173 (6815/20 MHz) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - object_types: - type: array - items: - type: string - type: - enum: - - text - - longtext - - integer - - decimal - - boolean - - date - - datetime - - url - - json - - select - - multiselect - - object - - multiobject - type: string - x-spec-enum-id: 22e3a64138d10046 - description: 'The type of data this custom field holds + * `6g-175-6825-160` - 175 (6825/160 MHz) + * `6g-177-6835-20` - 177 (6835/20 MHz) - * `text` - Text + * `6g-179-6845-40` - 179 (6845/40 MHz) - * `longtext` - Text (long) + * `6g-181-6855-20` - 181 (6855/20 MHz) - * `integer` - Integer + * `6g-183-6865-80` - 183 (6865/80 MHz) - * `decimal` - Decimal + * `6g-185-6875-20` - 185 (6875/20 MHz) - * `boolean` - Boolean (true/false) + * `6g-187-6885-40` - 187 (6885/40 MHz) - * `date` - Date + * `6g-189-6895-20` - 189 (6895/20 MHz) - * `datetime` - Date & time + * `6g-193-6915-20` - 193 (6915/20 MHz) - * `url` - URL + * `6g-195-6925-40` - 195 (6925/40 MHz) - * `json` - JSON + * `6g-197-6935-20` - 197 (6935/20 MHz) - * `select` - Selection + * `6g-199-6945-80` - 199 (6945/80 MHz) - * `multiselect` - Multiple selection + * `6g-201-6955-20` - 201 (6955/20 MHz) - * `object` - Object + * `6g-203-6965-40` - 203 (6965/40 MHz) - * `multiobject` - Multiple objects' - related_object_type: - type: string - nullable: true - name: - type: string - minLength: 1 - description: Internal field name - pattern: ^[a-z0-9_]+$ - maxLength: 50 - label: - type: string - description: Name of the field as displayed to users (if not provided, 'the - field's name will be used) - maxLength: 50 - group_name: - type: string - description: Custom fields within the same group will be displayed together - maxLength: 50 - description: - type: string - maxLength: 200 - required: - type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. - search_weight: - type: integer - maximum: 32767 - minimum: 0 - description: Weighting for search. Lower values are considered more important. - Fields with a search weight of zero will be ignored. - filter_logic: - enum: - - disabled - - loose - - exact - type: string - x-spec-enum-id: a958350ae21c10ee - description: 'Loose matches any instance of a given string; exact matches - the entire field. + * `6g-205-6975-20` - 205 (6975/20 MHz) + * `6g-207-6985-160` - 207 (6985/160 MHz) - * `disabled` - Disabled + * `6g-209-6995-20` - 209 (6995/20 MHz) - * `loose` - Loose + * `6g-211-7005-40` - 211 (7005/40 MHz) - * `exact` - Exact' - ui_visible: - enum: - - always - - if-set - - hidden - type: string - x-spec-enum-id: cd2cf94af56de747 - description: 'Specifies whether the custom field is displayed in the UI + * `6g-213-7015-20` - 213 (7015/20 MHz) + * `6g-215-7025-80` - 215 (7025/80 MHz) - * `always` - Always + * `6g-217-7035-20` - 217 (7035/20 MHz) - * `if-set` - If set + * `6g-219-7045-40` - 219 (7045/40 MHz) - * `hidden` - Hidden' - ui_editable: - enum: - - 'yes' - - 'no' - - hidden - type: string - x-spec-enum-id: 1065673147e26bb5 - description: 'Specifies whether the custom field value can be edited in - the UI + * `6g-221-7055-20` - 221 (7055/20 MHz) + * `6g-225-7075-20` - 225 (7075/20 MHz) - * `yes` - Yes + * `6g-227-7085-40` - 227 (7085/40 MHz) - * `no` - No + * `6g-229-7095-20` - 229 (7095/20 MHz) - * `hidden` - Hidden' - is_cloneable: - type: boolean - description: Replicate this value when cloning objects - default: - nullable: true - description: Default value for the field (must be a JSON value). Encapsulate - strings with double quotes (e.g. "Foo"). - weight: - type: integer - maximum: 32767 - minimum: 0 - title: Display weight - description: Fields with higher weights appear lower in a form. - validation_minimum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Minimum value - description: Minimum allowed value (for numeric fields) - validation_maximum: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true - title: Maximum value - description: Maximum allowed value (for numeric fields) - validation_regex: - type: string - description: Regular expression to enforce on text field values. Use ^ and - $ to force matching of entire string. For example, ^[A-Z]{3}$ - will limit values to exactly three uppercase letters. - maxLength: 500 - choice_set: - allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' - nullable: true - comments: - type: string - PatchedWritableDataSourceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - type: - type: string - minLength: 1 - maxLength: 50 - source_url: - type: string - minLength: 1 - title: URL - maxLength: 200 - enabled: - type: boolean - description: - type: string - maxLength: 200 - comments: - type: string - parameters: - nullable: true - ignore_rules: - type: string - description: Patterns (one per line) matching files to ignore when syncing - custom_fields: - type: object - additionalProperties: {} - PatchedWritableDeviceTypeRequest: - type: object - description: Adds support for custom fields and tags. - properties: - manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' - default_platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - model: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - part_number: - type: string - description: Discrete part number (optional) - maxLength: 50 - u_height: - type: number - format: double - maximum: 1000 - minimum: 0 - exclusiveMaximum: true - default: 1.0 - title: Position (U) - exclude_from_utilization: - type: boolean - description: Devices of this type are excluded when calculating rack utilization. - is_full_depth: - type: boolean - description: Device consumes both front and rear rack faces. - subdevice_role: - enum: - - parent - - child - - '' - type: string - x-spec-enum-id: d10d91f690a856c2 - title: Parent/child status - description: 'Parent devices house child devices in device bays. Leave blank - if this device type is neither a parent nor a child. + * `6g-233-7115-20` - 233 (7115/20 MHz) + * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) - * `parent` - Parent + * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) - * `child` - Child' - airflow: - enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed - - '' - type: string - description: '* `front-to-rear` - Front to rear + * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) - * `rear-to-front` - Rear to front + * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) - * `left-to-right` - Left to right + * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) - * `right-to-left` - Right to left + * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) - * `side-to-rear` - Side to rear + * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) - * `passive` - Passive + * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) - * `g` - Grams + * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) - * `lb` - Pounds + * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - front_image: - type: string - format: binary - rear_image: - type: string - format: binary - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableDeviceWithConfigContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - nullable: true - maxLength: 64 - device_type: - $ref: '#/components/schemas/DeviceTypeRequest' - role: - $ref: '#/components/schemas/DeviceRoleRequest' - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - serial: - type: string - title: Serial number - description: Chassis serial number, assigned by the manufacturer - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this device - maxLength: 50 - site: - $ref: '#/components/schemas/SiteRequest' - location: - allOf: - - $ref: '#/components/schemas/LocationRequest' - nullable: true - rack: - allOf: - - $ref: '#/components/schemas/RackRequest' - nullable: true - position: - type: number - format: double - maximum: 1000 - minimum: 0.5 - exclusiveMaximum: true - nullable: true - title: Position (U) - face: - enum: - - front - - rear - - '' - type: string - description: '* `front` - Front + * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) - * `rear` - Rear' - x-spec-enum-id: d2fb9b3f75158b83 - title: Rack face - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - status: - enum: - - offline - - active - - planned - - staged - - failed - - inventory - - decommissioning - type: string - description: '* `offline` - Offline + * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) - * `active` - Active + * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) - * `planned` - Planned + * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) - * `staged` - Staged + * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) - * `failed` - Failed + * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) - * `inventory` - Inventory + * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' + x-spec-enum-id: aac33cc237adc8f9 + title: Wireless channel + poe_mode: + enum: + - pd + - pse + - '' + type: string + description: '* `pd` - PD - * `decommissioning` - Decommissioning' - x-spec-enum-id: 8d8971779f16ee18 - airflow: + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: enum: - - front-to-rear - - rear-to-front - - left-to-right - - right-to-left - - side-to-rear - - passive - - mixed + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair - '' type: string - description: '* `front-to-rear` - Front to rear + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `rear-to-front` - Rear to front + * `type2-ieee802.3at` - 802.3at (Type 2) - * `left-to-right` - Left to right + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `right-to-left` - Right to left + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `side-to-rear` - Side to rear + * `passive-24v-2pair` - Passive 24V (2-pair) - * `passive` - Passive + * `passive-24v-4pair` - Passive 24V (4-pair) - * `mixed` - Mixed' - x-spec-enum-id: 58e389e240a5e53d - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - oob_ip: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/ClusterRequest' - nullable: true - virtual_chassis: - allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_channel_frequency: + type: number + format: double + maximum: 100000 + minimum: -100000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - vc_position: - type: integer - maximum: 255 - minimum: 0 + title: Channel frequency (MHz) + description: Populated by selected channel (if set) + rf_channel_width: + type: number + format: double + maximum: 10000 + minimum: -10000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - vc_priority: + title: Channel width (MHz) + description: Populated by selected channel (if set) + tx_power: type: integer - maximum: 255 + maximum: 127 minimum: 0 nullable: true - description: Virtual chassis master election priority - description: - type: string - maxLength: 200 - comments: - type: string - config_template: + title: Transmit power (dBm) + untagged_vlan: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true - local_context_data: + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context - tags: + tagged_vlans: type: array items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableEventRuleRequest: - type: object - description: Adds support for custom fields and tags. - properties: - object_types: + type: integer + mark_connected: + type: boolean + description: Treat as if a cable is connected + wireless_lans: type: array items: - type: string - name: - type: string - minLength: 1 - maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. - enabled: - type: boolean - conditions: - nullable: true - description: A set of conditions which determine whether the event will - be generated. - action_type: - enum: - - webhook - - script - type: string - description: '* `webhook` - Webhook - - * `script` - Script' - x-spec-enum-id: a08300d86473de6e - action_object_type: - type: string - action_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 + type: integer + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true - description: - type: string - maxLength: 200 - custom_fields: - type: object - additionalProperties: {} tags: type: array items: $ref: '#/components/schemas/NestedTagRequest' - PatchedWritableFrontPortRequest: + custom_fields: + type: object + additionalProperties: {} + PatchedWritableInterfaceTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -120828,564 +173626,487 @@ components: maxLength: 64 type: enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice + - virtual + - bridge + - lag + - 100base-fx + - 100base-lfx + - 100base-tx + - 100base-t1 + - 1000base-t + - 1000base-tx + - 2.5gbase-t + - 5gbase-t + - 10gbase-t + - 10gbase-cx4 + - 100base-x-sfp + - 1000base-x-gbic + - 1000base-x-sfp + - 10gbase-x-sfpp + - 10gbase-x-xfp + - 10gbase-x-xenpak + - 10gbase-x-x2 + - 25gbase-x-sfp28 + - 50gbase-x-sfp56 + - 40gbase-x-qsfpp + - 50gbase-x-sfp28 + - 100gbase-x-cfp + - 100gbase-x-cfp2 + - 200gbase-x-cfp2 + - 400gbase-x-cfp2 + - 100gbase-x-cfp4 + - 100gbase-x-cxp + - 100gbase-x-cpak + - 100gbase-x-dsfp + - 100gbase-x-sfpdd + - 100gbase-x-qsfp28 + - 100gbase-x-qsfpdd + - 200gbase-x-qsfp56 + - 200gbase-x-qsfpdd + - 400gbase-x-qsfp112 + - 400gbase-x-qsfpdd + - 400gbase-x-osfp + - 400gbase-x-osfp-rhs + - 400gbase-x-cdfp + - 400gbase-x-cfp8 + - 800gbase-x-qsfpdd + - 800gbase-x-osfp + - 1000base-kx + - 2.5gbase-kx + - 5gbase-kr + - 10gbase-kr + - 10gbase-kx4 + - 25gbase-kr + - 40gbase-kr4 + - 50gbase-kr + - 100gbase-kp4 + - 100gbase-kr2 + - 100gbase-kr4 + - ieee802.11a + - ieee802.11g + - ieee802.11n + - ieee802.11ac + - ieee802.11ad + - ieee802.11ax + - ieee802.11ay + - ieee802.11be + - ieee802.15.1 + - ieee802.15.4 + - other-wireless + - gsm + - cdma + - lte + - 4g + - 5g + - sonet-oc3 + - sonet-oc12 + - sonet-oc48 + - sonet-oc192 + - sonet-oc768 + - sonet-oc1920 + - sonet-oc3840 + - 1gfc-sfp + - 2gfc-sfp + - 4gfc-sfp + - 8gfc-sfpp + - 16gfc-sfpp + - 32gfc-sfp28 + - 32gfc-sfpp + - 64gfc-qsfpp + - 64gfc-sfpdd + - 64gfc-sfpp + - 128gfc-qsfp28 + - infiniband-sdr + - infiniband-ddr + - infiniband-qdr + - infiniband-fdr10 + - infiniband-fdr + - infiniband-edr + - infiniband-hdr + - infiniband-ndr + - infiniband-xdr + - t1 + - e1 + - t3 + - e3 + - xdsl + - docsis + - bpon + - epon + - 10g-epon + - gpon + - xg-pon + - xgs-pon + - ng-pon2 + - 25g-pon + - 50g-pon + - cisco-stackwise + - cisco-stackwise-plus + - cisco-flexstack + - cisco-flexstack-plus + - cisco-stackwise-80 + - cisco-stackwise-160 + - cisco-stackwise-320 + - cisco-stackwise-480 + - cisco-stackwise-1t + - juniper-vcp + - extreme-summitstack + - extreme-summitstack-128 + - extreme-summitstack-256 + - extreme-summitstack-512 - other type: string - description: '* `8p8c` - 8P8C + description: '* `virtual` - Virtual - * `8p6c` - 8P6C + * `bridge` - Bridge - * `8p4c` - 8P4C + * `lag` - Link Aggregation Group (LAG) - * `8p2c` - 8P2C + * `100base-fx` - 100BASE-FX (10/100ME FIBER) - * `6p6c` - 6P6C + * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - * `6p4c` - 6P4C + * `100base-tx` - 100BASE-TX (10/100ME) - * `6p2c` - 6P2C + * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - * `4p4c` - 4P4C + * `1000base-t` - 1000BASE-T (1GE) - * `4p2c` - 4P2C + * `1000base-tx` - 1000BASE-TX (1GE) - * `gg45` - GG45 + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - * `tera-4p` - TERA 4P + * `5gbase-t` - 5GBASE-T (5GE) - * `tera-2p` - TERA 2P + * `10gbase-t` - 10GBASE-T (10GE) - * `tera-1p` - TERA 1P + * `10gbase-cx4` - 10GBASE-CX4 (10GE) - * `110-punch` - 110 Punch + * `100base-x-sfp` - SFP (100ME) - * `bnc` - BNC + * `1000base-x-gbic` - GBIC (1GE) - * `f` - F Connector + * `1000base-x-sfp` - SFP (1GE) - * `n` - N Connector + * `10gbase-x-sfpp` - SFP+ (10GE) - * `mrj21` - MRJ21 + * `10gbase-x-xfp` - XFP (10GE) - * `fc` - FC + * `10gbase-x-xenpak` - XENPAK (10GE) - * `lc` - LC + * `10gbase-x-x2` - X2 (10GE) - * `lc-pc` - LC/PC + * `25gbase-x-sfp28` - SFP28 (25GE) - * `lc-upc` - LC/UPC + * `50gbase-x-sfp56` - SFP56 (50GE) - * `lc-apc` - LC/APC + * `40gbase-x-qsfpp` - QSFP+ (40GE) - * `lsh` - LSH + * `50gbase-x-sfp28` - QSFP28 (50GE) - * `lsh-pc` - LSH/PC + * `100gbase-x-cfp` - CFP (100GE) - * `lsh-upc` - LSH/UPC + * `100gbase-x-cfp2` - CFP2 (100GE) - * `lsh-apc` - LSH/APC + * `200gbase-x-cfp2` - CFP2 (200GE) - * `lx5` - LX.5 + * `400gbase-x-cfp2` - CFP2 (400GE) - * `lx5-pc` - LX.5/PC + * `100gbase-x-cfp4` - CFP4 (100GE) - * `lx5-upc` - LX.5/UPC + * `100gbase-x-cxp` - CXP (100GE) - * `lx5-apc` - LX.5/APC + * `100gbase-x-cpak` - Cisco CPAK (100GE) - * `mpo` - MPO + * `100gbase-x-dsfp` - DSFP (100GE) - * `mtrj` - MTRJ + * `100gbase-x-sfpdd` - SFP-DD (100GE) - * `sc` - SC + * `100gbase-x-qsfp28` - QSFP28 (100GE) - * `sc-pc` - SC/PC + * `100gbase-x-qsfpdd` - QSFP-DD (100GE) - * `sc-upc` - SC/UPC + * `200gbase-x-qsfp56` - QSFP56 (200GE) - * `sc-apc` - SC/APC + * `200gbase-x-qsfpdd` - QSFP-DD (200GE) - * `st` - ST + * `400gbase-x-qsfp112` - QSFP112 (400GE) - * `cs` - CS + * `400gbase-x-qsfpdd` - QSFP-DD (400GE) - * `sn` - SN + * `400gbase-x-osfp` - OSFP (400GE) - * `sma-905` - SMA 905 + * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) - * `sma-906` - SMA 906 + * `400gbase-x-cdfp` - CDFP (400GE) - * `urm-p2` - URM-P2 + * `400gbase-x-cfp8` - CPF8 (400GE) - * `urm-p4` - URM-P4 + * `800gbase-x-qsfpdd` - QSFP-DD (800GE) - * `urm-p8` - URM-P8 + * `800gbase-x-osfp` - OSFP (800GE) - * `splice` - Splice + * `1000base-kx` - 1000BASE-KX (1GE) - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - type: integer - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: Mapped position on corresponding rear port - description: - type: string - maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableFrontPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during + * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `8p8c` - 8P8C + * `5gbase-kr` - 5GBASE-KR (5GE) + + * `10gbase-kr` - 10GBASE-KR (10GE) - * `8p6c` - 8P6C + * `10gbase-kx4` - 10GBASE-KX4 (10GE) - * `8p4c` - 8P4C + * `25gbase-kr` - 25GBASE-KR (25GE) - * `8p2c` - 8P2C + * `40gbase-kr4` - 40GBASE-KR4 (40GE) - * `6p6c` - 6P6C + * `50gbase-kr` - 50GBASE-KR (50GE) - * `6p4c` - 6P4C + * `100gbase-kp4` - 100GBASE-KP4 (100GE) - * `6p2c` - 6P2C + * `100gbase-kr2` - 100GBASE-KR2 (100GE) - * `4p4c` - 4P4C + * `100gbase-kr4` - 100GBASE-KR4 (100GE) - * `4p2c` - 4P2C + * `ieee802.11a` - IEEE 802.11a - * `gg45` - GG45 + * `ieee802.11g` - IEEE 802.11b/g - * `tera-4p` - TERA 4P + * `ieee802.11n` - IEEE 802.11n - * `tera-2p` - TERA 2P + * `ieee802.11ac` - IEEE 802.11ac - * `tera-1p` - TERA 1P + * `ieee802.11ad` - IEEE 802.11ad - * `110-punch` - 110 Punch + * `ieee802.11ax` - IEEE 802.11ax - * `bnc` - BNC + * `ieee802.11ay` - IEEE 802.11ay - * `f` - F Connector + * `ieee802.11be` - IEEE 802.11be - * `n` - N Connector + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) - * `mrj21` - MRJ21 + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) - * `fc` - FC + * `other-wireless` - Other (Wireless) - * `lc` - LC + * `gsm` - GSM - * `lc-pc` - LC/PC + * `cdma` - CDMA - * `lc-upc` - LC/UPC + * `lte` - LTE - * `lc-apc` - LC/APC + * `4g` - 4G - * `lsh` - LSH + * `5g` - 5G - * `lsh-pc` - LSH/PC + * `sonet-oc3` - OC-3/STM-1 - * `lsh-upc` - LSH/UPC + * `sonet-oc12` - OC-12/STM-4 - * `lsh-apc` - LSH/APC + * `sonet-oc48` - OC-48/STM-16 - * `lx5` - LX.5 + * `sonet-oc192` - OC-192/STM-64 - * `lx5-pc` - LX.5/PC + * `sonet-oc768` - OC-768/STM-256 - * `lx5-upc` - LX.5/UPC + * `sonet-oc1920` - OC-1920/STM-640 - * `lx5-apc` - LX.5/APC + * `sonet-oc3840` - OC-3840/STM-1234 - * `mpo` - MPO + * `1gfc-sfp` - SFP (1GFC) - * `mtrj` - MTRJ + * `2gfc-sfp` - SFP (2GFC) - * `sc` - SC + * `4gfc-sfp` - SFP (4GFC) - * `sc-pc` - SC/PC + * `8gfc-sfpp` - SFP+ (8GFC) - * `sc-upc` - SC/UPC + * `16gfc-sfpp` - SFP+ (16GFC) - * `sc-apc` - SC/APC + * `32gfc-sfp28` - SFP28 (32GFC) - * `st` - ST + * `32gfc-sfpp` - SFP+ (32GFC) - * `cs` - CS + * `64gfc-qsfpp` - QSFP+ (64GFC) - * `sn` - SN + * `64gfc-sfpdd` - SFP-DD (64GFC) - * `sma-905` - SMA 905 + * `64gfc-sfpp` - SFP+ (64GFC) - * `sma-906` - SMA 906 + * `128gfc-qsfp28` - QSFP28 (128GFC) - * `urm-p2` - URM-P2 + * `infiniband-sdr` - SDR (2 Gbps) - * `urm-p4` - URM-P4 + * `infiniband-ddr` - DDR (4 Gbps) - * `urm-p8` - URM-P8 + * `infiniband-qdr` - QDR (8 Gbps) - * `splice` - Splice + * `infiniband-fdr10` - FDR10 (10 Gbps) - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' - rear_port_position: - type: integer - maximum: 1024 - minimum: 1 - default: 1 - description: - type: string - maxLength: 200 - PatchedWritableIKEPolicyRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - version: - enum: - - 1 - - 2 - type: integer - description: '* `1` - IKEv1 + * `infiniband-fdr` - FDR (13.5 Gbps) - * `2` - IKEv2' - x-spec-enum-id: 00872b77916a1fde - minimum: 0 - maximum: 32767 - mode: - enum: - - aggressive - - main - - '' - type: string - description: '* `aggressive` - Aggressive + * `infiniband-edr` - EDR (25 Gbps) - * `main` - Main' - x-spec-enum-id: 64c1be7bdb2548ca - proposals: - type: array - items: - type: integer - preshared_key: - type: string - title: Pre-shared key - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIKEProposalRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - authentication_method: - enum: - - preshared-keys - - certificates - - rsa-signatures - - dsa-signatures - type: string - description: '* `preshared-keys` - Pre-shared keys + * `infiniband-hdr` - HDR (50 Gbps) - * `certificates` - Certificates + * `infiniband-ndr` - NDR (100 Gbps) - * `rsa-signatures` - RSA signatures + * `infiniband-xdr` - XDR (250 Gbps) - * `dsa-signatures` - DSA signatures' - x-spec-enum-id: 92bb2f1103b3a262 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) + * `t1` - T1 (1.544 Mbps) - * `aes-128-gcm` - 128-bit AES (GCM) + * `e1` - E1 (2.048 Mbps) - * `aes-192-cbc` - 192-bit AES (CBC) + * `t3` - T3 (45 Mbps) - * `aes-192-gcm` - 192-bit AES (GCM) + * `e3` - E3 (34 Mbps) - * `aes-256-cbc` - 256-bit AES (CBC) + * `xdsl` - xDSL - * `aes-256-gcm` - 256-bit AES (GCM) + * `docsis` - DOCSIS - * `3des-cbc` - 3DES + * `bpon` - BPON (622 Mbps / 155 Mbps) - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - authentication_algorithm: - enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 - - '' - type: string - description: '* `hmac-sha1` - SHA-1 HMAC + * `epon` - EPON (1 Gbps) - * `hmac-sha256` - SHA-256 HMAC + * `10g-epon` - 10G-EPON (10 Gbps) - * `hmac-sha384` - SHA-384 HMAC + * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) - * `hmac-sha512` - SHA-512 HMAC + * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 - description: 'Diffie-Hellman group ID + * `xgs-pon` - XGS-PON (10 Gbps) + * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) - * `1` - Group 1 + * `25g-pon` - 25G-PON (25 Gbps) - * `2` - Group 2 + * `50g-pon` - 50G-PON (50 Gbps) - * `5` - Group 5 + * `cisco-stackwise` - Cisco StackWise - * `14` - Group 14 + * `cisco-stackwise-plus` - Cisco StackWise Plus - * `15` - Group 15 + * `cisco-flexstack` - Cisco FlexStack - * `16` - Group 16 + * `cisco-flexstack-plus` - Cisco FlexStack Plus - * `17` - Group 17 + * `cisco-stackwise-80` - Cisco StackWise-80 - * `18` - Group 18 + * `cisco-stackwise-160` - Cisco StackWise-160 - * `19` - Group 19 + * `cisco-stackwise-320` - Cisco StackWise-320 - * `20` - Group 20 + * `cisco-stackwise-480` - Cisco StackWise-480 - * `21` - Group 21 + * `cisco-stackwise-1t` - Cisco StackWise-1T - * `22` - Group 22 + * `juniper-vcp` - Juniper VCP - * `23` - Group 23 + * `extreme-summitstack` - Extreme SummitStack - * `24` - Group 24 + * `extreme-summitstack-128` - Extreme SummitStack-128 - * `25` - Group 25 + * `extreme-summitstack-256` - Extreme SummitStack-256 - * `26` - Group 26 + * `extreme-summitstack-512` - Extreme SummitStack-512 - * `27` - Group 27 + * `other` - Other' + x-spec-enum-id: 56365107f9c2326f + enabled: + type: boolean + mgmt_only: + type: boolean + title: Management only + description: + type: string + maxLength: 200 + bridge: + type: integer + nullable: true + title: Bridge interface + poe_mode: + enum: + - pd + - pse + - '' + type: string + description: '* `pd` - PD - * `28` - Group 28 + * `pse` - PSE' + x-spec-enum-id: 2f2fe6dcdc7772bd + poe_type: + enum: + - type1-ieee802.3af + - type2-ieee802.3at + - type3-ieee802.3bt + - type4-ieee802.3bt + - passive-24v-2pair + - passive-24v-4pair + - passive-48v-2pair + - passive-48v-4pair + - '' + type: string + description: '* `type1-ieee802.3af` - 802.3af (Type 1) - * `29` - Group 29 + * `type2-ieee802.3at` - 802.3at (Type 2) - * `30` - Group 30 + * `type3-ieee802.3bt` - 802.3bt (Type 3) - * `31` - Group 31 + * `type4-ieee802.3bt` - 802.3bt (Type 4) - * `32` - Group 32 + * `passive-24v-2pair` - Passive 24V (2-pair) - * `33` - Group 33 + * `passive-24v-4pair` - Passive 24V (4-pair) - * `34` - Group 34' - minimum: 0 - maximum: 32767 - sa_lifetime: + * `passive-48v-2pair` - Passive 48V (2-pair) + + * `passive-48v-4pair` - Passive 48V (4-pair)' + x-spec-enum-id: 74bd3be4012f6da9 + rf_role: + enum: + - ap + - station + - '' + type: string + description: '* `ap` - Access point + + * `station` - Station' + x-spec-enum-id: d2772dbea88b0fb1 + title: Wireless role + PatchedWritableJournalEntryRequest: + type: object + description: Adds support for custom fields and tags. + properties: + assigned_object_type: + type: string + assigned_object_id: type: integer - maximum: 2147483647 + maximum: 9223372036854775807 minimum: 0 + format: int64 + created_by: + type: integer nullable: true - description: Security association lifetime (in seconds) + kind: + enum: + - info + - success + - warning + - danger + type: string + description: '* `info` - Info + + * `success` - Success + + * `warning` - Warning + + * `danger` - Danger' + x-spec-enum-id: a21af280f632fa34 comments: type: string + minLength: 1 tags: type: array items: @@ -121393,92 +174114,182 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPAddressRequest: + PatchedWritableL2VPNRequest: type: object description: Adds support for custom fields and tags. properties: - address: + identifier: + type: integer + maximum: 9223372036854775807 + minimum: -9223372036854775808 + format: int64 + nullable: true + name: type: string minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + type: enum: - - active - - reserved - - deprecated - - dhcp - - slaac + - vpws + - vpls + - vxlan + - vxlan-evpn + - mpls-evpn + - pbb-evpn + - epl + - evpl + - ep-lan + - evp-lan + - ep-tree + - evp-tree type: string - x-spec-enum-id: 24935cfee15bd268 - description: 'The operational status of this IP + description: '* `vpws` - VPWS + * `vpls` - VPLS - * `active` - Active + * `vxlan` - VXLAN - * `reserved` - Reserved + * `vxlan-evpn` - VXLAN-EVPN - * `deprecated` - Deprecated + * `mpls-evpn` - MPLS EVPN - * `dhcp` - DHCP + * `pbb-evpn` - PBB EVPN - * `slaac` - SLAAC' - role: + * `epl` - EPL + + * `evpl` - EVPL + + * `ep-lan` - Ethernet Private LAN + + * `evp-lan` - Ethernet Virtual Private LAN + + * `ep-tree` - Ethernet Private Tree + + * `evp-tree` - Ethernet Virtual Private Tree' + x-spec-enum-id: dbaa4f996ec2d110 + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableLocationRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + site: + $ref: '#/components/schemas/BriefSiteRequest' + parent: + type: integer + nullable: true + status: enum: - - loopback - - secondary - - anycast - - vip - - vrrp - - hsrp - - glbp - - carp - - '' + - planned + - staging + - active + - decommissioning + - retired type: string - x-spec-enum-id: 10fbcb4930889b0f - description: 'The functional role of this IP + description: '* `planned` - Planned + * `staging` - Staging - * `loopback` - Loopback + * `active` - Active - * `secondary` - Secondary + * `decommissioning` - Decommissioning - * `anycast` - Anycast + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableModuleRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module_bay: + type: integer + module_type: + $ref: '#/components/schemas/BriefModuleTypeRequest' + status: + enum: + - offline + - active + - planned + - staged + - failed + - decommissioning + type: string + description: '* `offline` - Offline - * `vip` - VIP + * `active` - Active - * `vrrp` - VRRP + * `planned` - Planned - * `hsrp` - HSRP + * `staged` - Staged - * `glbp` - GLBP + * `failed` - Failed - * `carp` - CARP' - assigned_object_type: + * `decommissioning` - Decommissioning' + x-spec-enum-id: 2217e87d0c3efdda + serial: type: string - nullable: true - assigned_object_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - nat_inside: - type: integer - nullable: true - title: NAT (inside) - description: The IP for which this address is the "outside" IP - dns_name: + title: Serial number + maxLength: 50 + asset_tag: type: string - description: Hostname or FQDN (not case-sensitive) - pattern: ^([0-9A-Za-z_-]+|\*)(\.[0-9A-Za-z_-]+)*\.?$ - maxLength: 255 + nullable: true + description: A unique tag used to identify this device + maxLength: 50 description: type: string maxLength: 200 @@ -121491,43 +174302,66 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableIPRangeRequest: + PatchedWritableModuleTypeRequest: type: object description: Adds support for custom fields and tags. properties: - start_address: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: type: string minLength: 1 - end_address: + maxLength: 100 + part_number: type: string - minLength: 1 - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: + description: Discrete part number (optional) + maxLength: 50 + airflow: enum: - - active - - reserved - - deprecated + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this range + description: '* `front-to-rear` - Front to rear + * `rear-to-front` - Rear to front - * `active` - Active + * `left-to-right` - Left to right - * `reserved` - Reserved + * `right-to-left` - Right to left - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 @@ -121540,223 +174374,439 @@ components: custom_fields: type: object additionalProperties: {} - mark_utilized: - type: boolean - description: Treat as fully utilized - PatchedWritableIPSecPolicyRequest: + PatchedWritablePowerFeedRequest: type: object description: Adds support for custom fields and tags. properties: + power_panel: + $ref: '#/components/schemas/BriefPowerPanelRequest' + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true name: type: string minLength: 1 maxLength: 100 + status: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline + + * `active` - Active + + * `planned` - Planned + + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary + + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 - proposals: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: type: array items: - type: integer - pfs_group: - enum: - - 1 - - 2 - - 5 - - 14 - - 15 - - 16 - - 17 - - 18 - - 19 - - 20 - - 21 - - 22 - - 23 - - 24 - - 25 - - 26 - - 27 - - 28 - - 29 - - 30 - - 31 - - 32 - - 33 - - 34 - type: integer - x-spec-enum-id: dbef43be795462a8 + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritablePowerOutletRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true - description: 'Diffie-Hellman group for Perfect Forward Secrecy + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + x-spec-enum-id: f8c08053f2db8830 + description: 'Physical port type - * `1` - Group 1 + * `iec-60320-c5` - C5 - * `2` - Group 2 + * `iec-60320-c7` - C7 - * `5` - Group 5 + * `iec-60320-c13` - C13 - * `14` - Group 14 + * `iec-60320-c15` - C15 - * `15` - Group 15 + * `iec-60320-c19` - C19 - * `16` - Group 16 + * `iec-60320-c21` - C21 - * `17` - Group 17 + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `18` - Group 18 + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `19` - Group 19 + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `20` - Group 20 + * `iec-60309-2p-e-4h` - 2P+E 4H + + * `iec-60309-2p-e-6h` - 2P+E 6H + + * `iec-60309-2p-e-9h` - 2P+E 9H + + * `iec-60309-3p-e-4h` - 3P+E 4H + + * `iec-60309-3p-e-6h` - 3P+E 6H + + * `iec-60309-3p-e-9h` - 3P+E 9H + + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + + * `iec-60906-1` - IEC 60906-1 + + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + + * `nema-1-15r` - NEMA 1-15R + + * `nema-5-15r` - NEMA 5-15R + + * `nema-5-20r` - NEMA 5-20R + + * `nema-5-30r` - NEMA 5-30R + + * `nema-5-50r` - NEMA 5-50R + + * `nema-6-15r` - NEMA 6-15R + + * `nema-6-20r` - NEMA 6-20R + + * `nema-6-30r` - NEMA 6-30R + + * `nema-6-50r` - NEMA 6-50R + + * `nema-10-30r` - NEMA 10-30R + + * `nema-10-50r` - NEMA 10-50R + + * `nema-14-20r` - NEMA 14-20R + + * `nema-14-30r` - NEMA 14-30R + + * `nema-14-50r` - NEMA 14-50R + + * `nema-14-60r` - NEMA 14-60R + + * `nema-15-15r` - NEMA 15-15R + + * `nema-15-20r` - NEMA 15-20R + + * `nema-15-30r` - NEMA 15-30R + + * `nema-15-50r` - NEMA 15-50R + + * `nema-15-60r` - NEMA 15-60R + + * `nema-l1-15r` - NEMA L1-15R + + * `nema-l5-15r` - NEMA L5-15R + + * `nema-l5-20r` - NEMA L5-20R + + * `nema-l5-30r` - NEMA L5-30R + + * `nema-l5-50r` - NEMA L5-50R + + * `nema-l6-15r` - NEMA L6-15R + + * `nema-l6-20r` - NEMA L6-20R + + * `nema-l6-30r` - NEMA L6-30R + + * `nema-l6-50r` - NEMA L6-50R + + * `nema-l10-30r` - NEMA L10-30R + + * `nema-l14-20r` - NEMA L14-20R + + * `nema-l14-30r` - NEMA L14-30R + + * `nema-l14-50r` - NEMA L14-50R + + * `nema-l14-60r` - NEMA L14-60R + + * `nema-l15-20r` - NEMA L15-20R + + * `nema-l15-30r` - NEMA L15-30R + + * `nema-l15-50r` - NEMA L15-50R + + * `nema-l15-60r` - NEMA L15-60R + + * `nema-l21-20r` - NEMA L21-20R + + * `nema-l21-30r` - NEMA L21-30R + + * `nema-l22-20r` - NEMA L22-20R + + * `nema-l22-30r` - NEMA L22-30R + + * `CS6360C` - CS6360C + + * `CS6364C` - CS6364C + + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K - * `21` - Group 21 + * `ita-l` - ITA Type L (CEI 23-50) - * `22` - Group 22 + * `ita-m` - ITA Type M (BS 546) - * `23` - Group 23 + * `ita-n` - ITA Type N - * `24` - Group 24 + * `ita-o` - ITA Type O - * `25` - Group 25 + * `ita-multistandard` - ITA Multistandard - * `26` - Group 26 + * `usb-a` - USB Type A - * `27` - Group 27 + * `usb-micro-b` - USB Micro B - * `28` - Group 28 + * `usb-c` - USB Type C - * `29` - Group 29 + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `30` - Group 30 + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `31` - Group 31 + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `32` - Group 32 + * `dc-terminal` - DC Terminal - * `33` - Group 33 + * `eaton-c39` - Eaton C39 - * `34` - Group 34' - minimum: 0 - maximum: 32767 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProfileRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - mode: - enum: - - esp - - ah - type: string - description: '* `esp` - ESP + * `hdot-cx` - HDOT Cx - * `ah` - AH' - x-spec-enum-id: 1136c2cdfee84436 - ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' - ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableIPSecProposalRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - encryption_algorithm: - enum: - - aes-128-cbc - - aes-128-gcm - - aes-192-cbc - - aes-192-gcm - - aes-256-cbc - - aes-256-gcm - - 3des-cbc - - des-cbc - - '' - type: string - description: '* `aes-128-cbc` - 128-bit AES (CBC) + * `saf-d-grid` - Saf-D-Grid - * `aes-128-gcm` - 128-bit AES (GCM) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `aes-192-cbc` - 192-bit AES (CBC) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `aes-192-gcm` - 192-bit AES (GCM) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `aes-256-cbc` - 256-bit AES (CBC) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `aes-256-gcm` - 256-bit AES (GCM) + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `3des-cbc` - 3DES + * `hardwired` - Hardwired - * `des-cbc` - DES' - x-spec-enum-id: b022535cfdee79fe - title: Encryption - authentication_algorithm: + * `other` - Other' + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortRequest' + nullable: true + feed_leg: enum: - - hmac-sha1 - - hmac-sha256 - - hmac-sha384 - - hmac-sha512 - - hmac-md5 + - A + - B + - C - '' type: string - description: '* `hmac-sha1` - SHA-1 HMAC + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `hmac-sha256` - SHA-256 HMAC - * `hmac-sha384` - SHA-384 HMAC + * `A` - A - * `hmac-sha512` - SHA-512 HMAC + * `B` - B - * `hmac-md5` - MD5 HMAC' - x-spec-enum-id: 0830e8839f5dea4f - title: Authentication - sa_lifetime_seconds: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (seconds) - description: Security association lifetime (seconds) - sa_lifetime_data: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: SA lifetime (KB) - description: Security association lifetime (in kilobytes) - comments: + * `C` - C' + description: type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -121764,23 +174814,26 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceRequest: + PatchedWritablePowerOutletTemplateRequest: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - device: - $ref: '#/components/schemas/DeviceRequest' - vdcs: - type: array - items: - type: integer - module: + device_type: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' maxLength: 64 label: type: string @@ -121788,1140 +174841,1298 @@ components: maxLength: 64 type: enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired - other + - '' type: string - description: '* `virtual` - Virtual - - * `bridge` - Bridge - - * `lag` - Link Aggregation Group (LAG) - - * `100base-fx` - 100BASE-FX (10/100ME FIBER) - - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) - - * `100base-tx` - 100BASE-TX (10/100ME) - - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) - - * `1000base-t` - 1000BASE-T (1GE) - - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) - - * `5gbase-t` - 5GBASE-T (5GE) - - * `10gbase-t` - 10GBASE-T (10GE) - - * `10gbase-cx4` - 10GBASE-CX4 (10GE) - - * `1000base-x-gbic` - GBIC (1GE) - - * `1000base-x-sfp` - SFP (1GE) - - * `10gbase-x-sfpp` - SFP+ (10GE) - - * `10gbase-x-xfp` - XFP (10GE) - - * `10gbase-x-xenpak` - XENPAK (10GE) - - * `10gbase-x-x2` - X2 (10GE) - - * `25gbase-x-sfp28` - SFP28 (25GE) - - * `50gbase-x-sfp56` - SFP56 (50GE) - - * `40gbase-x-qsfpp` - QSFP+ (40GE) - - * `50gbase-x-sfp28` - QSFP28 (50GE) - - * `100gbase-x-cfp` - CFP (100GE) - - * `100gbase-x-cfp2` - CFP2 (100GE) - - * `200gbase-x-cfp2` - CFP2 (200GE) - - * `400gbase-x-cfp2` - CFP2 (400GE) - - * `100gbase-x-cfp4` - CFP4 (100GE) - - * `100gbase-x-cxp` - CXP (100GE) + description: '* `iec-60320-c5` - C5 - * `100gbase-x-cpak` - Cisco CPAK (100GE) + * `iec-60320-c7` - C7 - * `100gbase-x-dsfp` - DSFP (100GE) + * `iec-60320-c13` - C13 - * `100gbase-x-sfpdd` - SFP-DD (100GE) + * `iec-60320-c15` - C15 - * `100gbase-x-qsfp28` - QSFP28 (100GE) + * `iec-60320-c19` - C19 - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + * `iec-60320-c21` - C21 - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `400gbase-x-osfp` - OSFP (400GE) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `400gbase-x-cdfp` - CDFP (400GE) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `400gbase-x-cfp8` - CPF8 (400GE) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `800gbase-x-osfp` - OSFP (800GE) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `1000base-kx` - 1000BASE-KX (1GE) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `5gbase-kr` - 5GBASE-KR (5GE) + * `iec-60906-1` - IEC 60906-1 - * `10gbase-kr` - 10GBASE-KR (10GE) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `25gbase-kr` - 25GBASE-KR (25GE) + * `nema-1-15r` - NEMA 1-15R - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `nema-5-15r` - NEMA 5-15R - * `50gbase-kr` - 50GBASE-KR (50GE) + * `nema-5-20r` - NEMA 5-20R - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `nema-5-30r` - NEMA 5-30R - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `nema-5-50r` - NEMA 5-50R - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `nema-6-15r` - NEMA 6-15R - * `ieee802.11a` - IEEE 802.11a + * `nema-6-20r` - NEMA 6-20R - * `ieee802.11g` - IEEE 802.11b/g + * `nema-6-30r` - NEMA 6-30R - * `ieee802.11n` - IEEE 802.11n + * `nema-6-50r` - NEMA 6-50R - * `ieee802.11ac` - IEEE 802.11ac + * `nema-10-30r` - NEMA 10-30R - * `ieee802.11ad` - IEEE 802.11ad + * `nema-10-50r` - NEMA 10-50R - * `ieee802.11ax` - IEEE 802.11ax + * `nema-14-20r` - NEMA 14-20R - * `ieee802.11ay` - IEEE 802.11ay + * `nema-14-30r` - NEMA 14-30R - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `nema-14-50r` - NEMA 14-50R - * `other-wireless` - Other (Wireless) + * `nema-14-60r` - NEMA 14-60R - * `gsm` - GSM + * `nema-15-15r` - NEMA 15-15R - * `cdma` - CDMA + * `nema-15-20r` - NEMA 15-20R - * `lte` - LTE + * `nema-15-30r` - NEMA 15-30R - * `4g` - 4G + * `nema-15-50r` - NEMA 15-50R - * `5g` - 5G + * `nema-15-60r` - NEMA 15-60R - * `sonet-oc3` - OC-3/STM-1 + * `nema-l1-15r` - NEMA L1-15R - * `sonet-oc12` - OC-12/STM-4 + * `nema-l5-15r` - NEMA L5-15R - * `sonet-oc48` - OC-48/STM-16 + * `nema-l5-20r` - NEMA L5-20R - * `sonet-oc192` - OC-192/STM-64 + * `nema-l5-30r` - NEMA L5-30R - * `sonet-oc768` - OC-768/STM-256 + * `nema-l5-50r` - NEMA L5-50R - * `sonet-oc1920` - OC-1920/STM-640 + * `nema-l6-15r` - NEMA L6-15R - * `sonet-oc3840` - OC-3840/STM-1234 + * `nema-l6-20r` - NEMA L6-20R - * `1gfc-sfp` - SFP (1GFC) + * `nema-l6-30r` - NEMA L6-30R - * `2gfc-sfp` - SFP (2GFC) + * `nema-l6-50r` - NEMA L6-50R - * `4gfc-sfp` - SFP (4GFC) + * `nema-l10-30r` - NEMA L10-30R - * `8gfc-sfpp` - SFP+ (8GFC) + * `nema-l14-20r` - NEMA L14-20R - * `16gfc-sfpp` - SFP+ (16GFC) + * `nema-l14-30r` - NEMA L14-30R - * `32gfc-sfp28` - SFP28 (32GFC) + * `nema-l14-50r` - NEMA L14-50R - * `32gfc-sfpp` - SFP+ (32GFC) + * `nema-l14-60r` - NEMA L14-60R - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `nema-l15-20r` - NEMA L15-20R - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `nema-l15-30r` - NEMA L15-30R - * `64gfc-sfpp` - SFP+ (64GFC) + * `nema-l15-50r` - NEMA L15-50R - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `nema-l15-60r` - NEMA L15-60R - * `infiniband-sdr` - SDR (2 Gbps) + * `nema-l21-20r` - NEMA L21-20R - * `infiniband-ddr` - DDR (4 Gbps) + * `nema-l21-30r` - NEMA L21-30R - * `infiniband-qdr` - QDR (8 Gbps) + * `nema-l22-20r` - NEMA L22-20R - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `nema-l22-30r` - NEMA L22-30R - * `infiniband-fdr` - FDR (13.5 Gbps) + * `CS6360C` - CS6360C - * `infiniband-edr` - EDR (25 Gbps) + * `CS6364C` - CS6364C - * `infiniband-hdr` - HDR (50 Gbps) + * `CS8164C` - CS8164C - * `infiniband-ndr` - NDR (100 Gbps) + * `CS8264C` - CS8264C - * `infiniband-xdr` - XDR (250 Gbps) + * `CS8364C` - CS8364C - * `t1` - T1 (1.544 Mbps) + * `CS8464C` - CS8464C - * `e1` - E1 (2.048 Mbps) + * `ita-e` - ITA Type E (CEE 7/5) - * `t3` - T3 (45 Mbps) + * `ita-f` - ITA Type F (CEE 7/3) - * `e3` - E3 (34 Mbps) + * `ita-g` - ITA Type G (BS 1363) - * `xdsl` - xDSL + * `ita-h` - ITA Type H - * `docsis` - DOCSIS + * `ita-i` - ITA Type I - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `ita-j` - ITA Type J - * `epon` - EPON (1 Gbps) + * `ita-k` - ITA Type K - * `10g-epon` - 10G-EPON (10 Gbps) + * `ita-l` - ITA Type L (CEI 23-50) - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `ita-m` - ITA Type M (BS 546) - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `ita-n` - ITA Type N - * `xgs-pon` - XGS-PON (10 Gbps) + * `ita-o` - ITA Type O - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `ita-multistandard` - ITA Multistandard - * `25g-pon` - 25G-PON (25 Gbps) + * `usb-a` - USB Type A - * `50g-pon` - 50G-PON (50 Gbps) + * `usb-micro-b` - USB Micro B - * `cisco-stackwise` - Cisco StackWise + * `usb-c` - USB Type C - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `cisco-flexstack` - Cisco FlexStack + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `cisco-stackwise-80` - Cisco StackWise-80 + * `dc-terminal` - DC Terminal - * `cisco-stackwise-160` - Cisco StackWise-160 + * `eaton-c39` - Eaton C39 - * `cisco-stackwise-320` - Cisco StackWise-320 + * `hdot-cx` - HDOT Cx - * `cisco-stackwise-480` - Cisco StackWise-480 + * `saf-d-grid` - Saf-D-Grid - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `juniper-vcp` - Juniper VCP + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `extreme-summitstack` - Extreme SummitStack + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - lag: - type: integer - nullable: true - title: Parent LAG - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - speed: - type: integer - maximum: 2147483647 - minimum: 0 + x-spec-enum-id: f8c08053f2db8830 + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true - title: Speed (Kbps) - duplex: + feed_leg: enum: - - half - - full - - auto + - A + - B + - C - '' type: string - description: '* `half` - Half + x-spec-enum-id: a4902339df0b7c06 + description: 'Phase (for three-phase feeds) - * `full` - Full - * `auto` - Auto' - x-spec-enum-id: 47eab9b1a65a1e21 - nullable: true - wwn: - type: string - nullable: true - mgmt_only: - type: boolean - title: Management only - description: This interface is used only for out-of-band management + * `A` - A + + * `B` - B + + * `C` - C' description: type: string maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' + PatchedWritablePowerPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy - - - * `access` - Access - - * `tagged` - Tagged - - * `tagged-all` - Tagged (All)' - rf_role: - enum: - - ap - - station - - '' + minLength: 1 + maxLength: 64 + label: type: string - description: '* `ap` - Access point - - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - rf_channel: + description: Physical label + maxLength: 64 + type: enum: - - 2.4g-1-2412-22 - - 2.4g-2-2417-22 - - 2.4g-3-2422-22 - - 2.4g-4-2427-22 - - 2.4g-5-2432-22 - - 2.4g-6-2437-22 - - 2.4g-7-2442-22 - - 2.4g-8-2447-22 - - 2.4g-9-2452-22 - - 2.4g-10-2457-22 - - 2.4g-11-2462-22 - - 2.4g-12-2467-22 - - 2.4g-13-2472-22 - - 5g-32-5160-20 - - 5g-34-5170-40 - - 5g-36-5180-20 - - 5g-38-5190-40 - - 5g-40-5200-20 - - 5g-42-5210-80 - - 5g-44-5220-20 - - 5g-46-5230-40 - - 5g-48-5240-20 - - 5g-50-5250-160 - - 5g-52-5260-20 - - 5g-54-5270-40 - - 5g-56-5280-20 - - 5g-58-5290-80 - - 5g-60-5300-20 - - 5g-62-5310-40 - - 5g-64-5320-20 - - 5g-100-5500-20 - - 5g-102-5510-40 - - 5g-104-5520-20 - - 5g-106-5530-80 - - 5g-108-5540-20 - - 5g-110-5550-40 - - 5g-112-5560-20 - - 5g-114-5570-160 - - 5g-116-5580-20 - - 5g-118-5590-40 - - 5g-120-5600-20 - - 5g-122-5610-80 - - 5g-124-5620-20 - - 5g-126-5630-40 - - 5g-128-5640-20 - - 5g-132-5660-20 - - 5g-134-5670-40 - - 5g-136-5680-20 - - 5g-138-5690-80 - - 5g-140-5700-20 - - 5g-142-5710-40 - - 5g-144-5720-20 - - 5g-149-5745-20 - - 5g-151-5755-40 - - 5g-153-5765-20 - - 5g-155-5775-80 - - 5g-157-5785-20 - - 5g-159-5795-40 - - 5g-161-5805-20 - - 5g-163-5815-160 - - 5g-165-5825-20 - - 5g-167-5835-40 - - 5g-169-5845-20 - - 5g-171-5855-80 - - 5g-173-5865-20 - - 5g-175-5875-40 - - 5g-177-5885-20 - - 6g-1-5955-20 - - 6g-3-5965-40 - - 6g-5-5975-20 - - 6g-7-5985-80 - - 6g-9-5995-20 - - 6g-11-6005-40 - - 6g-13-6015-20 - - 6g-15-6025-160 - - 6g-17-6035-20 - - 6g-19-6045-40 - - 6g-21-6055-20 - - 6g-23-6065-80 - - 6g-25-6075-20 - - 6g-27-6085-40 - - 6g-29-6095-20 - - 6g-31-6105-320 - - 6g-33-6115-20 - - 6g-35-6125-40 - - 6g-37-6135-20 - - 6g-39-6145-80 - - 6g-41-6155-20 - - 6g-43-6165-40 - - 6g-45-6175-20 - - 6g-47-6185-160 - - 6g-49-6195-20 - - 6g-51-6205-40 - - 6g-53-6215-20 - - 6g-55-6225-80 - - 6g-57-6235-20 - - 6g-59-6245-40 - - 6g-61-6255-20 - - 6g-65-6275-20 - - 6g-67-6285-40 - - 6g-69-6295-20 - - 6g-71-6305-80 - - 6g-73-6315-20 - - 6g-75-6325-40 - - 6g-77-6335-20 - - 6g-79-6345-160 - - 6g-81-6355-20 - - 6g-83-6365-40 - - 6g-85-6375-20 - - 6g-87-6385-80 - - 6g-89-6395-20 - - 6g-91-6405-40 - - 6g-93-6415-20 - - 6g-95-6425-320 - - 6g-97-6435-20 - - 6g-99-6445-40 - - 6g-101-6455-20 - - 6g-103-6465-80 - - 6g-105-6475-20 - - 6g-107-6485-40 - - 6g-109-6495-20 - - 6g-111-6505-160 - - 6g-113-6515-20 - - 6g-115-6525-40 - - 6g-117-6535-20 - - 6g-119-6545-80 - - 6g-121-6555-20 - - 6g-123-6565-40 - - 6g-125-6575-20 - - 6g-129-6595-20 - - 6g-131-6605-40 - - 6g-133-6615-20 - - 6g-135-6625-80 - - 6g-137-6635-20 - - 6g-139-6645-40 - - 6g-141-6655-20 - - 6g-143-6665-160 - - 6g-145-6675-20 - - 6g-147-6685-40 - - 6g-149-6695-20 - - 6g-151-6705-80 - - 6g-153-6715-20 - - 6g-155-6725-40 - - 6g-157-6735-20 - - 6g-159-6745-320 - - 6g-161-6755-20 - - 6g-163-6765-40 - - 6g-165-6775-20 - - 6g-167-6785-80 - - 6g-169-6795-20 - - 6g-171-6805-40 - - 6g-173-6815-20 - - 6g-175-6825-160 - - 6g-177-6835-20 - - 6g-179-6845-40 - - 6g-181-6855-20 - - 6g-183-6865-80 - - 6g-185-6875-20 - - 6g-187-6885-40 - - 6g-189-6895-20 - - 6g-193-6915-20 - - 6g-195-6925-40 - - 6g-197-6935-20 - - 6g-199-6945-80 - - 6g-201-6955-20 - - 6g-203-6965-40 - - 6g-205-6975-20 - - 6g-207-6985-160 - - 6g-209-6995-20 - - 6g-211-7005-40 - - 6g-213-7015-20 - - 6g-215-7025-80 - - 6g-217-7035-20 - - 6g-219-7045-40 - - 6g-221-7055-20 - - 6g-225-7075-20 - - 6g-227-7085-40 - - 6g-229-7095-20 - - 6g-233-7115-20 - - 60g-1-58320-2160 - - 60g-2-60480-2160 - - 60g-3-62640-2160 - - 60g-4-64800-2160 - - 60g-5-66960-2160 - - 60g-6-69120-2160 - - 60g-9-59400-4320 - - 60g-10-61560-4320 - - 60g-11-63720-4320 - - 60g-12-65880-4320 - - 60g-13-68040-4320 - - 60g-17-60480-6480 - - 60g-18-62640-6480 - - 60g-19-64800-6480 - - 60g-20-66960-6480 - - 60g-25-61560-6480 - - 60g-26-63720-6480 - - 60g-27-65880-6480 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other - '' type: string - description: '* `2.4g-1-2412-22` - 1 (2412 MHz) + x-spec-enum-id: f1bd4aedff3a591b + description: 'Physical port type - * `2.4g-2-2417-22` - 2 (2417 MHz) - * `2.4g-3-2422-22` - 3 (2422 MHz) + * `iec-60320-c6` - C6 - * `2.4g-4-2427-22` - 4 (2427 MHz) + * `iec-60320-c8` - C8 - * `2.4g-5-2432-22` - 5 (2432 MHz) + * `iec-60320-c14` - C14 - * `2.4g-6-2437-22` - 6 (2437 MHz) + * `iec-60320-c16` - C16 - * `2.4g-7-2442-22` - 7 (2442 MHz) + * `iec-60320-c20` - C20 - * `2.4g-8-2447-22` - 8 (2447 MHz) + * `iec-60320-c22` - C22 - * `2.4g-9-2452-22` - 9 (2452 MHz) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `2.4g-10-2457-22` - 10 (2457 MHz) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `2.4g-11-2462-22` - 11 (2462 MHz) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `2.4g-12-2467-22` - 12 (2467 MHz) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `2.4g-13-2472-22` - 13 (2472 MHz) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `5g-32-5160-20` - 32 (5160/20 MHz) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `5g-34-5170-40` - 34 (5170/40 MHz) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `5g-36-5180-20` - 36 (5180/20 MHz) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `5g-38-5190-40` - 38 (5190/40 MHz) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `5g-40-5200-20` - 40 (5200/20 MHz) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `5g-42-5210-80` - 42 (5210/80 MHz) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `5g-44-5220-20` - 44 (5220/20 MHz) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `5g-46-5230-40` - 46 (5230/40 MHz) + * `iec-60906-1` - IEC 60906-1 - * `5g-48-5240-20` - 48 (5240/20 MHz) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `5g-50-5250-160` - 50 (5250/160 MHz) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `5g-52-5260-20` - 52 (5260/20 MHz) + * `nema-1-15p` - NEMA 1-15P - * `5g-54-5270-40` - 54 (5270/40 MHz) + * `nema-5-15p` - NEMA 5-15P - * `5g-56-5280-20` - 56 (5280/20 MHz) + * `nema-5-20p` - NEMA 5-20P - * `5g-58-5290-80` - 58 (5290/80 MHz) + * `nema-5-30p` - NEMA 5-30P - * `5g-60-5300-20` - 60 (5300/20 MHz) + * `nema-5-50p` - NEMA 5-50P - * `5g-62-5310-40` - 62 (5310/40 MHz) + * `nema-6-15p` - NEMA 6-15P - * `5g-64-5320-20` - 64 (5320/20 MHz) + * `nema-6-20p` - NEMA 6-20P - * `5g-100-5500-20` - 100 (5500/20 MHz) + * `nema-6-30p` - NEMA 6-30P - * `5g-102-5510-40` - 102 (5510/40 MHz) + * `nema-6-50p` - NEMA 6-50P - * `5g-104-5520-20` - 104 (5520/20 MHz) + * `nema-10-30p` - NEMA 10-30P - * `5g-106-5530-80` - 106 (5530/80 MHz) + * `nema-10-50p` - NEMA 10-50P - * `5g-108-5540-20` - 108 (5540/20 MHz) + * `nema-14-20p` - NEMA 14-20P - * `5g-110-5550-40` - 110 (5550/40 MHz) + * `nema-14-30p` - NEMA 14-30P - * `5g-112-5560-20` - 112 (5560/20 MHz) + * `nema-14-50p` - NEMA 14-50P - * `5g-114-5570-160` - 114 (5570/160 MHz) + * `nema-14-60p` - NEMA 14-60P - * `5g-116-5580-20` - 116 (5580/20 MHz) + * `nema-15-15p` - NEMA 15-15P - * `5g-118-5590-40` - 118 (5590/40 MHz) + * `nema-15-20p` - NEMA 15-20P - * `5g-120-5600-20` - 120 (5600/20 MHz) + * `nema-15-30p` - NEMA 15-30P - * `5g-122-5610-80` - 122 (5610/80 MHz) + * `nema-15-50p` - NEMA 15-50P - * `5g-124-5620-20` - 124 (5620/20 MHz) + * `nema-15-60p` - NEMA 15-60P - * `5g-126-5630-40` - 126 (5630/40 MHz) + * `nema-l1-15p` - NEMA L1-15P - * `5g-128-5640-20` - 128 (5640/20 MHz) + * `nema-l5-15p` - NEMA L5-15P - * `5g-132-5660-20` - 132 (5660/20 MHz) + * `nema-l5-20p` - NEMA L5-20P - * `5g-134-5670-40` - 134 (5670/40 MHz) + * `nema-l5-30p` - NEMA L5-30P - * `5g-136-5680-20` - 136 (5680/20 MHz) + * `nema-l5-50p` - NEMA L5-50P - * `5g-138-5690-80` - 138 (5690/80 MHz) + * `nema-l6-15p` - NEMA L6-15P - * `5g-140-5700-20` - 140 (5700/20 MHz) + * `nema-l6-20p` - NEMA L6-20P - * `5g-142-5710-40` - 142 (5710/40 MHz) + * `nema-l6-30p` - NEMA L6-30P - * `5g-144-5720-20` - 144 (5720/20 MHz) + * `nema-l6-50p` - NEMA L6-50P - * `5g-149-5745-20` - 149 (5745/20 MHz) + * `nema-l10-30p` - NEMA L10-30P - * `5g-151-5755-40` - 151 (5755/40 MHz) + * `nema-l14-20p` - NEMA L14-20P - * `5g-153-5765-20` - 153 (5765/20 MHz) + * `nema-l14-30p` - NEMA L14-30P - * `5g-155-5775-80` - 155 (5775/80 MHz) + * `nema-l14-50p` - NEMA L14-50P - * `5g-157-5785-20` - 157 (5785/20 MHz) + * `nema-l14-60p` - NEMA L14-60P - * `5g-159-5795-40` - 159 (5795/40 MHz) + * `nema-l15-20p` - NEMA L15-20P - * `5g-161-5805-20` - 161 (5805/20 MHz) + * `nema-l15-30p` - NEMA L15-30P - * `5g-163-5815-160` - 163 (5815/160 MHz) + * `nema-l15-50p` - NEMA L15-50P - * `5g-165-5825-20` - 165 (5825/20 MHz) + * `nema-l15-60p` - NEMA L15-60P - * `5g-167-5835-40` - 167 (5835/40 MHz) + * `nema-l21-20p` - NEMA L21-20P - * `5g-169-5845-20` - 169 (5845/20 MHz) + * `nema-l21-30p` - NEMA L21-30P - * `5g-171-5855-80` - 171 (5855/80 MHz) + * `nema-l22-20p` - NEMA L22-20P - * `5g-173-5865-20` - 173 (5865/20 MHz) + * `nema-l22-30p` - NEMA L22-30P - * `5g-175-5875-40` - 175 (5875/40 MHz) + * `cs6361c` - CS6361C - * `5g-177-5885-20` - 177 (5885/20 MHz) + * `cs6365c` - CS6365C - * `6g-1-5955-20` - 1 (5955/20 MHz) + * `cs8165c` - CS8165C - * `6g-3-5965-40` - 3 (5965/40 MHz) + * `cs8265c` - CS8265C - * `6g-5-5975-20` - 5 (5975/20 MHz) + * `cs8365c` - CS8365C - * `6g-7-5985-80` - 7 (5985/80 MHz) + * `cs8465c` - CS8465C - * `6g-9-5995-20` - 9 (5995/20 MHz) + * `ita-c` - ITA Type C (CEE 7/16) - * `6g-11-6005-40` - 11 (6005/40 MHz) + * `ita-e` - ITA Type E (CEE 7/6) - * `6g-13-6015-20` - 13 (6015/20 MHz) + * `ita-f` - ITA Type F (CEE 7/4) - * `6g-15-6025-160` - 15 (6025/160 MHz) + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `6g-17-6035-20` - 17 (6035/20 MHz) + * `ita-g` - ITA Type G (BS 1363) - * `6g-19-6045-40` - 19 (6045/40 MHz) + * `ita-h` - ITA Type H - * `6g-21-6055-20` - 21 (6055/20 MHz) + * `ita-i` - ITA Type I - * `6g-23-6065-80` - 23 (6065/80 MHz) + * `ita-j` - ITA Type J - * `6g-25-6075-20` - 25 (6075/20 MHz) + * `ita-k` - ITA Type K - * `6g-27-6085-40` - 27 (6085/40 MHz) + * `ita-l` - ITA Type L (CEI 23-50) - * `6g-29-6095-20` - 29 (6095/20 MHz) + * `ita-m` - ITA Type M (BS 546) - * `6g-31-6105-320` - 31 (6105/320 MHz) + * `ita-n` - ITA Type N - * `6g-33-6115-20` - 33 (6115/20 MHz) + * `ita-o` - ITA Type O - * `6g-35-6125-40` - 35 (6125/40 MHz) + * `usb-a` - USB Type A - * `6g-37-6135-20` - 37 (6135/20 MHz) + * `usb-b` - USB Type B - * `6g-39-6145-80` - 39 (6145/80 MHz) + * `usb-c` - USB Type C - * `6g-41-6155-20` - 41 (6155/20 MHz) + * `usb-mini-a` - USB Mini A - * `6g-43-6165-40` - 43 (6165/40 MHz) + * `usb-mini-b` - USB Mini B - * `6g-45-6175-20` - 45 (6175/20 MHz) + * `usb-micro-a` - USB Micro A - * `6g-47-6185-160` - 47 (6185/160 MHz) + * `usb-micro-b` - USB Micro B - * `6g-49-6195-20` - 49 (6195/20 MHz) + * `usb-micro-ab` - USB Micro AB - * `6g-51-6205-40` - 51 (6205/40 MHz) + * `usb-3-b` - USB 3.0 Type B - * `6g-53-6215-20` - 53 (6215/20 MHz) + * `usb-3-micro-b` - USB 3.0 Micro B - * `6g-55-6225-80` - 55 (6225/80 MHz) + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `6g-57-6235-20` - 57 (6235/20 MHz) + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `6g-59-6245-40` - 59 (6245/40 MHz) + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `6g-61-6255-20` - 61 (6255/20 MHz) + * `dc-terminal` - DC Terminal - * `6g-65-6275-20` - 65 (6275/20 MHz) + * `saf-d-grid` - Saf-D-Grid - * `6g-67-6285-40` - 67 (6285/40 MHz) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `6g-69-6295-20` - 69 (6295/20 MHz) + * `neutrik-powercon-32` - Neutrik powerCON (32A) - * `6g-71-6305-80` - 71 (6305/80 MHz) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `6g-73-6315-20` - 73 (6315/20 MHz) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `6g-75-6325-40` - 75 (6325/40 MHz) + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `6g-77-6335-20` - 77 (6335/20 MHz) + * `hardwired` - Hardwired - * `6g-79-6345-160` - 79 (6345/160 MHz) + * `other` - Other' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritablePowerPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `6g-81-6355-20` - 81 (6355/20 MHz) + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c + - ita-e + - ita-f + - ita-ef + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - saf-d-grid + - neutrik-powercon-20 + - neutrik-powercon-32 + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c6` - C6 - * `6g-83-6365-40` - 83 (6365/40 MHz) + * `iec-60320-c8` - C8 - * `6g-85-6375-20` - 85 (6375/20 MHz) + * `iec-60320-c14` - C14 - * `6g-87-6385-80` - 87 (6385/80 MHz) + * `iec-60320-c16` - C16 - * `6g-89-6395-20` - 89 (6395/20 MHz) + * `iec-60320-c20` - C20 - * `6g-91-6405-40` - 91 (6405/40 MHz) + * `iec-60320-c22` - C22 - * `6g-93-6415-20` - 93 (6415/20 MHz) + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `6g-95-6425-320` - 95 (6425/320 MHz) + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `6g-97-6435-20` - 97 (6435/20 MHz) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `6g-99-6445-40` - 99 (6445/40 MHz) + * `iec-60309-2p-e-4h` - 2P+E 4H - * `6g-101-6455-20` - 101 (6455/20 MHz) + * `iec-60309-2p-e-6h` - 2P+E 6H - * `6g-103-6465-80` - 103 (6465/80 MHz) + * `iec-60309-2p-e-9h` - 2P+E 9H - * `6g-105-6475-20` - 105 (6475/20 MHz) + * `iec-60309-3p-e-4h` - 3P+E 4H - * `6g-107-6485-40` - 107 (6485/40 MHz) + * `iec-60309-3p-e-6h` - 3P+E 6H - * `6g-109-6495-20` - 109 (6495/20 MHz) + * `iec-60309-3p-e-9h` - 3P+E 9H - * `6g-111-6505-160` - 111 (6505/160 MHz) + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `6g-113-6515-20` - 113 (6515/20 MHz) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `6g-115-6525-40` - 115 (6525/40 MHz) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `6g-117-6535-20` - 117 (6535/20 MHz) + * `iec-60906-1` - IEC 60906-1 - * `6g-119-6545-80` - 119 (6545/80 MHz) + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `6g-121-6555-20` - 121 (6555/20 MHz) + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `6g-123-6565-40` - 123 (6565/40 MHz) + * `nema-1-15p` - NEMA 1-15P - * `6g-125-6575-20` - 125 (6575/20 MHz) + * `nema-5-15p` - NEMA 5-15P - * `6g-129-6595-20` - 129 (6595/20 MHz) + * `nema-5-20p` - NEMA 5-20P - * `6g-131-6605-40` - 131 (6605/40 MHz) + * `nema-5-30p` - NEMA 5-30P - * `6g-133-6615-20` - 133 (6615/20 MHz) + * `nema-5-50p` - NEMA 5-50P - * `6g-135-6625-80` - 135 (6625/80 MHz) + * `nema-6-15p` - NEMA 6-15P - * `6g-137-6635-20` - 137 (6635/20 MHz) + * `nema-6-20p` - NEMA 6-20P - * `6g-139-6645-40` - 139 (6645/40 MHz) + * `nema-6-30p` - NEMA 6-30P - * `6g-141-6655-20` - 141 (6655/20 MHz) + * `nema-6-50p` - NEMA 6-50P - * `6g-143-6665-160` - 143 (6665/160 MHz) + * `nema-10-30p` - NEMA 10-30P - * `6g-145-6675-20` - 145 (6675/20 MHz) + * `nema-10-50p` - NEMA 10-50P - * `6g-147-6685-40` - 147 (6685/40 MHz) + * `nema-14-20p` - NEMA 14-20P - * `6g-149-6695-20` - 149 (6695/20 MHz) + * `nema-14-30p` - NEMA 14-30P - * `6g-151-6705-80` - 151 (6705/80 MHz) + * `nema-14-50p` - NEMA 14-50P - * `6g-153-6715-20` - 153 (6715/20 MHz) + * `nema-14-60p` - NEMA 14-60P - * `6g-155-6725-40` - 155 (6725/40 MHz) + * `nema-15-15p` - NEMA 15-15P - * `6g-157-6735-20` - 157 (6735/20 MHz) + * `nema-15-20p` - NEMA 15-20P - * `6g-159-6745-320` - 159 (6745/320 MHz) + * `nema-15-30p` - NEMA 15-30P - * `6g-161-6755-20` - 161 (6755/20 MHz) + * `nema-15-50p` - NEMA 15-50P - * `6g-163-6765-40` - 163 (6765/40 MHz) + * `nema-15-60p` - NEMA 15-60P - * `6g-165-6775-20` - 165 (6775/20 MHz) + * `nema-l1-15p` - NEMA L1-15P - * `6g-167-6785-80` - 167 (6785/80 MHz) + * `nema-l5-15p` - NEMA L5-15P - * `6g-169-6795-20` - 169 (6795/20 MHz) + * `nema-l5-20p` - NEMA L5-20P - * `6g-171-6805-40` - 171 (6805/40 MHz) + * `nema-l5-30p` - NEMA L5-30P - * `6g-173-6815-20` - 173 (6815/20 MHz) + * `nema-l5-50p` - NEMA L5-50P - * `6g-175-6825-160` - 175 (6825/160 MHz) + * `nema-l6-15p` - NEMA L6-15P - * `6g-177-6835-20` - 177 (6835/20 MHz) + * `nema-l6-20p` - NEMA L6-20P - * `6g-179-6845-40` - 179 (6845/40 MHz) + * `nema-l6-30p` - NEMA L6-30P - * `6g-181-6855-20` - 181 (6855/20 MHz) + * `nema-l6-50p` - NEMA L6-50P - * `6g-183-6865-80` - 183 (6865/80 MHz) + * `nema-l10-30p` - NEMA L10-30P - * `6g-185-6875-20` - 185 (6875/20 MHz) + * `nema-l14-20p` - NEMA L14-20P - * `6g-187-6885-40` - 187 (6885/40 MHz) + * `nema-l14-30p` - NEMA L14-30P - * `6g-189-6895-20` - 189 (6895/20 MHz) + * `nema-l14-50p` - NEMA L14-50P - * `6g-193-6915-20` - 193 (6915/20 MHz) + * `nema-l14-60p` - NEMA L14-60P - * `6g-195-6925-40` - 195 (6925/40 MHz) + * `nema-l15-20p` - NEMA L15-20P - * `6g-197-6935-20` - 197 (6935/20 MHz) + * `nema-l15-30p` - NEMA L15-30P - * `6g-199-6945-80` - 199 (6945/80 MHz) + * `nema-l15-50p` - NEMA L15-50P - * `6g-201-6955-20` - 201 (6955/20 MHz) + * `nema-l15-60p` - NEMA L15-60P - * `6g-203-6965-40` - 203 (6965/40 MHz) + * `nema-l21-20p` - NEMA L21-20P - * `6g-205-6975-20` - 205 (6975/20 MHz) + * `nema-l21-30p` - NEMA L21-30P - * `6g-207-6985-160` - 207 (6985/160 MHz) + * `nema-l22-20p` - NEMA L22-20P - * `6g-209-6995-20` - 209 (6995/20 MHz) + * `nema-l22-30p` - NEMA L22-30P - * `6g-211-7005-40` - 211 (7005/40 MHz) + * `cs6361c` - CS6361C - * `6g-213-7015-20` - 213 (7015/20 MHz) + * `cs6365c` - CS6365C - * `6g-215-7025-80` - 215 (7025/80 MHz) + * `cs8165c` - CS8165C - * `6g-217-7035-20` - 217 (7035/20 MHz) + * `cs8265c` - CS8265C - * `6g-219-7045-40` - 219 (7045/40 MHz) + * `cs8365c` - CS8365C - * `6g-221-7055-20` - 221 (7055/20 MHz) + * `cs8465c` - CS8465C - * `6g-225-7075-20` - 225 (7075/20 MHz) + * `ita-c` - ITA Type C (CEE 7/16) - * `6g-227-7085-40` - 227 (7085/40 MHz) + * `ita-e` - ITA Type E (CEE 7/6) - * `6g-229-7095-20` - 229 (7095/20 MHz) + * `ita-f` - ITA Type F (CEE 7/4) - * `6g-233-7115-20` - 233 (7115/20 MHz) + * `ita-ef` - ITA Type E/F (CEE 7/7) - * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) + * `ita-g` - ITA Type G (BS 1363) - * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) + * `ita-h` - ITA Type H - * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) + * `ita-i` - ITA Type I - * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) + * `ita-j` - ITA Type J - * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) + * `ita-k` - ITA Type K - * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) + * `ita-l` - ITA Type L (CEI 23-50) - * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) + * `ita-m` - ITA Type M (BS 546) - * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) + * `ita-n` - ITA Type N - * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) + * `ita-o` - ITA Type O - * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) + * `usb-a` - USB Type A - * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) + * `usb-b` - USB Type B - * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) + * `usb-c` - USB Type C - * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) + * `usb-mini-a` - USB Mini A - * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) + * `usb-mini-b` - USB Mini B - * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) + * `usb-micro-a` - USB Micro A - * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) + * `usb-micro-b` - USB Micro B - * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) + * `usb-micro-ab` - USB Micro AB - * `60g-27-65880-6480` - 27 (65.88/8.64 GHz)' - x-spec-enum-id: aac33cc237adc8f9 - title: Wireless channel - poe_mode: + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f1bd4aedff3a591b + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 + nullable: true + description: Allocated power draw (watts) + description: + type: string + maxLength: 200 + PatchedWritablePrefixRequest: + type: object + description: Adds support for custom fields and tags. + properties: + prefix: + type: string + minLength: 1 + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + status: enum: - - pd - - pse - - '' + - container + - active + - reserved + - deprecated type: string - description: '* `pd` - PD + x-spec-enum-id: d38bee5f512701d9 + description: 'Operational status of this prefix - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + + * `container` - Container + + * `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true + is_pool: + type: boolean + title: Is a pool + description: All IP addresses within this prefix are considered usable + mark_utilized: + type: boolean + description: Treat as fully utilized + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical - '' type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) + description: '* `2-post-frame` - 2-post frame - * `type2-ieee802.3at` - 802.3at (Type 2) + * `4-post-frame` - 4-post frame - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `4-post-cabinet` - 4-post cabinet - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `wall-frame` - Wall-mounted frame - * `passive-24v-2pair` - Passive 24V (2-pair) + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `passive-24v-4pair` - Passive 24V (4-pair) + * `wall-cabinet` - Wall-mounted cabinet - * `passive-48v-2pair` - Passive 48V (2-pair) + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_channel_frequency: + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: type: number format: double - maximum: 100000 - minimum: -100000 + maximum: 1000000 + minimum: -1000000 exclusiveMaximum: true exclusiveMinimum: true nullable: true - title: Channel frequency (MHz) - description: Populated by selected channel (if set) - rf_channel_width: - type: number - format: double - maximum: 10000 - minimum: -10000 - exclusiveMaximum: true - exclusiveMinimum: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 nullable: true - title: Channel width (MHz) - description: Populated by selected channel (if set) - tx_power: + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: type: integer - maximum: 127 + maximum: 32767 minimum: 0 nullable: true - title: Transmit power (dBm) - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 nullable: true - tagged_vlans: - type: array - items: - type: integer - mark_connected: - type: boolean - description: Treat as if a cable is connected - wireless_lans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + description: + type: string + maxLength: 200 + comments: + type: string tags: type: array items: @@ -122929,502 +176140,977 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableInterfaceTemplateRequest: + PatchedWritableRackTypeRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: - allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' - nullable: true - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: type: string - description: Physical label - maxLength: 64 - type: - enum: - - virtual - - bridge - - lag - - 100base-fx - - 100base-lfx - - 100base-tx - - 100base-t1 - - 1000base-t - - 2.5gbase-t - - 5gbase-t - - 10gbase-t - - 10gbase-cx4 - - 1000base-x-gbic - - 1000base-x-sfp - - 10gbase-x-sfpp - - 10gbase-x-xfp - - 10gbase-x-xenpak - - 10gbase-x-x2 - - 25gbase-x-sfp28 - - 50gbase-x-sfp56 - - 40gbase-x-qsfpp - - 50gbase-x-sfp28 - - 100gbase-x-cfp - - 100gbase-x-cfp2 - - 200gbase-x-cfp2 - - 400gbase-x-cfp2 - - 100gbase-x-cfp4 - - 100gbase-x-cxp - - 100gbase-x-cpak - - 100gbase-x-dsfp - - 100gbase-x-sfpdd - - 100gbase-x-qsfp28 - - 100gbase-x-qsfpdd - - 200gbase-x-qsfp56 - - 200gbase-x-qsfpdd - - 400gbase-x-qsfp112 - - 400gbase-x-qsfpdd - - 400gbase-x-osfp - - 400gbase-x-osfp-rhs - - 400gbase-x-cdfp - - 400gbase-x-cfp8 - - 800gbase-x-qsfpdd - - 800gbase-x-osfp - - 1000base-kx - - 2.5gbase-kx - - 5gbase-kr - - 10gbase-kr - - 10gbase-kx4 - - 25gbase-kr - - 40gbase-kr4 - - 50gbase-kr - - 100gbase-kp4 - - 100gbase-kr2 - - 100gbase-kr4 - - ieee802.11a - - ieee802.11g - - ieee802.11n - - ieee802.11ac - - ieee802.11ad - - ieee802.11ax - - ieee802.11ay - - ieee802.15.1 - - other-wireless - - gsm - - cdma - - lte - - 4g - - 5g - - sonet-oc3 - - sonet-oc12 - - sonet-oc48 - - sonet-oc192 - - sonet-oc768 - - sonet-oc1920 - - sonet-oc3840 - - 1gfc-sfp - - 2gfc-sfp - - 4gfc-sfp - - 8gfc-sfpp - - 16gfc-sfpp - - 32gfc-sfp28 - - 32gfc-sfpp - - 64gfc-qsfpp - - 64gfc-sfpdd - - 64gfc-sfpp - - 128gfc-qsfp28 - - infiniband-sdr - - infiniband-ddr - - infiniband-qdr - - infiniband-fdr10 - - infiniband-fdr - - infiniband-edr - - infiniband-hdr - - infiniband-ndr - - infiniband-xdr - - t1 - - e1 - - t3 - - e3 - - xdsl - - docsis - - bpon - - epon - - 10g-epon - - gpon - - xg-pon - - xgs-pon - - ng-pon2 - - 25g-pon - - 50g-pon - - cisco-stackwise - - cisco-stackwise-plus - - cisco-flexstack - - cisco-flexstack-plus - - cisco-stackwise-80 - - cisco-stackwise-160 - - cisco-stackwise-320 - - cisco-stackwise-480 - - cisco-stackwise-1t - - juniper-vcp - - extreme-summitstack - - extreme-summitstack-128 - - extreme-summitstack-256 - - extreme-summitstack-512 - - other + minLength: 1 + maxLength: 100 + slug: type: string - description: '* `virtual` - Virtual + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `2-post-frame` - 2-post frame - * `bridge` - Bridge + * `4-post-frame` - 4-post frame - * `lag` - Link Aggregation Group (LAG) + * `4-post-cabinet` - 4-post cabinet - * `100base-fx` - 100BASE-FX (10/100ME FIBER) + * `wall-frame` - Wall-mounted frame - * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) + * `wall-frame-vertical` - Wall-mounted frame (vertical) - * `100base-tx` - 100BASE-TX (10/100ME) + * `wall-cabinet` - Wall-mounted cabinet - * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width - * `1000base-t` - 1000BASE-T (1GE) - * `2.5gbase-t` - 2.5GBASE-T (2.5GE) + * `10` - 10 inches - * `5gbase-t` - 5GBASE-T (5GE) + * `19` - 19 inches - * `10gbase-t` - 10GBASE-T (10GE) + * `21` - 21 inches - * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters - * `1000base-x-gbic` - GBIC (1GE) + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms - * `1000base-x-sfp` - SFP (1GE) + * `g` - Grams - * `10gbase-x-sfpp` - SFP+ (10GE) + * `lb` - Pounds - * `10gbase-x-xfp` - XFP (10GE) + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: + allOf: + - $ref: '#/components/schemas/BriefModuleRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C - * `10gbase-x-xenpak` - XENPAK (10GE) + * `8p6c` - 8P6C - * `10gbase-x-x2` - X2 (10GE) + * `8p4c` - 8P4C - * `25gbase-x-sfp28` - SFP28 (25GE) + * `8p2c` - 8P2C - * `50gbase-x-sfp56` - SFP56 (50GE) + * `6p6c` - 6P6C - * `40gbase-x-qsfpp` - QSFP+ (40GE) + * `6p4c` - 6P4C - * `50gbase-x-sfp28` - QSFP28 (50GE) + * `6p2c` - 6P2C - * `100gbase-x-cfp` - CFP (100GE) + * `4p4c` - 4P4C - * `100gbase-x-cfp2` - CFP2 (100GE) + * `4p2c` - 4P2C - * `200gbase-x-cfp2` - CFP2 (200GE) + * `gg45` - GG45 - * `400gbase-x-cfp2` - CFP2 (400GE) + * `tera-4p` - TERA 4P - * `100gbase-x-cfp4` - CFP4 (100GE) + * `tera-2p` - TERA 2P - * `100gbase-x-cxp` - CXP (100GE) + * `tera-1p` - TERA 1P - * `100gbase-x-cpak` - Cisco CPAK (100GE) + * `110-punch` - 110 Punch - * `100gbase-x-dsfp` - DSFP (100GE) + * `bnc` - BNC - * `100gbase-x-sfpdd` - SFP-DD (100GE) + * `f` - F Connector - * `100gbase-x-qsfp28` - QSFP28 (100GE) + * `n` - N Connector - * `100gbase-x-qsfpdd` - QSFP-DD (100GE) + * `mrj21` - MRJ21 - * `200gbase-x-qsfp56` - QSFP56 (200GE) + * `fc` - FC - * `200gbase-x-qsfpdd` - QSFP-DD (200GE) + * `lc` - LC - * `400gbase-x-qsfp112` - QSFP112 (400GE) + * `lc-pc` - LC/PC - * `400gbase-x-qsfpdd` - QSFP-DD (400GE) + * `lc-upc` - LC/UPC - * `400gbase-x-osfp` - OSFP (400GE) + * `lc-apc` - LC/APC - * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) + * `lsh` - LSH - * `400gbase-x-cdfp` - CDFP (400GE) + * `lsh-pc` - LSH/PC - * `400gbase-x-cfp8` - CPF8 (400GE) + * `lsh-upc` - LSH/UPC - * `800gbase-x-qsfpdd` - QSFP-DD (800GE) + * `lsh-apc` - LSH/APC - * `800gbase-x-osfp` - OSFP (800GE) + * `lx5` - LX.5 - * `1000base-kx` - 1000BASE-KX (1GE) + * `lx5-pc` - LX.5/PC - * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) + * `lx5-upc` - LX.5/UPC - * `5gbase-kr` - 5GBASE-KR (5GE) + * `lx5-apc` - LX.5/APC - * `10gbase-kr` - 10GBASE-KR (10GE) + * `mpo` - MPO - * `10gbase-kx4` - 10GBASE-KX4 (10GE) + * `mtrj` - MTRJ - * `25gbase-kr` - 25GBASE-KR (25GE) + * `sc` - SC - * `40gbase-kr4` - 40GBASE-KR4 (40GE) + * `sc-pc` - SC/PC - * `50gbase-kr` - 50GBASE-KR (50GE) + * `sc-upc` - SC/UPC - * `100gbase-kp4` - 100GBASE-KP4 (100GE) + * `sc-apc` - SC/APC - * `100gbase-kr2` - 100GBASE-KR2 (100GE) + * `st` - ST - * `100gbase-kr4` - 100GBASE-KR4 (100GE) + * `cs` - CS - * `ieee802.11a` - IEEE 802.11a + * `sn` - SN - * `ieee802.11g` - IEEE 802.11b/g + * `sma-905` - SMA 905 - * `ieee802.11n` - IEEE 802.11n + * `sma-906` - SMA 906 - * `ieee802.11ac` - IEEE 802.11ac + * `urm-p2` - URM-P2 - * `ieee802.11ad` - IEEE 802.11ad + * `urm-p4` - URM-P4 - * `ieee802.11ax` - IEEE 802.11ax + * `urm-p8` - URM-P8 - * `ieee802.11ay` - IEEE 802.11ay + * `splice` - Splice - * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `usb-a` - USB Type A - * `other-wireless` - Other (Wireless) + * `usb-b` - USB Type B - * `gsm` - GSM + * `usb-c` - USB Type C - * `cdma` - CDMA + * `usb-mini-a` - USB Mini A - * `lte` - LTE + * `usb-mini-b` - USB Mini B - * `4g` - 4G + * `usb-micro-a` - USB Micro A - * `5g` - 5G + * `usb-micro-b` - USB Micro B - * `sonet-oc3` - OC-3/STM-1 + * `usb-micro-ab` - USB Micro AB - * `sonet-oc12` - OC-12/STM-4 + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 + description: Number of front ports which may be mapped + description: + type: string + maxLength: 200 + mark_connected: + type: boolean + description: Treat as if a cable is connected + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableRearPortTemplateRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during - * `sonet-oc48` - OC-48/STM-16 + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true + name: + type: string + minLength: 1 + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C - * `sonet-oc192` - OC-192/STM-64 + * `8p6c` - 8P6C - * `sonet-oc768` - OC-768/STM-256 + * `8p4c` - 8P4C - * `sonet-oc1920` - OC-1920/STM-640 + * `8p2c` - 8P2C - * `sonet-oc3840` - OC-3840/STM-1234 + * `6p6c` - 6P6C - * `1gfc-sfp` - SFP (1GFC) + * `6p4c` - 6P4C - * `2gfc-sfp` - SFP (2GFC) + * `6p2c` - 6P2C - * `4gfc-sfp` - SFP (4GFC) + * `4p4c` - 4P4C - * `8gfc-sfpp` - SFP+ (8GFC) + * `4p2c` - 4P2C - * `16gfc-sfpp` - SFP+ (16GFC) + * `gg45` - GG45 - * `32gfc-sfp28` - SFP28 (32GFC) + * `tera-4p` - TERA 4P - * `32gfc-sfpp` - SFP+ (32GFC) + * `tera-2p` - TERA 2P - * `64gfc-qsfpp` - QSFP+ (64GFC) + * `tera-1p` - TERA 1P - * `64gfc-sfpdd` - SFP-DD (64GFC) + * `110-punch` - 110 Punch - * `64gfc-sfpp` - SFP+ (64GFC) + * `bnc` - BNC - * `128gfc-qsfp28` - QSFP28 (128GFC) + * `f` - F Connector - * `infiniband-sdr` - SDR (2 Gbps) + * `n` - N Connector - * `infiniband-ddr` - DDR (4 Gbps) + * `mrj21` - MRJ21 - * `infiniband-qdr` - QDR (8 Gbps) + * `fc` - FC - * `infiniband-fdr10` - FDR10 (10 Gbps) + * `lc` - LC - * `infiniband-fdr` - FDR (13.5 Gbps) + * `lc-pc` - LC/PC - * `infiniband-edr` - EDR (25 Gbps) + * `lc-upc` - LC/UPC - * `infiniband-hdr` - HDR (50 Gbps) + * `lc-apc` - LC/APC - * `infiniband-ndr` - NDR (100 Gbps) + * `lsh` - LSH - * `infiniband-xdr` - XDR (250 Gbps) + * `lsh-pc` - LSH/PC - * `t1` - T1 (1.544 Mbps) + * `lsh-upc` - LSH/UPC - * `e1` - E1 (2.048 Mbps) + * `lsh-apc` - LSH/APC - * `t3` - T3 (45 Mbps) + * `lx5` - LX.5 - * `e3` - E3 (34 Mbps) + * `lx5-pc` - LX.5/PC - * `xdsl` - xDSL + * `lx5-upc` - LX.5/UPC - * `docsis` - DOCSIS + * `lx5-apc` - LX.5/APC - * `bpon` - BPON (622 Mbps / 155 Mbps) + * `mpo` - MPO - * `epon` - EPON (1 Gbps) + * `mtrj` - MTRJ - * `10g-epon` - 10G-EPON (10 Gbps) + * `sc` - SC - * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) + * `sc-pc` - SC/PC - * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) + * `sc-upc` - SC/UPC - * `xgs-pon` - XGS-PON (10 Gbps) + * `sc-apc` - SC/APC - * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) + * `st` - ST - * `25g-pon` - 25G-PON (25 Gbps) + * `cs` - CS - * `50g-pon` - 50G-PON (50 Gbps) + * `sn` - SN - * `cisco-stackwise` - Cisco StackWise + * `sma-905` - SMA 905 - * `cisco-stackwise-plus` - Cisco StackWise Plus + * `sma-906` - SMA 906 - * `cisco-flexstack` - Cisco FlexStack + * `urm-p2` - URM-P2 - * `cisco-flexstack-plus` - Cisco FlexStack Plus + * `urm-p4` - URM-P4 - * `cisco-stackwise-80` - Cisco StackWise-80 + * `urm-p8` - URM-P8 - * `cisco-stackwise-160` - Cisco StackWise-160 + * `splice` - Splice - * `cisco-stackwise-320` - Cisco StackWise-320 + * `usb-a` - USB Type A - * `cisco-stackwise-480` - Cisco StackWise-480 + * `usb-b` - USB Type B - * `cisco-stackwise-1t` - Cisco StackWise-1T + * `usb-c` - USB Type C - * `juniper-vcp` - Juniper VCP + * `usb-mini-a` - USB Mini A - * `extreme-summitstack` - Extreme SummitStack + * `usb-mini-b` - USB Mini B - * `extreme-summitstack-128` - Extreme SummitStack-128 + * `usb-micro-a` - USB Micro A - * `extreme-summitstack-256` - Extreme SummitStack-256 + * `usb-micro-b` - USB Micro B - * `extreme-summitstack-512` - Extreme SummitStack-512 + * `usb-micro-ab` - USB Micro AB * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 - enabled: - type: boolean - mgmt_only: - type: boolean - title: Management only + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 - bridge: + PatchedWritableRegionRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: type: integer nullable: true - title: Bridge interface - poe_mode: + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceRequest: + type: object + description: Adds support for custom fields and tags. + properties: + device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true + virtual_machine: + allOf: + - $ref: '#/components/schemas/BriefVirtualMachineRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + protocol: enum: - - pd - - pse - - '' + - tcp + - udp + - sctp type: string - description: '* `pd` - PD + description: '* `tcp` - TCP - * `pse` - PSE' - x-spec-enum-id: 2f2fe6dcdc7772bd - poe_type: + * `udp` - UDP + + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + ipaddresses: + type: array + items: + type: integer + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableServiceTemplateRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + protocol: enum: - - type1-ieee802.3af - - type2-ieee802.3at - - type3-ieee802.3bt - - type4-ieee802.3bt - - passive-24v-2pair - - passive-24v-4pair - - passive-48v-2pair - - passive-48v-4pair - - '' + - tcp + - udp + - sctp type: string - description: '* `type1-ieee802.3af` - 802.3af (Type 1) + description: '* `tcp` - TCP - * `type2-ieee802.3at` - 802.3at (Type 2) + * `udp` - UDP - * `type3-ieee802.3bt` - 802.3bt (Type 3) + * `sctp` - SCTP' + x-spec-enum-id: 5521e084b1ad51de + ports: + type: array + items: + type: integer + maximum: 65535 + minimum: 1 + title: Port numbers + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableSiteRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + description: Full name of the site + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned - * `type4-ieee802.3bt` - 802.3bt (Type 4) + * `staging` - Staging - * `passive-24v-2pair` - Passive 24V (2-pair) + * `active` - Active - * `passive-24v-4pair` - Passive 24V (4-pair) + * `decommissioning` - Decommissioning - * `passive-48v-2pair` - Passive 48V (2-pair) + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 + description: + type: string + maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTenantGroupRequest: + type: object + description: Extends PrimaryModelSerializer to include MPTT support. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned - * `passive-48v-4pair` - Passive 48V (4-pair)' - x-spec-enum-id: 74bd3be4012f6da9 - rf_role: + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: enum: - - ap - - station - - '' + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre type: string - description: '* `ap` - Access point + description: '* `ipsec-transport` - IPsec - Transport - * `station` - Station' - x-spec-enum-id: d2772dbea88b0fb1 - title: Wireless role - PatchedWritableJournalEntryRequest: + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableTunnelTerminationRequest: type: object description: Adds support for custom fields and tags. properties: - assigned_object_type: + tunnel: + $ref: '#/components/schemas/BriefTunnelRequest' + role: + enum: + - peer + - hub + - spoke type: string - assigned_object_id: + description: '* `peer` - Peer + + * `hub` - Hub + + * `spoke` - Spoke' + x-spec-enum-id: 52225cd60b867572 + termination_type: + type: string + termination_id: type: integer maximum: 9223372036854775807 minimum: 0 format: int64 - created_by: + nullable: true + outside_ip: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVLANRequest: + type: object + description: Adds support for custom fields and tags. + properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true + vid: type: integer + maximum: 4094 + minimum: 1 + title: VLAN ID + description: Numeric VLAN ID (1-4094) + name: + type: string + minLength: 1 + maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true - kind: + status: enum: - - info - - success - - warning - - danger + - active + - reserved + - deprecated type: string - description: '* `info` - Info + x-spec-enum-id: 6388dfb94ca1cc15 + description: 'Operational status of this VLAN - * `success` - Success - * `warning` - Warning + * `active` - Active - * `danger` - Danger' - x-spec-enum-id: a21af280f632fa34 + * `reserved` - Reserved + + * `deprecated` - Deprecated' + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true + description: + type: string + maxLength: 200 comments: type: string - minLength: 1 tags: type: array items: @@ -123432,81 +177118,92 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableL2VPNRequest: + PatchedWritableVMInterfaceRequest: type: object description: Adds support for custom fields and tags. properties: - identifier: - type: integer - maximum: 9223372036854775807 - minimum: -9223372036854775808 - format: int64 - nullable: true + virtual_machine: + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 - maxLength: 100 - slug: + maxLength: 64 + enabled: + type: boolean + parent: + type: integer + nullable: true + title: Parent interface + bridge: + type: integer + nullable: true + title: Bridge interface + mtu: + type: integer + maximum: 65536 + minimum: 1 + nullable: true + mac_address: type: string + nullable: true minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - type: - enum: - - vpws - - vpls - - vxlan - - vxlan-evpn - - mpls-evpn - - pbb-evpn - - epl - - evpl - - ep-lan - - evp-lan - - ep-tree - - evp-tree + description: type: string - description: '* `vpws` - VPWS - - * `vpls` - VPLS - - * `vxlan` - VXLAN - - * `vxlan-evpn` - VXLAN-EVPN - - * `mpls-evpn` - MPLS EVPN - - * `pbb-evpn` - PBB EVPN - - * `epl` - EPL - - * `evpl` - EVPL + maxLength: 200 + mode: + enum: + - access + - tagged + - tagged-all + - '' + type: string + x-spec-enum-id: 79109bd9dbb73a3c + description: 'IEEE 802.1Q tagging strategy - * `ep-lan` - Ethernet Private LAN - * `evp-lan` - Ethernet Virtual Private LAN + * `access` - Access - * `ep-tree` - Ethernet Private Tree + * `tagged` - Tagged - * `evp-tree` - Ethernet Virtual Private Tree' - x-spec-enum-id: dbaa4f996ec2d110 - import_targets: + * `tagged-all` - Tagged (All)' + untagged_vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tagged_vlans: type: array items: type: integer - export_targets: + vrf: + allOf: + - $ref: '#/components/schemas/BriefVRFRequest' + nullable: true + tags: type: array items: - type: integer + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + PatchedWritableVirtualChassisRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 64 + domain: + type: string + maxLength: 30 + master: + type: integer + nullable: true description: type: string maxLength: 200 comments: type: string - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true tags: type: array items: @@ -123514,53 +177211,50 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableLocationRequest: + PatchedWritableVirtualDeviceContextRequest: type: object - description: Extends PrimaryModelSerializer to include MPTT support. + description: Adds support for custom fields and tags. properties: name: type: string minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - site: - $ref: '#/components/schemas/SiteRequest' - parent: + maxLength: 64 + device: + $ref: '#/components/schemas/BriefDeviceRequest' + identifier: type: integer + maximum: 32767 + minimum: 0 + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: - - planned - - staging - active - - decommissioning - - retired + - planned + - offline type: string - description: '* `planned` - Planned - - * `staging` - Staging - - * `active` - Active + description: '* `active` - Active - * `decommissioning` - Decommissioning + * `planned` - Planned - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 + * `offline` - Offline' + x-spec-enum-id: ee1ef02def7a91ab description: type: string maxLength: 200 + comments: + type: string tags: type: array items: @@ -123568,16 +177262,14 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleRequest: + PatchedWritableVirtualMachineWithConfigContextRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module_bay: - type: integer - module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + name: + type: string + minLength: 1 + maxLength: 64 status: enum: - offline @@ -123599,20 +177291,74 @@ components: * `decommissioning` - Decommissioning' x-spec-enum-id: 2217e87d0c3efdda + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + cluster: + allOf: + - $ref: '#/components/schemas/BriefClusterRequest' + nullable: true + device: + allOf: + - $ref: '#/components/schemas/BriefDeviceRequest' + nullable: true serial: type: string title: Serial number maxLength: 50 - asset_tag: - type: string + role: + allOf: + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true - description: A unique tag used to identify this device - maxLength: 50 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + platform: + allOf: + - $ref: '#/components/schemas/BriefPlatformRequest' + nullable: true + primary_ip4: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + primary_ip6: + allOf: + - $ref: '#/components/schemas/BriefIPAddressRequest' + nullable: true + vcpus: + type: number + format: double + maximum: 10000 + minimum: 0.01 + exclusiveMaximum: true + nullable: true + memory: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Memory (MB) + disk: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + title: Disk (MB) description: type: string maxLength: 200 comments: type: string + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + local_context_data: + nullable: true + description: Local config context data takes precedence over source contexts + in the final rendered config context tags: type: array items: @@ -123620,49 +177366,25 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableModuleTypeRequest: + PatchedWritableWirelessLANGroupRequest: type: object - description: Adds support for custom fields and tags. + description: Extends PrimaryModelSerializer to include MPTT support. properties: - manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' - model: + name: type: string minLength: 1 maxLength: 100 - part_number: + slug: type: string - description: Discrete part number (optional) - maxLength: 50 - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + parent: + type: integer nullable: true - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms - - * `g` - Grams - - * `lb` - Pounds - - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 description: type: string maxLength: 200 - comments: - type: string tags: type: array items: @@ -123670,85 +177392,79 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerFeedRequest: + PatchedWritableWirelessLANRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/PowerPanelRequest' - rack: - allOf: - - $ref: '#/components/schemas/RackRequest' - nullable: true - name: + ssid: type: string minLength: 1 - maxLength: 100 + maxLength: 32 + description: + type: string + maxLength: 200 + group: + allOf: + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' + nullable: true status: enum: - - offline - active - - planned - - failed + - reserved + - disabled + - deprecated type: string - description: '* `offline` - Offline + description: '* `active` - Active - * `active` - Active + * `reserved` - Reserved - * `planned` - Planned + * `disabled` - Disabled - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: + * `deprecated` - Deprecated' + x-spec-enum-id: 412ebdca597f609e + vlan: + allOf: + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: enum: - - primary - - redundant + - open + - wep + - wpa-personal + - wpa-enterprise + - '' type: string - description: '* `primary` - Primary + description: '* `open` - Open - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC + * `wep` - WEP - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: enum: - - single-phase - - three-phase + - auto + - tkip + - aes + - '' type: string - description: '* `single-phase` - Single phase + description: '* `auto` - Auto - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - description: + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: type: string - maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true + title: Pre-shared key + maxLength: 64 comments: type: string tags: @@ -123758,345 +177474,97 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletRequest: + PatchedWritableWirelessLinkRequest: type: object description: Adds support for custom fields and tags. properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: + interface_a: + $ref: '#/components/schemas/BriefInterfaceRequest' + interface_b: + $ref: '#/components/schemas/BriefInterfaceRequest' + ssid: type: string - description: Physical label - maxLength: 64 - type: + maxLength: 32 + status: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' + - connected + - planned + - decommissioning type: string - x-spec-enum-id: 2ff919f516566857 - description: 'Physical port type - - - * `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C - - * `CS6364C` - CS6364C - - * `CS8164C` - CS8164C - - * `CS8264C` - CS8264C - - * `CS8364C` - CS8364C - - * `CS8464C` - CS8464C - - * `ita-e` - ITA Type E (CEE 7/5) - - * `ita-f` - ITA Type F (CEE 7/3) - - * `ita-g` - ITA Type G (BS 1363) - - * `ita-h` - ITA Type H - - * `ita-i` - ITA Type I - - * `ita-j` - ITA Type J - - * `ita-k` - ITA Type K - - * `ita-l` - ITA Type L (CEI 23-50) - - * `ita-m` - ITA Type M (BS 546) - - * `ita-n` - ITA Type N - - * `ita-o` - ITA Type O - - * `ita-multistandard` - ITA Multistandard - - * `usb-a` - USB Type A - - * `usb-micro-b` - USB Micro B - - * `usb-c` - USB Type C - - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx - - * `saf-d-grid` - Saf-D-Grid + description: '* `connected` - Connected - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `planned` - Planned - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `wep` - WEP - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `wpa-personal` - WPA Personal (PSK) - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + title: Authentication type + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto - * `hardwired` - Hardwired + * `tkip` - TKIP - * `other` - Other' - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortRequest' + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + title: Authentication cipher + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - feed_leg: + distance_unit: enum: - - A - - B - - C + - km + - m + - mi + - ft - '' type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) - + description: '* `km` - Kilometers - * `A` - A + * `m` - Meters - * `B` - B + * `mi` - Miles - * `C` - C' + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected + comments: + type: string tags: type: array items: @@ -124104,725 +177572,940 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritablePowerOutletTemplateRequest: + Platform: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefManufacturer' nullable: true - module_type: + config_template: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true - name: + description: type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - label: + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: type: string - description: Physical label - maxLength: 64 - type: - enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ita-e - - ita-f - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - ita-multistandard - - usb-a - - usb-micro-b - - usb-c - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - hdot-cx - - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' + format: date-time + readOnly: true + nullable: true + last_updated: type: string - description: '* `iec-60320-c5` - C5 - - * `iec-60320-c7` - C7 - - * `iec-60320-c13` - C13 - - * `iec-60320-c15` - C15 - - * `iec-60320-c19` - C19 - - * `iec-60320-c21` - C21 - - * `iec-60309-p-n-e-4h` - P+N+E 4H - - * `iec-60309-p-n-e-6h` - P+N+E 6H - - * `iec-60309-p-n-e-9h` - P+N+E 9H - - * `iec-60309-2p-e-4h` - 2P+E 4H - - * `iec-60309-2p-e-6h` - 2P+E 6H - - * `iec-60309-2p-e-9h` - 2P+E 9H - - * `iec-60309-3p-e-4h` - 3P+E 4H - - * `iec-60309-3p-e-6h` - 3P+E 6H - - * `iec-60309-3p-e-9h` - 3P+E 9H - - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - - * `iec-60906-1` - IEC 60906-1 - - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - - * `nema-1-15r` - NEMA 1-15R - - * `nema-5-15r` - NEMA 5-15R - - * `nema-5-20r` - NEMA 5-20R - - * `nema-5-30r` - NEMA 5-30R - - * `nema-5-50r` - NEMA 5-50R - - * `nema-6-15r` - NEMA 6-15R - - * `nema-6-20r` - NEMA 6-20R - - * `nema-6-30r` - NEMA 6-30R - - * `nema-6-50r` - NEMA 6-50R - - * `nema-10-30r` - NEMA 10-30R - - * `nema-10-50r` - NEMA 10-50R - - * `nema-14-20r` - NEMA 14-20R - - * `nema-14-30r` - NEMA 14-30R - - * `nema-14-50r` - NEMA 14-50R - - * `nema-14-60r` - NEMA 14-60R - - * `nema-15-15r` - NEMA 15-15R - - * `nema-15-20r` - NEMA 15-20R - - * `nema-15-30r` - NEMA 15-30R - - * `nema-15-50r` - NEMA 15-50R - - * `nema-15-60r` - NEMA 15-60R - - * `nema-l1-15r` - NEMA L1-15R - - * `nema-l5-15r` - NEMA L5-15R - - * `nema-l5-20r` - NEMA L5-20R - - * `nema-l5-30r` - NEMA L5-30R - - * `nema-l5-50r` - NEMA L5-50R - - * `nema-l6-15r` - NEMA L6-15R - - * `nema-l6-20r` - NEMA L6-20R - - * `nema-l6-30r` - NEMA L6-30R - - * `nema-l6-50r` - NEMA L6-50R - - * `nema-l10-30r` - NEMA L10-30R - - * `nema-l14-20r` - NEMA L14-20R - - * `nema-l14-30r` - NEMA L14-30R - - * `nema-l14-50r` - NEMA L14-50R - - * `nema-l14-60r` - NEMA L14-60R - - * `nema-l15-20r` - NEMA L15-20R - - * `nema-l15-30r` - NEMA L15-30R - - * `nema-l15-50r` - NEMA L15-50R - - * `nema-l15-60r` - NEMA L15-60R - - * `nema-l21-20r` - NEMA L21-20R - - * `nema-l21-30r` - NEMA L21-30R - - * `nema-l22-30r` - NEMA L22-30R - - * `CS6360C` - CS6360C - - * `CS6364C` - CS6364C - - * `CS8164C` - CS8164C - - * `CS8264C` - CS8264C - - * `CS8364C` - CS8364C - - * `CS8464C` - CS8464C - - * `ita-e` - ITA Type E (CEE 7/5) - - * `ita-f` - ITA Type F (CEE 7/3) - - * `ita-g` - ITA Type G (BS 1363) - - * `ita-h` - ITA Type H - - * `ita-i` - ITA Type I - - * `ita-j` - ITA Type J - - * `ita-k` - ITA Type K - - * `ita-l` - ITA Type L (CEI 23-50) - - * `ita-m` - ITA Type M (BS 546) - - * `ita-n` - ITA Type N - - * `ita-o` - ITA Type O - - * `ita-multistandard` - ITA Multistandard - - * `usb-a` - USB Type A - - * `usb-micro-b` - USB Micro B - - * `usb-c` - USB Type C - - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx - - * `saf-d-grid` - Saf-D-Grid - - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + required: + - created + - display + - id + - last_updated + - name + - slug + - url + PlatformRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + manufacturer: + allOf: + - $ref: '#/components/schemas/BriefManufacturerRequest' + nullable: true + config_template: + allOf: + - $ref: '#/components/schemas/BriefConfigTemplateRequest' + nullable: true + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + PowerFeed: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + power_panel: + $ref: '#/components/schemas/BriefPowerPanel' + rack: + allOf: + - $ref: '#/components/schemas/BriefRack' + nullable: true + name: + type: string + maxLength: 100 + status: + type: object + properties: + value: + enum: + - offline + - active + - planned + - failed + type: string + description: '* `offline` - Offline - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `active` - Active - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `planned` - Planned - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + label: + type: string + enum: + - Offline + - Active + - Planned + - Failed + type: + type: object + properties: + value: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + label: + type: string + enum: + - Primary + - Redundant + supply: + type: object + properties: + value: + enum: + - ac + - dc + type: string + description: '* `ac` - AC - * `hardwired` - Hardwired + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + label: + type: string + enum: + - AC + - DC + phase: + type: object + properties: + value: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase - * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - power_port: + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + label: + type: string + enum: + - Single phase + - Three-phase + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected + cable: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefCable' + readOnly: true nullable: true - feed_leg: + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true + description: + type: string + maxLength: 200 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type + - created + - display + - id + - last_updated + - link_peers + - link_peers_type + - name + - power_panel + - url + PowerFeedRequest: + type: object + description: Adds support for custom fields and tags. + properties: + power_panel: + $ref: '#/components/schemas/BriefPowerPanelRequest' + rack: + allOf: + - $ref: '#/components/schemas/BriefRackRequest' + nullable: true + name: + type: string + minLength: 1 + maxLength: 100 + status: enum: - - A - - B - - C - - '' + - offline + - active + - planned + - failed type: string - x-spec-enum-id: a4902339df0b7c06 - description: 'Phase (for three-phase feeds) + description: '* `offline` - Offline + * `active` - Active - * `A` - A + * `planned` - Planned - * `B` - B + * `failed` - Failed' + x-spec-enum-id: b77fc919138c12f6 + type: + enum: + - primary + - redundant + type: string + description: '* `primary` - Primary - * `C` - C' + * `redundant` - Redundant' + x-spec-enum-id: 093a164236819eb8 + supply: + enum: + - ac + - dc + type: string + description: '* `ac` - AC + + * `dc` - DC' + x-spec-enum-id: 1b6d99616ca6412b + phase: + enum: + - single-phase + - three-phase + type: string + description: '* `single-phase` - Single phase + + * `three-phase` - Three-phase' + x-spec-enum-id: 994bc0696f4df57f + voltage: + type: integer + maximum: 32767 + minimum: -32768 + amperage: + type: integer + maximum: 32767 + minimum: 1 + max_utilization: + type: integer + maximum: 100 + minimum: 1 + description: Maximum permissible draw (percentage) + mark_connected: + type: boolean + description: Treat as if a cable is connected description: type: string maxLength: 200 - PatchedWritablePowerPortRequest: + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - power_panel + PowerOutlet: type: object description: Adds support for custom fields and tags. properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string - minLength: 1 maxLength: 64 label: type: string description: Physical label maxLength: 64 type: - enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 - - iec-60309-p-n-e-4h - - iec-60309-p-n-e-6h - - iec-60309-p-n-e-9h - - iec-60309-2p-e-4h - - iec-60309-2p-e-6h - - iec-60309-2p-e-9h - - iec-60309-3p-e-4h - - iec-60309-3p-e-6h - - iec-60309-3p-e-9h - - iec-60309-3p-n-e-4h - - iec-60309-3p-n-e-6h - - iec-60309-3p-n-e-9h - - iec-60906-1 - - nbr-14136-10a - - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c - - ita-e - - ita-f - - ita-ef - - ita-g - - ita-h - - ita-i - - ita-j - - ita-k - - ita-l - - ita-m - - ita-n - - ita-o - - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b - - molex-micro-fit-1x2 - - molex-micro-fit-2x2 - - molex-micro-fit-2x4 - - dc-terminal - - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 - - neutrik-powercon-true1 - - neutrik-powercon-true1-top - - ubiquiti-smartpower - - hardwired - - other - - '' - type: string - x-spec-enum-id: 6d680dea031864ae - description: 'Physical port type - - - * `iec-60320-c6` - C6 - - * `iec-60320-c8` - C8 - - * `iec-60320-c14` - C14 - - * `iec-60320-c16` - C16 + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c5` - C5 - * `iec-60320-c20` - C20 + * `iec-60320-c7` - C7 - * `iec-60320-c22` - C22 + * `iec-60320-c13` - C13 - * `iec-60309-p-n-e-4h` - P+N+E 4H + * `iec-60320-c15` - C15 - * `iec-60309-p-n-e-6h` - P+N+E 6H + * `iec-60320-c19` - C19 - * `iec-60309-p-n-e-9h` - P+N+E 9H + * `iec-60320-c21` - C21 - * `iec-60309-2p-e-4h` - 2P+E 4H + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `iec-60309-2p-e-9h` - 2P+E 9H + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `iec-60309-3p-e-4h` - 3P+E 4H + * `iec-60309-2p-e-4h` - 2P+E 4H - * `iec-60309-3p-e-6h` - 3P+E 6H + * `iec-60309-2p-e-6h` - 2P+E 6H - * `iec-60309-3p-e-9h` - 3P+E 9H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `iec-60309-3p-n-e-4h` - 3P+N+E 4H + * `iec-60309-3p-e-4h` - 3P+E 4H - * `iec-60309-3p-n-e-6h` - 3P+N+E 6H + * `iec-60309-3p-e-6h` - 3P+E 6H - * `iec-60309-3p-n-e-9h` - 3P+N+E 9H + * `iec-60309-3p-e-9h` - 3P+E 9H - * `iec-60906-1` - IEC 60906-1 + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `nbr-14136-10a` - 2P+T 10A (NBR 14136) + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `nbr-14136-20a` - 2P+T 20A (NBR 14136) + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `nema-1-15p` - NEMA 1-15P + * `iec-60906-1` - IEC 60906-1 - * `nema-5-15p` - NEMA 5-15P + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `nema-5-20p` - NEMA 5-20P + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-5-30p` - NEMA 5-30P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-15r` - NEMA 5-15R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-20r` - NEMA 5-20R - * `nema-6-20p` - NEMA 6-20P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-30p` - NEMA 6-30P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-15r` - NEMA 6-15R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-10-50p` - NEMA 10-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-6-50r` - NEMA 6-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-50p` - NEMA 14-50P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-20r` - NEMA 14-20R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-30r` - NEMA 14-30R - * `nema-15-20p` - NEMA 15-20P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-30p` - NEMA 15-30P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-20r` - NEMA 15-20R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-30r` - NEMA 15-30R - * `nema-l5-15p` - NEMA L5-15P + * `nema-15-50r` - NEMA 15-50R - * `nema-l5-20p` - NEMA L5-20P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l15-60r` - NEMA L15-60R - * `cs6361c` - CS6361C + * `nema-l21-20r` - NEMA L21-20R - * `cs6365c` - CS6365C + * `nema-l21-30r` - NEMA L21-30R - * `cs8165c` - CS8165C + * `nema-l22-20r` - NEMA L22-20R - * `cs8265c` - CS8265C + * `nema-l22-30r` - NEMA L22-30R - * `cs8365c` - CS8365C + * `CS6360C` - CS6360C - * `cs8465c` - CS8465C + * `CS6364C` - CS6364C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8164C` - CS8164C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8264C` - CS8264C - * `ita-f` - ITA Type F (CEE 7/4) + * `CS8364C` - CS8364C - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `CS8464C` - CS8464C - * `ita-g` - ITA Type G (BS 1363) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-h` - ITA Type H + * `ita-f` - ITA Type F (CEE 7/3) - * `ita-i` - ITA Type I + * `ita-g` - ITA Type G (BS 1363) - * `ita-j` - ITA Type J + * `ita-h` - ITA Type H - * `ita-k` - ITA Type K + * `ita-i` - ITA Type I - * `ita-l` - ITA Type L (CEI 23-50) + * `ita-j` - ITA Type J - * `ita-m` - ITA Type M (BS 546) + * `ita-k` - ITA Type K - * `ita-n` - ITA Type N + * `ita-l` - ITA Type L (CEI 23-50) - * `ita-o` - ITA Type O + * `ita-m` - ITA Type M (BS 546) - * `usb-a` - USB Type A + * `ita-n` - ITA Type N - * `usb-b` - USB Type B + * `ita-o` - ITA Type O - * `usb-c` - USB Type C + * `ita-multistandard` - ITA Multistandard - * `usb-mini-a` - USB Mini A + * `usb-a` - USB Type A - * `usb-mini-b` - USB Mini B + * `usb-micro-b` - USB Micro B - * `usb-micro-a` - USB Micro A + * `usb-c` - USB Type C - * `usb-micro-b` - USB Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `usb-micro-ab` - USB Micro AB + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - * `usb-3-b` - USB 3.0 Type B + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - * `usb-3-micro-b` - USB 3.0 Micro B + * `dc-terminal` - DC Terminal - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + * `eaton-c39` - Eaton C39 - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + * `hdot-cx` - HDOT Cx - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + * `saf-d-grid` - Saf-D-Grid - * `dc-terminal` - DC Terminal + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `saf-d-grid` - Saf-D-Grid + * `neutrik-powercon-32a` - Neutrik powerCON (32A) - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `ubiquiti-smartpower` - Ubiquiti SmartPower - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `hardwired` - Hardwired - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `other` - Other' + x-spec-enum-id: f8c08053f2db8830 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - Eaton C39 + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPort' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A - * `hardwired` - Hardwired + * `B` - B - * `other` - Other' - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C nullable: true - description: Allocated power draw (watts) description: type: string maxLength: 200 mark_connected: type: boolean description: Treat as if a cable is connected + cable: + allOf: + - $ref: '#/components/schemas/BriefCable' + readOnly: true + nullable: true + cable_end: + type: string + readOnly: true + link_peers: + type: array + items: {} + readOnly: true + link_peers_type: + type: string + description: Return the type of the peer link terminations, or None. + readOnly: true + nullable: true + connected_endpoints: + type: array + items: {} + nullable: true + readOnly: true + connected_endpoints_type: + type: string + readOnly: true + nullable: true + connected_endpoints_reachable: + type: boolean + readOnly: true tags: type: array items: - $ref: '#/components/schemas/NestedTagRequest' + $ref: '#/components/schemas/NestedTag' custom_fields: type: object additionalProperties: {} - PatchedWritablePowerPortTemplateRequest: + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + _occupied: + type: boolean + readOnly: true + title: ' occupied' + required: + - _occupied + - cable + - cable_end + - connected_endpoints + - connected_endpoints_reachable + - connected_endpoints_type + - created + - device + - display + - id + - last_updated + - link_peers + - link_peers_type + - name + - url + PowerOutletRequest: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: - device_type: - allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' - nullable: true - module_type: + device: + $ref: '#/components/schemas/BriefDeviceRequest' + module: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' maxLength: 64 label: type: string @@ -124830,12 +178513,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c6 - - iec-60320-c8 - - iec-60320-c14 - - iec-60320-c16 - - iec-60320-c20 - - iec-60320-c22 + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -124851,57 +178534,56 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15p - - nema-5-15p - - nema-5-20p - - nema-5-30p - - nema-5-50p - - nema-6-15p - - nema-6-20p - - nema-6-30p - - nema-6-50p - - nema-10-30p - - nema-10-50p - - nema-14-20p - - nema-14-30p - - nema-14-50p - - nema-14-60p - - nema-15-15p - - nema-15-20p - - nema-15-30p - - nema-15-50p - - nema-15-60p - - nema-l1-15p - - nema-l5-15p - - nema-l5-20p - - nema-l5-30p - - nema-l5-50p - - nema-l6-15p - - nema-l6-20p - - nema-l6-30p - - nema-l6-50p - - nema-l10-30p - - nema-l14-20p - - nema-l14-30p - - nema-l14-50p - - nema-l14-60p - - nema-l15-20p - - nema-l15-30p - - nema-l15-50p - - nema-l15-60p - - nema-l21-20p - - nema-l21-30p - - nema-l22-30p - - cs6361c - - cs6365c - - cs8165c - - cs8265c - - cs8365c - - cs8465c - - ita-c + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C - ita-e - ita-f - - ita-ef - ita-g - ita-h - ita-i @@ -124911,23 +178593,19 @@ components: - ita-m - ita-n - ita-o + - ita-multistandard - usb-a - - usb-b - - usb-c - - usb-mini-a - - usb-mini-b - - usb-micro-a - usb-micro-b - - usb-micro-ab - - usb-3-b - - usb-3-micro-b + - usb-c - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 + - hdot-cx - saf-d-grid - - neutrik-powercon-20 - - neutrik-powercon-32 + - neutrik-powercon-20a + - neutrik-powercon-32a - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -124935,17 +178613,17 @@ components: - other - '' type: string - description: '* `iec-60320-c6` - C6 + description: '* `iec-60320-c5` - C5 - * `iec-60320-c8` - C8 + * `iec-60320-c7` - C7 - * `iec-60320-c14` - C14 + * `iec-60320-c13` - C13 - * `iec-60320-c16` - C16 + * `iec-60320-c15` - C15 - * `iec-60320-c20` - C20 + * `iec-60320-c19` - C19 - * `iec-60320-c22` - C22 + * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -124977,107 +178655,105 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15p` - NEMA 1-15P - - * `nema-5-15p` - NEMA 5-15P + * `nema-1-15r` - NEMA 1-15R - * `nema-5-20p` - NEMA 5-20P + * `nema-5-15r` - NEMA 5-15R - * `nema-5-30p` - NEMA 5-30P + * `nema-5-20r` - NEMA 5-20R - * `nema-5-50p` - NEMA 5-50P + * `nema-5-30r` - NEMA 5-30R - * `nema-6-15p` - NEMA 6-15P + * `nema-5-50r` - NEMA 5-50R - * `nema-6-20p` - NEMA 6-20P + * `nema-6-15r` - NEMA 6-15R - * `nema-6-30p` - NEMA 6-30P + * `nema-6-20r` - NEMA 6-20R - * `nema-6-50p` - NEMA 6-50P + * `nema-6-30r` - NEMA 6-30R - * `nema-10-30p` - NEMA 10-30P + * `nema-6-50r` - NEMA 6-50R - * `nema-10-50p` - NEMA 10-50P + * `nema-10-30r` - NEMA 10-30R - * `nema-14-20p` - NEMA 14-20P + * `nema-10-50r` - NEMA 10-50R - * `nema-14-30p` - NEMA 14-30P + * `nema-14-20r` - NEMA 14-20R - * `nema-14-50p` - NEMA 14-50P + * `nema-14-30r` - NEMA 14-30R - * `nema-14-60p` - NEMA 14-60P + * `nema-14-50r` - NEMA 14-50R - * `nema-15-15p` - NEMA 15-15P + * `nema-14-60r` - NEMA 14-60R - * `nema-15-20p` - NEMA 15-20P + * `nema-15-15r` - NEMA 15-15R - * `nema-15-30p` - NEMA 15-30P + * `nema-15-20r` - NEMA 15-20R - * `nema-15-50p` - NEMA 15-50P + * `nema-15-30r` - NEMA 15-30R - * `nema-15-60p` - NEMA 15-60P + * `nema-15-50r` - NEMA 15-50R - * `nema-l1-15p` - NEMA L1-15P + * `nema-15-60r` - NEMA 15-60R - * `nema-l5-15p` - NEMA L5-15P + * `nema-l1-15r` - NEMA L1-15R - * `nema-l5-20p` - NEMA L5-20P + * `nema-l5-15r` - NEMA L5-15R - * `nema-l5-30p` - NEMA L5-30P + * `nema-l5-20r` - NEMA L5-20R - * `nema-l5-50p` - NEMA L5-50P + * `nema-l5-30r` - NEMA L5-30R - * `nema-l6-15p` - NEMA L6-15P + * `nema-l5-50r` - NEMA L5-50R - * `nema-l6-20p` - NEMA L6-20P + * `nema-l6-15r` - NEMA L6-15R - * `nema-l6-30p` - NEMA L6-30P + * `nema-l6-20r` - NEMA L6-20R - * `nema-l6-50p` - NEMA L6-50P + * `nema-l6-30r` - NEMA L6-30R - * `nema-l10-30p` - NEMA L10-30P + * `nema-l6-50r` - NEMA L6-50R - * `nema-l14-20p` - NEMA L14-20P + * `nema-l10-30r` - NEMA L10-30R - * `nema-l14-30p` - NEMA L14-30P + * `nema-l14-20r` - NEMA L14-20R - * `nema-l14-50p` - NEMA L14-50P + * `nema-l14-30r` - NEMA L14-30R - * `nema-l14-60p` - NEMA L14-60P + * `nema-l14-50r` - NEMA L14-50R - * `nema-l15-20p` - NEMA L15-20P + * `nema-l14-60r` - NEMA L14-60R - * `nema-l15-30p` - NEMA L15-30P + * `nema-l15-20r` - NEMA L15-20R - * `nema-l15-50p` - NEMA L15-50P + * `nema-l15-30r` - NEMA L15-30R - * `nema-l15-60p` - NEMA L15-60P + * `nema-l15-50r` - NEMA L15-50R - * `nema-l21-20p` - NEMA L21-20P + * `nema-l15-60r` - NEMA L15-60R - * `nema-l21-30p` - NEMA L21-30P + * `nema-l21-20r` - NEMA L21-20R - * `nema-l22-30p` - NEMA L22-30P + * `nema-l21-30r` - NEMA L21-30R - * `cs6361c` - CS6361C + * `nema-l22-20r` - NEMA L22-20R - * `cs6365c` - CS6365C + * `nema-l22-30r` - NEMA L22-30R - * `cs8165c` - CS8165C + * `CS6360C` - CS6360C - * `cs8265c` - CS8265C + * `CS6364C` - CS6364C - * `cs8365c` - CS8365C + * `CS8164C` - CS8164C - * `cs8465c` - CS8465C + * `CS8264C` - CS8264C - * `ita-c` - ITA Type C (CEE 7/16) + * `CS8364C` - CS8364C - * `ita-e` - ITA Type E (CEE 7/6) + * `CS8464C` - CS8464C - * `ita-f` - ITA Type F (CEE 7/4) + * `ita-e` - ITA Type E (CEE 7/5) - * `ita-ef` - ITA Type E/F (CEE 7/7) + * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) @@ -125097,25 +178773,13 @@ components: * `ita-o` - ITA Type O - * `usb-a` - USB Type A - - * `usb-b` - USB Type B - - * `usb-c` - USB Type C - - * `usb-mini-a` - USB Mini A - - * `usb-mini-b` - USB Mini B + * `ita-multistandard` - ITA Multistandard - * `usb-micro-a` - USB Micro A + * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B - * `usb-micro-ab` - USB Micro AB - - * `usb-3-b` - USB 3.0 Type B - - * `usb-3-micro-b` - USB 3.0 Micro B + * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 @@ -125125,11 +178789,15 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20` - Neutrik powerCON (20A) + * `neutrik-powercon-20a` - Neutrik powerCON (20A) - * `neutrik-powercon-32` - Neutrik powerCON (32A) + * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -125140,79 +178808,32 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae - maximum_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Maximum power draw (watts) - allocated_draw: - type: integer - maximum: 2147483647 - minimum: 1 - nullable: true - description: Allocated power draw (watts) - description: - type: string - maxLength: 200 - PatchedWritablePrefixRequest: - type: object - description: Adds support for custom fields and tags. - properties: - prefix: - type: string - minLength: 1 - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + x-spec-enum-id: f8c08053f2db8830 nullable: true - vlan: + power_port: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true - status: + feed_leg: enum: - - container - - active - - reserved - - deprecated + - A + - B + - C + - '' type: string - x-spec-enum-id: d38bee5f512701d9 - description: 'Operational status of this prefix - - - * `container` - Container - - * `active` - Active + description: '* `A` - A - * `reserved` - Reserved + * `B` - B - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 nullable: true - is_pool: - type: boolean - title: Is a pool - description: All IP addresses within this prefix are considered usable - mark_utilized: - type: boolean - description: Treat as fully utilized description: type: string maxLength: 200 - comments: - type: string + mark_connected: + type: boolean + description: Treat as if a cable is connected tags: type: array items: @@ -125220,375 +178841,494 @@ components: custom_fields: type: object additionalProperties: {} - PatchedWritableRackRequest: + required: + - device + - name + PowerOutletTemplate: type: object - description: Adds support for custom fields and tags. + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: - name: + id: + type: integer + readOnly: true + url: type: string - minLength: 1 - maxLength: 100 - facility_id: + format: uri + readOnly: true + display: type: string - nullable: true - maxLength: 50 - site: - $ref: '#/components/schemas/SiteRequest' - location: + readOnly: true + device_type: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true - tenant: + module_type: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefModuleType' nullable: true - status: - enum: - - reserved - - available - - planned - - active - - deprecated + name: type: string - description: '* `reserved` - Reserved + description: '{module} is accepted as a substitution for the module bay + position when attached to a module type.' + maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired + - other + - '' + type: string + description: '* `iec-60320-c5` - C5 - * `available` - Available + * `iec-60320-c7` - C7 - * `planned` - Planned + * `iec-60320-c13` - C13 - * `active` - Active + * `iec-60320-c15` - C15 - * `deprecated` - Deprecated' - x-spec-enum-id: 0c556d55dc1baa13 - role: - allOf: - - $ref: '#/components/schemas/RackRoleRequest' - nullable: true - serial: - type: string - title: Serial number - maxLength: 50 - asset_tag: - type: string - nullable: true - description: A unique tag used to identify this rack - maxLength: 50 - type: - enum: - - 2-post-frame - - 4-post-frame - - 4-post-cabinet - - wall-frame - - wall-frame-vertical - - wall-cabinet - - wall-cabinet-vertical - - '' - type: string - description: '* `2-post-frame` - 2-post frame + * `iec-60320-c19` - C19 - * `4-post-frame` - 4-post frame + * `iec-60320-c21` - C21 - * `4-post-cabinet` - 4-post cabinet + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `wall-frame` - Wall-mounted frame + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `wall-frame-vertical` - Wall-mounted frame (vertical) + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `wall-cabinet` - Wall-mounted cabinet + * `iec-60309-2p-e-4h` - 2P+E 4H - * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' - x-spec-enum-id: e32aaa89a223f2ea - width: - enum: - - 10 - - 19 - - 21 - - 23 - type: integer - x-spec-enum-id: 9b322795f297a9c3 - description: 'Rail-to-rail width + * `iec-60309-2p-e-6h` - 2P+E 6H + * `iec-60309-2p-e-9h` - 2P+E 9H - * `10` - 10 inches + * `iec-60309-3p-e-4h` - 3P+E 4H - * `19` - 19 inches + * `iec-60309-3p-e-6h` - 3P+E 6H - * `21` - 21 inches + * `iec-60309-3p-e-9h` - 3P+E 9H - * `23` - 23 inches' - minimum: 0 - maximum: 32767 - u_height: - type: integer - maximum: 100 - minimum: 1 - title: Height (U) - description: Height in rack units - starting_unit: - type: integer - maximum: 32767 - minimum: 1 - description: Starting unit for rack - weight: - type: number - format: double - maximum: 1000000 - minimum: -1000000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - max_weight: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - description: Maximum load capacity for the rack - weight_unit: - enum: - - kg - - g - - lb - - oz - - '' - type: string - description: '* `kg` - Kilograms + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `g` - Grams + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `lb` - Pounds + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `oz` - Ounces' - x-spec-enum-id: 7c1876f422815884 - desc_units: - type: boolean - title: Descending units - description: Units are numbered top-to-bottom - outer_width: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (width) - outer_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Outer dimension of rack (depth) - outer_unit: - enum: - - mm - - in - - '' - type: string - description: '* `mm` - Millimeters + * `iec-60906-1` - IEC 60906-1 - * `in` - Inches' - x-spec-enum-id: 86a846b6c40f495e - mounting_depth: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - description: Maximum depth of a mounted device, in millimeters. For four-post - racks, this is the distance between the front and rear rails. - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - module: - allOf: - - $ref: '#/components/schemas/ModuleRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 64 - label: - type: string - description: Physical label - maxLength: 64 - type: - enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice - - other - type: string - description: '* `8p8c` - 8P8C + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `8p6c` - 8P6C + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `8p4c` - 8P4C + * `nema-1-15r` - NEMA 1-15R - * `8p2c` - 8P2C + * `nema-5-15r` - NEMA 5-15R - * `6p6c` - 6P6C + * `nema-5-20r` - NEMA 5-20R - * `6p4c` - 6P4C + * `nema-5-30r` - NEMA 5-30R - * `6p2c` - 6P2C + * `nema-5-50r` - NEMA 5-50R - * `4p4c` - 4P4C + * `nema-6-15r` - NEMA 6-15R - * `4p2c` - 4P2C + * `nema-6-20r` - NEMA 6-20R - * `gg45` - GG45 + * `nema-6-30r` - NEMA 6-30R - * `tera-4p` - TERA 4P + * `nema-6-50r` - NEMA 6-50R - * `tera-2p` - TERA 2P + * `nema-10-30r` - NEMA 10-30R - * `tera-1p` - TERA 1P + * `nema-10-50r` - NEMA 10-50R - * `110-punch` - 110 Punch + * `nema-14-20r` - NEMA 14-20R - * `bnc` - BNC + * `nema-14-30r` - NEMA 14-30R - * `f` - F Connector + * `nema-14-50r` - NEMA 14-50R - * `n` - N Connector + * `nema-14-60r` - NEMA 14-60R - * `mrj21` - MRJ21 + * `nema-15-15r` - NEMA 15-15R - * `fc` - FC + * `nema-15-20r` - NEMA 15-20R - * `lc` - LC + * `nema-15-30r` - NEMA 15-30R - * `lc-pc` - LC/PC + * `nema-15-50r` - NEMA 15-50R - * `lc-upc` - LC/UPC + * `nema-15-60r` - NEMA 15-60R - * `lc-apc` - LC/APC + * `nema-l1-15r` - NEMA L1-15R - * `lsh` - LSH + * `nema-l5-15r` - NEMA L5-15R - * `lsh-pc` - LSH/PC + * `nema-l5-20r` - NEMA L5-20R - * `lsh-upc` - LSH/UPC + * `nema-l5-30r` - NEMA L5-30R - * `lsh-apc` - LSH/APC + * `nema-l5-50r` - NEMA L5-50R - * `lx5` - LX.5 + * `nema-l6-15r` - NEMA L6-15R - * `lx5-pc` - LX.5/PC + * `nema-l6-20r` - NEMA L6-20R - * `lx5-upc` - LX.5/UPC + * `nema-l6-30r` - NEMA L6-30R - * `lx5-apc` - LX.5/APC + * `nema-l6-50r` - NEMA L6-50R - * `mpo` - MPO + * `nema-l10-30r` - NEMA L10-30R - * `mtrj` - MTRJ + * `nema-l14-20r` - NEMA L14-20R - * `sc` - SC + * `nema-l14-30r` - NEMA L14-30R - * `sc-pc` - SC/PC + * `nema-l14-50r` - NEMA L14-50R - * `sc-upc` - SC/UPC + * `nema-l14-60r` - NEMA L14-60R - * `sc-apc` - SC/APC + * `nema-l15-20r` - NEMA L15-20R - * `st` - ST + * `nema-l15-30r` - NEMA L15-30R - * `cs` - CS + * `nema-l15-50r` - NEMA L15-50R - * `sn` - SN + * `nema-l15-60r` - NEMA L15-60R - * `sma-905` - SMA 905 + * `nema-l21-20r` - NEMA L21-20R - * `sma-906` - SMA 906 + * `nema-l21-30r` - NEMA L21-30R - * `urm-p2` - URM-P2 + * `nema-l22-20r` - NEMA L22-20R - * `urm-p4` - URM-P4 + * `nema-l22-30r` - NEMA L22-30R - * `urm-p8` - URM-P8 + * `CS6360C` - CS6360C - * `splice` - Splice + * `CS6364C` - CS6364C - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: Number of front ports which may be mapped + * `CS8164C` - CS8164C + + * `CS8264C` - CS8264C + + * `CS8364C` - CS8364C + + * `CS8464C` - CS8464C + + * `ita-e` - ITA Type E (CEE 7/5) + + * `ita-f` - ITA Type F (CEE 7/3) + + * `ita-g` - ITA Type G (BS 1363) + + * `ita-h` - ITA Type H + + * `ita-i` - ITA Type I + + * `ita-j` - ITA Type J + + * `ita-k` - ITA Type K + + * `ita-l` - ITA Type L (CEI 23-50) + + * `ita-m` - ITA Type M (BS 546) + + * `ita-n` - ITA Type N + + * `ita-o` - ITA Type O + + * `ita-multistandard` - ITA Multistandard + + * `usb-a` - USB Type A + + * `usb-micro-b` - USB Micro B + + * `usb-c` - USB Type C + + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f8c08053f2db8830 + label: + type: string + enum: + - C5 + - C7 + - C13 + - C15 + - C19 + - C21 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15R + - NEMA 5-15R + - NEMA 5-20R + - NEMA 5-30R + - NEMA 5-50R + - NEMA 6-15R + - NEMA 6-20R + - NEMA 6-30R + - NEMA 6-50R + - NEMA 10-30R + - NEMA 10-50R + - NEMA 14-20R + - NEMA 14-30R + - NEMA 14-50R + - NEMA 14-60R + - NEMA 15-15R + - NEMA 15-20R + - NEMA 15-30R + - NEMA 15-50R + - NEMA 15-60R + - NEMA L1-15R + - NEMA L5-15R + - NEMA L5-20R + - NEMA L5-30R + - NEMA L5-50R + - NEMA L6-15R + - NEMA L6-20R + - NEMA L6-30R + - NEMA L6-50R + - NEMA L10-30R + - NEMA L14-20R + - NEMA L14-30R + - NEMA L14-50R + - NEMA L14-60R + - NEMA L15-20R + - NEMA L15-30R + - NEMA L15-50R + - NEMA L15-60R + - NEMA L21-20R + - NEMA L21-30R + - NEMA L22-20R + - NEMA L22-30R + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ITA Type E (CEE 7/5) + - ITA Type F (CEE 7/3) + - ITA Type G (BS 1363) + - ITA Type H + - ITA Type I + - ITA Type J + - ITA Type K + - ITA Type L (CEI 23-50) + - ITA Type M (BS 546) + - ITA Type N + - ITA Type O + - ITA Multistandard + - USB Type A + - USB Micro B + - USB Type C + - Molex Micro-Fit 1x2 + - Molex Micro-Fit 2x2 + - Molex Micro-Fit 2x4 + - DC Terminal + - Eaton C39 + - HDOT Cx + - Saf-D-Grid + - Neutrik powerCON (20A) + - Neutrik powerCON (32A) + - Neutrik powerCON TRUE1 + - Neutrik powerCON TRUE1 TOP + - Ubiquiti SmartPower + - Hardwired + - Other + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplate' + nullable: true + feed_leg: + type: object + properties: + value: + enum: + - A + - B + - C + - '' + type: string + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + label: + type: string + enum: + - A + - B + - C + nullable: true description: type: string maxLength: 200 - mark_connected: - type: boolean - description: Treat as if a cable is connected - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableRearPortTemplateRequest: + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - id + - last_updated + - name + - url + PowerOutletTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -125597,11 +179337,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -125615,1063 +179355,327 @@ components: maxLength: 64 type: enum: - - 8p8c - - 8p6c - - 8p4c - - 8p2c - - 6p6c - - 6p4c - - 6p2c - - 4p4c - - 4p2c - - gg45 - - tera-4p - - tera-2p - - tera-1p - - 110-punch - - bnc - - f - - n - - mrj21 - - fc - - lc - - lc-pc - - lc-upc - - lc-apc - - lsh - - lsh-pc - - lsh-upc - - lsh-apc - - lx5 - - lx5-pc - - lx5-upc - - lx5-apc - - mpo - - mtrj - - sc - - sc-pc - - sc-upc - - sc-apc - - st - - cs - - sn - - sma-905 - - sma-906 - - urm-p2 - - urm-p4 - - urm-p8 - - splice + - iec-60320-c5 + - iec-60320-c7 + - iec-60320-c13 + - iec-60320-c15 + - iec-60320-c19 + - iec-60320-c21 + - iec-60309-p-n-e-4h + - iec-60309-p-n-e-6h + - iec-60309-p-n-e-9h + - iec-60309-2p-e-4h + - iec-60309-2p-e-6h + - iec-60309-2p-e-9h + - iec-60309-3p-e-4h + - iec-60309-3p-e-6h + - iec-60309-3p-e-9h + - iec-60309-3p-n-e-4h + - iec-60309-3p-n-e-6h + - iec-60309-3p-n-e-9h + - iec-60906-1 + - nbr-14136-10a + - nbr-14136-20a + - nema-1-15r + - nema-5-15r + - nema-5-20r + - nema-5-30r + - nema-5-50r + - nema-6-15r + - nema-6-20r + - nema-6-30r + - nema-6-50r + - nema-10-30r + - nema-10-50r + - nema-14-20r + - nema-14-30r + - nema-14-50r + - nema-14-60r + - nema-15-15r + - nema-15-20r + - nema-15-30r + - nema-15-50r + - nema-15-60r + - nema-l1-15r + - nema-l5-15r + - nema-l5-20r + - nema-l5-30r + - nema-l5-50r + - nema-l6-15r + - nema-l6-20r + - nema-l6-30r + - nema-l6-50r + - nema-l10-30r + - nema-l14-20r + - nema-l14-30r + - nema-l14-50r + - nema-l14-60r + - nema-l15-20r + - nema-l15-30r + - nema-l15-50r + - nema-l15-60r + - nema-l21-20r + - nema-l21-30r + - nema-l22-20r + - nema-l22-30r + - CS6360C + - CS6364C + - CS8164C + - CS8264C + - CS8364C + - CS8464C + - ita-e + - ita-f + - ita-g + - ita-h + - ita-i + - ita-j + - ita-k + - ita-l + - ita-m + - ita-n + - ita-o + - ita-multistandard + - usb-a + - usb-micro-b + - usb-c + - molex-micro-fit-1x2 + - molex-micro-fit-2x2 + - molex-micro-fit-2x4 + - dc-terminal + - eaton-c39 + - hdot-cx + - saf-d-grid + - neutrik-powercon-20a + - neutrik-powercon-32a + - neutrik-powercon-true1 + - neutrik-powercon-true1-top + - ubiquiti-smartpower + - hardwired - other + - '' type: string - description: '* `8p8c` - 8P8C - - * `8p6c` - 8P6C - - * `8p4c` - 8P4C - - * `8p2c` - 8P2C - - * `6p6c` - 6P6C - - * `6p4c` - 6P4C - - * `6p2c` - 6P2C - - * `4p4c` - 4P4C + description: '* `iec-60320-c5` - C5 - * `4p2c` - 4P2C + * `iec-60320-c7` - C7 - * `gg45` - GG45 + * `iec-60320-c13` - C13 - * `tera-4p` - TERA 4P + * `iec-60320-c15` - C15 - * `tera-2p` - TERA 2P + * `iec-60320-c19` - C19 - * `tera-1p` - TERA 1P + * `iec-60320-c21` - C21 - * `110-punch` - 110 Punch + * `iec-60309-p-n-e-4h` - P+N+E 4H - * `bnc` - BNC + * `iec-60309-p-n-e-6h` - P+N+E 6H - * `f` - F Connector + * `iec-60309-p-n-e-9h` - P+N+E 9H - * `n` - N Connector + * `iec-60309-2p-e-4h` - 2P+E 4H - * `mrj21` - MRJ21 + * `iec-60309-2p-e-6h` - 2P+E 6H - * `fc` - FC + * `iec-60309-2p-e-9h` - 2P+E 9H - * `lc` - LC + * `iec-60309-3p-e-4h` - 3P+E 4H - * `lc-pc` - LC/PC + * `iec-60309-3p-e-6h` - 3P+E 6H - * `lc-upc` - LC/UPC + * `iec-60309-3p-e-9h` - 3P+E 9H - * `lc-apc` - LC/APC + * `iec-60309-3p-n-e-4h` - 3P+N+E 4H - * `lsh` - LSH + * `iec-60309-3p-n-e-6h` - 3P+N+E 6H - * `lsh-pc` - LSH/PC + * `iec-60309-3p-n-e-9h` - 3P+N+E 9H - * `lsh-upc` - LSH/UPC + * `iec-60906-1` - IEC 60906-1 - * `lsh-apc` - LSH/APC + * `nbr-14136-10a` - 2P+T 10A (NBR 14136) - * `lx5` - LX.5 + * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `lx5-pc` - LX.5/PC + * `nema-1-15r` - NEMA 1-15R - * `lx5-upc` - LX.5/UPC + * `nema-5-15r` - NEMA 5-15R - * `lx5-apc` - LX.5/APC + * `nema-5-20r` - NEMA 5-20R - * `mpo` - MPO + * `nema-5-30r` - NEMA 5-30R - * `mtrj` - MTRJ + * `nema-5-50r` - NEMA 5-50R - * `sc` - SC + * `nema-6-15r` - NEMA 6-15R - * `sc-pc` - SC/PC + * `nema-6-20r` - NEMA 6-20R - * `sc-upc` - SC/UPC + * `nema-6-30r` - NEMA 6-30R - * `sc-apc` - SC/APC + * `nema-6-50r` - NEMA 6-50R - * `st` - ST + * `nema-10-30r` - NEMA 10-30R - * `cs` - CS + * `nema-10-50r` - NEMA 10-50R - * `sn` - SN + * `nema-14-20r` - NEMA 14-20R - * `sma-905` - SMA 905 + * `nema-14-30r` - NEMA 14-30R - * `sma-906` - SMA 906 + * `nema-14-50r` - NEMA 14-50R - * `urm-p2` - URM-P2 + * `nema-14-60r` - NEMA 14-60R - * `urm-p4` - URM-P4 + * `nema-15-15r` - NEMA 15-15R - * `urm-p8` - URM-P8 + * `nema-15-20r` - NEMA 15-20R - * `splice` - Splice + * `nema-15-30r` - NEMA 15-30R - * `other` - Other' - x-spec-enum-id: 0276d1110ada597a - color: - type: string - pattern: ^[0-9a-f]{6}$ - maxLength: 6 - positions: - type: integer - maximum: 1024 - minimum: 1 - description: - type: string - maxLength: 200 - PatchedWritableRegionRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true - virtual_machine: - allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' - nullable: true - name: - type: string - minLength: 1 - maxLength: 100 - protocol: - enum: - - tcp - - udp - - sctp - type: string - description: '* `tcp` - TCP + * `nema-15-50r` - NEMA 15-50R - * `udp` - UDP + * `nema-15-60r` - NEMA 15-60R - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - ipaddresses: - type: array - items: - type: integer - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableServiceTemplateRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - protocol: - enum: - - tcp - - udp - - sctp - type: string - description: '* `tcp` - TCP + * `nema-l1-15r` - NEMA L1-15R - * `udp` - UDP + * `nema-l5-15r` - NEMA L5-15R - * `sctp` - SCTP' - x-spec-enum-id: 5521e084b1ad51de - ports: - type: array - items: - type: integer - maximum: 65535 - minimum: 1 - title: Port numbers - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableSiteRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - description: Full name of the site - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - status: - enum: - - planned - - staging - - active - - decommissioning - - retired - type: string - description: '* `planned` - Planned + * `nema-l5-20r` - NEMA L5-20R - * `staging` - Staging + * `nema-l5-30r` - NEMA L5-30R - * `active` - Active + * `nema-l5-50r` - NEMA L5-50R - * `decommissioning` - Decommissioning + * `nema-l6-15r` - NEMA L6-15R - * `retired` - Retired' - x-spec-enum-id: e363a8ddb138be50 - region: - allOf: - - $ref: '#/components/schemas/RegionRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/SiteGroupRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - facility: - type: string - description: Local facility ID or description - maxLength: 50 - time_zone: - type: string - nullable: true - description: - type: string - maxLength: 200 - physical_address: - type: string - description: Physical location of the building - maxLength: 200 - shipping_address: - type: string - description: If different from the physical address - maxLength: 200 - latitude: - type: number - format: double - maximum: 100 - minimum: -100 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - longitude: - type: number - format: double - maximum: 1000 - minimum: -1000 - exclusiveMaximum: true - exclusiveMinimum: true - nullable: true - description: GPS coordinate in decimal format (xx.yyyyyy) - comments: - type: string - asns: - type: array - items: - type: integer - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTenantGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - status: - enum: - - planned - - active - - disabled - type: string - description: '* `planned` - Planned + * `nema-l6-20r` - NEMA L6-20R - * `active` - Active + * `nema-l6-30r` - NEMA L6-30R - * `disabled` - Disabled' - x-spec-enum-id: 0d65f7912cba74aa - group: - allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' - nullable: true - encapsulation: - enum: - - ipsec-transport - - ipsec-tunnel - - ip-ip - - gre - type: string - description: '* `ipsec-transport` - IPsec - Transport + * `nema-l6-50r` - NEMA L6-50R - * `ipsec-tunnel` - IPsec - Tunnel + * `nema-l10-30r` - NEMA L10-30R - * `ip-ip` - IP-in-IP + * `nema-l14-20r` - NEMA L14-20R - * `gre` - GRE' - x-spec-enum-id: 5fc36bb745852746 - ipsec_profile: - allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - tunnel_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableTunnelTerminationRequest: - type: object - description: Adds support for custom fields and tags. - properties: - tunnel: - $ref: '#/components/schemas/TunnelRequest' - role: - enum: - - peer - - hub - - spoke - type: string - description: '* `peer` - Peer + * `nema-l14-30r` - NEMA L14-30R - * `hub` - Hub + * `nema-l14-50r` - NEMA L14-50R - * `spoke` - Spoke' - x-spec-enum-id: 52225cd60b867572 - termination_type: - type: string - termination_id: - type: integer - maximum: 9223372036854775807 - minimum: 0 - format: int64 - nullable: true - outside_ip: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - group: - allOf: - - $ref: '#/components/schemas/VLANGroupRequest' - nullable: true - vid: - type: integer - maximum: 4094 - minimum: 1 - title: VLAN ID - description: Numeric VLAN ID (1-4094) - name: - type: string - minLength: 1 - maxLength: 64 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - status: - enum: - - active - - reserved - - deprecated - type: string - x-spec-enum-id: 6388dfb94ca1cc15 - description: 'Operational status of this VLAN + * `nema-l14-60r` - NEMA L14-60R + * `nema-l15-20r` - NEMA L15-20R - * `active` - Active + * `nema-l15-30r` - NEMA L15-30R - * `reserved` - Reserved + * `nema-l15-50r` - NEMA L15-50R - * `deprecated` - Deprecated' - role: - allOf: - - $ref: '#/components/schemas/RoleRequest' - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVMInterfaceRequest: - type: object - description: Adds support for custom fields and tags. - properties: - virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' - name: - type: string - minLength: 1 - maxLength: 64 - enabled: - type: boolean - parent: - type: integer - nullable: true - title: Parent interface - bridge: - type: integer - nullable: true - title: Bridge interface - mtu: - type: integer - maximum: 65536 - minimum: 1 - nullable: true - mac_address: - type: string - nullable: true - minLength: 1 - description: - type: string - maxLength: 200 - mode: - enum: - - access - - tagged - - tagged-all - - '' - type: string - x-spec-enum-id: 79109bd9dbb73a3c - description: 'IEEE 802.1Q tagging strategy + * `nema-l15-60r` - NEMA L15-60R + * `nema-l21-20r` - NEMA L21-20R - * `access` - Access + * `nema-l21-30r` - NEMA L21-30R - * `tagged` - Tagged + * `nema-l22-20r` - NEMA L22-20R - * `tagged-all` - Tagged (All)' - untagged_vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tagged_vlans: - type: array - items: - type: integer - vrf: - allOf: - - $ref: '#/components/schemas/VRFRequest' - nullable: true - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualChassisRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - domain: - type: string - maxLength: 30 - master: - type: integer - nullable: true - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualDeviceContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - device: - $ref: '#/components/schemas/DeviceRequest' - identifier: - type: integer - maximum: 32767 - minimum: 0 - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - status: - enum: - - active - - planned - - offline - type: string - description: '* `active` - Active + * `nema-l22-30r` - NEMA L22-30R - * `planned` - Planned + * `CS6360C` - CS6360C - * `offline` - Offline' - x-spec-enum-id: ee1ef02def7a91ab - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableVirtualMachineWithConfigContextRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - status: - enum: - - offline - - active - - planned - - staged - - failed - - decommissioning - type: string - description: '* `offline` - Offline + * `CS6364C` - CS6364C - * `active` - Active + * `CS8164C` - CS8164C - * `planned` - Planned + * `CS8264C` - CS8264C - * `staged` - Staged + * `CS8364C` - CS8364C - * `failed` - Failed + * `CS8464C` - CS8464C - * `decommissioning` - Decommissioning' - x-spec-enum-id: 2217e87d0c3efdda - site: - allOf: - - $ref: '#/components/schemas/SiteRequest' - nullable: true - cluster: - allOf: - - $ref: '#/components/schemas/ClusterRequest' - nullable: true - device: - allOf: - - $ref: '#/components/schemas/DeviceRequest' - nullable: true - role: - allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - platform: - allOf: - - $ref: '#/components/schemas/PlatformRequest' - nullable: true - primary_ip4: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - primary_ip6: - allOf: - - $ref: '#/components/schemas/IPAddressRequest' - nullable: true - vcpus: - type: number - format: double - maximum: 10000 - minimum: 0.01 - exclusiveMaximum: true - nullable: true - memory: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Memory (MB) - disk: - type: integer - maximum: 2147483647 - minimum: 0 - nullable: true - title: Disk (GB) - description: - type: string - maxLength: 200 - comments: - type: string - config_template: - allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' - nullable: true - local_context_data: - nullable: true - description: Local config context data takes precedence over source contexts - in the final rendered config context - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLANGroupRequest: - type: object - description: Extends PrimaryModelSerializer to include MPTT support. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - parent: - type: integer - nullable: true - description: - type: string - maxLength: 200 - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLANRequest: - type: object - description: Adds support for custom fields and tags. - properties: - ssid: - type: string - minLength: 1 - maxLength: 32 - description: - type: string - maxLength: 200 - group: - allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' - nullable: true - status: - enum: - - active - - reserved - - disabled - - deprecated - type: string - description: '* `active` - Active + * `ita-e` - ITA Type E (CEE 7/5) - * `reserved` - Reserved + * `ita-f` - ITA Type F (CEE 7/3) - * `disabled` - Disabled + * `ita-g` - ITA Type G (BS 1363) - * `deprecated` - Deprecated' - x-spec-enum-id: 412ebdca597f609e - vlan: - allOf: - - $ref: '#/components/schemas/VLANRequest' - nullable: true - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open + * `ita-h` - ITA Type H - * `wep` - WEP + * `ita-i` - ITA Type I - * `wpa-personal` - WPA Personal (PSK) + * `ita-j` - ITA Type J - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `ita-k` - ITA Type K - * `tkip` - TKIP + * `ita-l` - ITA Type L (CEI 23-50) - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - PatchedWritableWirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/InterfaceRequest' - interface_b: - $ref: '#/components/schemas/InterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected + * `ita-m` - ITA Type M (BS 546) - * `planned` - Planned + * `ita-n` - ITA Type N - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true - auth_type: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open + * `ita-o` - ITA Type O - * `wep` - WEP + * `ita-multistandard` - ITA Multistandard - * `wpa-personal` - WPA Personal (PSK) + * `usb-a` - USB Type A - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - title: Authentication type - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `usb-micro-b` - USB Micro B - * `tkip` - TKIP + * `usb-c` - USB Type C - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - title: Authentication cipher - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - Platform: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - device_count: - type: integer - format: int64 - readOnly: true - virtualmachine_count: - type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - slug - - url - PlatformRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 + + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `eaton-c39` - Eaton C39 + + * `hdot-cx` - HDOT Cx + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20a` - Neutrik powerCON (20A) + + * `neutrik-powercon-32a` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f8c08053f2db8830 + nullable: true + power_port: + allOf: + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' + nullable: true + feed_leg: + enum: + - A + - B + - C + - '' type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ + description: '* `A` - A + + * `B` - B + + * `C` - C' + x-spec-enum-id: a4902339df0b7c06 + nullable: true description: type: string maxLength: 200 required: - name - - slug - PowerFeed: + PowerPanel: type: object description: Adds support for custom fields and tags. properties: @@ -126682,143 +179686,25 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true - power_panel: - $ref: '#/components/schemas/PowerPanel' - rack: + site: + $ref: '#/components/schemas/BriefSite' + location: allOf: - - $ref: '#/components/schemas/Rack' + - $ref: '#/components/schemas/BriefLocation' nullable: true name: type: string maxLength: 100 - status: - type: object - properties: - value: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - label: - type: string - enum: - - Offline - - Active - - Planned - - Failed - type: - type: object - properties: - value: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - label: - type: string - enum: - - Primary - - Redundant - supply: - type: object - properties: - value: - enum: - - ac - - dc - type: string - description: '* `ac` - AC - - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - label: - type: string - enum: - - AC - - DC - phase: - type: object - properties: - value: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - label: - type: string - enum: - - Single phase - - Three-phase - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true - nullable: true - cable_end: - type: string - readOnly: true - link_peers: - type: array - items: {} - readOnly: true - link_peers_type: - type: string - description: Return the type of the peer link terminations, or None. - readOnly: true - connected_endpoints: - type: array - items: {} - readOnly: true - connected_endpoints_type: - type: string - readOnly: true - connected_endpoints_reachable: - type: boolean - readOnly: true description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true comments: type: string tags: @@ -126828,6 +179714,10 @@ components: custom_fields: type: object additionalProperties: {} + powerfeed_count: + type: integer + format: int64 + readOnly: true created: type: string format: date-time @@ -126838,105 +179728,32 @@ components: format: date-time readOnly: true nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' required: - - _occupied - - cable - - cable_end - - connected_endpoints - - connected_endpoints_reachable - - connected_endpoints_type - created - display - id - last_updated - - link_peers - - link_peers_type - name - - power_panel + - powerfeed_count + - site - url - PowerFeedRequest: + PowerPanelRequest: type: object description: Adds support for custom fields and tags. properties: - power_panel: - $ref: '#/components/schemas/PowerPanelRequest' - rack: + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true name: type: string minLength: 1 maxLength: 100 - status: - enum: - - offline - - active - - planned - - failed - type: string - description: '* `offline` - Offline - - * `active` - Active - - * `planned` - Planned - - * `failed` - Failed' - x-spec-enum-id: b77fc919138c12f6 - type: - enum: - - primary - - redundant - type: string - description: '* `primary` - Primary - - * `redundant` - Redundant' - x-spec-enum-id: 093a164236819eb8 - supply: - enum: - - ac - - dc - type: string - description: '* `ac` - AC - - * `dc` - DC' - x-spec-enum-id: 1b6d99616ca6412b - phase: - enum: - - single-phase - - three-phase - type: string - description: '* `single-phase` - Single phase - - * `three-phase` - Three-phase' - x-spec-enum-id: 994bc0696f4df57f - voltage: - type: integer - maximum: 32767 - minimum: -32768 - amperage: - type: integer - maximum: 32767 - minimum: 1 - max_utilization: - type: integer - maximum: 100 - minimum: 1 - description: Maximum permissible draw (percentage) - mark_connected: - type: boolean - description: Treat as if a cable is connected description: type: string maxLength: 200 - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' - nullable: true comments: type: string tags: @@ -126948,8 +179765,8 @@ components: additionalProperties: {} required: - name - - power_panel - PowerOutlet: + - site + PowerPort: type: object description: Adds support for custom fields and tags. properties: @@ -126960,14 +179777,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -126981,12 +179802,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127002,55 +179823,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127060,18 +179884,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127079,17 +179908,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127121,103 +179950,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -127237,14 +180072,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -127253,13 +180100,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -127270,16 +180115,16 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b label: type: string enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 - P+N+E 4H - P+N+E 6H - P+N+E 9H @@ -127295,55 +180140,58 @@ components: - IEC 60906-1 - 2P+T 10A (NBR 14136) - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -127353,15 +180201,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -127371,33 +180224,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPort' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -127406,7 +180244,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -127420,13 +180258,16 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true connected_endpoints: type: array items: {} + nullable: true readOnly: true connected_endpoints_type: type: string readOnly: true + nullable: true connected_endpoints_reachable: type: boolean readOnly: true @@ -127467,15 +180308,15 @@ components: - link_peers_type - name - url - PowerOutletRequest: + PowerPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -127487,12 +180328,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127508,55 +180349,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127566,18 +180410,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127585,17 +180434,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127627,103 +180476,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -127743,14 +180598,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -127759,13 +180626,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -127776,26 +180641,20 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortRequest' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -127812,7 +180671,7 @@ components: required: - device - name - PowerOutletTemplate: + PowerPortTemplate: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -127831,11 +180690,11 @@ components: readOnly: true device_type: allOf: - - $ref: '#/components/schemas/DeviceType' + - $ref: '#/components/schemas/BriefDeviceType' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleType' + - $ref: '#/components/schemas/BriefModuleType' nullable: true name: type: string @@ -127851,12 +180710,12 @@ components: properties: value: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -127872,55 +180731,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -127930,18 +180792,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -127949,17 +180816,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -127991,103 +180858,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128107,113 +180980,126 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C - * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - - * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 - - * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 - - * `dc-terminal` - DC Terminal - - * `hdot-cx` - HDOT Cx + * `usb-mini-a` - USB Mini A - * `saf-d-grid` - Saf-D-Grid + * `usb-mini-b` - USB Mini B - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `usb-micro-a` - USB Micro A - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `usb-micro-b` - USB Micro B - * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + * `usb-micro-ab` - USB Micro AB - * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + * `usb-3-b` - USB 3.0 Type B - * `ubiquiti-smartpower` - Ubiquiti SmartPower + * `usb-3-micro-b` - USB 3.0 Micro B - * `hardwired` - Hardwired + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 - * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - label: - type: string - enum: - - C5 - - C7 - - C13 - - C15 - - C19 - - C21 - - P+N+E 4H - - P+N+E 6H - - P+N+E 9H - - 2P+E 4H - - 2P+E 6H - - 2P+E 9H - - 3P+E 4H - - 3P+E 6H - - 3P+E 9H - - 3P+N+E 4H - - 3P+N+E 6H - - 3P+N+E 9H - - IEC 60906-1 - - 2P+T 10A (NBR 14136) - - 2P+T 20A (NBR 14136) - - NEMA 1-15R - - NEMA 5-15R - - NEMA 5-20R - - NEMA 5-30R - - NEMA 5-50R - - NEMA 6-15R - - NEMA 6-20R - - NEMA 6-30R - - NEMA 6-50R - - NEMA 10-30R - - NEMA 10-50R - - NEMA 14-20R - - NEMA 14-30R - - NEMA 14-50R - - NEMA 14-60R - - NEMA 15-15R - - NEMA 15-20R - - NEMA 15-30R - - NEMA 15-50R - - NEMA 15-60R - - NEMA L1-15R - - NEMA L5-15R - - NEMA L5-20R - - NEMA L5-30R - - NEMA L5-50R - - NEMA L6-15R - - NEMA L6-20R - - NEMA L6-30R - - NEMA L6-50R - - NEMA L10-30R - - NEMA L14-20R - - NEMA L14-30R - - NEMA L14-50R - - NEMA L14-60R - - NEMA L15-20R - - NEMA L15-30R - - NEMA L15-50R - - NEMA L15-60R - - NEMA L21-20R - - NEMA L21-30R - - NEMA L22-30R - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C - - ITA Type E (CEE 7/5) - - ITA Type F (CEE 7/3) + * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 + + * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 + + * `dc-terminal` - DC Terminal + + * `saf-d-grid` - Saf-D-Grid + + * `neutrik-powercon-20` - Neutrik powerCON (20A) + + * `neutrik-powercon-32` - Neutrik powerCON (32A) + + * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 + + * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP + + * `ubiquiti-smartpower` - Ubiquiti SmartPower + + * `hardwired` - Hardwired + + * `other` - Other' + x-spec-enum-id: f1bd4aedff3a591b + label: + type: string + enum: + - C6 + - C8 + - C14 + - C16 + - C20 + - C22 + - P+N+E 4H + - P+N+E 6H + - P+N+E 9H + - 2P+E 4H + - 2P+E 6H + - 2P+E 9H + - 3P+E 4H + - 3P+E 6H + - 3P+E 9H + - 3P+N+E 4H + - 3P+N+E 6H + - 3P+N+E 9H + - IEC 60906-1 + - 2P+T 10A (NBR 14136) + - 2P+T 20A (NBR 14136) + - NEMA 1-15P + - NEMA 5-15P + - NEMA 5-20P + - NEMA 5-30P + - NEMA 5-50P + - NEMA 6-15P + - NEMA 6-20P + - NEMA 6-30P + - NEMA 6-50P + - NEMA 10-30P + - NEMA 10-50P + - NEMA 14-20P + - NEMA 14-30P + - NEMA 14-50P + - NEMA 14-60P + - NEMA 15-15P + - NEMA 15-20P + - NEMA 15-30P + - NEMA 15-50P + - NEMA 15-60P + - NEMA L1-15P + - NEMA L5-15P + - NEMA L5-20P + - NEMA L5-30P + - NEMA L5-50P + - NEMA L6-15P + - NEMA L6-20P + - NEMA L6-30P + - NEMA L6-50P + - NEMA L10-30P + - NEMA L14-20P + - NEMA L14-30P + - NEMA L14-50P + - NEMA L14-60P + - NEMA L15-20P + - NEMA L15-30P + - NEMA L15-50P + - NEMA L15-60P + - NEMA L21-20P + - NEMA L21-30P + - NEMA L22-20P + - NEMA L22-30P + - CS6361C + - CS6365C + - CS8165C + - CS8265C + - CS8365C + - CS8465C + - ITA Type C (CEE 7/16) + - ITA Type E (CEE 7/6) + - ITA Type F (CEE 7/4) + - ITA Type E/F (CEE 7/7) - ITA Type G (BS 1363) - ITA Type H - ITA Type I @@ -128223,15 +181109,20 @@ components: - ITA Type M (BS 546) - ITA Type N - ITA Type O - - ITA Multistandard - USB Type A - - USB Micro B + - USB Type B - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - USB 3.0 Type B + - USB 3.0 Micro B - Molex Micro-Fit 1x2 - Molex Micro-Fit 2x2 - Molex Micro-Fit 2x4 - DC Terminal - - HDOT Cx - Saf-D-Grid - Neutrik powerCON (20A) - Neutrik powerCON (32A) @@ -128241,33 +181132,18 @@ components: - Hardwired - Other nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplate' + maximum_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true - feed_leg: - type: object - properties: - value: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 - label: - type: string - enum: - - A - - B - - C + description: Maximum power draw (watts) + allocated_draw: + type: integer + maximum: 2147483647 + minimum: 1 nullable: true + description: Allocated power draw (watts) description: type: string maxLength: 200 @@ -128288,7 +181164,7 @@ components: - last_updated - name - url - PowerOutletTemplateRequest: + PowerPortTemplateRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during @@ -128297,11 +181173,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -128315,12 +181191,12 @@ components: maxLength: 64 type: enum: - - iec-60320-c5 - - iec-60320-c7 - - iec-60320-c13 - - iec-60320-c15 - - iec-60320-c19 - - iec-60320-c21 + - iec-60320-c6 + - iec-60320-c8 + - iec-60320-c14 + - iec-60320-c16 + - iec-60320-c20 + - iec-60320-c22 - iec-60309-p-n-e-4h - iec-60309-p-n-e-6h - iec-60309-p-n-e-9h @@ -128336,55 +181212,58 @@ components: - iec-60906-1 - nbr-14136-10a - nbr-14136-20a - - nema-1-15r - - nema-5-15r - - nema-5-20r - - nema-5-30r - - nema-5-50r - - nema-6-15r - - nema-6-20r - - nema-6-30r - - nema-6-50r - - nema-10-30r - - nema-10-50r - - nema-14-20r - - nema-14-30r - - nema-14-50r - - nema-14-60r - - nema-15-15r - - nema-15-20r - - nema-15-30r - - nema-15-50r - - nema-15-60r - - nema-l1-15r - - nema-l5-15r - - nema-l5-20r - - nema-l5-30r - - nema-l5-50r - - nema-l6-15r - - nema-l6-20r - - nema-l6-30r - - nema-l6-50r - - nema-l10-30r - - nema-l14-20r - - nema-l14-30r - - nema-l14-50r - - nema-l14-60r - - nema-l15-20r - - nema-l15-30r - - nema-l15-50r - - nema-l15-60r - - nema-l21-20r - - nema-l21-30r - - nema-l22-30r - - CS6360C - - CS6364C - - CS8164C - - CS8264C - - CS8364C - - CS8464C + - nema-1-15p + - nema-5-15p + - nema-5-20p + - nema-5-30p + - nema-5-50p + - nema-6-15p + - nema-6-20p + - nema-6-30p + - nema-6-50p + - nema-10-30p + - nema-10-50p + - nema-14-20p + - nema-14-30p + - nema-14-50p + - nema-14-60p + - nema-15-15p + - nema-15-20p + - nema-15-30p + - nema-15-50p + - nema-15-60p + - nema-l1-15p + - nema-l5-15p + - nema-l5-20p + - nema-l5-30p + - nema-l5-50p + - nema-l6-15p + - nema-l6-20p + - nema-l6-30p + - nema-l6-50p + - nema-l10-30p + - nema-l14-20p + - nema-l14-30p + - nema-l14-50p + - nema-l14-60p + - nema-l15-20p + - nema-l15-30p + - nema-l15-50p + - nema-l15-60p + - nema-l21-20p + - nema-l21-30p + - nema-l22-20p + - nema-l22-30p + - cs6361c + - cs6365c + - cs8165c + - cs8265c + - cs8365c + - cs8465c + - ita-c - ita-e - ita-f + - ita-ef - ita-g - ita-h - ita-i @@ -128394,18 +181273,23 @@ components: - ita-m - ita-n - ita-o - - ita-multistandard - usb-a - - usb-micro-b + - usb-b - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - usb-3-b + - usb-3-micro-b - molex-micro-fit-1x2 - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal - - hdot-cx - saf-d-grid - - neutrik-powercon-20a - - neutrik-powercon-32a + - neutrik-powercon-20 + - neutrik-powercon-32 - neutrik-powercon-true1 - neutrik-powercon-true1-top - ubiquiti-smartpower @@ -128413,17 +181297,17 @@ components: - other - '' type: string - description: '* `iec-60320-c5` - C5 + description: '* `iec-60320-c6` - C6 - * `iec-60320-c7` - C7 + * `iec-60320-c8` - C8 - * `iec-60320-c13` - C13 + * `iec-60320-c14` - C14 - * `iec-60320-c15` - C15 + * `iec-60320-c16` - C16 - * `iec-60320-c19` - C19 + * `iec-60320-c20` - C20 - * `iec-60320-c21` - C21 + * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H @@ -128455,103 +181339,109 @@ components: * `nbr-14136-20a` - 2P+T 20A (NBR 14136) - * `nema-1-15r` - NEMA 1-15R + * `nema-1-15p` - NEMA 1-15P - * `nema-5-15r` - NEMA 5-15R + * `nema-5-15p` - NEMA 5-15P - * `nema-5-20r` - NEMA 5-20R + * `nema-5-20p` - NEMA 5-20P - * `nema-5-30r` - NEMA 5-30R + * `nema-5-30p` - NEMA 5-30P - * `nema-5-50r` - NEMA 5-50R + * `nema-5-50p` - NEMA 5-50P - * `nema-6-15r` - NEMA 6-15R + * `nema-6-15p` - NEMA 6-15P - * `nema-6-20r` - NEMA 6-20R + * `nema-6-20p` - NEMA 6-20P - * `nema-6-30r` - NEMA 6-30R + * `nema-6-30p` - NEMA 6-30P - * `nema-6-50r` - NEMA 6-50R + * `nema-6-50p` - NEMA 6-50P - * `nema-10-30r` - NEMA 10-30R + * `nema-10-30p` - NEMA 10-30P - * `nema-10-50r` - NEMA 10-50R + * `nema-10-50p` - NEMA 10-50P - * `nema-14-20r` - NEMA 14-20R + * `nema-14-20p` - NEMA 14-20P - * `nema-14-30r` - NEMA 14-30R + * `nema-14-30p` - NEMA 14-30P - * `nema-14-50r` - NEMA 14-50R + * `nema-14-50p` - NEMA 14-50P - * `nema-14-60r` - NEMA 14-60R + * `nema-14-60p` - NEMA 14-60P - * `nema-15-15r` - NEMA 15-15R + * `nema-15-15p` - NEMA 15-15P - * `nema-15-20r` - NEMA 15-20R + * `nema-15-20p` - NEMA 15-20P - * `nema-15-30r` - NEMA 15-30R + * `nema-15-30p` - NEMA 15-30P - * `nema-15-50r` - NEMA 15-50R + * `nema-15-50p` - NEMA 15-50P - * `nema-15-60r` - NEMA 15-60R + * `nema-15-60p` - NEMA 15-60P - * `nema-l1-15r` - NEMA L1-15R + * `nema-l1-15p` - NEMA L1-15P - * `nema-l5-15r` - NEMA L5-15R + * `nema-l5-15p` - NEMA L5-15P - * `nema-l5-20r` - NEMA L5-20R + * `nema-l5-20p` - NEMA L5-20P - * `nema-l5-30r` - NEMA L5-30R + * `nema-l5-30p` - NEMA L5-30P - * `nema-l5-50r` - NEMA L5-50R + * `nema-l5-50p` - NEMA L5-50P - * `nema-l6-15r` - NEMA L6-15R + * `nema-l6-15p` - NEMA L6-15P - * `nema-l6-20r` - NEMA L6-20R + * `nema-l6-20p` - NEMA L6-20P - * `nema-l6-30r` - NEMA L6-30R + * `nema-l6-30p` - NEMA L6-30P - * `nema-l6-50r` - NEMA L6-50R + * `nema-l6-50p` - NEMA L6-50P - * `nema-l10-30r` - NEMA L10-30R + * `nema-l10-30p` - NEMA L10-30P - * `nema-l14-20r` - NEMA L14-20R + * `nema-l14-20p` - NEMA L14-20P - * `nema-l14-30r` - NEMA L14-30R + * `nema-l14-30p` - NEMA L14-30P - * `nema-l14-50r` - NEMA L14-50R + * `nema-l14-50p` - NEMA L14-50P - * `nema-l14-60r` - NEMA L14-60R + * `nema-l14-60p` - NEMA L14-60P - * `nema-l15-20r` - NEMA L15-20R + * `nema-l15-20p` - NEMA L15-20P - * `nema-l15-30r` - NEMA L15-30R + * `nema-l15-30p` - NEMA L15-30P - * `nema-l15-50r` - NEMA L15-50R + * `nema-l15-50p` - NEMA L15-50P - * `nema-l15-60r` - NEMA L15-60R + * `nema-l15-60p` - NEMA L15-60P - * `nema-l21-20r` - NEMA L21-20R + * `nema-l21-20p` - NEMA L21-20P - * `nema-l21-30r` - NEMA L21-30R + * `nema-l21-30p` - NEMA L21-30P - * `nema-l22-30r` - NEMA L22-30R + * `nema-l22-20p` - NEMA L22-20P - * `CS6360C` - CS6360C + * `nema-l22-30p` - NEMA L22-30P - * `CS6364C` - CS6364C + * `cs6361c` - CS6361C - * `CS8164C` - CS8164C + * `cs6365c` - CS6365C - * `CS8264C` - CS8264C + * `cs8165c` - CS8165C - * `CS8364C` - CS8364C + * `cs8265c` - CS8265C - * `CS8464C` - CS8464C + * `cs8365c` - CS8365C - * `ita-e` - ITA Type E (CEE 7/5) + * `cs8465c` - CS8465C - * `ita-f` - ITA Type F (CEE 7/3) + * `ita-c` - ITA Type C (CEE 7/16) + + * `ita-e` - ITA Type E (CEE 7/6) + + * `ita-f` - ITA Type F (CEE 7/4) + + * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) @@ -128571,14 +181461,26 @@ components: * `ita-o` - ITA Type O - * `ita-multistandard` - ITA Multistandard - * `usb-a` - USB Type A - * `usb-micro-b` - USB Micro B + * `usb-b` - USB Type B * `usb-c` - USB Type C + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `usb-3-b` - USB 3.0 Type B + + * `usb-3-micro-b` - USB 3.0 Micro B + * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 @@ -128587,13 +181489,11 @@ components: * `dc-terminal` - DC Terminal - * `hdot-cx` - HDOT Cx - * `saf-d-grid` - Saf-D-Grid - * `neutrik-powercon-20a` - Neutrik powerCON (20A) + * `neutrik-powercon-20` - Neutrik powerCON (20A) - * `neutrik-powercon-32a` - Neutrik powerCON (32A) + * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 @@ -128604,135 +181504,28 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 - nullable: true - power_port: - allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' - nullable: true - feed_leg: - enum: - - A - - B - - C - - '' - type: string - description: '* `A` - A - - * `B` - B - - * `C` - C' - x-spec-enum-id: a4902339df0b7c06 + x-spec-enum-id: f1bd4aedff3a591b nullable: true - description: - type: string - maxLength: 200 - required: - - name - PowerPanel: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: - type: string - maxLength: 200 - powerfeed_count: + maximum_draw: type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - powerfeed_count - - url - PowerPanelRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - description: - type: string - maxLength: 200 - required: - - name - PowerPort: - type: object - description: Adds support for custom fields and tags. - properties: - id: + maximum: 2147483647 + minimum: 1 + nullable: true + description: Maximum power draw (watts) + allocated_draw: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - device: - $ref: '#/components/schemas/Device' - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - cable: - allOf: - - $ref: '#/components/schemas/Cable' - readOnly: true + maximum: 2147483647 + minimum: 1 nullable: true - _occupied: - type: boolean - readOnly: true - title: ' occupied' - required: - - _occupied - - cable - - device - - display - - id - - name - - url - PowerPortRequest: - type: object - description: Adds support for custom fields and tags. - properties: - device: - $ref: '#/components/schemas/DeviceRequest' - name: - type: string - minLength: 1 - maxLength: 64 + description: Allocated power draw (watts) description: type: string maxLength: 200 required: - - device - name - PowerPortTemplate: + Prefix: type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + description: Adds support for custom fields and tags. properties: id: type: integer @@ -128741,48 +181534,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - PowerPortTemplateRequest: - type: object - description: 'Extends the built-in ModelSerializer to enforce calling full_clean() - on a copy of the associated instance during - - validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' - properties: - name: - type: string - minLength: 1 - description: '{module} is accepted as a substitution for the module bay - position when attached to a module type.' - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - Prefix: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -128811,19 +181563,19 @@ components: type: string site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true status: type: object @@ -128852,7 +181604,7 @@ components: - Deprecated role: allOf: - - $ref: '#/components/schemas/Role' + - $ref: '#/components/schemas/BriefRole' nullable: true is_pool: type: boolean @@ -128909,19 +181661,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -128940,7 +181692,7 @@ components: x-spec-enum-id: d38bee5f512701d9 role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -128974,6 +181726,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -128985,17 +181741,46 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + $ref: '#/components/schemas/NestedProviderAccount' description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true circuit_count: type: integer format: int64 readOnly: true required: - circuit_count + - created - display - id + - last_updated - name - slug - url @@ -129010,11 +181795,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true provider: - $ref: '#/components/schemas/Provider' + $ref: '#/components/schemas/BriefProvider' name: type: string default: '' @@ -129057,6 +181846,8 @@ components: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string default: '' @@ -129069,8 +181860,18 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - account + - provider ProviderNetwork: type: object description: Adds support for custom fields and tags. @@ -129082,33 +181883,79 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + provider: + $ref: '#/components/schemas/BriefProvider' name: type: string maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name + - provider - url ProviderNetworkRequest: type: object description: Adds support for custom fields and tags. properties: + provider: + $ref: '#/components/schemas/BriefProviderRequest' name: type: string minLength: 1 maxLength: 100 + service_id: + type: string + maxLength: 100 description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - provider ProviderRequest: type: object description: Adds support for custom fields and tags. @@ -129123,9 +181970,26 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + accounts: + type: array + items: + type: integer description: type: string maxLength: 200 + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -129135,96 +181999,587 @@ components: properties: id: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - slug: - type: string - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: - type: string - maxLength: 200 - aggregate_count: + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + aggregate_count: + type: integer + format: int64 + readOnly: true + required: + - aggregate_count + - created + - display + - id + - last_updated + - name + - slug + - url + RIRRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + is_private: + type: boolean + title: Private + description: IP space managed by this RIR is considered private + description: + type: string + maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - name + - slug + Rack: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + name: + type: string + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSite' + location: + allOf: + - $ref: '#/components/schemas/BriefLocation' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + label: + type: string + enum: + - Reserved + - Available + - Planned + - Active + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRackRole' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackType' + nullable: true + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + type: object + properties: + value: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c + label: + type: string + enum: + - Front to rear + - Rear to front + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + device_count: + type: integer + format: int64 + readOnly: true + powerfeed_count: + type: integer + format: int64 + readOnly: true + required: + - created + - display + - id + - last_updated + - name + - powerfeed_count + - site + - url + RackRequest: + type: object + description: Adds support for custom fields and tags. + properties: + name: + type: string + minLength: 1 + maxLength: 100 + facility_id: + type: string + nullable: true + maxLength: 50 + site: + $ref: '#/components/schemas/BriefSiteRequest' + location: + allOf: + - $ref: '#/components/schemas/BriefLocationRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - reserved + - available + - planned + - active + - deprecated + type: string + description: '* `reserved` - Reserved + + * `available` - Available + + * `planned` - Planned + + * `active` - Active + + * `deprecated` - Deprecated' + x-spec-enum-id: 0c556d55dc1baa13 + role: + allOf: + - $ref: '#/components/schemas/BriefRackRoleRequest' + nullable: true + serial: + type: string + title: Serial number + maxLength: 50 + asset_tag: + type: string + nullable: true + description: A unique tag used to identify this rack + maxLength: 50 + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: type: integer - format: int64 - readOnly: true - required: - - aggregate_count - - display - - id - - name - - slug - - url - RIRRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 100 - slug: - type: string - minLength: 1 - maxLength: 100 - pattern: ^[-a-zA-Z0-9_]+$ - description: + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' type: string - maxLength: 200 - required: - - name - - slug - Rack: - type: object - description: Adds support for custom fields and tags. - properties: - id: + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 100 - description: + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' type: string - maxLength: 200 - device_count: + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + mounting_depth: type: integer - format: int64 - readOnly: true - required: - - display - - id - - name - - url - RackRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' type: string - minLength: 1 - maxLength: 100 + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name + - site RackReservation: type: object description: Adds support for custom fields and tags. @@ -129236,11 +182591,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true rack: - $ref: '#/components/schemas/Rack' + $ref: '#/components/schemas/BriefRack' units: type: array items: @@ -129258,10 +182617,10 @@ components: readOnly: true nullable: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -129290,7 +182649,7 @@ components: description: Adds support for custom fields and tags. properties: rack: - $ref: '#/components/schemas/RackRequest' + $ref: '#/components/schemas/BriefRackRequest' units: type: array items: @@ -129298,10 +182657,10 @@ components: maximum: 32767 minimum: 0 user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -129332,6 +182691,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -129410,6 +182773,370 @@ components: required: - name - slug + RackType: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + manufacturer: + $ref: '#/components/schemas/BriefManufacturer' + model: + type: string + maxLength: 100 + slug: + type: string + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + type: object + properties: + value: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + label: + type: string + enum: + - 2-post frame + - 4-post frame + - 4-post cabinet + - Wall-mounted frame + - Wall-mounted frame (vertical) + - Wall-mounted cabinet + - Wall-mounted cabinet (vertical) + nullable: true + width: + type: object + properties: + value: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + label: + type: string + enum: + - 10 inches + - 19 inches + - 21 inches + - 23 inches + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + type: object + properties: + value: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + label: + type: string + enum: + - Millimeters + - Inches + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + type: object + properties: + value: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + label: + type: string + enum: + - Kilograms + - Grams + - Pounds + - Ounces + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - id + - last_updated + - manufacturer + - model + - slug + - url + RackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + - '' + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + nullable: true + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + description: '* `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + x-spec-enum-id: 9b322795f297a9c3 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + nullable: true + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + nullable: true + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - manufacturer + - model + - slug RackUnit: type: object description: A rack unit is an abstraction formed by the set (rack, position, @@ -129446,7 +183173,7 @@ components: readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' readOnly: true occupied: type: boolean @@ -129472,14 +183199,18 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' module: allOf: - - $ref: '#/components/schemas/Module' + - $ref: '#/components/schemas/BriefModule' nullable: true name: type: string @@ -129539,6 +183270,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129633,8 +183372,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a label: type: string enum: @@ -129684,6 +183439,14 @@ components: - URM-P4 - URM-P8 - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB - Other color: type: string @@ -129702,7 +183465,7 @@ components: description: Treat as if a cable is connected cable: allOf: - - $ref: '#/components/schemas/Cable' + - $ref: '#/components/schemas/BriefCable' readOnly: true nullable: true cable_end: @@ -129716,6 +183479,7 @@ components: type: string description: Return the type of the peer link terminations, or None. readOnly: true + nullable: true tags: type: array items: @@ -129756,10 +183520,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -129817,6 +183581,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -129911,8 +183683,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -129956,18 +183744,280 @@ components: display: type: string readOnly: true + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceType' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleType' + nullable: true name: type: string description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + type: object + properties: + value: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + label: + type: string + enum: + - 8P8C + - 8P6C + - 8P4C + - 8P2C + - 6P6C + - 6P4C + - 6P2C + - 4P4C + - 4P2C + - GG45 + - TERA 4P + - TERA 2P + - TERA 1P + - 110 Punch + - BNC + - F Connector + - N Connector + - MRJ21 + - FC + - LC + - LC/PC + - LC/UPC + - LC/APC + - LSH + - LSH/PC + - LSH/UPC + - LSH/APC + - LX.5 + - LX.5/PC + - LX.5/UPC + - LX.5/APC + - MPO + - MTRJ + - SC + - SC/PC + - SC/UPC + - SC/APC + - ST + - CS + - SN + - SMA 905 + - SMA 906 + - URM-P2 + - URM-P4 + - URM-P8 + - Splice + - USB Type A + - USB Type B + - USB Type C + - USB Mini A + - USB Mini B + - USB Micro A + - USB Micro B + - USB Micro AB + - Other + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true required: + - created - display - id + - last_updated - name + - type - url RearPortTemplateRequest: type: object @@ -129976,17 +184026,206 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: + device_type: + allOf: + - $ref: '#/components/schemas/BriefDeviceTypeRequest' + nullable: true + module_type: + allOf: + - $ref: '#/components/schemas/BriefModuleTypeRequest' + nullable: true name: type: string minLength: 1 description: '{module} is accepted as a substitution for the module bay position when attached to a module type.' maxLength: 64 + label: + type: string + description: Physical label + maxLength: 64 + type: + enum: + - 8p8c + - 8p6c + - 8p4c + - 8p2c + - 6p6c + - 6p4c + - 6p2c + - 4p4c + - 4p2c + - gg45 + - tera-4p + - tera-2p + - tera-1p + - 110-punch + - bnc + - f + - n + - mrj21 + - fc + - lc + - lc-pc + - lc-upc + - lc-apc + - lsh + - lsh-pc + - lsh-upc + - lsh-apc + - lx5 + - lx5-pc + - lx5-upc + - lx5-apc + - mpo + - mtrj + - sc + - sc-pc + - sc-upc + - sc-apc + - st + - cs + - sn + - sma-905 + - sma-906 + - urm-p2 + - urm-p4 + - urm-p8 + - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab + - other + type: string + description: '* `8p8c` - 8P8C + + * `8p6c` - 8P6C + + * `8p4c` - 8P4C + + * `8p2c` - 8P2C + + * `6p6c` - 6P6C + + * `6p4c` - 6P4C + + * `6p2c` - 6P2C + + * `4p4c` - 4P4C + + * `4p2c` - 4P2C + + * `gg45` - GG45 + + * `tera-4p` - TERA 4P + + * `tera-2p` - TERA 2P + + * `tera-1p` - TERA 1P + + * `110-punch` - 110 Punch + + * `bnc` - BNC + + * `f` - F Connector + + * `n` - N Connector + + * `mrj21` - MRJ21 + + * `fc` - FC + + * `lc` - LC + + * `lc-pc` - LC/PC + + * `lc-upc` - LC/UPC + + * `lc-apc` - LC/APC + + * `lsh` - LSH + + * `lsh-pc` - LSH/PC + + * `lsh-upc` - LSH/UPC + + * `lsh-apc` - LSH/APC + + * `lx5` - LX.5 + + * `lx5-pc` - LX.5/PC + + * `lx5-upc` - LX.5/UPC + + * `lx5-apc` - LX.5/APC + + * `mpo` - MPO + + * `mtrj` - MTRJ + + * `sc` - SC + + * `sc-pc` - SC/PC + + * `sc-upc` - SC/UPC + + * `sc-apc` - SC/APC + + * `st` - ST + + * `cs` - CS + + * `sn` - SN + + * `sma-905` - SMA 905 + + * `sma-906` - SMA 906 + + * `urm-p2` - URM-P2 + + * `urm-p4` - URM-P4 + + * `urm-p8` - URM-P8 + + * `splice` - Splice + + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + + * `other` - Other' + x-spec-enum-id: c5086c01f1f9c18a + color: + type: string + pattern: ^[0-9a-f]{6}$ + maxLength: 6 + positions: + type: integer + maximum: 1024 + minimum: 1 description: type: string maxLength: 200 required: - name + - type Region: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -129998,6 +184237,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130091,6 +184334,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130101,9 +184348,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true prefix_count: type: integer format: int64 @@ -130113,8 +184381,10 @@ components: format: int64 readOnly: true required: + - created - display - id + - last_updated - name - slug - url @@ -130131,9 +184401,20 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + weight: + type: integer + maximum: 32767 + minimum: 0 description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -130148,6 +184429,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130157,7 +184442,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true description: type: string @@ -130199,7 +184484,7 @@ components: maxLength: 21 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true description: type: string @@ -130229,6 +184514,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130332,6 +184621,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true module: type: integer readOnly: true @@ -130340,13 +184633,14 @@ components: readOnly: true description: type: string + nullable: true readOnly: true vars: nullable: true readOnly: true result: allOf: - - $ref: '#/components/schemas/Job' + - $ref: '#/components/schemas/BriefJob' readOnly: true display: type: string @@ -130364,6 +184658,22 @@ components: - result - url - vars + ScriptInputRequest: + type: object + properties: + data: {} + commit: + type: boolean + schedule_at: + type: string + format: date-time + nullable: true + interval: + type: integer + nullable: true + required: + - commit + - data Service: type: object description: Adds support for custom fields and tags. @@ -130375,16 +184685,20 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachine' + - $ref: '#/components/schemas/BriefVirtualMachine' nullable: true name: type: string @@ -130457,11 +184771,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -130516,6 +184830,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130633,6 +184951,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130644,13 +184966,138 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + type: object + properties: + value: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + label: + type: string + enum: + - Planned + - Staging + - Active + - Decommissioning + - Retired + region: + allOf: + - $ref: '#/components/schemas/BriefRegion' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroup' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + $ref: '#/components/schemas/ASN' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count + - created - display - id + - last_updated - name + - rack_count - slug - url SiteGroup: @@ -130664,6 +185111,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130760,12 +185211,151 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + status: + enum: + - planned + - staging + - active + - decommissioning + - retired + type: string + description: '* `planned` - Planned + + * `staging` - Staging + + * `active` - Active + + * `decommissioning` - Decommissioning + + * `retired` - Retired' + x-spec-enum-id: e363a8ddb138be50 + region: + allOf: + - $ref: '#/components/schemas/BriefRegionRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefSiteGroupRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + facility: + type: string + description: Local facility ID or description + maxLength: 50 + time_zone: + type: string + nullable: true + minLength: 1 description: type: string maxLength: 200 + physical_address: + type: string + description: Physical location of the building + maxLength: 200 + shipping_address: + type: string + description: If different from the physical address + maxLength: 200 + latitude: + type: number + format: double + maximum: 100 + minimum: -100 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + longitude: + type: number + format: double + maximum: 1000 + minimum: -1000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + description: GPS coordinate in decimal format (xx.yyyyyy) + comments: + type: string + asns: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug + Subscription: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + object: + nullable: true + readOnly: true + user: + $ref: '#/components/schemas/BriefUser' + created: + type: string + format: date-time + readOnly: true + required: + - created + - display + - id + - object + - object_id + - object_type + - url + - user + SubscriptionRequest: + type: object + description: 'Extends the built-in ModelSerializer to enforce calling full_clean() + on a copy of the associated instance during + + validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' + properties: + object_type: + type: string + object_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + user: + $ref: '#/components/schemas/BriefUserRequest' + required: + - object_id + - object_type + - user Tag: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() @@ -130780,6 +185370,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130866,6 +185460,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130876,15 +185474,86 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroup' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + circuit_count: + type: integer + format: int64 + readOnly: true + device_count: + type: integer + format: int64 + readOnly: true + ipaddress_count: + type: integer + format: int64 + readOnly: true + prefix_count: + type: integer + format: int64 + readOnly: true + rack_count: + type: integer + format: int64 + readOnly: true + site_count: + type: integer + format: int64 + readOnly: true + virtualmachine_count: + type: integer + format: int64 + readOnly: true + vlan_count: + type: integer + format: int64 + readOnly: true + vrf_count: + type: integer + format: int64 + readOnly: true + cluster_count: + type: integer + format: int64 + readOnly: true required: + - circuit_count + - cluster_count + - created - display - id + - ipaddress_count + - last_updated - name + - rack_count + - site_count - slug - url + - vrf_count TenantGroup: type: object description: Extends PrimaryModelSerializer to include MPTT support. @@ -130896,6 +185565,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -130991,9 +185664,22 @@ components: minLength: 1 maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + group: + allOf: + - $ref: '#/components/schemas/BriefTenantGroupRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - slug @@ -131011,11 +185697,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: - $ref: '#/components/schemas/User' + $ref: '#/components/schemas/BriefUser' created: type: string format: date-time @@ -131058,12 +185748,16 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true user: allOf: - - $ref: '#/components/schemas/User' + - $ref: '#/components/schemas/BriefUser' readOnly: true created: type: string @@ -131130,7 +185824,7 @@ components: validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144)' properties: user: - $ref: '#/components/schemas/UserRequest' + $ref: '#/components/schemas/BriefUserRequest' expires: type: string format: date-time @@ -131162,19 +185856,115 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 100 + status: + type: object + properties: + value: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + label: + type: string + enum: + - Planned + - Active + - Disabled + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroup' + nullable: true + encapsulation: + type: object + properties: + value: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + label: + type: string + enum: + - IPsec - Transport + - IPsec - Tunnel + - IP-in-IP + - GRE + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfile' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + terminations_count: + type: integer + format: int64 + readOnly: true required: + - created - display + - encapsulation - id + - last_updated - name + - status + - terminations_count - url TunnelGroup: type: object @@ -131187,6 +185977,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131264,11 +186058,67 @@ components: type: string minLength: 1 maxLength: 100 + status: + enum: + - planned + - active + - disabled + type: string + description: '* `planned` - Planned + + * `active` - Active + + * `disabled` - Disabled' + x-spec-enum-id: 0d65f7912cba74aa + group: + allOf: + - $ref: '#/components/schemas/BriefTunnelGroupRequest' + nullable: true + encapsulation: + enum: + - ipsec-transport + - ipsec-tunnel + - ip-ip + - gre + type: string + description: '* `ipsec-transport` - IPsec - Transport + + * `ipsec-tunnel` - IPsec - Tunnel + + * `ip-ip` - IP-in-IP + + * `gre` - GRE' + x-spec-enum-id: 5fc36bb745852746 + ipsec_profile: + allOf: + - $ref: '#/components/schemas/BriefIPSecProfileRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + tunnel_id: + type: integer + maximum: 9223372036854775807 + minimum: 0 + format: int64 + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: + - encapsulation - name + - status TunnelTermination: type: object description: Adds support for custom fields and tags. @@ -131280,11 +186130,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true tunnel: - $ref: '#/components/schemas/Tunnel' + $ref: '#/components/schemas/BriefTunnel' role: type: object properties: @@ -131319,7 +186173,7 @@ components: readOnly: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true tags: type: array @@ -131354,7 +186208,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -131377,7 +186231,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -131405,6 +186259,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131414,6 +186272,41 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + $ref: '#/components/schemas/Group' + permissions: + type: array + items: + $ref: '#/components/schemas/ObjectPermission' required: - display - id @@ -131433,7 +186326,48 @@ components: only. pattern: ^[\w.@+-]+$ maxLength: 150 + password: + type: string + writeOnly: true + minLength: 1 + maxLength: 128 + first_name: + type: string + maxLength: 150 + last_name: + type: string + maxLength: 150 + email: + type: string + format: email + title: Email address + maxLength: 254 + is_staff: + type: boolean + title: Staff status + description: Designates whether the user can log into this admin site. + is_active: + type: boolean + title: Active + description: Designates whether this user should be treated as active. Unselect + this instead of deleting accounts. + date_joined: + type: string + format: date-time + last_login: + type: string + format: date-time + nullable: true + groups: + type: array + items: + type: integer + permissions: + type: array + items: + type: integer required: + - password - username VLAN: type: object @@ -131446,9 +186380,21 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true + site: + allOf: + - $ref: '#/components/schemas/BriefSite' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroup' + nullable: true vid: type: integer maximum: 4094 @@ -131458,12 +186404,72 @@ components: name: type: string maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + status: + type: object + properties: + value: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + label: + type: string + enum: + - Active + - Reserved + - Deprecated + role: + allOf: + - $ref: '#/components/schemas/BriefRole' + nullable: true description: type: string maxLength: 200 + comments: + type: string + l2vpn_termination: + allOf: + - $ref: '#/components/schemas/BriefL2VPNTermination' + readOnly: true + nullable: true + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + prefix_count: + type: integer + format: int64 + readOnly: true required: + - created - display - id + - l2vpn_termination + - last_updated - name - url - vid @@ -131478,6 +186484,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131497,18 +186507,6 @@ components: scope: nullable: true readOnly: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131565,18 +186563,6 @@ components: scope_id: type: integer nullable: true - min_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Minimum VLAN ID - description: Lowest permissible ID of a child VLAN - max_vid: - type: integer - maximum: 4094 - minimum: 1 - title: Maximum VLAN ID - description: Highest permissible ID of a child VLAN description: type: string maxLength: 200 @@ -131594,6 +186580,14 @@ components: type: object description: Adds support for custom fields and tags. properties: + site: + allOf: + - $ref: '#/components/schemas/BriefSiteRequest' + nullable: true + group: + allOf: + - $ref: '#/components/schemas/BriefVLANGroupRequest' + nullable: true vid: type: integer maximum: 4094 @@ -131604,9 +186598,38 @@ components: type: string minLength: 1 maxLength: 64 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + status: + enum: + - active + - reserved + - deprecated + type: string + description: '* `active` - Active + + * `reserved` - Reserved + + * `deprecated` - Deprecated' + x-spec-enum-id: 6388dfb94ca1cc15 + role: + allOf: + - $ref: '#/components/schemas/BriefRoleRequest' + nullable: true description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name - vid @@ -131621,11 +186644,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -131674,7 +186701,7 @@ components: - Tagged (All) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tagged_vlans: type: array @@ -131682,11 +186709,11 @@ components: $ref: '#/components/schemas/VLAN' vrf: allOf: - - $ref: '#/components/schemas/VRF' + - $ref: '#/components/schemas/BriefVRF' nullable: true l2vpn_termination: allOf: - - $ref: '#/components/schemas/L2VPNTermination' + - $ref: '#/components/schemas/BriefL2VPNTermination' readOnly: true nullable: true tags: @@ -131728,7 +186755,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -131770,7 +186797,7 @@ components: x-spec-enum-id: 79109bd9dbb73a3c untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -131778,7 +186805,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -131801,6 +186828,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131813,16 +186844,58 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + export_targets: + type: array + items: + $ref: '#/components/schemas/RouteTarget' + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + ipaddress_count: + type: integer + format: int64 + readOnly: true prefix_count: type: integer format: int64 readOnly: true required: + - created - display - id + - ipaddress_count + - last_updated - name - url VRFRequest: @@ -131839,9 +186912,34 @@ components: title: Route distinguisher description: Unique route distinguisher (as defined in RFC 4364) maxLength: 21 + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + enforce_unique: + type: boolean + title: Enforce unique space + description: Prevent duplicate prefixes/IP addresses within this VRF description: type: string maxLength: 200 + comments: + type: string + import_targets: + type: array + items: + type: integer + export_targets: + type: array + items: + type: integer + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualChassis: @@ -131855,12 +186953,19 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true name: type: string maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDevice' @@ -131868,13 +186973,40 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true member_count: type: integer readOnly: true + members: + type: array + items: + $ref: '#/components/schemas/NestedDevice' + readOnly: true required: + - created - display - id + - last_updated - member_count + - members - name - url VirtualChassisRequest: @@ -131885,6 +187017,9 @@ components: type: string minLength: 1 maxLength: 64 + domain: + type: string + maxLength: 30 master: allOf: - $ref: '#/components/schemas/NestedDeviceRequest' @@ -131892,6 +187027,15 @@ components: description: type: string maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} required: - name VirtualDeviceContext: @@ -131905,6 +187049,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -131912,7 +187060,7 @@ components: type: string maxLength: 64 device: - $ref: '#/components/schemas/Device' + $ref: '#/components/schemas/BriefDevice' identifier: type: integer maximum: 32767 @@ -131920,20 +187068,20 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true status: type: object @@ -132002,7 +187150,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -132010,15 +187158,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -132059,11 +187207,15 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true virtual_machine: - $ref: '#/components/schemas/VirtualMachine' + $ref: '#/components/schemas/BriefVirtualMachine' name: type: string maxLength: 64 @@ -132074,7 +187226,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132106,7 +187258,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -132118,7 +187270,7 @@ components: type: integer maximum: 2147483647 minimum: 0 - title: Size (GB) + title: Size (MB) tags: type: array items: @@ -132130,7 +187282,7 @@ components: - name - size - virtual_machine - VirtualMachine: + VirtualMachineWithConfigContext: type: object description: Adds support for custom fields and tags. properties: @@ -132141,41 +187293,7 @@ components: type: string format: uri readOnly: true - display: - type: string - readOnly: true - name: - type: string - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - display - - id - - name - - url - VirtualMachineRequest: - type: object - description: Adds support for custom fields and tags. - properties: - name: - type: string - minLength: 1 - maxLength: 64 - description: - type: string - maxLength: 200 - required: - - name - VirtualMachineWithConfigContext: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: + display_url: type: string format: uri readOnly: true @@ -132220,40 +187338,44 @@ components: - Decommissioning site: allOf: - - $ref: '#/components/schemas/Site' + - $ref: '#/components/schemas/BriefSite' nullable: true cluster: allOf: - - $ref: '#/components/schemas/Cluster' + - $ref: '#/components/schemas/BriefCluster' nullable: true device: allOf: - - $ref: '#/components/schemas/Device' + - $ref: '#/components/schemas/BriefDevice' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRole' + - $ref: '#/components/schemas/BriefDeviceRole' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true platform: allOf: - - $ref: '#/components/schemas/Platform' + - $ref: '#/components/schemas/BriefPlatform' nullable: true primary_ip: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' readOnly: true nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddress' + - $ref: '#/components/schemas/BriefIPAddress' nullable: true vcpus: type: number @@ -132273,7 +187395,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132281,7 +187403,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplate' + - $ref: '#/components/schemas/BriefConfigTemplate' nullable: true local_context_data: nullable: true @@ -132355,35 +187477,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -132403,7 +187529,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -132411,7 +187537,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -132437,6 +187563,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132619,6 +187749,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132630,7 +187764,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroup' + - $ref: '#/components/schemas/BriefWirelessLANGroup' nullable: true status: type: object @@ -132660,11 +187794,11 @@ components: - Deprecated vlan: allOf: - - $ref: '#/components/schemas/VLAN' + - $ref: '#/components/schemas/BriefVLAN' nullable: true tenant: allOf: - - $ref: '#/components/schemas/Tenant' + - $ref: '#/components/schemas/BriefTenant' nullable: true auth_type: type: object @@ -132755,6 +187889,10 @@ components: type: string format: uri readOnly: true + display_url: + type: string + format: uri + readOnly: true display: type: string readOnly: true @@ -132765,9 +187903,30 @@ components: type: string maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ + parent: + allOf: + - $ref: '#/components/schemas/NestedWirelessLANGroup' + nullable: true description: type: string maxLength: 200 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true wirelesslan_count: type: integer readOnly: true @@ -132778,8 +187937,10 @@ components: title: ' depth' required: - _depth + - created - display - id + - last_updated - name - slug - url @@ -132827,7 +187988,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -132847,11 +188008,249 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' + nullable: true + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenantRequest' + nullable: true + auth_type: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + auth_cipher: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - ssid + WirelessLink: + type: object + description: Adds support for custom fields and tags. + properties: + id: + type: integer + readOnly: true + url: + type: string + format: uri + readOnly: true + display_url: + type: string + format: uri + readOnly: true + display: + type: string + readOnly: true + interface_a: + $ref: '#/components/schemas/BriefInterface' + interface_b: + $ref: '#/components/schemas/BriefInterface' + ssid: + type: string + maxLength: 32 + status: + type: object + properties: + value: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d + label: + type: string + enum: + - Connected + - Planned + - Decommissioning + tenant: + allOf: + - $ref: '#/components/schemas/BriefTenant' nullable: true + auth_type: + type: object + properties: + value: + enum: + - open + - wep + - wpa-personal + - wpa-enterprise + - '' + type: string + description: '* `open` - Open + + * `wep` - WEP + + * `wpa-personal` - WPA Personal (PSK) + + * `wpa-enterprise` - WPA Enterprise' + x-spec-enum-id: a2043acb899b3954 + label: + type: string + enum: + - Open + - WEP + - WPA Personal (PSK) + - WPA Enterprise + auth_cipher: + type: object + properties: + value: + enum: + - auto + - tkip + - aes + - '' + type: string + description: '* `auto` - Auto + + * `tkip` - TKIP + + * `aes` - AES' + x-spec-enum-id: 8fdaefa727c26fdc + label: + type: string + enum: + - Auto + - TKIP + - AES + auth_psk: + type: string + title: Pre-shared key + maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + type: object + properties: + value: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + label: + type: string + enum: + - Kilometers + - Meters + - Miles + - Feet + nullable: true + description: + type: string + maxLength: 200 + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTag' + custom_fields: + type: object + additionalProperties: {} + created: + type: string + format: date-time + readOnly: true + nullable: true + last_updated: + type: string + format: date-time + readOnly: true + nullable: true + required: + - created + - display + - id + - interface_a + - interface_b + - last_updated + - url + WirelessLinkRequest: + type: object + description: Adds support for custom fields and tags. + properties: + interface_a: + $ref: '#/components/schemas/BriefInterfaceRequest' + interface_b: + $ref: '#/components/schemas/BriefInterfaceRequest' + ssid: + type: string + maxLength: 32 + status: + enum: + - connected + - planned + - decommissioning + type: string + description: '* `connected` - Connected + + * `planned` - Planned + + * `decommissioning` - Decommissioning' + x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -132886,205 +188285,31 @@ components: type: string title: Pre-shared key maxLength: 64 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTagRequest' - custom_fields: - type: object - additionalProperties: {} - required: - - ssid - WirelessLink: - type: object - description: Adds support for custom fields and tags. - properties: - id: - type: integer - readOnly: true - url: - type: string - format: uri - readOnly: true - display: - type: string - readOnly: true - interface_a: - $ref: '#/components/schemas/Interface' - interface_b: - $ref: '#/components/schemas/Interface' - ssid: - type: string - maxLength: 32 - status: - type: object - properties: - value: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - label: - type: string - enum: - - Connected - - Planned - - Decommissioning - tenant: - allOf: - - $ref: '#/components/schemas/Tenant' - nullable: true - auth_type: - type: object - properties: - value: - enum: - - open - - wep - - wpa-personal - - wpa-enterprise - - '' - type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) - - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - label: - type: string - enum: - - Open - - WEP - - WPA Personal (PSK) - - WPA Enterprise - auth_cipher: - type: object - properties: - value: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto - - * `tkip` - TKIP - - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - label: - type: string - enum: - - Auto - - TKIP - - AES - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 - description: - type: string - maxLength: 200 - comments: - type: string - tags: - type: array - items: - $ref: '#/components/schemas/NestedTag' - custom_fields: - type: object - additionalProperties: {} - created: - type: string - format: date-time - readOnly: true - nullable: true - last_updated: - type: string - format: date-time - readOnly: true - nullable: true - required: - - created - - display - - id - - interface_a - - interface_b - - last_updated - - url - WirelessLinkRequest: - type: object - description: Adds support for custom fields and tags. - properties: - interface_a: - $ref: '#/components/schemas/InterfaceRequest' - interface_b: - $ref: '#/components/schemas/InterfaceRequest' - ssid: - type: string - maxLength: 32 - status: - enum: - - connected - - planned - - decommissioning - type: string - description: '* `connected` - Connected - - * `planned` - Planned - - * `decommissioning` - Decommissioning' - x-spec-enum-id: fbc2f302c08be50d - tenant: - allOf: - - $ref: '#/components/schemas/TenantRequest' + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true nullable: true - auth_type: + distance_unit: enum: - - open - - wep - - wpa-personal - - wpa-enterprise + - km + - m + - mi + - ft - '' type: string - description: '* `open` - Open - - * `wep` - WEP - - * `wpa-personal` - WPA Personal (PSK) + description: '* `km` - Kilometers - * `wpa-enterprise` - WPA Enterprise' - x-spec-enum-id: a2043acb899b3954 - auth_cipher: - enum: - - auto - - tkip - - aes - - '' - type: string - description: '* `auto` - Auto + * `m` - Meters - * `tkip` - TKIP + * `mi` - Miles - * `aes` - AES' - x-spec-enum-id: 8fdaefa727c26fdc - auth_psk: - type: string - title: Pre-shared key - maxLength: 64 + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af + nullable: true description: type: string maxLength: 200 @@ -133108,10 +188333,10 @@ components: type: string minLength: 1 rir: - $ref: '#/components/schemas/RIRRequest' + $ref: '#/components/schemas/BriefRIRRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true date_added: type: string @@ -133160,6 +188385,7 @@ components: - smf-os1 - smf-os2 - aoc + - usb - power - '' type: string @@ -133207,8 +188433,10 @@ components: * `aoc` - Active Optical Cabling (AOC) + * `usb` - USB + * `power` - Power' - x-spec-enum-id: e671018e64196f8d + x-spec-enum-id: 7b11d524b2b1a7ef a_terminations: type: array items: @@ -133231,7 +188459,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true label: type: string @@ -133282,6 +188510,37 @@ components: custom_fields: type: object additionalProperties: {} + WritableCircuitGroupAssignmentRequest: + type: object + description: Base serializer for group assignments under CircuitSerializer. + properties: + group: + $ref: '#/components/schemas/BriefCircuitGroupRequest' + circuit: + $ref: '#/components/schemas/BriefCircuitRequest' + priority: + enum: + - primary + - secondary + - tertiary + - inactive + - '' + type: string + description: '* `primary` - Primary + + * `secondary` - Secondary + + * `tertiary` - Tertiary + + * `inactive` - Inactive' + x-spec-enum-id: ef3a31644cec7524 + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + required: + - circuit + - group WritableCircuitRequest: type: object description: Adds support for custom fields and tags. @@ -133293,13 +188552,13 @@ components: description: Unique circuit ID maxLength: 100 provider: - $ref: '#/components/schemas/ProviderRequest' + $ref: '#/components/schemas/BriefProviderRequest' provider_account: allOf: - - $ref: '#/components/schemas/ProviderAccountRequest' + - $ref: '#/components/schemas/BriefProviderAccountRequest' nullable: true type: - $ref: '#/components/schemas/CircuitTypeRequest' + $ref: '#/components/schemas/BriefCircuitTypeRequest' status: enum: - planned @@ -133323,7 +188582,7 @@ components: x-spec-enum-id: 63c838134a022200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true install_date: type: string @@ -133354,6 +188613,10 @@ components: custom_fields: type: object additionalProperties: {} + assignments: + type: array + items: + $ref: '#/components/schemas/BriefCircuitGroupAssignmentSerializer_Request' required: - cid - provider @@ -133367,10 +188630,10 @@ components: minLength: 1 maxLength: 100 type: - $ref: '#/components/schemas/ClusterTypeRequest' + $ref: '#/components/schemas/BriefClusterTypeRequest' group: allOf: - - $ref: '#/components/schemas/ClusterGroupRequest' + - $ref: '#/components/schemas/BriefClusterGroupRequest' nullable: true status: enum: @@ -133392,11 +188655,11 @@ components: x-spec-enum-id: 79d20a734d0eecbb tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true description: type: string @@ -133418,10 +188681,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133541,11 +188804,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133616,10 +188879,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -133739,11 +189002,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -133821,10 +189084,10 @@ components: minimum: 0 format: int64 contact: - $ref: '#/components/schemas/ContactRequest' + $ref: '#/components/schemas/BriefContactRequest' role: allOf: - - $ref: '#/components/schemas/ContactRoleRequest' + - $ref: '#/components/schemas/BriefContactRoleRequest' nullable: true priority: enum: @@ -134005,8 +189268,12 @@ components: maxLength: 200 required: type: boolean - description: If true, this field is required when creating new objects or - editing an existing object. + description: This field is required when creating new objects or editing + an existing object. + unique: + type: boolean + title: Must be unique + description: The value of this field must be unique for the assigned object search_weight: type: integer maximum: 32767 @@ -134067,6 +189334,10 @@ components: nullable: true description: Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. "Foo"). + related_object_filter: + nullable: true + description: Filter the object selection choices using a query_params dict + (must be a JSON value).Encapsulate strings with double quotes (e.g. "Foo"). weight: type: integer maximum: 32767 @@ -134097,7 +189368,7 @@ components: maxLength: 500 choice_set: allOf: - - $ref: '#/components/schemas/CustomFieldChoiceSetRequest' + - $ref: '#/components/schemas/BriefCustomFieldChoiceSetRequest' nullable: true comments: type: string @@ -134126,13 +189397,13 @@ components: description: type: string maxLength: 200 - comments: - type: string parameters: nullable: true ignore_rules: type: string description: Patterns (one per line) matching files to ignore when syncing + comments: + type: string custom_fields: type: object additionalProperties: {} @@ -134145,10 +189416,10 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' default_platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true model: type: string @@ -134272,16 +189543,16 @@ components: nullable: true maxLength: 64 device_type: - $ref: '#/components/schemas/DeviceTypeRequest' + $ref: '#/components/schemas/BriefDeviceTypeRequest' role: - $ref: '#/components/schemas/DeviceRoleRequest' + $ref: '#/components/schemas/BriefDeviceRoleRequest' tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true serial: type: string @@ -134294,14 +189565,14 @@ components: description: A unique tag used to identify this device maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true position: type: number @@ -134391,23 +189662,23 @@ components: x-spec-enum-id: 58e389e240a5e53d primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true oob_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true virtual_chassis: allOf: - - $ref: '#/components/schemas/VirtualChassisRequest' + - $ref: '#/components/schemas/BriefVirtualChassisRequest' nullable: true vc_position: type: integer @@ -134427,7 +189698,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -134457,28 +189728,35 @@ components: type: string minLength: 1 maxLength: 150 - type_create: - type: boolean - title: On create - description: Triggers when a matching object is created. - type_update: - type: boolean - title: On update - description: Triggers when a matching object is updated. - type_delete: - type: boolean - title: On delete - description: Triggers when a matching object is deleted. - type_job_start: - type: boolean - title: On job start - description: Triggers when a job for a matching object is started. - type_job_end: - type: boolean - title: On job end - description: Triggers when a job for a matching object terminates. enabled: type: boolean + event_types: + type: array + items: + enum: + - object_created + - object_updated + - object_deleted + - job_started + - job_completed + - job_failed + - job_errored + type: string + description: '* `object_created` - Object created + + * `object_updated` - Object updated + + * `object_deleted` - Object deleted + + * `job_started` - Job started + + * `job_completed` - Job completed + + * `job_failed` - Job failed + + * `job_errored` - Job errored' + x-spec-enum-id: 80d172232f4af424 + description: The types of event which will trigger this rule. conditions: nullable: true description: A set of conditions which determine whether the event will @@ -134487,11 +189765,14 @@ components: enum: - webhook - script + - notification type: string description: '* `webhook` - Webhook - * `script` - Script' - x-spec-enum-id: a08300d86473de6e + * `script` - Script + + * `notification` - Notification' + x-spec-enum-id: d07193c73ebc03c6 action_object_type: type: string action_object_id: @@ -134512,6 +189793,7 @@ components: $ref: '#/components/schemas/NestedTagRequest' required: - action_object_type + - event_types - name - object_types WritableFrontPortRequest: @@ -134519,10 +189801,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -134580,6 +189862,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134674,8 +189964,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -134715,11 +190021,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -134779,6 +190085,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -134873,14 +190187,30 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ maxLength: 6 rear_port: - $ref: '#/components/schemas/RearPortTemplateRequest' + $ref: '#/components/schemas/BriefRearPortTemplateRequest' rear_port_position: type: integer maximum: 1024 @@ -135124,11 +190454,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135227,11 +190557,11 @@ components: minLength: 1 vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -135250,7 +190580,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -135398,9 +190728,9 @@ components: * `ah` - AH' x-spec-enum-id: 1136c2cdfee84436 ike_policy: - $ref: '#/components/schemas/IKEPolicyRequest' + $ref: '#/components/schemas/BriefIKEPolicyRequest' ipsec_policy: - $ref: '#/components/schemas/IPSecPolicyRequest' + $ref: '#/components/schemas/BriefIPSecPolicyRequest' comments: type: string tags: @@ -135505,14 +190835,14 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' vdcs: type: array items: type: integer module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -135532,10 +190862,12 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -135585,7 +190917,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -135666,6 +191000,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -135674,6 +191010,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -135772,8 +191110,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -135899,7 +191241,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 56365107f9c2326f enabled: type: boolean parent: @@ -136641,7 +191983,7 @@ components: title: Transmit power (dBm) untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -136656,7 +191998,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -136678,11 +192020,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -136704,10 +192046,12 @@ components: - 100base-tx - 100base-t1 - 1000base-t + - 1000base-tx - 2.5gbase-t - 5gbase-t - 10gbase-t - 10gbase-cx4 + - 100base-x-sfp - 1000base-x-gbic - 1000base-x-sfp - 10gbase-x-sfpp @@ -136757,7 +192101,9 @@ components: - ieee802.11ad - ieee802.11ax - ieee802.11ay + - ieee802.11be - ieee802.15.1 + - ieee802.15.4 - other-wireless - gsm - cdma @@ -136838,6 +192184,8 @@ components: * `1000base-t` - 1000BASE-T (1GE) + * `1000base-tx` - 1000BASE-TX (1GE) + * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) @@ -136846,6 +192194,8 @@ components: * `10gbase-cx4` - 10GBASE-CX4 (10GE) + * `100base-x-sfp` - SFP (100ME) + * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) @@ -136944,8 +192294,12 @@ components: * `ieee802.11ay` - IEEE 802.11ay + * `ieee802.11be` - IEEE 802.11be + * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) + * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) + * `other-wireless` - Other (Wireless) * `gsm` - GSM @@ -137071,7 +192425,7 @@ components: * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other' - x-spec-enum-id: b9a351ea129ed754 + x-spec-enum-id: 56365107f9c2326f enabled: type: boolean mgmt_only: @@ -137252,7 +192606,7 @@ components: type: string tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tags: type: array @@ -137279,7 +192633,7 @@ components: maxLength: 100 pattern: ^[-a-zA-Z0-9_]+$ site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' parent: type: integer nullable: true @@ -137303,7 +192657,7 @@ components: x-spec-enum-id: e363a8ddb138be50 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -137329,11 +192683,11 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module_bay: type: integer module_type: - $ref: '#/components/schemas/ModuleTypeRequest' + $ref: '#/components/schemas/BriefModuleTypeRequest' status: enum: - offline @@ -137385,7 +192739,7 @@ components: description: Adds support for custom fields and tags. properties: manufacturer: - $ref: '#/components/schemas/ManufacturerRequest' + $ref: '#/components/schemas/BriefManufacturerRequest' model: type: string minLength: 1 @@ -137394,6 +192748,28 @@ components: type: string description: Discrete part number (optional) maxLength: 50 + airflow: + enum: + - front-to-rear + - rear-to-front + - left-to-right + - right-to-left + - side-to-rear + - passive + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front + + * `left-to-right` - Left to right + + * `right-to-left` - Right to left + + * `side-to-rear` - Side to rear + + * `passive` - Passive' + x-spec-enum-id: f6e5562e0e98d69d weight: type: number format: double @@ -137438,10 +192814,10 @@ components: description: Adds support for custom fields and tags. properties: power_panel: - $ref: '#/components/schemas/PowerPanelRequest' + $ref: '#/components/schemas/BriefPowerPanelRequest' rack: allOf: - - $ref: '#/components/schemas/RackRequest' + - $ref: '#/components/schemas/BriefRackRequest' nullable: true name: type: string @@ -137510,7 +192886,7 @@ components: maxLength: 200 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true comments: type: string @@ -137529,10 +192905,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -137605,6 +192981,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -137631,6 +193008,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -137642,7 +193020,7 @@ components: - other - '' type: string - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 description: 'Physical port type @@ -137768,6 +193146,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -137820,6 +193200,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -137839,7 +193221,7 @@ components: * `other` - Other' power_port: allOf: - - $ref: '#/components/schemas/PowerPortRequest' + - $ref: '#/components/schemas/BriefPowerPortRequest' nullable: true feed_leg: enum: @@ -137882,11 +193264,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -137961,6 +193343,7 @@ components: - nema-l15-60r - nema-l21-20r - nema-l21-30r + - nema-l22-20r - nema-l22-30r - CS6360C - CS6364C @@ -137987,6 +193370,7 @@ components: - molex-micro-fit-2x2 - molex-micro-fit-2x4 - dc-terminal + - eaton-c39 - hdot-cx - saf-d-grid - neutrik-powercon-20a @@ -138120,6 +193504,8 @@ components: * `nema-l21-30r` - NEMA L21-30R + * `nema-l22-20r` - NEMA L22-20R + * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C @@ -138172,6 +193558,8 @@ components: * `dc-terminal` - DC Terminal + * `eaton-c39` - Eaton C39 + * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid @@ -138189,10 +193577,10 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 2ff919f516566857 + x-spec-enum-id: f8c08053f2db8830 power_port: allOf: - - $ref: '#/components/schemas/PowerPortTemplateRequest' + - $ref: '#/components/schemas/BriefPowerPortTemplateRequest' nullable: true feed_leg: enum: @@ -138220,10 +193608,10 @@ components: description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -138296,6 +193684,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138340,7 +193729,7 @@ components: - other - '' type: string - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b description: 'Physical port type @@ -138466,6 +193855,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138586,11 +193977,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -138665,6 +194056,7 @@ components: - nema-l15-60p - nema-l21-20p - nema-l21-30p + - nema-l22-20p - nema-l22-30p - cs6361c - cs6365c @@ -138831,6 +194223,8 @@ components: * `nema-l21-30p` - NEMA L21-30P + * `nema-l22-20p` - NEMA L22-20P + * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C @@ -138914,7 +194308,7 @@ components: * `hardwired` - Hardwired * `other` - Other' - x-spec-enum-id: 6d680dea031864ae + x-spec-enum-id: f1bd4aedff3a591b maximum_draw: type: integer maximum: 2147483647 @@ -138941,19 +194335,19 @@ components: minLength: 1 site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true status: enum: @@ -138975,7 +194369,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true is_pool: type: boolean @@ -139011,14 +194405,14 @@ components: nullable: true maxLength: 50 site: - $ref: '#/components/schemas/SiteRequest' + $ref: '#/components/schemas/BriefSiteRequest' location: allOf: - - $ref: '#/components/schemas/LocationRequest' + - $ref: '#/components/schemas/BriefLocationRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -139040,7 +194434,7 @@ components: x-spec-enum-id: 0c556d55dc1baa13 role: allOf: - - $ref: '#/components/schemas/RackRoleRequest' + - $ref: '#/components/schemas/BriefRackRoleRequest' nullable: true serial: type: string @@ -139051,7 +194445,11 @@ components: nullable: true description: A unique tag used to identify this rack maxLength: 50 - type: + rack_type: + allOf: + - $ref: '#/components/schemas/BriefRackTypeRequest' + nullable: true + form_factor: enum: - 2-post-frame - 4-post-frame @@ -139170,6 +194568,16 @@ components: nullable: true description: Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + airflow: + enum: + - front-to-rear + - rear-to-front + - '' + type: string + description: '* `front-to-rear` - Front to rear + + * `rear-to-front` - Rear to front' + x-spec-enum-id: a784734d07ef1b3c description: type: string maxLength: 200 @@ -139185,15 +194593,165 @@ components: required: - name - site + WritableRackTypeRequest: + type: object + description: Adds support for custom fields and tags. + properties: + manufacturer: + $ref: '#/components/schemas/BriefManufacturerRequest' + model: + type: string + minLength: 1 + maxLength: 100 + slug: + type: string + minLength: 1 + maxLength: 100 + pattern: ^[-a-zA-Z0-9_]+$ + description: + type: string + maxLength: 200 + form_factor: + enum: + - 2-post-frame + - 4-post-frame + - 4-post-cabinet + - wall-frame + - wall-frame-vertical + - wall-cabinet + - wall-cabinet-vertical + type: string + description: '* `2-post-frame` - 2-post frame + + * `4-post-frame` - 4-post frame + + * `4-post-cabinet` - 4-post cabinet + + * `wall-frame` - Wall-mounted frame + + * `wall-frame-vertical` - Wall-mounted frame (vertical) + + * `wall-cabinet` - Wall-mounted cabinet + + * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical)' + x-spec-enum-id: e32aaa89a223f2ea + width: + enum: + - 10 + - 19 + - 21 + - 23 + type: integer + x-spec-enum-id: 9b322795f297a9c3 + description: 'Rail-to-rail width + + + * `10` - 10 inches + + * `19` - 19 inches + + * `21` - 21 inches + + * `23` - 23 inches' + minimum: 0 + maximum: 32767 + u_height: + type: integer + maximum: 100 + minimum: 1 + title: Height (U) + description: Height in rack units + starting_unit: + type: integer + maximum: 32767 + minimum: 1 + description: Starting unit for rack + desc_units: + type: boolean + title: Descending units + description: Units are numbered top-to-bottom + outer_width: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (width) + outer_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Outer dimension of rack (depth) + outer_unit: + enum: + - mm + - in + - '' + type: string + description: '* `mm` - Millimeters + + * `in` - Inches' + x-spec-enum-id: 86a846b6c40f495e + weight: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + max_weight: + type: integer + maximum: 2147483647 + minimum: 0 + nullable: true + description: Maximum load capacity for the rack + weight_unit: + enum: + - kg + - g + - lb + - oz + - '' + type: string + description: '* `kg` - Kilograms + + * `g` - Grams + + * `lb` - Pounds + + * `oz` - Ounces' + x-spec-enum-id: 7c1876f422815884 + mounting_depth: + type: integer + maximum: 32767 + minimum: 0 + nullable: true + description: Maximum depth of a mounted device, in millimeters. For four-post + racks, this is the distance between the front and rear rails. + comments: + type: string + tags: + type: array + items: + $ref: '#/components/schemas/NestedTagRequest' + custom_fields: + type: object + additionalProperties: {} + required: + - form_factor + - manufacturer + - model + - slug WritableRearPortRequest: type: object description: Adds support for custom fields and tags. properties: device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' module: allOf: - - $ref: '#/components/schemas/ModuleRequest' + - $ref: '#/components/schemas/BriefModuleRequest' nullable: true name: type: string @@ -139251,6 +194809,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139345,8 +194911,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139382,11 +194964,11 @@ components: properties: device_type: allOf: - - $ref: '#/components/schemas/DeviceTypeRequest' + - $ref: '#/components/schemas/BriefDeviceTypeRequest' nullable: true module_type: allOf: - - $ref: '#/components/schemas/ModuleTypeRequest' + - $ref: '#/components/schemas/BriefModuleTypeRequest' nullable: true name: type: string @@ -139446,6 +195028,14 @@ components: - urm-p4 - urm-p8 - splice + - usb-a + - usb-b + - usb-c + - usb-mini-a + - usb-mini-b + - usb-micro-a + - usb-micro-b + - usb-micro-ab - other type: string description: '* `8p8c` - 8P8C @@ -139540,8 +195130,24 @@ components: * `splice` - Splice + * `usb-a` - USB Type A + + * `usb-b` - USB Type B + + * `usb-c` - USB Type C + + * `usb-mini-a` - USB Mini A + + * `usb-mini-b` - USB Mini B + + * `usb-micro-a` - USB Micro A + + * `usb-micro-b` - USB Micro B + + * `usb-micro-ab` - USB Micro AB + * `other` - Other' - x-spec-enum-id: 0276d1110ada597a + x-spec-enum-id: c5086c01f1f9c18a color: type: string pattern: ^[0-9a-f]{6}$ @@ -139592,11 +195198,11 @@ components: properties: device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true virtual_machine: allOf: - - $ref: '#/components/schemas/VirtualMachineRequest' + - $ref: '#/components/schemas/BriefVirtualMachineRequest' nullable: true name: type: string @@ -139748,15 +195354,15 @@ components: x-spec-enum-id: e363a8ddb138be50 region: allOf: - - $ref: '#/components/schemas/RegionRequest' + - $ref: '#/components/schemas/BriefRegionRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/SiteGroupRequest' + - $ref: '#/components/schemas/BriefSiteGroupRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true facility: type: string @@ -139765,6 +195371,7 @@ components: time_zone: type: string nullable: true + minLength: 1 description: type: string maxLength: 200 @@ -139861,7 +195468,7 @@ components: x-spec-enum-id: 0d65f7912cba74aa group: allOf: - - $ref: '#/components/schemas/TunnelGroupRequest' + - $ref: '#/components/schemas/BriefTunnelGroupRequest' nullable: true encapsulation: enum: @@ -139880,11 +195487,11 @@ components: x-spec-enum-id: 5fc36bb745852746 ipsec_profile: allOf: - - $ref: '#/components/schemas/IPSecProfileRequest' + - $ref: '#/components/schemas/BriefIPSecProfileRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true tunnel_id: type: integer @@ -139912,7 +195519,7 @@ components: description: Adds support for custom fields and tags. properties: tunnel: - $ref: '#/components/schemas/TunnelRequest' + $ref: '#/components/schemas/BriefTunnelRequest' role: enum: - peer @@ -139935,7 +195542,7 @@ components: nullable: true outside_ip: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true tags: type: array @@ -139954,11 +195561,11 @@ components: properties: site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true group: allOf: - - $ref: '#/components/schemas/VLANGroupRequest' + - $ref: '#/components/schemas/BriefVLANGroupRequest' nullable: true vid: type: integer @@ -139972,7 +195579,7 @@ components: maxLength: 64 tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true status: enum: @@ -139991,7 +195598,7 @@ components: * `deprecated` - Deprecated' role: allOf: - - $ref: '#/components/schemas/RoleRequest' + - $ref: '#/components/schemas/BriefRoleRequest' nullable: true description: type: string @@ -140013,7 +195620,7 @@ components: description: Adds support for custom fields and tags. properties: virtual_machine: - $ref: '#/components/schemas/VirtualMachineRequest' + $ref: '#/components/schemas/BriefVirtualMachineRequest' name: type: string minLength: 1 @@ -140058,7 +195665,7 @@ components: * `tagged-all` - Tagged (All)' untagged_vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tagged_vlans: type: array @@ -140066,7 +195673,7 @@ components: type: integer vrf: allOf: - - $ref: '#/components/schemas/VRFRequest' + - $ref: '#/components/schemas/BriefVRFRequest' nullable: true tags: type: array @@ -140115,7 +195722,7 @@ components: minLength: 1 maxLength: 64 device: - $ref: '#/components/schemas/DeviceRequest' + $ref: '#/components/schemas/BriefDeviceRequest' identifier: type: integer maximum: 32767 @@ -140123,15 +195730,15 @@ components: nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true status: enum: @@ -140192,35 +195799,39 @@ components: x-spec-enum-id: 2217e87d0c3efdda site: allOf: - - $ref: '#/components/schemas/SiteRequest' + - $ref: '#/components/schemas/BriefSiteRequest' nullable: true cluster: allOf: - - $ref: '#/components/schemas/ClusterRequest' + - $ref: '#/components/schemas/BriefClusterRequest' nullable: true device: allOf: - - $ref: '#/components/schemas/DeviceRequest' + - $ref: '#/components/schemas/BriefDeviceRequest' nullable: true + serial: + type: string + title: Serial number + maxLength: 50 role: allOf: - - $ref: '#/components/schemas/DeviceRoleRequest' + - $ref: '#/components/schemas/BriefDeviceRoleRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true platform: allOf: - - $ref: '#/components/schemas/PlatformRequest' + - $ref: '#/components/schemas/BriefPlatformRequest' nullable: true primary_ip4: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true primary_ip6: allOf: - - $ref: '#/components/schemas/IPAddressRequest' + - $ref: '#/components/schemas/BriefIPAddressRequest' nullable: true vcpus: type: number @@ -140240,7 +195851,7 @@ components: maximum: 2147483647 minimum: 0 nullable: true - title: Disk (GB) + title: Disk (MB) description: type: string maxLength: 200 @@ -140248,7 +195859,7 @@ components: type: string config_template: allOf: - - $ref: '#/components/schemas/ConfigTemplateRequest' + - $ref: '#/components/schemas/BriefConfigTemplateRequest' nullable: true local_context_data: nullable: true @@ -140306,7 +195917,7 @@ components: maxLength: 200 group: allOf: - - $ref: '#/components/schemas/WirelessLANGroupRequest' + - $ref: '#/components/schemas/BriefWirelessLANGroupRequest' nullable: true status: enum: @@ -140325,11 +195936,11 @@ components: x-spec-enum-id: 412ebdca597f609e vlan: allOf: - - $ref: '#/components/schemas/VLANRequest' + - $ref: '#/components/schemas/BriefVLANRequest' nullable: true tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140382,9 +195993,9 @@ components: description: Adds support for custom fields and tags. properties: interface_a: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' interface_b: - $ref: '#/components/schemas/InterfaceRequest' + $ref: '#/components/schemas/BriefInterfaceRequest' ssid: type: string maxLength: 32 @@ -140402,7 +196013,7 @@ components: x-spec-enum-id: fbc2f302c08be50d tenant: allOf: - - $ref: '#/components/schemas/TenantRequest' + - $ref: '#/components/schemas/BriefTenantRequest' nullable: true auth_type: enum: @@ -140439,6 +196050,30 @@ components: type: string title: Pre-shared key maxLength: 64 + distance: + type: number + format: double + maximum: 1000000 + minimum: -1000000 + exclusiveMaximum: true + exclusiveMinimum: true + nullable: true + distance_unit: + enum: + - km + - m + - mi + - ft + - '' + type: string + description: '* `km` - Kilometers + + * `m` - Meters + + * `mi` - Miles + + * `ft` - Feet' + x-spec-enum-id: 53542e7902f946af description: type: string maxLength: 200 diff --git a/api_circuits.go b/api_circuits.go index 7e493535b..b7931efd2 100644 --- a/api_circuits.go +++ b/api_circuits.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,6 +24,3971 @@ import ( // CircuitsAPIService CircuitsAPI service type CircuitsAPIService service +type ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkDestroy Method for CircuitsCircuitGroupAssignmentsBulkDestroy + +Delete a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkPartialUpdate Method for CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +Patch a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupAssignmentRequest *[]CircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest []CircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + r.circuitGroupAssignmentRequest = &circuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) Execute() ([]CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsBulkUpdate Method for CircuitsCircuitGroupAssignmentsBulkUpdate + +Put a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsBulkUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsBulkUpdateRequest) ([]CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsCreateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsCreateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsCreateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsCreate Method for CircuitsCircuitGroupAssignmentsCreate + +Post a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreate(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsCreateRequest { + return ApiCircuitsCircuitGroupAssignmentsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsCreateExecute(r ApiCircuitsCircuitGroupAssignmentsCreateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsDestroy Method for CircuitsCircuitGroupAssignmentsDestroy + +Delete a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsDestroyRequest { + return ApiCircuitsCircuitGroupAssignmentsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsDestroyExecute(r ApiCircuitsCircuitGroupAssignmentsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsListRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuit *[]string + circuitN *[]string + circuitId *[]int32 + circuitIdN *[]int32 + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + offset *int32 + ordering *string + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter + provider *[]string + providerN *[]string + providerId *[]int32 + providerIdN *[]int32 + q *string + tag *[]string + tagN *[]string + updatedByRequest *string +} + +// Circuit (CID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Circuit(circuit []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuit = &circuit + return r +} + +// Circuit (CID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitN(circuitN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitN = &circuitN + return r +} + +// Circuit (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitId(circuitId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitId = &circuitId + return r +} + +// Circuit (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CircuitIdN(circuitIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.circuitIdN = &circuitIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Group(group []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.group = &group + return r +} + +// Circuit group (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupN(groupN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupN = &groupN + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupId(groupId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupId = &groupId + return r +} + +// Circuit group (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.groupIdN = &groupIdN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Id(id []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.ordering = &ordering + return r +} + +// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.priority = &priority + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Provider(provider []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.provider = &provider + return r +} + +// Provider (slug) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderN(providerN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerN = &providerN + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderId(providerId []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerId = &providerId + return r +} + +// Provider (ID) +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) ProviderIdN(providerIdN []int32) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.providerIdN = &providerIdN + return r +} + +// Search +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Q(q string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.tagN = &tagN + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupAssignmentsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsListRequest) Execute() (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsListExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsList Method for CircuitsCircuitGroupAssignmentsList + +Get a list of Circuit group assignment objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupAssignmentsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsList(ctx context.Context) ApiCircuitsCircuitGroupAssignmentsListRequest { + return ApiCircuitsCircuitGroupAssignmentsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedCircuitGroupAssignmentList +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsListExecute(r ApiCircuitsCircuitGroupAssignmentsListRequest) (*PaginatedCircuitGroupAssignmentList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupAssignmentList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.circuit != nil { + t := *r.circuit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit", t, "multi") + } + } + if r.circuitN != nil { + t := *r.circuitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit__n", t, "multi") + } + } + if r.circuitId != nil { + t := *r.circuitId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id", t, "multi") + } + } + if r.circuitIdN != nil { + t := *r.circuitIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "circuit_id__n", t, "multi") + } + } + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.group != nil { + t := *r.group + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") + } + } + if r.groupN != nil { + t := *r.groupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") + } + } + if r.groupId != nil { + t := *r.groupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id", t, "multi") + } + } + if r.groupIdN != nil { + t := *r.groupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.priority != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "") + } + if r.provider != nil { + t := *r.provider + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider", t, "multi") + } + } + if r.providerN != nil { + t := *r.providerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider__n", t, "multi") + } + } + if r.providerId != nil { + t := *r.providerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id", t, "multi") + } + } + if r.providerIdN != nil { + t := *r.providerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "provider_id__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + patchedWritableCircuitGroupAssignmentRequest *PatchedWritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest PatchedWritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + r.patchedWritableCircuitGroupAssignmentRequest = &patchedWritableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsPartialUpdate Method for CircuitsCircuitGroupAssignmentsPartialUpdate + +Patch a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsPartialUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsPartialUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsRetrieveRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsRetrieve Method for CircuitsCircuitGroupAssignmentsRetrieve + +Get a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsRetrieveRequest { + return ApiCircuitsCircuitGroupAssignmentsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsRetrieveExecute(r ApiCircuitsCircuitGroupAssignmentsRetrieveRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupAssignmentsUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + writableCircuitGroupAssignmentRequest *WritableCircuitGroupAssignmentRequest +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest WritableCircuitGroupAssignmentRequest) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + r.writableCircuitGroupAssignmentRequest = &writableCircuitGroupAssignmentRequest + return r +} + +func (r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) Execute() (*CircuitGroupAssignment, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupAssignmentsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupAssignmentsUpdate Method for CircuitsCircuitGroupAssignmentsUpdate + +Put a Circuit group assignment object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this Circuit group assignment. + @return ApiCircuitsCircuitGroupAssignmentsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupAssignmentsUpdateRequest { + return ApiCircuitsCircuitGroupAssignmentsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroupAssignment +func (a *CircuitsAPIService) CircuitsCircuitGroupAssignmentsUpdateExecute(r ApiCircuitsCircuitGroupAssignmentsUpdateRequest) (*CircuitGroupAssignment, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroupAssignment + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupAssignmentsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-group-assignments/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableCircuitGroupAssignmentRequest == nil { + return localVarReturnValue, nil, reportError("writableCircuitGroupAssignmentRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableCircuitGroupAssignmentRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkDestroyRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsBulkDestroy Method for CircuitsCircuitGroupsBulkDestroy + +Delete a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroy(ctx context.Context) ApiCircuitsCircuitGroupsBulkDestroyRequest { + return ApiCircuitsCircuitGroupsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkDestroyExecute(r ApiCircuitsCircuitGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkPartialUpdate Method for CircuitsCircuitGroupsBulkPartialUpdate + +Patch a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkPartialUpdateRequest { + return ApiCircuitsCircuitGroupsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkPartialUpdateExecute(r ApiCircuitsCircuitGroupsBulkPartialUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *[]CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) CircuitGroupRequest(circuitGroupRequest []CircuitGroupRequest) ApiCircuitsCircuitGroupsBulkUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsBulkUpdateRequest) Execute() ([]CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsBulkUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsBulkUpdate Method for CircuitsCircuitGroupsBulkUpdate + +Put a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsBulkUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdate(ctx context.Context) ApiCircuitsCircuitGroupsBulkUpdateRequest { + return ApiCircuitsCircuitGroupsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsBulkUpdateExecute(r ApiCircuitsCircuitGroupsBulkUpdateRequest) ([]CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsCreateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsCreateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsCreateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsCreateExecute(r) +} + +/* +CircuitsCircuitGroupsCreate Method for CircuitsCircuitGroupsCreate + +Post a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsCreateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreate(ctx context.Context) ApiCircuitsCircuitGroupsCreateRequest { + return ApiCircuitsCircuitGroupsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsCreateExecute(r ApiCircuitsCircuitGroupsCreateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsDestroyRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsDestroyExecute(r) +} + +/* +CircuitsCircuitGroupsDestroy Method for CircuitsCircuitGroupsDestroy + +Delete a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsDestroyRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroy(ctx context.Context, id int32) ApiCircuitsCircuitGroupsDestroyRequest { + return ApiCircuitsCircuitGroupsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *CircuitsAPIService) CircuitsCircuitGroupsDestroyExecute(r ApiCircuitsCircuitGroupsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsListRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + updatedByRequest *string +} + +func (r ApiCircuitsCircuitGroupsListRequest) Created(created []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.created = &created + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedEmpty(createdEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGt(createdGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedGte(createdGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLt(createdLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedLte(createdLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedN(createdN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.createdN = &createdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) CreatedByRequest(createdByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Description(description []string) ApiCircuitsCircuitGroupsListRequest { + r.description = &description + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionEmpty(descriptionEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIc(descriptionIc []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIe(descriptionIe []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIew(descriptionIew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionIsw(descriptionIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionN(descriptionN []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNic(descriptionNic []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNie(descriptionNie []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNiew(descriptionNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) DescriptionNisw(descriptionNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Id(id []int32) ApiCircuitsCircuitGroupsListRequest { + r.id = &id + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdEmpty(idEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGt(idGt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdGte(idGte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLt(idLt []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdLte(idLte []int32) ApiCircuitsCircuitGroupsListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) IdN(idN []int32) ApiCircuitsCircuitGroupsListRequest { + r.idN = &idN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdated(lastUpdated []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiCircuitsCircuitGroupsListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiCircuitsCircuitGroupsListRequest) Limit(limit int32) ApiCircuitsCircuitGroupsListRequest { + r.limit = &limit + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Name(name []string) ApiCircuitsCircuitGroupsListRequest { + r.name = &name + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameEmpty(nameEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIc(nameIc []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIe(nameIe []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIew(nameIew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameIsw(nameIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameN(nameN []string) ApiCircuitsCircuitGroupsListRequest { + r.nameN = &nameN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNic(nameNic []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNie(nameNie []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNiew(nameNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) NameNisw(nameNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.nameNisw = &nameNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCircuitsCircuitGroupsListRequest) Offset(offset int32) ApiCircuitsCircuitGroupsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCircuitsCircuitGroupsListRequest) Ordering(ordering string) ApiCircuitsCircuitGroupsListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCircuitsCircuitGroupsListRequest) Q(q string) ApiCircuitsCircuitGroupsListRequest { + r.q = &q + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Slug(slug []string) ApiCircuitsCircuitGroupsListRequest { + r.slug = &slug + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugEmpty(slugEmpty bool) ApiCircuitsCircuitGroupsListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIc(slugIc []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIe(slugIe []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIew(slugIew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugIsw(slugIsw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugN(slugN []string) ApiCircuitsCircuitGroupsListRequest { + r.slugN = &slugN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNic(slugNic []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNie(slugNie []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNiew(slugNiew []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) SlugNisw(slugNisw []string) ApiCircuitsCircuitGroupsListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Tag(tag []string) ApiCircuitsCircuitGroupsListRequest { + r.tag = &tag + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TagN(tagN []string) ApiCircuitsCircuitGroupsListRequest { + r.tagN = &tagN + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) Tenant(tenant []string) ApiCircuitsCircuitGroupsListRequest { + r.tenant = &tenant + return r +} + +// Tenant (slug) +func (r ApiCircuitsCircuitGroupsListRequest) TenantN(tenantN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantN = &tenantN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroup = &tenantGroup + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupN = &tenantGroupN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupId = &tenantGroupId + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitGroupsListRequest { + r.tenantGroupIdN = &tenantGroupIdN + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantId(tenantId []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantId = &tenantId + return r +} + +// Tenant (ID) +func (r ApiCircuitsCircuitGroupsListRequest) TenantIdN(tenantIdN []*int32) ApiCircuitsCircuitGroupsListRequest { + r.tenantIdN = &tenantIdN + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitGroupsListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiCircuitsCircuitGroupsListRequest) Execute() (*PaginatedCircuitGroupList, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsListExecute(r) +} + +/* +CircuitsCircuitGroupsList Method for CircuitsCircuitGroupsList + +Get a list of circuit group objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCircuitsCircuitGroupsListRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsList(ctx context.Context) ApiCircuitsCircuitGroupsListRequest { + return ApiCircuitsCircuitGroupsListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedCircuitGroupList +func (a *CircuitsAPIService) CircuitsCircuitGroupsListExecute(r ApiCircuitsCircuitGroupsListRequest) (*PaginatedCircuitGroupList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedCircuitGroupList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.tenant != nil { + t := *r.tenant + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant", t, "multi") + } + } + if r.tenantN != nil { + t := *r.tenantN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant__n", t, "multi") + } + } + if r.tenantGroup != nil { + t := *r.tenantGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group", t, "multi") + } + } + if r.tenantGroupN != nil { + t := *r.tenantGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group__n", t, "multi") + } + } + if r.tenantGroupId != nil { + t := *r.tenantGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id", t, "multi") + } + } + if r.tenantGroupIdN != nil { + t := *r.tenantGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_group_id__n", t, "multi") + } + } + if r.tenantId != nil { + t := *r.tenantId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id", t, "multi") + } + } + if r.tenantIdN != nil { + t := *r.tenantIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + patchedCircuitGroupRequest *PatchedCircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) PatchedCircuitGroupRequest(patchedCircuitGroupRequest PatchedCircuitGroupRequest) ApiCircuitsCircuitGroupsPartialUpdateRequest { + r.patchedCircuitGroupRequest = &patchedCircuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsPartialUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsPartialUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsPartialUpdate Method for CircuitsCircuitGroupsPartialUpdate + +Patch a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsPartialUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsPartialUpdateRequest { + return ApiCircuitsCircuitGroupsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsPartialUpdateExecute(r ApiCircuitsCircuitGroupsPartialUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedCircuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsRetrieveRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 +} + +func (r ApiCircuitsCircuitGroupsRetrieveRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsRetrieveExecute(r) +} + +/* +CircuitsCircuitGroupsRetrieve Method for CircuitsCircuitGroupsRetrieve + +Get a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsRetrieveRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieve(ctx context.Context, id int32) ApiCircuitsCircuitGroupsRetrieveRequest { + return ApiCircuitsCircuitGroupsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsRetrieveExecute(r ApiCircuitsCircuitGroupsRetrieveRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCircuitsCircuitGroupsUpdateRequest struct { + ctx context.Context + ApiService *CircuitsAPIService + id int32 + circuitGroupRequest *CircuitGroupRequest +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) CircuitGroupRequest(circuitGroupRequest CircuitGroupRequest) ApiCircuitsCircuitGroupsUpdateRequest { + r.circuitGroupRequest = &circuitGroupRequest + return r +} + +func (r ApiCircuitsCircuitGroupsUpdateRequest) Execute() (*CircuitGroup, *http.Response, error) { + return r.ApiService.CircuitsCircuitGroupsUpdateExecute(r) +} + +/* +CircuitsCircuitGroupsUpdate Method for CircuitsCircuitGroupsUpdate + +Put a circuit group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this circuit group. + @return ApiCircuitsCircuitGroupsUpdateRequest +*/ +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdate(ctx context.Context, id int32) ApiCircuitsCircuitGroupsUpdateRequest { + return ApiCircuitsCircuitGroupsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return CircuitGroup +func (a *CircuitsAPIService) CircuitsCircuitGroupsUpdateExecute(r ApiCircuitsCircuitGroupsUpdateRequest) (*CircuitGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *CircuitGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CircuitsAPIService.CircuitsCircuitGroupsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/circuits/circuit-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.circuitGroupRequest == nil { + return localVarReturnValue, nil, reportError("circuitGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.circuitGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + type ApiCircuitsCircuitTerminationsBulkDestroyRequest struct { ctx context.Context ApiService *CircuitsAPIService @@ -622,7 +4587,6 @@ type ApiCircuitsCircuitTerminationsListRequest struct { ctx context.Context ApiService *CircuitsAPIService cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -699,7 +4663,6 @@ type ApiCircuitsCircuitTerminationsListRequest struct { tag *[]string tagN *[]string termSide *Termination - termSideN *Termination updatedByRequest *string upstreamSpeed *[]int32 upstreamSpeedEmpty *bool @@ -727,12 +4690,6 @@ func (r ApiCircuitsCircuitTerminationsListRequest) CableEnd(cableEnd CircuitsCir return r } -// * `A` - A * `B` - B -func (r ApiCircuitsCircuitTerminationsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiCircuitsCircuitTerminationsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiCircuitsCircuitTerminationsListRequest) CableId(cableId []*int32) ApiCircuitsCircuitTerminationsListRequest { r.cableId = &cableId @@ -1132,12 +5089,6 @@ func (r ApiCircuitsCircuitTerminationsListRequest) TermSide(termSide Termination return r } -// * `A` - A * `Z` - Z -func (r ApiCircuitsCircuitTerminationsListRequest) TermSideN(termSideN Termination) ApiCircuitsCircuitTerminationsListRequest { - r.termSideN = &termSideN - return r -} - func (r ApiCircuitsCircuitTerminationsListRequest) UpdatedByRequest(updatedByRequest string) ApiCircuitsCircuitTerminationsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -1277,9 +5228,6 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -2004,9 +5952,6 @@ func (a *CircuitsAPIService) CircuitsCircuitTerminationsListExecute(r ApiCircuit if r.termSide != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "term_side", r.termSide, "") } - if r.termSideN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "term_side__n", r.termSideN, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -5615,8 +9560,8 @@ type ApiCircuitsCircuitsListRequest struct { commitRateN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -5674,28 +9619,37 @@ type ApiCircuitsCircuitsListRequest struct { providerNetworkId *[]int32 providerNetworkIdN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]CircuitsCircuitsListStatusIcParameterInner + statusIe *[]CircuitsCircuitsListStatusIcParameterInner + statusIew *[]CircuitsCircuitsListStatusIcParameterInner + statusIsw *[]CircuitsCircuitsListStatusIcParameterInner + statusN *[]CircuitsCircuitsListStatusIcParameterInner + statusNic *[]CircuitsCircuitsListStatusIcParameterInner + statusNie *[]CircuitsCircuitsListStatusIcParameterInner + statusNiew *[]CircuitsCircuitsListStatusIcParameterInner + statusNisw *[]CircuitsCircuitsListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]*int32 @@ -5818,14 +9772,12 @@ func (r ApiCircuitsCircuitsListRequest) ContactN(contactN []int32) ApiCircuitsCi return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) ContactGroup(contactGroup []string) ApiCircuitsCircuitsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsCircuitsListRequest { r.contactGroupN = &contactGroupN return r } @@ -6131,26 +10083,22 @@ func (r ApiCircuitsCircuitsListRequest) Q(q string) ApiCircuitsCircuitsListReque return r } -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) Region(region []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) Region(region []string) ApiCircuitsCircuitsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionN(regionN []string) ApiCircuitsCircuitsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionId(regionId []string) ApiCircuitsCircuitsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) RegionIdN(regionIdN []string) ApiCircuitsCircuitsListRequest { r.regionIdN = ®ionIdN return r } @@ -6167,26 +10115,22 @@ func (r ApiCircuitsCircuitsListRequest) SiteN(siteN []string) ApiCircuitsCircuit return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroup(siteGroup []string) ApiCircuitsCircuitsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsCircuitsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsCircuitsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsCircuitsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -6208,11 +10152,65 @@ func (r ApiCircuitsCircuitsListRequest) Status(status []string) ApiCircuitsCircu return r } -func (r ApiCircuitsCircuitsListRequest) StatusN(statusN []string) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) StatusEmpty(statusEmpty bool) ApiCircuitsCircuitsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusIc(statusIc []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusIc = &statusIc + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusIe(statusIe []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusIe = &statusIe + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusIew(statusIew []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusIew = &statusIew + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusIsw(statusIsw []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusN(statusN []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { r.statusN = &statusN return r } +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusNic(statusNic []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusNic = &statusNic + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusNie(statusNie []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusNie = &statusNie + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusNiew(statusNiew []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned +func (r ApiCircuitsCircuitsListRequest) StatusNisw(statusNisw []CircuitsCircuitsListStatusIcParameterInner) ApiCircuitsCircuitsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiCircuitsCircuitsListRequest) Tag(tag []string) ApiCircuitsCircuitsListRequest { r.tag = &tag return r @@ -6235,26 +10233,22 @@ func (r ApiCircuitsCircuitsListRequest) TenantN(tenantN []string) ApiCircuitsCir return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroup(tenantGroup []string) ApiCircuitsCircuitsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupN(tenantGroupN []string) ApiCircuitsCircuitsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupId(tenantGroupId []string) ApiCircuitsCircuitsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiCircuitsCircuitsListRequest { +func (r ApiCircuitsCircuitsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiCircuitsCircuitsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -7324,6 +11318,53 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -7335,6 +11376,50 @@ func (a *CircuitsAPIService) CircuitsCircuitsListExecute(r ApiCircuitsCircuitsLi parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -12929,8 +17014,8 @@ type ApiCircuitsProvidersListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12982,16 +17067,16 @@ type ApiCircuitsProvidersListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -13046,14 +17131,12 @@ func (r ApiCircuitsProvidersListRequest) ContactN(contactN []int32) ApiCircuitsP return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroup(contactGroup []string) ApiCircuitsProvidersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) ContactGroupN(contactGroupN []string) ApiCircuitsProvidersListRequest { r.contactGroupN = &contactGroupN return r } @@ -13319,26 +17402,22 @@ func (r ApiCircuitsProvidersListRequest) Q(q string) ApiCircuitsProvidersListReq return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) Region(region []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) Region(region []string) ApiCircuitsProvidersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiCircuitsProvidersListRequest) RegionN(regionN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionN(regionN []string) ApiCircuitsProvidersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionId(regionId []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionId(regionId []string) ApiCircuitsProvidersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) RegionIdN(regionIdN []string) ApiCircuitsProvidersListRequest { r.regionIdN = ®ionIdN return r } @@ -13355,26 +17434,22 @@ func (r ApiCircuitsProvidersListRequest) SiteN(siteN []string) ApiCircuitsProvid return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroup(siteGroup []string) ApiCircuitsProvidersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupN(siteGroupN []string) ApiCircuitsProvidersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupId(siteGroupId []string) ApiCircuitsProvidersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiCircuitsProvidersListRequest { +func (r ApiCircuitsProvidersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiCircuitsProvidersListRequest { r.siteGroupIdN = &siteGroupIdN return r } diff --git a/api_core.go b/api_core.go index 73022d419..41337a80b 100644 --- a/api_core.go +++ b/api_core.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -1878,11 +1878,29 @@ type ApiCoreDataSourcesListRequest struct { sourceUrlNiew *[]string sourceUrlNisw *[]string status *[]string + statusEmpty *bool + statusIc *[]string + statusIe *[]string + statusIew *[]string + statusIsw *[]string statusN *[]string + statusNic *[]string + statusNie *[]string + statusNiew *[]string + statusNisw *[]string tag *[]string tagN *[]string type_ *[]string + typeEmpty *bool + typeIc *[]string + typeIe *[]string + typeIew *[]string + typeIsw *[]string typeN *[]string + typeNic *[]string + typeNie *[]string + typeNiew *[]string + typeNisw *[]string updatedByRequest *string } @@ -2235,11 +2253,56 @@ func (r ApiCoreDataSourcesListRequest) Status(status []string) ApiCoreDataSource return r } +func (r ApiCoreDataSourcesListRequest) StatusEmpty(statusEmpty bool) ApiCoreDataSourcesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIc(statusIc []string) ApiCoreDataSourcesListRequest { + r.statusIc = &statusIc + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIe(statusIe []string) ApiCoreDataSourcesListRequest { + r.statusIe = &statusIe + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIew(statusIew []string) ApiCoreDataSourcesListRequest { + r.statusIew = &statusIew + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusIsw(statusIsw []string) ApiCoreDataSourcesListRequest { + r.statusIsw = &statusIsw + return r +} + func (r ApiCoreDataSourcesListRequest) StatusN(statusN []string) ApiCoreDataSourcesListRequest { r.statusN = &statusN return r } +func (r ApiCoreDataSourcesListRequest) StatusNic(statusNic []string) ApiCoreDataSourcesListRequest { + r.statusNic = &statusNic + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNie(statusNie []string) ApiCoreDataSourcesListRequest { + r.statusNie = &statusNie + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNiew(statusNiew []string) ApiCoreDataSourcesListRequest { + r.statusNiew = &statusNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) StatusNisw(statusNisw []string) ApiCoreDataSourcesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiCoreDataSourcesListRequest) Tag(tag []string) ApiCoreDataSourcesListRequest { r.tag = &tag return r @@ -2255,11 +2318,56 @@ func (r ApiCoreDataSourcesListRequest) Type_(type_ []string) ApiCoreDataSourcesL return r } +func (r ApiCoreDataSourcesListRequest) TypeEmpty(typeEmpty bool) ApiCoreDataSourcesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIc(typeIc []string) ApiCoreDataSourcesListRequest { + r.typeIc = &typeIc + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIe(typeIe []string) ApiCoreDataSourcesListRequest { + r.typeIe = &typeIe + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIew(typeIew []string) ApiCoreDataSourcesListRequest { + r.typeIew = &typeIew + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeIsw(typeIsw []string) ApiCoreDataSourcesListRequest { + r.typeIsw = &typeIsw + return r +} + func (r ApiCoreDataSourcesListRequest) TypeN(typeN []string) ApiCoreDataSourcesListRequest { r.typeN = &typeN return r } +func (r ApiCoreDataSourcesListRequest) TypeNic(typeNic []string) ApiCoreDataSourcesListRequest { + r.typeNic = &typeNic + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNie(typeNie []string) ApiCoreDataSourcesListRequest { + r.typeNie = &typeNie + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNiew(typeNiew []string) ApiCoreDataSourcesListRequest { + r.typeNiew = &typeNiew + return r +} + +func (r ApiCoreDataSourcesListRequest) TypeNisw(typeNisw []string) ApiCoreDataSourcesListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiCoreDataSourcesListRequest) UpdatedByRequest(updatedByRequest string) ApiCoreDataSourcesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -2969,6 +3077,53 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -2980,6 +3135,50 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3013,6 +3212,53 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3024,6 +3270,50 @@ func (a *CoreAPIService) CoreDataSourcesListExecute(r ApiCoreDataSourcesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -3652,7 +3942,16 @@ type ApiCoreJobsListRequest struct { startedAfter *time.Time startedBefore *time.Time status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]CoreJobsListStatusIcParameterInner + statusIe *[]CoreJobsListStatusIcParameterInner + statusIew *[]CoreJobsListStatusIcParameterInner + statusIsw *[]CoreJobsListStatusIcParameterInner + statusN *[]CoreJobsListStatusIcParameterInner + statusNic *[]CoreJobsListStatusIcParameterInner + statusNie *[]CoreJobsListStatusIcParameterInner + statusNiew *[]CoreJobsListStatusIcParameterInner + statusNisw *[]CoreJobsListStatusIcParameterInner user *int32 userN *int32 } @@ -3921,11 +4220,65 @@ func (r ApiCoreJobsListRequest) Status(status []string) ApiCoreJobsListRequest { return r } -func (r ApiCoreJobsListRequest) StatusN(statusN []string) ApiCoreJobsListRequest { +func (r ApiCoreJobsListRequest) StatusEmpty(statusEmpty bool) ApiCoreJobsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusIc(statusIc []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusIc = &statusIc + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusIe(statusIe []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusIe = &statusIe + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusIew(statusIew []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusIew = &statusIew + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusIsw(statusIsw []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusN(statusN []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { r.statusN = &statusN return r } +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusNic(statusNic []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusNic = &statusNic + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusNie(statusNie []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusNie = &statusNie + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusNiew(statusNiew []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed +func (r ApiCoreJobsListRequest) StatusNisw(statusNisw []CoreJobsListStatusIcParameterInner) ApiCoreJobsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiCoreJobsListRequest) User(user int32) ApiCoreJobsListRequest { r.user = &user return r @@ -4365,6 +4718,53 @@ func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -4376,6 +4776,50 @@ func (a *CoreAPIService) CoreJobsListExecute(r ApiCoreJobsListRequest) (*Paginat parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.user != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "user", r.user, "") } @@ -4567,3 +5011,1145 @@ func (a *CoreAPIService) CoreJobsRetrieveExecute(r ApiCoreJobsRetrieveRequest) ( return localVarReturnValue, localVarHTTPResponse, nil } + +type ApiCoreObjectChangesListRequest struct { + ctx context.Context + ApiService *CoreAPIService + action *CoreObjectChangesListActionParameter + changedObjectId *[]int32 + changedObjectIdEmpty *bool + changedObjectIdGt *[]int32 + changedObjectIdGte *[]int32 + changedObjectIdLt *[]int32 + changedObjectIdLte *[]int32 + changedObjectIdN *[]int32 + changedObjectType *string + changedObjectTypeN *string + changedObjectTypeId *[]int32 + changedObjectTypeIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + objectRepr *[]string + objectReprEmpty *bool + objectReprIc *[]string + objectReprIe *[]string + objectReprIew *[]string + objectReprIsw *[]string + objectReprN *[]string + objectReprNic *[]string + objectReprNie *[]string + objectReprNiew *[]string + objectReprNisw *[]string + offset *int32 + ordering *string + q *string + relatedObjectId *[]int32 + relatedObjectIdEmpty *bool + relatedObjectIdGt *[]int32 + relatedObjectIdGte *[]int32 + relatedObjectIdLt *[]int32 + relatedObjectIdLte *[]int32 + relatedObjectIdN *[]int32 + relatedObjectType *int32 + relatedObjectTypeN *int32 + requestId *string + timeAfter *time.Time + timeBefore *time.Time + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + userName *[]string + userNameEmpty *bool + userNameIc *[]string + userNameIe *[]string + userNameIew *[]string + userNameIsw *[]string + userNameN *[]string + userNameNic *[]string + userNameNie *[]string + userNameNiew *[]string + userNameNisw *[]string +} + +// * `create` - Created * `update` - Updated * `delete` - Deleted +func (r ApiCoreObjectChangesListRequest) Action(action CoreObjectChangesListActionParameter) ApiCoreObjectChangesListRequest { + r.action = &action + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectId = &changedObjectId + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.changedObjectIdEmpty = &changedObjectIdEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGt = &changedObjectIdGt + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdGte = &changedObjectIdGte + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLt = &changedObjectIdLt + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdLte = &changedObjectIdLte + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectIdN = &changedObjectIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiCoreObjectChangesListRequest { + r.changedObjectType = &changedObjectType + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiCoreObjectChangesListRequest { + r.changedObjectTypeN = &changedObjectTypeN + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeId = &changedObjectTypeId + return r +} + +func (r ApiCoreObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiCoreObjectChangesListRequest { + r.changedObjectTypeIdN = &changedObjectTypeIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) Id(id []int32) ApiCoreObjectChangesListRequest { + r.id = &id + return r +} + +func (r ApiCoreObjectChangesListRequest) IdEmpty(idEmpty bool) ApiCoreObjectChangesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) IdGt(idGt []int32) ApiCoreObjectChangesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiCoreObjectChangesListRequest) IdGte(idGte []int32) ApiCoreObjectChangesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiCoreObjectChangesListRequest) IdLt(idLt []int32) ApiCoreObjectChangesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiCoreObjectChangesListRequest) IdLte(idLte []int32) ApiCoreObjectChangesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiCoreObjectChangesListRequest) IdN(idN []int32) ApiCoreObjectChangesListRequest { + r.idN = &idN + return r +} + +// Number of results to return per page. +func (r ApiCoreObjectChangesListRequest) Limit(limit int32) ApiCoreObjectChangesListRequest { + r.limit = &limit + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiCoreObjectChangesListRequest { + r.objectRepr = &objectRepr + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiCoreObjectChangesListRequest { + r.objectReprEmpty = &objectReprEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiCoreObjectChangesListRequest { + r.objectReprIc = &objectReprIc + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiCoreObjectChangesListRequest { + r.objectReprIe = &objectReprIe + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiCoreObjectChangesListRequest { + r.objectReprIew = &objectReprIew + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiCoreObjectChangesListRequest { + r.objectReprIsw = &objectReprIsw + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiCoreObjectChangesListRequest { + r.objectReprN = &objectReprN + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiCoreObjectChangesListRequest { + r.objectReprNic = &objectReprNic + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiCoreObjectChangesListRequest { + r.objectReprNie = &objectReprNie + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiCoreObjectChangesListRequest { + r.objectReprNiew = &objectReprNiew + return r +} + +func (r ApiCoreObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiCoreObjectChangesListRequest { + r.objectReprNisw = &objectReprNisw + return r +} + +// The initial index from which to return the results. +func (r ApiCoreObjectChangesListRequest) Offset(offset int32) ApiCoreObjectChangesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiCoreObjectChangesListRequest) Ordering(ordering string) ApiCoreObjectChangesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiCoreObjectChangesListRequest) Q(q string) ApiCoreObjectChangesListRequest { + r.q = &q + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectId = &relatedObjectId + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiCoreObjectChangesListRequest { + r.relatedObjectIdEmpty = &relatedObjectIdEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGt = &relatedObjectIdGt + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdGte = &relatedObjectIdGte + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLt = &relatedObjectIdLt + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdLte = &relatedObjectIdLte + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiCoreObjectChangesListRequest { + r.relatedObjectIdN = &relatedObjectIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiCoreObjectChangesListRequest { + r.relatedObjectType = &relatedObjectType + return r +} + +func (r ApiCoreObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiCoreObjectChangesListRequest { + r.relatedObjectTypeN = &relatedObjectTypeN + return r +} + +func (r ApiCoreObjectChangesListRequest) RequestId(requestId string) ApiCoreObjectChangesListRequest { + r.requestId = &requestId + return r +} + +func (r ApiCoreObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiCoreObjectChangesListRequest { + r.timeAfter = &timeAfter + return r +} + +func (r ApiCoreObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiCoreObjectChangesListRequest { + r.timeBefore = &timeBefore + return r +} + +// User name +func (r ApiCoreObjectChangesListRequest) User(user []string) ApiCoreObjectChangesListRequest { + r.user = &user + return r +} + +// User name +func (r ApiCoreObjectChangesListRequest) UserN(userN []string) ApiCoreObjectChangesListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserId(userId []*int32) ApiCoreObjectChangesListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiCoreObjectChangesListRequest) UserIdN(userIdN []*int32) ApiCoreObjectChangesListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiCoreObjectChangesListRequest) UserName(userName []string) ApiCoreObjectChangesListRequest { + r.userName = &userName + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiCoreObjectChangesListRequest { + r.userNameEmpty = &userNameEmpty + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIc(userNameIc []string) ApiCoreObjectChangesListRequest { + r.userNameIc = &userNameIc + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIe(userNameIe []string) ApiCoreObjectChangesListRequest { + r.userNameIe = &userNameIe + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIew(userNameIew []string) ApiCoreObjectChangesListRequest { + r.userNameIew = &userNameIew + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiCoreObjectChangesListRequest { + r.userNameIsw = &userNameIsw + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameN(userNameN []string) ApiCoreObjectChangesListRequest { + r.userNameN = &userNameN + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNic(userNameNic []string) ApiCoreObjectChangesListRequest { + r.userNameNic = &userNameNic + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNie(userNameNie []string) ApiCoreObjectChangesListRequest { + r.userNameNie = &userNameNie + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiCoreObjectChangesListRequest { + r.userNameNiew = &userNameNiew + return r +} + +func (r ApiCoreObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiCoreObjectChangesListRequest { + r.userNameNisw = &userNameNisw + return r +} + +func (r ApiCoreObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { + return r.ApiService.CoreObjectChangesListExecute(r) +} + +/* +CoreObjectChangesList Method for CoreObjectChangesList + +Retrieve a list of recent changes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiCoreObjectChangesListRequest +*/ +func (a *CoreAPIService) CoreObjectChangesList(ctx context.Context) ApiCoreObjectChangesListRequest { + return ApiCoreObjectChangesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedObjectChangeList +func (a *CoreAPIService) CoreObjectChangesListExecute(r ApiCoreObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectChangeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/object-changes/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.action != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + } + if r.changedObjectId != nil { + t := *r.changedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") + } + } + if r.changedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + } + if r.changedObjectIdGt != nil { + t := *r.changedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") + } + } + if r.changedObjectIdGte != nil { + t := *r.changedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") + } + } + if r.changedObjectIdLt != nil { + t := *r.changedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") + } + } + if r.changedObjectIdLte != nil { + t := *r.changedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") + } + } + if r.changedObjectIdN != nil { + t := *r.changedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") + } + } + if r.changedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") + } + if r.changedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") + } + if r.changedObjectTypeId != nil { + t := *r.changedObjectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") + } + } + if r.changedObjectTypeIdN != nil { + t := *r.changedObjectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.objectRepr != nil { + t := *r.objectRepr + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") + } + } + if r.objectReprEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") + } + if r.objectReprIc != nil { + t := *r.objectReprIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") + } + } + if r.objectReprIe != nil { + t := *r.objectReprIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") + } + } + if r.objectReprIew != nil { + t := *r.objectReprIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") + } + } + if r.objectReprIsw != nil { + t := *r.objectReprIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") + } + } + if r.objectReprN != nil { + t := *r.objectReprN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") + } + } + if r.objectReprNic != nil { + t := *r.objectReprNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") + } + } + if r.objectReprNie != nil { + t := *r.objectReprNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") + } + } + if r.objectReprNiew != nil { + t := *r.objectReprNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") + } + } + if r.objectReprNisw != nil { + t := *r.objectReprNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.relatedObjectId != nil { + t := *r.relatedObjectId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") + } + } + if r.relatedObjectIdEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") + } + if r.relatedObjectIdGt != nil { + t := *r.relatedObjectIdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") + } + } + if r.relatedObjectIdGte != nil { + t := *r.relatedObjectIdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") + } + } + if r.relatedObjectIdLt != nil { + t := *r.relatedObjectIdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") + } + } + if r.relatedObjectIdLte != nil { + t := *r.relatedObjectIdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") + } + } + if r.relatedObjectIdN != nil { + t := *r.relatedObjectIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") + } + } + if r.relatedObjectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") + } + if r.relatedObjectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") + } + if r.requestId != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") + } + if r.timeAfter != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") + } + if r.timeBefore != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.userName != nil { + t := *r.userName + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") + } + } + if r.userNameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") + } + if r.userNameIc != nil { + t := *r.userNameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") + } + } + if r.userNameIe != nil { + t := *r.userNameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") + } + } + if r.userNameIew != nil { + t := *r.userNameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") + } + } + if r.userNameIsw != nil { + t := *r.userNameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") + } + } + if r.userNameN != nil { + t := *r.userNameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") + } + } + if r.userNameNic != nil { + t := *r.userNameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") + } + } + if r.userNameNie != nil { + t := *r.userNameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") + } + } + if r.userNameNiew != nil { + t := *r.userNameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") + } + } + if r.userNameNisw != nil { + t := *r.userNameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiCoreObjectChangesRetrieveRequest struct { + ctx context.Context + ApiService *CoreAPIService + id int32 +} + +func (r ApiCoreObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { + return r.ApiService.CoreObjectChangesRetrieveExecute(r) +} + +/* +CoreObjectChangesRetrieve Method for CoreObjectChangesRetrieve + +Retrieve a list of recent changes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this object change. + @return ApiCoreObjectChangesRetrieveRequest +*/ +func (a *CoreAPIService) CoreObjectChangesRetrieve(ctx context.Context, id int32) ApiCoreObjectChangesRetrieveRequest { + return ApiCoreObjectChangesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return ObjectChange +func (a *CoreAPIService) CoreObjectChangesRetrieveExecute(r ApiCoreObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectChange + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "CoreAPIService.CoreObjectChangesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/core/object-changes/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} diff --git a/api_dcim.go b/api_dcim.go index 0427ae7cc..f6100c61f 100644 --- a/api_dcim.go +++ b/api_dcim.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -624,7 +624,6 @@ type ApiDcimCableTerminationsListRequest struct { cable *int32 cableN *int32 cableEnd *End - cableEndN *End created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -679,12 +678,6 @@ func (r ApiDcimCableTerminationsListRequest) CableEnd(cableEnd End) ApiDcimCable return r } -// * `A` - A * `B` - B -func (r ApiDcimCableTerminationsListRequest) CableEndN(cableEndN End) ApiDcimCableTerminationsListRequest { - r.cableEndN = &cableEndN - return r -} - func (r ApiDcimCableTerminationsListRequest) Created(created []time.Time) ApiDcimCableTerminationsListRequest { r.created = &created return r @@ -918,9 +911,6 @@ func (a *DcimAPIService) DcimCableTerminationsListExecute(r ApiDcimCableTerminat if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -2274,7 +2264,16 @@ type ApiDcimCablesListRequest struct { ApiService *DcimAPIService circuitterminationId *[]int32 color *[]string + colorEmpty *bool + colorIc *[]string + colorIe *[]string + colorIew *[]string + colorIsw *[]string colorN *[]string + colorNic *[]string + colorNie *[]string + colorNiew *[]string + colorNisw *[]string consoleportId *[]int32 consoleserverportId *[]int32 created *[]time.Time @@ -2333,7 +2332,6 @@ type ApiDcimCablesListRequest struct { lengthLte *[]float64 lengthN *[]float64 lengthUnit *DcimCablesListLengthUnitParameter - lengthUnitN *DcimCablesListLengthUnitParameter limit *int32 location *[]string locationId *[]int32 @@ -2350,15 +2348,24 @@ type ApiDcimCablesListRequest struct { site *[]string siteId *[]int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimCablesListStatusIcParameterInner + statusIe *[]DcimCablesListStatusIcParameterInner + statusIew *[]DcimCablesListStatusIcParameterInner + statusIsw *[]DcimCablesListStatusIcParameterInner + statusN *[]DcimCablesListStatusIcParameterInner + statusNic *[]DcimCablesListStatusIcParameterInner + statusNie *[]DcimCablesListStatusIcParameterInner + statusNiew *[]DcimCablesListStatusIcParameterInner + statusNisw *[]DcimCablesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 terminationAId *[]int32 @@ -2368,7 +2375,16 @@ type ApiDcimCablesListRequest struct { terminationBType *string terminationBTypeN *string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimCablesListTypeIcParameterInner + typeIe *[]DcimCablesListTypeIcParameterInner + typeIew *[]DcimCablesListTypeIcParameterInner + typeIsw *[]DcimCablesListTypeIcParameterInner + typeN *[]DcimCablesListTypeIcParameterInner + typeNic *[]DcimCablesListTypeIcParameterInner + typeNie *[]DcimCablesListTypeIcParameterInner + typeNiew *[]DcimCablesListTypeIcParameterInner + typeNisw *[]DcimCablesListTypeIcParameterInner unterminated *bool updatedByRequest *string } @@ -2383,11 +2399,56 @@ func (r ApiDcimCablesListRequest) Color(color []string) ApiDcimCablesListRequest return r } +func (r ApiDcimCablesListRequest) ColorEmpty(colorEmpty bool) ApiDcimCablesListRequest { + r.colorEmpty = &colorEmpty + return r +} + +func (r ApiDcimCablesListRequest) ColorIc(colorIc []string) ApiDcimCablesListRequest { + r.colorIc = &colorIc + return r +} + +func (r ApiDcimCablesListRequest) ColorIe(colorIe []string) ApiDcimCablesListRequest { + r.colorIe = &colorIe + return r +} + +func (r ApiDcimCablesListRequest) ColorIew(colorIew []string) ApiDcimCablesListRequest { + r.colorIew = &colorIew + return r +} + +func (r ApiDcimCablesListRequest) ColorIsw(colorIsw []string) ApiDcimCablesListRequest { + r.colorIsw = &colorIsw + return r +} + func (r ApiDcimCablesListRequest) ColorN(colorN []string) ApiDcimCablesListRequest { r.colorN = &colorN return r } +func (r ApiDcimCablesListRequest) ColorNic(colorNic []string) ApiDcimCablesListRequest { + r.colorNic = &colorNic + return r +} + +func (r ApiDcimCablesListRequest) ColorNie(colorNie []string) ApiDcimCablesListRequest { + r.colorNie = &colorNie + return r +} + +func (r ApiDcimCablesListRequest) ColorNiew(colorNiew []string) ApiDcimCablesListRequest { + r.colorNiew = &colorNiew + return r +} + +func (r ApiDcimCablesListRequest) ColorNisw(colorNisw []string) ApiDcimCablesListRequest { + r.colorNisw = &colorNisw + return r +} + func (r ApiDcimCablesListRequest) ConsoleportId(consoleportId []int32) ApiDcimCablesListRequest { r.consoleportId = &consoleportId return r @@ -2679,12 +2740,6 @@ func (r ApiDcimCablesListRequest) LengthUnit(lengthUnit DcimCablesListLengthUnit return r } -// * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches -func (r ApiDcimCablesListRequest) LengthUnitN(lengthUnitN DcimCablesListLengthUnitParameter) ApiDcimCablesListRequest { - r.lengthUnitN = &lengthUnitN - return r -} - // Number of results to return per page. func (r ApiDcimCablesListRequest) Limit(limit int32) ApiDcimCablesListRequest { r.limit = &limit @@ -2769,11 +2824,65 @@ func (r ApiDcimCablesListRequest) Status(status []string) ApiDcimCablesListReque return r } -func (r ApiDcimCablesListRequest) StatusN(statusN []string) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) StatusEmpty(statusEmpty bool) ApiDcimCablesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusIc(statusIc []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusIc = &statusIc + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusIe(statusIe []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusIe = &statusIe + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusIew(statusIew []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusIew = &statusIew + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusIsw(statusIsw []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusN(statusN []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { r.statusN = &statusN return r } +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusNic(statusNic []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusNic = &statusNic + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusNie(statusNie []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusNie = &statusNie + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusNiew(statusNiew []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiDcimCablesListRequest) StatusNisw(statusNisw []DcimCablesListStatusIcParameterInner) ApiDcimCablesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimCablesListRequest) Tag(tag []string) ApiDcimCablesListRequest { r.tag = &tag return r @@ -2796,26 +2905,22 @@ func (r ApiDcimCablesListRequest) TenantN(tenantN []string) ApiDcimCablesListReq return r } -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroup(tenantGroup []string) ApiDcimCablesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimCablesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimCablesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimCablesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -2867,11 +2972,65 @@ func (r ApiDcimCablesListRequest) Type_(type_ []string) ApiDcimCablesListRequest return r } -func (r ApiDcimCablesListRequest) TypeN(typeN []string) ApiDcimCablesListRequest { +func (r ApiDcimCablesListRequest) TypeEmpty(typeEmpty bool) ApiDcimCablesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeIc(typeIc []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeIc = &typeIc + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeIe(typeIe []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeIe = &typeIe + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeIew(typeIew []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeIew = &typeIew + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeIsw(typeIsw []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeN(typeN []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { r.typeN = &typeN return r } +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeNic(typeNic []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeNic = &typeNic + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeNie(typeNie []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeNie = &typeNie + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeNiew(typeNiew []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power +func (r ApiDcimCablesListRequest) TypeNisw(typeNisw []DcimCablesListTypeIcParameterInner) ApiDcimCablesListRequest { + r.typeNisw = &typeNisw + return r +} + // Unterminated func (r ApiDcimCablesListRequest) Unterminated(unterminated bool) ApiDcimCablesListRequest { r.unterminated = &unterminated @@ -2946,6 +3105,53 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag parameterAddToHeaderOrQuery(localVarQueryParams, "color", t, "multi") } } + if r.colorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__empty", r.colorEmpty, "") + } + if r.colorIc != nil { + t := *r.colorIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ic", t, "multi") + } + } + if r.colorIe != nil { + t := *r.colorIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__ie", t, "multi") + } + } + if r.colorIew != nil { + t := *r.colorIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__iew", t, "multi") + } + } + if r.colorIsw != nil { + t := *r.colorIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__isw", t, "multi") + } + } if r.colorN != nil { t := *r.colorN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -2957,6 +3163,50 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag parameterAddToHeaderOrQuery(localVarQueryParams, "color__n", t, "multi") } } + if r.colorNic != nil { + t := *r.colorNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nic", t, "multi") + } + } + if r.colorNie != nil { + t := *r.colorNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nie", t, "multi") + } + } + if r.colorNiew != nil { + t := *r.colorNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__niew", t, "multi") + } + } + if r.colorNisw != nil { + t := *r.colorNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "color__nisw", t, "multi") + } + } if r.consoleportId != nil { t := *r.consoleportId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3547,9 +3797,6 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag if r.lengthUnit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "length_unit", r.lengthUnit, "") } - if r.lengthUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "length_unit__n", r.lengthUnitN, "") - } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } @@ -3686,6 +3933,53 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3697,6 +3991,50 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3852,6 +4190,53 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3863,6 +4248,50 @@ func (a *DcimAPIService) DcimCablesListExecute(r ApiDcimCablesListRequest) (*Pag parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.unterminated != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "unterminated", r.unterminated, "") } @@ -5066,8 +5495,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -5097,8 +5524,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -5114,7 +5539,6 @@ type ApiDcimConsolePortTemplatesListRequest struct { ordering *string q *string type_ *DcimConsolePortTemplatesListTypeParameter - typeN *DcimConsolePortTemplatesListTypeParameter updatedByRequest *string } @@ -5225,18 +5649,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) Id(id []int32) ApiDcimConsolePortTemplatesListRequest { r.id = &id return r @@ -5385,18 +5797,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimConsolePortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsolePortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) Name(name []string) ApiDcimConsolePortTemplatesListRequest { r.name = &name return r @@ -5476,12 +5876,6 @@ func (r ApiDcimConsolePortTemplatesListRequest) Type_(type_ DcimConsolePortTempl return r } -// * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] -func (r ApiDcimConsolePortTemplatesListRequest) TypeN(typeN DcimConsolePortTemplatesListTypeParameter) ApiDcimConsolePortTemplatesListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimConsolePortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsolePortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -5743,28 +6137,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6052,28 +6424,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6199,9 +6549,6 @@ func (a *DcimAPIService) DcimConsolePortTemplatesListExecute(r ApiDcimConsolePor if r.type_ != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") } - if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -7244,7 +7591,6 @@ type ApiDcimConsolePortsListRequest struct { ctx context.Context ApiService *DcimAPIService cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -7272,6 +7618,21 @@ type ApiDcimConsolePortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -7329,28 +7690,32 @@ type ApiDcimConsolePortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter - speedN *DcimConsolePortsListSpeedParameter tag *[]string tagN *[]string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimConsolePortsListTypeIcParameterInner + typeIe *[]DcimConsolePortsListTypeIcParameterInner + typeIew *[]DcimConsolePortsListTypeIcParameterInner + typeIsw *[]DcimConsolePortsListTypeIcParameterInner + typeN *[]DcimConsolePortsListTypeIcParameterInner + typeNic *[]DcimConsolePortsListTypeIcParameterInner + typeNie *[]DcimConsolePortsListTypeIcParameterInner + typeNiew *[]DcimConsolePortsListTypeIcParameterInner + typeNisw *[]DcimConsolePortsListTypeIcParameterInner updatedByRequest *string virtualChassis *[]string virtualChassisN *[]string @@ -7364,12 +7729,6 @@ func (r ApiDcimConsolePortsListRequest) CableEnd(cableEnd CircuitsCircuitTermina return r } -// * `A` - A * `B` - B -func (r ApiDcimConsolePortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsolePortsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimConsolePortsListRequest) CableId(cableId []*int32) ApiDcimConsolePortsListRequest { r.cableId = &cableId @@ -7511,6 +7870,94 @@ func (r ApiDcimConsolePortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimCons return r } +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsolePortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsolePortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsolePortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsolePortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsolePortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsolePortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsolePortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimConsolePortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsolePortsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsolePortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimConsolePortsListRequest) DeviceType(deviceType []string) ApiDcimConsolePortsListRequest { r.deviceType = &deviceType @@ -7814,54 +8261,26 @@ func (r ApiDcimConsolePortsListRequest) RackIdN(rackIdN []int32) ApiDcimConsoleP return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) Region(region []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) Region(region []string) ApiDcimConsolePortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimConsolePortsListRequest) RegionN(regionN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionN(regionN []string) ApiDcimConsolePortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionId(regionId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionId(regionId []string) ApiDcimConsolePortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsolePortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) Role(role []string) ApiDcimConsolePortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimConsolePortsListRequest) RoleN(roleN []string) ApiDcimConsolePortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleId(roleId []int32) ApiDcimConsolePortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimConsolePortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsolePortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimConsolePortsListRequest) Site(site []string) ApiDcimConsolePortsListRequest { r.site = &site @@ -7874,26 +8293,22 @@ func (r ApiDcimConsolePortsListRequest) SiteN(siteN []string) ApiDcimConsolePort return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsolePortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsolePortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsolePortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsolePortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -7916,12 +8331,6 @@ func (r ApiDcimConsolePortsListRequest) Speed(speed DcimConsolePortsListSpeedPar return r } -// Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps -func (r ApiDcimConsolePortsListRequest) SpeedN(speedN DcimConsolePortsListSpeedParameter) ApiDcimConsolePortsListRequest { - r.speedN = &speedN - return r -} - func (r ApiDcimConsolePortsListRequest) Tag(tag []string) ApiDcimConsolePortsListRequest { r.tag = &tag return r @@ -7938,12 +8347,65 @@ func (r ApiDcimConsolePortsListRequest) Type_(type_ []string) ApiDcimConsolePort return r } -// Physical port type -func (r ApiDcimConsolePortsListRequest) TypeN(typeN []string) ApiDcimConsolePortsListRequest { +func (r ApiDcimConsolePortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimConsolePortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeIc(typeIc []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeIe(typeIe []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeIew(typeIew []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeIsw(typeIsw []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeN(typeN []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { r.typeN = &typeN return r } +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeNic(typeNic []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeNie(typeNie []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeNiew(typeNiew []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsolePortsListRequest) TypeNisw(typeNisw []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsolePortsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimConsolePortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsolePortsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -8017,9 +8479,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -8285,6 +8744,163 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -8876,50 +9492,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9011,9 +9583,6 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe if r.speed != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "speed", r.speed, "") } - if r.speedN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", r.speedN, "") - } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9047,6 +9616,53 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9058,6 +9674,50 @@ func (a *DcimAPIService) DcimConsolePortsListExecute(r ApiDcimConsolePortsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -10282,8 +10942,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -10313,8 +10971,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -10330,7 +10986,6 @@ type ApiDcimConsoleServerPortTemplatesListRequest struct { ordering *string q *string type_ *DcimConsolePortTemplatesListTypeParameter - typeN *DcimConsolePortTemplatesListTypeParameter updatedByRequest *string } @@ -10441,18 +11096,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeId return r } -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) Id(id []int32) ApiDcimConsoleServerPortTemplatesListRequest { r.id = &id return r @@ -10601,18 +11244,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeId return r } -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimConsoleServerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimConsoleServerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) Name(name []string) ApiDcimConsoleServerPortTemplatesListRequest { r.name = &name return r @@ -10692,12 +11323,6 @@ func (r ApiDcimConsoleServerPortTemplatesListRequest) Type_(type_ DcimConsolePor return r } -// * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] -func (r ApiDcimConsoleServerPortTemplatesListRequest) TypeN(typeN DcimConsolePortTemplatesListTypeParameter) ApiDcimConsoleServerPortTemplatesListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimConsoleServerPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsoleServerPortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -10959,28 +11584,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11268,28 +11871,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11415,9 +11996,6 @@ func (a *DcimAPIService) DcimConsoleServerPortTemplatesListExecute(r ApiDcimCons if r.type_ != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") } - if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -12460,7 +13038,6 @@ type ApiDcimConsoleServerPortsListRequest struct { ctx context.Context ApiService *DcimAPIService cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -12488,6 +13065,21 @@ type ApiDcimConsoleServerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -12545,28 +13137,32 @@ type ApiDcimConsoleServerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *DcimConsolePortsListSpeedParameter - speedN *DcimConsolePortsListSpeedParameter tag *[]string tagN *[]string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimConsolePortsListTypeIcParameterInner + typeIe *[]DcimConsolePortsListTypeIcParameterInner + typeIew *[]DcimConsolePortsListTypeIcParameterInner + typeIsw *[]DcimConsolePortsListTypeIcParameterInner + typeN *[]DcimConsolePortsListTypeIcParameterInner + typeNic *[]DcimConsolePortsListTypeIcParameterInner + typeNie *[]DcimConsolePortsListTypeIcParameterInner + typeNiew *[]DcimConsolePortsListTypeIcParameterInner + typeNisw *[]DcimConsolePortsListTypeIcParameterInner updatedByRequest *string virtualChassis *[]string virtualChassisN *[]string @@ -12580,12 +13176,6 @@ func (r ApiDcimConsoleServerPortsListRequest) CableEnd(cableEnd CircuitsCircuitT return r } -// * `A` - A * `B` - B -func (r ApiDcimConsoleServerPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimConsoleServerPortsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimConsoleServerPortsListRequest) CableId(cableId []*int32) ApiDcimConsoleServerPortsListRequest { r.cableId = &cableId @@ -12727,6 +13317,94 @@ func (r ApiDcimConsoleServerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDc return r } +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimConsoleServerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimConsoleServerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimConsoleServerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimConsoleServerPortsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimConsoleServerPortsListRequest) DeviceType(deviceType []string) ApiDcimConsoleServerPortsListRequest { r.deviceType = &deviceType @@ -13030,54 +13708,26 @@ func (r ApiDcimConsoleServerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimCo return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) Region(region []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) Region(region []string) ApiDcimConsoleServerPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionN(regionN []string) ApiDcimConsoleServerPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionId(regionId []string) ApiDcimConsoleServerPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimConsoleServerPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) Role(role []string) ApiDcimConsoleServerPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimConsoleServerPortsListRequest) RoleN(roleN []string) ApiDcimConsoleServerPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleId(roleId []int32) ApiDcimConsoleServerPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimConsoleServerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimConsoleServerPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimConsoleServerPortsListRequest) Site(site []string) ApiDcimConsoleServerPortsListRequest { r.site = &site @@ -13090,26 +13740,22 @@ func (r ApiDcimConsoleServerPortsListRequest) SiteN(siteN []string) ApiDcimConso return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimConsoleServerPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimConsoleServerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -13132,12 +13778,6 @@ func (r ApiDcimConsoleServerPortsListRequest) Speed(speed DcimConsolePortsListSp return r } -// Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps -func (r ApiDcimConsoleServerPortsListRequest) SpeedN(speedN DcimConsolePortsListSpeedParameter) ApiDcimConsoleServerPortsListRequest { - r.speedN = &speedN - return r -} - func (r ApiDcimConsoleServerPortsListRequest) Tag(tag []string) ApiDcimConsoleServerPortsListRequest { r.tag = &tag return r @@ -13154,12 +13794,65 @@ func (r ApiDcimConsoleServerPortsListRequest) Type_(type_ []string) ApiDcimConso return r } -// Physical port type -func (r ApiDcimConsoleServerPortsListRequest) TypeN(typeN []string) ApiDcimConsoleServerPortsListRequest { +func (r ApiDcimConsoleServerPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimConsoleServerPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeIc(typeIc []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeIe(typeIe []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeIew(typeIew []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeIsw(typeIsw []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeN(typeN []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { r.typeN = &typeN return r } +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeNic(typeNic []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeNie(typeNie []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeNiew(typeNiew []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimConsoleServerPortsListRequest) TypeNisw(typeNisw []DcimConsolePortsListTypeIcParameterInner) ApiDcimConsoleServerPortsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimConsoleServerPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimConsoleServerPortsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -13233,9 +13926,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -13501,6 +14191,163 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14092,50 +14939,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14227,9 +15030,6 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe if r.speed != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "speed", r.speed, "") } - if r.speedN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "speed__n", r.speedN, "") - } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14263,6 +15063,53 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14274,6 +15121,50 @@ func (a *DcimAPIService) DcimConsoleServerPortsListExecute(r ApiDcimConsoleServe parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -15498,8 +16389,6 @@ type ApiDcimDeviceBayTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -15651,18 +16540,6 @@ func (r ApiDcimDeviceBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int3 return r } -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimDeviceBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimDeviceBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimDeviceBayTemplatesListRequest) Id(id []int32) ApiDcimDeviceBayTemplatesListRequest { r.id = &id return r @@ -16133,28 +17010,6 @@ func (a *DcimAPIService) DcimDeviceBayTemplatesListExecute(r ApiDcimDeviceBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -17606,6 +18461,21 @@ type ApiDcimDeviceBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -17663,20 +18533,16 @@ type ApiDcimDeviceBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -17807,6 +18673,94 @@ func (r ApiDcimDeviceBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimDevice return r } +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRole(deviceRole []string) ApiDcimDeviceBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimDeviceBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimDeviceBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimDeviceBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimDeviceBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimDeviceBaysListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimDeviceBaysListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDeviceBaysListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDeviceBaysListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimDeviceBaysListRequest) DeviceType(deviceType []string) ApiDcimDeviceBaysListRequest { r.deviceType = &deviceType @@ -18112,54 +19066,26 @@ func (r ApiDcimDeviceBaysListRequest) RackIdN(rackIdN []int32) ApiDcimDeviceBays return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) Region(region []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) Region(region []string) ApiDcimDeviceBaysListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionN(regionN []string) ApiDcimDeviceBaysListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionId(regionId []string) ApiDcimDeviceBaysListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) RegionIdN(regionIdN []string) ApiDcimDeviceBaysListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) Role(role []string) ApiDcimDeviceBaysListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimDeviceBaysListRequest) RoleN(roleN []string) ApiDcimDeviceBaysListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleId(roleId []int32) ApiDcimDeviceBaysListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimDeviceBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimDeviceBaysListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimDeviceBaysListRequest) Site(site []string) ApiDcimDeviceBaysListRequest { r.site = &site @@ -18172,26 +19098,22 @@ func (r ApiDcimDeviceBaysListRequest) SiteN(siteN []string) ApiDcimDeviceBaysLis return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroup(siteGroup []string) ApiDcimDeviceBaysListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimDeviceBaysListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimDeviceBaysListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDeviceBaysListRequest { +func (r ApiDcimDeviceBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDeviceBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -18525,6 +19447,163 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -19132,50 +20211,6 @@ func (a *DcimAPIService) DcimDeviceBaysListExecute(r ApiDcimDeviceBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -22664,7 +23699,6 @@ type ApiDcimDeviceTypesListRequest struct { ctx context.Context ApiService *DcimAPIService airflow *DcimDeviceTypesListAirflowParameter - airflowN *DcimDeviceTypesListAirflowParameter consolePortTemplateCount *[]int32 consolePortTemplateCountEmpty *bool consolePortTemplateCountGt *[]int32 @@ -22828,7 +23862,6 @@ type ApiDcimDeviceTypesListRequest struct { slugNiew *[]string slugNisw *[]string subdeviceRole *ParentChildStatus - subdeviceRoleN *ParentChildStatus tag *[]string tagN *[]string uHeight *[]float64 @@ -22847,7 +23880,6 @@ type ApiDcimDeviceTypesListRequest struct { weightLte *[]float64 weightN *[]float64 weightUnit *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter } // * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed @@ -22856,12 +23888,6 @@ func (r ApiDcimDeviceTypesListRequest) Airflow(airflow DcimDeviceTypesListAirflo return r } -// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed -func (r ApiDcimDeviceTypesListRequest) AirflowN(airflowN DcimDeviceTypesListAirflowParameter) ApiDcimDeviceTypesListRequest { - r.airflowN = &airflowN - return r -} - func (r ApiDcimDeviceTypesListRequest) ConsolePortTemplateCount(consolePortTemplateCount []int32) ApiDcimDeviceTypesListRequest { r.consolePortTemplateCount = &consolePortTemplateCount return r @@ -23701,12 +24727,6 @@ func (r ApiDcimDeviceTypesListRequest) SubdeviceRole(subdeviceRole ParentChildSt return r } -// Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child -func (r ApiDcimDeviceTypesListRequest) SubdeviceRoleN(subdeviceRoleN ParentChildStatus) ApiDcimDeviceTypesListRequest { - r.subdeviceRoleN = &subdeviceRoleN - return r -} - func (r ApiDcimDeviceTypesListRequest) Tag(tag []string) ApiDcimDeviceTypesListRequest { r.tag = &tag return r @@ -23798,12 +24818,6 @@ func (r ApiDcimDeviceTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesList return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimDeviceTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimDeviceTypesListRequest { - r.weightUnitN = &weightUnitN - return r -} - func (r ApiDcimDeviceTypesListRequest) Execute() (*PaginatedDeviceTypeList, *http.Response, error) { return r.ApiService.DcimDeviceTypesListExecute(r) } @@ -23848,9 +24862,6 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if r.airflow != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") } - if r.airflowN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") - } if r.consolePortTemplateCount != nil { t := *r.consolePortTemplateCount if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -25364,9 +26375,6 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if r.subdeviceRole != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "subdevice_role", r.subdeviceRole, "") } - if r.subdeviceRoleN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "subdevice_role__n", r.subdeviceRoleN, "") - } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -25533,9 +26541,6 @@ func (a *DcimAPIService) DcimDeviceTypesListExecute(r ApiDcimDeviceTypesListRequ if r.weightUnit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -26575,7 +27580,6 @@ type ApiDcimDevicesListRequest struct { ctx context.Context ApiService *DcimAPIService airflow *DcimDeviceTypesListAirflowParameter - airflowN *DcimDeviceTypesListAirflowParameter assetTag *[]string assetTagEmpty *bool assetTagIc *[]string @@ -26587,6 +27591,10 @@ type ApiDcimDevicesListRequest struct { assetTagNie *[]string assetTagNiew *[]string assetTagNisw *[]string + clusterGroup *[]string + clusterGroupN *[]string + clusterGroupId *[]int32 + clusterGroupIdN *[]int32 clusterId *[]*int32 clusterIdN *[]*int32 configTemplateId *[]*int32 @@ -26609,8 +27617,8 @@ type ApiDcimDevicesListRequest struct { consoleServerPorts *bool contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -26645,7 +27653,6 @@ type ApiDcimDevicesListRequest struct { deviceTypeId *[]int32 deviceTypeIdN *[]int32 face *RackFace - faceN *RackFace frontPortCount *[]int32 frontPortCountEmpty *bool frontPortCountGt *[]int32 @@ -26695,8 +27702,8 @@ type ApiDcimDevicesListRequest struct { latitudeN *[]float64 limit *int32 localContextData *bool - locationId *[]int32 - locationIdN *[]int32 + locationId *[]string + locationIdN *[]string longitude *[]float64 longitudeEmpty *bool longitudeGt *[]float64 @@ -26790,10 +27797,10 @@ type ApiDcimDevicesListRequest struct { rearPortCountLt *[]int32 rearPortCountLte *[]int32 rearPortCountN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]int32 @@ -26811,22 +27818,31 @@ type ApiDcimDevicesListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + statusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -26855,12 +27871,6 @@ func (r ApiDcimDevicesListRequest) Airflow(airflow DcimDeviceTypesListAirflowPar return r } -// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed -func (r ApiDcimDevicesListRequest) AirflowN(airflowN DcimDeviceTypesListAirflowParameter) ApiDcimDevicesListRequest { - r.airflowN = &airflowN - return r -} - func (r ApiDcimDevicesListRequest) AssetTag(assetTag []string) ApiDcimDevicesListRequest { r.assetTag = &assetTag return r @@ -26916,6 +27926,30 @@ func (r ApiDcimDevicesListRequest) AssetTagNisw(assetTagNisw []string) ApiDcimDe return r } +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroup(clusterGroup []string) ApiDcimDevicesListRequest { + r.clusterGroup = &clusterGroup + return r +} + +// Cluster group (slug) +func (r ApiDcimDevicesListRequest) ClusterGroupN(clusterGroupN []string) ApiDcimDevicesListRequest { + r.clusterGroupN = &clusterGroupN + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupId(clusterGroupId []int32) ApiDcimDevicesListRequest { + r.clusterGroupId = &clusterGroupId + return r +} + +// Cluster group (ID) +func (r ApiDcimDevicesListRequest) ClusterGroupIdN(clusterGroupIdN []int32) ApiDcimDevicesListRequest { + r.clusterGroupIdN = &clusterGroupIdN + return r +} + // VM cluster (ID) func (r ApiDcimDevicesListRequest) ClusterId(clusterId []*int32) ApiDcimDevicesListRequest { r.clusterId = &clusterId @@ -27034,14 +28068,12 @@ func (r ApiDcimDevicesListRequest) ContactN(contactN []int32) ApiDcimDevicesList return r } -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) ContactGroup(contactGroup []string) ApiDcimDevicesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) ContactGroupN(contactGroupN []string) ApiDcimDevicesListRequest { r.contactGroupN = &contactGroupN return r } @@ -27224,12 +28256,6 @@ func (r ApiDcimDevicesListRequest) Face(face RackFace) ApiDcimDevicesListRequest return r } -// * `front` - Front * `rear` - Rear -func (r ApiDcimDevicesListRequest) FaceN(faceN RackFace) ApiDcimDevicesListRequest { - r.faceN = &faceN - return r -} - func (r ApiDcimDevicesListRequest) FrontPortCount(frontPortCount []int32) ApiDcimDevicesListRequest { r.frontPortCount = &frontPortCount return r @@ -27482,14 +28508,12 @@ func (r ApiDcimDevicesListRequest) LocalContextData(localContextData bool) ApiDc return r } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationId(locationId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) LocationId(locationId []string) ApiDcimDevicesListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) LocationIdN(locationIdN []string) ApiDcimDevicesListRequest { r.locationIdN = &locationIdN return r } @@ -27988,26 +29012,22 @@ func (r ApiDcimDevicesListRequest) RearPortCountN(rearPortCountN []int32) ApiDci return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) Region(region []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) Region(region []string) ApiDcimDevicesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimDevicesListRequest) RegionN(regionN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionN(regionN []string) ApiDcimDevicesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionId(regionId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionId(regionId []string) ApiDcimDevicesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) RegionIdN(regionIdN []string) ApiDcimDevicesListRequest { r.regionIdN = ®ionIdN return r } @@ -28103,26 +29123,22 @@ func (r ApiDcimDevicesListRequest) SiteN(siteN []string) ApiDcimDevicesListReque return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroup(siteGroup []string) ApiDcimDevicesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupN(siteGroupN []string) ApiDcimDevicesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupId(siteGroupId []string) ApiDcimDevicesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimDevicesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -28144,11 +29160,65 @@ func (r ApiDcimDevicesListRequest) Status(status []string) ApiDcimDevicesListReq return r } -func (r ApiDcimDevicesListRequest) StatusN(statusN []string) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) StatusEmpty(statusEmpty bool) ApiDcimDevicesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusIc(statusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusIc = &statusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusIe(statusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusIe = &statusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusIew(statusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusIew = &statusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusIsw(statusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusN(statusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { r.statusN = &statusN return r } +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusNic(statusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusNic = &statusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusNie(statusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusNie = &statusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusNiew(statusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimDevicesListRequest) StatusNisw(statusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimDevicesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimDevicesListRequest) Tag(tag []string) ApiDcimDevicesListRequest { r.tag = &tag return r @@ -28171,26 +29241,22 @@ func (r ApiDcimDevicesListRequest) TenantN(tenantN []string) ApiDcimDevicesListR return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroup(tenantGroup []string) ApiDcimDevicesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimDevicesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimDevicesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimDevicesListRequest { +func (r ApiDcimDevicesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimDevicesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -28344,9 +29410,6 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if r.airflow != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") } - if r.airflowN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "airflow__n", r.airflowN, "") - } if r.assetTag != nil { t := *r.assetTag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -28460,6 +29523,50 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "asset_tag__nisw", t, "multi") } } + if r.clusterGroup != nil { + t := *r.clusterGroup + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", t, "multi") + } + } + if r.clusterGroupN != nil { + t := *r.clusterGroupN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group__n", t, "multi") + } + } + if r.clusterGroupId != nil { + t := *r.clusterGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id", t, "multi") + } + } + if r.clusterGroupIdN != nil { + t := *r.clusterGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group_id__n", t, "multi") + } + } if r.clusterId != nil { t := *r.clusterId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -29026,9 +30133,6 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P if r.face != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "face", r.face, "") } - if r.faceN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "face__n", r.faceN, "") - } if r.frontPortCount != nil { t := *r.frontPortCount if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -30697,6 +31801,53 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -30708,6 +31859,50 @@ func (a *DcimAPIService) DcimDevicesListExecute(r ApiDcimDevicesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -32192,8 +33387,6 @@ type ApiDcimFrontPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -32223,8 +33416,6 @@ type ApiDcimFrontPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -32249,7 +33440,16 @@ type ApiDcimFrontPortTemplatesListRequest struct { rearPortPositionLte *[]int32 rearPortPositionN *[]int32 type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIe *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIsw *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeN *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNic *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNie *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNiew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNisw *[]DcimFrontPortTemplatesListTypeIcParameterInner updatedByRequest *string } @@ -32415,18 +33615,6 @@ func (r ApiDcimFrontPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimFrontPortTemplatesListRequest) Id(id []int32) ApiDcimFrontPortTemplatesListRequest { r.id = &id return r @@ -32575,18 +33763,6 @@ func (r ApiDcimFrontPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimFrontPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimFrontPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimFrontPortTemplatesListRequest) Name(name []string) ApiDcimFrontPortTemplatesListRequest { r.name = &name return r @@ -32710,11 +33886,65 @@ func (r ApiDcimFrontPortTemplatesListRequest) Type_(type_ []string) ApiDcimFront return r } -func (r ApiDcimFrontPortTemplatesListRequest) TypeN(typeN []string) ApiDcimFrontPortTemplatesListRequest { +func (r ApiDcimFrontPortTemplatesListRequest) TypeEmpty(typeEmpty bool) ApiDcimFrontPortTemplatesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeIc(typeIc []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeIc = &typeIc + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeIe(typeIe []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeIe = &typeIe + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeIew(typeIew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeIew = &typeIew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeIsw(typeIsw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeN(typeN []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { r.typeN = &typeN return r } +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeNic(typeNic []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeNic = &typeNic + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeNie(typeNie []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeNie = &typeNie + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeNiew(typeNiew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortTemplatesListRequest) TypeNisw(typeNisw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortTemplatesListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimFrontPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimFrontPortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -33089,28 +34319,6 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33398,28 +34606,6 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33644,6 +34830,53 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33655,6 +34888,50 @@ func (a *DcimAPIService) DcimFrontPortTemplatesListExecute(r ApiDcimFrontPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -34697,7 +35974,6 @@ type ApiDcimFrontPortsListRequest struct { ctx context.Context ApiService *DcimAPIService cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -34735,6 +36011,21 @@ type ApiDcimFrontPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -34801,26 +36092,31 @@ type ApiDcimFrontPortsListRequest struct { rearPortPositionLt *[]int32 rearPortPositionLte *[]int32 rearPortPositionN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIe *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIsw *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeN *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNic *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNie *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNiew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNisw *[]DcimFrontPortTemplatesListTypeIcParameterInner updatedByRequest *string virtualChassis *[]string virtualChassisN *[]string @@ -34834,12 +36130,6 @@ func (r ApiDcimFrontPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminati return r } -// * `A` - A * `B` - B -func (r ApiDcimFrontPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimFrontPortsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimFrontPortsListRequest) CableId(cableId []*int32) ApiDcimFrontPortsListRequest { r.cableId = &cableId @@ -35031,6 +36321,94 @@ func (r ApiDcimFrontPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimFrontP return r } +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRole(deviceRole []string) ApiDcimFrontPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimFrontPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimFrontPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimFrontPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimFrontPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimFrontPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimFrontPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimFrontPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimFrontPortsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimFrontPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimFrontPortsListRequest) DeviceType(deviceType []string) ApiDcimFrontPortsListRequest { r.deviceType = &deviceType @@ -35379,54 +36757,26 @@ func (r ApiDcimFrontPortsListRequest) RearPortPositionN(rearPortPositionN []int3 return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) Region(region []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) Region(region []string) ApiDcimFrontPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimFrontPortsListRequest) RegionN(regionN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionN(regionN []string) ApiDcimFrontPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionId(regionId []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionId(regionId []string) ApiDcimFrontPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) RegionIdN(regionIdN []string) ApiDcimFrontPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) Role(role []string) ApiDcimFrontPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimFrontPortsListRequest) RoleN(roleN []string) ApiDcimFrontPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleId(roleId []int32) ApiDcimFrontPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimFrontPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimFrontPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimFrontPortsListRequest) Site(site []string) ApiDcimFrontPortsListRequest { r.site = &site @@ -35439,26 +36789,22 @@ func (r ApiDcimFrontPortsListRequest) SiteN(siteN []string) ApiDcimFrontPortsLis return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroup(siteGroup []string) ApiDcimFrontPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimFrontPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimFrontPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimFrontPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -35490,11 +36836,65 @@ func (r ApiDcimFrontPortsListRequest) Type_(type_ []string) ApiDcimFrontPortsLis return r } -func (r ApiDcimFrontPortsListRequest) TypeN(typeN []string) ApiDcimFrontPortsListRequest { +func (r ApiDcimFrontPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimFrontPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeIc(typeIc []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeIc = &typeIc + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeIe(typeIe []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeIe = &typeIe + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeIew(typeIew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeIew = &typeIew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeIsw(typeIsw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeN(typeN []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { r.typeN = &typeN return r } +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeNic(typeNic []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeNic = &typeNic + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeNie(typeNie []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeNie = &typeNie + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeNiew(typeNiew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimFrontPortsListRequest) TypeNisw(typeNisw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimFrontPortsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimFrontPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimFrontPortsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -35568,9 +36968,6 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -35946,6 +37343,163 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36628,50 +38182,6 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36793,6 +38303,53 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36804,6 +38361,50 @@ func (a *DcimAPIService) DcimFrontPortsListExecute(r ApiDcimFrontPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -38030,8 +39631,6 @@ type ApiDcimInterfaceTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 enabled *bool id *[]int32 idEmpty *bool @@ -38063,8 +39662,6 @@ type ApiDcimInterfaceTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -38079,14 +39676,50 @@ type ApiDcimInterfaceTemplatesListRequest struct { offset *int32 ordering *string poeMode *[]string - poeModeN *[]string + poeModeEmpty *bool + poeModeIc *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeIe *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeIew *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeIsw *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeN *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNic *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNie *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNiew *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNisw *[]DcimInterfaceTemplatesListPoeModeIcParameterInner poeType *[]string - poeTypeN *[]string + poeTypeEmpty *bool + poeTypeIc *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeIe *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeIew *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeIsw *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeN *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNic *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNie *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNiew *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNisw *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner q *string rfRole *[]string - rfRoleN *[]string + rfRoleEmpty *bool + rfRoleIc *[]WirelessRole + rfRoleIe *[]WirelessRole + rfRoleIew *[]WirelessRole + rfRoleIsw *[]WirelessRole + rfRoleN *[]WirelessRole + rfRoleNic *[]WirelessRole + rfRoleNie *[]WirelessRole + rfRoleNiew *[]WirelessRole + rfRoleNisw *[]WirelessRole type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeIe *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeIew *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeIsw *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeN *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNic *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNie *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNiew *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNisw *[]DcimInterfaceTemplatesListTypeIcParameterInner updatedByRequest *string } @@ -38207,18 +39840,6 @@ func (r ApiDcimInterfaceTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimInterfaceTemplatesListRequest) Enabled(enabled bool) ApiDcimInterfaceTemplatesListRequest { r.enabled = &enabled return r @@ -38377,18 +39998,6 @@ func (r ApiDcimInterfaceTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimInterfaceTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimInterfaceTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimInterfaceTemplatesListRequest) Name(name []string) ApiDcimInterfaceTemplatesListRequest { r.name = &name return r @@ -38461,21 +40070,129 @@ func (r ApiDcimInterfaceTemplatesListRequest) PoeMode(poeMode []string) ApiDcimI return r } -func (r ApiDcimInterfaceTemplatesListRequest) PoeModeN(poeModeN []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeEmpty(poeModeEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.poeModeEmpty = &poeModeEmpty + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIc(poeModeIc []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIc = &poeModeIc + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIe(poeModeIe []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIe = &poeModeIe + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIew(poeModeIew []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIew = &poeModeIew + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeIsw(poeModeIsw []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeIsw = &poeModeIsw + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeN(poeModeN []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { r.poeModeN = &poeModeN return r } +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNic(poeModeNic []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNic = &poeModeNic + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNie(poeModeNie []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNie = &poeModeNie + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNiew(poeModeNiew []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNiew = &poeModeNiew + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfaceTemplatesListRequest) PoeModeNisw(poeModeNisw []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeModeNisw = &poeModeNisw + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) PoeType(poeType []string) ApiDcimInterfaceTemplatesListRequest { r.poeType = &poeType return r } -func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeN(poeTypeN []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeEmpty(poeTypeEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeEmpty = &poeTypeEmpty + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIc(poeTypeIc []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIc = &poeTypeIc + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIe(poeTypeIe []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIe = &poeTypeIe + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIew(poeTypeIew []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIew = &poeTypeIew + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeIsw(poeTypeIsw []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeIsw = &poeTypeIsw + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeN(poeTypeN []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { r.poeTypeN = &poeTypeN return r } +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNic(poeTypeNic []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNic = &poeTypeNic + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNie(poeTypeNie []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNie = &poeTypeNie + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNiew(poeTypeNiew []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNiew = &poeTypeNiew + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfaceTemplatesListRequest) PoeTypeNisw(poeTypeNisw []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.poeTypeNisw = &poeTypeNisw + return r +} + // Search func (r ApiDcimInterfaceTemplatesListRequest) Q(q string) ApiDcimInterfaceTemplatesListRequest { r.q = &q @@ -38487,21 +40204,129 @@ func (r ApiDcimInterfaceTemplatesListRequest) RfRole(rfRole []string) ApiDcimInt return r } -func (r ApiDcimInterfaceTemplatesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleEmpty(rfRoleEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleEmpty = &rfRoleEmpty + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIc(rfRoleIc []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIc = &rfRoleIc + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIe(rfRoleIe []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIe = &rfRoleIe + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIew(rfRoleIew []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIew = &rfRoleIew + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleIsw(rfRoleIsw []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleIsw = &rfRoleIsw + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleN(rfRoleN []WirelessRole) ApiDcimInterfaceTemplatesListRequest { r.rfRoleN = &rfRoleN return r } +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNic(rfRoleNic []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNic = &rfRoleNic + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNie(rfRoleNie []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNie = &rfRoleNie + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNiew(rfRoleNiew []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNiew = &rfRoleNiew + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfaceTemplatesListRequest) RfRoleNisw(rfRoleNisw []WirelessRole) ApiDcimInterfaceTemplatesListRequest { + r.rfRoleNisw = &rfRoleNisw + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) Type_(type_ []string) ApiDcimInterfaceTemplatesListRequest { r.type_ = &type_ return r } -func (r ApiDcimInterfaceTemplatesListRequest) TypeN(typeN []string) ApiDcimInterfaceTemplatesListRequest { +func (r ApiDcimInterfaceTemplatesListRequest) TypeEmpty(typeEmpty bool) ApiDcimInterfaceTemplatesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeIc(typeIc []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeIc = &typeIc + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeIe(typeIe []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeIe = &typeIe + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeIew(typeIew []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeIew = &typeIew + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeIsw(typeIsw []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeN(typeN []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { r.typeN = &typeN return r } +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeNic(typeNic []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeNic = &typeNic + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeNie(typeNie []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeNie = &typeNie + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeNiew(typeNiew []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfaceTemplatesListRequest) TypeNisw(typeNisw []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfaceTemplatesListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimInterfaceTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInterfaceTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -38785,28 +40610,6 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } @@ -39100,28 +40903,6 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39252,6 +41033,53 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "multi") } } + if r.poeModeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__empty", r.poeModeEmpty, "") + } + if r.poeModeIc != nil { + t := *r.poeModeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", t, "multi") + } + } + if r.poeModeIe != nil { + t := *r.poeModeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", t, "multi") + } + } + if r.poeModeIew != nil { + t := *r.poeModeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", t, "multi") + } + } + if r.poeModeIsw != nil { + t := *r.poeModeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", t, "multi") + } + } if r.poeModeN != nil { t := *r.poeModeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39263,6 +41091,50 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "multi") } } + if r.poeModeNic != nil { + t := *r.poeModeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", t, "multi") + } + } + if r.poeModeNie != nil { + t := *r.poeModeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", t, "multi") + } + } + if r.poeModeNiew != nil { + t := *r.poeModeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", t, "multi") + } + } + if r.poeModeNisw != nil { + t := *r.poeModeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", t, "multi") + } + } if r.poeType != nil { t := *r.poeType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39274,6 +41146,53 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "multi") } } + if r.poeTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__empty", r.poeTypeEmpty, "") + } + if r.poeTypeIc != nil { + t := *r.poeTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", t, "multi") + } + } + if r.poeTypeIe != nil { + t := *r.poeTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", t, "multi") + } + } + if r.poeTypeIew != nil { + t := *r.poeTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", t, "multi") + } + } + if r.poeTypeIsw != nil { + t := *r.poeTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", t, "multi") + } + } if r.poeTypeN != nil { t := *r.poeTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39285,6 +41204,50 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "multi") } } + if r.poeTypeNic != nil { + t := *r.poeTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", t, "multi") + } + } + if r.poeTypeNie != nil { + t := *r.poeTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", t, "multi") + } + } + if r.poeTypeNiew != nil { + t := *r.poeTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", t, "multi") + } + } + if r.poeTypeNisw != nil { + t := *r.poeTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", t, "multi") + } + } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -39299,6 +41262,53 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "multi") } } + if r.rfRoleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__empty", r.rfRoleEmpty, "") + } + if r.rfRoleIc != nil { + t := *r.rfRoleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", t, "multi") + } + } + if r.rfRoleIe != nil { + t := *r.rfRoleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", t, "multi") + } + } + if r.rfRoleIew != nil { + t := *r.rfRoleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", t, "multi") + } + } + if r.rfRoleIsw != nil { + t := *r.rfRoleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", t, "multi") + } + } if r.rfRoleN != nil { t := *r.rfRoleN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39310,6 +41320,50 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") } } + if r.rfRoleNic != nil { + t := *r.rfRoleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", t, "multi") + } + } + if r.rfRoleNie != nil { + t := *r.rfRoleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", t, "multi") + } + } + if r.rfRoleNiew != nil { + t := *r.rfRoleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", t, "multi") + } + } + if r.rfRoleNisw != nil { + t := *r.rfRoleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", t, "multi") + } + } if r.type_ != nil { t := *r.type_ if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39321,6 +41375,53 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -39332,6 +41433,50 @@ func (a *DcimAPIService) DcimInterfaceTemplatesListExecute(r ApiDcimInterfaceTem parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -40376,7 +42521,6 @@ type ApiDcimInterfacesListRequest struct { bridgeId *[]int32 bridgeIdN *[]int32 cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -40404,12 +42548,36 @@ type ApiDcimInterfacesListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 duplex *[]*string - duplexN *[]*string + duplexEmpty *bool + duplexIc *[]DcimInterfacesListDuplexIcParameterInner + duplexIe *[]DcimInterfacesListDuplexIcParameterInner + duplexIew *[]DcimInterfacesListDuplexIcParameterInner + duplexIsw *[]DcimInterfacesListDuplexIcParameterInner + duplexN *[]DcimInterfacesListDuplexIcParameterInner + duplexNic *[]DcimInterfacesListDuplexIcParameterInner + duplexNie *[]DcimInterfacesListDuplexIcParameterInner + duplexNiew *[]DcimInterfacesListDuplexIcParameterInner + duplexNisw *[]DcimInterfacesListDuplexIcParameterInner enabled *bool id *[]int32 idEmpty *bool @@ -40461,7 +42629,6 @@ type ApiDcimInterfacesListRequest struct { markConnected *bool mgmtOnly *bool mode *DcimInterfacesListModeParameter - modeN *DcimInterfacesListModeParameter modifiedByRequest *string moduleId *[]*int32 moduleIdN *[]*int32 @@ -40489,20 +42656,47 @@ type ApiDcimInterfacesListRequest struct { parentId *[]int32 parentIdN *[]int32 poeMode *[]string - poeModeN *[]string + poeModeEmpty *bool + poeModeIc *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeIe *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeIew *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeIsw *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeN *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNic *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNie *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNiew *[]DcimInterfaceTemplatesListPoeModeIcParameterInner + poeModeNisw *[]DcimInterfaceTemplatesListPoeModeIcParameterInner poeType *[]string - poeTypeN *[]string + poeTypeEmpty *bool + poeTypeIc *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeIe *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeIew *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeIsw *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeN *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNic *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNie *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNiew *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner + poeTypeNisw *[]DcimInterfaceTemplatesListPoeTypeIcParameterInner q *string rack *[]string rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string rfChannel *[]string - rfChannelN *[]string + rfChannelEmpty *bool + rfChannelIc *[]WirelessChannel + rfChannelIe *[]WirelessChannel + rfChannelIew *[]WirelessChannel + rfChannelIsw *[]WirelessChannel + rfChannelN *[]WirelessChannel + rfChannelNic *[]WirelessChannel + rfChannelNie *[]WirelessChannel + rfChannelNiew *[]WirelessChannel + rfChannelNisw *[]WirelessChannel rfChannelFrequency *[]float64 rfChannelFrequencyEmpty *bool rfChannelFrequencyGt *[]float64 @@ -40518,17 +42712,22 @@ type ApiDcimInterfacesListRequest struct { rfChannelWidthLte *[]float64 rfChannelWidthN *[]float64 rfRole *[]string - rfRoleN *[]string - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + rfRoleEmpty *bool + rfRoleIc *[]WirelessRole + rfRoleIe *[]WirelessRole + rfRoleIew *[]WirelessRole + rfRoleIsw *[]WirelessRole + rfRoleN *[]WirelessRole + rfRoleNic *[]WirelessRole + rfRoleNie *[]WirelessRole + rfRoleNiew *[]WirelessRole + rfRoleNisw *[]WirelessRole site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 speed *[]int32 @@ -40548,7 +42747,16 @@ type ApiDcimInterfacesListRequest struct { txPowerLte *[]int32 txPowerN *[]int32 type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeIe *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeIew *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeIsw *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeN *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNic *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNie *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNiew *[]DcimInterfaceTemplatesListTypeIcParameterInner + typeNisw *[]DcimInterfaceTemplatesListTypeIcParameterInner updatedByRequest *string vdc *[]string vdcN *[]string @@ -40602,12 +42810,6 @@ func (r ApiDcimInterfacesListRequest) CableEnd(cableEnd CircuitsCircuitTerminati return r } -// * `A` - A * `B` - B -func (r ApiDcimInterfacesListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimInterfacesListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimInterfacesListRequest) CableId(cableId []*int32) ApiDcimInterfacesListRequest { r.cableId = &cableId @@ -40749,6 +42951,94 @@ func (r ApiDcimInterfacesListRequest) DeviceIdN(deviceIdN []int32) ApiDcimInterf return r } +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRole(deviceRole []string) ApiDcimInterfacesListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInterfacesListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInterfacesListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInterfacesListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInterfacesListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInterfacesListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatus(deviceStatus []string) ApiDcimInterfacesListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInterfacesListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimInterfacesListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInterfacesListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInterfacesListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimInterfacesListRequest) DeviceType(deviceType []string) ApiDcimInterfacesListRequest { r.deviceType = &deviceType @@ -40778,11 +43068,65 @@ func (r ApiDcimInterfacesListRequest) Duplex(duplex []*string) ApiDcimInterfaces return r } -func (r ApiDcimInterfacesListRequest) DuplexN(duplexN []*string) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) DuplexEmpty(duplexEmpty bool) ApiDcimInterfacesListRequest { + r.duplexEmpty = &duplexEmpty + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexIc(duplexIc []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexIc = &duplexIc + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexIe(duplexIe []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexIe = &duplexIe + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexIew(duplexIew []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexIew = &duplexIew + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexIsw(duplexIsw []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexIsw = &duplexIsw + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexN(duplexN []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { r.duplexN = &duplexN return r } +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexNic(duplexNic []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexNic = &duplexNic + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexNie(duplexNie []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexNie = &duplexNie + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexNiew(duplexNiew []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexNiew = &duplexNiew + return r +} + +// * `half` - Half * `full` - Full * `auto` - Auto +func (r ApiDcimInterfacesListRequest) DuplexNisw(duplexNisw []DcimInterfacesListDuplexIcParameterInner) ApiDcimInterfacesListRequest { + r.duplexNisw = &duplexNisw + return r +} + func (r ApiDcimInterfacesListRequest) Enabled(enabled bool) ApiDcimInterfacesListRequest { r.enabled = &enabled return r @@ -41051,12 +43395,6 @@ func (r ApiDcimInterfacesListRequest) Mode(mode DcimInterfacesListModeParameter) return r } -// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) -func (r ApiDcimInterfacesListRequest) ModeN(modeN DcimInterfacesListModeParameter) ApiDcimInterfacesListRequest { - r.modeN = &modeN - return r -} - func (r ApiDcimInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimInterfacesListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -41198,21 +43536,129 @@ func (r ApiDcimInterfacesListRequest) PoeMode(poeMode []string) ApiDcimInterface return r } -func (r ApiDcimInterfacesListRequest) PoeModeN(poeModeN []string) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) PoeModeEmpty(poeModeEmpty bool) ApiDcimInterfacesListRequest { + r.poeModeEmpty = &poeModeEmpty + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeIc(poeModeIc []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeIc = &poeModeIc + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeIe(poeModeIe []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeIe = &poeModeIe + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeIew(poeModeIew []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeIew = &poeModeIew + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeIsw(poeModeIsw []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeIsw = &poeModeIsw + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeN(poeModeN []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { r.poeModeN = &poeModeN return r } +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeNic(poeModeNic []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeNic = &poeModeNic + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeNie(poeModeNie []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeNie = &poeModeNie + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeNiew(poeModeNiew []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeNiew = &poeModeNiew + return r +} + +// * `pd` - PD * `pse` - PSE +func (r ApiDcimInterfacesListRequest) PoeModeNisw(poeModeNisw []DcimInterfaceTemplatesListPoeModeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeModeNisw = &poeModeNisw + return r +} + func (r ApiDcimInterfacesListRequest) PoeType(poeType []string) ApiDcimInterfacesListRequest { r.poeType = &poeType return r } -func (r ApiDcimInterfacesListRequest) PoeTypeN(poeTypeN []string) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) PoeTypeEmpty(poeTypeEmpty bool) ApiDcimInterfacesListRequest { + r.poeTypeEmpty = &poeTypeEmpty + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeIc(poeTypeIc []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeIc = &poeTypeIc + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeIe(poeTypeIe []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeIe = &poeTypeIe + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeIew(poeTypeIew []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeIew = &poeTypeIew + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeIsw(poeTypeIsw []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeIsw = &poeTypeIsw + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeN(poeTypeN []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { r.poeTypeN = &poeTypeN return r } +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeNic(poeTypeNic []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeNic = &poeTypeNic + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeNie(poeTypeNie []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeNie = &poeTypeNie + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeNiew(poeTypeNiew []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeNiew = &poeTypeNiew + return r +} + +// * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) +func (r ApiDcimInterfacesListRequest) PoeTypeNisw(poeTypeNisw []DcimInterfaceTemplatesListPoeTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.poeTypeNisw = &poeTypeNisw + return r +} + // Search func (r ApiDcimInterfacesListRequest) Q(q string) ApiDcimInterfacesListRequest { r.q = &q @@ -41243,26 +43689,22 @@ func (r ApiDcimInterfacesListRequest) RackIdN(rackIdN []int32) ApiDcimInterfaces return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) Region(region []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) Region(region []string) ApiDcimInterfacesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimInterfacesListRequest) RegionN(regionN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionN(regionN []string) ApiDcimInterfacesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionId(regionId []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionId(regionId []string) ApiDcimInterfacesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RegionIdN(regionIdN []string) ApiDcimInterfacesListRequest { r.regionIdN = ®ionIdN return r } @@ -41272,11 +43714,65 @@ func (r ApiDcimInterfacesListRequest) RfChannel(rfChannel []string) ApiDcimInter return r } -func (r ApiDcimInterfacesListRequest) RfChannelN(rfChannelN []string) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RfChannelEmpty(rfChannelEmpty bool) ApiDcimInterfacesListRequest { + r.rfChannelEmpty = &rfChannelEmpty + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelIc(rfChannelIc []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelIc = &rfChannelIc + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelIe(rfChannelIe []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelIe = &rfChannelIe + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelIew(rfChannelIew []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelIew = &rfChannelIew + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelIsw(rfChannelIsw []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelIsw = &rfChannelIsw + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelN(rfChannelN []WirelessChannel) ApiDcimInterfacesListRequest { r.rfChannelN = &rfChannelN return r } +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelNic(rfChannelNic []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelNic = &rfChannelNic + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelNie(rfChannelNie []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelNie = &rfChannelNie + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelNiew(rfChannelNiew []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelNiew = &rfChannelNiew + return r +} + +// * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +func (r ApiDcimInterfacesListRequest) RfChannelNisw(rfChannelNisw []WirelessChannel) ApiDcimInterfacesListRequest { + r.rfChannelNisw = &rfChannelNisw + return r +} + func (r ApiDcimInterfacesListRequest) RfChannelFrequency(rfChannelFrequency []float64) ApiDcimInterfacesListRequest { r.rfChannelFrequency = &rfChannelFrequency return r @@ -41352,32 +43848,62 @@ func (r ApiDcimInterfacesListRequest) RfRole(rfRole []string) ApiDcimInterfacesL return r } -func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []string) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) RfRoleEmpty(rfRoleEmpty bool) ApiDcimInterfacesListRequest { + r.rfRoleEmpty = &rfRoleEmpty + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleIc(rfRoleIc []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleIc = &rfRoleIc + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleIe(rfRoleIe []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleIe = &rfRoleIe + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleIew(rfRoleIew []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleIew = &rfRoleIew + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleIsw(rfRoleIsw []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleIsw = &rfRoleIsw + return r +} + +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleN(rfRoleN []WirelessRole) ApiDcimInterfacesListRequest { r.rfRoleN = &rfRoleN return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) Role(role []string) ApiDcimInterfacesListRequest { - r.role = &role +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleNic(rfRoleNic []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleNic = &rfRoleNic return r } -// Device role (slug) -func (r ApiDcimInterfacesListRequest) RoleN(roleN []string) ApiDcimInterfacesListRequest { - r.roleN = &roleN +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleNie(rfRoleNie []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleNie = &rfRoleNie return r } -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleId(roleId []int32) ApiDcimInterfacesListRequest { - r.roleId = &roleId +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleNiew(rfRoleNiew []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleNiew = &rfRoleNiew return r } -// Device role (ID) -func (r ApiDcimInterfacesListRequest) RoleIdN(roleIdN []int32) ApiDcimInterfacesListRequest { - r.roleIdN = &roleIdN +// * `ap` - Access point * `station` - Station +func (r ApiDcimInterfacesListRequest) RfRoleNisw(rfRoleNisw []WirelessRole) ApiDcimInterfacesListRequest { + r.rfRoleNisw = &rfRoleNisw return r } @@ -41393,26 +43919,22 @@ func (r ApiDcimInterfacesListRequest) SiteN(siteN []string) ApiDcimInterfacesLis return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroup(siteGroup []string) ApiDcimInterfacesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupN(siteGroupN []string) ApiDcimInterfacesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupId(siteGroupId []string) ApiDcimInterfacesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInterfacesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -41514,11 +44036,65 @@ func (r ApiDcimInterfacesListRequest) Type_(type_ []string) ApiDcimInterfacesLis return r } -func (r ApiDcimInterfacesListRequest) TypeN(typeN []string) ApiDcimInterfacesListRequest { +func (r ApiDcimInterfacesListRequest) TypeEmpty(typeEmpty bool) ApiDcimInterfacesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeIc(typeIc []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeIc = &typeIc + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeIe(typeIe []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeIe = &typeIe + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeIew(typeIew []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeIew = &typeIew + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeIsw(typeIsw []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeN(typeN []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { r.typeN = &typeN return r } +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeNic(typeNic []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeNic = &typeNic + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeNie(typeNie []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeNie = &typeNie + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeNiew(typeNiew []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +func (r ApiDcimInterfacesListRequest) TypeNisw(typeNisw []DcimInterfaceTemplatesListTypeIcParameterInner) ApiDcimInterfacesListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimInterfacesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimInterfacesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -41770,9 +44346,6 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42038,6 +44611,163 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42093,6 +44823,53 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "duplex", t, "multi") } } + if r.duplexEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__empty", r.duplexEmpty, "") + } + if r.duplexIc != nil { + t := *r.duplexIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ic", t, "multi") + } + } + if r.duplexIe != nil { + t := *r.duplexIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__ie", t, "multi") + } + } + if r.duplexIew != nil { + t := *r.duplexIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__iew", t, "multi") + } + } + if r.duplexIsw != nil { + t := *r.duplexIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__isw", t, "multi") + } + } if r.duplexN != nil { t := *r.duplexN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42104,6 +44881,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__n", t, "multi") } } + if r.duplexNic != nil { + t := *r.duplexNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nic", t, "multi") + } + } + if r.duplexNie != nil { + t := *r.duplexNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nie", t, "multi") + } + } + if r.duplexNiew != nil { + t := *r.duplexNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__niew", t, "multi") + } + } + if r.duplexNisw != nil { + t := *r.duplexNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "duplex__nisw", t, "multi") + } + } if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } @@ -42601,9 +45422,6 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques if r.mode != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "") } - if r.modeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", r.modeN, "") - } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -42853,6 +45671,53 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode", t, "multi") } } + if r.poeModeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__empty", r.poeModeEmpty, "") + } + if r.poeModeIc != nil { + t := *r.poeModeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ic", t, "multi") + } + } + if r.poeModeIe != nil { + t := *r.poeModeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__ie", t, "multi") + } + } + if r.poeModeIew != nil { + t := *r.poeModeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__iew", t, "multi") + } + } + if r.poeModeIsw != nil { + t := *r.poeModeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__isw", t, "multi") + } + } if r.poeModeN != nil { t := *r.poeModeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42864,6 +45729,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__n", t, "multi") } } + if r.poeModeNic != nil { + t := *r.poeModeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nic", t, "multi") + } + } + if r.poeModeNie != nil { + t := *r.poeModeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nie", t, "multi") + } + } + if r.poeModeNiew != nil { + t := *r.poeModeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__niew", t, "multi") + } + } + if r.poeModeNisw != nil { + t := *r.poeModeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_mode__nisw", t, "multi") + } + } if r.poeType != nil { t := *r.poeType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42875,6 +45784,53 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type", t, "multi") } } + if r.poeTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__empty", r.poeTypeEmpty, "") + } + if r.poeTypeIc != nil { + t := *r.poeTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ic", t, "multi") + } + } + if r.poeTypeIe != nil { + t := *r.poeTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__ie", t, "multi") + } + } + if r.poeTypeIew != nil { + t := *r.poeTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__iew", t, "multi") + } + } + if r.poeTypeIsw != nil { + t := *r.poeTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__isw", t, "multi") + } + } if r.poeTypeN != nil { t := *r.poeTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42886,6 +45842,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__n", t, "multi") } } + if r.poeTypeNic != nil { + t := *r.poeTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nic", t, "multi") + } + } + if r.poeTypeNie != nil { + t := *r.poeTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nie", t, "multi") + } + } + if r.poeTypeNiew != nil { + t := *r.poeTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__niew", t, "multi") + } + } + if r.poeTypeNisw != nil { + t := *r.poeTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "poe_type__nisw", t, "multi") + } + } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -42988,6 +45988,53 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel", t, "multi") } } + if r.rfChannelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__empty", r.rfChannelEmpty, "") + } + if r.rfChannelIc != nil { + t := *r.rfChannelIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ic", t, "multi") + } + } + if r.rfChannelIe != nil { + t := *r.rfChannelIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__ie", t, "multi") + } + } + if r.rfChannelIew != nil { + t := *r.rfChannelIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__iew", t, "multi") + } + } + if r.rfChannelIsw != nil { + t := *r.rfChannelIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__isw", t, "multi") + } + } if r.rfChannelN != nil { t := *r.rfChannelN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -42999,6 +46046,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__n", t, "multi") } } + if r.rfChannelNic != nil { + t := *r.rfChannelNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nic", t, "multi") + } + } + if r.rfChannelNie != nil { + t := *r.rfChannelNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nie", t, "multi") + } + } + if r.rfChannelNiew != nil { + t := *r.rfChannelNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__niew", t, "multi") + } + } + if r.rfChannelNisw != nil { + t := *r.rfChannelNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_channel__nisw", t, "multi") + } + } if r.rfChannelFrequency != nil { t := *r.rfChannelFrequency if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -43148,6 +46239,53 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role", t, "multi") } } + if r.rfRoleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__empty", r.rfRoleEmpty, "") + } + if r.rfRoleIc != nil { + t := *r.rfRoleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ic", t, "multi") + } + } + if r.rfRoleIe != nil { + t := *r.rfRoleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__ie", t, "multi") + } + } + if r.rfRoleIew != nil { + t := *r.rfRoleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__iew", t, "multi") + } + } + if r.rfRoleIsw != nil { + t := *r.rfRoleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__isw", t, "multi") + } + } if r.rfRoleN != nil { t := *r.rfRoleN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -43159,48 +46297,48 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__n", t, "multi") } } - if r.role != nil { - t := *r.role + if r.rfRoleNic != nil { + t := *r.rfRoleNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nic", t, "multi") } } - if r.roleN != nil { - t := *r.roleN + if r.rfRoleNie != nil { + t := *r.rfRoleNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nie", t, "multi") } } - if r.roleId != nil { - t := *r.roleId + if r.rfRoleNiew != nil { + t := *r.rfRoleNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__niew", t, "multi") } } - if r.roleIdN != nil { - t := *r.roleIdN + if r.rfRoleNisw != nil { + t := *r.rfRoleNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "rf_role__nisw", t, "multi") } } if r.site != nil { @@ -43470,6 +46608,53 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -43481,6 +46666,50 @@ func (a *DcimAPIService) DcimInterfacesListExecute(r ApiDcimInterfacesListReques parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -47253,8 +50482,6 @@ type ApiDcimInventoryItemTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -47472,18 +50699,6 @@ func (r ApiDcimInventoryItemTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN [] return r } -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimInventoryItemTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimInventoryItemTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimInventoryItemTemplatesListRequest) Id(id []int32) ApiDcimInventoryItemTemplatesListRequest { r.id = &id return r @@ -48152,28 +51367,6 @@ func (a *DcimAPIService) DcimInventoryItemTemplatesListExecute(r ApiDcimInventor parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -49868,6 +53061,21 @@ type ApiDcimInventoryItemsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -49939,10 +53147,10 @@ type ApiDcimInventoryItemsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 @@ -49960,10 +53168,10 @@ type ApiDcimInventoryItemsListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -50194,6 +53402,94 @@ func (r ApiDcimInventoryItemsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimIn return r } +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRole(deviceRole []string) ApiDcimInventoryItemsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimInventoryItemsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimInventoryItemsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimInventoryItemsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatus(deviceStatus []string) ApiDcimInventoryItemsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimInventoryItemsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimInventoryItemsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimInventoryItemsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimInventoryItemsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimInventoryItemsListRequest) DeviceType(deviceType []string) ApiDcimInventoryItemsListRequest { r.deviceType = &deviceType @@ -50571,26 +53867,22 @@ func (r ApiDcimInventoryItemsListRequest) RackIdN(rackIdN []int32) ApiDcimInvent return r } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) Region(region []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) Region(region []string) ApiDcimInventoryItemsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionN(regionN []string) ApiDcimInventoryItemsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionId(regionId []string) ApiDcimInventoryItemsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) RegionIdN(regionIdN []string) ApiDcimInventoryItemsListRequest { r.regionIdN = ®ionIdN return r } @@ -50686,26 +53978,22 @@ func (r ApiDcimInventoryItemsListRequest) SiteN(siteN []string) ApiDcimInventory return r } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroup(siteGroup []string) ApiDcimInventoryItemsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupN(siteGroupN []string) ApiDcimInventoryItemsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupId(siteGroupId []string) ApiDcimInventoryItemsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimInventoryItemsListRequest { +func (r ApiDcimInventoryItemsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimInventoryItemsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -51235,6 +54523,163 @@ func (a *DcimAPIService) DcimInventoryItemsListExecute(r ApiDcimInventoryItemsLi parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -53332,14 +56777,14 @@ func (a *DcimAPIService) DcimLocationsDestroyExecute(r ApiDcimLocationsDestroyRe type ApiDcimLocationsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -53406,16 +56851,16 @@ type ApiDcimLocationsListRequest struct { parentId *[]*int32 parentIdN *[]*int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 slug *[]string @@ -53430,40 +56875,45 @@ type ApiDcimLocationsListRequest struct { slugNiew *[]string slugNisw *[]string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimLocationsListStatusIcParameterInner + statusIe *[]DcimLocationsListStatusIcParameterInner + statusIew *[]DcimLocationsListStatusIcParameterInner + statusIsw *[]DcimLocationsListStatusIcParameterInner + statusN *[]DcimLocationsListStatusIcParameterInner + statusNic *[]DcimLocationsListStatusIcParameterInner + statusNie *[]DcimLocationsListStatusIcParameterInner + statusNiew *[]DcimLocationsListStatusIcParameterInner + statusNisw *[]DcimLocationsListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string } -// Location (slug) -func (r ApiDcimLocationsListRequest) Ancestor(ancestor []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) Ancestor(ancestor []string) ApiDcimLocationsListRequest { r.ancestor = &ancestor return r } -// Location (slug) -func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorN(ancestorN []string) ApiDcimLocationsListRequest { r.ancestorN = &ancestorN return r } -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorId(ancestorId []string) ApiDcimLocationsListRequest { r.ancestorId = &ancestorId return r } -// Location (ID) -func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimLocationsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -53480,14 +56930,12 @@ func (r ApiDcimLocationsListRequest) ContactN(contactN []int32) ApiDcimLocations return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) ContactGroup(contactGroup []string) ApiDcimLocationsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) ContactGroupN(contactGroupN []string) ApiDcimLocationsListRequest { r.contactGroupN = &contactGroupN return r } @@ -53832,26 +57280,22 @@ func (r ApiDcimLocationsListRequest) Q(q string) ApiDcimLocationsListRequest { return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) Region(region []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) Region(region []string) ApiDcimLocationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimLocationsListRequest) RegionN(regionN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionN(regionN []string) ApiDcimLocationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionId(regionId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionId(regionId []string) ApiDcimLocationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) RegionIdN(regionIdN []string) ApiDcimLocationsListRequest { r.regionIdN = ®ionIdN return r } @@ -53868,26 +57312,22 @@ func (r ApiDcimLocationsListRequest) SiteN(siteN []string) ApiDcimLocationsListR return r } -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroup(siteGroup []string) ApiDcimLocationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimLocationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimLocationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimLocationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -53964,11 +57404,65 @@ func (r ApiDcimLocationsListRequest) Status(status []string) ApiDcimLocationsLis return r } -func (r ApiDcimLocationsListRequest) StatusN(statusN []string) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) StatusEmpty(statusEmpty bool) ApiDcimLocationsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusIc(statusIc []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusIc = &statusIc + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusIe(statusIe []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusIe = &statusIe + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusIew(statusIew []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusIew = &statusIew + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusIsw(statusIsw []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusN(statusN []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { r.statusN = &statusN return r } +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusNic(statusNic []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusNic = &statusNic + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusNie(statusNie []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusNie = &statusNie + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusNiew(statusNiew []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimLocationsListRequest) StatusNisw(statusNisw []DcimLocationsListStatusIcParameterInner) ApiDcimLocationsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimLocationsListRequest) Tag(tag []string) ApiDcimLocationsListRequest { r.tag = &tag return r @@ -53991,26 +57485,22 @@ func (r ApiDcimLocationsListRequest) TenantN(tenantN []string) ApiDcimLocationsL return r } -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroup(tenantGroup []string) ApiDcimLocationsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimLocationsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimLocationsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimLocationsListRequest { +func (r ApiDcimLocationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimLocationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -55063,6 +58553,53 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -55074,6 +58611,50 @@ func (a *DcimAPIService) DcimLocationsListExecute(r ApiDcimLocationsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -56227,8 +59808,8 @@ type ApiDcimManufacturersListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -56308,14 +59889,12 @@ func (r ApiDcimManufacturersListRequest) ContactN(contactN []int32) ApiDcimManuf return r } -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroup(contactGroup []string) ApiDcimManufacturersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []int32) ApiDcimManufacturersListRequest { +func (r ApiDcimManufacturersListRequest) ContactGroupN(contactGroupN []string) ApiDcimManufacturersListRequest { r.contactGroupN = &contactGroupN return r } @@ -58420,10 +61999,8 @@ type ApiDcimModuleBayTemplatesListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - deviceTypeId *[]int32 - deviceTypeIdN *[]int32 - devicetypeId *[]int32 - devicetypeIdN *[]int32 + deviceTypeId *[]*int32 + deviceTypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -58451,6 +62028,8 @@ type ApiDcimModuleBayTemplatesListRequest struct { lastUpdatedN *[]time.Time limit *int32 modifiedByRequest *string + moduleTypeId *[]*int32 + moduleTypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -58575,29 +62154,17 @@ func (r ApiDcimModuleBayTemplatesListRequest) DescriptionNisw(descriptionNisw [] } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeId(deviceTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeId = &deviceTypeId return r } // Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { +func (r ApiDcimModuleBayTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { r.deviceTypeIdN = &deviceTypeIdN return r } -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeId(devicetypeId []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimModuleBayTemplatesListRequest) DevicetypeIdN(devicetypeIdN []int32) ApiDcimModuleBayTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimModuleBayTemplatesListRequest) Id(id []int32) ApiDcimModuleBayTemplatesListRequest { r.id = &id return r @@ -58734,6 +62301,18 @@ func (r ApiDcimModuleBayTemplatesListRequest) ModifiedByRequest(modifiedByReques return r } +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeId(moduleTypeId []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeId = &moduleTypeId + return r +} + +// Module type (ID) +func (r ApiDcimModuleBayTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int32) ApiDcimModuleBayTemplatesListRequest { + r.moduleTypeIdN = &moduleTypeIdN + return r +} + func (r ApiDcimModuleBayTemplatesListRequest) Name(name []string) ApiDcimModuleBayTemplatesListRequest { r.name = &name return r @@ -59123,28 +62702,6 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -59410,6 +62967,28 @@ func (a *DcimAPIService) DcimModuleBayTemplatesListExecute(r ApiDcimModuleBayTem if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } + if r.moduleTypeId != nil { + t := *r.moduleTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id", t, "multi") + } + } + if r.moduleTypeIdN != nil { + t := *r.moduleTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -60709,6 +64288,21 @@ type ApiDcimModuleBaysListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -60746,6 +64340,8 @@ type ApiDcimModuleBaysListRequest struct { locationId *[]int32 locationIdN *[]int32 modifiedByRequest *string + moduleId *[]*int32 + moduleIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -60759,6 +64355,8 @@ type ApiDcimModuleBaysListRequest struct { nameNisw *[]string offset *int32 ordering *string + parentId *[]*int32 + parentIdN *[]*int32 position *[]string positionEmpty *bool positionIc *[]string @@ -60775,20 +64373,16 @@ type ApiDcimModuleBaysListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -60919,6 +64513,94 @@ func (r ApiDcimModuleBaysListRequest) DeviceIdN(deviceIdN []int32) ApiDcimModule return r } +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRole(deviceRole []string) ApiDcimModuleBaysListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimModuleBaysListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimModuleBaysListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimModuleBaysListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimModuleBaysListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatus(deviceStatus []string) ApiDcimModuleBaysListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimModuleBaysListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimModuleBaysListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimModuleBaysListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimModuleBaysListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimModuleBaysListRequest) DeviceType(deviceType []string) ApiDcimModuleBaysListRequest { r.deviceType = &deviceType @@ -61115,6 +64797,18 @@ func (r ApiDcimModuleBaysListRequest) ModifiedByRequest(modifiedByRequest string return r } +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleId(moduleId []*int32) ApiDcimModuleBaysListRequest { + r.moduleId = &moduleId + return r +} + +// Module (ID) +func (r ApiDcimModuleBaysListRequest) ModuleIdN(moduleIdN []*int32) ApiDcimModuleBaysListRequest { + r.moduleIdN = &moduleIdN + return r +} + func (r ApiDcimModuleBaysListRequest) Name(name []string) ApiDcimModuleBaysListRequest { r.name = &name return r @@ -61182,6 +64876,18 @@ func (r ApiDcimModuleBaysListRequest) Ordering(ordering string) ApiDcimModuleBay return r } +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentId(parentId []*int32) ApiDcimModuleBaysListRequest { + r.parentId = &parentId + return r +} + +// Parent module bay (ID) +func (r ApiDcimModuleBaysListRequest) ParentIdN(parentIdN []*int32) ApiDcimModuleBaysListRequest { + r.parentIdN = &parentIdN + return r +} + func (r ApiDcimModuleBaysListRequest) Position(position []string) ApiDcimModuleBaysListRequest { r.position = &position return r @@ -61267,54 +64973,26 @@ func (r ApiDcimModuleBaysListRequest) RackIdN(rackIdN []int32) ApiDcimModuleBays return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) Region(region []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) Region(region []string) ApiDcimModuleBaysListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimModuleBaysListRequest) RegionN(regionN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionN(regionN []string) ApiDcimModuleBaysListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionId(regionId []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionId(regionId []string) ApiDcimModuleBaysListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) RegionIdN(regionIdN []string) ApiDcimModuleBaysListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) Role(role []string) ApiDcimModuleBaysListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimModuleBaysListRequest) RoleN(roleN []string) ApiDcimModuleBaysListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleId(roleId []int32) ApiDcimModuleBaysListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimModuleBaysListRequest) RoleIdN(roleIdN []int32) ApiDcimModuleBaysListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimModuleBaysListRequest) Site(site []string) ApiDcimModuleBaysListRequest { r.site = &site @@ -61327,26 +65005,22 @@ func (r ApiDcimModuleBaysListRequest) SiteN(siteN []string) ApiDcimModuleBaysLis return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroup(siteGroup []string) ApiDcimModuleBaysListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupN(siteGroupN []string) ApiDcimModuleBaysListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupId(siteGroupId []string) ApiDcimModuleBaysListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimModuleBaysListRequest { +func (r ApiDcimModuleBaysListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimModuleBaysListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -61680,6 +65354,163 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62055,6 +65886,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } + if r.moduleId != nil { + t := *r.moduleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") + } + } + if r.moduleIdN != nil { + t := *r.moduleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") + } + } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62174,6 +66027,28 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } + if r.parentId != nil { + t := *r.parentId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id", t, "multi") + } + } + if r.parentIdN != nil { + t := *r.parentIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "parent_id__n", t, "multi") + } + } if r.position != nil { t := *r.position if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -62378,50 +66253,6 @@ func (a *DcimAPIService) DcimModuleBaysListExecute(r ApiDcimModuleBaysListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -63617,6 +67448,7 @@ func (a *DcimAPIService) DcimModuleTypesDestroyExecute(r ApiDcimModuleTypesDestr type ApiDcimModuleTypesListRequest struct { ctx context.Context ApiService *DcimAPIService + airflow *DcimModuleTypesListAirflowParameter consolePorts *bool consoleServerPorts *bool created *[]time.Time @@ -63698,7 +67530,12 @@ type ApiDcimModuleTypesListRequest struct { weightLte *[]float64 weightN *[]float64 weightUnit *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive +func (r ApiDcimModuleTypesListRequest) Airflow(airflow DcimModuleTypesListAirflowParameter) ApiDcimModuleTypesListRequest { + r.airflow = &airflow + return r } // Has console ports @@ -64121,12 +67958,6 @@ func (r ApiDcimModuleTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesList return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimModuleTypesListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimModuleTypesListRequest { - r.weightUnitN = &weightUnitN - return r -} - func (r ApiDcimModuleTypesListRequest) Execute() (*PaginatedModuleTypeList, *http.Response, error) { return r.ApiService.DcimModuleTypesListExecute(r) } @@ -64168,6 +67999,9 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + } if r.consolePorts != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "console_ports", r.consolePorts, "") } @@ -64907,9 +68741,6 @@ func (a *DcimAPIService) DcimModuleTypesListExecute(r ApiDcimModuleTypesListRequ if r.weightUnit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -66000,8 +69831,8 @@ type ApiDcimModulesListRequest struct { manufacturerId *[]int32 manufacturerIdN *[]int32 modifiedByRequest *string - moduleBayId *[]int32 - moduleBayIdN *[]int32 + moduleBayId *[]string + moduleBayIdN *[]string moduleType *[]string moduleTypeN *[]string moduleTypeId *[]int32 @@ -66021,7 +69852,16 @@ type ApiDcimModulesListRequest struct { serialNiew *[]string serialNisw *[]string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimModulesListStatusIcParameterInner + statusIe *[]DcimModulesListStatusIcParameterInner + statusIew *[]DcimModulesListStatusIcParameterInner + statusIsw *[]DcimModulesListStatusIcParameterInner + statusN *[]DcimModulesListStatusIcParameterInner + statusNic *[]DcimModulesListStatusIcParameterInner + statusNie *[]DcimModulesListStatusIcParameterInner + statusNiew *[]DcimModulesListStatusIcParameterInner + statusNisw *[]DcimModulesListStatusIcParameterInner tag *[]string tagN *[]string updatedByRequest *string @@ -66294,14 +70134,12 @@ func (r ApiDcimModulesListRequest) ModifiedByRequest(modifiedByRequest string) A return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []int32) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) ModuleBayId(moduleBayId []string) ApiDcimModulesListRequest { r.moduleBayId = &moduleBayId return r } -// Module Bay (ID) -func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []int32) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) ModuleBayIdN(moduleBayIdN []string) ApiDcimModulesListRequest { r.moduleBayIdN = &moduleBayIdN return r } @@ -66408,11 +70246,65 @@ func (r ApiDcimModulesListRequest) Status(status []string) ApiDcimModulesListReq return r } -func (r ApiDcimModulesListRequest) StatusN(statusN []string) ApiDcimModulesListRequest { +func (r ApiDcimModulesListRequest) StatusEmpty(statusEmpty bool) ApiDcimModulesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusIc(statusIc []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusIc = &statusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusIe(statusIe []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusIe = &statusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusIew(statusIew []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusIew = &statusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusIsw(statusIsw []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusN(statusN []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { r.statusN = &statusN return r } +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusNic(statusNic []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusNic = &statusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusNie(statusNie []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusNie = &statusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusNiew(statusNiew []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiDcimModulesListRequest) StatusNisw(statusNisw []DcimModulesListStatusIcParameterInner) ApiDcimModulesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimModulesListRequest) Tag(tag []string) ApiDcimModulesListRequest { r.tag = &tag return r @@ -67192,6 +71084,53 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -67203,6 +71142,50 @@ func (a *DcimAPIService) DcimModulesListExecute(r ApiDcimModulesListRequest) (*P parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -70466,7 +74449,6 @@ type ApiDcimPowerFeedsListRequest struct { availablePowerLte *[]int32 availablePowerN *[]int32 cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -70529,40 +74511,46 @@ type ApiDcimPowerFeedsListRequest struct { offset *int32 ordering *string phase *DcimPowerFeedsListPhaseParameter - phaseN *DcimPowerFeedsListPhaseParameter powerPanelId *[]int32 powerPanelIdN *[]int32 q *string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimPowerFeedsListStatusIcParameterInner + statusIe *[]DcimPowerFeedsListStatusIcParameterInner + statusIew *[]DcimPowerFeedsListStatusIcParameterInner + statusIsw *[]DcimPowerFeedsListStatusIcParameterInner + statusN *[]DcimPowerFeedsListStatusIcParameterInner + statusNic *[]DcimPowerFeedsListStatusIcParameterInner + statusNie *[]DcimPowerFeedsListStatusIcParameterInner + statusNiew *[]DcimPowerFeedsListStatusIcParameterInner + statusNisw *[]DcimPowerFeedsListStatusIcParameterInner supply *DcimPowerFeedsListSupplyParameter - supplyN *DcimPowerFeedsListSupplyParameter tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *DcimPowerFeedsListTypeParameter - typeN *DcimPowerFeedsListTypeParameter updatedByRequest *string voltage *[]int32 voltageEmpty *bool @@ -70649,12 +74637,6 @@ func (r ApiDcimPowerFeedsListRequest) CableEnd(cableEnd CircuitsCircuitTerminati return r } -// * `A` - A * `B` - B -func (r ApiDcimPowerFeedsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerFeedsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimPowerFeedsListRequest) CableId(cableId []*int32) ApiDcimPowerFeedsListRequest { r.cableId = &cableId @@ -70971,12 +74953,6 @@ func (r ApiDcimPowerFeedsListRequest) Phase(phase DcimPowerFeedsListPhaseParamet return r } -// * `single-phase` - Single phase * `three-phase` - Three-phase -func (r ApiDcimPowerFeedsListRequest) PhaseN(phaseN DcimPowerFeedsListPhaseParameter) ApiDcimPowerFeedsListRequest { - r.phaseN = &phaseN - return r -} - // Power panel (ID) func (r ApiDcimPowerFeedsListRequest) PowerPanelId(powerPanelId []int32) ApiDcimPowerFeedsListRequest { r.powerPanelId = &powerPanelId @@ -71007,26 +74983,22 @@ func (r ApiDcimPowerFeedsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerFeeds return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) Region(region []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) Region(region []string) ApiDcimPowerFeedsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionN(regionN []string) ApiDcimPowerFeedsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionId(regionId []string) ApiDcimPowerFeedsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerFeedsListRequest { r.regionIdN = ®ionIdN return r } @@ -71043,26 +75015,22 @@ func (r ApiDcimPowerFeedsListRequest) SiteN(siteN []string) ApiDcimPowerFeedsLis return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerFeedsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerFeedsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerFeedsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerFeedsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -71084,20 +75052,68 @@ func (r ApiDcimPowerFeedsListRequest) Status(status []string) ApiDcimPowerFeedsL return r } -func (r ApiDcimPowerFeedsListRequest) StatusN(statusN []string) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) StatusEmpty(statusEmpty bool) ApiDcimPowerFeedsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusIc(statusIc []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusIc = &statusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusIe(statusIe []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusIe = &statusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusIew(statusIew []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusIew = &statusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusIsw(statusIsw []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusN(statusN []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { r.statusN = &statusN return r } -// * `ac` - AC * `dc` - DC -func (r ApiDcimPowerFeedsListRequest) Supply(supply DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest { - r.supply = &supply +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusNic(statusNic []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusNic = &statusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusNie(statusNie []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusNie = &statusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusNiew(statusNiew []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed +func (r ApiDcimPowerFeedsListRequest) StatusNisw(statusNisw []DcimPowerFeedsListStatusIcParameterInner) ApiDcimPowerFeedsListRequest { + r.statusNisw = &statusNisw return r } // * `ac` - AC * `dc` - DC -func (r ApiDcimPowerFeedsListRequest) SupplyN(supplyN DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest { - r.supplyN = &supplyN +func (r ApiDcimPowerFeedsListRequest) Supply(supply DcimPowerFeedsListSupplyParameter) ApiDcimPowerFeedsListRequest { + r.supply = &supply return r } @@ -71123,26 +75139,22 @@ func (r ApiDcimPowerFeedsListRequest) TenantN(tenantN []string) ApiDcimPowerFeed return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroup(tenantGroup []string) ApiDcimPowerFeedsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimPowerFeedsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimPowerFeedsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimPowerFeedsListRequest { +func (r ApiDcimPowerFeedsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimPowerFeedsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -71165,12 +75177,6 @@ func (r ApiDcimPowerFeedsListRequest) Type_(type_ DcimPowerFeedsListTypeParamete return r } -// * `primary` - Primary * `redundant` - Redundant -func (r ApiDcimPowerFeedsListRequest) TypeN(typeN DcimPowerFeedsListTypeParameter) ApiDcimPowerFeedsListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimPowerFeedsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerFeedsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -71393,9 +75399,6 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -71966,9 +75969,6 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if r.phase != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "phase", r.phase, "") } - if r.phaseN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "phase__n", r.phaseN, "") - } if r.powerPanelId != nil { t := *r.powerPanelId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -72159,6 +76159,53 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -72170,12 +76217,53 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.supply != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "supply", r.supply, "") } - if r.supplyN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "supply__n", r.supplyN, "") - } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -72289,9 +76377,6 @@ func (a *DcimAPIService) DcimPowerFeedsListExecute(r ApiDcimPowerFeedsListReques if r.type_ != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") } - if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -73541,10 +77626,17 @@ type ApiDcimPowerOutletTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 feedLeg *[]string - feedLegN *[]string + feedLegEmpty *bool + feedLegIc *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegIe *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegIew *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegIsw *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegN *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNic *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNie *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNiew *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNisw *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner id *[]int32 idEmpty *bool idGt *[]int32 @@ -73574,8 +77666,6 @@ type ApiDcimPowerOutletTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -73593,7 +77683,6 @@ type ApiDcimPowerOutletTemplatesListRequest struct { powerPortIdN *[]*int32 q *string type_ *DcimPowerOutletTemplatesListTypeParameter - typeN *DcimPowerOutletTemplatesListTypeParameter updatedByRequest *string } @@ -73704,30 +77793,71 @@ func (r ApiDcimPowerOutletTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*i return r } -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeId = &devicetypeId +// Phase (for three-phase feeds) +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletTemplatesListRequest { + r.feedLeg = &feedLeg return r } -// Device type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegEmpty(feedLegEmpty bool) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegEmpty = &feedLegEmpty return r } -// Phase (for three-phase feeds) -func (r ApiDcimPowerOutletTemplatesListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOutletTemplatesListRequest { - r.feedLeg = &feedLeg +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIc(feedLegIc []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIc = &feedLegIc return r } -// Phase (for three-phase feeds) -func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegN(feedLegN []string) ApiDcimPowerOutletTemplatesListRequest { +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIe(feedLegIe []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIe = &feedLegIe + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIew(feedLegIew []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIew = &feedLegIew + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegIsw(feedLegIsw []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegIsw = &feedLegIsw + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegN(feedLegN []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { r.feedLegN = &feedLegN return r } +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNic(feedLegNic []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNic = &feedLegNic + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNie(feedLegNie []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNie = &feedLegNie + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNiew(feedLegNiew []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNiew = &feedLegNiew + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletTemplatesListRequest) FeedLegNisw(feedLegNisw []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletTemplatesListRequest { + r.feedLegNisw = &feedLegNisw + return r +} + func (r ApiDcimPowerOutletTemplatesListRequest) Id(id []int32) ApiDcimPowerOutletTemplatesListRequest { r.id = &id return r @@ -73876,18 +78006,6 @@ func (r ApiDcimPowerOutletTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*i return r } -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerOutletTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerOutletTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimPowerOutletTemplatesListRequest) Name(name []string) ApiDcimPowerOutletTemplatesListRequest { r.name = &name return r @@ -73973,18 +78091,12 @@ func (r ApiDcimPowerOutletTemplatesListRequest) Q(q string) ApiDcimPowerOutletTe return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('eaton-c39', 'Eaton C39'), ('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerOutletTemplatesListRequest) Type_(type_ DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] -func (r ApiDcimPowerOutletTemplatesListRequest) TypeN(typeN DcimPowerOutletTemplatesListTypeParameter) ApiDcimPowerOutletTemplatesListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimPowerOutletTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerOutletTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -74246,37 +78358,62 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId + if r.feedLeg != nil { + t := *r.feedLeg if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") } } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN + if r.feedLegEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__empty", r.feedLegEmpty, "") + } + if r.feedLegIc != nil { + t := *r.feedLegIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", t, "multi") } } - if r.feedLeg != nil { - t := *r.feedLeg + if r.feedLegIe != nil { + t := *r.feedLegIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", t, "multi") + } + } + if r.feedLegIew != nil { + t := *r.feedLegIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", t, "multi") + } + } + if r.feedLegIsw != nil { + t := *r.feedLegIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", t, "multi") } } if r.feedLegN != nil { @@ -74290,6 +78427,50 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "multi") } } + if r.feedLegNic != nil { + t := *r.feedLegNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", t, "multi") + } + } + if r.feedLegNie != nil { + t := *r.feedLegNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", t, "multi") + } + } + if r.feedLegNiew != nil { + t := *r.feedLegNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", t, "multi") + } + } + if r.feedLegNisw != nil { + t := *r.feedLegNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -74577,28 +78758,6 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -74746,9 +78905,6 @@ func (a *DcimAPIService) DcimPowerOutletTemplatesListExecute(r ApiDcimPowerOutle if r.type_ != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") } - if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -75791,7 +79947,6 @@ type ApiDcimPowerOutletsListRequest struct { ctx context.Context ApiService *DcimAPIService cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -75819,12 +79974,36 @@ type ApiDcimPowerOutletsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 deviceTypeIdN *[]int32 feedLeg *[]string - feedLegN *[]string + feedLegEmpty *bool + feedLegIc *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegIe *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegIew *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegIsw *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegN *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNic *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNie *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNiew *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner + feedLegNisw *[]DcimPowerOutletTemplatesListFeedLegIcParameterInner id *[]int32 idEmpty *bool idGt *[]int32 @@ -75880,26 +80059,31 @@ type ApiDcimPowerOutletsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimPowerOutletsListTypeIcParameterInner + typeIe *[]DcimPowerOutletsListTypeIcParameterInner + typeIew *[]DcimPowerOutletsListTypeIcParameterInner + typeIsw *[]DcimPowerOutletsListTypeIcParameterInner + typeN *[]DcimPowerOutletsListTypeIcParameterInner + typeNic *[]DcimPowerOutletsListTypeIcParameterInner + typeNie *[]DcimPowerOutletsListTypeIcParameterInner + typeNiew *[]DcimPowerOutletsListTypeIcParameterInner + typeNisw *[]DcimPowerOutletsListTypeIcParameterInner updatedByRequest *string virtualChassis *[]string virtualChassisN *[]string @@ -75913,12 +80097,6 @@ func (r ApiDcimPowerOutletsListRequest) CableEnd(cableEnd CircuitsCircuitTermina return r } -// * `A` - A * `B` - B -func (r ApiDcimPowerOutletsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerOutletsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimPowerOutletsListRequest) CableId(cableId []*int32) ApiDcimPowerOutletsListRequest { r.cableId = &cableId @@ -76060,6 +80238,94 @@ func (r ApiDcimPowerOutletsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowe return r } +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerOutletsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerOutletsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerOutletsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerOutletsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerOutletsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerOutletsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimPowerOutletsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerOutletsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerOutletsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimPowerOutletsListRequest) DeviceType(deviceType []string) ApiDcimPowerOutletsListRequest { r.deviceType = &deviceType @@ -76090,12 +80356,65 @@ func (r ApiDcimPowerOutletsListRequest) FeedLeg(feedLeg []string) ApiDcimPowerOu return r } -// Phase (for three-phase feeds) -func (r ApiDcimPowerOutletsListRequest) FeedLegN(feedLegN []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) FeedLegEmpty(feedLegEmpty bool) ApiDcimPowerOutletsListRequest { + r.feedLegEmpty = &feedLegEmpty + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegIc(feedLegIc []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegIc = &feedLegIc + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegIe(feedLegIe []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegIe = &feedLegIe + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegIew(feedLegIew []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegIew = &feedLegIew + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegIsw(feedLegIsw []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegIsw = &feedLegIsw + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegN(feedLegN []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { r.feedLegN = &feedLegN return r } +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegNic(feedLegNic []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegNic = &feedLegNic + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegNie(feedLegNie []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegNie = &feedLegNie + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegNiew(feedLegNiew []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegNiew = &feedLegNiew + return r +} + +// Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C +func (r ApiDcimPowerOutletsListRequest) FeedLegNisw(feedLegNisw []DcimPowerOutletTemplatesListFeedLegIcParameterInner) ApiDcimPowerOutletsListRequest { + r.feedLegNisw = &feedLegNisw + return r +} + func (r ApiDcimPowerOutletsListRequest) Id(id []int32) ApiDcimPowerOutletsListRequest { r.id = &id return r @@ -76387,54 +80706,26 @@ func (r ApiDcimPowerOutletsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerOut return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) Region(region []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) Region(region []string) ApiDcimPowerOutletsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionN(regionN []string) ApiDcimPowerOutletsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionId(regionId []string) ApiDcimPowerOutletsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerOutletsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) Role(role []string) ApiDcimPowerOutletsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimPowerOutletsListRequest) RoleN(roleN []string) ApiDcimPowerOutletsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleId(roleId []int32) ApiDcimPowerOutletsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerOutletsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerOutletsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimPowerOutletsListRequest) Site(site []string) ApiDcimPowerOutletsListRequest { r.site = &site @@ -76447,26 +80738,22 @@ func (r ApiDcimPowerOutletsListRequest) SiteN(siteN []string) ApiDcimPowerOutlet return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerOutletsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerOutletsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerOutletsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerOutletsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -76499,12 +80786,65 @@ func (r ApiDcimPowerOutletsListRequest) Type_(type_ []string) ApiDcimPowerOutlet return r } -// Physical port type -func (r ApiDcimPowerOutletsListRequest) TypeN(typeN []string) ApiDcimPowerOutletsListRequest { +func (r ApiDcimPowerOutletsListRequest) TypeEmpty(typeEmpty bool) ApiDcimPowerOutletsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeIc(typeIc []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeIe(typeIe []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeIew(typeIew []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeIsw(typeIsw []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeN(typeN []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { r.typeN = &typeN return r } +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeNic(typeNic []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeNie(typeNie []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeNiew(typeNiew []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerOutletsListRequest) TypeNisw(typeNisw []DcimPowerOutletsListTypeIcParameterInner) ApiDcimPowerOutletsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimPowerOutletsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerOutletsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -76578,9 +80918,6 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -76846,6 +81183,163 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -76901,6 +81395,53 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg", t, "multi") } } + if r.feedLegEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__empty", r.feedLegEmpty, "") + } + if r.feedLegIc != nil { + t := *r.feedLegIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ic", t, "multi") + } + } + if r.feedLegIe != nil { + t := *r.feedLegIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__ie", t, "multi") + } + } + if r.feedLegIew != nil { + t := *r.feedLegIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__iew", t, "multi") + } + } + if r.feedLegIsw != nil { + t := *r.feedLegIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__isw", t, "multi") + } + } if r.feedLegN != nil { t := *r.feedLegN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -76912,6 +81453,50 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__n", t, "multi") } } + if r.feedLegNic != nil { + t := *r.feedLegNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nic", t, "multi") + } + } + if r.feedLegNie != nil { + t := *r.feedLegNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nie", t, "multi") + } + } + if r.feedLegNiew != nil { + t := *r.feedLegNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__niew", t, "multi") + } + } + if r.feedLegNisw != nil { + t := *r.feedLegNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "feed_leg__nisw", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -77481,50 +82066,6 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -77646,6 +82187,53 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -77657,6 +82245,50 @@ func (a *DcimAPIService) DcimPowerOutletsListExecute(r ApiDcimPowerOutletsListRe parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -78862,8 +83494,8 @@ type ApiDcimPowerPanelsListRequest struct { ApiService *DcimAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -78900,8 +83532,8 @@ type ApiDcimPowerPanelsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - locationId *[]int32 - locationIdN *[]int32 + locationId *[]string + locationIdN *[]string modifiedByRequest *string name *[]string nameEmpty *bool @@ -78917,16 +83549,16 @@ type ApiDcimPowerPanelsListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -78946,14 +83578,12 @@ func (r ApiDcimPowerPanelsListRequest) ContactN(contactN []int32) ApiDcimPowerPa return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) ContactGroup(contactGroup []string) ApiDcimPowerPanelsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) ContactGroupN(contactGroupN []string) ApiDcimPowerPanelsListRequest { r.contactGroupN = &contactGroupN return r } @@ -79141,14 +83771,12 @@ func (r ApiDcimPowerPanelsListRequest) Limit(limit int32) ApiDcimPowerPanelsList return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationId(locationId []string) ApiDcimPowerPanelsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) LocationIdN(locationIdN []string) ApiDcimPowerPanelsListRequest { r.locationIdN = &locationIdN return r } @@ -79231,26 +83859,22 @@ func (r ApiDcimPowerPanelsListRequest) Q(q string) ApiDcimPowerPanelsListRequest return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) Region(region []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) Region(region []string) ApiDcimPowerPanelsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionN(regionN []string) ApiDcimPowerPanelsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionId(regionId []string) ApiDcimPowerPanelsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPanelsListRequest { r.regionIdN = ®ionIdN return r } @@ -79267,26 +83891,22 @@ func (r ApiDcimPowerPanelsListRequest) SiteN(siteN []string) ApiDcimPowerPanelsL return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPanelsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPanelsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPanelsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPanelsListRequest { +func (r ApiDcimPowerPanelsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPanelsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -81137,8 +85757,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -81175,8 +85793,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -81192,7 +85808,6 @@ type ApiDcimPowerPortTemplatesListRequest struct { ordering *string q *string type_ *DcimPowerPortTemplatesListTypeParameter - typeN *DcimPowerPortTemplatesListTypeParameter updatedByRequest *string } @@ -81338,18 +85953,6 @@ func (r ApiDcimPowerPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int return r } -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) Id(id []int32) ApiDcimPowerPortTemplatesListRequest { r.id = &id return r @@ -81533,18 +86136,6 @@ func (r ApiDcimPowerPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int return r } -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimPowerPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimPowerPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) Name(name []string) ApiDcimPowerPortTemplatesListRequest { r.name = &name return r @@ -81618,18 +86209,12 @@ func (r ApiDcimPowerPortTemplatesListRequest) Q(q string) ApiDcimPowerPortTempla return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] +// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] func (r ApiDcimPowerPortTemplatesListRequest) Type_(type_ DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { r.type_ = &type_ return r } -// * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] -func (r ApiDcimPowerPortTemplatesListRequest) TypeN(typeN DcimPowerPortTemplatesListTypeParameter) ApiDcimPowerPortTemplatesListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimPowerPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -81960,28 +86545,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -82338,28 +86901,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -82485,9 +87026,6 @@ func (a *DcimAPIService) DcimPowerPortTemplatesListExecute(r ApiDcimPowerPortTem if r.type_ != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "type", r.type_, "") } - if r.typeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", r.typeN, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -83537,7 +88075,6 @@ type ApiDcimPowerPortsListRequest struct { allocatedDrawLte *[]int32 allocatedDrawN *[]int32 cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -83565,6 +88102,21 @@ type ApiDcimPowerPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -83629,26 +88181,31 @@ type ApiDcimPowerPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimPowerPortsListTypeIcParameterInner + typeIe *[]DcimPowerPortsListTypeIcParameterInner + typeIew *[]DcimPowerPortsListTypeIcParameterInner + typeIsw *[]DcimPowerPortsListTypeIcParameterInner + typeN *[]DcimPowerPortsListTypeIcParameterInner + typeNic *[]DcimPowerPortsListTypeIcParameterInner + typeNie *[]DcimPowerPortsListTypeIcParameterInner + typeNiew *[]DcimPowerPortsListTypeIcParameterInner + typeNisw *[]DcimPowerPortsListTypeIcParameterInner updatedByRequest *string virtualChassis *[]string virtualChassisN *[]string @@ -83697,12 +88254,6 @@ func (r ApiDcimPowerPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminati return r } -// * `A` - A * `B` - B -func (r ApiDcimPowerPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimPowerPortsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimPowerPortsListRequest) CableId(cableId []*int32) ApiDcimPowerPortsListRequest { r.cableId = &cableId @@ -83844,6 +88395,94 @@ func (r ApiDcimPowerPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimPowerP return r } +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRole(deviceRole []string) ApiDcimPowerPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimPowerPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimPowerPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimPowerPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimPowerPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimPowerPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimPowerPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimPowerPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimPowerPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimPowerPortsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimPowerPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimPowerPortsListRequest) DeviceType(deviceType []string) ApiDcimPowerPortsListRequest { r.deviceType = &deviceType @@ -84182,54 +88821,26 @@ func (r ApiDcimPowerPortsListRequest) RackIdN(rackIdN []int32) ApiDcimPowerPorts return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) Region(region []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) Region(region []string) ApiDcimPowerPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimPowerPortsListRequest) RegionN(regionN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionN(regionN []string) ApiDcimPowerPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionId(regionId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionId(regionId []string) ApiDcimPowerPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) RegionIdN(regionIdN []string) ApiDcimPowerPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) Role(role []string) ApiDcimPowerPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimPowerPortsListRequest) RoleN(roleN []string) ApiDcimPowerPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) RoleId(roleId []int32) ApiDcimPowerPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimPowerPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimPowerPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimPowerPortsListRequest) Site(site []string) ApiDcimPowerPortsListRequest { r.site = &site @@ -84242,26 +88853,22 @@ func (r ApiDcimPowerPortsListRequest) SiteN(siteN []string) ApiDcimPowerPortsLis return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroup(siteGroup []string) ApiDcimPowerPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimPowerPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimPowerPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimPowerPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -84294,12 +88901,65 @@ func (r ApiDcimPowerPortsListRequest) Type_(type_ []string) ApiDcimPowerPortsLis return r } -// Physical port type -func (r ApiDcimPowerPortsListRequest) TypeN(typeN []string) ApiDcimPowerPortsListRequest { +func (r ApiDcimPowerPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimPowerPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeIc(typeIc []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeIc = &typeIc + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeIe(typeIe []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeIe = &typeIe + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeIew(typeIew []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeIew = &typeIew + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeIsw(typeIsw []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeN(typeN []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { r.typeN = &typeN return r } +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeNic(typeNic []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeNic = &typeNic + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeNie(typeNie []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeNie = &typeNie + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeNiew(typeNiew []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +func (r ApiDcimPowerPortsListRequest) TypeNisw(typeNisw []DcimPowerPortsListTypeIcParameterInner) ApiDcimPowerPortsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimPowerPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimPowerPortsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -84442,9 +89102,6 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -84710,6 +89367,163 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -85370,50 +90184,6 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -85535,6 +90305,53 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -85546,6 +90363,50 @@ func (a *DcimAPIService) DcimPowerPortsListExecute(r ApiDcimPowerPortsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -86783,36 +91644,36 @@ type ApiDcimRackReservationsListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string modifiedByRequest *string offset *int32 ordering *string q *string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 unit *float32 @@ -86994,26 +91855,22 @@ func (r ApiDcimRackReservationsListRequest) Limit(limit int32) ApiDcimRackReserv return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) Location(location []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) Location(location []string) ApiDcimRackReservationsListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRackReservationsListRequest) LocationN(locationN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationN(locationN []string) ApiDcimRackReservationsListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationId(locationId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationId(locationId []string) ApiDcimRackReservationsListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) LocationIdN(locationIdN []string) ApiDcimRackReservationsListRequest { r.locationIdN = &locationIdN return r } @@ -87053,26 +91910,22 @@ func (r ApiDcimRackReservationsListRequest) RackIdN(rackIdN []int32) ApiDcimRack return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) Region(region []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) Region(region []string) ApiDcimRackReservationsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRackReservationsListRequest) RegionN(regionN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionN(regionN []string) ApiDcimRackReservationsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionId(regionId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionId(regionId []string) ApiDcimRackReservationsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) RegionIdN(regionIdN []string) ApiDcimRackReservationsListRequest { r.regionIdN = ®ionIdN return r } @@ -87089,26 +91942,22 @@ func (r ApiDcimRackReservationsListRequest) SiteN(siteN []string) ApiDcimRackRes return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroup(siteGroup []string) ApiDcimRackReservationsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRackReservationsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRackReservationsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRackReservationsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -87147,26 +91996,22 @@ func (r ApiDcimRackReservationsListRequest) TenantN(tenantN []string) ApiDcimRac return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroup(tenantGroup []string) ApiDcimRackReservationsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRackReservationsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRackReservationsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRackReservationsListRequest { +func (r ApiDcimRackReservationsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRackReservationsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -90411,27 +95256,3341 @@ func (a *DcimAPIService) DcimRackRolesPartialUpdateExecute(r ApiDcimRackRolesPar return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesRetrieveRequest struct { +type ApiDcimRackRolesRetrieveRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 +} + +func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesRetrieveExecute(r) +} + +/* +DcimRackRolesRetrieve Method for DcimRackRolesRetrieve + +Get a rack role object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesRetrieveRequest +*/ +func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { + return ApiDcimRackRolesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackRolesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + rackRoleRequest *RackRoleRequest +} + +func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { + r.rackRoleRequest = &rackRoleRequest + return r +} + +func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { + return r.ApiService.DcimRackRolesUpdateExecute(r) +} + +/* +DcimRackRolesUpdate Method for DcimRackRolesUpdate + +Put a rack role object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack role. + @return ApiDcimRackRolesUpdateRequest +*/ +func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { + return ApiDcimRackRolesUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackRole +func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackRole + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackRoleRequest == nil { + return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackRoleRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkDestroyRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkDestroyRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkDestroyRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesBulkDestroyExecute(r) +} + +/* +DcimRackTypesBulkDestroy Method for DcimRackTypesBulkDestroy + +Delete a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkDestroyRequest +*/ +func (a *DcimAPIService) DcimRackTypesBulkDestroy(ctx context.Context) ApiDcimRackTypesBulkDestroyRequest { + return ApiDcimRackTypesBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimRackTypesBulkDestroyExecute(r ApiDcimRackTypesBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return nil, reportError("rackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkPartialUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkPartialUpdateRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkPartialUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkPartialUpdateExecute(r) +} + +/* +DcimRackTypesBulkPartialUpdate Method for DcimRackTypesBulkPartialUpdate + +Patch a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkPartialUpdateRequest +*/ +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdate(ctx context.Context) ApiDcimRackTypesBulkPartialUpdateRequest { + return ApiDcimRackTypesBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkPartialUpdateExecute(r ApiDcimRackTypesBulkPartialUpdateRequest) ([]RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesBulkUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + rackTypeRequest *[]RackTypeRequest +} + +func (r ApiDcimRackTypesBulkUpdateRequest) RackTypeRequest(rackTypeRequest []RackTypeRequest) ApiDcimRackTypesBulkUpdateRequest { + r.rackTypeRequest = &rackTypeRequest + return r +} + +func (r ApiDcimRackTypesBulkUpdateRequest) Execute() ([]RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesBulkUpdateExecute(r) +} + +/* +DcimRackTypesBulkUpdate Method for DcimRackTypesBulkUpdate + +Put a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesBulkUpdateRequest +*/ +func (a *DcimAPIService) DcimRackTypesBulkUpdate(ctx context.Context) ApiDcimRackTypesBulkUpdateRequest { + return ApiDcimRackTypesBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []RackType +func (a *DcimAPIService) DcimRackTypesBulkUpdateExecute(r ApiDcimRackTypesBulkUpdateRequest) ([]RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.rackTypeRequest == nil { + return localVarReturnValue, nil, reportError("rackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.rackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesCreateRequest struct { + ctx context.Context + ApiService *DcimAPIService + writableRackTypeRequest *WritableRackTypeRequest +} + +func (r ApiDcimRackTypesCreateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesCreateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest + return r +} + +func (r ApiDcimRackTypesCreateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesCreateExecute(r) +} + +/* +DcimRackTypesCreate Method for DcimRackTypesCreate + +Post a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesCreateRequest +*/ +func (a *DcimAPIService) DcimRackTypesCreate(ctx context.Context) ApiDcimRackTypesCreateRequest { + return ApiDcimRackTypesCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return RackType +func (a *DcimAPIService) DcimRackTypesCreateExecute(r ApiDcimRackTypesCreateRequest) (*RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.writableRackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesDestroyRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 +} + +func (r ApiDcimRackTypesDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.DcimRackTypesDestroyExecute(r) +} + +/* +DcimRackTypesDestroy Method for DcimRackTypesDestroy + +Delete a rack type object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesDestroyRequest +*/ +func (a *DcimAPIService) DcimRackTypesDestroy(ctx context.Context, id int32) ApiDcimRackTypesDestroyRequest { + return ApiDcimRackTypesDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *DcimAPIService) DcimRackTypesDestroyExecute(r ApiDcimRackTypesDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiDcimRackTypesListRequest struct { + ctx context.Context + ApiService *DcimAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + descUnits *bool + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + formFactor *[]string + formFactorEmpty *bool + formFactorIc *[]DcimRackTypesListFormFactorIcParameterInner + formFactorIe *[]DcimRackTypesListFormFactorIcParameterInner + formFactorIew *[]DcimRackTypesListFormFactorIcParameterInner + formFactorIsw *[]DcimRackTypesListFormFactorIcParameterInner + formFactorN *[]DcimRackTypesListFormFactorIcParameterInner + formFactorNic *[]DcimRackTypesListFormFactorIcParameterInner + formFactorNie *[]DcimRackTypesListFormFactorIcParameterInner + formFactorNiew *[]DcimRackTypesListFormFactorIcParameterInner + formFactorNisw *[]DcimRackTypesListFormFactorIcParameterInner + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 + maxWeight *[]int32 + maxWeightEmpty *bool + maxWeightGt *[]int32 + maxWeightGte *[]int32 + maxWeightLt *[]int32 + maxWeightLte *[]int32 + maxWeightN *[]int32 + model *[]string + modelEmpty *bool + modelIc *[]string + modelIe *[]string + modelIew *[]string + modelIsw *[]string + modelN *[]string + modelNic *[]string + modelNie *[]string + modelNiew *[]string + modelNisw *[]string + modifiedByRequest *string + mountingDepth *[]int32 + mountingDepthEmpty *bool + mountingDepthGt *[]int32 + mountingDepthGte *[]int32 + mountingDepthLt *[]int32 + mountingDepthLte *[]int32 + mountingDepthN *[]int32 + offset *int32 + ordering *string + outerDepth *[]int32 + outerDepthEmpty *bool + outerDepthGt *[]int32 + outerDepthGte *[]int32 + outerDepthLt *[]int32 + outerDepthLte *[]int32 + outerDepthN *[]int32 + outerUnit *DcimRackTypesListOuterUnitParameter + outerWidth *[]int32 + outerWidthEmpty *bool + outerWidthGt *[]int32 + outerWidthGte *[]int32 + outerWidthLt *[]int32 + outerWidthLte *[]int32 + outerWidthN *[]int32 + q *string + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + startingUnit *[]int32 + startingUnitEmpty *bool + startingUnitGt *[]int32 + startingUnitGte *[]int32 + startingUnitLt *[]int32 + startingUnitLte *[]int32 + startingUnitN *[]int32 + tag *[]string + tagN *[]string + uHeight *[]int32 + uHeightEmpty *bool + uHeightGt *[]int32 + uHeightGte *[]int32 + uHeightLt *[]int32 + uHeightLte *[]int32 + uHeightN *[]int32 + updatedByRequest *string + weight *[]float64 + weightEmpty *bool + weightGt *[]float64 + weightGte *[]float64 + weightLt *[]float64 + weightLte *[]float64 + weightN *[]float64 + weightUnit *DcimDeviceTypesListWeightUnitParameter + width *[]int32 + widthIc *[]DcimRackTypesListWidthIcParameterInner + widthIe *[]DcimRackTypesListWidthIcParameterInner + widthIew *[]DcimRackTypesListWidthIcParameterInner + widthIsw *[]DcimRackTypesListWidthIcParameterInner + widthN *[]DcimRackTypesListWidthIcParameterInner + widthNic *[]DcimRackTypesListWidthIcParameterInner + widthNie *[]DcimRackTypesListWidthIcParameterInner + widthNiew *[]DcimRackTypesListWidthIcParameterInner + widthNisw *[]DcimRackTypesListWidthIcParameterInner +} + +func (r ApiDcimRackTypesListRequest) Created(created []time.Time) ApiDcimRackTypesListRequest { + r.created = &created + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedEmpty(createdEmpty []time.Time) ApiDcimRackTypesListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedGt(createdGt []time.Time) ApiDcimRackTypesListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedGte(createdGte []time.Time) ApiDcimRackTypesListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedLt(createdLt []time.Time) ApiDcimRackTypesListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedLte(createdLte []time.Time) ApiDcimRackTypesListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedN(createdN []time.Time) ApiDcimRackTypesListRequest { + r.createdN = &createdN + return r +} + +func (r ApiDcimRackTypesListRequest) CreatedByRequest(createdByRequest string) ApiDcimRackTypesListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) DescUnits(descUnits bool) ApiDcimRackTypesListRequest { + r.descUnits = &descUnits + return r +} + +func (r ApiDcimRackTypesListRequest) Description(description []string) ApiDcimRackTypesListRequest { + r.description = &description + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionEmpty(descriptionEmpty bool) ApiDcimRackTypesListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIc(descriptionIc []string) ApiDcimRackTypesListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIe(descriptionIe []string) ApiDcimRackTypesListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIew(descriptionIew []string) ApiDcimRackTypesListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionIsw(descriptionIsw []string) ApiDcimRackTypesListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionN(descriptionN []string) ApiDcimRackTypesListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNic(descriptionNic []string) ApiDcimRackTypesListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNie(descriptionNie []string) ApiDcimRackTypesListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNiew(descriptionNiew []string) ApiDcimRackTypesListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiDcimRackTypesListRequest) DescriptionNisw(descriptionNisw []string) ApiDcimRackTypesListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiDcimRackTypesListRequest) FormFactor(formFactor []string) ApiDcimRackTypesListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRackTypesListRequest) FormFactorEmpty(formFactorEmpty bool) ApiDcimRackTypesListRequest { + r.formFactorEmpty = &formFactorEmpty + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorIc(formFactorIc []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorIc = &formFactorIc + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorIe(formFactorIe []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorIe = &formFactorIe + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorIew(formFactorIew []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorIew = &formFactorIew + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorIsw(formFactorIsw []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorIsw = &formFactorIsw + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorN(formFactorN []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorN = &formFactorN + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorNic(formFactorNic []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorNic = &formFactorNic + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorNie(formFactorNie []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorNie = &formFactorNie + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorNiew(formFactorNiew []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorNiew = &formFactorNiew + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRackTypesListRequest) FormFactorNisw(formFactorNisw []DcimRackTypesListFormFactorIcParameterInner) ApiDcimRackTypesListRequest { + r.formFactorNisw = &formFactorNisw + return r +} + +func (r ApiDcimRackTypesListRequest) Id(id []int32) ApiDcimRackTypesListRequest { + r.id = &id + return r +} + +func (r ApiDcimRackTypesListRequest) IdEmpty(idEmpty bool) ApiDcimRackTypesListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) IdGt(idGt []int32) ApiDcimRackTypesListRequest { + r.idGt = &idGt + return r +} + +func (r ApiDcimRackTypesListRequest) IdGte(idGte []int32) ApiDcimRackTypesListRequest { + r.idGte = &idGte + return r +} + +func (r ApiDcimRackTypesListRequest) IdLt(idLt []int32) ApiDcimRackTypesListRequest { + r.idLt = &idLt + return r +} + +func (r ApiDcimRackTypesListRequest) IdLte(idLte []int32) ApiDcimRackTypesListRequest { + r.idLte = &idLte + return r +} + +func (r ApiDcimRackTypesListRequest) IdN(idN []int32) ApiDcimRackTypesListRequest { + r.idN = &idN + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdated(lastUpdated []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiDcimRackTypesListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiDcimRackTypesListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiDcimRackTypesListRequest) Limit(limit int32) ApiDcimRackTypesListRequest { + r.limit = &limit + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) Manufacturer(manufacturer []string) ApiDcimRackTypesListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRackTypesListRequest) ManufacturerN(manufacturerN []string) ApiDcimRackTypesListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRackTypesListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRackTypesListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRackTypesListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeight(maxWeight []int32) ApiDcimRackTypesListRequest { + r.maxWeight = &maxWeight + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightEmpty(maxWeightEmpty bool) ApiDcimRackTypesListRequest { + r.maxWeightEmpty = &maxWeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGt(maxWeightGt []int32) ApiDcimRackTypesListRequest { + r.maxWeightGt = &maxWeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightGte(maxWeightGte []int32) ApiDcimRackTypesListRequest { + r.maxWeightGte = &maxWeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLt(maxWeightLt []int32) ApiDcimRackTypesListRequest { + r.maxWeightLt = &maxWeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightLte(maxWeightLte []int32) ApiDcimRackTypesListRequest { + r.maxWeightLte = &maxWeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) MaxWeightN(maxWeightN []int32) ApiDcimRackTypesListRequest { + r.maxWeightN = &maxWeightN + return r +} + +func (r ApiDcimRackTypesListRequest) Model(model []string) ApiDcimRackTypesListRequest { + r.model = &model + return r +} + +func (r ApiDcimRackTypesListRequest) ModelEmpty(modelEmpty bool) ApiDcimRackTypesListRequest { + r.modelEmpty = &modelEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIc(modelIc []string) ApiDcimRackTypesListRequest { + r.modelIc = &modelIc + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIe(modelIe []string) ApiDcimRackTypesListRequest { + r.modelIe = &modelIe + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIew(modelIew []string) ApiDcimRackTypesListRequest { + r.modelIew = &modelIew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelIsw(modelIsw []string) ApiDcimRackTypesListRequest { + r.modelIsw = &modelIsw + return r +} + +func (r ApiDcimRackTypesListRequest) ModelN(modelN []string) ApiDcimRackTypesListRequest { + r.modelN = &modelN + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNic(modelNic []string) ApiDcimRackTypesListRequest { + r.modelNic = &modelNic + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNie(modelNie []string) ApiDcimRackTypesListRequest { + r.modelNie = &modelNie + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNiew(modelNiew []string) ApiDcimRackTypesListRequest { + r.modelNiew = &modelNiew + return r +} + +func (r ApiDcimRackTypesListRequest) ModelNisw(modelNisw []string) ApiDcimRackTypesListRequest { + r.modelNisw = &modelNisw + return r +} + +func (r ApiDcimRackTypesListRequest) ModifiedByRequest(modifiedByRequest string) ApiDcimRackTypesListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepth(mountingDepth []int32) ApiDcimRackTypesListRequest { + r.mountingDepth = &mountingDepth + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthEmpty(mountingDepthEmpty bool) ApiDcimRackTypesListRequest { + r.mountingDepthEmpty = &mountingDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGt(mountingDepthGt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGt = &mountingDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthGte(mountingDepthGte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthGte = &mountingDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLt(mountingDepthLt []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLt = &mountingDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthLte(mountingDepthLte []int32) ApiDcimRackTypesListRequest { + r.mountingDepthLte = &mountingDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) MountingDepthN(mountingDepthN []int32) ApiDcimRackTypesListRequest { + r.mountingDepthN = &mountingDepthN + return r +} + +// The initial index from which to return the results. +func (r ApiDcimRackTypesListRequest) Offset(offset int32) ApiDcimRackTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiDcimRackTypesListRequest) Ordering(ordering string) ApiDcimRackTypesListRequest { + r.ordering = &ordering + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepth(outerDepth []int32) ApiDcimRackTypesListRequest { + r.outerDepth = &outerDepth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthEmpty(outerDepthEmpty bool) ApiDcimRackTypesListRequest { + r.outerDepthEmpty = &outerDepthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGt(outerDepthGt []int32) ApiDcimRackTypesListRequest { + r.outerDepthGt = &outerDepthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthGte(outerDepthGte []int32) ApiDcimRackTypesListRequest { + r.outerDepthGte = &outerDepthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLt(outerDepthLt []int32) ApiDcimRackTypesListRequest { + r.outerDepthLt = &outerDepthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthLte(outerDepthLte []int32) ApiDcimRackTypesListRequest { + r.outerDepthLte = &outerDepthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRackTypesListRequest { + r.outerDepthN = &outerDepthN + return r +} + +// * `mm` - Millimeters * `in` - Inches +func (r ApiDcimRackTypesListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRackTypesListRequest { + r.outerUnit = &outerUnit + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidth(outerWidth []int32) ApiDcimRackTypesListRequest { + r.outerWidth = &outerWidth + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthEmpty(outerWidthEmpty bool) ApiDcimRackTypesListRequest { + r.outerWidthEmpty = &outerWidthEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGt(outerWidthGt []int32) ApiDcimRackTypesListRequest { + r.outerWidthGt = &outerWidthGt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthGte(outerWidthGte []int32) ApiDcimRackTypesListRequest { + r.outerWidthGte = &outerWidthGte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLt(outerWidthLt []int32) ApiDcimRackTypesListRequest { + r.outerWidthLt = &outerWidthLt + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthLte(outerWidthLte []int32) ApiDcimRackTypesListRequest { + r.outerWidthLte = &outerWidthLte + return r +} + +func (r ApiDcimRackTypesListRequest) OuterWidthN(outerWidthN []int32) ApiDcimRackTypesListRequest { + r.outerWidthN = &outerWidthN + return r +} + +// Search +func (r ApiDcimRackTypesListRequest) Q(q string) ApiDcimRackTypesListRequest { + r.q = &q + return r +} + +func (r ApiDcimRackTypesListRequest) Slug(slug []string) ApiDcimRackTypesListRequest { + r.slug = &slug + return r +} + +func (r ApiDcimRackTypesListRequest) SlugEmpty(slugEmpty bool) ApiDcimRackTypesListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIc(slugIc []string) ApiDcimRackTypesListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIe(slugIe []string) ApiDcimRackTypesListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIew(slugIew []string) ApiDcimRackTypesListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugIsw(slugIsw []string) ApiDcimRackTypesListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiDcimRackTypesListRequest) SlugN(slugN []string) ApiDcimRackTypesListRequest { + r.slugN = &slugN + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNic(slugNic []string) ApiDcimRackTypesListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNie(slugNie []string) ApiDcimRackTypesListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNiew(slugNiew []string) ApiDcimRackTypesListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiDcimRackTypesListRequest) SlugNisw(slugNisw []string) ApiDcimRackTypesListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnit(startingUnit []int32) ApiDcimRackTypesListRequest { + r.startingUnit = &startingUnit + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitEmpty(startingUnitEmpty bool) ApiDcimRackTypesListRequest { + r.startingUnitEmpty = &startingUnitEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGt(startingUnitGt []int32) ApiDcimRackTypesListRequest { + r.startingUnitGt = &startingUnitGt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitGte(startingUnitGte []int32) ApiDcimRackTypesListRequest { + r.startingUnitGte = &startingUnitGte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLt(startingUnitLt []int32) ApiDcimRackTypesListRequest { + r.startingUnitLt = &startingUnitLt + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitLte(startingUnitLte []int32) ApiDcimRackTypesListRequest { + r.startingUnitLte = &startingUnitLte + return r +} + +func (r ApiDcimRackTypesListRequest) StartingUnitN(startingUnitN []int32) ApiDcimRackTypesListRequest { + r.startingUnitN = &startingUnitN + return r +} + +func (r ApiDcimRackTypesListRequest) Tag(tag []string) ApiDcimRackTypesListRequest { + r.tag = &tag + return r +} + +func (r ApiDcimRackTypesListRequest) TagN(tagN []string) ApiDcimRackTypesListRequest { + r.tagN = &tagN + return r +} + +func (r ApiDcimRackTypesListRequest) UHeight(uHeight []int32) ApiDcimRackTypesListRequest { + r.uHeight = &uHeight + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightEmpty(uHeightEmpty bool) ApiDcimRackTypesListRequest { + r.uHeightEmpty = &uHeightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightGt(uHeightGt []int32) ApiDcimRackTypesListRequest { + r.uHeightGt = &uHeightGt + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightGte(uHeightGte []int32) ApiDcimRackTypesListRequest { + r.uHeightGte = &uHeightGte + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightLt(uHeightLt []int32) ApiDcimRackTypesListRequest { + r.uHeightLt = &uHeightLt + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightLte(uHeightLte []int32) ApiDcimRackTypesListRequest { + r.uHeightLte = &uHeightLte + return r +} + +func (r ApiDcimRackTypesListRequest) UHeightN(uHeightN []int32) ApiDcimRackTypesListRequest { + r.uHeightN = &uHeightN + return r +} + +func (r ApiDcimRackTypesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRackTypesListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiDcimRackTypesListRequest) Weight(weight []float64) ApiDcimRackTypesListRequest { + r.weight = &weight + return r +} + +func (r ApiDcimRackTypesListRequest) WeightEmpty(weightEmpty bool) ApiDcimRackTypesListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiDcimRackTypesListRequest) WeightGt(weightGt []float64) ApiDcimRackTypesListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiDcimRackTypesListRequest) WeightGte(weightGte []float64) ApiDcimRackTypesListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiDcimRackTypesListRequest) WeightLt(weightLt []float64) ApiDcimRackTypesListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiDcimRackTypesListRequest) WeightLte(weightLte []float64) ApiDcimRackTypesListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiDcimRackTypesListRequest) WeightN(weightN []float64) ApiDcimRackTypesListRequest { + r.weightN = &weightN + return r +} + +// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces +func (r ApiDcimRackTypesListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeightUnitParameter) ApiDcimRackTypesListRequest { + r.weightUnit = &weightUnit + return r +} + +// Rail-to-rail width +func (r ApiDcimRackTypesListRequest) Width(width []int32) ApiDcimRackTypesListRequest { + r.width = &width + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthIc(widthIc []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthIc = &widthIc + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthIe(widthIe []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthIe = &widthIe + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthIew(widthIew []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthIew = &widthIew + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthIsw(widthIsw []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthIsw = &widthIsw + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthN(widthN []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthN = &widthN + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthNic(widthNic []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthNic = &widthNic + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthNie(widthNie []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthNie = &widthNie + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthNiew(widthNiew []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthNiew = &widthNiew + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRackTypesListRequest) WidthNisw(widthNisw []DcimRackTypesListWidthIcParameterInner) ApiDcimRackTypesListRequest { + r.widthNisw = &widthNisw + return r +} + +func (r ApiDcimRackTypesListRequest) Execute() (*PaginatedRackTypeList, *http.Response, error) { + return r.ApiService.DcimRackTypesListExecute(r) +} + +/* +DcimRackTypesList Method for DcimRackTypesList + +Get a list of rack type objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiDcimRackTypesListRequest +*/ +func (a *DcimAPIService) DcimRackTypesList(ctx context.Context) ApiDcimRackTypesListRequest { + return ApiDcimRackTypesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedRackTypeList +func (a *DcimAPIService) DcimRackTypesListExecute(r ApiDcimRackTypesListRequest) (*PaginatedRackTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedRackTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.descUnits != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "desc_units", r.descUnits, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") + } + } + if r.formFactorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__empty", r.formFactorEmpty, "") + } + if r.formFactorIc != nil { + t := *r.formFactorIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", t, "multi") + } + } + if r.formFactorIe != nil { + t := *r.formFactorIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", t, "multi") + } + } + if r.formFactorIew != nil { + t := *r.formFactorIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", t, "multi") + } + } + if r.formFactorIsw != nil { + t := *r.formFactorIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", t, "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") + } + } + if r.formFactorNic != nil { + t := *r.formFactorNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", t, "multi") + } + } + if r.formFactorNie != nil { + t := *r.formFactorNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", t, "multi") + } + } + if r.formFactorNiew != nil { + t := *r.formFactorNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", t, "multi") + } + } + if r.formFactorNisw != nil { + t := *r.formFactorNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", t, "multi") + } + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + } + } + if r.maxWeight != nil { + t := *r.maxWeight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight", t, "multi") + } + } + if r.maxWeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__empty", r.maxWeightEmpty, "") + } + if r.maxWeightGt != nil { + t := *r.maxWeightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gt", t, "multi") + } + } + if r.maxWeightGte != nil { + t := *r.maxWeightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__gte", t, "multi") + } + } + if r.maxWeightLt != nil { + t := *r.maxWeightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lt", t, "multi") + } + } + if r.maxWeightLte != nil { + t := *r.maxWeightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__lte", t, "multi") + } + } + if r.maxWeightN != nil { + t := *r.maxWeightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "max_weight__n", t, "multi") + } + } + if r.model != nil { + t := *r.model + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", t, "multi") + } + } + if r.modelEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__empty", r.modelEmpty, "") + } + if r.modelIc != nil { + t := *r.modelIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ic", t, "multi") + } + } + if r.modelIe != nil { + t := *r.modelIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__ie", t, "multi") + } + } + if r.modelIew != nil { + t := *r.modelIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__iew", t, "multi") + } + } + if r.modelIsw != nil { + t := *r.modelIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__isw", t, "multi") + } + } + if r.modelN != nil { + t := *r.modelN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__n", t, "multi") + } + } + if r.modelNic != nil { + t := *r.modelNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nic", t, "multi") + } + } + if r.modelNie != nil { + t := *r.modelNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nie", t, "multi") + } + } + if r.modelNiew != nil { + t := *r.modelNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__niew", t, "multi") + } + } + if r.modelNisw != nil { + t := *r.modelNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "model__nisw", t, "multi") + } + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.mountingDepth != nil { + t := *r.mountingDepth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth", t, "multi") + } + } + if r.mountingDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__empty", r.mountingDepthEmpty, "") + } + if r.mountingDepthGt != nil { + t := *r.mountingDepthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gt", t, "multi") + } + } + if r.mountingDepthGte != nil { + t := *r.mountingDepthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__gte", t, "multi") + } + } + if r.mountingDepthLt != nil { + t := *r.mountingDepthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lt", t, "multi") + } + } + if r.mountingDepthLte != nil { + t := *r.mountingDepthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__lte", t, "multi") + } + } + if r.mountingDepthN != nil { + t := *r.mountingDepthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mounting_depth__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.outerDepth != nil { + t := *r.outerDepth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth", t, "multi") + } + } + if r.outerDepthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__empty", r.outerDepthEmpty, "") + } + if r.outerDepthGt != nil { + t := *r.outerDepthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gt", t, "multi") + } + } + if r.outerDepthGte != nil { + t := *r.outerDepthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__gte", t, "multi") + } + } + if r.outerDepthLt != nil { + t := *r.outerDepthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lt", t, "multi") + } + } + if r.outerDepthLte != nil { + t := *r.outerDepthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__lte", t, "multi") + } + } + if r.outerDepthN != nil { + t := *r.outerDepthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_depth__n", t, "multi") + } + } + if r.outerUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "") + } + if r.outerWidth != nil { + t := *r.outerWidth + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width", t, "multi") + } + } + if r.outerWidthEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__empty", r.outerWidthEmpty, "") + } + if r.outerWidthGt != nil { + t := *r.outerWidthGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gt", t, "multi") + } + } + if r.outerWidthGte != nil { + t := *r.outerWidthGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__gte", t, "multi") + } + } + if r.outerWidthLt != nil { + t := *r.outerWidthLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lt", t, "multi") + } + } + if r.outerWidthLte != nil { + t := *r.outerWidthLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__lte", t, "multi") + } + } + if r.outerWidthN != nil { + t := *r.outerWidthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "outer_width__n", t, "multi") + } + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.startingUnit != nil { + t := *r.startingUnit + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit", t, "multi") + } + } + if r.startingUnitEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__empty", r.startingUnitEmpty, "") + } + if r.startingUnitGt != nil { + t := *r.startingUnitGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gt", t, "multi") + } + } + if r.startingUnitGte != nil { + t := *r.startingUnitGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__gte", t, "multi") + } + } + if r.startingUnitLt != nil { + t := *r.startingUnitLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lt", t, "multi") + } + } + if r.startingUnitLte != nil { + t := *r.startingUnitLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__lte", t, "multi") + } + } + if r.startingUnitN != nil { + t := *r.startingUnitN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "starting_unit__n", t, "multi") + } + } + if r.tag != nil { + t := *r.tag + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + } + } + if r.tagN != nil { + t := *r.tagN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + } + } + if r.uHeight != nil { + t := *r.uHeight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height", t, "multi") + } + } + if r.uHeightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__empty", r.uHeightEmpty, "") + } + if r.uHeightGt != nil { + t := *r.uHeightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gt", t, "multi") + } + } + if r.uHeightGte != nil { + t := *r.uHeightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__gte", t, "multi") + } + } + if r.uHeightLt != nil { + t := *r.uHeightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lt", t, "multi") + } + } + if r.uHeightLte != nil { + t := *r.uHeightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__lte", t, "multi") + } + } + if r.uHeightN != nil { + t := *r.uHeightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "u_height__n", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + } + } + if r.weightN != nil { + t := *r.weightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + } + } + if r.weightUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") + } + if r.width != nil { + t := *r.width + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") + } + } + if r.widthIc != nil { + t := *r.widthIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", t, "multi") + } + } + if r.widthIe != nil { + t := *r.widthIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", t, "multi") + } + } + if r.widthIew != nil { + t := *r.widthIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", t, "multi") + } + } + if r.widthIsw != nil { + t := *r.widthIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", t, "multi") + } + } + if r.widthN != nil { + t := *r.widthN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") + } + } + if r.widthNic != nil { + t := *r.widthNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", t, "multi") + } + } + if r.widthNie != nil { + t := *r.widthNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", t, "multi") + } + } + if r.widthNiew != nil { + t := *r.widthNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", t, "multi") + } + } + if r.widthNisw != nil { + t := *r.widthNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesPartialUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + patchedWritableRackTypeRequest *PatchedWritableRackTypeRequest +} + +func (r ApiDcimRackTypesPartialUpdateRequest) PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest PatchedWritableRackTypeRequest) ApiDcimRackTypesPartialUpdateRequest { + r.patchedWritableRackTypeRequest = &patchedWritableRackTypeRequest + return r +} + +func (r ApiDcimRackTypesPartialUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesPartialUpdateExecute(r) +} + +/* +DcimRackTypesPartialUpdate Method for DcimRackTypesPartialUpdate + +Patch a rack type object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesPartialUpdateRequest +*/ +func (a *DcimAPIService) DcimRackTypesPartialUpdate(ctx context.Context, id int32) ApiDcimRackTypesPartialUpdateRequest { + return ApiDcimRackTypesPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return RackType +func (a *DcimAPIService) DcimRackTypesPartialUpdateExecute(r ApiDcimRackTypesPartialUpdateRequest) (*RackType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *RackType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedWritableRackTypeRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiDcimRackTypesRetrieveRequest struct { ctx context.Context ApiService *DcimAPIService id int32 } -func (r ApiDcimRackRolesRetrieveRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesRetrieveExecute(r) +func (r ApiDcimRackTypesRetrieveRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesRetrieveExecute(r) } /* -DcimRackRolesRetrieve Method for DcimRackRolesRetrieve +DcimRackTypesRetrieve Method for DcimRackTypesRetrieve -Get a rack role object. +Get a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesRetrieveRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesRetrieveRequest */ -func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) ApiDcimRackRolesRetrieveRequest { - return ApiDcimRackRolesRetrieveRequest{ +func (a *DcimAPIService) DcimRackTypesRetrieve(ctx context.Context, id int32) ApiDcimRackTypesRetrieveRequest { + return ApiDcimRackTypesRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -90440,21 +98599,21 @@ func (a *DcimAPIService) DcimRackRolesRetrieve(ctx context.Context, id int32) Ap // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieveRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesRetrieveExecute(r ApiDcimRackTypesRetrieveRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -90529,33 +98688,33 @@ func (a *DcimAPIService) DcimRackRolesRetrieveExecute(r ApiDcimRackRolesRetrieve return localVarReturnValue, localVarHTTPResponse, nil } -type ApiDcimRackRolesUpdateRequest struct { - ctx context.Context - ApiService *DcimAPIService - id int32 - rackRoleRequest *RackRoleRequest +type ApiDcimRackTypesUpdateRequest struct { + ctx context.Context + ApiService *DcimAPIService + id int32 + writableRackTypeRequest *WritableRackTypeRequest } -func (r ApiDcimRackRolesUpdateRequest) RackRoleRequest(rackRoleRequest RackRoleRequest) ApiDcimRackRolesUpdateRequest { - r.rackRoleRequest = &rackRoleRequest +func (r ApiDcimRackTypesUpdateRequest) WritableRackTypeRequest(writableRackTypeRequest WritableRackTypeRequest) ApiDcimRackTypesUpdateRequest { + r.writableRackTypeRequest = &writableRackTypeRequest return r } -func (r ApiDcimRackRolesUpdateRequest) Execute() (*RackRole, *http.Response, error) { - return r.ApiService.DcimRackRolesUpdateExecute(r) +func (r ApiDcimRackTypesUpdateRequest) Execute() (*RackType, *http.Response, error) { + return r.ApiService.DcimRackTypesUpdateExecute(r) } /* -DcimRackRolesUpdate Method for DcimRackRolesUpdate +DcimRackTypesUpdate Method for DcimRackTypesUpdate -Put a rack role object. +Put a rack type object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this rack role. - @return ApiDcimRackRolesUpdateRequest + @param id A unique integer value identifying this rack type. + @return ApiDcimRackTypesUpdateRequest */ -func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiDcimRackRolesUpdateRequest { - return ApiDcimRackRolesUpdateRequest{ +func (a *DcimAPIService) DcimRackTypesUpdate(ctx context.Context, id int32) ApiDcimRackTypesUpdateRequest { + return ApiDcimRackTypesUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -90564,28 +98723,28 @@ func (a *DcimAPIService) DcimRackRolesUpdate(ctx context.Context, id int32) ApiD // Execute executes the request // -// @return RackRole -func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequest) (*RackRole, *http.Response, error) { +// @return RackType +func (a *DcimAPIService) DcimRackTypesUpdateExecute(r ApiDcimRackTypesUpdateRequest) (*RackType, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *RackRole + localVarReturnValue *RackType ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackRolesUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "DcimAPIService.DcimRackTypesUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/dcim/rack-roles/{id}/" + localVarPath := localBasePath + "/api/dcim/rack-types/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.rackRoleRequest == nil { - return localVarReturnValue, nil, reportError("rackRoleRequest is required and must be specified") + if r.writableRackTypeRequest == nil { + return localVarReturnValue, nil, reportError("writableRackTypeRequest is required and must be specified") } // to determine the Content-Type header @@ -90606,7 +98765,7 @@ func (a *DcimAPIService) DcimRackRolesUpdateExecute(r ApiDcimRackRolesUpdateRequ localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.rackRoleRequest + localVarPostBody = r.writableRackTypeRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -91503,6 +99662,7 @@ func (a *DcimAPIService) DcimRacksElevationRetrieveExecute(r ApiDcimRacksElevati type ApiDcimRacksListRequest struct { ctx context.Context ApiService *DcimAPIService + airflow *DcimRacksListAirflowParameter assetTag *[]string assetTagEmpty *bool assetTagIc *[]string @@ -91516,8 +99676,8 @@ type ApiDcimRacksListRequest struct { assetTagNisw *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -91551,6 +99711,17 @@ type ApiDcimRacksListRequest struct { facilityIdNie *[]string facilityIdNiew *[]string facilityIdNisw *[]string + formFactor *[]string + formFactorEmpty *bool + formFactorIc *[]DcimRacksListFormFactorIcParameterInner + formFactorIe *[]DcimRacksListFormFactorIcParameterInner + formFactorIew *[]DcimRacksListFormFactorIcParameterInner + formFactorIsw *[]DcimRacksListFormFactorIcParameterInner + formFactorN *[]DcimRacksListFormFactorIcParameterInner + formFactorNic *[]DcimRacksListFormFactorIcParameterInner + formFactorNie *[]DcimRacksListFormFactorIcParameterInner + formFactorNiew *[]DcimRacksListFormFactorIcParameterInner + formFactorNisw *[]DcimRacksListFormFactorIcParameterInner id *[]int32 idEmpty *bool idGt *[]int32 @@ -91566,10 +99737,14 @@ type ApiDcimRacksListRequest struct { lastUpdatedLte *[]time.Time lastUpdatedN *[]time.Time limit *int32 - location *[]int32 - locationN *[]int32 - locationId *[]int32 - locationIdN *[]int32 + location *[]string + locationN *[]string + locationId *[]string + locationIdN *[]string + manufacturer *[]string + manufacturerN *[]string + manufacturerId *[]int32 + manufacturerIdN *[]int32 maxWeight *[]int32 maxWeightEmpty *bool maxWeightGt *[]int32 @@ -91605,8 +99780,7 @@ type ApiDcimRacksListRequest struct { outerDepthLt *[]int32 outerDepthLte *[]int32 outerDepthN *[]int32 - outerUnit *DcimRacksListOuterUnitParameter - outerUnitN *DcimRacksListOuterUnitParameter + outerUnit *DcimRackTypesListOuterUnitParameter outerWidth *[]int32 outerWidthEmpty *bool outerWidthGt *[]int32 @@ -91615,10 +99789,14 @@ type ApiDcimRacksListRequest struct { outerWidthLte *[]int32 outerWidthN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + rackType *[]string + rackTypeN *[]string + rackTypeId *[]*int32 + rackTypeIdN *[]*int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 @@ -91636,10 +99814,10 @@ type ApiDcimRacksListRequest struct { serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 startingUnit *[]int32 @@ -91650,19 +99828,26 @@ type ApiDcimRacksListRequest struct { startingUnitLte *[]int32 startingUnitN *[]int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimRacksListStatusIcParameterInner + statusIe *[]DcimRacksListStatusIcParameterInner + statusIew *[]DcimRacksListStatusIcParameterInner + statusIsw *[]DcimRacksListStatusIcParameterInner + statusN *[]DcimRacksListStatusIcParameterInner + statusNic *[]DcimRacksListStatusIcParameterInner + statusNie *[]DcimRacksListStatusIcParameterInner + statusNiew *[]DcimRacksListStatusIcParameterInner + statusNisw *[]DcimRacksListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 - type_ *[]string - typeN *[]string uHeight *[]int32 uHeightEmpty *bool uHeightGt *[]int32 @@ -91679,9 +99864,22 @@ type ApiDcimRacksListRequest struct { weightLte *[]float64 weightN *[]float64 weightUnit *DcimDeviceTypesListWeightUnitParameter - weightUnitN *DcimDeviceTypesListWeightUnitParameter width *[]int32 - widthN *[]int32 + widthIc *[]DcimRackTypesListWidthIcParameterInner + widthIe *[]DcimRackTypesListWidthIcParameterInner + widthIew *[]DcimRackTypesListWidthIcParameterInner + widthIsw *[]DcimRackTypesListWidthIcParameterInner + widthN *[]DcimRackTypesListWidthIcParameterInner + widthNic *[]DcimRackTypesListWidthIcParameterInner + widthNie *[]DcimRackTypesListWidthIcParameterInner + widthNiew *[]DcimRackTypesListWidthIcParameterInner + widthNisw *[]DcimRackTypesListWidthIcParameterInner +} + +// * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front +func (r ApiDcimRacksListRequest) Airflow(airflow DcimRacksListAirflowParameter) ApiDcimRacksListRequest { + r.airflow = &airflow + return r } func (r ApiDcimRacksListRequest) AssetTag(assetTag []string) ApiDcimRacksListRequest { @@ -91751,14 +99949,12 @@ func (r ApiDcimRacksListRequest) ContactN(contactN []int32) ApiDcimRacksListRequ return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroup(contactGroup []string) ApiDcimRacksListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) ContactGroupN(contactGroupN []string) ApiDcimRacksListRequest { r.contactGroupN = &contactGroupN return r } @@ -91930,6 +100126,70 @@ func (r ApiDcimRacksListRequest) FacilityIdNisw(facilityIdNisw []string) ApiDcim return r } +func (r ApiDcimRacksListRequest) FormFactor(formFactor []string) ApiDcimRacksListRequest { + r.formFactor = &formFactor + return r +} + +func (r ApiDcimRacksListRequest) FormFactorEmpty(formFactorEmpty bool) ApiDcimRacksListRequest { + r.formFactorEmpty = &formFactorEmpty + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorIc(formFactorIc []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorIc = &formFactorIc + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorIe(formFactorIe []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorIe = &formFactorIe + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorIew(formFactorIew []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorIew = &formFactorIew + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorIsw(formFactorIsw []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorIsw = &formFactorIsw + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorN(formFactorN []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorN = &formFactorN + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorNic(formFactorNic []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorNic = &formFactorNic + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorNie(formFactorNie []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorNie = &formFactorNie + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorNiew(formFactorNiew []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorNiew = &formFactorNiew + return r +} + +// * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) +func (r ApiDcimRacksListRequest) FormFactorNisw(formFactorNisw []DcimRacksListFormFactorIcParameterInner) ApiDcimRacksListRequest { + r.formFactorNisw = &formFactorNisw + return r +} + func (r ApiDcimRacksListRequest) Id(id []int32) ApiDcimRacksListRequest { r.id = &id return r @@ -92006,30 +100266,50 @@ func (r ApiDcimRacksListRequest) Limit(limit int32) ApiDcimRacksListRequest { return r } -// Location (slug) -func (r ApiDcimRacksListRequest) Location(location []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) Location(location []string) ApiDcimRacksListRequest { r.location = &location return r } -// Location (slug) -func (r ApiDcimRacksListRequest) LocationN(locationN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationN(locationN []string) ApiDcimRacksListRequest { r.locationN = &locationN return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationId(locationId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationId(locationId []string) ApiDcimRacksListRequest { r.locationId = &locationId return r } -// Location (ID) -func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) LocationIdN(locationIdN []string) ApiDcimRacksListRequest { r.locationIdN = &locationIdN return r } +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) Manufacturer(manufacturer []string) ApiDcimRacksListRequest { + r.manufacturer = &manufacturer + return r +} + +// Manufacturer (slug) +func (r ApiDcimRacksListRequest) ManufacturerN(manufacturerN []string) ApiDcimRacksListRequest { + r.manufacturerN = &manufacturerN + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerId(manufacturerId []int32) ApiDcimRacksListRequest { + r.manufacturerId = &manufacturerId + return r +} + +// Manufacturer (ID) +func (r ApiDcimRacksListRequest) ManufacturerIdN(manufacturerIdN []int32) ApiDcimRacksListRequest { + r.manufacturerIdN = &manufacturerIdN + return r +} + func (r ApiDcimRacksListRequest) MaxWeight(maxWeight []int32) ApiDcimRacksListRequest { r.maxWeight = &maxWeight return r @@ -92208,17 +100488,11 @@ func (r ApiDcimRacksListRequest) OuterDepthN(outerDepthN []int32) ApiDcimRacksLi } // * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) OuterUnit(outerUnit DcimRackTypesListOuterUnitParameter) ApiDcimRacksListRequest { r.outerUnit = &outerUnit return r } -// * `mm` - Millimeters * `in` - Inches -func (r ApiDcimRacksListRequest) OuterUnitN(outerUnitN DcimRacksListOuterUnitParameter) ApiDcimRacksListRequest { - r.outerUnitN = &outerUnitN - return r -} - func (r ApiDcimRacksListRequest) OuterWidth(outerWidth []int32) ApiDcimRacksListRequest { r.outerWidth = &outerWidth return r @@ -92260,26 +100534,46 @@ func (r ApiDcimRacksListRequest) Q(q string) ApiDcimRacksListRequest { return r } -// Region (slug) -func (r ApiDcimRacksListRequest) Region(region []int32) ApiDcimRacksListRequest { +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackType(rackType []string) ApiDcimRacksListRequest { + r.rackType = &rackType + return r +} + +// Rack type (slug) +func (r ApiDcimRacksListRequest) RackTypeN(rackTypeN []string) ApiDcimRacksListRequest { + r.rackTypeN = &rackTypeN + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeId(rackTypeId []*int32) ApiDcimRacksListRequest { + r.rackTypeId = &rackTypeId + return r +} + +// Rack type (ID) +func (r ApiDcimRacksListRequest) RackTypeIdN(rackTypeIdN []*int32) ApiDcimRacksListRequest { + r.rackTypeIdN = &rackTypeIdN + return r +} + +func (r ApiDcimRacksListRequest) Region(region []string) ApiDcimRacksListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRacksListRequest) RegionN(regionN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionN(regionN []string) ApiDcimRacksListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionId(regionId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionId(regionId []string) ApiDcimRacksListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) RegionIdN(regionIdN []string) ApiDcimRacksListRequest { r.regionIdN = ®ionIdN return r } @@ -92375,26 +100669,22 @@ func (r ApiDcimRacksListRequest) SiteN(siteN []string) ApiDcimRacksListRequest { return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroup(siteGroup []string) ApiDcimRacksListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupN(siteGroupN []string) ApiDcimRacksListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupId(siteGroupId []string) ApiDcimRacksListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRacksListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -92451,11 +100741,65 @@ func (r ApiDcimRacksListRequest) Status(status []string) ApiDcimRacksListRequest return r } -func (r ApiDcimRacksListRequest) StatusN(statusN []string) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) StatusEmpty(statusEmpty bool) ApiDcimRacksListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusIc(statusIc []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusIc = &statusIc + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusIe(statusIe []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusIe = &statusIe + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusIew(statusIew []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusIew = &statusIew + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusIsw(statusIsw []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusN(statusN []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { r.statusN = &statusN return r } +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusNic(statusNic []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusNic = &statusNic + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusNie(statusNie []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusNie = &statusNie + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusNiew(statusNiew []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated +func (r ApiDcimRacksListRequest) StatusNisw(statusNisw []DcimRacksListStatusIcParameterInner) ApiDcimRacksListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimRacksListRequest) Tag(tag []string) ApiDcimRacksListRequest { r.tag = &tag return r @@ -92478,26 +100822,22 @@ func (r ApiDcimRacksListRequest) TenantN(tenantN []string) ApiDcimRacksListReque return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroup(tenantGroup []string) ApiDcimRacksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupN(tenantGroupN []string) ApiDcimRacksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupId(tenantGroupId []string) ApiDcimRacksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimRacksListRequest { +func (r ApiDcimRacksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimRacksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -92514,16 +100854,6 @@ func (r ApiDcimRacksListRequest) TenantIdN(tenantIdN []*int32) ApiDcimRacksListR return r } -func (r ApiDcimRacksListRequest) Type_(type_ []string) ApiDcimRacksListRequest { - r.type_ = &type_ - return r -} - -func (r ApiDcimRacksListRequest) TypeN(typeN []string) ApiDcimRacksListRequest { - r.typeN = &typeN - return r -} - func (r ApiDcimRacksListRequest) UHeight(uHeight []int32) ApiDcimRacksListRequest { r.uHeight = &uHeight return r @@ -92605,24 +100935,66 @@ func (r ApiDcimRacksListRequest) WeightUnit(weightUnit DcimDeviceTypesListWeight return r } -// * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces -func (r ApiDcimRacksListRequest) WeightUnitN(weightUnitN DcimDeviceTypesListWeightUnitParameter) ApiDcimRacksListRequest { - r.weightUnitN = &weightUnitN - return r -} - // Rail-to-rail width func (r ApiDcimRacksListRequest) Width(width []int32) ApiDcimRacksListRequest { r.width = &width return r } -// Rail-to-rail width -func (r ApiDcimRacksListRequest) WidthN(widthN []int32) ApiDcimRacksListRequest { +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthIc(widthIc []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthIc = &widthIc + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthIe(widthIe []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthIe = &widthIe + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthIew(widthIew []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthIew = &widthIew + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthIsw(widthIsw []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthIsw = &widthIsw + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthN(widthN []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { r.widthN = &widthN return r } +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthNic(widthNic []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthNic = &widthNic + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthNie(widthNie []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthNie = &widthNie + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthNiew(widthNiew []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthNiew = &widthNiew + return r +} + +// Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches +func (r ApiDcimRacksListRequest) WidthNisw(widthNisw []DcimRackTypesListWidthIcParameterInner) ApiDcimRacksListRequest { + r.widthNisw = &widthNisw + return r +} + func (r ApiDcimRacksListRequest) Execute() (*PaginatedRackList, *http.Response, error) { return r.ApiService.DcimRacksListExecute(r) } @@ -92664,6 +101036,9 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.airflow != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "airflow", r.airflow, "") + } if r.assetTag != nil { t := *r.assetTag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93152,6 +101527,119 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "facility_id__nisw", t, "multi") } } + if r.formFactor != nil { + t := *r.formFactor + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor", t, "multi") + } + } + if r.formFactorEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__empty", r.formFactorEmpty, "") + } + if r.formFactorIc != nil { + t := *r.formFactorIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ic", t, "multi") + } + } + if r.formFactorIe != nil { + t := *r.formFactorIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__ie", t, "multi") + } + } + if r.formFactorIew != nil { + t := *r.formFactorIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__iew", t, "multi") + } + } + if r.formFactorIsw != nil { + t := *r.formFactorIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__isw", t, "multi") + } + } + if r.formFactorN != nil { + t := *r.formFactorN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__n", t, "multi") + } + } + if r.formFactorNic != nil { + t := *r.formFactorNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nic", t, "multi") + } + } + if r.formFactorNie != nil { + t := *r.formFactorNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nie", t, "multi") + } + } + if r.formFactorNiew != nil { + t := *r.formFactorNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__niew", t, "multi") + } + } + if r.formFactorNisw != nil { + t := *r.formFactorNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "form_factor__nisw", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93345,6 +101833,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "location_id__n", t, "multi") } } + if r.manufacturer != nil { + t := *r.manufacturer + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer", t, "multi") + } + } + if r.manufacturerN != nil { + t := *r.manufacturerN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer__n", t, "multi") + } + } + if r.manufacturerId != nil { + t := *r.manufacturerId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id", t, "multi") + } + } + if r.manufacturerIdN != nil { + t := *r.manufacturerIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "manufacturer_id__n", t, "multi") + } + } if r.maxWeight != nil { t := *r.maxWeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93677,9 +102209,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if r.outerUnit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit", r.outerUnit, "") } - if r.outerUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "outer_unit__n", r.outerUnitN, "") - } if r.outerWidth != nil { t := *r.outerWidth if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -93752,6 +102281,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } + if r.rackType != nil { + t := *r.rackType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type", t, "multi") + } + } + if r.rackTypeN != nil { + t := *r.rackTypeN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type__n", t, "multi") + } + } + if r.rackTypeId != nil { + t := *r.rackTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id", t, "multi") + } + } + if r.rackTypeIdN != nil { + t := *r.rackTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "rack_type_id__n", t, "multi") + } + } if r.region != nil { t := *r.region if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94121,6 +102694,53 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94132,6 +102752,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94242,28 +102906,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "tenant_id__n", t, "multi") } } - if r.type_ != nil { - t := *r.type_ - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") - } - } - if r.typeN != nil { - t := *r.typeN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") - } - } if r.uHeight != nil { t := *r.uHeight if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94408,9 +103050,6 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin if r.weightUnit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit", r.weightUnit, "") } - if r.weightUnitN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight_unit__n", r.weightUnitN, "") - } if r.width != nil { t := *r.width if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94422,6 +103061,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "width", t, "multi") } } + if r.widthIc != nil { + t := *r.widthIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ic", t, "multi") + } + } + if r.widthIe != nil { + t := *r.widthIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__ie", t, "multi") + } + } + if r.widthIew != nil { + t := *r.widthIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__iew", t, "multi") + } + } + if r.widthIsw != nil { + t := *r.widthIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__isw", t, "multi") + } + } if r.widthN != nil { t := *r.widthN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -94433,6 +103116,50 @@ func (a *DcimAPIService) DcimRacksListExecute(r ApiDcimRacksListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "width__n", t, "multi") } } + if r.widthNic != nil { + t := *r.widthNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nic", t, "multi") + } + } + if r.widthNie != nil { + t := *r.widthNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nie", t, "multi") + } + } + if r.widthNiew != nil { + t := *r.widthNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__niew", t, "multi") + } + } + if r.widthNisw != nil { + t := *r.widthNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "width__nisw", t, "multi") + } + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -95503,8 +104230,6 @@ type ApiDcimRearPortTemplatesListRequest struct { descriptionNisw *[]string deviceTypeId *[]*int32 deviceTypeIdN *[]*int32 - devicetypeId *[]*int32 - devicetypeIdN *[]*int32 id *[]int32 idEmpty *bool idGt *[]int32 @@ -95534,8 +104259,6 @@ type ApiDcimRearPortTemplatesListRequest struct { modifiedByRequest *string moduleTypeId *[]*int32 moduleTypeIdN *[]*int32 - moduletypeId *[]*int32 - moduletypeIdN *[]*int32 name *[]string nameEmpty *bool nameIc *[]string @@ -95558,7 +104281,16 @@ type ApiDcimRearPortTemplatesListRequest struct { positionsN *[]int32 q *string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIe *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIsw *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeN *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNic *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNie *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNiew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNisw *[]DcimFrontPortTemplatesListTypeIcParameterInner updatedByRequest *string } @@ -95724,18 +104456,6 @@ func (r ApiDcimRearPortTemplatesListRequest) DeviceTypeIdN(deviceTypeIdN []*int3 return r } -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeId(devicetypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeId = &devicetypeId - return r -} - -// Device type (ID) -func (r ApiDcimRearPortTemplatesListRequest) DevicetypeIdN(devicetypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.devicetypeIdN = &devicetypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Id(id []int32) ApiDcimRearPortTemplatesListRequest { r.id = &id return r @@ -95884,18 +104604,6 @@ func (r ApiDcimRearPortTemplatesListRequest) ModuleTypeIdN(moduleTypeIdN []*int3 return r } -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeId(moduletypeId []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeId = &moduletypeId - return r -} - -// Module type (ID) -func (r ApiDcimRearPortTemplatesListRequest) ModuletypeIdN(moduletypeIdN []*int32) ApiDcimRearPortTemplatesListRequest { - r.moduletypeIdN = &moduletypeIdN - return r -} - func (r ApiDcimRearPortTemplatesListRequest) Name(name []string) ApiDcimRearPortTemplatesListRequest { r.name = &name return r @@ -96009,11 +104717,65 @@ func (r ApiDcimRearPortTemplatesListRequest) Type_(type_ []string) ApiDcimRearPo return r } -func (r ApiDcimRearPortTemplatesListRequest) TypeN(typeN []string) ApiDcimRearPortTemplatesListRequest { +func (r ApiDcimRearPortTemplatesListRequest) TypeEmpty(typeEmpty bool) ApiDcimRearPortTemplatesListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeIc(typeIc []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeIc = &typeIc + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeIe(typeIe []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeIe = &typeIe + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeIew(typeIew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeIew = &typeIew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeIsw(typeIsw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeN(typeN []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { r.typeN = &typeN return r } +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeNic(typeNic []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeNic = &typeNic + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeNie(typeNie []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeNie = &typeNie + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeNiew(typeNiew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortTemplatesListRequest) TypeNisw(typeNisw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortTemplatesListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimRearPortTemplatesListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRearPortTemplatesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -96388,28 +105150,6 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "device_type_id__n", t, "multi") } } - if r.devicetypeId != nil { - t := *r.devicetypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id", t, "multi") - } - } - if r.devicetypeIdN != nil { - t := *r.devicetypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "devicetype_id__n", t, "multi") - } - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96697,28 +105437,6 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "module_type_id__n", t, "multi") } } - if r.moduletypeId != nil { - t := *r.moduletypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id", t, "multi") - } - } - if r.moduletypeIdN != nil { - t := *r.moduletypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "moduletype_id__n", t, "multi") - } - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96921,6 +105639,53 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -96932,6 +105697,50 @@ func (a *DcimAPIService) DcimRearPortTemplatesListExecute(r ApiDcimRearPortTempl parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -97974,7 +106783,6 @@ type ApiDcimRearPortsListRequest struct { ctx context.Context ApiService *DcimAPIService cableEnd *CircuitsCircuitTerminationsListCableEndParameter - cableEndN *CircuitsCircuitTerminationsListCableEndParameter cableId *[]*int32 cableIdN *[]*int32 cabled *bool @@ -98012,6 +106820,21 @@ type ApiDcimRearPortsListRequest struct { deviceN *[]*string deviceId *[]int32 deviceIdN *[]int32 + deviceRole *[]string + deviceRoleN *[]string + deviceRoleId *[]int32 + deviceRoleIdN *[]int32 + deviceStatus *[]string + deviceStatusEmpty *bool + deviceStatusIc *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIe *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusIsw *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusN *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNic *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNie *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNiew *[]DcimConsolePortsListDeviceStatusIcParameterInner + deviceStatusNisw *[]DcimConsolePortsListDeviceStatusIcParameterInner deviceType *[]string deviceTypeN *[]string deviceTypeId *[]int32 @@ -98076,26 +106899,31 @@ type ApiDcimRearPortsListRequest struct { rackN *[]string rackId *[]int32 rackIdN *[]int32 - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string tagN *[]string type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIe *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeIsw *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeN *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNic *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNie *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNiew *[]DcimFrontPortTemplatesListTypeIcParameterInner + typeNisw *[]DcimFrontPortTemplatesListTypeIcParameterInner updatedByRequest *string virtualChassis *[]string virtualChassisN *[]string @@ -98109,12 +106937,6 @@ func (r ApiDcimRearPortsListRequest) CableEnd(cableEnd CircuitsCircuitTerminatio return r } -// * `A` - A * `B` - B -func (r ApiDcimRearPortsListRequest) CableEndN(cableEndN CircuitsCircuitTerminationsListCableEndParameter) ApiDcimRearPortsListRequest { - r.cableEndN = &cableEndN - return r -} - // Cable (ID) func (r ApiDcimRearPortsListRequest) CableId(cableId []*int32) ApiDcimRearPortsListRequest { r.cableId = &cableId @@ -98306,6 +107128,94 @@ func (r ApiDcimRearPortsListRequest) DeviceIdN(deviceIdN []int32) ApiDcimRearPor return r } +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRole(deviceRole []string) ApiDcimRearPortsListRequest { + r.deviceRole = &deviceRole + return r +} + +// Device role (slug) +func (r ApiDcimRearPortsListRequest) DeviceRoleN(deviceRoleN []string) ApiDcimRearPortsListRequest { + r.deviceRoleN = &deviceRoleN + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleId(deviceRoleId []int32) ApiDcimRearPortsListRequest { + r.deviceRoleId = &deviceRoleId + return r +} + +// Device role (ID) +func (r ApiDcimRearPortsListRequest) DeviceRoleIdN(deviceRoleIdN []int32) ApiDcimRearPortsListRequest { + r.deviceRoleIdN = &deviceRoleIdN + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatus(deviceStatus []string) ApiDcimRearPortsListRequest { + r.deviceStatus = &deviceStatus + return r +} + +func (r ApiDcimRearPortsListRequest) DeviceStatusEmpty(deviceStatusEmpty bool) ApiDcimRearPortsListRequest { + r.deviceStatusEmpty = &deviceStatusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusIc(deviceStatusIc []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusIc = &deviceStatusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusIe(deviceStatusIe []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusIe = &deviceStatusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusIew(deviceStatusIew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusIew = &deviceStatusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusIsw(deviceStatusIsw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusIsw = &deviceStatusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusN(deviceStatusN []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusN = &deviceStatusN + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusNic(deviceStatusNic []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusNic = &deviceStatusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusNie(deviceStatusNie []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusNie = &deviceStatusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusNiew(deviceStatusNiew []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusNiew = &deviceStatusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning +func (r ApiDcimRearPortsListRequest) DeviceStatusNisw(deviceStatusNisw []DcimConsolePortsListDeviceStatusIcParameterInner) ApiDcimRearPortsListRequest { + r.deviceStatusNisw = &deviceStatusNisw + return r +} + // Device type (model) func (r ApiDcimRearPortsListRequest) DeviceType(deviceType []string) ApiDcimRearPortsListRequest { r.deviceType = &deviceType @@ -98644,54 +107554,26 @@ func (r ApiDcimRearPortsListRequest) RackIdN(rackIdN []int32) ApiDcimRearPortsLi return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) Region(region []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) Region(region []string) ApiDcimRearPortsListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimRearPortsListRequest) RegionN(regionN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionN(regionN []string) ApiDcimRearPortsListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionId(regionId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionId(regionId []string) ApiDcimRearPortsListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) RegionIdN(regionIdN []string) ApiDcimRearPortsListRequest { r.regionIdN = ®ionIdN return r } -// Device role (slug) -func (r ApiDcimRearPortsListRequest) Role(role []string) ApiDcimRearPortsListRequest { - r.role = &role - return r -} - -// Device role (slug) -func (r ApiDcimRearPortsListRequest) RoleN(roleN []string) ApiDcimRearPortsListRequest { - r.roleN = &roleN - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) RoleId(roleId []int32) ApiDcimRearPortsListRequest { - r.roleId = &roleId - return r -} - -// Device role (ID) -func (r ApiDcimRearPortsListRequest) RoleIdN(roleIdN []int32) ApiDcimRearPortsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site name (slug) func (r ApiDcimRearPortsListRequest) Site(site []string) ApiDcimRearPortsListRequest { r.site = &site @@ -98704,26 +107586,22 @@ func (r ApiDcimRearPortsListRequest) SiteN(siteN []string) ApiDcimRearPortsListR return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroup(siteGroup []string) ApiDcimRearPortsListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupN(siteGroupN []string) ApiDcimRearPortsListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupId(siteGroupId []string) ApiDcimRearPortsListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimRearPortsListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -98755,11 +107633,65 @@ func (r ApiDcimRearPortsListRequest) Type_(type_ []string) ApiDcimRearPortsListR return r } -func (r ApiDcimRearPortsListRequest) TypeN(typeN []string) ApiDcimRearPortsListRequest { +func (r ApiDcimRearPortsListRequest) TypeEmpty(typeEmpty bool) ApiDcimRearPortsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeIc(typeIc []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeIc = &typeIc + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeIe(typeIe []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeIe = &typeIe + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeIew(typeIew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeIew = &typeIew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeIsw(typeIsw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeN(typeN []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { r.typeN = &typeN return r } +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeNic(typeNic []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeNic = &typeNic + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeNie(typeNie []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeNie = &typeNie + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeNiew(typeNiew []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeNiew = &typeNiew + return r +} + +// * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other +func (r ApiDcimRearPortsListRequest) TypeNisw(typeNisw []DcimFrontPortTemplatesListTypeIcParameterInner) ApiDcimRearPortsListRequest { + r.typeNisw = &typeNisw + return r +} + func (r ApiDcimRearPortsListRequest) UpdatedByRequest(updatedByRequest string) ApiDcimRearPortsListRequest { r.updatedByRequest = &updatedByRequest return r @@ -98833,9 +107765,6 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) if r.cableEnd != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end", r.cableEnd, "") } - if r.cableEndN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "cable_end__n", r.cableEndN, "") - } if r.cableId != nil { t := *r.cableId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -99211,6 +108140,163 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "device_id__n", t, "multi") } } + if r.deviceRole != nil { + t := *r.deviceRole + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role", t, "multi") + } + } + if r.deviceRoleN != nil { + t := *r.deviceRoleN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role__n", t, "multi") + } + } + if r.deviceRoleId != nil { + t := *r.deviceRoleId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id", t, "multi") + } + } + if r.deviceRoleIdN != nil { + t := *r.deviceRoleIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_role_id__n", t, "multi") + } + } + if r.deviceStatus != nil { + t := *r.deviceStatus + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status", t, "multi") + } + } + if r.deviceStatusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__empty", r.deviceStatusEmpty, "") + } + if r.deviceStatusIc != nil { + t := *r.deviceStatusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ic", t, "multi") + } + } + if r.deviceStatusIe != nil { + t := *r.deviceStatusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__ie", t, "multi") + } + } + if r.deviceStatusIew != nil { + t := *r.deviceStatusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__iew", t, "multi") + } + } + if r.deviceStatusIsw != nil { + t := *r.deviceStatusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__isw", t, "multi") + } + } + if r.deviceStatusN != nil { + t := *r.deviceStatusN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__n", t, "multi") + } + } + if r.deviceStatusNic != nil { + t := *r.deviceStatusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nic", t, "multi") + } + } + if r.deviceStatusNie != nil { + t := *r.deviceStatusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nie", t, "multi") + } + } + if r.deviceStatusNiew != nil { + t := *r.deviceStatusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__niew", t, "multi") + } + } + if r.deviceStatusNisw != nil { + t := *r.deviceStatusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "device_status__nisw", t, "multi") + } + } if r.deviceType != nil { t := *r.deviceType if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -99871,50 +108957,6 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -100036,6 +109078,53 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -100047,6 +109136,50 @@ func (a *DcimAPIService) DcimRearPortsListExecute(r ApiDcimRearPortsListRequest) parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -101250,14 +110383,14 @@ func (a *DcimAPIService) DcimRegionsDestroyExecute(r ApiDcimRegionsDestroyReques type ApiDcimRegionsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -101329,26 +110462,22 @@ type ApiDcimRegionsListRequest struct { updatedByRequest *string } -// Region (slug) -func (r ApiDcimRegionsListRequest) Ancestor(ancestor []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) Ancestor(ancestor []string) ApiDcimRegionsListRequest { r.ancestor = &ancestor return r } -// Region (slug) -func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorN(ancestorN []string) ApiDcimRegionsListRequest { r.ancestorN = &ancestorN return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorId(ancestorId []string) ApiDcimRegionsListRequest { r.ancestorId = &ancestorId return r } -// Region (ID) -func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimRegionsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -101365,14 +110494,12 @@ func (r ApiDcimRegionsListRequest) ContactN(contactN []int32) ApiDcimRegionsList return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroup(contactGroup []string) ApiDcimRegionsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimRegionsListRequest { +func (r ApiDcimRegionsListRequest) ContactGroupN(contactGroupN []string) ApiDcimRegionsListRequest { r.contactGroupN = &contactGroupN return r } @@ -103570,14 +112697,14 @@ func (a *DcimAPIService) DcimSiteGroupsDestroyExecute(r ApiDcimSiteGroupsDestroy type ApiDcimSiteGroupsListRequest struct { ctx context.Context ApiService *DcimAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -103649,26 +112776,22 @@ type ApiDcimSiteGroupsListRequest struct { updatedByRequest *string } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) Ancestor(ancestor []string) ApiDcimSiteGroupsListRequest { r.ancestor = &ancestor return r } -// Site group (slug) -func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorN(ancestorN []string) ApiDcimSiteGroupsListRequest { r.ancestorN = &ancestorN return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorId(ancestorId []string) ApiDcimSiteGroupsListRequest { r.ancestorId = &ancestorId return r } -// Site group (ID) -func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiDcimSiteGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -103685,14 +112808,12 @@ func (r ApiDcimSiteGroupsListRequest) ContactN(contactN []int32) ApiDcimSiteGrou return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroup(contactGroup []string) ApiDcimSiteGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSiteGroupsListRequest { +func (r ApiDcimSiteGroupsListRequest) ContactGroupN(contactGroupN []string) ApiDcimSiteGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -105896,8 +115017,8 @@ type ApiDcimSitesListRequest struct { asnIdN *[]int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -105930,10 +115051,10 @@ type ApiDcimSitesListRequest struct { facilityNie *[]string facilityNiew *[]string facilityNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -105978,10 +115099,10 @@ type ApiDcimSitesListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string slug *[]string slugEmpty *bool slugIc *[]string @@ -105994,15 +115115,24 @@ type ApiDcimSitesListRequest struct { slugNiew *[]string slugNisw *[]string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimLocationsListStatusIcParameterInner + statusIe *[]DcimLocationsListStatusIcParameterInner + statusIew *[]DcimLocationsListStatusIcParameterInner + statusIsw *[]DcimLocationsListStatusIcParameterInner + statusN *[]DcimLocationsListStatusIcParameterInner + statusNic *[]DcimLocationsListStatusIcParameterInner + statusNie *[]DcimLocationsListStatusIcParameterInner + statusNiew *[]DcimLocationsListStatusIcParameterInner + statusNisw *[]DcimLocationsListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 timeZone *[]string @@ -106054,14 +115184,12 @@ func (r ApiDcimSitesListRequest) ContactN(contactN []int32) ApiDcimSitesListRequ return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroup(contactGroup []string) ApiDcimSitesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) ContactGroupN(contactGroupN []string) ApiDcimSitesListRequest { r.contactGroupN = &contactGroupN return r } @@ -106228,26 +115356,22 @@ func (r ApiDcimSitesListRequest) FacilityNisw(facilityNisw []string) ApiDcimSite return r } -// Group (slug) -func (r ApiDcimSitesListRequest) Group(group []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Group(group []string) ApiDcimSitesListRequest { r.group = &group return r } -// Group (slug) -func (r ApiDcimSitesListRequest) GroupN(groupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupN(groupN []string) ApiDcimSitesListRequest { r.groupN = &groupN return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupId(groupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupId(groupId []string) ApiDcimSitesListRequest { r.groupId = &groupId return r } -// Group (ID) -func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) GroupIdN(groupIdN []string) ApiDcimSitesListRequest { r.groupIdN = &groupIdN return r } @@ -106476,26 +115600,22 @@ func (r ApiDcimSitesListRequest) Q(q string) ApiDcimSitesListRequest { return r } -// Region (slug) -func (r ApiDcimSitesListRequest) Region(region []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) Region(region []string) ApiDcimSitesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimSitesListRequest) RegionN(regionN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionN(regionN []string) ApiDcimSitesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionId(regionId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionId(regionId []string) ApiDcimSitesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) RegionIdN(regionIdN []string) ApiDcimSitesListRequest { r.regionIdN = ®ionIdN return r } @@ -106560,11 +115680,65 @@ func (r ApiDcimSitesListRequest) Status(status []string) ApiDcimSitesListRequest return r } -func (r ApiDcimSitesListRequest) StatusN(statusN []string) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) StatusEmpty(statusEmpty bool) ApiDcimSitesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusIc(statusIc []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusIc = &statusIc + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusIe(statusIe []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusIe = &statusIe + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusIew(statusIew []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusIew = &statusIew + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusIsw(statusIsw []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusN(statusN []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { r.statusN = &statusN return r } +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusNic(statusNic []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusNic = &statusNic + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusNie(statusNie []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusNie = &statusNie + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusNiew(statusNiew []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired +func (r ApiDcimSitesListRequest) StatusNisw(statusNisw []DcimLocationsListStatusIcParameterInner) ApiDcimSitesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimSitesListRequest) Tag(tag []string) ApiDcimSitesListRequest { r.tag = &tag return r @@ -106587,26 +115761,22 @@ func (r ApiDcimSitesListRequest) TenantN(tenantN []string) ApiDcimSitesListReque return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroup(tenantGroup []string) ApiDcimSitesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupN(tenantGroupN []string) ApiDcimSitesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupId(tenantGroupId []string) ApiDcimSitesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimSitesListRequest { +func (r ApiDcimSitesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimSitesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -107759,6 +116929,53 @@ func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -107770,6 +116987,50 @@ func (a *DcimAPIService) DcimSitesListExecute(r ApiDcimSitesListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -109102,16 +118363,16 @@ type ApiDcimVirtualChassisListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]int32 siteIdN *[]int32 tag *[]string @@ -109486,26 +118747,22 @@ func (r ApiDcimVirtualChassisListRequest) Q(q string) ApiDcimVirtualChassisListR return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) Region(region []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) Region(region []string) ApiDcimVirtualChassisListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionN(regionN []string) ApiDcimVirtualChassisListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionId(regionId []string) ApiDcimVirtualChassisListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) RegionIdN(regionIdN []string) ApiDcimVirtualChassisListRequest { r.regionIdN = ®ionIdN return r } @@ -109522,26 +118779,22 @@ func (r ApiDcimVirtualChassisListRequest) SiteN(siteN []string) ApiDcimVirtualCh return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroup(siteGroup []string) ApiDcimVirtualChassisListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupN(siteGroupN []string) ApiDcimVirtualChassisListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupId(siteGroupId []string) ApiDcimVirtualChassisListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiDcimVirtualChassisListRequest { +func (r ApiDcimVirtualChassisListRequest) SiteGroupIdN(siteGroupIdN []string) ApiDcimVirtualChassisListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -111638,15 +120891,24 @@ type ApiDcimVirtualDeviceContextsListRequest struct { primaryIp6IdN *[]int32 q *string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusIe *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusIew *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusIsw *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusN *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusNic *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusNie *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusNiew *[]DcimVirtualDeviceContextsListStatusIcParameterInner + statusNisw *[]DcimVirtualDeviceContextsListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -112007,11 +121269,65 @@ func (r ApiDcimVirtualDeviceContextsListRequest) Status(status []string) ApiDcim return r } -func (r ApiDcimVirtualDeviceContextsListRequest) StatusN(statusN []string) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) StatusEmpty(statusEmpty bool) ApiDcimVirtualDeviceContextsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIc(statusIc []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusIc = &statusIc + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIe(statusIe []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusIe = &statusIe + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIew(statusIew []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusIew = &statusIew + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusIsw(statusIsw []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusN(statusN []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { r.statusN = &statusN return r } +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNic(statusNic []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusNic = &statusNic + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNie(statusNie []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusNie = &statusNie + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNiew(statusNiew []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `active` - Active * `planned` - Planned * `offline` - Offline +func (r ApiDcimVirtualDeviceContextsListRequest) StatusNisw(statusNisw []DcimVirtualDeviceContextsListStatusIcParameterInner) ApiDcimVirtualDeviceContextsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiDcimVirtualDeviceContextsListRequest) Tag(tag []string) ApiDcimVirtualDeviceContextsListRequest { r.tag = &tag return r @@ -112034,26 +121350,22 @@ func (r ApiDcimVirtualDeviceContextsListRequest) TenantN(tenantN []string) ApiDc return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroup(tenantGroup []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupN(tenantGroupN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupId(tenantGroupId []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiDcimVirtualDeviceContextsListRequest { +func (r ApiDcimVirtualDeviceContextsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiDcimVirtualDeviceContextsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -112776,6 +122088,53 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -112787,6 +122146,50 @@ func (a *DcimAPIService) DcimVirtualDeviceContextsListExecute(r ApiDcimVirtualDe parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_extras.go b/api_extras.go index 2b89c130c..5eafaa38b 100644 --- a/api_extras.go +++ b/api_extras.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -2262,10 +2262,6 @@ type ApiExtrasConfigContextsListRequest struct { regionN *[]string regionId *[]int32 regionIdN *[]int32 - role *[]string - roleN *[]string - roleId *[]int32 - roleIdN *[]int32 site *[]string siteN *[]string siteGroup *[]string @@ -2782,30 +2778,6 @@ func (r ApiExtrasConfigContextsListRequest) RegionIdN(regionIdN []int32) ApiExtr return r } -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) Role(role []string) ApiExtrasConfigContextsListRequest { - r.role = &role - return r -} - -// Role (slug) -func (r ApiExtrasConfigContextsListRequest) RoleN(roleN []string) ApiExtrasConfigContextsListRequest { - r.roleN = &roleN - return r -} - -// Role -func (r ApiExtrasConfigContextsListRequest) RoleId(roleId []int32) ApiExtrasConfigContextsListRequest { - r.roleId = &roleId - return r -} - -// Role -func (r ApiExtrasConfigContextsListRequest) RoleIdN(roleIdN []int32) ApiExtrasConfigContextsListRequest { - r.roleIdN = &roleIdN - return r -} - // Site (slug) func (r ApiExtrasConfigContextsListRequest) Site(site []string) ApiExtrasConfigContextsListRequest { r.site = &site @@ -3901,50 +3873,6 @@ func (a *ExtrasAPIService) ExtrasConfigContextsListExecute(r ApiExtrasConfigCont parameterAddToHeaderOrQuery(localVarQueryParams, "region_id__n", t, "multi") } } - if r.role != nil { - t := *r.role - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") - } - } - if r.roleN != nil { - t := *r.roleN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") - } - } - if r.roleId != nil { - t := *r.roleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id", t, "multi") - } - } - if r.roleIdN != nil { - t := *r.roleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") - } - } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -7872,7 +7800,6 @@ type ApiExtrasCustomFieldChoiceSetsListRequest struct { ctx context.Context ApiService *ExtrasAPIService baseChoices *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter - baseChoicesN *ExtrasCustomFieldChoiceSetsListBaseChoicesParameter choice *[]string created *[]time.Time createdEmpty *[]time.Time @@ -7933,12 +7860,6 @@ func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoices(baseChoices Extra return r } -// Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) -func (r ApiExtrasCustomFieldChoiceSetsListRequest) BaseChoicesN(baseChoicesN ExtrasCustomFieldChoiceSetsListBaseChoicesParameter) ApiExtrasCustomFieldChoiceSetsListRequest { - r.baseChoicesN = &baseChoicesN - return r -} - func (r ApiExtrasCustomFieldChoiceSetsListRequest) Choice(choice []string) ApiExtrasCustomFieldChoiceSetsListRequest { r.choice = &choice return r @@ -8247,9 +8168,6 @@ func (a *ExtrasAPIService) ExtrasCustomFieldChoiceSetsListExecute(r ApiExtrasCus if r.baseChoices != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices", r.baseChoices, "") } - if r.baseChoicesN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "base_choices__n", r.baseChoicesN, "") - } if r.choice != nil { t := *r.choice if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9796,7 +9714,6 @@ type ApiExtrasCustomFieldsListRequest struct { descriptionNiew *[]string descriptionNisw *[]string filterLogic *ExtrasCustomFieldsListFilterLogicParameter - filterLogicN *ExtrasCustomFieldsListFilterLogicParameter groupName *[]string groupNameEmpty *bool groupNameIc *[]string @@ -9875,11 +9792,19 @@ type ApiExtrasCustomFieldsListRequest struct { searchWeightLte *[]int32 searchWeightN *[]int32 type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]ExtrasCustomFieldsListTypeIcParameterInner + typeIe *[]ExtrasCustomFieldsListTypeIcParameterInner + typeIew *[]ExtrasCustomFieldsListTypeIcParameterInner + typeIsw *[]ExtrasCustomFieldsListTypeIcParameterInner + typeN *[]ExtrasCustomFieldsListTypeIcParameterInner + typeNic *[]ExtrasCustomFieldsListTypeIcParameterInner + typeNie *[]ExtrasCustomFieldsListTypeIcParameterInner + typeNiew *[]ExtrasCustomFieldsListTypeIcParameterInner + typeNisw *[]ExtrasCustomFieldsListTypeIcParameterInner uiEditable *ExtrasCustomFieldsListUiEditableParameter - uiEditableN *ExtrasCustomFieldsListUiEditableParameter uiVisible *ExtrasCustomFieldsListUiVisibleParameter - uiVisibleN *ExtrasCustomFieldsListUiVisibleParameter + unique *bool updatedByRequest *string validationMaximum *[]int32 validationMaximumEmpty *bool @@ -10036,12 +9961,6 @@ func (r ApiExtrasCustomFieldsListRequest) FilterLogic(filterLogic ExtrasCustomFi return r } -// Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact -func (r ApiExtrasCustomFieldsListRequest) FilterLogicN(filterLogicN ExtrasCustomFieldsListFilterLogicParameter) ApiExtrasCustomFieldsListRequest { - r.filterLogicN = &filterLogicN - return r -} - func (r ApiExtrasCustomFieldsListRequest) GroupName(groupName []string) ApiExtrasCustomFieldsListRequest { r.groupName = &groupName return r @@ -10437,21 +10356,68 @@ func (r ApiExtrasCustomFieldsListRequest) Type_(type_ []string) ApiExtrasCustomF return r } -// The type of data this custom field holds -func (r ApiExtrasCustomFieldsListRequest) TypeN(typeN []string) ApiExtrasCustomFieldsListRequest { +func (r ApiExtrasCustomFieldsListRequest) TypeEmpty(typeEmpty bool) ApiExtrasCustomFieldsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeIc(typeIc []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeIc = &typeIc + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeIe(typeIe []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeIe = &typeIe + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeIew(typeIew []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeIew = &typeIew + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeIsw(typeIsw []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeIsw = &typeIsw + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeN(typeN []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { r.typeN = &typeN return r } -// Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiEditable(uiEditable ExtrasCustomFieldsListUiEditableParameter) ApiExtrasCustomFieldsListRequest { - r.uiEditable = &uiEditable +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeNic(typeNic []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeNic = &typeNic + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeNie(typeNie []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeNie = &typeNie + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeNiew(typeNiew []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeNiew = &typeNiew + return r +} + +// The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects +func (r ApiExtrasCustomFieldsListRequest) TypeNisw(typeNisw []ExtrasCustomFieldsListTypeIcParameterInner) ApiExtrasCustomFieldsListRequest { + r.typeNisw = &typeNisw return r } // Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiEditableN(uiEditableN ExtrasCustomFieldsListUiEditableParameter) ApiExtrasCustomFieldsListRequest { - r.uiEditableN = &uiEditableN +func (r ApiExtrasCustomFieldsListRequest) UiEditable(uiEditable ExtrasCustomFieldsListUiEditableParameter) ApiExtrasCustomFieldsListRequest { + r.uiEditable = &uiEditable return r } @@ -10461,9 +10427,8 @@ func (r ApiExtrasCustomFieldsListRequest) UiVisible(uiVisible ExtrasCustomFields return r } -// Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden -func (r ApiExtrasCustomFieldsListRequest) UiVisibleN(uiVisibleN ExtrasCustomFieldsListUiVisibleParameter) ApiExtrasCustomFieldsListRequest { - r.uiVisibleN = &uiVisibleN +func (r ApiExtrasCustomFieldsListRequest) Unique(unique bool) ApiExtrasCustomFieldsListRequest { + r.unique = &unique return r } @@ -10913,9 +10878,6 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields if r.filterLogic != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "filter_logic", r.filterLogic, "") } - if r.filterLogicN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "filter_logic__n", r.filterLogicN, "") - } if r.groupName != nil { t := *r.groupName if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11582,6 +11544,53 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -11593,17 +11602,58 @@ func (a *ExtrasAPIService) ExtrasCustomFieldsListExecute(r ApiExtrasCustomFields parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.uiEditable != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable", r.uiEditable, "") } - if r.uiEditableN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ui_editable__n", r.uiEditableN, "") - } if r.uiVisible != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible", r.uiVisible, "") } - if r.uiVisibleN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ui_visible__n", r.uiVisibleN, "") + if r.unique != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "unique", r.unique, "") } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") @@ -12967,7 +13017,6 @@ type ApiExtrasCustomLinksListRequest struct { ctx context.Context ApiService *ExtrasAPIService buttonClass *ExtrasCustomLinksListButtonClassParameter - buttonClassN *ExtrasCustomLinksListButtonClassParameter created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -13061,18 +13110,12 @@ type ApiExtrasCustomLinksListRequest struct { weightN *[]int32 } -// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link func (r ApiExtrasCustomLinksListRequest) ButtonClass(buttonClass ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { r.buttonClass = &buttonClass return r } -// The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link -func (r ApiExtrasCustomLinksListRequest) ButtonClassN(buttonClassN ExtrasCustomLinksListButtonClassParameter) ApiExtrasCustomLinksListRequest { - r.buttonClassN = &buttonClassN - return r -} - func (r ApiExtrasCustomLinksListRequest) Created(created []time.Time) ApiExtrasCustomLinksListRequest { r.created = &created return r @@ -13576,9 +13619,6 @@ func (a *ExtrasAPIService) ExtrasCustomLinksListExecute(r ApiExtrasCustomLinksLi if r.buttonClass != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "button_class", r.buttonClass, "") } - if r.buttonClassN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "button_class__n", r.buttonClassN, "") - } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -15744,7 +15784,16 @@ type ApiExtrasEventRulesListRequest struct { actionObjectType *string actionObjectTypeN *string actionType *[]string - actionTypeN *[]string + actionTypeEmpty *bool + actionTypeIc *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeIe *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeIew *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeIsw *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeN *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeNic *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeNie *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeNiew *[]ExtrasEventRulesListActionTypeIcParameterInner + actionTypeNisw *[]ExtrasEventRulesListActionTypeIcParameterInner created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -15765,6 +15814,7 @@ type ApiExtrasEventRulesListRequest struct { descriptionNiew *[]string descriptionNisw *[]string enabled *bool + eventType *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -15809,11 +15859,6 @@ type ApiExtrasEventRulesListRequest struct { q *string tag *[]string tagN *[]string - typeCreate *bool - typeDelete *bool - typeJobEnd *bool - typeJobStart *bool - typeUpdate *bool updatedByRequest *string } @@ -15867,11 +15912,65 @@ func (r ApiExtrasEventRulesListRequest) ActionType(actionType []string) ApiExtra return r } -func (r ApiExtrasEventRulesListRequest) ActionTypeN(actionTypeN []string) ApiExtrasEventRulesListRequest { +func (r ApiExtrasEventRulesListRequest) ActionTypeEmpty(actionTypeEmpty bool) ApiExtrasEventRulesListRequest { + r.actionTypeEmpty = &actionTypeEmpty + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeIc(actionTypeIc []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeIc = &actionTypeIc + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeIe(actionTypeIe []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeIe = &actionTypeIe + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeIew(actionTypeIew []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeIew = &actionTypeIew + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeIsw(actionTypeIsw []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeIsw = &actionTypeIsw + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeN(actionTypeN []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { r.actionTypeN = &actionTypeN return r } +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeNic(actionTypeNic []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeNic = &actionTypeNic + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeNie(actionTypeNie []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeNie = &actionTypeNie + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeNiew(actionTypeNiew []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeNiew = &actionTypeNiew + return r +} + +// * `webhook` - Webhook * `script` - Script * `notification` - Notification +func (r ApiExtrasEventRulesListRequest) ActionTypeNisw(actionTypeNisw []ExtrasEventRulesListActionTypeIcParameterInner) ApiExtrasEventRulesListRequest { + r.actionTypeNisw = &actionTypeNisw + return r +} + func (r ApiExtrasEventRulesListRequest) Created(created []time.Time) ApiExtrasEventRulesListRequest { r.created = &created return r @@ -15972,6 +16071,11 @@ func (r ApiExtrasEventRulesListRequest) Enabled(enabled bool) ApiExtrasEventRule return r } +func (r ApiExtrasEventRulesListRequest) EventType(eventType []string) ApiExtrasEventRulesListRequest { + r.eventType = &eventType + return r +} + func (r ApiExtrasEventRulesListRequest) Id(id []int32) ApiExtrasEventRulesListRequest { r.id = &id return r @@ -16196,31 +16300,6 @@ func (r ApiExtrasEventRulesListRequest) TagN(tagN []string) ApiExtrasEventRulesL return r } -func (r ApiExtrasEventRulesListRequest) TypeCreate(typeCreate bool) ApiExtrasEventRulesListRequest { - r.typeCreate = &typeCreate - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeDelete(typeDelete bool) ApiExtrasEventRulesListRequest { - r.typeDelete = &typeDelete - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobEnd(typeJobEnd bool) ApiExtrasEventRulesListRequest { - r.typeJobEnd = &typeJobEnd - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeJobStart(typeJobStart bool) ApiExtrasEventRulesListRequest { - r.typeJobStart = &typeJobStart - return r -} - -func (r ApiExtrasEventRulesListRequest) TypeUpdate(typeUpdate bool) ApiExtrasEventRulesListRequest { - r.typeUpdate = &typeUpdate - return r -} - func (r ApiExtrasEventRulesListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasEventRulesListRequest { r.updatedByRequest = &updatedByRequest return r @@ -16361,6 +16440,53 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList parameterAddToHeaderOrQuery(localVarQueryParams, "action_type", t, "multi") } } + if r.actionTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__empty", r.actionTypeEmpty, "") + } + if r.actionTypeIc != nil { + t := *r.actionTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ic", t, "multi") + } + } + if r.actionTypeIe != nil { + t := *r.actionTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__ie", t, "multi") + } + } + if r.actionTypeIew != nil { + t := *r.actionTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__iew", t, "multi") + } + } + if r.actionTypeIsw != nil { + t := *r.actionTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__isw", t, "multi") + } + } if r.actionTypeN != nil { t := *r.actionTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -16372,6 +16498,50 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__n", t, "multi") } } + if r.actionTypeNic != nil { + t := *r.actionTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nic", t, "multi") + } + } + if r.actionTypeNie != nil { + t := *r.actionTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nie", t, "multi") + } + } + if r.actionTypeNiew != nil { + t := *r.actionTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__niew", t, "multi") + } + } + if r.actionTypeNisw != nil { + t := *r.actionTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "action_type__nisw", t, "multi") + } + } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -16568,6 +16738,17 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList if r.enabled != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") } + if r.eventType != nil { + t := *r.eventType + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "event_type", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -16916,21 +17097,6 @@ func (a *ExtrasAPIService) ExtrasEventRulesListExecute(r ApiExtrasEventRulesList parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") } } - if r.typeCreate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_create", r.typeCreate, "") - } - if r.typeDelete != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_delete", r.typeDelete, "") - } - if r.typeJobEnd != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_end", r.typeJobEnd, "") - } - if r.typeJobStart != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_job_start", r.typeJobStart, "") - } - if r.typeUpdate != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "type_update", r.typeUpdate, "") - } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -22710,7 +22876,16 @@ type ApiExtrasJournalEntriesListRequest struct { idLte *[]int32 idN *[]int32 kind *[]string - kindN *[]string + kindEmpty *bool + kindIc *[]ExtrasJournalEntriesListKindIcParameterInner + kindIe *[]ExtrasJournalEntriesListKindIcParameterInner + kindIew *[]ExtrasJournalEntriesListKindIcParameterInner + kindIsw *[]ExtrasJournalEntriesListKindIcParameterInner + kindN *[]ExtrasJournalEntriesListKindIcParameterInner + kindNic *[]ExtrasJournalEntriesListKindIcParameterInner + kindNie *[]ExtrasJournalEntriesListKindIcParameterInner + kindNiew *[]ExtrasJournalEntriesListKindIcParameterInner + kindNisw *[]ExtrasJournalEntriesListKindIcParameterInner lastUpdated *[]time.Time lastUpdatedEmpty *[]time.Time lastUpdatedGt *[]time.Time @@ -22862,11 +23037,65 @@ func (r ApiExtrasJournalEntriesListRequest) Kind(kind []string) ApiExtrasJournal return r } -func (r ApiExtrasJournalEntriesListRequest) KindN(kindN []string) ApiExtrasJournalEntriesListRequest { +func (r ApiExtrasJournalEntriesListRequest) KindEmpty(kindEmpty bool) ApiExtrasJournalEntriesListRequest { + r.kindEmpty = &kindEmpty + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindIc(kindIc []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindIc = &kindIc + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindIe(kindIe []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindIe = &kindIe + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindIew(kindIew []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindIew = &kindIew + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindIsw(kindIsw []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindIsw = &kindIsw + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindN(kindN []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { r.kindN = &kindN return r } +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindNic(kindNic []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindNic = &kindNic + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindNie(kindNie []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindNie = &kindNie + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindNiew(kindNiew []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindNiew = &kindNiew + return r +} + +// * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger +func (r ApiExtrasJournalEntriesListRequest) KindNisw(kindNisw []ExtrasJournalEntriesListKindIcParameterInner) ApiExtrasJournalEntriesListRequest { + r.kindNisw = &kindNisw + return r +} + func (r ApiExtrasJournalEntriesListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasJournalEntriesListRequest { r.lastUpdated = &lastUpdated return r @@ -23217,6 +23446,53 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt parameterAddToHeaderOrQuery(localVarQueryParams, "kind", t, "multi") } } + if r.kindEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__empty", r.kindEmpty, "") + } + if r.kindIc != nil { + t := *r.kindIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ic", t, "multi") + } + } + if r.kindIe != nil { + t := *r.kindIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__ie", t, "multi") + } + } + if r.kindIew != nil { + t := *r.kindIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__iew", t, "multi") + } + } + if r.kindIsw != nil { + t := *r.kindIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__isw", t, "multi") + } + } if r.kindN != nil { t := *r.kindN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -23228,6 +23504,50 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesListExecute(r ApiExtrasJournalEnt parameterAddToHeaderOrQuery(localVarQueryParams, "kind__n", t, "multi") } } + if r.kindNic != nil { + t := *r.kindNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nic", t, "multi") + } + } + if r.kindNie != nil { + t := *r.kindNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nie", t, "multi") + } + } + if r.kindNiew != nil { + t := *r.kindNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__niew", t, "multi") + } + } + if r.kindNisw != nil { + t := *r.kindNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "kind__nisw", t, "multi") + } + } if r.lastUpdated != nil { t := *r.lastUpdated if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -23786,407 +24106,394 @@ func (a *ExtrasAPIService) ExtrasJournalEntriesUpdateExecute(r ApiExtrasJournalE return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - action *ExtrasObjectChangesListActionParameter - actionN *ExtrasObjectChangesListActionParameter - changedObjectId *[]int32 - changedObjectIdEmpty *bool - changedObjectIdGt *[]int32 - changedObjectIdGte *[]int32 - changedObjectIdLt *[]int32 - changedObjectIdLte *[]int32 - changedObjectIdN *[]int32 - changedObjectType *string - changedObjectTypeN *string - changedObjectTypeId *[]int32 - changedObjectTypeIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - objectRepr *[]string - objectReprEmpty *bool - objectReprIc *[]string - objectReprIe *[]string - objectReprIew *[]string - objectReprIsw *[]string - objectReprN *[]string - objectReprNic *[]string - objectReprNie *[]string - objectReprNiew *[]string - objectReprNisw *[]string - offset *int32 - ordering *string - q *string - relatedObjectId *[]int32 - relatedObjectIdEmpty *bool - relatedObjectIdGt *[]int32 - relatedObjectIdGte *[]int32 - relatedObjectIdLt *[]int32 - relatedObjectIdLte *[]int32 - relatedObjectIdN *[]int32 - relatedObjectType *int32 - relatedObjectTypeN *int32 - requestId *string - timeAfter *time.Time - timeBefore *time.Time - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - userName *[]string - userNameEmpty *bool - userNameIc *[]string - userNameIe *[]string - userNameIew *[]string - userNameIsw *[]string - userNameN *[]string - userNameNic *[]string - userNameNie *[]string - userNameNiew *[]string - userNameNisw *[]string -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) Action(action ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.action = &action - return r -} - -// * `create` - Created * `update` - Updated * `delete` - Deleted -func (r ApiExtrasObjectChangesListRequest) ActionN(actionN ExtrasObjectChangesListActionParameter) ApiExtrasObjectChangesListRequest { - r.actionN = &actionN - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectId(changedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectId = &changedObjectId - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdEmpty(changedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.changedObjectIdEmpty = &changedObjectIdEmpty - return r -} - -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGt(changedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGt = &changedObjectIdGt - return r +type ApiExtrasNotificationGroupsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdGte(changedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdGte = &changedObjectIdGte +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkDestroyRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLt(changedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLt = &changedObjectIdLt - return r +func (r ApiExtrasNotificationGroupsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkDestroyExecute(r) } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdLte(changedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdLte = &changedObjectIdLte - return r -} +/* +ExtrasNotificationGroupsBulkDestroy Method for ExtrasNotificationGroupsBulkDestroy -func (r ApiExtrasObjectChangesListRequest) ChangedObjectIdN(changedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectIdN = &changedObjectIdN - return r -} +Delete a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) ChangedObjectType(changedObjectType string) ApiExtrasObjectChangesListRequest { - r.changedObjectType = &changedObjectType - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroy(ctx context.Context) ApiExtrasNotificationGroupsBulkDestroyRequest { + return ApiExtrasNotificationGroupsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeN(changedObjectTypeN string) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeN = &changedObjectTypeN - return r -} +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkDestroyExecute(r ApiExtrasNotificationGroupsBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeId(changedObjectTypeId []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeId = &changedObjectTypeId - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasObjectChangesListRequest) ChangedObjectTypeIdN(changedObjectTypeIdN []int32) ApiExtrasObjectChangesListRequest { - r.changedObjectTypeIdN = &changedObjectTypeIdN - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -func (r ApiExtrasObjectChangesListRequest) Id(id []int32) ApiExtrasObjectChangesListRequest { - r.id = &id - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) IdEmpty(idEmpty bool) ApiExtrasObjectChangesListRequest { - r.idEmpty = &idEmpty - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) IdGt(idGt []int32) ApiExtrasObjectChangesListRequest { - r.idGt = &idGt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) IdGte(idGte []int32) ApiExtrasObjectChangesListRequest { - r.idGte = &idGte - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiExtrasObjectChangesListRequest) IdLt(idLt []int32) ApiExtrasObjectChangesListRequest { - r.idLt = &idLt - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } -func (r ApiExtrasObjectChangesListRequest) IdLte(idLte []int32) ApiExtrasObjectChangesListRequest { - r.idLte = &idLte - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) IdN(idN []int32) ApiExtrasObjectChangesListRequest { - r.idN = &idN - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -// Number of results to return per page. -func (r ApiExtrasObjectChangesListRequest) Limit(limit int32) ApiExtrasObjectChangesListRequest { - r.limit = &limit - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) ObjectRepr(objectRepr []string) ApiExtrasObjectChangesListRequest { - r.objectRepr = &objectRepr - return r + return localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) ObjectReprEmpty(objectReprEmpty bool) ApiExtrasObjectChangesListRequest { - r.objectReprEmpty = &objectReprEmpty - return r +type ApiExtrasNotificationGroupsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIc(objectReprIc []string) ApiExtrasObjectChangesListRequest { - r.objectReprIc = &objectReprIc +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIe(objectReprIe []string) ApiExtrasObjectChangesListRequest { - r.objectReprIe = &objectReprIe - return r +func (r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkPartialUpdateExecute(r) } -func (r ApiExtrasObjectChangesListRequest) ObjectReprIew(objectReprIew []string) ApiExtrasObjectChangesListRequest { - r.objectReprIew = &objectReprIew - return r -} +/* +ExtrasNotificationGroupsBulkPartialUpdate Method for ExtrasNotificationGroupsBulkPartialUpdate -func (r ApiExtrasObjectChangesListRequest) ObjectReprIsw(objectReprIsw []string) ApiExtrasObjectChangesListRequest { - r.objectReprIsw = &objectReprIsw - return r -} +Patch a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) ObjectReprN(objectReprN []string) ApiExtrasObjectChangesListRequest { - r.objectReprN = &objectReprN - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkPartialUpdateRequest { + return ApiExtrasNotificationGroupsBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasObjectChangesListRequest) ObjectReprNic(objectReprNic []string) ApiExtrasObjectChangesListRequest { - r.objectReprNic = &objectReprNic - return r -} +// Execute executes the request +// +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkPartialUpdateExecute(r ApiExtrasNotificationGroupsBulkPartialUpdateRequest) ([]NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup + ) -func (r ApiExtrasObjectChangesListRequest) ObjectReprNie(objectReprNie []string) ApiExtrasObjectChangesListRequest { - r.objectReprNie = &objectReprNie - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasObjectChangesListRequest) ObjectReprNiew(objectReprNiew []string) ApiExtrasObjectChangesListRequest { - r.objectReprNiew = &objectReprNiew - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -func (r ApiExtrasObjectChangesListRequest) ObjectReprNisw(objectReprNisw []string) ApiExtrasObjectChangesListRequest { - r.objectReprNisw = &objectReprNisw - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } -// The initial index from which to return the results. -func (r ApiExtrasObjectChangesListRequest) Offset(offset int32) ApiExtrasObjectChangesListRequest { - r.offset = &offset - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -// Which field to use when ordering the results. -func (r ApiExtrasObjectChangesListRequest) Ordering(ordering string) ApiExtrasObjectChangesListRequest { - r.ordering = &ordering - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -// Search -func (r ApiExtrasObjectChangesListRequest) Q(q string) ApiExtrasObjectChangesListRequest { - r.q = &q - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasObjectChangesListRequest) RelatedObjectId(relatedObjectId []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectId = &relatedObjectId - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdEmpty(relatedObjectIdEmpty bool) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdEmpty = &relatedObjectIdEmpty - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGt(relatedObjectIdGt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGt = &relatedObjectIdGt - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdGte(relatedObjectIdGte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdGte = &relatedObjectIdGte - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLt(relatedObjectIdLt []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLt = &relatedObjectIdLt - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdLte(relatedObjectIdLte []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdLte = &relatedObjectIdLte - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectIdN(relatedObjectIdN []int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectIdN = &relatedObjectIdN - return r +type ApiExtrasNotificationGroupsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *[]NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectType(relatedObjectType int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectType = &relatedObjectType +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) NotificationGroupRequest(notificationGroupRequest []NotificationGroupRequest) ApiExtrasNotificationGroupsBulkUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) RelatedObjectTypeN(relatedObjectTypeN int32) ApiExtrasObjectChangesListRequest { - r.relatedObjectTypeN = &relatedObjectTypeN - return r +func (r ApiExtrasNotificationGroupsBulkUpdateRequest) Execute() ([]NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsBulkUpdateExecute(r) } -func (r ApiExtrasObjectChangesListRequest) RequestId(requestId string) ApiExtrasObjectChangesListRequest { - r.requestId = &requestId - return r -} +/* +ExtrasNotificationGroupsBulkUpdate Method for ExtrasNotificationGroupsBulkUpdate -func (r ApiExtrasObjectChangesListRequest) TimeAfter(timeAfter time.Time) ApiExtrasObjectChangesListRequest { - r.timeAfter = &timeAfter - return r -} +Put a list of notification group objects. -func (r ApiExtrasObjectChangesListRequest) TimeBefore(timeBefore time.Time) ApiExtrasObjectChangesListRequest { - r.timeBefore = &timeBefore - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationGroupsBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdate(ctx context.Context) ApiExtrasNotificationGroupsBulkUpdateRequest { + return ApiExtrasNotificationGroupsBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } } -// User name -func (r ApiExtrasObjectChangesListRequest) User(user []string) ApiExtrasObjectChangesListRequest { - r.user = &user - return r -} +// Execute executes the request +// +// @return []NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsBulkUpdateExecute(r ApiExtrasNotificationGroupsBulkUpdateRequest) ([]NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []NotificationGroup + ) -// User name -func (r ApiExtrasObjectChangesListRequest) UserN(userN []string) ApiExtrasObjectChangesListRequest { - r.userN = &userN - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserId(userId []*int32) ApiExtrasObjectChangesListRequest { - r.userId = &userId - return r -} + localVarPath := localBasePath + "/api/extras/notification-groups/" -// User (ID) -func (r ApiExtrasObjectChangesListRequest) UserIdN(userIdN []*int32) ApiExtrasObjectChangesListRequest { - r.userIdN = &userIdN - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } -func (r ApiExtrasObjectChangesListRequest) UserName(userName []string) ApiExtrasObjectChangesListRequest { - r.userName = &userName - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasObjectChangesListRequest) UserNameEmpty(userNameEmpty bool) ApiExtrasObjectChangesListRequest { - r.userNameEmpty = &userNameEmpty - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasObjectChangesListRequest) UserNameIc(userNameIc []string) ApiExtrasObjectChangesListRequest { - r.userNameIc = &userNameIc - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasObjectChangesListRequest) UserNameIe(userNameIe []string) ApiExtrasObjectChangesListRequest { - r.userNameIe = &userNameIe - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameIew(userNameIew []string) ApiExtrasObjectChangesListRequest { - r.userNameIew = &userNameIew - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameIsw(userNameIsw []string) ApiExtrasObjectChangesListRequest { - r.userNameIsw = &userNameIsw - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasObjectChangesListRequest) UserNameN(userNameN []string) ApiExtrasObjectChangesListRequest { - r.userNameN = &userNameN - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) UserNameNic(userNameNic []string) ApiExtrasObjectChangesListRequest { - r.userNameNic = &userNameNic - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasObjectChangesListRequest) UserNameNie(userNameNie []string) ApiExtrasObjectChangesListRequest { - r.userNameNie = &userNameNie - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasObjectChangesListRequest) UserNameNiew(userNameNiew []string) ApiExtrasObjectChangesListRequest { - r.userNameNiew = &userNameNiew - return r +type ApiExtrasNotificationGroupsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationGroupRequest *NotificationGroupRequest } -func (r ApiExtrasObjectChangesListRequest) UserNameNisw(userNameNisw []string) ApiExtrasObjectChangesListRequest { - r.userNameNisw = &userNameNisw +func (r ApiExtrasNotificationGroupsCreateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsCreateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasObjectChangesListRequest) Execute() (*PaginatedObjectChangeList, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesListExecute(r) +func (r ApiExtrasNotificationGroupsCreateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsCreateExecute(r) } /* -ExtrasObjectChangesList Method for ExtrasObjectChangesList +ExtrasNotificationGroupsCreate Method for ExtrasNotificationGroupsCreate -Retrieve a list of recent changes. +Post a list of notification group objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectChangesListRequest + @return ApiExtrasNotificationGroupsCreateRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtrasObjectChangesListRequest { - return ApiExtrasObjectChangesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreate(ctx context.Context) ApiExtrasNotificationGroupsCreateRequest { + return ApiExtrasNotificationGroupsCreateRequest{ ApiService: a, ctx: ctx, } @@ -24194,603 +24501,70 @@ func (a *ExtrasAPIService) ExtrasObjectChangesList(ctx context.Context) ApiExtra // Execute executes the request // -// @return PaginatedObjectChangeList -func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChangesListRequest) (*PaginatedObjectChangeList, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsCreateExecute(r ApiExtrasNotificationGroupsCreateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedObjectChangeList + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } - if r.action != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action", r.action, "") + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType } - if r.actionN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "action__n", r.actionN, "") + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } - if r.changedObjectId != nil { - t := *r.changedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", s.Index(i).Interface(), "multi") + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id", t, "multi") } } - if r.changedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__empty", r.changedObjectIdEmpty, "") + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err } - if r.changedObjectIdGt != nil { - t := *r.changedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gt", t, "multi") - } - } - if r.changedObjectIdGte != nil { - t := *r.changedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__gte", t, "multi") - } - } - if r.changedObjectIdLt != nil { - t := *r.changedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lt", t, "multi") - } - } - if r.changedObjectIdLte != nil { - t := *r.changedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__lte", t, "multi") - } - } - if r.changedObjectIdN != nil { - t := *r.changedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_id__n", t, "multi") - } - } - if r.changedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type", r.changedObjectType, "") - } - if r.changedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type__n", r.changedObjectTypeN, "") - } - if r.changedObjectTypeId != nil { - t := *r.changedObjectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id", t, "multi") - } - } - if r.changedObjectTypeIdN != nil { - t := *r.changedObjectTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "changed_object_type_id__n", t, "multi") - } - } - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.objectRepr != nil { - t := *r.objectRepr - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr", t, "multi") - } - } - if r.objectReprEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__empty", r.objectReprEmpty, "") - } - if r.objectReprIc != nil { - t := *r.objectReprIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ic", t, "multi") - } - } - if r.objectReprIe != nil { - t := *r.objectReprIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__ie", t, "multi") - } - } - if r.objectReprIew != nil { - t := *r.objectReprIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__iew", t, "multi") - } - } - if r.objectReprIsw != nil { - t := *r.objectReprIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__isw", t, "multi") - } - } - if r.objectReprN != nil { - t := *r.objectReprN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__n", t, "multi") - } - } - if r.objectReprNic != nil { - t := *r.objectReprNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nic", t, "multi") - } - } - if r.objectReprNie != nil { - t := *r.objectReprNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nie", t, "multi") - } - } - if r.objectReprNiew != nil { - t := *r.objectReprNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__niew", t, "multi") - } - } - if r.objectReprNisw != nil { - t := *r.objectReprNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_repr__nisw", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.relatedObjectId != nil { - t := *r.relatedObjectId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id", t, "multi") - } - } - if r.relatedObjectIdEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__empty", r.relatedObjectIdEmpty, "") - } - if r.relatedObjectIdGt != nil { - t := *r.relatedObjectIdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gt", t, "multi") - } - } - if r.relatedObjectIdGte != nil { - t := *r.relatedObjectIdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__gte", t, "multi") - } - } - if r.relatedObjectIdLt != nil { - t := *r.relatedObjectIdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lt", t, "multi") - } - } - if r.relatedObjectIdLte != nil { - t := *r.relatedObjectIdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__lte", t, "multi") - } - } - if r.relatedObjectIdN != nil { - t := *r.relatedObjectIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_id__n", t, "multi") - } - } - if r.relatedObjectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type", r.relatedObjectType, "") - } - if r.relatedObjectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "related_object_type__n", r.relatedObjectTypeN, "") - } - if r.requestId != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "request_id", r.requestId, "") - } - if r.timeAfter != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_after", r.timeAfter, "") - } - if r.timeBefore != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "time_before", r.timeBefore, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } - } - if r.userN != nil { - t := *r.userN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") - } - } - if r.userId != nil { - t := *r.userId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") - } - } - if r.userIdN != nil { - t := *r.userIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") - } - } - if r.userName != nil { - t := *r.userName - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name", t, "multi") - } - } - if r.userNameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__empty", r.userNameEmpty, "") - } - if r.userNameIc != nil { - t := *r.userNameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ic", t, "multi") - } - } - if r.userNameIe != nil { - t := *r.userNameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__ie", t, "multi") - } - } - if r.userNameIew != nil { - t := *r.userNameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__iew", t, "multi") - } - } - if r.userNameIsw != nil { - t := *r.userNameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__isw", t, "multi") - } - } - if r.userNameN != nil { - t := *r.userNameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__n", t, "multi") - } - } - if r.userNameNic != nil { - t := *r.userNameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nic", t, "multi") - } - } - if r.userNameNie != nil { - t := *r.userNameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nie", t, "multi") - } - } - if r.userNameNiew != nil { - t := *r.userNameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__niew", t, "multi") - } - } - if r.userNameNisw != nil { - t := *r.userNameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_name__nisw", t, "multi") - } - } - // to determine the Content-Type header - localVarHTTPContentTypes := []string{} - - // set Content-Type header - localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) - if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return localVarReturnValue, nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) @@ -24820,27 +24594,27 @@ func (a *ExtrasAPIService) ExtrasObjectChangesListExecute(r ApiExtrasObjectChang return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectChangesRetrieveRequest struct { +type ApiExtrasNotificationGroupsDestroyRequest struct { ctx context.Context ApiService *ExtrasAPIService id int32 } -func (r ApiExtrasObjectChangesRetrieveRequest) Execute() (*ObjectChange, *http.Response, error) { - return r.ApiService.ExtrasObjectChangesRetrieveExecute(r) +func (r ApiExtrasNotificationGroupsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsDestroyExecute(r) } /* -ExtrasObjectChangesRetrieve Method for ExtrasObjectChangesRetrieve +ExtrasNotificationGroupsDestroy Method for ExtrasNotificationGroupsDestroy -Retrieve a list of recent changes. +Delete a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object change. - @return ApiExtrasObjectChangesRetrieveRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id int32) ApiExtrasObjectChangesRetrieveRequest { - return ApiExtrasObjectChangesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroy(ctx context.Context, id int32) ApiExtrasNotificationGroupsDestroyRequest { + return ApiExtrasNotificationGroupsDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -24848,22 +24622,19 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieve(ctx context.Context, id i } // Execute executes the request -// -// @return ObjectChange -func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectChangesRetrieveRequest) (*ObjectChange, *http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationGroupsDestroyExecute(r ApiExtrasNotificationGroupsDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *ObjectChange + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectChangesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-changes/{id}/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -24880,7 +24651,7 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -24903,19 +24674,19 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -24923,86 +24694,52 @@ func (a *ExtrasAPIService) ExtrasObjectChangesRetrieveExecute(r ApiExtrasObjectC body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr - } - - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - return localVarReturnValue, localVarHTTPResponse, nil + return localVarHTTPResponse, nil } -type ApiExtrasObjectTypesListRequest struct { +type ApiExtrasNotificationGroupsListRequest struct { ctx context.Context ApiService *ExtrasAPIService - appLabel *string - id *int32 limit *int32 - model *string offset *int32 ordering *string - q *string -} - -func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { - r.appLabel = &appLabel - return r -} - -func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { - r.id = &id - return r } // Number of results to return per page. -func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { +func (r ApiExtrasNotificationGroupsListRequest) Limit(limit int32) ApiExtrasNotificationGroupsListRequest { r.limit = &limit return r } -func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { - r.model = &model - return r -} - // The initial index from which to return the results. -func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { +func (r ApiExtrasNotificationGroupsListRequest) Offset(offset int32) ApiExtrasNotificationGroupsListRequest { r.offset = &offset return r } // Which field to use when ordering the results. -func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { +func (r ApiExtrasNotificationGroupsListRequest) Ordering(ordering string) ApiExtrasNotificationGroupsListRequest { r.ordering = &ordering return r } -// Search -func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { - r.q = &q - return r -} - -func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesListExecute(r) +func (r ApiExtrasNotificationGroupsListRequest) Execute() (*PaginatedNotificationGroupList, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsListExecute(r) } /* -ExtrasObjectTypesList Method for ExtrasObjectTypesList +ExtrasNotificationGroupsList Method for ExtrasNotificationGroupsList -Read-only list of ObjectTypes. +Get a list of notification group objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasObjectTypesListRequest + @return ApiExtrasNotificationGroupsListRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { - return ApiExtrasObjectTypesListRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsList(ctx context.Context) ApiExtrasNotificationGroupsListRequest { + return ApiExtrasNotificationGroupsListRequest{ ApiService: a, ctx: ctx, } @@ -25010,47 +24747,35 @@ func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasO // Execute executes the request // -// @return PaginatedObjectTypeList -func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { +// @return PaginatedNotificationGroupList +func (a *ExtrasAPIService) ExtrasNotificationGroupsListExecute(r ApiExtrasNotificationGroupsListRequest) (*PaginatedNotificationGroupList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedObjectTypeList + localVarReturnValue *PaginatedNotificationGroupList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/" + localVarPath := localBasePath + "/api/extras/notification-groups/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.appLabel != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") - } - if r.id != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") - } if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } - if r.model != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") - } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } if r.ordering != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -25119,27 +24844,33 @@ func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesLi return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasObjectTypesRetrieveRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id int32 +type ApiExtrasNotificationGroupsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedNotificationGroupRequest *PatchedNotificationGroupRequest } -func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { - return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) PatchedNotificationGroupRequest(patchedNotificationGroupRequest PatchedNotificationGroupRequest) ApiExtrasNotificationGroupsPartialUpdateRequest { + r.patchedNotificationGroupRequest = &patchedNotificationGroupRequest + return r +} + +func (r ApiExtrasNotificationGroupsPartialUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsPartialUpdateExecute(r) } /* -ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve +ExtrasNotificationGroupsPartialUpdate Method for ExtrasNotificationGroupsPartialUpdate -Read-only list of ObjectTypes. +Patch a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this object type. - @return ApiExtrasObjectTypesRetrieveRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { - return ApiExtrasObjectTypesRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsPartialUpdateRequest { + return ApiExtrasNotificationGroupsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -25148,21 +24879,21 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int // Execute executes the request // -// @return ObjectType -func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsPartialUpdateExecute(r ApiExtrasNotificationGroupsPartialUpdateRequest) (*NotificationGroup, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *ObjectType + localVarReturnValue *NotificationGroup ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/object-types/{id}/" + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -25170,7 +24901,7 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -25186,6 +24917,8 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedNotificationGroupRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25237,56 +24970,303 @@ func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTyp return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationGroupsRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationGroupsRetrieveRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsRetrieveExecute(r) +} + +/* +ExtrasNotificationGroupsRetrieve Method for ExtrasNotificationGroupsRetrieve + +Get a notification group object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationGroupsRetrieveRequest { + return ApiExtrasNotificationGroupsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsRetrieveExecute(r ApiExtrasNotificationGroupsRetrieveRequest) (*NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NotificationGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationGroupsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + notificationGroupRequest *NotificationGroupRequest +} + +func (r ApiExtrasNotificationGroupsUpdateRequest) NotificationGroupRequest(notificationGroupRequest NotificationGroupRequest) ApiExtrasNotificationGroupsUpdateRequest { + r.notificationGroupRequest = ¬ificationGroupRequest return r } -func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) +func (r ApiExtrasNotificationGroupsUpdateRequest) Execute() (*NotificationGroup, *http.Response, error) { + return r.ApiService.ExtrasNotificationGroupsUpdateExecute(r) } /* -ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy +ExtrasNotificationGroupsUpdate Method for ExtrasNotificationGroupsUpdate -Delete a list of saved filter objects. +Put a notification group object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkDestroyRequest + @param id A unique integer value identifying this notification group. + @return ApiExtrasNotificationGroupsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { - return ApiExtrasSavedFiltersBulkDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdate(ctx context.Context, id int32) ApiExtrasNotificationGroupsUpdateRequest { + return ApiExtrasNotificationGroupsUpdateRequest{ ApiService: a, ctx: ctx, + id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { +// +// @return NotificationGroup +func (a *ExtrasAPIService) ExtrasNotificationGroupsUpdateExecute(r ApiExtrasNotificationGroupsUpdateRequest) (*NotificationGroup, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *NotificationGroup + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationGroupsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/notification-groups/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationGroupRequest == nil { + return localVarReturnValue, nil, reportError("notificationGroupRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationGroupRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest +} + +func (r ApiExtrasNotificationsBulkDestroyRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkDestroyRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiExtrasNotificationsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkDestroyExecute(r) +} + +/* +ExtrasNotificationsBulkDestroy Method for ExtrasNotificationsBulkDestroy + +Delete a list of notification objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroy(ctx context.Context) ApiExtrasNotificationsBulkDestroyRequest { + return ApiExtrasNotificationsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasNotificationsBulkDestroyExecute(r ApiExtrasNotificationsBulkDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25307,7 +25287,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25350,31 +25330,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSaved return localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkPartialUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) +func (r ApiExtrasNotificationsBulkPartialUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkPartialUpdateExecute(r) } /* -ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate +ExtrasNotificationsBulkPartialUpdate Method for ExtrasNotificationsBulkPartialUpdate -Patch a list of saved filter objects. +Patch a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkPartialUpdateRequest + @return ApiExtrasNotificationsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { - return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdate(ctx context.Context) ApiExtrasNotificationsBulkPartialUpdateRequest { + return ApiExtrasNotificationsBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25382,27 +25362,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Conte // Execute executes the request // -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkPartialUpdateExecute(r ApiExtrasNotificationsBulkPartialUpdateRequest) ([]Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SavedFilter + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25423,7 +25403,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25475,31 +25455,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtra return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersBulkUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *[]SavedFilterRequest +type ApiExtrasNotificationsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *[]NotificationRequest } -func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsBulkUpdateRequest) NotificationRequest(notificationRequest []NotificationRequest) ApiExtrasNotificationsBulkUpdateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) +func (r ApiExtrasNotificationsBulkUpdateRequest) Execute() ([]Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsBulkUpdateExecute(r) } /* -ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate +ExtrasNotificationsBulkUpdate Method for ExtrasNotificationsBulkUpdate -Put a list of saved filter objects. +Put a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersBulkUpdateRequest + @return ApiExtrasNotificationsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { - return ApiExtrasSavedFiltersBulkUpdateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdate(ctx context.Context) ApiExtrasNotificationsBulkUpdateRequest { + return ApiExtrasNotificationsBulkUpdateRequest{ ApiService: a, ctx: ctx, } @@ -25507,27 +25487,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) Api // Execute executes the request // -// @return []SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { +// @return []Notification +func (a *ExtrasAPIService) ExtrasNotificationsBulkUpdateExecute(r ApiExtrasNotificationsBulkUpdateRequest) ([]Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue []SavedFilter + localVarReturnValue []Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsBulkUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25548,7 +25528,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25600,31 +25580,31 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedF return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - savedFilterRequest *SavedFilterRequest +type ApiExtrasNotificationsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + notificationRequest *NotificationRequest } -func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasNotificationsCreateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsCreateRequest { + r.notificationRequest = ¬ificationRequest return r } -func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersCreateExecute(r) +func (r ApiExtrasNotificationsCreateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsCreateExecute(r) } /* -ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate +ExtrasNotificationsCreate Method for ExtrasNotificationsCreate -Post a list of saved filter objects. +Post a list of notification objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersCreateRequest + @return ApiExtrasNotificationsCreateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { - return ApiExtrasSavedFiltersCreateRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsCreate(ctx context.Context) ApiExtrasNotificationsCreateRequest { + return ApiExtrasNotificationsCreateRequest{ ApiService: a, ctx: ctx, } @@ -25632,27 +25612,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtr // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsCreateExecute(r ApiExtrasNotificationsCreateRequest) (*Notification, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Notification ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/notifications/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") } // to determine the Content-Type header @@ -25673,7 +25653,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.notificationRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -25725,27 +25705,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFilte return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersDestroyRequest struct { +type ApiExtrasNotificationsDestroyRequest struct { ctx context.Context ApiService *ExtrasAPIService id int32 } -func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) +func (r ApiExtrasNotificationsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasNotificationsDestroyExecute(r) } /* -ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy +ExtrasNotificationsDestroy Method for ExtrasNotificationsDestroy -Delete a saved filter object. +Delete a notification object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersDestroyRequest + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { - return ApiExtrasSavedFiltersDestroyRequest{ +func (a *ExtrasAPIService) ExtrasNotificationsDestroy(ctx context.Context, id int32) ApiExtrasNotificationsDestroyRequest { + return ApiExtrasNotificationsDestroyRequest{ ApiService: a, ctx: ctx, id: id, @@ -25753,19 +25733,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int } // Execute executes the request -func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { +func (a *ExtrasAPIService) ExtrasNotificationsDestroyExecute(r ApiExtrasNotificationsDestroyRequest) (*http.Response, error) { var ( localVarHTTPMethod = http.MethodDelete localVarPostBody interface{} formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsDestroy") if err != nil { return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/notifications/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -25831,555 +25811,3585 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFilt return localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - enabled *bool - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - objectType *string - objectTypeIc *string - objectTypeIe *string - objectTypeIew *string - objectTypeIsw *string - objectTypeN *string - objectTypeNic *string - objectTypeNie *string - objectTypeNiew *string - objectTypeNisw *string - objectTypeId *[]int32 - objectTypeIdN *[]int32 - offset *int32 - ordering *string - q *string - shared *bool - slug *[]string - slugEmpty *bool - slugIc *[]string - slugIe *[]string - slugIew *[]string - slugIsw *[]string - slugN *[]string - slugNic *[]string - slugNie *[]string - slugNiew *[]string - slugNisw *[]string - updatedByRequest *string - usable *bool - user *[]string - userN *[]string - userId *[]*int32 - userIdN *[]*int32 - weight *[]int32 - weightEmpty *bool - weightGt *[]int32 - weightGte *[]int32 - weightLt *[]int32 - weightLte *[]int32 - weightN *[]int32 +type ApiExtrasNotificationsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string } -func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { - r.created = &created +// Number of results to return per page. +func (r ApiExtrasNotificationsListRequest) Limit(limit int32) ApiExtrasNotificationsListRequest { + r.limit = &limit return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdEmpty = &createdEmpty +// The initial index from which to return the results. +func (r ApiExtrasNotificationsListRequest) Offset(offset int32) ApiExtrasNotificationsListRequest { + r.offset = &offset return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGt = &createdGt +// Which field to use when ordering the results. +func (r ApiExtrasNotificationsListRequest) Ordering(ordering string) ApiExtrasNotificationsListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdGte = &createdGte - return r +func (r ApiExtrasNotificationsListRequest) Execute() (*PaginatedNotificationList, *http.Response, error) { + return r.ApiService.ExtrasNotificationsListExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLt = &createdLt - return r -} +/* +ExtrasNotificationsList Method for ExtrasNotificationsList -func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdLte = &createdLte - return r -} +Get a list of notification objects. -func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { - r.createdN = &createdN - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasNotificationsListRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsList(ctx context.Context) ApiExtrasNotificationsListRequest { + return ApiExtrasNotificationsListRequest{ + ApiService: a, + ctx: ctx, + } } -func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { - r.createdByRequest = &createdByRequest - return r -} +// Execute executes the request +// +// @return PaginatedNotificationList +func (a *ExtrasAPIService) ExtrasNotificationsListExecute(r ApiExtrasNotificationsListRequest) (*PaginatedNotificationList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedNotificationList + ) -func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { - r.description = &description - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { - r.descriptionEmpty = &descriptionEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notifications/" -func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIc = &descriptionIc - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIe = &descriptionIe - return r -} + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIew = &descriptionIew - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionIsw = &descriptionIsw - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { - r.descriptionN = &descriptionN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNic = &descriptionNic - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNie = &descriptionNie - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNiew = &descriptionNiew - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { - r.descriptionNisw = &descriptionNisw - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { - r.enabled = &enabled - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { - r.id = &id - return r +type ApiExtrasNotificationsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedNotificationRequest *PatchedNotificationRequest } -func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { - r.idEmpty = &idEmpty +func (r ApiExtrasNotificationsPartialUpdateRequest) PatchedNotificationRequest(patchedNotificationRequest PatchedNotificationRequest) ApiExtrasNotificationsPartialUpdateRequest { + r.patchedNotificationRequest = &patchedNotificationRequest return r } -func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { - r.idGt = &idGt - return r +func (r ApiExtrasNotificationsPartialUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsPartialUpdateExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { - r.idGte = &idGte - return r -} +/* +ExtrasNotificationsPartialUpdate Method for ExtrasNotificationsPartialUpdate -func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { - r.idLt = &idLt - return r -} +Patch a notification object. -func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { - r.idLte = &idLte - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdate(ctx context.Context, id int32) ApiExtrasNotificationsPartialUpdateRequest { + return ApiExtrasNotificationsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { - r.idN = &idN - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsPartialUpdateExecute(r ApiExtrasNotificationsPartialUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdated = &lastUpdated - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedEmpty = &lastUpdatedEmpty - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGt = &lastUpdatedGt - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedGte = &lastUpdatedGte - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLt = &lastUpdatedLt - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedLte = &lastUpdatedLte - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { - r.lastUpdatedN = &lastUpdatedN - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedNotificationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } -// Number of results to return per page. -func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { - r.limit = &limit - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { - r.modifiedByRequest = &modifiedByRequest - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } -func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { - r.name = &name - return r -} + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { - r.nameEmpty = &nameEmpty - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { - r.nameIc = &nameIc - return r + return localVarReturnValue, localVarHTTPResponse, nil } -func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { - r.nameIe = &nameIe - return r +type ApiExtrasNotificationsRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 } -func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { - r.nameIew = &nameIew - return r +func (r ApiExtrasNotificationsRetrieveRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsRetrieveExecute(r) } -func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { - r.nameIsw = &nameIsw - return r -} +/* +ExtrasNotificationsRetrieve Method for ExtrasNotificationsRetrieve -func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { - r.nameN = &nameN - return r -} +Get a notification object. -func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { - r.nameNic = &nameNic - return r + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsRetrieve(ctx context.Context, id int32) ApiExtrasNotificationsRetrieveRequest { + return ApiExtrasNotificationsRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } } -func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { - r.nameNie = &nameNie - return r -} +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsRetrieveExecute(r ApiExtrasNotificationsRetrieveRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) -func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { - r.nameNiew = &nameNiew - return r -} + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { - r.nameNisw = &nameNisw - return r -} + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { - r.objectType = &objectType - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIc = &objectTypeIc - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIe = &objectTypeIe - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIew = &objectTypeIew - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeIsw = &objectTypeIsw - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasNotificationsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + notificationRequest *NotificationRequest +} + +func (r ApiExtrasNotificationsUpdateRequest) NotificationRequest(notificationRequest NotificationRequest) ApiExtrasNotificationsUpdateRequest { + r.notificationRequest = ¬ificationRequest + return r +} + +func (r ApiExtrasNotificationsUpdateRequest) Execute() (*Notification, *http.Response, error) { + return r.ApiService.ExtrasNotificationsUpdateExecute(r) +} + +/* +ExtrasNotificationsUpdate Method for ExtrasNotificationsUpdate + +Put a notification object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this notification. + @return ApiExtrasNotificationsUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasNotificationsUpdate(ctx context.Context, id int32) ApiExtrasNotificationsUpdateRequest { + return ApiExtrasNotificationsUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Notification +func (a *ExtrasAPIService) ExtrasNotificationsUpdateExecute(r ApiExtrasNotificationsUpdateRequest) (*Notification, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Notification + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasNotificationsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/notifications/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.notificationRequest == nil { + return localVarReturnValue, nil, reportError("notificationRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.notificationRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasObjectTypesListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + appLabel *string + id *int32 + limit *int32 + model *string + offset *int32 + ordering *string + q *string +} + +func (r ApiExtrasObjectTypesListRequest) AppLabel(appLabel string) ApiExtrasObjectTypesListRequest { + r.appLabel = &appLabel + return r +} + +func (r ApiExtrasObjectTypesListRequest) Id(id int32) ApiExtrasObjectTypesListRequest { + r.id = &id + return r +} + +// Number of results to return per page. +func (r ApiExtrasObjectTypesListRequest) Limit(limit int32) ApiExtrasObjectTypesListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasObjectTypesListRequest) Model(model string) ApiExtrasObjectTypesListRequest { + r.model = &model + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasObjectTypesListRequest) Offset(offset int32) ApiExtrasObjectTypesListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasObjectTypesListRequest) Ordering(ordering string) ApiExtrasObjectTypesListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasObjectTypesListRequest) Q(q string) ApiExtrasObjectTypesListRequest { + r.q = &q + return r +} + +func (r ApiExtrasObjectTypesListRequest) Execute() (*PaginatedObjectTypeList, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesListExecute(r) +} + +/* +ExtrasObjectTypesList Method for ExtrasObjectTypesList + +Read-only list of ObjectTypes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasObjectTypesListRequest +*/ +func (a *ExtrasAPIService) ExtrasObjectTypesList(ctx context.Context) ApiExtrasObjectTypesListRequest { + return ApiExtrasObjectTypesListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedObjectTypeList +func (a *ExtrasAPIService) ExtrasObjectTypesListExecute(r ApiExtrasObjectTypesListRequest) (*PaginatedObjectTypeList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedObjectTypeList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/object-types/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.appLabel != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "app_label", r.appLabel, "") + } + if r.id != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", r.id, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.model != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "model", r.model, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasObjectTypesRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasObjectTypesRetrieveRequest) Execute() (*ObjectType, *http.Response, error) { + return r.ApiService.ExtrasObjectTypesRetrieveExecute(r) +} + +/* +ExtrasObjectTypesRetrieve Method for ExtrasObjectTypesRetrieve + +Read-only list of ObjectTypes. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this object type. + @return ApiExtrasObjectTypesRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieve(ctx context.Context, id int32) ApiExtrasObjectTypesRetrieveRequest { + return ApiExtrasObjectTypesRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return ObjectType +func (a *ExtrasAPIService) ExtrasObjectTypesRetrieveExecute(r ApiExtrasObjectTypesRetrieveRequest) (*ObjectType, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *ObjectType + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasObjectTypesRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/object-types/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkDestroyRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkDestroyRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkDestroyExecute(r) +} + +/* +ExtrasSavedFiltersBulkDestroy Method for ExtrasSavedFiltersBulkDestroy + +Delete a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroy(ctx context.Context) ApiExtrasSavedFiltersBulkDestroyRequest { + return ApiExtrasSavedFiltersBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkDestroyExecute(r ApiExtrasSavedFiltersBulkDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkPartialUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkPartialUpdateExecute(r) +} + +/* +ExtrasSavedFiltersBulkPartialUpdate Method for ExtrasSavedFiltersBulkPartialUpdate + +Patch a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkPartialUpdateRequest { + return ApiExtrasSavedFiltersBulkPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkPartialUpdateExecute(r ApiExtrasSavedFiltersBulkPartialUpdateRequest) ([]SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *[]SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersBulkUpdateRequest) SavedFilterRequest(savedFilterRequest []SavedFilterRequest) ApiExtrasSavedFiltersBulkUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersBulkUpdateRequest) Execute() ([]SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersBulkUpdateExecute(r) +} + +/* +ExtrasSavedFiltersBulkUpdate Method for ExtrasSavedFiltersBulkUpdate + +Put a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersBulkUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdate(ctx context.Context) ApiExtrasSavedFiltersBulkUpdateRequest { + return ApiExtrasSavedFiltersBulkUpdateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return []SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersBulkUpdateExecute(r ApiExtrasSavedFiltersBulkUpdateRequest) ([]SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersBulkUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersCreateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersCreateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersCreateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersCreateExecute(r) +} + +/* +ExtrasSavedFiltersCreate Method for ExtrasSavedFiltersCreate + +Post a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersCreate(ctx context.Context) ApiExtrasSavedFiltersCreateRequest { + return ApiExtrasSavedFiltersCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersCreateExecute(r ApiExtrasSavedFiltersCreateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSavedFiltersDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSavedFiltersDestroyExecute(r) +} + +/* +ExtrasSavedFiltersDestroy Method for ExtrasSavedFiltersDestroy + +Delete a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroy(ctx context.Context, id int32) ApiExtrasSavedFiltersDestroyRequest { + return ApiExtrasSavedFiltersDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSavedFiltersDestroyExecute(r ApiExtrasSavedFiltersDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + enabled *bool + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + objectType *string + objectTypeIc *string + objectTypeIe *string + objectTypeIew *string + objectTypeIsw *string + objectTypeN *string + objectTypeNic *string + objectTypeNie *string + objectTypeNiew *string + objectTypeNisw *string + objectTypeId *[]int32 + objectTypeIdN *[]int32 + offset *int32 + ordering *string + q *string + shared *bool + slug *[]string + slugEmpty *bool + slugIc *[]string + slugIe *[]string + slugIew *[]string + slugIsw *[]string + slugN *[]string + slugNic *[]string + slugNie *[]string + slugNiew *[]string + slugNisw *[]string + updatedByRequest *string + usable *bool + user *[]string + userN *[]string + userId *[]*int32 + userIdN *[]*int32 + weight *[]int32 + weightEmpty *bool + weightGt *[]int32 + weightGte *[]int32 + weightLt *[]int32 + weightLte *[]int32 + weightN *[]int32 +} + +func (r ApiExtrasSavedFiltersListRequest) Created(created []time.Time) ApiExtrasSavedFiltersListRequest { + r.created = &created + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedEmpty(createdEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdEmpty = &createdEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedGt(createdGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGt = &createdGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedGte(createdGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdGte = &createdGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedLt(createdLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLt = &createdLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedLte(createdLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdLte = &createdLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedN(createdN []time.Time) ApiExtrasSavedFiltersListRequest { + r.createdN = &createdN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) CreatedByRequest(createdByRequest string) ApiExtrasSavedFiltersListRequest { + r.createdByRequest = &createdByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Description(description []string) ApiExtrasSavedFiltersListRequest { + r.description = &description + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionEmpty(descriptionEmpty bool) ApiExtrasSavedFiltersListRequest { + r.descriptionEmpty = &descriptionEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIc(descriptionIc []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIc = &descriptionIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIe(descriptionIe []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIe = &descriptionIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIew(descriptionIew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIew = &descriptionIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionIsw(descriptionIsw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionIsw = &descriptionIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionN(descriptionN []string) ApiExtrasSavedFiltersListRequest { + r.descriptionN = &descriptionN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNic(descriptionNic []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNic = &descriptionNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNie(descriptionNie []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNie = &descriptionNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNiew(descriptionNiew []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNiew = &descriptionNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) DescriptionNisw(descriptionNisw []string) ApiExtrasSavedFiltersListRequest { + r.descriptionNisw = &descriptionNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Enabled(enabled bool) ApiExtrasSavedFiltersListRequest { + r.enabled = &enabled + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Id(id []int32) ApiExtrasSavedFiltersListRequest { + r.id = &id + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdEmpty(idEmpty bool) ApiExtrasSavedFiltersListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdGt(idGt []int32) ApiExtrasSavedFiltersListRequest { + r.idGt = &idGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdGte(idGte []int32) ApiExtrasSavedFiltersListRequest { + r.idGte = &idGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdLt(idLt []int32) ApiExtrasSavedFiltersListRequest { + r.idLt = &idLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdLte(idLte []int32) ApiExtrasSavedFiltersListRequest { + r.idLte = &idLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) IdN(idN []int32) ApiExtrasSavedFiltersListRequest { + r.idN = &idN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdated(lastUpdated []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdated = &lastUpdated + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedEmpty(lastUpdatedEmpty []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedEmpty = &lastUpdatedEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGt(lastUpdatedGt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGt = &lastUpdatedGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedGte(lastUpdatedGte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedGte = &lastUpdatedGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLt(lastUpdatedLt []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLt = &lastUpdatedLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedLte(lastUpdatedLte []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedLte = &lastUpdatedLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) LastUpdatedN(lastUpdatedN []time.Time) ApiExtrasSavedFiltersListRequest { + r.lastUpdatedN = &lastUpdatedN + return r +} + +// Number of results to return per page. +func (r ApiExtrasSavedFiltersListRequest) Limit(limit int32) ApiExtrasSavedFiltersListRequest { + r.limit = &limit + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ModifiedByRequest(modifiedByRequest string) ApiExtrasSavedFiltersListRequest { + r.modifiedByRequest = &modifiedByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Name(name []string) ApiExtrasSavedFiltersListRequest { + r.name = &name + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameEmpty(nameEmpty bool) ApiExtrasSavedFiltersListRequest { + r.nameEmpty = &nameEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIc(nameIc []string) ApiExtrasSavedFiltersListRequest { + r.nameIc = &nameIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIe(nameIe []string) ApiExtrasSavedFiltersListRequest { + r.nameIe = &nameIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIew(nameIew []string) ApiExtrasSavedFiltersListRequest { + r.nameIew = &nameIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameIsw(nameIsw []string) ApiExtrasSavedFiltersListRequest { + r.nameIsw = &nameIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameN(nameN []string) ApiExtrasSavedFiltersListRequest { + r.nameN = &nameN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNic(nameNic []string) ApiExtrasSavedFiltersListRequest { + r.nameNic = &nameNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNie(nameNie []string) ApiExtrasSavedFiltersListRequest { + r.nameNie = &nameNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNiew(nameNiew []string) ApiExtrasSavedFiltersListRequest { + r.nameNiew = &nameNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) NameNisw(nameNisw []string) ApiExtrasSavedFiltersListRequest { + r.nameNisw = &nameNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectType(objectType string) ApiExtrasSavedFiltersListRequest { + r.objectType = &objectType + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIc(objectTypeIc string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIc = &objectTypeIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIe(objectTypeIe string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIe = &objectTypeIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIew(objectTypeIew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIew = &objectTypeIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIsw(objectTypeIsw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeIsw = &objectTypeIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { + r.objectTypeN = &objectTypeN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNic = &objectTypeNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNie = &objectTypeNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNiew = &objectTypeNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { + r.objectTypeNisw = &objectTypeNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeId = &objectTypeId + return r +} + +func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { + r.objectTypeIdN = &objectTypeIdN + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { + r.ordering = &ordering + return r +} + +// Search +func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { + r.q = &q + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { + r.shared = &shared + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { + r.slug = &slug + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { + r.slugEmpty = &slugEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { + r.slugIc = &slugIc + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { + r.slugIe = &slugIe + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { + r.slugIew = &slugIew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { + r.slugIsw = &slugIsw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { + r.slugN = &slugN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { + r.slugNic = &slugNic + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { + r.slugNie = &slugNie + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { + r.slugNiew = &slugNiew + return r +} + +func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { + r.slugNisw = &slugNisw + return r +} + +func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { + r.updatedByRequest = &updatedByRequest + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { + r.usable = &usable + return r +} + +// User (name) +func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { + r.user = &user + return r +} + +// User (name) +func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { + r.userN = &userN + return r +} + +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { + r.userId = &userId + return r +} + +// User (ID) +func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { + r.userIdN = &userIdN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { + r.weight = &weight + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { + r.weightEmpty = &weightEmpty + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { + r.weightGt = &weightGt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { + r.weightGte = &weightGte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { + r.weightLt = &weightLt + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { + r.weightLte = &weightLte + return r +} + +func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { + r.weightN = &weightN + return r +} + +func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersListExecute(r) +} + +/* +ExtrasSavedFiltersList Method for ExtrasSavedFiltersList + +Get a list of saved filter objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSavedFiltersListRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { + return ApiExtrasSavedFiltersListRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return PaginatedSavedFilterList +func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSavedFilterList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.created != nil { + t := *r.created + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") + } + } + if r.createdEmpty != nil { + t := *r.createdEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") + } + } + if r.createdGt != nil { + t := *r.createdGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") + } + } + if r.createdGte != nil { + t := *r.createdGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") + } + } + if r.createdLt != nil { + t := *r.createdLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") + } + } + if r.createdLte != nil { + t := *r.createdLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") + } + } + if r.createdN != nil { + t := *r.createdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") + } + } + if r.createdByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") + } + if r.description != nil { + t := *r.description + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") + } + } + if r.descriptionEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") + } + if r.descriptionIc != nil { + t := *r.descriptionIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") + } + } + if r.descriptionIe != nil { + t := *r.descriptionIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") + } + } + if r.descriptionIew != nil { + t := *r.descriptionIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") + } + } + if r.descriptionIsw != nil { + t := *r.descriptionIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") + } + } + if r.descriptionN != nil { + t := *r.descriptionN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") + } + } + if r.descriptionNic != nil { + t := *r.descriptionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") + } + } + if r.descriptionNie != nil { + t := *r.descriptionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") + } + } + if r.descriptionNiew != nil { + t := *r.descriptionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") + } + } + if r.descriptionNisw != nil { + t := *r.descriptionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") + } + } + if r.enabled != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") + } + if r.id != nil { + t := *r.id + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") + } + } + if r.idEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") + } + if r.idGt != nil { + t := *r.idGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") + } + } + if r.idGte != nil { + t := *r.idGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") + } + } + if r.idLt != nil { + t := *r.idLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") + } + } + if r.idLte != nil { + t := *r.idLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") + } + } + if r.idN != nil { + t := *r.idN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.modifiedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") + } + if r.name != nil { + t := *r.name + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") + } + } + if r.nameEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") + } + if r.nameIc != nil { + t := *r.nameIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") + } + } + if r.nameIe != nil { + t := *r.nameIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") + } + } + if r.nameIew != nil { + t := *r.nameIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") + } + } + if r.nameIsw != nil { + t := *r.nameIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") + } + } + if r.nameN != nil { + t := *r.nameN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") + } + } + if r.nameNic != nil { + t := *r.nameNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") + } + } + if r.nameNie != nil { + t := *r.nameNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") + } + } + if r.nameNiew != nil { + t := *r.nameNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") + } + } + if r.nameNisw != nil { + t := *r.nameNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") + } + } + if r.objectType != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") + } + if r.objectTypeIc != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") + } + if r.objectTypeIe != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") + } + if r.objectTypeIew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") + } + if r.objectTypeIsw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") + } + if r.objectTypeN != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") + } + if r.objectTypeNic != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") + } + if r.objectTypeNie != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") + } + if r.objectTypeNiew != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") + } + if r.objectTypeNisw != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") + } + if r.objectTypeId != nil { + t := *r.objectTypeId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") + } + } + if r.objectTypeIdN != nil { + t := *r.objectTypeIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") + } + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.shared != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") + } + if r.slug != nil { + t := *r.slug + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") + } + } + if r.slugEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") + } + if r.slugIc != nil { + t := *r.slugIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") + } + } + if r.slugIe != nil { + t := *r.slugIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") + } + } + if r.slugIew != nil { + t := *r.slugIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") + } + } + if r.slugIsw != nil { + t := *r.slugIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") + } + } + if r.slugN != nil { + t := *r.slugN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") + } + } + if r.slugNic != nil { + t := *r.slugNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") + } + } + if r.slugNie != nil { + t := *r.slugNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") + } + } + if r.slugNiew != nil { + t := *r.slugNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") + } + } + if r.slugNisw != nil { + t := *r.slugNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") + } + } + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.usable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") + } + if r.user != nil { + t := *r.user + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") + } + } + if r.userN != nil { + t := *r.userN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") + } + } + if r.userId != nil { + t := *r.userId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") + } + } + if r.userIdN != nil { + t := *r.userIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") + } + } + if r.weight != nil { + t := *r.weight + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") + } + } + if r.weightEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") + } + if r.weightGt != nil { + t := *r.weightGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") + } + } + if r.weightGte != nil { + t := *r.weightGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") + } + } + if r.weightLt != nil { + t := *r.weightLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") + } + } + if r.weightLte != nil { + t := *r.weightLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") + } + } + if r.weightN != nil { + t := *r.weightN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") + } + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedSavedFilterRequest *PatchedSavedFilterRequest +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { + r.patchedSavedFilterRequest = &patchedSavedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +} + +/* +ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate + +Patch a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { + return ApiExtrasSavedFiltersPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPatch + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.patchedSavedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersRetrieveRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 +} + +func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +} + +/* +ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve + +Get a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersRetrieveRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { + return ApiExtrasSavedFiltersRetrieveRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSavedFiltersUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + savedFilterRequest *SavedFilterRequest +} + +func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { + r.savedFilterRequest = &savedFilterRequest + return r +} + +func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { + return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +} + +/* +ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate + +Put a saved filter object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this saved filter. + @return ApiExtrasSavedFiltersUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { + return ApiExtrasSavedFiltersUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return SavedFilter +func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *SavedFilter + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.savedFilterRequest == nil { + return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.savedFilterRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService +} + +func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsCreateExecute(r) +} + +/* +ExtrasScriptsCreate Method for ExtrasScriptsCreate + +Post a list of script objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasScriptsCreateRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { + return ApiExtrasScriptsCreateRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +// +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPost + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasScriptsDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id string +} + +func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasScriptsDestroyExecute(r) +} + +/* +ExtrasScriptsDestroy Method for ExtrasScriptsDestroy + +Delete a script object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id + @return ApiExtrasScriptsDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { + return ApiExtrasScriptsDestroyRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeN(objectTypeN string) ApiExtrasSavedFiltersListRequest { - r.objectTypeN = &objectTypeN - return r -} + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNic(objectTypeNic string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNic = &objectTypeNic - return r -} + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNie(objectTypeNie string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNie = &objectTypeNie - return r -} + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNiew(objectTypeNiew string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNiew = &objectTypeNiew - return r -} + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeNisw(objectTypeNisw string) ApiExtrasSavedFiltersListRequest { - r.objectTypeNisw = &objectTypeNisw - return r -} + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeId(objectTypeId []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeId = &objectTypeId - return r -} + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } -func (r ApiExtrasSavedFiltersListRequest) ObjectTypeIdN(objectTypeIdN []int32) ApiExtrasSavedFiltersListRequest { - r.objectTypeIdN = &objectTypeIdN - return r -} + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } -// The initial index from which to return the results. -func (r ApiExtrasSavedFiltersListRequest) Offset(offset int32) ApiExtrasSavedFiltersListRequest { - r.offset = &offset - return r -} + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } -// Which field to use when ordering the results. -func (r ApiExtrasSavedFiltersListRequest) Ordering(ordering string) ApiExtrasSavedFiltersListRequest { - r.ordering = &ordering - return r + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil } -// Search -func (r ApiExtrasSavedFiltersListRequest) Q(q string) ApiExtrasSavedFiltersListRequest { - r.q = &q - return r +type ApiExtrasScriptsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isExecutable *bool + limit *int32 + moduleId *[]int32 + moduleIdN *[]int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string } -func (r ApiExtrasSavedFiltersListRequest) Shared(shared bool) ApiExtrasSavedFiltersListRequest { - r.shared = &shared +func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { + r.id = &id return r } -func (r ApiExtrasSavedFiltersListRequest) Slug(slug []string) ApiExtrasSavedFiltersListRequest { - r.slug = &slug +func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { + r.idEmpty = &idEmpty return r } -func (r ApiExtrasSavedFiltersListRequest) SlugEmpty(slugEmpty bool) ApiExtrasSavedFiltersListRequest { - r.slugEmpty = &slugEmpty +func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { + r.idGt = &idGt return r } -func (r ApiExtrasSavedFiltersListRequest) SlugIc(slugIc []string) ApiExtrasSavedFiltersListRequest { - r.slugIc = &slugIc +func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { + r.idGte = &idGte return r } -func (r ApiExtrasSavedFiltersListRequest) SlugIe(slugIe []string) ApiExtrasSavedFiltersListRequest { - r.slugIe = &slugIe +func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { + r.idLt = &idLt return r } -func (r ApiExtrasSavedFiltersListRequest) SlugIew(slugIew []string) ApiExtrasSavedFiltersListRequest { - r.slugIew = &slugIew +func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { + r.idLte = &idLte return r } -func (r ApiExtrasSavedFiltersListRequest) SlugIsw(slugIsw []string) ApiExtrasSavedFiltersListRequest { - r.slugIsw = &slugIsw +func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { + r.idN = &idN return r } -func (r ApiExtrasSavedFiltersListRequest) SlugN(slugN []string) ApiExtrasSavedFiltersListRequest { - r.slugN = &slugN +func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { + r.isExecutable = &isExecutable return r } -func (r ApiExtrasSavedFiltersListRequest) SlugNic(slugNic []string) ApiExtrasSavedFiltersListRequest { - r.slugNic = &slugNic +// Number of results to return per page. +func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { + r.limit = &limit return r } -func (r ApiExtrasSavedFiltersListRequest) SlugNie(slugNie []string) ApiExtrasSavedFiltersListRequest { - r.slugNie = &slugNie +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { + r.moduleId = &moduleId return r } -func (r ApiExtrasSavedFiltersListRequest) SlugNiew(slugNiew []string) ApiExtrasSavedFiltersListRequest { - r.slugNiew = &slugNiew +// Script module (ID) +func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { + r.moduleIdN = &moduleIdN return r } -func (r ApiExtrasSavedFiltersListRequest) SlugNisw(slugNisw []string) ApiExtrasSavedFiltersListRequest { - r.slugNisw = &slugNisw +func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { + r.name = &name return r } -func (r ApiExtrasSavedFiltersListRequest) UpdatedByRequest(updatedByRequest string) ApiExtrasSavedFiltersListRequest { - r.updatedByRequest = &updatedByRequest +func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { + r.nameEmpty = &nameEmpty return r } -func (r ApiExtrasSavedFiltersListRequest) Usable(usable bool) ApiExtrasSavedFiltersListRequest { - r.usable = &usable +func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { + r.nameIc = &nameIc return r } -// User (name) -func (r ApiExtrasSavedFiltersListRequest) User(user []string) ApiExtrasSavedFiltersListRequest { - r.user = &user +func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { + r.nameIe = &nameIe return r } -// User (name) -func (r ApiExtrasSavedFiltersListRequest) UserN(userN []string) ApiExtrasSavedFiltersListRequest { - r.userN = &userN +func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { + r.nameIew = &nameIew return r } -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserId(userId []*int32) ApiExtrasSavedFiltersListRequest { - r.userId = &userId +func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { + r.nameIsw = &nameIsw return r } -// User (ID) -func (r ApiExtrasSavedFiltersListRequest) UserIdN(userIdN []*int32) ApiExtrasSavedFiltersListRequest { - r.userIdN = &userIdN +func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { + r.nameN = &nameN return r } -func (r ApiExtrasSavedFiltersListRequest) Weight(weight []int32) ApiExtrasSavedFiltersListRequest { - r.weight = &weight +func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { + r.nameNic = &nameNic return r } -func (r ApiExtrasSavedFiltersListRequest) WeightEmpty(weightEmpty bool) ApiExtrasSavedFiltersListRequest { - r.weightEmpty = &weightEmpty +func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { + r.nameNie = &nameNie return r } -func (r ApiExtrasSavedFiltersListRequest) WeightGt(weightGt []int32) ApiExtrasSavedFiltersListRequest { - r.weightGt = &weightGt +func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { + r.nameNiew = &nameNiew return r } -func (r ApiExtrasSavedFiltersListRequest) WeightGte(weightGte []int32) ApiExtrasSavedFiltersListRequest { - r.weightGte = &weightGte +func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { + r.nameNisw = &nameNisw return r } -func (r ApiExtrasSavedFiltersListRequest) WeightLt(weightLt []int32) ApiExtrasSavedFiltersListRequest { - r.weightLt = &weightLt +// The initial index from which to return the results. +func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { + r.offset = &offset return r } -func (r ApiExtrasSavedFiltersListRequest) WeightLte(weightLte []int32) ApiExtrasSavedFiltersListRequest { - r.weightLte = &weightLte +// Which field to use when ordering the results. +func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { + r.ordering = &ordering return r } -func (r ApiExtrasSavedFiltersListRequest) WeightN(weightN []int32) ApiExtrasSavedFiltersListRequest { - r.weightN = &weightN +// Search +func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { + r.q = &q return r } -func (r ApiExtrasSavedFiltersListRequest) Execute() (*PaginatedSavedFilterList, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersListExecute(r) +func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { + return r.ApiService.ExtrasScriptsListExecute(r) } /* -ExtrasSavedFiltersList Method for ExtrasSavedFiltersList +ExtrasScriptsList Method for ExtrasScriptsList -Get a list of saved filter objects. +Get a list of script objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasSavedFiltersListRequest + @return ApiExtrasScriptsListRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtrasSavedFiltersListRequest { - return ApiExtrasSavedFiltersListRequest{ +func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { + return ApiExtrasScriptsListRequest{ ApiService: a, ctx: ctx, } @@ -26387,222 +29397,26 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersList(ctx context.Context) ApiExtras // Execute executes the request // -// @return PaginatedSavedFilterList -func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFiltersListRequest) (*PaginatedSavedFilterList, *http.Response, error) { +// @return PaginatedScriptList +func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedSavedFilterList + localVarReturnValue *PaginatedScriptList ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/" + localVarPath := localBasePath + "/api/extras/scripts/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.created != nil { - t := *r.created - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created", t, "multi") - } - } - if r.createdEmpty != nil { - t := *r.createdEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__empty", t, "multi") - } - } - if r.createdGt != nil { - t := *r.createdGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gt", t, "multi") - } - } - if r.createdGte != nil { - t := *r.createdGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__gte", t, "multi") - } - } - if r.createdLt != nil { - t := *r.createdLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lt", t, "multi") - } - } - if r.createdLte != nil { - t := *r.createdLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__lte", t, "multi") - } - } - if r.createdN != nil { - t := *r.createdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "created__n", t, "multi") - } - } - if r.createdByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "created_by_request", r.createdByRequest, "") - } - if r.description != nil { - t := *r.description - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description", t, "multi") - } - } - if r.descriptionEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__empty", r.descriptionEmpty, "") - } - if r.descriptionIc != nil { - t := *r.descriptionIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ic", t, "multi") - } - } - if r.descriptionIe != nil { - t := *r.descriptionIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__ie", t, "multi") - } - } - if r.descriptionIew != nil { - t := *r.descriptionIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__iew", t, "multi") - } - } - if r.descriptionIsw != nil { - t := *r.descriptionIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__isw", t, "multi") - } - } - if r.descriptionN != nil { - t := *r.descriptionN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__n", t, "multi") - } - } - if r.descriptionNic != nil { - t := *r.descriptionNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nic", t, "multi") - } - } - if r.descriptionNie != nil { - t := *r.descriptionNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nie", t, "multi") - } - } - if r.descriptionNiew != nil { - t := *r.descriptionNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__niew", t, "multi") - } - } - if r.descriptionNisw != nil { - t := *r.descriptionNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") - } - } - if r.enabled != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "enabled", r.enabled, "") - } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -26672,89 +29486,34 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") - } - } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") - } - } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") - } - } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") - } - } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") - } - } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.isExecutable != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.moduleId != nil { + t := *r.moduleId if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.moduleIdN != nil { + t := *r.moduleIdN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.modifiedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") - } if r.name != nil { t := *r.name if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -26868,58 +29627,6 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } - if r.objectType != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type", r.objectType, "") - } - if r.objectTypeIc != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ic", r.objectTypeIc, "") - } - if r.objectTypeIe != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__ie", r.objectTypeIe, "") - } - if r.objectTypeIew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__iew", r.objectTypeIew, "") - } - if r.objectTypeIsw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__isw", r.objectTypeIsw, "") - } - if r.objectTypeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__n", r.objectTypeN, "") - } - if r.objectTypeNic != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nic", r.objectTypeNic, "") - } - if r.objectTypeNie != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nie", r.objectTypeNie, "") - } - if r.objectTypeNiew != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__niew", r.objectTypeNiew, "") - } - if r.objectTypeNisw != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type__nisw", r.objectTypeNisw, "") - } - if r.objectTypeId != nil { - t := *r.objectTypeId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id", t, "multi") - } - } - if r.objectTypeIdN != nil { - t := *r.objectTypeIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "object_type_id__n", t, "multi") - } - } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -26929,241 +29636,6 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } - if r.shared != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "shared", r.shared, "") - } - if r.slug != nil { - t := *r.slug - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug", t, "multi") - } - } - if r.slugEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__empty", r.slugEmpty, "") - } - if r.slugIc != nil { - t := *r.slugIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ic", t, "multi") - } - } - if r.slugIe != nil { - t := *r.slugIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__ie", t, "multi") - } - } - if r.slugIew != nil { - t := *r.slugIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__iew", t, "multi") - } - } - if r.slugIsw != nil { - t := *r.slugIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__isw", t, "multi") - } - } - if r.slugN != nil { - t := *r.slugN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__n", t, "multi") - } - } - if r.slugNic != nil { - t := *r.slugNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nic", t, "multi") - } - } - if r.slugNie != nil { - t := *r.slugNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nie", t, "multi") - } - } - if r.slugNiew != nil { - t := *r.slugNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__niew", t, "multi") - } - } - if r.slugNisw != nil { - t := *r.slugNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "slug__nisw", t, "multi") - } - } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.usable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "usable", r.usable, "") - } - if r.user != nil { - t := *r.user - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user", t, "multi") - } - } - if r.userN != nil { - t := *r.userN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user__n", t, "multi") - } - } - if r.userId != nil { - t := *r.userId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id", t, "multi") - } - } - if r.userIdN != nil { - t := *r.userIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "user_id__n", t, "multi") - } - } - if r.weight != nil { - t := *r.weight - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight", t, "multi") - } - } - if r.weightEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__empty", r.weightEmpty, "") - } - if r.weightGt != nil { - t := *r.weightGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gt", t, "multi") - } - } - if r.weightGte != nil { - t := *r.weightGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__gte", t, "multi") - } - } - if r.weightLt != nil { - t := *r.weightLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lt", t, "multi") - } - } - if r.weightLte != nil { - t := *r.weightLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__lte", t, "multi") - } - } - if r.weightN != nil { - t := *r.weightN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "weight__n", t, "multi") - } - } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -27232,33 +29704,33 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersListExecute(r ApiExtrasSavedFilters return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersPartialUpdateRequest struct { +type ApiExtrasScriptsPartialUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 - patchedSavedFilterRequest *PatchedSavedFilterRequest + id string + patchedScriptInputRequest *PatchedScriptInputRequest } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) PatchedSavedFilterRequest(patchedSavedFilterRequest PatchedSavedFilterRequest) ApiExtrasSavedFiltersPartialUpdateRequest { - r.patchedSavedFilterRequest = &patchedSavedFilterRequest +func (r ApiExtrasScriptsPartialUpdateRequest) PatchedScriptInputRequest(patchedScriptInputRequest PatchedScriptInputRequest) ApiExtrasScriptsPartialUpdateRequest { + r.patchedScriptInputRequest = &patchedScriptInputRequest return r } -func (r ApiExtrasSavedFiltersPartialUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersPartialUpdateExecute(r) +func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) } /* -ExtrasSavedFiltersPartialUpdate Method for ExtrasSavedFiltersPartialUpdate +ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate -Patch a saved filter object. +Patch a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersPartialUpdateRequest + @param id + @return ApiExtrasScriptsPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersPartialUpdateRequest { - return ApiExtrasSavedFiltersPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { + return ApiExtrasScriptsPartialUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -27267,21 +29739,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdate(ctx context.Context, // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSavedFiltersPartialUpdateRequest) (*SavedFilter, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27306,7 +29778,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.patchedSavedFilterRequest + localVarPostBody = r.patchedScriptInputRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27358,27 +29830,27 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersPartialUpdateExecute(r ApiExtrasSav return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersRetrieveRequest struct { +type ApiExtrasScriptsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 + id string } -func (r ApiExtrasSavedFiltersRetrieveRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersRetrieveExecute(r) +func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsRetrieveExecute(r) } /* -ExtrasSavedFiltersRetrieve Method for ExtrasSavedFiltersRetrieve +ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve -Get a saved filter object. +Get a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersRetrieveRequest + @param id + @return ApiExtrasScriptsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id int32) ApiExtrasSavedFiltersRetrieveRequest { - return ApiExtrasSavedFiltersRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { + return ApiExtrasScriptsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -27387,21 +29859,21 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieve(ctx context.Context, id in // Execute executes the request // -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFiltersRetrieveRequest) (*SavedFilter, *http.Response, error) { +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *SavedFilter + localVarReturnValue *Script ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" + localVarPath := localBasePath + "/api/extras/scripts/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -27476,33 +29948,33 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersRetrieveExecute(r ApiExtrasSavedFil return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasSavedFiltersUpdateRequest struct { +type ApiExtrasScriptsUpdateRequest struct { ctx context.Context ApiService *ExtrasAPIService - id int32 - savedFilterRequest *SavedFilterRequest + id string + scriptInputRequest *ScriptInputRequest } -func (r ApiExtrasSavedFiltersUpdateRequest) SavedFilterRequest(savedFilterRequest SavedFilterRequest) ApiExtrasSavedFiltersUpdateRequest { - r.savedFilterRequest = &savedFilterRequest +func (r ApiExtrasScriptsUpdateRequest) ScriptInputRequest(scriptInputRequest ScriptInputRequest) ApiExtrasScriptsUpdateRequest { + r.scriptInputRequest = &scriptInputRequest return r } -func (r ApiExtrasSavedFiltersUpdateRequest) Execute() (*SavedFilter, *http.Response, error) { - return r.ApiService.ExtrasSavedFiltersUpdateExecute(r) +func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { + return r.ApiService.ExtrasScriptsUpdateExecute(r) } /* -ExtrasSavedFiltersUpdate Method for ExtrasSavedFiltersUpdate +ExtrasScriptsUpdate Method for ExtrasScriptsUpdate -Put a saved filter object. +Put a script object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id A unique integer value identifying this saved filter. - @return ApiExtrasSavedFiltersUpdateRequest + @param id + @return ApiExtrasScriptsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int32) ApiExtrasSavedFiltersUpdateRequest { - return ApiExtrasSavedFiltersUpdateRequest{ +func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { + return ApiExtrasScriptsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -27510,29 +29982,151 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdate(ctx context.Context, id int3 } // Execute executes the request -// -// @return SavedFilter -func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFiltersUpdateRequest) (*SavedFilter, *http.Response, error) { +// +// @return Script +func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *Script + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + if r.scriptInputRequest == nil { + return localVarReturnValue, nil, reportError("scriptInputRequest is required and must be specified") + } + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + // body params + localVarPostBody = r.scriptInputRequest + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsBulkDestroyRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest +} + +func (r ApiExtrasSubscriptionsBulkDestroyRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkDestroyRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkDestroyExecute(r) +} + +/* +ExtrasSubscriptionsBulkDestroy Method for ExtrasSubscriptionsBulkDestroy + +Delete a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsBulkDestroyRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroy(ctx context.Context) ApiExtrasSubscriptionsBulkDestroyRequest { + return ApiExtrasSubscriptionsBulkDestroyRequest{ + ApiService: a, + ctx: ctx, + } +} + +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkDestroyExecute(r ApiExtrasSubscriptionsBulkDestroyRequest) (*http.Response, error) { var ( - localVarHTTPMethod = http.MethodPut - localVarPostBody interface{} - formFiles []formFile - localVarReturnValue *SavedFilter + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSavedFiltersUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkDestroy") if err != nil { - return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + return nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/saved-filters/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - if r.savedFilterRequest == nil { - return localVarReturnValue, nil, reportError("savedFilterRequest is required and must be specified") + if r.subscriptionRequest == nil { + return nil, reportError("subscriptionRequest is required and must be specified") } // to determine the Content-Type header @@ -27545,7 +30139,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{"application/json"} + localVarHTTPHeaderAccepts := []string{} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) @@ -27553,7 +30147,7 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } // body params - localVarPostBody = r.savedFilterRequest + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27570,19 +30164,19 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return localVarReturnValue, nil, err + return nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarReturnValue, localVarHTTPResponse, err + return localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -27590,40 +30184,37 @@ func (a *ExtrasAPIService) ExtrasSavedFiltersUpdateExecute(r ApiExtrasSavedFilte body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarReturnValue, localVarHTTPResponse, newErr + return localVarHTTPResponse, newErr } - err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) - if err != nil { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: err.Error(), - } - return localVarReturnValue, localVarHTTPResponse, newErr - } + return localVarHTTPResponse, nil +} - return localVarReturnValue, localVarHTTPResponse, nil +type ApiExtrasSubscriptionsBulkPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest } -type ApiExtrasScriptsCreateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r } -func (r ApiExtrasScriptsCreateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsCreateExecute(r) +func (r ApiExtrasSubscriptionsBulkPartialUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkPartialUpdateExecute(r) } /* -ExtrasScriptsCreate Method for ExtrasScriptsCreate +ExtrasSubscriptionsBulkPartialUpdate Method for ExtrasSubscriptionsBulkPartialUpdate -Post a list of script objects. +Patch a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsCreateRequest + @return ApiExtrasSubscriptionsBulkPartialUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScriptsCreateRequest { - return ApiExtrasScriptsCreateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkPartialUpdateRequest { + return ApiExtrasSubscriptionsBulkPartialUpdateRequest{ ApiService: a, ctx: ctx, } @@ -27631,28 +30222,31 @@ func (a *ExtrasAPIService) ExtrasScriptsCreate(ctx context.Context) ApiExtrasScr // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRequest) (*Script, *http.Response, error) { +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkPartialUpdateExecute(r ApiExtrasSubscriptionsBulkPartialUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodPost + localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsCreate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -27668,6 +30262,8 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27719,55 +30315,63 @@ func (a *ExtrasAPIService) ExtrasScriptsCreateExecute(r ApiExtrasScriptsCreateRe return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsDestroyRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsBulkUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *[]SubscriptionRequest } -func (r ApiExtrasScriptsDestroyRequest) Execute() (*http.Response, error) { - return r.ApiService.ExtrasScriptsDestroyExecute(r) +func (r ApiExtrasSubscriptionsBulkUpdateRequest) SubscriptionRequest(subscriptionRequest []SubscriptionRequest) ApiExtrasSubscriptionsBulkUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsBulkUpdateRequest) Execute() ([]Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsBulkUpdateExecute(r) } /* -ExtrasScriptsDestroy Method for ExtrasScriptsDestroy +ExtrasSubscriptionsBulkUpdate Method for ExtrasSubscriptionsBulkUpdate -Delete a script object. +Put a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsDestroyRequest + @return ApiExtrasSubscriptionsBulkUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsDestroy(ctx context.Context, id string) ApiExtrasScriptsDestroyRequest { - return ApiExtrasScriptsDestroyRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdate(ctx context.Context) ApiExtrasSubscriptionsBulkUpdateRequest { + return ApiExtrasSubscriptionsBulkUpdateRequest{ ApiService: a, ctx: ctx, - id: id, } } // Execute executes the request -func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroyRequest) (*http.Response, error) { +// +// @return []Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsBulkUpdateExecute(r ApiExtrasSubscriptionsBulkUpdateRequest) ([]Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodDelete - localVarPostBody interface{} - formFiles []formFile + localVarHTTPMethod = http.MethodPut + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue []Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsDestroy") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsBulkUpdate") if err != nil { - return nil, &GenericOpenAPIError{error: err.Error()} + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" - localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -27776,13 +30380,15 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} + localVarHTTPHeaderAccepts := []string{"application/json"} // set Accept header localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -27799,19 +30405,19 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy } req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) if err != nil { - return nil, err + return localVarReturnValue, nil, err } localVarHTTPResponse, err := a.client.callAPI(req) if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) localVarHTTPResponse.Body.Close() localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) if err != nil { - return localVarHTTPResponse, err + return localVarReturnValue, localVarHTTPResponse, err } if localVarHTTPResponse.StatusCode >= 300 { @@ -27819,187 +30425,46 @@ func (a *ExtrasAPIService) ExtrasScriptsDestroyExecute(r ApiExtrasScriptsDestroy body: localVarBody, error: localVarHTTPResponse.Status, } - return localVarHTTPResponse, newErr + return localVarReturnValue, localVarHTTPResponse, newErr } - return localVarHTTPResponse, nil -} - -type ApiExtrasScriptsListRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isExecutable *bool - limit *int32 - moduleId *[]int32 - moduleIdN *[]int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string -} - -func (r ApiExtrasScriptsListRequest) Id(id []int32) ApiExtrasScriptsListRequest { - r.id = &id - return r -} - -func (r ApiExtrasScriptsListRequest) IdEmpty(idEmpty bool) ApiExtrasScriptsListRequest { - r.idEmpty = &idEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) IdGt(idGt []int32) ApiExtrasScriptsListRequest { - r.idGt = &idGt - return r -} - -func (r ApiExtrasScriptsListRequest) IdGte(idGte []int32) ApiExtrasScriptsListRequest { - r.idGte = &idGte - return r -} - -func (r ApiExtrasScriptsListRequest) IdLt(idLt []int32) ApiExtrasScriptsListRequest { - r.idLt = &idLt - return r -} - -func (r ApiExtrasScriptsListRequest) IdLte(idLte []int32) ApiExtrasScriptsListRequest { - r.idLte = &idLte - return r -} - -func (r ApiExtrasScriptsListRequest) IdN(idN []int32) ApiExtrasScriptsListRequest { - r.idN = &idN - return r -} - -func (r ApiExtrasScriptsListRequest) IsExecutable(isExecutable bool) ApiExtrasScriptsListRequest { - r.isExecutable = &isExecutable - return r -} - -// Number of results to return per page. -func (r ApiExtrasScriptsListRequest) Limit(limit int32) ApiExtrasScriptsListRequest { - r.limit = &limit - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleId(moduleId []int32) ApiExtrasScriptsListRequest { - r.moduleId = &moduleId - return r -} - -// Script module (ID) -func (r ApiExtrasScriptsListRequest) ModuleIdN(moduleIdN []int32) ApiExtrasScriptsListRequest { - r.moduleIdN = &moduleIdN - return r -} - -func (r ApiExtrasScriptsListRequest) Name(name []string) ApiExtrasScriptsListRequest { - r.name = &name - return r -} - -func (r ApiExtrasScriptsListRequest) NameEmpty(nameEmpty bool) ApiExtrasScriptsListRequest { - r.nameEmpty = &nameEmpty - return r -} - -func (r ApiExtrasScriptsListRequest) NameIc(nameIc []string) ApiExtrasScriptsListRequest { - r.nameIc = &nameIc - return r -} - -func (r ApiExtrasScriptsListRequest) NameIe(nameIe []string) ApiExtrasScriptsListRequest { - r.nameIe = &nameIe - return r -} - -func (r ApiExtrasScriptsListRequest) NameIew(nameIew []string) ApiExtrasScriptsListRequest { - r.nameIew = &nameIew - return r -} - -func (r ApiExtrasScriptsListRequest) NameIsw(nameIsw []string) ApiExtrasScriptsListRequest { - r.nameIsw = &nameIsw - return r -} - -func (r ApiExtrasScriptsListRequest) NameN(nameN []string) ApiExtrasScriptsListRequest { - r.nameN = &nameN - return r -} - -func (r ApiExtrasScriptsListRequest) NameNic(nameNic []string) ApiExtrasScriptsListRequest { - r.nameNic = &nameNic - return r -} - -func (r ApiExtrasScriptsListRequest) NameNie(nameNie []string) ApiExtrasScriptsListRequest { - r.nameNie = &nameNie - return r -} - -func (r ApiExtrasScriptsListRequest) NameNiew(nameNiew []string) ApiExtrasScriptsListRequest { - r.nameNiew = &nameNiew - return r -} - -func (r ApiExtrasScriptsListRequest) NameNisw(nameNisw []string) ApiExtrasScriptsListRequest { - r.nameNisw = &nameNisw - return r -} + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } -// The initial index from which to return the results. -func (r ApiExtrasScriptsListRequest) Offset(offset int32) ApiExtrasScriptsListRequest { - r.offset = &offset - return r + return localVarReturnValue, localVarHTTPResponse, nil } -// Which field to use when ordering the results. -func (r ApiExtrasScriptsListRequest) Ordering(ordering string) ApiExtrasScriptsListRequest { - r.ordering = &ordering - return r +type ApiExtrasSubscriptionsCreateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + subscriptionRequest *SubscriptionRequest } -// Search -func (r ApiExtrasScriptsListRequest) Q(q string) ApiExtrasScriptsListRequest { - r.q = &q +func (r ApiExtrasSubscriptionsCreateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsCreateRequest { + r.subscriptionRequest = &subscriptionRequest return r } -func (r ApiExtrasScriptsListRequest) Execute() (*PaginatedScriptList, *http.Response, error) { - return r.ApiService.ExtrasScriptsListExecute(r) +func (r ApiExtrasSubscriptionsCreateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsCreateExecute(r) } /* -ExtrasScriptsList Method for ExtrasScriptsList +ExtrasSubscriptionsCreate Method for ExtrasSubscriptionsCreate -Get a list of script objects. +Post a list of subscription objects. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @return ApiExtrasScriptsListRequest + @return ApiExtrasSubscriptionsCreateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScriptsListRequest { - return ApiExtrasScriptsListRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsCreate(ctx context.Context) ApiExtrasSubscriptionsCreateRequest { + return ApiExtrasSubscriptionsCreateRequest{ ApiService: a, ctx: ctx, } @@ -28007,247 +30472,31 @@ func (a *ExtrasAPIService) ExtrasScriptsList(ctx context.Context) ApiExtrasScrip // Execute executes the request // -// @return PaginatedScriptList -func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListRequest) (*PaginatedScriptList, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsCreateExecute(r ApiExtrasSubscriptionsCreateRequest) (*Subscription, *http.Response, error) { var ( - localVarHTTPMethod = http.MethodGet + localVarHTTPMethod = http.MethodPost localVarPostBody interface{} formFiles []formFile - localVarReturnValue *PaginatedScriptList + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsList") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsCreate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/" + localVarPath := localBasePath + "/api/extras/subscriptions/" localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} - - if r.id != nil { - t := *r.id - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id", t, "multi") - } - } - if r.idEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__empty", r.idEmpty, "") - } - if r.idGt != nil { - t := *r.idGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gt", t, "multi") - } - } - if r.idGte != nil { - t := *r.idGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__gte", t, "multi") - } - } - if r.idLt != nil { - t := *r.idLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lt", t, "multi") - } - } - if r.idLte != nil { - t := *r.idLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__lte", t, "multi") - } - } - if r.idN != nil { - t := *r.idN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "id__n", t, "multi") - } - } - if r.isExecutable != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "is_executable", r.isExecutable, "") - } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.moduleId != nil { - t := *r.moduleId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id", t, "multi") - } - } - if r.moduleIdN != nil { - t := *r.moduleIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "module_id__n", t, "multi") - } - } - if r.name != nil { - t := *r.name - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name", t, "multi") - } - } - if r.nameEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__empty", r.nameEmpty, "") - } - if r.nameIc != nil { - t := *r.nameIc - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ic", t, "multi") - } - } - if r.nameIe != nil { - t := *r.nameIe - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__ie", t, "multi") - } - } - if r.nameIew != nil { - t := *r.nameIew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__iew", t, "multi") - } - } - if r.nameIsw != nil { - t := *r.nameIsw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__isw", t, "multi") - } - } - if r.nameN != nil { - t := *r.nameN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__n", t, "multi") - } - } - if r.nameNic != nil { - t := *r.nameNic - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nic", t, "multi") - } - } - if r.nameNie != nil { - t := *r.nameNie - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nie", t, "multi") - } - } - if r.nameNiew != nil { - t := *r.nameNiew - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__niew", t, "multi") - } - } - if r.nameNisw != nil { - t := *r.nameNisw - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") - } - } - if r.offset != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") - } - if r.ordering != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") - } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") } + // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28263,6 +30512,8 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28314,50 +30565,306 @@ func (a *ExtrasAPIService) ExtrasScriptsListExecute(r ApiExtrasScriptsListReques return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsPartialUpdateRequest struct { +type ApiExtrasSubscriptionsDestroyRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string + id int32 } -func (r ApiExtrasScriptsPartialUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsPartialUpdateExecute(r) +func (r ApiExtrasSubscriptionsDestroyRequest) Execute() (*http.Response, error) { + return r.ApiService.ExtrasSubscriptionsDestroyExecute(r) } /* -ExtrasScriptsPartialUpdate Method for ExtrasScriptsPartialUpdate +ExtrasSubscriptionsDestroy Method for ExtrasSubscriptionsDestroy -Patch a script object. +Delete a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsPartialUpdateRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsDestroyRequest */ -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdate(ctx context.Context, id string) ApiExtrasScriptsPartialUpdateRequest { - return ApiExtrasScriptsPartialUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroy(ctx context.Context, id int32) ApiExtrasSubscriptionsDestroyRequest { + return ApiExtrasSubscriptionsDestroyRequest{ ApiService: a, ctx: ctx, id: id, } } +// Execute executes the request +func (a *ExtrasAPIService) ExtrasSubscriptionsDestroyExecute(r ApiExtrasSubscriptionsDestroyRequest) (*http.Response, error) { + var ( + localVarHTTPMethod = http.MethodDelete + localVarPostBody interface{} + formFiles []formFile + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsDestroy") + if err != nil { + return nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" + localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsListRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + limit *int32 + offset *int32 + ordering *string +} + +// Number of results to return per page. +func (r ApiExtrasSubscriptionsListRequest) Limit(limit int32) ApiExtrasSubscriptionsListRequest { + r.limit = &limit + return r +} + +// The initial index from which to return the results. +func (r ApiExtrasSubscriptionsListRequest) Offset(offset int32) ApiExtrasSubscriptionsListRequest { + r.offset = &offset + return r +} + +// Which field to use when ordering the results. +func (r ApiExtrasSubscriptionsListRequest) Ordering(ordering string) ApiExtrasSubscriptionsListRequest { + r.ordering = &ordering + return r +} + +func (r ApiExtrasSubscriptionsListRequest) Execute() (*PaginatedSubscriptionList, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsListExecute(r) +} + +/* +ExtrasSubscriptionsList Method for ExtrasSubscriptionsList + +Get a list of subscription objects. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @return ApiExtrasSubscriptionsListRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsList(ctx context.Context) ApiExtrasSubscriptionsListRequest { + return ApiExtrasSubscriptionsListRequest{ + ApiService: a, + ctx: ctx, + } +} + // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsPartialUpdateRequest) (*Script, *http.Response, error) { +// @return PaginatedSubscriptionList +func (a *ExtrasAPIService) ExtrasSubscriptionsListExecute(r ApiExtrasSubscriptionsListRequest) (*PaginatedSubscriptionList, *http.Response, error) { + var ( + localVarHTTPMethod = http.MethodGet + localVarPostBody interface{} + formFiles []formFile + localVarReturnValue *PaginatedSubscriptionList + ) + + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsList") + if err != nil { + return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} + } + + localVarPath := localBasePath + "/api/extras/subscriptions/" + + localVarHeaderParams := make(map[string]string) + localVarQueryParams := url.Values{} + localVarFormParams := url.Values{} + + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.offset != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") + } + if r.ordering != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "ordering", r.ordering, "") + } + // to determine the Content-Type header + localVarHTTPContentTypes := []string{} + + // set Content-Type header + localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) + if localVarHTTPContentType != "" { + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{"application/json"} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return localVarReturnValue, nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarReturnValue, localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + err = a.client.decode(&localVarReturnValue, localVarBody, localVarHTTPResponse.Header.Get("Content-Type")) + if err != nil { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: err.Error(), + } + return localVarReturnValue, localVarHTTPResponse, newErr + } + + return localVarReturnValue, localVarHTTPResponse, nil +} + +type ApiExtrasSubscriptionsPartialUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + patchedSubscriptionRequest *PatchedSubscriptionRequest +} + +func (r ApiExtrasSubscriptionsPartialUpdateRequest) PatchedSubscriptionRequest(patchedSubscriptionRequest PatchedSubscriptionRequest) ApiExtrasSubscriptionsPartialUpdateRequest { + r.patchedSubscriptionRequest = &patchedSubscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsPartialUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsPartialUpdateExecute(r) +} + +/* +ExtrasSubscriptionsPartialUpdate Method for ExtrasSubscriptionsPartialUpdate + +Patch a subscription object. + + @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsPartialUpdateRequest +*/ +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsPartialUpdateRequest { + return ApiExtrasSubscriptionsPartialUpdateRequest{ + ApiService: a, + ctx: ctx, + id: id, + } +} + +// Execute executes the request +// +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsPartialUpdateExecute(r ApiExtrasSubscriptionsPartialUpdateRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPatch localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsPartialUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsPartialUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28365,7 +30872,7 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP localVarFormParams := url.Values{} // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28381,6 +30888,8 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.patchedSubscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -28432,27 +30941,27 @@ func (a *ExtrasAPIService) ExtrasScriptsPartialUpdateExecute(r ApiExtrasScriptsP return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsRetrieveRequest struct { +type ApiExtrasSubscriptionsRetrieveRequest struct { ctx context.Context ApiService *ExtrasAPIService - id string + id int32 } -func (r ApiExtrasScriptsRetrieveRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsRetrieveExecute(r) +func (r ApiExtrasSubscriptionsRetrieveRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsRetrieveExecute(r) } /* -ExtrasScriptsRetrieve Method for ExtrasScriptsRetrieve +ExtrasSubscriptionsRetrieve Method for ExtrasSubscriptionsRetrieve -Get a script object. +Get a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsRetrieveRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsRetrieveRequest */ -func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) ApiExtrasScriptsRetrieveRequest { - return ApiExtrasScriptsRetrieveRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieve(ctx context.Context, id int32) ApiExtrasSubscriptionsRetrieveRequest { + return ApiExtrasSubscriptionsRetrieveRequest{ ApiService: a, ctx: ctx, id: id, @@ -28461,21 +30970,21 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieve(ctx context.Context, id string) // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrieveRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsRetrieveExecute(r ApiExtrasSubscriptionsRetrieveRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodGet localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsRetrieve") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsRetrieve") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) @@ -28550,27 +31059,33 @@ func (a *ExtrasAPIService) ExtrasScriptsRetrieveExecute(r ApiExtrasScriptsRetrie return localVarReturnValue, localVarHTTPResponse, nil } -type ApiExtrasScriptsUpdateRequest struct { - ctx context.Context - ApiService *ExtrasAPIService - id string +type ApiExtrasSubscriptionsUpdateRequest struct { + ctx context.Context + ApiService *ExtrasAPIService + id int32 + subscriptionRequest *SubscriptionRequest } -func (r ApiExtrasScriptsUpdateRequest) Execute() (*Script, *http.Response, error) { - return r.ApiService.ExtrasScriptsUpdateExecute(r) +func (r ApiExtrasSubscriptionsUpdateRequest) SubscriptionRequest(subscriptionRequest SubscriptionRequest) ApiExtrasSubscriptionsUpdateRequest { + r.subscriptionRequest = &subscriptionRequest + return r +} + +func (r ApiExtrasSubscriptionsUpdateRequest) Execute() (*Subscription, *http.Response, error) { + return r.ApiService.ExtrasSubscriptionsUpdateExecute(r) } /* -ExtrasScriptsUpdate Method for ExtrasScriptsUpdate +ExtrasSubscriptionsUpdate Method for ExtrasSubscriptionsUpdate -Put a script object. +Put a subscription object. @param ctx context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background(). - @param id - @return ApiExtrasScriptsUpdateRequest + @param id A unique integer value identifying this subscription. + @return ApiExtrasSubscriptionsUpdateRequest */ -func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) ApiExtrasScriptsUpdateRequest { - return ApiExtrasScriptsUpdateRequest{ +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdate(ctx context.Context, id int32) ApiExtrasSubscriptionsUpdateRequest { + return ApiExtrasSubscriptionsUpdateRequest{ ApiService: a, ctx: ctx, id: id, @@ -28579,29 +31094,32 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdate(ctx context.Context, id string) A // Execute executes the request // -// @return Script -func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRequest) (*Script, *http.Response, error) { +// @return Subscription +func (a *ExtrasAPIService) ExtrasSubscriptionsUpdateExecute(r ApiExtrasSubscriptionsUpdateRequest) (*Subscription, *http.Response, error) { var ( localVarHTTPMethod = http.MethodPut localVarPostBody interface{} formFiles []formFile - localVarReturnValue *Script + localVarReturnValue *Subscription ) - localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasScriptsUpdate") + localBasePath, err := a.client.cfg.ServerURLWithContext(r.ctx, "ExtrasAPIService.ExtrasSubscriptionsUpdate") if err != nil { return localVarReturnValue, nil, &GenericOpenAPIError{error: err.Error()} } - localVarPath := localBasePath + "/api/extras/scripts/{id}/" + localVarPath := localBasePath + "/api/extras/subscriptions/{id}/" localVarPath = strings.Replace(localVarPath, "{"+"id"+"}", url.PathEscape(parameterValueToString(r.id, "id")), -1) localVarHeaderParams := make(map[string]string) localVarQueryParams := url.Values{} localVarFormParams := url.Values{} + if r.subscriptionRequest == nil { + return localVarReturnValue, nil, reportError("subscriptionRequest is required and must be specified") + } // to determine the Content-Type header - localVarHTTPContentTypes := []string{} + localVarHTTPContentTypes := []string{"application/json", "multipart/form-data"} // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) @@ -28617,6 +31135,8 @@ func (a *ExtrasAPIService) ExtrasScriptsUpdateExecute(r ApiExtrasScriptsUpdateRe if localVarHTTPHeaderAccept != "" { localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept } + // body params + localVarPostBody = r.subscriptionRequest if r.ctx != nil { // API Key Authentication if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { @@ -31605,7 +34125,16 @@ type ApiExtrasWebhooksListRequest struct { httpContentTypeNiew *[]string httpContentTypeNisw *[]string httpMethod *[]string - httpMethodN *[]string + httpMethodEmpty *bool + httpMethodIc *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodIe *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodIew *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodIsw *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodN *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodNic *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodNie *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodNiew *[]ExtrasWebhooksListHttpMethodIcParameterInner + httpMethodNisw *[]ExtrasWebhooksListHttpMethodIcParameterInner id *[]int32 idEmpty *bool idGt *[]int32 @@ -31864,11 +34393,65 @@ func (r ApiExtrasWebhooksListRequest) HttpMethod(httpMethod []string) ApiExtrasW return r } -func (r ApiExtrasWebhooksListRequest) HttpMethodN(httpMethodN []string) ApiExtrasWebhooksListRequest { +func (r ApiExtrasWebhooksListRequest) HttpMethodEmpty(httpMethodEmpty bool) ApiExtrasWebhooksListRequest { + r.httpMethodEmpty = &httpMethodEmpty + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodIc(httpMethodIc []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodIc = &httpMethodIc + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodIe(httpMethodIe []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodIe = &httpMethodIe + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodIew(httpMethodIew []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodIew = &httpMethodIew + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodIsw(httpMethodIsw []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodIsw = &httpMethodIsw + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodN(httpMethodN []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { r.httpMethodN = &httpMethodN return r } +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodNic(httpMethodNic []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodNic = &httpMethodNic + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodNie(httpMethodNie []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodNie = &httpMethodNie + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodNiew(httpMethodNiew []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodNiew = &httpMethodNiew + return r +} + +// * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE +func (r ApiExtrasWebhooksListRequest) HttpMethodNisw(httpMethodNisw []ExtrasWebhooksListHttpMethodIcParameterInner) ApiExtrasWebhooksListRequest { + r.httpMethodNisw = &httpMethodNisw + return r +} + func (r ApiExtrasWebhooksListRequest) Id(id []int32) ApiExtrasWebhooksListRequest { r.id = &id return r @@ -32574,6 +35157,53 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "http_method", t, "multi") } } + if r.httpMethodEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__empty", r.httpMethodEmpty, "") + } + if r.httpMethodIc != nil { + t := *r.httpMethodIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ic", t, "multi") + } + } + if r.httpMethodIe != nil { + t := *r.httpMethodIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__ie", t, "multi") + } + } + if r.httpMethodIew != nil { + t := *r.httpMethodIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__iew", t, "multi") + } + } + if r.httpMethodIsw != nil { + t := *r.httpMethodIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__isw", t, "multi") + } + } if r.httpMethodN != nil { t := *r.httpMethodN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -32585,6 +35215,50 @@ func (a *ExtrasAPIService) ExtrasWebhooksListExecute(r ApiExtrasWebhooksListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__n", t, "multi") } } + if r.httpMethodNic != nil { + t := *r.httpMethodNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nic", t, "multi") + } + } + if r.httpMethodNie != nil { + t := *r.httpMethodNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nie", t, "multi") + } + } + if r.httpMethodNiew != nil { + t := *r.httpMethodNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__niew", t, "multi") + } + } + if r.httpMethodNisw != nil { + t := *r.httpMethodNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "http_method__nisw", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_ipam.go b/api_ipam.go index 0e906f752..21348b5eb 100644 --- a/api_ipam.go +++ b/api_ipam.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -676,10 +676,10 @@ type ApiIpamAggregatesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -971,26 +971,22 @@ func (r ApiIpamAggregatesListRequest) TenantN(tenantN []string) ApiIpamAggregate return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroup(tenantGroup []string) ApiIpamAggregatesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAggregatesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAggregatesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAggregatesListRequest { +func (r ApiIpamAggregatesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAggregatesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -3006,10 +3002,10 @@ type ApiIpamAsnRangesListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -3435,26 +3431,22 @@ func (r ApiIpamAsnRangesListRequest) TenantN(tenantN []string) ApiIpamAsnRangesL return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnRangesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnRangesListRequest { +func (r ApiIpamAsnRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5491,10 +5483,10 @@ type ApiIpamAsnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5823,26 +5815,22 @@ func (r ApiIpamAsnsListRequest) TenantN(tenantN []string) ApiIpamAsnsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroup(tenantGroup []string) ApiIpamAsnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamAsnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamAsnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamAsnsListRequest { +func (r ApiIpamAsnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamAsnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -9454,7 +9442,16 @@ type ApiIpamFhrpGroupsListRequest struct { authKeyNiew *[]string authKeyNisw *[]string authType *[]string - authTypeN *[]string + authTypeEmpty *bool + authTypeIc *[]AuthenticationType + authTypeIe *[]AuthenticationType + authTypeIew *[]AuthenticationType + authTypeIsw *[]AuthenticationType + authTypeN *[]AuthenticationType + authTypeNic *[]AuthenticationType + authTypeNie *[]AuthenticationType + authTypeNiew *[]AuthenticationType + authTypeNisw *[]AuthenticationType created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -9511,7 +9508,16 @@ type ApiIpamFhrpGroupsListRequest struct { offset *int32 ordering *string protocol *[]string - protocolN *[]string + protocolEmpty *bool + protocolIc *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolIe *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolIew *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolIsw *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolN *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolNic *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolNie *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolNiew *[]IpamFhrpGroupsListProtocolIcParameterInner + protocolNisw *[]IpamFhrpGroupsListProtocolIcParameterInner q *string relatedIp *[]string tag *[]string @@ -9579,11 +9585,65 @@ func (r ApiIpamFhrpGroupsListRequest) AuthType(authType []string) ApiIpamFhrpGro return r } -func (r ApiIpamFhrpGroupsListRequest) AuthTypeN(authTypeN []string) ApiIpamFhrpGroupsListRequest { +func (r ApiIpamFhrpGroupsListRequest) AuthTypeEmpty(authTypeEmpty bool) ApiIpamFhrpGroupsListRequest { + r.authTypeEmpty = &authTypeEmpty + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIc(authTypeIc []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeIc = &authTypeIc + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIe(authTypeIe []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeIe = &authTypeIe + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIew(authTypeIew []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeIew = &authTypeIew + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeIsw(authTypeIsw []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeIsw = &authTypeIsw + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeN(authTypeN []AuthenticationType) ApiIpamFhrpGroupsListRequest { r.authTypeN = &authTypeN return r } +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNic(authTypeNic []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeNic = &authTypeNic + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNie(authTypeNie []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeNie = &authTypeNie + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNiew(authTypeNiew []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeNiew = &authTypeNiew + return r +} + +// * `plaintext` - Plaintext * `md5` - MD5 +func (r ApiIpamFhrpGroupsListRequest) AuthTypeNisw(authTypeNisw []AuthenticationType) ApiIpamFhrpGroupsListRequest { + r.authTypeNisw = &authTypeNisw + return r +} + func (r ApiIpamFhrpGroupsListRequest) Created(created []time.Time) ApiIpamFhrpGroupsListRequest { r.created = &created return r @@ -9867,11 +9927,65 @@ func (r ApiIpamFhrpGroupsListRequest) Protocol(protocol []string) ApiIpamFhrpGro return r } -func (r ApiIpamFhrpGroupsListRequest) ProtocolN(protocolN []string) ApiIpamFhrpGroupsListRequest { +func (r ApiIpamFhrpGroupsListRequest) ProtocolEmpty(protocolEmpty bool) ApiIpamFhrpGroupsListRequest { + r.protocolEmpty = &protocolEmpty + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolIc(protocolIc []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolIc = &protocolIc + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolIe(protocolIe []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolIe = &protocolIe + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolIew(protocolIew []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolIew = &protocolIew + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolIsw(protocolIsw []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolIsw = &protocolIsw + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolN(protocolN []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { r.protocolN = &protocolN return r } +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolNic(protocolNic []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolNic = &protocolNic + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolNie(protocolNie []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolNie = &protocolNie + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolNiew(protocolNiew []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolNiew = &protocolNiew + return r +} + +// * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other +func (r ApiIpamFhrpGroupsListRequest) ProtocolNisw(protocolNisw []IpamFhrpGroupsListProtocolIcParameterInner) ApiIpamFhrpGroupsListRequest { + r.protocolNisw = &protocolNisw + return r +} + // Search func (r ApiIpamFhrpGroupsListRequest) Q(q string) ApiIpamFhrpGroupsListRequest { r.q = &q @@ -10063,6 +10177,53 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") } } + if r.authTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__empty", r.authTypeEmpty, "") + } + if r.authTypeIc != nil { + t := *r.authTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", t, "multi") + } + } + if r.authTypeIe != nil { + t := *r.authTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", t, "multi") + } + } + if r.authTypeIew != nil { + t := *r.authTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", t, "multi") + } + } + if r.authTypeIsw != nil { + t := *r.authTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", t, "multi") + } + } if r.authTypeN != nil { t := *r.authTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -10074,6 +10235,50 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") } } + if r.authTypeNic != nil { + t := *r.authTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", t, "multi") + } + } + if r.authTypeNie != nil { + t := *r.authTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", t, "multi") + } + } + if r.authTypeNiew != nil { + t := *r.authTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", t, "multi") + } + } + if r.authTypeNisw != nil { + t := *r.authTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", t, "multi") + } + } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -10618,6 +10823,53 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", t, "multi") } } + if r.protocolEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__empty", r.protocolEmpty, "") + } + if r.protocolIc != nil { + t := *r.protocolIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ic", t, "multi") + } + } + if r.protocolIe != nil { + t := *r.protocolIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__ie", t, "multi") + } + } + if r.protocolIew != nil { + t := *r.protocolIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__iew", t, "multi") + } + } + if r.protocolIsw != nil { + t := *r.protocolIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__isw", t, "multi") + } + } if r.protocolN != nil { t := *r.protocolN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -10629,6 +10881,50 @@ func (a *IpamAPIService) IpamFhrpGroupsListExecute(r ApiIpamFhrpGroupsListReques parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", t, "multi") } } + if r.protocolNic != nil { + t := *r.protocolNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nic", t, "multi") + } + } + if r.protocolNie != nil { + t := *r.protocolNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nie", t, "multi") + } + } + if r.protocolNiew != nil { + t := *r.protocolNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__niew", t, "multi") + } + } + if r.protocolNisw != nil { + t := *r.protocolNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__nisw", t, "multi") + } + } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -11785,19 +12081,37 @@ type ApiIpamIpAddressesListRequest struct { presentInVrfId *string q *string role *[]string - roleN *[]string + roleEmpty *bool + roleIc *[]IpamIpAddressesListRoleIcParameterInner + roleIe *[]IpamIpAddressesListRoleIcParameterInner + roleIew *[]IpamIpAddressesListRoleIcParameterInner + roleIsw *[]IpamIpAddressesListRoleIcParameterInner + roleN *[]IpamIpAddressesListRoleIcParameterInner + roleNic *[]IpamIpAddressesListRoleIcParameterInner + roleNie *[]IpamIpAddressesListRoleIcParameterInner + roleNiew *[]IpamIpAddressesListRoleIcParameterInner + roleNisw *[]IpamIpAddressesListRoleIcParameterInner serviceId *[]int32 serviceIdN *[]int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]IpamIpAddressesListStatusIcParameterInner + statusIe *[]IpamIpAddressesListStatusIcParameterInner + statusIew *[]IpamIpAddressesListStatusIcParameterInner + statusIsw *[]IpamIpAddressesListStatusIcParameterInner + statusN *[]IpamIpAddressesListStatusIcParameterInner + statusNic *[]IpamIpAddressesListStatusIcParameterInner + statusNie *[]IpamIpAddressesListStatusIcParameterInner + statusNiew *[]IpamIpAddressesListStatusIcParameterInner + statusNisw *[]IpamIpAddressesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12223,12 +12537,65 @@ func (r ApiIpamIpAddressesListRequest) Role(role []string) ApiIpamIpAddressesLis return r } -// The functional role of this IP -func (r ApiIpamIpAddressesListRequest) RoleN(roleN []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) RoleEmpty(roleEmpty bool) ApiIpamIpAddressesListRequest { + r.roleEmpty = &roleEmpty + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleIc(roleIc []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleIc = &roleIc + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleIe(roleIe []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleIe = &roleIe + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleIew(roleIew []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleIew = &roleIew + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleIsw(roleIsw []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleIsw = &roleIsw + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleN(roleN []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { r.roleN = &roleN return r } +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleNic(roleNic []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleNic = &roleNic + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleNie(roleNie []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleNie = &roleNie + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleNiew(roleNiew []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleNiew = &roleNiew + return r +} + +// The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP +func (r ApiIpamIpAddressesListRequest) RoleNisw(roleNisw []IpamIpAddressesListRoleIcParameterInner) ApiIpamIpAddressesListRequest { + r.roleNisw = &roleNisw + return r +} + // Service (ID) func (r ApiIpamIpAddressesListRequest) ServiceId(serviceId []int32) ApiIpamIpAddressesListRequest { r.serviceId = &serviceId @@ -12247,12 +12614,65 @@ func (r ApiIpamIpAddressesListRequest) Status(status []string) ApiIpamIpAddresse return r } -// The operational status of this IP -func (r ApiIpamIpAddressesListRequest) StatusN(statusN []string) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) StatusEmpty(statusEmpty bool) ApiIpamIpAddressesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusIc(statusIc []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusIc = &statusIc + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusIe(statusIe []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusIe = &statusIe + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusIew(statusIew []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusIew = &statusIew + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusIsw(statusIsw []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusIsw = &statusIsw + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusN(statusN []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { r.statusN = &statusN return r } +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusNic(statusNic []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusNic = &statusNic + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusNie(statusNie []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusNie = &statusNie + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusNiew(statusNiew []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusNiew = &statusNiew + return r +} + +// The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC +func (r ApiIpamIpAddressesListRequest) StatusNisw(statusNisw []IpamIpAddressesListStatusIcParameterInner) ApiIpamIpAddressesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiIpamIpAddressesListRequest) Tag(tag []string) ApiIpamIpAddressesListRequest { r.tag = &tag return r @@ -12275,26 +12695,22 @@ func (r ApiIpamIpAddressesListRequest) TenantN(tenantN []string) ApiIpamIpAddres return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpAddressesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpAddressesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpAddressesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpAddressesListRequest { +func (r ApiIpamIpAddressesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpAddressesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -13132,6 +13548,53 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") } } + if r.roleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__empty", r.roleEmpty, "") + } + if r.roleIc != nil { + t := *r.roleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", t, "multi") + } + } + if r.roleIe != nil { + t := *r.roleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", t, "multi") + } + } + if r.roleIew != nil { + t := *r.roleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", t, "multi") + } + } + if r.roleIsw != nil { + t := *r.roleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", t, "multi") + } + } if r.roleN != nil { t := *r.roleN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -13143,6 +13606,50 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") } } + if r.roleNic != nil { + t := *r.roleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", t, "multi") + } + } + if r.roleNie != nil { + t := *r.roleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", t, "multi") + } + } + if r.roleNiew != nil { + t := *r.roleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", t, "multi") + } + } + if r.roleNisw != nil { + t := *r.roleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", t, "multi") + } + } if r.serviceId != nil { t := *r.serviceId if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -13176,6 +13683,53 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -13187,6 +13741,50 @@ func (a *IpamAPIService) IpamIpAddressesListExecute(r ApiIpamIpAddressesListRequ parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14751,15 +15349,24 @@ type ApiIpamIpRangesListRequest struct { sizeN *[]int32 startAddress *[]string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]IpamIpRangesListStatusIcParameterInner + statusIe *[]IpamIpRangesListStatusIcParameterInner + statusIew *[]IpamIpRangesListStatusIcParameterInner + statusIsw *[]IpamIpRangesListStatusIcParameterInner + statusN *[]IpamIpRangesListStatusIcParameterInner + statusNic *[]IpamIpRangesListStatusIcParameterInner + statusNie *[]IpamIpRangesListStatusIcParameterInner + statusNiew *[]IpamIpRangesListStatusIcParameterInner + statusNisw *[]IpamIpRangesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -15059,12 +15666,65 @@ func (r ApiIpamIpRangesListRequest) Status(status []string) ApiIpamIpRangesListR return r } -// Operational status of this range -func (r ApiIpamIpRangesListRequest) StatusN(statusN []string) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) StatusEmpty(statusEmpty bool) ApiIpamIpRangesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusIc(statusIc []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusIc = &statusIc + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusIe(statusIe []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusIe = &statusIe + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusIew(statusIew []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusIew = &statusIew + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusIsw(statusIsw []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusIsw = &statusIsw + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusN(statusN []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { r.statusN = &statusN return r } +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusNic(statusNic []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusNic = &statusNic + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusNie(statusNie []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusNie = &statusNie + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusNiew(statusNiew []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusNiew = &statusNiew + return r +} + +// Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamIpRangesListRequest) StatusNisw(statusNisw []IpamIpRangesListStatusIcParameterInner) ApiIpamIpRangesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiIpamIpRangesListRequest) Tag(tag []string) ApiIpamIpRangesListRequest { r.tag = &tag return r @@ -15087,26 +15747,22 @@ func (r ApiIpamIpRangesListRequest) TenantN(tenantN []string) ApiIpamIpRangesLis return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroup(tenantGroup []string) ApiIpamIpRangesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamIpRangesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamIpRangesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamIpRangesListRequest { +func (r ApiIpamIpRangesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamIpRangesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -15713,6 +16369,53 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -15724,6 +16427,50 @@ func (a *IpamAPIService) IpamIpRangesListExecute(r ApiIpamIpRangesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -17475,32 +18222,41 @@ type ApiIpamPrefixesListRequest struct { presentInVrf *string presentInVrfId *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]IpamPrefixesListStatusIcParameterInner + statusIe *[]IpamPrefixesListStatusIcParameterInner + statusIew *[]IpamPrefixesListStatusIcParameterInner + statusIsw *[]IpamPrefixesListStatusIcParameterInner + statusN *[]IpamPrefixesListStatusIcParameterInner + statusNic *[]IpamPrefixesListStatusIcParameterInner + statusNie *[]IpamPrefixesListStatusIcParameterInner + statusNiew *[]IpamPrefixesListStatusIcParameterInner + statusNisw *[]IpamPrefixesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -17836,26 +18592,22 @@ func (r ApiIpamPrefixesListRequest) Q(q string) ApiIpamPrefixesListRequest { return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) Region(region []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) Region(region []string) ApiIpamPrefixesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamPrefixesListRequest) RegionN(regionN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionN(regionN []string) ApiIpamPrefixesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionId(regionId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionId(regionId []string) ApiIpamPrefixesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) RegionIdN(regionIdN []string) ApiIpamPrefixesListRequest { r.regionIdN = ®ionIdN return r } @@ -17896,26 +18648,22 @@ func (r ApiIpamPrefixesListRequest) SiteN(siteN []string) ApiIpamPrefixesListReq return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroup(siteGroup []string) ApiIpamPrefixesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupN(siteGroupN []string) ApiIpamPrefixesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupId(siteGroupId []string) ApiIpamPrefixesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamPrefixesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -17938,12 +18686,65 @@ func (r ApiIpamPrefixesListRequest) Status(status []string) ApiIpamPrefixesListR return r } -// Operational status of this prefix -func (r ApiIpamPrefixesListRequest) StatusN(statusN []string) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) StatusEmpty(statusEmpty bool) ApiIpamPrefixesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusIc(statusIc []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusIc = &statusIc + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusIe(statusIe []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusIe = &statusIe + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusIew(statusIew []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusIew = &statusIew + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusIsw(statusIsw []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusIsw = &statusIsw + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusN(statusN []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { r.statusN = &statusN return r } +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusNic(statusNic []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusNic = &statusNic + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusNie(statusNie []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusNie = &statusNie + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusNiew(statusNiew []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusNiew = &statusNiew + return r +} + +// Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamPrefixesListRequest) StatusNisw(statusNisw []IpamPrefixesListStatusIcParameterInner) ApiIpamPrefixesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiIpamPrefixesListRequest) Tag(tag []string) ApiIpamPrefixesListRequest { r.tag = &tag return r @@ -17966,26 +18767,22 @@ func (r ApiIpamPrefixesListRequest) TenantN(tenantN []string) ApiIpamPrefixesLis return r } -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroup(tenantGroup []string) ApiIpamPrefixesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupN(tenantGroupN []string) ApiIpamPrefixesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupId(tenantGroupId []string) ApiIpamPrefixesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamPrefixesListRequest { +func (r ApiIpamPrefixesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamPrefixesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -18879,6 +19676,53 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -18890,6 +19734,50 @@ func (a *IpamAPIService) IpamPrefixesListExecute(r ApiIpamPrefixesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -24459,10 +25347,10 @@ type ApiIpamRouteTargetsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -24835,26 +25723,22 @@ func (r ApiIpamRouteTargetsListRequest) TenantN(tenantN []string) ApiIpamRouteTa return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroup(tenantGroup []string) ApiIpamRouteTargetsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamRouteTargetsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamRouteTargetsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamRouteTargetsListRequest { +func (r ApiIpamRouteTargetsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamRouteTargetsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -26761,7 +27645,6 @@ type ApiIpamServiceTemplatesListRequest struct { ordering *string port *float32 protocol *IpamServiceTemplatesListProtocolParameter - protocolN *IpamServiceTemplatesListProtocolParameter q *string tag *[]string tagN *[]string @@ -27022,12 +27905,6 @@ func (r ApiIpamServiceTemplatesListRequest) Protocol(protocol IpamServiceTemplat return r } -// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP -func (r ApiIpamServiceTemplatesListRequest) ProtocolN(protocolN IpamServiceTemplatesListProtocolParameter) ApiIpamServiceTemplatesListRequest { - r.protocolN = &protocolN - return r -} - // Search func (r ApiIpamServiceTemplatesListRequest) Q(q string) ApiIpamServiceTemplatesListRequest { r.q = &q @@ -27560,9 +28437,6 @@ func (a *IpamAPIService) IpamServiceTemplatesListExecute(r ApiIpamServiceTemplat if r.protocol != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "") } - if r.protocolN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", r.protocolN, "") - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -28663,10 +29537,6 @@ type ApiIpamServicesListRequest struct { ipAddressN *[]string ipAddressId *[]int32 ipAddressIdN *[]int32 - ipaddress *[]string - ipaddressN *[]string - ipaddressId *[]int32 - ipaddressIdN *[]int32 lastUpdated *[]time.Time lastUpdatedEmpty *[]time.Time lastUpdatedGt *[]time.Time @@ -28691,7 +29561,6 @@ type ApiIpamServicesListRequest struct { ordering *string port *float32 protocol *IpamServiceTemplatesListProtocolParameter - protocolN *IpamServiceTemplatesListProtocolParameter q *string tag *[]string tagN *[]string @@ -28880,30 +29749,6 @@ func (r ApiIpamServicesListRequest) IpAddressIdN(ipAddressIdN []int32) ApiIpamSe return r } -// IP address -func (r ApiIpamServicesListRequest) Ipaddress(ipaddress []string) ApiIpamServicesListRequest { - r.ipaddress = &ipaddress - return r -} - -// IP address -func (r ApiIpamServicesListRequest) IpaddressN(ipaddressN []string) ApiIpamServicesListRequest { - r.ipaddressN = &ipaddressN - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressId(ipaddressId []int32) ApiIpamServicesListRequest { - r.ipaddressId = &ipaddressId - return r -} - -// IP address (ID) -func (r ApiIpamServicesListRequest) IpaddressIdN(ipaddressIdN []int32) ApiIpamServicesListRequest { - r.ipaddressIdN = &ipaddressIdN - return r -} - func (r ApiIpamServicesListRequest) LastUpdated(lastUpdated []time.Time) ApiIpamServicesListRequest { r.lastUpdated = &lastUpdated return r @@ -29028,12 +29873,6 @@ func (r ApiIpamServicesListRequest) Protocol(protocol IpamServiceTemplatesListPr return r } -// * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP -func (r ApiIpamServicesListRequest) ProtocolN(protocolN IpamServiceTemplatesListProtocolParameter) ApiIpamServicesListRequest { - r.protocolN = &protocolN - return r -} - // Search func (r ApiIpamServicesListRequest) Q(q string) ApiIpamServicesListRequest { r.q = &q @@ -29470,50 +30309,6 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( parameterAddToHeaderOrQuery(localVarQueryParams, "ip_address_id__n", t, "multi") } } - if r.ipaddress != nil { - t := *r.ipaddress - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress", t, "multi") - } - } - if r.ipaddressN != nil { - t := *r.ipaddressN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress__n", t, "multi") - } - } - if r.ipaddressId != nil { - t := *r.ipaddressId - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id", t, "multi") - } - } - if r.ipaddressIdN != nil { - t := *r.ipaddressIdN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipaddress_id__n", t, "multi") - } - } if r.lastUpdated != nil { t := *r.lastUpdated if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -29722,9 +30517,6 @@ func (a *IpamAPIService) IpamServicesListExecute(r ApiIpamServicesListRequest) ( if r.protocol != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "protocol", r.protocol, "") } - if r.protocolN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "protocol__n", r.protocolN, "") - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -31084,7 +31876,7 @@ type ApiIpamVlanGroupsListRequest struct { ApiService *IpamAPIService cluster *int32 clusterGroup *int32 - clustergroup *int32 + containsVid *float32 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -31120,20 +31912,6 @@ type ApiIpamVlanGroupsListRequest struct { lastUpdatedN *[]time.Time limit *int32 location *int32 - maxVid *[]int32 - maxVidEmpty *bool - maxVidGt *[]int32 - maxVidGte *[]int32 - maxVidLt *[]int32 - maxVidLte *[]int32 - maxVidN *[]int32 - minVid *[]int32 - minVidEmpty *bool - minVidGt *[]int32 - minVidGte *[]int32 - minVidLt *[]int32 - minVidLte *[]int32 - minVidN *[]int32 modifiedByRequest *string name *[]string nameEmpty *bool @@ -31162,7 +31940,6 @@ type ApiIpamVlanGroupsListRequest struct { scopeTypeN *string site *int32 siteGroup *int32 - sitegroup *int32 slug *[]string slugEmpty *bool slugIc *[]string @@ -31189,8 +31966,8 @@ func (r ApiIpamVlanGroupsListRequest) ClusterGroup(clusterGroup int32) ApiIpamVl return r } -func (r ApiIpamVlanGroupsListRequest) Clustergroup(clustergroup int32) ApiIpamVlanGroupsListRequest { - r.clustergroup = &clustergroup +func (r ApiIpamVlanGroupsListRequest) ContainsVid(containsVid float32) ApiIpamVlanGroupsListRequest { + r.containsVid = &containsVid return r } @@ -31370,76 +32147,6 @@ func (r ApiIpamVlanGroupsListRequest) Location(location int32) ApiIpamVlanGroups return r } -func (r ApiIpamVlanGroupsListRequest) MaxVid(maxVid []int32) ApiIpamVlanGroupsListRequest { - r.maxVid = &maxVid - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidEmpty(maxVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.maxVidEmpty = &maxVidEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidGt(maxVidGt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGt = &maxVidGt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidGte(maxVidGte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidGte = &maxVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidLt(maxVidLt []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLt = &maxVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidLte(maxVidLte []int32) ApiIpamVlanGroupsListRequest { - r.maxVidLte = &maxVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MaxVidN(maxVidN []int32) ApiIpamVlanGroupsListRequest { - r.maxVidN = &maxVidN - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVid(minVid []int32) ApiIpamVlanGroupsListRequest { - r.minVid = &minVid - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidEmpty(minVidEmpty bool) ApiIpamVlanGroupsListRequest { - r.minVidEmpty = &minVidEmpty - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGt(minVidGt []int32) ApiIpamVlanGroupsListRequest { - r.minVidGt = &minVidGt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidGte(minVidGte []int32) ApiIpamVlanGroupsListRequest { - r.minVidGte = &minVidGte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLt(minVidLt []int32) ApiIpamVlanGroupsListRequest { - r.minVidLt = &minVidLt - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidLte(minVidLte []int32) ApiIpamVlanGroupsListRequest { - r.minVidLte = &minVidLte - return r -} - -func (r ApiIpamVlanGroupsListRequest) MinVidN(minVidN []int32) ApiIpamVlanGroupsListRequest { - r.minVidN = &minVidN - return r -} - func (r ApiIpamVlanGroupsListRequest) ModifiedByRequest(modifiedByRequest string) ApiIpamVlanGroupsListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -31583,11 +32290,6 @@ func (r ApiIpamVlanGroupsListRequest) SiteGroup(siteGroup int32) ApiIpamVlanGrou return r } -func (r ApiIpamVlanGroupsListRequest) Sitegroup(sitegroup int32) ApiIpamVlanGroupsListRequest { - r.sitegroup = &sitegroup - return r -} - func (r ApiIpamVlanGroupsListRequest) Slug(slug []string) ApiIpamVlanGroupsListRequest { r.slug = &slug return r @@ -31705,8 +32407,8 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.clusterGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "cluster_group", r.clusterGroup, "") } - if r.clustergroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "clustergroup", r.clustergroup, "") + if r.containsVid != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "contains_vid", r.containsVid, "") } if r.created != nil { t := *r.created @@ -32053,144 +32755,6 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.location != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "location", r.location, "") } - if r.maxVid != nil { - t := *r.maxVid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid", t, "multi") - } - } - if r.maxVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__empty", r.maxVidEmpty, "") - } - if r.maxVidGt != nil { - t := *r.maxVidGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gt", t, "multi") - } - } - if r.maxVidGte != nil { - t := *r.maxVidGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__gte", t, "multi") - } - } - if r.maxVidLt != nil { - t := *r.maxVidLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lt", t, "multi") - } - } - if r.maxVidLte != nil { - t := *r.maxVidLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__lte", t, "multi") - } - } - if r.maxVidN != nil { - t := *r.maxVidN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "max_vid__n", t, "multi") - } - } - if r.minVid != nil { - t := *r.minVid - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid", t, "multi") - } - } - if r.minVidEmpty != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__empty", r.minVidEmpty, "") - } - if r.minVidGt != nil { - t := *r.minVidGt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gt", t, "multi") - } - } - if r.minVidGte != nil { - t := *r.minVidGte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__gte", t, "multi") - } - } - if r.minVidLt != nil { - t := *r.minVidLt - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lt", t, "multi") - } - } - if r.minVidLte != nil { - t := *r.minVidLte - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__lte", t, "multi") - } - } - if r.minVidN != nil { - t := *r.minVidN - if reflect.TypeOf(t).Kind() == reflect.Slice { - s := reflect.ValueOf(t) - for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", s.Index(i).Interface(), "multi") - } - } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "min_vid__n", t, "multi") - } - } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -32403,9 +32967,6 @@ func (a *IpamAPIService) IpamVlanGroupsListExecute(r ApiIpamVlanGroupsListReques if r.siteGroup != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "site_group", r.siteGroup, "") } - if r.sitegroup != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "sitegroup", r.sitegroup, "") - } if r.slug != nil { t := *r.slug if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -33642,32 +34203,41 @@ type ApiIpamVlansListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]IpamIpRangesListStatusIcParameterInner + statusIe *[]IpamIpRangesListStatusIcParameterInner + statusIew *[]IpamIpRangesListStatusIcParameterInner + statusIsw *[]IpamIpRangesListStatusIcParameterInner + statusN *[]IpamIpRangesListStatusIcParameterInner + statusNic *[]IpamIpRangesListStatusIcParameterInner + statusNie *[]IpamIpRangesListStatusIcParameterInner + statusNiew *[]IpamIpRangesListStatusIcParameterInner + statusNisw *[]IpamIpRangesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -33992,26 +34562,22 @@ func (r ApiIpamVlansListRequest) Q(q string) ApiIpamVlansListRequest { return r } -// Region (slug) -func (r ApiIpamVlansListRequest) Region(region []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) Region(region []string) ApiIpamVlansListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiIpamVlansListRequest) RegionN(regionN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionN(regionN []string) ApiIpamVlansListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionId(regionId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionId(regionId []string) ApiIpamVlansListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) RegionIdN(regionIdN []string) ApiIpamVlansListRequest { r.regionIdN = ®ionIdN return r } @@ -34052,26 +34618,22 @@ func (r ApiIpamVlansListRequest) SiteN(siteN []string) ApiIpamVlansListRequest { return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroup(siteGroup []string) ApiIpamVlansListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupN(siteGroupN []string) ApiIpamVlansListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupId(siteGroupId []string) ApiIpamVlansListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) SiteGroupIdN(siteGroupIdN []string) ApiIpamVlansListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -34094,12 +34656,65 @@ func (r ApiIpamVlansListRequest) Status(status []string) ApiIpamVlansListRequest return r } -// Operational status of this VLAN -func (r ApiIpamVlansListRequest) StatusN(statusN []string) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) StatusEmpty(statusEmpty bool) ApiIpamVlansListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusIc(statusIc []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusIc = &statusIc + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusIe(statusIe []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusIe = &statusIe + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusIew(statusIew []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusIew = &statusIew + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusIsw(statusIsw []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusIsw = &statusIsw + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusN(statusN []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { r.statusN = &statusN return r } +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusNic(statusNic []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusNic = &statusNic + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusNie(statusNie []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusNie = &statusNie + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusNiew(statusNiew []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusNiew = &statusNiew + return r +} + +// Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated +func (r ApiIpamVlansListRequest) StatusNisw(statusNisw []IpamIpRangesListStatusIcParameterInner) ApiIpamVlansListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiIpamVlansListRequest) Tag(tag []string) ApiIpamVlansListRequest { r.tag = &tag return r @@ -34122,26 +34737,22 @@ func (r ApiIpamVlansListRequest) TenantN(tenantN []string) ApiIpamVlansListReque return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroup(tenantGroup []string) ApiIpamVlansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVlansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVlansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVlansListRequest { +func (r ApiIpamVlansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVlansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -34990,6 +35601,53 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -35001,6 +35659,50 @@ func (a *IpamAPIService) IpamVlansListExecute(r ApiIpamVlansListRequest) (*Pagin parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -36294,10 +36996,10 @@ type ApiIpamVrfsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -36682,26 +37384,22 @@ func (r ApiIpamVrfsListRequest) TenantN(tenantN []string) ApiIpamVrfsListRequest return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroup(tenantGroup []string) ApiIpamVrfsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupN(tenantGroupN []string) ApiIpamVrfsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupId(tenantGroupId []string) ApiIpamVrfsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiIpamVrfsListRequest { +func (r ApiIpamVrfsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiIpamVrfsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } diff --git a/api_schema.go b/api_schema.go index 5394105aa..20032d1fb 100644 --- a/api_schema.go +++ b/api_schema.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_status.go b/api_status.go index 9f266f523..c7713d66e 100644 --- a/api_status.go +++ b/api_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/api_tenancy.go b/api_tenancy.go index 0b17b4c3a..8402943d2 100644 --- a/api_tenancy.go +++ b/api_tenancy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -631,10 +631,10 @@ type ApiTenancyContactAssignmentsListRequest struct { createdLte *[]time.Time createdN *[]time.Time createdByRequest *string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -664,8 +664,7 @@ type ApiTenancyContactAssignmentsListRequest struct { objectTypeIdN *int32 offset *int32 ordering *string - priority *TenancyContactAssignmentsListPriorityParameter - priorityN *TenancyContactAssignmentsListPriorityParameter + priority *CircuitsCircuitGroupAssignmentsListPriorityParameter q *string role *[]string roleN *[]string @@ -728,26 +727,22 @@ func (r ApiTenancyContactAssignmentsListRequest) CreatedByRequest(createdByReque return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) Group(group []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Group(group []string) ApiTenancyContactAssignmentsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupN(groupN []string) ApiTenancyContactAssignmentsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupId(groupId []string) ApiTenancyContactAssignmentsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactAssignmentsListRequest { r.groupIdN = &groupIdN return r } @@ -901,17 +896,11 @@ func (r ApiTenancyContactAssignmentsListRequest) Ordering(ordering string) ApiTe } // * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) Priority(priority TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { +func (r ApiTenancyContactAssignmentsListRequest) Priority(priority CircuitsCircuitGroupAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { r.priority = &priority return r } -// * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive -func (r ApiTenancyContactAssignmentsListRequest) PriorityN(priorityN TenancyContactAssignmentsListPriorityParameter) ApiTenancyContactAssignmentsListRequest { - r.priorityN = &priorityN - return r -} - // Search func (r ApiTenancyContactAssignmentsListRequest) Q(q string) ApiTenancyContactAssignmentsListRequest { r.q = &q @@ -1386,9 +1375,6 @@ func (a *TenancyAPIService) TenancyContactAssignmentsListExecute(r ApiTenancyCon if r.priority != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "priority", r.priority, "") } - if r.priorityN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "priority__n", r.priorityN, "") - } if r.q != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") } @@ -2499,10 +2485,10 @@ func (a *TenancyAPIService) TenancyContactGroupsDestroyExecute(r ApiTenancyConta type ApiTenancyContactGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -2572,26 +2558,22 @@ type ApiTenancyContactGroupsListRequest struct { updatedByRequest *string } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) Ancestor(ancestor []string) ApiTenancyContactGroupsListRequest { r.ancestor = &ancestor return r } -// Contact group (slug) -func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyContactGroupsListRequest { r.ancestorN = &ancestorN return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyContactGroupsListRequest { r.ancestorId = &ancestorId return r } -// Contact group (ID) -func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyContactGroupsListRequest { +func (r ApiTenancyContactGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyContactGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -6820,10 +6802,10 @@ type ApiTenancyContactsListRequest struct { emailNie *[]string emailNiew *[]string emailNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -7097,26 +7079,22 @@ func (r ApiTenancyContactsListRequest) EmailNisw(emailNisw []string) ApiTenancyC return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) Group(group []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) Group(group []string) ApiTenancyContactsListRequest { r.group = &group return r } -// Contact group (slug) -func (r ApiTenancyContactsListRequest) GroupN(groupN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupN(groupN []string) ApiTenancyContactsListRequest { r.groupN = &groupN return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupId(groupId []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupId(groupId []string) ApiTenancyContactsListRequest { r.groupId = &groupId return r } -// Contact group (ID) -func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []int32) ApiTenancyContactsListRequest { +func (r ApiTenancyContactsListRequest) GroupIdN(groupIdN []string) ApiTenancyContactsListRequest { r.groupIdN = &groupIdN return r } @@ -9635,10 +9613,10 @@ func (a *TenancyAPIService) TenancyTenantGroupsDestroyExecute(r ApiTenancyTenant type ApiTenancyTenantGroupsListRequest struct { ctx context.Context ApiService *TenancyAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -9708,26 +9686,22 @@ type ApiTenancyTenantGroupsListRequest struct { updatedByRequest *string } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) Ancestor(ancestor []string) ApiTenancyTenantGroupsListRequest { r.ancestor = &ancestor return r } -// Tenant group (slug) -func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorN(ancestorN []string) ApiTenancyTenantGroupsListRequest { r.ancestorN = &ancestorN return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorId(ancestorId []string) ApiTenancyTenantGroupsListRequest { r.ancestorId = &ancestorId return r } -// Tenant group (ID) -func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiTenancyTenantGroupsListRequest { +func (r ApiTenancyTenantGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiTenancyTenantGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -11849,8 +11823,8 @@ type ApiTenancyTenantsListRequest struct { ApiService *TenancyAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -11872,10 +11846,10 @@ type ApiTenancyTenantsListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -11934,14 +11908,12 @@ func (r ApiTenancyTenantsListRequest) ContactN(contactN []int32) ApiTenancyTenan return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroup(contactGroup []string) ApiTenancyTenantsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) ContactGroupN(contactGroupN []string) ApiTenancyTenantsListRequest { r.contactGroupN = &contactGroupN return r } @@ -12053,26 +12025,22 @@ func (r ApiTenancyTenantsListRequest) DescriptionNisw(descriptionNisw []string) return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) Group(group []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) Group(group []string) ApiTenancyTenantsListRequest { r.group = &group return r } -// Tenant group (slug) -func (r ApiTenancyTenantsListRequest) GroupN(groupN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupN(groupN []string) ApiTenancyTenantsListRequest { r.groupN = &groupN return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupId(groupId []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupId(groupId []string) ApiTenancyTenantsListRequest { r.groupId = &groupId return r } -// Tenant group (ID) -func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []int32) ApiTenancyTenantsListRequest { +func (r ApiTenancyTenantsListRequest) GroupIdN(groupIdN []string) ApiTenancyTenantsListRequest { r.groupIdN = &groupIdN return r } diff --git a/api_users.go b/api_users.go index f872d1a93..5a154dd97 100644 --- a/api_users.go +++ b/api_users.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -733,45 +733,47 @@ func (a *UsersAPIService) UsersGroupsDestroyExecute(r ApiUsersGroupsDestroyReque } type ApiUsersGroupsListRequest struct { - ctx context.Context - ApiService *UsersAPIService - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - limit *int32 - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - userId *[]int32 - userIdN *[]int32 + ctx context.Context + ApiService *UsersAPIService + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + limit *int32 + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + userId *[]int32 + userIdN *[]int32 } func (r ApiUsersGroupsListRequest) Description(description []string) ApiUsersGroupsListRequest { @@ -925,6 +927,18 @@ func (r ApiUsersGroupsListRequest) NameNisw(nameNisw []string) ApiUsersGroupsLis return r } +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersGroupsListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersGroupsListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersGroupsListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersGroupsListRequest) Offset(offset int32) ApiUsersGroupsListRequest { r.offset = &offset @@ -1306,6 +1320,28 @@ func (a *UsersAPIService) UsersGroupsListExecute(r ApiUsersGroupsListRequest) (* parameterAddToHeaderOrQuery(localVarQueryParams, "name__nisw", t, "multi") } } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") + } + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } @@ -6303,86 +6339,88 @@ func (a *UsersAPIService) UsersUsersDestroyExecute(r ApiUsersUsersDestroyRequest } type ApiUsersUsersListRequest struct { - ctx context.Context - ApiService *UsersAPIService - dateJoined *[]time.Time - dateJoinedEmpty *bool - dateJoinedGt *[]time.Time - dateJoinedGte *[]time.Time - dateJoinedLt *[]time.Time - dateJoinedLte *[]time.Time - dateJoinedN *[]time.Time - email *[]string - emailEmpty *bool - emailIc *[]string - emailIe *[]string - emailIew *[]string - emailIsw *[]string - emailN *[]string - emailNic *[]string - emailNie *[]string - emailNiew *[]string - emailNisw *[]string - firstName *[]string - firstNameEmpty *bool - firstNameIc *[]string - firstNameIe *[]string - firstNameIew *[]string - firstNameIsw *[]string - firstNameN *[]string - firstNameNic *[]string - firstNameNie *[]string - firstNameNiew *[]string - firstNameNisw *[]string - group *[]string - groupN *[]string - groupId *[]int32 - groupIdN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - isActive *bool - isStaff *bool - isSuperuser *bool - lastLogin *[]time.Time - lastLoginEmpty *bool - lastLoginGt *[]time.Time - lastLoginGte *[]time.Time - lastLoginLt *[]time.Time - lastLoginLte *[]time.Time - lastLoginN *[]time.Time - lastName *[]string - lastNameEmpty *bool - lastNameIc *[]string - lastNameIe *[]string - lastNameIew *[]string - lastNameIsw *[]string - lastNameN *[]string - lastNameNic *[]string - lastNameNie *[]string - lastNameNiew *[]string - lastNameNisw *[]string - limit *int32 - offset *int32 - ordering *string - permissionId *[]int32 - permissionIdN *[]int32 - q *string - username *[]string - usernameEmpty *bool - usernameIc *[]string - usernameIe *[]string - usernameIew *[]string - usernameIsw *[]string - usernameN *[]string - usernameNic *[]string - usernameNie *[]string - usernameNiew *[]string - usernameNisw *[]string + ctx context.Context + ApiService *UsersAPIService + dateJoined *[]time.Time + dateJoinedEmpty *bool + dateJoinedGt *[]time.Time + dateJoinedGte *[]time.Time + dateJoinedLt *[]time.Time + dateJoinedLte *[]time.Time + dateJoinedN *[]time.Time + email *[]string + emailEmpty *bool + emailIc *[]string + emailIe *[]string + emailIew *[]string + emailIsw *[]string + emailN *[]string + emailNic *[]string + emailNie *[]string + emailNiew *[]string + emailNisw *[]string + firstName *[]string + firstNameEmpty *bool + firstNameIc *[]string + firstNameIe *[]string + firstNameIew *[]string + firstNameIsw *[]string + firstNameN *[]string + firstNameNic *[]string + firstNameNie *[]string + firstNameNiew *[]string + firstNameNisw *[]string + group *[]string + groupN *[]string + groupId *[]int32 + groupIdN *[]int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + isActive *bool + isStaff *bool + isSuperuser *bool + lastLogin *[]time.Time + lastLoginEmpty *bool + lastLoginGt *[]time.Time + lastLoginGte *[]time.Time + lastLoginLt *[]time.Time + lastLoginLte *[]time.Time + lastLoginN *[]time.Time + lastName *[]string + lastNameEmpty *bool + lastNameIc *[]string + lastNameIe *[]string + lastNameIew *[]string + lastNameIsw *[]string + lastNameN *[]string + lastNameNic *[]string + lastNameNie *[]string + lastNameNiew *[]string + lastNameNisw *[]string + limit *int32 + notificationGroupId *[]int32 + notificationGroupIdN *[]int32 + offset *int32 + ordering *string + permissionId *[]int32 + permissionIdN *[]int32 + q *string + username *[]string + usernameEmpty *bool + usernameIc *[]string + usernameIe *[]string + usernameIew *[]string + usernameIsw *[]string + usernameN *[]string + usernameNic *[]string + usernameNie *[]string + usernameNiew *[]string + usernameNisw *[]string } func (r ApiUsersUsersListRequest) DateJoined(dateJoined []time.Time) ApiUsersUsersListRequest { @@ -6700,6 +6738,18 @@ func (r ApiUsersUsersListRequest) Limit(limit int32) ApiUsersUsersListRequest { return r } +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupId(notificationGroupId []int32) ApiUsersUsersListRequest { + r.notificationGroupId = ¬ificationGroupId + return r +} + +// Notification group (ID) +func (r ApiUsersUsersListRequest) NotificationGroupIdN(notificationGroupIdN []int32) ApiUsersUsersListRequest { + r.notificationGroupIdN = ¬ificationGroupIdN + return r +} + // The initial index from which to return the results. func (r ApiUsersUsersListRequest) Offset(offset int32) ApiUsersUsersListRequest { r.offset = &offset @@ -7428,6 +7478,28 @@ func (a *UsersAPIService) UsersUsersListExecute(r ApiUsersUsersListRequest) (*Pa if r.limit != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") } + if r.notificationGroupId != nil { + t := *r.notificationGroupId + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id", t, "multi") + } + } + if r.notificationGroupIdN != nil { + t := *r.notificationGroupIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "notification_group_id__n", t, "multi") + } + } if r.offset != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "offset", r.offset, "") } diff --git a/api_virtualization.go b/api_virtualization.go index 2216c43f9..e985ac66d 100644 --- a/api_virtualization.go +++ b/api_virtualization.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -623,8 +623,8 @@ type ApiVirtualizationClusterGroupsListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -704,14 +704,12 @@ func (r ApiVirtualizationClusterGroupsListRequest) ContactN(contactN []int32) Ap return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClusterGroupsListRequest { +func (r ApiVirtualizationClusterGroupsListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClusterGroupsListRequest { r.contactGroupN = &contactGroupN return r } @@ -4867,8 +4865,8 @@ type ApiVirtualizationClustersListRequest struct { ApiService *VirtualizationAPIService contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -4924,28 +4922,37 @@ type ApiVirtualizationClustersListRequest struct { offset *int32 ordering *string q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]VirtualizationClustersListStatusIcParameterInner + statusIe *[]VirtualizationClustersListStatusIcParameterInner + statusIew *[]VirtualizationClustersListStatusIcParameterInner + statusIsw *[]VirtualizationClustersListStatusIcParameterInner + statusN *[]VirtualizationClustersListStatusIcParameterInner + statusNic *[]VirtualizationClustersListStatusIcParameterInner + statusNie *[]VirtualizationClustersListStatusIcParameterInner + statusNiew *[]VirtualizationClustersListStatusIcParameterInner + statusNisw *[]VirtualizationClustersListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string @@ -4967,14 +4974,12 @@ func (r ApiVirtualizationClustersListRequest) ContactN(contactN []int32) ApiVirt return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroup(contactGroup []string) ApiVirtualizationClustersListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationClustersListRequest { r.contactGroupN = &contactGroupN return r } @@ -5264,26 +5269,22 @@ func (r ApiVirtualizationClustersListRequest) Q(q string) ApiVirtualizationClust return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) Region(region []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) Region(region []string) ApiVirtualizationClustersListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationClustersListRequest) RegionN(regionN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionN(regionN []string) ApiVirtualizationClustersListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionId(regionId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionId(regionId []string) ApiVirtualizationClustersListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) RegionIdN(regionIdN []string) ApiVirtualizationClustersListRequest { r.regionIdN = ®ionIdN return r } @@ -5300,26 +5301,22 @@ func (r ApiVirtualizationClustersListRequest) SiteN(siteN []string) ApiVirtualiz return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroup(siteGroup []string) ApiVirtualizationClustersListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationClustersListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationClustersListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationClustersListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -5341,11 +5338,65 @@ func (r ApiVirtualizationClustersListRequest) Status(status []string) ApiVirtual return r } -func (r ApiVirtualizationClustersListRequest) StatusN(statusN []string) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) StatusEmpty(statusEmpty bool) ApiVirtualizationClustersListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusIc(statusIc []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusIc = &statusIc + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusIe(statusIe []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusIe = &statusIe + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusIew(statusIew []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusIew = &statusIew + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusIsw(statusIsw []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusN(statusN []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { r.statusN = &statusN return r } +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusNic(statusNic []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusNic = &statusNic + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusNie(statusNie []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusNie = &statusNie + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusNiew(statusNiew []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline +func (r ApiVirtualizationClustersListRequest) StatusNisw(statusNisw []VirtualizationClustersListStatusIcParameterInner) ApiVirtualizationClustersListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiVirtualizationClustersListRequest) Tag(tag []string) ApiVirtualizationClustersListRequest { r.tag = &tag return r @@ -5368,26 +5419,22 @@ func (r ApiVirtualizationClustersListRequest) TenantN(tenantN []string) ApiVirtu return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationClustersListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationClustersListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationClustersListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationClustersListRequest { +func (r ApiVirtualizationClustersListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationClustersListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -6194,6 +6241,53 @@ func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtua parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6205,6 +6299,50 @@ func (a *VirtualizationAPIService) VirtualizationClustersListExecute(r ApiVirtua parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -7456,7 +7594,6 @@ type ApiVirtualizationInterfacesListRequest struct { macAddressNiew *[]string macAddressNisw *[]string mode *DcimInterfacesListModeParameter - modeN *DcimInterfacesListModeParameter modifiedByRequest *string mtu *[]int32 mtuEmpty *bool @@ -7788,12 +7925,6 @@ func (r ApiVirtualizationInterfacesListRequest) Mode(mode DcimInterfacesListMode return r } -// IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) -func (r ApiVirtualizationInterfacesListRequest) ModeN(modeN DcimInterfacesListModeParameter) ApiVirtualizationInterfacesListRequest { - r.modeN = &modeN - return r -} - func (r ApiVirtualizationInterfacesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVirtualizationInterfacesListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -8603,9 +8734,6 @@ func (a *VirtualizationAPIService) VirtualizationInterfacesListExecute(r ApiVirt if r.mode != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "mode", r.mode, "") } - if r.modeN != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", r.modeN, "") - } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -12067,8 +12195,8 @@ type ApiVirtualizationVirtualMachinesListRequest struct { configTemplateIdN *[]*int32 contact *[]int32 contactN *[]int32 - contactGroup *[]int32 - contactGroupN *[]int32 + contactGroup *[]string + contactGroupN *[]string contactRole *[]int32 contactRoleN *[]int32 created *[]time.Time @@ -12165,32 +12293,52 @@ type ApiVirtualizationVirtualMachinesListRequest struct { primaryIp6Id *[]int32 primaryIp6IdN *[]int32 q *string - region *[]int32 - regionN *[]int32 - regionId *[]int32 - regionIdN *[]int32 + region *[]string + regionN *[]string + regionId *[]string + regionIdN *[]string role *[]string roleN *[]string roleId *[]*int32 roleIdN *[]*int32 + serial *[]string + serialEmpty *bool + serialIc *[]string + serialIe *[]string + serialIew *[]string + serialIsw *[]string + serialN *[]string + serialNic *[]string + serialNie *[]string + serialNiew *[]string + serialNisw *[]string site *[]string siteN *[]string - siteGroup *[]int32 - siteGroupN *[]int32 - siteGroupId *[]int32 - siteGroupIdN *[]int32 + siteGroup *[]string + siteGroupN *[]string + siteGroupId *[]string + siteGroupIdN *[]string siteId *[]*int32 siteIdN *[]*int32 status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimModulesListStatusIcParameterInner + statusIe *[]DcimModulesListStatusIcParameterInner + statusIew *[]DcimModulesListStatusIcParameterInner + statusIsw *[]DcimModulesListStatusIcParameterInner + statusN *[]DcimModulesListStatusIcParameterInner + statusNic *[]DcimModulesListStatusIcParameterInner + statusNie *[]DcimModulesListStatusIcParameterInner + statusNiew *[]DcimModulesListStatusIcParameterInner + statusNisw *[]DcimModulesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -12306,14 +12454,12 @@ func (r ApiVirtualizationVirtualMachinesListRequest) ContactN(contactN []int32) return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroup(contactGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroup = &contactGroup return r } -// Contact group -func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) ContactGroupN(contactGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.contactGroupN = &contactGroupN return r } @@ -12818,26 +12964,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Q(q string) ApiVirtualizati return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) Region(region []string) ApiVirtualizationVirtualMachinesListRequest { r.region = ®ion return r } -// Region (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionN(regionN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionN = ®ionN return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionId(regionId []string) ApiVirtualizationVirtualMachinesListRequest { r.regionId = ®ionId return r } -// Region (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) RegionIdN(regionIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.regionIdN = ®ionIdN return r } @@ -12866,6 +13008,61 @@ func (r ApiVirtualizationVirtualMachinesListRequest) RoleIdN(roleIdN []*int32) A return r } +func (r ApiVirtualizationVirtualMachinesListRequest) Serial(serial []string) ApiVirtualizationVirtualMachinesListRequest { + r.serial = &serial + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialEmpty(serialEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.serialEmpty = &serialEmpty + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIc(serialIc []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIc = &serialIc + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIe(serialIe []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIe = &serialIe + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIew(serialIew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIew = &serialIew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialIsw(serialIsw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialIsw = &serialIsw + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialN(serialN []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialN = &serialN + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNic(serialNic []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNic = &serialNic + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNie(serialNie []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNie = &serialNie + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNiew(serialNiew []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNiew = &serialNiew + return r +} + +func (r ApiVirtualizationVirtualMachinesListRequest) SerialNisw(serialNisw []string) ApiVirtualizationVirtualMachinesListRequest { + r.serialNisw = &serialNisw + return r +} + // Site (slug) func (r ApiVirtualizationVirtualMachinesListRequest) Site(site []string) ApiVirtualizationVirtualMachinesListRequest { r.site = &site @@ -12878,26 +13075,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) SiteN(siteN []string) ApiVi return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroup(siteGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroup = &siteGroup return r } -// Site group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupN(siteGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupN = &siteGroupN return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupId(siteGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupId = &siteGroupId return r } -// Site group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) SiteGroupIdN(siteGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.siteGroupIdN = &siteGroupIdN return r } @@ -12919,11 +13112,65 @@ func (r ApiVirtualizationVirtualMachinesListRequest) Status(status []string) Api return r } -func (r ApiVirtualizationVirtualMachinesListRequest) StatusN(statusN []string) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) StatusEmpty(statusEmpty bool) ApiVirtualizationVirtualMachinesListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIc(statusIc []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusIc = &statusIc + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIe(statusIe []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusIe = &statusIe + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIew(statusIew []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusIew = &statusIew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusIsw(statusIsw []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusN(statusN []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { r.statusN = &statusN return r } +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNic(statusNic []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusNic = &statusNic + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNie(statusNie []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusNie = &statusNie + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNiew(statusNiew []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning +func (r ApiVirtualizationVirtualMachinesListRequest) StatusNisw(statusNisw []DcimModulesListStatusIcParameterInner) ApiVirtualizationVirtualMachinesListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiVirtualizationVirtualMachinesListRequest) Tag(tag []string) ApiVirtualizationVirtualMachinesListRequest { r.tag = &tag return r @@ -12946,26 +13193,22 @@ func (r ApiVirtualizationVirtualMachinesListRequest) TenantN(tenantN []string) A return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroup(tenantGroup []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupN(tenantGroupN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupId(tenantGroupId []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVirtualizationVirtualMachinesListRequest { +func (r ApiVirtualizationVirtualMachinesListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVirtualizationVirtualMachinesListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14328,6 +14571,119 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap parameterAddToHeaderOrQuery(localVarQueryParams, "role_id__n", t, "multi") } } + if r.serial != nil { + t := *r.serial + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial", t, "multi") + } + } + if r.serialEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__empty", r.serialEmpty, "") + } + if r.serialIc != nil { + t := *r.serialIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ic", t, "multi") + } + } + if r.serialIe != nil { + t := *r.serialIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__ie", t, "multi") + } + } + if r.serialIew != nil { + t := *r.serialIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__iew", t, "multi") + } + } + if r.serialIsw != nil { + t := *r.serialIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__isw", t, "multi") + } + } + if r.serialN != nil { + t := *r.serialN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__n", t, "multi") + } + } + if r.serialNic != nil { + t := *r.serialNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nic", t, "multi") + } + } + if r.serialNie != nil { + t := *r.serialNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nie", t, "multi") + } + } + if r.serialNiew != nil { + t := *r.serialNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__niew", t, "multi") + } + } + if r.serialNisw != nil { + t := *r.serialNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "serial__nisw", t, "multi") + } + } if r.site != nil { t := *r.site if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14427,6 +14783,53 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -14438,6 +14841,50 @@ func (a *VirtualizationAPIService) VirtualizationVirtualMachinesListExecute(r Ap parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_vpn.go b/api_vpn.go index 6893f11ad..3b75168ec 100644 --- a/api_vpn.go +++ b/api_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -660,7 +660,16 @@ type ApiVpnIkePoliciesListRequest struct { lastUpdatedN *[]time.Time limit *int32 mode *[]string - modeN *[]string + modeEmpty *bool + modeIc *[]VpnIkePoliciesListModeIcParameterInner + modeIe *[]VpnIkePoliciesListModeIcParameterInner + modeIew *[]VpnIkePoliciesListModeIcParameterInner + modeIsw *[]VpnIkePoliciesListModeIcParameterInner + modeN *[]VpnIkePoliciesListModeIcParameterInner + modeNic *[]VpnIkePoliciesListModeIcParameterInner + modeNie *[]VpnIkePoliciesListModeIcParameterInner + modeNiew *[]VpnIkePoliciesListModeIcParameterInner + modeNisw *[]VpnIkePoliciesListModeIcParameterInner modifiedByRequest *string name *[]string nameEmpty *bool @@ -685,16 +694,20 @@ type ApiVpnIkePoliciesListRequest struct { presharedKeyNie *string presharedKeyNiew *string presharedKeyNisw *string - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 q *string tag *[]string tagN *[]string updatedByRequest *string version *[]int32 - versionN *[]int32 + versionIc *[]VpnIkePoliciesListVersionIcParameterInner + versionIe *[]VpnIkePoliciesListVersionIcParameterInner + versionIew *[]VpnIkePoliciesListVersionIcParameterInner + versionIsw *[]VpnIkePoliciesListVersionIcParameterInner + versionN *[]VpnIkePoliciesListVersionIcParameterInner + versionNic *[]VpnIkePoliciesListVersionIcParameterInner + versionNie *[]VpnIkePoliciesListVersionIcParameterInner + versionNiew *[]VpnIkePoliciesListVersionIcParameterInner + versionNisw *[]VpnIkePoliciesListVersionIcParameterInner } func (r ApiVpnIkePoliciesListRequest) Created(created []time.Time) ApiVpnIkePoliciesListRequest { @@ -893,11 +906,65 @@ func (r ApiVpnIkePoliciesListRequest) Mode(mode []string) ApiVpnIkePoliciesListR return r } -func (r ApiVpnIkePoliciesListRequest) ModeN(modeN []string) ApiVpnIkePoliciesListRequest { +func (r ApiVpnIkePoliciesListRequest) ModeEmpty(modeEmpty bool) ApiVpnIkePoliciesListRequest { + r.modeEmpty = &modeEmpty + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeIc(modeIc []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeIc = &modeIc + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeIe(modeIe []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeIe = &modeIe + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeIew(modeIew []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeIew = &modeIew + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeIsw(modeIsw []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeIsw = &modeIsw + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeN(modeN []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { r.modeN = &modeN return r } +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeNic(modeNic []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeNic = &modeNic + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeNie(modeNie []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeNie = &modeNie + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeNiew(modeNiew []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeNiew = &modeNiew + return r +} + +// * `aggressive` - Aggressive * `main` - Main +func (r ApiVpnIkePoliciesListRequest) ModeNisw(modeNisw []VpnIkePoliciesListModeIcParameterInner) ApiVpnIkePoliciesListRequest { + r.modeNisw = &modeNisw + return r +} + func (r ApiVpnIkePoliciesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIkePoliciesListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -1020,57 +1087,86 @@ func (r ApiVpnIkePoliciesListRequest) PresharedKeyNisw(presharedKeyNisw string) return r } -func (r ApiVpnIkePoliciesListRequest) Proposal(proposal []string) ApiVpnIkePoliciesListRequest { - r.proposal = &proposal +// Search +func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { + r.q = &q return r } -func (r ApiVpnIkePoliciesListRequest) ProposalN(proposalN []string) ApiVpnIkePoliciesListRequest { - r.proposalN = &proposalN +func (r ApiVpnIkePoliciesListRequest) Tag(tag []string) ApiVpnIkePoliciesListRequest { + r.tag = &tag return r } -func (r ApiVpnIkePoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIkePoliciesListRequest { - r.proposalId = &proposalId +func (r ApiVpnIkePoliciesListRequest) TagN(tagN []string) ApiVpnIkePoliciesListRequest { + r.tagN = &tagN return r } -func (r ApiVpnIkePoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIkePoliciesListRequest { - r.proposalIdN = &proposalIdN +func (r ApiVpnIkePoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkePoliciesListRequest { + r.updatedByRequest = &updatedByRequest return r } -// Search -func (r ApiVpnIkePoliciesListRequest) Q(q string) ApiVpnIkePoliciesListRequest { - r.q = &q +func (r ApiVpnIkePoliciesListRequest) Version(version []int32) ApiVpnIkePoliciesListRequest { + r.version = &version return r } -func (r ApiVpnIkePoliciesListRequest) Tag(tag []string) ApiVpnIkePoliciesListRequest { - r.tag = &tag +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionIc(versionIc []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionIc = &versionIc return r } -func (r ApiVpnIkePoliciesListRequest) TagN(tagN []string) ApiVpnIkePoliciesListRequest { - r.tagN = &tagN +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionIe(versionIe []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionIe = &versionIe return r } -func (r ApiVpnIkePoliciesListRequest) UpdatedByRequest(updatedByRequest string) ApiVpnIkePoliciesListRequest { - r.updatedByRequest = &updatedByRequest +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionIew(versionIew []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionIew = &versionIew return r } -func (r ApiVpnIkePoliciesListRequest) Version(version []int32) ApiVpnIkePoliciesListRequest { - r.version = &version +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionIsw(versionIsw []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionIsw = &versionIsw return r } -func (r ApiVpnIkePoliciesListRequest) VersionN(versionN []int32) ApiVpnIkePoliciesListRequest { +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionN(versionN []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { r.versionN = &versionN return r } +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionNic(versionNic []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionNic = &versionNic + return r +} + +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionNie(versionNie []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionNie = &versionNie + return r +} + +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionNiew(versionNiew []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionNiew = &versionNiew + return r +} + +// * `1` - IKEv1 * `2` - IKEv2 +func (r ApiVpnIkePoliciesListRequest) VersionNisw(versionNisw []VpnIkePoliciesListVersionIcParameterInner) ApiVpnIkePoliciesListRequest { + r.versionNisw = &versionNisw + return r +} + func (r ApiVpnIkePoliciesListRequest) Execute() (*PaginatedIKEPolicyList, *http.Response, error) { return r.ApiService.VpnIkePoliciesListExecute(r) } @@ -1509,6 +1605,53 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi") } } + if r.modeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__empty", r.modeEmpty, "") + } + if r.modeIc != nil { + t := *r.modeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", t, "multi") + } + } + if r.modeIe != nil { + t := *r.modeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", t, "multi") + } + } + if r.modeIew != nil { + t := *r.modeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", t, "multi") + } + } + if r.modeIsw != nil { + t := *r.modeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", t, "multi") + } + } if r.modeN != nil { t := *r.modeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -1520,6 +1663,50 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi") } } + if r.modeNic != nil { + t := *r.modeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", t, "multi") + } + } + if r.modeNie != nil { + t := *r.modeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", t, "multi") + } + } + if r.modeNiew != nil { + t := *r.modeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", t, "multi") + } + } + if r.modeNisw != nil { + t := *r.modeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", t, "multi") + } + } if r.modifiedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "modified_by_request", r.modifiedByRequest, "") } @@ -1672,87 +1859,87 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest if r.presharedKeyNisw != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "preshared_key__nisw", r.presharedKeyNisw, "") } - if r.proposal != nil { - t := *r.proposal + if r.q != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") + } + if r.tag != nil { + t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") } } - if r.proposalN != nil { - t := *r.proposalN + if r.tagN != nil { + t := *r.tagN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") } } - if r.proposalId != nil { - t := *r.proposalId + if r.updatedByRequest != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") + } + if r.version != nil { + t := *r.version if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version", t, "multi") } } - if r.proposalIdN != nil { - t := *r.proposalIdN + if r.versionIc != nil { + t := *r.versionIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ic", t, "multi") } } - if r.q != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "q", r.q, "") - } - if r.tag != nil { - t := *r.tag + if r.versionIe != nil { + t := *r.versionIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__ie", t, "multi") } } - if r.tagN != nil { - t := *r.tagN + if r.versionIew != nil { + t := *r.versionIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__iew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "tag__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__iew", t, "multi") } } - if r.updatedByRequest != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") - } - if r.version != nil { - t := *r.version + if r.versionIsw != nil { + t := *r.versionIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "version", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__isw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "version", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "version__isw", t, "multi") } } if r.versionN != nil { @@ -1766,6 +1953,50 @@ func (a *VpnAPIService) VpnIkePoliciesListExecute(r ApiVpnIkePoliciesListRequest parameterAddToHeaderOrQuery(localVarQueryParams, "version__n", t, "multi") } } + if r.versionNic != nil { + t := *r.versionNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nic", t, "multi") + } + } + if r.versionNie != nil { + t := *r.versionNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nie", t, "multi") + } + } + if r.versionNiew != nil { + t := *r.versionNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__niew", t, "multi") + } + } + if r.versionNisw != nil { + t := *r.versionNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "version__nisw", t, "multi") + } + } // to determine the Content-Type header localVarHTTPContentTypes := []string{} @@ -2802,79 +3033,114 @@ func (a *VpnAPIService) VpnIkeProposalsDestroyExecute(r ApiVpnIkeProposalsDestro } type ApiVpnIkeProposalsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - authenticationAlgorithm *[]string - authenticationAlgorithmN *[]string - authenticationMethod *[]string - authenticationMethodN *[]string - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - encryptionAlgorithm *[]string - encryptionAlgorithmN *[]string - group *[]int32 - groupN *[]int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ikePolicy *[]string - ikePolicyN *[]string - ikePolicyId *[]int32 - ikePolicyIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - saLifetime *[]int32 - saLifetimeEmpty *bool - saLifetimeGt *[]int32 - saLifetimeGte *[]int32 - saLifetimeLt *[]int32 - saLifetimeLte *[]int32 - saLifetimeN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string + ctx context.Context + ApiService *VpnAPIService + authenticationAlgorithm *[]string + authenticationAlgorithmEmpty *bool + authenticationAlgorithmIc *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmIe *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmIew *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmIsw *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmN *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmNic *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmNie *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmNiew *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationAlgorithmNisw *[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + authenticationMethod *[]string + authenticationMethodEmpty *bool + authenticationMethodIc *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodIe *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodIew *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodIsw *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodN *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodNic *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodNie *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodNiew *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + authenticationMethodNisw *[]VpnIkeProposalsListAuthenticationMethodIcParameterInner + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + encryptionAlgorithm *[]string + encryptionAlgorithmEmpty *bool + encryptionAlgorithmIc *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmIe *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmIew *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmIsw *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmN *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmNic *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmNie *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmNiew *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + encryptionAlgorithmNisw *[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + group *[]int32 + groupIc *[]VpnIkeProposalsListGroupIcParameterInner + groupIe *[]VpnIkeProposalsListGroupIcParameterInner + groupIew *[]VpnIkeProposalsListGroupIcParameterInner + groupIsw *[]VpnIkeProposalsListGroupIcParameterInner + groupN *[]VpnIkeProposalsListGroupIcParameterInner + groupNic *[]VpnIkeProposalsListGroupIcParameterInner + groupNie *[]VpnIkeProposalsListGroupIcParameterInner + groupNiew *[]VpnIkeProposalsListGroupIcParameterInner + groupNisw *[]VpnIkeProposalsListGroupIcParameterInner + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ikePolicy *[]string + ikePolicyN *[]string + ikePolicyId *[]int32 + ikePolicyIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + saLifetime *[]int32 + saLifetimeEmpty *bool + saLifetimeGt *[]int32 + saLifetimeGte *[]int32 + saLifetimeLt *[]int32 + saLifetimeLte *[]int32 + saLifetimeN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string } func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []string) ApiVpnIkeProposalsListRequest { @@ -2882,21 +3148,129 @@ func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithm(authenticationAlg return r } -func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []string) ApiVpnIkeProposalsListRequest { +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty bool) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmEmpty = &authenticationAlgorithmEmpty + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIc(authenticationAlgorithmIc []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIc = &authenticationAlgorithmIc + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIe(authenticationAlgorithmIe []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIe = &authenticationAlgorithmIe + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIew(authenticationAlgorithmIew []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIew = &authenticationAlgorithmIew + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmIsw(authenticationAlgorithmIsw []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmIsw = &authenticationAlgorithmIsw + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { r.authenticationAlgorithmN = &authenticationAlgorithmN return r } +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNic(authenticationAlgorithmNic []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNic = &authenticationAlgorithmNic + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNie(authenticationAlgorithmNie []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNie = &authenticationAlgorithmNie + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNiew(authenticationAlgorithmNiew []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNiew = &authenticationAlgorithmNiew + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIkeProposalsListRequest) AuthenticationAlgorithmNisw(authenticationAlgorithmNisw []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationAlgorithmNisw = &authenticationAlgorithmNisw + return r +} + func (r ApiVpnIkeProposalsListRequest) AuthenticationMethod(authenticationMethod []string) ApiVpnIkeProposalsListRequest { r.authenticationMethod = &authenticationMethod return r } -func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodN(authenticationMethodN []string) ApiVpnIkeProposalsListRequest { +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodEmpty(authenticationMethodEmpty bool) ApiVpnIkeProposalsListRequest { + r.authenticationMethodEmpty = &authenticationMethodEmpty + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIc(authenticationMethodIc []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIc = &authenticationMethodIc + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIe(authenticationMethodIe []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIe = &authenticationMethodIe + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIew(authenticationMethodIew []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIew = &authenticationMethodIew + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodIsw(authenticationMethodIsw []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodIsw = &authenticationMethodIsw + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodN(authenticationMethodN []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { r.authenticationMethodN = &authenticationMethodN return r } +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNic(authenticationMethodNic []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNic = &authenticationMethodNic + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNie(authenticationMethodNie []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNie = &authenticationMethodNie + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNiew(authenticationMethodNiew []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNiew = &authenticationMethodNiew + return r +} + +// * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures +func (r ApiVpnIkeProposalsListRequest) AuthenticationMethodNisw(authenticationMethodNisw []VpnIkeProposalsListAuthenticationMethodIcParameterInner) ApiVpnIkeProposalsListRequest { + r.authenticationMethodNisw = &authenticationMethodNisw + return r +} + func (r ApiVpnIkeProposalsListRequest) Created(created []time.Time) ApiVpnIkeProposalsListRequest { r.created = &created return r @@ -2997,44 +3371,146 @@ func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm [ return r } -func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []string) ApiVpnIkeProposalsListRequest { - r.encryptionAlgorithmN = &encryptionAlgorithmN +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty bool) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmEmpty = &encryptionAlgorithmEmpty return r } -// Diffie-Hellman group ID -func (r ApiVpnIkeProposalsListRequest) Group(group []int32) ApiVpnIkeProposalsListRequest { - r.group = &group +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIc(encryptionAlgorithmIc []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIc = &encryptionAlgorithmIc return r } -// Diffie-Hellman group ID -func (r ApiVpnIkeProposalsListRequest) GroupN(groupN []int32) ApiVpnIkeProposalsListRequest { - r.groupN = &groupN +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIe(encryptionAlgorithmIe []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIe = &encryptionAlgorithmIe return r } -func (r ApiVpnIkeProposalsListRequest) Id(id []int32) ApiVpnIkeProposalsListRequest { - r.id = &id +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIew(encryptionAlgorithmIew []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIew = &encryptionAlgorithmIew return r } -func (r ApiVpnIkeProposalsListRequest) IdEmpty(idEmpty bool) ApiVpnIkeProposalsListRequest { - r.idEmpty = &idEmpty +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmIsw(encryptionAlgorithmIsw []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmIsw = &encryptionAlgorithmIsw return r } -func (r ApiVpnIkeProposalsListRequest) IdGt(idGt []int32) ApiVpnIkeProposalsListRequest { - r.idGt = &idGt +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmN = &encryptionAlgorithmN return r } -func (r ApiVpnIkeProposalsListRequest) IdGte(idGte []int32) ApiVpnIkeProposalsListRequest { - r.idGte = &idGte +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNic(encryptionAlgorithmNic []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNic = &encryptionAlgorithmNic return r } -func (r ApiVpnIkeProposalsListRequest) IdLt(idLt []int32) ApiVpnIkeProposalsListRequest { +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNie(encryptionAlgorithmNie []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNie = &encryptionAlgorithmNie + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNiew(encryptionAlgorithmNiew []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNiew = &encryptionAlgorithmNiew + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIkeProposalsListRequest) EncryptionAlgorithmNisw(encryptionAlgorithmNisw []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) ApiVpnIkeProposalsListRequest { + r.encryptionAlgorithmNisw = &encryptionAlgorithmNisw + return r +} + +// Diffie-Hellman group ID +func (r ApiVpnIkeProposalsListRequest) Group(group []int32) ApiVpnIkeProposalsListRequest { + r.group = &group + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupIc(groupIc []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupIc = &groupIc + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupIe(groupIe []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupIe = &groupIe + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupIew(groupIew []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupIew = &groupIew + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupIsw(groupIsw []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupIsw = &groupIsw + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupN(groupN []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupN = &groupN + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupNic(groupNic []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupNic = &groupNic + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupNie(groupNie []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupNie = &groupNie + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupNiew(groupNiew []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupNiew = &groupNiew + return r +} + +// Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIkeProposalsListRequest) GroupNisw(groupNisw []VpnIkeProposalsListGroupIcParameterInner) ApiVpnIkeProposalsListRequest { + r.groupNisw = &groupNisw + return r +} + +func (r ApiVpnIkeProposalsListRequest) Id(id []int32) ApiVpnIkeProposalsListRequest { + r.id = &id + return r +} + +func (r ApiVpnIkeProposalsListRequest) IdEmpty(idEmpty bool) ApiVpnIkeProposalsListRequest { + r.idEmpty = &idEmpty + return r +} + +func (r ApiVpnIkeProposalsListRequest) IdGt(idGt []int32) ApiVpnIkeProposalsListRequest { + r.idGt = &idGt + return r +} + +func (r ApiVpnIkeProposalsListRequest) IdGte(idGte []int32) ApiVpnIkeProposalsListRequest { + r.idGte = &idGte + return r +} + +func (r ApiVpnIkeProposalsListRequest) IdLt(idLt []int32) ApiVpnIkeProposalsListRequest { r.idLt = &idLt return r } @@ -3294,6 +3770,53 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "multi") } } + if r.authenticationAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__empty", r.authenticationAlgorithmEmpty, "") + } + if r.authenticationAlgorithmIc != nil { + t := *r.authenticationAlgorithmIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", t, "multi") + } + } + if r.authenticationAlgorithmIe != nil { + t := *r.authenticationAlgorithmIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", t, "multi") + } + } + if r.authenticationAlgorithmIew != nil { + t := *r.authenticationAlgorithmIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", t, "multi") + } + } + if r.authenticationAlgorithmIsw != nil { + t := *r.authenticationAlgorithmIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", t, "multi") + } + } if r.authenticationAlgorithmN != nil { t := *r.authenticationAlgorithmN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3305,6 +3828,50 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "multi") } } + if r.authenticationAlgorithmNic != nil { + t := *r.authenticationAlgorithmNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", t, "multi") + } + } + if r.authenticationAlgorithmNie != nil { + t := *r.authenticationAlgorithmNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", t, "multi") + } + } + if r.authenticationAlgorithmNiew != nil { + t := *r.authenticationAlgorithmNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", t, "multi") + } + } + if r.authenticationAlgorithmNisw != nil { + t := *r.authenticationAlgorithmNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", t, "multi") + } + } if r.authenticationMethod != nil { t := *r.authenticationMethod if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3316,6 +3883,53 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method", t, "multi") } } + if r.authenticationMethodEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__empty", r.authenticationMethodEmpty, "") + } + if r.authenticationMethodIc != nil { + t := *r.authenticationMethodIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ic", t, "multi") + } + } + if r.authenticationMethodIe != nil { + t := *r.authenticationMethodIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__ie", t, "multi") + } + } + if r.authenticationMethodIew != nil { + t := *r.authenticationMethodIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__iew", t, "multi") + } + } + if r.authenticationMethodIsw != nil { + t := *r.authenticationMethodIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__isw", t, "multi") + } + } if r.authenticationMethodN != nil { t := *r.authenticationMethodN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3327,6 +3941,50 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__n", t, "multi") } } + if r.authenticationMethodNic != nil { + t := *r.authenticationMethodNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nic", t, "multi") + } + } + if r.authenticationMethodNie != nil { + t := *r.authenticationMethodNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nie", t, "multi") + } + } + if r.authenticationMethodNiew != nil { + t := *r.authenticationMethodNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__niew", t, "multi") + } + } + if r.authenticationMethodNisw != nil { + t := *r.authenticationMethodNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_method__nisw", t, "multi") + } + } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3531,6 +4189,53 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "multi") } } + if r.encryptionAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__empty", r.encryptionAlgorithmEmpty, "") + } + if r.encryptionAlgorithmIc != nil { + t := *r.encryptionAlgorithmIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", t, "multi") + } + } + if r.encryptionAlgorithmIe != nil { + t := *r.encryptionAlgorithmIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", t, "multi") + } + } + if r.encryptionAlgorithmIew != nil { + t := *r.encryptionAlgorithmIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", t, "multi") + } + } + if r.encryptionAlgorithmIsw != nil { + t := *r.encryptionAlgorithmIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", t, "multi") + } + } if r.encryptionAlgorithmN != nil { t := *r.encryptionAlgorithmN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3542,6 +4247,50 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "multi") } } + if r.encryptionAlgorithmNic != nil { + t := *r.encryptionAlgorithmNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", t, "multi") + } + } + if r.encryptionAlgorithmNie != nil { + t := *r.encryptionAlgorithmNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", t, "multi") + } + } + if r.encryptionAlgorithmNiew != nil { + t := *r.encryptionAlgorithmNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", t, "multi") + } + } + if r.encryptionAlgorithmNisw != nil { + t := *r.encryptionAlgorithmNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", t, "multi") + } + } if r.group != nil { t := *r.group if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3553,6 +4302,50 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "group", t, "multi") } } + if r.groupIc != nil { + t := *r.groupIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ic", t, "multi") + } + } + if r.groupIe != nil { + t := *r.groupIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__ie", t, "multi") + } + } + if r.groupIew != nil { + t := *r.groupIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__iew", t, "multi") + } + } + if r.groupIsw != nil { + t := *r.groupIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__isw", t, "multi") + } + } if r.groupN != nil { t := *r.groupN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3564,6 +4357,50 @@ func (a *VpnAPIService) VpnIkeProposalsListExecute(r ApiVpnIkeProposalsListReque parameterAddToHeaderOrQuery(localVarQueryParams, "group__n", t, "multi") } } + if r.groupNic != nil { + t := *r.groupNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nic", t, "multi") + } + } + if r.groupNie != nil { + t := *r.groupNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nie", t, "multi") + } + } + if r.groupNiew != nil { + t := *r.groupNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__niew", t, "multi") + } + } + if r.groupNisw != nil { + t := *r.groupNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "group__nisw", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5067,11 +5904,15 @@ type ApiVpnIpsecPoliciesListRequest struct { offset *int32 ordering *string pfsGroup *[]*int32 - pfsGroupN *[]*int32 - proposal *[]string - proposalN *[]string - proposalId *[]int32 - proposalIdN *[]int32 + pfsGroupIc *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupIe *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupIew *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupIsw *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupN *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupNic *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupNie *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupNiew *[]VpnIpsecPoliciesListPfsGroupIcParameterInner + pfsGroupNisw *[]VpnIpsecPoliciesListPfsGroupIcParameterInner q *string tag *[]string tagN *[]string @@ -5347,29 +6188,57 @@ func (r ApiVpnIpsecPoliciesListRequest) PfsGroup(pfsGroup []*int32) ApiVpnIpsecP return r } -// Diffie-Hellman group for Perfect Forward Secrecy -func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []*int32) ApiVpnIpsecPoliciesListRequest { +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIc(pfsGroupIc []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIc = &pfsGroupIc + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIe(pfsGroupIe []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIe = &pfsGroupIe + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIew(pfsGroupIew []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIew = &pfsGroupIew + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupIsw(pfsGroupIsw []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupIsw = &pfsGroupIsw + return r +} + +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupN(pfsGroupN []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { r.pfsGroupN = &pfsGroupN return r } -func (r ApiVpnIpsecPoliciesListRequest) Proposal(proposal []string) ApiVpnIpsecPoliciesListRequest { - r.proposal = &proposal +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNic(pfsGroupNic []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNic = &pfsGroupNic return r } -func (r ApiVpnIpsecPoliciesListRequest) ProposalN(proposalN []string) ApiVpnIpsecPoliciesListRequest { - r.proposalN = &proposalN +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNie(pfsGroupNie []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNie = &pfsGroupNie return r } -func (r ApiVpnIpsecPoliciesListRequest) ProposalId(proposalId []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalId = &proposalId +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNiew(pfsGroupNiew []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNiew = &pfsGroupNiew return r } -func (r ApiVpnIpsecPoliciesListRequest) ProposalIdN(proposalIdN []int32) ApiVpnIpsecPoliciesListRequest { - r.proposalIdN = &proposalIdN +// Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 +func (r ApiVpnIpsecPoliciesListRequest) PfsGroupNisw(pfsGroupNisw []VpnIpsecPoliciesListPfsGroupIcParameterInner) ApiVpnIpsecPoliciesListRequest { + r.pfsGroupNisw = &pfsGroupNisw return r } @@ -5954,6 +6823,50 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group", t, "multi") } } + if r.pfsGroupIc != nil { + t := *r.pfsGroupIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ic", t, "multi") + } + } + if r.pfsGroupIe != nil { + t := *r.pfsGroupIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__ie", t, "multi") + } + } + if r.pfsGroupIew != nil { + t := *r.pfsGroupIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__iew", t, "multi") + } + } + if r.pfsGroupIsw != nil { + t := *r.pfsGroupIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__isw", t, "multi") + } + } if r.pfsGroupN != nil { t := *r.pfsGroupN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5965,48 +6878,48 @@ func (a *VpnAPIService) VpnIpsecPoliciesListExecute(r ApiVpnIpsecPoliciesListReq parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__n", t, "multi") } } - if r.proposal != nil { - t := *r.proposal + if r.pfsGroupNic != nil { + t := *r.pfsGroupNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nic", t, "multi") } } - if r.proposalN != nil { - t := *r.proposalN + if r.pfsGroupNie != nil { + t := *r.pfsGroupNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nie", t, "multi") } } - if r.proposalId != nil { - t := *r.proposalId + if r.pfsGroupNiew != nil { + t := *r.pfsGroupNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__niew", t, "multi") } } - if r.proposalIdN != nil { - t := *r.proposalIdN + if r.pfsGroupNisw != nil { + t := *r.pfsGroupNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "proposal_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "pfs_group__nisw", t, "multi") } } if r.q != nil { @@ -7118,7 +8031,16 @@ type ApiVpnIpsecProfilesListRequest struct { lastUpdatedN *[]time.Time limit *int32 mode *[]string - modeN *[]string + modeEmpty *bool + modeIc *[]VpnIpsecProfilesListModeIcParameterInner + modeIe *[]VpnIpsecProfilesListModeIcParameterInner + modeIew *[]VpnIpsecProfilesListModeIcParameterInner + modeIsw *[]VpnIpsecProfilesListModeIcParameterInner + modeN *[]VpnIpsecProfilesListModeIcParameterInner + modeNic *[]VpnIpsecProfilesListModeIcParameterInner + modeNie *[]VpnIpsecProfilesListModeIcParameterInner + modeNiew *[]VpnIpsecProfilesListModeIcParameterInner + modeNisw *[]VpnIpsecProfilesListModeIcParameterInner modifiedByRequest *string name *[]string nameEmpty *bool @@ -7363,11 +8285,65 @@ func (r ApiVpnIpsecProfilesListRequest) Mode(mode []string) ApiVpnIpsecProfilesL return r } -func (r ApiVpnIpsecProfilesListRequest) ModeN(modeN []string) ApiVpnIpsecProfilesListRequest { +func (r ApiVpnIpsecProfilesListRequest) ModeEmpty(modeEmpty bool) ApiVpnIpsecProfilesListRequest { + r.modeEmpty = &modeEmpty + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeIc(modeIc []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeIc = &modeIc + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeIe(modeIe []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeIe = &modeIe + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeIew(modeIew []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeIew = &modeIew + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeIsw(modeIsw []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeIsw = &modeIsw + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeN(modeN []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { r.modeN = &modeN return r } +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeNic(modeNic []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeNic = &modeNic + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeNie(modeNie []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeNie = &modeNie + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeNiew(modeNiew []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeNiew = &modeNiew + return r +} + +// * `esp` - ESP * `ah` - AH +func (r ApiVpnIpsecProfilesListRequest) ModeNisw(modeNisw []VpnIpsecProfilesListModeIcParameterInner) ApiVpnIpsecProfilesListRequest { + r.modeNisw = &modeNisw + return r +} + func (r ApiVpnIpsecProfilesListRequest) ModifiedByRequest(modifiedByRequest string) ApiVpnIpsecProfilesListRequest { r.modifiedByRequest = &modifiedByRequest return r @@ -7841,117 +8817,208 @@ func (a *VpnAPIService) VpnIpsecProfilesListExecute(r ApiVpnIpsecProfilesListReq parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id", t, "multi") } } - if r.ipsecPolicyIdN != nil { - t := *r.ipsecPolicyIdN + if r.ipsecPolicyIdN != nil { + t := *r.ipsecPolicyIdN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "multi") + } + } + if r.lastUpdated != nil { + t := *r.lastUpdated + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + } + } + if r.lastUpdatedEmpty != nil { + t := *r.lastUpdatedEmpty + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + } + } + if r.lastUpdatedGt != nil { + t := *r.lastUpdatedGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + } + } + if r.lastUpdatedGte != nil { + t := *r.lastUpdatedGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + } + } + if r.lastUpdatedLt != nil { + t := *r.lastUpdatedLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + } + } + if r.lastUpdatedLte != nil { + t := *r.lastUpdatedLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + } + } + if r.lastUpdatedN != nil { + t := *r.lastUpdatedN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + } + } + if r.limit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") + } + if r.mode != nil { + t := *r.mode if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "ipsec_policy_id__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi") } } - if r.lastUpdated != nil { - t := *r.lastUpdated + if r.modeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__empty", r.modeEmpty, "") + } + if r.modeIc != nil { + t := *r.modeIc if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ic", t, "multi") } } - if r.lastUpdatedEmpty != nil { - t := *r.lastUpdatedEmpty + if r.modeIe != nil { + t := *r.modeIe if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__empty", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__ie", t, "multi") } } - if r.lastUpdatedGt != nil { - t := *r.lastUpdatedGt + if r.modeIew != nil { + t := *r.modeIew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__iew", t, "multi") } } - if r.lastUpdatedGte != nil { - t := *r.lastUpdatedGte + if r.modeIsw != nil { + t := *r.modeIsw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__gte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__isw", t, "multi") } } - if r.lastUpdatedLt != nil { - t := *r.lastUpdatedLt + if r.modeN != nil { + t := *r.modeN if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lt", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi") } } - if r.lastUpdatedLte != nil { - t := *r.lastUpdatedLte + if r.modeNic != nil { + t := *r.modeNic if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__lte", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nic", t, "multi") } } - if r.lastUpdatedN != nil { - t := *r.lastUpdatedN + if r.modeNie != nil { + t := *r.modeNie if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "last_updated__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nie", t, "multi") } } - if r.limit != nil { - parameterAddToHeaderOrQuery(localVarQueryParams, "limit", r.limit, "") - } - if r.mode != nil { - t := *r.mode + if r.modeNiew != nil { + t := *r.modeNiew if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__niew", t, "multi") } } - if r.modeN != nil { - t := *r.modeN + if r.modeNisw != nil { + t := *r.modeNisw if reflect.TypeOf(t).Kind() == reflect.Slice { s := reflect.ValueOf(t) for i := 0; i < s.Len(); i++ { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", s.Index(i).Interface(), "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", s.Index(i).Interface(), "multi") } } else { - parameterAddToHeaderOrQuery(localVarQueryParams, "mode__n", t, "multi") + parameterAddToHeaderOrQuery(localVarQueryParams, "mode__nisw", t, "multi") } } if r.modifiedByRequest != nil { @@ -9140,82 +10207,100 @@ func (a *VpnAPIService) VpnIpsecProposalsDestroyExecute(r ApiVpnIpsecProposalsDe } type ApiVpnIpsecProposalsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - authenticationAlgorithm *[]string - authenticationAlgorithmN *[]string - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - encryptionAlgorithm *[]string - encryptionAlgorithmN *[]string - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ipsecPolicy *[]string - ipsecPolicyN *[]string - ipsecPolicyId *[]int32 - ipsecPolicyIdN *[]int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - saLifetimeData *[]int32 - saLifetimeDataEmpty *bool - saLifetimeDataGt *[]int32 - saLifetimeDataGte *[]int32 - saLifetimeDataLt *[]int32 - saLifetimeDataLte *[]int32 - saLifetimeDataN *[]int32 - saLifetimeSeconds *[]int32 - saLifetimeSecondsEmpty *bool - saLifetimeSecondsGt *[]int32 - saLifetimeSecondsGte *[]int32 - saLifetimeSecondsLt *[]int32 - saLifetimeSecondsLte *[]int32 - saLifetimeSecondsN *[]int32 - tag *[]string - tagN *[]string - updatedByRequest *string + ctx context.Context + ApiService *VpnAPIService + authenticationAlgorithm *[]string + authenticationAlgorithmEmpty *bool + authenticationAlgorithmIc *[]Authentication + authenticationAlgorithmIe *[]Authentication + authenticationAlgorithmIew *[]Authentication + authenticationAlgorithmIsw *[]Authentication + authenticationAlgorithmN *[]Authentication + authenticationAlgorithmNic *[]Authentication + authenticationAlgorithmNie *[]Authentication + authenticationAlgorithmNiew *[]Authentication + authenticationAlgorithmNisw *[]Authentication + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + encryptionAlgorithm *[]string + encryptionAlgorithmEmpty *bool + encryptionAlgorithmIc *[]Encryption + encryptionAlgorithmIe *[]Encryption + encryptionAlgorithmIew *[]Encryption + encryptionAlgorithmIsw *[]Encryption + encryptionAlgorithmN *[]Encryption + encryptionAlgorithmNic *[]Encryption + encryptionAlgorithmNie *[]Encryption + encryptionAlgorithmNiew *[]Encryption + encryptionAlgorithmNisw *[]Encryption + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ipsecPolicy *[]string + ipsecPolicyN *[]string + ipsecPolicyId *[]int32 + ipsecPolicyIdN *[]int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + saLifetimeData *[]int32 + saLifetimeDataEmpty *bool + saLifetimeDataGt *[]int32 + saLifetimeDataGte *[]int32 + saLifetimeDataLt *[]int32 + saLifetimeDataLte *[]int32 + saLifetimeDataN *[]int32 + saLifetimeSeconds *[]int32 + saLifetimeSecondsEmpty *bool + saLifetimeSecondsGt *[]int32 + saLifetimeSecondsGte *[]int32 + saLifetimeSecondsLt *[]int32 + saLifetimeSecondsLte *[]int32 + saLifetimeSecondsN *[]int32 + tag *[]string + tagN *[]string + updatedByRequest *string } func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithm(authenticationAlgorithm []string) ApiVpnIpsecProposalsListRequest { @@ -9223,11 +10308,65 @@ func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithm(authenticationA return r } -func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []string) ApiVpnIpsecProposalsListRequest { +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty bool) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmEmpty = &authenticationAlgorithmEmpty + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIc(authenticationAlgorithmIc []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIc = &authenticationAlgorithmIc + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIe(authenticationAlgorithmIe []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIe = &authenticationAlgorithmIe + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIew(authenticationAlgorithmIew []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIew = &authenticationAlgorithmIew + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmIsw(authenticationAlgorithmIsw []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmIsw = &authenticationAlgorithmIsw + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmN(authenticationAlgorithmN []Authentication) ApiVpnIpsecProposalsListRequest { r.authenticationAlgorithmN = &authenticationAlgorithmN return r } +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNic(authenticationAlgorithmNic []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNic = &authenticationAlgorithmNic + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNie(authenticationAlgorithmNie []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNie = &authenticationAlgorithmNie + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNiew(authenticationAlgorithmNiew []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNiew = &authenticationAlgorithmNiew + return r +} + +// * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +func (r ApiVpnIpsecProposalsListRequest) AuthenticationAlgorithmNisw(authenticationAlgorithmNisw []Authentication) ApiVpnIpsecProposalsListRequest { + r.authenticationAlgorithmNisw = &authenticationAlgorithmNisw + return r +} + func (r ApiVpnIpsecProposalsListRequest) Created(created []time.Time) ApiVpnIpsecProposalsListRequest { r.created = &created return r @@ -9328,11 +10467,65 @@ func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithm(encryptionAlgorithm return r } -func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []string) ApiVpnIpsecProposalsListRequest { +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty bool) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmEmpty = &encryptionAlgorithmEmpty + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIc(encryptionAlgorithmIc []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIc = &encryptionAlgorithmIc + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIe(encryptionAlgorithmIe []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIe = &encryptionAlgorithmIe + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIew(encryptionAlgorithmIew []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIew = &encryptionAlgorithmIew + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmIsw(encryptionAlgorithmIsw []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmIsw = &encryptionAlgorithmIsw + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmN(encryptionAlgorithmN []Encryption) ApiVpnIpsecProposalsListRequest { r.encryptionAlgorithmN = &encryptionAlgorithmN return r } +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNic(encryptionAlgorithmNic []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNic = &encryptionAlgorithmNic + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNie(encryptionAlgorithmNie []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNie = &encryptionAlgorithmNie + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNiew(encryptionAlgorithmNiew []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNiew = &encryptionAlgorithmNiew + return r +} + +// * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +func (r ApiVpnIpsecProposalsListRequest) EncryptionAlgorithmNisw(encryptionAlgorithmNisw []Encryption) ApiVpnIpsecProposalsListRequest { + r.encryptionAlgorithmNisw = &encryptionAlgorithmNisw + return r +} + func (r ApiVpnIpsecProposalsListRequest) Id(id []int32) ApiVpnIpsecProposalsListRequest { r.id = &id return r @@ -9648,6 +10841,53 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm", t, "multi") } } + if r.authenticationAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__empty", r.authenticationAlgorithmEmpty, "") + } + if r.authenticationAlgorithmIc != nil { + t := *r.authenticationAlgorithmIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ic", t, "multi") + } + } + if r.authenticationAlgorithmIe != nil { + t := *r.authenticationAlgorithmIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__ie", t, "multi") + } + } + if r.authenticationAlgorithmIew != nil { + t := *r.authenticationAlgorithmIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__iew", t, "multi") + } + } + if r.authenticationAlgorithmIsw != nil { + t := *r.authenticationAlgorithmIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__isw", t, "multi") + } + } if r.authenticationAlgorithmN != nil { t := *r.authenticationAlgorithmN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9659,6 +10899,50 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__n", t, "multi") } } + if r.authenticationAlgorithmNic != nil { + t := *r.authenticationAlgorithmNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nic", t, "multi") + } + } + if r.authenticationAlgorithmNie != nil { + t := *r.authenticationAlgorithmNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nie", t, "multi") + } + } + if r.authenticationAlgorithmNiew != nil { + t := *r.authenticationAlgorithmNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__niew", t, "multi") + } + } + if r.authenticationAlgorithmNisw != nil { + t := *r.authenticationAlgorithmNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "authentication_algorithm__nisw", t, "multi") + } + } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9863,6 +11147,53 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm", t, "multi") } } + if r.encryptionAlgorithmEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__empty", r.encryptionAlgorithmEmpty, "") + } + if r.encryptionAlgorithmIc != nil { + t := *r.encryptionAlgorithmIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ic", t, "multi") + } + } + if r.encryptionAlgorithmIe != nil { + t := *r.encryptionAlgorithmIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__ie", t, "multi") + } + } + if r.encryptionAlgorithmIew != nil { + t := *r.encryptionAlgorithmIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__iew", t, "multi") + } + } + if r.encryptionAlgorithmIsw != nil { + t := *r.encryptionAlgorithmIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__isw", t, "multi") + } + } if r.encryptionAlgorithmN != nil { t := *r.encryptionAlgorithmN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -9874,6 +11205,50 @@ func (a *VpnAPIService) VpnIpsecProposalsListExecute(r ApiVpnIpsecProposalsListR parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__n", t, "multi") } } + if r.encryptionAlgorithmNic != nil { + t := *r.encryptionAlgorithmNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nic", t, "multi") + } + } + if r.encryptionAlgorithmNie != nil { + t := *r.encryptionAlgorithmNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nie", t, "multi") + } + } + if r.encryptionAlgorithmNiew != nil { + t := *r.encryptionAlgorithmNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__niew", t, "multi") + } + } + if r.encryptionAlgorithmNisw != nil { + t := *r.encryptionAlgorithmNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encryption_algorithm__nisw", t, "multi") + } + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -13702,14 +15077,23 @@ type ApiVpnL2vpnsListRequest struct { tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 type_ *[]string - typeN *[]string + typeEmpty *bool + typeIc *[]VpnL2vpnsListTypeIcParameterInner + typeIe *[]VpnL2vpnsListTypeIcParameterInner + typeIew *[]VpnL2vpnsListTypeIcParameterInner + typeIsw *[]VpnL2vpnsListTypeIcParameterInner + typeN *[]VpnL2vpnsListTypeIcParameterInner + typeNic *[]VpnL2vpnsListTypeIcParameterInner + typeNie *[]VpnL2vpnsListTypeIcParameterInner + typeNiew *[]VpnL2vpnsListTypeIcParameterInner + typeNisw *[]VpnL2vpnsListTypeIcParameterInner updatedByRequest *string } @@ -14122,26 +15506,22 @@ func (r ApiVpnL2vpnsListRequest) TenantN(tenantN []string) ApiVpnL2vpnsListReque return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroup(tenantGroup []string) ApiVpnL2vpnsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnL2vpnsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnL2vpnsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnL2vpnsListRequest { +func (r ApiVpnL2vpnsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnL2vpnsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -14158,13 +15538,67 @@ func (r ApiVpnL2vpnsListRequest) TenantIdN(tenantIdN []*int32) ApiVpnL2vpnsListR return r } -func (r ApiVpnL2vpnsListRequest) Type_(type_ []string) ApiVpnL2vpnsListRequest { - r.type_ = &type_ +func (r ApiVpnL2vpnsListRequest) Type_(type_ []string) ApiVpnL2vpnsListRequest { + r.type_ = &type_ + return r +} + +func (r ApiVpnL2vpnsListRequest) TypeEmpty(typeEmpty bool) ApiVpnL2vpnsListRequest { + r.typeEmpty = &typeEmpty + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeIc(typeIc []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeIc = &typeIc + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeIe(typeIe []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeIe = &typeIe + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeIew(typeIew []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeIew = &typeIew + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeIsw(typeIsw []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeIsw = &typeIsw + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeN(typeN []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeN = &typeN + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeNic(typeNic []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeNic = &typeNic + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeNie(typeNie []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeNie = &typeNie + return r +} + +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeNiew(typeNiew []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeNiew = &typeNiew return r } -func (r ApiVpnL2vpnsListRequest) TypeN(typeN []string) ApiVpnL2vpnsListRequest { - r.typeN = &typeN +// * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree +func (r ApiVpnL2vpnsListRequest) TypeNisw(typeNisw []VpnL2vpnsListTypeIcParameterInner) ApiVpnL2vpnsListRequest { + r.typeNisw = &typeNisw return r } @@ -15072,6 +16506,53 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina parameterAddToHeaderOrQuery(localVarQueryParams, "type", t, "multi") } } + if r.typeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__empty", r.typeEmpty, "") + } + if r.typeIc != nil { + t := *r.typeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ic", t, "multi") + } + } + if r.typeIe != nil { + t := *r.typeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__ie", t, "multi") + } + } + if r.typeIew != nil { + t := *r.typeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__iew", t, "multi") + } + } + if r.typeIsw != nil { + t := *r.typeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__isw", t, "multi") + } + } if r.typeN != nil { t := *r.typeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -15083,6 +16564,50 @@ func (a *VpnAPIService) VpnL2vpnsListExecute(r ApiVpnL2vpnsListRequest) (*Pagina parameterAddToHeaderOrQuery(localVarQueryParams, "type__n", t, "multi") } } + if r.typeNic != nil { + t := *r.typeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nic", t, "multi") + } + } + if r.typeNie != nil { + t := *r.typeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nie", t, "multi") + } + } + if r.typeNiew != nil { + t := *r.typeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__niew", t, "multi") + } + } + if r.typeNisw != nil { + t := *r.typeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "type__nisw", t, "multi") + } + } if r.updatedByRequest != nil { parameterAddToHeaderOrQuery(localVarQueryParams, "updated_by_request", r.updatedByRequest, "") } @@ -18226,7 +19751,16 @@ type ApiVpnTunnelTerminationsListRequest struct { outsideIpIdN *[]int32 q *string role *[]string - roleN *[]string + roleEmpty *bool + roleIc *[]VpnTunnelTerminationsListRoleIcParameterInner + roleIe *[]VpnTunnelTerminationsListRoleIcParameterInner + roleIew *[]VpnTunnelTerminationsListRoleIcParameterInner + roleIsw *[]VpnTunnelTerminationsListRoleIcParameterInner + roleN *[]VpnTunnelTerminationsListRoleIcParameterInner + roleNic *[]VpnTunnelTerminationsListRoleIcParameterInner + roleNie *[]VpnTunnelTerminationsListRoleIcParameterInner + roleNiew *[]VpnTunnelTerminationsListRoleIcParameterInner + roleNisw *[]VpnTunnelTerminationsListRoleIcParameterInner tag *[]string tagN *[]string terminationId *[]int32 @@ -18429,11 +19963,65 @@ func (r ApiVpnTunnelTerminationsListRequest) Role(role []string) ApiVpnTunnelTer return r } -func (r ApiVpnTunnelTerminationsListRequest) RoleN(roleN []string) ApiVpnTunnelTerminationsListRequest { +func (r ApiVpnTunnelTerminationsListRequest) RoleEmpty(roleEmpty bool) ApiVpnTunnelTerminationsListRequest { + r.roleEmpty = &roleEmpty + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleIc(roleIc []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleIc = &roleIc + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleIe(roleIe []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleIe = &roleIe + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleIew(roleIew []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleIew = &roleIew + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleIsw(roleIsw []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleIsw = &roleIsw + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleN(roleN []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { r.roleN = &roleN return r } +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleNic(roleNic []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleNic = &roleNic + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleNie(roleNie []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleNie = &roleNie + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleNiew(roleNiew []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleNiew = &roleNiew + return r +} + +// * `peer` - Peer * `hub` - Hub * `spoke` - Spoke +func (r ApiVpnTunnelTerminationsListRequest) RoleNisw(roleNisw []VpnTunnelTerminationsListRoleIcParameterInner) ApiVpnTunnelTerminationsListRequest { + r.roleNisw = &roleNisw + return r +} + func (r ApiVpnTunnelTerminationsListRequest) Tag(tag []string) ApiVpnTunnelTerminationsListRequest { r.tag = &tag return r @@ -18901,6 +20489,53 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati parameterAddToHeaderOrQuery(localVarQueryParams, "role", t, "multi") } } + if r.roleEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__empty", r.roleEmpty, "") + } + if r.roleIc != nil { + t := *r.roleIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ic", t, "multi") + } + } + if r.roleIe != nil { + t := *r.roleIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__ie", t, "multi") + } + } + if r.roleIew != nil { + t := *r.roleIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__iew", t, "multi") + } + } + if r.roleIsw != nil { + t := *r.roleIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__isw", t, "multi") + } + } if r.roleN != nil { t := *r.roleN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -18912,6 +20547,50 @@ func (a *VpnAPIService) VpnTunnelTerminationsListExecute(r ApiVpnTunnelTerminati parameterAddToHeaderOrQuery(localVarQueryParams, "role__n", t, "multi") } } + if r.roleNic != nil { + t := *r.roleNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nic", t, "multi") + } + } + if r.roleNie != nil { + t := *r.roleNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nie", t, "multi") + } + } + if r.roleNiew != nil { + t := *r.roleNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__niew", t, "multi") + } + } + if r.roleNisw != nil { + t := *r.roleNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "role__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -20082,141 +21761,159 @@ func (a *VpnAPIService) VpnTunnelsDestroyExecute(r ApiVpnTunnelsDestroyRequest) // set Content-Type header localVarHTTPContentType := selectHeaderContentType(localVarHTTPContentTypes) if localVarHTTPContentType != "" { - localVarHeaderParams["Content-Type"] = localVarHTTPContentType - } - - // to determine the Accept header - localVarHTTPHeaderAccepts := []string{} - - // set Accept header - localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) - if localVarHTTPHeaderAccept != "" { - localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept - } - if r.ctx != nil { - // API Key Authentication - if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { - if apiKey, ok := auth["tokenAuth"]; ok { - var key string - if apiKey.Prefix != "" { - key = apiKey.Prefix + " " + apiKey.Key - } else { - key = apiKey.Key - } - localVarHeaderParams["Authorization"] = key - } - } - } - req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) - if err != nil { - return nil, err - } - - localVarHTTPResponse, err := a.client.callAPI(req) - if err != nil || localVarHTTPResponse == nil { - return localVarHTTPResponse, err - } - - localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) - localVarHTTPResponse.Body.Close() - localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) - if err != nil { - return localVarHTTPResponse, err - } - - if localVarHTTPResponse.StatusCode >= 300 { - newErr := &GenericOpenAPIError{ - body: localVarBody, - error: localVarHTTPResponse.Status, - } - return localVarHTTPResponse, newErr - } - - return localVarHTTPResponse, nil -} - -type ApiVpnTunnelsListRequest struct { - ctx context.Context - ApiService *VpnAPIService - created *[]time.Time - createdEmpty *[]time.Time - createdGt *[]time.Time - createdGte *[]time.Time - createdLt *[]time.Time - createdLte *[]time.Time - createdN *[]time.Time - createdByRequest *string - description *[]string - descriptionEmpty *bool - descriptionIc *[]string - descriptionIe *[]string - descriptionIew *[]string - descriptionIsw *[]string - descriptionN *[]string - descriptionNic *[]string - descriptionNie *[]string - descriptionNiew *[]string - descriptionNisw *[]string - encapsulation *[]string - encapsulationN *[]string - group *[]string - groupN *[]string - groupId *[]*int32 - groupIdN *[]*int32 - id *[]int32 - idEmpty *bool - idGt *[]int32 - idGte *[]int32 - idLt *[]int32 - idLte *[]int32 - idN *[]int32 - ipsecProfile *[]string - ipsecProfileN *[]string - ipsecProfileId *[]*int32 - ipsecProfileIdN *[]*int32 - lastUpdated *[]time.Time - lastUpdatedEmpty *[]time.Time - lastUpdatedGt *[]time.Time - lastUpdatedGte *[]time.Time - lastUpdatedLt *[]time.Time - lastUpdatedLte *[]time.Time - lastUpdatedN *[]time.Time - limit *int32 - modifiedByRequest *string - name *[]string - nameEmpty *bool - nameIc *[]string - nameIe *[]string - nameIew *[]string - nameIsw *[]string - nameN *[]string - nameNic *[]string - nameNie *[]string - nameNiew *[]string - nameNisw *[]string - offset *int32 - ordering *string - q *string - status *[]string - statusN *[]string - tag *[]string - tagN *[]string - tenant *[]string - tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 - tenantId *[]*int32 - tenantIdN *[]*int32 - tunnelId *[]int32 - tunnelIdEmpty *bool - tunnelIdGt *[]int32 - tunnelIdGte *[]int32 - tunnelIdLt *[]int32 - tunnelIdLte *[]int32 - tunnelIdN *[]int32 - updatedByRequest *string + localVarHeaderParams["Content-Type"] = localVarHTTPContentType + } + + // to determine the Accept header + localVarHTTPHeaderAccepts := []string{} + + // set Accept header + localVarHTTPHeaderAccept := selectHeaderAccept(localVarHTTPHeaderAccepts) + if localVarHTTPHeaderAccept != "" { + localVarHeaderParams["Accept"] = localVarHTTPHeaderAccept + } + if r.ctx != nil { + // API Key Authentication + if auth, ok := r.ctx.Value(ContextAPIKeys).(map[string]APIKey); ok { + if apiKey, ok := auth["tokenAuth"]; ok { + var key string + if apiKey.Prefix != "" { + key = apiKey.Prefix + " " + apiKey.Key + } else { + key = apiKey.Key + } + localVarHeaderParams["Authorization"] = key + } + } + } + req, err := a.client.prepareRequest(r.ctx, localVarPath, localVarHTTPMethod, localVarPostBody, localVarHeaderParams, localVarQueryParams, localVarFormParams, formFiles) + if err != nil { + return nil, err + } + + localVarHTTPResponse, err := a.client.callAPI(req) + if err != nil || localVarHTTPResponse == nil { + return localVarHTTPResponse, err + } + + localVarBody, err := io.ReadAll(localVarHTTPResponse.Body) + localVarHTTPResponse.Body.Close() + localVarHTTPResponse.Body = io.NopCloser(bytes.NewBuffer(localVarBody)) + if err != nil { + return localVarHTTPResponse, err + } + + if localVarHTTPResponse.StatusCode >= 300 { + newErr := &GenericOpenAPIError{ + body: localVarBody, + error: localVarHTTPResponse.Status, + } + return localVarHTTPResponse, newErr + } + + return localVarHTTPResponse, nil +} + +type ApiVpnTunnelsListRequest struct { + ctx context.Context + ApiService *VpnAPIService + created *[]time.Time + createdEmpty *[]time.Time + createdGt *[]time.Time + createdGte *[]time.Time + createdLt *[]time.Time + createdLte *[]time.Time + createdN *[]time.Time + createdByRequest *string + description *[]string + descriptionEmpty *bool + descriptionIc *[]string + descriptionIe *[]string + descriptionIew *[]string + descriptionIsw *[]string + descriptionN *[]string + descriptionNic *[]string + descriptionNie *[]string + descriptionNiew *[]string + descriptionNisw *[]string + encapsulation *[]string + encapsulationEmpty *bool + encapsulationIc *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationIe *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationIew *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationIsw *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationN *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationNic *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationNie *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationNiew *[]VpnTunnelsListEncapsulationIcParameterInner + encapsulationNisw *[]VpnTunnelsListEncapsulationIcParameterInner + group *[]string + groupN *[]string + groupId *[]*int32 + groupIdN *[]*int32 + id *[]int32 + idEmpty *bool + idGt *[]int32 + idGte *[]int32 + idLt *[]int32 + idLte *[]int32 + idN *[]int32 + ipsecProfile *[]string + ipsecProfileN *[]string + ipsecProfileId *[]*int32 + ipsecProfileIdN *[]*int32 + lastUpdated *[]time.Time + lastUpdatedEmpty *[]time.Time + lastUpdatedGt *[]time.Time + lastUpdatedGte *[]time.Time + lastUpdatedLt *[]time.Time + lastUpdatedLte *[]time.Time + lastUpdatedN *[]time.Time + limit *int32 + modifiedByRequest *string + name *[]string + nameEmpty *bool + nameIc *[]string + nameIe *[]string + nameIew *[]string + nameIsw *[]string + nameN *[]string + nameNic *[]string + nameNie *[]string + nameNiew *[]string + nameNisw *[]string + offset *int32 + ordering *string + q *string + status *[]string + statusEmpty *bool + statusIc *[]VpnTunnelsListStatusIcParameterInner + statusIe *[]VpnTunnelsListStatusIcParameterInner + statusIew *[]VpnTunnelsListStatusIcParameterInner + statusIsw *[]VpnTunnelsListStatusIcParameterInner + statusN *[]VpnTunnelsListStatusIcParameterInner + statusNic *[]VpnTunnelsListStatusIcParameterInner + statusNie *[]VpnTunnelsListStatusIcParameterInner + statusNiew *[]VpnTunnelsListStatusIcParameterInner + statusNisw *[]VpnTunnelsListStatusIcParameterInner + tag *[]string + tagN *[]string + tenant *[]string + tenantN *[]string + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string + tenantId *[]*int32 + tenantIdN *[]*int32 + tunnelId *[]int32 + tunnelIdEmpty *bool + tunnelIdGt *[]int32 + tunnelIdGte *[]int32 + tunnelIdLt *[]int32 + tunnelIdLte *[]int32 + tunnelIdN *[]int32 + updatedByRequest *string } func (r ApiVpnTunnelsListRequest) Created(created []time.Time) ApiVpnTunnelsListRequest { @@ -20319,11 +22016,65 @@ func (r ApiVpnTunnelsListRequest) Encapsulation(encapsulation []string) ApiVpnTu return r } -func (r ApiVpnTunnelsListRequest) EncapsulationN(encapsulationN []string) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) EncapsulationEmpty(encapsulationEmpty bool) ApiVpnTunnelsListRequest { + r.encapsulationEmpty = &encapsulationEmpty + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationIc(encapsulationIc []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationIc = &encapsulationIc + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationIe(encapsulationIe []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationIe = &encapsulationIe + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationIew(encapsulationIew []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationIew = &encapsulationIew + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationIsw(encapsulationIsw []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationIsw = &encapsulationIsw + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationN(encapsulationN []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { r.encapsulationN = &encapsulationN return r } +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationNic(encapsulationNic []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationNic = &encapsulationNic + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationNie(encapsulationNie []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationNie = &encapsulationNie + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationNiew(encapsulationNiew []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationNiew = &encapsulationNiew + return r +} + +// * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE +func (r ApiVpnTunnelsListRequest) EncapsulationNisw(encapsulationNisw []VpnTunnelsListEncapsulationIcParameterInner) ApiVpnTunnelsListRequest { + r.encapsulationNisw = &encapsulationNisw + return r +} + // Tunnel group (slug) func (r ApiVpnTunnelsListRequest) Group(group []string) ApiVpnTunnelsListRequest { r.group = &group @@ -20531,11 +22282,65 @@ func (r ApiVpnTunnelsListRequest) Status(status []string) ApiVpnTunnelsListReque return r } -func (r ApiVpnTunnelsListRequest) StatusN(statusN []string) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) StatusEmpty(statusEmpty bool) ApiVpnTunnelsListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusIc(statusIc []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusIc = &statusIc + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusIe(statusIe []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusIe = &statusIe + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusIew(statusIew []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusIew = &statusIew + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusIsw(statusIsw []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusN(statusN []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { r.statusN = &statusN return r } +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusNic(statusNic []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusNic = &statusNic + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusNie(statusNie []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusNie = &statusNie + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusNiew(statusNiew []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `planned` - Planned * `active` - Active * `disabled` - Disabled +func (r ApiVpnTunnelsListRequest) StatusNisw(statusNisw []VpnTunnelsListStatusIcParameterInner) ApiVpnTunnelsListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiVpnTunnelsListRequest) Tag(tag []string) ApiVpnTunnelsListRequest { r.tag = &tag return r @@ -20558,26 +22363,22 @@ func (r ApiVpnTunnelsListRequest) TenantN(tenantN []string) ApiVpnTunnelsListReq return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroup(tenantGroup []string) ApiVpnTunnelsListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupN(tenantGroupN []string) ApiVpnTunnelsListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupId(tenantGroupId []string) ApiVpnTunnelsListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiVpnTunnelsListRequest { +func (r ApiVpnTunnelsListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiVpnTunnelsListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -20879,6 +22680,53 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation", t, "multi") } } + if r.encapsulationEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__empty", r.encapsulationEmpty, "") + } + if r.encapsulationIc != nil { + t := *r.encapsulationIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ic", t, "multi") + } + } + if r.encapsulationIe != nil { + t := *r.encapsulationIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__ie", t, "multi") + } + } + if r.encapsulationIew != nil { + t := *r.encapsulationIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__iew", t, "multi") + } + } + if r.encapsulationIsw != nil { + t := *r.encapsulationIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__isw", t, "multi") + } + } if r.encapsulationN != nil { t := *r.encapsulationN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -20890,6 +22738,50 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__n", t, "multi") } } + if r.encapsulationNic != nil { + t := *r.encapsulationNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nic", t, "multi") + } + } + if r.encapsulationNie != nil { + t := *r.encapsulationNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nie", t, "multi") + } + } + if r.encapsulationNiew != nil { + t := *r.encapsulationNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__niew", t, "multi") + } + } + if r.encapsulationNisw != nil { + t := *r.encapsulationNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "encapsulation__nisw", t, "multi") + } + } if r.group != nil { t := *r.group if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -21263,6 +23155,53 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -21274,6 +23213,50 @@ func (a *VpnAPIService) VpnTunnelsListExecute(r ApiVpnTunnelsListRequest) (*Pagi parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/api_wireless.go b/api_wireless.go index ac16ccf58..13c346a0c 100644 --- a/api_wireless.go +++ b/api_wireless.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -621,10 +621,10 @@ func (a *WirelessAPIService) WirelessWirelessLanGroupsDestroyExecute(r ApiWirele type ApiWirelessWirelessLanGroupsListRequest struct { ctx context.Context ApiService *WirelessAPIService - ancestor *[]int32 - ancestorN *[]int32 - ancestorId *[]int32 - ancestorIdN *[]int32 + ancestor *[]string + ancestorN *[]string + ancestorId *[]string + ancestorIdN *[]string created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -694,22 +694,22 @@ type ApiWirelessWirelessLanGroupsListRequest struct { updatedByRequest *string } -func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) Ancestor(ancestor []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestor = &ancestor return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorN(ancestorN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorN = &ancestorN return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorId(ancestorId []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorId = &ancestorId return r } -func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []int32) ApiWirelessWirelessLanGroupsListRequest { +func (r ApiWirelessWirelessLanGroupsListRequest) AncestorIdN(ancestorIdN []string) ApiWirelessWirelessLanGroupsListRequest { r.ancestorIdN = &ancestorIdN return r } @@ -2826,7 +2826,16 @@ type ApiWirelessWirelessLansListRequest struct { ctx context.Context ApiService *WirelessAPIService authCipher *[]string - authCipherN *[]string + authCipherEmpty *bool + authCipherIc *[]AuthenticationCipher + authCipherIe *[]AuthenticationCipher + authCipherIew *[]AuthenticationCipher + authCipherIsw *[]AuthenticationCipher + authCipherN *[]AuthenticationCipher + authCipherNic *[]AuthenticationCipher + authCipherNie *[]AuthenticationCipher + authCipherNiew *[]AuthenticationCipher + authCipherNisw *[]AuthenticationCipher authPsk *[]string authPskEmpty *bool authPskIc *[]string @@ -2839,7 +2848,16 @@ type ApiWirelessWirelessLansListRequest struct { authPskNiew *[]string authPskNisw *[]string authType *[]string - authTypeN *[]string + authTypeEmpty *bool + authTypeIc *[]AuthenticationType1 + authTypeIe *[]AuthenticationType1 + authTypeIew *[]AuthenticationType1 + authTypeIsw *[]AuthenticationType1 + authTypeN *[]AuthenticationType1 + authTypeNic *[]AuthenticationType1 + authTypeNie *[]AuthenticationType1 + authTypeNiew *[]AuthenticationType1 + authTypeNisw *[]AuthenticationType1 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -2859,10 +2877,10 @@ type ApiWirelessWirelessLansListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string - group *[]int32 - groupN *[]int32 - groupId *[]int32 - groupIdN *[]int32 + group *[]string + groupN *[]string + groupId *[]string + groupIdN *[]string id *[]int32 idEmpty *bool idGt *[]int32 @@ -2896,15 +2914,24 @@ type ApiWirelessWirelessLansListRequest struct { ssidNiew *[]string ssidNisw *[]string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]WirelessWirelessLansListStatusIcParameterInner + statusIe *[]WirelessWirelessLansListStatusIcParameterInner + statusIew *[]WirelessWirelessLansListStatusIcParameterInner + statusIsw *[]WirelessWirelessLansListStatusIcParameterInner + statusN *[]WirelessWirelessLansListStatusIcParameterInner + statusNic *[]WirelessWirelessLansListStatusIcParameterInner + statusNie *[]WirelessWirelessLansListStatusIcParameterInner + statusNiew *[]WirelessWirelessLansListStatusIcParameterInner + statusNisw *[]WirelessWirelessLansListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -2917,11 +2944,65 @@ func (r ApiWirelessWirelessLansListRequest) AuthCipher(authCipher []string) ApiW return r } -func (r ApiWirelessWirelessLansListRequest) AuthCipherN(authCipherN []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) AuthCipherEmpty(authCipherEmpty bool) ApiWirelessWirelessLansListRequest { + r.authCipherEmpty = &authCipherEmpty + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherIc(authCipherIc []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherIc = &authCipherIc + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherIe(authCipherIe []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherIe = &authCipherIe + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherIew(authCipherIew []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherIew = &authCipherIew + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherIsw(authCipherIsw []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherIsw = &authCipherIsw + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherN(authCipherN []AuthenticationCipher) ApiWirelessWirelessLansListRequest { r.authCipherN = &authCipherN return r } +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherNic(authCipherNic []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherNic = &authCipherNic + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherNie(authCipherNie []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherNie = &authCipherNie + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherNiew(authCipherNiew []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherNiew = &authCipherNiew + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLansListRequest) AuthCipherNisw(authCipherNisw []AuthenticationCipher) ApiWirelessWirelessLansListRequest { + r.authCipherNisw = &authCipherNisw + return r +} + func (r ApiWirelessWirelessLansListRequest) AuthPsk(authPsk []string) ApiWirelessWirelessLansListRequest { r.authPsk = &authPsk return r @@ -2982,11 +3063,65 @@ func (r ApiWirelessWirelessLansListRequest) AuthType(authType []string) ApiWirel return r } -func (r ApiWirelessWirelessLansListRequest) AuthTypeN(authTypeN []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) AuthTypeEmpty(authTypeEmpty bool) ApiWirelessWirelessLansListRequest { + r.authTypeEmpty = &authTypeEmpty + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeIc(authTypeIc []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeIc = &authTypeIc + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeIe(authTypeIe []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeIe = &authTypeIe + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeIew(authTypeIew []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeIew = &authTypeIew + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeIsw(authTypeIsw []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeIsw = &authTypeIsw + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeN(authTypeN []AuthenticationType1) ApiWirelessWirelessLansListRequest { r.authTypeN = &authTypeN return r } +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeNic(authTypeNic []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeNic = &authTypeNic + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeNie(authTypeNie []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeNie = &authTypeNie + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeNiew(authTypeNiew []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeNiew = &authTypeNiew + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLansListRequest) AuthTypeNisw(authTypeNisw []AuthenticationType1) ApiWirelessWirelessLansListRequest { + r.authTypeNisw = &authTypeNisw + return r +} + func (r ApiWirelessWirelessLansListRequest) Created(created []time.Time) ApiWirelessWirelessLansListRequest { r.created = &created return r @@ -3082,22 +3217,22 @@ func (r ApiWirelessWirelessLansListRequest) DescriptionNisw(descriptionNisw []st return r } -func (r ApiWirelessWirelessLansListRequest) Group(group []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) Group(group []string) ApiWirelessWirelessLansListRequest { r.group = &group return r } -func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupN(groupN []string) ApiWirelessWirelessLansListRequest { r.groupN = &groupN return r } -func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupId(groupId []string) ApiWirelessWirelessLansListRequest { r.groupId = &groupId return r } -func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) GroupIdN(groupIdN []string) ApiWirelessWirelessLansListRequest { r.groupIdN = &groupIdN return r } @@ -3271,11 +3406,65 @@ func (r ApiWirelessWirelessLansListRequest) Status(status []string) ApiWirelessW return r } -func (r ApiWirelessWirelessLansListRequest) StatusN(statusN []string) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) StatusEmpty(statusEmpty bool) ApiWirelessWirelessLansListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusIc(statusIc []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusIc = &statusIc + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusIe(statusIe []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusIe = &statusIe + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusIew(statusIew []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusIew = &statusIew + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusIsw(statusIsw []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusN(statusN []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { r.statusN = &statusN return r } +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusNic(statusNic []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusNic = &statusNic + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusNie(statusNie []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusNie = &statusNie + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusNiew(statusNiew []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated +func (r ApiWirelessWirelessLansListRequest) StatusNisw(statusNisw []WirelessWirelessLansListStatusIcParameterInner) ApiWirelessWirelessLansListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiWirelessWirelessLansListRequest) Tag(tag []string) ApiWirelessWirelessLansListRequest { r.tag = &tag return r @@ -3298,26 +3487,22 @@ func (r ApiWirelessWirelessLansListRequest) TenantN(tenantN []string) ApiWireles return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLansListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLansListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLansListRequest { +func (r ApiWirelessWirelessLansListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLansListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -3401,6 +3586,53 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "multi") } } + if r.authCipherEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__empty", r.authCipherEmpty, "") + } + if r.authCipherIc != nil { + t := *r.authCipherIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", t, "multi") + } + } + if r.authCipherIe != nil { + t := *r.authCipherIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", t, "multi") + } + } + if r.authCipherIew != nil { + t := *r.authCipherIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", t, "multi") + } + } + if r.authCipherIsw != nil { + t := *r.authCipherIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", t, "multi") + } + } if r.authCipherN != nil { t := *r.authCipherN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3412,6 +3644,50 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "multi") } } + if r.authCipherNic != nil { + t := *r.authCipherNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", t, "multi") + } + } + if r.authCipherNie != nil { + t := *r.authCipherNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", t, "multi") + } + } + if r.authCipherNiew != nil { + t := *r.authCipherNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", t, "multi") + } + } + if r.authCipherNisw != nil { + t := *r.authCipherNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", t, "multi") + } + } if r.authPsk != nil { t := *r.authPsk if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3536,6 +3812,53 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") } } + if r.authTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__empty", r.authTypeEmpty, "") + } + if r.authTypeIc != nil { + t := *r.authTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", t, "multi") + } + } + if r.authTypeIe != nil { + t := *r.authTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", t, "multi") + } + } + if r.authTypeIew != nil { + t := *r.authTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", t, "multi") + } + } + if r.authTypeIsw != nil { + t := *r.authTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", t, "multi") + } + } if r.authTypeN != nil { t := *r.authTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -3547,6 +3870,50 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") } } + if r.authTypeNic != nil { + t := *r.authTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", t, "multi") + } + } + if r.authTypeNie != nil { + t := *r.authTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", t, "multi") + } + } + if r.authTypeNiew != nil { + t := *r.authTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", t, "multi") + } + } + if r.authTypeNisw != nil { + t := *r.authTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", t, "multi") + } + } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -4091,6 +4458,53 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -4102,6 +4516,50 @@ func (a *WirelessAPIService) WirelessWirelessLansListExecute(r ApiWirelessWirele parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5276,7 +5734,16 @@ type ApiWirelessWirelessLinksListRequest struct { ctx context.Context ApiService *WirelessAPIService authCipher *[]string - authCipherN *[]string + authCipherEmpty *bool + authCipherIc *[]AuthenticationCipher + authCipherIe *[]AuthenticationCipher + authCipherIew *[]AuthenticationCipher + authCipherIsw *[]AuthenticationCipher + authCipherN *[]AuthenticationCipher + authCipherNic *[]AuthenticationCipher + authCipherNie *[]AuthenticationCipher + authCipherNiew *[]AuthenticationCipher + authCipherNisw *[]AuthenticationCipher authPsk *[]string authPskEmpty *bool authPskIc *[]string @@ -5289,7 +5756,16 @@ type ApiWirelessWirelessLinksListRequest struct { authPskNiew *[]string authPskNisw *[]string authType *[]string - authTypeN *[]string + authTypeEmpty *bool + authTypeIc *[]AuthenticationType1 + authTypeIe *[]AuthenticationType1 + authTypeIew *[]AuthenticationType1 + authTypeIsw *[]AuthenticationType1 + authTypeN *[]AuthenticationType1 + authTypeNic *[]AuthenticationType1 + authTypeNie *[]AuthenticationType1 + authTypeNiew *[]AuthenticationType1 + authTypeNisw *[]AuthenticationType1 created *[]time.Time createdEmpty *[]time.Time createdGt *[]time.Time @@ -5309,6 +5785,14 @@ type ApiWirelessWirelessLinksListRequest struct { descriptionNie *[]string descriptionNiew *[]string descriptionNisw *[]string + distance *[]float64 + distanceEmpty *bool + distanceGt *[]float64 + distanceGte *[]float64 + distanceLt *[]float64 + distanceLte *[]float64 + distanceN *[]float64 + distanceUnit *WirelessWirelessLinksListDistanceUnitParameter id *[]int32 idEmpty *bool idGt *[]int32 @@ -5344,15 +5828,24 @@ type ApiWirelessWirelessLinksListRequest struct { ssidNiew *[]string ssidNisw *[]string status *[]string - statusN *[]string + statusEmpty *bool + statusIc *[]DcimCablesListStatusIcParameterInner + statusIe *[]DcimCablesListStatusIcParameterInner + statusIew *[]DcimCablesListStatusIcParameterInner + statusIsw *[]DcimCablesListStatusIcParameterInner + statusN *[]DcimCablesListStatusIcParameterInner + statusNic *[]DcimCablesListStatusIcParameterInner + statusNie *[]DcimCablesListStatusIcParameterInner + statusNiew *[]DcimCablesListStatusIcParameterInner + statusNisw *[]DcimCablesListStatusIcParameterInner tag *[]string tagN *[]string tenant *[]string tenantN *[]string - tenantGroup *[]int32 - tenantGroupN *[]int32 - tenantGroupId *[]int32 - tenantGroupIdN *[]int32 + tenantGroup *[]string + tenantGroupN *[]string + tenantGroupId *[]string + tenantGroupIdN *[]string tenantId *[]*int32 tenantIdN *[]*int32 updatedByRequest *string @@ -5363,17 +5856,71 @@ func (r ApiWirelessWirelessLinksListRequest) AuthCipher(authCipher []string) Api return r } -func (r ApiWirelessWirelessLinksListRequest) AuthCipherN(authCipherN []string) ApiWirelessWirelessLinksListRequest { - r.authCipherN = &authCipherN +func (r ApiWirelessWirelessLinksListRequest) AuthCipherEmpty(authCipherEmpty bool) ApiWirelessWirelessLinksListRequest { + r.authCipherEmpty = &authCipherEmpty return r } -func (r ApiWirelessWirelessLinksListRequest) AuthPsk(authPsk []string) ApiWirelessWirelessLinksListRequest { - r.authPsk = &authPsk +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIc(authCipherIc []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherIc = &authCipherIc return r } -func (r ApiWirelessWirelessLinksListRequest) AuthPskEmpty(authPskEmpty bool) ApiWirelessWirelessLinksListRequest { +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIe(authCipherIe []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherIe = &authCipherIe + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIew(authCipherIew []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherIew = &authCipherIew + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherIsw(authCipherIsw []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherIsw = &authCipherIsw + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherN(authCipherN []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherN = &authCipherN + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNic(authCipherNic []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherNic = &authCipherNic + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNie(authCipherNie []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherNie = &authCipherNie + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNiew(authCipherNiew []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherNiew = &authCipherNiew + return r +} + +// * `auto` - Auto * `tkip` - TKIP * `aes` - AES +func (r ApiWirelessWirelessLinksListRequest) AuthCipherNisw(authCipherNisw []AuthenticationCipher) ApiWirelessWirelessLinksListRequest { + r.authCipherNisw = &authCipherNisw + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthPsk(authPsk []string) ApiWirelessWirelessLinksListRequest { + r.authPsk = &authPsk + return r +} + +func (r ApiWirelessWirelessLinksListRequest) AuthPskEmpty(authPskEmpty bool) ApiWirelessWirelessLinksListRequest { r.authPskEmpty = &authPskEmpty return r } @@ -5428,11 +5975,65 @@ func (r ApiWirelessWirelessLinksListRequest) AuthType(authType []string) ApiWire return r } -func (r ApiWirelessWirelessLinksListRequest) AuthTypeN(authTypeN []string) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) AuthTypeEmpty(authTypeEmpty bool) ApiWirelessWirelessLinksListRequest { + r.authTypeEmpty = &authTypeEmpty + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIc(authTypeIc []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeIc = &authTypeIc + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIe(authTypeIe []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeIe = &authTypeIe + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIew(authTypeIew []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeIew = &authTypeIew + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeIsw(authTypeIsw []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeIsw = &authTypeIsw + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeN(authTypeN []AuthenticationType1) ApiWirelessWirelessLinksListRequest { r.authTypeN = &authTypeN return r } +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNic(authTypeNic []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeNic = &authTypeNic + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNie(authTypeNie []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeNie = &authTypeNie + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNiew(authTypeNiew []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeNiew = &authTypeNiew + return r +} + +// * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +func (r ApiWirelessWirelessLinksListRequest) AuthTypeNisw(authTypeNisw []AuthenticationType1) ApiWirelessWirelessLinksListRequest { + r.authTypeNisw = &authTypeNisw + return r +} + func (r ApiWirelessWirelessLinksListRequest) Created(created []time.Time) ApiWirelessWirelessLinksListRequest { r.created = &created return r @@ -5528,6 +6129,47 @@ func (r ApiWirelessWirelessLinksListRequest) DescriptionNisw(descriptionNisw []s return r } +func (r ApiWirelessWirelessLinksListRequest) Distance(distance []float64) ApiWirelessWirelessLinksListRequest { + r.distance = &distance + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceEmpty(distanceEmpty bool) ApiWirelessWirelessLinksListRequest { + r.distanceEmpty = &distanceEmpty + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGt(distanceGt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGt = &distanceGt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceGte(distanceGte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceGte = &distanceGte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLt(distanceLt []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLt = &distanceLt + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceLte(distanceLte []float64) ApiWirelessWirelessLinksListRequest { + r.distanceLte = &distanceLte + return r +} + +func (r ApiWirelessWirelessLinksListRequest) DistanceN(distanceN []float64) ApiWirelessWirelessLinksListRequest { + r.distanceN = &distanceN + return r +} + +// * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet +func (r ApiWirelessWirelessLinksListRequest) DistanceUnit(distanceUnit WirelessWirelessLinksListDistanceUnitParameter) ApiWirelessWirelessLinksListRequest { + r.distanceUnit = &distanceUnit + return r +} + func (r ApiWirelessWirelessLinksListRequest) Id(id []int32) ApiWirelessWirelessLinksListRequest { r.id = &id return r @@ -5707,11 +6349,65 @@ func (r ApiWirelessWirelessLinksListRequest) Status(status []string) ApiWireless return r } -func (r ApiWirelessWirelessLinksListRequest) StatusN(statusN []string) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) StatusEmpty(statusEmpty bool) ApiWirelessWirelessLinksListRequest { + r.statusEmpty = &statusEmpty + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusIc(statusIc []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusIc = &statusIc + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusIe(statusIe []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusIe = &statusIe + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusIew(statusIew []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusIew = &statusIew + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusIsw(statusIsw []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusIsw = &statusIsw + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusN(statusN []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { r.statusN = &statusN return r } +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusNic(statusNic []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusNic = &statusNic + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusNie(statusNie []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusNie = &statusNie + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusNiew(statusNiew []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusNiew = &statusNiew + return r +} + +// * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning +func (r ApiWirelessWirelessLinksListRequest) StatusNisw(statusNisw []DcimCablesListStatusIcParameterInner) ApiWirelessWirelessLinksListRequest { + r.statusNisw = &statusNisw + return r +} + func (r ApiWirelessWirelessLinksListRequest) Tag(tag []string) ApiWirelessWirelessLinksListRequest { r.tag = &tag return r @@ -5734,26 +6430,22 @@ func (r ApiWirelessWirelessLinksListRequest) TenantN(tenantN []string) ApiWirele return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroup(tenantGroup []string) ApiWirelessWirelessLinksListRequest { r.tenantGroup = &tenantGroup return r } -// Tenant Group (slug) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupN(tenantGroupN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupN = &tenantGroupN return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupId(tenantGroupId []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupId = &tenantGroupId return r } -// Tenant Group (ID) -func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []int32) ApiWirelessWirelessLinksListRequest { +func (r ApiWirelessWirelessLinksListRequest) TenantGroupIdN(tenantGroupIdN []string) ApiWirelessWirelessLinksListRequest { r.tenantGroupIdN = &tenantGroupIdN return r } @@ -5827,6 +6519,53 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher", t, "multi") } } + if r.authCipherEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__empty", r.authCipherEmpty, "") + } + if r.authCipherIc != nil { + t := *r.authCipherIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ic", t, "multi") + } + } + if r.authCipherIe != nil { + t := *r.authCipherIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__ie", t, "multi") + } + } + if r.authCipherIew != nil { + t := *r.authCipherIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__iew", t, "multi") + } + } + if r.authCipherIsw != nil { + t := *r.authCipherIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__isw", t, "multi") + } + } if r.authCipherN != nil { t := *r.authCipherN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5838,6 +6577,50 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__n", t, "multi") } } + if r.authCipherNic != nil { + t := *r.authCipherNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nic", t, "multi") + } + } + if r.authCipherNie != nil { + t := *r.authCipherNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nie", t, "multi") + } + } + if r.authCipherNiew != nil { + t := *r.authCipherNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__niew", t, "multi") + } + } + if r.authCipherNisw != nil { + t := *r.authCipherNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_cipher__nisw", t, "multi") + } + } if r.authPsk != nil { t := *r.authPsk if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5962,6 +6745,53 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type", t, "multi") } } + if r.authTypeEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__empty", r.authTypeEmpty, "") + } + if r.authTypeIc != nil { + t := *r.authTypeIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ic", t, "multi") + } + } + if r.authTypeIe != nil { + t := *r.authTypeIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__ie", t, "multi") + } + } + if r.authTypeIew != nil { + t := *r.authTypeIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__iew", t, "multi") + } + } + if r.authTypeIsw != nil { + t := *r.authTypeIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__isw", t, "multi") + } + } if r.authTypeN != nil { t := *r.authTypeN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -5973,6 +6803,50 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__n", t, "multi") } } + if r.authTypeNic != nil { + t := *r.authTypeNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nic", t, "multi") + } + } + if r.authTypeNie != nil { + t := *r.authTypeNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nie", t, "multi") + } + } + if r.authTypeNiew != nil { + t := *r.authTypeNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__niew", t, "multi") + } + } + if r.authTypeNisw != nil { + t := *r.authTypeNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "auth_type__nisw", t, "multi") + } + } if r.created != nil { t := *r.created if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6166,6 +7040,78 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "description__nisw", t, "multi") } } + if r.distance != nil { + t := *r.distance + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance", t, "multi") + } + } + if r.distanceEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__empty", r.distanceEmpty, "") + } + if r.distanceGt != nil { + t := *r.distanceGt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gt", t, "multi") + } + } + if r.distanceGte != nil { + t := *r.distanceGte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__gte", t, "multi") + } + } + if r.distanceLt != nil { + t := *r.distanceLt + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lt", t, "multi") + } + } + if r.distanceLte != nil { + t := *r.distanceLte + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__lte", t, "multi") + } + } + if r.distanceN != nil { + t := *r.distanceN + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance__n", t, "multi") + } + } + if r.distanceUnit != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "distance_unit", r.distanceUnit, "") + } if r.id != nil { t := *r.id if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6495,6 +7441,53 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "status", t, "multi") } } + if r.statusEmpty != nil { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__empty", r.statusEmpty, "") + } + if r.statusIc != nil { + t := *r.statusIc + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ic", t, "multi") + } + } + if r.statusIe != nil { + t := *r.statusIe + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__ie", t, "multi") + } + } + if r.statusIew != nil { + t := *r.statusIew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__iew", t, "multi") + } + } + if r.statusIsw != nil { + t := *r.statusIsw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__isw", t, "multi") + } + } if r.statusN != nil { t := *r.statusN if reflect.TypeOf(t).Kind() == reflect.Slice { @@ -6506,6 +7499,50 @@ func (a *WirelessAPIService) WirelessWirelessLinksListExecute(r ApiWirelessWirel parameterAddToHeaderOrQuery(localVarQueryParams, "status__n", t, "multi") } } + if r.statusNic != nil { + t := *r.statusNic + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nic", t, "multi") + } + } + if r.statusNie != nil { + t := *r.statusNie + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nie", t, "multi") + } + } + if r.statusNiew != nil { + t := *r.statusNiew + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__niew", t, "multi") + } + } + if r.statusNisw != nil { + t := *r.statusNisw + if reflect.TypeOf(t).Kind() == reflect.Slice { + s := reflect.ValueOf(t) + for i := 0; i < s.Len(); i++ { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", s.Index(i).Interface(), "multi") + } + } else { + parameterAddToHeaderOrQuery(localVarQueryParams, "status__nisw", t, "multi") + } + } if r.tag != nil { t := *r.tag if reflect.TypeOf(t).Kind() == reflect.Slice { diff --git a/client.go b/client.go index 7ced10a11..7132e8646 100644 --- a/client.go +++ b/client.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -40,7 +40,7 @@ var ( queryDescape = strings.NewReplacer("%5B", "[", "%5D", "]") ) -// APIClient manages communication with the NetBox REST API API v4.0.3 (4.0) +// APIClient manages communication with the NetBox REST API API v4.1.3 (4.1) // In most cases there should be only one, shared, APIClient. type APIClient struct { cfg *Configuration diff --git a/configuration.go b/configuration.go index e65a51b2f..3d6cc428b 100644 --- a/configuration.go +++ b/configuration.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -89,7 +89,7 @@ type Configuration struct { func NewConfiguration() *Configuration { cfg := &Configuration{ DefaultHeader: make(map[string]string), - UserAgent: "go-netbox/4.0.3", + UserAgent: "go-netbox/4.1.3", Debug: false, Servers: ServerConfigurations{ { diff --git a/docs/ASN.md b/docs/ASN.md index fed0cdda3..fcf0cd8ad 100644 --- a/docs/ASN.md +++ b/docs/ASN.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableRIR**](RIR.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIR**](BriefRIR.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ASN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ASN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ASN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ASN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ASN) GetDisplay() string` @@ -120,20 +146,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASN) GetRir() RIR` +`func (o *ASN) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASN) GetRirOk() (*RIR, bool)` +`func (o *ASN) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASN) SetRir(v RIR)` +`func (o *ASN) SetRir(v BriefRIR)` SetRir sets Rir field to given value. @@ -155,20 +181,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASN) GetTenant() Tenant` +`func (o *ASN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASN) GetTenantOk() (*Tenant, bool)` +`func (o *ASN) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASN) SetTenant(v Tenant)` +`func (o *ASN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRange.md b/docs/ASNRange.md index 8efc8ef06..aa0d20e5d 100644 --- a/docs/ASNRange.md +++ b/docs/ASNRange.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**RIR**](RIR.md) | | +**Rir** | [**BriefRIR**](BriefRIR.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewASNRange -`func NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` +`func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32, ) *ASNRange` NewASNRange instantiates a new ASNRange object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ASNRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ASNRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ASNRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ASNRange) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ASNRange) GetDisplay() string` @@ -141,20 +167,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRange) GetRir() RIR` +`func (o *ASNRange) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRange) GetRirOk() (*RIR, bool)` +`func (o *ASNRange) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRange) SetRir(v RIR)` +`func (o *ASNRange) SetRir(v BriefRIR)` SetRir sets Rir field to given value. @@ -201,20 +227,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRange) GetTenant() Tenant` +`func (o *ASNRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRange) GetTenantOk() (*Tenant, bool)` +`func (o *ASNRange) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRange) SetTenant(v Tenant)` +`func (o *ASNRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRangeRequest.md b/docs/ASNRangeRequest.md index c7b5e284f..1c1f5dd35 100644 --- a/docs/ASNRangeRequest.md +++ b/docs/ASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | **Start** | **int64** | | **End** | **int64** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewASNRangeRequest -`func NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64, ) *ASNRangeRequest` +`func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64, ) *ASNRangeRequest` NewASNRangeRequest instantiates a new ASNRangeRequest object This constructor will assign default values to properties that have it defined, @@ -75,20 +75,20 @@ SetSlug sets Slug field to given value. ### GetRir -`func (o *ASNRangeRequest) GetRir() RIRRequest` +`func (o *ASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRangeRequest) SetRir(v RIRRequest)` +`func (o *ASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -135,20 +135,20 @@ SetEnd sets End field to given value. ### GetTenant -`func (o *ASNRangeRequest) GetTenant() TenantRequest` +`func (o *ASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/ASNRequest.md b/docs/ASNRequest.md index c82eb0830..ef24115a1 100644 --- a/docs/ASNRequest.md +++ b/docs/ASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | **int64** | 16- or 32-bit autonomous system number | -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -53,20 +53,20 @@ SetAsn sets Asn field to given value. ### GetRir -`func (o *ASNRequest) GetRir() RIRRequest` +`func (o *ASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *ASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *ASNRequest) SetRir(v RIRRequest)` +`func (o *ASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -88,20 +88,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *ASNRequest) GetTenant() TenantRequest` +`func (o *ASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *ASNRequest) SetTenant(v TenantRequest)` +`func (o *ASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/Aggregate.md b/docs/Aggregate.md index aab5e7099..47f649b1b 100644 --- a/docs/Aggregate.md +++ b/docs/Aggregate.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Rir** | [**RIR**](RIR.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Rir** | [**BriefRIR**](BriefRIR.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewAggregate -`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` +`func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime, ) *Aggregate` NewAggregate instantiates a new Aggregate object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Aggregate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Aggregate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Aggregate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Aggregate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Aggregate) GetDisplay() string` @@ -140,40 +166,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *Aggregate) GetRir() RIR` +`func (o *Aggregate) GetRir() BriefRIR` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *Aggregate) GetRirOk() (*RIR, bool)` +`func (o *Aggregate) GetRirOk() (*BriefRIR, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *Aggregate) SetRir(v RIR)` +`func (o *Aggregate) SetRir(v BriefRIR)` SetRir sets Rir field to given value. ### GetTenant -`func (o *Aggregate) GetTenant() Tenant` +`func (o *Aggregate) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Aggregate) GetTenantOk() (*Tenant, bool)` +`func (o *Aggregate) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Aggregate) SetTenant(v Tenant)` +`func (o *Aggregate) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/AggregateRequest.md b/docs/AggregateRequest.md index 197cf1897..a11fa9f7a 100644 --- a/docs/AggregateRequest.md +++ b/docs/AggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewAggregateRequest -`func NewAggregateRequest(prefix string, rir RIRRequest, ) *AggregateRequest` +`func NewAggregateRequest(prefix string, rir BriefRIRRequest, ) *AggregateRequest` NewAggregateRequest instantiates a new AggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *AggregateRequest) GetRir() RIRRequest` +`func (o *AggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *AggregateRequest) SetRir(v RIRRequest)` +`func (o *AggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *AggregateRequest) GetTenant() TenantRequest` +`func (o *AggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *AggregateRequest) SetTenant(v TenantRequest)` +`func (o *AggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/Authentication.md b/docs/Authentication.md index 1e2ffd4f6..87bc50d26 100644 --- a/docs/Authentication.md +++ b/docs/Authentication.md @@ -3,6 +3,10 @@ ## Enum +* `EMPTY` (value: `""`) + +* `HMAC_MD5` (value: `"hmac-md5"`) + * `HMAC_SHA1` (value: `"hmac-sha1"`) * `HMAC_SHA256` (value: `"hmac-sha256"`) @@ -11,10 +15,6 @@ * `HMAC_SHA512` (value: `"hmac-sha512"`) -* `HMAC_MD5` (value: `"hmac-md5"`) - -* `EMPTY` (value: `""`) - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/AuthenticationCipher.md b/docs/AuthenticationCipher.md index d6f1451af..d0eb1d07c 100644 --- a/docs/AuthenticationCipher.md +++ b/docs/AuthenticationCipher.md @@ -3,13 +3,13 @@ ## Enum -* `AUTO` (value: `"auto"`) - -* `TKIP` (value: `"tkip"`) +* `EMPTY` (value: `""`) * `AES` (value: `"aes"`) -* `EMPTY` (value: `""`) +* `AUTO` (value: `"auto"`) + +* `TKIP` (value: `"tkip"`) [[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/docs/AuthenticationType.md b/docs/AuthenticationType.md index 7d11f5f6d..14cf1c4a8 100644 --- a/docs/AuthenticationType.md +++ b/docs/AuthenticationType.md @@ -3,11 +3,11 @@ ## Enum -* `PLAINTEXT` (value: `"plaintext"`) +* `EMPTY` (value: `""`) * `MD5` (value: `"md5"`) -* `EMPTY` (value: `""`) +* `PLAINTEXT` (value: `"plaintext"`) [[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/docs/AuthenticationType1.md b/docs/AuthenticationType1.md index 64f268e22..ffac682f7 100644 --- a/docs/AuthenticationType1.md +++ b/docs/AuthenticationType1.md @@ -3,15 +3,15 @@ ## Enum +* `EMPTY` (value: `""`) + * `OPEN` (value: `"open"`) * `WEP` (value: `"wep"`) -* `WPA_PERSONAL` (value: `"wpa-personal"`) - * `WPA_ENTERPRISE` (value: `"wpa-enterprise"`) -* `EMPTY` (value: `""`) +* `WPA_PERSONAL` (value: `"wpa-personal"`) [[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/docs/AvailableIP.md b/docs/AvailableIP.md index 9fa0b65df..961593aa5 100644 --- a/docs/AvailableIP.md +++ b/docs/AvailableIP.md @@ -6,14 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Address** | **string** | | [readonly] -**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] +**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] **Description** | Pointer to **string** | | [optional] ## Methods ### NewAvailableIP -`func NewAvailableIP(family int32, address string, vrf NullableVRF, ) *AvailableIP` +`func NewAvailableIP(family int32, address string, vrf NullableBriefVRF, ) *AvailableIP` NewAvailableIP instantiates a new AvailableIP object This constructor will assign default values to properties that have it defined, @@ -70,20 +70,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *AvailableIP) GetVrf() VRF` +`func (o *AvailableIP) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailableIP) GetVrfOk() (*VRF, bool)` +`func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailableIP) SetVrf(v VRF)` +`func (o *AvailableIP) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailablePrefix.md b/docs/AvailablePrefix.md index e9f9da1fe..dd8738306 100644 --- a/docs/AvailablePrefix.md +++ b/docs/AvailablePrefix.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Family** | **int32** | | [readonly] **Prefix** | **string** | | [readonly] -**Vrf** | [**NullableVRF**](VRF.md) | | [readonly] +**Vrf** | [**NullableBriefVRF**](BriefVRF.md) | | [readonly] ## Methods ### NewAvailablePrefix -`func NewAvailablePrefix(family int32, prefix string, vrf NullableVRF, ) *AvailablePrefix` +`func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF, ) *AvailablePrefix` NewAvailablePrefix instantiates a new AvailablePrefix object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetPrefix sets Prefix field to given value. ### GetVrf -`func (o *AvailablePrefix) GetVrf() VRF` +`func (o *AvailablePrefix) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *AvailablePrefix) GetVrfOk() (*VRF, bool)` +`func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *AvailablePrefix) SetVrf(v VRF)` +`func (o *AvailablePrefix) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. diff --git a/docs/AvailableVLAN.md b/docs/AvailableVLAN.md index 86e18eea9..c00225080 100644 --- a/docs/AvailableVLAN.md +++ b/docs/AvailableVLAN.md @@ -5,13 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Vid** | **int32** | | [readonly] -**Group** | [**NullableVLANGroup**](VLANGroup.md) | | [readonly] +**Group** | [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [readonly] ## Methods ### NewAvailableVLAN -`func NewAvailableVLAN(vid int32, group NullableVLANGroup, ) *AvailableVLAN` +`func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup, ) *AvailableVLAN` NewAvailableVLAN instantiates a new AvailableVLAN object This constructor will assign default values to properties that have it defined, @@ -48,20 +48,20 @@ SetVid sets Vid field to given value. ### GetGroup -`func (o *AvailableVLAN) GetGroup() VLANGroup` +`func (o *AvailableVLAN) GetGroup() BriefVLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool)` +`func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *AvailableVLAN) SetGroup(v VLANGroup)` +`func (o *AvailableVLAN) SetGroup(v BriefVLANGroup)` SetGroup sets Group field to given value. diff --git a/docs/Bookmark.md b/docs/Bookmark.md index 68ef93cce..05631b586 100644 --- a/docs/Bookmark.md +++ b/docs/Bookmark.md @@ -10,14 +10,14 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **interface{}** | | [readonly] -**User** | [**User**](User.md) | | +**User** | [**BriefUser**](BriefUser.md) | | **Created** | **time.Time** | | [readonly] ## Methods ### NewBookmark -`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time, ) *Bookmark` +`func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time, ) *Bookmark` NewBookmark instantiates a new Bookmark object This constructor will assign default values to properties that have it defined, @@ -164,20 +164,20 @@ SetObject sets Object field to given value. UnsetObject ensures that no value is present for Object, not even an explicit nil ### GetUser -`func (o *Bookmark) GetUser() User` +`func (o *Bookmark) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Bookmark) GetUserOk() (*User, bool)` +`func (o *Bookmark) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Bookmark) SetUser(v User)` +`func (o *Bookmark) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/BookmarkRequest.md b/docs/BookmarkRequest.md index caeb3fc59..ab40a26e9 100644 --- a/docs/BookmarkRequest.md +++ b/docs/BookmarkRequest.md @@ -6,13 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | ## Methods ### NewBookmarkRequest -`func NewBookmarkRequest(objectType string, objectId int64, user UserRequest, ) *BookmarkRequest` +`func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest, ) *BookmarkRequest` NewBookmarkRequest instantiates a new BookmarkRequest object This constructor will assign default values to properties that have it defined, @@ -69,20 +69,20 @@ SetObjectId sets ObjectId field to given value. ### GetUser -`func (o *BookmarkRequest) GetUser() UserRequest` +`func (o *BookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *BookmarkRequest) SetUser(v UserRequest)` +`func (o *BookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/BriefRole.md b/docs/BriefRole.md index 30bbf7ed2..9f7e0ed31 100644 --- a/docs/BriefRole.md +++ b/docs/BriefRole.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] -**VlanCount** | **int64** | | [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefRole -`func NewBriefRole(id int32, url string, display string, name string, slug string, vlanCount int64, ) *BriefRole` +`func NewBriefRole(id int32, url string, display string, name string, slug string, ) *BriefRole` NewBriefRole instantiates a new BriefRole object This constructor will assign default values to properties that have it defined, @@ -201,6 +201,11 @@ and a boolean to check if the value has been set. SetVlanCount sets VlanCount field to given value. +### HasVlanCount + +`func (o *BriefRole) HasVlanCount() bool` + +HasVlanCount 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/docs/BriefVLANGroup.md b/docs/BriefVLANGroup.md index a38b95b4e..7a073db84 100644 --- a/docs/BriefVLANGroup.md +++ b/docs/BriefVLANGroup.md @@ -10,13 +10,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] -**VlanCount** | **int64** | | [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewBriefVLANGroup -`func NewBriefVLANGroup(id int32, url string, display string, name string, slug string, vlanCount int64, ) *BriefVLANGroup` +`func NewBriefVLANGroup(id int32, url string, display string, name string, slug string, ) *BriefVLANGroup` NewBriefVLANGroup instantiates a new BriefVLANGroup object This constructor will assign default values to properties that have it defined, @@ -175,6 +175,11 @@ and a boolean to check if the value has been set. SetVlanCount sets VlanCount field to given value. +### HasVlanCount + +`func (o *BriefVLANGroup) HasVlanCount() bool` + +HasVlanCount 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/docs/Cable.md b/docs/Cable.md index 389a4c616..719777dc0 100644 --- a/docs/Cable.md +++ b/docs/Cable.md @@ -6,15 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**ATerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] +**BTerminations** | Pointer to [**[]GenericObject**](GenericObject.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Label** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Length** | Pointer to **NullableFloat64** | | [optional] +**LengthUnit** | Pointer to [**NullableCableLengthUnit**](CableLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewCable -`func NewCable(id int32, url string, display string, ) *Cable` +`func NewCable(id int32, url string, display string, created NullableTime, lastUpdated NullableTime, ) *Cable` NewCable instantiates a new Cable object This constructor will assign default values to properties that have it defined, @@ -69,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cable) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cable) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cable) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Cable) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Cable) GetDisplay() string` @@ -89,6 +128,141 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetType + +`func (o *Cable) GetType() CableType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cable) GetTypeOk() (*CableType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cable) SetType(v CableType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *Cable) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetATerminations + +`func (o *Cable) GetATerminations() []GenericObject` + +GetATerminations returns the ATerminations field if non-nil, zero value otherwise. + +### GetATerminationsOk + +`func (o *Cable) GetATerminationsOk() (*[]GenericObject, bool)` + +GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetATerminations + +`func (o *Cable) SetATerminations(v []GenericObject)` + +SetATerminations sets ATerminations field to given value. + +### HasATerminations + +`func (o *Cable) HasATerminations() bool` + +HasATerminations returns a boolean if a field has been set. + +### GetBTerminations + +`func (o *Cable) GetBTerminations() []GenericObject` + +GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. + +### GetBTerminationsOk + +`func (o *Cable) GetBTerminationsOk() (*[]GenericObject, bool)` + +GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBTerminations + +`func (o *Cable) SetBTerminations(v []GenericObject)` + +SetBTerminations sets BTerminations field to given value. + +### HasBTerminations + +`func (o *Cable) HasBTerminations() bool` + +HasBTerminations returns a boolean if a field has been set. + +### GetStatus + +`func (o *Cable) GetStatus() CableStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cable) GetStatusOk() (*CableStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Cable) SetStatus(v CableStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cable) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cable) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cable) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Cable) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cable) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cable) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cable) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *Cable) GetLabel() string` @@ -114,6 +288,101 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetColor + +`func (o *Cable) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *Cable) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *Cable) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *Cable) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetLength + +`func (o *Cable) GetLength() float64` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *Cable) GetLengthOk() (*float64, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *Cable) SetLength(v float64)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *Cable) HasLength() bool` + +HasLength returns a boolean if a field has been set. + +### SetLengthNil + +`func (o *Cable) SetLengthNil(b bool)` + + SetLengthNil sets the value for Length to be an explicit nil + +### UnsetLength +`func (o *Cable) UnsetLength()` + +UnsetLength ensures that no value is present for Length, not even an explicit nil +### GetLengthUnit + +`func (o *Cable) GetLengthUnit() CableLengthUnit` + +GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. + +### GetLengthUnitOk + +`func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool)` + +GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLengthUnit + +`func (o *Cable) SetLengthUnit(v CableLengthUnit)` + +SetLengthUnit sets LengthUnit field to given value. + +### HasLengthUnit + +`func (o *Cable) HasLengthUnit() bool` + +HasLengthUnit returns a boolean if a field has been set. + +### SetLengthUnitNil + +`func (o *Cable) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *Cable) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *Cable) GetDescription() string` @@ -139,6 +408,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cable) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cable) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cable) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cable) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cable) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cable) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Cable) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cable) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cable) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cable) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Cable) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cable) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cable) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cable) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cable) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Cable) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cable) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cable) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cable) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Cable) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Cable) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cable) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/CableRequest.md b/docs/CableRequest.md index b90dfd2ea..61b9cded1 100644 --- a/docs/CableRequest.md +++ b/docs/CableRequest.md @@ -4,8 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] +**ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] +**BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] +**Color** | Pointer to **string** | | [optional] +**Length** | Pointer to **NullableFloat64** | | [optional] +**LengthUnit** | Pointer to [**NullableCableRequestLengthUnit**](CableRequestLengthUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +37,141 @@ NewCableRequestWithDefaults instantiates a new CableRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetType + +`func (o *CableRequest) GetType() CableType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CableRequest) GetTypeOk() (*CableType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CableRequest) SetType(v CableType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *CableRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### GetATerminations + +`func (o *CableRequest) GetATerminations() []GenericObjectRequest` + +GetATerminations returns the ATerminations field if non-nil, zero value otherwise. + +### GetATerminationsOk + +`func (o *CableRequest) GetATerminationsOk() (*[]GenericObjectRequest, bool)` + +GetATerminationsOk returns a tuple with the ATerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetATerminations + +`func (o *CableRequest) SetATerminations(v []GenericObjectRequest)` + +SetATerminations sets ATerminations field to given value. + +### HasATerminations + +`func (o *CableRequest) HasATerminations() bool` + +HasATerminations returns a boolean if a field has been set. + +### GetBTerminations + +`func (o *CableRequest) GetBTerminations() []GenericObjectRequest` + +GetBTerminations returns the BTerminations field if non-nil, zero value otherwise. + +### GetBTerminationsOk + +`func (o *CableRequest) GetBTerminationsOk() (*[]GenericObjectRequest, bool)` + +GetBTerminationsOk returns a tuple with the BTerminations field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetBTerminations + +`func (o *CableRequest) SetBTerminations(v []GenericObjectRequest)` + +SetBTerminations sets BTerminations field to given value. + +### HasBTerminations + +`func (o *CableRequest) HasBTerminations() bool` + +HasBTerminations returns a boolean if a field has been set. + +### GetStatus + +`func (o *CableRequest) GetStatus() CableStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CableRequest) SetStatus(v CableStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CableRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *CableRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CableRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CableRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CableRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CableRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetLabel `func (o *CableRequest) GetLabel() string` @@ -51,6 +197,101 @@ SetLabel sets Label field to given value. HasLabel returns a boolean if a field has been set. +### GetColor + +`func (o *CableRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *CableRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *CableRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *CableRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetLength + +`func (o *CableRequest) GetLength() float64` + +GetLength returns the Length field if non-nil, zero value otherwise. + +### GetLengthOk + +`func (o *CableRequest) GetLengthOk() (*float64, bool)` + +GetLengthOk returns a tuple with the Length field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLength + +`func (o *CableRequest) SetLength(v float64)` + +SetLength sets Length field to given value. + +### HasLength + +`func (o *CableRequest) HasLength() bool` + +HasLength returns a boolean if a field has been set. + +### SetLengthNil + +`func (o *CableRequest) SetLengthNil(b bool)` + + SetLengthNil sets the value for Length to be an explicit nil + +### UnsetLength +`func (o *CableRequest) UnsetLength()` + +UnsetLength ensures that no value is present for Length, not even an explicit nil +### GetLengthUnit + +`func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit` + +GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. + +### GetLengthUnitOk + +`func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool)` + +GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLengthUnit + +`func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit)` + +SetLengthUnit sets LengthUnit field to given value. + +### HasLengthUnit + +`func (o *CableRequest) HasLengthUnit() bool` + +HasLengthUnit returns a boolean if a field has been set. + +### SetLengthUnitNil + +`func (o *CableRequest) SetLengthUnitNil(b bool)` + + SetLengthUnitNil sets the value for LengthUnit to be an explicit nil + +### UnsetLengthUnit +`func (o *CableRequest) UnsetLengthUnit()` + +UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil ### GetDescription `func (o *CableRequest) GetDescription() string` @@ -76,6 +317,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *CableRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CableRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CableRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CableRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *CableRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CableRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CableRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CableRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CableRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CableRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CableRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CableRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Circuit.md b/docs/Circuit.md index b9bb4fd7e..81a521aed 100644 --- a/docs/Circuit.md +++ b/docs/Circuit.md @@ -6,15 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProvider**](BriefProvider.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccount**](BriefProviderAccount.md) | | [optional] +**Type** | [**BriefCircuitType**](BriefCircuitType.md) | | +**Status** | Pointer to [**CircuitStatus**](CircuitStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**InstallDate** | Pointer to **NullableString** | | [optional] +**TerminationDate** | Pointer to **NullableString** | | [optional] +**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**TerminationA** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] +**TerminationZ** | [**NullableCircuitCircuitTermination**](CircuitCircuitTermination.md) | | [readonly] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializer**](BriefCircuitGroupAssignmentSerializer.md) | | [optional] ## Methods ### NewCircuit -`func NewCircuit(id int32, url string, display string, cid string, ) *Circuit` +`func NewCircuit(id int32, url string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime, ) *Circuit` NewCircuit instantiates a new Circuit object This constructor will assign default values to properties that have it defined, @@ -69,6 +86,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Circuit) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Circuit) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Circuit) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Circuit) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Circuit) GetDisplay() string` @@ -109,6 +151,246 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. +### GetProvider + +`func (o *Circuit) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *Circuit) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *Circuit) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + +### GetProviderAccount + +`func (o *Circuit) GetProviderAccount() BriefProviderAccount` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *Circuit) SetProviderAccount(v BriefProviderAccount)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *Circuit) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *Circuit) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *Circuit) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *Circuit) GetType() BriefCircuitType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Circuit) SetType(v BriefCircuitType)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *Circuit) GetStatus() CircuitStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Circuit) GetStatusOk() (*CircuitStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Circuit) SetStatus(v CircuitStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Circuit) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Circuit) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Circuit) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Circuit) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Circuit) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Circuit) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Circuit) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetInstallDate + +`func (o *Circuit) GetInstallDate() string` + +GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. + +### GetInstallDateOk + +`func (o *Circuit) GetInstallDateOk() (*string, bool)` + +GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallDate + +`func (o *Circuit) SetInstallDate(v string)` + +SetInstallDate sets InstallDate field to given value. + +### HasInstallDate + +`func (o *Circuit) HasInstallDate() bool` + +HasInstallDate returns a boolean if a field has been set. + +### SetInstallDateNil + +`func (o *Circuit) SetInstallDateNil(b bool)` + + SetInstallDateNil sets the value for InstallDate to be an explicit nil + +### UnsetInstallDate +`func (o *Circuit) UnsetInstallDate()` + +UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +### GetTerminationDate + +`func (o *Circuit) GetTerminationDate() string` + +GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. + +### GetTerminationDateOk + +`func (o *Circuit) GetTerminationDateOk() (*string, bool)` + +GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationDate + +`func (o *Circuit) SetTerminationDate(v string)` + +SetTerminationDate sets TerminationDate field to given value. + +### HasTerminationDate + +`func (o *Circuit) HasTerminationDate() bool` + +HasTerminationDate returns a boolean if a field has been set. + +### SetTerminationDateNil + +`func (o *Circuit) SetTerminationDateNil(b bool)` + + SetTerminationDateNil sets the value for TerminationDate to be an explicit nil + +### UnsetTerminationDate +`func (o *Circuit) UnsetTerminationDate()` + +UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +### GetCommitRate + +`func (o *Circuit) GetCommitRate() int32` + +GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. + +### GetCommitRateOk + +`func (o *Circuit) GetCommitRateOk() (*int32, bool)` + +GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitRate + +`func (o *Circuit) SetCommitRate(v int32)` + +SetCommitRate sets CommitRate field to given value. + +### HasCommitRate + +`func (o *Circuit) HasCommitRate() bool` + +HasCommitRate returns a boolean if a field has been set. + +### SetCommitRateNil + +`func (o *Circuit) SetCommitRateNil(b bool)` + + SetCommitRateNil sets the value for CommitRate to be an explicit nil + +### UnsetCommitRate +`func (o *Circuit) UnsetCommitRate()` + +UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *Circuit) GetDescription() string` @@ -134,6 +416,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTerminationA + +`func (o *Circuit) GetTerminationA() CircuitCircuitTermination` + +GetTerminationA returns the TerminationA field if non-nil, zero value otherwise. + +### GetTerminationAOk + +`func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool)` + +GetTerminationAOk returns a tuple with the TerminationA field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationA + +`func (o *Circuit) SetTerminationA(v CircuitCircuitTermination)` + +SetTerminationA sets TerminationA field to given value. + + +### SetTerminationANil + +`func (o *Circuit) SetTerminationANil(b bool)` + + SetTerminationANil sets the value for TerminationA to be an explicit nil + +### UnsetTerminationA +`func (o *Circuit) UnsetTerminationA()` + +UnsetTerminationA ensures that no value is present for TerminationA, not even an explicit nil +### GetTerminationZ + +`func (o *Circuit) GetTerminationZ() CircuitCircuitTermination` + +GetTerminationZ returns the TerminationZ field if non-nil, zero value otherwise. + +### GetTerminationZOk + +`func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool)` + +GetTerminationZOk returns a tuple with the TerminationZ field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationZ + +`func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination)` + +SetTerminationZ sets TerminationZ field to given value. + + +### SetTerminationZNil + +`func (o *Circuit) SetTerminationZNil(b bool)` + + SetTerminationZNil sets the value for TerminationZ to be an explicit nil + +### UnsetTerminationZ +`func (o *Circuit) UnsetTerminationZ()` + +UnsetTerminationZ ensures that no value is present for TerminationZ, not even an explicit nil +### GetComments + +`func (o *Circuit) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Circuit) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Circuit) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Circuit) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Circuit) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Circuit) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Circuit) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Circuit) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Circuit) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Circuit) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Circuit) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Circuit) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Circuit) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Circuit) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Circuit) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Circuit) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Circuit) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Circuit) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Circuit) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Circuit) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Circuit) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetAssignments + +`func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *Circuit) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializer, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *Circuit) HasAssignments() bool` + +HasAssignments 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/docs/CircuitCircuitTermination.md b/docs/CircuitCircuitTermination.md index a2e2e068d..86ff40d4b 100644 --- a/docs/CircuitCircuitTermination.md +++ b/docs/CircuitCircuitTermination.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Site** | [**NullableBriefSite**](BriefSite.md) | | **ProviderNetwork** | [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewCircuitCircuitTermination -`func NewCircuitCircuitTermination(id int32, url string, displayUrl string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork, ) *CircuitCircuitTermination` +`func NewCircuitCircuitTermination(id int32, url string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork, ) *CircuitCircuitTermination` NewCircuitCircuitTermination instantiates a new CircuitCircuitTermination object This constructor will assign default values to properties that have it defined, @@ -93,6 +93,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *CircuitCircuitTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/CircuitGroup.md b/docs/CircuitGroup.md index 27569c71e..58bc40f5b 100644 --- a/docs/CircuitGroup.md +++ b/docs/CircuitGroup.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -22,7 +22,7 @@ Name | Type | Description | Notes ### NewCircuitGroup -`func NewCircuitGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitGroup` +`func NewCircuitGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *CircuitGroup` NewCircuitGroup instantiates a new CircuitGroup object This constructor will assign default values to properties that have it defined, @@ -96,6 +96,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *CircuitGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/CircuitGroupAssignment.md b/docs/CircuitGroupAssignment.md index c6e9b81ad..bb2647f4b 100644 --- a/docs/CircuitGroupAssignment.md +++ b/docs/CircuitGroupAssignment.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Group** | [**BriefCircuitGroup**](BriefCircuitGroup.md) | | **Circuit** | [**BriefCircuit**](BriefCircuit.md) | | @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewCircuitGroupAssignment -`func NewCircuitGroupAssignment(id int32, url string, displayUrl string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime, ) *CircuitGroupAssignment` +`func NewCircuitGroupAssignment(id int32, url string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime, ) *CircuitGroupAssignment` NewCircuitGroupAssignment instantiates a new CircuitGroupAssignment object This constructor will assign default values to properties that have it defined, @@ -93,6 +93,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *CircuitGroupAssignment) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/CircuitRequest.md b/docs/CircuitRequest.md index e28059fb5..0b956756e 100644 --- a/docs/CircuitRequest.md +++ b/docs/CircuitRequest.md @@ -5,13 +5,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**InstallDate** | Pointer to **NullableString** | | [optional] +**TerminationDate** | Pointer to **NullableString** | | [optional] +**CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewCircuitRequest -`func NewCircuitRequest(cid string, ) *CircuitRequest` +`func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *CircuitRequest` NewCircuitRequest instantiates a new CircuitRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +58,246 @@ and a boolean to check if the value has been set. SetCid sets Cid field to given value. +### GetProvider + +`func (o *CircuitRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *CircuitRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + +### GetProviderAccount + +`func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest` + +GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. + +### GetProviderAccountOk + +`func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` + +GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProviderAccount + +`func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` + +SetProviderAccount sets ProviderAccount field to given value. + +### HasProviderAccount + +`func (o *CircuitRequest) HasProviderAccount() bool` + +HasProviderAccount returns a boolean if a field has been set. + +### SetProviderAccountNil + +`func (o *CircuitRequest) SetProviderAccountNil(b bool)` + + SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil + +### UnsetProviderAccount +`func (o *CircuitRequest) UnsetProviderAccount()` + +UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +### GetType + +`func (o *CircuitRequest) GetType() BriefCircuitTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest)` + +SetType sets Type field to given value. + + +### GetStatus + +`func (o *CircuitRequest) GetStatus() CircuitStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *CircuitRequest) SetStatus(v CircuitStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *CircuitRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *CircuitRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *CircuitRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *CircuitRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *CircuitRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *CircuitRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetInstallDate + +`func (o *CircuitRequest) GetInstallDate() string` + +GetInstallDate returns the InstallDate field if non-nil, zero value otherwise. + +### GetInstallDateOk + +`func (o *CircuitRequest) GetInstallDateOk() (*string, bool)` + +GetInstallDateOk returns a tuple with the InstallDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInstallDate + +`func (o *CircuitRequest) SetInstallDate(v string)` + +SetInstallDate sets InstallDate field to given value. + +### HasInstallDate + +`func (o *CircuitRequest) HasInstallDate() bool` + +HasInstallDate returns a boolean if a field has been set. + +### SetInstallDateNil + +`func (o *CircuitRequest) SetInstallDateNil(b bool)` + + SetInstallDateNil sets the value for InstallDate to be an explicit nil + +### UnsetInstallDate +`func (o *CircuitRequest) UnsetInstallDate()` + +UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +### GetTerminationDate + +`func (o *CircuitRequest) GetTerminationDate() string` + +GetTerminationDate returns the TerminationDate field if non-nil, zero value otherwise. + +### GetTerminationDateOk + +`func (o *CircuitRequest) GetTerminationDateOk() (*string, bool)` + +GetTerminationDateOk returns a tuple with the TerminationDate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationDate + +`func (o *CircuitRequest) SetTerminationDate(v string)` + +SetTerminationDate sets TerminationDate field to given value. + +### HasTerminationDate + +`func (o *CircuitRequest) HasTerminationDate() bool` + +HasTerminationDate returns a boolean if a field has been set. + +### SetTerminationDateNil + +`func (o *CircuitRequest) SetTerminationDateNil(b bool)` + + SetTerminationDateNil sets the value for TerminationDate to be an explicit nil + +### UnsetTerminationDate +`func (o *CircuitRequest) UnsetTerminationDate()` + +UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +### GetCommitRate + +`func (o *CircuitRequest) GetCommitRate() int32` + +GetCommitRate returns the CommitRate field if non-nil, zero value otherwise. + +### GetCommitRateOk + +`func (o *CircuitRequest) GetCommitRateOk() (*int32, bool)` + +GetCommitRateOk returns a tuple with the CommitRate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCommitRate + +`func (o *CircuitRequest) SetCommitRate(v int32)` + +SetCommitRate sets CommitRate field to given value. + +### HasCommitRate + +`func (o *CircuitRequest) HasCommitRate() bool` + +HasCommitRate returns a boolean if a field has been set. + +### SetCommitRateNil + +`func (o *CircuitRequest) SetCommitRateNil(b bool)` + + SetCommitRateNil sets the value for CommitRate to be an explicit nil + +### UnsetCommitRate +`func (o *CircuitRequest) UnsetCommitRate()` + +UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil ### GetDescription `func (o *CircuitRequest) GetDescription() string` @@ -71,6 +323,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *CircuitRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *CircuitRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *CircuitRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *CircuitRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *CircuitRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *CircuitRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *CircuitRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *CircuitRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *CircuitRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *CircuitRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *CircuitRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *CircuitRequest) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetAssignments + +`func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *CircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *CircuitRequest) HasAssignments() bool` + +HasAssignments 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/docs/CircuitTermination.md b/docs/CircuitTermination.md index 11b220a6d..fb84abe60 100644 --- a/docs/CircuitTermination.md +++ b/docs/CircuitTermination.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Circuit** | [**Circuit**](Circuit.md) | | +**Circuit** | [**BriefCircuit**](BriefCircuit.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetwork**](ProviderNetwork.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetwork**](BriefProviderNetwork.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] **PpInfo** | Pointer to **string** | Patch panel ID and port number(s) | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewCircuitTermination -`func NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` +`func NewCircuitTermination(id int32, url string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *CircuitTermination` NewCircuitTermination instantiates a new CircuitTermination object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CircuitTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CircuitTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CircuitTermination) GetDisplay() string` @@ -108,20 +134,20 @@ SetDisplay sets Display field to given value. ### GetCircuit -`func (o *CircuitTermination) GetCircuit() Circuit` +`func (o *CircuitTermination) GetCircuit() BriefCircuit` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool)` +`func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTermination) SetCircuit(v Circuit)` +`func (o *CircuitTermination) SetCircuit(v BriefCircuit)` SetCircuit sets Circuit field to given value. @@ -148,20 +174,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTermination) GetSite() Site` +`func (o *CircuitTermination) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTermination) GetSiteOk() (*Site, bool)` +`func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTermination) SetSite(v Site)` +`func (o *CircuitTermination) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -183,20 +209,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork` +`func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool)` +`func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork)` +`func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork)` SetProviderNetwork sets ProviderNetwork field to given value. @@ -388,20 +414,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *CircuitTermination) GetCable() Cable` +`func (o *CircuitTermination) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *CircuitTermination) GetCableOk() (*Cable, bool)` +`func (o *CircuitTermination) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *CircuitTermination) SetCable(v Cable)` +`func (o *CircuitTermination) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -476,6 +502,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *CircuitTermination) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *CircuitTermination) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *CircuitTermination) GetTags() []NestedTag` diff --git a/docs/CircuitTerminationRequest.md b/docs/CircuitTerminationRequest.md index a99223da7..f4116a999 100644 --- a/docs/CircuitTerminationRequest.md +++ b/docs/CircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | [**CircuitRequest**](CircuitRequest.md) | | +**Circuit** | [**BriefCircuitRequest**](BriefCircuitRequest.md) | | **TermSide** | [**Termination1**](Termination1.md) | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewCircuitTerminationRequest -`func NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` +`func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1, ) *CircuitTerminationRequest` NewCircuitTerminationRequest instantiates a new CircuitTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -78,20 +78,20 @@ SetTermSide sets TermSide field to given value. ### GetSite -`func (o *CircuitTerminationRequest) GetSite() SiteRequest` +`func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *CircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -113,20 +113,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/CircuitType.md b/docs/CircuitType.md index ea037618e..c14002431 100644 --- a/docs/CircuitType.md +++ b/docs/CircuitType.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CircuitType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CircuitType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CircuitType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CircuitType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CircuitType) GetDisplay() string` diff --git a/docs/CircuitsAPI.md b/docs/CircuitsAPI.md index c78529d9c..8961304dc 100644 --- a/docs/CircuitsAPI.md +++ b/docs/CircuitsAPI.md @@ -4,6 +4,24 @@ All URIs are relative to *http://localhost* Method | HTTP request | Description ------------- | ------------- | ------------- +[**CircuitsCircuitGroupAssignmentsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkDestroy) | **Delete** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsBulkUpdate) | **Put** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsCreate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsCreate) | **Post** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsDestroy) | **Delete** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsList**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsList) | **Get** /api/circuits/circuit-group-assignments/ | +[**CircuitsCircuitGroupAssignmentsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsPartialUpdate) | **Patch** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsRetrieve) | **Get** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupAssignmentsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupAssignmentsUpdate) | **Put** /api/circuits/circuit-group-assignments/{id}/ | +[**CircuitsCircuitGroupsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsBulkDestroy) | **Delete** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkPartialUpdate) | **Patch** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsBulkUpdate) | **Put** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsCreate**](CircuitsAPI.md#CircuitsCircuitGroupsCreate) | **Post** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsDestroy**](CircuitsAPI.md#CircuitsCircuitGroupsDestroy) | **Delete** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsList**](CircuitsAPI.md#CircuitsCircuitGroupsList) | **Get** /api/circuits/circuit-groups/ | +[**CircuitsCircuitGroupsPartialUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsPartialUpdate) | **Patch** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsRetrieve**](CircuitsAPI.md#CircuitsCircuitGroupsRetrieve) | **Get** /api/circuits/circuit-groups/{id}/ | +[**CircuitsCircuitGroupsUpdate**](CircuitsAPI.md#CircuitsCircuitGroupsUpdate) | **Put** /api/circuits/circuit-groups/{id}/ | [**CircuitsCircuitTerminationsBulkDestroy**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkDestroy) | **Delete** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkPartialUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkPartialUpdate) | **Patch** /api/circuits/circuit-terminations/ | [**CircuitsCircuitTerminationsBulkUpdate**](CircuitsAPI.md#CircuitsCircuitTerminationsBulkUpdate) | **Put** /api/circuits/circuit-terminations/ | @@ -62,6 +80,1452 @@ Method | HTTP request | Description +## CircuitsCircuitGroupAssignmentsBulkDestroy + +> CircuitsCircuitGroupAssignmentsBulkDestroy(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsBulkPartialUpdate + +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkPartialUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsBulkUpdate + +> []CircuitGroupAssignment CircuitsCircuitGroupAssignmentsBulkUpdate(ctx).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupAssignmentRequest := []openapiclient.CircuitGroupAssignmentRequest{*openapiclient.NewCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")))} // []CircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate(context.Background()).CircuitGroupAssignmentRequest(circuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsBulkUpdate`: []CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupAssignmentRequest** | [**[]CircuitGroupAssignmentRequest**](CircuitGroupAssignmentRequest.md) | | + +### Return type + +[**[]CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsCreate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsCreate(ctx).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate(context.Background()).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsCreate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsDestroy + +> CircuitsCircuitGroupAssignmentsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsList + +> PaginatedCircuitGroupAssignmentList CircuitsCircuitGroupAssignmentsList(ctx).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuit := []string{"Inner_example"} // []string | Circuit (CID) (optional) + circuitN := []string{"Inner_example"} // []string | Circuit (CID) (optional) + circuitId := []int32{int32(123)} // []int32 | Circuit (ID) (optional) + circuitIdN := []int32{int32(123)} // []int32 | Circuit (ID) (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + group := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupN := []string{"Inner_example"} // []string | Circuit group (slug) (optional) + groupId := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + groupIdN := []int32{int32(123)} // []int32 | Circuit group (ID) (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + provider := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerN := []string{"Inner_example"} // []string | Provider (slug) (optional) + providerId := []int32{int32(123)} // []int32 | Provider (ID) (optional) + providerIdN := []int32{int32(123)} // []int32 | Provider (ID) (optional) + q := "q_example" // string | Search (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsList(context.Background()).Circuit(circuit).CircuitN(circuitN).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Priority(priority).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsList`: PaginatedCircuitGroupAssignmentList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuit** | **[]string** | Circuit (CID) | + **circuitN** | **[]string** | Circuit (CID) | + **circuitId** | **[]int32** | Circuit (ID) | + **circuitIdN** | **[]int32** | Circuit (ID) | + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **group** | **[]string** | Circuit group (slug) | + **groupN** | **[]string** | Circuit group (slug) | + **groupId** | **[]int32** | Circuit group (ID) | + **groupIdN** | **[]int32** | Circuit group (ID) | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **provider** | **[]string** | Provider (slug) | + **providerN** | **[]string** | Provider (slug) | + **providerId** | **[]int32** | Provider (ID) | + **providerIdN** | **[]int32** | Provider (ID) | + **q** | **string** | Search | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitGroupAssignmentList**](PaginatedCircuitGroupAssignmentList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsPartialUpdate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsPartialUpdate(ctx, id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + patchedWritableCircuitGroupAssignmentRequest := *openapiclient.NewPatchedWritableCircuitGroupAssignmentRequest() // PatchedWritableCircuitGroupAssignmentRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate(context.Background(), id).PatchedWritableCircuitGroupAssignmentRequest(patchedWritableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsPartialUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableCircuitGroupAssignmentRequest** | [**PatchedWritableCircuitGroupAssignmentRequest**](PatchedWritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsRetrieve + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsRetrieve`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupAssignmentsUpdate + +> CircuitGroupAssignment CircuitsCircuitGroupAssignmentsUpdate(ctx, id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this Circuit group assignment. + writableCircuitGroupAssignmentRequest := *openapiclient.NewWritableCircuitGroupAssignmentRequest(*openapiclient.NewBriefCircuitGroupRequest("Name_example"), *openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"))) // WritableCircuitGroupAssignmentRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate(context.Background(), id).WritableCircuitGroupAssignmentRequest(writableCircuitGroupAssignmentRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupAssignmentsUpdate`: CircuitGroupAssignment + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupAssignmentsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this Circuit group assignment. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupAssignmentsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableCircuitGroupAssignmentRequest** | [**WritableCircuitGroupAssignmentRequest**](WritableCircuitGroupAssignmentRequest.md) | | + +### Return type + +[**CircuitGroupAssignment**](CircuitGroupAssignment.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkDestroy + +> CircuitsCircuitGroupsBulkDestroy(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkDestroy(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkPartialUpdate + +> []CircuitGroup CircuitsCircuitGroupsBulkPartialUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsBulkPartialUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**[]CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsBulkUpdate + +> []CircuitGroup CircuitsCircuitGroupsBulkUpdate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := []openapiclient.CircuitGroupRequest{*openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example")} // []CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsBulkUpdate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsBulkUpdate`: []CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**[]CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**[]CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsCreate + +> CircuitGroup CircuitsCircuitGroupsCreate(ctx).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsCreate(context.Background()).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsCreate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsDestroy + +> CircuitsCircuitGroupsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsList + +> PaginatedCircuitGroupList CircuitsCircuitGroupsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsList`: PaginatedCircuitGroupList + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **tenant** | **[]string** | Tenant (slug) | + **tenantN** | **[]string** | Tenant (slug) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | + **tenantId** | **[]int32** | Tenant (ID) | + **tenantIdN** | **[]int32** | Tenant (ID) | + **updatedByRequest** | **string** | | + +### Return type + +[**PaginatedCircuitGroupList**](PaginatedCircuitGroupList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsPartialUpdate + +> CircuitGroup CircuitsCircuitGroupsPartialUpdate(ctx, id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + patchedCircuitGroupRequest := *openapiclient.NewPatchedCircuitGroupRequest() // PatchedCircuitGroupRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsPartialUpdate(context.Background(), id).PatchedCircuitGroupRequest(patchedCircuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsPartialUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedCircuitGroupRequest** | [**PatchedCircuitGroupRequest**](PatchedCircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsRetrieve + +> CircuitGroup CircuitsCircuitGroupsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsRetrieve`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CircuitsCircuitGroupsUpdate + +> CircuitGroup CircuitsCircuitGroupsUpdate(ctx, id).CircuitGroupRequest(circuitGroupRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this circuit group. + circuitGroupRequest := *openapiclient.NewCircuitGroupRequest("Name_example", "Slug_example") // CircuitGroupRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitGroupsUpdate(context.Background(), id).CircuitGroupRequest(circuitGroupRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitGroupsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CircuitsCircuitGroupsUpdate`: CircuitGroup + fmt.Fprintf(os.Stdout, "Response from `CircuitsAPI.CircuitsCircuitGroupsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this circuit group. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCircuitsCircuitGroupsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **circuitGroupRequest** | [**CircuitGroupRequest**](CircuitGroupRequest.md) | | + +### Return type + +[**CircuitGroup**](CircuitGroup.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + ## CircuitsCircuitTerminationsBulkDestroy > CircuitsCircuitTerminationsBulkDestroy(ctx).CircuitTerminationRequest(circuitTerminationRequest).Execute() @@ -83,7 +1547,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -147,7 +1611,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -213,7 +1677,7 @@ import ( ) func main() { - circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | + circuitTerminationRequest := []openapiclient.CircuitTerminationRequest{*openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A"))} // []CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -279,7 +1743,7 @@ import ( ) func main() { - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -394,7 +1858,7 @@ Name | Type | Description | Notes ## CircuitsCircuitTerminationsList -> PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() +> PaginatedCircuitTerminationList CircuitsCircuitTerminationsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() @@ -415,7 +1879,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -492,7 +1955,6 @@ func main() { tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) termSide := openapiclient.Termination("A") // Termination | * `A` - A * `Z` - Z (optional) - termSideN := openapiclient.Termination("A") // Termination | * `A` - A * `Z` - Z (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) upstreamSpeed := []int32{int32(123)} // []int32 | (optional) upstreamSpeedEmpty := true // bool | (optional) @@ -515,7 +1977,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).TermSideN(termSideN).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitTerminationsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).CircuitId(circuitId).CircuitIdN(circuitIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).Occupied(occupied).Offset(offset).Ordering(ordering).PortSpeed(portSpeed).PortSpeedEmpty(portSpeedEmpty).PortSpeedGt(portSpeedGt).PortSpeedGte(portSpeedGte).PortSpeedLt(portSpeedLt).PortSpeedLte(portSpeedLte).PortSpeedN(portSpeedN).PpInfo(ppInfo).PpInfoEmpty(ppInfoEmpty).PpInfoIc(ppInfoIc).PpInfoIe(ppInfoIe).PpInfoIew(ppInfoIew).PpInfoIsw(ppInfoIsw).PpInfoN(ppInfoN).PpInfoNic(ppInfoNic).PpInfoNie(ppInfoNie).PpInfoNiew(ppInfoNiew).PpInfoNisw(ppInfoNisw).Provider(provider).ProviderN(providerN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Site(site).SiteN(siteN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TermSide(termSide).UpdatedByRequest(updatedByRequest).UpstreamSpeed(upstreamSpeed).UpstreamSpeedEmpty(upstreamSpeedEmpty).UpstreamSpeedGt(upstreamSpeedGt).UpstreamSpeedGte(upstreamSpeedGte).UpstreamSpeedLt(upstreamSpeedLt).UpstreamSpeedLte(upstreamSpeedLte).UpstreamSpeedN(upstreamSpeedN).XconnectId(xconnectId).XconnectIdEmpty(xconnectIdEmpty).XconnectIdIc(xconnectIdIc).XconnectIdIe(xconnectIdIe).XconnectIdIew(xconnectIdIew).XconnectIdIsw(xconnectIdIsw).XconnectIdN(xconnectIdN).XconnectIdNic(xconnectIdNic).XconnectIdNie(xconnectIdNie).XconnectIdNiew(xconnectIdNiew).XconnectIdNisw(xconnectIdNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -537,7 +1999,6 @@ Other parameters are passed through a pointer to a apiCircuitsCircuitTermination Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -614,7 +2075,6 @@ Name | Type | Description | Notes **tag** | **[]string** | | **tagN** | **[]string** | | **termSide** | [**Termination**](Termination.md) | * `A` - A * `Z` - Z | - **termSideN** | [**Termination**](Termination.md) | * `A` - A * `Z` - Z | **updatedByRequest** | **string** | | **upstreamSpeed** | **[]int32** | | **upstreamSpeedEmpty** | **bool** | | @@ -887,7 +2347,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit termination. - circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewCircuitRequest("Cid_example"), openapiclient.Termination_1("A")) // CircuitTerminationRequest | + circuitTerminationRequest := *openapiclient.NewCircuitTerminationRequest(*openapiclient.NewBriefCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example")), openapiclient.Termination_1("A")) // CircuitTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +3175,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1779,7 +3239,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1845,7 +3305,7 @@ import ( ) func main() { - circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example")} // []CircuitRequest | + circuitRequest := []openapiclient.CircuitRequest{*openapiclient.NewCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example"))} // []CircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1911,7 +3371,7 @@ import ( ) func main() { - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2026,7 +3486,7 @@ Name | Type | Description | Notes ## CircuitsCircuitsList -> PaginatedCircuitList CircuitsCircuitsList(ctx).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCircuitList CircuitsCircuitsList(ctx).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -2066,8 +3526,8 @@ func main() { commitRateN := []int32{int32(123)} // []int32 | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -2125,28 +3585,37 @@ func main() { providerNetworkId := []int32{int32(123)} // []int32 | Provider network (ID) (optional) providerNetworkIdN := []int32{int32(123)} // []int32 | Provider network (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusIe := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusIew := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusIsw := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusN := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusNic := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusNie := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusNiew := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) + statusNisw := []openapiclient.CircuitsCircuitsListStatusIcParameterInner{openapiclient.circuits_circuits_list_status__ic_parameter_inner("active")} // []CircuitsCircuitsListStatusIcParameterInner | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []*int32{int32(123)} // []*int32 | Termination A (ID) (optional) @@ -2168,7 +3637,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CircuitsAPI.CircuitsCircuitsList(context.Background()).Cid(cid).CidEmpty(cidEmpty).CidIc(cidIc).CidIe(cidIe).CidIew(cidIew).CidIsw(cidIsw).CidN(cidN).CidNic(cidNic).CidNie(cidNie).CidNiew(cidNiew).CidNisw(cidNisw).CommitRate(commitRate).CommitRateEmpty(commitRateEmpty).CommitRateGt(commitRateGt).CommitRateGte(commitRateGte).CommitRateLt(commitRateLt).CommitRateLte(commitRateLte).CommitRateN(commitRateN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstallDate(installDate).InstallDateEmpty(installDateEmpty).InstallDateGt(installDateGt).InstallDateGte(installDateGte).InstallDateLt(installDateLt).InstallDateLte(installDateLte).InstallDateN(installDateN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Provider(provider).ProviderN(providerN).ProviderAccount(providerAccount).ProviderAccountN(providerAccountN).ProviderAccountId(providerAccountId).ProviderAccountIdN(providerAccountIdN).ProviderId(providerId).ProviderIdN(providerIdN).ProviderNetworkId(providerNetworkId).ProviderNetworkIdN(providerNetworkIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAIdN(terminationAIdN).TerminationDate(terminationDate).TerminationDateEmpty(terminationDateEmpty).TerminationDateGt(terminationDateGt).TerminationDateGte(terminationDateGte).TerminationDateLt(terminationDateLt).TerminationDateLte(terminationDateLte).TerminationDateN(terminationDateN).TerminationZId(terminationZId).TerminationZIdN(terminationZIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CircuitsAPI.CircuitsCircuitsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2209,8 +3678,8 @@ Name | Type | Description | Notes **commitRateN** | **[]int32** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2268,28 +3737,37 @@ Name | Type | Description | Notes **providerNetworkId** | **[]int32** | Provider network (ID) | **providerNetworkIdN** | **[]int32** | Provider network (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusIe** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusIew** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusIsw** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusN** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusNic** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusNie** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusNiew** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | + **statusNisw** | [**[]CircuitsCircuitsListStatusIcParameterInner**](CircuitsCircuitsListStatusIcParameterInner.md) | * `planned` - Planned * `provisioning` - Provisioning * `active` - Active * `offline` - Offline * `deprovisioning` - Deprovisioning * `decommissioned` - Decommissioned | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | Termination A (ID) | @@ -2491,7 +3969,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this circuit. - writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewProviderRequest("Name_example", "Slug_example"), *openapiclient.NewCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | + writableCircuitRequest := *openapiclient.NewWritableCircuitRequest("Cid_example", *openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), *openapiclient.NewBriefCircuitTypeRequest("Name_example", "Slug_example")) // WritableCircuitRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2562,7 +4040,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2626,7 +4104,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2692,7 +4170,7 @@ import ( ) func main() { - providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest("Account_example")} // []ProviderAccountRequest | + providerAccountRequest := []openapiclient.ProviderAccountRequest{*openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example")} // []ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2758,7 +4236,7 @@ import ( ) func main() { - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3234,7 +4712,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider account. - providerAccountRequest := *openapiclient.NewProviderAccountRequest("Account_example") // ProviderAccountRequest | + providerAccountRequest := *openapiclient.NewProviderAccountRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Account_example") // ProviderAccountRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3305,7 +4783,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3369,7 +4847,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3435,7 +4913,7 @@ import ( ) func main() { - providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest("Name_example")} // []ProviderNetworkRequest | + providerNetworkRequest := []openapiclient.ProviderNetworkRequest{*openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example")} // []ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3501,7 +4979,7 @@ import ( ) func main() { - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3977,7 +5455,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this provider network. - providerNetworkRequest := *openapiclient.NewProviderNetworkRequest("Name_example") // ProviderNetworkRequest | + providerNetworkRequest := *openapiclient.NewProviderNetworkRequest(*openapiclient.NewBriefProviderRequest("Name_example", "Slug_example"), "Name_example") // ProviderNetworkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4385,8 +5863,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | ASN (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4438,16 +5916,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (optional) siteIdN := []int32{int32(123)} // []int32 | Site (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -4494,8 +5972,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | ASN (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4547,16 +6025,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site | **siteIdN** | **[]int32** | Site | **slug** | **[]string** | | diff --git a/docs/Cluster.md b/docs/Cluster.md index 00443ca40..68fb7525f 100644 --- a/docs/Cluster.md +++ b/docs/Cluster.md @@ -6,16 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**BriefClusterType**](BriefClusterType.md) | | +**Group** | Pointer to [**NullableBriefClusterGroup**](BriefClusterGroup.md) | | [optional] +**Status** | Pointer to [**ClusterStatus**](ClusterStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewCluster -`func NewCluster(id int32, url string, display string, name string, ) *Cluster` +`func NewCluster(id int32, url string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime, ) *Cluster` NewCluster instantiates a new Cluster object This constructor will assign default values to properties that have it defined, @@ -70,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Cluster) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Cluster) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Cluster) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Cluster) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Cluster) GetDisplay() string` @@ -110,6 +147,156 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *Cluster) GetType() BriefClusterType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *Cluster) GetTypeOk() (*BriefClusterType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *Cluster) SetType(v BriefClusterType)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *Cluster) GetGroup() BriefClusterGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Cluster) SetGroup(v BriefClusterGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Cluster) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Cluster) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Cluster) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *Cluster) GetStatus() ClusterStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Cluster) GetStatusOk() (*ClusterStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Cluster) SetStatus(v ClusterStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Cluster) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Cluster) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Cluster) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Cluster) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Cluster) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Cluster) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Cluster) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetSite + +`func (o *Cluster) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Cluster) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Cluster) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *Cluster) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *Cluster) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *Cluster) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *Cluster) GetDescription() string` @@ -135,6 +322,166 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Cluster) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Cluster) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Cluster) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Cluster) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Cluster) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Cluster) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Cluster) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Cluster) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Cluster) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Cluster) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Cluster) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Cluster) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Cluster) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Cluster) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Cluster) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Cluster) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Cluster) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Cluster) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Cluster) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Cluster) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Cluster) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetDeviceCount + +`func (o *Cluster) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Cluster) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Cluster) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Cluster) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + ### GetVirtualmachineCount `func (o *Cluster) GetVirtualmachineCount() int64` diff --git a/docs/ClusterGroup.md b/docs/ClusterGroup.md index ce837f38c..2c95aea73 100644 --- a/docs/ClusterGroup.md +++ b/docs/ClusterGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ClusterGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ClusterGroup) GetDisplay() string` diff --git a/docs/ClusterRequest.md b/docs/ClusterRequest.md index bfe754ce8..15316566b 100644 --- a/docs/ClusterRequest.md +++ b/docs/ClusterRequest.md @@ -5,13 +5,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewClusterRequest -`func NewClusterRequest(name string, ) *ClusterRequest` +`func NewClusterRequest(name string, type_ BriefClusterTypeRequest, ) *ClusterRequest` NewClusterRequest instantiates a new ClusterRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +54,156 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *ClusterRequest) GetType() BriefClusterTypeRequest` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *ClusterRequest) SetType(v BriefClusterTypeRequest)` + +SetType sets Type field to given value. + + +### GetGroup + +`func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ClusterRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ClusterRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ClusterRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetStatus + +`func (o *ClusterRequest) GetStatus() ClusterStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ClusterRequest) SetStatus(v ClusterStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ClusterRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *ClusterRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *ClusterRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *ClusterRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *ClusterRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *ClusterRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetSite + +`func (o *ClusterRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *ClusterRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *ClusterRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *ClusterRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *ClusterRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetDescription `func (o *ClusterRequest) GetDescription() string` @@ -71,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ClusterRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ClusterRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ClusterRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ClusterRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ClusterRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ClusterRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ClusterRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ClusterRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ClusterRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ClusterRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ClusterRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ClusterRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ClusterType.md b/docs/ClusterType.md index c759403ed..34c9893ab 100644 --- a/docs/ClusterType.md +++ b/docs/ClusterType.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ClusterType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ClusterType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ClusterType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ClusterType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ClusterType) GetDisplay() string` diff --git a/docs/ConfigContext.md b/docs/ConfigContext.md index 3d27ad7ed..7dae89962 100644 --- a/docs/ConfigContext.md +++ b/docs/ConfigContext.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Weight** | Pointer to **int32** | | [optional] @@ -24,9 +25,9 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to [**[]TenantGroup**](TenantGroup.md) | | [optional] **Tenants** | Pointer to [**[]Tenant**](Tenant.md) | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Data** | **interface{}** | | **Created** | **NullableTime** | | [readonly] @@ -36,7 +37,7 @@ Name | Type | Description | Notes ### NewConfigContext -`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` +`func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime, ) *ConfigContext` NewConfigContext instantiates a new ConfigContext object This constructor will assign default values to properties that have it defined, @@ -91,6 +92,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConfigContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConfigContext) GetDisplay() string` @@ -533,20 +559,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContext) GetDataSource() DataSource` +`func (o *ConfigContext) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool)` +`func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContext) SetDataSource(v DataSource)` +`func (o *ConfigContext) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -578,20 +604,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ConfigContext) GetDataFile() DataFile` +`func (o *ConfigContext) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ConfigContext) GetDataFileOk() (*DataFile, bool)` +`func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ConfigContext) SetDataFile(v DataFile)` +`func (o *ConfigContext) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ConfigContextRequest.md b/docs/ConfigContextRequest.md index 298074ebf..a42d2482a 100644 --- a/docs/ConfigContextRequest.md +++ b/docs/ConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | **interface{}** | | ## Methods @@ -465,20 +465,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *ConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ConfigTemplate.md b/docs/ConfigTemplate.md index e87b65990..dc3e4c6ce 100644 --- a/docs/ConfigTemplate.md +++ b/docs/ConfigTemplate.md @@ -6,15 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] +**DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] +**DataFile** | Pointer to [**BriefDataFile**](BriefDataFile.md) | | [optional] +**DataSynced** | **NullableTime** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewConfigTemplate -`func NewConfigTemplate(id int32, url string, display string, name string, ) *ConfigTemplate` +`func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ConfigTemplate` NewConfigTemplate instantiates a new ConfigTemplate object This constructor will assign default values to properties that have it defined, @@ -69,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConfigTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConfigTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConfigTemplate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConfigTemplate) GetDisplay() string` @@ -134,6 +169,246 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplate) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplate) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplate) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplate) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplate) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplate) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplate) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplate) GetDataSource() BriefDataSource` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplate) SetDataSource(v BriefDataSource)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplate) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetDataPath + +`func (o *ConfigTemplate) GetDataPath() string` + +GetDataPath returns the DataPath field if non-nil, zero value otherwise. + +### GetDataPathOk + +`func (o *ConfigTemplate) GetDataPathOk() (*string, bool)` + +GetDataPathOk returns a tuple with the DataPath field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataPath + +`func (o *ConfigTemplate) SetDataPath(v string)` + +SetDataPath sets DataPath field to given value. + + +### GetDataFile + +`func (o *ConfigTemplate) GetDataFile() BriefDataFile` + +GetDataFile returns the DataFile field if non-nil, zero value otherwise. + +### GetDataFileOk + +`func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool)` + +GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataFile + +`func (o *ConfigTemplate) SetDataFile(v BriefDataFile)` + +SetDataFile sets DataFile field to given value. + +### HasDataFile + +`func (o *ConfigTemplate) HasDataFile() bool` + +HasDataFile returns a boolean if a field has been set. + +### GetDataSynced + +`func (o *ConfigTemplate) GetDataSynced() time.Time` + +GetDataSynced returns the DataSynced field if non-nil, zero value otherwise. + +### GetDataSyncedOk + +`func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool)` + +GetDataSyncedOk returns a tuple with the DataSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSynced + +`func (o *ConfigTemplate) SetDataSynced(v time.Time)` + +SetDataSynced sets DataSynced field to given value. + + +### SetDataSyncedNil + +`func (o *ConfigTemplate) SetDataSyncedNil(b bool)` + + SetDataSyncedNil sets the value for DataSynced to be an explicit nil + +### UnsetDataSynced +`func (o *ConfigTemplate) UnsetDataSynced()` + +UnsetDataSynced ensures that no value is present for DataSynced, not even an explicit nil +### GetTags + +`func (o *ConfigTemplate) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplate) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ConfigTemplate) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplate) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCreated + +`func (o *ConfigTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ConfigTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ConfigTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ConfigTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ConfigTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ConfigTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ConfigTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ConfigTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ConfigTemplateRequest.md b/docs/ConfigTemplateRequest.md index 2c1540c0d..6865ade79 100644 --- a/docs/ConfigTemplateRequest.md +++ b/docs/ConfigTemplateRequest.md @@ -6,12 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] +**TemplateCode** | **string** | Jinja2 template code. | +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods ### NewConfigTemplateRequest -`func NewConfigTemplateRequest(name string, ) *ConfigTemplateRequest` +`func NewConfigTemplateRequest(name string, templateCode string, ) *ConfigTemplateRequest` NewConfigTemplateRequest instantiates a new ConfigTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -71,6 +75,111 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetEnvironmentParams + +`func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{}` + +GetEnvironmentParams returns the EnvironmentParams field if non-nil, zero value otherwise. + +### GetEnvironmentParamsOk + +`func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool)` + +GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnvironmentParams + +`func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{})` + +SetEnvironmentParams sets EnvironmentParams field to given value. + +### HasEnvironmentParams + +`func (o *ConfigTemplateRequest) HasEnvironmentParams() bool` + +HasEnvironmentParams returns a boolean if a field has been set. + +### SetEnvironmentParamsNil + +`func (o *ConfigTemplateRequest) SetEnvironmentParamsNil(b bool)` + + SetEnvironmentParamsNil sets the value for EnvironmentParams to be an explicit nil + +### UnsetEnvironmentParams +`func (o *ConfigTemplateRequest) UnsetEnvironmentParams()` + +UnsetEnvironmentParams ensures that no value is present for EnvironmentParams, not even an explicit nil +### GetTemplateCode + +`func (o *ConfigTemplateRequest) GetTemplateCode() string` + +GetTemplateCode returns the TemplateCode field if non-nil, zero value otherwise. + +### GetTemplateCodeOk + +`func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool)` + +GetTemplateCodeOk returns a tuple with the TemplateCode field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTemplateCode + +`func (o *ConfigTemplateRequest) SetTemplateCode(v string)` + +SetTemplateCode sets TemplateCode field to given value. + + +### GetDataSource + +`func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` + +GetDataSource returns the DataSource field if non-nil, zero value otherwise. + +### GetDataSourceOk + +`func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` + +GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDataSource + +`func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` + +SetDataSource sets DataSource field to given value. + +### HasDataSource + +`func (o *ConfigTemplateRequest) HasDataSource() bool` + +HasDataSource returns a boolean if a field has been set. + +### GetTags + +`func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ConfigTemplateRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ConfigTemplateRequest) HasTags() bool` + +HasTags 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/docs/ConsolePort.md b/docs/ConsolePort.md index 165ccf778..2a603cfc3 100644 --- a/docs/ConsolePort.md +++ b/docs/ConsolePort.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -32,7 +33,7 @@ Name | Type | Description | Notes ### NewConsolePort -`func NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` +`func NewConsolePort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsolePort` NewConsolePort instantiates a new ConsolePort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsolePort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsolePort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsolePort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConsolePort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConsolePort) GetDisplay() string` @@ -109,40 +135,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsolePort) GetDevice() Device` +`func (o *ConsolePort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePort) GetDeviceOk() (*Device, bool)` +`func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePort) SetDevice(v Device)` +`func (o *ConsolePort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePort) GetModule() Module` +`func (o *ConsolePort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePort) GetModuleOk() (*Module, bool)` +`func (o *ConsolePort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePort) SetModule(v Module)` +`func (o *ConsolePort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,20 +345,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsolePort) GetCable() Cable` +`func (o *ConsolePort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsolePort) GetCableOk() (*Cable, bool)` +`func (o *ConsolePort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsolePort) SetCable(v Cable)` +`func (o *ConsolePort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -407,6 +433,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *ConsolePort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsolePort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsolePort) GetConnectedEndpoints() []interface{}` @@ -427,6 +463,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *ConsolePort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsolePort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsolePort) GetConnectedEndpointsType() string` @@ -447,6 +493,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *ConsolePort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsolePort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsolePort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsolePortRequest.md b/docs/ConsolePortRequest.md index 3c9fe8176..4fdb86bae 100644 --- a/docs/ConsolePortRequest.md +++ b/docs/ConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsolePortRequest -`func NewConsolePortRequest(device DeviceRequest, name string, ) *ConsolePortRequest` +`func NewConsolePortRequest(device BriefDeviceRequest, name string, ) *ConsolePortRequest` NewConsolePortRequest instantiates a new ConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsolePortRequest) GetDevice() DeviceRequest` +`func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsolePortRequest) GetModule() ModuleRequest` +`func (o *ConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *ConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsolePortTemplate.md b/docs/ConsolePortTemplate.md index d37560677..00f005d5e 100644 --- a/docs/ConsolePortTemplate.md +++ b/docs/ConsolePortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsolePortTemplate) GetDeviceType() DeviceType` +`func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplate) GetModuleType() ModuleType` +`func (o *ConsolePortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsolePortTemplateRequest.md b/docs/ConsolePortTemplateRequest.md index bdd1627ea..33af6cae0 100644 --- a/docs/ConsolePortTemplateRequest.md +++ b/docs/ConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPort.md b/docs/ConsoleServerPort.md index 7686dfe90..4f574d38f 100644 --- a/docs/ConsoleServerPort.md +++ b/docs/ConsoleServerPort.md @@ -6,21 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] **Speed** | Pointer to [**NullableConsolePortSpeed**](ConsolePortSpeed.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -32,7 +33,7 @@ Name | Type | Description | Notes ### NewConsoleServerPort -`func NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` +`func NewConsoleServerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *ConsoleServerPort` NewConsoleServerPort instantiates a new ConsoleServerPort object This constructor will assign default values to properties that have it defined, @@ -87,6 +88,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ConsoleServerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ConsoleServerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ConsoleServerPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ConsoleServerPort) GetDisplay() string` @@ -109,40 +135,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ConsoleServerPort) GetDevice() Device` +`func (o *ConsoleServerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool)` +`func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPort) SetDevice(v Device)` +`func (o *ConsoleServerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPort) GetModule() Module` +`func (o *ConsoleServerPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPort) GetModuleOk() (*Module, bool)` +`func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPort) SetModule(v Module)` +`func (o *ConsoleServerPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -319,20 +345,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *ConsoleServerPort) GetCable() Cable` +`func (o *ConsoleServerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *ConsoleServerPort) GetCableOk() (*Cable, bool)` +`func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *ConsoleServerPort) SetCable(v Cable)` +`func (o *ConsoleServerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -407,6 +433,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *ConsoleServerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *ConsoleServerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{}` @@ -427,6 +463,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *ConsoleServerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *ConsoleServerPort) GetConnectedEndpointsType() string` @@ -447,6 +493,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *ConsoleServerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *ConsoleServerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *ConsoleServerPort) GetConnectedEndpointsReachable() bool` diff --git a/docs/ConsoleServerPortRequest.md b/docs/ConsoleServerPortRequest.md index 995610c63..3e59314af 100644 --- a/docs/ConsoleServerPortRequest.md +++ b/docs/ConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewConsoleServerPortRequest -`func NewConsoleServerPortRequest(device DeviceRequest, name string, ) *ConsoleServerPortRequest` +`func NewConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *ConsoleServerPortRequest` NewConsoleServerPortRequest instantiates a new ConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *ConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/ConsoleServerPortTemplate.md b/docs/ConsoleServerPortTemplate.md index dfc96440f..33411a949 100644 --- a/docs/ConsoleServerPortTemplate.md +++ b/docs/ConsoleServerPortTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortType**](ConsolePortType.md) | | [optional] @@ -97,20 +97,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType` +`func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType)` +`func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -132,20 +132,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType` +`func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType)` +`func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/ConsoleServerPortTemplateRequest.md b/docs/ConsoleServerPortTemplateRequest.md index 6c677fcc5..2fe0e692e 100644 --- a/docs/ConsoleServerPortTemplateRequest.md +++ b/docs/ConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/Contact.md b/docs/Contact.md index d3701de38..e51ab0712 100644 --- a/docs/Contact.md +++ b/docs/Contact.md @@ -6,15 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Group** | Pointer to [**NullableBriefContactGroup**](BriefContactGroup.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContact -`func NewContact(id int32, url string, display string, name string, ) *Contact` +`func NewContact(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *Contact` NewContact instantiates a new Contact object This constructor will assign default values to properties that have it defined, @@ -69,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Contact) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Contact) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Contact) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Contact) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Contact) GetDisplay() string` @@ -89,6 +126,41 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetGroup + +`func (o *Contact) GetGroup() BriefContactGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Contact) GetGroupOk() (*BriefContactGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Contact) SetGroup(v BriefContactGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Contact) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Contact) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Contact) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *Contact) GetName() string` @@ -109,6 +181,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *Contact) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *Contact) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *Contact) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *Contact) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *Contact) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *Contact) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *Contact) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *Contact) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *Contact) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *Contact) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *Contact) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *Contact) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *Contact) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *Contact) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *Contact) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *Contact) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *Contact) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *Contact) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *Contact) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *Contact) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *Contact) GetDescription() string` @@ -134,6 +331,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Contact) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Contact) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Contact) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Contact) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Contact) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Contact) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Contact) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Contact) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Contact) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Contact) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Contact) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Contact) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Contact) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Contact) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Contact) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Contact) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Contact) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Contact) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Contact) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Contact) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Contact) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Contact) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ContactAssignment.md b/docs/ContactAssignment.md index 26a003bab..637e6bf0e 100644 --- a/docs/ContactAssignment.md +++ b/docs/ContactAssignment.md @@ -10,9 +10,9 @@ Name | Type | Description | Notes **ObjectType** | **string** | | **ObjectId** | **int64** | | **Object** | **map[string]interface{}** | | [readonly] -**Contact** | [**Contact**](Contact.md) | | -**Role** | Pointer to [**NullableContactRole**](ContactRole.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriority**](ContactAssignmentPriority.md) | | [optional] +**Contact** | [**BriefContact**](BriefContact.md) | | +**Role** | Pointer to [**NullableBriefContactRole**](BriefContactRole.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriority**](BriefCircuitGroupAssignmentSerializerPriority.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +22,7 @@ Name | Type | Description | Notes ### NewContactAssignment -`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` +`func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime, ) *ContactAssignment` NewContactAssignment instantiates a new ContactAssignment object This constructor will assign default values to properties that have it defined, @@ -159,40 +159,40 @@ SetObject sets Object field to given value. ### GetContact -`func (o *ContactAssignment) GetContact() Contact` +`func (o *ContactAssignment) GetContact() BriefContact` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignment) GetContactOk() (*Contact, bool)` +`func (o *ContactAssignment) GetContactOk() (*BriefContact, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignment) SetContact(v Contact)` +`func (o *ContactAssignment) SetContact(v BriefContact)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignment) GetRole() ContactRole` +`func (o *ContactAssignment) GetRole() BriefContactRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool)` +`func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignment) SetRole(v ContactRole)` +`func (o *ContactAssignment) SetRole(v BriefContactRole)` SetRole sets Role field to given value. @@ -214,20 +214,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignment) GetPriority() ContactAssignmentPriority` +`func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool)` +`func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority)` +`func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority)` SetPriority sets Priority field to given value. diff --git a/docs/ContactAssignmentRequest.md b/docs/ContactAssignmentRequest.md index de146e2f6..5ca6e4a62 100644 --- a/docs/ContactAssignmentRequest.md +++ b/docs/ContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewContactAssignmentRequest -`func NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *ContactAssignmentRequest` +`func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *ContactAssignmentRequest` NewContactAssignmentRequest instantiates a new ContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *ContactAssignmentRequest) GetContact() ContactRequest` +`func (o *ContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *ContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/ContactGroup.md b/docs/ContactGroup.md index 42b960ec3..0e1b86b04 100644 --- a/docs/ContactGroup.md +++ b/docs/ContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ContactGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ContactGroup) GetDisplay() string` diff --git a/docs/ContactRequest.md b/docs/ContactRequest.md index 050fa6fb1..13eead0d4 100644 --- a/docs/ContactRequest.md +++ b/docs/ContactRequest.md @@ -4,8 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | **string** | | +**Title** | Pointer to **string** | | [optional] +**Phone** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**Address** | Pointer to **string** | | [optional] +**Link** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -26,6 +35,41 @@ NewContactRequestWithDefaults instantiates a new ContactRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetGroup + +`func (o *ContactRequest) GetGroup() BriefContactGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *ContactRequest) SetGroup(v BriefContactGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *ContactRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *ContactRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *ContactRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetName `func (o *ContactRequest) GetName() string` @@ -46,6 +90,131 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTitle + +`func (o *ContactRequest) GetTitle() string` + +GetTitle returns the Title field if non-nil, zero value otherwise. + +### GetTitleOk + +`func (o *ContactRequest) GetTitleOk() (*string, bool)` + +GetTitleOk returns a tuple with the Title field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTitle + +`func (o *ContactRequest) SetTitle(v string)` + +SetTitle sets Title field to given value. + +### HasTitle + +`func (o *ContactRequest) HasTitle() bool` + +HasTitle returns a boolean if a field has been set. + +### GetPhone + +`func (o *ContactRequest) GetPhone() string` + +GetPhone returns the Phone field if non-nil, zero value otherwise. + +### GetPhoneOk + +`func (o *ContactRequest) GetPhoneOk() (*string, bool)` + +GetPhoneOk returns a tuple with the Phone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhone + +`func (o *ContactRequest) SetPhone(v string)` + +SetPhone sets Phone field to given value. + +### HasPhone + +`func (o *ContactRequest) HasPhone() bool` + +HasPhone returns a boolean if a field has been set. + +### GetEmail + +`func (o *ContactRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *ContactRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *ContactRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *ContactRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetAddress + +`func (o *ContactRequest) GetAddress() string` + +GetAddress returns the Address field if non-nil, zero value otherwise. + +### GetAddressOk + +`func (o *ContactRequest) GetAddressOk() (*string, bool)` + +GetAddressOk returns a tuple with the Address field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAddress + +`func (o *ContactRequest) SetAddress(v string)` + +SetAddress sets Address field to given value. + +### HasAddress + +`func (o *ContactRequest) HasAddress() bool` + +HasAddress returns a boolean if a field has been set. + +### GetLink + +`func (o *ContactRequest) GetLink() string` + +GetLink returns the Link field if non-nil, zero value otherwise. + +### GetLinkOk + +`func (o *ContactRequest) GetLinkOk() (*string, bool)` + +GetLinkOk returns a tuple with the Link field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLink + +`func (o *ContactRequest) SetLink(v string)` + +SetLink sets Link field to given value. + +### HasLink + +`func (o *ContactRequest) HasLink() bool` + +HasLink returns a boolean if a field has been set. + ### GetDescription `func (o *ContactRequest) GetDescription() string` @@ -71,6 +240,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ContactRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ContactRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ContactRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ContactRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ContactRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ContactRole.md b/docs/ContactRole.md index 66937cee4..8c3597c8c 100644 --- a/docs/ContactRole.md +++ b/docs/ContactRole.md @@ -6,16 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewContactRole -`func NewContactRole(id int32, url string, display string, name string, slug string, ) *ContactRole` +`func NewContactRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *ContactRole` NewContactRole instantiates a new ContactRole object This constructor will assign default values to properties that have it defined, @@ -70,6 +75,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ContactRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ContactRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ContactRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ContactRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ContactRole) GetDisplay() string` @@ -155,6 +185,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRole) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ContactRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ContactRole) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ContactRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ContactRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ContactRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ContactRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ContactRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ContactRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ContactRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ContactRoleRequest.md b/docs/ContactRoleRequest.md index 615000a63..dce32edee 100644 --- a/docs/ContactRoleRequest.md +++ b/docs/ContactRoleRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ContactRoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ContactRoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ContactRoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ContactRoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ContactRoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ContactRoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ContactRoleRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/CoreAPI.md b/docs/CoreAPI.md index 18791cb42..7d2cb7b36 100644 --- a/docs/CoreAPI.md +++ b/docs/CoreAPI.md @@ -18,6 +18,8 @@ Method | HTTP request | Description [**CoreDataSourcesUpdate**](CoreAPI.md#CoreDataSourcesUpdate) | **Put** /api/core/data-sources/{id}/ | [**CoreJobsList**](CoreAPI.md#CoreJobsList) | **Get** /api/core/jobs/ | [**CoreJobsRetrieve**](CoreAPI.md#CoreJobsRetrieve) | **Get** /api/core/jobs/{id}/ | +[**CoreObjectChangesList**](CoreAPI.md#CoreObjectChangesList) | **Get** /api/core/object-changes/ | +[**CoreObjectChangesRetrieve**](CoreAPI.md#CoreObjectChangesRetrieve) | **Get** /api/core/object-changes/{id}/ | @@ -299,7 +301,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -363,7 +365,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +431,7 @@ import ( ) func main() { - dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSourceRequest_type("local"), "SourceUrl_example")} // []DataSourceRequest | + dataSourceRequest := []openapiclient.DataSourceRequest{*openapiclient.NewDataSourceRequest("Name_example", openapiclient.DataSource_type_value("local"), "SourceUrl_example")} // []DataSourceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -610,7 +612,7 @@ Name | Type | Description | Notes ## CoreDataSourcesList -> PaginatedDataSourceList CoreDataSourcesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDataSourceList CoreDataSourcesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -699,16 +701,34 @@ func main() { sourceUrlNiew := []string{"Inner_example"} // []string | (optional) sourceUrlNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []string{"Inner_example"} // []string | (optional) + statusIe := []string{"Inner_example"} // []string | (optional) + statusIew := []string{"Inner_example"} // []string | (optional) + statusIsw := []string{"Inner_example"} // []string | (optional) statusN := []string{"Inner_example"} // []string | (optional) + statusNic := []string{"Inner_example"} // []string | (optional) + statusNie := []string{"Inner_example"} // []string | (optional) + statusNiew := []string{"Inner_example"} // []string | (optional) + statusNisw := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []string{"Inner_example"} // []string | (optional) + typeIe := []string{"Inner_example"} // []string | (optional) + typeIew := []string{"Inner_example"} // []string | (optional) + typeIsw := []string{"Inner_example"} // []string | (optional) typeN := []string{"Inner_example"} // []string | (optional) + typeNic := []string{"Inner_example"} // []string | (optional) + typeNie := []string{"Inner_example"} // []string | (optional) + typeNiew := []string{"Inner_example"} // []string | (optional) + typeNisw := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.CoreAPI.CoreDataSourcesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastSynced(lastSynced).LastSyncedEmpty(lastSyncedEmpty).LastSyncedGt(lastSyncedGt).LastSyncedGte(lastSyncedGte).LastSyncedLt(lastSyncedLt).LastSyncedLte(lastSyncedLte).LastSyncedN(lastSyncedN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SourceUrl(sourceUrl).SourceUrlEmpty(sourceUrlEmpty).SourceUrlIc(sourceUrlIc).SourceUrlIe(sourceUrlIe).SourceUrlIew(sourceUrlIew).SourceUrlIsw(sourceUrlIsw).SourceUrlN(sourceUrlN).SourceUrlNic(sourceUrlNic).SourceUrlNie(sourceUrlNie).SourceUrlNiew(sourceUrlNiew).SourceUrlNisw(sourceUrlNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreDataSourcesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -798,11 +818,29 @@ Name | Type | Description | Notes **sourceUrlNiew** | **[]string** | | **sourceUrlNisw** | **[]string** | | **status** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | **[]string** | | + **statusIe** | **[]string** | | + **statusIew** | **[]string** | | + **statusIsw** | **[]string** | | **statusN** | **[]string** | | + **statusNic** | **[]string** | | + **statusNie** | **[]string** | | + **statusNiew** | **[]string** | | + **statusNisw** | **[]string** | | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | **[]string** | | + **typeIe** | **[]string** | | + **typeIew** | **[]string** | | + **typeIsw** | **[]string** | | **typeN** | **[]string** | | + **typeNic** | **[]string** | | + **typeNie** | **[]string** | | + **typeNiew** | **[]string** | | + **typeNisw** | **[]string** | | **updatedByRequest** | **string** | | ### Return type @@ -1111,7 +1149,7 @@ Name | Type | Description | Notes ## CoreJobsList -> PaginatedJobList CoreJobsList(ctx).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).JobId(jobId).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute() +> PaginatedJobList CoreJobsList(ctx).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).JobId(jobId).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).User(user).UserN(userN).Execute() @@ -1183,13 +1221,22 @@ func main() { startedAfter := time.Now() // time.Time | (optional) startedBefore := time.Now() // time.Time | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusIe := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusIew := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusIsw := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusN := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusNic := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusNie := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusNiew := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) + statusNisw := []openapiclient.CoreJobsListStatusIcParameterInner{openapiclient.core_jobs_list_status__ic_parameter_inner("completed")} // []CoreJobsListStatusIcParameterInner | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed (optional) user := int32(56) // int32 | (optional) userN := int32(56) // int32 | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).JobId(jobId).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusN(statusN).User(user).UserN(userN).Execute() + resp, r, err := apiClient.CoreAPI.CoreJobsList(context.Background()).Completed(completed).CompletedAfter(completedAfter).CompletedBefore(completedBefore).Created(created).CreatedAfter(createdAfter).CreatedBefore(createdBefore).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interval(interval).IntervalEmpty(intervalEmpty).IntervalGt(intervalGt).IntervalGte(intervalGte).IntervalLt(intervalLt).IntervalLte(intervalLte).IntervalN(intervalN).JobId(jobId).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).Offset(offset).Ordering(ordering).Q(q).Scheduled(scheduled).ScheduledAfter(scheduledAfter).ScheduledBefore(scheduledBefore).Started(started).StartedAfter(startedAfter).StartedBefore(startedBefore).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).User(user).UserN(userN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreJobsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1262,7 +1309,16 @@ Name | Type | Description | Notes **startedAfter** | **time.Time** | | **startedBefore** | **time.Time** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusIe** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusIew** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusIsw** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusN** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusNic** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusNie** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusNiew** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | + **statusNisw** | [**[]CoreJobsListStatusIcParameterInner**](CoreJobsListStatusIcParameterInner.md) | * `pending` - Pending * `scheduled` - Scheduled * `running` - Running * `completed` - Completed * `errored` - Errored * `failed` - Failed | **user** | **int32** | | **userN** | **int32** | | @@ -1353,3 +1409,260 @@ Name | Type | Description | Notes [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + +## CoreObjectChangesList + +> PaginatedObjectChangeList CoreObjectChangesList(ctx).Action(action).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + action := openapiclient.core_object_changes_list_action_parameter("create") // CoreObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) + changedObjectId := []int32{int32(123)} // []int32 | (optional) + changedObjectIdEmpty := true // bool | (optional) + changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + changedObjectIdN := []int32{int32(123)} // []int32 | (optional) + changedObjectType := "changedObjectType_example" // string | (optional) + changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) + changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) + changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + objectRepr := []string{"Inner_example"} // []string | (optional) + objectReprEmpty := true // bool | (optional) + objectReprIc := []string{"Inner_example"} // []string | (optional) + objectReprIe := []string{"Inner_example"} // []string | (optional) + objectReprIew := []string{"Inner_example"} // []string | (optional) + objectReprIsw := []string{"Inner_example"} // []string | (optional) + objectReprN := []string{"Inner_example"} // []string | (optional) + objectReprNic := []string{"Inner_example"} // []string | (optional) + objectReprNie := []string{"Inner_example"} // []string | (optional) + objectReprNiew := []string{"Inner_example"} // []string | (optional) + objectReprNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + relatedObjectId := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdEmpty := true // bool | (optional) + relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) + relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) + relatedObjectType := int32(56) // int32 | (optional) + relatedObjectTypeN := int32(56) // int32 | (optional) + requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + timeAfter := time.Now() // time.Time | (optional) + timeBefore := time.Now() // time.Time | (optional) + user := []string{"Inner_example"} // []string | User name (optional) + userN := []string{"Inner_example"} // []string | User name (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userName := []string{"Inner_example"} // []string | (optional) + userNameEmpty := true // bool | (optional) + userNameIc := []string{"Inner_example"} // []string | (optional) + userNameIe := []string{"Inner_example"} // []string | (optional) + userNameIew := []string{"Inner_example"} // []string | (optional) + userNameIsw := []string{"Inner_example"} // []string | (optional) + userNameN := []string{"Inner_example"} // []string | (optional) + userNameNic := []string{"Inner_example"} // []string | (optional) + userNameNie := []string{"Inner_example"} // []string | (optional) + userNameNiew := []string{"Inner_example"} // []string | (optional) + userNameNisw := []string{"Inner_example"} // []string | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesList(context.Background()).Action(action).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesList`: PaginatedObjectChangeList + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **action** | [**CoreObjectChangesListActionParameter**](CoreObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | + **changedObjectId** | **[]int32** | | + **changedObjectIdEmpty** | **bool** | | + **changedObjectIdGt** | **[]int32** | | + **changedObjectIdGte** | **[]int32** | | + **changedObjectIdLt** | **[]int32** | | + **changedObjectIdLte** | **[]int32** | | + **changedObjectIdN** | **[]int32** | | + **changedObjectType** | **string** | | + **changedObjectTypeN** | **string** | | + **changedObjectTypeId** | **[]int32** | | + **changedObjectTypeIdN** | **[]int32** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **limit** | **int32** | Number of results to return per page. | + **objectRepr** | **[]string** | | + **objectReprEmpty** | **bool** | | + **objectReprIc** | **[]string** | | + **objectReprIe** | **[]string** | | + **objectReprIew** | **[]string** | | + **objectReprIsw** | **[]string** | | + **objectReprN** | **[]string** | | + **objectReprNic** | **[]string** | | + **objectReprNie** | **[]string** | | + **objectReprNiew** | **[]string** | | + **objectReprNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **relatedObjectId** | **[]int32** | | + **relatedObjectIdEmpty** | **bool** | | + **relatedObjectIdGt** | **[]int32** | | + **relatedObjectIdGte** | **[]int32** | | + **relatedObjectIdLt** | **[]int32** | | + **relatedObjectIdLte** | **[]int32** | | + **relatedObjectIdN** | **[]int32** | | + **relatedObjectType** | **int32** | | + **relatedObjectTypeN** | **int32** | | + **requestId** | **string** | | + **timeAfter** | **time.Time** | | + **timeBefore** | **time.Time** | | + **user** | **[]string** | User name | + **userN** | **[]string** | User name | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **userName** | **[]string** | | + **userNameEmpty** | **bool** | | + **userNameIc** | **[]string** | | + **userNameIe** | **[]string** | | + **userNameIew** | **[]string** | | + **userNameIsw** | **[]string** | | + **userNameN** | **[]string** | | + **userNameNic** | **[]string** | | + **userNameNie** | **[]string** | | + **userNameNiew** | **[]string** | | + **userNameNisw** | **[]string** | | + +### Return type + +[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## CoreObjectChangesRetrieve + +> ObjectChange CoreObjectChangesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object change. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.CoreAPI.CoreObjectChangesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `CoreAPI.CoreObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `CoreObjectChangesRetrieve`: ObjectChange + fmt.Fprintf(os.Stdout, "Response from `CoreAPI.CoreObjectChangesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object change. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiCoreObjectChangesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectChange**](ObjectChange.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + diff --git a/docs/CustomField.md b/docs/CustomField.md index 58a8f8771..518643ee9 100644 --- a/docs/CustomField.md +++ b/docs/CustomField.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Type** | [**CustomFieldType**](CustomFieldType.md) | | @@ -15,18 +16,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogic**](CustomFieldFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisible**](CustomFieldUiVisible.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditable**](CustomFieldUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSet**](CustomFieldChoiceSet.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSet**](BriefCustomFieldChoiceSet.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -90,6 +93,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomField) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomField) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomField) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CustomField) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CustomField) GetDisplay() string` @@ -325,6 +353,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomField) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomField) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomField) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomField) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomField) GetSearchWeight() int32` @@ -485,6 +538,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomField) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomField) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomField) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomField) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomField) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomField) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomField) GetWeight() int32` @@ -607,20 +695,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet` +`func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool)` +`func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet)` +`func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomFieldChoiceSet.md b/docs/CustomFieldChoiceSet.md index ebc8229ca..d274de05f 100644 --- a/docs/CustomFieldChoiceSet.md +++ b/docs/CustomFieldChoiceSet.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomFieldChoiceSet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomFieldChoiceSet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CustomFieldChoiceSet) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CustomFieldChoiceSet) GetDisplay() string` diff --git a/docs/CustomFieldRequest.md b/docs/CustomFieldRequest.md index ab9dfbfd1..e9b2185ec 100644 --- a/docs/CustomFieldRequest.md +++ b/docs/CustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**CustomFieldFilterLogicValue**](CustomFieldFilterLogicValue.md) | | [optional] **UiVisible** | Pointer to [**CustomFieldUiVisibleValue**](CustomFieldUiVisibleValue.md) | | [optional] **UiEditable** | Pointer to [**CustomFieldUiEditableValue**](CustomFieldUiEditableValue.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -239,6 +241,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *CustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *CustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *CustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *CustomFieldRequest) GetSearchWeight() int32` @@ -399,6 +426,41 @@ HasDefault returns a boolean if a field has been set. `func (o *CustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *CustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *CustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *CustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *CustomFieldRequest) GetWeight() int32` @@ -521,20 +583,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/CustomLink.md b/docs/CustomLink.md index c2b8e12ea..51b4a34b5 100644 --- a/docs/CustomLink.md +++ b/docs/CustomLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *CustomLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *CustomLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *CustomLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *CustomLink) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *CustomLink) GetDisplay() string` diff --git a/docs/CustomLinkButtonClass.md b/docs/CustomLinkButtonClass.md index f62db6217..bf68c5956 100644 --- a/docs/CustomLinkButtonClass.md +++ b/docs/CustomLinkButtonClass.md @@ -3,7 +3,7 @@ ## Enum -* `OUTLINE_DARK` (value: `"outline-dark"`) +* `DEFAULT` (value: `"default"`) * `BLUE` (value: `"blue"`) diff --git a/docs/DataFile.md b/docs/DataFile.md index a332d29cb..81f2e0f93 100644 --- a/docs/DataFile.md +++ b/docs/DataFile.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Source** | [**DataSource**](DataSource.md) | | [readonly] +**Source** | [**BriefDataSource**](BriefDataSource.md) | | [readonly] **Path** | **string** | File path relative to the data source's root | [readonly] **LastUpdated** | **time.Time** | | [readonly] **Size** | **int32** | | [readonly] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewDataFile -`func NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` +`func NewDataFile(id int32, url string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string, ) *DataFile` NewDataFile instantiates a new DataFile object This constructor will assign default values to properties that have it defined, @@ -72,6 +73,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataFile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataFile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataFile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DataFile) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DataFile) GetDisplay() string` @@ -94,20 +120,20 @@ SetDisplay sets Display field to given value. ### GetSource -`func (o *DataFile) GetSource() DataSource` +`func (o *DataFile) GetSource() BriefDataSource` GetSource returns the Source field if non-nil, zero value otherwise. ### GetSourceOk -`func (o *DataFile) GetSourceOk() (*DataSource, bool)` +`func (o *DataFile) GetSourceOk() (*BriefDataSource, bool)` GetSourceOk returns a tuple with the Source field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSource -`func (o *DataFile) SetSource(v DataSource)` +`func (o *DataFile) SetSource(v BriefDataSource)` SetSource sets Source field to given value. diff --git a/docs/DataSource.md b/docs/DataSource.md index 0768fd476..9ec944dbd 100644 --- a/docs/DataSource.md +++ b/docs/DataSource.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Type** | [**DataSourceType**](DataSourceType.md) | | +**SourceUrl** | **string** | | +**Enabled** | Pointer to **bool** | | [optional] +**Status** | [**DataSourceStatus**](DataSourceStatus.md) | | **Description** | Pointer to **string** | | [optional] +**Parameters** | Pointer to **interface{}** | | [optional] +**IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**LastSynced** | **NullableTime** | | [readonly] +**FileCount** | **int64** | | [readonly] ## Methods ### NewDataSource -`func NewDataSource(id int32, url string, display string, name string, ) *DataSource` +`func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64, ) *DataSource` NewDataSource instantiates a new DataSource object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DataSource) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DataSource) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DataSource) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DataSource) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DataSource) GetDisplay() string` @@ -109,6 +147,91 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetType + +`func (o *DataSource) GetType() DataSourceType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *DataSource) GetTypeOk() (*DataSourceType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *DataSource) SetType(v DataSourceType)` + +SetType sets Type field to given value. + + +### GetSourceUrl + +`func (o *DataSource) GetSourceUrl() string` + +GetSourceUrl returns the SourceUrl field if non-nil, zero value otherwise. + +### GetSourceUrlOk + +`func (o *DataSource) GetSourceUrlOk() (*string, bool)` + +GetSourceUrlOk returns a tuple with the SourceUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSourceUrl + +`func (o *DataSource) SetSourceUrl(v string)` + +SetSourceUrl sets SourceUrl field to given value. + + +### GetEnabled + +`func (o *DataSource) GetEnabled() bool` + +GetEnabled returns the Enabled field if non-nil, zero value otherwise. + +### GetEnabledOk + +`func (o *DataSource) GetEnabledOk() (*bool, bool)` + +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnabled + +`func (o *DataSource) SetEnabled(v bool)` + +SetEnabled sets Enabled field to given value. + +### HasEnabled + +`func (o *DataSource) HasEnabled() bool` + +HasEnabled returns a boolean if a field has been set. + +### GetStatus + +`func (o *DataSource) GetStatus() DataSourceStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *DataSource) SetStatus(v DataSourceStatus)` + +SetStatus sets Status field to given value. + + ### GetDescription `func (o *DataSource) GetDescription() string` @@ -134,6 +257,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetParameters + +`func (o *DataSource) GetParameters() interface{}` + +GetParameters returns the Parameters field if non-nil, zero value otherwise. + +### GetParametersOk + +`func (o *DataSource) GetParametersOk() (*interface{}, bool)` + +GetParametersOk returns a tuple with the Parameters field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParameters + +`func (o *DataSource) SetParameters(v interface{})` + +SetParameters sets Parameters field to given value. + +### HasParameters + +`func (o *DataSource) HasParameters() bool` + +HasParameters returns a boolean if a field has been set. + +### SetParametersNil + +`func (o *DataSource) SetParametersNil(b bool)` + + SetParametersNil sets the value for Parameters to be an explicit nil + +### UnsetParameters +`func (o *DataSource) UnsetParameters()` + +UnsetParameters ensures that no value is present for Parameters, not even an explicit nil +### GetIgnoreRules + +`func (o *DataSource) GetIgnoreRules() string` + +GetIgnoreRules returns the IgnoreRules field if non-nil, zero value otherwise. + +### GetIgnoreRulesOk + +`func (o *DataSource) GetIgnoreRulesOk() (*string, bool)` + +GetIgnoreRulesOk returns a tuple with the IgnoreRules field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIgnoreRules + +`func (o *DataSource) SetIgnoreRules(v string)` + +SetIgnoreRules sets IgnoreRules field to given value. + +### HasIgnoreRules + +`func (o *DataSource) HasIgnoreRules() bool` + +HasIgnoreRules returns a boolean if a field has been set. + +### GetComments + +`func (o *DataSource) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSource) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSource) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSource) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DataSource) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DataSource) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DataSource) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DataSource) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DataSource) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DataSource) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DataSource) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DataSource) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DataSource) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DataSource) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DataSource) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DataSource) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DataSource) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetLastSynced + +`func (o *DataSource) GetLastSynced() time.Time` + +GetLastSynced returns the LastSynced field if non-nil, zero value otherwise. + +### GetLastSyncedOk + +`func (o *DataSource) GetLastSyncedOk() (*time.Time, bool)` + +GetLastSyncedOk returns a tuple with the LastSynced field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastSynced + +`func (o *DataSource) SetLastSynced(v time.Time)` + +SetLastSynced sets LastSynced field to given value. + + +### SetLastSyncedNil + +`func (o *DataSource) SetLastSyncedNil(b bool)` + + SetLastSyncedNil sets the value for LastSynced to be an explicit nil + +### UnsetLastSynced +`func (o *DataSource) UnsetLastSynced()` + +UnsetLastSynced ensures that no value is present for LastSynced, not even an explicit nil +### GetFileCount + +`func (o *DataSource) GetFileCount() int64` + +GetFileCount returns the FileCount field if non-nil, zero value otherwise. + +### GetFileCountOk + +`func (o *DataSource) GetFileCountOk() (*int64, bool)` + +GetFileCountOk returns a tuple with the FileCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFileCount + +`func (o *DataSource) SetFileCount(v int64)` + +SetFileCount sets FileCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DataSourceRequest.md b/docs/DataSourceRequest.md index f9f23e255..8aad888e3 100644 --- a/docs/DataSourceRequest.md +++ b/docs/DataSourceRequest.md @@ -5,20 +5,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**DataSourceRequestType**](DataSourceRequestType.md) | | +**Type** | [**DataSourceTypeValue**](DataSourceTypeValue.md) | | **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDataSourceRequest -`func NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string, ) *DataSourceRequest` +`func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string, ) *DataSourceRequest` NewDataSourceRequest instantiates a new DataSourceRequest object This constructor will assign default values to properties that have it defined, @@ -55,20 +55,20 @@ SetName sets Name field to given value. ### GetType -`func (o *DataSourceRequest) GetType() DataSourceRequestType` +`func (o *DataSourceRequest) GetType() DataSourceTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool)` +`func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *DataSourceRequest) SetType(v DataSourceRequestType)` +`func (o *DataSourceRequest) SetType(v DataSourceTypeValue)` SetType sets Type field to given value. @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *DataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *DataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *DataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *DataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *DataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *DataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/DcimAPI.md b/docs/DcimAPI.md index 2e73f244a..7e707268d 100644 --- a/docs/DcimAPI.md +++ b/docs/DcimAPI.md @@ -310,6 +310,15 @@ Method | HTTP request | Description [**DcimRackRolesPartialUpdate**](DcimAPI.md#DcimRackRolesPartialUpdate) | **Patch** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesRetrieve**](DcimAPI.md#DcimRackRolesRetrieve) | **Get** /api/dcim/rack-roles/{id}/ | [**DcimRackRolesUpdate**](DcimAPI.md#DcimRackRolesUpdate) | **Put** /api/dcim/rack-roles/{id}/ | +[**DcimRackTypesBulkDestroy**](DcimAPI.md#DcimRackTypesBulkDestroy) | **Delete** /api/dcim/rack-types/ | +[**DcimRackTypesBulkPartialUpdate**](DcimAPI.md#DcimRackTypesBulkPartialUpdate) | **Patch** /api/dcim/rack-types/ | +[**DcimRackTypesBulkUpdate**](DcimAPI.md#DcimRackTypesBulkUpdate) | **Put** /api/dcim/rack-types/ | +[**DcimRackTypesCreate**](DcimAPI.md#DcimRackTypesCreate) | **Post** /api/dcim/rack-types/ | +[**DcimRackTypesDestroy**](DcimAPI.md#DcimRackTypesDestroy) | **Delete** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesList**](DcimAPI.md#DcimRackTypesList) | **Get** /api/dcim/rack-types/ | +[**DcimRackTypesPartialUpdate**](DcimAPI.md#DcimRackTypesPartialUpdate) | **Patch** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesRetrieve**](DcimAPI.md#DcimRackTypesRetrieve) | **Get** /api/dcim/rack-types/{id}/ | +[**DcimRackTypesUpdate**](DcimAPI.md#DcimRackTypesUpdate) | **Put** /api/dcim/rack-types/{id}/ | [**DcimRacksBulkDestroy**](DcimAPI.md#DcimRacksBulkDestroy) | **Delete** /api/dcim/racks/ | [**DcimRacksBulkPartialUpdate**](DcimAPI.md#DcimRacksBulkPartialUpdate) | **Patch** /api/dcim/racks/ | [**DcimRacksBulkUpdate**](DcimAPI.md#DcimRacksBulkUpdate) | **Put** /api/dcim/racks/ | @@ -719,7 +728,7 @@ Name | Type | Description | Notes ## DcimCableTerminationsList -> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCableTerminationList DcimCableTerminationsList(ctx).Cable(cable).CableN(cableN).CableEnd(cableEnd).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() @@ -742,7 +751,6 @@ func main() { cable := int32(56) // int32 | (optional) cableN := int32(56) // int32 | (optional) cableEnd := openapiclient.End("A") // End | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.End("A") // End | * `A` - A * `B` - B (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -782,7 +790,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Cable(cable).CableN(cableN).CableEnd(cableEnd).CableEndN(cableEndN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCableTerminationsList(context.Background()).Cable(cable).CableN(cableN).CableEnd(cableEnd).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCableTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -806,7 +814,6 @@ Name | Type | Description | Notes **cable** | **int32** | | **cableN** | **int32** | | **cableEnd** | [**End**](End.md) | * `A` - A * `B` - B | - **cableEndN** | [**End**](End.md) | * `A` - A * `B` - B | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1408,7 +1415,7 @@ Name | Type | Description | Notes ## DcimCablesList -> PaginatedCableList DcimCablesList(ctx).CircuitterminationId(circuitterminationId).Color(color).ColorN(colorN).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCableList DcimCablesList(ctx).CircuitterminationId(circuitterminationId).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() @@ -1430,7 +1437,16 @@ import ( func main() { circuitterminationId := []int32{int32(123)} // []int32 | (optional) color := []string{"Inner_example"} // []string | (optional) + colorEmpty := true // bool | (optional) + colorIc := []string{"Inner_example"} // []string | (optional) + colorIe := []string{"Inner_example"} // []string | (optional) + colorIew := []string{"Inner_example"} // []string | (optional) + colorIsw := []string{"Inner_example"} // []string | (optional) colorN := []string{"Inner_example"} // []string | (optional) + colorNic := []string{"Inner_example"} // []string | (optional) + colorNie := []string{"Inner_example"} // []string | (optional) + colorNiew := []string{"Inner_example"} // []string | (optional) + colorNisw := []string{"Inner_example"} // []string | (optional) consoleportId := []int32{int32(123)} // []int32 | (optional) consoleserverportId := []int32{int32(123)} // []int32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1489,7 +1505,6 @@ func main() { lengthLte := []float64{float64(123)} // []float64 | (optional) lengthN := []float64{float64(123)} // []float64 | (optional) lengthUnit := openapiclient.dcim_cables_list_length_unit_parameter("cm") // DcimCablesListLengthUnitParameter | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches (optional) - lengthUnitN := openapiclient.dcim_cables_list_length_unit_parameter("cm") // DcimCablesListLengthUnitParameter | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) location := []string{"Inner_example"} // []string | (optional) locationId := []int32{int32(123)} // []int32 | (optional) @@ -1506,15 +1521,24 @@ func main() { site := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusIe := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusIew := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusIsw := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusN := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNic := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNie := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNiew := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNisw := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) terminationAId := []int32{int32(123)} // []int32 | (optional) @@ -1524,13 +1548,22 @@ func main() { terminationBType := "terminationBType_example" // string | (optional) terminationBTypeN := "terminationBTypeN_example" // string | (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeIe := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeIew := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeIsw := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeN := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeNic := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeNie := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeNiew := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) + typeNisw := []openapiclient.DcimCablesListTypeIcParameterInner{openapiclient.dcim_cables_list_type__ic_parameter_inner("")} // []DcimCablesListTypeIcParameterInner | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power (optional) unterminated := true // bool | Unterminated (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).CircuitterminationId(circuitterminationId).Color(color).ColorN(colorN).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).LengthUnitN(lengthUnitN).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeN(typeN).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimCablesList(context.Background()).CircuitterminationId(circuitterminationId).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).ConsoleportId(consoleportId).ConsoleserverportId(consoleserverportId).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).FrontportId(frontportId).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Length(length).LengthEmpty(lengthEmpty).LengthGt(lengthGt).LengthGte(lengthGte).LengthLt(lengthLt).LengthLte(lengthLte).LengthN(lengthN).LengthUnit(lengthUnit).Limit(limit).Location(location).LocationId(locationId).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PowerfeedId(powerfeedId).PoweroutletId(poweroutletId).PowerportId(powerportId).Q(q).Rack(rack).RackId(rackId).RearportId(rearportId).Site(site).SiteId(siteId).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TerminationAId(terminationAId).TerminationAType(terminationAType).TerminationATypeN(terminationATypeN).TerminationBId(terminationBId).TerminationBType(terminationBType).TerminationBTypeN(terminationBTypeN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).Unterminated(unterminated).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimCablesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1553,7 +1586,16 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **circuitterminationId** | **[]int32** | | **color** | **[]string** | | + **colorEmpty** | **bool** | | + **colorIc** | **[]string** | | + **colorIe** | **[]string** | | + **colorIew** | **[]string** | | + **colorIsw** | **[]string** | | **colorN** | **[]string** | | + **colorNic** | **[]string** | | + **colorNie** | **[]string** | | + **colorNiew** | **[]string** | | + **colorNisw** | **[]string** | | **consoleportId** | **[]int32** | | **consoleserverportId** | **[]int32** | | **created** | [**[]time.Time**](time.Time.md) | | @@ -1612,7 +1654,6 @@ Name | Type | Description | Notes **lengthLte** | **[]float64** | | **lengthN** | **[]float64** | | **lengthUnit** | [**DcimCablesListLengthUnitParameter**](DcimCablesListLengthUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | - **lengthUnitN** | [**DcimCablesListLengthUnitParameter**](DcimCablesListLengthUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `cm` - Centimeters * `mi` - Miles * `ft` - Feet * `in` - Inches | **limit** | **int32** | Number of results to return per page. | **location** | **[]string** | | **locationId** | **[]int32** | | @@ -1629,15 +1670,24 @@ Name | Type | Description | Notes **site** | **[]string** | | **siteId** | **[]int32** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusIe** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusIew** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusIsw** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusN** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNic** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNie** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNiew** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNisw** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **terminationAId** | **[]int32** | | @@ -1647,7 +1697,16 @@ Name | Type | Description | Notes **terminationBType** | **string** | | **terminationBTypeN** | **string** | | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeIe** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeIew** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeIsw** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeN** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeNic** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeNie** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeNiew** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | + **typeNisw** | [**[]DcimCablesListTypeIcParameterInner**](DcimCablesListTypeIcParameterInner.md) | * `cat3` - CAT3 * `cat5` - CAT5 * `cat5e` - CAT5e * `cat6` - CAT6 * `cat6a` - CAT6a * `cat7` - CAT7 * `cat7a` - CAT7a * `cat8` - CAT8 * `dac-active` - Direct Attach Copper (Active) * `dac-passive` - Direct Attach Copper (Passive) * `mrj21-trunk` - MRJ21 Trunk * `coaxial` - Coaxial * `mmf` - Multimode Fiber * `mmf-om1` - Multimode Fiber (OM1) * `mmf-om2` - Multimode Fiber (OM2) * `mmf-om3` - Multimode Fiber (OM3) * `mmf-om4` - Multimode Fiber (OM4) * `mmf-om5` - Multimode Fiber (OM5) * `smf` - Singlemode Fiber * `smf-os1` - Singlemode Fiber (OS1) * `smf-os2` - Singlemode Fiber (OS2) * `aoc` - Active Optical Cabling (AOC) * `usb` - USB * `power` - Power | **unterminated** | **bool** | Unterminated | **updatedByRequest** | **string** | | @@ -2283,7 +2342,7 @@ Name | Type | Description | Notes ## DcimConsolePortTemplatesList -> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsolePortTemplateList DcimConsolePortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() @@ -2324,8 +2383,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2355,8 +2412,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -2372,12 +2427,11 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) type_ := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] (optional) - typeN := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2419,8 +2473,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2450,8 +2502,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -2467,7 +2517,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **type_** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] | - **typeN** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -2723,7 +2772,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2787,7 +2836,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2853,7 +2902,7 @@ import ( ) func main() { - consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsolePortRequest | + consolePortRequest := []openapiclient.ConsolePortRequest{*openapiclient.NewConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2919,7 +2968,7 @@ import ( ) func main() { - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3034,7 +3083,7 @@ Name | Type | Description | Notes ## DcimConsolePortsList -> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsolePortList DcimConsolePortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -3055,7 +3104,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -3083,6 +3131,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -3140,28 +3203,32 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) - speedN := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIe := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIew := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIsw := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeN := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNic := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNie := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNiew := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNisw := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -3170,7 +3237,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsolePortsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsolePortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3192,7 +3259,6 @@ Other parameters are passed through a pointer to a apiDcimConsolePortsListReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -3220,6 +3286,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -3277,28 +3358,32 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | - **speedN** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | Physical port type | - **typeN** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIe** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIew** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIsw** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeN** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNic** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNie** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNiew** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNisw** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -3557,7 +3642,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console port. - writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsolePortRequest | + writableConsolePortRequest := *openapiclient.NewWritableConsolePortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsolePortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3939,7 +4024,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortTemplatesList -> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedConsoleServerPortTemplateList DcimConsoleServerPortTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() @@ -3980,8 +4065,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4011,8 +4094,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -4028,12 +4109,11 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) type_ := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] (optional) - typeN := openapiclient.dcim_console_port_templates_list_type_parameter("Other") // DcimConsolePortTemplatesListTypeParameter | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4075,8 +4155,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -4106,8 +4184,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -4123,7 +4199,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **type_** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] | - **typeN** | [**DcimConsolePortTemplatesListTypeParameter**](DcimConsolePortTemplatesListTypeParameter.md) | * `Serial` - [('de-9', 'DE-9'), ('db-25', 'DB-25'), ('rj-11', 'RJ-11'), ('rj-12', 'RJ-12'), ('rj-45', 'RJ-45'), ('mini-din-8', 'Mini-DIN 8')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB')] * `Other` - [('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -4379,7 +4454,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4443,7 +4518,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4509,7 +4584,7 @@ import ( ) func main() { - consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | + consoleServerPortRequest := []openapiclient.ConsoleServerPortRequest{*openapiclient.NewConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4575,7 +4650,7 @@ import ( ) func main() { - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4690,7 +4765,7 @@ Name | Type | Description | Notes ## DcimConsoleServerPortsList -> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedConsoleServerPortList DcimConsoleServerPortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -4711,7 +4786,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -4739,6 +4813,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -4796,28 +4885,32 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) - speedN := openapiclient.dcim_console_ports_list_speed_parameter(115200) // DcimConsolePortsListSpeedParameter | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIe := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIew := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIsw := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeN := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNic := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNie := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNiew := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNisw := []openapiclient.DcimConsolePortsListTypeIcParameterInner{openapiclient.dcim_console_ports_list_type__ic_parameter_inner("")} // []DcimConsolePortsListTypeIcParameterInner | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -4826,7 +4919,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedN(speedN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimConsoleServerPortsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimConsoleServerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4848,7 +4941,6 @@ Other parameters are passed through a pointer to a apiDcimConsoleServerPortsList Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -4876,6 +4968,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -4933,28 +5040,32 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | - **speedN** | [**DcimConsolePortsListSpeedParameter**](DcimConsolePortsListSpeedParameter.md) | Port speed in bits per second * `1200` - 1200 bps * `2400` - 2400 bps * `4800` - 4800 bps * `9600` - 9600 bps * `19200` - 19.2 kbps * `38400` - 38.4 kbps * `57600` - 57.6 kbps * `115200` - 115.2 kbps | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | Physical port type | - **typeN** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIe** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIew** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIsw** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeN** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNic** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNie** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNiew** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNisw** | [**[]DcimConsolePortsListTypeIcParameterInner**](DcimConsolePortsListTypeIcParameterInner.md) | Physical port type * `de-9` - DE-9 * `db-25` - DB-25 * `rj-11` - RJ-11 * `rj-12` - RJ-12 * `rj-45` - RJ-45 * `mini-din-8` - Mini-DIN 8 * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -5213,7 +5324,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this console server port. - writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | + writableConsoleServerPortRequest := *openapiclient.NewWritableConsoleServerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritableConsoleServerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5284,7 +5395,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5348,7 +5459,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5414,7 +5525,7 @@ import ( ) func main() { - deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | + deviceBayTemplateRequest := []openapiclient.DeviceBayTemplateRequest{*openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5480,7 +5591,7 @@ import ( ) func main() { - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5595,7 +5706,7 @@ Name | Type | Description | Notes ## DcimDeviceBayTemplatesList -> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedDeviceBayTemplateList DcimDeviceBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -5636,8 +5747,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5683,7 +5792,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5725,8 +5834,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5952,7 +6059,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay template. - deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | + deviceBayTemplateRequest := *openapiclient.NewDeviceBayTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // DeviceBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6023,7 +6130,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6087,7 +6194,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6153,7 +6260,7 @@ import ( ) func main() { - deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []DeviceBayRequest | + deviceBayRequest := []openapiclient.DeviceBayRequest{*openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6219,7 +6326,7 @@ import ( ) func main() { - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6334,7 +6441,7 @@ Name | Type | Description | Notes ## DcimDeviceBaysList -> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedDeviceBayList DcimDeviceBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -6377,6 +6484,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -6434,20 +6556,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -6460,7 +6578,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledDevice(installedDevice).InstalledDeviceN(installedDeviceN).InstalledDeviceId(installedDeviceId).InstalledDeviceIdN(installedDeviceIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6504,6 +6622,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -6561,20 +6694,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -6767,7 +6896,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device bay. - deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // DeviceBayRequest | + deviceBayRequest := *openapiclient.NewDeviceBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // DeviceBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7601,7 +7730,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7665,7 +7794,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7731,7 +7860,7 @@ import ( ) func main() { - deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | + deviceTypeRequest := []openapiclient.DeviceTypeRequest{*openapiclient.NewDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []DeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7797,7 +7926,7 @@ import ( ) func main() { - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7912,7 +8041,7 @@ Name | Type | Description | Notes ## DcimDeviceTypesList -> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).AirflowN(airflowN).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedDeviceTypeList DcimDeviceTypesList(ctx).Airflow(airflow).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Execute() @@ -7933,7 +8062,6 @@ import ( func main() { airflow := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed (optional) - airflowN := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed (optional) consolePortTemplateCount := []int32{int32(123)} // []int32 | (optional) consolePortTemplateCountEmpty := true // bool | (optional) consolePortTemplateCountGt := []int32{int32(123)} // []int32 | (optional) @@ -8097,7 +8225,6 @@ func main() { slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) subdeviceRole := openapiclient.Parent_child_status("child") // ParentChildStatus | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child (optional) - subdeviceRoleN := openapiclient.Parent_child_status("child") // ParentChildStatus | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) uHeight := []float64{float64(123)} // []float64 | (optional) @@ -8116,11 +8243,10 @@ func main() { weightLte := []float64{float64(123)} // []float64 | (optional) weightN := []float64{float64(123)} // []float64 | (optional) weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Airflow(airflow).AirflowN(airflowN).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).SubdeviceRoleN(subdeviceRoleN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimDeviceTypesList(context.Background()).Airflow(airflow).ConsolePortTemplateCount(consolePortTemplateCount).ConsolePortTemplateCountEmpty(consolePortTemplateCountEmpty).ConsolePortTemplateCountGt(consolePortTemplateCountGt).ConsolePortTemplateCountGte(consolePortTemplateCountGte).ConsolePortTemplateCountLt(consolePortTemplateCountLt).ConsolePortTemplateCountLte(consolePortTemplateCountLte).ConsolePortTemplateCountN(consolePortTemplateCountN).ConsolePorts(consolePorts).ConsoleServerPortTemplateCount(consoleServerPortTemplateCount).ConsoleServerPortTemplateCountEmpty(consoleServerPortTemplateCountEmpty).ConsoleServerPortTemplateCountGt(consoleServerPortTemplateCountGt).ConsoleServerPortTemplateCountGte(consoleServerPortTemplateCountGte).ConsoleServerPortTemplateCountLt(consoleServerPortTemplateCountLt).ConsoleServerPortTemplateCountLte(consoleServerPortTemplateCountLte).ConsoleServerPortTemplateCountN(consoleServerPortTemplateCountN).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DefaultPlatform(defaultPlatform).DefaultPlatformN(defaultPlatformN).DefaultPlatformId(defaultPlatformId).DefaultPlatformIdN(defaultPlatformIdN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayTemplateCount(deviceBayTemplateCount).DeviceBayTemplateCountEmpty(deviceBayTemplateCountEmpty).DeviceBayTemplateCountGt(deviceBayTemplateCountGt).DeviceBayTemplateCountGte(deviceBayTemplateCountGte).DeviceBayTemplateCountLt(deviceBayTemplateCountLt).DeviceBayTemplateCountLte(deviceBayTemplateCountLte).DeviceBayTemplateCountN(deviceBayTemplateCountN).DeviceBays(deviceBays).ExcludeFromUtilization(excludeFromUtilization).FrontPortTemplateCount(frontPortTemplateCount).FrontPortTemplateCountEmpty(frontPortTemplateCountEmpty).FrontPortTemplateCountGt(frontPortTemplateCountGt).FrontPortTemplateCountGte(frontPortTemplateCountGte).FrontPortTemplateCountLt(frontPortTemplateCountLt).FrontPortTemplateCountLte(frontPortTemplateCountLte).FrontPortTemplateCountN(frontPortTemplateCountN).HasFrontImage(hasFrontImage).HasRearImage(hasRearImage).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceTemplateCount(interfaceTemplateCount).InterfaceTemplateCountEmpty(interfaceTemplateCountEmpty).InterfaceTemplateCountGt(interfaceTemplateCountGt).InterfaceTemplateCountGte(interfaceTemplateCountGte).InterfaceTemplateCountLt(interfaceTemplateCountLt).InterfaceTemplateCountLte(interfaceTemplateCountLte).InterfaceTemplateCountN(interfaceTemplateCountN).Interfaces(interfaces).InventoryItemTemplateCount(inventoryItemTemplateCount).InventoryItemTemplateCountEmpty(inventoryItemTemplateCountEmpty).InventoryItemTemplateCountGt(inventoryItemTemplateCountGt).InventoryItemTemplateCountGte(inventoryItemTemplateCountGte).InventoryItemTemplateCountLt(inventoryItemTemplateCountLt).InventoryItemTemplateCountLte(inventoryItemTemplateCountLte).InventoryItemTemplateCountN(inventoryItemTemplateCountN).InventoryItems(inventoryItems).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).ModuleBayTemplateCount(moduleBayTemplateCount).ModuleBayTemplateCountEmpty(moduleBayTemplateCountEmpty).ModuleBayTemplateCountGt(moduleBayTemplateCountGt).ModuleBayTemplateCountGte(moduleBayTemplateCountGte).ModuleBayTemplateCountLt(moduleBayTemplateCountLt).ModuleBayTemplateCountLte(moduleBayTemplateCountLte).ModuleBayTemplateCountN(moduleBayTemplateCountN).ModuleBays(moduleBays).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutletTemplateCount(powerOutletTemplateCount).PowerOutletTemplateCountEmpty(powerOutletTemplateCountEmpty).PowerOutletTemplateCountGt(powerOutletTemplateCountGt).PowerOutletTemplateCountGte(powerOutletTemplateCountGte).PowerOutletTemplateCountLt(powerOutletTemplateCountLt).PowerOutletTemplateCountLte(powerOutletTemplateCountLte).PowerOutletTemplateCountN(powerOutletTemplateCountN).PowerOutlets(powerOutlets).PowerPortTemplateCount(powerPortTemplateCount).PowerPortTemplateCountEmpty(powerPortTemplateCountEmpty).PowerPortTemplateCountGt(powerPortTemplateCountGt).PowerPortTemplateCountGte(powerPortTemplateCountGte).PowerPortTemplateCountLt(powerPortTemplateCountLt).PowerPortTemplateCountLte(powerPortTemplateCountLte).PowerPortTemplateCountN(powerPortTemplateCountN).PowerPorts(powerPorts).Q(q).RearPortTemplateCount(rearPortTemplateCount).RearPortTemplateCountEmpty(rearPortTemplateCountEmpty).RearPortTemplateCountGt(rearPortTemplateCountGt).RearPortTemplateCountGte(rearPortTemplateCountGte).RearPortTemplateCountLt(rearPortTemplateCountLt).RearPortTemplateCountLte(rearPortTemplateCountLte).RearPortTemplateCountN(rearPortTemplateCountN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).SubdeviceRole(subdeviceRole).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDeviceTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8142,7 +8268,6 @@ Other parameters are passed through a pointer to a apiDcimDeviceTypesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **airflow** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | - **airflowN** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | **consolePortTemplateCount** | **[]int32** | | **consolePortTemplateCountEmpty** | **bool** | | **consolePortTemplateCountGt** | **[]int32** | | @@ -8306,7 +8431,6 @@ Name | Type | Description | Notes **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | **subdeviceRole** | [**ParentChildStatus**](ParentChildStatus.md) | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child | - **subdeviceRoleN** | [**ParentChildStatus**](ParentChildStatus.md) | Parent devices house child devices in device bays. Leave blank if this device type is neither a parent nor a child. * `parent` - Parent * `child` - Child | **tag** | **[]string** | | **tagN** | **[]string** | | **uHeight** | **[]float64** | | @@ -8325,7 +8449,6 @@ Name | Type | Description | Notes **weightLte** | **[]float64** | | **weightN** | **[]float64** | | **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | ### Return type @@ -8509,7 +8632,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device type. - writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | + writableDeviceTypeRequest := *openapiclient.NewWritableDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example") // WritableDeviceTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8580,7 +8703,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8644,7 +8767,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8710,7 +8833,7 @@ import ( ) func main() { - deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | + deviceWithConfigContextRequest := []openapiclient.DeviceWithConfigContextRequest{*openapiclient.NewDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []DeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8776,7 +8899,7 @@ import ( ) func main() { - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8891,7 +9014,7 @@ Name | Type | Description | Notes ## DcimDevicesList -> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() +> PaginatedDeviceWithConfigContextList DcimDevicesList(ctx).Airflow(airflow).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() @@ -8912,7 +9035,6 @@ import ( func main() { airflow := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed (optional) - airflowN := openapiclient.dcim_device_types_list_airflow_parameter("front-to-rear") // DcimDeviceTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed (optional) assetTag := []string{"Inner_example"} // []string | (optional) assetTagEmpty := true // bool | (optional) assetTagIc := []string{"Inner_example"} // []string | (optional) @@ -8924,6 +9046,10 @@ func main() { assetTagNie := []string{"Inner_example"} // []string | (optional) assetTagNiew := []string{"Inner_example"} // []string | (optional) assetTagNisw := []string{"Inner_example"} // []string | (optional) + clusterGroup := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupN := []string{"Inner_example"} // []string | Cluster group (slug) (optional) + clusterGroupId := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) + clusterGroupIdN := []int32{int32(123)} // []int32 | Cluster group (ID) (optional) clusterId := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) clusterIdN := []*int32{int32(123)} // []*int32 | VM cluster (ID) (optional) configTemplateId := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) @@ -8946,8 +9072,8 @@ func main() { consoleServerPorts := true // bool | Has console server ports (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -8982,7 +9108,6 @@ func main() { deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) face := openapiclient.Rack_face("front") // RackFace | * `front` - Front * `rear` - Rear (optional) - faceN := openapiclient.Rack_face("front") // RackFace | * `front` - Front * `rear` - Rear (optional) frontPortCount := []int32{int32(123)} // []int32 | (optional) frontPortCountEmpty := true // bool | (optional) frontPortCountGt := []int32{int32(123)} // []int32 | (optional) @@ -9032,8 +9157,8 @@ func main() { latitudeN := []float64{float64(123)} // []float64 | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) localContextData := true // bool | Has local config context data (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) longitude := []float64{float64(123)} // []float64 | (optional) longitudeEmpty := true // bool | (optional) longitudeGt := []float64{float64(123)} // []float64 | (optional) @@ -9127,10 +9252,10 @@ func main() { rearPortCountLt := []int32{int32(123)} // []int32 | (optional) rearPortCountLte := []int32{int32(123)} // []int32 | (optional) rearPortCountN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []int32{int32(123)} // []int32 | Role (ID) (optional) @@ -9148,22 +9273,31 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + statusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -9187,7 +9321,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AirflowN(airflowN).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FaceN(faceN).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() + resp, r, err := apiClient.DcimAPI.DcimDevicesList(context.Background()).Airflow(airflow).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).ConsolePortCount(consolePortCount).ConsolePortCountEmpty(consolePortCountEmpty).ConsolePortCountGt(consolePortCountGt).ConsolePortCountGte(consolePortCountGte).ConsolePortCountLt(consolePortCountLt).ConsolePortCountLte(consolePortCountLte).ConsolePortCountN(consolePortCountN).ConsolePorts(consolePorts).ConsoleServerPortCount(consoleServerPortCount).ConsoleServerPortCountEmpty(consoleServerPortCountEmpty).ConsoleServerPortCountGt(consoleServerPortCountGt).ConsoleServerPortCountGte(consoleServerPortCountGte).ConsoleServerPortCountLt(consoleServerPortCountLt).ConsoleServerPortCountLte(consoleServerPortCountLte).ConsoleServerPortCountN(consoleServerPortCountN).ConsoleServerPorts(consoleServerPorts).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceBayCount(deviceBayCount).DeviceBayCountEmpty(deviceBayCountEmpty).DeviceBayCountGt(deviceBayCountGt).DeviceBayCountGte(deviceBayCountGte).DeviceBayCountLt(deviceBayCountLt).DeviceBayCountLte(deviceBayCountLte).DeviceBayCountN(deviceBayCountN).DeviceBays(deviceBays).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Face(face).FrontPortCount(frontPortCount).FrontPortCountEmpty(frontPortCountEmpty).FrontPortCountGt(frontPortCountGt).FrontPortCountGte(frontPortCountGte).FrontPortCountLt(frontPortCountLt).FrontPortCountLte(frontPortCountLte).FrontPortCountN(frontPortCountN).HasOobIp(hasOobIp).HasPrimaryIp(hasPrimaryIp).HasVirtualDeviceContext(hasVirtualDeviceContext).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).Interfaces(interfaces).InventoryItemCount(inventoryItemCount).InventoryItemCountEmpty(inventoryItemCountEmpty).InventoryItemCountGt(inventoryItemCountGt).InventoryItemCountGte(inventoryItemCountGte).InventoryItemCountLt(inventoryItemCountLt).InventoryItemCountLte(inventoryItemCountLte).InventoryItemCountN(inventoryItemCountN).IsFullDepth(isFullDepth).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).LocalContextData(localContextData).LocationId(locationId).LocationIdN(locationIdN).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelN(modelN).ModifiedByRequest(modifiedByRequest).ModuleBayCount(moduleBayCount).ModuleBayCountEmpty(moduleBayCountEmpty).ModuleBayCountGt(moduleBayCountGt).ModuleBayCountGte(moduleBayCountGte).ModuleBayCountLt(moduleBayCountLt).ModuleBayCountLte(moduleBayCountLte).ModuleBayCountN(moduleBayCountN).ModuleBays(moduleBays).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OobIpId(oobIpId).OobIpIdN(oobIpIdN).Ordering(ordering).ParentBayId(parentBayId).ParentBayIdN(parentBayIdN).ParentDeviceId(parentDeviceId).ParentDeviceIdN(parentDeviceIdN).PassThroughPorts(passThroughPorts).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Position(position).PositionEmpty(positionEmpty).PositionGt(positionGt).PositionGte(positionGte).PositionLt(positionLt).PositionLte(positionLte).PositionN(positionN).PowerOutletCount(powerOutletCount).PowerOutletCountEmpty(powerOutletCountEmpty).PowerOutletCountGt(powerOutletCountGt).PowerOutletCountGte(powerOutletCountGte).PowerOutletCountLt(powerOutletCountLt).PowerOutletCountLte(powerOutletCountLte).PowerOutletCountN(powerOutletCountN).PowerOutlets(powerOutlets).PowerPortCount(powerPortCount).PowerPortCountEmpty(powerPortCountEmpty).PowerPortCountGt(powerPortCountGt).PowerPortCountGte(powerPortCountGte).PowerPortCountLt(powerPortCountLt).PowerPortCountLte(powerPortCountLte).PowerPortCountN(powerPortCountN).PowerPorts(powerPorts).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).RackId(rackId).RackIdN(rackIdN).RearPortCount(rearPortCount).RearPortCountEmpty(rearPortCountEmpty).RearPortCountGt(rearPortCountGt).RearPortCountGte(rearPortCountGte).RearPortCountLt(rearPortCountLt).RearPortCountLte(rearPortCountLte).RearPortCountN(rearPortCountN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VcPosition(vcPosition).VcPositionEmpty(vcPositionEmpty).VcPositionGt(vcPositionGt).VcPositionGte(vcPositionGte).VcPositionLt(vcPositionLt).VcPositionLte(vcPositionLte).VcPositionN(vcPositionN).VcPriority(vcPriority).VcPriorityEmpty(vcPriorityEmpty).VcPriorityGt(vcPriorityGt).VcPriorityGte(vcPriorityGte).VcPriorityLt(vcPriorityLt).VcPriorityLte(vcPriorityLte).VcPriorityN(vcPriorityN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimDevicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9209,7 +9343,6 @@ Other parameters are passed through a pointer to a apiDcimDevicesListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **airflow** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | - **airflowN** | [**DcimDeviceTypesListAirflowParameter**](DcimDeviceTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive * `mixed` - Mixed | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -9221,6 +9354,10 @@ Name | Type | Description | Notes **assetTagNie** | **[]string** | | **assetTagNiew** | **[]string** | | **assetTagNisw** | **[]string** | | + **clusterGroup** | **[]string** | Cluster group (slug) | + **clusterGroupN** | **[]string** | Cluster group (slug) | + **clusterGroupId** | **[]int32** | Cluster group (ID) | + **clusterGroupIdN** | **[]int32** | Cluster group (ID) | **clusterId** | **[]int32** | VM cluster (ID) | **clusterIdN** | **[]int32** | VM cluster (ID) | **configTemplateId** | **[]int32** | Config template (ID) | @@ -9243,8 +9380,8 @@ Name | Type | Description | Notes **consoleServerPorts** | **bool** | Has console server ports | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -9279,7 +9416,6 @@ Name | Type | Description | Notes **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **face** | [**RackFace**](RackFace.md) | * `front` - Front * `rear` - Rear | - **faceN** | [**RackFace**](RackFace.md) | * `front` - Front * `rear` - Rear | **frontPortCount** | **[]int32** | | **frontPortCountEmpty** | **bool** | | **frontPortCountGt** | **[]int32** | | @@ -9329,8 +9465,8 @@ Name | Type | Description | Notes **latitudeN** | **[]float64** | | **limit** | **int32** | Number of results to return per page. | **localContextData** | **bool** | Has local config context data | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **longitude** | **[]float64** | | **longitudeEmpty** | **bool** | | **longitudeGt** | **[]float64** | | @@ -9424,10 +9560,10 @@ Name | Type | Description | Notes **rearPortCountLt** | **[]int32** | | **rearPortCountLte** | **[]int32** | | **rearPortCountN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -9445,22 +9581,31 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **statusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9594,7 +9739,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -9738,7 +9883,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this device. - writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | + writableDeviceWithConfigContextRequest := *openapiclient.NewWritableDeviceWithConfigContextRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), *openapiclient.NewBriefDeviceRoleRequest("Name_example", "Slug_example"), *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), openapiclient.Rack_face_1("front")) // WritableDeviceWithConfigContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9809,7 +9954,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9873,7 +10018,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -9939,7 +10084,7 @@ import ( ) func main() { - frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | + frontPortTemplateRequest := []openapiclient.FrontPortTemplateRequest{*openapiclient.NewFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example"))} // []FrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10005,7 +10150,7 @@ import ( ) func main() { - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10120,7 +10265,7 @@ Name | Type | Description | Notes ## DcimFrontPortTemplatesList -> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFrontPortTemplateList DcimFrontPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -10172,8 +10317,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -10203,8 +10346,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -10229,12 +10370,21 @@ func main() { rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIe := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIsw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeN := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNic := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNie := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNiew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNisw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10287,8 +10437,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -10318,8 +10466,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -10344,7 +10490,16 @@ Name | Type | Description | Notes **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIe** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIsw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeN** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNic** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNie** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNiew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNisw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | **updatedByRequest** | **string** | | ### Return type @@ -10529,7 +10684,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port template. - writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | + writableFrontPortTemplateRequest := *openapiclient.NewWritableFrontPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewBriefRearPortTemplateRequest("Name_example")) // WritableFrontPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10600,7 +10755,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10664,7 +10819,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10730,7 +10885,7 @@ import ( ) func main() { - frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | + frontPortRequest := []openapiclient.FrontPortRequest{*openapiclient.NewFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), *openapiclient.NewFrontPortRearPortRequest("Name_example"))} // []FrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10796,7 +10951,7 @@ import ( ) func main() { - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -10911,7 +11066,7 @@ Name | Type | Description | Notes ## DcimFrontPortsList -> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedFrontPortList DcimFrontPortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -10932,7 +11087,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -10970,6 +11124,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -11036,26 +11205,31 @@ func main() { rearPortPositionLt := []int32{int32(123)} // []int32 | (optional) rearPortPositionLte := []int32{int32(123)} // []int32 | (optional) rearPortPositionN := []int32{int32(123)} // []int32 | (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIe := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIsw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeN := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNic := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNie := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNiew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNisw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -11064,7 +11238,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimFrontPortsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).RearPortId(rearPortId).RearPortIdN(rearPortIdN).RearPortPosition(rearPortPosition).RearPortPositionEmpty(rearPortPositionEmpty).RearPortPositionGt(rearPortPositionGt).RearPortPositionGte(rearPortPositionGte).RearPortPositionLt(rearPortPositionLt).RearPortPositionLte(rearPortPositionLte).RearPortPositionN(rearPortPositionN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimFrontPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11086,7 +11260,6 @@ Other parameters are passed through a pointer to a apiDcimFrontPortsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -11124,6 +11297,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -11190,26 +11378,31 @@ Name | Type | Description | Notes **rearPortPositionLt** | **[]int32** | | **rearPortPositionLte** | **[]int32** | | **rearPortPositionN** | **[]int32** | | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIe** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIsw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeN** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNic** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNie** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNiew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNisw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -11468,7 +11661,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this front port. - writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | + writableFrontPortRequest := *openapiclient.NewWritableFrontPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"), int32(123)) // WritableFrontPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -11850,7 +12043,7 @@ Name | Type | Description | Notes ## DcimInterfaceTemplatesList -> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInterfaceTemplateList DcimInterfaceTemplatesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).Q(q).RfRole(rfRole).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -11893,8 +12086,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -11926,8 +12117,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -11942,19 +12131,55 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) poeMode := []string{"Inner_example"} // []string | (optional) - poeModeN := []string{"Inner_example"} // []string | (optional) + poeModeEmpty := true // bool | (optional) + poeModeIc := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeIe := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeIew := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeIsw := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeN := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNic := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNie := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNiew := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNisw := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) poeType := []string{"Inner_example"} // []string | (optional) - poeTypeN := []string{"Inner_example"} // []string | (optional) + poeTypeEmpty := true // bool | (optional) + poeTypeIc := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeIe := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeIew := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeIsw := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeN := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNic := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNie := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNiew := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNisw := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) q := "q_example" // string | Search (optional) rfRole := []string{"Inner_example"} // []string | (optional) - rfRoleN := []string{"Inner_example"} // []string | (optional) + rfRoleEmpty := true // bool | (optional) + rfRoleIc := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleIe := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleIew := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleIsw := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleN := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNic := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNie := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNiew := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNisw := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeIe := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeIew := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeIsw := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeN := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNic := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNie := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNiew := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNisw := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).RfRole(rfRole).RfRoleN(rfRoleN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfaceTemplatesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MgmtOnly(mgmtOnly).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PoeMode(poeMode).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).Q(q).RfRole(rfRole).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfaceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11998,8 +12223,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12031,8 +12254,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -12047,14 +12268,50 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **poeMode** | **[]string** | | - **poeModeN** | **[]string** | | + **poeModeEmpty** | **bool** | | + **poeModeIc** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeIe** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeIew** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeIsw** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeN** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNic** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNie** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNiew** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNisw** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | **poeType** | **[]string** | | - **poeTypeN** | **[]string** | | + **poeTypeEmpty** | **bool** | | + **poeTypeIc** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeIe** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeIew** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeIsw** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeN** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNic** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNie** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNiew** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNisw** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | **q** | **string** | Search | **rfRole** | **[]string** | | - **rfRoleN** | **[]string** | | + **rfRoleEmpty** | **bool** | | + **rfRoleIc** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleIe** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleIew** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleIsw** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleN** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNic** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNie** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNiew** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNisw** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeIe** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeIew** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeIsw** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeN** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNic** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNie** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNiew** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNisw** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | **updatedByRequest** | **string** | | ### Return type @@ -12310,7 +12567,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12374,7 +12631,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12440,7 +12697,7 @@ import ( ) func main() { - interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | + interfaceRequest := []openapiclient.InterfaceRequest{*openapiclient.NewInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))} // []InterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12506,7 +12763,7 @@ import ( ) func main() { - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -12621,7 +12878,7 @@ Name | Type | Description | Notes ## DcimInterfacesList -> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() +> PaginatedInterfaceList DcimInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexEmpty(duplexEmpty).DuplexIc(duplexIc).DuplexIe(duplexIe).DuplexIew(duplexIew).DuplexIsw(duplexIsw).DuplexN(duplexN).DuplexNic(duplexNic).DuplexNie(duplexNie).DuplexNiew(duplexNiew).DuplexNisw(duplexNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelEmpty(rfChannelEmpty).RfChannelIc(rfChannelIc).RfChannelIe(rfChannelIe).RfChannelIew(rfChannelIew).RfChannelIsw(rfChannelIsw).RfChannelN(rfChannelN).RfChannelNic(rfChannelNic).RfChannelNie(rfChannelNie).RfChannelNiew(rfChannelNiew).RfChannelNisw(rfChannelNisw).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() @@ -12644,7 +12901,6 @@ func main() { bridgeId := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional) bridgeIdN := []int32{int32(123)} // []int32 | Bridged interface (ID) (optional) cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -12672,12 +12928,36 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) duplex := []*string{"Inner_example"} // []*string | (optional) - duplexN := []*string{"Inner_example"} // []*string | (optional) + duplexEmpty := true // bool | (optional) + duplexIc := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexIe := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexIew := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexIsw := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexN := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexNic := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexNie := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexNiew := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) + duplexNisw := []openapiclient.DcimInterfacesListDuplexIcParameterInner{openapiclient.dcim_interfaces_list_duplex__ic_parameter_inner("")} // []DcimInterfacesListDuplexIcParameterInner | * `half` - Half * `full` - Full * `auto` - Auto (optional) enabled := true // bool | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) @@ -12729,7 +13009,6 @@ func main() { markConnected := true // bool | (optional) mgmtOnly := true // bool | (optional) mode := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) - modeN := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) @@ -12757,20 +13036,47 @@ func main() { parentId := []int32{int32(123)} // []int32 | Parent interface (ID) (optional) parentIdN := []int32{int32(123)} // []int32 | Parent interface (ID) (optional) poeMode := []string{"Inner_example"} // []string | (optional) - poeModeN := []string{"Inner_example"} // []string | (optional) + poeModeEmpty := true // bool | (optional) + poeModeIc := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeIe := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeIew := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeIsw := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeN := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNic := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNie := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNiew := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) + poeModeNisw := []openapiclient.DcimInterfaceTemplatesListPoeModeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_mode__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeModeIcParameterInner | * `pd` - PD * `pse` - PSE (optional) poeType := []string{"Inner_example"} // []string | (optional) - poeTypeN := []string{"Inner_example"} // []string | (optional) + poeTypeEmpty := true // bool | (optional) + poeTypeIc := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeIe := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeIew := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeIsw := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeN := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNic := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNie := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNiew := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) + poeTypeNisw := []openapiclient.DcimInterfaceTemplatesListPoeTypeIcParameterInner{openapiclient.dcim_interface_templates_list_poe_type__ic_parameter_inner("")} // []DcimInterfaceTemplatesListPoeTypeIcParameterInner | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) (optional) q := "q_example" // string | Search (optional) rack := []string{"Inner_example"} // []string | Rack (name) (optional) rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) rfChannel := []string{"Inner_example"} // []string | (optional) - rfChannelN := []string{"Inner_example"} // []string | (optional) + rfChannelEmpty := true // bool | (optional) + rfChannelIc := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelIe := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelIew := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelIsw := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelN := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelNic := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelNie := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelNiew := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) + rfChannelNisw := []openapiclient.WirelessChannel{openapiclient.Wireless_channel("")} // []WirelessChannel | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) (optional) rfChannelFrequency := []float64{float64(123)} // []float64 | (optional) rfChannelFrequencyEmpty := true // bool | (optional) rfChannelFrequencyGt := []float64{float64(123)} // []float64 | (optional) @@ -12786,17 +13092,22 @@ func main() { rfChannelWidthLte := []float64{float64(123)} // []float64 | (optional) rfChannelWidthN := []float64{float64(123)} // []float64 | (optional) rfRole := []string{"Inner_example"} // []string | (optional) - rfRoleN := []string{"Inner_example"} // []string | (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + rfRoleEmpty := true // bool | (optional) + rfRoleIc := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleIe := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleIew := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleIsw := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleN := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNic := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNie := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNiew := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) + rfRoleNisw := []openapiclient.WirelessRole{openapiclient.Wireless_role("")} // []WirelessRole | * `ap` - Access point * `station` - Station (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) speed := []int32{int32(123)} // []int32 | (optional) @@ -12816,7 +13127,16 @@ func main() { txPowerLte := []int32{int32(123)} // []int32 | (optional) txPowerN := []int32{int32(123)} // []int32 | (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeIe := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeIew := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeIsw := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeN := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNic := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNie := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNiew := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) + typeNisw := []openapiclient.DcimInterfaceTemplatesListTypeIcParameterInner{openapiclient.dcim_interface_templates_list_type__ic_parameter_inner("1000base-kx")} // []DcimInterfaceTemplatesListTypeIcParameterInner | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) vdc := []string{"Inner_example"} // []string | Virtual Device Context (optional) vdcN := []string{"Inner_example"} // []string | Virtual Device Context (optional) @@ -12853,7 +13173,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexN(duplexN).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeN(poeModeN).PoeType(poeType).PoeTypeN(poeTypeN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelN(rfChannelN).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleN(rfRoleN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() + resp, r, err := apiClient.DcimAPI.DcimInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Duplex(duplex).DuplexEmpty(duplexEmpty).DuplexIc(duplexIc).DuplexIe(duplexIe).DuplexIew(duplexIew).DuplexIsw(duplexIsw).DuplexN(duplexN).DuplexNic(duplexNic).DuplexNie(duplexNie).DuplexNiew(duplexNiew).DuplexNisw(duplexNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LagId(lagId).LagIdN(lagIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).MarkConnected(markConnected).MgmtOnly(mgmtOnly).Mode(mode).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PoeMode(poeMode).PoeModeEmpty(poeModeEmpty).PoeModeIc(poeModeIc).PoeModeIe(poeModeIe).PoeModeIew(poeModeIew).PoeModeIsw(poeModeIsw).PoeModeN(poeModeN).PoeModeNic(poeModeNic).PoeModeNie(poeModeNie).PoeModeNiew(poeModeNiew).PoeModeNisw(poeModeNisw).PoeType(poeType).PoeTypeEmpty(poeTypeEmpty).PoeTypeIc(poeTypeIc).PoeTypeIe(poeTypeIe).PoeTypeIew(poeTypeIew).PoeTypeIsw(poeTypeIsw).PoeTypeN(poeTypeN).PoeTypeNic(poeTypeNic).PoeTypeNie(poeTypeNie).PoeTypeNiew(poeTypeNiew).PoeTypeNisw(poeTypeNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).RfChannel(rfChannel).RfChannelEmpty(rfChannelEmpty).RfChannelIc(rfChannelIc).RfChannelIe(rfChannelIe).RfChannelIew(rfChannelIew).RfChannelIsw(rfChannelIsw).RfChannelN(rfChannelN).RfChannelNic(rfChannelNic).RfChannelNie(rfChannelNie).RfChannelNiew(rfChannelNiew).RfChannelNisw(rfChannelNisw).RfChannelFrequency(rfChannelFrequency).RfChannelFrequencyEmpty(rfChannelFrequencyEmpty).RfChannelFrequencyGt(rfChannelFrequencyGt).RfChannelFrequencyGte(rfChannelFrequencyGte).RfChannelFrequencyLt(rfChannelFrequencyLt).RfChannelFrequencyLte(rfChannelFrequencyLte).RfChannelFrequencyN(rfChannelFrequencyN).RfChannelWidth(rfChannelWidth).RfChannelWidthEmpty(rfChannelWidthEmpty).RfChannelWidthGt(rfChannelWidthGt).RfChannelWidthGte(rfChannelWidthGte).RfChannelWidthLt(rfChannelWidthLt).RfChannelWidthLte(rfChannelWidthLte).RfChannelWidthN(rfChannelWidthN).RfRole(rfRole).RfRoleEmpty(rfRoleEmpty).RfRoleIc(rfRoleIc).RfRoleIe(rfRoleIe).RfRoleIew(rfRoleIew).RfRoleIsw(rfRoleIsw).RfRoleN(rfRoleN).RfRoleNic(rfRoleNic).RfRoleNie(rfRoleNie).RfRoleNiew(rfRoleNiew).RfRoleNisw(rfRoleNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Speed(speed).SpeedEmpty(speedEmpty).SpeedGt(speedGt).SpeedGte(speedGte).SpeedLt(speedLt).SpeedLte(speedLte).SpeedN(speedN).Tag(tag).TagN(tagN).TxPower(txPower).TxPowerEmpty(txPowerEmpty).TxPowerGt(txPowerGt).TxPowerGte(txPowerGte).TxPowerLt(txPowerLt).TxPowerLte(txPowerLte).TxPowerN(txPowerN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Vdc(vdc).VdcN(vdcN).VdcId(vdcId).VdcIdN(vdcIdN).VdcIdentifier(vdcIdentifier).VdcIdentifierN(vdcIdentifierN).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).VirtualChassisMember(virtualChassisMember).VirtualChassisMemberId(virtualChassisMemberId).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).WirelessLanId(wirelessLanId).WirelessLanIdN(wirelessLanIdN).WirelessLinkId(wirelessLinkId).WirelessLinkIdN(wirelessLinkIdN).Wwn(wwn).WwnIc(wwnIc).WwnIe(wwnIe).WwnIew(wwnIew).WwnIsw(wwnIsw).WwnN(wwnN).WwnNic(wwnNic).WwnNie(wwnNie).WwnNiew(wwnNiew).WwnNisw(wwnNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -12877,7 +13197,6 @@ Name | Type | Description | Notes **bridgeId** | **[]int32** | Bridged interface (ID) | **bridgeIdN** | **[]int32** | Bridged interface (ID) | **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -12905,12 +13224,36 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **duplex** | **[]string** | | - **duplexN** | **[]string** | | + **duplexEmpty** | **bool** | | + **duplexIc** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexIe** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexIew** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexIsw** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexN** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexNic** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexNie** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexNiew** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | + **duplexNisw** | [**[]DcimInterfacesListDuplexIcParameterInner**](DcimInterfacesListDuplexIcParameterInner.md) | * `half` - Half * `full` - Full * `auto` - Auto | **enabled** | **bool** | | **id** | **[]int32** | | **idEmpty** | **bool** | | @@ -12962,7 +13305,6 @@ Name | Type | Description | Notes **markConnected** | **bool** | | **mgmtOnly** | **bool** | | **mode** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | - **modeN** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | **modifiedByRequest** | **string** | | **moduleId** | **[]int32** | Module (ID) | **moduleIdN** | **[]int32** | Module (ID) | @@ -12990,20 +13332,47 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent interface (ID) | **parentIdN** | **[]int32** | Parent interface (ID) | **poeMode** | **[]string** | | - **poeModeN** | **[]string** | | + **poeModeEmpty** | **bool** | | + **poeModeIc** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeIe** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeIew** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeIsw** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeN** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNic** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNie** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNiew** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | + **poeModeNisw** | [**[]DcimInterfaceTemplatesListPoeModeIcParameterInner**](DcimInterfaceTemplatesListPoeModeIcParameterInner.md) | * `pd` - PD * `pse` - PSE | **poeType** | **[]string** | | - **poeTypeN** | **[]string** | | + **poeTypeEmpty** | **bool** | | + **poeTypeIc** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeIe** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeIew** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeIsw** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeN** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNic** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNie** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNiew** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | + **poeTypeNisw** | [**[]DcimInterfaceTemplatesListPoeTypeIcParameterInner**](DcimInterfaceTemplatesListPoeTypeIcParameterInner.md) | * `type1-ieee802.3af` - 802.3af (Type 1) * `type2-ieee802.3at` - 802.3at (Type 2) * `type3-ieee802.3bt` - 802.3bt (Type 3) * `type4-ieee802.3bt` - 802.3bt (Type 4) * `passive-24v-2pair` - Passive 24V (2-pair) * `passive-24v-4pair` - Passive 24V (4-pair) * `passive-48v-2pair` - Passive 48V (2-pair) * `passive-48v-4pair` - Passive 48V (4-pair) | **q** | **string** | Search | **rack** | **[]string** | Rack (name) | **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **rfChannel** | **[]string** | | - **rfChannelN** | **[]string** | | + **rfChannelEmpty** | **bool** | | + **rfChannelIc** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelIe** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelIew** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelIsw** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelN** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelNic** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelNie** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelNiew** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | + **rfChannelNisw** | [**[]WirelessChannel**](WirelessChannel.md) | * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) | **rfChannelFrequency** | **[]float64** | | **rfChannelFrequencyEmpty** | **bool** | | **rfChannelFrequencyGt** | **[]float64** | | @@ -13019,17 +13388,22 @@ Name | Type | Description | Notes **rfChannelWidthLte** | **[]float64** | | **rfChannelWidthN** | **[]float64** | | **rfRole** | **[]string** | | - **rfRoleN** | **[]string** | | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **rfRoleEmpty** | **bool** | | + **rfRoleIc** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleIe** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleIew** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleIsw** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleN** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNic** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNie** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNiew** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | + **rfRoleNisw** | [**[]WirelessRole**](WirelessRole.md) | * `ap` - Access point * `station` - Station | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **speed** | **[]int32** | | @@ -13049,7 +13423,16 @@ Name | Type | Description | Notes **txPowerLte** | **[]int32** | | **txPowerN** | **[]int32** | | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeIe** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeIew** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeIsw** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeN** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNic** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNie** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNiew** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | + **typeNisw** | [**[]DcimInterfaceTemplatesListTypeIcParameterInner**](DcimInterfaceTemplatesListTypeIcParameterInner.md) | * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other | **updatedByRequest** | **string** | | **vdc** | **[]string** | Virtual Device Context | **vdcN** | **[]string** | Virtual Device Context | @@ -13336,7 +13719,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | + writableInterfaceRequest := *openapiclient.NewWritableInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")) // WritableInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14164,7 +14547,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14228,7 +14611,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14294,7 +14677,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | + inventoryItemTemplateRequest := []openapiclient.InventoryItemTemplateRequest{*openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14360,7 +14743,7 @@ import ( ) func main() { - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14475,7 +14858,7 @@ Name | Type | Description | Notes ## DcimInventoryItemTemplatesList -> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedInventoryItemTemplateList DcimInventoryItemTemplatesList(ctx).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -14525,8 +14908,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -14593,7 +14974,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemTemplatesList(context.Background()).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -14644,8 +15025,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -14892,7 +15271,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item template. - inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | + inventoryItemTemplateRequest := *openapiclient.NewInventoryItemTemplateRequest(*openapiclient.NewBriefDeviceTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // InventoryItemTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -14963,7 +15342,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15027,7 +15406,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15093,7 +15472,7 @@ import ( ) func main() { - inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []InventoryItemRequest | + inventoryItemRequest := []openapiclient.InventoryItemRequest{*openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15159,7 +15538,7 @@ import ( ) func main() { - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15274,7 +15653,7 @@ Name | Type | Description | Notes ## DcimInventoryItemsList -> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedInventoryItemList DcimInventoryItemsList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -15337,6 +15716,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -15408,10 +15802,10 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) @@ -15429,10 +15823,10 @@ func main() { serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -15445,7 +15839,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimInventoryItemsList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).ComponentId(componentId).ComponentIdEmpty(componentIdEmpty).ComponentIdGt(componentIdGt).ComponentIdGte(componentIdGte).ComponentIdLt(componentIdLt).ComponentIdLte(componentIdLte).ComponentIdN(componentIdN).ComponentType(componentType).ComponentTypeN(componentTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Discovered(discovered).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).PartId(partId).PartIdEmpty(partIdEmpty).PartIdIc(partIdIc).PartIdIe(partIdIe).PartIdIew(partIdIew).PartIdIsw(partIdIsw).PartIdN(partIdN).PartIdNic(partIdNic).PartIdNie(partIdNie).PartIdNiew(partIdNiew).PartIdNisw(partIdNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimInventoryItemsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -15509,6 +15903,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -15580,10 +15989,10 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -15601,10 +16010,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -15797,7 +16206,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this inventory item. - inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewDeviceRequest(), "Name_example") // InventoryItemRequest | + inventoryItemRequest := *openapiclient.NewInventoryItemRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // InventoryItemRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15868,7 +16277,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15932,7 +16341,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -15998,7 +16407,7 @@ import ( ) func main() { - locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example")} // []LocationRequest | + locationRequest := []openapiclient.LocationRequest{*openapiclient.NewLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []LocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16064,7 +16473,7 @@ import ( ) func main() { - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -16179,7 +16588,7 @@ Name | Type | Description | Notes ## DcimLocationsList -> PaginatedLocationList DcimLocationsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedLocationList DcimLocationsList(ctx).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -16199,14 +16608,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Location (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Location (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -16273,16 +16682,16 @@ func main() { parentId := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) parentIdN := []*int32{int32(123)} // []*int32 | Parent location (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) slug := []string{"Inner_example"} // []string | (optional) @@ -16297,22 +16706,31 @@ func main() { slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusIe := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusIew := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusIsw := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusN := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNic := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNie := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNiew := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNisw := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimLocationsList(context.Background()).Ancestor(ancestor).AncestorN(ancestorN).AncestorId(ancestorId).AncestorIdN(ancestorIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Parent(parent).ParentN(parentN).ParentId(parentId).ParentIdN(parentIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimLocationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -16333,14 +16751,14 @@ Other parameters are passed through a pointer to a apiDcimLocationsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Location (slug) | - **ancestorN** | **[]int32** | Location (slug) | - **ancestorId** | **[]int32** | Location (ID) | - **ancestorIdN** | **[]int32** | Location (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -16407,16 +16825,16 @@ Name | Type | Description | Notes **parentId** | **[]int32** | Parent location (ID) | **parentIdN** | **[]int32** | Parent location (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **slug** | **[]string** | | @@ -16431,15 +16849,24 @@ Name | Type | Description | Notes **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusIe** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusIew** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusIsw** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusN** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNic** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNie** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNiew** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNisw** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -16626,7 +17053,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this location. - writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | + writableLocationRequest := *openapiclient.NewWritableLocationRequest("Name_example", "Slug_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), NullableInt32(123)) // WritableLocationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17030,8 +17457,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -17123,8 +17550,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -17444,7 +17871,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17508,7 +17935,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17574,7 +18001,7 @@ import ( ) func main() { - moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example")} // []ModuleBayTemplateRequest | + moduleBayTemplateRequest := []openapiclient.ModuleBayTemplateRequest{*openapiclient.NewModuleBayTemplateRequest("Name_example")} // []ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17640,7 +18067,7 @@ import ( ) func main() { - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -17755,7 +18182,7 @@ Name | Type | Description | Notes ## DcimModuleBayTemplatesList -> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleBayTemplateList DcimModuleBayTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -17794,10 +18221,8 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) - devicetypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) + deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) + deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -17825,6 +18250,8 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) + moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -17854,7 +18281,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBayTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBayTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -17896,8 +18323,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -17925,6 +18350,8 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **modifiedByRequest** | **string** | | + **moduleTypeId** | **[]int32** | Module type (ID) | + **moduleTypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18134,7 +18561,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay template. - moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest(*openapiclient.NewDeviceTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example"), "Name_example") // ModuleBayTemplateRequest | + moduleBayTemplateRequest := *openapiclient.NewModuleBayTemplateRequest("Name_example") // ModuleBayTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18205,7 +18632,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18269,7 +18696,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18335,7 +18762,7 @@ import ( ) func main() { - moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []ModuleBayRequest | + moduleBayRequest := []openapiclient.ModuleBayRequest{*openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18401,7 +18828,7 @@ import ( ) func main() { - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -18516,7 +18943,7 @@ Name | Type | Description | Notes ## DcimModuleBaysList -> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedModuleBayList DcimModuleBaysList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -18559,6 +18986,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -18596,6 +19038,8 @@ func main() { locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + moduleId := []*int32{int32(123)} // []*int32 | Module (ID) (optional) + moduleIdN := []*int32{int32(123)} // []*int32 | Module (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -18609,6 +19053,8 @@ func main() { nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + parentId := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) + parentIdN := []*int32{int32(123)} // []*int32 | Parent module bay (ID) (optional) position := []string{"Inner_example"} // []string | (optional) positionEmpty := true // bool | (optional) positionIc := []string{"Inner_example"} // []string | (optional) @@ -18625,20 +19071,16 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -18651,7 +19093,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleBaysList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InstalledModuleId(installedModuleId).InstalledModuleIdN(installedModuleIdN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Position(position).PositionEmpty(positionEmpty).PositionIc(positionIc).PositionIe(positionIe).PositionIew(positionIew).PositionIsw(positionIsw).PositionN(positionN).PositionNic(positionNic).PositionNie(positionNie).PositionNiew(positionNiew).PositionNisw(positionNisw).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleBaysList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -18695,6 +19137,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -18732,6 +19189,8 @@ Name | Type | Description | Notes **locationId** | **[]int32** | Location (ID) | **locationIdN** | **[]int32** | Location (ID) | **modifiedByRequest** | **string** | | + **moduleId** | **[]int32** | Module (ID) | + **moduleIdN** | **[]int32** | Module (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -18745,6 +19204,8 @@ Name | Type | Description | Notes **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | + **parentId** | **[]int32** | Parent module bay (ID) | + **parentIdN** | **[]int32** | Parent module bay (ID) | **position** | **[]string** | | **positionEmpty** | **bool** | | **positionIc** | **[]string** | | @@ -18761,20 +19222,16 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -18967,7 +19424,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module bay. - moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewDeviceRequest(), "Name_example") // ModuleBayRequest | + moduleBayRequest := *openapiclient.NewModuleBayRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // ModuleBayRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19038,7 +19495,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19102,7 +19559,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19168,7 +19625,7 @@ import ( ) func main() { - moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | + moduleTypeRequest := []openapiclient.ModuleTypeRequest{*openapiclient.NewModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")} // []ModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19234,7 +19691,7 @@ import ( ) func main() { - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19349,7 +19806,7 @@ Name | Type | Description | Notes ## DcimModuleTypesList -> PaginatedModuleTypeList DcimModuleTypesList(ctx).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() +> PaginatedModuleTypeList DcimModuleTypesList(ctx).Airflow(airflow).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Execute() @@ -19369,6 +19826,7 @@ import ( ) func main() { + airflow := openapiclient.dcim_module_types_list_airflow_parameter("front-to-rear") // DcimModuleTypesListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive (optional) consolePorts := true // bool | Has console ports (optional) consoleServerPorts := true // bool | Has console server ports (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -19450,11 +19908,10 @@ func main() { weightLte := []float64{float64(123)} // []float64 | (optional) weightN := []float64{float64(123)} // []float64 | (optional) weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Execute() + resp, r, err := apiClient.DcimAPI.DcimModuleTypesList(context.Background()).Airflow(airflow).ConsolePorts(consolePorts).ConsoleServerPorts(consoleServerPorts).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interfaces(interfaces).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).PartNumber(partNumber).PartNumberEmpty(partNumberEmpty).PartNumberIc(partNumberIc).PartNumberIe(partNumberIe).PartNumberIew(partNumberIew).PartNumberIsw(partNumberIsw).PartNumberN(partNumberN).PartNumberNic(partNumberNic).PartNumberNie(partNumberNie).PartNumberNiew(partNumberNiew).PartNumberNisw(partNumberNisw).PassThroughPorts(passThroughPorts).PowerOutlets(powerOutlets).PowerPorts(powerPorts).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModuleTypesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -19475,6 +19932,7 @@ Other parameters are passed through a pointer to a apiDcimModuleTypesListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimModuleTypesListAirflowParameter**](DcimModuleTypesListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front * `left-to-right` - Left to right * `right-to-left` - Right to left * `side-to-rear` - Side to rear * `passive` - Passive | **consolePorts** | **bool** | Has console ports | **consoleServerPorts** | **bool** | Has console server ports | **created** | [**[]time.Time**](time.Time.md) | | @@ -19556,7 +20014,6 @@ Name | Type | Description | Notes **weightLte** | **[]float64** | | **weightN** | **[]float64** | | **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | ### Return type @@ -19740,7 +20197,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module type. - writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | + writableModuleTypeRequest := *openapiclient.NewWritableModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example") // WritableModuleTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19811,7 +20268,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19875,7 +20332,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -19941,7 +20398,7 @@ import ( ) func main() { - moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"))} // []ModuleRequest | + moduleRequest := []openapiclient.ModuleRequest{*openapiclient.NewModuleRequest(*openapiclient.NewBriefDeviceRequest(), *openapiclient.NewNestedModuleBayRequest("Name_example"), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example"))} // []ModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20007,7 +20464,7 @@ import ( ) func main() { - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -20122,7 +20579,7 @@ Name | Type | Description | Notes ## DcimModulesList -> PaginatedModuleList DcimModulesList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedModuleList DcimModulesList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -20194,8 +20651,8 @@ func main() { manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - moduleBayId := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) - moduleBayIdN := []int32{int32(123)} // []int32 | Module Bay (ID) (optional) + moduleBayId := []string{"Inner_example"} // []string | (optional) + moduleBayIdN := []string{"Inner_example"} // []string | (optional) moduleType := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeN := []string{"Inner_example"} // []string | Module type (model) (optional) moduleTypeId := []int32{int32(123)} // []int32 | Module type (ID) (optional) @@ -20215,14 +20672,23 @@ func main() { serialNiew := []string{"Inner_example"} // []string | (optional) serialNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusIe := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusIew := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusIsw := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusN := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNic := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNie := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNiew := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNisw := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimModulesList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimModulesList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).ModifiedByRequest(modifiedByRequest).ModuleBayId(moduleBayId).ModuleBayIdN(moduleBayIdN).ModuleType(moduleType).ModuleTypeN(moduleTypeN).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Offset(offset).Ordering(ordering).Q(q).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimModulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -20295,8 +20761,8 @@ Name | Type | Description | Notes **manufacturerId** | **[]int32** | Manufacturer (ID) | **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **modifiedByRequest** | **string** | | - **moduleBayId** | **[]int32** | Module Bay (ID) | - **moduleBayIdN** | **[]int32** | Module Bay (ID) | + **moduleBayId** | **[]string** | | + **moduleBayIdN** | **[]string** | | **moduleType** | **[]string** | Module type (model) | **moduleTypeN** | **[]string** | Module type (model) | **moduleTypeId** | **[]int32** | Module type (ID) | @@ -20316,7 +20782,16 @@ Name | Type | Description | Notes **serialNiew** | **[]string** | | **serialNisw** | **[]string** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusIe** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusIew** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusIsw** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusN** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNic** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNie** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNiew** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNisw** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | @@ -20503,7 +20978,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this module. - writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewDeviceRequest(), int32(123), *openapiclient.NewModuleTypeRequest(*openapiclient.NewManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | + writableModuleRequest := *openapiclient.NewWritableModuleRequest(*openapiclient.NewBriefDeviceRequest(), int32(123), *openapiclient.NewBriefModuleTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example")) // WritableModuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21323,7 +21798,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21387,7 +21862,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21453,7 +21928,7 @@ import ( ) func main() { - powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | + powerFeedRequest := []openapiclient.PowerFeedRequest{*openapiclient.NewPowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example")} // []PowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21519,7 +21994,7 @@ import ( ) func main() { - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -21634,7 +22109,7 @@ Name | Type | Description | Notes ## DcimPowerFeedsList -> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() +> PaginatedPowerFeedList DcimPowerFeedsList(ctx).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Supply(supply).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() @@ -21669,7 +22144,6 @@ func main() { availablePowerLte := []int32{int32(123)} // []int32 | (optional) availablePowerN := []int32{int32(123)} // []int32 | (optional) cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -21732,40 +22206,46 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) phase := openapiclient.dcim_power_feeds_list_phase_parameter("single-phase") // DcimPowerFeedsListPhaseParameter | * `single-phase` - Single phase * `three-phase` - Three-phase (optional) - phaseN := openapiclient.dcim_power_feeds_list_phase_parameter("single-phase") // DcimPowerFeedsListPhaseParameter | * `single-phase` - Single phase * `three-phase` - Three-phase (optional) powerPanelId := []int32{int32(123)} // []int32 | Power panel (ID) (optional) powerPanelIdN := []int32{int32(123)} // []int32 | Power panel (ID) (optional) q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusIe := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusIew := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusIsw := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusN := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusNic := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusNie := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusNiew := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) + statusNisw := []openapiclient.DcimPowerFeedsListStatusIcParameterInner{openapiclient.dcim_power_feeds_list_status__ic_parameter_inner("active")} // []DcimPowerFeedsListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed (optional) supply := openapiclient.dcim_power_feeds_list_supply_parameter("ac") // DcimPowerFeedsListSupplyParameter | * `ac` - AC * `dc` - DC (optional) - supplyN := openapiclient.dcim_power_feeds_list_supply_parameter("ac") // DcimPowerFeedsListSupplyParameter | * `ac` - AC * `dc` - DC (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) - typeN := openapiclient.dcim_power_feeds_list_type_parameter("primary") // DcimPowerFeedsListTypeParameter | * `primary` - Primary * `redundant` - Redundant (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) voltage := []int32{int32(123)} // []int32 | (optional) voltageEmpty := true // bool | (optional) @@ -21777,7 +22257,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PhaseN(phaseN).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Supply(supply).SupplyN(supplyN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerFeedsList(context.Background()).Amperage(amperage).AmperageEmpty(amperageEmpty).AmperageGt(amperageGt).AmperageGte(amperageGte).AmperageLt(amperageLt).AmperageLte(amperageLte).AmperageN(amperageN).AvailablePower(availablePower).AvailablePowerEmpty(availablePowerEmpty).AvailablePowerGt(availablePowerGt).AvailablePowerGte(availablePowerGte).AvailablePowerLt(availablePowerLt).AvailablePowerLte(availablePowerLte).AvailablePowerN(availablePowerN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkConnected(markConnected).MaxUtilization(maxUtilization).MaxUtilizationEmpty(maxUtilizationEmpty).MaxUtilizationGt(maxUtilizationGt).MaxUtilizationGte(maxUtilizationGte).MaxUtilizationLt(maxUtilizationLt).MaxUtilizationLte(maxUtilizationLte).MaxUtilizationN(maxUtilizationN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Phase(phase).PowerPanelId(powerPanelId).PowerPanelIdN(powerPanelIdN).Q(q).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Supply(supply).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).UpdatedByRequest(updatedByRequest).Voltage(voltage).VoltageEmpty(voltageEmpty).VoltageGt(voltageGt).VoltageGte(voltageGte).VoltageLt(voltageLt).VoltageLte(voltageLte).VoltageN(voltageN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerFeedsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -21813,7 +22293,6 @@ Name | Type | Description | Notes **availablePowerLte** | **[]int32** | | **availablePowerN** | **[]int32** | | **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -21876,40 +22355,46 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **phase** | [**DcimPowerFeedsListPhaseParameter**](DcimPowerFeedsListPhaseParameter.md) | * `single-phase` - Single phase * `three-phase` - Three-phase | - **phaseN** | [**DcimPowerFeedsListPhaseParameter**](DcimPowerFeedsListPhaseParameter.md) | * `single-phase` - Single phase * `three-phase` - Three-phase | **powerPanelId** | **[]int32** | Power panel (ID) | **powerPanelIdN** | **[]int32** | Power panel (ID) | **q** | **string** | Search | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusIe** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusIew** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusIsw** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusN** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusNic** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusNie** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusNiew** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | + **statusNisw** | [**[]DcimPowerFeedsListStatusIcParameterInner**](DcimPowerFeedsListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `failed` - Failed | **supply** | [**DcimPowerFeedsListSupplyParameter**](DcimPowerFeedsListSupplyParameter.md) | * `ac` - AC * `dc` - DC | - **supplyN** | [**DcimPowerFeedsListSupplyParameter**](DcimPowerFeedsListSupplyParameter.md) | * `ac` - AC * `dc` - DC | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | - **typeN** | [**DcimPowerFeedsListTypeParameter**](DcimPowerFeedsListTypeParameter.md) | * `primary` - Primary * `redundant` - Redundant | **updatedByRequest** | **string** | | **voltage** | **[]int32** | | **voltageEmpty** | **bool** | | @@ -22171,7 +22656,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power feed. - writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | + writablePowerFeedRequest := *openapiclient.NewWritablePowerFeedRequest(*openapiclient.NewBriefPowerPanelRequest("Name_example"), "Name_example") // WritablePowerFeedRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -22553,7 +23038,7 @@ Name | Type | Description | Notes ## DcimPowerOutletTemplatesList -> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerOutletTemplateList DcimPowerOutletTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() @@ -22594,10 +23079,17 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) - feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) + feedLegEmpty := true // bool | (optional) + feedLegIc := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegIe := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegIew := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegIsw := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegN := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNic := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNie := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNiew := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNisw := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -22627,8 +23119,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -22645,13 +23135,12 @@ func main() { powerPortId := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) powerPortIdN := []*int32{int32(123)} // []*int32 | Power port (ID) (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_outlet_templates_list_type_parameter("California Style") // DcimPowerOutletTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('eaton-c39', 'Eaton C39'), ('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -22693,10 +23182,17 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **feedLeg** | **[]string** | Phase (for three-phase feeds) | - **feedLegN** | **[]string** | Phase (for three-phase feeds) | + **feedLegEmpty** | **bool** | | + **feedLegIc** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegIe** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegIew** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegIsw** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegN** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNic** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNie** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNiew** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNisw** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -22726,8 +23222,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -22744,8 +23238,7 @@ Name | Type | Description | Notes **powerPortId** | **[]int32** | Power port (ID) | **powerPortIdN** | **[]int32** | Power port (ID) | **q** | **string** | Search | - **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerOutletTemplatesListTypeParameter**](DcimPowerOutletTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c5', 'C5'), ('iec-60320-c7', 'C7'), ('iec-60320-c13', 'C13'), ('iec-60320-c15', 'C15'), ('iec-60320-c19', 'C19'), ('iec-60320-c21', 'C21')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15r', 'NEMA 1-15R'), ('nema-5-15r', 'NEMA 5-15R'), ('nema-5-20r', 'NEMA 5-20R'), ('nema-5-30r', 'NEMA 5-30R'), ('nema-5-50r', 'NEMA 5-50R'), ('nema-6-15r', 'NEMA 6-15R'), ('nema-6-20r', 'NEMA 6-20R'), ('nema-6-30r', 'NEMA 6-30R'), ('nema-6-50r', 'NEMA 6-50R'), ('nema-10-30r', 'NEMA 10-30R'), ('nema-10-50r', 'NEMA 10-50R'), ('nema-14-20r', 'NEMA 14-20R'), ('nema-14-30r', 'NEMA 14-30R'), ('nema-14-50r', 'NEMA 14-50R'), ('nema-14-60r', 'NEMA 14-60R'), ('nema-15-15r', 'NEMA 15-15R'), ('nema-15-20r', 'NEMA 15-20R'), ('nema-15-30r', 'NEMA 15-30R'), ('nema-15-50r', 'NEMA 15-50R'), ('nema-15-60r', 'NEMA 15-60R')] * `NEMA (Locking)` - [('nema-l1-15r', 'NEMA L1-15R'), ('nema-l5-15r', 'NEMA L5-15R'), ('nema-l5-20r', 'NEMA L5-20R'), ('nema-l5-30r', 'NEMA L5-30R'), ('nema-l5-50r', 'NEMA L5-50R'), ('nema-l6-15r', 'NEMA L6-15R'), ('nema-l6-20r', 'NEMA L6-20R'), ('nema-l6-30r', 'NEMA L6-30R'), ('nema-l6-50r', 'NEMA L6-50R'), ('nema-l10-30r', 'NEMA L10-30R'), ('nema-l14-20r', 'NEMA L14-20R'), ('nema-l14-30r', 'NEMA L14-30R'), ('nema-l14-50r', 'NEMA L14-50R'), ('nema-l14-60r', 'NEMA L14-60R'), ('nema-l15-20r', 'NEMA L15-20R'), ('nema-l15-30r', 'NEMA L15-30R'), ('nema-l15-50r', 'NEMA L15-50R'), ('nema-l15-60r', 'NEMA L15-60R'), ('nema-l21-20r', 'NEMA L21-20R'), ('nema-l21-30r', 'NEMA L21-30R'), ('nema-l22-20r', 'NEMA L22-20R'), ('nema-l22-30r', 'NEMA L22-30R')] * `California Style` - [('CS6360C', 'CS6360C'), ('CS6364C', 'CS6364C'), ('CS8164C', 'CS8164C'), ('CS8264C', 'CS8264C'), ('CS8364C', 'CS8364C'), ('CS8464C', 'CS8464C')] * `ITA/International` - [('ita-e', 'ITA Type E (CEE 7/5)'), ('ita-f', 'ITA Type F (CEE 7/3)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O'), ('ita-multistandard', 'ITA Multistandard')] * `USB` - [('usb-a', 'USB Type A'), ('usb-micro-b', 'USB Micro B'), ('usb-c', 'USB Type C')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('eaton-c39', 'Eaton C39'), ('hdot-cx', 'HDOT Cx'), ('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20a', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32a', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -23001,7 +23494,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23065,7 +23558,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23131,7 +23624,7 @@ import ( ) func main() { - powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerOutletRequest | + powerOutletRequest := []openapiclient.PowerOutletRequest{*openapiclient.NewPowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23197,7 +23690,7 @@ import ( ) func main() { - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23312,7 +23805,7 @@ Name | Type | Description | Notes ## DcimPowerOutletsList -> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerOutletList DcimPowerOutletsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -23333,7 +23826,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -23361,12 +23853,36 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) deviceTypeIdN := []int32{int32(123)} // []int32 | Device type (ID) (optional) feedLeg := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) - feedLegN := []string{"Inner_example"} // []string | Phase (for three-phase feeds) (optional) + feedLegEmpty := true // bool | (optional) + feedLegIc := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegIe := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegIew := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegIsw := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegN := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNic := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNie := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNiew := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) + feedLegNisw := []openapiclient.DcimPowerOutletTemplatesListFeedLegIcParameterInner{openapiclient.dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner("")} // []DcimPowerOutletTemplatesListFeedLegIcParameterInner | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -23422,26 +23938,31 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeIe := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeIew := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeIsw := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeN := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNic := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNie := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNiew := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNisw := []openapiclient.DcimPowerOutletsListTypeIcParameterInner{openapiclient.dcim_power_outlets_list_type__ic_parameter_inner("")} // []DcimPowerOutletsListTypeIcParameterInner | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -23450,7 +23971,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegN(feedLegN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerOutletsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).FeedLeg(feedLeg).FeedLegEmpty(feedLegEmpty).FeedLegIc(feedLegIc).FeedLegIe(feedLegIe).FeedLegIew(feedLegIew).FeedLegIsw(feedLegIsw).FeedLegN(feedLegN).FeedLegNic(feedLegNic).FeedLegNie(feedLegNie).FeedLegNiew(feedLegNiew).FeedLegNisw(feedLegNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).PowerPortId(powerPortId).PowerPortIdN(powerPortIdN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerOutletsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -23472,7 +23993,6 @@ Other parameters are passed through a pointer to a apiDcimPowerOutletsListReques Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -23500,12 +24020,36 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | **feedLeg** | **[]string** | Phase (for three-phase feeds) | - **feedLegN** | **[]string** | Phase (for three-phase feeds) | + **feedLegEmpty** | **bool** | | + **feedLegIc** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegIe** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegIew** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegIsw** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegN** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNic** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNie** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNiew** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | + **feedLegNisw** | [**[]DcimPowerOutletTemplatesListFeedLegIcParameterInner**](DcimPowerOutletTemplatesListFeedLegIcParameterInner.md) | Phase (for three-phase feeds) * `A` - A * `B` - B * `C` - C | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -23561,26 +24105,31 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | Physical port type | - **typeN** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeIe** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeIew** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeIsw** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeN** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNic** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNie** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNiew** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNisw** | [**[]DcimPowerOutletsListTypeIcParameterInner**](DcimPowerOutletsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -23839,7 +24388,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power outlet. - writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerOutletRequest | + writablePowerOutletRequest := *openapiclient.NewWritablePowerOutletRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerOutletRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23910,7 +24459,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -23974,7 +24523,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24040,7 +24589,7 @@ import ( ) func main() { - powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest("Name_example")} // []PowerPanelRequest | + powerPanelRequest := []openapiclient.PowerPanelRequest{*openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example")} // []PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24106,7 +24655,7 @@ import ( ) func main() { - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24243,8 +24792,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -24281,8 +24830,8 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -24298,16 +24847,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -24339,8 +24888,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -24377,8 +24926,8 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -24394,16 +24943,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -24592,7 +25141,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power panel. - powerPanelRequest := *openapiclient.NewPowerPanelRequest("Name_example") // PowerPanelRequest | + powerPanelRequest := *openapiclient.NewPowerPanelRequest(*openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"), "Name_example") // PowerPanelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -24974,7 +25523,7 @@ Name | Type | Description | Notes ## DcimPowerPortTemplatesList -> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedPowerPortTemplateList DcimPowerPortTemplatesList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() @@ -25022,8 +25571,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -25060,8 +25607,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -25076,13 +25621,12 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) - typeN := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) + type_ := openapiclient.dcim_power_port_templates_list_type_parameter("California Style") // DcimPowerPortTemplatesListTypeParameter | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortTemplatesList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Type_(type_).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25131,8 +25675,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -25169,8 +25711,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -25185,8 +25725,7 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | - **typeN** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | + **type_** | [**DcimPowerPortTemplatesListTypeParameter**](DcimPowerPortTemplatesListTypeParameter.md) | * `IEC 60320` - [('iec-60320-c6', 'C6'), ('iec-60320-c8', 'C8'), ('iec-60320-c14', 'C14'), ('iec-60320-c16', 'C16'), ('iec-60320-c20', 'C20'), ('iec-60320-c22', 'C22')] * `IEC 60309` - [('iec-60309-p-n-e-4h', 'P+N+E 4H'), ('iec-60309-p-n-e-6h', 'P+N+E 6H'), ('iec-60309-p-n-e-9h', 'P+N+E 9H'), ('iec-60309-2p-e-4h', '2P+E 4H'), ('iec-60309-2p-e-6h', '2P+E 6H'), ('iec-60309-2p-e-9h', '2P+E 9H'), ('iec-60309-3p-e-4h', '3P+E 4H'), ('iec-60309-3p-e-6h', '3P+E 6H'), ('iec-60309-3p-e-9h', '3P+E 9H'), ('iec-60309-3p-n-e-4h', '3P+N+E 4H'), ('iec-60309-3p-n-e-6h', '3P+N+E 6H'), ('iec-60309-3p-n-e-9h', '3P+N+E 9H')] * `IEC 60906-1` - [('iec-60906-1', 'IEC 60906-1'), ('nbr-14136-10a', '2P+T 10A (NBR 14136)'), ('nbr-14136-20a', '2P+T 20A (NBR 14136)')] * `NEMA (Non-locking)` - [('nema-1-15p', 'NEMA 1-15P'), ('nema-5-15p', 'NEMA 5-15P'), ('nema-5-20p', 'NEMA 5-20P'), ('nema-5-30p', 'NEMA 5-30P'), ('nema-5-50p', 'NEMA 5-50P'), ('nema-6-15p', 'NEMA 6-15P'), ('nema-6-20p', 'NEMA 6-20P'), ('nema-6-30p', 'NEMA 6-30P'), ('nema-6-50p', 'NEMA 6-50P'), ('nema-10-30p', 'NEMA 10-30P'), ('nema-10-50p', 'NEMA 10-50P'), ('nema-14-20p', 'NEMA 14-20P'), ('nema-14-30p', 'NEMA 14-30P'), ('nema-14-50p', 'NEMA 14-50P'), ('nema-14-60p', 'NEMA 14-60P'), ('nema-15-15p', 'NEMA 15-15P'), ('nema-15-20p', 'NEMA 15-20P'), ('nema-15-30p', 'NEMA 15-30P'), ('nema-15-50p', 'NEMA 15-50P'), ('nema-15-60p', 'NEMA 15-60P')] * `NEMA (Locking)` - [('nema-l1-15p', 'NEMA L1-15P'), ('nema-l5-15p', 'NEMA L5-15P'), ('nema-l5-20p', 'NEMA L5-20P'), ('nema-l5-30p', 'NEMA L5-30P'), ('nema-l5-50p', 'NEMA L5-50P'), ('nema-l6-15p', 'NEMA L6-15P'), ('nema-l6-20p', 'NEMA L6-20P'), ('nema-l6-30p', 'NEMA L6-30P'), ('nema-l6-50p', 'NEMA L6-50P'), ('nema-l10-30p', 'NEMA L10-30P'), ('nema-l14-20p', 'NEMA L14-20P'), ('nema-l14-30p', 'NEMA L14-30P'), ('nema-l14-50p', 'NEMA L14-50P'), ('nema-l14-60p', 'NEMA L14-60P'), ('nema-l15-20p', 'NEMA L15-20P'), ('nema-l15-30p', 'NEMA L15-30P'), ('nema-l15-50p', 'NEMA L15-50P'), ('nema-l15-60p', 'NEMA L15-60P'), ('nema-l21-20p', 'NEMA L21-20P'), ('nema-l21-30p', 'NEMA L21-30P'), ('nema-l22-20p', 'NEMA L22-20P'), ('nema-l22-30p', 'NEMA L22-30P')] * `California Style` - [('cs6361c', 'CS6361C'), ('cs6365c', 'CS6365C'), ('cs8165c', 'CS8165C'), ('cs8265c', 'CS8265C'), ('cs8365c', 'CS8365C'), ('cs8465c', 'CS8465C')] * `International/ITA` - [('ita-c', 'ITA Type C (CEE 7/16)'), ('ita-e', 'ITA Type E (CEE 7/6)'), ('ita-f', 'ITA Type F (CEE 7/4)'), ('ita-ef', 'ITA Type E/F (CEE 7/7)'), ('ita-g', 'ITA Type G (BS 1363)'), ('ita-h', 'ITA Type H'), ('ita-i', 'ITA Type I'), ('ita-j', 'ITA Type J'), ('ita-k', 'ITA Type K'), ('ita-l', 'ITA Type L (CEI 23-50)'), ('ita-m', 'ITA Type M (BS 546)'), ('ita-n', 'ITA Type N'), ('ita-o', 'ITA Type O')] * `USB` - [('usb-a', 'USB Type A'), ('usb-b', 'USB Type B'), ('usb-c', 'USB Type C'), ('usb-mini-a', 'USB Mini A'), ('usb-mini-b', 'USB Mini B'), ('usb-micro-a', 'USB Micro A'), ('usb-micro-b', 'USB Micro B'), ('usb-micro-ab', 'USB Micro AB'), ('usb-3-b', 'USB 3.0 Type B'), ('usb-3-micro-b', 'USB 3.0 Micro B')] * `Molex` - [('molex-micro-fit-1x2', 'Molex Micro-Fit 1x2'), ('molex-micro-fit-2x2', 'Molex Micro-Fit 2x2'), ('molex-micro-fit-2x4', 'Molex Micro-Fit 2x4')] * `DC` - [('dc-terminal', 'DC Terminal')] * `Proprietary` - [('saf-d-grid', 'Saf-D-Grid'), ('neutrik-powercon-20', 'Neutrik powerCON (20A)'), ('neutrik-powercon-32', 'Neutrik powerCON (32A)'), ('neutrik-powercon-true1', 'Neutrik powerCON TRUE1'), ('neutrik-powercon-true1-top', 'Neutrik powerCON TRUE1 TOP'), ('ubiquiti-smartpower', 'Ubiquiti SmartPower')] * `Other` - [('hardwired', 'Hardwired'), ('other', 'Other')] | **updatedByRequest** | **string** | | ### Return type @@ -25442,7 +25981,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25506,7 +26045,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25572,7 +26111,7 @@ import ( ) func main() { - powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example")} // []PowerPortRequest | + powerPortRequest := []openapiclient.PowerPortRequest{*openapiclient.NewPowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")} // []PowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25638,7 +26177,7 @@ import ( ) func main() { - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -25753,7 +26292,7 @@ Name | Type | Description | Notes ## DcimPowerPortsList -> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedPowerPortList DcimPowerPortsList(ctx).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -25781,7 +26320,6 @@ func main() { allocatedDrawLte := []int32{int32(123)} // []int32 | (optional) allocatedDrawN := []int32{int32(123)} // []int32 | (optional) cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -25809,6 +26347,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -25873,26 +26426,31 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | Physical port type (optional) - typeN := []string{"Inner_example"} // []string | Physical port type (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeIe := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeIew := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeIsw := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeN := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNic := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNie := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNiew := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) + typeNisw := []openapiclient.DcimPowerPortsListTypeIcParameterInner{openapiclient.dcim_power_ports_list_type__ic_parameter_inner("")} // []DcimPowerPortsListTypeIcParameterInner | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -25901,7 +26459,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimPowerPortsList(context.Background()).AllocatedDraw(allocatedDraw).AllocatedDrawEmpty(allocatedDrawEmpty).AllocatedDrawGt(allocatedDrawGt).AllocatedDrawGte(allocatedDrawGte).AllocatedDrawLt(allocatedDrawLt).AllocatedDrawLte(allocatedDrawLte).AllocatedDrawN(allocatedDrawN).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Connected(connected).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).MaximumDraw(maximumDraw).MaximumDrawEmpty(maximumDrawEmpty).MaximumDrawGt(maximumDrawGt).MaximumDrawGte(maximumDrawGte).MaximumDrawLt(maximumDrawLt).MaximumDrawLte(maximumDrawLte).MaximumDrawN(maximumDrawN).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimPowerPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -25930,7 +26488,6 @@ Name | Type | Description | Notes **allocatedDrawLte** | **[]int32** | | **allocatedDrawN** | **[]int32** | | **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -25958,6 +26515,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -26022,26 +26594,31 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | Physical port type | - **typeN** | **[]string** | Physical port type | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeIe** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeIew** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeIsw** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeN** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNic** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNie** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNiew** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | + **typeNisw** | [**[]DcimPowerPortsListTypeIcParameterInner**](DcimPowerPortsListTypeIcParameterInner.md) | Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -26300,7 +26877,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this power port. - writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewDeviceRequest(), "Name_example") // WritablePowerPortRequest | + writablePowerPortRequest := *openapiclient.NewWritablePowerPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example") // WritablePowerPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26371,7 +26948,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26435,7 +27012,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26501,7 +27078,7 @@ import ( ) func main() { - rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | + rackReservationRequest := []openapiclient.RackReservationRequest{*openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example")} // []RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26567,7 +27144,7 @@ import ( ) func main() { - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -26736,36 +27313,36 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) unit := float32(8.14) // float32 | (optional) @@ -26832,36 +27409,36 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | **modifiedByRequest** | **string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **unit** | **float32** | | @@ -27053,7 +27630,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rack reservation. - rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewUserRequest("Username_example"), "Description_example") // RackReservationRequest | + rackReservationRequest := *openapiclient.NewRackReservationRequest(*openapiclient.NewBriefRackRequest("Name_example"), []int32{int32(123)}, *openapiclient.NewBriefUserRequest("Username_example"), "Description_example") // RackReservationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -27860,9 +28437,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRacksBulkDestroy +## DcimRackTypesBulkDestroy -> DcimRacksBulkDestroy(ctx).RackRequest(rackRequest).Execute() +> DcimRackTypesBulkDestroy(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27881,13 +28458,13 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRacksBulkDestroy(context.Background()).RackRequest(rackRequest).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesBulkDestroy(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -27899,12 +28476,12 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRacksBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRequest** | [**[]RackRequest**](RackRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type @@ -27924,9 +28501,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRacksBulkPartialUpdate +## DcimRackTypesBulkPartialUpdate -> []Rack DcimRacksBulkPartialUpdate(ctx).RackRequest(rackRequest).Execute() +> []RackType DcimRackTypesBulkPartialUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -27945,17 +28522,17 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).RackRequest(rackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkPartialUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRacksBulkPartialUpdate`: []Rack - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkPartialUpdate`: %v\n", resp) + // response from `DcimRackTypesBulkPartialUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkPartialUpdate`: %v\n", resp) } ``` @@ -27965,16 +28542,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRacksBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRequest** | [**[]RackRequest**](RackRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]Rack**](Rack.md) +[**[]RackType**](RackType.md) ### Authorization @@ -27990,9 +28567,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRacksBulkUpdate +## DcimRackTypesBulkUpdate -> []Rack DcimRacksBulkUpdate(ctx).RackRequest(rackRequest).Execute() +> []RackType DcimRackTypesBulkUpdate(ctx).RackTypeRequest(rackTypeRequest).Execute() @@ -28011,17 +28588,17 @@ import ( ) func main() { - rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example")} // []RackRequest | + rackTypeRequest := []openapiclient.RackTypeRequest{*openapiclient.NewRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example")} // []RackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).RackRequest(rackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesBulkUpdate(context.Background()).RackTypeRequest(rackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRacksBulkUpdate`: []Rack - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkUpdate`: %v\n", resp) + // response from `DcimRackTypesBulkUpdate`: []RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesBulkUpdate`: %v\n", resp) } ``` @@ -28031,16 +28608,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRacksBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **rackRequest** | [**[]RackRequest**](RackRequest.md) | | + **rackTypeRequest** | [**[]RackTypeRequest**](RackTypeRequest.md) | | ### Return type -[**[]Rack**](Rack.md) +[**[]RackType**](RackType.md) ### Authorization @@ -28056,9 +28633,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRacksCreate +## DcimRackTypesCreate -> Rack DcimRacksCreate(ctx).WritableRackRequest(writableRackRequest).Execute() +> RackType DcimRackTypesCreate(ctx).WritableRackTypeRequest(writableRackTypeRequest).Execute() @@ -28077,17 +28654,17 @@ import ( ) func main() { - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).WritableRackRequest(writableRackRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesCreate(context.Background()).WritableRackTypeRequest(writableRackTypeRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `DcimRacksCreate`: Rack - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksCreate`: %v\n", resp) + // response from `DcimRackTypesCreate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesCreate`: %v\n", resp) } ``` @@ -28097,16 +28674,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRacksCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **writableRackRequest** | [**WritableRackRequest**](WritableRackRequest.md) | | + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | ### Return type -[**Rack**](Rack.md) +[**RackType**](RackType.md) ### Authorization @@ -28122,9 +28699,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRacksDestroy +## DcimRackTypesDestroy -> DcimRacksDestroy(ctx, id).Execute() +> DcimRackTypesDestroy(ctx, id).Execute() @@ -28143,13 +28720,13 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this rack. + id := int32(56) // int32 | A unique integer value identifying this rack type. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.DcimAPI.DcimRacksDestroy(context.Background(), id).Execute() + r, err := apiClient.DcimAPI.DcimRackTypesDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -28161,11 +28738,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack. | +**id** | **int32** | A unique integer value identifying this rack type. | ### Other Parameters -Other parameters are passed through a pointer to a apiDcimRacksDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiDcimRackTypesDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -28190,103 +28767,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## DcimRacksElevationRetrieve +## DcimRackTypesList -> PaginatedRackUnitList DcimRacksElevationRetrieve(ctx, id).Exclude(exclude).ExpandDevices(expandDevices).Face(face).IncludeImages(includeImages).LegendWidth(legendWidth).Limit(limit).MarginWidth(marginWidth).Offset(offset).Q(q).Render(render).UnitHeight(unitHeight).UnitWidth(unitWidth).Execute() - - - - - -### Example - -```go -package main - -import ( - "context" - "fmt" - "os" - openapiclient "github.com/netbox-community/go-netbox/v4" -) - -func main() { - id := int32(56) // int32 | A unique integer value identifying this rack. - exclude := int32(56) // int32 | (optional) - expandDevices := true // bool | (optional) (default to true) - face := openapiclient.dcim_racks_elevation_retrieve_face_parameter("front") // DcimRacksElevationRetrieveFaceParameter | * `front` - Front * `rear` - Rear (optional) (default to "front") - includeImages := true // bool | (optional) (default to true) - legendWidth := int32(56) // int32 | (optional) (default to 30) - limit := int32(56) // int32 | Number of results to return per page. (optional) - marginWidth := int32(56) // int32 | (optional) (default to 15) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - q := "q_example" // string | (optional) - render := openapiclient.dcim_racks_elevation_retrieve_render_parameter("json") // DcimRacksElevationRetrieveRenderParameter | * `json` - json * `svg` - svg (optional) (default to "json") - unitHeight := int32(56) // int32 | (optional) - unitWidth := int32(56) // int32 | (optional) - - configuration := openapiclient.NewConfiguration() - apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Exclude(exclude).ExpandDevices(expandDevices).Face(face).IncludeImages(includeImages).LegendWidth(legendWidth).Limit(limit).MarginWidth(marginWidth).Offset(offset).Q(q).Render(render).UnitHeight(unitHeight).UnitWidth(unitWidth).Execute() - if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksElevationRetrieve``: %v\n", err) - fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) - } - // response from `DcimRacksElevationRetrieve`: PaginatedRackUnitList - fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksElevationRetrieve`: %v\n", resp) -} -``` - -### Path Parameters - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this rack. | - -### Other Parameters - -Other parameters are passed through a pointer to a apiDcimRacksElevationRetrieveRequest struct via the builder pattern - - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - - **exclude** | **int32** | | - **expandDevices** | **bool** | | [default to true] - **face** | [**DcimRacksElevationRetrieveFaceParameter**](DcimRacksElevationRetrieveFaceParameter.md) | * `front` - Front * `rear` - Rear | [default to "front"] - **includeImages** | **bool** | | [default to true] - **legendWidth** | **int32** | | [default to 30] - **limit** | **int32** | Number of results to return per page. | - **marginWidth** | **int32** | | [default to 15] - **offset** | **int32** | The initial index from which to return the results. | - **q** | **string** | | - **render** | [**DcimRacksElevationRetrieveRenderParameter**](DcimRacksElevationRetrieveRenderParameter.md) | * `json` - json * `svg` - svg | [default to "json"] - **unitHeight** | **int32** | | - **unitWidth** | **int32** | | - -### Return type - -[**PaginatedRackUnitList**](PaginatedRackUnitList.md) - -### Authorization - -[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) - -### HTTP request headers - -- **Content-Type**: Not defined -- **Accept**: application/json - -[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) -[[Back to Model list]](../README.md#documentation-for-models) -[[Back to README]](../README.md) - - -## DcimRacksList - -> PaginatedRackList DcimRacksList(ctx).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() +> PaginatedRackTypeList DcimRackTypesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() @@ -28306,23 +28789,6 @@ import ( ) func main() { - assetTag := []string{"Inner_example"} // []string | (optional) - assetTagEmpty := true // bool | (optional) - assetTagIc := []string{"Inner_example"} // []string | (optional) - assetTagIe := []string{"Inner_example"} // []string | (optional) - assetTagIew := []string{"Inner_example"} // []string | (optional) - assetTagIsw := []string{"Inner_example"} // []string | (optional) - assetTagN := []string{"Inner_example"} // []string | (optional) - assetTagNic := []string{"Inner_example"} // []string | (optional) - assetTagNie := []string{"Inner_example"} // []string | (optional) - assetTagNiew := []string{"Inner_example"} // []string | (optional) - assetTagNisw := []string{"Inner_example"} // []string | (optional) - contact := []int32{int32(123)} // []int32 | Contact (optional) - contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) - contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) - contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -28343,17 +28809,17 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - facilityId := []string{"Inner_example"} // []string | (optional) - facilityIdEmpty := true // bool | (optional) - facilityIdIc := []string{"Inner_example"} // []string | (optional) - facilityIdIe := []string{"Inner_example"} // []string | (optional) - facilityIdIew := []string{"Inner_example"} // []string | (optional) - facilityIdIsw := []string{"Inner_example"} // []string | (optional) - facilityIdN := []string{"Inner_example"} // []string | (optional) - facilityIdNic := []string{"Inner_example"} // []string | (optional) - facilityIdNie := []string{"Inner_example"} // []string | (optional) - facilityIdNiew := []string{"Inner_example"} // []string | (optional) - facilityIdNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorEmpty := true // bool | (optional) + formFactorIc := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorIe := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorIew := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorIsw := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorN := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNic := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNie := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNiew := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNisw := []openapiclient.DcimRackTypesListFormFactorIcParameterInner{openapiclient.dcim_rack_types_list_form_factor__ic_parameter_inner("2-post-frame")} // []DcimRackTypesListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -28369,10 +28835,10 @@ func main() { lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - location := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationN := []int32{int32(123)} // []int32 | Location (slug) (optional) - locationId := []int32{int32(123)} // []int32 | Location (ID) (optional) - locationIdN := []int32{int32(123)} // []int32 | Location (ID) (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) maxWeight := []int32{int32(123)} // []int32 | (optional) maxWeightEmpty := true // bool | (optional) maxWeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28380,6 +28846,17 @@ func main() { maxWeightLt := []int32{int32(123)} // []int32 | (optional) maxWeightLte := []int32{int32(123)} // []int32 | (optional) maxWeightN := []int32{int32(123)} // []int32 | (optional) + model := []string{"Inner_example"} // []string | (optional) + modelEmpty := true // bool | (optional) + modelIc := []string{"Inner_example"} // []string | (optional) + modelIe := []string{"Inner_example"} // []string | (optional) + modelIew := []string{"Inner_example"} // []string | (optional) + modelIsw := []string{"Inner_example"} // []string | (optional) + modelN := []string{"Inner_example"} // []string | (optional) + modelNic := []string{"Inner_example"} // []string | (optional) + modelNie := []string{"Inner_example"} // []string | (optional) + modelNiew := []string{"Inner_example"} // []string | (optional) + modelNisw := []string{"Inner_example"} // []string | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) mountingDepth := []int32{int32(123)} // []int32 | (optional) mountingDepthEmpty := true // bool | (optional) @@ -28388,17 +28865,6 @@ func main() { mountingDepthLt := []int32{int32(123)} // []int32 | (optional) mountingDepthLte := []int32{int32(123)} // []int32 | (optional) mountingDepthN := []int32{int32(123)} // []int32 | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) outerDepth := []int32{int32(123)} // []int32 | (optional) @@ -28408,8 +28874,7 @@ func main() { outerDepthLt := []int32{int32(123)} // []int32 | (optional) outerDepthLte := []int32{int32(123)} // []int32 | (optional) outerDepthN := []int32{int32(123)} // []int32 | (optional) - outerUnit := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) - outerUnitN := openapiclient.dcim_racks_list_outer_unit_parameter("in") // DcimRacksListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) outerWidth := []int32{int32(123)} // []int32 | (optional) outerWidthEmpty := true // bool | (optional) outerWidthGt := []int32{int32(123)} // []int32 | (optional) @@ -28418,33 +28883,17 @@ func main() { outerWidthLte := []int32{int32(123)} // []int32 | (optional) outerWidthN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Role (slug) (optional) - roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) - roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) - serial := []string{"Inner_example"} // []string | (optional) - serialEmpty := true // bool | (optional) - serialIc := []string{"Inner_example"} // []string | (optional) - serialIe := []string{"Inner_example"} // []string | (optional) - serialIew := []string{"Inner_example"} // []string | (optional) - serialIsw := []string{"Inner_example"} // []string | (optional) - serialN := []string{"Inner_example"} // []string | (optional) - serialNic := []string{"Inner_example"} // []string | (optional) - serialNie := []string{"Inner_example"} // []string | (optional) - serialNiew := []string{"Inner_example"} // []string | (optional) - serialNisw := []string{"Inner_example"} // []string | (optional) - site := []string{"Inner_example"} // []string | Site (slug) (optional) - siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) - siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) startingUnit := []int32{int32(123)} // []int32 | (optional) startingUnitEmpty := true // bool | (optional) startingUnitGt := []int32{int32(123)} // []int32 | (optional) @@ -28452,20 +28901,8 @@ func main() { startingUnitLt := []int32{int32(123)} // []int32 | (optional) startingUnitLte := []int32{int32(123)} // []int32 | (optional) startingUnitN := []int32{int32(123)} // []int32 | (optional) - status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) - type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) uHeight := []int32{int32(123)} // []int32 | (optional) uHeightEmpty := true // bool | (optional) uHeightGt := []int32{int32(123)} // []int32 | (optional) @@ -28482,13 +28919,1075 @@ func main() { weightLte := []float64{float64(123)} // []float64 | (optional) weightN := []float64{float64(123)} // []float64 | (optional) weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) - weightUnitN := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) - widthN := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIc := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthIe := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthIew := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthIsw := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthN := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNic := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNie := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNiew := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNisw := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterUnitN(outerUnitN).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).WeightUnitN(weightUnitN).Width(width).WidthN(widthN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRackTypesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).Model(model).ModelEmpty(modelEmpty).ModelIc(modelIc).ModelIe(modelIe).ModelIew(modelIew).ModelIsw(modelIsw).ModelN(modelN).ModelNic(modelNic).ModelNie(modelNie).ModelNiew(modelNiew).ModelNisw(modelNisw).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Tag(tag).TagN(tagN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackTypesList`: PaginatedRackTypeList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackTypesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **descUnits** | **bool** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorEmpty** | **bool** | | + **formFactorIc** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorIe** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorIew** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorIsw** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorN** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNic** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNie** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNiew** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNisw** | [**[]DcimRackTypesListFormFactorIcParameterInner**](DcimRackTypesListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | + **maxWeight** | **[]int32** | | + **maxWeightEmpty** | **bool** | | + **maxWeightGt** | **[]int32** | | + **maxWeightGte** | **[]int32** | | + **maxWeightLt** | **[]int32** | | + **maxWeightLte** | **[]int32** | | + **maxWeightN** | **[]int32** | | + **model** | **[]string** | | + **modelEmpty** | **bool** | | + **modelIc** | **[]string** | | + **modelIe** | **[]string** | | + **modelIew** | **[]string** | | + **modelIsw** | **[]string** | | + **modelN** | **[]string** | | + **modelNic** | **[]string** | | + **modelNie** | **[]string** | | + **modelNiew** | **[]string** | | + **modelNisw** | **[]string** | | + **modifiedByRequest** | **string** | | + **mountingDepth** | **[]int32** | | + **mountingDepthEmpty** | **bool** | | + **mountingDepthGt** | **[]int32** | | + **mountingDepthGte** | **[]int32** | | + **mountingDepthLt** | **[]int32** | | + **mountingDepthLte** | **[]int32** | | + **mountingDepthN** | **[]int32** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **outerDepth** | **[]int32** | | + **outerDepthEmpty** | **bool** | | + **outerDepthGt** | **[]int32** | | + **outerDepthGte** | **[]int32** | | + **outerDepthLt** | **[]int32** | | + **outerDepthLte** | **[]int32** | | + **outerDepthN** | **[]int32** | | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerWidth** | **[]int32** | | + **outerWidthEmpty** | **bool** | | + **outerWidthGt** | **[]int32** | | + **outerWidthGte** | **[]int32** | | + **outerWidthLt** | **[]int32** | | + **outerWidthLte** | **[]int32** | | + **outerWidthN** | **[]int32** | | + **q** | **string** | Search | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **startingUnit** | **[]int32** | | + **startingUnitEmpty** | **bool** | | + **startingUnitGt** | **[]int32** | | + **startingUnitGte** | **[]int32** | | + **startingUnitLt** | **[]int32** | | + **startingUnitLte** | **[]int32** | | + **startingUnitN** | **[]int32** | | + **tag** | **[]string** | | + **tagN** | **[]string** | | + **uHeight** | **[]int32** | | + **uHeightEmpty** | **bool** | | + **uHeightGt** | **[]int32** | | + **uHeightGte** | **[]int32** | | + **uHeightLt** | **[]int32** | | + **uHeightLte** | **[]int32** | | + **uHeightN** | **[]int32** | | + **updatedByRequest** | **string** | | + **weight** | **[]float64** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]float64** | | + **weightGte** | **[]float64** | | + **weightLt** | **[]float64** | | + **weightLte** | **[]float64** | | + **weightN** | **[]float64** | | + **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | + **width** | **[]int32** | Rail-to-rail width | + **widthIc** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthIe** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthIew** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthIsw** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthN** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNic** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNie** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNiew** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNisw** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + +### Return type + +[**PaginatedRackTypeList**](PaginatedRackTypeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackTypesPartialUpdate + +> RackType DcimRackTypesPartialUpdate(ctx, id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack type. + patchedWritableRackTypeRequest := *openapiclient.NewPatchedWritableRackTypeRequest() // PatchedWritableRackTypeRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackTypesPartialUpdate(context.Background(), id).PatchedWritableRackTypeRequest(patchedWritableRackTypeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackTypesPartialUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackTypesPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedWritableRackTypeRequest** | [**PatchedWritableRackTypeRequest**](PatchedWritableRackTypeRequest.md) | | + +### Return type + +[**RackType**](RackType.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackTypesRetrieve + +> RackType DcimRackTypesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackTypesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackTypesRetrieve`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackTypesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**RackType**](RackType.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRackTypesUpdate + +> RackType DcimRackTypesUpdate(ctx, id).WritableRackTypeRequest(writableRackTypeRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack type. + writableRackTypeRequest := *openapiclient.NewWritableRackTypeRequest(*openapiclient.NewBriefManufacturerRequest("Name_example", "Slug_example"), "Model_example", "Slug_example", openapiclient.PatchedWritableRackTypeRequest_form_factor("2-post-frame")) // WritableRackTypeRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRackTypesUpdate(context.Background(), id).WritableRackTypeRequest(writableRackTypeRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRackTypesUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRackTypesUpdate`: RackType + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRackTypesUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRackTypesUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **writableRackTypeRequest** | [**WritableRackTypeRequest**](WritableRackTypeRequest.md) | | + +### Return type + +[**RackType**](RackType.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksBulkDestroy + +> DcimRacksBulkDestroy(ctx).RackRequest(rackRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DcimAPI.DcimRacksBulkDestroy(context.Background()).RackRequest(rackRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRacksBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRequest** | [**[]RackRequest**](RackRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksBulkPartialUpdate + +> []Rack DcimRacksBulkPartialUpdate(ctx).RackRequest(rackRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRacksBulkPartialUpdate(context.Background()).RackRequest(rackRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRacksBulkPartialUpdate`: []Rack + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRacksBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRequest** | [**[]RackRequest**](RackRequest.md) | | + +### Return type + +[**[]Rack**](Rack.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksBulkUpdate + +> []Rack DcimRacksBulkUpdate(ctx).RackRequest(rackRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + rackRequest := []openapiclient.RackRequest{*openapiclient.NewRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example"))} // []RackRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRacksBulkUpdate(context.Background()).RackRequest(rackRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRacksBulkUpdate`: []Rack + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRacksBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **rackRequest** | [**[]RackRequest**](RackRequest.md) | | + +### Return type + +[**[]Rack**](Rack.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksCreate + +> Rack DcimRacksCreate(ctx).WritableRackRequest(writableRackRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRacksCreate(context.Background()).WritableRackRequest(writableRackRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRacksCreate`: Rack + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRacksCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **writableRackRequest** | [**WritableRackRequest**](WritableRackRequest.md) | | + +### Return type + +[**Rack**](Rack.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksDestroy + +> DcimRacksDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.DcimAPI.DcimRacksDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRacksDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksElevationRetrieve + +> PaginatedRackUnitList DcimRacksElevationRetrieve(ctx, id).Exclude(exclude).ExpandDevices(expandDevices).Face(face).IncludeImages(includeImages).LegendWidth(legendWidth).Limit(limit).MarginWidth(marginWidth).Offset(offset).Q(q).Render(render).UnitHeight(unitHeight).UnitWidth(unitWidth).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this rack. + exclude := int32(56) // int32 | (optional) + expandDevices := true // bool | (optional) (default to true) + face := openapiclient.dcim_racks_elevation_retrieve_face_parameter("front") // DcimRacksElevationRetrieveFaceParameter | * `front` - Front * `rear` - Rear (optional) (default to "front") + includeImages := true // bool | (optional) (default to true) + legendWidth := int32(56) // int32 | (optional) (default to 30) + limit := int32(56) // int32 | Number of results to return per page. (optional) + marginWidth := int32(56) // int32 | (optional) (default to 15) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + q := "q_example" // string | (optional) + render := openapiclient.dcim_racks_elevation_retrieve_render_parameter("json") // DcimRacksElevationRetrieveRenderParameter | * `json` - json * `svg` - svg (optional) (default to "json") + unitHeight := int32(56) // int32 | (optional) + unitWidth := int32(56) // int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRacksElevationRetrieve(context.Background(), id).Exclude(exclude).ExpandDevices(expandDevices).Face(face).IncludeImages(includeImages).LegendWidth(legendWidth).Limit(limit).MarginWidth(marginWidth).Offset(offset).Q(q).Render(render).UnitHeight(unitHeight).UnitWidth(unitWidth).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksElevationRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `DcimRacksElevationRetrieve`: PaginatedRackUnitList + fmt.Fprintf(os.Stdout, "Response from `DcimAPI.DcimRacksElevationRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this rack. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiDcimRacksElevationRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **exclude** | **int32** | | + **expandDevices** | **bool** | | [default to true] + **face** | [**DcimRacksElevationRetrieveFaceParameter**](DcimRacksElevationRetrieveFaceParameter.md) | * `front` - Front * `rear` - Rear | [default to "front"] + **includeImages** | **bool** | | [default to true] + **legendWidth** | **int32** | | [default to 30] + **limit** | **int32** | Number of results to return per page. | + **marginWidth** | **int32** | | [default to 15] + **offset** | **int32** | The initial index from which to return the results. | + **q** | **string** | | + **render** | [**DcimRacksElevationRetrieveRenderParameter**](DcimRacksElevationRetrieveRenderParameter.md) | * `json` - json * `svg` - svg | [default to "json"] + **unitHeight** | **int32** | | + **unitWidth** | **int32** | | + +### Return type + +[**PaginatedRackUnitList**](PaginatedRackUnitList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## DcimRacksList + +> PaginatedRackList DcimRacksList(ctx).Airflow(airflow).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + airflow := openapiclient.dcim_racks_list_airflow_parameter("front-to-rear") // DcimRacksListAirflowParameter | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front (optional) + assetTag := []string{"Inner_example"} // []string | (optional) + assetTagEmpty := true // bool | (optional) + assetTagIc := []string{"Inner_example"} // []string | (optional) + assetTagIe := []string{"Inner_example"} // []string | (optional) + assetTagIew := []string{"Inner_example"} // []string | (optional) + assetTagIsw := []string{"Inner_example"} // []string | (optional) + assetTagN := []string{"Inner_example"} // []string | (optional) + assetTagNic := []string{"Inner_example"} // []string | (optional) + assetTagNie := []string{"Inner_example"} // []string | (optional) + assetTagNiew := []string{"Inner_example"} // []string | (optional) + assetTagNisw := []string{"Inner_example"} // []string | (optional) + contact := []int32{int32(123)} // []int32 | Contact (optional) + contactN := []int32{int32(123)} // []int32 | Contact (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) + contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) + contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + descUnits := true // bool | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + facilityId := []string{"Inner_example"} // []string | (optional) + facilityIdEmpty := true // bool | (optional) + facilityIdIc := []string{"Inner_example"} // []string | (optional) + facilityIdIe := []string{"Inner_example"} // []string | (optional) + facilityIdIew := []string{"Inner_example"} // []string | (optional) + facilityIdIsw := []string{"Inner_example"} // []string | (optional) + facilityIdN := []string{"Inner_example"} // []string | (optional) + facilityIdNic := []string{"Inner_example"} // []string | (optional) + facilityIdNie := []string{"Inner_example"} // []string | (optional) + facilityIdNiew := []string{"Inner_example"} // []string | (optional) + facilityIdNisw := []string{"Inner_example"} // []string | (optional) + formFactor := []string{"Inner_example"} // []string | (optional) + formFactorEmpty := true // bool | (optional) + formFactorIc := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorIe := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorIew := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorIsw := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorN := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNic := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNie := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNiew := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + formFactorNisw := []openapiclient.DcimRacksListFormFactorIcParameterInner{openapiclient.dcim_racks_list_form_factor__ic_parameter_inner("")} // []DcimRacksListFormFactorIcParameterInner | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + location := []string{"Inner_example"} // []string | (optional) + locationN := []string{"Inner_example"} // []string | (optional) + locationId := []string{"Inner_example"} // []string | (optional) + locationIdN := []string{"Inner_example"} // []string | (optional) + manufacturer := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerN := []string{"Inner_example"} // []string | Manufacturer (slug) (optional) + manufacturerId := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + manufacturerIdN := []int32{int32(123)} // []int32 | Manufacturer (ID) (optional) + maxWeight := []int32{int32(123)} // []int32 | (optional) + maxWeightEmpty := true // bool | (optional) + maxWeightGt := []int32{int32(123)} // []int32 | (optional) + maxWeightGte := []int32{int32(123)} // []int32 | (optional) + maxWeightLt := []int32{int32(123)} // []int32 | (optional) + maxWeightLte := []int32{int32(123)} // []int32 | (optional) + maxWeightN := []int32{int32(123)} // []int32 | (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + mountingDepth := []int32{int32(123)} // []int32 | (optional) + mountingDepthEmpty := true // bool | (optional) + mountingDepthGt := []int32{int32(123)} // []int32 | (optional) + mountingDepthGte := []int32{int32(123)} // []int32 | (optional) + mountingDepthLt := []int32{int32(123)} // []int32 | (optional) + mountingDepthLte := []int32{int32(123)} // []int32 | (optional) + mountingDepthN := []int32{int32(123)} // []int32 | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + outerDepth := []int32{int32(123)} // []int32 | (optional) + outerDepthEmpty := true // bool | (optional) + outerDepthGt := []int32{int32(123)} // []int32 | (optional) + outerDepthGte := []int32{int32(123)} // []int32 | (optional) + outerDepthLt := []int32{int32(123)} // []int32 | (optional) + outerDepthLte := []int32{int32(123)} // []int32 | (optional) + outerDepthN := []int32{int32(123)} // []int32 | (optional) + outerUnit := openapiclient.dcim_rack_types_list_outer_unit_parameter("in") // DcimRackTypesListOuterUnitParameter | * `mm` - Millimeters * `in` - Inches (optional) + outerWidth := []int32{int32(123)} // []int32 | (optional) + outerWidthEmpty := true // bool | (optional) + outerWidthGt := []int32{int32(123)} // []int32 | (optional) + outerWidthGte := []int32{int32(123)} // []int32 | (optional) + outerWidthLt := []int32{int32(123)} // []int32 | (optional) + outerWidthLte := []int32{int32(123)} // []int32 | (optional) + outerWidthN := []int32{int32(123)} // []int32 | (optional) + q := "q_example" // string | Search (optional) + rackType := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeN := []string{"Inner_example"} // []string | Rack type (slug) (optional) + rackTypeId := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + rackTypeIdN := []*int32{int32(123)} // []*int32 | Rack type (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) + role := []string{"Inner_example"} // []string | Role (slug) (optional) + roleN := []string{"Inner_example"} // []string | Role (slug) (optional) + roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) + roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) + serial := []string{"Inner_example"} // []string | (optional) + serialEmpty := true // bool | (optional) + serialIc := []string{"Inner_example"} // []string | (optional) + serialIe := []string{"Inner_example"} // []string | (optional) + serialIew := []string{"Inner_example"} // []string | (optional) + serialIsw := []string{"Inner_example"} // []string | (optional) + serialN := []string{"Inner_example"} // []string | (optional) + serialNic := []string{"Inner_example"} // []string | (optional) + serialNie := []string{"Inner_example"} // []string | (optional) + serialNiew := []string{"Inner_example"} // []string | (optional) + serialNisw := []string{"Inner_example"} // []string | (optional) + site := []string{"Inner_example"} // []string | Site (slug) (optional) + siteN := []string{"Inner_example"} // []string | Site (slug) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) + siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) + siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) + startingUnit := []int32{int32(123)} // []int32 | (optional) + startingUnitEmpty := true // bool | (optional) + startingUnitGt := []int32{int32(123)} // []int32 | (optional) + startingUnitGte := []int32{int32(123)} // []int32 | (optional) + startingUnitLt := []int32{int32(123)} // []int32 | (optional) + startingUnitLte := []int32{int32(123)} // []int32 | (optional) + startingUnitN := []int32{int32(123)} // []int32 | (optional) + status := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusIe := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusIew := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusIsw := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusN := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusNic := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusNie := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusNiew := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + statusNisw := []openapiclient.DcimRacksListStatusIcParameterInner{openapiclient.dcim_racks_list_status__ic_parameter_inner("active")} // []DcimRacksListStatusIcParameterInner | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated (optional) + tag := []string{"Inner_example"} // []string | (optional) + tagN := []string{"Inner_example"} // []string | (optional) + tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) + tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) + uHeight := []int32{int32(123)} // []int32 | (optional) + uHeightEmpty := true // bool | (optional) + uHeightGt := []int32{int32(123)} // []int32 | (optional) + uHeightGte := []int32{int32(123)} // []int32 | (optional) + uHeightLt := []int32{int32(123)} // []int32 | (optional) + uHeightLte := []int32{int32(123)} // []int32 | (optional) + uHeightN := []int32{int32(123)} // []int32 | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + weight := []float64{float64(123)} // []float64 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []float64{float64(123)} // []float64 | (optional) + weightGte := []float64{float64(123)} // []float64 | (optional) + weightLt := []float64{float64(123)} // []float64 | (optional) + weightLte := []float64{float64(123)} // []float64 | (optional) + weightN := []float64{float64(123)} // []float64 | (optional) + weightUnit := openapiclient.dcim_device_types_list_weight_unit_parameter("g") // DcimDeviceTypesListWeightUnitParameter | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces (optional) + width := []int32{int32(123)} // []int32 | Rail-to-rail width (optional) + widthIc := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthIe := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthIew := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthIsw := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthN := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNic := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNie := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNiew := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + widthNisw := []openapiclient.DcimRackTypesListWidthIcParameterInner{openapiclient.dcim_rack_types_list_width__ic_parameter_inner(10)} // []DcimRackTypesListWidthIcParameterInner | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.DcimAPI.DcimRacksList(context.Background()).Airflow(airflow).AssetTag(assetTag).AssetTagEmpty(assetTagEmpty).AssetTagIc(assetTagIc).AssetTagIe(assetTagIe).AssetTagIew(assetTagIew).AssetTagIsw(assetTagIsw).AssetTagN(assetTagN).AssetTagNic(assetTagNic).AssetTagNie(assetTagNie).AssetTagNiew(assetTagNiew).AssetTagNisw(assetTagNisw).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DescUnits(descUnits).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FacilityId(facilityId).FacilityIdEmpty(facilityIdEmpty).FacilityIdIc(facilityIdIc).FacilityIdIe(facilityIdIe).FacilityIdIew(facilityIdIew).FacilityIdIsw(facilityIdIsw).FacilityIdN(facilityIdN).FacilityIdNic(facilityIdNic).FacilityIdNie(facilityIdNie).FacilityIdNiew(facilityIdNiew).FacilityIdNisw(facilityIdNisw).FormFactor(formFactor).FormFactorEmpty(formFactorEmpty).FormFactorIc(formFactorIc).FormFactorIe(formFactorIe).FormFactorIew(formFactorIew).FormFactorIsw(formFactorIsw).FormFactorN(formFactorN).FormFactorNic(formFactorNic).FormFactorNie(formFactorNie).FormFactorNiew(formFactorNiew).FormFactorNisw(formFactorNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).Manufacturer(manufacturer).ManufacturerN(manufacturerN).ManufacturerId(manufacturerId).ManufacturerIdN(manufacturerIdN).MaxWeight(maxWeight).MaxWeightEmpty(maxWeightEmpty).MaxWeightGt(maxWeightGt).MaxWeightGte(maxWeightGte).MaxWeightLt(maxWeightLt).MaxWeightLte(maxWeightLte).MaxWeightN(maxWeightN).ModifiedByRequest(modifiedByRequest).MountingDepth(mountingDepth).MountingDepthEmpty(mountingDepthEmpty).MountingDepthGt(mountingDepthGt).MountingDepthGte(mountingDepthGte).MountingDepthLt(mountingDepthLt).MountingDepthLte(mountingDepthLte).MountingDepthN(mountingDepthN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).OuterDepth(outerDepth).OuterDepthEmpty(outerDepthEmpty).OuterDepthGt(outerDepthGt).OuterDepthGte(outerDepthGte).OuterDepthLt(outerDepthLt).OuterDepthLte(outerDepthLte).OuterDepthN(outerDepthN).OuterUnit(outerUnit).OuterWidth(outerWidth).OuterWidthEmpty(outerWidthEmpty).OuterWidthGt(outerWidthGt).OuterWidthGte(outerWidthGte).OuterWidthLt(outerWidthLt).OuterWidthLte(outerWidthLte).OuterWidthN(outerWidthN).Q(q).RackType(rackType).RackTypeN(rackTypeN).RackTypeId(rackTypeId).RackTypeIdN(rackTypeIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).StartingUnit(startingUnit).StartingUnitEmpty(startingUnitEmpty).StartingUnitGt(startingUnitGt).StartingUnitGte(startingUnitGte).StartingUnitLt(startingUnitLt).StartingUnitLte(startingUnitLte).StartingUnitN(startingUnitN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UHeight(uHeight).UHeightEmpty(uHeightEmpty).UHeightGt(uHeightGt).UHeightGte(uHeightGte).UHeightLt(uHeightLt).UHeightLte(uHeightLte).UHeightN(uHeightN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).WeightUnit(weightUnit).Width(width).WidthIc(widthIc).WidthIe(widthIe).WidthIew(widthIew).WidthIsw(widthIsw).WidthN(widthN).WidthNic(widthNic).WidthNie(widthNie).WidthNiew(widthNiew).WidthNisw(widthNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRacksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -28509,6 +30008,7 @@ Other parameters are passed through a pointer to a apiDcimRacksListRequest struc Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **airflow** | [**DcimRacksListAirflowParameter**](DcimRacksListAirflowParameter.md) | * `front-to-rear` - Front to rear * `rear-to-front` - Rear to front | **assetTag** | **[]string** | | **assetTagEmpty** | **bool** | | **assetTagIc** | **[]string** | | @@ -28522,8 +30022,8 @@ Name | Type | Description | Notes **assetTagNisw** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -28557,6 +30057,17 @@ Name | Type | Description | Notes **facilityIdNie** | **[]string** | | **facilityIdNiew** | **[]string** | | **facilityIdNisw** | **[]string** | | + **formFactor** | **[]string** | | + **formFactorEmpty** | **bool** | | + **formFactorIc** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorIe** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorIew** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorIsw** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorN** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNic** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNie** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNiew** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | + **formFactorNisw** | [**[]DcimRacksListFormFactorIcParameterInner**](DcimRacksListFormFactorIcParameterInner.md) | * `2-post-frame` - 2-post frame * `4-post-frame` - 4-post frame * `4-post-cabinet` - 4-post cabinet * `wall-frame` - Wall-mounted frame * `wall-frame-vertical` - Wall-mounted frame (vertical) * `wall-cabinet` - Wall-mounted cabinet * `wall-cabinet-vertical` - Wall-mounted cabinet (vertical) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -28572,10 +30083,14 @@ Name | Type | Description | Notes **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | - **location** | **[]int32** | Location (slug) | - **locationN** | **[]int32** | Location (slug) | - **locationId** | **[]int32** | Location (ID) | - **locationIdN** | **[]int32** | Location (ID) | + **location** | **[]string** | | + **locationN** | **[]string** | | + **locationId** | **[]string** | | + **locationIdN** | **[]string** | | + **manufacturer** | **[]string** | Manufacturer (slug) | + **manufacturerN** | **[]string** | Manufacturer (slug) | + **manufacturerId** | **[]int32** | Manufacturer (ID) | + **manufacturerIdN** | **[]int32** | Manufacturer (ID) | **maxWeight** | **[]int32** | | **maxWeightEmpty** | **bool** | | **maxWeightGt** | **[]int32** | | @@ -28611,8 +30126,7 @@ Name | Type | Description | Notes **outerDepthLt** | **[]int32** | | **outerDepthLte** | **[]int32** | | **outerDepthN** | **[]int32** | | - **outerUnit** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | - **outerUnitN** | [**DcimRacksListOuterUnitParameter**](DcimRacksListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | + **outerUnit** | [**DcimRackTypesListOuterUnitParameter**](DcimRackTypesListOuterUnitParameter.md) | * `mm` - Millimeters * `in` - Inches | **outerWidth** | **[]int32** | | **outerWidthEmpty** | **bool** | | **outerWidthGt** | **[]int32** | | @@ -28621,10 +30135,14 @@ Name | Type | Description | Notes **outerWidthLte** | **[]int32** | | **outerWidthN** | **[]int32** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **rackType** | **[]string** | Rack type (slug) | + **rackTypeN** | **[]string** | Rack type (slug) | + **rackTypeId** | **[]int32** | Rack type (ID) | + **rackTypeIdN** | **[]int32** | Rack type (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | @@ -28642,10 +30160,10 @@ Name | Type | Description | Notes **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **startingUnit** | **[]int32** | | @@ -28656,19 +30174,26 @@ Name | Type | Description | Notes **startingUnitLte** | **[]int32** | | **startingUnitN** | **[]int32** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusIe** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusIew** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusIsw** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusN** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusNic** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusNie** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusNiew** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | + **statusNisw** | [**[]DcimRacksListStatusIcParameterInner**](DcimRacksListStatusIcParameterInner.md) | * `reserved` - Reserved * `available` - Available * `planned` - Planned * `active` - Active * `deprecated` - Deprecated | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | - **type_** | **[]string** | | - **typeN** | **[]string** | | **uHeight** | **[]int32** | | **uHeightEmpty** | **bool** | | **uHeightGt** | **[]int32** | | @@ -28685,9 +30210,16 @@ Name | Type | Description | Notes **weightLte** | **[]float64** | | **weightN** | **[]float64** | | **weightUnit** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | - **weightUnitN** | [**DcimDeviceTypesListWeightUnitParameter**](DcimDeviceTypesListWeightUnitParameter.md) | * `kg` - Kilograms * `g` - Grams * `lb` - Pounds * `oz` - Ounces | **width** | **[]int32** | Rail-to-rail width | - **widthN** | **[]int32** | Rail-to-rail width | + **widthIc** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthIe** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthIew** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthIsw** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthN** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNic** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNie** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNiew** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | + **widthNisw** | [**[]DcimRackTypesListWidthIcParameterInner**](DcimRackTypesListWidthIcParameterInner.md) | Rail-to-rail width * `10` - 10 inches * `19` - 19 inches * `21` - 21 inches * `23` - 23 inches | ### Return type @@ -28871,7 +30403,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rack. - writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | + writableRackRequest := *openapiclient.NewWritableRackRequest("Name_example", *openapiclient.NewBriefSiteRequest("Name_example", "Slug_example")) // WritableRackRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -28942,7 +30474,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29006,7 +30538,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29072,7 +30604,7 @@ import ( ) func main() { - rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example")} // []RearPortTemplateRequest | + rearPortTemplateRequest := []openapiclient.RearPortTemplateRequest{*openapiclient.NewRearPortTemplateRequest("Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29253,7 +30785,7 @@ Name | Type | Description | Notes ## DcimRearPortTemplatesList -> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedRearPortTemplateList DcimRearPortTemplatesList(ctx).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -29305,8 +30837,6 @@ func main() { descriptionNisw := []string{"Inner_example"} // []string | (optional) deviceTypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) deviceTypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeId := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) - devicetypeIdN := []*int32{int32(123)} // []*int32 | Device type (ID) (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -29336,8 +30866,6 @@ func main() { modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) moduleTypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) moduleTypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeId := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) - moduletypeIdN := []*int32{int32(123)} // []*int32 | Module type (ID) (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) nameIc := []string{"Inner_example"} // []string | (optional) @@ -29360,12 +30888,21 @@ func main() { positionsN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIe := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIsw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeN := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNic := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNie := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNiew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNisw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).DevicetypeId(devicetypeId).DevicetypeIdN(devicetypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).ModuletypeId(moduletypeId).ModuletypeIdN(moduletypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortTemplatesList(context.Background()).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ModuleTypeId(moduleTypeId).ModuleTypeIdN(moduleTypeIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -29418,8 +30955,6 @@ Name | Type | Description | Notes **descriptionNisw** | **[]string** | | **deviceTypeId** | **[]int32** | Device type (ID) | **deviceTypeIdN** | **[]int32** | Device type (ID) | - **devicetypeId** | **[]int32** | Device type (ID) | - **devicetypeIdN** | **[]int32** | Device type (ID) | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -29449,8 +30984,6 @@ Name | Type | Description | Notes **modifiedByRequest** | **string** | | **moduleTypeId** | **[]int32** | Module type (ID) | **moduleTypeIdN** | **[]int32** | Module type (ID) | - **moduletypeId** | **[]int32** | Module type (ID) | - **moduletypeIdN** | **[]int32** | Module type (ID) | **name** | **[]string** | | **nameEmpty** | **bool** | | **nameIc** | **[]string** | | @@ -29473,7 +31006,16 @@ Name | Type | Description | Notes **positionsN** | **[]int32** | | **q** | **string** | Search | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIe** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIsw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeN** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNic** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNie** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNiew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNisw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | **updatedByRequest** | **string** | | ### Return type @@ -29729,7 +31271,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29793,7 +31335,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29859,7 +31401,7 @@ import ( ) func main() { - rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | + rearPortRequest := []openapiclient.RearPortRequest{*openapiclient.NewRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c"))} // []RearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -29925,7 +31467,7 @@ import ( ) func main() { - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30040,7 +31582,7 @@ Name | Type | Description | Notes ## DcimRearPortsList -> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() +> PaginatedRearPortList DcimRearPortsList(ctx).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() @@ -30061,7 +31603,6 @@ import ( func main() { cableEnd := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) - cableEndN := openapiclient.circuits_circuit_terminations_list_cable_end_parameter("A") // CircuitsCircuitTerminationsListCableEndParameter | * `A` - A * `B` - B (optional) cableId := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cableIdN := []*int32{int32(123)} // []*int32 | Cable (ID) (optional) cabled := true // bool | (optional) @@ -30099,6 +31640,21 @@ func main() { deviceN := []*string{"Inner_example"} // []*string | Device (name) (optional) deviceId := []int32{int32(123)} // []int32 | Device (ID) (optional) deviceIdN := []int32{int32(123)} // []int32 | Device (ID) (optional) + deviceRole := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleN := []string{"Inner_example"} // []string | Device role (slug) (optional) + deviceRoleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceRoleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + deviceStatus := []string{"Inner_example"} // []string | (optional) + deviceStatusEmpty := true // bool | (optional) + deviceStatusIc := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIe := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusIsw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusN := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNic := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNie := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNiew := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) + deviceStatusNisw := []openapiclient.DcimConsolePortsListDeviceStatusIcParameterInner{openapiclient.dcim_console_ports_list_device_status__ic_parameter_inner("active")} // []DcimConsolePortsListDeviceStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning (optional) deviceType := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeN := []string{"Inner_example"} // []string | Device type (model) (optional) deviceTypeId := []int32{int32(123)} // []int32 | Device type (ID) (optional) @@ -30163,26 +31719,31 @@ func main() { rackN := []string{"Inner_example"} // []string | Rack (name) (optional) rackId := []int32{int32(123)} // []int32 | Rack (ID) (optional) rackIdN := []int32{int32(123)} // []int32 | Rack (ID) (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) - role := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Device role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Device role (ID) (optional) - roleIdN := []int32{int32(123)} // []int32 | Device role (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIe := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeIsw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeN := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNic := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNie := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNiew := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) + typeNisw := []openapiclient.DcimFrontPortTemplatesListTypeIcParameterInner{openapiclient.dcim_front_port_templates_list_type__ic_parameter_inner("110-punch")} // []DcimFrontPortTemplatesListTypeIcParameterInner | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) virtualChassis := []string{"Inner_example"} // []string | Virtual Chassis (optional) virtualChassisN := []string{"Inner_example"} // []string | Virtual Chassis (optional) @@ -30191,7 +31752,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableEndN(cableEndN).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() + resp, r, err := apiClient.DcimAPI.DcimRearPortsList(context.Background()).CableEnd(cableEnd).CableId(cableId).CableIdN(cableIdN).Cabled(cabled).Color(color).ColorEmpty(colorEmpty).ColorIc(colorIc).ColorIe(colorIe).ColorIew(colorIew).ColorIsw(colorIsw).ColorN(colorN).ColorNic(colorNic).ColorNie(colorNie).ColorNiew(colorNiew).ColorNisw(colorNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceStatus(deviceStatus).DeviceStatusEmpty(deviceStatusEmpty).DeviceStatusIc(deviceStatusIc).DeviceStatusIe(deviceStatusIe).DeviceStatusIew(deviceStatusIew).DeviceStatusIsw(deviceStatusIsw).DeviceStatusN(deviceStatusN).DeviceStatusNic(deviceStatusNic).DeviceStatusNie(deviceStatusNie).DeviceStatusNiew(deviceStatusNiew).DeviceStatusNisw(deviceStatusNisw).DeviceType(deviceType).DeviceTypeN(deviceTypeN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).MarkConnected(markConnected).ModifiedByRequest(modifiedByRequest).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Occupied(occupied).Offset(offset).Ordering(ordering).Positions(positions).PositionsEmpty(positionsEmpty).PositionsGt(positionsGt).PositionsGte(positionsGte).PositionsLt(positionsLt).PositionsLte(positionsLte).PositionsN(positionsN).Q(q).Rack(rack).RackN(rackN).RackId(rackId).RackIdN(rackIdN).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).VirtualChassis(virtualChassis).VirtualChassisN(virtualChassisN).VirtualChassisId(virtualChassisId).VirtualChassisIdN(virtualChassisIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimRearPortsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -30213,7 +31774,6 @@ Other parameters are passed through a pointer to a apiDcimRearPortsListRequest s Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cableEnd** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | - **cableEndN** | [**CircuitsCircuitTerminationsListCableEndParameter**](CircuitsCircuitTerminationsListCableEndParameter.md) | * `A` - A * `B` - B | **cableId** | **[]int32** | Cable (ID) | **cableIdN** | **[]int32** | Cable (ID) | **cabled** | **bool** | | @@ -30251,6 +31811,21 @@ Name | Type | Description | Notes **deviceN** | **[]string** | Device (name) | **deviceId** | **[]int32** | Device (ID) | **deviceIdN** | **[]int32** | Device (ID) | + **deviceRole** | **[]string** | Device role (slug) | + **deviceRoleN** | **[]string** | Device role (slug) | + **deviceRoleId** | **[]int32** | Device role (ID) | + **deviceRoleIdN** | **[]int32** | Device role (ID) | + **deviceStatus** | **[]string** | | + **deviceStatusEmpty** | **bool** | | + **deviceStatusIc** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIe** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusIsw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusN** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNic** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNie** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNiew** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | + **deviceStatusNisw** | [**[]DcimConsolePortsListDeviceStatusIcParameterInner**](DcimConsolePortsListDeviceStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `inventory` - Inventory * `decommissioning` - Decommissioning | **deviceType** | **[]string** | Device type (model) | **deviceTypeN** | **[]string** | Device type (model) | **deviceTypeId** | **[]int32** | Device type (ID) | @@ -30315,26 +31890,31 @@ Name | Type | Description | Notes **rackN** | **[]string** | Rack (name) | **rackId** | **[]int32** | Rack (ID) | **rackIdN** | **[]int32** | Rack (ID) | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | - **role** | **[]string** | Device role (slug) | - **roleN** | **[]string** | Device role (slug) | - **roleId** | **[]int32** | Device role (ID) | - **roleIdN** | **[]int32** | Device role (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | **tagN** | **[]string** | | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIe** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeIsw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeN** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNic** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNie** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNiew** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | + **typeNisw** | [**[]DcimFrontPortTemplatesListTypeIcParameterInner**](DcimFrontPortTemplatesListTypeIcParameterInner.md) | * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other | **updatedByRequest** | **string** | | **virtualChassis** | **[]string** | Virtual Chassis | **virtualChassisN** | **[]string** | Virtual Chassis | @@ -30593,7 +32173,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this rear port. - writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | + writableRearPortRequest := *openapiclient.NewWritableRearPortRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example", openapiclient.FrontPort_type_value("8p8c")) // WritableRearPortRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -30995,14 +32575,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Region (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Region (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31096,14 +32676,14 @@ Other parameters are passed through a pointer to a apiDcimRegionsListRequest str Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Region (slug) | - **ancestorN** | **[]int32** | Region (slug) | - **ancestorId** | **[]int32** | Region (ID) | - **ancestorIdN** | **[]int32** | Region (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -31758,14 +33338,14 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -31859,14 +33439,14 @@ Other parameters are passed through a pointer to a apiDcimSiteGroupsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Site group (slug) | - **ancestorN** | **[]int32** | Site group (slug) | - **ancestorId** | **[]int32** | Site group (ID) | - **ancestorIdN** | **[]int32** | Site group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32501,7 +34081,7 @@ Name | Type | Description | Notes ## DcimSitesList -> PaginatedSiteList DcimSitesList(ctx).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedSiteList DcimSitesList(ctx).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -32527,8 +34107,8 @@ func main() { asnIdN := []int32{int32(123)} // []int32 | AS (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -32561,10 +34141,10 @@ func main() { facilityNie := []string{"Inner_example"} // []string | (optional) facilityNiew := []string{"Inner_example"} // []string | (optional) facilityNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -32609,10 +34189,10 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -32625,15 +34205,24 @@ func main() { slugNiew := []string{"Inner_example"} // []string | (optional) slugNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusIe := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusIew := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusIsw := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusN := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNic := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNie := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNiew := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) + statusNisw := []openapiclient.DcimLocationsListStatusIcParameterInner{openapiclient.dcim_locations_list_status__ic_parameter_inner("active")} // []DcimLocationsListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) timeZone := []string{"Inner_example"} // []string | (optional) @@ -32650,7 +34239,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimSitesList(context.Background()).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimSitesList(context.Background()).Asn(asn).AsnN(asnN).AsnId(asnId).AsnIdN(asnIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Facility(facility).FacilityEmpty(facilityEmpty).FacilityIc(facilityIc).FacilityIe(facilityIe).FacilityIew(facilityIew).FacilityIsw(facilityIsw).FacilityN(facilityN).FacilityNic(facilityNic).FacilityNie(facilityNie).FacilityNiew(facilityNiew).FacilityNisw(facilityNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Latitude(latitude).LatitudeEmpty(latitudeEmpty).LatitudeGt(latitudeGt).LatitudeGte(latitudeGte).LatitudeLt(latitudeLt).LatitudeLte(latitudeLte).LatitudeN(latitudeN).Limit(limit).Longitude(longitude).LongitudeEmpty(longitudeEmpty).LongitudeGt(longitudeGt).LongitudeGte(longitudeGte).LongitudeLt(longitudeLt).LongitudeLte(longitudeLte).LongitudeN(longitudeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TimeZone(timeZone).TimeZoneIc(timeZoneIc).TimeZoneIe(timeZoneIe).TimeZoneIew(timeZoneIew).TimeZoneIsw(timeZoneIsw).TimeZoneN(timeZoneN).TimeZoneNic(timeZoneNic).TimeZoneNie(timeZoneNie).TimeZoneNiew(timeZoneNiew).TimeZoneNisw(timeZoneNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimSitesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -32677,8 +34266,8 @@ Name | Type | Description | Notes **asnIdN** | **[]int32** | AS (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -32711,10 +34300,10 @@ Name | Type | Description | Notes **facilityNie** | **[]string** | | **facilityNiew** | **[]string** | | **facilityNisw** | **[]string** | | - **group** | **[]int32** | Group (slug) | - **groupN** | **[]int32** | Group (slug) | - **groupId** | **[]int32** | Group (ID) | - **groupIdN** | **[]int32** | Group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -32759,10 +34348,10 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -32775,15 +34364,24 @@ Name | Type | Description | Notes **slugNiew** | **[]string** | | **slugNisw** | **[]string** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusIe** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusIew** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusIsw** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusN** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNic** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNie** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNiew** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | + **statusNisw** | [**[]DcimLocationsListStatusIcParameterInner**](DcimLocationsListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `retired` - Retired | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **timeZone** | **[]string** | | @@ -33453,16 +35051,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site name (slug) (optional) siteN := []string{"Inner_example"} // []string | Site name (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []int32{int32(123)} // []int32 | Site (ID) (optional) siteIdN := []int32{int32(123)} // []int32 | Site (ID) (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -33567,16 +35165,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site name (slug) | **siteN** | **[]string** | Site name (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **tag** | **[]string** | | @@ -33840,7 +35438,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33904,7 +35502,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -33970,7 +35568,7 @@ import ( ) func main() { - virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | + virtualDeviceContextRequest := []openapiclient.VirtualDeviceContextRequest{*openapiclient.NewVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active"))} // []VirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34036,7 +35634,7 @@ import ( ) func main() { - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -34151,7 +35749,7 @@ Name | Type | Description | Notes ## DcimVirtualDeviceContextsList -> PaginatedVirtualDeviceContextList DcimVirtualDeviceContextsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVirtualDeviceContextList DcimVirtualDeviceContextsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -34239,22 +35837,31 @@ func main() { primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusIe := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusIew := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusIsw := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusN := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusNic := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusNie := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusNiew := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) + statusNisw := []openapiclient.DcimVirtualDeviceContextsListStatusIcParameterInner{openapiclient.dcim_virtual_device_contexts_list_status__ic_parameter_inner("active")} // []DcimVirtualDeviceContextsListStatusIcParameterInner | * `active` - Active * `planned` - Planned * `offline` - Offline (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.DcimAPI.DcimVirtualDeviceContextsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `DcimAPI.DcimVirtualDeviceContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -34343,15 +35950,24 @@ Name | Type | Description | Notes **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusIe** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusIew** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusIsw** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusN** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusNic** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusNie** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusNiew** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | + **statusNisw** | [**[]DcimVirtualDeviceContextsListStatusIcParameterInner**](DcimVirtualDeviceContextsListStatusIcParameterInner.md) | * `active` - Active * `planned` - Planned * `offline` - Offline | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -34538,7 +36154,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual device context. - writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | + writableVirtualDeviceContextRequest := *openapiclient.NewWritableVirtualDeviceContextRequest("Name_example", *openapiclient.NewBriefDeviceRequest(), openapiclient.PatchedWritableVirtualDeviceContextRequest_status("active")) // WritableVirtualDeviceContextRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/Device.md b/docs/Device.md index c83083a9c..34c0a81b8 100644 --- a/docs/Device.md +++ b/docs/Device.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **NullableString** | | -**DeviceType** | Pointer to [**DeviceType**](DeviceType.md) | | [optional] -**Role** | Pointer to [**DeviceRole**](DeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceType**](BriefDeviceType.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**Site**](Site.md) | | [optional] -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | Pointer to [**BriefSite**](BriefSite.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -24,17 +25,17 @@ Name | Type | Description | Notes **ParentDevice** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -110,6 +111,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Device) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Device) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Device) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Device) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Device) GetDisplay() string` @@ -162,20 +188,20 @@ SetName sets Name field to given value. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *Device) GetDeviceType() DeviceType` +`func (o *Device) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *Device) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *Device) SetDeviceType(v DeviceType)` +`func (o *Device) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -187,20 +213,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *Device) GetRole() DeviceRole` +`func (o *Device) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Device) GetRoleOk() (*DeviceRole, bool)` +`func (o *Device) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Device) SetRole(v DeviceRole)` +`func (o *Device) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. @@ -212,20 +238,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *Device) GetTenant() Tenant` +`func (o *Device) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Device) GetTenantOk() (*Tenant, bool)` +`func (o *Device) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Device) SetTenant(v Tenant)` +`func (o *Device) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -247,20 +273,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *Device) GetPlatform() Platform` +`func (o *Device) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *Device) GetPlatformOk() (*Platform, bool)` +`func (o *Device) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *Device) SetPlatform(v Platform)` +`func (o *Device) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -342,20 +368,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *Device) GetSite() Site` +`func (o *Device) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Device) GetSiteOk() (*Site, bool)` +`func (o *Device) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Device) SetSite(v Site)` +`func (o *Device) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -367,20 +393,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *Device) GetLocation() Location` +`func (o *Device) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *Device) GetLocationOk() (*Location, bool)` +`func (o *Device) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *Device) SetLocation(v Location)` +`func (o *Device) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -402,20 +428,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *Device) GetRack() Rack` +`func (o *Device) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *Device) GetRackOk() (*Rack, bool)` +`func (o *Device) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *Device) SetRack(v Rack)` +`func (o *Device) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -652,20 +678,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *Device) GetPrimaryIp() IPAddress` +`func (o *Device) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *Device) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *Device) SetPrimaryIp(v IPAddress)` +`func (o *Device) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -687,20 +713,20 @@ HasPrimaryIp returns a boolean if a field has been set. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *Device) GetPrimaryIp4() IPAddress` +`func (o *Device) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *Device) SetPrimaryIp4(v IPAddress)` +`func (o *Device) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -722,20 +748,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *Device) GetPrimaryIp6() IPAddress` +`func (o *Device) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *Device) SetPrimaryIp6(v IPAddress)` +`func (o *Device) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -757,20 +783,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *Device) GetOobIp() IPAddress` +`func (o *Device) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *Device) GetOobIpOk() (*IPAddress, bool)` +`func (o *Device) GetOobIpOk() (*BriefIPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *Device) SetOobIp(v IPAddress)` +`func (o *Device) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -792,20 +818,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *Device) GetCluster() Cluster` +`func (o *Device) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *Device) GetClusterOk() (*Cluster, bool)` +`func (o *Device) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *Device) SetCluster(v Cluster)` +`func (o *Device) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -827,20 +853,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *Device) GetVirtualChassis() VirtualChassis` +`func (o *Device) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *Device) SetVirtualChassis(v VirtualChassis)` +`func (o *Device) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -977,20 +1003,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *Device) GetConfigTemplate() ConfigTemplate` +`func (o *Device) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *Device) SetConfigTemplate(v ConfigTemplate)` +`func (o *Device) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceBay.md b/docs/DeviceBay.md index e19772ad5..d740deb39 100644 --- a/docs/DeviceBay.md +++ b/docs/DeviceBay.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDevice**](Device.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewDeviceBay -`func NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` +`func NewDeviceBay(id int32, url string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBay` NewDeviceBay instantiates a new DeviceBay object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceBay) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceBay) GetDisplay() string` @@ -98,20 +124,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *DeviceBay) GetDevice() Device` +`func (o *DeviceBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBay) GetDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBay) SetDevice(v Device)` +`func (o *DeviceBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -188,20 +214,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBay) GetInstalledDevice() Device` +`func (o *DeviceBay) GetInstalledDevice() BriefDevice` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool)` +`func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBay) SetInstalledDevice(v Device)` +`func (o *DeviceBay) SetInstalledDevice(v BriefDevice)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayRequest.md b/docs/DeviceBayRequest.md index 9229313f3..78e056c6d 100644 --- a/docs/DeviceBayRequest.md +++ b/docs/DeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewDeviceBayRequest -`func NewDeviceBayRequest(device DeviceRequest, name string, ) *DeviceBayRequest` +`func NewDeviceBayRequest(device BriefDeviceRequest, name string, ) *DeviceBayRequest` NewDeviceBayRequest instantiates a new DeviceBayRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *DeviceBayRequest) GetDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *DeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -123,20 +123,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/DeviceBayTemplate.md b/docs/DeviceBayTemplate.md index ffb6fdad4..a938074ce 100644 --- a/docs/DeviceBayTemplate.md +++ b/docs/DeviceBayTemplate.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplate -`func NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` +`func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *DeviceBayTemplate` NewDeviceBayTemplate instantiates a new DeviceBayTemplate object This constructor will assign default values to properties that have it defined, @@ -95,20 +95,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *DeviceBayTemplate) GetDeviceType() DeviceType` +`func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplate) SetDeviceType(v DeviceType)` +`func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceBayTemplateRequest.md b/docs/DeviceBayTemplateRequest.md index 48b82be6a..3dcbe7646 100644 --- a/docs/DeviceBayTemplateRequest.md +++ b/docs/DeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewDeviceBayTemplateRequest -`func NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` +`func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *DeviceBayTemplateRequest` NewDeviceBayTemplateRequest instantiates a new DeviceBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/DeviceRole.md b/docs/DeviceRole.md index 99ecb82bc..6c7084f9a 100644 --- a/docs/DeviceRole.md +++ b/docs/DeviceRole.md @@ -6,10 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Color** | Pointer to **string** | | [optional] +**VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] @@ -17,7 +25,7 @@ Name | Type | Description | Notes ### NewDeviceRole -`func NewDeviceRole(id int32, url string, display string, name string, slug string, ) *DeviceRole` +`func NewDeviceRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *DeviceRole` NewDeviceRole instantiates a new DeviceRole object This constructor will assign default values to properties that have it defined, @@ -72,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceRole) GetDisplay() string` @@ -132,6 +165,91 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetColor + +`func (o *DeviceRole) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *DeviceRole) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *DeviceRole) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *DeviceRole) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetVmRole + +`func (o *DeviceRole) GetVmRole() bool` + +GetVmRole returns the VmRole field if non-nil, zero value otherwise. + +### GetVmRoleOk + +`func (o *DeviceRole) GetVmRoleOk() (*bool, bool)` + +GetVmRoleOk returns a tuple with the VmRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVmRole + +`func (o *DeviceRole) SetVmRole(v bool)` + +SetVmRole sets VmRole field to given value. + +### HasVmRole + +`func (o *DeviceRole) HasVmRole() bool` + +HasVmRole returns a boolean if a field has been set. + +### GetConfigTemplate + +`func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *DeviceRole) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *DeviceRole) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *DeviceRole) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *DeviceRole) GetDescription() string` @@ -157,6 +275,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *DeviceRole) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceRole) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceRole) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceRole) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceRole) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceRole) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceRole) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceRole) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceRole) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceRole) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeviceRole) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DeviceRole) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceRole) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceRole) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DeviceRole) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DeviceRole) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceRole) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceRole) GetDeviceCount() int64` diff --git a/docs/DeviceRoleRequest.md b/docs/DeviceRoleRequest.md index 63022acb9..05cd2213c 100644 --- a/docs/DeviceRoleRequest.md +++ b/docs/DeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | **string** | | **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -124,20 +124,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceType.md b/docs/DeviceType.md index 9d02d28e7..1d8597c3d 100644 --- a/docs/DeviceType.md +++ b/docs/DeviceType.md @@ -6,18 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeSubdeviceRole**](DeviceTypeSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeAirflow**](DeviceTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**FrontImage** | Pointer to **NullableString** | | [optional] +**RearImage** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**ConsolePortTemplateCount** | **int32** | | [readonly] +**ConsoleServerPortTemplateCount** | **int32** | | [readonly] +**PowerPortTemplateCount** | **int32** | | [readonly] +**PowerOutletTemplateCount** | **int32** | | [readonly] +**InterfaceTemplateCount** | **int32** | | [readonly] +**FrontPortTemplateCount** | **int32** | | [readonly] +**RearPortTemplateCount** | **int32** | | [readonly] +**DeviceBayTemplateCount** | **int32** | | [readonly] +**ModuleBayTemplateCount** | **int32** | | [readonly] +**InventoryItemTemplateCount** | **int32** | | [readonly] ## Methods ### NewDeviceType -`func NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string, ) *DeviceType` +`func NewDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32, ) *DeviceType` NewDeviceType instantiates a new DeviceType object This constructor will assign default values to properties that have it defined, @@ -72,6 +99,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceType) GetDisplay() string` @@ -94,24 +146,59 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *DeviceType) GetManufacturer() Manufacturer` +`func (o *DeviceType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceType) SetManufacturer(v Manufacturer)` +`func (o *DeviceType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceType) GetDefaultPlatform() BriefPlatform` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceType) SetDefaultPlatform(v BriefPlatform)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceType) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceType) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceType) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceType) GetModel() string` @@ -152,6 +239,316 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceType) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceType) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceType) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceType) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceType) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceType) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceType) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceType) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceType) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceType) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceType) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceType) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceType) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceType) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceType) GetAirflow() DeviceTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceType) SetAirflow(v DeviceTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceType) GetFrontImage() string` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceType) GetFrontImageOk() (*string, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceType) SetFrontImage(v string)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceType) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### SetFrontImageNil + +`func (o *DeviceType) SetFrontImageNil(b bool)` + + SetFrontImageNil sets the value for FrontImage to be an explicit nil + +### UnsetFrontImage +`func (o *DeviceType) UnsetFrontImage()` + +UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +### GetRearImage + +`func (o *DeviceType) GetRearImage() string` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceType) GetRearImageOk() (*string, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceType) SetRearImage(v string)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceType) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + +### SetRearImageNil + +`func (o *DeviceType) SetRearImageNil(b bool)` + + SetRearImageNil sets the value for RearImage to be an explicit nil + +### UnsetRearImage +`func (o *DeviceType) UnsetRearImage()` + +UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil ### GetDescription `func (o *DeviceType) GetDescription() string` @@ -177,6 +574,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *DeviceType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *DeviceType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *DeviceType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *DeviceType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *DeviceType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *DeviceType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *DeviceType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *DeviceType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *DeviceType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *DeviceType) GetDeviceCount() int64` @@ -202,6 +734,206 @@ SetDeviceCount sets DeviceCount field to given value. HasDeviceCount returns a boolean if a field has been set. +### GetConsolePortTemplateCount + +`func (o *DeviceType) GetConsolePortTemplateCount() int32` + +GetConsolePortTemplateCount returns the ConsolePortTemplateCount field if non-nil, zero value otherwise. + +### GetConsolePortTemplateCountOk + +`func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool)` + +GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsolePortTemplateCount + +`func (o *DeviceType) SetConsolePortTemplateCount(v int32)` + +SetConsolePortTemplateCount sets ConsolePortTemplateCount field to given value. + + +### GetConsoleServerPortTemplateCount + +`func (o *DeviceType) GetConsoleServerPortTemplateCount() int32` + +GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field if non-nil, zero value otherwise. + +### GetConsoleServerPortTemplateCountOk + +`func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool)` + +GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConsoleServerPortTemplateCount + +`func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32)` + +SetConsoleServerPortTemplateCount sets ConsoleServerPortTemplateCount field to given value. + + +### GetPowerPortTemplateCount + +`func (o *DeviceType) GetPowerPortTemplateCount() int32` + +GetPowerPortTemplateCount returns the PowerPortTemplateCount field if non-nil, zero value otherwise. + +### GetPowerPortTemplateCountOk + +`func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool)` + +GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerPortTemplateCount + +`func (o *DeviceType) SetPowerPortTemplateCount(v int32)` + +SetPowerPortTemplateCount sets PowerPortTemplateCount field to given value. + + +### GetPowerOutletTemplateCount + +`func (o *DeviceType) GetPowerOutletTemplateCount() int32` + +GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field if non-nil, zero value otherwise. + +### GetPowerOutletTemplateCountOk + +`func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool)` + +GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerOutletTemplateCount + +`func (o *DeviceType) SetPowerOutletTemplateCount(v int32)` + +SetPowerOutletTemplateCount sets PowerOutletTemplateCount field to given value. + + +### GetInterfaceTemplateCount + +`func (o *DeviceType) GetInterfaceTemplateCount() int32` + +GetInterfaceTemplateCount returns the InterfaceTemplateCount field if non-nil, zero value otherwise. + +### GetInterfaceTemplateCountOk + +`func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool)` + +GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInterfaceTemplateCount + +`func (o *DeviceType) SetInterfaceTemplateCount(v int32)` + +SetInterfaceTemplateCount sets InterfaceTemplateCount field to given value. + + +### GetFrontPortTemplateCount + +`func (o *DeviceType) GetFrontPortTemplateCount() int32` + +GetFrontPortTemplateCount returns the FrontPortTemplateCount field if non-nil, zero value otherwise. + +### GetFrontPortTemplateCountOk + +`func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool)` + +GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontPortTemplateCount + +`func (o *DeviceType) SetFrontPortTemplateCount(v int32)` + +SetFrontPortTemplateCount sets FrontPortTemplateCount field to given value. + + +### GetRearPortTemplateCount + +`func (o *DeviceType) GetRearPortTemplateCount() int32` + +GetRearPortTemplateCount returns the RearPortTemplateCount field if non-nil, zero value otherwise. + +### GetRearPortTemplateCountOk + +`func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool)` + +GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearPortTemplateCount + +`func (o *DeviceType) SetRearPortTemplateCount(v int32)` + +SetRearPortTemplateCount sets RearPortTemplateCount field to given value. + + +### GetDeviceBayTemplateCount + +`func (o *DeviceType) GetDeviceBayTemplateCount() int32` + +GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field if non-nil, zero value otherwise. + +### GetDeviceBayTemplateCountOk + +`func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool)` + +GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceBayTemplateCount + +`func (o *DeviceType) SetDeviceBayTemplateCount(v int32)` + +SetDeviceBayTemplateCount sets DeviceBayTemplateCount field to given value. + + +### GetModuleBayTemplateCount + +`func (o *DeviceType) GetModuleBayTemplateCount() int32` + +GetModuleBayTemplateCount returns the ModuleBayTemplateCount field if non-nil, zero value otherwise. + +### GetModuleBayTemplateCountOk + +`func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool)` + +GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleBayTemplateCount + +`func (o *DeviceType) SetModuleBayTemplateCount(v int32)` + +SetModuleBayTemplateCount sets ModuleBayTemplateCount field to given value. + + +### GetInventoryItemTemplateCount + +`func (o *DeviceType) GetInventoryItemTemplateCount() int32` + +GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field if non-nil, zero value otherwise. + +### GetInventoryItemTemplateCountOk + +`func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool)` + +GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryItemTemplateCount + +`func (o *DeviceType) SetInventoryItemTemplateCount(v int32)` + +SetInventoryItemTemplateCount sets InventoryItemTemplateCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/DeviceTypeRequest.md b/docs/DeviceTypeRequest.md index a5e6c3add..8f7d9822f 100644 --- a/docs/DeviceTypeRequest.md +++ b/docs/DeviceTypeRequest.md @@ -4,16 +4,30 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**UHeight** | Pointer to **float64** | | [optional] [default to 1.0] +**ExcludeFromUtilization** | Pointer to **bool** | Devices of this type are excluded when calculating rack utilization. | [optional] +**IsFullDepth** | Pointer to **bool** | Device consumes both front and rear rack faces. | [optional] +**SubdeviceRole** | Pointer to [**NullableDeviceTypeRequestSubdeviceRole**](DeviceTypeRequestSubdeviceRole.md) | | [optional] +**Airflow** | Pointer to [**NullableDeviceTypeRequestAirflow**](DeviceTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**FrontImage** | Pointer to ***os.File** | | [optional] +**RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewDeviceTypeRequest -`func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` +`func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *DeviceTypeRequest` NewDeviceTypeRequest instantiates a new DeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -30,24 +44,59 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. +### GetDefaultPlatform + +`func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` + +GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. + +### GetDefaultPlatformOk + +`func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` + +GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDefaultPlatform + +`func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` + +SetDefaultPlatform sets DefaultPlatform field to given value. + +### HasDefaultPlatform + +`func (o *DeviceTypeRequest) HasDefaultPlatform() bool` + +HasDefaultPlatform returns a boolean if a field has been set. + +### SetDefaultPlatformNil + +`func (o *DeviceTypeRequest) SetDefaultPlatformNil(b bool)` + + SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil + +### UnsetDefaultPlatform +`func (o *DeviceTypeRequest) UnsetDefaultPlatform()` + +UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil ### GetModel `func (o *DeviceTypeRequest) GetModel() string` @@ -88,6 +137,296 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetPartNumber + +`func (o *DeviceTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *DeviceTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *DeviceTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetUHeight + +`func (o *DeviceTypeRequest) GetUHeight() float64` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *DeviceTypeRequest) SetUHeight(v float64)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *DeviceTypeRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetExcludeFromUtilization + +`func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool` + +GetExcludeFromUtilization returns the ExcludeFromUtilization field if non-nil, zero value otherwise. + +### GetExcludeFromUtilizationOk + +`func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool)` + +GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExcludeFromUtilization + +`func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool)` + +SetExcludeFromUtilization sets ExcludeFromUtilization field to given value. + +### HasExcludeFromUtilization + +`func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool` + +HasExcludeFromUtilization returns a boolean if a field has been set. + +### GetIsFullDepth + +`func (o *DeviceTypeRequest) GetIsFullDepth() bool` + +GetIsFullDepth returns the IsFullDepth field if non-nil, zero value otherwise. + +### GetIsFullDepthOk + +`func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool)` + +GetIsFullDepthOk returns a tuple with the IsFullDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsFullDepth + +`func (o *DeviceTypeRequest) SetIsFullDepth(v bool)` + +SetIsFullDepth sets IsFullDepth field to given value. + +### HasIsFullDepth + +`func (o *DeviceTypeRequest) HasIsFullDepth() bool` + +HasIsFullDepth returns a boolean if a field has been set. + +### GetSubdeviceRole + +`func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole` + +GetSubdeviceRole returns the SubdeviceRole field if non-nil, zero value otherwise. + +### GetSubdeviceRoleOk + +`func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool)` + +GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSubdeviceRole + +`func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole)` + +SetSubdeviceRole sets SubdeviceRole field to given value. + +### HasSubdeviceRole + +`func (o *DeviceTypeRequest) HasSubdeviceRole() bool` + +HasSubdeviceRole returns a boolean if a field has been set. + +### SetSubdeviceRoleNil + +`func (o *DeviceTypeRequest) SetSubdeviceRoleNil(b bool)` + + SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil + +### UnsetSubdeviceRole +`func (o *DeviceTypeRequest) UnsetSubdeviceRole()` + +UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +### GetAirflow + +`func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *DeviceTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *DeviceTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *DeviceTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *DeviceTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *DeviceTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *DeviceTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *DeviceTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *DeviceTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *DeviceTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *DeviceTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *DeviceTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetFrontImage + +`func (o *DeviceTypeRequest) GetFrontImage() *os.File` + +GetFrontImage returns the FrontImage field if non-nil, zero value otherwise. + +### GetFrontImageOk + +`func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool)` + +GetFrontImageOk returns a tuple with the FrontImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFrontImage + +`func (o *DeviceTypeRequest) SetFrontImage(v *os.File)` + +SetFrontImage sets FrontImage field to given value. + +### HasFrontImage + +`func (o *DeviceTypeRequest) HasFrontImage() bool` + +HasFrontImage returns a boolean if a field has been set. + +### GetRearImage + +`func (o *DeviceTypeRequest) GetRearImage() *os.File` + +GetRearImage returns the RearImage field if non-nil, zero value otherwise. + +### GetRearImageOk + +`func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool)` + +GetRearImageOk returns a tuple with the RearImage field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRearImage + +`func (o *DeviceTypeRequest) SetRearImage(v *os.File)` + +SetRearImage sets RearImage field to given value. + +### HasRearImage + +`func (o *DeviceTypeRequest) HasRearImage() bool` + +HasRearImage returns a boolean if a field has been set. + ### GetDescription `func (o *DeviceTypeRequest) GetDescription() string` @@ -113,6 +452,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *DeviceTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *DeviceTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *DeviceTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *DeviceTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *DeviceTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *DeviceTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *DeviceTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *DeviceTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/DeviceWithConfigContext.md b/docs/DeviceWithConfigContext.md index 570136c0d..ccff8144b 100644 --- a/docs/DeviceWithConfigContext.md +++ b/docs/DeviceWithConfigContext.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceType**](DeviceType.md) | | -**Role** | [**DeviceRole**](DeviceRole.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | +**Role** | [**BriefDeviceRole**](BriefDeviceRole.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**Site**](Site.md) | | -**Location** | Pointer to [**NullableLocation**](Location.md) | | [optional] -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFace**](DeviceFace.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] @@ -24,17 +25,17 @@ Name | Type | Description | Notes **ParentDevice** | [**NullableNestedDevice**](NestedDevice.md) | | [readonly] **Status** | Pointer to [**DeviceStatus**](DeviceStatus.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflow**](DeviceAirflow.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassis**](VirtualChassis.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassis**](BriefVirtualChassis.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **ConfigContext** | **interface{}** | | [readonly] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -56,7 +57,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContext -`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` +`func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32, ) *DeviceWithConfigContext` NewDeviceWithConfigContext instantiates a new DeviceWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -111,6 +112,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *DeviceWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *DeviceWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *DeviceWithConfigContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *DeviceWithConfigContext) GetDisplay() string` @@ -168,60 +194,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContext) GetDeviceType() DeviceType` +`func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType)` +`func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContext) GetRole() DeviceRole` +`func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContext) SetRole(v DeviceRole)` +`func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContext) GetTenant() Tenant` +`func (o *DeviceWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContext) SetTenant(v Tenant)` +`func (o *DeviceWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -243,20 +269,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContext) GetPlatform() Platform` +`func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContext) SetPlatform(v Platform)` +`func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -338,40 +364,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContext) GetSite() Site` +`func (o *DeviceWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContext) SetSite(v Site)` +`func (o *DeviceWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContext) GetLocation() Location` +`func (o *DeviceWithConfigContext) GetLocation() BriefLocation` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool)` +`func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContext) SetLocation(v Location)` +`func (o *DeviceWithConfigContext) SetLocation(v BriefLocation)` SetLocation sets Location field to given value. @@ -393,20 +419,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContext) GetRack() Rack` +`func (o *DeviceWithConfigContext) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool)` +`func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContext) SetRack(v Rack)` +`func (o *DeviceWithConfigContext) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -638,20 +664,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp -`func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -668,20 +694,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -703,20 +729,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -738,20 +764,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContext) GetOobIp() IPAddress` +`func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool)` +`func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContext) SetOobIp(v IPAddress)` +`func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress)` SetOobIp sets OobIp field to given value. @@ -773,20 +799,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContext) GetCluster() Cluster` +`func (o *DeviceWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContext) SetCluster(v Cluster)` +`func (o *DeviceWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -808,20 +834,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis` +`func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool)` +`func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis)` +`func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis)` SetVirtualChassis sets VirtualChassis field to given value. @@ -963,20 +989,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/DeviceWithConfigContextRequest.md b/docs/DeviceWithConfigContextRequest.md index 6d521edef..d32891dde 100644 --- a/docs/DeviceWithConfigContextRequest.md +++ b/docs/DeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**DeviceFaceValue**](DeviceFaceValue.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewDeviceWithConfigContextRequest -`func NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, ) *DeviceWithConfigContextRequest` +`func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, ) *DeviceWithConfigContextRequest` NewDeviceWithConfigContextRequest instantiates a new DeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *DeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -530,20 +530,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -565,20 +565,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -600,20 +600,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -635,20 +635,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -670,20 +670,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -825,20 +825,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/Encryption.md b/docs/Encryption.md index f08f84591..9b35b28be 100644 --- a/docs/Encryption.md +++ b/docs/Encryption.md @@ -3,6 +3,10 @@ ## Enum +* `EMPTY` (value: `""`) + +* `_3DES_CBC` (value: `"3des-cbc"`) + * `AES_128_CBC` (value: `"aes-128-cbc"`) * `AES_128_GCM` (value: `"aes-128-gcm"`) @@ -15,12 +19,8 @@ * `AES_256_GCM` (value: `"aes-256-gcm"`) -* `_3DES_CBC` (value: `"3des-cbc"`) - * `DES_CBC` (value: `"des-cbc"`) -* `EMPTY` (value: `""`) - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/EventRule.md b/docs/EventRule.md index fa879bc56..6630dc6d6 100644 --- a/docs/EventRule.md +++ b/docs/EventRule.md @@ -6,15 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionType**](EventRuleActionType.md) | | **ActionObjectType** | **string** | | @@ -30,7 +27,7 @@ Name | Type | Description | Notes ### NewEventRule -`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` +`func NewEventRule(id int32, url string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime, ) *EventRule` NewEventRule instantiates a new EventRule object This constructor will assign default values to properties that have it defined, @@ -85,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *EventRule) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *EventRule) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *EventRule) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *EventRule) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *EventRule) GetDisplay() string` @@ -145,131 +167,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRule) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRule) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRule) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRule) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRule) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRule) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRule) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRule) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRule) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRule) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRule) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRule) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRule) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRule) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRule) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRule) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRule) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRule) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRule) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRule) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRule) GetEnabled() bool` @@ -295,6 +192,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRule) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRule) GetConditions() interface{}` diff --git a/docs/EventRuleActionTypeLabel.md b/docs/EventRuleActionTypeLabel.md index 7c1a6f459..5c6ede174 100644 --- a/docs/EventRuleActionTypeLabel.md +++ b/docs/EventRuleActionTypeLabel.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"Script"`) +* `NOTIFICATION` (value: `"Notification"`) + [[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/docs/EventRuleActionTypeValue.md b/docs/EventRuleActionTypeValue.md index 73ad2faee..95b9781eb 100644 --- a/docs/EventRuleActionTypeValue.md +++ b/docs/EventRuleActionTypeValue.md @@ -7,6 +7,8 @@ * `SCRIPT` (value: `"script"`) +* `NOTIFICATION` (value: `"notification"`) + [[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/docs/EventRuleRequest.md b/docs/EventRuleRequest.md index 68df12155..1d3cd3044 100644 --- a/docs/EventRuleRequest.md +++ b/docs/EventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewEventRuleRequest -`func NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` +`func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string, ) *EventRuleRequest` NewEventRuleRequest instantiates a new EventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *EventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *EventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *EventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *EventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *EventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *EventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *EventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *EventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *EventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *EventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *EventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *EventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *EventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *EventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *EventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *EventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *EventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *EventRuleRequest) GetConditions() interface{}` diff --git a/docs/ExportTemplate.md b/docs/ExportTemplate.md index 0371ebe2e..2463f098c 100644 --- a/docs/ExportTemplate.md +++ b/docs/ExportTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -14,9 +15,9 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSource**](DataSource.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSource**](BriefDataSource.md) | | [optional] **DataPath** | **string** | Path to remote file (relative to data source root) | [readonly] -**DataFile** | [**DataFile**](DataFile.md) | | [readonly] +**DataFile** | [**BriefDataFile**](BriefDataFile.md) | | [readonly] **DataSynced** | **NullableTime** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewExportTemplate -`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` +`func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime, ) *ExportTemplate` NewExportTemplate instantiates a new ExportTemplate object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ExportTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ExportTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ExportTemplate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ExportTemplate) GetDisplay() string` @@ -262,20 +288,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplate) GetDataSource() DataSource` +`func (o *ExportTemplate) GetDataSource() BriefDataSource` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool)` +`func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplate) SetDataSource(v DataSource)` +`func (o *ExportTemplate) SetDataSource(v BriefDataSource)` SetDataSource sets DataSource field to given value. @@ -307,20 +333,20 @@ SetDataPath sets DataPath field to given value. ### GetDataFile -`func (o *ExportTemplate) GetDataFile() DataFile` +`func (o *ExportTemplate) GetDataFile() BriefDataFile` GetDataFile returns the DataFile field if non-nil, zero value otherwise. ### GetDataFileOk -`func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool)` +`func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool)` GetDataFileOk returns a tuple with the DataFile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataFile -`func (o *ExportTemplate) SetDataFile(v DataFile)` +`func (o *ExportTemplate) SetDataFile(v BriefDataFile)` SetDataFile sets DataFile field to given value. diff --git a/docs/ExportTemplateRequest.md b/docs/ExportTemplateRequest.md index 1a7beb1a2..392c93a2c 100644 --- a/docs/ExportTemplateRequest.md +++ b/docs/ExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -194,20 +194,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/ExtrasAPI.md b/docs/ExtrasAPI.md index ed3040e29..123225a21 100644 --- a/docs/ExtrasAPI.md +++ b/docs/ExtrasAPI.md @@ -103,8 +103,24 @@ Method | HTTP request | Description [**ExtrasJournalEntriesPartialUpdate**](ExtrasAPI.md#ExtrasJournalEntriesPartialUpdate) | **Patch** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesRetrieve**](ExtrasAPI.md#ExtrasJournalEntriesRetrieve) | **Get** /api/extras/journal-entries/{id}/ | [**ExtrasJournalEntriesUpdate**](ExtrasAPI.md#ExtrasJournalEntriesUpdate) | **Put** /api/extras/journal-entries/{id}/ | -[**ExtrasObjectChangesList**](ExtrasAPI.md#ExtrasObjectChangesList) | **Get** /api/extras/object-changes/ | -[**ExtrasObjectChangesRetrieve**](ExtrasAPI.md#ExtrasObjectChangesRetrieve) | **Get** /api/extras/object-changes/{id}/ | +[**ExtrasNotificationGroupsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsBulkDestroy) | **Delete** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkPartialUpdate) | **Patch** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsBulkUpdate) | **Put** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsCreate**](ExtrasAPI.md#ExtrasNotificationGroupsCreate) | **Post** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsDestroy**](ExtrasAPI.md#ExtrasNotificationGroupsDestroy) | **Delete** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsList**](ExtrasAPI.md#ExtrasNotificationGroupsList) | **Get** /api/extras/notification-groups/ | +[**ExtrasNotificationGroupsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsPartialUpdate) | **Patch** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsRetrieve**](ExtrasAPI.md#ExtrasNotificationGroupsRetrieve) | **Get** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationGroupsUpdate**](ExtrasAPI.md#ExtrasNotificationGroupsUpdate) | **Put** /api/extras/notification-groups/{id}/ | +[**ExtrasNotificationsBulkDestroy**](ExtrasAPI.md#ExtrasNotificationsBulkDestroy) | **Delete** /api/extras/notifications/ | +[**ExtrasNotificationsBulkPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkPartialUpdate) | **Patch** /api/extras/notifications/ | +[**ExtrasNotificationsBulkUpdate**](ExtrasAPI.md#ExtrasNotificationsBulkUpdate) | **Put** /api/extras/notifications/ | +[**ExtrasNotificationsCreate**](ExtrasAPI.md#ExtrasNotificationsCreate) | **Post** /api/extras/notifications/ | +[**ExtrasNotificationsDestroy**](ExtrasAPI.md#ExtrasNotificationsDestroy) | **Delete** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsList**](ExtrasAPI.md#ExtrasNotificationsList) | **Get** /api/extras/notifications/ | +[**ExtrasNotificationsPartialUpdate**](ExtrasAPI.md#ExtrasNotificationsPartialUpdate) | **Patch** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsRetrieve**](ExtrasAPI.md#ExtrasNotificationsRetrieve) | **Get** /api/extras/notifications/{id}/ | +[**ExtrasNotificationsUpdate**](ExtrasAPI.md#ExtrasNotificationsUpdate) | **Put** /api/extras/notifications/{id}/ | [**ExtrasObjectTypesList**](ExtrasAPI.md#ExtrasObjectTypesList) | **Get** /api/extras/object-types/ | [**ExtrasObjectTypesRetrieve**](ExtrasAPI.md#ExtrasObjectTypesRetrieve) | **Get** /api/extras/object-types/{id}/ | [**ExtrasSavedFiltersBulkDestroy**](ExtrasAPI.md#ExtrasSavedFiltersBulkDestroy) | **Delete** /api/extras/saved-filters/ | @@ -122,6 +138,15 @@ Method | HTTP request | Description [**ExtrasScriptsPartialUpdate**](ExtrasAPI.md#ExtrasScriptsPartialUpdate) | **Patch** /api/extras/scripts/{id}/ | [**ExtrasScriptsRetrieve**](ExtrasAPI.md#ExtrasScriptsRetrieve) | **Get** /api/extras/scripts/{id}/ | [**ExtrasScriptsUpdate**](ExtrasAPI.md#ExtrasScriptsUpdate) | **Put** /api/extras/scripts/{id}/ | +[**ExtrasSubscriptionsBulkDestroy**](ExtrasAPI.md#ExtrasSubscriptionsBulkDestroy) | **Delete** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkPartialUpdate) | **Patch** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsBulkUpdate**](ExtrasAPI.md#ExtrasSubscriptionsBulkUpdate) | **Put** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsCreate**](ExtrasAPI.md#ExtrasSubscriptionsCreate) | **Post** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsDestroy**](ExtrasAPI.md#ExtrasSubscriptionsDestroy) | **Delete** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsList**](ExtrasAPI.md#ExtrasSubscriptionsList) | **Get** /api/extras/subscriptions/ | +[**ExtrasSubscriptionsPartialUpdate**](ExtrasAPI.md#ExtrasSubscriptionsPartialUpdate) | **Patch** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsRetrieve**](ExtrasAPI.md#ExtrasSubscriptionsRetrieve) | **Get** /api/extras/subscriptions/{id}/ | +[**ExtrasSubscriptionsUpdate**](ExtrasAPI.md#ExtrasSubscriptionsUpdate) | **Put** /api/extras/subscriptions/{id}/ | [**ExtrasTagsBulkDestroy**](ExtrasAPI.md#ExtrasTagsBulkDestroy) | **Delete** /api/extras/tags/ | [**ExtrasTagsBulkPartialUpdate**](ExtrasAPI.md#ExtrasTagsBulkPartialUpdate) | **Patch** /api/extras/tags/ | [**ExtrasTagsBulkUpdate**](ExtrasAPI.md#ExtrasTagsBulkUpdate) | **Put** /api/extras/tags/ | @@ -164,7 +189,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -228,7 +253,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -294,7 +319,7 @@ import ( ) func main() { - bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example"))} // []BookmarkRequest | + bookmarkRequest := []openapiclient.BookmarkRequest{*openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -360,7 +385,7 @@ import ( ) func main() { - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -764,7 +789,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this bookmark. - bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewUserRequest("Username_example")) // BookmarkRequest | + bookmarkRequest := *openapiclient.NewBookmarkRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // BookmarkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1146,7 +1171,7 @@ Name | Type | Description | Notes ## ExtrasConfigContextsList -> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedConfigContextList ExtrasConfigContextsList(ctx).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -1256,10 +1281,6 @@ func main() { regionN := []string{"Inner_example"} // []string | Region (slug) (optional) regionId := []int32{int32(123)} // []int32 | Region (optional) regionIdN := []int32{int32(123)} // []int32 | Region (optional) - role := []string{"Inner_example"} // []string | Role (slug) (optional) - roleN := []string{"Inner_example"} // []string | Role (slug) (optional) - roleId := []int32{int32(123)} // []int32 | Role (optional) - roleIdN := []int32{int32(123)} // []int32 | Role (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) siteGroup := []string{"Inner_example"} // []string | Site group (slug) (optional) @@ -1291,7 +1312,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasConfigContextsList(context.Background()).AutoSyncEnabled(autoSyncEnabled).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).DataFileId(dataFileId).DataFileIdN(dataFileIdN).DataSourceId(dataSourceId).DataSourceIdN(dataSourceIdN).DataSynced(dataSynced).DataSyncedEmpty(dataSyncedEmpty).DataSyncedGt(dataSyncedGt).DataSyncedGte(dataSyncedGte).DataSyncedLt(dataSyncedLt).DataSyncedLte(dataSyncedLte).DataSyncedN(dataSyncedN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).DeviceRole(deviceRole).DeviceRoleN(deviceRoleN).DeviceRoleId(deviceRoleId).DeviceRoleIdN(deviceRoleIdN).DeviceTypeId(deviceTypeId).DeviceTypeIdN(deviceTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).LocationN(locationN).LocationId(locationId).LocationIdN(locationIdN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Tag(tag).TagN(tagN).TagId(tagId).TagIdN(tagIdN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasConfigContextsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1402,10 +1423,6 @@ Name | Type | Description | Notes **regionN** | **[]string** | Region (slug) | **regionId** | **[]int32** | Region | **regionIdN** | **[]int32** | Region | - **role** | **[]string** | Role (slug) | - **roleN** | **[]string** | Role (slug) | - **roleId** | **[]int32** | Role | - **roleIdN** | **[]int32** | Role | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | **siteGroup** | **[]string** | Site group (slug) | @@ -1760,7 +1777,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1824,7 +1841,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1890,7 +1907,7 @@ import ( ) func main() { - configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example")} // []ConfigTemplateRequest | + configTemplateRequest := []openapiclient.ConfigTemplateRequest{*openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example")} // []ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1956,7 +1973,7 @@ import ( ) func main() { - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2356,7 +2373,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | format := openapiclient.dcim_devices_render_config_create_format_parameter("json") // DcimDevicesRenderConfigCreateFormatParameter | (optional) configuration := openapiclient.NewConfiguration() @@ -2500,7 +2517,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2572,7 +2589,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this config template. - configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example") // ConfigTemplateRequest | + configTemplateRequest := *openapiclient.NewConfigTemplateRequest("Name_example", "TemplateCode_example") // ConfigTemplateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3024,7 +3041,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldChoiceSetsList -> PaginatedCustomFieldChoiceSetList ExtrasCustomFieldChoiceSetsList(ctx).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedCustomFieldChoiceSetList ExtrasCustomFieldChoiceSetsList(ctx).BaseChoices(baseChoices).Choice(choice).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() @@ -3045,7 +3062,6 @@ import ( func main() { baseChoices := openapiclient.extras_custom_field_choice_sets_list_base_choices_parameter("IATA") // ExtrasCustomFieldChoiceSetsListBaseChoicesParameter | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) (optional) - baseChoicesN := openapiclient.extras_custom_field_choice_sets_list_base_choices_parameter("IATA") // ExtrasCustomFieldChoiceSetsListBaseChoicesParameter | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) (optional) choice := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) @@ -3101,7 +3117,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).BaseChoicesN(baseChoicesN).Choice(choice).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldChoiceSetsList(context.Background()).BaseChoices(baseChoices).Choice(choice).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).OrderAlphabetically(orderAlphabetically).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldChoiceSetsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3123,7 +3139,6 @@ Other parameters are passed through a pointer to a apiExtrasCustomFieldChoiceSet Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **baseChoices** | [**ExtrasCustomFieldChoiceSetsListBaseChoicesParameter**](ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md) | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | - **baseChoicesN** | [**ExtrasCustomFieldChoiceSetsListBaseChoicesParameter**](ExtrasCustomFieldChoiceSetsListBaseChoicesParameter.md) | Base set of predefined choices (optional) * `IATA` - IATA (Airport codes) * `ISO_3166` - ISO 3166 (Country codes) * `UN_LOCODE` - UN/LOCODE (Location codes) | **choice** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | @@ -3741,7 +3756,7 @@ Name | Type | Description | Notes ## ExtrasCustomFieldsList -> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomFieldList ExtrasCustomFieldsList(ctx).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UiEditable(uiEditable).UiVisible(uiVisible).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -3785,7 +3800,6 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) filterLogic := openapiclient.extras_custom_fields_list_filter_logic_parameter("disabled") // ExtrasCustomFieldsListFilterLogicParameter | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact (optional) - filterLogicN := openapiclient.extras_custom_fields_list_filter_logic_parameter("disabled") // ExtrasCustomFieldsListFilterLogicParameter | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact (optional) groupName := []string{"Inner_example"} // []string | (optional) groupNameEmpty := true // bool | (optional) groupNameIc := []string{"Inner_example"} // []string | (optional) @@ -3864,11 +3878,19 @@ func main() { searchWeightLte := []int32{int32(123)} // []int32 | (optional) searchWeightN := []int32{int32(123)} // []int32 | (optional) type_ := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) - typeN := []string{"Inner_example"} // []string | The type of data this custom field holds (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeIe := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeIew := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeIsw := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeN := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeNic := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeNie := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeNiew := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) + typeNisw := []openapiclient.ExtrasCustomFieldsListTypeIcParameterInner{openapiclient.extras_custom_fields_list_type__ic_parameter_inner("boolean")} // []ExtrasCustomFieldsListTypeIcParameterInner | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects (optional) uiEditable := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) - uiEditableN := openapiclient.extras_custom_fields_list_ui_editable_parameter("hidden") // ExtrasCustomFieldsListUiEditableParameter | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden (optional) uiVisible := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) - uiVisibleN := openapiclient.extras_custom_fields_list_ui_visible_parameter("always") // ExtrasCustomFieldsListUiVisibleParameter | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden (optional) + unique := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) validationMaximum := []int32{int32(123)} // []int32 | (optional) validationMaximumEmpty := true // bool | (optional) @@ -3905,7 +3927,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).FilterLogicN(filterLogicN).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeN(typeN).UiEditable(uiEditable).UiEditableN(uiEditableN).UiVisible(uiVisible).UiVisibleN(uiVisibleN).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomFieldsList(context.Background()).ChoiceSet(choiceSet).ChoiceSetN(choiceSetN).ChoiceSetId(choiceSetId).ChoiceSetIdN(choiceSetIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).FilterLogic(filterLogic).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsCloneable(isCloneable).Label(label).LabelEmpty(labelEmpty).LabelIc(labelIc).LabelIe(labelIe).LabelIew(labelIew).LabelIsw(labelIsw).LabelN(labelN).LabelNic(labelNic).LabelNie(labelNie).LabelNiew(labelNiew).LabelNisw(labelNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RelatedObjectTypeId(relatedObjectTypeId).RelatedObjectTypeIdN(relatedObjectTypeIdN).Required(required).SearchWeight(searchWeight).SearchWeightEmpty(searchWeightEmpty).SearchWeightGt(searchWeightGt).SearchWeightGte(searchWeightGte).SearchWeightLt(searchWeightLt).SearchWeightLte(searchWeightLte).SearchWeightN(searchWeightN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UiEditable(uiEditable).UiVisible(uiVisible).Unique(unique).UpdatedByRequest(updatedByRequest).ValidationMaximum(validationMaximum).ValidationMaximumEmpty(validationMaximumEmpty).ValidationMaximumGt(validationMaximumGt).ValidationMaximumGte(validationMaximumGte).ValidationMaximumLt(validationMaximumLt).ValidationMaximumLte(validationMaximumLte).ValidationMaximumN(validationMaximumN).ValidationMinimum(validationMinimum).ValidationMinimumEmpty(validationMinimumEmpty).ValidationMinimumGt(validationMinimumGt).ValidationMinimumGte(validationMinimumGte).ValidationMinimumLt(validationMinimumLt).ValidationMinimumLte(validationMinimumLte).ValidationMinimumN(validationMinimumN).ValidationRegex(validationRegex).ValidationRegexEmpty(validationRegexEmpty).ValidationRegexIc(validationRegexIc).ValidationRegexIe(validationRegexIe).ValidationRegexIew(validationRegexIew).ValidationRegexIsw(validationRegexIsw).ValidationRegexN(validationRegexN).ValidationRegexNic(validationRegexNic).ValidationRegexNie(validationRegexNie).ValidationRegexNiew(validationRegexNiew).ValidationRegexNisw(validationRegexNisw).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomFieldsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3950,7 +3972,6 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **filterLogic** | [**ExtrasCustomFieldsListFilterLogicParameter**](ExtrasCustomFieldsListFilterLogicParameter.md) | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | - **filterLogicN** | [**ExtrasCustomFieldsListFilterLogicParameter**](ExtrasCustomFieldsListFilterLogicParameter.md) | Loose matches any instance of a given string; exact matches the entire field. * `disabled` - Disabled * `loose` - Loose * `exact` - Exact | **groupName** | **[]string** | | **groupNameEmpty** | **bool** | | **groupNameIc** | **[]string** | | @@ -4029,11 +4050,19 @@ Name | Type | Description | Notes **searchWeightLte** | **[]int32** | | **searchWeightN** | **[]int32** | | **type_** | **[]string** | The type of data this custom field holds | - **typeN** | **[]string** | The type of data this custom field holds | + **typeEmpty** | **bool** | | + **typeIc** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeIe** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeIew** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeIsw** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeN** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeNic** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeNie** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeNiew** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | + **typeNisw** | [**[]ExtrasCustomFieldsListTypeIcParameterInner**](ExtrasCustomFieldsListTypeIcParameterInner.md) | The type of data this custom field holds * `text` - Text * `longtext` - Text (long) * `integer` - Integer * `decimal` - Decimal * `boolean` - Boolean (true/false) * `date` - Date * `datetime` - Date & time * `url` - URL * `json` - JSON * `select` - Selection * `multiselect` - Multiple selection * `object` - Object * `multiobject` - Multiple objects | **uiEditable** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | - **uiEditableN** | [**ExtrasCustomFieldsListUiEditableParameter**](ExtrasCustomFieldsListUiEditableParameter.md) | Specifies whether the custom field value can be edited in the UI * `yes` - Yes * `no` - No * `hidden` - Hidden | **uiVisible** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | - **uiVisibleN** | [**ExtrasCustomFieldsListUiVisibleParameter**](ExtrasCustomFieldsListUiVisibleParameter.md) | Specifies whether the custom field is displayed in the UI * `always` - Always * `if-set` - If set * `hidden` - Hidden | + **unique** | **bool** | | **updatedByRequest** | **string** | | **validationMaximum** | **[]int32** | | **validationMaximumEmpty** | **bool** | | @@ -4632,7 +4661,7 @@ Name | Type | Description | Notes ## ExtrasCustomLinksList -> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ButtonClass(buttonClass).ButtonClassN(buttonClassN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> PaginatedCustomLinkList ExtrasCustomLinksList(ctx).ButtonClass(buttonClass).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() @@ -4652,8 +4681,7 @@ import ( ) func main() { - buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) - buttonClassN := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) + buttonClass := openapiclient.extras_custom_links_list_button_class_parameter("black") // ExtrasCustomLinksListButtonClassParameter | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -4748,7 +4776,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).ButtonClass(buttonClass).ButtonClassN(buttonClassN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasCustomLinksList(context.Background()).ButtonClass(buttonClass).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Enabled(enabled).GroupName(groupName).GroupNameEmpty(groupNameEmpty).GroupNameIc(groupNameIc).GroupNameIe(groupNameIe).GroupNameIew(groupNameIew).GroupNameIsw(groupNameIsw).GroupNameN(groupNameN).GroupNameNic(groupNameNic).GroupNameNie(groupNameNie).GroupNameNiew(groupNameNiew).GroupNameNisw(groupNameNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LinkText(linkText).LinkTextIc(linkTextIc).LinkTextIe(linkTextIe).LinkTextIew(linkTextIew).LinkTextIsw(linkTextIsw).LinkTextN(linkTextN).LinkTextNic(linkTextNic).LinkTextNie(linkTextNie).LinkTextNiew(linkTextNiew).LinkTextNisw(linkTextNisw).LinkUrl(linkUrl).LinkUrlIc(linkUrlIc).LinkUrlIe(linkUrlIe).LinkUrlIew(linkUrlIew).LinkUrlIsw(linkUrlIsw).LinkUrlN(linkUrlN).LinkUrlNic(linkUrlNic).LinkUrlNie(linkUrlNie).LinkUrlNiew(linkUrlNiew).LinkUrlNisw(linkUrlNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NewWindow(newWindow).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).UpdatedByRequest(updatedByRequest).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasCustomLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4769,8 +4797,7 @@ Other parameters are passed through a pointer to a apiExtrasCustomLinksListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | - **buttonClassN** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | + **buttonClass** | [**ExtrasCustomLinksListButtonClassParameter**](ExtrasCustomLinksListButtonClassParameter.md) | The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5368,7 +5395,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5432,7 +5459,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5498,7 +5525,7 @@ import ( ) func main() { - eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | + eventRuleRequest := []openapiclient.EventRuleRequest{*openapiclient.NewEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, openapiclient.EventRule_action_type_value("webhook"), "ActionObjectType_example")} // []EventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5564,7 +5591,7 @@ import ( ) func main() { - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -5679,7 +5706,7 @@ Name | Type | Description | Notes ## ExtrasEventRulesList -> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedEventRuleList ExtrasEventRulesList(ctx).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeEmpty(actionTypeEmpty).ActionTypeIc(actionTypeIc).ActionTypeIe(actionTypeIe).ActionTypeIew(actionTypeIew).ActionTypeIsw(actionTypeIsw).ActionTypeN(actionTypeN).ActionTypeNic(actionTypeNic).ActionTypeNie(actionTypeNie).ActionTypeNiew(actionTypeNiew).ActionTypeNisw(actionTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -5709,7 +5736,16 @@ func main() { actionObjectType := "actionObjectType_example" // string | (optional) actionObjectTypeN := "actionObjectTypeN_example" // string | (optional) actionType := []string{"Inner_example"} // []string | (optional) - actionTypeN := []string{"Inner_example"} // []string | (optional) + actionTypeEmpty := true // bool | (optional) + actionTypeIc := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeIe := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeIew := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeIsw := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeN := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeNic := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeNie := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeNiew := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) + actionTypeNisw := []openapiclient.ExtrasEventRulesListActionTypeIcParameterInner{openapiclient.extras_event_rules_list_action_type__ic_parameter_inner("notification")} // []ExtrasEventRulesListActionTypeIcParameterInner | * `webhook` - Webhook * `script` - Script * `notification` - Notification (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -5730,6 +5766,7 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) enabled := true // bool | (optional) + eventType := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -5774,16 +5811,11 @@ func main() { q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) - typeCreate := true // bool | (optional) - typeDelete := true // bool | (optional) - typeJobEnd := true // bool | (optional) - typeJobStart := true // bool | (optional) - typeUpdate := true // bool | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeN(actionTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).TypeCreate(typeCreate).TypeDelete(typeDelete).TypeJobEnd(typeJobEnd).TypeJobStart(typeJobStart).TypeUpdate(typeUpdate).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasEventRulesList(context.Background()).ActionObjectId(actionObjectId).ActionObjectIdEmpty(actionObjectIdEmpty).ActionObjectIdGt(actionObjectIdGt).ActionObjectIdGte(actionObjectIdGte).ActionObjectIdLt(actionObjectIdLt).ActionObjectIdLte(actionObjectIdLte).ActionObjectIdN(actionObjectIdN).ActionObjectType(actionObjectType).ActionObjectTypeN(actionObjectTypeN).ActionType(actionType).ActionTypeEmpty(actionTypeEmpty).ActionTypeIc(actionTypeIc).ActionTypeIe(actionTypeIe).ActionTypeIew(actionTypeIew).ActionTypeIsw(actionTypeIsw).ActionTypeN(actionTypeN).ActionTypeNic(actionTypeNic).ActionTypeNie(actionTypeNie).ActionTypeNiew(actionTypeNiew).ActionTypeNisw(actionTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).EventType(eventType).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasEventRulesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5814,7 +5846,16 @@ Name | Type | Description | Notes **actionObjectType** | **string** | | **actionObjectTypeN** | **string** | | **actionType** | **[]string** | | - **actionTypeN** | **[]string** | | + **actionTypeEmpty** | **bool** | | + **actionTypeIc** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeIe** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeIew** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeIsw** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeN** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeNic** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeNie** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeNiew** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | + **actionTypeNisw** | [**[]ExtrasEventRulesListActionTypeIcParameterInner**](ExtrasEventRulesListActionTypeIcParameterInner.md) | * `webhook` - Webhook * `script` - Script * `notification` - Notification | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -5835,6 +5876,7 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **enabled** | **bool** | | + **eventType** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -5879,11 +5921,6 @@ Name | Type | Description | Notes **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | - **typeCreate** | **bool** | | - **typeDelete** | **bool** | | - **typeJobEnd** | **bool** | | - **typeJobStart** | **bool** | | - **typeUpdate** | **bool** | | **updatedByRequest** | **string** | | ### Return type @@ -6068,7 +6105,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this event rule. - writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", "ActionObjectType_example") // WritableEventRuleRequest | + writableEventRuleRequest := *openapiclient.NewWritableEventRuleRequest([]string{"ObjectTypes_example"}, "Name_example", []openapiclient.EventRuleEventTypesInner{openapiclient.EventRule_event_types_inner("object_created")}, "ActionObjectType_example") // WritableEventRuleRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7014,7 +7051,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7078,7 +7115,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7144,7 +7181,7 @@ import ( ) func main() { - imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123))} // []ImageAttachmentRequest | + imageAttachmentRequest := []openapiclient.ImageAttachmentRequest{*openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO")} // []ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7210,7 +7247,7 @@ import ( ) func main() { - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7680,7 +7717,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this image attachment. - imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO", int32(123), int32(123)) // ImageAttachmentRequest | + imageAttachmentRequest := *openapiclient.NewImageAttachmentRequest("ObjectType_example", int64(123), "TODO") // ImageAttachmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -8062,7 +8099,7 @@ Name | Type | Description | Notes ## ExtrasJournalEntriesList -> PaginatedJournalEntryList ExtrasJournalEntriesList(ctx).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedJournalEntryList ExtrasJournalEntriesList(ctx).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindEmpty(kindEmpty).KindIc(kindIc).KindIe(kindIe).KindIew(kindIew).KindIsw(kindIsw).KindN(kindN).KindNic(kindNic).KindNie(kindNie).KindNiew(kindNiew).KindNisw(kindNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -8108,7 +8145,16 @@ func main() { idLte := []int32{int32(123)} // []int32 | (optional) idN := []int32{int32(123)} // []int32 | (optional) kind := []string{"Inner_example"} // []string | (optional) - kindN := []string{"Inner_example"} // []string | (optional) + kindEmpty := true // bool | (optional) + kindIc := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindIe := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindIew := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindIsw := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindN := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindNic := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindNie := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindNiew := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) + kindNisw := []openapiclient.ExtrasJournalEntriesListKindIcParameterInner{openapiclient.extras_journal_entries_list_kind__ic_parameter_inner("danger")} // []ExtrasJournalEntriesListKindIcParameterInner | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -8127,7 +8173,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindN(kindN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasJournalEntriesList(context.Background()).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedObjectTypeId(assignedObjectTypeId).AssignedObjectTypeIdN(assignedObjectTypeIdN).CreatedAfter(createdAfter).CreatedBefore(createdBefore).CreatedBy(createdBy).CreatedByN(createdByN).CreatedById(createdById).CreatedByIdN(createdByIdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Kind(kind).KindEmpty(kindEmpty).KindIc(kindIc).KindIe(kindIe).KindIew(kindIew).KindIsw(kindIsw).KindN(kindN).KindNic(kindNic).KindNie(kindNie).KindNiew(kindNiew).KindNisw(kindNisw).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasJournalEntriesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -8174,7 +8220,16 @@ Name | Type | Description | Notes **idLte** | **[]int32** | | **idN** | **[]int32** | | **kind** | **[]string** | | - **kindN** | **[]string** | | + **kindEmpty** | **bool** | | + **kindIc** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindIe** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindIew** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindIsw** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindN** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindNic** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindNie** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindNiew** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | + **kindNisw** | [**[]ExtrasJournalEntriesListKindIcParameterInner**](ExtrasJournalEntriesListKindIcParameterInner.md) | * `info` - Info * `success` - Success * `warning` - Warning * `danger` - Danger | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -8423,9 +8478,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectChangesList +## ExtrasNotificationGroupsBulkDestroy -> PaginatedObjectChangeList ExtrasObjectChangesList(ctx).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() +> ExtrasNotificationGroupsBulkDestroy(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8440,83 +8495,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - action := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - actionN := openapiclient.extras_object_changes_list_action_parameter("create") // ExtrasObjectChangesListActionParameter | * `create` - Created * `update` - Updated * `delete` - Deleted (optional) - changedObjectId := []int32{int32(123)} // []int32 | (optional) - changedObjectIdEmpty := true // bool | (optional) - changedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - changedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - changedObjectIdN := []int32{int32(123)} // []int32 | (optional) - changedObjectType := "changedObjectType_example" // string | (optional) - changedObjectTypeN := "changedObjectTypeN_example" // string | (optional) - changedObjectTypeId := []int32{int32(123)} // []int32 | (optional) - changedObjectTypeIdN := []int32{int32(123)} // []int32 | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - objectRepr := []string{"Inner_example"} // []string | (optional) - objectReprEmpty := true // bool | (optional) - objectReprIc := []string{"Inner_example"} // []string | (optional) - objectReprIe := []string{"Inner_example"} // []string | (optional) - objectReprIew := []string{"Inner_example"} // []string | (optional) - objectReprIsw := []string{"Inner_example"} // []string | (optional) - objectReprN := []string{"Inner_example"} // []string | (optional) - objectReprNic := []string{"Inner_example"} // []string | (optional) - objectReprNie := []string{"Inner_example"} // []string | (optional) - objectReprNiew := []string{"Inner_example"} // []string | (optional) - objectReprNisw := []string{"Inner_example"} // []string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - relatedObjectId := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdEmpty := true // bool | (optional) - relatedObjectIdGt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdGte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLt := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdLte := []int32{int32(123)} // []int32 | (optional) - relatedObjectIdN := []int32{int32(123)} // []int32 | (optional) - relatedObjectType := int32(56) // int32 | (optional) - relatedObjectTypeN := int32(56) // int32 | (optional) - requestId := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - timeAfter := time.Now() // time.Time | (optional) - timeBefore := time.Now() // time.Time | (optional) - user := []string{"Inner_example"} // []string | User name (optional) - userN := []string{"Inner_example"} // []string | User name (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userName := []string{"Inner_example"} // []string | (optional) - userNameEmpty := true // bool | (optional) - userNameIc := []string{"Inner_example"} // []string | (optional) - userNameIe := []string{"Inner_example"} // []string | (optional) - userNameIew := []string{"Inner_example"} // []string | (optional) - userNameIsw := []string{"Inner_example"} // []string | (optional) - userNameN := []string{"Inner_example"} // []string | (optional) - userNameNic := []string{"Inner_example"} // []string | (optional) - userNameNie := []string{"Inner_example"} // []string | (optional) - userNameNiew := []string{"Inner_example"} // []string | (optional) - userNameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesList(context.Background()).Action(action).ActionN(actionN).ChangedObjectId(changedObjectId).ChangedObjectIdEmpty(changedObjectIdEmpty).ChangedObjectIdGt(changedObjectIdGt).ChangedObjectIdGte(changedObjectIdGte).ChangedObjectIdLt(changedObjectIdLt).ChangedObjectIdLte(changedObjectIdLte).ChangedObjectIdN(changedObjectIdN).ChangedObjectType(changedObjectType).ChangedObjectTypeN(changedObjectTypeN).ChangedObjectTypeId(changedObjectTypeId).ChangedObjectTypeIdN(changedObjectTypeIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).ObjectRepr(objectRepr).ObjectReprEmpty(objectReprEmpty).ObjectReprIc(objectReprIc).ObjectReprIe(objectReprIe).ObjectReprIew(objectReprIew).ObjectReprIsw(objectReprIsw).ObjectReprN(objectReprN).ObjectReprNic(objectReprNic).ObjectReprNie(objectReprNie).ObjectReprNiew(objectReprNiew).ObjectReprNisw(objectReprNisw).Offset(offset).Ordering(ordering).Q(q).RelatedObjectId(relatedObjectId).RelatedObjectIdEmpty(relatedObjectIdEmpty).RelatedObjectIdGt(relatedObjectIdGt).RelatedObjectIdGte(relatedObjectIdGte).RelatedObjectIdLt(relatedObjectIdLt).RelatedObjectIdLte(relatedObjectIdLte).RelatedObjectIdN(relatedObjectIdN).RelatedObjectType(relatedObjectType).RelatedObjectTypeN(relatedObjectTypeN).RequestId(requestId).TimeAfter(timeAfter).TimeBefore(timeBefore).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).UserName(userName).UserNameEmpty(userNameEmpty).UserNameIc(userNameIc).UserNameIe(userNameIe).UserNameIew(userNameIew).UserNameIsw(userNameIsw).UserNameN(userNameN).UserNameNic(userNameNic).UserNameNie(userNameNie).UserNameNiew(userNameNiew).UserNameNisw(userNameNisw).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkDestroy(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectChangesList`: PaginatedObjectChangeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesList`: %v\n", resp) } ``` @@ -8526,77 +8517,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **action** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **actionN** | [**ExtrasObjectChangesListActionParameter**](ExtrasObjectChangesListActionParameter.md) | * `create` - Created * `update` - Updated * `delete` - Deleted | - **changedObjectId** | **[]int32** | | - **changedObjectIdEmpty** | **bool** | | - **changedObjectIdGt** | **[]int32** | | - **changedObjectIdGte** | **[]int32** | | - **changedObjectIdLt** | **[]int32** | | - **changedObjectIdLte** | **[]int32** | | - **changedObjectIdN** | **[]int32** | | - **changedObjectType** | **string** | | - **changedObjectTypeN** | **string** | | - **changedObjectTypeId** | **[]int32** | | - **changedObjectTypeIdN** | **[]int32** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **limit** | **int32** | Number of results to return per page. | - **objectRepr** | **[]string** | | - **objectReprEmpty** | **bool** | | - **objectReprIc** | **[]string** | | - **objectReprIe** | **[]string** | | - **objectReprIew** | **[]string** | | - **objectReprIsw** | **[]string** | | - **objectReprN** | **[]string** | | - **objectReprNic** | **[]string** | | - **objectReprNie** | **[]string** | | - **objectReprNiew** | **[]string** | | - **objectReprNisw** | **[]string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **relatedObjectId** | **[]int32** | | - **relatedObjectIdEmpty** | **bool** | | - **relatedObjectIdGt** | **[]int32** | | - **relatedObjectIdGte** | **[]int32** | | - **relatedObjectIdLt** | **[]int32** | | - **relatedObjectIdLte** | **[]int32** | | - **relatedObjectIdN** | **[]int32** | | - **relatedObjectType** | **int32** | | - **relatedObjectTypeN** | **int32** | | - **requestId** | **string** | | - **timeAfter** | **time.Time** | | - **timeBefore** | **time.Time** | | - **user** | **[]string** | User name | - **userN** | **[]string** | User name | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **userName** | **[]string** | | - **userNameEmpty** | **bool** | | - **userNameIc** | **[]string** | | - **userNameIe** | **[]string** | | - **userNameIew** | **[]string** | | - **userNameIsw** | **[]string** | | - **userNameN** | **[]string** | | - **userNameNic** | **[]string** | | - **userNameNie** | **[]string** | | - **userNameNiew** | **[]string** | | - **userNameNisw** | **[]string** | | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectChangeList**](PaginatedObjectChangeList.md) + (empty response body) ### Authorization @@ -8604,17 +8534,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: application/json +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasObjectChangesRetrieve +## ExtrasNotificationGroupsBulkPartialUpdate -> ObjectChange ExtrasObjectChangesRetrieve(ctx, id).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkPartialUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8633,40 +8563,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object change. + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectChangesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectChangesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectChangesRetrieve`: ObjectChange - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectChangesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkPartialUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object change. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectChangesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectChange**](ObjectChange.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8674,7 +8600,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8682,9 +8608,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesList +## ExtrasNotificationGroupsBulkUpdate -> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() +> []NotificationGroup ExtrasNotificationGroupsBulkUpdate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8703,23 +8629,17 @@ import ( ) func main() { - appLabel := "appLabel_example" // string | (optional) - id := int32(56) // int32 | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - model := "model_example" // string | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) + notificationGroupRequest := []openapiclient.NotificationGroupRequest{*openapiclient.NewNotificationGroupRequest("Name_example")} // []NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsBulkUpdate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) + // response from `ExtrasNotificationGroupsBulkUpdate`: []NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsBulkUpdate`: %v\n", resp) } ``` @@ -8729,22 +8649,16 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **appLabel** | **string** | | - **id** | **int32** | | - **limit** | **int32** | Number of results to return per page. | - **model** | **string** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | + **notificationGroupRequest** | [**[]NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) +[**[]NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8752,7 +8666,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8760,9 +8674,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasObjectTypesRetrieve +## ExtrasNotificationGroupsCreate -> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsCreate(ctx).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -8781,40 +8695,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this object type. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsCreate(context.Background()).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasObjectTypesRetrieve`: ObjectType - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) + // response from `ExtrasNotificationGroupsCreate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsCreate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this object type. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsCreateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type -[**ObjectType**](ObjectType.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -8822,7 +8732,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8830,9 +8740,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkDestroy +## ExtrasNotificationGroupsDestroy -> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> ExtrasNotificationGroupsDestroy(ctx, id).Execute() @@ -8851,13 +8761,13 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -8866,15 +8776,19 @@ func main() { ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type @@ -8886,7 +8800,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8894,9 +8808,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkPartialUpdate +## ExtrasNotificationGroupsList -> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> PaginatedNotificationGroupList ExtrasNotificationGroupsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -8915,17 +8829,19 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) + // response from `ExtrasNotificationGroupsList`: PaginatedNotificationGroupList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsList`: %v\n", resp) } ``` @@ -8935,16 +8851,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**PaginatedNotificationGroupList**](PaginatedNotificationGroupList.md) ### Authorization @@ -8952,7 +8870,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -8960,9 +8878,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersBulkUpdate +## ExtrasNotificationGroupsPartialUpdate -> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsPartialUpdate(ctx, id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() @@ -8981,36 +8899,42 @@ import ( ) func main() { - savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. + patchedNotificationGroupRequest := *openapiclient.NewPatchedNotificationGroupRequest() // PatchedNotificationGroupRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsPartialUpdate(context.Background(), id).PatchedNotificationGroupRequest(patchedNotificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) + // response from `ExtrasNotificationGroupsPartialUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsPartialUpdate`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + + **patchedNotificationGroupRequest** | [**PatchedNotificationGroupRequest**](PatchedNotificationGroupRequest.md) | | ### Return type -[**[]SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9026,9 +8950,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersCreate +## ExtrasNotificationGroupsRetrieve -> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() +> NotificationGroup ExtrasNotificationGroupsRetrieve(ctx, id).Execute() @@ -9047,36 +8971,40 @@ import ( ) func main() { - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + id := int32(56) // int32 | A unique integer value identifying this notification group. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersCreate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) + // response from `ExtrasNotificationGroupsRetrieve`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsRetrieve`: %v\n", resp) } ``` ### Path Parameters +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + ### Return type -[**SavedFilter**](SavedFilter.md) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9084,7 +9012,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: application/json, multipart/form-data +- **Content-Type**: Not defined - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9092,9 +9020,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersDestroy +## ExtrasNotificationGroupsUpdate -> ExtrasSavedFiltersDestroy(ctx, id).Execute() +> NotificationGroup ExtrasNotificationGroupsUpdate(ctx, id).NotificationGroupRequest(notificationGroupRequest).Execute() @@ -9113,15 +9041,18 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + id := int32(56) // int32 | A unique integer value identifying this notification group. + notificationGroupRequest := *openapiclient.NewNotificationGroupRequest("Name_example") // NotificationGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationGroupsUpdate(context.Background(), id).NotificationGroupRequest(notificationGroupRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationGroupsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } + // response from `ExtrasNotificationGroupsUpdate`: NotificationGroup + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationGroupsUpdate`: %v\n", resp) } ``` @@ -9131,20 +9062,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | +**id** | **int32** | A unique integer value identifying this notification group. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationGroupsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **notificationGroupRequest** | [**NotificationGroupRequest**](NotificationGroupRequest.md) | | ### Return type - (empty response body) +[**NotificationGroup**](NotificationGroup.md) ### Authorization @@ -9152,17 +9084,17 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined -- **Accept**: Not defined +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersList +## ExtrasNotificationsBulkDestroy -> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() +> ExtrasNotificationsBulkDestroy(ctx).NotificationRequest(notificationRequest).Execute() @@ -9177,108 +9109,19 @@ import ( "context" "fmt" "os" - "time" openapiclient "github.com/netbox-community/go-netbox/v4" ) func main() { - created := []time.Time{time.Now()} // []time.Time | (optional) - createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) - createdGt := []time.Time{time.Now()} // []time.Time | (optional) - createdGte := []time.Time{time.Now()} // []time.Time | (optional) - createdLt := []time.Time{time.Now()} // []time.Time | (optional) - createdLte := []time.Time{time.Now()} // []time.Time | (optional) - createdN := []time.Time{time.Now()} // []time.Time | (optional) - createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - description := []string{"Inner_example"} // []string | (optional) - descriptionEmpty := true // bool | (optional) - descriptionIc := []string{"Inner_example"} // []string | (optional) - descriptionIe := []string{"Inner_example"} // []string | (optional) - descriptionIew := []string{"Inner_example"} // []string | (optional) - descriptionIsw := []string{"Inner_example"} // []string | (optional) - descriptionN := []string{"Inner_example"} // []string | (optional) - descriptionNic := []string{"Inner_example"} // []string | (optional) - descriptionNie := []string{"Inner_example"} // []string | (optional) - descriptionNiew := []string{"Inner_example"} // []string | (optional) - descriptionNisw := []string{"Inner_example"} // []string | (optional) - enabled := true // bool | (optional) - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) - lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) - limit := int32(56) // int32 | Number of results to return per page. (optional) - modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) - objectType := "objectType_example" // string | (optional) - objectTypeIc := "objectTypeIc_example" // string | (optional) - objectTypeIe := "objectTypeIe_example" // string | (optional) - objectTypeIew := "objectTypeIew_example" // string | (optional) - objectTypeIsw := "objectTypeIsw_example" // string | (optional) - objectTypeN := "objectTypeN_example" // string | (optional) - objectTypeNic := "objectTypeNic_example" // string | (optional) - objectTypeNie := "objectTypeNie_example" // string | (optional) - objectTypeNiew := "objectTypeNiew_example" // string | (optional) - objectTypeNisw := "objectTypeNisw_example" // string | (optional) - objectTypeId := []int32{int32(123)} // []int32 | (optional) - objectTypeIdN := []int32{int32(123)} // []int32 | (optional) - offset := int32(56) // int32 | The initial index from which to return the results. (optional) - ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) - shared := true // bool | (optional) - slug := []string{"Inner_example"} // []string | (optional) - slugEmpty := true // bool | (optional) - slugIc := []string{"Inner_example"} // []string | (optional) - slugIe := []string{"Inner_example"} // []string | (optional) - slugIew := []string{"Inner_example"} // []string | (optional) - slugIsw := []string{"Inner_example"} // []string | (optional) - slugN := []string{"Inner_example"} // []string | (optional) - slugNic := []string{"Inner_example"} // []string | (optional) - slugNie := []string{"Inner_example"} // []string | (optional) - slugNiew := []string{"Inner_example"} // []string | (optional) - slugNisw := []string{"Inner_example"} // []string | (optional) - updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - usable := true // bool | (optional) - user := []string{"Inner_example"} // []string | User (name) (optional) - userN := []string{"Inner_example"} // []string | User (name) (optional) - userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) - userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) - weight := []int32{int32(123)} // []int32 | (optional) - weightEmpty := true // bool | (optional) - weightGt := []int32{int32(123)} // []int32 | (optional) - weightGte := []int32{int32(123)} // []int32 | (optional) - weightLt := []int32{int32(123)} // []int32 | (optional) - weightLte := []int32{int32(123)} // []int32 | (optional) - weightN := []int32{int32(123)} // []int32 | (optional) + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkDestroy(context.Background()).NotificationRequest(notificationRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) } ``` @@ -9288,102 +9131,1954 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsBulkPartialUpdate + +> []Notification ExtrasNotificationsBulkPartialUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkPartialUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkPartialUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsBulkUpdate + +> []Notification ExtrasNotificationsBulkUpdate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := []openapiclient.NotificationRequest{*openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created"))} // []NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsBulkUpdate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsBulkUpdate`: []Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**[]NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**[]Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsCreate + +> Notification ExtrasNotificationsCreate(ctx).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsCreate(context.Background()).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsCreate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsDestroy + +> ExtrasNotificationsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasNotificationsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsList + +> PaginatedNotificationList ExtrasNotificationsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + limit := int32(56) // int32 | Number of results to return per page. (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsList`: PaginatedNotificationList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **limit** | **int32** | Number of results to return per page. | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + +### Return type + +[**PaginatedNotificationList**](PaginatedNotificationList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsPartialUpdate + +> Notification ExtrasNotificationsPartialUpdate(ctx, id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + patchedNotificationRequest := *openapiclient.NewPatchedNotificationRequest() // PatchedNotificationRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsPartialUpdate(context.Background(), id).PatchedNotificationRequest(patchedNotificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsPartialUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedNotificationRequest** | [**PatchedNotificationRequest**](PatchedNotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsRetrieve + +> Notification ExtrasNotificationsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsRetrieve`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasNotificationsUpdate + +> Notification ExtrasNotificationsUpdate(ctx, id).NotificationRequest(notificationRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this notification. + notificationRequest := *openapiclient.NewNotificationRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"), openapiclient.Event("object_created")) // NotificationRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasNotificationsUpdate(context.Background(), id).NotificationRequest(notificationRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasNotificationsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasNotificationsUpdate`: Notification + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasNotificationsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this notification. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasNotificationsUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **notificationRequest** | [**NotificationRequest**](NotificationRequest.md) | | + +### Return type + +[**Notification**](Notification.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasObjectTypesList + +> PaginatedObjectTypeList ExtrasObjectTypesList(ctx).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + appLabel := "appLabel_example" // string | (optional) + id := int32(56) // int32 | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + model := "model_example" // string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesList(context.Background()).AppLabel(appLabel).Id(id).Limit(limit).Model(model).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesList`: PaginatedObjectTypeList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **appLabel** | **string** | | + **id** | **int32** | | + **limit** | **int32** | Number of results to return per page. | + **model** | **string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + +### Return type + +[**PaginatedObjectTypeList**](PaginatedObjectTypeList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasObjectTypesRetrieve + +> ObjectType ExtrasObjectTypesRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this object type. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasObjectTypesRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasObjectTypesRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasObjectTypesRetrieve`: ObjectType + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasObjectTypesRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this object type. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasObjectTypesRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**ObjectType**](ObjectType.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkDestroy + +> ExtrasSavedFiltersBulkDestroy(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkDestroy(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkPartialUpdate + +> []SavedFilter ExtrasSavedFiltersBulkPartialUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkPartialUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersBulkUpdate + +> []SavedFilter ExtrasSavedFiltersBulkUpdate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := []openapiclient.SavedFilterRequest{*openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123))} // []SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersBulkUpdate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersBulkUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersBulkUpdate`: []SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersBulkUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersBulkUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**[]SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**[]SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersCreate + +> SavedFilter ExtrasSavedFiltersCreate(ctx).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersCreate(context.Background()).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersCreate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersCreate`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersCreateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersDestroy + +> ExtrasSavedFiltersDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersList + +> PaginatedSavedFilterList ExtrasSavedFiltersList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + "time" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + created := []time.Time{time.Now()} // []time.Time | (optional) + createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) + createdGt := []time.Time{time.Now()} // []time.Time | (optional) + createdGte := []time.Time{time.Now()} // []time.Time | (optional) + createdLt := []time.Time{time.Now()} // []time.Time | (optional) + createdLte := []time.Time{time.Now()} // []time.Time | (optional) + createdN := []time.Time{time.Now()} // []time.Time | (optional) + createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + description := []string{"Inner_example"} // []string | (optional) + descriptionEmpty := true // bool | (optional) + descriptionIc := []string{"Inner_example"} // []string | (optional) + descriptionIe := []string{"Inner_example"} // []string | (optional) + descriptionIew := []string{"Inner_example"} // []string | (optional) + descriptionIsw := []string{"Inner_example"} // []string | (optional) + descriptionN := []string{"Inner_example"} // []string | (optional) + descriptionNic := []string{"Inner_example"} // []string | (optional) + descriptionNie := []string{"Inner_example"} // []string | (optional) + descriptionNiew := []string{"Inner_example"} // []string | (optional) + descriptionNisw := []string{"Inner_example"} // []string | (optional) + enabled := true // bool | (optional) + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedGte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLt := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedLte := []time.Time{time.Now()} // []time.Time | (optional) + lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + objectType := "objectType_example" // string | (optional) + objectTypeIc := "objectTypeIc_example" // string | (optional) + objectTypeIe := "objectTypeIe_example" // string | (optional) + objectTypeIew := "objectTypeIew_example" // string | (optional) + objectTypeIsw := "objectTypeIsw_example" // string | (optional) + objectTypeN := "objectTypeN_example" // string | (optional) + objectTypeNic := "objectTypeNic_example" // string | (optional) + objectTypeNie := "objectTypeNie_example" // string | (optional) + objectTypeNiew := "objectTypeNiew_example" // string | (optional) + objectTypeNisw := "objectTypeNisw_example" // string | (optional) + objectTypeId := []int32{int32(123)} // []int32 | (optional) + objectTypeIdN := []int32{int32(123)} // []int32 | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + shared := true // bool | (optional) + slug := []string{"Inner_example"} // []string | (optional) + slugEmpty := true // bool | (optional) + slugIc := []string{"Inner_example"} // []string | (optional) + slugIe := []string{"Inner_example"} // []string | (optional) + slugIew := []string{"Inner_example"} // []string | (optional) + slugIsw := []string{"Inner_example"} // []string | (optional) + slugN := []string{"Inner_example"} // []string | (optional) + slugNic := []string{"Inner_example"} // []string | (optional) + slugNie := []string{"Inner_example"} // []string | (optional) + slugNiew := []string{"Inner_example"} // []string | (optional) + slugNisw := []string{"Inner_example"} // []string | (optional) + updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) + usable := true // bool | (optional) + user := []string{"Inner_example"} // []string | User (name) (optional) + userN := []string{"Inner_example"} // []string | User (name) (optional) + userId := []*int32{int32(123)} // []*int32 | User (ID) (optional) + userIdN := []*int32{int32(123)} // []*int32 | User (ID) (optional) + weight := []int32{int32(123)} // []int32 | (optional) + weightEmpty := true // bool | (optional) + weightGt := []int32{int32(123)} // []int32 | (optional) + weightGte := []int32{int32(123)} // []int32 | (optional) + weightLt := []int32{int32(123)} // []int32 | (optional) + weightLte := []int32{int32(123)} // []int32 | (optional) + weightN := []int32{int32(123)} // []int32 | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).ObjectType(objectType).ObjectTypeIc(objectTypeIc).ObjectTypeIe(objectTypeIe).ObjectTypeIew(objectTypeIew).ObjectTypeIsw(objectTypeIsw).ObjectTypeN(objectTypeN).ObjectTypeNic(objectTypeNic).ObjectTypeNie(objectTypeNie).ObjectTypeNiew(objectTypeNiew).ObjectTypeNisw(objectTypeNisw).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Q(q).Shared(shared).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).UpdatedByRequest(updatedByRequest).Usable(usable).User(user).UserN(userN).UserId(userId).UserIdN(userIdN).Weight(weight).WeightEmpty(weightEmpty).WeightGt(weightGt).WeightGte(weightGte).WeightLt(weightLt).WeightLte(weightLte).WeightN(weightN).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersList`: PaginatedSavedFilterList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **created** | [**[]time.Time**](time.Time.md) | | + **createdEmpty** | [**[]time.Time**](time.Time.md) | | + **createdGt** | [**[]time.Time**](time.Time.md) | | + **createdGte** | [**[]time.Time**](time.Time.md) | | + **createdLt** | [**[]time.Time**](time.Time.md) | | + **createdLte** | [**[]time.Time**](time.Time.md) | | + **createdN** | [**[]time.Time**](time.Time.md) | | + **createdByRequest** | **string** | | + **description** | **[]string** | | + **descriptionEmpty** | **bool** | | + **descriptionIc** | **[]string** | | + **descriptionIe** | **[]string** | | + **descriptionIew** | **[]string** | | + **descriptionIsw** | **[]string** | | + **descriptionN** | **[]string** | | + **descriptionNic** | **[]string** | | + **descriptionNie** | **[]string** | | + **descriptionNiew** | **[]string** | | + **descriptionNisw** | **[]string** | | + **enabled** | **bool** | | + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **lastUpdated** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | + **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | + **limit** | **int32** | Number of results to return per page. | + **modifiedByRequest** | **string** | | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **objectType** | **string** | | + **objectTypeIc** | **string** | | + **objectTypeIe** | **string** | | + **objectTypeIew** | **string** | | + **objectTypeIsw** | **string** | | + **objectTypeN** | **string** | | + **objectTypeNic** | **string** | | + **objectTypeNie** | **string** | | + **objectTypeNiew** | **string** | | + **objectTypeNisw** | **string** | | + **objectTypeId** | **[]int32** | | + **objectTypeIdN** | **[]int32** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + **shared** | **bool** | | + **slug** | **[]string** | | + **slugEmpty** | **bool** | | + **slugIc** | **[]string** | | + **slugIe** | **[]string** | | + **slugIew** | **[]string** | | + **slugIsw** | **[]string** | | + **slugN** | **[]string** | | + **slugNic** | **[]string** | | + **slugNie** | **[]string** | | + **slugNiew** | **[]string** | | + **slugNisw** | **[]string** | | + **updatedByRequest** | **string** | | + **usable** | **bool** | | + **user** | **[]string** | User (name) | + **userN** | **[]string** | User (name) | + **userId** | **[]int32** | User (ID) | + **userIdN** | **[]int32** | User (ID) | + **weight** | **[]int32** | | + **weightEmpty** | **bool** | | + **weightGt** | **[]int32** | | + **weightGte** | **[]int32** | | + **weightLt** | **[]int32** | | + **weightLte** | **[]int32** | | + **weightN** | **[]int32** | | + +### Return type + +[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersPartialUpdate + +> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersRetrieve + +> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersRetrieve`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasSavedFiltersUpdate + +> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := int32(56) // int32 | A unique integer value identifying this saved filter. + savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasSavedFiltersUpdate`: SavedFilter + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **int32** | A unique integer value identifying this saved filter. | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + +### Return type + +[**SavedFilter**](SavedFilter.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsCreate + +> Script ExtrasScriptsCreate(ctx).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsCreate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) +} +``` + +### Path Parameters + +This endpoint does not need any parameter. + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern + + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsDestroy + +> ExtrasScriptsDestroy(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + + (empty response body) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsList + +> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := []int32{int32(123)} // []int32 | (optional) + idEmpty := true // bool | (optional) + idGt := []int32{int32(123)} // []int32 | (optional) + idGte := []int32{int32(123)} // []int32 | (optional) + idLt := []int32{int32(123)} // []int32 | (optional) + idLte := []int32{int32(123)} // []int32 | (optional) + idN := []int32{int32(123)} // []int32 | (optional) + isExecutable := true // bool | (optional) + limit := int32(56) // int32 | Number of results to return per page. (optional) + moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) + moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) + name := []string{"Inner_example"} // []string | (optional) + nameEmpty := true // bool | (optional) + nameIc := []string{"Inner_example"} // []string | (optional) + nameIe := []string{"Inner_example"} // []string | (optional) + nameIew := []string{"Inner_example"} // []string | (optional) + nameIsw := []string{"Inner_example"} // []string | (optional) + nameN := []string{"Inner_example"} // []string | (optional) + nameNic := []string{"Inner_example"} // []string | (optional) + nameNie := []string{"Inner_example"} // []string | (optional) + nameNiew := []string{"Inner_example"} // []string | (optional) + nameNisw := []string{"Inner_example"} // []string | (optional) + offset := int32(56) // int32 | The initial index from which to return the results. (optional) + ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) + q := "q_example" // string | Search (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsList`: PaginatedScriptList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) +} +``` + +### Path Parameters + + + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **id** | **[]int32** | | + **idEmpty** | **bool** | | + **idGt** | **[]int32** | | + **idGte** | **[]int32** | | + **idLt** | **[]int32** | | + **idLte** | **[]int32** | | + **idN** | **[]int32** | | + **isExecutable** | **bool** | | + **limit** | **int32** | Number of results to return per page. | + **moduleId** | **[]int32** | Script module (ID) | + **moduleIdN** | **[]int32** | Script module (ID) | + **name** | **[]string** | | + **nameEmpty** | **bool** | | + **nameIc** | **[]string** | | + **nameIe** | **[]string** | | + **nameIew** | **[]string** | | + **nameIsw** | **[]string** | | + **nameN** | **[]string** | | + **nameNic** | **[]string** | | + **nameNie** | **[]string** | | + **nameNiew** | **[]string** | | + **nameNisw** | **[]string** | | + **offset** | **int32** | The initial index from which to return the results. | + **ordering** | **string** | Which field to use when ordering the results. | + **q** | **string** | Search | + +### Return type + +[**PaginatedScriptList**](PaginatedScriptList.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsPartialUpdate + +> Script ExtrasScriptsPartialUpdate(ctx, id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + patchedScriptInputRequest := *openapiclient.NewPatchedScriptInputRequest() // PatchedScriptInputRequest | (optional) + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).PatchedScriptInputRequest(patchedScriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsPartialUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + **patchedScriptInputRequest** | [**PatchedScriptInputRequest**](PatchedScriptInputRequest.md) | | + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: application/json, multipart/form-data +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsRetrieve + +> Script ExtrasScriptsRetrieve(ctx, id).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsRetrieve`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + + +### Return type + +[**Script**](Script.md) + +### Authorization + +[cookieAuth](../README.md#cookieAuth), [tokenAuth](../README.md#tokenAuth) + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) +[[Back to Model list]](../README.md#documentation-for-models) +[[Back to README]](../README.md) + + +## ExtrasScriptsUpdate + +> Script ExtrasScriptsUpdate(ctx, id).ScriptInputRequest(scriptInputRequest).Execute() + + + + + +### Example + +```go +package main + +import ( + "context" + "fmt" + "os" + openapiclient "github.com/netbox-community/go-netbox/v4" +) + +func main() { + id := "id_example" // string | + scriptInputRequest := *openapiclient.NewScriptInputRequest(interface{}(123), false) // ScriptInputRequest | + + configuration := openapiclient.NewConfiguration() + apiClient := openapiclient.NewAPIClient(configuration) + resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).ScriptInputRequest(scriptInputRequest).Execute() + if err != nil { + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) + } + // response from `ExtrasScriptsUpdate`: Script + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) +} +``` + +### Path Parameters + + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- +**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. +**id** | **string** | | + +### Other Parameters + +Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **created** | [**[]time.Time**](time.Time.md) | | - **createdEmpty** | [**[]time.Time**](time.Time.md) | | - **createdGt** | [**[]time.Time**](time.Time.md) | | - **createdGte** | [**[]time.Time**](time.Time.md) | | - **createdLt** | [**[]time.Time**](time.Time.md) | | - **createdLte** | [**[]time.Time**](time.Time.md) | | - **createdN** | [**[]time.Time**](time.Time.md) | | - **createdByRequest** | **string** | | - **description** | **[]string** | | - **descriptionEmpty** | **bool** | | - **descriptionIc** | **[]string** | | - **descriptionIe** | **[]string** | | - **descriptionIew** | **[]string** | | - **descriptionIsw** | **[]string** | | - **descriptionN** | **[]string** | | - **descriptionNic** | **[]string** | | - **descriptionNie** | **[]string** | | - **descriptionNiew** | **[]string** | | - **descriptionNisw** | **[]string** | | - **enabled** | **bool** | | - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **lastUpdated** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedGte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLt** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedLte** | [**[]time.Time**](time.Time.md) | | - **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | - **limit** | **int32** | Number of results to return per page. | - **modifiedByRequest** | **string** | | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | - **objectType** | **string** | | - **objectTypeIc** | **string** | | - **objectTypeIe** | **string** | | - **objectTypeIew** | **string** | | - **objectTypeIsw** | **string** | | - **objectTypeN** | **string** | | - **objectTypeNic** | **string** | | - **objectTypeNie** | **string** | | - **objectTypeNiew** | **string** | | - **objectTypeNisw** | **string** | | - **objectTypeId** | **[]int32** | | - **objectTypeIdN** | **[]int32** | | - **offset** | **int32** | The initial index from which to return the results. | - **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | - **shared** | **bool** | | - **slug** | **[]string** | | - **slugEmpty** | **bool** | | - **slugIc** | **[]string** | | - **slugIe** | **[]string** | | - **slugIew** | **[]string** | | - **slugIsw** | **[]string** | | - **slugN** | **[]string** | | - **slugNic** | **[]string** | | - **slugNie** | **[]string** | | - **slugNiew** | **[]string** | | - **slugNisw** | **[]string** | | - **updatedByRequest** | **string** | | - **usable** | **bool** | | - **user** | **[]string** | User (name) | - **userN** | **[]string** | User (name) | - **userId** | **[]int32** | User (ID) | - **userIdN** | **[]int32** | User (ID) | - **weight** | **[]int32** | | - **weightEmpty** | **bool** | | - **weightGt** | **[]int32** | | - **weightGte** | **[]int32** | | - **weightLt** | **[]int32** | | - **weightLte** | **[]int32** | | - **weightN** | **[]int32** | | + + **scriptInputRequest** | [**ScriptInputRequest**](ScriptInputRequest.md) | | ### Return type -[**PaginatedSavedFilterList**](PaginatedSavedFilterList.md) +[**Script**](Script.md) ### Authorization @@ -9391,7 +11086,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9399,9 +11094,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersPartialUpdate +## ExtrasSubscriptionsBulkDestroy -> SavedFilter ExtrasSavedFiltersPartialUpdate(ctx, id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() +> ExtrasSubscriptionsBulkDestroy(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9420,42 +11115,34 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - patchedSavedFilterRequest := *openapiclient.NewPatchedSavedFilterRequest() // PatchedSavedFilterRequest | (optional) + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersPartialUpdate(context.Background(), id).PatchedSavedFilterRequest(patchedSavedFilterRequest).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkDestroy(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersPartialUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkDestroyRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **patchedSavedFilterRequest** | [**PatchedSavedFilterRequest**](PatchedSavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) + (empty response body) ### Authorization @@ -9464,16 +11151,16 @@ Name | Type | Description | Notes ### HTTP request headers - **Content-Type**: application/json, multipart/form-data -- **Accept**: application/json +- **Accept**: Not defined [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -## ExtrasSavedFiltersRetrieve +## ExtrasSubscriptionsBulkPartialUpdate -> SavedFilter ExtrasSavedFiltersRetrieve(ctx, id).Execute() +> []Subscription ExtrasSubscriptionsBulkPartialUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9492,40 +11179,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersRetrieve`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsBulkPartialUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkPartialUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9533,7 +11216,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9541,9 +11224,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasSavedFiltersUpdate +## ExtrasSubscriptionsBulkUpdate -> SavedFilter ExtrasSavedFiltersUpdate(ctx, id).SavedFilterRequest(savedFilterRequest).Execute() +> []Subscription ExtrasSubscriptionsBulkUpdate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9562,42 +11245,36 @@ import ( ) func main() { - id := int32(56) // int32 | A unique integer value identifying this saved filter. - savedFilterRequest := *openapiclient.NewSavedFilterRequest([]string{"ObjectTypes_example"}, "Name_example", "Slug_example", interface{}(123)) // SavedFilterRequest | + subscriptionRequest := []openapiclient.SubscriptionRequest{*openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example"))} // []SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasSavedFiltersUpdate(context.Background(), id).SavedFilterRequest(savedFilterRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsBulkUpdate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSavedFiltersUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsBulkUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasSavedFiltersUpdate`: SavedFilter - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSavedFiltersUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsBulkUpdate`: []Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsBulkUpdate`: %v\n", resp) } ``` ### Path Parameters -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- -**ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **int32** | A unique integer value identifying this saved filter. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasSavedFiltersUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsBulkUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - - **savedFilterRequest** | [**SavedFilterRequest**](SavedFilterRequest.md) | | + **subscriptionRequest** | [**[]SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**SavedFilter**](SavedFilter.md) +[**[]Subscription**](Subscription.md) ### Authorization @@ -9613,9 +11290,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsCreate +## ExtrasSubscriptionsCreate -> Script ExtrasScriptsCreate(ctx).Execute() +> Subscription ExtrasSubscriptionsCreate(ctx).SubscriptionRequest(subscriptionRequest).Execute() @@ -9634,31 +11311,36 @@ import ( ) func main() { + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsCreate(context.Background()).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsCreate(context.Background()).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsCreate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsCreate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsCreate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsCreate`: %v\n", resp) + // response from `ExtrasSubscriptionsCreate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsCreate`: %v\n", resp) } ``` ### Path Parameters -This endpoint does not need any parameter. + ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsCreateRequest struct via the builder pattern + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9666,7 +11348,7 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9674,9 +11356,9 @@ Other parameters are passed through a pointer to a apiExtrasScriptsCreateRequest [[Back to README]](../README.md) -## ExtrasScriptsDestroy +## ExtrasSubscriptionsDestroy -> ExtrasScriptsDestroy(ctx, id).Execute() +> ExtrasSubscriptionsDestroy(ctx, id).Execute() @@ -9695,13 +11377,13 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - r, err := apiClient.ExtrasAPI.ExtrasScriptsDestroy(context.Background(), id).Execute() + r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsDestroy(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsDestroy``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsDestroy``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } } @@ -9713,11 +11395,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsDestroyRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsDestroyRequest struct via the builder pattern Name | Type | Description | Notes @@ -9742,9 +11424,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsList +## ExtrasSubscriptionsList -> PaginatedScriptList ExtrasScriptsList(ctx).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() +> PaginatedSubscriptionList ExtrasSubscriptionsList(ctx).Limit(limit).Offset(offset).Ordering(ordering).Execute() @@ -9763,41 +11445,19 @@ import ( ) func main() { - id := []int32{int32(123)} // []int32 | (optional) - idEmpty := true // bool | (optional) - idGt := []int32{int32(123)} // []int32 | (optional) - idGte := []int32{int32(123)} // []int32 | (optional) - idLt := []int32{int32(123)} // []int32 | (optional) - idLte := []int32{int32(123)} // []int32 | (optional) - idN := []int32{int32(123)} // []int32 | (optional) - isExecutable := true // bool | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) - moduleId := []int32{int32(123)} // []int32 | Script module (ID) (optional) - moduleIdN := []int32{int32(123)} // []int32 | Script module (ID) (optional) - name := []string{"Inner_example"} // []string | (optional) - nameEmpty := true // bool | (optional) - nameIc := []string{"Inner_example"} // []string | (optional) - nameIe := []string{"Inner_example"} // []string | (optional) - nameIew := []string{"Inner_example"} // []string | (optional) - nameIsw := []string{"Inner_example"} // []string | (optional) - nameN := []string{"Inner_example"} // []string | (optional) - nameNic := []string{"Inner_example"} // []string | (optional) - nameNie := []string{"Inner_example"} // []string | (optional) - nameNiew := []string{"Inner_example"} // []string | (optional) - nameNisw := []string{"Inner_example"} // []string | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - q := "q_example" // string | Search (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsList(context.Background()).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsExecutable(isExecutable).Limit(limit).ModuleId(moduleId).ModuleIdN(moduleIdN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsList(context.Background()).Limit(limit).Offset(offset).Ordering(ordering).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsList``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsList`: PaginatedScriptList - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsList`: %v\n", resp) + // response from `ExtrasSubscriptionsList`: PaginatedSubscriptionList + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsList`: %v\n", resp) } ``` @@ -9807,40 +11467,18 @@ func main() { ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsListRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsListRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **id** | **[]int32** | | - **idEmpty** | **bool** | | - **idGt** | **[]int32** | | - **idGte** | **[]int32** | | - **idLt** | **[]int32** | | - **idLte** | **[]int32** | | - **idN** | **[]int32** | | - **isExecutable** | **bool** | | **limit** | **int32** | Number of results to return per page. | - **moduleId** | **[]int32** | Script module (ID) | - **moduleIdN** | **[]int32** | Script module (ID) | - **name** | **[]string** | | - **nameEmpty** | **bool** | | - **nameIc** | **[]string** | | - **nameIe** | **[]string** | | - **nameIew** | **[]string** | | - **nameIsw** | **[]string** | | - **nameN** | **[]string** | | - **nameNic** | **[]string** | | - **nameNie** | **[]string** | | - **nameNiew** | **[]string** | | - **nameNisw** | **[]string** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **q** | **string** | Search | ### Return type -[**PaginatedScriptList**](PaginatedScriptList.md) +[**PaginatedSubscriptionList**](PaginatedSubscriptionList.md) ### Authorization @@ -9856,9 +11494,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsPartialUpdate +## ExtrasSubscriptionsPartialUpdate -> Script ExtrasScriptsPartialUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsPartialUpdate(ctx, id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() @@ -9877,17 +11515,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + patchedSubscriptionRequest := *openapiclient.NewPatchedSubscriptionRequest() // PatchedSubscriptionRequest | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsPartialUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsPartialUpdate(context.Background(), id).PatchedSubscriptionRequest(patchedSubscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsPartialUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsPartialUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsPartialUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsPartialUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsPartialUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsPartialUpdate`: %v\n", resp) } ``` @@ -9897,20 +11536,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsPartialUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsPartialUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **patchedSubscriptionRequest** | [**PatchedSubscriptionRequest**](PatchedSubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9918,7 +11558,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -9926,9 +11566,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsRetrieve +## ExtrasSubscriptionsRetrieve -> Script ExtrasScriptsRetrieve(ctx, id).Execute() +> Subscription ExtrasSubscriptionsRetrieve(ctx, id).Execute() @@ -9947,17 +11587,17 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsRetrieve(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsRetrieve(context.Background(), id).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsRetrieve``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsRetrieve``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsRetrieve`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsRetrieve`: %v\n", resp) + // response from `ExtrasSubscriptionsRetrieve`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsRetrieve`: %v\n", resp) } ``` @@ -9967,11 +11607,11 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsRetrieveRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsRetrieveRequest struct via the builder pattern Name | Type | Description | Notes @@ -9980,7 +11620,7 @@ Name | Type | Description | Notes ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -9996,9 +11636,9 @@ Name | Type | Description | Notes [[Back to README]](../README.md) -## ExtrasScriptsUpdate +## ExtrasSubscriptionsUpdate -> Script ExtrasScriptsUpdate(ctx, id).Execute() +> Subscription ExtrasSubscriptionsUpdate(ctx, id).SubscriptionRequest(subscriptionRequest).Execute() @@ -10017,17 +11657,18 @@ import ( ) func main() { - id := "id_example" // string | + id := int32(56) // int32 | A unique integer value identifying this subscription. + subscriptionRequest := *openapiclient.NewSubscriptionRequest("ObjectType_example", int64(123), *openapiclient.NewBriefUserRequest("Username_example")) // SubscriptionRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasScriptsUpdate(context.Background(), id).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasSubscriptionsUpdate(context.Background(), id).SubscriptionRequest(subscriptionRequest).Execute() if err != nil { - fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasScriptsUpdate``: %v\n", err) + fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasSubscriptionsUpdate``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) } - // response from `ExtrasScriptsUpdate`: Script - fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasScriptsUpdate`: %v\n", resp) + // response from `ExtrasSubscriptionsUpdate`: Subscription + fmt.Fprintf(os.Stdout, "Response from `ExtrasAPI.ExtrasSubscriptionsUpdate`: %v\n", resp) } ``` @@ -10037,20 +11678,21 @@ func main() { Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **ctx** | **context.Context** | context for authentication, logging, cancellation, deadlines, tracing, etc. -**id** | **string** | | +**id** | **int32** | A unique integer value identifying this subscription. | ### Other Parameters -Other parameters are passed through a pointer to a apiExtrasScriptsUpdateRequest struct via the builder pattern +Other parameters are passed through a pointer to a apiExtrasSubscriptionsUpdateRequest struct via the builder pattern Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- + **subscriptionRequest** | [**SubscriptionRequest**](SubscriptionRequest.md) | | ### Return type -[**Script**](Script.md) +[**Subscription**](Subscription.md) ### Authorization @@ -10058,7 +11700,7 @@ Name | Type | Description | Notes ### HTTP request headers -- **Content-Type**: Not defined +- **Content-Type**: application/json, multipart/form-data - **Accept**: application/json [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) @@ -11161,7 +12803,7 @@ Name | Type | Description | Notes ## ExtrasWebhooksList -> PaginatedWebhookList ExtrasWebhooksList(ctx).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWebhookList ExtrasWebhooksList(ctx).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodEmpty(httpMethodEmpty).HttpMethodIc(httpMethodIc).HttpMethodIe(httpMethodIe).HttpMethodIew(httpMethodIew).HttpMethodIsw(httpMethodIsw).HttpMethodN(httpMethodN).HttpMethodNic(httpMethodNic).HttpMethodNie(httpMethodNie).HttpMethodNiew(httpMethodNiew).HttpMethodNisw(httpMethodNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -11223,7 +12865,16 @@ func main() { httpContentTypeNiew := []string{"Inner_example"} // []string | (optional) httpContentTypeNisw := []string{"Inner_example"} // []string | (optional) httpMethod := []string{"Inner_example"} // []string | (optional) - httpMethodN := []string{"Inner_example"} // []string | (optional) + httpMethodEmpty := true // bool | (optional) + httpMethodIc := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodIe := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodIew := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodIsw := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodN := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodNic := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodNie := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodNiew := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) + httpMethodNisw := []openapiclient.ExtrasWebhooksListHttpMethodIcParameterInner{openapiclient.extras_webhooks_list_http_method__ic_parameter_inner("DELETE")} // []ExtrasWebhooksListHttpMethodIcParameterInner | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -11273,7 +12924,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodN(httpMethodN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.ExtrasAPI.ExtrasWebhooksList(context.Background()).CaFilePath(caFilePath).CaFilePathEmpty(caFilePathEmpty).CaFilePathIc(caFilePathIc).CaFilePathIe(caFilePathIe).CaFilePathIew(caFilePathIew).CaFilePathIsw(caFilePathIsw).CaFilePathN(caFilePathN).CaFilePathNic(caFilePathNic).CaFilePathNie(caFilePathNie).CaFilePathNiew(caFilePathNiew).CaFilePathNisw(caFilePathNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).HttpContentType(httpContentType).HttpContentTypeEmpty(httpContentTypeEmpty).HttpContentTypeIc(httpContentTypeIc).HttpContentTypeIe(httpContentTypeIe).HttpContentTypeIew(httpContentTypeIew).HttpContentTypeIsw(httpContentTypeIsw).HttpContentTypeN(httpContentTypeN).HttpContentTypeNic(httpContentTypeNic).HttpContentTypeNie(httpContentTypeNie).HttpContentTypeNiew(httpContentTypeNiew).HttpContentTypeNisw(httpContentTypeNisw).HttpMethod(httpMethod).HttpMethodEmpty(httpMethodEmpty).HttpMethodIc(httpMethodIc).HttpMethodIe(httpMethodIe).HttpMethodIew(httpMethodIew).HttpMethodIsw(httpMethodIsw).HttpMethodN(httpMethodN).HttpMethodNic(httpMethodNic).HttpMethodNie(httpMethodNie).HttpMethodNiew(httpMethodNiew).HttpMethodNisw(httpMethodNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PayloadUrl(payloadUrl).Q(q).Secret(secret).SecretEmpty(secretEmpty).SecretIc(secretIc).SecretIe(secretIe).SecretIew(secretIew).SecretIsw(secretIsw).SecretN(secretN).SecretNic(secretNic).SecretNie(secretNie).SecretNiew(secretNiew).SecretNisw(secretNisw).SslVerification(sslVerification).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `ExtrasAPI.ExtrasWebhooksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11336,7 +12987,16 @@ Name | Type | Description | Notes **httpContentTypeNiew** | **[]string** | | **httpContentTypeNisw** | **[]string** | | **httpMethod** | **[]string** | | - **httpMethodN** | **[]string** | | + **httpMethodEmpty** | **bool** | | + **httpMethodIc** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodIe** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodIew** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodIsw** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodN** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodNic** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodNie** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodNiew** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | + **httpMethodNisw** | [**[]ExtrasWebhooksListHttpMethodIcParameterInner**](ExtrasWebhooksListHttpMethodIcParameterInner.md) | * `GET` - GET * `POST` - POST * `PUT` - PUT * `PATCH` - PATCH * `DELETE` - DELETE | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/ExtrasCustomLinksListButtonClassParameter.md b/docs/ExtrasCustomLinksListButtonClassParameter.md index f0207ccf5..5540c98b8 100644 --- a/docs/ExtrasCustomLinksListButtonClassParameter.md +++ b/docs/ExtrasCustomLinksListButtonClassParameter.md @@ -9,6 +9,8 @@ * `CYAN` (value: `"cyan"`) +* `DEFAULT` (value: `"default"`) + * `GHOST_DARK` (value: `"ghost-dark"`) * `GRAY` (value: `"gray"`) @@ -19,8 +21,6 @@ * `ORANGE` (value: `"orange"`) -* `OUTLINE_DARK` (value: `"outline-dark"`) - * `PINK` (value: `"pink"`) * `PURPLE` (value: `"purple"`) diff --git a/docs/FHRPGroup.md b/docs/FHRPGroup.md index 1b55f2fa8..47c87bc95 100644 --- a/docs/FHRPGroup.md +++ b/docs/FHRPGroup.md @@ -5,17 +5,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] +**Name** | Pointer to **string** | | [optional] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**AuthenticationType2**](AuthenticationType2.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**IpAddresses** | [**[]BriefIPAddress**](BriefIPAddress.md) | | [readonly] ## Methods ### NewFHRPGroup -`func NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroup` +`func NewFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress, ) *FHRPGroup` NewFHRPGroup instantiates a new FHRPGroup object This constructor will assign default values to properties that have it defined, @@ -50,6 +60,31 @@ and a boolean to check if the value has been set. SetId sets Id field to given value. +### GetName + +`func (o *FHRPGroup) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroup) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FHRPGroup) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroup) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetUrl `func (o *FHRPGroup) GetUrl() string` @@ -70,6 +105,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FHRPGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FHRPGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *FHRPGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *FHRPGroup) GetDisplay() string` @@ -92,20 +152,20 @@ SetDisplay sets Display field to given value. ### GetProtocol -`func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -130,6 +190,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroup) GetAuthType() AuthenticationType2` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType2, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroup) SetAuthType(v AuthenticationType2)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroup) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthKey + +`func (o *FHRPGroup) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroup) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroup) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroup) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroup) GetDescription() string` @@ -155,6 +265,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroup) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroup) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroup) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroup) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FHRPGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *FHRPGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *FHRPGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *FHRPGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *FHRPGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *FHRPGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *FHRPGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *FHRPGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *FHRPGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *FHRPGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpAddresses + +`func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress` + +GetIpAddresses returns the IpAddresses field if non-nil, zero value otherwise. + +### GetIpAddressesOk + +`func (o *FHRPGroup) GetIpAddressesOk() (*[]BriefIPAddress, bool)` + +GetIpAddressesOk returns a tuple with the IpAddresses field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpAddresses + +`func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress)` + +SetIpAddresses sets IpAddresses field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/FHRPGroupAssignment.md b/docs/FHRPGroupAssignment.md index c6fa9037f..c12dfa473 100644 --- a/docs/FHRPGroupAssignment.md +++ b/docs/FHRPGroupAssignment.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**Group** | [**FHRPGroup**](FHRPGroup.md) | | +**Group** | [**BriefFHRPGroup**](BriefFHRPGroup.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Interface** | **interface{}** | | [readonly] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignment -`func NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` +`func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime, ) *FHRPGroupAssignment` NewFHRPGroupAssignment instantiates a new FHRPGroupAssignment object This constructor will assign default values to properties that have it defined, @@ -96,20 +96,20 @@ SetDisplay sets Display field to given value. ### GetGroup -`func (o *FHRPGroupAssignment) GetGroup() FHRPGroup` +`func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool)` +`func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup)` +`func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupAssignmentRequest.md b/docs/FHRPGroupAssignmentRequest.md index b589eac9d..89a52663c 100644 --- a/docs/FHRPGroupAssignmentRequest.md +++ b/docs/FHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | [**FHRPGroupRequest**](FHRPGroupRequest.md) | | +**Group** | [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | **InterfaceType** | **string** | | **InterfaceId** | **int64** | | **Priority** | **int32** | | @@ -13,7 +13,7 @@ Name | Type | Description | Notes ### NewFHRPGroupAssignmentRequest -`func NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` +`func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32, ) *FHRPGroupAssignmentRequest` NewFHRPGroupAssignmentRequest instantiates a new FHRPGroupAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/FHRPGroupRequest.md b/docs/FHRPGroupRequest.md index f7572c47f..71db77021 100644 --- a/docs/FHRPGroupRequest.md +++ b/docs/FHRPGroupRequest.md @@ -4,15 +4,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Protocol** | [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | +**Name** | Pointer to **string** | | [optional] +**Protocol** | [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | **GroupId** | **int32** | | +**AuthType** | Pointer to [**AuthenticationType2**](AuthenticationType2.md) | | [optional] +**AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewFHRPGroupRequest -`func NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` +`func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32, ) *FHRPGroupRequest` NewFHRPGroupRequest instantiates a new FHRPGroupRequest object This constructor will assign default values to properties that have it defined, @@ -27,22 +33,47 @@ NewFHRPGroupRequestWithDefaults instantiates a new FHRPGroupRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetName + +`func (o *FHRPGroupRequest) GetName() string` + +GetName returns the Name field if non-nil, zero value otherwise. + +### GetNameOk + +`func (o *FHRPGroupRequest) GetNameOk() (*string, bool)` + +GetNameOk returns a tuple with the Name field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetName + +`func (o *FHRPGroupRequest) SetName(v string)` + +SetName sets Name field to given value. + +### HasName + +`func (o *FHRPGroupRequest) HasName() bool` + +HasName returns a boolean if a field has been set. + ### GetProtocol -`func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -67,6 +98,56 @@ and a boolean to check if the value has been set. SetGroupId sets GroupId field to given value. +### GetAuthType + +`func (o *FHRPGroupRequest) GetAuthType() AuthenticationType2` + +GetAuthType returns the AuthType field if non-nil, zero value otherwise. + +### GetAuthTypeOk + +`func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType2, bool)` + +GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthType + +`func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType2)` + +SetAuthType sets AuthType field to given value. + +### HasAuthType + +`func (o *FHRPGroupRequest) HasAuthType() bool` + +HasAuthType returns a boolean if a field has been set. + +### GetAuthKey + +`func (o *FHRPGroupRequest) GetAuthKey() string` + +GetAuthKey returns the AuthKey field if non-nil, zero value otherwise. + +### GetAuthKeyOk + +`func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool)` + +GetAuthKeyOk returns a tuple with the AuthKey field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAuthKey + +`func (o *FHRPGroupRequest) SetAuthKey(v string)` + +SetAuthKey sets AuthKey field to given value. + +### HasAuthKey + +`func (o *FHRPGroupRequest) HasAuthKey() bool` + +HasAuthKey returns a boolean if a field has been set. + ### GetDescription `func (o *FHRPGroupRequest) GetDescription() string` @@ -92,6 +173,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *FHRPGroupRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *FHRPGroupRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *FHRPGroupRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *FHRPGroupRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *FHRPGroupRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *FHRPGroupRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *FHRPGroupRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *FHRPGroupRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/FrontPort.md b/docs/FrontPort.md index 5cba25bc8..8718337ad 100644 --- a/docs/FrontPort.md +++ b/docs/FrontPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -17,10 +18,10 @@ Name | Type | Description | Notes **RearPortPosition** | Pointer to **int32** | Mapped position on corresponding rear port | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewFrontPort -`func NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` +`func NewFrontPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *FrontPort` NewFrontPort instantiates a new FrontPort object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *FrontPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *FrontPort) GetDisplay() string` @@ -108,40 +134,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *FrontPort) GetDevice() Device` +`func (o *FrontPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPort) GetDeviceOk() (*Device, bool)` +`func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPort) SetDevice(v Device)` +`func (o *FrontPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPort) GetModule() Module` +`func (o *FrontPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPort) GetModuleOk() (*Module, bool)` +`func (o *FrontPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPort) SetModule(v Module)` +`func (o *FrontPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -348,20 +374,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *FrontPort) GetCable() Cable` +`func (o *FrontPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *FrontPort) GetCableOk() (*Cable, bool)` +`func (o *FrontPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *FrontPort) SetCable(v Cable)` +`func (o *FrontPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -436,6 +462,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *FrontPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *FrontPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *FrontPort) GetTags() []NestedTag` diff --git a/docs/FrontPortRearPort.md b/docs/FrontPortRearPort.md index 59db5e9c0..257054d3b 100644 --- a/docs/FrontPortRearPort.md +++ b/docs/FrontPortRearPort.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *FrontPortRearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *FrontPortRearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *FrontPortRearPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *FrontPortRearPort) GetDisplay() string` diff --git a/docs/FrontPortRequest.md b/docs/FrontPortRequest.md index 91c8194b7..bd9fb2cd9 100644 --- a/docs/FrontPortRequest.md +++ b/docs/FrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewFrontPortRequest -`func NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` +`func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest, ) *FrontPortRequest` NewFrontPortRequest instantiates a new FrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *FrontPortRequest) GetDevice() DeviceRequest` +`func (o *FrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *FrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *FrontPortRequest) GetModule() ModuleRequest` +`func (o *FrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *FrontPortRequest) SetModule(v ModuleRequest)` +`func (o *FrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/FrontPortTemplate.md b/docs/FrontPortTemplate.md index 31aa9d758..ceb079508 100644 --- a/docs/FrontPortTemplate.md +++ b/docs/FrontPortTemplate.md @@ -7,13 +7,13 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplate**](RearPortTemplate.md) | | +**RearPort** | [**BriefRearPortTemplate**](BriefRearPortTemplate.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplate -`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` +`func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime, ) *FrontPortTemplate` NewFrontPortTemplate instantiates a new FrontPortTemplate object This constructor will assign default values to properties that have it defined, @@ -100,20 +100,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *FrontPortTemplate) GetDeviceType() DeviceType` +`func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplate) SetDeviceType(v DeviceType)` +`func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -135,20 +135,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplate) GetModuleType() ModuleType` +`func (o *FrontPortTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplate) SetModuleType(v ModuleType)` +`func (o *FrontPortTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -260,20 +260,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplate) GetRearPort() RearPortTemplate` +`func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool)` +`func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate)` +`func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTemplateRequest.md b/docs/FrontPortTemplateRequest.md index 08dc1ef79..8e27f7687 100644 --- a/docs/FrontPortTemplateRequest.md +++ b/docs/FrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewFrontPortTemplateRequest -`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *FrontPortTemplateRequest` +`func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *FrontPortTemplateRequest` NewFrontPortTemplateRequest instantiates a new FrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/FrontPortTypeLabel.md b/docs/FrontPortTypeLabel.md index 767d7d0ef..0024e2bae 100644 --- a/docs/FrontPortTypeLabel.md +++ b/docs/FrontPortTypeLabel.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"Splice"`) +* `USB_TYPE_A` (value: `"USB Type A"`) + +* `USB_TYPE_B` (value: `"USB Type B"`) + +* `USB_TYPE_C` (value: `"USB Type C"`) + +* `USB_MINI_A` (value: `"USB Mini A"`) + +* `USB_MINI_B` (value: `"USB Mini B"`) + +* `USB_MICRO_A` (value: `"USB Micro A"`) + +* `USB_MICRO_B` (value: `"USB Micro B"`) + +* `USB_MICRO_AB` (value: `"USB Micro AB"`) + * `OTHER` (value: `"Other"`) diff --git a/docs/FrontPortTypeValue.md b/docs/FrontPortTypeValue.md index c6ac18122..6265dfe24 100644 --- a/docs/FrontPortTypeValue.md +++ b/docs/FrontPortTypeValue.md @@ -95,6 +95,22 @@ * `SPLICE` (value: `"splice"`) +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + * `OTHER` (value: `"other"`) diff --git a/docs/Group.md b/docs/Group.md index c9ac7b587..9ca5c3a4b 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Group) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Group) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Group) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Group) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Group) GetDisplay() string` diff --git a/docs/IKEPolicy.md b/docs/IKEPolicy.md index 91c8a8e58..46b19ea8e 100644 --- a/docs/IKEPolicy.md +++ b/docs/IKEPolicy.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersion**](IKEPolicyVersion.md) | | -**Mode** | [**IKEPolicyMode**](IKEPolicyMode.md) | | +**Mode** | Pointer to [**IKEPolicyMode**](IKEPolicyMode.md) | | [optional] **Proposals** | Pointer to [**[]IKEProposal**](IKEProposal.md) | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -23,7 +24,7 @@ Name | Type | Description | Notes ### NewIKEPolicy -`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` +`func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime, ) *IKEPolicy` NewIKEPolicy instantiates a new IKEPolicy object This constructor will assign default values to properties that have it defined, @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IKEPolicy) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IKEPolicy) GetDisplay() string` @@ -182,6 +208,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicy) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEPolicyRequest.md b/docs/IKEPolicyRequest.md index 9a18d7f6d..919cb92b9 100644 --- a/docs/IKEPolicyRequest.md +++ b/docs/IKEPolicyRequest.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Version** | [**IKEPolicyVersionValue**](IKEPolicyVersionValue.md) | | -**Mode** | [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | +**Mode** | Pointer to [**IKEPolicyModeValue**](IKEPolicyModeValue.md) | | [optional] **Proposals** | Pointer to **[]int32** | | [optional] **PresharedKey** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewIKEPolicyRequest -`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue, ) *IKEPolicyRequest` +`func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, ) *IKEPolicyRequest` NewIKEPolicyRequest instantiates a new IKEPolicyRequest object This constructor will assign default values to properties that have it defined, @@ -117,6 +117,11 @@ and a boolean to check if the value has been set. SetMode sets Mode field to given value. +### HasMode + +`func (o *IKEPolicyRequest) HasMode() bool` + +HasMode returns a boolean if a field has been set. ### GetProposals diff --git a/docs/IKEProposal.md b/docs/IKEProposal.md index ee499984d..5d9e17d35 100644 --- a/docs/IKEProposal.md +++ b/docs/IKEProposal.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethod**](IKEProposalAuthenticationMethod.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithm**](IKEProposalEncryptionAlgorithm.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithm**](IKEProposalAuthenticationAlgorithm.md) | | [optional] **Group** | [**IKEProposalGroup**](IKEProposalGroup.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -24,7 +25,7 @@ Name | Type | Description | Notes ### NewIKEProposal -`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` +`func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime, ) *IKEProposal` NewIKEProposal instantiates a new IKEProposal object This constructor will assign default values to properties that have it defined, @@ -79,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IKEProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IKEProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IKEProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IKEProposal) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IKEProposal) GetDisplay() string` @@ -203,6 +229,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposal) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IKEProposalRequest.md b/docs/IKEProposalRequest.md index d61d24fd8..a96502c8a 100644 --- a/docs/IKEProposalRequest.md +++ b/docs/IKEProposalRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **AuthenticationMethod** | [**IKEProposalAuthenticationMethodValue**](IKEProposalAuthenticationMethodValue.md) | | **EncryptionAlgorithm** | [**IKEProposalEncryptionAlgorithmValue**](IKEProposalEncryptionAlgorithmValue.md) | | -**AuthenticationAlgorithm** | [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | +**AuthenticationAlgorithm** | Pointer to [**IKEProposalAuthenticationAlgorithmValue**](IKEProposalAuthenticationAlgorithmValue.md) | | [optional] **Group** | [**IKEProposalGroupValue**](IKEProposalGroupValue.md) | | **SaLifetime** | Pointer to **NullableInt32** | Security association lifetime (in seconds) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewIKEProposalRequest -`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` +`func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue, ) *IKEProposalRequest` NewIKEProposalRequest instantiates a new IKEProposalRequest object This constructor will assign default values to properties that have it defined, @@ -138,6 +138,11 @@ and a boolean to check if the value has been set. SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. +### HasAuthenticationAlgorithm + +`func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool` + +HasAuthenticationAlgorithm returns a boolean if a field has been set. ### GetGroup diff --git a/docs/IPAddress.md b/docs/IPAddress.md index ed004ef14..f48bf2e1b 100644 --- a/docs/IPAddress.md +++ b/docs/IPAddress.md @@ -6,16 +6,32 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPAddressStatus**](IPAddressStatus.md) | | [optional] +**Role** | Pointer to [**IPAddressRole**](IPAddressRole.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**AssignedObject** | **interface{}** | | [readonly] +**NatInside** | Pointer to [**NullableNestedIPAddress**](NestedIPAddress.md) | | [optional] +**NatOutside** | [**[]NestedIPAddress**](NestedIPAddress.md) | | [readonly] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewIPAddress -`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, ) *IPAddress` +`func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime, ) *IPAddress` NewIPAddress instantiates a new IPAddress object This constructor will assign default values to properties that have it defined, @@ -70,6 +86,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPAddress) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPAddress) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPAddress) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPAddress) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPAddress) GetDisplay() string` @@ -130,6 +171,306 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddress) GetVrf() BriefVRF` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddress) GetVrfOk() (*BriefVRF, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddress) SetVrf(v BriefVRF)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddress) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddress) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddress) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddress) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddress) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *IPAddress) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddress) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddress) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddress) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddress) GetStatus() IPAddressStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *IPAddress) SetStatus(v IPAddressStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddress) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddress) GetRole() IPAddressRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IPAddress) SetRole(v IPAddressRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddress) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddress) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddress) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddress) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddress) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddress) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddress) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddress) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddress) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddress) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddress) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetAssignedObject + +`func (o *IPAddress) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *IPAddress) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + + +### SetAssignedObjectNil + +`func (o *IPAddress) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *IPAddress) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetNatInside + +`func (o *IPAddress) GetNatInside() NestedIPAddress` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddress) SetNatInside(v NestedIPAddress)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddress) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddress) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddress) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetNatOutside + +`func (o *IPAddress) GetNatOutside() []NestedIPAddress` + +GetNatOutside returns the NatOutside field if non-nil, zero value otherwise. + +### GetNatOutsideOk + +`func (o *IPAddress) GetNatOutsideOk() (*[]NestedIPAddress, bool)` + +GetNatOutsideOk returns a tuple with the NatOutside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatOutside + +`func (o *IPAddress) SetNatOutside(v []NestedIPAddress)` + +SetNatOutside sets NatOutside field to given value. + + +### GetDnsName + +`func (o *IPAddress) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddress) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddress) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddress) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddress) GetDescription() string` @@ -155,6 +496,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddress) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddress) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddress) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddress) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddress) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddress) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *IPAddress) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddress) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddress) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddress) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *IPAddress) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddress) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *IPAddress) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *IPAddress) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *IPAddress) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *IPAddress) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *IPAddress) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *IPAddress) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *IPAddress) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *IPAddress) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *IPAddress) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/IPAddressRequest.md b/docs/IPAddressRequest.md index 7944d1cf9..808e934b2 100644 --- a/docs/IPAddressRequest.md +++ b/docs/IPAddressRequest.md @@ -5,7 +5,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPAddressStatusValue**](IPAddressStatusValue.md) | | [optional] +**Role** | Pointer to [**IPAddressRoleValue**](IPAddressRoleValue.md) | | [optional] +**AssignedObjectType** | Pointer to **NullableString** | | [optional] +**AssignedObjectId** | Pointer to **NullableInt64** | | [optional] +**NatInside** | Pointer to [**NullableNestedIPAddressRequest**](NestedIPAddressRequest.md) | | [optional] +**DnsName** | Pointer to **string** | Hostname or FQDN (not case-sensitive) | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -46,6 +57,256 @@ and a boolean to check if the value has been set. SetAddress sets Address field to given value. +### GetVrf + +`func (o *IPAddressRequest) GetVrf() BriefVRFRequest` + +GetVrf returns the Vrf field if non-nil, zero value otherwise. + +### GetVrfOk + +`func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` + +GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrf + +`func (o *IPAddressRequest) SetVrf(v BriefVRFRequest)` + +SetVrf sets Vrf field to given value. + +### HasVrf + +`func (o *IPAddressRequest) HasVrf() bool` + +HasVrf returns a boolean if a field has been set. + +### SetVrfNil + +`func (o *IPAddressRequest) SetVrfNil(b bool)` + + SetVrfNil sets the value for Vrf to be an explicit nil + +### UnsetVrf +`func (o *IPAddressRequest) UnsetVrf()` + +UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +### GetTenant + +`func (o *IPAddressRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *IPAddressRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *IPAddressRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *IPAddressRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *IPAddressRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *IPAddressRequest) GetStatus() IPAddressStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *IPAddressRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *IPAddressRequest) GetRole() IPAddressRoleValue` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *IPAddressRequest) SetRole(v IPAddressRoleValue)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *IPAddressRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### GetAssignedObjectType + +`func (o *IPAddressRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *IPAddressRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + +### HasAssignedObjectType + +`func (o *IPAddressRequest) HasAssignedObjectType() bool` + +HasAssignedObjectType returns a boolean if a field has been set. + +### SetAssignedObjectTypeNil + +`func (o *IPAddressRequest) SetAssignedObjectTypeNil(b bool)` + + SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil + +### UnsetAssignedObjectType +`func (o *IPAddressRequest) UnsetAssignedObjectType()` + +UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +### GetAssignedObjectId + +`func (o *IPAddressRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *IPAddressRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + +### HasAssignedObjectId + +`func (o *IPAddressRequest) HasAssignedObjectId() bool` + +HasAssignedObjectId returns a boolean if a field has been set. + +### SetAssignedObjectIdNil + +`func (o *IPAddressRequest) SetAssignedObjectIdNil(b bool)` + + SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil + +### UnsetAssignedObjectId +`func (o *IPAddressRequest) UnsetAssignedObjectId()` + +UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +### GetNatInside + +`func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest` + +GetNatInside returns the NatInside field if non-nil, zero value otherwise. + +### GetNatInsideOk + +`func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool)` + +GetNatInsideOk returns a tuple with the NatInside field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetNatInside + +`func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest)` + +SetNatInside sets NatInside field to given value. + +### HasNatInside + +`func (o *IPAddressRequest) HasNatInside() bool` + +HasNatInside returns a boolean if a field has been set. + +### SetNatInsideNil + +`func (o *IPAddressRequest) SetNatInsideNil(b bool)` + + SetNatInsideNil sets the value for NatInside to be an explicit nil + +### UnsetNatInside +`func (o *IPAddressRequest) UnsetNatInside()` + +UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +### GetDnsName + +`func (o *IPAddressRequest) GetDnsName() string` + +GetDnsName returns the DnsName field if non-nil, zero value otherwise. + +### GetDnsNameOk + +`func (o *IPAddressRequest) GetDnsNameOk() (*string, bool)` + +GetDnsNameOk returns a tuple with the DnsName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDnsName + +`func (o *IPAddressRequest) SetDnsName(v string)` + +SetDnsName sets DnsName field to given value. + +### HasDnsName + +`func (o *IPAddressRequest) HasDnsName() bool` + +HasDnsName returns a boolean if a field has been set. + ### GetDescription `func (o *IPAddressRequest) GetDescription() string` @@ -71,6 +332,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *IPAddressRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *IPAddressRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *IPAddressRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *IPAddressRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *IPAddressRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *IPAddressRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *IPAddressRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *IPAddressRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *IPAddressRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *IPAddressRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *IPAddressRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *IPAddressRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/IPRange.md b/docs/IPRange.md index 4d6a50ec0..e9d0e1c6d 100644 --- a/docs/IPRange.md +++ b/docs/IPRange.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **StartAddress** | **string** | | **EndAddress** | **string** | | **Size** | **int32** | | [readonly] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -82,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPRange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPRange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPRange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPRange) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPRange) GetDisplay() string` @@ -184,20 +210,20 @@ SetSize sets Size field to given value. ### GetVrf -`func (o *IPRange) GetVrf() VRF` +`func (o *IPRange) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRange) GetVrfOk() (*VRF, bool)` +`func (o *IPRange) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRange) SetVrf(v VRF)` +`func (o *IPRange) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -219,20 +245,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRange) GetTenant() Tenant` +`func (o *IPRange) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRange) GetTenantOk() (*Tenant, bool)` +`func (o *IPRange) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRange) SetTenant(v Tenant)` +`func (o *IPRange) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -279,20 +305,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRange) GetRole() Role` +`func (o *IPRange) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRange) GetRoleOk() (*Role, bool)` +`func (o *IPRange) GetRoleOk() (*BriefRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRange) SetRole(v Role)` +`func (o *IPRange) SetRole(v BriefRole)` SetRole sets Role field to given value. diff --git a/docs/IPRangeRequest.md b/docs/IPRangeRequest.md index 35f6cc221..11d861c01 100644 --- a/docs/IPRangeRequest.md +++ b/docs/IPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *IPRangeRequest) GetVrf() VRFRequest` +`func (o *IPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *IPRangeRequest) SetVrf(v VRFRequest)` +`func (o *IPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *IPRangeRequest) GetTenant() TenantRequest` +`func (o *IPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *IPRangeRequest) SetTenant(v TenantRequest)` +`func (o *IPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *IPRangeRequest) GetRole() RoleRequest` +`func (o *IPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *IPRangeRequest) SetRole(v RoleRequest)` +`func (o *IPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/IPSecPolicy.md b/docs/IPSecPolicy.md index 7d7e216e5..9c14142ca 100644 --- a/docs/IPSecPolicy.md +++ b/docs/IPSecPolicy.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecPolicy) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecPolicy) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPSecPolicy) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPSecPolicy) GetDisplay() string` diff --git a/docs/IPSecProfile.md b/docs/IPSecProfile.md index 9582c5258..5f882e870 100644 --- a/docs/IPSecProfile.md +++ b/docs/IPSecProfile.md @@ -6,12 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileMode**](IPSecProfileMode.md) | | -**IkePolicy** | [**IKEPolicy**](IKEPolicy.md) | | -**IpsecPolicy** | [**IPSecPolicy**](IPSecPolicy.md) | | +**IkePolicy** | [**BriefIKEPolicy**](BriefIKEPolicy.md) | | +**IpsecPolicy** | [**BriefIPSecPolicy**](BriefIPSecPolicy.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewIPSecProfile -`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` +`func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime, ) *IPSecProfile` NewIPSecProfile instantiates a new IPSecProfile object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProfile) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProfile) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPSecProfile) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPSecProfile) GetDisplay() string` @@ -164,40 +190,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfile) GetIkePolicy() IKEPolicy` +`func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool)` +`func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfile) SetIkePolicy(v IKEPolicy)` +`func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy` +`func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool)` +`func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy)` +`func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProfileRequest.md b/docs/IPSecProfileRequest.md index 74f1a9171..35d915482 100644 --- a/docs/IPSecProfileRequest.md +++ b/docs/IPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewIPSecProfileRequest -`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *IPSecProfileRequest` +`func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *IPSecProfileRequest` NewIPSecProfileRequest instantiates a new IPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/IPSecProposal.md b/docs/IPSecProposal.md index 6664ca6a2..f8c65152f 100644 --- a/docs/IPSecProposal.md +++ b/docs/IPSecProposal.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *IPSecProposal) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *IPSecProposal) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *IPSecProposal) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *IPSecProposal) GetDisplay() string` diff --git a/docs/ImageAttachment.md b/docs/ImageAttachment.md index 254d230c2..c7288671f 100644 --- a/docs/ImageAttachment.md +++ b/docs/ImageAttachment.md @@ -12,8 +12,8 @@ Name | Type | Description | Notes **Parent** | **interface{}** | | [readonly] **Name** | Pointer to **string** | | [optional] **Image** | **string** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | +**ImageHeight** | **int32** | | [readonly] +**ImageWidth** | **int32** | | [readonly] **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] diff --git a/docs/ImageAttachmentRequest.md b/docs/ImageAttachmentRequest.md index 7728d54e5..b79b8f76e 100644 --- a/docs/ImageAttachmentRequest.md +++ b/docs/ImageAttachmentRequest.md @@ -8,14 +8,12 @@ Name | Type | Description | Notes **ObjectId** | **int64** | | **Name** | Pointer to **string** | | [optional] **Image** | ***os.File** | | -**ImageHeight** | **int32** | | -**ImageWidth** | **int32** | | ## Methods ### NewImageAttachmentRequest -`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32, ) *ImageAttachmentRequest` +`func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, ) *ImageAttachmentRequest` NewImageAttachmentRequest instantiates a new ImageAttachmentRequest object This constructor will assign default values to properties that have it defined, @@ -115,46 +113,6 @@ and a boolean to check if the value has been set. SetImage sets Image field to given value. -### GetImageHeight - -`func (o *ImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *ImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - - -### GetImageWidth - -`func (o *ImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *ImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/Interface.md b/docs/Interface.md index 222d4907d..317d12b0a 100644 --- a/docs/Interface.md +++ b/docs/Interface.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Vdcs** | Pointer to [**[]VirtualDeviceContext**](VirtualDeviceContext.md) | | [optional] -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -32,19 +33,19 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **WirelessLink** | [**NullableNestedWirelessLink**](NestedWirelessLink.md) | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **WirelessLans** | Pointer to [**[]WirelessLAN**](WirelessLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,7 +59,7 @@ Name | Type | Description | Notes ### NewInterface -`func NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` +`func NewInterface(id int32, url string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool, ) *Interface` NewInterface instantiates a new Interface object This constructor will assign default values to properties that have it defined, @@ -113,6 +114,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Interface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Interface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Interface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Interface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Interface) GetDisplay() string` @@ -135,20 +161,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Interface) GetDevice() Device` +`func (o *Interface) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Interface) GetDeviceOk() (*Device, bool)` +`func (o *Interface) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Interface) SetDevice(v Device)` +`func (o *Interface) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -180,20 +206,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *Interface) GetModule() Module` +`func (o *Interface) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *Interface) GetModuleOk() (*Module, bool)` +`func (o *Interface) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *Interface) SetModule(v Module)` +`func (o *Interface) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -865,20 +891,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *Interface) GetUntaggedVlan() VLAN` +`func (o *Interface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *Interface) SetUntaggedVlan(v VLAN)` +`func (o *Interface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -950,20 +976,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *Interface) GetCable() Cable` +`func (o *Interface) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *Interface) GetCableOk() (*Cable, bool)` +`func (o *Interface) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *Interface) SetCable(v Cable)` +`func (o *Interface) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -1068,6 +1094,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *Interface) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *Interface) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetWirelessLans `func (o *Interface) GetWirelessLans() []WirelessLAN` @@ -1095,20 +1131,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *Interface) GetVrf() VRF` +`func (o *Interface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Interface) GetVrfOk() (*VRF, bool)` +`func (o *Interface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Interface) SetVrf(v VRF)` +`func (o *Interface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -1130,20 +1166,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *Interface) GetL2vpnTermination() L2VPNTermination` +`func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *Interface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. @@ -1178,6 +1214,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *Interface) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *Interface) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *Interface) GetConnectedEndpointsType() string` @@ -1198,6 +1244,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *Interface) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *Interface) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *Interface) GetConnectedEndpointsReachable() bool` diff --git a/docs/InterfaceRequest.md b/docs/InterfaceRequest.md index 9a58216f3..2a12dd4c4 100644 --- a/docs/InterfaceRequest.md +++ b/docs/InterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -29,11 +29,11 @@ Name | Type | Description | Notes **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewInterfaceRequest -`func NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` +`func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *InterfaceRequest` NewInterfaceRequest instantiates a new InterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InterfaceRequest) GetDevice() DeviceRequest` +`func (o *InterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *InterfaceRequest) GetModule() ModuleRequest` +`func (o *InterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *InterfaceRequest) SetModule(v ModuleRequest)` +`func (o *InterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *InterfaceRequest) GetVrf() VRFRequest` +`func (o *InterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *InterfaceRequest) SetVrf(v VRFRequest)` +`func (o *InterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/InterfaceTemplate.md b/docs/InterfaceTemplate.md index fe7c519cd..447d3bcb8 100644 --- a/docs/InterfaceTemplate.md +++ b/docs/InterfaceTemplate.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceType**](InterfaceType.md) | | @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InterfaceTemplate) GetDeviceType() DeviceType` +`func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplate) SetDeviceType(v DeviceType)` +`func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -138,20 +138,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplate) GetModuleType() ModuleType` +`func (o *InterfaceTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplate) SetModuleType(v ModuleType)` +`func (o *InterfaceTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTemplateRequest.md b/docs/InterfaceTemplateRequest.md index e916c8116..5646cf9a6 100644 --- a/docs/InterfaceTemplateRequest.md +++ b/docs/InterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/InterfaceTypeLabel.md b/docs/InterfaceTypeLabel.md index 74891e8c2..5c1c058d7 100644 --- a/docs/InterfaceTypeLabel.md +++ b/docs/InterfaceTypeLabel.md @@ -19,6 +19,8 @@ * `_1000_BASE_T__1_GE` (value: `"1000BASE-T (1GE)"`) +* `_1000_BASE_TX__1_GE` (value: `"1000BASE-TX (1GE)"`) + * `_2_5_GBASE_T__2_5_GE` (value: `"2.5GBASE-T (2.5GE)"`) * `_5_GBASE_T__5_GE` (value: `"5GBASE-T (5GE)"`) @@ -27,6 +29,8 @@ * `_10_GBASE_CX4__10_GE` (value: `"10GBASE-CX4 (10GE)"`) +* `SFP__100_ME` (value: `"SFP (100ME)"`) + * `GBIC__1_GE` (value: `"GBIC (1GE)"`) * `SFP__1_GE` (value: `"SFP (1GE)"`) @@ -125,8 +129,12 @@ * `IEEE_802_11AY` (value: `"IEEE 802.11ay"`) +* `IEEE_802_11BE` (value: `"IEEE 802.11be"`) + * `IEEE_802_15_1__BLUETOOTH` (value: `"IEEE 802.15.1 (Bluetooth)"`) +* `IEEE_802_15_4__LR_WPAN` (value: `"IEEE 802.15.4 (LR-WPAN)"`) + * `OTHER__WIRELESS` (value: `"Other (Wireless)"`) * `GSM` (value: `"GSM"`) diff --git a/docs/InterfaceTypeValue.md b/docs/InterfaceTypeValue.md index 4d0b0417f..63c4c5dd4 100644 --- a/docs/InterfaceTypeValue.md +++ b/docs/InterfaceTypeValue.md @@ -19,6 +19,8 @@ * `_1000BASE_T` (value: `"1000base-t"`) +* `_1000BASE_TX` (value: `"1000base-tx"`) + * `_2_5GBASE_T` (value: `"2.5gbase-t"`) * `_5GBASE_T` (value: `"5gbase-t"`) @@ -27,6 +29,8 @@ * `_10GBASE_CX4` (value: `"10gbase-cx4"`) +* `_100BASE_X_SFP` (value: `"100base-x-sfp"`) + * `_1000BASE_X_GBIC` (value: `"1000base-x-gbic"`) * `_1000BASE_X_SFP` (value: `"1000base-x-sfp"`) @@ -125,8 +129,12 @@ * `IEEE802_11AY` (value: `"ieee802.11ay"`) +* `IEEE802_11BE` (value: `"ieee802.11be"`) + * `IEEE802_15_1` (value: `"ieee802.15.1"`) +* `IEEE802_15_4` (value: `"ieee802.15.4"`) + * `OTHER_WIRELESS` (value: `"other-wireless"`) * `GSM` (value: `"gsm"`) diff --git a/docs/InventoryItem.md b/docs/InventoryItem.md index 899e554b9..05f5183d7 100644 --- a/docs/InventoryItem.md +++ b/docs/InventoryItem.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewInventoryItem -`func NewInventoryItem(id int32, url string, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` +`func NewInventoryItem(id int32, url string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItem` NewInventoryItem instantiates a new InventoryItem object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItem) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItem) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItem) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *InventoryItem) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *InventoryItem) GetDisplay() string` @@ -108,20 +134,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *InventoryItem) GetDevice() Device` +`func (o *InventoryItem) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItem) GetDeviceOk() (*Device, bool)` +`func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItem) SetDevice(v Device)` +`func (o *InventoryItem) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -208,20 +234,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItem) GetRole() InventoryItemRole` +`func (o *InventoryItem) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItem) SetRole(v InventoryItemRole)` +`func (o *InventoryItem) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -243,20 +269,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItem) GetManufacturer() Manufacturer` +`func (o *InventoryItem) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItem) SetManufacturer(v Manufacturer)` +`func (o *InventoryItem) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRequest.md b/docs/InventoryItemRequest.md index 580df6b26..8fe8b8c2d 100644 --- a/docs/InventoryItemRequest.md +++ b/docs/InventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -24,7 +24,7 @@ Name | Type | Description | Notes ### NewInventoryItemRequest -`func NewInventoryItemRequest(device DeviceRequest, name string, ) *InventoryItemRequest` +`func NewInventoryItemRequest(device BriefDeviceRequest, name string, ) *InventoryItemRequest` NewInventoryItemRequest instantiates a new InventoryItemRequest object This constructor will assign default values to properties that have it defined, @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *InventoryItemRequest) GetDevice() DeviceRequest` +`func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *InventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -141,20 +141,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -176,20 +176,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemRole.md b/docs/InventoryItemRole.md index ffd538ba1..06fb2012a 100644 --- a/docs/InventoryItemRole.md +++ b/docs/InventoryItemRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *InventoryItemRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *InventoryItemRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *InventoryItemRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *InventoryItemRole) GetDisplay() string` diff --git a/docs/InventoryItemTemplate.md b/docs/InventoryItemTemplate.md index 94833b0ef..eddb4a2b3 100644 --- a/docs/InventoryItemTemplate.md +++ b/docs/InventoryItemTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | [**BriefDeviceType**](BriefDeviceType.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRole**](InventoryItemRole.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturer**](Manufacturer.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRole**](BriefInventoryItemRole.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -26,7 +26,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplate -`func NewInventoryItemTemplate(id int32, url string, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` +`func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32, ) *InventoryItemTemplate` NewInventoryItemTemplate instantiates a new InventoryItemTemplate object This constructor will assign default values to properties that have it defined, @@ -103,20 +103,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *InventoryItemTemplate) GetDeviceType() DeviceType` +`func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplate) SetDeviceType(v DeviceType)` +`func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -203,20 +203,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplate) GetRole() InventoryItemRole` +`func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool)` +`func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplate) SetRole(v InventoryItemRole)` +`func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole)` SetRole sets Role field to given value. @@ -238,20 +238,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplate) GetManufacturer() Manufacturer` +`func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer)` +`func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/InventoryItemTemplateRequest.md b/docs/InventoryItemTemplateRequest.md index fb68460d1..c73bbf2c3 100644 --- a/docs/InventoryItemTemplateRequest.md +++ b/docs/InventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewInventoryItemTemplateRequest -`func NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` +`func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string, ) *InventoryItemTemplateRequest` NewInventoryItemTemplateRequest instantiates a new InventoryItemTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -136,20 +136,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -171,20 +171,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/IpamAPI.md b/docs/IpamAPI.md index 3113766da..b2aadf76a 100644 --- a/docs/IpamAPI.md +++ b/docs/IpamAPI.md @@ -182,7 +182,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -246,7 +246,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -312,7 +312,7 @@ import ( ) func main() { - aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | + aggregateRequest := []openapiclient.AggregateRequest{*openapiclient.NewAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"))} // []AggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -378,7 +378,7 @@ import ( ) func main() { - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -568,10 +568,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -654,10 +654,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -844,7 +844,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this aggregate. - writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | + writableAggregateRequest := *openapiclient.NewWritableAggregateRequest("Prefix_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example")) // WritableAggregateRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1057,7 +1057,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1121,7 +1121,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1187,7 +1187,7 @@ import ( ) func main() { - aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | + aSNRangeRequest := []openapiclient.ASNRangeRequest{*openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123))} // []ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1253,7 +1253,7 @@ import ( ) func main() { - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1470,10 +1470,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1583,10 +1583,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1773,7 +1773,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this ASN range. - aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | + aSNRangeRequest := *openapiclient.NewASNRangeRequest("Name_example", "Slug_example", *openapiclient.NewBriefRIRRequest("Name_example", "Slug_example"), int64(123), int64(123)) // ASNRangeRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2236,10 +2236,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -2328,10 +2328,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2589,7 +2589,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2653,7 +2653,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2719,7 +2719,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := []openapiclient.FHRPGroupAssignmentRequest{*openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123))} // []FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2785,7 +2785,7 @@ import ( ) func main() { - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3225,7 +3225,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group assignment. - fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | + fHRPGroupAssignmentRequest := *openapiclient.NewFHRPGroupAssignmentRequest(*openapiclient.NewBriefFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)), "InterfaceType_example", int64(123), int32(123)) // FHRPGroupAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3296,7 +3296,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3360,7 +3360,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3426,7 +3426,7 @@ import ( ) func main() { - fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | + fHRPGroupRequest := []openapiclient.FHRPGroupRequest{*openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123))} // []FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3492,7 +3492,7 @@ import ( ) func main() { - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3607,7 +3607,7 @@ Name | Type | Description | Notes ## IpamFhrpGroupsList -> PaginatedFHRPGroupList IpamFhrpGroupsList(ctx).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedFHRPGroupList IpamFhrpGroupsList(ctx).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolEmpty(protocolEmpty).ProtocolIc(protocolIc).ProtocolIe(protocolIe).ProtocolIew(protocolIew).ProtocolIsw(protocolIsw).ProtocolN(protocolN).ProtocolNic(protocolNic).ProtocolNie(protocolNie).ProtocolNiew(protocolNiew).ProtocolNisw(protocolNisw).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3639,7 +3639,16 @@ func main() { authKeyNiew := []string{"Inner_example"} // []string | (optional) authKeyNisw := []string{"Inner_example"} // []string | (optional) authType := []string{"Inner_example"} // []string | (optional) - authTypeN := []string{"Inner_example"} // []string | (optional) + authTypeEmpty := true // bool | (optional) + authTypeIc := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeIe := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeIew := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeIsw := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeN := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeNic := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeNie := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeNiew := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) + authTypeNisw := []openapiclient.AuthenticationType{openapiclient.Authentication_type("")} // []AuthenticationType | * `plaintext` - Plaintext * `md5` - MD5 (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3696,7 +3705,16 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) protocol := []string{"Inner_example"} // []string | (optional) - protocolN := []string{"Inner_example"} // []string | (optional) + protocolEmpty := true // bool | (optional) + protocolIc := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolIe := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolIew := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolIsw := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolN := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolNic := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolNie := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolNiew := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) + protocolNisw := []openapiclient.IpamFhrpGroupsListProtocolIcParameterInner{openapiclient.ipam_fhrp_groups_list_protocol__ic_parameter_inner("carp")} // []IpamFhrpGroupsListProtocolIcParameterInner | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other (optional) q := "q_example" // string | Search (optional) relatedIp := []string{"Inner_example"} // []string | (optional) tag := []string{"Inner_example"} // []string | (optional) @@ -3705,7 +3723,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolN(protocolN).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamFhrpGroupsList(context.Background()).AuthKey(authKey).AuthKeyEmpty(authKeyEmpty).AuthKeyIc(authKeyIc).AuthKeyIe(authKeyIe).AuthKeyIew(authKeyIew).AuthKeyIsw(authKeyIsw).AuthKeyN(authKeyN).AuthKeyNic(authKeyNic).AuthKeyNie(authKeyNie).AuthKeyNiew(authKeyNiew).AuthKeyNisw(authKeyNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).GroupId(groupId).GroupIdEmpty(groupIdEmpty).GroupIdGt(groupIdGt).GroupIdGte(groupIdGte).GroupIdLt(groupIdLt).GroupIdLte(groupIdLte).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Protocol(protocol).ProtocolEmpty(protocolEmpty).ProtocolIc(protocolIc).ProtocolIe(protocolIe).ProtocolIew(protocolIew).ProtocolIsw(protocolIsw).ProtocolN(protocolN).ProtocolNic(protocolNic).ProtocolNie(protocolNie).ProtocolNiew(protocolNiew).ProtocolNisw(protocolNisw).Q(q).RelatedIp(relatedIp).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamFhrpGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3738,7 +3756,16 @@ Name | Type | Description | Notes **authKeyNiew** | **[]string** | | **authKeyNisw** | **[]string** | | **authType** | **[]string** | | - **authTypeN** | **[]string** | | + **authTypeEmpty** | **bool** | | + **authTypeIc** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeIe** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeIew** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeIsw** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeN** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeNic** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeNie** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeNiew** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | + **authTypeNisw** | [**[]AuthenticationType**](AuthenticationType.md) | * `plaintext` - Plaintext * `md5` - MD5 | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -3795,7 +3822,16 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **protocol** | **[]string** | | - **protocolN** | **[]string** | | + **protocolEmpty** | **bool** | | + **protocolIc** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolIe** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolIew** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolIsw** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolN** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolNic** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolNie** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolNiew** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | + **protocolNisw** | [**[]IpamFhrpGroupsListProtocolIcParameterInner**](IpamFhrpGroupsListProtocolIcParameterInner.md) | * `vrrp2` - VRRPv2 * `vrrp3` - VRRPv3 * `carp` - CARP * `clusterxl` - ClusterXL * `hsrp` - HSRP * `glbp` - GLBP * `other` - Other | **q** | **string** | Search | **relatedIp** | **[]string** | | **tag** | **[]string** | | @@ -3984,7 +4020,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this FHRP group. - fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.FHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | + fHRPGroupRequest := *openapiclient.NewFHRPGroupRequest(openapiclient.BriefFHRPGroup_protocol("vrrp2"), int32(123)) // FHRPGroupRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4366,7 +4402,7 @@ Name | Type | Description | Notes ## IpamIpAddressesList -> PaginatedIPAddressList IpamIpAddressesList(ctx).Address(address).Assigned(assigned).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).ServiceId(serviceId).ServiceIdN(serviceIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() +> PaginatedIPAddressList IpamIpAddressesList(ctx).Address(address).Assigned(assigned).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).ServiceId(serviceId).ServiceIdN(serviceIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -4465,19 +4501,37 @@ func main() { presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | The functional role of this IP (optional) - roleN := []string{"Inner_example"} // []string | The functional role of this IP (optional) + roleEmpty := true // bool | (optional) + roleIc := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleIe := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleIew := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleIsw := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleN := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleNic := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleNie := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleNiew := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) + roleNisw := []openapiclient.IpamIpAddressesListRoleIcParameterInner{openapiclient.ipam_ip_addresses_list_role__ic_parameter_inner("")} // []IpamIpAddressesListRoleIcParameterInner | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP (optional) serviceId := []int32{int32(123)} // []int32 | Service (ID) (optional) serviceIdN := []int32{int32(123)} // []int32 | Service (ID) (optional) status := []string{"Inner_example"} // []string | The operational status of this IP (optional) - statusN := []string{"Inner_example"} // []string | The operational status of this IP (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusIe := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusIew := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusIsw := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusN := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusNic := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusNie := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusNiew := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) + statusNisw := []openapiclient.IpamIpAddressesListStatusIcParameterInner{openapiclient.ipam_ip_addresses_list_status__ic_parameter_inner("active")} // []IpamIpAddressesListStatusIcParameterInner | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4494,7 +4548,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleN(roleN).ServiceId(serviceId).ServiceIdN(serviceIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpAddressesList(context.Background()).Address(address).Assigned(assigned).AssignedObjectId(assignedObjectId).AssignedObjectIdEmpty(assignedObjectIdEmpty).AssignedObjectIdGt(assignedObjectIdGt).AssignedObjectIdGte(assignedObjectIdGte).AssignedObjectIdLt(assignedObjectIdLt).AssignedObjectIdLte(assignedObjectIdLte).AssignedObjectIdN(assignedObjectIdN).AssignedObjectType(assignedObjectType).AssignedObjectTypeN(assignedObjectTypeN).AssignedToInterface(assignedToInterface).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceId(deviceId).DnsName(dnsName).DnsNameEmpty(dnsNameEmpty).DnsNameIc(dnsNameIc).DnsNameIe(dnsNameIe).DnsNameIew(dnsNameIew).DnsNameIsw(dnsNameIsw).DnsNameN(dnsNameN).DnsNameNic(dnsNameNic).DnsNameNie(dnsNameNie).DnsNameNiew(dnsNameNiew).DnsNameNisw(dnsNameNisw).Family(family).FhrpgroupId(fhrpgroupId).FhrpgroupIdN(fhrpgroupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).NatInsideId(natInsideId).NatInsideIdN(natInsideIdN).Offset(offset).Ordering(ordering).Parent(parent).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).ServiceId(serviceId).ServiceIdN(serviceIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineId(virtualMachineId).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpAddressesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4594,19 +4648,37 @@ Name | Type | Description | Notes **presentInVrfId** | **string** | | **q** | **string** | Search | **role** | **[]string** | The functional role of this IP | - **roleN** | **[]string** | The functional role of this IP | + **roleEmpty** | **bool** | | + **roleIc** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleIe** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleIew** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleIsw** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleN** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleNic** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleNie** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleNiew** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | + **roleNisw** | [**[]IpamIpAddressesListRoleIcParameterInner**](IpamIpAddressesListRoleIcParameterInner.md) | The functional role of this IP * `loopback` - Loopback * `secondary` - Secondary * `anycast` - Anycast * `vip` - VIP * `vrrp` - VRRP * `hsrp` - HSRP * `glbp` - GLBP * `carp` - CARP | **serviceId** | **[]int32** | Service (ID) | **serviceIdN** | **[]int32** | Service (ID) | **status** | **[]string** | The operational status of this IP | - **statusN** | **[]string** | The operational status of this IP | + **statusEmpty** | **bool** | | + **statusIc** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusIe** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusIew** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusIsw** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusN** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusNic** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusNie** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusNiew** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | + **statusNisw** | [**[]IpamIpAddressesListStatusIcParameterInner**](IpamIpAddressesListStatusIcParameterInner.md) | The operational status of this IP * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated * `dhcp` - DHCP * `slaac` - SLAAC | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -5327,7 +5399,7 @@ Name | Type | Description | Notes ## IpamIpRangesList -> PaginatedIPRangeList IpamIpRangesList(ctx).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).StartAddress(startAddress).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() +> PaginatedIPRangeList IpamIpRangesList(ctx).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).StartAddress(startAddress).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -5403,15 +5475,24 @@ func main() { sizeN := []int32{int32(123)} // []int32 | (optional) startAddress := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | Operational status of this range (optional) - statusN := []string{"Inner_example"} // []string | Operational status of this range (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIe := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIew := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIsw := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusN := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNic := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNie := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNiew := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNisw := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -5422,7 +5503,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamIpRangesList(context.Background()).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).StartAddress(startAddress).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamIpRangesList(context.Background()).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EndAddress(endAddress).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Parent(parent).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Size(size).SizeEmpty(sizeEmpty).SizeGt(sizeGt).SizeGte(sizeGte).SizeLt(sizeLt).SizeLte(sizeLte).SizeN(sizeN).StartAddress(startAddress).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamIpRangesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5499,15 +5580,24 @@ Name | Type | Description | Notes **sizeN** | **[]int32** | | **startAddress** | **[]string** | | **status** | **[]string** | Operational status of this range | - **statusN** | **[]string** | Operational status of this range | + **statusEmpty** | **bool** | | + **statusIc** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIe** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIew** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIsw** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusN** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNic** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNie** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNiew** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNisw** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this range * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -6364,7 +6454,7 @@ Name | Type | Description | Notes ## IpamPrefixesList -> PaginatedPrefixList IpamPrefixesList(ctx).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() +> PaginatedPrefixList IpamPrefixesList(ctx).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() @@ -6446,32 +6536,41 @@ func main() { presentInVrf := "presentInVrf_example" // string | (optional) presentInVrfId := "presentInVrfId_example" // string | (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this prefix (optional) - statusN := []string{"Inner_example"} // []string | Operational status of this prefix (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIe := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIew := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIsw := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusN := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNic := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNie := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNiew := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNisw := []openapiclient.IpamPrefixesListStatusIcParameterInner{openapiclient.ipam_prefixes_list_status__ic_parameter_inner("active")} // []IpamPrefixesListStatusIcParameterInner | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -6493,7 +6592,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() + resp, r, err := apiClient.IpamAPI.IpamPrefixesList(context.Background()).Children(children).ChildrenEmpty(childrenEmpty).ChildrenGt(childrenGt).ChildrenGte(childrenGte).ChildrenLt(childrenLt).ChildrenLte(childrenLte).ChildrenN(childrenN).Contains(contains).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Depth(depth).DepthEmpty(depthEmpty).DepthGt(depthGt).DepthGte(depthGte).DepthLt(depthLt).DepthLte(depthLte).DepthN(depthN).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Family(family).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsPool(isPool).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MarkUtilized(markUtilized).MaskLength(maskLength).MaskLengthGte(maskLengthGte).MaskLengthLte(maskLengthLte).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Prefix(prefix).PresentInVrf(presentInVrf).PresentInVrfId(presentInVrfId).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).VlanVid(vlanVid).VlanVidEmpty(vlanVidEmpty).VlanVidGt(vlanVidGt).VlanVidGte(vlanVidGte).VlanVidLt(vlanVidLt).VlanVidLte(vlanVidLte).VlanVidN(vlanVidN).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Within(within).WithinInclude(withinInclude).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamPrefixesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6576,32 +6675,41 @@ Name | Type | Description | Notes **presentInVrf** | **string** | | **presentInVrfId** | **string** | | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this prefix | - **statusN** | **[]string** | Operational status of this prefix | + **statusEmpty** | **bool** | | + **statusIc** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIe** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIew** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIsw** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusN** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNic** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNie** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNiew** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNisw** | [**[]IpamPrefixesListStatusIcParameterInner**](IpamPrefixesListStatusIcParameterInner.md) | Operational status of this prefix * `container` - Container * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -8760,10 +8868,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -8860,10 +8968,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -9432,7 +9540,7 @@ Name | Type | Description | Notes ## IpamServiceTemplatesList -> PaginatedServiceTemplateList IpamServiceTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedServiceTemplateList IpamServiceTemplatesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -9502,7 +9610,6 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) port := float32(8.14) // float32 | (optional) protocol := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) - protocolN := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -9510,7 +9617,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamServiceTemplatesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServiceTemplatesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -9581,7 +9688,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **port** | **float32** | | **protocol** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | - **protocolN** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -10151,7 +10257,7 @@ Name | Type | Description | Notes ## IpamServicesList -> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() +> PaginatedServiceList IpamServicesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() @@ -10205,10 +10311,6 @@ func main() { ipAddressN := []string{"Inner_example"} // []string | IP address (optional) ipAddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) ipAddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddress := []string{"Inner_example"} // []string | IP address (optional) - ipaddressN := []string{"Inner_example"} // []string | IP address (optional) - ipaddressId := []int32{int32(123)} // []int32 | IP address (ID) (optional) - ipaddressIdN := []int32{int32(123)} // []int32 | IP address (ID) (optional) lastUpdated := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedEmpty := []time.Time{time.Now()} // []time.Time | (optional) lastUpdatedGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -10233,7 +10335,6 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) port := float32(8.14) // float32 | (optional) protocol := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) - protocolN := openapiclient.ipam_service_templates_list_protocol_parameter("sctp") // IpamServiceTemplatesListProtocolParameter | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -10245,7 +10346,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).Ipaddress(ipaddress).IpaddressN(ipaddressN).IpaddressId(ipaddressId).IpaddressIdN(ipaddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).ProtocolN(protocolN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() + resp, r, err := apiClient.IpamAPI.IpamServicesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpAddress(ipAddress).IpAddressN(ipAddressN).IpAddressId(ipAddressId).IpAddressIdN(ipAddressIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Port(port).Protocol(protocol).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamServicesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -10300,10 +10401,6 @@ Name | Type | Description | Notes **ipAddressN** | **[]string** | IP address | **ipAddressId** | **[]int32** | IP address (ID) | **ipAddressIdN** | **[]int32** | IP address (ID) | - **ipaddress** | **[]string** | IP address | - **ipaddressN** | **[]string** | IP address | - **ipaddressId** | **[]int32** | IP address (ID) | - **ipaddressIdN** | **[]int32** | IP address (ID) | **lastUpdated** | [**[]time.Time**](time.Time.md) | | **lastUpdatedEmpty** | [**[]time.Time**](time.Time.md) | | **lastUpdatedGt** | [**[]time.Time**](time.Time.md) | | @@ -10328,7 +10425,6 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **port** | **float32** | | **protocol** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | - **protocolN** | [**IpamServiceTemplatesListProtocolParameter**](IpamServiceTemplatesListProtocolParameter.md) | * `tcp` - TCP * `udp` - UDP * `sctp` - SCTP | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -11044,7 +11140,7 @@ Name | Type | Description | Notes ## IpamVlanGroupsList -> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedVLANGroupList IpamVlanGroupsList(ctx).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -11066,7 +11162,7 @@ import ( func main() { cluster := int32(56) // int32 | (optional) clusterGroup := int32(56) // int32 | (optional) - clustergroup := int32(56) // int32 | (optional) + containsVid := float32(8.14) // float32 | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -11102,20 +11198,6 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) location := int32(56) // int32 | (optional) - maxVid := []int32{int32(123)} // []int32 | (optional) - maxVidEmpty := true // bool | (optional) - maxVidGt := []int32{int32(123)} // []int32 | (optional) - maxVidGte := []int32{int32(123)} // []int32 | (optional) - maxVidLt := []int32{int32(123)} // []int32 | (optional) - maxVidLte := []int32{int32(123)} // []int32 | (optional) - maxVidN := []int32{int32(123)} // []int32 | (optional) - minVid := []int32{int32(123)} // []int32 | (optional) - minVidEmpty := true // bool | (optional) - minVidGt := []int32{int32(123)} // []int32 | (optional) - minVidGte := []int32{int32(123)} // []int32 | (optional) - minVidLt := []int32{int32(123)} // []int32 | (optional) - minVidLte := []int32{int32(123)} // []int32 | (optional) - minVidN := []int32{int32(123)} // []int32 | (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -11144,7 +11226,6 @@ func main() { scopeTypeN := "scopeTypeN_example" // string | (optional) site := int32(56) // int32 | (optional) siteGroup := int32(56) // int32 | (optional) - sitegroup := int32(56) // int32 | (optional) slug := []string{"Inner_example"} // []string | (optional) slugEmpty := true // bool | (optional) slugIc := []string{"Inner_example"} // []string | (optional) @@ -11162,7 +11243,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).Clustergroup(clustergroup).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).MaxVid(maxVid).MaxVidEmpty(maxVidEmpty).MaxVidGt(maxVidGt).MaxVidGte(maxVidGte).MaxVidLt(maxVidLt).MaxVidLte(maxVidLte).MaxVidN(maxVidN).MinVid(minVid).MinVidEmpty(minVidEmpty).MinVidGt(minVidGt).MinVidGte(minVidGte).MinVidLt(minVidLt).MinVidLte(minVidLte).MinVidN(minVidN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Sitegroup(sitegroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlanGroupsList(context.Background()).Cluster(cluster).ClusterGroup(clusterGroup).ContainsVid(containsVid).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Location(location).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Rack(rack).Region(region).ScopeId(scopeId).ScopeIdEmpty(scopeIdEmpty).ScopeIdGt(scopeIdGt).ScopeIdGte(scopeIdGte).ScopeIdLt(scopeIdLt).ScopeIdLte(scopeIdLte).ScopeIdN(scopeIdN).ScopeType(scopeType).ScopeTypeN(scopeTypeN).Site(site).SiteGroup(siteGroup).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlanGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -11185,7 +11266,7 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **cluster** | **int32** | | **clusterGroup** | **int32** | | - **clustergroup** | **int32** | | + **containsVid** | **float32** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -11221,20 +11302,6 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **location** | **int32** | | - **maxVid** | **[]int32** | | - **maxVidEmpty** | **bool** | | - **maxVidGt** | **[]int32** | | - **maxVidGte** | **[]int32** | | - **maxVidLt** | **[]int32** | | - **maxVidLte** | **[]int32** | | - **maxVidN** | **[]int32** | | - **minVid** | **[]int32** | | - **minVidEmpty** | **bool** | | - **minVidGt** | **[]int32** | | - **minVidGte** | **[]int32** | | - **minVidLt** | **[]int32** | | - **minVidLte** | **[]int32** | | - **minVidN** | **[]int32** | | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -11263,7 +11330,6 @@ Name | Type | Description | Notes **scopeTypeN** | **string** | | **site** | **int32** | | **siteGroup** | **int32** | | - **sitegroup** | **int32** | | **slug** | **[]string** | | **slugEmpty** | **bool** | | **slugIc** | **[]string** | | @@ -11843,7 +11909,7 @@ Name | Type | Description | Notes ## IpamVlansList -> PaginatedVLANList IpamVlansList(ctx).AvailableAtSite(availableAtSite).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() +> PaginatedVLANList IpamVlansList(ctx).AvailableAtSite(availableAtSite).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() @@ -11923,32 +11989,41 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) - statusN := []string{"Inner_example"} // []string | Operational status of this VLAN (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIe := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIew := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusIsw := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusN := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNic := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNie := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNiew := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) + statusNisw := []openapiclient.IpamIpRangesListStatusIcParameterInner{openapiclient.ipam_ip_ranges_list_status__ic_parameter_inner("active")} // []IpamIpRangesListStatusIcParameterInner | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -11962,7 +12037,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableAtSite(availableAtSite).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() + resp, r, err := apiClient.IpamAPI.IpamVlansList(context.Background()).AvailableAtSite(availableAtSite).AvailableOnDevice(availableOnDevice).AvailableOnVirtualmachine(availableOnVirtualmachine).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vid(vid).VidEmpty(vidEmpty).VidGt(vidGt).VidGte(vidGte).VidLt(vidLt).VidLte(vidLte).VidN(vidN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `IpamAPI.IpamVlansList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -12043,32 +12118,41 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | Operational status of this VLAN | - **statusN** | **[]string** | Operational status of this VLAN | + **statusEmpty** | **bool** | | + **statusIc** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIe** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIew** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusIsw** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusN** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNic** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNie** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNiew** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | + **statusNisw** | [**[]IpamIpRangesListStatusIcParameterInner**](IpamIpRangesListStatusIcParameterInner.md) | Operational status of this VLAN * `active` - Active * `reserved` - Reserved * `deprecated` - Deprecated | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -12737,10 +12821,10 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -12841,10 +12925,10 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/Job.md b/docs/Job.md index 1366c5915..652544e72 100644 --- a/docs/Job.md +++ b/docs/Job.md @@ -6,17 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectType** | **string** | | [readonly] **ObjectId** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | -**Status** | [**JobStatus**](JobStatus.md) | | +**Status** | [**BriefJobStatus**](BriefJobStatus.md) | | **Created** | **time.Time** | | [readonly] **Scheduled** | Pointer to **NullableTime** | | [optional] **Interval** | Pointer to **NullableInt32** | Recurrence interval (in minutes) | [optional] **Started** | Pointer to **NullableTime** | | [optional] **Completed** | Pointer to **NullableTime** | | [optional] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Data** | Pointer to **interface{}** | | [optional] **Error** | **string** | | [readonly] **JobId** | **string** | | @@ -25,7 +26,7 @@ Name | Type | Description | Notes ### NewJob -`func NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string, ) *Job` +`func NewJob(id int32, url string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string, ) *Job` NewJob instantiates a new Job object This constructor will assign default values to properties that have it defined, @@ -80,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Job) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Job) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Job) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Job) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Job) GetDisplay() string` @@ -177,20 +203,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *Job) GetStatus() JobStatus` +`func (o *Job) GetStatus() BriefJobStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *Job) GetStatusOk() (*JobStatus, bool)` +`func (o *Job) GetStatusOk() (*BriefJobStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *Job) SetStatus(v JobStatus)` +`func (o *Job) SetStatus(v BriefJobStatus)` SetStatus sets Status field to given value. @@ -357,20 +383,20 @@ HasCompleted returns a boolean if a field has been set. UnsetCompleted ensures that no value is present for Completed, not even an explicit nil ### GetUser -`func (o *Job) GetUser() User` +`func (o *Job) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Job) GetUserOk() (*User, bool)` +`func (o *Job) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Job) SetUser(v User)` +`func (o *Job) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/JournalEntry.md b/docs/JournalEntry.md index de511cc13..6277d597a 100644 --- a/docs/JournalEntry.md +++ b/docs/JournalEntry.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **AssignedObjectType** | **string** | | **AssignedObjectId** | **int64** | | @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *JournalEntry) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *JournalEntry) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *JournalEntry) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *JournalEntry) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *JournalEntry) GetDisplay() string` diff --git a/docs/L2VPN.md b/docs/L2VPN.md index 85cc2783e..3bb329675 100644 --- a/docs/L2VPN.md +++ b/docs/L2VPN.md @@ -6,18 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNType**](L2VPNType.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNType**](BriefL2VPNType.md) | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPN -`func NewL2VPN(id int32, url string, display string, name string, slug string, ) *L2VPN` +`func NewL2VPN(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *L2VPN` NewL2VPN instantiates a new L2VPN object This constructor will assign default values to properties that have it defined, @@ -72,6 +81,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *L2VPN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *L2VPN) GetDisplay() string` @@ -169,20 +203,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPN) GetType() L2VPNType` +`func (o *L2VPN) GetType() BriefL2VPNType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPN) GetTypeOk() (*L2VPNType, bool)` +`func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPN) SetType(v L2VPNType)` +`func (o *L2VPN) SetType(v BriefL2VPNType)` SetType sets Type field to given value. @@ -192,6 +226,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPN) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPN) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPN) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPN) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPN) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPN) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPN) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPN) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPN) GetDescription() string` @@ -217,6 +301,176 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPN) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *L2VPN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPN) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPN) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPN) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *L2VPN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *L2VPN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *L2VPN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *L2VPN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/L2VPNRequest.md b/docs/L2VPNRequest.md index 7c5fb24c8..22f327eb1 100644 --- a/docs/L2VPNRequest.md +++ b/docs/L2VPNRequest.md @@ -7,8 +7,14 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -106,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *L2VPNRequest) GetType() L2VPNTypeValue` +`func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *L2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -129,6 +135,56 @@ SetType sets Type field to given value. HasType returns a boolean if a field has been set. +### GetImportTargets + +`func (o *L2VPNRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *L2VPNRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *L2VPNRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *L2VPNRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *L2VPNRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *L2VPNRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *L2VPNRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *L2VPNRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + ### GetDescription `func (o *L2VPNRequest) GetDescription() string` @@ -154,6 +210,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *L2VPNRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *L2VPNRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *L2VPNRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *L2VPNRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTenant + +`func (o *L2VPNRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *L2VPNRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *L2VPNRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *L2VPNRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *L2VPNRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTags + +`func (o *L2VPNRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/L2VPNTermination.md b/docs/L2VPNTermination.md index 4c558a8e6..61e0dadff 100644 --- a/docs/L2VPNTermination.md +++ b/docs/L2VPNTermination.md @@ -6,14 +6,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**L2vpn** | [**L2VPN**](L2VPN.md) | | +**L2vpn** | [**BriefL2VPN**](BriefL2VPN.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**AssignedObject** | **interface{}** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewL2VPNTermination -`func NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN, ) *L2VPNTermination` +`func NewL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime, ) *L2VPNTermination` NewL2VPNTermination instantiates a new L2VPNTermination object This constructor will assign default values to properties that have it defined, @@ -68,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *L2VPNTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *L2VPNTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *L2VPNTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *L2VPNTermination) GetDisplay() string` @@ -90,24 +123,204 @@ SetDisplay sets Display field to given value. ### GetL2vpn -`func (o *L2VPNTermination) GetL2vpn() L2VPN` +`func (o *L2VPNTermination) GetL2vpn() BriefL2VPN` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool)` +`func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTermination) SetL2vpn(v L2VPN)` +`func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTermination) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTermination) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTermination) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTermination) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetAssignedObject + +`func (o *L2VPNTermination) GetAssignedObject() interface{}` + +GetAssignedObject returns the AssignedObject field if non-nil, zero value otherwise. + +### GetAssignedObjectOk + +`func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool)` + +GetAssignedObjectOk returns a tuple with the AssignedObject field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObject + +`func (o *L2VPNTermination) SetAssignedObject(v interface{})` + +SetAssignedObject sets AssignedObject field to given value. + + +### SetAssignedObjectNil + +`func (o *L2VPNTermination) SetAssignedObjectNil(b bool)` + + SetAssignedObjectNil sets the value for AssignedObject to be an explicit nil + +### UnsetAssignedObject +`func (o *L2VPNTermination) UnsetAssignedObject()` + +UnsetAssignedObject ensures that no value is present for AssignedObject, not even an explicit nil +### GetTags + +`func (o *L2VPNTermination) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTermination) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNTermination) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTermination) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTermination) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTermination) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNTermination) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTermination) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *L2VPNTermination) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *L2VPNTermination) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *L2VPNTermination) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *L2VPNTermination) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *L2VPNTermination) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *L2VPNTermination) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *L2VPNTermination) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *L2VPNTermination) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/L2VPNTerminationRequest.md b/docs/L2VPNTerminationRequest.md index 06ee7633d..2fb1317c5 100644 --- a/docs/L2VPNTerminationRequest.md +++ b/docs/L2VPNTerminationRequest.md @@ -4,13 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | [**L2VPNRequest**](L2VPNRequest.md) | | +**L2vpn** | [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | +**AssignedObjectType** | **string** | | +**AssignedObjectId** | **int64** | | +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewL2VPNTerminationRequest -`func NewL2VPNTerminationRequest(l2vpn L2VPNRequest, ) *L2VPNTerminationRequest` +`func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64, ) *L2VPNTerminationRequest` NewL2VPNTerminationRequest instantiates a new L2VPNTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -27,24 +31,114 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. +### GetAssignedObjectType + +`func (o *L2VPNTerminationRequest) GetAssignedObjectType() string` + +GetAssignedObjectType returns the AssignedObjectType field if non-nil, zero value otherwise. + +### GetAssignedObjectTypeOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool)` + +GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectType + +`func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string)` + +SetAssignedObjectType sets AssignedObjectType field to given value. + + +### GetAssignedObjectId + +`func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64` + +GetAssignedObjectId returns the AssignedObjectId field if non-nil, zero value otherwise. + +### GetAssignedObjectIdOk + +`func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool)` + +GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignedObjectId + +`func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64)` + +SetAssignedObjectId sets AssignedObjectId field to given value. + + +### GetTags + +`func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *L2VPNTerminationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *L2VPNTerminationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *L2VPNTerminationRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Location.md b/docs/Location.md index 4130ec547..33e503921 100644 --- a/docs/Location.md +++ b/docs/Location.md @@ -6,18 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSite**](BriefSite.md) | | +**Parent** | Pointer to [**NullableNestedLocation**](NestedLocation.md) | | [optional] +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **RackCount** | **int32** | | [readonly] [default to 0] +**DeviceCount** | Pointer to **int32** | | [optional] [readonly] [default to 0] **Depth** | **int32** | | [readonly] ## Methods ### NewLocation -`func NewLocation(id int32, url string, display string, name string, slug string, rackCount int32, depth int32, ) *Location` +`func NewLocation(id int32, url string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, depth int32, ) *Location` NewLocation instantiates a new Location object This constructor will assign default values to properties that have it defined, @@ -72,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Location) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Location) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Location) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Location) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Location) GetDisplay() string` @@ -132,6 +168,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *Location) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Location) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Location) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *Location) GetParent() NestedLocation` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *Location) GetParentOk() (*NestedLocation, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *Location) SetParent(v NestedLocation)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *Location) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *Location) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *Location) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *Location) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Location) GetStatusOk() (*LocationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Location) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Location) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *Location) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Location) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Location) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Location) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Location) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Location) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Location) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Location) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Location) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Location) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *Location) GetDescription() string` @@ -157,6 +333,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Location) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Location) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Location) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Location) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Location) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Location) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Location) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Location) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Location) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Location) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Location) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Location) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Location) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Location) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Location) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Location) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Location) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Location) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetRackCount `func (o *Location) GetRackCount() int32` @@ -177,6 +463,31 @@ and a boolean to check if the value has been set. SetRackCount sets RackCount field to given value. +### GetDeviceCount + +`func (o *Location) GetDeviceCount() int32` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Location) GetDeviceCountOk() (*int32, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Location) SetDeviceCount(v int32)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Location) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + ### GetDepth `func (o *Location) GetDepth() int32` diff --git a/docs/LocationRequest.md b/docs/LocationRequest.md index f23f111fd..0dd6b179c 100644 --- a/docs/LocationRequest.md +++ b/docs/LocationRequest.md @@ -6,13 +6,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Parent** | Pointer to [**NullableNestedLocationRequest**](NestedLocationRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewLocationRequest -`func NewLocationRequest(name string, slug string, ) *LocationRequest` +`func NewLocationRequest(name string, slug string, site BriefSiteRequest, ) *LocationRequest` NewLocationRequest instantiates a new LocationRequest object This constructor will assign default values to properties that have it defined, @@ -67,6 +74,146 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetSite + +`func (o *LocationRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *LocationRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetParent + +`func (o *LocationRequest) GetParent() NestedLocationRequest` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *LocationRequest) SetParent(v NestedLocationRequest)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *LocationRequest) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *LocationRequest) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *LocationRequest) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil +### GetStatus + +`func (o *LocationRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *LocationRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *LocationRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetTenant + +`func (o *LocationRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *LocationRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *LocationRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *LocationRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *LocationRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *LocationRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *LocationRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *LocationRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *LocationRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + ### GetDescription `func (o *LocationRequest) GetDescription() string` @@ -92,6 +239,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *LocationRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *LocationRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *LocationRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *LocationRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *LocationRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *LocationRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *LocationRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *LocationRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Manufacturer.md b/docs/Manufacturer.md index 753c72fe6..2d54f6112 100644 --- a/docs/Manufacturer.md +++ b/docs/Manufacturer.md @@ -6,17 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DevicetypeCount** | Pointer to **int64** | | [optional] [readonly] +**InventoryitemCount** | **int64** | | [readonly] +**PlatformCount** | **int64** | | [readonly] ## Methods ### NewManufacturer -`func NewManufacturer(id int32, url string, display string, name string, slug string, ) *Manufacturer` +`func NewManufacturer(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, platformCount int64, ) *Manufacturer` NewManufacturer instantiates a new Manufacturer object This constructor will assign default values to properties that have it defined, @@ -71,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Manufacturer) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Manufacturer) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Manufacturer) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Manufacturer) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Manufacturer) GetDisplay() string` @@ -156,6 +188,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Manufacturer) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Manufacturer) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Manufacturer) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Manufacturer) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Manufacturer) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Manufacturer) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Manufacturer) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Manufacturer) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Manufacturer) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Manufacturer) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Manufacturer) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Manufacturer) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Manufacturer) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Manufacturer) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Manufacturer) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Manufacturer) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Manufacturer) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDevicetypeCount `func (o *Manufacturer) GetDevicetypeCount() int64` @@ -181,6 +323,46 @@ SetDevicetypeCount sets DevicetypeCount field to given value. HasDevicetypeCount returns a boolean if a field has been set. +### GetInventoryitemCount + +`func (o *Manufacturer) GetInventoryitemCount() int64` + +GetInventoryitemCount returns the InventoryitemCount field if non-nil, zero value otherwise. + +### GetInventoryitemCountOk + +`func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool)` + +GetInventoryitemCountOk returns a tuple with the InventoryitemCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetInventoryitemCount + +`func (o *Manufacturer) SetInventoryitemCount(v int64)` + +SetInventoryitemCount sets InventoryitemCount field to given value. + + +### GetPlatformCount + +`func (o *Manufacturer) GetPlatformCount() int64` + +GetPlatformCount returns the PlatformCount field if non-nil, zero value otherwise. + +### GetPlatformCountOk + +`func (o *Manufacturer) GetPlatformCountOk() (*int64, bool)` + +GetPlatformCountOk returns a tuple with the PlatformCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPlatformCount + +`func (o *Manufacturer) SetPlatformCount(v int64)` + +SetPlatformCount sets PlatformCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/ManufacturerRequest.md b/docs/ManufacturerRequest.md index 669fe2389..6f878526b 100644 --- a/docs/ManufacturerRequest.md +++ b/docs/ManufacturerRequest.md @@ -7,6 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Slug** | **string** | | **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -92,6 +94,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *ManufacturerRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ManufacturerRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ManufacturerRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ManufacturerRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ManufacturerRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ManufacturerRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ManufacturerRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Module.md b/docs/Module.md index a9257180a..4f11b28cc 100644 --- a/docs/Module.md +++ b/docs/Module.md @@ -6,15 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **ModuleBay** | [**NestedModuleBay**](NestedModuleBay.md) | | +**ModuleType** | [**BriefModuleType**](BriefModuleType.md) | | +**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModule -`func NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay, ) *Module` +`func NewModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime, ) *Module` NewModule instantiates a new Module object This constructor will assign default values to properties that have it defined, @@ -69,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Module) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Module) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Module) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Module) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Module) GetDisplay() string` @@ -91,20 +127,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Module) GetDevice() Device` +`func (o *Module) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Module) GetDeviceOk() (*Device, bool)` +`func (o *Module) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Module) SetDevice(v Device)` +`func (o *Module) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -129,6 +165,271 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *Module) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *Module) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *Module) GetStatus() ModuleStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Module) GetStatusOk() (*ModuleStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Module) SetStatus(v ModuleStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Module) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *Module) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Module) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Module) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Module) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Module) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Module) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Module) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Module) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Module) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Module) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *Module) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *Module) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *Module) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *Module) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *Module) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Module) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Module) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Module) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Module) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Module) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Module) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Module) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Module) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Module) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Module) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Module) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Module) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Module) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Module) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Module) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Module) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Module) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Module) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Module) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Module) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Module) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ModuleBay.md b/docs/ModuleBay.md index 71f734939..9d8ec6a2b 100644 --- a/docs/ModuleBay.md +++ b/docs/ModuleBay.md @@ -6,10 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModule**](Module.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -22,7 +24,7 @@ Name | Type | Description | Notes ### NewModuleBay -`func NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` +`func NewModuleBay(id int32, url string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBay` NewModuleBay instantiates a new ModuleBay object This constructor will assign default values to properties that have it defined, @@ -77,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleBay) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleBay) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleBay) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ModuleBay) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ModuleBay) GetDisplay() string` @@ -99,24 +126,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *ModuleBay) GetDevice() Device` +`func (o *ModuleBay) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBay) GetDeviceOk() (*Device, bool)` +`func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBay) SetDevice(v Device)` +`func (o *ModuleBay) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBay) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBay) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBay) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBay) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBay) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBay) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBay) GetName() string` @@ -139,20 +201,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBay) GetInstalledModule() Module` +`func (o *ModuleBay) GetInstalledModule() BriefModule` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool)` +`func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBay) SetInstalledModule(v Module)` +`func (o *ModuleBay) SetInstalledModule(v BriefModule)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayRequest.md b/docs/ModuleBayRequest.md index aa37cbe9d..2062d984b 100644 --- a/docs/ModuleBayRequest.md +++ b/docs/ModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -17,7 +18,7 @@ Name | Type | Description | Notes ### NewModuleBayRequest -`func NewModuleBayRequest(device DeviceRequest, name string, ) *ModuleBayRequest` +`func NewModuleBayRequest(device BriefDeviceRequest, name string, ) *ModuleBayRequest` NewModuleBayRequest instantiates a new ModuleBayRequest object This constructor will assign default values to properties that have it defined, @@ -34,24 +35,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleBayRequest) GetDevice() DeviceRequest` +`func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *ModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *ModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *ModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *ModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *ModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *ModuleBayRequest) GetName() string` @@ -74,20 +110,20 @@ SetName sets Name field to given value. ### GetInstalledModule -`func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/ModuleBayTemplate.md b/docs/ModuleBayTemplate.md index 237edfcaf..1bac16365 100644 --- a/docs/ModuleBayTemplate.md +++ b/docs/ModuleBayTemplate.md @@ -7,7 +7,8 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | [**DeviceType**](DeviceType.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplate -`func NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` +`func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *ModuleBayTemplate` NewModuleBayTemplate instantiates a new ModuleBayTemplate object This constructor will assign default values to properties that have it defined, @@ -96,24 +97,74 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *ModuleBayTemplate) GetDeviceType() DeviceType` +`func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplate) SetDeviceType(v DeviceType)` +`func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplate) GetName() string` diff --git a/docs/ModuleBayTemplateRequest.md b/docs/ModuleBayTemplateRequest.md index 75345ace9..96ce2a437 100644 --- a/docs/ModuleBayTemplateRequest.md +++ b/docs/ModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -14,7 +15,7 @@ Name | Type | Description | Notes ### NewModuleBayTemplateRequest -`func NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string, ) *ModuleBayTemplateRequest` +`func NewModuleBayTemplateRequest(name string, ) *ModuleBayTemplateRequest` NewModuleBayTemplateRequest instantiates a new ModuleBayTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -31,24 +32,74 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. +### HasDeviceType +`func (o *ModuleBayTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *ModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *ModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *ModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *ModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *ModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *ModuleBayTemplateRequest) GetName() string` diff --git a/docs/ModuleRequest.md b/docs/ModuleRequest.md index 648ff41f3..11b1cbda2 100644 --- a/docs/ModuleRequest.md +++ b/docs/ModuleRequest.md @@ -4,14 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | [**NestedModuleBayRequest**](NestedModuleBayRequest.md) | | +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] +**Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleRequest -`func NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest, ) *ModuleRequest` +`func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest, ) *ModuleRequest` NewModuleRequest instantiates a new ModuleRequest object This constructor will assign default values to properties that have it defined, @@ -28,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ModuleRequest) GetDevice() DeviceRequest` +`func (o *ModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ModuleRequest) SetDevice(v DeviceRequest)` +`func (o *ModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -66,6 +74,211 @@ and a boolean to check if the value has been set. SetModuleBay sets ModuleBay field to given value. +### GetModuleType + +`func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + + +### GetStatus + +`func (o *ModuleRequest) GetStatus() ModuleStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *ModuleRequest) SetStatus(v ModuleStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *ModuleRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetSerial + +`func (o *ModuleRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *ModuleRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *ModuleRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *ModuleRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *ModuleRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *ModuleRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *ModuleRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *ModuleRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *ModuleRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *ModuleRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetDescription + +`func (o *ModuleRequest) GetDescription() string` + +GetDescription returns the Description field if non-nil, zero value otherwise. + +### GetDescriptionOk + +`func (o *ModuleRequest) GetDescriptionOk() (*string, bool)` + +GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescription + +`func (o *ModuleRequest) SetDescription(v string)` + +SetDescription sets Description field to given value. + +### HasDescription + +`func (o *ModuleRequest) HasDescription() bool` + +HasDescription returns a boolean if a field has been set. + +### GetComments + +`func (o *ModuleRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ModuleType.md b/docs/ModuleType.md index 2c09e327c..7ff5f243f 100644 --- a/docs/ModuleType.md +++ b/docs/ModuleType.md @@ -6,16 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Manufacturer** | [**Manufacturer**](Manufacturer.md) | | +**Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeAirflow**](ModuleTypeAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewModuleType -`func NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string, ) *ModuleType` +`func NewModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime, ) *ModuleType` NewModuleType instantiates a new ModuleType object This constructor will assign default values to properties that have it defined, @@ -70,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ModuleType) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ModuleType) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ModuleType) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ModuleType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ModuleType) GetDisplay() string` @@ -92,20 +127,20 @@ SetDisplay sets Display field to given value. ### GetManufacturer -`func (o *ModuleType) GetManufacturer() Manufacturer` +`func (o *ModuleType) GetManufacturer() BriefManufacturer` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool)` +`func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleType) SetManufacturer(v Manufacturer)` +`func (o *ModuleType) SetManufacturer(v BriefManufacturer)` SetManufacturer sets Manufacturer field to given value. @@ -130,6 +165,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleType) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleType) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleType) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleType) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleType) GetAirflow() ModuleTypeAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleType) SetAirflow(v ModuleTypeAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleType) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleType) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleType) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleType) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleType) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleType) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleType) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleType) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleType) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleType) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleType) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleType) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleType) GetDescription() string` @@ -155,6 +320,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleType) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleType) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleType) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleType) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleType) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleType) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleType) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleType) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleType) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleType) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleType) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleType) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ModuleType) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ModuleType) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ModuleType) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ModuleType) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ModuleType) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ModuleType) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ModuleType) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ModuleType) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ModuleType) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ModuleTypeRequest.md b/docs/ModuleTypeRequest.md index 53185cdf3..ad422214b 100644 --- a/docs/ModuleTypeRequest.md +++ b/docs/ModuleTypeRequest.md @@ -4,15 +4,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | +**PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**NullableModuleTypeRequestAirflow**](ModuleTypeRequestAirflow.md) | | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewModuleTypeRequest -`func NewModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *ModuleTypeRequest` +`func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *ModuleTypeRequest` NewModuleTypeRequest instantiates a new ModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -29,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -67,6 +74,136 @@ and a boolean to check if the value has been set. SetModel sets Model field to given value. +### GetPartNumber + +`func (o *ModuleTypeRequest) GetPartNumber() string` + +GetPartNumber returns the PartNumber field if non-nil, zero value otherwise. + +### GetPartNumberOk + +`func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool)` + +GetPartNumberOk returns a tuple with the PartNumber field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPartNumber + +`func (o *ModuleTypeRequest) SetPartNumber(v string)` + +SetPartNumber sets PartNumber field to given value. + +### HasPartNumber + +`func (o *ModuleTypeRequest) HasPartNumber() bool` + +HasPartNumber returns a boolean if a field has been set. + +### GetAirflow + +`func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *ModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + +### SetAirflowNil + +`func (o *ModuleTypeRequest) SetAirflowNil(b bool)` + + SetAirflowNil sets the value for Airflow to be an explicit nil + +### UnsetAirflow +`func (o *ModuleTypeRequest) UnsetAirflow()` + +UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +### GetWeight + +`func (o *ModuleTypeRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *ModuleTypeRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *ModuleTypeRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *ModuleTypeRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *ModuleTypeRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetWeightUnit + +`func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *ModuleTypeRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *ModuleTypeRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *ModuleTypeRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil ### GetDescription `func (o *ModuleTypeRequest) GetDescription() string` @@ -92,6 +229,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ModuleTypeRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ModuleTypeRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ModuleTypeRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ModuleTypeRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ModuleTypeRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ModuleTypeRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ModuleTypeRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ModuleTypeRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/NestedContactGroup.md b/docs/NestedContactGroup.md index 57a1c07f4..aeca08a09 100644 --- a/docs/NestedContactGroup.md +++ b/docs/NestedContactGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedContactGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedContactGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedContactGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedContactGroup) GetDisplay() string` diff --git a/docs/NestedDevice.md b/docs/NestedDevice.md index ef9a0807e..21ac91b7b 100644 --- a/docs/NestedDevice.md +++ b/docs/NestedDevice.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **NullableString** | | [optional] @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedDevice) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedDevice) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedDevice) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedDevice) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedDevice) GetDisplay() string` diff --git a/docs/NestedGroup.md b/docs/NestedGroup.md index 2510f7a46..dc35c4ab1 100644 --- a/docs/NestedGroup.md +++ b/docs/NestedGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedGroup) GetDisplay() string` diff --git a/docs/NestedIPAddress.md b/docs/NestedIPAddress.md index 6f1cebf80..0b45f584c 100644 --- a/docs/NestedIPAddress.md +++ b/docs/NestedIPAddress.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | **int32** | | [readonly] **Address** | **string** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedIPAddress -`func NewNestedIPAddress(id int32, url string, displayUrl string, display string, family int32, address string, ) *NestedIPAddress` +`func NewNestedIPAddress(id int32, url string, display string, family int32, address string, ) *NestedIPAddress` NewNestedIPAddress instantiates a new NestedIPAddress object This constructor will assign default values to properties that have it defined, @@ -89,6 +89,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *NestedIPAddress) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/NestedInterface.md b/docs/NestedInterface.md index f5bc6feec..76a1684d0 100644 --- a/docs/NestedInterface.md +++ b/docs/NestedInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Device** | [**NestedDevice**](NestedDevice.md) | | [readonly] **Name** | **string** | | @@ -71,6 +72,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedInterface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedInterface) GetDisplay() string` diff --git a/docs/NestedLocation.md b/docs/NestedLocation.md index 6c80b914e..45dd66c70 100644 --- a/docs/NestedLocation.md +++ b/docs/NestedLocation.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedLocation -`func NewNestedLocation(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedLocation` +`func NewNestedLocation(id int32, url string, display string, name string, slug string, depth int32, ) *NestedLocation` NewNestedLocation instantiates a new NestedLocation object This constructor will assign default values to properties that have it defined, @@ -90,6 +90,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *NestedLocation) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/NestedModuleBay.md b/docs/NestedModuleBay.md index fd92789c2..8eaf9f193 100644 --- a/docs/NestedModuleBay.md +++ b/docs/NestedModuleBay.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**InstalledModule** | Pointer to [**NullableModuleBayNestedModule**](ModuleBayNestedModule.md) | | [optional] **Name** | **string** | | ## Methods @@ -69,61 +69,51 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. -### GetDisplay +### GetDisplayUrl -`func (o *NestedModuleBay) GetDisplay() string` +`func (o *NestedModuleBay) GetDisplayUrl() string` -GetDisplay returns the Display field if non-nil, zero value otherwise. +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. -### GetDisplayOk +### GetDisplayUrlOk -`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` +`func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool)` -GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetDisplay - -`func (o *NestedModuleBay) SetDisplay(v string)` - -SetDisplay sets Display field to given value. - +### SetDisplayUrl -### GetInstalledModule +`func (o *NestedModuleBay) SetDisplayUrl(v string)` -`func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule` +SetDisplayUrl sets DisplayUrl field to given value. -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. +### HasDisplayUrl -### GetInstalledModuleOk +`func (o *NestedModuleBay) HasDisplayUrl() bool` -`func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool)` +HasDisplayUrl returns a boolean if a field has been set. -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstalledModule +### GetDisplay -`func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule)` +`func (o *NestedModuleBay) GetDisplay() string` -SetInstalledModule sets InstalledModule field to given value. +GetDisplay returns the Display field if non-nil, zero value otherwise. -### HasInstalledModule +### GetDisplayOk -`func (o *NestedModuleBay) HasInstalledModule() bool` +`func (o *NestedModuleBay) GetDisplayOk() (*string, bool)` -HasInstalledModule returns a boolean if a field has been set. +GetDisplayOk returns a tuple with the Display field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. -### SetInstalledModuleNil +### SetDisplay -`func (o *NestedModuleBay) SetInstalledModuleNil(b bool)` +`func (o *NestedModuleBay) SetDisplay(v string)` - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil +SetDisplay sets Display field to given value. -### UnsetInstalledModule -`func (o *NestedModuleBay) UnsetInstalledModule()` -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBay) GetName() string` diff --git a/docs/NestedModuleBayRequest.md b/docs/NestedModuleBayRequest.md index e23d88b56..abf39c21c 100644 --- a/docs/NestedModuleBayRequest.md +++ b/docs/NestedModuleBayRequest.md @@ -4,7 +4,6 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InstalledModule** | Pointer to [**NullableModuleBayNestedModuleRequest**](ModuleBayNestedModuleRequest.md) | | [optional] **Name** | **string** | | ## Methods @@ -26,41 +25,6 @@ NewNestedModuleBayRequestWithDefaults instantiates a new NestedModuleBayRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set -### GetInstalledModule - -`func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest` - -GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. - -### GetInstalledModuleOk - -`func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool)` - -GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetInstalledModule - -`func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest)` - -SetInstalledModule sets InstalledModule field to given value. - -### HasInstalledModule - -`func (o *NestedModuleBayRequest) HasInstalledModule() bool` - -HasInstalledModule returns a boolean if a field has been set. - -### SetInstalledModuleNil - -`func (o *NestedModuleBayRequest) SetInstalledModuleNil(b bool)` - - SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil - -### UnsetInstalledModule -`func (o *NestedModuleBayRequest) UnsetInstalledModule()` - -UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil ### GetName `func (o *NestedModuleBayRequest) GetName() string` diff --git a/docs/NestedProviderAccount.md b/docs/NestedProviderAccount.md index afec51cf4..c5a489800 100644 --- a/docs/NestedProviderAccount.md +++ b/docs/NestedProviderAccount.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | Pointer to **string** | | [optional] **Account** | **string** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewNestedProviderAccount -`func NewNestedProviderAccount(id int32, url string, displayUrl string, display string, account string, ) *NestedProviderAccount` +`func NewNestedProviderAccount(id int32, url string, display string, account string, ) *NestedProviderAccount` NewNestedProviderAccount instantiates a new NestedProviderAccount object This constructor will assign default values to properties that have it defined, @@ -89,6 +89,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *NestedProviderAccount) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/NestedRegion.md b/docs/NestedRegion.md index eb6f37ed6..b38b44dda 100644 --- a/docs/NestedRegion.md +++ b/docs/NestedRegion.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedRegion) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedRegion) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedRegion) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedRegion) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedRegion) GetDisplay() string` diff --git a/docs/NestedSiteGroup.md b/docs/NestedSiteGroup.md index 0dd67ab6d..5f1e5666f 100644 --- a/docs/NestedSiteGroup.md +++ b/docs/NestedSiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedSiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedSiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedSiteGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedSiteGroup) GetDisplay() string` diff --git a/docs/NestedTag.md b/docs/NestedTag.md index f87362fdc..ab6ab10f9 100644 --- a/docs/NestedTag.md +++ b/docs/NestedTag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedTag) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedTag) GetDisplay() string` diff --git a/docs/NestedTenantGroup.md b/docs/NestedTenantGroup.md index 3acbe4a23..89a881a3e 100644 --- a/docs/NestedTenantGroup.md +++ b/docs/NestedTenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -70,6 +71,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedTenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedTenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedTenantGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedTenantGroup) GetDisplay() string` diff --git a/docs/NestedUser.md b/docs/NestedUser.md index f4d0be09f..fe03ad724 100644 --- a/docs/NestedUser.md +++ b/docs/NestedUser.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedUser) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedUser) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedUser) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedUser) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedUser) GetDisplay() string` diff --git a/docs/NestedVMInterface.md b/docs/NestedVMInterface.md index bdc94d495..37d3cc677 100644 --- a/docs/NestedVMInterface.md +++ b/docs/NestedVMInterface.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **VirtualMachine** | [**NestedVirtualMachine**](NestedVirtualMachine.md) | | [readonly] **Name** | **string** | | @@ -69,6 +70,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedVMInterface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedVMInterface) GetDisplay() string` diff --git a/docs/NestedVirtualMachine.md b/docs/NestedVirtualMachine.md index 95a5a65aa..0de9f4e72 100644 --- a/docs/NestedVirtualMachine.md +++ b/docs/NestedVirtualMachine.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedVirtualMachine) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedVirtualMachine) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedVirtualMachine) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedVirtualMachine) GetDisplay() string` diff --git a/docs/NestedWirelessLANGroup.md b/docs/NestedWirelessLANGroup.md index 134d92860..490a342a9 100644 --- a/docs/NestedWirelessLANGroup.md +++ b/docs/NestedWirelessLANGroup.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewNestedWirelessLANGroup -`func NewNestedWirelessLANGroup(id int32, url string, displayUrl string, display string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` +`func NewNestedWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32, ) *NestedWirelessLANGroup` NewNestedWirelessLANGroup instantiates a new NestedWirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -90,6 +90,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *NestedWirelessLANGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/NestedWirelessLink.md b/docs/NestedWirelessLink.md index 3eeb8edce..477deae53 100644 --- a/docs/NestedWirelessLink.md +++ b/docs/NestedWirelessLink.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Ssid** | Pointer to **string** | | [optional] @@ -68,6 +69,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *NestedWirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *NestedWirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *NestedWirelessLink) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *NestedWirelessLink) GetDisplay() string` diff --git a/docs/NotificationGroup.md b/docs/NotificationGroup.md index 92fa98a5a..411bf0dcf 100644 --- a/docs/NotificationGroup.md +++ b/docs/NotificationGroup.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Groups** | Pointer to [**[]Group**](Group.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewNotificationGroup -`func NewNotificationGroup(id int32, url string, display string, displayUrl string, name string, ) *NotificationGroup` +`func NewNotificationGroup(id int32, url string, display string, name string, ) *NotificationGroup` NewNotificationGroup instantiates a new NotificationGroup object This constructor will assign default values to properties that have it defined, @@ -111,6 +111,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *NotificationGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetName diff --git a/docs/ObjectChange.md b/docs/ObjectChange.md index 574ef3fe5..08d4a5326 100644 --- a/docs/ObjectChange.md +++ b/docs/ObjectChange.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Time** | **time.Time** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **UserName** | **string** | | [readonly] **RequestId** | **string** | | [readonly] **Action** | [**ObjectChangeAction**](ObjectChangeAction.md) | | @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewObjectChange -`func NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` +`func NewObjectChange(id int32, url string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}, ) *ObjectChange` NewObjectChange instantiates a new ObjectChange object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectChange) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectChange) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectChange) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ObjectChange) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ObjectChange) GetDisplay() string` @@ -119,20 +145,20 @@ SetTime sets Time field to given value. ### GetUser -`func (o *ObjectChange) GetUser() User` +`func (o *ObjectChange) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *ObjectChange) GetUserOk() (*User, bool)` +`func (o *ObjectChange) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *ObjectChange) SetUser(v User)` +`func (o *ObjectChange) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/ObjectPermission.md b/docs/ObjectPermission.md index fec4199e4..6f9a08763 100644 --- a/docs/ObjectPermission.md +++ b/docs/ObjectPermission.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ObjectPermission) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ObjectPermission) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ObjectPermission) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ObjectPermission) GetDisplay() string` diff --git a/docs/PatchedASNRangeRequest.md b/docs/PatchedASNRangeRequest.md index a777fc11f..235fbbe6c 100644 --- a/docs/PatchedASNRangeRequest.md +++ b/docs/PatchedASNRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] **Start** | Pointer to **int64** | | [optional] **End** | Pointer to **int64** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -85,20 +85,20 @@ HasSlug returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRangeRequest) GetRir() RIRRequest` +`func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRangeRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -160,20 +160,20 @@ HasEnd returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedASNRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedASNRequest.md b/docs/PatchedASNRequest.md index 4df3e7c67..498a45866 100644 --- a/docs/PatchedASNRequest.md +++ b/docs/PatchedASNRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Asn** | Pointer to **int64** | 16- or 32-bit autonomous system number | [optional] -**Rir** | Pointer to [**NullableRIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**NullableBriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -58,20 +58,20 @@ HasAsn returns a boolean if a field has been set. ### GetRir -`func (o *PatchedASNRequest) GetRir() RIRRequest` +`func (o *PatchedASNRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedASNRequest) SetRir(v RIRRequest)` +`func (o *PatchedASNRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -93,20 +93,20 @@ HasRir returns a boolean if a field has been set. UnsetRir ensures that no value is present for Rir, not even an explicit nil ### GetTenant -`func (o *PatchedASNRequest) GetTenant() TenantRequest` +`func (o *PatchedASNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedASNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedBookmarkRequest.md b/docs/PatchedBookmarkRequest.md index 344f1ee74..b82fd2d84 100644 --- a/docs/PatchedBookmarkRequest.md +++ b/docs/PatchedBookmarkRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] ## Methods @@ -79,20 +79,20 @@ HasObjectId returns a boolean if a field has been set. ### GetUser -`func (o *PatchedBookmarkRequest) GetUser() UserRequest` +`func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedBookmarkRequest) SetUser(v UserRequest)` +`func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedCircuitTerminationRequest.md b/docs/PatchedCircuitTerminationRequest.md index 1785e201e..28bdc580b 100644 --- a/docs/PatchedCircuitTerminationRequest.md +++ b/docs/PatchedCircuitTerminationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Circuit** | Pointer to [**CircuitRequest**](CircuitRequest.md) | | [optional] +**Circuit** | Pointer to [**BriefCircuitRequest**](BriefCircuitRequest.md) | | [optional] **TermSide** | Pointer to [**Termination1**](Termination1.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**ProviderNetwork** | Pointer to [**NullableProviderNetworkRequest**](ProviderNetworkRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**ProviderNetwork** | Pointer to [**NullableBriefProviderNetworkRequest**](BriefProviderNetworkRequest.md) | | [optional] **PortSpeed** | Pointer to **NullableInt32** | Physical circuit speed | [optional] **UpstreamSpeed** | Pointer to **NullableInt32** | Upstream speed, if different from port speed | [optional] **XconnectId** | Pointer to **string** | ID of the local cross-connect | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetCircuit -`func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest` +`func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest` GetCircuit returns the Circuit field if non-nil, zero value otherwise. ### GetCircuitOk -`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool)` GetCircuitOk returns a tuple with the Circuit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCircuit -`func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest)` +`func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest)` SetCircuit sets Circuit field to given value. @@ -88,20 +88,20 @@ HasTermSide returns a boolean if a field has been set. ### GetSite -`func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest` +`func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest)` +`func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -123,20 +123,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest` GetProviderNetwork returns the ProviderNetwork field if non-nil, zero value otherwise. ### GetProviderNetworkOk -`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool)` +`func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool)` GetProviderNetworkOk returns a tuple with the ProviderNetwork field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderNetwork -`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest)` +`func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest)` SetProviderNetwork sets ProviderNetwork field to given value. diff --git a/docs/PatchedConfigContextRequest.md b/docs/PatchedConfigContextRequest.md index c4a77f887..5162d6aca 100644 --- a/docs/PatchedConfigContextRequest.md +++ b/docs/PatchedConfigContextRequest.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **TenantGroups** | Pointer to **[]int32** | | [optional] **Tenants** | Pointer to **[]int32** | | [optional] **Tags** | Pointer to **[]string** | | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Data** | Pointer to **interface{}** | | [optional] ## Methods @@ -470,20 +470,20 @@ HasTags returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedConfigTemplateRequest.md b/docs/PatchedConfigTemplateRequest.md index c9b147592..37005f012 100644 --- a/docs/PatchedConfigTemplateRequest.md +++ b/docs/PatchedConfigTemplateRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Description** | Pointer to **string** | | [optional] **EnvironmentParams** | Pointer to **interface{}** | Any <a href=\"https://jinja.palletsprojects.com/en/3.1.x/api/#jinja2.Environment\">additional parameters</a> to pass when constructing the Jinja2 environment. | [optional] **TemplateCode** | Pointer to **string** | Jinja2 template code. | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] ## Methods @@ -142,20 +142,20 @@ HasTemplateCode returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedContactRequest.md b/docs/PatchedContactRequest.md index d1ad6719e..042bee775 100644 --- a/docs/PatchedContactRequest.md +++ b/docs/PatchedContactRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**NullableContactGroupRequest**](ContactGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefContactGroupRequest**](BriefContactGroupRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Title** | Pointer to **string** | | [optional] **Phone** | Pointer to **string** | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedContactRequest) GetGroup() ContactGroupRequest` +`func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool)` +`func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest)` +`func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedDeviceBayRequest.md b/docs/PatchedDeviceBayRequest.md index bf25fd2a4..9df288606 100644 --- a/docs/PatchedDeviceBayRequest.md +++ b/docs/PatchedDeviceBayRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] -**InstalledDevice** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] +**InstalledDevice** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -133,20 +133,20 @@ HasDescription returns a boolean if a field has been set. ### GetInstalledDevice -`func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest` +`func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest` GetInstalledDevice returns the InstalledDevice field if non-nil, zero value otherwise. ### GetInstalledDeviceOk -`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool)` GetInstalledDeviceOk returns a tuple with the InstalledDevice field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledDevice -`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest)` +`func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest)` SetInstalledDevice sets InstalledDevice field to given value. diff --git a/docs/PatchedDeviceBayTemplateRequest.md b/docs/PatchedDeviceBayTemplateRequest.md index 5ba265ed2..dc8920d73 100644 --- a/docs/PatchedDeviceBayTemplateRequest.md +++ b/docs/PatchedDeviceBayTemplateRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Description** | Pointer to **string** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. diff --git a/docs/PatchedDeviceRoleRequest.md b/docs/PatchedDeviceRoleRequest.md index 19824a38b..f66bc8e9f 100644 --- a/docs/PatchedDeviceRoleRequest.md +++ b/docs/PatchedDeviceRoleRequest.md @@ -8,7 +8,7 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **VmRole** | Pointer to **bool** | Virtual machines may be assigned to this role | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -134,20 +134,20 @@ HasVmRole returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedExportTemplateRequest.md b/docs/PatchedExportTemplateRequest.md index 0a424e1f2..2195f5d07 100644 --- a/docs/PatchedExportTemplateRequest.md +++ b/docs/PatchedExportTemplateRequest.md @@ -11,7 +11,7 @@ Name | Type | Description | Notes **MimeType** | Pointer to **string** | Defaults to <code>text/plain; charset=utf-8</code> | [optional] **FileExtension** | Pointer to **string** | Extension to append to the rendered filename | [optional] **AsAttachment** | Pointer to **bool** | Download file as attachment | [optional] -**DataSource** | Pointer to [**DataSourceRequest**](DataSourceRequest.md) | | [optional] +**DataSource** | Pointer to [**BriefDataSourceRequest**](BriefDataSourceRequest.md) | | [optional] ## Methods @@ -209,20 +209,20 @@ HasAsAttachment returns a boolean if a field has been set. ### GetDataSource -`func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest` +`func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest` GetDataSource returns the DataSource field if non-nil, zero value otherwise. ### GetDataSourceOk -`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool)` +`func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool)` GetDataSourceOk returns a tuple with the DataSource field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDataSource -`func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest)` +`func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest)` SetDataSource sets DataSource field to given value. diff --git a/docs/PatchedFHRPGroupAssignmentRequest.md b/docs/PatchedFHRPGroupAssignmentRequest.md index 4e987d752..94ee184e3 100644 --- a/docs/PatchedFHRPGroupAssignmentRequest.md +++ b/docs/PatchedFHRPGroupAssignmentRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Group** | Pointer to [**FHRPGroupRequest**](FHRPGroupRequest.md) | | [optional] +**Group** | Pointer to [**BriefFHRPGroupRequest**](BriefFHRPGroupRequest.md) | | [optional] **InterfaceType** | Pointer to **string** | | [optional] **InterfaceId** | Pointer to **int64** | | [optional] **Priority** | Pointer to **int32** | | [optional] @@ -30,20 +30,20 @@ but it doesn't guarantee that properties required by API are set ### GetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool)` +`func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest)` +`func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedFHRPGroupRequest.md b/docs/PatchedFHRPGroupRequest.md index b1e63b0ca..71406668e 100644 --- a/docs/PatchedFHRPGroupRequest.md +++ b/docs/PatchedFHRPGroupRequest.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Protocol** | Pointer to [**FHRPGroupProtocol**](FHRPGroupProtocol.md) | | [optional] +**Protocol** | Pointer to [**BriefFHRPGroupProtocol**](BriefFHRPGroupProtocol.md) | | [optional] **GroupId** | Pointer to **int32** | | [optional] -**AuthType** | Pointer to [**AuthenticationType**](AuthenticationType.md) | | [optional] +**AuthType** | Pointer to [**AuthenticationType2**](AuthenticationType2.md) | | [optional] **AuthKey** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -60,20 +60,20 @@ HasName returns a boolean if a field has been set. ### GetProtocol -`func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol` +`func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol` GetProtocol returns the Protocol field if non-nil, zero value otherwise. ### GetProtocolOk -`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool)` +`func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool)` GetProtocolOk returns a tuple with the Protocol field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProtocol -`func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol)` +`func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol)` SetProtocol sets Protocol field to given value. @@ -110,20 +110,20 @@ HasGroupId returns a boolean if a field has been set. ### GetAuthType -`func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType` +`func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType2` GetAuthType returns the AuthType field if non-nil, zero value otherwise. ### GetAuthTypeOk -`func (o *PatchedFHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool)` +`func (o *PatchedFHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType2, bool)` GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthType -`func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType)` +`func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType2)` SetAuthType sets AuthType field to given value. diff --git a/docs/PatchedImageAttachmentRequest.md b/docs/PatchedImageAttachmentRequest.md index de2766af0..fd6d6db09 100644 --- a/docs/PatchedImageAttachmentRequest.md +++ b/docs/PatchedImageAttachmentRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **ObjectId** | Pointer to **int64** | | [optional] **Name** | Pointer to **string** | | [optional] **Image** | Pointer to ***os.File** | | [optional] -**ImageHeight** | Pointer to **int32** | | [optional] -**ImageWidth** | Pointer to **int32** | | [optional] ## Methods @@ -130,56 +128,6 @@ SetImage sets Image field to given value. HasImage returns a boolean if a field has been set. -### GetImageHeight - -`func (o *PatchedImageAttachmentRequest) GetImageHeight() int32` - -GetImageHeight returns the ImageHeight field if non-nil, zero value otherwise. - -### GetImageHeightOk - -`func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool)` - -GetImageHeightOk returns a tuple with the ImageHeight field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageHeight - -`func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32)` - -SetImageHeight sets ImageHeight field to given value. - -### HasImageHeight - -`func (o *PatchedImageAttachmentRequest) HasImageHeight() bool` - -HasImageHeight returns a boolean if a field has been set. - -### GetImageWidth - -`func (o *PatchedImageAttachmentRequest) GetImageWidth() int32` - -GetImageWidth returns the ImageWidth field if non-nil, zero value otherwise. - -### GetImageWidthOk - -`func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool)` - -GetImageWidthOk returns a tuple with the ImageWidth field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetImageWidth - -`func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32)` - -SetImageWidth sets ImageWidth field to given value. - -### HasImageWidth - -`func (o *PatchedImageAttachmentRequest) HasImageWidth() bool` - -HasImageWidth 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/docs/PatchedInventoryItemRequest.md b/docs/PatchedInventoryItemRequest.md index 29a3617b6..15eb808cc 100644 --- a/docs/PatchedInventoryItemRequest.md +++ b/docs/PatchedInventoryItemRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this item | [optional] @@ -41,20 +41,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest` +`func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -151,20 +151,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -186,20 +186,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedInventoryItemTemplateRequest.md b/docs/PatchedInventoryItemTemplateRequest.md index 8bc9025d4..7be75bce8 100644 --- a/docs/PatchedInventoryItemTemplateRequest.md +++ b/docs/PatchedInventoryItemTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] -**Role** | Pointer to [**NullableInventoryItemRoleRequest**](InventoryItemRoleRequest.md) | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefInventoryItemRoleRequest**](BriefInventoryItemRoleRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **PartId** | Pointer to **string** | Manufacturer-assigned part identifier | [optional] **Description** | Pointer to **string** | | [optional] **ComponentType** | Pointer to **NullableString** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -146,20 +146,20 @@ HasLabel returns a boolean if a field has been set. ### GetRole -`func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest)` SetRole sets Role field to given value. @@ -181,20 +181,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. diff --git a/docs/PatchedL2VPNTerminationRequest.md b/docs/PatchedL2VPNTerminationRequest.md index 52faa0e93..4027c8f8f 100644 --- a/docs/PatchedL2VPNTerminationRequest.md +++ b/docs/PatchedL2VPNTerminationRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**L2vpn** | Pointer to [**L2VPNRequest**](L2VPNRequest.md) | | [optional] +**L2vpn** | Pointer to [**BriefL2VPNRequest**](BriefL2VPNRequest.md) | | [optional] **AssignedObjectType** | Pointer to **string** | | [optional] **AssignedObjectId** | Pointer to **int64** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set ### GetL2vpn -`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest` GetL2vpn returns the L2vpn field if non-nil, zero value otherwise. ### GetL2vpnOk -`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool)` +`func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool)` GetL2vpnOk returns a tuple with the L2vpn field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpn -`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest)` +`func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest)` SetL2vpn sets L2vpn field to given value. diff --git a/docs/PatchedModuleBayRequest.md b/docs/PatchedModuleBayRequest.md index 57abae4fc..9a04dd1db 100644 --- a/docs/PatchedModuleBayRequest.md +++ b/docs/PatchedModuleBayRequest.md @@ -4,9 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] -**InstalledModule** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**InstalledModule** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest` +`func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -57,6 +58,41 @@ SetDevice sets Device field to given value. HasDevice returns a boolean if a field has been set. +### GetModule + +`func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PatchedModuleBayRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PatchedModuleBayRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PatchedModuleBayRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PatchedModuleBayRequest) GetName() string` @@ -84,20 +120,20 @@ HasName returns a boolean if a field has been set. ### GetInstalledModule -`func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest` +`func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest` GetInstalledModule returns the InstalledModule field if non-nil, zero value otherwise. ### GetInstalledModuleOk -`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool)` GetInstalledModuleOk returns a tuple with the InstalledModule field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInstalledModule -`func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest)` +`func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest)` SetInstalledModule sets InstalledModule field to given value. diff --git a/docs/PatchedModuleBayTemplateRequest.md b/docs/PatchedModuleBayTemplateRequest.md index afa822d29..faa58b18a 100644 --- a/docs/PatchedModuleBayTemplateRequest.md +++ b/docs/PatchedModuleBayTemplateRequest.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Position** | Pointer to **string** | Identifier to reference when renaming installed components | [optional] @@ -31,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -54,6 +55,51 @@ SetDeviceType sets DeviceType field to given value. HasDeviceType returns a boolean if a field has been set. +### SetDeviceTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PatchedModuleBayTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PatchedModuleBayTemplateRequest) GetName() string` diff --git a/docs/PatchedPlatformRequest.md b/docs/PatchedPlatformRequest.md index 8c681c658..a45b87ba4 100644 --- a/docs/PatchedPlatformRequest.md +++ b/docs/PatchedPlatformRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Manufacturer** | Pointer to [**NullableManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetManufacturer -`func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -118,20 +118,20 @@ HasManufacturer returns a boolean if a field has been set. UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil ### GetConfigTemplate -`func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedPowerPanelRequest.md b/docs/PatchedPowerPanelRequest.md index 1f2bda37d..832203743 100644 --- a/docs/PatchedPowerPanelRequest.md +++ b/docs/PatchedPowerPanelRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedPowerPanelRequest) GetSite() SiteRequest` +`func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest)` +`func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -58,20 +58,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest` +`func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest)` +`func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. diff --git a/docs/PatchedProviderAccountRequest.md b/docs/PatchedProviderAccountRequest.md index e4f8fd72e..8dcbb884e 100644 --- a/docs/PatchedProviderAccountRequest.md +++ b/docs/PatchedProviderAccountRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedProviderNetworkRequest.md b/docs/PatchedProviderNetworkRequest.md index 71345eb12..9bc9624e3 100644 --- a/docs/PatchedProviderNetworkRequest.md +++ b/docs/PatchedProviderNetworkRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetProvider -`func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest` +`func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. diff --git a/docs/PatchedRackReservationRequest.md b/docs/PatchedRackReservationRequest.md index 5347665db..0b0b9d334 100644 --- a/docs/PatchedRackReservationRequest.md +++ b/docs/PatchedRackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | Pointer to [**RackRequest**](RackRequest.md) | | [optional] +**Rack** | Pointer to [**BriefRackRequest**](BriefRackRequest.md) | | [optional] **Units** | Pointer to **[]int32** | | [optional] -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *PatchedRackReservationRequest) GetRack() RackRequest` +`func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedRackReservationRequest) SetRack(v RackRequest)` +`func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -84,20 +84,20 @@ HasUnits returns a boolean if a field has been set. ### GetUser -`func (o *PatchedRackReservationRequest) GetUser() UserRequest` +`func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedRackReservationRequest) SetUser(v UserRequest)` +`func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. @@ -109,20 +109,20 @@ HasUser returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRackReservationRequest) GetTenant() TenantRequest` +`func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedRouteTargetRequest.md b/docs/PatchedRouteTargetRequest.md index a08f52e55..95629a647 100644 --- a/docs/PatchedRouteTargetRequest.md +++ b/docs/PatchedRouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Route target value (formatted in accordance with RFC 4360) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -57,20 +57,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest` +`func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedTenantRequest.md b/docs/PatchedTenantRequest.md index 660e88810..a4b3b23b0 100644 --- a/docs/PatchedTenantRequest.md +++ b/docs/PatchedTenantRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableTenantGroupRequest**](TenantGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +83,20 @@ HasSlug returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest` +`func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool)` +`func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest)` +`func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest)` SetGroup sets Group field to given value. diff --git a/docs/PatchedTokenRequest.md b/docs/PatchedTokenRequest.md index a62dfd87e..8d27c1785 100644 --- a/docs/PatchedTokenRequest.md +++ b/docs/PatchedTokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | Pointer to [**UserRequest**](UserRequest.md) | | [optional] +**User** | Pointer to [**BriefUserRequest**](BriefUserRequest.md) | | [optional] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *PatchedTokenRequest) GetUser() UserRequest` +`func (o *PatchedTokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *PatchedTokenRequest) SetUser(v UserRequest)` +`func (o *PatchedTokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/PatchedVLANGroupRequest.md b/docs/PatchedVLANGroupRequest.md index 9847c46b3..c9b9b4b28 100644 --- a/docs/PatchedVLANGroupRequest.md +++ b/docs/PatchedVLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | Pointer to **string** | | [optional] **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -153,56 +151,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *PatchedVLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *PatchedVLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *PatchedVLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *PatchedVLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *PatchedVLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *PatchedVLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *PatchedVLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *PatchedVLANGroupRequest) GetDescription() string` diff --git a/docs/PatchedVRFRequest.md b/docs/PatchedVRFRequest.md index 5c927e21c..5b3fbced6 100644 --- a/docs/PatchedVRFRequest.md +++ b/docs/PatchedVRFRequest.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -96,20 +96,20 @@ HasRd returns a boolean if a field has been set. UnsetRd ensures that no value is present for Rd, not even an explicit nil ### GetTenant -`func (o *PatchedVRFRequest) GetTenant() TenantRequest` +`func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedVRFRequest) SetTenant(v TenantRequest)` +`func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedVirtualDiskRequest.md b/docs/PatchedVirtualDiskRequest.md index f8b0d3d48..1a7dd3c34 100644 --- a/docs/PatchedVirtualDiskRequest.md +++ b/docs/PatchedVirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Size** | Pointer to **int32** | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableAggregateRequest.md b/docs/PatchedWritableAggregateRequest.md index 41ef04822..3278caefc 100644 --- a/docs/PatchedWritableAggregateRequest.md +++ b/docs/PatchedWritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Rir** | Pointer to [**RIRRequest**](RIRRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | Pointer to [**BriefRIRRequest**](BriefRIRRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ HasPrefix returns a boolean if a field has been set. ### GetRir -`func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest` +`func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. @@ -84,20 +84,20 @@ HasRir returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableCableRequest.md b/docs/PatchedWritableCableRequest.md index 431b4945f..f01965e68 100644 --- a/docs/PatchedWritableCableRequest.md +++ b/docs/PatchedWritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *PatchedWritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *PatchedWritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCableRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/PatchedWritableCircuitRequest.md b/docs/PatchedWritableCircuitRequest.md index 90bca5029..7f012b64f 100644 --- a/docs/PatchedWritableCircuitRequest.md +++ b/docs/PatchedWritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | Pointer to **string** | Unique circuit ID | [optional] -**Provider** | Pointer to [**ProviderRequest**](ProviderRequest.md) | | [optional] -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | Pointer to [**CircuitTypeRequest**](CircuitTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | Pointer to [**BriefProviderRequest**](BriefProviderRequest.md) | | [optional] +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | Pointer to [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | [optional] +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,6 +17,7 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods @@ -64,20 +65,20 @@ HasCid returns a boolean if a field has been set. ### GetProvider -`func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. @@ -89,20 +90,20 @@ HasProvider returns a boolean if a field has been set. ### GetProviderAccount -`func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -124,20 +125,20 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. @@ -149,20 +150,20 @@ HasType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -174,20 +175,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -412,6 +413,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *PatchedWritableCircuitRequest) HasAssignments() bool` + +HasAssignments 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/docs/PatchedWritableClusterRequest.md b/docs/PatchedWritableClusterRequest.md index 18ee4fc62..0e1f19b93 100644 --- a/docs/PatchedWritableClusterRequest.md +++ b/docs/PatchedWritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Type** | Pointer to [**ClusterTypeRequest**](ClusterTypeRequest.md) | | [optional] -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | Pointer to [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -61,20 +61,20 @@ HasName returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. @@ -86,20 +86,20 @@ HasType returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -121,20 +121,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -146,20 +146,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -181,20 +181,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *PatchedWritableClusterRequest) GetSite() SiteRequest` +`func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. diff --git a/docs/PatchedWritableConsolePortRequest.md b/docs/PatchedWritableConsolePortRequest.md index 52a08ee90..1b5ea9f2d 100644 --- a/docs/PatchedWritableConsolePortRequest.md +++ b/docs/PatchedWritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsolePortTemplateRequest.md b/docs/PatchedWritableConsolePortTemplateRequest.md index d9dbf04aa..854014935 100644 --- a/docs/PatchedWritableConsolePortTemplateRequest.md +++ b/docs/PatchedWritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableConsoleServerPortRequest.md b/docs/PatchedWritableConsoleServerPortRequest.md index 05b70f9d5..b2b57e24c 100644 --- a/docs/PatchedWritableConsoleServerPortRequest.md +++ b/docs/PatchedWritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -61,20 +61,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableConsoleServerPortTemplateRequest.md b/docs/PatchedWritableConsoleServerPortTemplateRequest.md index ef7c3aa0e..b8326fbb5 100644 --- a/docs/PatchedWritableConsoleServerPortTemplateRequest.md +++ b/docs/PatchedWritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableContactAssignmentRequest.md b/docs/PatchedWritableContactAssignmentRequest.md index e2b7dc360..791ef1844 100644 --- a/docs/PatchedWritableContactAssignmentRequest.md +++ b/docs/PatchedWritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | Pointer to **string** | | [optional] **ObjectId** | Pointer to **int64** | | [optional] -**Contact** | Pointer to [**ContactRequest**](ContactRequest.md) | | [optional] -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | Pointer to [**BriefContactRequest**](BriefContactRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -83,20 +83,20 @@ HasObjectId returns a boolean if a field has been set. ### GetContact -`func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. @@ -108,20 +108,20 @@ HasContact returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -143,20 +143,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/PatchedWritableCustomFieldRequest.md b/docs/PatchedWritableCustomFieldRequest.md index 21645eb48..036786d58 100644 --- a/docs/PatchedWritableCustomFieldRequest.md +++ b/docs/PatchedWritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -254,6 +256,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *PatchedWritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *PatchedWritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32` @@ -414,6 +441,41 @@ HasDefault returns a boolean if a field has been set. `func (o *PatchedWritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *PatchedWritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *PatchedWritableCustomFieldRequest) GetWeight() int32` @@ -536,20 +598,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/PatchedWritableDataSourceRequest.md b/docs/PatchedWritableDataSourceRequest.md index 89182786d..144dda6f3 100644 --- a/docs/PatchedWritableDataSourceRequest.md +++ b/docs/PatchedWritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -158,31 +158,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *PatchedWritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *PatchedWritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *PatchedWritableDataSourceRequest) GetParameters() interface{}` @@ -243,6 +218,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *PatchedWritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PatchedWritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PatchedWritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/PatchedWritableDeviceTypeRequest.md b/docs/PatchedWritableDeviceTypeRequest.md index 330f80fe3..6175c121a 100644 --- a/docs/PatchedWritableDeviceTypeRequest.md +++ b/docs/PatchedWritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -44,20 +44,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -69,20 +69,20 @@ HasManufacturer returns a boolean if a field has been set. ### GetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -339,20 +339,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritableDeviceWithConfigContextRequest.md b/docs/PatchedWritableDeviceWithConfigContextRequest.md index 2d049b103..e460e8796 100644 --- a/docs/PatchedWritableDeviceWithConfigContextRequest.md +++ b/docs/PatchedWritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | Pointer to [**DeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**Role** | Pointer to [**DeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | Pointer to [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**Role** | Pointer to [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | Pointer to [**RackFace1**](RackFace1.md) | | [optional] **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -90,20 +90,20 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -115,20 +115,20 @@ HasDeviceType returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -140,20 +140,20 @@ HasRole returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -175,20 +175,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -270,20 +270,20 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -295,20 +295,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -330,20 +330,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -545,20 +545,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -580,20 +580,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -615,20 +615,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -650,20 +650,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -685,20 +685,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -840,20 +840,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableEventRuleRequest.md b/docs/PatchedWritableEventRuleRequest.md index b1539fb42..eced560e5 100644 --- a/docs/PatchedWritableEventRuleRequest.md +++ b/docs/PatchedWritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | Pointer to **[]string** | | [optional] **Name** | Pointer to **string** | | [optional] -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | Pointer to [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | [optional] **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | Pointer to **string** | | [optional] @@ -89,155 +85,55 @@ SetName sets Name field to given value. HasName returns a boolean if a field has been set. -### GetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd +### GetEnabled -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. +GetEnabled returns the Enabled field if non-nil, zero value otherwise. -### GetTypeJobEndOk +### GetEnabledOk -`func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise +GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetTypeJobEnd +### SetEnabled -`func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` -SetTypeJobEnd sets TypeJobEnd field to given value. +SetEnabled sets Enabled field to given value. -### HasTypeJobEnd +### HasEnabled -`func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool` +`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` -HasTypeJobEnd returns a boolean if a field has been set. +HasEnabled returns a boolean if a field has been set. -### GetEnabled +### GetEventTypes -`func (o *PatchedWritableEventRuleRequest) GetEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` -GetEnabled returns the Enabled field if non-nil, zero value otherwise. +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. -### GetEnabledOk +### GetEventTypesOk -`func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool)` +`func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` -GetEnabledOk returns a tuple with the Enabled field if it's non-nil, zero value otherwise +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetEnabled +### SetEventTypes -`func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool)` +`func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` -SetEnabled sets Enabled field to given value. +SetEventTypes sets EventTypes field to given value. -### HasEnabled +### HasEventTypes -`func (o *PatchedWritableEventRuleRequest) HasEnabled() bool` +`func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool` -HasEnabled returns a boolean if a field has been set. +HasEventTypes returns a boolean if a field has been set. ### GetConditions diff --git a/docs/PatchedWritableFrontPortRequest.md b/docs/PatchedWritableFrontPortRequest.md index 1ad15f568..83f7b749b 100644 --- a/docs/PatchedWritableFrontPortRequest.md +++ b/docs/PatchedWritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -63,20 +63,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableFrontPortTemplateRequest.md b/docs/PatchedWritableFrontPortTemplateRequest.md index 2b2676581..79b85c905 100644 --- a/docs/PatchedWritableFrontPortTemplateRequest.md +++ b/docs/PatchedWritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] **Color** | Pointer to **string** | | [optional] -**RearPort** | Pointer to [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | [optional] +**RearPort** | Pointer to [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | [optional] **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -205,20 +205,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/PatchedWritableIPAddressRequest.md b/docs/PatchedWritableIPAddressRequest.md index 283f8e6e4..49191ed36 100644 --- a/docs/PatchedWritableIPAddressRequest.md +++ b/docs/PatchedWritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -64,20 +64,20 @@ HasAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -99,20 +99,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableIPRangeRequest.md b/docs/PatchedWritableIPRangeRequest.md index f38f93833..3179cd2c0 100644 --- a/docs/PatchedWritableIPRangeRequest.md +++ b/docs/PatchedWritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | Pointer to **string** | | [optional] **EndAddress** | Pointer to **string** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -87,20 +87,20 @@ HasEndAddress returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -122,20 +122,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -182,20 +182,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest` +`func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableIPSecProfileRequest.md b/docs/PatchedWritableIPSecProfileRequest.md index 8692a34ab..8cb953b36 100644 --- a/docs/PatchedWritableIPSecProfileRequest.md +++ b/docs/PatchedWritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | [optional] -**IkePolicy** | Pointer to [**IKEPolicyRequest**](IKEPolicyRequest.md) | | [optional] -**IpsecPolicy** | Pointer to [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | [optional] +**IkePolicy** | Pointer to [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | [optional] +**IpsecPolicy** | Pointer to [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -109,20 +109,20 @@ HasMode returns a boolean if a field has been set. ### GetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. @@ -134,20 +134,20 @@ HasIkePolicy returns a boolean if a field has been set. ### GetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/PatchedWritableIPSecProposalRequest.md b/docs/PatchedWritableIPSecProposalRequest.md index cb3aa4ad1..b07ad7c86 100644 --- a/docs/PatchedWritableIPSecProposalRequest.md +++ b/docs/PatchedWritableIPSecProposalRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**EncryptionAlgorithm** | Pointer to [**Encryption**](Encryption.md) | | [optional] -**AuthenticationAlgorithm** | Pointer to [**Authentication**](Authentication.md) | | [optional] +**EncryptionAlgorithm** | Pointer to [**Encryption1**](Encryption1.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**Authentication1**](Authentication1.md) | | [optional] **SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional] **SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -85,20 +85,20 @@ HasDescription returns a boolean if a field has been set. ### GetEncryptionAlgorithm -`func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption` +`func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption1` GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise. ### GetEncryptionAlgorithmOk -`func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool)` +`func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption1, bool)` GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEncryptionAlgorithm -`func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption)` +`func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption1)` SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. @@ -110,20 +110,20 @@ HasEncryptionAlgorithm returns a boolean if a field has been set. ### GetAuthenticationAlgorithm -`func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication` +`func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication1` GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise. ### GetAuthenticationAlgorithmOk -`func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool)` +`func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication1, bool)` GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthenticationAlgorithm -`func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication)` +`func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication1)` SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. diff --git a/docs/PatchedWritableInterfaceRequest.md b/docs/PatchedWritableInterfaceRequest.md index be3d47b6d..e7553540e 100644 --- a/docs/PatchedWritableInterfaceRequest.md +++ b/docs/PatchedWritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -22,18 +22,18 @@ Name | Type | Description | Notes **MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] -**RfChannel** | Pointer to [**WirelessChannel**](WirelessChannel.md) | | [optional] +**RfRole** | Pointer to [**WirelessRole1**](WirelessRole1.md) | | [optional] +**RfChannel** | Pointer to [**WirelessChannel1**](WirelessChannel1.md) | | [optional] **PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] **PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -108,20 +108,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -598,20 +598,20 @@ HasMode returns a boolean if a field has been set. ### GetRfRole -`func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole` +`func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole1` GetRfRole returns the RfRole field if non-nil, zero value otherwise. ### GetRfRoleOk -`func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool)` +`func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole1, bool)` GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRfRole -`func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole)` +`func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole1)` SetRfRole sets RfRole field to given value. @@ -623,20 +623,20 @@ HasRfRole returns a boolean if a field has been set. ### GetRfChannel -`func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel` +`func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel1` GetRfChannel returns the RfChannel field if non-nil, zero value otherwise. ### GetRfChannelOk -`func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool)` +`func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel1, bool)` GetRfChannelOk returns a tuple with the RfChannel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRfChannel -`func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel)` +`func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel1)` SetRfChannel sets RfChannel field to given value. @@ -803,20 +803,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -913,20 +913,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableInterfaceTemplateRequest.md b/docs/PatchedWritableInterfaceTemplateRequest.md index dce5b9c25..e83251543 100644 --- a/docs/PatchedWritableInterfaceTemplateRequest.md +++ b/docs/PatchedWritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**InterfaceTypeValue**](InterfaceTypeValue.md) | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **Bridge** | Pointer to **NullableInt32** | | [optional] **PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] **PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] +**RfRole** | Pointer to [**WirelessRole1**](WirelessRole1.md) | | [optional] ## Methods @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -343,20 +343,20 @@ HasPoeType returns a boolean if a field has been set. ### GetRfRole -`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole` +`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole1` GetRfRole returns the RfRole field if non-nil, zero value otherwise. ### GetRfRoleOk -`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool)` +`func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole1, bool)` GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRfRole -`func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole)` +`func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole1)` SetRfRole sets RfRole field to given value. diff --git a/docs/PatchedWritableL2VPNRequest.md b/docs/PatchedWritableL2VPNRequest.md index 27aad448f..f149765a2 100644 --- a/docs/PatchedWritableL2VPNRequest.md +++ b/docs/PatchedWritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Type** | Pointer to [**L2VPNTypeValue**](L2VPNTypeValue.md) | | [optional] +**Type** | Pointer to [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | [optional] **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -122,20 +122,20 @@ HasSlug returns a boolean if a field has been set. ### GetType -`func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -247,20 +247,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableLocationRequest.md b/docs/PatchedWritableLocationRequest.md index acc3b3ce7..cb0dab0cb 100644 --- a/docs/PatchedWritableLocationRequest.md +++ b/docs/PatchedWritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Slug** | Pointer to **string** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -86,20 +86,20 @@ HasSlug returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableLocationRequest) GetSite() SiteRequest` +`func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -146,20 +146,20 @@ HasParent returns a boolean if a field has been set. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -171,20 +171,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableModuleRequest.md b/docs/PatchedWritableModuleRequest.md index e5788f6e4..044d52a7b 100644 --- a/docs/PatchedWritableModuleRequest.md +++ b/docs/PatchedWritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **ModuleBay** | Pointer to **int32** | | [optional] -**ModuleType** | Pointer to [**ModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | Pointer to [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -86,20 +86,20 @@ HasModuleBay returns a boolean if a field has been set. ### GetModuleType -`func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -111,20 +111,20 @@ HasModuleType returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/PatchedWritableModuleTypeRequest.md b/docs/PatchedWritableModuleTypeRequest.md index 179b6c682..298b838d0 100644 --- a/docs/PatchedWritableModuleTypeRequest.md +++ b/docs/PatchedWritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | Pointer to [**ManufacturerRequest**](ManufacturerRequest.md) | | [optional] +**Manufacturer** | Pointer to [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] **Model** | Pointer to **string** | | [optional] **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -108,6 +109,31 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetWeight `func (o *PatchedWritableModuleTypeRequest) GetWeight() float64` @@ -145,20 +171,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/PatchedWritablePowerFeedRequest.md b/docs/PatchedWritablePowerFeedRequest.md index cc35f75bc..5a5950774 100644 --- a/docs/PatchedWritablePowerFeedRequest.md +++ b/docs/PatchedWritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | Pointer to [**PowerPanelRequest**](PowerPanelRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | Pointer to [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -42,20 +42,20 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. @@ -67,20 +67,20 @@ HasPowerPanel returns a boolean if a field has been set. ### GetRack -`func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest` +`func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -352,20 +352,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritablePowerOutletRequest.md b/docs/PatchedWritablePowerOutletRequest.md index eb1ac8177..e32eb4ef3 100644 --- a/docs/PatchedWritablePowerOutletRequest.md +++ b/docs/PatchedWritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletRequestType.md b/docs/PatchedWritablePowerOutletRequestType.md index f76400db6..8c9ce5a0b 100644 --- a/docs/PatchedWritablePowerOutletRequestType.md +++ b/docs/PatchedWritablePowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"dc-terminal"`) +* `EATON_C39` (value: `"eaton-c39"`) + * `HDOT_CX` (value: `"hdot-cx"`) * `SAF_D_GRID` (value: `"saf-d-grid"`) diff --git a/docs/PatchedWritablePowerOutletTemplateRequest.md b/docs/PatchedWritablePowerOutletTemplateRequest.md index 42e796ccf..083418fb7 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequest.md +++ b/docs/PatchedWritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -179,20 +179,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PatchedWritablePowerOutletTemplateRequestType.md b/docs/PatchedWritablePowerOutletTemplateRequestType.md index e1e5a0cbc..1d2197c73 100644 --- a/docs/PatchedWritablePowerOutletTemplateRequestType.md +++ b/docs/PatchedWritablePowerOutletTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"dc-terminal"`) +* `EATON_C39` (value: `"eaton-c39"`) + * `HDOT_CX` (value: `"hdot-cx"`) * `SAF_D_GRID` (value: `"saf-d-grid"`) diff --git a/docs/PatchedWritablePowerPortRequest.md b/docs/PatchedWritablePowerPortRequest.md index 197374b54..50ac83cae 100644 --- a/docs/PatchedWritablePowerPortRequest.md +++ b/docs/PatchedWritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritablePowerPortRequestType.md b/docs/PatchedWritablePowerPortRequestType.md index 0b2b85bc4..ec314c471 100644 --- a/docs/PatchedWritablePowerPortRequestType.md +++ b/docs/PatchedWritablePowerPortRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePowerPortTemplateRequest.md b/docs/PatchedWritablePowerPortTemplateRequest.md index 1b737c2aa..a6282b699 100644 --- a/docs/PatchedWritablePowerPortTemplateRequest.md +++ b/docs/PatchedWritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritablePowerPortTemplateRequestType.md b/docs/PatchedWritablePowerPortTemplateRequestType.md index a6fc8d0bf..296570b72 100644 --- a/docs/PatchedWritablePowerPortTemplateRequestType.md +++ b/docs/PatchedWritablePowerPortTemplateRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30P` (value: `"nema-l21-30p"`) +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + * `NEMA_L22_30P` (value: `"nema-l22-30p"`) * `CS6361C` (value: `"cs6361c"`) diff --git a/docs/PatchedWritablePrefixRequest.md b/docs/PatchedWritablePrefixRequest.md index 91217763d..11ecea4d7 100644 --- a/docs/PatchedWritablePrefixRequest.md +++ b/docs/PatchedWritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | Pointer to **string** | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -64,20 +64,20 @@ HasPrefix returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest` +`func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -99,20 +99,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest` +`func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -134,20 +134,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest` +`func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -169,20 +169,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest` +`func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -229,20 +229,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest` +`func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableRackRequest.md b/docs/PatchedWritableRackRequest.md index ee517e47e..3a9f84d13 100644 --- a/docs/PatchedWritableRackRequest.md +++ b/docs/PatchedWritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | Pointer to [**SiteRequest**](SiteRequest.md) | | [optional] -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | Pointer to [**BriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -111,20 +113,20 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *PatchedWritableRackRequest) GetSite() SiteRequest` +`func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableRackRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -136,20 +138,20 @@ HasSite returns a boolean if a field has been set. ### GetLocation -`func (o *PatchedWritableRackRequest) GetLocation() LocationRequest` +`func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest)` +`func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -171,20 +173,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *PatchedWritableRackRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -231,20 +233,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest` +`func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -324,30 +326,65 @@ HasAssetTag returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *PatchedWritableRackRequest) HasType() bool` +`func (o *PatchedWritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *PatchedWritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *PatchedWritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *PatchedWritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. ### GetWidth @@ -496,20 +533,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. @@ -674,6 +711,31 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *PatchedWritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *PatchedWritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedWritableRackRequest) GetDescription() string` diff --git a/docs/PatchedWritableRearPortRequest.md b/docs/PatchedWritableRearPortRequest.md index f77fdd2db..c3687e9e3 100644 --- a/docs/PatchedWritableRearPortRequest.md +++ b/docs/PatchedWritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -62,20 +62,20 @@ HasDevice returns a boolean if a field has been set. ### GetModule -`func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest` +`func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/PatchedWritableRearPortTemplateRequest.md b/docs/PatchedWritableRearPortTemplateRequest.md index 200b96c81..2e43d2d10 100644 --- a/docs/PatchedWritableRearPortTemplateRequest.md +++ b/docs/PatchedWritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | Pointer to **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | [optional] **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**FrontPortTypeValue**](FrontPortTypeValue.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/PatchedWritableServiceRequest.md b/docs/PatchedWritableServiceRequest.md index 1766d4654..7a04b670c 100644 --- a/docs/PatchedWritableServiceRequest.md +++ b/docs/PatchedWritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | Pointer to **[]int32** | | [optional] @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/PatchedWritableSiteRequest.md b/docs/PatchedWritableSiteRequest.md index 508c38a89..8c3c896c8 100644 --- a/docs/PatchedWritableSiteRequest.md +++ b/docs/PatchedWritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | Full name of the site | [optional] **Slug** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -93,20 +93,20 @@ HasSlug returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -118,20 +118,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest` +`func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -153,20 +153,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -188,20 +188,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelRequest.md b/docs/PatchedWritableTunnelRequest.md index 5fa722f81..a4407ef86 100644 --- a/docs/PatchedWritableTunnelRequest.md +++ b/docs/PatchedWritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | Pointer to [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | [optional] -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -87,20 +87,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ HasEncapsulation returns a boolean if a field has been set. ### GetIpsecProfile -`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -182,20 +182,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PatchedWritableTunnelTerminationRequest.md b/docs/PatchedWritableTunnelTerminationRequest.md index 15f17c622..3cbfca83e 100644 --- a/docs/PatchedWritableTunnelTerminationRequest.md +++ b/docs/PatchedWritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | Pointer to [**TunnelRequest**](TunnelRequest.md) | | [optional] +**Tunnel** | Pointer to [**BriefTunnelRequest**](BriefTunnelRequest.md) | | [optional] **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | Pointer to **string** | | [optional] **TerminationId** | Pointer to **NullableInt64** | | [optional] -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -143,20 +143,20 @@ HasTerminationId returns a boolean if a field has been set. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/PatchedWritableVLANRequest.md b/docs/PatchedWritableVLANRequest.md index edfc174e7..489fc76da 100644 --- a/docs/PatchedWritableVLANRequest.md +++ b/docs/PatchedWritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | Pointer to **int32** | Numeric VLAN ID (1-4094) | [optional] **Name** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *PatchedWritableVLANRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -157,20 +157,20 @@ HasName returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -217,20 +217,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PatchedWritableVLANRequest) GetRole() RoleRequest` +`func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest)` +`func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/PatchedWritableVMInterfaceRequest.md b/docs/PatchedWritableVMInterfaceRequest.md index ae6bedaea..219ce7f6b 100644 --- a/docs/PatchedWritableVMInterfaceRequest.md +++ b/docs/PatchedWritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | Pointer to [**VirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | Pointer to **string** | | [optional] **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -305,20 +305,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -365,20 +365,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/PatchedWritableVirtualDeviceContextRequest.md b/docs/PatchedWritableVirtualDeviceContextRequest.md index 1954bc853..e9b0dc680 100644 --- a/docs/PatchedWritableVirtualDeviceContextRequest.md +++ b/docs/PatchedWritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Device** | Pointer to [**DeviceRequest**](DeviceRequest.md) | | [optional] +**Device** | Pointer to [**BriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -62,20 +62,20 @@ HasName returns a boolean if a field has been set. ### GetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -122,20 +122,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -157,20 +157,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -192,20 +192,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md index 08fc04070..34e864ee1 100644 --- a/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md +++ b/docs/PatchedWritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -70,20 +71,20 @@ HasName returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -95,20 +96,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -130,20 +131,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -165,20 +166,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -198,22 +199,47 @@ HasDevice returns a boolean if a field has been set. `func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -235,20 +261,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -270,20 +296,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -305,20 +331,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -340,20 +366,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -530,20 +556,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/PatchedWritableWirelessLANRequest.md b/docs/PatchedWritableWirelessLANRequest.md index 6bb30de66..a920d94fc 100644 --- a/docs/PatchedWritableWirelessLANRequest.md +++ b/docs/PatchedWritableWirelessLANRequest.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**AuthenticationType3**](AuthenticationType3.md) | | [optional] +**AuthCipher** | Pointer to [**AuthenticationCipher1**](AuthenticationCipher1.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -88,20 +88,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -148,20 +148,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -183,20 +183,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -218,20 +218,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetAuthType -`func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType1` +`func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType3` GetAuthType returns the AuthType field if non-nil, zero value otherwise. ### GetAuthTypeOk -`func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType3, bool)` GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthType -`func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType1)` +`func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType3)` SetAuthType sets AuthType field to given value. @@ -243,20 +243,20 @@ HasAuthType returns a boolean if a field has been set. ### GetAuthCipher -`func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher` +`func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher1` GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise. ### GetAuthCipherOk -`func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)` +`func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool)` GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthCipher -`func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher)` +`func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher1)` SetAuthCipher sets AuthCipher field to given value. diff --git a/docs/PatchedWritableWirelessLinkRequest.md b/docs/PatchedWritableWirelessLinkRequest.md index a04db8cf4..c4b7373ae 100644 --- a/docs/PatchedWritableWirelessLinkRequest.md +++ b/docs/PatchedWritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] -**InterfaceB** | Pointer to [**InterfaceRequest**](InterfaceRequest.md) | | [optional] +**InterfaceA** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] +**InterfaceB** | Pointer to [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | [optional] **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**AuthenticationType3**](AuthenticationType3.md) | | [optional] +**AuthCipher** | Pointer to [**AuthenticationCipher1**](AuthenticationCipher1.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -38,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. @@ -63,20 +65,20 @@ HasInterfaceA returns a boolean if a field has been set. ### GetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -113,20 +115,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -138,20 +140,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -173,20 +175,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetAuthType -`func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType1` +`func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType3` GetAuthType returns the AuthType field if non-nil, zero value otherwise. ### GetAuthTypeOk -`func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType3, bool)` GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthType -`func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType1)` +`func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType3)` SetAuthType sets AuthType field to given value. @@ -198,20 +200,20 @@ HasAuthType returns a boolean if a field has been set. ### GetAuthCipher -`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher` +`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher1` GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise. ### GetAuthCipherOk -`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)` +`func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool)` GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthCipher -`func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher)` +`func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher1)` SetAuthCipher sets AuthCipher field to given value. @@ -246,6 +248,66 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *PatchedWritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + ### GetDescription `func (o *PatchedWritableWirelessLinkRequest) GetDescription() string` diff --git a/docs/Platform.md b/docs/Platform.md index d4c3b9c56..4032dc0f4 100644 --- a/docs/Platform.md +++ b/docs/Platform.md @@ -6,10 +6,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturer**](BriefManufacturer.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] **VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] @@ -17,7 +24,7 @@ Name | Type | Description | Notes ### NewPlatform -`func NewPlatform(id int32, url string, display string, name string, slug string, ) *Platform` +`func NewPlatform(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *Platform` NewPlatform instantiates a new Platform object This constructor will assign default values to properties that have it defined, @@ -72,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Platform) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Platform) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Platform) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Platform) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Platform) GetDisplay() string` @@ -132,6 +164,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *Platform) GetManufacturer() BriefManufacturer` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *Platform) SetManufacturer(v BriefManufacturer)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *Platform) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *Platform) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *Platform) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *Platform) GetConfigTemplate() BriefConfigTemplate` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *Platform) SetConfigTemplate(v BriefConfigTemplate)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *Platform) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *Platform) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *Platform) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *Platform) GetDescription() string` @@ -157,6 +259,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Platform) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Platform) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Platform) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Platform) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Platform) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Platform) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Platform) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Platform) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Platform) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Platform) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Platform) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Platform) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Platform) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Platform) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Platform) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Platform) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Platform) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Platform) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Platform) GetDeviceCount() int64` diff --git a/docs/PlatformRequest.md b/docs/PlatformRequest.md index 39c7230e5..160d7324a 100644 --- a/docs/PlatformRequest.md +++ b/docs/PlatformRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Manufacturer** | Pointer to [**NullableBriefManufacturerRequest**](BriefManufacturerRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,76 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetManufacturer + +`func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest` + +GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. + +### GetManufacturerOk + +`func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` + +GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetManufacturer + +`func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest)` + +SetManufacturer sets Manufacturer field to given value. + +### HasManufacturer + +`func (o *PlatformRequest) HasManufacturer() bool` + +HasManufacturer returns a boolean if a field has been set. + +### SetManufacturerNil + +`func (o *PlatformRequest) SetManufacturerNil(b bool)` + + SetManufacturerNil sets the value for Manufacturer to be an explicit nil + +### UnsetManufacturer +`func (o *PlatformRequest) UnsetManufacturer()` + +UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +### GetConfigTemplate + +`func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest` + +GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. + +### GetConfigTemplateOk + +`func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` + +GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConfigTemplate + +`func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` + +SetConfigTemplate sets ConfigTemplate field to given value. + +### HasConfigTemplate + +`func (o *PlatformRequest) HasConfigTemplate() bool` + +HasConfigTemplate returns a boolean if a field has been set. + +### SetConfigTemplateNil + +`func (o *PlatformRequest) SetConfigTemplateNil(b bool)` + + SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil + +### UnsetConfigTemplate +`func (o *PlatformRequest) UnsetConfigTemplate()` + +UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil ### GetDescription `func (o *PlatformRequest) GetDescription() string` @@ -92,6 +166,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *PlatformRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PlatformRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PlatformRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PlatformRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PlatformRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PlatformRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PlatformRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PlatformRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PowerFeed.md b/docs/PowerFeed.md index d1fe1f236..d7ac27953 100644 --- a/docs/PowerFeed.md +++ b/docs/PowerFeed.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**PowerPanel** | [**PowerPanel**](PowerPanel.md) | | -**Rack** | Pointer to [**NullableRack**](Rack.md) | | [optional] +**PowerPanel** | [**BriefPowerPanel**](BriefPowerPanel.md) | | +**Rack** | Pointer to [**NullableBriefRack**](BriefRack.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PowerFeedStatus**](PowerFeedStatus.md) | | [optional] **Type** | Pointer to [**PowerFeedType**](PowerFeedType.md) | | [optional] @@ -18,15 +19,15 @@ Name | Type | Description | Notes **Amperage** | Pointer to **int32** | | [optional] **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +39,7 @@ Name | Type | Description | Notes ### NewPowerFeed -`func NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` +`func NewPowerFeed(id int32, url string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerFeed` NewPowerFeed instantiates a new PowerFeed object This constructor will assign default values to properties that have it defined, @@ -93,6 +94,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerFeed) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerFeed) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerFeed) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerFeed) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerFeed) GetDisplay() string` @@ -115,40 +141,40 @@ SetDisplay sets Display field to given value. ### GetPowerPanel -`func (o *PowerFeed) GetPowerPanel() PowerPanel` +`func (o *PowerFeed) GetPowerPanel() BriefPowerPanel` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool)` +`func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeed) SetPowerPanel(v PowerPanel)` +`func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeed) GetRack() Rack` +`func (o *PowerFeed) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeed) GetRackOk() (*Rack, bool)` +`func (o *PowerFeed) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeed) SetRack(v Rack)` +`func (o *PowerFeed) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -390,20 +416,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerFeed) GetCable() Cable` +`func (o *PowerFeed) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerFeed) GetCableOk() (*Cable, bool)` +`func (o *PowerFeed) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerFeed) SetCable(v Cable)` +`func (o *PowerFeed) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -478,6 +504,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *PowerFeed) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerFeed) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerFeed) GetConnectedEndpoints() []interface{}` @@ -498,6 +534,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *PowerFeed) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerFeed) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerFeed) GetConnectedEndpointsType() string` @@ -518,6 +564,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *PowerFeed) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerFeed) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerFeed) GetConnectedEndpointsReachable() bool` @@ -565,20 +621,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeed) GetTenant() Tenant` +`func (o *PowerFeed) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeed) GetTenantOk() (*Tenant, bool)` +`func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeed) SetTenant(v Tenant)` +`func (o *PowerFeed) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerFeedRequest.md b/docs/PowerFeedRequest.md index d72dbffb6..a08360ebc 100644 --- a/docs/PowerFeedRequest.md +++ b/docs/PowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewPowerFeedRequest -`func NewPowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *PowerFeedRequest` +`func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *PowerFeedRequest` NewPowerFeedRequest instantiates a new PowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *PowerFeedRequest) GetRack() RackRequest` +`func (o *PowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *PowerFeedRequest) SetRack(v RackRequest)` +`func (o *PowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *PowerFeedRequest) GetTenant() TenantRequest` +`func (o *PowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/PowerOutlet.md b/docs/PowerOutlet.md index 488ae2777..c53e3bad0 100644 --- a/docs/PowerOutlet.md +++ b/docs/PowerOutlet.md @@ -6,22 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPort**](PowerPort.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPort**](BriefPowerPort.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **ConnectedEndpoints** | **[]interface{}** | | [readonly] -**ConnectedEndpointsType** | **string** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] **ConnectedEndpointsReachable** | **bool** | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -33,7 +34,7 @@ Name | Type | Description | Notes ### NewPowerOutlet -`func NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` +`func NewPowerOutlet(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerOutlet` NewPowerOutlet instantiates a new PowerOutlet object This constructor will assign default values to properties that have it defined, @@ -88,6 +89,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerOutlet) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerOutlet) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerOutlet) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerOutlet) GetDisplay() string` @@ -110,40 +136,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerOutlet) GetDevice() Device` +`func (o *PowerOutlet) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutlet) GetDeviceOk() (*Device, bool)` +`func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutlet) SetDevice(v Device)` +`func (o *PowerOutlet) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutlet) GetModule() Module` +`func (o *PowerOutlet) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutlet) GetModuleOk() (*Module, bool)` +`func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutlet) SetModule(v Module)` +`func (o *PowerOutlet) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -245,20 +271,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutlet) GetPowerPort() PowerPort` +`func (o *PowerOutlet) GetPowerPort() BriefPowerPort` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool)` +`func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutlet) SetPowerPort(v PowerPort)` +`func (o *PowerOutlet) SetPowerPort(v BriefPowerPort)` SetPowerPort sets PowerPort field to given value. @@ -365,20 +391,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *PowerOutlet) GetCable() Cable` +`func (o *PowerOutlet) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerOutlet) GetCableOk() (*Cable, bool)` +`func (o *PowerOutlet) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerOutlet) SetCable(v Cable)` +`func (o *PowerOutlet) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -453,6 +479,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *PowerOutlet) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerOutlet) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetConnectedEndpoints `func (o *PowerOutlet) GetConnectedEndpoints() []interface{}` @@ -473,6 +509,16 @@ and a boolean to check if the value has been set. SetConnectedEndpoints sets ConnectedEndpoints field to given value. +### SetConnectedEndpointsNil + +`func (o *PowerOutlet) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerOutlet) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil ### GetConnectedEndpointsType `func (o *PowerOutlet) GetConnectedEndpointsType() string` @@ -493,6 +539,16 @@ and a boolean to check if the value has been set. SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. +### SetConnectedEndpointsTypeNil + +`func (o *PowerOutlet) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerOutlet) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil ### GetConnectedEndpointsReachable `func (o *PowerOutlet) GetConnectedEndpointsReachable() bool` diff --git a/docs/PowerOutletRequest.md b/docs/PowerOutletRequest.md index 13dda02fd..d972b8040 100644 --- a/docs/PowerOutletRequest.md +++ b/docs/PowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewPowerOutletRequest -`func NewPowerOutletRequest(device DeviceRequest, name string, ) *PowerOutletRequest` +`func NewPowerOutletRequest(device BriefDeviceRequest, name string, ) *PowerOutletRequest` NewPowerOutletRequest instantiates a new PowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerOutletRequest) GetDevice() DeviceRequest` +`func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *PowerOutletRequest) GetModule() ModuleRequest` +`func (o *PowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *PowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *PowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -172,20 +172,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletRequestType.md b/docs/PowerOutletRequestType.md index c44e44e53..9356a3be8 100644 --- a/docs/PowerOutletRequestType.md +++ b/docs/PowerOutletRequestType.md @@ -125,6 +125,8 @@ * `NEMA_L21_30R` (value: `"nema-l21-30r"`) +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + * `NEMA_L22_30R` (value: `"nema-l22-30r"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"dc-terminal"`) +* `EATON_C39` (value: `"eaton-c39"`) + * `HDOT_CX` (value: `"hdot-cx"`) * `SAF_D_GRID` (value: `"saf-d-grid"`) diff --git a/docs/PowerOutletTemplate.md b/docs/PowerOutletTemplate.md index f682defaf..e762a82dc 100644 --- a/docs/PowerOutletTemplate.md +++ b/docs/PowerOutletTemplate.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] -**DeviceType** | Pointer to [**NullableDeviceType**](DeviceType.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleType**](ModuleType.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletType**](PowerOutletType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplate**](PowerPortTemplate.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplate**](BriefPowerPortTemplate.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletFeedLeg**](PowerOutletFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -99,20 +99,20 @@ SetDisplay sets Display field to given value. ### GetDeviceType -`func (o *PowerOutletTemplate) GetDeviceType() DeviceType` +`func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool)` +`func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplate) SetDeviceType(v DeviceType)` +`func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType)` SetDeviceType sets DeviceType field to given value. @@ -134,20 +134,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplate) GetModuleType() ModuleType` +`func (o *PowerOutletTemplate) GetModuleType() BriefModuleType` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool)` +`func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplate) SetModuleType(v ModuleType)` +`func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType)` SetModuleType sets ModuleType field to given value. @@ -249,20 +249,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate` +`func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool)` +`func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate)` +`func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTemplateRequest.md b/docs/PowerOutletTemplateRequest.md index 36e06e4b6..c4cb92e50 100644 --- a/docs/PowerOutletTemplateRequest.md +++ b/docs/PowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**NullablePowerOutletRequestType**](PowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**NullablePowerOutletRequestFeedLeg**](PowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -184,20 +184,20 @@ HasType returns a boolean if a field has been set. UnsetType ensures that no value is present for Type, not even an explicit nil ### GetPowerPort -`func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/PowerOutletTypeLabel.md b/docs/PowerOutletTypeLabel.md index 4df800c34..e61254747 100644 --- a/docs/PowerOutletTypeLabel.md +++ b/docs/PowerOutletTypeLabel.md @@ -125,6 +125,8 @@ * `NEMA_L21_30_R` (value: `"NEMA L21-30R"`) +* `NEMA_L22_20_R` (value: `"NEMA L22-20R"`) + * `NEMA_L22_30_R` (value: `"NEMA L22-30R"`) * `CS6360_C` (value: `"CS6360C"`) @@ -177,6 +179,8 @@ * `DC_TERMINAL` (value: `"DC Terminal"`) +* `EATON_C39` (value: `"Eaton C39"`) + * `HDOT_CX` (value: `"HDOT Cx"`) * `SAF_D_GRID` (value: `"Saf-D-Grid"`) diff --git a/docs/PowerPanel.md b/docs/PowerPanel.md index 31346d707..90e7876a7 100644 --- a/docs/PowerPanel.md +++ b/docs/PowerPanel.md @@ -6,16 +6,24 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] **PowerfeedCount** | **int64** | | [readonly] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPanel -`func NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64, ) *PowerPanel` +`func NewPowerPanel(id int32, url string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime, ) *PowerPanel` NewPowerPanel instantiates a new PowerPanel object This constructor will assign default values to properties that have it defined, @@ -70,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPanel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPanel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPanel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerPanel) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerPanel) GetDisplay() string` @@ -90,6 +123,61 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *PowerPanel) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanel) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanel) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanel) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanel) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanel) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanel) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanel) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanel) GetName() string` @@ -135,6 +223,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanel) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPanel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanel) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPanel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + ### GetPowerfeedCount `func (o *PowerPanel) GetPowerfeedCount() int64` @@ -155,6 +318,66 @@ and a boolean to check if the value has been set. SetPowerfeedCount sets PowerfeedCount field to given value. +### GetCreated + +`func (o *PowerPanel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPanel) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPanel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPanel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPanel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPanel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPanel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPanel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPanel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/PowerPanelRequest.md b/docs/PowerPanelRequest.md index 1993a4681..dbe61e3b7 100644 --- a/docs/PowerPanelRequest.md +++ b/docs/PowerPanelRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPanelRequest -`func NewPowerPanelRequest(name string, ) *PowerPanelRequest` +`func NewPowerPanelRequest(site BriefSiteRequest, name string, ) *PowerPanelRequest` NewPowerPanelRequest instantiates a new PowerPanelRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,61 @@ NewPowerPanelRequestWithDefaults instantiates a new PowerPanelRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSite + +`func (o *PowerPanelRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *PowerPanelRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *PowerPanelRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *PowerPanelRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *PowerPanelRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *PowerPanelRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetName `func (o *PowerPanelRequest) GetName() string` @@ -71,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *PowerPanelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *PowerPanelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *PowerPanelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *PowerPanelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPanelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPanelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPanelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPanelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPanelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPanelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPanelRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PowerPort.md b/docs/PowerPort.md index 43c65c7fa..d0f372c69 100644 --- a/docs/PowerPort.md +++ b/docs/PowerPort.md @@ -6,18 +6,35 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] +**CableEnd** | **string** | | [readonly] +**LinkPeers** | **[]interface{}** | | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] +**ConnectedEndpoints** | **[]interface{}** | | [readonly] +**ConnectedEndpointsType** | **NullableString** | | [readonly] +**ConnectedEndpointsReachable** | **bool** | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **Occupied** | **bool** | | [readonly] ## Methods ### NewPowerPort -`func NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool, ) *PowerPort` +`func NewPowerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool, ) *PowerPort` NewPowerPort instantiates a new PowerPort object This constructor will assign default values to properties that have it defined, @@ -72,6 +89,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *PowerPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *PowerPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *PowerPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *PowerPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *PowerPort) GetDisplay() string` @@ -94,24 +136,59 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *PowerPort) GetDevice() Device` +`func (o *PowerPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPort) GetDeviceOk() (*Device, bool)` +`func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPort) SetDevice(v Device)` +`func (o *PowerPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPort) GetModule() BriefModule` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPort) GetModuleOk() (*BriefModule, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPort) SetModule(v BriefModule)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPort) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPort) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPort) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPort) GetName() string` @@ -132,6 +209,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPort) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPort) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPort) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPort) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPort) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPort) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPort) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPort) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPort) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPort) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPort) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPort) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPort) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPort) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPort) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPort) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPort) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPort) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPort) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPort) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPort) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPort) GetDescription() string` @@ -157,22 +364,47 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPort) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPort) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPort) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPort) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + ### GetCable -`func (o *PowerPort) GetCable() Cable` +`func (o *PowerPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *PowerPort) GetCableOk() (*Cable, bool)` +`func (o *PowerPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *PowerPort) SetCable(v Cable)` +`func (o *PowerPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -187,6 +419,266 @@ SetCable sets Cable field to given value. `func (o *PowerPort) UnsetCable()` UnsetCable ensures that no value is present for Cable, not even an explicit nil +### GetCableEnd + +`func (o *PowerPort) GetCableEnd() string` + +GetCableEnd returns the CableEnd field if non-nil, zero value otherwise. + +### GetCableEndOk + +`func (o *PowerPort) GetCableEndOk() (*string, bool)` + +GetCableEndOk returns a tuple with the CableEnd field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCableEnd + +`func (o *PowerPort) SetCableEnd(v string)` + +SetCableEnd sets CableEnd field to given value. + + +### GetLinkPeers + +`func (o *PowerPort) GetLinkPeers() []interface{}` + +GetLinkPeers returns the LinkPeers field if non-nil, zero value otherwise. + +### GetLinkPeersOk + +`func (o *PowerPort) GetLinkPeersOk() (*[]interface{}, bool)` + +GetLinkPeersOk returns a tuple with the LinkPeers field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeers + +`func (o *PowerPort) SetLinkPeers(v []interface{})` + +SetLinkPeers sets LinkPeers field to given value. + + +### GetLinkPeersType + +`func (o *PowerPort) GetLinkPeersType() string` + +GetLinkPeersType returns the LinkPeersType field if non-nil, zero value otherwise. + +### GetLinkPeersTypeOk + +`func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool)` + +GetLinkPeersTypeOk returns a tuple with the LinkPeersType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLinkPeersType + +`func (o *PowerPort) SetLinkPeersType(v string)` + +SetLinkPeersType sets LinkPeersType field to given value. + + +### SetLinkPeersTypeNil + +`func (o *PowerPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *PowerPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil +### GetConnectedEndpoints + +`func (o *PowerPort) GetConnectedEndpoints() []interface{}` + +GetConnectedEndpoints returns the ConnectedEndpoints field if non-nil, zero value otherwise. + +### GetConnectedEndpointsOk + +`func (o *PowerPort) GetConnectedEndpointsOk() (*[]interface{}, bool)` + +GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpoints + +`func (o *PowerPort) SetConnectedEndpoints(v []interface{})` + +SetConnectedEndpoints sets ConnectedEndpoints field to given value. + + +### SetConnectedEndpointsNil + +`func (o *PowerPort) SetConnectedEndpointsNil(b bool)` + + SetConnectedEndpointsNil sets the value for ConnectedEndpoints to be an explicit nil + +### UnsetConnectedEndpoints +`func (o *PowerPort) UnsetConnectedEndpoints()` + +UnsetConnectedEndpoints ensures that no value is present for ConnectedEndpoints, not even an explicit nil +### GetConnectedEndpointsType + +`func (o *PowerPort) GetConnectedEndpointsType() string` + +GetConnectedEndpointsType returns the ConnectedEndpointsType field if non-nil, zero value otherwise. + +### GetConnectedEndpointsTypeOk + +`func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool)` + +GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsType + +`func (o *PowerPort) SetConnectedEndpointsType(v string)` + +SetConnectedEndpointsType sets ConnectedEndpointsType field to given value. + + +### SetConnectedEndpointsTypeNil + +`func (o *PowerPort) SetConnectedEndpointsTypeNil(b bool)` + + SetConnectedEndpointsTypeNil sets the value for ConnectedEndpointsType to be an explicit nil + +### UnsetConnectedEndpointsType +`func (o *PowerPort) UnsetConnectedEndpointsType()` + +UnsetConnectedEndpointsType ensures that no value is present for ConnectedEndpointsType, not even an explicit nil +### GetConnectedEndpointsReachable + +`func (o *PowerPort) GetConnectedEndpointsReachable() bool` + +GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field if non-nil, zero value otherwise. + +### GetConnectedEndpointsReachableOk + +`func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool)` + +GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetConnectedEndpointsReachable + +`func (o *PowerPort) SetConnectedEndpointsReachable(v bool)` + +SetConnectedEndpointsReachable sets ConnectedEndpointsReachable field to given value. + + +### GetTags + +`func (o *PowerPort) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPort) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPort) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPort) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPort) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPort) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPort) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPort) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *PowerPort) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPort) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPort) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPort) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPort) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPort) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPort) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPort) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPort) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetOccupied `func (o *PowerPort) GetOccupied() bool` diff --git a/docs/PowerPortRequest.md b/docs/PowerPortRequest.md index 5828bf357..26e241c9a 100644 --- a/docs/PowerPortRequest.md +++ b/docs/PowerPortRequest.md @@ -4,15 +4,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewPowerPortRequest -`func NewPowerPortRequest(device DeviceRequest, name string, ) *PowerPortRequest` +`func NewPowerPortRequest(device BriefDeviceRequest, name string, ) *PowerPortRequest` NewPowerPortRequest instantiates a new PowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -29,24 +37,59 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *PowerPortRequest) GetDevice() DeviceRequest` +`func (o *PowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *PowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. +### GetModule + +`func (o *PowerPortRequest) GetModule() BriefModuleRequest` + +GetModule returns the Module field if non-nil, zero value otherwise. + +### GetModuleOk + +`func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` + +GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModule + +`func (o *PowerPortRequest) SetModule(v BriefModuleRequest)` + +SetModule sets Module field to given value. + +### HasModule + +`func (o *PowerPortRequest) HasModule() bool` + +HasModule returns a boolean if a field has been set. + +### SetModuleNil + +`func (o *PowerPortRequest) SetModuleNil(b bool)` + + SetModuleNil sets the value for Module to be an explicit nil + +### UnsetModule +`func (o *PowerPortRequest) UnsetModule()` + +UnsetModule ensures that no value is present for Module, not even an explicit nil ### GetName `func (o *PowerPortRequest) GetName() string` @@ -67,6 +110,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortRequest) GetType() PowerPortRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortRequest) SetType(v PowerPortRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetMarkConnected + +`func (o *PowerPortRequest) GetMarkConnected() bool` + +GetMarkConnected returns the MarkConnected field if non-nil, zero value otherwise. + +### GetMarkConnectedOk + +`func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool)` + +GetMarkConnectedOk returns a tuple with the MarkConnected field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMarkConnected + +`func (o *PowerPortRequest) SetMarkConnected(v bool)` + +SetMarkConnected sets MarkConnected field to given value. + +### HasMarkConnected + +`func (o *PowerPortRequest) HasMarkConnected() bool` + +HasMarkConnected returns a boolean if a field has been set. + +### GetTags + +`func (o *PowerPortRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *PowerPortRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *PowerPortRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *PowerPortRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *PowerPortRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *PowerPortRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *PowerPortRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *PowerPortRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/PowerPortTemplate.md b/docs/PowerPortTemplate.md index 0ddb2e324..6f50846c8 100644 --- a/docs/PowerPortTemplate.md +++ b/docs/PowerPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortType**](PowerPortType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewPowerPortTemplate -`func NewPowerPortTemplate(id int32, url string, display string, name string, ) *PowerPortTemplate` +`func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ) *PowerPortTemplate` NewPowerPortTemplate instantiates a new PowerPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplate) GetName() string` @@ -109,6 +187,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplate) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplate) GetType() PowerPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplate) SetType(v PowerPortType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplate) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplate) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplate) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplate) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplate) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplate) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplate) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplate) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplate) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplate) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplate) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplate) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplate) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplate) GetDescription() string` @@ -134,6 +342,66 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *PowerPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *PowerPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *PowerPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *PowerPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *PowerPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *PowerPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *PowerPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *PowerPortTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/PowerPortTemplateRequest.md b/docs/PowerPortTemplateRequest.md index 7c113cd12..30f81cd0b 100644 --- a/docs/PowerPortTemplateRequest.md +++ b/docs/PowerPortTemplateRequest.md @@ -4,7 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | Pointer to [**NullablePowerPortRequestType**](PowerPortRequestType.md) | | [optional] +**MaximumDraw** | Pointer to **NullableInt32** | Maximum power draw (watts) | [optional] +**AllocatedDraw** | Pointer to **NullableInt32** | Allocated power draw (watts) | [optional] **Description** | Pointer to **string** | | [optional] ## Methods @@ -26,6 +32,76 @@ NewPowerPortTemplateRequestWithDefaults instantiates a new PowerPortTemplateRequ This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetDeviceType + +`func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *PowerPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *PowerPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *PowerPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *PowerPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *PowerPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *PowerPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *PowerPortTemplateRequest) GetName() string` @@ -46,6 +122,136 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *PowerPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *PowerPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *PowerPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType)` + +SetType sets Type field to given value. + +### HasType + +`func (o *PowerPortTemplateRequest) HasType() bool` + +HasType returns a boolean if a field has been set. + +### SetTypeNil + +`func (o *PowerPortTemplateRequest) SetTypeNil(b bool)` + + SetTypeNil sets the value for Type to be an explicit nil + +### UnsetType +`func (o *PowerPortTemplateRequest) UnsetType()` + +UnsetType ensures that no value is present for Type, not even an explicit nil +### GetMaximumDraw + +`func (o *PowerPortTemplateRequest) GetMaximumDraw() int32` + +GetMaximumDraw returns the MaximumDraw field if non-nil, zero value otherwise. + +### GetMaximumDrawOk + +`func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool)` + +GetMaximumDrawOk returns a tuple with the MaximumDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaximumDraw + +`func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32)` + +SetMaximumDraw sets MaximumDraw field to given value. + +### HasMaximumDraw + +`func (o *PowerPortTemplateRequest) HasMaximumDraw() bool` + +HasMaximumDraw returns a boolean if a field has been set. + +### SetMaximumDrawNil + +`func (o *PowerPortTemplateRequest) SetMaximumDrawNil(b bool)` + + SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil + +### UnsetMaximumDraw +`func (o *PowerPortTemplateRequest) UnsetMaximumDraw()` + +UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +### GetAllocatedDraw + +`func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32` + +GetAllocatedDraw returns the AllocatedDraw field if non-nil, zero value otherwise. + +### GetAllocatedDrawOk + +`func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool)` + +GetAllocatedDrawOk returns a tuple with the AllocatedDraw field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAllocatedDraw + +`func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32)` + +SetAllocatedDraw sets AllocatedDraw field to given value. + +### HasAllocatedDraw + +`func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool` + +HasAllocatedDraw returns a boolean if a field has been set. + +### SetAllocatedDrawNil + +`func (o *PowerPortTemplateRequest) SetAllocatedDrawNil(b bool)` + + SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil + +### UnsetAllocatedDraw +`func (o *PowerPortTemplateRequest) UnsetAllocatedDraw()` + +UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil ### GetDescription `func (o *PowerPortTemplateRequest) GetDescription() string` diff --git a/docs/Prefix.md b/docs/Prefix.md index b1b6821a6..7f65312b0 100644 --- a/docs/Prefix.md +++ b/docs/Prefix.md @@ -6,15 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Family** | [**AggregateFamily**](AggregateFamily.md) | | **Prefix** | **string** | | -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **Status** | Pointer to [**PrefixStatus**](PrefixStatus.md) | | [optional] -**Role** | Pointer to [**NullableRole**](Role.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -85,6 +86,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Prefix) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Prefix) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Prefix) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Prefix) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Prefix) GetDisplay() string` @@ -147,20 +173,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *Prefix) GetSite() Site` +`func (o *Prefix) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *Prefix) GetSiteOk() (*Site, bool)` +`func (o *Prefix) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *Prefix) SetSite(v Site)` +`func (o *Prefix) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -182,20 +208,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *Prefix) GetVrf() VRF` +`func (o *Prefix) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *Prefix) GetVrfOk() (*VRF, bool)` +`func (o *Prefix) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *Prefix) SetVrf(v VRF)` +`func (o *Prefix) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -217,20 +243,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *Prefix) GetTenant() Tenant` +`func (o *Prefix) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *Prefix) GetTenantOk() (*Tenant, bool)` +`func (o *Prefix) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *Prefix) SetTenant(v Tenant)` +`func (o *Prefix) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -252,20 +278,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *Prefix) GetVlan() VLAN` +`func (o *Prefix) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *Prefix) GetVlanOk() (*VLAN, bool)` +`func (o *Prefix) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *Prefix) SetVlan(v VLAN)` +`func (o *Prefix) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -312,20 +338,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *Prefix) GetRole() Role` +`func (o *Prefix) GetRole() BriefRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *Prefix) GetRoleOk() (*Role, bool)` +`func (o *Prefix) GetRoleOk() (*BriefRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *Prefix) SetRole(v Role)` +`func (o *Prefix) SetRole(v BriefRole)` SetRole sets Role field to given value. diff --git a/docs/PrefixRequest.md b/docs/PrefixRequest.md index ae1f2006b..9f8079465 100644 --- a/docs/PrefixRequest.md +++ b/docs/PrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PrefixStatusValue**](PrefixStatusValue.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *PrefixRequest) GetSite() SiteRequest` +`func (o *PrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *PrefixRequest) SetSite(v SiteRequest)` +`func (o *PrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *PrefixRequest) GetVrf() VRFRequest` +`func (o *PrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *PrefixRequest) SetVrf(v VRFRequest)` +`func (o *PrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *PrefixRequest) GetTenant() TenantRequest` +`func (o *PrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *PrefixRequest) SetTenant(v TenantRequest)` +`func (o *PrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *PrefixRequest) GetVlan() VLANRequest` +`func (o *PrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *PrefixRequest) SetVlan(v VLANRequest)` +`func (o *PrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *PrefixRequest) GetRole() RoleRequest` +`func (o *PrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *PrefixRequest) SetRole(v RoleRequest)` +`func (o *PrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/Provider.md b/docs/Provider.md index 16fd7e5df..48103a771 100644 --- a/docs/Provider.md +++ b/docs/Provider.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to [**[]NestedProviderAccount**](NestedProviderAccount.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **CircuitCount** | **int64** | | [readonly] ## Methods ### NewProvider -`func NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64, ) *Provider` +`func NewProvider(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ) *Provider` NewProvider instantiates a new Provider object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Provider) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Provider) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Provider) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Provider) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Provider) GetDisplay() string` @@ -131,6 +164,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *Provider) GetAccounts() []NestedProviderAccount` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *Provider) GetAccountsOk() (*[]NestedProviderAccount, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *Provider) SetAccounts(v []NestedProviderAccount)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *Provider) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *Provider) GetDescription() string` @@ -156,6 +214,166 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Provider) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Provider) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Provider) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Provider) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Provider) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Provider) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Provider) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Provider) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Provider) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Provider) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Provider) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Provider) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Provider) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Provider) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Provider) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Provider) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Provider) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Provider) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Provider) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Provider) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Provider) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Provider) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Provider) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Provider) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Provider) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Provider) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetCircuitCount `func (o *Provider) GetCircuitCount() int64` diff --git a/docs/ProviderAccount.md b/docs/ProviderAccount.md index aac9f2198..ffde42fc0 100644 --- a/docs/ProviderAccount.md +++ b/docs/ProviderAccount.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Provider** | [**Provider**](Provider.md) | | +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -21,7 +22,7 @@ Name | Type | Description | Notes ### NewProviderAccount -`func NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` +`func NewProviderAccount(id int32, url string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime, ) *ProviderAccount` NewProviderAccount instantiates a new ProviderAccount object This constructor will assign default values to properties that have it defined, @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderAccount) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderAccount) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ProviderAccount) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ProviderAccount) GetDisplay() string` @@ -98,20 +124,20 @@ SetDisplay sets Display field to given value. ### GetProvider -`func (o *ProviderAccount) GetProvider() Provider` +`func (o *ProviderAccount) GetProvider() BriefProvider` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *ProviderAccount) GetProviderOk() (*Provider, bool)` +`func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *ProviderAccount) SetProvider(v Provider)` +`func (o *ProviderAccount) SetProvider(v BriefProvider)` SetProvider sets Provider field to given value. diff --git a/docs/ProviderAccountRequest.md b/docs/ProviderAccountRequest.md index 73ff7c78b..bf38cf07e 100644 --- a/docs/ProviderAccountRequest.md +++ b/docs/ProviderAccountRequest.md @@ -4,15 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | Pointer to **string** | | [optional] [default to ""] **Account** | **string** | | **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderAccountRequest -`func NewProviderAccountRequest(account string, ) *ProviderAccountRequest` +`func NewProviderAccountRequest(provider BriefProviderRequest, account string, ) *ProviderAccountRequest` NewProviderAccountRequest instantiates a new ProviderAccountRequest object This constructor will assign default values to properties that have it defined, @@ -27,6 +31,26 @@ NewProviderAccountRequestWithDefaults instantiates a new ProviderAccountRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetProvider + +`func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderAccountRequest) GetName() string` @@ -97,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderAccountRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderAccountRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderAccountRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderAccountRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderAccountRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderAccountRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderAccountRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderAccountRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ProviderNetwork.md b/docs/ProviderNetwork.md index de3e09373..abefe58d5 100644 --- a/docs/ProviderNetwork.md +++ b/docs/ProviderNetwork.md @@ -6,15 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Provider** | [**BriefProvider**](BriefProvider.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewProviderNetwork -`func NewProviderNetwork(id int32, url string, display string, name string, ) *ProviderNetwork` +`func NewProviderNetwork(id int32, url string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime, ) *ProviderNetwork` NewProviderNetwork instantiates a new ProviderNetwork object This constructor will assign default values to properties that have it defined, @@ -69,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ProviderNetwork) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ProviderNetwork) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ProviderNetwork) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ProviderNetwork) GetDisplay() string` @@ -89,6 +122,26 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetProvider + +`func (o *ProviderNetwork) GetProvider() BriefProvider` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetwork) SetProvider(v BriefProvider)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetwork) GetName() string` @@ -109,6 +162,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetwork) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetwork) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetwork) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetwork) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetwork) GetDescription() string` @@ -134,6 +212,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetwork) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetwork) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetwork) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetwork) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetwork) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetwork) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderNetwork) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetwork) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetwork) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetwork) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderNetwork) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetwork) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *ProviderNetwork) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *ProviderNetwork) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *ProviderNetwork) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *ProviderNetwork) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *ProviderNetwork) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *ProviderNetwork) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *ProviderNetwork) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *ProviderNetwork) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/ProviderNetworkRequest.md b/docs/ProviderNetworkRequest.md index 21f981aa6..45b2b952a 100644 --- a/docs/ProviderNetworkRequest.md +++ b/docs/ProviderNetworkRequest.md @@ -4,14 +4,19 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | **Name** | **string** | | +**ServiceId** | Pointer to **string** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewProviderNetworkRequest -`func NewProviderNetworkRequest(name string, ) *ProviderNetworkRequest` +`func NewProviderNetworkRequest(provider BriefProviderRequest, name string, ) *ProviderNetworkRequest` NewProviderNetworkRequest instantiates a new ProviderNetworkRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +31,26 @@ NewProviderNetworkRequestWithDefaults instantiates a new ProviderNetworkRequest This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetProvider + +`func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest` + +GetProvider returns the Provider field if non-nil, zero value otherwise. + +### GetProviderOk + +`func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool)` + +GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetProvider + +`func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest)` + +SetProvider sets Provider field to given value. + + ### GetName `func (o *ProviderNetworkRequest) GetName() string` @@ -46,6 +71,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetServiceId + +`func (o *ProviderNetworkRequest) GetServiceId() string` + +GetServiceId returns the ServiceId field if non-nil, zero value otherwise. + +### GetServiceIdOk + +`func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool)` + +GetServiceIdOk returns a tuple with the ServiceId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetServiceId + +`func (o *ProviderNetworkRequest) SetServiceId(v string)` + +SetServiceId sets ServiceId field to given value. + +### HasServiceId + +`func (o *ProviderNetworkRequest) HasServiceId() bool` + +HasServiceId returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderNetworkRequest) GetDescription() string` @@ -71,6 +121,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderNetworkRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderNetworkRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderNetworkRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderNetworkRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderNetworkRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderNetworkRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderNetworkRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/ProviderRequest.md b/docs/ProviderRequest.md index a7e51837e..c03de9ce6 100644 --- a/docs/ProviderRequest.md +++ b/docs/ProviderRequest.md @@ -6,7 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the provider | **Slug** | **string** | | +**Accounts** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +72,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetAccounts + +`func (o *ProviderRequest) GetAccounts() []int32` + +GetAccounts returns the Accounts field if non-nil, zero value otherwise. + +### GetAccountsOk + +`func (o *ProviderRequest) GetAccountsOk() (*[]int32, bool)` + +GetAccountsOk returns a tuple with the Accounts field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAccounts + +`func (o *ProviderRequest) SetAccounts(v []int32)` + +SetAccounts sets Accounts field to given value. + +### HasAccounts + +`func (o *ProviderRequest) HasAccounts() bool` + +HasAccounts returns a boolean if a field has been set. + ### GetDescription `func (o *ProviderRequest) GetDescription() string` @@ -92,6 +122,106 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *ProviderRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *ProviderRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *ProviderRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *ProviderRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *ProviderRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *ProviderRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *ProviderRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *ProviderRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *ProviderRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *ProviderRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *ProviderRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *ProviderRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *ProviderRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *ProviderRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *ProviderRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *ProviderRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RIR.md b/docs/RIR.md index 2c027c73a..251d2b544 100644 --- a/docs/RIR.md +++ b/docs/RIR.md @@ -6,17 +6,23 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **AggregateCount** | **int64** | | [readonly] ## Methods ### NewRIR -`func NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64, ) *RIR` +`func NewRIR(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64, ) *RIR` NewRIR instantiates a new RIR object This constructor will assign default values to properties that have it defined, @@ -71,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RIR) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RIR) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RIR) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RIR) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RIR) GetDisplay() string` @@ -131,6 +162,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIR) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIR) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIR) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIR) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIR) GetDescription() string` @@ -156,6 +212,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIR) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIR) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RIR) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIR) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIR) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIR) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RIR) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIR) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *RIR) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RIR) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RIR) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RIR) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RIR) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RIR) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RIR) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RIR) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RIR) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RIR) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetAggregateCount `func (o *RIR) GetAggregateCount() int64` diff --git a/docs/RIRRequest.md b/docs/RIRRequest.md index 3a102b34c..761c2570e 100644 --- a/docs/RIRRequest.md +++ b/docs/RIRRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**IsPrivate** | Pointer to **bool** | IP space managed by this RIR is considered private | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetIsPrivate + +`func (o *RIRRequest) GetIsPrivate() bool` + +GetIsPrivate returns the IsPrivate field if non-nil, zero value otherwise. + +### GetIsPrivateOk + +`func (o *RIRRequest) GetIsPrivateOk() (*bool, bool)` + +GetIsPrivateOk returns a tuple with the IsPrivate field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsPrivate + +`func (o *RIRRequest) SetIsPrivate(v bool)` + +SetIsPrivate sets IsPrivate field to given value. + +### HasIsPrivate + +`func (o *RIRRequest) HasIsPrivate() bool` + +HasIsPrivate returns a boolean if a field has been set. + ### GetDescription `func (o *RIRRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RIRRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RIRRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RIRRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RIRRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RIRRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RIRRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RIRRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RIRRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Rack.md b/docs/Rack.md index 20e4a6cb2..e20589b82 100644 --- a/docs/Rack.md +++ b/docs/Rack.md @@ -6,16 +6,45 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSite**](BriefSite.md) | | +**Location** | Pointer to [**NullableBriefLocation**](BriefLocation.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**RackStatus**](RackStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRole**](BriefRackRole.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackType**](BriefRackType.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackFormFactor**](RackFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidth**](RackWidth.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeWeightUnit**](DeviceTypeWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackOuterUnit**](RackOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**RackAirflow**](RackAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**PowerfeedCount** | **int64** | | [readonly] ## Methods ### NewRack -`func NewRack(id int32, url string, display string, name string, ) *Rack` +`func NewRack(id int32, url string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, powerfeedCount int64, ) *Rack` NewRack instantiates a new Rack object This constructor will assign default values to properties that have it defined, @@ -70,6 +99,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Rack) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Rack) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Rack) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Rack) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Rack) GetDisplay() string` @@ -110,6 +164,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *Rack) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *Rack) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *Rack) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *Rack) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *Rack) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *Rack) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *Rack) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *Rack) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *Rack) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *Rack) GetLocation() BriefLocation` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *Rack) GetLocationOk() (*BriefLocation, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *Rack) SetLocation(v BriefLocation)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *Rack) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *Rack) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *Rack) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *Rack) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Rack) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Rack) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Rack) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Rack) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Rack) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *Rack) GetStatus() RackStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Rack) GetStatusOk() (*RackStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Rack) SetStatus(v RackStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Rack) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *Rack) GetRole() BriefRackRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *Rack) GetRoleOk() (*BriefRackRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *Rack) SetRole(v BriefRackRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *Rack) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *Rack) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *Rack) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *Rack) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *Rack) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *Rack) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *Rack) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *Rack) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *Rack) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *Rack) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *Rack) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *Rack) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *Rack) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *Rack) GetRackType() BriefRackType` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *Rack) GetRackTypeOk() (*BriefRackType, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *Rack) SetRackType(v BriefRackType)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *Rack) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *Rack) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *Rack) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *Rack) GetFormFactor() RackFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *Rack) SetFormFactor(v RackFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *Rack) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *Rack) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *Rack) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *Rack) GetWidth() RackWidth` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *Rack) GetWidthOk() (*RackWidth, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *Rack) SetWidth(v RackWidth)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *Rack) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *Rack) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *Rack) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *Rack) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *Rack) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *Rack) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *Rack) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *Rack) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *Rack) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *Rack) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Rack) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Rack) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Rack) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *Rack) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *Rack) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *Rack) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *Rack) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *Rack) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *Rack) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *Rack) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *Rack) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *Rack) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *Rack) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *Rack) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *Rack) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *Rack) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *Rack) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *Rack) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *Rack) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *Rack) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *Rack) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *Rack) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *Rack) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *Rack) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *Rack) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *Rack) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *Rack) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *Rack) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *Rack) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *Rack) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *Rack) GetOuterUnit() RackOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *Rack) SetOuterUnit(v RackOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *Rack) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *Rack) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *Rack) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *Rack) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *Rack) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *Rack) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *Rack) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *Rack) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *Rack) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *Rack) GetAirflow() RackAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *Rack) GetAirflowOk() (*RackAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *Rack) SetAirflow(v RackAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *Rack) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *Rack) GetDescription() string` @@ -135,6 +874,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Rack) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Rack) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Rack) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Rack) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Rack) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Rack) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Rack) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Rack) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Rack) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Rack) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Rack) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Rack) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Rack) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Rack) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Rack) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Rack) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Rack) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Rack) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Rack) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Rack) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Rack) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Rack) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetDeviceCount `func (o *Rack) GetDeviceCount() int64` @@ -160,6 +1034,26 @@ SetDeviceCount sets DeviceCount field to given value. HasDeviceCount returns a boolean if a field has been set. +### GetPowerfeedCount + +`func (o *Rack) GetPowerfeedCount() int64` + +GetPowerfeedCount returns the PowerfeedCount field if non-nil, zero value otherwise. + +### GetPowerfeedCountOk + +`func (o *Rack) GetPowerfeedCountOk() (*int64, bool)` + +GetPowerfeedCountOk returns a tuple with the PowerfeedCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPowerfeedCount + +`func (o *Rack) SetPowerfeedCount(v int64)` + +SetPowerfeedCount sets PowerfeedCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/RackRequest.md b/docs/RackRequest.md index fdc2c2dd5..12ddea190 100644 --- a/docs/RackRequest.md +++ b/docs/RackRequest.md @@ -5,13 +5,38 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**FacilityId** | Pointer to **NullableString** | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**NullableRackRequestFormFactor**](RackRequestFormFactor.md) | | [optional] +**Width** | Pointer to [**RackWidthValue**](RackWidthValue.md) | | [optional] +**UHeight** | Pointer to **int32** | Height in rack units | [optional] +**StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] +**Weight** | Pointer to **NullableFloat64** | | [optional] +**MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] +**WeightUnit** | Pointer to [**NullableDeviceTypeRequestWeightUnit**](DeviceTypeRequestWeightUnit.md) | | [optional] +**DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] +**OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] +**OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] +**OuterUnit** | Pointer to [**NullableRackRequestOuterUnit**](RackRequestOuterUnit.md) | | [optional] +**MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewRackRequest -`func NewRackRequest(name string, ) *RackRequest` +`func NewRackRequest(name string, site BriefSiteRequest, ) *RackRequest` NewRackRequest instantiates a new RackRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +71,691 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetFacilityId + +`func (o *RackRequest) GetFacilityId() string` + +GetFacilityId returns the FacilityId field if non-nil, zero value otherwise. + +### GetFacilityIdOk + +`func (o *RackRequest) GetFacilityIdOk() (*string, bool)` + +GetFacilityIdOk returns a tuple with the FacilityId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacilityId + +`func (o *RackRequest) SetFacilityId(v string)` + +SetFacilityId sets FacilityId field to given value. + +### HasFacilityId + +`func (o *RackRequest) HasFacilityId() bool` + +HasFacilityId returns a boolean if a field has been set. + +### SetFacilityIdNil + +`func (o *RackRequest) SetFacilityIdNil(b bool)` + + SetFacilityIdNil sets the value for FacilityId to be an explicit nil + +### UnsetFacilityId +`func (o *RackRequest) UnsetFacilityId()` + +UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +### GetSite + +`func (o *RackRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *RackRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + + +### GetLocation + +`func (o *RackRequest) GetLocation() BriefLocationRequest` + +GetLocation returns the Location field if non-nil, zero value otherwise. + +### GetLocationOk + +`func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool)` + +GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLocation + +`func (o *RackRequest) SetLocation(v BriefLocationRequest)` + +SetLocation sets Location field to given value. + +### HasLocation + +`func (o *RackRequest) HasLocation() bool` + +HasLocation returns a boolean if a field has been set. + +### SetLocationNil + +`func (o *RackRequest) SetLocationNil(b bool)` + + SetLocationNil sets the value for Location to be an explicit nil + +### UnsetLocation +`func (o *RackRequest) UnsetLocation()` + +UnsetLocation ensures that no value is present for Location, not even an explicit nil +### GetTenant + +`func (o *RackRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *RackRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *RackRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *RackRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *RackRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *RackRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *RackRequest) GetRole() BriefRackRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *RackRequest) SetRole(v BriefRackRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *RackRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *RackRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *RackRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil +### GetSerial + +`func (o *RackRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *RackRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *RackRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *RackRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + +### GetAssetTag + +`func (o *RackRequest) GetAssetTag() string` + +GetAssetTag returns the AssetTag field if non-nil, zero value otherwise. + +### GetAssetTagOk + +`func (o *RackRequest) GetAssetTagOk() (*string, bool)` + +GetAssetTagOk returns a tuple with the AssetTag field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssetTag + +`func (o *RackRequest) SetAssetTag(v string)` + +SetAssetTag sets AssetTag field to given value. + +### HasAssetTag + +`func (o *RackRequest) HasAssetTag() bool` + +HasAssetTag returns a boolean if a field has been set. + +### SetAssetTagNil + +`func (o *RackRequest) SetAssetTagNil(b bool)` + + SetAssetTagNil sets the value for AssetTag to be an explicit nil + +### UnsetAssetTag +`func (o *RackRequest) UnsetAssetTag()` + +UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +### GetRackType + +`func (o *RackRequest) GetRackType() BriefRackTypeRequest` + +GetRackType returns the RackType field if non-nil, zero value otherwise. + +### GetRackTypeOk + +`func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` + +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackType + +`func (o *RackRequest) SetRackType(v BriefRackTypeRequest)` + +SetRackType sets RackType field to given value. + +### HasRackType + +`func (o *RackRequest) HasRackType() bool` + +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *RackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *RackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *RackRequest) GetFormFactor() RackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *RackRequest) SetFormFactor(v RackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *RackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. + +### SetFormFactorNil + +`func (o *RackRequest) SetFormFactorNil(b bool)` + + SetFormFactorNil sets the value for FormFactor to be an explicit nil + +### UnsetFormFactor +`func (o *RackRequest) UnsetFormFactor()` + +UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +### GetWidth + +`func (o *RackRequest) GetWidth() RackWidthValue` + +GetWidth returns the Width field if non-nil, zero value otherwise. + +### GetWidthOk + +`func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool)` + +GetWidthOk returns a tuple with the Width field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWidth + +`func (o *RackRequest) SetWidth(v RackWidthValue)` + +SetWidth sets Width field to given value. + +### HasWidth + +`func (o *RackRequest) HasWidth() bool` + +HasWidth returns a boolean if a field has been set. + +### GetUHeight + +`func (o *RackRequest) GetUHeight() int32` + +GetUHeight returns the UHeight field if non-nil, zero value otherwise. + +### GetUHeightOk + +`func (o *RackRequest) GetUHeightOk() (*int32, bool)` + +GetUHeightOk returns a tuple with the UHeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUHeight + +`func (o *RackRequest) SetUHeight(v int32)` + +SetUHeight sets UHeight field to given value. + +### HasUHeight + +`func (o *RackRequest) HasUHeight() bool` + +HasUHeight returns a boolean if a field has been set. + +### GetStartingUnit + +`func (o *RackRequest) GetStartingUnit() int32` + +GetStartingUnit returns the StartingUnit field if non-nil, zero value otherwise. + +### GetStartingUnitOk + +`func (o *RackRequest) GetStartingUnitOk() (*int32, bool)` + +GetStartingUnitOk returns a tuple with the StartingUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStartingUnit + +`func (o *RackRequest) SetStartingUnit(v int32)` + +SetStartingUnit sets StartingUnit field to given value. + +### HasStartingUnit + +`func (o *RackRequest) HasStartingUnit() bool` + +HasStartingUnit returns a boolean if a field has been set. + +### GetWeight + +`func (o *RackRequest) GetWeight() float64` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RackRequest) GetWeightOk() (*float64, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RackRequest) SetWeight(v float64)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RackRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + +### SetWeightNil + +`func (o *RackRequest) SetWeightNil(b bool)` + + SetWeightNil sets the value for Weight to be an explicit nil + +### UnsetWeight +`func (o *RackRequest) UnsetWeight()` + +UnsetWeight ensures that no value is present for Weight, not even an explicit nil +### GetMaxWeight + +`func (o *RackRequest) GetMaxWeight() int32` + +GetMaxWeight returns the MaxWeight field if non-nil, zero value otherwise. + +### GetMaxWeightOk + +`func (o *RackRequest) GetMaxWeightOk() (*int32, bool)` + +GetMaxWeightOk returns a tuple with the MaxWeight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMaxWeight + +`func (o *RackRequest) SetMaxWeight(v int32)` + +SetMaxWeight sets MaxWeight field to given value. + +### HasMaxWeight + +`func (o *RackRequest) HasMaxWeight() bool` + +HasMaxWeight returns a boolean if a field has been set. + +### SetMaxWeightNil + +`func (o *RackRequest) SetMaxWeightNil(b bool)` + + SetMaxWeightNil sets the value for MaxWeight to be an explicit nil + +### UnsetMaxWeight +`func (o *RackRequest) UnsetMaxWeight()` + +UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +### GetWeightUnit + +`func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit` + +GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. + +### GetWeightUnitOk + +`func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool)` + +GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeightUnit + +`func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit)` + +SetWeightUnit sets WeightUnit field to given value. + +### HasWeightUnit + +`func (o *RackRequest) HasWeightUnit() bool` + +HasWeightUnit returns a boolean if a field has been set. + +### SetWeightUnitNil + +`func (o *RackRequest) SetWeightUnitNil(b bool)` + + SetWeightUnitNil sets the value for WeightUnit to be an explicit nil + +### UnsetWeightUnit +`func (o *RackRequest) UnsetWeightUnit()` + +UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +### GetDescUnits + +`func (o *RackRequest) GetDescUnits() bool` + +GetDescUnits returns the DescUnits field if non-nil, zero value otherwise. + +### GetDescUnitsOk + +`func (o *RackRequest) GetDescUnitsOk() (*bool, bool)` + +GetDescUnitsOk returns a tuple with the DescUnits field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDescUnits + +`func (o *RackRequest) SetDescUnits(v bool)` + +SetDescUnits sets DescUnits field to given value. + +### HasDescUnits + +`func (o *RackRequest) HasDescUnits() bool` + +HasDescUnits returns a boolean if a field has been set. + +### GetOuterWidth + +`func (o *RackRequest) GetOuterWidth() int32` + +GetOuterWidth returns the OuterWidth field if non-nil, zero value otherwise. + +### GetOuterWidthOk + +`func (o *RackRequest) GetOuterWidthOk() (*int32, bool)` + +GetOuterWidthOk returns a tuple with the OuterWidth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterWidth + +`func (o *RackRequest) SetOuterWidth(v int32)` + +SetOuterWidth sets OuterWidth field to given value. + +### HasOuterWidth + +`func (o *RackRequest) HasOuterWidth() bool` + +HasOuterWidth returns a boolean if a field has been set. + +### SetOuterWidthNil + +`func (o *RackRequest) SetOuterWidthNil(b bool)` + + SetOuterWidthNil sets the value for OuterWidth to be an explicit nil + +### UnsetOuterWidth +`func (o *RackRequest) UnsetOuterWidth()` + +UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +### GetOuterDepth + +`func (o *RackRequest) GetOuterDepth() int32` + +GetOuterDepth returns the OuterDepth field if non-nil, zero value otherwise. + +### GetOuterDepthOk + +`func (o *RackRequest) GetOuterDepthOk() (*int32, bool)` + +GetOuterDepthOk returns a tuple with the OuterDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterDepth + +`func (o *RackRequest) SetOuterDepth(v int32)` + +SetOuterDepth sets OuterDepth field to given value. + +### HasOuterDepth + +`func (o *RackRequest) HasOuterDepth() bool` + +HasOuterDepth returns a boolean if a field has been set. + +### SetOuterDepthNil + +`func (o *RackRequest) SetOuterDepthNil(b bool)` + + SetOuterDepthNil sets the value for OuterDepth to be an explicit nil + +### UnsetOuterDepth +`func (o *RackRequest) UnsetOuterDepth()` + +UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +### GetOuterUnit + +`func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit` + +GetOuterUnit returns the OuterUnit field if non-nil, zero value otherwise. + +### GetOuterUnitOk + +`func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool)` + +GetOuterUnitOk returns a tuple with the OuterUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetOuterUnit + +`func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit)` + +SetOuterUnit sets OuterUnit field to given value. + +### HasOuterUnit + +`func (o *RackRequest) HasOuterUnit() bool` + +HasOuterUnit returns a boolean if a field has been set. + +### SetOuterUnitNil + +`func (o *RackRequest) SetOuterUnitNil(b bool)` + + SetOuterUnitNil sets the value for OuterUnit to be an explicit nil + +### UnsetOuterUnit +`func (o *RackRequest) UnsetOuterUnit()` + +UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +### GetMountingDepth + +`func (o *RackRequest) GetMountingDepth() int32` + +GetMountingDepth returns the MountingDepth field if non-nil, zero value otherwise. + +### GetMountingDepthOk + +`func (o *RackRequest) GetMountingDepthOk() (*int32, bool)` + +GetMountingDepthOk returns a tuple with the MountingDepth field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMountingDepth + +`func (o *RackRequest) SetMountingDepth(v int32)` + +SetMountingDepth sets MountingDepth field to given value. + +### HasMountingDepth + +`func (o *RackRequest) HasMountingDepth() bool` + +HasMountingDepth returns a boolean if a field has been set. + +### SetMountingDepthNil + +`func (o *RackRequest) SetMountingDepthNil(b bool)` + + SetMountingDepthNil sets the value for MountingDepth to be an explicit nil + +### UnsetMountingDepth +`func (o *RackRequest) UnsetMountingDepth()` + +UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *RackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *RackRequest) GetDescription() string` @@ -71,6 +781,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *RackRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *RackRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *RackRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *RackRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *RackRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RackRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RackRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RackRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RackRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RackRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RackRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RackRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RackReservation.md b/docs/RackReservation.md index d8fdbd2ff..dab7b0052 100644 --- a/docs/RackReservation.md +++ b/docs/RackReservation.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Rack** | [**Rack**](Rack.md) | | +**Rack** | [**BriefRack**](BriefRack.md) | | **Units** | **[]int32** | | **Created** | **NullableTime** | | [readonly] **LastUpdated** | **NullableTime** | | [readonly] -**User** | [**User**](User.md) | | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**User** | [**BriefUser**](BriefUser.md) | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewRackReservation -`func NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string, ) *RackReservation` +`func NewRackReservation(id int32, url string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string, ) *RackReservation` NewRackReservation instantiates a new RackReservation object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackReservation) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackReservation) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackReservation) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RackReservation) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RackReservation) GetDisplay() string` @@ -99,20 +125,20 @@ SetDisplay sets Display field to given value. ### GetRack -`func (o *RackReservation) GetRack() Rack` +`func (o *RackReservation) GetRack() BriefRack` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservation) GetRackOk() (*Rack, bool)` +`func (o *RackReservation) GetRackOk() (*BriefRack, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservation) SetRack(v Rack)` +`func (o *RackReservation) SetRack(v BriefRack)` SetRack sets Rack field to given value. @@ -199,40 +225,40 @@ SetLastUpdated sets LastUpdated field to given value. UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetUser -`func (o *RackReservation) GetUser() User` +`func (o *RackReservation) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservation) GetUserOk() (*User, bool)` +`func (o *RackReservation) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservation) SetUser(v User)` +`func (o *RackReservation) SetUser(v BriefUser)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservation) GetTenant() Tenant` +`func (o *RackReservation) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservation) GetTenantOk() (*Tenant, bool)` +`func (o *RackReservation) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservation) SetTenant(v Tenant)` +`func (o *RackReservation) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RackReservationRequest.md b/docs/RackReservationRequest.md index e87e36a89..1910e473a 100644 --- a/docs/RackReservationRequest.md +++ b/docs/RackReservationRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Rack** | [**RackRequest**](RackRequest.md) | | +**Rack** | [**BriefRackRequest**](BriefRackRequest.md) | | **Units** | **[]int32** | | -**User** | [**UserRequest**](UserRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | **string** | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewRackReservationRequest -`func NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string, ) *RackReservationRequest` +`func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string, ) *RackReservationRequest` NewRackReservationRequest instantiates a new RackReservationRequest object This constructor will assign default values to properties that have it defined, @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetRack -`func (o *RackReservationRequest) GetRack() RackRequest` +`func (o *RackReservationRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool)` +`func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *RackReservationRequest) SetRack(v RackRequest)` +`func (o *RackReservationRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -74,40 +74,40 @@ SetUnits sets Units field to given value. ### GetUser -`func (o *RackReservationRequest) GetUser() UserRequest` +`func (o *RackReservationRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool)` +`func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *RackReservationRequest) SetUser(v UserRequest)` +`func (o *RackReservationRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. ### GetTenant -`func (o *RackReservationRequest) GetTenant() TenantRequest` +`func (o *RackReservationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RackReservationRequest) SetTenant(v TenantRequest)` +`func (o *RackReservationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/RackRole.md b/docs/RackRole.md index a13905573..b04f97b54 100644 --- a/docs/RackRole.md +++ b/docs/RackRole.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RackRole) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RackRole) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RackRole) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RackRole) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RackRole) GetDisplay() string` diff --git a/docs/RackType.md b/docs/RackType.md index dcc20c65b..dcfe45833 100644 --- a/docs/RackType.md +++ b/docs/RackType.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] -**DisplayUrl** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Manufacturer** | [**BriefManufacturer**](BriefManufacturer.md) | | **Model** | **string** | | @@ -34,7 +34,7 @@ Name | Type | Description | Notes ### NewRackType -`func NewRackType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, ) *RackType` +`func NewRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, ) *RackType` NewRackType instantiates a new RackType object This constructor will assign default values to properties that have it defined, @@ -108,6 +108,11 @@ and a boolean to check if the value has been set. SetDisplayUrl sets DisplayUrl field to given value. +### HasDisplayUrl + +`func (o *RackType) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. ### GetDisplay diff --git a/docs/RackUnit.md b/docs/RackUnit.md index 507d76f97..170729fb9 100644 --- a/docs/RackUnit.md +++ b/docs/RackUnit.md @@ -7,7 +7,7 @@ Name | Type | Description | Notes **Id** | **float64** | | [readonly] **Name** | **string** | | [readonly] **Face** | [**RackUnitFace**](RackUnitFace.md) | | -**Device** | [**Device**](Device.md) | | [readonly] +**Device** | [**BriefDevice**](BriefDevice.md) | | [readonly] **Occupied** | **bool** | | [readonly] **Display** | **string** | | [readonly] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewRackUnit -`func NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string, ) *RackUnit` +`func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string, ) *RackUnit` NewRackUnit instantiates a new RackUnit object This constructor will assign default values to properties that have it defined, @@ -92,20 +92,20 @@ SetFace sets Face field to given value. ### GetDevice -`func (o *RackUnit) GetDevice() Device` +`func (o *RackUnit) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RackUnit) GetDeviceOk() (*Device, bool)` +`func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RackUnit) SetDevice(v Device)` +`func (o *RackUnit) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. diff --git a/docs/RearPort.md b/docs/RearPort.md index 18ec1face..ffb400f7a 100644 --- a/docs/RearPort.md +++ b/docs/RearPort.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | [**Device**](Device.md) | | -**Module** | Pointer to [**NullableModule**](Module.md) | | [optional] +**Device** | [**BriefDevice**](BriefDevice.md) | | +**Module** | Pointer to [**NullableBriefModule**](BriefModule.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortType**](FrontPortType.md) | | @@ -16,10 +17,10 @@ Name | Type | Description | Notes **Positions** | Pointer to **int32** | Number of front ports which may be mapped | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] -**Cable** | [**NullableCable**](Cable.md) | | [readonly] +**Cable** | [**NullableBriefCable**](BriefCable.md) | | [readonly] **CableEnd** | **string** | | [readonly] **LinkPeers** | **[]interface{}** | | [readonly] -**LinkPeersType** | **string** | Return the type of the peer link terminations, or None. | [readonly] +**LinkPeersType** | **NullableString** | Return the type of the peer link terminations, or None. | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -30,7 +31,7 @@ Name | Type | Description | Notes ### NewRearPort -`func NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` +`func NewRearPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool, ) *RearPort` NewRearPort instantiates a new RearPort object This constructor will assign default values to properties that have it defined, @@ -85,6 +86,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RearPort) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RearPort) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RearPort) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RearPort) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RearPort) GetDisplay() string` @@ -107,40 +133,40 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *RearPort) GetDevice() Device` +`func (o *RearPort) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPort) GetDeviceOk() (*Device, bool)` +`func (o *RearPort) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPort) SetDevice(v Device)` +`func (o *RearPort) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPort) GetModule() Module` +`func (o *RearPort) GetModule() BriefModule` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPort) GetModuleOk() (*Module, bool)` +`func (o *RearPort) GetModuleOk() (*BriefModule, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPort) SetModule(v Module)` +`func (o *RearPort) SetModule(v BriefModule)` SetModule sets Module field to given value. @@ -327,20 +353,20 @@ HasMarkConnected returns a boolean if a field has been set. ### GetCable -`func (o *RearPort) GetCable() Cable` +`func (o *RearPort) GetCable() BriefCable` GetCable returns the Cable field if non-nil, zero value otherwise. ### GetCableOk -`func (o *RearPort) GetCableOk() (*Cable, bool)` +`func (o *RearPort) GetCableOk() (*BriefCable, bool)` GetCableOk returns a tuple with the Cable field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCable -`func (o *RearPort) SetCable(v Cable)` +`func (o *RearPort) SetCable(v BriefCable)` SetCable sets Cable field to given value. @@ -415,6 +441,16 @@ and a boolean to check if the value has been set. SetLinkPeersType sets LinkPeersType field to given value. +### SetLinkPeersTypeNil + +`func (o *RearPort) SetLinkPeersTypeNil(b bool)` + + SetLinkPeersTypeNil sets the value for LinkPeersType to be an explicit nil + +### UnsetLinkPeersType +`func (o *RearPort) UnsetLinkPeersType()` + +UnsetLinkPeersType ensures that no value is present for LinkPeersType, not even an explicit nil ### GetTags `func (o *RearPort) GetTags() []NestedTag` diff --git a/docs/RearPortRequest.md b/docs/RearPortRequest.md index 3555c4450..8a6a32755 100644 --- a/docs/RearPortRequest.md +++ b/docs/RearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewRearPortRequest -`func NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` +`func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *RearPortRequest` NewRearPortRequest instantiates a new RearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *RearPortRequest) GetDevice() DeviceRequest` +`func (o *RearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *RearPortRequest) SetDevice(v DeviceRequest)` +`func (o *RearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *RearPortRequest) GetModule() ModuleRequest` +`func (o *RearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *RearPortRequest) SetModule(v ModuleRequest)` +`func (o *RearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/RearPortTemplate.md b/docs/RearPortTemplate.md index 004494da3..a687076f7 100644 --- a/docs/RearPortTemplate.md +++ b/docs/RearPortTemplate.md @@ -7,14 +7,22 @@ Name | Type | Description | Notes **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] **Display** | **string** | | [readonly] +**DeviceType** | Pointer to [**NullableBriefDeviceType**](BriefDeviceType.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleType**](BriefModuleType.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**FrontPortType**](FrontPortType.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] ## Methods ### NewRearPortTemplate -`func NewRearPortTemplate(id int32, url string, display string, name string, ) *RearPortTemplate` +`func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime, ) *RearPortTemplate` NewRearPortTemplate instantiates a new RearPortTemplate object This constructor will assign default values to properties that have it defined, @@ -89,6 +97,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetDeviceType + +`func (o *RearPortTemplate) GetDeviceType() BriefDeviceType` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplate) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplate) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplate) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplate) GetModuleType() BriefModuleType` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplate) SetModuleType(v BriefModuleType)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplate) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplate) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplate) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplate) GetName() string` @@ -109,6 +187,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplate) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplate) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RearPortTemplate) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplate) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplate) GetType() FrontPortType` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplate) SetType(v FrontPortType)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplate) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplate) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplate) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplate) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplate) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplate) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplate) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplate) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplate) GetDescription() string` @@ -134,6 +307,66 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetCreated + +`func (o *RearPortTemplate) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *RearPortTemplate) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *RearPortTemplate) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *RearPortTemplate) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *RearPortTemplate) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *RearPortTemplate) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *RearPortTemplate) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *RearPortTemplate) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil [[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/docs/RearPortTemplateRequest.md b/docs/RearPortTemplateRequest.md index d139cde91..71bf28cd3 100644 --- a/docs/RearPortTemplateRequest.md +++ b/docs/RearPortTemplateRequest.md @@ -4,14 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | +**Label** | Pointer to **string** | Physical label | [optional] +**Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | +**Color** | Pointer to **string** | | [optional] +**Positions** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] ## Methods ### NewRearPortTemplateRequest -`func NewRearPortTemplateRequest(name string, ) *RearPortTemplateRequest` +`func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue, ) *RearPortTemplateRequest` NewRearPortTemplateRequest instantiates a new RearPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -26,6 +32,76 @@ NewRearPortTemplateRequestWithDefaults instantiates a new RearPortTemplateReques This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetDeviceType + +`func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` + +GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. + +### GetDeviceTypeOk + +`func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` + +GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceType + +`func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` + +SetDeviceType sets DeviceType field to given value. + +### HasDeviceType + +`func (o *RearPortTemplateRequest) HasDeviceType() bool` + +HasDeviceType returns a boolean if a field has been set. + +### SetDeviceTypeNil + +`func (o *RearPortTemplateRequest) SetDeviceTypeNil(b bool)` + + SetDeviceTypeNil sets the value for DeviceType to be an explicit nil + +### UnsetDeviceType +`func (o *RearPortTemplateRequest) UnsetDeviceType()` + +UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +### GetModuleType + +`func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` + +GetModuleType returns the ModuleType field if non-nil, zero value otherwise. + +### GetModuleTypeOk + +`func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` + +GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetModuleType + +`func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` + +SetModuleType sets ModuleType field to given value. + +### HasModuleType + +`func (o *RearPortTemplateRequest) HasModuleType() bool` + +HasModuleType returns a boolean if a field has been set. + +### SetModuleTypeNil + +`func (o *RearPortTemplateRequest) SetModuleTypeNil(b bool)` + + SetModuleTypeNil sets the value for ModuleType to be an explicit nil + +### UnsetModuleType +`func (o *RearPortTemplateRequest) UnsetModuleType()` + +UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil ### GetName `func (o *RearPortTemplateRequest) GetName() string` @@ -46,6 +122,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetLabel + +`func (o *RearPortTemplateRequest) GetLabel() string` + +GetLabel returns the Label field if non-nil, zero value otherwise. + +### GetLabelOk + +`func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool)` + +GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLabel + +`func (o *RearPortTemplateRequest) SetLabel(v string)` + +SetLabel sets Label field to given value. + +### HasLabel + +`func (o *RearPortTemplateRequest) HasLabel() bool` + +HasLabel returns a boolean if a field has been set. + +### GetType + +`func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue` + +GetType returns the Type field if non-nil, zero value otherwise. + +### GetTypeOk + +`func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool)` + +GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetType + +`func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue)` + +SetType sets Type field to given value. + + +### GetColor + +`func (o *RearPortTemplateRequest) GetColor() string` + +GetColor returns the Color field if non-nil, zero value otherwise. + +### GetColorOk + +`func (o *RearPortTemplateRequest) GetColorOk() (*string, bool)` + +GetColorOk returns a tuple with the Color field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetColor + +`func (o *RearPortTemplateRequest) SetColor(v string)` + +SetColor sets Color field to given value. + +### HasColor + +`func (o *RearPortTemplateRequest) HasColor() bool` + +HasColor returns a boolean if a field has been set. + +### GetPositions + +`func (o *RearPortTemplateRequest) GetPositions() int32` + +GetPositions returns the Positions field if non-nil, zero value otherwise. + +### GetPositionsOk + +`func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool)` + +GetPositionsOk returns a tuple with the Positions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPositions + +`func (o *RearPortTemplateRequest) SetPositions(v int32)` + +SetPositions sets Positions field to given value. + +### HasPositions + +`func (o *RearPortTemplateRequest) HasPositions() bool` + +HasPositions returns a boolean if a field has been set. + ### GetDescription `func (o *RearPortTemplateRequest) GetDescription() string` diff --git a/docs/Region.md b/docs/Region.md index f7c3a1a81..7169e9104 100644 --- a/docs/Region.md +++ b/docs/Region.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Region) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Region) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Region) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Region) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Region) GetDisplay() string` diff --git a/docs/Role.md b/docs/Role.md index 5f1292314..e9c3050f6 100644 --- a/docs/Role.md +++ b/docs/Role.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] **VlanCount** | Pointer to **int64** | | [optional] [readonly] @@ -17,7 +23,7 @@ Name | Type | Description | Notes ### NewRole -`func NewRole(id int32, url string, display string, name string, slug string, ) *Role` +`func NewRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, ) *Role` NewRole instantiates a new Role object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Role) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Role) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Role) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Role) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Role) GetDisplay() string` @@ -132,6 +163,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *Role) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *Role) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *Role) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *Role) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *Role) GetDescription() string` @@ -157,6 +213,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *Role) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Role) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Role) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Role) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Role) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Role) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Role) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Role) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Role) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Role) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Role) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Role) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Role) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Role) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Role) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Role) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Role) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Role) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetPrefixCount `func (o *Role) GetPrefixCount() int64` diff --git a/docs/RoleRequest.md b/docs/RoleRequest.md index 4ea26627a..8a35bd48f 100644 --- a/docs/RoleRequest.md +++ b/docs/RoleRequest.md @@ -6,7 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Weight** | Pointer to **int32** | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +70,31 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetWeight + +`func (o *RoleRequest) GetWeight() int32` + +GetWeight returns the Weight field if non-nil, zero value otherwise. + +### GetWeightOk + +`func (o *RoleRequest) GetWeightOk() (*int32, bool)` + +GetWeightOk returns a tuple with the Weight field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetWeight + +`func (o *RoleRequest) SetWeight(v int32)` + +SetWeight sets Weight field to given value. + +### HasWeight + +`func (o *RoleRequest) HasWeight() bool` + +HasWeight returns a boolean if a field has been set. + ### GetDescription `func (o *RoleRequest) GetDescription() string` @@ -92,6 +120,56 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *RoleRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *RoleRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *RoleRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *RoleRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *RoleRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *RoleRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *RoleRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *RoleRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/RouteTarget.md b/docs/RouteTarget.md index 55b89b478..23c665c37 100644 --- a/docs/RouteTarget.md +++ b/docs/RouteTarget.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *RouteTarget) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *RouteTarget) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *RouteTarget) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *RouteTarget) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *RouteTarget) GetDisplay() string` @@ -117,20 +143,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTarget) GetTenant() Tenant` +`func (o *RouteTarget) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTarget) GetTenantOk() (*Tenant, bool)` +`func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTarget) SetTenant(v Tenant)` +`func (o *RouteTarget) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/RouteTargetRequest.md b/docs/RouteTargetRequest.md index 2627327d1..55aedbd23 100644 --- a/docs/RouteTargetRequest.md +++ b/docs/RouteTargetRequest.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Route target value (formatted in accordance with RFC 4360) | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -52,20 +52,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *RouteTargetRequest) GetTenant() TenantRequest` +`func (o *RouteTargetRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *RouteTargetRequest) SetTenant(v TenantRequest)` +`func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/SavedFilter.md b/docs/SavedFilter.md index 78ce2dbcb..62d5795ab 100644 --- a/docs/SavedFilter.md +++ b/docs/SavedFilter.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **ObjectTypes** | **[]string** | | **Name** | **string** | | @@ -78,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SavedFilter) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SavedFilter) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SavedFilter) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *SavedFilter) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *SavedFilter) GetDisplay() string` diff --git a/docs/SchemaAPI.md b/docs/SchemaAPI.md index 21435ca5d..166791f3f 100644 --- a/docs/SchemaAPI.md +++ b/docs/SchemaAPI.md @@ -30,7 +30,7 @@ import ( func main() { format := openapiclient.schema_retrieve_format_parameter("json") // SchemaRetrieveFormatParameter | (optional) - lang := openapiclient.schema_retrieve_lang_parameter("de") // SchemaRetrieveLangParameter | (optional) + lang := openapiclient.schema_retrieve_lang_parameter("cs") // SchemaRetrieveLangParameter | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/SchemaRetrieveLangParameter.md b/docs/SchemaRetrieveLangParameter.md index aed2056cb..ffba2fac9 100644 --- a/docs/SchemaRetrieveLangParameter.md +++ b/docs/SchemaRetrieveLangParameter.md @@ -3,6 +3,10 @@ ## Enum +* `CS` (value: `"cs"`) + +* `DA` (value: `"da"`) + * `DE` (value: `"de"`) * `EN` (value: `"en"`) @@ -11,8 +15,14 @@ * `FR` (value: `"fr"`) +* `IT` (value: `"it"`) + * `JA` (value: `"ja"`) +* `NL` (value: `"nl"`) + +* `PL` (value: `"pl"`) + * `PT` (value: `"pt"`) * `RU` (value: `"ru"`) diff --git a/docs/Script.md b/docs/Script.md index e8ce7b887..15be2ac2a 100644 --- a/docs/Script.md +++ b/docs/Script.md @@ -6,11 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Module** | **int32** | | [readonly] **Name** | **string** | | [readonly] -**Description** | **string** | | [readonly] +**Description** | **NullableString** | | [readonly] **Vars** | **interface{}** | | [readonly] -**Result** | [**Job**](Job.md) | | [readonly] +**Result** | [**BriefJob**](BriefJob.md) | | [readonly] **Display** | **string** | | [readonly] **IsExecutable** | **bool** | | [readonly] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewScript -`func NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool, ) *Script` +`func NewScript(id int32, url string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool, ) *Script` NewScript instantiates a new Script object This constructor will assign default values to properties that have it defined, @@ -73,6 +74,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Script) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Script) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Script) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Script) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetModule `func (o *Script) GetModule() int32` @@ -133,6 +159,16 @@ and a boolean to check if the value has been set. SetDescription sets Description field to given value. +### SetDescriptionNil + +`func (o *Script) SetDescriptionNil(b bool)` + + SetDescriptionNil sets the value for Description to be an explicit nil + +### UnsetDescription +`func (o *Script) UnsetDescription()` + +UnsetDescription ensures that no value is present for Description, not even an explicit nil ### GetVars `func (o *Script) GetVars() interface{}` @@ -165,20 +201,20 @@ SetVars sets Vars field to given value. UnsetVars ensures that no value is present for Vars, not even an explicit nil ### GetResult -`func (o *Script) GetResult() Job` +`func (o *Script) GetResult() BriefJob` GetResult returns the Result field if non-nil, zero value otherwise. ### GetResultOk -`func (o *Script) GetResultOk() (*Job, bool)` +`func (o *Script) GetResultOk() (*BriefJob, bool)` GetResultOk returns a tuple with the Result field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetResult -`func (o *Script) SetResult(v Job)` +`func (o *Script) SetResult(v BriefJob)` SetResult sets Result field to given value. diff --git a/docs/Service.md b/docs/Service.md index 230dccd71..905eca010 100644 --- a/docs/Service.md +++ b/docs/Service.md @@ -6,9 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachine**](VirtualMachine.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachine**](BriefVirtualMachine.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -79,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Service) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Service) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Service) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Service) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Service) GetDisplay() string` @@ -101,20 +127,20 @@ SetDisplay sets Display field to given value. ### GetDevice -`func (o *Service) GetDevice() Device` +`func (o *Service) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *Service) GetDeviceOk() (*Device, bool)` +`func (o *Service) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *Service) SetDevice(v Device)` +`func (o *Service) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -136,20 +162,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *Service) GetVirtualMachine() VirtualMachine` +`func (o *Service) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *Service) SetVirtualMachine(v VirtualMachine)` +`func (o *Service) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceRequest.md b/docs/ServiceRequest.md index bfabf2ad6..832124979 100644 --- a/docs/ServiceRequest.md +++ b/docs/ServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | Pointer to [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | [optional] **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *ServiceRequest) GetDevice() DeviceRequest` +`func (o *ServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *ServiceRequest) SetDevice(v DeviceRequest)` +`func (o *ServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/ServiceTemplate.md b/docs/ServiceTemplate.md index a83d4f5cb..f2889056e 100644 --- a/docs/ServiceTemplate.md +++ b/docs/ServiceTemplate.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Protocol** | Pointer to [**ServiceProtocol**](ServiceProtocol.md) | | [optional] @@ -76,6 +77,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *ServiceTemplate) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *ServiceTemplate) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *ServiceTemplate) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *ServiceTemplate) GetDisplay() string` diff --git a/docs/Site.md b/docs/Site.md index 0458e57f6..f24f899c9 100644 --- a/docs/Site.md +++ b/docs/Site.md @@ -6,16 +6,39 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatus**](LocationStatus.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegion**](BriefRegion.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroup**](BriefSiteGroup.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to [**[]ASN**](ASN.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**RackCount** | **int64** | | [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewSite -`func NewSite(id int32, url string, display string, name string, slug string, ) *Site` +`func NewSite(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, rackCount int64, ) *Site` NewSite instantiates a new Site object This constructor will assign default values to properties that have it defined, @@ -70,6 +93,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Site) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Site) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Site) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Site) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Site) GetDisplay() string` @@ -130,6 +178,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *Site) GetStatus() LocationStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Site) GetStatusOk() (*LocationStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Site) SetStatus(v LocationStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *Site) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *Site) GetRegion() BriefRegion` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *Site) GetRegionOk() (*BriefRegion, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *Site) SetRegion(v BriefRegion)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *Site) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *Site) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *Site) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *Site) GetGroup() BriefSiteGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Site) GetGroupOk() (*BriefSiteGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Site) SetGroup(v BriefSiteGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Site) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Site) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Site) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *Site) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Site) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Site) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Site) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Site) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Site) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *Site) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *Site) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *Site) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *Site) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *Site) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *Site) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *Site) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *Site) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *Site) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *Site) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *Site) GetDescription() string` @@ -155,6 +393,426 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *Site) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *Site) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *Site) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *Site) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *Site) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *Site) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *Site) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *Site) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *Site) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *Site) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *Site) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *Site) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *Site) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *Site) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *Site) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *Site) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *Site) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *Site) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *Site) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *Site) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *Site) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Site) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Site) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Site) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *Site) GetAsns() []ASN` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *Site) GetAsnsOk() (*[]ASN, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *Site) SetAsns(v []ASN)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *Site) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *Site) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Site) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Site) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Site) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Site) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Site) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Site) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Site) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Site) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Site) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Site) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Site) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Site) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Site) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Site) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Site) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Site) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Site) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Site) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Site) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Site) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Site) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Site) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Site) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Site) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetPrefixCount + +`func (o *Site) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Site) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Site) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Site) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetRackCount + +`func (o *Site) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Site) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Site) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + +### GetVirtualmachineCount + +`func (o *Site) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Site) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Site) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *Site) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *Site) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Site) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Site) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + +### HasVlanCount + +`func (o *Site) HasVlanCount() bool` + +HasVlanCount 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/docs/SiteGroup.md b/docs/SiteGroup.md index b97426cac..995319796 100644 --- a/docs/SiteGroup.md +++ b/docs/SiteGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *SiteGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *SiteGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *SiteGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *SiteGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *SiteGroup) GetDisplay() string` diff --git a/docs/SiteRequest.md b/docs/SiteRequest.md index b12c9721b..a4efb9544 100644 --- a/docs/SiteRequest.md +++ b/docs/SiteRequest.md @@ -6,7 +6,21 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Facility** | Pointer to **string** | Local facility ID or description | [optional] +**TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] +**PhysicalAddress** | Pointer to **string** | Physical location of the building | [optional] +**ShippingAddress** | Pointer to **string** | If different from the physical address | [optional] +**Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] +**Comments** | Pointer to **string** | | [optional] +**Asns** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +81,196 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetStatus + +`func (o *SiteRequest) GetStatus() LocationStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *SiteRequest) SetStatus(v LocationStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *SiteRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRegion + +`func (o *SiteRequest) GetRegion() BriefRegionRequest` + +GetRegion returns the Region field if non-nil, zero value otherwise. + +### GetRegionOk + +`func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` + +GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRegion + +`func (o *SiteRequest) SetRegion(v BriefRegionRequest)` + +SetRegion sets Region field to given value. + +### HasRegion + +`func (o *SiteRequest) HasRegion() bool` + +HasRegion returns a boolean if a field has been set. + +### SetRegionNil + +`func (o *SiteRequest) SetRegionNil(b bool)` + + SetRegionNil sets the value for Region to be an explicit nil + +### UnsetRegion +`func (o *SiteRequest) UnsetRegion()` + +UnsetRegion ensures that no value is present for Region, not even an explicit nil +### GetGroup + +`func (o *SiteRequest) GetGroup() BriefSiteGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *SiteRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *SiteRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *SiteRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetTenant + +`func (o *SiteRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *SiteRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *SiteRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *SiteRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *SiteRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetFacility + +`func (o *SiteRequest) GetFacility() string` + +GetFacility returns the Facility field if non-nil, zero value otherwise. + +### GetFacilityOk + +`func (o *SiteRequest) GetFacilityOk() (*string, bool)` + +GetFacilityOk returns a tuple with the Facility field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFacility + +`func (o *SiteRequest) SetFacility(v string)` + +SetFacility sets Facility field to given value. + +### HasFacility + +`func (o *SiteRequest) HasFacility() bool` + +HasFacility returns a boolean if a field has been set. + +### GetTimeZone + +`func (o *SiteRequest) GetTimeZone() string` + +GetTimeZone returns the TimeZone field if non-nil, zero value otherwise. + +### GetTimeZoneOk + +`func (o *SiteRequest) GetTimeZoneOk() (*string, bool)` + +GetTimeZoneOk returns a tuple with the TimeZone field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTimeZone + +`func (o *SiteRequest) SetTimeZone(v string)` + +SetTimeZone sets TimeZone field to given value. + +### HasTimeZone + +`func (o *SiteRequest) HasTimeZone() bool` + +HasTimeZone returns a boolean if a field has been set. + +### SetTimeZoneNil + +`func (o *SiteRequest) SetTimeZoneNil(b bool)` + + SetTimeZoneNil sets the value for TimeZone to be an explicit nil + +### UnsetTimeZone +`func (o *SiteRequest) UnsetTimeZone()` + +UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil ### GetDescription `func (o *SiteRequest) GetDescription() string` @@ -92,6 +296,226 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetPhysicalAddress + +`func (o *SiteRequest) GetPhysicalAddress() string` + +GetPhysicalAddress returns the PhysicalAddress field if non-nil, zero value otherwise. + +### GetPhysicalAddressOk + +`func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool)` + +GetPhysicalAddressOk returns a tuple with the PhysicalAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPhysicalAddress + +`func (o *SiteRequest) SetPhysicalAddress(v string)` + +SetPhysicalAddress sets PhysicalAddress field to given value. + +### HasPhysicalAddress + +`func (o *SiteRequest) HasPhysicalAddress() bool` + +HasPhysicalAddress returns a boolean if a field has been set. + +### GetShippingAddress + +`func (o *SiteRequest) GetShippingAddress() string` + +GetShippingAddress returns the ShippingAddress field if non-nil, zero value otherwise. + +### GetShippingAddressOk + +`func (o *SiteRequest) GetShippingAddressOk() (*string, bool)` + +GetShippingAddressOk returns a tuple with the ShippingAddress field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetShippingAddress + +`func (o *SiteRequest) SetShippingAddress(v string)` + +SetShippingAddress sets ShippingAddress field to given value. + +### HasShippingAddress + +`func (o *SiteRequest) HasShippingAddress() bool` + +HasShippingAddress returns a boolean if a field has been set. + +### GetLatitude + +`func (o *SiteRequest) GetLatitude() float64` + +GetLatitude returns the Latitude field if non-nil, zero value otherwise. + +### GetLatitudeOk + +`func (o *SiteRequest) GetLatitudeOk() (*float64, bool)` + +GetLatitudeOk returns a tuple with the Latitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLatitude + +`func (o *SiteRequest) SetLatitude(v float64)` + +SetLatitude sets Latitude field to given value. + +### HasLatitude + +`func (o *SiteRequest) HasLatitude() bool` + +HasLatitude returns a boolean if a field has been set. + +### SetLatitudeNil + +`func (o *SiteRequest) SetLatitudeNil(b bool)` + + SetLatitudeNil sets the value for Latitude to be an explicit nil + +### UnsetLatitude +`func (o *SiteRequest) UnsetLatitude()` + +UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +### GetLongitude + +`func (o *SiteRequest) GetLongitude() float64` + +GetLongitude returns the Longitude field if non-nil, zero value otherwise. + +### GetLongitudeOk + +`func (o *SiteRequest) GetLongitudeOk() (*float64, bool)` + +GetLongitudeOk returns a tuple with the Longitude field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLongitude + +`func (o *SiteRequest) SetLongitude(v float64)` + +SetLongitude sets Longitude field to given value. + +### HasLongitude + +`func (o *SiteRequest) HasLongitude() bool` + +HasLongitude returns a boolean if a field has been set. + +### SetLongitudeNil + +`func (o *SiteRequest) SetLongitudeNil(b bool)` + + SetLongitudeNil sets the value for Longitude to be an explicit nil + +### UnsetLongitude +`func (o *SiteRequest) UnsetLongitude()` + +UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +### GetComments + +`func (o *SiteRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *SiteRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *SiteRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *SiteRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetAsns + +`func (o *SiteRequest) GetAsns() []int32` + +GetAsns returns the Asns field if non-nil, zero value otherwise. + +### GetAsnsOk + +`func (o *SiteRequest) GetAsnsOk() (*[]int32, bool)` + +GetAsnsOk returns a tuple with the Asns field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAsns + +`func (o *SiteRequest) SetAsns(v []int32)` + +SetAsns sets Asns field to given value. + +### HasAsns + +`func (o *SiteRequest) HasAsns() bool` + +HasAsns returns a boolean if a field has been set. + +### GetTags + +`func (o *SiteRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *SiteRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *SiteRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *SiteRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *SiteRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *SiteRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *SiteRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *SiteRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Tag.md b/docs/Tag.md index 603faa5a0..1452f4343 100644 --- a/docs/Tag.md +++ b/docs/Tag.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tag) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tag) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tag) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Tag) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Tag) GetDisplay() string` diff --git a/docs/TenancyAPI.md b/docs/TenancyAPI.md index 0314e6397..0a292cac6 100644 --- a/docs/TenancyAPI.md +++ b/docs/TenancyAPI.md @@ -82,7 +82,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -146,7 +146,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -212,7 +212,7 @@ import ( ) func main() { - contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example"))} // []ContactAssignmentRequest | + contactAssignmentRequest := []openapiclient.ContactAssignmentRequest{*openapiclient.NewContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example"))} // []ContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -278,7 +278,7 @@ import ( ) func main() { - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -393,7 +393,7 @@ Name | Type | Description | Notes ## TenancyContactAssignmentsList -> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedContactAssignmentList TenancyContactAssignmentsList(ctx).ContactId(contactId).ContactIdN(contactIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Priority(priority).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -423,10 +423,10 @@ func main() { createdLte := []time.Time{time.Now()} // []time.Time | (optional) createdN := []time.Time{time.Now()} // []time.Time | (optional) createdByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -456,8 +456,7 @@ func main() { objectTypeIdN := int32(56) // int32 | (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) - priority := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) - priorityN := openapiclient.tenancy_contact_assignments_list_priority_parameter("inactive") // TenancyContactAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) + priority := openapiclient.circuits_circuit_group_assignments_list_priority_parameter("inactive") // CircuitsCircuitGroupAssignmentsListPriorityParameter | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | Contact role (slug) (optional) roleN := []string{"Inner_example"} // []string | Contact role (slug) (optional) @@ -469,7 +468,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Priority(priority).PriorityN(priorityN).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.TenancyAPI.TenancyContactAssignmentsList(context.Background()).ContactId(contactId).ContactIdN(contactIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).ObjectId(objectId).ObjectIdEmpty(objectIdEmpty).ObjectIdGt(objectIdGt).ObjectIdGte(objectIdGte).ObjectIdLt(objectIdLt).ObjectIdLte(objectIdLte).ObjectIdN(objectIdN).ObjectType(objectType).ObjectTypeN(objectTypeN).ObjectTypeId(objectTypeId).ObjectTypeIdN(objectTypeIdN).Offset(offset).Ordering(ordering).Priority(priority).Q(q).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `TenancyAPI.TenancyContactAssignmentsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -500,10 +499,10 @@ Name | Type | Description | Notes **createdLte** | [**[]time.Time**](time.Time.md) | | **createdN** | [**[]time.Time**](time.Time.md) | | **createdByRequest** | **string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -533,8 +532,7 @@ Name | Type | Description | Notes **objectTypeIdN** | **int32** | | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | - **priority** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | - **priorityN** | [**TenancyContactAssignmentsListPriorityParameter**](TenancyContactAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | + **priority** | [**CircuitsCircuitGroupAssignmentsListPriorityParameter**](CircuitsCircuitGroupAssignmentsListPriorityParameter.md) | * `primary` - Primary * `secondary` - Secondary * `tertiary` - Tertiary * `inactive` - Inactive | **q** | **string** | Search | **role** | **[]string** | Contact role (slug) | **roleN** | **[]string** | Contact role (slug) | @@ -726,7 +724,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this contact assignment. - writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewContactRequest("Name_example")) // WritableContactAssignmentRequest | + writableContactAssignmentRequest := *openapiclient.NewWritableContactAssignmentRequest("ObjectType_example", int64(123), *openapiclient.NewBriefContactRequest("Name_example")) // WritableContactAssignmentRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1128,10 +1126,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1223,10 +1221,10 @@ Other parameters are passed through a pointer to a apiTenancyContactGroupsListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Contact group (slug) | - **ancestorN** | **[]int32** | Contact group (slug) | - **ancestorId** | **[]int32** | Contact group (ID) | - **ancestorIdN** | **[]int32** | Contact group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -2655,10 +2653,10 @@ func main() { emailNie := []string{"Inner_example"} // []string | (optional) emailNiew := []string{"Inner_example"} // []string | (optional) emailNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Contact group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Contact group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Contact group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -2790,10 +2788,10 @@ Name | Type | Description | Notes **emailNie** | **[]string** | | **emailNiew** | **[]string** | | **emailNisw** | **[]string** | | - **group** | **[]int32** | Contact group (slug) | - **groupN** | **[]int32** | Contact group (slug) | - **groupId** | **[]int32** | Contact group (ID) | - **groupIdN** | **[]int32** | Contact group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3445,10 +3443,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - ancestorId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - ancestorIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3540,10 +3538,10 @@ Other parameters are passed through a pointer to a apiTenancyTenantGroupsListReq Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | Tenant group (slug) | - **ancestorN** | **[]int32** | Tenant group (slug) | - **ancestorId** | **[]int32** | Tenant group (ID) | - **ancestorIdN** | **[]int32** | Tenant group (ID) | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -4198,8 +4196,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4221,10 +4219,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupN := []int32{int32(123)} // []int32 | Tenant group (slug) (optional) - groupId := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) - groupIdN := []int32{int32(123)} // []int32 | Tenant group (ID) (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -4295,8 +4293,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4318,10 +4316,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | Tenant group (slug) | - **groupN** | **[]int32** | Tenant group (slug) | - **groupId** | **[]int32** | Tenant group (ID) | - **groupIdN** | **[]int32** | Tenant group (ID) | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | diff --git a/docs/Tenant.md b/docs/Tenant.md index 68d998dce..7f7851df9 100644 --- a/docs/Tenant.md +++ b/docs/Tenant.md @@ -6,16 +6,33 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroup**](BriefTenantGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**CircuitCount** | **int64** | | [readonly] +**DeviceCount** | Pointer to **int64** | | [optional] [readonly] +**IpaddressCount** | **int64** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] +**RackCount** | **int64** | | [readonly] +**SiteCount** | **int64** | | [readonly] +**VirtualmachineCount** | Pointer to **int64** | | [optional] [readonly] +**VlanCount** | Pointer to **int64** | | [optional] [readonly] +**VrfCount** | **int64** | | [readonly] +**ClusterCount** | **int64** | | [readonly] ## Methods ### NewTenant -`func NewTenant(id int32, url string, display string, name string, slug string, ) *Tenant` +`func NewTenant(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, rackCount int64, siteCount int64, vrfCount int64, clusterCount int64, ) *Tenant` NewTenant instantiates a new Tenant object This constructor will assign default values to properties that have it defined, @@ -70,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tenant) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tenant) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tenant) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Tenant) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Tenant) GetDisplay() string` @@ -130,6 +172,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *Tenant) GetGroup() BriefTenantGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tenant) SetGroup(v BriefTenantGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tenant) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tenant) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tenant) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *Tenant) GetDescription() string` @@ -155,6 +232,361 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tenant) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tenant) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tenant) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tenant) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tenant) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tenant) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Tenant) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tenant) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tenant) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tenant) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Tenant) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tenant) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tenant) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tenant) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Tenant) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Tenant) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tenant) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tenant) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Tenant) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Tenant) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tenant) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetCircuitCount + +`func (o *Tenant) GetCircuitCount() int64` + +GetCircuitCount returns the CircuitCount field if non-nil, zero value otherwise. + +### GetCircuitCountOk + +`func (o *Tenant) GetCircuitCountOk() (*int64, bool)` + +GetCircuitCountOk returns a tuple with the CircuitCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCircuitCount + +`func (o *Tenant) SetCircuitCount(v int64)` + +SetCircuitCount sets CircuitCount field to given value. + + +### GetDeviceCount + +`func (o *Tenant) GetDeviceCount() int64` + +GetDeviceCount returns the DeviceCount field if non-nil, zero value otherwise. + +### GetDeviceCountOk + +`func (o *Tenant) GetDeviceCountOk() (*int64, bool)` + +GetDeviceCountOk returns a tuple with the DeviceCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDeviceCount + +`func (o *Tenant) SetDeviceCount(v int64)` + +SetDeviceCount sets DeviceCount field to given value. + +### HasDeviceCount + +`func (o *Tenant) HasDeviceCount() bool` + +HasDeviceCount returns a boolean if a field has been set. + +### GetIpaddressCount + +`func (o *Tenant) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *Tenant) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *Tenant) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + +### GetPrefixCount + +`func (o *Tenant) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *Tenant) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *Tenant) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *Tenant) HasPrefixCount() bool` + +HasPrefixCount returns a boolean if a field has been set. + +### GetRackCount + +`func (o *Tenant) GetRackCount() int64` + +GetRackCount returns the RackCount field if non-nil, zero value otherwise. + +### GetRackCountOk + +`func (o *Tenant) GetRackCountOk() (*int64, bool)` + +GetRackCountOk returns a tuple with the RackCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRackCount + +`func (o *Tenant) SetRackCount(v int64)` + +SetRackCount sets RackCount field to given value. + + +### GetSiteCount + +`func (o *Tenant) GetSiteCount() int64` + +GetSiteCount returns the SiteCount field if non-nil, zero value otherwise. + +### GetSiteCountOk + +`func (o *Tenant) GetSiteCountOk() (*int64, bool)` + +GetSiteCountOk returns a tuple with the SiteCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSiteCount + +`func (o *Tenant) SetSiteCount(v int64)` + +SetSiteCount sets SiteCount field to given value. + + +### GetVirtualmachineCount + +`func (o *Tenant) GetVirtualmachineCount() int64` + +GetVirtualmachineCount returns the VirtualmachineCount field if non-nil, zero value otherwise. + +### GetVirtualmachineCountOk + +`func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool)` + +GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVirtualmachineCount + +`func (o *Tenant) SetVirtualmachineCount(v int64)` + +SetVirtualmachineCount sets VirtualmachineCount field to given value. + +### HasVirtualmachineCount + +`func (o *Tenant) HasVirtualmachineCount() bool` + +HasVirtualmachineCount returns a boolean if a field has been set. + +### GetVlanCount + +`func (o *Tenant) GetVlanCount() int64` + +GetVlanCount returns the VlanCount field if non-nil, zero value otherwise. + +### GetVlanCountOk + +`func (o *Tenant) GetVlanCountOk() (*int64, bool)` + +GetVlanCountOk returns a tuple with the VlanCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVlanCount + +`func (o *Tenant) SetVlanCount(v int64)` + +SetVlanCount sets VlanCount field to given value. + +### HasVlanCount + +`func (o *Tenant) HasVlanCount() bool` + +HasVlanCount returns a boolean if a field has been set. + +### GetVrfCount + +`func (o *Tenant) GetVrfCount() int64` + +GetVrfCount returns the VrfCount field if non-nil, zero value otherwise. + +### GetVrfCountOk + +`func (o *Tenant) GetVrfCountOk() (*int64, bool)` + +GetVrfCountOk returns a tuple with the VrfCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetVrfCount + +`func (o *Tenant) SetVrfCount(v int64)` + +SetVrfCount sets VrfCount field to given value. + + +### GetClusterCount + +`func (o *Tenant) GetClusterCount() int64` + +GetClusterCount returns the ClusterCount field if non-nil, zero value otherwise. + +### GetClusterCountOk + +`func (o *Tenant) GetClusterCountOk() (*int64, bool)` + +GetClusterCountOk returns a tuple with the ClusterCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetClusterCount + +`func (o *Tenant) SetClusterCount(v int64)` + +SetClusterCount sets ClusterCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TenantGroup.md b/docs/TenantGroup.md index 22a3d41c5..296b839ab 100644 --- a/docs/TenantGroup.md +++ b/docs/TenantGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TenantGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TenantGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TenantGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TenantGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TenantGroup) GetDisplay() string` diff --git a/docs/TenantRequest.md b/docs/TenantRequest.md index 7a4881f71..948e6d6e2 100644 --- a/docs/TenantRequest.md +++ b/docs/TenantRequest.md @@ -6,7 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | +**Group** | Pointer to [**NullableBriefTenantGroupRequest**](BriefTenantGroupRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -67,6 +71,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetGroup + +`func (o *TenantRequest) GetGroup() BriefTenantGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TenantRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TenantRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TenantRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetDescription `func (o *TenantRequest) GetDescription() string` @@ -92,6 +131,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TenantRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TenantRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TenantRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TenantRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TenantRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TenantRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TenantRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TenantRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TenantRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TenantRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *TenantRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TenantRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/Token.md b/docs/Token.md index d39896b1e..dcc114f8c 100644 --- a/docs/Token.md +++ b/docs/Token.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | +**User** | [**BriefUser**](BriefUser.md) | | **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewToken -`func NewToken(id int32, url string, display string, user User, created time.Time, ) *Token` +`func NewToken(id int32, url string, display string, user BriefUser, created time.Time, ) *Token` NewToken instantiates a new Token object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Token) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Token) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Token) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Token) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Token) GetDisplay() string` @@ -96,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *Token) GetUser() User` +`func (o *Token) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *Token) GetUserOk() (*User, bool)` +`func (o *Token) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *Token) SetUser(v User)` +`func (o *Token) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/TokenProvision.md b/docs/TokenProvision.md index 8b0aa1be2..bc2a46d9e 100644 --- a/docs/TokenProvision.md +++ b/docs/TokenProvision.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**User** | [**User**](User.md) | | [readonly] +**User** | [**BriefUser**](BriefUser.md) | | [readonly] **Created** | **time.Time** | | [readonly] **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | **time.Time** | | [readonly] @@ -19,7 +20,7 @@ Name | Type | Description | Notes ### NewTokenProvision -`func NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` +`func NewTokenProvision(id int32, url string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string, ) *TokenProvision` NewTokenProvision instantiates a new TokenProvision object This constructor will assign default values to properties that have it defined, @@ -74,6 +75,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TokenProvision) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TokenProvision) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TokenProvision) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TokenProvision) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TokenProvision) GetDisplay() string` @@ -96,20 +122,20 @@ SetDisplay sets Display field to given value. ### GetUser -`func (o *TokenProvision) GetUser() User` +`func (o *TokenProvision) GetUser() BriefUser` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenProvision) GetUserOk() (*User, bool)` +`func (o *TokenProvision) GetUserOk() (*BriefUser, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenProvision) SetUser(v User)` +`func (o *TokenProvision) SetUser(v BriefUser)` SetUser sets User field to given value. diff --git a/docs/TokenRequest.md b/docs/TokenRequest.md index 06de41a6d..b34549c9c 100644 --- a/docs/TokenRequest.md +++ b/docs/TokenRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**User** | [**UserRequest**](UserRequest.md) | | +**User** | [**BriefUserRequest**](BriefUserRequest.md) | | **Expires** | Pointer to **NullableTime** | | [optional] **LastUsed** | Pointer to **NullableTime** | | [optional] **Key** | Pointer to **string** | | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewTokenRequest -`func NewTokenRequest(user UserRequest, ) *TokenRequest` +`func NewTokenRequest(user BriefUserRequest, ) *TokenRequest` NewTokenRequest instantiates a new TokenRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetUser -`func (o *TokenRequest) GetUser() UserRequest` +`func (o *TokenRequest) GetUser() BriefUserRequest` GetUser returns the User field if non-nil, zero value otherwise. ### GetUserOk -`func (o *TokenRequest) GetUserOk() (*UserRequest, bool)` +`func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool)` GetUserOk returns a tuple with the User field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUser -`func (o *TokenRequest) SetUser(v UserRequest)` +`func (o *TokenRequest) SetUser(v BriefUserRequest)` SetUser sets User field to given value. diff --git a/docs/Tunnel.md b/docs/Tunnel.md index 0ed442472..d8b72d17f 100644 --- a/docs/Tunnel.md +++ b/docs/Tunnel.md @@ -6,15 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Status** | [**TunnelStatus**](TunnelStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroup**](BriefTunnelGroup.md) | | [optional] +**Encapsulation** | [**TunnelEncapsulation**](TunnelEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfile**](BriefIPSecProfile.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**TerminationsCount** | **int64** | | [readonly] ## Methods ### NewTunnel -`func NewTunnel(id int32, url string, display string, name string, ) *Tunnel` +`func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64, ) *Tunnel` NewTunnel instantiates a new Tunnel object This constructor will assign default values to properties that have it defined, @@ -69,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Tunnel) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Tunnel) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Tunnel) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Tunnel) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Tunnel) GetDisplay() string` @@ -109,6 +147,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *Tunnel) GetStatus() TunnelStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *Tunnel) SetStatus(v TunnelStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *Tunnel) GetGroup() BriefTunnelGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *Tunnel) SetGroup(v BriefTunnelGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *Tunnel) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *Tunnel) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *Tunnel) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *Tunnel) GetEncapsulation() TunnelEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *Tunnel) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *Tunnel) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *Tunnel) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *Tunnel) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *Tunnel) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *Tunnel) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *Tunnel) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *Tunnel) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *Tunnel) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *Tunnel) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *Tunnel) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *Tunnel) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *Tunnel) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *Tunnel) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *Tunnel) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *Tunnel) GetDescription() string` @@ -134,6 +352,161 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *Tunnel) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *Tunnel) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *Tunnel) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *Tunnel) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *Tunnel) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *Tunnel) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *Tunnel) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *Tunnel) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *Tunnel) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *Tunnel) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *Tunnel) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *Tunnel) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *Tunnel) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *Tunnel) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *Tunnel) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *Tunnel) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *Tunnel) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *Tunnel) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *Tunnel) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *Tunnel) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *Tunnel) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetTerminationsCount + +`func (o *Tunnel) GetTerminationsCount() int64` + +GetTerminationsCount returns the TerminationsCount field if non-nil, zero value otherwise. + +### GetTerminationsCountOk + +`func (o *Tunnel) GetTerminationsCountOk() (*int64, bool)` + +GetTerminationsCountOk returns a tuple with the TerminationsCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTerminationsCount + +`func (o *Tunnel) SetTerminationsCount(v int64)` + +SetTerminationsCount sets TerminationsCount field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/TunnelGroup.md b/docs/TunnelGroup.md index 696dd4040..e90f22c32 100644 --- a/docs/TunnelGroup.md +++ b/docs/TunnelGroup.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TunnelGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TunnelGroup) GetDisplay() string` diff --git a/docs/TunnelRequest.md b/docs/TunnelRequest.md index 03d4cda24..37d929b18 100644 --- a/docs/TunnelRequest.md +++ b/docs/TunnelRequest.md @@ -5,13 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Status** | [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] +**Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods ### NewTunnelRequest -`func NewTunnelRequest(name string, ) *TunnelRequest` +`func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation, ) *TunnelRequest` NewTunnelRequest instantiates a new TunnelRequest object This constructor will assign default values to properties that have it defined, @@ -46,6 +55,186 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetStatus + +`func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus)` + +SetStatus sets Status field to given value. + + +### GetGroup + +`func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *TunnelRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *TunnelRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *TunnelRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil +### GetEncapsulation + +`func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation` + +GetEncapsulation returns the Encapsulation field if non-nil, zero value otherwise. + +### GetEncapsulationOk + +`func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool)` + +GetEncapsulationOk returns a tuple with the Encapsulation field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEncapsulation + +`func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation)` + +SetEncapsulation sets Encapsulation field to given value. + + +### GetIpsecProfile + +`func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` + +GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. + +### GetIpsecProfileOk + +`func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` + +GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpsecProfile + +`func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` + +SetIpsecProfile sets IpsecProfile field to given value. + +### HasIpsecProfile + +`func (o *TunnelRequest) HasIpsecProfile() bool` + +HasIpsecProfile returns a boolean if a field has been set. + +### SetIpsecProfileNil + +`func (o *TunnelRequest) SetIpsecProfileNil(b bool)` + + SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil + +### UnsetIpsecProfile +`func (o *TunnelRequest) UnsetIpsecProfile()` + +UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +### GetTenant + +`func (o *TunnelRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *TunnelRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *TunnelRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *TunnelRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *TunnelRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetTunnelId + +`func (o *TunnelRequest) GetTunnelId() int64` + +GetTunnelId returns the TunnelId field if non-nil, zero value otherwise. + +### GetTunnelIdOk + +`func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool)` + +GetTunnelIdOk returns a tuple with the TunnelId field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTunnelId + +`func (o *TunnelRequest) SetTunnelId(v int64)` + +SetTunnelId sets TunnelId field to given value. + +### HasTunnelId + +`func (o *TunnelRequest) HasTunnelId() bool` + +HasTunnelId returns a boolean if a field has been set. + +### SetTunnelIdNil + +`func (o *TunnelRequest) SetTunnelIdNil(b bool)` + + SetTunnelIdNil sets the value for TunnelId to be an explicit nil + +### UnsetTunnelId +`func (o *TunnelRequest) UnsetTunnelId()` + +UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil ### GetDescription `func (o *TunnelRequest) GetDescription() string` @@ -71,6 +260,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *TunnelRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *TunnelRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *TunnelRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *TunnelRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *TunnelRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *TunnelRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *TunnelRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *TunnelRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *TunnelRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *TunnelRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *TunnelRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *TunnelRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/TunnelTermination.md b/docs/TunnelTermination.md index 1804e64d5..53b4aa769 100644 --- a/docs/TunnelTermination.md +++ b/docs/TunnelTermination.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**Tunnel** | [**Tunnel**](Tunnel.md) | | +**Tunnel** | [**BriefTunnel**](BriefTunnel.md) | | **Role** | [**TunnelTerminationRole**](TunnelTerminationRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | **Termination** | **interface{}** | | [readonly] -**OutsideIp** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -22,7 +23,7 @@ Name | Type | Description | Notes ### NewTunnelTermination -`func NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` +`func NewTunnelTermination(id int32, url string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime, ) *TunnelTermination` NewTunnelTermination instantiates a new TunnelTermination object This constructor will assign default values to properties that have it defined, @@ -77,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *TunnelTermination) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *TunnelTermination) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *TunnelTermination) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *TunnelTermination) GetDisplay() string` @@ -99,20 +125,20 @@ SetDisplay sets Display field to given value. ### GetTunnel -`func (o *TunnelTermination) GetTunnel() Tunnel` +`func (o *TunnelTermination) GetTunnel() BriefTunnel` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool)` +`func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTermination) SetTunnel(v Tunnel)` +`func (o *TunnelTermination) SetTunnel(v BriefTunnel)` SetTunnel sets Tunnel field to given value. @@ -219,20 +245,20 @@ SetTermination sets Termination field to given value. UnsetTermination ensures that no value is present for Termination, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTermination) GetOutsideIp() IPAddress` +`func (o *TunnelTermination) GetOutsideIp() BriefIPAddress` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool)` +`func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTermination) SetOutsideIp(v IPAddress)` +`func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/TunnelTerminationRequest.md b/docs/TunnelTerminationRequest.md index e684cfe20..5466a217e 100644 --- a/docs/TunnelTerminationRequest.md +++ b/docs/TunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewTunnelTerminationRequest -`func NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` +`func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64, ) *TunnelTerminationRequest` NewTunnelTerminationRequest instantiates a new TunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -123,20 +123,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/User.md b/docs/User.md index 5312320e3..8d3b943cd 100644 --- a/docs/User.md +++ b/docs/User.md @@ -6,8 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to [**[]Group**](Group.md) | | [optional] +**Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] ## Methods @@ -68,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *User) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *User) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *User) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *User) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *User) GetDisplay() string` @@ -108,6 +143,241 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetFirstName + +`func (o *User) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *User) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *User) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *User) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *User) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *User) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *User) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *User) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *User) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *User) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *User) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *User) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *User) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *User) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *User) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *User) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *User) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *User) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *User) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *User) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *User) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *User) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *User) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *User) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *User) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *User) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *User) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *User) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *User) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *User) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *User) GetGroups() []Group` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *User) GetGroupsOk() (*[]Group, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *User) SetGroups(v []Group)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *User) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *User) GetPermissions() []ObjectPermission` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *User) GetPermissionsOk() (*[]ObjectPermission, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *User) SetPermissions(v []ObjectPermission)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *User) HasPermissions() bool` + +HasPermissions 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/docs/UserRequest.md b/docs/UserRequest.md index 58e87259f..03e64cb5f 100644 --- a/docs/UserRequest.md +++ b/docs/UserRequest.md @@ -5,12 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Username** | **string** | Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. | +**Password** | **string** | | +**FirstName** | Pointer to **string** | | [optional] +**LastName** | Pointer to **string** | | [optional] +**Email** | Pointer to **string** | | [optional] +**IsStaff** | Pointer to **bool** | Designates whether the user can log into this admin site. | [optional] +**IsActive** | Pointer to **bool** | Designates whether this user should be treated as active. Unselect this instead of deleting accounts. | [optional] +**DateJoined** | Pointer to **time.Time** | | [optional] +**LastLogin** | Pointer to **NullableTime** | | [optional] +**Groups** | Pointer to **[]int32** | | [optional] +**Permissions** | Pointer to **[]int32** | | [optional] ## Methods ### NewUserRequest -`func NewUserRequest(username string, ) *UserRequest` +`func NewUserRequest(username string, password string, ) *UserRequest` NewUserRequest instantiates a new UserRequest object This constructor will assign default values to properties that have it defined, @@ -45,6 +55,261 @@ and a boolean to check if the value has been set. SetUsername sets Username field to given value. +### GetPassword + +`func (o *UserRequest) GetPassword() string` + +GetPassword returns the Password field if non-nil, zero value otherwise. + +### GetPasswordOk + +`func (o *UserRequest) GetPasswordOk() (*string, bool)` + +GetPasswordOk returns a tuple with the Password field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPassword + +`func (o *UserRequest) SetPassword(v string)` + +SetPassword sets Password field to given value. + + +### GetFirstName + +`func (o *UserRequest) GetFirstName() string` + +GetFirstName returns the FirstName field if non-nil, zero value otherwise. + +### GetFirstNameOk + +`func (o *UserRequest) GetFirstNameOk() (*string, bool)` + +GetFirstNameOk returns a tuple with the FirstName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFirstName + +`func (o *UserRequest) SetFirstName(v string)` + +SetFirstName sets FirstName field to given value. + +### HasFirstName + +`func (o *UserRequest) HasFirstName() bool` + +HasFirstName returns a boolean if a field has been set. + +### GetLastName + +`func (o *UserRequest) GetLastName() string` + +GetLastName returns the LastName field if non-nil, zero value otherwise. + +### GetLastNameOk + +`func (o *UserRequest) GetLastNameOk() (*string, bool)` + +GetLastNameOk returns a tuple with the LastName field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastName + +`func (o *UserRequest) SetLastName(v string)` + +SetLastName sets LastName field to given value. + +### HasLastName + +`func (o *UserRequest) HasLastName() bool` + +HasLastName returns a boolean if a field has been set. + +### GetEmail + +`func (o *UserRequest) GetEmail() string` + +GetEmail returns the Email field if non-nil, zero value otherwise. + +### GetEmailOk + +`func (o *UserRequest) GetEmailOk() (*string, bool)` + +GetEmailOk returns a tuple with the Email field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEmail + +`func (o *UserRequest) SetEmail(v string)` + +SetEmail sets Email field to given value. + +### HasEmail + +`func (o *UserRequest) HasEmail() bool` + +HasEmail returns a boolean if a field has been set. + +### GetIsStaff + +`func (o *UserRequest) GetIsStaff() bool` + +GetIsStaff returns the IsStaff field if non-nil, zero value otherwise. + +### GetIsStaffOk + +`func (o *UserRequest) GetIsStaffOk() (*bool, bool)` + +GetIsStaffOk returns a tuple with the IsStaff field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsStaff + +`func (o *UserRequest) SetIsStaff(v bool)` + +SetIsStaff sets IsStaff field to given value. + +### HasIsStaff + +`func (o *UserRequest) HasIsStaff() bool` + +HasIsStaff returns a boolean if a field has been set. + +### GetIsActive + +`func (o *UserRequest) GetIsActive() bool` + +GetIsActive returns the IsActive field if non-nil, zero value otherwise. + +### GetIsActiveOk + +`func (o *UserRequest) GetIsActiveOk() (*bool, bool)` + +GetIsActiveOk returns a tuple with the IsActive field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIsActive + +`func (o *UserRequest) SetIsActive(v bool)` + +SetIsActive sets IsActive field to given value. + +### HasIsActive + +`func (o *UserRequest) HasIsActive() bool` + +HasIsActive returns a boolean if a field has been set. + +### GetDateJoined + +`func (o *UserRequest) GetDateJoined() time.Time` + +GetDateJoined returns the DateJoined field if non-nil, zero value otherwise. + +### GetDateJoinedOk + +`func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool)` + +GetDateJoinedOk returns a tuple with the DateJoined field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDateJoined + +`func (o *UserRequest) SetDateJoined(v time.Time)` + +SetDateJoined sets DateJoined field to given value. + +### HasDateJoined + +`func (o *UserRequest) HasDateJoined() bool` + +HasDateJoined returns a boolean if a field has been set. + +### GetLastLogin + +`func (o *UserRequest) GetLastLogin() time.Time` + +GetLastLogin returns the LastLogin field if non-nil, zero value otherwise. + +### GetLastLoginOk + +`func (o *UserRequest) GetLastLoginOk() (*time.Time, bool)` + +GetLastLoginOk returns a tuple with the LastLogin field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastLogin + +`func (o *UserRequest) SetLastLogin(v time.Time)` + +SetLastLogin sets LastLogin field to given value. + +### HasLastLogin + +`func (o *UserRequest) HasLastLogin() bool` + +HasLastLogin returns a boolean if a field has been set. + +### SetLastLoginNil + +`func (o *UserRequest) SetLastLoginNil(b bool)` + + SetLastLoginNil sets the value for LastLogin to be an explicit nil + +### UnsetLastLogin +`func (o *UserRequest) UnsetLastLogin()` + +UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +### GetGroups + +`func (o *UserRequest) GetGroups() []int32` + +GetGroups returns the Groups field if non-nil, zero value otherwise. + +### GetGroupsOk + +`func (o *UserRequest) GetGroupsOk() (*[]int32, bool)` + +GetGroupsOk returns a tuple with the Groups field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroups + +`func (o *UserRequest) SetGroups(v []int32)` + +SetGroups sets Groups field to given value. + +### HasGroups + +`func (o *UserRequest) HasGroups() bool` + +HasGroups returns a boolean if a field has been set. + +### GetPermissions + +`func (o *UserRequest) GetPermissions() []int32` + +GetPermissions returns the Permissions field if non-nil, zero value otherwise. + +### GetPermissionsOk + +`func (o *UserRequest) GetPermissionsOk() (*[]int32, bool)` + +GetPermissionsOk returns a tuple with the Permissions field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPermissions + +`func (o *UserRequest) SetPermissions(v []int32)` + +SetPermissions sets Permissions field to given value. + +### HasPermissions + +`func (o *UserRequest) HasPermissions() bool` + +HasPermissions 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/docs/UsersAPI.md b/docs/UsersAPI.md index 2da4d42da..114471722 100644 --- a/docs/UsersAPI.md +++ b/docs/UsersAPI.md @@ -438,7 +438,7 @@ Name | Type | Description | Notes ## UsersGroupsList -> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() +> PaginatedGroupList UsersGroupsList(ctx).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() @@ -487,6 +487,8 @@ func main() { nameNie := []string{"Inner_example"} // []string | (optional) nameNiew := []string{"Inner_example"} // []string | (optional) nameNisw := []string{"Inner_example"} // []string | (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -497,7 +499,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() + resp, r, err := apiClient.UsersAPI.UsersGroupsList(context.Background()).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Limit(limit).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).UserId(userId).UserIdN(userIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersGroupsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -548,6 +550,8 @@ Name | Type | Description | Notes **nameNie** | **[]string** | | **nameNiew** | **[]string** | | **nameNisw** | **[]string** | | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -1537,7 +1541,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1601,7 +1605,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1667,7 +1671,7 @@ import ( ) func main() { - tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example"))} // []TokenRequest | + tokenRequest := []openapiclient.TokenRequest{*openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example"))} // []TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1733,7 +1737,7 @@ import ( ) func main() { - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2243,7 +2247,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this token. - tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewUserRequest("Username_example")) // TokenRequest | + tokenRequest := *openapiclient.NewTokenRequest(*openapiclient.NewBriefUserRequest("Username_example")) // TokenRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2314,7 +2318,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2378,7 +2382,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2444,7 +2448,7 @@ import ( ) func main() { - userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example")} // []UserRequest | + userRequest := []openapiclient.UserRequest{*openapiclient.NewUserRequest("Username_example", "Password_example")} // []UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2510,7 +2514,7 @@ import ( ) func main() { - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2625,7 +2629,7 @@ Name | Type | Description | Notes ## UsersUsersList -> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() +> PaginatedUserList UsersUsersList(ctx).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() @@ -2707,6 +2711,8 @@ func main() { lastNameNiew := []string{"Inner_example"} // []string | (optional) lastNameNisw := []string{"Inner_example"} // []string | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) + notificationGroupId := []int32{int32(123)} // []int32 | Notification group (ID) (optional) + notificationGroupIdN := []int32{int32(123)} // []int32 | Notification group (ID) (optional) offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) permissionId := []int32{int32(123)} // []int32 | Permission (ID) (optional) @@ -2726,7 +2732,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() + resp, r, err := apiClient.UsersAPI.UsersUsersList(context.Background()).DateJoined(dateJoined).DateJoinedEmpty(dateJoinedEmpty).DateJoinedGt(dateJoinedGt).DateJoinedGte(dateJoinedGte).DateJoinedLt(dateJoinedLt).DateJoinedLte(dateJoinedLte).DateJoinedN(dateJoinedN).Email(email).EmailEmpty(emailEmpty).EmailIc(emailIc).EmailIe(emailIe).EmailIew(emailIew).EmailIsw(emailIsw).EmailN(emailN).EmailNic(emailNic).EmailNie(emailNie).EmailNiew(emailNiew).EmailNisw(emailNisw).FirstName(firstName).FirstNameEmpty(firstNameEmpty).FirstNameIc(firstNameIc).FirstNameIe(firstNameIe).FirstNameIew(firstNameIew).FirstNameIsw(firstNameIsw).FirstNameN(firstNameN).FirstNameNic(firstNameNic).FirstNameNie(firstNameNie).FirstNameNiew(firstNameNiew).FirstNameNisw(firstNameNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IsActive(isActive).IsStaff(isStaff).IsSuperuser(isSuperuser).LastLogin(lastLogin).LastLoginEmpty(lastLoginEmpty).LastLoginGt(lastLoginGt).LastLoginGte(lastLoginGte).LastLoginLt(lastLoginLt).LastLoginLte(lastLoginLte).LastLoginN(lastLoginN).LastName(lastName).LastNameEmpty(lastNameEmpty).LastNameIc(lastNameIc).LastNameIe(lastNameIe).LastNameIew(lastNameIew).LastNameIsw(lastNameIsw).LastNameN(lastNameN).LastNameNic(lastNameNic).LastNameNie(lastNameNie).LastNameNiew(lastNameNiew).LastNameNisw(lastNameNisw).Limit(limit).NotificationGroupId(notificationGroupId).NotificationGroupIdN(notificationGroupIdN).Offset(offset).Ordering(ordering).PermissionId(permissionId).PermissionIdN(permissionIdN).Q(q).Username(username).UsernameEmpty(usernameEmpty).UsernameIc(usernameIc).UsernameIe(usernameIe).UsernameIew(usernameIew).UsernameIsw(usernameIsw).UsernameN(usernameN).UsernameNic(usernameNic).UsernameNie(usernameNie).UsernameNiew(usernameNiew).UsernameNisw(usernameNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `UsersAPI.UsersUsersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2809,6 +2815,8 @@ Name | Type | Description | Notes **lastNameNiew** | **[]string** | | **lastNameNisw** | **[]string** | | **limit** | **int32** | Number of results to return per page. | + **notificationGroupId** | **[]int32** | Notification group (ID) | + **notificationGroupIdN** | **[]int32** | Notification group (ID) | **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **permissionId** | **[]int32** | Permission (ID) | @@ -3008,7 +3016,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this user. - userRequest := *openapiclient.NewUserRequest("Username_example") // UserRequest | + userRequest := *openapiclient.NewUserRequest("Username_example", "Password_example") // UserRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/VLAN.md b/docs/VLAN.md index 81cee5529..6e376df0e 100644 --- a/docs/VLAN.md +++ b/docs/VLAN.md @@ -6,16 +6,29 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroup**](BriefVLANGroup.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Status** | Pointer to [**IPRangeStatus**](IPRangeStatus.md) | | [optional] +**Role** | Pointer to [**NullableBriefRole**](BriefRole.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVLAN -`func NewVLAN(id int32, url string, display string, vid int32, name string, ) *VLAN` +`func NewVLAN(id int32, url string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, ) *VLAN` NewVLAN instantiates a new VLAN object This constructor will assign default values to properties that have it defined, @@ -70,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VLAN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VLAN) GetDisplay() string` @@ -90,6 +128,76 @@ and a boolean to check if the value has been set. SetDisplay sets Display field to given value. +### GetSite + +`func (o *VLAN) GetSite() BriefSite` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLAN) GetSiteOk() (*BriefSite, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLAN) SetSite(v BriefSite)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLAN) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLAN) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLAN) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLAN) GetGroup() BriefVLANGroup` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLAN) SetGroup(v BriefVLANGroup)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLAN) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLAN) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLAN) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLAN) GetVid() int32` @@ -130,6 +238,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLAN) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLAN) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VLAN) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLAN) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLAN) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLAN) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLAN) GetStatus() IPRangeStatus` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VLAN) SetStatus(v IPRangeStatus)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLAN) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLAN) GetRole() BriefRole` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLAN) GetRoleOk() (*BriefRole, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *VLAN) SetRole(v BriefRole)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLAN) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLAN) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLAN) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLAN) GetDescription() string` @@ -155,6 +358,196 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VLAN) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLAN) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLAN) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLAN) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetL2vpnTermination + +`func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination` + +GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. + +### GetL2vpnTerminationOk + +`func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` + +GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetL2vpnTermination + +`func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination)` + +SetL2vpnTermination sets L2vpnTermination field to given value. + + +### SetL2vpnTerminationNil + +`func (o *VLAN) SetL2vpnTerminationNil(b bool)` + + SetL2vpnTerminationNil sets the value for L2vpnTermination to be an explicit nil + +### UnsetL2vpnTermination +`func (o *VLAN) UnsetL2vpnTermination()` + +UnsetL2vpnTermination ensures that no value is present for L2vpnTermination, not even an explicit nil +### GetTags + +`func (o *VLAN) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLAN) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VLAN) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLAN) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLAN) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLAN) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VLAN) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLAN) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VLAN) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VLAN) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VLAN) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VLAN) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VLAN) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VLAN) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VLAN) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VLAN) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VLAN) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetPrefixCount + +`func (o *VLAN) GetPrefixCount() int64` + +GetPrefixCount returns the PrefixCount field if non-nil, zero value otherwise. + +### GetPrefixCountOk + +`func (o *VLAN) GetPrefixCountOk() (*int64, bool)` + +GetPrefixCountOk returns a tuple with the PrefixCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetPrefixCount + +`func (o *VLAN) SetPrefixCount(v int64)` + +SetPrefixCount sets PrefixCount field to given value. + +### HasPrefixCount + +`func (o *VLAN) HasPrefixCount() bool` + +HasPrefixCount 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/docs/VLANGroup.md b/docs/VLANGroup.md index b0b4f79b4..4e96cde9e 100644 --- a/docs/VLANGroup.md +++ b/docs/VLANGroup.md @@ -6,14 +6,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] **Scope** | **interface{}** | | [readonly] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -81,6 +80,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VLANGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VLANGroup) GetDisplay() string` @@ -241,56 +265,6 @@ SetScope sets Scope field to given value. `func (o *VLANGroup) UnsetScope()` UnsetScope ensures that no value is present for Scope, not even an explicit nil -### GetMinVid - -`func (o *VLANGroup) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroup) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroup) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroup) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroup) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroup) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroup) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroup) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroup) GetDescription() string` diff --git a/docs/VLANGroupRequest.md b/docs/VLANGroupRequest.md index efd4ab4ff..768c049b0 100644 --- a/docs/VLANGroupRequest.md +++ b/docs/VLANGroupRequest.md @@ -8,8 +8,6 @@ Name | Type | Description | Notes **Slug** | **string** | | **ScopeType** | Pointer to **NullableString** | | [optional] **ScopeId** | Pointer to **NullableInt32** | | [optional] -**MinVid** | Pointer to **int32** | Lowest permissible ID of a child VLAN | [optional] -**MaxVid** | Pointer to **int32** | Highest permissible ID of a child VLAN | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -143,56 +141,6 @@ HasScopeId returns a boolean if a field has been set. `func (o *VLANGroupRequest) UnsetScopeId()` UnsetScopeId ensures that no value is present for ScopeId, not even an explicit nil -### GetMinVid - -`func (o *VLANGroupRequest) GetMinVid() int32` - -GetMinVid returns the MinVid field if non-nil, zero value otherwise. - -### GetMinVidOk - -`func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool)` - -GetMinVidOk returns a tuple with the MinVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMinVid - -`func (o *VLANGroupRequest) SetMinVid(v int32)` - -SetMinVid sets MinVid field to given value. - -### HasMinVid - -`func (o *VLANGroupRequest) HasMinVid() bool` - -HasMinVid returns a boolean if a field has been set. - -### GetMaxVid - -`func (o *VLANGroupRequest) GetMaxVid() int32` - -GetMaxVid returns the MaxVid field if non-nil, zero value otherwise. - -### GetMaxVidOk - -`func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool)` - -GetMaxVidOk returns a tuple with the MaxVid field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetMaxVid - -`func (o *VLANGroupRequest) SetMaxVid(v int32)` - -SetMaxVid sets MaxVid field to given value. - -### HasMaxVid - -`func (o *VLANGroupRequest) HasMaxVid() bool` - -HasMaxVid returns a boolean if a field has been set. - ### GetDescription `func (o *VLANGroupRequest) GetDescription() string` diff --git a/docs/VLANRequest.md b/docs/VLANRequest.md index 8ee516347..0b7ddd1b8 100644 --- a/docs/VLANRequest.md +++ b/docs/VLANRequest.md @@ -4,9 +4,17 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Status** | Pointer to [**IPRangeStatusValue**](IPRangeStatusValue.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -27,6 +35,76 @@ NewVLANRequestWithDefaults instantiates a new VLANRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set +### GetSite + +`func (o *VLANRequest) GetSite() BriefSiteRequest` + +GetSite returns the Site field if non-nil, zero value otherwise. + +### GetSiteOk + +`func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` + +GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSite + +`func (o *VLANRequest) SetSite(v BriefSiteRequest)` + +SetSite sets Site field to given value. + +### HasSite + +`func (o *VLANRequest) HasSite() bool` + +HasSite returns a boolean if a field has been set. + +### SetSiteNil + +`func (o *VLANRequest) SetSiteNil(b bool)` + + SetSiteNil sets the value for Site to be an explicit nil + +### UnsetSite +`func (o *VLANRequest) UnsetSite()` + +UnsetSite ensures that no value is present for Site, not even an explicit nil +### GetGroup + +`func (o *VLANRequest) GetGroup() BriefVLANGroupRequest` + +GetGroup returns the Group field if non-nil, zero value otherwise. + +### GetGroupOk + +`func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` + +GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetGroup + +`func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest)` + +SetGroup sets Group field to given value. + +### HasGroup + +`func (o *VLANRequest) HasGroup() bool` + +HasGroup returns a boolean if a field has been set. + +### SetGroupNil + +`func (o *VLANRequest) SetGroupNil(b bool)` + + SetGroupNil sets the value for Group to be an explicit nil + +### UnsetGroup +`func (o *VLANRequest) UnsetGroup()` + +UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetVid `func (o *VLANRequest) GetVid() int32` @@ -67,6 +145,101 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetTenant + +`func (o *VLANRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VLANRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VLANRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VLANRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VLANRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetStatus + +`func (o *VLANRequest) GetStatus() IPRangeStatusValue` + +GetStatus returns the Status field if non-nil, zero value otherwise. + +### GetStatusOk + +`func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool)` + +GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetStatus + +`func (o *VLANRequest) SetStatus(v IPRangeStatusValue)` + +SetStatus sets Status field to given value. + +### HasStatus + +`func (o *VLANRequest) HasStatus() bool` + +HasStatus returns a boolean if a field has been set. + +### GetRole + +`func (o *VLANRequest) GetRole() BriefRoleRequest` + +GetRole returns the Role field if non-nil, zero value otherwise. + +### GetRoleOk + +`func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` + +GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRole + +`func (o *VLANRequest) SetRole(v BriefRoleRequest)` + +SetRole sets Role field to given value. + +### HasRole + +`func (o *VLANRequest) HasRole() bool` + +HasRole returns a boolean if a field has been set. + +### SetRoleNil + +`func (o *VLANRequest) SetRoleNil(b bool)` + + SetRoleNil sets the value for Role to be an explicit nil + +### UnsetRole +`func (o *VLANRequest) UnsetRole()` + +UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetDescription `func (o *VLANRequest) GetDescription() string` @@ -92,6 +265,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VLANRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VLANRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VLANRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VLANRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VLANRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VLANRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VLANRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VLANRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VLANRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VLANRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VLANRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VLANRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/VMInterface.md b/docs/VMInterface.md index ba4d5ef2c..eb9687199 100644 --- a/docs/VMInterface.md +++ b/docs/VMInterface.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterface**](NestedVMInterface.md) | | [optional] @@ -16,10 +17,10 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceMode**](InterfaceMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] **TaggedVlans** | Pointer to [**[]VLAN**](VLAN.md) | | [optional] -**Vrf** | Pointer to [**NullableVRF**](VRF.md) | | [optional] -**L2vpnTermination** | [**NullableL2VPNTermination**](L2VPNTermination.md) | | [readonly] +**Vrf** | Pointer to [**NullableBriefVRF**](BriefVRF.md) | | [optional] +**L2vpnTermination** | [**NullableBriefL2VPNTermination**](BriefL2VPNTermination.md) | | [readonly] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] **Created** | **NullableTime** | | [readonly] @@ -31,7 +32,7 @@ Name | Type | Description | Notes ### NewVMInterface -`func NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` +`func NewVMInterface(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, ) *VMInterface` NewVMInterface instantiates a new VMInterface object This constructor will assign default values to properties that have it defined, @@ -86,6 +87,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VMInterface) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VMInterface) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VMInterface) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VMInterface) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VMInterface) GetDisplay() string` @@ -108,20 +134,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VMInterface) GetVirtualMachine() VirtualMachine` +`func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterface) SetVirtualMachine(v VirtualMachine)` +`func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. @@ -363,20 +389,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterface) GetUntaggedVlan() VLAN` +`func (o *VMInterface) GetUntaggedVlan() BriefVLAN` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool)` +`func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterface) SetUntaggedVlan(v VLAN)` +`func (o *VMInterface) SetUntaggedVlan(v BriefVLAN)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -423,20 +449,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterface) GetVrf() VRF` +`func (o *VMInterface) GetVrf() BriefVRF` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterface) GetVrfOk() (*VRF, bool)` +`func (o *VMInterface) GetVrfOk() (*BriefVRF, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterface) SetVrf(v VRF)` +`func (o *VMInterface) SetVrf(v BriefVRF)` SetVrf sets Vrf field to given value. @@ -458,20 +484,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetL2vpnTermination -`func (o *VMInterface) GetL2vpnTermination() L2VPNTermination` +`func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination` GetL2vpnTermination returns the L2vpnTermination field if non-nil, zero value otherwise. ### GetL2vpnTerminationOk -`func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool)` +`func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool)` GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetL2vpnTermination -`func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination)` +`func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination)` SetL2vpnTermination sets L2vpnTermination field to given value. diff --git a/docs/VMInterfaceRequest.md b/docs/VMInterfaceRequest.md index f82ea7526..9285ac301 100644 --- a/docs/VMInterfaceRequest.md +++ b/docs/VMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to [**NullableNestedVMInterfaceRequest**](NestedVMInterfaceRequest.md) | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**InterfaceModeValue**](InterfaceModeValue.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewVMInterfaceRequest -`func NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *VMInterfaceRequest` +`func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *VMInterfaceRequest` NewVMInterfaceRequest instantiates a new VMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *VMInterfaceRequest) GetVrf() VRFRequest` +`func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *VMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/VRF.md b/docs/VRF.md index efb68c006..00f5f5ca9 100644 --- a/docs/VRF.md +++ b/docs/VRF.md @@ -6,17 +6,28 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**ExportTargets** | Pointer to [**[]RouteTarget**](RouteTarget.md) | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] +**IpaddressCount** | **int64** | | [readonly] **PrefixCount** | Pointer to **int64** | | [optional] [readonly] ## Methods ### NewVRF -`func NewVRF(id int32, url string, display string, name string, ) *VRF` +`func NewVRF(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64, ) *VRF` NewVRF instantiates a new VRF object This constructor will assign default values to properties that have it defined, @@ -71,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VRF) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VRF) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VRF) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VRF) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VRF) GetDisplay() string` @@ -146,6 +182,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRF) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRF) GetTenant() BriefTenant` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRF) GetTenantOk() (*BriefTenant, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VRF) SetTenant(v BriefTenant)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRF) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRF) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRF) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRF) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRF) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRF) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRF) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRF) GetDescription() string` @@ -171,6 +267,211 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRF) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRF) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRF) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRF) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRF) GetImportTargets() []RouteTarget` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRF) GetImportTargetsOk() (*[]RouteTarget, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRF) SetImportTargets(v []RouteTarget)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRF) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRF) GetExportTargets() []RouteTarget` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRF) GetExportTargetsOk() (*[]RouteTarget, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRF) SetExportTargets(v []RouteTarget)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRF) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRF) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRF) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VRF) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRF) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRF) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRF) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VRF) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRF) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VRF) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VRF) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VRF) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VRF) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VRF) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VRF) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VRF) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VRF) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VRF) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VRF) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil +### GetIpaddressCount + +`func (o *VRF) GetIpaddressCount() int64` + +GetIpaddressCount returns the IpaddressCount field if non-nil, zero value otherwise. + +### GetIpaddressCountOk + +`func (o *VRF) GetIpaddressCountOk() (*int64, bool)` + +GetIpaddressCountOk returns a tuple with the IpaddressCount field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetIpaddressCount + +`func (o *VRF) SetIpaddressCount(v int64)` + +SetIpaddressCount sets IpaddressCount field to given value. + + ### GetPrefixCount `func (o *VRF) GetPrefixCount() int64` diff --git a/docs/VRFRequest.md b/docs/VRFRequest.md index 6637879c6..292a8949e 100644 --- a/docs/VRFRequest.md +++ b/docs/VRFRequest.md @@ -6,7 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Rd** | Pointer to **NullableString** | Unique route distinguisher (as defined in RFC 4364) | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**EnforceUnique** | Pointer to **bool** | Prevent duplicate prefixes/IP addresses within this VRF | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**ImportTargets** | Pointer to **[]int32** | | [optional] +**ExportTargets** | Pointer to **[]int32** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -82,6 +89,66 @@ HasRd returns a boolean if a field has been set. `func (o *VRFRequest) UnsetRd()` UnsetRd ensures that no value is present for Rd, not even an explicit nil +### GetTenant + +`func (o *VRFRequest) GetTenant() BriefTenantRequest` + +GetTenant returns the Tenant field if non-nil, zero value otherwise. + +### GetTenantOk + +`func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool)` + +GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTenant + +`func (o *VRFRequest) SetTenant(v BriefTenantRequest)` + +SetTenant sets Tenant field to given value. + +### HasTenant + +`func (o *VRFRequest) HasTenant() bool` + +HasTenant returns a boolean if a field has been set. + +### SetTenantNil + +`func (o *VRFRequest) SetTenantNil(b bool)` + + SetTenantNil sets the value for Tenant to be an explicit nil + +### UnsetTenant +`func (o *VRFRequest) UnsetTenant()` + +UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +### GetEnforceUnique + +`func (o *VRFRequest) GetEnforceUnique() bool` + +GetEnforceUnique returns the EnforceUnique field if non-nil, zero value otherwise. + +### GetEnforceUniqueOk + +`func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool)` + +GetEnforceUniqueOk returns a tuple with the EnforceUnique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEnforceUnique + +`func (o *VRFRequest) SetEnforceUnique(v bool)` + +SetEnforceUnique sets EnforceUnique field to given value. + +### HasEnforceUnique + +`func (o *VRFRequest) HasEnforceUnique() bool` + +HasEnforceUnique returns a boolean if a field has been set. + ### GetDescription `func (o *VRFRequest) GetDescription() string` @@ -107,6 +174,131 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VRFRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VRFRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VRFRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VRFRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetImportTargets + +`func (o *VRFRequest) GetImportTargets() []int32` + +GetImportTargets returns the ImportTargets field if non-nil, zero value otherwise. + +### GetImportTargetsOk + +`func (o *VRFRequest) GetImportTargetsOk() (*[]int32, bool)` + +GetImportTargetsOk returns a tuple with the ImportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetImportTargets + +`func (o *VRFRequest) SetImportTargets(v []int32)` + +SetImportTargets sets ImportTargets field to given value. + +### HasImportTargets + +`func (o *VRFRequest) HasImportTargets() bool` + +HasImportTargets returns a boolean if a field has been set. + +### GetExportTargets + +`func (o *VRFRequest) GetExportTargets() []int32` + +GetExportTargets returns the ExportTargets field if non-nil, zero value otherwise. + +### GetExportTargetsOk + +`func (o *VRFRequest) GetExportTargetsOk() (*[]int32, bool)` + +GetExportTargetsOk returns a tuple with the ExportTargets field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetExportTargets + +`func (o *VRFRequest) SetExportTargets(v []int32)` + +SetExportTargets sets ExportTargets field to given value. + +### HasExportTargets + +`func (o *VRFRequest) HasExportTargets() bool` + +HasExportTargets returns a boolean if a field has been set. + +### GetTags + +`func (o *VRFRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VRFRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VRFRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VRFRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VRFRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VRFRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VRFRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VRFRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/VirtualChassis.md b/docs/VirtualChassis.md index 325cd6a07..b49ff5871 100644 --- a/docs/VirtualChassis.md +++ b/docs/VirtualChassis.md @@ -6,17 +6,25 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDevice**](NestedDevice.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **MemberCount** | **int32** | | [readonly] +**Members** | [**[]NestedDevice**](NestedDevice.md) | | [readonly] ## Methods ### NewVirtualChassis -`func NewVirtualChassis(id int32, url string, display string, name string, memberCount int32, ) *VirtualChassis` +`func NewVirtualChassis(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice, ) *VirtualChassis` NewVirtualChassis instantiates a new VirtualChassis object This constructor will assign default values to properties that have it defined, @@ -71,6 +79,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualChassis) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualChassis) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualChassis) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualChassis) GetDisplay() string` @@ -111,6 +144,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassis) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassis) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassis) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassis) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassis) GetMaster() NestedDevice` @@ -171,6 +229,141 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassis) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassis) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassis) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassis) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassis) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassis) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VirtualChassis) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassis) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassis) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassis) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VirtualChassis) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassis) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *VirtualChassis) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *VirtualChassis) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *VirtualChassis) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *VirtualChassis) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *VirtualChassis) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *VirtualChassis) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *VirtualChassis) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *VirtualChassis) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetMemberCount `func (o *VirtualChassis) GetMemberCount() int32` @@ -191,6 +384,26 @@ and a boolean to check if the value has been set. SetMemberCount sets MemberCount field to given value. +### GetMembers + +`func (o *VirtualChassis) GetMembers() []NestedDevice` + +GetMembers returns the Members field if non-nil, zero value otherwise. + +### GetMembersOk + +`func (o *VirtualChassis) GetMembersOk() (*[]NestedDevice, bool)` + +GetMembersOk returns a tuple with the Members field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetMembers + +`func (o *VirtualChassis) SetMembers(v []NestedDevice)` + +SetMembers sets Members field to given value. + + [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/VirtualChassisRequest.md b/docs/VirtualChassisRequest.md index 76fe6fb80..c8f966eb5 100644 --- a/docs/VirtualChassisRequest.md +++ b/docs/VirtualChassisRequest.md @@ -5,8 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | +**Domain** | Pointer to **string** | | [optional] **Master** | Pointer to [**NullableNestedDeviceRequest**](NestedDeviceRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Comments** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -47,6 +51,31 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. +### GetDomain + +`func (o *VirtualChassisRequest) GetDomain() string` + +GetDomain returns the Domain field if non-nil, zero value otherwise. + +### GetDomainOk + +`func (o *VirtualChassisRequest) GetDomainOk() (*string, bool)` + +GetDomainOk returns a tuple with the Domain field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDomain + +`func (o *VirtualChassisRequest) SetDomain(v string)` + +SetDomain sets Domain field to given value. + +### HasDomain + +`func (o *VirtualChassisRequest) HasDomain() bool` + +HasDomain returns a boolean if a field has been set. + ### GetMaster `func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest` @@ -107,6 +136,81 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetComments + +`func (o *VirtualChassisRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *VirtualChassisRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *VirtualChassisRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + +### GetTags + +`func (o *VirtualChassisRequest) GetTags() []NestedTagRequest` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *VirtualChassisRequest) GetTagsOk() (*[]NestedTagRequest, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *VirtualChassisRequest) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *VirtualChassisRequest) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *VirtualChassisRequest) HasCustomFields() bool` + +HasCustomFields 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/docs/VirtualDeviceContext.md b/docs/VirtualDeviceContext.md index 6bdea62eb..399a0ebfb 100644 --- a/docs/VirtualDeviceContext.md +++ b/docs/VirtualDeviceContext.md @@ -6,14 +6,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Device** | [**Device**](Device.md) | | +**Device** | [**BriefDevice**](BriefDevice.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Status** | [**VirtualDeviceContextStatus**](VirtualDeviceContextStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -27,7 +28,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContext -`func NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` +`func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64, ) *VirtualDeviceContext` NewVirtualDeviceContext instantiates a new VirtualDeviceContext object This constructor will assign default values to properties that have it defined, @@ -82,6 +83,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDeviceContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDeviceContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualDeviceContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualDeviceContext) GetDisplay() string` @@ -124,20 +150,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContext) GetDevice() Device` +`func (o *VirtualDeviceContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContext) SetDevice(v Device)` +`func (o *VirtualDeviceContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -179,20 +205,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContext) GetTenant() Tenant` +`func (o *VirtualDeviceContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContext) SetTenant(v Tenant)` +`func (o *VirtualDeviceContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -214,20 +240,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -244,20 +270,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -279,20 +305,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDeviceContextRequest.md b/docs/VirtualDeviceContextRequest.md index f3436b2b5..2604eb36a 100644 --- a/docs/VirtualDeviceContextRequest.md +++ b/docs/VirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewVirtualDeviceContextRequest -`func NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` +`func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *VirtualDeviceContextRequest` NewVirtualDeviceContextRequest instantiates a new VirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/VirtualDisk.md b/docs/VirtualDisk.md index 2bc24b4e8..268fc16dc 100644 --- a/docs/VirtualDisk.md +++ b/docs/VirtualDisk.md @@ -6,8 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**VirtualMachine** | [**VirtualMachine**](VirtualMachine.md) | | +**VirtualMachine** | [**BriefVirtualMachine**](BriefVirtualMachine.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -20,7 +21,7 @@ Name | Type | Description | Notes ### NewVirtualDisk -`func NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` +`func NewVirtualDisk(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime, ) *VirtualDisk` NewVirtualDisk instantiates a new VirtualDisk object This constructor will assign default values to properties that have it defined, @@ -75,6 +76,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualDisk) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualDisk) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualDisk) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualDisk) GetDisplay() string` @@ -97,20 +123,20 @@ SetDisplay sets Display field to given value. ### GetVirtualMachine -`func (o *VirtualDisk) GetVirtualMachine() VirtualMachine` +`func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool)` +`func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine)` +`func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualDiskRequest.md b/docs/VirtualDiskRequest.md index 3ec5d8bf7..737588e43 100644 --- a/docs/VirtualDiskRequest.md +++ b/docs/VirtualDiskRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Size** | **int32** | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes ### NewVirtualDiskRequest -`func NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` +`func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32, ) *VirtualDiskRequest` NewVirtualDiskRequest instantiates a new VirtualDiskRequest object This constructor will assign default values to properties that have it defined, @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/VirtualMachineWithConfigContext.md b/docs/VirtualMachineWithConfigContext.md index bb09969ee..85ece0dc2 100644 --- a/docs/VirtualMachineWithConfigContext.md +++ b/docs/VirtualMachineWithConfigContext.md @@ -6,24 +6,26 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | -**Status** | Pointer to [**VirtualMachineWithConfigContextStatus**](VirtualMachineWithConfigContextStatus.md) | | [optional] -**Site** | Pointer to [**NullableSite**](Site.md) | | [optional] -**Cluster** | Pointer to [**NullableCluster**](Cluster.md) | | [optional] -**Device** | Pointer to [**NullableDevice**](Device.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRole**](DeviceRole.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] -**Platform** | Pointer to [**NullablePlatform**](Platform.md) | | [optional] -**PrimaryIp** | [**NullableIPAddress**](IPAddress.md) | | [readonly] -**PrimaryIp4** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddress**](IPAddress.md) | | [optional] +**Status** | Pointer to [**ModuleStatus**](ModuleStatus.md) | | [optional] +**Site** | Pointer to [**NullableBriefSite**](BriefSite.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefCluster**](BriefCluster.md) | | [optional] +**Device** | Pointer to [**NullableBriefDevice**](BriefDevice.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRole**](BriefDeviceRole.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatform**](BriefPlatform.md) | | [optional] +**PrimaryIp** | [**NullableBriefIPAddress**](BriefIPAddress.md) | | [readonly] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddress**](BriefIPAddress.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplate**](ConfigTemplate.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplate**](BriefConfigTemplate.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -37,7 +39,7 @@ Name | Type | Description | Notes ### NewVirtualMachineWithConfigContext -`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` +`func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32, ) *VirtualMachineWithConfigContext` NewVirtualMachineWithConfigContext instantiates a new VirtualMachineWithConfigContext object This constructor will assign default values to properties that have it defined, @@ -92,6 +94,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *VirtualMachineWithConfigContext) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *VirtualMachineWithConfigContext) GetDisplay() string` @@ -134,20 +161,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus` +`func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool)` +`func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus)` +`func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus)` SetStatus sets Status field to given value. @@ -159,20 +186,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContext) GetSite() Site` +`func (o *VirtualMachineWithConfigContext) GetSite() BriefSite` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool)` +`func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContext) SetSite(v Site)` +`func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite)` SetSite sets Site field to given value. @@ -194,20 +221,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContext) GetCluster() Cluster` +`func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool)` +`func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster)` +`func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster)` SetCluster sets Cluster field to given value. @@ -229,20 +256,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContext) GetDevice() Device` +`func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool)` +`func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContext) SetDevice(v Device)` +`func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice)` SetDevice sets Device field to given value. @@ -262,22 +289,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContext) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContext) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContext) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContext) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole` +`func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool)` +`func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole)` +`func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole)` SetRole sets Role field to given value. @@ -299,20 +351,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContext) GetTenant() Tenant` +`func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool)` +`func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant)` +`func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -334,20 +386,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContext) GetPlatform() Platform` +`func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool)` +`func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform)` +`func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform)` SetPlatform sets Platform field to given value. @@ -369,20 +421,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress` GetPrimaryIp returns the PrimaryIp field if non-nil, zero value otherwise. ### GetPrimaryIpOk -`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool)` GetPrimaryIpOk returns a tuple with the PrimaryIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress)` SetPrimaryIp sets PrimaryIp field to given value. @@ -399,20 +451,20 @@ SetPrimaryIp sets PrimaryIp field to given value. UnsetPrimaryIp ensures that no value is present for PrimaryIp, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -434,20 +486,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool)` +`func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress)` +`func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -624,20 +676,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool)` +`func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate)` +`func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualMachineWithConfigContextRequest.md b/docs/VirtualMachineWithConfigContextRequest.md index 44050ed13..7bc48c424 100644 --- a/docs/VirtualMachineWithConfigContextRequest.md +++ b/docs/VirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *VirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *VirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/VirtualizationAPI.md b/docs/VirtualizationAPI.md index b93f4f266..cac0e2206 100644 --- a/docs/VirtualizationAPI.md +++ b/docs/VirtualizationAPI.md @@ -416,8 +416,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -509,8 +509,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -1565,7 +1565,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1629,7 +1629,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1695,7 +1695,7 @@ import ( ) func main() { - clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example")} // []ClusterRequest | + clusterRequest := []openapiclient.ClusterRequest{*openapiclient.NewClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example"))} // []ClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1761,7 +1761,7 @@ import ( ) func main() { - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1876,7 +1876,7 @@ Name | Type | Description | Notes ## VirtualizationClustersList -> PaginatedClusterList VirtualizationClustersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedClusterList VirtualizationClustersList(ctx).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1898,8 +1898,8 @@ import ( func main() { contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -1955,28 +1955,37 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusIe := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusIew := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusIsw := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusN := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusNic := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusNie := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusNiew := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) + statusNisw := []openapiclient.VirtualizationClustersListStatusIcParameterInner{openapiclient.virtualization_clusters_list_status__ic_parameter_inner("active")} // []VirtualizationClustersListStatusIcParameterInner | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | Cluster type (slug) (optional) @@ -1987,7 +1996,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationClustersList(context.Background()).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).TypeId(typeId).TypeIdN(typeIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationClustersList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2010,8 +2019,8 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -2067,28 +2076,37 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusIe** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusIew** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusIsw** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusN** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusNic** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusNie** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusNiew** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | + **statusNisw** | [**[]VirtualizationClustersListStatusIcParameterInner**](VirtualizationClustersListStatusIcParameterInner.md) | * `planned` - Planned * `staging` - Staging * `active` - Active * `decommissioning` - Decommissioning * `offline` - Offline | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | Cluster type (slug) | @@ -2279,7 +2297,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this cluster. - writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | + writableClusterRequest := *openapiclient.NewWritableClusterRequest("Name_example", *openapiclient.NewBriefClusterTypeRequest("Name_example", "Slug_example")) // WritableClusterRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2350,7 +2368,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2414,7 +2432,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2480,7 +2498,7 @@ import ( ) func main() { - vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | + vMInterfaceRequest := []openapiclient.VMInterfaceRequest{*openapiclient.NewVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example")} // []VMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2546,7 +2564,7 @@ import ( ) func main() { - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2661,7 +2679,7 @@ Name | Type | Description | Notes ## VirtualizationInterfacesList -> PaginatedVMInterfaceList VirtualizationInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() +> PaginatedVMInterfaceList VirtualizationInterfacesList(ctx).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Mode(mode).ModifiedByRequest(modifiedByRequest).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() @@ -2737,7 +2755,6 @@ func main() { macAddressNiew := []string{"Inner_example"} // []string | (optional) macAddressNisw := []string{"Inner_example"} // []string | (optional) mode := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) - modeN := openapiclient.dcim_interfaces_list_mode_parameter("access") // DcimInterfacesListModeParameter | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) mtu := []int32{int32(123)} // []int32 | (optional) mtuEmpty := true // bool | (optional) @@ -2778,7 +2795,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationInterfacesList(context.Background()).BridgeId(bridgeId).BridgeIdN(bridgeIdN).Cluster(cluster).ClusterN(clusterN).ClusterId(clusterId).ClusterIdN(clusterIdN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Enabled(enabled).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).L2vpn(l2vpn).L2vpnN(l2vpnN).L2vpnId(l2vpnId).L2vpnIdN(l2vpnIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Mode(mode).ModifiedByRequest(modifiedByRequest).Mtu(mtu).MtuEmpty(mtuEmpty).MtuGt(mtuGt).MtuGte(mtuGte).MtuLt(mtuLt).MtuLte(mtuLte).MtuN(mtuN).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).ParentId(parentId).ParentIdN(parentIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).VirtualMachine(virtualMachine).VirtualMachineN(virtualMachineN).VirtualMachineId(virtualMachineId).VirtualMachineIdN(virtualMachineIdN).Vlan(vlan).VlanId(vlanId).Vrf(vrf).VrfN(vrfN).VrfId(vrfId).VrfIdN(vrfIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationInterfacesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2855,7 +2872,6 @@ Name | Type | Description | Notes **macAddressNiew** | **[]string** | | **macAddressNisw** | **[]string** | | **mode** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | - **modeN** | [**DcimInterfacesListModeParameter**](DcimInterfacesListModeParameter.md) | IEEE 802.1Q tagging strategy * `access` - Access * `tagged` - Tagged * `tagged-all` - Tagged (All) | **modifiedByRequest** | **string** | | **mtu** | **[]int32** | | **mtuEmpty** | **bool** | | @@ -3076,7 +3092,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this interface. - writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | + writableVMInterfaceRequest := *openapiclient.NewWritableVMInterfaceRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example") // WritableVMInterfaceRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3147,7 +3163,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3211,7 +3227,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3277,7 +3293,7 @@ import ( ) func main() { - virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | + virtualDiskRequest := []openapiclient.VirtualDiskRequest{*openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123))} // []VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3343,7 +3359,7 @@ import ( ) func main() { - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3811,7 +3827,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this virtual disk. - virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | + virtualDiskRequest := *openapiclient.NewVirtualDiskRequest(*openapiclient.NewBriefVirtualMachineRequest("Name_example"), "Name_example", int32(123)) // VirtualDiskRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4193,7 +4209,7 @@ Name | Type | Description | Notes ## VirtualizationVirtualMachinesList -> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() +> PaginatedVirtualMachineWithConfigContextList VirtualizationVirtualMachinesList(ctx).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() @@ -4229,8 +4245,8 @@ func main() { configTemplateIdN := []*int32{int32(123)} // []*int32 | Config template (ID) (optional) contact := []int32{int32(123)} // []int32 | Contact (optional) contactN := []int32{int32(123)} // []int32 | Contact (optional) - contactGroup := []int32{int32(123)} // []int32 | Contact group (optional) - contactGroupN := []int32{int32(123)} // []int32 | Contact group (optional) + contactGroup := []string{"Inner_example"} // []string | (optional) + contactGroupN := []string{"Inner_example"} // []string | (optional) contactRole := []int32{int32(123)} // []int32 | Contact Role (optional) contactRoleN := []int32{int32(123)} // []int32 | Contact Role (optional) created := []time.Time{time.Now()} // []time.Time | (optional) @@ -4327,32 +4343,52 @@ func main() { primaryIp6Id := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) primaryIp6IdN := []int32{int32(123)} // []int32 | Primary IPv6 (ID) (optional) q := "q_example" // string | Search (optional) - region := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionN := []int32{int32(123)} // []int32 | Region (slug) (optional) - regionId := []int32{int32(123)} // []int32 | Region (ID) (optional) - regionIdN := []int32{int32(123)} // []int32 | Region (ID) (optional) + region := []string{"Inner_example"} // []string | (optional) + regionN := []string{"Inner_example"} // []string | (optional) + regionId := []string{"Inner_example"} // []string | (optional) + regionIdN := []string{"Inner_example"} // []string | (optional) role := []string{"Inner_example"} // []string | Role (slug) (optional) roleN := []string{"Inner_example"} // []string | Role (slug) (optional) roleId := []*int32{int32(123)} // []*int32 | Role (ID) (optional) roleIdN := []*int32{int32(123)} // []*int32 | Role (ID) (optional) + serial := []string{"Inner_example"} // []string | (optional) + serialEmpty := true // bool | (optional) + serialIc := []string{"Inner_example"} // []string | (optional) + serialIe := []string{"Inner_example"} // []string | (optional) + serialIew := []string{"Inner_example"} // []string | (optional) + serialIsw := []string{"Inner_example"} // []string | (optional) + serialN := []string{"Inner_example"} // []string | (optional) + serialNic := []string{"Inner_example"} // []string | (optional) + serialNie := []string{"Inner_example"} // []string | (optional) + serialNiew := []string{"Inner_example"} // []string | (optional) + serialNisw := []string{"Inner_example"} // []string | (optional) site := []string{"Inner_example"} // []string | Site (slug) (optional) siteN := []string{"Inner_example"} // []string | Site (slug) (optional) - siteGroup := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupN := []int32{int32(123)} // []int32 | Site group (slug) (optional) - siteGroupId := []int32{int32(123)} // []int32 | Site group (ID) (optional) - siteGroupIdN := []int32{int32(123)} // []int32 | Site group (ID) (optional) + siteGroup := []string{"Inner_example"} // []string | (optional) + siteGroupN := []string{"Inner_example"} // []string | (optional) + siteGroupId := []string{"Inner_example"} // []string | (optional) + siteGroupIdN := []string{"Inner_example"} // []string | (optional) siteId := []*int32{int32(123)} // []*int32 | Site (ID) (optional) siteIdN := []*int32{int32(123)} // []*int32 | Site (ID) (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusIe := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusIew := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusIsw := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusN := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNic := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNie := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNiew := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) + statusNisw := []openapiclient.DcimModulesListStatusIcParameterInner{openapiclient.dcim_modules_list_status__ic_parameter_inner("active")} // []DcimModulesListStatusIcParameterInner | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -4373,7 +4409,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() + resp, r, err := apiClient.VirtualizationAPI.VirtualizationVirtualMachinesList(context.Background()).Cluster(cluster).ClusterN(clusterN).ClusterGroup(clusterGroup).ClusterGroupN(clusterGroupN).ClusterGroupId(clusterGroupId).ClusterGroupIdN(clusterGroupIdN).ClusterId(clusterId).ClusterIdN(clusterIdN).ClusterType(clusterType).ClusterTypeN(clusterTypeN).ClusterTypeId(clusterTypeId).ClusterTypeIdN(clusterTypeIdN).ConfigTemplateId(configTemplateId).ConfigTemplateIdN(configTemplateIdN).Contact(contact).ContactN(contactN).ContactGroup(contactGroup).ContactGroupN(contactGroupN).ContactRole(contactRole).ContactRoleN(contactRoleN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Device(device).DeviceN(deviceN).DeviceId(deviceId).DeviceIdN(deviceIdN).Disk(disk).DiskEmpty(diskEmpty).DiskGt(diskGt).DiskGte(diskGte).DiskLt(diskLt).DiskLte(diskLte).DiskN(diskN).HasPrimaryIp(hasPrimaryIp).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceCount(interfaceCount).InterfaceCountEmpty(interfaceCountEmpty).InterfaceCountGt(interfaceCountGt).InterfaceCountGte(interfaceCountGte).InterfaceCountLt(interfaceCountLt).InterfaceCountLte(interfaceCountLte).InterfaceCountN(interfaceCountN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).LocalContextData(localContextData).MacAddress(macAddress).MacAddressIc(macAddressIc).MacAddressIe(macAddressIe).MacAddressIew(macAddressIew).MacAddressIsw(macAddressIsw).MacAddressN(macAddressN).MacAddressNic(macAddressNic).MacAddressNie(macAddressNie).MacAddressNiew(macAddressNiew).MacAddressNisw(macAddressNisw).Memory(memory).MemoryEmpty(memoryEmpty).MemoryGt(memoryGt).MemoryGte(memoryGte).MemoryLt(memoryLt).MemoryLte(memoryLte).MemoryN(memoryN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Platform(platform).PlatformN(platformN).PlatformId(platformId).PlatformIdN(platformIdN).PrimaryIp4Id(primaryIp4Id).PrimaryIp4IdN(primaryIp4IdN).PrimaryIp6Id(primaryIp6Id).PrimaryIp6IdN(primaryIp6IdN).Q(q).Region(region).RegionN(regionN).RegionId(regionId).RegionIdN(regionIdN).Role(role).RoleN(roleN).RoleId(roleId).RoleIdN(roleIdN).Serial(serial).SerialEmpty(serialEmpty).SerialIc(serialIc).SerialIe(serialIe).SerialIew(serialIew).SerialIsw(serialIsw).SerialN(serialN).SerialNic(serialNic).SerialNie(serialNie).SerialNiew(serialNiew).SerialNisw(serialNisw).Site(site).SiteN(siteN).SiteGroup(siteGroup).SiteGroupN(siteGroupN).SiteGroupId(siteGroupId).SiteGroupIdN(siteGroupIdN).SiteId(siteId).SiteIdN(siteIdN).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Vcpus(vcpus).VcpusEmpty(vcpusEmpty).VcpusGt(vcpusGt).VcpusGte(vcpusGte).VcpusLt(vcpusLt).VcpusLte(vcpusLte).VcpusN(vcpusN).VirtualDiskCount(virtualDiskCount).VirtualDiskCountEmpty(virtualDiskCountEmpty).VirtualDiskCountGt(virtualDiskCountGt).VirtualDiskCountGte(virtualDiskCountGte).VirtualDiskCountLt(virtualDiskCountLt).VirtualDiskCountLte(virtualDiskCountLte).VirtualDiskCountN(virtualDiskCountN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VirtualizationAPI.VirtualizationVirtualMachinesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -4410,8 +4446,8 @@ Name | Type | Description | Notes **configTemplateIdN** | **[]int32** | Config template (ID) | **contact** | **[]int32** | Contact | **contactN** | **[]int32** | Contact | - **contactGroup** | **[]int32** | Contact group | - **contactGroupN** | **[]int32** | Contact group | + **contactGroup** | **[]string** | | + **contactGroupN** | **[]string** | | **contactRole** | **[]int32** | Contact Role | **contactRoleN** | **[]int32** | Contact Role | **created** | [**[]time.Time**](time.Time.md) | | @@ -4508,32 +4544,52 @@ Name | Type | Description | Notes **primaryIp6Id** | **[]int32** | Primary IPv6 (ID) | **primaryIp6IdN** | **[]int32** | Primary IPv6 (ID) | **q** | **string** | Search | - **region** | **[]int32** | Region (slug) | - **regionN** | **[]int32** | Region (slug) | - **regionId** | **[]int32** | Region (ID) | - **regionIdN** | **[]int32** | Region (ID) | + **region** | **[]string** | | + **regionN** | **[]string** | | + **regionId** | **[]string** | | + **regionIdN** | **[]string** | | **role** | **[]string** | Role (slug) | **roleN** | **[]string** | Role (slug) | **roleId** | **[]int32** | Role (ID) | **roleIdN** | **[]int32** | Role (ID) | + **serial** | **[]string** | | + **serialEmpty** | **bool** | | + **serialIc** | **[]string** | | + **serialIe** | **[]string** | | + **serialIew** | **[]string** | | + **serialIsw** | **[]string** | | + **serialN** | **[]string** | | + **serialNic** | **[]string** | | + **serialNie** | **[]string** | | + **serialNiew** | **[]string** | | + **serialNisw** | **[]string** | | **site** | **[]string** | Site (slug) | **siteN** | **[]string** | Site (slug) | - **siteGroup** | **[]int32** | Site group (slug) | - **siteGroupN** | **[]int32** | Site group (slug) | - **siteGroupId** | **[]int32** | Site group (ID) | - **siteGroupIdN** | **[]int32** | Site group (ID) | + **siteGroup** | **[]string** | | + **siteGroupN** | **[]string** | | + **siteGroupId** | **[]string** | | + **siteGroupIdN** | **[]string** | | **siteId** | **[]int32** | Site (ID) | **siteIdN** | **[]int32** | Site (ID) | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusIe** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusIew** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusIsw** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusN** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNic** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNie** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNiew** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | + **statusNisw** | [**[]DcimModulesListStatusIcParameterInner**](DcimModulesListStatusIcParameterInner.md) | * `offline` - Offline * `active` - Active * `planned` - Planned * `staged` - Staged * `failed` - Failed * `decommissioning` - Decommissioning | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | diff --git a/docs/VpnAPI.md b/docs/VpnAPI.md index 4a260a9e0..dc730b36f 100644 --- a/docs/VpnAPI.md +++ b/docs/VpnAPI.md @@ -118,7 +118,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -182,7 +182,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -248,7 +248,7 @@ import ( ) func main() { - iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive"))} // []IKEPolicyRequest | + iKEPolicyRequest := []openapiclient.IKEPolicyRequest{*openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1))} // []IKEPolicyRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -429,7 +429,7 @@ Name | Type | Description | Notes ## VpnIkePoliciesList -> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() +> PaginatedIKEPolicyList VpnIkePoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionIc(versionIc).VersionIe(versionIe).VersionIew(versionIew).VersionIsw(versionIsw).VersionN(versionN).VersionNic(versionNic).VersionNie(versionNie).VersionNiew(versionNiew).VersionNisw(versionNisw).Execute() @@ -488,7 +488,16 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) mode := []string{"Inner_example"} // []string | (optional) - modeN := []string{"Inner_example"} // []string | (optional) + modeEmpty := true // bool | (optional) + modeIc := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeIe := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeIew := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeIsw := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeN := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeNic := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeNie := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeNiew := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) + modeNisw := []openapiclient.VpnIkePoliciesListModeIcParameterInner{openapiclient.vpn_ike_policies_list_mode__ic_parameter_inner("")} // []VpnIkePoliciesListModeIcParameterInner | * `aggressive` - Aggressive * `main` - Main (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -513,20 +522,24 @@ func main() { presharedKeyNie := "presharedKeyNie_example" // string | (optional) presharedKeyNiew := "presharedKeyNiew_example" // string | (optional) presharedKeyNisw := "presharedKeyNisw_example" // string | (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) version := []int32{int32(123)} // []int32 | (optional) - versionN := []int32{int32(123)} // []int32 | (optional) + versionIc := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionIe := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionIew := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionIsw := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionN := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionNic := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionNie := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionNiew := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) + versionNisw := []openapiclient.VpnIkePoliciesListVersionIcParameterInner{openapiclient.vpn_ike_policies_list_version__ic_parameter_inner(1)} // []VpnIkePoliciesListVersionIcParameterInner | * `1` - IKEv1 * `2` - IKEv2 (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionN(versionN).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkePoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkeProposal(ikeProposal).IkeProposalN(ikeProposalN).IkeProposalId(ikeProposalId).IkeProposalIdN(ikeProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PresharedKey(presharedKey).PresharedKeyIc(presharedKeyIc).PresharedKeyIe(presharedKeyIe).PresharedKeyIew(presharedKeyIew).PresharedKeyIsw(presharedKeyIsw).PresharedKeyN(presharedKeyN).PresharedKeyNic(presharedKeyNic).PresharedKeyNie(presharedKeyNie).PresharedKeyNiew(presharedKeyNiew).PresharedKeyNisw(presharedKeyNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Version(version).VersionIc(versionIc).VersionIe(versionIe).VersionIew(versionIew).VersionIsw(versionIsw).VersionN(versionN).VersionNic(versionNic).VersionNie(versionNie).VersionNiew(versionNiew).VersionNisw(versionNisw).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkePoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -586,7 +599,16 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **mode** | **[]string** | | - **modeN** | **[]string** | | + **modeEmpty** | **bool** | | + **modeIc** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeIe** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeIew** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeIsw** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeN** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeNic** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeNie** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeNiew** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | + **modeNisw** | [**[]VpnIkePoliciesListModeIcParameterInner**](VpnIkePoliciesListModeIcParameterInner.md) | * `aggressive` - Aggressive * `main` - Main | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -611,16 +633,20 @@ Name | Type | Description | Notes **presharedKeyNie** | **string** | | **presharedKeyNiew** | **string** | | **presharedKeyNisw** | **string** | | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | **updatedByRequest** | **string** | | **version** | **[]int32** | | - **versionN** | **[]int32** | | + **versionIc** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionIe** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionIew** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionIsw** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionN** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionNic** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionNie** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionNiew** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | + **versionNisw** | [**[]VpnIkePoliciesListVersionIcParameterInner**](VpnIkePoliciesListVersionIcParameterInner.md) | * `1` - IKEv1 * `2` - IKEv2 | ### Return type @@ -875,7 +901,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -939,7 +965,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1005,7 +1031,7 @@ import ( ) func main() { - iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_authentication_algorithm_value("hmac-sha1"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | + iKEProposalRequest := []openapiclient.IKEProposalRequest{*openapiclient.NewIKEProposalRequest("Name_example", openapiclient.IKEProposal_authentication_method_value("preshared-keys"), openapiclient.IKEProposal_encryption_algorithm_value("aes-128-cbc"), openapiclient.IKEProposal_group_value(1))} // []IKEProposalRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1186,7 +1212,7 @@ Name | Type | Description | Notes ## VpnIkeProposalsList -> PaginatedIKEProposalList VpnIkeProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationMethod(authenticationMethod).AuthenticationMethodN(authenticationMethodN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Group(group).GroupN(groupN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIKEProposalList VpnIkeProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).AuthenticationMethod(authenticationMethod).AuthenticationMethodEmpty(authenticationMethodEmpty).AuthenticationMethodIc(authenticationMethodIc).AuthenticationMethodIe(authenticationMethodIe).AuthenticationMethodIew(authenticationMethodIew).AuthenticationMethodIsw(authenticationMethodIsw).AuthenticationMethodN(authenticationMethodN).AuthenticationMethodNic(authenticationMethodNic).AuthenticationMethodNie(authenticationMethodNie).AuthenticationMethodNiew(authenticationMethodNiew).AuthenticationMethodNisw(authenticationMethodNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Group(group).GroupIc(groupIc).GroupIe(groupIe).GroupIew(groupIew).GroupIsw(groupIsw).GroupN(groupN).GroupNic(groupNic).GroupNie(groupNie).GroupNiew(groupNiew).GroupNisw(groupNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -1207,9 +1233,27 @@ import ( func main() { authenticationAlgorithm := []string{"Inner_example"} // []string | (optional) - authenticationAlgorithmN := []string{"Inner_example"} // []string | (optional) + authenticationAlgorithmEmpty := true // bool | (optional) + authenticationAlgorithmIc := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmIe := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmIew := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmIsw := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmN := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNic := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNie := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNiew := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNisw := []openapiclient.VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner("")} // []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) authenticationMethod := []string{"Inner_example"} // []string | (optional) - authenticationMethodN := []string{"Inner_example"} // []string | (optional) + authenticationMethodEmpty := true // bool | (optional) + authenticationMethodIc := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodIe := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodIew := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodIsw := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodN := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodNic := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodNie := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodNiew := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) + authenticationMethodNisw := []openapiclient.VpnIkeProposalsListAuthenticationMethodIcParameterInner{openapiclient.vpn_ike_proposals_list_authentication_method__ic_parameter_inner("certificates")} // []VpnIkeProposalsListAuthenticationMethodIcParameterInner | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1230,9 +1274,26 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) encryptionAlgorithm := []string{"Inner_example"} // []string | (optional) - encryptionAlgorithmN := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmEmpty := true // bool | (optional) + encryptionAlgorithmIc := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmIe := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmIew := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmIsw := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmN := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNic := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNie := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNiew := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNisw := []openapiclient.VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{openapiclient.vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner("3des-cbc")} // []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) group := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) - groupN := []int32{int32(123)} // []int32 | Diffie-Hellman group ID (optional) + groupIc := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupIe := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupIew := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupIsw := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupN := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupNic := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupNie := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupNiew := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + groupNisw := []openapiclient.VpnIkeProposalsListGroupIcParameterInner{openapiclient.vpn_ike_proposals_list_group__ic_parameter_inner(1)} // []VpnIkeProposalsListGroupIcParameterInner | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1280,7 +1341,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationMethod(authenticationMethod).AuthenticationMethodN(authenticationMethodN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Group(group).GroupN(groupN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIkeProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).AuthenticationMethod(authenticationMethod).AuthenticationMethodEmpty(authenticationMethodEmpty).AuthenticationMethodIc(authenticationMethodIc).AuthenticationMethodIe(authenticationMethodIe).AuthenticationMethodIew(authenticationMethodIew).AuthenticationMethodIsw(authenticationMethodIsw).AuthenticationMethodN(authenticationMethodN).AuthenticationMethodNic(authenticationMethodNic).AuthenticationMethodNie(authenticationMethodNie).AuthenticationMethodNiew(authenticationMethodNiew).AuthenticationMethodNisw(authenticationMethodNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Group(group).GroupIc(groupIc).GroupIe(groupIe).GroupIew(groupIew).GroupIsw(groupIsw).GroupN(groupN).GroupNic(groupNic).GroupNie(groupNie).GroupNiew(groupNiew).GroupNisw(groupNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetime(saLifetime).SaLifetimeEmpty(saLifetimeEmpty).SaLifetimeGt(saLifetimeGt).SaLifetimeGte(saLifetimeGte).SaLifetimeLt(saLifetimeLt).SaLifetimeLte(saLifetimeLte).SaLifetimeN(saLifetimeN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIkeProposalsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1302,9 +1363,27 @@ Other parameters are passed through a pointer to a apiVpnIkeProposalsListRequest Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authenticationAlgorithm** | **[]string** | | - **authenticationAlgorithmN** | **[]string** | | + **authenticationAlgorithmEmpty** | **bool** | | + **authenticationAlgorithmIc** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmIe** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmIew** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmIsw** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmN** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNic** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNie** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNiew** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNisw** | [**[]VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner**](VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | **authenticationMethod** | **[]string** | | - **authenticationMethodN** | **[]string** | | + **authenticationMethodEmpty** | **bool** | | + **authenticationMethodIc** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodIe** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodIew** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodIsw** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodN** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodNic** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodNie** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodNiew** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | + **authenticationMethodNisw** | [**[]VpnIkeProposalsListAuthenticationMethodIcParameterInner**](VpnIkeProposalsListAuthenticationMethodIcParameterInner.md) | * `preshared-keys` - Pre-shared keys * `certificates` - Certificates * `rsa-signatures` - RSA signatures * `dsa-signatures` - DSA signatures | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1325,9 +1404,26 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **encryptionAlgorithm** | **[]string** | | - **encryptionAlgorithmN** | **[]string** | | + **encryptionAlgorithmEmpty** | **bool** | | + **encryptionAlgorithmIc** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmIe** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmIew** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmIsw** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmN** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNic** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNie** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNiew** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNisw** | [**[]VpnIkeProposalsListEncryptionAlgorithmIcParameterInner**](VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | **group** | **[]int32** | Diffie-Hellman group ID | - **groupN** | **[]int32** | Diffie-Hellman group ID | + **groupIc** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupIe** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupIew** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupIsw** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupN** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupNic** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupNie** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupNiew** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **groupNisw** | [**[]VpnIkeProposalsListGroupIcParameterInner**](VpnIkeProposalsListGroupIcParameterInner.md) | Diffie-Hellman group ID * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1937,7 +2033,7 @@ Name | Type | Description | Notes ## VpnIpsecPoliciesList -> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecPolicyList VpnIpsecPoliciesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupIc(pfsGroupIc).PfsGroupIe(pfsGroupIe).PfsGroupIew(pfsGroupIew).PfsGroupIsw(pfsGroupIsw).PfsGroupN(pfsGroupN).PfsGroupNic(pfsGroupNic).PfsGroupNie(pfsGroupNie).PfsGroupNiew(pfsGroupNiew).PfsGroupNisw(pfsGroupNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2010,11 +2106,15 @@ func main() { offset := int32(56) // int32 | The initial index from which to return the results. (optional) ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) pfsGroup := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) - pfsGroupN := []*int32{int32(123)} // []*int32 | Diffie-Hellman group for Perfect Forward Secrecy (optional) - proposal := []string{"Inner_example"} // []string | (optional) - proposalN := []string{"Inner_example"} // []string | (optional) - proposalId := []int32{int32(123)} // []int32 | (optional) - proposalIdN := []int32{int32(123)} // []int32 | (optional) + pfsGroupIc := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupIe := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupIew := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupIsw := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupN := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupNic := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupNie := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupNiew := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) + pfsGroupNisw := []openapiclient.VpnIpsecPoliciesListPfsGroupIcParameterInner{openapiclient.vpn_ipsec_policies_list_pfs_group__ic_parameter_inner(1)} // []VpnIpsecPoliciesListPfsGroupIcParameterInner | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 (optional) q := "q_example" // string | Search (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) @@ -2022,7 +2122,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupN(pfsGroupN).Proposal(proposal).ProposalN(proposalN).ProposalId(proposalId).ProposalIdN(proposalIdN).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecPoliciesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProposal(ipsecProposal).IpsecProposalN(ipsecProposalN).IpsecProposalId(ipsecProposalId).IpsecProposalIdN(ipsecProposalIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).PfsGroup(pfsGroup).PfsGroupIc(pfsGroupIc).PfsGroupIe(pfsGroupIe).PfsGroupIew(pfsGroupIew).PfsGroupIsw(pfsGroupIsw).PfsGroupN(pfsGroupN).PfsGroupNic(pfsGroupNic).PfsGroupNie(pfsGroupNie).PfsGroupNiew(pfsGroupNiew).PfsGroupNisw(pfsGroupNisw).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecPoliciesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2096,11 +2196,15 @@ Name | Type | Description | Notes **offset** | **int32** | The initial index from which to return the results. | **ordering** | **string** | Which field to use when ordering the results. | **pfsGroup** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | - **pfsGroupN** | **[]int32** | Diffie-Hellman group for Perfect Forward Secrecy | - **proposal** | **[]string** | | - **proposalN** | **[]string** | | - **proposalId** | **[]int32** | | - **proposalIdN** | **[]int32** | | + **pfsGroupIc** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupIe** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupIew** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupIsw** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupN** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupNic** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupNie** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupNiew** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | + **pfsGroupNisw** | [**[]VpnIpsecPoliciesListPfsGroupIcParameterInner**](VpnIpsecPoliciesListPfsGroupIcParameterInner.md) | Diffie-Hellman group for Perfect Forward Secrecy * `1` - Group 1 * `2` - Group 2 * `5` - Group 5 * `14` - Group 14 * `15` - Group 15 * `16` - Group 16 * `17` - Group 17 * `18` - Group 18 * `19` - Group 19 * `20` - Group 20 * `21` - Group 21 * `22` - Group 22 * `23` - Group 23 * `24` - Group 24 * `25` - Group 25 * `26` - Group 26 * `27` - Group 27 * `28` - Group 28 * `29` - Group 29 * `30` - Group 30 * `31` - Group 31 * `32` - Group 32 * `33` - Group 33 * `34` - Group 34 | **q** | **string** | Search | **tag** | **[]string** | | **tagN** | **[]string** | | @@ -2359,7 +2463,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2423,7 +2527,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2489,7 +2593,7 @@ import ( ) func main() { - iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | + iPSecProfileRequest := []openapiclient.IPSecProfileRequest{*openapiclient.NewIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example"))} // []IPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2555,7 +2659,7 @@ import ( ) func main() { - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -2670,7 +2774,7 @@ Name | Type | Description | Notes ## VpnIpsecProfilesList -> PaginatedIPSecProfileList VpnIpsecProfilesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecProfileList VpnIpsecProfilesList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -2733,7 +2837,16 @@ func main() { lastUpdatedN := []time.Time{time.Now()} // []time.Time | (optional) limit := int32(56) // int32 | Number of results to return per page. (optional) mode := []string{"Inner_example"} // []string | (optional) - modeN := []string{"Inner_example"} // []string | (optional) + modeEmpty := true // bool | (optional) + modeIc := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeIe := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeIew := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeIsw := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeN := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeNic := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeNie := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeNiew := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) + modeNisw := []openapiclient.VpnIpsecProfilesListModeIcParameterInner{openapiclient.vpn_ipsec_profiles_list_mode__ic_parameter_inner("ah")} // []VpnIpsecProfilesListModeIcParameterInner | * `esp` - ESP * `ah` - AH (optional) modifiedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) name := []string{"Inner_example"} // []string | (optional) nameEmpty := true // bool | (optional) @@ -2755,7 +2868,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeN(modeN).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecProfilesList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IkePolicy(ikePolicy).IkePolicyN(ikePolicyN).IkePolicyId(ikePolicyId).IkePolicyIdN(ikePolicyIdN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).Mode(mode).ModeEmpty(modeEmpty).ModeIc(modeIc).ModeIe(modeIe).ModeIew(modeIew).ModeIsw(modeIsw).ModeN(modeN).ModeNic(modeNic).ModeNie(modeNie).ModeNiew(modeNiew).ModeNisw(modeNisw).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProfilesList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2819,7 +2932,16 @@ Name | Type | Description | Notes **lastUpdatedN** | [**[]time.Time**](time.Time.md) | | **limit** | **int32** | Number of results to return per page. | **mode** | **[]string** | | - **modeN** | **[]string** | | + **modeEmpty** | **bool** | | + **modeIc** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeIe** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeIew** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeIsw** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeN** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeNic** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeNie** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeNiew** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | + **modeNisw** | [**[]VpnIpsecProfilesListModeIcParameterInner**](VpnIpsecProfilesListModeIcParameterInner.md) | * `esp` - ESP * `ah` - AH | **modifiedByRequest** | **string** | | **name** | **[]string** | | **nameEmpty** | **bool** | | @@ -3021,7 +3143,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this IPSec profile. - writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewIKEPolicyRequest("Name_example", openapiclient.IKEPolicy_version_value(1), openapiclient.IKEPolicy_mode_value("aggressive")), *openapiclient.NewIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | + writableIPSecProfileRequest := *openapiclient.NewWritableIPSecProfileRequest("Name_example", openapiclient.IPSecProfile_mode_value("esp"), *openapiclient.NewBriefIKEPolicyRequest("Name_example"), *openapiclient.NewBriefIPSecPolicyRequest("Name_example")) // WritableIPSecProfileRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3403,7 +3525,7 @@ Name | Type | Description | Notes ## VpnIpsecProposalsList -> PaginatedIPSecProposalList VpnIpsecProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedIPSecProposalList VpnIpsecProposalsList(ctx).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() @@ -3424,7 +3546,16 @@ import ( func main() { authenticationAlgorithm := []string{"Inner_example"} // []string | (optional) - authenticationAlgorithmN := []string{"Inner_example"} // []string | (optional) + authenticationAlgorithmEmpty := true // bool | (optional) + authenticationAlgorithmIc := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmIe := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmIew := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmIsw := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmN := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNic := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNie := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNiew := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) + authenticationAlgorithmNisw := []openapiclient.Authentication{openapiclient.Authentication("")} // []Authentication | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -3445,7 +3576,16 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) encryptionAlgorithm := []string{"Inner_example"} // []string | (optional) - encryptionAlgorithmN := []string{"Inner_example"} // []string | (optional) + encryptionAlgorithmEmpty := true // bool | (optional) + encryptionAlgorithmIc := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmIe := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmIew := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmIsw := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmN := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNic := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNie := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNiew := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) + encryptionAlgorithmNisw := []openapiclient.Encryption{openapiclient.Encryption("")} // []Encryption | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -3500,7 +3640,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmN(authenticationAlgorithmN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmN(encryptionAlgorithmN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnIpsecProposalsList(context.Background()).AuthenticationAlgorithm(authenticationAlgorithm).AuthenticationAlgorithmEmpty(authenticationAlgorithmEmpty).AuthenticationAlgorithmIc(authenticationAlgorithmIc).AuthenticationAlgorithmIe(authenticationAlgorithmIe).AuthenticationAlgorithmIew(authenticationAlgorithmIew).AuthenticationAlgorithmIsw(authenticationAlgorithmIsw).AuthenticationAlgorithmN(authenticationAlgorithmN).AuthenticationAlgorithmNic(authenticationAlgorithmNic).AuthenticationAlgorithmNie(authenticationAlgorithmNie).AuthenticationAlgorithmNiew(authenticationAlgorithmNiew).AuthenticationAlgorithmNisw(authenticationAlgorithmNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).EncryptionAlgorithm(encryptionAlgorithm).EncryptionAlgorithmEmpty(encryptionAlgorithmEmpty).EncryptionAlgorithmIc(encryptionAlgorithmIc).EncryptionAlgorithmIe(encryptionAlgorithmIe).EncryptionAlgorithmIew(encryptionAlgorithmIew).EncryptionAlgorithmIsw(encryptionAlgorithmIsw).EncryptionAlgorithmN(encryptionAlgorithmN).EncryptionAlgorithmNic(encryptionAlgorithmNic).EncryptionAlgorithmNie(encryptionAlgorithmNie).EncryptionAlgorithmNiew(encryptionAlgorithmNiew).EncryptionAlgorithmNisw(encryptionAlgorithmNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecPolicy(ipsecPolicy).IpsecPolicyN(ipsecPolicyN).IpsecPolicyId(ipsecPolicyId).IpsecPolicyIdN(ipsecPolicyIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).SaLifetimeData(saLifetimeData).SaLifetimeDataEmpty(saLifetimeDataEmpty).SaLifetimeDataGt(saLifetimeDataGt).SaLifetimeDataGte(saLifetimeDataGte).SaLifetimeDataLt(saLifetimeDataLt).SaLifetimeDataLte(saLifetimeDataLte).SaLifetimeDataN(saLifetimeDataN).SaLifetimeSeconds(saLifetimeSeconds).SaLifetimeSecondsEmpty(saLifetimeSecondsEmpty).SaLifetimeSecondsGt(saLifetimeSecondsGt).SaLifetimeSecondsGte(saLifetimeSecondsGte).SaLifetimeSecondsLt(saLifetimeSecondsLt).SaLifetimeSecondsLte(saLifetimeSecondsLte).SaLifetimeSecondsN(saLifetimeSecondsN).Tag(tag).TagN(tagN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnIpsecProposalsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -3522,7 +3662,16 @@ Other parameters are passed through a pointer to a apiVpnIpsecProposalsListReque Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authenticationAlgorithm** | **[]string** | | - **authenticationAlgorithmN** | **[]string** | | + **authenticationAlgorithmEmpty** | **bool** | | + **authenticationAlgorithmIc** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmIe** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmIew** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmIsw** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmN** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNic** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNie** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNiew** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | + **authenticationAlgorithmNisw** | [**[]Authentication**](Authentication.md) | * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -3543,7 +3692,16 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **encryptionAlgorithm** | **[]string** | | - **encryptionAlgorithmN** | **[]string** | | + **encryptionAlgorithmEmpty** | **bool** | | + **encryptionAlgorithmIc** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmIe** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmIew** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmIsw** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmN** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNic** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNie** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNiew** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | + **encryptionAlgorithmNisw** | [**[]Encryption**](Encryption.md) | * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -3849,7 +4007,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3913,7 +4071,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -3979,7 +4137,7 @@ import ( ) func main() { - l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example"))} // []L2VPNTerminationRequest | + l2VPNTerminationRequest := []openapiclient.L2VPNTerminationRequest{*openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123))} // []L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4045,7 +4203,7 @@ import ( ) func main() { - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4535,7 +4693,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN termination. - l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewL2VPNRequest("Name_example", "Slug_example")) // L2VPNTerminationRequest | + l2VPNTerminationRequest := *openapiclient.NewL2VPNTerminationRequest(*openapiclient.NewBriefL2VPNRequest("Name_example", "Slug_example"), "AssignedObjectType_example", int64(123)) // L2VPNTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4802,7 +4960,7 @@ import ( ) func main() { - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -4917,7 +5075,7 @@ Name | Type | Description | Notes ## VpnL2vpnsList -> PaginatedL2VPNList VpnL2vpnsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedL2VPNList VpnL2vpnsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() @@ -5016,19 +5174,28 @@ func main() { tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) type_ := []string{"Inner_example"} // []string | (optional) - typeN := []string{"Inner_example"} // []string | (optional) + typeEmpty := true // bool | (optional) + typeIc := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeIe := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeIew := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeIsw := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeN := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeNic := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeNie := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeNiew := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) + typeNisw := []openapiclient.VpnL2vpnsListTypeIcParameterInner{openapiclient.vpn_l2vpns_list_type__ic_parameter_inner("ep-lan")} // []VpnL2vpnsListTypeIcParameterInner | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnL2vpnsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeN(typeN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnL2vpnsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).ExportTarget(exportTarget).ExportTargetN(exportTargetN).ExportTargetId(exportTargetId).ExportTargetIdN(exportTargetIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Identifier(identifier).IdentifierEmpty(identifierEmpty).IdentifierGt(identifierGt).IdentifierGte(identifierGte).IdentifierLt(identifierLt).IdentifierLte(identifierLte).IdentifierN(identifierN).ImportTarget(importTarget).ImportTargetN(importTargetN).ImportTargetId(importTargetId).ImportTargetIdN(importTargetIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Slug(slug).SlugEmpty(slugEmpty).SlugIc(slugIc).SlugIe(slugIe).SlugIew(slugIew).SlugIsw(slugIsw).SlugN(slugN).SlugNic(slugNic).SlugNie(slugNie).SlugNiew(slugNiew).SlugNisw(slugNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).Type_(type_).TypeEmpty(typeEmpty).TypeIc(typeIc).TypeIe(typeIe).TypeIew(typeIew).TypeIsw(typeIsw).TypeN(typeN).TypeNic(typeNic).TypeNie(typeNie).TypeNiew(typeNiew).TypeNisw(typeNisw).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnL2vpnsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -5128,14 +5295,23 @@ Name | Type | Description | Notes **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **type_** | **[]string** | | - **typeN** | **[]string** | | + **typeEmpty** | **bool** | | + **typeIc** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeIe** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeIew** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeIsw** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeN** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeNic** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeNie** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeNiew** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | + **typeNisw** | [**[]VpnL2vpnsListTypeIcParameterInner**](VpnL2vpnsListTypeIcParameterInner.md) | * `vpws` - VPWS * `vpls` - VPLS * `vxlan` - VXLAN * `vxlan-evpn` - VXLAN-EVPN * `mpls-evpn` - MPLS EVPN * `pbb-evpn` - PBB EVPN * `epl` - EPL * `evpl` - EVPL * `ep-lan` - Ethernet Private LAN * `evp-lan` - Ethernet Virtual Private LAN * `ep-tree` - Ethernet Private Tree * `evp-tree` - Ethernet Virtual Private Tree | **updatedByRequest** | **string** | | ### Return type @@ -5320,7 +5496,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this L2VPN. - writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.L2VPN_type_value("vpws")) // WritableL2VPNRequest | + writableL2VPNRequest := *openapiclient.NewWritableL2VPNRequest("Name_example", "Slug_example", openapiclient.BriefL2VPN_type_value("vpws")) // WritableL2VPNRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6126,7 +6302,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6190,7 +6366,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6256,7 +6432,7 @@ import ( ) func main() { - tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | + tunnelTerminationRequest := []openapiclient.TunnelTerminationRequest{*openapiclient.NewTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), openapiclient.PatchedWritableTunnelTerminationRequest_role("peer"), "TerminationType_example", NullableInt64(123))} // []TunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6322,7 +6498,7 @@ import ( ) func main() { - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6437,7 +6613,7 @@ Name | Type | Description | Notes ## VpnTunnelTerminationsList -> PaginatedTunnelTerminationList VpnTunnelTerminationsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleN(roleN).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() +> PaginatedTunnelTerminationList VpnTunnelTerminationsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() @@ -6491,7 +6667,16 @@ func main() { outsideIpIdN := []int32{int32(123)} // []int32 | Outside IP (ID) (optional) q := "q_example" // string | Search (optional) role := []string{"Inner_example"} // []string | (optional) - roleN := []string{"Inner_example"} // []string | (optional) + roleEmpty := true // bool | (optional) + roleIc := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleIe := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleIew := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleIsw := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleN := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleNic := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleNie := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleNiew := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) + roleNisw := []openapiclient.VpnTunnelTerminationsListRoleIcParameterInner{openapiclient.vpn_tunnel_terminations_list_role__ic_parameter_inner("hub")} // []VpnTunnelTerminationsListRoleIcParameterInner | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) terminationId := []int32{int32(123)} // []int32 | (optional) @@ -6515,7 +6700,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleN(roleN).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() + resp, r, err := apiClient.VpnAPI.VpnTunnelTerminationsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).Interface_(interface_).InterfaceN(interfaceN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).OutsideIpId(outsideIpId).OutsideIpIdN(outsideIpIdN).Q(q).Role(role).RoleEmpty(roleEmpty).RoleIc(roleIc).RoleIe(roleIe).RoleIew(roleIew).RoleIsw(roleIsw).RoleN(roleN).RoleNic(roleNic).RoleNie(roleNie).RoleNiew(roleNiew).RoleNisw(roleNisw).Tag(tag).TagN(tagN).TerminationId(terminationId).TerminationIdEmpty(terminationIdEmpty).TerminationIdGt(terminationIdGt).TerminationIdGte(terminationIdGte).TerminationIdLt(terminationIdLt).TerminationIdLte(terminationIdLte).TerminationIdN(terminationIdN).TerminationType(terminationType).TerminationTypeN(terminationTypeN).Tunnel(tunnel).TunnelN(tunnelN).TunnelId(tunnelId).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Vminterface(vminterface).VminterfaceN(vminterfaceN).VminterfaceId(vminterfaceId).VminterfaceIdN(vminterfaceIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelTerminationsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -6570,7 +6755,16 @@ Name | Type | Description | Notes **outsideIpIdN** | **[]int32** | Outside IP (ID) | **q** | **string** | Search | **role** | **[]string** | | - **roleN** | **[]string** | | + **roleEmpty** | **bool** | | + **roleIc** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleIe** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleIew** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleIsw** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleN** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleNic** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleNie** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleNiew** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | + **roleNisw** | [**[]VpnTunnelTerminationsListRoleIcParameterInner**](VpnTunnelTerminationsListRoleIcParameterInner.md) | * `peer` - Peer * `hub` - Hub * `spoke` - Spoke | **tag** | **[]string** | | **tagN** | **[]string** | | **terminationId** | **[]int32** | | @@ -6774,7 +6968,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this tunnel termination. - writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | + writableTunnelTerminationRequest := *openapiclient.NewWritableTunnelTerminationRequest(*openapiclient.NewBriefTunnelRequest("Name_example"), "TerminationType_example", NullableInt64(123)) // WritableTunnelTerminationRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6845,7 +7039,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6909,7 +7103,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -6975,7 +7169,7 @@ import ( ) func main() { - tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example")} // []TunnelRequest | + tunnelRequest := []openapiclient.TunnelRequest{*openapiclient.NewTunnelRequest("Name_example", openapiclient.PatchedWritableTunnelRequest_status("planned"), openapiclient.PatchedWritableTunnelRequest_encapsulation("ipsec-transport"))} // []TunnelRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -7156,7 +7350,7 @@ Name | Type | Description | Notes ## VpnTunnelsList -> PaginatedTunnelList VpnTunnelsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Encapsulation(encapsulation).EncapsulationN(encapsulationN).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedTunnelList VpnTunnelsList(ctx).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Encapsulation(encapsulation).EncapsulationEmpty(encapsulationEmpty).EncapsulationIc(encapsulationIc).EncapsulationIe(encapsulationIe).EncapsulationIew(encapsulationIew).EncapsulationIsw(encapsulationIsw).EncapsulationN(encapsulationN).EncapsulationNic(encapsulationNic).EncapsulationNie(encapsulationNie).EncapsulationNiew(encapsulationNiew).EncapsulationNisw(encapsulationNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -7196,7 +7390,16 @@ func main() { descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) encapsulation := []string{"Inner_example"} // []string | (optional) - encapsulationN := []string{"Inner_example"} // []string | (optional) + encapsulationEmpty := true // bool | (optional) + encapsulationIc := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationIe := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationIew := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationIsw := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationN := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationNic := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationNie := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationNiew := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) + encapsulationNisw := []openapiclient.VpnTunnelsListEncapsulationIcParameterInner{openapiclient.vpn_tunnels_list_encapsulation__ic_parameter_inner("gre")} // []VpnTunnelsListEncapsulationIcParameterInner | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE (optional) group := []string{"Inner_example"} // []string | Tunnel group (slug) (optional) groupN := []string{"Inner_example"} // []string | Tunnel group (slug) (optional) groupId := []*int32{int32(123)} // []*int32 | Tunnel group (ID) (optional) @@ -7236,15 +7439,24 @@ func main() { ordering := "ordering_example" // string | Which field to use when ordering the results. (optional) q := "q_example" // string | Search (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusIe := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusIew := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusIsw := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusN := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusNic := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusNie := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusNiew := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) + statusNisw := []openapiclient.VpnTunnelsListStatusIcParameterInner{openapiclient.vpn_tunnels_list_status__ic_parameter_inner("active")} // []VpnTunnelsListStatusIcParameterInner | * `planned` - Planned * `active` - Active * `disabled` - Disabled (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tunnelId := []int32{int32(123)} // []int32 | (optional) @@ -7258,7 +7470,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.VpnAPI.VpnTunnelsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Encapsulation(encapsulation).EncapsulationN(encapsulationN).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.VpnAPI.VpnTunnelsList(context.Background()).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Encapsulation(encapsulation).EncapsulationEmpty(encapsulationEmpty).EncapsulationIc(encapsulationIc).EncapsulationIe(encapsulationIe).EncapsulationIew(encapsulationIew).EncapsulationIsw(encapsulationIsw).EncapsulationN(encapsulationN).EncapsulationNic(encapsulationNic).EncapsulationNie(encapsulationNie).EncapsulationNiew(encapsulationNiew).EncapsulationNisw(encapsulationNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).IpsecProfile(ipsecProfile).IpsecProfileN(ipsecProfileN).IpsecProfileId(ipsecProfileId).IpsecProfileIdN(ipsecProfileIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Name(name).NameEmpty(nameEmpty).NameIc(nameIc).NameIe(nameIe).NameIew(nameIew).NameIsw(nameIsw).NameN(nameN).NameNic(nameNic).NameNie(nameNie).NameNiew(nameNiew).NameNisw(nameNisw).Offset(offset).Ordering(ordering).Q(q).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).TunnelId(tunnelId).TunnelIdEmpty(tunnelIdEmpty).TunnelIdGt(tunnelIdGt).TunnelIdGte(tunnelIdGte).TunnelIdLt(tunnelIdLt).TunnelIdLte(tunnelIdLte).TunnelIdN(tunnelIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `VpnAPI.VpnTunnelsList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -7299,7 +7511,16 @@ Name | Type | Description | Notes **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | **encapsulation** | **[]string** | | - **encapsulationN** | **[]string** | | + **encapsulationEmpty** | **bool** | | + **encapsulationIc** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationIe** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationIew** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationIsw** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationN** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationNic** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationNie** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationNiew** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | + **encapsulationNisw** | [**[]VpnTunnelsListEncapsulationIcParameterInner**](VpnTunnelsListEncapsulationIcParameterInner.md) | * `ipsec-transport` - IPsec - Transport * `ipsec-tunnel` - IPsec - Tunnel * `ip-ip` - IP-in-IP * `gre` - GRE | **group** | **[]string** | Tunnel group (slug) | **groupN** | **[]string** | Tunnel group (slug) | **groupId** | **[]int32** | Tunnel group (ID) | @@ -7339,15 +7560,24 @@ Name | Type | Description | Notes **ordering** | **string** | Which field to use when ordering the results. | **q** | **string** | Search | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusIe** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusIew** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusIsw** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusN** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusNic** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusNie** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusNiew** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | + **statusNisw** | [**[]VpnTunnelsListStatusIcParameterInner**](VpnTunnelsListStatusIcParameterInner.md) | * `planned` - Planned * `active` - Active * `disabled` - Disabled | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **tunnelId** | **[]int32** | | diff --git a/docs/Webhook.md b/docs/Webhook.md index 146995485..3d32e0c65 100644 --- a/docs/Webhook.md +++ b/docs/Webhook.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Description** | Pointer to **string** | | [optional] @@ -81,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *Webhook) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *Webhook) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *Webhook) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *Webhook) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *Webhook) GetDisplay() string` diff --git a/docs/WirelessAPI.md b/docs/WirelessAPI.md index e35e3430e..8362721a9 100644 --- a/docs/WirelessAPI.md +++ b/docs/WirelessAPI.md @@ -386,10 +386,10 @@ import ( ) func main() { - ancestor := []int32{int32(123)} // []int32 | (optional) - ancestorN := []int32{int32(123)} // []int32 | (optional) - ancestorId := []int32{int32(123)} // []int32 | (optional) - ancestorIdN := []int32{int32(123)} // []int32 | (optional) + ancestor := []string{"Inner_example"} // []string | (optional) + ancestorN := []string{"Inner_example"} // []string | (optional) + ancestorId := []string{"Inner_example"} // []string | (optional) + ancestorIdN := []string{"Inner_example"} // []string | (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -481,10 +481,10 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLanGroupsL Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **ancestor** | **[]int32** | | - **ancestorN** | **[]int32** | | - **ancestorId** | **[]int32** | | - **ancestorIdN** | **[]int32** | | + **ancestor** | **[]string** | | + **ancestorN** | **[]string** | | + **ancestorId** | **[]string** | | + **ancestorIdN** | **[]string** | | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1117,7 +1117,7 @@ Name | Type | Description | Notes ## WirelessWirelessLansList -> PaginatedWirelessLANList WirelessWirelessLansList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() +> PaginatedWirelessLANList WirelessWirelessLansList(ctx).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() @@ -1138,7 +1138,16 @@ import ( func main() { authCipher := []string{"Inner_example"} // []string | (optional) - authCipherN := []string{"Inner_example"} // []string | (optional) + authCipherEmpty := true // bool | (optional) + authCipherIc := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherIe := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherIew := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherIsw := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherN := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNic := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNie := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNiew := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNisw := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) authPsk := []string{"Inner_example"} // []string | (optional) authPskEmpty := true // bool | (optional) authPskIc := []string{"Inner_example"} // []string | (optional) @@ -1151,7 +1160,16 @@ func main() { authPskNiew := []string{"Inner_example"} // []string | (optional) authPskNisw := []string{"Inner_example"} // []string | (optional) authType := []string{"Inner_example"} // []string | (optional) - authTypeN := []string{"Inner_example"} // []string | (optional) + authTypeEmpty := true // bool | (optional) + authTypeIc := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeIe := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeIew := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeIsw := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeN := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNic := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNie := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNiew := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNisw := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1171,10 +1189,10 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) - group := []int32{int32(123)} // []int32 | (optional) - groupN := []int32{int32(123)} // []int32 | (optional) - groupId := []int32{int32(123)} // []int32 | (optional) - groupIdN := []int32{int32(123)} // []int32 | (optional) + group := []string{"Inner_example"} // []string | (optional) + groupN := []string{"Inner_example"} // []string | (optional) + groupId := []string{"Inner_example"} // []string | (optional) + groupIdN := []string{"Inner_example"} // []string | (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1208,15 +1226,24 @@ func main() { ssidNiew := []string{"Inner_example"} // []string | (optional) ssidNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusIe := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusIew := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusIsw := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusN := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusNic := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusNie := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusNiew := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) + statusNisw := []openapiclient.WirelessWirelessLansListStatusIcParameterInner{openapiclient.wireless_wireless_lans_list_status__ic_parameter_inner("active")} // []WirelessWirelessLansListStatusIcParameterInner | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) @@ -1225,7 +1252,7 @@ func main() { configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLansList(context.Background()).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Group(group).GroupN(groupN).GroupId(groupId).GroupIdN(groupIdN).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceId(interfaceId).InterfaceIdN(interfaceIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).VlanId(vlanId).VlanIdN(vlanIdN).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLansList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -1247,7 +1274,16 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLansListRe Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authCipher** | **[]string** | | - **authCipherN** | **[]string** | | + **authCipherEmpty** | **bool** | | + **authCipherIc** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherIe** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherIew** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherIsw** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherN** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNic** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNie** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNiew** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNisw** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | **authPsk** | **[]string** | | **authPskEmpty** | **bool** | | **authPskIc** | **[]string** | | @@ -1260,7 +1296,16 @@ Name | Type | Description | Notes **authPskNiew** | **[]string** | | **authPskNisw** | **[]string** | | **authType** | **[]string** | | - **authTypeN** | **[]string** | | + **authTypeEmpty** | **bool** | | + **authTypeIc** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeIe** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeIew** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeIsw** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeN** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNic** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNie** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNiew** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNisw** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -1280,10 +1325,10 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | - **group** | **[]int32** | | - **groupN** | **[]int32** | | - **groupId** | **[]int32** | | - **groupIdN** | **[]int32** | | + **group** | **[]string** | | + **groupN** | **[]string** | | + **groupId** | **[]string** | | + **groupIdN** | **[]string** | | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -1317,15 +1362,24 @@ Name | Type | Description | Notes **ssidNiew** | **[]string** | | **ssidNisw** | **[]string** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusIe** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusIew** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusIsw** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusN** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusNic** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusNie** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusNiew** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | + **statusNisw** | [**[]WirelessWirelessLansListStatusIcParameterInner**](WirelessWirelessLansListStatusIcParameterInner.md) | * `active` - Active * `reserved` - Reserved * `disabled` - Disabled * `deprecated` - Deprecated | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -1585,7 +1639,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1649,7 +1703,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1715,7 +1769,7 @@ import ( ) func main() { - wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")))} // []WirelessLinkRequest | + wirelessLinkRequest := []openapiclient.WirelessLinkRequest{*openapiclient.NewWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"))} // []WirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1781,7 +1835,7 @@ import ( ) func main() { - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) @@ -1896,7 +1950,7 @@ Name | Type | Description | Notes ## WirelessWirelessLinksList -> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() +> PaginatedWirelessLinkList WirelessWirelessLinksList(ctx).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() @@ -1917,7 +1971,16 @@ import ( func main() { authCipher := []string{"Inner_example"} // []string | (optional) - authCipherN := []string{"Inner_example"} // []string | (optional) + authCipherEmpty := true // bool | (optional) + authCipherIc := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherIe := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherIew := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherIsw := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherN := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNic := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNie := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNiew := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) + authCipherNisw := []openapiclient.AuthenticationCipher{openapiclient.Authentication_cipher("")} // []AuthenticationCipher | * `auto` - Auto * `tkip` - TKIP * `aes` - AES (optional) authPsk := []string{"Inner_example"} // []string | (optional) authPskEmpty := true // bool | (optional) authPskIc := []string{"Inner_example"} // []string | (optional) @@ -1930,7 +1993,16 @@ func main() { authPskNiew := []string{"Inner_example"} // []string | (optional) authPskNisw := []string{"Inner_example"} // []string | (optional) authType := []string{"Inner_example"} // []string | (optional) - authTypeN := []string{"Inner_example"} // []string | (optional) + authTypeEmpty := true // bool | (optional) + authTypeIc := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeIe := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeIew := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeIsw := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeN := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNic := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNie := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNiew := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) + authTypeNisw := []openapiclient.AuthenticationType1{openapiclient.Authentication_type_1("")} // []AuthenticationType1 | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise (optional) created := []time.Time{time.Now()} // []time.Time | (optional) createdEmpty := []time.Time{time.Now()} // []time.Time | (optional) createdGt := []time.Time{time.Now()} // []time.Time | (optional) @@ -1950,6 +2022,14 @@ func main() { descriptionNie := []string{"Inner_example"} // []string | (optional) descriptionNiew := []string{"Inner_example"} // []string | (optional) descriptionNisw := []string{"Inner_example"} // []string | (optional) + distance := []float64{float64(123)} // []float64 | (optional) + distanceEmpty := true // bool | (optional) + distanceGt := []float64{float64(123)} // []float64 | (optional) + distanceGte := []float64{float64(123)} // []float64 | (optional) + distanceLt := []float64{float64(123)} // []float64 | (optional) + distanceLte := []float64{float64(123)} // []float64 | (optional) + distanceN := []float64{float64(123)} // []float64 | (optional) + distanceUnit := openapiclient.wireless_wireless_links_list_distance_unit_parameter("ft") // WirelessWirelessLinksListDistanceUnitParameter | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet (optional) id := []int32{int32(123)} // []int32 | (optional) idEmpty := true // bool | (optional) idGt := []int32{int32(123)} // []int32 | (optional) @@ -1985,22 +2065,31 @@ func main() { ssidNiew := []string{"Inner_example"} // []string | (optional) ssidNisw := []string{"Inner_example"} // []string | (optional) status := []string{"Inner_example"} // []string | (optional) - statusN := []string{"Inner_example"} // []string | (optional) + statusEmpty := true // bool | (optional) + statusIc := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusIe := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusIew := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusIsw := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusN := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNic := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNie := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNiew := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) + statusNisw := []openapiclient.DcimCablesListStatusIcParameterInner{openapiclient.dcim_cables_list_status__ic_parameter_inner("connected")} // []DcimCablesListStatusIcParameterInner | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning (optional) tag := []string{"Inner_example"} // []string | (optional) tagN := []string{"Inner_example"} // []string | (optional) tenant := []string{"Inner_example"} // []string | Tenant (slug) (optional) tenantN := []string{"Inner_example"} // []string | Tenant (slug) (optional) - tenantGroup := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupN := []int32{int32(123)} // []int32 | Tenant Group (slug) (optional) - tenantGroupId := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) - tenantGroupIdN := []int32{int32(123)} // []int32 | Tenant Group (ID) (optional) + tenantGroup := []string{"Inner_example"} // []string | (optional) + tenantGroupN := []string{"Inner_example"} // []string | (optional) + tenantGroupId := []string{"Inner_example"} // []string | (optional) + tenantGroupIdN := []string{"Inner_example"} // []string | (optional) tenantId := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) tenantIdN := []*int32{int32(123)} // []*int32 | Tenant (ID) (optional) updatedByRequest := "38400000-8cf0-11bd-b23e-10b96e4ef00d" // string | (optional) configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) - resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherN(authCipherN).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeN(authTypeN).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusN(statusN).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() + resp, r, err := apiClient.WirelessAPI.WirelessWirelessLinksList(context.Background()).AuthCipher(authCipher).AuthCipherEmpty(authCipherEmpty).AuthCipherIc(authCipherIc).AuthCipherIe(authCipherIe).AuthCipherIew(authCipherIew).AuthCipherIsw(authCipherIsw).AuthCipherN(authCipherN).AuthCipherNic(authCipherNic).AuthCipherNie(authCipherNie).AuthCipherNiew(authCipherNiew).AuthCipherNisw(authCipherNisw).AuthPsk(authPsk).AuthPskEmpty(authPskEmpty).AuthPskIc(authPskIc).AuthPskIe(authPskIe).AuthPskIew(authPskIew).AuthPskIsw(authPskIsw).AuthPskN(authPskN).AuthPskNic(authPskNic).AuthPskNie(authPskNie).AuthPskNiew(authPskNiew).AuthPskNisw(authPskNisw).AuthType(authType).AuthTypeEmpty(authTypeEmpty).AuthTypeIc(authTypeIc).AuthTypeIe(authTypeIe).AuthTypeIew(authTypeIew).AuthTypeIsw(authTypeIsw).AuthTypeN(authTypeN).AuthTypeNic(authTypeNic).AuthTypeNie(authTypeNie).AuthTypeNiew(authTypeNiew).AuthTypeNisw(authTypeNisw).Created(created).CreatedEmpty(createdEmpty).CreatedGt(createdGt).CreatedGte(createdGte).CreatedLt(createdLt).CreatedLte(createdLte).CreatedN(createdN).CreatedByRequest(createdByRequest).Description(description).DescriptionEmpty(descriptionEmpty).DescriptionIc(descriptionIc).DescriptionIe(descriptionIe).DescriptionIew(descriptionIew).DescriptionIsw(descriptionIsw).DescriptionN(descriptionN).DescriptionNic(descriptionNic).DescriptionNie(descriptionNie).DescriptionNiew(descriptionNiew).DescriptionNisw(descriptionNisw).Distance(distance).DistanceEmpty(distanceEmpty).DistanceGt(distanceGt).DistanceGte(distanceGte).DistanceLt(distanceLt).DistanceLte(distanceLte).DistanceN(distanceN).DistanceUnit(distanceUnit).Id(id).IdEmpty(idEmpty).IdGt(idGt).IdGte(idGte).IdLt(idLt).IdLte(idLte).IdN(idN).InterfaceAId(interfaceAId).InterfaceAIdN(interfaceAIdN).InterfaceBId(interfaceBId).InterfaceBIdN(interfaceBIdN).LastUpdated(lastUpdated).LastUpdatedEmpty(lastUpdatedEmpty).LastUpdatedGt(lastUpdatedGt).LastUpdatedGte(lastUpdatedGte).LastUpdatedLt(lastUpdatedLt).LastUpdatedLte(lastUpdatedLte).LastUpdatedN(lastUpdatedN).Limit(limit).ModifiedByRequest(modifiedByRequest).Offset(offset).Ordering(ordering).Q(q).Ssid(ssid).SsidEmpty(ssidEmpty).SsidIc(ssidIc).SsidIe(ssidIe).SsidIew(ssidIew).SsidIsw(ssidIsw).SsidN(ssidN).SsidNic(ssidNic).SsidNie(ssidNie).SsidNiew(ssidNiew).SsidNisw(ssidNisw).Status(status).StatusEmpty(statusEmpty).StatusIc(statusIc).StatusIe(statusIe).StatusIew(statusIew).StatusIsw(statusIsw).StatusN(statusN).StatusNic(statusNic).StatusNie(statusNie).StatusNiew(statusNiew).StatusNisw(statusNisw).Tag(tag).TagN(tagN).Tenant(tenant).TenantN(tenantN).TenantGroup(tenantGroup).TenantGroupN(tenantGroupN).TenantGroupId(tenantGroupId).TenantGroupIdN(tenantGroupIdN).TenantId(tenantId).TenantIdN(tenantIdN).UpdatedByRequest(updatedByRequest).Execute() if err != nil { fmt.Fprintf(os.Stderr, "Error when calling `WirelessAPI.WirelessWirelessLinksList``: %v\n", err) fmt.Fprintf(os.Stderr, "Full HTTP response: %v\n", r) @@ -2022,7 +2111,16 @@ Other parameters are passed through a pointer to a apiWirelessWirelessLinksListR Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **authCipher** | **[]string** | | - **authCipherN** | **[]string** | | + **authCipherEmpty** | **bool** | | + **authCipherIc** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherIe** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherIew** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherIsw** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherN** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNic** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNie** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNiew** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | + **authCipherNisw** | [**[]AuthenticationCipher**](AuthenticationCipher.md) | * `auto` - Auto * `tkip` - TKIP * `aes` - AES | **authPsk** | **[]string** | | **authPskEmpty** | **bool** | | **authPskIc** | **[]string** | | @@ -2035,7 +2133,16 @@ Name | Type | Description | Notes **authPskNiew** | **[]string** | | **authPskNisw** | **[]string** | | **authType** | **[]string** | | - **authTypeN** | **[]string** | | + **authTypeEmpty** | **bool** | | + **authTypeIc** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeIe** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeIew** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeIsw** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeN** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNic** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNie** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNiew** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | + **authTypeNisw** | [**[]AuthenticationType1**](AuthenticationType1.md) | * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise | **created** | [**[]time.Time**](time.Time.md) | | **createdEmpty** | [**[]time.Time**](time.Time.md) | | **createdGt** | [**[]time.Time**](time.Time.md) | | @@ -2055,6 +2162,14 @@ Name | Type | Description | Notes **descriptionNie** | **[]string** | | **descriptionNiew** | **[]string** | | **descriptionNisw** | **[]string** | | + **distance** | **[]float64** | | + **distanceEmpty** | **bool** | | + **distanceGt** | **[]float64** | | + **distanceGte** | **[]float64** | | + **distanceLt** | **[]float64** | | + **distanceLte** | **[]float64** | | + **distanceN** | **[]float64** | | + **distanceUnit** | [**WirelessWirelessLinksListDistanceUnitParameter**](WirelessWirelessLinksListDistanceUnitParameter.md) | * `km` - Kilometers * `m` - Meters * `mi` - Miles * `ft` - Feet | **id** | **[]int32** | | **idEmpty** | **bool** | | **idGt** | **[]int32** | | @@ -2090,15 +2205,24 @@ Name | Type | Description | Notes **ssidNiew** | **[]string** | | **ssidNisw** | **[]string** | | **status** | **[]string** | | - **statusN** | **[]string** | | + **statusEmpty** | **bool** | | + **statusIc** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusIe** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusIew** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusIsw** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusN** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNic** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNie** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNiew** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | + **statusNisw** | [**[]DcimCablesListStatusIcParameterInner**](DcimCablesListStatusIcParameterInner.md) | * `connected` - Connected * `planned` - Planned * `decommissioning` - Decommissioning | **tag** | **[]string** | | **tagN** | **[]string** | | **tenant** | **[]string** | Tenant (slug) | **tenantN** | **[]string** | Tenant (slug) | - **tenantGroup** | **[]int32** | Tenant Group (slug) | - **tenantGroupN** | **[]int32** | Tenant Group (slug) | - **tenantGroupId** | **[]int32** | Tenant Group (ID) | - **tenantGroupIdN** | **[]int32** | Tenant Group (ID) | + **tenantGroup** | **[]string** | | + **tenantGroupN** | **[]string** | | + **tenantGroupId** | **[]string** | | + **tenantGroupIdN** | **[]string** | | **tenantId** | **[]int32** | Tenant (ID) | **tenantIdN** | **[]int32** | Tenant (ID) | **updatedByRequest** | **string** | | @@ -2285,7 +2409,7 @@ import ( func main() { id := int32(56) // int32 | A unique integer value identifying this wireless link. - writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual")), *openapiclient.NewInterfaceRequest(*openapiclient.NewDeviceRequest(), "Name_example", openapiclient.Interface_type_value("virtual"))) // WritableWirelessLinkRequest | + writableWirelessLinkRequest := *openapiclient.NewWritableWirelessLinkRequest(*openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example"), *openapiclient.NewBriefInterfaceRequest(*openapiclient.NewBriefDeviceRequest(), "Name_example")) // WritableWirelessLinkRequest | configuration := openapiclient.NewConfiguration() apiClient := openapiclient.NewAPIClient(configuration) diff --git a/docs/WirelessChannel.md b/docs/WirelessChannel.md index 1b80adfcb..4673a1363 100644 --- a/docs/WirelessChannel.md +++ b/docs/WirelessChannel.md @@ -3,23 +3,9 @@ ## Enum -* `_2_4G_1_2412_22` (value: `"2.4g-1-2412-22"`) - -* `_2_4G_2_2417_22` (value: `"2.4g-2-2417-22"`) - -* `_2_4G_3_2422_22` (value: `"2.4g-3-2422-22"`) - -* `_2_4G_4_2427_22` (value: `"2.4g-4-2427-22"`) - -* `_2_4G_5_2432_22` (value: `"2.4g-5-2432-22"`) - -* `_2_4G_6_2437_22` (value: `"2.4g-6-2437-22"`) - -* `_2_4G_7_2442_22` (value: `"2.4g-7-2442-22"`) - -* `_2_4G_8_2447_22` (value: `"2.4g-8-2447-22"`) +* `EMPTY` (value: `""`) -* `_2_4G_9_2452_22` (value: `"2.4g-9-2452-22"`) +* `_2_4G_1_2412_22` (value: `"2.4g-1-2412-22"`) * `_2_4G_10_2457_22` (value: `"2.4g-10-2457-22"`) @@ -29,39 +15,21 @@ * `_2_4G_13_2472_22` (value: `"2.4g-13-2472-22"`) -* `_5G_32_5160_20` (value: `"5g-32-5160-20"`) - -* `_5G_34_5170_40` (value: `"5g-34-5170-40"`) - -* `_5G_36_5180_20` (value: `"5g-36-5180-20"`) - -* `_5G_38_5190_40` (value: `"5g-38-5190-40"`) - -* `_5G_40_5200_20` (value: `"5g-40-5200-20"`) - -* `_5G_42_5210_80` (value: `"5g-42-5210-80"`) - -* `_5G_44_5220_20` (value: `"5g-44-5220-20"`) - -* `_5G_46_5230_40` (value: `"5g-46-5230-40"`) - -* `_5G_48_5240_20` (value: `"5g-48-5240-20"`) - -* `_5G_50_5250_160` (value: `"5g-50-5250-160"`) +* `_2_4G_2_2417_22` (value: `"2.4g-2-2417-22"`) -* `_5G_52_5260_20` (value: `"5g-52-5260-20"`) +* `_2_4G_3_2422_22` (value: `"2.4g-3-2422-22"`) -* `_5G_54_5270_40` (value: `"5g-54-5270-40"`) +* `_2_4G_4_2427_22` (value: `"2.4g-4-2427-22"`) -* `_5G_56_5280_20` (value: `"5g-56-5280-20"`) +* `_2_4G_5_2432_22` (value: `"2.4g-5-2432-22"`) -* `_5G_58_5290_80` (value: `"5g-58-5290-80"`) +* `_2_4G_6_2437_22` (value: `"2.4g-6-2437-22"`) -* `_5G_60_5300_20` (value: `"5g-60-5300-20"`) +* `_2_4G_7_2442_22` (value: `"2.4g-7-2442-22"`) -* `_5G_62_5310_40` (value: `"5g-62-5310-40"`) +* `_2_4G_8_2447_22` (value: `"2.4g-8-2447-22"`) -* `_5G_64_5320_20` (value: `"5g-64-5320-20"`) +* `_2_4G_9_2452_22` (value: `"2.4g-9-2452-22"`) * `_5G_100_5500_20` (value: `"5g-100-5500-20"`) @@ -137,103 +105,77 @@ * `_5G_177_5885_20` (value: `"5g-177-5885-20"`) -* `_6G_1_5955_20` (value: `"6g-1-5955-20"`) - -* `_6G_3_5965_40` (value: `"6g-3-5965-40"`) - -* `_6G_5_5975_20` (value: `"6g-5-5975-20"`) - -* `_6G_7_5985_80` (value: `"6g-7-5985-80"`) - -* `_6G_9_5995_20` (value: `"6g-9-5995-20"`) - -* `_6G_11_6005_40` (value: `"6g-11-6005-40"`) - -* `_6G_13_6015_20` (value: `"6g-13-6015-20"`) - -* `_6G_15_6025_160` (value: `"6g-15-6025-160"`) - -* `_6G_17_6035_20` (value: `"6g-17-6035-20"`) - -* `_6G_19_6045_40` (value: `"6g-19-6045-40"`) - -* `_6G_21_6055_20` (value: `"6g-21-6055-20"`) - -* `_6G_23_6065_80` (value: `"6g-23-6065-80"`) - -* `_6G_25_6075_20` (value: `"6g-25-6075-20"`) - -* `_6G_27_6085_40` (value: `"6g-27-6085-40"`) +* `_5G_32_5160_20` (value: `"5g-32-5160-20"`) -* `_6G_29_6095_20` (value: `"6g-29-6095-20"`) +* `_5G_34_5170_40` (value: `"5g-34-5170-40"`) -* `_6G_31_6105_320` (value: `"6g-31-6105-320"`) +* `_5G_36_5180_20` (value: `"5g-36-5180-20"`) -* `_6G_33_6115_20` (value: `"6g-33-6115-20"`) +* `_5G_38_5190_40` (value: `"5g-38-5190-40"`) -* `_6G_35_6125_40` (value: `"6g-35-6125-40"`) +* `_5G_40_5200_20` (value: `"5g-40-5200-20"`) -* `_6G_37_6135_20` (value: `"6g-37-6135-20"`) +* `_5G_42_5210_80` (value: `"5g-42-5210-80"`) -* `_6G_39_6145_80` (value: `"6g-39-6145-80"`) +* `_5G_44_5220_20` (value: `"5g-44-5220-20"`) -* `_6G_41_6155_20` (value: `"6g-41-6155-20"`) +* `_5G_46_5230_40` (value: `"5g-46-5230-40"`) -* `_6G_43_6165_40` (value: `"6g-43-6165-40"`) +* `_5G_48_5240_20` (value: `"5g-48-5240-20"`) -* `_6G_45_6175_20` (value: `"6g-45-6175-20"`) +* `_5G_50_5250_160` (value: `"5g-50-5250-160"`) -* `_6G_47_6185_160` (value: `"6g-47-6185-160"`) +* `_5G_52_5260_20` (value: `"5g-52-5260-20"`) -* `_6G_49_6195_20` (value: `"6g-49-6195-20"`) +* `_5G_54_5270_40` (value: `"5g-54-5270-40"`) -* `_6G_51_6205_40` (value: `"6g-51-6205-40"`) +* `_5G_56_5280_20` (value: `"5g-56-5280-20"`) -* `_6G_53_6215_20` (value: `"6g-53-6215-20"`) +* `_5G_58_5290_80` (value: `"5g-58-5290-80"`) -* `_6G_55_6225_80` (value: `"6g-55-6225-80"`) +* `_5G_60_5300_20` (value: `"5g-60-5300-20"`) -* `_6G_57_6235_20` (value: `"6g-57-6235-20"`) +* `_5G_62_5310_40` (value: `"5g-62-5310-40"`) -* `_6G_59_6245_40` (value: `"6g-59-6245-40"`) +* `_5G_64_5320_20` (value: `"5g-64-5320-20"`) -* `_6G_61_6255_20` (value: `"6g-61-6255-20"`) +* `_60G_1_58320_2160` (value: `"60g-1-58320-2160"`) -* `_6G_65_6275_20` (value: `"6g-65-6275-20"`) +* `_60G_10_61560_4320` (value: `"60g-10-61560-4320"`) -* `_6G_67_6285_40` (value: `"6g-67-6285-40"`) +* `_60G_11_63720_4320` (value: `"60g-11-63720-4320"`) -* `_6G_69_6295_20` (value: `"6g-69-6295-20"`) +* `_60G_12_65880_4320` (value: `"60g-12-65880-4320"`) -* `_6G_71_6305_80` (value: `"6g-71-6305-80"`) +* `_60G_13_68040_4320` (value: `"60g-13-68040-4320"`) -* `_6G_73_6315_20` (value: `"6g-73-6315-20"`) +* `_60G_17_60480_6480` (value: `"60g-17-60480-6480"`) -* `_6G_75_6325_40` (value: `"6g-75-6325-40"`) +* `_60G_18_62640_6480` (value: `"60g-18-62640-6480"`) -* `_6G_77_6335_20` (value: `"6g-77-6335-20"`) +* `_60G_19_64800_6480` (value: `"60g-19-64800-6480"`) -* `_6G_79_6345_160` (value: `"6g-79-6345-160"`) +* `_60G_2_60480_2160` (value: `"60g-2-60480-2160"`) -* `_6G_81_6355_20` (value: `"6g-81-6355-20"`) +* `_60G_20_66960_6480` (value: `"60g-20-66960-6480"`) -* `_6G_83_6365_40` (value: `"6g-83-6365-40"`) +* `_60G_25_61560_6480` (value: `"60g-25-61560-6480"`) -* `_6G_85_6375_20` (value: `"6g-85-6375-20"`) +* `_60G_26_63720_6480` (value: `"60g-26-63720-6480"`) -* `_6G_87_6385_80` (value: `"6g-87-6385-80"`) +* `_60G_27_65880_6480` (value: `"60g-27-65880-6480"`) -* `_6G_89_6395_20` (value: `"6g-89-6395-20"`) +* `_60G_3_62640_2160` (value: `"60g-3-62640-2160"`) -* `_6G_91_6405_40` (value: `"6g-91-6405-40"`) +* `_60G_4_64800_2160` (value: `"60g-4-64800-2160"`) -* `_6G_93_6415_20` (value: `"6g-93-6415-20"`) +* `_60G_5_66960_2160` (value: `"60g-5-66960-2160"`) -* `_6G_95_6425_320` (value: `"6g-95-6425-320"`) +* `_60G_6_69120_2160` (value: `"60g-6-69120-2160"`) -* `_6G_97_6435_20` (value: `"6g-97-6435-20"`) +* `_60G_9_59400_4320` (value: `"60g-9-59400-4320"`) -* `_6G_99_6445_40` (value: `"6g-99-6445-40"`) +* `_6G_1_5955_20` (value: `"6g-1-5955-20"`) * `_6G_101_6455_20` (value: `"6g-101-6455-20"`) @@ -245,6 +187,8 @@ * `_6G_109_6495_20` (value: `"6g-109-6495-20"`) +* `_6G_11_6005_40` (value: `"6g-11-6005-40"`) + * `_6G_111_6505_160` (value: `"6g-111-6505-160"`) * `_6G_113_6515_20` (value: `"6g-113-6515-20"`) @@ -263,6 +207,8 @@ * `_6G_129_6595_20` (value: `"6g-129-6595-20"`) +* `_6G_13_6015_20` (value: `"6g-13-6015-20"`) + * `_6G_131_6605_40` (value: `"6g-131-6605-40"`) * `_6G_133_6615_20` (value: `"6g-133-6615-20"`) @@ -283,6 +229,8 @@ * `_6G_149_6695_20` (value: `"6g-149-6695-20"`) +* `_6G_15_6025_160` (value: `"6g-15-6025-160"`) + * `_6G_151_6705_80` (value: `"6g-151-6705-80"`) * `_6G_153_6715_20` (value: `"6g-153-6715-20"`) @@ -303,6 +251,8 @@ * `_6G_169_6795_20` (value: `"6g-169-6795-20"`) +* `_6G_17_6035_20` (value: `"6g-17-6035-20"`) + * `_6G_171_6805_40` (value: `"6g-171-6805-40"`) * `_6G_173_6815_20` (value: `"6g-173-6815-20"`) @@ -323,6 +273,8 @@ * `_6G_189_6895_20` (value: `"6g-189-6895-20"`) +* `_6G_19_6045_40` (value: `"6g-19-6045-40"`) + * `_6G_193_6915_20` (value: `"6g-193-6915-20"`) * `_6G_195_6925_40` (value: `"6g-195-6925-40"`) @@ -341,6 +293,8 @@ * `_6G_209_6995_20` (value: `"6g-209-6995-20"`) +* `_6G_21_6055_20` (value: `"6g-21-6055-20"`) + * `_6G_211_7005_40` (value: `"6g-211-7005-40"`) * `_6G_213_7015_20` (value: `"6g-213-7015-20"`) @@ -359,45 +313,91 @@ * `_6G_229_7095_20` (value: `"6g-229-7095-20"`) +* `_6G_23_6065_80` (value: `"6g-23-6065-80"`) + * `_6G_233_7115_20` (value: `"6g-233-7115-20"`) -* `_60G_1_58320_2160` (value: `"60g-1-58320-2160"`) +* `_6G_25_6075_20` (value: `"6g-25-6075-20"`) -* `_60G_2_60480_2160` (value: `"60g-2-60480-2160"`) +* `_6G_27_6085_40` (value: `"6g-27-6085-40"`) -* `_60G_3_62640_2160` (value: `"60g-3-62640-2160"`) +* `_6G_29_6095_20` (value: `"6g-29-6095-20"`) -* `_60G_4_64800_2160` (value: `"60g-4-64800-2160"`) +* `_6G_3_5965_40` (value: `"6g-3-5965-40"`) -* `_60G_5_66960_2160` (value: `"60g-5-66960-2160"`) +* `_6G_31_6105_320` (value: `"6g-31-6105-320"`) -* `_60G_6_69120_2160` (value: `"60g-6-69120-2160"`) +* `_6G_33_6115_20` (value: `"6g-33-6115-20"`) -* `_60G_9_59400_4320` (value: `"60g-9-59400-4320"`) +* `_6G_35_6125_40` (value: `"6g-35-6125-40"`) -* `_60G_10_61560_4320` (value: `"60g-10-61560-4320"`) +* `_6G_37_6135_20` (value: `"6g-37-6135-20"`) -* `_60G_11_63720_4320` (value: `"60g-11-63720-4320"`) +* `_6G_39_6145_80` (value: `"6g-39-6145-80"`) -* `_60G_12_65880_4320` (value: `"60g-12-65880-4320"`) +* `_6G_41_6155_20` (value: `"6g-41-6155-20"`) -* `_60G_13_68040_4320` (value: `"60g-13-68040-4320"`) +* `_6G_43_6165_40` (value: `"6g-43-6165-40"`) -* `_60G_17_60480_6480` (value: `"60g-17-60480-6480"`) +* `_6G_45_6175_20` (value: `"6g-45-6175-20"`) -* `_60G_18_62640_6480` (value: `"60g-18-62640-6480"`) +* `_6G_47_6185_160` (value: `"6g-47-6185-160"`) -* `_60G_19_64800_6480` (value: `"60g-19-64800-6480"`) +* `_6G_49_6195_20` (value: `"6g-49-6195-20"`) -* `_60G_20_66960_6480` (value: `"60g-20-66960-6480"`) +* `_6G_5_5975_20` (value: `"6g-5-5975-20"`) -* `_60G_25_61560_6480` (value: `"60g-25-61560-6480"`) +* `_6G_51_6205_40` (value: `"6g-51-6205-40"`) -* `_60G_26_63720_6480` (value: `"60g-26-63720-6480"`) +* `_6G_53_6215_20` (value: `"6g-53-6215-20"`) -* `_60G_27_65880_6480` (value: `"60g-27-65880-6480"`) +* `_6G_55_6225_80` (value: `"6g-55-6225-80"`) -* `EMPTY` (value: `""`) +* `_6G_57_6235_20` (value: `"6g-57-6235-20"`) + +* `_6G_59_6245_40` (value: `"6g-59-6245-40"`) + +* `_6G_61_6255_20` (value: `"6g-61-6255-20"`) + +* `_6G_65_6275_20` (value: `"6g-65-6275-20"`) + +* `_6G_67_6285_40` (value: `"6g-67-6285-40"`) + +* `_6G_69_6295_20` (value: `"6g-69-6295-20"`) + +* `_6G_7_5985_80` (value: `"6g-7-5985-80"`) + +* `_6G_71_6305_80` (value: `"6g-71-6305-80"`) + +* `_6G_73_6315_20` (value: `"6g-73-6315-20"`) + +* `_6G_75_6325_40` (value: `"6g-75-6325-40"`) + +* `_6G_77_6335_20` (value: `"6g-77-6335-20"`) + +* `_6G_79_6345_160` (value: `"6g-79-6345-160"`) + +* `_6G_81_6355_20` (value: `"6g-81-6355-20"`) + +* `_6G_83_6365_40` (value: `"6g-83-6365-40"`) + +* `_6G_85_6375_20` (value: `"6g-85-6375-20"`) + +* `_6G_87_6385_80` (value: `"6g-87-6385-80"`) + +* `_6G_89_6395_20` (value: `"6g-89-6395-20"`) + +* `_6G_9_5995_20` (value: `"6g-9-5995-20"`) + +* `_6G_91_6405_40` (value: `"6g-91-6405-40"`) + +* `_6G_93_6415_20` (value: `"6g-93-6415-20"`) + +* `_6G_95_6425_320` (value: `"6g-95-6425-320"`) + +* `_6G_97_6435_20` (value: `"6g-97-6435-20"`) + +* `_6G_99_6445_40` (value: `"6g-99-6445-40"`) [[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/docs/WirelessLAN.md b/docs/WirelessLAN.md index 8bc856e77..3dbf04d53 100644 --- a/docs/WirelessLAN.md +++ b/docs/WirelessLAN.md @@ -6,13 +6,14 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroup**](WirelessLANGroup.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroup**](BriefWirelessLANGroup.md) | | [optional] **Status** | Pointer to [**WirelessLANStatus**](WirelessLANStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLAN**](VLAN.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLAN**](BriefVLAN.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -81,6 +82,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLAN) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLAN) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *WirelessLAN) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *WirelessLAN) GetDisplay() string` @@ -148,20 +174,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLAN) GetGroup() WirelessLANGroup` +`func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool)` +`func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLAN) SetGroup(v WirelessLANGroup)` +`func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup)` SetGroup sets Group field to given value. @@ -208,20 +234,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLAN) GetVlan() VLAN` +`func (o *WirelessLAN) GetVlan() BriefVLAN` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLAN) GetVlanOk() (*VLAN, bool)` +`func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLAN) SetVlan(v VLAN)` +`func (o *WirelessLAN) SetVlan(v BriefVLAN)` SetVlan sets Vlan field to given value. @@ -243,20 +269,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLAN) GetTenant() Tenant` +`func (o *WirelessLAN) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLAN) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLAN) SetTenant(v Tenant)` +`func (o *WirelessLAN) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLANGroup.md b/docs/WirelessLANGroup.md index aae3009eb..7eca9e781 100644 --- a/docs/WirelessLANGroup.md +++ b/docs/WirelessLANGroup.md @@ -6,10 +6,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] **Name** | **string** | | **Slug** | **string** | | +**Parent** | Pointer to [**NullableNestedWirelessLANGroup**](NestedWirelessLANGroup.md) | | [optional] **Description** | Pointer to **string** | | [optional] +**Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] +**CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Created** | **NullableTime** | | [readonly] +**LastUpdated** | **NullableTime** | | [readonly] **WirelesslanCount** | **int32** | | [readonly] [default to 0] **Depth** | **int32** | | [readonly] @@ -17,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLANGroup -`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` +`func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32, ) *WirelessLANGroup` NewWirelessLANGroup instantiates a new WirelessLANGroup object This constructor will assign default values to properties that have it defined, @@ -72,6 +78,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLANGroup) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLANGroup) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *WirelessLANGroup) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *WirelessLANGroup) GetDisplay() string` @@ -132,6 +163,41 @@ and a boolean to check if the value has been set. SetSlug sets Slug field to given value. +### GetParent + +`func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup` + +GetParent returns the Parent field if non-nil, zero value otherwise. + +### GetParentOk + +`func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool)` + +GetParentOk returns a tuple with the Parent field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetParent + +`func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup)` + +SetParent sets Parent field to given value. + +### HasParent + +`func (o *WirelessLANGroup) HasParent() bool` + +HasParent returns a boolean if a field has been set. + +### SetParentNil + +`func (o *WirelessLANGroup) SetParentNil(b bool)` + + SetParentNil sets the value for Parent to be an explicit nil + +### UnsetParent +`func (o *WirelessLANGroup) UnsetParent()` + +UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetDescription `func (o *WirelessLANGroup) GetDescription() string` @@ -157,6 +223,116 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. +### GetTags + +`func (o *WirelessLANGroup) GetTags() []NestedTag` + +GetTags returns the Tags field if non-nil, zero value otherwise. + +### GetTagsOk + +`func (o *WirelessLANGroup) GetTagsOk() (*[]NestedTag, bool)` + +GetTagsOk returns a tuple with the Tags field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetTags + +`func (o *WirelessLANGroup) SetTags(v []NestedTag)` + +SetTags sets Tags field to given value. + +### HasTags + +`func (o *WirelessLANGroup) HasTags() bool` + +HasTags returns a boolean if a field has been set. + +### GetCustomFields + +`func (o *WirelessLANGroup) GetCustomFields() map[string]interface{}` + +GetCustomFields returns the CustomFields field if non-nil, zero value otherwise. + +### GetCustomFieldsOk + +`func (o *WirelessLANGroup) GetCustomFieldsOk() (*map[string]interface{}, bool)` + +GetCustomFieldsOk returns a tuple with the CustomFields field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCustomFields + +`func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{})` + +SetCustomFields sets CustomFields field to given value. + +### HasCustomFields + +`func (o *WirelessLANGroup) HasCustomFields() bool` + +HasCustomFields returns a boolean if a field has been set. + +### GetCreated + +`func (o *WirelessLANGroup) GetCreated() time.Time` + +GetCreated returns the Created field if non-nil, zero value otherwise. + +### GetCreatedOk + +`func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool)` + +GetCreatedOk returns a tuple with the Created field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetCreated + +`func (o *WirelessLANGroup) SetCreated(v time.Time)` + +SetCreated sets Created field to given value. + + +### SetCreatedNil + +`func (o *WirelessLANGroup) SetCreatedNil(b bool)` + + SetCreatedNil sets the value for Created to be an explicit nil + +### UnsetCreated +`func (o *WirelessLANGroup) UnsetCreated()` + +UnsetCreated ensures that no value is present for Created, not even an explicit nil +### GetLastUpdated + +`func (o *WirelessLANGroup) GetLastUpdated() time.Time` + +GetLastUpdated returns the LastUpdated field if non-nil, zero value otherwise. + +### GetLastUpdatedOk + +`func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool)` + +GetLastUpdatedOk returns a tuple with the LastUpdated field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetLastUpdated + +`func (o *WirelessLANGroup) SetLastUpdated(v time.Time)` + +SetLastUpdated sets LastUpdated field to given value. + + +### SetLastUpdatedNil + +`func (o *WirelessLANGroup) SetLastUpdatedNil(b bool)` + + SetLastUpdatedNil sets the value for LastUpdated to be an explicit nil + +### UnsetLastUpdated +`func (o *WirelessLANGroup) UnsetLastUpdated()` + +UnsetLastUpdated ensures that no value is present for LastUpdated, not even an explicit nil ### GetWirelesslanCount `func (o *WirelessLANGroup) GetWirelesslanCount() int32` diff --git a/docs/WirelessLANRequest.md b/docs/WirelessLANRequest.md index 84671d664..b4617be51 100644 --- a/docs/WirelessLANRequest.md +++ b/docs/WirelessLANRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**WirelessLANStatusValue**](WirelessLANStatusValue.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WirelessLANRequest) GetVlan() VLANRequest` +`func (o *WirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WirelessLANRequest) GetTenant() TenantRequest` +`func (o *WirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WirelessLink.md b/docs/WirelessLink.md index 9f446e21f..78ec6db8e 100644 --- a/docs/WirelessLink.md +++ b/docs/WirelessLink.md @@ -6,15 +6,18 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Id** | **int32** | | [readonly] **Url** | **string** | | [readonly] +**DisplayUrl** | Pointer to **string** | | [optional] [readonly] **Display** | **string** | | [readonly] -**InterfaceA** | [**Interface**](Interface.md) | | -**InterfaceB** | [**Interface**](Interface.md) | | +**InterfaceA** | [**BriefInterface**](BriefInterface.md) | | +**InterfaceB** | [**BriefInterface**](BriefInterface.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**WirelessLinkStatus**](WirelessLinkStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenant**](Tenant.md) | | [optional] +**Status** | Pointer to [**CableStatus**](CableStatus.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenant**](BriefTenant.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthType**](WirelessLANAuthType.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipher**](WirelessLANAuthCipher.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableWirelessLinkDistanceUnit**](WirelessLinkDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTag**](NestedTag.md) | | [optional] @@ -26,7 +29,7 @@ Name | Type | Description | Notes ### NewWirelessLink -`func NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` +`func NewWirelessLink(id int32, url string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime, ) *WirelessLink` NewWirelessLink instantiates a new WirelessLink object This constructor will assign default values to properties that have it defined, @@ -81,6 +84,31 @@ and a boolean to check if the value has been set. SetUrl sets Url field to given value. +### GetDisplayUrl + +`func (o *WirelessLink) GetDisplayUrl() string` + +GetDisplayUrl returns the DisplayUrl field if non-nil, zero value otherwise. + +### GetDisplayUrlOk + +`func (o *WirelessLink) GetDisplayUrlOk() (*string, bool)` + +GetDisplayUrlOk returns a tuple with the DisplayUrl field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDisplayUrl + +`func (o *WirelessLink) SetDisplayUrl(v string)` + +SetDisplayUrl sets DisplayUrl field to given value. + +### HasDisplayUrl + +`func (o *WirelessLink) HasDisplayUrl() bool` + +HasDisplayUrl returns a boolean if a field has been set. + ### GetDisplay `func (o *WirelessLink) GetDisplay() string` @@ -103,40 +131,40 @@ SetDisplay sets Display field to given value. ### GetInterfaceA -`func (o *WirelessLink) GetInterfaceA() Interface` +`func (o *WirelessLink) GetInterfaceA() BriefInterface` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLink) SetInterfaceA(v Interface)` +`func (o *WirelessLink) SetInterfaceA(v BriefInterface)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLink) GetInterfaceB() Interface` +`func (o *WirelessLink) GetInterfaceB() BriefInterface` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool)` +`func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLink) SetInterfaceB(v Interface)` +`func (o *WirelessLink) SetInterfaceB(v BriefInterface)` SetInterfaceB sets InterfaceB field to given value. @@ -168,20 +196,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLink) GetStatus() WirelessLinkStatus` +`func (o *WirelessLink) GetStatus() CableStatus` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool)` +`func (o *WirelessLink) GetStatusOk() (*CableStatus, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLink) SetStatus(v WirelessLinkStatus)` +`func (o *WirelessLink) SetStatus(v CableStatus)` SetStatus sets Status field to given value. @@ -193,20 +221,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLink) GetTenant() Tenant` +`func (o *WirelessLink) GetTenant() BriefTenant` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLink) GetTenantOk() (*Tenant, bool)` +`func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLink) SetTenant(v Tenant)` +`func (o *WirelessLink) SetTenant(v BriefTenant)` SetTenant sets Tenant field to given value. @@ -301,6 +329,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLink) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLink) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLink) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLink) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLink) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLink) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLink) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLink) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLink) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLink) GetDescription() string` diff --git a/docs/WirelessLinkRequest.md b/docs/WirelessLinkRequest.md index cbb26cae5..4cc414500 100644 --- a/docs/WirelessLinkRequest.md +++ b/docs/WirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **AuthType** | Pointer to [**WirelessLANAuthTypeValue**](WirelessLANAuthTypeValue.md) | | [optional] **AuthCipher** | Pointer to [**WirelessLANAuthCipherValue**](WirelessLANAuthCipherValue.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**NullableWirelessLinkRequestDistanceUnit**](WirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWirelessLinkRequest -`func NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WirelessLinkRequest` +`func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WirelessLinkRequest` NewWirelessLinkRequest instantiates a new WirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -236,6 +238,76 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + +### SetDistanceUnitNil + +`func (o *WirelessLinkRequest) SetDistanceUnitNil(b bool)` + + SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil + +### UnsetDistanceUnit +`func (o *WirelessLinkRequest) UnsetDistanceUnit()` + +UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil ### GetDescription `func (o *WirelessLinkRequest) GetDescription() string` diff --git a/docs/WirelessRole.md b/docs/WirelessRole.md index 19ed006f8..4c1d26d94 100644 --- a/docs/WirelessRole.md +++ b/docs/WirelessRole.md @@ -3,12 +3,12 @@ ## Enum +* `EMPTY` (value: `""`) + * `AP` (value: `"ap"`) * `STATION` (value: `"station"`) -* `EMPTY` (value: `""`) - [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/WritableAggregateRequest.md b/docs/WritableAggregateRequest.md index 169807729..cbcd91bcd 100644 --- a/docs/WritableAggregateRequest.md +++ b/docs/WritableAggregateRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Rir** | [**RIRRequest**](RIRRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Rir** | [**BriefRIRRequest**](BriefRIRRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **DateAdded** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableAggregateRequest -`func NewWritableAggregateRequest(prefix string, rir RIRRequest, ) *WritableAggregateRequest` +`func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest, ) *WritableAggregateRequest` NewWritableAggregateRequest instantiates a new WritableAggregateRequest object This constructor will assign default values to properties that have it defined, @@ -54,40 +54,40 @@ SetPrefix sets Prefix field to given value. ### GetRir -`func (o *WritableAggregateRequest) GetRir() RIRRequest` +`func (o *WritableAggregateRequest) GetRir() BriefRIRRequest` GetRir returns the Rir field if non-nil, zero value otherwise. ### GetRirOk -`func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool)` +`func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool)` GetRirOk returns a tuple with the Rir field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRir -`func (o *WritableAggregateRequest) SetRir(v RIRRequest)` +`func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest)` SetRir sets Rir field to given value. ### GetTenant -`func (o *WritableAggregateRequest) GetTenant() TenantRequest` +`func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableAggregateRequest) SetTenant(v TenantRequest)` +`func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableCableRequest.md b/docs/WritableCableRequest.md index aef093b34..cb8fa67e5 100644 --- a/docs/WritableCableRequest.md +++ b/docs/WritableCableRequest.md @@ -4,15 +4,15 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Type** | Pointer to [**PatchedWritableCableRequestType**](PatchedWritableCableRequestType.md) | | [optional] +**Type** | Pointer to [**CableType**](CableType.md) | | [optional] **ATerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] **BTerminations** | Pointer to [**[]GenericObjectRequest**](GenericObjectRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Label** | Pointer to **string** | | [optional] **Color** | Pointer to **string** | | [optional] **Length** | Pointer to **NullableFloat64** | | [optional] -**LengthUnit** | Pointer to [**PatchedWritableCableRequestLengthUnit**](PatchedWritableCableRequestLengthUnit.md) | | [optional] +**LengthUnit** | Pointer to [**CableLengthUnitValue**](CableLengthUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -39,20 +39,20 @@ but it doesn't guarantee that properties required by API are set ### GetType -`func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType` +`func (o *WritableCableRequest) GetType() CableType` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool)` +`func (o *WritableCableRequest) GetTypeOk() (*CableType, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType)` +`func (o *WritableCableRequest) SetType(v CableType)` SetType sets Type field to given value. @@ -114,20 +114,20 @@ HasBTerminations returns a boolean if a field has been set. ### GetStatus -`func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableCableRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableCableRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -139,20 +139,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCableRequest) GetTenant() TenantRequest` +`func (o *WritableCableRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCableRequest) SetTenant(v TenantRequest)` +`func (o *WritableCableRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -259,20 +259,20 @@ HasLength returns a boolean if a field has been set. UnsetLength ensures that no value is present for Length, not even an explicit nil ### GetLengthUnit -`func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit` +`func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue` GetLengthUnit returns the LengthUnit field if non-nil, zero value otherwise. ### GetLengthUnitOk -`func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool)` +`func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool)` GetLengthUnitOk returns a tuple with the LengthUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLengthUnit -`func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit)` +`func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue)` SetLengthUnit sets LengthUnit field to given value. diff --git a/docs/WritableCircuitRequest.md b/docs/WritableCircuitRequest.md index 02a8ad3f7..8382f981d 100644 --- a/docs/WritableCircuitRequest.md +++ b/docs/WritableCircuitRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Cid** | **string** | Unique circuit ID | -**Provider** | [**ProviderRequest**](ProviderRequest.md) | | -**ProviderAccount** | Pointer to [**NullableProviderAccountRequest**](ProviderAccountRequest.md) | | [optional] -**Type** | [**CircuitTypeRequest**](CircuitTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableCircuitRequestStatus**](PatchedWritableCircuitRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Provider** | [**BriefProviderRequest**](BriefProviderRequest.md) | | +**ProviderAccount** | Pointer to [**NullableBriefProviderAccountRequest**](BriefProviderAccountRequest.md) | | [optional] +**Type** | [**BriefCircuitTypeRequest**](BriefCircuitTypeRequest.md) | | +**Status** | Pointer to [**CircuitStatusValue**](CircuitStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **InstallDate** | Pointer to **NullableString** | | [optional] **TerminationDate** | Pointer to **NullableString** | | [optional] **CommitRate** | Pointer to **NullableInt32** | Committed rate | [optional] @@ -17,12 +17,13 @@ Name | Type | Description | Notes **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] +**Assignments** | Pointer to [**[]BriefCircuitGroupAssignmentSerializerRequest**](BriefCircuitGroupAssignmentSerializerRequest.md) | | [optional] ## Methods ### NewWritableCircuitRequest -`func NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest, ) *WritableCircuitRequest` +`func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest, ) *WritableCircuitRequest` NewWritableCircuitRequest instantiates a new WritableCircuitRequest object This constructor will assign default values to properties that have it defined, @@ -59,40 +60,40 @@ SetCid sets Cid field to given value. ### GetProvider -`func (o *WritableCircuitRequest) GetProvider() ProviderRequest` +`func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest` GetProvider returns the Provider field if non-nil, zero value otherwise. ### GetProviderOk -`func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool)` GetProviderOk returns a tuple with the Provider field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProvider -`func (o *WritableCircuitRequest) SetProvider(v ProviderRequest)` +`func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest)` SetProvider sets Provider field to given value. ### GetProviderAccount -`func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest` +`func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest` GetProviderAccount returns the ProviderAccount field if non-nil, zero value otherwise. ### GetProviderAccountOk -`func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool)` +`func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool)` GetProviderAccountOk returns a tuple with the ProviderAccount field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetProviderAccount -`func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest)` +`func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest)` SetProviderAccount sets ProviderAccount field to given value. @@ -114,40 +115,40 @@ HasProviderAccount returns a boolean if a field has been set. UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil ### GetType -`func (o *WritableCircuitRequest) GetType() CircuitTypeRequest` +`func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool)` +`func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest)` +`func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest)` SetType sets Type field to given value. ### GetStatus -`func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus` +`func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool)` +`func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus)` +`func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue)` SetStatus sets Status field to given value. @@ -159,20 +160,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableCircuitRequest) GetTenant() TenantRequest` +`func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableCircuitRequest) SetTenant(v TenantRequest)` +`func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -397,6 +398,31 @@ SetCustomFields sets CustomFields field to given value. HasCustomFields returns a boolean if a field has been set. +### GetAssignments + +`func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest` + +GetAssignments returns the Assignments field if non-nil, zero value otherwise. + +### GetAssignmentsOk + +`func (o *WritableCircuitRequest) GetAssignmentsOk() (*[]BriefCircuitGroupAssignmentSerializerRequest, bool)` + +GetAssignmentsOk returns a tuple with the Assignments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAssignments + +`func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest)` + +SetAssignments sets Assignments field to given value. + +### HasAssignments + +`func (o *WritableCircuitRequest) HasAssignments() bool` + +HasAssignments 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/docs/WritableClusterRequest.md b/docs/WritableClusterRequest.md index 430b5cf50..d25e42949 100644 --- a/docs/WritableClusterRequest.md +++ b/docs/WritableClusterRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Type** | [**ClusterTypeRequest**](ClusterTypeRequest.md) | | -**Group** | Pointer to [**NullableClusterGroupRequest**](ClusterGroupRequest.md) | | [optional] -**Status** | Pointer to [**PatchedWritableClusterRequestStatus**](PatchedWritableClusterRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] +**Type** | [**BriefClusterTypeRequest**](BriefClusterTypeRequest.md) | | +**Group** | Pointer to [**NullableBriefClusterGroupRequest**](BriefClusterGroupRequest.md) | | [optional] +**Status** | Pointer to [**ClusterStatusValue**](ClusterStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableClusterRequest -`func NewWritableClusterRequest(name string, type_ ClusterTypeRequest, ) *WritableClusterRequest` +`func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest, ) *WritableClusterRequest` NewWritableClusterRequest instantiates a new WritableClusterRequest object This constructor will assign default values to properties that have it defined, @@ -56,40 +56,40 @@ SetName sets Name field to given value. ### GetType -`func (o *WritableClusterRequest) GetType() ClusterTypeRequest` +`func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool)` +`func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableClusterRequest) SetType(v ClusterTypeRequest)` +`func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest)` SetType sets Type field to given value. ### GetGroup -`func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest` +`func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool)` +`func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest)` +`func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest)` SetGroup sets Group field to given value. @@ -111,20 +111,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetStatus -`func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus` +`func (o *WritableClusterRequest) GetStatus() ClusterStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool)` +`func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus)` +`func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue)` SetStatus sets Status field to given value. @@ -136,20 +136,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableClusterRequest) GetTenant() TenantRequest` +`func (o *WritableClusterRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableClusterRequest) SetTenant(v TenantRequest)` +`func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -171,20 +171,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetSite -`func (o *WritableClusterRequest) GetSite() SiteRequest` +`func (o *WritableClusterRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableClusterRequest) SetSite(v SiteRequest)` +`func (o *WritableClusterRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. diff --git a/docs/WritableConsolePortRequest.md b/docs/WritableConsolePortRequest.md index 0ba0c6885..9b0b4a502 100644 --- a/docs/WritableConsolePortRequest.md +++ b/docs/WritableConsolePortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsolePortRequest -`func NewWritableConsolePortRequest(device DeviceRequest, name string, ) *WritableConsolePortRequest` +`func NewWritableConsolePortRequest(device BriefDeviceRequest, name string, ) *WritableConsolePortRequest` NewWritableConsolePortRequest instantiates a new WritableConsolePortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsolePortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsolePortRequest) GetModule() ModuleRequest` +`func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsolePortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsolePortTemplateRequest.md b/docs/WritableConsolePortTemplateRequest.md index 3799557e8..b675fc60b 100644 --- a/docs/WritableConsolePortTemplateRequest.md +++ b/docs/WritableConsolePortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableConsoleServerPortRequest.md b/docs/WritableConsoleServerPortRequest.md index 6af4a78aa..82d557c25 100644 --- a/docs/WritableConsoleServerPortRequest.md +++ b/docs/WritableConsoleServerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritableConsolePortRequestType**](PatchedWritableConsolePortRequestType.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableConsoleServerPortRequest -`func NewWritableConsoleServerPortRequest(device DeviceRequest, name string, ) *WritableConsoleServerPortRequest` +`func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string, ) *WritableConsoleServerPortRequest` NewWritableConsoleServerPortRequest instantiates a new WritableConsoleServerPortRequest object This constructor will assign default values to properties that have it defined, @@ -36,40 +36,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest` +`func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest` +`func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableConsoleServerPortTemplateRequest.md b/docs/WritableConsoleServerPortTemplateRequest.md index e35a4b9ec..122f48c6a 100644 --- a/docs/WritableConsoleServerPortTemplateRequest.md +++ b/docs/WritableConsoleServerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**ConsolePortTypeValue**](ConsolePortTypeValue.md) | | [optional] @@ -32,20 +32,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -67,20 +67,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableContactAssignmentRequest.md b/docs/WritableContactAssignmentRequest.md index 678cd6e27..dc94d6b6f 100644 --- a/docs/WritableContactAssignmentRequest.md +++ b/docs/WritableContactAssignmentRequest.md @@ -6,9 +6,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectType** | **string** | | **ObjectId** | **int64** | | -**Contact** | [**ContactRequest**](ContactRequest.md) | | -**Role** | Pointer to [**NullableContactRoleRequest**](ContactRoleRequest.md) | | [optional] -**Priority** | Pointer to [**ContactAssignmentPriorityValue**](ContactAssignmentPriorityValue.md) | | [optional] +**Contact** | [**BriefContactRequest**](BriefContactRequest.md) | | +**Role** | Pointer to [**NullableBriefContactRoleRequest**](BriefContactRoleRequest.md) | | [optional] +**Priority** | Pointer to [**BriefCircuitGroupAssignmentSerializerPriorityValue**](BriefCircuitGroupAssignmentSerializerPriorityValue.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableContactAssignmentRequest -`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest, ) *WritableContactAssignmentRequest` +`func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest, ) *WritableContactAssignmentRequest` NewWritableContactAssignmentRequest instantiates a new WritableContactAssignmentRequest object This constructor will assign default values to properties that have it defined, @@ -73,40 +73,40 @@ SetObjectId sets ObjectId field to given value. ### GetContact -`func (o *WritableContactAssignmentRequest) GetContact() ContactRequest` +`func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest` GetContact returns the Contact field if non-nil, zero value otherwise. ### GetContactOk -`func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool)` GetContactOk returns a tuple with the Contact field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetContact -`func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest)` +`func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest)` SetContact sets Contact field to given value. ### GetRole -`func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest` +`func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool)` +`func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest)` +`func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest)` SetRole sets Role field to given value. @@ -128,20 +128,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetPriority -`func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue` +`func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue` GetPriority returns the Priority field if non-nil, zero value otherwise. ### GetPriorityOk -`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool)` +`func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool)` GetPriorityOk returns a tuple with the Priority field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPriority -`func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue)` +`func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue)` SetPriority sets Priority field to given value. diff --git a/docs/WritableCustomFieldRequest.md b/docs/WritableCustomFieldRequest.md index f82e51b73..2e40f4558 100644 --- a/docs/WritableCustomFieldRequest.md +++ b/docs/WritableCustomFieldRequest.md @@ -11,18 +11,20 @@ Name | Type | Description | Notes **Label** | Pointer to **string** | Name of the field as displayed to users (if not provided, 'the field's name will be used) | [optional] **GroupName** | Pointer to **string** | Custom fields within the same group will be displayed together | [optional] **Description** | Pointer to **string** | | [optional] -**Required** | Pointer to **bool** | If true, this field is required when creating new objects or editing an existing object. | [optional] +**Required** | Pointer to **bool** | This field is required when creating new objects or editing an existing object. | [optional] +**Unique** | Pointer to **bool** | The value of this field must be unique for the assigned object | [optional] **SearchWeight** | Pointer to **int32** | Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. | [optional] **FilterLogic** | Pointer to [**PatchedWritableCustomFieldRequestFilterLogic**](PatchedWritableCustomFieldRequestFilterLogic.md) | | [optional] **UiVisible** | Pointer to [**PatchedWritableCustomFieldRequestUiVisible**](PatchedWritableCustomFieldRequestUiVisible.md) | | [optional] **UiEditable** | Pointer to [**PatchedWritableCustomFieldRequestUiEditable**](PatchedWritableCustomFieldRequestUiEditable.md) | | [optional] **IsCloneable** | Pointer to **bool** | Replicate this value when cloning objects | [optional] **Default** | Pointer to **interface{}** | Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] +**RelatedObjectFilter** | Pointer to **interface{}** | Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). | [optional] **Weight** | Pointer to **int32** | Fields with higher weights appear lower in a form. | [optional] **ValidationMinimum** | Pointer to **NullableInt64** | Minimum allowed value (for numeric fields) | [optional] **ValidationMaximum** | Pointer to **NullableInt64** | Maximum allowed value (for numeric fields) | [optional] **ValidationRegex** | Pointer to **string** | Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, <code>^[A-Z]{3}$</code> will limit values to exactly three uppercase letters. | [optional] -**ChoiceSet** | Pointer to [**NullableCustomFieldChoiceSetRequest**](CustomFieldChoiceSetRequest.md) | | [optional] +**ChoiceSet** | Pointer to [**NullableBriefCustomFieldChoiceSetRequest**](BriefCustomFieldChoiceSetRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] ## Methods @@ -244,6 +246,31 @@ SetRequired sets Required field to given value. HasRequired returns a boolean if a field has been set. +### GetUnique + +`func (o *WritableCustomFieldRequest) GetUnique() bool` + +GetUnique returns the Unique field if non-nil, zero value otherwise. + +### GetUniqueOk + +`func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool)` + +GetUniqueOk returns a tuple with the Unique field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetUnique + +`func (o *WritableCustomFieldRequest) SetUnique(v bool)` + +SetUnique sets Unique field to given value. + +### HasUnique + +`func (o *WritableCustomFieldRequest) HasUnique() bool` + +HasUnique returns a boolean if a field has been set. + ### GetSearchWeight `func (o *WritableCustomFieldRequest) GetSearchWeight() int32` @@ -404,6 +431,41 @@ HasDefault returns a boolean if a field has been set. `func (o *WritableCustomFieldRequest) UnsetDefault()` UnsetDefault ensures that no value is present for Default, not even an explicit nil +### GetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{}` + +GetRelatedObjectFilter returns the RelatedObjectFilter field if non-nil, zero value otherwise. + +### GetRelatedObjectFilterOk + +`func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool)` + +GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{})` + +SetRelatedObjectFilter sets RelatedObjectFilter field to given value. + +### HasRelatedObjectFilter + +`func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool` + +HasRelatedObjectFilter returns a boolean if a field has been set. + +### SetRelatedObjectFilterNil + +`func (o *WritableCustomFieldRequest) SetRelatedObjectFilterNil(b bool)` + + SetRelatedObjectFilterNil sets the value for RelatedObjectFilter to be an explicit nil + +### UnsetRelatedObjectFilter +`func (o *WritableCustomFieldRequest) UnsetRelatedObjectFilter()` + +UnsetRelatedObjectFilter ensures that no value is present for RelatedObjectFilter, not even an explicit nil ### GetWeight `func (o *WritableCustomFieldRequest) GetWeight() int32` @@ -526,20 +588,20 @@ HasValidationRegex returns a boolean if a field has been set. ### GetChoiceSet -`func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest` +`func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest` GetChoiceSet returns the ChoiceSet field if non-nil, zero value otherwise. ### GetChoiceSetOk -`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool)` +`func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool)` GetChoiceSetOk returns a tuple with the ChoiceSet field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetChoiceSet -`func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest)` +`func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest)` SetChoiceSet sets ChoiceSet field to given value. diff --git a/docs/WritableDataSourceRequest.md b/docs/WritableDataSourceRequest.md index 02b680911..aa37a1cc4 100644 --- a/docs/WritableDataSourceRequest.md +++ b/docs/WritableDataSourceRequest.md @@ -9,9 +9,9 @@ Name | Type | Description | Notes **SourceUrl** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Description** | Pointer to **string** | | [optional] -**Comments** | Pointer to **string** | | [optional] **Parameters** | Pointer to **interface{}** | | [optional] **IgnoreRules** | Pointer to **string** | Patterns (one per line) matching files to ignore when syncing | [optional] +**Comments** | Pointer to **string** | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] ## Methods @@ -143,31 +143,6 @@ SetDescription sets Description field to given value. HasDescription returns a boolean if a field has been set. -### GetComments - -`func (o *WritableDataSourceRequest) GetComments() string` - -GetComments returns the Comments field if non-nil, zero value otherwise. - -### GetCommentsOk - -`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` - -GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetComments - -`func (o *WritableDataSourceRequest) SetComments(v string)` - -SetComments sets Comments field to given value. - -### HasComments - -`func (o *WritableDataSourceRequest) HasComments() bool` - -HasComments returns a boolean if a field has been set. - ### GetParameters `func (o *WritableDataSourceRequest) GetParameters() interface{}` @@ -228,6 +203,31 @@ SetIgnoreRules sets IgnoreRules field to given value. HasIgnoreRules returns a boolean if a field has been set. +### GetComments + +`func (o *WritableDataSourceRequest) GetComments() string` + +GetComments returns the Comments field if non-nil, zero value otherwise. + +### GetCommentsOk + +`func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool)` + +GetCommentsOk returns a tuple with the Comments field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetComments + +`func (o *WritableDataSourceRequest) SetComments(v string)` + +SetComments sets Comments field to given value. + +### HasComments + +`func (o *WritableDataSourceRequest) HasComments() bool` + +HasComments returns a boolean if a field has been set. + ### GetCustomFields `func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{}` diff --git a/docs/WritableDeviceTypeRequest.md b/docs/WritableDeviceTypeRequest.md index 14fb74555..53aefbe6c 100644 --- a/docs/WritableDeviceTypeRequest.md +++ b/docs/WritableDeviceTypeRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | -**DefaultPlatform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | +**DefaultPlatform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Model** | **string** | | **Slug** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] @@ -15,7 +15,7 @@ Name | Type | Description | Notes **SubdeviceRole** | Pointer to [**ParentChildStatus1**](ParentChildStatus1.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **FrontImage** | Pointer to ***os.File** | | [optional] **RearImage** | Pointer to ***os.File** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -27,7 +27,7 @@ Name | Type | Description | Notes ### NewWritableDeviceTypeRequest -`func NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` +`func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string, ) *WritableDeviceTypeRequest` NewWritableDeviceTypeRequest instantiates a new WritableDeviceTypeRequest object This constructor will assign default values to properties that have it defined, @@ -44,40 +44,40 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. ### GetDefaultPlatform -`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest` GetDefaultPlatform returns the DefaultPlatform field if non-nil, zero value otherwise. ### GetDefaultPlatformOk -`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool)` GetDefaultPlatformOk returns a tuple with the DefaultPlatform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDefaultPlatform -`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest)` +`func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest)` SetDefaultPlatform sets DefaultPlatform field to given value. @@ -324,20 +324,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritableDeviceWithConfigContextRequest.md b/docs/WritableDeviceWithConfigContextRequest.md index 0935ed356..694be056b 100644 --- a/docs/WritableDeviceWithConfigContextRequest.md +++ b/docs/WritableDeviceWithConfigContextRequest.md @@ -5,31 +5,31 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | Pointer to **NullableString** | | [optional] -**DeviceType** | [**DeviceTypeRequest**](DeviceTypeRequest.md) | | -**Role** | [**DeviceRoleRequest**](DeviceRoleRequest.md) | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] +**DeviceType** | [**BriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | +**Role** | [**BriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] **Serial** | Pointer to **string** | Chassis serial number, assigned by the manufacturer | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Position** | Pointer to **NullableFloat64** | | [optional] **Face** | [**RackFace1**](RackFace1.md) | | **Latitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Longitude** | Pointer to **NullableFloat64** | GPS coordinate in decimal format (xx.yyyyyy) | [optional] **Status** | Pointer to [**DeviceStatusValue**](DeviceStatusValue.md) | | [optional] **Airflow** | Pointer to [**DeviceAirflowValue**](DeviceAirflowValue.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**OobIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**VirtualChassis** | Pointer to [**NullableVirtualChassisRequest**](VirtualChassisRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**OobIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**VirtualChassis** | Pointer to [**NullableBriefVirtualChassisRequest**](BriefVirtualChassisRequest.md) | | [optional] **VcPosition** | Pointer to **NullableInt32** | | [optional] **VcPriority** | Pointer to **NullableInt32** | Virtual chassis master election priority | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -38,7 +38,7 @@ Name | Type | Description | Notes ### NewWritableDeviceWithConfigContextRequest -`func NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` +`func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1, ) *WritableDeviceWithConfigContextRequest` NewWritableDeviceWithConfigContextRequest instantiates a new WritableDeviceWithConfigContextRequest object This constructor will assign default values to properties that have it defined, @@ -90,60 +90,60 @@ HasName returns a boolean if a field has been set. UnsetName ensures that no value is present for Name, not even an explicit nil ### GetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. ### GetRole -`func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. ### GetTenant -`func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -165,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -260,40 +260,40 @@ HasAssetTag returns a boolean if a field has been set. UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil ### GetSite -`func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -315,20 +315,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetRack -`func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -525,20 +525,20 @@ HasAirflow returns a boolean if a field has been set. ### GetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -560,20 +560,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -595,20 +595,20 @@ HasPrimaryIp6 returns a boolean if a field has been set. UnsetPrimaryIp6 ensures that no value is present for PrimaryIp6, not even an explicit nil ### GetOobIp -`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest` GetOobIp returns the OobIp field if non-nil, zero value otherwise. ### GetOobIpOk -`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool)` GetOobIpOk returns a tuple with the OobIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOobIp -`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest)` SetOobIp sets OobIp field to given value. @@ -630,20 +630,20 @@ HasOobIp returns a boolean if a field has been set. UnsetOobIp ensures that no value is present for OobIp, not even an explicit nil ### GetCluster -`func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -665,20 +665,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest` GetVirtualChassis returns the VirtualChassis field if non-nil, zero value otherwise. ### GetVirtualChassisOk -`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool)` GetVirtualChassisOk returns a tuple with the VirtualChassis field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualChassis -`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest)` SetVirtualChassis sets VirtualChassis field to given value. @@ -820,20 +820,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableEventRuleRequest.md b/docs/WritableEventRuleRequest.md index d091d02bf..bcd1ad37f 100644 --- a/docs/WritableEventRuleRequest.md +++ b/docs/WritableEventRuleRequest.md @@ -6,12 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **ObjectTypes** | **[]string** | | **Name** | **string** | | -**TypeCreate** | Pointer to **bool** | Triggers when a matching object is created. | [optional] -**TypeUpdate** | Pointer to **bool** | Triggers when a matching object is updated. | [optional] -**TypeDelete** | Pointer to **bool** | Triggers when a matching object is deleted. | [optional] -**TypeJobStart** | Pointer to **bool** | Triggers when a job for a matching object is started. | [optional] -**TypeJobEnd** | Pointer to **bool** | Triggers when a job for a matching object terminates. | [optional] **Enabled** | Pointer to **bool** | | [optional] +**EventTypes** | [**[]EventRuleEventTypesInner**](EventRuleEventTypesInner.md) | The types of event which will trigger this rule. | **Conditions** | Pointer to **interface{}** | A set of conditions which determine whether the event will be generated. | [optional] **ActionType** | Pointer to [**EventRuleActionTypeValue**](EventRuleActionTypeValue.md) | | [optional] **ActionObjectType** | **string** | | @@ -24,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableEventRuleRequest -`func NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string, ) *WritableEventRuleRequest` +`func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string, ) *WritableEventRuleRequest` NewWritableEventRuleRequest instantiates a new WritableEventRuleRequest object This constructor will assign default values to properties that have it defined, @@ -79,131 +75,6 @@ and a boolean to check if the value has been set. SetName sets Name field to given value. -### GetTypeCreate - -`func (o *WritableEventRuleRequest) GetTypeCreate() bool` - -GetTypeCreate returns the TypeCreate field if non-nil, zero value otherwise. - -### GetTypeCreateOk - -`func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool)` - -GetTypeCreateOk returns a tuple with the TypeCreate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeCreate - -`func (o *WritableEventRuleRequest) SetTypeCreate(v bool)` - -SetTypeCreate sets TypeCreate field to given value. - -### HasTypeCreate - -`func (o *WritableEventRuleRequest) HasTypeCreate() bool` - -HasTypeCreate returns a boolean if a field has been set. - -### GetTypeUpdate - -`func (o *WritableEventRuleRequest) GetTypeUpdate() bool` - -GetTypeUpdate returns the TypeUpdate field if non-nil, zero value otherwise. - -### GetTypeUpdateOk - -`func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool)` - -GetTypeUpdateOk returns a tuple with the TypeUpdate field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeUpdate - -`func (o *WritableEventRuleRequest) SetTypeUpdate(v bool)` - -SetTypeUpdate sets TypeUpdate field to given value. - -### HasTypeUpdate - -`func (o *WritableEventRuleRequest) HasTypeUpdate() bool` - -HasTypeUpdate returns a boolean if a field has been set. - -### GetTypeDelete - -`func (o *WritableEventRuleRequest) GetTypeDelete() bool` - -GetTypeDelete returns the TypeDelete field if non-nil, zero value otherwise. - -### GetTypeDeleteOk - -`func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool)` - -GetTypeDeleteOk returns a tuple with the TypeDelete field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeDelete - -`func (o *WritableEventRuleRequest) SetTypeDelete(v bool)` - -SetTypeDelete sets TypeDelete field to given value. - -### HasTypeDelete - -`func (o *WritableEventRuleRequest) HasTypeDelete() bool` - -HasTypeDelete returns a boolean if a field has been set. - -### GetTypeJobStart - -`func (o *WritableEventRuleRequest) GetTypeJobStart() bool` - -GetTypeJobStart returns the TypeJobStart field if non-nil, zero value otherwise. - -### GetTypeJobStartOk - -`func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool)` - -GetTypeJobStartOk returns a tuple with the TypeJobStart field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobStart - -`func (o *WritableEventRuleRequest) SetTypeJobStart(v bool)` - -SetTypeJobStart sets TypeJobStart field to given value. - -### HasTypeJobStart - -`func (o *WritableEventRuleRequest) HasTypeJobStart() bool` - -HasTypeJobStart returns a boolean if a field has been set. - -### GetTypeJobEnd - -`func (o *WritableEventRuleRequest) GetTypeJobEnd() bool` - -GetTypeJobEnd returns the TypeJobEnd field if non-nil, zero value otherwise. - -### GetTypeJobEndOk - -`func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool)` - -GetTypeJobEndOk returns a tuple with the TypeJobEnd field if it's non-nil, zero value otherwise -and a boolean to check if the value has been set. - -### SetTypeJobEnd - -`func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool)` - -SetTypeJobEnd sets TypeJobEnd field to given value. - -### HasTypeJobEnd - -`func (o *WritableEventRuleRequest) HasTypeJobEnd() bool` - -HasTypeJobEnd returns a boolean if a field has been set. - ### GetEnabled `func (o *WritableEventRuleRequest) GetEnabled() bool` @@ -229,6 +100,26 @@ SetEnabled sets Enabled field to given value. HasEnabled returns a boolean if a field has been set. +### GetEventTypes + +`func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner` + +GetEventTypes returns the EventTypes field if non-nil, zero value otherwise. + +### GetEventTypesOk + +`func (o *WritableEventRuleRequest) GetEventTypesOk() (*[]EventRuleEventTypesInner, bool)` + +GetEventTypesOk returns a tuple with the EventTypes field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetEventTypes + +`func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner)` + +SetEventTypes sets EventTypes field to given value. + + ### GetConditions `func (o *WritableEventRuleRequest) GetConditions() interface{}` diff --git a/docs/WritableFrontPortRequest.md b/docs/WritableFrontPortRequest.md index 42fc87826..303853918 100644 --- a/docs/WritableFrontPortRequest.md +++ b/docs/WritableFrontPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -21,7 +21,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortRequest -`func NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` +`func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32, ) *WritableFrontPortRequest` NewWritableFrontPortRequest instantiates a new WritableFrontPortRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +38,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableFrontPortRequest) GetDevice() DeviceRequest` +`func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableFrontPortRequest) GetModule() ModuleRequest` +`func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableFrontPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableFrontPortTemplateRequest.md b/docs/WritableFrontPortTemplateRequest.md index 8806917ff..3aa02af78 100644 --- a/docs/WritableFrontPortTemplateRequest.md +++ b/docs/WritableFrontPortTemplateRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | **Color** | Pointer to **string** | | [optional] -**RearPort** | [**RearPortTemplateRequest**](RearPortTemplateRequest.md) | | +**RearPort** | [**BriefRearPortTemplateRequest**](BriefRearPortTemplateRequest.md) | | **RearPortPosition** | Pointer to **int32** | | [optional] [default to 1] **Description** | Pointer to **string** | | [optional] @@ -18,7 +18,7 @@ Name | Type | Description | Notes ### NewWritableFrontPortTemplateRequest -`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` +`func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest, ) *WritableFrontPortTemplateRequest` NewWritableFrontPortTemplateRequest instantiates a new WritableFrontPortTemplateRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +35,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -70,20 +70,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -195,20 +195,20 @@ HasColor returns a boolean if a field has been set. ### GetRearPort -`func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest` +`func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest` GetRearPort returns the RearPort field if non-nil, zero value otherwise. ### GetRearPortOk -`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool)` +`func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool)` GetRearPortOk returns a tuple with the RearPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRearPort -`func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest)` +`func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest)` SetRearPort sets RearPort field to given value. diff --git a/docs/WritableIPAddressRequest.md b/docs/WritableIPAddressRequest.md index 6eaaca69a..ca192ccab 100644 --- a/docs/WritableIPAddressRequest.md +++ b/docs/WritableIPAddressRequest.md @@ -5,8 +5,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Address** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPAddressRequestStatus**](PatchedWritableIPAddressRequestStatus.md) | | [optional] **Role** | Pointer to [**PatchedWritableIPAddressRequestRole**](PatchedWritableIPAddressRequestRole.md) | | [optional] **AssignedObjectType** | Pointer to **NullableString** | | [optional] @@ -59,20 +59,20 @@ SetAddress sets Address field to given value. ### GetVrf -`func (o *WritableIPAddressRequest) GetVrf() VRFRequest` +`func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPAddressRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -94,20 +94,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPAddressRequest) GetTenant() TenantRequest` +`func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPAddressRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableIPRangeRequest.md b/docs/WritableIPRangeRequest.md index 5edb8406d..186e2cb36 100644 --- a/docs/WritableIPRangeRequest.md +++ b/docs/WritableIPRangeRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **StartAddress** | **string** | | **EndAddress** | **string** | | -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableIPRangeRequestStatus**](PatchedWritableIPRangeRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -77,20 +77,20 @@ SetEndAddress sets EndAddress field to given value. ### GetVrf -`func (o *WritableIPRangeRequest) GetVrf() VRFRequest` +`func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableIPRangeRequest) SetVrf(v VRFRequest)` +`func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -112,20 +112,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritableIPRangeRequest) GetTenant() TenantRequest` +`func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableIPRangeRequest) SetTenant(v TenantRequest)` +`func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -172,20 +172,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableIPRangeRequest) GetRole() RoleRequest` +`func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableIPRangeRequest) SetRole(v RoleRequest)` +`func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableIPSecProfileRequest.md b/docs/WritableIPSecProfileRequest.md index f4d30c4c1..11cd4baa0 100644 --- a/docs/WritableIPSecProfileRequest.md +++ b/docs/WritableIPSecProfileRequest.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Mode** | [**IPSecProfileModeValue**](IPSecProfileModeValue.md) | | -**IkePolicy** | [**IKEPolicyRequest**](IKEPolicyRequest.md) | | -**IpsecPolicy** | [**IPSecPolicyRequest**](IPSecPolicyRequest.md) | | +**IkePolicy** | [**BriefIKEPolicyRequest**](BriefIKEPolicyRequest.md) | | +**IpsecPolicy** | [**BriefIPSecPolicyRequest**](BriefIPSecPolicyRequest.md) | | **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -17,7 +17,7 @@ Name | Type | Description | Notes ### NewWritableIPSecProfileRequest -`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest, ) *WritableIPSecProfileRequest` +`func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest, ) *WritableIPSecProfileRequest` NewWritableIPSecProfileRequest instantiates a new WritableIPSecProfileRequest object This constructor will assign default values to properties that have it defined, @@ -99,40 +99,40 @@ SetMode sets Mode field to given value. ### GetIkePolicy -`func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest` GetIkePolicy returns the IkePolicy field if non-nil, zero value otherwise. ### GetIkePolicyOk -`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool)` GetIkePolicyOk returns a tuple with the IkePolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIkePolicy -`func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest)` SetIkePolicy sets IkePolicy field to given value. ### GetIpsecPolicy -`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest` GetIpsecPolicy returns the IpsecPolicy field if non-nil, zero value otherwise. ### GetIpsecPolicyOk -`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool)` +`func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool)` GetIpsecPolicyOk returns a tuple with the IpsecPolicy field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecPolicy -`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest)` +`func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest)` SetIpsecPolicy sets IpsecPolicy field to given value. diff --git a/docs/WritableIPSecProposalRequest.md b/docs/WritableIPSecProposalRequest.md index fc980c784..a0e65d098 100644 --- a/docs/WritableIPSecProposalRequest.md +++ b/docs/WritableIPSecProposalRequest.md @@ -6,8 +6,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Description** | Pointer to **string** | | [optional] -**EncryptionAlgorithm** | Pointer to [**Encryption**](Encryption.md) | | [optional] -**AuthenticationAlgorithm** | Pointer to [**Authentication**](Authentication.md) | | [optional] +**EncryptionAlgorithm** | Pointer to [**Encryption1**](Encryption1.md) | | [optional] +**AuthenticationAlgorithm** | Pointer to [**Authentication1**](Authentication1.md) | | [optional] **SaLifetimeSeconds** | Pointer to **NullableInt32** | Security association lifetime (seconds) | [optional] **SaLifetimeData** | Pointer to **NullableInt32** | Security association lifetime (in kilobytes) | [optional] **Comments** | Pointer to **string** | | [optional] @@ -80,20 +80,20 @@ HasDescription returns a boolean if a field has been set. ### GetEncryptionAlgorithm -`func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption` +`func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption1` GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise. ### GetEncryptionAlgorithmOk -`func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool)` +`func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption1, bool)` GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetEncryptionAlgorithm -`func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption)` +`func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption1)` SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value. @@ -105,20 +105,20 @@ HasEncryptionAlgorithm returns a boolean if a field has been set. ### GetAuthenticationAlgorithm -`func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication` +`func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication1` GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field if non-nil, zero value otherwise. ### GetAuthenticationAlgorithmOk -`func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool)` +`func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication1, bool)` GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthenticationAlgorithm -`func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication)` +`func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication1)` SetAuthenticationAlgorithm sets AuthenticationAlgorithm field to given value. diff --git a/docs/WritableInterfaceRequest.md b/docs/WritableInterfaceRequest.md index d0870300e..778c2b0c1 100644 --- a/docs/WritableInterfaceRequest.md +++ b/docs/WritableInterfaceRequest.md @@ -4,9 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Vdcs** | Pointer to **[]int32** | | [optional] -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -22,18 +22,18 @@ Name | Type | Description | Notes **MgmtOnly** | Pointer to **bool** | This interface is used only for out-of-band management | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] -**RfChannel** | Pointer to [**WirelessChannel**](WirelessChannel.md) | | [optional] +**RfRole** | Pointer to [**WirelessRole1**](WirelessRole1.md) | | [optional] +**RfChannel** | Pointer to [**WirelessChannel1**](WirelessChannel1.md) | | [optional] **PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] **PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] **RfChannelFrequency** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **RfChannelWidth** | Pointer to **NullableFloat64** | Populated by selected channel (if set) | [optional] **TxPower** | Pointer to **NullableInt32** | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **WirelessLans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -41,7 +41,7 @@ Name | Type | Description | Notes ### NewWritableInterfaceRequest -`func NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` +`func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue, ) *WritableInterfaceRequest` NewWritableInterfaceRequest instantiates a new WritableInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -58,20 +58,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableInterfaceRequest) GetDevice() DeviceRequest` +`func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -103,20 +103,20 @@ HasVdcs returns a boolean if a field has been set. ### GetModule -`func (o *WritableInterfaceRequest) GetModule() ModuleRequest` +`func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableInterfaceRequest) SetModule(v ModuleRequest)` +`func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -583,20 +583,20 @@ HasMode returns a boolean if a field has been set. ### GetRfRole -`func (o *WritableInterfaceRequest) GetRfRole() WirelessRole` +`func (o *WritableInterfaceRequest) GetRfRole() WirelessRole1` GetRfRole returns the RfRole field if non-nil, zero value otherwise. ### GetRfRoleOk -`func (o *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool)` +`func (o *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole1, bool)` GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRfRole -`func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole)` +`func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole1)` SetRfRole sets RfRole field to given value. @@ -608,20 +608,20 @@ HasRfRole returns a boolean if a field has been set. ### GetRfChannel -`func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel` +`func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel1` GetRfChannel returns the RfChannel field if non-nil, zero value otherwise. ### GetRfChannelOk -`func (o *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool)` +`func (o *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel1, bool)` GetRfChannelOk returns a tuple with the RfChannel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRfChannel -`func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel)` +`func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel1)` SetRfChannel sets RfChannel field to given value. @@ -788,20 +788,20 @@ HasTxPower returns a boolean if a field has been set. UnsetTxPower ensures that no value is present for TxPower, not even an explicit nil ### GetUntaggedVlan -`func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -898,20 +898,20 @@ HasWirelessLans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableInterfaceTemplateRequest.md b/docs/WritableInterfaceTemplateRequest.md index e5f0f4deb..c0794cc1c 100644 --- a/docs/WritableInterfaceTemplateRequest.md +++ b/docs/WritableInterfaceTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**InterfaceTypeValue**](InterfaceTypeValue.md) | | @@ -15,7 +15,7 @@ Name | Type | Description | Notes **Bridge** | Pointer to **NullableInt32** | | [optional] **PoeMode** | Pointer to [**InterfacePoeModeValue**](InterfacePoeModeValue.md) | | [optional] **PoeType** | Pointer to [**InterfacePoeTypeValue**](InterfacePoeTypeValue.md) | | [optional] -**RfRole** | Pointer to [**WirelessRole**](WirelessRole.md) | | [optional] +**RfRole** | Pointer to [**WirelessRole1**](WirelessRole1.md) | | [optional] ## Methods @@ -38,20 +38,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -73,20 +73,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -333,20 +333,20 @@ HasPoeType returns a boolean if a field has been set. ### GetRfRole -`func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole` +`func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole1` GetRfRole returns the RfRole field if non-nil, zero value otherwise. ### GetRfRoleOk -`func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool)` +`func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole1, bool)` GetRfRoleOk returns a tuple with the RfRole field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRfRole -`func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole)` +`func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole1)` SetRfRole sets RfRole field to given value. diff --git a/docs/WritableL2VPNRequest.md b/docs/WritableL2VPNRequest.md index d8d0852be..df3aa2b33 100644 --- a/docs/WritableL2VPNRequest.md +++ b/docs/WritableL2VPNRequest.md @@ -7,12 +7,12 @@ Name | Type | Description | Notes **Identifier** | Pointer to **NullableInt64** | | [optional] **Name** | **string** | | **Slug** | **string** | | -**Type** | [**L2VPNTypeValue**](L2VPNTypeValue.md) | | +**Type** | [**BriefL2VPNTypeValue**](BriefL2VPNTypeValue.md) | | **ImportTargets** | Pointer to **[]int32** | | [optional] **ExportTargets** | Pointer to **[]int32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableL2VPNRequest -`func NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue, ) *WritableL2VPNRequest` +`func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue, ) *WritableL2VPNRequest` NewWritableL2VPNRequest instantiates a new WritableL2VPNRequest object This constructor will assign default values to properties that have it defined, @@ -112,20 +112,20 @@ SetSlug sets Slug field to given value. ### GetType -`func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue` +`func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue` GetType returns the Type field if non-nil, zero value otherwise. ### GetTypeOk -`func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool)` +`func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool)` GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetType -`func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue)` +`func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue)` SetType sets Type field to given value. @@ -232,20 +232,20 @@ HasComments returns a boolean if a field has been set. ### GetTenant -`func (o *WritableL2VPNRequest) GetTenant() TenantRequest` +`func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableL2VPNRequest) SetTenant(v TenantRequest)` +`func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableLocationRequest.md b/docs/WritableLocationRequest.md index dd699d818..1e4c81e9b 100644 --- a/docs/WritableLocationRequest.md +++ b/docs/WritableLocationRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Slug** | **string** | | -**Site** | [**SiteRequest**](SiteRequest.md) | | +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | **Parent** | **NullableInt32** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **Description** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableLocationRequest -`func NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32, ) *WritableLocationRequest` +`func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32, ) *WritableLocationRequest` NewWritableLocationRequest instantiates a new WritableLocationRequest object This constructor will assign default values to properties that have it defined, @@ -76,20 +76,20 @@ SetSlug sets Slug field to given value. ### GetSite -`func (o *WritableLocationRequest) GetSite() SiteRequest` +`func (o *WritableLocationRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableLocationRequest) SetSite(v SiteRequest)` +`func (o *WritableLocationRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -126,20 +126,20 @@ SetParent sets Parent field to given value. UnsetParent ensures that no value is present for Parent, not even an explicit nil ### GetStatus -`func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableLocationRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableLocationRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -151,20 +151,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableLocationRequest) GetTenant() TenantRequest` +`func (o *WritableLocationRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableLocationRequest) SetTenant(v TenantRequest)` +`func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableModuleRequest.md b/docs/WritableModuleRequest.md index 95f95384c..a815e5e6b 100644 --- a/docs/WritableModuleRequest.md +++ b/docs/WritableModuleRequest.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **ModuleBay** | **int32** | | -**ModuleType** | [**ModuleTypeRequest**](ModuleTypeRequest.md) | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] +**ModuleType** | [**BriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this device | [optional] **Description** | Pointer to **string** | | [optional] @@ -19,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleRequest -`func NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest, ) *WritableModuleRequest` +`func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest, ) *WritableModuleRequest` NewWritableModuleRequest instantiates a new WritableModuleRequest object This constructor will assign default values to properties that have it defined, @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableModuleRequest) GetDevice() DeviceRequest` +`func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableModuleRequest) SetDevice(v DeviceRequest)` +`func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -76,40 +76,40 @@ SetModuleBay sets ModuleBay field to given value. ### GetModuleType -`func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. ### GetStatus -`func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableModuleRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. diff --git a/docs/WritableModuleTypeRequest.md b/docs/WritableModuleTypeRequest.md index ada1a71f7..013d928c9 100644 --- a/docs/WritableModuleTypeRequest.md +++ b/docs/WritableModuleTypeRequest.md @@ -4,11 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Manufacturer** | [**ManufacturerRequest**](ManufacturerRequest.md) | | +**Manufacturer** | [**BriefManufacturerRequest**](BriefManufacturerRequest.md) | | **Model** | **string** | | **PartNumber** | Pointer to **string** | Discrete part number (optional) | [optional] +**Airflow** | Pointer to [**ModuleTypeAirflowValue**](ModuleTypeAirflowValue.md) | | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -18,7 +19,7 @@ Name | Type | Description | Notes ### NewWritableModuleTypeRequest -`func NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string, ) *WritableModuleTypeRequest` +`func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string, ) *WritableModuleTypeRequest` NewWritableModuleTypeRequest instantiates a new WritableModuleTypeRequest object This constructor will assign default values to properties that have it defined, @@ -35,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetManufacturer -`func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest` +`func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest` GetManufacturer returns the Manufacturer field if non-nil, zero value otherwise. ### GetManufacturerOk -`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool)` +`func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool)` GetManufacturerOk returns a tuple with the Manufacturer field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetManufacturer -`func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest)` +`func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest)` SetManufacturer sets Manufacturer field to given value. @@ -98,6 +99,31 @@ SetPartNumber sets PartNumber field to given value. HasPartNumber returns a boolean if a field has been set. +### GetAirflow + +`func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableModuleTypeRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetWeight `func (o *WritableModuleTypeRequest) GetWeight() float64` @@ -135,20 +161,20 @@ HasWeight returns a boolean if a field has been set. UnsetWeight ensures that no value is present for Weight, not even an explicit nil ### GetWeightUnit -`func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. diff --git a/docs/WritablePowerFeedRequest.md b/docs/WritablePowerFeedRequest.md index f8ee53481..c7ee1dfc9 100644 --- a/docs/WritablePowerFeedRequest.md +++ b/docs/WritablePowerFeedRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**PowerPanel** | [**PowerPanelRequest**](PowerPanelRequest.md) | | -**Rack** | Pointer to [**NullableRackRequest**](RackRequest.md) | | [optional] +**PowerPanel** | [**BriefPowerPanelRequest**](BriefPowerPanelRequest.md) | | +**Rack** | Pointer to [**NullableBriefRackRequest**](BriefRackRequest.md) | | [optional] **Name** | **string** | | **Status** | Pointer to [**PatchedWritablePowerFeedRequestStatus**](PatchedWritablePowerFeedRequestStatus.md) | | [optional] **Type** | Pointer to [**PatchedWritablePowerFeedRequestType**](PatchedWritablePowerFeedRequestType.md) | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes **MaxUtilization** | Pointer to **int32** | Maximum permissible draw (percentage) | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] **Description** | Pointer to **string** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -25,7 +25,7 @@ Name | Type | Description | Notes ### NewWritablePowerFeedRequest -`func NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string, ) *WritablePowerFeedRequest` +`func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string, ) *WritablePowerFeedRequest` NewWritablePowerFeedRequest instantiates a new WritablePowerFeedRequest object This constructor will assign default values to properties that have it defined, @@ -42,40 +42,40 @@ but it doesn't guarantee that properties required by API are set ### GetPowerPanel -`func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest` +`func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest` GetPowerPanel returns the PowerPanel field if non-nil, zero value otherwise. ### GetPowerPanelOk -`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool)` +`func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool)` GetPowerPanelOk returns a tuple with the PowerPanel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPanel -`func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest)` +`func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest)` SetPowerPanel sets PowerPanel field to given value. ### GetRack -`func (o *WritablePowerFeedRequest) GetRack() RackRequest` +`func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest` GetRack returns the Rack field if non-nil, zero value otherwise. ### GetRackOk -`func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool)` +`func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool)` GetRackOk returns a tuple with the Rack field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRack -`func (o *WritablePowerFeedRequest) SetRack(v RackRequest)` +`func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest)` SetRack sets Rack field to given value. @@ -342,20 +342,20 @@ HasDescription returns a boolean if a field has been set. ### GetTenant -`func (o *WritablePowerFeedRequest) GetTenant() TenantRequest` +`func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest)` +`func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritablePowerOutletRequest.md b/docs/WritablePowerOutletRequest.md index 978dfe761..dcba99ba5 100644 --- a/docs/WritablePowerOutletRequest.md +++ b/docs/WritablePowerOutletRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletRequestType**](PatchedWritablePowerOutletRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortRequest**](PowerPortRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortRequest**](BriefPowerPortRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] **MarkConnected** | Pointer to **bool** | Treat as if a cable is connected | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerOutletRequest -`func NewWritablePowerOutletRequest(device DeviceRequest, name string, ) *WritablePowerOutletRequest` +`func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string, ) *WritablePowerOutletRequest` NewWritablePowerOutletRequest instantiates a new WritablePowerOutletRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerOutletRequest) GetModule() ModuleRequest` +`func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. @@ -162,20 +162,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest` +`func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool)` +`func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest)` +`func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerOutletTemplateRequest.md b/docs/WritablePowerOutletTemplateRequest.md index 196e5721a..eae1aa815 100644 --- a/docs/WritablePowerOutletTemplateRequest.md +++ b/docs/WritablePowerOutletTemplateRequest.md @@ -4,12 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerOutletTemplateRequestType**](PatchedWritablePowerOutletTemplateRequestType.md) | | [optional] -**PowerPort** | Pointer to [**NullablePowerPortTemplateRequest**](PowerPortTemplateRequest.md) | | [optional] +**PowerPort** | Pointer to [**NullableBriefPowerPortTemplateRequest**](BriefPowerPortTemplateRequest.md) | | [optional] **FeedLeg** | Pointer to [**PatchedWritablePowerOutletRequestFeedLeg**](PatchedWritablePowerOutletRequestFeedLeg.md) | | [optional] **Description** | Pointer to **string** | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. @@ -174,20 +174,20 @@ HasType returns a boolean if a field has been set. ### GetPowerPort -`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest` GetPowerPort returns the PowerPort field if non-nil, zero value otherwise. ### GetPowerPortOk -`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool)` +`func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool)` GetPowerPortOk returns a tuple with the PowerPort field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPowerPort -`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest)` +`func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest)` SetPowerPort sets PowerPort field to given value. diff --git a/docs/WritablePowerPortRequest.md b/docs/WritablePowerPortRequest.md index 55d032308..914481d74 100644 --- a/docs/WritablePowerPortRequest.md +++ b/docs/WritablePowerPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortRequestType**](PatchedWritablePowerPortRequestType.md) | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritablePowerPortRequest -`func NewWritablePowerPortRequest(device DeviceRequest, name string, ) *WritablePowerPortRequest` +`func NewWritablePowerPortRequest(device BriefDeviceRequest, name string, ) *WritablePowerPortRequest` NewWritablePowerPortRequest instantiates a new WritablePowerPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritablePowerPortRequest) GetDevice() DeviceRequest` +`func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritablePowerPortRequest) GetModule() ModuleRequest` +`func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritablePowerPortRequest) SetModule(v ModuleRequest)` +`func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritablePowerPortTemplateRequest.md b/docs/WritablePowerPortTemplateRequest.md index 75edd9950..54d00f9c0 100644 --- a/docs/WritablePowerPortTemplateRequest.md +++ b/docs/WritablePowerPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | Pointer to [**PatchedWritablePowerPortTemplateRequestType**](PatchedWritablePowerPortTemplateRequestType.md) | | [optional] @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritablePrefixRequest.md b/docs/WritablePrefixRequest.md index 87080ca95..9ff1ed781 100644 --- a/docs/WritablePrefixRequest.md +++ b/docs/WritablePrefixRequest.md @@ -5,12 +5,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Prefix** | **string** | | -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritablePrefixRequestStatus**](PatchedWritablePrefixRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **IsPool** | Pointer to **bool** | All IP addresses within this prefix are considered usable | [optional] **MarkUtilized** | Pointer to **bool** | Treat as fully utilized | [optional] **Description** | Pointer to **string** | | [optional] @@ -59,20 +59,20 @@ SetPrefix sets Prefix field to given value. ### GetSite -`func (o *WritablePrefixRequest) GetSite() SiteRequest` +`func (o *WritablePrefixRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritablePrefixRequest) SetSite(v SiteRequest)` +`func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -94,20 +94,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetVrf -`func (o *WritablePrefixRequest) GetVrf() VRFRequest` +`func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritablePrefixRequest) SetVrf(v VRFRequest)` +`func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. @@ -129,20 +129,20 @@ HasVrf returns a boolean if a field has been set. UnsetVrf ensures that no value is present for Vrf, not even an explicit nil ### GetTenant -`func (o *WritablePrefixRequest) GetTenant() TenantRequest` +`func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritablePrefixRequest) SetTenant(v TenantRequest)` +`func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -164,20 +164,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetVlan -`func (o *WritablePrefixRequest) GetVlan() VLANRequest` +`func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritablePrefixRequest) SetVlan(v VLANRequest)` +`func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -224,20 +224,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritablePrefixRequest) GetRole() RoleRequest` +`func (o *WritablePrefixRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritablePrefixRequest) SetRole(v RoleRequest)` +`func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableRackRequest.md b/docs/WritableRackRequest.md index a9a7cf6f5..864bdfd6a 100644 --- a/docs/WritableRackRequest.md +++ b/docs/WritableRackRequest.md @@ -6,25 +6,27 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **FacilityId** | Pointer to **NullableString** | | [optional] -**Site** | [**SiteRequest**](SiteRequest.md) | | -**Location** | Pointer to [**NullableLocationRequest**](LocationRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Site** | [**BriefSiteRequest**](BriefSiteRequest.md) | | +**Location** | Pointer to [**NullableBriefLocationRequest**](BriefLocationRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableRackRequestStatus**](PatchedWritableRackRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRackRoleRequest**](RackRoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRackRoleRequest**](BriefRackRoleRequest.md) | | [optional] **Serial** | Pointer to **string** | | [optional] **AssetTag** | Pointer to **NullableString** | A unique tag used to identify this rack | [optional] -**Type** | Pointer to [**PatchedWritableRackRequestType**](PatchedWritableRackRequestType.md) | | [optional] +**RackType** | Pointer to [**NullableBriefRackTypeRequest**](BriefRackTypeRequest.md) | | [optional] +**FormFactor** | Pointer to [**PatchedWritableRackRequestFormFactor**](PatchedWritableRackRequestFormFactor.md) | | [optional] **Width** | Pointer to [**PatchedWritableRackRequestWidth**](PatchedWritableRackRequestWidth.md) | | [optional] **UHeight** | Pointer to **int32** | Height in rack units | [optional] **StartingUnit** | Pointer to **int32** | Starting unit for rack | [optional] **Weight** | Pointer to **NullableFloat64** | | [optional] **MaxWeight** | Pointer to **NullableInt32** | Maximum load capacity for the rack | [optional] -**WeightUnit** | Pointer to [**PatchedWritableDeviceTypeRequestWeightUnit**](PatchedWritableDeviceTypeRequestWeightUnit.md) | | [optional] +**WeightUnit** | Pointer to [**DeviceTypeWeightUnitValue**](DeviceTypeWeightUnitValue.md) | | [optional] **DescUnits** | Pointer to **bool** | Units are numbered top-to-bottom | [optional] **OuterWidth** | Pointer to **NullableInt32** | Outer dimension of rack (width) | [optional] **OuterDepth** | Pointer to **NullableInt32** | Outer dimension of rack (depth) | [optional] **OuterUnit** | Pointer to [**PatchedWritableRackRequestOuterUnit**](PatchedWritableRackRequestOuterUnit.md) | | [optional] **MountingDepth** | Pointer to **NullableInt32** | Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. | [optional] +**Airflow** | Pointer to [**PatchedWritableRackRequestAirflow**](PatchedWritableRackRequestAirflow.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -34,7 +36,7 @@ Name | Type | Description | Notes ### NewWritableRackRequest -`func NewWritableRackRequest(name string, site SiteRequest, ) *WritableRackRequest` +`func NewWritableRackRequest(name string, site BriefSiteRequest, ) *WritableRackRequest` NewWritableRackRequest instantiates a new WritableRackRequest object This constructor will assign default values to properties that have it defined, @@ -106,40 +108,40 @@ HasFacilityId returns a boolean if a field has been set. UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil ### GetSite -`func (o *WritableRackRequest) GetSite() SiteRequest` +`func (o *WritableRackRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableRackRequest) SetSite(v SiteRequest)` +`func (o *WritableRackRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. ### GetLocation -`func (o *WritableRackRequest) GetLocation() LocationRequest` +`func (o *WritableRackRequest) GetLocation() BriefLocationRequest` GetLocation returns the Location field if non-nil, zero value otherwise. ### GetLocationOk -`func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool)` +`func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool)` GetLocationOk returns a tuple with the Location field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetLocation -`func (o *WritableRackRequest) SetLocation(v LocationRequest)` +`func (o *WritableRackRequest) SetLocation(v BriefLocationRequest)` SetLocation sets Location field to given value. @@ -161,20 +163,20 @@ HasLocation returns a boolean if a field has been set. UnsetLocation ensures that no value is present for Location, not even an explicit nil ### GetTenant -`func (o *WritableRackRequest) GetTenant() TenantRequest` +`func (o *WritableRackRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableRackRequest) SetTenant(v TenantRequest)` +`func (o *WritableRackRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -221,20 +223,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableRackRequest) GetRole() RackRoleRequest` +`func (o *WritableRackRequest) GetRole() BriefRackRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool)` +`func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableRackRequest) SetRole(v RackRoleRequest)` +`func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest)` SetRole sets Role field to given value. @@ -314,30 +316,65 @@ HasAssetTag returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetAssetTag()` UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil -### GetType +### GetRackType -`func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType` +`func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest` -GetType returns the Type field if non-nil, zero value otherwise. +GetRackType returns the RackType field if non-nil, zero value otherwise. -### GetTypeOk +### GetRackTypeOk -`func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool)` +`func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool)` -GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise +GetRackTypeOk returns a tuple with the RackType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. -### SetType +### SetRackType -`func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType)` +`func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest)` -SetType sets Type field to given value. +SetRackType sets RackType field to given value. -### HasType +### HasRackType -`func (o *WritableRackRequest) HasType() bool` +`func (o *WritableRackRequest) HasRackType() bool` -HasType returns a boolean if a field has been set. +HasRackType returns a boolean if a field has been set. + +### SetRackTypeNil + +`func (o *WritableRackRequest) SetRackTypeNil(b bool)` + + SetRackTypeNil sets the value for RackType to be an explicit nil + +### UnsetRackType +`func (o *WritableRackRequest) UnsetRackType()` + +UnsetRackType ensures that no value is present for RackType, not even an explicit nil +### GetFormFactor + +`func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor` + +GetFormFactor returns the FormFactor field if non-nil, zero value otherwise. + +### GetFormFactorOk + +`func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool)` + +GetFormFactorOk returns a tuple with the FormFactor field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetFormFactor + +`func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor)` + +SetFormFactor sets FormFactor field to given value. + +### HasFormFactor + +`func (o *WritableRackRequest) HasFormFactor() bool` + +HasFormFactor returns a boolean if a field has been set. ### GetWidth @@ -486,20 +523,20 @@ HasMaxWeight returns a boolean if a field has been set. UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil ### GetWeightUnit -`func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit` +`func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue` GetWeightUnit returns the WeightUnit field if non-nil, zero value otherwise. ### GetWeightUnitOk -`func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool)` +`func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool)` GetWeightUnitOk returns a tuple with the WeightUnit field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetWeightUnit -`func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit)` +`func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue)` SetWeightUnit sets WeightUnit field to given value. @@ -664,6 +701,31 @@ HasMountingDepth returns a boolean if a field has been set. `func (o *WritableRackRequest) UnsetMountingDepth()` UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +### GetAirflow + +`func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow` + +GetAirflow returns the Airflow field if non-nil, zero value otherwise. + +### GetAirflowOk + +`func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool)` + +GetAirflowOk returns a tuple with the Airflow field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetAirflow + +`func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow)` + +SetAirflow sets Airflow field to given value. + +### HasAirflow + +`func (o *WritableRackRequest) HasAirflow() bool` + +HasAirflow returns a boolean if a field has been set. + ### GetDescription `func (o *WritableRackRequest) GetDescription() string` diff --git a/docs/WritableRearPortRequest.md b/docs/WritableRearPortRequest.md index 5e366e7c5..10050601f 100644 --- a/docs/WritableRearPortRequest.md +++ b/docs/WritableRearPortRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | [**DeviceRequest**](DeviceRequest.md) | | -**Module** | Pointer to [**NullableModuleRequest**](ModuleRequest.md) | | [optional] +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | +**Module** | Pointer to [**NullableBriefModuleRequest**](BriefModuleRequest.md) | | [optional] **Name** | **string** | | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableRearPortRequest -`func NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` +`func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, ) *WritableRearPortRequest` NewWritableRearPortRequest instantiates a new WritableRearPortRequest object This constructor will assign default values to properties that have it defined, @@ -37,40 +37,40 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableRearPortRequest) GetDevice() DeviceRequest` +`func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableRearPortRequest) SetDevice(v DeviceRequest)` +`func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. ### GetModule -`func (o *WritableRearPortRequest) GetModule() ModuleRequest` +`func (o *WritableRearPortRequest) GetModule() BriefModuleRequest` GetModule returns the Module field if non-nil, zero value otherwise. ### GetModuleOk -`func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool)` +`func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool)` GetModuleOk returns a tuple with the Module field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModule -`func (o *WritableRearPortRequest) SetModule(v ModuleRequest)` +`func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest)` SetModule sets Module field to given value. diff --git a/docs/WritableRearPortTemplateRequest.md b/docs/WritableRearPortTemplateRequest.md index 075a046aa..4e3c43248 100644 --- a/docs/WritableRearPortTemplateRequest.md +++ b/docs/WritableRearPortTemplateRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**DeviceType** | Pointer to [**NullableDeviceTypeRequest**](DeviceTypeRequest.md) | | [optional] -**ModuleType** | Pointer to [**NullableModuleTypeRequest**](ModuleTypeRequest.md) | | [optional] +**DeviceType** | Pointer to [**NullableBriefDeviceTypeRequest**](BriefDeviceTypeRequest.md) | | [optional] +**ModuleType** | Pointer to [**NullableBriefModuleTypeRequest**](BriefModuleTypeRequest.md) | | [optional] **Name** | **string** | {module} is accepted as a substitution for the module bay position when attached to a module type. | **Label** | Pointer to **string** | Physical label | [optional] **Type** | [**FrontPortTypeValue**](FrontPortTypeValue.md) | | @@ -34,20 +34,20 @@ but it doesn't guarantee that properties required by API are set ### GetDeviceType -`func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest` GetDeviceType returns the DeviceType field if non-nil, zero value otherwise. ### GetDeviceTypeOk -`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool)` GetDeviceTypeOk returns a tuple with the DeviceType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDeviceType -`func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest)` SetDeviceType sets DeviceType field to given value. @@ -69,20 +69,20 @@ HasDeviceType returns a boolean if a field has been set. UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil ### GetModuleType -`func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest` +`func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest` GetModuleType returns the ModuleType field if non-nil, zero value otherwise. ### GetModuleTypeOk -`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool)` +`func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool)` GetModuleTypeOk returns a tuple with the ModuleType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetModuleType -`func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest)` +`func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest)` SetModuleType sets ModuleType field to given value. diff --git a/docs/WritableServiceRequest.md b/docs/WritableServiceRequest.md index f4617ee50..2a2d4015e 100644 --- a/docs/WritableServiceRequest.md +++ b/docs/WritableServiceRequest.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**VirtualMachine** | Pointer to [**NullableVirtualMachineRequest**](VirtualMachineRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**VirtualMachine** | Pointer to [**NullableBriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | [optional] **Name** | **string** | | **Protocol** | [**PatchedWritableServiceRequestProtocol**](PatchedWritableServiceRequestProtocol.md) | | **Ports** | **[]int32** | | @@ -36,20 +36,20 @@ but it doesn't guarantee that properties required by API are set ### GetDevice -`func (o *WritableServiceRequest) GetDevice() DeviceRequest` +`func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableServiceRequest) SetDevice(v DeviceRequest)` +`func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -71,20 +71,20 @@ HasDevice returns a boolean if a field has been set. UnsetDevice ensures that no value is present for Device, not even an explicit nil ### GetVirtualMachine -`func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. diff --git a/docs/WritableSiteRequest.md b/docs/WritableSiteRequest.md index d5fe57fa6..fbb616a48 100644 --- a/docs/WritableSiteRequest.md +++ b/docs/WritableSiteRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | Full name of the site | **Slug** | **string** | | -**Status** | Pointer to [**PatchedWritableLocationRequestStatus**](PatchedWritableLocationRequestStatus.md) | | [optional] -**Region** | Pointer to [**NullableRegionRequest**](RegionRequest.md) | | [optional] -**Group** | Pointer to [**NullableSiteGroupRequest**](SiteGroupRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Status** | Pointer to [**LocationStatusValue**](LocationStatusValue.md) | | [optional] +**Region** | Pointer to [**NullableBriefRegionRequest**](BriefRegionRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefSiteGroupRequest**](BriefSiteGroupRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Facility** | Pointer to **string** | Local facility ID or description | [optional] **TimeZone** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] @@ -83,20 +83,20 @@ SetSlug sets Slug field to given value. ### GetStatus -`func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus` +`func (o *WritableSiteRequest) GetStatus() LocationStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool)` +`func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus)` +`func (o *WritableSiteRequest) SetStatus(v LocationStatusValue)` SetStatus sets Status field to given value. @@ -108,20 +108,20 @@ HasStatus returns a boolean if a field has been set. ### GetRegion -`func (o *WritableSiteRequest) GetRegion() RegionRequest` +`func (o *WritableSiteRequest) GetRegion() BriefRegionRequest` GetRegion returns the Region field if non-nil, zero value otherwise. ### GetRegionOk -`func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool)` +`func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool)` GetRegionOk returns a tuple with the Region field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRegion -`func (o *WritableSiteRequest) SetRegion(v RegionRequest)` +`func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest)` SetRegion sets Region field to given value. @@ -143,20 +143,20 @@ HasRegion returns a boolean if a field has been set. UnsetRegion ensures that no value is present for Region, not even an explicit nil ### GetGroup -`func (o *WritableSiteRequest) GetGroup() SiteGroupRequest` +`func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool)` +`func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest)` +`func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest)` SetGroup sets Group field to given value. @@ -178,20 +178,20 @@ HasGroup returns a boolean if a field has been set. UnsetGroup ensures that no value is present for Group, not even an explicit nil ### GetTenant -`func (o *WritableSiteRequest) GetTenant() TenantRequest` +`func (o *WritableSiteRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableSiteRequest) SetTenant(v TenantRequest)` +`func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelRequest.md b/docs/WritableTunnelRequest.md index 074647508..68b5e21ad 100644 --- a/docs/WritableTunnelRequest.md +++ b/docs/WritableTunnelRequest.md @@ -6,10 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | **Status** | Pointer to [**PatchedWritableTunnelRequestStatus**](PatchedWritableTunnelRequestStatus.md) | | [optional] -**Group** | Pointer to [**NullableTunnelGroupRequest**](TunnelGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefTunnelGroupRequest**](BriefTunnelGroupRequest.md) | | [optional] **Encapsulation** | [**PatchedWritableTunnelRequestEncapsulation**](PatchedWritableTunnelRequestEncapsulation.md) | | -**IpsecProfile** | Pointer to [**NullableIPSecProfileRequest**](IPSecProfileRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**IpsecProfile** | Pointer to [**NullableBriefIPSecProfileRequest**](BriefIPSecProfileRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **TunnelId** | Pointer to **NullableInt64** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -82,20 +82,20 @@ HasStatus returns a boolean if a field has been set. ### GetGroup -`func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest` +`func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool)` +`func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest)` +`func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest)` SetGroup sets Group field to given value. @@ -137,20 +137,20 @@ SetEncapsulation sets Encapsulation field to given value. ### GetIpsecProfile -`func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest` +`func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest` GetIpsecProfile returns the IpsecProfile field if non-nil, zero value otherwise. ### GetIpsecProfileOk -`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool)` +`func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool)` GetIpsecProfileOk returns a tuple with the IpsecProfile field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetIpsecProfile -`func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest)` +`func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest)` SetIpsecProfile sets IpsecProfile field to given value. @@ -172,20 +172,20 @@ HasIpsecProfile returns a boolean if a field has been set. UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil ### GetTenant -`func (o *WritableTunnelRequest) GetTenant() TenantRequest` +`func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableTunnelRequest) SetTenant(v TenantRequest)` +`func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. diff --git a/docs/WritableTunnelTerminationRequest.md b/docs/WritableTunnelTerminationRequest.md index 99cb6a025..fc0483773 100644 --- a/docs/WritableTunnelTerminationRequest.md +++ b/docs/WritableTunnelTerminationRequest.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Tunnel** | [**TunnelRequest**](TunnelRequest.md) | | +**Tunnel** | [**BriefTunnelRequest**](BriefTunnelRequest.md) | | **Role** | Pointer to [**PatchedWritableTunnelTerminationRequestRole**](PatchedWritableTunnelTerminationRequestRole.md) | | [optional] **TerminationType** | **string** | | **TerminationId** | **NullableInt64** | | -**OutsideIp** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**OutsideIp** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -16,7 +16,7 @@ Name | Type | Description | Notes ### NewWritableTunnelTerminationRequest -`func NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` +`func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64, ) *WritableTunnelTerminationRequest` NewWritableTunnelTerminationRequest instantiates a new WritableTunnelTerminationRequest object This constructor will assign default values to properties that have it defined, @@ -33,20 +33,20 @@ but it doesn't guarantee that properties required by API are set ### GetTunnel -`func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest` +`func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest` GetTunnel returns the Tunnel field if non-nil, zero value otherwise. ### GetTunnelOk -`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool)` GetTunnelOk returns a tuple with the Tunnel field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTunnel -`func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest)` +`func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest)` SetTunnel sets Tunnel field to given value. @@ -128,20 +128,20 @@ SetTerminationId sets TerminationId field to given value. UnsetTerminationId ensures that no value is present for TerminationId, not even an explicit nil ### GetOutsideIp -`func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest` +`func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest` GetOutsideIp returns the OutsideIp field if non-nil, zero value otherwise. ### GetOutsideIpOk -`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool)` +`func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool)` GetOutsideIpOk returns a tuple with the OutsideIp field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetOutsideIp -`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest)` +`func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest)` SetOutsideIp sets OutsideIp field to given value. diff --git a/docs/WritableVLANRequest.md b/docs/WritableVLANRequest.md index e9b762013..cfe381a06 100644 --- a/docs/WritableVLANRequest.md +++ b/docs/WritableVLANRequest.md @@ -4,13 +4,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Group** | Pointer to [**NullableVLANGroupRequest**](VLANGroupRequest.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefVLANGroupRequest**](BriefVLANGroupRequest.md) | | [optional] **Vid** | **int32** | Numeric VLAN ID (1-4094) | **Name** | **string** | | -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableVLANRequestStatus**](PatchedWritableVLANRequestStatus.md) | | [optional] -**Role** | Pointer to [**NullableRoleRequest**](RoleRequest.md) | | [optional] +**Role** | Pointer to [**NullableBriefRoleRequest**](BriefRoleRequest.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -37,20 +37,20 @@ but it doesn't guarantee that properties required by API are set ### GetSite -`func (o *WritableVLANRequest) GetSite() SiteRequest` +`func (o *WritableVLANRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVLANRequest) SetSite(v SiteRequest)` +`func (o *WritableVLANRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -72,20 +72,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetGroup -`func (o *WritableVLANRequest) GetGroup() VLANGroupRequest` +`func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool)` +`func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest)` +`func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest)` SetGroup sets Group field to given value. @@ -147,20 +147,20 @@ SetName sets Name field to given value. ### GetTenant -`func (o *WritableVLANRequest) GetTenant() TenantRequest` +`func (o *WritableVLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -207,20 +207,20 @@ HasStatus returns a boolean if a field has been set. ### GetRole -`func (o *WritableVLANRequest) GetRole() RoleRequest` +`func (o *WritableVLANRequest) GetRole() BriefRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool)` +`func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVLANRequest) SetRole(v RoleRequest)` +`func (o *WritableVLANRequest) SetRole(v BriefRoleRequest)` SetRole sets Role field to given value. diff --git a/docs/WritableVMInterfaceRequest.md b/docs/WritableVMInterfaceRequest.md index 9177b40ec..a617cbe51 100644 --- a/docs/WritableVMInterfaceRequest.md +++ b/docs/WritableVMInterfaceRequest.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**VirtualMachine** | [**VirtualMachineRequest**](VirtualMachineRequest.md) | | +**VirtualMachine** | [**BriefVirtualMachineRequest**](BriefVirtualMachineRequest.md) | | **Name** | **string** | | **Enabled** | Pointer to **bool** | | [optional] **Parent** | Pointer to **NullableInt32** | | [optional] @@ -13,9 +13,9 @@ Name | Type | Description | Notes **MacAddress** | Pointer to **NullableString** | | [optional] **Description** | Pointer to **string** | | [optional] **Mode** | Pointer to [**PatchedWritableInterfaceRequestMode**](PatchedWritableInterfaceRequestMode.md) | | [optional] -**UntaggedVlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] +**UntaggedVlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] **TaggedVlans** | Pointer to **[]int32** | | [optional] -**Vrf** | Pointer to [**NullableVRFRequest**](VRFRequest.md) | | [optional] +**Vrf** | Pointer to [**NullableBriefVRFRequest**](BriefVRFRequest.md) | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -23,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableVMInterfaceRequest -`func NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` +`func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string, ) *WritableVMInterfaceRequest` NewWritableVMInterfaceRequest instantiates a new WritableVMInterfaceRequest object This constructor will assign default values to properties that have it defined, @@ -40,20 +40,20 @@ but it doesn't guarantee that properties required by API are set ### GetVirtualMachine -`func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest` +`func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest` GetVirtualMachine returns the VirtualMachine field if non-nil, zero value otherwise. ### GetVirtualMachineOk -`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool)` GetVirtualMachineOk returns a tuple with the VirtualMachine field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVirtualMachine -`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest)` +`func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest)` SetVirtualMachine sets VirtualMachine field to given value. @@ -295,20 +295,20 @@ HasMode returns a boolean if a field has been set. ### GetUntaggedVlan -`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest` GetUntaggedVlan returns the UntaggedVlan field if non-nil, zero value otherwise. ### GetUntaggedVlanOk -`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool)` GetUntaggedVlanOk returns a tuple with the UntaggedVlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetUntaggedVlan -`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest)` +`func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest)` SetUntaggedVlan sets UntaggedVlan field to given value. @@ -355,20 +355,20 @@ HasTaggedVlans returns a boolean if a field has been set. ### GetVrf -`func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest` +`func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest` GetVrf returns the Vrf field if non-nil, zero value otherwise. ### GetVrfOk -`func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool)` +`func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool)` GetVrfOk returns a tuple with the Vrf field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVrf -`func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest)` +`func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest)` SetVrf sets Vrf field to given value. diff --git a/docs/WritableVirtualDeviceContextRequest.md b/docs/WritableVirtualDeviceContextRequest.md index 30df18d9a..a945ebeae 100644 --- a/docs/WritableVirtualDeviceContextRequest.md +++ b/docs/WritableVirtualDeviceContextRequest.md @@ -5,11 +5,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Device** | [**DeviceRequest**](DeviceRequest.md) | | +**Device** | [**BriefDeviceRequest**](BriefDeviceRequest.md) | | **Identifier** | Pointer to **NullableInt32** | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Status** | [**PatchedWritableVirtualDeviceContextRequestStatus**](PatchedWritableVirtualDeviceContextRequestStatus.md) | | **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] @@ -20,7 +20,7 @@ Name | Type | Description | Notes ### NewWritableVirtualDeviceContextRequest -`func NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` +`func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus, ) *WritableVirtualDeviceContextRequest` NewWritableVirtualDeviceContextRequest instantiates a new WritableVirtualDeviceContextRequest object This constructor will assign default values to properties that have it defined, @@ -57,20 +57,20 @@ SetName sets Name field to given value. ### GetDevice -`func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -112,20 +112,20 @@ HasIdentifier returns a boolean if a field has been set. UnsetIdentifier ensures that no value is present for Identifier, not even an explicit nil ### GetTenant -`func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -147,20 +147,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -182,20 +182,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. diff --git a/docs/WritableVirtualMachineWithConfigContextRequest.md b/docs/WritableVirtualMachineWithConfigContextRequest.md index c0ebf4e16..c69283c3c 100644 --- a/docs/WritableVirtualMachineWithConfigContextRequest.md +++ b/docs/WritableVirtualMachineWithConfigContextRequest.md @@ -5,21 +5,22 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Name** | **string** | | -**Status** | Pointer to [**PatchedWritableModuleRequestStatus**](PatchedWritableModuleRequestStatus.md) | | [optional] -**Site** | Pointer to [**NullableSiteRequest**](SiteRequest.md) | | [optional] -**Cluster** | Pointer to [**NullableClusterRequest**](ClusterRequest.md) | | [optional] -**Device** | Pointer to [**NullableDeviceRequest**](DeviceRequest.md) | | [optional] -**Role** | Pointer to [**NullableDeviceRoleRequest**](DeviceRoleRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**Platform** | Pointer to [**NullablePlatformRequest**](PlatformRequest.md) | | [optional] -**PrimaryIp4** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] -**PrimaryIp6** | Pointer to [**NullableIPAddressRequest**](IPAddressRequest.md) | | [optional] +**Status** | Pointer to [**ModuleStatusValue**](ModuleStatusValue.md) | | [optional] +**Site** | Pointer to [**NullableBriefSiteRequest**](BriefSiteRequest.md) | | [optional] +**Cluster** | Pointer to [**NullableBriefClusterRequest**](BriefClusterRequest.md) | | [optional] +**Device** | Pointer to [**NullableBriefDeviceRequest**](BriefDeviceRequest.md) | | [optional] +**Serial** | Pointer to **string** | | [optional] +**Role** | Pointer to [**NullableBriefDeviceRoleRequest**](BriefDeviceRoleRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**Platform** | Pointer to [**NullableBriefPlatformRequest**](BriefPlatformRequest.md) | | [optional] +**PrimaryIp4** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] +**PrimaryIp6** | Pointer to [**NullableBriefIPAddressRequest**](BriefIPAddressRequest.md) | | [optional] **Vcpus** | Pointer to **NullableFloat64** | | [optional] **Memory** | Pointer to **NullableInt32** | | [optional] **Disk** | Pointer to **NullableInt32** | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] -**ConfigTemplate** | Pointer to [**NullableConfigTemplateRequest**](ConfigTemplateRequest.md) | | [optional] +**ConfigTemplate** | Pointer to [**NullableBriefConfigTemplateRequest**](BriefConfigTemplateRequest.md) | | [optional] **LocalContextData** | Pointer to **interface{}** | Local config context data takes precedence over source contexts in the final rendered config context | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] **CustomFields** | Pointer to **map[string]interface{}** | | [optional] @@ -65,20 +66,20 @@ SetName sets Name field to given value. ### GetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue)` SetStatus sets Status field to given value. @@ -90,20 +91,20 @@ HasStatus returns a boolean if a field has been set. ### GetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest` GetSite returns the Site field if non-nil, zero value otherwise. ### GetSiteOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool)` GetSiteOk returns a tuple with the Site field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetSite -`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest)` SetSite sets Site field to given value. @@ -125,20 +126,20 @@ HasSite returns a boolean if a field has been set. UnsetSite ensures that no value is present for Site, not even an explicit nil ### GetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest` GetCluster returns the Cluster field if non-nil, zero value otherwise. ### GetClusterOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool)` GetClusterOk returns a tuple with the Cluster field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetCluster -`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest)` SetCluster sets Cluster field to given value. @@ -160,20 +161,20 @@ HasCluster returns a boolean if a field has been set. UnsetCluster ensures that no value is present for Cluster, not even an explicit nil ### GetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest` GetDevice returns the Device field if non-nil, zero value otherwise. ### GetDeviceOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool)` GetDeviceOk returns a tuple with the Device field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetDevice -`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest)` SetDevice sets Device field to given value. @@ -193,22 +194,47 @@ HasDevice returns a boolean if a field has been set. `func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice()` UnsetDevice ensures that no value is present for Device, not even an explicit nil +### GetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string` + +GetSerial returns the Serial field if non-nil, zero value otherwise. + +### GetSerialOk + +`func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool)` + +GetSerialOk returns a tuple with the Serial field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string)` + +SetSerial sets Serial field to given value. + +### HasSerial + +`func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool` + +HasSerial returns a boolean if a field has been set. + ### GetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest` GetRole returns the Role field if non-nil, zero value otherwise. ### GetRoleOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool)` GetRoleOk returns a tuple with the Role field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetRole -`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest)` SetRole sets Role field to given value. @@ -230,20 +256,20 @@ HasRole returns a boolean if a field has been set. UnsetRole ensures that no value is present for Role, not even an explicit nil ### GetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -265,20 +291,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest` GetPlatform returns the Platform field if non-nil, zero value otherwise. ### GetPlatformOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool)` GetPlatformOk returns a tuple with the Platform field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPlatform -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest)` SetPlatform sets Platform field to given value. @@ -300,20 +326,20 @@ HasPlatform returns a boolean if a field has been set. UnsetPlatform ensures that no value is present for Platform, not even an explicit nil ### GetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest` GetPrimaryIp4 returns the PrimaryIp4 field if non-nil, zero value otherwise. ### GetPrimaryIp4Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp4 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest)` SetPrimaryIp4 sets PrimaryIp4 field to given value. @@ -335,20 +361,20 @@ HasPrimaryIp4 returns a boolean if a field has been set. UnsetPrimaryIp4 ensures that no value is present for PrimaryIp4, not even an explicit nil ### GetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest` GetPrimaryIp6 returns the PrimaryIp6 field if non-nil, zero value otherwise. ### GetPrimaryIp6Ok -`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool)` GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetPrimaryIp6 -`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest)` SetPrimaryIp6 sets PrimaryIp6 field to given value. @@ -525,20 +551,20 @@ HasComments returns a boolean if a field has been set. ### GetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest` GetConfigTemplate returns the ConfigTemplate field if non-nil, zero value otherwise. ### GetConfigTemplateOk -`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool)` +`func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool)` GetConfigTemplateOk returns a tuple with the ConfigTemplate field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetConfigTemplate -`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest)` +`func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest)` SetConfigTemplate sets ConfigTemplate field to given value. diff --git a/docs/WritableWirelessLANRequest.md b/docs/WritableWirelessLANRequest.md index 2a85bd219..d78e11b41 100644 --- a/docs/WritableWirelessLANRequest.md +++ b/docs/WritableWirelessLANRequest.md @@ -6,12 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **Ssid** | **string** | | **Description** | Pointer to **string** | | [optional] -**Group** | Pointer to [**NullableWirelessLANGroupRequest**](WirelessLANGroupRequest.md) | | [optional] +**Group** | Pointer to [**NullableBriefWirelessLANGroupRequest**](BriefWirelessLANGroupRequest.md) | | [optional] **Status** | Pointer to [**PatchedWritableWirelessLANRequestStatus**](PatchedWritableWirelessLANRequestStatus.md) | | [optional] -**Vlan** | Pointer to [**NullableVLANRequest**](VLANRequest.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Vlan** | Pointer to [**NullableBriefVLANRequest**](BriefVLANRequest.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**AuthenticationType3**](AuthenticationType3.md) | | [optional] +**AuthCipher** | Pointer to [**AuthenticationCipher1**](AuthenticationCipher1.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -83,20 +83,20 @@ HasDescription returns a boolean if a field has been set. ### GetGroup -`func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest` +`func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest` GetGroup returns the Group field if non-nil, zero value otherwise. ### GetGroupOk -`func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool)` +`func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool)` GetGroupOk returns a tuple with the Group field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetGroup -`func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest)` +`func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest)` SetGroup sets Group field to given value. @@ -143,20 +143,20 @@ HasStatus returns a boolean if a field has been set. ### GetVlan -`func (o *WritableWirelessLANRequest) GetVlan() VLANRequest` +`func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest` GetVlan returns the Vlan field if non-nil, zero value otherwise. ### GetVlanOk -`func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool)` +`func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool)` GetVlanOk returns a tuple with the Vlan field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetVlan -`func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest)` +`func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest)` SetVlan sets Vlan field to given value. @@ -178,20 +178,20 @@ HasVlan returns a boolean if a field has been set. UnsetVlan ensures that no value is present for Vlan, not even an explicit nil ### GetTenant -`func (o *WritableWirelessLANRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -213,20 +213,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetAuthType -`func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1` +`func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType3` GetAuthType returns the AuthType field if non-nil, zero value otherwise. ### GetAuthTypeOk -`func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool)` +`func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType3, bool)` GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthType -`func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1)` +`func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType3)` SetAuthType sets AuthType field to given value. @@ -238,20 +238,20 @@ HasAuthType returns a boolean if a field has been set. ### GetAuthCipher -`func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher` +`func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher1` GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise. ### GetAuthCipherOk -`func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)` +`func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool)` GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthCipher -`func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher)` +`func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher1)` SetAuthCipher sets AuthCipher field to given value. diff --git a/docs/WritableWirelessLinkRequest.md b/docs/WritableWirelessLinkRequest.md index 43c031946..07476afca 100644 --- a/docs/WritableWirelessLinkRequest.md +++ b/docs/WritableWirelessLinkRequest.md @@ -4,14 +4,16 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**InterfaceA** | [**InterfaceRequest**](InterfaceRequest.md) | | -**InterfaceB** | [**InterfaceRequest**](InterfaceRequest.md) | | +**InterfaceA** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | +**InterfaceB** | [**BriefInterfaceRequest**](BriefInterfaceRequest.md) | | **Ssid** | Pointer to **string** | | [optional] -**Status** | Pointer to [**PatchedWritableCableRequestStatus**](PatchedWritableCableRequestStatus.md) | | [optional] -**Tenant** | Pointer to [**NullableTenantRequest**](TenantRequest.md) | | [optional] -**AuthType** | Pointer to [**AuthenticationType1**](AuthenticationType1.md) | | [optional] -**AuthCipher** | Pointer to [**AuthenticationCipher**](AuthenticationCipher.md) | | [optional] +**Status** | Pointer to [**CableStatusValue**](CableStatusValue.md) | | [optional] +**Tenant** | Pointer to [**NullableBriefTenantRequest**](BriefTenantRequest.md) | | [optional] +**AuthType** | Pointer to [**AuthenticationType3**](AuthenticationType3.md) | | [optional] +**AuthCipher** | Pointer to [**AuthenticationCipher1**](AuthenticationCipher1.md) | | [optional] **AuthPsk** | Pointer to **string** | | [optional] +**Distance** | Pointer to **NullableFloat64** | | [optional] +**DistanceUnit** | Pointer to [**PatchedWritableWirelessLinkRequestDistanceUnit**](PatchedWritableWirelessLinkRequestDistanceUnit.md) | | [optional] **Description** | Pointer to **string** | | [optional] **Comments** | Pointer to **string** | | [optional] **Tags** | Pointer to [**[]NestedTagRequest**](NestedTagRequest.md) | | [optional] @@ -21,7 +23,7 @@ Name | Type | Description | Notes ### NewWritableWirelessLinkRequest -`func NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest, ) *WritableWirelessLinkRequest` +`func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest, ) *WritableWirelessLinkRequest` NewWritableWirelessLinkRequest instantiates a new WritableWirelessLinkRequest object This constructor will assign default values to properties that have it defined, @@ -38,40 +40,40 @@ but it doesn't guarantee that properties required by API are set ### GetInterfaceA -`func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest` GetInterfaceA returns the InterfaceA field if non-nil, zero value otherwise. ### GetInterfaceAOk -`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool)` GetInterfaceAOk returns a tuple with the InterfaceA field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceA -`func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest)` SetInterfaceA sets InterfaceA field to given value. ### GetInterfaceB -`func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest` +`func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest` GetInterfaceB returns the InterfaceB field if non-nil, zero value otherwise. ### GetInterfaceBOk -`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool)` GetInterfaceBOk returns a tuple with the InterfaceB field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetInterfaceB -`func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest)` +`func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest)` SetInterfaceB sets InterfaceB field to given value. @@ -103,20 +105,20 @@ HasSsid returns a boolean if a field has been set. ### GetStatus -`func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus` +`func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue` GetStatus returns the Status field if non-nil, zero value otherwise. ### GetStatusOk -`func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool)` +`func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool)` GetStatusOk returns a tuple with the Status field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetStatus -`func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus)` +`func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue)` SetStatus sets Status field to given value. @@ -128,20 +130,20 @@ HasStatus returns a boolean if a field has been set. ### GetTenant -`func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest` +`func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest` GetTenant returns the Tenant field if non-nil, zero value otherwise. ### GetTenantOk -`func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool)` +`func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool)` GetTenantOk returns a tuple with the Tenant field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetTenant -`func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest)` +`func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest)` SetTenant sets Tenant field to given value. @@ -163,20 +165,20 @@ HasTenant returns a boolean if a field has been set. UnsetTenant ensures that no value is present for Tenant, not even an explicit nil ### GetAuthType -`func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType1` +`func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType3` GetAuthType returns the AuthType field if non-nil, zero value otherwise. ### GetAuthTypeOk -`func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool)` +`func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType3, bool)` GetAuthTypeOk returns a tuple with the AuthType field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthType -`func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType1)` +`func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType3)` SetAuthType sets AuthType field to given value. @@ -188,20 +190,20 @@ HasAuthType returns a boolean if a field has been set. ### GetAuthCipher -`func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher` +`func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher1` GetAuthCipher returns the AuthCipher field if non-nil, zero value otherwise. ### GetAuthCipherOk -`func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool)` +`func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool)` GetAuthCipherOk returns a tuple with the AuthCipher field if it's non-nil, zero value otherwise and a boolean to check if the value has been set. ### SetAuthCipher -`func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher)` +`func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher1)` SetAuthCipher sets AuthCipher field to given value. @@ -236,6 +238,66 @@ SetAuthPsk sets AuthPsk field to given value. HasAuthPsk returns a boolean if a field has been set. +### GetDistance + +`func (o *WritableWirelessLinkRequest) GetDistance() float64` + +GetDistance returns the Distance field if non-nil, zero value otherwise. + +### GetDistanceOk + +`func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool)` + +GetDistanceOk returns a tuple with the Distance field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistance + +`func (o *WritableWirelessLinkRequest) SetDistance(v float64)` + +SetDistance sets Distance field to given value. + +### HasDistance + +`func (o *WritableWirelessLinkRequest) HasDistance() bool` + +HasDistance returns a boolean if a field has been set. + +### SetDistanceNil + +`func (o *WritableWirelessLinkRequest) SetDistanceNil(b bool)` + + SetDistanceNil sets the value for Distance to be an explicit nil + +### UnsetDistance +`func (o *WritableWirelessLinkRequest) UnsetDistance()` + +UnsetDistance ensures that no value is present for Distance, not even an explicit nil +### GetDistanceUnit + +`func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit` + +GetDistanceUnit returns the DistanceUnit field if non-nil, zero value otherwise. + +### GetDistanceUnitOk + +`func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool)` + +GetDistanceUnitOk returns a tuple with the DistanceUnit field if it's non-nil, zero value otherwise +and a boolean to check if the value has been set. + +### SetDistanceUnit + +`func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit)` + +SetDistanceUnit sets DistanceUnit field to given value. + +### HasDistanceUnit + +`func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool` + +HasDistanceUnit returns a boolean if a field has been set. + ### GetDescription `func (o *WritableWirelessLinkRequest) GetDescription() string` diff --git a/model_aggregate.go b/model_aggregate.go index be5226a6e..84dd73b06 100644 --- a/model_aggregate.go +++ b/model_aggregate.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ var _ MappedNullable = &Aggregate{} type Aggregate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Family AggregateFamily `json:"family"` Prefix string `json:"prefix"` - Rir RIR `json:"rir"` - Tenant NullableTenant `json:"tenant,omitempty"` + Rir BriefRIR `json:"rir"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` DateAdded NullableString `json:"date_added,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -44,7 +45,7 @@ type _Aggregate Aggregate // 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 NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir RIR, created NullableTime, lastUpdated NullableTime) *Aggregate { +func NewAggregate(id int32, url string, display string, family AggregateFamily, prefix string, rir BriefRIR, created NullableTime, lastUpdated NullableTime) *Aggregate { this := Aggregate{} this.Id = id this.Url = url @@ -113,6 +114,38 @@ func (o *Aggregate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Aggregate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Aggregate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Aggregate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Aggregate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Aggregate) GetDisplay() string { if o == nil { @@ -186,9 +219,9 @@ func (o *Aggregate) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *Aggregate) GetRir() RIR { +func (o *Aggregate) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -197,7 +230,7 @@ func (o *Aggregate) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *Aggregate) GetRirOk() (*RIR, bool) { +func (o *Aggregate) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -205,14 +238,14 @@ func (o *Aggregate) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *Aggregate) SetRir(v RIR) { +func (o *Aggregate) SetRir(v BriefRIR) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Aggregate) GetTenant() Tenant { +func (o *Aggregate) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -221,7 +254,7 @@ func (o *Aggregate) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Aggregate) GetTenantOk() (*Tenant, bool) { +func (o *Aggregate) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -237,8 +270,8 @@ func (o *Aggregate) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Aggregate) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Aggregate) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -487,6 +520,9 @@ func (o Aggregate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -563,6 +599,7 @@ func (o *Aggregate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_aggregate_family.go b/model_aggregate_family.go index c022e4c41..e5b049fdf 100644 --- a/model_aggregate_family.go +++ b/model_aggregate_family.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_label.go b/model_aggregate_family_label.go index 6702e6180..045cdb657 100644 --- a/model_aggregate_family_label.go +++ b/model_aggregate_family_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_family_value.go b/model_aggregate_family_value.go index 63ca9026f..29455902a 100644 --- a/model_aggregate_family_value.go +++ b/model_aggregate_family_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_aggregate_request.go b/model_aggregate_request.go index 886f759d6..6f40eacd2 100644 --- a/model_aggregate_request.go +++ b/model_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &AggregateRequest{} // AggregateRequest Adds support for custom fields and tags. type AggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _AggregateRequest AggregateRequest // 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 NewAggregateRequest(prefix string, rir RIRRequest) *AggregateRequest { +func NewAggregateRequest(prefix string, rir BriefRIRRequest) *AggregateRequest { this := AggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *AggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *AggregateRequest) GetRir() RIRRequest { +func (o *AggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +88,7 @@ func (o *AggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *AggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *AggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *AggregateRequest) SetRir(v RIRRequest) { +func (o *AggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *AggregateRequest) GetTenant() TenantRequest { +func (o *AggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *AggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *AggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *AggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *AggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *AggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn.go b/model_asn.go index 971d63862..39b23ec49 100644 --- a/model_asn.go +++ b/model_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &ASN{} // ASN Adds support for custom fields and tags. type ASN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // 16- or 32-bit autonomous system number Asn int64 `json:"asn"` - Rir NullableRIR `json:"rir,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Rir NullableBriefRIR `json:"rir,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -114,6 +115,38 @@ func (o *ASN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ASN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ASN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ASN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ASN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ASN) GetDisplay() string { if o == nil { @@ -163,9 +196,9 @@ func (o *ASN) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetRir() RIR { +func (o *ASN) GetRir() BriefRIR { if o == nil || IsNil(o.Rir.Get()) { - var ret RIR + var ret BriefRIR return ret } return *o.Rir.Get() @@ -174,7 +207,7 @@ func (o *ASN) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetRirOk() (*RIR, bool) { +func (o *ASN) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -190,8 +223,8 @@ func (o *ASN) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIR and assigns it to the Rir field. -func (o *ASN) SetRir(v RIR) { +// SetRir gets a reference to the given NullableBriefRIR and assigns it to the Rir field. +func (o *ASN) SetRir(v BriefRIR) { o.Rir.Set(&v) } @@ -206,9 +239,9 @@ func (o *ASN) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASN) GetTenant() Tenant { +func (o *ASN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -217,7 +250,7 @@ func (o *ASN) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASN) GetTenantOk() (*Tenant, bool) { +func (o *ASN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -233,8 +266,8 @@ func (o *ASN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -488,6 +521,9 @@ func (o ASN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["asn"] = o.Asn if o.Rir.IsSet() { @@ -564,6 +600,7 @@ func (o *ASN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "asn") delete(additionalProperties, "rir") diff --git a/model_asn_range.go b/model_asn_range.go index 037e760ce..3c1f0d20e 100644 --- a/model_asn_range.go +++ b/model_asn_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &ASNRange{} type ASNRange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` - Rir RIR `json:"rir"` + Rir BriefRIR `json:"rir"` Start int64 `json:"start"` End int64 `json:"end"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -45,7 +46,7 @@ type _ASNRange ASNRange // 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 NewASNRange(id int32, url string, display string, name string, slug string, rir RIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { +func NewASNRange(id int32, url string, display string, name string, slug string, rir BriefRIR, start int64, end int64, created NullableTime, lastUpdated NullableTime, asnCount int32) *ASNRange { this := ASNRange{} this.Id = id this.Url = url @@ -117,6 +118,38 @@ func (o *ASNRange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ASNRange) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ASNRange) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ASNRange) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ASNRange) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ASNRange) GetDisplay() string { if o == nil { @@ -190,9 +223,9 @@ func (o *ASNRange) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRange) GetRir() RIR { +func (o *ASNRange) GetRir() BriefRIR { if o == nil { - var ret RIR + var ret BriefRIR return ret } @@ -201,7 +234,7 @@ func (o *ASNRange) GetRir() RIR { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRange) GetRirOk() (*RIR, bool) { +func (o *ASNRange) GetRirOk() (*BriefRIR, bool) { if o == nil { return nil, false } @@ -209,7 +242,7 @@ func (o *ASNRange) GetRirOk() (*RIR, bool) { } // SetRir sets field value -func (o *ASNRange) SetRir(v RIR) { +func (o *ASNRange) SetRir(v BriefRIR) { o.Rir = v } @@ -262,9 +295,9 @@ func (o *ASNRange) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRange) GetTenant() Tenant { +func (o *ASNRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +306,7 @@ func (o *ASNRange) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRange) GetTenantOk() (*Tenant, bool) { +func (o *ASNRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,8 +322,8 @@ func (o *ASNRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *ASNRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *ASNRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -488,6 +521,9 @@ func (o ASNRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -564,6 +600,7 @@ func (o *ASNRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_asn_range_request.go b/model_asn_range_request.go index 83a9d61da..21123cf59 100644 --- a/model_asn_range_request.go +++ b/model_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &ASNRangeRequest{} // ASNRangeRequest Adds support for custom fields and tags. type ASNRangeRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Rir RIRRequest `json:"rir"` - Start int64 `json:"start"` - End int64 `json:"end"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Rir BriefRIRRequest `json:"rir"` + Start int64 `json:"start"` + End int64 `json:"end"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _ASNRangeRequest ASNRangeRequest // 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 NewASNRangeRequest(name string, slug string, rir RIRRequest, start int64, end int64) *ASNRangeRequest { +func NewASNRangeRequest(name string, slug string, rir BriefRIRRequest, start int64, end int64) *ASNRangeRequest { this := ASNRangeRequest{} this.Name = name this.Slug = slug @@ -105,9 +105,9 @@ func (o *ASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value -func (o *ASNRangeRequest) GetRir() RIRRequest { +func (o *ASNRangeRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -116,7 +116,7 @@ func (o *ASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -124,7 +124,7 @@ func (o *ASNRangeRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *ASNRangeRequest) SetRir(v RIRRequest) { +func (o *ASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = v } @@ -177,9 +177,9 @@ func (o *ASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRangeRequest) GetTenant() TenantRequest { +func (o *ASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -188,7 +188,7 @@ func (o *ASNRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -204,8 +204,8 @@ func (o *ASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_asn_request.go b/model_asn_request.go index 2d8e8162f..4ea9e336d 100644 --- a/model_asn_request.go +++ b/model_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,13 @@ var _ MappedNullable = &ASNRequest{} // ASNRequest Adds support for custom fields and tags. type ASNRequest struct { // 16- or 32-bit autonomous system number - Asn int64 `json:"asn"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn int64 `json:"asn"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -76,9 +76,9 @@ func (o *ASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetRir() RIRRequest { +func (o *ASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -87,7 +87,7 @@ func (o *ASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *ASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -103,8 +103,8 @@ func (o *ASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *ASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *ASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } @@ -119,9 +119,9 @@ func (o *ASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ASNRequest) GetTenant() TenantRequest { +func (o *ASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -130,7 +130,7 @@ func (o *ASNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *ASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -146,8 +146,8 @@ func (o *ASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *ASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_authentication.go b/model_authentication.go index 9642d196e..d5ef27085 100644 --- a/model_authentication.go +++ b/model_authentication.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,27 +15,27 @@ import ( "fmt" ) -// Authentication * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +// Authentication the model 'Authentication' type Authentication string // List of Authentication const ( + AUTHENTICATION_EMPTY Authentication = "" + AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5" AUTHENTICATION_HMAC_SHA1 Authentication = "hmac-sha1" AUTHENTICATION_HMAC_SHA256 Authentication = "hmac-sha256" AUTHENTICATION_HMAC_SHA384 Authentication = "hmac-sha384" AUTHENTICATION_HMAC_SHA512 Authentication = "hmac-sha512" - AUTHENTICATION_HMAC_MD5 Authentication = "hmac-md5" - AUTHENTICATION_EMPTY Authentication = "" ) // All allowed values of Authentication enum var AllowedAuthenticationEnumValues = []Authentication{ + "", + "hmac-md5", "hmac-sha1", "hmac-sha256", "hmac-sha384", "hmac-sha512", - "hmac-md5", - "", } func (v *Authentication) UnmarshalJSON(src []byte) error { diff --git a/model_authentication_cipher.go b/model_authentication_cipher.go index 1c9752516..f6c7d9bfd 100644 --- a/model_authentication_cipher.go +++ b/model_authentication_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,23 +15,23 @@ import ( "fmt" ) -// AuthenticationCipher * `auto` - Auto * `tkip` - TKIP * `aes` - AES +// AuthenticationCipher the model 'AuthenticationCipher' type AuthenticationCipher string // List of Authentication_cipher const ( + AUTHENTICATIONCIPHER_EMPTY AuthenticationCipher = "" + AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes" AUTHENTICATIONCIPHER_AUTO AuthenticationCipher = "auto" AUTHENTICATIONCIPHER_TKIP AuthenticationCipher = "tkip" - AUTHENTICATIONCIPHER_AES AuthenticationCipher = "aes" - AUTHENTICATIONCIPHER_EMPTY AuthenticationCipher = "" ) // All allowed values of AuthenticationCipher enum var AllowedAuthenticationCipherEnumValues = []AuthenticationCipher{ + "", + "aes", "auto", "tkip", - "aes", - "", } func (v *AuthenticationCipher) UnmarshalJSON(src []byte) error { diff --git a/model_authentication_type.go b/model_authentication_type.go index 87147a487..b0421db91 100644 --- a/model_authentication_type.go +++ b/model_authentication_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,21 +15,21 @@ import ( "fmt" ) -// AuthenticationType * `plaintext` - Plaintext * `md5` - MD5 +// AuthenticationType the model 'AuthenticationType' type AuthenticationType string // List of Authentication_type const ( - AUTHENTICATIONTYPE_PLAINTEXT AuthenticationType = "plaintext" - AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5" AUTHENTICATIONTYPE_EMPTY AuthenticationType = "" + AUTHENTICATIONTYPE_MD5 AuthenticationType = "md5" + AUTHENTICATIONTYPE_PLAINTEXT AuthenticationType = "plaintext" ) // All allowed values of AuthenticationType enum var AllowedAuthenticationTypeEnumValues = []AuthenticationType{ - "plaintext", - "md5", "", + "md5", + "plaintext", } func (v *AuthenticationType) UnmarshalJSON(src []byte) error { diff --git a/model_authentication_type_1.go b/model_authentication_type_1.go index 7c661a0a6..d883749e4 100644 --- a/model_authentication_type_1.go +++ b/model_authentication_type_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,25 +15,25 @@ import ( "fmt" ) -// AuthenticationType1 * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +// AuthenticationType1 the model 'AuthenticationType1' type AuthenticationType1 string // List of Authentication_type_1 const ( + AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = "" AUTHENTICATIONTYPE1_OPEN AuthenticationType1 = "open" AUTHENTICATIONTYPE1_WEP AuthenticationType1 = "wep" - AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal" AUTHENTICATIONTYPE1_WPA_ENTERPRISE AuthenticationType1 = "wpa-enterprise" - AUTHENTICATIONTYPE1_EMPTY AuthenticationType1 = "" + AUTHENTICATIONTYPE1_WPA_PERSONAL AuthenticationType1 = "wpa-personal" ) // All allowed values of AuthenticationType1 enum var AllowedAuthenticationType1EnumValues = []AuthenticationType1{ + "", "open", "wep", - "wpa-personal", "wpa-enterprise", - "", + "wpa-personal", } func (v *AuthenticationType1) UnmarshalJSON(src []byte) error { diff --git a/model_available_asn.go b/model_available_asn.go index e398bbbb2..08ce3ca77 100644 --- a/model_available_asn.go +++ b/model_available_asn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_available_ip.go b/model_available_ip.go index b06e6140c..b868c1b2e 100644 --- a/model_available_ip.go +++ b/model_available_ip.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &AvailableIP{} // AvailableIP Representation of an IP address which does not exist in the database. type AvailableIP struct { - Family int32 `json:"family"` - Address string `json:"address"` - Vrf NullableVRF `json:"vrf"` - Description *string `json:"description,omitempty"` + Family int32 `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _AvailableIP AvailableIP // 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 NewAvailableIP(family int32, address string, vrf NullableVRF) *AvailableIP { +func NewAvailableIP(family int32, address string, vrf NullableBriefVRF) *AvailableIP { this := AvailableIP{} this.Family = family this.Address = address @@ -98,10 +98,10 @@ func (o *AvailableIP) SetAddress(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailableIP) GetVrf() VRF { +// If the value is explicit nil, the zero value for BriefVRF will be returned +func (o *AvailableIP) GetVrf() BriefVRF { if o == nil || o.Vrf.Get() == nil { - var ret VRF + var ret BriefVRF return ret } @@ -111,7 +111,7 @@ func (o *AvailableIP) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableIP) GetVrfOk() (*VRF, bool) { +func (o *AvailableIP) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -119,7 +119,7 @@ func (o *AvailableIP) GetVrfOk() (*VRF, bool) { } // SetVrf sets field value -func (o *AvailableIP) SetVrf(v VRF) { +func (o *AvailableIP) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } diff --git a/model_available_prefix.go b/model_available_prefix.go index 6efa0386c..b2b76daa3 100644 --- a/model_available_prefix.go +++ b/model_available_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &AvailablePrefix{} // AvailablePrefix Representation of a prefix which does not exist in the database. type AvailablePrefix struct { - Family int32 `json:"family"` - Prefix string `json:"prefix"` - Vrf NullableVRF `json:"vrf"` + Family int32 `json:"family"` + Prefix string `json:"prefix"` + Vrf NullableBriefVRF `json:"vrf"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _AvailablePrefix AvailablePrefix // 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 NewAvailablePrefix(family int32, prefix string, vrf NullableVRF) *AvailablePrefix { +func NewAvailablePrefix(family int32, prefix string, vrf NullableBriefVRF) *AvailablePrefix { this := AvailablePrefix{} this.Family = family this.Prefix = prefix @@ -97,10 +97,10 @@ func (o *AvailablePrefix) SetPrefix(v string) { } // GetVrf returns the Vrf field value -// If the value is explicit nil, the zero value for VRF will be returned -func (o *AvailablePrefix) GetVrf() VRF { +// If the value is explicit nil, the zero value for BriefVRF will be returned +func (o *AvailablePrefix) GetVrf() BriefVRF { if o == nil || o.Vrf.Get() == nil { - var ret VRF + var ret BriefVRF return ret } @@ -110,7 +110,7 @@ func (o *AvailablePrefix) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { +func (o *AvailablePrefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -118,7 +118,7 @@ func (o *AvailablePrefix) GetVrfOk() (*VRF, bool) { } // SetVrf sets field value -func (o *AvailablePrefix) SetVrf(v VRF) { +func (o *AvailablePrefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } diff --git a/model_available_vlan.go b/model_available_vlan.go index 8228b8d05..c7aeb2098 100644 --- a/model_available_vlan.go +++ b/model_available_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &AvailableVLAN{} // AvailableVLAN Representation of a VLAN which does not exist in the database. type AvailableVLAN struct { - Vid int32 `json:"vid"` - Group NullableVLANGroup `json:"group"` + Vid int32 `json:"vid"` + Group NullableBriefVLANGroup `json:"group"` AdditionalProperties map[string]interface{} } @@ -31,7 +31,7 @@ type _AvailableVLAN AvailableVLAN // 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 NewAvailableVLAN(vid int32, group NullableVLANGroup) *AvailableVLAN { +func NewAvailableVLAN(vid int32, group NullableBriefVLANGroup) *AvailableVLAN { this := AvailableVLAN{} this.Vid = vid this.Group = group @@ -71,10 +71,10 @@ func (o *AvailableVLAN) SetVid(v int32) { } // GetGroup returns the Group field value -// If the value is explicit nil, the zero value for VLANGroup will be returned -func (o *AvailableVLAN) GetGroup() VLANGroup { +// If the value is explicit nil, the zero value for BriefVLANGroup will be returned +func (o *AvailableVLAN) GetGroup() BriefVLANGroup { if o == nil || o.Group.Get() == nil { - var ret VLANGroup + var ret BriefVLANGroup return ret } @@ -84,7 +84,7 @@ func (o *AvailableVLAN) GetGroup() VLANGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { +func (o *AvailableVLAN) GetGroupOk() (*BriefVLANGroup, bool) { if o == nil { return nil, false } @@ -92,7 +92,7 @@ func (o *AvailableVLAN) GetGroupOk() (*VLANGroup, bool) { } // SetGroup sets field value -func (o *AvailableVLAN) SetGroup(v VLANGroup) { +func (o *AvailableVLAN) SetGroup(v BriefVLANGroup) { o.Group.Set(&v) } diff --git a/model_bookmark.go b/model_bookmark.go index 6552b0da1..82931a227 100644 --- a/model_bookmark.go +++ b/model_bookmark.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,7 +27,7 @@ type Bookmark struct { ObjectType string `json:"object_type"` ObjectId int64 `json:"object_id"` Object interface{} `json:"object"` - User User `json:"user"` + User BriefUser `json:"user"` Created time.Time `json:"created"` AdditionalProperties map[string]interface{} } @@ -38,7 +38,7 @@ type _Bookmark Bookmark // 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 NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user User, created time.Time) *Bookmark { +func NewBookmark(id int32, url string, display string, objectType string, objectId int64, object interface{}, user BriefUser, created time.Time) *Bookmark { this := Bookmark{} this.Id = id this.Url = url @@ -206,9 +206,9 @@ func (o *Bookmark) SetObject(v interface{}) { } // GetUser returns the User field value -func (o *Bookmark) GetUser() User { +func (o *Bookmark) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -217,7 +217,7 @@ func (o *Bookmark) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Bookmark) GetUserOk() (*User, bool) { +func (o *Bookmark) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -225,7 +225,7 @@ func (o *Bookmark) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Bookmark) SetUser(v User) { +func (o *Bookmark) SetUser(v BriefUser) { o.User = v } diff --git a/model_bookmark_request.go b/model_bookmark_request.go index 22932dcd2..967ddb071 100644 --- a/model_bookmark_request.go +++ b/model_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &BookmarkRequest{} // BookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type BookmarkRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - User UserRequest `json:"user"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + User BriefUserRequest `json:"user"` AdditionalProperties map[string]interface{} } @@ -32,7 +32,7 @@ type _BookmarkRequest BookmarkRequest // 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 NewBookmarkRequest(objectType string, objectId int64, user UserRequest) *BookmarkRequest { +func NewBookmarkRequest(objectType string, objectId int64, user BriefUserRequest) *BookmarkRequest { this := BookmarkRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -97,9 +97,9 @@ func (o *BookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value -func (o *BookmarkRequest) GetUser() UserRequest { +func (o *BookmarkRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -108,7 +108,7 @@ func (o *BookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *BookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -116,7 +116,7 @@ func (o *BookmarkRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *BookmarkRequest) SetUser(v UserRequest) { +func (o *BookmarkRequest) SetUser(v BriefUserRequest) { o.User = v } diff --git a/model_brief_cable.go b/model_brief_cable.go index 7a28fd7ac..733ec4a6d 100644 --- a/model_brief_cable.go +++ b/model_brief_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cable_request.go b/model_brief_cable_request.go index 5b7c80bbb..afe0a29d2 100644 --- a/model_brief_cable_request.go +++ b/model_brief_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit.go b/model_brief_circuit.go index a8c6ed93d..e279b82e7 100644 --- a/model_brief_circuit.go +++ b/model_brief_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group.go b/model_brief_circuit_group.go index d1b0a1ab0..daa83d42a 100644 --- a/model_brief_circuit_group.go +++ b/model_brief_circuit_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group_assignment_serializer_.go b/model_brief_circuit_group_assignment_serializer_.go index d3be5f3d1..47dcad9d5 100644 --- a/model_brief_circuit_group_assignment_serializer_.go +++ b/model_brief_circuit_group_assignment_serializer_.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group_assignment_serializer__priority.go b/model_brief_circuit_group_assignment_serializer__priority.go index f42c396c9..70e79a289 100644 --- a/model_brief_circuit_group_assignment_serializer__priority.go +++ b/model_brief_circuit_group_assignment_serializer__priority.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group_assignment_serializer__priority_label.go b/model_brief_circuit_group_assignment_serializer__priority_label.go index 0a5024f8a..1de6c8676 100644 --- a/model_brief_circuit_group_assignment_serializer__priority_label.go +++ b/model_brief_circuit_group_assignment_serializer__priority_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group_assignment_serializer__priority_value.go b/model_brief_circuit_group_assignment_serializer__priority_value.go index d4ae85a09..d86884ed2 100644 --- a/model_brief_circuit_group_assignment_serializer__priority_value.go +++ b/model_brief_circuit_group_assignment_serializer__priority_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group_assignment_serializer_request.go b/model_brief_circuit_group_assignment_serializer_request.go index ec7ad6d36..0f7e3234f 100644 --- a/model_brief_circuit_group_assignment_serializer_request.go +++ b/model_brief_circuit_group_assignment_serializer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_group_request.go b/model_brief_circuit_group_request.go index e3ffa0b94..1e9fec8b2 100644 --- a/model_brief_circuit_group_request.go +++ b/model_brief_circuit_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_request.go b/model_brief_circuit_request.go index bd236fc47..41791dcb1 100644 --- a/model_brief_circuit_request.go +++ b/model_brief_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_type.go b/model_brief_circuit_type.go index 5240c922f..9b8258499 100644 --- a/model_brief_circuit_type.go +++ b/model_brief_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_circuit_type_request.go b/model_brief_circuit_type_request.go index 7225e8e9f..dd535fe44 100644 --- a/model_brief_circuit_type_request.go +++ b/model_brief_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cluster.go b/model_brief_cluster.go index df84ea9f6..6624a1539 100644 --- a/model_brief_cluster.go +++ b/model_brief_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cluster_group.go b/model_brief_cluster_group.go index d747246f1..21b714cd4 100644 --- a/model_brief_cluster_group.go +++ b/model_brief_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cluster_group_request.go b/model_brief_cluster_group_request.go index f1f6ca58b..1a4e83071 100644 --- a/model_brief_cluster_group_request.go +++ b/model_brief_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cluster_request.go b/model_brief_cluster_request.go index 79535ab10..8d95f09a3 100644 --- a/model_brief_cluster_request.go +++ b/model_brief_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cluster_type.go b/model_brief_cluster_type.go index 369f920b5..9c8915c48 100644 --- a/model_brief_cluster_type.go +++ b/model_brief_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_cluster_type_request.go b/model_brief_cluster_type_request.go index a01bf48ce..76cf5f716 100644 --- a/model_brief_cluster_type_request.go +++ b/model_brief_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_config_template.go b/model_brief_config_template.go index acb30df29..a1fa3a454 100644 --- a/model_brief_config_template.go +++ b/model_brief_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_config_template_request.go b/model_brief_config_template_request.go index a5c8c174c..6341f52c3 100644 --- a/model_brief_config_template_request.go +++ b/model_brief_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_contact.go b/model_brief_contact.go index a19efe0ef..bfd57048b 100644 --- a/model_brief_contact.go +++ b/model_brief_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_contact_group.go b/model_brief_contact_group.go index 53ec773fd..55ae42ecb 100644 --- a/model_brief_contact_group.go +++ b/model_brief_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_contact_group_request.go b/model_brief_contact_group_request.go index cb9fa8477..6aaa4f864 100644 --- a/model_brief_contact_group_request.go +++ b/model_brief_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_contact_request.go b/model_brief_contact_request.go index 5b4879b7c..ce0fba71f 100644 --- a/model_brief_contact_request.go +++ b/model_brief_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_contact_role.go b/model_brief_contact_role.go index 69c46b628..5faab7ecd 100644 --- a/model_brief_contact_role.go +++ b/model_brief_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_contact_role_request.go b/model_brief_contact_role_request.go index 40611faa0..08a78454d 100644 --- a/model_brief_contact_role_request.go +++ b/model_brief_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_custom_field_choice_set.go b/model_brief_custom_field_choice_set.go index d7e0896cb..9233dc85d 100644 --- a/model_brief_custom_field_choice_set.go +++ b/model_brief_custom_field_choice_set.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_custom_field_choice_set_request.go b/model_brief_custom_field_choice_set_request.go index 440e4a2af..36d5e763b 100644 --- a/model_brief_custom_field_choice_set_request.go +++ b/model_brief_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_data_file.go b/model_brief_data_file.go index 5ec460480..39a949829 100644 --- a/model_brief_data_file.go +++ b/model_brief_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_data_source.go b/model_brief_data_source.go index 554ac6aca..58a4684e8 100644 --- a/model_brief_data_source.go +++ b/model_brief_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_data_source_request.go b/model_brief_data_source_request.go index 3c6aa53b9..b718c0e64 100644 --- a/model_brief_data_source_request.go +++ b/model_brief_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_device.go b/model_brief_device.go index 09635c150..bbf84867a 100644 --- a/model_brief_device.go +++ b/model_brief_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_device_request.go b/model_brief_device_request.go index c5731c065..cf5d036b0 100644 --- a/model_brief_device_request.go +++ b/model_brief_device_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_device_role.go b/model_brief_device_role.go index bed181246..9a001aba5 100644 --- a/model_brief_device_role.go +++ b/model_brief_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_device_role_request.go b/model_brief_device_role_request.go index f1755f531..7b4a7dbbc 100644 --- a/model_brief_device_role_request.go +++ b/model_brief_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_device_type.go b/model_brief_device_type.go index fc540dd13..e9f29d197 100644 --- a/model_brief_device_type.go +++ b/model_brief_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_device_type_request.go b/model_brief_device_type_request.go index 8414c35bb..b61298d06 100644 --- a/model_brief_device_type_request.go +++ b/model_brief_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_fhrp_group.go b/model_brief_fhrp_group.go index f298b6356..ffe2c040f 100644 --- a/model_brief_fhrp_group.go +++ b/model_brief_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_fhrp_group_protocol.go b/model_brief_fhrp_group_protocol.go index 258baea61..dc8852f8e 100644 --- a/model_brief_fhrp_group_protocol.go +++ b/model_brief_fhrp_group_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_fhrp_group_request.go b/model_brief_fhrp_group_request.go index 1e0446aba..660e68eef 100644 --- a/model_brief_fhrp_group_request.go +++ b/model_brief_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ike_policy.go b/model_brief_ike_policy.go index 8da1faca9..700da98dd 100644 --- a/model_brief_ike_policy.go +++ b/model_brief_ike_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ike_policy_request.go b/model_brief_ike_policy_request.go index d6eb3cb57..dfccd4338 100644 --- a/model_brief_ike_policy_request.go +++ b/model_brief_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_interface.go b/model_brief_interface.go index b0af0fb13..a0fe7c4f3 100644 --- a/model_brief_interface.go +++ b/model_brief_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_interface_request.go b/model_brief_interface_request.go index 75534f287..c30dd69c6 100644 --- a/model_brief_interface_request.go +++ b/model_brief_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_inventory_item_role.go b/model_brief_inventory_item_role.go index 5b3959b47..58a6ff503 100644 --- a/model_brief_inventory_item_role.go +++ b/model_brief_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_inventory_item_role_request.go b/model_brief_inventory_item_role_request.go index bc67d73a0..60574e330 100644 --- a/model_brief_inventory_item_role_request.go +++ b/model_brief_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ip_address.go b/model_brief_ip_address.go index ddcf5fdff..321ee5a87 100644 --- a/model_brief_ip_address.go +++ b/model_brief_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ip_address_request.go b/model_brief_ip_address_request.go index 5e56f7c6f..4c4f4eb45 100644 --- a/model_brief_ip_address_request.go +++ b/model_brief_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ip_sec_policy.go b/model_brief_ip_sec_policy.go index 1b6fffc33..8b2d9ffd5 100644 --- a/model_brief_ip_sec_policy.go +++ b/model_brief_ip_sec_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ip_sec_policy_request.go b/model_brief_ip_sec_policy_request.go index 1548cb779..f3751177f 100644 --- a/model_brief_ip_sec_policy_request.go +++ b/model_brief_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ip_sec_profile.go b/model_brief_ip_sec_profile.go index 1b4fc3592..09dc36428 100644 --- a/model_brief_ip_sec_profile.go +++ b/model_brief_ip_sec_profile.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_ip_sec_profile_request.go b/model_brief_ip_sec_profile_request.go index 7321e231e..afbeed4d7 100644 --- a/model_brief_ip_sec_profile_request.go +++ b/model_brief_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_job.go b/model_brief_job.go index 37912f6a2..38ac1f23d 100644 --- a/model_brief_job.go +++ b/model_brief_job.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_job_request.go b/model_brief_job_request.go index d6fbad508..dd72fed5e 100644 --- a/model_brief_job_request.go +++ b/model_brief_job_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_job_status.go b/model_brief_job_status.go index c74c3169e..4ee2d2da2 100644 --- a/model_brief_job_status.go +++ b/model_brief_job_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_job_status_label.go b/model_brief_job_status_label.go index 2cda8ab28..8736dc696 100644 --- a/model_brief_job_status_label.go +++ b/model_brief_job_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_job_status_value.go b/model_brief_job_status_value.go index b4c937c60..09eaf82ec 100644 --- a/model_brief_job_status_value.go +++ b/model_brief_job_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn.go b/model_brief_l2_vpn.go index 7fbb57772..94175b7f2 100644 --- a/model_brief_l2_vpn.go +++ b/model_brief_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn_request.go b/model_brief_l2_vpn_request.go index 3c9ac88b0..626b8169f 100644 --- a/model_brief_l2_vpn_request.go +++ b/model_brief_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn_termination.go b/model_brief_l2_vpn_termination.go index 54b320230..7364abebb 100644 --- a/model_brief_l2_vpn_termination.go +++ b/model_brief_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn_termination_request.go b/model_brief_l2_vpn_termination_request.go index 4afb8d0d9..09a9bb3e9 100644 --- a/model_brief_l2_vpn_termination_request.go +++ b/model_brief_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn_type.go b/model_brief_l2_vpn_type.go index 20dd337b4..abfebeb3d 100644 --- a/model_brief_l2_vpn_type.go +++ b/model_brief_l2_vpn_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn_type_label.go b/model_brief_l2_vpn_type_label.go index dcb9b299a..b1b794a32 100644 --- a/model_brief_l2_vpn_type_label.go +++ b/model_brief_l2_vpn_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_l2_vpn_type_value.go b/model_brief_l2_vpn_type_value.go index dc5065a51..f4a2c410d 100644 --- a/model_brief_l2_vpn_type_value.go +++ b/model_brief_l2_vpn_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_location.go b/model_brief_location.go index 6fa073cfd..1ab17c7fb 100644 --- a/model_brief_location.go +++ b/model_brief_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_location_request.go b/model_brief_location_request.go index 03194e1c6..af1180b5f 100644 --- a/model_brief_location_request.go +++ b/model_brief_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_manufacturer.go b/model_brief_manufacturer.go index 8fa57edd0..b17aee7a6 100644 --- a/model_brief_manufacturer.go +++ b/model_brief_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_manufacturer_request.go b/model_brief_manufacturer_request.go index ca9af173e..43c86a568 100644 --- a/model_brief_manufacturer_request.go +++ b/model_brief_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_module.go b/model_brief_module.go index bea103e2a..866dd2b4e 100644 --- a/model_brief_module.go +++ b/model_brief_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_module_request.go b/model_brief_module_request.go index 34049d03d..db80868b2 100644 --- a/model_brief_module_request.go +++ b/model_brief_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_module_type.go b/model_brief_module_type.go index 8e1667bdf..b5e855550 100644 --- a/model_brief_module_type.go +++ b/model_brief_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_module_type_request.go b/model_brief_module_type_request.go index aee60c62c..97ddaa8d9 100644 --- a/model_brief_module_type_request.go +++ b/model_brief_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_platform.go b/model_brief_platform.go index 92cff5539..13ba10fd2 100644 --- a/model_brief_platform.go +++ b/model_brief_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_platform_request.go b/model_brief_platform_request.go index 718d9e407..3f6f28b7b 100644 --- a/model_brief_platform_request.go +++ b/model_brief_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_power_panel.go b/model_brief_power_panel.go index 7b416ab30..d4c481c83 100644 --- a/model_brief_power_panel.go +++ b/model_brief_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_power_panel_request.go b/model_brief_power_panel_request.go index 698765eb5..eb53205f0 100644 --- a/model_brief_power_panel_request.go +++ b/model_brief_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_power_port.go b/model_brief_power_port.go index f82033d29..956e353bc 100644 --- a/model_brief_power_port.go +++ b/model_brief_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_power_port_request.go b/model_brief_power_port_request.go index 4740eda83..9067d7b24 100644 --- a/model_brief_power_port_request.go +++ b/model_brief_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_power_port_template.go b/model_brief_power_port_template.go index 92bcc7980..1f25c2814 100644 --- a/model_brief_power_port_template.go +++ b/model_brief_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_power_port_template_request.go b/model_brief_power_port_template_request.go index 313c1462f..e214fdefc 100644 --- a/model_brief_power_port_template_request.go +++ b/model_brief_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_provider.go b/model_brief_provider.go index 165838d3e..c5b096582 100644 --- a/model_brief_provider.go +++ b/model_brief_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_provider_account.go b/model_brief_provider_account.go index 24af5c481..81a9d0616 100644 --- a/model_brief_provider_account.go +++ b/model_brief_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_provider_account_request.go b/model_brief_provider_account_request.go index b415deb76..d5d6bc5e2 100644 --- a/model_brief_provider_account_request.go +++ b/model_brief_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_provider_network.go b/model_brief_provider_network.go index 06c4e626b..f3db3d3d5 100644 --- a/model_brief_provider_network.go +++ b/model_brief_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_provider_network_request.go b/model_brief_provider_network_request.go index d7c3c6087..1778b60cf 100644 --- a/model_brief_provider_network_request.go +++ b/model_brief_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_provider_request.go b/model_brief_provider_request.go index a91662dd5..ad9ddc04f 100644 --- a/model_brief_provider_request.go +++ b/model_brief_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rack.go b/model_brief_rack.go index 4540f7012..fa21a4c05 100644 --- a/model_brief_rack.go +++ b/model_brief_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rack_request.go b/model_brief_rack_request.go index 8b9d1ce27..95e67545a 100644 --- a/model_brief_rack_request.go +++ b/model_brief_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rack_role.go b/model_brief_rack_role.go index a8143304c..fd5ed1fc0 100644 --- a/model_brief_rack_role.go +++ b/model_brief_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rack_role_request.go b/model_brief_rack_role_request.go index 629e5d282..c00094195 100644 --- a/model_brief_rack_role_request.go +++ b/model_brief_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rack_type.go b/model_brief_rack_type.go index 3ad571835..21bdce583 100644 --- a/model_brief_rack_type.go +++ b/model_brief_rack_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rack_type_request.go b/model_brief_rack_type_request.go index 90913dbba..244254546 100644 --- a/model_brief_rack_type_request.go +++ b/model_brief_rack_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rear_port_template.go b/model_brief_rear_port_template.go index 718cb0432..8f6f0ba3e 100644 --- a/model_brief_rear_port_template.go +++ b/model_brief_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rear_port_template_request.go b/model_brief_rear_port_template_request.go index aa3e0549a..5dcc5f3b2 100644 --- a/model_brief_rear_port_template_request.go +++ b/model_brief_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_region.go b/model_brief_region.go index 5154b613e..add6b1d16 100644 --- a/model_brief_region.go +++ b/model_brief_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_region_request.go b/model_brief_region_request.go index a465c8c9a..b732db5fc 100644 --- a/model_brief_region_request.go +++ b/model_brief_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rir.go b/model_brief_rir.go index 04885a05a..eee926c39 100644 --- a/model_brief_rir.go +++ b/model_brief_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_rir_request.go b/model_brief_rir_request.go index 7702acf4d..edc3ae151 100644 --- a/model_brief_rir_request.go +++ b/model_brief_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_role.go b/model_brief_role.go index 0a99c096f..07fc53f60 100644 --- a/model_brief_role.go +++ b/model_brief_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -27,7 +27,7 @@ type BriefRole struct { Slug string `json:"slug"` Description *string `json:"description,omitempty"` PrefixCount *int64 `json:"prefix_count,omitempty"` - VlanCount int64 `json:"vlan_count"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,14 +37,13 @@ type _BriefRole BriefRole // 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 NewBriefRole(id int32, url string, display string, name string, slug string, vlanCount int64) *BriefRole { +func NewBriefRole(id int32, url string, display string, name string, slug string) *BriefRole { this := BriefRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.VlanCount = vlanCount return &this } @@ -240,28 +239,36 @@ func (o *BriefRole) SetPrefixCount(v int64) { o.PrefixCount = &v } -// GetVlanCount returns the VlanCount field value +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. func (o *BriefRole) GetVlanCount() int64 { - if o == nil { + if o == nil || IsNil(o.VlanCount) { var ret int64 return ret } - - return o.VlanCount + return *o.VlanCount } -// GetVlanCountOk returns a tuple with the VlanCount field value +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefRole) GetVlanCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VlanCount) { return nil, false } - return &o.VlanCount, true + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *BriefRole) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false } -// SetVlanCount sets field value +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. func (o *BriefRole) SetVlanCount(v int64) { - o.VlanCount = v + o.VlanCount = &v } func (o BriefRole) MarshalJSON() ([]byte, error) { @@ -285,7 +292,9 @@ func (o BriefRole) ToMap() (map[string]interface{}, error) { if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } - toSerialize["vlan_count"] = o.VlanCount + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -304,7 +313,6 @@ func (o *BriefRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "vlan_count", } allProperties := make(map[string]interface{}) diff --git a/model_brief_role_request.go b/model_brief_role_request.go index 46b746300..fcd95c738 100644 --- a/model_brief_role_request.go +++ b/model_brief_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_site.go b/model_brief_site.go index ef79d8ff1..4a610769f 100644 --- a/model_brief_site.go +++ b/model_brief_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_site_group.go b/model_brief_site_group.go index 543e0482c..011f7c91a 100644 --- a/model_brief_site_group.go +++ b/model_brief_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_site_group_request.go b/model_brief_site_group_request.go index c102e6c37..a0b98c9c7 100644 --- a/model_brief_site_group_request.go +++ b/model_brief_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_site_request.go b/model_brief_site_request.go index 696a8caff..cf35a0716 100644 --- a/model_brief_site_request.go +++ b/model_brief_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tenant.go b/model_brief_tenant.go index 851c0d954..9535ac608 100644 --- a/model_brief_tenant.go +++ b/model_brief_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tenant_group.go b/model_brief_tenant_group.go index 5b79f74cd..042e86220 100644 --- a/model_brief_tenant_group.go +++ b/model_brief_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tenant_group_request.go b/model_brief_tenant_group_request.go index c522e318e..aa8cd27ef 100644 --- a/model_brief_tenant_group_request.go +++ b/model_brief_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tenant_request.go b/model_brief_tenant_request.go index a5ebf7d19..483a6082d 100644 --- a/model_brief_tenant_request.go +++ b/model_brief_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tunnel.go b/model_brief_tunnel.go index 3007657ee..dd4b5e001 100644 --- a/model_brief_tunnel.go +++ b/model_brief_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tunnel_group.go b/model_brief_tunnel_group.go index 438f8159f..ae2f38162 100644 --- a/model_brief_tunnel_group.go +++ b/model_brief_tunnel_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tunnel_group_request.go b/model_brief_tunnel_group_request.go index c8ec8a4c4..39baa2974 100644 --- a/model_brief_tunnel_group_request.go +++ b/model_brief_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_tunnel_request.go b/model_brief_tunnel_request.go index a9a19f8e7..89ad6985a 100644 --- a/model_brief_tunnel_request.go +++ b/model_brief_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_user.go b/model_brief_user.go index efcc6491e..4d4edbdc0 100644 --- a/model_brief_user.go +++ b/model_brief_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_user_request.go b/model_brief_user_request.go index 09f699613..60c7dd1fb 100644 --- a/model_brief_user_request.go +++ b/model_brief_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_virtual_chassis.go b/model_brief_virtual_chassis.go index 2db268c5e..c0b5c410f 100644 --- a/model_brief_virtual_chassis.go +++ b/model_brief_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_virtual_chassis_request.go b/model_brief_virtual_chassis_request.go index d9a22957e..a0b34dd9a 100644 --- a/model_brief_virtual_chassis_request.go +++ b/model_brief_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_virtual_machine.go b/model_brief_virtual_machine.go index 93ea27565..1076ecfcf 100644 --- a/model_brief_virtual_machine.go +++ b/model_brief_virtual_machine.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_virtual_machine_request.go b/model_brief_virtual_machine_request.go index c60396fb5..1dfcefd03 100644 --- a/model_brief_virtual_machine_request.go +++ b/model_brief_virtual_machine_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_vlan.go b/model_brief_vlan.go index 86e6f80e7..5ccd6f90d 100644 --- a/model_brief_vlan.go +++ b/model_brief_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_vlan_group.go b/model_brief_vlan_group.go index 1d4f446e2..e04520fc3 100644 --- a/model_brief_vlan_group.go +++ b/model_brief_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -26,7 +26,7 @@ type BriefVLANGroup struct { Name string `json:"name"` Slug string `json:"slug"` Description *string `json:"description,omitempty"` - VlanCount int64 `json:"vlan_count"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,14 +36,13 @@ type _BriefVLANGroup BriefVLANGroup // 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 NewBriefVLANGroup(id int32, url string, display string, name string, slug string, vlanCount int64) *BriefVLANGroup { +func NewBriefVLANGroup(id int32, url string, display string, name string, slug string) *BriefVLANGroup { this := BriefVLANGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug - this.VlanCount = vlanCount return &this } @@ -207,28 +206,36 @@ func (o *BriefVLANGroup) SetDescription(v string) { o.Description = &v } -// GetVlanCount returns the VlanCount field value +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. func (o *BriefVLANGroup) GetVlanCount() int64 { - if o == nil { + if o == nil || IsNil(o.VlanCount) { var ret int64 return ret } - - return o.VlanCount + return *o.VlanCount } -// GetVlanCountOk returns a tuple with the VlanCount field value +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *BriefVLANGroup) GetVlanCountOk() (*int64, bool) { - if o == nil { + if o == nil || IsNil(o.VlanCount) { return nil, false } - return &o.VlanCount, true + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *BriefVLANGroup) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false } -// SetVlanCount sets field value +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. func (o *BriefVLANGroup) SetVlanCount(v int64) { - o.VlanCount = v + o.VlanCount = &v } func (o BriefVLANGroup) MarshalJSON() ([]byte, error) { @@ -249,7 +256,9 @@ func (o BriefVLANGroup) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - toSerialize["vlan_count"] = o.VlanCount + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -268,7 +277,6 @@ func (o *BriefVLANGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", - "vlan_count", } allProperties := make(map[string]interface{}) diff --git a/model_brief_vlan_group_request.go b/model_brief_vlan_group_request.go index f282a43da..3b2801844 100644 --- a/model_brief_vlan_group_request.go +++ b/model_brief_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_vlan_request.go b/model_brief_vlan_request.go index 2c32c9b7e..ec5559a13 100644 --- a/model_brief_vlan_request.go +++ b/model_brief_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_vrf.go b/model_brief_vrf.go index cf8906aae..0fb8684c3 100644 --- a/model_brief_vrf.go +++ b/model_brief_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_vrf_request.go b/model_brief_vrf_request.go index 0ac318a1d..e6a1e3222 100644 --- a/model_brief_vrf_request.go +++ b/model_brief_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_wireless_lan_group.go b/model_brief_wireless_lan_group.go index 86d5efca6..ef7f4e4fa 100644 --- a/model_brief_wireless_lan_group.go +++ b/model_brief_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_brief_wireless_lan_group_request.go b/model_brief_wireless_lan_group_request.go index 34443248a..f20d3e3a1 100644 --- a/model_brief_wireless_lan_group_request.go +++ b/model_brief_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable.go b/model_cable.go index b9a89b5f0..06371d7d9 100644 --- a/model_cable.go +++ b/model_cable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Cable type satisfies the MappedNullable interface at compile time @@ -20,11 +21,25 @@ var _ MappedNullable = &Cable{} // Cable Adds support for custom fields and tags. type Cable struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObject `json:"a_terminations,omitempty"` + BTerminations []GenericObject `json:"b_terminations,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,11 +49,13 @@ type _Cable Cable // 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 NewCable(id int32, url string, display string) *Cable { +func NewCable(id int32, url string, display string, created NullableTime, lastUpdated NullableTime) *Cable { this := Cable{} this.Id = id this.Url = url this.Display = display + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -98,6 +115,38 @@ func (o *Cable) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Cable) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Cable) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Cable) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Cable) GetDisplay() string { if o == nil { @@ -122,6 +171,177 @@ func (o *Cable) SetDisplay(v string) { o.Display = v } +// GetType returns the Type field value if set, zero value otherwise. +func (o *Cable) GetType() CableType { + if o == nil || IsNil(o.Type) { + var ret CableType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetTypeOk() (*CableType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *Cable) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *Cable) SetType(v CableType) { + o.Type = &v +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *Cable) GetATerminations() []GenericObject { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObject + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetATerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *Cable) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObject and assigns it to the ATerminations field. +func (o *Cable) SetATerminations(v []GenericObject) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *Cable) GetBTerminations() []GenericObject { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObject + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetBTerminationsOk() ([]GenericObject, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *Cable) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObject and assigns it to the BTerminations field. +func (o *Cable) SetBTerminations(v []GenericObject) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cable) GetStatus() CableStatus { + if o == nil || IsNil(o.Status) { + var ret CableStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetStatusOk() (*CableStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cable) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *Cable) SetStatus(v CableStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Cable) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cable) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cable) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cable) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *Cable) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -154,6 +374,124 @@ func (o *Cable) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *Cable) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *Cable) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *Cable) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *Cable) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +func (o *Cable) SetLength(v float64) { + o.Length.Set(&v) +} + +// SetLengthNil sets the value for Length to be an explicit nil +func (o *Cable) SetLengthNil() { + o.Length.Set(nil) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *Cable) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cable) GetLengthUnit() CableLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLengthUnitOk() (*CableLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *Cable) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableLengthUnit and assigns it to the LengthUnit field. +func (o *Cable) SetLengthUnit(v CableLengthUnit) { + o.LengthUnit.Set(&v) +} + +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *Cable) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *Cable) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cable) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -186,6 +524,154 @@ func (o *Cable) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cable) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cable) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cable) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cable) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Cable) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Cable) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cable) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cable) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Cable) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Cable) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cable) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Cable) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cable) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cable) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Cable) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Cable) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -198,13 +684,51 @@ func (o Cable) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -221,6 +745,8 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -252,9 +778,23 @@ func (o *Cable) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_length_unit.go b/model_cable_length_unit.go index dc34aa744..8970e919f 100644 --- a/model_cable_length_unit.go +++ b/model_cable_length_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_length_unit_label.go b/model_cable_length_unit_label.go index 56d9ae417..1ffa11ec0 100644 --- a/model_cable_length_unit_label.go +++ b/model_cable_length_unit_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_length_unit_value.go b/model_cable_length_unit_value.go index 840cb901c..515915824 100644 --- a/model_cable_length_unit_value.go +++ b/model_cable_length_unit_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_request.go b/model_cable_request.go index 0b4bad8c8..88ec4393e 100644 --- a/model_cable_request.go +++ b/model_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,19 @@ var _ MappedNullable = &CableRequest{} // CableRequest Adds support for custom fields and tags. type CableRequest struct { - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit NullableCableRequestLengthUnit `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -43,6 +54,177 @@ func NewCableRequestWithDefaults() *CableRequest { return &this } +// GetType returns the Type field value if set, zero value otherwise. +func (o *CableRequest) GetType() CableType { + if o == nil || IsNil(o.Type) { + var ret CableType + return ret + } + return *o.Type +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetTypeOk() (*CableType, bool) { + if o == nil || IsNil(o.Type) { + return nil, false + } + return o.Type, true +} + +// HasType returns a boolean if a field has been set. +func (o *CableRequest) HasType() bool { + if o != nil && !IsNil(o.Type) { + return true + } + + return false +} + +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *CableRequest) SetType(v CableType) { + o.Type = &v +} + +// GetATerminations returns the ATerminations field value if set, zero value otherwise. +func (o *CableRequest) GetATerminations() []GenericObjectRequest { + if o == nil || IsNil(o.ATerminations) { + var ret []GenericObjectRequest + return ret + } + return o.ATerminations +} + +// GetATerminationsOk returns a tuple with the ATerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetATerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.ATerminations) { + return nil, false + } + return o.ATerminations, true +} + +// HasATerminations returns a boolean if a field has been set. +func (o *CableRequest) HasATerminations() bool { + if o != nil && !IsNil(o.ATerminations) { + return true + } + + return false +} + +// SetATerminations gets a reference to the given []GenericObjectRequest and assigns it to the ATerminations field. +func (o *CableRequest) SetATerminations(v []GenericObjectRequest) { + o.ATerminations = v +} + +// GetBTerminations returns the BTerminations field value if set, zero value otherwise. +func (o *CableRequest) GetBTerminations() []GenericObjectRequest { + if o == nil || IsNil(o.BTerminations) { + var ret []GenericObjectRequest + return ret + } + return o.BTerminations +} + +// GetBTerminationsOk returns a tuple with the BTerminations field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetBTerminationsOk() ([]GenericObjectRequest, bool) { + if o == nil || IsNil(o.BTerminations) { + return nil, false + } + return o.BTerminations, true +} + +// HasBTerminations returns a boolean if a field has been set. +func (o *CableRequest) HasBTerminations() bool { + if o != nil && !IsNil(o.BTerminations) { + return true + } + + return false +} + +// SetBTerminations gets a reference to the given []GenericObjectRequest and assigns it to the BTerminations field. +func (o *CableRequest) SetBTerminations(v []GenericObjectRequest) { + o.BTerminations = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CableRequest) GetStatus() CableStatusValue { + if o == nil || IsNil(o.Status) { + var ret CableStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetStatusOk() (*CableStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CableRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *CableRequest) SetStatus(v CableStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CableRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CableRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CableRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CableRequest) UnsetTenant() { + o.Tenant.Unset() +} + // GetLabel returns the Label field value if set, zero value otherwise. func (o *CableRequest) GetLabel() string { if o == nil || IsNil(o.Label) { @@ -75,6 +257,124 @@ func (o *CableRequest) SetLabel(v string) { o.Label = &v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *CableRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *CableRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *CableRequest) SetColor(v string) { + o.Color = &v +} + +// GetLength returns the Length field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLength() float64 { + if o == nil || IsNil(o.Length.Get()) { + var ret float64 + return ret + } + return *o.Length.Get() +} + +// GetLengthOk returns a tuple with the Length field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetLengthOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Length.Get(), o.Length.IsSet() +} + +// HasLength returns a boolean if a field has been set. +func (o *CableRequest) HasLength() bool { + if o != nil && o.Length.IsSet() { + return true + } + + return false +} + +// SetLength gets a reference to the given NullableFloat64 and assigns it to the Length field. +func (o *CableRequest) SetLength(v float64) { + o.Length.Set(&v) +} + +// SetLengthNil sets the value for Length to be an explicit nil +func (o *CableRequest) SetLengthNil() { + o.Length.Set(nil) +} + +// UnsetLength ensures that no value is present for Length, not even an explicit nil +func (o *CableRequest) UnsetLength() { + o.Length.Unset() +} + +// GetLengthUnit returns the LengthUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CableRequest) GetLengthUnit() CableRequestLengthUnit { + if o == nil || IsNil(o.LengthUnit.Get()) { + var ret CableRequestLengthUnit + return ret + } + return *o.LengthUnit.Get() +} + +// GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CableRequest) GetLengthUnitOk() (*CableRequestLengthUnit, bool) { + if o == nil { + return nil, false + } + return o.LengthUnit.Get(), o.LengthUnit.IsSet() +} + +// HasLengthUnit returns a boolean if a field has been set. +func (o *CableRequest) HasLengthUnit() bool { + if o != nil && o.LengthUnit.IsSet() { + return true + } + + return false +} + +// SetLengthUnit gets a reference to the given NullableCableRequestLengthUnit and assigns it to the LengthUnit field. +func (o *CableRequest) SetLengthUnit(v CableRequestLengthUnit) { + o.LengthUnit.Set(&v) +} + +// SetLengthUnitNil sets the value for LengthUnit to be an explicit nil +func (o *CableRequest) SetLengthUnitNil() { + o.LengthUnit.Set(nil) +} + +// UnsetLengthUnit ensures that no value is present for LengthUnit, not even an explicit nil +func (o *CableRequest) UnsetLengthUnit() { + o.LengthUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CableRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -107,6 +407,102 @@ func (o *CableRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CableRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CableRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CableRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CableRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CableRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CableRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CableRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CableRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CableRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CableRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o CableRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -117,12 +513,45 @@ func (o CableRequest) MarshalJSON() ([]byte, error) { func (o CableRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Type) { + toSerialize["type"] = o.Type + } + if !IsNil(o.ATerminations) { + toSerialize["a_terminations"] = o.ATerminations + } + if !IsNil(o.BTerminations) { + toSerialize["b_terminations"] = o.BTerminations + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } if !IsNil(o.Label) { toSerialize["label"] = o.Label } + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if o.Length.IsSet() { + toSerialize["length"] = o.Length.Get() + } + if o.LengthUnit.IsSet() { + toSerialize["length_unit"] = o.LengthUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -145,8 +574,19 @@ func (o *CableRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "type") + delete(additionalProperties, "a_terminations") + delete(additionalProperties, "b_terminations") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") delete(additionalProperties, "label") + delete(additionalProperties, "color") + delete(additionalProperties, "length") + delete(additionalProperties, "length_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cable_request_length_unit.go b/model_cable_request_length_unit.go index be62b6c86..09485731d 100644 --- a/model_cable_request_length_unit.go +++ b/model_cable_request_length_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_status.go b/model_cable_status.go index b8a4505fe..24fcab46f 100644 --- a/model_cable_status.go +++ b/model_cable_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_status_label.go b/model_cable_status_label.go index 9734a9ff1..e89cca284 100644 --- a/model_cable_status_label.go +++ b/model_cable_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_status_value.go b/model_cable_status_value.go index 95bfe9a1d..0b3dd24fb 100644 --- a/model_cable_status_value.go +++ b/model_cable_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_termination.go b/model_cable_termination.go index 3e2427ac6..bc8ee59bc 100644 --- a/model_cable_termination.go +++ b/model_cable_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_termination_request.go b/model_cable_termination_request.go index fb17abb8a..6f1e11bcb 100644 --- a/model_cable_termination_request.go +++ b/model_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cable_type.go b/model_cable_type.go index a9abad7cf..dbe7d919e 100644 --- a/model_cable_type.go +++ b/model_cable_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit.go b/model_circuit.go index bd64655eb..2a2b0e1c2 100644 --- a/model_circuit.go +++ b/model_circuit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Circuit type satisfies the MappedNullable interface at compile time @@ -20,12 +21,30 @@ var _ MappedNullable = &Circuit{} // Circuit Adds support for custom fields and tags. type Circuit struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProvider `json:"provider"` + ProviderAccount NullableBriefProviderAccount `json:"provider_account,omitempty"` + Type BriefCircuitType `json:"type"` + Status *CircuitStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` + // Committed rate + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + TerminationA NullableCircuitCircuitTermination `json:"termination_a"` + TerminationZ NullableCircuitCircuitTermination `json:"termination_z"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Assignments []BriefCircuitGroupAssignmentSerializer `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +54,18 @@ type _Circuit Circuit // 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 NewCircuit(id int32, url string, display string, cid string) *Circuit { +func NewCircuit(id int32, url string, display string, cid string, provider BriefProvider, type_ BriefCircuitType, terminationA NullableCircuitCircuitTermination, terminationZ NullableCircuitCircuitTermination, created NullableTime, lastUpdated NullableTime) *Circuit { this := Circuit{} this.Id = id this.Url = url this.Display = display this.Cid = cid + this.Provider = provider + this.Type = type_ + this.TerminationA = terminationA + this.TerminationZ = terminationZ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +125,38 @@ func (o *Circuit) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Circuit) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Circuit) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Circuit) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Circuit) GetDisplay() string { if o == nil { @@ -148,6 +205,301 @@ func (o *Circuit) SetCid(v string) { o.Cid = v } +// GetProvider returns the Provider field value +func (o *Circuit) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *Circuit) SetProvider(v BriefProvider) { + o.Provider = v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetProviderAccount() BriefProviderAccount { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccount + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetProviderAccountOk() (*BriefProviderAccount, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *Circuit) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccount and assigns it to the ProviderAccount field. +func (o *Circuit) SetProviderAccount(v BriefProviderAccount) { + o.ProviderAccount.Set(&v) +} + +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *Circuit) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *Circuit) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *Circuit) GetType() BriefCircuitType { + if o == nil { + var ret BriefCircuitType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Circuit) GetTypeOk() (*BriefCircuitType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Circuit) SetType(v BriefCircuitType) { + o.Type = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Circuit) GetStatus() CircuitStatus { + if o == nil || IsNil(o.Status) { + var ret CircuitStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetStatusOk() (*CircuitStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Circuit) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatus and assigns it to the Status field. +func (o *Circuit) SetStatus(v CircuitStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Circuit) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Circuit) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Circuit) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Circuit) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *Circuit) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +func (o *Circuit) SetInstallDate(v string) { + o.InstallDate.Set(&v) +} + +// SetInstallDateNil sets the value for InstallDate to be an explicit nil +func (o *Circuit) SetInstallDateNil() { + o.InstallDate.Set(nil) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *Circuit) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *Circuit) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +func (o *Circuit) SetTerminationDate(v string) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *Circuit) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *Circuit) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Circuit) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *Circuit) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +func (o *Circuit) SetCommitRate(v int32) { + o.CommitRate.Set(&v) +} + +// SetCommitRateNil sets the value for CommitRate to be an explicit nil +func (o *Circuit) SetCommitRateNil() { + o.CommitRate.Set(nil) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *Circuit) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Circuit) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +532,238 @@ func (o *Circuit) SetDescription(v string) { o.Description = &v } +// GetTerminationA returns the TerminationA field value +// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned +func (o *Circuit) GetTerminationA() CircuitCircuitTermination { + if o == nil || o.TerminationA.Get() == nil { + var ret CircuitCircuitTermination + return ret + } + + return *o.TerminationA.Get() +} + +// GetTerminationAOk returns a tuple with the TerminationA field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationAOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationA.Get(), o.TerminationA.IsSet() +} + +// SetTerminationA sets field value +func (o *Circuit) SetTerminationA(v CircuitCircuitTermination) { + o.TerminationA.Set(&v) +} + +// GetTerminationZ returns the TerminationZ field value +// If the value is explicit nil, the zero value for CircuitCircuitTermination will be returned +func (o *Circuit) GetTerminationZ() CircuitCircuitTermination { + if o == nil || o.TerminationZ.Get() == nil { + var ret CircuitCircuitTermination + return ret + } + + return *o.TerminationZ.Get() +} + +// GetTerminationZOk returns a tuple with the TerminationZ field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetTerminationZOk() (*CircuitCircuitTermination, bool) { + if o == nil { + return nil, false + } + return o.TerminationZ.Get(), o.TerminationZ.IsSet() +} + +// SetTerminationZ sets field value +func (o *Circuit) SetTerminationZ(v CircuitCircuitTermination) { + o.TerminationZ.Set(&v) +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Circuit) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Circuit) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Circuit) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Circuit) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Circuit) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Circuit) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Circuit) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Circuit) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Circuit) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Circuit) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Circuit) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Circuit) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Circuit) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Circuit) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *Circuit) GetAssignments() []BriefCircuitGroupAssignmentSerializer { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializer + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Circuit) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializer, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *Circuit) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializer and assigns it to the Assignments field. +func (o *Circuit) SetAssignments(v []BriefCircuitGroupAssignmentSerializer) { + o.Assignments = v +} + func (o Circuit) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -192,11 +776,50 @@ func (o Circuit) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["termination_a"] = o.TerminationA.Get() + toSerialize["termination_z"] = o.TerminationZ.Get() + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +837,12 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { "url", "display", "cid", + "provider", + "type", + "termination_a", + "termination_z", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -245,9 +874,26 @@ func (o *Circuit) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "termination_a") + delete(additionalProperties, "termination_z") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_circuit_termination.go b/model_circuit_circuit_termination.go index e2dfff0e0..6f17518b7 100644 --- a/model_circuit_circuit_termination.go +++ b/model_circuit_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ var _ MappedNullable = &CircuitCircuitTermination{} type CircuitCircuitTermination struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Site NullableBriefSite `json:"site"` ProviderNetwork NullableBriefProviderNetwork `json:"provider_network"` @@ -42,11 +42,10 @@ type _CircuitCircuitTermination CircuitCircuitTermination // 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 NewCircuitCircuitTermination(id int32, url string, displayUrl string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork) *CircuitCircuitTermination { +func NewCircuitCircuitTermination(id int32, url string, display string, site NullableBriefSite, providerNetwork NullableBriefProviderNetwork) *CircuitCircuitTermination { this := CircuitCircuitTermination{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Site = site this.ProviderNetwork = providerNetwork @@ -109,28 +108,36 @@ func (o *CircuitCircuitTermination) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *CircuitCircuitTermination) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CircuitCircuitTermination) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitCircuitTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *CircuitCircuitTermination) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -371,7 +378,9 @@ func (o CircuitCircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["site"] = o.Site.Get() toSerialize["provider_network"] = o.ProviderNetwork.Get() @@ -402,7 +411,6 @@ func (o *CircuitCircuitTermination) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "site", "provider_network", diff --git a/model_circuit_circuit_termination_request.go b/model_circuit_circuit_termination_request.go index 3c6665d7c..0abf343ad 100644 --- a/model_circuit_circuit_termination_request.go +++ b/model_circuit_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit_group.go b/model_circuit_group.go index 8cb8619ab..f51f666bf 100644 --- a/model_circuit_group.go +++ b/model_circuit_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ var _ MappedNullable = &CircuitGroup{} type CircuitGroup struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -43,11 +43,10 @@ type _CircuitGroup CircuitGroup // 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 NewCircuitGroup(id int32, url string, displayUrl string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitGroup { +func NewCircuitGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *CircuitGroup { this := CircuitGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -113,28 +112,36 @@ func (o *CircuitGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *CircuitGroup) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CircuitGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *CircuitGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -436,7 +443,9 @@ func (o CircuitGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -470,7 +479,6 @@ func (o *CircuitGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", diff --git a/model_circuit_group_assignment.go b/model_circuit_group_assignment.go index ac8dc7f04..50b8b55e3 100644 --- a/model_circuit_group_assignment.go +++ b/model_circuit_group_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ var _ MappedNullable = &CircuitGroupAssignment{} type CircuitGroupAssignment struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Group BriefCircuitGroup `json:"group"` Circuit BriefCircuit `json:"circuit"` @@ -40,11 +40,10 @@ type _CircuitGroupAssignment CircuitGroupAssignment // 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 NewCircuitGroupAssignment(id int32, url string, displayUrl string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime) *CircuitGroupAssignment { +func NewCircuitGroupAssignment(id int32, url string, display string, group BriefCircuitGroup, circuit BriefCircuit, created NullableTime, lastUpdated NullableTime) *CircuitGroupAssignment { this := CircuitGroupAssignment{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Group = group this.Circuit = circuit @@ -109,28 +108,36 @@ func (o *CircuitGroupAssignment) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *CircuitGroupAssignment) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *CircuitGroupAssignment) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitGroupAssignment) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *CircuitGroupAssignment) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -333,7 +340,9 @@ func (o CircuitGroupAssignment) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["group"] = o.Group toSerialize["circuit"] = o.Circuit @@ -360,7 +369,6 @@ func (o *CircuitGroupAssignment) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "group", "circuit", diff --git a/model_circuit_group_assignment_request.go b/model_circuit_group_assignment_request.go index c8d040ee7..dfe518322 100644 --- a/model_circuit_group_assignment_request.go +++ b/model_circuit_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit_group_request.go b/model_circuit_group_request.go index 2520e790e..943e5ea7d 100644 --- a/model_circuit_group_request.go +++ b/model_circuit_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit_request.go b/model_circuit_request.go index f5d44906d..c67f28ec1 100644 --- a/model_circuit_request.go +++ b/model_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,21 @@ var _ MappedNullable = &CircuitRequest{} // CircuitRequest Adds support for custom fields and tags. type CircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Description *string `json:"description,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` + // Committed rate + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +45,11 @@ type _CircuitRequest CircuitRequest // 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 NewCircuitRequest(cid string) *CircuitRequest { +func NewCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *CircuitRequest { this := CircuitRequest{} this.Cid = cid + this.Provider = provider + this.Type = type_ return &this } @@ -70,6 +85,301 @@ func (o *CircuitRequest) SetCid(v string) { o.Cid = v } +// GetProvider returns the Provider field value +func (o *CircuitRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *CircuitRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + +// GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetProviderAccount() BriefProviderAccountRequest { + if o == nil || IsNil(o.ProviderAccount.Get()) { + var ret BriefProviderAccountRequest + return ret + } + return *o.ProviderAccount.Get() +} + +// GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { + if o == nil { + return nil, false + } + return o.ProviderAccount.Get(), o.ProviderAccount.IsSet() +} + +// HasProviderAccount returns a boolean if a field has been set. +func (o *CircuitRequest) HasProviderAccount() bool { + if o != nil && o.ProviderAccount.IsSet() { + return true + } + + return false +} + +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *CircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { + o.ProviderAccount.Set(&v) +} + +// SetProviderAccountNil sets the value for ProviderAccount to be an explicit nil +func (o *CircuitRequest) SetProviderAccountNil() { + o.ProviderAccount.Set(nil) +} + +// UnsetProviderAccount ensures that no value is present for ProviderAccount, not even an explicit nil +func (o *CircuitRequest) UnsetProviderAccount() { + o.ProviderAccount.Unset() +} + +// GetType returns the Type field value +func (o *CircuitRequest) GetType() BriefCircuitTypeRequest { + if o == nil { + var ret BriefCircuitTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *CircuitRequest) SetType(v BriefCircuitTypeRequest) { + o.Type = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *CircuitRequest) GetStatus() CircuitStatusValue { + if o == nil || IsNil(o.Status) { + var ret CircuitStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *CircuitRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *CircuitRequest) SetStatus(v CircuitStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *CircuitRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *CircuitRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *CircuitRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *CircuitRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetInstallDate returns the InstallDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetInstallDate() string { + if o == nil || IsNil(o.InstallDate.Get()) { + var ret string + return ret + } + return *o.InstallDate.Get() +} + +// GetInstallDateOk returns a tuple with the InstallDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetInstallDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.InstallDate.Get(), o.InstallDate.IsSet() +} + +// HasInstallDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasInstallDate() bool { + if o != nil && o.InstallDate.IsSet() { + return true + } + + return false +} + +// SetInstallDate gets a reference to the given NullableString and assigns it to the InstallDate field. +func (o *CircuitRequest) SetInstallDate(v string) { + o.InstallDate.Set(&v) +} + +// SetInstallDateNil sets the value for InstallDate to be an explicit nil +func (o *CircuitRequest) SetInstallDateNil() { + o.InstallDate.Set(nil) +} + +// UnsetInstallDate ensures that no value is present for InstallDate, not even an explicit nil +func (o *CircuitRequest) UnsetInstallDate() { + o.InstallDate.Unset() +} + +// GetTerminationDate returns the TerminationDate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetTerminationDate() string { + if o == nil || IsNil(o.TerminationDate.Get()) { + var ret string + return ret + } + return *o.TerminationDate.Get() +} + +// GetTerminationDateOk returns a tuple with the TerminationDate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetTerminationDateOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TerminationDate.Get(), o.TerminationDate.IsSet() +} + +// HasTerminationDate returns a boolean if a field has been set. +func (o *CircuitRequest) HasTerminationDate() bool { + if o != nil && o.TerminationDate.IsSet() { + return true + } + + return false +} + +// SetTerminationDate gets a reference to the given NullableString and assigns it to the TerminationDate field. +func (o *CircuitRequest) SetTerminationDate(v string) { + o.TerminationDate.Set(&v) +} + +// SetTerminationDateNil sets the value for TerminationDate to be an explicit nil +func (o *CircuitRequest) SetTerminationDateNil() { + o.TerminationDate.Set(nil) +} + +// UnsetTerminationDate ensures that no value is present for TerminationDate, not even an explicit nil +func (o *CircuitRequest) UnsetTerminationDate() { + o.TerminationDate.Unset() +} + +// GetCommitRate returns the CommitRate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CircuitRequest) GetCommitRate() int32 { + if o == nil || IsNil(o.CommitRate.Get()) { + var ret int32 + return ret + } + return *o.CommitRate.Get() +} + +// GetCommitRateOk returns a tuple with the CommitRate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CircuitRequest) GetCommitRateOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.CommitRate.Get(), o.CommitRate.IsSet() +} + +// HasCommitRate returns a boolean if a field has been set. +func (o *CircuitRequest) HasCommitRate() bool { + if o != nil && o.CommitRate.IsSet() { + return true + } + + return false +} + +// SetCommitRate gets a reference to the given NullableInt32 and assigns it to the CommitRate field. +func (o *CircuitRequest) SetCommitRate(v int32) { + o.CommitRate.Set(&v) +} + +// SetCommitRateNil sets the value for CommitRate to be an explicit nil +func (o *CircuitRequest) SetCommitRateNil() { + o.CommitRate.Set(nil) +} + +// UnsetCommitRate ensures that no value is present for CommitRate, not even an explicit nil +func (o *CircuitRequest) UnsetCommitRate() { + o.CommitRate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *CircuitRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -102,6 +412,134 @@ func (o *CircuitRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *CircuitRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *CircuitRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *CircuitRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *CircuitRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *CircuitRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *CircuitRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *CircuitRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *CircuitRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *CircuitRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *CircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *CircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *CircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o CircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -113,9 +551,41 @@ func (o CircuitRequest) MarshalJSON() ([]byte, error) { func (o CircuitRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["cid"] = o.Cid + toSerialize["provider"] = o.Provider + if o.ProviderAccount.IsSet() { + toSerialize["provider_account"] = o.ProviderAccount.Get() + } + toSerialize["type"] = o.Type + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.InstallDate.IsSet() { + toSerialize["install_date"] = o.InstallDate.Get() + } + if o.TerminationDate.IsSet() { + toSerialize["termination_date"] = o.TerminationDate.Get() + } + if o.CommitRate.IsSet() { + toSerialize["commit_rate"] = o.CommitRate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -130,6 +600,8 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "cid", + "provider", + "type", } allProperties := make(map[string]interface{}) @@ -160,7 +632,19 @@ func (o *CircuitRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "cid") + delete(additionalProperties, "provider") + delete(additionalProperties, "provider_account") + delete(additionalProperties, "type") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "install_date") + delete(additionalProperties, "termination_date") + delete(additionalProperties, "commit_rate") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_circuit_status.go b/model_circuit_status.go index 3ffa86a21..5549a89a4 100644 --- a/model_circuit_status.go +++ b/model_circuit_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit_status_label.go b/model_circuit_status_label.go index 6112909d2..d8360379e 100644 --- a/model_circuit_status_label.go +++ b/model_circuit_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit_status_value.go b/model_circuit_status_value.go index f6f5baa28..74613bb67 100644 --- a/model_circuit_status_value.go +++ b/model_circuit_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuit_termination.go b/model_circuit_termination.go index e9304fcbe..c5a82f66c 100644 --- a/model_circuit_termination.go +++ b/model_circuit_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &CircuitTermination{} // CircuitTermination Adds support for custom fields and tags. type CircuitTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Circuit Circuit `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSite `json:"site,omitempty"` - ProviderNetwork NullableProviderNetwork `json:"provider_network,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Circuit BriefCircuit `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableBriefSite `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetwork `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -38,12 +39,12 @@ type CircuitTermination struct { PpInfo *string `json:"pp_info,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -58,7 +59,7 @@ type _CircuitTermination CircuitTermination // 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 NewCircuitTermination(id int32, url string, display string, circuit Circuit, termSide Termination1, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { +func NewCircuitTermination(id int32, url string, display string, circuit BriefCircuit, termSide Termination1, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *CircuitTermination { this := CircuitTermination{} this.Id = id this.Url = url @@ -131,6 +132,38 @@ func (o *CircuitTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CircuitTermination) GetDisplay() string { if o == nil { @@ -156,9 +189,9 @@ func (o *CircuitTermination) SetDisplay(v string) { } // GetCircuit returns the Circuit field value -func (o *CircuitTermination) GetCircuit() Circuit { +func (o *CircuitTermination) GetCircuit() BriefCircuit { if o == nil { - var ret Circuit + var ret BriefCircuit return ret } @@ -167,7 +200,7 @@ func (o *CircuitTermination) GetCircuit() Circuit { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { +func (o *CircuitTermination) GetCircuitOk() (*BriefCircuit, bool) { if o == nil { return nil, false } @@ -175,7 +208,7 @@ func (o *CircuitTermination) GetCircuitOk() (*Circuit, bool) { } // SetCircuit sets field value -func (o *CircuitTermination) SetCircuit(v Circuit) { +func (o *CircuitTermination) SetCircuit(v BriefCircuit) { o.Circuit = v } @@ -204,9 +237,9 @@ func (o *CircuitTermination) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetSite() Site { +func (o *CircuitTermination) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -215,7 +248,7 @@ func (o *CircuitTermination) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetSiteOk() (*Site, bool) { +func (o *CircuitTermination) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -231,8 +264,8 @@ func (o *CircuitTermination) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *CircuitTermination) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *CircuitTermination) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -247,9 +280,9 @@ func (o *CircuitTermination) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { +func (o *CircuitTermination) GetProviderNetwork() BriefProviderNetwork { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetwork + var ret BriefProviderNetwork return ret } return *o.ProviderNetwork.Get() @@ -258,7 +291,7 @@ func (o *CircuitTermination) GetProviderNetwork() ProviderNetwork { // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetProviderNetworkOk() (*ProviderNetwork, bool) { +func (o *CircuitTermination) GetProviderNetworkOk() (*BriefProviderNetwork, bool) { if o == nil { return nil, false } @@ -274,8 +307,8 @@ func (o *CircuitTermination) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetwork and assigns it to the ProviderNetwork field. -func (o *CircuitTermination) SetProviderNetwork(v ProviderNetwork) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetwork and assigns it to the ProviderNetwork field. +func (o *CircuitTermination) SetProviderNetwork(v BriefProviderNetwork) { o.ProviderNetwork.Set(&v) } @@ -504,10 +537,10 @@ func (o *CircuitTermination) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *CircuitTermination) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *CircuitTermination) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -517,7 +550,7 @@ func (o *CircuitTermination) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTermination) GetCableOk() (*Cable, bool) { +func (o *CircuitTermination) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -525,7 +558,7 @@ func (o *CircuitTermination) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *CircuitTermination) SetCable(v Cable) { +func (o *CircuitTermination) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -578,27 +611,29 @@ func (o *CircuitTermination) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *CircuitTermination) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *CircuitTermination) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *CircuitTermination) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -753,6 +788,9 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["circuit"] = o.Circuit toSerialize["term_side"] = o.TermSide @@ -783,7 +821,7 @@ func (o CircuitTermination) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -849,6 +887,7 @@ func (o *CircuitTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "circuit") delete(additionalProperties, "term_side") diff --git a/model_circuit_termination_request.go b/model_circuit_termination_request.go index d8a1b14e4..a5399c95a 100644 --- a/model_circuit_termination_request.go +++ b/model_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &CircuitTerminationRequest{} // CircuitTerminationRequest Adds support for custom fields and tags. type CircuitTerminationRequest struct { - Circuit CircuitRequest `json:"circuit"` - TermSide Termination1 `json:"term_side"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit BriefCircuitRequest `json:"circuit"` + TermSide Termination1 `json:"term_side"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -46,7 +46,7 @@ type _CircuitTerminationRequest CircuitTerminationRequest // 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 NewCircuitTerminationRequest(circuit CircuitRequest, termSide Termination1) *CircuitTerminationRequest { +func NewCircuitTerminationRequest(circuit BriefCircuitRequest, termSide Termination1) *CircuitTerminationRequest { this := CircuitTerminationRequest{} this.Circuit = circuit this.TermSide = termSide @@ -62,9 +62,9 @@ func NewCircuitTerminationRequestWithDefaults() *CircuitTerminationRequest { } // GetCircuit returns the Circuit field value -func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *CircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } @@ -73,7 +73,7 @@ func (o *CircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value // and a boolean to check if the value has been set. -func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *CircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil { return nil, false } @@ -81,7 +81,7 @@ func (o *CircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { } // SetCircuit sets field value -func (o *CircuitTerminationRequest) SetCircuit(v CircuitRequest) { +func (o *CircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = v } @@ -110,9 +110,9 @@ func (o *CircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetSite() SiteRequest { +func (o *CircuitTerminationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -121,7 +121,7 @@ func (o *CircuitTerminationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *CircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -137,8 +137,8 @@ func (o *CircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *CircuitTerminationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *CircuitTerminationRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -153,9 +153,9 @@ func (o *CircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { +func (o *CircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest + var ret BriefProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -164,7 +164,7 @@ func (o *CircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *CircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -180,8 +180,8 @@ func (o *CircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *CircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *CircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_circuit_type.go b/model_circuit_type.go index 56afd1a84..50b8dff12 100644 --- a/model_circuit_type.go +++ b/model_circuit_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CircuitType{} type CircuitType struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -111,6 +112,38 @@ func (o *CircuitType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CircuitType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CircuitType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CircuitType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CircuitType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CircuitType) GetDisplay() string { if o == nil { @@ -399,6 +432,9 @@ func (o CircuitType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -469,6 +505,7 @@ func (o *CircuitType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_circuit_type_request.go b/model_circuit_type_request.go index 48eba514f..c193ed037 100644 --- a/model_circuit_type_request.go +++ b/model_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuits_circuit_group_assignments_list_priority_parameter.go b/model_circuits_circuit_group_assignments_list_priority_parameter.go index 4d15b73b7..2dd119047 100644 --- a/model_circuits_circuit_group_assignments_list_priority_parameter.go +++ b/model_circuits_circuit_group_assignments_list_priority_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_circuits_circuit_terminations_list_cable_end_parameter.go b/model_circuits_circuit_terminations_list_cable_end_parameter.go index b4ea69c2c..97a8fb181 100644 --- a/model_circuits_circuit_terminations_list_cable_end_parameter.go +++ b/model_circuits_circuit_terminations_list_cable_end_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster.go b/model_cluster.go index 64f264c1c..d1a820519 100644 --- a/model_cluster.go +++ b/model_cluster.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Cluster type satisfies the MappedNullable interface at compile time @@ -20,12 +21,24 @@ var _ MappedNullable = &Cluster{} // Cluster Adds support for custom fields and tags. type Cluster struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Type BriefClusterType `json:"type"` + Group NullableBriefClusterGroup `json:"group,omitempty"` + Status *ClusterStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Site NullableBriefSite `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,12 +48,15 @@ type _Cluster Cluster // 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 NewCluster(id int32, url string, display string, name string) *Cluster { +func NewCluster(id int32, url string, display string, name string, type_ BriefClusterType, created NullableTime, lastUpdated NullableTime) *Cluster { this := Cluster{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +116,38 @@ func (o *Cluster) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Cluster) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Cluster) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Cluster) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Cluster) GetDisplay() string { if o == nil { @@ -148,6 +196,191 @@ func (o *Cluster) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *Cluster) GetType() BriefClusterType { + if o == nil { + var ret BriefClusterType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *Cluster) GetTypeOk() (*BriefClusterType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *Cluster) SetType(v BriefClusterType) { + o.Type = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetGroup() BriefClusterGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetGroupOk() (*BriefClusterGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Cluster) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroup and assigns it to the Group field. +func (o *Cluster) SetGroup(v BriefClusterGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Cluster) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Cluster) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Cluster) GetStatus() ClusterStatus { + if o == nil || IsNil(o.Status) { + var ret ClusterStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetStatusOk() (*ClusterStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Cluster) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatus and assigns it to the Status field. +func (o *Cluster) SetStatus(v ClusterStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Cluster) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Cluster) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Cluster) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Cluster) UnsetTenant() { + o.Tenant.Unset() +} + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Cluster) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *Cluster) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *Cluster) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *Cluster) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *Cluster) UnsetSite() { + o.Site.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Cluster) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +413,186 @@ func (o *Cluster) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Cluster) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Cluster) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Cluster) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Cluster) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Cluster) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Cluster) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Cluster) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Cluster) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Cluster) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Cluster) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Cluster) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Cluster) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Cluster) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Cluster) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Cluster) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Cluster) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Cluster) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + // GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. func (o *Cluster) GetVirtualmachineCount() int64 { if o == nil || IsNil(o.VirtualmachineCount) { @@ -224,11 +637,41 @@ func (o Cluster) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } if !IsNil(o.VirtualmachineCount) { toSerialize["virtualmachine_count"] = o.VirtualmachineCount } @@ -249,6 +692,9 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -280,9 +726,21 @@ func (o *Cluster) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "site") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_group.go b/model_cluster_group.go index 9544ec850..6b544470a 100644 --- a/model_cluster_group.go +++ b/model_cluster_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ClusterGroup{} type ClusterGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -110,6 +111,38 @@ func (o *ClusterGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ClusterGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ClusterGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ClusterGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ClusterGroup) GetDisplay() string { if o == nil { @@ -366,6 +399,9 @@ func (o ClusterGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -433,6 +469,7 @@ func (o *ClusterGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_group_request.go b/model_cluster_group_request.go index 1f9566748..3634344ba 100644 --- a/model_cluster_group_request.go +++ b/model_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_request.go b/model_cluster_request.go index a89789ff3..d54e61322 100644 --- a/model_cluster_request.go +++ b/model_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,16 @@ var _ MappedNullable = &ClusterRequest{} // ClusterRequest Adds support for custom fields and tags. type ClusterRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +39,10 @@ type _ClusterRequest ClusterRequest // 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 NewClusterRequest(name string) *ClusterRequest { +func NewClusterRequest(name string, type_ BriefClusterTypeRequest) *ClusterRequest { this := ClusterRequest{} this.Name = name + this.Type = type_ return &this } @@ -69,6 +78,191 @@ func (o *ClusterRequest) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *ClusterRequest) GetType() BriefClusterTypeRequest { + if o == nil { + var ret BriefClusterTypeRequest + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *ClusterRequest) SetType(v BriefClusterTypeRequest) { + o.Type = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetGroup() BriefClusterGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefClusterGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ClusterRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *ClusterRequest) SetGroup(v BriefClusterGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ClusterRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ClusterRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ClusterRequest) GetStatus() ClusterStatusValue { + if o == nil || IsNil(o.Status) { + var ret ClusterStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ClusterRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *ClusterRequest) SetStatus(v ClusterStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *ClusterRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *ClusterRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *ClusterRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *ClusterRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ClusterRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *ClusterRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *ClusterRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *ClusterRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *ClusterRequest) UnsetSite() { + o.Site.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ClusterRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +295,102 @@ func (o *ClusterRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ClusterRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ClusterRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ClusterRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ClusterRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ClusterRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ClusterRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ClusterRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ClusterRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ClusterRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ClusterRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +402,31 @@ func (o ClusterRequest) MarshalJSON() ([]byte, error) { func (o ClusterRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +441,7 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } allProperties := make(map[string]interface{}) @@ -159,7 +472,15 @@ func (o *ClusterRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "group") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "site") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_cluster_status.go b/model_cluster_status.go index b6be09db7..a349936b4 100644 --- a/model_cluster_status.go +++ b/model_cluster_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_status_label.go b/model_cluster_status_label.go index 67cf9f0f3..97bf05c30 100644 --- a/model_cluster_status_label.go +++ b/model_cluster_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_status_value.go b/model_cluster_status_value.go index b79145591..d71d81d5b 100644 --- a/model_cluster_status_value.go +++ b/model_cluster_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_cluster_type.go b/model_cluster_type.go index df806d509..eb4dbe841 100644 --- a/model_cluster_type.go +++ b/model_cluster_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ClusterType{} type ClusterType struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -110,6 +111,38 @@ func (o *ClusterType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ClusterType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ClusterType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ClusterType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ClusterType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ClusterType) GetDisplay() string { if o == nil { @@ -366,6 +399,9 @@ func (o ClusterType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -433,6 +469,7 @@ func (o *ClusterType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_cluster_type_request.go b/model_cluster_type_request.go index a72f53e3b..b17acd57b 100644 --- a/model_cluster_type_request.go +++ b/model_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_config_context.go b/model_config_context.go index 8cfdce327..f54ec84cb 100644 --- a/model_config_context.go +++ b/model_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,34 +21,35 @@ var _ MappedNullable = &ConfigContext{} // ConfigContext Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []Region `json:"regions,omitempty"` - SiteGroups []SiteGroup `json:"site_groups,omitempty"` - Sites []Site `json:"sites,omitempty"` - Locations []Location `json:"locations,omitempty"` - DeviceTypes []DeviceType `json:"device_types,omitempty"` - Roles []DeviceRole `json:"roles,omitempty"` - Platforms []Platform `json:"platforms,omitempty"` - ClusterTypes []ClusterType `json:"cluster_types,omitempty"` - ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` - Clusters []Cluster `json:"clusters,omitempty"` - TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` - Tenants []Tenant `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []Region `json:"regions,omitempty"` + SiteGroups []SiteGroup `json:"site_groups,omitempty"` + Sites []Site `json:"sites,omitempty"` + Locations []Location `json:"locations,omitempty"` + DeviceTypes []DeviceType `json:"device_types,omitempty"` + Roles []DeviceRole `json:"roles,omitempty"` + Platforms []Platform `json:"platforms,omitempty"` + ClusterTypes []ClusterType `json:"cluster_types,omitempty"` + ClusterGroups []ClusterGroup `json:"cluster_groups,omitempty"` + Clusters []Cluster `json:"clusters,omitempty"` + TenantGroups []TenantGroup `json:"tenant_groups,omitempty"` + Tenants []Tenant `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Data interface{} `json:"data"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Data interface{} `json:"data"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -58,7 +59,7 @@ type _ConfigContext ConfigContext // 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 NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile DataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { +func NewConfigContext(id int32, url string, display string, name string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, data interface{}, created NullableTime, lastUpdated NullableTime) *ConfigContext { this := ConfigContext{} this.Id = id this.Url = url @@ -129,6 +130,38 @@ func (o *ConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConfigContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConfigContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConfigContext) GetDisplay() string { if o == nil { @@ -690,9 +723,9 @@ func (o *ConfigContext) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContext) GetDataSource() DataSource { +func (o *ConfigContext) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -700,7 +733,7 @@ func (o *ConfigContext) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataSourceOk() (*DataSource, bool) { +func (o *ConfigContext) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -716,8 +749,8 @@ func (o *ConfigContext) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ConfigContext) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigContext) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -746,9 +779,9 @@ func (o *ConfigContext) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ConfigContext) GetDataFile() DataFile { +func (o *ConfigContext) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -757,7 +790,7 @@ func (o *ConfigContext) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { +func (o *ConfigContext) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -765,7 +798,7 @@ func (o *ConfigContext) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ConfigContext) SetDataFile(v DataFile) { +func (o *ConfigContext) SetDataFile(v BriefDataFile) { o.DataFile = v } @@ -885,6 +918,9 @@ func (o ConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Weight) { @@ -1000,6 +1036,7 @@ func (o *ConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "weight") diff --git a/model_config_context_request.go b/model_config_context_request.go index 86b8fad88..638f925a7 100644 --- a/model_config_context_request.go +++ b/model_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,25 +20,25 @@ var _ MappedNullable = &ConfigContextRequest{} // ConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConfigContextRequest struct { - Name string `json:"name"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data"` + Name string `json:"name"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data"` AdditionalProperties map[string]interface{} } @@ -600,9 +600,9 @@ func (o *ConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *ConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -610,7 +610,7 @@ func (o *ConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -626,8 +626,8 @@ func (o *ConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_config_template.go b/model_config_template.go index 3995c0dbd..2e0dcf5c8 100644 --- a/model_config_template.go +++ b/model_config_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ConfigTemplate type satisfies the MappedNullable interface at compile time @@ -20,11 +21,24 @@ var _ MappedNullable = &ConfigTemplate{} // ConfigTemplate Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSource `json:"data_source,omitempty"` + // Path to remote file (relative to data source root) + DataPath string `json:"data_path"` + DataFile *BriefDataFile `json:"data_file,omitempty"` + DataSynced NullableTime `json:"data_synced"` + Tags []NestedTag `json:"tags,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,17 @@ type _ConfigTemplate ConfigTemplate // 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 NewConfigTemplate(id int32, url string, display string, name string) *ConfigTemplate { +func NewConfigTemplate(id int32, url string, display string, name string, templateCode string, dataPath string, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ConfigTemplate { this := ConfigTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.TemplateCode = templateCode + this.DataPath = dataPath + this.DataSynced = dataSynced + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +118,38 @@ func (o *ConfigTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConfigTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConfigTemplate) GetDisplay() string { if o == nil { @@ -179,6 +230,261 @@ func (o *ConfigTemplate) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplate) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplate) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplate) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplate) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplate) SetTemplateCode(v string) { + o.TemplateCode = v +} + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataSource() BriefDataSource { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSource + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataSourceOk() (*BriefDataSource, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ConfigTemplate) SetDataSource(v BriefDataSource) { + o.DataSource = &v +} + +// GetDataPath returns the DataPath field value +func (o *ConfigTemplate) GetDataPath() string { + if o == nil { + var ret string + return ret + } + + return o.DataPath +} + +// GetDataPathOk returns a tuple with the DataPath field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataPathOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.DataPath, true +} + +// SetDataPath sets field value +func (o *ConfigTemplate) SetDataPath(v string) { + o.DataPath = v +} + +// GetDataFile returns the DataFile field value if set, zero value otherwise. +func (o *ConfigTemplate) GetDataFile() BriefDataFile { + if o == nil || IsNil(o.DataFile) { + var ret BriefDataFile + return ret + } + return *o.DataFile +} + +// GetDataFileOk returns a tuple with the DataFile field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetDataFileOk() (*BriefDataFile, bool) { + if o == nil || IsNil(o.DataFile) { + return nil, false + } + return o.DataFile, true +} + +// HasDataFile returns a boolean if a field has been set. +func (o *ConfigTemplate) HasDataFile() bool { + if o != nil && !IsNil(o.DataFile) { + return true + } + + return false +} + +// SetDataFile gets a reference to the given BriefDataFile and assigns it to the DataFile field. +func (o *ConfigTemplate) SetDataFile(v BriefDataFile) { + o.DataFile = &v +} + +// GetDataSynced returns the DataSynced field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetDataSynced() time.Time { + if o == nil || o.DataSynced.Get() == nil { + var ret time.Time + return ret + } + + return *o.DataSynced.Get() +} + +// GetDataSyncedOk returns a tuple with the DataSynced field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetDataSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.DataSynced.Get(), o.DataSynced.IsSet() +} + +// SetDataSynced sets field value +func (o *ConfigTemplate) SetDataSynced(v time.Time) { + o.DataSynced.Set(&v) +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplate) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplate) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ConfigTemplate) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ConfigTemplate) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ConfigTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ConfigTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ConfigTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ConfigTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +497,31 @@ func (o ConfigTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + toSerialize["data_path"] = o.DataPath + if !IsNil(o.DataFile) { + toSerialize["data_file"] = o.DataFile + } + toSerialize["data_synced"] = o.DataSynced.Get() + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,6 +539,11 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "template_code", + "data_path", + "data_synced", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +575,19 @@ func (o *ConfigTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "data_path") + delete(additionalProperties, "data_file") + delete(additionalProperties, "data_synced") + delete(additionalProperties, "tags") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_config_template_request.go b/model_config_template_request.go index 916c0e491..4a811b918 100644 --- a/model_config_template_request.go +++ b/model_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,14 @@ var _ MappedNullable = &ConfigTemplateRequest{} // ConfigTemplateRequest Introduces support for Tag assignment. Adds `tags` serialization, and handles tag assignment on create() and update(). type ConfigTemplateRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + // Any additional parameters to pass when constructing the Jinja2 environment. + EnvironmentParams interface{} `json:"environment_params,omitempty"` + // Jinja2 template code. + TemplateCode string `json:"template_code"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +37,10 @@ type _ConfigTemplateRequest ConfigTemplateRequest // 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 NewConfigTemplateRequest(name string) *ConfigTemplateRequest { +func NewConfigTemplateRequest(name string, templateCode string) *ConfigTemplateRequest { this := ConfigTemplateRequest{} this.Name = name + this.TemplateCode = templateCode return &this } @@ -101,6 +108,127 @@ func (o *ConfigTemplateRequest) SetDescription(v string) { o.Description = &v } +// GetEnvironmentParams returns the EnvironmentParams field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ConfigTemplateRequest) GetEnvironmentParams() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.EnvironmentParams +} + +// GetEnvironmentParamsOk returns a tuple with the EnvironmentParams field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ConfigTemplateRequest) GetEnvironmentParamsOk() (*interface{}, bool) { + if o == nil || IsNil(o.EnvironmentParams) { + return nil, false + } + return &o.EnvironmentParams, true +} + +// HasEnvironmentParams returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasEnvironmentParams() bool { + if o != nil && !IsNil(o.EnvironmentParams) { + return true + } + + return false +} + +// SetEnvironmentParams gets a reference to the given interface{} and assigns it to the EnvironmentParams field. +func (o *ConfigTemplateRequest) SetEnvironmentParams(v interface{}) { + o.EnvironmentParams = v +} + +// GetTemplateCode returns the TemplateCode field value +func (o *ConfigTemplateRequest) GetTemplateCode() string { + if o == nil { + var ret string + return ret + } + + return o.TemplateCode +} + +// GetTemplateCodeOk returns a tuple with the TemplateCode field value +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTemplateCodeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.TemplateCode, true +} + +// SetTemplateCode sets field value +func (o *ConfigTemplateRequest) SetTemplateCode(v string) { + o.TemplateCode = v +} + +// GetDataSource returns the DataSource field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { + if o == nil || IsNil(o.DataSource) { + var ret BriefDataSourceRequest + return ret + } + return *o.DataSource +} + +// GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { + if o == nil || IsNil(o.DataSource) { + return nil, false + } + return o.DataSource, true +} + +// HasDataSource returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasDataSource() bool { + if o != nil && !IsNil(o.DataSource) { + return true + } + + return false +} + +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { + o.DataSource = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ConfigTemplateRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConfigTemplateRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ConfigTemplateRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ConfigTemplateRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + func (o ConfigTemplateRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -115,6 +243,16 @@ func (o ConfigTemplateRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.EnvironmentParams != nil { + toSerialize["environment_params"] = o.EnvironmentParams + } + toSerialize["template_code"] = o.TemplateCode + if !IsNil(o.DataSource) { + toSerialize["data_source"] = o.DataSource + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +267,7 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "template_code", } allProperties := make(map[string]interface{}) @@ -160,6 +299,10 @@ func (o *ConfigTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "environment_params") + delete(additionalProperties, "template_code") + delete(additionalProperties, "data_source") + delete(additionalProperties, "tags") o.AdditionalProperties = additionalProperties } diff --git a/model_console_port.go b/model_console_port.go index c931788c3..62a1ef229 100644 --- a/model_console_port.go +++ b/model_console_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,27 @@ var _ MappedNullable = &ConsolePort{} // ConsolePort Adds support for custom fields and tags. type ConsolePort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortType `json:"type,omitempty"` Speed NullableConsolePortSpeed `json:"speed,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -56,7 +57,7 @@ type _ConsolePort ConsolePort // 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 NewConsolePort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { +func NewConsolePort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsolePort { this := ConsolePort{} this.Id = id this.Url = url @@ -132,6 +133,38 @@ func (o *ConsolePort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConsolePort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsolePort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConsolePort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConsolePort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConsolePort) GetDisplay() string { if o == nil { @@ -157,9 +190,9 @@ func (o *ConsolePort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsolePort) GetDevice() Device { +func (o *ConsolePort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +201,7 @@ func (o *ConsolePort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePort) GetDeviceOk() (*Device, bool) { +func (o *ConsolePort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +209,14 @@ func (o *ConsolePort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsolePort) SetDevice(v Device) { +func (o *ConsolePort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePort) GetModule() Module { +func (o *ConsolePort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +225,7 @@ func (o *ConsolePort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetModuleOk() (*Module, bool) { +func (o *ConsolePort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,8 +241,8 @@ func (o *ConsolePort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsolePort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsolePort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -419,10 +452,10 @@ func (o *ConsolePort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsolePort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *ConsolePort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -432,7 +465,7 @@ func (o *ConsolePort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePort) GetCableOk() (*Cable, bool) { +func (o *ConsolePort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -440,7 +473,7 @@ func (o *ConsolePort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *ConsolePort) SetCable(v Cable) { +func (o *ConsolePort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -493,30 +526,33 @@ func (o *ConsolePort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *ConsolePort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsolePort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -528,8 +564,9 @@ func (o *ConsolePort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -541,27 +578,29 @@ func (o *ConsolePort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsolePort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsolePort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *ConsolePort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -740,6 +779,9 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -764,9 +806,11 @@ func (o ConsolePort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -836,6 +880,7 @@ func (o *ConsolePort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_port_request.go b/model_console_port_request.go index 02bc1a10a..166f7fcd6 100644 --- a/model_console_port_request.go +++ b/model_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsolePortRequest{} // ConsolePortRequest Adds support for custom fields and tags. type ConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsolePortRequest ConsolePortRequest // 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 NewConsolePortRequest(device DeviceRequest, name string) *ConsolePortRequest { +func NewConsolePortRequest(device BriefDeviceRequest, name string) *ConsolePortRequest { this := ConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsolePortRequestWithDefaults() *ConsolePortRequest { } // GetDevice returns the Device field value -func (o *ConsolePortRequest) GetDevice() DeviceRequest { +func (o *ConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *ConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortRequest) GetModule() ModuleRequest { +func (o *ConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_port_request_speed.go b/model_console_port_request_speed.go index c00a14247..ffeacd483 100644 --- a/model_console_port_request_speed.go +++ b/model_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed.go b/model_console_port_speed.go index e28484684..088d3f866 100644 --- a/model_console_port_speed.go +++ b/model_console_port_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_label.go b/model_console_port_speed_label.go index 4a4aaa975..bc91b6758 100644 --- a/model_console_port_speed_label.go +++ b/model_console_port_speed_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_speed_value.go b/model_console_port_speed_value.go index 814b669e0..4bf37140d 100644 --- a/model_console_port_speed_value.go +++ b/model_console_port_speed_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_template.go b/model_console_port_template.go index 804ed4efc..2c419ac1b 100644 --- a/model_console_port_template.go +++ b/model_console_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsolePortTemplate{} // ConsolePortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsolePortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetDeviceType() DeviceType { +func (o *ConsolePortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsolePortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsolePortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsolePortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsolePortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsolePortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsolePortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplate) GetModuleType() ModuleType { +func (o *ConsolePortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsolePortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsolePortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsolePortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsolePortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsolePortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_port_template_request.go b/model_console_port_template_request.go index e3f1100b7..49760c470 100644 --- a/model_console_port_template_request.go +++ b/model_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsolePortTemplateRequest{} // ConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsolePortTemplateRequestWithDefaults() *ConsolePortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_console_port_type.go b/model_console_port_type.go index 9e92401fc..5e95b3b8f 100644 --- a/model_console_port_type.go +++ b/model_console_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_label.go b/model_console_port_type_label.go index 9e6a3ab15..880d577ba 100644 --- a/model_console_port_type_label.go +++ b/model_console_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_port_type_value.go b/model_console_port_type_value.go index f9f68676d..34714669d 100644 --- a/model_console_port_type_value.go +++ b/model_console_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_console_server_port.go b/model_console_server_port.go index 958e45db0..7993e65dc 100644 --- a/model_console_server_port.go +++ b/model_console_server_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,27 @@ var _ MappedNullable = &ConsoleServerPort{} // ConsoleServerPort Adds support for custom fields and tags. type ConsoleServerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortType `json:"type,omitempty"` Speed NullableConsolePortSpeed `json:"speed,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -56,7 +57,7 @@ type _ConsoleServerPort ConsoleServerPort // 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 NewConsoleServerPort(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { +func NewConsoleServerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *ConsoleServerPort { this := ConsoleServerPort{} this.Id = id this.Url = url @@ -132,6 +133,38 @@ func (o *ConsoleServerPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ConsoleServerPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ConsoleServerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ConsoleServerPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ConsoleServerPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ConsoleServerPort) GetDisplay() string { if o == nil { @@ -157,9 +190,9 @@ func (o *ConsoleServerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ConsoleServerPort) GetDevice() Device { +func (o *ConsoleServerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -168,7 +201,7 @@ func (o *ConsoleServerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { +func (o *ConsoleServerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -176,14 +209,14 @@ func (o *ConsoleServerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ConsoleServerPort) SetDevice(v Device) { +func (o *ConsoleServerPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPort) GetModule() Module { +func (o *ConsoleServerPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -192,7 +225,7 @@ func (o *ConsoleServerPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetModuleOk() (*Module, bool) { +func (o *ConsoleServerPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -208,8 +241,8 @@ func (o *ConsoleServerPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *ConsoleServerPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ConsoleServerPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -419,10 +452,10 @@ func (o *ConsoleServerPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *ConsoleServerPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *ConsoleServerPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -432,7 +465,7 @@ func (o *ConsoleServerPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { +func (o *ConsoleServerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -440,7 +473,7 @@ func (o *ConsoleServerPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *ConsoleServerPort) SetCable(v Cable) { +func (o *ConsoleServerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -493,30 +526,33 @@ func (o *ConsoleServerPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *ConsoleServerPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -528,8 +564,9 @@ func (o *ConsoleServerPort) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -541,27 +578,29 @@ func (o *ConsoleServerPort) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *ConsoleServerPort) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *ConsoleServerPort) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *ConsoleServerPort) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -740,6 +779,9 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -764,9 +806,11 @@ func (o ConsoleServerPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -836,6 +880,7 @@ func (o *ConsoleServerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_console_server_port_request.go b/model_console_server_port_request.go index a51f7782a..45fc5829d 100644 --- a/model_console_server_port_request.go +++ b/model_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &ConsoleServerPortRequest{} // ConsoleServerPortRequest Adds support for custom fields and tags. type ConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *ConsolePortTypeValue `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _ConsoleServerPortRequest ConsoleServerPortRequest // 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 NewConsoleServerPortRequest(device DeviceRequest, name string) *ConsoleServerPortRequest { +func NewConsoleServerPortRequest(device BriefDeviceRequest, name string) *ConsoleServerPortRequest { this := ConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewConsoleServerPortRequestWithDefaults() *ConsoleServerPortRequest { } // GetDevice returns the Device field value -func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *ConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *ConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *ConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *ConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *ConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *ConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *ConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *ConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *ConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_console_server_port_template.go b/model_console_server_port_template.go index 1ab6eee1c..41273893d 100644 --- a/model_console_server_port_template.go +++ b/model_console_server_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &ConsoleServerPortTemplate{} // ConsoleServerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -135,9 +135,9 @@ func (o *ConsoleServerPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { +func (o *ConsoleServerPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -146,7 +146,7 @@ func (o *ConsoleServerPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *ConsoleServerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -162,8 +162,8 @@ func (o *ConsoleServerPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -178,9 +178,9 @@ func (o *ConsoleServerPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { +func (o *ConsoleServerPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -189,7 +189,7 @@ func (o *ConsoleServerPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *ConsoleServerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *ConsoleServerPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_console_server_port_template_request.go b/model_console_server_port_template_request.go index bcbbf7a82..6685ec03c 100644 --- a/model_console_server_port_template_request.go +++ b/model_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ConsoleServerPortTemplateRequest{} // ConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewConsoleServerPortTemplateRequestWithDefaults() *ConsoleServerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *ConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *ConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *ConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *ConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *ConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *ConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *ConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *ConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_contact.go b/model_contact.go index 74e7412d7..009a542b4 100644 --- a/model_contact.go +++ b/model_contact.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Contact type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &Contact{} // Contact Adds support for custom fields and tags. type Contact struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Group NullableBriefContactGroup `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +47,14 @@ type _Contact Contact // 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 NewContact(id int32, url string, display string, name string) *Contact { +func NewContact(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *Contact { this := Contact{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +114,38 @@ func (o *Contact) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Contact) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Contact) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Contact) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Contact) GetDisplay() string { if o == nil { @@ -123,6 +170,49 @@ func (o *Contact) SetDisplay(v string) { o.Display = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Contact) GetGroup() BriefContactGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetGroupOk() (*BriefContactGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Contact) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroup and assigns it to the Group field. +func (o *Contact) SetGroup(v BriefContactGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Contact) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Contact) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *Contact) GetName() string { if o == nil { @@ -147,6 +237,166 @@ func (o *Contact) SetName(v string) { o.Name = v } +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *Contact) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *Contact) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *Contact) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *Contact) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *Contact) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *Contact) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *Contact) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *Contact) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *Contact) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *Contact) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *Contact) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *Contact) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *Contact) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *Contact) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *Contact) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Contact) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +429,154 @@ func (o *Contact) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Contact) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Contact) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Contact) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Contact) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Contact) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Contact) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Contact) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Contact) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Contact) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Contact) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Contact) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Contact) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Contact) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Contact) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Contact) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Contact) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +589,43 @@ func (o Contact) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,6 +643,8 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +676,21 @@ func (o *Contact) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_assignment.go b/model_contact_assignment.go index a62312639..b66a6fa9b 100644 --- a/model_contact_assignment.go +++ b/model_contact_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,19 +21,19 @@ var _ MappedNullable = &ContactAssignment{} // ContactAssignment Adds support for custom fields and tags. type ContactAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Object map[string]interface{} `json:"object"` - Contact Contact `json:"contact"` - Role NullableContactRole `json:"role,omitempty"` - Priority *ContactAssignmentPriority `json:"priority,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Object map[string]interface{} `json:"object"` + Contact BriefContact `json:"contact"` + Role NullableBriefContactRole `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriority `json:"priority,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -43,7 +43,7 @@ type _ContactAssignment ContactAssignment // 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 NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact Contact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { +func NewContactAssignment(id int32, url string, display string, objectType string, objectId int64, object map[string]interface{}, contact BriefContact, created NullableTime, lastUpdated NullableTime) *ContactAssignment { this := ContactAssignment{} this.Id = id this.Url = url @@ -210,9 +210,9 @@ func (o *ContactAssignment) SetObject(v map[string]interface{}) { } // GetContact returns the Contact field value -func (o *ContactAssignment) GetContact() Contact { +func (o *ContactAssignment) GetContact() BriefContact { if o == nil { - var ret Contact + var ret BriefContact return ret } @@ -221,7 +221,7 @@ func (o *ContactAssignment) GetContact() Contact { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetContactOk() (*Contact, bool) { +func (o *ContactAssignment) GetContactOk() (*BriefContact, bool) { if o == nil { return nil, false } @@ -229,14 +229,14 @@ func (o *ContactAssignment) GetContactOk() (*Contact, bool) { } // SetContact sets field value -func (o *ContactAssignment) SetContact(v Contact) { +func (o *ContactAssignment) SetContact(v BriefContact) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignment) GetRole() ContactRole { +func (o *ContactAssignment) GetRole() BriefContactRole { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRole + var ret BriefContactRole return ret } return *o.Role.Get() @@ -245,7 +245,7 @@ func (o *ContactAssignment) GetRole() ContactRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignment) GetRoleOk() (*ContactRole, bool) { +func (o *ContactAssignment) GetRoleOk() (*BriefContactRole, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *ContactAssignment) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRole and assigns it to the Role field. -func (o *ContactAssignment) SetRole(v ContactRole) { +// SetRole gets a reference to the given NullableBriefContactRole and assigns it to the Role field. +func (o *ContactAssignment) SetRole(v BriefContactRole) { o.Role.Set(&v) } @@ -277,9 +277,9 @@ func (o *ContactAssignment) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { +func (o *ContactAssignment) GetPriority() BriefCircuitGroupAssignmentSerializerPriority { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriority + var ret BriefCircuitGroupAssignmentSerializerPriority return ret } return *o.Priority @@ -287,7 +287,7 @@ func (o *ContactAssignment) GetPriority() ContactAssignmentPriority { // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignment) GetPriorityOk() (*ContactAssignmentPriority, bool) { +func (o *ContactAssignment) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriority, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -303,8 +303,8 @@ func (o *ContactAssignment) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriority and assigns it to the Priority field. -func (o *ContactAssignment) SetPriority(v ContactAssignmentPriority) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriority and assigns it to the Priority field. +func (o *ContactAssignment) SetPriority(v BriefCircuitGroupAssignmentSerializerPriority) { o.Priority = &v } diff --git a/model_contact_assignment_request.go b/model_contact_assignment_request.go index 8fb3e6e65..edceccf42 100644 --- a/model_contact_assignment_request.go +++ b/model_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &ContactAssignmentRequest{} // ContactAssignmentRequest Adds support for custom fields and tags. type ContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _ContactAssignmentRequest ContactAssignmentRequest // 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 NewContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *ContactAssignmentRequest { +func NewContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *ContactAssignmentRequest { this := ContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *ContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *ContactAssignmentRequest) GetContact() ContactRequest { +func (o *ContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +112,7 @@ func (o *ContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *ContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *ContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { } // SetContact sets field value -func (o *ContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *ContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *ContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *ContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *ContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *ContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *ContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *ContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *ContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *ContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *ContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *ContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *ContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *ContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *ContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_contact_group.go b/model_contact_group.go index 12c15cf45..87c5f4791 100644 --- a/model_contact_group.go +++ b/model_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ContactGroup{} type ContactGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -113,6 +114,38 @@ func (o *ContactGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ContactGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ContactGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ContactGroup) GetDisplay() string { if o == nil { @@ -436,6 +469,9 @@ func (o ContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -508,6 +544,7 @@ func (o *ContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_contact_group_request.go b/model_contact_group_request.go index 9aea2147b..075253e96 100644 --- a/model_contact_group_request.go +++ b/model_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_contact_request.go b/model_contact_request.go index bb1e2df50..cadc6d275 100644 --- a/model_contact_request.go +++ b/model_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ContactRequest{} // ContactRequest Adds support for custom fields and tags. type ContactRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Group NullableBriefContactGroupRequest `json:"group,omitempty"` + Name string `json:"name"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -45,6 +54,49 @@ func NewContactRequestWithDefaults() *ContactRequest { return &this } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ContactRequest) GetGroup() BriefContactGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefContactGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *ContactRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *ContactRequest) SetGroup(v BriefContactGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *ContactRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *ContactRequest) UnsetGroup() { + o.Group.Unset() +} + // GetName returns the Name field value func (o *ContactRequest) GetName() string { if o == nil { @@ -69,6 +121,166 @@ func (o *ContactRequest) SetName(v string) { o.Name = v } +// GetTitle returns the Title field value if set, zero value otherwise. +func (o *ContactRequest) GetTitle() string { + if o == nil || IsNil(o.Title) { + var ret string + return ret + } + return *o.Title +} + +// GetTitleOk returns a tuple with the Title field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTitleOk() (*string, bool) { + if o == nil || IsNil(o.Title) { + return nil, false + } + return o.Title, true +} + +// HasTitle returns a boolean if a field has been set. +func (o *ContactRequest) HasTitle() bool { + if o != nil && !IsNil(o.Title) { + return true + } + + return false +} + +// SetTitle gets a reference to the given string and assigns it to the Title field. +func (o *ContactRequest) SetTitle(v string) { + o.Title = &v +} + +// GetPhone returns the Phone field value if set, zero value otherwise. +func (o *ContactRequest) GetPhone() string { + if o == nil || IsNil(o.Phone) { + var ret string + return ret + } + return *o.Phone +} + +// GetPhoneOk returns a tuple with the Phone field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetPhoneOk() (*string, bool) { + if o == nil || IsNil(o.Phone) { + return nil, false + } + return o.Phone, true +} + +// HasPhone returns a boolean if a field has been set. +func (o *ContactRequest) HasPhone() bool { + if o != nil && !IsNil(o.Phone) { + return true + } + + return false +} + +// SetPhone gets a reference to the given string and assigns it to the Phone field. +func (o *ContactRequest) SetPhone(v string) { + o.Phone = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *ContactRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *ContactRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *ContactRequest) SetEmail(v string) { + o.Email = &v +} + +// GetAddress returns the Address field value if set, zero value otherwise. +func (o *ContactRequest) GetAddress() string { + if o == nil || IsNil(o.Address) { + var ret string + return ret + } + return *o.Address +} + +// GetAddressOk returns a tuple with the Address field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetAddressOk() (*string, bool) { + if o == nil || IsNil(o.Address) { + return nil, false + } + return o.Address, true +} + +// HasAddress returns a boolean if a field has been set. +func (o *ContactRequest) HasAddress() bool { + if o != nil && !IsNil(o.Address) { + return true + } + + return false +} + +// SetAddress gets a reference to the given string and assigns it to the Address field. +func (o *ContactRequest) SetAddress(v string) { + o.Address = &v +} + +// GetLink returns the Link field value if set, zero value otherwise. +func (o *ContactRequest) GetLink() string { + if o == nil || IsNil(o.Link) { + var ret string + return ret + } + return *o.Link +} + +// GetLinkOk returns a tuple with the Link field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetLinkOk() (*string, bool) { + if o == nil || IsNil(o.Link) { + return nil, false + } + return o.Link, true +} + +// HasLink returns a boolean if a field has been set. +func (o *ContactRequest) HasLink() bool { + if o != nil && !IsNil(o.Link) { + return true + } + + return false +} + +// SetLink gets a reference to the given string and assigns it to the Link field. +func (o *ContactRequest) SetLink(v string) { + o.Link = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ContactRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +313,102 @@ func (o *ContactRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ContactRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ContactRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ContactRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +419,37 @@ func (o ContactRequest) MarshalJSON() ([]byte, error) { func (o ContactRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Title) { + toSerialize["title"] = o.Title + } + if !IsNil(o.Phone) { + toSerialize["phone"] = o.Phone + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.Address) { + toSerialize["address"] = o.Address + } + if !IsNil(o.Link) { + toSerialize["link"] = o.Link + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -158,8 +493,17 @@ func (o *ContactRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "group") delete(additionalProperties, "name") + delete(additionalProperties, "title") + delete(additionalProperties, "phone") + delete(additionalProperties, "email") + delete(additionalProperties, "address") + delete(additionalProperties, "link") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role.go b/model_contact_role.go index bb4b6f62b..879ae8cc9 100644 --- a/model_contact_role.go +++ b/model_contact_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ContactRole type satisfies the MappedNullable interface at compile time @@ -20,12 +21,17 @@ var _ MappedNullable = &ContactRole{} // ContactRole Adds support for custom fields and tags. type ContactRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +41,15 @@ type _ContactRole ContactRole // 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 NewContactRole(id int32, url string, display string, name string, slug string) *ContactRole { +func NewContactRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *ContactRole { this := ContactRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +109,38 @@ func (o *ContactRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ContactRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ContactRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ContactRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ContactRole) GetDisplay() string { if o == nil { @@ -205,6 +245,122 @@ func (o *ContactRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRole) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRole) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ContactRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRole) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRole) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRole) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ContactRole) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ContactRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ContactRole) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ContactRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ContactRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ContactRole) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +373,23 @@ func (o ContactRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,6 +408,8 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +441,15 @@ func (o *ContactRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_contact_role_request.go b/model_contact_role_request.go index c60293780..d094699bc 100644 --- a/model_contact_role_request.go +++ b/model_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,11 @@ var _ MappedNullable = &ContactRoleRequest{} // ContactRoleRequest Adds support for custom fields and tags. type ContactRoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,6 +129,70 @@ func (o *ContactRoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ContactRoleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ContactRoleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ContactRoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ContactRoleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ContactRoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ContactRoleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ContactRoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ContactRoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -142,6 +208,12 @@ func (o ContactRoleRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,6 +261,8 @@ func (o *ContactRoleRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_core_object_changes_list_action_parameter.go b/model_core_object_changes_list_action_parameter.go index b0efb5f51..813caf4c1 100644 --- a/model_core_object_changes_list_action_parameter.go +++ b/model_core_object_changes_list_action_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field.go b/model_custom_field.go index aea0cf477..76af4976b 100644 --- a/model_custom_field.go +++ b/model_custom_field.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomField{} type CustomField struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Type CustomFieldType `json:"type"` @@ -35,8 +36,10 @@ type CustomField struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogic `json:"filter_logic,omitempty"` @@ -46,6 +49,8 @@ type CustomField struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -53,11 +58,11 @@ type CustomField struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSet `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSet `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -137,6 +142,38 @@ func (o *CustomField) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CustomField) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomField) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CustomField) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CustomField) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CustomField) GetDisplay() string { if o == nil { @@ -428,6 +465,38 @@ func (o *CustomField) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomField) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomField) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomField) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomField) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomField) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -621,6 +690,39 @@ func (o *CustomField) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomField) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomField) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomField) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomField) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomField) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -772,9 +874,9 @@ func (o *CustomField) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { +func (o *CustomField) GetChoiceSet() BriefCustomFieldChoiceSet { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSet + var ret BriefCustomFieldChoiceSet return ret } return *o.ChoiceSet.Get() @@ -783,7 +885,7 @@ func (o *CustomField) GetChoiceSet() CustomFieldChoiceSet { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomField) GetChoiceSetOk() (*CustomFieldChoiceSet, bool) { +func (o *CustomField) GetChoiceSetOk() (*BriefCustomFieldChoiceSet, bool) { if o == nil { return nil, false } @@ -799,8 +901,8 @@ func (o *CustomField) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSet and assigns it to the ChoiceSet field. -func (o *CustomField) SetChoiceSet(v CustomFieldChoiceSet) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSet and assigns it to the ChoiceSet field. +func (o *CustomField) SetChoiceSet(v BriefCustomFieldChoiceSet) { o.ChoiceSet.Set(&v) } @@ -910,6 +1012,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["type"] = o.Type @@ -930,6 +1035,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -948,6 +1056,9 @@ func (o CustomField) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -1021,6 +1132,7 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "type") @@ -1031,12 +1143,14 @@ func (o *CustomField) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_choice_set.go b/model_custom_field_choice_set.go index 7926b715a..950ab8960 100644 --- a/model_custom_field_choice_set.go +++ b/model_custom_field_choice_set.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomFieldChoiceSet{} type CustomFieldChoiceSet struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -111,6 +112,38 @@ func (o *CustomFieldChoiceSet) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CustomFieldChoiceSet) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldChoiceSet) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CustomFieldChoiceSet) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CustomFieldChoiceSet) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CustomFieldChoiceSet) GetDisplay() string { if o == nil { @@ -367,6 +400,9 @@ func (o CustomFieldChoiceSet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -434,6 +470,7 @@ func (o *CustomFieldChoiceSet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_custom_field_choice_set_base_choices.go b/model_custom_field_choice_set_base_choices.go index 387404fe0..680b899d9 100644 --- a/model_custom_field_choice_set_base_choices.go +++ b/model_custom_field_choice_set_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_label.go b/model_custom_field_choice_set_base_choices_label.go index bea7b22b5..4d73776fd 100644 --- a/model_custom_field_choice_set_base_choices_label.go +++ b/model_custom_field_choice_set_base_choices_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_base_choices_value.go b/model_custom_field_choice_set_base_choices_value.go index 2e891195a..d7f711318 100644 --- a/model_custom_field_choice_set_base_choices_value.go +++ b/model_custom_field_choice_set_base_choices_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_choice_set_request.go b/model_custom_field_choice_set_request.go index 9b0c67818..1b21745ba 100644 --- a/model_custom_field_choice_set_request.go +++ b/model_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic.go b/model_custom_field_filter_logic.go index ec27bbfe0..f82703534 100644 --- a/model_custom_field_filter_logic.go +++ b/model_custom_field_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_label.go b/model_custom_field_filter_logic_label.go index 55b62d6da..382c56672 100644 --- a/model_custom_field_filter_logic_label.go +++ b/model_custom_field_filter_logic_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_filter_logic_value.go b/model_custom_field_filter_logic_value.go index b99381d64..23e70185f 100644 --- a/model_custom_field_filter_logic_value.go +++ b/model_custom_field_filter_logic_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_request.go b/model_custom_field_request.go index e62680adb..428a14738 100644 --- a/model_custom_field_request.go +++ b/model_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,10 @@ type CustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *CustomFieldFilterLogicValue `json:"filter_logic,omitempty"` @@ -41,6 +43,8 @@ type CustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type CustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -319,6 +323,38 @@ func (o *CustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *CustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *CustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -512,6 +548,39 @@ func (o *CustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *CustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *CustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *CustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *CustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *CustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -663,9 +732,9 @@ func (o *CustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *CustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -674,7 +743,7 @@ func (o *CustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *CustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *CustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -690,8 +759,8 @@ func (o *CustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *CustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *CustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -765,6 +834,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -783,6 +855,9 @@ func (o CustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -854,12 +929,14 @@ func (o *CustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_custom_field_type.go b/model_custom_field_type.go index a3be15abf..ac7550a94 100644 --- a/model_custom_field_type.go +++ b/model_custom_field_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_label.go b/model_custom_field_type_label.go index 4e8cbc627..77d367962 100644 --- a/model_custom_field_type_label.go +++ b/model_custom_field_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_type_value.go b/model_custom_field_type_value.go index 097829be5..6924e7763 100644 --- a/model_custom_field_type_value.go +++ b/model_custom_field_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable.go b/model_custom_field_ui_editable.go index 8d3e41d9a..ce6457887 100644 --- a/model_custom_field_ui_editable.go +++ b/model_custom_field_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_label.go b/model_custom_field_ui_editable_label.go index 6c09b4063..783f10881 100644 --- a/model_custom_field_ui_editable_label.go +++ b/model_custom_field_ui_editable_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_editable_value.go b/model_custom_field_ui_editable_value.go index b758a5455..5e439f9ae 100644 --- a/model_custom_field_ui_editable_value.go +++ b/model_custom_field_ui_editable_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible.go b/model_custom_field_ui_visible.go index d643bce9c..3e775239d 100644 --- a/model_custom_field_ui_visible.go +++ b/model_custom_field_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_label.go b/model_custom_field_ui_visible_label.go index b66ef1e2b..08476d59c 100644 --- a/model_custom_field_ui_visible_label.go +++ b/model_custom_field_ui_visible_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_field_ui_visible_value.go b/model_custom_field_ui_visible_value.go index d9f11b99b..cbe15e19a 100644 --- a/model_custom_field_ui_visible_value.go +++ b/model_custom_field_ui_visible_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_custom_link.go b/model_custom_link.go index 1de90af8a..2a0e20b27 100644 --- a/model_custom_link.go +++ b/model_custom_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &CustomLink{} type CustomLink struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -118,6 +119,38 @@ func (o *CustomLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *CustomLink) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *CustomLink) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *CustomLink) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *CustomLink) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *CustomLink) GetDisplay() string { if o == nil { @@ -462,6 +495,9 @@ func (o CustomLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -537,6 +573,7 @@ func (o *CustomLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_custom_link_button_class.go b/model_custom_link_button_class.go index 50fd2a8f1..b9cef71b1 100644 --- a/model_custom_link_button_class.go +++ b/model_custom_link_button_class.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,31 +15,31 @@ import ( "fmt" ) -// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `outline-dark` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link +// CustomLinkButtonClass The class of the first link in a group will be used for the dropdown button * `default` - Default * `blue` - Blue * `indigo` - Indigo * `purple` - Purple * `pink` - Pink * `red` - Red * `orange` - Orange * `yellow` - Yellow * `green` - Green * `teal` - Teal * `cyan` - Cyan * `gray` - Gray * `black` - Black * `white` - White * `ghost-dark` - Link type CustomLinkButtonClass string // List of CustomLink_button_class const ( - CUSTOMLINKBUTTONCLASS_OUTLINE_DARK CustomLinkButtonClass = "outline-dark" - CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" - CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" - CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" - CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" - CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" - CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" - CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" - CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" - CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" - CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" - CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" - CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" - CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" - CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" + CUSTOMLINKBUTTONCLASS_DEFAULT CustomLinkButtonClass = "default" + CUSTOMLINKBUTTONCLASS_BLUE CustomLinkButtonClass = "blue" + CUSTOMLINKBUTTONCLASS_INDIGO CustomLinkButtonClass = "indigo" + CUSTOMLINKBUTTONCLASS_PURPLE CustomLinkButtonClass = "purple" + CUSTOMLINKBUTTONCLASS_PINK CustomLinkButtonClass = "pink" + CUSTOMLINKBUTTONCLASS_RED CustomLinkButtonClass = "red" + CUSTOMLINKBUTTONCLASS_ORANGE CustomLinkButtonClass = "orange" + CUSTOMLINKBUTTONCLASS_YELLOW CustomLinkButtonClass = "yellow" + CUSTOMLINKBUTTONCLASS_GREEN CustomLinkButtonClass = "green" + CUSTOMLINKBUTTONCLASS_TEAL CustomLinkButtonClass = "teal" + CUSTOMLINKBUTTONCLASS_CYAN CustomLinkButtonClass = "cyan" + CUSTOMLINKBUTTONCLASS_GRAY CustomLinkButtonClass = "gray" + CUSTOMLINKBUTTONCLASS_BLACK CustomLinkButtonClass = "black" + CUSTOMLINKBUTTONCLASS_WHITE CustomLinkButtonClass = "white" + CUSTOMLINKBUTTONCLASS_GHOST_DARK CustomLinkButtonClass = "ghost-dark" ) // All allowed values of CustomLinkButtonClass enum var AllowedCustomLinkButtonClassEnumValues = []CustomLinkButtonClass{ - "outline-dark", + "default", "blue", "indigo", "purple", diff --git a/model_custom_link_request.go b/model_custom_link_request.go index 6de4bbfdb..b6b2d0e28 100644 --- a/model_custom_link_request.go +++ b/model_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard.go b/model_dashboard.go index 5f90d03d6..1f07b002e 100644 --- a/model_dashboard.go +++ b/model_dashboard.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dashboard_request.go b/model_dashboard_request.go index 800dcc04e..5f2aa3383 100644 --- a/model_dashboard_request.go +++ b/model_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_file.go b/model_data_file.go index 53adc911d..cb5742690 100644 --- a/model_data_file.go +++ b/model_data_file.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,11 @@ var _ MappedNullable = &DataFile{} // DataFile Adds support for custom fields and tags. type DataFile struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Source DataSource `json:"source"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Source BriefDataSource `json:"source"` // File path relative to the data source's root Path string `json:"path"` LastUpdated time.Time `json:"last_updated"` @@ -40,7 +41,7 @@ type _DataFile DataFile // 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 NewDataFile(id int32, url string, display string, source DataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { +func NewDataFile(id int32, url string, display string, source BriefDataSource, path string, lastUpdated time.Time, size int32, hash string) *DataFile { this := DataFile{} this.Id = id this.Url = url @@ -109,6 +110,38 @@ func (o *DataFile) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DataFile) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataFile) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DataFile) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DataFile) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DataFile) GetDisplay() string { if o == nil { @@ -134,9 +167,9 @@ func (o *DataFile) SetDisplay(v string) { } // GetSource returns the Source field value -func (o *DataFile) GetSource() DataSource { +func (o *DataFile) GetSource() BriefDataSource { if o == nil { - var ret DataSource + var ret BriefDataSource return ret } @@ -145,7 +178,7 @@ func (o *DataFile) GetSource() DataSource { // GetSourceOk returns a tuple with the Source field value // and a boolean to check if the value has been set. -func (o *DataFile) GetSourceOk() (*DataSource, bool) { +func (o *DataFile) GetSourceOk() (*BriefDataSource, bool) { if o == nil { return nil, false } @@ -153,7 +186,7 @@ func (o *DataFile) GetSourceOk() (*DataSource, bool) { } // SetSource sets field value -func (o *DataFile) SetSource(v DataSource) { +func (o *DataFile) SetSource(v BriefDataSource) { o.Source = v } @@ -265,6 +298,9 @@ func (o DataFile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["source"] = o.Source toSerialize["path"] = o.Path @@ -323,6 +359,7 @@ func (o *DataFile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "source") delete(additionalProperties, "path") diff --git a/model_data_source.go b/model_data_source.go index 2757ef5b2..680af996d 100644 --- a/model_data_source.go +++ b/model_data_source.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DataSource type satisfies the MappedNullable interface at compile time @@ -20,11 +21,25 @@ var _ MappedNullable = &DataSource{} // DataSource Adds support for custom fields and tags. type DataSource struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Type DataSourceType `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Status DataSourceStatus `json:"status"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` + // Patterns (one per line) matching files to ignore when syncing + IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + LastSynced NullableTime `json:"last_synced"` + FileCount int64 `json:"file_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +49,19 @@ type _DataSource DataSource // 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 NewDataSource(id int32, url string, display string, name string) *DataSource { +func NewDataSource(id int32, url string, display string, name string, type_ DataSourceType, sourceUrl string, status DataSourceStatus, created NullableTime, lastUpdated NullableTime, lastSynced NullableTime, fileCount int64) *DataSource { this := DataSource{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ + this.SourceUrl = sourceUrl + this.Status = status + this.Created = created + this.LastUpdated = lastUpdated + this.LastSynced = lastSynced + this.FileCount = fileCount return &this } @@ -99,6 +121,38 @@ func (o *DataSource) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DataSource) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DataSource) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DataSource) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DataSource) GetDisplay() string { if o == nil { @@ -147,6 +201,110 @@ func (o *DataSource) SetName(v string) { o.Name = v } +// GetType returns the Type field value +func (o *DataSource) GetType() DataSourceType { + if o == nil { + var ret DataSourceType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetTypeOk() (*DataSourceType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *DataSource) SetType(v DataSourceType) { + o.Type = v +} + +// GetSourceUrl returns the SourceUrl field value +func (o *DataSource) GetSourceUrl() string { + if o == nil { + var ret string + return ret + } + + return o.SourceUrl +} + +// GetSourceUrlOk returns a tuple with the SourceUrl field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetSourceUrlOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.SourceUrl, true +} + +// SetSourceUrl sets field value +func (o *DataSource) SetSourceUrl(v string) { + o.SourceUrl = v +} + +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *DataSource) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { + var ret bool + return ret + } + return *o.Enabled +} + +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { + return nil, false + } + return o.Enabled, true +} + +// HasEnabled returns a boolean if a field has been set. +func (o *DataSource) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { + return true + } + + return false +} + +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *DataSource) SetEnabled(v bool) { + o.Enabled = &v +} + +// GetStatus returns the Status field value +func (o *DataSource) GetStatus() DataSourceStatus { + if o == nil { + var ret DataSourceStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetStatusOk() (*DataSourceStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *DataSource) SetStatus(v DataSourceStatus) { + o.Status = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DataSource) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +337,237 @@ func (o *DataSource) SetDescription(v string) { o.Description = &v } +// GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DataSource) GetParameters() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.Parameters +} + +// GetParametersOk returns a tuple with the Parameters field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetParametersOk() (*interface{}, bool) { + if o == nil || IsNil(o.Parameters) { + return nil, false + } + return &o.Parameters, true +} + +// HasParameters returns a boolean if a field has been set. +func (o *DataSource) HasParameters() bool { + if o != nil && !IsNil(o.Parameters) { + return true + } + + return false +} + +// SetParameters gets a reference to the given interface{} and assigns it to the Parameters field. +func (o *DataSource) SetParameters(v interface{}) { + o.Parameters = v +} + +// GetIgnoreRules returns the IgnoreRules field value if set, zero value otherwise. +func (o *DataSource) GetIgnoreRules() string { + if o == nil || IsNil(o.IgnoreRules) { + var ret string + return ret + } + return *o.IgnoreRules +} + +// GetIgnoreRulesOk returns a tuple with the IgnoreRules field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetIgnoreRulesOk() (*string, bool) { + if o == nil || IsNil(o.IgnoreRules) { + return nil, false + } + return o.IgnoreRules, true +} + +// HasIgnoreRules returns a boolean if a field has been set. +func (o *DataSource) HasIgnoreRules() bool { + if o != nil && !IsNil(o.IgnoreRules) { + return true + } + + return false +} + +// SetIgnoreRules gets a reference to the given string and assigns it to the IgnoreRules field. +func (o *DataSource) SetIgnoreRules(v string) { + o.IgnoreRules = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSource) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSource) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSource) SetComments(v string) { + o.Comments = &v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DataSource) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSource) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DataSource) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DataSource) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DataSource) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DataSource) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetLastSynced returns the LastSynced field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DataSource) GetLastSynced() time.Time { + if o == nil || o.LastSynced.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastSynced.Get() +} + +// GetLastSyncedOk returns a tuple with the LastSynced field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DataSource) GetLastSyncedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastSynced.Get(), o.LastSynced.IsSet() +} + +// SetLastSynced sets field value +func (o *DataSource) SetLastSynced(v time.Time) { + o.LastSynced.Set(&v) +} + +// GetFileCount returns the FileCount field value +func (o *DataSource) GetFileCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.FileCount +} + +// GetFileCountOk returns a tuple with the FileCount field value +// and a boolean to check if the value has been set. +func (o *DataSource) GetFileCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.FileCount, true +} + +// SetFileCount sets field value +func (o *DataSource) SetFileCount(v int64) { + o.FileCount = v +} + func (o DataSource) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +580,36 @@ func (o DataSource) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["type"] = o.Type + toSerialize["source_url"] = o.SourceUrl + if !IsNil(o.Enabled) { + toSerialize["enabled"] = o.Enabled + } + toSerialize["status"] = o.Status if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if o.Parameters != nil { + toSerialize["parameters"] = o.Parameters + } + if !IsNil(o.IgnoreRules) { + toSerialize["ignore_rules"] = o.IgnoreRules + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["last_synced"] = o.LastSynced.Get() + toSerialize["file_count"] = o.FileCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,6 +627,13 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", + "source_url", + "status", + "created", + "last_updated", + "last_synced", + "file_count", } allProperties := make(map[string]interface{}) @@ -244,9 +665,22 @@ func (o *DataSource) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "type") + delete(additionalProperties, "source_url") + delete(additionalProperties, "enabled") + delete(additionalProperties, "status") delete(additionalProperties, "description") + delete(additionalProperties, "parameters") + delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "last_synced") + delete(additionalProperties, "file_count") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_request.go b/model_data_source_request.go index 356c146f7..697b99526 100644 --- a/model_data_source_request.go +++ b/model_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,15 @@ var _ MappedNullable = &DataSourceRequest{} // DataSourceRequest Adds support for custom fields and tags. type DataSourceRequest struct { - Name string `json:"name"` - Type DataSourceRequestType `json:"type"` - SourceUrl string `json:"source_url"` - Enabled *bool `json:"enabled,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Parameters interface{} `json:"parameters,omitempty"` + Name string `json:"name"` + Type DataSourceTypeValue `json:"type"` + SourceUrl string `json:"source_url"` + Enabled *bool `json:"enabled,omitempty"` + Description *string `json:"description,omitempty"` + Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _DataSourceRequest DataSourceRequest // 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 NewDataSourceRequest(name string, type_ DataSourceRequestType, sourceUrl string) *DataSourceRequest { +func NewDataSourceRequest(name string, type_ DataSourceTypeValue, sourceUrl string) *DataSourceRequest { this := DataSourceRequest{} this.Name = name this.Type = type_ @@ -80,9 +80,9 @@ func (o *DataSourceRequest) SetName(v string) { } // GetType returns the Type field value -func (o *DataSourceRequest) GetType() DataSourceRequestType { +func (o *DataSourceRequest) GetType() DataSourceTypeValue { if o == nil { - var ret DataSourceRequestType + var ret DataSourceTypeValue return ret } @@ -91,7 +91,7 @@ func (o *DataSourceRequest) GetType() DataSourceRequestType { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { +func (o *DataSourceRequest) GetTypeOk() (*DataSourceTypeValue, bool) { if o == nil { return nil, false } @@ -99,7 +99,7 @@ func (o *DataSourceRequest) GetTypeOk() (*DataSourceRequestType, bool) { } // SetType sets field value -func (o *DataSourceRequest) SetType(v DataSourceRequestType) { +func (o *DataSourceRequest) SetType(v DataSourceTypeValue) { o.Type = v } @@ -191,38 +191,6 @@ func (o *DataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *DataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *DataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *DataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *DataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +256,38 @@ func (o *DataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *DataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o DataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *DataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_data_source_status.go b/model_data_source_status.go index 4a232e601..a889baa78 100644 --- a/model_data_source_status.go +++ b/model_data_source_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_source_status_label.go b/model_data_source_status_label.go index 7c1878ebe..337d67f44 100644 --- a/model_data_source_status_label.go +++ b/model_data_source_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_source_status_value.go b/model_data_source_status_value.go index 3144e06e6..9641d1433 100644 --- a/model_data_source_status_value.go +++ b/model_data_source_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_source_type.go b/model_data_source_type.go index 372434485..2f9071115 100644 --- a/model_data_source_type.go +++ b/model_data_source_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_source_type_label.go b/model_data_source_type_label.go index ce2aa0a89..77eab1c69 100644 --- a/model_data_source_type_label.go +++ b/model_data_source_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_data_source_type_value.go b/model_data_source_type_value.go index 9a9e076e2..6403f679a 100644 --- a/model_data_source_type_value.go +++ b/model_data_source_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_cables_list_length_unit_parameter.go b/model_dcim_cables_list_length_unit_parameter.go index f19ebe5fe..5e1152530 100644 --- a/model_dcim_cables_list_length_unit_parameter.go +++ b/model_dcim_cables_list_length_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_port_templates_list_type_parameter.go b/model_dcim_console_port_templates_list_type_parameter.go index 7554c6357..8da84239a 100644 --- a/model_dcim_console_port_templates_list_type_parameter.go +++ b/model_dcim_console_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_console_ports_list_speed_parameter.go b/model_dcim_console_ports_list_speed_parameter.go index 1f1008b17..42545504e 100644 --- a/model_dcim_console_ports_list_speed_parameter.go +++ b/model_dcim_console_ports_list_speed_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_airflow_parameter.go b/model_dcim_device_types_list_airflow_parameter.go index 0d667f224..d22c5a2de 100644 --- a/model_dcim_device_types_list_airflow_parameter.go +++ b/model_dcim_device_types_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_device_types_list_weight_unit_parameter.go b/model_dcim_device_types_list_weight_unit_parameter.go index acfb6c6fe..d97292984 100644 --- a/model_dcim_device_types_list_weight_unit_parameter.go +++ b/model_dcim_device_types_list_weight_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_devices_render_config_create_format_parameter.go b/model_dcim_devices_render_config_create_format_parameter.go index 62cac6541..82a30c7f5 100644 --- a/model_dcim_devices_render_config_create_format_parameter.go +++ b/model_dcim_devices_render_config_create_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_interfaces_list_mode_parameter.go b/model_dcim_interfaces_list_mode_parameter.go index 64b1b66da..254642879 100644 --- a/model_dcim_interfaces_list_mode_parameter.go +++ b/model_dcim_interfaces_list_mode_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_module_types_list_airflow_parameter.go b/model_dcim_module_types_list_airflow_parameter.go index 371b8c3ee..0614202e9 100644 --- a/model_dcim_module_types_list_airflow_parameter.go +++ b/model_dcim_module_types_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_phase_parameter.go b/model_dcim_power_feeds_list_phase_parameter.go index 887c4c185..e4b4cda1c 100644 --- a/model_dcim_power_feeds_list_phase_parameter.go +++ b/model_dcim_power_feeds_list_phase_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_supply_parameter.go b/model_dcim_power_feeds_list_supply_parameter.go index a9d411a9a..5994d4de6 100644 --- a/model_dcim_power_feeds_list_supply_parameter.go +++ b/model_dcim_power_feeds_list_supply_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_feeds_list_type_parameter.go b/model_dcim_power_feeds_list_type_parameter.go index 133f1c231..fed0ed7e4 100644 --- a/model_dcim_power_feeds_list_type_parameter.go +++ b/model_dcim_power_feeds_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_outlet_templates_list_type_parameter.go b/model_dcim_power_outlet_templates_list_type_parameter.go index dc7840bb1..dacef0aa5 100644 --- a/model_dcim_power_outlet_templates_list_type_parameter.go +++ b/model_dcim_power_outlet_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_power_port_templates_list_type_parameter.go b/model_dcim_power_port_templates_list_type_parameter.go index dcc5cfc55..825b19a90 100644 --- a/model_dcim_power_port_templates_list_type_parameter.go +++ b/model_dcim_power_port_templates_list_type_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_rack_types_list_outer_unit_parameter.go b/model_dcim_rack_types_list_outer_unit_parameter.go index 10f065563..d4cf6951c 100644 --- a/model_dcim_rack_types_list_outer_unit_parameter.go +++ b/model_dcim_rack_types_list_outer_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_elevation_retrieve_face_parameter.go b/model_dcim_racks_elevation_retrieve_face_parameter.go index 564e2c159..a98f3cc71 100644 --- a/model_dcim_racks_elevation_retrieve_face_parameter.go +++ b/model_dcim_racks_elevation_retrieve_face_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_elevation_retrieve_render_parameter.go b/model_dcim_racks_elevation_retrieve_render_parameter.go index 2506cd2cc..9ddd908c0 100644 --- a/model_dcim_racks_elevation_retrieve_render_parameter.go +++ b/model_dcim_racks_elevation_retrieve_render_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_dcim_racks_list_airflow_parameter.go b/model_dcim_racks_list_airflow_parameter.go index 04ade69d5..b22d42b2a 100644 --- a/model_dcim_racks_list_airflow_parameter.go +++ b/model_dcim_racks_list_airflow_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device.go b/model_device.go index 701b56150..858856e92 100644 --- a/model_device.go +++ b/model_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,42 +21,43 @@ var _ MappedNullable = &Device{} // Device Adds support for custom fields and tags. type Device struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name"` - DeviceType *DeviceType `json:"device_type,omitempty"` - Role *DeviceRole `json:"role,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name NullableString `json:"name"` + DeviceType *BriefDeviceType `json:"device_type,omitempty"` + Role *BriefDeviceRole `json:"role,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *Site `json:"site,omitempty"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSite `json:"site,omitempty"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip,omitempty"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device,omitempty"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip,omitempty"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -148,6 +149,38 @@ func (o *Device) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Device) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Device) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Device) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Device) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Device) GetDisplay() string { if o == nil { @@ -199,9 +232,9 @@ func (o *Device) SetName(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *Device) GetDeviceType() DeviceType { +func (o *Device) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType @@ -209,7 +242,7 @@ func (o *Device) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *Device) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -225,15 +258,15 @@ func (o *Device) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceType and assigns it to the DeviceType field. -func (o *Device) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given BriefDeviceType and assigns it to the DeviceType field. +func (o *Device) SetDeviceType(v BriefDeviceType) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *Device) GetRole() DeviceRole { +func (o *Device) GetRole() BriefDeviceRole { if o == nil || IsNil(o.Role) { - var ret DeviceRole + var ret BriefDeviceRole return ret } return *o.Role @@ -241,7 +274,7 @@ func (o *Device) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetRoleOk() (*DeviceRole, bool) { +func (o *Device) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -257,15 +290,15 @@ func (o *Device) HasRole() bool { return false } -// SetRole gets a reference to the given DeviceRole and assigns it to the Role field. -func (o *Device) SetRole(v DeviceRole) { +// SetRole gets a reference to the given BriefDeviceRole and assigns it to the Role field. +func (o *Device) SetRole(v BriefDeviceRole) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetTenant() Tenant { +func (o *Device) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -274,7 +307,7 @@ func (o *Device) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetTenantOk() (*Tenant, bool) { +func (o *Device) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -290,8 +323,8 @@ func (o *Device) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Device) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Device) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -306,9 +339,9 @@ func (o *Device) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPlatform() Platform { +func (o *Device) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -317,7 +350,7 @@ func (o *Device) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPlatformOk() (*Platform, bool) { +func (o *Device) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -333,8 +366,8 @@ func (o *Device) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *Device) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *Device) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -424,9 +457,9 @@ func (o *Device) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *Device) GetSite() Site { +func (o *Device) GetSite() BriefSite { if o == nil || IsNil(o.Site) { - var ret Site + var ret BriefSite return ret } return *o.Site @@ -434,7 +467,7 @@ func (o *Device) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Device) GetSiteOk() (*Site, bool) { +func (o *Device) GetSiteOk() (*BriefSite, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -450,15 +483,15 @@ func (o *Device) HasSite() bool { return false } -// SetSite gets a reference to the given Site and assigns it to the Site field. -func (o *Device) SetSite(v Site) { +// SetSite gets a reference to the given BriefSite and assigns it to the Site field. +func (o *Device) SetSite(v BriefSite) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetLocation() Location { +func (o *Device) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -467,7 +500,7 @@ func (o *Device) GetLocation() Location { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetLocationOk() (*Location, bool) { +func (o *Device) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -483,8 +516,8 @@ func (o *Device) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *Device) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Device) SetLocation(v BriefLocation) { o.Location.Set(&v) } @@ -499,9 +532,9 @@ func (o *Device) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetRack() Rack { +func (o *Device) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -510,7 +543,7 @@ func (o *Device) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetRackOk() (*Rack, bool) { +func (o *Device) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -526,8 +559,8 @@ func (o *Device) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *Device) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *Device) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -810,9 +843,9 @@ func (o *Device) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp() IPAddress { +func (o *Device) GetPrimaryIp() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp.Get() @@ -821,7 +854,7 @@ func (o *Device) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *Device) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -837,8 +870,8 @@ func (o *Device) HasPrimaryIp() bool { return false } -// SetPrimaryIp gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp field. -func (o *Device) SetPrimaryIp(v IPAddress) { +// SetPrimaryIp gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp field. +func (o *Device) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } @@ -853,9 +886,9 @@ func (o *Device) UnsetPrimaryIp() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp4() IPAddress { +func (o *Device) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -864,7 +897,7 @@ func (o *Device) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -880,8 +913,8 @@ func (o *Device) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *Device) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *Device) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -896,9 +929,9 @@ func (o *Device) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetPrimaryIp6() IPAddress { +func (o *Device) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -907,7 +940,7 @@ func (o *Device) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *Device) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -923,8 +956,8 @@ func (o *Device) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *Device) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *Device) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -939,9 +972,9 @@ func (o *Device) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetOobIp() IPAddress { +func (o *Device) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -950,7 +983,7 @@ func (o *Device) GetOobIp() IPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetOobIpOk() (*IPAddress, bool) { +func (o *Device) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -966,8 +999,8 @@ func (o *Device) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *Device) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *Device) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } @@ -982,9 +1015,9 @@ func (o *Device) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetCluster() Cluster { +func (o *Device) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -993,7 +1026,7 @@ func (o *Device) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetClusterOk() (*Cluster, bool) { +func (o *Device) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -1009,8 +1042,8 @@ func (o *Device) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *Device) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *Device) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -1025,9 +1058,9 @@ func (o *Device) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetVirtualChassis() VirtualChassis { +func (o *Device) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1036,7 +1069,7 @@ func (o *Device) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *Device) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1052,8 +1085,8 @@ func (o *Device) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *Device) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *Device) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1210,9 +1243,9 @@ func (o *Device) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Device) GetConfigTemplate() ConfigTemplate { +func (o *Device) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1221,7 +1254,7 @@ func (o *Device) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Device) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *Device) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1237,8 +1270,8 @@ func (o *Device) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *Device) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Device) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1767,6 +1800,9 @@ func (o Device) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name.Get() if !IsNil(o.DeviceType) { @@ -1942,6 +1978,7 @@ func (o *Device) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_airflow.go b/model_device_airflow.go index b3812caae..3288a544b 100644 --- a/model_device_airflow.go +++ b/model_device_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_label.go b/model_device_airflow_label.go index 9d2429b94..b8442fd52 100644 --- a/model_device_airflow_label.go +++ b/model_device_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_airflow_value.go b/model_device_airflow_value.go index 9ff9281c9..78a17d587 100644 --- a/model_device_airflow_value.go +++ b/model_device_airflow_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_bay.go b/model_device_bay.go index ab35b6a54..ae9277ad8 100644 --- a/model_device_bay.go +++ b/model_device_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,16 @@ var _ MappedNullable = &DeviceBay{} // DeviceBay Adds support for custom fields and tags. type DeviceBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` - InstalledDevice NullableDevice `json:"installed_device,omitempty"` + InstalledDevice NullableBriefDevice `json:"installed_device,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -43,7 +44,7 @@ type _DeviceBay DeviceBay // 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 NewDeviceBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { +func NewDeviceBay(id int32, url string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *DeviceBay { this := DeviceBay{} this.Id = id this.Url = url @@ -111,6 +112,38 @@ func (o *DeviceBay) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceBay) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceBay) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceBay) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceBay) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceBay) GetDisplay() string { if o == nil { @@ -136,9 +169,9 @@ func (o *DeviceBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *DeviceBay) GetDevice() Device { +func (o *DeviceBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -147,7 +180,7 @@ func (o *DeviceBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBay) GetDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -155,7 +188,7 @@ func (o *DeviceBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *DeviceBay) SetDevice(v Device) { +func (o *DeviceBay) SetDevice(v BriefDevice) { o.Device = v } @@ -248,9 +281,9 @@ func (o *DeviceBay) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBay) GetInstalledDevice() Device { +func (o *DeviceBay) GetInstalledDevice() BriefDevice { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.InstalledDevice.Get() @@ -259,7 +292,7 @@ func (o *DeviceBay) GetInstalledDevice() Device { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBay) GetInstalledDeviceOk() (*Device, bool) { +func (o *DeviceBay) GetInstalledDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -275,8 +308,8 @@ func (o *DeviceBay) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDevice and assigns it to the InstalledDevice field. -func (o *DeviceBay) SetInstalledDevice(v Device) { +// SetInstalledDevice gets a reference to the given NullableBriefDevice and assigns it to the InstalledDevice field. +func (o *DeviceBay) SetInstalledDevice(v BriefDevice) { o.InstalledDevice.Set(&v) } @@ -418,6 +451,9 @@ func (o DeviceBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -489,6 +525,7 @@ func (o *DeviceBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_device_bay_request.go b/model_device_bay_request.go index 514b0172e..89ee9d7f2 100644 --- a/model_device_bay_request.go +++ b/model_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &DeviceBayRequest{} // DeviceBayRequest Adds support for custom fields and tags. type DeviceBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _DeviceBayRequest DeviceBayRequest // 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 NewDeviceBayRequest(device DeviceRequest, name string) *DeviceBayRequest { +func NewDeviceBayRequest(device BriefDeviceRequest, name string) *DeviceBayRequest { this := DeviceBayRequest{} this.Device = device this.Name = name @@ -53,9 +53,9 @@ func NewDeviceBayRequestWithDefaults() *DeviceBayRequest { } // GetDevice returns the Device field value -func (o *DeviceBayRequest) GetDevice() DeviceRequest { +func (o *DeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -64,7 +64,7 @@ func (o *DeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *DeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *DeviceBayRequest) SetDevice(v DeviceRequest) { +func (o *DeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -165,9 +165,9 @@ func (o *DeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *DeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -176,7 +176,7 @@ func (o *DeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *DeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -192,8 +192,8 @@ func (o *DeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *DeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *DeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_device_bay_template.go b/model_device_bay_template.go index 6ea0c9a93..d1c1b8227 100644 --- a/model_device_bay_template.go +++ b/model_device_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &DeviceBayTemplate{} // DeviceBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -41,7 +41,7 @@ type _DeviceBayTemplate DeviceBayTemplate // 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 NewDeviceBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { +func NewDeviceBayTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, created NullableTime, lastUpdated NullableTime) *DeviceBayTemplate { this := DeviceBayTemplate{} this.Id = id this.Url = url @@ -134,9 +134,9 @@ func (o *DeviceBayTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplate) GetDeviceType() DeviceType { +func (o *DeviceBayTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -145,7 +145,7 @@ func (o *DeviceBayTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -153,7 +153,7 @@ func (o *DeviceBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceBayTemplate) SetDeviceType(v DeviceType) { +func (o *DeviceBayTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } diff --git a/model_device_bay_template_request.go b/model_device_bay_template_request.go index b75a4eaa3..acb187250 100644 --- a/model_device_bay_template_request.go +++ b/model_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &DeviceBayTemplateRequest{} // DeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type DeviceBayTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -35,7 +35,7 @@ type _DeviceBayTemplateRequest DeviceBayTemplateRequest // 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 NewDeviceBayTemplateRequest(deviceType DeviceTypeRequest, name string) *DeviceBayTemplateRequest { +func NewDeviceBayTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *DeviceBayTemplateRequest { this := DeviceBayTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -51,9 +51,9 @@ func NewDeviceBayTemplateRequestWithDefaults() *DeviceBayTemplateRequest { } // GetDeviceType returns the DeviceType field value -func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -62,7 +62,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *DeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) } // SetDeviceType sets field value -func (o *DeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } diff --git a/model_device_face.go b/model_device_face.go index 380afa689..f38eedb6f 100644 --- a/model_device_face.go +++ b/model_device_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_label.go b/model_device_face_label.go index b74e4452a..8fa5d14c0 100644 --- a/model_device_face_label.go +++ b/model_device_face_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_face_value.go b/model_device_face_value.go index c693fb0de..c4d8c3eb3 100644 --- a/model_device_face_value.go +++ b/model_device_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_role.go b/model_device_role.go index bcd70a8fe..2ab652d39 100644 --- a/model_device_role.go +++ b/model_device_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DeviceRole type satisfies the MappedNullable interface at compile time @@ -20,14 +21,23 @@ var _ MappedNullable = &DeviceRole{} // DeviceRole Adds support for custom fields and tags. type DeviceRole struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Color *string `json:"color,omitempty"` + // Virtual machines may be assigned to this role + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +47,15 @@ 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, display string, name string, slug string) *DeviceRole { +func NewDeviceRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *DeviceRole { this := DeviceRole{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +115,38 @@ func (o *DeviceRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceRole) GetDisplay() string { if o == nil { @@ -175,6 +219,113 @@ func (o *DeviceRole) SetSlug(v string) { o.Slug = v } +// GetColor returns the Color field value if set, zero value otherwise. +func (o *DeviceRole) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *DeviceRole) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *DeviceRole) SetColor(v string) { + o.Color = &v +} + +// GetVmRole returns the VmRole field value if set, zero value otherwise. +func (o *DeviceRole) GetVmRole() bool { + if o == nil || IsNil(o.VmRole) { + var ret bool + return ret + } + return *o.VmRole +} + +// GetVmRoleOk returns a tuple with the VmRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetVmRoleOk() (*bool, bool) { + if o == nil || IsNil(o.VmRole) { + return nil, false + } + return o.VmRole, true +} + +// HasVmRole returns a boolean if a field has been set. +func (o *DeviceRole) HasVmRole() bool { + if o != nil && !IsNil(o.VmRole) { + return true + } + + return false +} + +// SetVmRole gets a reference to the given bool and assigns it to the VmRole field. +func (o *DeviceRole) SetVmRole(v bool) { + o.VmRole = &v +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceRole) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *DeviceRole) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceRole) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *DeviceRole) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *DeviceRole) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceRole) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +358,122 @@ func (o *DeviceRole) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceRole) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceRole) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *DeviceRole) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceRole) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceRole) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceRole) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceRole) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceRole) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DeviceRole) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceRole) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceRole) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DeviceRole) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceRole) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -283,12 +550,32 @@ func (o DeviceRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.VmRole) { + toSerialize["vm_role"] = o.VmRole + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -313,6 +600,8 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -344,10 +633,18 @@ func (o *DeviceRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "color") + delete(additionalProperties, "vm_role") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_device_role_request.go b/model_device_role_request.go index 111b389d1..02fb01e18 100644 --- a/model_device_role_request.go +++ b/model_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,11 +24,11 @@ type DeviceRoleRequest struct { Slug string `json:"slug"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -166,9 +166,9 @@ func (o *DeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -177,7 +177,7 @@ func (o *DeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *DeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_device_status.go b/model_device_status.go index 04e480442..c2757aac6 100644 --- a/model_device_status.go +++ b/model_device_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_label.go b/model_device_status_label.go index 4490be89a..422278963 100644 --- a/model_device_status_label.go +++ b/model_device_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_status_value.go b/model_device_status_value.go index 032b9b5b6..7974a5cd9 100644 --- a/model_device_status_value.go +++ b/model_device_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type.go b/model_device_type.go index 491bcc177..1f4944516 100644 --- a/model_device_type.go +++ b/model_device_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the DeviceType type satisfies the MappedNullable interface at compile time @@ -20,15 +21,45 @@ var _ MappedNullable = &DeviceType{} // DeviceType Adds support for custom fields and tags. type DeviceType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + DefaultPlatform NullableBriefPlatform `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + FrontImage NullableString `json:"front_image,omitempty"` + RearImage NullableString `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + ConsolePortTemplateCount int32 `json:"console_port_template_count"` + ConsoleServerPortTemplateCount int32 `json:"console_server_port_template_count"` + PowerPortTemplateCount int32 `json:"power_port_template_count"` + PowerOutletTemplateCount int32 `json:"power_outlet_template_count"` + InterfaceTemplateCount int32 `json:"interface_template_count"` + FrontPortTemplateCount int32 `json:"front_port_template_count"` + RearPortTemplateCount int32 `json:"rear_port_template_count"` + DeviceBayTemplateCount int32 `json:"device_bay_template_count"` + ModuleBayTemplateCount int32 `json:"module_bay_template_count"` + InventoryItemTemplateCount int32 `json:"inventory_item_template_count"` + AdditionalProperties map[string]interface{} } type _DeviceType DeviceType @@ -37,7 +68,7 @@ type _DeviceType DeviceType // 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 NewDeviceType(id int32, url string, display string, manufacturer Manufacturer, model string, slug string) *DeviceType { +func NewDeviceType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime, consolePortTemplateCount int32, consoleServerPortTemplateCount int32, powerPortTemplateCount int32, powerOutletTemplateCount int32, interfaceTemplateCount int32, frontPortTemplateCount int32, rearPortTemplateCount int32, deviceBayTemplateCount int32, moduleBayTemplateCount int32, inventoryItemTemplateCount int32) *DeviceType { this := DeviceType{} this.Id = id this.Url = url @@ -45,6 +76,20 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight + this.Created = created + this.LastUpdated = lastUpdated + this.ConsolePortTemplateCount = consolePortTemplateCount + this.ConsoleServerPortTemplateCount = consoleServerPortTemplateCount + this.PowerPortTemplateCount = powerPortTemplateCount + this.PowerOutletTemplateCount = powerOutletTemplateCount + this.InterfaceTemplateCount = interfaceTemplateCount + this.FrontPortTemplateCount = frontPortTemplateCount + this.RearPortTemplateCount = rearPortTemplateCount + this.DeviceBayTemplateCount = deviceBayTemplateCount + this.ModuleBayTemplateCount = moduleBayTemplateCount + this.InventoryItemTemplateCount = inventoryItemTemplateCount return &this } @@ -53,6 +98,8 @@ func NewDeviceType(id int32, url string, display string, manufacturer Manufactur // but it doesn't guarantee that properties required by API are set func NewDeviceTypeWithDefaults() *DeviceType { this := DeviceType{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -104,6 +151,38 @@ func (o *DeviceType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceType) GetDisplay() string { if o == nil { @@ -129,9 +208,9 @@ func (o *DeviceType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *DeviceType) GetManufacturer() Manufacturer { +func (o *DeviceType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -140,7 +219,7 @@ func (o *DeviceType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *DeviceType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -148,10 +227,53 @@ func (o *DeviceType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *DeviceType) SetManufacturer(v Manufacturer) { +func (o *DeviceType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetDefaultPlatform() BriefPlatform { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatform + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetDefaultPlatformOk() (*BriefPlatform, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceType) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatform and assigns it to the DefaultPlatform field. +func (o *DeviceType) SetDefaultPlatform(v BriefPlatform) { + o.DefaultPlatform.Set(&v) +} + +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceType) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceType) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceType) GetModel() string { if o == nil { @@ -200,6 +322,392 @@ func (o *DeviceType) SetSlug(v string) { o.Slug = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceType) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceType) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceType) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceType) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceType) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceType) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceType) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceType) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceType) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetSubdeviceRole() DeviceTypeSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetSubdeviceRoleOk() (*DeviceTypeSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceType) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceType) SetSubdeviceRole(v DeviceTypeSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} + +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceType) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceType) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetAirflow() DeviceTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetAirflowOk() (*DeviceTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeAirflow and assigns it to the Airflow field. +func (o *DeviceType) SetAirflow(v DeviceTypeAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *DeviceType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *DeviceType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetFrontImage() string { + if o == nil || IsNil(o.FrontImage.Get()) { + var ret string + return ret + } + return *o.FrontImage.Get() +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetFrontImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FrontImage.Get(), o.FrontImage.IsSet() +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceType) HasFrontImage() bool { + if o != nil && o.FrontImage.IsSet() { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given NullableString and assigns it to the FrontImage field. +func (o *DeviceType) SetFrontImage(v string) { + o.FrontImage.Set(&v) +} + +// SetFrontImageNil sets the value for FrontImage to be an explicit nil +func (o *DeviceType) SetFrontImageNil() { + o.FrontImage.Set(nil) +} + +// UnsetFrontImage ensures that no value is present for FrontImage, not even an explicit nil +func (o *DeviceType) UnsetFrontImage() { + o.FrontImage.Unset() +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceType) GetRearImage() string { + if o == nil || IsNil(o.RearImage.Get()) { + var ret string + return ret + } + return *o.RearImage.Get() +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetRearImageOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.RearImage.Get(), o.RearImage.IsSet() +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceType) HasRearImage() bool { + if o != nil && o.RearImage.IsSet() { + return true + } + + return false +} + +// SetRearImage gets a reference to the given NullableString and assigns it to the RearImage field. +func (o *DeviceType) SetRearImage(v string) { + o.RearImage.Set(&v) +} + +// SetRearImageNil sets the value for RearImage to be an explicit nil +func (o *DeviceType) SetRearImageNil() { + o.RearImage.Set(nil) +} + +// UnsetRearImage ensures that no value is present for RearImage, not even an explicit nil +func (o *DeviceType) UnsetRearImage() { + o.RearImage.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -232,6 +740,154 @@ func (o *DeviceType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *DeviceType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *DeviceType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *DeviceType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *DeviceType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *DeviceType) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -264,6 +920,246 @@ func (o *DeviceType) SetDeviceCount(v int64) { o.DeviceCount = &v } +// GetConsolePortTemplateCount returns the ConsolePortTemplateCount field value +func (o *DeviceType) GetConsolePortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsolePortTemplateCount +} + +// GetConsolePortTemplateCountOk returns a tuple with the ConsolePortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsolePortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsolePortTemplateCount, true +} + +// SetConsolePortTemplateCount sets field value +func (o *DeviceType) SetConsolePortTemplateCount(v int32) { + o.ConsolePortTemplateCount = v +} + +// GetConsoleServerPortTemplateCount returns the ConsoleServerPortTemplateCount field value +func (o *DeviceType) GetConsoleServerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ConsoleServerPortTemplateCount +} + +// GetConsoleServerPortTemplateCountOk returns a tuple with the ConsoleServerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetConsoleServerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ConsoleServerPortTemplateCount, true +} + +// SetConsoleServerPortTemplateCount sets field value +func (o *DeviceType) SetConsoleServerPortTemplateCount(v int32) { + o.ConsoleServerPortTemplateCount = v +} + +// GetPowerPortTemplateCount returns the PowerPortTemplateCount field value +func (o *DeviceType) GetPowerPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerPortTemplateCount +} + +// GetPowerPortTemplateCountOk returns a tuple with the PowerPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerPortTemplateCount, true +} + +// SetPowerPortTemplateCount sets field value +func (o *DeviceType) SetPowerPortTemplateCount(v int32) { + o.PowerPortTemplateCount = v +} + +// GetPowerOutletTemplateCount returns the PowerOutletTemplateCount field value +func (o *DeviceType) GetPowerOutletTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.PowerOutletTemplateCount +} + +// GetPowerOutletTemplateCountOk returns a tuple with the PowerOutletTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetPowerOutletTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.PowerOutletTemplateCount, true +} + +// SetPowerOutletTemplateCount sets field value +func (o *DeviceType) SetPowerOutletTemplateCount(v int32) { + o.PowerOutletTemplateCount = v +} + +// GetInterfaceTemplateCount returns the InterfaceTemplateCount field value +func (o *DeviceType) GetInterfaceTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InterfaceTemplateCount +} + +// GetInterfaceTemplateCountOk returns a tuple with the InterfaceTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInterfaceTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InterfaceTemplateCount, true +} + +// SetInterfaceTemplateCount sets field value +func (o *DeviceType) SetInterfaceTemplateCount(v int32) { + o.InterfaceTemplateCount = v +} + +// GetFrontPortTemplateCount returns the FrontPortTemplateCount field value +func (o *DeviceType) GetFrontPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.FrontPortTemplateCount +} + +// GetFrontPortTemplateCountOk returns a tuple with the FrontPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetFrontPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.FrontPortTemplateCount, true +} + +// SetFrontPortTemplateCount sets field value +func (o *DeviceType) SetFrontPortTemplateCount(v int32) { + o.FrontPortTemplateCount = v +} + +// GetRearPortTemplateCount returns the RearPortTemplateCount field value +func (o *DeviceType) GetRearPortTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.RearPortTemplateCount +} + +// GetRearPortTemplateCountOk returns a tuple with the RearPortTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetRearPortTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.RearPortTemplateCount, true +} + +// SetRearPortTemplateCount sets field value +func (o *DeviceType) SetRearPortTemplateCount(v int32) { + o.RearPortTemplateCount = v +} + +// GetDeviceBayTemplateCount returns the DeviceBayTemplateCount field value +func (o *DeviceType) GetDeviceBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.DeviceBayTemplateCount +} + +// GetDeviceBayTemplateCountOk returns a tuple with the DeviceBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetDeviceBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.DeviceBayTemplateCount, true +} + +// SetDeviceBayTemplateCount sets field value +func (o *DeviceType) SetDeviceBayTemplateCount(v int32) { + o.DeviceBayTemplateCount = v +} + +// GetModuleBayTemplateCount returns the ModuleBayTemplateCount field value +func (o *DeviceType) GetModuleBayTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.ModuleBayTemplateCount +} + +// GetModuleBayTemplateCountOk returns a tuple with the ModuleBayTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetModuleBayTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.ModuleBayTemplateCount, true +} + +// SetModuleBayTemplateCount sets field value +func (o *DeviceType) SetModuleBayTemplateCount(v int32) { + o.ModuleBayTemplateCount = v +} + +// GetInventoryItemTemplateCount returns the InventoryItemTemplateCount field value +func (o *DeviceType) GetInventoryItemTemplateCount() int32 { + if o == nil { + var ret int32 + return ret + } + + return o.InventoryItemTemplateCount +} + +// GetInventoryItemTemplateCountOk returns a tuple with the InventoryItemTemplateCount field value +// and a boolean to check if the value has been set. +func (o *DeviceType) GetInventoryItemTemplateCountOk() (*int32, bool) { + if o == nil { + return nil, false + } + return &o.InventoryItemTemplateCount, true +} + +// SetInventoryItemTemplateCount sets field value +func (o *DeviceType) SetInventoryItemTemplateCount(v int32) { + o.InventoryItemTemplateCount = v +} + func (o DeviceType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -276,16 +1172,73 @@ func (o DeviceType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if o.FrontImage.IsSet() { + toSerialize["front_image"] = o.FrontImage.Get() + } + if o.RearImage.IsSet() { + toSerialize["rear_image"] = o.RearImage.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } + toSerialize["console_port_template_count"] = o.ConsolePortTemplateCount + toSerialize["console_server_port_template_count"] = o.ConsoleServerPortTemplateCount + toSerialize["power_port_template_count"] = o.PowerPortTemplateCount + toSerialize["power_outlet_template_count"] = o.PowerOutletTemplateCount + toSerialize["interface_template_count"] = o.InterfaceTemplateCount + toSerialize["front_port_template_count"] = o.FrontPortTemplateCount + toSerialize["rear_port_template_count"] = o.RearPortTemplateCount + toSerialize["device_bay_template_count"] = o.DeviceBayTemplateCount + toSerialize["module_bay_template_count"] = o.ModuleBayTemplateCount + toSerialize["inventory_item_template_count"] = o.InventoryItemTemplateCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -305,6 +1258,18 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { "manufacturer", "model", "slug", + "created", + "last_updated", + "console_port_template_count", + "console_server_port_template_count", + "power_port_template_count", + "power_outlet_template_count", + "interface_template_count", + "front_port_template_count", + "rear_port_template_count", + "device_bay_template_count", + "module_bay_template_count", + "inventory_item_template_count", } allProperties := make(map[string]interface{}) @@ -336,12 +1301,39 @@ func (o *DeviceType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "console_port_template_count") + delete(additionalProperties, "console_server_port_template_count") + delete(additionalProperties, "power_port_template_count") + delete(additionalProperties, "power_outlet_template_count") + delete(additionalProperties, "interface_template_count") + delete(additionalProperties, "front_port_template_count") + delete(additionalProperties, "rear_port_template_count") + delete(additionalProperties, "device_bay_template_count") + delete(additionalProperties, "module_bay_template_count") + delete(additionalProperties, "inventory_item_template_count") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_airflow.go b/model_device_type_airflow.go index ee6c423c3..6319a06cc 100644 --- a/model_device_type_airflow.go +++ b/model_device_type_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_request.go b/model_device_type_request.go index f72377aaa..1f346ae36 100644 --- a/model_device_type_request.go +++ b/model_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "os" ) // checks if the DeviceTypeRequest type satisfies the MappedNullable interface at compile time @@ -20,10 +21,27 @@ var _ MappedNullable = &DeviceTypeRequest{} // DeviceTypeRequest Adds support for custom fields and tags. type DeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + UHeight *float64 `json:"u_height,omitempty"` + // Devices of this type are excluded when calculating rack utilization. + ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` + // Device consumes both front and rear rack faces. + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole NullableDeviceTypeRequestSubdeviceRole `json:"subdevice_role,omitempty"` + Airflow NullableDeviceTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -33,11 +51,13 @@ type _DeviceTypeRequest DeviceTypeRequest // 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 NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *DeviceTypeRequest { +func NewDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *DeviceTypeRequest { this := DeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model this.Slug = slug + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } @@ -46,13 +66,15 @@ func NewDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug s // but it doesn't guarantee that properties required by API are set func NewDeviceTypeRequestWithDefaults() *DeviceTypeRequest { this := DeviceTypeRequest{} + var uHeight float64 = 1.0 + this.UHeight = &uHeight return &this } // GetManufacturer returns the Manufacturer field value -func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *DeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -61,7 +83,7 @@ func (o *DeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *DeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -69,10 +91,53 @@ func (o *DeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *DeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *DeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } +// GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { + if o == nil || IsNil(o.DefaultPlatform.Get()) { + var ret BriefPlatformRequest + return ret + } + return *o.DefaultPlatform.Get() +} + +// GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { + if o == nil { + return nil, false + } + return o.DefaultPlatform.Get(), o.DefaultPlatform.IsSet() +} + +// HasDefaultPlatform returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasDefaultPlatform() bool { + if o != nil && o.DefaultPlatform.IsSet() { + return true + } + + return false +} + +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *DeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { + o.DefaultPlatform.Set(&v) +} + +// SetDefaultPlatformNil sets the value for DefaultPlatform to be an explicit nil +func (o *DeviceTypeRequest) SetDefaultPlatformNil() { + o.DefaultPlatform.Set(nil) +} + +// UnsetDefaultPlatform ensures that no value is present for DefaultPlatform, not even an explicit nil +func (o *DeviceTypeRequest) UnsetDefaultPlatform() { + o.DefaultPlatform.Unset() +} + // GetModel returns the Model field value func (o *DeviceTypeRequest) GetModel() string { if o == nil { @@ -121,6 +186,370 @@ func (o *DeviceTypeRequest) SetSlug(v string) { o.Slug = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *DeviceTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetUHeight() float64 { + if o == nil || IsNil(o.UHeight) { + var ret float64 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetUHeightOk() (*float64, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given float64 and assigns it to the UHeight field. +func (o *DeviceTypeRequest) SetUHeight(v float64) { + o.UHeight = &v +} + +// GetExcludeFromUtilization returns the ExcludeFromUtilization field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetExcludeFromUtilization() bool { + if o == nil || IsNil(o.ExcludeFromUtilization) { + var ret bool + return ret + } + return *o.ExcludeFromUtilization +} + +// GetExcludeFromUtilizationOk returns a tuple with the ExcludeFromUtilization field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetExcludeFromUtilizationOk() (*bool, bool) { + if o == nil || IsNil(o.ExcludeFromUtilization) { + return nil, false + } + return o.ExcludeFromUtilization, true +} + +// HasExcludeFromUtilization returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasExcludeFromUtilization() bool { + if o != nil && !IsNil(o.ExcludeFromUtilization) { + return true + } + + return false +} + +// SetExcludeFromUtilization gets a reference to the given bool and assigns it to the ExcludeFromUtilization field. +func (o *DeviceTypeRequest) SetExcludeFromUtilization(v bool) { + o.ExcludeFromUtilization = &v +} + +// GetIsFullDepth returns the IsFullDepth field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetIsFullDepth() bool { + if o == nil || IsNil(o.IsFullDepth) { + var ret bool + return ret + } + return *o.IsFullDepth +} + +// GetIsFullDepthOk returns a tuple with the IsFullDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetIsFullDepthOk() (*bool, bool) { + if o == nil || IsNil(o.IsFullDepth) { + return nil, false + } + return o.IsFullDepth, true +} + +// HasIsFullDepth returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasIsFullDepth() bool { + if o != nil && !IsNil(o.IsFullDepth) { + return true + } + + return false +} + +// SetIsFullDepth gets a reference to the given bool and assigns it to the IsFullDepth field. +func (o *DeviceTypeRequest) SetIsFullDepth(v bool) { + o.IsFullDepth = &v +} + +// GetSubdeviceRole returns the SubdeviceRole field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetSubdeviceRole() DeviceTypeRequestSubdeviceRole { + if o == nil || IsNil(o.SubdeviceRole.Get()) { + var ret DeviceTypeRequestSubdeviceRole + return ret + } + return *o.SubdeviceRole.Get() +} + +// GetSubdeviceRoleOk returns a tuple with the SubdeviceRole field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetSubdeviceRoleOk() (*DeviceTypeRequestSubdeviceRole, bool) { + if o == nil { + return nil, false + } + return o.SubdeviceRole.Get(), o.SubdeviceRole.IsSet() +} + +// HasSubdeviceRole returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasSubdeviceRole() bool { + if o != nil && o.SubdeviceRole.IsSet() { + return true + } + + return false +} + +// SetSubdeviceRole gets a reference to the given NullableDeviceTypeRequestSubdeviceRole and assigns it to the SubdeviceRole field. +func (o *DeviceTypeRequest) SetSubdeviceRole(v DeviceTypeRequestSubdeviceRole) { + o.SubdeviceRole.Set(&v) +} + +// SetSubdeviceRoleNil sets the value for SubdeviceRole to be an explicit nil +func (o *DeviceTypeRequest) SetSubdeviceRoleNil() { + o.SubdeviceRole.Set(nil) +} + +// UnsetSubdeviceRole ensures that no value is present for SubdeviceRole, not even an explicit nil +func (o *DeviceTypeRequest) UnsetSubdeviceRole() { + o.SubdeviceRole.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetAirflow() DeviceTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret DeviceTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetAirflowOk() (*DeviceTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableDeviceTypeRequestAirflow and assigns it to the Airflow field. +func (o *DeviceTypeRequest) SetAirflow(v DeviceTypeRequestAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *DeviceTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *DeviceTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *DeviceTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *DeviceTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *DeviceTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *DeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *DeviceTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *DeviceTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *DeviceTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetFrontImage returns the FrontImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetFrontImage() *os.File { + if o == nil || IsNil(o.FrontImage) { + var ret *os.File + return ret + } + return *o.FrontImage +} + +// GetFrontImageOk returns a tuple with the FrontImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetFrontImageOk() (**os.File, bool) { + if o == nil || IsNil(o.FrontImage) { + return nil, false + } + return o.FrontImage, true +} + +// HasFrontImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasFrontImage() bool { + if o != nil && !IsNil(o.FrontImage) { + return true + } + + return false +} + +// SetFrontImage gets a reference to the given *os.File and assigns it to the FrontImage field. +func (o *DeviceTypeRequest) SetFrontImage(v *os.File) { + o.FrontImage = &v +} + +// GetRearImage returns the RearImage field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetRearImage() *os.File { + if o == nil || IsNil(o.RearImage) { + var ret *os.File + return ret + } + return *o.RearImage +} + +// GetRearImageOk returns a tuple with the RearImage field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetRearImageOk() (**os.File, bool) { + if o == nil || IsNil(o.RearImage) { + return nil, false + } + return o.RearImage, true +} + +// HasRearImage returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasRearImage() bool { + if o != nil && !IsNil(o.RearImage) { + return true + } + + return false +} + +// SetRearImage gets a reference to the given *os.File and assigns it to the RearImage field. +func (o *DeviceTypeRequest) SetRearImage(v *os.File) { + o.RearImage = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *DeviceTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -153,6 +582,102 @@ func (o *DeviceTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *DeviceTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *DeviceTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *DeviceTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *DeviceTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *DeviceTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -164,11 +689,53 @@ func (o DeviceTypeRequest) MarshalJSON() ([]byte, error) { func (o DeviceTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer + if o.DefaultPlatform.IsSet() { + toSerialize["default_platform"] = o.DefaultPlatform.Get() + } toSerialize["model"] = o.Model toSerialize["slug"] = o.Slug + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.ExcludeFromUtilization) { + toSerialize["exclude_from_utilization"] = o.ExcludeFromUtilization + } + if !IsNil(o.IsFullDepth) { + toSerialize["is_full_depth"] = o.IsFullDepth + } + if o.SubdeviceRole.IsSet() { + toSerialize["subdevice_role"] = o.SubdeviceRole.Get() + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.FrontImage) { + toSerialize["front_image"] = o.FrontImage + } + if !IsNil(o.RearImage) { + toSerialize["rear_image"] = o.RearImage + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -215,9 +782,23 @@ func (o *DeviceTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") + delete(additionalProperties, "default_platform") delete(additionalProperties, "model") delete(additionalProperties, "slug") + delete(additionalProperties, "part_number") + delete(additionalProperties, "u_height") + delete(additionalProperties, "exclude_from_utilization") + delete(additionalProperties, "is_full_depth") + delete(additionalProperties, "subdevice_role") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "front_image") + delete(additionalProperties, "rear_image") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_device_type_request_airflow.go b/model_device_type_request_airflow.go index 2808adfe4..e13b5ef39 100644 --- a/model_device_type_request_airflow.go +++ b/model_device_type_request_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_request_subdevice_role.go b/model_device_type_request_subdevice_role.go index b53b882fc..8902b8b2e 100644 --- a/model_device_type_request_subdevice_role.go +++ b/model_device_type_request_subdevice_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_request_weight_unit.go b/model_device_type_request_weight_unit.go index c3c8d1968..ae2a76626 100644 --- a/model_device_type_request_weight_unit.go +++ b/model_device_type_request_weight_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_subdevice_role.go b/model_device_type_subdevice_role.go index 46b5a8f68..a85d78a52 100644 --- a/model_device_type_subdevice_role.go +++ b/model_device_type_subdevice_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_subdevice_role_label.go b/model_device_type_subdevice_role_label.go index 043957dca..5f6ab1c43 100644 --- a/model_device_type_subdevice_role_label.go +++ b/model_device_type_subdevice_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_subdevice_role_value.go b/model_device_type_subdevice_role_value.go index 2b9833779..6f977259f 100644 --- a/model_device_type_subdevice_role_value.go +++ b/model_device_type_subdevice_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_weight_unit.go b/model_device_type_weight_unit.go index 422695824..ef38ce9aa 100644 --- a/model_device_type_weight_unit.go +++ b/model_device_type_weight_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_weight_unit_label.go b/model_device_type_weight_unit_label.go index 20a3372ce..0344e8a6f 100644 --- a/model_device_type_weight_unit_label.go +++ b/model_device_type_weight_unit_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_type_weight_unit_value.go b/model_device_type_weight_unit_value.go index eb0590007..0afdd0c8e 100644 --- a/model_device_type_weight_unit_value.go +++ b/model_device_type_weight_unit_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_device_with_config_context.go b/model_device_with_config_context.go index f4dfc538e..dbc075797 100644 --- a/model_device_with_config_context.go +++ b/model_device_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,43 +21,44 @@ var _ MappedNullable = &DeviceWithConfigContext{} // DeviceWithConfigContext Adds support for custom fields and tags. type DeviceWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name NullableString `json:"name,omitempty"` - DeviceType DeviceType `json:"device_type"` - Role DeviceRole `json:"role"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceType `json:"device_type"` + Role BriefDeviceRole `json:"role"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site Site `json:"site"` - Location NullableLocation `json:"location,omitempty"` - Rack NullableRack `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFace `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Rack NullableBriefRack `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFace `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - ParentDevice NullableNestedDevice `json:"parent_device"` - Status *DeviceStatus `json:"status,omitempty"` - Airflow *DeviceAirflow `json:"airflow,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - OobIp NullableIPAddress `json:"oob_ip,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassis `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + ParentDevice NullableNestedDevice `json:"parent_device"` + Status *DeviceStatus `json:"status,omitempty"` + Airflow *DeviceAirflow `json:"airflow,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddress `json:"oob_ip,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassis `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` - ConfigContext interface{} `json:"config_context"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + ConfigContext interface{} `json:"config_context"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -83,7 +84,7 @@ type _DeviceWithConfigContext DeviceWithConfigContext // 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 NewDeviceWithConfigContext(id int32, url string, display string, deviceType DeviceType, role DeviceRole, site Site, parentDevice NullableNestedDevice, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { +func NewDeviceWithConfigContext(id int32, url string, display string, deviceType BriefDeviceType, role BriefDeviceRole, site BriefSite, parentDevice NullableNestedDevice, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, consolePortCount int32, consoleServerPortCount int32, powerPortCount int32, powerOutletCount int32, interfaceCount int32, frontPortCount int32, rearPortCount int32, deviceBayCount int32, moduleBayCount int32, inventoryItemCount int32) *DeviceWithConfigContext { this := DeviceWithConfigContext{} this.Id = id this.Url = url @@ -165,6 +166,38 @@ func (o *DeviceWithConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *DeviceWithConfigContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *DeviceWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *DeviceWithConfigContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *DeviceWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *DeviceWithConfigContext) GetDisplay() string { if o == nil { @@ -233,9 +266,9 @@ func (o *DeviceWithConfigContext) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { +func (o *DeviceWithConfigContext) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -244,7 +277,7 @@ func (o *DeviceWithConfigContext) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -252,14 +285,14 @@ func (o *DeviceWithConfigContext) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *DeviceWithConfigContext) SetDeviceType(v DeviceType) { +func (o *DeviceWithConfigContext) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContext) GetRole() DeviceRole { +func (o *DeviceWithConfigContext) GetRole() BriefDeviceRole { if o == nil { - var ret DeviceRole + var ret BriefDeviceRole return ret } @@ -268,7 +301,7 @@ func (o *DeviceWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *DeviceWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -276,14 +309,14 @@ func (o *DeviceWithConfigContext) GetRoleOk() (*DeviceRole, bool) { } // SetRole sets field value -func (o *DeviceWithConfigContext) SetRole(v DeviceRole) { +func (o *DeviceWithConfigContext) SetRole(v BriefDeviceRole) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetTenant() Tenant { +func (o *DeviceWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -292,7 +325,7 @@ func (o *DeviceWithConfigContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *DeviceWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -308,8 +341,8 @@ func (o *DeviceWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *DeviceWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *DeviceWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -324,9 +357,9 @@ func (o *DeviceWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPlatform() Platform { +func (o *DeviceWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -335,7 +368,7 @@ func (o *DeviceWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *DeviceWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -351,8 +384,8 @@ func (o *DeviceWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *DeviceWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *DeviceWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -442,9 +475,9 @@ func (o *DeviceWithConfigContext) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContext) GetSite() Site { +func (o *DeviceWithConfigContext) GetSite() BriefSite { if o == nil { - var ret Site + var ret BriefSite return ret } @@ -453,7 +486,7 @@ func (o *DeviceWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *DeviceWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -461,14 +494,14 @@ func (o *DeviceWithConfigContext) GetSiteOk() (*Site, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContext) SetSite(v Site) { +func (o *DeviceWithConfigContext) SetSite(v BriefSite) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetLocation() Location { +func (o *DeviceWithConfigContext) GetLocation() BriefLocation { if o == nil || IsNil(o.Location.Get()) { - var ret Location + var ret BriefLocation return ret } return *o.Location.Get() @@ -477,7 +510,7 @@ func (o *DeviceWithConfigContext) GetLocation() Location { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetLocationOk() (*Location, bool) { +func (o *DeviceWithConfigContext) GetLocationOk() (*BriefLocation, bool) { if o == nil { return nil, false } @@ -493,8 +526,8 @@ func (o *DeviceWithConfigContext) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocation and assigns it to the Location field. -func (o *DeviceWithConfigContext) SetLocation(v Location) { +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *DeviceWithConfigContext) SetLocation(v BriefLocation) { o.Location.Set(&v) } @@ -509,9 +542,9 @@ func (o *DeviceWithConfigContext) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetRack() Rack { +func (o *DeviceWithConfigContext) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -520,7 +553,7 @@ func (o *DeviceWithConfigContext) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetRackOk() (*Rack, bool) { +func (o *DeviceWithConfigContext) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -536,8 +569,8 @@ func (o *DeviceWithConfigContext) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *DeviceWithConfigContext) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *DeviceWithConfigContext) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -803,10 +836,10 @@ func (o *DeviceWithConfigContext) SetAirflow(v DeviceAirflow) { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *DeviceWithConfigContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -816,7 +849,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -824,14 +857,14 @@ func (o *DeviceWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *DeviceWithConfigContext) SetPrimaryIp(v IPAddress) { +func (o *DeviceWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -840,7 +873,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -856,8 +889,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -872,9 +905,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *DeviceWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -883,7 +916,7 @@ func (o *DeviceWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -899,8 +932,8 @@ func (o *DeviceWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -915,9 +948,9 @@ func (o *DeviceWithConfigContext) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetOobIp() IPAddress { +func (o *DeviceWithConfigContext) GetOobIp() BriefIPAddress { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OobIp.Get() @@ -926,7 +959,7 @@ func (o *DeviceWithConfigContext) GetOobIp() IPAddress { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetOobIpOk() (*IPAddress, bool) { +func (o *DeviceWithConfigContext) GetOobIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -942,8 +975,8 @@ func (o *DeviceWithConfigContext) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddress and assigns it to the OobIp field. -func (o *DeviceWithConfigContext) SetOobIp(v IPAddress) { +// SetOobIp gets a reference to the given NullableBriefIPAddress and assigns it to the OobIp field. +func (o *DeviceWithConfigContext) SetOobIp(v BriefIPAddress) { o.OobIp.Set(&v) } @@ -958,9 +991,9 @@ func (o *DeviceWithConfigContext) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetCluster() Cluster { +func (o *DeviceWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -969,7 +1002,7 @@ func (o *DeviceWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *DeviceWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -985,8 +1018,8 @@ func (o *DeviceWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *DeviceWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *DeviceWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -1001,9 +1034,9 @@ func (o *DeviceWithConfigContext) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { +func (o *DeviceWithConfigContext) GetVirtualChassis() BriefVirtualChassis { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassis + var ret BriefVirtualChassis return ret } return *o.VirtualChassis.Get() @@ -1012,7 +1045,7 @@ func (o *DeviceWithConfigContext) GetVirtualChassis() VirtualChassis { // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*VirtualChassis, bool) { +func (o *DeviceWithConfigContext) GetVirtualChassisOk() (*BriefVirtualChassis, bool) { if o == nil { return nil, false } @@ -1028,8 +1061,8 @@ func (o *DeviceWithConfigContext) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassis and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContext) SetVirtualChassis(v VirtualChassis) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassis and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContext) SetVirtualChassis(v BriefVirtualChassis) { o.VirtualChassis.Set(&v) } @@ -1194,9 +1227,9 @@ func (o *DeviceWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *DeviceWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -1205,7 +1238,7 @@ func (o *DeviceWithConfigContext) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *DeviceWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -1221,8 +1254,8 @@ func (o *DeviceWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1663,6 +1696,9 @@ func (o DeviceWithConfigContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -1827,6 +1863,7 @@ func (o *DeviceWithConfigContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device_type") diff --git a/model_device_with_config_context_request.go b/model_device_with_config_context_request.go index b259fc842..242b52a7b 100644 --- a/model_device_with_config_context_request.go +++ b/model_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &DeviceWithConfigContextRequest{} // DeviceWithConfigContextRequest Adds support for custom fields and tags. type DeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *DeviceFaceValue `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *DeviceFaceValue `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _DeviceWithConfigContextRequest DeviceWithConfigContextRequest // 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 NewDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest) *DeviceWithConfigContextRequest { +func NewDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest) *DeviceWithConfigContextRequest { this := DeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -124,9 +124,9 @@ func (o *DeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *DeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -135,7 +135,7 @@ func (o *DeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -143,14 +143,14 @@ func (o *DeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, } // SetDeviceType sets field value -func (o *DeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *DeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *DeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -159,7 +159,7 @@ func (o *DeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -167,14 +167,14 @@ func (o *DeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) } // SetRole sets field value -func (o *DeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *DeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *DeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -183,7 +183,7 @@ func (o *DeviceWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -199,8 +199,8 @@ func (o *DeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *DeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *DeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -215,9 +215,9 @@ func (o *DeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *DeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -226,7 +226,7 @@ func (o *DeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -242,8 +242,8 @@ func (o *DeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *DeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *DeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -333,9 +333,9 @@ func (o *DeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *DeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -344,7 +344,7 @@ func (o *DeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -352,14 +352,14 @@ func (o *DeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *DeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *DeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *DeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -368,7 +368,7 @@ func (o *DeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -384,8 +384,8 @@ func (o *DeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *DeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *DeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -400,9 +400,9 @@ func (o *DeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *DeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -411,7 +411,7 @@ func (o *DeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -427,8 +427,8 @@ func (o *DeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *DeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *DeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -668,9 +668,9 @@ func (o *DeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue) { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -679,7 +679,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -695,8 +695,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -711,9 +711,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -722,7 +722,7 @@ func (o *DeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -738,8 +738,8 @@ func (o *DeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *DeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -754,9 +754,9 @@ func (o *DeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *DeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -765,7 +765,7 @@ func (o *DeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -781,8 +781,8 @@ func (o *DeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *DeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *DeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -797,9 +797,9 @@ func (o *DeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *DeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -808,7 +808,7 @@ func (o *DeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -824,8 +824,8 @@ func (o *DeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *DeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *DeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -840,9 +840,9 @@ func (o *DeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *DeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -851,7 +851,7 @@ func (o *DeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisReque // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -867,8 +867,8 @@ func (o *DeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *DeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1033,9 +1033,9 @@ func (o *DeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *DeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1044,7 +1044,7 @@ func (o *DeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateReque // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *DeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1060,8 +1060,8 @@ func (o *DeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *DeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_encryption.go b/model_encryption.go index 718a00acd..dd4249036 100644 --- a/model_encryption.go +++ b/model_encryption.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,33 +15,33 @@ import ( "fmt" ) -// Encryption * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +// Encryption the model 'Encryption' type Encryption string // List of Encryption const ( + ENCRYPTION_EMPTY Encryption = "" + ENCRYPTION__3DES_CBC Encryption = "3des-cbc" ENCRYPTION_AES_128_CBC Encryption = "aes-128-cbc" ENCRYPTION_AES_128_GCM Encryption = "aes-128-gcm" ENCRYPTION_AES_192_CBC Encryption = "aes-192-cbc" ENCRYPTION_AES_192_GCM Encryption = "aes-192-gcm" ENCRYPTION_AES_256_CBC Encryption = "aes-256-cbc" ENCRYPTION_AES_256_GCM Encryption = "aes-256-gcm" - ENCRYPTION__3DES_CBC Encryption = "3des-cbc" ENCRYPTION_DES_CBC Encryption = "des-cbc" - ENCRYPTION_EMPTY Encryption = "" ) // All allowed values of Encryption enum var AllowedEncryptionEnumValues = []Encryption{ + "", + "3des-cbc", "aes-128-cbc", "aes-128-gcm", "aes-192-cbc", "aes-192-gcm", "aes-256-cbc", "aes-256-gcm", - "3des-cbc", "des-cbc", - "", } func (v *Encryption) UnmarshalJSON(src []byte) error { diff --git a/model_end.go b/model_end.go index e5ba360cb..cd649d001 100644 --- a/model_end.go +++ b/model_end.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_end_1.go b/model_end_1.go index b71fc25b1..423eb8d93 100644 --- a/model_end_1.go +++ b/model_end_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event.go b/model_event.go index 95efbf9e7..1c0a0b2b7 100644 --- a/model_event.go +++ b/model_event.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event_rule.go b/model_event_rule.go index b3f5d4e41..2dba63560 100644 --- a/model_event_rule.go +++ b/model_event_rule.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,20 +23,13 @@ var _ MappedNullable = &EventRule{} type EventRule struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType EventRuleActionType `json:"action_type"` @@ -57,13 +50,14 @@ type _EventRule EventRule // 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 NewEventRule(id int32, url string, display string, objectTypes []string, name string, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { +func NewEventRule(id int32, url string, display string, objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionType, actionObjectType string, actionObject map[string]interface{}, created NullableTime, lastUpdated NullableTime) *EventRule { this := EventRule{} this.Id = id this.Url = url this.Display = display this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType this.ActionObject = actionObject @@ -128,6 +122,38 @@ func (o *EventRule) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *EventRule) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *EventRule) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *EventRule) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *EventRule) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *EventRule) GetDisplay() string { if o == nil { @@ -200,166 +226,6 @@ func (o *EventRule) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRule) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRule) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRule) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRule) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRule) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRule) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRule) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRule) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRule) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRule) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRule) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRule) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRule) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRule) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRule) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -392,6 +258,30 @@ func (o *EventRule) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRule) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRule) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRule) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRule) GetConditions() interface{} { if o == nil { @@ -700,27 +590,16 @@ func (o EventRule) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -759,6 +638,7 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { "display", "object_types", "name", + "event_types", "action_type", "action_object_type", "action_object", @@ -795,15 +675,12 @@ func (o *EventRule) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_event_rule_action_type.go b/model_event_rule_action_type.go index 1c8cb0534..f9d69032c 100644 --- a/model_event_rule_action_type.go +++ b/model_event_rule_action_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event_rule_action_type_label.go b/model_event_rule_action_type_label.go index d58423d47..992c4740e 100644 --- a/model_event_rule_action_type_label.go +++ b/model_event_rule_action_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,16 @@ type EventRuleActionTypeLabel string // List of EventRule_action_type_label const ( - EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" - EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" + EVENTRULEACTIONTYPELABEL_WEBHOOK EventRuleActionTypeLabel = "Webhook" + EVENTRULEACTIONTYPELABEL_SCRIPT EventRuleActionTypeLabel = "Script" + EVENTRULEACTIONTYPELABEL_NOTIFICATION EventRuleActionTypeLabel = "Notification" ) // All allowed values of EventRuleActionTypeLabel enum var AllowedEventRuleActionTypeLabelEnumValues = []EventRuleActionTypeLabel{ "Webhook", "Script", + "Notification", } func (v *EventRuleActionTypeLabel) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_action_type_value.go b/model_event_rule_action_type_value.go index 9c309b8d2..3abc24088 100644 --- a/model_event_rule_action_type_value.go +++ b/model_event_rule_action_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,19 +15,21 @@ import ( "fmt" ) -// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script +// EventRuleActionTypeValue * `webhook` - Webhook * `script` - Script * `notification` - Notification type EventRuleActionTypeValue string // List of EventRule_action_type_value const ( - EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" - EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_WEBHOOK EventRuleActionTypeValue = "webhook" + EVENTRULEACTIONTYPEVALUE_SCRIPT EventRuleActionTypeValue = "script" + EVENTRULEACTIONTYPEVALUE_NOTIFICATION EventRuleActionTypeValue = "notification" ) // All allowed values of EventRuleActionTypeValue enum var AllowedEventRuleActionTypeValueEnumValues = []EventRuleActionTypeValue{ "webhook", "script", + "notification", } func (v *EventRuleActionTypeValue) UnmarshalJSON(src []byte) error { diff --git a/model_event_rule_event_types_inner.go b/model_event_rule_event_types_inner.go index f73381c4c..cb5b3b57c 100644 --- a/model_event_rule_event_types_inner.go +++ b/model_event_rule_event_types_inner.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_event_rule_request.go b/model_event_rule_request.go index e9a76def0..ee72a95d6 100644 --- a/model_event_rule_request.go +++ b/model_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,17 +22,9 @@ var _ MappedNullable = &EventRuleRequest{} type EventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType EventRuleActionTypeValue `json:"action_type"` @@ -50,10 +42,11 @@ type _EventRuleRequest EventRuleRequest // 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 NewEventRuleRequest(objectTypes []string, name string, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { +func NewEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionType EventRuleActionTypeValue, actionObjectType string) *EventRuleRequest { this := EventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionType = actionType this.ActionObjectType = actionObjectType return &this @@ -115,166 +108,6 @@ func (o *EventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *EventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *EventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *EventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *EventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *EventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *EventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *EventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *EventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *EventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -307,6 +140,30 @@ func (o *EventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *EventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *EventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *EventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *EventRuleRequest) GetConditions() interface{} { if o == nil { @@ -539,24 +396,10 @@ func (o EventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -589,6 +432,7 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_type", "action_object_type", } @@ -622,12 +466,8 @@ func (o *EventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_export_template.go b/model_export_template.go index e034604cd..7bee30fc6 100644 --- a/model_export_template.go +++ b/model_export_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ExportTemplate{} type ExportTemplate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -34,14 +35,14 @@ type ExportTemplate struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSource `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSource `json:"data_source,omitempty"` // Path to remote file (relative to data source root) - DataPath string `json:"data_path"` - DataFile DataFile `json:"data_file"` - DataSynced NullableTime `json:"data_synced"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + DataPath string `json:"data_path"` + DataFile BriefDataFile `json:"data_file"` + DataSynced NullableTime `json:"data_synced"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -51,7 +52,7 @@ type _ExportTemplate ExportTemplate // 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 NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile DataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { +func NewExportTemplate(id int32, url string, display string, objectTypes []string, name string, templateCode string, dataPath string, dataFile BriefDataFile, dataSynced NullableTime, created NullableTime, lastUpdated NullableTime) *ExportTemplate { this := ExportTemplate{} this.Id = id this.Url = url @@ -123,6 +124,38 @@ func (o *ExportTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ExportTemplate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ExportTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ExportTemplate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ExportTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ExportTemplate) GetDisplay() string { if o == nil { @@ -348,9 +381,9 @@ func (o *ExportTemplate) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplate) GetDataSource() DataSource { +func (o *ExportTemplate) GetDataSource() BriefDataSource { if o == nil || IsNil(o.DataSource) { - var ret DataSource + var ret BriefDataSource return ret } return *o.DataSource @@ -358,7 +391,7 @@ func (o *ExportTemplate) GetDataSource() DataSource { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataSourceOk() (*DataSource, bool) { +func (o *ExportTemplate) GetDataSourceOk() (*BriefDataSource, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -374,8 +407,8 @@ func (o *ExportTemplate) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSource and assigns it to the DataSource field. -func (o *ExportTemplate) SetDataSource(v DataSource) { +// SetDataSource gets a reference to the given BriefDataSource and assigns it to the DataSource field. +func (o *ExportTemplate) SetDataSource(v BriefDataSource) { o.DataSource = &v } @@ -404,9 +437,9 @@ func (o *ExportTemplate) SetDataPath(v string) { } // GetDataFile returns the DataFile field value -func (o *ExportTemplate) GetDataFile() DataFile { +func (o *ExportTemplate) GetDataFile() BriefDataFile { if o == nil { - var ret DataFile + var ret BriefDataFile return ret } @@ -415,7 +448,7 @@ func (o *ExportTemplate) GetDataFile() DataFile { // GetDataFileOk returns a tuple with the DataFile field value // and a boolean to check if the value has been set. -func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { +func (o *ExportTemplate) GetDataFileOk() (*BriefDataFile, bool) { if o == nil { return nil, false } @@ -423,7 +456,7 @@ func (o *ExportTemplate) GetDataFileOk() (*DataFile, bool) { } // SetDataFile sets field value -func (o *ExportTemplate) SetDataFile(v DataFile) { +func (o *ExportTemplate) SetDataFile(v BriefDataFile) { o.DataFile = v } @@ -517,6 +550,9 @@ func (o ExportTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -596,6 +632,7 @@ func (o *ExportTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_export_template_request.go b/model_export_template_request.go index 16e3ea6a5..5c4bcbccc 100644 --- a/model_export_template_request.go +++ b/model_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,8 @@ type ExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -258,9 +258,9 @@ func (o *ExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *ExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -268,7 +268,7 @@ func (o *ExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *ExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -284,8 +284,8 @@ func (o *ExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *ExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *ExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go index 549d77f70..69c82cc92 100644 --- a/model_extras_custom_field_choice_sets_list_base_choices_parameter.go +++ b/model_extras_custom_field_choice_sets_list_base_choices_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_filter_logic_parameter.go b/model_extras_custom_fields_list_filter_logic_parameter.go index e06b57950..5c543c63c 100644 --- a/model_extras_custom_fields_list_filter_logic_parameter.go +++ b/model_extras_custom_fields_list_filter_logic_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_editable_parameter.go b/model_extras_custom_fields_list_ui_editable_parameter.go index 507235fe9..2d5a8133d 100644 --- a/model_extras_custom_fields_list_ui_editable_parameter.go +++ b/model_extras_custom_fields_list_ui_editable_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_fields_list_ui_visible_parameter.go b/model_extras_custom_fields_list_ui_visible_parameter.go index 47e4aaa2b..f53cf7287 100644 --- a/model_extras_custom_fields_list_ui_visible_parameter.go +++ b/model_extras_custom_fields_list_ui_visible_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_extras_custom_links_list_button_class_parameter.go b/model_extras_custom_links_list_button_class_parameter.go index db3b288e9..9e5fa1486 100644 --- a/model_extras_custom_links_list_button_class_parameter.go +++ b/model_extras_custom_links_list_button_class_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,21 +20,21 @@ type ExtrasCustomLinksListButtonClassParameter string // List of extras_custom_links_list_button_class_parameter const ( - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_OUTLINE_DARK ExtrasCustomLinksListButtonClassParameter = "outline-dark" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" - EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLACK ExtrasCustomLinksListButtonClassParameter = "black" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_BLUE ExtrasCustomLinksListButtonClassParameter = "blue" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_CYAN ExtrasCustomLinksListButtonClassParameter = "cyan" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_DEFAULT ExtrasCustomLinksListButtonClassParameter = "default" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GHOST_DARK ExtrasCustomLinksListButtonClassParameter = "ghost-dark" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GRAY ExtrasCustomLinksListButtonClassParameter = "gray" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_GREEN ExtrasCustomLinksListButtonClassParameter = "green" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_INDIGO ExtrasCustomLinksListButtonClassParameter = "indigo" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_ORANGE ExtrasCustomLinksListButtonClassParameter = "orange" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PINK ExtrasCustomLinksListButtonClassParameter = "pink" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_PURPLE ExtrasCustomLinksListButtonClassParameter = "purple" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_RED ExtrasCustomLinksListButtonClassParameter = "red" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_TEAL ExtrasCustomLinksListButtonClassParameter = "teal" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_WHITE ExtrasCustomLinksListButtonClassParameter = "white" + EXTRASCUSTOMLINKSLISTBUTTONCLASSPARAMETER_YELLOW ExtrasCustomLinksListButtonClassParameter = "yellow" ) // All allowed values of ExtrasCustomLinksListButtonClassParameter enum @@ -42,12 +42,12 @@ var AllowedExtrasCustomLinksListButtonClassParameterEnumValues = []ExtrasCustomL "black", "blue", "cyan", + "default", "ghost-dark", "gray", "green", "indigo", "orange", - "outline-dark", "pink", "purple", "red", diff --git a/model_fhrp_group.go b/model_fhrp_group.go index edddea0c1..19db82ca0 100644 --- a/model_fhrp_group.go +++ b/model_fhrp_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the FHRPGroup type satisfies the MappedNullable interface at compile time @@ -20,12 +21,22 @@ var _ MappedNullable = &FHRPGroup{} // FHRPGroup Adds support for custom fields and tags. type FHRPGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Name *string `json:"name,omitempty"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType *AuthenticationType2 `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpAddresses []BriefIPAddress `json:"ip_addresses"` AdditionalProperties map[string]interface{} } @@ -35,13 +46,16 @@ type _FHRPGroup FHRPGroup // 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 NewFHRPGroup(id int32, url string, display string, protocol FHRPGroupProtocol, groupId int32) *FHRPGroup { +func NewFHRPGroup(id int32, url string, display string, protocol BriefFHRPGroupProtocol, groupId int32, created NullableTime, lastUpdated NullableTime, ipAddresses []BriefIPAddress) *FHRPGroup { this := FHRPGroup{} this.Id = id this.Url = url this.Display = display this.Protocol = protocol this.GroupId = groupId + this.Created = created + this.LastUpdated = lastUpdated + this.IpAddresses = ipAddresses return &this } @@ -77,6 +91,38 @@ func (o *FHRPGroup) SetId(v int32) { o.Id = v } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroup) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FHRPGroup) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FHRPGroup) SetName(v string) { + o.Name = &v +} + // GetUrl returns the Url field value func (o *FHRPGroup) GetUrl() string { if o == nil { @@ -101,6 +147,38 @@ func (o *FHRPGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *FHRPGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *FHRPGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *FHRPGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *FHRPGroup) GetDisplay() string { if o == nil { @@ -126,9 +204,9 @@ func (o *FHRPGroup) SetDisplay(v string) { } // GetProtocol returns the Protocol field value -func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroup) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -137,7 +215,7 @@ func (o *FHRPGroup) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroup) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -145,7 +223,7 @@ func (o *FHRPGroup) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroup) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroup) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } @@ -173,6 +251,70 @@ func (o *FHRPGroup) SetGroupId(v int32) { o.GroupId = v } +// GetAuthType returns the AuthType field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthType() AuthenticationType2 { + if o == nil || IsNil(o.AuthType) { + var ret AuthenticationType2 + return ret + } + return *o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthTypeOk() (*AuthenticationType2, bool) { + if o == nil || IsNil(o.AuthType) { + return nil, false + } + return o.AuthType, true +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthType() bool { + if o != nil && !IsNil(o.AuthType) { + return true + } + + return false +} + +// SetAuthType gets a reference to the given AuthenticationType2 and assigns it to the AuthType field. +func (o *FHRPGroup) SetAuthType(v AuthenticationType2) { + o.AuthType = &v +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroup) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroup) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroup) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +347,178 @@ func (o *FHRPGroup) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroup) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroup) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroup) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FHRPGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *FHRPGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *FHRPGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *FHRPGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *FHRPGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FHRPGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *FHRPGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *FHRPGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *FHRPGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *FHRPGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetIpAddresses returns the IpAddresses field value +func (o *FHRPGroup) GetIpAddresses() []BriefIPAddress { + if o == nil { + var ret []BriefIPAddress + return ret + } + + return o.IpAddresses +} + +// GetIpAddressesOk returns a tuple with the IpAddresses field value +// and a boolean to check if the value has been set. +func (o *FHRPGroup) GetIpAddressesOk() ([]BriefIPAddress, bool) { + if o == nil { + return nil, false + } + return o.IpAddresses, true +} + +// SetIpAddresses sets field value +func (o *FHRPGroup) SetIpAddresses(v []BriefIPAddress) { + o.IpAddresses = v +} + func (o FHRPGroup) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -216,13 +530,37 @@ func (o FHRPGroup) MarshalJSON() ([]byte, error) { func (o FHRPGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if !IsNil(o.AuthType) { + toSerialize["auth_type"] = o.AuthType + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["ip_addresses"] = o.IpAddresses for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,6 +579,9 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { "display", "protocol", "group_id", + "created", + "last_updated", + "ip_addresses", } allProperties := make(map[string]interface{}) @@ -271,11 +612,21 @@ func (o *FHRPGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") + delete(additionalProperties, "name") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ip_addresses") o.AdditionalProperties = additionalProperties } diff --git a/model_fhrp_group_assignment.go b/model_fhrp_group_assignment.go index d81aefa15..a39300c8c 100644 --- a/model_fhrp_group_assignment.go +++ b/model_fhrp_group_assignment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,16 @@ var _ MappedNullable = &FHRPGroupAssignment{} // FHRPGroupAssignment Adds support for custom fields and tags. type FHRPGroupAssignment struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Group FHRPGroup `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Interface interface{} `json:"interface"` - Priority int32 `json:"priority"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + Group BriefFHRPGroup `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Interface interface{} `json:"interface"` + Priority int32 `json:"priority"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FHRPGroupAssignment FHRPGroupAssignment // 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 NewFHRPGroupAssignment(id int32, url string, display string, group FHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { +func NewFHRPGroupAssignment(id int32, url string, display string, group BriefFHRPGroup, interfaceType string, interfaceId int64, interface_ interface{}, priority int32, created NullableTime, lastUpdated NullableTime) *FHRPGroupAssignment { this := FHRPGroupAssignment{} this.Id = id this.Url = url @@ -136,9 +136,9 @@ func (o *FHRPGroupAssignment) SetDisplay(v string) { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { +func (o *FHRPGroupAssignment) GetGroup() BriefFHRPGroup { if o == nil { - var ret FHRPGroup + var ret BriefFHRPGroup return ret } @@ -147,7 +147,7 @@ func (o *FHRPGroupAssignment) GetGroup() FHRPGroup { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { +func (o *FHRPGroupAssignment) GetGroupOk() (*BriefFHRPGroup, bool) { if o == nil { return nil, false } @@ -155,7 +155,7 @@ func (o *FHRPGroupAssignment) GetGroupOk() (*FHRPGroup, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignment) SetGroup(v FHRPGroup) { +func (o *FHRPGroupAssignment) SetGroup(v BriefFHRPGroup) { o.Group = v } diff --git a/model_fhrp_group_assignment_request.go b/model_fhrp_group_assignment_request.go index fda4826a1..2425b4147 100644 --- a/model_fhrp_group_assignment_request.go +++ b/model_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &FHRPGroupAssignmentRequest{} // FHRPGroupAssignmentRequest Adds support for custom fields and tags. type FHRPGroupAssignmentRequest struct { - Group FHRPGroupRequest `json:"group"` - InterfaceType string `json:"interface_type"` - InterfaceId int64 `json:"interface_id"` - Priority int32 `json:"priority"` + Group BriefFHRPGroupRequest `json:"group"` + InterfaceType string `json:"interface_type"` + InterfaceId int64 `json:"interface_id"` + Priority int32 `json:"priority"` AdditionalProperties map[string]interface{} } @@ -33,7 +33,7 @@ type _FHRPGroupAssignmentRequest FHRPGroupAssignmentRequest // 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 NewFHRPGroupAssignmentRequest(group FHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { +func NewFHRPGroupAssignmentRequest(group BriefFHRPGroupRequest, interfaceType string, interfaceId int64, priority int32) *FHRPGroupAssignmentRequest { this := FHRPGroupAssignmentRequest{} this.Group = group this.InterfaceType = interfaceType @@ -51,9 +51,9 @@ func NewFHRPGroupAssignmentRequestWithDefaults() *FHRPGroupAssignmentRequest { } // GetGroup returns the Group field value -func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *FHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } @@ -62,7 +62,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value // and a boolean to check if the value has been set. -func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil { return nil, false } @@ -70,7 +70,7 @@ func (o *FHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { } // SetGroup sets field value -func (o *FHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +func (o *FHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = v } diff --git a/model_fhrp_group_request.go b/model_fhrp_group_request.go index a3fbe2568..ff193a595 100644 --- a/model_fhrp_group_request.go +++ b/model_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,15 @@ var _ MappedNullable = &FHRPGroupRequest{} // FHRPGroupRequest Adds support for custom fields and tags. type FHRPGroupRequest struct { - Protocol FHRPGroupProtocol `json:"protocol"` - GroupId int32 `json:"group_id"` - Description *string `json:"description,omitempty"` + Name *string `json:"name,omitempty"` + Protocol BriefFHRPGroupProtocol `json:"protocol"` + GroupId int32 `json:"group_id"` + AuthType *AuthenticationType2 `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +38,7 @@ type _FHRPGroupRequest FHRPGroupRequest // 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 NewFHRPGroupRequest(protocol FHRPGroupProtocol, groupId int32) *FHRPGroupRequest { +func NewFHRPGroupRequest(protocol BriefFHRPGroupProtocol, groupId int32) *FHRPGroupRequest { this := FHRPGroupRequest{} this.Protocol = protocol this.GroupId = groupId @@ -47,10 +53,42 @@ func NewFHRPGroupRequestWithDefaults() *FHRPGroupRequest { return &this } +// GetName returns the Name field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetName() string { + if o == nil || IsNil(o.Name) { + var ret string + return ret + } + return *o.Name +} + +// GetNameOk returns a tuple with the Name field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetNameOk() (*string, bool) { + if o == nil || IsNil(o.Name) { + return nil, false + } + return o.Name, true +} + +// HasName returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasName() bool { + if o != nil && !IsNil(o.Name) { + return true + } + + return false +} + +// SetName gets a reference to the given string and assigns it to the Name field. +func (o *FHRPGroupRequest) SetName(v string) { + o.Name = &v +} + // GetProtocol returns the Protocol field value -func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *FHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } @@ -59,7 +97,7 @@ func (o *FHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value // and a boolean to check if the value has been set. -func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *FHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil { return nil, false } @@ -67,7 +105,7 @@ func (o *FHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { } // SetProtocol sets field value -func (o *FHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +func (o *FHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = v } @@ -95,6 +133,70 @@ func (o *FHRPGroupRequest) SetGroupId(v int32) { o.GroupId = v } +// GetAuthType returns the AuthType field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthType() AuthenticationType2 { + if o == nil || IsNil(o.AuthType) { + var ret AuthenticationType2 + return ret + } + return *o.AuthType +} + +// GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType2, bool) { + if o == nil || IsNil(o.AuthType) { + return nil, false + } + return o.AuthType, true +} + +// HasAuthType returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthType() bool { + if o != nil && !IsNil(o.AuthType) { + return true + } + + return false +} + +// SetAuthType gets a reference to the given AuthenticationType2 and assigns it to the AuthType field. +func (o *FHRPGroupRequest) SetAuthType(v AuthenticationType2) { + o.AuthType = &v +} + +// GetAuthKey returns the AuthKey field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetAuthKey() string { + if o == nil || IsNil(o.AuthKey) { + var ret string + return ret + } + return *o.AuthKey +} + +// GetAuthKeyOk returns a tuple with the AuthKey field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetAuthKeyOk() (*string, bool) { + if o == nil || IsNil(o.AuthKey) { + return nil, false + } + return o.AuthKey, true +} + +// HasAuthKey returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasAuthKey() bool { + if o != nil && !IsNil(o.AuthKey) { + return true + } + + return false +} + +// SetAuthKey gets a reference to the given string and assigns it to the AuthKey field. +func (o *FHRPGroupRequest) SetAuthKey(v string) { + o.AuthKey = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *FHRPGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +229,102 @@ func (o *FHRPGroupRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *FHRPGroupRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *FHRPGroupRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *FHRPGroupRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FHRPGroupRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *FHRPGroupRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *FHRPGroupRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -137,11 +335,29 @@ func (o FHRPGroupRequest) MarshalJSON() ([]byte, error) { func (o FHRPGroupRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if !IsNil(o.Name) { + toSerialize["name"] = o.Name + } toSerialize["protocol"] = o.Protocol toSerialize["group_id"] = o.GroupId + if !IsNil(o.AuthType) { + toSerialize["auth_type"] = o.AuthType + } + if !IsNil(o.AuthKey) { + toSerialize["auth_key"] = o.AuthKey + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -186,9 +402,15 @@ func (o *FHRPGroupRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "name") delete(additionalProperties, "protocol") delete(additionalProperties, "group_id") + delete(additionalProperties, "auth_type") + delete(additionalProperties, "auth_key") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_front_port.go b/model_front_port.go index 14255269d..31813a002 100644 --- a/model_front_port.go +++ b/model_front_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &FrontPort{} // FrontPort Adds support for custom fields and tags. type FrontPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortType `json:"type"` @@ -36,12 +37,12 @@ type FrontPort struct { RearPortPosition *int32 `json:"rear_port_position,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -56,7 +57,7 @@ type _FrontPort FrontPort // 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 NewFrontPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { +func NewFrontPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, rearPort FrontPortRearPort, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *FrontPort { this := FrontPort{} this.Id = id this.Url = url @@ -135,6 +136,38 @@ func (o *FrontPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *FrontPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrontPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *FrontPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *FrontPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *FrontPort) GetDisplay() string { if o == nil { @@ -160,9 +193,9 @@ func (o *FrontPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *FrontPort) GetDevice() Device { +func (o *FrontPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -171,7 +204,7 @@ func (o *FrontPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPort) GetDeviceOk() (*Device, bool) { +func (o *FrontPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -179,14 +212,14 @@ func (o *FrontPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *FrontPort) SetDevice(v Device) { +func (o *FrontPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPort) GetModule() Module { +func (o *FrontPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -195,7 +228,7 @@ func (o *FrontPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetModuleOk() (*Module, bool) { +func (o *FrontPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -211,8 +244,8 @@ func (o *FrontPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *FrontPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *FrontPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -459,10 +492,10 @@ func (o *FrontPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *FrontPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *FrontPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -472,7 +505,7 @@ func (o *FrontPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPort) GetCableOk() (*Cable, bool) { +func (o *FrontPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -480,7 +513,7 @@ func (o *FrontPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *FrontPort) SetCable(v Cable) { +func (o *FrontPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -533,27 +566,29 @@ func (o *FrontPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *FrontPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *FrontPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *FrontPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -708,6 +743,9 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -734,7 +772,7 @@ func (o FrontPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -802,6 +840,7 @@ func (o *FrontPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_front_port_rear_port.go b/model_front_port_rear_port.go index bfddbbc62..aaf618fef 100644 --- a/model_front_port_rear_port.go +++ b/model_front_port_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ var _ MappedNullable = &FrontPortRearPort{} // FrontPortRearPort NestedRearPortSerializer but with parent device omitted (since front and rear ports must belong to same device) type FrontPortRearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Description *string `json:"description,omitempty"` @@ -101,6 +102,38 @@ func (o *FrontPortRearPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *FrontPortRearPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *FrontPortRearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *FrontPortRearPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *FrontPortRearPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *FrontPortRearPort) GetDisplay() string { if o == nil { @@ -225,6 +258,9 @@ func (o FrontPortRearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Label) { @@ -281,6 +317,7 @@ func (o *FrontPortRearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "label") diff --git a/model_front_port_rear_port_request.go b/model_front_port_rear_port_request.go index efa9119db..81e6f5556 100644 --- a/model_front_port_rear_port_request.go +++ b/model_front_port_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_request.go b/model_front_port_request.go index b3cc287bb..20573b6b1 100644 --- a/model_front_port_request.go +++ b/model_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &FrontPortRequest{} // FrontPortRequest Adds support for custom fields and tags. type FrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -44,7 +44,7 @@ type _FrontPortRequest FrontPortRequest // 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 NewFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { +func NewFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort FrontPortRearPortRequest) *FrontPortRequest { this := FrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewFrontPortRequestWithDefaults() *FrontPortRequest { } // GetDevice returns the Device field value -func (o *FrontPortRequest) GetDevice() DeviceRequest { +func (o *FrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *FrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *FrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *FrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *FrontPortRequest) SetDevice(v DeviceRequest) { +func (o *FrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortRequest) GetModule() ModuleRequest { +func (o *FrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *FrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *FrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *FrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *FrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *FrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_front_port_template.go b/model_front_port_template.go index 66ed54500..884e9159e 100644 --- a/model_front_port_template.go +++ b/model_front_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,22 +21,22 @@ var _ MappedNullable = &FrontPortTemplate{} // FrontPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortType `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplate `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplate `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -46,7 +46,7 @@ type _FrontPortTemplate FrontPortTemplate // 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 NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort RearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { +func NewFrontPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, rearPort BriefRearPortTemplate, created NullableTime, lastUpdated NullableTime) *FrontPortTemplate { this := FrontPortTemplate{} this.Id = id this.Url = url @@ -144,9 +144,9 @@ func (o *FrontPortTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetDeviceType() DeviceType { +func (o *FrontPortTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -155,7 +155,7 @@ func (o *FrontPortTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *FrontPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -171,8 +171,8 @@ func (o *FrontPortTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *FrontPortTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *FrontPortTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -187,9 +187,9 @@ func (o *FrontPortTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplate) GetModuleType() ModuleType { +func (o *FrontPortTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -198,7 +198,7 @@ func (o *FrontPortTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *FrontPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *FrontPortTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *FrontPortTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *FrontPortTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } @@ -342,9 +342,9 @@ func (o *FrontPortTemplate) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { +func (o *FrontPortTemplate) GetRearPort() BriefRearPortTemplate { if o == nil { - var ret RearPortTemplate + var ret BriefRearPortTemplate return ret } @@ -353,7 +353,7 @@ func (o *FrontPortTemplate) GetRearPort() RearPortTemplate { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { +func (o *FrontPortTemplate) GetRearPortOk() (*BriefRearPortTemplate, bool) { if o == nil { return nil, false } @@ -361,7 +361,7 @@ func (o *FrontPortTemplate) GetRearPortOk() (*RearPortTemplate, bool) { } // SetRearPort sets field value -func (o *FrontPortTemplate) SetRearPort(v RearPortTemplate) { +func (o *FrontPortTemplate) SetRearPort(v BriefRearPortTemplate) { o.RearPort = v } diff --git a/model_front_port_template_request.go b/model_front_port_template_request.go index 995c21f99..a1aca5e90 100644 --- a/model_front_port_template_request.go +++ b/model_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &FrontPortTemplateRequest{} // FrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type FrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _FrontPortTemplateRequest FrontPortTemplateRequest // 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 NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *FrontPortTemplateRequest { +func NewFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *FrontPortTemplateRequest { this := FrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,9 @@ func NewFrontPortTemplateRequestWithDefaults() *FrontPortTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *FrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *FrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *FrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *FrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *FrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *FrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *FrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *FrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *FrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *FrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *FrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *FrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *FrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *FrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *FrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *FrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *FrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bo } // SetRearPort sets field value -func (o *FrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *FrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } diff --git a/model_front_port_type.go b/model_front_port_type.go index 17d119046..0425a7568 100644 --- a/model_front_port_type.go +++ b/model_front_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_front_port_type_label.go b/model_front_port_type_label.go index 88117ae3a..a40c0fdfa 100644 --- a/model_front_port_type_label.go +++ b/model_front_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,53 +20,61 @@ type FrontPortTypeLabel string // List of FrontPort_type_label const ( - FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" - FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" - FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" - FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" - FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" - FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" - FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" - FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" - FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" - FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" - FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" - FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" - FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" - FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" - FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" - FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" - FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" - FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" - FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" - FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" - FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" - FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" - FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" - FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" - FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" - FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" - FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" - FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" - FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" - FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" - FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" - FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" - FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" - FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" - FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" - FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" - FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" - FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" - FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" - FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" - FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" - FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" - FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" - FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" - FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" - FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" - FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" + FRONTPORTTYPELABEL__8_P8_C FrontPortTypeLabel = "8P8C" + FRONTPORTTYPELABEL__8_P6_C FrontPortTypeLabel = "8P6C" + FRONTPORTTYPELABEL__8_P4_C FrontPortTypeLabel = "8P4C" + FRONTPORTTYPELABEL__8_P2_C FrontPortTypeLabel = "8P2C" + FRONTPORTTYPELABEL__6_P6_C FrontPortTypeLabel = "6P6C" + FRONTPORTTYPELABEL__6_P4_C FrontPortTypeLabel = "6P4C" + FRONTPORTTYPELABEL__6_P2_C FrontPortTypeLabel = "6P2C" + FRONTPORTTYPELABEL__4_P4_C FrontPortTypeLabel = "4P4C" + FRONTPORTTYPELABEL__4_P2_C FrontPortTypeLabel = "4P2C" + FRONTPORTTYPELABEL_GG45 FrontPortTypeLabel = "GG45" + FRONTPORTTYPELABEL_TERA_4_P FrontPortTypeLabel = "TERA 4P" + FRONTPORTTYPELABEL_TERA_2_P FrontPortTypeLabel = "TERA 2P" + FRONTPORTTYPELABEL_TERA_1_P FrontPortTypeLabel = "TERA 1P" + FRONTPORTTYPELABEL__110_PUNCH FrontPortTypeLabel = "110 Punch" + FRONTPORTTYPELABEL_BNC FrontPortTypeLabel = "BNC" + FRONTPORTTYPELABEL_F_CONNECTOR FrontPortTypeLabel = "F Connector" + FRONTPORTTYPELABEL_N_CONNECTOR FrontPortTypeLabel = "N Connector" + FRONTPORTTYPELABEL_MRJ21 FrontPortTypeLabel = "MRJ21" + FRONTPORTTYPELABEL_FC FrontPortTypeLabel = "FC" + FRONTPORTTYPELABEL_LC FrontPortTypeLabel = "LC" + FRONTPORTTYPELABEL_LC_PC FrontPortTypeLabel = "LC/PC" + FRONTPORTTYPELABEL_LC_UPC FrontPortTypeLabel = "LC/UPC" + FRONTPORTTYPELABEL_LC_APC FrontPortTypeLabel = "LC/APC" + FRONTPORTTYPELABEL_LSH FrontPortTypeLabel = "LSH" + FRONTPORTTYPELABEL_LSH_PC FrontPortTypeLabel = "LSH/PC" + FRONTPORTTYPELABEL_LSH_UPC FrontPortTypeLabel = "LSH/UPC" + FRONTPORTTYPELABEL_LSH_APC FrontPortTypeLabel = "LSH/APC" + FRONTPORTTYPELABEL_LX_5 FrontPortTypeLabel = "LX.5" + FRONTPORTTYPELABEL_LX_5_PC FrontPortTypeLabel = "LX.5/PC" + FRONTPORTTYPELABEL_LX_5_UPC FrontPortTypeLabel = "LX.5/UPC" + FRONTPORTTYPELABEL_LX_5_APC FrontPortTypeLabel = "LX.5/APC" + FRONTPORTTYPELABEL_MPO FrontPortTypeLabel = "MPO" + FRONTPORTTYPELABEL_MTRJ FrontPortTypeLabel = "MTRJ" + FRONTPORTTYPELABEL_SC FrontPortTypeLabel = "SC" + FRONTPORTTYPELABEL_SC_PC FrontPortTypeLabel = "SC/PC" + FRONTPORTTYPELABEL_SC_UPC FrontPortTypeLabel = "SC/UPC" + FRONTPORTTYPELABEL_SC_APC FrontPortTypeLabel = "SC/APC" + FRONTPORTTYPELABEL_ST FrontPortTypeLabel = "ST" + FRONTPORTTYPELABEL_CS FrontPortTypeLabel = "CS" + FRONTPORTTYPELABEL_SN FrontPortTypeLabel = "SN" + FRONTPORTTYPELABEL_SMA_905 FrontPortTypeLabel = "SMA 905" + FRONTPORTTYPELABEL_SMA_906 FrontPortTypeLabel = "SMA 906" + FRONTPORTTYPELABEL_URM_P2 FrontPortTypeLabel = "URM-P2" + FRONTPORTTYPELABEL_URM_P4 FrontPortTypeLabel = "URM-P4" + FRONTPORTTYPELABEL_URM_P8 FrontPortTypeLabel = "URM-P8" + FRONTPORTTYPELABEL_SPLICE FrontPortTypeLabel = "Splice" + FRONTPORTTYPELABEL_USB_TYPE_A FrontPortTypeLabel = "USB Type A" + FRONTPORTTYPELABEL_USB_TYPE_B FrontPortTypeLabel = "USB Type B" + FRONTPORTTYPELABEL_USB_TYPE_C FrontPortTypeLabel = "USB Type C" + FRONTPORTTYPELABEL_USB_MINI_A FrontPortTypeLabel = "USB Mini A" + FRONTPORTTYPELABEL_USB_MINI_B FrontPortTypeLabel = "USB Mini B" + FRONTPORTTYPELABEL_USB_MICRO_A FrontPortTypeLabel = "USB Micro A" + FRONTPORTTYPELABEL_USB_MICRO_B FrontPortTypeLabel = "USB Micro B" + FRONTPORTTYPELABEL_USB_MICRO_AB FrontPortTypeLabel = "USB Micro AB" + FRONTPORTTYPELABEL_OTHER FrontPortTypeLabel = "Other" ) // All allowed values of FrontPortTypeLabel enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeLabelEnumValues = []FrontPortTypeLabel{ "URM-P4", "URM-P8", "Splice", + "USB Type A", + "USB Type B", + "USB Type C", + "USB Mini A", + "USB Mini B", + "USB Micro A", + "USB Micro B", + "USB Micro AB", "Other", } diff --git a/model_front_port_type_value.go b/model_front_port_type_value.go index 55f3bf9e5..00eae8054 100644 --- a/model_front_port_type_value.go +++ b/model_front_port_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,58 +15,66 @@ import ( "fmt" ) -// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `other` - Other +// FrontPortTypeValue * `8p8c` - 8P8C * `8p6c` - 8P6C * `8p4c` - 8P4C * `8p2c` - 8P2C * `6p6c` - 6P6C * `6p4c` - 6P4C * `6p2c` - 6P2C * `4p4c` - 4P4C * `4p2c` - 4P2C * `gg45` - GG45 * `tera-4p` - TERA 4P * `tera-2p` - TERA 2P * `tera-1p` - TERA 1P * `110-punch` - 110 Punch * `bnc` - BNC * `f` - F Connector * `n` - N Connector * `mrj21` - MRJ21 * `fc` - FC * `lc` - LC * `lc-pc` - LC/PC * `lc-upc` - LC/UPC * `lc-apc` - LC/APC * `lsh` - LSH * `lsh-pc` - LSH/PC * `lsh-upc` - LSH/UPC * `lsh-apc` - LSH/APC * `lx5` - LX.5 * `lx5-pc` - LX.5/PC * `lx5-upc` - LX.5/UPC * `lx5-apc` - LX.5/APC * `mpo` - MPO * `mtrj` - MTRJ * `sc` - SC * `sc-pc` - SC/PC * `sc-upc` - SC/UPC * `sc-apc` - SC/APC * `st` - ST * `cs` - CS * `sn` - SN * `sma-905` - SMA 905 * `sma-906` - SMA 906 * `urm-p2` - URM-P2 * `urm-p4` - URM-P4 * `urm-p8` - URM-P8 * `splice` - Splice * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `other` - Other type FrontPortTypeValue string // List of FrontPort_type_value const ( - FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" - FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" - FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" - FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" - FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" - FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" - FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" - FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" - FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" - FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" - FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" - FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" - FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" - FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" - FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" - FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" - FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" - FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" - FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" - FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" - FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" - FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" - FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" - FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" - FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" - FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" - FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" - FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" - FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" - FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" - FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" - FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" - FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" - FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" - FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" - FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" - FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" - FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" - FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" - FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" - FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" - FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" - FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" - FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" - FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" - FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" - FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" + FRONTPORTTYPEVALUE__8P8C FrontPortTypeValue = "8p8c" + FRONTPORTTYPEVALUE__8P6C FrontPortTypeValue = "8p6c" + FRONTPORTTYPEVALUE__8P4C FrontPortTypeValue = "8p4c" + FRONTPORTTYPEVALUE__8P2C FrontPortTypeValue = "8p2c" + FRONTPORTTYPEVALUE__6P6C FrontPortTypeValue = "6p6c" + FRONTPORTTYPEVALUE__6P4C FrontPortTypeValue = "6p4c" + FRONTPORTTYPEVALUE__6P2C FrontPortTypeValue = "6p2c" + FRONTPORTTYPEVALUE__4P4C FrontPortTypeValue = "4p4c" + FRONTPORTTYPEVALUE__4P2C FrontPortTypeValue = "4p2c" + FRONTPORTTYPEVALUE_GG45 FrontPortTypeValue = "gg45" + FRONTPORTTYPEVALUE_TERA_4P FrontPortTypeValue = "tera-4p" + FRONTPORTTYPEVALUE_TERA_2P FrontPortTypeValue = "tera-2p" + FRONTPORTTYPEVALUE_TERA_1P FrontPortTypeValue = "tera-1p" + FRONTPORTTYPEVALUE__110_PUNCH FrontPortTypeValue = "110-punch" + FRONTPORTTYPEVALUE_BNC FrontPortTypeValue = "bnc" + FRONTPORTTYPEVALUE_F FrontPortTypeValue = "f" + FRONTPORTTYPEVALUE_N FrontPortTypeValue = "n" + FRONTPORTTYPEVALUE_MRJ21 FrontPortTypeValue = "mrj21" + FRONTPORTTYPEVALUE_FC FrontPortTypeValue = "fc" + FRONTPORTTYPEVALUE_LC FrontPortTypeValue = "lc" + FRONTPORTTYPEVALUE_LC_PC FrontPortTypeValue = "lc-pc" + FRONTPORTTYPEVALUE_LC_UPC FrontPortTypeValue = "lc-upc" + FRONTPORTTYPEVALUE_LC_APC FrontPortTypeValue = "lc-apc" + FRONTPORTTYPEVALUE_LSH FrontPortTypeValue = "lsh" + FRONTPORTTYPEVALUE_LSH_PC FrontPortTypeValue = "lsh-pc" + FRONTPORTTYPEVALUE_LSH_UPC FrontPortTypeValue = "lsh-upc" + FRONTPORTTYPEVALUE_LSH_APC FrontPortTypeValue = "lsh-apc" + FRONTPORTTYPEVALUE_LX5 FrontPortTypeValue = "lx5" + FRONTPORTTYPEVALUE_LX5_PC FrontPortTypeValue = "lx5-pc" + FRONTPORTTYPEVALUE_LX5_UPC FrontPortTypeValue = "lx5-upc" + FRONTPORTTYPEVALUE_LX5_APC FrontPortTypeValue = "lx5-apc" + FRONTPORTTYPEVALUE_MPO FrontPortTypeValue = "mpo" + FRONTPORTTYPEVALUE_MTRJ FrontPortTypeValue = "mtrj" + FRONTPORTTYPEVALUE_SC FrontPortTypeValue = "sc" + FRONTPORTTYPEVALUE_SC_PC FrontPortTypeValue = "sc-pc" + FRONTPORTTYPEVALUE_SC_UPC FrontPortTypeValue = "sc-upc" + FRONTPORTTYPEVALUE_SC_APC FrontPortTypeValue = "sc-apc" + FRONTPORTTYPEVALUE_ST FrontPortTypeValue = "st" + FRONTPORTTYPEVALUE_CS FrontPortTypeValue = "cs" + FRONTPORTTYPEVALUE_SN FrontPortTypeValue = "sn" + FRONTPORTTYPEVALUE_SMA_905 FrontPortTypeValue = "sma-905" + FRONTPORTTYPEVALUE_SMA_906 FrontPortTypeValue = "sma-906" + FRONTPORTTYPEVALUE_URM_P2 FrontPortTypeValue = "urm-p2" + FRONTPORTTYPEVALUE_URM_P4 FrontPortTypeValue = "urm-p4" + FRONTPORTTYPEVALUE_URM_P8 FrontPortTypeValue = "urm-p8" + FRONTPORTTYPEVALUE_SPLICE FrontPortTypeValue = "splice" + FRONTPORTTYPEVALUE_USB_A FrontPortTypeValue = "usb-a" + FRONTPORTTYPEVALUE_USB_B FrontPortTypeValue = "usb-b" + FRONTPORTTYPEVALUE_USB_C FrontPortTypeValue = "usb-c" + FRONTPORTTYPEVALUE_USB_MINI_A FrontPortTypeValue = "usb-mini-a" + FRONTPORTTYPEVALUE_USB_MINI_B FrontPortTypeValue = "usb-mini-b" + FRONTPORTTYPEVALUE_USB_MICRO_A FrontPortTypeValue = "usb-micro-a" + FRONTPORTTYPEVALUE_USB_MICRO_B FrontPortTypeValue = "usb-micro-b" + FRONTPORTTYPEVALUE_USB_MICRO_AB FrontPortTypeValue = "usb-micro-ab" + FRONTPORTTYPEVALUE_OTHER FrontPortTypeValue = "other" ) // All allowed values of FrontPortTypeValue enum @@ -117,6 +125,14 @@ var AllowedFrontPortTypeValueEnumValues = []FrontPortTypeValue{ "urm-p4", "urm-p8", "splice", + "usb-a", + "usb-b", + "usb-c", + "usb-mini-a", + "usb-mini-b", + "usb-micro-a", + "usb-micro-b", + "usb-micro-ab", "other", } diff --git a/model_generic_object.go b/model_generic_object.go index e40ac1015..c453a8e23 100644 --- a/model_generic_object.go +++ b/model_generic_object.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_generic_object_request.go b/model_generic_object_request.go index af5fa0e13..d038941e3 100644 --- a/model_generic_object_request.go +++ b/model_generic_object_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_group.go b/model_group.go index cc0cb78e9..90be05e37 100644 --- a/model_group.go +++ b/model_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &Group{} type Group struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -102,6 +103,38 @@ func (o *Group) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Group) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Group) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Group) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Group) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Group) GetDisplay() string { if o == nil { @@ -250,6 +283,9 @@ func (o Group) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -308,6 +344,7 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_group_request.go b/model_group_request.go index a3b3fc4d9..c4b44e9c5 100644 --- a/model_group_request.go +++ b/model_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy.go b/model_ike_policy.go index 60a132594..3b43cb382 100644 --- a/model_ike_policy.go +++ b/model_ike_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,12 @@ var _ MappedNullable = &IKEPolicy{} type IKEPolicy struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersion `json:"version"` - Mode IKEPolicyMode `json:"mode"` + Mode *IKEPolicyMode `json:"mode,omitempty"` Proposals []IKEProposal `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -44,14 +45,13 @@ type _IKEPolicy IKEPolicy // 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 NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, mode IKEPolicyMode, created NullableTime, lastUpdated NullableTime) *IKEPolicy { +func NewIKEPolicy(id int32, url string, display string, name string, version IKEPolicyVersion, created NullableTime, lastUpdated NullableTime) *IKEPolicy { this := IKEPolicy{} this.Id = id this.Url = url this.Display = display this.Name = name this.Version = version - this.Mode = mode this.Created = created this.LastUpdated = lastUpdated return &this @@ -113,6 +113,38 @@ func (o *IKEPolicy) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IKEPolicy) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IKEPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IKEPolicy) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IKEPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IKEPolicy) GetDisplay() string { if o == nil { @@ -217,28 +249,36 @@ func (o *IKEPolicy) SetVersion(v IKEPolicyVersion) { o.Version = v } -// GetMode returns the Mode field value +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicy) GetMode() IKEPolicyMode { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyMode return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicy) GetModeOk() (*IKEPolicyMode, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicy) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false } -// SetMode sets field value +// SetMode gets a reference to the given IKEPolicyMode and assigns it to the Mode field. func (o *IKEPolicy) SetMode(v IKEPolicyMode) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -465,13 +505,18 @@ func (o IKEPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -507,7 +552,6 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { "display", "name", "version", - "mode", "created", "last_updated", } @@ -541,6 +585,7 @@ func (o *IKEPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_policy_mode.go b/model_ike_policy_mode.go index 561cdd0ee..4f8da8e58 100644 --- a/model_ike_policy_mode.go +++ b/model_ike_policy_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_label.go b/model_ike_policy_mode_label.go index 6f710f6ac..cddbe0156 100644 --- a/model_ike_policy_mode_label.go +++ b/model_ike_policy_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_mode_value.go b/model_ike_policy_mode_value.go index f7209d932..abfeb90cf 100644 --- a/model_ike_policy_mode_value.go +++ b/model_ike_policy_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_request.go b/model_ike_policy_request.go index b10b248b6..8c69c3681 100644 --- a/model_ike_policy_request.go +++ b/model_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type IKEPolicyRequest struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Version IKEPolicyVersionValue `json:"version"` - Mode IKEPolicyModeValue `json:"mode"` + Mode *IKEPolicyModeValue `json:"mode,omitempty"` Proposals []int32 `json:"proposals,omitempty"` PresharedKey *string `json:"preshared_key,omitempty"` Comments *string `json:"comments,omitempty"` @@ -38,11 +38,10 @@ type _IKEPolicyRequest IKEPolicyRequest // 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 NewIKEPolicyRequest(name string, version IKEPolicyVersionValue, mode IKEPolicyModeValue) *IKEPolicyRequest { +func NewIKEPolicyRequest(name string, version IKEPolicyVersionValue) *IKEPolicyRequest { this := IKEPolicyRequest{} this.Name = name this.Version = version - this.Mode = mode return &this } @@ -134,28 +133,36 @@ func (o *IKEPolicyRequest) SetVersion(v IKEPolicyVersionValue) { o.Version = v } -// GetMode returns the Mode field value +// GetMode returns the Mode field value if set, zero value otherwise. func (o *IKEPolicyRequest) GetMode() IKEPolicyModeValue { - if o == nil { + if o == nil || IsNil(o.Mode) { var ret IKEPolicyModeValue return ret } - - return o.Mode + return *o.Mode } -// GetModeOk returns a tuple with the Mode field value +// GetModeOk returns a tuple with the Mode field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEPolicyRequest) GetModeOk() (*IKEPolicyModeValue, bool) { - if o == nil { + if o == nil || IsNil(o.Mode) { return nil, false } - return &o.Mode, true + return o.Mode, true +} + +// HasMode returns a boolean if a field has been set. +func (o *IKEPolicyRequest) HasMode() bool { + if o != nil && !IsNil(o.Mode) { + return true + } + + return false } -// SetMode sets field value +// SetMode gets a reference to the given IKEPolicyModeValue and assigns it to the Mode field. func (o *IKEPolicyRequest) SetMode(v IKEPolicyModeValue) { - o.Mode = v + o.Mode = &v } // GetProposals returns the Proposals field value if set, zero value otherwise. @@ -333,7 +340,9 @@ func (o IKEPolicyRequest) ToMap() (map[string]interface{}, error) { toSerialize["description"] = o.Description } toSerialize["version"] = o.Version - toSerialize["mode"] = o.Mode + if !IsNil(o.Mode) { + toSerialize["mode"] = o.Mode + } if !IsNil(o.Proposals) { toSerialize["proposals"] = o.Proposals } @@ -364,7 +373,6 @@ func (o *IKEPolicyRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "version", - "mode", } allProperties := make(map[string]interface{}) diff --git a/model_ike_policy_version.go b/model_ike_policy_version.go index afa22c6de..8d1d6c988 100644 --- a/model_ike_policy_version.go +++ b/model_ike_policy_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_label.go b/model_ike_policy_version_label.go index 8b11ad9d6..cceb1ff95 100644 --- a/model_ike_policy_version_label.go +++ b/model_ike_policy_version_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_policy_version_value.go b/model_ike_policy_version_value.go index 7abf472f2..9c5caa00a 100644 --- a/model_ike_policy_version_value.go +++ b/model_ike_policy_version_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal.go b/model_ike_proposal.go index cd4eed1ca..ec18e15a5 100644 --- a/model_ike_proposal.go +++ b/model_ike_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,15 +21,16 @@ var _ MappedNullable = &IKEProposal{} // IKEProposal Adds support for custom fields and tags. type IKEProposal struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm"` - Group IKEProposalGroup `json:"group"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethod `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithm `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithm `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroup `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -46,7 +47,7 @@ type _IKEProposal IKEProposal // 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 NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, authenticationAlgorithm IKEProposalAuthenticationAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { +func NewIKEProposal(id int32, url string, display string, name string, authenticationMethod IKEProposalAuthenticationMethod, encryptionAlgorithm IKEProposalEncryptionAlgorithm, group IKEProposalGroup, created NullableTime, lastUpdated NullableTime) *IKEProposal { this := IKEProposal{} this.Id = id this.Url = url @@ -54,7 +55,6 @@ func NewIKEProposal(id int32, url string, display string, name string, authentic this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group this.Created = created this.LastUpdated = lastUpdated @@ -117,6 +117,38 @@ func (o *IKEProposal) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IKEProposal) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IKEProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IKEProposal) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IKEProposal) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IKEProposal) GetDisplay() string { if o == nil { @@ -245,28 +277,36 @@ func (o *IKEProposal) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgorithm) { o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposal) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithm { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithm return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposal) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithm, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposal) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithm and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposal) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithm) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -496,6 +536,9 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -503,7 +546,9 @@ func (o IKEProposal) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -538,7 +583,6 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", "created", "last_updated", @@ -573,6 +617,7 @@ func (o *IKEProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ike_proposal_authentication_algorithm.go b/model_ike_proposal_authentication_algorithm.go index beeab8334..54863bb04 100644 --- a/model_ike_proposal_authentication_algorithm.go +++ b/model_ike_proposal_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_label.go b/model_ike_proposal_authentication_algorithm_label.go index ed37a3e8d..4f9425f24 100644 --- a/model_ike_proposal_authentication_algorithm_label.go +++ b/model_ike_proposal_authentication_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_algorithm_value.go b/model_ike_proposal_authentication_algorithm_value.go index ac2ff5a01..7ed318831 100644 --- a/model_ike_proposal_authentication_algorithm_value.go +++ b/model_ike_proposal_authentication_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method.go b/model_ike_proposal_authentication_method.go index ce563d6e2..d53dd7fd6 100644 --- a/model_ike_proposal_authentication_method.go +++ b/model_ike_proposal_authentication_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_label.go b/model_ike_proposal_authentication_method_label.go index 35519ca6b..3fda4ef55 100644 --- a/model_ike_proposal_authentication_method_label.go +++ b/model_ike_proposal_authentication_method_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_authentication_method_value.go b/model_ike_proposal_authentication_method_value.go index c1e5b8266..36e53f566 100644 --- a/model_ike_proposal_authentication_method_value.go +++ b/model_ike_proposal_authentication_method_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm.go b/model_ike_proposal_encryption_algorithm.go index 208e10199..c7112abf6 100644 --- a/model_ike_proposal_encryption_algorithm.go +++ b/model_ike_proposal_encryption_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_label.go b/model_ike_proposal_encryption_algorithm_label.go index 4485f50f2..44386d246 100644 --- a/model_ike_proposal_encryption_algorithm_label.go +++ b/model_ike_proposal_encryption_algorithm_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_encryption_algorithm_value.go b/model_ike_proposal_encryption_algorithm_value.go index f152c2e12..d33486166 100644 --- a/model_ike_proposal_encryption_algorithm_value.go +++ b/model_ike_proposal_encryption_algorithm_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group.go b/model_ike_proposal_group.go index b4e572948..4d4d6fa35 100644 --- a/model_ike_proposal_group.go +++ b/model_ike_proposal_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_label.go b/model_ike_proposal_group_label.go index acb825e47..552d8a504 100644 --- a/model_ike_proposal_group_label.go +++ b/model_ike_proposal_group_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_group_value.go b/model_ike_proposal_group_value.go index 482fc4b74..bcc572a10 100644 --- a/model_ike_proposal_group_value.go +++ b/model_ike_proposal_group_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ike_proposal_request.go b/model_ike_proposal_request.go index 532a3552d..1bac57d9b 100644 --- a/model_ike_proposal_request.go +++ b/model_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &IKEProposalRequest{} // IKEProposalRequest Adds support for custom fields and tags. type IKEProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` - EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` - AuthenticationAlgorithm IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm"` - Group IKEProposalGroupValue `json:"group"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + AuthenticationMethod IKEProposalAuthenticationMethodValue `json:"authentication_method"` + EncryptionAlgorithm IKEProposalEncryptionAlgorithmValue `json:"encryption_algorithm"` + AuthenticationAlgorithm *IKEProposalAuthenticationAlgorithmValue `json:"authentication_algorithm,omitempty"` + Group IKEProposalGroupValue `json:"group"` // Security association lifetime (in seconds) SaLifetime NullableInt32 `json:"sa_lifetime,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,12 +40,11 @@ type _IKEProposalRequest IKEProposalRequest // 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 NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, authenticationAlgorithm IKEProposalAuthenticationAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { +func NewIKEProposalRequest(name string, authenticationMethod IKEProposalAuthenticationMethodValue, encryptionAlgorithm IKEProposalEncryptionAlgorithmValue, group IKEProposalGroupValue) *IKEProposalRequest { this := IKEProposalRequest{} this.Name = name this.AuthenticationMethod = authenticationMethod this.EncryptionAlgorithm = encryptionAlgorithm - this.AuthenticationAlgorithm = authenticationAlgorithm this.Group = group return &this } @@ -162,28 +161,36 @@ func (o *IKEProposalRequest) SetEncryptionAlgorithm(v IKEProposalEncryptionAlgor o.EncryptionAlgorithm = v } -// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. func (o *IKEProposalRequest) GetAuthenticationAlgorithm() IKEProposalAuthenticationAlgorithmValue { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { var ret IKEProposalAuthenticationAlgorithmValue return ret } - - return o.AuthenticationAlgorithm + return *o.AuthenticationAlgorithm } -// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value +// GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *IKEProposalRequest) GetAuthenticationAlgorithmOk() (*IKEProposalAuthenticationAlgorithmValue, bool) { - if o == nil { + if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } - return &o.AuthenticationAlgorithm, true + return o.AuthenticationAlgorithm, true +} + +// HasAuthenticationAlgorithm returns a boolean if a field has been set. +func (o *IKEProposalRequest) HasAuthenticationAlgorithm() bool { + if o != nil && !IsNil(o.AuthenticationAlgorithm) { + return true + } + + return false } -// SetAuthenticationAlgorithm sets field value +// SetAuthenticationAlgorithm gets a reference to the given IKEProposalAuthenticationAlgorithmValue and assigns it to the AuthenticationAlgorithm field. func (o *IKEProposalRequest) SetAuthenticationAlgorithm(v IKEProposalAuthenticationAlgorithmValue) { - o.AuthenticationAlgorithm = v + o.AuthenticationAlgorithm = &v } // GetGroup returns the Group field value @@ -365,7 +372,9 @@ func (o IKEProposalRequest) ToMap() (map[string]interface{}, error) { } toSerialize["authentication_method"] = o.AuthenticationMethod toSerialize["encryption_algorithm"] = o.EncryptionAlgorithm - toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + if !IsNil(o.AuthenticationAlgorithm) { + toSerialize["authentication_algorithm"] = o.AuthenticationAlgorithm + } toSerialize["group"] = o.Group if o.SaLifetime.IsSet() { toSerialize["sa_lifetime"] = o.SaLifetime.Get() @@ -395,7 +404,6 @@ func (o *IKEProposalRequest) UnmarshalJSON(data []byte) (err error) { "name", "authentication_method", "encryption_algorithm", - "authentication_algorithm", "group", } diff --git a/model_image_attachment.go b/model_image_attachment.go index 3eef1f2cd..8f4037b8d 100644 --- a/model_image_attachment.go +++ b/model_image_attachment.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_image_attachment_request.go b/model_image_attachment_request.go index 26ce0cc75..139eed7ab 100644 --- a/model_image_attachment_request.go +++ b/model_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,8 +25,6 @@ type ImageAttachmentRequest struct { ObjectId int64 `json:"object_id"` Name *string `json:"name,omitempty"` Image *os.File `json:"image"` - ImageHeight int32 `json:"image_height"` - ImageWidth int32 `json:"image_width"` AdditionalProperties map[string]interface{} } @@ -36,13 +34,11 @@ type _ImageAttachmentRequest ImageAttachmentRequest // 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 NewImageAttachmentRequest(objectType string, objectId int64, image *os.File, imageHeight int32, imageWidth int32) *ImageAttachmentRequest { +func NewImageAttachmentRequest(objectType string, objectId int64, image *os.File) *ImageAttachmentRequest { this := ImageAttachmentRequest{} this.ObjectType = objectType this.ObjectId = objectId this.Image = image - this.ImageHeight = imageHeight - this.ImageWidth = imageWidth return &this } @@ -158,54 +154,6 @@ func (o *ImageAttachmentRequest) SetImage(v *os.File) { o.Image = v } -// GetImageHeight returns the ImageHeight field value -func (o *ImageAttachmentRequest) GetImageHeight() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageHeight, true -} - -// SetImageHeight sets field value -func (o *ImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = v -} - -// GetImageWidth returns the ImageWidth field value -func (o *ImageAttachmentRequest) GetImageWidth() int32 { - if o == nil { - var ret int32 - return ret - } - - return o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value -// and a boolean to check if the value has been set. -func (o *ImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil { - return nil, false - } - return &o.ImageWidth, true -} - -// SetImageWidth sets field value -func (o *ImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = v -} - func (o ImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -222,8 +170,6 @@ func (o ImageAttachmentRequest) ToMap() (map[string]interface{}, error) { toSerialize["name"] = o.Name } toSerialize["image"] = o.Image - toSerialize["image_height"] = o.ImageHeight - toSerialize["image_width"] = o.ImageWidth for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -240,8 +186,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { "object_type", "object_id", "image", - "image_height", - "image_width", } allProperties := make(map[string]interface{}) @@ -275,8 +219,6 @@ func (o *ImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_interface.go b/model_interface.go index 8990492b1..79882c297 100644 --- a/model_interface.go +++ b/model_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,13 +21,14 @@ var _ MappedNullable = &Interface{} // Interface Adds support for custom fields and tags. type Interface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Vdcs []VirtualDeviceContext `json:"vdcs,omitempty"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceType `json:"type"` @@ -51,31 +52,31 @@ type Interface struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` + Cable NullableBriefCable `json:"cable"` CableEnd string `json:"cable_end"` WirelessLink NullableNestedWirelessLink `json:"wireless_link"` LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` - WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` - ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` - ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` - Occupied bool `json:"_occupied"` + LinkPeersType NullableString `json:"link_peers_type"` + WirelessLans []WirelessLAN `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` + Occupied bool `json:"_occupied"` AdditionalProperties map[string]interface{} } @@ -85,7 +86,7 @@ type _Interface Interface // 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 NewInterface(id int32, url string, display string, device Device, name string, type_ InterfaceType, cable NullableCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType string, l2vpnTermination NullableL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { +func NewInterface(id int32, url string, display string, device BriefDevice, name string, type_ InterfaceType, cable NullableBriefCable, cableEnd string, wirelessLink NullableNestedWirelessLink, linkPeers []interface{}, linkPeersType NullableString, l2vpnTermination NullableBriefL2VPNTermination, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32, occupied bool) *Interface { this := Interface{} this.Id = id this.Url = url @@ -166,6 +167,38 @@ func (o *Interface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Interface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Interface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Interface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Interface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Interface) GetDisplay() string { if o == nil { @@ -191,9 +224,9 @@ func (o *Interface) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Interface) GetDevice() Device { +func (o *Interface) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -202,7 +235,7 @@ func (o *Interface) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Interface) GetDeviceOk() (*Device, bool) { +func (o *Interface) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -210,7 +243,7 @@ func (o *Interface) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Interface) SetDevice(v Device) { +func (o *Interface) SetDevice(v BriefDevice) { o.Device = v } @@ -247,9 +280,9 @@ func (o *Interface) SetVdcs(v []VirtualDeviceContext) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetModule() Module { +func (o *Interface) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -258,7 +291,7 @@ func (o *Interface) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetModuleOk() (*Module, bool) { +func (o *Interface) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -274,8 +307,8 @@ func (o *Interface) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *Interface) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *Interface) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -1099,9 +1132,9 @@ func (o *Interface) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetUntaggedVlan() VLAN { +func (o *Interface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -1110,7 +1143,7 @@ func (o *Interface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *Interface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -1126,8 +1159,8 @@ func (o *Interface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *Interface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *Interface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } @@ -1206,10 +1239,10 @@ func (o *Interface) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *Interface) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *Interface) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -1219,7 +1252,7 @@ func (o *Interface) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetCableOk() (*Cable, bool) { +func (o *Interface) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -1227,7 +1260,7 @@ func (o *Interface) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *Interface) SetCable(v Cable) { +func (o *Interface) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -1306,27 +1339,29 @@ func (o *Interface) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *Interface) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetWirelessLans returns the WirelessLans field value if set, zero value otherwise. @@ -1362,9 +1397,9 @@ func (o *Interface) SetWirelessLans(v []WirelessLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Interface) GetVrf() VRF { +func (o *Interface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -1373,7 +1408,7 @@ func (o *Interface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetVrfOk() (*VRF, bool) { +func (o *Interface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -1389,8 +1424,8 @@ func (o *Interface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Interface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Interface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -1405,10 +1440,10 @@ func (o *Interface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *Interface) GetL2vpnTermination() L2VPNTermination { +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *Interface) GetL2vpnTermination() BriefL2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination + var ret BriefL2VPNTermination return ret } @@ -1418,7 +1453,7 @@ func (o *Interface) GetL2vpnTermination() L2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *Interface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } @@ -1426,11 +1461,12 @@ func (o *Interface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *Interface) SetL2vpnTermination(v L2VPNTermination) { +func (o *Interface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *Interface) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -1442,8 +1478,9 @@ func (o *Interface) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -1455,27 +1492,29 @@ func (o *Interface) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *Interface) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Interface) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *Interface) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -1702,6 +1741,9 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if !IsNil(o.Vdcs) { @@ -1785,7 +1827,7 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["cable_end"] = o.CableEnd toSerialize["wireless_link"] = o.WirelessLink.Get() toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.WirelessLans) { toSerialize["wireless_lans"] = o.WirelessLans } @@ -1793,8 +1835,10 @@ func (o Interface) ToMap() (map[string]interface{}, error) { toSerialize["vrf"] = o.Vrf.Get() } toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -1871,6 +1915,7 @@ func (o *Interface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "vdcs") diff --git a/model_interface_duplex.go b/model_interface_duplex.go index aa73ec088..46213c1b7 100644 --- a/model_interface_duplex.go +++ b/model_interface_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_label.go b/model_interface_duplex_label.go index eaab1a072..f6e785318 100644 --- a/model_interface_duplex_label.go +++ b/model_interface_duplex_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_duplex_value.go b/model_interface_duplex_value.go index 93e3ce120..7028f1689 100644 --- a/model_interface_duplex_value.go +++ b/model_interface_duplex_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode.go b/model_interface_mode.go index 9441de5dd..03bf867ca 100644 --- a/model_interface_mode.go +++ b/model_interface_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_label.go b/model_interface_mode_label.go index cde6b2ae1..c02e706d0 100644 --- a/model_interface_mode_label.go +++ b/model_interface_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_mode_value.go b/model_interface_mode_value.go index f057fe019..18e3b15bf 100644 --- a/model_interface_mode_value.go +++ b/model_interface_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode.go b/model_interface_poe_mode.go index 8f365d75e..e43062b73 100644 --- a/model_interface_poe_mode.go +++ b/model_interface_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_label.go b/model_interface_poe_mode_label.go index 7736be9cc..8959e88fb 100644 --- a/model_interface_poe_mode_label.go +++ b/model_interface_poe_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_mode_value.go b/model_interface_poe_mode_value.go index 4e044ad15..0ce4f7ddc 100644 --- a/model_interface_poe_mode_value.go +++ b/model_interface_poe_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type.go b/model_interface_poe_type.go index ef7c2e113..4b2fc4d4b 100644 --- a/model_interface_poe_type.go +++ b/model_interface_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_label.go b/model_interface_poe_type_label.go index 21265631b..5c1d1290f 100644 --- a/model_interface_poe_type_label.go +++ b/model_interface_poe_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_poe_type_value.go b/model_interface_poe_type_value.go index d1f9f85a3..c90d1ac45 100644 --- a/model_interface_poe_type_value.go +++ b/model_interface_poe_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_request.go b/model_interface_request.go index b066995e9..ec7f7c294 100644 --- a/model_interface_request.go +++ b/model_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &InterfaceRequest{} // InterfaceRequest Adds support for custom fields and tags. type InterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -47,16 +47,16 @@ type InterfaceRequest struct { // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _InterfaceRequest InterfaceRequest // 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 NewInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { +func NewInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *InterfaceRequest { this := InterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewInterfaceRequestWithDefaults() *InterfaceRequest { } // GetDevice returns the Device field value -func (o *InterfaceRequest) GetDevice() DeviceRequest { +func (o *InterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *InterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *InterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InterfaceRequest) SetDevice(v DeviceRequest) { +func (o *InterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *InterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetModule() ModuleRequest { +func (o *InterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *InterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *InterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *InterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *InterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *InterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -991,9 +991,9 @@ func (o *InterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *InterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *InterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *InterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *InterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *InterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *InterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *InterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceRequest) GetVrf() VRFRequest { +func (o *InterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *InterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *InterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *InterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *InterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *InterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_interface_request_duplex.go b/model_interface_request_duplex.go index 2cfab20fa..90ead5621 100644 --- a/model_interface_request_duplex.go +++ b/model_interface_request_duplex.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel.go b/model_interface_rf_channel.go index 6cdd517fa..e41cf6b3e 100644 --- a/model_interface_rf_channel.go +++ b/model_interface_rf_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_label.go b/model_interface_rf_channel_label.go index c6ca5df46..71e8759e5 100644 --- a/model_interface_rf_channel_label.go +++ b/model_interface_rf_channel_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_channel_value.go b/model_interface_rf_channel_value.go index 5a426d213..b09ec6111 100644 --- a/model_interface_rf_channel_value.go +++ b/model_interface_rf_channel_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role.go b/model_interface_rf_role.go index a7f8f1cd9..318f5e285 100644 --- a/model_interface_rf_role.go +++ b/model_interface_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_label.go b/model_interface_rf_role_label.go index 201cb2af4..d7c55d970 100644 --- a/model_interface_rf_role_label.go +++ b/model_interface_rf_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_rf_role_value.go b/model_interface_rf_role_value.go index 364371e9c..8f1620c7f 100644 --- a/model_interface_rf_role_value.go +++ b/model_interface_rf_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template.go b/model_interface_template.go index 37184eb6b..f3f5e3831 100644 --- a/model_interface_template.go +++ b/model_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &InterfaceTemplate{} // InterfaceTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -142,9 +142,9 @@ func (o *InterfaceTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetDeviceType() DeviceType { +func (o *InterfaceTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -153,7 +153,7 @@ func (o *InterfaceTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InterfaceTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -169,8 +169,8 @@ func (o *InterfaceTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *InterfaceTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *InterfaceTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -185,9 +185,9 @@ func (o *InterfaceTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplate) GetModuleType() ModuleType { +func (o *InterfaceTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -196,7 +196,7 @@ func (o *InterfaceTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *InterfaceTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -212,8 +212,8 @@ func (o *InterfaceTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *InterfaceTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *InterfaceTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_poe_mode.go b/model_interface_template_poe_mode.go index 7811b7e10..5b25f7073 100644 --- a/model_interface_template_poe_mode.go +++ b/model_interface_template_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_poe_type.go b/model_interface_template_poe_type.go index 2c1cb4d01..dfa2860eb 100644 --- a/model_interface_template_poe_type.go +++ b/model_interface_template_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request.go b/model_interface_template_request.go index bea10caaf..24146767b 100644 --- a/model_interface_template_request.go +++ b/model_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &InterfaceTemplateRequest{} // InterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -59,9 +59,9 @@ func NewInterfaceTemplateRequestWithDefaults() *InterfaceTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *InterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *InterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *InterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *InterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *InterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *InterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *InterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *InterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *InterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *InterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *InterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_interface_template_request_poe_mode.go b/model_interface_template_request_poe_mode.go index f2b93a781..d1e5abada 100644 --- a/model_interface_template_request_poe_mode.go +++ b/model_interface_template_request_poe_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_poe_type.go b/model_interface_template_request_poe_type.go index 1f35567e1..2e0d41f73 100644 --- a/model_interface_template_request_poe_type.go +++ b/model_interface_template_request_poe_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_request_rf_role.go b/model_interface_template_request_rf_role.go index db39e8514..fb62c6197 100644 --- a/model_interface_template_request_rf_role.go +++ b/model_interface_template_request_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_template_rf_role.go b/model_interface_template_rf_role.go index 3eaf185c1..6bbd79104 100644 --- a/model_interface_template_rf_role.go +++ b/model_interface_template_rf_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type.go b/model_interface_type.go index d5a16d3e2..479df97ab 100644 --- a/model_interface_type.go +++ b/model_interface_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_interface_type_label.go b/model_interface_type_label.go index 99dedfa78..93d6eb690 100644 --- a/model_interface_type_label.go +++ b/model_interface_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -28,10 +28,12 @@ const ( INTERFACETYPELABEL__100_BASE_TX__10_100_ME InterfaceTypeLabel = "100BASE-TX (10/100ME)" INTERFACETYPELABEL__100_BASE_T1__10_100_ME_SINGLE_PAIR InterfaceTypeLabel = "100BASE-T1 (10/100ME Single Pair)" INTERFACETYPELABEL__1000_BASE_T__1_GE InterfaceTypeLabel = "1000BASE-T (1GE)" + INTERFACETYPELABEL__1000_BASE_TX__1_GE InterfaceTypeLabel = "1000BASE-TX (1GE)" INTERFACETYPELABEL__2_5_GBASE_T__2_5_GE InterfaceTypeLabel = "2.5GBASE-T (2.5GE)" INTERFACETYPELABEL__5_GBASE_T__5_GE InterfaceTypeLabel = "5GBASE-T (5GE)" INTERFACETYPELABEL__10_GBASE_T__10_GE InterfaceTypeLabel = "10GBASE-T (10GE)" INTERFACETYPELABEL__10_GBASE_CX4__10_GE InterfaceTypeLabel = "10GBASE-CX4 (10GE)" + INTERFACETYPELABEL_SFP__100_ME InterfaceTypeLabel = "SFP (100ME)" INTERFACETYPELABEL_GBIC__1_GE InterfaceTypeLabel = "GBIC (1GE)" INTERFACETYPELABEL_SFP__1_GE InterfaceTypeLabel = "SFP (1GE)" INTERFACETYPELABEL_SFP__10_GE InterfaceTypeLabel = "SFP+ (10GE)" @@ -81,7 +83,9 @@ const ( INTERFACETYPELABEL_IEEE_802_11AD InterfaceTypeLabel = "IEEE 802.11ad" INTERFACETYPELABEL_IEEE_802_11AX InterfaceTypeLabel = "IEEE 802.11ax" INTERFACETYPELABEL_IEEE_802_11AY InterfaceTypeLabel = "IEEE 802.11ay" + INTERFACETYPELABEL_IEEE_802_11BE InterfaceTypeLabel = "IEEE 802.11be" INTERFACETYPELABEL_IEEE_802_15_1__BLUETOOTH InterfaceTypeLabel = "IEEE 802.15.1 (Bluetooth)" + INTERFACETYPELABEL_IEEE_802_15_4__LR_WPAN InterfaceTypeLabel = "IEEE 802.15.4 (LR-WPAN)" INTERFACETYPELABEL_OTHER__WIRELESS InterfaceTypeLabel = "Other (Wireless)" INTERFACETYPELABEL_GSM InterfaceTypeLabel = "GSM" INTERFACETYPELABEL_CDMA InterfaceTypeLabel = "CDMA" @@ -157,10 +161,12 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "100BASE-TX (10/100ME)", "100BASE-T1 (10/100ME Single Pair)", "1000BASE-T (1GE)", + "1000BASE-TX (1GE)", "2.5GBASE-T (2.5GE)", "5GBASE-T (5GE)", "10GBASE-T (10GE)", "10GBASE-CX4 (10GE)", + "SFP (100ME)", "GBIC (1GE)", "SFP (1GE)", "SFP+ (10GE)", @@ -210,7 +216,9 @@ var AllowedInterfaceTypeLabelEnumValues = []InterfaceTypeLabel{ "IEEE 802.11ad", "IEEE 802.11ax", "IEEE 802.11ay", + "IEEE 802.11be", "IEEE 802.15.1 (Bluetooth)", + "IEEE 802.15.4 (LR-WPAN)", "Other (Wireless)", "GSM", "CDMA", diff --git a/model_interface_type_value.go b/model_interface_type_value.go index 324edde78..f0b3d03af 100644 --- a/model_interface_type_value.go +++ b/model_interface_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other +// InterfaceTypeValue * `virtual` - Virtual * `bridge` - Bridge * `lag` - Link Aggregation Group (LAG) * `100base-fx` - 100BASE-FX (10/100ME FIBER) * `100base-lfx` - 100BASE-LFX (10/100ME FIBER) * `100base-tx` - 100BASE-TX (10/100ME) * `100base-t1` - 100BASE-T1 (10/100ME Single Pair) * `1000base-t` - 1000BASE-T (1GE) * `1000base-tx` - 1000BASE-TX (1GE) * `2.5gbase-t` - 2.5GBASE-T (2.5GE) * `5gbase-t` - 5GBASE-T (5GE) * `10gbase-t` - 10GBASE-T (10GE) * `10gbase-cx4` - 10GBASE-CX4 (10GE) * `100base-x-sfp` - SFP (100ME) * `1000base-x-gbic` - GBIC (1GE) * `1000base-x-sfp` - SFP (1GE) * `10gbase-x-sfpp` - SFP+ (10GE) * `10gbase-x-xfp` - XFP (10GE) * `10gbase-x-xenpak` - XENPAK (10GE) * `10gbase-x-x2` - X2 (10GE) * `25gbase-x-sfp28` - SFP28 (25GE) * `50gbase-x-sfp56` - SFP56 (50GE) * `40gbase-x-qsfpp` - QSFP+ (40GE) * `50gbase-x-sfp28` - QSFP28 (50GE) * `100gbase-x-cfp` - CFP (100GE) * `100gbase-x-cfp2` - CFP2 (100GE) * `200gbase-x-cfp2` - CFP2 (200GE) * `400gbase-x-cfp2` - CFP2 (400GE) * `100gbase-x-cfp4` - CFP4 (100GE) * `100gbase-x-cxp` - CXP (100GE) * `100gbase-x-cpak` - Cisco CPAK (100GE) * `100gbase-x-dsfp` - DSFP (100GE) * `100gbase-x-sfpdd` - SFP-DD (100GE) * `100gbase-x-qsfp28` - QSFP28 (100GE) * `100gbase-x-qsfpdd` - QSFP-DD (100GE) * `200gbase-x-qsfp56` - QSFP56 (200GE) * `200gbase-x-qsfpdd` - QSFP-DD (200GE) * `400gbase-x-qsfp112` - QSFP112 (400GE) * `400gbase-x-qsfpdd` - QSFP-DD (400GE) * `400gbase-x-osfp` - OSFP (400GE) * `400gbase-x-osfp-rhs` - OSFP-RHS (400GE) * `400gbase-x-cdfp` - CDFP (400GE) * `400gbase-x-cfp8` - CPF8 (400GE) * `800gbase-x-qsfpdd` - QSFP-DD (800GE) * `800gbase-x-osfp` - OSFP (800GE) * `1000base-kx` - 1000BASE-KX (1GE) * `2.5gbase-kx` - 2.5GBASE-KX (2.5GE) * `5gbase-kr` - 5GBASE-KR (5GE) * `10gbase-kr` - 10GBASE-KR (10GE) * `10gbase-kx4` - 10GBASE-KX4 (10GE) * `25gbase-kr` - 25GBASE-KR (25GE) * `40gbase-kr4` - 40GBASE-KR4 (40GE) * `50gbase-kr` - 50GBASE-KR (50GE) * `100gbase-kp4` - 100GBASE-KP4 (100GE) * `100gbase-kr2` - 100GBASE-KR2 (100GE) * `100gbase-kr4` - 100GBASE-KR4 (100GE) * `ieee802.11a` - IEEE 802.11a * `ieee802.11g` - IEEE 802.11b/g * `ieee802.11n` - IEEE 802.11n * `ieee802.11ac` - IEEE 802.11ac * `ieee802.11ad` - IEEE 802.11ad * `ieee802.11ax` - IEEE 802.11ax * `ieee802.11ay` - IEEE 802.11ay * `ieee802.11be` - IEEE 802.11be * `ieee802.15.1` - IEEE 802.15.1 (Bluetooth) * `ieee802.15.4` - IEEE 802.15.4 (LR-WPAN) * `other-wireless` - Other (Wireless) * `gsm` - GSM * `cdma` - CDMA * `lte` - LTE * `4g` - 4G * `5g` - 5G * `sonet-oc3` - OC-3/STM-1 * `sonet-oc12` - OC-12/STM-4 * `sonet-oc48` - OC-48/STM-16 * `sonet-oc192` - OC-192/STM-64 * `sonet-oc768` - OC-768/STM-256 * `sonet-oc1920` - OC-1920/STM-640 * `sonet-oc3840` - OC-3840/STM-1234 * `1gfc-sfp` - SFP (1GFC) * `2gfc-sfp` - SFP (2GFC) * `4gfc-sfp` - SFP (4GFC) * `8gfc-sfpp` - SFP+ (8GFC) * `16gfc-sfpp` - SFP+ (16GFC) * `32gfc-sfp28` - SFP28 (32GFC) * `32gfc-sfpp` - SFP+ (32GFC) * `64gfc-qsfpp` - QSFP+ (64GFC) * `64gfc-sfpdd` - SFP-DD (64GFC) * `64gfc-sfpp` - SFP+ (64GFC) * `128gfc-qsfp28` - QSFP28 (128GFC) * `infiniband-sdr` - SDR (2 Gbps) * `infiniband-ddr` - DDR (4 Gbps) * `infiniband-qdr` - QDR (8 Gbps) * `infiniband-fdr10` - FDR10 (10 Gbps) * `infiniband-fdr` - FDR (13.5 Gbps) * `infiniband-edr` - EDR (25 Gbps) * `infiniband-hdr` - HDR (50 Gbps) * `infiniband-ndr` - NDR (100 Gbps) * `infiniband-xdr` - XDR (250 Gbps) * `t1` - T1 (1.544 Mbps) * `e1` - E1 (2.048 Mbps) * `t3` - T3 (45 Mbps) * `e3` - E3 (34 Mbps) * `xdsl` - xDSL * `docsis` - DOCSIS * `bpon` - BPON (622 Mbps / 155 Mbps) * `epon` - EPON (1 Gbps) * `10g-epon` - 10G-EPON (10 Gbps) * `gpon` - GPON (2.5 Gbps / 1.25 Gbps) * `xg-pon` - XG-PON (10 Gbps / 2.5 Gbps) * `xgs-pon` - XGS-PON (10 Gbps) * `ng-pon2` - NG-PON2 (TWDM-PON) (4x10 Gbps) * `25g-pon` - 25G-PON (25 Gbps) * `50g-pon` - 50G-PON (50 Gbps) * `cisco-stackwise` - Cisco StackWise * `cisco-stackwise-plus` - Cisco StackWise Plus * `cisco-flexstack` - Cisco FlexStack * `cisco-flexstack-plus` - Cisco FlexStack Plus * `cisco-stackwise-80` - Cisco StackWise-80 * `cisco-stackwise-160` - Cisco StackWise-160 * `cisco-stackwise-320` - Cisco StackWise-320 * `cisco-stackwise-480` - Cisco StackWise-480 * `cisco-stackwise-1t` - Cisco StackWise-1T * `juniper-vcp` - Juniper VCP * `extreme-summitstack` - Extreme SummitStack * `extreme-summitstack-128` - Extreme SummitStack-128 * `extreme-summitstack-256` - Extreme SummitStack-256 * `extreme-summitstack-512` - Extreme SummitStack-512 * `other` - Other type InterfaceTypeValue string // List of Interface_type_value @@ -28,10 +28,12 @@ const ( INTERFACETYPEVALUE__100BASE_TX InterfaceTypeValue = "100base-tx" INTERFACETYPEVALUE__100BASE_T1 InterfaceTypeValue = "100base-t1" INTERFACETYPEVALUE__1000BASE_T InterfaceTypeValue = "1000base-t" + INTERFACETYPEVALUE__1000BASE_TX InterfaceTypeValue = "1000base-tx" INTERFACETYPEVALUE__2_5GBASE_T InterfaceTypeValue = "2.5gbase-t" INTERFACETYPEVALUE__5GBASE_T InterfaceTypeValue = "5gbase-t" INTERFACETYPEVALUE__10GBASE_T InterfaceTypeValue = "10gbase-t" INTERFACETYPEVALUE__10GBASE_CX4 InterfaceTypeValue = "10gbase-cx4" + INTERFACETYPEVALUE__100BASE_X_SFP InterfaceTypeValue = "100base-x-sfp" INTERFACETYPEVALUE__1000BASE_X_GBIC InterfaceTypeValue = "1000base-x-gbic" INTERFACETYPEVALUE__1000BASE_X_SFP InterfaceTypeValue = "1000base-x-sfp" INTERFACETYPEVALUE__10GBASE_X_SFPP InterfaceTypeValue = "10gbase-x-sfpp" @@ -81,7 +83,9 @@ const ( INTERFACETYPEVALUE_IEEE802_11AD InterfaceTypeValue = "ieee802.11ad" INTERFACETYPEVALUE_IEEE802_11AX InterfaceTypeValue = "ieee802.11ax" INTERFACETYPEVALUE_IEEE802_11AY InterfaceTypeValue = "ieee802.11ay" + INTERFACETYPEVALUE_IEEE802_11BE InterfaceTypeValue = "ieee802.11be" INTERFACETYPEVALUE_IEEE802_15_1 InterfaceTypeValue = "ieee802.15.1" + INTERFACETYPEVALUE_IEEE802_15_4 InterfaceTypeValue = "ieee802.15.4" INTERFACETYPEVALUE_OTHER_WIRELESS InterfaceTypeValue = "other-wireless" INTERFACETYPEVALUE_GSM InterfaceTypeValue = "gsm" INTERFACETYPEVALUE_CDMA InterfaceTypeValue = "cdma" @@ -157,10 +161,12 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "100base-tx", "100base-t1", "1000base-t", + "1000base-tx", "2.5gbase-t", "5gbase-t", "10gbase-t", "10gbase-cx4", + "100base-x-sfp", "1000base-x-gbic", "1000base-x-sfp", "10gbase-x-sfpp", @@ -210,7 +216,9 @@ var AllowedInterfaceTypeValueEnumValues = []InterfaceTypeValue{ "ieee802.11ad", "ieee802.11ax", "ieee802.11ay", + "ieee802.11be", "ieee802.15.1", + "ieee802.15.4", "other-wireless", "gsm", "cdma", diff --git a/model_inventory_item.go b/model_inventory_item.go index 288a4619c..28cc6395f 100644 --- a/model_inventory_item.go +++ b/model_inventory_item.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,16 +21,17 @@ var _ MappedNullable = &InventoryItem{} // InventoryItem Adds support for custom fields and tags. type InventoryItem struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -56,7 +57,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, display string, device Device, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { +func NewInventoryItem(id int32, url string, display string, device BriefDevice, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItem { this := InventoryItem{} this.Id = id this.Url = url @@ -126,6 +127,38 @@ func (o *InventoryItem) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *InventoryItem) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryItem) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *InventoryItem) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *InventoryItem) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *InventoryItem) GetDisplay() string { if o == nil { @@ -151,9 +184,9 @@ func (o *InventoryItem) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *InventoryItem) GetDevice() Device { +func (o *InventoryItem) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -162,7 +195,7 @@ func (o *InventoryItem) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItem) GetDeviceOk() (*Device, bool) { +func (o *InventoryItem) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -170,7 +203,7 @@ func (o *InventoryItem) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *InventoryItem) SetDevice(v Device) { +func (o *InventoryItem) SetDevice(v BriefDevice) { o.Device = v } @@ -274,9 +307,9 @@ func (o *InventoryItem) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetRole() InventoryItemRole { +func (o *InventoryItem) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -285,7 +318,7 @@ func (o *InventoryItem) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItem) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -301,8 +334,8 @@ func (o *InventoryItem) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItem) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItem) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } @@ -317,9 +350,9 @@ func (o *InventoryItem) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItem) GetManufacturer() Manufacturer { +func (o *InventoryItem) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -328,7 +361,7 @@ func (o *InventoryItem) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItem) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItem) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -344,8 +377,8 @@ func (o *InventoryItem) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItem) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItem) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } @@ -794,6 +827,9 @@ func (o InventoryItem) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Parent.IsSet() { @@ -895,6 +931,7 @@ func (o *InventoryItem) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "parent") diff --git a/model_inventory_item_request.go b/model_inventory_item_request.go index c93a233fc..dc79acaed 100644 --- a/model_inventory_item_request.go +++ b/model_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &InventoryItemRequest{} // InventoryItemRequest Adds support for custom fields and tags. type InventoryItemRequest struct { - Device DeviceRequest `json:"device"` - Parent NullableInt32 `json:"parent,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Parent NullableInt32 `json:"parent,omitempty"` + Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -48,7 +48,7 @@ type _InventoryItemRequest InventoryItemRequest // 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 NewInventoryItemRequest(device DeviceRequest, name string) *InventoryItemRequest { +func NewInventoryItemRequest(device BriefDeviceRequest, name string) *InventoryItemRequest { this := InventoryItemRequest{} this.Device = device this.Name = name @@ -64,9 +64,9 @@ func NewInventoryItemRequestWithDefaults() *InventoryItemRequest { } // GetDevice returns the Device field value -func (o *InventoryItemRequest) GetDevice() DeviceRequest { +func (o *InventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -75,7 +75,7 @@ func (o *InventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *InventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,7 +83,7 @@ func (o *InventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *InventoryItemRequest) SetDevice(v DeviceRequest) { +func (o *InventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -187,9 +187,9 @@ func (o *InventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -198,7 +198,7 @@ func (o *InventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *InventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -230,9 +230,9 @@ func (o *InventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -241,7 +241,7 @@ func (o *InventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *InventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_role.go b/model_inventory_item_role.go index ee6f28990..14f098a2c 100644 --- a/model_inventory_item_role.go +++ b/model_inventory_item_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &InventoryItemRole{} type InventoryItemRole struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -111,6 +112,38 @@ func (o *InventoryItemRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *InventoryItemRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *InventoryItemRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *InventoryItemRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *InventoryItemRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *InventoryItemRole) GetDisplay() string { if o == nil { @@ -399,6 +432,9 @@ func (o InventoryItemRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -469,6 +505,7 @@ func (o *InventoryItemRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_inventory_item_role_request.go b/model_inventory_item_role_request.go index c00674ef5..d8881b7b8 100644 --- a/model_inventory_item_role_request.go +++ b/model_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_inventory_item_template.go b/model_inventory_item_template.go index 2e4179281..99f04d16a 100644 --- a/model_inventory_item_template.go +++ b/model_inventory_item_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,17 @@ var _ MappedNullable = &InventoryItemTemplate{} // InventoryItemTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType BriefDeviceType `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRole `json:"role,omitempty"` - Manufacturer NullableManufacturer `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRole `json:"role,omitempty"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -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, display string, deviceType DeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { +func NewInventoryItemTemplate(id int32, url string, display string, deviceType BriefDeviceType, name string, component interface{}, created NullableTime, lastUpdated NullableTime, depth int32) *InventoryItemTemplate { this := InventoryItemTemplate{} this.Id = id this.Url = url @@ -145,9 +145,9 @@ func (o *InventoryItemTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplate) GetDeviceType() DeviceType { +func (o *InventoryItemTemplate) GetDeviceType() BriefDeviceType { if o == nil { - var ret DeviceType + var ret BriefDeviceType return ret } @@ -156,7 +156,7 @@ func (o *InventoryItemTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *InventoryItemTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,7 +164,7 @@ func (o *InventoryItemTemplate) GetDeviceTypeOk() (*DeviceType, bool) { } // SetDeviceType sets field value -func (o *InventoryItemTemplate) SetDeviceType(v DeviceType) { +func (o *InventoryItemTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType = v } @@ -268,9 +268,9 @@ func (o *InventoryItemTemplate) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetRole() InventoryItemRole { +func (o *InventoryItemTemplate) GetRole() BriefInventoryItemRole { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRole + var ret BriefInventoryItemRole return ret } return *o.Role.Get() @@ -279,7 +279,7 @@ func (o *InventoryItemTemplate) GetRole() InventoryItemRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetRoleOk() (*InventoryItemRole, bool) { +func (o *InventoryItemTemplate) GetRoleOk() (*BriefInventoryItemRole, bool) { if o == nil { return nil, false } @@ -295,8 +295,8 @@ func (o *InventoryItemTemplate) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRole and assigns it to the Role field. -func (o *InventoryItemTemplate) SetRole(v InventoryItemRole) { +// SetRole gets a reference to the given NullableBriefInventoryItemRole and assigns it to the Role field. +func (o *InventoryItemTemplate) SetRole(v BriefInventoryItemRole) { o.Role.Set(&v) } @@ -311,9 +311,9 @@ func (o *InventoryItemTemplate) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { +func (o *InventoryItemTemplate) GetManufacturer() BriefManufacturer { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret Manufacturer + var ret BriefManufacturer return ret } return *o.Manufacturer.Get() @@ -322,7 +322,7 @@ func (o *InventoryItemTemplate) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplate) GetManufacturerOk() (*Manufacturer, bool) { +func (o *InventoryItemTemplate) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -338,8 +338,8 @@ func (o *InventoryItemTemplate) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturer and assigns it to the Manufacturer field. -func (o *InventoryItemTemplate) SetManufacturer(v Manufacturer) { +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *InventoryItemTemplate) SetManufacturer(v BriefManufacturer) { o.Manufacturer.Set(&v) } diff --git a/model_inventory_item_template_request.go b/model_inventory_item_template_request.go index c7d639e2d..0b1a2c004 100644 --- a/model_inventory_item_template_request.go +++ b/model_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &InventoryItemTemplateRequest{} // InventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type InventoryItemTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -42,7 +42,7 @@ type _InventoryItemTemplateRequest InventoryItemTemplateRequest // 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 NewInventoryItemTemplateRequest(deviceType DeviceTypeRequest, name string) *InventoryItemTemplateRequest { +func NewInventoryItemTemplateRequest(deviceType BriefDeviceTypeRequest, name string) *InventoryItemTemplateRequest { this := InventoryItemTemplateRequest{} this.DeviceType = deviceType this.Name = name @@ -58,9 +58,9 @@ func NewInventoryItemTemplateRequestWithDefaults() *InventoryItemTemplateRequest } // GetDeviceType returns the DeviceType field value -func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *InventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -69,7 +69,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,7 +77,7 @@ func (o *InventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bo } // SetDeviceType sets field value -func (o *InventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *InventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } @@ -181,9 +181,9 @@ func (o *InventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *InventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -192,7 +192,7 @@ func (o *InventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *InventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -208,8 +208,8 @@ func (o *InventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *InventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *InventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -224,9 +224,9 @@ func (o *InventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *InventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -235,7 +235,7 @@ func (o *InventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *InventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *InventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *InventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *InventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_ip_address.go b/model_ip_address.go index 5fdb687b4..9f7788539 100644 --- a/model_ip_address.go +++ b/model_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the IPAddress type satisfies the MappedNullable interface at compile time @@ -20,12 +21,29 @@ var _ MappedNullable = &IPAddress{} // IPAddress Adds support for custom fields and tags. type IPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Address string `json:"address"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPAddressStatus `json:"status,omitempty"` + Role *IPAddressRole `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + AssignedObject interface{} `json:"assigned_object"` + NatInside NullableNestedIPAddress `json:"nat_inside,omitempty"` + NatOutside []NestedIPAddress `json:"nat_outside"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,17 @@ type _IPAddress IPAddress // 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 NewIPAddress(id int32, url string, display string, family AggregateFamily, address string) *IPAddress { +func NewIPAddress(id int32, url string, display string, family AggregateFamily, address string, assignedObject interface{}, natOutside []NestedIPAddress, created NullableTime, lastUpdated NullableTime) *IPAddress { this := IPAddress{} this.Id = id this.Url = url this.Display = display this.Family = family this.Address = address + this.AssignedObject = assignedObject + this.NatOutside = natOutside + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +123,38 @@ func (o *IPAddress) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPAddress) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPAddress) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPAddress) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPAddress) GetDisplay() string { if o == nil { @@ -173,6 +227,367 @@ func (o *IPAddress) SetAddress(v string) { o.Address = v } +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetVrf() BriefVRF { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRF + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetVrfOk() (*BriefVRF, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddress) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPAddress) SetVrf(v BriefVRF) { + o.Vrf.Set(&v) +} + +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddress) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddress) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *IPAddress) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPAddress) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddress) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddress) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddress) GetStatus() IPAddressStatus { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetStatusOk() (*IPAddressStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddress) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatus and assigns it to the Status field. +func (o *IPAddress) SetStatus(v IPAddressStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddress) GetRole() IPAddressRole { + if o == nil || IsNil(o.Role) { + var ret IPAddressRole + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetRoleOk() (*IPAddressRole, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddress) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRole and assigns it to the Role field. +func (o *IPAddress) SetRole(v IPAddressRole) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *IPAddress) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} + +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *IPAddress) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddress) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *IPAddress) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} + +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *IPAddress) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddress) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetAssignedObject returns the AssignedObject field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *IPAddress) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// SetAssignedObject sets field value +func (o *IPAddress) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddress) GetNatInside() NestedIPAddress { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddress + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetNatInsideOk() (*NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddress) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddress and assigns it to the NatInside field. +func (o *IPAddress) SetNatInside(v NestedIPAddress) { + o.NatInside.Set(&v) +} + +// SetNatInsideNil sets the value for NatInside to be an explicit nil +func (o *IPAddress) SetNatInsideNil() { + o.NatInside.Set(nil) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddress) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetNatOutside returns the NatOutside field value +func (o *IPAddress) GetNatOutside() []NestedIPAddress { + if o == nil { + var ret []NestedIPAddress + return ret + } + + return o.NatOutside +} + +// GetNatOutsideOk returns a tuple with the NatOutside field value +// and a boolean to check if the value has been set. +func (o *IPAddress) GetNatOutsideOk() ([]NestedIPAddress, bool) { + if o == nil { + return nil, false + } + return o.NatOutside, true +} + +// SetNatOutside sets field value +func (o *IPAddress) SetNatOutside(v []NestedIPAddress) { + o.NatOutside = v +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddress) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddress) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddress) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddress) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +620,154 @@ func (o *IPAddress) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddress) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddress) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddress) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddress) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *IPAddress) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *IPAddress) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddress) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddress) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *IPAddress) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *IPAddress) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *IPAddress) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *IPAddress) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *IPAddress) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddress) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *IPAddress) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o IPAddress) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +780,54 @@ func (o IPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + toSerialize["nat_outside"] = o.NatOutside + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,6 +846,10 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { "display", "family", "address", + "assigned_object", + "nat_outside", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +881,26 @@ func (o *IPAddress) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "nat_outside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_request.go b/model_ip_address_request.go index 6c3232de2..8a804bcf3 100644 --- a/model_ip_address_request.go +++ b/model_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,20 @@ var _ MappedNullable = &IPAddressRequest{} // IPAddressRequest Adds support for custom fields and tags. type IPAddressRequest struct { - Address string `json:"address"` - Description *string `json:"description,omitempty"` + Address string `json:"address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPAddressStatusValue `json:"status,omitempty"` + Role *IPAddressRoleValue `json:"role,omitempty"` + AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` + AssignedObjectId NullableInt64 `json:"assigned_object_id,omitempty"` + NatInside NullableNestedIPAddressRequest `json:"nat_inside,omitempty"` + // Hostname or FQDN (not case-sensitive) + DnsName *string `json:"dns_name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -69,6 +81,317 @@ func (o *IPAddressRequest) SetAddress(v string) { o.Address = v } +// GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetVrf() BriefVRFRequest { + if o == nil || IsNil(o.Vrf.Get()) { + var ret BriefVRFRequest + return ret + } + return *o.Vrf.Get() +} + +// GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { + if o == nil { + return nil, false + } + return o.Vrf.Get(), o.Vrf.IsSet() +} + +// HasVrf returns a boolean if a field has been set. +func (o *IPAddressRequest) HasVrf() bool { + if o != nil && o.Vrf.IsSet() { + return true + } + + return false +} + +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPAddressRequest) SetVrf(v BriefVRFRequest) { + o.Vrf.Set(&v) +} + +// SetVrfNil sets the value for Vrf to be an explicit nil +func (o *IPAddressRequest) SetVrfNil() { + o.Vrf.Set(nil) +} + +// UnsetVrf ensures that no value is present for Vrf, not even an explicit nil +func (o *IPAddressRequest) UnsetVrf() { + o.Vrf.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *IPAddressRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPAddressRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *IPAddressRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *IPAddressRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *IPAddressRequest) GetStatus() IPAddressStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPAddressStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetStatusOk() (*IPAddressStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *IPAddressRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPAddressStatusValue and assigns it to the Status field. +func (o *IPAddressRequest) SetStatus(v IPAddressStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise. +func (o *IPAddressRequest) GetRole() IPAddressRoleValue { + if o == nil || IsNil(o.Role) { + var ret IPAddressRoleValue + return ret + } + return *o.Role +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetRoleOk() (*IPAddressRoleValue, bool) { + if o == nil || IsNil(o.Role) { + return nil, false + } + return o.Role, true +} + +// HasRole returns a boolean if a field has been set. +func (o *IPAddressRequest) HasRole() bool { + if o != nil && !IsNil(o.Role) { + return true + } + + return false +} + +// SetRole gets a reference to the given IPAddressRoleValue and assigns it to the Role field. +func (o *IPAddressRequest) SetRole(v IPAddressRoleValue) { + o.Role = &v +} + +// GetAssignedObjectType returns the AssignedObjectType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectType() string { + if o == nil || IsNil(o.AssignedObjectType.Get()) { + var ret string + return ret + } + return *o.AssignedObjectType.Get() +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectType.Get(), o.AssignedObjectType.IsSet() +} + +// HasAssignedObjectType returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectType() bool { + if o != nil && o.AssignedObjectType.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectType gets a reference to the given NullableString and assigns it to the AssignedObjectType field. +func (o *IPAddressRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType.Set(&v) +} + +// SetAssignedObjectTypeNil sets the value for AssignedObjectType to be an explicit nil +func (o *IPAddressRequest) SetAssignedObjectTypeNil() { + o.AssignedObjectType.Set(nil) +} + +// UnsetAssignedObjectType ensures that no value is present for AssignedObjectType, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectType() { + o.AssignedObjectType.Unset() +} + +// GetAssignedObjectId returns the AssignedObjectId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetAssignedObjectId() int64 { + if o == nil || IsNil(o.AssignedObjectId.Get()) { + var ret int64 + return ret + } + return *o.AssignedObjectId.Get() +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.AssignedObjectId.Get(), o.AssignedObjectId.IsSet() +} + +// HasAssignedObjectId returns a boolean if a field has been set. +func (o *IPAddressRequest) HasAssignedObjectId() bool { + if o != nil && o.AssignedObjectId.IsSet() { + return true + } + + return false +} + +// SetAssignedObjectId gets a reference to the given NullableInt64 and assigns it to the AssignedObjectId field. +func (o *IPAddressRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId.Set(&v) +} + +// SetAssignedObjectIdNil sets the value for AssignedObjectId to be an explicit nil +func (o *IPAddressRequest) SetAssignedObjectIdNil() { + o.AssignedObjectId.Set(nil) +} + +// UnsetAssignedObjectId ensures that no value is present for AssignedObjectId, not even an explicit nil +func (o *IPAddressRequest) UnsetAssignedObjectId() { + o.AssignedObjectId.Unset() +} + +// GetNatInside returns the NatInside field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *IPAddressRequest) GetNatInside() NestedIPAddressRequest { + if o == nil || IsNil(o.NatInside.Get()) { + var ret NestedIPAddressRequest + return ret + } + return *o.NatInside.Get() +} + +// GetNatInsideOk returns a tuple with the NatInside field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *IPAddressRequest) GetNatInsideOk() (*NestedIPAddressRequest, bool) { + if o == nil { + return nil, false + } + return o.NatInside.Get(), o.NatInside.IsSet() +} + +// HasNatInside returns a boolean if a field has been set. +func (o *IPAddressRequest) HasNatInside() bool { + if o != nil && o.NatInside.IsSet() { + return true + } + + return false +} + +// SetNatInside gets a reference to the given NullableNestedIPAddressRequest and assigns it to the NatInside field. +func (o *IPAddressRequest) SetNatInside(v NestedIPAddressRequest) { + o.NatInside.Set(&v) +} + +// SetNatInsideNil sets the value for NatInside to be an explicit nil +func (o *IPAddressRequest) SetNatInsideNil() { + o.NatInside.Set(nil) +} + +// UnsetNatInside ensures that no value is present for NatInside, not even an explicit nil +func (o *IPAddressRequest) UnsetNatInside() { + o.NatInside.Unset() +} + +// GetDnsName returns the DnsName field value if set, zero value otherwise. +func (o *IPAddressRequest) GetDnsName() string { + if o == nil || IsNil(o.DnsName) { + var ret string + return ret + } + return *o.DnsName +} + +// GetDnsNameOk returns a tuple with the DnsName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetDnsNameOk() (*string, bool) { + if o == nil || IsNil(o.DnsName) { + return nil, false + } + return o.DnsName, true +} + +// HasDnsName returns a boolean if a field has been set. +func (o *IPAddressRequest) HasDnsName() bool { + if o != nil && !IsNil(o.DnsName) { + return true + } + + return false +} + +// SetDnsName gets a reference to the given string and assigns it to the DnsName field. +func (o *IPAddressRequest) SetDnsName(v string) { + o.DnsName = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *IPAddressRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +424,102 @@ func (o *IPAddressRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *IPAddressRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *IPAddressRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *IPAddressRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *IPAddressRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *IPAddressRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *IPAddressRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *IPAddressRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPAddressRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *IPAddressRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *IPAddressRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o IPAddressRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +531,42 @@ func (o IPAddressRequest) MarshalJSON() ([]byte, error) { func (o IPAddressRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["address"] = o.Address + if o.Vrf.IsSet() { + toSerialize["vrf"] = o.Vrf.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Role) { + toSerialize["role"] = o.Role + } + if o.AssignedObjectType.IsSet() { + toSerialize["assigned_object_type"] = o.AssignedObjectType.Get() + } + if o.AssignedObjectId.IsSet() { + toSerialize["assigned_object_id"] = o.AssignedObjectId.Get() + } + if o.NatInside.IsSet() { + toSerialize["nat_inside"] = o.NatInside.Get() + } + if !IsNil(o.DnsName) { + toSerialize["dns_name"] = o.DnsName + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -159,7 +611,18 @@ func (o *IPAddressRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "address") + delete(additionalProperties, "vrf") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "nat_inside") + delete(additionalProperties, "dns_name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_ip_address_role.go b/model_ip_address_role.go index bd21ea2be..84de31874 100644 --- a/model_ip_address_role.go +++ b/model_ip_address_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_address_role_label.go b/model_ip_address_role_label.go index 08557463d..26cb76511 100644 --- a/model_ip_address_role_label.go +++ b/model_ip_address_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_address_role_value.go b/model_ip_address_role_value.go index 5a21c75a0..ce0990c39 100644 --- a/model_ip_address_role_value.go +++ b/model_ip_address_role_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_address_status.go b/model_ip_address_status.go index 7b2e35d56..5f0029c15 100644 --- a/model_ip_address_status.go +++ b/model_ip_address_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_address_status_label.go b/model_ip_address_status_label.go index 0c25bca23..1e5286de6 100644 --- a/model_ip_address_status_label.go +++ b/model_ip_address_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_address_status_value.go b/model_ip_address_status_value.go index 21152a155..a0a350b33 100644 --- a/model_ip_address_status_value.go +++ b/model_ip_address_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range.go b/model_ip_range.go index 8775cca43..0b170a2ab 100644 --- a/model_ip_range.go +++ b/model_ip_range.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,15 +23,16 @@ var _ MappedNullable = &IPRange{} type IPRange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Family AggregateFamily `json:"family"` StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` Size int32 `json:"size"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Status *IPRangeStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -119,6 +120,38 @@ func (o *IPRange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPRange) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPRange) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPRange) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPRange) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPRange) GetDisplay() string { if o == nil { @@ -240,9 +273,9 @@ func (o *IPRange) SetSize(v int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetVrf() VRF { +func (o *IPRange) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -251,7 +284,7 @@ func (o *IPRange) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetVrfOk() (*VRF, bool) { +func (o *IPRange) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -267,8 +300,8 @@ func (o *IPRange) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *IPRange) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *IPRange) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -283,9 +316,9 @@ func (o *IPRange) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetTenant() Tenant { +func (o *IPRange) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -294,7 +327,7 @@ func (o *IPRange) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetTenantOk() (*Tenant, bool) { +func (o *IPRange) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -310,8 +343,8 @@ func (o *IPRange) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *IPRange) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *IPRange) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -358,9 +391,9 @@ func (o *IPRange) SetStatus(v IPRangeStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRange) GetRole() Role { +func (o *IPRange) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -369,7 +402,7 @@ func (o *IPRange) GetRole() Role { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRange) GetRoleOk() (*Role, bool) { +func (o *IPRange) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -385,8 +418,8 @@ func (o *IPRange) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *IPRange) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *IPRange) SetRole(v BriefRole) { o.Role.Set(&v) } @@ -624,6 +657,9 @@ func (o IPRange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["start_address"] = o.StartAddress @@ -711,6 +747,7 @@ func (o *IPRange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "start_address") diff --git a/model_ip_range_request.go b/model_ip_range_request.go index 89c81001d..48878870f 100644 --- a/model_ip_range_request.go +++ b/model_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &IPRangeRequest{} // IPRangeRequest Adds support for custom fields and tags. type IPRangeRequest struct { - StartAddress string `json:"start_address"` - EndAddress string `json:"end_address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Status *IPRangeStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + StartAddress string `json:"start_address"` + EndAddress string `json:"end_address"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` // Treat as fully utilized MarkUtilized *bool `json:"mark_utilized,omitempty"` AdditionalProperties map[string]interface{} @@ -105,9 +105,9 @@ func (o *IPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetVrf() VRFRequest { +func (o *IPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *IPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *IPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *IPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *IPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *IPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *IPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetTenant() TenantRequest { +func (o *IPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *IPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *IPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *IPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *IPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *IPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *IPRangeRequest) SetStatus(v IPRangeStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *IPRangeRequest) GetRole() RoleRequest { +func (o *IPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *IPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *IPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *IPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *IPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *IPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *IPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_ip_range_status.go b/model_ip_range_status.go index 7382048fb..3e895a4c9 100644 --- a/model_ip_range_status.go +++ b/model_ip_range_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_label.go b/model_ip_range_status_label.go index 385ab47e7..1b2ba4c90 100644 --- a/model_ip_range_status_label.go +++ b/model_ip_range_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_range_status_value.go b/model_ip_range_status_value.go index df62fcdf6..a2589c4f5 100644 --- a/model_ip_range_status_value.go +++ b/model_ip_range_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_policy.go b/model_ip_sec_policy.go index 36f1f6c99..d8cc5d714 100644 --- a/model_ip_sec_policy.go +++ b/model_ip_sec_policy.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &IPSecPolicy{} type IPSecPolicy struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -109,6 +110,38 @@ func (o *IPSecPolicy) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPSecPolicy) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPSecPolicy) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPSecPolicy) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPSecPolicy) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPSecPolicy) GetDisplay() string { if o == nil { @@ -413,6 +446,9 @@ func (o IPSecPolicy) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -485,6 +521,7 @@ func (o *IPSecPolicy) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_policy_request.go b/model_ip_sec_policy_request.go index 9612f14fa..ee8498f55 100644 --- a/model_ip_sec_policy_request.go +++ b/model_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile.go b/model_ip_sec_profile.go index 9146d8074..aa5d556ea 100644 --- a/model_ip_sec_profile.go +++ b/model_ip_sec_profile.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,12 +23,13 @@ var _ MappedNullable = &IPSecProfile{} type IPSecProfile struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` Mode IPSecProfileMode `json:"mode"` - IkePolicy IKEPolicy `json:"ike_policy"` - IpsecPolicy IPSecPolicy `json:"ipsec_policy"` + IkePolicy BriefIKEPolicy `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicy `json:"ipsec_policy"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -43,7 +44,7 @@ type _IPSecProfile IPSecProfile // 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 NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy IKEPolicy, ipsecPolicy IPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { +func NewIPSecProfile(id int32, url string, display string, name string, mode IPSecProfileMode, ikePolicy BriefIKEPolicy, ipsecPolicy BriefIPSecPolicy, created NullableTime, lastUpdated NullableTime) *IPSecProfile { this := IPSecProfile{} this.Id = id this.Url = url @@ -113,6 +114,38 @@ func (o *IPSecProfile) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPSecProfile) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPSecProfile) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPSecProfile) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPSecProfile) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPSecProfile) GetDisplay() string { if o == nil { @@ -218,9 +251,9 @@ func (o *IPSecProfile) SetMode(v IPSecProfileMode) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfile) GetIkePolicy() IKEPolicy { +func (o *IPSecProfile) GetIkePolicy() BriefIKEPolicy { if o == nil { - var ret IKEPolicy + var ret BriefIKEPolicy return ret } @@ -229,7 +262,7 @@ func (o *IPSecProfile) GetIkePolicy() IKEPolicy { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { +func (o *IPSecProfile) GetIkePolicyOk() (*BriefIKEPolicy, bool) { if o == nil { return nil, false } @@ -237,14 +270,14 @@ func (o *IPSecProfile) GetIkePolicyOk() (*IKEPolicy, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfile) SetIkePolicy(v IKEPolicy) { +func (o *IPSecProfile) SetIkePolicy(v BriefIKEPolicy) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { +func (o *IPSecProfile) GetIpsecPolicy() BriefIPSecPolicy { if o == nil { - var ret IPSecPolicy + var ret BriefIPSecPolicy return ret } @@ -253,7 +286,7 @@ func (o *IPSecProfile) GetIpsecPolicy() IPSecPolicy { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { +func (o *IPSecProfile) GetIpsecPolicyOk() (*BriefIPSecPolicy, bool) { if o == nil { return nil, false } @@ -261,7 +294,7 @@ func (o *IPSecProfile) GetIpsecPolicyOk() (*IPSecPolicy, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfile) SetIpsecPolicy(v IPSecPolicy) { +func (o *IPSecProfile) SetIpsecPolicy(v BriefIPSecPolicy) { o.IpsecPolicy = v } @@ -425,6 +458,9 @@ func (o IPSecProfile) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -497,6 +533,7 @@ func (o *IPSecProfile) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_profile_mode.go b/model_ip_sec_profile_mode.go index 69bcffc18..3af58d691 100644 --- a/model_ip_sec_profile_mode.go +++ b/model_ip_sec_profile_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_label.go b/model_ip_sec_profile_mode_label.go index 31f8922ec..0e0b4ed74 100644 --- a/model_ip_sec_profile_mode_label.go +++ b/model_ip_sec_profile_mode_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_mode_value.go b/model_ip_sec_profile_mode_value.go index 75a1b1c6a..6f2fda0a7 100644 --- a/model_ip_sec_profile_mode_value.go +++ b/model_ip_sec_profile_mode_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ip_sec_profile_request.go b/model_ip_sec_profile_request.go index 09202cc1e..935a620df 100644 --- a/model_ip_sec_profile_request.go +++ b/model_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &IPSecProfileRequest{} // IPSecProfileRequest Adds support for custom fields and tags. type IPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _IPSecProfileRequest IPSecProfileRequest // 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 NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *IPSecProfileRequest { +func NewIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *IPSecProfileRequest { this := IPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *IPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *IPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *IPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *IPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { } // SetIkePolicy sets field value -func (o *IPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *IPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *IPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *IPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { } // SetIpsecPolicy sets field value -func (o *IPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *IPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_ip_sec_proposal.go b/model_ip_sec_proposal.go index cdc9250e2..f89be60dc 100644 --- a/model_ip_sec_proposal.go +++ b/model_ip_sec_proposal.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &IPSecProposal{} type IPSecProposal struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -115,6 +116,38 @@ func (o *IPSecProposal) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *IPSecProposal) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *IPSecProposal) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *IPSecProposal) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *IPSecProposal) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *IPSecProposal) GetDisplay() string { if o == nil { @@ -489,6 +522,9 @@ func (o IPSecProposal) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -565,6 +601,7 @@ func (o *IPSecProposal) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_ip_sec_proposal_request.go b/model_ip_sec_proposal_request.go index 1a4cdf787..98b1fc4dd 100644 --- a/model_ip_sec_proposal_request.go +++ b/model_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_ipam_service_templates_list_protocol_parameter.go b/model_ipam_service_templates_list_protocol_parameter.go index f5e1d118c..f637bdd9b 100644 --- a/model_ipam_service_templates_list_protocol_parameter.go +++ b/model_ipam_service_templates_list_protocol_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_job.go b/model_job.go index 7c41c0fe1..69647ad19 100644 --- a/model_job.go +++ b/model_job.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,21 @@ var _ MappedNullable = &Job{} // Job struct for Job type Job struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - ObjectType string `json:"object_type"` - ObjectId NullableInt64 `json:"object_id,omitempty"` - Name string `json:"name"` - Status JobStatus `json:"status"` - Created time.Time `json:"created"` - Scheduled NullableTime `json:"scheduled,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + ObjectType string `json:"object_type"` + ObjectId NullableInt64 `json:"object_id,omitempty"` + Name string `json:"name"` + Status BriefJobStatus `json:"status"` + Created time.Time `json:"created"` + Scheduled NullableTime `json:"scheduled,omitempty"` // Recurrence interval (in minutes) Interval NullableInt32 `json:"interval,omitempty"` Started NullableTime `json:"started,omitempty"` Completed NullableTime `json:"completed,omitempty"` - User User `json:"user"` + User BriefUser `json:"user"` Data interface{} `json:"data,omitempty"` Error string `json:"error"` JobId string `json:"job_id"` @@ -47,7 +48,7 @@ type _Job Job // 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 NewJob(id int32, url string, display string, objectType string, name string, status JobStatus, created time.Time, user User, error_ string, jobId string) *Job { +func NewJob(id int32, url string, display string, objectType string, name string, status BriefJobStatus, created time.Time, user BriefUser, error_ string, jobId string) *Job { this := Job{} this.Id = id this.Url = url @@ -118,6 +119,38 @@ func (o *Job) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Job) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Job) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Job) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Job) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Job) GetDisplay() string { if o == nil { @@ -234,9 +267,9 @@ func (o *Job) SetName(v string) { } // GetStatus returns the Status field value -func (o *Job) GetStatus() JobStatus { +func (o *Job) GetStatus() BriefJobStatus { if o == nil { - var ret JobStatus + var ret BriefJobStatus return ret } @@ -245,7 +278,7 @@ func (o *Job) GetStatus() JobStatus { // GetStatusOk returns a tuple with the Status field value // and a boolean to check if the value has been set. -func (o *Job) GetStatusOk() (*JobStatus, bool) { +func (o *Job) GetStatusOk() (*BriefJobStatus, bool) { if o == nil { return nil, false } @@ -253,7 +286,7 @@ func (o *Job) GetStatusOk() (*JobStatus, bool) { } // SetStatus sets field value -func (o *Job) SetStatus(v JobStatus) { +func (o *Job) SetStatus(v BriefJobStatus) { o.Status = v } @@ -454,9 +487,9 @@ func (o *Job) UnsetCompleted() { } // GetUser returns the User field value -func (o *Job) GetUser() User { +func (o *Job) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -465,7 +498,7 @@ func (o *Job) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Job) GetUserOk() (*User, bool) { +func (o *Job) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -473,7 +506,7 @@ func (o *Job) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Job) SetUser(v User) { +func (o *Job) SetUser(v BriefUser) { o.User = v } @@ -570,6 +603,9 @@ func (o Job) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_type"] = o.ObjectType if o.ObjectId.IsSet() { @@ -650,6 +686,7 @@ func (o *Job) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_type") delete(additionalProperties, "object_id") diff --git a/model_journal_entry.go b/model_journal_entry.go index 85c554b79..5fec22417 100644 --- a/model_journal_entry.go +++ b/model_journal_entry.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &JournalEntry{} type JournalEntry struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` AssignedObjectType string `json:"assigned_object_type"` AssignedObjectId int64 `json:"assigned_object_id"` @@ -113,6 +114,38 @@ func (o *JournalEntry) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *JournalEntry) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *JournalEntry) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *JournalEntry) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *JournalEntry) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *JournalEntry) GetDisplay() string { if o == nil { @@ -438,6 +471,9 @@ func (o JournalEntry) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["assigned_object_type"] = o.AssignedObjectType toSerialize["assigned_object_id"] = o.AssignedObjectId @@ -512,6 +548,7 @@ func (o *JournalEntry) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "assigned_object_type") delete(additionalProperties, "assigned_object_id") diff --git a/model_journal_entry_kind.go b/model_journal_entry_kind.go index 18d34bc98..bd99f0924 100644 --- a/model_journal_entry_kind.go +++ b/model_journal_entry_kind.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_label.go b/model_journal_entry_kind_label.go index 5c61d6c58..437ed0acc 100644 --- a/model_journal_entry_kind_label.go +++ b/model_journal_entry_kind_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_kind_value.go b/model_journal_entry_kind_value.go index 06b51fe78..8fa8d9869 100644 --- a/model_journal_entry_kind_value.go +++ b/model_journal_entry_kind_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_journal_entry_request.go b/model_journal_entry_request.go index 03045dce6..adc36afa4 100644 --- a/model_journal_entry_request.go +++ b/model_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_l2_vpn.go b/model_l2_vpn.go index b59c4021b..71efe6432 100644 --- a/model_l2_vpn.go +++ b/model_l2_vpn.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the L2VPN type satisfies the MappedNullable interface at compile time @@ -20,14 +21,23 @@ var _ MappedNullable = &L2VPN{} // L2VPN Adds support for custom fields and tags. type L2VPN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNType `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNType `json:"type,omitempty"` + ImportTargets []RouteTarget `json:"import_targets,omitempty"` + ExportTargets []RouteTarget `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -37,13 +47,15 @@ type _L2VPN L2VPN // 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 NewL2VPN(id int32, url string, display string, name string, slug string) *L2VPN { +func NewL2VPN(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *L2VPN { this := L2VPN{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +115,38 @@ func (o *L2VPN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *L2VPN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *L2VPN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *L2VPN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *L2VPN) GetDisplay() string { if o == nil { @@ -219,9 +263,9 @@ func (o *L2VPN) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPN) GetType() L2VPNType { +func (o *L2VPN) GetType() BriefL2VPNType { if o == nil || IsNil(o.Type) { - var ret L2VPNType + var ret BriefL2VPNType return ret } return *o.Type @@ -229,7 +273,7 @@ func (o *L2VPN) GetType() L2VPNType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPN) GetTypeOk() (*L2VPNType, bool) { +func (o *L2VPN) GetTypeOk() (*BriefL2VPNType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -245,11 +289,75 @@ func (o *L2VPN) HasType() bool { return false } -// SetType gets a reference to the given L2VPNType and assigns it to the Type field. -func (o *L2VPN) SetType(v L2VPNType) { +// SetType gets a reference to the given BriefL2VPNType and assigns it to the Type field. +func (o *L2VPN) SetType(v BriefL2VPNType) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *L2VPN) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPN) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPN) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *L2VPN) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -282,6 +390,197 @@ func (o *L2VPN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPN) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *L2VPN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *L2VPN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPN) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPN) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *L2VPN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPN) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPN) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPN) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPN) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *L2VPN) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPN) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *L2VPN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o L2VPN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -294,6 +593,9 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Identifier.IsSet() { toSerialize["identifier"] = o.Identifier.Get() @@ -303,9 +605,29 @@ func (o L2VPN) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -324,6 +646,8 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -355,12 +679,21 @@ func (o *L2VPN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "identifier") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_request.go b/model_l2_vpn_request.go index 9722c656c..d04ba79fa 100644 --- a/model_l2_vpn_request.go +++ b/model_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,17 @@ var _ MappedNullable = &L2VPNRequest{} // L2VPNRequest Adds support for custom fields and tags. type L2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type *L2VPNTypeValue `json:"type,omitempty"` - Description *string `json:"description,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -141,9 +147,9 @@ func (o *L2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *L2VPNRequest) GetType() L2VPNTypeValue { +func (o *L2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -151,7 +157,7 @@ func (o *L2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *L2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *L2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -167,11 +173,75 @@ func (o *L2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *L2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *L2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *L2VPNRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *L2VPNRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *L2VPNRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *L2VPNRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *L2VPNRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -204,6 +274,145 @@ func (o *L2VPNRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *L2VPNRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *L2VPNRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *L2VPNRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *L2VPNRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *L2VPNRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *L2VPNRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *L2VPNRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *L2VPNRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *L2VPNRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -222,9 +431,27 @@ func (o L2VPNRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Type) { toSerialize["type"] = o.Type } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -273,7 +500,13 @@ func (o *L2VPNRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "type") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination.go b/model_l2_vpn_termination.go index b70569c1f..b959edbd5 100644 --- a/model_l2_vpn_termination.go +++ b/model_l2_vpn_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the L2VPNTermination type satisfies the MappedNullable interface at compile time @@ -20,10 +21,18 @@ var _ MappedNullable = &L2VPNTermination{} // L2VPNTermination Adds support for custom fields and tags. type L2VPNTermination struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - L2vpn L2VPN `json:"l2vpn"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + L2vpn BriefL2VPN `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + AssignedObject interface{} `json:"assigned_object"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -33,12 +42,17 @@ type _L2VPNTermination L2VPNTermination // 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 NewL2VPNTermination(id int32, url string, display string, l2vpn L2VPN) *L2VPNTermination { +func NewL2VPNTermination(id int32, url string, display string, l2vpn BriefL2VPN, assignedObjectType string, assignedObjectId int64, assignedObject interface{}, created NullableTime, lastUpdated NullableTime) *L2VPNTermination { this := L2VPNTermination{} this.Id = id this.Url = url this.Display = display this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId + this.AssignedObject = assignedObject + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -98,6 +112,38 @@ func (o *L2VPNTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *L2VPNTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *L2VPNTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *L2VPNTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *L2VPNTermination) GetDisplay() string { if o == nil { @@ -123,9 +169,9 @@ func (o *L2VPNTermination) SetDisplay(v string) { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTermination) GetL2vpn() L2VPN { +func (o *L2VPNTermination) GetL2vpn() BriefL2VPN { if o == nil { - var ret L2VPN + var ret BriefL2VPN return ret } @@ -134,7 +180,7 @@ func (o *L2VPNTermination) GetL2vpn() L2VPN { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { +func (o *L2VPNTermination) GetL2vpnOk() (*BriefL2VPN, bool) { if o == nil { return nil, false } @@ -142,10 +188,200 @@ func (o *L2VPNTermination) GetL2vpnOk() (*L2VPN, bool) { } // SetL2vpn sets field value -func (o *L2VPNTermination) SetL2vpn(v L2VPN) { +func (o *L2VPNTermination) SetL2vpn(v BriefL2VPN) { o.L2vpn = v } +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTermination) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTermination) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTermination) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTermination) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + +// GetAssignedObject returns the AssignedObject field value +// If the value is explicit nil, the zero value for interface{} will be returned +func (o *L2VPNTermination) GetAssignedObject() interface{} { + if o == nil { + var ret interface{} + return ret + } + + return o.AssignedObject +} + +// GetAssignedObjectOk returns a tuple with the AssignedObject field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetAssignedObjectOk() (*interface{}, bool) { + if o == nil || IsNil(o.AssignedObject) { + return nil, false + } + return &o.AssignedObject, true +} + +// SetAssignedObject sets field value +func (o *L2VPNTermination) SetAssignedObject(v interface{}) { + o.AssignedObject = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTermination) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNTermination) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *L2VPNTermination) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTermination) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTermination) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNTermination) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNTermination) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPNTermination) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *L2VPNTermination) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *L2VPNTermination) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *L2VPNTermination) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *L2VPNTermination) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o L2VPNTermination) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -158,8 +394,24 @@ func (o L2VPNTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if o.AssignedObject != nil { + toSerialize["assigned_object"] = o.AssignedObject + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -177,6 +429,11 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { "url", "display", "l2vpn", + "assigned_object_type", + "assigned_object_id", + "assigned_object", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -208,8 +465,16 @@ func (o *L2VPNTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "assigned_object") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_l2_vpn_termination_request.go b/model_l2_vpn_termination_request.go index 6b293da4e..b3cdc0fdb 100644 --- a/model_l2_vpn_termination_request.go +++ b/model_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,11 @@ var _ MappedNullable = &L2VPNTerminationRequest{} // L2VPNTerminationRequest Adds support for custom fields and tags. type L2VPNTerminationRequest struct { - L2vpn L2VPNRequest `json:"l2vpn"` + L2vpn BriefL2VPNRequest `json:"l2vpn"` + AssignedObjectType string `json:"assigned_object_type"` + AssignedObjectId int64 `json:"assigned_object_id"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -30,9 +34,11 @@ type _L2VPNTerminationRequest L2VPNTerminationRequest // 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 NewL2VPNTerminationRequest(l2vpn L2VPNRequest) *L2VPNTerminationRequest { +func NewL2VPNTerminationRequest(l2vpn BriefL2VPNRequest, assignedObjectType string, assignedObjectId int64) *L2VPNTerminationRequest { this := L2VPNTerminationRequest{} this.L2vpn = l2vpn + this.AssignedObjectType = assignedObjectType + this.AssignedObjectId = assignedObjectId return &this } @@ -45,9 +51,9 @@ func NewL2VPNTerminationRequestWithDefaults() *L2VPNTerminationRequest { } // GetL2vpn returns the L2vpn field value -func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *L2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } @@ -56,7 +62,7 @@ func (o *L2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value // and a boolean to check if the value has been set. -func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *L2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil { return nil, false } @@ -64,10 +70,122 @@ func (o *L2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { } // SetL2vpn sets field value -func (o *L2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +func (o *L2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = v } +// GetAssignedObjectType returns the AssignedObjectType field value +func (o *L2VPNTerminationRequest) GetAssignedObjectType() string { + if o == nil { + var ret string + return ret + } + + return o.AssignedObjectType +} + +// GetAssignedObjectTypeOk returns a tuple with the AssignedObjectType field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectType, true +} + +// SetAssignedObjectType sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectType(v string) { + o.AssignedObjectType = v +} + +// GetAssignedObjectId returns the AssignedObjectId field value +func (o *L2VPNTerminationRequest) GetAssignedObjectId() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.AssignedObjectId +} + +// GetAssignedObjectIdOk returns a tuple with the AssignedObjectId field value +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetAssignedObjectIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.AssignedObjectId, true +} + +// SetAssignedObjectId sets field value +func (o *L2VPNTerminationRequest) SetAssignedObjectId(v int64) { + o.AssignedObjectId = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *L2VPNTerminationRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *L2VPNTerminationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *L2VPNTerminationRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *L2VPNTerminationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *L2VPNTerminationRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *L2VPNTerminationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -79,6 +197,14 @@ func (o L2VPNTerminationRequest) MarshalJSON() ([]byte, error) { func (o L2VPNTerminationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["l2vpn"] = o.L2vpn + toSerialize["assigned_object_type"] = o.AssignedObjectType + toSerialize["assigned_object_id"] = o.AssignedObjectId + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -93,6 +219,8 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "l2vpn", + "assigned_object_type", + "assigned_object_id", } allProperties := make(map[string]interface{}) @@ -123,6 +251,10 @@ func (o *L2VPNTerminationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "l2vpn") + delete(additionalProperties, "assigned_object_type") + delete(additionalProperties, "assigned_object_id") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location.go b/model_location.go index 3da41e65f..87d26727a 100644 --- a/model_location.go +++ b/model_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Location type satisfies the MappedNullable interface at compile time @@ -20,14 +21,26 @@ var _ MappedNullable = &Location{} // Location Extends PrimaryModelSerializer to include MPTT support. type Location struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - RackCount int32 `json:"rack_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSite `json:"site"` + Parent NullableNestedLocation `json:"parent,omitempty"` + Status *LocationStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + RackCount int32 `json:"rack_count"` + DeviceCount *int32 `json:"device_count,omitempty"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,13 +50,16 @@ 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, display string, name string, slug string, rackCount int32, depth int32) *Location { +func NewLocation(id int32, url string, display string, name string, slug string, site BriefSite, created NullableTime, lastUpdated NullableTime, rackCount int32, depth int32) *Location { this := Location{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Site = site + this.Created = created + this.LastUpdated = lastUpdated this.RackCount = rackCount this.Depth = depth return &this @@ -105,6 +121,38 @@ func (o *Location) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Location) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Location) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Location) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Location) GetDisplay() string { if o == nil { @@ -177,6 +225,180 @@ func (o *Location) SetSlug(v string) { o.Slug = v } +// GetSite returns the Site field value +func (o *Location) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Location) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Location) SetSite(v BriefSite) { + o.Site = v +} + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetParent() NestedLocation { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocation + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetParentOk() (*NestedLocation, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *Location) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocation and assigns it to the Parent field. +func (o *Location) SetParent(v NestedLocation) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *Location) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *Location) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Location) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Location) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Location) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Location) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Location) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Location) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Location) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Location) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Location) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Location) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Location) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Location) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +431,122 @@ func (o *Location) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Location) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Location) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Location) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Location) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Location) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Location) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Location) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Location) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Location) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Location) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Location) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetRackCount returns the RackCount field value func (o *Location) GetRackCount() int32 { if o == nil { @@ -233,6 +571,38 @@ func (o *Location) SetRackCount(v int32) { o.RackCount = v } +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Location) GetDeviceCount() int32 { + if o == nil || IsNil(o.DeviceCount) { + var ret int32 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Location) GetDeviceCountOk() (*int32, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Location) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int32 and assigns it to the DeviceCount field. +func (o *Location) SetDeviceCount(v int32) { + o.DeviceCount = &v +} + // GetDepth returns the Depth field value func (o *Location) GetDepth() int32 { if o == nil { @@ -269,13 +639,40 @@ func (o Location) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["rack_count"] = o.RackCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } toSerialize["_depth"] = o.Depth for key, value := range o.AdditionalProperties { @@ -295,6 +692,9 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "site", + "created", + "last_updated", "rack_count", "_depth", } @@ -328,11 +728,22 @@ func (o *Location) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "rack_count") + delete(additionalProperties, "device_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties } diff --git a/model_location_request.go b/model_location_request.go index 5f282485a..1a78cb4dc 100644 --- a/model_location_request.go +++ b/model_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &LocationRequest{} // LocationRequest Extends PrimaryModelSerializer to include MPTT support. type LocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSiteRequest `json:"site"` + Parent NullableNestedLocationRequest `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,10 +40,11 @@ type _LocationRequest LocationRequest // 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 NewLocationRequest(name string, slug string) *LocationRequest { +func NewLocationRequest(name string, slug string, site BriefSiteRequest) *LocationRequest { this := LocationRequest{} this.Name = name this.Slug = slug + this.Site = site return &this } @@ -95,6 +104,180 @@ func (o *LocationRequest) SetSlug(v string) { o.Slug = v } +// GetSite returns the Site field value +func (o *LocationRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *LocationRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetParent() NestedLocationRequest { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedLocationRequest + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LocationRequest) GetParentOk() (*NestedLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *LocationRequest) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedLocationRequest and assigns it to the Parent field. +func (o *LocationRequest) SetParent(v NestedLocationRequest) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *LocationRequest) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *LocationRequest) UnsetParent() { + o.Parent.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *LocationRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *LocationRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *LocationRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *LocationRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *LocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *LocationRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *LocationRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *LocationRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *LocationRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *LocationRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *LocationRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *LocationRequest) SetFacility(v string) { + o.Facility = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *LocationRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +310,70 @@ func (o *LocationRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *LocationRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *LocationRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *LocationRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *LocationRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *LocationRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *LocationRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *LocationRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o LocationRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +386,28 @@ func (o LocationRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + toSerialize["site"] = o.Site + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -157,6 +423,7 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "name", "slug", + "site", } allProperties := make(map[string]interface{}) @@ -188,7 +455,14 @@ func (o *LocationRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "site") + delete(additionalProperties, "parent") + delete(additionalProperties, "status") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_location_status.go b/model_location_status.go index 2486c2dce..23dba3676 100644 --- a/model_location_status.go +++ b/model_location_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_location_status_label.go b/model_location_status_label.go index a7eb2cc75..ecd779a63 100644 --- a/model_location_status_label.go +++ b/model_location_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_location_status_value.go b/model_location_status_value.go index 24b5f6f4f..fe360de7d 100644 --- a/model_location_status_value.go +++ b/model_location_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_manufacturer.go b/model_manufacturer.go index 5be331410..275bf8e47 100644 --- a/model_manufacturer.go +++ b/model_manufacturer.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Manufacturer type satisfies the MappedNullable interface at compile time @@ -20,13 +21,20 @@ var _ MappedNullable = &Manufacturer{} // Manufacturer Adds support for custom fields and tags. type Manufacturer struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DevicetypeCount *int64 `json:"devicetype_count,omitempty"` + InventoryitemCount int64 `json:"inventoryitem_count"` + PlatformCount int64 `json:"platform_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +44,17 @@ type _Manufacturer Manufacturer // 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 NewManufacturer(id int32, url string, display string, name string, slug string) *Manufacturer { +func NewManufacturer(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, inventoryitemCount int64, platformCount int64) *Manufacturer { this := Manufacturer{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.InventoryitemCount = inventoryitemCount + this.PlatformCount = platformCount return &this } @@ -102,6 +114,38 @@ func (o *Manufacturer) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Manufacturer) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Manufacturer) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Manufacturer) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Manufacturer) GetDisplay() string { if o == nil { @@ -206,6 +250,122 @@ func (o *Manufacturer) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Manufacturer) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Manufacturer) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Manufacturer) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Manufacturer) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Manufacturer) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Manufacturer) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Manufacturer) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Manufacturer) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Manufacturer) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Manufacturer) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Manufacturer) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Manufacturer) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDevicetypeCount returns the DevicetypeCount field value if set, zero value otherwise. func (o *Manufacturer) GetDevicetypeCount() int64 { if o == nil || IsNil(o.DevicetypeCount) { @@ -238,6 +398,54 @@ func (o *Manufacturer) SetDevicetypeCount(v int64) { o.DevicetypeCount = &v } +// GetInventoryitemCount returns the InventoryitemCount field value +func (o *Manufacturer) GetInventoryitemCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.InventoryitemCount +} + +// GetInventoryitemCountOk returns a tuple with the InventoryitemCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetInventoryitemCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.InventoryitemCount, true +} + +// SetInventoryitemCount sets field value +func (o *Manufacturer) SetInventoryitemCount(v int64) { + o.InventoryitemCount = v +} + +// GetPlatformCount returns the PlatformCount field value +func (o *Manufacturer) GetPlatformCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PlatformCount +} + +// GetPlatformCountOk returns a tuple with the PlatformCount field value +// and a boolean to check if the value has been set. +func (o *Manufacturer) GetPlatformCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PlatformCount, true +} + +// SetPlatformCount sets field value +func (o *Manufacturer) SetPlatformCount(v int64) { + o.PlatformCount = v +} + func (o Manufacturer) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -250,15 +458,28 @@ func (o Manufacturer) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DevicetypeCount) { toSerialize["devicetype_count"] = o.DevicetypeCount } + toSerialize["inventoryitem_count"] = o.InventoryitemCount + toSerialize["platform_count"] = o.PlatformCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -277,6 +498,10 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", + "inventoryitem_count", + "platform_count", } allProperties := make(map[string]interface{}) @@ -308,11 +533,18 @@ func (o *Manufacturer) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "devicetype_count") + delete(additionalProperties, "inventoryitem_count") + delete(additionalProperties, "platform_count") o.AdditionalProperties = additionalProperties } diff --git a/model_manufacturer_request.go b/model_manufacturer_request.go index 35e495df8..4a1298fd4 100644 --- a/model_manufacturer_request.go +++ b/model_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,11 @@ var _ MappedNullable = &ManufacturerRequest{} // ManufacturerRequest Adds support for custom fields and tags. type ManufacturerRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -127,6 +129,70 @@ func (o *ManufacturerRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ManufacturerRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManufacturerRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ManufacturerRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ManufacturerRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ManufacturerRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ManufacturerRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ManufacturerRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ManufacturerRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ManufacturerRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -142,6 +208,12 @@ func (o ManufacturerRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,6 +261,8 @@ func (o *ManufacturerRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module.go b/model_module.go index 7154265d7..8b43e7376 100644 --- a/model_module.go +++ b/model_module.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Module type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &Module{} // Module Adds support for custom fields and tags. type Module struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - ModuleBay NestedModuleBay `json:"module_bay"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + ModuleBay NestedModuleBay `json:"module_bay"` + ModuleType BriefModuleType `json:"module_type"` + Status *ModuleStatus `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this device + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,13 +47,16 @@ type _Module Module // 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 NewModule(id int32, url string, display string, device Device, moduleBay NestedModuleBay) *Module { +func NewModule(id int32, url string, display string, device BriefDevice, moduleBay NestedModuleBay, moduleType BriefModuleType, created NullableTime, lastUpdated NullableTime) *Module { this := Module{} this.Id = id this.Url = url this.Display = display this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -100,6 +116,38 @@ func (o *Module) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Module) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Module) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Module) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Module) GetDisplay() string { if o == nil { @@ -125,9 +173,9 @@ func (o *Module) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *Module) GetDevice() Device { +func (o *Module) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -136,7 +184,7 @@ func (o *Module) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *Module) GetDeviceOk() (*Device, bool) { +func (o *Module) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -144,7 +192,7 @@ func (o *Module) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *Module) SetDevice(v Device) { +func (o *Module) SetDevice(v BriefDevice) { o.Device = v } @@ -172,6 +220,317 @@ func (o *Module) SetModuleBay(v NestedModuleBay) { o.ModuleBay = v } +// GetModuleType returns the ModuleType field value +func (o *Module) GetModuleType() BriefModuleType { + if o == nil { + var ret BriefModuleType + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *Module) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *Module) SetModuleType(v BriefModuleType) { + o.ModuleType = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Module) GetStatus() ModuleStatus { + if o == nil || IsNil(o.Status) { + var ret ModuleStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetStatusOk() (*ModuleStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Module) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. +func (o *Module) SetStatus(v ModuleStatus) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Module) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Module) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Module) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Module) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Module) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *Module) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *Module) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Module) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *Module) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *Module) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *Module) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Module) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Module) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Module) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Module) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Module) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Module) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Module) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Module) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Module) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Module) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Module) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Module) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Module) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Module) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Module) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o Module) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -184,9 +543,36 @@ func (o Module) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -205,6 +591,9 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { "display", "device", "module_bay", + "module_type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -236,9 +625,20 @@ func (o *Module) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_bay.go b/model_module_bay.go index 3f883cc15..2e0896d01 100644 --- a/model_module_bay.go +++ b/model_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,14 @@ var _ MappedNullable = &ModuleBay{} // ModuleBay Adds support for custom fields and tags. type ModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` - InstalledModule NullableModule `json:"installed_module,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModule `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -45,7 +47,7 @@ type _ModuleBay ModuleBay // 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 NewModuleBay(id int32, url string, display string, device Device, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { +func NewModuleBay(id int32, url string, display string, device BriefDevice, name string, created NullableTime, lastUpdated NullableTime) *ModuleBay { this := ModuleBay{} this.Id = id this.Url = url @@ -113,6 +115,38 @@ func (o *ModuleBay) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ModuleBay) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleBay) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ModuleBay) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ModuleBay) GetDisplay() string { if o == nil { @@ -138,9 +172,9 @@ func (o *ModuleBay) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *ModuleBay) GetDevice() Device { +func (o *ModuleBay) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -149,7 +183,7 @@ func (o *ModuleBay) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBay) GetDeviceOk() (*Device, bool) { +func (o *ModuleBay) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -157,10 +191,53 @@ func (o *ModuleBay) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *ModuleBay) SetDevice(v Device) { +func (o *ModuleBay) SetDevice(v BriefDevice) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBay) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBay) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBay) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *ModuleBay) SetModule(v BriefModule) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBay) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBay) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBay) GetName() string { if o == nil { @@ -186,9 +263,9 @@ func (o *ModuleBay) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBay) GetInstalledModule() Module { +func (o *ModuleBay) GetInstalledModule() BriefModule { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret Module + var ret BriefModule return ret } return *o.InstalledModule.Get() @@ -197,7 +274,7 @@ func (o *ModuleBay) GetInstalledModule() Module { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBay) GetInstalledModuleOk() (*Module, bool) { +func (o *ModuleBay) GetInstalledModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -213,8 +290,8 @@ func (o *ModuleBay) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModule and assigns it to the InstalledModule field. -func (o *ModuleBay) SetInstalledModule(v Module) { +// SetInstalledModule gets a reference to the given NullableBriefModule and assigns it to the InstalledModule field. +func (o *ModuleBay) SetInstalledModule(v BriefModule) { o.InstalledModule.Set(&v) } @@ -452,8 +529,14 @@ func (o ModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -526,8 +609,10 @@ func (o *ModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_request.go b/model_module_bay_request.go index 7fb1ba15c..cbd1195a4 100644 --- a/model_module_bay_request.go +++ b/model_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ var _ MappedNullable = &ModuleBayRequest{} // ModuleBayRequest Adds support for custom fields and tags. type ModuleBayRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -39,7 +40,7 @@ type _ModuleBayRequest ModuleBayRequest // 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 NewModuleBayRequest(device DeviceRequest, name string) *ModuleBayRequest { +func NewModuleBayRequest(device BriefDeviceRequest, name string) *ModuleBayRequest { this := ModuleBayRequest{} this.Device = device this.Name = name @@ -55,9 +56,9 @@ func NewModuleBayRequestWithDefaults() *ModuleBayRequest { } // GetDevice returns the Device field value -func (o *ModuleBayRequest) GetDevice() DeviceRequest { +func (o *ModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -66,7 +67,7 @@ func (o *ModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -74,10 +75,53 @@ func (o *ModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleBayRequest) SetDevice(v DeviceRequest) { +func (o *ModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *ModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *ModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *ModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *ModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *ModuleBayRequest) GetName() string { if o == nil { @@ -103,9 +147,9 @@ func (o *ModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *ModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -114,7 +158,7 @@ func (o *ModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *ModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -130,8 +174,8 @@ func (o *ModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *ModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *ModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } @@ -316,6 +360,9 @@ func (o ModuleBayRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name if o.InstalledModule.IsSet() { toSerialize["installed_module"] = o.InstalledModule.Get() @@ -380,6 +427,7 @@ func (o *ModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_module_bay_template.go b/model_module_bay_template.go index 114c363b6..5bd9ec7e2 100644 --- a/model_module_bay_template.go +++ b/model_module_bay_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,11 @@ var _ MappedNullable = &ModuleBayTemplate{} // ModuleBayTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType DeviceType `json:"device_type"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -43,12 +44,11 @@ type _ModuleBayTemplate ModuleBayTemplate // 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 NewModuleBayTemplate(id int32, url string, display string, deviceType DeviceType, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { +func NewModuleBayTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *ModuleBayTemplate { this := ModuleBayTemplate{} this.Id = id this.Url = url this.Display = display - this.DeviceType = deviceType this.Name = name this.Created = created this.LastUpdated = lastUpdated @@ -135,28 +135,90 @@ func (o *ModuleBayTemplate) SetDisplay(v string) { o.Display = v } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplate) GetDeviceType() DeviceType { - if o == nil { - var ret DeviceType +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *ModuleBayTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} - return o.DeviceType +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *ModuleBayTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) } -// SetDeviceType sets field value -func (o *ModuleBayTemplate) SetDeviceType(v DeviceType) { - o.DeviceType = v +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplate) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -344,7 +406,12 @@ func (o ModuleBayTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -373,7 +440,6 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "device_type", "name", "created", "last_updated", @@ -410,6 +476,7 @@ func (o *ModuleBayTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "url") delete(additionalProperties, "display") delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_bay_template_request.go b/model_module_bay_template_request.go index 6e407360e..44f41aafd 100644 --- a/model_module_bay_template_request.go +++ b/model_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,8 @@ var _ MappedNullable = &ModuleBayTemplateRequest{} // ModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type ModuleBayTemplateRequest struct { - DeviceType DeviceTypeRequest `json:"device_type"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -37,9 +38,8 @@ type _ModuleBayTemplateRequest ModuleBayTemplateRequest // 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 NewModuleBayTemplateRequest(deviceType DeviceTypeRequest, name string) *ModuleBayTemplateRequest { +func NewModuleBayTemplateRequest(name string) *ModuleBayTemplateRequest { this := ModuleBayTemplateRequest{} - this.DeviceType = deviceType this.Name = name return &this } @@ -52,28 +52,90 @@ func NewModuleBayTemplateRequestWithDefaults() *ModuleBayTemplateRequest { return &this } -// GetDeviceType returns the DeviceType field value -func (o *ModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *ModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} - return o.DeviceType +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() } -// GetDeviceTypeOk returns a tuple with the DeviceType field value +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *ModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } - return &o.DeviceType, true + return o.ModuleType.Get(), o.ModuleType.IsSet() } -// SetDeviceType sets field value -func (o *ModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = v +// HasModuleType returns a boolean if a field has been set. +func (o *ModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *ModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *ModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *ModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value @@ -206,7 +268,12 @@ func (o ModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o ModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Label) { toSerialize["label"] = o.Label @@ -230,7 +297,6 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ - "device_type", "name", } @@ -262,6 +328,7 @@ func (o *ModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_module_request.go b/model_module_request.go index 0cdc3bf19..6f0293040 100644 --- a/model_module_request.go +++ b/model_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &ModuleRequest{} // ModuleRequest Adds support for custom fields and tags. type ModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay NestedModuleBayRequest `json:"module_bay"` + Device BriefDeviceRequest `json:"device"` + ModuleBay NestedModuleBayRequest `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this device + AssetTag NullableString `json:"asset_tag,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,10 +40,11 @@ type _ModuleRequest ModuleRequest // 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 NewModuleRequest(device DeviceRequest, moduleBay NestedModuleBayRequest) *ModuleRequest { +func NewModuleRequest(device BriefDeviceRequest, moduleBay NestedModuleBayRequest, moduleType BriefModuleTypeRequest) *ModuleRequest { this := ModuleRequest{} this.Device = device this.ModuleBay = moduleBay + this.ModuleType = moduleType return &this } @@ -47,9 +57,9 @@ func NewModuleRequestWithDefaults() *ModuleRequest { } // GetDevice returns the Device field value -func (o *ModuleRequest) GetDevice() DeviceRequest { +func (o *ModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -58,7 +68,7 @@ func (o *ModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -66,7 +76,7 @@ func (o *ModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *ModuleRequest) SetDevice(v DeviceRequest) { +func (o *ModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -94,6 +104,265 @@ func (o *ModuleRequest) SetModuleBay(v NestedModuleBayRequest) { o.ModuleBay = v } +// GetModuleType returns the ModuleType field value +func (o *ModuleRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil { + var ret BriefModuleTypeRequest + return ret + } + + return o.ModuleType +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return &o.ModuleType, true +} + +// SetModuleType sets field value +func (o *ModuleRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType = v +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *ModuleRequest) GetStatus() ModuleStatusValue { + if o == nil || IsNil(o.Status) { + var ret ModuleStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *ModuleRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *ModuleRequest) SetStatus(v ModuleStatusValue) { + o.Status = &v +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *ModuleRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *ModuleRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *ModuleRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *ModuleRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *ModuleRequest) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *ModuleRequest) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *ModuleRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetDescription returns the Description field value if set, zero value otherwise. +func (o *ModuleRequest) GetDescription() string { + if o == nil || IsNil(o.Description) { + var ret string + return ret + } + return *o.Description +} + +// GetDescriptionOk returns a tuple with the Description field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetDescriptionOk() (*string, bool) { + if o == nil || IsNil(o.Description) { + return nil, false + } + return o.Description, true +} + +// HasDescription returns a boolean if a field has been set. +func (o *ModuleRequest) HasDescription() bool { + if o != nil && !IsNil(o.Description) { + return true + } + + return false +} + +// SetDescription gets a reference to the given string and assigns it to the Description field. +func (o *ModuleRequest) SetDescription(v string) { + o.Description = &v +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ModuleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -106,6 +375,28 @@ func (o ModuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device toSerialize["module_bay"] = o.ModuleBay + toSerialize["module_type"] = o.ModuleType + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if !IsNil(o.Description) { + toSerialize["description"] = o.Description + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -121,6 +412,7 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "device", "module_bay", + "module_type", } allProperties := make(map[string]interface{}) @@ -152,6 +444,14 @@ func (o *ModuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") delete(additionalProperties, "module_bay") + delete(additionalProperties, "module_type") + delete(additionalProperties, "status") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_status.go b/model_module_status.go index a40e902cf..48c5bc43c 100644 --- a/model_module_status.go +++ b/model_module_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_module_status_label.go b/model_module_status_label.go index dfc2bb71d..8449634d8 100644 --- a/model_module_status_label.go +++ b/model_module_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_module_status_value.go b/model_module_status_value.go index f06946d30..0ef3fb8c5 100644 --- a/model_module_status_value.go +++ b/model_module_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_module_type.go b/model_module_type.go index 4b14e7719..23881c45b 100644 --- a/model_module_type.go +++ b/model_module_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ModuleType type satisfies the MappedNullable interface at compile time @@ -20,12 +21,23 @@ var _ MappedNullable = &ModuleType{} // ModuleType Adds support for custom fields and tags. type ModuleType struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Manufacturer Manufacturer `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Manufacturer BriefManufacturer `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +47,15 @@ type _ModuleType ModuleType // 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 NewModuleType(id int32, url string, display string, manufacturer Manufacturer, model string) *ModuleType { +func NewModuleType(id int32, url string, display string, manufacturer BriefManufacturer, model string, created NullableTime, lastUpdated NullableTime) *ModuleType { this := ModuleType{} this.Id = id this.Url = url this.Display = display this.Manufacturer = manufacturer this.Model = model + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +115,38 @@ func (o *ModuleType) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ModuleType) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ModuleType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ModuleType) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ModuleType) GetDisplay() string { if o == nil { @@ -126,9 +172,9 @@ func (o *ModuleType) SetDisplay(v string) { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleType) GetManufacturer() Manufacturer { +func (o *ModuleType) GetManufacturer() BriefManufacturer { if o == nil { - var ret Manufacturer + var ret BriefManufacturer return ret } @@ -137,7 +183,7 @@ func (o *ModuleType) GetManufacturer() Manufacturer { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { +func (o *ModuleType) GetManufacturerOk() (*BriefManufacturer, bool) { if o == nil { return nil, false } @@ -145,7 +191,7 @@ func (o *ModuleType) GetManufacturerOk() (*Manufacturer, bool) { } // SetManufacturer sets field value -func (o *ModuleType) SetManufacturer(v Manufacturer) { +func (o *ModuleType) SetManufacturer(v BriefManufacturer) { o.Manufacturer = v } @@ -173,6 +219,167 @@ func (o *ModuleType) SetModel(v string) { o.Model = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleType) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleType) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleType) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetAirflow() ModuleTypeAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetAirflowOk() (*ModuleTypeAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleType) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeAirflow and assigns it to the Airflow field. +func (o *ModuleType) SetAirflow(v ModuleTypeAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleType) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleType) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleType) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *ModuleType) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *ModuleType) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleType) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleType) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleType) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleType) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleType) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleType) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleType) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +412,154 @@ func (o *ModuleType) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleType) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleType) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleType) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleType) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleType) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ModuleType) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleType) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleType) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleType) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleType) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModuleType) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ModuleType) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ModuleType) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleType) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ModuleType) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ModuleType) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +572,38 @@ func (o ModuleType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,6 +622,8 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { "display", "manufacturer", "model", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +655,20 @@ func (o *ModuleType) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_airflow.go b/model_module_type_airflow.go index 593877481..cedd23f13 100644 --- a/model_module_type_airflow.go +++ b/model_module_type_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_module_type_airflow_label.go b/model_module_type_airflow_label.go index 471944e16..8f17067f1 100644 --- a/model_module_type_airflow_label.go +++ b/model_module_type_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_module_type_airflow_value.go b/model_module_type_airflow_value.go index 9a137a826..388f6b63e 100644 --- a/model_module_type_airflow_value.go +++ b/model_module_type_airflow_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_module_type_request.go b/model_module_type_request.go index e247e6402..a6f19b5ac 100644 --- a/model_module_type_request.go +++ b/model_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,17 @@ var _ MappedNullable = &ModuleTypeRequest{} // ModuleTypeRequest Adds support for custom fields and tags. type ModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` - Description *string `json:"description,omitempty"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` + // Discrete part number (optional) + PartNumber *string `json:"part_number,omitempty"` + Airflow NullableModuleTypeRequestAirflow `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +40,7 @@ type _ModuleTypeRequest ModuleTypeRequest // 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 NewModuleTypeRequest(manufacturer ManufacturerRequest, model string) *ModuleTypeRequest { +func NewModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *ModuleTypeRequest { this := ModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -48,9 +56,9 @@ func NewModuleTypeRequestWithDefaults() *ModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *ModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -59,7 +67,7 @@ func (o *ModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *ModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -67,7 +75,7 @@ func (o *ModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { } // SetManufacturer sets field value -func (o *ModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *ModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } @@ -95,6 +103,167 @@ func (o *ModuleTypeRequest) SetModel(v string) { o.Model = v } +// GetPartNumber returns the PartNumber field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetPartNumber() string { + if o == nil || IsNil(o.PartNumber) { + var ret string + return ret + } + return *o.PartNumber +} + +// GetPartNumberOk returns a tuple with the PartNumber field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetPartNumberOk() (*string, bool) { + if o == nil || IsNil(o.PartNumber) { + return nil, false + } + return o.PartNumber, true +} + +// HasPartNumber returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasPartNumber() bool { + if o != nil && !IsNil(o.PartNumber) { + return true + } + + return false +} + +// SetPartNumber gets a reference to the given string and assigns it to the PartNumber field. +func (o *ModuleTypeRequest) SetPartNumber(v string) { + o.PartNumber = &v +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetAirflow() ModuleTypeRequestAirflow { + if o == nil || IsNil(o.Airflow.Get()) { + var ret ModuleTypeRequestAirflow + return ret + } + return *o.Airflow.Get() +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetAirflowOk() (*ModuleTypeRequestAirflow, bool) { + if o == nil { + return nil, false + } + return o.Airflow.Get(), o.Airflow.IsSet() +} + +// HasAirflow returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasAirflow() bool { + if o != nil && o.Airflow.IsSet() { + return true + } + + return false +} + +// SetAirflow gets a reference to the given NullableModuleTypeRequestAirflow and assigns it to the Airflow field. +func (o *ModuleTypeRequest) SetAirflow(v ModuleTypeRequestAirflow) { + o.Airflow.Set(&v) +} + +// SetAirflowNil sets the value for Airflow to be an explicit nil +func (o *ModuleTypeRequest) SetAirflowNil() { + o.Airflow.Set(nil) +} + +// UnsetAirflow ensures that no value is present for Airflow, not even an explicit nil +func (o *ModuleTypeRequest) UnsetAirflow() { + o.Airflow.Unset() +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *ModuleTypeRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *ModuleTypeRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *ModuleTypeRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *ModuleTypeRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *ModuleTypeRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *ModuleTypeRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ModuleTypeRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +296,102 @@ func (o *ModuleTypeRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ModuleTypeRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ModuleTypeRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ModuleTypeRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ModuleTypeRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ModuleTypeRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ModuleTypeRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ModuleTypeRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +404,30 @@ func (o ModuleTypeRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model + if !IsNil(o.PartNumber) { + toSerialize["part_number"] = o.PartNumber + } + if o.Airflow.IsSet() { + toSerialize["airflow"] = o.Airflow.Get() + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +474,14 @@ func (o *ModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") + delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") + delete(additionalProperties, "weight") + delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_module_type_request_airflow.go b/model_module_type_request_airflow.go index a9747a89a..c273d3517 100644 --- a/model_module_type_request_airflow.go +++ b/model_module_type_request_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_contact_group.go b/model_nested_contact_group.go index 88eb0f283..36fea671b 100644 --- a/model_nested_contact_group.go +++ b/model_nested_contact_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ var _ MappedNullable = &NestedContactGroup{} // NestedContactGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedContactGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -102,6 +103,38 @@ func (o *NestedContactGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedContactGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedContactGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedContactGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedContactGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedContactGroup) GetDisplay() string { if o == nil { @@ -210,6 +243,9 @@ func (o NestedContactGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -264,6 +300,7 @@ func (o *NestedContactGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_contact_group_request.go b/model_nested_contact_group_request.go index f275f723d..3c524148c 100644 --- a/model_nested_contact_group_request.go +++ b/model_nested_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_device.go b/model_nested_device.go index b37d25f5e..b6fda93be 100644 --- a/model_nested_device.go +++ b/model_nested_device.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedDevice{} type NestedDevice struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name NullableString `json:"name,omitempty"` AdditionalProperties map[string]interface{} @@ -97,6 +98,38 @@ func (o *NestedDevice) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedDevice) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedDevice) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedDevice) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedDevice) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedDevice) GetDisplay() string { if o == nil { @@ -176,6 +209,9 @@ func (o NestedDevice) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Name.IsSet() { toSerialize["name"] = o.Name.Get() @@ -227,6 +263,7 @@ func (o *NestedDevice) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_device_request.go b/model_nested_device_request.go index 3d4692d86..22a6e79b8 100644 --- a/model_nested_device_request.go +++ b/model_nested_device_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_group.go b/model_nested_group.go index 434d1679e..65575d569 100644 --- a/model_nested_group.go +++ b/model_nested_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ var _ MappedNullable = &NestedGroup{} // NestedGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -98,6 +99,38 @@ func (o *NestedGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedGroup) GetDisplay() string { if o == nil { @@ -158,6 +191,9 @@ func (o NestedGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -208,6 +244,7 @@ func (o *NestedGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_interface.go b/model_nested_interface.go index fd6230adf..98f79419a 100644 --- a/model_nested_interface.go +++ b/model_nested_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedInterface{} type NestedInterface struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Device NestedDevice `json:"device"` Name string `json:"name"` @@ -103,6 +104,38 @@ func (o *NestedInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedInterface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedInterface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedInterface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedInterface) GetDisplay() string { if o == nil { @@ -254,6 +287,9 @@ func (o NestedInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device toSerialize["name"] = o.Name @@ -311,6 +347,7 @@ func (o *NestedInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "name") diff --git a/model_nested_interface_request.go b/model_nested_interface_request.go index ddb108ba7..9bd6a0c85 100644 --- a/model_nested_interface_request.go +++ b/model_nested_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template.go b/model_nested_interface_template.go index af9322a66..404e4789f 100644 --- a/model_nested_interface_template.go +++ b/model_nested_interface_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_interface_template_request.go b/model_nested_interface_template_request.go index db741a1b6..9e85468ef 100644 --- a/model_nested_interface_template_request.go +++ b/model_nested_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_ip_address.go b/model_nested_ip_address.go index 111eec2fd..6bf93937f 100644 --- a/model_nested_ip_address.go +++ b/model_nested_ip_address.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &NestedIPAddress{} // NestedIPAddress Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedIPAddress struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Family int32 `json:"family"` - Address string `json:"address"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family int32 `json:"family"` + Address string `json:"address"` AdditionalProperties map[string]interface{} } @@ -35,11 +35,10 @@ type _NestedIPAddress NestedIPAddress // 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 NewNestedIPAddress(id int32, url string, displayUrl string, display string, family int32, address string) *NestedIPAddress { +func NewNestedIPAddress(id int32, url string, display string, family int32, address string) *NestedIPAddress { this := NestedIPAddress{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Family = family this.Address = address @@ -102,28 +101,36 @@ func (o *NestedIPAddress) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *NestedIPAddress) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedIPAddress) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedIPAddress) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *NestedIPAddress) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -210,7 +217,9 @@ func (o NestedIPAddress) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["address"] = o.Address @@ -229,7 +238,6 @@ func (o *NestedIPAddress) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "family", "address", diff --git a/model_nested_ip_address_request.go b/model_nested_ip_address_request.go index 04c6e1e0d..f5f2d8f84 100644 --- a/model_nested_ip_address_request.go +++ b/model_nested_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_location.go b/model_nested_location.go index 7969efa5d..976d96c26 100644 --- a/model_nested_location.go +++ b/model_nested_location.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &NestedLocation{} // NestedLocation Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedLocation struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -36,11 +36,10 @@ 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, displayUrl string, display string, name string, slug string, depth int32) *NestedLocation { +func NewNestedLocation(id int32, url string, display string, name string, slug string, depth int32) *NestedLocation { this := NestedLocation{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -104,28 +103,36 @@ func (o *NestedLocation) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *NestedLocation) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedLocation) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedLocation) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *NestedLocation) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -236,7 +243,9 @@ func (o NestedLocation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -256,7 +265,6 @@ func (o *NestedLocation) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", diff --git a/model_nested_location_request.go b/model_nested_location_request.go index 467e1f8a8..acae80a3e 100644 --- a/model_nested_location_request.go +++ b/model_nested_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_module_bay.go b/model_nested_module_bay.go index c217493c7..5e8a4c995 100644 --- a/model_nested_module_bay.go +++ b/model_nested_module_bay.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &NestedModuleBay{} // NestedModuleBay Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBay struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InstalledModule NullableModuleBayNestedModule `json:"installed_module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -99,71 +99,60 @@ func (o *NestedModuleBay) SetUrl(v string) { o.Url = v } -// GetDisplay returns the Display field value -func (o *NestedModuleBay) GetDisplay() string { - if o == nil { +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedModuleBay) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.Display + return *o.DisplayUrl } -// GetDisplayOk returns a tuple with the Display field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { - if o == nil { +func (o *NestedModuleBay) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.Display, true + return o.DisplayUrl, true } -// SetDisplay sets field value -func (o *NestedModuleBay) SetDisplay(v string) { - o.Display = v +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedModuleBay) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBay) GetInstalledModule() ModuleBayNestedModule { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModule +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedModuleBay) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + +// GetDisplay returns the Display field value +func (o *NestedModuleBay) GetDisplay() string { + if o == nil { + var ret string return ret } - return *o.InstalledModule.Get() + + return o.Display } -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise +// GetDisplayOk returns a tuple with the Display field value // and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NestedModuleBay) GetInstalledModuleOk() (*ModuleBayNestedModule, bool) { +func (o *NestedModuleBay) GetDisplayOk() (*string, bool) { if o == nil { return nil, false } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBay) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModule and assigns it to the InstalledModule field. -func (o *NestedModuleBay) SetInstalledModule(v ModuleBayNestedModule) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBay) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) + return &o.Display, true } -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBay) UnsetInstalledModule() { - o.InstalledModule.Unset() +// SetDisplay sets field value +func (o *NestedModuleBay) SetDisplay(v string) { + o.Display = v } // GetName returns the Name field value @@ -202,10 +191,10 @@ func (o NestedModuleBay) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display"] = o.Display - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl } + toSerialize["display"] = o.Display toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -255,8 +244,8 @@ func (o *NestedModuleBay) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_module_bay_request.go b/model_nested_module_bay_request.go index cda6e8c0c..ea86510ff 100644 --- a/model_nested_module_bay_request.go +++ b/model_nested_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,7 @@ var _ MappedNullable = &NestedModuleBayRequest{} // NestedModuleBayRequest Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedModuleBayRequest struct { - InstalledModule NullableModuleBayNestedModuleRequest `json:"installed_module,omitempty"` - Name string `json:"name"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -45,49 +44,6 @@ func NewNestedModuleBayRequestWithDefaults() *NestedModuleBayRequest { return &this } -// GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *NestedModuleBayRequest) GetInstalledModule() ModuleBayNestedModuleRequest { - if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleBayNestedModuleRequest - return ret - } - return *o.InstalledModule.Get() -} - -// GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise -// and a boolean to check if the value has been set. -// NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *NestedModuleBayRequest) GetInstalledModuleOk() (*ModuleBayNestedModuleRequest, bool) { - if o == nil { - return nil, false - } - return o.InstalledModule.Get(), o.InstalledModule.IsSet() -} - -// HasInstalledModule returns a boolean if a field has been set. -func (o *NestedModuleBayRequest) HasInstalledModule() bool { - if o != nil && o.InstalledModule.IsSet() { - return true - } - - return false -} - -// SetInstalledModule gets a reference to the given NullableModuleBayNestedModuleRequest and assigns it to the InstalledModule field. -func (o *NestedModuleBayRequest) SetInstalledModule(v ModuleBayNestedModuleRequest) { - o.InstalledModule.Set(&v) -} - -// SetInstalledModuleNil sets the value for InstalledModule to be an explicit nil -func (o *NestedModuleBayRequest) SetInstalledModuleNil() { - o.InstalledModule.Set(nil) -} - -// UnsetInstalledModule ensures that no value is present for InstalledModule, not even an explicit nil -func (o *NestedModuleBayRequest) UnsetInstalledModule() { - o.InstalledModule.Unset() -} - // GetName returns the Name field value func (o *NestedModuleBayRequest) GetName() string { if o == nil { @@ -122,9 +78,6 @@ func (o NestedModuleBayRequest) MarshalJSON() ([]byte, error) { func (o NestedModuleBayRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if o.InstalledModule.IsSet() { - toSerialize["installed_module"] = o.InstalledModule.Get() - } toSerialize["name"] = o.Name for key, value := range o.AdditionalProperties { @@ -169,7 +122,6 @@ func (o *NestedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { - delete(additionalProperties, "installed_module") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties } diff --git a/model_nested_provider_account.go b/model_nested_provider_account.go index b13aaaeaf..aef1e1006 100644 --- a/model_nested_provider_account.go +++ b/model_nested_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,7 +22,7 @@ var _ MappedNullable = &NestedProviderAccount{} type NestedProviderAccount struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name *string `json:"name,omitempty"` Account string `json:"account"` @@ -35,11 +35,10 @@ type _NestedProviderAccount NestedProviderAccount // 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 NewNestedProviderAccount(id int32, url string, displayUrl string, display string, account string) *NestedProviderAccount { +func NewNestedProviderAccount(id int32, url string, display string, account string) *NestedProviderAccount { this := NestedProviderAccount{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Account = account return &this @@ -101,28 +100,36 @@ func (o *NestedProviderAccount) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *NestedProviderAccount) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedProviderAccount) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedProviderAccount) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *NestedProviderAccount) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -217,7 +224,9 @@ func (o NestedProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -238,7 +247,6 @@ func (o *NestedProviderAccount) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "account", } diff --git a/model_nested_region.go b/model_nested_region.go index 4282f5dd6..528bc1474 100644 --- a/model_nested_region.go +++ b/model_nested_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ var _ MappedNullable = &NestedRegion{} // NestedRegion Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedRegion struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -102,6 +103,38 @@ func (o *NestedRegion) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedRegion) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedRegion) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedRegion) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedRegion) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedRegion) GetDisplay() string { if o == nil { @@ -210,6 +243,9 @@ func (o NestedRegion) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -264,6 +300,7 @@ func (o *NestedRegion) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_region_request.go b/model_nested_region_request.go index 945e3f650..04986b651 100644 --- a/model_nested_region_request.go +++ b/model_nested_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_site_group.go b/model_nested_site_group.go index 1b288b168..4535a1d0e 100644 --- a/model_nested_site_group.go +++ b/model_nested_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ var _ MappedNullable = &NestedSiteGroup{} // NestedSiteGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedSiteGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -102,6 +103,38 @@ func (o *NestedSiteGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedSiteGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedSiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedSiteGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedSiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedSiteGroup) GetDisplay() string { if o == nil { @@ -210,6 +243,9 @@ func (o NestedSiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -264,6 +300,7 @@ func (o *NestedSiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_site_group_request.go b/model_nested_site_group_request.go index e0fbe632a..0a2636a65 100644 --- a/model_nested_site_group_request.go +++ b/model_nested_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tag.go b/model_nested_tag.go index f03a0a999..ffe7339d4 100644 --- a/model_nested_tag.go +++ b/model_nested_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedTag{} type NestedTag struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -101,6 +102,38 @@ func (o *NestedTag) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedTag) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedTag) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedTag) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedTag) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedTag) GetDisplay() string { if o == nil { @@ -217,6 +250,9 @@ func (o NestedTag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -272,6 +308,7 @@ func (o *NestedTag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tag_request.go b/model_nested_tag_request.go index f0d7d61b4..c1ebfde14 100644 --- a/model_nested_tag_request.go +++ b/model_nested_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_tenant_group.go b/model_nested_tenant_group.go index a157ee354..951327184 100644 --- a/model_nested_tenant_group.go +++ b/model_nested_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,13 @@ var _ MappedNullable = &NestedTenantGroup{} // NestedTenantGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedTenantGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -102,6 +103,38 @@ func (o *NestedTenantGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedTenantGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedTenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedTenantGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedTenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedTenantGroup) GetDisplay() string { if o == nil { @@ -210,6 +243,9 @@ func (o NestedTenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -264,6 +300,7 @@ func (o *NestedTenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_nested_tenant_group_request.go b/model_nested_tenant_group_request.go index c5ecbf890..5f09aac5c 100644 --- a/model_nested_tenant_group_request.go +++ b/model_nested_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_user.go b/model_nested_user.go index 470de1aff..24c72c593 100644 --- a/model_nested_user.go +++ b/model_nested_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,10 @@ var _ MappedNullable = &NestedUser{} // NestedUser Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedUser struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. Username string `json:"username"` AdditionalProperties map[string]interface{} @@ -99,6 +100,38 @@ func (o *NestedUser) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedUser) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedUser) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedUser) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedUser) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedUser) GetDisplay() string { if o == nil { @@ -159,6 +192,9 @@ func (o NestedUser) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["username"] = o.Username @@ -209,6 +245,7 @@ func (o *NestedUser) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine.go b/model_nested_virtual_machine.go index e19da59db..87873226e 100644 --- a/model_nested_virtual_machine.go +++ b/model_nested_virtual_machine.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,11 @@ var _ MappedNullable = &NestedVirtualMachine{} // NestedVirtualMachine Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedVirtualMachine struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` AdditionalProperties map[string]interface{} } @@ -98,6 +99,38 @@ func (o *NestedVirtualMachine) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedVirtualMachine) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedVirtualMachine) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedVirtualMachine) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedVirtualMachine) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedVirtualMachine) GetDisplay() string { if o == nil { @@ -158,6 +191,9 @@ func (o NestedVirtualMachine) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name @@ -208,6 +244,7 @@ func (o *NestedVirtualMachine) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") o.AdditionalProperties = additionalProperties diff --git a/model_nested_virtual_machine_request.go b/model_nested_virtual_machine_request.go index 7fb0d2b03..1ec523896 100644 --- a/model_nested_virtual_machine_request.go +++ b/model_nested_virtual_machine_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_vm_interface.go b/model_nested_vm_interface.go index be1622431..d9ac9a45c 100644 --- a/model_nested_vm_interface.go +++ b/model_nested_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedVMInterface{} type NestedVMInterface struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` VirtualMachine NestedVirtualMachine `json:"virtual_machine"` Name string `json:"name"` @@ -100,6 +101,38 @@ func (o *NestedVMInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedVMInterface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedVMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedVMInterface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedVMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedVMInterface) GetDisplay() string { if o == nil { @@ -184,6 +217,9 @@ func (o NestedVMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -236,6 +272,7 @@ func (o *NestedVMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_nested_vm_interface_request.go b/model_nested_vm_interface_request.go index ee8ecb2a3..0b65787b4 100644 --- a/model_nested_vm_interface_request.go +++ b/model_nested_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_lan_group.go b/model_nested_wireless_lan_group.go index bb782742d..fa00eaea9 100644 --- a/model_nested_wireless_lan_group.go +++ b/model_nested_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &NestedWirelessLANGroup{} // NestedWirelessLANGroup Represents an object related through a ForeignKey field. On write, it accepts a primary key (PK) value or a dictionary of attributes which can be used to uniquely identify the related object. This class should be subclassed to return a full representation of the related object on read. type NestedWirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - DisplayUrl string `json:"display_url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -36,11 +36,10 @@ 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, displayUrl string, display string, name string, slug string, depth int32) *NestedWirelessLANGroup { +func NewNestedWirelessLANGroup(id int32, url string, display string, name string, slug string, depth int32) *NestedWirelessLANGroup { this := NestedWirelessLANGroup{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Name = name this.Slug = slug @@ -104,28 +103,36 @@ func (o *NestedWirelessLANGroup) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *NestedWirelessLANGroup) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NestedWirelessLANGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedWirelessLANGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *NestedWirelessLANGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -236,7 +243,9 @@ func (o NestedWirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -256,7 +265,6 @@ func (o *NestedWirelessLANGroup) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "name", "slug", diff --git a/model_nested_wireless_lan_group_request.go b/model_nested_wireless_lan_group_request.go index 8e8b204a1..d6e22160d 100644 --- a/model_nested_wireless_lan_group_request.go +++ b/model_nested_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_nested_wireless_link.go b/model_nested_wireless_link.go index bc6328e76..60a806378 100644 --- a/model_nested_wireless_link.go +++ b/model_nested_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &NestedWirelessLink{} type NestedWirelessLink struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Ssid *string `json:"ssid,omitempty"` AdditionalProperties map[string]interface{} @@ -97,6 +98,38 @@ func (o *NestedWirelessLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *NestedWirelessLink) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *NestedWirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NestedWirelessLink) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *NestedWirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *NestedWirelessLink) GetDisplay() string { if o == nil { @@ -165,6 +198,9 @@ func (o NestedWirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if !IsNil(o.Ssid) { toSerialize["ssid"] = o.Ssid @@ -216,6 +252,7 @@ func (o *NestedWirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") o.AdditionalProperties = additionalProperties diff --git a/model_nested_wireless_link_request.go b/model_nested_wireless_link_request.go index 49e586028..68faabf4e 100644 --- a/model_nested_wireless_link_request.go +++ b/model_nested_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_notification.go b/model_notification.go index c2abe13bc..4c74bcbb6 100644 --- a/model_notification.go +++ b/model_notification.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_notification_group.go b/model_notification_group.go index 9d6f702c0..ac1a5666a 100644 --- a/model_notification_group.go +++ b/model_notification_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type NotificationGroup struct { Id int32 `json:"id"` Url string `json:"url"` Display string `json:"display"` - DisplayUrl string `json:"display_url"` + DisplayUrl *string `json:"display_url,omitempty"` Name string `json:"name"` Description *string `json:"description,omitempty"` Groups []Group `json:"groups,omitempty"` @@ -37,12 +37,11 @@ type _NotificationGroup NotificationGroup // 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 NewNotificationGroup(id int32, url string, display string, displayUrl string, name string) *NotificationGroup { +func NewNotificationGroup(id int32, url string, display string, name string) *NotificationGroup { this := NotificationGroup{} this.Id = id this.Url = url this.Display = display - this.DisplayUrl = displayUrl this.Name = name return &this } @@ -127,28 +126,36 @@ func (o *NotificationGroup) SetDisplay(v string) { o.Display = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *NotificationGroup) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *NotificationGroup) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *NotificationGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *NotificationGroup) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetName returns the Name field value @@ -284,7 +291,9 @@ func (o NotificationGroup) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -311,7 +320,6 @@ func (o *NotificationGroup) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", - "display_url", "name", } diff --git a/model_notification_group_request.go b/model_notification_group_request.go index 8a04b26b3..5929caa42 100644 --- a/model_notification_group_request.go +++ b/model_notification_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_notification_request.go b/model_notification_request.go index 7a7f80a2e..13f60ea44 100644 --- a/model_notification_request.go +++ b/model_notification_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change.go b/model_object_change.go index 24b5c95cc..b21f1855b 100644 --- a/model_object_change.go +++ b/model_object_change.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,9 +23,10 @@ var _ MappedNullable = &ObjectChange{} type ObjectChange struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Time time.Time `json:"time"` - User User `json:"user"` + User BriefUser `json:"user"` UserName string `json:"user_name"` RequestId string `json:"request_id"` Action ObjectChangeAction `json:"action"` @@ -43,7 +44,7 @@ type _ObjectChange ObjectChange // 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 NewObjectChange(id int32, url string, display string, time time.Time, user User, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { +func NewObjectChange(id int32, url string, display string, time time.Time, user BriefUser, userName string, requestId string, action ObjectChangeAction, changedObjectType string, changedObjectId int64, changedObject interface{}, prechangeData interface{}, postchangeData interface{}) *ObjectChange { this := ObjectChange{} this.Id = id this.Url = url @@ -117,6 +118,38 @@ func (o *ObjectChange) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ObjectChange) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectChange) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ObjectChange) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ObjectChange) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ObjectChange) GetDisplay() string { if o == nil { @@ -166,9 +199,9 @@ func (o *ObjectChange) SetTime(v time.Time) { } // GetUser returns the User field value -func (o *ObjectChange) GetUser() User { +func (o *ObjectChange) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -177,7 +210,7 @@ func (o *ObjectChange) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *ObjectChange) GetUserOk() (*User, bool) { +func (o *ObjectChange) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -185,7 +218,7 @@ func (o *ObjectChange) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *ObjectChange) SetUser(v User) { +func (o *ObjectChange) SetUser(v BriefUser) { o.User = v } @@ -399,6 +432,9 @@ func (o ObjectChange) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["time"] = o.Time toSerialize["user"] = o.User @@ -473,6 +509,7 @@ func (o *ObjectChange) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "time") delete(additionalProperties, "user") diff --git a/model_object_change_action.go b/model_object_change_action.go index 4e2bcdbc3..62c8dafdc 100644 --- a/model_object_change_action.go +++ b/model_object_change_action.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_label.go b/model_object_change_action_label.go index ee7329967..d5d4818eb 100644 --- a/model_object_change_action_label.go +++ b/model_object_change_action_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_change_action_value.go b/model_object_change_action_value.go index 59e9cd339..e364476c5 100644 --- a/model_object_change_action_value.go +++ b/model_object_change_action_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_permission.go b/model_object_permission.go index 7835c2b8d..0fb19a28e 100644 --- a/model_object_permission.go +++ b/model_object_permission.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,6 +22,7 @@ var _ MappedNullable = &ObjectPermission{} type ObjectPermission struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -109,6 +110,38 @@ func (o *ObjectPermission) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ObjectPermission) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ObjectPermission) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ObjectPermission) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ObjectPermission) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ObjectPermission) GetDisplay() string { if o == nil { @@ -378,6 +411,9 @@ func (o ObjectPermission) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -447,6 +483,7 @@ func (o *ObjectPermission) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_object_permission_request.go b/model_object_permission_request.go index 05e9aa4e2..cd028c124 100644 --- a/model_object_permission_request.go +++ b/model_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_object_type.go b/model_object_type.go index f08d354c9..25c4e6327 100644 --- a/model_object_type.go +++ b/model_object_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_aggregate_list.go b/model_paginated_aggregate_list.go index 81e2b8603..ebebfb512 100644 --- a/model_paginated_aggregate_list.go +++ b/model_paginated_aggregate_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_list.go b/model_paginated_asn_list.go index 183c0353f..b593c894b 100644 --- a/model_paginated_asn_list.go +++ b/model_paginated_asn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_asn_range_list.go b/model_paginated_asn_range_list.go index d96366e06..35aacac4a 100644 --- a/model_paginated_asn_range_list.go +++ b/model_paginated_asn_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_bookmark_list.go b/model_paginated_bookmark_list.go index 64a4425b2..87af0a8a8 100644 --- a/model_paginated_bookmark_list.go +++ b/model_paginated_bookmark_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_list.go b/model_paginated_cable_list.go index cc214c3b2..108b73d39 100644 --- a/model_paginated_cable_list.go +++ b/model_paginated_cable_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cable_termination_list.go b/model_paginated_cable_termination_list.go index 3a368c6b3..ec635394a 100644 --- a/model_paginated_cable_termination_list.go +++ b/model_paginated_cable_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_group_assignment_list.go b/model_paginated_circuit_group_assignment_list.go index d1dea9dd9..327936913 100644 --- a/model_paginated_circuit_group_assignment_list.go +++ b/model_paginated_circuit_group_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_group_list.go b/model_paginated_circuit_group_list.go index 06997e5d2..b3954468e 100644 --- a/model_paginated_circuit_group_list.go +++ b/model_paginated_circuit_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_list.go b/model_paginated_circuit_list.go index d2a32fd8a..69e8c4503 100644 --- a/model_paginated_circuit_list.go +++ b/model_paginated_circuit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_termination_list.go b/model_paginated_circuit_termination_list.go index 71138eab9..6fa559941 100644 --- a/model_paginated_circuit_termination_list.go +++ b/model_paginated_circuit_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_circuit_type_list.go b/model_paginated_circuit_type_list.go index 148793830..2e63bf99c 100644 --- a/model_paginated_circuit_type_list.go +++ b/model_paginated_circuit_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_group_list.go b/model_paginated_cluster_group_list.go index 2263a7dfb..6ae980f69 100644 --- a/model_paginated_cluster_group_list.go +++ b/model_paginated_cluster_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_list.go b/model_paginated_cluster_list.go index da077b2c6..ccecac286 100644 --- a/model_paginated_cluster_list.go +++ b/model_paginated_cluster_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_cluster_type_list.go b/model_paginated_cluster_type_list.go index 7243ef83d..52fa98114 100644 --- a/model_paginated_cluster_type_list.go +++ b/model_paginated_cluster_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_context_list.go b/model_paginated_config_context_list.go index 4db50833d..90b1104b0 100644 --- a/model_paginated_config_context_list.go +++ b/model_paginated_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_config_template_list.go b/model_paginated_config_template_list.go index 36f8990ff..5a8b54d15 100644 --- a/model_paginated_config_template_list.go +++ b/model_paginated_config_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_list.go b/model_paginated_console_port_list.go index 7d8bb8367..86e5c9eec 100644 --- a/model_paginated_console_port_list.go +++ b/model_paginated_console_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_port_template_list.go b/model_paginated_console_port_template_list.go index b424049c9..dcfd71a2b 100644 --- a/model_paginated_console_port_template_list.go +++ b/model_paginated_console_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_list.go b/model_paginated_console_server_port_list.go index adfb94743..582044ed0 100644 --- a/model_paginated_console_server_port_list.go +++ b/model_paginated_console_server_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_console_server_port_template_list.go b/model_paginated_console_server_port_template_list.go index 51278f9f8..5ff33fc38 100644 --- a/model_paginated_console_server_port_template_list.go +++ b/model_paginated_console_server_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_assignment_list.go b/model_paginated_contact_assignment_list.go index ea9e23946..7505b266e 100644 --- a/model_paginated_contact_assignment_list.go +++ b/model_paginated_contact_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_group_list.go b/model_paginated_contact_group_list.go index 77bd6c70f..d98e16bb8 100644 --- a/model_paginated_contact_group_list.go +++ b/model_paginated_contact_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_list.go b/model_paginated_contact_list.go index 72294eba7..c73c69401 100644 --- a/model_paginated_contact_list.go +++ b/model_paginated_contact_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_contact_role_list.go b/model_paginated_contact_role_list.go index fc486241c..be319ef8f 100644 --- a/model_paginated_contact_role_list.go +++ b/model_paginated_contact_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_choice_set_list.go b/model_paginated_custom_field_choice_set_list.go index 48e25bb94..18394bd68 100644 --- a/model_paginated_custom_field_choice_set_list.go +++ b/model_paginated_custom_field_choice_set_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_field_list.go b/model_paginated_custom_field_list.go index 1f0c58fc0..b31488154 100644 --- a/model_paginated_custom_field_list.go +++ b/model_paginated_custom_field_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_custom_link_list.go b/model_paginated_custom_link_list.go index 00815cc84..c28b76cca 100644 --- a/model_paginated_custom_link_list.go +++ b/model_paginated_custom_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_file_list.go b/model_paginated_data_file_list.go index 260f045b2..a1cd693a2 100644 --- a/model_paginated_data_file_list.go +++ b/model_paginated_data_file_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_data_source_list.go b/model_paginated_data_source_list.go index 326295e6d..d85493f9f 100644 --- a/model_paginated_data_source_list.go +++ b/model_paginated_data_source_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_list.go b/model_paginated_device_bay_list.go index c83d4e2c6..d49898ef8 100644 --- a/model_paginated_device_bay_list.go +++ b/model_paginated_device_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_bay_template_list.go b/model_paginated_device_bay_template_list.go index 45928db4d..e980220bd 100644 --- a/model_paginated_device_bay_template_list.go +++ b/model_paginated_device_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_role_list.go b/model_paginated_device_role_list.go index 15f1f91b8..1f7549003 100644 --- a/model_paginated_device_role_list.go +++ b/model_paginated_device_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_type_list.go b/model_paginated_device_type_list.go index 66636b1bf..4a713ec96 100644 --- a/model_paginated_device_type_list.go +++ b/model_paginated_device_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_device_with_config_context_list.go b/model_paginated_device_with_config_context_list.go index 654c3dff0..b175d8fd5 100644 --- a/model_paginated_device_with_config_context_list.go +++ b/model_paginated_device_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_event_rule_list.go b/model_paginated_event_rule_list.go index 0d05d05cd..62979bd3c 100644 --- a/model_paginated_event_rule_list.go +++ b/model_paginated_event_rule_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_export_template_list.go b/model_paginated_export_template_list.go index d1160be70..b26aba5c4 100644 --- a/model_paginated_export_template_list.go +++ b/model_paginated_export_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_assignment_list.go b/model_paginated_fhrp_group_assignment_list.go index 45ede081c..261d1db8b 100644 --- a/model_paginated_fhrp_group_assignment_list.go +++ b/model_paginated_fhrp_group_assignment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_fhrp_group_list.go b/model_paginated_fhrp_group_list.go index a0faea759..4451ed5be 100644 --- a/model_paginated_fhrp_group_list.go +++ b/model_paginated_fhrp_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_list.go b/model_paginated_front_port_list.go index 4e6f4d89f..bc6ff5fdd 100644 --- a/model_paginated_front_port_list.go +++ b/model_paginated_front_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_front_port_template_list.go b/model_paginated_front_port_template_list.go index 66bfe434b..292fe8516 100644 --- a/model_paginated_front_port_template_list.go +++ b/model_paginated_front_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_group_list.go b/model_paginated_group_list.go index 4c9d72781..4d8188ebd 100644 --- a/model_paginated_group_list.go +++ b/model_paginated_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_policy_list.go b/model_paginated_ike_policy_list.go index f49bbcfd2..cb91c2e69 100644 --- a/model_paginated_ike_policy_list.go +++ b/model_paginated_ike_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ike_proposal_list.go b/model_paginated_ike_proposal_list.go index 7a9cb122b..8ba95890d 100644 --- a/model_paginated_ike_proposal_list.go +++ b/model_paginated_ike_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_image_attachment_list.go b/model_paginated_image_attachment_list.go index 0dcc7260c..509d0a65f 100644 --- a/model_paginated_image_attachment_list.go +++ b/model_paginated_image_attachment_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_list.go b/model_paginated_interface_list.go index 9ea763c86..081f36110 100644 --- a/model_paginated_interface_list.go +++ b/model_paginated_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_interface_template_list.go b/model_paginated_interface_template_list.go index c7f17dff3..0308b1bae 100644 --- a/model_paginated_interface_template_list.go +++ b/model_paginated_interface_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_list.go b/model_paginated_inventory_item_list.go index 8eae06c5d..96ca2ba91 100644 --- a/model_paginated_inventory_item_list.go +++ b/model_paginated_inventory_item_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_role_list.go b/model_paginated_inventory_item_role_list.go index 7a3dfa86a..fdf0bc410 100644 --- a/model_paginated_inventory_item_role_list.go +++ b/model_paginated_inventory_item_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_inventory_item_template_list.go b/model_paginated_inventory_item_template_list.go index 8e1ebbaad..712580dd1 100644 --- a/model_paginated_inventory_item_template_list.go +++ b/model_paginated_inventory_item_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_address_list.go b/model_paginated_ip_address_list.go index 71c624ba5..c368f2731 100644 --- a/model_paginated_ip_address_list.go +++ b/model_paginated_ip_address_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_range_list.go b/model_paginated_ip_range_list.go index 64b6c2ca5..685870b65 100644 --- a/model_paginated_ip_range_list.go +++ b/model_paginated_ip_range_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_policy_list.go b/model_paginated_ip_sec_policy_list.go index 3904a4021..22f14d6d1 100644 --- a/model_paginated_ip_sec_policy_list.go +++ b/model_paginated_ip_sec_policy_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_profile_list.go b/model_paginated_ip_sec_profile_list.go index 13e5dc8cc..88cd99632 100644 --- a/model_paginated_ip_sec_profile_list.go +++ b/model_paginated_ip_sec_profile_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_ip_sec_proposal_list.go b/model_paginated_ip_sec_proposal_list.go index 562d884cf..252822929 100644 --- a/model_paginated_ip_sec_proposal_list.go +++ b/model_paginated_ip_sec_proposal_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_job_list.go b/model_paginated_job_list.go index 9c5266b90..22dbc4b74 100644 --- a/model_paginated_job_list.go +++ b/model_paginated_job_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_journal_entry_list.go b/model_paginated_journal_entry_list.go index 39deffe63..30f284a5f 100644 --- a/model_paginated_journal_entry_list.go +++ b/model_paginated_journal_entry_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_list.go b/model_paginated_l2_vpn_list.go index 130fb6318..25e09b962 100644 --- a/model_paginated_l2_vpn_list.go +++ b/model_paginated_l2_vpn_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_l2_vpn_termination_list.go b/model_paginated_l2_vpn_termination_list.go index 6fdc179ae..b86c428b4 100644 --- a/model_paginated_l2_vpn_termination_list.go +++ b/model_paginated_l2_vpn_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_location_list.go b/model_paginated_location_list.go index 303ddb6f1..d2796b973 100644 --- a/model_paginated_location_list.go +++ b/model_paginated_location_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_manufacturer_list.go b/model_paginated_manufacturer_list.go index 1642d70e3..4eed41c13 100644 --- a/model_paginated_manufacturer_list.go +++ b/model_paginated_manufacturer_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_list.go b/model_paginated_module_bay_list.go index 70cca7b2d..66a611ce0 100644 --- a/model_paginated_module_bay_list.go +++ b/model_paginated_module_bay_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_bay_template_list.go b/model_paginated_module_bay_template_list.go index af3faa856..2bd1c614b 100644 --- a/model_paginated_module_bay_template_list.go +++ b/model_paginated_module_bay_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_list.go b/model_paginated_module_list.go index af55ae292..0775758ad 100644 --- a/model_paginated_module_list.go +++ b/model_paginated_module_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_module_type_list.go b/model_paginated_module_type_list.go index 375f3b8f4..1f573ebcb 100644 --- a/model_paginated_module_type_list.go +++ b/model_paginated_module_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_notification_group_list.go b/model_paginated_notification_group_list.go index 7ecd87d9a..0b4dce0c4 100644 --- a/model_paginated_notification_group_list.go +++ b/model_paginated_notification_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_notification_list.go b/model_paginated_notification_list.go index 1d663dee5..34f6e1e8b 100644 --- a/model_paginated_notification_list.go +++ b/model_paginated_notification_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_change_list.go b/model_paginated_object_change_list.go index c4cd994e4..ddf7ff085 100644 --- a/model_paginated_object_change_list.go +++ b/model_paginated_object_change_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_permission_list.go b/model_paginated_object_permission_list.go index 2484322f1..d8f13ffd3 100644 --- a/model_paginated_object_permission_list.go +++ b/model_paginated_object_permission_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_object_type_list.go b/model_paginated_object_type_list.go index 1a24ef887..2b97cf743 100644 --- a/model_paginated_object_type_list.go +++ b/model_paginated_object_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_platform_list.go b/model_paginated_platform_list.go index a5637f786..8ed283b4c 100644 --- a/model_paginated_platform_list.go +++ b/model_paginated_platform_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_feed_list.go b/model_paginated_power_feed_list.go index a90726d50..a2d4ab493 100644 --- a/model_paginated_power_feed_list.go +++ b/model_paginated_power_feed_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_list.go b/model_paginated_power_outlet_list.go index 42cc10417..d0b209463 100644 --- a/model_paginated_power_outlet_list.go +++ b/model_paginated_power_outlet_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_outlet_template_list.go b/model_paginated_power_outlet_template_list.go index dabff54c7..79a0fdda6 100644 --- a/model_paginated_power_outlet_template_list.go +++ b/model_paginated_power_outlet_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_panel_list.go b/model_paginated_power_panel_list.go index a84ec9363..b662602d3 100644 --- a/model_paginated_power_panel_list.go +++ b/model_paginated_power_panel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_list.go b/model_paginated_power_port_list.go index a1b147420..0375cf948 100644 --- a/model_paginated_power_port_list.go +++ b/model_paginated_power_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_power_port_template_list.go b/model_paginated_power_port_template_list.go index d8e709152..8171674de 100644 --- a/model_paginated_power_port_template_list.go +++ b/model_paginated_power_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_prefix_list.go b/model_paginated_prefix_list.go index 07147ed99..df2eea32e 100644 --- a/model_paginated_prefix_list.go +++ b/model_paginated_prefix_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_account_list.go b/model_paginated_provider_account_list.go index c48585038..840d8ca21 100644 --- a/model_paginated_provider_account_list.go +++ b/model_paginated_provider_account_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_list.go b/model_paginated_provider_list.go index 5b180ac54..33b454d08 100644 --- a/model_paginated_provider_list.go +++ b/model_paginated_provider_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_provider_network_list.go b/model_paginated_provider_network_list.go index b97c267f7..92b78469f 100644 --- a/model_paginated_provider_network_list.go +++ b/model_paginated_provider_network_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_list.go b/model_paginated_rack_list.go index f7bdd10a2..3586b5d8c 100644 --- a/model_paginated_rack_list.go +++ b/model_paginated_rack_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_reservation_list.go b/model_paginated_rack_reservation_list.go index 20a799464..e7a0c2901 100644 --- a/model_paginated_rack_reservation_list.go +++ b/model_paginated_rack_reservation_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_role_list.go b/model_paginated_rack_role_list.go index e15fd7e27..a493df54c 100644 --- a/model_paginated_rack_role_list.go +++ b/model_paginated_rack_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_type_list.go b/model_paginated_rack_type_list.go index 9a16db96b..b391ba501 100644 --- a/model_paginated_rack_type_list.go +++ b/model_paginated_rack_type_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rack_unit_list.go b/model_paginated_rack_unit_list.go index 6aaf2e9d7..02368cb22 100644 --- a/model_paginated_rack_unit_list.go +++ b/model_paginated_rack_unit_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_list.go b/model_paginated_rear_port_list.go index c365786aa..b1d2a6a08 100644 --- a/model_paginated_rear_port_list.go +++ b/model_paginated_rear_port_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rear_port_template_list.go b/model_paginated_rear_port_template_list.go index 72c089dfb..06a7692ae 100644 --- a/model_paginated_rear_port_template_list.go +++ b/model_paginated_rear_port_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_region_list.go b/model_paginated_region_list.go index 3107d8007..e3ee432b2 100644 --- a/model_paginated_region_list.go +++ b/model_paginated_region_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_rir_list.go b/model_paginated_rir_list.go index 87507a75d..273bd7d84 100644 --- a/model_paginated_rir_list.go +++ b/model_paginated_rir_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_role_list.go b/model_paginated_role_list.go index c22ab93d1..3df506fb0 100644 --- a/model_paginated_role_list.go +++ b/model_paginated_role_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_route_target_list.go b/model_paginated_route_target_list.go index b6f02c906..b49c9796d 100644 --- a/model_paginated_route_target_list.go +++ b/model_paginated_route_target_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_saved_filter_list.go b/model_paginated_saved_filter_list.go index 485e61081..0297dd9cd 100644 --- a/model_paginated_saved_filter_list.go +++ b/model_paginated_saved_filter_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_script_list.go b/model_paginated_script_list.go index 72fec520f..d4a9d2687 100644 --- a/model_paginated_script_list.go +++ b/model_paginated_script_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_list.go b/model_paginated_service_list.go index 08b5508be..3acfae473 100644 --- a/model_paginated_service_list.go +++ b/model_paginated_service_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_service_template_list.go b/model_paginated_service_template_list.go index e86b9abb9..75f397179 100644 --- a/model_paginated_service_template_list.go +++ b/model_paginated_service_template_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_group_list.go b/model_paginated_site_group_list.go index ddcd397c9..6b95371dd 100644 --- a/model_paginated_site_group_list.go +++ b/model_paginated_site_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_site_list.go b/model_paginated_site_list.go index a580aaeda..c8fde91b5 100644 --- a/model_paginated_site_list.go +++ b/model_paginated_site_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_subscription_list.go b/model_paginated_subscription_list.go index 1402263c4..e48753cf9 100644 --- a/model_paginated_subscription_list.go +++ b/model_paginated_subscription_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tag_list.go b/model_paginated_tag_list.go index 129bb69b6..242e35479 100644 --- a/model_paginated_tag_list.go +++ b/model_paginated_tag_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_group_list.go b/model_paginated_tenant_group_list.go index 5fcddc543..a0edd68fe 100644 --- a/model_paginated_tenant_group_list.go +++ b/model_paginated_tenant_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tenant_list.go b/model_paginated_tenant_list.go index 812dfe386..7fdb59cd7 100644 --- a/model_paginated_tenant_list.go +++ b/model_paginated_tenant_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_token_list.go b/model_paginated_token_list.go index 9a4bd2ab9..65ba5c8bb 100644 --- a/model_paginated_token_list.go +++ b/model_paginated_token_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_group_list.go b/model_paginated_tunnel_group_list.go index df1b972fb..0107d6766 100644 --- a/model_paginated_tunnel_group_list.go +++ b/model_paginated_tunnel_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_list.go b/model_paginated_tunnel_list.go index 768bdd00e..015b5274b 100644 --- a/model_paginated_tunnel_list.go +++ b/model_paginated_tunnel_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_tunnel_termination_list.go b/model_paginated_tunnel_termination_list.go index f81a84ee0..465d5c4f5 100644 --- a/model_paginated_tunnel_termination_list.go +++ b/model_paginated_tunnel_termination_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_user_list.go b/model_paginated_user_list.go index 2d6a25913..5edab9b02 100644 --- a/model_paginated_user_list.go +++ b/model_paginated_user_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_chassis_list.go b/model_paginated_virtual_chassis_list.go index 6971b8d29..f2fa107b7 100644 --- a/model_paginated_virtual_chassis_list.go +++ b/model_paginated_virtual_chassis_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_device_context_list.go b/model_paginated_virtual_device_context_list.go index 3c5f35c09..4e4ae0ce1 100644 --- a/model_paginated_virtual_device_context_list.go +++ b/model_paginated_virtual_device_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_disk_list.go b/model_paginated_virtual_disk_list.go index 1a16c146d..83b60443a 100644 --- a/model_paginated_virtual_disk_list.go +++ b/model_paginated_virtual_disk_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_virtual_machine_with_config_context_list.go b/model_paginated_virtual_machine_with_config_context_list.go index a4ee1f21d..3695d816c 100644 --- a/model_paginated_virtual_machine_with_config_context_list.go +++ b/model_paginated_virtual_machine_with_config_context_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_group_list.go b/model_paginated_vlan_group_list.go index cd2ac4951..3ecde0cc6 100644 --- a/model_paginated_vlan_group_list.go +++ b/model_paginated_vlan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vlan_list.go b/model_paginated_vlan_list.go index 28d8921ca..09303ed55 100644 --- a/model_paginated_vlan_list.go +++ b/model_paginated_vlan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vm_interface_list.go b/model_paginated_vm_interface_list.go index c7d824fa8..bbc5cb05d 100644 --- a/model_paginated_vm_interface_list.go +++ b/model_paginated_vm_interface_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_vrf_list.go b/model_paginated_vrf_list.go index 95d2794d7..ac9e09e92 100644 --- a/model_paginated_vrf_list.go +++ b/model_paginated_vrf_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_webhook_list.go b/model_paginated_webhook_list.go index 242804243..637ad3f27 100644 --- a/model_paginated_webhook_list.go +++ b/model_paginated_webhook_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_group_list.go b/model_paginated_wireless_lan_group_list.go index c311ebbe7..435adad28 100644 --- a/model_paginated_wireless_lan_group_list.go +++ b/model_paginated_wireless_lan_group_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_lan_list.go b/model_paginated_wireless_lan_list.go index cc98bc170..46c792c9c 100644 --- a/model_paginated_wireless_lan_list.go +++ b/model_paginated_wireless_lan_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_paginated_wireless_link_list.go b/model_paginated_wireless_link_list.go index 6fb1c17df..5c78f1196 100644 --- a/model_paginated_wireless_link_list.go +++ b/model_paginated_wireless_link_list.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status.go b/model_parent_child_status.go index 06c4e1b12..d28c3a767 100644 --- a/model_parent_child_status.go +++ b/model_parent_child_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_parent_child_status_1.go b/model_parent_child_status_1.go index cb1bfa703..ba815a86b 100644 --- a/model_parent_child_status_1.go +++ b/model_parent_child_status_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_asn_range_request.go b/model_patched_asn_range_request.go index 1b27ab643..f0fe2cad2 100644 --- a/model_patched_asn_range_request.go +++ b/model_patched_asn_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedASNRangeRequest{} // PatchedASNRangeRequest Adds support for custom fields and tags. type PatchedASNRangeRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Start *int64 `json:"start,omitempty"` - End *int64 `json:"end,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Start *int64 `json:"start,omitempty"` + End *int64 `json:"end,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -115,9 +115,9 @@ func (o *PatchedASNRangeRequest) SetSlug(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedASNRangeRequest) GetRir() RIRRequest { +func (o *PatchedASNRangeRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -125,7 +125,7 @@ func (o *PatchedASNRangeRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedASNRangeRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRangeRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedASNRangeRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedASNRangeRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRangeRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } @@ -211,9 +211,9 @@ func (o *PatchedASNRangeRequest) SetEnd(v int64) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { +func (o *PatchedASNRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -222,7 +222,7 @@ func (o *PatchedASNRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -238,8 +238,8 @@ func (o *PatchedASNRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_asn_request.go b/model_patched_asn_request.go index 141b3513f..b341ce047 100644 --- a/model_patched_asn_request.go +++ b/model_patched_asn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PatchedASNRequest{} // PatchedASNRequest Adds support for custom fields and tags. type PatchedASNRequest struct { // 16- or 32-bit autonomous system number - Asn *int64 `json:"asn,omitempty"` - Rir NullableRIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Asn *int64 `json:"asn,omitempty"` + Rir NullableBriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedASNRequest) SetAsn(v int64) { } // GetRir returns the Rir field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetRir() RIRRequest { +func (o *PatchedASNRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir.Get()) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir.Get() @@ -93,7 +93,7 @@ func (o *PatchedASNRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedASNRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedASNRequest) HasRir() bool { return false } -// SetRir gets a reference to the given NullableRIRRequest and assigns it to the Rir field. -func (o *PatchedASNRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given NullableBriefRIRRequest and assigns it to the Rir field. +func (o *PatchedASNRequest) SetRir(v BriefRIRRequest) { o.Rir.Set(&v) } @@ -125,9 +125,9 @@ func (o *PatchedASNRequest) UnsetRir() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedASNRequest) GetTenant() TenantRequest { +func (o *PatchedASNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -136,7 +136,7 @@ func (o *PatchedASNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedASNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedASNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *PatchedASNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedASNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedASNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_bookmark_request.go b/model_patched_bookmark_request.go index 77f3b9cf4..1b8cfd0e5 100644 --- a/model_patched_bookmark_request.go +++ b/model_patched_bookmark_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedBookmarkRequest{} // PatchedBookmarkRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedBookmarkRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - User *UserRequest `json:"user,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` AdditionalProperties map[string]interface{} } @@ -109,9 +109,9 @@ func (o *PatchedBookmarkRequest) SetObjectId(v int64) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedBookmarkRequest) GetUser() UserRequest { +func (o *PatchedBookmarkRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -119,7 +119,7 @@ func (o *PatchedBookmarkRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedBookmarkRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedBookmarkRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -135,8 +135,8 @@ func (o *PatchedBookmarkRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedBookmarkRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedBookmarkRequest) SetUser(v BriefUserRequest) { o.User = &v } diff --git a/model_patched_cable_termination_request.go b/model_patched_cable_termination_request.go index f7377564b..3121440a1 100644 --- a/model_patched_cable_termination_request.go +++ b/model_patched_cable_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_circuit_group_request.go b/model_patched_circuit_group_request.go index 10f887d38..2b7f76cdb 100644 --- a/model_patched_circuit_group_request.go +++ b/model_patched_circuit_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_circuit_termination_request.go b/model_patched_circuit_termination_request.go index 5367122df..3c255cdca 100644 --- a/model_patched_circuit_termination_request.go +++ b/model_patched_circuit_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedCircuitTerminationRequest{} // PatchedCircuitTerminationRequest Adds support for custom fields and tags. type PatchedCircuitTerminationRequest struct { - Circuit *CircuitRequest `json:"circuit,omitempty"` - TermSide *Termination1 `json:"term_side,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - ProviderNetwork NullableProviderNetworkRequest `json:"provider_network,omitempty"` + Circuit *BriefCircuitRequest `json:"circuit,omitempty"` + TermSide *Termination1 `json:"term_side,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + ProviderNetwork NullableBriefProviderNetworkRequest `json:"provider_network,omitempty"` // Physical circuit speed PortSpeed NullableInt32 `json:"port_speed,omitempty"` // Upstream speed, if different from port speed @@ -59,9 +59,9 @@ func NewPatchedCircuitTerminationRequestWithDefaults() *PatchedCircuitTerminatio } // GetCircuit returns the Circuit field value if set, zero value otherwise. -func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { +func (o *PatchedCircuitTerminationRequest) GetCircuit() BriefCircuitRequest { if o == nil || IsNil(o.Circuit) { - var ret CircuitRequest + var ret BriefCircuitRequest return ret } return *o.Circuit @@ -69,7 +69,7 @@ func (o *PatchedCircuitTerminationRequest) GetCircuit() CircuitRequest { // GetCircuitOk returns a tuple with the Circuit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*CircuitRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetCircuitOk() (*BriefCircuitRequest, bool) { if o == nil || IsNil(o.Circuit) { return nil, false } @@ -85,8 +85,8 @@ func (o *PatchedCircuitTerminationRequest) HasCircuit() bool { return false } -// SetCircuit gets a reference to the given CircuitRequest and assigns it to the Circuit field. -func (o *PatchedCircuitTerminationRequest) SetCircuit(v CircuitRequest) { +// SetCircuit gets a reference to the given BriefCircuitRequest and assigns it to the Circuit field. +func (o *PatchedCircuitTerminationRequest) SetCircuit(v BriefCircuitRequest) { o.Circuit = &v } @@ -123,9 +123,9 @@ func (o *PatchedCircuitTerminationRequest) SetTermSide(v Termination1) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { +func (o *PatchedCircuitTerminationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -134,7 +134,7 @@ func (o *PatchedCircuitTerminationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -150,8 +150,8 @@ func (o *PatchedCircuitTerminationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedCircuitTerminationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedCircuitTerminationRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -166,9 +166,9 @@ func (o *PatchedCircuitTerminationRequest) UnsetSite() { } // GetProviderNetwork returns the ProviderNetwork field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkRequest { +func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() BriefProviderNetworkRequest { if o == nil || IsNil(o.ProviderNetwork.Get()) { - var ret ProviderNetworkRequest + var ret BriefProviderNetworkRequest return ret } return *o.ProviderNetwork.Get() @@ -177,7 +177,7 @@ func (o *PatchedCircuitTerminationRequest) GetProviderNetwork() ProviderNetworkR // GetProviderNetworkOk returns a tuple with the ProviderNetwork field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*ProviderNetworkRequest, bool) { +func (o *PatchedCircuitTerminationRequest) GetProviderNetworkOk() (*BriefProviderNetworkRequest, bool) { if o == nil { return nil, false } @@ -193,8 +193,8 @@ func (o *PatchedCircuitTerminationRequest) HasProviderNetwork() bool { return false } -// SetProviderNetwork gets a reference to the given NullableProviderNetworkRequest and assigns it to the ProviderNetwork field. -func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v ProviderNetworkRequest) { +// SetProviderNetwork gets a reference to the given NullableBriefProviderNetworkRequest and assigns it to the ProviderNetwork field. +func (o *PatchedCircuitTerminationRequest) SetProviderNetwork(v BriefProviderNetworkRequest) { o.ProviderNetwork.Set(&v) } diff --git a/model_patched_circuit_type_request.go b/model_patched_circuit_type_request.go index cfb64cab6..68bba92f7 100644 --- a/model_patched_circuit_type_request.go +++ b/model_patched_circuit_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_group_request.go b/model_patched_cluster_group_request.go index 10b1fdbac..52a60ccb8 100644 --- a/model_patched_cluster_group_request.go +++ b/model_patched_cluster_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_cluster_type_request.go b/model_patched_cluster_type_request.go index bcb47d3cd..d332fb0d8 100644 --- a/model_patched_cluster_type_request.go +++ b/model_patched_cluster_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_config_context_request.go b/model_patched_config_context_request.go index f8665cfe6..2f875d0cf 100644 --- a/model_patched_config_context_request.go +++ b/model_patched_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,25 +19,25 @@ var _ MappedNullable = &PatchedConfigContextRequest{} // PatchedConfigContextRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Weight *int32 `json:"weight,omitempty"` - Description *string `json:"description,omitempty"` - IsActive *bool `json:"is_active,omitempty"` - Regions []int32 `json:"regions,omitempty"` - SiteGroups []int32 `json:"site_groups,omitempty"` - Sites []int32 `json:"sites,omitempty"` - Locations []int32 `json:"locations,omitempty"` - DeviceTypes []int32 `json:"device_types,omitempty"` - Roles []int32 `json:"roles,omitempty"` - Platforms []int32 `json:"platforms,omitempty"` - ClusterTypes []int32 `json:"cluster_types,omitempty"` - ClusterGroups []int32 `json:"cluster_groups,omitempty"` - Clusters []int32 `json:"clusters,omitempty"` - TenantGroups []int32 `json:"tenant_groups,omitempty"` - Tenants []int32 `json:"tenants,omitempty"` - Tags []string `json:"tags,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Data interface{} `json:"data,omitempty"` + Name *string `json:"name,omitempty"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + IsActive *bool `json:"is_active,omitempty"` + Regions []int32 `json:"regions,omitempty"` + SiteGroups []int32 `json:"site_groups,omitempty"` + Sites []int32 `json:"sites,omitempty"` + Locations []int32 `json:"locations,omitempty"` + DeviceTypes []int32 `json:"device_types,omitempty"` + Roles []int32 `json:"roles,omitempty"` + Platforms []int32 `json:"platforms,omitempty"` + ClusterTypes []int32 `json:"cluster_types,omitempty"` + ClusterGroups []int32 `json:"cluster_groups,omitempty"` + Clusters []int32 `json:"clusters,omitempty"` + TenantGroups []int32 `json:"tenant_groups,omitempty"` + Tenants []int32 `json:"tenants,omitempty"` + Tags []string `json:"tags,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Data interface{} `json:"data,omitempty"` AdditionalProperties map[string]interface{} } @@ -605,9 +605,9 @@ func (o *PatchedConfigContextRequest) SetTags(v []string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigContextRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -615,7 +615,7 @@ func (o *PatchedConfigContextRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigContextRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigContextRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -631,8 +631,8 @@ func (o *PatchedConfigContextRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigContextRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigContextRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_config_template_request.go b/model_patched_config_template_request.go index f4db50b41..911399020 100644 --- a/model_patched_config_template_request.go +++ b/model_patched_config_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,9 +24,9 @@ type PatchedConfigTemplateRequest struct { // Any additional parameters to pass when constructing the Jinja2 environment. EnvironmentParams interface{} `json:"environment_params,omitempty"` // Jinja2 template code. - TemplateCode *string `json:"template_code,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` + TemplateCode *string `json:"template_code,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedConfigTemplateRequest) SetTemplateCode(v string) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedConfigTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -189,7 +189,7 @@ func (o *PatchedConfigTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedConfigTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedConfigTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedConfigTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedConfigTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_contact_request.go b/model_patched_contact_request.go index d5baee7b4..86643699b 100644 --- a/model_patched_contact_request.go +++ b/model_patched_contact_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedContactRequest{} // PatchedContactRequest Adds support for custom fields and tags. type PatchedContactRequest struct { - Group NullableContactGroupRequest `json:"group,omitempty"` - Name *string `json:"name,omitempty"` - Title *string `json:"title,omitempty"` - Phone *string `json:"phone,omitempty"` - Email *string `json:"email,omitempty"` - Address *string `json:"address,omitempty"` - Link *string `json:"link,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Group NullableBriefContactGroupRequest `json:"group,omitempty"` + Name *string `json:"name,omitempty"` + Title *string `json:"title,omitempty"` + Phone *string `json:"phone,omitempty"` + Email *string `json:"email,omitempty"` + Address *string `json:"address,omitempty"` + Link *string `json:"link,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -53,9 +53,9 @@ func NewPatchedContactRequestWithDefaults() *PatchedContactRequest { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { +func (o *PatchedContactRequest) GetGroup() BriefContactGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ContactGroupRequest + var ret BriefContactGroupRequest return ret } return *o.Group.Get() @@ -64,7 +64,7 @@ func (o *PatchedContactRequest) GetGroup() ContactGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedContactRequest) GetGroupOk() (*ContactGroupRequest, bool) { +func (o *PatchedContactRequest) GetGroupOk() (*BriefContactGroupRequest, bool) { if o == nil { return nil, false } @@ -80,8 +80,8 @@ func (o *PatchedContactRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableContactGroupRequest and assigns it to the Group field. -func (o *PatchedContactRequest) SetGroup(v ContactGroupRequest) { +// SetGroup gets a reference to the given NullableBriefContactGroupRequest and assigns it to the Group field. +func (o *PatchedContactRequest) SetGroup(v BriefContactGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_contact_role_request.go b/model_patched_contact_role_request.go index 70f768954..fe6d2ce75 100644 --- a/model_patched_contact_role_request.go +++ b/model_patched_contact_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_custom_link_request.go b/model_patched_custom_link_request.go index 19833836f..947176c8d 100644 --- a/model_patched_custom_link_request.go +++ b/model_patched_custom_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_dashboard_request.go b/model_patched_dashboard_request.go index eeef729d4..3f49ff271 100644 --- a/model_patched_dashboard_request.go +++ b/model_patched_dashboard_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_device_bay_request.go b/model_patched_device_bay_request.go index a9acadd79..91d4db86a 100644 --- a/model_patched_device_bay_request.go +++ b/model_patched_device_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedDeviceBayRequest{} // PatchedDeviceBayRequest Adds support for custom fields and tags. type PatchedDeviceBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Description *string `json:"description,omitempty"` - InstalledDevice NullableDeviceRequest `json:"installed_device,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Label *string `json:"label,omitempty"` + Description *string `json:"description,omitempty"` + InstalledDevice NullableBriefDeviceRequest `json:"installed_device,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedDeviceBayRequestWithDefaults() *PatchedDeviceBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -60,7 +60,7 @@ func (o *PatchedDeviceBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedDeviceBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedDeviceBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedDeviceBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -178,9 +178,9 @@ func (o *PatchedDeviceBayRequest) SetDescription(v string) { } // GetInstalledDevice returns the InstalledDevice field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { +func (o *PatchedDeviceBayRequest) GetInstalledDevice() BriefDeviceRequest { if o == nil || IsNil(o.InstalledDevice.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.InstalledDevice.Get() @@ -189,7 +189,7 @@ func (o *PatchedDeviceBayRequest) GetInstalledDevice() DeviceRequest { // GetInstalledDeviceOk returns a tuple with the InstalledDevice field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedDeviceBayRequest) GetInstalledDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *PatchedDeviceBayRequest) HasInstalledDevice() bool { return false } -// SetInstalledDevice gets a reference to the given NullableDeviceRequest and assigns it to the InstalledDevice field. -func (o *PatchedDeviceBayRequest) SetInstalledDevice(v DeviceRequest) { +// SetInstalledDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the InstalledDevice field. +func (o *PatchedDeviceBayRequest) SetInstalledDevice(v BriefDeviceRequest) { o.InstalledDevice.Set(&v) } diff --git a/model_patched_device_bay_template_request.go b/model_patched_device_bay_template_request.go index 0bb253897..970a311e3 100644 --- a/model_patched_device_bay_template_request.go +++ b/model_patched_device_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedDeviceBayTemplateRequest{} // PatchedDeviceBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedDeviceBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -48,9 +48,9 @@ func NewPatchedDeviceBayTemplateRequestWithDefaults() *PatchedDeviceBayTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -58,7 +58,7 @@ func (o *PatchedDeviceBayTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedDeviceBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedDeviceBayTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedDeviceBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } diff --git a/model_patched_device_role_request.go b/model_patched_device_role_request.go index f2ef464b9..67aa8781c 100644 --- a/model_patched_device_role_request.go +++ b/model_patched_device_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,11 +23,11 @@ type PatchedDeviceRoleRequest struct { Slug *string `json:"slug,omitempty"` Color *string `json:"color,omitempty"` // Virtual machines may be assigned to this role - VmRole *bool `json:"vm_role,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VmRole *bool `json:"vm_role,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -179,9 +179,9 @@ func (o *PatchedDeviceRoleRequest) SetVmRole(v bool) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedDeviceRoleRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -190,7 +190,7 @@ func (o *PatchedDeviceRoleRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedDeviceRoleRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *PatchedDeviceRoleRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedDeviceRoleRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_export_template_request.go b/model_patched_export_template_request.go index db7c07934..b29395c68 100644 --- a/model_patched_export_template_request.go +++ b/model_patched_export_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,8 @@ type PatchedExportTemplateRequest struct { // Extension to append to the rendered filename FileExtension *string `json:"file_extension,omitempty"` // Download file as attachment - AsAttachment *bool `json:"as_attachment,omitempty"` - DataSource *DataSourceRequest `json:"data_source,omitempty"` + AsAttachment *bool `json:"as_attachment,omitempty"` + DataSource *BriefDataSourceRequest `json:"data_source,omitempty"` AdditionalProperties map[string]interface{} } @@ -278,9 +278,9 @@ func (o *PatchedExportTemplateRequest) SetAsAttachment(v bool) { } // GetDataSource returns the DataSource field value if set, zero value otherwise. -func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { +func (o *PatchedExportTemplateRequest) GetDataSource() BriefDataSourceRequest { if o == nil || IsNil(o.DataSource) { - var ret DataSourceRequest + var ret BriefDataSourceRequest return ret } return *o.DataSource @@ -288,7 +288,7 @@ func (o *PatchedExportTemplateRequest) GetDataSource() DataSourceRequest { // GetDataSourceOk returns a tuple with the DataSource field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*DataSourceRequest, bool) { +func (o *PatchedExportTemplateRequest) GetDataSourceOk() (*BriefDataSourceRequest, bool) { if o == nil || IsNil(o.DataSource) { return nil, false } @@ -304,8 +304,8 @@ func (o *PatchedExportTemplateRequest) HasDataSource() bool { return false } -// SetDataSource gets a reference to the given DataSourceRequest and assigns it to the DataSource field. -func (o *PatchedExportTemplateRequest) SetDataSource(v DataSourceRequest) { +// SetDataSource gets a reference to the given BriefDataSourceRequest and assigns it to the DataSource field. +func (o *PatchedExportTemplateRequest) SetDataSource(v BriefDataSourceRequest) { o.DataSource = &v } diff --git a/model_patched_fhrp_group_assignment_request.go b/model_patched_fhrp_group_assignment_request.go index de95655e2..34f0b8903 100644 --- a/model_patched_fhrp_group_assignment_request.go +++ b/model_patched_fhrp_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedFHRPGroupAssignmentRequest{} // PatchedFHRPGroupAssignmentRequest Adds support for custom fields and tags. type PatchedFHRPGroupAssignmentRequest struct { - Group *FHRPGroupRequest `json:"group,omitempty"` - InterfaceType *string `json:"interface_type,omitempty"` - InterfaceId *int64 `json:"interface_id,omitempty"` - Priority *int32 `json:"priority,omitempty"` + Group *BriefFHRPGroupRequest `json:"group,omitempty"` + InterfaceType *string `json:"interface_type,omitempty"` + InterfaceId *int64 `json:"interface_id,omitempty"` + Priority *int32 `json:"priority,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,9 +46,9 @@ func NewPatchedFHRPGroupAssignmentRequestWithDefaults() *PatchedFHRPGroupAssignm } // GetGroup returns the Group field value if set, zero value otherwise. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() BriefFHRPGroupRequest { if o == nil || IsNil(o.Group) { - var ret FHRPGroupRequest + var ret BriefFHRPGroupRequest return ret } return *o.Group @@ -56,7 +56,7 @@ func (o *PatchedFHRPGroupAssignmentRequest) GetGroup() FHRPGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*FHRPGroupRequest, bool) { +func (o *PatchedFHRPGroupAssignmentRequest) GetGroupOk() (*BriefFHRPGroupRequest, bool) { if o == nil || IsNil(o.Group) { return nil, false } @@ -72,8 +72,8 @@ func (o *PatchedFHRPGroupAssignmentRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given FHRPGroupRequest and assigns it to the Group field. -func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v FHRPGroupRequest) { +// SetGroup gets a reference to the given BriefFHRPGroupRequest and assigns it to the Group field. +func (o *PatchedFHRPGroupAssignmentRequest) SetGroup(v BriefFHRPGroupRequest) { o.Group = &v } diff --git a/model_patched_fhrp_group_request.go b/model_patched_fhrp_group_request.go index 1d2151449..a7e40d2b7 100644 --- a/model_patched_fhrp_group_request.go +++ b/model_patched_fhrp_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,15 +19,15 @@ var _ MappedNullable = &PatchedFHRPGroupRequest{} // PatchedFHRPGroupRequest Adds support for custom fields and tags. type PatchedFHRPGroupRequest struct { - Name *string `json:"name,omitempty"` - Protocol *FHRPGroupProtocol `json:"protocol,omitempty"` - GroupId *int32 `json:"group_id,omitempty"` - AuthType *AuthenticationType `json:"auth_type,omitempty"` - AuthKey *string `json:"auth_key,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Protocol *BriefFHRPGroupProtocol `json:"protocol,omitempty"` + GroupId *int32 `json:"group_id,omitempty"` + AuthType *AuthenticationType2 `json:"auth_type,omitempty"` + AuthKey *string `json:"auth_key,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -83,9 +83,9 @@ func (o *PatchedFHRPGroupRequest) SetName(v string) { } // GetProtocol returns the Protocol field value if set, zero value otherwise. -func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { +func (o *PatchedFHRPGroupRequest) GetProtocol() BriefFHRPGroupProtocol { if o == nil || IsNil(o.Protocol) { - var ret FHRPGroupProtocol + var ret BriefFHRPGroupProtocol return ret } return *o.Protocol @@ -93,7 +93,7 @@ func (o *PatchedFHRPGroupRequest) GetProtocol() FHRPGroupProtocol { // GetProtocolOk returns a tuple with the Protocol field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*FHRPGroupProtocol, bool) { +func (o *PatchedFHRPGroupRequest) GetProtocolOk() (*BriefFHRPGroupProtocol, bool) { if o == nil || IsNil(o.Protocol) { return nil, false } @@ -109,8 +109,8 @@ func (o *PatchedFHRPGroupRequest) HasProtocol() bool { return false } -// SetProtocol gets a reference to the given FHRPGroupProtocol and assigns it to the Protocol field. -func (o *PatchedFHRPGroupRequest) SetProtocol(v FHRPGroupProtocol) { +// SetProtocol gets a reference to the given BriefFHRPGroupProtocol and assigns it to the Protocol field. +func (o *PatchedFHRPGroupRequest) SetProtocol(v BriefFHRPGroupProtocol) { o.Protocol = &v } @@ -147,9 +147,9 @@ func (o *PatchedFHRPGroupRequest) SetGroupId(v int32) { } // GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType { +func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType2 { if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType + var ret AuthenticationType2 return ret } return *o.AuthType @@ -157,7 +157,7 @@ func (o *PatchedFHRPGroupRequest) GetAuthType() AuthenticationType { // GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedFHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType, bool) { +func (o *PatchedFHRPGroupRequest) GetAuthTypeOk() (*AuthenticationType2, bool) { if o == nil || IsNil(o.AuthType) { return nil, false } @@ -173,8 +173,8 @@ func (o *PatchedFHRPGroupRequest) HasAuthType() bool { return false } -// SetAuthType gets a reference to the given AuthenticationType and assigns it to the AuthType field. -func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType) { +// SetAuthType gets a reference to the given AuthenticationType2 and assigns it to the AuthType field. +func (o *PatchedFHRPGroupRequest) SetAuthType(v AuthenticationType2) { o.AuthType = &v } diff --git a/model_patched_group_request.go b/model_patched_group_request.go index 5d42e7f8d..7d8f37147 100644 --- a/model_patched_group_request.go +++ b/model_patched_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_image_attachment_request.go b/model_patched_image_attachment_request.go index 0544fcc6f..aca1e9963 100644 --- a/model_patched_image_attachment_request.go +++ b/model_patched_image_attachment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,8 +24,6 @@ type PatchedImageAttachmentRequest struct { ObjectId *int64 `json:"object_id,omitempty"` Name *string `json:"name,omitempty"` Image **os.File `json:"image,omitempty"` - ImageHeight *int32 `json:"image_height,omitempty"` - ImageWidth *int32 `json:"image_width,omitempty"` AdditionalProperties map[string]interface{} } @@ -176,70 +174,6 @@ func (o *PatchedImageAttachmentRequest) SetImage(v *os.File) { o.Image = &v } -// GetImageHeight returns the ImageHeight field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageHeight() int32 { - if o == nil || IsNil(o.ImageHeight) { - var ret int32 - return ret - } - return *o.ImageHeight -} - -// GetImageHeightOk returns a tuple with the ImageHeight field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageHeightOk() (*int32, bool) { - if o == nil || IsNil(o.ImageHeight) { - return nil, false - } - return o.ImageHeight, true -} - -// HasImageHeight returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageHeight() bool { - if o != nil && !IsNil(o.ImageHeight) { - return true - } - - return false -} - -// SetImageHeight gets a reference to the given int32 and assigns it to the ImageHeight field. -func (o *PatchedImageAttachmentRequest) SetImageHeight(v int32) { - o.ImageHeight = &v -} - -// GetImageWidth returns the ImageWidth field value if set, zero value otherwise. -func (o *PatchedImageAttachmentRequest) GetImageWidth() int32 { - if o == nil || IsNil(o.ImageWidth) { - var ret int32 - return ret - } - return *o.ImageWidth -} - -// GetImageWidthOk returns a tuple with the ImageWidth field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedImageAttachmentRequest) GetImageWidthOk() (*int32, bool) { - if o == nil || IsNil(o.ImageWidth) { - return nil, false - } - return o.ImageWidth, true -} - -// HasImageWidth returns a boolean if a field has been set. -func (o *PatchedImageAttachmentRequest) HasImageWidth() bool { - if o != nil && !IsNil(o.ImageWidth) { - return true - } - - return false -} - -// SetImageWidth gets a reference to the given int32 and assigns it to the ImageWidth field. -func (o *PatchedImageAttachmentRequest) SetImageWidth(v int32) { - o.ImageWidth = &v -} - func (o PatchedImageAttachmentRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -262,12 +196,6 @@ func (o PatchedImageAttachmentRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Image) { toSerialize["image"] = o.Image } - if !IsNil(o.ImageHeight) { - toSerialize["image_height"] = o.ImageHeight - } - if !IsNil(o.ImageWidth) { - toSerialize["image_width"] = o.ImageWidth - } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -294,8 +222,6 @@ func (o *PatchedImageAttachmentRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "object_id") delete(additionalProperties, "name") delete(additionalProperties, "image") - delete(additionalProperties, "image_height") - delete(additionalProperties, "image_width") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_inventory_item_request.go b/model_patched_inventory_item_request.go index 399e6ab59..c954764c1 100644 --- a/model_patched_inventory_item_request.go +++ b/model_patched_inventory_item_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedInventoryItemRequest{} // PatchedInventoryItemRequest Adds support for custom fields and tags. type PatchedInventoryItemRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Serial *string `json:"serial,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedInventoryItemRequestWithDefaults() *PatchedInventoryItemRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { +func (o *PatchedInventoryItemRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedInventoryItemRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedInventoryItemRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,8 +87,8 @@ func (o *PatchedInventoryItemRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedInventoryItemRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedInventoryItemRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -200,9 +200,9 @@ func (o *PatchedInventoryItemRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedInventoryItemRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -211,7 +211,7 @@ func (o *PatchedInventoryItemRequest) GetRole() InventoryItemRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -227,8 +227,8 @@ func (o *PatchedInventoryItemRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -243,9 +243,9 @@ func (o *PatchedInventoryItemRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedInventoryItemRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -254,7 +254,7 @@ func (o *PatchedInventoryItemRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -270,8 +270,8 @@ func (o *PatchedInventoryItemRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_inventory_item_role_request.go b/model_patched_inventory_item_role_request.go index f3abd36d0..64ec0b5a0 100644 --- a/model_patched_inventory_item_role_request.go +++ b/model_patched_inventory_item_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_inventory_item_template_request.go b/model_patched_inventory_item_template_request.go index 070c2170d..4f92d6ef6 100644 --- a/model_patched_inventory_item_template_request.go +++ b/model_patched_inventory_item_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedInventoryItemTemplateRequest{} // PatchedInventoryItemTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedInventoryItemTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Role NullableInventoryItemRoleRequest `json:"role,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` + Label *string `json:"label,omitempty"` + Role NullableBriefInventoryItemRoleRequest `json:"role,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` // Manufacturer-assigned part identifier PartId *string `json:"part_id,omitempty"` Description *string `json:"description,omitempty"` @@ -55,9 +55,9 @@ func NewPatchedInventoryItemTemplateRequestWithDefaults() *PatchedInventoryItemT } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -65,7 +65,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetDeviceType() DeviceTypeRequest // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedInventoryItemTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } @@ -194,9 +194,9 @@ func (o *PatchedInventoryItemTemplateRequest) SetLabel(v string) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest { +func (o *PatchedInventoryItemTemplateRequest) GetRole() BriefInventoryItemRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret InventoryItemRoleRequest + var ret BriefInventoryItemRoleRequest return ret } return *o.Role.Get() @@ -205,7 +205,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetRole() InventoryItemRoleRequest // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*InventoryItemRoleRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetRoleOk() (*BriefInventoryItemRoleRequest, bool) { if o == nil { return nil, false } @@ -221,8 +221,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableInventoryItemRoleRequest and assigns it to the Role field. -func (o *PatchedInventoryItemTemplateRequest) SetRole(v InventoryItemRoleRequest) { +// SetRole gets a reference to the given NullableBriefInventoryItemRoleRequest and assigns it to the Role field. +func (o *PatchedInventoryItemTemplateRequest) SetRole(v BriefInventoryItemRoleRequest) { o.Role.Set(&v) } @@ -237,9 +237,9 @@ func (o *PatchedInventoryItemTemplateRequest) UnsetRole() { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -248,7 +248,7 @@ func (o *PatchedInventoryItemTemplateRequest) GetManufacturer() ManufacturerRequ // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedInventoryItemTemplateRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -264,8 +264,8 @@ func (o *PatchedInventoryItemTemplateRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedInventoryItemTemplateRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } diff --git a/model_patched_l2_vpn_termination_request.go b/model_patched_l2_vpn_termination_request.go index 73cb0720e..8aa5facb2 100644 --- a/model_patched_l2_vpn_termination_request.go +++ b/model_patched_l2_vpn_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedL2VPNTerminationRequest{} // PatchedL2VPNTerminationRequest Adds support for custom fields and tags. type PatchedL2VPNTerminationRequest struct { - L2vpn *L2VPNRequest `json:"l2vpn,omitempty"` + L2vpn *BriefL2VPNRequest `json:"l2vpn,omitempty"` AssignedObjectType *string `json:"assigned_object_type,omitempty"` AssignedObjectId *int64 `json:"assigned_object_id,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -47,9 +47,9 @@ func NewPatchedL2VPNTerminationRequestWithDefaults() *PatchedL2VPNTerminationReq } // GetL2vpn returns the L2vpn field value if set, zero value otherwise. -func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { +func (o *PatchedL2VPNTerminationRequest) GetL2vpn() BriefL2VPNRequest { if o == nil || IsNil(o.L2vpn) { - var ret L2VPNRequest + var ret BriefL2VPNRequest return ret } return *o.L2vpn @@ -57,7 +57,7 @@ func (o *PatchedL2VPNTerminationRequest) GetL2vpn() L2VPNRequest { // GetL2vpnOk returns a tuple with the L2vpn field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*L2VPNRequest, bool) { +func (o *PatchedL2VPNTerminationRequest) GetL2vpnOk() (*BriefL2VPNRequest, bool) { if o == nil || IsNil(o.L2vpn) { return nil, false } @@ -73,8 +73,8 @@ func (o *PatchedL2VPNTerminationRequest) HasL2vpn() bool { return false } -// SetL2vpn gets a reference to the given L2VPNRequest and assigns it to the L2vpn field. -func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v L2VPNRequest) { +// SetL2vpn gets a reference to the given BriefL2VPNRequest and assigns it to the L2vpn field. +func (o *PatchedL2VPNTerminationRequest) SetL2vpn(v BriefL2VPNRequest) { o.L2vpn = &v } diff --git a/model_patched_manufacturer_request.go b/model_patched_manufacturer_request.go index 7a325529e..549edf946 100644 --- a/model_patched_manufacturer_request.go +++ b/model_patched_manufacturer_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_module_bay_request.go b/model_patched_module_bay_request.go index 8a6147e44..71e9add6c 100644 --- a/model_patched_module_bay_request.go +++ b/model_patched_module_bay_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,10 @@ var _ MappedNullable = &PatchedModuleBayRequest{} // PatchedModuleBayRequest Adds support for custom fields and tags. type PatchedModuleBayRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Name *string `json:"name,omitempty"` - InstalledModule NullableModuleRequest `json:"installed_module,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` + InstalledModule NullableBriefModuleRequest `json:"installed_module,omitempty"` // Physical label Label *string `json:"label,omitempty"` // Identifier to reference when renaming installed components @@ -52,9 +53,9 @@ func NewPatchedModuleBayRequestWithDefaults() *PatchedModuleBayRequest { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { +func (o *PatchedModuleBayRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -62,7 +63,7 @@ func (o *PatchedModuleBayRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedModuleBayRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -78,11 +79,54 @@ func (o *PatchedModuleBayRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedModuleBayRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedModuleBayRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PatchedModuleBayRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedModuleBayRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PatchedModuleBayRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PatchedModuleBayRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value if set, zero value otherwise. func (o *PatchedModuleBayRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -116,9 +160,9 @@ func (o *PatchedModuleBayRequest) SetName(v string) { } // GetInstalledModule returns the InstalledModule field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { +func (o *PatchedModuleBayRequest) GetInstalledModule() BriefModuleRequest { if o == nil || IsNil(o.InstalledModule.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.InstalledModule.Get() @@ -127,7 +171,7 @@ func (o *PatchedModuleBayRequest) GetInstalledModule() ModuleRequest { // GetInstalledModuleOk returns a tuple with the InstalledModule field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*ModuleRequest, bool) { +func (o *PatchedModuleBayRequest) GetInstalledModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -143,8 +187,8 @@ func (o *PatchedModuleBayRequest) HasInstalledModule() bool { return false } -// SetInstalledModule gets a reference to the given NullableModuleRequest and assigns it to the InstalledModule field. -func (o *PatchedModuleBayRequest) SetInstalledModule(v ModuleRequest) { +// SetInstalledModule gets a reference to the given NullableBriefModuleRequest and assigns it to the InstalledModule field. +func (o *PatchedModuleBayRequest) SetInstalledModule(v BriefModuleRequest) { o.InstalledModule.Set(&v) } @@ -331,6 +375,9 @@ func (o PatchedModuleBayRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Device) { toSerialize["device"] = o.Device } + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -375,6 +422,7 @@ func (o *PatchedModuleBayRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "installed_module") delete(additionalProperties, "label") diff --git a/model_patched_module_bay_template_request.go b/model_patched_module_bay_template_request.go index baeb07d2c..616c03e55 100644 --- a/model_patched_module_bay_template_request.go +++ b/model_patched_module_bay_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,8 @@ var _ MappedNullable = &PatchedModuleBayTemplateRequest{} // PatchedModuleBayTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedModuleBayTemplateRequest struct { - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -49,36 +50,90 @@ func NewPatchedModuleBayTemplateRequestWithDefaults() *PatchedModuleBayTemplateR return &this } -// GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedModuleBayTemplateRequest) GetDeviceType() DeviceTypeRequest { - if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest return ret } - return *o.DeviceType + return *o.DeviceType.Get() } // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { - if o == nil || IsNil(o.DeviceType) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { return nil, false } - return o.DeviceType, true + return o.DeviceType.Get(), o.DeviceType.IsSet() } // HasDeviceType returns a boolean if a field has been set. func (o *PatchedModuleBayTemplateRequest) HasDeviceType() bool { - if o != nil && !IsNil(o.DeviceType) { + if o != nil && o.DeviceType.IsSet() { return true } return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v DeviceTypeRequest) { - o.DeviceType = &v +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedModuleBayTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedModuleBayTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedModuleBayTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PatchedModuleBayTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedModuleBayTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PatchedModuleBayTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PatchedModuleBayTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() } // GetName returns the Name field value if set, zero value otherwise. @@ -219,8 +274,11 @@ func (o PatchedModuleBayTemplateRequest) MarshalJSON() ([]byte, error) { func (o PatchedModuleBayTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} - if !IsNil(o.DeviceType) { - toSerialize["device_type"] = o.DeviceType + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() } if !IsNil(o.Name) { toSerialize["name"] = o.Name @@ -257,6 +315,7 @@ func (o *PatchedModuleBayTemplateRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") delete(additionalProperties, "label") delete(additionalProperties, "position") diff --git a/model_patched_notification_group_request.go b/model_patched_notification_group_request.go index 6abb9f42c..620636049 100644 --- a/model_patched_notification_group_request.go +++ b/model_patched_notification_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_notification_request.go b/model_patched_notification_request.go index ed3fc13c2..e14310858 100644 --- a/model_patched_notification_request.go +++ b/model_patched_notification_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_object_permission_request.go b/model_patched_object_permission_request.go index 39a1c0ffd..a06253809 100644 --- a/model_patched_object_permission_request.go +++ b/model_patched_object_permission_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_platform_request.go b/model_patched_platform_request.go index 2b69b6bb3..fc37fae68 100644 --- a/model_patched_platform_request.go +++ b/model_patched_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPlatformRequest{} // PatchedPlatformRequest Adds support for custom fields and tags. type PatchedPlatformRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Manufacturer NullableManufacturerRequest `json:"manufacturer,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` - Description *string `json:"description,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedPlatformRequest) SetSlug(v string) { } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedPlatformRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer.Get()) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer.Get() @@ -124,7 +124,7 @@ func (o *PatchedPlatformRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedPlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedPlatformRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given NullableManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedPlatformRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedPlatformRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer.Set(&v) } @@ -156,9 +156,9 @@ func (o *PatchedPlatformRequest) UnsetManufacturer() { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedPlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -167,7 +167,7 @@ func (o *PatchedPlatformRequest) GetConfigTemplate() ConfigTemplateRequest { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedPlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -183,8 +183,8 @@ func (o *PatchedPlatformRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedPlatformRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedPlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_power_panel_request.go b/model_patched_power_panel_request.go index 855e8aea4..5d78327f4 100644 --- a/model_patched_power_panel_request.go +++ b/model_patched_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedPowerPanelRequest{} // PatchedPowerPanelRequest Adds support for custom fields and tags. type PatchedPowerPanelRequest struct { - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -49,9 +49,9 @@ func NewPatchedPowerPanelRequestWithDefaults() *PatchedPowerPanelRequest { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { +func (o *PatchedPowerPanelRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -59,7 +59,7 @@ func (o *PatchedPowerPanelRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedPowerPanelRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedPowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -75,15 +75,15 @@ func (o *PatchedPowerPanelRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedPowerPanelRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedPowerPanelRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { +func (o *PatchedPowerPanelRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -92,7 +92,7 @@ func (o *PatchedPowerPanelRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedPowerPanelRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedPowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedPowerPanelRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedPowerPanelRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedPowerPanelRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } diff --git a/model_patched_provider_account_request.go b/model_patched_provider_account_request.go index e413eac6c..990fb5ffd 100644 --- a/model_patched_provider_account_request.go +++ b/model_patched_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderAccountRequest{} // PatchedProviderAccountRequest Adds support for custom fields and tags. type PatchedProviderAccountRequest struct { - Provider *ProviderRequest `json:"provider,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` Account *string `json:"account,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedProviderAccountRequestWithDefaults() *PatchedProviderAccountReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderAccountRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -63,7 +63,7 @@ func (o *PatchedProviderAccountRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderAccountRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedProviderAccountRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderAccountRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderAccountRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_network_request.go b/model_patched_provider_network_request.go index f25971cb9..096011b69 100644 --- a/model_patched_provider_network_request.go +++ b/model_patched_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedProviderNetworkRequest{} // PatchedProviderNetworkRequest Adds support for custom fields and tags. type PatchedProviderNetworkRequest struct { - Provider *ProviderRequest `json:"provider,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` Name *string `json:"name,omitempty"` ServiceId *string `json:"service_id,omitempty"` Description *string `json:"description,omitempty"` @@ -49,9 +49,9 @@ func NewPatchedProviderNetworkRequestWithDefaults() *PatchedProviderNetworkReque } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { +func (o *PatchedProviderNetworkRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -59,7 +59,7 @@ func (o *PatchedProviderNetworkRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedProviderNetworkRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedProviderNetworkRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedProviderNetworkRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedProviderNetworkRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } diff --git a/model_patched_provider_request.go b/model_patched_provider_request.go index 1c4432678..78fca91f1 100644 --- a/model_patched_provider_request.go +++ b/model_patched_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rack_reservation_request.go b/model_patched_rack_reservation_request.go index c5e404cb3..58622d725 100644 --- a/model_patched_rack_reservation_request.go +++ b/model_patched_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedRackReservationRequest{} // PatchedRackReservationRequest Adds support for custom fields and tags. type PatchedRackReservationRequest struct { - Rack *RackRequest `json:"rack,omitempty"` - Units []int32 `json:"units,omitempty"` - User *UserRequest `json:"user,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack *BriefRackRequest `json:"rack,omitempty"` + Units []int32 `json:"units,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -50,9 +50,9 @@ func NewPatchedRackReservationRequestWithDefaults() *PatchedRackReservationReque } // GetRack returns the Rack field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetRack() RackRequest { +func (o *PatchedRackReservationRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack @@ -60,7 +60,7 @@ func (o *PatchedRackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedRackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil || IsNil(o.Rack) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedRackReservationRequest) HasRack() bool { return false } -// SetRack gets a reference to the given RackRequest and assigns it to the Rack field. -func (o *PatchedRackReservationRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given BriefRackRequest and assigns it to the Rack field. +func (o *PatchedRackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = &v } @@ -114,9 +114,9 @@ func (o *PatchedRackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedRackReservationRequest) GetUser() UserRequest { +func (o *PatchedRackReservationRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -124,7 +124,7 @@ func (o *PatchedRackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedRackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedRackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -140,15 +140,15 @@ func (o *PatchedRackReservationRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedRackReservationRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedRackReservationRequest) SetUser(v BriefUserRequest) { o.User = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { +func (o *PatchedRackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -157,7 +157,7 @@ func (o *PatchedRackReservationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -173,8 +173,8 @@ func (o *PatchedRackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_rack_role_request.go b/model_patched_rack_role_request.go index 6d892aa82..945f63e19 100644 --- a/model_patched_rack_role_request.go +++ b/model_patched_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_rir_request.go b/model_patched_rir_request.go index 0b99fe529..365474c15 100644 --- a/model_patched_rir_request.go +++ b/model_patched_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_role_request.go b/model_patched_role_request.go index 7352ad89e..601137ff9 100644 --- a/model_patched_role_request.go +++ b/model_patched_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_route_target_request.go b/model_patched_route_target_request.go index b2a367b40..3f52faea4 100644 --- a/model_patched_route_target_request.go +++ b/model_patched_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedRouteTargetRequest{} // PatchedRouteTargetRequest Adds support for custom fields and tags. type PatchedRouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -81,9 +81,9 @@ func (o *PatchedRouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { +func (o *PatchedRouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -92,7 +92,7 @@ func (o *PatchedRouteTargetRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedRouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedRouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *PatchedRouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedRouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedRouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_saved_filter_request.go b/model_patched_saved_filter_request.go index 0f76328b3..3b0c413ae 100644 --- a/model_patched_saved_filter_request.go +++ b/model_patched_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_script_input_request.go b/model_patched_script_input_request.go index c9e282a82..03d2c577c 100644 --- a/model_patched_script_input_request.go +++ b/model_patched_script_input_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_subscription_request.go b/model_patched_subscription_request.go index 065fca25d..cb0545450 100644 --- a/model_patched_subscription_request.go +++ b/model_patched_subscription_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_tag_request.go b/model_patched_tag_request.go index df4b1fd5b..7533f4adf 100644 --- a/model_patched_tag_request.go +++ b/model_patched_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_tenant_request.go b/model_patched_tenant_request.go index 394851841..aef921c39 100644 --- a/model_patched_tenant_request.go +++ b/model_patched_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedTenantRequest{} // PatchedTenantRequest Adds support for custom fields and tags. type PatchedTenantRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Group NullableTenantGroupRequest `json:"group,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Group NullableBriefTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedTenantRequest) SetSlug(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { +func (o *PatchedTenantRequest) GetGroup() BriefTenantGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TenantGroupRequest + var ret BriefTenantGroupRequest return ret } return *o.Group.Get() @@ -124,7 +124,7 @@ func (o *PatchedTenantRequest) GetGroup() TenantGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedTenantRequest) GetGroupOk() (*TenantGroupRequest, bool) { +func (o *PatchedTenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { if o == nil { return nil, false } @@ -140,8 +140,8 @@ func (o *PatchedTenantRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTenantGroupRequest and assigns it to the Group field. -func (o *PatchedTenantRequest) SetGroup(v TenantGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *PatchedTenantRequest) SetGroup(v BriefTenantGroupRequest) { o.Group.Set(&v) } diff --git a/model_patched_token_request.go b/model_patched_token_request.go index 87277f496..664f39455 100644 --- a/model_patched_token_request.go +++ b/model_patched_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &PatchedTokenRequest{} // PatchedTokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedTokenRequest struct { - User *UserRequest `json:"user,omitempty"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User *BriefUserRequest `json:"user,omitempty"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -50,9 +50,9 @@ func NewPatchedTokenRequestWithDefaults() *PatchedTokenRequest { } // GetUser returns the User field value if set, zero value otherwise. -func (o *PatchedTokenRequest) GetUser() UserRequest { +func (o *PatchedTokenRequest) GetUser() BriefUserRequest { if o == nil || IsNil(o.User) { - var ret UserRequest + var ret BriefUserRequest return ret } return *o.User @@ -60,7 +60,7 @@ func (o *PatchedTokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedTokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *PatchedTokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil || IsNil(o.User) { return nil, false } @@ -76,8 +76,8 @@ func (o *PatchedTokenRequest) HasUser() bool { return false } -// SetUser gets a reference to the given UserRequest and assigns it to the User field. -func (o *PatchedTokenRequest) SetUser(v UserRequest) { +// SetUser gets a reference to the given BriefUserRequest and assigns it to the User field. +func (o *PatchedTokenRequest) SetUser(v BriefUserRequest) { o.User = &v } diff --git a/model_patched_tunnel_group_request.go b/model_patched_tunnel_group_request.go index d01b7dc83..fbd94296e 100644 --- a/model_patched_tunnel_group_request.go +++ b/model_patched_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_user_request.go b/model_patched_user_request.go index b03530987..d4df6bfdd 100644 --- a/model_patched_user_request.go +++ b/model_patched_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_virtual_disk_request.go b/model_patched_virtual_disk_request.go index 17afe0ffa..682838138 100644 --- a/model_patched_virtual_disk_request.go +++ b/model_patched_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedVirtualDiskRequest{} // PatchedVirtualDiskRequest Adds support for custom fields and tags. type PatchedVirtualDiskRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Size *int32 `json:"size,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Size *int32 `json:"size,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,9 +48,9 @@ func NewPatchedVirtualDiskRequestWithDefaults() *PatchedVirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedVirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -58,7 +58,7 @@ func (o *PatchedVirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedVirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -74,8 +74,8 @@ func (o *PatchedVirtualDiskRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedVirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } diff --git a/model_patched_vlan_group_request.go b/model_patched_vlan_group_request.go index 39f5d4933..c2ac2e12a 100644 --- a/model_patched_vlan_group_request.go +++ b/model_patched_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,10 @@ var _ MappedNullable = &PatchedVLANGroupRequest{} // PatchedVLANGroupRequest Adds support for custom fields and tags. type PatchedVLANGroupRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -202,70 +198,6 @@ func (o *PatchedVLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *PatchedVLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *PatchedVLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedVLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *PatchedVLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *PatchedVLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedVLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -384,12 +316,6 @@ func (o PatchedVLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -425,8 +351,6 @@ func (o *PatchedVLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_patched_vrf_request.go b/model_patched_vrf_request.go index 9dfb98881..d68f040e2 100644 --- a/model_patched_vrf_request.go +++ b/model_patched_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &PatchedVRFRequest{} type PatchedVRFRequest struct { Name *string `json:"name,omitempty"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Prevent duplicate prefixes/IP addresses within this VRF EnforceUnique *bool `json:"enforce_unique,omitempty"` Description *string `json:"description,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedVRFRequest) UnsetRd() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedVRFRequest) GetTenant() TenantRequest { +func (o *PatchedVRFRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -140,7 +140,7 @@ func (o *PatchedVRFRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedVRFRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedVRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -156,8 +156,8 @@ func (o *PatchedVRFRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedVRFRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedVRFRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_webhook_request.go b/model_patched_webhook_request.go index 5c726471e..b68421b0d 100644 --- a/model_patched_webhook_request.go +++ b/model_patched_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_webhook_request_http_method.go b/model_patched_webhook_request_http_method.go index 184b35a71..9e9209c5a 100644 --- a/model_patched_webhook_request_http_method.go +++ b/model_patched_webhook_request_http_method.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_aggregate_request.go b/model_patched_writable_aggregate_request.go index 0c3c8d591..72c0468e7 100644 --- a/model_patched_writable_aggregate_request.go +++ b/model_patched_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableAggregateRequest{} // PatchedWritableAggregateRequest Adds support for custom fields and tags. type PatchedWritableAggregateRequest struct { - Prefix *string `json:"prefix,omitempty"` - Rir *RIRRequest `json:"rir,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix *string `json:"prefix,omitempty"` + Rir *BriefRIRRequest `json:"rir,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -82,9 +82,9 @@ func (o *PatchedWritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value if set, zero value otherwise. -func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { +func (o *PatchedWritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil || IsNil(o.Rir) { - var ret RIRRequest + var ret BriefRIRRequest return ret } return *o.Rir @@ -92,7 +92,7 @@ func (o *PatchedWritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil || IsNil(o.Rir) { return nil, false } @@ -108,15 +108,15 @@ func (o *PatchedWritableAggregateRequest) HasRir() bool { return false } -// SetRir gets a reference to the given RIRRequest and assigns it to the Rir field. -func (o *PatchedWritableAggregateRequest) SetRir(v RIRRequest) { +// SetRir gets a reference to the given BriefRIRRequest and assigns it to the Rir field. +func (o *PatchedWritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { +func (o *PatchedWritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -125,7 +125,7 @@ func (o *PatchedWritableAggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -141,8 +141,8 @@ func (o *PatchedWritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_cable_request.go b/model_patched_writable_cable_request.go index 158155396..54fca69ca 100644 --- a/model_patched_writable_cable_request.go +++ b/model_patched_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &PatchedWritableCableRequest{} // PatchedWritableCableRequest Adds support for custom fields and tags. type PatchedWritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewPatchedWritableCableRequestWithDefaults() *PatchedWritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType { +func (o *PatchedWritableCableRequest) GetType() CableType { if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType + var ret CableType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *PatchedWritableCableRequest) GetType() PatchedWritableCableRequestType // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { +func (o *PatchedWritableCableRequest) GetTypeOk() (*CableType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *PatchedWritableCableRequest) SetType(v PatchedWritableCableRequestType) { +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *PatchedWritableCableRequest) SetType(v CableType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *PatchedWritableCableRequest) SetBTerminations(v []GenericObjectRequest) } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *PatchedWritableCableRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *PatchedWritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *PatchedWritableCableRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *PatchedWritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *PatchedWritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { +func (o *PatchedWritableCableRequest) GetLengthUnit() CableLengthUnitValue { if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit + var ret CableLengthUnitValue return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *PatchedWritableCableRequest) GetLengthUnit() PatchedWritableCableReques // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { +func (o *PatchedWritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *PatchedWritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *PatchedWritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { +// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. +func (o *PatchedWritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { o.LengthUnit = &v } diff --git a/model_patched_writable_circuit_group_assignment_request.go b/model_patched_writable_circuit_group_assignment_request.go index b58eb5368..dc2077f78 100644 --- a/model_patched_writable_circuit_group_assignment_request.go +++ b/model_patched_writable_circuit_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_circuit_request.go b/model_patched_writable_circuit_request.go index a9b2fa643..0dbcf8dab 100644 --- a/model_patched_writable_circuit_request.go +++ b/model_patched_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,20 +20,21 @@ var _ MappedNullable = &PatchedWritableCircuitRequest{} // PatchedWritableCircuitRequest Adds support for custom fields and tags. type PatchedWritableCircuitRequest struct { // Unique circuit ID - Cid *string `json:"cid,omitempty"` - Provider *ProviderRequest `json:"provider,omitempty"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type *CircuitTypeRequest `json:"type,omitempty"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid *string `json:"cid,omitempty"` + Provider *BriefProviderRequest `json:"provider,omitempty"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type *BriefCircuitTypeRequest `json:"type,omitempty"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -89,9 +90,9 @@ func (o *PatchedWritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { +func (o *PatchedWritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil || IsNil(o.Provider) { - var ret ProviderRequest + var ret BriefProviderRequest return ret } return *o.Provider @@ -99,7 +100,7 @@ func (o *PatchedWritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil || IsNil(o.Provider) { return nil, false } @@ -115,15 +116,15 @@ func (o *PatchedWritableCircuitRequest) HasProvider() bool { return false } -// SetProvider gets a reference to the given ProviderRequest and assigns it to the Provider field. -func (o *PatchedWritableCircuitRequest) SetProvider(v ProviderRequest) { +// SetProvider gets a reference to the given BriefProviderRequest and assigns it to the Provider field. +func (o *PatchedWritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = &v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *PatchedWritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -132,7 +133,7 @@ func (o *PatchedWritableCircuitRequest) GetProviderAccount() ProviderAccountRequ // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -148,8 +149,8 @@ func (o *PatchedWritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *PatchedWritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *PatchedWritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -164,9 +165,9 @@ func (o *PatchedWritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *PatchedWritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil || IsNil(o.Type) { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } return *o.Type @@ -174,7 +175,7 @@ func (o *PatchedWritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -190,15 +191,15 @@ func (o *PatchedWritableCircuitRequest) HasType() bool { return false } -// SetType gets a reference to the given CircuitTypeRequest and assigns it to the Type field. -func (o *PatchedWritableCircuitRequest) SetType(v CircuitTypeRequest) { +// SetType gets a reference to the given BriefCircuitTypeRequest and assigns it to the Type field. +func (o *PatchedWritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *PatchedWritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -206,7 +207,7 @@ func (o *PatchedWritableCircuitRequest) GetStatus() PatchedWritableCircuitReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *PatchedWritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -222,15 +223,15 @@ func (o *PatchedWritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *PatchedWritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *PatchedWritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { +func (o *PatchedWritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -239,7 +240,7 @@ func (o *PatchedWritableCircuitRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -255,8 +256,8 @@ func (o *PatchedWritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -527,6 +528,38 @@ func (o *PatchedWritableCircuitRequest) SetCustomFields(v map[string]interface{} o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *PatchedWritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *PatchedWritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *PatchedWritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o PatchedWritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -576,6 +609,9 @@ func (o PatchedWritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -611,6 +647,7 @@ func (o *PatchedWritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_cluster_request.go b/model_patched_writable_cluster_request.go index 686e11522..40033109d 100644 --- a/model_patched_writable_cluster_request.go +++ b/model_patched_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,16 @@ var _ MappedNullable = &PatchedWritableClusterRequest{} // PatchedWritableClusterRequest Adds support for custom fields and tags. type PatchedWritableClusterRequest struct { - Name *string `json:"name,omitempty"` - Type *ClusterTypeRequest `json:"type,omitempty"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Type *BriefClusterTypeRequest `json:"type,omitempty"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -84,9 +84,9 @@ func (o *PatchedWritableClusterRequest) SetName(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { +func (o *PatchedWritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil || IsNil(o.Type) { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } return *o.Type @@ -94,7 +94,7 @@ func (o *PatchedWritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -110,15 +110,15 @@ func (o *PatchedWritableClusterRequest) HasType() bool { return false } -// SetType gets a reference to the given ClusterTypeRequest and assigns it to the Type field. -func (o *PatchedWritableClusterRequest) SetType(v ClusterTypeRequest) { +// SetType gets a reference to the given BriefClusterTypeRequest and assigns it to the Type field. +func (o *PatchedWritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = &v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *PatchedWritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -127,7 +127,7 @@ func (o *PatchedWritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *PatchedWritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *PatchedWritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *PatchedWritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } @@ -159,9 +159,9 @@ func (o *PatchedWritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *PatchedWritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -169,7 +169,7 @@ func (o *PatchedWritableClusterRequest) GetStatus() PatchedWritableClusterReques // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *PatchedWritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -185,15 +185,15 @@ func (o *PatchedWritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *PatchedWritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *PatchedWritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { +func (o *PatchedWritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *PatchedWritableClusterRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *PatchedWritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { +func (o *PatchedWritableClusterRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritableClusterRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableClusterRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableClusterRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } diff --git a/model_patched_writable_console_port_request.go b/model_patched_writable_console_port_request.go index 5e75fe1df..29ea9d520 100644 --- a/model_patched_writable_console_port_request.go +++ b/model_patched_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsolePortRequest{} // PatchedWritableConsolePortRequest Adds support for custom fields and tags. type PatchedWritableConsolePortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsolePortRequestWithDefaults() *PatchedWritableConsoleP } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsolePortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsolePortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_port_request_speed.go b/model_patched_writable_console_port_request_speed.go index 9fb31ae8e..d043563fb 100644 --- a/model_patched_writable_console_port_request_speed.go +++ b/model_patched_writable_console_port_request_speed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_request_type.go b/model_patched_writable_console_port_request_type.go index db1edadc3..edb922660 100644 --- a/model_patched_writable_console_port_request_type.go +++ b/model_patched_writable_console_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_console_port_template_request.go b/model_patched_writable_console_port_template_request.go index a4c19d0c0..af3a4ad32 100644 --- a/model_patched_writable_console_port_template_request.go +++ b/model_patched_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsolePortTemplateRequest{} // PatchedWritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsolePortTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_console_server_port_request.go b/model_patched_writable_console_server_port_request.go index c5a84421b..78f2d7886 100644 --- a/model_patched_writable_console_server_port_request.go +++ b/model_patched_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortRequest{} // PatchedWritableConsoleServerPortRequest Adds support for custom fields and tags. type PatchedWritableConsoleServerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableConsoleServerPortRequestWithDefaults() *PatchedWritableCo } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -64,7 +64,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -80,15 +80,15 @@ func (o *PatchedWritableConsoleServerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -97,7 +97,7 @@ func (o *PatchedWritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -113,8 +113,8 @@ func (o *PatchedWritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_console_server_port_template_request.go b/model_patched_writable_console_server_port_template_request.go index 07402cdcd..03aa245eb 100644 --- a/model_patched_writable_console_server_port_template_request.go +++ b/model_patched_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableConsoleServerPortTemplateRequest{} // PatchedWritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -50,9 +50,9 @@ func NewPatchedWritableConsoleServerPortTemplateRequestWithDefaults() *PatchedWr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -61,7 +61,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceType() Device // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -77,8 +77,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -93,9 +93,9 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleType() Module // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_contact_assignment_request.go b/model_patched_writable_contact_assignment_request.go index 8a792f86b..10a5f16c5 100644 --- a/model_patched_writable_contact_assignment_request.go +++ b/model_patched_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritableContactAssignmentRequest{} // PatchedWritableContactAssignmentRequest Adds support for custom fields and tags. type PatchedWritableContactAssignmentRequest struct { - ObjectType *string `json:"object_type,omitempty"` - ObjectId *int64 `json:"object_id,omitempty"` - Contact *ContactRequest `json:"contact,omitempty"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType *string `json:"object_type,omitempty"` + ObjectId *int64 `json:"object_id,omitempty"` + Contact *BriefContactRequest `json:"contact,omitempty"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -113,9 +113,9 @@ func (o *PatchedWritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *PatchedWritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil || IsNil(o.Contact) { - var ret ContactRequest + var ret BriefContactRequest return ret } return *o.Contact @@ -123,7 +123,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil || IsNil(o.Contact) { return nil, false } @@ -139,15 +139,15 @@ func (o *PatchedWritableContactAssignmentRequest) HasContact() bool { return false } -// SetContact gets a reference to the given ContactRequest and assigns it to the Contact field. -func (o *PatchedWritableContactAssignmentRequest) SetContact(v ContactRequest) { +// SetContact gets a reference to the given BriefContactRequest and assigns it to the Contact field. +func (o *PatchedWritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = &v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *PatchedWritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -156,7 +156,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -172,8 +172,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *PatchedWritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *PatchedWritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -188,9 +188,9 @@ func (o *PatchedWritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *PatchedWritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -198,7 +198,7 @@ func (o *PatchedWritableContactAssignmentRequest) GetPriority() ContactAssignmen // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *PatchedWritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -214,8 +214,8 @@ func (o *PatchedWritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *PatchedWritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *PatchedWritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_patched_writable_contact_group_request.go b/model_patched_writable_contact_group_request.go index b7868b9e7..a04848177 100644 --- a/model_patched_writable_contact_group_request.go +++ b/model_patched_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request.go b/model_patched_writable_custom_field_choice_set_request.go index 685a24ba2..92f40ccb9 100644 --- a/model_patched_writable_custom_field_choice_set_request.go +++ b/model_patched_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_choice_set_request_base_choices.go b/model_patched_writable_custom_field_choice_set_request_base_choices.go index 05ed85e77..ca5f5e30f 100644 --- a/model_patched_writable_custom_field_choice_set_request_base_choices.go +++ b/model_patched_writable_custom_field_choice_set_request_base_choices.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request.go b/model_patched_writable_custom_field_request.go index 4e6a76214..5febf980c 100644 --- a/model_patched_writable_custom_field_request.go +++ b/model_patched_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -29,8 +29,10 @@ type PatchedWritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -40,6 +42,8 @@ type PatchedWritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -47,9 +51,9 @@ type PatchedWritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -339,6 +343,38 @@ func (o *PatchedWritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *PatchedWritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *PatchedWritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -532,6 +568,39 @@ func (o *PatchedWritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *PatchedWritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *PatchedWritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *PatchedWritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -683,9 +752,9 @@ func (o *PatchedWritableCustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -694,7 +763,7 @@ func (o *PatchedWritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetR // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *PatchedWritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -710,8 +779,8 @@ func (o *PatchedWritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *PatchedWritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -791,6 +860,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -809,6 +881,9 @@ func (o PatchedWritableCustomFieldRequest) ToMap() (map[string]interface{}, erro if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -857,12 +932,14 @@ func (o *PatchedWritableCustomFieldRequest) UnmarshalJSON(data []byte) (err erro delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_patched_writable_custom_field_request_filter_logic.go b/model_patched_writable_custom_field_request_filter_logic.go index 617a06855..0dbe4ad0e 100644 --- a/model_patched_writable_custom_field_request_filter_logic.go +++ b/model_patched_writable_custom_field_request_filter_logic.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_type.go b/model_patched_writable_custom_field_request_type.go index 3efb71f2c..aa038bbbb 100644 --- a/model_patched_writable_custom_field_request_type.go +++ b/model_patched_writable_custom_field_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_editable.go b/model_patched_writable_custom_field_request_ui_editable.go index 2ebd0d168..299a59227 100644 --- a/model_patched_writable_custom_field_request_ui_editable.go +++ b/model_patched_writable_custom_field_request_ui_editable.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_custom_field_request_ui_visible.go b/model_patched_writable_custom_field_request_ui_visible.go index 2b2609423..118718caf 100644 --- a/model_patched_writable_custom_field_request_ui_visible.go +++ b/model_patched_writable_custom_field_request_ui_visible.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_data_source_request.go b/model_patched_writable_data_source_request.go index 4446f37e8..13805e2cb 100644 --- a/model_patched_writable_data_source_request.go +++ b/model_patched_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -24,10 +24,10 @@ type PatchedWritableDataSourceRequest struct { SourceUrl *string `json:"source_url,omitempty"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -211,38 +211,6 @@ func (o *PatchedWritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *PatchedWritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *PatchedWritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *PatchedWritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -308,6 +276,38 @@ func (o *PatchedWritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PatchedWritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PatchedWritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PatchedWritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *PatchedWritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -365,15 +365,15 @@ func (o PatchedWritableDataSourceRequest) ToMap() (map[string]interface{}, error if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -404,9 +404,9 @@ func (o *PatchedWritableDataSourceRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_patched_writable_device_type_request.go b/model_patched_writable_device_type_request.go index e5906960d..293fa1d57 100644 --- a/model_patched_writable_device_type_request.go +++ b/model_patched_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,27 +20,27 @@ var _ MappedNullable = &PatchedWritableDeviceTypeRequest{} // PatchedWritableDeviceTypeRequest Adds support for custom fields and tags. type PatchedWritableDeviceTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model *string `json:"model,omitempty"` - Slug *string `json:"slug,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model *string `json:"model,omitempty"` + Slug *string `json:"slug,omitempty"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -68,9 +68,9 @@ func NewPatchedWritableDeviceTypeRequestWithDefaults() *PatchedWritableDeviceTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -78,7 +78,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -94,15 +94,15 @@ func (o *PatchedWritableDeviceTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *PatchedWritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -442,9 +442,9 @@ func (o *PatchedWritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -452,7 +452,7 @@ func (o *PatchedWritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDevice // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -468,8 +468,8 @@ func (o *PatchedWritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } diff --git a/model_patched_writable_device_with_config_context_request.go b/model_patched_writable_device_with_config_context_request.go index 2594a9023..091abb8cf 100644 --- a/model_patched_writable_device_with_config_context_request.go +++ b/model_patched_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,37 +19,37 @@ var _ MappedNullable = &PatchedWritableDeviceWithConfigContextRequest{} // PatchedWritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType *DeviceTypeRequest `json:"device_type,omitempty"` - Role *DeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType *BriefDeviceTypeRequest `json:"device_type,omitempty"` + Role *BriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face *RackFace1 `json:"face,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face *RackFace1 `json:"face,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -120,9 +120,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType @@ -130,7 +130,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTy // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil || IsNil(o.DeviceType) { return nil, false } @@ -146,15 +146,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given DeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given BriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = &v } // GetRole returns the Role field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role @@ -162,7 +162,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequ // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil || IsNil(o.Role) { return nil, false } @@ -178,15 +178,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given DeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given BriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -195,7 +195,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenant() TenantReques // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -211,8 +211,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -227,9 +227,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -238,7 +238,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatform() PlatformRe // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -254,8 +254,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -345,9 +345,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -355,7 +355,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -371,15 +371,15 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -388,7 +388,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocation() LocationRe // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -404,8 +404,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -420,9 +420,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -431,7 +431,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -447,8 +447,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -688,9 +688,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirfl } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -699,7 +699,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddres // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -715,8 +715,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -731,9 +731,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -742,7 +742,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddres // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -758,8 +758,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -774,9 +774,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -785,7 +785,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequ // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -801,8 +801,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -817,9 +817,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -828,7 +828,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetCluster() ClusterRequ // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -844,8 +844,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -860,9 +860,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -871,7 +871,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassis() Virt // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -887,8 +887,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasVirtualChassis() bool return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1053,9 +1053,9 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1064,7 +1064,7 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplate() Conf // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1080,8 +1080,8 @@ func (o *PatchedWritableDeviceWithConfigContextRequest) HasConfigTemplate() bool return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_patched_writable_event_rule_request.go b/model_patched_writable_event_rule_request.go index 0251a39dc..6040608bc 100644 --- a/model_patched_writable_event_rule_request.go +++ b/model_patched_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,9 @@ var _ MappedNullable = &PatchedWritableEventRuleRequest{} type PatchedWritableEventRuleRequest struct { ObjectTypes []string `json:"object_types,omitempty"` Name *string `json:"name,omitempty"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types,omitempty"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` @@ -126,196 +118,68 @@ func (o *PatchedWritableEventRuleRequest) SetName(v string) { o.Name = &v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *PatchedWritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *PatchedWritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *PatchedWritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { +// GetEnabled returns the Enabled field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { + if o == nil || IsNil(o.Enabled) { var ret bool return ret } - return *o.TypeJobEnd + return *o.Enabled } -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise +// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { +func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { + if o == nil || IsNil(o.Enabled) { return nil, false } - return o.TypeJobEnd, true + return o.Enabled, true } -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { +// HasEnabled returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { + if o != nil && !IsNil(o.Enabled) { return true } return false } -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *PatchedWritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v +// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. +func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { + o.Enabled = &v } -// GetEnabled returns the Enabled field value if set, zero value otherwise. -func (o *PatchedWritableEventRuleRequest) GetEnabled() bool { - if o == nil || IsNil(o.Enabled) { - var ret bool +// GetEventTypes returns the EventTypes field value if set, zero value otherwise. +func (o *PatchedWritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil || IsNil(o.EventTypes) { + var ret []EventRuleEventTypesInner return ret } - return *o.Enabled + return o.EventTypes } -// GetEnabledOk returns a tuple with the Enabled field value if set, nil otherwise +// GetEventTypesOk returns a tuple with the EventTypes field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableEventRuleRequest) GetEnabledOk() (*bool, bool) { - if o == nil || IsNil(o.Enabled) { +func (o *PatchedWritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil || IsNil(o.EventTypes) { return nil, false } - return o.Enabled, true + return o.EventTypes, true } -// HasEnabled returns a boolean if a field has been set. -func (o *PatchedWritableEventRuleRequest) HasEnabled() bool { - if o != nil && !IsNil(o.Enabled) { +// HasEventTypes returns a boolean if a field has been set. +func (o *PatchedWritableEventRuleRequest) HasEventTypes() bool { + if o != nil && !IsNil(o.EventTypes) { return true } return false } -// SetEnabled gets a reference to the given bool and assigns it to the Enabled field. -func (o *PatchedWritableEventRuleRequest) SetEnabled(v bool) { - o.Enabled = &v +// SetEventTypes gets a reference to the given []EventRuleEventTypesInner and assigns it to the EventTypes field. +func (o *PatchedWritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v } // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). @@ -570,24 +434,12 @@ func (o PatchedWritableEventRuleRequest) ToMap() (map[string]interface{}, error) if !IsNil(o.Name) { toSerialize["name"] = o.Name } - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + if !IsNil(o.EventTypes) { + toSerialize["event_types"] = o.EventTypes + } if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -633,12 +485,8 @@ func (o *PatchedWritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_patched_writable_front_port_request.go b/model_patched_writable_front_port_request.go index 56a5a766f..c9630be04 100644 --- a/model_patched_writable_front_port_request.go +++ b/model_patched_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableFrontPortRequest{} // PatchedWritableFrontPortRequest Adds support for custom fields and tags. type PatchedWritableFrontPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -61,9 +61,9 @@ func NewPatchedWritableFrontPortRequestWithDefaults() *PatchedWritableFrontPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -71,7 +71,7 @@ func (o *PatchedWritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -87,15 +87,15 @@ func (o *PatchedWritableFrontPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableFrontPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -104,7 +104,7 @@ func (o *PatchedWritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -120,8 +120,8 @@ func (o *PatchedWritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_front_port_template_request.go b/model_patched_writable_front_port_template_request.go index a7e2d7d33..dc204d55f 100644 --- a/model_patched_writable_front_port_template_request.go +++ b/model_patched_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableFrontPortTemplateRequest{} // PatchedWritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label - Label *string `json:"label,omitempty"` - Type *FrontPortTypeValue `json:"type,omitempty"` - Color *string `json:"color,omitempty"` - RearPort *RearPortTemplateRequest `json:"rear_port,omitempty"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type *FrontPortTypeValue `json:"type,omitempty"` + Color *string `json:"color,omitempty"` + RearPort *BriefRearPortTemplateRequest `json:"rear_port,omitempty"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -57,9 +57,9 @@ func NewPatchedWritableFrontPortTemplateRequestWithDefaults() *PatchedWritableFr } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -68,7 +68,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -100,9 +100,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -111,7 +111,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -271,9 +271,9 @@ func (o *PatchedWritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value if set, zero value otherwise. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil || IsNil(o.RearPort) { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } return *o.RearPort @@ -281,7 +281,7 @@ func (o *PatchedWritableFrontPortTemplateRequest) GetRearPort() RearPortTemplate // GetRearPortOk returns a tuple with the RearPort field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *PatchedWritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil || IsNil(o.RearPort) { return nil, false } @@ -297,8 +297,8 @@ func (o *PatchedWritableFrontPortTemplateRequest) HasRearPort() bool { return false } -// SetRearPort gets a reference to the given RearPortTemplateRequest and assigns it to the RearPort field. -func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +// SetRearPort gets a reference to the given BriefRearPortTemplateRequest and assigns it to the RearPort field. +func (o *PatchedWritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = &v } diff --git a/model_patched_writable_ike_policy_request.go b/model_patched_writable_ike_policy_request.go index 58f359b1e..99d4ed49b 100644 --- a/model_patched_writable_ike_policy_request.go +++ b/model_patched_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_mode.go b/model_patched_writable_ike_policy_request_mode.go index 16fbd5659..6a549383f 100644 --- a/model_patched_writable_ike_policy_request_mode.go +++ b/model_patched_writable_ike_policy_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_policy_request_version.go b/model_patched_writable_ike_policy_request_version.go index 2a6c5849c..0016940a7 100644 --- a/model_patched_writable_ike_policy_request_version.go +++ b/model_patched_writable_ike_policy_request_version.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request.go b/model_patched_writable_ike_proposal_request.go index 6de0b3f45..b49151a10 100644 --- a/model_patched_writable_ike_proposal_request.go +++ b/model_patched_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_authentication_algorithm.go b/model_patched_writable_ike_proposal_request_authentication_algorithm.go index 98ac12303..35963ad46 100644 --- a/model_patched_writable_ike_proposal_request_authentication_algorithm.go +++ b/model_patched_writable_ike_proposal_request_authentication_algorithm.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ike_proposal_request_group.go b/model_patched_writable_ike_proposal_request_group.go index 89cee3081..679117849 100644 --- a/model_patched_writable_ike_proposal_request_group.go +++ b/model_patched_writable_ike_proposal_request_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_request.go b/model_patched_writable_interface_request.go index 16c8c59a0..1a539cc05 100644 --- a/model_patched_writable_interface_request.go +++ b/model_patched_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableInterfaceRequest{} // PatchedWritableInterfaceRequest Adds support for custom fields and tags. type PatchedWritableInterfaceRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *InterfaceTypeValue `json:"type,omitempty"` @@ -39,23 +39,23 @@ type PatchedWritableInterfaceRequest struct { MgmtOnly *bool `json:"mgmt_only,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` - RfChannel *WirelessChannel `json:"rf_channel,omitempty"` + RfRole *WirelessRole1 `json:"rf_role,omitempty"` + RfChannel *WirelessChannel1 `json:"rf_channel,omitempty"` PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -79,9 +79,9 @@ func NewPatchedWritableInterfaceRequestWithDefaults() *PatchedWritableInterfaceR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -89,7 +89,7 @@ func (o *PatchedWritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -105,8 +105,8 @@ func (o *PatchedWritableInterfaceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableInterfaceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -143,9 +143,9 @@ func (o *PatchedWritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { +func (o *PatchedWritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -154,7 +154,7 @@ func (o *PatchedWritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -170,8 +170,8 @@ func (o *PatchedWritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -754,9 +754,9 @@ func (o *PatchedWritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequ } // GetRfRole returns the RfRole field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole { +func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole1 { if o == nil || IsNil(o.RfRole) { - var ret WirelessRole + var ret WirelessRole1 return ret } return *o.RfRole @@ -764,7 +764,7 @@ func (o *PatchedWritableInterfaceRequest) GetRfRole() WirelessRole { // GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool) { +func (o *PatchedWritableInterfaceRequest) GetRfRoleOk() (*WirelessRole1, bool) { if o == nil || IsNil(o.RfRole) { return nil, false } @@ -780,15 +780,15 @@ func (o *PatchedWritableInterfaceRequest) HasRfRole() bool { return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. -func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole) { +// SetRfRole gets a reference to the given WirelessRole1 and assigns it to the RfRole field. +func (o *PatchedWritableInterfaceRequest) SetRfRole(v WirelessRole1) { o.RfRole = &v } // GetRfChannel returns the RfChannel field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel { +func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel1 { if o == nil || IsNil(o.RfChannel) { - var ret WirelessChannel + var ret WirelessChannel1 return ret } return *o.RfChannel @@ -796,7 +796,7 @@ func (o *PatchedWritableInterfaceRequest) GetRfChannel() WirelessChannel { // GetRfChannelOk returns a tuple with the RfChannel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool) { +func (o *PatchedWritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel1, bool) { if o == nil || IsNil(o.RfChannel) { return nil, false } @@ -812,8 +812,8 @@ func (o *PatchedWritableInterfaceRequest) HasRfChannel() bool { return false } -// SetRfChannel gets a reference to the given WirelessChannel and assigns it to the RfChannel field. -func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel) { +// SetRfChannel gets a reference to the given WirelessChannel1 and assigns it to the RfChannel field. +func (o *PatchedWritableInterfaceRequest) SetRfChannel(v WirelessChannel1) { o.RfChannel = &v } @@ -1011,9 +1011,9 @@ func (o *PatchedWritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1022,7 +1022,7 @@ func (o *PatchedWritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1038,8 +1038,8 @@ func (o *PatchedWritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1150,9 +1150,9 @@ func (o *PatchedWritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1161,7 +1161,7 @@ func (o *PatchedWritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1177,8 +1177,8 @@ func (o *PatchedWritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_interface_request_mode.go b/model_patched_writable_interface_request_mode.go index 8417725be..a5840bee5 100644 --- a/model_patched_writable_interface_request_mode.go +++ b/model_patched_writable_interface_request_mode.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_interface_template_request.go b/model_patched_writable_interface_template_request.go index f88d3d205..9f2db9c4a 100644 --- a/model_patched_writable_interface_template_request.go +++ b/model_patched_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableInterfaceTemplateRequest{} // PatchedWritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -32,7 +32,7 @@ type PatchedWritableInterfaceTemplateRequest struct { Bridge NullableInt32 `json:"bridge,omitempty"` PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` + RfRole *WirelessRole1 `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -56,9 +56,9 @@ func NewPatchedWritableInterfaceTemplateRequestWithDefaults() *PatchedWritableIn } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -441,9 +441,9 @@ func (o *PatchedWritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeV } // GetRfRole returns the RfRole field value if set, zero value otherwise. -func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole { +func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole1 { if o == nil || IsNil(o.RfRole) { - var ret WirelessRole + var ret WirelessRole1 return ret } return *o.RfRole @@ -451,7 +451,7 @@ func (o *PatchedWritableInterfaceTemplateRequest) GetRfRole() WirelessRole { // GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool) { +func (o *PatchedWritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole1, bool) { if o == nil || IsNil(o.RfRole) { return nil, false } @@ -467,8 +467,8 @@ func (o *PatchedWritableInterfaceTemplateRequest) HasRfRole() bool { return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. -func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) { +// SetRfRole gets a reference to the given WirelessRole1 and assigns it to the RfRole field. +func (o *PatchedWritableInterfaceTemplateRequest) SetRfRole(v WirelessRole1) { o.RfRole = &v } diff --git a/model_patched_writable_ip_address_request.go b/model_patched_writable_ip_address_request.go index 8aced88b8..80a8620fc 100644 --- a/model_patched_writable_ip_address_request.go +++ b/model_patched_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PatchedWritableIPAddressRequest{} // PatchedWritableIPAddressRequest Adds support for custom fields and tags. type PatchedWritableIPAddressRequest struct { Address *string `json:"address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -89,9 +89,9 @@ func (o *PatchedWritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritableIPAddressRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_ip_address_request_role.go b/model_patched_writable_ip_address_request_role.go index c50d40236..bf1a670a9 100644 --- a/model_patched_writable_ip_address_request_role.go +++ b/model_patched_writable_ip_address_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_address_request_status.go b/model_patched_writable_ip_address_request_status.go index aa05d1c78..b16b12f93 100644 --- a/model_patched_writable_ip_address_request_status.go +++ b/model_patched_writable_ip_address_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_range_request.go b/model_patched_writable_ip_range_request.go index 3ae8f8a3b..83c2706a3 100644 --- a/model_patched_writable_ip_range_request.go +++ b/model_patched_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableIPRangeRequest{} type PatchedWritableIPRangeRequest struct { StartAddress *string `json:"start_address,omitempty"` EndAddress *string `json:"end_address,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { +func (o *PatchedWritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -161,9 +161,9 @@ func (o *PatchedWritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { +func (o *PatchedWritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableIPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeReques } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { +func (o *PatchedWritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_ip_range_request_status.go b/model_patched_writable_ip_range_request_status.go index c5cdba089..ef7c06e77 100644 --- a/model_patched_writable_ip_range_request_status.go +++ b/model_patched_writable_ip_range_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request.go b/model_patched_writable_ip_sec_policy_request.go index 6c4c674f7..a889f2885 100644 --- a/model_patched_writable_ip_sec_policy_request.go +++ b/model_patched_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_policy_request_pfs_group.go b/model_patched_writable_ip_sec_policy_request_pfs_group.go index 8b81531d6..91186be6e 100644 --- a/model_patched_writable_ip_sec_policy_request_pfs_group.go +++ b/model_patched_writable_ip_sec_policy_request_pfs_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_ip_sec_profile_request.go b/model_patched_writable_ip_sec_profile_request.go index 1c0acccc0..53d759971 100644 --- a/model_patched_writable_ip_sec_profile_request.go +++ b/model_patched_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableIPSecProfileRequest{} // PatchedWritableIPSecProfileRequest Adds support for custom fields and tags. type PatchedWritableIPSecProfileRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - Mode *IPSecProfileModeValue `json:"mode,omitempty"` - IkePolicy *IKEPolicyRequest `json:"ike_policy,omitempty"` - IpsecPolicy *IPSecPolicyRequest `json:"ipsec_policy,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + Mode *IPSecProfileModeValue `json:"mode,omitempty"` + IkePolicy *BriefIKEPolicyRequest `json:"ike_policy,omitempty"` + IpsecPolicy *BriefIPSecPolicyRequest `json:"ipsec_policy,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -146,9 +146,9 @@ func (o *PatchedWritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil || IsNil(o.IkePolicy) { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } return *o.IkePolicy @@ -156,7 +156,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil || IsNil(o.IkePolicy) { return nil, false } @@ -172,15 +172,15 @@ func (o *PatchedWritableIPSecProfileRequest) HasIkePolicy() bool { return false } -// SetIkePolicy gets a reference to the given IKEPolicyRequest and assigns it to the IkePolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +// SetIkePolicy gets a reference to the given BriefIKEPolicyRequest and assigns it to the IkePolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = &v } // GetIpsecPolicy returns the IpsecPolicy field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil || IsNil(o.IpsecPolicy) { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } return *o.IpsecPolicy @@ -188,7 +188,7 @@ func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *PatchedWritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil || IsNil(o.IpsecPolicy) { return nil, false } @@ -204,8 +204,8 @@ func (o *PatchedWritableIPSecProfileRequest) HasIpsecPolicy() bool { return false } -// SetIpsecPolicy gets a reference to the given IPSecPolicyRequest and assigns it to the IpsecPolicy field. -func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +// SetIpsecPolicy gets a reference to the given BriefIPSecPolicyRequest and assigns it to the IpsecPolicy field. +func (o *PatchedWritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = &v } diff --git a/model_patched_writable_ip_sec_proposal_request.go b/model_patched_writable_ip_sec_proposal_request.go index b79dc65d8..23c0a0801 100644 --- a/model_patched_writable_ip_sec_proposal_request.go +++ b/model_patched_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,10 +19,10 @@ var _ MappedNullable = &PatchedWritableIPSecProposalRequest{} // PatchedWritableIPSecProposalRequest Adds support for custom fields and tags. type PatchedWritableIPSecProposalRequest struct { - Name *string `json:"name,omitempty"` - Description *string `json:"description,omitempty"` - EncryptionAlgorithm *Encryption `json:"encryption_algorithm,omitempty"` - AuthenticationAlgorithm *Authentication `json:"authentication_algorithm,omitempty"` + Name *string `json:"name,omitempty"` + Description *string `json:"description,omitempty"` + EncryptionAlgorithm *Encryption1 `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm *Authentication1 `json:"authentication_algorithm,omitempty"` // Security association lifetime (seconds) SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"` // Security association lifetime (in kilobytes) @@ -117,9 +117,9 @@ func (o *PatchedWritableIPSecProposalRequest) SetDescription(v string) { } // GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption { +func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption1 { if o == nil || IsNil(o.EncryptionAlgorithm) { - var ret Encryption + var ret Encryption1 return ret } return *o.EncryptionAlgorithm @@ -127,7 +127,7 @@ func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryptio // GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool) { +func (o *PatchedWritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption1, bool) { if o == nil || IsNil(o.EncryptionAlgorithm) { return nil, false } @@ -143,15 +143,15 @@ func (o *PatchedWritableIPSecProposalRequest) HasEncryptionAlgorithm() bool { return false } -// SetEncryptionAlgorithm gets a reference to the given Encryption and assigns it to the EncryptionAlgorithm field. -func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) { +// SetEncryptionAlgorithm gets a reference to the given Encryption1 and assigns it to the EncryptionAlgorithm field. +func (o *PatchedWritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption1) { o.EncryptionAlgorithm = &v } // GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. -func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication { +func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication1 { if o == nil || IsNil(o.AuthenticationAlgorithm) { - var ret Authentication + var ret Authentication1 return ret } return *o.AuthenticationAlgorithm @@ -159,7 +159,7 @@ func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authe // GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool) { +func (o *PatchedWritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication1, bool) { if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } @@ -175,8 +175,8 @@ func (o *PatchedWritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool return false } -// SetAuthenticationAlgorithm gets a reference to the given Authentication and assigns it to the AuthenticationAlgorithm field. -func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) { +// SetAuthenticationAlgorithm gets a reference to the given Authentication1 and assigns it to the AuthenticationAlgorithm field. +func (o *PatchedWritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication1) { o.AuthenticationAlgorithm = &v } diff --git a/model_patched_writable_journal_entry_request.go b/model_patched_writable_journal_entry_request.go index 97f19a1e7..230105223 100644 --- a/model_patched_writable_journal_entry_request.go +++ b/model_patched_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_l2_vpn_request.go b/model_patched_writable_l2_vpn_request.go index 0cbb2327b..344ce4f48 100644 --- a/model_patched_writable_l2_vpn_request.go +++ b/model_patched_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,17 +19,17 @@ var _ MappedNullable = &PatchedWritableL2VPNRequest{} // PatchedWritableL2VPNRequest Adds support for custom fields and tags. type PatchedWritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Type *L2VPNTypeValue `json:"type,omitempty"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Type *BriefL2VPNTypeValue `json:"type,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -160,9 +160,9 @@ func (o *PatchedWritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *PatchedWritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil || IsNil(o.Type) { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } return *o.Type @@ -170,7 +170,7 @@ func (o *PatchedWritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *PatchedWritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -186,8 +186,8 @@ func (o *PatchedWritableL2VPNRequest) HasType() bool { return false } -// SetType gets a reference to the given L2VPNTypeValue and assigns it to the Type field. -func (o *PatchedWritableL2VPNRequest) SetType(v L2VPNTypeValue) { +// SetType gets a reference to the given BriefL2VPNTypeValue and assigns it to the Type field. +func (o *PatchedWritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = &v } @@ -320,9 +320,9 @@ func (o *PatchedWritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { +func (o *PatchedWritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -331,7 +331,7 @@ func (o *PatchedWritableL2VPNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -347,8 +347,8 @@ func (o *PatchedWritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_location_request.go b/model_patched_writable_location_request.go index 338f115dd..7dfa3d94e 100644 --- a/model_patched_writable_location_request.go +++ b/model_patched_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,12 +19,12 @@ var _ MappedNullable = &PatchedWritableLocationRequest{} // PatchedWritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type PatchedWritableLocationRequest struct { - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Parent NullableInt32 `json:"parent,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Parent NullableInt32 `json:"parent,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { +func (o *PatchedWritableLocationRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -127,7 +127,7 @@ func (o *PatchedWritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -143,8 +143,8 @@ func (o *PatchedWritableLocationRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableLocationRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = &v } @@ -192,9 +192,9 @@ func (o *PatchedWritableLocationRequest) UnsetParent() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -202,7 +202,7 @@ func (o *PatchedWritableLocationRequest) GetStatus() PatchedWritableLocationRequ // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -218,15 +218,15 @@ func (o *PatchedWritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { +func (o *PatchedWritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -235,7 +235,7 @@ func (o *PatchedWritableLocationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PatchedWritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_module_request.go b/model_patched_writable_module_request.go index 5d7316da7..e27ce755e 100644 --- a/model_patched_writable_module_request.go +++ b/model_patched_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableModuleRequest{} // PatchedWritableModuleRequest Adds support for custom fields and tags. type PatchedWritableModuleRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - ModuleBay *int32 `json:"module_bay,omitempty"` - ModuleType *ModuleTypeRequest `json:"module_type,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + ModuleBay *int32 `json:"module_bay,omitempty"` + ModuleType *BriefModuleTypeRequest `json:"module_type,omitempty"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -53,9 +53,9 @@ func NewPatchedWritableModuleRequestWithDefaults() *PatchedWritableModuleRequest } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -63,7 +63,7 @@ func (o *PatchedWritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableModuleRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableModuleRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -117,9 +117,9 @@ func (o *PatchedWritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType @@ -127,7 +127,7 @@ func (o *PatchedWritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil || IsNil(o.ModuleType) { return nil, false } @@ -143,15 +143,15 @@ func (o *PatchedWritableModuleRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given ModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given BriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = &v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableModuleRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -159,7 +159,7 @@ func (o *PatchedWritableModuleRequest) GetStatus() PatchedWritableModuleRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -175,8 +175,8 @@ func (o *PatchedWritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *PatchedWritableModuleRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } diff --git a/model_patched_writable_module_type_request.go b/model_patched_writable_module_type_request.go index 284d2cda9..dc6c1ff8c 100644 --- a/model_patched_writable_module_type_request.go +++ b/model_patched_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,16 +19,17 @@ var _ MappedNullable = &PatchedWritableModuleTypeRequest{} // PatchedWritableModuleTypeRequest Adds support for custom fields and tags. type PatchedWritableModuleTypeRequest struct { - Manufacturer *ManufacturerRequest `json:"manufacturer,omitempty"` - Model *string `json:"model,omitempty"` + Manufacturer *BriefManufacturerRequest `json:"manufacturer,omitempty"` + Model *string `json:"model,omitempty"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -52,9 +53,9 @@ func NewPatchedWritableModuleTypeRequestWithDefaults() *PatchedWritableModuleTyp } // GetManufacturer returns the Manufacturer field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *PatchedWritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil || IsNil(o.Manufacturer) { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } return *o.Manufacturer @@ -62,7 +63,7 @@ func (o *PatchedWritableModuleTypeRequest) GetManufacturer() ManufacturerRequest // GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *PatchedWritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil || IsNil(o.Manufacturer) { return nil, false } @@ -78,8 +79,8 @@ func (o *PatchedWritableModuleTypeRequest) HasManufacturer() bool { return false } -// SetManufacturer gets a reference to the given ManufacturerRequest and assigns it to the Manufacturer field. -func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +// SetManufacturer gets a reference to the given BriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PatchedWritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = &v } @@ -147,6 +148,38 @@ func (o *PatchedWritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *PatchedWritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableModuleTypeRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. +func (o *PatchedWritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { + o.Airflow = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *PatchedWritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -191,9 +224,9 @@ func (o *PatchedWritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -201,7 +234,7 @@ func (o *PatchedWritableModuleTypeRequest) GetWeightUnit() PatchedWritableDevice // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -217,8 +250,8 @@ func (o *PatchedWritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -369,6 +402,9 @@ func (o PatchedWritableModuleTypeRequest) ToMap() (map[string]interface{}, error if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -412,6 +448,7 @@ func (o *PatchedWritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_patched_writable_power_feed_request.go b/model_patched_writable_power_feed_request.go index cd730a4d0..a3b339086 100644 --- a/model_patched_writable_power_feed_request.go +++ b/model_patched_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerFeedRequest{} // PatchedWritablePowerFeedRequest Adds support for custom fields and tags. type PatchedWritablePowerFeedRequest struct { - PowerPanel *PowerPanelRequest `json:"power_panel,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel *BriefPowerPanelRequest `json:"power_panel,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name *string `json:"name,omitempty"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -31,12 +31,12 @@ type PatchedWritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -60,9 +60,9 @@ func NewPatchedWritablePowerFeedRequestWithDefaults() *PatchedWritablePowerFeedR } // GetPowerPanel returns the PowerPanel field value if set, zero value otherwise. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil || IsNil(o.PowerPanel) { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } return *o.PowerPanel @@ -70,7 +70,7 @@ func (o *PatchedWritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil || IsNil(o.PowerPanel) { return nil, false } @@ -86,15 +86,15 @@ func (o *PatchedWritablePowerFeedRequest) HasPowerPanel() bool { return false } -// SetPowerPanel gets a reference to the given PowerPanelRequest and assigns it to the PowerPanel field. -func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +// SetPowerPanel gets a reference to the given BriefPowerPanelRequest and assigns it to the PowerPanel field. +func (o *PatchedWritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = &v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { +func (o *PatchedWritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -103,7 +103,7 @@ func (o *PatchedWritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -119,8 +119,8 @@ func (o *PatchedWritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PatchedWritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PatchedWritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -455,9 +455,9 @@ func (o *PatchedWritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -466,7 +466,7 @@ func (o *PatchedWritablePowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -482,8 +482,8 @@ func (o *PatchedWritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_power_feed_request_phase.go b/model_patched_writable_power_feed_request_phase.go index 9a576dfa2..ffda86088 100644 --- a/model_patched_writable_power_feed_request_phase.go +++ b/model_patched_writable_power_feed_request_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_status.go b/model_patched_writable_power_feed_request_status.go index e83c0f2fa..9a64dcf4a 100644 --- a/model_patched_writable_power_feed_request_status.go +++ b/model_patched_writable_power_feed_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_supply.go b/model_patched_writable_power_feed_request_supply.go index e8b5b27a3..83bbb3651 100644 --- a/model_patched_writable_power_feed_request_supply.go +++ b/model_patched_writable_power_feed_request_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_feed_request_type.go b/model_patched_writable_power_feed_request_type.go index 6951215c4..4b9f78177 100644 --- a/model_patched_writable_power_feed_request_type.go +++ b/model_patched_writable_power_feed_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request.go b/model_patched_writable_power_outlet_request.go index 4a3f01b5d..56c16a84e 100644 --- a/model_patched_writable_power_outlet_request.go +++ b/model_patched_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,13 +19,13 @@ var _ MappedNullable = &PatchedWritablePowerOutletRequest{} // PatchedWritablePowerOutletRequest Adds support for custom fields and tags. type PatchedWritablePowerOutletRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -55,9 +55,9 @@ func NewPatchedWritablePowerOutletRequestWithDefaults() *PatchedWritablePowerOut } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -81,15 +81,15 @@ func (o *PatchedWritablePowerOutletRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerOutletRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -98,7 +98,7 @@ func (o *PatchedWritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PatchedWritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -226,9 +226,9 @@ func (o *PatchedWritablePowerOutletRequest) SetType(v PatchedWritablePowerOutlet } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PatchedWritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -237,7 +237,7 @@ func (o *PatchedWritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PatchedWritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -253,8 +253,8 @@ func (o *PatchedWritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_request_feed_leg.go b/model_patched_writable_power_outlet_request_feed_leg.go index bb994c190..f9340ede4 100644 --- a/model_patched_writable_power_outlet_request_feed_leg.go +++ b/model_patched_writable_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_power_outlet_request_type.go b/model_patched_writable_power_outlet_request_type.go index b71ce89bf..2d850e09f 100644 --- a/model_patched_writable_power_outlet_request_type.go +++ b/model_patched_writable_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletRequestType Physical port type * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletRequestType string // List of PatchedWritablePowerOutletRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletRequestType = "nema-l15-60r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletRequestType = "nema-l21-20r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletRequestType = "nema-l21-30r" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletRequestType = "nema-l22-20r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletRequestType = "nema-l22-30r" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6360_C PatchedWritablePowerOutletRequestType = "CS6360C" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_CS6364_C PatchedWritablePowerOutletRequestType = "CS6364C" @@ -107,6 +108,7 @@ const ( PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x2" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletRequestType = "molex-micro-fit-2x4" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletRequestType = "dc-terminal" + PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletRequestType = "eaton-c39" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletRequestType = "hdot-cx" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletRequestType = "saf-d-grid" PATCHEDWRITABLEPOWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletRequestType = "neutrik-powercon-20a" @@ -182,6 +184,7 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", @@ -208,6 +211,7 @@ var AllowedPatchedWritablePowerOutletRequestTypeEnumValues = []PatchedWritablePo "molex-micro-fit-2x2", "molex-micro-fit-2x4", "dc-terminal", + "eaton-c39", "hdot-cx", "saf-d-grid", "neutrik-powercon-20a", diff --git a/model_patched_writable_power_outlet_template_request.go b/model_patched_writable_power_outlet_template_request.go index 665ffab4e..80ef0044a 100644 --- a/model_patched_writable_power_outlet_template_request.go +++ b/model_patched_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritablePowerOutletTemplateRequest{} // PatchedWritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -52,9 +52,9 @@ func NewPatchedWritablePowerOutletTemplateRequestWithDefaults() *PatchedWritable } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRe // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRe // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -234,9 +234,9 @@ func (o *PatchedWritablePowerOutletTemplateRequest) SetType(v PatchedWritablePow } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -245,7 +245,7 @@ func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemp // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PatchedWritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *PatchedWritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PatchedWritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_patched_writable_power_outlet_template_request_type.go b/model_patched_writable_power_outlet_template_request_type.go index 1ca291711..c34151d24 100644 --- a/model_patched_writable_power_outlet_template_request_type.go +++ b/model_patched_writable_power_outlet_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerOutletTemplateRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerOutletTemplateRequestType string // List of PatchedWritablePowerOutletTemplateRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L15_60R PatchedWritablePowerOutletTemplateRequestType = "nema-l15-60r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-20r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L21_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l21-30r" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_20R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-20r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEMA_L22_30R PatchedWritablePowerOutletTemplateRequestType = "nema-l22-30r" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6360_C PatchedWritablePowerOutletTemplateRequestType = "CS6360C" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_CS6364_C PatchedWritablePowerOutletTemplateRequestType = "CS6364C" @@ -107,6 +108,7 @@ const ( PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x2" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PatchedWritablePowerOutletTemplateRequestType = "molex-micro-fit-2x4" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_DC_TERMINAL PatchedWritablePowerOutletTemplateRequestType = "dc-terminal" + PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_EATON_C39 PatchedWritablePowerOutletTemplateRequestType = "eaton-c39" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_HDOT_CX PatchedWritablePowerOutletTemplateRequestType = "hdot-cx" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_SAF_D_GRID PatchedWritablePowerOutletTemplateRequestType = "saf-d-grid" PATCHEDWRITABLEPOWEROUTLETTEMPLATEREQUESTTYPE_NEUTRIK_POWERCON_20A PatchedWritablePowerOutletTemplateRequestType = "neutrik-powercon-20a" @@ -182,6 +184,7 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", @@ -208,6 +211,7 @@ var AllowedPatchedWritablePowerOutletTemplateRequestTypeEnumValues = []PatchedWr "molex-micro-fit-2x2", "molex-micro-fit-2x4", "dc-terminal", + "eaton-c39", "hdot-cx", "saf-d-grid", "neutrik-powercon-20a", diff --git a/model_patched_writable_power_port_request.go b/model_patched_writable_power_port_request.go index 1df1cacd1..1faabf73c 100644 --- a/model_patched_writable_power_port_request.go +++ b/model_patched_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritablePowerPortRequest{} // PatchedWritablePowerPortRequest Adds support for custom fields and tags. type PatchedWritablePowerPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -57,9 +57,9 @@ func NewPatchedWritablePowerPortRequestWithDefaults() *PatchedWritablePowerPortR } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -67,7 +67,7 @@ func (o *PatchedWritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -83,15 +83,15 @@ func (o *PatchedWritablePowerPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritablePowerPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_power_port_request_type.go b/model_patched_writable_power_port_request_type.go index fd8a265b0..6e4baec18 100644 --- a/model_patched_writable_power_port_request_type.go +++ b/model_patched_writable_power_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortRequestType Physical port type * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortRequestType string // List of PatchedWritablePowerPortRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortRequestType = "nema-l15-60p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortRequestType = "nema-l21-20p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortRequestType = "nema-l21-30p" + PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortRequestType = "nema-l22-20p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortRequestType = "nema-l22-30p" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6361C PatchedWritablePowerPortRequestType = "cs6361c" PATCHEDWRITABLEPOWERPORTREQUESTTYPE_CS6365C PatchedWritablePowerPortRequestType = "cs6365c" @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortRequestTypeEnumValues = []PatchedWritablePowe "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_power_port_template_request.go b/model_patched_writable_power_port_template_request.go index 6598158be..b8659cf8a 100644 --- a/model_patched_writable_power_port_template_request.go +++ b/model_patched_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritablePowerPortTemplateRequest{} // PatchedWritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -54,9 +54,9 @@ func NewPatchedWritablePowerPortTemplateRequestWithDefaults() *PatchedWritablePo } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequ // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequ // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_power_port_template_request_type.go b/model_patched_writable_power_port_template_request_type.go index 554ee3f09..a156a091e 100644 --- a/model_patched_writable_power_port_template_request_type.go +++ b/model_patched_writable_power_port_template_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PatchedWritablePowerPortTemplateRequestType * `iec-60320-c6` - C6 * `iec-60320-c8` - C8 * `iec-60320-c14` - C14 * `iec-60320-c16` - C16 * `iec-60320-c20` - C20 * `iec-60320-c22` - C22 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15p` - NEMA 1-15P * `nema-5-15p` - NEMA 5-15P * `nema-5-20p` - NEMA 5-20P * `nema-5-30p` - NEMA 5-30P * `nema-5-50p` - NEMA 5-50P * `nema-6-15p` - NEMA 6-15P * `nema-6-20p` - NEMA 6-20P * `nema-6-30p` - NEMA 6-30P * `nema-6-50p` - NEMA 6-50P * `nema-10-30p` - NEMA 10-30P * `nema-10-50p` - NEMA 10-50P * `nema-14-20p` - NEMA 14-20P * `nema-14-30p` - NEMA 14-30P * `nema-14-50p` - NEMA 14-50P * `nema-14-60p` - NEMA 14-60P * `nema-15-15p` - NEMA 15-15P * `nema-15-20p` - NEMA 15-20P * `nema-15-30p` - NEMA 15-30P * `nema-15-50p` - NEMA 15-50P * `nema-15-60p` - NEMA 15-60P * `nema-l1-15p` - NEMA L1-15P * `nema-l5-15p` - NEMA L5-15P * `nema-l5-20p` - NEMA L5-20P * `nema-l5-30p` - NEMA L5-30P * `nema-l5-50p` - NEMA L5-50P * `nema-l6-15p` - NEMA L6-15P * `nema-l6-20p` - NEMA L6-20P * `nema-l6-30p` - NEMA L6-30P * `nema-l6-50p` - NEMA L6-50P * `nema-l10-30p` - NEMA L10-30P * `nema-l14-20p` - NEMA L14-20P * `nema-l14-30p` - NEMA L14-30P * `nema-l14-50p` - NEMA L14-50P * `nema-l14-60p` - NEMA L14-60P * `nema-l15-20p` - NEMA L15-20P * `nema-l15-30p` - NEMA L15-30P * `nema-l15-50p` - NEMA L15-50P * `nema-l15-60p` - NEMA L15-60P * `nema-l21-20p` - NEMA L21-20P * `nema-l21-30p` - NEMA L21-30P * `nema-l22-20p` - NEMA L22-20P * `nema-l22-30p` - NEMA L22-30P * `cs6361c` - CS6361C * `cs6365c` - CS6365C * `cs8165c` - CS8165C * `cs8265c` - CS8265C * `cs8365c` - CS8365C * `cs8465c` - CS8465C * `ita-c` - ITA Type C (CEE 7/16) * `ita-e` - ITA Type E (CEE 7/6) * `ita-f` - ITA Type F (CEE 7/4) * `ita-ef` - ITA Type E/F (CEE 7/7) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `usb-a` - USB Type A * `usb-b` - USB Type B * `usb-c` - USB Type C * `usb-mini-a` - USB Mini A * `usb-mini-b` - USB Mini B * `usb-micro-a` - USB Micro A * `usb-micro-b` - USB Micro B * `usb-micro-ab` - USB Micro AB * `usb-3-b` - USB 3.0 Type B * `usb-3-micro-b` - USB 3.0 Micro B * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20` - Neutrik powerCON (20A) * `neutrik-powercon-32` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PatchedWritablePowerPortTemplateRequestType string // List of PatchedWritablePowerPortTemplateRequest_type @@ -81,6 +81,7 @@ const ( PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L15_60P PatchedWritablePowerPortTemplateRequestType = "nema-l15-60p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_20P PatchedWritablePowerPortTemplateRequestType = "nema-l21-20p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L21_30P PatchedWritablePowerPortTemplateRequestType = "nema-l21-30p" + PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_20P PatchedWritablePowerPortTemplateRequestType = "nema-l22-20p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_NEMA_L22_30P PatchedWritablePowerPortTemplateRequestType = "nema-l22-30p" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6361C PatchedWritablePowerPortTemplateRequestType = "cs6361c" PATCHEDWRITABLEPOWERPORTTEMPLATEREQUESTTYPE_CS6365C PatchedWritablePowerPortTemplateRequestType = "cs6365c" @@ -189,6 +190,7 @@ var AllowedPatchedWritablePowerPortTemplateRequestTypeEnumValues = []PatchedWrit "nema-l15-60p", "nema-l21-20p", "nema-l21-30p", + "nema-l22-20p", "nema-l22-30p", "cs6361c", "cs6365c", diff --git a/model_patched_writable_prefix_request.go b/model_patched_writable_prefix_request.go index 4f5dc38b7..7d779be17 100644 --- a/model_patched_writable_prefix_request.go +++ b/model_patched_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritablePrefixRequest{} // PatchedWritablePrefixRequest Adds support for custom fields and tags. type PatchedWritablePrefixRequest struct { Prefix *string `json:"prefix,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -89,9 +89,9 @@ func (o *PatchedWritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { +func (o *PatchedWritablePrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -100,7 +100,7 @@ func (o *PatchedWritablePrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -116,8 +116,8 @@ func (o *PatchedWritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritablePrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritablePrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -132,9 +132,9 @@ func (o *PatchedWritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { +func (o *PatchedWritablePrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -143,7 +143,7 @@ func (o *PatchedWritablePrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -159,8 +159,8 @@ func (o *PatchedWritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritablePrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritablePrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -175,9 +175,9 @@ func (o *PatchedWritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { +func (o *PatchedWritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -186,7 +186,7 @@ func (o *PatchedWritablePrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -202,8 +202,8 @@ func (o *PatchedWritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -218,9 +218,9 @@ func (o *PatchedWritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { +func (o *PatchedWritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -229,7 +229,7 @@ func (o *PatchedWritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -245,8 +245,8 @@ func (o *PatchedWritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -293,9 +293,9 @@ func (o *PatchedWritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestS } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { +func (o *PatchedWritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -304,7 +304,7 @@ func (o *PatchedWritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -320,8 +320,8 @@ func (o *PatchedWritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_prefix_request_status.go b/model_patched_writable_prefix_request_status.go index ecbeb236f..649354799 100644 --- a/model_patched_writable_prefix_request_status.go +++ b/model_patched_writable_prefix_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request.go b/model_patched_writable_rack_request.go index 2b21e78d4..4de923795 100644 --- a/model_patched_writable_rack_request.go +++ b/model_patched_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,24 +21,25 @@ var _ MappedNullable = &PatchedWritableRackRequest{} type PatchedWritableRackRequest struct { Name *string `json:"name,omitempty"` FacilityId NullableString `json:"facility_id,omitempty"` - Site *SiteRequest `json:"site,omitempty"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site *BriefSiteRequest `json:"site,omitempty"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -47,11 +48,12 @@ type PatchedWritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -150,9 +152,9 @@ func (o *PatchedWritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetSite() SiteRequest { +func (o *PatchedWritableRackRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site @@ -160,7 +162,7 @@ func (o *PatchedWritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil || IsNil(o.Site) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableRackRequest) HasSite() bool { return false } -// SetSite gets a reference to the given SiteRequest and assigns it to the Site field. -func (o *PatchedWritableRackRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given BriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = &v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { +func (o *PatchedWritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *PatchedWritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -209,8 +211,8 @@ func (o *PatchedWritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *PatchedWritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PatchedWritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -225,9 +227,9 @@ func (o *PatchedWritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { +func (o *PatchedWritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -236,7 +238,7 @@ func (o *PatchedWritableRackRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -252,8 +254,8 @@ func (o *PatchedWritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -300,9 +302,9 @@ func (o *PatchedWritableRackRequest) SetStatus(v PatchedWritableRackRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { +func (o *PatchedWritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -311,7 +313,7 @@ func (o *PatchedWritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *PatchedWritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -327,8 +329,8 @@ func (o *PatchedWritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *PatchedWritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *PatchedWritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } @@ -417,36 +419,79 @@ func (o *PatchedWritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *PatchedWritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *PatchedWritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *PatchedWritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { return nil, false } - return o.Type, true + return o.FormFactor, true } -// HasType returns a boolean if a field has been set. -func (o *PatchedWritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *PatchedWritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *PatchedWritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -632,9 +677,9 @@ func (o *PatchedWritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *PatchedWritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -642,7 +687,7 @@ func (o *PatchedWritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRe // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *PatchedWritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -658,8 +703,8 @@ func (o *PatchedWritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *PatchedWritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *PatchedWritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -856,6 +901,38 @@ func (o *PatchedWritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *PatchedWritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *PatchedWritableRackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *PatchedWritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1021,8 +1098,11 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1057,6 +1137,9 @@ func (o PatchedWritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1100,7 +1183,8 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1112,6 +1196,7 @@ func (o *PatchedWritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_rack_request_airflow.go b/model_patched_writable_rack_request_airflow.go index bc860e794..bf12ed4f3 100644 --- a/model_patched_writable_rack_request_airflow.go +++ b/model_patched_writable_rack_request_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_form_factor.go b/model_patched_writable_rack_request_form_factor.go index b53dacc4f..ec804922d 100644 --- a/model_patched_writable_rack_request_form_factor.go +++ b/model_patched_writable_rack_request_form_factor.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_outer_unit.go b/model_patched_writable_rack_request_outer_unit.go index 21a86aded..3d91f6edb 100644 --- a/model_patched_writable_rack_request_outer_unit.go +++ b/model_patched_writable_rack_request_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_status.go b/model_patched_writable_rack_request_status.go index 9dc9df329..b5c9459fb 100644 --- a/model_patched_writable_rack_request_status.go +++ b/model_patched_writable_rack_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_request_width.go b/model_patched_writable_rack_request_width.go index 19908dc01..87e9ae6a6 100644 --- a/model_patched_writable_rack_request_width.go +++ b/model_patched_writable_rack_request_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_type_request.go b/model_patched_writable_rack_type_request.go index 1f2fd36e5..3cd68ad8e 100644 --- a/model_patched_writable_rack_type_request.go +++ b/model_patched_writable_rack_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rack_type_request_form_factor.go b/model_patched_writable_rack_type_request_form_factor.go index 31d5b9af4..d53fb6c54 100644 --- a/model_patched_writable_rack_type_request_form_factor.go +++ b/model_patched_writable_rack_type_request_form_factor.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_rear_port_request.go b/model_patched_writable_rear_port_request.go index 881056212..46a9f841c 100644 --- a/model_patched_writable_rear_port_request.go +++ b/model_patched_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,9 +19,9 @@ var _ MappedNullable = &PatchedWritableRearPortRequest{} // PatchedWritableRearPortRequest Adds support for custom fields and tags. type PatchedWritableRearPortRequest struct { - Device *DeviceRequest `json:"device,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name *string `json:"name,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name *string `json:"name,omitempty"` // Physical label Label *string `json:"label,omitempty"` Type *FrontPortTypeValue `json:"type,omitempty"` @@ -56,9 +56,9 @@ func NewPatchedWritableRearPortRequestWithDefaults() *PatchedWritableRearPortReq } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -66,7 +66,7 @@ func (o *PatchedWritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -82,15 +82,15 @@ func (o *PatchedWritableRearPortRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableRearPortRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { +func (o *PatchedWritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -99,7 +99,7 @@ func (o *PatchedWritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PatchedWritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -115,8 +115,8 @@ func (o *PatchedWritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PatchedWritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PatchedWritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_patched_writable_rear_port_template_request.go b/model_patched_writable_rear_port_template_request.go index 5280e4ec8..01cbbd077 100644 --- a/model_patched_writable_rear_port_template_request.go +++ b/model_patched_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableRearPortTemplateRequest{} // PatchedWritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PatchedWritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name *string `json:"name,omitempty"` // Physical label @@ -52,9 +52,9 @@ func NewPatchedWritableRearPortTemplateRequestWithDefaults() *PatchedWritableRea } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PatchedWritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableRearPortTemplateRequest) GetModuleType() ModuleTypeReque // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PatchedWritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PatchedWritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_patched_writable_region_request.go b/model_patched_writable_region_request.go index f2deb297b..186e8cdb2 100644 --- a/model_patched_writable_region_request.go +++ b/model_patched_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_request.go b/model_patched_writable_service_request.go index 9f1abb8c1..e087798ce 100644 --- a/model_patched_writable_service_request.go +++ b/model_patched_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,8 +19,8 @@ var _ MappedNullable = &PatchedWritableServiceRequest{} // PatchedWritableServiceRequest Adds support for custom fields and tags. type PatchedWritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports,omitempty"` @@ -52,9 +52,9 @@ func NewPatchedWritableServiceRequestWithDefaults() *PatchedWritableServiceReque } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -63,7 +63,7 @@ func (o *PatchedWritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *PatchedWritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -95,9 +95,9 @@ func (o *PatchedWritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -106,7 +106,7 @@ func (o *PatchedWritableServiceRequest) GetVirtualMachine() VirtualMachineReques // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *PatchedWritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_patched_writable_service_request_protocol.go b/model_patched_writable_service_request_protocol.go index 4b7b5d491..95f647a3d 100644 --- a/model_patched_writable_service_request_protocol.go +++ b/model_patched_writable_service_request_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_service_template_request.go b/model_patched_writable_service_template_request.go index 182e8786d..47c7b2209 100644 --- a/model_patched_writable_service_template_request.go +++ b/model_patched_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_group_request.go b/model_patched_writable_site_group_request.go index 784b86567..08c26bd80 100644 --- a/model_patched_writable_site_group_request.go +++ b/model_patched_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_site_request.go b/model_patched_writable_site_request.go index 35523daf2..13fa411b2 100644 --- a/model_patched_writable_site_request.go +++ b/model_patched_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &PatchedWritableSiteRequest{} // PatchedWritableSiteRequest Adds support for custom fields and tags. type PatchedWritableSiteRequest struct { // Full name of the site - Name *string `json:"name,omitempty"` - Slug *string `json:"slug,omitempty"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name *string `json:"name,omitempty"` + Slug *string `json:"slug,omitempty"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -129,9 +129,9 @@ func (o *PatchedWritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *PatchedWritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *PatchedWritableSiteRequest) GetStatus() PatchedWritableLocationRequestS // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *PatchedWritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,15 +155,15 @@ func (o *PatchedWritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *PatchedWritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *PatchedWritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { +func (o *PatchedWritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -172,7 +172,7 @@ func (o *PatchedWritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *PatchedWritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -188,8 +188,8 @@ func (o *PatchedWritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *PatchedWritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *PatchedWritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *PatchedWritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *PatchedWritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *PatchedWritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *PatchedWritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } @@ -247,9 +247,9 @@ func (o *PatchedWritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { +func (o *PatchedWritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -258,7 +258,7 @@ func (o *PatchedWritableSiteRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -274,8 +274,8 @@ func (o *PatchedWritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tenant_group_request.go b/model_patched_writable_tenant_group_request.go index 86547508d..f0e8a0764 100644 --- a/model_patched_writable_tenant_group_request.go +++ b/model_patched_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request.go b/model_patched_writable_tunnel_request.go index cac6687a1..a8a91f8ce 100644 --- a/model_patched_writable_tunnel_request.go +++ b/model_patched_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &PatchedWritableTunnelRequest{} type PatchedWritableTunnelRequest struct { Name *string `json:"name,omitempty"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` Encapsulation *PatchedWritableTunnelRequestEncapsulation `json:"encapsulation,omitempty"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` TunnelId NullableInt64 `json:"tunnel_id,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -117,9 +117,9 @@ func (o *PatchedWritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestS } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *PatchedWritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -128,7 +128,7 @@ func (o *PatchedWritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -144,8 +144,8 @@ func (o *PatchedWritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *PatchedWritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *PatchedWritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } @@ -192,9 +192,9 @@ func (o *PatchedWritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelR } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *PatchedWritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -203,7 +203,7 @@ func (o *PatchedWritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -219,8 +219,8 @@ func (o *PatchedWritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *PatchedWritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -235,9 +235,9 @@ func (o *PatchedWritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { +func (o *PatchedWritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -246,7 +246,7 @@ func (o *PatchedWritableTunnelRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -262,8 +262,8 @@ func (o *PatchedWritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_patched_writable_tunnel_request_encapsulation.go b/model_patched_writable_tunnel_request_encapsulation.go index 54582c03d..352a297ce 100644 --- a/model_patched_writable_tunnel_request_encapsulation.go +++ b/model_patched_writable_tunnel_request_encapsulation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_request_status.go b/model_patched_writable_tunnel_request_status.go index b4b020162..529691118 100644 --- a/model_patched_writable_tunnel_request_status.go +++ b/model_patched_writable_tunnel_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_tunnel_termination_request.go b/model_patched_writable_tunnel_termination_request.go index 361991390..0ebee20e0 100644 --- a/model_patched_writable_tunnel_termination_request.go +++ b/model_patched_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,11 +19,11 @@ var _ MappedNullable = &PatchedWritableTunnelTerminationRequest{} // PatchedWritableTunnelTerminationRequest Adds support for custom fields and tags. type PatchedWritableTunnelTerminationRequest struct { - Tunnel *TunnelRequest `json:"tunnel,omitempty"` + Tunnel *BriefTunnelRequest `json:"tunnel,omitempty"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType *string `json:"termination_type,omitempty"` TerminationId NullableInt64 `json:"termination_id,omitempty"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -49,9 +49,9 @@ func NewPatchedWritableTunnelTerminationRequestWithDefaults() *PatchedWritableTu } // GetTunnel returns the Tunnel field value if set, zero value otherwise. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil || IsNil(o.Tunnel) { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } return *o.Tunnel @@ -59,7 +59,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil || IsNil(o.Tunnel) { return nil, false } @@ -75,8 +75,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasTunnel() bool { return false } -// SetTunnel gets a reference to the given TunnelRequest and assigns it to the Tunnel field. -func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +// SetTunnel gets a reference to the given BriefTunnelRequest and assigns it to the Tunnel field. +func (o *PatchedWritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = &v } @@ -188,9 +188,9 @@ func (o *PatchedWritableTunnelTerminationRequest) UnsetTerminationId() { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -199,7 +199,7 @@ func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIp() IPAddressReques // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *PatchedWritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *PatchedWritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *PatchedWritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_patched_writable_tunnel_termination_request_role.go b/model_patched_writable_tunnel_termination_request_role.go index 8bc7b5eea..96597e948 100644 --- a/model_patched_writable_tunnel_termination_request_role.go +++ b/model_patched_writable_tunnel_termination_request_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_chassis_request.go b/model_patched_writable_virtual_chassis_request.go index f160befac..05e0073d5 100644 --- a/model_patched_writable_virtual_chassis_request.go +++ b/model_patched_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_device_context_request.go b/model_patched_writable_virtual_device_context_request.go index 34ba5129c..84cf6a73f 100644 --- a/model_patched_writable_virtual_device_context_request.go +++ b/model_patched_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &PatchedWritableVirtualDeviceContextRequest{} // PatchedWritableVirtualDeviceContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualDeviceContextRequest struct { Name *string `json:"name,omitempty"` - Device *DeviceRequest `json:"device,omitempty"` + Device *BriefDeviceRequest `json:"device,omitempty"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` Status *PatchedWritableVirtualDeviceContextRequestStatus `json:"status,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -85,9 +85,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value if set, zero value otherwise. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device @@ -95,7 +95,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil || IsNil(o.Device) { return nil, false } @@ -111,8 +111,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given DeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given BriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = &v } @@ -160,9 +160,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -171,7 +171,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -187,8 +187,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -203,9 +203,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -214,7 +214,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRe // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -230,8 +230,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -246,9 +246,9 @@ func (o *PatchedWritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -257,7 +257,7 @@ func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRe // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -273,8 +273,8 @@ func (o *PatchedWritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_patched_writable_virtual_device_context_request_status.go b/model_patched_writable_virtual_device_context_request_status.go index 9bed2f913..04cc758b9 100644 --- a/model_patched_writable_virtual_device_context_request_status.go +++ b/model_patched_writable_virtual_device_context_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_virtual_machine_with_config_context_request.go b/model_patched_writable_virtual_machine_with_config_context_request.go index e9006bf84..d4385e322 100644 --- a/model_patched_writable_virtual_machine_with_config_context_request.go +++ b/model_patched_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,22 +19,23 @@ var _ MappedNullable = &PatchedWritableVirtualMachineWithConfigContextRequest{} // PatchedWritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type PatchedWritableVirtualMachineWithConfigContextRequest struct { - Name *string `json:"name,omitempty"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name *string `json:"name,omitempty"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -94,9 +95,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetName(v string } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -104,7 +105,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatus() Patc // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -120,15 +121,15 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasStatus() bool return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -137,7 +138,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSite() SiteRe // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -153,8 +154,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -169,9 +170,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -180,7 +181,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetCluster() Clu // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -196,8 +197,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasCluster() boo return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -212,9 +213,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -223,7 +224,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDevice() Devi // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -239,8 +240,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasDevice() bool return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -254,10 +255,42 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -266,7 +299,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRole() Device // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -282,8 +315,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -298,9 +331,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -309,7 +342,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenant() Tena // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -325,8 +358,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasTenant() bool return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -341,9 +374,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -352,7 +385,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatform() Pl // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -368,8 +401,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPlatform() bo return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -384,9 +417,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPlatform() } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -395,7 +428,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -411,8 +444,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -427,9 +460,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4( } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -438,7 +471,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -454,8 +487,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -663,9 +696,9 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetComments(v st } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -674,7 +707,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplat // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -690,8 +723,8 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) HasConfigTemplat return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PatchedWritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -827,6 +860,9 @@ func (o PatchedWritableVirtualMachineWithConfigContextRequest) ToMap() (map[stri if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -896,6 +932,7 @@ func (o *PatchedWritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(da delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_patched_writable_vlan_request.go b/model_patched_writable_vlan_request.go index f341c2425..323de259a 100644 --- a/model_patched_writable_vlan_request.go +++ b/model_patched_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,14 +19,14 @@ var _ MappedNullable = &PatchedWritableVLANRequest{} // PatchedWritableVLANRequest Adds support for custom fields and tags. type PatchedWritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid *int32 `json:"vid,omitempty"` Name *string `json:"name,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -54,9 +54,9 @@ func NewPatchedWritableVLANRequestWithDefaults() *PatchedWritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { +func (o *PatchedWritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -65,7 +65,7 @@ func (o *PatchedWritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PatchedWritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PatchedWritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PatchedWritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PatchedWritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -97,9 +97,9 @@ func (o *PatchedWritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *PatchedWritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -108,7 +108,7 @@ func (o *PatchedWritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *PatchedWritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PatchedWritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } @@ -204,9 +204,9 @@ func (o *PatchedWritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -215,7 +215,7 @@ func (o *PatchedWritableVLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -231,8 +231,8 @@ func (o *PatchedWritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -279,9 +279,9 @@ func (o *PatchedWritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatu } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { +func (o *PatchedWritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -290,7 +290,7 @@ func (o *PatchedWritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PatchedWritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -306,8 +306,8 @@ func (o *PatchedWritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PatchedWritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PatchedWritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_patched_writable_vlan_request_status.go b/model_patched_writable_vlan_request_status.go index 74ada78e4..7e6d23cfb 100644 --- a/model_patched_writable_vlan_request_status.go +++ b/model_patched_writable_vlan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_vm_interface_request.go b/model_patched_writable_vm_interface_request.go index fd72c0f66..f355f6cd7 100644 --- a/model_patched_writable_vm_interface_request.go +++ b/model_patched_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,7 +19,7 @@ var _ MappedNullable = &PatchedWritableVMInterfaceRequest{} // PatchedWritableVMInterfaceRequest Adds support for custom fields and tags. type PatchedWritableVMInterfaceRequest struct { - VirtualMachine *VirtualMachineRequest `json:"virtual_machine,omitempty"` + VirtualMachine *BriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name *string `json:"name,omitempty"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -28,9 +28,9 @@ type PatchedWritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -56,9 +56,9 @@ func NewPatchedWritableVMInterfaceRequestWithDefaults() *PatchedWritableVMInterf } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine @@ -66,7 +66,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRe // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil || IsNil(o.VirtualMachine) { return nil, false } @@ -82,8 +82,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given VirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given BriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *PatchedWritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = &v } @@ -388,9 +388,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRe } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -399,7 +399,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -415,8 +415,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *PatchedWritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -463,9 +463,9 @@ func (o *PatchedWritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *PatchedWritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -474,7 +474,7 @@ func (o *PatchedWritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PatchedWritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -490,8 +490,8 @@ func (o *PatchedWritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PatchedWritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PatchedWritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_patched_writable_wireless_lan_group_request.go b/model_patched_writable_wireless_lan_group_request.go index 1ffc71e4c..dd806bd4d 100644 --- a/model_patched_writable_wireless_lan_group_request.go +++ b/model_patched_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_lan_request.go b/model_patched_writable_wireless_lan_request.go index 961912611..38853ba29 100644 --- a/model_patched_writable_wireless_lan_request.go +++ b/model_patched_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &PatchedWritableWirelessLANRequest{} type PatchedWritableWirelessLANRequest struct { Ssid *string `json:"ssid,omitempty"` Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType3 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher1 `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -118,9 +118,9 @@ func (o *PatchedWritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *PatchedWritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -129,7 +129,7 @@ func (o *PatchedWritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -145,8 +145,8 @@ func (o *PatchedWritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *PatchedWritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *PatchedWritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -193,9 +193,9 @@ func (o *PatchedWritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessL } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *PatchedWritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -204,7 +204,7 @@ func (o *PatchedWritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -220,8 +220,8 @@ func (o *PatchedWritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PatchedWritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PatchedWritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -236,9 +236,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -247,7 +247,7 @@ func (o *PatchedWritableWirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -263,8 +263,8 @@ func (o *PatchedWritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -279,9 +279,9 @@ func (o *PatchedWritableWirelessLANRequest) UnsetTenant() { } // GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType1 { +func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType3 { if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType1 + var ret AuthenticationType3 return ret } return *o.AuthType @@ -289,7 +289,7 @@ func (o *PatchedWritableWirelessLANRequest) GetAuthType() AuthenticationType1 { // GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { +func (o *PatchedWritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType3, bool) { if o == nil || IsNil(o.AuthType) { return nil, false } @@ -305,15 +305,15 @@ func (o *PatchedWritableWirelessLANRequest) HasAuthType() bool { return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. -func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType1) { +// SetAuthType gets a reference to the given AuthenticationType3 and assigns it to the AuthType field. +func (o *PatchedWritableWirelessLANRequest) SetAuthType(v AuthenticationType3) { o.AuthType = &v } // GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher { +func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher1 { if o == nil || IsNil(o.AuthCipher) { - var ret AuthenticationCipher + var ret AuthenticationCipher1 return ret } return *o.AuthCipher @@ -321,7 +321,7 @@ func (o *PatchedWritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher // GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { +func (o *PatchedWritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool) { if o == nil || IsNil(o.AuthCipher) { return nil, false } @@ -337,8 +337,8 @@ func (o *PatchedWritableWirelessLANRequest) HasAuthCipher() bool { return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. -func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) { +// SetAuthCipher gets a reference to the given AuthenticationCipher1 and assigns it to the AuthCipher field. +func (o *PatchedWritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher1) { o.AuthCipher = &v } diff --git a/model_patched_writable_wireless_lan_request_status.go b/model_patched_writable_wireless_lan_request_status.go index 2960171ff..87995e78e 100644 --- a/model_patched_writable_wireless_lan_request_status.go +++ b/model_patched_writable_wireless_lan_request_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_patched_writable_wireless_link_request.go b/model_patched_writable_wireless_link_request.go index 53a6fee89..91fc7875f 100644 --- a/model_patched_writable_wireless_link_request.go +++ b/model_patched_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,18 +19,20 @@ var _ MappedNullable = &PatchedWritableWirelessLinkRequest{} // PatchedWritableWirelessLinkRequest Adds support for custom fields and tags. type PatchedWritableWirelessLinkRequest struct { - InterfaceA *InterfaceRequest `json:"interface_a,omitempty"` - InterfaceB *InterfaceRequest `json:"interface_b,omitempty"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA *BriefInterfaceRequest `json:"interface_a,omitempty"` + InterfaceB *BriefInterfaceRequest `json:"interface_b,omitempty"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType3 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher1 `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +56,9 @@ func NewPatchedWritableWirelessLinkRequestWithDefaults() *PatchedWritableWireles } // GetInterfaceA returns the InterfaceA field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceA) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceA @@ -64,7 +66,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceA) { return nil, false } @@ -80,15 +82,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceA() bool { return false } -// SetInterfaceA gets a reference to the given InterfaceRequest and assigns it to the InterfaceA field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +// SetInterfaceA gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceA field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = &v } // GetInterfaceB returns the InterfaceB field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil || IsNil(o.InterfaceB) { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } return *o.InterfaceB @@ -96,7 +98,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil || IsNil(o.InterfaceB) { return nil, false } @@ -112,8 +114,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasInterfaceB() bool { return false } -// SetInterfaceB gets a reference to the given InterfaceRequest and assigns it to the InterfaceB field. -func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +// SetInterfaceB gets a reference to the given BriefInterfaceRequest and assigns it to the InterfaceB field. +func (o *PatchedWritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = &v } @@ -150,9 +152,9 @@ func (o *PatchedWritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *PatchedWritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -160,7 +162,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetStatus() PatchedWritableCableReq // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -176,15 +178,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *PatchedWritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *PatchedWritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *PatchedWritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -193,7 +195,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -209,8 +211,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PatchedWritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PatchedWritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -225,9 +227,9 @@ func (o *PatchedWritableWirelessLinkRequest) UnsetTenant() { } // GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType1 { +func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType3 { if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType1 + var ret AuthenticationType3 return ret } return *o.AuthType @@ -235,7 +237,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetAuthType() AuthenticationType1 { // GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType3, bool) { if o == nil || IsNil(o.AuthType) { return nil, false } @@ -251,15 +253,15 @@ func (o *PatchedWritableWirelessLinkRequest) HasAuthType() bool { return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. -func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) { +// SetAuthType gets a reference to the given AuthenticationType3 and assigns it to the AuthType field. +func (o *PatchedWritableWirelessLinkRequest) SetAuthType(v AuthenticationType3) { o.AuthType = &v } // GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. -func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher { +func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher1 { if o == nil || IsNil(o.AuthCipher) { - var ret AuthenticationCipher + var ret AuthenticationCipher1 return ret } return *o.AuthCipher @@ -267,7 +269,7 @@ func (o *PatchedWritableWirelessLinkRequest) GetAuthCipher() AuthenticationCiphe // GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { +func (o *PatchedWritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool) { if o == nil || IsNil(o.AuthCipher) { return nil, false } @@ -283,8 +285,8 @@ func (o *PatchedWritableWirelessLinkRequest) HasAuthCipher() bool { return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. -func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) { +// SetAuthCipher gets a reference to the given AuthenticationCipher1 and assigns it to the AuthCipher field. +func (o *PatchedWritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher1) { o.AuthCipher = &v } @@ -320,6 +322,81 @@ func (o *PatchedWritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PatchedWritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PatchedWritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *PatchedWritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *PatchedWritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *PatchedWritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PatchedWritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.DistanceUnit) { + return nil, false + } + return o.DistanceUnit, true +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *PatchedWritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && !IsNil(o.DistanceUnit) { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *PatchedWritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.DistanceUnit = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PatchedWritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -482,6 +559,12 @@ func (o PatchedWritableWirelessLinkRequest) ToMap() (map[string]interface{}, err if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if !IsNil(o.DistanceUnit) { + toSerialize["distance_unit"] = o.DistanceUnit + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -524,6 +607,8 @@ func (o *PatchedWritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err err delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_patched_writable_wireless_link_request_distance_unit.go b/model_patched_writable_wireless_link_request_distance_unit.go index 2c2419af8..d1cfcde7d 100644 --- a/model_patched_writable_wireless_link_request_distance_unit.go +++ b/model_patched_writable_wireless_link_request_distance_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_platform.go b/model_platform.go index 95143bd8e..1e962a5e4 100644 --- a/model_platform.go +++ b/model_platform.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Platform type satisfies the MappedNullable interface at compile time @@ -20,14 +21,21 @@ var _ MappedNullable = &Platform{} // Platform Adds support for custom fields and tags. type Platform struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` - VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableBriefManufacturer `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +45,15 @@ 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, display string, name string, slug string) *Platform { +func NewPlatform(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *Platform { this := Platform{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +113,38 @@ func (o *Platform) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Platform) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Platform) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Platform) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Platform) GetDisplay() string { if o == nil { @@ -175,6 +217,92 @@ func (o *Platform) SetSlug(v string) { o.Slug = v } +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetManufacturer() BriefManufacturer { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturer + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetManufacturerOk() (*BriefManufacturer, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *Platform) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturer and assigns it to the Manufacturer field. +func (o *Platform) SetManufacturer(v BriefManufacturer) { + o.Manufacturer.Set(&v) +} + +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *Platform) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *Platform) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Platform) GetConfigTemplate() BriefConfigTemplate { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplate + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *Platform) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *Platform) SetConfigTemplate(v BriefConfigTemplate) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *Platform) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *Platform) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Platform) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +335,122 @@ func (o *Platform) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Platform) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Platform) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Platform) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Platform) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Platform) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Platform) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Platform) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Platform) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Platform) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Platform) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Platform) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Platform) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Platform) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -283,12 +527,29 @@ func (o Platform) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } @@ -313,6 +574,8 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -344,10 +607,17 @@ func (o *Platform) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") delete(additionalProperties, "virtualmachine_count") o.AdditionalProperties = additionalProperties diff --git a/model_platform_request.go b/model_platform_request.go index 365ea0c95..dc14db5b3 100644 --- a/model_platform_request.go +++ b/model_platform_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &PlatformRequest{} // PlatformRequest Adds support for custom fields and tags. type PlatformRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Manufacturer NullableBriefManufacturerRequest `json:"manufacturer,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,92 @@ func (o *PlatformRequest) SetSlug(v string) { o.Slug = v } +// GetManufacturer returns the Manufacturer field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetManufacturer() BriefManufacturerRequest { + if o == nil || IsNil(o.Manufacturer.Get()) { + var ret BriefManufacturerRequest + return ret + } + return *o.Manufacturer.Get() +} + +// GetManufacturerOk returns a tuple with the Manufacturer field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlatformRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { + if o == nil { + return nil, false + } + return o.Manufacturer.Get(), o.Manufacturer.IsSet() +} + +// HasManufacturer returns a boolean if a field has been set. +func (o *PlatformRequest) HasManufacturer() bool { + if o != nil && o.Manufacturer.IsSet() { + return true + } + + return false +} + +// SetManufacturer gets a reference to the given NullableBriefManufacturerRequest and assigns it to the Manufacturer field. +func (o *PlatformRequest) SetManufacturer(v BriefManufacturerRequest) { + o.Manufacturer.Set(&v) +} + +// SetManufacturerNil sets the value for Manufacturer to be an explicit nil +func (o *PlatformRequest) SetManufacturerNil() { + o.Manufacturer.Set(nil) +} + +// UnsetManufacturer ensures that no value is present for Manufacturer, not even an explicit nil +func (o *PlatformRequest) UnsetManufacturer() { + o.Manufacturer.Unset() +} + +// GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PlatformRequest) GetConfigTemplate() BriefConfigTemplateRequest { + if o == nil || IsNil(o.ConfigTemplate.Get()) { + var ret BriefConfigTemplateRequest + return ret + } + return *o.ConfigTemplate.Get() +} + +// GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PlatformRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { + if o == nil { + return nil, false + } + return o.ConfigTemplate.Get(), o.ConfigTemplate.IsSet() +} + +// HasConfigTemplate returns a boolean if a field has been set. +func (o *PlatformRequest) HasConfigTemplate() bool { + if o != nil && o.ConfigTemplate.IsSet() { + return true + } + + return false +} + +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *PlatformRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { + o.ConfigTemplate.Set(&v) +} + +// SetConfigTemplateNil sets the value for ConfigTemplate to be an explicit nil +func (o *PlatformRequest) SetConfigTemplateNil() { + o.ConfigTemplate.Set(nil) +} + +// UnsetConfigTemplate ensures that no value is present for ConfigTemplate, not even an explicit nil +func (o *PlatformRequest) UnsetConfigTemplate() { + o.ConfigTemplate.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PlatformRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +217,70 @@ func (o *PlatformRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PlatformRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PlatformRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PlatformRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PlatformRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PlatformRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PlatformRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PlatformRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PlatformRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +293,21 @@ func (o PlatformRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Manufacturer.IsSet() { + toSerialize["manufacturer"] = o.Manufacturer.Get() + } + if o.ConfigTemplate.IsSet() { + toSerialize["config_template"] = o.ConfigTemplate.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +354,11 @@ func (o *PlatformRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "manufacturer") + delete(additionalProperties, "config_template") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_feed.go b/model_power_feed.go index d946fcb84..75f473f8c 100644 --- a/model_power_feed.go +++ b/model_power_feed.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,32 +21,33 @@ var _ MappedNullable = &PowerFeed{} // PowerFeed Adds support for custom fields and tags. type PowerFeed struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - PowerPanel PowerPanel `json:"power_panel"` - Rack NullableRack `json:"rack,omitempty"` - Name string `json:"name"` - Status *PowerFeedStatus `json:"status,omitempty"` - Type *PowerFeedType `json:"type,omitempty"` - Supply *PowerFeedSupply `json:"supply,omitempty"` - Phase *PowerFeedPhase `json:"phase,omitempty"` - Voltage *int32 `json:"voltage,omitempty"` - Amperage *int32 `json:"amperage,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + PowerPanel BriefPowerPanel `json:"power_panel"` + Rack NullableBriefRack `json:"rack,omitempty"` + Name string `json:"name"` + Status *PowerFeedStatus `json:"status,omitempty"` + Type *PowerFeedType `json:"type,omitempty"` + Supply *PowerFeedSupply `json:"supply,omitempty"` + Phase *PowerFeedPhase `json:"phase,omitempty"` + Voltage *int32 `json:"voltage,omitempty"` + Amperage *int32 `json:"amperage,omitempty"` // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Description *string `json:"description,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -62,7 +63,7 @@ type _PowerFeed PowerFeed // 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 NewPowerFeed(id int32, url string, display string, powerPanel PowerPanel, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { +func NewPowerFeed(id int32, url string, display string, powerPanel BriefPowerPanel, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerFeed { this := PowerFeed{} this.Id = id this.Url = url @@ -138,6 +139,38 @@ func (o *PowerFeed) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerFeed) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerFeed) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerFeed) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerFeed) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerFeed) GetDisplay() string { if o == nil { @@ -163,9 +196,9 @@ func (o *PowerFeed) SetDisplay(v string) { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeed) GetPowerPanel() PowerPanel { +func (o *PowerFeed) GetPowerPanel() BriefPowerPanel { if o == nil { - var ret PowerPanel + var ret BriefPowerPanel return ret } @@ -174,7 +207,7 @@ func (o *PowerFeed) GetPowerPanel() PowerPanel { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { +func (o *PowerFeed) GetPowerPanelOk() (*BriefPowerPanel, bool) { if o == nil { return nil, false } @@ -182,14 +215,14 @@ func (o *PowerFeed) GetPowerPanelOk() (*PowerPanel, bool) { } // SetPowerPanel sets field value -func (o *PowerFeed) SetPowerPanel(v PowerPanel) { +func (o *PowerFeed) SetPowerPanel(v BriefPowerPanel) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetRack() Rack { +func (o *PowerFeed) GetRack() BriefRack { if o == nil || IsNil(o.Rack.Get()) { - var ret Rack + var ret BriefRack return ret } return *o.Rack.Get() @@ -198,7 +231,7 @@ func (o *PowerFeed) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetRackOk() (*Rack, bool) { +func (o *PowerFeed) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -214,8 +247,8 @@ func (o *PowerFeed) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRack and assigns it to the Rack field. -func (o *PowerFeed) SetRack(v Rack) { +// SetRack gets a reference to the given NullableBriefRack and assigns it to the Rack field. +func (o *PowerFeed) SetRack(v BriefRack) { o.Rack.Set(&v) } @@ -510,10 +543,10 @@ func (o *PowerFeed) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerFeed) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerFeed) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -523,7 +556,7 @@ func (o *PowerFeed) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetCableOk() (*Cable, bool) { +func (o *PowerFeed) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -531,7 +564,7 @@ func (o *PowerFeed) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerFeed) SetCable(v Cable) { +func (o *PowerFeed) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -584,30 +617,33 @@ func (o *PowerFeed) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *PowerFeed) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerFeed) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -619,8 +655,9 @@ func (o *PowerFeed) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -632,27 +669,29 @@ func (o *PowerFeed) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerFeed) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerFeed) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *PowerFeed) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -712,9 +751,9 @@ func (o *PowerFeed) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeed) GetTenant() Tenant { +func (o *PowerFeed) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -723,7 +762,7 @@ func (o *PowerFeed) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeed) GetTenantOk() (*Tenant, bool) { +func (o *PowerFeed) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -739,8 +778,8 @@ func (o *PowerFeed) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *PowerFeed) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *PowerFeed) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -938,6 +977,9 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["power_panel"] = o.PowerPanel if o.Rack.IsSet() { @@ -971,9 +1013,11 @@ func (o PowerFeed) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Description) { toSerialize["description"] = o.Description @@ -1052,6 +1096,7 @@ func (o *PowerFeed) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "power_panel") delete(additionalProperties, "rack") diff --git a/model_power_feed_phase.go b/model_power_feed_phase.go index 728d75ab9..d431d0eb0 100644 --- a/model_power_feed_phase.go +++ b/model_power_feed_phase.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_phase_label.go b/model_power_feed_phase_label.go index 1e4274876..96c729d76 100644 --- a/model_power_feed_phase_label.go +++ b/model_power_feed_phase_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_request.go b/model_power_feed_request.go index 51865eb47..a25df2046 100644 --- a/model_power_feed_request.go +++ b/model_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &PowerFeedRequest{} // PowerFeedRequest Adds support for custom fields and tags. type PowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type PowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _PowerFeedRequest PowerFeedRequest // 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 NewPowerFeedRequest(powerPanel PowerPanelRequest, name string) *PowerFeedRequest { +func NewPowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *PowerFeedRequest { this := PowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewPowerFeedRequestWithDefaults() *PowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *PowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *PowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *PowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *PowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { } // SetPowerPanel sets field value -func (o *PowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *PowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetRack() RackRequest { +func (o *PowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *PowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *PowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *PowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *PowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *PowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *PowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerFeedRequest) GetTenant() TenantRequest { +func (o *PowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *PowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *PowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_power_feed_status.go b/model_power_feed_status.go index e0b9ca575..fafbe217b 100644 --- a/model_power_feed_status.go +++ b/model_power_feed_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_status_label.go b/model_power_feed_status_label.go index 25d308214..0002a3dca 100644 --- a/model_power_feed_status_label.go +++ b/model_power_feed_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply.go b/model_power_feed_supply.go index f7a5c9251..942b68ef0 100644 --- a/model_power_feed_supply.go +++ b/model_power_feed_supply.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_supply_label.go b/model_power_feed_supply_label.go index 07573618e..dcfd809d9 100644 --- a/model_power_feed_supply_label.go +++ b/model_power_feed_supply_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type.go b/model_power_feed_type.go index 0e839a1a2..cd9c87c64 100644 --- a/model_power_feed_type.go +++ b/model_power_feed_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_feed_type_label.go b/model_power_feed_type_label.go index e98943a9f..52ab8d0cf 100644 --- a/model_power_feed_type_label.go +++ b/model_power_feed_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet.go b/model_power_outlet.go index 2072ed336..19d4177a8 100644 --- a/model_power_outlet.go +++ b/model_power_outlet.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,28 @@ var _ MappedNullable = &PowerOutlet{} // PowerOutlet Adds support for custom fields and tags. type PowerOutlet struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPort `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPort `json:"power_port,omitempty"` FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` ConnectedEndpoints []interface{} `json:"connected_endpoints"` - ConnectedEndpointsType string `json:"connected_endpoints_type"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -57,7 +58,7 @@ type _PowerOutlet PowerOutlet // 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 NewPowerOutlet(id int32, url string, display string, device Device, name string, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, connectedEndpoints []interface{}, connectedEndpointsType string, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { +func NewPowerOutlet(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerOutlet { this := PowerOutlet{} this.Id = id this.Url = url @@ -133,6 +134,38 @@ func (o *PowerOutlet) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerOutlet) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerOutlet) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerOutlet) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerOutlet) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerOutlet) GetDisplay() string { if o == nil { @@ -158,9 +191,9 @@ func (o *PowerOutlet) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerOutlet) GetDevice() Device { +func (o *PowerOutlet) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -169,7 +202,7 @@ func (o *PowerOutlet) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { +func (o *PowerOutlet) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -177,14 +210,14 @@ func (o *PowerOutlet) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerOutlet) SetDevice(v Device) { +func (o *PowerOutlet) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetModule() Module { +func (o *PowerOutlet) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -193,7 +226,7 @@ func (o *PowerOutlet) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetModuleOk() (*Module, bool) { +func (o *PowerOutlet) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -209,8 +242,8 @@ func (o *PowerOutlet) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *PowerOutlet) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerOutlet) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -324,9 +357,9 @@ func (o *PowerOutlet) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutlet) GetPowerPort() PowerPort { +func (o *PowerOutlet) GetPowerPort() BriefPowerPort { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPort + var ret BriefPowerPort return ret } return *o.PowerPort.Get() @@ -335,7 +368,7 @@ func (o *PowerOutlet) GetPowerPort() PowerPort { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetPowerPortOk() (*PowerPort, bool) { +func (o *PowerOutlet) GetPowerPortOk() (*BriefPowerPort, bool) { if o == nil { return nil, false } @@ -351,8 +384,8 @@ func (o *PowerOutlet) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPort and assigns it to the PowerPort field. -func (o *PowerOutlet) SetPowerPort(v PowerPort) { +// SetPowerPort gets a reference to the given NullableBriefPowerPort and assigns it to the PowerPort field. +func (o *PowerOutlet) SetPowerPort(v BriefPowerPort) { o.PowerPort.Set(&v) } @@ -474,10 +507,10 @@ func (o *PowerOutlet) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerOutlet) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerOutlet) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -487,7 +520,7 @@ func (o *PowerOutlet) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutlet) GetCableOk() (*Cable, bool) { +func (o *PowerOutlet) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -495,7 +528,7 @@ func (o *PowerOutlet) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerOutlet) SetCable(v Cable) { +func (o *PowerOutlet) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -548,30 +581,33 @@ func (o *PowerOutlet) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *PowerOutlet) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { if o == nil { var ret []interface{} @@ -583,8 +619,9 @@ func (o *PowerOutlet) GetConnectedEndpoints() []interface{} { // GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsOk() ([]interface{}, bool) { - if o == nil { + if o == nil || IsNil(o.ConnectedEndpoints) { return nil, false } return o.ConnectedEndpoints, true @@ -596,27 +633,29 @@ func (o *PowerOutlet) SetConnectedEndpoints(v []interface{}) { } // GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned func (o *PowerOutlet) GetConnectedEndpointsType() string { - if o == nil { + if o == nil || o.ConnectedEndpointsType.Get() == nil { var ret string return ret } - return o.ConnectedEndpointsType + return *o.ConnectedEndpointsType.Get() } // GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *PowerOutlet) GetConnectedEndpointsTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.ConnectedEndpointsType, true + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() } // SetConnectedEndpointsType sets field value func (o *PowerOutlet) SetConnectedEndpointsType(v string) { - o.ConnectedEndpointsType = v + o.ConnectedEndpointsType.Set(&v) } // GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value @@ -795,6 +834,9 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -822,9 +864,11 @@ func (o PowerOutlet) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType - toSerialize["connected_endpoints"] = o.ConnectedEndpoints - toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags @@ -894,6 +938,7 @@ func (o *PowerOutlet) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_power_outlet_feed_leg.go b/model_power_outlet_feed_leg.go index 95698360a..1449af377 100644 --- a/model_power_outlet_feed_leg.go +++ b/model_power_outlet_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_label.go b/model_power_outlet_feed_leg_label.go index 8a906036c..f0fb396bf 100644 --- a/model_power_outlet_feed_leg_label.go +++ b/model_power_outlet_feed_leg_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_feed_leg_value.go b/model_power_outlet_feed_leg_value.go index bc3abd6e5..d03f1ffad 100644 --- a/model_power_outlet_feed_leg_value.go +++ b/model_power_outlet_feed_leg_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request.go b/model_power_outlet_request.go index 122e3eb78..035fed22d 100644 --- a/model_power_outlet_request.go +++ b/model_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PowerOutletRequest{} // PowerOutletRequest Adds support for custom fields and tags. type PowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _PowerOutletRequest PowerOutletRequest // 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 NewPowerOutletRequest(device DeviceRequest, name string) *PowerOutletRequest { +func NewPowerOutletRequest(device BriefDeviceRequest, name string) *PowerOutletRequest { this := PowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewPowerOutletRequestWithDefaults() *PowerOutletRequest { } // GetDevice returns the Device field value -func (o *PowerOutletRequest) GetDevice() DeviceRequest { +func (o *PowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *PowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *PowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *PowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetModule() ModuleRequest { +func (o *PowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *PowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *PowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *PowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *PowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -224,9 +224,9 @@ func (o *PowerOutletRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *PowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -235,7 +235,7 @@ func (o *PowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *PowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -251,8 +251,8 @@ func (o *PowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *PowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *PowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_request_feed_leg.go b/model_power_outlet_request_feed_leg.go index 7cb04c40c..ddf635085 100644 --- a/model_power_outlet_request_feed_leg.go +++ b/model_power_outlet_request_feed_leg.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_request_type.go b/model_power_outlet_request_type.go index ab5cb9272..631626315 100644 --- a/model_power_outlet_request_type.go +++ b/model_power_outlet_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,7 +15,7 @@ import ( "fmt" ) -// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other +// PowerOutletRequestType * `iec-60320-c5` - C5 * `iec-60320-c7` - C7 * `iec-60320-c13` - C13 * `iec-60320-c15` - C15 * `iec-60320-c19` - C19 * `iec-60320-c21` - C21 * `iec-60309-p-n-e-4h` - P+N+E 4H * `iec-60309-p-n-e-6h` - P+N+E 6H * `iec-60309-p-n-e-9h` - P+N+E 9H * `iec-60309-2p-e-4h` - 2P+E 4H * `iec-60309-2p-e-6h` - 2P+E 6H * `iec-60309-2p-e-9h` - 2P+E 9H * `iec-60309-3p-e-4h` - 3P+E 4H * `iec-60309-3p-e-6h` - 3P+E 6H * `iec-60309-3p-e-9h` - 3P+E 9H * `iec-60309-3p-n-e-4h` - 3P+N+E 4H * `iec-60309-3p-n-e-6h` - 3P+N+E 6H * `iec-60309-3p-n-e-9h` - 3P+N+E 9H * `iec-60906-1` - IEC 60906-1 * `nbr-14136-10a` - 2P+T 10A (NBR 14136) * `nbr-14136-20a` - 2P+T 20A (NBR 14136) * `nema-1-15r` - NEMA 1-15R * `nema-5-15r` - NEMA 5-15R * `nema-5-20r` - NEMA 5-20R * `nema-5-30r` - NEMA 5-30R * `nema-5-50r` - NEMA 5-50R * `nema-6-15r` - NEMA 6-15R * `nema-6-20r` - NEMA 6-20R * `nema-6-30r` - NEMA 6-30R * `nema-6-50r` - NEMA 6-50R * `nema-10-30r` - NEMA 10-30R * `nema-10-50r` - NEMA 10-50R * `nema-14-20r` - NEMA 14-20R * `nema-14-30r` - NEMA 14-30R * `nema-14-50r` - NEMA 14-50R * `nema-14-60r` - NEMA 14-60R * `nema-15-15r` - NEMA 15-15R * `nema-15-20r` - NEMA 15-20R * `nema-15-30r` - NEMA 15-30R * `nema-15-50r` - NEMA 15-50R * `nema-15-60r` - NEMA 15-60R * `nema-l1-15r` - NEMA L1-15R * `nema-l5-15r` - NEMA L5-15R * `nema-l5-20r` - NEMA L5-20R * `nema-l5-30r` - NEMA L5-30R * `nema-l5-50r` - NEMA L5-50R * `nema-l6-15r` - NEMA L6-15R * `nema-l6-20r` - NEMA L6-20R * `nema-l6-30r` - NEMA L6-30R * `nema-l6-50r` - NEMA L6-50R * `nema-l10-30r` - NEMA L10-30R * `nema-l14-20r` - NEMA L14-20R * `nema-l14-30r` - NEMA L14-30R * `nema-l14-50r` - NEMA L14-50R * `nema-l14-60r` - NEMA L14-60R * `nema-l15-20r` - NEMA L15-20R * `nema-l15-30r` - NEMA L15-30R * `nema-l15-50r` - NEMA L15-50R * `nema-l15-60r` - NEMA L15-60R * `nema-l21-20r` - NEMA L21-20R * `nema-l21-30r` - NEMA L21-30R * `nema-l22-20r` - NEMA L22-20R * `nema-l22-30r` - NEMA L22-30R * `CS6360C` - CS6360C * `CS6364C` - CS6364C * `CS8164C` - CS8164C * `CS8264C` - CS8264C * `CS8364C` - CS8364C * `CS8464C` - CS8464C * `ita-e` - ITA Type E (CEE 7/5) * `ita-f` - ITA Type F (CEE 7/3) * `ita-g` - ITA Type G (BS 1363) * `ita-h` - ITA Type H * `ita-i` - ITA Type I * `ita-j` - ITA Type J * `ita-k` - ITA Type K * `ita-l` - ITA Type L (CEI 23-50) * `ita-m` - ITA Type M (BS 546) * `ita-n` - ITA Type N * `ita-o` - ITA Type O * `ita-multistandard` - ITA Multistandard * `usb-a` - USB Type A * `usb-micro-b` - USB Micro B * `usb-c` - USB Type C * `molex-micro-fit-1x2` - Molex Micro-Fit 1x2 * `molex-micro-fit-2x2` - Molex Micro-Fit 2x2 * `molex-micro-fit-2x4` - Molex Micro-Fit 2x4 * `dc-terminal` - DC Terminal * `eaton-c39` - Eaton C39 * `hdot-cx` - HDOT Cx * `saf-d-grid` - Saf-D-Grid * `neutrik-powercon-20a` - Neutrik powerCON (20A) * `neutrik-powercon-32a` - Neutrik powerCON (32A) * `neutrik-powercon-true1` - Neutrik powerCON TRUE1 * `neutrik-powercon-true1-top` - Neutrik powerCON TRUE1 TOP * `ubiquiti-smartpower` - Ubiquiti SmartPower * `hardwired` - Hardwired * `other` - Other type PowerOutletRequestType string // List of PowerOutletRequest_type @@ -81,6 +81,7 @@ const ( POWEROUTLETREQUESTTYPE_NEMA_L15_60R PowerOutletRequestType = "nema-l15-60r" POWEROUTLETREQUESTTYPE_NEMA_L21_20R PowerOutletRequestType = "nema-l21-20r" POWEROUTLETREQUESTTYPE_NEMA_L21_30R PowerOutletRequestType = "nema-l21-30r" + POWEROUTLETREQUESTTYPE_NEMA_L22_20R PowerOutletRequestType = "nema-l22-20r" POWEROUTLETREQUESTTYPE_NEMA_L22_30R PowerOutletRequestType = "nema-l22-30r" POWEROUTLETREQUESTTYPE_CS6360_C PowerOutletRequestType = "CS6360C" POWEROUTLETREQUESTTYPE_CS6364_C PowerOutletRequestType = "CS6364C" @@ -107,6 +108,7 @@ const ( POWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X2 PowerOutletRequestType = "molex-micro-fit-2x2" POWEROUTLETREQUESTTYPE_MOLEX_MICRO_FIT_2X4 PowerOutletRequestType = "molex-micro-fit-2x4" POWEROUTLETREQUESTTYPE_DC_TERMINAL PowerOutletRequestType = "dc-terminal" + POWEROUTLETREQUESTTYPE_EATON_C39 PowerOutletRequestType = "eaton-c39" POWEROUTLETREQUESTTYPE_HDOT_CX PowerOutletRequestType = "hdot-cx" POWEROUTLETREQUESTTYPE_SAF_D_GRID PowerOutletRequestType = "saf-d-grid" POWEROUTLETREQUESTTYPE_NEUTRIK_POWERCON_20A PowerOutletRequestType = "neutrik-powercon-20a" @@ -182,6 +184,7 @@ var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{ "nema-l15-60r", "nema-l21-20r", "nema-l21-30r", + "nema-l22-20r", "nema-l22-30r", "CS6360C", "CS6364C", @@ -208,6 +211,7 @@ var AllowedPowerOutletRequestTypeEnumValues = []PowerOutletRequestType{ "molex-micro-fit-2x2", "molex-micro-fit-2x4", "dc-terminal", + "eaton-c39", "hdot-cx", "saf-d-grid", "neutrik-powercon-20a", diff --git a/model_power_outlet_template.go b/model_power_outlet_template.go index 8d700a116..c8a6d955c 100644 --- a/model_power_outlet_template.go +++ b/model_power_outlet_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,21 @@ var _ MappedNullable = &PowerOutletTemplate{} // PowerOutletTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - DeviceType NullableDeviceType `json:"device_type,omitempty"` - ModuleType NullableModuleType `json:"module_type,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplate `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplate `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -137,9 +137,9 @@ func (o *PowerOutletTemplate) SetDisplay(v string) { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetDeviceType() DeviceType { +func (o *PowerOutletTemplate) GetDeviceType() BriefDeviceType { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceType + var ret BriefDeviceType return ret } return *o.DeviceType.Get() @@ -148,7 +148,7 @@ func (o *PowerOutletTemplate) GetDeviceType() DeviceType { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetDeviceTypeOk() (*DeviceType, bool) { +func (o *PowerOutletTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { if o == nil { return nil, false } @@ -164,8 +164,8 @@ func (o *PowerOutletTemplate) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceType and assigns it to the DeviceType field. -func (o *PowerOutletTemplate) SetDeviceType(v DeviceType) { +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerOutletTemplate) SetDeviceType(v BriefDeviceType) { o.DeviceType.Set(&v) } @@ -180,9 +180,9 @@ func (o *PowerOutletTemplate) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetModuleType() ModuleType { +func (o *PowerOutletTemplate) GetModuleType() BriefModuleType { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleType + var ret BriefModuleType return ret } return *o.ModuleType.Get() @@ -191,7 +191,7 @@ func (o *PowerOutletTemplate) GetModuleType() ModuleType { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetModuleTypeOk() (*ModuleType, bool) { +func (o *PowerOutletTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { if o == nil { return nil, false } @@ -207,8 +207,8 @@ func (o *PowerOutletTemplate) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleType and assigns it to the ModuleType field. -func (o *PowerOutletTemplate) SetModuleType(v ModuleType) { +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerOutletTemplate) SetModuleType(v BriefModuleType) { o.ModuleType.Set(&v) } @@ -322,9 +322,9 @@ func (o *PowerOutletTemplate) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { +func (o *PowerOutletTemplate) GetPowerPort() BriefPowerPortTemplate { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplate + var ret BriefPowerPortTemplate return ret } return *o.PowerPort.Get() @@ -333,7 +333,7 @@ func (o *PowerOutletTemplate) GetPowerPort() PowerPortTemplate { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplate) GetPowerPortOk() (*PowerPortTemplate, bool) { +func (o *PowerOutletTemplate) GetPowerPortOk() (*BriefPowerPortTemplate, bool) { if o == nil { return nil, false } @@ -349,8 +349,8 @@ func (o *PowerOutletTemplate) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplate and assigns it to the PowerPort field. -func (o *PowerOutletTemplate) SetPowerPort(v PowerPortTemplate) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplate and assigns it to the PowerPort field. +func (o *PowerOutletTemplate) SetPowerPort(v BriefPowerPortTemplate) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_template_request.go b/model_power_outlet_template_request.go index 55567b581..93190edff 100644 --- a/model_power_outlet_template_request.go +++ b/model_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &PowerOutletTemplateRequest{} // PowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type NullablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` - FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type NullablePowerOutletRequestType `json:"type,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` + FeedLeg NullablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -54,9 +54,9 @@ func NewPowerOutletTemplateRequestWithDefaults() *PowerOutletTemplateRequest { } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *PowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *PowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *PowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *PowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *PowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *PowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *PowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *PowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *PowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *PowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -239,9 +239,9 @@ func (o *PowerOutletTemplateRequest) UnsetType() { } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *PowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -250,7 +250,7 @@ func (o *PowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *PowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -266,8 +266,8 @@ func (o *PowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *PowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *PowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_power_outlet_type.go b/model_power_outlet_type.go index 2f39149ab..1cd532917 100644 --- a/model_power_outlet_type.go +++ b/model_power_outlet_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_outlet_type_label.go b/model_power_outlet_type_label.go index 4b09dda97..3f2835c56 100644 --- a/model_power_outlet_type_label.go +++ b/model_power_outlet_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -81,6 +81,7 @@ const ( POWEROUTLETTYPELABEL_NEMA_L15_60_R PowerOutletTypeLabel = "NEMA L15-60R" POWEROUTLETTYPELABEL_NEMA_L21_20_R PowerOutletTypeLabel = "NEMA L21-20R" POWEROUTLETTYPELABEL_NEMA_L21_30_R PowerOutletTypeLabel = "NEMA L21-30R" + POWEROUTLETTYPELABEL_NEMA_L22_20_R PowerOutletTypeLabel = "NEMA L22-20R" POWEROUTLETTYPELABEL_NEMA_L22_30_R PowerOutletTypeLabel = "NEMA L22-30R" POWEROUTLETTYPELABEL_CS6360_C PowerOutletTypeLabel = "CS6360C" POWEROUTLETTYPELABEL_CS6364_C PowerOutletTypeLabel = "CS6364C" @@ -107,6 +108,7 @@ const ( POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X2 PowerOutletTypeLabel = "Molex Micro-Fit 2x2" POWEROUTLETTYPELABEL_MOLEX_MICRO_FIT_2X4 PowerOutletTypeLabel = "Molex Micro-Fit 2x4" POWEROUTLETTYPELABEL_DC_TERMINAL PowerOutletTypeLabel = "DC Terminal" + POWEROUTLETTYPELABEL_EATON_C39 PowerOutletTypeLabel = "Eaton C39" POWEROUTLETTYPELABEL_HDOT_CX PowerOutletTypeLabel = "HDOT Cx" POWEROUTLETTYPELABEL_SAF_D_GRID PowerOutletTypeLabel = "Saf-D-Grid" POWEROUTLETTYPELABEL_NEUTRIK_POWER_CON__20_A PowerOutletTypeLabel = "Neutrik powerCON (20A)" @@ -181,6 +183,7 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "NEMA L15-60R", "NEMA L21-20R", "NEMA L21-30R", + "NEMA L22-20R", "NEMA L22-30R", "CS6360C", "CS6364C", @@ -207,6 +210,7 @@ var AllowedPowerOutletTypeLabelEnumValues = []PowerOutletTypeLabel{ "Molex Micro-Fit 2x2", "Molex Micro-Fit 2x4", "DC Terminal", + "Eaton C39", "HDOT Cx", "Saf-D-Grid", "Neutrik powerCON (20A)", diff --git a/model_power_panel.go b/model_power_panel.go index 9548ab75a..77fc9f610 100644 --- a/model_power_panel.go +++ b/model_power_panel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPanel type satisfies the MappedNullable interface at compile time @@ -20,12 +21,20 @@ var _ MappedNullable = &PowerPanel{} // PowerPanel Adds support for custom fields and tags. type PowerPanel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - PowerfeedCount int64 `json:"powerfeed_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,13 +44,16 @@ type _PowerPanel PowerPanel // 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 NewPowerPanel(id int32, url string, display string, name string, powerfeedCount int64) *PowerPanel { +func NewPowerPanel(id int32, url string, display string, site BriefSite, name string, powerfeedCount int64, created NullableTime, lastUpdated NullableTime) *PowerPanel { this := PowerPanel{} this.Id = id this.Url = url this.Display = display + this.Site = site this.Name = name this.PowerfeedCount = powerfeedCount + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -101,6 +113,38 @@ func (o *PowerPanel) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerPanel) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerPanel) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerPanel) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerPanel) GetDisplay() string { if o == nil { @@ -125,6 +169,73 @@ func (o *PowerPanel) SetDisplay(v string) { o.Display = v } +// GetSite returns the Site field value +func (o *PowerPanel) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanel) SetSite(v BriefSite) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanel) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanel) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *PowerPanel) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanel) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanel) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanel) GetName() string { if o == nil { @@ -181,6 +292,102 @@ func (o *PowerPanel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanel) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPanel) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *PowerPanel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanel) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanel) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPanel) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPanel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + // GetPowerfeedCount returns the PowerfeedCount field value func (o *PowerPanel) GetPowerfeedCount() int64 { if o == nil { @@ -205,6 +412,58 @@ func (o *PowerPanel) SetPowerfeedCount(v int64) { o.PowerfeedCount = v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPanel) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPanel) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPanel) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPanel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o PowerPanel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +476,30 @@ func (o PowerPanel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } toSerialize["powerfeed_count"] = o.PowerfeedCount + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -239,8 +516,11 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", + "site", "name", "powerfeed_count", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -272,10 +552,18 @@ func (o *PowerPanel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") delete(additionalProperties, "powerfeed_count") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_panel_request.go b/model_power_panel_request.go index 41ab3ae46..25f16f202 100644 --- a/model_power_panel_request.go +++ b/model_power_panel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &PowerPanelRequest{} // PowerPanelRequest Adds support for custom fields and tags. type PowerPanelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,8 +36,9 @@ type _PowerPanelRequest PowerPanelRequest // 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 NewPowerPanelRequest(name string) *PowerPanelRequest { +func NewPowerPanelRequest(site BriefSiteRequest, name string) *PowerPanelRequest { this := PowerPanelRequest{} + this.Site = site this.Name = name return &this } @@ -45,6 +51,73 @@ func NewPowerPanelRequestWithDefaults() *PowerPanelRequest { return &this } +// GetSite returns the Site field value +func (o *PowerPanelRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *PowerPanelRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPanelRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPanelRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *PowerPanelRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *PowerPanelRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *PowerPanelRequest) UnsetLocation() { + o.Location.Unset() +} + // GetName returns the Name field value func (o *PowerPanelRequest) GetName() string { if o == nil { @@ -101,6 +174,102 @@ func (o *PowerPanelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *PowerPanelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PowerPanelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPanelRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPanelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPanelRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPanelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +280,23 @@ func (o PowerPanelRequest) MarshalJSON() ([]byte, error) { func (o PowerPanelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } toSerialize["name"] = o.Name if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,6 +310,7 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "site", "name", } @@ -158,8 +341,13 @@ func (o *PowerPanelRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "location") delete(additionalProperties, "name") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port.go b/model_power_port.go index bfc69ca0f..e8e893019 100644 --- a/model_power_port.go +++ b/model_power_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPort type satisfies the MappedNullable interface at compile time @@ -20,15 +21,37 @@ var _ MappedNullable = &PowerPort{} // PowerPort Adds support for custom fields and tags. type PowerPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Cable NullableCable `json:"cable"` - Occupied bool `json:"_occupied"` - AdditionalProperties map[string]interface{} + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` + // Return the type of the peer link terminations, or None. + LinkPeersType NullableString `json:"link_peers_type"` + ConnectedEndpoints []interface{} `json:"connected_endpoints"` + ConnectedEndpointsType NullableString `json:"connected_endpoints_type"` + ConnectedEndpointsReachable bool `json:"connected_endpoints_reachable"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + Occupied bool `json:"_occupied"` + AdditionalProperties map[string]interface{} } type _PowerPort PowerPort @@ -37,7 +60,7 @@ type _PowerPort PowerPort // 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 NewPowerPort(id int32, url string, display string, device Device, name string, cable NullableCable, occupied bool) *PowerPort { +func NewPowerPort(id int32, url string, display string, device BriefDevice, name string, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, connectedEndpoints []interface{}, connectedEndpointsType NullableString, connectedEndpointsReachable bool, created NullableTime, lastUpdated NullableTime, occupied bool) *PowerPort { this := PowerPort{} this.Id = id this.Url = url @@ -45,6 +68,14 @@ func NewPowerPort(id int32, url string, display string, device Device, name stri this.Device = device this.Name = name this.Cable = cable + this.CableEnd = cableEnd + this.LinkPeers = linkPeers + this.LinkPeersType = linkPeersType + this.ConnectedEndpoints = connectedEndpoints + this.ConnectedEndpointsType = connectedEndpointsType + this.ConnectedEndpointsReachable = connectedEndpointsReachable + this.Created = created + this.LastUpdated = lastUpdated this.Occupied = occupied return &this } @@ -105,6 +136,38 @@ func (o *PowerPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *PowerPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *PowerPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *PowerPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *PowerPort) GetDisplay() string { if o == nil { @@ -130,9 +193,9 @@ func (o *PowerPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *PowerPort) GetDevice() Device { +func (o *PowerPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -141,7 +204,7 @@ func (o *PowerPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPort) GetDeviceOk() (*Device, bool) { +func (o *PowerPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -149,10 +212,53 @@ func (o *PowerPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *PowerPort) SetDevice(v Device) { +func (o *PowerPort) SetDevice(v BriefDevice) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetModule() BriefModule { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModule + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetModuleOk() (*BriefModule, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPort) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *PowerPort) SetModule(v BriefModule) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPort) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPort) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPort) GetName() string { if o == nil { @@ -177,6 +283,167 @@ func (o *PowerPort) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPort) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPort) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPort) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPort) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +func (o *PowerPort) SetType(v PowerPortType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPort) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPort) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPort) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPort) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPort) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPort) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPort) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPort) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPort) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPort) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPort) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPort) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,11 +476,43 @@ func (o *PowerPort) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPort) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPort) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPort) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *PowerPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *PowerPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -223,7 +522,7 @@ func (o *PowerPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PowerPort) GetCableOk() (*Cable, bool) { +func (o *PowerPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -231,10 +530,276 @@ func (o *PowerPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *PowerPort) SetCable(v Cable) { +func (o *PowerPort) SetCable(v BriefCable) { o.Cable.Set(&v) } +// GetCableEnd returns the CableEnd field value +func (o *PowerPort) GetCableEnd() string { + if o == nil { + var ret string + return ret + } + + return o.CableEnd +} + +// GetCableEndOk returns a tuple with the CableEnd field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCableEndOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.CableEnd, true +} + +// SetCableEnd sets field value +func (o *PowerPort) SetCableEnd(v string) { + o.CableEnd = v +} + +// GetLinkPeers returns the LinkPeers field value +func (o *PowerPort) GetLinkPeers() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.LinkPeers +} + +// GetLinkPeersOk returns a tuple with the LinkPeers field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetLinkPeersOk() ([]interface{}, bool) { + if o == nil { + return nil, false + } + return o.LinkPeers, true +} + +// SetLinkPeers sets field value +func (o *PowerPort) SetLinkPeers(v []interface{}) { + o.LinkPeers = v +} + +// GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PowerPort) GetLinkPeersType() string { + if o == nil || o.LinkPeersType.Get() == nil { + var ret string + return ret + } + + return *o.LinkPeersType.Get() +} + +// GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetLinkPeersTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() +} + +// SetLinkPeersType sets field value +func (o *PowerPort) SetLinkPeersType(v string) { + o.LinkPeersType.Set(&v) +} + +// GetConnectedEndpoints returns the ConnectedEndpoints field value +// If the value is explicit nil, the zero value for []interface{} will be returned +func (o *PowerPort) GetConnectedEndpoints() []interface{} { + if o == nil { + var ret []interface{} + return ret + } + + return o.ConnectedEndpoints +} + +// GetConnectedEndpointsOk returns a tuple with the ConnectedEndpoints field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetConnectedEndpointsOk() ([]interface{}, bool) { + if o == nil || IsNil(o.ConnectedEndpoints) { + return nil, false + } + return o.ConnectedEndpoints, true +} + +// SetConnectedEndpoints sets field value +func (o *PowerPort) SetConnectedEndpoints(v []interface{}) { + o.ConnectedEndpoints = v +} + +// GetConnectedEndpointsType returns the ConnectedEndpointsType field value +// If the value is explicit nil, the zero value for string will be returned +func (o *PowerPort) GetConnectedEndpointsType() string { + if o == nil || o.ConnectedEndpointsType.Get() == nil { + var ret string + return ret + } + + return *o.ConnectedEndpointsType.Get() +} + +// GetConnectedEndpointsTypeOk returns a tuple with the ConnectedEndpointsType field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetConnectedEndpointsTypeOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.ConnectedEndpointsType.Get(), o.ConnectedEndpointsType.IsSet() +} + +// SetConnectedEndpointsType sets field value +func (o *PowerPort) SetConnectedEndpointsType(v string) { + o.ConnectedEndpointsType.Set(&v) +} + +// GetConnectedEndpointsReachable returns the ConnectedEndpointsReachable field value +func (o *PowerPort) GetConnectedEndpointsReachable() bool { + if o == nil { + var ret bool + return ret + } + + return o.ConnectedEndpointsReachable +} + +// GetConnectedEndpointsReachableOk returns a tuple with the ConnectedEndpointsReachable field value +// and a boolean to check if the value has been set. +func (o *PowerPort) GetConnectedEndpointsReachableOk() (*bool, bool) { + if o == nil { + return nil, false + } + return &o.ConnectedEndpointsReachable, true +} + +// SetConnectedEndpointsReachable sets field value +func (o *PowerPort) SetConnectedEndpointsReachable(v bool) { + o.ConnectedEndpointsReachable = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPort) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPort) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *PowerPort) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPort) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPort) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPort) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPort) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPort) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPort) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPort) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPort) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPort) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetOccupied returns the Occupied field value func (o *PowerPort) GetOccupied() bool { if o == nil { @@ -271,13 +836,50 @@ func (o PowerPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } toSerialize["cable"] = o.Cable.Get() + toSerialize["cable_end"] = o.CableEnd + toSerialize["link_peers"] = o.LinkPeers + toSerialize["link_peers_type"] = o.LinkPeersType.Get() + if o.ConnectedEndpoints != nil { + toSerialize["connected_endpoints"] = o.ConnectedEndpoints + } + toSerialize["connected_endpoints_type"] = o.ConnectedEndpointsType.Get() + toSerialize["connected_endpoints_reachable"] = o.ConnectedEndpointsReachable + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["_occupied"] = o.Occupied for key, value := range o.AdditionalProperties { @@ -298,6 +900,14 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { "device", "name", "cable", + "cable_end", + "link_peers", + "link_peers_type", + "connected_endpoints", + "connected_endpoints_type", + "connected_endpoints_reachable", + "created", + "last_updated", "_occupied", } @@ -330,11 +940,28 @@ func (o *PowerPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") delete(additionalProperties, "cable") + delete(additionalProperties, "cable_end") + delete(additionalProperties, "link_peers") + delete(additionalProperties, "link_peers_type") + delete(additionalProperties, "connected_endpoints") + delete(additionalProperties, "connected_endpoints_type") + delete(additionalProperties, "connected_endpoints_reachable") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "_occupied") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request.go b/model_power_port_request.go index b699633c5..8641740ab 100644 --- a/model_power_port_request.go +++ b/model_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,21 @@ var _ MappedNullable = &PowerPortRequest{} // PowerPortRequest Adds support for custom fields and tags. type PowerPortRequest struct { - Device DeviceRequest `json:"device"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortRequestType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + // Treat as if a cable is connected + MarkConnected *bool `json:"mark_connected,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,7 +44,7 @@ type _PowerPortRequest PowerPortRequest // 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 NewPowerPortRequest(device DeviceRequest, name string) *PowerPortRequest { +func NewPowerPortRequest(device BriefDeviceRequest, name string) *PowerPortRequest { this := PowerPortRequest{} this.Device = device this.Name = name @@ -48,9 +60,9 @@ func NewPowerPortRequestWithDefaults() *PowerPortRequest { } // GetDevice returns the Device field value -func (o *PowerPortRequest) GetDevice() DeviceRequest { +func (o *PowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -59,7 +71,7 @@ func (o *PowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *PowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -67,10 +79,53 @@ func (o *PowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *PowerPortRequest) SetDevice(v DeviceRequest) { +func (o *PowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } +// GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetModule() BriefModuleRequest { + if o == nil || IsNil(o.Module.Get()) { + var ret BriefModuleRequest + return ret + } + return *o.Module.Get() +} + +// GetModuleOk returns a tuple with the Module field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { + if o == nil { + return nil, false + } + return o.Module.Get(), o.Module.IsSet() +} + +// HasModule returns a boolean if a field has been set. +func (o *PowerPortRequest) HasModule() bool { + if o != nil && o.Module.IsSet() { + return true + } + + return false +} + +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *PowerPortRequest) SetModule(v BriefModuleRequest) { + o.Module.Set(&v) +} + +// SetModuleNil sets the value for Module to be an explicit nil +func (o *PowerPortRequest) SetModuleNil() { + o.Module.Set(nil) +} + +// UnsetModule ensures that no value is present for Module, not even an explicit nil +func (o *PowerPortRequest) UnsetModule() { + o.Module.Unset() +} + // GetName returns the Name field value func (o *PowerPortRequest) GetName() string { if o == nil { @@ -95,6 +150,167 @@ func (o *PowerPortRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetType() PowerPortRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetTypeOk() (*PowerPortRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. +func (o *PowerPortRequest) SetType(v PowerPortRequestType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortRequest) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortRequest) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortRequest) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortRequest) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +343,102 @@ func (o *PowerPortRequest) SetDescription(v string) { o.Description = &v } +// GetMarkConnected returns the MarkConnected field value if set, zero value otherwise. +func (o *PowerPortRequest) GetMarkConnected() bool { + if o == nil || IsNil(o.MarkConnected) { + var ret bool + return ret + } + return *o.MarkConnected +} + +// GetMarkConnectedOk returns a tuple with the MarkConnected field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetMarkConnectedOk() (*bool, bool) { + if o == nil || IsNil(o.MarkConnected) { + return nil, false + } + return o.MarkConnected, true +} + +// HasMarkConnected returns a boolean if a field has been set. +func (o *PowerPortRequest) HasMarkConnected() bool { + if o != nil && !IsNil(o.MarkConnected) { + return true + } + + return false +} + +// SetMarkConnected gets a reference to the given bool and assigns it to the MarkConnected field. +func (o *PowerPortRequest) SetMarkConnected(v bool) { + o.MarkConnected = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *PowerPortRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *PowerPortRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *PowerPortRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *PowerPortRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *PowerPortRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *PowerPortRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o PowerPortRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -138,10 +450,34 @@ func (o PowerPortRequest) MarshalJSON() ([]byte, error) { func (o PowerPortRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["device"] = o.Device + if o.Module.IsSet() { + toSerialize["module"] = o.Module.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.MarkConnected) { + toSerialize["mark_connected"] = o.MarkConnected + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,8 +523,16 @@ func (o *PowerPortRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "device") + delete(additionalProperties, "module") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "mark_connected") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_request_type.go b/model_power_port_request_type.go index 950e7bb66..dc47f80f3 100644 --- a/model_power_port_request_type.go +++ b/model_power_port_request_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_port_template.go b/model_power_port_template.go index 2178d92e0..0bce962e1 100644 --- a/model_power_port_template.go +++ b/model_power_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the PowerPortTemplate type satisfies the MappedNullable interface at compile time @@ -20,12 +21,23 @@ var _ MappedNullable = &PowerPortTemplate{} // PowerPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,12 +47,14 @@ type _PowerPortTemplate PowerPortTemplate // 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 NewPowerPortTemplate(id int32, url string, display string, name string) *PowerPortTemplate { +func NewPowerPortTemplate(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime) *PowerPortTemplate { this := PowerPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -124,6 +138,92 @@ func (o *PowerPortTemplate) SetDisplay(v string) { o.Display = v } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *PowerPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *PowerPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplate) GetName() string { if o == nil { @@ -148,6 +248,167 @@ func (o *PowerPortTemplate) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplate) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortTemplate) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetType() PowerPortType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetTypeOk() (*PowerPortType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortType and assigns it to the Type field. +func (o *PowerPortTemplate) SetType(v PowerPortType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplate) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplate) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortTemplate) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortTemplate) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplate) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplate) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortTemplate) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortTemplate) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplate) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +441,58 @@ func (o *PowerPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPortTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *PowerPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *PowerPortTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *PowerPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o PowerPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,10 +506,30 @@ func (o PowerPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +547,8 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -246,8 +581,16 @@ func (o *PowerPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_template_request.go b/model_power_port_template_request.go index 4f2826e7f..0bcf9fa42 100644 --- a/model_power_port_template_request.go +++ b/model_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,18 @@ var _ MappedNullable = &PowerPortTemplateRequest{} // PowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type PowerPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type NullablePowerPortRequestType `json:"type,omitempty"` + // Maximum power draw (watts) + MaximumDraw NullableInt32 `json:"maximum_draw,omitempty"` + // Allocated power draw (watts) + AllocatedDraw NullableInt32 `json:"allocated_draw,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -46,6 +55,92 @@ func NewPowerPortTemplateRequestWithDefaults() *PowerPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *PowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *PowerPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *PowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *PowerPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *PowerPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +165,167 @@ func (o *PowerPortTemplateRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *PowerPortTemplateRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *PowerPortTemplateRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *PowerPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetType() PowerPortRequestType { + if o == nil || IsNil(o.Type.Get()) { + var ret PowerPortRequestType + return ret + } + return *o.Type.Get() +} + +// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetTypeOk() (*PowerPortRequestType, bool) { + if o == nil { + return nil, false + } + return o.Type.Get(), o.Type.IsSet() +} + +// HasType returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasType() bool { + if o != nil && o.Type.IsSet() { + return true + } + + return false +} + +// SetType gets a reference to the given NullablePowerPortRequestType and assigns it to the Type field. +func (o *PowerPortTemplateRequest) SetType(v PowerPortRequestType) { + o.Type.Set(&v) +} + +// SetTypeNil sets the value for Type to be an explicit nil +func (o *PowerPortTemplateRequest) SetTypeNil() { + o.Type.Set(nil) +} + +// UnsetType ensures that no value is present for Type, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetType() { + o.Type.Unset() +} + +// GetMaximumDraw returns the MaximumDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetMaximumDraw() int32 { + if o == nil || IsNil(o.MaximumDraw.Get()) { + var ret int32 + return ret + } + return *o.MaximumDraw.Get() +} + +// GetMaximumDrawOk returns a tuple with the MaximumDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetMaximumDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaximumDraw.Get(), o.MaximumDraw.IsSet() +} + +// HasMaximumDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasMaximumDraw() bool { + if o != nil && o.MaximumDraw.IsSet() { + return true + } + + return false +} + +// SetMaximumDraw gets a reference to the given NullableInt32 and assigns it to the MaximumDraw field. +func (o *PowerPortTemplateRequest) SetMaximumDraw(v int32) { + o.MaximumDraw.Set(&v) +} + +// SetMaximumDrawNil sets the value for MaximumDraw to be an explicit nil +func (o *PowerPortTemplateRequest) SetMaximumDrawNil() { + o.MaximumDraw.Set(nil) +} + +// UnsetMaximumDraw ensures that no value is present for MaximumDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetMaximumDraw() { + o.MaximumDraw.Unset() +} + +// GetAllocatedDraw returns the AllocatedDraw field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *PowerPortTemplateRequest) GetAllocatedDraw() int32 { + if o == nil || IsNil(o.AllocatedDraw.Get()) { + var ret int32 + return ret + } + return *o.AllocatedDraw.Get() +} + +// GetAllocatedDrawOk returns a tuple with the AllocatedDraw field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *PowerPortTemplateRequest) GetAllocatedDrawOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.AllocatedDraw.Get(), o.AllocatedDraw.IsSet() +} + +// HasAllocatedDraw returns a boolean if a field has been set. +func (o *PowerPortTemplateRequest) HasAllocatedDraw() bool { + if o != nil && o.AllocatedDraw.IsSet() { + return true + } + + return false +} + +// SetAllocatedDraw gets a reference to the given NullableInt32 and assigns it to the AllocatedDraw field. +func (o *PowerPortTemplateRequest) SetAllocatedDraw(v int32) { + o.AllocatedDraw.Set(&v) +} + +// SetAllocatedDrawNil sets the value for AllocatedDraw to be an explicit nil +func (o *PowerPortTemplateRequest) SetAllocatedDrawNil() { + o.AllocatedDraw.Set(nil) +} + +// UnsetAllocatedDraw ensures that no value is present for AllocatedDraw, not even an explicit nil +func (o *PowerPortTemplateRequest) UnsetAllocatedDraw() { + o.AllocatedDraw.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *PowerPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,7 +368,25 @@ func (o PowerPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o PowerPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + if o.Type.IsSet() { + toSerialize["type"] = o.Type.Get() + } + if o.MaximumDraw.IsSet() { + toSerialize["maximum_draw"] = o.MaximumDraw.Get() + } + if o.AllocatedDraw.IsSet() { + toSerialize["allocated_draw"] = o.AllocatedDraw.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -159,7 +433,13 @@ func (o *PowerPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "maximum_draw") + delete(additionalProperties, "allocated_draw") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_power_port_type.go b/model_power_port_type.go index 109040ab4..123efeeaa 100644 --- a/model_power_port_type.go +++ b/model_power_port_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_power_port_type_label.go b/model_power_port_type_label.go index 6bd53f776..d6c9dd832 100644 --- a/model_power_port_type_label.go +++ b/model_power_port_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix.go b/model_prefix.go index 69448e57b..ad54125af 100644 --- a/model_prefix.go +++ b/model_prefix.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,17 +21,18 @@ var _ MappedNullable = &Prefix{} // Prefix Adds support for custom fields and tags. type Prefix struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Family AggregateFamily `json:"family"` - Prefix string `json:"prefix"` - Site NullableSite `json:"site,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Status *PrefixStatus `json:"status,omitempty"` - Role NullableRole `json:"role,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Family AggregateFamily `json:"family"` + Prefix string `json:"prefix"` + Site NullableBriefSite `json:"site,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Vlan NullableBriefVLAN `json:"vlan,omitempty"` + Status *PrefixStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -123,6 +124,38 @@ func (o *Prefix) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Prefix) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Prefix) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Prefix) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Prefix) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Prefix) GetDisplay() string { if o == nil { @@ -196,9 +229,9 @@ func (o *Prefix) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetSite() Site { +func (o *Prefix) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -207,7 +240,7 @@ func (o *Prefix) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetSiteOk() (*Site, bool) { +func (o *Prefix) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -223,8 +256,8 @@ func (o *Prefix) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *Prefix) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *Prefix) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -239,9 +272,9 @@ func (o *Prefix) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVrf() VRF { +func (o *Prefix) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -250,7 +283,7 @@ func (o *Prefix) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVrfOk() (*VRF, bool) { +func (o *Prefix) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -266,8 +299,8 @@ func (o *Prefix) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *Prefix) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *Prefix) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -282,9 +315,9 @@ func (o *Prefix) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetTenant() Tenant { +func (o *Prefix) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -293,7 +326,7 @@ func (o *Prefix) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetTenantOk() (*Tenant, bool) { +func (o *Prefix) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -309,8 +342,8 @@ func (o *Prefix) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *Prefix) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Prefix) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -325,9 +358,9 @@ func (o *Prefix) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetVlan() VLAN { +func (o *Prefix) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -336,7 +369,7 @@ func (o *Prefix) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetVlanOk() (*VLAN, bool) { +func (o *Prefix) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -352,8 +385,8 @@ func (o *Prefix) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *Prefix) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *Prefix) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } @@ -400,9 +433,9 @@ func (o *Prefix) SetStatus(v PrefixStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Prefix) GetRole() Role { +func (o *Prefix) GetRole() BriefRole { if o == nil || IsNil(o.Role.Get()) { - var ret Role + var ret BriefRole return ret } return *o.Role.Get() @@ -411,7 +444,7 @@ func (o *Prefix) GetRole() Role { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Prefix) GetRoleOk() (*Role, bool) { +func (o *Prefix) GetRoleOk() (*BriefRole, bool) { if o == nil { return nil, false } @@ -427,8 +460,8 @@ func (o *Prefix) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRole and assigns it to the Role field. -func (o *Prefix) SetRole(v Role) { +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *Prefix) SetRole(v BriefRole) { o.Role.Set(&v) } @@ -746,6 +779,9 @@ func (o Prefix) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["family"] = o.Family toSerialize["prefix"] = o.Prefix @@ -842,6 +878,7 @@ func (o *Prefix) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "family") delete(additionalProperties, "prefix") diff --git a/model_prefix_request.go b/model_prefix_request.go index 5634c83a7..2ee826714 100644 --- a/model_prefix_request.go +++ b/model_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &PrefixRequest{} // PrefixRequest Adds support for custom fields and tags. type PrefixRequest struct { - Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Status *PrefixStatusValue `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Prefix string `json:"prefix"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Status *PrefixStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *PrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetSite() SiteRequest { +func (o *PrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *PrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *PrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *PrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *PrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *PrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *PrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVrf() VRFRequest { +func (o *PrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *PrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *PrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *PrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *PrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *PrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *PrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetTenant() TenantRequest { +func (o *PrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *PrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *PrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *PrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *PrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *PrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *PrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetVlan() VLANRequest { +func (o *PrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *PrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *PrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *PrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *PrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *PrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *PrefixRequest) SetStatus(v PrefixStatusValue) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *PrefixRequest) GetRole() RoleRequest { +func (o *PrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *PrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *PrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *PrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *PrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *PrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *PrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_prefix_status.go b/model_prefix_status.go index f2406410f..9e46059b5 100644 --- a/model_prefix_status.go +++ b/model_prefix_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_label.go b/model_prefix_status_label.go index 41bac8bf7..48a3eca67 100644 --- a/model_prefix_status_label.go +++ b/model_prefix_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_prefix_status_value.go b/model_prefix_status_value.go index 7e225f700..1ad20c6ba 100644 --- a/model_prefix_status_value.go +++ b/model_prefix_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_provider.go b/model_provider.go index a368b3c0b..a34b0a438 100644 --- a/model_provider.go +++ b/model_provider.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Provider type satisfies the MappedNullable interface at compile time @@ -20,14 +21,22 @@ var _ MappedNullable = &Provider{} // Provider Adds support for custom fields and tags. type Provider struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - CircuitCount int64 `json:"circuit_count"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []NestedProviderAccount `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` AdditionalProperties map[string]interface{} } @@ -37,13 +46,15 @@ type _Provider Provider // 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 NewProvider(id int32, url string, display string, name string, slug string, circuitCount int64) *Provider { +func NewProvider(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64) *Provider { this := Provider{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.CircuitCount = circuitCount return &this } @@ -104,6 +115,38 @@ func (o *Provider) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Provider) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Provider) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Provider) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Provider) GetDisplay() string { if o == nil { @@ -176,6 +219,38 @@ func (o *Provider) SetSlug(v string) { o.Slug = v } +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *Provider) GetAccounts() []NestedProviderAccount { + if o == nil || IsNil(o.Accounts) { + var ret []NestedProviderAccount + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAccountsOk() ([]NestedProviderAccount, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *Provider) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []NestedProviderAccount and assigns it to the Accounts field. +func (o *Provider) SetAccounts(v []NestedProviderAccount) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Provider) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -208,6 +283,186 @@ func (o *Provider) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Provider) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Provider) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Provider) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Provider) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Provider) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Provider) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Provider) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Provider) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Provider) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Provider) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Provider) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Provider) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Provider) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Provider) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Provider) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Provider) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Provider) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Provider) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetCircuitCount returns the CircuitCount field value func (o *Provider) GetCircuitCount() int64 { if o == nil { @@ -244,12 +499,32 @@ func (o Provider) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["circuit_count"] = o.CircuitCount for key, value := range o.AdditionalProperties { @@ -269,6 +544,8 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", "circuit_count", } @@ -301,10 +578,18 @@ func (o *Provider) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "circuit_count") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_account.go b/model_provider_account.go index e1b668c13..ac328977d 100644 --- a/model_provider_account.go +++ b/model_provider_account.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,8 +23,9 @@ var _ MappedNullable = &ProviderAccount{} type ProviderAccount struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` - Provider Provider `json:"provider"` + Provider BriefProvider `json:"provider"` Name *string `json:"name,omitempty"` Account string `json:"account"` Description *string `json:"description,omitempty"` @@ -42,7 +43,7 @@ type _ProviderAccount ProviderAccount // 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 NewProviderAccount(id int32, url string, display string, provider Provider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { +func NewProviderAccount(id int32, url string, display string, provider BriefProvider, account string, created NullableTime, lastUpdated NullableTime) *ProviderAccount { this := ProviderAccount{} this.Id = id this.Url = url @@ -114,6 +115,38 @@ func (o *ProviderAccount) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ProviderAccount) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccount) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ProviderAccount) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ProviderAccount) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ProviderAccount) GetDisplay() string { if o == nil { @@ -139,9 +172,9 @@ func (o *ProviderAccount) SetDisplay(v string) { } // GetProvider returns the Provider field value -func (o *ProviderAccount) GetProvider() Provider { +func (o *ProviderAccount) GetProvider() BriefProvider { if o == nil { - var ret Provider + var ret BriefProvider return ret } @@ -150,7 +183,7 @@ func (o *ProviderAccount) GetProvider() Provider { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { +func (o *ProviderAccount) GetProviderOk() (*BriefProvider, bool) { if o == nil { return nil, false } @@ -158,7 +191,7 @@ func (o *ProviderAccount) GetProviderOk() (*Provider, bool) { } // SetProvider sets field value -func (o *ProviderAccount) SetProvider(v Provider) { +func (o *ProviderAccount) SetProvider(v BriefProvider) { o.Provider = v } @@ -410,6 +443,9 @@ func (o ProviderAccount) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["provider"] = o.Provider if !IsNil(o.Name) { @@ -481,6 +517,7 @@ func (o *ProviderAccount) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "provider") delete(additionalProperties, "name") diff --git a/model_provider_account_request.go b/model_provider_account_request.go index feca4b6ea..6a1e64677 100644 --- a/model_provider_account_request.go +++ b/model_provider_account_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &ProviderAccountRequest{} // ProviderAccountRequest Adds support for custom fields and tags. type ProviderAccountRequest struct { - Name *string `json:"name,omitempty"` - Account string `json:"account"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `json:"provider"` + Name *string `json:"name,omitempty"` + Account string `json:"account"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,8 +36,9 @@ type _ProviderAccountRequest ProviderAccountRequest // 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 NewProviderAccountRequest(account string) *ProviderAccountRequest { +func NewProviderAccountRequest(provider BriefProviderRequest, account string) *ProviderAccountRequest { this := ProviderAccountRequest{} + this.Provider = provider var name string = "" this.Name = &name this.Account = account @@ -50,6 +55,30 @@ func NewProviderAccountRequestWithDefaults() *ProviderAccountRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderAccountRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderAccountRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + // GetName returns the Name field value if set, zero value otherwise. func (o *ProviderAccountRequest) GetName() string { if o == nil || IsNil(o.Name) { @@ -138,6 +167,102 @@ func (o *ProviderAccountRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderAccountRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderAccountRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderAccountRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderAccountRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderAccountRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderAccountRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -148,6 +273,7 @@ func (o ProviderAccountRequest) MarshalJSON() ([]byte, error) { func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider if !IsNil(o.Name) { toSerialize["name"] = o.Name } @@ -155,6 +281,15 @@ func (o ProviderAccountRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -168,6 +303,7 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "account", } @@ -198,9 +334,13 @@ func (o *ProviderAccountRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") delete(additionalProperties, "account") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network.go b/model_provider_network.go index 213b6174c..2a6f540c5 100644 --- a/model_provider_network.go +++ b/model_provider_network.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the ProviderNetwork type satisfies the MappedNullable interface at compile time @@ -20,11 +21,19 @@ var _ MappedNullable = &ProviderNetwork{} // ProviderNetwork Adds support for custom fields and tags. type ProviderNetwork struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Provider BriefProvider `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -34,12 +43,15 @@ type _ProviderNetwork ProviderNetwork // 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 NewProviderNetwork(id int32, url string, display string, name string) *ProviderNetwork { +func NewProviderNetwork(id int32, url string, display string, provider BriefProvider, name string, created NullableTime, lastUpdated NullableTime) *ProviderNetwork { this := ProviderNetwork{} this.Id = id this.Url = url this.Display = display + this.Provider = provider this.Name = name + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -99,6 +111,38 @@ func (o *ProviderNetwork) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ProviderNetwork) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ProviderNetwork) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ProviderNetwork) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ProviderNetwork) GetDisplay() string { if o == nil { @@ -123,6 +167,30 @@ func (o *ProviderNetwork) SetDisplay(v string) { o.Display = v } +// GetProvider returns the Provider field value +func (o *ProviderNetwork) GetProvider() BriefProvider { + if o == nil { + var ret BriefProvider + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetProviderOk() (*BriefProvider, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetwork) SetProvider(v BriefProvider) { + o.Provider = v +} + // GetName returns the Name field value func (o *ProviderNetwork) GetName() string { if o == nil { @@ -147,6 +215,38 @@ func (o *ProviderNetwork) SetName(v string) { o.Name = v } +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetwork) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetwork) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetwork) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetwork) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +279,154 @@ func (o *ProviderNetwork) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetwork) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetwork) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetwork) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetwork) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderNetwork) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *ProviderNetwork) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetwork) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetwork) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderNetwork) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderNetwork) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ProviderNetwork) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderNetwork) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *ProviderNetwork) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *ProviderNetwork) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *ProviderNetwork) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *ProviderNetwork) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o ProviderNetwork) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +439,29 @@ func (o ProviderNetwork) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -212,7 +478,10 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { "id", "url", "display", + "provider", "name", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -244,9 +513,17 @@ func (o *ProviderNetwork) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_network_request.go b/model_provider_network_request.go index 05b023aca..095307bf3 100644 --- a/model_provider_network_request.go +++ b/model_provider_network_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,13 @@ var _ MappedNullable = &ProviderNetworkRequest{} // ProviderNetworkRequest Adds support for custom fields and tags. type ProviderNetworkRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Provider BriefProviderRequest `json:"provider"` + Name string `json:"name"` + ServiceId *string `json:"service_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,8 +36,9 @@ type _ProviderNetworkRequest ProviderNetworkRequest // 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 NewProviderNetworkRequest(name string) *ProviderNetworkRequest { +func NewProviderNetworkRequest(provider BriefProviderRequest, name string) *ProviderNetworkRequest { this := ProviderNetworkRequest{} + this.Provider = provider this.Name = name return &this } @@ -45,6 +51,30 @@ func NewProviderNetworkRequestWithDefaults() *ProviderNetworkRequest { return &this } +// GetProvider returns the Provider field value +func (o *ProviderNetworkRequest) GetProvider() BriefProviderRequest { + if o == nil { + var ret BriefProviderRequest + return ret + } + + return o.Provider +} + +// GetProviderOk returns a tuple with the Provider field value +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetProviderOk() (*BriefProviderRequest, bool) { + if o == nil { + return nil, false + } + return &o.Provider, true +} + +// SetProvider sets field value +func (o *ProviderNetworkRequest) SetProvider(v BriefProviderRequest) { + o.Provider = v +} + // GetName returns the Name field value func (o *ProviderNetworkRequest) GetName() string { if o == nil { @@ -69,6 +99,38 @@ func (o *ProviderNetworkRequest) SetName(v string) { o.Name = v } +// GetServiceId returns the ServiceId field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetServiceId() string { + if o == nil || IsNil(o.ServiceId) { + var ret string + return ret + } + return *o.ServiceId +} + +// GetServiceIdOk returns a tuple with the ServiceId field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetServiceIdOk() (*string, bool) { + if o == nil || IsNil(o.ServiceId) { + return nil, false + } + return o.ServiceId, true +} + +// HasServiceId returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasServiceId() bool { + if o != nil && !IsNil(o.ServiceId) { + return true + } + + return false +} + +// SetServiceId gets a reference to the given string and assigns it to the ServiceId field. +func (o *ProviderNetworkRequest) SetServiceId(v string) { + o.ServiceId = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderNetworkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +163,102 @@ func (o *ProviderNetworkRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderNetworkRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderNetworkRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderNetworkRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderNetworkRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderNetworkRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderNetworkRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -111,10 +269,23 @@ func (o ProviderNetworkRequest) MarshalJSON() ([]byte, error) { func (o ProviderNetworkRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + toSerialize["provider"] = o.Provider toSerialize["name"] = o.Name + if !IsNil(o.ServiceId) { + toSerialize["service_id"] = o.ServiceId + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -128,6 +299,7 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { // by unmarshalling the object into a generic map with string keys and checking // that every required field exists as a key in the generic map. requiredProperties := []string{ + "provider", "name", } @@ -158,8 +330,13 @@ func (o *ProviderNetworkRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "provider") delete(additionalProperties, "name") + delete(additionalProperties, "service_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_provider_request.go b/model_provider_request.go index 1edfe34ee..0c25389fa 100644 --- a/model_provider_request.go +++ b/model_provider_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,14 @@ var _ MappedNullable = &ProviderRequest{} // ProviderRequest Adds support for custom fields and tags. type ProviderRequest struct { // Full name of the provider - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Accounts []int32 `json:"accounts,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -96,6 +101,38 @@ func (o *ProviderRequest) SetSlug(v string) { o.Slug = v } +// GetAccounts returns the Accounts field value if set, zero value otherwise. +func (o *ProviderRequest) GetAccounts() []int32 { + if o == nil || IsNil(o.Accounts) { + var ret []int32 + return ret + } + return o.Accounts +} + +// GetAccountsOk returns a tuple with the Accounts field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAccountsOk() ([]int32, bool) { + if o == nil || IsNil(o.Accounts) { + return nil, false + } + return o.Accounts, true +} + +// HasAccounts returns a boolean if a field has been set. +func (o *ProviderRequest) HasAccounts() bool { + if o != nil && !IsNil(o.Accounts) { + return true + } + + return false +} + +// SetAccounts gets a reference to the given []int32 and assigns it to the Accounts field. +func (o *ProviderRequest) SetAccounts(v []int32) { + o.Accounts = v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *ProviderRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +165,134 @@ func (o *ProviderRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *ProviderRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *ProviderRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *ProviderRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *ProviderRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *ProviderRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *ProviderRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *ProviderRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *ProviderRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *ProviderRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *ProviderRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ProviderRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *ProviderRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *ProviderRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o ProviderRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +305,24 @@ func (o ProviderRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Accounts) { + toSerialize["accounts"] = o.Accounts + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,7 +369,12 @@ func (o *ProviderRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "accounts") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack.go b/model_rack.go index 95c82770b..e847f12eb 100644 --- a/model_rack.go +++ b/model_rack.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Rack type satisfies the MappedNullable interface at compile time @@ -20,12 +21,49 @@ var _ MappedNullable = &Rack{} // Rack Adds support for custom fields and tags. type Rack struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - DeviceCount *int64 `json:"device_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSite `json:"site"` + Location NullableBriefLocation `json:"location,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *RackStatus `json:"status,omitempty"` + Role NullableBriefRackRole `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackType `json:"rack_type,omitempty"` + FormFactor NullableRackFormFactor `json:"form_factor,omitempty"` + Width *RackWidth `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeWeightUnit `json:"weight_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackOuterUnit `json:"outer_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *RackAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + DeviceCount *int64 `json:"device_count,omitempty"` + PowerfeedCount int64 `json:"powerfeed_count"` AdditionalProperties map[string]interface{} } @@ -35,12 +73,16 @@ type _Rack Rack // 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 NewRack(id int32, url string, display string, name string) *Rack { +func NewRack(id int32, url string, display string, name string, site BriefSite, created NullableTime, lastUpdated NullableTime, powerfeedCount int64) *Rack { this := Rack{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Site = site + this.Created = created + this.LastUpdated = lastUpdated + this.PowerfeedCount = powerfeedCount return &this } @@ -100,52 +142,934 @@ func (o *Rack) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Rack) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Rack) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Rack) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Rack) GetDisplay() string { if o == nil { - var ret string + var ret string + return ret + } + + return o.Display +} + +// GetDisplayOk returns a tuple with the Display field value +// and a boolean to check if the value has been set. +func (o *Rack) GetDisplayOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Display, true +} + +// SetDisplay sets field value +func (o *Rack) SetDisplay(v string) { + o.Display = v +} + +// GetName returns the Name field value +func (o *Rack) GetName() string { + if o == nil { + var ret string + return ret + } + + return o.Name +} + +// GetNameOk returns a tuple with the Name field value +// and a boolean to check if the value has been set. +func (o *Rack) GetNameOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Name, true +} + +// SetName sets field value +func (o *Rack) SetName(v string) { + o.Name = v +} + +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *Rack) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +func (o *Rack) SetFacilityId(v string) { + o.FacilityId.Set(&v) +} + +// SetFacilityIdNil sets the value for FacilityId to be an explicit nil +func (o *Rack) SetFacilityIdNil() { + o.FacilityId.Set(nil) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *Rack) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *Rack) GetSite() BriefSite { + if o == nil { + var ret BriefSite + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *Rack) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *Rack) SetSite(v BriefSite) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetLocation() BriefLocation { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocation + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetLocationOk() (*BriefLocation, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *Rack) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocation and assigns it to the Location field. +func (o *Rack) SetLocation(v BriefLocation) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *Rack) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *Rack) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Rack) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Rack) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Rack) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Rack) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Rack) GetStatus() RackStatus { + if o == nil || IsNil(o.Status) { + var ret RackStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStatusOk() (*RackStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Rack) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given RackStatus and assigns it to the Status field. +func (o *Rack) SetStatus(v RackStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRole() BriefRackRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetRoleOk() (*BriefRackRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *Rack) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRole and assigns it to the Role field. +func (o *Rack) SetRole(v BriefRackRole) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *Rack) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *Rack) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *Rack) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *Rack) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *Rack) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *Rack) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *Rack) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *Rack) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *Rack) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetRackType() BriefRackType { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackType + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetRackTypeOk() (*BriefRackType, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *Rack) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackType and assigns it to the RackType field. +func (o *Rack) SetRackType(v BriefRackType) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *Rack) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *Rack) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetFormFactor() RackFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetFormFactorOk() (*RackFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *Rack) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackFormFactor and assigns it to the FormFactor field. +func (o *Rack) SetFormFactor(v RackFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *Rack) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *Rack) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *Rack) GetWidth() RackWidth { + if o == nil || IsNil(o.Width) { + var ret RackWidth + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetWidthOk() (*RackWidth, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *Rack) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidth and assigns it to the Width field. +func (o *Rack) SetWidth(v RackWidth) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *Rack) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *Rack) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *Rack) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *Rack) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *Rack) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *Rack) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *Rack) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *Rack) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *Rack) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *Rack) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *Rack) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *Rack) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *Rack) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *Rack) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetWeightUnit() DeviceTypeWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetWeightUnitOk() (*DeviceTypeWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *Rack) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeWeightUnit and assigns it to the WeightUnit field. +func (o *Rack) SetWeightUnit(v DeviceTypeWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *Rack) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *Rack) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *Rack) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool return ret } + return *o.DescUnits +} - return o.Display +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true } -// GetDisplayOk returns a tuple with the Display field value +// HasDescUnits returns a boolean if a field has been set. +func (o *Rack) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *Rack) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetDisplayOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterWidthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Display, true + return o.OuterWidth.Get(), o.OuterWidth.IsSet() } -// SetDisplay sets field value -func (o *Rack) SetDisplay(v string) { - o.Display = v +// HasOuterWidth returns a boolean if a field has been set. +func (o *Rack) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false } -// GetName returns the Name field value -func (o *Rack) GetName() string { +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *Rack) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *Rack) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *Rack) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterDepthOk() (*int32, bool) { if o == nil { - var ret string + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *Rack) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *Rack) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *Rack) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *Rack) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetOuterUnit() RackOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackOuterUnit return ret } + return *o.OuterUnit.Get() +} - return o.Name +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetOuterUnitOk() (*RackOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() } -// GetNameOk returns a tuple with the Name field value +// HasOuterUnit returns a boolean if a field has been set. +func (o *Rack) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackOuterUnit and assigns it to the OuterUnit field. +func (o *Rack) SetOuterUnit(v RackOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *Rack) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *Rack) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Rack) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *Rack) GetNameOk() (*string, bool) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetMountingDepthOk() (*int32, bool) { if o == nil { return nil, false } - return &o.Name, true + return o.MountingDepth.Get(), o.MountingDepth.IsSet() } -// SetName sets field value -func (o *Rack) SetName(v string) { - o.Name = v +// HasMountingDepth returns a boolean if a field has been set. +func (o *Rack) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *Rack) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *Rack) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *Rack) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *Rack) GetAirflow() RackAirflow { + if o == nil || IsNil(o.Airflow) { + var ret RackAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetAirflowOk() (*RackAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *Rack) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given RackAirflow and assigns it to the Airflow field. +func (o *Rack) SetAirflow(v RackAirflow) { + o.Airflow = &v } // GetDescription returns the Description field value if set, zero value otherwise. @@ -180,6 +1104,154 @@ func (o *Rack) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Rack) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Rack) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Rack) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Rack) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Rack) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Rack) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Rack) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Rack) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Rack) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Rack) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Rack) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Rack) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Rack) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Rack) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Rack) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. func (o *Rack) GetDeviceCount() int64 { if o == nil || IsNil(o.DeviceCount) { @@ -212,6 +1284,30 @@ func (o *Rack) SetDeviceCount(v int64) { o.DeviceCount = &v } +// GetPowerfeedCount returns the PowerfeedCount field value +func (o *Rack) GetPowerfeedCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.PowerfeedCount +} + +// GetPowerfeedCountOk returns a tuple with the PowerfeedCount field value +// and a boolean to check if the value has been set. +func (o *Rack) GetPowerfeedCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.PowerfeedCount, true +} + +// SetPowerfeedCount sets field value +func (o *Rack) SetPowerfeedCount(v int64) { + o.PowerfeedCount = v +} + func (o Rack) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -224,14 +1320,93 @@ func (o Rack) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.DeviceCount) { toSerialize["device_count"] = o.DeviceCount } + toSerialize["powerfeed_count"] = o.PowerfeedCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -249,6 +1424,10 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "site", + "created", + "last_updated", + "powerfeed_count", } allProperties := make(map[string]interface{}) @@ -280,10 +1459,39 @@ func (o *Rack) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "device_count") + delete(additionalProperties, "powerfeed_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_airflow.go b/model_rack_airflow.go index 988301e5f..0242e3c97 100644 --- a/model_rack_airflow.go +++ b/model_rack_airflow.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_airflow_label.go b/model_rack_airflow_label.go index 324cf1fd2..544520f1a 100644 --- a/model_rack_airflow_label.go +++ b/model_rack_airflow_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_face.go b/model_rack_face.go index a0c96cd51..b4d5b66df 100644 --- a/model_rack_face.go +++ b/model_rack_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_face_1.go b/model_rack_face_1.go index bbb650941..e3ab5dc11 100644 --- a/model_rack_face_1.go +++ b/model_rack_face_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_form_factor.go b/model_rack_form_factor.go index 55e13a90d..ebbd44515 100644 --- a/model_rack_form_factor.go +++ b/model_rack_form_factor.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_form_factor_label.go b/model_rack_form_factor_label.go index cb88961b7..ff8b8bbf5 100644 --- a/model_rack_form_factor_label.go +++ b/model_rack_form_factor_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_outer_unit.go b/model_rack_outer_unit.go index 76b0db79c..87cacf9ec 100644 --- a/model_rack_outer_unit.go +++ b/model_rack_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_outer_unit_label.go b/model_rack_outer_unit_label.go index bbb050e3e..a95fe69e5 100644 --- a/model_rack_outer_unit_label.go +++ b/model_rack_outer_unit_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_request.go b/model_rack_request.go index 820be5e16..d2df4382c 100644 --- a/model_rack_request.go +++ b/model_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,41 @@ var _ MappedNullable = &RackRequest{} // RackRequest Adds support for custom fields and tags. type RackRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + FacilityId NullableString `json:"facility_id,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` + Serial *string `json:"serial,omitempty"` + // A unique tag used to identify this rack + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor NullableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *RackWidthValue `json:"width,omitempty"` + // Height in rack units + UHeight *int32 `json:"u_height,omitempty"` + // Starting unit for rack + StartingUnit *int32 `json:"starting_unit,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + // Maximum load capacity for the rack + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit NullableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + // Units are numbered top-to-bottom + DescUnits *bool `json:"desc_units,omitempty"` + // Outer dimension of rack (width) + OuterWidth NullableInt32 `json:"outer_width,omitempty"` + // Outer dimension of rack (depth) + OuterDepth NullableInt32 `json:"outer_depth,omitempty"` + OuterUnit NullableRackRequestOuterUnit `json:"outer_unit,omitempty"` + // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +64,10 @@ type _RackRequest RackRequest // 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 NewRackRequest(name string) *RackRequest { +func NewRackRequest(name string, site BriefSiteRequest) *RackRequest { this := RackRequest{} this.Name = name + this.Site = site return &this } @@ -69,6 +103,856 @@ func (o *RackRequest) SetName(v string) { o.Name = v } +// GetFacilityId returns the FacilityId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFacilityId() string { + if o == nil || IsNil(o.FacilityId.Get()) { + var ret string + return ret + } + return *o.FacilityId.Get() +} + +// GetFacilityIdOk returns a tuple with the FacilityId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetFacilityIdOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.FacilityId.Get(), o.FacilityId.IsSet() +} + +// HasFacilityId returns a boolean if a field has been set. +func (o *RackRequest) HasFacilityId() bool { + if o != nil && o.FacilityId.IsSet() { + return true + } + + return false +} + +// SetFacilityId gets a reference to the given NullableString and assigns it to the FacilityId field. +func (o *RackRequest) SetFacilityId(v string) { + o.FacilityId.Set(&v) +} + +// SetFacilityIdNil sets the value for FacilityId to be an explicit nil +func (o *RackRequest) SetFacilityIdNil() { + o.FacilityId.Set(nil) +} + +// UnsetFacilityId ensures that no value is present for FacilityId, not even an explicit nil +func (o *RackRequest) UnsetFacilityId() { + o.FacilityId.Unset() +} + +// GetSite returns the Site field value +func (o *RackRequest) GetSite() BriefSiteRequest { + if o == nil { + var ret BriefSiteRequest + return ret + } + + return o.Site +} + +// GetSiteOk returns a tuple with the Site field value +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return &o.Site, true +} + +// SetSite sets field value +func (o *RackRequest) SetSite(v BriefSiteRequest) { + o.Site = v +} + +// GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetLocation() BriefLocationRequest { + if o == nil || IsNil(o.Location.Get()) { + var ret BriefLocationRequest + return ret + } + return *o.Location.Get() +} + +// GetLocationOk returns a tuple with the Location field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetLocationOk() (*BriefLocationRequest, bool) { + if o == nil { + return nil, false + } + return o.Location.Get(), o.Location.IsSet() +} + +// HasLocation returns a boolean if a field has been set. +func (o *RackRequest) HasLocation() bool { + if o != nil && o.Location.IsSet() { + return true + } + + return false +} + +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *RackRequest) SetLocation(v BriefLocationRequest) { + o.Location.Set(&v) +} + +// SetLocationNil sets the value for Location to be an explicit nil +func (o *RackRequest) SetLocationNil() { + o.Location.Set(nil) +} + +// UnsetLocation ensures that no value is present for Location, not even an explicit nil +func (o *RackRequest) UnsetLocation() { + o.Location.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *RackRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *RackRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *RackRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *RackRequest) GetStatus() PatchedWritableRackRequestStatus { + if o == nil || IsNil(o.Status) { + var ret PatchedWritableRackRequestStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStatusOk() (*PatchedWritableRackRequestStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *RackRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given PatchedWritableRackRequestStatus and assigns it to the Status field. +func (o *RackRequest) SetStatus(v PatchedWritableRackRequestStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRole() BriefRackRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRackRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *RackRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *RackRequest) SetRole(v BriefRackRoleRequest) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *RackRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *RackRequest) UnsetRole() { + o.Role.Unset() +} + +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *RackRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *RackRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *RackRequest) SetSerial(v string) { + o.Serial = &v +} + +// GetAssetTag returns the AssetTag field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetAssetTag() string { + if o == nil || IsNil(o.AssetTag.Get()) { + var ret string + return ret + } + return *o.AssetTag.Get() +} + +// GetAssetTagOk returns a tuple with the AssetTag field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetAssetTagOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.AssetTag.Get(), o.AssetTag.IsSet() +} + +// HasAssetTag returns a boolean if a field has been set. +func (o *RackRequest) HasAssetTag() bool { + if o != nil && o.AssetTag.IsSet() { + return true + } + + return false +} + +// SetAssetTag gets a reference to the given NullableString and assigns it to the AssetTag field. +func (o *RackRequest) SetAssetTag(v string) { + o.AssetTag.Set(&v) +} + +// SetAssetTagNil sets the value for AssetTag to be an explicit nil +func (o *RackRequest) SetAssetTagNil() { + o.AssetTag.Set(nil) +} + +// UnsetAssetTag ensures that no value is present for AssetTag, not even an explicit nil +func (o *RackRequest) UnsetAssetTag() { + o.AssetTag.Unset() +} + +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest + return ret + } + return *o.RackType.Get() +} + +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *RackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *RackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *RackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *RackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetFormFactor() RackRequestFormFactor { + if o == nil || IsNil(o.FormFactor.Get()) { + var ret RackRequestFormFactor + return ret + } + return *o.FormFactor.Get() +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetFormFactorOk() (*RackRequestFormFactor, bool) { + if o == nil { + return nil, false + } + return o.FormFactor.Get(), o.FormFactor.IsSet() +} + +// HasFormFactor returns a boolean if a field has been set. +func (o *RackRequest) HasFormFactor() bool { + if o != nil && o.FormFactor.IsSet() { + return true + } + + return false +} + +// SetFormFactor gets a reference to the given NullableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *RackRequest) SetFormFactor(v RackRequestFormFactor) { + o.FormFactor.Set(&v) +} + +// SetFormFactorNil sets the value for FormFactor to be an explicit nil +func (o *RackRequest) SetFormFactorNil() { + o.FormFactor.Set(nil) +} + +// UnsetFormFactor ensures that no value is present for FormFactor, not even an explicit nil +func (o *RackRequest) UnsetFormFactor() { + o.FormFactor.Unset() +} + +// GetWidth returns the Width field value if set, zero value otherwise. +func (o *RackRequest) GetWidth() RackWidthValue { + if o == nil || IsNil(o.Width) { + var ret RackWidthValue + return ret + } + return *o.Width +} + +// GetWidthOk returns a tuple with the Width field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetWidthOk() (*RackWidthValue, bool) { + if o == nil || IsNil(o.Width) { + return nil, false + } + return o.Width, true +} + +// HasWidth returns a boolean if a field has been set. +func (o *RackRequest) HasWidth() bool { + if o != nil && !IsNil(o.Width) { + return true + } + + return false +} + +// SetWidth gets a reference to the given RackWidthValue and assigns it to the Width field. +func (o *RackRequest) SetWidth(v RackWidthValue) { + o.Width = &v +} + +// GetUHeight returns the UHeight field value if set, zero value otherwise. +func (o *RackRequest) GetUHeight() int32 { + if o == nil || IsNil(o.UHeight) { + var ret int32 + return ret + } + return *o.UHeight +} + +// GetUHeightOk returns a tuple with the UHeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetUHeightOk() (*int32, bool) { + if o == nil || IsNil(o.UHeight) { + return nil, false + } + return o.UHeight, true +} + +// HasUHeight returns a boolean if a field has been set. +func (o *RackRequest) HasUHeight() bool { + if o != nil && !IsNil(o.UHeight) { + return true + } + + return false +} + +// SetUHeight gets a reference to the given int32 and assigns it to the UHeight field. +func (o *RackRequest) SetUHeight(v int32) { + o.UHeight = &v +} + +// GetStartingUnit returns the StartingUnit field value if set, zero value otherwise. +func (o *RackRequest) GetStartingUnit() int32 { + if o == nil || IsNil(o.StartingUnit) { + var ret int32 + return ret + } + return *o.StartingUnit +} + +// GetStartingUnitOk returns a tuple with the StartingUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetStartingUnitOk() (*int32, bool) { + if o == nil || IsNil(o.StartingUnit) { + return nil, false + } + return o.StartingUnit, true +} + +// HasStartingUnit returns a boolean if a field has been set. +func (o *RackRequest) HasStartingUnit() bool { + if o != nil && !IsNil(o.StartingUnit) { + return true + } + + return false +} + +// SetStartingUnit gets a reference to the given int32 and assigns it to the StartingUnit field. +func (o *RackRequest) SetStartingUnit(v int32) { + o.StartingUnit = &v +} + +// GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeight() float64 { + if o == nil || IsNil(o.Weight.Get()) { + var ret float64 + return ret + } + return *o.Weight.Get() +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetWeightOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Weight.Get(), o.Weight.IsSet() +} + +// HasWeight returns a boolean if a field has been set. +func (o *RackRequest) HasWeight() bool { + if o != nil && o.Weight.IsSet() { + return true + } + + return false +} + +// SetWeight gets a reference to the given NullableFloat64 and assigns it to the Weight field. +func (o *RackRequest) SetWeight(v float64) { + o.Weight.Set(&v) +} + +// SetWeightNil sets the value for Weight to be an explicit nil +func (o *RackRequest) SetWeightNil() { + o.Weight.Set(nil) +} + +// UnsetWeight ensures that no value is present for Weight, not even an explicit nil +func (o *RackRequest) UnsetWeight() { + o.Weight.Unset() +} + +// GetMaxWeight returns the MaxWeight field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMaxWeight() int32 { + if o == nil || IsNil(o.MaxWeight.Get()) { + var ret int32 + return ret + } + return *o.MaxWeight.Get() +} + +// GetMaxWeightOk returns a tuple with the MaxWeight field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetMaxWeightOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MaxWeight.Get(), o.MaxWeight.IsSet() +} + +// HasMaxWeight returns a boolean if a field has been set. +func (o *RackRequest) HasMaxWeight() bool { + if o != nil && o.MaxWeight.IsSet() { + return true + } + + return false +} + +// SetMaxWeight gets a reference to the given NullableInt32 and assigns it to the MaxWeight field. +func (o *RackRequest) SetMaxWeight(v int32) { + o.MaxWeight.Set(&v) +} + +// SetMaxWeightNil sets the value for MaxWeight to be an explicit nil +func (o *RackRequest) SetMaxWeightNil() { + o.MaxWeight.Set(nil) +} + +// UnsetMaxWeight ensures that no value is present for MaxWeight, not even an explicit nil +func (o *RackRequest) UnsetMaxWeight() { + o.MaxWeight.Unset() +} + +// GetWeightUnit returns the WeightUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetWeightUnit() DeviceTypeRequestWeightUnit { + if o == nil || IsNil(o.WeightUnit.Get()) { + var ret DeviceTypeRequestWeightUnit + return ret + } + return *o.WeightUnit.Get() +} + +// GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetWeightUnitOk() (*DeviceTypeRequestWeightUnit, bool) { + if o == nil { + return nil, false + } + return o.WeightUnit.Get(), o.WeightUnit.IsSet() +} + +// HasWeightUnit returns a boolean if a field has been set. +func (o *RackRequest) HasWeightUnit() bool { + if o != nil && o.WeightUnit.IsSet() { + return true + } + + return false +} + +// SetWeightUnit gets a reference to the given NullableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. +func (o *RackRequest) SetWeightUnit(v DeviceTypeRequestWeightUnit) { + o.WeightUnit.Set(&v) +} + +// SetWeightUnitNil sets the value for WeightUnit to be an explicit nil +func (o *RackRequest) SetWeightUnitNil() { + o.WeightUnit.Set(nil) +} + +// UnsetWeightUnit ensures that no value is present for WeightUnit, not even an explicit nil +func (o *RackRequest) UnsetWeightUnit() { + o.WeightUnit.Unset() +} + +// GetDescUnits returns the DescUnits field value if set, zero value otherwise. +func (o *RackRequest) GetDescUnits() bool { + if o == nil || IsNil(o.DescUnits) { + var ret bool + return ret + } + return *o.DescUnits +} + +// GetDescUnitsOk returns a tuple with the DescUnits field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetDescUnitsOk() (*bool, bool) { + if o == nil || IsNil(o.DescUnits) { + return nil, false + } + return o.DescUnits, true +} + +// HasDescUnits returns a boolean if a field has been set. +func (o *RackRequest) HasDescUnits() bool { + if o != nil && !IsNil(o.DescUnits) { + return true + } + + return false +} + +// SetDescUnits gets a reference to the given bool and assigns it to the DescUnits field. +func (o *RackRequest) SetDescUnits(v bool) { + o.DescUnits = &v +} + +// GetOuterWidth returns the OuterWidth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterWidth() int32 { + if o == nil || IsNil(o.OuterWidth.Get()) { + var ret int32 + return ret + } + return *o.OuterWidth.Get() +} + +// GetOuterWidthOk returns a tuple with the OuterWidth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterWidthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterWidth.Get(), o.OuterWidth.IsSet() +} + +// HasOuterWidth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterWidth() bool { + if o != nil && o.OuterWidth.IsSet() { + return true + } + + return false +} + +// SetOuterWidth gets a reference to the given NullableInt32 and assigns it to the OuterWidth field. +func (o *RackRequest) SetOuterWidth(v int32) { + o.OuterWidth.Set(&v) +} + +// SetOuterWidthNil sets the value for OuterWidth to be an explicit nil +func (o *RackRequest) SetOuterWidthNil() { + o.OuterWidth.Set(nil) +} + +// UnsetOuterWidth ensures that no value is present for OuterWidth, not even an explicit nil +func (o *RackRequest) UnsetOuterWidth() { + o.OuterWidth.Unset() +} + +// GetOuterDepth returns the OuterDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterDepth() int32 { + if o == nil || IsNil(o.OuterDepth.Get()) { + var ret int32 + return ret + } + return *o.OuterDepth.Get() +} + +// GetOuterDepthOk returns a tuple with the OuterDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.OuterDepth.Get(), o.OuterDepth.IsSet() +} + +// HasOuterDepth returns a boolean if a field has been set. +func (o *RackRequest) HasOuterDepth() bool { + if o != nil && o.OuterDepth.IsSet() { + return true + } + + return false +} + +// SetOuterDepth gets a reference to the given NullableInt32 and assigns it to the OuterDepth field. +func (o *RackRequest) SetOuterDepth(v int32) { + o.OuterDepth.Set(&v) +} + +// SetOuterDepthNil sets the value for OuterDepth to be an explicit nil +func (o *RackRequest) SetOuterDepthNil() { + o.OuterDepth.Set(nil) +} + +// UnsetOuterDepth ensures that no value is present for OuterDepth, not even an explicit nil +func (o *RackRequest) UnsetOuterDepth() { + o.OuterDepth.Unset() +} + +// GetOuterUnit returns the OuterUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetOuterUnit() RackRequestOuterUnit { + if o == nil || IsNil(o.OuterUnit.Get()) { + var ret RackRequestOuterUnit + return ret + } + return *o.OuterUnit.Get() +} + +// GetOuterUnitOk returns a tuple with the OuterUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetOuterUnitOk() (*RackRequestOuterUnit, bool) { + if o == nil { + return nil, false + } + return o.OuterUnit.Get(), o.OuterUnit.IsSet() +} + +// HasOuterUnit returns a boolean if a field has been set. +func (o *RackRequest) HasOuterUnit() bool { + if o != nil && o.OuterUnit.IsSet() { + return true + } + + return false +} + +// SetOuterUnit gets a reference to the given NullableRackRequestOuterUnit and assigns it to the OuterUnit field. +func (o *RackRequest) SetOuterUnit(v RackRequestOuterUnit) { + o.OuterUnit.Set(&v) +} + +// SetOuterUnitNil sets the value for OuterUnit to be an explicit nil +func (o *RackRequest) SetOuterUnitNil() { + o.OuterUnit.Set(nil) +} + +// UnsetOuterUnit ensures that no value is present for OuterUnit, not even an explicit nil +func (o *RackRequest) UnsetOuterUnit() { + o.OuterUnit.Unset() +} + +// GetMountingDepth returns the MountingDepth field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RackRequest) GetMountingDepth() int32 { + if o == nil || IsNil(o.MountingDepth.Get()) { + var ret int32 + return ret + } + return *o.MountingDepth.Get() +} + +// GetMountingDepthOk returns a tuple with the MountingDepth field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RackRequest) GetMountingDepthOk() (*int32, bool) { + if o == nil { + return nil, false + } + return o.MountingDepth.Get(), o.MountingDepth.IsSet() +} + +// HasMountingDepth returns a boolean if a field has been set. +func (o *RackRequest) HasMountingDepth() bool { + if o != nil && o.MountingDepth.IsSet() { + return true + } + + return false +} + +// SetMountingDepth gets a reference to the given NullableInt32 and assigns it to the MountingDepth field. +func (o *RackRequest) SetMountingDepth(v int32) { + o.MountingDepth.Set(&v) +} + +// SetMountingDepthNil sets the value for MountingDepth to be an explicit nil +func (o *RackRequest) SetMountingDepthNil() { + o.MountingDepth.Set(nil) +} + +// UnsetMountingDepth ensures that no value is present for MountingDepth, not even an explicit nil +func (o *RackRequest) UnsetMountingDepth() { + o.MountingDepth.Unset() +} + +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *RackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *RackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *RackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +985,102 @@ func (o *RackRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *RackRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *RackRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *RackRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RackRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RackRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RackRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RackRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RackRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RackRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RackRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +1092,82 @@ func (o RackRequest) MarshalJSON() ([]byte, error) { func (o RackRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if o.FacilityId.IsSet() { + toSerialize["facility_id"] = o.FacilityId.Get() + } + toSerialize["site"] = o.Site + if o.Location.IsSet() { + toSerialize["location"] = o.Location.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } + if o.AssetTag.IsSet() { + toSerialize["asset_tag"] = o.AssetTag.Get() + } + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if o.FormFactor.IsSet() { + toSerialize["form_factor"] = o.FormFactor.Get() + } + if !IsNil(o.Width) { + toSerialize["width"] = o.Width + } + if !IsNil(o.UHeight) { + toSerialize["u_height"] = o.UHeight + } + if !IsNil(o.StartingUnit) { + toSerialize["starting_unit"] = o.StartingUnit + } + if o.Weight.IsSet() { + toSerialize["weight"] = o.Weight.Get() + } + if o.MaxWeight.IsSet() { + toSerialize["max_weight"] = o.MaxWeight.Get() + } + if o.WeightUnit.IsSet() { + toSerialize["weight_unit"] = o.WeightUnit.Get() + } + if !IsNil(o.DescUnits) { + toSerialize["desc_units"] = o.DescUnits + } + if o.OuterWidth.IsSet() { + toSerialize["outer_width"] = o.OuterWidth.Get() + } + if o.OuterDepth.IsSet() { + toSerialize["outer_depth"] = o.OuterDepth.Get() + } + if o.OuterUnit.IsSet() { + toSerialize["outer_unit"] = o.OuterUnit.Get() + } + if o.MountingDepth.IsSet() { + toSerialize["mounting_depth"] = o.MountingDepth.Get() + } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +1182,7 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "site", } allProperties := make(map[string]interface{}) @@ -159,7 +1213,32 @@ func (o *RackRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "facility_id") + delete(additionalProperties, "site") + delete(additionalProperties, "location") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") + delete(additionalProperties, "serial") + delete(additionalProperties, "asset_tag") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") + delete(additionalProperties, "width") + delete(additionalProperties, "u_height") + delete(additionalProperties, "starting_unit") + delete(additionalProperties, "weight") + delete(additionalProperties, "max_weight") + delete(additionalProperties, "weight_unit") + delete(additionalProperties, "desc_units") + delete(additionalProperties, "outer_width") + delete(additionalProperties, "outer_depth") + delete(additionalProperties, "outer_unit") + delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_rack_request_form_factor.go b/model_rack_request_form_factor.go index e414a6c35..2c1fdbf00 100644 --- a/model_rack_request_form_factor.go +++ b/model_rack_request_form_factor.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_request_outer_unit.go b/model_rack_request_outer_unit.go index f7f18feff..114d02877 100644 --- a/model_rack_request_outer_unit.go +++ b/model_rack_request_outer_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_reservation.go b/model_rack_reservation.go index f4cdb1411..f0009f80c 100644 --- a/model_rack_reservation.go +++ b/model_rack_reservation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &RackReservation{} type RackReservation struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` - Rack Rack `json:"rack"` + Rack BriefRack `json:"rack"` Units []int32 `json:"units"` Created NullableTime `json:"created"` LastUpdated NullableTime `json:"last_updated"` - User User `json:"user"` - Tenant NullableTenant `json:"tenant,omitempty"` + User BriefUser `json:"user"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description string `json:"description"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -43,7 +44,7 @@ type _RackReservation RackReservation // 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 NewRackReservation(id int32, url string, display string, rack Rack, units []int32, created NullableTime, lastUpdated NullableTime, user User, description string) *RackReservation { +func NewRackReservation(id int32, url string, display string, rack BriefRack, units []int32, created NullableTime, lastUpdated NullableTime, user BriefUser, description string) *RackReservation { this := RackReservation{} this.Id = id this.Url = url @@ -113,6 +114,38 @@ func (o *RackReservation) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RackReservation) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackReservation) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RackReservation) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RackReservation) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RackReservation) GetDisplay() string { if o == nil { @@ -138,9 +171,9 @@ func (o *RackReservation) SetDisplay(v string) { } // GetRack returns the Rack field value -func (o *RackReservation) GetRack() Rack { +func (o *RackReservation) GetRack() BriefRack { if o == nil { - var ret Rack + var ret BriefRack return ret } @@ -149,7 +182,7 @@ func (o *RackReservation) GetRack() Rack { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetRackOk() (*Rack, bool) { +func (o *RackReservation) GetRackOk() (*BriefRack, bool) { if o == nil { return nil, false } @@ -157,7 +190,7 @@ func (o *RackReservation) GetRackOk() (*Rack, bool) { } // SetRack sets field value -func (o *RackReservation) SetRack(v Rack) { +func (o *RackReservation) SetRack(v BriefRack) { o.Rack = v } @@ -238,9 +271,9 @@ func (o *RackReservation) SetLastUpdated(v time.Time) { } // GetUser returns the User field value -func (o *RackReservation) GetUser() User { +func (o *RackReservation) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -249,7 +282,7 @@ func (o *RackReservation) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservation) GetUserOk() (*User, bool) { +func (o *RackReservation) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -257,14 +290,14 @@ func (o *RackReservation) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *RackReservation) SetUser(v User) { +func (o *RackReservation) SetUser(v BriefUser) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservation) GetTenant() Tenant { +func (o *RackReservation) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -273,7 +306,7 @@ func (o *RackReservation) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservation) GetTenantOk() (*Tenant, bool) { +func (o *RackReservation) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -289,8 +322,8 @@ func (o *RackReservation) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RackReservation) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RackReservation) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -436,6 +469,9 @@ func (o RackReservation) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["rack"] = o.Rack toSerialize["units"] = o.Units @@ -508,6 +544,7 @@ func (o *RackReservation) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "rack") delete(additionalProperties, "units") diff --git a/model_rack_reservation_request.go b/model_rack_reservation_request.go index f08054702..c014a999c 100644 --- a/model_rack_reservation_request.go +++ b/model_rack_reservation_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &RackReservationRequest{} // RackReservationRequest Adds support for custom fields and tags. type RackReservationRequest struct { - Rack RackRequest `json:"rack"` - Units []int32 `json:"units"` - User UserRequest `json:"user"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description string `json:"description"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Rack BriefRackRequest `json:"rack"` + Units []int32 `json:"units"` + User BriefUserRequest `json:"user"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description string `json:"description"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _RackReservationRequest RackReservationRequest // 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 NewRackReservationRequest(rack RackRequest, units []int32, user UserRequest, description string) *RackReservationRequest { +func NewRackReservationRequest(rack BriefRackRequest, units []int32, user BriefUserRequest, description string) *RackReservationRequest { this := RackReservationRequest{} this.Rack = rack this.Units = units @@ -55,9 +55,9 @@ func NewRackReservationRequestWithDefaults() *RackReservationRequest { } // GetRack returns the Rack field value -func (o *RackReservationRequest) GetRack() RackRequest { +func (o *RackReservationRequest) GetRack() BriefRackRequest { if o == nil { - var ret RackRequest + var ret BriefRackRequest return ret } @@ -66,7 +66,7 @@ func (o *RackReservationRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { +func (o *RackReservationRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -74,7 +74,7 @@ func (o *RackReservationRequest) GetRackOk() (*RackRequest, bool) { } // SetRack sets field value -func (o *RackReservationRequest) SetRack(v RackRequest) { +func (o *RackReservationRequest) SetRack(v BriefRackRequest) { o.Rack = v } @@ -103,9 +103,9 @@ func (o *RackReservationRequest) SetUnits(v []int32) { } // GetUser returns the User field value -func (o *RackReservationRequest) GetUser() UserRequest { +func (o *RackReservationRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -114,7 +114,7 @@ func (o *RackReservationRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { +func (o *RackReservationRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -122,14 +122,14 @@ func (o *RackReservationRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *RackReservationRequest) SetUser(v UserRequest) { +func (o *RackReservationRequest) SetUser(v BriefUserRequest) { o.User = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RackReservationRequest) GetTenant() TenantRequest { +func (o *RackReservationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -138,7 +138,7 @@ func (o *RackReservationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RackReservationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RackReservationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -154,8 +154,8 @@ func (o *RackReservationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RackReservationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RackReservationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_rack_role.go b/model_rack_role.go index 6f5af14fd..ec3a79c7a 100644 --- a/model_rack_role.go +++ b/model_rack_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &RackRole{} type RackRole struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -111,6 +112,38 @@ func (o *RackRole) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RackRole) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RackRole) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RackRole) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RackRole) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RackRole) GetDisplay() string { if o == nil { @@ -399,6 +432,9 @@ func (o RackRole) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -469,6 +505,7 @@ func (o *RackRole) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_rack_role_request.go b/model_rack_role_request.go index f3d72593d..67ed496fa 100644 --- a/model_rack_role_request.go +++ b/model_rack_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_status.go b/model_rack_status.go index d61e12e04..87521f790 100644 --- a/model_rack_status.go +++ b/model_rack_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_status_label.go b/model_rack_status_label.go index 016bb26c1..4110a74a7 100644 --- a/model_rack_status_label.go +++ b/model_rack_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_type.go b/model_rack_type.go index 032eebdbb..602321ff3 100644 --- a/model_rack_type.go +++ b/model_rack_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ var _ MappedNullable = &RackType{} type RackType struct { Id int32 `json:"id"` Url string `json:"url"` - DisplayUrl string `json:"display_url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Manufacturer BriefManufacturer `json:"manufacturer"` Model string `json:"model"` @@ -62,11 +62,10 @@ type _RackType RackType // 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 NewRackType(id int32, url string, displayUrl string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime) *RackType { +func NewRackType(id int32, url string, display string, manufacturer BriefManufacturer, model string, slug string, created NullableTime, lastUpdated NullableTime) *RackType { this := RackType{} this.Id = id this.Url = url - this.DisplayUrl = displayUrl this.Display = display this.Manufacturer = manufacturer this.Model = model @@ -132,28 +131,36 @@ func (o *RackType) SetUrl(v string) { o.Url = v } -// GetDisplayUrl returns the DisplayUrl field value +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. func (o *RackType) GetDisplayUrl() string { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { var ret string return ret } - - return o.DisplayUrl + return *o.DisplayUrl } -// GetDisplayUrlOk returns a tuple with the DisplayUrl field value +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *RackType) GetDisplayUrlOk() (*string, bool) { - if o == nil { + if o == nil || IsNil(o.DisplayUrl) { return nil, false } - return &o.DisplayUrl, true + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RackType) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false } -// SetDisplayUrl sets field value +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. func (o *RackType) SetDisplayUrl(v string) { - o.DisplayUrl = v + o.DisplayUrl = &v } // GetDisplay returns the Display field value @@ -916,7 +923,9 @@ func (o RackType) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url - toSerialize["display_url"] = o.DisplayUrl + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["manufacturer"] = o.Manufacturer toSerialize["model"] = o.Model @@ -986,7 +995,6 @@ func (o *RackType) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "id", "url", - "display_url", "display", "manufacturer", "model", diff --git a/model_rack_type_request.go b/model_rack_type_request.go index 4ad445c4c..3ddb499df 100644 --- a/model_rack_type_request.go +++ b/model_rack_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_unit.go b/model_rack_unit.go index 6bd4ac781..04c1ff768 100644 --- a/model_rack_unit.go +++ b/model_rack_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,7 +23,7 @@ type RackUnit struct { Id float64 `json:"id"` Name string `json:"name"` Face RackUnitFace `json:"face"` - Device Device `json:"device"` + Device BriefDevice `json:"device"` Occupied bool `json:"occupied"` Display string `json:"display"` AdditionalProperties map[string]interface{} @@ -35,7 +35,7 @@ type _RackUnit RackUnit // 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 NewRackUnit(id float64, name string, face RackUnitFace, device Device, occupied bool, display string) *RackUnit { +func NewRackUnit(id float64, name string, face RackUnitFace, device BriefDevice, occupied bool, display string) *RackUnit { this := RackUnit{} this.Id = id this.Name = name @@ -127,9 +127,9 @@ func (o *RackUnit) SetFace(v RackUnitFace) { } // GetDevice returns the Device field value -func (o *RackUnit) GetDevice() Device { +func (o *RackUnit) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -138,7 +138,7 @@ func (o *RackUnit) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RackUnit) GetDeviceOk() (*Device, bool) { +func (o *RackUnit) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -146,7 +146,7 @@ func (o *RackUnit) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RackUnit) SetDevice(v Device) { +func (o *RackUnit) SetDevice(v BriefDevice) { o.Device = v } diff --git a/model_rack_unit_face.go b/model_rack_unit_face.go index 081988bab..8d5130946 100644 --- a/model_rack_unit_face.go +++ b/model_rack_unit_face.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_unit_face_value.go b/model_rack_unit_face_value.go index 1219f8e2c..22187a5b9 100644 --- a/model_rack_unit_face_value.go +++ b/model_rack_unit_face_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_width.go b/model_rack_width.go index 2dd95e3a9..806ccda19 100644 --- a/model_rack_width.go +++ b/model_rack_width.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_width_label.go b/model_rack_width_label.go index 86bb5bbc3..016c1b5c6 100644 --- a/model_rack_width_label.go +++ b/model_rack_width_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rack_width_value.go b/model_rack_width_value.go index 413b62441..3b984fe89 100644 --- a/model_rack_width_value.go +++ b/model_rack_width_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rear_port.go b/model_rear_port.go index 874ce1541..ab9b4fa31 100644 --- a/model_rear_port.go +++ b/model_rear_port.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &RearPort{} // RearPort Adds support for custom fields and tags. type RearPort struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device Device `json:"device"` - Module NullableModule `json:"module,omitempty"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device BriefDevice `json:"device"` + Module NullableBriefModule `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortType `json:"type"` @@ -35,12 +36,12 @@ type RearPort struct { Positions *int32 `json:"positions,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Cable NullableCable `json:"cable"` - CableEnd string `json:"cable_end"` - LinkPeers []interface{} `json:"link_peers"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Cable NullableBriefCable `json:"cable"` + CableEnd string `json:"cable_end"` + LinkPeers []interface{} `json:"link_peers"` // Return the type of the peer link terminations, or None. - LinkPeersType string `json:"link_peers_type"` + LinkPeersType NullableString `json:"link_peers_type"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -55,7 +56,7 @@ type _RearPort RearPort // 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 NewRearPort(id int32, url string, display string, device Device, name string, type_ FrontPortType, cable NullableCable, cableEnd string, linkPeers []interface{}, linkPeersType string, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { +func NewRearPort(id int32, url string, display string, device BriefDevice, name string, type_ FrontPortType, cable NullableBriefCable, cableEnd string, linkPeers []interface{}, linkPeersType NullableString, created NullableTime, lastUpdated NullableTime, occupied bool) *RearPort { this := RearPort{} this.Id = id this.Url = url @@ -129,6 +130,38 @@ func (o *RearPort) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RearPort) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPort) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RearPort) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RearPort) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RearPort) GetDisplay() string { if o == nil { @@ -154,9 +187,9 @@ func (o *RearPort) SetDisplay(v string) { } // GetDevice returns the Device field value -func (o *RearPort) GetDevice() Device { +func (o *RearPort) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -165,7 +198,7 @@ func (o *RearPort) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPort) GetDeviceOk() (*Device, bool) { +func (o *RearPort) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -173,14 +206,14 @@ func (o *RearPort) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *RearPort) SetDevice(v Device) { +func (o *RearPort) SetDevice(v BriefDevice) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPort) GetModule() Module { +func (o *RearPort) GetModule() BriefModule { if o == nil || IsNil(o.Module.Get()) { - var ret Module + var ret BriefModule return ret } return *o.Module.Get() @@ -189,7 +222,7 @@ func (o *RearPort) GetModule() Module { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetModuleOk() (*Module, bool) { +func (o *RearPort) GetModuleOk() (*BriefModule, bool) { if o == nil { return nil, false } @@ -205,8 +238,8 @@ func (o *RearPort) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModule and assigns it to the Module field. -func (o *RearPort) SetModule(v Module) { +// SetModule gets a reference to the given NullableBriefModule and assigns it to the Module field. +func (o *RearPort) SetModule(v BriefModule) { o.Module.Set(&v) } @@ -429,10 +462,10 @@ func (o *RearPort) SetMarkConnected(v bool) { } // GetCable returns the Cable field value -// If the value is explicit nil, the zero value for Cable will be returned -func (o *RearPort) GetCable() Cable { +// If the value is explicit nil, the zero value for BriefCable will be returned +func (o *RearPort) GetCable() BriefCable { if o == nil || o.Cable.Get() == nil { - var ret Cable + var ret BriefCable return ret } @@ -442,7 +475,7 @@ func (o *RearPort) GetCable() Cable { // GetCableOk returns a tuple with the Cable field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPort) GetCableOk() (*Cable, bool) { +func (o *RearPort) GetCableOk() (*BriefCable, bool) { if o == nil { return nil, false } @@ -450,7 +483,7 @@ func (o *RearPort) GetCableOk() (*Cable, bool) { } // SetCable sets field value -func (o *RearPort) SetCable(v Cable) { +func (o *RearPort) SetCable(v BriefCable) { o.Cable.Set(&v) } @@ -503,27 +536,29 @@ func (o *RearPort) SetLinkPeers(v []interface{}) { } // GetLinkPeersType returns the LinkPeersType field value +// If the value is explicit nil, the zero value for string will be returned func (o *RearPort) GetLinkPeersType() string { - if o == nil { + if o == nil || o.LinkPeersType.Get() == nil { var ret string return ret } - return o.LinkPeersType + return *o.LinkPeersType.Get() } // GetLinkPeersTypeOk returns a tuple with the LinkPeersType field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *RearPort) GetLinkPeersTypeOk() (*string, bool) { if o == nil { return nil, false } - return &o.LinkPeersType, true + return o.LinkPeersType.Get(), o.LinkPeersType.IsSet() } // SetLinkPeersType sets field value func (o *RearPort) SetLinkPeersType(v string) { - o.LinkPeersType = v + o.LinkPeersType.Set(&v) } // GetTags returns the Tags field value if set, zero value otherwise. @@ -678,6 +713,9 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["device"] = o.Device if o.Module.IsSet() { @@ -703,7 +741,7 @@ func (o RearPort) ToMap() (map[string]interface{}, error) { toSerialize["cable"] = o.Cable.Get() toSerialize["cable_end"] = o.CableEnd toSerialize["link_peers"] = o.LinkPeers - toSerialize["link_peers_type"] = o.LinkPeersType + toSerialize["link_peers_type"] = o.LinkPeersType.Get() if !IsNil(o.Tags) { toSerialize["tags"] = o.Tags } @@ -770,6 +808,7 @@ func (o *RearPort) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "module") diff --git a/model_rear_port_request.go b/model_rear_port_request.go index 0ea93e90e..9636e2715 100644 --- a/model_rear_port_request.go +++ b/model_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &RearPortRequest{} // RearPortRequest Adds support for custom fields and tags. type RearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _RearPortRequest RearPortRequest // 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 NewRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { +func NewRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *RearPortRequest { this := RearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewRearPortRequestWithDefaults() *RearPortRequest { } // GetDevice returns the Device field value -func (o *RearPortRequest) GetDevice() DeviceRequest { +func (o *RearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *RearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *RearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *RearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *RearPortRequest) SetDevice(v DeviceRequest) { +func (o *RearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RearPortRequest) GetModule() ModuleRequest { +func (o *RearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *RearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *RearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *RearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *RearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *RearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_rear_port_template.go b/model_rear_port_template.go index c0fc38788..ceaca3b66 100644 --- a/model_rear_port_template.go +++ b/model_rear_port_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the RearPortTemplate type satisfies the MappedNullable interface at compile time @@ -20,12 +21,21 @@ var _ MappedNullable = &RearPortTemplate{} // RearPortTemplate Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplate struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + Display string `json:"display"` + DeviceType NullableBriefDeviceType `json:"device_type,omitempty"` + ModuleType NullableBriefModuleType `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortType `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -35,12 +45,15 @@ type _RearPortTemplate RearPortTemplate // 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 NewRearPortTemplate(id int32, url string, display string, name string) *RearPortTemplate { +func NewRearPortTemplate(id int32, url string, display string, name string, type_ FrontPortType, created NullableTime, lastUpdated NullableTime) *RearPortTemplate { this := RearPortTemplate{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Type = type_ + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -124,6 +137,92 @@ func (o *RearPortTemplate) SetDisplay(v string) { o.Display = v } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetDeviceType() BriefDeviceType { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceType + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetDeviceTypeOk() (*BriefDeviceType, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceType and assigns it to the DeviceType field. +func (o *RearPortTemplate) SetDeviceType(v BriefDeviceType) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplate) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplate) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplate) GetModuleType() BriefModuleType { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleType + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetModuleTypeOk() (*BriefModuleType, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplate) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleType and assigns it to the ModuleType field. +func (o *RearPortTemplate) SetModuleType(v BriefModuleType) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplate) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplate) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplate) GetName() string { if o == nil { @@ -148,6 +247,126 @@ func (o *RearPortTemplate) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplate) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RearPortTemplate) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *RearPortTemplate) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplate) GetType() FrontPortType { + if o == nil { + var ret FrontPortType + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetTypeOk() (*FrontPortType, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplate) SetType(v FrontPortType) { + o.Type = v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplate) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplate) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplate) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplate) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplate) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplate) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplate) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplate) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -180,6 +399,58 @@ func (o *RearPortTemplate) SetDescription(v string) { o.Description = &v } +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RearPortTemplate) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RearPortTemplate) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RearPortTemplate) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplate) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RearPortTemplate) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + func (o RearPortTemplate) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -193,10 +464,28 @@ func (o RearPortTemplate) ToMap() (map[string]interface{}, error) { toSerialize["id"] = o.Id toSerialize["url"] = o.Url toSerialize["display"] = o.Display + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -214,6 +503,9 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "type", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -246,8 +538,16 @@ func (o *RearPortTemplate) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "id") delete(additionalProperties, "url") delete(additionalProperties, "display") + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") o.AdditionalProperties = additionalProperties } diff --git a/model_rear_port_template_request.go b/model_rear_port_template_request.go index 094c72a2d..09a2ad4c6 100644 --- a/model_rear_port_template_request.go +++ b/model_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,16 @@ var _ MappedNullable = &RearPortTemplateRequest{} // RearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type RearPortTemplateRequest struct { + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + // Physical label + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + Positions *int32 `json:"positions,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -32,9 +39,10 @@ type _RearPortTemplateRequest RearPortTemplateRequest // 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 NewRearPortTemplateRequest(name string) *RearPortTemplateRequest { +func NewRearPortTemplateRequest(name string, type_ FrontPortTypeValue) *RearPortTemplateRequest { this := RearPortTemplateRequest{} this.Name = name + this.Type = type_ return &this } @@ -46,6 +54,92 @@ func NewRearPortTemplateRequestWithDefaults() *RearPortTemplateRequest { return &this } +// GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { + if o == nil || IsNil(o.DeviceType.Get()) { + var ret BriefDeviceTypeRequest + return ret + } + return *o.DeviceType.Get() +} + +// GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.DeviceType.Get(), o.DeviceType.IsSet() +} + +// HasDeviceType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasDeviceType() bool { + if o != nil && o.DeviceType.IsSet() { + return true + } + + return false +} + +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *RearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { + o.DeviceType.Set(&v) +} + +// SetDeviceTypeNil sets the value for DeviceType to be an explicit nil +func (o *RearPortTemplateRequest) SetDeviceTypeNil() { + o.DeviceType.Set(nil) +} + +// UnsetDeviceType ensures that no value is present for DeviceType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetDeviceType() { + o.DeviceType.Unset() +} + +// GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *RearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { + if o == nil || IsNil(o.ModuleType.Get()) { + var ret BriefModuleTypeRequest + return ret + } + return *o.ModuleType.Get() +} + +// GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.ModuleType.Get(), o.ModuleType.IsSet() +} + +// HasModuleType returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasModuleType() bool { + if o != nil && o.ModuleType.IsSet() { + return true + } + + return false +} + +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *RearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { + o.ModuleType.Set(&v) +} + +// SetModuleTypeNil sets the value for ModuleType to be an explicit nil +func (o *RearPortTemplateRequest) SetModuleTypeNil() { + o.ModuleType.Set(nil) +} + +// UnsetModuleType ensures that no value is present for ModuleType, not even an explicit nil +func (o *RearPortTemplateRequest) UnsetModuleType() { + o.ModuleType.Unset() +} + // GetName returns the Name field value func (o *RearPortTemplateRequest) GetName() string { if o == nil { @@ -70,6 +164,126 @@ func (o *RearPortTemplateRequest) SetName(v string) { o.Name = v } +// GetLabel returns the Label field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetLabel() string { + if o == nil || IsNil(o.Label) { + var ret string + return ret + } + return *o.Label +} + +// GetLabelOk returns a tuple with the Label field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetLabelOk() (*string, bool) { + if o == nil || IsNil(o.Label) { + return nil, false + } + return o.Label, true +} + +// HasLabel returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasLabel() bool { + if o != nil && !IsNil(o.Label) { + return true + } + + return false +} + +// SetLabel gets a reference to the given string and assigns it to the Label field. +func (o *RearPortTemplateRequest) SetLabel(v string) { + o.Label = &v +} + +// GetType returns the Type field value +func (o *RearPortTemplateRequest) GetType() FrontPortTypeValue { + if o == nil { + var ret FrontPortTypeValue + return ret + } + + return o.Type +} + +// GetTypeOk returns a tuple with the Type field value +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetTypeOk() (*FrontPortTypeValue, bool) { + if o == nil { + return nil, false + } + return &o.Type, true +} + +// SetType sets field value +func (o *RearPortTemplateRequest) SetType(v FrontPortTypeValue) { + o.Type = v +} + +// GetColor returns the Color field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetColor() string { + if o == nil || IsNil(o.Color) { + var ret string + return ret + } + return *o.Color +} + +// GetColorOk returns a tuple with the Color field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetColorOk() (*string, bool) { + if o == nil || IsNil(o.Color) { + return nil, false + } + return o.Color, true +} + +// HasColor returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasColor() bool { + if o != nil && !IsNil(o.Color) { + return true + } + + return false +} + +// SetColor gets a reference to the given string and assigns it to the Color field. +func (o *RearPortTemplateRequest) SetColor(v string) { + o.Color = &v +} + +// GetPositions returns the Positions field value if set, zero value otherwise. +func (o *RearPortTemplateRequest) GetPositions() int32 { + if o == nil || IsNil(o.Positions) { + var ret int32 + return ret + } + return *o.Positions +} + +// GetPositionsOk returns a tuple with the Positions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RearPortTemplateRequest) GetPositionsOk() (*int32, bool) { + if o == nil || IsNil(o.Positions) { + return nil, false + } + return o.Positions, true +} + +// HasPositions returns a boolean if a field has been set. +func (o *RearPortTemplateRequest) HasPositions() bool { + if o != nil && !IsNil(o.Positions) { + return true + } + + return false +} + +// SetPositions gets a reference to the given int32 and assigns it to the Positions field. +func (o *RearPortTemplateRequest) SetPositions(v int32) { + o.Positions = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RearPortTemplateRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -112,7 +326,23 @@ func (o RearPortTemplateRequest) MarshalJSON() ([]byte, error) { func (o RearPortTemplateRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.DeviceType.IsSet() { + toSerialize["device_type"] = o.DeviceType.Get() + } + if o.ModuleType.IsSet() { + toSerialize["module_type"] = o.ModuleType.Get() + } toSerialize["name"] = o.Name + if !IsNil(o.Label) { + toSerialize["label"] = o.Label + } + toSerialize["type"] = o.Type + if !IsNil(o.Color) { + toSerialize["color"] = o.Color + } + if !IsNil(o.Positions) { + toSerialize["positions"] = o.Positions + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -130,6 +360,7 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "type", } allProperties := make(map[string]interface{}) @@ -159,7 +390,13 @@ func (o *RearPortTemplateRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "device_type") + delete(additionalProperties, "module_type") delete(additionalProperties, "name") + delete(additionalProperties, "label") + delete(additionalProperties, "type") + delete(additionalProperties, "color") + delete(additionalProperties, "positions") delete(additionalProperties, "description") o.AdditionalProperties = additionalProperties } diff --git a/model_region.go b/model_region.go index 41939f635..5bd36fd6e 100644 --- a/model_region.go +++ b/model_region.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Region{} type Region struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -113,6 +114,38 @@ func (o *Region) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Region) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Region) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Region) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Region) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Region) GetDisplay() string { if o == nil { @@ -436,6 +469,9 @@ func (o Region) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -508,6 +544,7 @@ func (o *Region) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_region_request.go b/model_region_request.go index a014b4811..57d4a9837 100644 --- a/model_region_request.go +++ b/model_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_rir.go b/model_rir.go index 503050bfc..ab666949e 100644 --- a/model_rir.go +++ b/model_rir.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the RIR type satisfies the MappedNullable interface at compile time @@ -20,13 +21,20 @@ var _ MappedNullable = &RIR{} // RIR Adds support for custom fields and tags. type RIR struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - AggregateCount int64 `json:"aggregate_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + // IP space managed by this RIR is considered private + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + AggregateCount int64 `json:"aggregate_count"` AdditionalProperties map[string]interface{} } @@ -36,13 +44,15 @@ type _RIR RIR // 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 NewRIR(id int32, url string, display string, name string, slug string, aggregateCount int64) *RIR { +func NewRIR(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, aggregateCount int64) *RIR { this := RIR{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.AggregateCount = aggregateCount return &this } @@ -103,6 +113,38 @@ func (o *RIR) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RIR) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RIR) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RIR) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RIR) GetDisplay() string { if o == nil { @@ -175,6 +217,38 @@ func (o *RIR) SetSlug(v string) { o.Slug = v } +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIR) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIR) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIR) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIR) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +281,122 @@ func (o *RIR) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIR) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RIR) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *RIR) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIR) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIR) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RIR) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RIR) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RIR) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RIR) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *RIR) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *RIR) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *RIR) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *RIR) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetAggregateCount returns the AggregateCount field value func (o *RIR) GetAggregateCount() int64 { if o == nil { @@ -243,12 +433,26 @@ func (o RIR) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["aggregate_count"] = o.AggregateCount for key, value := range o.AdditionalProperties { @@ -268,6 +472,8 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", "aggregate_count", } @@ -300,10 +506,16 @@ func (o *RIR) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "aggregate_count") o.AdditionalProperties = additionalProperties } diff --git a/model_rir_request.go b/model_rir_request.go index c7ddc0294..d2c47f267 100644 --- a/model_rir_request.go +++ b/model_rir_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &RIRRequest{} // RIRRequest Adds support for custom fields and tags. type RIRRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + // IP space managed by this RIR is considered private + IsPrivate *bool `json:"is_private,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,38 @@ func (o *RIRRequest) SetSlug(v string) { o.Slug = v } +// GetIsPrivate returns the IsPrivate field value if set, zero value otherwise. +func (o *RIRRequest) GetIsPrivate() bool { + if o == nil || IsNil(o.IsPrivate) { + var ret bool + return ret + } + return *o.IsPrivate +} + +// GetIsPrivateOk returns a tuple with the IsPrivate field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetIsPrivateOk() (*bool, bool) { + if o == nil || IsNil(o.IsPrivate) { + return nil, false + } + return o.IsPrivate, true +} + +// HasIsPrivate returns a boolean if a field has been set. +func (o *RIRRequest) HasIsPrivate() bool { + if o != nil && !IsNil(o.IsPrivate) { + return true + } + + return false +} + +// SetIsPrivate gets a reference to the given bool and assigns it to the IsPrivate field. +func (o *RIRRequest) SetIsPrivate(v bool) { + o.IsPrivate = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RIRRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +163,70 @@ func (o *RIRRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RIRRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RIRRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RIRRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RIRRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RIRRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RIRRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RIRRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RIRRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +239,18 @@ func (o RIRRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.IsPrivate) { + toSerialize["is_private"] = o.IsPrivate + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +297,10 @@ func (o *RIRRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "is_private") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_role.go b/model_role.go index 0b40bcf08..1602ca8a7 100644 --- a/model_role.go +++ b/model_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Role type satisfies the MappedNullable interface at compile time @@ -20,14 +21,20 @@ var _ MappedNullable = &Role{} // Role Adds support for custom fields and tags. type Role struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` - VlanCount *int64 `json:"vlan_count,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +44,15 @@ type _Role Role // 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 NewRole(id int32, url string, display string, name string, slug string) *Role { +func NewRole(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime) *Role { this := Role{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -103,6 +112,38 @@ func (o *Role) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Role) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Role) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Role) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Role) GetDisplay() string { if o == nil { @@ -175,6 +216,38 @@ func (o *Role) SetSlug(v string) { o.Slug = v } +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *Role) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *Role) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *Role) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Role) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -207,6 +280,122 @@ func (o *Role) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Role) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Role) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Role) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Role) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Role) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Role) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Role) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Role) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Role) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Role) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Role) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Role) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Role) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *Role) GetPrefixCount() int64 { if o == nil || IsNil(o.PrefixCount) { @@ -283,12 +472,26 @@ func (o Role) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -313,6 +516,8 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -344,10 +549,16 @@ func (o *Role) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "prefix_count") delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties diff --git a/model_role_request.go b/model_role_request.go index 601cac559..ee86496be 100644 --- a/model_role_request.go +++ b/model_role_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,12 @@ var _ MappedNullable = &RoleRequest{} // RoleRequest Adds support for custom fields and tags. type RoleRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Weight *int32 `json:"weight,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +98,38 @@ func (o *RoleRequest) SetSlug(v string) { o.Slug = v } +// GetWeight returns the Weight field value if set, zero value otherwise. +func (o *RoleRequest) GetWeight() int32 { + if o == nil || IsNil(o.Weight) { + var ret int32 + return ret + } + return *o.Weight +} + +// GetWeightOk returns a tuple with the Weight field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetWeightOk() (*int32, bool) { + if o == nil || IsNil(o.Weight) { + return nil, false + } + return o.Weight, true +} + +// HasWeight returns a boolean if a field has been set. +func (o *RoleRequest) HasWeight() bool { + if o != nil && !IsNil(o.Weight) { + return true + } + + return false +} + +// SetWeight gets a reference to the given int32 and assigns it to the Weight field. +func (o *RoleRequest) SetWeight(v int32) { + o.Weight = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *RoleRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +162,70 @@ func (o *RoleRequest) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *RoleRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *RoleRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *RoleRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *RoleRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RoleRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *RoleRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *RoleRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o RoleRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +238,18 @@ func (o RoleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Weight) { + toSerialize["weight"] = o.Weight + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +296,10 @@ func (o *RoleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "weight") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_route_target.go b/model_route_target.go index 7856b51ca..eac0d7fb6 100644 --- a/model_route_target.go +++ b/model_route_target.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,13 @@ var _ MappedNullable = &RouteTarget{} // RouteTarget Adds support for custom fields and tags. type RouteTarget struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // Route target value (formatted in accordance with RFC 4360) Name string `json:"name"` - Tenant NullableTenant `json:"tenant,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -109,6 +110,38 @@ func (o *RouteTarget) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *RouteTarget) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *RouteTarget) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *RouteTarget) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *RouteTarget) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *RouteTarget) GetDisplay() string { if o == nil { @@ -158,9 +191,9 @@ func (o *RouteTarget) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTarget) GetTenant() Tenant { +func (o *RouteTarget) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -169,7 +202,7 @@ func (o *RouteTarget) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTarget) GetTenantOk() (*Tenant, bool) { +func (o *RouteTarget) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -185,8 +218,8 @@ func (o *RouteTarget) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *RouteTarget) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *RouteTarget) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -392,6 +425,9 @@ func (o RouteTarget) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Tenant.IsSet() { @@ -461,6 +497,7 @@ func (o *RouteTarget) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "tenant") diff --git a/model_route_target_request.go b/model_route_target_request.go index f913d4bdf..433c7453b 100644 --- a/model_route_target_request.go +++ b/model_route_target_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &RouteTargetRequest{} // RouteTargetRequest Adds support for custom fields and tags. type RouteTargetRequest struct { // Route target value (formatted in accordance with RFC 4360) - Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -75,9 +75,9 @@ func (o *RouteTargetRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *RouteTargetRequest) GetTenant() TenantRequest { +func (o *RouteTargetRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -86,7 +86,7 @@ func (o *RouteTargetRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *RouteTargetRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *RouteTargetRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -102,8 +102,8 @@ func (o *RouteTargetRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *RouteTargetRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *RouteTargetRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_saved_filter.go b/model_saved_filter.go index 4282ab65a..efc13df4c 100644 --- a/model_saved_filter.go +++ b/model_saved_filter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &SavedFilter{} type SavedFilter struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` ObjectTypes []string `json:"object_types"` Name string `json:"name"` @@ -114,6 +115,38 @@ func (o *SavedFilter) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *SavedFilter) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SavedFilter) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *SavedFilter) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *SavedFilter) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *SavedFilter) GetDisplay() string { if o == nil { @@ -471,6 +504,9 @@ func (o SavedFilter) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name @@ -548,6 +584,7 @@ func (o *SavedFilter) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "object_types") delete(additionalProperties, "name") diff --git a/model_saved_filter_request.go b/model_saved_filter_request.go index d38d5ce3e..301d6c36c 100644 --- a/model_saved_filter_request.go +++ b/model_saved_filter_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_format_parameter.go b/model_schema_retrieve_format_parameter.go index 19b41f6a5..111195135 100644 --- a/model_schema_retrieve_format_parameter.go +++ b/model_schema_retrieve_format_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_schema_retrieve_lang_parameter.go b/model_schema_retrieve_lang_parameter.go index 301bf4dbb..6e1997050 100644 --- a/model_schema_retrieve_lang_parameter.go +++ b/model_schema_retrieve_lang_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,16 @@ type SchemaRetrieveLangParameter string // List of schema_retrieve_lang_parameter const ( + SCHEMARETRIEVELANGPARAMETER_CS SchemaRetrieveLangParameter = "cs" + SCHEMARETRIEVELANGPARAMETER_DA SchemaRetrieveLangParameter = "da" SCHEMARETRIEVELANGPARAMETER_DE SchemaRetrieveLangParameter = "de" SCHEMARETRIEVELANGPARAMETER_EN SchemaRetrieveLangParameter = "en" SCHEMARETRIEVELANGPARAMETER_ES SchemaRetrieveLangParameter = "es" SCHEMARETRIEVELANGPARAMETER_FR SchemaRetrieveLangParameter = "fr" + SCHEMARETRIEVELANGPARAMETER_IT SchemaRetrieveLangParameter = "it" SCHEMARETRIEVELANGPARAMETER_JA SchemaRetrieveLangParameter = "ja" + SCHEMARETRIEVELANGPARAMETER_NL SchemaRetrieveLangParameter = "nl" + SCHEMARETRIEVELANGPARAMETER_PL SchemaRetrieveLangParameter = "pl" SCHEMARETRIEVELANGPARAMETER_PT SchemaRetrieveLangParameter = "pt" SCHEMARETRIEVELANGPARAMETER_RU SchemaRetrieveLangParameter = "ru" SCHEMARETRIEVELANGPARAMETER_TR SchemaRetrieveLangParameter = "tr" @@ -34,11 +39,16 @@ const ( // All allowed values of SchemaRetrieveLangParameter enum var AllowedSchemaRetrieveLangParameterEnumValues = []SchemaRetrieveLangParameter{ + "cs", + "da", "de", "en", "es", "fr", + "it", "ja", + "nl", + "pl", "pt", "ru", "tr", diff --git a/model_script.go b/model_script.go index 738094f17..d777a4882 100644 --- a/model_script.go +++ b/model_script.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,15 +20,16 @@ var _ MappedNullable = &Script{} // Script Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Script struct { - Id int32 `json:"id"` - Url string `json:"url"` - Module int32 `json:"module"` - Name string `json:"name"` - Description string `json:"description"` - Vars interface{} `json:"vars"` - Result Job `json:"result"` - Display string `json:"display"` - IsExecutable bool `json:"is_executable"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Module int32 `json:"module"` + Name string `json:"name"` + Description NullableString `json:"description"` + Vars interface{} `json:"vars"` + Result BriefJob `json:"result"` + Display string `json:"display"` + IsExecutable bool `json:"is_executable"` AdditionalProperties map[string]interface{} } @@ -38,7 +39,7 @@ type _Script Script // 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 NewScript(id int32, url string, module int32, name string, description string, vars interface{}, result Job, display string, isExecutable bool) *Script { +func NewScript(id int32, url string, module int32, name string, description NullableString, vars interface{}, result BriefJob, display string, isExecutable bool) *Script { this := Script{} this.Id = id this.Url = url @@ -108,6 +109,38 @@ func (o *Script) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Script) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Script) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Script) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Script) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetModule returns the Module field value func (o *Script) GetModule() int32 { if o == nil { @@ -157,27 +190,29 @@ func (o *Script) SetName(v string) { } // GetDescription returns the Description field value +// If the value is explicit nil, the zero value for string will be returned func (o *Script) GetDescription() string { - if o == nil { + if o == nil || o.Description.Get() == nil { var ret string return ret } - return o.Description + return *o.Description.Get() } // GetDescriptionOk returns a tuple with the Description field value // and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned func (o *Script) GetDescriptionOk() (*string, bool) { if o == nil { return nil, false } - return &o.Description, true + return o.Description.Get(), o.Description.IsSet() } // SetDescription sets field value func (o *Script) SetDescription(v string) { - o.Description = v + o.Description.Set(&v) } // GetVars returns the Vars field value @@ -207,9 +242,9 @@ func (o *Script) SetVars(v interface{}) { } // GetResult returns the Result field value -func (o *Script) GetResult() Job { +func (o *Script) GetResult() BriefJob { if o == nil { - var ret Job + var ret BriefJob return ret } @@ -218,7 +253,7 @@ func (o *Script) GetResult() Job { // GetResultOk returns a tuple with the Result field value // and a boolean to check if the value has been set. -func (o *Script) GetResultOk() (*Job, bool) { +func (o *Script) GetResultOk() (*BriefJob, bool) { if o == nil { return nil, false } @@ -226,7 +261,7 @@ func (o *Script) GetResultOk() (*Job, bool) { } // SetResult sets field value -func (o *Script) SetResult(v Job) { +func (o *Script) SetResult(v BriefJob) { o.Result = v } @@ -290,9 +325,12 @@ func (o Script) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["module"] = o.Module toSerialize["name"] = o.Name - toSerialize["description"] = o.Description + toSerialize["description"] = o.Description.Get() if o.Vars != nil { toSerialize["vars"] = o.Vars } @@ -352,6 +390,7 @@ func (o *Script) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "module") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_script_input_request.go b/model_script_input_request.go index 4b40ca523..a8e09c47a 100644 --- a/model_script_input_request.go +++ b/model_script_input_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service.go b/model_service.go index e12f61b56..57877dbe0 100644 --- a/model_service.go +++ b/model_service.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,21 +21,22 @@ var _ MappedNullable = &Service{} // Service Adds support for custom fields and tags. type Service struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Device NullableDevice `json:"device,omitempty"` - VirtualMachine NullableVirtualMachine `json:"virtual_machine,omitempty"` - Name string `json:"name"` - Protocol *ServiceProtocol `json:"protocol,omitempty"` - Ports []int32 `json:"ports"` - Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Device NullableBriefDevice `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachine `json:"virtual_machine,omitempty"` + Name string `json:"name"` + Protocol *ServiceProtocol `json:"protocol,omitempty"` + Ports []int32 `json:"ports"` + Ipaddresses []IPAddress `json:"ipaddresses,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -113,6 +114,38 @@ func (o *Service) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Service) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Service) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Service) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Service) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Service) GetDisplay() string { if o == nil { @@ -138,9 +171,9 @@ func (o *Service) SetDisplay(v string) { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetDevice() Device { +func (o *Service) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -149,7 +182,7 @@ func (o *Service) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetDeviceOk() (*Device, bool) { +func (o *Service) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -165,8 +198,8 @@ func (o *Service) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *Service) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *Service) SetDevice(v BriefDevice) { o.Device.Set(&v) } @@ -181,9 +214,9 @@ func (o *Service) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *Service) GetVirtualMachine() VirtualMachine { +func (o *Service) GetVirtualMachine() BriefVirtualMachine { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } return *o.VirtualMachine.Get() @@ -192,7 +225,7 @@ func (o *Service) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *Service) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *Service) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -208,8 +241,8 @@ func (o *Service) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachine and assigns it to the VirtualMachine field. -func (o *Service) SetVirtualMachine(v VirtualMachine) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachine and assigns it to the VirtualMachine field. +func (o *Service) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine.Set(&v) } @@ -527,6 +560,9 @@ func (o Service) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() @@ -607,6 +643,7 @@ func (o *Service) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "device") delete(additionalProperties, "virtual_machine") diff --git a/model_service_protocol.go b/model_service_protocol.go index bdd307844..5941f158d 100644 --- a/model_service_protocol.go +++ b/model_service_protocol.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_protocol_label.go b/model_service_protocol_label.go index b210b80a3..781d54e99 100644 --- a/model_service_protocol_label.go +++ b/model_service_protocol_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_service_request.go b/model_service_request.go index 9b3bc7f2b..5799d50fb 100644 --- a/model_service_request.go +++ b/model_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &ServiceRequest{} // ServiceRequest Adds support for custom fields and tags. type ServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol *PatchedWritableServiceRequestProtocol `json:"protocol,omitempty"` Ports []int32 `json:"ports"` @@ -55,9 +55,9 @@ func NewServiceRequestWithDefaults() *ServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetDevice() DeviceRequest { +func (o *ServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -66,7 +66,7 @@ func (o *ServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *ServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *ServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *ServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *ServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -98,9 +98,9 @@ func (o *ServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *ServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -109,7 +109,7 @@ func (o *ServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *ServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *ServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *ServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *ServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *ServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_service_template.go b/model_service_template.go index 9d8086877..cf12f327f 100644 --- a/model_service_template.go +++ b/model_service_template.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &ServiceTemplate{} type ServiceTemplate struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Protocol *ServiceProtocol `json:"protocol,omitempty"` @@ -110,6 +111,38 @@ func (o *ServiceTemplate) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *ServiceTemplate) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *ServiceTemplate) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *ServiceTemplate) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *ServiceTemplate) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *ServiceTemplate) GetDisplay() string { if o == nil { @@ -406,6 +439,9 @@ func (o ServiceTemplate) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Protocol) { @@ -477,6 +513,7 @@ func (o *ServiceTemplate) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "protocol") diff --git a/model_service_template_request.go b/model_service_template_request.go index 39275e46c..adab35c9b 100644 --- a/model_service_template_request.go +++ b/model_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site.go b/model_site.go index 1e847b294..ba7627366 100644 --- a/model_site.go +++ b/model_site.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Site type satisfies the MappedNullable interface at compile time @@ -20,13 +21,41 @@ var _ MappedNullable = &Site{} // Site Adds support for custom fields and tags. type Site struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatus `json:"status,omitempty"` + Region NullableBriefRegion `json:"region,omitempty"` + Group NullableBriefSiteGroup `json:"group,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` + // Physical location of the building + PhysicalAddress *string `json:"physical_address,omitempty"` + // If different from the physical address + ShippingAddress *string `json:"shipping_address,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []ASN `json:"asns,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + RackCount int64 `json:"rack_count"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +65,17 @@ type _Site Site // 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 NewSite(id int32, url string, display string, name string, slug string) *Site { +func NewSite(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, rackCount int64) *Site { this := Site{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + this.RackCount = rackCount return &this } @@ -102,6 +135,38 @@ func (o *Site) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Site) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Site) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Site) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Site) GetDisplay() string { if o == nil { @@ -174,6 +239,242 @@ func (o *Site) SetSlug(v string) { o.Slug = v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *Site) GetStatus() LocationStatus { + if o == nil || IsNil(o.Status) { + var ret LocationStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetStatusOk() (*LocationStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *Site) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatus and assigns it to the Status field. +func (o *Site) SetStatus(v LocationStatus) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetRegion() BriefRegion { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegion + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetRegionOk() (*BriefRegion, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *Site) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegion and assigns it to the Region field. +func (o *Site) SetRegion(v BriefRegion) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *Site) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *Site) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetGroup() BriefSiteGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetGroupOk() (*BriefSiteGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Site) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroup and assigns it to the Group field. +func (o *Site) SetGroup(v BriefSiteGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Site) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Site) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Site) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Site) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Site) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Site) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *Site) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *Site) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *Site) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *Site) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +func (o *Site) SetTimeZone(v string) { + o.TimeZone.Set(&v) +} + +// SetTimeZoneNil sets the value for TimeZone to be an explicit nil +func (o *Site) SetTimeZoneNil() { + o.TimeZone.Set(nil) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *Site) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Site) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,6 +507,512 @@ func (o *Site) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *Site) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *Site) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *Site) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *Site) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *Site) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *Site) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *Site) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *Site) SetLatitude(v float64) { + o.Latitude.Set(&v) +} + +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *Site) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *Site) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Site) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *Site) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *Site) SetLongitude(v float64) { + o.Longitude.Set(&v) +} + +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *Site) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *Site) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Site) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Site) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Site) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *Site) GetAsns() []ASN { + if o == nil || IsNil(o.Asns) { + var ret []ASN + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetAsnsOk() ([]ASN, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *Site) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []ASN and assigns it to the Asns field. +func (o *Site) SetAsns(v []ASN) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Site) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Site) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Site) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Site) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Site) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Site) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Site) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Site) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Site) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Site) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Site) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Site) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Site) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Site) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Site) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Site) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Site) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Site) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Site) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetRackCount returns the RackCount field value +func (o *Site) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *Site) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *Site) SetRackCount(v int64) { + o.RackCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Site) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Site) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *Site) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. +func (o *Site) GetVlanCount() int64 { + if o == nil || IsNil(o.VlanCount) { + var ret int64 + return ret + } + return *o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Site) GetVlanCountOk() (*int64, bool) { + if o == nil || IsNil(o.VlanCount) { + return nil, false + } + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *Site) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. +func (o *Site) SetVlanCount(v int64) { + o.VlanCount = &v +} + func (o Site) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -218,12 +1025,73 @@ func (o Site) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + toSerialize["rack_count"] = o.RackCount + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -242,6 +1110,10 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", + "circuit_count", + "rack_count", } allProperties := make(map[string]interface{}) @@ -273,10 +1145,33 @@ func (o *Site) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") o.AdditionalProperties = additionalProperties } diff --git a/model_site_group.go b/model_site_group.go index 36320a38d..1c1b58cc5 100644 --- a/model_site_group.go +++ b/model_site_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &SiteGroup{} type SiteGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -113,6 +114,38 @@ func (o *SiteGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *SiteGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *SiteGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *SiteGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *SiteGroup) GetDisplay() string { if o == nil { @@ -436,6 +469,9 @@ func (o SiteGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -508,6 +544,7 @@ func (o *SiteGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_site_group_request.go b/model_site_group_request.go index 1cd1ab1c5..1e0691840 100644 --- a/model_site_group_request.go +++ b/model_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_site_request.go b/model_site_request.go index 60b8fd8dc..2a424c173 100644 --- a/model_site_request.go +++ b/model_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,9 +21,28 @@ var _ MappedNullable = &SiteRequest{} // SiteRequest Adds support for custom fields and tags. type SiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Local facility ID or description + Facility *string `json:"facility,omitempty"` + TimeZone NullableString `json:"time_zone,omitempty"` + Description *string `json:"description,omitempty"` + // Physical location of the building + PhysicalAddress *string `json:"physical_address,omitempty"` + // If different from the physical address + ShippingAddress *string `json:"shipping_address,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Latitude NullableFloat64 `json:"latitude,omitempty"` + // GPS coordinate in decimal format (xx.yyyyyy) + Longitude NullableFloat64 `json:"longitude,omitempty"` + Comments *string `json:"comments,omitempty"` + Asns []int32 `json:"asns,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -96,6 +115,242 @@ func (o *SiteRequest) SetSlug(v string) { o.Slug = v } +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *SiteRequest) GetStatus() LocationStatusValue { + if o == nil || IsNil(o.Status) { + var ret LocationStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetStatusOk() (*LocationStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *SiteRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *SiteRequest) SetStatus(v LocationStatusValue) { + o.Status = &v +} + +// GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetRegion() BriefRegionRequest { + if o == nil || IsNil(o.Region.Get()) { + var ret BriefRegionRequest + return ret + } + return *o.Region.Get() +} + +// GetRegionOk returns a tuple with the Region field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { + if o == nil { + return nil, false + } + return o.Region.Get(), o.Region.IsSet() +} + +// HasRegion returns a boolean if a field has been set. +func (o *SiteRequest) HasRegion() bool { + if o != nil && o.Region.IsSet() { + return true + } + + return false +} + +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *SiteRequest) SetRegion(v BriefRegionRequest) { + o.Region.Set(&v) +} + +// SetRegionNil sets the value for Region to be an explicit nil +func (o *SiteRequest) SetRegionNil() { + o.Region.Set(nil) +} + +// UnsetRegion ensures that no value is present for Region, not even an explicit nil +func (o *SiteRequest) UnsetRegion() { + o.Region.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetGroup() BriefSiteGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefSiteGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *SiteRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *SiteRequest) SetGroup(v BriefSiteGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *SiteRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *SiteRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *SiteRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *SiteRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *SiteRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *SiteRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetFacility returns the Facility field value if set, zero value otherwise. +func (o *SiteRequest) GetFacility() string { + if o == nil || IsNil(o.Facility) { + var ret string + return ret + } + return *o.Facility +} + +// GetFacilityOk returns a tuple with the Facility field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetFacilityOk() (*string, bool) { + if o == nil || IsNil(o.Facility) { + return nil, false + } + return o.Facility, true +} + +// HasFacility returns a boolean if a field has been set. +func (o *SiteRequest) HasFacility() bool { + if o != nil && !IsNil(o.Facility) { + return true + } + + return false +} + +// SetFacility gets a reference to the given string and assigns it to the Facility field. +func (o *SiteRequest) SetFacility(v string) { + o.Facility = &v +} + +// GetTimeZone returns the TimeZone field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetTimeZone() string { + if o == nil || IsNil(o.TimeZone.Get()) { + var ret string + return ret + } + return *o.TimeZone.Get() +} + +// GetTimeZoneOk returns a tuple with the TimeZone field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetTimeZoneOk() (*string, bool) { + if o == nil { + return nil, false + } + return o.TimeZone.Get(), o.TimeZone.IsSet() +} + +// HasTimeZone returns a boolean if a field has been set. +func (o *SiteRequest) HasTimeZone() bool { + if o != nil && o.TimeZone.IsSet() { + return true + } + + return false +} + +// SetTimeZone gets a reference to the given NullableString and assigns it to the TimeZone field. +func (o *SiteRequest) SetTimeZone(v string) { + o.TimeZone.Set(&v) +} + +// SetTimeZoneNil sets the value for TimeZone to be an explicit nil +func (o *SiteRequest) SetTimeZoneNil() { + o.TimeZone.Set(nil) +} + +// UnsetTimeZone ensures that no value is present for TimeZone, not even an explicit nil +func (o *SiteRequest) UnsetTimeZone() { + o.TimeZone.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *SiteRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +383,284 @@ func (o *SiteRequest) SetDescription(v string) { o.Description = &v } +// GetPhysicalAddress returns the PhysicalAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetPhysicalAddress() string { + if o == nil || IsNil(o.PhysicalAddress) { + var ret string + return ret + } + return *o.PhysicalAddress +} + +// GetPhysicalAddressOk returns a tuple with the PhysicalAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetPhysicalAddressOk() (*string, bool) { + if o == nil || IsNil(o.PhysicalAddress) { + return nil, false + } + return o.PhysicalAddress, true +} + +// HasPhysicalAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasPhysicalAddress() bool { + if o != nil && !IsNil(o.PhysicalAddress) { + return true + } + + return false +} + +// SetPhysicalAddress gets a reference to the given string and assigns it to the PhysicalAddress field. +func (o *SiteRequest) SetPhysicalAddress(v string) { + o.PhysicalAddress = &v +} + +// GetShippingAddress returns the ShippingAddress field value if set, zero value otherwise. +func (o *SiteRequest) GetShippingAddress() string { + if o == nil || IsNil(o.ShippingAddress) { + var ret string + return ret + } + return *o.ShippingAddress +} + +// GetShippingAddressOk returns a tuple with the ShippingAddress field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetShippingAddressOk() (*string, bool) { + if o == nil || IsNil(o.ShippingAddress) { + return nil, false + } + return o.ShippingAddress, true +} + +// HasShippingAddress returns a boolean if a field has been set. +func (o *SiteRequest) HasShippingAddress() bool { + if o != nil && !IsNil(o.ShippingAddress) { + return true + } + + return false +} + +// SetShippingAddress gets a reference to the given string and assigns it to the ShippingAddress field. +func (o *SiteRequest) SetShippingAddress(v string) { + o.ShippingAddress = &v +} + +// GetLatitude returns the Latitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetLatitude() float64 { + if o == nil || IsNil(o.Latitude.Get()) { + var ret float64 + return ret + } + return *o.Latitude.Get() +} + +// GetLatitudeOk returns a tuple with the Latitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetLatitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Latitude.Get(), o.Latitude.IsSet() +} + +// HasLatitude returns a boolean if a field has been set. +func (o *SiteRequest) HasLatitude() bool { + if o != nil && o.Latitude.IsSet() { + return true + } + + return false +} + +// SetLatitude gets a reference to the given NullableFloat64 and assigns it to the Latitude field. +func (o *SiteRequest) SetLatitude(v float64) { + o.Latitude.Set(&v) +} + +// SetLatitudeNil sets the value for Latitude to be an explicit nil +func (o *SiteRequest) SetLatitudeNil() { + o.Latitude.Set(nil) +} + +// UnsetLatitude ensures that no value is present for Latitude, not even an explicit nil +func (o *SiteRequest) UnsetLatitude() { + o.Latitude.Unset() +} + +// GetLongitude returns the Longitude field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *SiteRequest) GetLongitude() float64 { + if o == nil || IsNil(o.Longitude.Get()) { + var ret float64 + return ret + } + return *o.Longitude.Get() +} + +// GetLongitudeOk returns a tuple with the Longitude field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *SiteRequest) GetLongitudeOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Longitude.Get(), o.Longitude.IsSet() +} + +// HasLongitude returns a boolean if a field has been set. +func (o *SiteRequest) HasLongitude() bool { + if o != nil && o.Longitude.IsSet() { + return true + } + + return false +} + +// SetLongitude gets a reference to the given NullableFloat64 and assigns it to the Longitude field. +func (o *SiteRequest) SetLongitude(v float64) { + o.Longitude.Set(&v) +} + +// SetLongitudeNil sets the value for Longitude to be an explicit nil +func (o *SiteRequest) SetLongitudeNil() { + o.Longitude.Set(nil) +} + +// UnsetLongitude ensures that no value is present for Longitude, not even an explicit nil +func (o *SiteRequest) UnsetLongitude() { + o.Longitude.Unset() +} + +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *SiteRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *SiteRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *SiteRequest) SetComments(v string) { + o.Comments = &v +} + +// GetAsns returns the Asns field value if set, zero value otherwise. +func (o *SiteRequest) GetAsns() []int32 { + if o == nil || IsNil(o.Asns) { + var ret []int32 + return ret + } + return o.Asns +} + +// GetAsnsOk returns a tuple with the Asns field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetAsnsOk() ([]int32, bool) { + if o == nil || IsNil(o.Asns) { + return nil, false + } + return o.Asns, true +} + +// HasAsns returns a boolean if a field has been set. +func (o *SiteRequest) HasAsns() bool { + if o != nil && !IsNil(o.Asns) { + return true + } + + return false +} + +// SetAsns gets a reference to the given []int32 and assigns it to the Asns field. +func (o *SiteRequest) SetAsns(v []int32) { + o.Asns = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *SiteRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *SiteRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *SiteRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *SiteRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *SiteRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *SiteRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *SiteRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o SiteRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -140,9 +673,51 @@ func (o SiteRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Region.IsSet() { + toSerialize["region"] = o.Region.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Facility) { + toSerialize["facility"] = o.Facility + } + if o.TimeZone.IsSet() { + toSerialize["time_zone"] = o.TimeZone.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.PhysicalAddress) { + toSerialize["physical_address"] = o.PhysicalAddress + } + if !IsNil(o.ShippingAddress) { + toSerialize["shipping_address"] = o.ShippingAddress + } + if o.Latitude.IsSet() { + toSerialize["latitude"] = o.Latitude.Get() + } + if o.Longitude.IsSet() { + toSerialize["longitude"] = o.Longitude.Get() + } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Asns) { + toSerialize["asns"] = o.Asns + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -189,7 +764,21 @@ func (o *SiteRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "status") + delete(additionalProperties, "region") + delete(additionalProperties, "group") + delete(additionalProperties, "tenant") + delete(additionalProperties, "facility") + delete(additionalProperties, "time_zone") delete(additionalProperties, "description") + delete(additionalProperties, "physical_address") + delete(additionalProperties, "shipping_address") + delete(additionalProperties, "latitude") + delete(additionalProperties, "longitude") + delete(additionalProperties, "comments") + delete(additionalProperties, "asns") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_subscription.go b/model_subscription.go index 37c4e6a11..c921b931b 100644 --- a/model_subscription.go +++ b/model_subscription.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_subscription_request.go b/model_subscription_request.go index ba6de2e10..b2d59dfce 100644 --- a/model_subscription_request.go +++ b/model_subscription_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tag.go b/model_tag.go index 976b2af1a..b4e327b15 100644 --- a/model_tag.go +++ b/model_tag.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Tag{} type Tag struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -110,6 +111,38 @@ func (o *Tag) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Tag) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tag) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Tag) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Tag) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Tag) GetDisplay() string { if o == nil { @@ -366,6 +399,9 @@ func (o Tag) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -433,6 +469,7 @@ func (o *Tag) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tag_request.go b/model_tag_request.go index 3e2e1c595..608228967 100644 --- a/model_tag_request.go +++ b/model_tag_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant.go b/model_tenant.go index 0c4232d93..14cc6b978 100644 --- a/model_tenant.go +++ b/model_tenant.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Tenant type satisfies the MappedNullable interface at compile time @@ -20,12 +21,29 @@ var _ MappedNullable = &Tenant{} // Tenant Adds support for custom fields and tags. type Tenant struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableBriefTenantGroup `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CircuitCount int64 `json:"circuit_count"` + DeviceCount *int64 `json:"device_count,omitempty"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` + RackCount int64 `json:"rack_count"` + SiteCount int64 `json:"site_count"` + VirtualmachineCount *int64 `json:"virtualmachine_count,omitempty"` + VlanCount *int64 `json:"vlan_count,omitempty"` + VrfCount int64 `json:"vrf_count"` + ClusterCount int64 `json:"cluster_count"` AdditionalProperties map[string]interface{} } @@ -35,13 +53,21 @@ type _Tenant Tenant // 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 NewTenant(id int32, url string, display string, name string, slug string) *Tenant { +func NewTenant(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, circuitCount int64, ipaddressCount int64, rackCount int64, siteCount int64, vrfCount int64, clusterCount int64) *Tenant { this := Tenant{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated + this.CircuitCount = circuitCount + this.IpaddressCount = ipaddressCount + this.RackCount = rackCount + this.SiteCount = siteCount + this.VrfCount = vrfCount + this.ClusterCount = clusterCount return &this } @@ -101,6 +127,38 @@ func (o *Tenant) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Tenant) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Tenant) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Tenant) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Tenant) GetDisplay() string { if o == nil { @@ -173,6 +231,49 @@ func (o *Tenant) SetSlug(v string) { o.Slug = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tenant) GetGroup() BriefTenantGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetGroupOk() (*BriefTenantGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tenant) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroup and assigns it to the Group field. +func (o *Tenant) SetGroup(v BriefTenantGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tenant) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tenant) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tenant) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -205,6 +306,426 @@ func (o *Tenant) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tenant) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tenant) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tenant) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tenant) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Tenant) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Tenant) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tenant) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Tenant) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Tenant) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tenant) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Tenant) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tenant) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tenant) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Tenant) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetCircuitCount returns the CircuitCount field value +func (o *Tenant) GetCircuitCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.CircuitCount +} + +// GetCircuitCountOk returns a tuple with the CircuitCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetCircuitCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.CircuitCount, true +} + +// SetCircuitCount sets field value +func (o *Tenant) SetCircuitCount(v int64) { + o.CircuitCount = v +} + +// GetDeviceCount returns the DeviceCount field value if set, zero value otherwise. +func (o *Tenant) GetDeviceCount() int64 { + if o == nil || IsNil(o.DeviceCount) { + var ret int64 + return ret + } + return *o.DeviceCount +} + +// GetDeviceCountOk returns a tuple with the DeviceCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetDeviceCountOk() (*int64, bool) { + if o == nil || IsNil(o.DeviceCount) { + return nil, false + } + return o.DeviceCount, true +} + +// HasDeviceCount returns a boolean if a field has been set. +func (o *Tenant) HasDeviceCount() bool { + if o != nil && !IsNil(o.DeviceCount) { + return true + } + + return false +} + +// SetDeviceCount gets a reference to the given int64 and assigns it to the DeviceCount field. +func (o *Tenant) SetDeviceCount(v int64) { + o.DeviceCount = &v +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *Tenant) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *Tenant) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *Tenant) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *Tenant) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *Tenant) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + +// GetRackCount returns the RackCount field value +func (o *Tenant) GetRackCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.RackCount +} + +// GetRackCountOk returns a tuple with the RackCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetRackCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.RackCount, true +} + +// SetRackCount sets field value +func (o *Tenant) SetRackCount(v int64) { + o.RackCount = v +} + +// GetSiteCount returns the SiteCount field value +func (o *Tenant) GetSiteCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.SiteCount +} + +// GetSiteCountOk returns a tuple with the SiteCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetSiteCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.SiteCount, true +} + +// SetSiteCount sets field value +func (o *Tenant) SetSiteCount(v int64) { + o.SiteCount = v +} + +// GetVirtualmachineCount returns the VirtualmachineCount field value if set, zero value otherwise. +func (o *Tenant) GetVirtualmachineCount() int64 { + if o == nil || IsNil(o.VirtualmachineCount) { + var ret int64 + return ret + } + return *o.VirtualmachineCount +} + +// GetVirtualmachineCountOk returns a tuple with the VirtualmachineCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetVirtualmachineCountOk() (*int64, bool) { + if o == nil || IsNil(o.VirtualmachineCount) { + return nil, false + } + return o.VirtualmachineCount, true +} + +// HasVirtualmachineCount returns a boolean if a field has been set. +func (o *Tenant) HasVirtualmachineCount() bool { + if o != nil && !IsNil(o.VirtualmachineCount) { + return true + } + + return false +} + +// SetVirtualmachineCount gets a reference to the given int64 and assigns it to the VirtualmachineCount field. +func (o *Tenant) SetVirtualmachineCount(v int64) { + o.VirtualmachineCount = &v +} + +// GetVlanCount returns the VlanCount field value if set, zero value otherwise. +func (o *Tenant) GetVlanCount() int64 { + if o == nil || IsNil(o.VlanCount) { + var ret int64 + return ret + } + return *o.VlanCount +} + +// GetVlanCountOk returns a tuple with the VlanCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tenant) GetVlanCountOk() (*int64, bool) { + if o == nil || IsNil(o.VlanCount) { + return nil, false + } + return o.VlanCount, true +} + +// HasVlanCount returns a boolean if a field has been set. +func (o *Tenant) HasVlanCount() bool { + if o != nil && !IsNil(o.VlanCount) { + return true + } + + return false +} + +// SetVlanCount gets a reference to the given int64 and assigns it to the VlanCount field. +func (o *Tenant) SetVlanCount(v int64) { + o.VlanCount = &v +} + +// GetVrfCount returns the VrfCount field value +func (o *Tenant) GetVrfCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.VrfCount +} + +// GetVrfCountOk returns a tuple with the VrfCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetVrfCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.VrfCount, true +} + +// SetVrfCount sets field value +func (o *Tenant) SetVrfCount(v int64) { + o.VrfCount = v +} + +// GetClusterCount returns the ClusterCount field value +func (o *Tenant) GetClusterCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.ClusterCount +} + +// GetClusterCountOk returns a tuple with the ClusterCount field value +// and a boolean to check if the value has been set. +func (o *Tenant) GetClusterCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.ClusterCount, true +} + +// SetClusterCount sets field value +func (o *Tenant) SetClusterCount(v int64) { + o.ClusterCount = v +} + func (o Tenant) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -217,12 +738,47 @@ func (o Tenant) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["circuit_count"] = o.CircuitCount + if !IsNil(o.DeviceCount) { + toSerialize["device_count"] = o.DeviceCount + } + toSerialize["ipaddress_count"] = o.IpaddressCount + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } + toSerialize["rack_count"] = o.RackCount + toSerialize["site_count"] = o.SiteCount + if !IsNil(o.VirtualmachineCount) { + toSerialize["virtualmachine_count"] = o.VirtualmachineCount + } + if !IsNil(o.VlanCount) { + toSerialize["vlan_count"] = o.VlanCount + } + toSerialize["vrf_count"] = o.VrfCount + toSerialize["cluster_count"] = o.ClusterCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -241,6 +797,14 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", + "circuit_count", + "ipaddress_count", + "rack_count", + "site_count", + "vrf_count", + "cluster_count", } allProperties := make(map[string]interface{}) @@ -272,10 +836,27 @@ func (o *Tenant) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "circuit_count") + delete(additionalProperties, "device_count") + delete(additionalProperties, "ipaddress_count") + delete(additionalProperties, "prefix_count") + delete(additionalProperties, "rack_count") + delete(additionalProperties, "site_count") + delete(additionalProperties, "virtualmachine_count") + delete(additionalProperties, "vlan_count") + delete(additionalProperties, "vrf_count") + delete(additionalProperties, "cluster_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tenant_group.go b/model_tenant_group.go index ef3aab867..cf8217b2c 100644 --- a/model_tenant_group.go +++ b/model_tenant_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &TenantGroup{} type TenantGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -113,6 +114,38 @@ func (o *TenantGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TenantGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TenantGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TenantGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TenantGroup) GetDisplay() string { if o == nil { @@ -436,6 +469,9 @@ func (o TenantGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -508,6 +544,7 @@ func (o *TenantGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tenant_group_request.go b/model_tenant_group_request.go index 70e0f8dfc..786fd90a4 100644 --- a/model_tenant_group_request.go +++ b/model_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tenant_request.go b/model_tenant_request.go index 5b7a6cb22..71c5419e7 100644 --- a/model_tenant_request.go +++ b/model_tenant_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,13 @@ var _ MappedNullable = &TenantRequest{} // TenantRequest Adds support for custom fields and tags. type TenantRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Group NullableBriefTenantGroupRequest `json:"group,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -95,6 +99,49 @@ func (o *TenantRequest) SetSlug(v string) { o.Slug = v } +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TenantRequest) GetGroup() BriefTenantGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTenantGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TenantRequest) GetGroupOk() (*BriefTenantGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TenantRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTenantGroupRequest and assigns it to the Group field. +func (o *TenantRequest) SetGroup(v BriefTenantGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TenantRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TenantRequest) UnsetGroup() { + o.Group.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TenantRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -127,6 +174,102 @@ func (o *TenantRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TenantRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TenantRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TenantRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TenantRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *TenantRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *TenantRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TenantRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TenantRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *TenantRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *TenantRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TenantRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -139,9 +282,21 @@ func (o TenantRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -188,7 +343,11 @@ func (o *TenantRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "group") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_termination.go b/model_termination.go index 8c028ef17..ba1cece36 100644 --- a/model_termination.go +++ b/model_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_termination_1.go b/model_termination_1.go index c68e40d67..bdaa43fd8 100644 --- a/model_termination_1.go +++ b/model_termination_1.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token.go b/model_token.go index 017655fd0..07db5f919 100644 --- a/model_token.go +++ b/model_token.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,15 @@ var _ MappedNullable = &Token{} // Token Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type Token struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -41,7 +42,7 @@ type _Token Token // 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 NewToken(id int32, url string, display string, user User, created time.Time) *Token { +func NewToken(id int32, url string, display string, user BriefUser, created time.Time) *Token { this := Token{} this.Id = id this.Url = url @@ -107,6 +108,38 @@ func (o *Token) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Token) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Token) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Token) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Token) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Token) GetDisplay() string { if o == nil { @@ -132,9 +165,9 @@ func (o *Token) SetDisplay(v string) { } // GetUser returns the User field value -func (o *Token) GetUser() User { +func (o *Token) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -143,7 +176,7 @@ func (o *Token) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *Token) GetUserOk() (*User, bool) { +func (o *Token) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -151,7 +184,7 @@ func (o *Token) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *Token) SetUser(v User) { +func (o *Token) SetUser(v BriefUser) { o.User = v } @@ -373,6 +406,9 @@ func (o Token) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -440,6 +476,7 @@ func (o *Token) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision.go b/model_token_provision.go index d2058fd4a..387a70efe 100644 --- a/model_token_provision.go +++ b/model_token_provision.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,14 +21,15 @@ var _ MappedNullable = &TokenProvision{} // TokenProvision Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenProvision struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - User User `json:"user"` - Created time.Time `json:"created"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed time.Time `json:"last_used"` - Key string `json:"key"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + User BriefUser `json:"user"` + Created time.Time `json:"created"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed time.Time `json:"last_used"` + Key string `json:"key"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -41,7 +42,7 @@ type _TokenProvision TokenProvision // 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 NewTokenProvision(id int32, url string, display string, user User, created time.Time, lastUsed time.Time, key string) *TokenProvision { +func NewTokenProvision(id int32, url string, display string, user BriefUser, created time.Time, lastUsed time.Time, key string) *TokenProvision { this := TokenProvision{} this.Id = id this.Url = url @@ -109,6 +110,38 @@ func (o *TokenProvision) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TokenProvision) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TokenProvision) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TokenProvision) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TokenProvision) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TokenProvision) GetDisplay() string { if o == nil { @@ -134,9 +167,9 @@ func (o *TokenProvision) SetDisplay(v string) { } // GetUser returns the User field value -func (o *TokenProvision) GetUser() User { +func (o *TokenProvision) GetUser() BriefUser { if o == nil { - var ret User + var ret BriefUser return ret } @@ -145,7 +178,7 @@ func (o *TokenProvision) GetUser() User { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenProvision) GetUserOk() (*User, bool) { +func (o *TokenProvision) GetUserOk() (*BriefUser, bool) { if o == nil { return nil, false } @@ -153,7 +186,7 @@ func (o *TokenProvision) GetUserOk() (*User, bool) { } // SetUser sets field value -func (o *TokenProvision) SetUser(v User) { +func (o *TokenProvision) SetUser(v BriefUser) { o.User = v } @@ -348,6 +381,9 @@ func (o TokenProvision) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["user"] = o.User toSerialize["created"] = o.Created @@ -413,6 +449,7 @@ func (o *TokenProvision) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "user") delete(additionalProperties, "created") diff --git a/model_token_provision_request.go b/model_token_provision_request.go index f880694d4..6207c955b 100644 --- a/model_token_provision_request.go +++ b/model_token_provision_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_token_request.go b/model_token_request.go index a472e9650..a409fd496 100644 --- a/model_token_request.go +++ b/model_token_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,10 +21,10 @@ var _ MappedNullable = &TokenRequest{} // TokenRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type TokenRequest struct { - User UserRequest `json:"user"` - Expires NullableTime `json:"expires,omitempty"` - LastUsed NullableTime `json:"last_used,omitempty"` - Key *string `json:"key,omitempty"` + User BriefUserRequest `json:"user"` + Expires NullableTime `json:"expires,omitempty"` + LastUsed NullableTime `json:"last_used,omitempty"` + Key *string `json:"key,omitempty"` // Permit create/update/delete operations using this key WriteEnabled *bool `json:"write_enabled,omitempty"` Description *string `json:"description,omitempty"` @@ -37,7 +37,7 @@ type _TokenRequest TokenRequest // 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 NewTokenRequest(user UserRequest) *TokenRequest { +func NewTokenRequest(user BriefUserRequest) *TokenRequest { this := TokenRequest{} this.User = user return &this @@ -52,9 +52,9 @@ func NewTokenRequestWithDefaults() *TokenRequest { } // GetUser returns the User field value -func (o *TokenRequest) GetUser() UserRequest { +func (o *TokenRequest) GetUser() BriefUserRequest { if o == nil { - var ret UserRequest + var ret BriefUserRequest return ret } @@ -63,7 +63,7 @@ func (o *TokenRequest) GetUser() UserRequest { // GetUserOk returns a tuple with the User field value // and a boolean to check if the value has been set. -func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { +func (o *TokenRequest) GetUserOk() (*BriefUserRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *TokenRequest) GetUserOk() (*UserRequest, bool) { } // SetUser sets field value -func (o *TokenRequest) SetUser(v UserRequest) { +func (o *TokenRequest) SetUser(v BriefUserRequest) { o.User = v } diff --git a/model_tunnel.go b/model_tunnel.go index b947b58fc..aa951249e 100644 --- a/model_tunnel.go +++ b/model_tunnel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the Tunnel type satisfies the MappedNullable interface at compile time @@ -20,11 +21,24 @@ var _ MappedNullable = &Tunnel{} // Tunnel Adds support for custom fields and tags. type Tunnel struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Status TunnelStatus `json:"status"` + Group NullableBriefTunnelGroup `json:"group,omitempty"` + Encapsulation TunnelEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfile `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + TerminationsCount int64 `json:"terminations_count"` AdditionalProperties map[string]interface{} } @@ -34,12 +48,17 @@ type _Tunnel Tunnel // 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 NewTunnel(id int32, url string, display string, name string) *Tunnel { +func NewTunnel(id int32, url string, display string, name string, status TunnelStatus, encapsulation TunnelEncapsulation, created NullableTime, lastUpdated NullableTime, terminationsCount int64) *Tunnel { this := Tunnel{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Status = status + this.Encapsulation = encapsulation + this.Created = created + this.LastUpdated = lastUpdated + this.TerminationsCount = terminationsCount return &this } @@ -99,6 +118,38 @@ func (o *Tunnel) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Tunnel) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Tunnel) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Tunnel) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Tunnel) GetDisplay() string { if o == nil { @@ -147,6 +198,226 @@ func (o *Tunnel) SetName(v string) { o.Name = v } +// GetStatus returns the Status field value +func (o *Tunnel) GetStatus() TunnelStatus { + if o == nil { + var ret TunnelStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetStatusOk() (*TunnelStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *Tunnel) SetStatus(v TunnelStatus) { + o.Status = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetGroup() BriefTunnelGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetGroupOk() (*BriefTunnelGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *Tunnel) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroup and assigns it to the Group field. +func (o *Tunnel) SetGroup(v BriefTunnelGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *Tunnel) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *Tunnel) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *Tunnel) GetEncapsulation() TunnelEncapsulation { + if o == nil { + var ret TunnelEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetEncapsulationOk() (*TunnelEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *Tunnel) SetEncapsulation(v TunnelEncapsulation) { + o.Encapsulation = v +} + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetIpsecProfile() BriefIPSecProfile { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfile + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetIpsecProfileOk() (*BriefIPSecProfile, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *Tunnel) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfile and assigns it to the IpsecProfile field. +func (o *Tunnel) SetIpsecProfile(v BriefIPSecProfile) { + o.IpsecProfile.Set(&v) +} + +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *Tunnel) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *Tunnel) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *Tunnel) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *Tunnel) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *Tunnel) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *Tunnel) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *Tunnel) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *Tunnel) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *Tunnel) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} + +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *Tunnel) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *Tunnel) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *Tunnel) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -179,6 +450,178 @@ func (o *Tunnel) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *Tunnel) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *Tunnel) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *Tunnel) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *Tunnel) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *Tunnel) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *Tunnel) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *Tunnel) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Tunnel) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *Tunnel) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *Tunnel) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tunnel) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *Tunnel) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *Tunnel) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *Tunnel) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *Tunnel) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetTerminationsCount returns the TerminationsCount field value +func (o *Tunnel) GetTerminationsCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.TerminationsCount +} + +// GetTerminationsCountOk returns a tuple with the TerminationsCount field value +// and a boolean to check if the value has been set. +func (o *Tunnel) GetTerminationsCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.TerminationsCount, true +} + +// SetTerminationsCount sets field value +func (o *Tunnel) SetTerminationsCount(v int64) { + o.TerminationsCount = v +} + func (o Tunnel) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -191,11 +634,40 @@ func (o Tunnel) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["terminations_count"] = o.TerminationsCount for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -213,6 +685,11 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "status", + "encapsulation", + "created", + "last_updated", + "terminations_count", } allProperties := make(map[string]interface{}) @@ -244,9 +721,22 @@ func (o *Tunnel) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "terminations_count") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_encapsulation.go b/model_tunnel_encapsulation.go index 8bd08ed5e..323e3c5da 100644 --- a/model_tunnel_encapsulation.go +++ b/model_tunnel_encapsulation.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_encapsulation_label.go b/model_tunnel_encapsulation_label.go index 09e344d5c..a196159f7 100644 --- a/model_tunnel_encapsulation_label.go +++ b/model_tunnel_encapsulation_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_group.go b/model_tunnel_group.go index c4ba9d081..e242ba2fa 100644 --- a/model_tunnel_group.go +++ b/model_tunnel_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &TunnelGroup{} type TunnelGroup struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Slug string `json:"slug"` @@ -110,6 +111,38 @@ func (o *TunnelGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TunnelGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TunnelGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TunnelGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TunnelGroup) GetDisplay() string { if o == nil { @@ -366,6 +399,9 @@ func (o TunnelGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -433,6 +469,7 @@ func (o *TunnelGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") diff --git a/model_tunnel_group_request.go b/model_tunnel_group_request.go index f19727186..a5ee51b7c 100644 --- a/model_tunnel_group_request.go +++ b/model_tunnel_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_request.go b/model_tunnel_request.go index c6e7ce560..18bc7bca3 100644 --- a/model_tunnel_request.go +++ b/model_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,17 @@ var _ MappedNullable = &TunnelRequest{} // TunnelRequest Adds support for custom fields and tags. type TunnelRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Name string `json:"name"` + Status PatchedWritableTunnelRequestStatus `json:"status"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` + Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + TunnelId NullableInt64 `json:"tunnel_id,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +40,11 @@ type _TunnelRequest TunnelRequest // 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 NewTunnelRequest(name string) *TunnelRequest { +func NewTunnelRequest(name string, status PatchedWritableTunnelRequestStatus, encapsulation PatchedWritableTunnelRequestEncapsulation) *TunnelRequest { this := TunnelRequest{} this.Name = name + this.Status = status + this.Encapsulation = encapsulation return &this } @@ -69,6 +80,226 @@ func (o *TunnelRequest) SetName(v string) { o.Name = v } +// GetStatus returns the Status field value +func (o *TunnelRequest) GetStatus() PatchedWritableTunnelRequestStatus { + if o == nil { + var ret PatchedWritableTunnelRequestStatus + return ret + } + + return o.Status +} + +// GetStatusOk returns a tuple with the Status field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetStatusOk() (*PatchedWritableTunnelRequestStatus, bool) { + if o == nil { + return nil, false + } + return &o.Status, true +} + +// SetStatus sets field value +func (o *TunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) { + o.Status = v +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetGroup() BriefTunnelGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefTunnelGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *TunnelRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *TunnelRequest) SetGroup(v BriefTunnelGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *TunnelRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *TunnelRequest) UnsetGroup() { + o.Group.Unset() +} + +// GetEncapsulation returns the Encapsulation field value +func (o *TunnelRequest) GetEncapsulation() PatchedWritableTunnelRequestEncapsulation { + if o == nil { + var ret PatchedWritableTunnelRequestEncapsulation + return ret + } + + return o.Encapsulation +} + +// GetEncapsulationOk returns a tuple with the Encapsulation field value +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetEncapsulationOk() (*PatchedWritableTunnelRequestEncapsulation, bool) { + if o == nil { + return nil, false + } + return &o.Encapsulation, true +} + +// SetEncapsulation sets field value +func (o *TunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestEncapsulation) { + o.Encapsulation = v +} + +// GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { + if o == nil || IsNil(o.IpsecProfile.Get()) { + var ret BriefIPSecProfileRequest + return ret + } + return *o.IpsecProfile.Get() +} + +// GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { + if o == nil { + return nil, false + } + return o.IpsecProfile.Get(), o.IpsecProfile.IsSet() +} + +// HasIpsecProfile returns a boolean if a field has been set. +func (o *TunnelRequest) HasIpsecProfile() bool { + if o != nil && o.IpsecProfile.IsSet() { + return true + } + + return false +} + +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *TunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { + o.IpsecProfile.Set(&v) +} + +// SetIpsecProfileNil sets the value for IpsecProfile to be an explicit nil +func (o *TunnelRequest) SetIpsecProfileNil() { + o.IpsecProfile.Set(nil) +} + +// UnsetIpsecProfile ensures that no value is present for IpsecProfile, not even an explicit nil +func (o *TunnelRequest) UnsetIpsecProfile() { + o.IpsecProfile.Unset() +} + +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *TunnelRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *TunnelRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *TunnelRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *TunnelRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetTunnelId returns the TunnelId field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *TunnelRequest) GetTunnelId() int64 { + if o == nil || IsNil(o.TunnelId.Get()) { + var ret int64 + return ret + } + return *o.TunnelId.Get() +} + +// GetTunnelIdOk returns a tuple with the TunnelId field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *TunnelRequest) GetTunnelIdOk() (*int64, bool) { + if o == nil { + return nil, false + } + return o.TunnelId.Get(), o.TunnelId.IsSet() +} + +// HasTunnelId returns a boolean if a field has been set. +func (o *TunnelRequest) HasTunnelId() bool { + if o != nil && o.TunnelId.IsSet() { + return true + } + + return false +} + +// SetTunnelId gets a reference to the given NullableInt64 and assigns it to the TunnelId field. +func (o *TunnelRequest) SetTunnelId(v int64) { + o.TunnelId.Set(&v) +} + +// SetTunnelIdNil sets the value for TunnelId to be an explicit nil +func (o *TunnelRequest) SetTunnelIdNil() { + o.TunnelId.Set(nil) +} + +// UnsetTunnelId ensures that no value is present for TunnelId, not even an explicit nil +func (o *TunnelRequest) UnsetTunnelId() { + o.TunnelId.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *TunnelRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -101,6 +332,102 @@ func (o *TunnelRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *TunnelRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *TunnelRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *TunnelRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *TunnelRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *TunnelRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *TunnelRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *TunnelRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *TunnelRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *TunnelRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o TunnelRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -112,9 +439,32 @@ func (o TunnelRequest) MarshalJSON() ([]byte, error) { func (o TunnelRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + toSerialize["status"] = o.Status + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } + toSerialize["encapsulation"] = o.Encapsulation + if o.IpsecProfile.IsSet() { + toSerialize["ipsec_profile"] = o.IpsecProfile.Get() + } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if o.TunnelId.IsSet() { + toSerialize["tunnel_id"] = o.TunnelId.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -129,6 +479,8 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "name", + "status", + "encapsulation", } allProperties := make(map[string]interface{}) @@ -159,7 +511,16 @@ func (o *TunnelRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "status") + delete(additionalProperties, "group") + delete(additionalProperties, "encapsulation") + delete(additionalProperties, "ipsec_profile") + delete(additionalProperties, "tenant") + delete(additionalProperties, "tunnel_id") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_tunnel_status.go b/model_tunnel_status.go index 7160b5286..64eaa332e 100644 --- a/model_tunnel_status.go +++ b/model_tunnel_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_status_label.go b/model_tunnel_status_label.go index 063915234..b6a75514b 100644 --- a/model_tunnel_status_label.go +++ b/model_tunnel_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_termination.go b/model_tunnel_termination.go index 014447ce2..93c9955da 100644 --- a/model_tunnel_termination.go +++ b/model_tunnel_termination.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,13 +23,14 @@ var _ MappedNullable = &TunnelTermination{} type TunnelTermination struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` - Tunnel Tunnel `json:"tunnel"` + Tunnel BriefTunnel `json:"tunnel"` Role TunnelTerminationRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` Termination interface{} `json:"termination"` - OutsideIp NullableIPAddress `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddress `json:"outside_ip,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` Created NullableTime `json:"created"` @@ -43,7 +44,7 @@ type _TunnelTermination TunnelTermination // 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 NewTunnelTermination(id int32, url string, display string, tunnel Tunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { +func NewTunnelTermination(id int32, url string, display string, tunnel BriefTunnel, role TunnelTerminationRole, terminationType string, terminationId NullableInt64, termination interface{}, created NullableTime, lastUpdated NullableTime) *TunnelTermination { this := TunnelTermination{} this.Id = id this.Url = url @@ -114,6 +115,38 @@ func (o *TunnelTermination) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *TunnelTermination) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *TunnelTermination) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *TunnelTermination) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *TunnelTermination) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *TunnelTermination) GetDisplay() string { if o == nil { @@ -139,9 +172,9 @@ func (o *TunnelTermination) SetDisplay(v string) { } // GetTunnel returns the Tunnel field value -func (o *TunnelTermination) GetTunnel() Tunnel { +func (o *TunnelTermination) GetTunnel() BriefTunnel { if o == nil { - var ret Tunnel + var ret BriefTunnel return ret } @@ -150,7 +183,7 @@ func (o *TunnelTermination) GetTunnel() Tunnel { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { +func (o *TunnelTermination) GetTunnelOk() (*BriefTunnel, bool) { if o == nil { return nil, false } @@ -158,7 +191,7 @@ func (o *TunnelTermination) GetTunnelOk() (*Tunnel, bool) { } // SetTunnel sets field value -func (o *TunnelTermination) SetTunnel(v Tunnel) { +func (o *TunnelTermination) SetTunnel(v BriefTunnel) { o.Tunnel = v } @@ -263,9 +296,9 @@ func (o *TunnelTermination) SetTermination(v interface{}) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTermination) GetOutsideIp() IPAddress { +func (o *TunnelTermination) GetOutsideIp() BriefIPAddress { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.OutsideIp.Get() @@ -274,7 +307,7 @@ func (o *TunnelTermination) GetOutsideIp() IPAddress { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTermination) GetOutsideIpOk() (*IPAddress, bool) { +func (o *TunnelTermination) GetOutsideIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -290,8 +323,8 @@ func (o *TunnelTermination) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddress and assigns it to the OutsideIp field. -func (o *TunnelTermination) SetOutsideIp(v IPAddress) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddress and assigns it to the OutsideIp field. +func (o *TunnelTermination) SetOutsideIp(v BriefIPAddress) { o.OutsideIp.Set(&v) } @@ -433,6 +466,9 @@ func (o TunnelTermination) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["tunnel"] = o.Tunnel toSerialize["role"] = o.Role @@ -506,6 +542,7 @@ func (o *TunnelTermination) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "tunnel") delete(additionalProperties, "role") diff --git a/model_tunnel_termination_request.go b/model_tunnel_termination_request.go index d38e99b53..45ed8df63 100644 --- a/model_tunnel_termination_request.go +++ b/model_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &TunnelTerminationRequest{} // TunnelTerminationRequest Adds support for custom fields and tags. type TunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` + Tunnel BriefTunnelRequest `json:"tunnel"` Role PatchedWritableTunnelTerminationRequestRole `json:"role"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,7 +36,7 @@ type _TunnelTerminationRequest TunnelTerminationRequest // 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 NewTunnelTerminationRequest(tunnel TunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { +func NewTunnelTerminationRequest(tunnel BriefTunnelRequest, role PatchedWritableTunnelTerminationRequestRole, terminationType string, terminationId NullableInt64) *TunnelTerminationRequest { this := TunnelTerminationRequest{} this.Tunnel = tunnel this.Role = role @@ -54,9 +54,9 @@ func NewTunnelTerminationRequestWithDefaults() *TunnelTerminationRequest { } // GetTunnel returns the Tunnel field value -func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *TunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -65,7 +65,7 @@ func (o *TunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *TunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -73,7 +73,7 @@ func (o *TunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { } // SetTunnel sets field value -func (o *TunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *TunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } @@ -152,9 +152,9 @@ func (o *TunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *TunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -163,7 +163,7 @@ func (o *TunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *TunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *TunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -179,8 +179,8 @@ func (o *TunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *TunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *TunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_tunnel_termination_role.go b/model_tunnel_termination_role.go index fe1ea1a38..26e4f35bf 100644 --- a/model_tunnel_termination_role.go +++ b/model_tunnel_termination_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_tunnel_termination_role_label.go b/model_tunnel_termination_role_label.go index f59fb7fd8..404dbc7cd 100644 --- a/model_tunnel_termination_role_label.go +++ b/model_tunnel_termination_role_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_user.go b/model_user.go index 09bd2a3cd..b77353bf4 100644 --- a/model_user.go +++ b/model_user.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the User type satisfies the MappedNullable interface at compile time @@ -20,11 +21,23 @@ var _ MappedNullable = &User{} // User Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type User struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` + // Designates whether the user can log into this admin site. + IsStaff *bool `json:"is_staff,omitempty"` + // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []Group `json:"groups,omitempty"` + Permissions []ObjectPermission `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -99,6 +112,38 @@ func (o *User) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *User) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *User) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *User) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *User) GetDisplay() string { if o == nil { @@ -147,6 +192,305 @@ func (o *User) SetUsername(v string) { o.Username = v } +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *User) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *User) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *User) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *User) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *User) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *User) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *User) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *User) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *User) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *User) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *User) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *User) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *User) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *User) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *User) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *User) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *User) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *User) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *User) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *User) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *User) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *User) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} + +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *User) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *User) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *User) GetGroups() []Group { + if o == nil || IsNil(o.Groups) { + var ret []Group + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetGroupsOk() ([]Group, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *User) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []Group and assigns it to the Groups field. +func (o *User) SetGroups(v []Group) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *User) GetPermissions() []ObjectPermission { + if o == nil || IsNil(o.Permissions) { + var ret []ObjectPermission + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *User) GetPermissionsOk() ([]ObjectPermission, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *User) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []ObjectPermission and assigns it to the Permissions field. +func (o *User) SetPermissions(v []ObjectPermission) { + o.Permissions = v +} + func (o User) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -159,8 +503,38 @@ func (o User) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["username"] = o.Username + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -209,8 +583,18 @@ func (o *User) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "username") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_user_request.go b/model_user_request.go index 33ff7942b..ba5d071f1 100644 --- a/model_user_request.go +++ b/model_user_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the UserRequest type satisfies the MappedNullable interface at compile time @@ -21,7 +22,19 @@ var _ MappedNullable = &UserRequest{} // UserRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type UserRequest struct { // Required. 150 characters or fewer. Letters, digits and @/./+/-/_ only. - Username string `json:"username"` + Username string `json:"username"` + Password string `json:"password"` + FirstName *string `json:"first_name,omitempty"` + LastName *string `json:"last_name,omitempty"` + Email *string `json:"email,omitempty"` + // Designates whether the user can log into this admin site. + IsStaff *bool `json:"is_staff,omitempty"` + // Designates whether this user should be treated as active. Unselect this instead of deleting accounts. + IsActive *bool `json:"is_active,omitempty"` + DateJoined *time.Time `json:"date_joined,omitempty"` + LastLogin NullableTime `json:"last_login,omitempty"` + Groups []int32 `json:"groups,omitempty"` + Permissions []int32 `json:"permissions,omitempty"` AdditionalProperties map[string]interface{} } @@ -31,9 +44,10 @@ type _UserRequest UserRequest // 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 NewUserRequest(username string) *UserRequest { +func NewUserRequest(username string, password string) *UserRequest { this := UserRequest{} this.Username = username + this.Password = password return &this } @@ -69,6 +83,329 @@ func (o *UserRequest) SetUsername(v string) { o.Username = v } +// GetPassword returns the Password field value +func (o *UserRequest) GetPassword() string { + if o == nil { + var ret string + return ret + } + + return o.Password +} + +// GetPasswordOk returns a tuple with the Password field value +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPasswordOk() (*string, bool) { + if o == nil { + return nil, false + } + return &o.Password, true +} + +// SetPassword sets field value +func (o *UserRequest) SetPassword(v string) { + o.Password = v +} + +// GetFirstName returns the FirstName field value if set, zero value otherwise. +func (o *UserRequest) GetFirstName() string { + if o == nil || IsNil(o.FirstName) { + var ret string + return ret + } + return *o.FirstName +} + +// GetFirstNameOk returns a tuple with the FirstName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetFirstNameOk() (*string, bool) { + if o == nil || IsNil(o.FirstName) { + return nil, false + } + return o.FirstName, true +} + +// HasFirstName returns a boolean if a field has been set. +func (o *UserRequest) HasFirstName() bool { + if o != nil && !IsNil(o.FirstName) { + return true + } + + return false +} + +// SetFirstName gets a reference to the given string and assigns it to the FirstName field. +func (o *UserRequest) SetFirstName(v string) { + o.FirstName = &v +} + +// GetLastName returns the LastName field value if set, zero value otherwise. +func (o *UserRequest) GetLastName() string { + if o == nil || IsNil(o.LastName) { + var ret string + return ret + } + return *o.LastName +} + +// GetLastNameOk returns a tuple with the LastName field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetLastNameOk() (*string, bool) { + if o == nil || IsNil(o.LastName) { + return nil, false + } + return o.LastName, true +} + +// HasLastName returns a boolean if a field has been set. +func (o *UserRequest) HasLastName() bool { + if o != nil && !IsNil(o.LastName) { + return true + } + + return false +} + +// SetLastName gets a reference to the given string and assigns it to the LastName field. +func (o *UserRequest) SetLastName(v string) { + o.LastName = &v +} + +// GetEmail returns the Email field value if set, zero value otherwise. +func (o *UserRequest) GetEmail() string { + if o == nil || IsNil(o.Email) { + var ret string + return ret + } + return *o.Email +} + +// GetEmailOk returns a tuple with the Email field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetEmailOk() (*string, bool) { + if o == nil || IsNil(o.Email) { + return nil, false + } + return o.Email, true +} + +// HasEmail returns a boolean if a field has been set. +func (o *UserRequest) HasEmail() bool { + if o != nil && !IsNil(o.Email) { + return true + } + + return false +} + +// SetEmail gets a reference to the given string and assigns it to the Email field. +func (o *UserRequest) SetEmail(v string) { + o.Email = &v +} + +// GetIsStaff returns the IsStaff field value if set, zero value otherwise. +func (o *UserRequest) GetIsStaff() bool { + if o == nil || IsNil(o.IsStaff) { + var ret bool + return ret + } + return *o.IsStaff +} + +// GetIsStaffOk returns a tuple with the IsStaff field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsStaffOk() (*bool, bool) { + if o == nil || IsNil(o.IsStaff) { + return nil, false + } + return o.IsStaff, true +} + +// HasIsStaff returns a boolean if a field has been set. +func (o *UserRequest) HasIsStaff() bool { + if o != nil && !IsNil(o.IsStaff) { + return true + } + + return false +} + +// SetIsStaff gets a reference to the given bool and assigns it to the IsStaff field. +func (o *UserRequest) SetIsStaff(v bool) { + o.IsStaff = &v +} + +// GetIsActive returns the IsActive field value if set, zero value otherwise. +func (o *UserRequest) GetIsActive() bool { + if o == nil || IsNil(o.IsActive) { + var ret bool + return ret + } + return *o.IsActive +} + +// GetIsActiveOk returns a tuple with the IsActive field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetIsActiveOk() (*bool, bool) { + if o == nil || IsNil(o.IsActive) { + return nil, false + } + return o.IsActive, true +} + +// HasIsActive returns a boolean if a field has been set. +func (o *UserRequest) HasIsActive() bool { + if o != nil && !IsNil(o.IsActive) { + return true + } + + return false +} + +// SetIsActive gets a reference to the given bool and assigns it to the IsActive field. +func (o *UserRequest) SetIsActive(v bool) { + o.IsActive = &v +} + +// GetDateJoined returns the DateJoined field value if set, zero value otherwise. +func (o *UserRequest) GetDateJoined() time.Time { + if o == nil || IsNil(o.DateJoined) { + var ret time.Time + return ret + } + return *o.DateJoined +} + +// GetDateJoinedOk returns a tuple with the DateJoined field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetDateJoinedOk() (*time.Time, bool) { + if o == nil || IsNil(o.DateJoined) { + return nil, false + } + return o.DateJoined, true +} + +// HasDateJoined returns a boolean if a field has been set. +func (o *UserRequest) HasDateJoined() bool { + if o != nil && !IsNil(o.DateJoined) { + return true + } + + return false +} + +// SetDateJoined gets a reference to the given time.Time and assigns it to the DateJoined field. +func (o *UserRequest) SetDateJoined(v time.Time) { + o.DateJoined = &v +} + +// GetLastLogin returns the LastLogin field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *UserRequest) GetLastLogin() time.Time { + if o == nil || IsNil(o.LastLogin.Get()) { + var ret time.Time + return ret + } + return *o.LastLogin.Get() +} + +// GetLastLoginOk returns a tuple with the LastLogin field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *UserRequest) GetLastLoginOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastLogin.Get(), o.LastLogin.IsSet() +} + +// HasLastLogin returns a boolean if a field has been set. +func (o *UserRequest) HasLastLogin() bool { + if o != nil && o.LastLogin.IsSet() { + return true + } + + return false +} + +// SetLastLogin gets a reference to the given NullableTime and assigns it to the LastLogin field. +func (o *UserRequest) SetLastLogin(v time.Time) { + o.LastLogin.Set(&v) +} + +// SetLastLoginNil sets the value for LastLogin to be an explicit nil +func (o *UserRequest) SetLastLoginNil() { + o.LastLogin.Set(nil) +} + +// UnsetLastLogin ensures that no value is present for LastLogin, not even an explicit nil +func (o *UserRequest) UnsetLastLogin() { + o.LastLogin.Unset() +} + +// GetGroups returns the Groups field value if set, zero value otherwise. +func (o *UserRequest) GetGroups() []int32 { + if o == nil || IsNil(o.Groups) { + var ret []int32 + return ret + } + return o.Groups +} + +// GetGroupsOk returns a tuple with the Groups field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetGroupsOk() ([]int32, bool) { + if o == nil || IsNil(o.Groups) { + return nil, false + } + return o.Groups, true +} + +// HasGroups returns a boolean if a field has been set. +func (o *UserRequest) HasGroups() bool { + if o != nil && !IsNil(o.Groups) { + return true + } + + return false +} + +// SetGroups gets a reference to the given []int32 and assigns it to the Groups field. +func (o *UserRequest) SetGroups(v []int32) { + o.Groups = v +} + +// GetPermissions returns the Permissions field value if set, zero value otherwise. +func (o *UserRequest) GetPermissions() []int32 { + if o == nil || IsNil(o.Permissions) { + var ret []int32 + return ret + } + return o.Permissions +} + +// GetPermissionsOk returns a tuple with the Permissions field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *UserRequest) GetPermissionsOk() ([]int32, bool) { + if o == nil || IsNil(o.Permissions) { + return nil, false + } + return o.Permissions, true +} + +// HasPermissions returns a boolean if a field has been set. +func (o *UserRequest) HasPermissions() bool { + if o != nil && !IsNil(o.Permissions) { + return true + } + + return false +} + +// SetPermissions gets a reference to the given []int32 and assigns it to the Permissions field. +func (o *UserRequest) SetPermissions(v []int32) { + o.Permissions = v +} + func (o UserRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -80,6 +417,34 @@ func (o UserRequest) MarshalJSON() ([]byte, error) { func (o UserRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["username"] = o.Username + toSerialize["password"] = o.Password + if !IsNil(o.FirstName) { + toSerialize["first_name"] = o.FirstName + } + if !IsNil(o.LastName) { + toSerialize["last_name"] = o.LastName + } + if !IsNil(o.Email) { + toSerialize["email"] = o.Email + } + if !IsNil(o.IsStaff) { + toSerialize["is_staff"] = o.IsStaff + } + if !IsNil(o.IsActive) { + toSerialize["is_active"] = o.IsActive + } + if !IsNil(o.DateJoined) { + toSerialize["date_joined"] = o.DateJoined + } + if o.LastLogin.IsSet() { + toSerialize["last_login"] = o.LastLogin.Get() + } + if !IsNil(o.Groups) { + toSerialize["groups"] = o.Groups + } + if !IsNil(o.Permissions) { + toSerialize["permissions"] = o.Permissions + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -94,6 +459,7 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { // that every required field exists as a key in the generic map. requiredProperties := []string{ "username", + "password", } allProperties := make(map[string]interface{}) @@ -124,6 +490,16 @@ func (o *UserRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "username") + delete(additionalProperties, "password") + delete(additionalProperties, "first_name") + delete(additionalProperties, "last_name") + delete(additionalProperties, "email") + delete(additionalProperties, "is_staff") + delete(additionalProperties, "is_active") + delete(additionalProperties, "date_joined") + delete(additionalProperties, "last_login") + delete(additionalProperties, "groups") + delete(additionalProperties, "permissions") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis.go b/model_virtual_chassis.go index c23f98276..bc3b63dc3 100644 --- a/model_virtual_chassis.go +++ b/model_virtual_chassis.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VirtualChassis type satisfies the MappedNullable interface at compile time @@ -20,13 +21,21 @@ var _ MappedNullable = &VirtualChassis{} // VirtualChassis Adds support for custom fields and tags. type VirtualChassis struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Master NullableNestedDevice `json:"master,omitempty"` - Description *string `json:"description,omitempty"` - MemberCount int32 `json:"member_count"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Domain *string `json:"domain,omitempty"` + Master NullableNestedDevice `json:"master,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + MemberCount int32 `json:"member_count"` + Members []NestedDevice `json:"members"` AdditionalProperties map[string]interface{} } @@ -36,13 +45,16 @@ type _VirtualChassis VirtualChassis // 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 NewVirtualChassis(id int32, url string, display string, name string, memberCount int32) *VirtualChassis { +func NewVirtualChassis(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, memberCount int32, members []NestedDevice) *VirtualChassis { this := VirtualChassis{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated this.MemberCount = memberCount + this.Members = members return &this } @@ -102,6 +114,38 @@ func (o *VirtualChassis) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualChassis) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualChassis) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualChassis) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualChassis) GetDisplay() string { if o == nil { @@ -150,6 +194,38 @@ func (o *VirtualChassis) SetName(v string) { o.Name = v } +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassis) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassis) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassis) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassis) GetMaster() NestedDevice { if o == nil || IsNil(o.Master.Get()) { @@ -225,6 +301,154 @@ func (o *VirtualChassis) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassis) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassis) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassis) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassis) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VirtualChassis) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VirtualChassis) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassis) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VirtualChassis) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VirtualChassis) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VirtualChassis) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VirtualChassis) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VirtualChassis) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VirtualChassis) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VirtualChassis) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VirtualChassis) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetMemberCount returns the MemberCount field value func (o *VirtualChassis) GetMemberCount() int32 { if o == nil { @@ -249,6 +473,30 @@ func (o *VirtualChassis) SetMemberCount(v int32) { o.MemberCount = v } +// GetMembers returns the Members field value +func (o *VirtualChassis) GetMembers() []NestedDevice { + if o == nil { + var ret []NestedDevice + return ret + } + + return o.Members +} + +// GetMembersOk returns a tuple with the Members field value +// and a boolean to check if the value has been set. +func (o *VirtualChassis) GetMembersOk() ([]NestedDevice, bool) { + if o == nil { + return nil, false + } + return o.Members, true +} + +// SetMembers sets field value +func (o *VirtualChassis) SetMembers(v []NestedDevice) { + o.Members = v +} + func (o VirtualChassis) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -261,15 +509,33 @@ func (o VirtualChassis) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["member_count"] = o.MemberCount + toSerialize["members"] = o.Members for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -287,7 +553,10 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "created", + "last_updated", "member_count", + "members", } allProperties := make(map[string]interface{}) @@ -319,11 +588,19 @@ func (o *VirtualChassis) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "member_count") + delete(additionalProperties, "members") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_chassis_request.go b/model_virtual_chassis_request.go index 12a6c68c6..c9545b170 100644 --- a/model_virtual_chassis_request.go +++ b/model_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,12 @@ var _ MappedNullable = &VirtualChassisRequest{} // VirtualChassisRequest Adds support for custom fields and tags. type VirtualChassisRequest struct { Name string `json:"name"` + Domain *string `json:"domain,omitempty"` Master NullableNestedDeviceRequest `json:"master,omitempty"` Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -70,6 +74,38 @@ func (o *VirtualChassisRequest) SetName(v string) { o.Name = v } +// GetDomain returns the Domain field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetDomain() string { + if o == nil || IsNil(o.Domain) { + var ret string + return ret + } + return *o.Domain +} + +// GetDomainOk returns a tuple with the Domain field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetDomainOk() (*string, bool) { + if o == nil || IsNil(o.Domain) { + return nil, false + } + return o.Domain, true +} + +// HasDomain returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasDomain() bool { + if o != nil && !IsNil(o.Domain) { + return true + } + + return false +} + +// SetDomain gets a reference to the given string and assigns it to the Domain field. +func (o *VirtualChassisRequest) SetDomain(v string) { + o.Domain = &v +} + // GetMaster returns the Master field value if set, zero value otherwise (both if not set or set to explicit null). func (o *VirtualChassisRequest) GetMaster() NestedDeviceRequest { if o == nil || IsNil(o.Master.Get()) { @@ -145,6 +181,102 @@ func (o *VirtualChassisRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VirtualChassisRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VirtualChassisRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VirtualChassisRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualChassisRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VirtualChassisRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VirtualChassisRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -156,12 +288,24 @@ func (o VirtualChassisRequest) MarshalJSON() ([]byte, error) { func (o VirtualChassisRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["name"] = o.Name + if !IsNil(o.Domain) { + toSerialize["domain"] = o.Domain + } if o.Master.IsSet() { toSerialize["master"] = o.Master.Get() } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -206,8 +350,12 @@ func (o *VirtualChassisRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") + delete(additionalProperties, "domain") delete(additionalProperties, "master") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_virtual_device_context.go b/model_virtual_device_context.go index 8e7c0ec50..5be94c7a9 100644 --- a/model_virtual_device_context.go +++ b/model_virtual_device_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,14 +23,15 @@ var _ MappedNullable = &VirtualDeviceContext{} type VirtualDeviceContext struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` - Device Device `json:"device"` + Device BriefDevice `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` Status VirtualDeviceContextStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -48,7 +49,7 @@ type _VirtualDeviceContext VirtualDeviceContext // 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 NewVirtualDeviceContext(id int32, url string, display string, name string, device Device, primaryIp NullableIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { +func NewVirtualDeviceContext(id int32, url string, display string, name string, device BriefDevice, primaryIp NullableBriefIPAddress, status VirtualDeviceContextStatus, created NullableTime, lastUpdated NullableTime, interfaceCount int64) *VirtualDeviceContext { this := VirtualDeviceContext{} this.Id = id this.Url = url @@ -119,6 +120,38 @@ func (o *VirtualDeviceContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualDeviceContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDeviceContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualDeviceContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualDeviceContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualDeviceContext) GetDisplay() string { if o == nil { @@ -168,9 +201,9 @@ func (o *VirtualDeviceContext) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContext) GetDevice() Device { +func (o *VirtualDeviceContext) GetDevice() BriefDevice { if o == nil { - var ret Device + var ret BriefDevice return ret } @@ -179,7 +212,7 @@ func (o *VirtualDeviceContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualDeviceContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -187,7 +220,7 @@ func (o *VirtualDeviceContext) GetDeviceOk() (*Device, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContext) SetDevice(v Device) { +func (o *VirtualDeviceContext) SetDevice(v BriefDevice) { o.Device = v } @@ -235,9 +268,9 @@ func (o *VirtualDeviceContext) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetTenant() Tenant { +func (o *VirtualDeviceContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -246,7 +279,7 @@ func (o *VirtualDeviceContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualDeviceContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -262,8 +295,8 @@ func (o *VirtualDeviceContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualDeviceContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualDeviceContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -278,10 +311,10 @@ func (o *VirtualDeviceContext) UnsetTenant() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *VirtualDeviceContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -291,7 +324,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -299,14 +332,14 @@ func (o *VirtualDeviceContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualDeviceContext) SetPrimaryIp(v IPAddress) { +func (o *VirtualDeviceContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -315,7 +348,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -331,8 +364,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -347,9 +380,9 @@ func (o *VirtualDeviceContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { +func (o *VirtualDeviceContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -358,7 +391,7 @@ func (o *VirtualDeviceContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualDeviceContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -374,8 +407,8 @@ func (o *VirtualDeviceContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -629,6 +662,9 @@ func (o VirtualDeviceContext) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["device"] = o.Device @@ -715,6 +751,7 @@ func (o *VirtualDeviceContext) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "device") diff --git a/model_virtual_device_context_request.go b/model_virtual_device_context_request.go index 64ba644f6..4dd3b1833 100644 --- a/model_virtual_device_context_request.go +++ b/model_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &VirtualDeviceContextRequest{} // VirtualDeviceContextRequest Adds support for custom fields and tags. type VirtualDeviceContextRequest struct { Name string `json:"name"` - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,7 +40,7 @@ type _VirtualDeviceContextRequest VirtualDeviceContextRequest // 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 NewVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { +func NewVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *VirtualDeviceContextRequest { this := VirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *VirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *VirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *VirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *VirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *VirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *VirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -148,9 +148,9 @@ func (o *VirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *VirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *VirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *VirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *VirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,9 +234,9 @@ func (o *VirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *VirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *VirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_virtual_device_context_status.go b/model_virtual_device_context_status.go index 121a4f6ab..036e64d3b 100644 --- a/model_virtual_device_context_status.go +++ b/model_virtual_device_context_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_device_context_status_label.go b/model_virtual_device_context_status_label.go index 01cf885ef..767c29072 100644 --- a/model_virtual_device_context_status_label.go +++ b/model_virtual_device_context_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_virtual_disk.go b/model_virtual_disk.go index 581eae9f1..993fa6b49 100644 --- a/model_virtual_disk.go +++ b/model_virtual_disk.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,8 +23,9 @@ var _ MappedNullable = &VirtualDisk{} type VirtualDisk struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` + VirtualMachine BriefVirtualMachine `json:"virtual_machine"` Name string `json:"name"` Description *string `json:"description,omitempty"` Size int32 `json:"size"` @@ -41,7 +42,7 @@ type _VirtualDisk VirtualDisk // 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 NewVirtualDisk(id int32, url string, display string, virtualMachine VirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { +func NewVirtualDisk(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, size int32, created NullableTime, lastUpdated NullableTime) *VirtualDisk { this := VirtualDisk{} this.Id = id this.Url = url @@ -110,6 +111,38 @@ func (o *VirtualDisk) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualDisk) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualDisk) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualDisk) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualDisk) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualDisk) GetDisplay() string { if o == nil { @@ -135,9 +168,9 @@ func (o *VirtualDisk) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { +func (o *VirtualDisk) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -146,7 +179,7 @@ func (o *VirtualDisk) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VirtualDisk) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -154,7 +187,7 @@ func (o *VirtualDisk) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VirtualDisk) SetVirtualMachine(v VirtualMachine) { +func (o *VirtualDisk) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } @@ -366,6 +399,9 @@ func (o VirtualDisk) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -433,6 +469,7 @@ func (o *VirtualDisk) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_virtual_disk_request.go b/model_virtual_disk_request.go index 1403ba9b1..334972705 100644 --- a/model_virtual_disk_request.go +++ b/model_virtual_disk_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &VirtualDiskRequest{} // VirtualDiskRequest Adds support for custom fields and tags. type VirtualDiskRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Size int32 `json:"size"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Size int32 `json:"size"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -35,7 +35,7 @@ type _VirtualDiskRequest VirtualDiskRequest // 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 NewVirtualDiskRequest(virtualMachine VirtualMachineRequest, name string, size int32) *VirtualDiskRequest { +func NewVirtualDiskRequest(virtualMachine BriefVirtualMachineRequest, name string, size int32) *VirtualDiskRequest { this := VirtualDiskRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -52,9 +52,9 @@ func NewVirtualDiskRequestWithDefaults() *VirtualDiskRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VirtualDiskRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -63,7 +63,7 @@ func (o *VirtualDiskRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VirtualDiskRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -71,7 +71,7 @@ func (o *VirtualDiskRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VirtualDiskRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VirtualDiskRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } diff --git a/model_virtual_machine_with_config_context.go b/model_virtual_machine_with_config_context.go index b51baaf12..019f3e45d 100644 --- a/model_virtual_machine_with_config_context.go +++ b/model_virtual_machine_with_config_context.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,26 +21,28 @@ var _ MappedNullable = &VirtualMachineWithConfigContext{} // VirtualMachineWithConfigContext Adds support for custom fields and tags. type VirtualMachineWithConfigContext struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Status *VirtualMachineWithConfigContextStatus `json:"status,omitempty"` - Site NullableSite `json:"site,omitempty"` - Cluster NullableCluster `json:"cluster,omitempty"` - Device NullableDevice `json:"device,omitempty"` - Role NullableDeviceRole `json:"role,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - Platform NullablePlatform `json:"platform,omitempty"` - PrimaryIp NullableIPAddress `json:"primary_ip"` - PrimaryIp4 NullableIPAddress `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddress `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplate `json:"config_template,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Status *ModuleStatus `json:"status,omitempty"` + Site NullableBriefSite `json:"site,omitempty"` + Cluster NullableBriefCluster `json:"cluster,omitempty"` + Device NullableBriefDevice `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRole `json:"role,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Platform NullableBriefPlatform `json:"platform,omitempty"` + PrimaryIp NullableBriefIPAddress `json:"primary_ip"` + PrimaryIp4 NullableBriefIPAddress `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddress `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplate `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTag `json:"tags,omitempty"` @@ -59,7 +61,7 @@ type _VirtualMachineWithConfigContext VirtualMachineWithConfigContext // 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 NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { +func NewVirtualMachineWithConfigContext(id int32, url string, display string, name string, primaryIp NullableBriefIPAddress, configContext interface{}, created NullableTime, lastUpdated NullableTime, interfaceCount int32, virtualDiskCount int32) *VirtualMachineWithConfigContext { this := VirtualMachineWithConfigContext{} this.Id = id this.Url = url @@ -130,6 +132,38 @@ func (o *VirtualMachineWithConfigContext) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContext) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VirtualMachineWithConfigContext) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VirtualMachineWithConfigContext) GetDisplay() string { if o == nil { @@ -179,9 +213,9 @@ func (o *VirtualMachineWithConfigContext) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigContextStatus { +func (o *VirtualMachineWithConfigContext) GetStatus() ModuleStatus { if o == nil || IsNil(o.Status) { - var ret VirtualMachineWithConfigContextStatus + var ret ModuleStatus return ret } return *o.Status @@ -189,7 +223,7 @@ func (o *VirtualMachineWithConfigContext) GetStatus() VirtualMachineWithConfigCo // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContext) GetStatusOk() (*VirtualMachineWithConfigContextStatus, bool) { +func (o *VirtualMachineWithConfigContext) GetStatusOk() (*ModuleStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -205,15 +239,15 @@ func (o *VirtualMachineWithConfigContext) HasStatus() bool { return false } -// SetStatus gets a reference to the given VirtualMachineWithConfigContextStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContext) SetStatus(v VirtualMachineWithConfigContextStatus) { +// SetStatus gets a reference to the given ModuleStatus and assigns it to the Status field. +func (o *VirtualMachineWithConfigContext) SetStatus(v ModuleStatus) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetSite() Site { +func (o *VirtualMachineWithConfigContext) GetSite() BriefSite { if o == nil || IsNil(o.Site.Get()) { - var ret Site + var ret BriefSite return ret } return *o.Site.Get() @@ -222,7 +256,7 @@ func (o *VirtualMachineWithConfigContext) GetSite() Site { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetSiteOk() (*Site, bool) { +func (o *VirtualMachineWithConfigContext) GetSiteOk() (*BriefSite, bool) { if o == nil { return nil, false } @@ -238,8 +272,8 @@ func (o *VirtualMachineWithConfigContext) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSite and assigns it to the Site field. -func (o *VirtualMachineWithConfigContext) SetSite(v Site) { +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VirtualMachineWithConfigContext) SetSite(v BriefSite) { o.Site.Set(&v) } @@ -254,9 +288,9 @@ func (o *VirtualMachineWithConfigContext) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { +func (o *VirtualMachineWithConfigContext) GetCluster() BriefCluster { if o == nil || IsNil(o.Cluster.Get()) { - var ret Cluster + var ret BriefCluster return ret } return *o.Cluster.Get() @@ -265,7 +299,7 @@ func (o *VirtualMachineWithConfigContext) GetCluster() Cluster { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetClusterOk() (*Cluster, bool) { +func (o *VirtualMachineWithConfigContext) GetClusterOk() (*BriefCluster, bool) { if o == nil { return nil, false } @@ -281,8 +315,8 @@ func (o *VirtualMachineWithConfigContext) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableCluster and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContext) SetCluster(v Cluster) { +// SetCluster gets a reference to the given NullableBriefCluster and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContext) SetCluster(v BriefCluster) { o.Cluster.Set(&v) } @@ -297,9 +331,9 @@ func (o *VirtualMachineWithConfigContext) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetDevice() Device { +func (o *VirtualMachineWithConfigContext) GetDevice() BriefDevice { if o == nil || IsNil(o.Device.Get()) { - var ret Device + var ret BriefDevice return ret } return *o.Device.Get() @@ -308,7 +342,7 @@ func (o *VirtualMachineWithConfigContext) GetDevice() Device { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*Device, bool) { +func (o *VirtualMachineWithConfigContext) GetDeviceOk() (*BriefDevice, bool) { if o == nil { return nil, false } @@ -324,8 +358,8 @@ func (o *VirtualMachineWithConfigContext) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDevice and assigns it to the Device field. -func (o *VirtualMachineWithConfigContext) SetDevice(v Device) { +// SetDevice gets a reference to the given NullableBriefDevice and assigns it to the Device field. +func (o *VirtualMachineWithConfigContext) SetDevice(v BriefDevice) { o.Device.Set(&v) } @@ -339,10 +373,42 @@ func (o *VirtualMachineWithConfigContext) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContext) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContext) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContext) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContext) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { +func (o *VirtualMachineWithConfigContext) GetRole() BriefDeviceRole { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRole + var ret BriefDeviceRole return ret } return *o.Role.Get() @@ -351,7 +417,7 @@ func (o *VirtualMachineWithConfigContext) GetRole() DeviceRole { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetRoleOk() (*DeviceRole, bool) { +func (o *VirtualMachineWithConfigContext) GetRoleOk() (*BriefDeviceRole, bool) { if o == nil { return nil, false } @@ -367,8 +433,8 @@ func (o *VirtualMachineWithConfigContext) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRole and assigns it to the Role field. -func (o *VirtualMachineWithConfigContext) SetRole(v DeviceRole) { +// SetRole gets a reference to the given NullableBriefDeviceRole and assigns it to the Role field. +func (o *VirtualMachineWithConfigContext) SetRole(v BriefDeviceRole) { o.Role.Set(&v) } @@ -383,9 +449,9 @@ func (o *VirtualMachineWithConfigContext) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { +func (o *VirtualMachineWithConfigContext) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -394,7 +460,7 @@ func (o *VirtualMachineWithConfigContext) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetTenantOk() (*Tenant, bool) { +func (o *VirtualMachineWithConfigContext) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -410,8 +476,8 @@ func (o *VirtualMachineWithConfigContext) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContext) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContext) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -426,9 +492,9 @@ func (o *VirtualMachineWithConfigContext) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { +func (o *VirtualMachineWithConfigContext) GetPlatform() BriefPlatform { if o == nil || IsNil(o.Platform.Get()) { - var ret Platform + var ret BriefPlatform return ret } return *o.Platform.Get() @@ -437,7 +503,7 @@ func (o *VirtualMachineWithConfigContext) GetPlatform() Platform { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*Platform, bool) { +func (o *VirtualMachineWithConfigContext) GetPlatformOk() (*BriefPlatform, bool) { if o == nil { return nil, false } @@ -453,8 +519,8 @@ func (o *VirtualMachineWithConfigContext) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatform and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContext) SetPlatform(v Platform) { +// SetPlatform gets a reference to the given NullableBriefPlatform and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContext) SetPlatform(v BriefPlatform) { o.Platform.Set(&v) } @@ -469,10 +535,10 @@ func (o *VirtualMachineWithConfigContext) UnsetPlatform() { } // GetPrimaryIp returns the PrimaryIp field value -// If the value is explicit nil, the zero value for IPAddress will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { +// If the value is explicit nil, the zero value for BriefIPAddress will be returned +func (o *VirtualMachineWithConfigContext) GetPrimaryIp() BriefIPAddress { if o == nil || o.PrimaryIp.Get() == nil { - var ret IPAddress + var ret BriefIPAddress return ret } @@ -482,7 +548,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp() IPAddress { // GetPrimaryIpOk returns a tuple with the PrimaryIp field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -490,14 +556,14 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIpOk() (*IPAddress, bool) { } // SetPrimaryIp sets field value -func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v IPAddress) { +func (o *VirtualMachineWithConfigContext) SetPrimaryIp(v BriefIPAddress) { o.PrimaryIp.Set(&v) } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp4.Get() @@ -506,7 +572,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp4() IPAddress { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp4Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -522,8 +588,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v IPAddress) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp4(v BriefIPAddress) { o.PrimaryIp4.Set(&v) } @@ -538,9 +604,9 @@ func (o *VirtualMachineWithConfigContext) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() BriefIPAddress { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddress + var ret BriefIPAddress return ret } return *o.PrimaryIp6.Get() @@ -549,7 +615,7 @@ func (o *VirtualMachineWithConfigContext) GetPrimaryIp6() IPAddress { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*IPAddress, bool) { +func (o *VirtualMachineWithConfigContext) GetPrimaryIp6Ok() (*BriefIPAddress, bool) { if o == nil { return nil, false } @@ -565,8 +631,8 @@ func (o *VirtualMachineWithConfigContext) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddress and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v IPAddress) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddress and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContext) SetPrimaryIp6(v BriefIPAddress) { o.PrimaryIp6.Set(&v) } @@ -774,9 +840,9 @@ func (o *VirtualMachineWithConfigContext) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { +func (o *VirtualMachineWithConfigContext) GetConfigTemplate() BriefConfigTemplate { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplate + var ret BriefConfigTemplate return ret } return *o.ConfigTemplate.Get() @@ -785,7 +851,7 @@ func (o *VirtualMachineWithConfigContext) GetConfigTemplate() ConfigTemplate { // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*ConfigTemplate, bool) { +func (o *VirtualMachineWithConfigContext) GetConfigTemplateOk() (*BriefConfigTemplate, bool) { if o == nil { return nil, false } @@ -801,8 +867,8 @@ func (o *VirtualMachineWithConfigContext) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplate and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v ConfigTemplate) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplate and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContext) SetConfigTemplate(v BriefConfigTemplate) { o.ConfigTemplate.Set(&v) } @@ -1051,6 +1117,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Status) { @@ -1065,6 +1134,9 @@ func (o VirtualMachineWithConfigContext) ToMap() (map[string]interface{}, error) if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -1169,12 +1241,14 @@ func (o *VirtualMachineWithConfigContext) UnmarshalJSON(data []byte) (err error) if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "status") delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_virtual_machine_with_config_context_request.go b/model_virtual_machine_with_config_context_request.go index 7795d684a..519ccd406 100644 --- a/model_virtual_machine_with_config_context_request.go +++ b/model_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,23 @@ var _ MappedNullable = &VirtualMachineWithConfigContextRequest{} // VirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type VirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -88,9 +89,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *VirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -98,7 +99,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModu // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +115,15 @@ func (o *VirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *VirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *VirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *VirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +132,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,8 +148,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *VirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -163,9 +164,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *VirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,8 +191,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *VirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *VirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -206,9 +207,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *VirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +218,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,8 +234,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *VirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *VirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -248,10 +249,42 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *VirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *VirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *VirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *VirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +293,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,8 +309,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *VirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *VirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -292,9 +325,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *VirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +336,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,8 +352,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *VirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -335,9 +368,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +379,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,8 +395,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *VirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -378,9 +411,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +422,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,8 +438,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -421,9 +454,9 @@ func (o *VirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +465,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,8 +481,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *VirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -657,9 +690,9 @@ func (o *VirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +701,7 @@ func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTempl // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *VirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,8 +717,8 @@ func (o *VirtualMachineWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *VirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -819,6 +852,9 @@ func (o VirtualMachineWithConfigContextRequest) ToMap() (map[string]interface{}, if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -909,6 +945,7 @@ func (o *VirtualMachineWithConfigContextRequest) UnmarshalJSON(data []byte) (err delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_vlan.go b/model_vlan.go index 434660f55..f30ed868f 100644 --- a/model_vlan.go +++ b/model_vlan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VLAN type satisfies the MappedNullable interface at compile time @@ -20,13 +21,26 @@ var _ MappedNullable = &VLAN{} // VLAN Adds support for custom fields and tags. type VLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Site NullableBriefSite `json:"site,omitempty"` + Group NullableBriefVLANGroup `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + Status *IPRangeStatus `json:"status,omitempty"` + Role NullableBriefRole `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,13 +50,16 @@ type _VLAN VLAN // 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 NewVLAN(id int32, url string, display string, vid int32, name string) *VLAN { +func NewVLAN(id int32, url string, display string, vid int32, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime) *VLAN { this := VLAN{} this.Id = id this.Url = url this.Display = display this.Vid = vid this.Name = name + this.L2vpnTermination = l2vpnTermination + this.Created = created + this.LastUpdated = lastUpdated return &this } @@ -102,6 +119,38 @@ func (o *VLAN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VLAN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VLAN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VLAN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VLAN) GetDisplay() string { if o == nil { @@ -126,6 +175,92 @@ func (o *VLAN) SetDisplay(v string) { o.Display = v } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetSite() BriefSite { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSite + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetSiteOk() (*BriefSite, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLAN) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSite and assigns it to the Site field. +func (o *VLAN) SetSite(v BriefSite) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLAN) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLAN) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetGroup() BriefVLANGroup { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroup + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetGroupOk() (*BriefVLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLAN) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroup and assigns it to the Group field. +func (o *VLAN) SetGroup(v BriefVLANGroup) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLAN) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLAN) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLAN) GetVid() int32 { if o == nil { @@ -174,6 +309,124 @@ func (o *VLAN) SetName(v string) { o.Name = v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VLAN) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VLAN) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLAN) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLAN) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLAN) GetStatus() IPRangeStatus { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatus + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetStatusOk() (*IPRangeStatus, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLAN) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatus and assigns it to the Status field. +func (o *VLAN) SetStatus(v IPRangeStatus) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLAN) GetRole() BriefRole { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRole + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetRoleOk() (*BriefRole, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLAN) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRole and assigns it to the Role field. +func (o *VLAN) SetRole(v BriefRole) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLAN) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLAN) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLAN) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -206,6 +459,212 @@ func (o *VLAN) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLAN) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLAN) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLAN) SetComments(v string) { + o.Comments = &v +} + +// GetL2vpnTermination returns the L2vpnTermination field value +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *VLAN) GetL2vpnTermination() BriefL2VPNTermination { + if o == nil || o.L2vpnTermination.Get() == nil { + var ret BriefL2VPNTermination + return ret + } + + return *o.L2vpnTermination.Get() +} + +// GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { + if o == nil { + return nil, false + } + return o.L2vpnTermination.Get(), o.L2vpnTermination.IsSet() +} + +// SetL2vpnTermination sets field value +func (o *VLAN) SetL2vpnTermination(v BriefL2VPNTermination) { + o.L2vpnTermination.Set(&v) +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLAN) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VLAN) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VLAN) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLAN) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VLAN) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VLAN) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VLAN) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VLAN) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VLAN) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLAN) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VLAN) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. +func (o *VLAN) GetPrefixCount() int64 { + if o == nil || IsNil(o.PrefixCount) { + var ret int64 + return ret + } + return *o.PrefixCount +} + +// GetPrefixCountOk returns a tuple with the PrefixCount field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLAN) GetPrefixCountOk() (*int64, bool) { + if o == nil || IsNil(o.PrefixCount) { + return nil, false + } + return o.PrefixCount, true +} + +// HasPrefixCount returns a boolean if a field has been set. +func (o *VLAN) HasPrefixCount() bool { + if o != nil && !IsNil(o.PrefixCount) { + return true + } + + return false +} + +// SetPrefixCount gets a reference to the given int64 and assigns it to the PrefixCount field. +func (o *VLAN) SetPrefixCount(v int64) { + o.PrefixCount = &v +} + func (o VLAN) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -218,12 +677,45 @@ func (o VLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + toSerialize["l2vpn_termination"] = o.L2vpnTermination.Get() + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + if !IsNil(o.PrefixCount) { + toSerialize["prefix_count"] = o.PrefixCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -242,6 +734,9 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { "display", "vid", "name", + "l2vpn_termination", + "created", + "last_updated", } allProperties := make(map[string]interface{}) @@ -273,10 +768,23 @@ func (o *VLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "l2vpn_termination") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vlan_group.go b/model_vlan_group.go index 9f511c80e..81187044c 100644 --- a/model_vlan_group.go +++ b/model_vlan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,18 +21,15 @@ var _ MappedNullable = &VLANGroup{} // VLANGroup Adds support for custom fields and tags. type VLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - Scope interface{} `json:"scope"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` + Scope interface{} `json:"scope"` Description *string `json:"description,omitempty"` Tags []NestedTag `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -119,6 +116,38 @@ func (o *VLANGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VLANGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VLANGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VLANGroup) GetDisplay() string { if o == nil { @@ -303,70 +332,6 @@ func (o *VLANGroup) SetScope(v interface{}) { o.Scope = v } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroup) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroup) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroup) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroup) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroup) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -583,6 +548,9 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug @@ -595,12 +563,6 @@ func (o VLANGroup) ToMap() (map[string]interface{}, error) { if o.Scope != nil { toSerialize["scope"] = o.Scope } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -669,14 +631,13 @@ func (o *VLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") delete(additionalProperties, "scope") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_group_request.go b/model_vlan_group_request.go index fb2c9e458..25957b2b0 100644 --- a/model_vlan_group_request.go +++ b/model_vlan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,10 @@ var _ MappedNullable = &VLANGroupRequest{} // VLANGroupRequest Adds support for custom fields and tags. type VLANGroupRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - ScopeType NullableString `json:"scope_type,omitempty"` - ScopeId NullableInt32 `json:"scope_id,omitempty"` - // Lowest permissible ID of a child VLAN - MinVid *int32 `json:"min_vid,omitempty"` - // Highest permissible ID of a child VLAN - MaxVid *int32 `json:"max_vid,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + ScopeType NullableString `json:"scope_type,omitempty"` + ScopeId NullableInt32 `json:"scope_id,omitempty"` Description *string `json:"description,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` @@ -189,70 +185,6 @@ func (o *VLANGroupRequest) UnsetScopeId() { o.ScopeId.Unset() } -// GetMinVid returns the MinVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMinVid() int32 { - if o == nil || IsNil(o.MinVid) { - var ret int32 - return ret - } - return *o.MinVid -} - -// GetMinVidOk returns a tuple with the MinVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMinVidOk() (*int32, bool) { - if o == nil || IsNil(o.MinVid) { - return nil, false - } - return o.MinVid, true -} - -// HasMinVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMinVid() bool { - if o != nil && !IsNil(o.MinVid) { - return true - } - - return false -} - -// SetMinVid gets a reference to the given int32 and assigns it to the MinVid field. -func (o *VLANGroupRequest) SetMinVid(v int32) { - o.MinVid = &v -} - -// GetMaxVid returns the MaxVid field value if set, zero value otherwise. -func (o *VLANGroupRequest) GetMaxVid() int32 { - if o == nil || IsNil(o.MaxVid) { - var ret int32 - return ret - } - return *o.MaxVid -} - -// GetMaxVidOk returns a tuple with the MaxVid field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *VLANGroupRequest) GetMaxVidOk() (*int32, bool) { - if o == nil || IsNil(o.MaxVid) { - return nil, false - } - return o.MaxVid, true -} - -// HasMaxVid returns a boolean if a field has been set. -func (o *VLANGroupRequest) HasMaxVid() bool { - if o != nil && !IsNil(o.MaxVid) { - return true - } - - return false -} - -// SetMaxVid gets a reference to the given int32 and assigns it to the MaxVid field. -func (o *VLANGroupRequest) SetMaxVid(v int32) { - o.MaxVid = &v -} - // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANGroupRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -367,12 +299,6 @@ func (o VLANGroupRequest) ToMap() (map[string]interface{}, error) { if o.ScopeId.IsSet() { toSerialize["scope_id"] = o.ScopeId.Get() } - if !IsNil(o.MinVid) { - toSerialize["min_vid"] = o.MinVid - } - if !IsNil(o.MaxVid) { - toSerialize["max_vid"] = o.MaxVid - } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -430,8 +356,6 @@ func (o *VLANGroupRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "slug") delete(additionalProperties, "scope_type") delete(additionalProperties, "scope_id") - delete(additionalProperties, "min_vid") - delete(additionalProperties, "max_vid") delete(additionalProperties, "description") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") diff --git a/model_vlan_request.go b/model_vlan_request.go index af65d4166..39a411338 100644 --- a/model_vlan_request.go +++ b/model_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,18 @@ var _ MappedNullable = &VLANRequest{} // VLANRequest Adds support for custom fields and tags. type VLANRequest struct { + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) - Vid int32 `json:"vid"` - Name string `json:"name"` - Description *string `json:"description,omitempty"` + Vid int32 `json:"vid"` + Name string `json:"name"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Status *IPRangeStatusValue `json:"status,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -48,6 +56,92 @@ func NewVLANRequestWithDefaults() *VLANRequest { return &this } +// GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetSite() BriefSiteRequest { + if o == nil || IsNil(o.Site.Get()) { + var ret BriefSiteRequest + return ret + } + return *o.Site.Get() +} + +// GetSiteOk returns a tuple with the Site field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { + if o == nil { + return nil, false + } + return o.Site.Get(), o.Site.IsSet() +} + +// HasSite returns a boolean if a field has been set. +func (o *VLANRequest) HasSite() bool { + if o != nil && o.Site.IsSet() { + return true + } + + return false +} + +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *VLANRequest) SetSite(v BriefSiteRequest) { + o.Site.Set(&v) +} + +// SetSiteNil sets the value for Site to be an explicit nil +func (o *VLANRequest) SetSiteNil() { + o.Site.Set(nil) +} + +// UnsetSite ensures that no value is present for Site, not even an explicit nil +func (o *VLANRequest) UnsetSite() { + o.Site.Unset() +} + +// GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetGroup() BriefVLANGroupRequest { + if o == nil || IsNil(o.Group.Get()) { + var ret BriefVLANGroupRequest + return ret + } + return *o.Group.Get() +} + +// GetGroupOk returns a tuple with the Group field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { + if o == nil { + return nil, false + } + return o.Group.Get(), o.Group.IsSet() +} + +// HasGroup returns a boolean if a field has been set. +func (o *VLANRequest) HasGroup() bool { + if o != nil && o.Group.IsSet() { + return true + } + + return false +} + +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *VLANRequest) SetGroup(v BriefVLANGroupRequest) { + o.Group.Set(&v) +} + +// SetGroupNil sets the value for Group to be an explicit nil +func (o *VLANRequest) SetGroupNil() { + o.Group.Set(nil) +} + +// UnsetGroup ensures that no value is present for Group, not even an explicit nil +func (o *VLANRequest) UnsetGroup() { + o.Group.Unset() +} + // GetVid returns the Vid field value func (o *VLANRequest) GetVid() int32 { if o == nil { @@ -96,6 +190,124 @@ func (o *VLANRequest) SetName(v string) { o.Name = v } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VLANRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VLANRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VLANRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VLANRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetStatus returns the Status field value if set, zero value otherwise. +func (o *VLANRequest) GetStatus() IPRangeStatusValue { + if o == nil || IsNil(o.Status) { + var ret IPRangeStatusValue + return ret + } + return *o.Status +} + +// GetStatusOk returns a tuple with the Status field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetStatusOk() (*IPRangeStatusValue, bool) { + if o == nil || IsNil(o.Status) { + return nil, false + } + return o.Status, true +} + +// HasStatus returns a boolean if a field has been set. +func (o *VLANRequest) HasStatus() bool { + if o != nil && !IsNil(o.Status) { + return true + } + + return false +} + +// SetStatus gets a reference to the given IPRangeStatusValue and assigns it to the Status field. +func (o *VLANRequest) SetStatus(v IPRangeStatusValue) { + o.Status = &v +} + +// GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VLANRequest) GetRole() BriefRoleRequest { + if o == nil || IsNil(o.Role.Get()) { + var ret BriefRoleRequest + return ret + } + return *o.Role.Get() +} + +// GetRoleOk returns a tuple with the Role field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { + if o == nil { + return nil, false + } + return o.Role.Get(), o.Role.IsSet() +} + +// HasRole returns a boolean if a field has been set. +func (o *VLANRequest) HasRole() bool { + if o != nil && o.Role.IsSet() { + return true + } + + return false +} + +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *VLANRequest) SetRole(v BriefRoleRequest) { + o.Role.Set(&v) +} + +// SetRoleNil sets the value for Role to be an explicit nil +func (o *VLANRequest) SetRoleNil() { + o.Role.Set(nil) +} + +// UnsetRole ensures that no value is present for Role, not even an explicit nil +func (o *VLANRequest) UnsetRole() { + o.Role.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VLANRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -128,6 +340,102 @@ func (o *VLANRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VLANRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VLANRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VLANRequest) SetComments(v string) { + o.Comments = &v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VLANRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VLANRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VLANRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VLANRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VLANRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VLANRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VLANRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VLANRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -138,11 +446,35 @@ func (o VLANRequest) MarshalJSON() ([]byte, error) { func (o VLANRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} + if o.Site.IsSet() { + toSerialize["site"] = o.Site.Get() + } + if o.Group.IsSet() { + toSerialize["group"] = o.Group.Get() + } toSerialize["vid"] = o.Vid toSerialize["name"] = o.Name + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.Status) { + toSerialize["status"] = o.Status + } + if o.Role.IsSet() { + toSerialize["role"] = o.Role.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -187,9 +519,17 @@ func (o *VLANRequest) UnmarshalJSON(data []byte) (err error) { additionalProperties := make(map[string]interface{}) if err = json.Unmarshal(data, &additionalProperties); err == nil { + delete(additionalProperties, "site") + delete(additionalProperties, "group") delete(additionalProperties, "vid") delete(additionalProperties, "name") + delete(additionalProperties, "tenant") + delete(additionalProperties, "status") + delete(additionalProperties, "role") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_vm_interface.go b/model_vm_interface.go index ebe068fef..c4f6379a2 100644 --- a/model_vm_interface.go +++ b/model_vm_interface.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,28 +21,29 @@ var _ MappedNullable = &VMInterface{} // VMInterface Adds support for custom fields and tags. type VMInterface struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - VirtualMachine VirtualMachine `json:"virtual_machine"` - Name string `json:"name"` - Enabled *bool `json:"enabled,omitempty"` - Parent NullableNestedVMInterface `json:"parent,omitempty"` - Bridge NullableNestedVMInterface `json:"bridge,omitempty"` - Mtu NullableInt32 `json:"mtu,omitempty"` - MacAddress NullableString `json:"mac_address,omitempty"` - Description *string `json:"description,omitempty"` - Mode *InterfaceMode `json:"mode,omitempty"` - UntaggedVlan NullableVLAN `json:"untagged_vlan,omitempty"` - TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` - Vrf NullableVRF `json:"vrf,omitempty"` - L2vpnTermination NullableL2VPNTermination `json:"l2vpn_termination"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` - CountIpaddresses int32 `json:"count_ipaddresses"` - CountFhrpGroups int32 `json:"count_fhrp_groups"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + VirtualMachine BriefVirtualMachine `json:"virtual_machine"` + Name string `json:"name"` + Enabled *bool `json:"enabled,omitempty"` + Parent NullableNestedVMInterface `json:"parent,omitempty"` + Bridge NullableNestedVMInterface `json:"bridge,omitempty"` + Mtu NullableInt32 `json:"mtu,omitempty"` + MacAddress NullableString `json:"mac_address,omitempty"` + Description *string `json:"description,omitempty"` + Mode *InterfaceMode `json:"mode,omitempty"` + UntaggedVlan NullableBriefVLAN `json:"untagged_vlan,omitempty"` + TaggedVlans []VLAN `json:"tagged_vlans,omitempty"` + Vrf NullableBriefVRF `json:"vrf,omitempty"` + L2vpnTermination NullableBriefL2VPNTermination `json:"l2vpn_termination"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + CountIpaddresses int32 `json:"count_ipaddresses"` + CountFhrpGroups int32 `json:"count_fhrp_groups"` AdditionalProperties map[string]interface{} } @@ -52,7 +53,7 @@ type _VMInterface VMInterface // 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 NewVMInterface(id int32, url string, display string, virtualMachine VirtualMachine, name string, l2vpnTermination NullableL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { +func NewVMInterface(id int32, url string, display string, virtualMachine BriefVirtualMachine, name string, l2vpnTermination NullableBriefL2VPNTermination, created NullableTime, lastUpdated NullableTime, countIpaddresses int32, countFhrpGroups int32) *VMInterface { this := VMInterface{} this.Id = id this.Url = url @@ -123,6 +124,38 @@ func (o *VMInterface) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VMInterface) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VMInterface) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VMInterface) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VMInterface) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VMInterface) GetDisplay() string { if o == nil { @@ -148,9 +181,9 @@ func (o *VMInterface) SetDisplay(v string) { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterface) GetVirtualMachine() VirtualMachine { +func (o *VMInterface) GetVirtualMachine() BriefVirtualMachine { if o == nil { - var ret VirtualMachine + var ret BriefVirtualMachine return ret } @@ -159,7 +192,7 @@ func (o *VMInterface) GetVirtualMachine() VirtualMachine { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { +func (o *VMInterface) GetVirtualMachineOk() (*BriefVirtualMachine, bool) { if o == nil { return nil, false } @@ -167,7 +200,7 @@ func (o *VMInterface) GetVirtualMachineOk() (*VirtualMachine, bool) { } // SetVirtualMachine sets field value -func (o *VMInterface) SetVirtualMachine(v VirtualMachine) { +func (o *VMInterface) SetVirtualMachine(v BriefVirtualMachine) { o.VirtualMachine = v } @@ -464,9 +497,9 @@ func (o *VMInterface) SetMode(v InterfaceMode) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetUntaggedVlan() VLAN { +func (o *VMInterface) GetUntaggedVlan() BriefVLAN { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.UntaggedVlan.Get() @@ -475,7 +508,7 @@ func (o *VMInterface) GetUntaggedVlan() VLAN { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetUntaggedVlanOk() (*VLAN, bool) { +func (o *VMInterface) GetUntaggedVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -491,8 +524,8 @@ func (o *VMInterface) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLAN and assigns it to the UntaggedVlan field. -func (o *VMInterface) SetUntaggedVlan(v VLAN) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLAN and assigns it to the UntaggedVlan field. +func (o *VMInterface) SetUntaggedVlan(v BriefVLAN) { o.UntaggedVlan.Set(&v) } @@ -539,9 +572,9 @@ func (o *VMInterface) SetTaggedVlans(v []VLAN) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterface) GetVrf() VRF { +func (o *VMInterface) GetVrf() BriefVRF { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRF + var ret BriefVRF return ret } return *o.Vrf.Get() @@ -550,7 +583,7 @@ func (o *VMInterface) GetVrf() VRF { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetVrfOk() (*VRF, bool) { +func (o *VMInterface) GetVrfOk() (*BriefVRF, bool) { if o == nil { return nil, false } @@ -566,8 +599,8 @@ func (o *VMInterface) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRF and assigns it to the Vrf field. -func (o *VMInterface) SetVrf(v VRF) { +// SetVrf gets a reference to the given NullableBriefVRF and assigns it to the Vrf field. +func (o *VMInterface) SetVrf(v BriefVRF) { o.Vrf.Set(&v) } @@ -582,10 +615,10 @@ func (o *VMInterface) UnsetVrf() { } // GetL2vpnTermination returns the L2vpnTermination field value -// If the value is explicit nil, the zero value for L2VPNTermination will be returned -func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { +// If the value is explicit nil, the zero value for BriefL2VPNTermination will be returned +func (o *VMInterface) GetL2vpnTermination() BriefL2VPNTermination { if o == nil || o.L2vpnTermination.Get() == nil { - var ret L2VPNTermination + var ret BriefL2VPNTermination return ret } @@ -595,7 +628,7 @@ func (o *VMInterface) GetL2vpnTermination() L2VPNTermination { // GetL2vpnTerminationOk returns a tuple with the L2vpnTermination field value // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { +func (o *VMInterface) GetL2vpnTerminationOk() (*BriefL2VPNTermination, bool) { if o == nil { return nil, false } @@ -603,7 +636,7 @@ func (o *VMInterface) GetL2vpnTerminationOk() (*L2VPNTermination, bool) { } // SetL2vpnTermination sets field value -func (o *VMInterface) SetL2vpnTermination(v L2VPNTermination) { +func (o *VMInterface) SetL2vpnTermination(v BriefL2VPNTermination) { o.L2vpnTermination.Set(&v) } @@ -783,6 +816,9 @@ func (o VMInterface) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["virtual_machine"] = o.VirtualMachine toSerialize["name"] = o.Name @@ -881,6 +917,7 @@ func (o *VMInterface) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "virtual_machine") delete(additionalProperties, "name") diff --git a/model_vm_interface_request.go b/model_vm_interface_request.go index 17f56f869..b701d9b72 100644 --- a/model_vm_interface_request.go +++ b/model_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &VMInterfaceRequest{} // VMInterfaceRequest Adds support for custom fields and tags. type VMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableNestedVMInterfaceRequest `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type VMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *InterfaceModeValue `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _VMInterfaceRequest VMInterfaceRequest // 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 NewVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *VMInterfaceRequest { +func NewVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *VMInterfaceRequest { this := VMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewVMInterfaceRequestWithDefaults() *VMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *VMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *VMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *VMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *VMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool } // SetVirtualMachine sets field value -func (o *VMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *VMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *VMInterfaceRequest) SetMode(v InterfaceModeValue) { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *VMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *VMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *VMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *VMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *VMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *VMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *VMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *VMInterfaceRequest) GetVrf() VRFRequest { +func (o *VMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *VMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *VMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *VMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *VMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *VMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *VMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_vrf.go b/model_vrf.go index e060fd153..1d8240cfb 100644 --- a/model_vrf.go +++ b/model_vrf.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the VRF type satisfies the MappedNullable interface at compile time @@ -20,14 +21,26 @@ var _ MappedNullable = &VRF{} // VRF Adds support for custom fields and tags. type VRF struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` - PrefixCount *int64 `json:"prefix_count,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + // Prevent duplicate prefixes/IP addresses within this VRF + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []RouteTarget `json:"import_targets,omitempty"` + ExportTargets []RouteTarget `json:"export_targets,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + IpaddressCount int64 `json:"ipaddress_count"` + PrefixCount *int64 `json:"prefix_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,12 +50,15 @@ type _VRF VRF // 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 NewVRF(id int32, url string, display string, name string) *VRF { +func NewVRF(id int32, url string, display string, name string, created NullableTime, lastUpdated NullableTime, ipaddressCount int64) *VRF { this := VRF{} this.Id = id this.Url = url this.Display = display this.Name = name + this.Created = created + this.LastUpdated = lastUpdated + this.IpaddressCount = ipaddressCount return &this } @@ -102,6 +118,38 @@ func (o *VRF) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *VRF) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *VRF) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *VRF) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *VRF) GetDisplay() string { if o == nil { @@ -193,6 +241,81 @@ func (o *VRF) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRF) GetTenant() BriefTenant { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenant + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetTenantOk() (*BriefTenant, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VRF) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *VRF) SetTenant(v BriefTenant) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRF) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRF) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRF) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRF) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRF) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRF) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -225,6 +348,242 @@ func (o *VRF) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRF) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRF) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRF) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRF) GetImportTargets() []RouteTarget { + if o == nil || IsNil(o.ImportTargets) { + var ret []RouteTarget + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetImportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRF) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []RouteTarget and assigns it to the ImportTargets field. +func (o *VRF) SetImportTargets(v []RouteTarget) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRF) GetExportTargets() []RouteTarget { + if o == nil || IsNil(o.ExportTargets) { + var ret []RouteTarget + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetExportTargetsOk() ([]RouteTarget, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRF) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []RouteTarget and assigns it to the ExportTargets field. +func (o *VRF) SetExportTargets(v []RouteTarget) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRF) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VRF) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *VRF) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRF) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRF) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VRF) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VRF) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VRF) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *VRF) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *VRF) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRF) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *VRF) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + +// GetIpaddressCount returns the IpaddressCount field value +func (o *VRF) GetIpaddressCount() int64 { + if o == nil { + var ret int64 + return ret + } + + return o.IpaddressCount +} + +// GetIpaddressCountOk returns a tuple with the IpaddressCount field value +// and a boolean to check if the value has been set. +func (o *VRF) GetIpaddressCountOk() (*int64, bool) { + if o == nil { + return nil, false + } + return &o.IpaddressCount, true +} + +// SetIpaddressCount sets field value +func (o *VRF) SetIpaddressCount(v int64) { + o.IpaddressCount = v +} + // GetPrefixCount returns the PrefixCount field value if set, zero value otherwise. func (o *VRF) GetPrefixCount() int64 { if o == nil || IsNil(o.PrefixCount) { @@ -269,14 +628,41 @@ func (o VRF) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() + toSerialize["ipaddress_count"] = o.IpaddressCount if !IsNil(o.PrefixCount) { toSerialize["prefix_count"] = o.PrefixCount } @@ -297,6 +683,9 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", + "created", + "last_updated", + "ipaddress_count", } allProperties := make(map[string]interface{}) @@ -328,10 +717,21 @@ func (o *VRF) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") + delete(additionalProperties, "ipaddress_count") delete(additionalProperties, "prefix_count") o.AdditionalProperties = additionalProperties } diff --git a/model_vrf_request.go b/model_vrf_request.go index 16ae86557..685eb927a 100644 --- a/model_vrf_request.go +++ b/model_vrf_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,8 +22,16 @@ var _ MappedNullable = &VRFRequest{} type VRFRequest struct { Name string `json:"name"` // Unique route distinguisher (as defined in RFC 4364) - Rd NullableString `json:"rd,omitempty"` - Description *string `json:"description,omitempty"` + Rd NullableString `json:"rd,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + // Prevent duplicate prefixes/IP addresses within this VRF + EnforceUnique *bool `json:"enforce_unique,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -114,6 +122,81 @@ func (o *VRFRequest) UnsetRd() { o.Rd.Unset() } +// GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *VRFRequest) GetTenant() BriefTenantRequest { + if o == nil || IsNil(o.Tenant.Get()) { + var ret BriefTenantRequest + return ret + } + return *o.Tenant.Get() +} + +// GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *VRFRequest) GetTenantOk() (*BriefTenantRequest, bool) { + if o == nil { + return nil, false + } + return o.Tenant.Get(), o.Tenant.IsSet() +} + +// HasTenant returns a boolean if a field has been set. +func (o *VRFRequest) HasTenant() bool { + if o != nil && o.Tenant.IsSet() { + return true + } + + return false +} + +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *VRFRequest) SetTenant(v BriefTenantRequest) { + o.Tenant.Set(&v) +} + +// SetTenantNil sets the value for Tenant to be an explicit nil +func (o *VRFRequest) SetTenantNil() { + o.Tenant.Set(nil) +} + +// UnsetTenant ensures that no value is present for Tenant, not even an explicit nil +func (o *VRFRequest) UnsetTenant() { + o.Tenant.Unset() +} + +// GetEnforceUnique returns the EnforceUnique field value if set, zero value otherwise. +func (o *VRFRequest) GetEnforceUnique() bool { + if o == nil || IsNil(o.EnforceUnique) { + var ret bool + return ret + } + return *o.EnforceUnique +} + +// GetEnforceUniqueOk returns a tuple with the EnforceUnique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetEnforceUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.EnforceUnique) { + return nil, false + } + return o.EnforceUnique, true +} + +// HasEnforceUnique returns a boolean if a field has been set. +func (o *VRFRequest) HasEnforceUnique() bool { + if o != nil && !IsNil(o.EnforceUnique) { + return true + } + + return false +} + +// SetEnforceUnique gets a reference to the given bool and assigns it to the EnforceUnique field. +func (o *VRFRequest) SetEnforceUnique(v bool) { + o.EnforceUnique = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *VRFRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -146,6 +229,166 @@ func (o *VRFRequest) SetDescription(v string) { o.Description = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *VRFRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *VRFRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *VRFRequest) SetComments(v string) { + o.Comments = &v +} + +// GetImportTargets returns the ImportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetImportTargets() []int32 { + if o == nil || IsNil(o.ImportTargets) { + var ret []int32 + return ret + } + return o.ImportTargets +} + +// GetImportTargetsOk returns a tuple with the ImportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetImportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ImportTargets) { + return nil, false + } + return o.ImportTargets, true +} + +// HasImportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasImportTargets() bool { + if o != nil && !IsNil(o.ImportTargets) { + return true + } + + return false +} + +// SetImportTargets gets a reference to the given []int32 and assigns it to the ImportTargets field. +func (o *VRFRequest) SetImportTargets(v []int32) { + o.ImportTargets = v +} + +// GetExportTargets returns the ExportTargets field value if set, zero value otherwise. +func (o *VRFRequest) GetExportTargets() []int32 { + if o == nil || IsNil(o.ExportTargets) { + var ret []int32 + return ret + } + return o.ExportTargets +} + +// GetExportTargetsOk returns a tuple with the ExportTargets field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetExportTargetsOk() ([]int32, bool) { + if o == nil || IsNil(o.ExportTargets) { + return nil, false + } + return o.ExportTargets, true +} + +// HasExportTargets returns a boolean if a field has been set. +func (o *VRFRequest) HasExportTargets() bool { + if o != nil && !IsNil(o.ExportTargets) { + return true + } + + return false +} + +// SetExportTargets gets a reference to the given []int32 and assigns it to the ExportTargets field. +func (o *VRFRequest) SetExportTargets(v []int32) { + o.ExportTargets = v +} + +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *VRFRequest) GetTags() []NestedTagRequest { + if o == nil || IsNil(o.Tags) { + var ret []NestedTagRequest + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetTagsOk() ([]NestedTagRequest, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *VRFRequest) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTagRequest and assigns it to the Tags field. +func (o *VRFRequest) SetTags(v []NestedTagRequest) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *VRFRequest) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *VRFRequest) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *VRFRequest) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *VRFRequest) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + func (o VRFRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -160,9 +403,30 @@ func (o VRFRequest) ToMap() (map[string]interface{}, error) { if o.Rd.IsSet() { toSerialize["rd"] = o.Rd.Get() } + if o.Tenant.IsSet() { + toSerialize["tenant"] = o.Tenant.Get() + } + if !IsNil(o.EnforceUnique) { + toSerialize["enforce_unique"] = o.EnforceUnique + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } + if !IsNil(o.ImportTargets) { + toSerialize["import_targets"] = o.ImportTargets + } + if !IsNil(o.ExportTargets) { + toSerialize["export_targets"] = o.ExportTargets + } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -208,7 +472,14 @@ func (o *VRFRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "name") delete(additionalProperties, "rd") + delete(additionalProperties, "tenant") + delete(additionalProperties, "enforce_unique") delete(additionalProperties, "description") + delete(additionalProperties, "comments") + delete(additionalProperties, "import_targets") + delete(additionalProperties, "export_targets") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_webhook.go b/model_webhook.go index 598066292..e4edf6d70 100644 --- a/model_webhook.go +++ b/model_webhook.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -23,6 +23,7 @@ var _ MappedNullable = &Webhook{} type Webhook struct { Id int32 `json:"id"` Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` Display string `json:"display"` Name string `json:"name"` Description *string `json:"description,omitempty"` @@ -122,6 +123,38 @@ func (o *Webhook) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *Webhook) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *Webhook) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *Webhook) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *Webhook) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *Webhook) GetDisplay() string { if o == nil { @@ -589,6 +622,9 @@ func (o Webhook) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name if !IsNil(o.Description) { @@ -675,6 +711,7 @@ func (o *Webhook) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "description") diff --git a/model_webhook_request.go b/model_webhook_request.go index 09152c9ce..b73d9b4c4 100644 --- a/model_webhook_request.go +++ b/model_webhook_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_channel.go b/model_wireless_channel.go index 0950f88f1..408255a19 100644 --- a/model_wireless_channel.go +++ b/model_wireless_channel.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,12 +15,17 @@ import ( "fmt" ) -// WirelessChannel * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +// WirelessChannel the model 'WirelessChannel' type WirelessChannel string // List of Wireless_channel const ( + WIRELESSCHANNEL_EMPTY WirelessChannel = "" WIRELESSCHANNEL__2_4G_1_2412_22 WirelessChannel = "2.4g-1-2412-22" + WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22" + WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22" + WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22" + WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22" WIRELESSCHANNEL__2_4G_2_2417_22 WirelessChannel = "2.4g-2-2417-22" WIRELESSCHANNEL__2_4G_3_2422_22 WirelessChannel = "2.4g-3-2422-22" WIRELESSCHANNEL__2_4G_4_2427_22 WirelessChannel = "2.4g-4-2427-22" @@ -29,27 +34,6 @@ const ( WIRELESSCHANNEL__2_4G_7_2442_22 WirelessChannel = "2.4g-7-2442-22" WIRELESSCHANNEL__2_4G_8_2447_22 WirelessChannel = "2.4g-8-2447-22" WIRELESSCHANNEL__2_4G_9_2452_22 WirelessChannel = "2.4g-9-2452-22" - WIRELESSCHANNEL__2_4G_10_2457_22 WirelessChannel = "2.4g-10-2457-22" - WIRELESSCHANNEL__2_4G_11_2462_22 WirelessChannel = "2.4g-11-2462-22" - WIRELESSCHANNEL__2_4G_12_2467_22 WirelessChannel = "2.4g-12-2467-22" - WIRELESSCHANNEL__2_4G_13_2472_22 WirelessChannel = "2.4g-13-2472-22" - WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20" - WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40" - WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20" - WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40" - WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20" - WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80" - WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20" - WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40" - WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20" - WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160" - WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20" - WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40" - WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20" - WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80" - WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20" - WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40" - WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20" WIRELESSCHANNEL__5G_100_5500_20 WirelessChannel = "5g-100-5500-20" WIRELESSCHANNEL__5G_102_5510_40 WirelessChannel = "5g-102-5510-40" WIRELESSCHANNEL__5G_104_5520_20 WirelessChannel = "5g-104-5520-20" @@ -87,60 +71,48 @@ const ( WIRELESSCHANNEL__5G_173_5865_20 WirelessChannel = "5g-173-5865-20" WIRELESSCHANNEL__5G_175_5875_40 WirelessChannel = "5g-175-5875-40" WIRELESSCHANNEL__5G_177_5885_20 WirelessChannel = "5g-177-5885-20" + WIRELESSCHANNEL__5G_32_5160_20 WirelessChannel = "5g-32-5160-20" + WIRELESSCHANNEL__5G_34_5170_40 WirelessChannel = "5g-34-5170-40" + WIRELESSCHANNEL__5G_36_5180_20 WirelessChannel = "5g-36-5180-20" + WIRELESSCHANNEL__5G_38_5190_40 WirelessChannel = "5g-38-5190-40" + WIRELESSCHANNEL__5G_40_5200_20 WirelessChannel = "5g-40-5200-20" + WIRELESSCHANNEL__5G_42_5210_80 WirelessChannel = "5g-42-5210-80" + WIRELESSCHANNEL__5G_44_5220_20 WirelessChannel = "5g-44-5220-20" + WIRELESSCHANNEL__5G_46_5230_40 WirelessChannel = "5g-46-5230-40" + WIRELESSCHANNEL__5G_48_5240_20 WirelessChannel = "5g-48-5240-20" + WIRELESSCHANNEL__5G_50_5250_160 WirelessChannel = "5g-50-5250-160" + WIRELESSCHANNEL__5G_52_5260_20 WirelessChannel = "5g-52-5260-20" + WIRELESSCHANNEL__5G_54_5270_40 WirelessChannel = "5g-54-5270-40" + WIRELESSCHANNEL__5G_56_5280_20 WirelessChannel = "5g-56-5280-20" + WIRELESSCHANNEL__5G_58_5290_80 WirelessChannel = "5g-58-5290-80" + WIRELESSCHANNEL__5G_60_5300_20 WirelessChannel = "5g-60-5300-20" + WIRELESSCHANNEL__5G_62_5310_40 WirelessChannel = "5g-62-5310-40" + WIRELESSCHANNEL__5G_64_5320_20 WirelessChannel = "5g-64-5320-20" + WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160" + WIRELESSCHANNEL__60G_10_61560_4320 WirelessChannel = "60g-10-61560-4320" + WIRELESSCHANNEL__60G_11_63720_4320 WirelessChannel = "60g-11-63720-4320" + WIRELESSCHANNEL__60G_12_65880_4320 WirelessChannel = "60g-12-65880-4320" + WIRELESSCHANNEL__60G_13_68040_4320 WirelessChannel = "60g-13-68040-4320" + WIRELESSCHANNEL__60G_17_60480_6480 WirelessChannel = "60g-17-60480-6480" + WIRELESSCHANNEL__60G_18_62640_6480 WirelessChannel = "60g-18-62640-6480" + WIRELESSCHANNEL__60G_19_64800_6480 WirelessChannel = "60g-19-64800-6480" + WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160" + WIRELESSCHANNEL__60G_20_66960_6480 WirelessChannel = "60g-20-66960-6480" + WIRELESSCHANNEL__60G_25_61560_6480 WirelessChannel = "60g-25-61560-6480" + WIRELESSCHANNEL__60G_26_63720_6480 WirelessChannel = "60g-26-63720-6480" + WIRELESSCHANNEL__60G_27_65880_6480 WirelessChannel = "60g-27-65880-6480" + WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160" + WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160" + WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160" + WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160" + WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320" WIRELESSCHANNEL__6G_1_5955_20 WirelessChannel = "6g-1-5955-20" - WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40" - WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20" - WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80" - WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20" - WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40" - WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20" - WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160" - WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20" - WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40" - WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20" - WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80" - WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20" - WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40" - WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20" - WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320" - WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20" - WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40" - WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20" - WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80" - WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20" - WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40" - WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20" - WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160" - WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20" - WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40" - WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20" - WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80" - WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20" - WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40" - WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20" - WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20" - WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40" - WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20" - WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80" - WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20" - WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40" - WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20" - WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160" - WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20" - WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40" - WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20" - WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80" - WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20" - WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40" - WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20" - WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320" - WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20" - WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40" WIRELESSCHANNEL__6G_101_6455_20 WirelessChannel = "6g-101-6455-20" WIRELESSCHANNEL__6G_103_6465_80 WirelessChannel = "6g-103-6465-80" WIRELESSCHANNEL__6G_105_6475_20 WirelessChannel = "6g-105-6475-20" WIRELESSCHANNEL__6G_107_6485_40 WirelessChannel = "6g-107-6485-40" WIRELESSCHANNEL__6G_109_6495_20 WirelessChannel = "6g-109-6495-20" + WIRELESSCHANNEL__6G_11_6005_40 WirelessChannel = "6g-11-6005-40" WIRELESSCHANNEL__6G_111_6505_160 WirelessChannel = "6g-111-6505-160" WIRELESSCHANNEL__6G_113_6515_20 WirelessChannel = "6g-113-6515-20" WIRELESSCHANNEL__6G_115_6525_40 WirelessChannel = "6g-115-6525-40" @@ -150,6 +122,7 @@ const ( WIRELESSCHANNEL__6G_123_6565_40 WirelessChannel = "6g-123-6565-40" WIRELESSCHANNEL__6G_125_6575_20 WirelessChannel = "6g-125-6575-20" WIRELESSCHANNEL__6G_129_6595_20 WirelessChannel = "6g-129-6595-20" + WIRELESSCHANNEL__6G_13_6015_20 WirelessChannel = "6g-13-6015-20" WIRELESSCHANNEL__6G_131_6605_40 WirelessChannel = "6g-131-6605-40" WIRELESSCHANNEL__6G_133_6615_20 WirelessChannel = "6g-133-6615-20" WIRELESSCHANNEL__6G_135_6625_80 WirelessChannel = "6g-135-6625-80" @@ -160,6 +133,7 @@ const ( WIRELESSCHANNEL__6G_145_6675_20 WirelessChannel = "6g-145-6675-20" WIRELESSCHANNEL__6G_147_6685_40 WirelessChannel = "6g-147-6685-40" WIRELESSCHANNEL__6G_149_6695_20 WirelessChannel = "6g-149-6695-20" + WIRELESSCHANNEL__6G_15_6025_160 WirelessChannel = "6g-15-6025-160" WIRELESSCHANNEL__6G_151_6705_80 WirelessChannel = "6g-151-6705-80" WIRELESSCHANNEL__6G_153_6715_20 WirelessChannel = "6g-153-6715-20" WIRELESSCHANNEL__6G_155_6725_40 WirelessChannel = "6g-155-6725-40" @@ -170,6 +144,7 @@ const ( WIRELESSCHANNEL__6G_165_6775_20 WirelessChannel = "6g-165-6775-20" WIRELESSCHANNEL__6G_167_6785_80 WirelessChannel = "6g-167-6785-80" WIRELESSCHANNEL__6G_169_6795_20 WirelessChannel = "6g-169-6795-20" + WIRELESSCHANNEL__6G_17_6035_20 WirelessChannel = "6g-17-6035-20" WIRELESSCHANNEL__6G_171_6805_40 WirelessChannel = "6g-171-6805-40" WIRELESSCHANNEL__6G_173_6815_20 WirelessChannel = "6g-173-6815-20" WIRELESSCHANNEL__6G_175_6825_160 WirelessChannel = "6g-175-6825-160" @@ -180,6 +155,7 @@ const ( WIRELESSCHANNEL__6G_185_6875_20 WirelessChannel = "6g-185-6875-20" WIRELESSCHANNEL__6G_187_6885_40 WirelessChannel = "6g-187-6885-40" WIRELESSCHANNEL__6G_189_6895_20 WirelessChannel = "6g-189-6895-20" + WIRELESSCHANNEL__6G_19_6045_40 WirelessChannel = "6g-19-6045-40" WIRELESSCHANNEL__6G_193_6915_20 WirelessChannel = "6g-193-6915-20" WIRELESSCHANNEL__6G_195_6925_40 WirelessChannel = "6g-195-6925-40" WIRELESSCHANNEL__6G_197_6935_20 WirelessChannel = "6g-197-6935-20" @@ -189,6 +165,7 @@ const ( WIRELESSCHANNEL__6G_205_6975_20 WirelessChannel = "6g-205-6975-20" WIRELESSCHANNEL__6G_207_6985_160 WirelessChannel = "6g-207-6985-160" WIRELESSCHANNEL__6G_209_6995_20 WirelessChannel = "6g-209-6995-20" + WIRELESSCHANNEL__6G_21_6055_20 WirelessChannel = "6g-21-6055-20" WIRELESSCHANNEL__6G_211_7005_40 WirelessChannel = "6g-211-7005-40" WIRELESSCHANNEL__6G_213_7015_20 WirelessChannel = "6g-213-7015-20" WIRELESSCHANNEL__6G_215_7025_80 WirelessChannel = "6g-215-7025-80" @@ -198,31 +175,59 @@ const ( WIRELESSCHANNEL__6G_225_7075_20 WirelessChannel = "6g-225-7075-20" WIRELESSCHANNEL__6G_227_7085_40 WirelessChannel = "6g-227-7085-40" WIRELESSCHANNEL__6G_229_7095_20 WirelessChannel = "6g-229-7095-20" + WIRELESSCHANNEL__6G_23_6065_80 WirelessChannel = "6g-23-6065-80" WIRELESSCHANNEL__6G_233_7115_20 WirelessChannel = "6g-233-7115-20" - WIRELESSCHANNEL__60G_1_58320_2160 WirelessChannel = "60g-1-58320-2160" - WIRELESSCHANNEL__60G_2_60480_2160 WirelessChannel = "60g-2-60480-2160" - WIRELESSCHANNEL__60G_3_62640_2160 WirelessChannel = "60g-3-62640-2160" - WIRELESSCHANNEL__60G_4_64800_2160 WirelessChannel = "60g-4-64800-2160" - WIRELESSCHANNEL__60G_5_66960_2160 WirelessChannel = "60g-5-66960-2160" - WIRELESSCHANNEL__60G_6_69120_2160 WirelessChannel = "60g-6-69120-2160" - WIRELESSCHANNEL__60G_9_59400_4320 WirelessChannel = "60g-9-59400-4320" - WIRELESSCHANNEL__60G_10_61560_4320 WirelessChannel = "60g-10-61560-4320" - WIRELESSCHANNEL__60G_11_63720_4320 WirelessChannel = "60g-11-63720-4320" - WIRELESSCHANNEL__60G_12_65880_4320 WirelessChannel = "60g-12-65880-4320" - WIRELESSCHANNEL__60G_13_68040_4320 WirelessChannel = "60g-13-68040-4320" - WIRELESSCHANNEL__60G_17_60480_6480 WirelessChannel = "60g-17-60480-6480" - WIRELESSCHANNEL__60G_18_62640_6480 WirelessChannel = "60g-18-62640-6480" - WIRELESSCHANNEL__60G_19_64800_6480 WirelessChannel = "60g-19-64800-6480" - WIRELESSCHANNEL__60G_20_66960_6480 WirelessChannel = "60g-20-66960-6480" - WIRELESSCHANNEL__60G_25_61560_6480 WirelessChannel = "60g-25-61560-6480" - WIRELESSCHANNEL__60G_26_63720_6480 WirelessChannel = "60g-26-63720-6480" - WIRELESSCHANNEL__60G_27_65880_6480 WirelessChannel = "60g-27-65880-6480" - WIRELESSCHANNEL_EMPTY WirelessChannel = "" + WIRELESSCHANNEL__6G_25_6075_20 WirelessChannel = "6g-25-6075-20" + WIRELESSCHANNEL__6G_27_6085_40 WirelessChannel = "6g-27-6085-40" + WIRELESSCHANNEL__6G_29_6095_20 WirelessChannel = "6g-29-6095-20" + WIRELESSCHANNEL__6G_3_5965_40 WirelessChannel = "6g-3-5965-40" + WIRELESSCHANNEL__6G_31_6105_320 WirelessChannel = "6g-31-6105-320" + WIRELESSCHANNEL__6G_33_6115_20 WirelessChannel = "6g-33-6115-20" + WIRELESSCHANNEL__6G_35_6125_40 WirelessChannel = "6g-35-6125-40" + WIRELESSCHANNEL__6G_37_6135_20 WirelessChannel = "6g-37-6135-20" + WIRELESSCHANNEL__6G_39_6145_80 WirelessChannel = "6g-39-6145-80" + WIRELESSCHANNEL__6G_41_6155_20 WirelessChannel = "6g-41-6155-20" + WIRELESSCHANNEL__6G_43_6165_40 WirelessChannel = "6g-43-6165-40" + WIRELESSCHANNEL__6G_45_6175_20 WirelessChannel = "6g-45-6175-20" + WIRELESSCHANNEL__6G_47_6185_160 WirelessChannel = "6g-47-6185-160" + WIRELESSCHANNEL__6G_49_6195_20 WirelessChannel = "6g-49-6195-20" + WIRELESSCHANNEL__6G_5_5975_20 WirelessChannel = "6g-5-5975-20" + WIRELESSCHANNEL__6G_51_6205_40 WirelessChannel = "6g-51-6205-40" + WIRELESSCHANNEL__6G_53_6215_20 WirelessChannel = "6g-53-6215-20" + WIRELESSCHANNEL__6G_55_6225_80 WirelessChannel = "6g-55-6225-80" + WIRELESSCHANNEL__6G_57_6235_20 WirelessChannel = "6g-57-6235-20" + WIRELESSCHANNEL__6G_59_6245_40 WirelessChannel = "6g-59-6245-40" + WIRELESSCHANNEL__6G_61_6255_20 WirelessChannel = "6g-61-6255-20" + WIRELESSCHANNEL__6G_65_6275_20 WirelessChannel = "6g-65-6275-20" + WIRELESSCHANNEL__6G_67_6285_40 WirelessChannel = "6g-67-6285-40" + WIRELESSCHANNEL__6G_69_6295_20 WirelessChannel = "6g-69-6295-20" + WIRELESSCHANNEL__6G_7_5985_80 WirelessChannel = "6g-7-5985-80" + WIRELESSCHANNEL__6G_71_6305_80 WirelessChannel = "6g-71-6305-80" + WIRELESSCHANNEL__6G_73_6315_20 WirelessChannel = "6g-73-6315-20" + WIRELESSCHANNEL__6G_75_6325_40 WirelessChannel = "6g-75-6325-40" + WIRELESSCHANNEL__6G_77_6335_20 WirelessChannel = "6g-77-6335-20" + WIRELESSCHANNEL__6G_79_6345_160 WirelessChannel = "6g-79-6345-160" + WIRELESSCHANNEL__6G_81_6355_20 WirelessChannel = "6g-81-6355-20" + WIRELESSCHANNEL__6G_83_6365_40 WirelessChannel = "6g-83-6365-40" + WIRELESSCHANNEL__6G_85_6375_20 WirelessChannel = "6g-85-6375-20" + WIRELESSCHANNEL__6G_87_6385_80 WirelessChannel = "6g-87-6385-80" + WIRELESSCHANNEL__6G_89_6395_20 WirelessChannel = "6g-89-6395-20" + WIRELESSCHANNEL__6G_9_5995_20 WirelessChannel = "6g-9-5995-20" + WIRELESSCHANNEL__6G_91_6405_40 WirelessChannel = "6g-91-6405-40" + WIRELESSCHANNEL__6G_93_6415_20 WirelessChannel = "6g-93-6415-20" + WIRELESSCHANNEL__6G_95_6425_320 WirelessChannel = "6g-95-6425-320" + WIRELESSCHANNEL__6G_97_6435_20 WirelessChannel = "6g-97-6435-20" + WIRELESSCHANNEL__6G_99_6445_40 WirelessChannel = "6g-99-6445-40" ) // All allowed values of WirelessChannel enum var AllowedWirelessChannelEnumValues = []WirelessChannel{ + "", "2.4g-1-2412-22", + "2.4g-10-2457-22", + "2.4g-11-2462-22", + "2.4g-12-2467-22", + "2.4g-13-2472-22", "2.4g-2-2417-22", "2.4g-3-2422-22", "2.4g-4-2427-22", @@ -231,27 +236,6 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "2.4g-7-2442-22", "2.4g-8-2447-22", "2.4g-9-2452-22", - "2.4g-10-2457-22", - "2.4g-11-2462-22", - "2.4g-12-2467-22", - "2.4g-13-2472-22", - "5g-32-5160-20", - "5g-34-5170-40", - "5g-36-5180-20", - "5g-38-5190-40", - "5g-40-5200-20", - "5g-42-5210-80", - "5g-44-5220-20", - "5g-46-5230-40", - "5g-48-5240-20", - "5g-50-5250-160", - "5g-52-5260-20", - "5g-54-5270-40", - "5g-56-5280-20", - "5g-58-5290-80", - "5g-60-5300-20", - "5g-62-5310-40", - "5g-64-5320-20", "5g-100-5500-20", "5g-102-5510-40", "5g-104-5520-20", @@ -289,60 +273,48 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "5g-173-5865-20", "5g-175-5875-40", "5g-177-5885-20", + "5g-32-5160-20", + "5g-34-5170-40", + "5g-36-5180-20", + "5g-38-5190-40", + "5g-40-5200-20", + "5g-42-5210-80", + "5g-44-5220-20", + "5g-46-5230-40", + "5g-48-5240-20", + "5g-50-5250-160", + "5g-52-5260-20", + "5g-54-5270-40", + "5g-56-5280-20", + "5g-58-5290-80", + "5g-60-5300-20", + "5g-62-5310-40", + "5g-64-5320-20", + "60g-1-58320-2160", + "60g-10-61560-4320", + "60g-11-63720-4320", + "60g-12-65880-4320", + "60g-13-68040-4320", + "60g-17-60480-6480", + "60g-18-62640-6480", + "60g-19-64800-6480", + "60g-2-60480-2160", + "60g-20-66960-6480", + "60g-25-61560-6480", + "60g-26-63720-6480", + "60g-27-65880-6480", + "60g-3-62640-2160", + "60g-4-64800-2160", + "60g-5-66960-2160", + "60g-6-69120-2160", + "60g-9-59400-4320", "6g-1-5955-20", - "6g-3-5965-40", - "6g-5-5975-20", - "6g-7-5985-80", - "6g-9-5995-20", - "6g-11-6005-40", - "6g-13-6015-20", - "6g-15-6025-160", - "6g-17-6035-20", - "6g-19-6045-40", - "6g-21-6055-20", - "6g-23-6065-80", - "6g-25-6075-20", - "6g-27-6085-40", - "6g-29-6095-20", - "6g-31-6105-320", - "6g-33-6115-20", - "6g-35-6125-40", - "6g-37-6135-20", - "6g-39-6145-80", - "6g-41-6155-20", - "6g-43-6165-40", - "6g-45-6175-20", - "6g-47-6185-160", - "6g-49-6195-20", - "6g-51-6205-40", - "6g-53-6215-20", - "6g-55-6225-80", - "6g-57-6235-20", - "6g-59-6245-40", - "6g-61-6255-20", - "6g-65-6275-20", - "6g-67-6285-40", - "6g-69-6295-20", - "6g-71-6305-80", - "6g-73-6315-20", - "6g-75-6325-40", - "6g-77-6335-20", - "6g-79-6345-160", - "6g-81-6355-20", - "6g-83-6365-40", - "6g-85-6375-20", - "6g-87-6385-80", - "6g-89-6395-20", - "6g-91-6405-40", - "6g-93-6415-20", - "6g-95-6425-320", - "6g-97-6435-20", - "6g-99-6445-40", "6g-101-6455-20", "6g-103-6465-80", "6g-105-6475-20", "6g-107-6485-40", "6g-109-6495-20", + "6g-11-6005-40", "6g-111-6505-160", "6g-113-6515-20", "6g-115-6525-40", @@ -352,6 +324,7 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "6g-123-6565-40", "6g-125-6575-20", "6g-129-6595-20", + "6g-13-6015-20", "6g-131-6605-40", "6g-133-6615-20", "6g-135-6625-80", @@ -362,6 +335,7 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "6g-145-6675-20", "6g-147-6685-40", "6g-149-6695-20", + "6g-15-6025-160", "6g-151-6705-80", "6g-153-6715-20", "6g-155-6725-40", @@ -372,6 +346,7 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "6g-165-6775-20", "6g-167-6785-80", "6g-169-6795-20", + "6g-17-6035-20", "6g-171-6805-40", "6g-173-6815-20", "6g-175-6825-160", @@ -382,6 +357,7 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "6g-185-6875-20", "6g-187-6885-40", "6g-189-6895-20", + "6g-19-6045-40", "6g-193-6915-20", "6g-195-6925-40", "6g-197-6935-20", @@ -391,6 +367,7 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "6g-205-6975-20", "6g-207-6985-160", "6g-209-6995-20", + "6g-21-6055-20", "6g-211-7005-40", "6g-213-7015-20", "6g-215-7025-80", @@ -400,26 +377,49 @@ var AllowedWirelessChannelEnumValues = []WirelessChannel{ "6g-225-7075-20", "6g-227-7085-40", "6g-229-7095-20", + "6g-23-6065-80", "6g-233-7115-20", - "60g-1-58320-2160", - "60g-2-60480-2160", - "60g-3-62640-2160", - "60g-4-64800-2160", - "60g-5-66960-2160", - "60g-6-69120-2160", - "60g-9-59400-4320", - "60g-10-61560-4320", - "60g-11-63720-4320", - "60g-12-65880-4320", - "60g-13-68040-4320", - "60g-17-60480-6480", - "60g-18-62640-6480", - "60g-19-64800-6480", - "60g-20-66960-6480", - "60g-25-61560-6480", - "60g-26-63720-6480", - "60g-27-65880-6480", - "", + "6g-25-6075-20", + "6g-27-6085-40", + "6g-29-6095-20", + "6g-3-5965-40", + "6g-31-6105-320", + "6g-33-6115-20", + "6g-35-6125-40", + "6g-37-6135-20", + "6g-39-6145-80", + "6g-41-6155-20", + "6g-43-6165-40", + "6g-45-6175-20", + "6g-47-6185-160", + "6g-49-6195-20", + "6g-5-5975-20", + "6g-51-6205-40", + "6g-53-6215-20", + "6g-55-6225-80", + "6g-57-6235-20", + "6g-59-6245-40", + "6g-61-6255-20", + "6g-65-6275-20", + "6g-67-6285-40", + "6g-69-6295-20", + "6g-7-5985-80", + "6g-71-6305-80", + "6g-73-6315-20", + "6g-75-6325-40", + "6g-77-6335-20", + "6g-79-6345-160", + "6g-81-6355-20", + "6g-83-6365-40", + "6g-85-6375-20", + "6g-87-6385-80", + "6g-89-6395-20", + "6g-9-5995-20", + "6g-91-6405-40", + "6g-93-6415-20", + "6g-95-6425-320", + "6g-97-6435-20", + "6g-99-6445-40", } func (v *WirelessChannel) UnmarshalJSON(src []byte) error { diff --git a/model_wireless_lan.go b/model_wireless_lan.go index 4825664b8..ef0954a8e 100644 --- a/model_wireless_lan.go +++ b/model_wireless_lan.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,23 +21,24 @@ var _ MappedNullable = &WirelessLAN{} // WirelessLAN Adds support for custom fields and tags. type WirelessLAN struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroup `json:"group,omitempty"` - Status *WirelessLANStatus `json:"status,omitempty"` - Vlan NullableVLAN `json:"vlan,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroup `json:"group,omitempty"` + Status *WirelessLANStatus `json:"status,omitempty"` + Vlan NullableBriefVLAN `json:"vlan,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -114,6 +115,38 @@ func (o *WirelessLAN) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *WirelessLAN) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLAN) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *WirelessLAN) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *WirelessLAN) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *WirelessLAN) GetDisplay() string { if o == nil { @@ -195,9 +228,9 @@ func (o *WirelessLAN) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetGroup() WirelessLANGroup { +func (o *WirelessLAN) GetGroup() BriefWirelessLANGroup { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroup + var ret BriefWirelessLANGroup return ret } return *o.Group.Get() @@ -206,7 +239,7 @@ func (o *WirelessLAN) GetGroup() WirelessLANGroup { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetGroupOk() (*WirelessLANGroup, bool) { +func (o *WirelessLAN) GetGroupOk() (*BriefWirelessLANGroup, bool) { if o == nil { return nil, false } @@ -222,8 +255,8 @@ func (o *WirelessLAN) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroup and assigns it to the Group field. -func (o *WirelessLAN) SetGroup(v WirelessLANGroup) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroup and assigns it to the Group field. +func (o *WirelessLAN) SetGroup(v BriefWirelessLANGroup) { o.Group.Set(&v) } @@ -270,9 +303,9 @@ func (o *WirelessLAN) SetStatus(v WirelessLANStatus) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetVlan() VLAN { +func (o *WirelessLAN) GetVlan() BriefVLAN { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLAN + var ret BriefVLAN return ret } return *o.Vlan.Get() @@ -281,7 +314,7 @@ func (o *WirelessLAN) GetVlan() VLAN { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetVlanOk() (*VLAN, bool) { +func (o *WirelessLAN) GetVlanOk() (*BriefVLAN, bool) { if o == nil { return nil, false } @@ -297,8 +330,8 @@ func (o *WirelessLAN) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLAN and assigns it to the Vlan field. -func (o *WirelessLAN) SetVlan(v VLAN) { +// SetVlan gets a reference to the given NullableBriefVLAN and assigns it to the Vlan field. +func (o *WirelessLAN) SetVlan(v BriefVLAN) { o.Vlan.Set(&v) } @@ -313,9 +346,9 @@ func (o *WirelessLAN) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLAN) GetTenant() Tenant { +func (o *WirelessLAN) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -324,7 +357,7 @@ func (o *WirelessLAN) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLAN) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLAN) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -340,8 +373,8 @@ func (o *WirelessLAN) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLAN) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLAN) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -611,6 +644,9 @@ func (o WirelessLAN) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["ssid"] = o.Ssid if !IsNil(o.Description) { @@ -698,6 +734,7 @@ func (o *WirelessLAN) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "ssid") delete(additionalProperties, "description") diff --git a/model_wireless_lan_auth_cipher.go b/model_wireless_lan_auth_cipher.go index 7edf6beb1..13e0d0ede 100644 --- a/model_wireless_lan_auth_cipher.go +++ b/model_wireless_lan_auth_cipher.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_label.go b/model_wireless_lan_auth_cipher_label.go index 212607db6..8a35796cf 100644 --- a/model_wireless_lan_auth_cipher_label.go +++ b/model_wireless_lan_auth_cipher_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_cipher_value.go b/model_wireless_lan_auth_cipher_value.go index e601548bd..bcd005982 100644 --- a/model_wireless_lan_auth_cipher_value.go +++ b/model_wireless_lan_auth_cipher_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type.go b/model_wireless_lan_auth_type.go index 5d67cd317..a550566ff 100644 --- a/model_wireless_lan_auth_type.go +++ b/model_wireless_lan_auth_type.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_label.go b/model_wireless_lan_auth_type_label.go index 3a804f5bc..efd90ec88 100644 --- a/model_wireless_lan_auth_type_label.go +++ b/model_wireless_lan_auth_type_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_auth_type_value.go b/model_wireless_lan_auth_type_value.go index aa1b05122..78b89179a 100644 --- a/model_wireless_lan_auth_type_value.go +++ b/model_wireless_lan_auth_type_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_group.go b/model_wireless_lan_group.go index ca2ffb94f..407c5c404 100644 --- a/model_wireless_lan_group.go +++ b/model_wireless_lan_group.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -13,6 +13,7 @@ package netbox import ( "encoding/json" "fmt" + "time" ) // checks if the WirelessLANGroup type satisfies the MappedNullable interface at compile time @@ -20,14 +21,20 @@ var _ MappedNullable = &WirelessLANGroup{} // WirelessLANGroup Extends PrimaryModelSerializer to include MPTT support. type WirelessLANGroup struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - Name string `json:"name"` - Slug string `json:"slug"` - Description *string `json:"description,omitempty"` - WirelesslanCount int32 `json:"wirelesslan_count"` - Depth int32 `json:"_depth"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + Name string `json:"name"` + Slug string `json:"slug"` + Parent NullableNestedWirelessLANGroup `json:"parent,omitempty"` + Description *string `json:"description,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` + WirelesslanCount int32 `json:"wirelesslan_count"` + Depth int32 `json:"_depth"` AdditionalProperties map[string]interface{} } @@ -37,13 +44,15 @@ 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, display string, name string, slug string, wirelesslanCount int32, depth int32) *WirelessLANGroup { +func NewWirelessLANGroup(id int32, url string, display string, name string, slug string, created NullableTime, lastUpdated NullableTime, wirelesslanCount int32, depth int32) *WirelessLANGroup { this := WirelessLANGroup{} this.Id = id this.Url = url this.Display = display this.Name = name this.Slug = slug + this.Created = created + this.LastUpdated = lastUpdated this.WirelesslanCount = wirelesslanCount this.Depth = depth return &this @@ -105,6 +114,38 @@ func (o *WirelessLANGroup) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *WirelessLANGroup) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *WirelessLANGroup) GetDisplay() string { if o == nil { @@ -177,6 +218,49 @@ func (o *WirelessLANGroup) SetSlug(v string) { o.Slug = v } +// GetParent returns the Parent field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLANGroup) GetParent() NestedWirelessLANGroup { + if o == nil || IsNil(o.Parent.Get()) { + var ret NestedWirelessLANGroup + return ret + } + return *o.Parent.Get() +} + +// GetParentOk returns a tuple with the Parent field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetParentOk() (*NestedWirelessLANGroup, bool) { + if o == nil { + return nil, false + } + return o.Parent.Get(), o.Parent.IsSet() +} + +// HasParent returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasParent() bool { + if o != nil && o.Parent.IsSet() { + return true + } + + return false +} + +// SetParent gets a reference to the given NullableNestedWirelessLANGroup and assigns it to the Parent field. +func (o *WirelessLANGroup) SetParent(v NestedWirelessLANGroup) { + o.Parent.Set(&v) +} + +// SetParentNil sets the value for Parent to be an explicit nil +func (o *WirelessLANGroup) SetParentNil() { + o.Parent.Set(nil) +} + +// UnsetParent ensures that no value is present for Parent, not even an explicit nil +func (o *WirelessLANGroup) UnsetParent() { + o.Parent.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLANGroup) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -209,6 +293,122 @@ func (o *WirelessLANGroup) SetDescription(v string) { o.Description = &v } +// GetTags returns the Tags field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetTags() []NestedTag { + if o == nil || IsNil(o.Tags) { + var ret []NestedTag + return ret + } + return o.Tags +} + +// GetTagsOk returns a tuple with the Tags field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetTagsOk() ([]NestedTag, bool) { + if o == nil || IsNil(o.Tags) { + return nil, false + } + return o.Tags, true +} + +// HasTags returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasTags() bool { + if o != nil && !IsNil(o.Tags) { + return true + } + + return false +} + +// SetTags gets a reference to the given []NestedTag and assigns it to the Tags field. +func (o *WirelessLANGroup) SetTags(v []NestedTag) { + o.Tags = v +} + +// GetCustomFields returns the CustomFields field value if set, zero value otherwise. +func (o *WirelessLANGroup) GetCustomFields() map[string]interface{} { + if o == nil || IsNil(o.CustomFields) { + var ret map[string]interface{} + return ret + } + return o.CustomFields +} + +// GetCustomFieldsOk returns a tuple with the CustomFields field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLANGroup) GetCustomFieldsOk() (map[string]interface{}, bool) { + if o == nil || IsNil(o.CustomFields) { + return map[string]interface{}{}, false + } + return o.CustomFields, true +} + +// HasCustomFields returns a boolean if a field has been set. +func (o *WirelessLANGroup) HasCustomFields() bool { + if o != nil && !IsNil(o.CustomFields) { + return true + } + + return false +} + +// SetCustomFields gets a reference to the given map[string]interface{} and assigns it to the CustomFields field. +func (o *WirelessLANGroup) SetCustomFields(v map[string]interface{}) { + o.CustomFields = v +} + +// GetCreated returns the Created field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *WirelessLANGroup) GetCreated() time.Time { + if o == nil || o.Created.Get() == nil { + var ret time.Time + return ret + } + + return *o.Created.Get() +} + +// GetCreatedOk returns a tuple with the Created field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetCreatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.Created.Get(), o.Created.IsSet() +} + +// SetCreated sets field value +func (o *WirelessLANGroup) SetCreated(v time.Time) { + o.Created.Set(&v) +} + +// GetLastUpdated returns the LastUpdated field value +// If the value is explicit nil, the zero value for time.Time will be returned +func (o *WirelessLANGroup) GetLastUpdated() time.Time { + if o == nil || o.LastUpdated.Get() == nil { + var ret time.Time + return ret + } + + return *o.LastUpdated.Get() +} + +// GetLastUpdatedOk returns a tuple with the LastUpdated field value +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLANGroup) GetLastUpdatedOk() (*time.Time, bool) { + if o == nil { + return nil, false + } + return o.LastUpdated.Get(), o.LastUpdated.IsSet() +} + +// SetLastUpdated sets field value +func (o *WirelessLANGroup) SetLastUpdated(v time.Time) { + o.LastUpdated.Set(&v) +} + // GetWirelesslanCount returns the WirelesslanCount field value func (o *WirelessLANGroup) GetWirelesslanCount() int32 { if o == nil { @@ -269,12 +469,26 @@ func (o WirelessLANGroup) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["name"] = o.Name toSerialize["slug"] = o.Slug + if o.Parent.IsSet() { + toSerialize["parent"] = o.Parent.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } + if !IsNil(o.Tags) { + toSerialize["tags"] = o.Tags + } + if !IsNil(o.CustomFields) { + toSerialize["custom_fields"] = o.CustomFields + } + toSerialize["created"] = o.Created.Get() + toSerialize["last_updated"] = o.LastUpdated.Get() toSerialize["wirelesslan_count"] = o.WirelesslanCount toSerialize["_depth"] = o.Depth @@ -295,6 +509,8 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { "display", "name", "slug", + "created", + "last_updated", "wirelesslan_count", "_depth", } @@ -328,10 +544,16 @@ func (o *WirelessLANGroup) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "name") delete(additionalProperties, "slug") + delete(additionalProperties, "parent") delete(additionalProperties, "description") + delete(additionalProperties, "tags") + delete(additionalProperties, "custom_fields") + delete(additionalProperties, "created") + delete(additionalProperties, "last_updated") delete(additionalProperties, "wirelesslan_count") delete(additionalProperties, "_depth") o.AdditionalProperties = additionalProperties diff --git a/model_wireless_lan_group_request.go b/model_wireless_lan_group_request.go index 7063e6d87..d14b844b1 100644 --- a/model_wireless_lan_group_request.go +++ b/model_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_request.go b/model_wireless_lan_request.go index f2ac3edde..31ea478ae 100644 --- a/model_wireless_lan_request.go +++ b/model_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,18 @@ var _ MappedNullable = &WirelessLANRequest{} // WirelessLANRequest Adds support for custom fields and tags. type WirelessLANRequest struct { - Ssid string `json:"ssid"` - Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` - Status *WirelessLANStatusValue `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Ssid string `json:"ssid"` + Description *string `json:"description,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` + Status *WirelessLANStatusValue `json:"status,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -112,9 +112,9 @@ func (o *WirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WirelessLANRequest) SetStatus(v WirelessLANStatusValue) { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetVlan() VLANRequest { +func (o *WirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLANRequest) GetTenant() TenantRequest { +func (o *WirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_wireless_lan_status.go b/model_wireless_lan_status.go index 0b14b4e12..bd9a465c2 100644 --- a/model_wireless_lan_status.go +++ b/model_wireless_lan_status.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_label.go b/model_wireless_lan_status_label.go index 21057de6f..b9f568e07 100644 --- a/model_wireless_lan_status_label.go +++ b/model_wireless_lan_status_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_lan_status_value.go b/model_wireless_lan_status_value.go index ac9292d67..7dc7b3941 100644 --- a/model_wireless_lan_status_value.go +++ b/model_wireless_lan_status_value.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_link.go b/model_wireless_link.go index 8626318ea..8aa94f15e 100644 --- a/model_wireless_link.go +++ b/model_wireless_link.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,23 +21,26 @@ var _ MappedNullable = &WirelessLink{} // WirelessLink Adds support for custom fields and tags. type WirelessLink struct { - Id int32 `json:"id"` - Url string `json:"url"` - Display string `json:"display"` - InterfaceA Interface `json:"interface_a"` - InterfaceB Interface `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *WirelessLinkStatus `json:"status,omitempty"` - Tenant NullableTenant `json:"tenant,omitempty"` - AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTag `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` - Created NullableTime `json:"created"` - LastUpdated NullableTime `json:"last_updated"` + Id int32 `json:"id"` + Url string `json:"url"` + DisplayUrl *string `json:"display_url,omitempty"` + Display string `json:"display"` + InterfaceA BriefInterface `json:"interface_a"` + InterfaceB BriefInterface `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatus `json:"status,omitempty"` + Tenant NullableBriefTenant `json:"tenant,omitempty"` + AuthType *WirelessLANAuthType `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipher `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableWirelessLinkDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTag `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Created NullableTime `json:"created"` + LastUpdated NullableTime `json:"last_updated"` AdditionalProperties map[string]interface{} } @@ -47,7 +50,7 @@ type _WirelessLink WirelessLink // 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 NewWirelessLink(id int32, url string, display string, interfaceA Interface, interfaceB Interface, created NullableTime, lastUpdated NullableTime) *WirelessLink { +func NewWirelessLink(id int32, url string, display string, interfaceA BriefInterface, interfaceB BriefInterface, created NullableTime, lastUpdated NullableTime) *WirelessLink { this := WirelessLink{} this.Id = id this.Url = url @@ -115,6 +118,38 @@ func (o *WirelessLink) SetUrl(v string) { o.Url = v } +// GetDisplayUrl returns the DisplayUrl field value if set, zero value otherwise. +func (o *WirelessLink) GetDisplayUrl() string { + if o == nil || IsNil(o.DisplayUrl) { + var ret string + return ret + } + return *o.DisplayUrl +} + +// GetDisplayUrlOk returns a tuple with the DisplayUrl field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WirelessLink) GetDisplayUrlOk() (*string, bool) { + if o == nil || IsNil(o.DisplayUrl) { + return nil, false + } + return o.DisplayUrl, true +} + +// HasDisplayUrl returns a boolean if a field has been set. +func (o *WirelessLink) HasDisplayUrl() bool { + if o != nil && !IsNil(o.DisplayUrl) { + return true + } + + return false +} + +// SetDisplayUrl gets a reference to the given string and assigns it to the DisplayUrl field. +func (o *WirelessLink) SetDisplayUrl(v string) { + o.DisplayUrl = &v +} + // GetDisplay returns the Display field value func (o *WirelessLink) GetDisplay() string { if o == nil { @@ -140,9 +175,9 @@ func (o *WirelessLink) SetDisplay(v string) { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLink) GetInterfaceA() Interface { +func (o *WirelessLink) GetInterfaceA() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -151,7 +186,7 @@ func (o *WirelessLink) GetInterfaceA() Interface { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceAOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -159,14 +194,14 @@ func (o *WirelessLink) GetInterfaceAOk() (*Interface, bool) { } // SetInterfaceA sets field value -func (o *WirelessLink) SetInterfaceA(v Interface) { +func (o *WirelessLink) SetInterfaceA(v BriefInterface) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLink) GetInterfaceB() Interface { +func (o *WirelessLink) GetInterfaceB() BriefInterface { if o == nil { - var ret Interface + var ret BriefInterface return ret } @@ -175,7 +210,7 @@ func (o *WirelessLink) GetInterfaceB() Interface { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { +func (o *WirelessLink) GetInterfaceBOk() (*BriefInterface, bool) { if o == nil { return nil, false } @@ -183,7 +218,7 @@ func (o *WirelessLink) GetInterfaceBOk() (*Interface, bool) { } // SetInterfaceB sets field value -func (o *WirelessLink) SetInterfaceB(v Interface) { +func (o *WirelessLink) SetInterfaceB(v BriefInterface) { o.InterfaceB = v } @@ -220,9 +255,9 @@ func (o *WirelessLink) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLink) GetStatus() WirelessLinkStatus { +func (o *WirelessLink) GetStatus() CableStatus { if o == nil || IsNil(o.Status) { - var ret WirelessLinkStatus + var ret CableStatus return ret } return *o.Status @@ -230,7 +265,7 @@ func (o *WirelessLink) GetStatus() WirelessLinkStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLink) GetStatusOk() (*WirelessLinkStatus, bool) { +func (o *WirelessLink) GetStatusOk() (*CableStatus, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -246,15 +281,15 @@ func (o *WirelessLink) HasStatus() bool { return false } -// SetStatus gets a reference to the given WirelessLinkStatus and assigns it to the Status field. -func (o *WirelessLink) SetStatus(v WirelessLinkStatus) { +// SetStatus gets a reference to the given CableStatus and assigns it to the Status field. +func (o *WirelessLink) SetStatus(v CableStatus) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLink) GetTenant() Tenant { +func (o *WirelessLink) GetTenant() BriefTenant { if o == nil || IsNil(o.Tenant.Get()) { - var ret Tenant + var ret BriefTenant return ret } return *o.Tenant.Get() @@ -263,7 +298,7 @@ func (o *WirelessLink) GetTenant() Tenant { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLink) GetTenantOk() (*Tenant, bool) { +func (o *WirelessLink) GetTenantOk() (*BriefTenant, bool) { if o == nil { return nil, false } @@ -279,8 +314,8 @@ func (o *WirelessLink) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenant and assigns it to the Tenant field. -func (o *WirelessLink) SetTenant(v Tenant) { +// SetTenant gets a reference to the given NullableBriefTenant and assigns it to the Tenant field. +func (o *WirelessLink) SetTenant(v BriefTenant) { o.Tenant.Set(&v) } @@ -390,6 +425,92 @@ func (o *WirelessLink) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLink) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLink) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLink) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLink) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLink) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLink) GetDistanceUnit() WirelessLinkDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret WirelessLinkDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLink) GetDistanceUnitOk() (*WirelessLinkDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLink) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableWirelessLinkDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLink) SetDistanceUnit(v WirelessLinkDistanceUnit) { + o.DistanceUnit.Set(&v) +} + +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLink) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLink) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLink) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -582,6 +703,9 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["id"] = o.Id toSerialize["url"] = o.Url + if !IsNil(o.DisplayUrl) { + toSerialize["display_url"] = o.DisplayUrl + } toSerialize["display"] = o.Display toSerialize["interface_a"] = o.InterfaceA toSerialize["interface_b"] = o.InterfaceB @@ -603,6 +727,12 @@ func (o WirelessLink) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -668,6 +798,7 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "id") delete(additionalProperties, "url") + delete(additionalProperties, "display_url") delete(additionalProperties, "display") delete(additionalProperties, "interface_a") delete(additionalProperties, "interface_b") @@ -677,6 +808,8 @@ func (o *WirelessLink) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_distance_unit.go b/model_wireless_link_distance_unit.go index 6591aa6ae..52d01197c 100644 --- a/model_wireless_link_distance_unit.go +++ b/model_wireless_link_distance_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_link_distance_unit_label.go b/model_wireless_link_distance_unit_label.go index b475c01b0..62d196de1 100644 --- a/model_wireless_link_distance_unit_label.go +++ b/model_wireless_link_distance_unit_label.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_link_request.go b/model_wireless_link_request.go index ac8afc386..b1da4da09 100644 --- a/model_wireless_link_request.go +++ b/model_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WirelessLinkRequest{} // WirelessLinkRequest Adds support for custom fields and tags. type WirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` - AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *WirelessLANAuthTypeValue `json:"auth_type,omitempty"` + AuthCipher *WirelessLANAuthCipherValue `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit NullableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +43,7 @@ type _WirelessLinkRequest WirelessLinkRequest // 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 NewWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WirelessLinkRequest { +func NewWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WirelessLinkRequest { this := WirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWirelessLinkRequestWithDefaults() *WirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,14 @@ func (o *WirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { } // SetInterfaceA sets field value -func (o *WirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +94,7 @@ func (o *WirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +102,7 @@ func (o *WirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { } // SetInterfaceB sets field value -func (o *WirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } @@ -137,9 +139,9 @@ func (o *WirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +149,7 @@ func (o *WirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +165,15 @@ func (o *WirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WirelessLinkRequest) GetTenant() TenantRequest { +func (o *WirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +182,7 @@ func (o *WirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -307,6 +309,92 @@ func (o *WirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WirelessLinkRequest) GetDistanceUnit() WirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit.Get()) { + var ret WirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit.Get() +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WirelessLinkRequest) GetDistanceUnitOk() (*WirelessLinkRequestDistanceUnit, bool) { + if o == nil { + return nil, false + } + return o.DistanceUnit.Get(), o.DistanceUnit.IsSet() +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && o.DistanceUnit.IsSet() { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given NullableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WirelessLinkRequest) SetDistanceUnit(v WirelessLinkRequestDistanceUnit) { + o.DistanceUnit.Set(&v) +} + +// SetDistanceUnitNil sets the value for DistanceUnit to be an explicit nil +func (o *WirelessLinkRequest) SetDistanceUnitNil() { + o.DistanceUnit.Set(nil) +} + +// UnsetDistanceUnit ensures that no value is present for DistanceUnit, not even an explicit nil +func (o *WirelessLinkRequest) UnsetDistanceUnit() { + o.DistanceUnit.Unset() +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -465,6 +553,12 @@ func (o WirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if o.DistanceUnit.IsSet() { + toSerialize["distance_unit"] = o.DistanceUnit.Get() + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -529,6 +623,8 @@ func (o *WirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_wireless_link_request_distance_unit.go b/model_wireless_link_request_distance_unit.go index 3f9a01da0..2d9a86625 100644 --- a/model_wireless_link_request_distance_unit.go +++ b/model_wireless_link_request_distance_unit.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_wireless_role.go b/model_wireless_role.go index 8aa2042e3..e77ffd268 100644 --- a/model_wireless_role.go +++ b/model_wireless_role.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -15,21 +15,21 @@ import ( "fmt" ) -// WirelessRole * `ap` - Access point * `station` - Station +// WirelessRole the model 'WirelessRole' type WirelessRole string // List of Wireless_role const ( + WIRELESSROLE_EMPTY WirelessRole = "" WIRELESSROLE_AP WirelessRole = "ap" WIRELESSROLE_STATION WirelessRole = "station" - WIRELESSROLE_EMPTY WirelessRole = "" ) // All allowed values of WirelessRole enum var AllowedWirelessRoleEnumValues = []WirelessRole{ + "", "ap", "station", - "", } func (v *WirelessRole) UnmarshalJSON(src []byte) error { diff --git a/model_wireless_wireless_links_list_distance_unit_parameter.go b/model_wireless_wireless_links_list_distance_unit_parameter.go index 9181c220d..9ea2c0cd6 100644 --- a/model_wireless_wireless_links_list_distance_unit_parameter.go +++ b/model_wireless_wireless_links_list_distance_unit_parameter.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_aggregate_request.go b/model_writable_aggregate_request.go index b16c5390b..7f9a804e4 100644 --- a/model_writable_aggregate_request.go +++ b/model_writable_aggregate_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableAggregateRequest{} // WritableAggregateRequest Adds support for custom fields and tags. type WritableAggregateRequest struct { - Prefix string `json:"prefix"` - Rir RIRRequest `json:"rir"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - DateAdded NullableString `json:"date_added,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Prefix string `json:"prefix"` + Rir BriefRIRRequest `json:"rir"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + DateAdded NullableString `json:"date_added,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableAggregateRequest WritableAggregateRequest // 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 NewWritableAggregateRequest(prefix string, rir RIRRequest) *WritableAggregateRequest { +func NewWritableAggregateRequest(prefix string, rir BriefRIRRequest) *WritableAggregateRequest { this := WritableAggregateRequest{} this.Prefix = prefix this.Rir = rir @@ -77,9 +77,9 @@ func (o *WritableAggregateRequest) SetPrefix(v string) { } // GetRir returns the Rir field value -func (o *WritableAggregateRequest) GetRir() RIRRequest { +func (o *WritableAggregateRequest) GetRir() BriefRIRRequest { if o == nil { - var ret RIRRequest + var ret BriefRIRRequest return ret } @@ -88,7 +88,7 @@ func (o *WritableAggregateRequest) GetRir() RIRRequest { // GetRirOk returns a tuple with the Rir field value // and a boolean to check if the value has been set. -func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { +func (o *WritableAggregateRequest) GetRirOk() (*BriefRIRRequest, bool) { if o == nil { return nil, false } @@ -96,14 +96,14 @@ func (o *WritableAggregateRequest) GetRirOk() (*RIRRequest, bool) { } // SetRir sets field value -func (o *WritableAggregateRequest) SetRir(v RIRRequest) { +func (o *WritableAggregateRequest) SetRir(v BriefRIRRequest) { o.Rir = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableAggregateRequest) GetTenant() TenantRequest { +func (o *WritableAggregateRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -112,7 +112,7 @@ func (o *WritableAggregateRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableAggregateRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableAggregateRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -128,8 +128,8 @@ func (o *WritableAggregateRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableAggregateRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableAggregateRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_cable_request.go b/model_writable_cable_request.go index 7d440df5e..057a072ee 100644 --- a/model_writable_cable_request.go +++ b/model_writable_cable_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -19,19 +19,19 @@ var _ MappedNullable = &WritableCableRequest{} // WritableCableRequest Adds support for custom fields and tags. type WritableCableRequest struct { - Type *PatchedWritableCableRequestType `json:"type,omitempty"` - ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` - BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Label *string `json:"label,omitempty"` - Color *string `json:"color,omitempty"` - Length NullableFloat64 `json:"length,omitempty"` - LengthUnit *PatchedWritableCableRequestLengthUnit `json:"length_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Type *CableType `json:"type,omitempty"` + ATerminations []GenericObjectRequest `json:"a_terminations,omitempty"` + BTerminations []GenericObjectRequest `json:"b_terminations,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Label *string `json:"label,omitempty"` + Color *string `json:"color,omitempty"` + Length NullableFloat64 `json:"length,omitempty"` + LengthUnit *CableLengthUnitValue `json:"length_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -55,9 +55,9 @@ func NewWritableCableRequestWithDefaults() *WritableCableRequest { } // GetType returns the Type field value if set, zero value otherwise. -func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { +func (o *WritableCableRequest) GetType() CableType { if o == nil || IsNil(o.Type) { - var ret PatchedWritableCableRequestType + var ret CableType return ret } return *o.Type @@ -65,7 +65,7 @@ func (o *WritableCableRequest) GetType() PatchedWritableCableRequestType { // GetTypeOk returns a tuple with the Type field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetTypeOk() (*PatchedWritableCableRequestType, bool) { +func (o *WritableCableRequest) GetTypeOk() (*CableType, bool) { if o == nil || IsNil(o.Type) { return nil, false } @@ -81,8 +81,8 @@ func (o *WritableCableRequest) HasType() bool { return false } -// SetType gets a reference to the given PatchedWritableCableRequestType and assigns it to the Type field. -func (o *WritableCableRequest) SetType(v PatchedWritableCableRequestType) { +// SetType gets a reference to the given CableType and assigns it to the Type field. +func (o *WritableCableRequest) SetType(v CableType) { o.Type = &v } @@ -151,9 +151,9 @@ func (o *WritableCableRequest) SetBTerminations(v []GenericObjectRequest) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableCableRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -161,7 +161,7 @@ func (o *WritableCableRequest) GetStatus() PatchedWritableCableRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableCableRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -177,15 +177,15 @@ func (o *WritableCableRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableCableRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableCableRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCableRequest) GetTenant() TenantRequest { +func (o *WritableCableRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -194,7 +194,7 @@ func (o *WritableCableRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCableRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCableRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -210,8 +210,8 @@ func (o *WritableCableRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCableRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCableRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -333,9 +333,9 @@ func (o *WritableCableRequest) UnsetLength() { } // GetLengthUnit returns the LengthUnit field value if set, zero value otherwise. -func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLengthUnit { +func (o *WritableCableRequest) GetLengthUnit() CableLengthUnitValue { if o == nil || IsNil(o.LengthUnit) { - var ret PatchedWritableCableRequestLengthUnit + var ret CableLengthUnitValue return ret } return *o.LengthUnit @@ -343,7 +343,7 @@ func (o *WritableCableRequest) GetLengthUnit() PatchedWritableCableRequestLength // GetLengthUnitOk returns a tuple with the LengthUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCableRequest) GetLengthUnitOk() (*PatchedWritableCableRequestLengthUnit, bool) { +func (o *WritableCableRequest) GetLengthUnitOk() (*CableLengthUnitValue, bool) { if o == nil || IsNil(o.LengthUnit) { return nil, false } @@ -359,8 +359,8 @@ func (o *WritableCableRequest) HasLengthUnit() bool { return false } -// SetLengthUnit gets a reference to the given PatchedWritableCableRequestLengthUnit and assigns it to the LengthUnit field. -func (o *WritableCableRequest) SetLengthUnit(v PatchedWritableCableRequestLengthUnit) { +// SetLengthUnit gets a reference to the given CableLengthUnitValue and assigns it to the LengthUnit field. +func (o *WritableCableRequest) SetLengthUnit(v CableLengthUnitValue) { o.LengthUnit = &v } diff --git a/model_writable_circuit_group_assignment_request.go b/model_writable_circuit_group_assignment_request.go index 342c33163..dba68dde2 100644 --- a/model_writable_circuit_group_assignment_request.go +++ b/model_writable_circuit_group_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_circuit_request.go b/model_writable_circuit_request.go index 8b3bc60b2..a3054536c 100644 --- a/model_writable_circuit_request.go +++ b/model_writable_circuit_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,20 +21,21 @@ var _ MappedNullable = &WritableCircuitRequest{} // WritableCircuitRequest Adds support for custom fields and tags. type WritableCircuitRequest struct { // Unique circuit ID - Cid string `json:"cid"` - Provider ProviderRequest `json:"provider"` - ProviderAccount NullableProviderAccountRequest `json:"provider_account,omitempty"` - Type CircuitTypeRequest `json:"type"` - Status *PatchedWritableCircuitRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - InstallDate NullableString `json:"install_date,omitempty"` - TerminationDate NullableString `json:"termination_date,omitempty"` + Cid string `json:"cid"` + Provider BriefProviderRequest `json:"provider"` + ProviderAccount NullableBriefProviderAccountRequest `json:"provider_account,omitempty"` + Type BriefCircuitTypeRequest `json:"type"` + Status *CircuitStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + InstallDate NullableString `json:"install_date,omitempty"` + TerminationDate NullableString `json:"termination_date,omitempty"` // Committed rate - CommitRate NullableInt32 `json:"commit_rate,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + CommitRate NullableInt32 `json:"commit_rate,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Assignments []BriefCircuitGroupAssignmentSerializerRequest `json:"assignments,omitempty"` AdditionalProperties map[string]interface{} } @@ -44,7 +45,7 @@ type _WritableCircuitRequest WritableCircuitRequest // 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 NewWritableCircuitRequest(cid string, provider ProviderRequest, type_ CircuitTypeRequest) *WritableCircuitRequest { +func NewWritableCircuitRequest(cid string, provider BriefProviderRequest, type_ BriefCircuitTypeRequest) *WritableCircuitRequest { this := WritableCircuitRequest{} this.Cid = cid this.Provider = provider @@ -85,9 +86,9 @@ func (o *WritableCircuitRequest) SetCid(v string) { } // GetProvider returns the Provider field value -func (o *WritableCircuitRequest) GetProvider() ProviderRequest { +func (o *WritableCircuitRequest) GetProvider() BriefProviderRequest { if o == nil { - var ret ProviderRequest + var ret BriefProviderRequest return ret } @@ -96,7 +97,7 @@ func (o *WritableCircuitRequest) GetProvider() ProviderRequest { // GetProviderOk returns a tuple with the Provider field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { +func (o *WritableCircuitRequest) GetProviderOk() (*BriefProviderRequest, bool) { if o == nil { return nil, false } @@ -104,14 +105,14 @@ func (o *WritableCircuitRequest) GetProviderOk() (*ProviderRequest, bool) { } // SetProvider sets field value -func (o *WritableCircuitRequest) SetProvider(v ProviderRequest) { +func (o *WritableCircuitRequest) SetProvider(v BriefProviderRequest) { o.Provider = v } // GetProviderAccount returns the ProviderAccount field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { +func (o *WritableCircuitRequest) GetProviderAccount() BriefProviderAccountRequest { if o == nil || IsNil(o.ProviderAccount.Get()) { - var ret ProviderAccountRequest + var ret BriefProviderAccountRequest return ret } return *o.ProviderAccount.Get() @@ -120,7 +121,7 @@ func (o *WritableCircuitRequest) GetProviderAccount() ProviderAccountRequest { // GetProviderAccountOk returns a tuple with the ProviderAccount field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetProviderAccountOk() (*ProviderAccountRequest, bool) { +func (o *WritableCircuitRequest) GetProviderAccountOk() (*BriefProviderAccountRequest, bool) { if o == nil { return nil, false } @@ -136,8 +137,8 @@ func (o *WritableCircuitRequest) HasProviderAccount() bool { return false } -// SetProviderAccount gets a reference to the given NullableProviderAccountRequest and assigns it to the ProviderAccount field. -func (o *WritableCircuitRequest) SetProviderAccount(v ProviderAccountRequest) { +// SetProviderAccount gets a reference to the given NullableBriefProviderAccountRequest and assigns it to the ProviderAccount field. +func (o *WritableCircuitRequest) SetProviderAccount(v BriefProviderAccountRequest) { o.ProviderAccount.Set(&v) } @@ -152,9 +153,9 @@ func (o *WritableCircuitRequest) UnsetProviderAccount() { } // GetType returns the Type field value -func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { +func (o *WritableCircuitRequest) GetType() BriefCircuitTypeRequest { if o == nil { - var ret CircuitTypeRequest + var ret BriefCircuitTypeRequest return ret } @@ -163,7 +164,7 @@ func (o *WritableCircuitRequest) GetType() CircuitTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { +func (o *WritableCircuitRequest) GetTypeOk() (*BriefCircuitTypeRequest, bool) { if o == nil { return nil, false } @@ -171,14 +172,14 @@ func (o *WritableCircuitRequest) GetTypeOk() (*CircuitTypeRequest, bool) { } // SetType sets field value -func (o *WritableCircuitRequest) SetType(v CircuitTypeRequest) { +func (o *WritableCircuitRequest) SetType(v BriefCircuitTypeRequest) { o.Type = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus { +func (o *WritableCircuitRequest) GetStatus() CircuitStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCircuitRequestStatus + var ret CircuitStatusValue return ret } return *o.Status @@ -186,7 +187,7 @@ func (o *WritableCircuitRequest) GetStatus() PatchedWritableCircuitRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableCircuitRequest) GetStatusOk() (*PatchedWritableCircuitRequestStatus, bool) { +func (o *WritableCircuitRequest) GetStatusOk() (*CircuitStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -202,15 +203,15 @@ func (o *WritableCircuitRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCircuitRequestStatus and assigns it to the Status field. -func (o *WritableCircuitRequest) SetStatus(v PatchedWritableCircuitRequestStatus) { +// SetStatus gets a reference to the given CircuitStatusValue and assigns it to the Status field. +func (o *WritableCircuitRequest) SetStatus(v CircuitStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCircuitRequest) GetTenant() TenantRequest { +func (o *WritableCircuitRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -219,7 +220,7 @@ func (o *WritableCircuitRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCircuitRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableCircuitRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -235,8 +236,8 @@ func (o *WritableCircuitRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableCircuitRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableCircuitRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -507,6 +508,38 @@ func (o *WritableCircuitRequest) SetCustomFields(v map[string]interface{}) { o.CustomFields = v } +// GetAssignments returns the Assignments field value if set, zero value otherwise. +func (o *WritableCircuitRequest) GetAssignments() []BriefCircuitGroupAssignmentSerializerRequest { + if o == nil || IsNil(o.Assignments) { + var ret []BriefCircuitGroupAssignmentSerializerRequest + return ret + } + return o.Assignments +} + +// GetAssignmentsOk returns a tuple with the Assignments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCircuitRequest) GetAssignmentsOk() ([]BriefCircuitGroupAssignmentSerializerRequest, bool) { + if o == nil || IsNil(o.Assignments) { + return nil, false + } + return o.Assignments, true +} + +// HasAssignments returns a boolean if a field has been set. +func (o *WritableCircuitRequest) HasAssignments() bool { + if o != nil && !IsNil(o.Assignments) { + return true + } + + return false +} + +// SetAssignments gets a reference to the given []BriefCircuitGroupAssignmentSerializerRequest and assigns it to the Assignments field. +func (o *WritableCircuitRequest) SetAssignments(v []BriefCircuitGroupAssignmentSerializerRequest) { + o.Assignments = v +} + func (o WritableCircuitRequest) MarshalJSON() ([]byte, error) { toSerialize, err := o.ToMap() if err != nil { @@ -550,6 +583,9 @@ func (o WritableCircuitRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } + if !IsNil(o.Assignments) { + toSerialize["assignments"] = o.Assignments + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -608,6 +644,7 @@ func (o *WritableCircuitRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "comments") delete(additionalProperties, "tags") delete(additionalProperties, "custom_fields") + delete(additionalProperties, "assignments") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_cluster_request.go b/model_writable_cluster_request.go index 25402473e..7d5dd494a 100644 --- a/model_writable_cluster_request.go +++ b/model_writable_cluster_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,16 @@ var _ MappedNullable = &WritableClusterRequest{} // WritableClusterRequest Adds support for custom fields and tags. type WritableClusterRequest struct { - Name string `json:"name"` - Type ClusterTypeRequest `json:"type"` - Group NullableClusterGroupRequest `json:"group,omitempty"` - Status *PatchedWritableClusterRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Type BriefClusterTypeRequest `json:"type"` + Group NullableBriefClusterGroupRequest `json:"group,omitempty"` + Status *ClusterStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +39,7 @@ type _WritableClusterRequest WritableClusterRequest // 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 NewWritableClusterRequest(name string, type_ ClusterTypeRequest) *WritableClusterRequest { +func NewWritableClusterRequest(name string, type_ BriefClusterTypeRequest) *WritableClusterRequest { this := WritableClusterRequest{} this.Name = name this.Type = type_ @@ -79,9 +79,9 @@ func (o *WritableClusterRequest) SetName(v string) { } // GetType returns the Type field value -func (o *WritableClusterRequest) GetType() ClusterTypeRequest { +func (o *WritableClusterRequest) GetType() BriefClusterTypeRequest { if o == nil { - var ret ClusterTypeRequest + var ret BriefClusterTypeRequest return ret } @@ -90,7 +90,7 @@ func (o *WritableClusterRequest) GetType() ClusterTypeRequest { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { +func (o *WritableClusterRequest) GetTypeOk() (*BriefClusterTypeRequest, bool) { if o == nil { return nil, false } @@ -98,14 +98,14 @@ func (o *WritableClusterRequest) GetTypeOk() (*ClusterTypeRequest, bool) { } // SetType sets field value -func (o *WritableClusterRequest) SetType(v ClusterTypeRequest) { +func (o *WritableClusterRequest) SetType(v BriefClusterTypeRequest) { o.Type = v } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { +func (o *WritableClusterRequest) GetGroup() BriefClusterGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret ClusterGroupRequest + var ret BriefClusterGroupRequest return ret } return *o.Group.Get() @@ -114,7 +114,7 @@ func (o *WritableClusterRequest) GetGroup() ClusterGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetGroupOk() (*ClusterGroupRequest, bool) { +func (o *WritableClusterRequest) GetGroupOk() (*BriefClusterGroupRequest, bool) { if o == nil { return nil, false } @@ -130,8 +130,8 @@ func (o *WritableClusterRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableClusterGroupRequest and assigns it to the Group field. -func (o *WritableClusterRequest) SetGroup(v ClusterGroupRequest) { +// SetGroup gets a reference to the given NullableBriefClusterGroupRequest and assigns it to the Group field. +func (o *WritableClusterRequest) SetGroup(v BriefClusterGroupRequest) { o.Group.Set(&v) } @@ -146,9 +146,9 @@ func (o *WritableClusterRequest) UnsetGroup() { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus { +func (o *WritableClusterRequest) GetStatus() ClusterStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableClusterRequestStatus + var ret ClusterStatusValue return ret } return *o.Status @@ -156,7 +156,7 @@ func (o *WritableClusterRequest) GetStatus() PatchedWritableClusterRequestStatus // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableClusterRequest) GetStatusOk() (*PatchedWritableClusterRequestStatus, bool) { +func (o *WritableClusterRequest) GetStatusOk() (*ClusterStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -172,15 +172,15 @@ func (o *WritableClusterRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableClusterRequestStatus and assigns it to the Status field. -func (o *WritableClusterRequest) SetStatus(v PatchedWritableClusterRequestStatus) { +// SetStatus gets a reference to the given ClusterStatusValue and assigns it to the Status field. +func (o *WritableClusterRequest) SetStatus(v ClusterStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetTenant() TenantRequest { +func (o *WritableClusterRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -189,7 +189,7 @@ func (o *WritableClusterRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableClusterRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -205,8 +205,8 @@ func (o *WritableClusterRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableClusterRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableClusterRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -221,9 +221,9 @@ func (o *WritableClusterRequest) UnsetTenant() { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableClusterRequest) GetSite() SiteRequest { +func (o *WritableClusterRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -232,7 +232,7 @@ func (o *WritableClusterRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableClusterRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableClusterRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -248,8 +248,8 @@ func (o *WritableClusterRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableClusterRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableClusterRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } diff --git a/model_writable_console_port_request.go b/model_writable_console_port_request.go index 60b31d0af..e2c9809e9 100644 --- a/model_writable_console_port_request.go +++ b/model_writable_console_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsolePortRequest{} // WritableConsolePortRequest Adds support for custom fields and tags. type WritableConsolePortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsolePortRequest WritableConsolePortRequest // 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 NewWritableConsolePortRequest(device DeviceRequest, name string) *WritableConsolePortRequest { +func NewWritableConsolePortRequest(device BriefDeviceRequest, name string) *WritableConsolePortRequest { this := WritableConsolePortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsolePortRequestWithDefaults() *WritableConsolePortRequest { } // GetDevice returns the Device field value -func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { +func (o *WritableConsolePortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsolePortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsolePortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsolePortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableConsolePortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsolePortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortRequest) GetModule() ModuleRequest { +func (o *WritableConsolePortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsolePortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsolePortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsolePortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsolePortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsolePortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_port_template_request.go b/model_writable_console_port_template_request.go index afe73d3de..63980968d 100644 --- a/model_writable_console_port_template_request.go +++ b/model_writable_console_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsolePortTemplateRequest{} // WritableConsolePortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsolePortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsolePortTemplateRequestWithDefaults() *WritableConsolePortTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsolePortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsolePortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsolePortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsolePortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsolePortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsolePortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsolePortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsolePortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsolePortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsolePortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsolePortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_console_server_port_request.go b/model_writable_console_server_port_request.go index 8f1c21baa..306d1e675 100644 --- a/model_writable_console_server_port_request.go +++ b/model_writable_console_server_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableConsoleServerPortRequest{} // WritableConsoleServerPortRequest Adds support for custom fields and tags. type WritableConsoleServerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritableConsolePortRequestType `json:"type,omitempty"` @@ -41,7 +41,7 @@ type _WritableConsoleServerPortRequest WritableConsoleServerPortRequest // 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 NewWritableConsoleServerPortRequest(device DeviceRequest, name string) *WritableConsoleServerPortRequest { +func NewWritableConsoleServerPortRequest(device BriefDeviceRequest, name string) *WritableConsoleServerPortRequest { this := WritableConsoleServerPortRequest{} this.Device = device this.Name = name @@ -57,9 +57,9 @@ func NewWritableConsoleServerPortRequestWithDefaults() *WritableConsoleServerPor } // GetDevice returns the Device field value -func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { +func (o *WritableConsoleServerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableConsoleServerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +76,14 @@ func (o *WritableConsoleServerPortRequest) GetDeviceOk() (*DeviceRequest, bool) } // SetDevice sets field value -func (o *WritableConsoleServerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableConsoleServerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { +func (o *WritableConsoleServerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -92,7 +92,7 @@ func (o *WritableConsoleServerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableConsoleServerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -108,8 +108,8 @@ func (o *WritableConsoleServerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableConsoleServerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableConsoleServerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_console_server_port_template_request.go b/model_writable_console_server_port_template_request.go index 74ef741d9..9168d5a73 100644 --- a/model_writable_console_server_port_template_request.go +++ b/model_writable_console_server_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableConsoleServerPortTemplateRequest{} // WritableConsoleServerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableConsoleServerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -52,9 +52,9 @@ func NewWritableConsoleServerPortTemplateRequestWithDefaults() *WritableConsoleS } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -63,7 +63,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetDeviceType() DeviceTypeReq // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -79,8 +79,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableConsoleServerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -95,9 +95,9 @@ func (o *WritableConsoleServerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -106,7 +106,7 @@ func (o *WritableConsoleServerPortTemplateRequest) GetModuleType() ModuleTypeReq // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableConsoleServerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -122,8 +122,8 @@ func (o *WritableConsoleServerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableConsoleServerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_contact_assignment_request.go b/model_writable_contact_assignment_request.go index 39fc360da..0e033dd61 100644 --- a/model_writable_contact_assignment_request.go +++ b/model_writable_contact_assignment_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritableContactAssignmentRequest{} // WritableContactAssignmentRequest Adds support for custom fields and tags. type WritableContactAssignmentRequest struct { - ObjectType string `json:"object_type"` - ObjectId int64 `json:"object_id"` - Contact ContactRequest `json:"contact"` - Role NullableContactRoleRequest `json:"role,omitempty"` - Priority *ContactAssignmentPriorityValue `json:"priority,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + ObjectType string `json:"object_type"` + ObjectId int64 `json:"object_id"` + Contact BriefContactRequest `json:"contact"` + Role NullableBriefContactRoleRequest `json:"role,omitempty"` + Priority *BriefCircuitGroupAssignmentSerializerPriorityValue `json:"priority,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -36,7 +36,7 @@ type _WritableContactAssignmentRequest WritableContactAssignmentRequest // 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 NewWritableContactAssignmentRequest(objectType string, objectId int64, contact ContactRequest) *WritableContactAssignmentRequest { +func NewWritableContactAssignmentRequest(objectType string, objectId int64, contact BriefContactRequest) *WritableContactAssignmentRequest { this := WritableContactAssignmentRequest{} this.ObjectType = objectType this.ObjectId = objectId @@ -101,9 +101,9 @@ func (o *WritableContactAssignmentRequest) SetObjectId(v int64) { } // GetContact returns the Contact field value -func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { +func (o *WritableContactAssignmentRequest) GetContact() BriefContactRequest { if o == nil { - var ret ContactRequest + var ret BriefContactRequest return ret } @@ -112,7 +112,7 @@ func (o *WritableContactAssignmentRequest) GetContact() ContactRequest { // GetContactOk returns a tuple with the Contact field value // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool) { +func (o *WritableContactAssignmentRequest) GetContactOk() (*BriefContactRequest, bool) { if o == nil { return nil, false } @@ -120,14 +120,14 @@ func (o *WritableContactAssignmentRequest) GetContactOk() (*ContactRequest, bool } // SetContact sets field value -func (o *WritableContactAssignmentRequest) SetContact(v ContactRequest) { +func (o *WritableContactAssignmentRequest) SetContact(v BriefContactRequest) { o.Contact = v } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { +func (o *WritableContactAssignmentRequest) GetRole() BriefContactRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret ContactRoleRequest + var ret BriefContactRoleRequest return ret } return *o.Role.Get() @@ -136,7 +136,7 @@ func (o *WritableContactAssignmentRequest) GetRole() ContactRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableContactAssignmentRequest) GetRoleOk() (*ContactRoleRequest, bool) { +func (o *WritableContactAssignmentRequest) GetRoleOk() (*BriefContactRoleRequest, bool) { if o == nil { return nil, false } @@ -152,8 +152,8 @@ func (o *WritableContactAssignmentRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableContactRoleRequest and assigns it to the Role field. -func (o *WritableContactAssignmentRequest) SetRole(v ContactRoleRequest) { +// SetRole gets a reference to the given NullableBriefContactRoleRequest and assigns it to the Role field. +func (o *WritableContactAssignmentRequest) SetRole(v BriefContactRoleRequest) { o.Role.Set(&v) } @@ -168,9 +168,9 @@ func (o *WritableContactAssignmentRequest) UnsetRole() { } // GetPriority returns the Priority field value if set, zero value otherwise. -func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriorityValue { +func (o *WritableContactAssignmentRequest) GetPriority() BriefCircuitGroupAssignmentSerializerPriorityValue { if o == nil || IsNil(o.Priority) { - var ret ContactAssignmentPriorityValue + var ret BriefCircuitGroupAssignmentSerializerPriorityValue return ret } return *o.Priority @@ -178,7 +178,7 @@ func (o *WritableContactAssignmentRequest) GetPriority() ContactAssignmentPriori // GetPriorityOk returns a tuple with the Priority field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableContactAssignmentRequest) GetPriorityOk() (*ContactAssignmentPriorityValue, bool) { +func (o *WritableContactAssignmentRequest) GetPriorityOk() (*BriefCircuitGroupAssignmentSerializerPriorityValue, bool) { if o == nil || IsNil(o.Priority) { return nil, false } @@ -194,8 +194,8 @@ func (o *WritableContactAssignmentRequest) HasPriority() bool { return false } -// SetPriority gets a reference to the given ContactAssignmentPriorityValue and assigns it to the Priority field. -func (o *WritableContactAssignmentRequest) SetPriority(v ContactAssignmentPriorityValue) { +// SetPriority gets a reference to the given BriefCircuitGroupAssignmentSerializerPriorityValue and assigns it to the Priority field. +func (o *WritableContactAssignmentRequest) SetPriority(v BriefCircuitGroupAssignmentSerializerPriorityValue) { o.Priority = &v } diff --git a/model_writable_contact_group_request.go b/model_writable_contact_group_request.go index 18c9c5d25..fdeccbe16 100644 --- a/model_writable_contact_group_request.go +++ b/model_writable_contact_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_choice_set_request.go b/model_writable_custom_field_choice_set_request.go index 204ccffd1..3638e3bb9 100644 --- a/model_writable_custom_field_choice_set_request.go +++ b/model_writable_custom_field_choice_set_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_custom_field_request.go b/model_writable_custom_field_request.go index 5429f4cc5..2c4d17ce3 100644 --- a/model_writable_custom_field_request.go +++ b/model_writable_custom_field_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -30,8 +30,10 @@ type WritableCustomFieldRequest struct { // Custom fields within the same group will be displayed together GroupName *string `json:"group_name,omitempty"` Description *string `json:"description,omitempty"` - // If true, this field is required when creating new objects or editing an existing object. + // This field is required when creating new objects or editing an existing object. Required *bool `json:"required,omitempty"` + // The value of this field must be unique for the assigned object + Unique *bool `json:"unique,omitempty"` // Weighting for search. Lower values are considered more important. Fields with a search weight of zero will be ignored. SearchWeight *int32 `json:"search_weight,omitempty"` FilterLogic *PatchedWritableCustomFieldRequestFilterLogic `json:"filter_logic,omitempty"` @@ -41,6 +43,8 @@ type WritableCustomFieldRequest struct { IsCloneable *bool `json:"is_cloneable,omitempty"` // Default value for the field (must be a JSON value). Encapsulate strings with double quotes (e.g. \"Foo\"). Default interface{} `json:"default,omitempty"` + // Filter the object selection choices using a query_params dict (must be a JSON value).Encapsulate strings with double quotes (e.g. \"Foo\"). + RelatedObjectFilter interface{} `json:"related_object_filter,omitempty"` // Fields with higher weights appear lower in a form. Weight *int32 `json:"weight,omitempty"` // Minimum allowed value (for numeric fields) @@ -48,9 +52,9 @@ type WritableCustomFieldRequest struct { // Maximum allowed value (for numeric fields) ValidationMaximum NullableInt64 `json:"validation_maximum,omitempty"` // Regular expression to enforce on text field values. Use ^ and $ to force matching of entire string. For example, ^[A-Z]{3}$ will limit values to exactly three uppercase letters. - ValidationRegex *string `json:"validation_regex,omitempty"` - ChoiceSet NullableCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` - Comments *string `json:"comments,omitempty"` + ValidationRegex *string `json:"validation_regex,omitempty"` + ChoiceSet NullableBriefCustomFieldChoiceSetRequest `json:"choice_set,omitempty"` + Comments *string `json:"comments,omitempty"` AdditionalProperties map[string]interface{} } @@ -326,6 +330,38 @@ func (o *WritableCustomFieldRequest) SetRequired(v bool) { o.Required = &v } +// GetUnique returns the Unique field value if set, zero value otherwise. +func (o *WritableCustomFieldRequest) GetUnique() bool { + if o == nil || IsNil(o.Unique) { + var ret bool + return ret + } + return *o.Unique +} + +// GetUniqueOk returns a tuple with the Unique field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableCustomFieldRequest) GetUniqueOk() (*bool, bool) { + if o == nil || IsNil(o.Unique) { + return nil, false + } + return o.Unique, true +} + +// HasUnique returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasUnique() bool { + if o != nil && !IsNil(o.Unique) { + return true + } + + return false +} + +// SetUnique gets a reference to the given bool and assigns it to the Unique field. +func (o *WritableCustomFieldRequest) SetUnique(v bool) { + o.Unique = &v +} + // GetSearchWeight returns the SearchWeight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetSearchWeight() int32 { if o == nil || IsNil(o.SearchWeight) { @@ -519,6 +555,39 @@ func (o *WritableCustomFieldRequest) SetDefault(v interface{}) { o.Default = v } +// GetRelatedObjectFilter returns the RelatedObjectFilter field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableCustomFieldRequest) GetRelatedObjectFilter() interface{} { + if o == nil { + var ret interface{} + return ret + } + return o.RelatedObjectFilter +} + +// GetRelatedObjectFilterOk returns a tuple with the RelatedObjectFilter field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableCustomFieldRequest) GetRelatedObjectFilterOk() (*interface{}, bool) { + if o == nil || IsNil(o.RelatedObjectFilter) { + return nil, false + } + return &o.RelatedObjectFilter, true +} + +// HasRelatedObjectFilter returns a boolean if a field has been set. +func (o *WritableCustomFieldRequest) HasRelatedObjectFilter() bool { + if o != nil && !IsNil(o.RelatedObjectFilter) { + return true + } + + return false +} + +// SetRelatedObjectFilter gets a reference to the given interface{} and assigns it to the RelatedObjectFilter field. +func (o *WritableCustomFieldRequest) SetRelatedObjectFilter(v interface{}) { + o.RelatedObjectFilter = v +} + // GetWeight returns the Weight field value if set, zero value otherwise. func (o *WritableCustomFieldRequest) GetWeight() int32 { if o == nil || IsNil(o.Weight) { @@ -670,9 +739,9 @@ func (o *WritableCustomFieldRequest) SetValidationRegex(v string) { } // GetChoiceSet returns the ChoiceSet field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest { +func (o *WritableCustomFieldRequest) GetChoiceSet() BriefCustomFieldChoiceSetRequest { if o == nil || IsNil(o.ChoiceSet.Get()) { - var ret CustomFieldChoiceSetRequest + var ret BriefCustomFieldChoiceSetRequest return ret } return *o.ChoiceSet.Get() @@ -681,7 +750,7 @@ func (o *WritableCustomFieldRequest) GetChoiceSet() CustomFieldChoiceSetRequest // GetChoiceSetOk returns a tuple with the ChoiceSet field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*CustomFieldChoiceSetRequest, bool) { +func (o *WritableCustomFieldRequest) GetChoiceSetOk() (*BriefCustomFieldChoiceSetRequest, bool) { if o == nil { return nil, false } @@ -697,8 +766,8 @@ func (o *WritableCustomFieldRequest) HasChoiceSet() bool { return false } -// SetChoiceSet gets a reference to the given NullableCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. -func (o *WritableCustomFieldRequest) SetChoiceSet(v CustomFieldChoiceSetRequest) { +// SetChoiceSet gets a reference to the given NullableBriefCustomFieldChoiceSetRequest and assigns it to the ChoiceSet field. +func (o *WritableCustomFieldRequest) SetChoiceSet(v BriefCustomFieldChoiceSetRequest) { o.ChoiceSet.Set(&v) } @@ -774,6 +843,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Required) { toSerialize["required"] = o.Required } + if !IsNil(o.Unique) { + toSerialize["unique"] = o.Unique + } if !IsNil(o.SearchWeight) { toSerialize["search_weight"] = o.SearchWeight } @@ -792,6 +864,9 @@ func (o WritableCustomFieldRequest) ToMap() (map[string]interface{}, error) { if o.Default != nil { toSerialize["default"] = o.Default } + if o.RelatedObjectFilter != nil { + toSerialize["related_object_filter"] = o.RelatedObjectFilter + } if !IsNil(o.Weight) { toSerialize["weight"] = o.Weight } @@ -862,12 +937,14 @@ func (o *WritableCustomFieldRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "group_name") delete(additionalProperties, "description") delete(additionalProperties, "required") + delete(additionalProperties, "unique") delete(additionalProperties, "search_weight") delete(additionalProperties, "filter_logic") delete(additionalProperties, "ui_visible") delete(additionalProperties, "ui_editable") delete(additionalProperties, "is_cloneable") delete(additionalProperties, "default") + delete(additionalProperties, "related_object_filter") delete(additionalProperties, "weight") delete(additionalProperties, "validation_minimum") delete(additionalProperties, "validation_maximum") diff --git a/model_writable_data_source_request.go b/model_writable_data_source_request.go index d661bb97c..496f9b98a 100644 --- a/model_writable_data_source_request.go +++ b/model_writable_data_source_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -25,10 +25,10 @@ type WritableDataSourceRequest struct { SourceUrl string `json:"source_url"` Enabled *bool `json:"enabled,omitempty"` Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` Parameters interface{} `json:"parameters,omitempty"` // Patterns (one per line) matching files to ignore when syncing IgnoreRules *string `json:"ignore_rules,omitempty"` + Comments *string `json:"comments,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -191,38 +191,6 @@ func (o *WritableDataSourceRequest) SetDescription(v string) { o.Description = &v } -// GetComments returns the Comments field value if set, zero value otherwise. -func (o *WritableDataSourceRequest) GetComments() string { - if o == nil || IsNil(o.Comments) { - var ret string - return ret - } - return *o.Comments -} - -// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { - if o == nil || IsNil(o.Comments) { - return nil, false - } - return o.Comments, true -} - -// HasComments returns a boolean if a field has been set. -func (o *WritableDataSourceRequest) HasComments() bool { - if o != nil && !IsNil(o.Comments) { - return true - } - - return false -} - -// SetComments gets a reference to the given string and assigns it to the Comments field. -func (o *WritableDataSourceRequest) SetComments(v string) { - o.Comments = &v -} - // GetParameters returns the Parameters field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableDataSourceRequest) GetParameters() interface{} { if o == nil { @@ -288,6 +256,38 @@ func (o *WritableDataSourceRequest) SetIgnoreRules(v string) { o.IgnoreRules = &v } +// GetComments returns the Comments field value if set, zero value otherwise. +func (o *WritableDataSourceRequest) GetComments() string { + if o == nil || IsNil(o.Comments) { + var ret string + return ret + } + return *o.Comments +} + +// GetCommentsOk returns a tuple with the Comments field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableDataSourceRequest) GetCommentsOk() (*string, bool) { + if o == nil || IsNil(o.Comments) { + return nil, false + } + return o.Comments, true +} + +// HasComments returns a boolean if a field has been set. +func (o *WritableDataSourceRequest) HasComments() bool { + if o != nil && !IsNil(o.Comments) { + return true + } + + return false +} + +// SetComments gets a reference to the given string and assigns it to the Comments field. +func (o *WritableDataSourceRequest) SetComments(v string) { + o.Comments = &v +} + // GetCustomFields returns the CustomFields field value if set, zero value otherwise. func (o *WritableDataSourceRequest) GetCustomFields() map[string]interface{} { if o == nil || IsNil(o.CustomFields) { @@ -339,15 +339,15 @@ func (o WritableDataSourceRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.Description) { toSerialize["description"] = o.Description } - if !IsNil(o.Comments) { - toSerialize["comments"] = o.Comments - } if o.Parameters != nil { toSerialize["parameters"] = o.Parameters } if !IsNil(o.IgnoreRules) { toSerialize["ignore_rules"] = o.IgnoreRules } + if !IsNil(o.Comments) { + toSerialize["comments"] = o.Comments + } if !IsNil(o.CustomFields) { toSerialize["custom_fields"] = o.CustomFields } @@ -401,9 +401,9 @@ func (o *WritableDataSourceRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "source_url") delete(additionalProperties, "enabled") delete(additionalProperties, "description") - delete(additionalProperties, "comments") delete(additionalProperties, "parameters") delete(additionalProperties, "ignore_rules") + delete(additionalProperties, "comments") delete(additionalProperties, "custom_fields") o.AdditionalProperties = additionalProperties } diff --git a/model_writable_device_type_request.go b/model_writable_device_type_request.go index 4275e29a1..566778549 100644 --- a/model_writable_device_type_request.go +++ b/model_writable_device_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,27 +21,27 @@ var _ MappedNullable = &WritableDeviceTypeRequest{} // WritableDeviceTypeRequest Adds support for custom fields and tags. type WritableDeviceTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - DefaultPlatform NullablePlatformRequest `json:"default_platform,omitempty"` - Model string `json:"model"` - Slug string `json:"slug"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + DefaultPlatform NullableBriefPlatformRequest `json:"default_platform,omitempty"` + Model string `json:"model"` + Slug string `json:"slug"` // Discrete part number (optional) PartNumber *string `json:"part_number,omitempty"` UHeight *float64 `json:"u_height,omitempty"` // Devices of this type are excluded when calculating rack utilization. ExcludeFromUtilization *bool `json:"exclude_from_utilization,omitempty"` // Device consumes both front and rear rack faces. - IsFullDepth *bool `json:"is_full_depth,omitempty"` - SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - FrontImage **os.File `json:"front_image,omitempty"` - RearImage **os.File `json:"rear_image,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + IsFullDepth *bool `json:"is_full_depth,omitempty"` + SubdeviceRole *ParentChildStatus1 `json:"subdevice_role,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + FrontImage **os.File `json:"front_image,omitempty"` + RearImage **os.File `json:"rear_image,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -51,7 +51,7 @@ type _WritableDeviceTypeRequest WritableDeviceTypeRequest // 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 NewWritableDeviceTypeRequest(manufacturer ManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { +func NewWritableDeviceTypeRequest(manufacturer BriefManufacturerRequest, model string, slug string) *WritableDeviceTypeRequest { this := WritableDeviceTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -72,9 +72,9 @@ func NewWritableDeviceTypeRequestWithDefaults() *WritableDeviceTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableDeviceTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -83,7 +83,7 @@ func (o *WritableDeviceTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -91,14 +91,14 @@ func (o *WritableDeviceTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableDeviceTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableDeviceTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } // GetDefaultPlatform returns the DefaultPlatform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { +func (o *WritableDeviceTypeRequest) GetDefaultPlatform() BriefPlatformRequest { if o == nil || IsNil(o.DefaultPlatform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.DefaultPlatform.Get() @@ -107,7 +107,7 @@ func (o *WritableDeviceTypeRequest) GetDefaultPlatform() PlatformRequest { // GetDefaultPlatformOk returns a tuple with the DefaultPlatform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceTypeRequest) GetDefaultPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -123,8 +123,8 @@ func (o *WritableDeviceTypeRequest) HasDefaultPlatform() bool { return false } -// SetDefaultPlatform gets a reference to the given NullablePlatformRequest and assigns it to the DefaultPlatform field. -func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v PlatformRequest) { +// SetDefaultPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the DefaultPlatform field. +func (o *WritableDeviceTypeRequest) SetDefaultPlatform(v BriefPlatformRequest) { o.DefaultPlatform.Set(&v) } @@ -422,9 +422,9 @@ func (o *WritableDeviceTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableDeviceTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -432,7 +432,7 @@ func (o *WritableDeviceTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeReq // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableDeviceTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -448,8 +448,8 @@ func (o *WritableDeviceTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableDeviceTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableDeviceTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } diff --git a/model_writable_device_with_config_context_request.go b/model_writable_device_with_config_context_request.go index ee7fcd1a6..5a68a6359 100644 --- a/model_writable_device_with_config_context_request.go +++ b/model_writable_device_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,37 +20,37 @@ var _ MappedNullable = &WritableDeviceWithConfigContextRequest{} // WritableDeviceWithConfigContextRequest Adds support for custom fields and tags. type WritableDeviceWithConfigContextRequest struct { - Name NullableString `json:"name,omitempty"` - DeviceType DeviceTypeRequest `json:"device_type"` - Role DeviceRoleRequest `json:"role"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` + Name NullableString `json:"name,omitempty"` + DeviceType BriefDeviceTypeRequest `json:"device_type"` + Role BriefDeviceRoleRequest `json:"role"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` // Chassis serial number, assigned by the manufacturer Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device - AssetTag NullableString `json:"asset_tag,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Rack NullableRackRequest `json:"rack,omitempty"` - Position NullableFloat64 `json:"position,omitempty"` - Face RackFace1 `json:"face"` + AssetTag NullableString `json:"asset_tag,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` + Position NullableFloat64 `json:"position,omitempty"` + Face RackFace1 `json:"face"` // GPS coordinate in decimal format (xx.yyyyyy) Latitude NullableFloat64 `json:"latitude,omitempty"` // GPS coordinate in decimal format (xx.yyyyyy) - Longitude NullableFloat64 `json:"longitude,omitempty"` - Status *DeviceStatusValue `json:"status,omitempty"` - Airflow *DeviceAirflowValue `json:"airflow,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - OobIp NullableIPAddressRequest `json:"oob_ip,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - VirtualChassis NullableVirtualChassisRequest `json:"virtual_chassis,omitempty"` - VcPosition NullableInt32 `json:"vc_position,omitempty"` + Longitude NullableFloat64 `json:"longitude,omitempty"` + Status *DeviceStatusValue `json:"status,omitempty"` + Airflow *DeviceAirflowValue `json:"airflow,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + OobIp NullableBriefIPAddressRequest `json:"oob_ip,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + VirtualChassis NullableBriefVirtualChassisRequest `json:"virtual_chassis,omitempty"` + VcPosition NullableInt32 `json:"vc_position,omitempty"` // Virtual chassis master election priority - VcPriority NullableInt32 `json:"vc_priority,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + VcPriority NullableInt32 `json:"vc_priority,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -64,7 +64,7 @@ type _WritableDeviceWithConfigContextRequest WritableDeviceWithConfigContextRequ // 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 NewWritableDeviceWithConfigContextRequest(deviceType DeviceTypeRequest, role DeviceRoleRequest, site SiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { +func NewWritableDeviceWithConfigContextRequest(deviceType BriefDeviceTypeRequest, role BriefDeviceRoleRequest, site BriefSiteRequest, face RackFace1) *WritableDeviceWithConfigContextRequest { this := WritableDeviceWithConfigContextRequest{} this.DeviceType = deviceType this.Role = role @@ -125,9 +125,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetName() { } // GetDeviceType returns the DeviceType field value -func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } @@ -136,7 +136,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceType() DeviceTypeReque // GetDeviceTypeOk returns a tuple with the DeviceType field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -144,14 +144,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetDeviceTypeOk() (*DeviceTypeR } // SetDeviceType sets field value -func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v DeviceTypeRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType = v } // GetRole returns the Role field value -func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } @@ -160,7 +160,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRole() DeviceRoleRequest { // GetRoleOk returns a tuple with the Role field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -168,14 +168,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest } // SetRole sets field value -func (o *WritableDeviceWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role = v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableDeviceWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -184,7 +184,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -200,8 +200,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableDeviceWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableDeviceWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -216,9 +216,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -227,7 +227,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPlatform() PlatformRequest { // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -243,8 +243,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableDeviceWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -334,9 +334,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetAssetTag() { } // GetSite returns the Site field value -func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableDeviceWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -345,7 +345,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -353,14 +353,14 @@ func (o *WritableDeviceWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool } // SetSite sets field value -func (o *WritableDeviceWithConfigContextRequest) SetSite(v SiteRequest) { +func (o *WritableDeviceWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { +func (o *WritableDeviceWithConfigContextRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -369,7 +369,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -385,8 +385,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableDeviceWithConfigContextRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableDeviceWithConfigContextRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -401,9 +401,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetLocation() { } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { +func (o *WritableDeviceWithConfigContextRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -412,7 +412,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*RackRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -428,8 +428,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritableDeviceWithConfigContextRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritableDeviceWithConfigContextRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -661,9 +661,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetAirflow(v DeviceAirflowValue } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -672,7 +672,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4() IPAddressReques // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -688,8 +688,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -704,9 +704,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -715,7 +715,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6() IPAddressReques // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -731,8 +731,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableDeviceWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -747,9 +747,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetPrimaryIp6() { } // GetOobIp returns the OobIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { +func (o *WritableDeviceWithConfigContextRequest) GetOobIp() BriefIPAddressRequest { if o == nil || IsNil(o.OobIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OobIp.Get() @@ -758,7 +758,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetOobIp() IPAddressRequest { // GetOobIpOk returns a tuple with the OobIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*IPAddressRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetOobIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -774,8 +774,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasOobIp() bool { return false } -// SetOobIp gets a reference to the given NullableIPAddressRequest and assigns it to the OobIp field. -func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v IPAddressRequest) { +// SetOobIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OobIp field. +func (o *WritableDeviceWithConfigContextRequest) SetOobIp(v BriefIPAddressRequest) { o.OobIp.Set(&v) } @@ -790,9 +790,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetOobIp() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableDeviceWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -801,7 +801,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetCluster() ClusterRequest { // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -817,8 +817,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableDeviceWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableDeviceWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -833,9 +833,9 @@ func (o *WritableDeviceWithConfigContextRequest) UnsetCluster() { } // GetVirtualChassis returns the VirtualChassis field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChassisRequest { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() BriefVirtualChassisRequest { if o == nil || IsNil(o.VirtualChassis.Get()) { - var ret VirtualChassisRequest + var ret BriefVirtualChassisRequest return ret } return *o.VirtualChassis.Get() @@ -844,7 +844,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassis() VirtualChas // GetVirtualChassisOk returns a tuple with the VirtualChassis field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*VirtualChassisRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetVirtualChassisOk() (*BriefVirtualChassisRequest, bool) { if o == nil { return nil, false } @@ -860,8 +860,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasVirtualChassis() bool { return false } -// SetVirtualChassis gets a reference to the given NullableVirtualChassisRequest and assigns it to the VirtualChassis field. -func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v VirtualChassisRequest) { +// SetVirtualChassis gets a reference to the given NullableBriefVirtualChassisRequest and assigns it to the VirtualChassis field. +func (o *WritableDeviceWithConfigContextRequest) SetVirtualChassis(v BriefVirtualChassisRequest) { o.VirtualChassis.Set(&v) } @@ -1026,9 +1026,9 @@ func (o *WritableDeviceWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -1037,7 +1037,7 @@ func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplate() ConfigTempl // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableDeviceWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -1053,8 +1053,8 @@ func (o *WritableDeviceWithConfigContextRequest) HasConfigTemplate() bool { return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableDeviceWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } diff --git a/model_writable_event_rule_request.go b/model_writable_event_rule_request.go index 266bff6f0..4a24a3307 100644 --- a/model_writable_event_rule_request.go +++ b/model_writable_event_rule_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,17 +22,9 @@ var _ MappedNullable = &WritableEventRuleRequest{} type WritableEventRuleRequest struct { ObjectTypes []string `json:"object_types"` Name string `json:"name"` - // Triggers when a matching object is created. - TypeCreate *bool `json:"type_create,omitempty"` - // Triggers when a matching object is updated. - TypeUpdate *bool `json:"type_update,omitempty"` - // Triggers when a matching object is deleted. - TypeDelete *bool `json:"type_delete,omitempty"` - // Triggers when a job for a matching object is started. - TypeJobStart *bool `json:"type_job_start,omitempty"` - // Triggers when a job for a matching object terminates. - TypeJobEnd *bool `json:"type_job_end,omitempty"` - Enabled *bool `json:"enabled,omitempty"` + Enabled *bool `json:"enabled,omitempty"` + // The types of event which will trigger this rule. + EventTypes []EventRuleEventTypesInner `json:"event_types"` // A set of conditions which determine whether the event will be generated. Conditions interface{} `json:"conditions,omitempty"` ActionType *EventRuleActionTypeValue `json:"action_type,omitempty"` @@ -50,10 +42,11 @@ type _WritableEventRuleRequest WritableEventRuleRequest // 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 NewWritableEventRuleRequest(objectTypes []string, name string, actionObjectType string) *WritableEventRuleRequest { +func NewWritableEventRuleRequest(objectTypes []string, name string, eventTypes []EventRuleEventTypesInner, actionObjectType string) *WritableEventRuleRequest { this := WritableEventRuleRequest{} this.ObjectTypes = objectTypes this.Name = name + this.EventTypes = eventTypes this.ActionObjectType = actionObjectType return &this } @@ -114,166 +107,6 @@ func (o *WritableEventRuleRequest) SetName(v string) { o.Name = v } -// GetTypeCreate returns the TypeCreate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeCreate() bool { - if o == nil || IsNil(o.TypeCreate) { - var ret bool - return ret - } - return *o.TypeCreate -} - -// GetTypeCreateOk returns a tuple with the TypeCreate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeCreateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeCreate) { - return nil, false - } - return o.TypeCreate, true -} - -// HasTypeCreate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeCreate() bool { - if o != nil && !IsNil(o.TypeCreate) { - return true - } - - return false -} - -// SetTypeCreate gets a reference to the given bool and assigns it to the TypeCreate field. -func (o *WritableEventRuleRequest) SetTypeCreate(v bool) { - o.TypeCreate = &v -} - -// GetTypeUpdate returns the TypeUpdate field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeUpdate() bool { - if o == nil || IsNil(o.TypeUpdate) { - var ret bool - return ret - } - return *o.TypeUpdate -} - -// GetTypeUpdateOk returns a tuple with the TypeUpdate field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeUpdateOk() (*bool, bool) { - if o == nil || IsNil(o.TypeUpdate) { - return nil, false - } - return o.TypeUpdate, true -} - -// HasTypeUpdate returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeUpdate() bool { - if o != nil && !IsNil(o.TypeUpdate) { - return true - } - - return false -} - -// SetTypeUpdate gets a reference to the given bool and assigns it to the TypeUpdate field. -func (o *WritableEventRuleRequest) SetTypeUpdate(v bool) { - o.TypeUpdate = &v -} - -// GetTypeDelete returns the TypeDelete field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeDelete() bool { - if o == nil || IsNil(o.TypeDelete) { - var ret bool - return ret - } - return *o.TypeDelete -} - -// GetTypeDeleteOk returns a tuple with the TypeDelete field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeDeleteOk() (*bool, bool) { - if o == nil || IsNil(o.TypeDelete) { - return nil, false - } - return o.TypeDelete, true -} - -// HasTypeDelete returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeDelete() bool { - if o != nil && !IsNil(o.TypeDelete) { - return true - } - - return false -} - -// SetTypeDelete gets a reference to the given bool and assigns it to the TypeDelete field. -func (o *WritableEventRuleRequest) SetTypeDelete(v bool) { - o.TypeDelete = &v -} - -// GetTypeJobStart returns the TypeJobStart field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobStart() bool { - if o == nil || IsNil(o.TypeJobStart) { - var ret bool - return ret - } - return *o.TypeJobStart -} - -// GetTypeJobStartOk returns a tuple with the TypeJobStart field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobStartOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobStart) { - return nil, false - } - return o.TypeJobStart, true -} - -// HasTypeJobStart returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobStart() bool { - if o != nil && !IsNil(o.TypeJobStart) { - return true - } - - return false -} - -// SetTypeJobStart gets a reference to the given bool and assigns it to the TypeJobStart field. -func (o *WritableEventRuleRequest) SetTypeJobStart(v bool) { - o.TypeJobStart = &v -} - -// GetTypeJobEnd returns the TypeJobEnd field value if set, zero value otherwise. -func (o *WritableEventRuleRequest) GetTypeJobEnd() bool { - if o == nil || IsNil(o.TypeJobEnd) { - var ret bool - return ret - } - return *o.TypeJobEnd -} - -// GetTypeJobEndOk returns a tuple with the TypeJobEnd field value if set, nil otherwise -// and a boolean to check if the value has been set. -func (o *WritableEventRuleRequest) GetTypeJobEndOk() (*bool, bool) { - if o == nil || IsNil(o.TypeJobEnd) { - return nil, false - } - return o.TypeJobEnd, true -} - -// HasTypeJobEnd returns a boolean if a field has been set. -func (o *WritableEventRuleRequest) HasTypeJobEnd() bool { - if o != nil && !IsNil(o.TypeJobEnd) { - return true - } - - return false -} - -// SetTypeJobEnd gets a reference to the given bool and assigns it to the TypeJobEnd field. -func (o *WritableEventRuleRequest) SetTypeJobEnd(v bool) { - o.TypeJobEnd = &v -} - // GetEnabled returns the Enabled field value if set, zero value otherwise. func (o *WritableEventRuleRequest) GetEnabled() bool { if o == nil || IsNil(o.Enabled) { @@ -306,6 +139,30 @@ func (o *WritableEventRuleRequest) SetEnabled(v bool) { o.Enabled = &v } +// GetEventTypes returns the EventTypes field value +func (o *WritableEventRuleRequest) GetEventTypes() []EventRuleEventTypesInner { + if o == nil { + var ret []EventRuleEventTypesInner + return ret + } + + return o.EventTypes +} + +// GetEventTypesOk returns a tuple with the EventTypes field value +// and a boolean to check if the value has been set. +func (o *WritableEventRuleRequest) GetEventTypesOk() ([]EventRuleEventTypesInner, bool) { + if o == nil { + return nil, false + } + return o.EventTypes, true +} + +// SetEventTypes sets field value +func (o *WritableEventRuleRequest) SetEventTypes(v []EventRuleEventTypesInner) { + o.EventTypes = v +} + // GetConditions returns the Conditions field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableEventRuleRequest) GetConditions() interface{} { if o == nil { @@ -546,24 +403,10 @@ func (o WritableEventRuleRequest) ToMap() (map[string]interface{}, error) { toSerialize := map[string]interface{}{} toSerialize["object_types"] = o.ObjectTypes toSerialize["name"] = o.Name - if !IsNil(o.TypeCreate) { - toSerialize["type_create"] = o.TypeCreate - } - if !IsNil(o.TypeUpdate) { - toSerialize["type_update"] = o.TypeUpdate - } - if !IsNil(o.TypeDelete) { - toSerialize["type_delete"] = o.TypeDelete - } - if !IsNil(o.TypeJobStart) { - toSerialize["type_job_start"] = o.TypeJobStart - } - if !IsNil(o.TypeJobEnd) { - toSerialize["type_job_end"] = o.TypeJobEnd - } if !IsNil(o.Enabled) { toSerialize["enabled"] = o.Enabled } + toSerialize["event_types"] = o.EventTypes if o.Conditions != nil { toSerialize["conditions"] = o.Conditions } @@ -598,6 +441,7 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { requiredProperties := []string{ "object_types", "name", + "event_types", "action_object_type", } @@ -630,12 +474,8 @@ func (o *WritableEventRuleRequest) UnmarshalJSON(data []byte) (err error) { if err = json.Unmarshal(data, &additionalProperties); err == nil { delete(additionalProperties, "object_types") delete(additionalProperties, "name") - delete(additionalProperties, "type_create") - delete(additionalProperties, "type_update") - delete(additionalProperties, "type_delete") - delete(additionalProperties, "type_job_start") - delete(additionalProperties, "type_job_end") delete(additionalProperties, "enabled") + delete(additionalProperties, "event_types") delete(additionalProperties, "conditions") delete(additionalProperties, "action_type") delete(additionalProperties, "action_object_type") diff --git a/model_writable_front_port_request.go b/model_writable_front_port_request.go index a8fb95366..3b852a942 100644 --- a/model_writable_front_port_request.go +++ b/model_writable_front_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableFrontPortRequest{} // WritableFrontPortRequest Adds support for custom fields and tags. type WritableFrontPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -44,7 +44,7 @@ type _WritableFrontPortRequest WritableFrontPortRequest // 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 NewWritableFrontPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { +func NewWritableFrontPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue, rearPort int32) *WritableFrontPortRequest { this := WritableFrontPortRequest{} this.Device = device this.Name = name @@ -66,9 +66,9 @@ func NewWritableFrontPortRequestWithDefaults() *WritableFrontPortRequest { } // GetDevice returns the Device field value -func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { +func (o *WritableFrontPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -77,7 +77,7 @@ func (o *WritableFrontPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableFrontPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -85,14 +85,14 @@ func (o *WritableFrontPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableFrontPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableFrontPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortRequest) GetModule() ModuleRequest { +func (o *WritableFrontPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -101,7 +101,7 @@ func (o *WritableFrontPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableFrontPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -117,8 +117,8 @@ func (o *WritableFrontPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableFrontPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableFrontPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_front_port_template_request.go b/model_writable_front_port_template_request.go index 135e41ea9..8f6f51d53 100644 --- a/model_writable_front_port_template_request.go +++ b/model_writable_front_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableFrontPortTemplateRequest{} // WritableFrontPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableFrontPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label - Label *string `json:"label,omitempty"` - Type FrontPortTypeValue `json:"type"` - Color *string `json:"color,omitempty"` - RearPort RearPortTemplateRequest `json:"rear_port"` - RearPortPosition *int32 `json:"rear_port_position,omitempty"` - Description *string `json:"description,omitempty"` + Label *string `json:"label,omitempty"` + Type FrontPortTypeValue `json:"type"` + Color *string `json:"color,omitempty"` + RearPort BriefRearPortTemplateRequest `json:"rear_port"` + RearPortPosition *int32 `json:"rear_port_position,omitempty"` + Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableFrontPortTemplateRequest WritableFrontPortTemplateRequest // 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 NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort RearPortTemplateRequest) *WritableFrontPortTemplateRequest { +func NewWritableFrontPortTemplateRequest(name string, type_ FrontPortTypeValue, rearPort BriefRearPortTemplateRequest) *WritableFrontPortTemplateRequest { this := WritableFrontPortTemplateRequest{} this.Name = name this.Type = type_ @@ -61,9 +61,9 @@ func NewWritableFrontPortTemplateRequestWithDefaults() *WritableFrontPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -72,7 +72,7 @@ func (o *WritableFrontPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -88,8 +88,8 @@ func (o *WritableFrontPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableFrontPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableFrontPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -104,9 +104,9 @@ func (o *WritableFrontPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableFrontPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -115,7 +115,7 @@ func (o *WritableFrontPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -131,8 +131,8 @@ func (o *WritableFrontPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableFrontPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableFrontPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -259,9 +259,9 @@ func (o *WritableFrontPortTemplateRequest) SetColor(v string) { } // GetRearPort returns the RearPort field value -func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest { +func (o *WritableFrontPortTemplateRequest) GetRearPort() BriefRearPortTemplateRequest { if o == nil { - var ret RearPortTemplateRequest + var ret BriefRearPortTemplateRequest return ret } @@ -270,7 +270,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPort() RearPortTemplateRequest // GetRearPortOk returns a tuple with the RearPort field value // and a boolean to check if the value has been set. -func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateRequest, bool) { +func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*BriefRearPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -278,7 +278,7 @@ func (o *WritableFrontPortTemplateRequest) GetRearPortOk() (*RearPortTemplateReq } // SetRearPort sets field value -func (o *WritableFrontPortTemplateRequest) SetRearPort(v RearPortTemplateRequest) { +func (o *WritableFrontPortTemplateRequest) SetRearPort(v BriefRearPortTemplateRequest) { o.RearPort = v } diff --git a/model_writable_ike_policy_request.go b/model_writable_ike_policy_request.go index d734a972d..5f4ecfce5 100644 --- a/model_writable_ike_policy_request.go +++ b/model_writable_ike_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ike_proposal_request.go b/model_writable_ike_proposal_request.go index 1783b8e23..ebac6c07a 100644 --- a/model_writable_ike_proposal_request.go +++ b/model_writable_ike_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_interface_request.go b/model_writable_interface_request.go index 0cefa53d8..abade84b9 100644 --- a/model_writable_interface_request.go +++ b/model_writable_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &WritableInterfaceRequest{} // WritableInterfaceRequest Adds support for custom fields and tags. type WritableInterfaceRequest struct { - Device DeviceRequest `json:"device"` - Vdcs []int32 `json:"vdcs,omitempty"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Vdcs []int32 `json:"vdcs,omitempty"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type InterfaceTypeValue `json:"type"` @@ -40,23 +40,23 @@ type WritableInterfaceRequest struct { MgmtOnly *bool `json:"mgmt_only,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` - RfChannel *WirelessChannel `json:"rf_channel,omitempty"` + RfRole *WirelessRole1 `json:"rf_role,omitempty"` + RfChannel *WirelessChannel1 `json:"rf_channel,omitempty"` PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` // Populated by selected channel (if set) RfChannelFrequency NullableFloat64 `json:"rf_channel_frequency,omitempty"` // Populated by selected channel (if set) - RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` - TxPower NullableInt32 `json:"tx_power,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` - TaggedVlans []int32 `json:"tagged_vlans,omitempty"` + RfChannelWidth NullableFloat64 `json:"rf_channel_width,omitempty"` + TxPower NullableInt32 `json:"tx_power,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` + TaggedVlans []int32 `json:"tagged_vlans,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - WirelessLans []int32 `json:"wireless_lans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + WirelessLans []int32 `json:"wireless_lans,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -66,7 +66,7 @@ type _WritableInterfaceRequest WritableInterfaceRequest // 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 NewWritableInterfaceRequest(device DeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { +func NewWritableInterfaceRequest(device BriefDeviceRequest, name string, type_ InterfaceTypeValue) *WritableInterfaceRequest { this := WritableInterfaceRequest{} this.Device = device this.Name = name @@ -83,9 +83,9 @@ func NewWritableInterfaceRequestWithDefaults() *WritableInterfaceRequest { } // GetDevice returns the Device field value -func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { +func (o *WritableInterfaceRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -94,7 +94,7 @@ func (o *WritableInterfaceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableInterfaceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -102,7 +102,7 @@ func (o *WritableInterfaceRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableInterfaceRequest) SetDevice(v DeviceRequest) { +func (o *WritableInterfaceRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -139,9 +139,9 @@ func (o *WritableInterfaceRequest) SetVdcs(v []int32) { } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetModule() ModuleRequest { +func (o *WritableInterfaceRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -150,7 +150,7 @@ func (o *WritableInterfaceRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableInterfaceRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -166,8 +166,8 @@ func (o *WritableInterfaceRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableInterfaceRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableInterfaceRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -734,9 +734,9 @@ func (o *WritableInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMode } // GetRfRole returns the RfRole field value if set, zero value otherwise. -func (o *WritableInterfaceRequest) GetRfRole() WirelessRole { +func (o *WritableInterfaceRequest) GetRfRole() WirelessRole1 { if o == nil || IsNil(o.RfRole) { - var ret WirelessRole + var ret WirelessRole1 return ret } return *o.RfRole @@ -744,7 +744,7 @@ func (o *WritableInterfaceRequest) GetRfRole() WirelessRole { // GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole, bool) { +func (o *WritableInterfaceRequest) GetRfRoleOk() (*WirelessRole1, bool) { if o == nil || IsNil(o.RfRole) { return nil, false } @@ -760,15 +760,15 @@ func (o *WritableInterfaceRequest) HasRfRole() bool { return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. -func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole) { +// SetRfRole gets a reference to the given WirelessRole1 and assigns it to the RfRole field. +func (o *WritableInterfaceRequest) SetRfRole(v WirelessRole1) { o.RfRole = &v } // GetRfChannel returns the RfChannel field value if set, zero value otherwise. -func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel { +func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel1 { if o == nil || IsNil(o.RfChannel) { - var ret WirelessChannel + var ret WirelessChannel1 return ret } return *o.RfChannel @@ -776,7 +776,7 @@ func (o *WritableInterfaceRequest) GetRfChannel() WirelessChannel { // GetRfChannelOk returns a tuple with the RfChannel field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel, bool) { +func (o *WritableInterfaceRequest) GetRfChannelOk() (*WirelessChannel1, bool) { if o == nil || IsNil(o.RfChannel) { return nil, false } @@ -792,8 +792,8 @@ func (o *WritableInterfaceRequest) HasRfChannel() bool { return false } -// SetRfChannel gets a reference to the given WirelessChannel and assigns it to the RfChannel field. -func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel) { +// SetRfChannel gets a reference to the given WirelessChannel1 and assigns it to the RfChannel field. +func (o *WritableInterfaceRequest) SetRfChannel(v WirelessChannel1) { o.RfChannel = &v } @@ -991,9 +991,9 @@ func (o *WritableInterfaceRequest) UnsetTxPower() { } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -1002,7 +1002,7 @@ func (o *WritableInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -1018,8 +1018,8 @@ func (o *WritableInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -1130,9 +1130,9 @@ func (o *WritableInterfaceRequest) SetWirelessLans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -1141,7 +1141,7 @@ func (o *WritableInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -1157,8 +1157,8 @@ func (o *WritableInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_interface_template_request.go b/model_writable_interface_template_request.go index a0d61207c..3bc1f082d 100644 --- a/model_writable_interface_template_request.go +++ b/model_writable_interface_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableInterfaceTemplateRequest{} // WritableInterfaceTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableInterfaceTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -33,7 +33,7 @@ type WritableInterfaceTemplateRequest struct { Bridge NullableInt32 `json:"bridge,omitempty"` PoeMode *InterfacePoeModeValue `json:"poe_mode,omitempty"` PoeType *InterfacePoeTypeValue `json:"poe_type,omitempty"` - RfRole *WirelessRole `json:"rf_role,omitempty"` + RfRole *WirelessRole1 `json:"rf_role,omitempty"` AdditionalProperties map[string]interface{} } @@ -59,9 +59,9 @@ func NewWritableInterfaceTemplateRequestWithDefaults() *WritableInterfaceTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -70,7 +70,7 @@ func (o *WritableInterfaceTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -86,8 +86,8 @@ func (o *WritableInterfaceTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableInterfaceTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableInterfaceTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -102,9 +102,9 @@ func (o *WritableInterfaceTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableInterfaceTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -113,7 +113,7 @@ func (o *WritableInterfaceTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableInterfaceTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -129,8 +129,8 @@ func (o *WritableInterfaceTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableInterfaceTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableInterfaceTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -428,9 +428,9 @@ func (o *WritableInterfaceTemplateRequest) SetPoeType(v InterfacePoeTypeValue) { } // GetRfRole returns the RfRole field value if set, zero value otherwise. -func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole { +func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole1 { if o == nil || IsNil(o.RfRole) { - var ret WirelessRole + var ret WirelessRole1 return ret } return *o.RfRole @@ -438,7 +438,7 @@ func (o *WritableInterfaceTemplateRequest) GetRfRole() WirelessRole { // GetRfRoleOk returns a tuple with the RfRole field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole, bool) { +func (o *WritableInterfaceTemplateRequest) GetRfRoleOk() (*WirelessRole1, bool) { if o == nil || IsNil(o.RfRole) { return nil, false } @@ -454,8 +454,8 @@ func (o *WritableInterfaceTemplateRequest) HasRfRole() bool { return false } -// SetRfRole gets a reference to the given WirelessRole and assigns it to the RfRole field. -func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole) { +// SetRfRole gets a reference to the given WirelessRole1 and assigns it to the RfRole field. +func (o *WritableInterfaceTemplateRequest) SetRfRole(v WirelessRole1) { o.RfRole = &v } diff --git a/model_writable_ip_address_request.go b/model_writable_ip_address_request.go index 05fae1d60..1b88c5666 100644 --- a/model_writable_ip_address_request.go +++ b/model_writable_ip_address_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,8 +21,8 @@ var _ MappedNullable = &WritableIPAddressRequest{} // WritableIPAddressRequest Adds support for custom fields and tags. type WritableIPAddressRequest struct { Address string `json:"address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPAddressRequestStatus `json:"status,omitempty"` Role *PatchedWritableIPAddressRequestRole `json:"role,omitempty"` AssignedObjectType NullableString `json:"assigned_object_type,omitempty"` @@ -83,9 +83,9 @@ func (o *WritableIPAddressRequest) SetAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetVrf() VRFRequest { +func (o *WritableIPAddressRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -94,7 +94,7 @@ func (o *WritableIPAddressRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPAddressRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritableIPAddressRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPAddressRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPAddressRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritableIPAddressRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPAddressRequest) GetTenant() TenantRequest { +func (o *WritableIPAddressRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -137,7 +137,7 @@ func (o *WritableIPAddressRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPAddressRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPAddressRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritableIPAddressRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPAddressRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPAddressRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_ip_range_request.go b/model_writable_ip_range_request.go index c93135b4c..2eae60342 100644 --- a/model_writable_ip_range_request.go +++ b/model_writable_ip_range_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableIPRangeRequest{} type WritableIPRangeRequest struct { StartAddress string `json:"start_address"` EndAddress string `json:"end_address"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableIPRangeRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -105,9 +105,9 @@ func (o *WritableIPRangeRequest) SetEndAddress(v string) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetVrf() VRFRequest { +func (o *WritableIPRangeRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -116,7 +116,7 @@ func (o *WritableIPRangeRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableIPRangeRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -132,8 +132,8 @@ func (o *WritableIPRangeRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableIPRangeRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableIPRangeRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -148,9 +148,9 @@ func (o *WritableIPRangeRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetTenant() TenantRequest { +func (o *WritableIPRangeRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableIPRangeRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableIPRangeRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableIPRangeRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableIPRangeRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableIPRangeRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -223,9 +223,9 @@ func (o *WritableIPRangeRequest) SetStatus(v PatchedWritableIPRangeRequestStatus } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableIPRangeRequest) GetRole() RoleRequest { +func (o *WritableIPRangeRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -234,7 +234,7 @@ func (o *WritableIPRangeRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableIPRangeRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableIPRangeRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -250,8 +250,8 @@ func (o *WritableIPRangeRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableIPRangeRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableIPRangeRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_ip_sec_policy_request.go b/model_writable_ip_sec_policy_request.go index d6599e673..a88039045 100644 --- a/model_writable_ip_sec_policy_request.go +++ b/model_writable_ip_sec_policy_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_ip_sec_profile_request.go b/model_writable_ip_sec_profile_request.go index 0f60eeb67..9cb670853 100644 --- a/model_writable_ip_sec_profile_request.go +++ b/model_writable_ip_sec_profile_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableIPSecProfileRequest{} // WritableIPSecProfileRequest Adds support for custom fields and tags. type WritableIPSecProfileRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - Mode IPSecProfileModeValue `json:"mode"` - IkePolicy IKEPolicyRequest `json:"ike_policy"` - IpsecPolicy IPSecPolicyRequest `json:"ipsec_policy"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + Mode IPSecProfileModeValue `json:"mode"` + IkePolicy BriefIKEPolicyRequest `json:"ike_policy"` + IpsecPolicy BriefIPSecPolicyRequest `json:"ipsec_policy"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,7 +37,7 @@ type _WritableIPSecProfileRequest WritableIPSecProfileRequest // 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 NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy IKEPolicyRequest, ipsecPolicy IPSecPolicyRequest) *WritableIPSecProfileRequest { +func NewWritableIPSecProfileRequest(name string, mode IPSecProfileModeValue, ikePolicy BriefIKEPolicyRequest, ipsecPolicy BriefIPSecPolicyRequest) *WritableIPSecProfileRequest { this := WritableIPSecProfileRequest{} this.Name = name this.Mode = mode @@ -135,9 +135,9 @@ func (o *WritableIPSecProfileRequest) SetMode(v IPSecProfileModeValue) { } // GetIkePolicy returns the IkePolicy field value -func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIkePolicy() BriefIKEPolicyRequest { if o == nil { - var ret IKEPolicyRequest + var ret BriefIKEPolicyRequest return ret } @@ -146,7 +146,7 @@ func (o *WritableIPSecProfileRequest) GetIkePolicy() IKEPolicyRequest { // GetIkePolicyOk returns a tuple with the IkePolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*BriefIKEPolicyRequest, bool) { if o == nil { return nil, false } @@ -154,14 +154,14 @@ func (o *WritableIPSecProfileRequest) GetIkePolicyOk() (*IKEPolicyRequest, bool) } // SetIkePolicy sets field value -func (o *WritableIPSecProfileRequest) SetIkePolicy(v IKEPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIkePolicy(v BriefIKEPolicyRequest) { o.IkePolicy = v } // GetIpsecPolicy returns the IpsecPolicy field value -func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { +func (o *WritableIPSecProfileRequest) GetIpsecPolicy() BriefIPSecPolicyRequest { if o == nil { - var ret IPSecPolicyRequest + var ret BriefIPSecPolicyRequest return ret } @@ -170,7 +170,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicy() IPSecPolicyRequest { // GetIpsecPolicyOk returns a tuple with the IpsecPolicy field value // and a boolean to check if the value has been set. -func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, bool) { +func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*BriefIPSecPolicyRequest, bool) { if o == nil { return nil, false } @@ -178,7 +178,7 @@ func (o *WritableIPSecProfileRequest) GetIpsecPolicyOk() (*IPSecPolicyRequest, b } // SetIpsecPolicy sets field value -func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v IPSecPolicyRequest) { +func (o *WritableIPSecProfileRequest) SetIpsecPolicy(v BriefIPSecPolicyRequest) { o.IpsecPolicy = v } diff --git a/model_writable_ip_sec_proposal_request.go b/model_writable_ip_sec_proposal_request.go index f04acc1ab..ccd7b12fe 100644 --- a/model_writable_ip_sec_proposal_request.go +++ b/model_writable_ip_sec_proposal_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,10 +20,10 @@ var _ MappedNullable = &WritableIPSecProposalRequest{} // WritableIPSecProposalRequest Adds support for custom fields and tags. type WritableIPSecProposalRequest struct { - Name string `json:"name"` - Description *string `json:"description,omitempty"` - EncryptionAlgorithm *Encryption `json:"encryption_algorithm,omitempty"` - AuthenticationAlgorithm *Authentication `json:"authentication_algorithm,omitempty"` + Name string `json:"name"` + Description *string `json:"description,omitempty"` + EncryptionAlgorithm *Encryption1 `json:"encryption_algorithm,omitempty"` + AuthenticationAlgorithm *Authentication1 `json:"authentication_algorithm,omitempty"` // Security association lifetime (seconds) SaLifetimeSeconds NullableInt32 `json:"sa_lifetime_seconds,omitempty"` // Security association lifetime (in kilobytes) @@ -111,9 +111,9 @@ func (o *WritableIPSecProposalRequest) SetDescription(v string) { } // GetEncryptionAlgorithm returns the EncryptionAlgorithm field value if set, zero value otherwise. -func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption { +func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption1 { if o == nil || IsNil(o.EncryptionAlgorithm) { - var ret Encryption + var ret Encryption1 return ret } return *o.EncryptionAlgorithm @@ -121,7 +121,7 @@ func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithm() Encryption { // GetEncryptionAlgorithmOk returns a tuple with the EncryptionAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption, bool) { +func (o *WritableIPSecProposalRequest) GetEncryptionAlgorithmOk() (*Encryption1, bool) { if o == nil || IsNil(o.EncryptionAlgorithm) { return nil, false } @@ -137,15 +137,15 @@ func (o *WritableIPSecProposalRequest) HasEncryptionAlgorithm() bool { return false } -// SetEncryptionAlgorithm gets a reference to the given Encryption and assigns it to the EncryptionAlgorithm field. -func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption) { +// SetEncryptionAlgorithm gets a reference to the given Encryption1 and assigns it to the EncryptionAlgorithm field. +func (o *WritableIPSecProposalRequest) SetEncryptionAlgorithm(v Encryption1) { o.EncryptionAlgorithm = &v } // GetAuthenticationAlgorithm returns the AuthenticationAlgorithm field value if set, zero value otherwise. -func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication { +func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authentication1 { if o == nil || IsNil(o.AuthenticationAlgorithm) { - var ret Authentication + var ret Authentication1 return ret } return *o.AuthenticationAlgorithm @@ -153,7 +153,7 @@ func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithm() Authenticati // GetAuthenticationAlgorithmOk returns a tuple with the AuthenticationAlgorithm field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication, bool) { +func (o *WritableIPSecProposalRequest) GetAuthenticationAlgorithmOk() (*Authentication1, bool) { if o == nil || IsNil(o.AuthenticationAlgorithm) { return nil, false } @@ -169,8 +169,8 @@ func (o *WritableIPSecProposalRequest) HasAuthenticationAlgorithm() bool { return false } -// SetAuthenticationAlgorithm gets a reference to the given Authentication and assigns it to the AuthenticationAlgorithm field. -func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication) { +// SetAuthenticationAlgorithm gets a reference to the given Authentication1 and assigns it to the AuthenticationAlgorithm field. +func (o *WritableIPSecProposalRequest) SetAuthenticationAlgorithm(v Authentication1) { o.AuthenticationAlgorithm = &v } diff --git a/model_writable_journal_entry_request.go b/model_writable_journal_entry_request.go index ab1c91cc2..7463761f0 100644 --- a/model_writable_journal_entry_request.go +++ b/model_writable_journal_entry_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_l2_vpn_request.go b/model_writable_l2_vpn_request.go index 64af85b8d..70ddc1ca2 100644 --- a/model_writable_l2_vpn_request.go +++ b/model_writable_l2_vpn_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,17 +20,17 @@ var _ MappedNullable = &WritableL2VPNRequest{} // WritableL2VPNRequest Adds support for custom fields and tags. type WritableL2VPNRequest struct { - Identifier NullableInt64 `json:"identifier,omitempty"` - Name string `json:"name"` - Slug string `json:"slug"` - Type L2VPNTypeValue `json:"type"` - ImportTargets []int32 `json:"import_targets,omitempty"` - ExportTargets []int32 `json:"export_targets,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + Identifier NullableInt64 `json:"identifier,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Type BriefL2VPNTypeValue `json:"type"` + ImportTargets []int32 `json:"import_targets,omitempty"` + ExportTargets []int32 `json:"export_targets,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -40,7 +40,7 @@ type _WritableL2VPNRequest WritableL2VPNRequest // 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 NewWritableL2VPNRequest(name string, slug string, type_ L2VPNTypeValue) *WritableL2VPNRequest { +func NewWritableL2VPNRequest(name string, slug string, type_ BriefL2VPNTypeValue) *WritableL2VPNRequest { this := WritableL2VPNRequest{} this.Name = name this.Slug = slug @@ -148,9 +148,9 @@ func (o *WritableL2VPNRequest) SetSlug(v string) { } // GetType returns the Type field value -func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { +func (o *WritableL2VPNRequest) GetType() BriefL2VPNTypeValue { if o == nil { - var ret L2VPNTypeValue + var ret BriefL2VPNTypeValue return ret } @@ -159,7 +159,7 @@ func (o *WritableL2VPNRequest) GetType() L2VPNTypeValue { // GetTypeOk returns a tuple with the Type field value // and a boolean to check if the value has been set. -func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { +func (o *WritableL2VPNRequest) GetTypeOk() (*BriefL2VPNTypeValue, bool) { if o == nil { return nil, false } @@ -167,7 +167,7 @@ func (o *WritableL2VPNRequest) GetTypeOk() (*L2VPNTypeValue, bool) { } // SetType sets field value -func (o *WritableL2VPNRequest) SetType(v L2VPNTypeValue) { +func (o *WritableL2VPNRequest) SetType(v BriefL2VPNTypeValue) { o.Type = v } @@ -300,9 +300,9 @@ func (o *WritableL2VPNRequest) SetComments(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableL2VPNRequest) GetTenant() TenantRequest { +func (o *WritableL2VPNRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -311,7 +311,7 @@ func (o *WritableL2VPNRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableL2VPNRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableL2VPNRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -327,8 +327,8 @@ func (o *WritableL2VPNRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableL2VPNRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableL2VPNRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_location_request.go b/model_writable_location_request.go index 4ee75bbce..c03485e43 100644 --- a/model_writable_location_request.go +++ b/model_writable_location_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,12 +20,12 @@ var _ MappedNullable = &WritableLocationRequest{} // WritableLocationRequest Extends PrimaryModelSerializer to include MPTT support. type WritableLocationRequest struct { - Name string `json:"name"` - Slug string `json:"slug"` - Site SiteRequest `json:"site"` - Parent NullableInt32 `json:"parent"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Site BriefSiteRequest `json:"site"` + Parent NullableInt32 `json:"parent"` + Status *LocationStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableLocationRequest WritableLocationRequest // 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 NewWritableLocationRequest(name string, slug string, site SiteRequest, parent NullableInt32) *WritableLocationRequest { +func NewWritableLocationRequest(name string, slug string, site BriefSiteRequest, parent NullableInt32) *WritableLocationRequest { this := WritableLocationRequest{} this.Name = name this.Slug = slug @@ -106,9 +106,9 @@ func (o *WritableLocationRequest) SetSlug(v string) { } // GetSite returns the Site field value -func (o *WritableLocationRequest) GetSite() SiteRequest { +func (o *WritableLocationRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -117,7 +117,7 @@ func (o *WritableLocationRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableLocationRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -125,7 +125,7 @@ func (o *WritableLocationRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableLocationRequest) SetSite(v SiteRequest) { +func (o *WritableLocationRequest) SetSite(v BriefSiteRequest) { o.Site = v } @@ -156,9 +156,9 @@ func (o *WritableLocationRequest) SetParent(v int32) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableLocationRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -166,7 +166,7 @@ func (o *WritableLocationRequest) GetStatus() PatchedWritableLocationRequestStat // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableLocationRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableLocationRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -182,15 +182,15 @@ func (o *WritableLocationRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableLocationRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableLocationRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableLocationRequest) GetTenant() TenantRequest { +func (o *WritableLocationRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -199,7 +199,7 @@ func (o *WritableLocationRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableLocationRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableLocationRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -215,8 +215,8 @@ func (o *WritableLocationRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableLocationRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableLocationRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_module_request.go b/model_writable_module_request.go index 83271a51e..9b488a70a 100644 --- a/model_writable_module_request.go +++ b/model_writable_module_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableModuleRequest{} // WritableModuleRequest Adds support for custom fields and tags. type WritableModuleRequest struct { - Device DeviceRequest `json:"device"` - ModuleBay int32 `json:"module_bay"` - ModuleType ModuleTypeRequest `json:"module_type"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Serial *string `json:"serial,omitempty"` + Device BriefDeviceRequest `json:"device"` + ModuleBay int32 `json:"module_bay"` + ModuleType BriefModuleTypeRequest `json:"module_type"` + Status *ModuleStatusValue `json:"status,omitempty"` + Serial *string `json:"serial,omitempty"` // A unique tag used to identify this device AssetTag NullableString `json:"asset_tag,omitempty"` Description *string `json:"description,omitempty"` @@ -40,7 +40,7 @@ type _WritableModuleRequest WritableModuleRequest // 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 NewWritableModuleRequest(device DeviceRequest, moduleBay int32, moduleType ModuleTypeRequest) *WritableModuleRequest { +func NewWritableModuleRequest(device BriefDeviceRequest, moduleBay int32, moduleType BriefModuleTypeRequest) *WritableModuleRequest { this := WritableModuleRequest{} this.Device = device this.ModuleBay = moduleBay @@ -57,9 +57,9 @@ func NewWritableModuleRequestWithDefaults() *WritableModuleRequest { } // GetDevice returns the Device field value -func (o *WritableModuleRequest) GetDevice() DeviceRequest { +func (o *WritableModuleRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -68,7 +68,7 @@ func (o *WritableModuleRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableModuleRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -76,7 +76,7 @@ func (o *WritableModuleRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableModuleRequest) SetDevice(v DeviceRequest) { +func (o *WritableModuleRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -105,9 +105,9 @@ func (o *WritableModuleRequest) SetModuleBay(v int32) { } // GetModuleType returns the ModuleType field value -func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableModuleRequest) GetModuleType() BriefModuleTypeRequest { if o == nil { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } @@ -116,7 +116,7 @@ func (o *WritableModuleRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableModuleRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,14 +124,14 @@ func (o *WritableModuleRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { } // SetModuleType sets field value -func (o *WritableModuleRequest) SetModuleType(v ModuleTypeRequest) { +func (o *WritableModuleRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType = v } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableModuleRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -139,7 +139,7 @@ func (o *WritableModuleRequest) GetStatus() PatchedWritableModuleRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableModuleRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -155,8 +155,8 @@ func (o *WritableModuleRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableModuleRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *WritableModuleRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } diff --git a/model_writable_module_type_request.go b/model_writable_module_type_request.go index a321613fe..dd66cad3a 100644 --- a/model_writable_module_type_request.go +++ b/model_writable_module_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,16 +20,17 @@ var _ MappedNullable = &WritableModuleTypeRequest{} // WritableModuleTypeRequest Adds support for custom fields and tags. type WritableModuleTypeRequest struct { - Manufacturer ManufacturerRequest `json:"manufacturer"` - Model string `json:"model"` + Manufacturer BriefManufacturerRequest `json:"manufacturer"` + Model string `json:"model"` // Discrete part number (optional) - PartNumber *string `json:"part_number,omitempty"` - Weight NullableFloat64 `json:"weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + PartNumber *string `json:"part_number,omitempty"` + Airflow *ModuleTypeAirflowValue `json:"airflow,omitempty"` + Weight NullableFloat64 `json:"weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -39,7 +40,7 @@ type _WritableModuleTypeRequest WritableModuleTypeRequest // 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 NewWritableModuleTypeRequest(manufacturer ManufacturerRequest, model string) *WritableModuleTypeRequest { +func NewWritableModuleTypeRequest(manufacturer BriefManufacturerRequest, model string) *WritableModuleTypeRequest { this := WritableModuleTypeRequest{} this.Manufacturer = manufacturer this.Model = model @@ -55,9 +56,9 @@ func NewWritableModuleTypeRequestWithDefaults() *WritableModuleTypeRequest { } // GetManufacturer returns the Manufacturer field value -func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { +func (o *WritableModuleTypeRequest) GetManufacturer() BriefManufacturerRequest { if o == nil { - var ret ManufacturerRequest + var ret BriefManufacturerRequest return ret } @@ -66,7 +67,7 @@ func (o *WritableModuleTypeRequest) GetManufacturer() ManufacturerRequest { // GetManufacturerOk returns a tuple with the Manufacturer field value // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, bool) { +func (o *WritableModuleTypeRequest) GetManufacturerOk() (*BriefManufacturerRequest, bool) { if o == nil { return nil, false } @@ -74,7 +75,7 @@ func (o *WritableModuleTypeRequest) GetManufacturerOk() (*ManufacturerRequest, b } // SetManufacturer sets field value -func (o *WritableModuleTypeRequest) SetManufacturer(v ManufacturerRequest) { +func (o *WritableModuleTypeRequest) SetManufacturer(v BriefManufacturerRequest) { o.Manufacturer = v } @@ -134,6 +135,38 @@ func (o *WritableModuleTypeRequest) SetPartNumber(v string) { o.PartNumber = &v } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *WritableModuleTypeRequest) GetAirflow() ModuleTypeAirflowValue { + if o == nil || IsNil(o.Airflow) { + var ret ModuleTypeAirflowValue + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableModuleTypeRequest) GetAirflowOk() (*ModuleTypeAirflowValue, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableModuleTypeRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given ModuleTypeAirflowValue and assigns it to the Airflow field. +func (o *WritableModuleTypeRequest) SetAirflow(v ModuleTypeAirflowValue) { + o.Airflow = &v +} + // GetWeight returns the Weight field value if set, zero value otherwise (both if not set or set to explicit null). func (o *WritableModuleTypeRequest) GetWeight() float64 { if o == nil || IsNil(o.Weight.Get()) { @@ -178,9 +211,9 @@ func (o *WritableModuleTypeRequest) UnsetWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableModuleTypeRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -188,7 +221,7 @@ func (o *WritableModuleTypeRequest) GetWeightUnit() PatchedWritableDeviceTypeReq // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableModuleTypeRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -204,8 +237,8 @@ func (o *WritableModuleTypeRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableModuleTypeRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableModuleTypeRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -352,6 +385,9 @@ func (o WritableModuleTypeRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.PartNumber) { toSerialize["part_number"] = o.PartNumber } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if o.Weight.IsSet() { toSerialize["weight"] = o.Weight.Get() } @@ -417,6 +453,7 @@ func (o *WritableModuleTypeRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "manufacturer") delete(additionalProperties, "model") delete(additionalProperties, "part_number") + delete(additionalProperties, "airflow") delete(additionalProperties, "weight") delete(additionalProperties, "weight_unit") delete(additionalProperties, "description") diff --git a/model_writable_power_feed_request.go b/model_writable_power_feed_request.go index 3a6fcef64..8779a45ad 100644 --- a/model_writable_power_feed_request.go +++ b/model_writable_power_feed_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerFeedRequest{} // WritablePowerFeedRequest Adds support for custom fields and tags. type WritablePowerFeedRequest struct { - PowerPanel PowerPanelRequest `json:"power_panel"` - Rack NullableRackRequest `json:"rack,omitempty"` + PowerPanel BriefPowerPanelRequest `json:"power_panel"` + Rack NullableBriefRackRequest `json:"rack,omitempty"` Name string `json:"name"` Status *PatchedWritablePowerFeedRequestStatus `json:"status,omitempty"` Type *PatchedWritablePowerFeedRequestType `json:"type,omitempty"` @@ -32,12 +32,12 @@ type WritablePowerFeedRequest struct { // Maximum permissible draw (percentage) MaxUtilization *int32 `json:"max_utilization,omitempty"` // Treat as if a cable is connected - MarkConnected *bool `json:"mark_connected,omitempty"` - Description *string `json:"description,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MarkConnected *bool `json:"mark_connected,omitempty"` + Description *string `json:"description,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -47,7 +47,7 @@ type _WritablePowerFeedRequest WritablePowerFeedRequest // 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 NewWritablePowerFeedRequest(powerPanel PowerPanelRequest, name string) *WritablePowerFeedRequest { +func NewWritablePowerFeedRequest(powerPanel BriefPowerPanelRequest, name string) *WritablePowerFeedRequest { this := WritablePowerFeedRequest{} this.PowerPanel = powerPanel this.Name = name @@ -63,9 +63,9 @@ func NewWritablePowerFeedRequestWithDefaults() *WritablePowerFeedRequest { } // GetPowerPanel returns the PowerPanel field value -func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { +func (o *WritablePowerFeedRequest) GetPowerPanel() BriefPowerPanelRequest { if o == nil { - var ret PowerPanelRequest + var ret BriefPowerPanelRequest return ret } @@ -74,7 +74,7 @@ func (o *WritablePowerFeedRequest) GetPowerPanel() PowerPanelRequest { // GetPowerPanelOk returns a tuple with the PowerPanel field value // and a boolean to check if the value has been set. -func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) { +func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*BriefPowerPanelRequest, bool) { if o == nil { return nil, false } @@ -82,14 +82,14 @@ func (o *WritablePowerFeedRequest) GetPowerPanelOk() (*PowerPanelRequest, bool) } // SetPowerPanel sets field value -func (o *WritablePowerFeedRequest) SetPowerPanel(v PowerPanelRequest) { +func (o *WritablePowerFeedRequest) SetPowerPanel(v BriefPowerPanelRequest) { o.PowerPanel = v } // GetRack returns the Rack field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetRack() RackRequest { +func (o *WritablePowerFeedRequest) GetRack() BriefRackRequest { if o == nil || IsNil(o.Rack.Get()) { - var ret RackRequest + var ret BriefRackRequest return ret } return *o.Rack.Get() @@ -98,7 +98,7 @@ func (o *WritablePowerFeedRequest) GetRack() RackRequest { // GetRackOk returns a tuple with the Rack field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetRackOk() (*RackRequest, bool) { +func (o *WritablePowerFeedRequest) GetRackOk() (*BriefRackRequest, bool) { if o == nil { return nil, false } @@ -114,8 +114,8 @@ func (o *WritablePowerFeedRequest) HasRack() bool { return false } -// SetRack gets a reference to the given NullableRackRequest and assigns it to the Rack field. -func (o *WritablePowerFeedRequest) SetRack(v RackRequest) { +// SetRack gets a reference to the given NullableBriefRackRequest and assigns it to the Rack field. +func (o *WritablePowerFeedRequest) SetRack(v BriefRackRequest) { o.Rack.Set(&v) } @@ -442,9 +442,9 @@ func (o *WritablePowerFeedRequest) SetDescription(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { +func (o *WritablePowerFeedRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -453,7 +453,7 @@ func (o *WritablePowerFeedRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerFeedRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePowerFeedRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -469,8 +469,8 @@ func (o *WritablePowerFeedRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePowerFeedRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePowerFeedRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_power_outlet_request.go b/model_writable_power_outlet_request.go index 024131d9b..eff091bd4 100644 --- a/model_writable_power_outlet_request.go +++ b/model_writable_power_outlet_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,13 +20,13 @@ var _ MappedNullable = &WritablePowerOutletRequest{} // WritablePowerOutletRequest Adds support for custom fields and tags. type WritablePowerOutletRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` // Treat as if a cable is connected @@ -42,7 +42,7 @@ type _WritablePowerOutletRequest WritablePowerOutletRequest // 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 NewWritablePowerOutletRequest(device DeviceRequest, name string) *WritablePowerOutletRequest { +func NewWritablePowerOutletRequest(device BriefDeviceRequest, name string) *WritablePowerOutletRequest { this := WritablePowerOutletRequest{} this.Device = device this.Name = name @@ -58,9 +58,9 @@ func NewWritablePowerOutletRequestWithDefaults() *WritablePowerOutletRequest { } // GetDevice returns the Device field value -func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { +func (o *WritablePowerOutletRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -69,7 +69,7 @@ func (o *WritablePowerOutletRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerOutletRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -77,14 +77,14 @@ func (o *WritablePowerOutletRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerOutletRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerOutletRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { +func (o *WritablePowerOutletRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -93,7 +93,7 @@ func (o *WritablePowerOutletRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerOutletRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -109,8 +109,8 @@ func (o *WritablePowerOutletRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerOutletRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerOutletRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } @@ -213,9 +213,9 @@ func (o *WritablePowerOutletRequest) SetType(v PatchedWritablePowerOutletRequest } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { +func (o *WritablePowerOutletRequest) GetPowerPort() BriefPowerPortRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortRequest + var ret BriefPowerPortRequest return ret } return *o.PowerPort.Get() @@ -224,7 +224,7 @@ func (o *WritablePowerOutletRequest) GetPowerPort() PowerPortRequest { // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletRequest) GetPowerPortOk() (*PowerPortRequest, bool) { +func (o *WritablePowerOutletRequest) GetPowerPortOk() (*BriefPowerPortRequest, bool) { if o == nil { return nil, false } @@ -240,8 +240,8 @@ func (o *WritablePowerOutletRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletRequest) SetPowerPort(v PowerPortRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletRequest) SetPowerPort(v BriefPowerPortRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_outlet_template_request.go b/model_writable_power_outlet_template_request.go index d74116d27..10e186a41 100644 --- a/model_writable_power_outlet_template_request.go +++ b/model_writable_power_outlet_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritablePowerOutletTemplateRequest{} // WritablePowerOutletTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerOutletTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerOutletTemplateRequestType `json:"type,omitempty"` - PowerPort NullablePowerPortTemplateRequest `json:"power_port,omitempty"` + PowerPort NullableBriefPowerPortTemplateRequest `json:"power_port,omitempty"` FeedLeg *PatchedWritablePowerOutletRequestFeedLeg `json:"feed_leg,omitempty"` Description *string `json:"description,omitempty"` AdditionalProperties map[string]interface{} @@ -54,9 +54,9 @@ func NewWritablePowerOutletTemplateRequestWithDefaults() *WritablePowerOutletTem } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -65,7 +65,7 @@ func (o *WritablePowerOutletTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -81,8 +81,8 @@ func (o *WritablePowerOutletTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerOutletTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -97,9 +97,9 @@ func (o *WritablePowerOutletTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerOutletTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -108,7 +108,7 @@ func (o *WritablePowerOutletTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -124,8 +124,8 @@ func (o *WritablePowerOutletTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerOutletTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerOutletTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } @@ -228,9 +228,9 @@ func (o *WritablePowerOutletTemplateRequest) SetType(v PatchedWritablePowerOutle } // GetPowerPort returns the PowerPort field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateRequest { +func (o *WritablePowerOutletTemplateRequest) GetPowerPort() BriefPowerPortTemplateRequest { if o == nil || IsNil(o.PowerPort.Get()) { - var ret PowerPortTemplateRequest + var ret BriefPowerPortTemplateRequest return ret } return *o.PowerPort.Get() @@ -239,7 +239,7 @@ func (o *WritablePowerOutletTemplateRequest) GetPowerPort() PowerPortTemplateReq // GetPowerPortOk returns a tuple with the PowerPort field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*PowerPortTemplateRequest, bool) { +func (o *WritablePowerOutletTemplateRequest) GetPowerPortOk() (*BriefPowerPortTemplateRequest, bool) { if o == nil { return nil, false } @@ -255,8 +255,8 @@ func (o *WritablePowerOutletTemplateRequest) HasPowerPort() bool { return false } -// SetPowerPort gets a reference to the given NullablePowerPortTemplateRequest and assigns it to the PowerPort field. -func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v PowerPortTemplateRequest) { +// SetPowerPort gets a reference to the given NullableBriefPowerPortTemplateRequest and assigns it to the PowerPort field. +func (o *WritablePowerOutletTemplateRequest) SetPowerPort(v BriefPowerPortTemplateRequest) { o.PowerPort.Set(&v) } diff --git a/model_writable_power_port_request.go b/model_writable_power_port_request.go index 1634269d8..24d8c9414 100644 --- a/model_writable_power_port_request.go +++ b/model_writable_power_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritablePowerPortRequest{} // WritablePowerPortRequest Adds support for custom fields and tags. type WritablePowerPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type *PatchedWritablePowerPortRequestType `json:"type,omitempty"` @@ -44,7 +44,7 @@ type _WritablePowerPortRequest WritablePowerPortRequest // 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 NewWritablePowerPortRequest(device DeviceRequest, name string) *WritablePowerPortRequest { +func NewWritablePowerPortRequest(device BriefDeviceRequest, name string) *WritablePowerPortRequest { this := WritablePowerPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritablePowerPortRequestWithDefaults() *WritablePowerPortRequest { } // GetDevice returns the Device field value -func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { +func (o *WritablePowerPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritablePowerPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritablePowerPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritablePowerPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritablePowerPortRequest) SetDevice(v DeviceRequest) { +func (o *WritablePowerPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortRequest) GetModule() ModuleRequest { +func (o *WritablePowerPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritablePowerPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritablePowerPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritablePowerPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritablePowerPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritablePowerPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_power_port_template_request.go b/model_writable_power_port_template_request.go index 0f35c5336..182f8a28b 100644 --- a/model_writable_power_port_template_request.go +++ b/model_writable_power_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritablePowerPortTemplateRequest{} // WritablePowerPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritablePowerPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -56,9 +56,9 @@ func NewWritablePowerPortTemplateRequestWithDefaults() *WritablePowerPortTemplat } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -67,7 +67,7 @@ func (o *WritablePowerPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritablePowerPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritablePowerPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritablePowerPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritablePowerPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritablePowerPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -110,7 +110,7 @@ func (o *WritablePowerPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritablePowerPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritablePowerPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritablePowerPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritablePowerPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_prefix_request.go b/model_writable_prefix_request.go index 2b7bd6bba..e4a60e897 100644 --- a/model_writable_prefix_request.go +++ b/model_writable_prefix_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritablePrefixRequest{} // WritablePrefixRequest Adds support for custom fields and tags. type WritablePrefixRequest struct { Prefix string `json:"prefix"` - Site NullableSiteRequest `json:"site,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` Status *PatchedWritablePrefixRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` // All IP addresses within this prefix are considered usable IsPool *bool `json:"is_pool,omitempty"` // Treat as fully utilized @@ -83,9 +83,9 @@ func (o *WritablePrefixRequest) SetPrefix(v string) { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetSite() SiteRequest { +func (o *WritablePrefixRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -94,7 +94,7 @@ func (o *WritablePrefixRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritablePrefixRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -110,8 +110,8 @@ func (o *WritablePrefixRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritablePrefixRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritablePrefixRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -126,9 +126,9 @@ func (o *WritablePrefixRequest) UnsetSite() { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVrf() VRFRequest { +func (o *WritablePrefixRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -137,7 +137,7 @@ func (o *WritablePrefixRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritablePrefixRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -153,8 +153,8 @@ func (o *WritablePrefixRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritablePrefixRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritablePrefixRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } @@ -169,9 +169,9 @@ func (o *WritablePrefixRequest) UnsetVrf() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetTenant() TenantRequest { +func (o *WritablePrefixRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +180,7 @@ func (o *WritablePrefixRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritablePrefixRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +196,8 @@ func (o *WritablePrefixRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritablePrefixRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritablePrefixRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +212,9 @@ func (o *WritablePrefixRequest) UnsetTenant() { } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetVlan() VLANRequest { +func (o *WritablePrefixRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -223,7 +223,7 @@ func (o *WritablePrefixRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritablePrefixRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -239,8 +239,8 @@ func (o *WritablePrefixRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritablePrefixRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritablePrefixRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -287,9 +287,9 @@ func (o *WritablePrefixRequest) SetStatus(v PatchedWritablePrefixRequestStatus) } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritablePrefixRequest) GetRole() RoleRequest { +func (o *WritablePrefixRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -298,7 +298,7 @@ func (o *WritablePrefixRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritablePrefixRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritablePrefixRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +314,8 @@ func (o *WritablePrefixRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritablePrefixRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritablePrefixRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_rack_request.go b/model_writable_rack_request.go index fd0dcb924..984dfba43 100644 --- a/model_writable_rack_request.go +++ b/model_writable_rack_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,24 +22,25 @@ var _ MappedNullable = &WritableRackRequest{} type WritableRackRequest struct { Name string `json:"name"` FacilityId NullableString `json:"facility_id,omitempty"` - Site SiteRequest `json:"site"` - Location NullableLocationRequest `json:"location,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Site BriefSiteRequest `json:"site"` + Location NullableBriefLocationRequest `json:"location,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableRackRequestStatus `json:"status,omitempty"` - Role NullableRackRoleRequest `json:"role,omitempty"` + Role NullableBriefRackRoleRequest `json:"role,omitempty"` Serial *string `json:"serial,omitempty"` // A unique tag used to identify this rack - AssetTag NullableString `json:"asset_tag,omitempty"` - Type *PatchedWritableRackRequestType `json:"type,omitempty"` - Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` + AssetTag NullableString `json:"asset_tag,omitempty"` + RackType NullableBriefRackTypeRequest `json:"rack_type,omitempty"` + FormFactor *PatchedWritableRackRequestFormFactor `json:"form_factor,omitempty"` + Width *PatchedWritableRackRequestWidth `json:"width,omitempty"` // Height in rack units UHeight *int32 `json:"u_height,omitempty"` // Starting unit for rack StartingUnit *int32 `json:"starting_unit,omitempty"` Weight NullableFloat64 `json:"weight,omitempty"` // Maximum load capacity for the rack - MaxWeight NullableInt32 `json:"max_weight,omitempty"` - WeightUnit *PatchedWritableDeviceTypeRequestWeightUnit `json:"weight_unit,omitempty"` + MaxWeight NullableInt32 `json:"max_weight,omitempty"` + WeightUnit *DeviceTypeWeightUnitValue `json:"weight_unit,omitempty"` // Units are numbered top-to-bottom DescUnits *bool `json:"desc_units,omitempty"` // Outer dimension of rack (width) @@ -48,11 +49,12 @@ type WritableRackRequest struct { OuterDepth NullableInt32 `json:"outer_depth,omitempty"` OuterUnit *PatchedWritableRackRequestOuterUnit `json:"outer_unit,omitempty"` // Maximum depth of a mounted device, in millimeters. For four-post racks, this is the distance between the front and rear rails. - MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + MountingDepth NullableInt32 `json:"mounting_depth,omitempty"` + Airflow *PatchedWritableRackRequestAirflow `json:"airflow,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -62,7 +64,7 @@ type _WritableRackRequest WritableRackRequest // 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 NewWritableRackRequest(name string, site SiteRequest) *WritableRackRequest { +func NewWritableRackRequest(name string, site BriefSiteRequest) *WritableRackRequest { this := WritableRackRequest{} this.Name = name this.Site = site @@ -145,9 +147,9 @@ func (o *WritableRackRequest) UnsetFacilityId() { } // GetSite returns the Site field value -func (o *WritableRackRequest) GetSite() SiteRequest { +func (o *WritableRackRequest) GetSite() BriefSiteRequest { if o == nil { - var ret SiteRequest + var ret BriefSiteRequest return ret } @@ -156,7 +158,7 @@ func (o *WritableRackRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableRackRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -164,14 +166,14 @@ func (o *WritableRackRequest) GetSiteOk() (*SiteRequest, bool) { } // SetSite sets field value -func (o *WritableRackRequest) SetSite(v SiteRequest) { +func (o *WritableRackRequest) SetSite(v BriefSiteRequest) { o.Site = v } // GetLocation returns the Location field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetLocation() LocationRequest { +func (o *WritableRackRequest) GetLocation() BriefLocationRequest { if o == nil || IsNil(o.Location.Get()) { - var ret LocationRequest + var ret BriefLocationRequest return ret } return *o.Location.Get() @@ -180,7 +182,7 @@ func (o *WritableRackRequest) GetLocation() LocationRequest { // GetLocationOk returns a tuple with the Location field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetLocationOk() (*LocationRequest, bool) { +func (o *WritableRackRequest) GetLocationOk() (*BriefLocationRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WritableRackRequest) HasLocation() bool { return false } -// SetLocation gets a reference to the given NullableLocationRequest and assigns it to the Location field. -func (o *WritableRackRequest) SetLocation(v LocationRequest) { +// SetLocation gets a reference to the given NullableBriefLocationRequest and assigns it to the Location field. +func (o *WritableRackRequest) SetLocation(v BriefLocationRequest) { o.Location.Set(&v) } @@ -212,9 +214,9 @@ func (o *WritableRackRequest) UnsetLocation() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetTenant() TenantRequest { +func (o *WritableRackRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -223,7 +225,7 @@ func (o *WritableRackRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableRackRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -239,8 +241,8 @@ func (o *WritableRackRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableRackRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableRackRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -287,9 +289,9 @@ func (o *WritableRackRequest) SetStatus(v PatchedWritableRackRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRackRequest) GetRole() RackRoleRequest { +func (o *WritableRackRequest) GetRole() BriefRackRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RackRoleRequest + var ret BriefRackRoleRequest return ret } return *o.Role.Get() @@ -298,7 +300,7 @@ func (o *WritableRackRequest) GetRole() RackRoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRackRequest) GetRoleOk() (*RackRoleRequest, bool) { +func (o *WritableRackRequest) GetRoleOk() (*BriefRackRoleRequest, bool) { if o == nil { return nil, false } @@ -314,8 +316,8 @@ func (o *WritableRackRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRackRoleRequest and assigns it to the Role field. -func (o *WritableRackRequest) SetRole(v RackRoleRequest) { +// SetRole gets a reference to the given NullableBriefRackRoleRequest and assigns it to the Role field. +func (o *WritableRackRequest) SetRole(v BriefRackRoleRequest) { o.Role.Set(&v) } @@ -404,36 +406,79 @@ func (o *WritableRackRequest) UnsetAssetTag() { o.AssetTag.Unset() } -// GetType returns the Type field value if set, zero value otherwise. -func (o *WritableRackRequest) GetType() PatchedWritableRackRequestType { - if o == nil || IsNil(o.Type) { - var ret PatchedWritableRackRequestType +// GetRackType returns the RackType field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableRackRequest) GetRackType() BriefRackTypeRequest { + if o == nil || IsNil(o.RackType.Get()) { + var ret BriefRackTypeRequest return ret } - return *o.Type + return *o.RackType.Get() } -// GetTypeOk returns a tuple with the Type field value if set, nil otherwise +// GetRackTypeOk returns a tuple with the RackType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetTypeOk() (*PatchedWritableRackRequestType, bool) { - if o == nil || IsNil(o.Type) { +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableRackRequest) GetRackTypeOk() (*BriefRackTypeRequest, bool) { + if o == nil { + return nil, false + } + return o.RackType.Get(), o.RackType.IsSet() +} + +// HasRackType returns a boolean if a field has been set. +func (o *WritableRackRequest) HasRackType() bool { + if o != nil && o.RackType.IsSet() { + return true + } + + return false +} + +// SetRackType gets a reference to the given NullableBriefRackTypeRequest and assigns it to the RackType field. +func (o *WritableRackRequest) SetRackType(v BriefRackTypeRequest) { + o.RackType.Set(&v) +} + +// SetRackTypeNil sets the value for RackType to be an explicit nil +func (o *WritableRackRequest) SetRackTypeNil() { + o.RackType.Set(nil) +} + +// UnsetRackType ensures that no value is present for RackType, not even an explicit nil +func (o *WritableRackRequest) UnsetRackType() { + o.RackType.Unset() +} + +// GetFormFactor returns the FormFactor field value if set, zero value otherwise. +func (o *WritableRackRequest) GetFormFactor() PatchedWritableRackRequestFormFactor { + if o == nil || IsNil(o.FormFactor) { + var ret PatchedWritableRackRequestFormFactor + return ret + } + return *o.FormFactor +} + +// GetFormFactorOk returns a tuple with the FormFactor field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetFormFactorOk() (*PatchedWritableRackRequestFormFactor, bool) { + if o == nil || IsNil(o.FormFactor) { return nil, false } - return o.Type, true + return o.FormFactor, true } -// HasType returns a boolean if a field has been set. -func (o *WritableRackRequest) HasType() bool { - if o != nil && !IsNil(o.Type) { +// HasFormFactor returns a boolean if a field has been set. +func (o *WritableRackRequest) HasFormFactor() bool { + if o != nil && !IsNil(o.FormFactor) { return true } return false } -// SetType gets a reference to the given PatchedWritableRackRequestType and assigns it to the Type field. -func (o *WritableRackRequest) SetType(v PatchedWritableRackRequestType) { - o.Type = &v +// SetFormFactor gets a reference to the given PatchedWritableRackRequestFormFactor and assigns it to the FormFactor field. +func (o *WritableRackRequest) SetFormFactor(v PatchedWritableRackRequestFormFactor) { + o.FormFactor = &v } // GetWidth returns the Width field value if set, zero value otherwise. @@ -619,9 +664,9 @@ func (o *WritableRackRequest) UnsetMaxWeight() { } // GetWeightUnit returns the WeightUnit field value if set, zero value otherwise. -func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWeightUnit { +func (o *WritableRackRequest) GetWeightUnit() DeviceTypeWeightUnitValue { if o == nil || IsNil(o.WeightUnit) { - var ret PatchedWritableDeviceTypeRequestWeightUnit + var ret DeviceTypeWeightUnitValue return ret } return *o.WeightUnit @@ -629,7 +674,7 @@ func (o *WritableRackRequest) GetWeightUnit() PatchedWritableDeviceTypeRequestWe // GetWeightUnitOk returns a tuple with the WeightUnit field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableRackRequest) GetWeightUnitOk() (*PatchedWritableDeviceTypeRequestWeightUnit, bool) { +func (o *WritableRackRequest) GetWeightUnitOk() (*DeviceTypeWeightUnitValue, bool) { if o == nil || IsNil(o.WeightUnit) { return nil, false } @@ -645,8 +690,8 @@ func (o *WritableRackRequest) HasWeightUnit() bool { return false } -// SetWeightUnit gets a reference to the given PatchedWritableDeviceTypeRequestWeightUnit and assigns it to the WeightUnit field. -func (o *WritableRackRequest) SetWeightUnit(v PatchedWritableDeviceTypeRequestWeightUnit) { +// SetWeightUnit gets a reference to the given DeviceTypeWeightUnitValue and assigns it to the WeightUnit field. +func (o *WritableRackRequest) SetWeightUnit(v DeviceTypeWeightUnitValue) { o.WeightUnit = &v } @@ -843,6 +888,38 @@ func (o *WritableRackRequest) UnsetMountingDepth() { o.MountingDepth.Unset() } +// GetAirflow returns the Airflow field value if set, zero value otherwise. +func (o *WritableRackRequest) GetAirflow() PatchedWritableRackRequestAirflow { + if o == nil || IsNil(o.Airflow) { + var ret PatchedWritableRackRequestAirflow + return ret + } + return *o.Airflow +} + +// GetAirflowOk returns a tuple with the Airflow field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableRackRequest) GetAirflowOk() (*PatchedWritableRackRequestAirflow, bool) { + if o == nil || IsNil(o.Airflow) { + return nil, false + } + return o.Airflow, true +} + +// HasAirflow returns a boolean if a field has been set. +func (o *WritableRackRequest) HasAirflow() bool { + if o != nil && !IsNil(o.Airflow) { + return true + } + + return false +} + +// SetAirflow gets a reference to the given PatchedWritableRackRequestAirflow and assigns it to the Airflow field. +func (o *WritableRackRequest) SetAirflow(v PatchedWritableRackRequestAirflow) { + o.Airflow = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableRackRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -1004,8 +1081,11 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.AssetTag.IsSet() { toSerialize["asset_tag"] = o.AssetTag.Get() } - if !IsNil(o.Type) { - toSerialize["type"] = o.Type + if o.RackType.IsSet() { + toSerialize["rack_type"] = o.RackType.Get() + } + if !IsNil(o.FormFactor) { + toSerialize["form_factor"] = o.FormFactor } if !IsNil(o.Width) { toSerialize["width"] = o.Width @@ -1040,6 +1120,9 @@ func (o WritableRackRequest) ToMap() (map[string]interface{}, error) { if o.MountingDepth.IsSet() { toSerialize["mounting_depth"] = o.MountingDepth.Get() } + if !IsNil(o.Airflow) { + toSerialize["airflow"] = o.Airflow + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -1105,7 +1188,8 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "role") delete(additionalProperties, "serial") delete(additionalProperties, "asset_tag") - delete(additionalProperties, "type") + delete(additionalProperties, "rack_type") + delete(additionalProperties, "form_factor") delete(additionalProperties, "width") delete(additionalProperties, "u_height") delete(additionalProperties, "starting_unit") @@ -1117,6 +1201,7 @@ func (o *WritableRackRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "outer_depth") delete(additionalProperties, "outer_unit") delete(additionalProperties, "mounting_depth") + delete(additionalProperties, "airflow") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/model_writable_rack_type_request.go b/model_writable_rack_type_request.go index 0ad581983..c9308447f 100644 --- a/model_writable_rack_type_request.go +++ b/model_writable_rack_type_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.1.1 (4.1) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_rear_port_request.go b/model_writable_rear_port_request.go index 0bd5f8acb..34e4e3395 100644 --- a/model_writable_rear_port_request.go +++ b/model_writable_rear_port_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,9 +20,9 @@ var _ MappedNullable = &WritableRearPortRequest{} // WritableRearPortRequest Adds support for custom fields and tags. type WritableRearPortRequest struct { - Device DeviceRequest `json:"device"` - Module NullableModuleRequest `json:"module,omitempty"` - Name string `json:"name"` + Device BriefDeviceRequest `json:"device"` + Module NullableBriefModuleRequest `json:"module,omitempty"` + Name string `json:"name"` // Physical label Label *string `json:"label,omitempty"` Type FrontPortTypeValue `json:"type"` @@ -43,7 +43,7 @@ type _WritableRearPortRequest WritableRearPortRequest // 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 NewWritableRearPortRequest(device DeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { +func NewWritableRearPortRequest(device BriefDeviceRequest, name string, type_ FrontPortTypeValue) *WritableRearPortRequest { this := WritableRearPortRequest{} this.Device = device this.Name = name @@ -60,9 +60,9 @@ func NewWritableRearPortRequestWithDefaults() *WritableRearPortRequest { } // GetDevice returns the Device field value -func (o *WritableRearPortRequest) GetDevice() DeviceRequest { +func (o *WritableRearPortRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -71,7 +71,7 @@ func (o *WritableRearPortRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableRearPortRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -79,14 +79,14 @@ func (o *WritableRearPortRequest) GetDeviceOk() (*DeviceRequest, bool) { } // SetDevice sets field value -func (o *WritableRearPortRequest) SetDevice(v DeviceRequest) { +func (o *WritableRearPortRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } // GetModule returns the Module field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortRequest) GetModule() ModuleRequest { +func (o *WritableRearPortRequest) GetModule() BriefModuleRequest { if o == nil || IsNil(o.Module.Get()) { - var ret ModuleRequest + var ret BriefModuleRequest return ret } return *o.Module.Get() @@ -95,7 +95,7 @@ func (o *WritableRearPortRequest) GetModule() ModuleRequest { // GetModuleOk returns a tuple with the Module field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortRequest) GetModuleOk() (*ModuleRequest, bool) { +func (o *WritableRearPortRequest) GetModuleOk() (*BriefModuleRequest, bool) { if o == nil { return nil, false } @@ -111,8 +111,8 @@ func (o *WritableRearPortRequest) HasModule() bool { return false } -// SetModule gets a reference to the given NullableModuleRequest and assigns it to the Module field. -func (o *WritableRearPortRequest) SetModule(v ModuleRequest) { +// SetModule gets a reference to the given NullableBriefModuleRequest and assigns it to the Module field. +func (o *WritableRearPortRequest) SetModule(v BriefModuleRequest) { o.Module.Set(&v) } diff --git a/model_writable_rear_port_template_request.go b/model_writable_rear_port_template_request.go index 68e2467e9..4f009990c 100644 --- a/model_writable_rear_port_template_request.go +++ b/model_writable_rear_port_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableRearPortTemplateRequest{} // WritableRearPortTemplateRequest Extends the built-in ModelSerializer to enforce calling full_clean() on a copy of the associated instance during validation. (DRF does not do this by default; see https://github.com/encode/django-rest-framework/issues/3144) type WritableRearPortTemplateRequest struct { - DeviceType NullableDeviceTypeRequest `json:"device_type,omitempty"` - ModuleType NullableModuleTypeRequest `json:"module_type,omitempty"` + DeviceType NullableBriefDeviceTypeRequest `json:"device_type,omitempty"` + ModuleType NullableBriefModuleTypeRequest `json:"module_type,omitempty"` // {module} is accepted as a substitution for the module bay position when attached to a module type. Name string `json:"name"` // Physical label @@ -55,9 +55,9 @@ func NewWritableRearPortTemplateRequestWithDefaults() *WritableRearPortTemplateR } // GetDeviceType returns the DeviceType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { +func (o *WritableRearPortTemplateRequest) GetDeviceType() BriefDeviceTypeRequest { if o == nil || IsNil(o.DeviceType.Get()) { - var ret DeviceTypeRequest + var ret BriefDeviceTypeRequest return ret } return *o.DeviceType.Get() @@ -66,7 +66,7 @@ func (o *WritableRearPortTemplateRequest) GetDeviceType() DeviceTypeRequest { // GetDeviceTypeOk returns a tuple with the DeviceType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*DeviceTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetDeviceTypeOk() (*BriefDeviceTypeRequest, bool) { if o == nil { return nil, false } @@ -82,8 +82,8 @@ func (o *WritableRearPortTemplateRequest) HasDeviceType() bool { return false } -// SetDeviceType gets a reference to the given NullableDeviceTypeRequest and assigns it to the DeviceType field. -func (o *WritableRearPortTemplateRequest) SetDeviceType(v DeviceTypeRequest) { +// SetDeviceType gets a reference to the given NullableBriefDeviceTypeRequest and assigns it to the DeviceType field. +func (o *WritableRearPortTemplateRequest) SetDeviceType(v BriefDeviceTypeRequest) { o.DeviceType.Set(&v) } @@ -98,9 +98,9 @@ func (o *WritableRearPortTemplateRequest) UnsetDeviceType() { } // GetModuleType returns the ModuleType field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { +func (o *WritableRearPortTemplateRequest) GetModuleType() BriefModuleTypeRequest { if o == nil || IsNil(o.ModuleType.Get()) { - var ret ModuleTypeRequest + var ret BriefModuleTypeRequest return ret } return *o.ModuleType.Get() @@ -109,7 +109,7 @@ func (o *WritableRearPortTemplateRequest) GetModuleType() ModuleTypeRequest { // GetModuleTypeOk returns a tuple with the ModuleType field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*ModuleTypeRequest, bool) { +func (o *WritableRearPortTemplateRequest) GetModuleTypeOk() (*BriefModuleTypeRequest, bool) { if o == nil { return nil, false } @@ -125,8 +125,8 @@ func (o *WritableRearPortTemplateRequest) HasModuleType() bool { return false } -// SetModuleType gets a reference to the given NullableModuleTypeRequest and assigns it to the ModuleType field. -func (o *WritableRearPortTemplateRequest) SetModuleType(v ModuleTypeRequest) { +// SetModuleType gets a reference to the given NullableBriefModuleTypeRequest and assigns it to the ModuleType field. +func (o *WritableRearPortTemplateRequest) SetModuleType(v BriefModuleTypeRequest) { o.ModuleType.Set(&v) } diff --git a/model_writable_region_request.go b/model_writable_region_request.go index 10e3c56c2..4823e0739 100644 --- a/model_writable_region_request.go +++ b/model_writable_region_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_service_request.go b/model_writable_service_request.go index a3150a128..7e8276e2e 100644 --- a/model_writable_service_request.go +++ b/model_writable_service_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,8 +20,8 @@ var _ MappedNullable = &WritableServiceRequest{} // WritableServiceRequest Adds support for custom fields and tags. type WritableServiceRequest struct { - Device NullableDeviceRequest `json:"device,omitempty"` - VirtualMachine NullableVirtualMachineRequest `json:"virtual_machine,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + VirtualMachine NullableBriefVirtualMachineRequest `json:"virtual_machine,omitempty"` Name string `json:"name"` Protocol PatchedWritableServiceRequestProtocol `json:"protocol"` Ports []int32 `json:"ports"` @@ -56,9 +56,9 @@ func NewWritableServiceRequestWithDefaults() *WritableServiceRequest { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetDevice() DeviceRequest { +func (o *WritableServiceRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -67,7 +67,7 @@ func (o *WritableServiceRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableServiceRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -83,8 +83,8 @@ func (o *WritableServiceRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableServiceRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableServiceRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -99,9 +99,9 @@ func (o *WritableServiceRequest) UnsetDevice() { } // GetVirtualMachine returns the VirtualMachine field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableServiceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil || IsNil(o.VirtualMachine.Get()) { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } return *o.VirtualMachine.Get() @@ -110,7 +110,7 @@ func (o *WritableServiceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableServiceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableServiceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -126,8 +126,8 @@ func (o *WritableServiceRequest) HasVirtualMachine() bool { return false } -// SetVirtualMachine gets a reference to the given NullableVirtualMachineRequest and assigns it to the VirtualMachine field. -func (o *WritableServiceRequest) SetVirtualMachine(v VirtualMachineRequest) { +// SetVirtualMachine gets a reference to the given NullableBriefVirtualMachineRequest and assigns it to the VirtualMachine field. +func (o *WritableServiceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine.Set(&v) } diff --git a/model_writable_service_template_request.go b/model_writable_service_template_request.go index c7008f3ed..252571b42 100644 --- a/model_writable_service_template_request.go +++ b/model_writable_service_template_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_group_request.go b/model_writable_site_group_request.go index b0c4346c1..54e54cae3 100644 --- a/model_writable_site_group_request.go +++ b/model_writable_site_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_site_request.go b/model_writable_site_request.go index 2fcc03600..359a825ba 100644 --- a/model_writable_site_request.go +++ b/model_writable_site_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,12 +21,12 @@ var _ MappedNullable = &WritableSiteRequest{} // WritableSiteRequest Adds support for custom fields and tags. type WritableSiteRequest struct { // Full name of the site - Name string `json:"name"` - Slug string `json:"slug"` - Status *PatchedWritableLocationRequestStatus `json:"status,omitempty"` - Region NullableRegionRequest `json:"region,omitempty"` - Group NullableSiteGroupRequest `json:"group,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Name string `json:"name"` + Slug string `json:"slug"` + Status *LocationStatusValue `json:"status,omitempty"` + Region NullableBriefRegionRequest `json:"region,omitempty"` + Group NullableBriefSiteGroupRequest `json:"group,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` // Local facility ID or description Facility *string `json:"facility,omitempty"` TimeZone NullableString `json:"time_zone,omitempty"` @@ -116,9 +116,9 @@ func (o *WritableSiteRequest) SetSlug(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { +func (o *WritableSiteRequest) GetStatus() LocationStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableLocationRequestStatus + var ret LocationStatusValue return ret } return *o.Status @@ -126,7 +126,7 @@ func (o *WritableSiteRequest) GetStatus() PatchedWritableLocationRequestStatus { // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableSiteRequest) GetStatusOk() (*PatchedWritableLocationRequestStatus, bool) { +func (o *WritableSiteRequest) GetStatusOk() (*LocationStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -142,15 +142,15 @@ func (o *WritableSiteRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableLocationRequestStatus and assigns it to the Status field. -func (o *WritableSiteRequest) SetStatus(v PatchedWritableLocationRequestStatus) { +// SetStatus gets a reference to the given LocationStatusValue and assigns it to the Status field. +func (o *WritableSiteRequest) SetStatus(v LocationStatusValue) { o.Status = &v } // GetRegion returns the Region field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetRegion() RegionRequest { +func (o *WritableSiteRequest) GetRegion() BriefRegionRequest { if o == nil || IsNil(o.Region.Get()) { - var ret RegionRequest + var ret BriefRegionRequest return ret } return *o.Region.Get() @@ -159,7 +159,7 @@ func (o *WritableSiteRequest) GetRegion() RegionRequest { // GetRegionOk returns a tuple with the Region field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetRegionOk() (*RegionRequest, bool) { +func (o *WritableSiteRequest) GetRegionOk() (*BriefRegionRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableSiteRequest) HasRegion() bool { return false } -// SetRegion gets a reference to the given NullableRegionRequest and assigns it to the Region field. -func (o *WritableSiteRequest) SetRegion(v RegionRequest) { +// SetRegion gets a reference to the given NullableBriefRegionRequest and assigns it to the Region field. +func (o *WritableSiteRequest) SetRegion(v BriefRegionRequest) { o.Region.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableSiteRequest) UnsetRegion() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { +func (o *WritableSiteRequest) GetGroup() BriefSiteGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret SiteGroupRequest + var ret BriefSiteGroupRequest return ret } return *o.Group.Get() @@ -202,7 +202,7 @@ func (o *WritableSiteRequest) GetGroup() SiteGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetGroupOk() (*SiteGroupRequest, bool) { +func (o *WritableSiteRequest) GetGroupOk() (*BriefSiteGroupRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableSiteRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableSiteGroupRequest and assigns it to the Group field. -func (o *WritableSiteRequest) SetGroup(v SiteGroupRequest) { +// SetGroup gets a reference to the given NullableBriefSiteGroupRequest and assigns it to the Group field. +func (o *WritableSiteRequest) SetGroup(v BriefSiteGroupRequest) { o.Group.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableSiteRequest) UnsetGroup() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableSiteRequest) GetTenant() TenantRequest { +func (o *WritableSiteRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -245,7 +245,7 @@ func (o *WritableSiteRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableSiteRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableSiteRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableSiteRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableSiteRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableSiteRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tenant_group_request.go b/model_writable_tenant_group_request.go index a8b1c1775..52a38d1ee 100644 --- a/model_writable_tenant_group_request.go +++ b/model_writable_tenant_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_tunnel_request.go b/model_writable_tunnel_request.go index 057faf1f7..036923a4d 100644 --- a/model_writable_tunnel_request.go +++ b/model_writable_tunnel_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,10 +22,10 @@ var _ MappedNullable = &WritableTunnelRequest{} type WritableTunnelRequest struct { Name string `json:"name"` Status *PatchedWritableTunnelRequestStatus `json:"status,omitempty"` - Group NullableTunnelGroupRequest `json:"group,omitempty"` + Group NullableBriefTunnelGroupRequest `json:"group,omitempty"` Encapsulation PatchedWritableTunnelRequestEncapsulation `json:"encapsulation"` - IpsecProfile NullableIPSecProfileRequest `json:"ipsec_profile,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + IpsecProfile NullableBriefIPSecProfileRequest `json:"ipsec_profile,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` TunnelId NullableInt64 `json:"tunnel_id,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableTunnelRequest) SetStatus(v PatchedWritableTunnelRequestStatus) } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { +func (o *WritableTunnelRequest) GetGroup() BriefTunnelGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret TunnelGroupRequest + var ret BriefTunnelGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableTunnelRequest) GetGroup() TunnelGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetGroupOk() (*TunnelGroupRequest, bool) { +func (o *WritableTunnelRequest) GetGroupOk() (*BriefTunnelGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableTunnelRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableTunnelGroupRequest and assigns it to the Group field. -func (o *WritableTunnelRequest) SetGroup(v TunnelGroupRequest) { +// SetGroup gets a reference to the given NullableBriefTunnelGroupRequest and assigns it to the Group field. +func (o *WritableTunnelRequest) SetGroup(v BriefTunnelGroupRequest) { o.Group.Set(&v) } @@ -179,9 +179,9 @@ func (o *WritableTunnelRequest) SetEncapsulation(v PatchedWritableTunnelRequestE } // GetIpsecProfile returns the IpsecProfile field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { +func (o *WritableTunnelRequest) GetIpsecProfile() BriefIPSecProfileRequest { if o == nil || IsNil(o.IpsecProfile.Get()) { - var ret IPSecProfileRequest + var ret BriefIPSecProfileRequest return ret } return *o.IpsecProfile.Get() @@ -190,7 +190,7 @@ func (o *WritableTunnelRequest) GetIpsecProfile() IPSecProfileRequest { // GetIpsecProfileOk returns a tuple with the IpsecProfile field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetIpsecProfileOk() (*IPSecProfileRequest, bool) { +func (o *WritableTunnelRequest) GetIpsecProfileOk() (*BriefIPSecProfileRequest, bool) { if o == nil { return nil, false } @@ -206,8 +206,8 @@ func (o *WritableTunnelRequest) HasIpsecProfile() bool { return false } -// SetIpsecProfile gets a reference to the given NullableIPSecProfileRequest and assigns it to the IpsecProfile field. -func (o *WritableTunnelRequest) SetIpsecProfile(v IPSecProfileRequest) { +// SetIpsecProfile gets a reference to the given NullableBriefIPSecProfileRequest and assigns it to the IpsecProfile field. +func (o *WritableTunnelRequest) SetIpsecProfile(v BriefIPSecProfileRequest) { o.IpsecProfile.Set(&v) } @@ -222,9 +222,9 @@ func (o *WritableTunnelRequest) UnsetIpsecProfile() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelRequest) GetTenant() TenantRequest { +func (o *WritableTunnelRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -233,7 +233,7 @@ func (o *WritableTunnelRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableTunnelRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -249,8 +249,8 @@ func (o *WritableTunnelRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableTunnelRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableTunnelRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } diff --git a/model_writable_tunnel_termination_request.go b/model_writable_tunnel_termination_request.go index ec11b7d2b..e30f20c78 100644 --- a/model_writable_tunnel_termination_request.go +++ b/model_writable_tunnel_termination_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,11 +20,11 @@ var _ MappedNullable = &WritableTunnelTerminationRequest{} // WritableTunnelTerminationRequest Adds support for custom fields and tags. type WritableTunnelTerminationRequest struct { - Tunnel TunnelRequest `json:"tunnel"` + Tunnel BriefTunnelRequest `json:"tunnel"` Role *PatchedWritableTunnelTerminationRequestRole `json:"role,omitempty"` TerminationType string `json:"termination_type"` TerminationId NullableInt64 `json:"termination_id"` - OutsideIp NullableIPAddressRequest `json:"outside_ip,omitempty"` + OutsideIp NullableBriefIPAddressRequest `json:"outside_ip,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -36,7 +36,7 @@ type _WritableTunnelTerminationRequest WritableTunnelTerminationRequest // 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 NewWritableTunnelTerminationRequest(tunnel TunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { +func NewWritableTunnelTerminationRequest(tunnel BriefTunnelRequest, terminationType string, terminationId NullableInt64) *WritableTunnelTerminationRequest { this := WritableTunnelTerminationRequest{} this.Tunnel = tunnel this.TerminationType = terminationType @@ -53,9 +53,9 @@ func NewWritableTunnelTerminationRequestWithDefaults() *WritableTunnelTerminatio } // GetTunnel returns the Tunnel field value -func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { +func (o *WritableTunnelTerminationRequest) GetTunnel() BriefTunnelRequest { if o == nil { - var ret TunnelRequest + var ret BriefTunnelRequest return ret } @@ -64,7 +64,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnel() TunnelRequest { // GetTunnelOk returns a tuple with the Tunnel field value // and a boolean to check if the value has been set. -func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*BriefTunnelRequest, bool) { if o == nil { return nil, false } @@ -72,7 +72,7 @@ func (o *WritableTunnelTerminationRequest) GetTunnelOk() (*TunnelRequest, bool) } // SetTunnel sets field value -func (o *WritableTunnelTerminationRequest) SetTunnel(v TunnelRequest) { +func (o *WritableTunnelTerminationRequest) SetTunnel(v BriefTunnelRequest) { o.Tunnel = v } @@ -159,9 +159,9 @@ func (o *WritableTunnelTerminationRequest) SetTerminationId(v int64) { } // GetOutsideIp returns the OutsideIp field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { +func (o *WritableTunnelTerminationRequest) GetOutsideIp() BriefIPAddressRequest { if o == nil || IsNil(o.OutsideIp.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.OutsideIp.Get() @@ -170,7 +170,7 @@ func (o *WritableTunnelTerminationRequest) GetOutsideIp() IPAddressRequest { // GetOutsideIpOk returns a tuple with the OutsideIp field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*IPAddressRequest, bool) { +func (o *WritableTunnelTerminationRequest) GetOutsideIpOk() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -186,8 +186,8 @@ func (o *WritableTunnelTerminationRequest) HasOutsideIp() bool { return false } -// SetOutsideIp gets a reference to the given NullableIPAddressRequest and assigns it to the OutsideIp field. -func (o *WritableTunnelTerminationRequest) SetOutsideIp(v IPAddressRequest) { +// SetOutsideIp gets a reference to the given NullableBriefIPAddressRequest and assigns it to the OutsideIp field. +func (o *WritableTunnelTerminationRequest) SetOutsideIp(v BriefIPAddressRequest) { o.OutsideIp.Set(&v) } diff --git a/model_writable_virtual_chassis_request.go b/model_writable_virtual_chassis_request.go index 76b1664be..3573c971a 100644 --- a/model_writable_virtual_chassis_request.go +++ b/model_writable_virtual_chassis_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_virtual_device_context_request.go b/model_writable_virtual_device_context_request.go index 9c16e0e71..e8af3033d 100644 --- a/model_writable_virtual_device_context_request.go +++ b/model_writable_virtual_device_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -21,11 +21,11 @@ var _ MappedNullable = &WritableVirtualDeviceContextRequest{} // WritableVirtualDeviceContextRequest Adds support for custom fields and tags. type WritableVirtualDeviceContextRequest struct { Name string `json:"name"` - Device DeviceRequest `json:"device"` + Device BriefDeviceRequest `json:"device"` Identifier NullableInt32 `json:"identifier,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` Status PatchedWritableVirtualDeviceContextRequestStatus `json:"status"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` @@ -40,7 +40,7 @@ type _WritableVirtualDeviceContextRequest WritableVirtualDeviceContextRequest // 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 NewWritableVirtualDeviceContextRequest(name string, device DeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { +func NewWritableVirtualDeviceContextRequest(name string, device BriefDeviceRequest, status PatchedWritableVirtualDeviceContextRequestStatus) *WritableVirtualDeviceContextRequest { this := WritableVirtualDeviceContextRequest{} this.Name = name this.Device = device @@ -81,9 +81,9 @@ func (o *WritableVirtualDeviceContextRequest) SetName(v string) { } // GetDevice returns the Device field value -func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualDeviceContextRequest) GetDevice() BriefDeviceRequest { if o == nil { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } @@ -92,7 +92,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDevice() DeviceRequest { // GetDeviceOk returns a tuple with the Device field value // and a boolean to check if the value has been set. -func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +100,7 @@ func (o *WritableVirtualDeviceContextRequest) GetDeviceOk() (*DeviceRequest, boo } // SetDevice sets field value -func (o *WritableVirtualDeviceContextRequest) SetDevice(v DeviceRequest) { +func (o *WritableVirtualDeviceContextRequest) SetDevice(v BriefDeviceRequest) { o.Device = v } @@ -148,9 +148,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetIdentifier() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { +func (o *WritableVirtualDeviceContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -159,7 +159,7 @@ func (o *WritableVirtualDeviceContextRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -175,8 +175,8 @@ func (o *WritableVirtualDeviceContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualDeviceContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualDeviceContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetTenant() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -202,7 +202,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4() IPAddressRequest { // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -234,9 +234,9 @@ func (o *WritableVirtualDeviceContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -245,7 +245,7 @@ func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6() IPAddressRequest { // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualDeviceContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -261,8 +261,8 @@ func (o *WritableVirtualDeviceContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualDeviceContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } diff --git a/model_writable_virtual_machine_with_config_context_request.go b/model_writable_virtual_machine_with_config_context_request.go index a24bbacab..7748f1d2c 100644 --- a/model_writable_virtual_machine_with_config_context_request.go +++ b/model_writable_virtual_machine_with_config_context_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,22 +20,23 @@ var _ MappedNullable = &WritableVirtualMachineWithConfigContextRequest{} // WritableVirtualMachineWithConfigContextRequest Adds support for custom fields and tags. type WritableVirtualMachineWithConfigContextRequest struct { - Name string `json:"name"` - Status *PatchedWritableModuleRequestStatus `json:"status,omitempty"` - Site NullableSiteRequest `json:"site,omitempty"` - Cluster NullableClusterRequest `json:"cluster,omitempty"` - Device NullableDeviceRequest `json:"device,omitempty"` - Role NullableDeviceRoleRequest `json:"role,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - Platform NullablePlatformRequest `json:"platform,omitempty"` - PrimaryIp4 NullableIPAddressRequest `json:"primary_ip4,omitempty"` - PrimaryIp6 NullableIPAddressRequest `json:"primary_ip6,omitempty"` - Vcpus NullableFloat64 `json:"vcpus,omitempty"` - Memory NullableInt32 `json:"memory,omitempty"` - Disk NullableInt32 `json:"disk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - ConfigTemplate NullableConfigTemplateRequest `json:"config_template,omitempty"` + Name string `json:"name"` + Status *ModuleStatusValue `json:"status,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Cluster NullableBriefClusterRequest `json:"cluster,omitempty"` + Device NullableBriefDeviceRequest `json:"device,omitempty"` + Serial *string `json:"serial,omitempty"` + Role NullableBriefDeviceRoleRequest `json:"role,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + Platform NullableBriefPlatformRequest `json:"platform,omitempty"` + PrimaryIp4 NullableBriefIPAddressRequest `json:"primary_ip4,omitempty"` + PrimaryIp6 NullableBriefIPAddressRequest `json:"primary_ip6,omitempty"` + Vcpus NullableFloat64 `json:"vcpus,omitempty"` + Memory NullableInt32 `json:"memory,omitempty"` + Disk NullableInt32 `json:"disk,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + ConfigTemplate NullableBriefConfigTemplateRequest `json:"config_template,omitempty"` // Local config context data takes precedence over source contexts in the final rendered config context LocalContextData interface{} `json:"local_context_data,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -88,9 +89,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetName(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWritableModuleRequestStatus { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() ModuleStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableModuleRequestStatus + var ret ModuleStatusValue return ret } return *o.Status @@ -98,7 +99,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetStatus() PatchedWrit // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*PatchedWritableModuleRequestStatus, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetStatusOk() (*ModuleStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -114,15 +115,15 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableModuleRequestStatus and assigns it to the Status field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v PatchedWritableModuleRequestStatus) { +// SetStatus gets a reference to the given ModuleStatusValue and assigns it to the Status field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetStatus(v ModuleStatusValue) { o.Status = &v } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -131,7 +132,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -147,8 +148,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -163,9 +164,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetSite() { } // GetCluster returns the Cluster field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() BriefClusterRequest { if o == nil || IsNil(o.Cluster.Get()) { - var ret ClusterRequest + var ret BriefClusterRequest return ret } return *o.Cluster.Get() @@ -174,7 +175,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetCluster() ClusterReq // GetClusterOk returns a tuple with the Cluster field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*ClusterRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetClusterOk() (*BriefClusterRequest, bool) { if o == nil { return nil, false } @@ -190,8 +191,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasCluster() bool { return false } -// SetCluster gets a reference to the given NullableClusterRequest and assigns it to the Cluster field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v ClusterRequest) { +// SetCluster gets a reference to the given NullableBriefClusterRequest and assigns it to the Cluster field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetCluster(v BriefClusterRequest) { o.Cluster.Set(&v) } @@ -206,9 +207,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetCluster() { } // GetDevice returns the Device field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() BriefDeviceRequest { if o == nil || IsNil(o.Device.Get()) { - var ret DeviceRequest + var ret BriefDeviceRequest return ret } return *o.Device.Get() @@ -217,7 +218,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetDevice() DeviceReque // GetDeviceOk returns a tuple with the Device field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*DeviceRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetDeviceOk() (*BriefDeviceRequest, bool) { if o == nil { return nil, false } @@ -233,8 +234,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasDevice() bool { return false } -// SetDevice gets a reference to the given NullableDeviceRequest and assigns it to the Device field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v DeviceRequest) { +// SetDevice gets a reference to the given NullableBriefDeviceRequest and assigns it to the Device field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetDevice(v BriefDeviceRequest) { o.Device.Set(&v) } @@ -248,10 +249,42 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetDevice() { o.Device.Unset() } +// GetSerial returns the Serial field value if set, zero value otherwise. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerial() string { + if o == nil || IsNil(o.Serial) { + var ret string + return ret + } + return *o.Serial +} + +// GetSerialOk returns a tuple with the Serial field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) GetSerialOk() (*string, bool) { + if o == nil || IsNil(o.Serial) { + return nil, false + } + return o.Serial, true +} + +// HasSerial returns a boolean if a field has been set. +func (o *WritableVirtualMachineWithConfigContextRequest) HasSerial() bool { + if o != nil && !IsNil(o.Serial) { + return true + } + + return false +} + +// SetSerial gets a reference to the given string and assigns it to the Serial field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetSerial(v string) { + o.Serial = &v +} + // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() BriefDeviceRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret DeviceRoleRequest + var ret BriefDeviceRoleRequest return ret } return *o.Role.Get() @@ -260,7 +293,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetRole() DeviceRoleReq // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*DeviceRoleRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetRoleOk() (*BriefDeviceRoleRequest, bool) { if o == nil { return nil, false } @@ -276,8 +309,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableDeviceRoleRequest and assigns it to the Role field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v DeviceRoleRequest) { +// SetRole gets a reference to the given NullableBriefDeviceRoleRequest and assigns it to the Role field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetRole(v BriefDeviceRoleRequest) { o.Role.Set(&v) } @@ -292,9 +325,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetRole() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -303,7 +336,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetTenant() TenantReque // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -319,8 +352,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -335,9 +368,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetTenant() { } // GetPlatform returns the Platform field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() BriefPlatformRequest { if o == nil || IsNil(o.Platform.Get()) { - var ret PlatformRequest + var ret BriefPlatformRequest return ret } return *o.Platform.Get() @@ -346,7 +379,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatform() PlatformR // GetPlatformOk returns a tuple with the Platform field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*PlatformRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPlatformOk() (*BriefPlatformRequest, bool) { if o == nil { return nil, false } @@ -362,8 +395,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPlatform() bool { return false } -// SetPlatform gets a reference to the given NullablePlatformRequest and assigns it to the Platform field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v PlatformRequest) { +// SetPlatform gets a reference to the given NullableBriefPlatformRequest and assigns it to the Platform field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPlatform(v BriefPlatformRequest) { o.Platform.Set(&v) } @@ -378,9 +411,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPlatform() { } // GetPrimaryIp4 returns the PrimaryIp4 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp4.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp4.Get() @@ -389,7 +422,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4() IPAddre // GetPrimaryIp4Ok returns a tuple with the PrimaryIp4 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp4Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -405,8 +438,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp4() bool { return false } -// SetPrimaryIp4 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp4 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v IPAddressRequest) { +// SetPrimaryIp4 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp4 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp4(v BriefIPAddressRequest) { o.PrimaryIp4.Set(&v) } @@ -421,9 +454,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnsetPrimaryIp4() { } // GetPrimaryIp6 returns the PrimaryIp6 field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddressRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() BriefIPAddressRequest { if o == nil || IsNil(o.PrimaryIp6.Get()) { - var ret IPAddressRequest + var ret BriefIPAddressRequest return ret } return *o.PrimaryIp6.Get() @@ -432,7 +465,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6() IPAddre // GetPrimaryIp6Ok returns a tuple with the PrimaryIp6 field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*IPAddressRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetPrimaryIp6Ok() (*BriefIPAddressRequest, bool) { if o == nil { return nil, false } @@ -448,8 +481,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasPrimaryIp6() bool { return false } -// SetPrimaryIp6 gets a reference to the given NullableIPAddressRequest and assigns it to the PrimaryIp6 field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v IPAddressRequest) { +// SetPrimaryIp6 gets a reference to the given NullableBriefIPAddressRequest and assigns it to the PrimaryIp6 field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetPrimaryIp6(v BriefIPAddressRequest) { o.PrimaryIp6.Set(&v) } @@ -657,9 +690,9 @@ func (o *WritableVirtualMachineWithConfigContextRequest) SetComments(v string) { } // GetConfigTemplate returns the ConfigTemplate field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() ConfigTemplateRequest { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() BriefConfigTemplateRequest { if o == nil || IsNil(o.ConfigTemplate.Get()) { - var ret ConfigTemplateRequest + var ret BriefConfigTemplateRequest return ret } return *o.ConfigTemplate.Get() @@ -668,7 +701,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplate() Con // GetConfigTemplateOk returns a tuple with the ConfigTemplate field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*ConfigTemplateRequest, bool) { +func (o *WritableVirtualMachineWithConfigContextRequest) GetConfigTemplateOk() (*BriefConfigTemplateRequest, bool) { if o == nil { return nil, false } @@ -684,8 +717,8 @@ func (o *WritableVirtualMachineWithConfigContextRequest) HasConfigTemplate() boo return false } -// SetConfigTemplate gets a reference to the given NullableConfigTemplateRequest and assigns it to the ConfigTemplate field. -func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v ConfigTemplateRequest) { +// SetConfigTemplate gets a reference to the given NullableBriefConfigTemplateRequest and assigns it to the ConfigTemplate field. +func (o *WritableVirtualMachineWithConfigContextRequest) SetConfigTemplate(v BriefConfigTemplateRequest) { o.ConfigTemplate.Set(&v) } @@ -819,6 +852,9 @@ func (o WritableVirtualMachineWithConfigContextRequest) ToMap() (map[string]inte if o.Device.IsSet() { toSerialize["device"] = o.Device.Get() } + if !IsNil(o.Serial) { + toSerialize["serial"] = o.Serial + } if o.Role.IsSet() { toSerialize["role"] = o.Role.Get() } @@ -909,6 +945,7 @@ func (o *WritableVirtualMachineWithConfigContextRequest) UnmarshalJSON(data []by delete(additionalProperties, "site") delete(additionalProperties, "cluster") delete(additionalProperties, "device") + delete(additionalProperties, "serial") delete(additionalProperties, "role") delete(additionalProperties, "tenant") delete(additionalProperties, "platform") diff --git a/model_writable_vlan_request.go b/model_writable_vlan_request.go index 047e6f389..74b81e0b1 100644 --- a/model_writable_vlan_request.go +++ b/model_writable_vlan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,14 +20,14 @@ var _ MappedNullable = &WritableVLANRequest{} // WritableVLANRequest Adds support for custom fields and tags. type WritableVLANRequest struct { - Site NullableSiteRequest `json:"site,omitempty"` - Group NullableVLANGroupRequest `json:"group,omitempty"` + Site NullableBriefSiteRequest `json:"site,omitempty"` + Group NullableBriefVLANGroupRequest `json:"group,omitempty"` // Numeric VLAN ID (1-4094) Vid int32 `json:"vid"` Name string `json:"name"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` Status *PatchedWritableVLANRequestStatus `json:"status,omitempty"` - Role NullableRoleRequest `json:"role,omitempty"` + Role NullableBriefRoleRequest `json:"role,omitempty"` Description *string `json:"description,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -57,9 +57,9 @@ func NewWritableVLANRequestWithDefaults() *WritableVLANRequest { } // GetSite returns the Site field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetSite() SiteRequest { +func (o *WritableVLANRequest) GetSite() BriefSiteRequest { if o == nil || IsNil(o.Site.Get()) { - var ret SiteRequest + var ret BriefSiteRequest return ret } return *o.Site.Get() @@ -68,7 +68,7 @@ func (o *WritableVLANRequest) GetSite() SiteRequest { // GetSiteOk returns a tuple with the Site field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetSiteOk() (*SiteRequest, bool) { +func (o *WritableVLANRequest) GetSiteOk() (*BriefSiteRequest, bool) { if o == nil { return nil, false } @@ -84,8 +84,8 @@ func (o *WritableVLANRequest) HasSite() bool { return false } -// SetSite gets a reference to the given NullableSiteRequest and assigns it to the Site field. -func (o *WritableVLANRequest) SetSite(v SiteRequest) { +// SetSite gets a reference to the given NullableBriefSiteRequest and assigns it to the Site field. +func (o *WritableVLANRequest) SetSite(v BriefSiteRequest) { o.Site.Set(&v) } @@ -100,9 +100,9 @@ func (o *WritableVLANRequest) UnsetSite() { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { +func (o *WritableVLANRequest) GetGroup() BriefVLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret VLANGroupRequest + var ret BriefVLANGroupRequest return ret } return *o.Group.Get() @@ -111,7 +111,7 @@ func (o *WritableVLANRequest) GetGroup() VLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetGroupOk() (*VLANGroupRequest, bool) { +func (o *WritableVLANRequest) GetGroupOk() (*BriefVLANGroupRequest, bool) { if o == nil { return nil, false } @@ -127,8 +127,8 @@ func (o *WritableVLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableVLANGroupRequest and assigns it to the Group field. -func (o *WritableVLANRequest) SetGroup(v VLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefVLANGroupRequest and assigns it to the Group field. +func (o *WritableVLANRequest) SetGroup(v BriefVLANGroupRequest) { o.Group.Set(&v) } @@ -191,9 +191,9 @@ func (o *WritableVLANRequest) SetName(v string) { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetTenant() TenantRequest { +func (o *WritableVLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -202,7 +202,7 @@ func (o *WritableVLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableVLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -218,8 +218,8 @@ func (o *WritableVLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableVLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableVLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -266,9 +266,9 @@ func (o *WritableVLANRequest) SetStatus(v PatchedWritableVLANRequestStatus) { } // GetRole returns the Role field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVLANRequest) GetRole() RoleRequest { +func (o *WritableVLANRequest) GetRole() BriefRoleRequest { if o == nil || IsNil(o.Role.Get()) { - var ret RoleRequest + var ret BriefRoleRequest return ret } return *o.Role.Get() @@ -277,7 +277,7 @@ func (o *WritableVLANRequest) GetRole() RoleRequest { // GetRoleOk returns a tuple with the Role field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVLANRequest) GetRoleOk() (*RoleRequest, bool) { +func (o *WritableVLANRequest) GetRoleOk() (*BriefRoleRequest, bool) { if o == nil { return nil, false } @@ -293,8 +293,8 @@ func (o *WritableVLANRequest) HasRole() bool { return false } -// SetRole gets a reference to the given NullableRoleRequest and assigns it to the Role field. -func (o *WritableVLANRequest) SetRole(v RoleRequest) { +// SetRole gets a reference to the given NullableBriefRoleRequest and assigns it to the Role field. +func (o *WritableVLANRequest) SetRole(v BriefRoleRequest) { o.Role.Set(&v) } diff --git a/model_writable_vm_interface_request.go b/model_writable_vm_interface_request.go index 3c0acb800..d05fac1a4 100644 --- a/model_writable_vm_interface_request.go +++ b/model_writable_vm_interface_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,7 +20,7 @@ var _ MappedNullable = &WritableVMInterfaceRequest{} // WritableVMInterfaceRequest Adds support for custom fields and tags. type WritableVMInterfaceRequest struct { - VirtualMachine VirtualMachineRequest `json:"virtual_machine"` + VirtualMachine BriefVirtualMachineRequest `json:"virtual_machine"` Name string `json:"name"` Enabled *bool `json:"enabled,omitempty"` Parent NullableInt32 `json:"parent,omitempty"` @@ -29,9 +29,9 @@ type WritableVMInterfaceRequest struct { MacAddress NullableString `json:"mac_address,omitempty"` Description *string `json:"description,omitempty"` Mode *PatchedWritableInterfaceRequestMode `json:"mode,omitempty"` - UntaggedVlan NullableVLANRequest `json:"untagged_vlan,omitempty"` + UntaggedVlan NullableBriefVLANRequest `json:"untagged_vlan,omitempty"` TaggedVlans []int32 `json:"tagged_vlans,omitempty"` - Vrf NullableVRFRequest `json:"vrf,omitempty"` + Vrf NullableBriefVRFRequest `json:"vrf,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} @@ -43,7 +43,7 @@ type _WritableVMInterfaceRequest WritableVMInterfaceRequest // 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 NewWritableVMInterfaceRequest(virtualMachine VirtualMachineRequest, name string) *WritableVMInterfaceRequest { +func NewWritableVMInterfaceRequest(virtualMachine BriefVirtualMachineRequest, name string) *WritableVMInterfaceRequest { this := WritableVMInterfaceRequest{} this.VirtualMachine = virtualMachine this.Name = name @@ -59,9 +59,9 @@ func NewWritableVMInterfaceRequestWithDefaults() *WritableVMInterfaceRequest { } // GetVirtualMachine returns the VirtualMachine field value -func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { +func (o *WritableVMInterfaceRequest) GetVirtualMachine() BriefVirtualMachineRequest { if o == nil { - var ret VirtualMachineRequest + var ret BriefVirtualMachineRequest return ret } @@ -70,7 +70,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachine() VirtualMachineRequest { // GetVirtualMachineOk returns a tuple with the VirtualMachine field value // and a boolean to check if the value has been set. -func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*BriefVirtualMachineRequest, bool) { if o == nil { return nil, false } @@ -78,7 +78,7 @@ func (o *WritableVMInterfaceRequest) GetVirtualMachineOk() (*VirtualMachineReque } // SetVirtualMachine sets field value -func (o *WritableVMInterfaceRequest) SetVirtualMachine(v VirtualMachineRequest) { +func (o *WritableVMInterfaceRequest) SetVirtualMachine(v BriefVirtualMachineRequest) { o.VirtualMachine = v } @@ -375,9 +375,9 @@ func (o *WritableVMInterfaceRequest) SetMode(v PatchedWritableInterfaceRequestMo } // GetUntaggedVlan returns the UntaggedVlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { +func (o *WritableVMInterfaceRequest) GetUntaggedVlan() BriefVLANRequest { if o == nil || IsNil(o.UntaggedVlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.UntaggedVlan.Get() @@ -386,7 +386,7 @@ func (o *WritableVMInterfaceRequest) GetUntaggedVlan() VLANRequest { // GetUntaggedVlanOk returns a tuple with the UntaggedVlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*VLANRequest, bool) { +func (o *WritableVMInterfaceRequest) GetUntaggedVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -402,8 +402,8 @@ func (o *WritableVMInterfaceRequest) HasUntaggedVlan() bool { return false } -// SetUntaggedVlan gets a reference to the given NullableVLANRequest and assigns it to the UntaggedVlan field. -func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v VLANRequest) { +// SetUntaggedVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the UntaggedVlan field. +func (o *WritableVMInterfaceRequest) SetUntaggedVlan(v BriefVLANRequest) { o.UntaggedVlan.Set(&v) } @@ -450,9 +450,9 @@ func (o *WritableVMInterfaceRequest) SetTaggedVlans(v []int32) { } // GetVrf returns the Vrf field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { +func (o *WritableVMInterfaceRequest) GetVrf() BriefVRFRequest { if o == nil || IsNil(o.Vrf.Get()) { - var ret VRFRequest + var ret BriefVRFRequest return ret } return *o.Vrf.Get() @@ -461,7 +461,7 @@ func (o *WritableVMInterfaceRequest) GetVrf() VRFRequest { // GetVrfOk returns a tuple with the Vrf field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableVMInterfaceRequest) GetVrfOk() (*VRFRequest, bool) { +func (o *WritableVMInterfaceRequest) GetVrfOk() (*BriefVRFRequest, bool) { if o == nil { return nil, false } @@ -477,8 +477,8 @@ func (o *WritableVMInterfaceRequest) HasVrf() bool { return false } -// SetVrf gets a reference to the given NullableVRFRequest and assigns it to the Vrf field. -func (o *WritableVMInterfaceRequest) SetVrf(v VRFRequest) { +// SetVrf gets a reference to the given NullableBriefVRFRequest and assigns it to the Vrf field. +func (o *WritableVMInterfaceRequest) SetVrf(v BriefVRFRequest) { o.Vrf.Set(&v) } diff --git a/model_writable_wireless_lan_group_request.go b/model_writable_wireless_lan_group_request.go index e64cce0c9..08653e59e 100644 --- a/model_writable_wireless_lan_group_request.go +++ b/model_writable_wireless_lan_group_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/model_writable_wireless_lan_request.go b/model_writable_wireless_lan_request.go index 098a33b0b..746481dcc 100644 --- a/model_writable_wireless_lan_request.go +++ b/model_writable_wireless_lan_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -22,12 +22,12 @@ var _ MappedNullable = &WritableWirelessLANRequest{} type WritableWirelessLANRequest struct { Ssid string `json:"ssid"` Description *string `json:"description,omitempty"` - Group NullableWirelessLANGroupRequest `json:"group,omitempty"` + Group NullableBriefWirelessLANGroupRequest `json:"group,omitempty"` Status *PatchedWritableWirelessLANRequestStatus `json:"status,omitempty"` - Vlan NullableVLANRequest `json:"vlan,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` + Vlan NullableBriefVLANRequest `json:"vlan,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType3 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher1 `json:"auth_cipher,omitempty"` AuthPsk *string `json:"auth_psk,omitempty"` Comments *string `json:"comments,omitempty"` Tags []NestedTagRequest `json:"tags,omitempty"` @@ -112,9 +112,9 @@ func (o *WritableWirelessLANRequest) SetDescription(v string) { } // GetGroup returns the Group field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { +func (o *WritableWirelessLANRequest) GetGroup() BriefWirelessLANGroupRequest { if o == nil || IsNil(o.Group.Get()) { - var ret WirelessLANGroupRequest + var ret BriefWirelessLANGroupRequest return ret } return *o.Group.Get() @@ -123,7 +123,7 @@ func (o *WritableWirelessLANRequest) GetGroup() WirelessLANGroupRequest { // GetGroupOk returns a tuple with the Group field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetGroupOk() (*WirelessLANGroupRequest, bool) { +func (o *WritableWirelessLANRequest) GetGroupOk() (*BriefWirelessLANGroupRequest, bool) { if o == nil { return nil, false } @@ -139,8 +139,8 @@ func (o *WritableWirelessLANRequest) HasGroup() bool { return false } -// SetGroup gets a reference to the given NullableWirelessLANGroupRequest and assigns it to the Group field. -func (o *WritableWirelessLANRequest) SetGroup(v WirelessLANGroupRequest) { +// SetGroup gets a reference to the given NullableBriefWirelessLANGroupRequest and assigns it to the Group field. +func (o *WritableWirelessLANRequest) SetGroup(v BriefWirelessLANGroupRequest) { o.Group.Set(&v) } @@ -187,9 +187,9 @@ func (o *WritableWirelessLANRequest) SetStatus(v PatchedWritableWirelessLANReque } // GetVlan returns the Vlan field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { +func (o *WritableWirelessLANRequest) GetVlan() BriefVLANRequest { if o == nil || IsNil(o.Vlan.Get()) { - var ret VLANRequest + var ret BriefVLANRequest return ret } return *o.Vlan.Get() @@ -198,7 +198,7 @@ func (o *WritableWirelessLANRequest) GetVlan() VLANRequest { // GetVlanOk returns a tuple with the Vlan field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetVlanOk() (*VLANRequest, bool) { +func (o *WritableWirelessLANRequest) GetVlanOk() (*BriefVLANRequest, bool) { if o == nil { return nil, false } @@ -214,8 +214,8 @@ func (o *WritableWirelessLANRequest) HasVlan() bool { return false } -// SetVlan gets a reference to the given NullableVLANRequest and assigns it to the Vlan field. -func (o *WritableWirelessLANRequest) SetVlan(v VLANRequest) { +// SetVlan gets a reference to the given NullableBriefVLANRequest and assigns it to the Vlan field. +func (o *WritableWirelessLANRequest) SetVlan(v BriefVLANRequest) { o.Vlan.Set(&v) } @@ -230,9 +230,9 @@ func (o *WritableWirelessLANRequest) UnsetVlan() { } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLANRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -241,7 +241,7 @@ func (o *WritableWirelessLANRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLANRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLANRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -257,8 +257,8 @@ func (o *WritableWirelessLANRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLANRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLANRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -273,9 +273,9 @@ func (o *WritableWirelessLANRequest) UnsetTenant() { } // GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1 { +func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType3 { if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType1 + var ret AuthenticationType3 return ret } return *o.AuthType @@ -283,7 +283,7 @@ func (o *WritableWirelessLANRequest) GetAuthType() AuthenticationType1 { // GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { +func (o *WritableWirelessLANRequest) GetAuthTypeOk() (*AuthenticationType3, bool) { if o == nil || IsNil(o.AuthType) { return nil, false } @@ -299,15 +299,15 @@ func (o *WritableWirelessLANRequest) HasAuthType() bool { return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. -func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType1) { +// SetAuthType gets a reference to the given AuthenticationType3 and assigns it to the AuthType field. +func (o *WritableWirelessLANRequest) SetAuthType(v AuthenticationType3) { o.AuthType = &v } // GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. -func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher { +func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher1 { if o == nil || IsNil(o.AuthCipher) { - var ret AuthenticationCipher + var ret AuthenticationCipher1 return ret } return *o.AuthCipher @@ -315,7 +315,7 @@ func (o *WritableWirelessLANRequest) GetAuthCipher() AuthenticationCipher { // GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { +func (o *WritableWirelessLANRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool) { if o == nil || IsNil(o.AuthCipher) { return nil, false } @@ -331,8 +331,8 @@ func (o *WritableWirelessLANRequest) HasAuthCipher() bool { return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. -func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher) { +// SetAuthCipher gets a reference to the given AuthenticationCipher1 and assigns it to the AuthCipher field. +func (o *WritableWirelessLANRequest) SetAuthCipher(v AuthenticationCipher1) { o.AuthCipher = &v } diff --git a/model_writable_wireless_link_request.go b/model_writable_wireless_link_request.go index 84ae70e23..65afd82a5 100644 --- a/model_writable_wireless_link_request.go +++ b/model_writable_wireless_link_request.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. @@ -20,18 +20,20 @@ var _ MappedNullable = &WritableWirelessLinkRequest{} // WritableWirelessLinkRequest Adds support for custom fields and tags. type WritableWirelessLinkRequest struct { - InterfaceA InterfaceRequest `json:"interface_a"` - InterfaceB InterfaceRequest `json:"interface_b"` - Ssid *string `json:"ssid,omitempty"` - Status *PatchedWritableCableRequestStatus `json:"status,omitempty"` - Tenant NullableTenantRequest `json:"tenant,omitempty"` - AuthType *AuthenticationType1 `json:"auth_type,omitempty"` - AuthCipher *AuthenticationCipher `json:"auth_cipher,omitempty"` - AuthPsk *string `json:"auth_psk,omitempty"` - Description *string `json:"description,omitempty"` - Comments *string `json:"comments,omitempty"` - Tags []NestedTagRequest `json:"tags,omitempty"` - CustomFields map[string]interface{} `json:"custom_fields,omitempty"` + InterfaceA BriefInterfaceRequest `json:"interface_a"` + InterfaceB BriefInterfaceRequest `json:"interface_b"` + Ssid *string `json:"ssid,omitempty"` + Status *CableStatusValue `json:"status,omitempty"` + Tenant NullableBriefTenantRequest `json:"tenant,omitempty"` + AuthType *AuthenticationType3 `json:"auth_type,omitempty"` + AuthCipher *AuthenticationCipher1 `json:"auth_cipher,omitempty"` + AuthPsk *string `json:"auth_psk,omitempty"` + Distance NullableFloat64 `json:"distance,omitempty"` + DistanceUnit *PatchedWritableWirelessLinkRequestDistanceUnit `json:"distance_unit,omitempty"` + Description *string `json:"description,omitempty"` + Comments *string `json:"comments,omitempty"` + Tags []NestedTagRequest `json:"tags,omitempty"` + CustomFields map[string]interface{} `json:"custom_fields,omitempty"` AdditionalProperties map[string]interface{} } @@ -41,7 +43,7 @@ type _WritableWirelessLinkRequest WritableWirelessLinkRequest // 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 NewWritableWirelessLinkRequest(interfaceA InterfaceRequest, interfaceB InterfaceRequest) *WritableWirelessLinkRequest { +func NewWritableWirelessLinkRequest(interfaceA BriefInterfaceRequest, interfaceB BriefInterfaceRequest) *WritableWirelessLinkRequest { this := WritableWirelessLinkRequest{} this.InterfaceA = interfaceA this.InterfaceB = interfaceB @@ -57,9 +59,9 @@ func NewWritableWirelessLinkRequestWithDefaults() *WritableWirelessLinkRequest { } // GetInterfaceA returns the InterfaceA field value -func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceA() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -68,7 +70,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceA() InterfaceRequest { // GetInterfaceAOk returns a tuple with the InterfaceA field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -76,14 +78,14 @@ func (o *WritableWirelessLinkRequest) GetInterfaceAOk() (*InterfaceRequest, bool } // SetInterfaceA sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceA(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceA(v BriefInterfaceRequest) { o.InterfaceA = v } // GetInterfaceB returns the InterfaceB field value -func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { +func (o *WritableWirelessLinkRequest) GetInterfaceB() BriefInterfaceRequest { if o == nil { - var ret InterfaceRequest + var ret BriefInterfaceRequest return ret } @@ -92,7 +94,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceB() InterfaceRequest { // GetInterfaceBOk returns a tuple with the InterfaceB field value // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool) { +func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*BriefInterfaceRequest, bool) { if o == nil { return nil, false } @@ -100,7 +102,7 @@ func (o *WritableWirelessLinkRequest) GetInterfaceBOk() (*InterfaceRequest, bool } // SetInterfaceB sets field value -func (o *WritableWirelessLinkRequest) SetInterfaceB(v InterfaceRequest) { +func (o *WritableWirelessLinkRequest) SetInterfaceB(v BriefInterfaceRequest) { o.InterfaceB = v } @@ -137,9 +139,9 @@ func (o *WritableWirelessLinkRequest) SetSsid(v string) { } // GetStatus returns the Status field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestStatus { +func (o *WritableWirelessLinkRequest) GetStatus() CableStatusValue { if o == nil || IsNil(o.Status) { - var ret PatchedWritableCableRequestStatus + var ret CableStatusValue return ret } return *o.Status @@ -147,7 +149,7 @@ func (o *WritableWirelessLinkRequest) GetStatus() PatchedWritableCableRequestSta // GetStatusOk returns a tuple with the Status field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetStatusOk() (*PatchedWritableCableRequestStatus, bool) { +func (o *WritableWirelessLinkRequest) GetStatusOk() (*CableStatusValue, bool) { if o == nil || IsNil(o.Status) { return nil, false } @@ -163,15 +165,15 @@ func (o *WritableWirelessLinkRequest) HasStatus() bool { return false } -// SetStatus gets a reference to the given PatchedWritableCableRequestStatus and assigns it to the Status field. -func (o *WritableWirelessLinkRequest) SetStatus(v PatchedWritableCableRequestStatus) { +// SetStatus gets a reference to the given CableStatusValue and assigns it to the Status field. +func (o *WritableWirelessLinkRequest) SetStatus(v CableStatusValue) { o.Status = &v } // GetTenant returns the Tenant field value if set, zero value otherwise (both if not set or set to explicit null). -func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { +func (o *WritableWirelessLinkRequest) GetTenant() BriefTenantRequest { if o == nil || IsNil(o.Tenant.Get()) { - var ret TenantRequest + var ret BriefTenantRequest return ret } return *o.Tenant.Get() @@ -180,7 +182,7 @@ func (o *WritableWirelessLinkRequest) GetTenant() TenantRequest { // GetTenantOk returns a tuple with the Tenant field value if set, nil otherwise // and a boolean to check if the value has been set. // NOTE: If the value is an explicit nil, `nil, true` will be returned -func (o *WritableWirelessLinkRequest) GetTenantOk() (*TenantRequest, bool) { +func (o *WritableWirelessLinkRequest) GetTenantOk() (*BriefTenantRequest, bool) { if o == nil { return nil, false } @@ -196,8 +198,8 @@ func (o *WritableWirelessLinkRequest) HasTenant() bool { return false } -// SetTenant gets a reference to the given NullableTenantRequest and assigns it to the Tenant field. -func (o *WritableWirelessLinkRequest) SetTenant(v TenantRequest) { +// SetTenant gets a reference to the given NullableBriefTenantRequest and assigns it to the Tenant field. +func (o *WritableWirelessLinkRequest) SetTenant(v BriefTenantRequest) { o.Tenant.Set(&v) } @@ -212,9 +214,9 @@ func (o *WritableWirelessLinkRequest) UnsetTenant() { } // GetAuthType returns the AuthType field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType1 { +func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType3 { if o == nil || IsNil(o.AuthType) { - var ret AuthenticationType1 + var ret AuthenticationType3 return ret } return *o.AuthType @@ -222,7 +224,7 @@ func (o *WritableWirelessLinkRequest) GetAuthType() AuthenticationType1 { // GetAuthTypeOk returns a tuple with the AuthType field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType1, bool) { +func (o *WritableWirelessLinkRequest) GetAuthTypeOk() (*AuthenticationType3, bool) { if o == nil || IsNil(o.AuthType) { return nil, false } @@ -238,15 +240,15 @@ func (o *WritableWirelessLinkRequest) HasAuthType() bool { return false } -// SetAuthType gets a reference to the given AuthenticationType1 and assigns it to the AuthType field. -func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType1) { +// SetAuthType gets a reference to the given AuthenticationType3 and assigns it to the AuthType field. +func (o *WritableWirelessLinkRequest) SetAuthType(v AuthenticationType3) { o.AuthType = &v } // GetAuthCipher returns the AuthCipher field value if set, zero value otherwise. -func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher { +func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher1 { if o == nil || IsNil(o.AuthCipher) { - var ret AuthenticationCipher + var ret AuthenticationCipher1 return ret } return *o.AuthCipher @@ -254,7 +256,7 @@ func (o *WritableWirelessLinkRequest) GetAuthCipher() AuthenticationCipher { // GetAuthCipherOk returns a tuple with the AuthCipher field value if set, nil otherwise // and a boolean to check if the value has been set. -func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher, bool) { +func (o *WritableWirelessLinkRequest) GetAuthCipherOk() (*AuthenticationCipher1, bool) { if o == nil || IsNil(o.AuthCipher) { return nil, false } @@ -270,8 +272,8 @@ func (o *WritableWirelessLinkRequest) HasAuthCipher() bool { return false } -// SetAuthCipher gets a reference to the given AuthenticationCipher and assigns it to the AuthCipher field. -func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher) { +// SetAuthCipher gets a reference to the given AuthenticationCipher1 and assigns it to the AuthCipher field. +func (o *WritableWirelessLinkRequest) SetAuthCipher(v AuthenticationCipher1) { o.AuthCipher = &v } @@ -307,6 +309,81 @@ func (o *WritableWirelessLinkRequest) SetAuthPsk(v string) { o.AuthPsk = &v } +// GetDistance returns the Distance field value if set, zero value otherwise (both if not set or set to explicit null). +func (o *WritableWirelessLinkRequest) GetDistance() float64 { + if o == nil || IsNil(o.Distance.Get()) { + var ret float64 + return ret + } + return *o.Distance.Get() +} + +// GetDistanceOk returns a tuple with the Distance field value if set, nil otherwise +// and a boolean to check if the value has been set. +// NOTE: If the value is an explicit nil, `nil, true` will be returned +func (o *WritableWirelessLinkRequest) GetDistanceOk() (*float64, bool) { + if o == nil { + return nil, false + } + return o.Distance.Get(), o.Distance.IsSet() +} + +// HasDistance returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistance() bool { + if o != nil && o.Distance.IsSet() { + return true + } + + return false +} + +// SetDistance gets a reference to the given NullableFloat64 and assigns it to the Distance field. +func (o *WritableWirelessLinkRequest) SetDistance(v float64) { + o.Distance.Set(&v) +} + +// SetDistanceNil sets the value for Distance to be an explicit nil +func (o *WritableWirelessLinkRequest) SetDistanceNil() { + o.Distance.Set(nil) +} + +// UnsetDistance ensures that no value is present for Distance, not even an explicit nil +func (o *WritableWirelessLinkRequest) UnsetDistance() { + o.Distance.Unset() +} + +// GetDistanceUnit returns the DistanceUnit field value if set, zero value otherwise. +func (o *WritableWirelessLinkRequest) GetDistanceUnit() PatchedWritableWirelessLinkRequestDistanceUnit { + if o == nil || IsNil(o.DistanceUnit) { + var ret PatchedWritableWirelessLinkRequestDistanceUnit + return ret + } + return *o.DistanceUnit +} + +// GetDistanceUnitOk returns a tuple with the DistanceUnit field value if set, nil otherwise +// and a boolean to check if the value has been set. +func (o *WritableWirelessLinkRequest) GetDistanceUnitOk() (*PatchedWritableWirelessLinkRequestDistanceUnit, bool) { + if o == nil || IsNil(o.DistanceUnit) { + return nil, false + } + return o.DistanceUnit, true +} + +// HasDistanceUnit returns a boolean if a field has been set. +func (o *WritableWirelessLinkRequest) HasDistanceUnit() bool { + if o != nil && !IsNil(o.DistanceUnit) { + return true + } + + return false +} + +// SetDistanceUnit gets a reference to the given PatchedWritableWirelessLinkRequestDistanceUnit and assigns it to the DistanceUnit field. +func (o *WritableWirelessLinkRequest) SetDistanceUnit(v PatchedWritableWirelessLinkRequestDistanceUnit) { + o.DistanceUnit = &v +} + // GetDescription returns the Description field value if set, zero value otherwise. func (o *WritableWirelessLinkRequest) GetDescription() string { if o == nil || IsNil(o.Description) { @@ -465,6 +542,12 @@ func (o WritableWirelessLinkRequest) ToMap() (map[string]interface{}, error) { if !IsNil(o.AuthPsk) { toSerialize["auth_psk"] = o.AuthPsk } + if o.Distance.IsSet() { + toSerialize["distance"] = o.Distance.Get() + } + if !IsNil(o.DistanceUnit) { + toSerialize["distance_unit"] = o.DistanceUnit + } if !IsNil(o.Description) { toSerialize["description"] = o.Description } @@ -529,6 +612,8 @@ func (o *WritableWirelessLinkRequest) UnmarshalJSON(data []byte) (err error) { delete(additionalProperties, "auth_type") delete(additionalProperties, "auth_cipher") delete(additionalProperties, "auth_psk") + delete(additionalProperties, "distance") + delete(additionalProperties, "distance_unit") delete(additionalProperties, "description") delete(additionalProperties, "comments") delete(additionalProperties, "tags") diff --git a/response.go b/response.go index d10be0f11..8bf53c240 100644 --- a/response.go +++ b/response.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index f886f47ab..cd25c183e 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -48,6 +48,7 @@ 'virtualmachine_count', 'prefix_count', 'vlan_count', + 'display_url', ] schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] diff --git a/scripts/set-versions.sh b/scripts/set-versions.sh index 094f9af5c..dbf202c0f 100755 --- a/scripts/set-versions.sh +++ b/scripts/set-versions.sh @@ -1,6 +1,6 @@ #!/usr/bin/env bash -NETBOX_VERSION='4.0.3' +NETBOX_VERSION='4.1.3' NETBOX_DOCKER_VERSION='auto' set -euo pipefail diff --git a/utils.go b/utils.go index 31b2f6c2e..1531630db 100644 --- a/utils.go +++ b/utils.go @@ -3,7 +3,7 @@ NetBox REST API No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) -API version: 4.0.3 (4.0) +API version: 4.1.3 (4.1) */ // Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. From 6056e3c1ebd20800231af2734ec6d3fe477f8ba8 Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Thu, 10 Oct 2024 14:57:21 +0530 Subject: [PATCH 09/16] add newly generated files --- docs/Authentication1.md | 21 + docs/AuthenticationCipher1.md | 17 + docs/AuthenticationType2.md | 15 + docs/AuthenticationType3.md | 19 + ...cuitsCircuitsListStatusIcParameterInner.md | 21 + docs/CoreJobsListStatusIcParameterInner.md | 21 + docs/DcimCablesListStatusIcParameterInner.md | 15 + docs/DcimCablesListTypeIcParameterInner.md | 59 ++ ...lePortsListDeviceStatusIcParameterInner.md | 23 + ...cimConsolePortsListTypeIcParameterInner.md | 41 ++ ...ntPortTemplatesListTypeIcParameterInner.md | 119 +++++ ...aceTemplatesListPoeModeIcParameterInner.md | 15 + ...aceTemplatesListPoeTypeIcParameterInner.md | 27 + ...erfaceTemplatesListTypeIcParameterInner.md | 267 ++++++++++ ...cimInterfacesListDuplexIcParameterInner.md | 19 + ...DcimLocationsListStatusIcParameterInner.md | 19 + docs/DcimModulesListStatusIcParameterInner.md | 21 + ...cimPowerFeedsListStatusIcParameterInner.md | 17 + ...letTemplatesListFeedLegIcParameterInner.md | 17 + ...cimPowerOutletsListTypeIcParameterInner.md | 207 +++++++ .../DcimPowerPortsListTypeIcParameterInner.md | 219 ++++++++ ...RackTypesListFormFactorIcParameterInner.md | 23 + .../DcimRackTypesListWidthIcParameterInner.md | 17 + ...DcimRacksListFormFactorIcParameterInner.md | 25 + docs/DcimRacksListStatusIcParameterInner.md | 19 + ...eviceContextsListStatusIcParameterInner.md | 15 + docs/Encryption1.md | 27 + ...rasCustomFieldsListTypeIcParameterInner.md | 35 ++ ...ventRulesListActionTypeIcParameterInner.md | 15 + ...sJournalEntriesListKindIcParameterInner.md | 17 + ...sWebhooksListHttpMethodIcParameterInner.md | 19 + ...mFhrpGroupsListProtocolIcParameterInner.md | 23 + ...IpamIpAddressesListRoleIcParameterInner.md | 27 + ...amIpAddressesListStatusIcParameterInner.md | 19 + .../IpamIpRangesListStatusIcParameterInner.md | 15 + .../IpamPrefixesListStatusIcParameterInner.md | 17 + ...ationClustersListStatusIcParameterInner.md | 19 + .../VpnIkePoliciesListModeIcParameterInner.md | 15 + ...nIkePoliciesListVersionIcParameterInner.md | 13 + ...AuthenticationAlgorithmIcParameterInner.md | 21 + ...istAuthenticationMethodIcParameterInner.md | 17 + ...ListEncryptionAlgorithmIcParameterInner.md | 25 + ...pnIkeProposalsListGroupIcParameterInner.md | 57 ++ ...secPoliciesListPfsGroupIcParameterInner.md | 59 ++ ...pnIpsecProfilesListModeIcParameterInner.md | 13 + docs/VpnL2vpnsListTypeIcParameterInner.md | 33 ++ ...nelTerminationsListRoleIcParameterInner.md | 15 + ...unnelsListEncapsulationIcParameterInner.md | 17 + docs/VpnTunnelsListStatusIcParameterInner.md | 15 + docs/WirelessChannel1.md | 405 ++++++++++++++ docs/WirelessRole1.md | 15 + ...sWirelessLansListStatusIcParameterInner.md | 17 + model_authentication_1.go | 119 +++++ model_authentication_cipher_1.go | 115 ++++ model_authentication_type_2.go | 113 ++++ model_authentication_type_3.go | 117 ++++ ...ircuits_list_status__ic_parameter_inner.go | 119 +++++ ...re_jobs_list_status__ic_parameter_inner.go | 119 +++++ ..._cables_list_status__ic_parameter_inner.go | 113 ++++ ...im_cables_list_type__ic_parameter_inner.go | 157 ++++++ ..._list_device_status__ic_parameter_inner.go | 121 +++++ ...ole_ports_list_type__ic_parameter_inner.go | 139 +++++ ...templates_list_type__ic_parameter_inner.go | 217 ++++++++ ...lates_list_poe_mode__ic_parameter_inner.go | 113 ++++ ...lates_list_poe_type__ic_parameter_inner.go | 125 +++++ ...templates_list_type__ic_parameter_inner.go | 365 +++++++++++++ ...erfaces_list_duplex__ic_parameter_inner.go | 117 ++++ ...cations_list_status__ic_parameter_inner.go | 117 ++++ ...modules_list_status__ic_parameter_inner.go | 119 +++++ ...r_feeds_list_status__ic_parameter_inner.go | 115 ++++ ...lates_list_feed_leg__ic_parameter_inner.go | 115 ++++ ...r_outlets_list_type__ic_parameter_inner.go | 305 +++++++++++ ...wer_ports_list_type__ic_parameter_inner.go | 317 +++++++++++ ...es_list_form_factor__ic_parameter_inner.go | 121 +++++ ...ck_types_list_width__ic_parameter_inner.go | 115 ++++ ...ks_list_form_factor__ic_parameter_inner.go | 123 +++++ ...m_racks_list_status__ic_parameter_inner.go | 117 ++++ ...ontexts_list_status__ic_parameter_inner.go | 113 ++++ model_encryption_1.go | 125 +++++ ...om_fields_list_type__ic_parameter_inner.go | 133 +++++ ...es_list_action_type__ic_parameter_inner.go | 113 ++++ ...l_entries_list_kind__ic_parameter_inner.go | 115 ++++ ...ks_list_http_method__ic_parameter_inner.go | 117 ++++ ...roups_list_protocol__ic_parameter_inner.go | 121 +++++ ...addresses_list_role__ic_parameter_inner.go | 125 +++++ ...dresses_list_status__ic_parameter_inner.go | 117 ++++ ..._ranges_list_status__ic_parameter_inner.go | 113 ++++ ...refixes_list_status__ic_parameter_inner.go | 115 ++++ ...lusters_list_status__ic_parameter_inner.go | 117 ++++ ..._policies_list_mode__ic_parameter_inner.go | 113 ++++ ...licies_list_version__ic_parameter_inner.go | 111 ++++ ...ntication_algorithm__ic_parameter_inner.go | 119 +++++ ...thentication_method__ic_parameter_inner.go | 115 ++++ ...ncryption_algorithm__ic_parameter_inner.go | 123 +++++ ...roposals_list_group__ic_parameter_inner.go | 155 ++++++ ...cies_list_pfs_group__ic_parameter_inner.go | 157 ++++++ ..._profiles_list_mode__ic_parameter_inner.go | 111 ++++ ...pn_l2vpns_list_type__ic_parameter_inner.go | 131 +++++ ...minations_list_role__ic_parameter_inner.go | 113 ++++ ..._list_encapsulation__ic_parameter_inner.go | 115 ++++ ...tunnels_list_status__ic_parameter_inner.go | 113 ++++ model_wireless_channel_1.go | 503 ++++++++++++++++++ model_wireless_role_1.go | 113 ++++ ...ss_lans_list_status__ic_parameter_inner.go | 115 ++++ 104 files changed, 9632 insertions(+) create mode 100644 docs/Authentication1.md create mode 100644 docs/AuthenticationCipher1.md create mode 100644 docs/AuthenticationType2.md create mode 100644 docs/AuthenticationType3.md create mode 100644 docs/CircuitsCircuitsListStatusIcParameterInner.md create mode 100644 docs/CoreJobsListStatusIcParameterInner.md create mode 100644 docs/DcimCablesListStatusIcParameterInner.md create mode 100644 docs/DcimCablesListTypeIcParameterInner.md create mode 100644 docs/DcimConsolePortsListDeviceStatusIcParameterInner.md create mode 100644 docs/DcimConsolePortsListTypeIcParameterInner.md create mode 100644 docs/DcimFrontPortTemplatesListTypeIcParameterInner.md create mode 100644 docs/DcimInterfaceTemplatesListPoeModeIcParameterInner.md create mode 100644 docs/DcimInterfaceTemplatesListPoeTypeIcParameterInner.md create mode 100644 docs/DcimInterfaceTemplatesListTypeIcParameterInner.md create mode 100644 docs/DcimInterfacesListDuplexIcParameterInner.md create mode 100644 docs/DcimLocationsListStatusIcParameterInner.md create mode 100644 docs/DcimModulesListStatusIcParameterInner.md create mode 100644 docs/DcimPowerFeedsListStatusIcParameterInner.md create mode 100644 docs/DcimPowerOutletTemplatesListFeedLegIcParameterInner.md create mode 100644 docs/DcimPowerOutletsListTypeIcParameterInner.md create mode 100644 docs/DcimPowerPortsListTypeIcParameterInner.md create mode 100644 docs/DcimRackTypesListFormFactorIcParameterInner.md create mode 100644 docs/DcimRackTypesListWidthIcParameterInner.md create mode 100644 docs/DcimRacksListFormFactorIcParameterInner.md create mode 100644 docs/DcimRacksListStatusIcParameterInner.md create mode 100644 docs/DcimVirtualDeviceContextsListStatusIcParameterInner.md create mode 100644 docs/Encryption1.md create mode 100644 docs/ExtrasCustomFieldsListTypeIcParameterInner.md create mode 100644 docs/ExtrasEventRulesListActionTypeIcParameterInner.md create mode 100644 docs/ExtrasJournalEntriesListKindIcParameterInner.md create mode 100644 docs/ExtrasWebhooksListHttpMethodIcParameterInner.md create mode 100644 docs/IpamFhrpGroupsListProtocolIcParameterInner.md create mode 100644 docs/IpamIpAddressesListRoleIcParameterInner.md create mode 100644 docs/IpamIpAddressesListStatusIcParameterInner.md create mode 100644 docs/IpamIpRangesListStatusIcParameterInner.md create mode 100644 docs/IpamPrefixesListStatusIcParameterInner.md create mode 100644 docs/VirtualizationClustersListStatusIcParameterInner.md create mode 100644 docs/VpnIkePoliciesListModeIcParameterInner.md create mode 100644 docs/VpnIkePoliciesListVersionIcParameterInner.md create mode 100644 docs/VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md create mode 100644 docs/VpnIkeProposalsListAuthenticationMethodIcParameterInner.md create mode 100644 docs/VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md create mode 100644 docs/VpnIkeProposalsListGroupIcParameterInner.md create mode 100644 docs/VpnIpsecPoliciesListPfsGroupIcParameterInner.md create mode 100644 docs/VpnIpsecProfilesListModeIcParameterInner.md create mode 100644 docs/VpnL2vpnsListTypeIcParameterInner.md create mode 100644 docs/VpnTunnelTerminationsListRoleIcParameterInner.md create mode 100644 docs/VpnTunnelsListEncapsulationIcParameterInner.md create mode 100644 docs/VpnTunnelsListStatusIcParameterInner.md create mode 100644 docs/WirelessChannel1.md create mode 100644 docs/WirelessRole1.md create mode 100644 docs/WirelessWirelessLansListStatusIcParameterInner.md create mode 100644 model_authentication_1.go create mode 100644 model_authentication_cipher_1.go create mode 100644 model_authentication_type_2.go create mode 100644 model_authentication_type_3.go create mode 100644 model_circuits_circuits_list_status__ic_parameter_inner.go create mode 100644 model_core_jobs_list_status__ic_parameter_inner.go create mode 100644 model_dcim_cables_list_status__ic_parameter_inner.go create mode 100644 model_dcim_cables_list_type__ic_parameter_inner.go create mode 100644 model_dcim_console_ports_list_device_status__ic_parameter_inner.go create mode 100644 model_dcim_console_ports_list_type__ic_parameter_inner.go create mode 100644 model_dcim_front_port_templates_list_type__ic_parameter_inner.go create mode 100644 model_dcim_interface_templates_list_poe_mode__ic_parameter_inner.go create mode 100644 model_dcim_interface_templates_list_poe_type__ic_parameter_inner.go create mode 100644 model_dcim_interface_templates_list_type__ic_parameter_inner.go create mode 100644 model_dcim_interfaces_list_duplex__ic_parameter_inner.go create mode 100644 model_dcim_locations_list_status__ic_parameter_inner.go create mode 100644 model_dcim_modules_list_status__ic_parameter_inner.go create mode 100644 model_dcim_power_feeds_list_status__ic_parameter_inner.go create mode 100644 model_dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner.go create mode 100644 model_dcim_power_outlets_list_type__ic_parameter_inner.go create mode 100644 model_dcim_power_ports_list_type__ic_parameter_inner.go create mode 100644 model_dcim_rack_types_list_form_factor__ic_parameter_inner.go create mode 100644 model_dcim_rack_types_list_width__ic_parameter_inner.go create mode 100644 model_dcim_racks_list_form_factor__ic_parameter_inner.go create mode 100644 model_dcim_racks_list_status__ic_parameter_inner.go create mode 100644 model_dcim_virtual_device_contexts_list_status__ic_parameter_inner.go create mode 100644 model_encryption_1.go create mode 100644 model_extras_custom_fields_list_type__ic_parameter_inner.go create mode 100644 model_extras_event_rules_list_action_type__ic_parameter_inner.go create mode 100644 model_extras_journal_entries_list_kind__ic_parameter_inner.go create mode 100644 model_extras_webhooks_list_http_method__ic_parameter_inner.go create mode 100644 model_ipam_fhrp_groups_list_protocol__ic_parameter_inner.go create mode 100644 model_ipam_ip_addresses_list_role__ic_parameter_inner.go create mode 100644 model_ipam_ip_addresses_list_status__ic_parameter_inner.go create mode 100644 model_ipam_ip_ranges_list_status__ic_parameter_inner.go create mode 100644 model_ipam_prefixes_list_status__ic_parameter_inner.go create mode 100644 model_virtualization_clusters_list_status__ic_parameter_inner.go create mode 100644 model_vpn_ike_policies_list_mode__ic_parameter_inner.go create mode 100644 model_vpn_ike_policies_list_version__ic_parameter_inner.go create mode 100644 model_vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner.go create mode 100644 model_vpn_ike_proposals_list_authentication_method__ic_parameter_inner.go create mode 100644 model_vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner.go create mode 100644 model_vpn_ike_proposals_list_group__ic_parameter_inner.go create mode 100644 model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go create mode 100644 model_vpn_ipsec_profiles_list_mode__ic_parameter_inner.go create mode 100644 model_vpn_l2vpns_list_type__ic_parameter_inner.go create mode 100644 model_vpn_tunnel_terminations_list_role__ic_parameter_inner.go create mode 100644 model_vpn_tunnels_list_encapsulation__ic_parameter_inner.go create mode 100644 model_vpn_tunnels_list_status__ic_parameter_inner.go create mode 100644 model_wireless_channel_1.go create mode 100644 model_wireless_role_1.go create mode 100644 model_wireless_wireless_lans_list_status__ic_parameter_inner.go diff --git a/docs/Authentication1.md b/docs/Authentication1.md new file mode 100644 index 000000000..68ab02839 --- /dev/null +++ b/docs/Authentication1.md @@ -0,0 +1,21 @@ +# Authentication1 + +## Enum + + +* `HMAC_SHA1` (value: `"hmac-sha1"`) + +* `HMAC_SHA256` (value: `"hmac-sha256"`) + +* `HMAC_SHA384` (value: `"hmac-sha384"`) + +* `HMAC_SHA512` (value: `"hmac-sha512"`) + +* `HMAC_MD5` (value: `"hmac-md5"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationCipher1.md b/docs/AuthenticationCipher1.md new file mode 100644 index 000000000..284db02d4 --- /dev/null +++ b/docs/AuthenticationCipher1.md @@ -0,0 +1,17 @@ +# AuthenticationCipher1 + +## Enum + + +* `AUTO` (value: `"auto"`) + +* `TKIP` (value: `"tkip"`) + +* `AES` (value: `"aes"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationType2.md b/docs/AuthenticationType2.md new file mode 100644 index 000000000..ace619531 --- /dev/null +++ b/docs/AuthenticationType2.md @@ -0,0 +1,15 @@ +# AuthenticationType2 + +## Enum + + +* `PLAINTEXT` (value: `"plaintext"`) + +* `MD5` (value: `"md5"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/AuthenticationType3.md b/docs/AuthenticationType3.md new file mode 100644 index 000000000..fd0a92221 --- /dev/null +++ b/docs/AuthenticationType3.md @@ -0,0 +1,19 @@ +# AuthenticationType3 + +## Enum + + +* `OPEN` (value: `"open"`) + +* `WEP` (value: `"wep"`) + +* `WPA_PERSONAL` (value: `"wpa-personal"`) + +* `WPA_ENTERPRISE` (value: `"wpa-enterprise"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/CircuitsCircuitsListStatusIcParameterInner.md b/docs/CircuitsCircuitsListStatusIcParameterInner.md new file mode 100644 index 000000000..4695fdf8d --- /dev/null +++ b/docs/CircuitsCircuitsListStatusIcParameterInner.md @@ -0,0 +1,21 @@ +# CircuitsCircuitsListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONED` (value: `"decommissioned"`) + +* `DEPROVISIONING` (value: `"deprovisioning"`) + +* `OFFLINE` (value: `"offline"`) + +* `PLANNED` (value: `"planned"`) + +* `PROVISIONING` (value: `"provisioning"`) + + +[[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/docs/CoreJobsListStatusIcParameterInner.md b/docs/CoreJobsListStatusIcParameterInner.md new file mode 100644 index 000000000..ec42b984b --- /dev/null +++ b/docs/CoreJobsListStatusIcParameterInner.md @@ -0,0 +1,21 @@ +# CoreJobsListStatusIcParameterInner + +## Enum + + +* `COMPLETED` (value: `"completed"`) + +* `ERRORED` (value: `"errored"`) + +* `FAILED` (value: `"failed"`) + +* `PENDING` (value: `"pending"`) + +* `RUNNING` (value: `"running"`) + +* `SCHEDULED` (value: `"scheduled"`) + + +[[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/docs/DcimCablesListStatusIcParameterInner.md b/docs/DcimCablesListStatusIcParameterInner.md new file mode 100644 index 000000000..28db4b56d --- /dev/null +++ b/docs/DcimCablesListStatusIcParameterInner.md @@ -0,0 +1,15 @@ +# DcimCablesListStatusIcParameterInner + +## Enum + + +* `CONNECTED` (value: `"connected"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `PLANNED` (value: `"planned"`) + + +[[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/docs/DcimCablesListTypeIcParameterInner.md b/docs/DcimCablesListTypeIcParameterInner.md new file mode 100644 index 000000000..736d5a09f --- /dev/null +++ b/docs/DcimCablesListTypeIcParameterInner.md @@ -0,0 +1,59 @@ +# DcimCablesListTypeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `AOC` (value: `"aoc"`) + +* `CAT3` (value: `"cat3"`) + +* `CAT5` (value: `"cat5"`) + +* `CAT5E` (value: `"cat5e"`) + +* `CAT6` (value: `"cat6"`) + +* `CAT6A` (value: `"cat6a"`) + +* `CAT7` (value: `"cat7"`) + +* `CAT7A` (value: `"cat7a"`) + +* `CAT8` (value: `"cat8"`) + +* `COAXIAL` (value: `"coaxial"`) + +* `DAC_ACTIVE` (value: `"dac-active"`) + +* `DAC_PASSIVE` (value: `"dac-passive"`) + +* `MMF` (value: `"mmf"`) + +* `MMF_OM1` (value: `"mmf-om1"`) + +* `MMF_OM2` (value: `"mmf-om2"`) + +* `MMF_OM3` (value: `"mmf-om3"`) + +* `MMF_OM4` (value: `"mmf-om4"`) + +* `MMF_OM5` (value: `"mmf-om5"`) + +* `MRJ21_TRUNK` (value: `"mrj21-trunk"`) + +* `POWER` (value: `"power"`) + +* `SMF` (value: `"smf"`) + +* `SMF_OS1` (value: `"smf-os1"`) + +* `SMF_OS2` (value: `"smf-os2"`) + +* `USB` (value: `"usb"`) + + +[[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/docs/DcimConsolePortsListDeviceStatusIcParameterInner.md b/docs/DcimConsolePortsListDeviceStatusIcParameterInner.md new file mode 100644 index 000000000..e56c4c0da --- /dev/null +++ b/docs/DcimConsolePortsListDeviceStatusIcParameterInner.md @@ -0,0 +1,23 @@ +# DcimConsolePortsListDeviceStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `FAILED` (value: `"failed"`) + +* `INVENTORY` (value: `"inventory"`) + +* `OFFLINE` (value: `"offline"`) + +* `PLANNED` (value: `"planned"`) + +* `STAGED` (value: `"staged"`) + + +[[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/docs/DcimConsolePortsListTypeIcParameterInner.md b/docs/DcimConsolePortsListTypeIcParameterInner.md new file mode 100644 index 000000000..adeac450c --- /dev/null +++ b/docs/DcimConsolePortsListTypeIcParameterInner.md @@ -0,0 +1,41 @@ +# DcimConsolePortsListTypeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `DB_25` (value: `"db-25"`) + +* `DE_9` (value: `"de-9"`) + +* `MINI_DIN_8` (value: `"mini-din-8"`) + +* `OTHER` (value: `"other"`) + +* `RJ_11` (value: `"rj-11"`) + +* `RJ_12` (value: `"rj-12"`) + +* `RJ_45` (value: `"rj-45"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + + +[[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/docs/DcimFrontPortTemplatesListTypeIcParameterInner.md b/docs/DcimFrontPortTemplatesListTypeIcParameterInner.md new file mode 100644 index 000000000..dabb1ea37 --- /dev/null +++ b/docs/DcimFrontPortTemplatesListTypeIcParameterInner.md @@ -0,0 +1,119 @@ +# DcimFrontPortTemplatesListTypeIcParameterInner + +## Enum + + +* `_110_PUNCH` (value: `"110-punch"`) + +* `_4P2C` (value: `"4p2c"`) + +* `_4P4C` (value: `"4p4c"`) + +* `_6P2C` (value: `"6p2c"`) + +* `_6P4C` (value: `"6p4c"`) + +* `_6P6C` (value: `"6p6c"`) + +* `_8P2C` (value: `"8p2c"`) + +* `_8P4C` (value: `"8p4c"`) + +* `_8P6C` (value: `"8p6c"`) + +* `_8P8C` (value: `"8p8c"`) + +* `BNC` (value: `"bnc"`) + +* `CS` (value: `"cs"`) + +* `F` (value: `"f"`) + +* `FC` (value: `"fc"`) + +* `GG45` (value: `"gg45"`) + +* `LC` (value: `"lc"`) + +* `LC_APC` (value: `"lc-apc"`) + +* `LC_PC` (value: `"lc-pc"`) + +* `LC_UPC` (value: `"lc-upc"`) + +* `LSH` (value: `"lsh"`) + +* `LSH_APC` (value: `"lsh-apc"`) + +* `LSH_PC` (value: `"lsh-pc"`) + +* `LSH_UPC` (value: `"lsh-upc"`) + +* `LX5` (value: `"lx5"`) + +* `LX5_APC` (value: `"lx5-apc"`) + +* `LX5_PC` (value: `"lx5-pc"`) + +* `LX5_UPC` (value: `"lx5-upc"`) + +* `MPO` (value: `"mpo"`) + +* `MRJ21` (value: `"mrj21"`) + +* `MTRJ` (value: `"mtrj"`) + +* `N` (value: `"n"`) + +* `OTHER` (value: `"other"`) + +* `SC` (value: `"sc"`) + +* `SC_APC` (value: `"sc-apc"`) + +* `SC_PC` (value: `"sc-pc"`) + +* `SC_UPC` (value: `"sc-upc"`) + +* `SMA_905` (value: `"sma-905"`) + +* `SMA_906` (value: `"sma-906"`) + +* `SN` (value: `"sn"`) + +* `SPLICE` (value: `"splice"`) + +* `ST` (value: `"st"`) + +* `TERA_1P` (value: `"tera-1p"`) + +* `TERA_2P` (value: `"tera-2p"`) + +* `TERA_4P` (value: `"tera-4p"`) + +* `URM_P2` (value: `"urm-p2"`) + +* `URM_P4` (value: `"urm-p4"`) + +* `URM_P8` (value: `"urm-p8"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + + +[[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/docs/DcimInterfaceTemplatesListPoeModeIcParameterInner.md b/docs/DcimInterfaceTemplatesListPoeModeIcParameterInner.md new file mode 100644 index 000000000..a206ccd08 --- /dev/null +++ b/docs/DcimInterfaceTemplatesListPoeModeIcParameterInner.md @@ -0,0 +1,15 @@ +# DcimInterfaceTemplatesListPoeModeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `PD` (value: `"pd"`) + +* `PSE` (value: `"pse"`) + + +[[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/docs/DcimInterfaceTemplatesListPoeTypeIcParameterInner.md b/docs/DcimInterfaceTemplatesListPoeTypeIcParameterInner.md new file mode 100644 index 000000000..ffeda0c3c --- /dev/null +++ b/docs/DcimInterfaceTemplatesListPoeTypeIcParameterInner.md @@ -0,0 +1,27 @@ +# DcimInterfaceTemplatesListPoeTypeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `PASSIVE_24V_2PAIR` (value: `"passive-24v-2pair"`) + +* `PASSIVE_24V_4PAIR` (value: `"passive-24v-4pair"`) + +* `PASSIVE_48V_2PAIR` (value: `"passive-48v-2pair"`) + +* `PASSIVE_48V_4PAIR` (value: `"passive-48v-4pair"`) + +* `TYPE1_IEEE802_3AF` (value: `"type1-ieee802.3af"`) + +* `TYPE2_IEEE802_3AT` (value: `"type2-ieee802.3at"`) + +* `TYPE3_IEEE802_3BT` (value: `"type3-ieee802.3bt"`) + +* `TYPE4_IEEE802_3BT` (value: `"type4-ieee802.3bt"`) + + +[[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/docs/DcimInterfaceTemplatesListTypeIcParameterInner.md b/docs/DcimInterfaceTemplatesListTypeIcParameterInner.md new file mode 100644 index 000000000..74fda4dee --- /dev/null +++ b/docs/DcimInterfaceTemplatesListTypeIcParameterInner.md @@ -0,0 +1,267 @@ +# DcimInterfaceTemplatesListTypeIcParameterInner + +## Enum + + +* `_1000BASE_KX` (value: `"1000base-kx"`) + +* `_1000BASE_T` (value: `"1000base-t"`) + +* `_1000BASE_TX` (value: `"1000base-tx"`) + +* `_1000BASE_X_GBIC` (value: `"1000base-x-gbic"`) + +* `_1000BASE_X_SFP` (value: `"1000base-x-sfp"`) + +* `_100BASE_FX` (value: `"100base-fx"`) + +* `_100BASE_LFX` (value: `"100base-lfx"`) + +* `_100BASE_T1` (value: `"100base-t1"`) + +* `_100BASE_TX` (value: `"100base-tx"`) + +* `_100BASE_X_SFP` (value: `"100base-x-sfp"`) + +* `_100GBASE_KP4` (value: `"100gbase-kp4"`) + +* `_100GBASE_KR2` (value: `"100gbase-kr2"`) + +* `_100GBASE_KR4` (value: `"100gbase-kr4"`) + +* `_100GBASE_X_CFP` (value: `"100gbase-x-cfp"`) + +* `_100GBASE_X_CFP2` (value: `"100gbase-x-cfp2"`) + +* `_100GBASE_X_CFP4` (value: `"100gbase-x-cfp4"`) + +* `_100GBASE_X_CPAK` (value: `"100gbase-x-cpak"`) + +* `_100GBASE_X_CXP` (value: `"100gbase-x-cxp"`) + +* `_100GBASE_X_DSFP` (value: `"100gbase-x-dsfp"`) + +* `_100GBASE_X_QSFP28` (value: `"100gbase-x-qsfp28"`) + +* `_100GBASE_X_QSFPDD` (value: `"100gbase-x-qsfpdd"`) + +* `_100GBASE_X_SFPDD` (value: `"100gbase-x-sfpdd"`) + +* `_10G_EPON` (value: `"10g-epon"`) + +* `_10GBASE_CX4` (value: `"10gbase-cx4"`) + +* `_10GBASE_KR` (value: `"10gbase-kr"`) + +* `_10GBASE_KX4` (value: `"10gbase-kx4"`) + +* `_10GBASE_T` (value: `"10gbase-t"`) + +* `_10GBASE_X_SFPP` (value: `"10gbase-x-sfpp"`) + +* `_10GBASE_X_X2` (value: `"10gbase-x-x2"`) + +* `_10GBASE_X_XENPAK` (value: `"10gbase-x-xenpak"`) + +* `_10GBASE_X_XFP` (value: `"10gbase-x-xfp"`) + +* `_128GFC_QSFP28` (value: `"128gfc-qsfp28"`) + +* `_16GFC_SFPP` (value: `"16gfc-sfpp"`) + +* `_1GFC_SFP` (value: `"1gfc-sfp"`) + +* `_2_5GBASE_KX` (value: `"2.5gbase-kx"`) + +* `_2_5GBASE_T` (value: `"2.5gbase-t"`) + +* `_200GBASE_X_CFP2` (value: `"200gbase-x-cfp2"`) + +* `_200GBASE_X_QSFP56` (value: `"200gbase-x-qsfp56"`) + +* `_200GBASE_X_QSFPDD` (value: `"200gbase-x-qsfpdd"`) + +* `_25G_PON` (value: `"25g-pon"`) + +* `_25GBASE_KR` (value: `"25gbase-kr"`) + +* `_25GBASE_X_SFP28` (value: `"25gbase-x-sfp28"`) + +* `_2GFC_SFP` (value: `"2gfc-sfp"`) + +* `_32GFC_SFP28` (value: `"32gfc-sfp28"`) + +* `_32GFC_SFPP` (value: `"32gfc-sfpp"`) + +* `_400GBASE_X_CDFP` (value: `"400gbase-x-cdfp"`) + +* `_400GBASE_X_CFP2` (value: `"400gbase-x-cfp2"`) + +* `_400GBASE_X_CFP8` (value: `"400gbase-x-cfp8"`) + +* `_400GBASE_X_OSFP` (value: `"400gbase-x-osfp"`) + +* `_400GBASE_X_OSFP_RHS` (value: `"400gbase-x-osfp-rhs"`) + +* `_400GBASE_X_QSFP112` (value: `"400gbase-x-qsfp112"`) + +* `_400GBASE_X_QSFPDD` (value: `"400gbase-x-qsfpdd"`) + +* `_40GBASE_KR4` (value: `"40gbase-kr4"`) + +* `_40GBASE_X_QSFPP` (value: `"40gbase-x-qsfpp"`) + +* `_4G` (value: `"4g"`) + +* `_4GFC_SFP` (value: `"4gfc-sfp"`) + +* `_50G_PON` (value: `"50g-pon"`) + +* `_50GBASE_KR` (value: `"50gbase-kr"`) + +* `_50GBASE_X_SFP28` (value: `"50gbase-x-sfp28"`) + +* `_50GBASE_X_SFP56` (value: `"50gbase-x-sfp56"`) + +* `_5G` (value: `"5g"`) + +* `_5GBASE_KR` (value: `"5gbase-kr"`) + +* `_5GBASE_T` (value: `"5gbase-t"`) + +* `_64GFC_QSFPP` (value: `"64gfc-qsfpp"`) + +* `_64GFC_SFPDD` (value: `"64gfc-sfpdd"`) + +* `_64GFC_SFPP` (value: `"64gfc-sfpp"`) + +* `_800GBASE_X_OSFP` (value: `"800gbase-x-osfp"`) + +* `_800GBASE_X_QSFPDD` (value: `"800gbase-x-qsfpdd"`) + +* `_8GFC_SFPP` (value: `"8gfc-sfpp"`) + +* `BPON` (value: `"bpon"`) + +* `BRIDGE` (value: `"bridge"`) + +* `CDMA` (value: `"cdma"`) + +* `CISCO_FLEXSTACK` (value: `"cisco-flexstack"`) + +* `CISCO_FLEXSTACK_PLUS` (value: `"cisco-flexstack-plus"`) + +* `CISCO_STACKWISE` (value: `"cisco-stackwise"`) + +* `CISCO_STACKWISE_160` (value: `"cisco-stackwise-160"`) + +* `CISCO_STACKWISE_1T` (value: `"cisco-stackwise-1t"`) + +* `CISCO_STACKWISE_320` (value: `"cisco-stackwise-320"`) + +* `CISCO_STACKWISE_480` (value: `"cisco-stackwise-480"`) + +* `CISCO_STACKWISE_80` (value: `"cisco-stackwise-80"`) + +* `CISCO_STACKWISE_PLUS` (value: `"cisco-stackwise-plus"`) + +* `DOCSIS` (value: `"docsis"`) + +* `E1` (value: `"e1"`) + +* `E3` (value: `"e3"`) + +* `EPON` (value: `"epon"`) + +* `EXTREME_SUMMITSTACK` (value: `"extreme-summitstack"`) + +* `EXTREME_SUMMITSTACK_128` (value: `"extreme-summitstack-128"`) + +* `EXTREME_SUMMITSTACK_256` (value: `"extreme-summitstack-256"`) + +* `EXTREME_SUMMITSTACK_512` (value: `"extreme-summitstack-512"`) + +* `GPON` (value: `"gpon"`) + +* `GSM` (value: `"gsm"`) + +* `IEEE802_11A` (value: `"ieee802.11a"`) + +* `IEEE802_11AC` (value: `"ieee802.11ac"`) + +* `IEEE802_11AD` (value: `"ieee802.11ad"`) + +* `IEEE802_11AX` (value: `"ieee802.11ax"`) + +* `IEEE802_11AY` (value: `"ieee802.11ay"`) + +* `IEEE802_11BE` (value: `"ieee802.11be"`) + +* `IEEE802_11G` (value: `"ieee802.11g"`) + +* `IEEE802_11N` (value: `"ieee802.11n"`) + +* `IEEE802_15_1` (value: `"ieee802.15.1"`) + +* `IEEE802_15_4` (value: `"ieee802.15.4"`) + +* `INFINIBAND_DDR` (value: `"infiniband-ddr"`) + +* `INFINIBAND_EDR` (value: `"infiniband-edr"`) + +* `INFINIBAND_FDR` (value: `"infiniband-fdr"`) + +* `INFINIBAND_FDR10` (value: `"infiniband-fdr10"`) + +* `INFINIBAND_HDR` (value: `"infiniband-hdr"`) + +* `INFINIBAND_NDR` (value: `"infiniband-ndr"`) + +* `INFINIBAND_QDR` (value: `"infiniband-qdr"`) + +* `INFINIBAND_SDR` (value: `"infiniband-sdr"`) + +* `INFINIBAND_XDR` (value: `"infiniband-xdr"`) + +* `JUNIPER_VCP` (value: `"juniper-vcp"`) + +* `LAG` (value: `"lag"`) + +* `LTE` (value: `"lte"`) + +* `NG_PON2` (value: `"ng-pon2"`) + +* `OTHER` (value: `"other"`) + +* `OTHER_WIRELESS` (value: `"other-wireless"`) + +* `SONET_OC12` (value: `"sonet-oc12"`) + +* `SONET_OC192` (value: `"sonet-oc192"`) + +* `SONET_OC1920` (value: `"sonet-oc1920"`) + +* `SONET_OC3` (value: `"sonet-oc3"`) + +* `SONET_OC3840` (value: `"sonet-oc3840"`) + +* `SONET_OC48` (value: `"sonet-oc48"`) + +* `SONET_OC768` (value: `"sonet-oc768"`) + +* `T1` (value: `"t1"`) + +* `T3` (value: `"t3"`) + +* `VIRTUAL` (value: `"virtual"`) + +* `XDSL` (value: `"xdsl"`) + +* `XG_PON` (value: `"xg-pon"`) + +* `XGS_PON` (value: `"xgs-pon"`) + + +[[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/docs/DcimInterfacesListDuplexIcParameterInner.md b/docs/DcimInterfacesListDuplexIcParameterInner.md new file mode 100644 index 000000000..111614f8e --- /dev/null +++ b/docs/DcimInterfacesListDuplexIcParameterInner.md @@ -0,0 +1,19 @@ +# DcimInterfacesListDuplexIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `NULL` (value: `"null"`) + +* `AUTO` (value: `"auto"`) + +* `FULL` (value: `"full"`) + +* `HALF` (value: `"half"`) + + +[[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/docs/DcimLocationsListStatusIcParameterInner.md b/docs/DcimLocationsListStatusIcParameterInner.md new file mode 100644 index 000000000..ee2505db1 --- /dev/null +++ b/docs/DcimLocationsListStatusIcParameterInner.md @@ -0,0 +1,19 @@ +# DcimLocationsListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `PLANNED` (value: `"planned"`) + +* `RETIRED` (value: `"retired"`) + +* `STAGING` (value: `"staging"`) + + +[[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/docs/DcimModulesListStatusIcParameterInner.md b/docs/DcimModulesListStatusIcParameterInner.md new file mode 100644 index 000000000..c0e9ac38d --- /dev/null +++ b/docs/DcimModulesListStatusIcParameterInner.md @@ -0,0 +1,21 @@ +# DcimModulesListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `FAILED` (value: `"failed"`) + +* `OFFLINE` (value: `"offline"`) + +* `PLANNED` (value: `"planned"`) + +* `STAGED` (value: `"staged"`) + + +[[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/docs/DcimPowerFeedsListStatusIcParameterInner.md b/docs/DcimPowerFeedsListStatusIcParameterInner.md new file mode 100644 index 000000000..85fc48c44 --- /dev/null +++ b/docs/DcimPowerFeedsListStatusIcParameterInner.md @@ -0,0 +1,17 @@ +# DcimPowerFeedsListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `FAILED` (value: `"failed"`) + +* `OFFLINE` (value: `"offline"`) + +* `PLANNED` (value: `"planned"`) + + +[[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/docs/DcimPowerOutletTemplatesListFeedLegIcParameterInner.md b/docs/DcimPowerOutletTemplatesListFeedLegIcParameterInner.md new file mode 100644 index 000000000..4813ee717 --- /dev/null +++ b/docs/DcimPowerOutletTemplatesListFeedLegIcParameterInner.md @@ -0,0 +1,17 @@ +# DcimPowerOutletTemplatesListFeedLegIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `A` (value: `"A"`) + +* `B` (value: `"B"`) + +* `C` (value: `"C"`) + + +[[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/docs/DcimPowerOutletsListTypeIcParameterInner.md b/docs/DcimPowerOutletsListTypeIcParameterInner.md new file mode 100644 index 000000000..c9e0ccce6 --- /dev/null +++ b/docs/DcimPowerOutletsListTypeIcParameterInner.md @@ -0,0 +1,207 @@ +# DcimPowerOutletsListTypeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `CS6360_C` (value: `"CS6360C"`) + +* `CS6364_C` (value: `"CS6364C"`) + +* `CS8164_C` (value: `"CS8164C"`) + +* `CS8264_C` (value: `"CS8264C"`) + +* `CS8364_C` (value: `"CS8364C"`) + +* `CS8464_C` (value: `"CS8464C"`) + +* `DC_TERMINAL` (value: `"dc-terminal"`) + +* `EATON_C39` (value: `"eaton-c39"`) + +* `HARDWIRED` (value: `"hardwired"`) + +* `HDOT_CX` (value: `"hdot-cx"`) + +* `IEC_60309_2P_E_4H` (value: `"iec-60309-2p-e-4h"`) + +* `IEC_60309_2P_E_6H` (value: `"iec-60309-2p-e-6h"`) + +* `IEC_60309_2P_E_9H` (value: `"iec-60309-2p-e-9h"`) + +* `IEC_60309_3P_E_4H` (value: `"iec-60309-3p-e-4h"`) + +* `IEC_60309_3P_E_6H` (value: `"iec-60309-3p-e-6h"`) + +* `IEC_60309_3P_E_9H` (value: `"iec-60309-3p-e-9h"`) + +* `IEC_60309_3P_N_E_4H` (value: `"iec-60309-3p-n-e-4h"`) + +* `IEC_60309_3P_N_E_6H` (value: `"iec-60309-3p-n-e-6h"`) + +* `IEC_60309_3P_N_E_9H` (value: `"iec-60309-3p-n-e-9h"`) + +* `IEC_60309_P_N_E_4H` (value: `"iec-60309-p-n-e-4h"`) + +* `IEC_60309_P_N_E_6H` (value: `"iec-60309-p-n-e-6h"`) + +* `IEC_60309_P_N_E_9H` (value: `"iec-60309-p-n-e-9h"`) + +* `IEC_60320_C13` (value: `"iec-60320-c13"`) + +* `IEC_60320_C15` (value: `"iec-60320-c15"`) + +* `IEC_60320_C19` (value: `"iec-60320-c19"`) + +* `IEC_60320_C21` (value: `"iec-60320-c21"`) + +* `IEC_60320_C5` (value: `"iec-60320-c5"`) + +* `IEC_60320_C7` (value: `"iec-60320-c7"`) + +* `IEC_60906_1` (value: `"iec-60906-1"`) + +* `ITA_E` (value: `"ita-e"`) + +* `ITA_F` (value: `"ita-f"`) + +* `ITA_G` (value: `"ita-g"`) + +* `ITA_H` (value: `"ita-h"`) + +* `ITA_I` (value: `"ita-i"`) + +* `ITA_J` (value: `"ita-j"`) + +* `ITA_K` (value: `"ita-k"`) + +* `ITA_L` (value: `"ita-l"`) + +* `ITA_M` (value: `"ita-m"`) + +* `ITA_MULTISTANDARD` (value: `"ita-multistandard"`) + +* `ITA_N` (value: `"ita-n"`) + +* `ITA_O` (value: `"ita-o"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"molex-micro-fit-1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"molex-micro-fit-2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"molex-micro-fit-2x4"`) + +* `NBR_14136_10A` (value: `"nbr-14136-10a"`) + +* `NBR_14136_20A` (value: `"nbr-14136-20a"`) + +* `NEMA_1_15R` (value: `"nema-1-15r"`) + +* `NEMA_10_30R` (value: `"nema-10-30r"`) + +* `NEMA_10_50R` (value: `"nema-10-50r"`) + +* `NEMA_14_20R` (value: `"nema-14-20r"`) + +* `NEMA_14_30R` (value: `"nema-14-30r"`) + +* `NEMA_14_50R` (value: `"nema-14-50r"`) + +* `NEMA_14_60R` (value: `"nema-14-60r"`) + +* `NEMA_15_15R` (value: `"nema-15-15r"`) + +* `NEMA_15_20R` (value: `"nema-15-20r"`) + +* `NEMA_15_30R` (value: `"nema-15-30r"`) + +* `NEMA_15_50R` (value: `"nema-15-50r"`) + +* `NEMA_15_60R` (value: `"nema-15-60r"`) + +* `NEMA_5_15R` (value: `"nema-5-15r"`) + +* `NEMA_5_20R` (value: `"nema-5-20r"`) + +* `NEMA_5_30R` (value: `"nema-5-30r"`) + +* `NEMA_5_50R` (value: `"nema-5-50r"`) + +* `NEMA_6_15R` (value: `"nema-6-15r"`) + +* `NEMA_6_20R` (value: `"nema-6-20r"`) + +* `NEMA_6_30R` (value: `"nema-6-30r"`) + +* `NEMA_6_50R` (value: `"nema-6-50r"`) + +* `NEMA_L1_15R` (value: `"nema-l1-15r"`) + +* `NEMA_L10_30R` (value: `"nema-l10-30r"`) + +* `NEMA_L14_20R` (value: `"nema-l14-20r"`) + +* `NEMA_L14_30R` (value: `"nema-l14-30r"`) + +* `NEMA_L14_50R` (value: `"nema-l14-50r"`) + +* `NEMA_L14_60R` (value: `"nema-l14-60r"`) + +* `NEMA_L15_20R` (value: `"nema-l15-20r"`) + +* `NEMA_L15_30R` (value: `"nema-l15-30r"`) + +* `NEMA_L15_50R` (value: `"nema-l15-50r"`) + +* `NEMA_L15_60R` (value: `"nema-l15-60r"`) + +* `NEMA_L21_20R` (value: `"nema-l21-20r"`) + +* `NEMA_L21_30R` (value: `"nema-l21-30r"`) + +* `NEMA_L22_20R` (value: `"nema-l22-20r"`) + +* `NEMA_L22_30R` (value: `"nema-l22-30r"`) + +* `NEMA_L5_15R` (value: `"nema-l5-15r"`) + +* `NEMA_L5_20R` (value: `"nema-l5-20r"`) + +* `NEMA_L5_30R` (value: `"nema-l5-30r"`) + +* `NEMA_L5_50R` (value: `"nema-l5-50r"`) + +* `NEMA_L6_15R` (value: `"nema-l6-15r"`) + +* `NEMA_L6_20R` (value: `"nema-l6-20r"`) + +* `NEMA_L6_30R` (value: `"nema-l6-30r"`) + +* `NEMA_L6_50R` (value: `"nema-l6-50r"`) + +* `NEUTRIK_POWERCON_20A` (value: `"neutrik-powercon-20a"`) + +* `NEUTRIK_POWERCON_32A` (value: `"neutrik-powercon-32a"`) + +* `NEUTRIK_POWERCON_TRUE1` (value: `"neutrik-powercon-true1"`) + +* `NEUTRIK_POWERCON_TRUE1_TOP` (value: `"neutrik-powercon-true1-top"`) + +* `OTHER` (value: `"other"`) + +* `SAF_D_GRID` (value: `"saf-d-grid"`) + +* `UBIQUITI_SMARTPOWER` (value: `"ubiquiti-smartpower"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + + +[[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/docs/DcimPowerPortsListTypeIcParameterInner.md b/docs/DcimPowerPortsListTypeIcParameterInner.md new file mode 100644 index 000000000..778128071 --- /dev/null +++ b/docs/DcimPowerPortsListTypeIcParameterInner.md @@ -0,0 +1,219 @@ +# DcimPowerPortsListTypeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `CS6361C` (value: `"cs6361c"`) + +* `CS6365C` (value: `"cs6365c"`) + +* `CS8165C` (value: `"cs8165c"`) + +* `CS8265C` (value: `"cs8265c"`) + +* `CS8365C` (value: `"cs8365c"`) + +* `CS8465C` (value: `"cs8465c"`) + +* `DC_TERMINAL` (value: `"dc-terminal"`) + +* `HARDWIRED` (value: `"hardwired"`) + +* `IEC_60309_2P_E_4H` (value: `"iec-60309-2p-e-4h"`) + +* `IEC_60309_2P_E_6H` (value: `"iec-60309-2p-e-6h"`) + +* `IEC_60309_2P_E_9H` (value: `"iec-60309-2p-e-9h"`) + +* `IEC_60309_3P_E_4H` (value: `"iec-60309-3p-e-4h"`) + +* `IEC_60309_3P_E_6H` (value: `"iec-60309-3p-e-6h"`) + +* `IEC_60309_3P_E_9H` (value: `"iec-60309-3p-e-9h"`) + +* `IEC_60309_3P_N_E_4H` (value: `"iec-60309-3p-n-e-4h"`) + +* `IEC_60309_3P_N_E_6H` (value: `"iec-60309-3p-n-e-6h"`) + +* `IEC_60309_3P_N_E_9H` (value: `"iec-60309-3p-n-e-9h"`) + +* `IEC_60309_P_N_E_4H` (value: `"iec-60309-p-n-e-4h"`) + +* `IEC_60309_P_N_E_6H` (value: `"iec-60309-p-n-e-6h"`) + +* `IEC_60309_P_N_E_9H` (value: `"iec-60309-p-n-e-9h"`) + +* `IEC_60320_C14` (value: `"iec-60320-c14"`) + +* `IEC_60320_C16` (value: `"iec-60320-c16"`) + +* `IEC_60320_C20` (value: `"iec-60320-c20"`) + +* `IEC_60320_C22` (value: `"iec-60320-c22"`) + +* `IEC_60320_C6` (value: `"iec-60320-c6"`) + +* `IEC_60320_C8` (value: `"iec-60320-c8"`) + +* `IEC_60906_1` (value: `"iec-60906-1"`) + +* `ITA_C` (value: `"ita-c"`) + +* `ITA_E` (value: `"ita-e"`) + +* `ITA_EF` (value: `"ita-ef"`) + +* `ITA_F` (value: `"ita-f"`) + +* `ITA_G` (value: `"ita-g"`) + +* `ITA_H` (value: `"ita-h"`) + +* `ITA_I` (value: `"ita-i"`) + +* `ITA_J` (value: `"ita-j"`) + +* `ITA_K` (value: `"ita-k"`) + +* `ITA_L` (value: `"ita-l"`) + +* `ITA_M` (value: `"ita-m"`) + +* `ITA_N` (value: `"ita-n"`) + +* `ITA_O` (value: `"ita-o"`) + +* `MOLEX_MICRO_FIT_1X2` (value: `"molex-micro-fit-1x2"`) + +* `MOLEX_MICRO_FIT_2X2` (value: `"molex-micro-fit-2x2"`) + +* `MOLEX_MICRO_FIT_2X4` (value: `"molex-micro-fit-2x4"`) + +* `NBR_14136_10A` (value: `"nbr-14136-10a"`) + +* `NBR_14136_20A` (value: `"nbr-14136-20a"`) + +* `NEMA_1_15P` (value: `"nema-1-15p"`) + +* `NEMA_10_30P` (value: `"nema-10-30p"`) + +* `NEMA_10_50P` (value: `"nema-10-50p"`) + +* `NEMA_14_20P` (value: `"nema-14-20p"`) + +* `NEMA_14_30P` (value: `"nema-14-30p"`) + +* `NEMA_14_50P` (value: `"nema-14-50p"`) + +* `NEMA_14_60P` (value: `"nema-14-60p"`) + +* `NEMA_15_15P` (value: `"nema-15-15p"`) + +* `NEMA_15_20P` (value: `"nema-15-20p"`) + +* `NEMA_15_30P` (value: `"nema-15-30p"`) + +* `NEMA_15_50P` (value: `"nema-15-50p"`) + +* `NEMA_15_60P` (value: `"nema-15-60p"`) + +* `NEMA_5_15P` (value: `"nema-5-15p"`) + +* `NEMA_5_20P` (value: `"nema-5-20p"`) + +* `NEMA_5_30P` (value: `"nema-5-30p"`) + +* `NEMA_5_50P` (value: `"nema-5-50p"`) + +* `NEMA_6_15P` (value: `"nema-6-15p"`) + +* `NEMA_6_20P` (value: `"nema-6-20p"`) + +* `NEMA_6_30P` (value: `"nema-6-30p"`) + +* `NEMA_6_50P` (value: `"nema-6-50p"`) + +* `NEMA_L1_15P` (value: `"nema-l1-15p"`) + +* `NEMA_L10_30P` (value: `"nema-l10-30p"`) + +* `NEMA_L14_20P` (value: `"nema-l14-20p"`) + +* `NEMA_L14_30P` (value: `"nema-l14-30p"`) + +* `NEMA_L14_50P` (value: `"nema-l14-50p"`) + +* `NEMA_L14_60P` (value: `"nema-l14-60p"`) + +* `NEMA_L15_20P` (value: `"nema-l15-20p"`) + +* `NEMA_L15_30P` (value: `"nema-l15-30p"`) + +* `NEMA_L15_50P` (value: `"nema-l15-50p"`) + +* `NEMA_L15_60P` (value: `"nema-l15-60p"`) + +* `NEMA_L21_20P` (value: `"nema-l21-20p"`) + +* `NEMA_L21_30P` (value: `"nema-l21-30p"`) + +* `NEMA_L22_20P` (value: `"nema-l22-20p"`) + +* `NEMA_L22_30P` (value: `"nema-l22-30p"`) + +* `NEMA_L5_15P` (value: `"nema-l5-15p"`) + +* `NEMA_L5_20P` (value: `"nema-l5-20p"`) + +* `NEMA_L5_30P` (value: `"nema-l5-30p"`) + +* `NEMA_L5_50P` (value: `"nema-l5-50p"`) + +* `NEMA_L6_15P` (value: `"nema-l6-15p"`) + +* `NEMA_L6_20P` (value: `"nema-l6-20p"`) + +* `NEMA_L6_30P` (value: `"nema-l6-30p"`) + +* `NEMA_L6_50P` (value: `"nema-l6-50p"`) + +* `NEUTRIK_POWERCON_20` (value: `"neutrik-powercon-20"`) + +* `NEUTRIK_POWERCON_32` (value: `"neutrik-powercon-32"`) + +* `NEUTRIK_POWERCON_TRUE1` (value: `"neutrik-powercon-true1"`) + +* `NEUTRIK_POWERCON_TRUE1_TOP` (value: `"neutrik-powercon-true1-top"`) + +* `OTHER` (value: `"other"`) + +* `SAF_D_GRID` (value: `"saf-d-grid"`) + +* `UBIQUITI_SMARTPOWER` (value: `"ubiquiti-smartpower"`) + +* `USB_3_B` (value: `"usb-3-b"`) + +* `USB_3_MICRO_B` (value: `"usb-3-micro-b"`) + +* `USB_A` (value: `"usb-a"`) + +* `USB_B` (value: `"usb-b"`) + +* `USB_C` (value: `"usb-c"`) + +* `USB_MICRO_A` (value: `"usb-micro-a"`) + +* `USB_MICRO_AB` (value: `"usb-micro-ab"`) + +* `USB_MICRO_B` (value: `"usb-micro-b"`) + +* `USB_MINI_A` (value: `"usb-mini-a"`) + +* `USB_MINI_B` (value: `"usb-mini-b"`) + + +[[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/docs/DcimRackTypesListFormFactorIcParameterInner.md b/docs/DcimRackTypesListFormFactorIcParameterInner.md new file mode 100644 index 000000000..29e50c4d0 --- /dev/null +++ b/docs/DcimRackTypesListFormFactorIcParameterInner.md @@ -0,0 +1,23 @@ +# DcimRackTypesListFormFactorIcParameterInner + +## Enum + + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + + +[[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/docs/DcimRackTypesListWidthIcParameterInner.md b/docs/DcimRackTypesListWidthIcParameterInner.md new file mode 100644 index 000000000..c9a49cf9d --- /dev/null +++ b/docs/DcimRackTypesListWidthIcParameterInner.md @@ -0,0 +1,17 @@ +# DcimRackTypesListWidthIcParameterInner + +## Enum + + +* `_10` (value: `10`) + +* `_19` (value: `19`) + +* `_21` (value: `21`) + +* `_23` (value: `23`) + + +[[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/docs/DcimRacksListFormFactorIcParameterInner.md b/docs/DcimRacksListFormFactorIcParameterInner.md new file mode 100644 index 000000000..706859287 --- /dev/null +++ b/docs/DcimRacksListFormFactorIcParameterInner.md @@ -0,0 +1,25 @@ +# DcimRacksListFormFactorIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `_2_POST_FRAME` (value: `"2-post-frame"`) + +* `_4_POST_CABINET` (value: `"4-post-cabinet"`) + +* `_4_POST_FRAME` (value: `"4-post-frame"`) + +* `WALL_CABINET` (value: `"wall-cabinet"`) + +* `WALL_CABINET_VERTICAL` (value: `"wall-cabinet-vertical"`) + +* `WALL_FRAME` (value: `"wall-frame"`) + +* `WALL_FRAME_VERTICAL` (value: `"wall-frame-vertical"`) + + +[[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/docs/DcimRacksListStatusIcParameterInner.md b/docs/DcimRacksListStatusIcParameterInner.md new file mode 100644 index 000000000..294d2dd48 --- /dev/null +++ b/docs/DcimRacksListStatusIcParameterInner.md @@ -0,0 +1,19 @@ +# DcimRacksListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `AVAILABLE` (value: `"available"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `PLANNED` (value: `"planned"`) + +* `RESERVED` (value: `"reserved"`) + + +[[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/docs/DcimVirtualDeviceContextsListStatusIcParameterInner.md b/docs/DcimVirtualDeviceContextsListStatusIcParameterInner.md new file mode 100644 index 000000000..56e26c21b --- /dev/null +++ b/docs/DcimVirtualDeviceContextsListStatusIcParameterInner.md @@ -0,0 +1,15 @@ +# DcimVirtualDeviceContextsListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `OFFLINE` (value: `"offline"`) + +* `PLANNED` (value: `"planned"`) + + +[[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/docs/Encryption1.md b/docs/Encryption1.md new file mode 100644 index 000000000..7c066768e --- /dev/null +++ b/docs/Encryption1.md @@ -0,0 +1,27 @@ +# Encryption1 + +## Enum + + +* `AES_128_CBC` (value: `"aes-128-cbc"`) + +* `AES_128_GCM` (value: `"aes-128-gcm"`) + +* `AES_192_CBC` (value: `"aes-192-cbc"`) + +* `AES_192_GCM` (value: `"aes-192-gcm"`) + +* `AES_256_CBC` (value: `"aes-256-cbc"`) + +* `AES_256_GCM` (value: `"aes-256-gcm"`) + +* `_3DES_CBC` (value: `"3des-cbc"`) + +* `DES_CBC` (value: `"des-cbc"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/ExtrasCustomFieldsListTypeIcParameterInner.md b/docs/ExtrasCustomFieldsListTypeIcParameterInner.md new file mode 100644 index 000000000..2e0d10c6a --- /dev/null +++ b/docs/ExtrasCustomFieldsListTypeIcParameterInner.md @@ -0,0 +1,35 @@ +# ExtrasCustomFieldsListTypeIcParameterInner + +## Enum + + +* `BOOLEAN` (value: `"boolean"`) + +* `DATE` (value: `"date"`) + +* `DATETIME` (value: `"datetime"`) + +* `DECIMAL` (value: `"decimal"`) + +* `INTEGER` (value: `"integer"`) + +* `JSON` (value: `"json"`) + +* `LONGTEXT` (value: `"longtext"`) + +* `MULTIOBJECT` (value: `"multiobject"`) + +* `MULTISELECT` (value: `"multiselect"`) + +* `OBJECT` (value: `"object"`) + +* `SELECT` (value: `"select"`) + +* `TEXT` (value: `"text"`) + +* `URL` (value: `"url"`) + + +[[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/docs/ExtrasEventRulesListActionTypeIcParameterInner.md b/docs/ExtrasEventRulesListActionTypeIcParameterInner.md new file mode 100644 index 000000000..08d8d8235 --- /dev/null +++ b/docs/ExtrasEventRulesListActionTypeIcParameterInner.md @@ -0,0 +1,15 @@ +# ExtrasEventRulesListActionTypeIcParameterInner + +## Enum + + +* `NOTIFICATION` (value: `"notification"`) + +* `SCRIPT` (value: `"script"`) + +* `WEBHOOK` (value: `"webhook"`) + + +[[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/docs/ExtrasJournalEntriesListKindIcParameterInner.md b/docs/ExtrasJournalEntriesListKindIcParameterInner.md new file mode 100644 index 000000000..71f448cf6 --- /dev/null +++ b/docs/ExtrasJournalEntriesListKindIcParameterInner.md @@ -0,0 +1,17 @@ +# ExtrasJournalEntriesListKindIcParameterInner + +## Enum + + +* `DANGER` (value: `"danger"`) + +* `INFO` (value: `"info"`) + +* `SUCCESS` (value: `"success"`) + +* `WARNING` (value: `"warning"`) + + +[[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/docs/ExtrasWebhooksListHttpMethodIcParameterInner.md b/docs/ExtrasWebhooksListHttpMethodIcParameterInner.md new file mode 100644 index 000000000..99fb00173 --- /dev/null +++ b/docs/ExtrasWebhooksListHttpMethodIcParameterInner.md @@ -0,0 +1,19 @@ +# ExtrasWebhooksListHttpMethodIcParameterInner + +## Enum + + +* `DELETE` (value: `"DELETE"`) + +* `GET` (value: `"GET"`) + +* `PATCH` (value: `"PATCH"`) + +* `POST` (value: `"POST"`) + +* `PUT` (value: `"PUT"`) + + +[[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/docs/IpamFhrpGroupsListProtocolIcParameterInner.md b/docs/IpamFhrpGroupsListProtocolIcParameterInner.md new file mode 100644 index 000000000..e46d97bb7 --- /dev/null +++ b/docs/IpamFhrpGroupsListProtocolIcParameterInner.md @@ -0,0 +1,23 @@ +# IpamFhrpGroupsListProtocolIcParameterInner + +## Enum + + +* `CARP` (value: `"carp"`) + +* `CLUSTERXL` (value: `"clusterxl"`) + +* `GLBP` (value: `"glbp"`) + +* `HSRP` (value: `"hsrp"`) + +* `OTHER` (value: `"other"`) + +* `VRRP2` (value: `"vrrp2"`) + +* `VRRP3` (value: `"vrrp3"`) + + +[[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/docs/IpamIpAddressesListRoleIcParameterInner.md b/docs/IpamIpAddressesListRoleIcParameterInner.md new file mode 100644 index 000000000..2340e594b --- /dev/null +++ b/docs/IpamIpAddressesListRoleIcParameterInner.md @@ -0,0 +1,27 @@ +# IpamIpAddressesListRoleIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `ANYCAST` (value: `"anycast"`) + +* `CARP` (value: `"carp"`) + +* `GLBP` (value: `"glbp"`) + +* `HSRP` (value: `"hsrp"`) + +* `LOOPBACK` (value: `"loopback"`) + +* `SECONDARY` (value: `"secondary"`) + +* `VIP` (value: `"vip"`) + +* `VRRP` (value: `"vrrp"`) + + +[[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/docs/IpamIpAddressesListStatusIcParameterInner.md b/docs/IpamIpAddressesListStatusIcParameterInner.md new file mode 100644 index 000000000..2efeeb68a --- /dev/null +++ b/docs/IpamIpAddressesListStatusIcParameterInner.md @@ -0,0 +1,19 @@ +# IpamIpAddressesListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `DHCP` (value: `"dhcp"`) + +* `RESERVED` (value: `"reserved"`) + +* `SLAAC` (value: `"slaac"`) + + +[[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/docs/IpamIpRangesListStatusIcParameterInner.md b/docs/IpamIpRangesListStatusIcParameterInner.md new file mode 100644 index 000000000..cfc19b612 --- /dev/null +++ b/docs/IpamIpRangesListStatusIcParameterInner.md @@ -0,0 +1,15 @@ +# IpamIpRangesListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `RESERVED` (value: `"reserved"`) + + +[[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/docs/IpamPrefixesListStatusIcParameterInner.md b/docs/IpamPrefixesListStatusIcParameterInner.md new file mode 100644 index 000000000..3f5bdf7f8 --- /dev/null +++ b/docs/IpamPrefixesListStatusIcParameterInner.md @@ -0,0 +1,17 @@ +# IpamPrefixesListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `CONTAINER` (value: `"container"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `RESERVED` (value: `"reserved"`) + + +[[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/docs/VirtualizationClustersListStatusIcParameterInner.md b/docs/VirtualizationClustersListStatusIcParameterInner.md new file mode 100644 index 000000000..97f28ad23 --- /dev/null +++ b/docs/VirtualizationClustersListStatusIcParameterInner.md @@ -0,0 +1,19 @@ +# VirtualizationClustersListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DECOMMISSIONING` (value: `"decommissioning"`) + +* `OFFLINE` (value: `"offline"`) + +* `PLANNED` (value: `"planned"`) + +* `STAGING` (value: `"staging"`) + + +[[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/docs/VpnIkePoliciesListModeIcParameterInner.md b/docs/VpnIkePoliciesListModeIcParameterInner.md new file mode 100644 index 000000000..635f9499c --- /dev/null +++ b/docs/VpnIkePoliciesListModeIcParameterInner.md @@ -0,0 +1,15 @@ +# VpnIkePoliciesListModeIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `AGGRESSIVE` (value: `"aggressive"`) + +* `MAIN` (value: `"main"`) + + +[[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/docs/VpnIkePoliciesListVersionIcParameterInner.md b/docs/VpnIkePoliciesListVersionIcParameterInner.md new file mode 100644 index 000000000..8b6c05c55 --- /dev/null +++ b/docs/VpnIkePoliciesListVersionIcParameterInner.md @@ -0,0 +1,13 @@ +# VpnIkePoliciesListVersionIcParameterInner + +## Enum + + +* `_1` (value: `1`) + +* `_2` (value: `2`) + + +[[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/docs/VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md b/docs/VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md new file mode 100644 index 000000000..c970a7767 --- /dev/null +++ b/docs/VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner.md @@ -0,0 +1,21 @@ +# VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + +## Enum + + +* `EMPTY` (value: `""`) + +* `HMAC_MD5` (value: `"hmac-md5"`) + +* `HMAC_SHA1` (value: `"hmac-sha1"`) + +* `HMAC_SHA256` (value: `"hmac-sha256"`) + +* `HMAC_SHA384` (value: `"hmac-sha384"`) + +* `HMAC_SHA512` (value: `"hmac-sha512"`) + + +[[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/docs/VpnIkeProposalsListAuthenticationMethodIcParameterInner.md b/docs/VpnIkeProposalsListAuthenticationMethodIcParameterInner.md new file mode 100644 index 000000000..cb263678c --- /dev/null +++ b/docs/VpnIkeProposalsListAuthenticationMethodIcParameterInner.md @@ -0,0 +1,17 @@ +# VpnIkeProposalsListAuthenticationMethodIcParameterInner + +## Enum + + +* `CERTIFICATES` (value: `"certificates"`) + +* `DSA_SIGNATURES` (value: `"dsa-signatures"`) + +* `PRESHARED_KEYS` (value: `"preshared-keys"`) + +* `RSA_SIGNATURES` (value: `"rsa-signatures"`) + + +[[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/docs/VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md b/docs/VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md new file mode 100644 index 000000000..2b81715a0 --- /dev/null +++ b/docs/VpnIkeProposalsListEncryptionAlgorithmIcParameterInner.md @@ -0,0 +1,25 @@ +# VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + +## Enum + + +* `_3DES_CBC` (value: `"3des-cbc"`) + +* `AES_128_CBC` (value: `"aes-128-cbc"`) + +* `AES_128_GCM` (value: `"aes-128-gcm"`) + +* `AES_192_CBC` (value: `"aes-192-cbc"`) + +* `AES_192_GCM` (value: `"aes-192-gcm"`) + +* `AES_256_CBC` (value: `"aes-256-cbc"`) + +* `AES_256_GCM` (value: `"aes-256-gcm"`) + +* `DES_CBC` (value: `"des-cbc"`) + + +[[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/docs/VpnIkeProposalsListGroupIcParameterInner.md b/docs/VpnIkeProposalsListGroupIcParameterInner.md new file mode 100644 index 000000000..17aa6090c --- /dev/null +++ b/docs/VpnIkeProposalsListGroupIcParameterInner.md @@ -0,0 +1,57 @@ +# VpnIkeProposalsListGroupIcParameterInner + +## Enum + + +* `_1` (value: `1`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_2` (value: `2`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + +* `_22` (value: `22`) + +* `_23` (value: `23`) + +* `_24` (value: `24`) + +* `_25` (value: `25`) + +* `_26` (value: `26`) + +* `_27` (value: `27`) + +* `_28` (value: `28`) + +* `_29` (value: `29`) + +* `_30` (value: `30`) + +* `_31` (value: `31`) + +* `_32` (value: `32`) + +* `_33` (value: `33`) + +* `_34` (value: `34`) + +* `_5` (value: `5`) + + +[[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/docs/VpnIpsecPoliciesListPfsGroupIcParameterInner.md b/docs/VpnIpsecPoliciesListPfsGroupIcParameterInner.md new file mode 100644 index 000000000..ff4c88eb1 --- /dev/null +++ b/docs/VpnIpsecPoliciesListPfsGroupIcParameterInner.md @@ -0,0 +1,59 @@ +# VpnIpsecPoliciesListPfsGroupIcParameterInner + +## Enum + + +* `_1` (value: `1`) + +* `_14` (value: `14`) + +* `_15` (value: `15`) + +* `_16` (value: `16`) + +* `_17` (value: `17`) + +* `_18` (value: `18`) + +* `_19` (value: `19`) + +* `_2` (value: `2`) + +* `_20` (value: `20`) + +* `_21` (value: `21`) + +* `_22` (value: `22`) + +* `_23` (value: `23`) + +* `_24` (value: `24`) + +* `_25` (value: `25`) + +* `_26` (value: `26`) + +* `_27` (value: `27`) + +* `_28` (value: `28`) + +* `_29` (value: `29`) + +* `_30` (value: `30`) + +* `_31` (value: `31`) + +* `_32` (value: `32`) + +* `_33` (value: `33`) + +* `_34` (value: `34`) + +* `_5` (value: `5`) + +* `_null` (value: `null`) + + +[[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/docs/VpnIpsecProfilesListModeIcParameterInner.md b/docs/VpnIpsecProfilesListModeIcParameterInner.md new file mode 100644 index 000000000..731f713e9 --- /dev/null +++ b/docs/VpnIpsecProfilesListModeIcParameterInner.md @@ -0,0 +1,13 @@ +# VpnIpsecProfilesListModeIcParameterInner + +## Enum + + +* `AH` (value: `"ah"`) + +* `ESP` (value: `"esp"`) + + +[[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/docs/VpnL2vpnsListTypeIcParameterInner.md b/docs/VpnL2vpnsListTypeIcParameterInner.md new file mode 100644 index 000000000..aaec1f0da --- /dev/null +++ b/docs/VpnL2vpnsListTypeIcParameterInner.md @@ -0,0 +1,33 @@ +# VpnL2vpnsListTypeIcParameterInner + +## Enum + + +* `EP_LAN` (value: `"ep-lan"`) + +* `EP_TREE` (value: `"ep-tree"`) + +* `EPL` (value: `"epl"`) + +* `EVP_LAN` (value: `"evp-lan"`) + +* `EVP_TREE` (value: `"evp-tree"`) + +* `EVPL` (value: `"evpl"`) + +* `MPLS_EVPN` (value: `"mpls-evpn"`) + +* `PBB_EVPN` (value: `"pbb-evpn"`) + +* `VPLS` (value: `"vpls"`) + +* `VPWS` (value: `"vpws"`) + +* `VXLAN` (value: `"vxlan"`) + +* `VXLAN_EVPN` (value: `"vxlan-evpn"`) + + +[[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/docs/VpnTunnelTerminationsListRoleIcParameterInner.md b/docs/VpnTunnelTerminationsListRoleIcParameterInner.md new file mode 100644 index 000000000..8c788feb1 --- /dev/null +++ b/docs/VpnTunnelTerminationsListRoleIcParameterInner.md @@ -0,0 +1,15 @@ +# VpnTunnelTerminationsListRoleIcParameterInner + +## Enum + + +* `HUB` (value: `"hub"`) + +* `PEER` (value: `"peer"`) + +* `SPOKE` (value: `"spoke"`) + + +[[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/docs/VpnTunnelsListEncapsulationIcParameterInner.md b/docs/VpnTunnelsListEncapsulationIcParameterInner.md new file mode 100644 index 000000000..2b1d22f93 --- /dev/null +++ b/docs/VpnTunnelsListEncapsulationIcParameterInner.md @@ -0,0 +1,17 @@ +# VpnTunnelsListEncapsulationIcParameterInner + +## Enum + + +* `GRE` (value: `"gre"`) + +* `IP_IP` (value: `"ip-ip"`) + +* `IPSEC_TRANSPORT` (value: `"ipsec-transport"`) + +* `IPSEC_TUNNEL` (value: `"ipsec-tunnel"`) + + +[[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/docs/VpnTunnelsListStatusIcParameterInner.md b/docs/VpnTunnelsListStatusIcParameterInner.md new file mode 100644 index 000000000..4f004d956 --- /dev/null +++ b/docs/VpnTunnelsListStatusIcParameterInner.md @@ -0,0 +1,15 @@ +# VpnTunnelsListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DISABLED` (value: `"disabled"`) + +* `PLANNED` (value: `"planned"`) + + +[[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/docs/WirelessChannel1.md b/docs/WirelessChannel1.md new file mode 100644 index 000000000..aa593f32e --- /dev/null +++ b/docs/WirelessChannel1.md @@ -0,0 +1,405 @@ +# WirelessChannel1 + +## Enum + + +* `_2_4G_1_2412_22` (value: `"2.4g-1-2412-22"`) + +* `_2_4G_2_2417_22` (value: `"2.4g-2-2417-22"`) + +* `_2_4G_3_2422_22` (value: `"2.4g-3-2422-22"`) + +* `_2_4G_4_2427_22` (value: `"2.4g-4-2427-22"`) + +* `_2_4G_5_2432_22` (value: `"2.4g-5-2432-22"`) + +* `_2_4G_6_2437_22` (value: `"2.4g-6-2437-22"`) + +* `_2_4G_7_2442_22` (value: `"2.4g-7-2442-22"`) + +* `_2_4G_8_2447_22` (value: `"2.4g-8-2447-22"`) + +* `_2_4G_9_2452_22` (value: `"2.4g-9-2452-22"`) + +* `_2_4G_10_2457_22` (value: `"2.4g-10-2457-22"`) + +* `_2_4G_11_2462_22` (value: `"2.4g-11-2462-22"`) + +* `_2_4G_12_2467_22` (value: `"2.4g-12-2467-22"`) + +* `_2_4G_13_2472_22` (value: `"2.4g-13-2472-22"`) + +* `_5G_32_5160_20` (value: `"5g-32-5160-20"`) + +* `_5G_34_5170_40` (value: `"5g-34-5170-40"`) + +* `_5G_36_5180_20` (value: `"5g-36-5180-20"`) + +* `_5G_38_5190_40` (value: `"5g-38-5190-40"`) + +* `_5G_40_5200_20` (value: `"5g-40-5200-20"`) + +* `_5G_42_5210_80` (value: `"5g-42-5210-80"`) + +* `_5G_44_5220_20` (value: `"5g-44-5220-20"`) + +* `_5G_46_5230_40` (value: `"5g-46-5230-40"`) + +* `_5G_48_5240_20` (value: `"5g-48-5240-20"`) + +* `_5G_50_5250_160` (value: `"5g-50-5250-160"`) + +* `_5G_52_5260_20` (value: `"5g-52-5260-20"`) + +* `_5G_54_5270_40` (value: `"5g-54-5270-40"`) + +* `_5G_56_5280_20` (value: `"5g-56-5280-20"`) + +* `_5G_58_5290_80` (value: `"5g-58-5290-80"`) + +* `_5G_60_5300_20` (value: `"5g-60-5300-20"`) + +* `_5G_62_5310_40` (value: `"5g-62-5310-40"`) + +* `_5G_64_5320_20` (value: `"5g-64-5320-20"`) + +* `_5G_100_5500_20` (value: `"5g-100-5500-20"`) + +* `_5G_102_5510_40` (value: `"5g-102-5510-40"`) + +* `_5G_104_5520_20` (value: `"5g-104-5520-20"`) + +* `_5G_106_5530_80` (value: `"5g-106-5530-80"`) + +* `_5G_108_5540_20` (value: `"5g-108-5540-20"`) + +* `_5G_110_5550_40` (value: `"5g-110-5550-40"`) + +* `_5G_112_5560_20` (value: `"5g-112-5560-20"`) + +* `_5G_114_5570_160` (value: `"5g-114-5570-160"`) + +* `_5G_116_5580_20` (value: `"5g-116-5580-20"`) + +* `_5G_118_5590_40` (value: `"5g-118-5590-40"`) + +* `_5G_120_5600_20` (value: `"5g-120-5600-20"`) + +* `_5G_122_5610_80` (value: `"5g-122-5610-80"`) + +* `_5G_124_5620_20` (value: `"5g-124-5620-20"`) + +* `_5G_126_5630_40` (value: `"5g-126-5630-40"`) + +* `_5G_128_5640_20` (value: `"5g-128-5640-20"`) + +* `_5G_132_5660_20` (value: `"5g-132-5660-20"`) + +* `_5G_134_5670_40` (value: `"5g-134-5670-40"`) + +* `_5G_136_5680_20` (value: `"5g-136-5680-20"`) + +* `_5G_138_5690_80` (value: `"5g-138-5690-80"`) + +* `_5G_140_5700_20` (value: `"5g-140-5700-20"`) + +* `_5G_142_5710_40` (value: `"5g-142-5710-40"`) + +* `_5G_144_5720_20` (value: `"5g-144-5720-20"`) + +* `_5G_149_5745_20` (value: `"5g-149-5745-20"`) + +* `_5G_151_5755_40` (value: `"5g-151-5755-40"`) + +* `_5G_153_5765_20` (value: `"5g-153-5765-20"`) + +* `_5G_155_5775_80` (value: `"5g-155-5775-80"`) + +* `_5G_157_5785_20` (value: `"5g-157-5785-20"`) + +* `_5G_159_5795_40` (value: `"5g-159-5795-40"`) + +* `_5G_161_5805_20` (value: `"5g-161-5805-20"`) + +* `_5G_163_5815_160` (value: `"5g-163-5815-160"`) + +* `_5G_165_5825_20` (value: `"5g-165-5825-20"`) + +* `_5G_167_5835_40` (value: `"5g-167-5835-40"`) + +* `_5G_169_5845_20` (value: `"5g-169-5845-20"`) + +* `_5G_171_5855_80` (value: `"5g-171-5855-80"`) + +* `_5G_173_5865_20` (value: `"5g-173-5865-20"`) + +* `_5G_175_5875_40` (value: `"5g-175-5875-40"`) + +* `_5G_177_5885_20` (value: `"5g-177-5885-20"`) + +* `_6G_1_5955_20` (value: `"6g-1-5955-20"`) + +* `_6G_3_5965_40` (value: `"6g-3-5965-40"`) + +* `_6G_5_5975_20` (value: `"6g-5-5975-20"`) + +* `_6G_7_5985_80` (value: `"6g-7-5985-80"`) + +* `_6G_9_5995_20` (value: `"6g-9-5995-20"`) + +* `_6G_11_6005_40` (value: `"6g-11-6005-40"`) + +* `_6G_13_6015_20` (value: `"6g-13-6015-20"`) + +* `_6G_15_6025_160` (value: `"6g-15-6025-160"`) + +* `_6G_17_6035_20` (value: `"6g-17-6035-20"`) + +* `_6G_19_6045_40` (value: `"6g-19-6045-40"`) + +* `_6G_21_6055_20` (value: `"6g-21-6055-20"`) + +* `_6G_23_6065_80` (value: `"6g-23-6065-80"`) + +* `_6G_25_6075_20` (value: `"6g-25-6075-20"`) + +* `_6G_27_6085_40` (value: `"6g-27-6085-40"`) + +* `_6G_29_6095_20` (value: `"6g-29-6095-20"`) + +* `_6G_31_6105_320` (value: `"6g-31-6105-320"`) + +* `_6G_33_6115_20` (value: `"6g-33-6115-20"`) + +* `_6G_35_6125_40` (value: `"6g-35-6125-40"`) + +* `_6G_37_6135_20` (value: `"6g-37-6135-20"`) + +* `_6G_39_6145_80` (value: `"6g-39-6145-80"`) + +* `_6G_41_6155_20` (value: `"6g-41-6155-20"`) + +* `_6G_43_6165_40` (value: `"6g-43-6165-40"`) + +* `_6G_45_6175_20` (value: `"6g-45-6175-20"`) + +* `_6G_47_6185_160` (value: `"6g-47-6185-160"`) + +* `_6G_49_6195_20` (value: `"6g-49-6195-20"`) + +* `_6G_51_6205_40` (value: `"6g-51-6205-40"`) + +* `_6G_53_6215_20` (value: `"6g-53-6215-20"`) + +* `_6G_55_6225_80` (value: `"6g-55-6225-80"`) + +* `_6G_57_6235_20` (value: `"6g-57-6235-20"`) + +* `_6G_59_6245_40` (value: `"6g-59-6245-40"`) + +* `_6G_61_6255_20` (value: `"6g-61-6255-20"`) + +* `_6G_65_6275_20` (value: `"6g-65-6275-20"`) + +* `_6G_67_6285_40` (value: `"6g-67-6285-40"`) + +* `_6G_69_6295_20` (value: `"6g-69-6295-20"`) + +* `_6G_71_6305_80` (value: `"6g-71-6305-80"`) + +* `_6G_73_6315_20` (value: `"6g-73-6315-20"`) + +* `_6G_75_6325_40` (value: `"6g-75-6325-40"`) + +* `_6G_77_6335_20` (value: `"6g-77-6335-20"`) + +* `_6G_79_6345_160` (value: `"6g-79-6345-160"`) + +* `_6G_81_6355_20` (value: `"6g-81-6355-20"`) + +* `_6G_83_6365_40` (value: `"6g-83-6365-40"`) + +* `_6G_85_6375_20` (value: `"6g-85-6375-20"`) + +* `_6G_87_6385_80` (value: `"6g-87-6385-80"`) + +* `_6G_89_6395_20` (value: `"6g-89-6395-20"`) + +* `_6G_91_6405_40` (value: `"6g-91-6405-40"`) + +* `_6G_93_6415_20` (value: `"6g-93-6415-20"`) + +* `_6G_95_6425_320` (value: `"6g-95-6425-320"`) + +* `_6G_97_6435_20` (value: `"6g-97-6435-20"`) + +* `_6G_99_6445_40` (value: `"6g-99-6445-40"`) + +* `_6G_101_6455_20` (value: `"6g-101-6455-20"`) + +* `_6G_103_6465_80` (value: `"6g-103-6465-80"`) + +* `_6G_105_6475_20` (value: `"6g-105-6475-20"`) + +* `_6G_107_6485_40` (value: `"6g-107-6485-40"`) + +* `_6G_109_6495_20` (value: `"6g-109-6495-20"`) + +* `_6G_111_6505_160` (value: `"6g-111-6505-160"`) + +* `_6G_113_6515_20` (value: `"6g-113-6515-20"`) + +* `_6G_115_6525_40` (value: `"6g-115-6525-40"`) + +* `_6G_117_6535_20` (value: `"6g-117-6535-20"`) + +* `_6G_119_6545_80` (value: `"6g-119-6545-80"`) + +* `_6G_121_6555_20` (value: `"6g-121-6555-20"`) + +* `_6G_123_6565_40` (value: `"6g-123-6565-40"`) + +* `_6G_125_6575_20` (value: `"6g-125-6575-20"`) + +* `_6G_129_6595_20` (value: `"6g-129-6595-20"`) + +* `_6G_131_6605_40` (value: `"6g-131-6605-40"`) + +* `_6G_133_6615_20` (value: `"6g-133-6615-20"`) + +* `_6G_135_6625_80` (value: `"6g-135-6625-80"`) + +* `_6G_137_6635_20` (value: `"6g-137-6635-20"`) + +* `_6G_139_6645_40` (value: `"6g-139-6645-40"`) + +* `_6G_141_6655_20` (value: `"6g-141-6655-20"`) + +* `_6G_143_6665_160` (value: `"6g-143-6665-160"`) + +* `_6G_145_6675_20` (value: `"6g-145-6675-20"`) + +* `_6G_147_6685_40` (value: `"6g-147-6685-40"`) + +* `_6G_149_6695_20` (value: `"6g-149-6695-20"`) + +* `_6G_151_6705_80` (value: `"6g-151-6705-80"`) + +* `_6G_153_6715_20` (value: `"6g-153-6715-20"`) + +* `_6G_155_6725_40` (value: `"6g-155-6725-40"`) + +* `_6G_157_6735_20` (value: `"6g-157-6735-20"`) + +* `_6G_159_6745_320` (value: `"6g-159-6745-320"`) + +* `_6G_161_6755_20` (value: `"6g-161-6755-20"`) + +* `_6G_163_6765_40` (value: `"6g-163-6765-40"`) + +* `_6G_165_6775_20` (value: `"6g-165-6775-20"`) + +* `_6G_167_6785_80` (value: `"6g-167-6785-80"`) + +* `_6G_169_6795_20` (value: `"6g-169-6795-20"`) + +* `_6G_171_6805_40` (value: `"6g-171-6805-40"`) + +* `_6G_173_6815_20` (value: `"6g-173-6815-20"`) + +* `_6G_175_6825_160` (value: `"6g-175-6825-160"`) + +* `_6G_177_6835_20` (value: `"6g-177-6835-20"`) + +* `_6G_179_6845_40` (value: `"6g-179-6845-40"`) + +* `_6G_181_6855_20` (value: `"6g-181-6855-20"`) + +* `_6G_183_6865_80` (value: `"6g-183-6865-80"`) + +* `_6G_185_6875_20` (value: `"6g-185-6875-20"`) + +* `_6G_187_6885_40` (value: `"6g-187-6885-40"`) + +* `_6G_189_6895_20` (value: `"6g-189-6895-20"`) + +* `_6G_193_6915_20` (value: `"6g-193-6915-20"`) + +* `_6G_195_6925_40` (value: `"6g-195-6925-40"`) + +* `_6G_197_6935_20` (value: `"6g-197-6935-20"`) + +* `_6G_199_6945_80` (value: `"6g-199-6945-80"`) + +* `_6G_201_6955_20` (value: `"6g-201-6955-20"`) + +* `_6G_203_6965_40` (value: `"6g-203-6965-40"`) + +* `_6G_205_6975_20` (value: `"6g-205-6975-20"`) + +* `_6G_207_6985_160` (value: `"6g-207-6985-160"`) + +* `_6G_209_6995_20` (value: `"6g-209-6995-20"`) + +* `_6G_211_7005_40` (value: `"6g-211-7005-40"`) + +* `_6G_213_7015_20` (value: `"6g-213-7015-20"`) + +* `_6G_215_7025_80` (value: `"6g-215-7025-80"`) + +* `_6G_217_7035_20` (value: `"6g-217-7035-20"`) + +* `_6G_219_7045_40` (value: `"6g-219-7045-40"`) + +* `_6G_221_7055_20` (value: `"6g-221-7055-20"`) + +* `_6G_225_7075_20` (value: `"6g-225-7075-20"`) + +* `_6G_227_7085_40` (value: `"6g-227-7085-40"`) + +* `_6G_229_7095_20` (value: `"6g-229-7095-20"`) + +* `_6G_233_7115_20` (value: `"6g-233-7115-20"`) + +* `_60G_1_58320_2160` (value: `"60g-1-58320-2160"`) + +* `_60G_2_60480_2160` (value: `"60g-2-60480-2160"`) + +* `_60G_3_62640_2160` (value: `"60g-3-62640-2160"`) + +* `_60G_4_64800_2160` (value: `"60g-4-64800-2160"`) + +* `_60G_5_66960_2160` (value: `"60g-5-66960-2160"`) + +* `_60G_6_69120_2160` (value: `"60g-6-69120-2160"`) + +* `_60G_9_59400_4320` (value: `"60g-9-59400-4320"`) + +* `_60G_10_61560_4320` (value: `"60g-10-61560-4320"`) + +* `_60G_11_63720_4320` (value: `"60g-11-63720-4320"`) + +* `_60G_12_65880_4320` (value: `"60g-12-65880-4320"`) + +* `_60G_13_68040_4320` (value: `"60g-13-68040-4320"`) + +* `_60G_17_60480_6480` (value: `"60g-17-60480-6480"`) + +* `_60G_18_62640_6480` (value: `"60g-18-62640-6480"`) + +* `_60G_19_64800_6480` (value: `"60g-19-64800-6480"`) + +* `_60G_20_66960_6480` (value: `"60g-20-66960-6480"`) + +* `_60G_25_61560_6480` (value: `"60g-25-61560-6480"`) + +* `_60G_26_63720_6480` (value: `"60g-26-63720-6480"`) + +* `_60G_27_65880_6480` (value: `"60g-27-65880-6480"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WirelessRole1.md b/docs/WirelessRole1.md new file mode 100644 index 000000000..c5b8e4513 --- /dev/null +++ b/docs/WirelessRole1.md @@ -0,0 +1,15 @@ +# WirelessRole1 + +## Enum + + +* `AP` (value: `"ap"`) + +* `STATION` (value: `"station"`) + +* `EMPTY` (value: `""`) + + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/WirelessWirelessLansListStatusIcParameterInner.md b/docs/WirelessWirelessLansListStatusIcParameterInner.md new file mode 100644 index 000000000..0fd09ea63 --- /dev/null +++ b/docs/WirelessWirelessLansListStatusIcParameterInner.md @@ -0,0 +1,17 @@ +# WirelessWirelessLansListStatusIcParameterInner + +## Enum + + +* `ACTIVE` (value: `"active"`) + +* `DEPRECATED` (value: `"deprecated"`) + +* `DISABLED` (value: `"disabled"`) + +* `RESERVED` (value: `"reserved"`) + + +[[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/model_authentication_1.go b/model_authentication_1.go new file mode 100644 index 000000000..32e048cdd --- /dev/null +++ b/model_authentication_1.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// Authentication1 * `hmac-sha1` - SHA-1 HMAC * `hmac-sha256` - SHA-256 HMAC * `hmac-sha384` - SHA-384 HMAC * `hmac-sha512` - SHA-512 HMAC * `hmac-md5` - MD5 HMAC +type Authentication1 string + +// List of Authentication_1 +const ( + AUTHENTICATION1_HMAC_SHA1 Authentication1 = "hmac-sha1" + AUTHENTICATION1_HMAC_SHA256 Authentication1 = "hmac-sha256" + AUTHENTICATION1_HMAC_SHA384 Authentication1 = "hmac-sha384" + AUTHENTICATION1_HMAC_SHA512 Authentication1 = "hmac-sha512" + AUTHENTICATION1_HMAC_MD5 Authentication1 = "hmac-md5" + AUTHENTICATION1_EMPTY Authentication1 = "" +) + +// All allowed values of Authentication1 enum +var AllowedAuthentication1EnumValues = []Authentication1{ + "hmac-sha1", + "hmac-sha256", + "hmac-sha384", + "hmac-sha512", + "hmac-md5", + "", +} + +func (v *Authentication1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Authentication1(value) + for _, existing := range AllowedAuthentication1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Authentication1", value) +} + +// NewAuthentication1FromValue returns a pointer to a valid Authentication1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAuthentication1FromValue(v string) (*Authentication1, error) { + ev := Authentication1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Authentication1: valid values are %v", v, AllowedAuthentication1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Authentication1) IsValid() bool { + for _, existing := range AllowedAuthentication1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Authentication_1 value +func (v Authentication1) Ptr() *Authentication1 { + return &v +} + +type NullableAuthentication1 struct { + value *Authentication1 + isSet bool +} + +func (v NullableAuthentication1) Get() *Authentication1 { + return v.value +} + +func (v *NullableAuthentication1) Set(val *Authentication1) { + v.value = val + v.isSet = true +} + +func (v NullableAuthentication1) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthentication1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthentication1(val *Authentication1) *NullableAuthentication1 { + return &NullableAuthentication1{value: val, isSet: true} +} + +func (v NullableAuthentication1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthentication1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_authentication_cipher_1.go b/model_authentication_cipher_1.go new file mode 100644 index 000000000..a64d55935 --- /dev/null +++ b/model_authentication_cipher_1.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// AuthenticationCipher1 * `auto` - Auto * `tkip` - TKIP * `aes` - AES +type AuthenticationCipher1 string + +// List of Authentication_cipher_1 +const ( + AUTHENTICATIONCIPHER1_AUTO AuthenticationCipher1 = "auto" + AUTHENTICATIONCIPHER1_TKIP AuthenticationCipher1 = "tkip" + AUTHENTICATIONCIPHER1_AES AuthenticationCipher1 = "aes" + AUTHENTICATIONCIPHER1_EMPTY AuthenticationCipher1 = "" +) + +// All allowed values of AuthenticationCipher1 enum +var AllowedAuthenticationCipher1EnumValues = []AuthenticationCipher1{ + "auto", + "tkip", + "aes", + "", +} + +func (v *AuthenticationCipher1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AuthenticationCipher1(value) + for _, existing := range AllowedAuthenticationCipher1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AuthenticationCipher1", value) +} + +// NewAuthenticationCipher1FromValue returns a pointer to a valid AuthenticationCipher1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAuthenticationCipher1FromValue(v string) (*AuthenticationCipher1, error) { + ev := AuthenticationCipher1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AuthenticationCipher1: valid values are %v", v, AllowedAuthenticationCipher1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AuthenticationCipher1) IsValid() bool { + for _, existing := range AllowedAuthenticationCipher1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Authentication_cipher_1 value +func (v AuthenticationCipher1) Ptr() *AuthenticationCipher1 { + return &v +} + +type NullableAuthenticationCipher1 struct { + value *AuthenticationCipher1 + isSet bool +} + +func (v NullableAuthenticationCipher1) Get() *AuthenticationCipher1 { + return v.value +} + +func (v *NullableAuthenticationCipher1) Set(val *AuthenticationCipher1) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationCipher1) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationCipher1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationCipher1(val *AuthenticationCipher1) *NullableAuthenticationCipher1 { + return &NullableAuthenticationCipher1{value: val, isSet: true} +} + +func (v NullableAuthenticationCipher1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationCipher1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_authentication_type_2.go b/model_authentication_type_2.go new file mode 100644 index 000000000..e341644b1 --- /dev/null +++ b/model_authentication_type_2.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// AuthenticationType2 * `plaintext` - Plaintext * `md5` - MD5 +type AuthenticationType2 string + +// List of Authentication_type_2 +const ( + AUTHENTICATIONTYPE2_PLAINTEXT AuthenticationType2 = "plaintext" + AUTHENTICATIONTYPE2_MD5 AuthenticationType2 = "md5" + AUTHENTICATIONTYPE2_EMPTY AuthenticationType2 = "" +) + +// All allowed values of AuthenticationType2 enum +var AllowedAuthenticationType2EnumValues = []AuthenticationType2{ + "plaintext", + "md5", + "", +} + +func (v *AuthenticationType2) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AuthenticationType2(value) + for _, existing := range AllowedAuthenticationType2EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AuthenticationType2", value) +} + +// NewAuthenticationType2FromValue returns a pointer to a valid AuthenticationType2 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAuthenticationType2FromValue(v string) (*AuthenticationType2, error) { + ev := AuthenticationType2(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AuthenticationType2: valid values are %v", v, AllowedAuthenticationType2EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AuthenticationType2) IsValid() bool { + for _, existing := range AllowedAuthenticationType2EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Authentication_type_2 value +func (v AuthenticationType2) Ptr() *AuthenticationType2 { + return &v +} + +type NullableAuthenticationType2 struct { + value *AuthenticationType2 + isSet bool +} + +func (v NullableAuthenticationType2) Get() *AuthenticationType2 { + return v.value +} + +func (v *NullableAuthenticationType2) Set(val *AuthenticationType2) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationType2) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationType2) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationType2(val *AuthenticationType2) *NullableAuthenticationType2 { + return &NullableAuthenticationType2{value: val, isSet: true} +} + +func (v NullableAuthenticationType2) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationType2) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_authentication_type_3.go b/model_authentication_type_3.go new file mode 100644 index 000000000..db65480ea --- /dev/null +++ b/model_authentication_type_3.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// AuthenticationType3 * `open` - Open * `wep` - WEP * `wpa-personal` - WPA Personal (PSK) * `wpa-enterprise` - WPA Enterprise +type AuthenticationType3 string + +// List of Authentication_type_3 +const ( + AUTHENTICATIONTYPE3_OPEN AuthenticationType3 = "open" + AUTHENTICATIONTYPE3_WEP AuthenticationType3 = "wep" + AUTHENTICATIONTYPE3_WPA_PERSONAL AuthenticationType3 = "wpa-personal" + AUTHENTICATIONTYPE3_WPA_ENTERPRISE AuthenticationType3 = "wpa-enterprise" + AUTHENTICATIONTYPE3_EMPTY AuthenticationType3 = "" +) + +// All allowed values of AuthenticationType3 enum +var AllowedAuthenticationType3EnumValues = []AuthenticationType3{ + "open", + "wep", + "wpa-personal", + "wpa-enterprise", + "", +} + +func (v *AuthenticationType3) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := AuthenticationType3(value) + for _, existing := range AllowedAuthenticationType3EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid AuthenticationType3", value) +} + +// NewAuthenticationType3FromValue returns a pointer to a valid AuthenticationType3 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewAuthenticationType3FromValue(v string) (*AuthenticationType3, error) { + ev := AuthenticationType3(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for AuthenticationType3: valid values are %v", v, AllowedAuthenticationType3EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v AuthenticationType3) IsValid() bool { + for _, existing := range AllowedAuthenticationType3EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Authentication_type_3 value +func (v AuthenticationType3) Ptr() *AuthenticationType3 { + return &v +} + +type NullableAuthenticationType3 struct { + value *AuthenticationType3 + isSet bool +} + +func (v NullableAuthenticationType3) Get() *AuthenticationType3 { + return v.value +} + +func (v *NullableAuthenticationType3) Set(val *AuthenticationType3) { + v.value = val + v.isSet = true +} + +func (v NullableAuthenticationType3) IsSet() bool { + return v.isSet +} + +func (v *NullableAuthenticationType3) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableAuthenticationType3(val *AuthenticationType3) *NullableAuthenticationType3 { + return &NullableAuthenticationType3{value: val, isSet: true} +} + +func (v NullableAuthenticationType3) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableAuthenticationType3) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_circuits_circuits_list_status__ic_parameter_inner.go b/model_circuits_circuits_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..cf59c8d1c --- /dev/null +++ b/model_circuits_circuits_list_status__ic_parameter_inner.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CircuitsCircuitsListStatusIcParameterInner the model 'CircuitsCircuitsListStatusIcParameterInner' +type CircuitsCircuitsListStatusIcParameterInner string + +// List of circuits_circuits_list_status__ic_parameter_inner +const ( + CIRCUITSCIRCUITSLISTSTATUSICPARAMETERINNER_ACTIVE CircuitsCircuitsListStatusIcParameterInner = "active" + CIRCUITSCIRCUITSLISTSTATUSICPARAMETERINNER_DECOMMISSIONED CircuitsCircuitsListStatusIcParameterInner = "decommissioned" + CIRCUITSCIRCUITSLISTSTATUSICPARAMETERINNER_DEPROVISIONING CircuitsCircuitsListStatusIcParameterInner = "deprovisioning" + CIRCUITSCIRCUITSLISTSTATUSICPARAMETERINNER_OFFLINE CircuitsCircuitsListStatusIcParameterInner = "offline" + CIRCUITSCIRCUITSLISTSTATUSICPARAMETERINNER_PLANNED CircuitsCircuitsListStatusIcParameterInner = "planned" + CIRCUITSCIRCUITSLISTSTATUSICPARAMETERINNER_PROVISIONING CircuitsCircuitsListStatusIcParameterInner = "provisioning" +) + +// All allowed values of CircuitsCircuitsListStatusIcParameterInner enum +var AllowedCircuitsCircuitsListStatusIcParameterInnerEnumValues = []CircuitsCircuitsListStatusIcParameterInner{ + "active", + "decommissioned", + "deprovisioning", + "offline", + "planned", + "provisioning", +} + +func (v *CircuitsCircuitsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CircuitsCircuitsListStatusIcParameterInner(value) + for _, existing := range AllowedCircuitsCircuitsListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CircuitsCircuitsListStatusIcParameterInner", value) +} + +// NewCircuitsCircuitsListStatusIcParameterInnerFromValue returns a pointer to a valid CircuitsCircuitsListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCircuitsCircuitsListStatusIcParameterInnerFromValue(v string) (*CircuitsCircuitsListStatusIcParameterInner, error) { + ev := CircuitsCircuitsListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CircuitsCircuitsListStatusIcParameterInner: valid values are %v", v, AllowedCircuitsCircuitsListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CircuitsCircuitsListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedCircuitsCircuitsListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to circuits_circuits_list_status__ic_parameter_inner value +func (v CircuitsCircuitsListStatusIcParameterInner) Ptr() *CircuitsCircuitsListStatusIcParameterInner { + return &v +} + +type NullableCircuitsCircuitsListStatusIcParameterInner struct { + value *CircuitsCircuitsListStatusIcParameterInner + isSet bool +} + +func (v NullableCircuitsCircuitsListStatusIcParameterInner) Get() *CircuitsCircuitsListStatusIcParameterInner { + return v.value +} + +func (v *NullableCircuitsCircuitsListStatusIcParameterInner) Set(val *CircuitsCircuitsListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableCircuitsCircuitsListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCircuitsCircuitsListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCircuitsCircuitsListStatusIcParameterInner(val *CircuitsCircuitsListStatusIcParameterInner) *NullableCircuitsCircuitsListStatusIcParameterInner { + return &NullableCircuitsCircuitsListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableCircuitsCircuitsListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCircuitsCircuitsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_core_jobs_list_status__ic_parameter_inner.go b/model_core_jobs_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..c1652ce98 --- /dev/null +++ b/model_core_jobs_list_status__ic_parameter_inner.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// CoreJobsListStatusIcParameterInner the model 'CoreJobsListStatusIcParameterInner' +type CoreJobsListStatusIcParameterInner string + +// List of core_jobs_list_status__ic_parameter_inner +const ( + COREJOBSLISTSTATUSICPARAMETERINNER_COMPLETED CoreJobsListStatusIcParameterInner = "completed" + COREJOBSLISTSTATUSICPARAMETERINNER_ERRORED CoreJobsListStatusIcParameterInner = "errored" + COREJOBSLISTSTATUSICPARAMETERINNER_FAILED CoreJobsListStatusIcParameterInner = "failed" + COREJOBSLISTSTATUSICPARAMETERINNER_PENDING CoreJobsListStatusIcParameterInner = "pending" + COREJOBSLISTSTATUSICPARAMETERINNER_RUNNING CoreJobsListStatusIcParameterInner = "running" + COREJOBSLISTSTATUSICPARAMETERINNER_SCHEDULED CoreJobsListStatusIcParameterInner = "scheduled" +) + +// All allowed values of CoreJobsListStatusIcParameterInner enum +var AllowedCoreJobsListStatusIcParameterInnerEnumValues = []CoreJobsListStatusIcParameterInner{ + "completed", + "errored", + "failed", + "pending", + "running", + "scheduled", +} + +func (v *CoreJobsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := CoreJobsListStatusIcParameterInner(value) + for _, existing := range AllowedCoreJobsListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid CoreJobsListStatusIcParameterInner", value) +} + +// NewCoreJobsListStatusIcParameterInnerFromValue returns a pointer to a valid CoreJobsListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewCoreJobsListStatusIcParameterInnerFromValue(v string) (*CoreJobsListStatusIcParameterInner, error) { + ev := CoreJobsListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for CoreJobsListStatusIcParameterInner: valid values are %v", v, AllowedCoreJobsListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v CoreJobsListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedCoreJobsListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to core_jobs_list_status__ic_parameter_inner value +func (v CoreJobsListStatusIcParameterInner) Ptr() *CoreJobsListStatusIcParameterInner { + return &v +} + +type NullableCoreJobsListStatusIcParameterInner struct { + value *CoreJobsListStatusIcParameterInner + isSet bool +} + +func (v NullableCoreJobsListStatusIcParameterInner) Get() *CoreJobsListStatusIcParameterInner { + return v.value +} + +func (v *NullableCoreJobsListStatusIcParameterInner) Set(val *CoreJobsListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableCoreJobsListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableCoreJobsListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableCoreJobsListStatusIcParameterInner(val *CoreJobsListStatusIcParameterInner) *NullableCoreJobsListStatusIcParameterInner { + return &NullableCoreJobsListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableCoreJobsListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableCoreJobsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_cables_list_status__ic_parameter_inner.go b/model_dcim_cables_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..4acac6705 --- /dev/null +++ b/model_dcim_cables_list_status__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimCablesListStatusIcParameterInner the model 'DcimCablesListStatusIcParameterInner' +type DcimCablesListStatusIcParameterInner string + +// List of dcim_cables_list_status__ic_parameter_inner +const ( + DCIMCABLESLISTSTATUSICPARAMETERINNER_CONNECTED DcimCablesListStatusIcParameterInner = "connected" + DCIMCABLESLISTSTATUSICPARAMETERINNER_DECOMMISSIONING DcimCablesListStatusIcParameterInner = "decommissioning" + DCIMCABLESLISTSTATUSICPARAMETERINNER_PLANNED DcimCablesListStatusIcParameterInner = "planned" +) + +// All allowed values of DcimCablesListStatusIcParameterInner enum +var AllowedDcimCablesListStatusIcParameterInnerEnumValues = []DcimCablesListStatusIcParameterInner{ + "connected", + "decommissioning", + "planned", +} + +func (v *DcimCablesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimCablesListStatusIcParameterInner(value) + for _, existing := range AllowedDcimCablesListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimCablesListStatusIcParameterInner", value) +} + +// NewDcimCablesListStatusIcParameterInnerFromValue returns a pointer to a valid DcimCablesListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimCablesListStatusIcParameterInnerFromValue(v string) (*DcimCablesListStatusIcParameterInner, error) { + ev := DcimCablesListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimCablesListStatusIcParameterInner: valid values are %v", v, AllowedDcimCablesListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimCablesListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimCablesListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_cables_list_status__ic_parameter_inner value +func (v DcimCablesListStatusIcParameterInner) Ptr() *DcimCablesListStatusIcParameterInner { + return &v +} + +type NullableDcimCablesListStatusIcParameterInner struct { + value *DcimCablesListStatusIcParameterInner + isSet bool +} + +func (v NullableDcimCablesListStatusIcParameterInner) Get() *DcimCablesListStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimCablesListStatusIcParameterInner) Set(val *DcimCablesListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimCablesListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimCablesListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimCablesListStatusIcParameterInner(val *DcimCablesListStatusIcParameterInner) *NullableDcimCablesListStatusIcParameterInner { + return &NullableDcimCablesListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimCablesListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimCablesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_cables_list_type__ic_parameter_inner.go b/model_dcim_cables_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..51cfcc2e2 --- /dev/null +++ b/model_dcim_cables_list_type__ic_parameter_inner.go @@ -0,0 +1,157 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimCablesListTypeIcParameterInner the model 'DcimCablesListTypeIcParameterInner' +type DcimCablesListTypeIcParameterInner string + +// List of dcim_cables_list_type__ic_parameter_inner +const ( + DCIMCABLESLISTTYPEICPARAMETERINNER_EMPTY DcimCablesListTypeIcParameterInner = "" + DCIMCABLESLISTTYPEICPARAMETERINNER_AOC DcimCablesListTypeIcParameterInner = "aoc" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT3 DcimCablesListTypeIcParameterInner = "cat3" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT5 DcimCablesListTypeIcParameterInner = "cat5" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT5E DcimCablesListTypeIcParameterInner = "cat5e" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT6 DcimCablesListTypeIcParameterInner = "cat6" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT6A DcimCablesListTypeIcParameterInner = "cat6a" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT7 DcimCablesListTypeIcParameterInner = "cat7" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT7A DcimCablesListTypeIcParameterInner = "cat7a" + DCIMCABLESLISTTYPEICPARAMETERINNER_CAT8 DcimCablesListTypeIcParameterInner = "cat8" + DCIMCABLESLISTTYPEICPARAMETERINNER_COAXIAL DcimCablesListTypeIcParameterInner = "coaxial" + DCIMCABLESLISTTYPEICPARAMETERINNER_DAC_ACTIVE DcimCablesListTypeIcParameterInner = "dac-active" + DCIMCABLESLISTTYPEICPARAMETERINNER_DAC_PASSIVE DcimCablesListTypeIcParameterInner = "dac-passive" + DCIMCABLESLISTTYPEICPARAMETERINNER_MMF DcimCablesListTypeIcParameterInner = "mmf" + DCIMCABLESLISTTYPEICPARAMETERINNER_MMF_OM1 DcimCablesListTypeIcParameterInner = "mmf-om1" + DCIMCABLESLISTTYPEICPARAMETERINNER_MMF_OM2 DcimCablesListTypeIcParameterInner = "mmf-om2" + DCIMCABLESLISTTYPEICPARAMETERINNER_MMF_OM3 DcimCablesListTypeIcParameterInner = "mmf-om3" + DCIMCABLESLISTTYPEICPARAMETERINNER_MMF_OM4 DcimCablesListTypeIcParameterInner = "mmf-om4" + DCIMCABLESLISTTYPEICPARAMETERINNER_MMF_OM5 DcimCablesListTypeIcParameterInner = "mmf-om5" + DCIMCABLESLISTTYPEICPARAMETERINNER_MRJ21_TRUNK DcimCablesListTypeIcParameterInner = "mrj21-trunk" + DCIMCABLESLISTTYPEICPARAMETERINNER_POWER DcimCablesListTypeIcParameterInner = "power" + DCIMCABLESLISTTYPEICPARAMETERINNER_SMF DcimCablesListTypeIcParameterInner = "smf" + DCIMCABLESLISTTYPEICPARAMETERINNER_SMF_OS1 DcimCablesListTypeIcParameterInner = "smf-os1" + DCIMCABLESLISTTYPEICPARAMETERINNER_SMF_OS2 DcimCablesListTypeIcParameterInner = "smf-os2" + DCIMCABLESLISTTYPEICPARAMETERINNER_USB DcimCablesListTypeIcParameterInner = "usb" +) + +// All allowed values of DcimCablesListTypeIcParameterInner enum +var AllowedDcimCablesListTypeIcParameterInnerEnumValues = []DcimCablesListTypeIcParameterInner{ + "", + "aoc", + "cat3", + "cat5", + "cat5e", + "cat6", + "cat6a", + "cat7", + "cat7a", + "cat8", + "coaxial", + "dac-active", + "dac-passive", + "mmf", + "mmf-om1", + "mmf-om2", + "mmf-om3", + "mmf-om4", + "mmf-om5", + "mrj21-trunk", + "power", + "smf", + "smf-os1", + "smf-os2", + "usb", +} + +func (v *DcimCablesListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimCablesListTypeIcParameterInner(value) + for _, existing := range AllowedDcimCablesListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimCablesListTypeIcParameterInner", value) +} + +// NewDcimCablesListTypeIcParameterInnerFromValue returns a pointer to a valid DcimCablesListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimCablesListTypeIcParameterInnerFromValue(v string) (*DcimCablesListTypeIcParameterInner, error) { + ev := DcimCablesListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimCablesListTypeIcParameterInner: valid values are %v", v, AllowedDcimCablesListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimCablesListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimCablesListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_cables_list_type__ic_parameter_inner value +func (v DcimCablesListTypeIcParameterInner) Ptr() *DcimCablesListTypeIcParameterInner { + return &v +} + +type NullableDcimCablesListTypeIcParameterInner struct { + value *DcimCablesListTypeIcParameterInner + isSet bool +} + +func (v NullableDcimCablesListTypeIcParameterInner) Get() *DcimCablesListTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimCablesListTypeIcParameterInner) Set(val *DcimCablesListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimCablesListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimCablesListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimCablesListTypeIcParameterInner(val *DcimCablesListTypeIcParameterInner) *NullableDcimCablesListTypeIcParameterInner { + return &NullableDcimCablesListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimCablesListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimCablesListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_console_ports_list_device_status__ic_parameter_inner.go b/model_dcim_console_ports_list_device_status__ic_parameter_inner.go new file mode 100644 index 000000000..6187d5fc5 --- /dev/null +++ b/model_dcim_console_ports_list_device_status__ic_parameter_inner.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimConsolePortsListDeviceStatusIcParameterInner the model 'DcimConsolePortsListDeviceStatusIcParameterInner' +type DcimConsolePortsListDeviceStatusIcParameterInner string + +// List of dcim_console_ports_list_device_status__ic_parameter_inner +const ( + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_ACTIVE DcimConsolePortsListDeviceStatusIcParameterInner = "active" + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_DECOMMISSIONING DcimConsolePortsListDeviceStatusIcParameterInner = "decommissioning" + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_FAILED DcimConsolePortsListDeviceStatusIcParameterInner = "failed" + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_INVENTORY DcimConsolePortsListDeviceStatusIcParameterInner = "inventory" + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_OFFLINE DcimConsolePortsListDeviceStatusIcParameterInner = "offline" + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_PLANNED DcimConsolePortsListDeviceStatusIcParameterInner = "planned" + DCIMCONSOLEPORTSLISTDEVICESTATUSICPARAMETERINNER_STAGED DcimConsolePortsListDeviceStatusIcParameterInner = "staged" +) + +// All allowed values of DcimConsolePortsListDeviceStatusIcParameterInner enum +var AllowedDcimConsolePortsListDeviceStatusIcParameterInnerEnumValues = []DcimConsolePortsListDeviceStatusIcParameterInner{ + "active", + "decommissioning", + "failed", + "inventory", + "offline", + "planned", + "staged", +} + +func (v *DcimConsolePortsListDeviceStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimConsolePortsListDeviceStatusIcParameterInner(value) + for _, existing := range AllowedDcimConsolePortsListDeviceStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimConsolePortsListDeviceStatusIcParameterInner", value) +} + +// NewDcimConsolePortsListDeviceStatusIcParameterInnerFromValue returns a pointer to a valid DcimConsolePortsListDeviceStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimConsolePortsListDeviceStatusIcParameterInnerFromValue(v string) (*DcimConsolePortsListDeviceStatusIcParameterInner, error) { + ev := DcimConsolePortsListDeviceStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimConsolePortsListDeviceStatusIcParameterInner: valid values are %v", v, AllowedDcimConsolePortsListDeviceStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimConsolePortsListDeviceStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimConsolePortsListDeviceStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_console_ports_list_device_status__ic_parameter_inner value +func (v DcimConsolePortsListDeviceStatusIcParameterInner) Ptr() *DcimConsolePortsListDeviceStatusIcParameterInner { + return &v +} + +type NullableDcimConsolePortsListDeviceStatusIcParameterInner struct { + value *DcimConsolePortsListDeviceStatusIcParameterInner + isSet bool +} + +func (v NullableDcimConsolePortsListDeviceStatusIcParameterInner) Get() *DcimConsolePortsListDeviceStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimConsolePortsListDeviceStatusIcParameterInner) Set(val *DcimConsolePortsListDeviceStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimConsolePortsListDeviceStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimConsolePortsListDeviceStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimConsolePortsListDeviceStatusIcParameterInner(val *DcimConsolePortsListDeviceStatusIcParameterInner) *NullableDcimConsolePortsListDeviceStatusIcParameterInner { + return &NullableDcimConsolePortsListDeviceStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimConsolePortsListDeviceStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimConsolePortsListDeviceStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_console_ports_list_type__ic_parameter_inner.go b/model_dcim_console_ports_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..d36f28637 --- /dev/null +++ b/model_dcim_console_ports_list_type__ic_parameter_inner.go @@ -0,0 +1,139 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimConsolePortsListTypeIcParameterInner the model 'DcimConsolePortsListTypeIcParameterInner' +type DcimConsolePortsListTypeIcParameterInner string + +// List of dcim_console_ports_list_type__ic_parameter_inner +const ( + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_EMPTY DcimConsolePortsListTypeIcParameterInner = "" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_DB_25 DcimConsolePortsListTypeIcParameterInner = "db-25" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_DE_9 DcimConsolePortsListTypeIcParameterInner = "de-9" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_MINI_DIN_8 DcimConsolePortsListTypeIcParameterInner = "mini-din-8" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_OTHER DcimConsolePortsListTypeIcParameterInner = "other" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_RJ_11 DcimConsolePortsListTypeIcParameterInner = "rj-11" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_RJ_12 DcimConsolePortsListTypeIcParameterInner = "rj-12" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_RJ_45 DcimConsolePortsListTypeIcParameterInner = "rj-45" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_A DcimConsolePortsListTypeIcParameterInner = "usb-a" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_B DcimConsolePortsListTypeIcParameterInner = "usb-b" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_C DcimConsolePortsListTypeIcParameterInner = "usb-c" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_MICRO_A DcimConsolePortsListTypeIcParameterInner = "usb-micro-a" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_MICRO_AB DcimConsolePortsListTypeIcParameterInner = "usb-micro-ab" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_MICRO_B DcimConsolePortsListTypeIcParameterInner = "usb-micro-b" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_MINI_A DcimConsolePortsListTypeIcParameterInner = "usb-mini-a" + DCIMCONSOLEPORTSLISTTYPEICPARAMETERINNER_USB_MINI_B DcimConsolePortsListTypeIcParameterInner = "usb-mini-b" +) + +// All allowed values of DcimConsolePortsListTypeIcParameterInner enum +var AllowedDcimConsolePortsListTypeIcParameterInnerEnumValues = []DcimConsolePortsListTypeIcParameterInner{ + "", + "db-25", + "de-9", + "mini-din-8", + "other", + "rj-11", + "rj-12", + "rj-45", + "usb-a", + "usb-b", + "usb-c", + "usb-micro-a", + "usb-micro-ab", + "usb-micro-b", + "usb-mini-a", + "usb-mini-b", +} + +func (v *DcimConsolePortsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimConsolePortsListTypeIcParameterInner(value) + for _, existing := range AllowedDcimConsolePortsListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimConsolePortsListTypeIcParameterInner", value) +} + +// NewDcimConsolePortsListTypeIcParameterInnerFromValue returns a pointer to a valid DcimConsolePortsListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimConsolePortsListTypeIcParameterInnerFromValue(v string) (*DcimConsolePortsListTypeIcParameterInner, error) { + ev := DcimConsolePortsListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimConsolePortsListTypeIcParameterInner: valid values are %v", v, AllowedDcimConsolePortsListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimConsolePortsListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimConsolePortsListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_console_ports_list_type__ic_parameter_inner value +func (v DcimConsolePortsListTypeIcParameterInner) Ptr() *DcimConsolePortsListTypeIcParameterInner { + return &v +} + +type NullableDcimConsolePortsListTypeIcParameterInner struct { + value *DcimConsolePortsListTypeIcParameterInner + isSet bool +} + +func (v NullableDcimConsolePortsListTypeIcParameterInner) Get() *DcimConsolePortsListTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimConsolePortsListTypeIcParameterInner) Set(val *DcimConsolePortsListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimConsolePortsListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimConsolePortsListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimConsolePortsListTypeIcParameterInner(val *DcimConsolePortsListTypeIcParameterInner) *NullableDcimConsolePortsListTypeIcParameterInner { + return &NullableDcimConsolePortsListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimConsolePortsListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimConsolePortsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_front_port_templates_list_type__ic_parameter_inner.go b/model_dcim_front_port_templates_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..344c83017 --- /dev/null +++ b/model_dcim_front_port_templates_list_type__ic_parameter_inner.go @@ -0,0 +1,217 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimFrontPortTemplatesListTypeIcParameterInner the model 'DcimFrontPortTemplatesListTypeIcParameterInner' +type DcimFrontPortTemplatesListTypeIcParameterInner string + +// List of dcim_front_port_templates_list_type__ic_parameter_inner +const ( + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__110_PUNCH DcimFrontPortTemplatesListTypeIcParameterInner = "110-punch" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__4P2C DcimFrontPortTemplatesListTypeIcParameterInner = "4p2c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__4P4C DcimFrontPortTemplatesListTypeIcParameterInner = "4p4c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__6P2C DcimFrontPortTemplatesListTypeIcParameterInner = "6p2c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__6P4C DcimFrontPortTemplatesListTypeIcParameterInner = "6p4c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__6P6C DcimFrontPortTemplatesListTypeIcParameterInner = "6p6c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__8P2C DcimFrontPortTemplatesListTypeIcParameterInner = "8p2c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__8P4C DcimFrontPortTemplatesListTypeIcParameterInner = "8p4c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__8P6C DcimFrontPortTemplatesListTypeIcParameterInner = "8p6c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER__8P8C DcimFrontPortTemplatesListTypeIcParameterInner = "8p8c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_BNC DcimFrontPortTemplatesListTypeIcParameterInner = "bnc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_CS DcimFrontPortTemplatesListTypeIcParameterInner = "cs" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_F DcimFrontPortTemplatesListTypeIcParameterInner = "f" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_FC DcimFrontPortTemplatesListTypeIcParameterInner = "fc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_GG45 DcimFrontPortTemplatesListTypeIcParameterInner = "gg45" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LC DcimFrontPortTemplatesListTypeIcParameterInner = "lc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LC_APC DcimFrontPortTemplatesListTypeIcParameterInner = "lc-apc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LC_PC DcimFrontPortTemplatesListTypeIcParameterInner = "lc-pc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LC_UPC DcimFrontPortTemplatesListTypeIcParameterInner = "lc-upc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LSH DcimFrontPortTemplatesListTypeIcParameterInner = "lsh" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LSH_APC DcimFrontPortTemplatesListTypeIcParameterInner = "lsh-apc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LSH_PC DcimFrontPortTemplatesListTypeIcParameterInner = "lsh-pc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LSH_UPC DcimFrontPortTemplatesListTypeIcParameterInner = "lsh-upc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LX5 DcimFrontPortTemplatesListTypeIcParameterInner = "lx5" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LX5_APC DcimFrontPortTemplatesListTypeIcParameterInner = "lx5-apc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LX5_PC DcimFrontPortTemplatesListTypeIcParameterInner = "lx5-pc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_LX5_UPC DcimFrontPortTemplatesListTypeIcParameterInner = "lx5-upc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_MPO DcimFrontPortTemplatesListTypeIcParameterInner = "mpo" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_MRJ21 DcimFrontPortTemplatesListTypeIcParameterInner = "mrj21" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_MTRJ DcimFrontPortTemplatesListTypeIcParameterInner = "mtrj" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_N DcimFrontPortTemplatesListTypeIcParameterInner = "n" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_OTHER DcimFrontPortTemplatesListTypeIcParameterInner = "other" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SC DcimFrontPortTemplatesListTypeIcParameterInner = "sc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SC_APC DcimFrontPortTemplatesListTypeIcParameterInner = "sc-apc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SC_PC DcimFrontPortTemplatesListTypeIcParameterInner = "sc-pc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SC_UPC DcimFrontPortTemplatesListTypeIcParameterInner = "sc-upc" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SMA_905 DcimFrontPortTemplatesListTypeIcParameterInner = "sma-905" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SMA_906 DcimFrontPortTemplatesListTypeIcParameterInner = "sma-906" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SN DcimFrontPortTemplatesListTypeIcParameterInner = "sn" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_SPLICE DcimFrontPortTemplatesListTypeIcParameterInner = "splice" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_ST DcimFrontPortTemplatesListTypeIcParameterInner = "st" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_TERA_1P DcimFrontPortTemplatesListTypeIcParameterInner = "tera-1p" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_TERA_2P DcimFrontPortTemplatesListTypeIcParameterInner = "tera-2p" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_TERA_4P DcimFrontPortTemplatesListTypeIcParameterInner = "tera-4p" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_URM_P2 DcimFrontPortTemplatesListTypeIcParameterInner = "urm-p2" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_URM_P4 DcimFrontPortTemplatesListTypeIcParameterInner = "urm-p4" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_URM_P8 DcimFrontPortTemplatesListTypeIcParameterInner = "urm-p8" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_A DcimFrontPortTemplatesListTypeIcParameterInner = "usb-a" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_B DcimFrontPortTemplatesListTypeIcParameterInner = "usb-b" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_C DcimFrontPortTemplatesListTypeIcParameterInner = "usb-c" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_MICRO_A DcimFrontPortTemplatesListTypeIcParameterInner = "usb-micro-a" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_MICRO_AB DcimFrontPortTemplatesListTypeIcParameterInner = "usb-micro-ab" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_MICRO_B DcimFrontPortTemplatesListTypeIcParameterInner = "usb-micro-b" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_MINI_A DcimFrontPortTemplatesListTypeIcParameterInner = "usb-mini-a" + DCIMFRONTPORTTEMPLATESLISTTYPEICPARAMETERINNER_USB_MINI_B DcimFrontPortTemplatesListTypeIcParameterInner = "usb-mini-b" +) + +// All allowed values of DcimFrontPortTemplatesListTypeIcParameterInner enum +var AllowedDcimFrontPortTemplatesListTypeIcParameterInnerEnumValues = []DcimFrontPortTemplatesListTypeIcParameterInner{ + "110-punch", + "4p2c", + "4p4c", + "6p2c", + "6p4c", + "6p6c", + "8p2c", + "8p4c", + "8p6c", + "8p8c", + "bnc", + "cs", + "f", + "fc", + "gg45", + "lc", + "lc-apc", + "lc-pc", + "lc-upc", + "lsh", + "lsh-apc", + "lsh-pc", + "lsh-upc", + "lx5", + "lx5-apc", + "lx5-pc", + "lx5-upc", + "mpo", + "mrj21", + "mtrj", + "n", + "other", + "sc", + "sc-apc", + "sc-pc", + "sc-upc", + "sma-905", + "sma-906", + "sn", + "splice", + "st", + "tera-1p", + "tera-2p", + "tera-4p", + "urm-p2", + "urm-p4", + "urm-p8", + "usb-a", + "usb-b", + "usb-c", + "usb-micro-a", + "usb-micro-ab", + "usb-micro-b", + "usb-mini-a", + "usb-mini-b", +} + +func (v *DcimFrontPortTemplatesListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimFrontPortTemplatesListTypeIcParameterInner(value) + for _, existing := range AllowedDcimFrontPortTemplatesListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimFrontPortTemplatesListTypeIcParameterInner", value) +} + +// NewDcimFrontPortTemplatesListTypeIcParameterInnerFromValue returns a pointer to a valid DcimFrontPortTemplatesListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimFrontPortTemplatesListTypeIcParameterInnerFromValue(v string) (*DcimFrontPortTemplatesListTypeIcParameterInner, error) { + ev := DcimFrontPortTemplatesListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimFrontPortTemplatesListTypeIcParameterInner: valid values are %v", v, AllowedDcimFrontPortTemplatesListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimFrontPortTemplatesListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimFrontPortTemplatesListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_front_port_templates_list_type__ic_parameter_inner value +func (v DcimFrontPortTemplatesListTypeIcParameterInner) Ptr() *DcimFrontPortTemplatesListTypeIcParameterInner { + return &v +} + +type NullableDcimFrontPortTemplatesListTypeIcParameterInner struct { + value *DcimFrontPortTemplatesListTypeIcParameterInner + isSet bool +} + +func (v NullableDcimFrontPortTemplatesListTypeIcParameterInner) Get() *DcimFrontPortTemplatesListTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimFrontPortTemplatesListTypeIcParameterInner) Set(val *DcimFrontPortTemplatesListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimFrontPortTemplatesListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimFrontPortTemplatesListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimFrontPortTemplatesListTypeIcParameterInner(val *DcimFrontPortTemplatesListTypeIcParameterInner) *NullableDcimFrontPortTemplatesListTypeIcParameterInner { + return &NullableDcimFrontPortTemplatesListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimFrontPortTemplatesListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimFrontPortTemplatesListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_interface_templates_list_poe_mode__ic_parameter_inner.go b/model_dcim_interface_templates_list_poe_mode__ic_parameter_inner.go new file mode 100644 index 000000000..3ae8d3214 --- /dev/null +++ b/model_dcim_interface_templates_list_poe_mode__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimInterfaceTemplatesListPoeModeIcParameterInner the model 'DcimInterfaceTemplatesListPoeModeIcParameterInner' +type DcimInterfaceTemplatesListPoeModeIcParameterInner string + +// List of dcim_interface_templates_list_poe_mode__ic_parameter_inner +const ( + DCIMINTERFACETEMPLATESLISTPOEMODEICPARAMETERINNER_EMPTY DcimInterfaceTemplatesListPoeModeIcParameterInner = "" + DCIMINTERFACETEMPLATESLISTPOEMODEICPARAMETERINNER_PD DcimInterfaceTemplatesListPoeModeIcParameterInner = "pd" + DCIMINTERFACETEMPLATESLISTPOEMODEICPARAMETERINNER_PSE DcimInterfaceTemplatesListPoeModeIcParameterInner = "pse" +) + +// All allowed values of DcimInterfaceTemplatesListPoeModeIcParameterInner enum +var AllowedDcimInterfaceTemplatesListPoeModeIcParameterInnerEnumValues = []DcimInterfaceTemplatesListPoeModeIcParameterInner{ + "", + "pd", + "pse", +} + +func (v *DcimInterfaceTemplatesListPoeModeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimInterfaceTemplatesListPoeModeIcParameterInner(value) + for _, existing := range AllowedDcimInterfaceTemplatesListPoeModeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimInterfaceTemplatesListPoeModeIcParameterInner", value) +} + +// NewDcimInterfaceTemplatesListPoeModeIcParameterInnerFromValue returns a pointer to a valid DcimInterfaceTemplatesListPoeModeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimInterfaceTemplatesListPoeModeIcParameterInnerFromValue(v string) (*DcimInterfaceTemplatesListPoeModeIcParameterInner, error) { + ev := DcimInterfaceTemplatesListPoeModeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimInterfaceTemplatesListPoeModeIcParameterInner: valid values are %v", v, AllowedDcimInterfaceTemplatesListPoeModeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimInterfaceTemplatesListPoeModeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimInterfaceTemplatesListPoeModeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_interface_templates_list_poe_mode__ic_parameter_inner value +func (v DcimInterfaceTemplatesListPoeModeIcParameterInner) Ptr() *DcimInterfaceTemplatesListPoeModeIcParameterInner { + return &v +} + +type NullableDcimInterfaceTemplatesListPoeModeIcParameterInner struct { + value *DcimInterfaceTemplatesListPoeModeIcParameterInner + isSet bool +} + +func (v NullableDcimInterfaceTemplatesListPoeModeIcParameterInner) Get() *DcimInterfaceTemplatesListPoeModeIcParameterInner { + return v.value +} + +func (v *NullableDcimInterfaceTemplatesListPoeModeIcParameterInner) Set(val *DcimInterfaceTemplatesListPoeModeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimInterfaceTemplatesListPoeModeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimInterfaceTemplatesListPoeModeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimInterfaceTemplatesListPoeModeIcParameterInner(val *DcimInterfaceTemplatesListPoeModeIcParameterInner) *NullableDcimInterfaceTemplatesListPoeModeIcParameterInner { + return &NullableDcimInterfaceTemplatesListPoeModeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimInterfaceTemplatesListPoeModeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimInterfaceTemplatesListPoeModeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_interface_templates_list_poe_type__ic_parameter_inner.go b/model_dcim_interface_templates_list_poe_type__ic_parameter_inner.go new file mode 100644 index 000000000..62e274cf6 --- /dev/null +++ b/model_dcim_interface_templates_list_poe_type__ic_parameter_inner.go @@ -0,0 +1,125 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimInterfaceTemplatesListPoeTypeIcParameterInner the model 'DcimInterfaceTemplatesListPoeTypeIcParameterInner' +type DcimInterfaceTemplatesListPoeTypeIcParameterInner string + +// List of dcim_interface_templates_list_poe_type__ic_parameter_inner +const ( + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_EMPTY DcimInterfaceTemplatesListPoeTypeIcParameterInner = "" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_PASSIVE_24V_2PAIR DcimInterfaceTemplatesListPoeTypeIcParameterInner = "passive-24v-2pair" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_PASSIVE_24V_4PAIR DcimInterfaceTemplatesListPoeTypeIcParameterInner = "passive-24v-4pair" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_PASSIVE_48V_2PAIR DcimInterfaceTemplatesListPoeTypeIcParameterInner = "passive-48v-2pair" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_PASSIVE_48V_4PAIR DcimInterfaceTemplatesListPoeTypeIcParameterInner = "passive-48v-4pair" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_TYPE1_IEEE802_3AF DcimInterfaceTemplatesListPoeTypeIcParameterInner = "type1-ieee802.3af" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_TYPE2_IEEE802_3AT DcimInterfaceTemplatesListPoeTypeIcParameterInner = "type2-ieee802.3at" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_TYPE3_IEEE802_3BT DcimInterfaceTemplatesListPoeTypeIcParameterInner = "type3-ieee802.3bt" + DCIMINTERFACETEMPLATESLISTPOETYPEICPARAMETERINNER_TYPE4_IEEE802_3BT DcimInterfaceTemplatesListPoeTypeIcParameterInner = "type4-ieee802.3bt" +) + +// All allowed values of DcimInterfaceTemplatesListPoeTypeIcParameterInner enum +var AllowedDcimInterfaceTemplatesListPoeTypeIcParameterInnerEnumValues = []DcimInterfaceTemplatesListPoeTypeIcParameterInner{ + "", + "passive-24v-2pair", + "passive-24v-4pair", + "passive-48v-2pair", + "passive-48v-4pair", + "type1-ieee802.3af", + "type2-ieee802.3at", + "type3-ieee802.3bt", + "type4-ieee802.3bt", +} + +func (v *DcimInterfaceTemplatesListPoeTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimInterfaceTemplatesListPoeTypeIcParameterInner(value) + for _, existing := range AllowedDcimInterfaceTemplatesListPoeTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimInterfaceTemplatesListPoeTypeIcParameterInner", value) +} + +// NewDcimInterfaceTemplatesListPoeTypeIcParameterInnerFromValue returns a pointer to a valid DcimInterfaceTemplatesListPoeTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimInterfaceTemplatesListPoeTypeIcParameterInnerFromValue(v string) (*DcimInterfaceTemplatesListPoeTypeIcParameterInner, error) { + ev := DcimInterfaceTemplatesListPoeTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimInterfaceTemplatesListPoeTypeIcParameterInner: valid values are %v", v, AllowedDcimInterfaceTemplatesListPoeTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimInterfaceTemplatesListPoeTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimInterfaceTemplatesListPoeTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_interface_templates_list_poe_type__ic_parameter_inner value +func (v DcimInterfaceTemplatesListPoeTypeIcParameterInner) Ptr() *DcimInterfaceTemplatesListPoeTypeIcParameterInner { + return &v +} + +type NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner struct { + value *DcimInterfaceTemplatesListPoeTypeIcParameterInner + isSet bool +} + +func (v NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner) Get() *DcimInterfaceTemplatesListPoeTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner) Set(val *DcimInterfaceTemplatesListPoeTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimInterfaceTemplatesListPoeTypeIcParameterInner(val *DcimInterfaceTemplatesListPoeTypeIcParameterInner) *NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner { + return &NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimInterfaceTemplatesListPoeTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_interface_templates_list_type__ic_parameter_inner.go b/model_dcim_interface_templates_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..a51afb8c7 --- /dev/null +++ b/model_dcim_interface_templates_list_type__ic_parameter_inner.go @@ -0,0 +1,365 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimInterfaceTemplatesListTypeIcParameterInner the model 'DcimInterfaceTemplatesListTypeIcParameterInner' +type DcimInterfaceTemplatesListTypeIcParameterInner string + +// List of dcim_interface_templates_list_type__ic_parameter_inner +const ( + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__1000BASE_KX DcimInterfaceTemplatesListTypeIcParameterInner = "1000base-kx" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__1000BASE_T DcimInterfaceTemplatesListTypeIcParameterInner = "1000base-t" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__1000BASE_TX DcimInterfaceTemplatesListTypeIcParameterInner = "1000base-tx" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__1000BASE_X_GBIC DcimInterfaceTemplatesListTypeIcParameterInner = "1000base-x-gbic" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__1000BASE_X_SFP DcimInterfaceTemplatesListTypeIcParameterInner = "1000base-x-sfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100BASE_FX DcimInterfaceTemplatesListTypeIcParameterInner = "100base-fx" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100BASE_LFX DcimInterfaceTemplatesListTypeIcParameterInner = "100base-lfx" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100BASE_T1 DcimInterfaceTemplatesListTypeIcParameterInner = "100base-t1" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100BASE_TX DcimInterfaceTemplatesListTypeIcParameterInner = "100base-tx" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100BASE_X_SFP DcimInterfaceTemplatesListTypeIcParameterInner = "100base-x-sfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_KP4 DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-kp4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_KR2 DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-kr2" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_KR4 DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-kr4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_CFP DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-cfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_CFP2 DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-cfp2" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_CFP4 DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-cfp4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_CPAK DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-cpak" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_CXP DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-cxp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_DSFP DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-dsfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_QSFP28 DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-qsfp28" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_QSFPDD DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-qsfpdd" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__100GBASE_X_SFPDD DcimInterfaceTemplatesListTypeIcParameterInner = "100gbase-x-sfpdd" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10G_EPON DcimInterfaceTemplatesListTypeIcParameterInner = "10g-epon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_CX4 DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-cx4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_KR DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-kr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_KX4 DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-kx4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_T DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-t" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_X_SFPP DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-x-sfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_X_X2 DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-x-x2" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_X_XENPAK DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-x-xenpak" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__10GBASE_X_XFP DcimInterfaceTemplatesListTypeIcParameterInner = "10gbase-x-xfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__128GFC_QSFP28 DcimInterfaceTemplatesListTypeIcParameterInner = "128gfc-qsfp28" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__16GFC_SFPP DcimInterfaceTemplatesListTypeIcParameterInner = "16gfc-sfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__1GFC_SFP DcimInterfaceTemplatesListTypeIcParameterInner = "1gfc-sfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__2_5GBASE_KX DcimInterfaceTemplatesListTypeIcParameterInner = "2.5gbase-kx" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__2_5GBASE_T DcimInterfaceTemplatesListTypeIcParameterInner = "2.5gbase-t" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__200GBASE_X_CFP2 DcimInterfaceTemplatesListTypeIcParameterInner = "200gbase-x-cfp2" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__200GBASE_X_QSFP56 DcimInterfaceTemplatesListTypeIcParameterInner = "200gbase-x-qsfp56" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__200GBASE_X_QSFPDD DcimInterfaceTemplatesListTypeIcParameterInner = "200gbase-x-qsfpdd" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__25G_PON DcimInterfaceTemplatesListTypeIcParameterInner = "25g-pon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__25GBASE_KR DcimInterfaceTemplatesListTypeIcParameterInner = "25gbase-kr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__25GBASE_X_SFP28 DcimInterfaceTemplatesListTypeIcParameterInner = "25gbase-x-sfp28" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__2GFC_SFP DcimInterfaceTemplatesListTypeIcParameterInner = "2gfc-sfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__32GFC_SFP28 DcimInterfaceTemplatesListTypeIcParameterInner = "32gfc-sfp28" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__32GFC_SFPP DcimInterfaceTemplatesListTypeIcParameterInner = "32gfc-sfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_CDFP DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-cdfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_CFP2 DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-cfp2" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_CFP8 DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-cfp8" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_OSFP DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-osfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_OSFP_RHS DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-osfp-rhs" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_QSFP112 DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-qsfp112" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__400GBASE_X_QSFPDD DcimInterfaceTemplatesListTypeIcParameterInner = "400gbase-x-qsfpdd" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__40GBASE_KR4 DcimInterfaceTemplatesListTypeIcParameterInner = "40gbase-kr4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__40GBASE_X_QSFPP DcimInterfaceTemplatesListTypeIcParameterInner = "40gbase-x-qsfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__4G DcimInterfaceTemplatesListTypeIcParameterInner = "4g" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__4GFC_SFP DcimInterfaceTemplatesListTypeIcParameterInner = "4gfc-sfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__50G_PON DcimInterfaceTemplatesListTypeIcParameterInner = "50g-pon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__50GBASE_KR DcimInterfaceTemplatesListTypeIcParameterInner = "50gbase-kr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__50GBASE_X_SFP28 DcimInterfaceTemplatesListTypeIcParameterInner = "50gbase-x-sfp28" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__50GBASE_X_SFP56 DcimInterfaceTemplatesListTypeIcParameterInner = "50gbase-x-sfp56" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__5G DcimInterfaceTemplatesListTypeIcParameterInner = "5g" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__5GBASE_KR DcimInterfaceTemplatesListTypeIcParameterInner = "5gbase-kr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__5GBASE_T DcimInterfaceTemplatesListTypeIcParameterInner = "5gbase-t" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__64GFC_QSFPP DcimInterfaceTemplatesListTypeIcParameterInner = "64gfc-qsfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__64GFC_SFPDD DcimInterfaceTemplatesListTypeIcParameterInner = "64gfc-sfpdd" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__64GFC_SFPP DcimInterfaceTemplatesListTypeIcParameterInner = "64gfc-sfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__800GBASE_X_OSFP DcimInterfaceTemplatesListTypeIcParameterInner = "800gbase-x-osfp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__800GBASE_X_QSFPDD DcimInterfaceTemplatesListTypeIcParameterInner = "800gbase-x-qsfpdd" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER__8GFC_SFPP DcimInterfaceTemplatesListTypeIcParameterInner = "8gfc-sfpp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_BPON DcimInterfaceTemplatesListTypeIcParameterInner = "bpon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_BRIDGE DcimInterfaceTemplatesListTypeIcParameterInner = "bridge" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CDMA DcimInterfaceTemplatesListTypeIcParameterInner = "cdma" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_FLEXSTACK DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-flexstack" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_FLEXSTACK_PLUS DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-flexstack-plus" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE_160 DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise-160" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE_1T DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise-1t" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE_320 DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise-320" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE_480 DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise-480" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE_80 DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise-80" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_CISCO_STACKWISE_PLUS DcimInterfaceTemplatesListTypeIcParameterInner = "cisco-stackwise-plus" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_DOCSIS DcimInterfaceTemplatesListTypeIcParameterInner = "docsis" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_E1 DcimInterfaceTemplatesListTypeIcParameterInner = "e1" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_E3 DcimInterfaceTemplatesListTypeIcParameterInner = "e3" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_EPON DcimInterfaceTemplatesListTypeIcParameterInner = "epon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_EXTREME_SUMMITSTACK DcimInterfaceTemplatesListTypeIcParameterInner = "extreme-summitstack" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_EXTREME_SUMMITSTACK_128 DcimInterfaceTemplatesListTypeIcParameterInner = "extreme-summitstack-128" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_EXTREME_SUMMITSTACK_256 DcimInterfaceTemplatesListTypeIcParameterInner = "extreme-summitstack-256" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_EXTREME_SUMMITSTACK_512 DcimInterfaceTemplatesListTypeIcParameterInner = "extreme-summitstack-512" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_GPON DcimInterfaceTemplatesListTypeIcParameterInner = "gpon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_GSM DcimInterfaceTemplatesListTypeIcParameterInner = "gsm" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11A DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11a" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11AC DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11ac" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11AD DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11ad" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11AX DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11ax" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11AY DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11ay" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11BE DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11be" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11G DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11g" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_11N DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.11n" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_15_1 DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.15.1" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_IEEE802_15_4 DcimInterfaceTemplatesListTypeIcParameterInner = "ieee802.15.4" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_DDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-ddr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_EDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-edr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_FDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-fdr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_FDR10 DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-fdr10" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_HDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-hdr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_NDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-ndr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_QDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-qdr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_SDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-sdr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_INFINIBAND_XDR DcimInterfaceTemplatesListTypeIcParameterInner = "infiniband-xdr" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_JUNIPER_VCP DcimInterfaceTemplatesListTypeIcParameterInner = "juniper-vcp" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_LAG DcimInterfaceTemplatesListTypeIcParameterInner = "lag" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_LTE DcimInterfaceTemplatesListTypeIcParameterInner = "lte" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_NG_PON2 DcimInterfaceTemplatesListTypeIcParameterInner = "ng-pon2" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_OTHER DcimInterfaceTemplatesListTypeIcParameterInner = "other" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_OTHER_WIRELESS DcimInterfaceTemplatesListTypeIcParameterInner = "other-wireless" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC12 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc12" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC192 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc192" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC1920 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc1920" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC3 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc3" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC3840 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc3840" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC48 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc48" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_SONET_OC768 DcimInterfaceTemplatesListTypeIcParameterInner = "sonet-oc768" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_T1 DcimInterfaceTemplatesListTypeIcParameterInner = "t1" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_T3 DcimInterfaceTemplatesListTypeIcParameterInner = "t3" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_VIRTUAL DcimInterfaceTemplatesListTypeIcParameterInner = "virtual" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_XDSL DcimInterfaceTemplatesListTypeIcParameterInner = "xdsl" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_XG_PON DcimInterfaceTemplatesListTypeIcParameterInner = "xg-pon" + DCIMINTERFACETEMPLATESLISTTYPEICPARAMETERINNER_XGS_PON DcimInterfaceTemplatesListTypeIcParameterInner = "xgs-pon" +) + +// All allowed values of DcimInterfaceTemplatesListTypeIcParameterInner enum +var AllowedDcimInterfaceTemplatesListTypeIcParameterInnerEnumValues = []DcimInterfaceTemplatesListTypeIcParameterInner{ + "1000base-kx", + "1000base-t", + "1000base-tx", + "1000base-x-gbic", + "1000base-x-sfp", + "100base-fx", + "100base-lfx", + "100base-t1", + "100base-tx", + "100base-x-sfp", + "100gbase-kp4", + "100gbase-kr2", + "100gbase-kr4", + "100gbase-x-cfp", + "100gbase-x-cfp2", + "100gbase-x-cfp4", + "100gbase-x-cpak", + "100gbase-x-cxp", + "100gbase-x-dsfp", + "100gbase-x-qsfp28", + "100gbase-x-qsfpdd", + "100gbase-x-sfpdd", + "10g-epon", + "10gbase-cx4", + "10gbase-kr", + "10gbase-kx4", + "10gbase-t", + "10gbase-x-sfpp", + "10gbase-x-x2", + "10gbase-x-xenpak", + "10gbase-x-xfp", + "128gfc-qsfp28", + "16gfc-sfpp", + "1gfc-sfp", + "2.5gbase-kx", + "2.5gbase-t", + "200gbase-x-cfp2", + "200gbase-x-qsfp56", + "200gbase-x-qsfpdd", + "25g-pon", + "25gbase-kr", + "25gbase-x-sfp28", + "2gfc-sfp", + "32gfc-sfp28", + "32gfc-sfpp", + "400gbase-x-cdfp", + "400gbase-x-cfp2", + "400gbase-x-cfp8", + "400gbase-x-osfp", + "400gbase-x-osfp-rhs", + "400gbase-x-qsfp112", + "400gbase-x-qsfpdd", + "40gbase-kr4", + "40gbase-x-qsfpp", + "4g", + "4gfc-sfp", + "50g-pon", + "50gbase-kr", + "50gbase-x-sfp28", + "50gbase-x-sfp56", + "5g", + "5gbase-kr", + "5gbase-t", + "64gfc-qsfpp", + "64gfc-sfpdd", + "64gfc-sfpp", + "800gbase-x-osfp", + "800gbase-x-qsfpdd", + "8gfc-sfpp", + "bpon", + "bridge", + "cdma", + "cisco-flexstack", + "cisco-flexstack-plus", + "cisco-stackwise", + "cisco-stackwise-160", + "cisco-stackwise-1t", + "cisco-stackwise-320", + "cisco-stackwise-480", + "cisco-stackwise-80", + "cisco-stackwise-plus", + "docsis", + "e1", + "e3", + "epon", + "extreme-summitstack", + "extreme-summitstack-128", + "extreme-summitstack-256", + "extreme-summitstack-512", + "gpon", + "gsm", + "ieee802.11a", + "ieee802.11ac", + "ieee802.11ad", + "ieee802.11ax", + "ieee802.11ay", + "ieee802.11be", + "ieee802.11g", + "ieee802.11n", + "ieee802.15.1", + "ieee802.15.4", + "infiniband-ddr", + "infiniband-edr", + "infiniband-fdr", + "infiniband-fdr10", + "infiniband-hdr", + "infiniband-ndr", + "infiniband-qdr", + "infiniband-sdr", + "infiniband-xdr", + "juniper-vcp", + "lag", + "lte", + "ng-pon2", + "other", + "other-wireless", + "sonet-oc12", + "sonet-oc192", + "sonet-oc1920", + "sonet-oc3", + "sonet-oc3840", + "sonet-oc48", + "sonet-oc768", + "t1", + "t3", + "virtual", + "xdsl", + "xg-pon", + "xgs-pon", +} + +func (v *DcimInterfaceTemplatesListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimInterfaceTemplatesListTypeIcParameterInner(value) + for _, existing := range AllowedDcimInterfaceTemplatesListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimInterfaceTemplatesListTypeIcParameterInner", value) +} + +// NewDcimInterfaceTemplatesListTypeIcParameterInnerFromValue returns a pointer to a valid DcimInterfaceTemplatesListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimInterfaceTemplatesListTypeIcParameterInnerFromValue(v string) (*DcimInterfaceTemplatesListTypeIcParameterInner, error) { + ev := DcimInterfaceTemplatesListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimInterfaceTemplatesListTypeIcParameterInner: valid values are %v", v, AllowedDcimInterfaceTemplatesListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimInterfaceTemplatesListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimInterfaceTemplatesListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_interface_templates_list_type__ic_parameter_inner value +func (v DcimInterfaceTemplatesListTypeIcParameterInner) Ptr() *DcimInterfaceTemplatesListTypeIcParameterInner { + return &v +} + +type NullableDcimInterfaceTemplatesListTypeIcParameterInner struct { + value *DcimInterfaceTemplatesListTypeIcParameterInner + isSet bool +} + +func (v NullableDcimInterfaceTemplatesListTypeIcParameterInner) Get() *DcimInterfaceTemplatesListTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimInterfaceTemplatesListTypeIcParameterInner) Set(val *DcimInterfaceTemplatesListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimInterfaceTemplatesListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimInterfaceTemplatesListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimInterfaceTemplatesListTypeIcParameterInner(val *DcimInterfaceTemplatesListTypeIcParameterInner) *NullableDcimInterfaceTemplatesListTypeIcParameterInner { + return &NullableDcimInterfaceTemplatesListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimInterfaceTemplatesListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimInterfaceTemplatesListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_interfaces_list_duplex__ic_parameter_inner.go b/model_dcim_interfaces_list_duplex__ic_parameter_inner.go new file mode 100644 index 000000000..cddc47004 --- /dev/null +++ b/model_dcim_interfaces_list_duplex__ic_parameter_inner.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimInterfacesListDuplexIcParameterInner the model 'DcimInterfacesListDuplexIcParameterInner' +type DcimInterfacesListDuplexIcParameterInner string + +// List of dcim_interfaces_list_duplex__ic_parameter_inner +const ( + DCIMINTERFACESLISTDUPLEXICPARAMETERINNER_EMPTY DcimInterfacesListDuplexIcParameterInner = "" + DCIMINTERFACESLISTDUPLEXICPARAMETERINNER_NULL DcimInterfacesListDuplexIcParameterInner = "null" + DCIMINTERFACESLISTDUPLEXICPARAMETERINNER_AUTO DcimInterfacesListDuplexIcParameterInner = "auto" + DCIMINTERFACESLISTDUPLEXICPARAMETERINNER_FULL DcimInterfacesListDuplexIcParameterInner = "full" + DCIMINTERFACESLISTDUPLEXICPARAMETERINNER_HALF DcimInterfacesListDuplexIcParameterInner = "half" +) + +// All allowed values of DcimInterfacesListDuplexIcParameterInner enum +var AllowedDcimInterfacesListDuplexIcParameterInnerEnumValues = []DcimInterfacesListDuplexIcParameterInner{ + "", + "null", + "auto", + "full", + "half", +} + +func (v *DcimInterfacesListDuplexIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimInterfacesListDuplexIcParameterInner(value) + for _, existing := range AllowedDcimInterfacesListDuplexIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimInterfacesListDuplexIcParameterInner", value) +} + +// NewDcimInterfacesListDuplexIcParameterInnerFromValue returns a pointer to a valid DcimInterfacesListDuplexIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimInterfacesListDuplexIcParameterInnerFromValue(v string) (*DcimInterfacesListDuplexIcParameterInner, error) { + ev := DcimInterfacesListDuplexIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimInterfacesListDuplexIcParameterInner: valid values are %v", v, AllowedDcimInterfacesListDuplexIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimInterfacesListDuplexIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimInterfacesListDuplexIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_interfaces_list_duplex__ic_parameter_inner value +func (v DcimInterfacesListDuplexIcParameterInner) Ptr() *DcimInterfacesListDuplexIcParameterInner { + return &v +} + +type NullableDcimInterfacesListDuplexIcParameterInner struct { + value *DcimInterfacesListDuplexIcParameterInner + isSet bool +} + +func (v NullableDcimInterfacesListDuplexIcParameterInner) Get() *DcimInterfacesListDuplexIcParameterInner { + return v.value +} + +func (v *NullableDcimInterfacesListDuplexIcParameterInner) Set(val *DcimInterfacesListDuplexIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimInterfacesListDuplexIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimInterfacesListDuplexIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimInterfacesListDuplexIcParameterInner(val *DcimInterfacesListDuplexIcParameterInner) *NullableDcimInterfacesListDuplexIcParameterInner { + return &NullableDcimInterfacesListDuplexIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimInterfacesListDuplexIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimInterfacesListDuplexIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_locations_list_status__ic_parameter_inner.go b/model_dcim_locations_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..7780e5889 --- /dev/null +++ b/model_dcim_locations_list_status__ic_parameter_inner.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimLocationsListStatusIcParameterInner the model 'DcimLocationsListStatusIcParameterInner' +type DcimLocationsListStatusIcParameterInner string + +// List of dcim_locations_list_status__ic_parameter_inner +const ( + DCIMLOCATIONSLISTSTATUSICPARAMETERINNER_ACTIVE DcimLocationsListStatusIcParameterInner = "active" + DCIMLOCATIONSLISTSTATUSICPARAMETERINNER_DECOMMISSIONING DcimLocationsListStatusIcParameterInner = "decommissioning" + DCIMLOCATIONSLISTSTATUSICPARAMETERINNER_PLANNED DcimLocationsListStatusIcParameterInner = "planned" + DCIMLOCATIONSLISTSTATUSICPARAMETERINNER_RETIRED DcimLocationsListStatusIcParameterInner = "retired" + DCIMLOCATIONSLISTSTATUSICPARAMETERINNER_STAGING DcimLocationsListStatusIcParameterInner = "staging" +) + +// All allowed values of DcimLocationsListStatusIcParameterInner enum +var AllowedDcimLocationsListStatusIcParameterInnerEnumValues = []DcimLocationsListStatusIcParameterInner{ + "active", + "decommissioning", + "planned", + "retired", + "staging", +} + +func (v *DcimLocationsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimLocationsListStatusIcParameterInner(value) + for _, existing := range AllowedDcimLocationsListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimLocationsListStatusIcParameterInner", value) +} + +// NewDcimLocationsListStatusIcParameterInnerFromValue returns a pointer to a valid DcimLocationsListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimLocationsListStatusIcParameterInnerFromValue(v string) (*DcimLocationsListStatusIcParameterInner, error) { + ev := DcimLocationsListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimLocationsListStatusIcParameterInner: valid values are %v", v, AllowedDcimLocationsListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimLocationsListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimLocationsListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_locations_list_status__ic_parameter_inner value +func (v DcimLocationsListStatusIcParameterInner) Ptr() *DcimLocationsListStatusIcParameterInner { + return &v +} + +type NullableDcimLocationsListStatusIcParameterInner struct { + value *DcimLocationsListStatusIcParameterInner + isSet bool +} + +func (v NullableDcimLocationsListStatusIcParameterInner) Get() *DcimLocationsListStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimLocationsListStatusIcParameterInner) Set(val *DcimLocationsListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimLocationsListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimLocationsListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimLocationsListStatusIcParameterInner(val *DcimLocationsListStatusIcParameterInner) *NullableDcimLocationsListStatusIcParameterInner { + return &NullableDcimLocationsListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimLocationsListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimLocationsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_modules_list_status__ic_parameter_inner.go b/model_dcim_modules_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..9853b6ddc --- /dev/null +++ b/model_dcim_modules_list_status__ic_parameter_inner.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimModulesListStatusIcParameterInner the model 'DcimModulesListStatusIcParameterInner' +type DcimModulesListStatusIcParameterInner string + +// List of dcim_modules_list_status__ic_parameter_inner +const ( + DCIMMODULESLISTSTATUSICPARAMETERINNER_ACTIVE DcimModulesListStatusIcParameterInner = "active" + DCIMMODULESLISTSTATUSICPARAMETERINNER_DECOMMISSIONING DcimModulesListStatusIcParameterInner = "decommissioning" + DCIMMODULESLISTSTATUSICPARAMETERINNER_FAILED DcimModulesListStatusIcParameterInner = "failed" + DCIMMODULESLISTSTATUSICPARAMETERINNER_OFFLINE DcimModulesListStatusIcParameterInner = "offline" + DCIMMODULESLISTSTATUSICPARAMETERINNER_PLANNED DcimModulesListStatusIcParameterInner = "planned" + DCIMMODULESLISTSTATUSICPARAMETERINNER_STAGED DcimModulesListStatusIcParameterInner = "staged" +) + +// All allowed values of DcimModulesListStatusIcParameterInner enum +var AllowedDcimModulesListStatusIcParameterInnerEnumValues = []DcimModulesListStatusIcParameterInner{ + "active", + "decommissioning", + "failed", + "offline", + "planned", + "staged", +} + +func (v *DcimModulesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimModulesListStatusIcParameterInner(value) + for _, existing := range AllowedDcimModulesListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimModulesListStatusIcParameterInner", value) +} + +// NewDcimModulesListStatusIcParameterInnerFromValue returns a pointer to a valid DcimModulesListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimModulesListStatusIcParameterInnerFromValue(v string) (*DcimModulesListStatusIcParameterInner, error) { + ev := DcimModulesListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimModulesListStatusIcParameterInner: valid values are %v", v, AllowedDcimModulesListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimModulesListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimModulesListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_modules_list_status__ic_parameter_inner value +func (v DcimModulesListStatusIcParameterInner) Ptr() *DcimModulesListStatusIcParameterInner { + return &v +} + +type NullableDcimModulesListStatusIcParameterInner struct { + value *DcimModulesListStatusIcParameterInner + isSet bool +} + +func (v NullableDcimModulesListStatusIcParameterInner) Get() *DcimModulesListStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimModulesListStatusIcParameterInner) Set(val *DcimModulesListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimModulesListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimModulesListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimModulesListStatusIcParameterInner(val *DcimModulesListStatusIcParameterInner) *NullableDcimModulesListStatusIcParameterInner { + return &NullableDcimModulesListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimModulesListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimModulesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_power_feeds_list_status__ic_parameter_inner.go b/model_dcim_power_feeds_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..0abd0c7ad --- /dev/null +++ b/model_dcim_power_feeds_list_status__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimPowerFeedsListStatusIcParameterInner the model 'DcimPowerFeedsListStatusIcParameterInner' +type DcimPowerFeedsListStatusIcParameterInner string + +// List of dcim_power_feeds_list_status__ic_parameter_inner +const ( + DCIMPOWERFEEDSLISTSTATUSICPARAMETERINNER_ACTIVE DcimPowerFeedsListStatusIcParameterInner = "active" + DCIMPOWERFEEDSLISTSTATUSICPARAMETERINNER_FAILED DcimPowerFeedsListStatusIcParameterInner = "failed" + DCIMPOWERFEEDSLISTSTATUSICPARAMETERINNER_OFFLINE DcimPowerFeedsListStatusIcParameterInner = "offline" + DCIMPOWERFEEDSLISTSTATUSICPARAMETERINNER_PLANNED DcimPowerFeedsListStatusIcParameterInner = "planned" +) + +// All allowed values of DcimPowerFeedsListStatusIcParameterInner enum +var AllowedDcimPowerFeedsListStatusIcParameterInnerEnumValues = []DcimPowerFeedsListStatusIcParameterInner{ + "active", + "failed", + "offline", + "planned", +} + +func (v *DcimPowerFeedsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimPowerFeedsListStatusIcParameterInner(value) + for _, existing := range AllowedDcimPowerFeedsListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimPowerFeedsListStatusIcParameterInner", value) +} + +// NewDcimPowerFeedsListStatusIcParameterInnerFromValue returns a pointer to a valid DcimPowerFeedsListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimPowerFeedsListStatusIcParameterInnerFromValue(v string) (*DcimPowerFeedsListStatusIcParameterInner, error) { + ev := DcimPowerFeedsListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimPowerFeedsListStatusIcParameterInner: valid values are %v", v, AllowedDcimPowerFeedsListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimPowerFeedsListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimPowerFeedsListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_power_feeds_list_status__ic_parameter_inner value +func (v DcimPowerFeedsListStatusIcParameterInner) Ptr() *DcimPowerFeedsListStatusIcParameterInner { + return &v +} + +type NullableDcimPowerFeedsListStatusIcParameterInner struct { + value *DcimPowerFeedsListStatusIcParameterInner + isSet bool +} + +func (v NullableDcimPowerFeedsListStatusIcParameterInner) Get() *DcimPowerFeedsListStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimPowerFeedsListStatusIcParameterInner) Set(val *DcimPowerFeedsListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimPowerFeedsListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimPowerFeedsListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimPowerFeedsListStatusIcParameterInner(val *DcimPowerFeedsListStatusIcParameterInner) *NullableDcimPowerFeedsListStatusIcParameterInner { + return &NullableDcimPowerFeedsListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimPowerFeedsListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimPowerFeedsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner.go b/model_dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner.go new file mode 100644 index 000000000..d60580026 --- /dev/null +++ b/model_dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimPowerOutletTemplatesListFeedLegIcParameterInner the model 'DcimPowerOutletTemplatesListFeedLegIcParameterInner' +type DcimPowerOutletTemplatesListFeedLegIcParameterInner string + +// List of dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner +const ( + DCIMPOWEROUTLETTEMPLATESLISTFEEDLEGICPARAMETERINNER_EMPTY DcimPowerOutletTemplatesListFeedLegIcParameterInner = "" + DCIMPOWEROUTLETTEMPLATESLISTFEEDLEGICPARAMETERINNER_A DcimPowerOutletTemplatesListFeedLegIcParameterInner = "A" + DCIMPOWEROUTLETTEMPLATESLISTFEEDLEGICPARAMETERINNER_B DcimPowerOutletTemplatesListFeedLegIcParameterInner = "B" + DCIMPOWEROUTLETTEMPLATESLISTFEEDLEGICPARAMETERINNER_C DcimPowerOutletTemplatesListFeedLegIcParameterInner = "C" +) + +// All allowed values of DcimPowerOutletTemplatesListFeedLegIcParameterInner enum +var AllowedDcimPowerOutletTemplatesListFeedLegIcParameterInnerEnumValues = []DcimPowerOutletTemplatesListFeedLegIcParameterInner{ + "", + "A", + "B", + "C", +} + +func (v *DcimPowerOutletTemplatesListFeedLegIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimPowerOutletTemplatesListFeedLegIcParameterInner(value) + for _, existing := range AllowedDcimPowerOutletTemplatesListFeedLegIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimPowerOutletTemplatesListFeedLegIcParameterInner", value) +} + +// NewDcimPowerOutletTemplatesListFeedLegIcParameterInnerFromValue returns a pointer to a valid DcimPowerOutletTemplatesListFeedLegIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimPowerOutletTemplatesListFeedLegIcParameterInnerFromValue(v string) (*DcimPowerOutletTemplatesListFeedLegIcParameterInner, error) { + ev := DcimPowerOutletTemplatesListFeedLegIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimPowerOutletTemplatesListFeedLegIcParameterInner: valid values are %v", v, AllowedDcimPowerOutletTemplatesListFeedLegIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimPowerOutletTemplatesListFeedLegIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimPowerOutletTemplatesListFeedLegIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_power_outlet_templates_list_feed_leg__ic_parameter_inner value +func (v DcimPowerOutletTemplatesListFeedLegIcParameterInner) Ptr() *DcimPowerOutletTemplatesListFeedLegIcParameterInner { + return &v +} + +type NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner struct { + value *DcimPowerOutletTemplatesListFeedLegIcParameterInner + isSet bool +} + +func (v NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner) Get() *DcimPowerOutletTemplatesListFeedLegIcParameterInner { + return v.value +} + +func (v *NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner) Set(val *DcimPowerOutletTemplatesListFeedLegIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimPowerOutletTemplatesListFeedLegIcParameterInner(val *DcimPowerOutletTemplatesListFeedLegIcParameterInner) *NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner { + return &NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimPowerOutletTemplatesListFeedLegIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_power_outlets_list_type__ic_parameter_inner.go b/model_dcim_power_outlets_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..b7ecf47b1 --- /dev/null +++ b/model_dcim_power_outlets_list_type__ic_parameter_inner.go @@ -0,0 +1,305 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimPowerOutletsListTypeIcParameterInner the model 'DcimPowerOutletsListTypeIcParameterInner' +type DcimPowerOutletsListTypeIcParameterInner string + +// List of dcim_power_outlets_list_type__ic_parameter_inner +const ( + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_EMPTY DcimPowerOutletsListTypeIcParameterInner = "" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_CS6360_C DcimPowerOutletsListTypeIcParameterInner = "CS6360C" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_CS6364_C DcimPowerOutletsListTypeIcParameterInner = "CS6364C" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_CS8164_C DcimPowerOutletsListTypeIcParameterInner = "CS8164C" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_CS8264_C DcimPowerOutletsListTypeIcParameterInner = "CS8264C" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_CS8364_C DcimPowerOutletsListTypeIcParameterInner = "CS8364C" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_CS8464_C DcimPowerOutletsListTypeIcParameterInner = "CS8464C" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_DC_TERMINAL DcimPowerOutletsListTypeIcParameterInner = "dc-terminal" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_EATON_C39 DcimPowerOutletsListTypeIcParameterInner = "eaton-c39" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_HARDWIRED DcimPowerOutletsListTypeIcParameterInner = "hardwired" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_HDOT_CX DcimPowerOutletsListTypeIcParameterInner = "hdot-cx" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_2P_E_4H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-2p-e-4h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_2P_E_6H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-2p-e-6h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_2P_E_9H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-2p-e-9h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_3P_E_4H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-3p-e-4h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_3P_E_6H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-3p-e-6h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_3P_E_9H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-3p-e-9h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_3P_N_E_4H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-3p-n-e-4h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_3P_N_E_6H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-3p-n-e-6h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_3P_N_E_9H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-3p-n-e-9h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_P_N_E_4H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-p-n-e-4h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_P_N_E_6H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-p-n-e-6h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60309_P_N_E_9H DcimPowerOutletsListTypeIcParameterInner = "iec-60309-p-n-e-9h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60320_C13 DcimPowerOutletsListTypeIcParameterInner = "iec-60320-c13" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60320_C15 DcimPowerOutletsListTypeIcParameterInner = "iec-60320-c15" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60320_C19 DcimPowerOutletsListTypeIcParameterInner = "iec-60320-c19" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60320_C21 DcimPowerOutletsListTypeIcParameterInner = "iec-60320-c21" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60320_C5 DcimPowerOutletsListTypeIcParameterInner = "iec-60320-c5" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60320_C7 DcimPowerOutletsListTypeIcParameterInner = "iec-60320-c7" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_IEC_60906_1 DcimPowerOutletsListTypeIcParameterInner = "iec-60906-1" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_E DcimPowerOutletsListTypeIcParameterInner = "ita-e" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_F DcimPowerOutletsListTypeIcParameterInner = "ita-f" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_G DcimPowerOutletsListTypeIcParameterInner = "ita-g" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_H DcimPowerOutletsListTypeIcParameterInner = "ita-h" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_I DcimPowerOutletsListTypeIcParameterInner = "ita-i" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_J DcimPowerOutletsListTypeIcParameterInner = "ita-j" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_K DcimPowerOutletsListTypeIcParameterInner = "ita-k" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_L DcimPowerOutletsListTypeIcParameterInner = "ita-l" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_M DcimPowerOutletsListTypeIcParameterInner = "ita-m" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_MULTISTANDARD DcimPowerOutletsListTypeIcParameterInner = "ita-multistandard" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_N DcimPowerOutletsListTypeIcParameterInner = "ita-n" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_ITA_O DcimPowerOutletsListTypeIcParameterInner = "ita-o" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_MOLEX_MICRO_FIT_1X2 DcimPowerOutletsListTypeIcParameterInner = "molex-micro-fit-1x2" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_MOLEX_MICRO_FIT_2X2 DcimPowerOutletsListTypeIcParameterInner = "molex-micro-fit-2x2" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_MOLEX_MICRO_FIT_2X4 DcimPowerOutletsListTypeIcParameterInner = "molex-micro-fit-2x4" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NBR_14136_10A DcimPowerOutletsListTypeIcParameterInner = "nbr-14136-10a" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NBR_14136_20A DcimPowerOutletsListTypeIcParameterInner = "nbr-14136-20a" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_1_15R DcimPowerOutletsListTypeIcParameterInner = "nema-1-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_10_30R DcimPowerOutletsListTypeIcParameterInner = "nema-10-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_10_50R DcimPowerOutletsListTypeIcParameterInner = "nema-10-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_14_20R DcimPowerOutletsListTypeIcParameterInner = "nema-14-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_14_30R DcimPowerOutletsListTypeIcParameterInner = "nema-14-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_14_50R DcimPowerOutletsListTypeIcParameterInner = "nema-14-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_14_60R DcimPowerOutletsListTypeIcParameterInner = "nema-14-60r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_15_15R DcimPowerOutletsListTypeIcParameterInner = "nema-15-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_15_20R DcimPowerOutletsListTypeIcParameterInner = "nema-15-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_15_30R DcimPowerOutletsListTypeIcParameterInner = "nema-15-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_15_50R DcimPowerOutletsListTypeIcParameterInner = "nema-15-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_15_60R DcimPowerOutletsListTypeIcParameterInner = "nema-15-60r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_5_15R DcimPowerOutletsListTypeIcParameterInner = "nema-5-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_5_20R DcimPowerOutletsListTypeIcParameterInner = "nema-5-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_5_30R DcimPowerOutletsListTypeIcParameterInner = "nema-5-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_5_50R DcimPowerOutletsListTypeIcParameterInner = "nema-5-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_6_15R DcimPowerOutletsListTypeIcParameterInner = "nema-6-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_6_20R DcimPowerOutletsListTypeIcParameterInner = "nema-6-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_6_30R DcimPowerOutletsListTypeIcParameterInner = "nema-6-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_6_50R DcimPowerOutletsListTypeIcParameterInner = "nema-6-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L1_15R DcimPowerOutletsListTypeIcParameterInner = "nema-l1-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L10_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l10-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L14_20R DcimPowerOutletsListTypeIcParameterInner = "nema-l14-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L14_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l14-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L14_50R DcimPowerOutletsListTypeIcParameterInner = "nema-l14-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L14_60R DcimPowerOutletsListTypeIcParameterInner = "nema-l14-60r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L15_20R DcimPowerOutletsListTypeIcParameterInner = "nema-l15-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L15_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l15-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L15_50R DcimPowerOutletsListTypeIcParameterInner = "nema-l15-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L15_60R DcimPowerOutletsListTypeIcParameterInner = "nema-l15-60r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L21_20R DcimPowerOutletsListTypeIcParameterInner = "nema-l21-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L21_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l21-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L22_20R DcimPowerOutletsListTypeIcParameterInner = "nema-l22-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L22_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l22-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L5_15R DcimPowerOutletsListTypeIcParameterInner = "nema-l5-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L5_20R DcimPowerOutletsListTypeIcParameterInner = "nema-l5-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L5_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l5-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L5_50R DcimPowerOutletsListTypeIcParameterInner = "nema-l5-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L6_15R DcimPowerOutletsListTypeIcParameterInner = "nema-l6-15r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L6_20R DcimPowerOutletsListTypeIcParameterInner = "nema-l6-20r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L6_30R DcimPowerOutletsListTypeIcParameterInner = "nema-l6-30r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEMA_L6_50R DcimPowerOutletsListTypeIcParameterInner = "nema-l6-50r" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_20A DcimPowerOutletsListTypeIcParameterInner = "neutrik-powercon-20a" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_32A DcimPowerOutletsListTypeIcParameterInner = "neutrik-powercon-32a" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_TRUE1 DcimPowerOutletsListTypeIcParameterInner = "neutrik-powercon-true1" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_TRUE1_TOP DcimPowerOutletsListTypeIcParameterInner = "neutrik-powercon-true1-top" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_OTHER DcimPowerOutletsListTypeIcParameterInner = "other" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_SAF_D_GRID DcimPowerOutletsListTypeIcParameterInner = "saf-d-grid" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_UBIQUITI_SMARTPOWER DcimPowerOutletsListTypeIcParameterInner = "ubiquiti-smartpower" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_USB_A DcimPowerOutletsListTypeIcParameterInner = "usb-a" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_USB_C DcimPowerOutletsListTypeIcParameterInner = "usb-c" + DCIMPOWEROUTLETSLISTTYPEICPARAMETERINNER_USB_MICRO_B DcimPowerOutletsListTypeIcParameterInner = "usb-micro-b" +) + +// All allowed values of DcimPowerOutletsListTypeIcParameterInner enum +var AllowedDcimPowerOutletsListTypeIcParameterInnerEnumValues = []DcimPowerOutletsListTypeIcParameterInner{ + "", + "CS6360C", + "CS6364C", + "CS8164C", + "CS8264C", + "CS8364C", + "CS8464C", + "dc-terminal", + "eaton-c39", + "hardwired", + "hdot-cx", + "iec-60309-2p-e-4h", + "iec-60309-2p-e-6h", + "iec-60309-2p-e-9h", + "iec-60309-3p-e-4h", + "iec-60309-3p-e-6h", + "iec-60309-3p-e-9h", + "iec-60309-3p-n-e-4h", + "iec-60309-3p-n-e-6h", + "iec-60309-3p-n-e-9h", + "iec-60309-p-n-e-4h", + "iec-60309-p-n-e-6h", + "iec-60309-p-n-e-9h", + "iec-60320-c13", + "iec-60320-c15", + "iec-60320-c19", + "iec-60320-c21", + "iec-60320-c5", + "iec-60320-c7", + "iec-60906-1", + "ita-e", + "ita-f", + "ita-g", + "ita-h", + "ita-i", + "ita-j", + "ita-k", + "ita-l", + "ita-m", + "ita-multistandard", + "ita-n", + "ita-o", + "molex-micro-fit-1x2", + "molex-micro-fit-2x2", + "molex-micro-fit-2x4", + "nbr-14136-10a", + "nbr-14136-20a", + "nema-1-15r", + "nema-10-30r", + "nema-10-50r", + "nema-14-20r", + "nema-14-30r", + "nema-14-50r", + "nema-14-60r", + "nema-15-15r", + "nema-15-20r", + "nema-15-30r", + "nema-15-50r", + "nema-15-60r", + "nema-5-15r", + "nema-5-20r", + "nema-5-30r", + "nema-5-50r", + "nema-6-15r", + "nema-6-20r", + "nema-6-30r", + "nema-6-50r", + "nema-l1-15r", + "nema-l10-30r", + "nema-l14-20r", + "nema-l14-30r", + "nema-l14-50r", + "nema-l14-60r", + "nema-l15-20r", + "nema-l15-30r", + "nema-l15-50r", + "nema-l15-60r", + "nema-l21-20r", + "nema-l21-30r", + "nema-l22-20r", + "nema-l22-30r", + "nema-l5-15r", + "nema-l5-20r", + "nema-l5-30r", + "nema-l5-50r", + "nema-l6-15r", + "nema-l6-20r", + "nema-l6-30r", + "nema-l6-50r", + "neutrik-powercon-20a", + "neutrik-powercon-32a", + "neutrik-powercon-true1", + "neutrik-powercon-true1-top", + "other", + "saf-d-grid", + "ubiquiti-smartpower", + "usb-a", + "usb-c", + "usb-micro-b", +} + +func (v *DcimPowerOutletsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimPowerOutletsListTypeIcParameterInner(value) + for _, existing := range AllowedDcimPowerOutletsListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimPowerOutletsListTypeIcParameterInner", value) +} + +// NewDcimPowerOutletsListTypeIcParameterInnerFromValue returns a pointer to a valid DcimPowerOutletsListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimPowerOutletsListTypeIcParameterInnerFromValue(v string) (*DcimPowerOutletsListTypeIcParameterInner, error) { + ev := DcimPowerOutletsListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimPowerOutletsListTypeIcParameterInner: valid values are %v", v, AllowedDcimPowerOutletsListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimPowerOutletsListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimPowerOutletsListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_power_outlets_list_type__ic_parameter_inner value +func (v DcimPowerOutletsListTypeIcParameterInner) Ptr() *DcimPowerOutletsListTypeIcParameterInner { + return &v +} + +type NullableDcimPowerOutletsListTypeIcParameterInner struct { + value *DcimPowerOutletsListTypeIcParameterInner + isSet bool +} + +func (v NullableDcimPowerOutletsListTypeIcParameterInner) Get() *DcimPowerOutletsListTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimPowerOutletsListTypeIcParameterInner) Set(val *DcimPowerOutletsListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimPowerOutletsListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimPowerOutletsListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimPowerOutletsListTypeIcParameterInner(val *DcimPowerOutletsListTypeIcParameterInner) *NullableDcimPowerOutletsListTypeIcParameterInner { + return &NullableDcimPowerOutletsListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimPowerOutletsListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimPowerOutletsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_power_ports_list_type__ic_parameter_inner.go b/model_dcim_power_ports_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..1fc3035cd --- /dev/null +++ b/model_dcim_power_ports_list_type__ic_parameter_inner.go @@ -0,0 +1,317 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimPowerPortsListTypeIcParameterInner the model 'DcimPowerPortsListTypeIcParameterInner' +type DcimPowerPortsListTypeIcParameterInner string + +// List of dcim_power_ports_list_type__ic_parameter_inner +const ( + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_EMPTY DcimPowerPortsListTypeIcParameterInner = "" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_CS6361C DcimPowerPortsListTypeIcParameterInner = "cs6361c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_CS6365C DcimPowerPortsListTypeIcParameterInner = "cs6365c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_CS8165C DcimPowerPortsListTypeIcParameterInner = "cs8165c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_CS8265C DcimPowerPortsListTypeIcParameterInner = "cs8265c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_CS8365C DcimPowerPortsListTypeIcParameterInner = "cs8365c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_CS8465C DcimPowerPortsListTypeIcParameterInner = "cs8465c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_DC_TERMINAL DcimPowerPortsListTypeIcParameterInner = "dc-terminal" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_HARDWIRED DcimPowerPortsListTypeIcParameterInner = "hardwired" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_2P_E_4H DcimPowerPortsListTypeIcParameterInner = "iec-60309-2p-e-4h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_2P_E_6H DcimPowerPortsListTypeIcParameterInner = "iec-60309-2p-e-6h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_2P_E_9H DcimPowerPortsListTypeIcParameterInner = "iec-60309-2p-e-9h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_3P_E_4H DcimPowerPortsListTypeIcParameterInner = "iec-60309-3p-e-4h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_3P_E_6H DcimPowerPortsListTypeIcParameterInner = "iec-60309-3p-e-6h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_3P_E_9H DcimPowerPortsListTypeIcParameterInner = "iec-60309-3p-e-9h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_3P_N_E_4H DcimPowerPortsListTypeIcParameterInner = "iec-60309-3p-n-e-4h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_3P_N_E_6H DcimPowerPortsListTypeIcParameterInner = "iec-60309-3p-n-e-6h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_3P_N_E_9H DcimPowerPortsListTypeIcParameterInner = "iec-60309-3p-n-e-9h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_P_N_E_4H DcimPowerPortsListTypeIcParameterInner = "iec-60309-p-n-e-4h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_P_N_E_6H DcimPowerPortsListTypeIcParameterInner = "iec-60309-p-n-e-6h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60309_P_N_E_9H DcimPowerPortsListTypeIcParameterInner = "iec-60309-p-n-e-9h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60320_C14 DcimPowerPortsListTypeIcParameterInner = "iec-60320-c14" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60320_C16 DcimPowerPortsListTypeIcParameterInner = "iec-60320-c16" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60320_C20 DcimPowerPortsListTypeIcParameterInner = "iec-60320-c20" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60320_C22 DcimPowerPortsListTypeIcParameterInner = "iec-60320-c22" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60320_C6 DcimPowerPortsListTypeIcParameterInner = "iec-60320-c6" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60320_C8 DcimPowerPortsListTypeIcParameterInner = "iec-60320-c8" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_IEC_60906_1 DcimPowerPortsListTypeIcParameterInner = "iec-60906-1" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_C DcimPowerPortsListTypeIcParameterInner = "ita-c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_E DcimPowerPortsListTypeIcParameterInner = "ita-e" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_EF DcimPowerPortsListTypeIcParameterInner = "ita-ef" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_F DcimPowerPortsListTypeIcParameterInner = "ita-f" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_G DcimPowerPortsListTypeIcParameterInner = "ita-g" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_H DcimPowerPortsListTypeIcParameterInner = "ita-h" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_I DcimPowerPortsListTypeIcParameterInner = "ita-i" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_J DcimPowerPortsListTypeIcParameterInner = "ita-j" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_K DcimPowerPortsListTypeIcParameterInner = "ita-k" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_L DcimPowerPortsListTypeIcParameterInner = "ita-l" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_M DcimPowerPortsListTypeIcParameterInner = "ita-m" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_N DcimPowerPortsListTypeIcParameterInner = "ita-n" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_ITA_O DcimPowerPortsListTypeIcParameterInner = "ita-o" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_MOLEX_MICRO_FIT_1X2 DcimPowerPortsListTypeIcParameterInner = "molex-micro-fit-1x2" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_MOLEX_MICRO_FIT_2X2 DcimPowerPortsListTypeIcParameterInner = "molex-micro-fit-2x2" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_MOLEX_MICRO_FIT_2X4 DcimPowerPortsListTypeIcParameterInner = "molex-micro-fit-2x4" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NBR_14136_10A DcimPowerPortsListTypeIcParameterInner = "nbr-14136-10a" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NBR_14136_20A DcimPowerPortsListTypeIcParameterInner = "nbr-14136-20a" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_1_15P DcimPowerPortsListTypeIcParameterInner = "nema-1-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_10_30P DcimPowerPortsListTypeIcParameterInner = "nema-10-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_10_50P DcimPowerPortsListTypeIcParameterInner = "nema-10-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_14_20P DcimPowerPortsListTypeIcParameterInner = "nema-14-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_14_30P DcimPowerPortsListTypeIcParameterInner = "nema-14-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_14_50P DcimPowerPortsListTypeIcParameterInner = "nema-14-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_14_60P DcimPowerPortsListTypeIcParameterInner = "nema-14-60p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_15_15P DcimPowerPortsListTypeIcParameterInner = "nema-15-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_15_20P DcimPowerPortsListTypeIcParameterInner = "nema-15-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_15_30P DcimPowerPortsListTypeIcParameterInner = "nema-15-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_15_50P DcimPowerPortsListTypeIcParameterInner = "nema-15-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_15_60P DcimPowerPortsListTypeIcParameterInner = "nema-15-60p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_5_15P DcimPowerPortsListTypeIcParameterInner = "nema-5-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_5_20P DcimPowerPortsListTypeIcParameterInner = "nema-5-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_5_30P DcimPowerPortsListTypeIcParameterInner = "nema-5-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_5_50P DcimPowerPortsListTypeIcParameterInner = "nema-5-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_6_15P DcimPowerPortsListTypeIcParameterInner = "nema-6-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_6_20P DcimPowerPortsListTypeIcParameterInner = "nema-6-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_6_30P DcimPowerPortsListTypeIcParameterInner = "nema-6-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_6_50P DcimPowerPortsListTypeIcParameterInner = "nema-6-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L1_15P DcimPowerPortsListTypeIcParameterInner = "nema-l1-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L10_30P DcimPowerPortsListTypeIcParameterInner = "nema-l10-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L14_20P DcimPowerPortsListTypeIcParameterInner = "nema-l14-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L14_30P DcimPowerPortsListTypeIcParameterInner = "nema-l14-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L14_50P DcimPowerPortsListTypeIcParameterInner = "nema-l14-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L14_60P DcimPowerPortsListTypeIcParameterInner = "nema-l14-60p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L15_20P DcimPowerPortsListTypeIcParameterInner = "nema-l15-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L15_30P DcimPowerPortsListTypeIcParameterInner = "nema-l15-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L15_50P DcimPowerPortsListTypeIcParameterInner = "nema-l15-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L15_60P DcimPowerPortsListTypeIcParameterInner = "nema-l15-60p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L21_20P DcimPowerPortsListTypeIcParameterInner = "nema-l21-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L21_30P DcimPowerPortsListTypeIcParameterInner = "nema-l21-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L22_20P DcimPowerPortsListTypeIcParameterInner = "nema-l22-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L22_30P DcimPowerPortsListTypeIcParameterInner = "nema-l22-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L5_15P DcimPowerPortsListTypeIcParameterInner = "nema-l5-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L5_20P DcimPowerPortsListTypeIcParameterInner = "nema-l5-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L5_30P DcimPowerPortsListTypeIcParameterInner = "nema-l5-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L5_50P DcimPowerPortsListTypeIcParameterInner = "nema-l5-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L6_15P DcimPowerPortsListTypeIcParameterInner = "nema-l6-15p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L6_20P DcimPowerPortsListTypeIcParameterInner = "nema-l6-20p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L6_30P DcimPowerPortsListTypeIcParameterInner = "nema-l6-30p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEMA_L6_50P DcimPowerPortsListTypeIcParameterInner = "nema-l6-50p" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_20 DcimPowerPortsListTypeIcParameterInner = "neutrik-powercon-20" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_32 DcimPowerPortsListTypeIcParameterInner = "neutrik-powercon-32" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_TRUE1 DcimPowerPortsListTypeIcParameterInner = "neutrik-powercon-true1" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_NEUTRIK_POWERCON_TRUE1_TOP DcimPowerPortsListTypeIcParameterInner = "neutrik-powercon-true1-top" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_OTHER DcimPowerPortsListTypeIcParameterInner = "other" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_SAF_D_GRID DcimPowerPortsListTypeIcParameterInner = "saf-d-grid" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_UBIQUITI_SMARTPOWER DcimPowerPortsListTypeIcParameterInner = "ubiquiti-smartpower" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_3_B DcimPowerPortsListTypeIcParameterInner = "usb-3-b" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_3_MICRO_B DcimPowerPortsListTypeIcParameterInner = "usb-3-micro-b" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_A DcimPowerPortsListTypeIcParameterInner = "usb-a" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_B DcimPowerPortsListTypeIcParameterInner = "usb-b" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_C DcimPowerPortsListTypeIcParameterInner = "usb-c" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_MICRO_A DcimPowerPortsListTypeIcParameterInner = "usb-micro-a" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_MICRO_AB DcimPowerPortsListTypeIcParameterInner = "usb-micro-ab" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_MICRO_B DcimPowerPortsListTypeIcParameterInner = "usb-micro-b" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_MINI_A DcimPowerPortsListTypeIcParameterInner = "usb-mini-a" + DCIMPOWERPORTSLISTTYPEICPARAMETERINNER_USB_MINI_B DcimPowerPortsListTypeIcParameterInner = "usb-mini-b" +) + +// All allowed values of DcimPowerPortsListTypeIcParameterInner enum +var AllowedDcimPowerPortsListTypeIcParameterInnerEnumValues = []DcimPowerPortsListTypeIcParameterInner{ + "", + "cs6361c", + "cs6365c", + "cs8165c", + "cs8265c", + "cs8365c", + "cs8465c", + "dc-terminal", + "hardwired", + "iec-60309-2p-e-4h", + "iec-60309-2p-e-6h", + "iec-60309-2p-e-9h", + "iec-60309-3p-e-4h", + "iec-60309-3p-e-6h", + "iec-60309-3p-e-9h", + "iec-60309-3p-n-e-4h", + "iec-60309-3p-n-e-6h", + "iec-60309-3p-n-e-9h", + "iec-60309-p-n-e-4h", + "iec-60309-p-n-e-6h", + "iec-60309-p-n-e-9h", + "iec-60320-c14", + "iec-60320-c16", + "iec-60320-c20", + "iec-60320-c22", + "iec-60320-c6", + "iec-60320-c8", + "iec-60906-1", + "ita-c", + "ita-e", + "ita-ef", + "ita-f", + "ita-g", + "ita-h", + "ita-i", + "ita-j", + "ita-k", + "ita-l", + "ita-m", + "ita-n", + "ita-o", + "molex-micro-fit-1x2", + "molex-micro-fit-2x2", + "molex-micro-fit-2x4", + "nbr-14136-10a", + "nbr-14136-20a", + "nema-1-15p", + "nema-10-30p", + "nema-10-50p", + "nema-14-20p", + "nema-14-30p", + "nema-14-50p", + "nema-14-60p", + "nema-15-15p", + "nema-15-20p", + "nema-15-30p", + "nema-15-50p", + "nema-15-60p", + "nema-5-15p", + "nema-5-20p", + "nema-5-30p", + "nema-5-50p", + "nema-6-15p", + "nema-6-20p", + "nema-6-30p", + "nema-6-50p", + "nema-l1-15p", + "nema-l10-30p", + "nema-l14-20p", + "nema-l14-30p", + "nema-l14-50p", + "nema-l14-60p", + "nema-l15-20p", + "nema-l15-30p", + "nema-l15-50p", + "nema-l15-60p", + "nema-l21-20p", + "nema-l21-30p", + "nema-l22-20p", + "nema-l22-30p", + "nema-l5-15p", + "nema-l5-20p", + "nema-l5-30p", + "nema-l5-50p", + "nema-l6-15p", + "nema-l6-20p", + "nema-l6-30p", + "nema-l6-50p", + "neutrik-powercon-20", + "neutrik-powercon-32", + "neutrik-powercon-true1", + "neutrik-powercon-true1-top", + "other", + "saf-d-grid", + "ubiquiti-smartpower", + "usb-3-b", + "usb-3-micro-b", + "usb-a", + "usb-b", + "usb-c", + "usb-micro-a", + "usb-micro-ab", + "usb-micro-b", + "usb-mini-a", + "usb-mini-b", +} + +func (v *DcimPowerPortsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimPowerPortsListTypeIcParameterInner(value) + for _, existing := range AllowedDcimPowerPortsListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimPowerPortsListTypeIcParameterInner", value) +} + +// NewDcimPowerPortsListTypeIcParameterInnerFromValue returns a pointer to a valid DcimPowerPortsListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimPowerPortsListTypeIcParameterInnerFromValue(v string) (*DcimPowerPortsListTypeIcParameterInner, error) { + ev := DcimPowerPortsListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimPowerPortsListTypeIcParameterInner: valid values are %v", v, AllowedDcimPowerPortsListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimPowerPortsListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimPowerPortsListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_power_ports_list_type__ic_parameter_inner value +func (v DcimPowerPortsListTypeIcParameterInner) Ptr() *DcimPowerPortsListTypeIcParameterInner { + return &v +} + +type NullableDcimPowerPortsListTypeIcParameterInner struct { + value *DcimPowerPortsListTypeIcParameterInner + isSet bool +} + +func (v NullableDcimPowerPortsListTypeIcParameterInner) Get() *DcimPowerPortsListTypeIcParameterInner { + return v.value +} + +func (v *NullableDcimPowerPortsListTypeIcParameterInner) Set(val *DcimPowerPortsListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimPowerPortsListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimPowerPortsListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimPowerPortsListTypeIcParameterInner(val *DcimPowerPortsListTypeIcParameterInner) *NullableDcimPowerPortsListTypeIcParameterInner { + return &NullableDcimPowerPortsListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimPowerPortsListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimPowerPortsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_rack_types_list_form_factor__ic_parameter_inner.go b/model_dcim_rack_types_list_form_factor__ic_parameter_inner.go new file mode 100644 index 000000000..59ffea3a3 --- /dev/null +++ b/model_dcim_rack_types_list_form_factor__ic_parameter_inner.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRackTypesListFormFactorIcParameterInner the model 'DcimRackTypesListFormFactorIcParameterInner' +type DcimRackTypesListFormFactorIcParameterInner string + +// List of dcim_rack_types_list_form_factor__ic_parameter_inner +const ( + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER__2_POST_FRAME DcimRackTypesListFormFactorIcParameterInner = "2-post-frame" + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER__4_POST_CABINET DcimRackTypesListFormFactorIcParameterInner = "4-post-cabinet" + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER__4_POST_FRAME DcimRackTypesListFormFactorIcParameterInner = "4-post-frame" + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER_WALL_CABINET DcimRackTypesListFormFactorIcParameterInner = "wall-cabinet" + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER_WALL_CABINET_VERTICAL DcimRackTypesListFormFactorIcParameterInner = "wall-cabinet-vertical" + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER_WALL_FRAME DcimRackTypesListFormFactorIcParameterInner = "wall-frame" + DCIMRACKTYPESLISTFORMFACTORICPARAMETERINNER_WALL_FRAME_VERTICAL DcimRackTypesListFormFactorIcParameterInner = "wall-frame-vertical" +) + +// All allowed values of DcimRackTypesListFormFactorIcParameterInner enum +var AllowedDcimRackTypesListFormFactorIcParameterInnerEnumValues = []DcimRackTypesListFormFactorIcParameterInner{ + "2-post-frame", + "4-post-cabinet", + "4-post-frame", + "wall-cabinet", + "wall-cabinet-vertical", + "wall-frame", + "wall-frame-vertical", +} + +func (v *DcimRackTypesListFormFactorIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRackTypesListFormFactorIcParameterInner(value) + for _, existing := range AllowedDcimRackTypesListFormFactorIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRackTypesListFormFactorIcParameterInner", value) +} + +// NewDcimRackTypesListFormFactorIcParameterInnerFromValue returns a pointer to a valid DcimRackTypesListFormFactorIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRackTypesListFormFactorIcParameterInnerFromValue(v string) (*DcimRackTypesListFormFactorIcParameterInner, error) { + ev := DcimRackTypesListFormFactorIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRackTypesListFormFactorIcParameterInner: valid values are %v", v, AllowedDcimRackTypesListFormFactorIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRackTypesListFormFactorIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimRackTypesListFormFactorIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_rack_types_list_form_factor__ic_parameter_inner value +func (v DcimRackTypesListFormFactorIcParameterInner) Ptr() *DcimRackTypesListFormFactorIcParameterInner { + return &v +} + +type NullableDcimRackTypesListFormFactorIcParameterInner struct { + value *DcimRackTypesListFormFactorIcParameterInner + isSet bool +} + +func (v NullableDcimRackTypesListFormFactorIcParameterInner) Get() *DcimRackTypesListFormFactorIcParameterInner { + return v.value +} + +func (v *NullableDcimRackTypesListFormFactorIcParameterInner) Set(val *DcimRackTypesListFormFactorIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRackTypesListFormFactorIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRackTypesListFormFactorIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRackTypesListFormFactorIcParameterInner(val *DcimRackTypesListFormFactorIcParameterInner) *NullableDcimRackTypesListFormFactorIcParameterInner { + return &NullableDcimRackTypesListFormFactorIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimRackTypesListFormFactorIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRackTypesListFormFactorIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_rack_types_list_width__ic_parameter_inner.go b/model_dcim_rack_types_list_width__ic_parameter_inner.go new file mode 100644 index 000000000..931d93b2c --- /dev/null +++ b/model_dcim_rack_types_list_width__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRackTypesListWidthIcParameterInner the model 'DcimRackTypesListWidthIcParameterInner' +type DcimRackTypesListWidthIcParameterInner int32 + +// List of dcim_rack_types_list_width__ic_parameter_inner +const ( + DCIMRACKTYPESLISTWIDTHICPARAMETERINNER__10 DcimRackTypesListWidthIcParameterInner = 10 + DCIMRACKTYPESLISTWIDTHICPARAMETERINNER__19 DcimRackTypesListWidthIcParameterInner = 19 + DCIMRACKTYPESLISTWIDTHICPARAMETERINNER__21 DcimRackTypesListWidthIcParameterInner = 21 + DCIMRACKTYPESLISTWIDTHICPARAMETERINNER__23 DcimRackTypesListWidthIcParameterInner = 23 +) + +// All allowed values of DcimRackTypesListWidthIcParameterInner enum +var AllowedDcimRackTypesListWidthIcParameterInnerEnumValues = []DcimRackTypesListWidthIcParameterInner{ + 10, + 19, + 21, + 23, +} + +func (v *DcimRackTypesListWidthIcParameterInner) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRackTypesListWidthIcParameterInner(value) + for _, existing := range AllowedDcimRackTypesListWidthIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRackTypesListWidthIcParameterInner", value) +} + +// NewDcimRackTypesListWidthIcParameterInnerFromValue returns a pointer to a valid DcimRackTypesListWidthIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRackTypesListWidthIcParameterInnerFromValue(v int32) (*DcimRackTypesListWidthIcParameterInner, error) { + ev := DcimRackTypesListWidthIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRackTypesListWidthIcParameterInner: valid values are %v", v, AllowedDcimRackTypesListWidthIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRackTypesListWidthIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimRackTypesListWidthIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_rack_types_list_width__ic_parameter_inner value +func (v DcimRackTypesListWidthIcParameterInner) Ptr() *DcimRackTypesListWidthIcParameterInner { + return &v +} + +type NullableDcimRackTypesListWidthIcParameterInner struct { + value *DcimRackTypesListWidthIcParameterInner + isSet bool +} + +func (v NullableDcimRackTypesListWidthIcParameterInner) Get() *DcimRackTypesListWidthIcParameterInner { + return v.value +} + +func (v *NullableDcimRackTypesListWidthIcParameterInner) Set(val *DcimRackTypesListWidthIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRackTypesListWidthIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRackTypesListWidthIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRackTypesListWidthIcParameterInner(val *DcimRackTypesListWidthIcParameterInner) *NullableDcimRackTypesListWidthIcParameterInner { + return &NullableDcimRackTypesListWidthIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimRackTypesListWidthIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRackTypesListWidthIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_racks_list_form_factor__ic_parameter_inner.go b/model_dcim_racks_list_form_factor__ic_parameter_inner.go new file mode 100644 index 000000000..36a6bc142 --- /dev/null +++ b/model_dcim_racks_list_form_factor__ic_parameter_inner.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRacksListFormFactorIcParameterInner the model 'DcimRacksListFormFactorIcParameterInner' +type DcimRacksListFormFactorIcParameterInner string + +// List of dcim_racks_list_form_factor__ic_parameter_inner +const ( + DCIMRACKSLISTFORMFACTORICPARAMETERINNER_EMPTY DcimRacksListFormFactorIcParameterInner = "" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER__2_POST_FRAME DcimRacksListFormFactorIcParameterInner = "2-post-frame" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER__4_POST_CABINET DcimRacksListFormFactorIcParameterInner = "4-post-cabinet" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER__4_POST_FRAME DcimRacksListFormFactorIcParameterInner = "4-post-frame" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER_WALL_CABINET DcimRacksListFormFactorIcParameterInner = "wall-cabinet" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER_WALL_CABINET_VERTICAL DcimRacksListFormFactorIcParameterInner = "wall-cabinet-vertical" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER_WALL_FRAME DcimRacksListFormFactorIcParameterInner = "wall-frame" + DCIMRACKSLISTFORMFACTORICPARAMETERINNER_WALL_FRAME_VERTICAL DcimRacksListFormFactorIcParameterInner = "wall-frame-vertical" +) + +// All allowed values of DcimRacksListFormFactorIcParameterInner enum +var AllowedDcimRacksListFormFactorIcParameterInnerEnumValues = []DcimRacksListFormFactorIcParameterInner{ + "", + "2-post-frame", + "4-post-cabinet", + "4-post-frame", + "wall-cabinet", + "wall-cabinet-vertical", + "wall-frame", + "wall-frame-vertical", +} + +func (v *DcimRacksListFormFactorIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRacksListFormFactorIcParameterInner(value) + for _, existing := range AllowedDcimRacksListFormFactorIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRacksListFormFactorIcParameterInner", value) +} + +// NewDcimRacksListFormFactorIcParameterInnerFromValue returns a pointer to a valid DcimRacksListFormFactorIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRacksListFormFactorIcParameterInnerFromValue(v string) (*DcimRacksListFormFactorIcParameterInner, error) { + ev := DcimRacksListFormFactorIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRacksListFormFactorIcParameterInner: valid values are %v", v, AllowedDcimRacksListFormFactorIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRacksListFormFactorIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimRacksListFormFactorIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_racks_list_form_factor__ic_parameter_inner value +func (v DcimRacksListFormFactorIcParameterInner) Ptr() *DcimRacksListFormFactorIcParameterInner { + return &v +} + +type NullableDcimRacksListFormFactorIcParameterInner struct { + value *DcimRacksListFormFactorIcParameterInner + isSet bool +} + +func (v NullableDcimRacksListFormFactorIcParameterInner) Get() *DcimRacksListFormFactorIcParameterInner { + return v.value +} + +func (v *NullableDcimRacksListFormFactorIcParameterInner) Set(val *DcimRacksListFormFactorIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRacksListFormFactorIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRacksListFormFactorIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRacksListFormFactorIcParameterInner(val *DcimRacksListFormFactorIcParameterInner) *NullableDcimRacksListFormFactorIcParameterInner { + return &NullableDcimRacksListFormFactorIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimRacksListFormFactorIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRacksListFormFactorIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_racks_list_status__ic_parameter_inner.go b/model_dcim_racks_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..c44051e92 --- /dev/null +++ b/model_dcim_racks_list_status__ic_parameter_inner.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimRacksListStatusIcParameterInner the model 'DcimRacksListStatusIcParameterInner' +type DcimRacksListStatusIcParameterInner string + +// List of dcim_racks_list_status__ic_parameter_inner +const ( + DCIMRACKSLISTSTATUSICPARAMETERINNER_ACTIVE DcimRacksListStatusIcParameterInner = "active" + DCIMRACKSLISTSTATUSICPARAMETERINNER_AVAILABLE DcimRacksListStatusIcParameterInner = "available" + DCIMRACKSLISTSTATUSICPARAMETERINNER_DEPRECATED DcimRacksListStatusIcParameterInner = "deprecated" + DCIMRACKSLISTSTATUSICPARAMETERINNER_PLANNED DcimRacksListStatusIcParameterInner = "planned" + DCIMRACKSLISTSTATUSICPARAMETERINNER_RESERVED DcimRacksListStatusIcParameterInner = "reserved" +) + +// All allowed values of DcimRacksListStatusIcParameterInner enum +var AllowedDcimRacksListStatusIcParameterInnerEnumValues = []DcimRacksListStatusIcParameterInner{ + "active", + "available", + "deprecated", + "planned", + "reserved", +} + +func (v *DcimRacksListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimRacksListStatusIcParameterInner(value) + for _, existing := range AllowedDcimRacksListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimRacksListStatusIcParameterInner", value) +} + +// NewDcimRacksListStatusIcParameterInnerFromValue returns a pointer to a valid DcimRacksListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimRacksListStatusIcParameterInnerFromValue(v string) (*DcimRacksListStatusIcParameterInner, error) { + ev := DcimRacksListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimRacksListStatusIcParameterInner: valid values are %v", v, AllowedDcimRacksListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimRacksListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimRacksListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_racks_list_status__ic_parameter_inner value +func (v DcimRacksListStatusIcParameterInner) Ptr() *DcimRacksListStatusIcParameterInner { + return &v +} + +type NullableDcimRacksListStatusIcParameterInner struct { + value *DcimRacksListStatusIcParameterInner + isSet bool +} + +func (v NullableDcimRacksListStatusIcParameterInner) Get() *DcimRacksListStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimRacksListStatusIcParameterInner) Set(val *DcimRacksListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimRacksListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimRacksListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimRacksListStatusIcParameterInner(val *DcimRacksListStatusIcParameterInner) *NullableDcimRacksListStatusIcParameterInner { + return &NullableDcimRacksListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimRacksListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimRacksListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_dcim_virtual_device_contexts_list_status__ic_parameter_inner.go b/model_dcim_virtual_device_contexts_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..9ab2a396a --- /dev/null +++ b/model_dcim_virtual_device_contexts_list_status__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// DcimVirtualDeviceContextsListStatusIcParameterInner the model 'DcimVirtualDeviceContextsListStatusIcParameterInner' +type DcimVirtualDeviceContextsListStatusIcParameterInner string + +// List of dcim_virtual_device_contexts_list_status__ic_parameter_inner +const ( + DCIMVIRTUALDEVICECONTEXTSLISTSTATUSICPARAMETERINNER_ACTIVE DcimVirtualDeviceContextsListStatusIcParameterInner = "active" + DCIMVIRTUALDEVICECONTEXTSLISTSTATUSICPARAMETERINNER_OFFLINE DcimVirtualDeviceContextsListStatusIcParameterInner = "offline" + DCIMVIRTUALDEVICECONTEXTSLISTSTATUSICPARAMETERINNER_PLANNED DcimVirtualDeviceContextsListStatusIcParameterInner = "planned" +) + +// All allowed values of DcimVirtualDeviceContextsListStatusIcParameterInner enum +var AllowedDcimVirtualDeviceContextsListStatusIcParameterInnerEnumValues = []DcimVirtualDeviceContextsListStatusIcParameterInner{ + "active", + "offline", + "planned", +} + +func (v *DcimVirtualDeviceContextsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := DcimVirtualDeviceContextsListStatusIcParameterInner(value) + for _, existing := range AllowedDcimVirtualDeviceContextsListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid DcimVirtualDeviceContextsListStatusIcParameterInner", value) +} + +// NewDcimVirtualDeviceContextsListStatusIcParameterInnerFromValue returns a pointer to a valid DcimVirtualDeviceContextsListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewDcimVirtualDeviceContextsListStatusIcParameterInnerFromValue(v string) (*DcimVirtualDeviceContextsListStatusIcParameterInner, error) { + ev := DcimVirtualDeviceContextsListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for DcimVirtualDeviceContextsListStatusIcParameterInner: valid values are %v", v, AllowedDcimVirtualDeviceContextsListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v DcimVirtualDeviceContextsListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedDcimVirtualDeviceContextsListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to dcim_virtual_device_contexts_list_status__ic_parameter_inner value +func (v DcimVirtualDeviceContextsListStatusIcParameterInner) Ptr() *DcimVirtualDeviceContextsListStatusIcParameterInner { + return &v +} + +type NullableDcimVirtualDeviceContextsListStatusIcParameterInner struct { + value *DcimVirtualDeviceContextsListStatusIcParameterInner + isSet bool +} + +func (v NullableDcimVirtualDeviceContextsListStatusIcParameterInner) Get() *DcimVirtualDeviceContextsListStatusIcParameterInner { + return v.value +} + +func (v *NullableDcimVirtualDeviceContextsListStatusIcParameterInner) Set(val *DcimVirtualDeviceContextsListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableDcimVirtualDeviceContextsListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableDcimVirtualDeviceContextsListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableDcimVirtualDeviceContextsListStatusIcParameterInner(val *DcimVirtualDeviceContextsListStatusIcParameterInner) *NullableDcimVirtualDeviceContextsListStatusIcParameterInner { + return &NullableDcimVirtualDeviceContextsListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableDcimVirtualDeviceContextsListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableDcimVirtualDeviceContextsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_encryption_1.go b/model_encryption_1.go new file mode 100644 index 000000000..412e161bf --- /dev/null +++ b/model_encryption_1.go @@ -0,0 +1,125 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// Encryption1 * `aes-128-cbc` - 128-bit AES (CBC) * `aes-128-gcm` - 128-bit AES (GCM) * `aes-192-cbc` - 192-bit AES (CBC) * `aes-192-gcm` - 192-bit AES (GCM) * `aes-256-cbc` - 256-bit AES (CBC) * `aes-256-gcm` - 256-bit AES (GCM) * `3des-cbc` - 3DES * `des-cbc` - DES +type Encryption1 string + +// List of Encryption_1 +const ( + ENCRYPTION1_AES_128_CBC Encryption1 = "aes-128-cbc" + ENCRYPTION1_AES_128_GCM Encryption1 = "aes-128-gcm" + ENCRYPTION1_AES_192_CBC Encryption1 = "aes-192-cbc" + ENCRYPTION1_AES_192_GCM Encryption1 = "aes-192-gcm" + ENCRYPTION1_AES_256_CBC Encryption1 = "aes-256-cbc" + ENCRYPTION1_AES_256_GCM Encryption1 = "aes-256-gcm" + ENCRYPTION1__3DES_CBC Encryption1 = "3des-cbc" + ENCRYPTION1_DES_CBC Encryption1 = "des-cbc" + ENCRYPTION1_EMPTY Encryption1 = "" +) + +// All allowed values of Encryption1 enum +var AllowedEncryption1EnumValues = []Encryption1{ + "aes-128-cbc", + "aes-128-gcm", + "aes-192-cbc", + "aes-192-gcm", + "aes-256-cbc", + "aes-256-gcm", + "3des-cbc", + "des-cbc", + "", +} + +func (v *Encryption1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := Encryption1(value) + for _, existing := range AllowedEncryption1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid Encryption1", value) +} + +// NewEncryption1FromValue returns a pointer to a valid Encryption1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewEncryption1FromValue(v string) (*Encryption1, error) { + ev := Encryption1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for Encryption1: valid values are %v", v, AllowedEncryption1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v Encryption1) IsValid() bool { + for _, existing := range AllowedEncryption1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Encryption_1 value +func (v Encryption1) Ptr() *Encryption1 { + return &v +} + +type NullableEncryption1 struct { + value *Encryption1 + isSet bool +} + +func (v NullableEncryption1) Get() *Encryption1 { + return v.value +} + +func (v *NullableEncryption1) Set(val *Encryption1) { + v.value = val + v.isSet = true +} + +func (v NullableEncryption1) IsSet() bool { + return v.isSet +} + +func (v *NullableEncryption1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableEncryption1(val *Encryption1) *NullableEncryption1 { + return &NullableEncryption1{value: val, isSet: true} +} + +func (v NullableEncryption1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableEncryption1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_extras_custom_fields_list_type__ic_parameter_inner.go b/model_extras_custom_fields_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..6fffb59bf --- /dev/null +++ b/model_extras_custom_fields_list_type__ic_parameter_inner.go @@ -0,0 +1,133 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ExtrasCustomFieldsListTypeIcParameterInner the model 'ExtrasCustomFieldsListTypeIcParameterInner' +type ExtrasCustomFieldsListTypeIcParameterInner string + +// List of extras_custom_fields_list_type__ic_parameter_inner +const ( + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_BOOLEAN ExtrasCustomFieldsListTypeIcParameterInner = "boolean" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_DATE ExtrasCustomFieldsListTypeIcParameterInner = "date" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_DATETIME ExtrasCustomFieldsListTypeIcParameterInner = "datetime" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_DECIMAL ExtrasCustomFieldsListTypeIcParameterInner = "decimal" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_INTEGER ExtrasCustomFieldsListTypeIcParameterInner = "integer" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_JSON ExtrasCustomFieldsListTypeIcParameterInner = "json" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_LONGTEXT ExtrasCustomFieldsListTypeIcParameterInner = "longtext" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_MULTIOBJECT ExtrasCustomFieldsListTypeIcParameterInner = "multiobject" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_MULTISELECT ExtrasCustomFieldsListTypeIcParameterInner = "multiselect" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_OBJECT ExtrasCustomFieldsListTypeIcParameterInner = "object" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_SELECT ExtrasCustomFieldsListTypeIcParameterInner = "select" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_TEXT ExtrasCustomFieldsListTypeIcParameterInner = "text" + EXTRASCUSTOMFIELDSLISTTYPEICPARAMETERINNER_URL ExtrasCustomFieldsListTypeIcParameterInner = "url" +) + +// All allowed values of ExtrasCustomFieldsListTypeIcParameterInner enum +var AllowedExtrasCustomFieldsListTypeIcParameterInnerEnumValues = []ExtrasCustomFieldsListTypeIcParameterInner{ + "boolean", + "date", + "datetime", + "decimal", + "integer", + "json", + "longtext", + "multiobject", + "multiselect", + "object", + "select", + "text", + "url", +} + +func (v *ExtrasCustomFieldsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ExtrasCustomFieldsListTypeIcParameterInner(value) + for _, existing := range AllowedExtrasCustomFieldsListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ExtrasCustomFieldsListTypeIcParameterInner", value) +} + +// NewExtrasCustomFieldsListTypeIcParameterInnerFromValue returns a pointer to a valid ExtrasCustomFieldsListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewExtrasCustomFieldsListTypeIcParameterInnerFromValue(v string) (*ExtrasCustomFieldsListTypeIcParameterInner, error) { + ev := ExtrasCustomFieldsListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ExtrasCustomFieldsListTypeIcParameterInner: valid values are %v", v, AllowedExtrasCustomFieldsListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ExtrasCustomFieldsListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedExtrasCustomFieldsListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to extras_custom_fields_list_type__ic_parameter_inner value +func (v ExtrasCustomFieldsListTypeIcParameterInner) Ptr() *ExtrasCustomFieldsListTypeIcParameterInner { + return &v +} + +type NullableExtrasCustomFieldsListTypeIcParameterInner struct { + value *ExtrasCustomFieldsListTypeIcParameterInner + isSet bool +} + +func (v NullableExtrasCustomFieldsListTypeIcParameterInner) Get() *ExtrasCustomFieldsListTypeIcParameterInner { + return v.value +} + +func (v *NullableExtrasCustomFieldsListTypeIcParameterInner) Set(val *ExtrasCustomFieldsListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableExtrasCustomFieldsListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableExtrasCustomFieldsListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExtrasCustomFieldsListTypeIcParameterInner(val *ExtrasCustomFieldsListTypeIcParameterInner) *NullableExtrasCustomFieldsListTypeIcParameterInner { + return &NullableExtrasCustomFieldsListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableExtrasCustomFieldsListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExtrasCustomFieldsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_extras_event_rules_list_action_type__ic_parameter_inner.go b/model_extras_event_rules_list_action_type__ic_parameter_inner.go new file mode 100644 index 000000000..bf6c20cd7 --- /dev/null +++ b/model_extras_event_rules_list_action_type__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ExtrasEventRulesListActionTypeIcParameterInner the model 'ExtrasEventRulesListActionTypeIcParameterInner' +type ExtrasEventRulesListActionTypeIcParameterInner string + +// List of extras_event_rules_list_action_type__ic_parameter_inner +const ( + EXTRASEVENTRULESLISTACTIONTYPEICPARAMETERINNER_NOTIFICATION ExtrasEventRulesListActionTypeIcParameterInner = "notification" + EXTRASEVENTRULESLISTACTIONTYPEICPARAMETERINNER_SCRIPT ExtrasEventRulesListActionTypeIcParameterInner = "script" + EXTRASEVENTRULESLISTACTIONTYPEICPARAMETERINNER_WEBHOOK ExtrasEventRulesListActionTypeIcParameterInner = "webhook" +) + +// All allowed values of ExtrasEventRulesListActionTypeIcParameterInner enum +var AllowedExtrasEventRulesListActionTypeIcParameterInnerEnumValues = []ExtrasEventRulesListActionTypeIcParameterInner{ + "notification", + "script", + "webhook", +} + +func (v *ExtrasEventRulesListActionTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ExtrasEventRulesListActionTypeIcParameterInner(value) + for _, existing := range AllowedExtrasEventRulesListActionTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ExtrasEventRulesListActionTypeIcParameterInner", value) +} + +// NewExtrasEventRulesListActionTypeIcParameterInnerFromValue returns a pointer to a valid ExtrasEventRulesListActionTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewExtrasEventRulesListActionTypeIcParameterInnerFromValue(v string) (*ExtrasEventRulesListActionTypeIcParameterInner, error) { + ev := ExtrasEventRulesListActionTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ExtrasEventRulesListActionTypeIcParameterInner: valid values are %v", v, AllowedExtrasEventRulesListActionTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ExtrasEventRulesListActionTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedExtrasEventRulesListActionTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to extras_event_rules_list_action_type__ic_parameter_inner value +func (v ExtrasEventRulesListActionTypeIcParameterInner) Ptr() *ExtrasEventRulesListActionTypeIcParameterInner { + return &v +} + +type NullableExtrasEventRulesListActionTypeIcParameterInner struct { + value *ExtrasEventRulesListActionTypeIcParameterInner + isSet bool +} + +func (v NullableExtrasEventRulesListActionTypeIcParameterInner) Get() *ExtrasEventRulesListActionTypeIcParameterInner { + return v.value +} + +func (v *NullableExtrasEventRulesListActionTypeIcParameterInner) Set(val *ExtrasEventRulesListActionTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableExtrasEventRulesListActionTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableExtrasEventRulesListActionTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExtrasEventRulesListActionTypeIcParameterInner(val *ExtrasEventRulesListActionTypeIcParameterInner) *NullableExtrasEventRulesListActionTypeIcParameterInner { + return &NullableExtrasEventRulesListActionTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableExtrasEventRulesListActionTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExtrasEventRulesListActionTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_extras_journal_entries_list_kind__ic_parameter_inner.go b/model_extras_journal_entries_list_kind__ic_parameter_inner.go new file mode 100644 index 000000000..2b1720f54 --- /dev/null +++ b/model_extras_journal_entries_list_kind__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ExtrasJournalEntriesListKindIcParameterInner the model 'ExtrasJournalEntriesListKindIcParameterInner' +type ExtrasJournalEntriesListKindIcParameterInner string + +// List of extras_journal_entries_list_kind__ic_parameter_inner +const ( + EXTRASJOURNALENTRIESLISTKINDICPARAMETERINNER_DANGER ExtrasJournalEntriesListKindIcParameterInner = "danger" + EXTRASJOURNALENTRIESLISTKINDICPARAMETERINNER_INFO ExtrasJournalEntriesListKindIcParameterInner = "info" + EXTRASJOURNALENTRIESLISTKINDICPARAMETERINNER_SUCCESS ExtrasJournalEntriesListKindIcParameterInner = "success" + EXTRASJOURNALENTRIESLISTKINDICPARAMETERINNER_WARNING ExtrasJournalEntriesListKindIcParameterInner = "warning" +) + +// All allowed values of ExtrasJournalEntriesListKindIcParameterInner enum +var AllowedExtrasJournalEntriesListKindIcParameterInnerEnumValues = []ExtrasJournalEntriesListKindIcParameterInner{ + "danger", + "info", + "success", + "warning", +} + +func (v *ExtrasJournalEntriesListKindIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ExtrasJournalEntriesListKindIcParameterInner(value) + for _, existing := range AllowedExtrasJournalEntriesListKindIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ExtrasJournalEntriesListKindIcParameterInner", value) +} + +// NewExtrasJournalEntriesListKindIcParameterInnerFromValue returns a pointer to a valid ExtrasJournalEntriesListKindIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewExtrasJournalEntriesListKindIcParameterInnerFromValue(v string) (*ExtrasJournalEntriesListKindIcParameterInner, error) { + ev := ExtrasJournalEntriesListKindIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ExtrasJournalEntriesListKindIcParameterInner: valid values are %v", v, AllowedExtrasJournalEntriesListKindIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ExtrasJournalEntriesListKindIcParameterInner) IsValid() bool { + for _, existing := range AllowedExtrasJournalEntriesListKindIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to extras_journal_entries_list_kind__ic_parameter_inner value +func (v ExtrasJournalEntriesListKindIcParameterInner) Ptr() *ExtrasJournalEntriesListKindIcParameterInner { + return &v +} + +type NullableExtrasJournalEntriesListKindIcParameterInner struct { + value *ExtrasJournalEntriesListKindIcParameterInner + isSet bool +} + +func (v NullableExtrasJournalEntriesListKindIcParameterInner) Get() *ExtrasJournalEntriesListKindIcParameterInner { + return v.value +} + +func (v *NullableExtrasJournalEntriesListKindIcParameterInner) Set(val *ExtrasJournalEntriesListKindIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableExtrasJournalEntriesListKindIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableExtrasJournalEntriesListKindIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExtrasJournalEntriesListKindIcParameterInner(val *ExtrasJournalEntriesListKindIcParameterInner) *NullableExtrasJournalEntriesListKindIcParameterInner { + return &NullableExtrasJournalEntriesListKindIcParameterInner{value: val, isSet: true} +} + +func (v NullableExtrasJournalEntriesListKindIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExtrasJournalEntriesListKindIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_extras_webhooks_list_http_method__ic_parameter_inner.go b/model_extras_webhooks_list_http_method__ic_parameter_inner.go new file mode 100644 index 000000000..d9c2f6dc7 --- /dev/null +++ b/model_extras_webhooks_list_http_method__ic_parameter_inner.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// ExtrasWebhooksListHttpMethodIcParameterInner the model 'ExtrasWebhooksListHttpMethodIcParameterInner' +type ExtrasWebhooksListHttpMethodIcParameterInner string + +// List of extras_webhooks_list_http_method__ic_parameter_inner +const ( + EXTRASWEBHOOKSLISTHTTPMETHODICPARAMETERINNER_DELETE ExtrasWebhooksListHttpMethodIcParameterInner = "DELETE" + EXTRASWEBHOOKSLISTHTTPMETHODICPARAMETERINNER_GET ExtrasWebhooksListHttpMethodIcParameterInner = "GET" + EXTRASWEBHOOKSLISTHTTPMETHODICPARAMETERINNER_PATCH ExtrasWebhooksListHttpMethodIcParameterInner = "PATCH" + EXTRASWEBHOOKSLISTHTTPMETHODICPARAMETERINNER_POST ExtrasWebhooksListHttpMethodIcParameterInner = "POST" + EXTRASWEBHOOKSLISTHTTPMETHODICPARAMETERINNER_PUT ExtrasWebhooksListHttpMethodIcParameterInner = "PUT" +) + +// All allowed values of ExtrasWebhooksListHttpMethodIcParameterInner enum +var AllowedExtrasWebhooksListHttpMethodIcParameterInnerEnumValues = []ExtrasWebhooksListHttpMethodIcParameterInner{ + "DELETE", + "GET", + "PATCH", + "POST", + "PUT", +} + +func (v *ExtrasWebhooksListHttpMethodIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := ExtrasWebhooksListHttpMethodIcParameterInner(value) + for _, existing := range AllowedExtrasWebhooksListHttpMethodIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid ExtrasWebhooksListHttpMethodIcParameterInner", value) +} + +// NewExtrasWebhooksListHttpMethodIcParameterInnerFromValue returns a pointer to a valid ExtrasWebhooksListHttpMethodIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewExtrasWebhooksListHttpMethodIcParameterInnerFromValue(v string) (*ExtrasWebhooksListHttpMethodIcParameterInner, error) { + ev := ExtrasWebhooksListHttpMethodIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for ExtrasWebhooksListHttpMethodIcParameterInner: valid values are %v", v, AllowedExtrasWebhooksListHttpMethodIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v ExtrasWebhooksListHttpMethodIcParameterInner) IsValid() bool { + for _, existing := range AllowedExtrasWebhooksListHttpMethodIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to extras_webhooks_list_http_method__ic_parameter_inner value +func (v ExtrasWebhooksListHttpMethodIcParameterInner) Ptr() *ExtrasWebhooksListHttpMethodIcParameterInner { + return &v +} + +type NullableExtrasWebhooksListHttpMethodIcParameterInner struct { + value *ExtrasWebhooksListHttpMethodIcParameterInner + isSet bool +} + +func (v NullableExtrasWebhooksListHttpMethodIcParameterInner) Get() *ExtrasWebhooksListHttpMethodIcParameterInner { + return v.value +} + +func (v *NullableExtrasWebhooksListHttpMethodIcParameterInner) Set(val *ExtrasWebhooksListHttpMethodIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableExtrasWebhooksListHttpMethodIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableExtrasWebhooksListHttpMethodIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableExtrasWebhooksListHttpMethodIcParameterInner(val *ExtrasWebhooksListHttpMethodIcParameterInner) *NullableExtrasWebhooksListHttpMethodIcParameterInner { + return &NullableExtrasWebhooksListHttpMethodIcParameterInner{value: val, isSet: true} +} + +func (v NullableExtrasWebhooksListHttpMethodIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableExtrasWebhooksListHttpMethodIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ipam_fhrp_groups_list_protocol__ic_parameter_inner.go b/model_ipam_fhrp_groups_list_protocol__ic_parameter_inner.go new file mode 100644 index 000000000..21b962686 --- /dev/null +++ b/model_ipam_fhrp_groups_list_protocol__ic_parameter_inner.go @@ -0,0 +1,121 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IpamFhrpGroupsListProtocolIcParameterInner the model 'IpamFhrpGroupsListProtocolIcParameterInner' +type IpamFhrpGroupsListProtocolIcParameterInner string + +// List of ipam_fhrp_groups_list_protocol__ic_parameter_inner +const ( + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_CARP IpamFhrpGroupsListProtocolIcParameterInner = "carp" + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_CLUSTERXL IpamFhrpGroupsListProtocolIcParameterInner = "clusterxl" + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_GLBP IpamFhrpGroupsListProtocolIcParameterInner = "glbp" + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_HSRP IpamFhrpGroupsListProtocolIcParameterInner = "hsrp" + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_OTHER IpamFhrpGroupsListProtocolIcParameterInner = "other" + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_VRRP2 IpamFhrpGroupsListProtocolIcParameterInner = "vrrp2" + IPAMFHRPGROUPSLISTPROTOCOLICPARAMETERINNER_VRRP3 IpamFhrpGroupsListProtocolIcParameterInner = "vrrp3" +) + +// All allowed values of IpamFhrpGroupsListProtocolIcParameterInner enum +var AllowedIpamFhrpGroupsListProtocolIcParameterInnerEnumValues = []IpamFhrpGroupsListProtocolIcParameterInner{ + "carp", + "clusterxl", + "glbp", + "hsrp", + "other", + "vrrp2", + "vrrp3", +} + +func (v *IpamFhrpGroupsListProtocolIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IpamFhrpGroupsListProtocolIcParameterInner(value) + for _, existing := range AllowedIpamFhrpGroupsListProtocolIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IpamFhrpGroupsListProtocolIcParameterInner", value) +} + +// NewIpamFhrpGroupsListProtocolIcParameterInnerFromValue returns a pointer to a valid IpamFhrpGroupsListProtocolIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIpamFhrpGroupsListProtocolIcParameterInnerFromValue(v string) (*IpamFhrpGroupsListProtocolIcParameterInner, error) { + ev := IpamFhrpGroupsListProtocolIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IpamFhrpGroupsListProtocolIcParameterInner: valid values are %v", v, AllowedIpamFhrpGroupsListProtocolIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IpamFhrpGroupsListProtocolIcParameterInner) IsValid() bool { + for _, existing := range AllowedIpamFhrpGroupsListProtocolIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ipam_fhrp_groups_list_protocol__ic_parameter_inner value +func (v IpamFhrpGroupsListProtocolIcParameterInner) Ptr() *IpamFhrpGroupsListProtocolIcParameterInner { + return &v +} + +type NullableIpamFhrpGroupsListProtocolIcParameterInner struct { + value *IpamFhrpGroupsListProtocolIcParameterInner + isSet bool +} + +func (v NullableIpamFhrpGroupsListProtocolIcParameterInner) Get() *IpamFhrpGroupsListProtocolIcParameterInner { + return v.value +} + +func (v *NullableIpamFhrpGroupsListProtocolIcParameterInner) Set(val *IpamFhrpGroupsListProtocolIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableIpamFhrpGroupsListProtocolIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableIpamFhrpGroupsListProtocolIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIpamFhrpGroupsListProtocolIcParameterInner(val *IpamFhrpGroupsListProtocolIcParameterInner) *NullableIpamFhrpGroupsListProtocolIcParameterInner { + return &NullableIpamFhrpGroupsListProtocolIcParameterInner{value: val, isSet: true} +} + +func (v NullableIpamFhrpGroupsListProtocolIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIpamFhrpGroupsListProtocolIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ipam_ip_addresses_list_role__ic_parameter_inner.go b/model_ipam_ip_addresses_list_role__ic_parameter_inner.go new file mode 100644 index 000000000..f879d0a1f --- /dev/null +++ b/model_ipam_ip_addresses_list_role__ic_parameter_inner.go @@ -0,0 +1,125 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IpamIpAddressesListRoleIcParameterInner the model 'IpamIpAddressesListRoleIcParameterInner' +type IpamIpAddressesListRoleIcParameterInner string + +// List of ipam_ip_addresses_list_role__ic_parameter_inner +const ( + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_EMPTY IpamIpAddressesListRoleIcParameterInner = "" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_ANYCAST IpamIpAddressesListRoleIcParameterInner = "anycast" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_CARP IpamIpAddressesListRoleIcParameterInner = "carp" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_GLBP IpamIpAddressesListRoleIcParameterInner = "glbp" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_HSRP IpamIpAddressesListRoleIcParameterInner = "hsrp" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_LOOPBACK IpamIpAddressesListRoleIcParameterInner = "loopback" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_SECONDARY IpamIpAddressesListRoleIcParameterInner = "secondary" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_VIP IpamIpAddressesListRoleIcParameterInner = "vip" + IPAMIPADDRESSESLISTROLEICPARAMETERINNER_VRRP IpamIpAddressesListRoleIcParameterInner = "vrrp" +) + +// All allowed values of IpamIpAddressesListRoleIcParameterInner enum +var AllowedIpamIpAddressesListRoleIcParameterInnerEnumValues = []IpamIpAddressesListRoleIcParameterInner{ + "", + "anycast", + "carp", + "glbp", + "hsrp", + "loopback", + "secondary", + "vip", + "vrrp", +} + +func (v *IpamIpAddressesListRoleIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IpamIpAddressesListRoleIcParameterInner(value) + for _, existing := range AllowedIpamIpAddressesListRoleIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IpamIpAddressesListRoleIcParameterInner", value) +} + +// NewIpamIpAddressesListRoleIcParameterInnerFromValue returns a pointer to a valid IpamIpAddressesListRoleIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIpamIpAddressesListRoleIcParameterInnerFromValue(v string) (*IpamIpAddressesListRoleIcParameterInner, error) { + ev := IpamIpAddressesListRoleIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IpamIpAddressesListRoleIcParameterInner: valid values are %v", v, AllowedIpamIpAddressesListRoleIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IpamIpAddressesListRoleIcParameterInner) IsValid() bool { + for _, existing := range AllowedIpamIpAddressesListRoleIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ipam_ip_addresses_list_role__ic_parameter_inner value +func (v IpamIpAddressesListRoleIcParameterInner) Ptr() *IpamIpAddressesListRoleIcParameterInner { + return &v +} + +type NullableIpamIpAddressesListRoleIcParameterInner struct { + value *IpamIpAddressesListRoleIcParameterInner + isSet bool +} + +func (v NullableIpamIpAddressesListRoleIcParameterInner) Get() *IpamIpAddressesListRoleIcParameterInner { + return v.value +} + +func (v *NullableIpamIpAddressesListRoleIcParameterInner) Set(val *IpamIpAddressesListRoleIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableIpamIpAddressesListRoleIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableIpamIpAddressesListRoleIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIpamIpAddressesListRoleIcParameterInner(val *IpamIpAddressesListRoleIcParameterInner) *NullableIpamIpAddressesListRoleIcParameterInner { + return &NullableIpamIpAddressesListRoleIcParameterInner{value: val, isSet: true} +} + +func (v NullableIpamIpAddressesListRoleIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIpamIpAddressesListRoleIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ipam_ip_addresses_list_status__ic_parameter_inner.go b/model_ipam_ip_addresses_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..c31d108e0 --- /dev/null +++ b/model_ipam_ip_addresses_list_status__ic_parameter_inner.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IpamIpAddressesListStatusIcParameterInner the model 'IpamIpAddressesListStatusIcParameterInner' +type IpamIpAddressesListStatusIcParameterInner string + +// List of ipam_ip_addresses_list_status__ic_parameter_inner +const ( + IPAMIPADDRESSESLISTSTATUSICPARAMETERINNER_ACTIVE IpamIpAddressesListStatusIcParameterInner = "active" + IPAMIPADDRESSESLISTSTATUSICPARAMETERINNER_DEPRECATED IpamIpAddressesListStatusIcParameterInner = "deprecated" + IPAMIPADDRESSESLISTSTATUSICPARAMETERINNER_DHCP IpamIpAddressesListStatusIcParameterInner = "dhcp" + IPAMIPADDRESSESLISTSTATUSICPARAMETERINNER_RESERVED IpamIpAddressesListStatusIcParameterInner = "reserved" + IPAMIPADDRESSESLISTSTATUSICPARAMETERINNER_SLAAC IpamIpAddressesListStatusIcParameterInner = "slaac" +) + +// All allowed values of IpamIpAddressesListStatusIcParameterInner enum +var AllowedIpamIpAddressesListStatusIcParameterInnerEnumValues = []IpamIpAddressesListStatusIcParameterInner{ + "active", + "deprecated", + "dhcp", + "reserved", + "slaac", +} + +func (v *IpamIpAddressesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IpamIpAddressesListStatusIcParameterInner(value) + for _, existing := range AllowedIpamIpAddressesListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IpamIpAddressesListStatusIcParameterInner", value) +} + +// NewIpamIpAddressesListStatusIcParameterInnerFromValue returns a pointer to a valid IpamIpAddressesListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIpamIpAddressesListStatusIcParameterInnerFromValue(v string) (*IpamIpAddressesListStatusIcParameterInner, error) { + ev := IpamIpAddressesListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IpamIpAddressesListStatusIcParameterInner: valid values are %v", v, AllowedIpamIpAddressesListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IpamIpAddressesListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedIpamIpAddressesListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ipam_ip_addresses_list_status__ic_parameter_inner value +func (v IpamIpAddressesListStatusIcParameterInner) Ptr() *IpamIpAddressesListStatusIcParameterInner { + return &v +} + +type NullableIpamIpAddressesListStatusIcParameterInner struct { + value *IpamIpAddressesListStatusIcParameterInner + isSet bool +} + +func (v NullableIpamIpAddressesListStatusIcParameterInner) Get() *IpamIpAddressesListStatusIcParameterInner { + return v.value +} + +func (v *NullableIpamIpAddressesListStatusIcParameterInner) Set(val *IpamIpAddressesListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableIpamIpAddressesListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableIpamIpAddressesListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIpamIpAddressesListStatusIcParameterInner(val *IpamIpAddressesListStatusIcParameterInner) *NullableIpamIpAddressesListStatusIcParameterInner { + return &NullableIpamIpAddressesListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableIpamIpAddressesListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIpamIpAddressesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ipam_ip_ranges_list_status__ic_parameter_inner.go b/model_ipam_ip_ranges_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..a297f2c32 --- /dev/null +++ b/model_ipam_ip_ranges_list_status__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IpamIpRangesListStatusIcParameterInner the model 'IpamIpRangesListStatusIcParameterInner' +type IpamIpRangesListStatusIcParameterInner string + +// List of ipam_ip_ranges_list_status__ic_parameter_inner +const ( + IPAMIPRANGESLISTSTATUSICPARAMETERINNER_ACTIVE IpamIpRangesListStatusIcParameterInner = "active" + IPAMIPRANGESLISTSTATUSICPARAMETERINNER_DEPRECATED IpamIpRangesListStatusIcParameterInner = "deprecated" + IPAMIPRANGESLISTSTATUSICPARAMETERINNER_RESERVED IpamIpRangesListStatusIcParameterInner = "reserved" +) + +// All allowed values of IpamIpRangesListStatusIcParameterInner enum +var AllowedIpamIpRangesListStatusIcParameterInnerEnumValues = []IpamIpRangesListStatusIcParameterInner{ + "active", + "deprecated", + "reserved", +} + +func (v *IpamIpRangesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IpamIpRangesListStatusIcParameterInner(value) + for _, existing := range AllowedIpamIpRangesListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IpamIpRangesListStatusIcParameterInner", value) +} + +// NewIpamIpRangesListStatusIcParameterInnerFromValue returns a pointer to a valid IpamIpRangesListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIpamIpRangesListStatusIcParameterInnerFromValue(v string) (*IpamIpRangesListStatusIcParameterInner, error) { + ev := IpamIpRangesListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IpamIpRangesListStatusIcParameterInner: valid values are %v", v, AllowedIpamIpRangesListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IpamIpRangesListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedIpamIpRangesListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ipam_ip_ranges_list_status__ic_parameter_inner value +func (v IpamIpRangesListStatusIcParameterInner) Ptr() *IpamIpRangesListStatusIcParameterInner { + return &v +} + +type NullableIpamIpRangesListStatusIcParameterInner struct { + value *IpamIpRangesListStatusIcParameterInner + isSet bool +} + +func (v NullableIpamIpRangesListStatusIcParameterInner) Get() *IpamIpRangesListStatusIcParameterInner { + return v.value +} + +func (v *NullableIpamIpRangesListStatusIcParameterInner) Set(val *IpamIpRangesListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableIpamIpRangesListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableIpamIpRangesListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIpamIpRangesListStatusIcParameterInner(val *IpamIpRangesListStatusIcParameterInner) *NullableIpamIpRangesListStatusIcParameterInner { + return &NullableIpamIpRangesListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableIpamIpRangesListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIpamIpRangesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_ipam_prefixes_list_status__ic_parameter_inner.go b/model_ipam_prefixes_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..f1eede2f8 --- /dev/null +++ b/model_ipam_prefixes_list_status__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// IpamPrefixesListStatusIcParameterInner the model 'IpamPrefixesListStatusIcParameterInner' +type IpamPrefixesListStatusIcParameterInner string + +// List of ipam_prefixes_list_status__ic_parameter_inner +const ( + IPAMPREFIXESLISTSTATUSICPARAMETERINNER_ACTIVE IpamPrefixesListStatusIcParameterInner = "active" + IPAMPREFIXESLISTSTATUSICPARAMETERINNER_CONTAINER IpamPrefixesListStatusIcParameterInner = "container" + IPAMPREFIXESLISTSTATUSICPARAMETERINNER_DEPRECATED IpamPrefixesListStatusIcParameterInner = "deprecated" + IPAMPREFIXESLISTSTATUSICPARAMETERINNER_RESERVED IpamPrefixesListStatusIcParameterInner = "reserved" +) + +// All allowed values of IpamPrefixesListStatusIcParameterInner enum +var AllowedIpamPrefixesListStatusIcParameterInnerEnumValues = []IpamPrefixesListStatusIcParameterInner{ + "active", + "container", + "deprecated", + "reserved", +} + +func (v *IpamPrefixesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := IpamPrefixesListStatusIcParameterInner(value) + for _, existing := range AllowedIpamPrefixesListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid IpamPrefixesListStatusIcParameterInner", value) +} + +// NewIpamPrefixesListStatusIcParameterInnerFromValue returns a pointer to a valid IpamPrefixesListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewIpamPrefixesListStatusIcParameterInnerFromValue(v string) (*IpamPrefixesListStatusIcParameterInner, error) { + ev := IpamPrefixesListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for IpamPrefixesListStatusIcParameterInner: valid values are %v", v, AllowedIpamPrefixesListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v IpamPrefixesListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedIpamPrefixesListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to ipam_prefixes_list_status__ic_parameter_inner value +func (v IpamPrefixesListStatusIcParameterInner) Ptr() *IpamPrefixesListStatusIcParameterInner { + return &v +} + +type NullableIpamPrefixesListStatusIcParameterInner struct { + value *IpamPrefixesListStatusIcParameterInner + isSet bool +} + +func (v NullableIpamPrefixesListStatusIcParameterInner) Get() *IpamPrefixesListStatusIcParameterInner { + return v.value +} + +func (v *NullableIpamPrefixesListStatusIcParameterInner) Set(val *IpamPrefixesListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableIpamPrefixesListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableIpamPrefixesListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableIpamPrefixesListStatusIcParameterInner(val *IpamPrefixesListStatusIcParameterInner) *NullableIpamPrefixesListStatusIcParameterInner { + return &NullableIpamPrefixesListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableIpamPrefixesListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableIpamPrefixesListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_virtualization_clusters_list_status__ic_parameter_inner.go b/model_virtualization_clusters_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..5204b1818 --- /dev/null +++ b/model_virtualization_clusters_list_status__ic_parameter_inner.go @@ -0,0 +1,117 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VirtualizationClustersListStatusIcParameterInner the model 'VirtualizationClustersListStatusIcParameterInner' +type VirtualizationClustersListStatusIcParameterInner string + +// List of virtualization_clusters_list_status__ic_parameter_inner +const ( + VIRTUALIZATIONCLUSTERSLISTSTATUSICPARAMETERINNER_ACTIVE VirtualizationClustersListStatusIcParameterInner = "active" + VIRTUALIZATIONCLUSTERSLISTSTATUSICPARAMETERINNER_DECOMMISSIONING VirtualizationClustersListStatusIcParameterInner = "decommissioning" + VIRTUALIZATIONCLUSTERSLISTSTATUSICPARAMETERINNER_OFFLINE VirtualizationClustersListStatusIcParameterInner = "offline" + VIRTUALIZATIONCLUSTERSLISTSTATUSICPARAMETERINNER_PLANNED VirtualizationClustersListStatusIcParameterInner = "planned" + VIRTUALIZATIONCLUSTERSLISTSTATUSICPARAMETERINNER_STAGING VirtualizationClustersListStatusIcParameterInner = "staging" +) + +// All allowed values of VirtualizationClustersListStatusIcParameterInner enum +var AllowedVirtualizationClustersListStatusIcParameterInnerEnumValues = []VirtualizationClustersListStatusIcParameterInner{ + "active", + "decommissioning", + "offline", + "planned", + "staging", +} + +func (v *VirtualizationClustersListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VirtualizationClustersListStatusIcParameterInner(value) + for _, existing := range AllowedVirtualizationClustersListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VirtualizationClustersListStatusIcParameterInner", value) +} + +// NewVirtualizationClustersListStatusIcParameterInnerFromValue returns a pointer to a valid VirtualizationClustersListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVirtualizationClustersListStatusIcParameterInnerFromValue(v string) (*VirtualizationClustersListStatusIcParameterInner, error) { + ev := VirtualizationClustersListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VirtualizationClustersListStatusIcParameterInner: valid values are %v", v, AllowedVirtualizationClustersListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VirtualizationClustersListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedVirtualizationClustersListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to virtualization_clusters_list_status__ic_parameter_inner value +func (v VirtualizationClustersListStatusIcParameterInner) Ptr() *VirtualizationClustersListStatusIcParameterInner { + return &v +} + +type NullableVirtualizationClustersListStatusIcParameterInner struct { + value *VirtualizationClustersListStatusIcParameterInner + isSet bool +} + +func (v NullableVirtualizationClustersListStatusIcParameterInner) Get() *VirtualizationClustersListStatusIcParameterInner { + return v.value +} + +func (v *NullableVirtualizationClustersListStatusIcParameterInner) Set(val *VirtualizationClustersListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVirtualizationClustersListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVirtualizationClustersListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVirtualizationClustersListStatusIcParameterInner(val *VirtualizationClustersListStatusIcParameterInner) *NullableVirtualizationClustersListStatusIcParameterInner { + return &NullableVirtualizationClustersListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableVirtualizationClustersListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVirtualizationClustersListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ike_policies_list_mode__ic_parameter_inner.go b/model_vpn_ike_policies_list_mode__ic_parameter_inner.go new file mode 100644 index 000000000..68944f17d --- /dev/null +++ b/model_vpn_ike_policies_list_mode__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIkePoliciesListModeIcParameterInner the model 'VpnIkePoliciesListModeIcParameterInner' +type VpnIkePoliciesListModeIcParameterInner string + +// List of vpn_ike_policies_list_mode__ic_parameter_inner +const ( + VPNIKEPOLICIESLISTMODEICPARAMETERINNER_EMPTY VpnIkePoliciesListModeIcParameterInner = "" + VPNIKEPOLICIESLISTMODEICPARAMETERINNER_AGGRESSIVE VpnIkePoliciesListModeIcParameterInner = "aggressive" + VPNIKEPOLICIESLISTMODEICPARAMETERINNER_MAIN VpnIkePoliciesListModeIcParameterInner = "main" +) + +// All allowed values of VpnIkePoliciesListModeIcParameterInner enum +var AllowedVpnIkePoliciesListModeIcParameterInnerEnumValues = []VpnIkePoliciesListModeIcParameterInner{ + "", + "aggressive", + "main", +} + +func (v *VpnIkePoliciesListModeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIkePoliciesListModeIcParameterInner(value) + for _, existing := range AllowedVpnIkePoliciesListModeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIkePoliciesListModeIcParameterInner", value) +} + +// NewVpnIkePoliciesListModeIcParameterInnerFromValue returns a pointer to a valid VpnIkePoliciesListModeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIkePoliciesListModeIcParameterInnerFromValue(v string) (*VpnIkePoliciesListModeIcParameterInner, error) { + ev := VpnIkePoliciesListModeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIkePoliciesListModeIcParameterInner: valid values are %v", v, AllowedVpnIkePoliciesListModeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIkePoliciesListModeIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIkePoliciesListModeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ike_policies_list_mode__ic_parameter_inner value +func (v VpnIkePoliciesListModeIcParameterInner) Ptr() *VpnIkePoliciesListModeIcParameterInner { + return &v +} + +type NullableVpnIkePoliciesListModeIcParameterInner struct { + value *VpnIkePoliciesListModeIcParameterInner + isSet bool +} + +func (v NullableVpnIkePoliciesListModeIcParameterInner) Get() *VpnIkePoliciesListModeIcParameterInner { + return v.value +} + +func (v *NullableVpnIkePoliciesListModeIcParameterInner) Set(val *VpnIkePoliciesListModeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIkePoliciesListModeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIkePoliciesListModeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIkePoliciesListModeIcParameterInner(val *VpnIkePoliciesListModeIcParameterInner) *NullableVpnIkePoliciesListModeIcParameterInner { + return &NullableVpnIkePoliciesListModeIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIkePoliciesListModeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIkePoliciesListModeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ike_policies_list_version__ic_parameter_inner.go b/model_vpn_ike_policies_list_version__ic_parameter_inner.go new file mode 100644 index 000000000..aab71023d --- /dev/null +++ b/model_vpn_ike_policies_list_version__ic_parameter_inner.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIkePoliciesListVersionIcParameterInner the model 'VpnIkePoliciesListVersionIcParameterInner' +type VpnIkePoliciesListVersionIcParameterInner int32 + +// List of vpn_ike_policies_list_version__ic_parameter_inner +const ( + VPNIKEPOLICIESLISTVERSIONICPARAMETERINNER__1 VpnIkePoliciesListVersionIcParameterInner = 1 + VPNIKEPOLICIESLISTVERSIONICPARAMETERINNER__2 VpnIkePoliciesListVersionIcParameterInner = 2 +) + +// All allowed values of VpnIkePoliciesListVersionIcParameterInner enum +var AllowedVpnIkePoliciesListVersionIcParameterInnerEnumValues = []VpnIkePoliciesListVersionIcParameterInner{ + 1, + 2, +} + +func (v *VpnIkePoliciesListVersionIcParameterInner) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIkePoliciesListVersionIcParameterInner(value) + for _, existing := range AllowedVpnIkePoliciesListVersionIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIkePoliciesListVersionIcParameterInner", value) +} + +// NewVpnIkePoliciesListVersionIcParameterInnerFromValue returns a pointer to a valid VpnIkePoliciesListVersionIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIkePoliciesListVersionIcParameterInnerFromValue(v int32) (*VpnIkePoliciesListVersionIcParameterInner, error) { + ev := VpnIkePoliciesListVersionIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIkePoliciesListVersionIcParameterInner: valid values are %v", v, AllowedVpnIkePoliciesListVersionIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIkePoliciesListVersionIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIkePoliciesListVersionIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ike_policies_list_version__ic_parameter_inner value +func (v VpnIkePoliciesListVersionIcParameterInner) Ptr() *VpnIkePoliciesListVersionIcParameterInner { + return &v +} + +type NullableVpnIkePoliciesListVersionIcParameterInner struct { + value *VpnIkePoliciesListVersionIcParameterInner + isSet bool +} + +func (v NullableVpnIkePoliciesListVersionIcParameterInner) Get() *VpnIkePoliciesListVersionIcParameterInner { + return v.value +} + +func (v *NullableVpnIkePoliciesListVersionIcParameterInner) Set(val *VpnIkePoliciesListVersionIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIkePoliciesListVersionIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIkePoliciesListVersionIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIkePoliciesListVersionIcParameterInner(val *VpnIkePoliciesListVersionIcParameterInner) *NullableVpnIkePoliciesListVersionIcParameterInner { + return &NullableVpnIkePoliciesListVersionIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIkePoliciesListVersionIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIkePoliciesListVersionIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner.go b/model_vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner.go new file mode 100644 index 000000000..c157dbbf2 --- /dev/null +++ b/model_vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner.go @@ -0,0 +1,119 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner the model 'VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner' +type VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner string + +// List of vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner +const ( + VPNIKEPROPOSALSLISTAUTHENTICATIONALGORITHMICPARAMETERINNER_EMPTY VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner = "" + VPNIKEPROPOSALSLISTAUTHENTICATIONALGORITHMICPARAMETERINNER_HMAC_MD5 VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner = "hmac-md5" + VPNIKEPROPOSALSLISTAUTHENTICATIONALGORITHMICPARAMETERINNER_HMAC_SHA1 VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner = "hmac-sha1" + VPNIKEPROPOSALSLISTAUTHENTICATIONALGORITHMICPARAMETERINNER_HMAC_SHA256 VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner = "hmac-sha256" + VPNIKEPROPOSALSLISTAUTHENTICATIONALGORITHMICPARAMETERINNER_HMAC_SHA384 VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner = "hmac-sha384" + VPNIKEPROPOSALSLISTAUTHENTICATIONALGORITHMICPARAMETERINNER_HMAC_SHA512 VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner = "hmac-sha512" +) + +// All allowed values of VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner enum +var AllowedVpnIkeProposalsListAuthenticationAlgorithmIcParameterInnerEnumValues = []VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{ + "", + "hmac-md5", + "hmac-sha1", + "hmac-sha256", + "hmac-sha384", + "hmac-sha512", +} + +func (v *VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner(value) + for _, existing := range AllowedVpnIkeProposalsListAuthenticationAlgorithmIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner", value) +} + +// NewVpnIkeProposalsListAuthenticationAlgorithmIcParameterInnerFromValue returns a pointer to a valid VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIkeProposalsListAuthenticationAlgorithmIcParameterInnerFromValue(v string) (*VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner, error) { + ev := VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner: valid values are %v", v, AllowedVpnIkeProposalsListAuthenticationAlgorithmIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIkeProposalsListAuthenticationAlgorithmIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ike_proposals_list_authentication_algorithm__ic_parameter_inner value +func (v VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) Ptr() *VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner { + return &v +} + +type NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner struct { + value *VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner + isSet bool +} + +func (v NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) Get() *VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner { + return v.value +} + +func (v *NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) Set(val *VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner(val *VpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) *NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner { + return &NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIkeProposalsListAuthenticationAlgorithmIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ike_proposals_list_authentication_method__ic_parameter_inner.go b/model_vpn_ike_proposals_list_authentication_method__ic_parameter_inner.go new file mode 100644 index 000000000..5bd043a9e --- /dev/null +++ b/model_vpn_ike_proposals_list_authentication_method__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIkeProposalsListAuthenticationMethodIcParameterInner the model 'VpnIkeProposalsListAuthenticationMethodIcParameterInner' +type VpnIkeProposalsListAuthenticationMethodIcParameterInner string + +// List of vpn_ike_proposals_list_authentication_method__ic_parameter_inner +const ( + VPNIKEPROPOSALSLISTAUTHENTICATIONMETHODICPARAMETERINNER_CERTIFICATES VpnIkeProposalsListAuthenticationMethodIcParameterInner = "certificates" + VPNIKEPROPOSALSLISTAUTHENTICATIONMETHODICPARAMETERINNER_DSA_SIGNATURES VpnIkeProposalsListAuthenticationMethodIcParameterInner = "dsa-signatures" + VPNIKEPROPOSALSLISTAUTHENTICATIONMETHODICPARAMETERINNER_PRESHARED_KEYS VpnIkeProposalsListAuthenticationMethodIcParameterInner = "preshared-keys" + VPNIKEPROPOSALSLISTAUTHENTICATIONMETHODICPARAMETERINNER_RSA_SIGNATURES VpnIkeProposalsListAuthenticationMethodIcParameterInner = "rsa-signatures" +) + +// All allowed values of VpnIkeProposalsListAuthenticationMethodIcParameterInner enum +var AllowedVpnIkeProposalsListAuthenticationMethodIcParameterInnerEnumValues = []VpnIkeProposalsListAuthenticationMethodIcParameterInner{ + "certificates", + "dsa-signatures", + "preshared-keys", + "rsa-signatures", +} + +func (v *VpnIkeProposalsListAuthenticationMethodIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIkeProposalsListAuthenticationMethodIcParameterInner(value) + for _, existing := range AllowedVpnIkeProposalsListAuthenticationMethodIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIkeProposalsListAuthenticationMethodIcParameterInner", value) +} + +// NewVpnIkeProposalsListAuthenticationMethodIcParameterInnerFromValue returns a pointer to a valid VpnIkeProposalsListAuthenticationMethodIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIkeProposalsListAuthenticationMethodIcParameterInnerFromValue(v string) (*VpnIkeProposalsListAuthenticationMethodIcParameterInner, error) { + ev := VpnIkeProposalsListAuthenticationMethodIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIkeProposalsListAuthenticationMethodIcParameterInner: valid values are %v", v, AllowedVpnIkeProposalsListAuthenticationMethodIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIkeProposalsListAuthenticationMethodIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIkeProposalsListAuthenticationMethodIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ike_proposals_list_authentication_method__ic_parameter_inner value +func (v VpnIkeProposalsListAuthenticationMethodIcParameterInner) Ptr() *VpnIkeProposalsListAuthenticationMethodIcParameterInner { + return &v +} + +type NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner struct { + value *VpnIkeProposalsListAuthenticationMethodIcParameterInner + isSet bool +} + +func (v NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner) Get() *VpnIkeProposalsListAuthenticationMethodIcParameterInner { + return v.value +} + +func (v *NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner) Set(val *VpnIkeProposalsListAuthenticationMethodIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIkeProposalsListAuthenticationMethodIcParameterInner(val *VpnIkeProposalsListAuthenticationMethodIcParameterInner) *NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner { + return &NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIkeProposalsListAuthenticationMethodIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner.go b/model_vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner.go new file mode 100644 index 000000000..7c5cfca6b --- /dev/null +++ b/model_vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner.go @@ -0,0 +1,123 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIkeProposalsListEncryptionAlgorithmIcParameterInner the model 'VpnIkeProposalsListEncryptionAlgorithmIcParameterInner' +type VpnIkeProposalsListEncryptionAlgorithmIcParameterInner string + +// List of vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner +const ( + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER__3DES_CBC VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "3des-cbc" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_AES_128_CBC VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "aes-128-cbc" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_AES_128_GCM VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "aes-128-gcm" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_AES_192_CBC VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "aes-192-cbc" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_AES_192_GCM VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "aes-192-gcm" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_AES_256_CBC VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "aes-256-cbc" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_AES_256_GCM VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "aes-256-gcm" + VPNIKEPROPOSALSLISTENCRYPTIONALGORITHMICPARAMETERINNER_DES_CBC VpnIkeProposalsListEncryptionAlgorithmIcParameterInner = "des-cbc" +) + +// All allowed values of VpnIkeProposalsListEncryptionAlgorithmIcParameterInner enum +var AllowedVpnIkeProposalsListEncryptionAlgorithmIcParameterInnerEnumValues = []VpnIkeProposalsListEncryptionAlgorithmIcParameterInner{ + "3des-cbc", + "aes-128-cbc", + "aes-128-gcm", + "aes-192-cbc", + "aes-192-gcm", + "aes-256-cbc", + "aes-256-gcm", + "des-cbc", +} + +func (v *VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIkeProposalsListEncryptionAlgorithmIcParameterInner(value) + for _, existing := range AllowedVpnIkeProposalsListEncryptionAlgorithmIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIkeProposalsListEncryptionAlgorithmIcParameterInner", value) +} + +// NewVpnIkeProposalsListEncryptionAlgorithmIcParameterInnerFromValue returns a pointer to a valid VpnIkeProposalsListEncryptionAlgorithmIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIkeProposalsListEncryptionAlgorithmIcParameterInnerFromValue(v string) (*VpnIkeProposalsListEncryptionAlgorithmIcParameterInner, error) { + ev := VpnIkeProposalsListEncryptionAlgorithmIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIkeProposalsListEncryptionAlgorithmIcParameterInner: valid values are %v", v, AllowedVpnIkeProposalsListEncryptionAlgorithmIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIkeProposalsListEncryptionAlgorithmIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ike_proposals_list_encryption_algorithm__ic_parameter_inner value +func (v VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) Ptr() *VpnIkeProposalsListEncryptionAlgorithmIcParameterInner { + return &v +} + +type NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner struct { + value *VpnIkeProposalsListEncryptionAlgorithmIcParameterInner + isSet bool +} + +func (v NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner) Get() *VpnIkeProposalsListEncryptionAlgorithmIcParameterInner { + return v.value +} + +func (v *NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner) Set(val *VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner(val *VpnIkeProposalsListEncryptionAlgorithmIcParameterInner) *NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner { + return &NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIkeProposalsListEncryptionAlgorithmIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ike_proposals_list_group__ic_parameter_inner.go b/model_vpn_ike_proposals_list_group__ic_parameter_inner.go new file mode 100644 index 000000000..6222771fd --- /dev/null +++ b/model_vpn_ike_proposals_list_group__ic_parameter_inner.go @@ -0,0 +1,155 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIkeProposalsListGroupIcParameterInner the model 'VpnIkeProposalsListGroupIcParameterInner' +type VpnIkeProposalsListGroupIcParameterInner int32 + +// List of vpn_ike_proposals_list_group__ic_parameter_inner +const ( + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__1 VpnIkeProposalsListGroupIcParameterInner = 1 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__14 VpnIkeProposalsListGroupIcParameterInner = 14 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__15 VpnIkeProposalsListGroupIcParameterInner = 15 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__16 VpnIkeProposalsListGroupIcParameterInner = 16 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__17 VpnIkeProposalsListGroupIcParameterInner = 17 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__18 VpnIkeProposalsListGroupIcParameterInner = 18 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__19 VpnIkeProposalsListGroupIcParameterInner = 19 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__2 VpnIkeProposalsListGroupIcParameterInner = 2 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__20 VpnIkeProposalsListGroupIcParameterInner = 20 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__21 VpnIkeProposalsListGroupIcParameterInner = 21 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__22 VpnIkeProposalsListGroupIcParameterInner = 22 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__23 VpnIkeProposalsListGroupIcParameterInner = 23 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__24 VpnIkeProposalsListGroupIcParameterInner = 24 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__25 VpnIkeProposalsListGroupIcParameterInner = 25 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__26 VpnIkeProposalsListGroupIcParameterInner = 26 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__27 VpnIkeProposalsListGroupIcParameterInner = 27 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__28 VpnIkeProposalsListGroupIcParameterInner = 28 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__29 VpnIkeProposalsListGroupIcParameterInner = 29 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__30 VpnIkeProposalsListGroupIcParameterInner = 30 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__31 VpnIkeProposalsListGroupIcParameterInner = 31 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__32 VpnIkeProposalsListGroupIcParameterInner = 32 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__33 VpnIkeProposalsListGroupIcParameterInner = 33 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__34 VpnIkeProposalsListGroupIcParameterInner = 34 + VPNIKEPROPOSALSLISTGROUPICPARAMETERINNER__5 VpnIkeProposalsListGroupIcParameterInner = 5 +) + +// All allowed values of VpnIkeProposalsListGroupIcParameterInner enum +var AllowedVpnIkeProposalsListGroupIcParameterInnerEnumValues = []VpnIkeProposalsListGroupIcParameterInner{ + 1, + 14, + 15, + 16, + 17, + 18, + 19, + 2, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 5, +} + +func (v *VpnIkeProposalsListGroupIcParameterInner) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIkeProposalsListGroupIcParameterInner(value) + for _, existing := range AllowedVpnIkeProposalsListGroupIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIkeProposalsListGroupIcParameterInner", value) +} + +// NewVpnIkeProposalsListGroupIcParameterInnerFromValue returns a pointer to a valid VpnIkeProposalsListGroupIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIkeProposalsListGroupIcParameterInnerFromValue(v int32) (*VpnIkeProposalsListGroupIcParameterInner, error) { + ev := VpnIkeProposalsListGroupIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIkeProposalsListGroupIcParameterInner: valid values are %v", v, AllowedVpnIkeProposalsListGroupIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIkeProposalsListGroupIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIkeProposalsListGroupIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ike_proposals_list_group__ic_parameter_inner value +func (v VpnIkeProposalsListGroupIcParameterInner) Ptr() *VpnIkeProposalsListGroupIcParameterInner { + return &v +} + +type NullableVpnIkeProposalsListGroupIcParameterInner struct { + value *VpnIkeProposalsListGroupIcParameterInner + isSet bool +} + +func (v NullableVpnIkeProposalsListGroupIcParameterInner) Get() *VpnIkeProposalsListGroupIcParameterInner { + return v.value +} + +func (v *NullableVpnIkeProposalsListGroupIcParameterInner) Set(val *VpnIkeProposalsListGroupIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIkeProposalsListGroupIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIkeProposalsListGroupIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIkeProposalsListGroupIcParameterInner(val *VpnIkeProposalsListGroupIcParameterInner) *NullableVpnIkeProposalsListGroupIcParameterInner { + return &NullableVpnIkeProposalsListGroupIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIkeProposalsListGroupIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIkeProposalsListGroupIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go new file mode 100644 index 000000000..e5a571f5c --- /dev/null +++ b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go @@ -0,0 +1,157 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIpsecPoliciesListPfsGroupIcParameterInner the model 'VpnIpsecPoliciesListPfsGroupIcParameterInner' +type VpnIpsecPoliciesListPfsGroupIcParameterInner int32 + +// List of vpn_ipsec_policies_list_pfs_group__ic_parameter_inner +const ( + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__1 VpnIpsecPoliciesListPfsGroupIcParameterInner = 1 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__14 VpnIpsecPoliciesListPfsGroupIcParameterInner = 14 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__15 VpnIpsecPoliciesListPfsGroupIcParameterInner = 15 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__16 VpnIpsecPoliciesListPfsGroupIcParameterInner = 16 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__17 VpnIpsecPoliciesListPfsGroupIcParameterInner = 17 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__18 VpnIpsecPoliciesListPfsGroupIcParameterInner = 18 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__19 VpnIpsecPoliciesListPfsGroupIcParameterInner = 19 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__2 VpnIpsecPoliciesListPfsGroupIcParameterInner = 2 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__20 VpnIpsecPoliciesListPfsGroupIcParameterInner = 20 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__21 VpnIpsecPoliciesListPfsGroupIcParameterInner = 21 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__22 VpnIpsecPoliciesListPfsGroupIcParameterInner = 22 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__23 VpnIpsecPoliciesListPfsGroupIcParameterInner = 23 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__24 VpnIpsecPoliciesListPfsGroupIcParameterInner = 24 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__25 VpnIpsecPoliciesListPfsGroupIcParameterInner = 25 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__26 VpnIpsecPoliciesListPfsGroupIcParameterInner = 26 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__27 VpnIpsecPoliciesListPfsGroupIcParameterInner = 27 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__28 VpnIpsecPoliciesListPfsGroupIcParameterInner = 28 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__29 VpnIpsecPoliciesListPfsGroupIcParameterInner = 29 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__30 VpnIpsecPoliciesListPfsGroupIcParameterInner = 30 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__31 VpnIpsecPoliciesListPfsGroupIcParameterInner = 31 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__32 VpnIpsecPoliciesListPfsGroupIcParameterInner = 32 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__33 VpnIpsecPoliciesListPfsGroupIcParameterInner = 33 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__34 VpnIpsecPoliciesListPfsGroupIcParameterInner = 34 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__5 VpnIpsecPoliciesListPfsGroupIcParameterInner = 5 + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__null VpnIpsecPoliciesListPfsGroupIcParameterInner = null +) + +// All allowed values of VpnIpsecPoliciesListPfsGroupIcParameterInner enum +var AllowedVpnIpsecPoliciesListPfsGroupIcParameterInnerEnumValues = []VpnIpsecPoliciesListPfsGroupIcParameterInner{ + 1, + 14, + 15, + 16, + 17, + 18, + 19, + 2, + 20, + 21, + 22, + 23, + 24, + 25, + 26, + 27, + 28, + 29, + 30, + 31, + 32, + 33, + 34, + 5, + null, +} + +func (v *VpnIpsecPoliciesListPfsGroupIcParameterInner) UnmarshalJSON(src []byte) error { + var value int32 + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIpsecPoliciesListPfsGroupIcParameterInner(value) + for _, existing := range AllowedVpnIpsecPoliciesListPfsGroupIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIpsecPoliciesListPfsGroupIcParameterInner", value) +} + +// NewVpnIpsecPoliciesListPfsGroupIcParameterInnerFromValue returns a pointer to a valid VpnIpsecPoliciesListPfsGroupIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIpsecPoliciesListPfsGroupIcParameterInnerFromValue(v int32) (*VpnIpsecPoliciesListPfsGroupIcParameterInner, error) { + ev := VpnIpsecPoliciesListPfsGroupIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIpsecPoliciesListPfsGroupIcParameterInner: valid values are %v", v, AllowedVpnIpsecPoliciesListPfsGroupIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIpsecPoliciesListPfsGroupIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIpsecPoliciesListPfsGroupIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ipsec_policies_list_pfs_group__ic_parameter_inner value +func (v VpnIpsecPoliciesListPfsGroupIcParameterInner) Ptr() *VpnIpsecPoliciesListPfsGroupIcParameterInner { + return &v +} + +type NullableVpnIpsecPoliciesListPfsGroupIcParameterInner struct { + value *VpnIpsecPoliciesListPfsGroupIcParameterInner + isSet bool +} + +func (v NullableVpnIpsecPoliciesListPfsGroupIcParameterInner) Get() *VpnIpsecPoliciesListPfsGroupIcParameterInner { + return v.value +} + +func (v *NullableVpnIpsecPoliciesListPfsGroupIcParameterInner) Set(val *VpnIpsecPoliciesListPfsGroupIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIpsecPoliciesListPfsGroupIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIpsecPoliciesListPfsGroupIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIpsecPoliciesListPfsGroupIcParameterInner(val *VpnIpsecPoliciesListPfsGroupIcParameterInner) *NullableVpnIpsecPoliciesListPfsGroupIcParameterInner { + return &NullableVpnIpsecPoliciesListPfsGroupIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIpsecPoliciesListPfsGroupIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIpsecPoliciesListPfsGroupIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_ipsec_profiles_list_mode__ic_parameter_inner.go b/model_vpn_ipsec_profiles_list_mode__ic_parameter_inner.go new file mode 100644 index 000000000..b2e680511 --- /dev/null +++ b/model_vpn_ipsec_profiles_list_mode__ic_parameter_inner.go @@ -0,0 +1,111 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnIpsecProfilesListModeIcParameterInner the model 'VpnIpsecProfilesListModeIcParameterInner' +type VpnIpsecProfilesListModeIcParameterInner string + +// List of vpn_ipsec_profiles_list_mode__ic_parameter_inner +const ( + VPNIPSECPROFILESLISTMODEICPARAMETERINNER_AH VpnIpsecProfilesListModeIcParameterInner = "ah" + VPNIPSECPROFILESLISTMODEICPARAMETERINNER_ESP VpnIpsecProfilesListModeIcParameterInner = "esp" +) + +// All allowed values of VpnIpsecProfilesListModeIcParameterInner enum +var AllowedVpnIpsecProfilesListModeIcParameterInnerEnumValues = []VpnIpsecProfilesListModeIcParameterInner{ + "ah", + "esp", +} + +func (v *VpnIpsecProfilesListModeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnIpsecProfilesListModeIcParameterInner(value) + for _, existing := range AllowedVpnIpsecProfilesListModeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnIpsecProfilesListModeIcParameterInner", value) +} + +// NewVpnIpsecProfilesListModeIcParameterInnerFromValue returns a pointer to a valid VpnIpsecProfilesListModeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnIpsecProfilesListModeIcParameterInnerFromValue(v string) (*VpnIpsecProfilesListModeIcParameterInner, error) { + ev := VpnIpsecProfilesListModeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnIpsecProfilesListModeIcParameterInner: valid values are %v", v, AllowedVpnIpsecProfilesListModeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnIpsecProfilesListModeIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnIpsecProfilesListModeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_ipsec_profiles_list_mode__ic_parameter_inner value +func (v VpnIpsecProfilesListModeIcParameterInner) Ptr() *VpnIpsecProfilesListModeIcParameterInner { + return &v +} + +type NullableVpnIpsecProfilesListModeIcParameterInner struct { + value *VpnIpsecProfilesListModeIcParameterInner + isSet bool +} + +func (v NullableVpnIpsecProfilesListModeIcParameterInner) Get() *VpnIpsecProfilesListModeIcParameterInner { + return v.value +} + +func (v *NullableVpnIpsecProfilesListModeIcParameterInner) Set(val *VpnIpsecProfilesListModeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnIpsecProfilesListModeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnIpsecProfilesListModeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnIpsecProfilesListModeIcParameterInner(val *VpnIpsecProfilesListModeIcParameterInner) *NullableVpnIpsecProfilesListModeIcParameterInner { + return &NullableVpnIpsecProfilesListModeIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnIpsecProfilesListModeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnIpsecProfilesListModeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_l2vpns_list_type__ic_parameter_inner.go b/model_vpn_l2vpns_list_type__ic_parameter_inner.go new file mode 100644 index 000000000..c5b8327c1 --- /dev/null +++ b/model_vpn_l2vpns_list_type__ic_parameter_inner.go @@ -0,0 +1,131 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnL2vpnsListTypeIcParameterInner the model 'VpnL2vpnsListTypeIcParameterInner' +type VpnL2vpnsListTypeIcParameterInner string + +// List of vpn_l2vpns_list_type__ic_parameter_inner +const ( + VPNL2VPNSLISTTYPEICPARAMETERINNER_EP_LAN VpnL2vpnsListTypeIcParameterInner = "ep-lan" + VPNL2VPNSLISTTYPEICPARAMETERINNER_EP_TREE VpnL2vpnsListTypeIcParameterInner = "ep-tree" + VPNL2VPNSLISTTYPEICPARAMETERINNER_EPL VpnL2vpnsListTypeIcParameterInner = "epl" + VPNL2VPNSLISTTYPEICPARAMETERINNER_EVP_LAN VpnL2vpnsListTypeIcParameterInner = "evp-lan" + VPNL2VPNSLISTTYPEICPARAMETERINNER_EVP_TREE VpnL2vpnsListTypeIcParameterInner = "evp-tree" + VPNL2VPNSLISTTYPEICPARAMETERINNER_EVPL VpnL2vpnsListTypeIcParameterInner = "evpl" + VPNL2VPNSLISTTYPEICPARAMETERINNER_MPLS_EVPN VpnL2vpnsListTypeIcParameterInner = "mpls-evpn" + VPNL2VPNSLISTTYPEICPARAMETERINNER_PBB_EVPN VpnL2vpnsListTypeIcParameterInner = "pbb-evpn" + VPNL2VPNSLISTTYPEICPARAMETERINNER_VPLS VpnL2vpnsListTypeIcParameterInner = "vpls" + VPNL2VPNSLISTTYPEICPARAMETERINNER_VPWS VpnL2vpnsListTypeIcParameterInner = "vpws" + VPNL2VPNSLISTTYPEICPARAMETERINNER_VXLAN VpnL2vpnsListTypeIcParameterInner = "vxlan" + VPNL2VPNSLISTTYPEICPARAMETERINNER_VXLAN_EVPN VpnL2vpnsListTypeIcParameterInner = "vxlan-evpn" +) + +// All allowed values of VpnL2vpnsListTypeIcParameterInner enum +var AllowedVpnL2vpnsListTypeIcParameterInnerEnumValues = []VpnL2vpnsListTypeIcParameterInner{ + "ep-lan", + "ep-tree", + "epl", + "evp-lan", + "evp-tree", + "evpl", + "mpls-evpn", + "pbb-evpn", + "vpls", + "vpws", + "vxlan", + "vxlan-evpn", +} + +func (v *VpnL2vpnsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnL2vpnsListTypeIcParameterInner(value) + for _, existing := range AllowedVpnL2vpnsListTypeIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnL2vpnsListTypeIcParameterInner", value) +} + +// NewVpnL2vpnsListTypeIcParameterInnerFromValue returns a pointer to a valid VpnL2vpnsListTypeIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnL2vpnsListTypeIcParameterInnerFromValue(v string) (*VpnL2vpnsListTypeIcParameterInner, error) { + ev := VpnL2vpnsListTypeIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnL2vpnsListTypeIcParameterInner: valid values are %v", v, AllowedVpnL2vpnsListTypeIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnL2vpnsListTypeIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnL2vpnsListTypeIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_l2vpns_list_type__ic_parameter_inner value +func (v VpnL2vpnsListTypeIcParameterInner) Ptr() *VpnL2vpnsListTypeIcParameterInner { + return &v +} + +type NullableVpnL2vpnsListTypeIcParameterInner struct { + value *VpnL2vpnsListTypeIcParameterInner + isSet bool +} + +func (v NullableVpnL2vpnsListTypeIcParameterInner) Get() *VpnL2vpnsListTypeIcParameterInner { + return v.value +} + +func (v *NullableVpnL2vpnsListTypeIcParameterInner) Set(val *VpnL2vpnsListTypeIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnL2vpnsListTypeIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnL2vpnsListTypeIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnL2vpnsListTypeIcParameterInner(val *VpnL2vpnsListTypeIcParameterInner) *NullableVpnL2vpnsListTypeIcParameterInner { + return &NullableVpnL2vpnsListTypeIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnL2vpnsListTypeIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnL2vpnsListTypeIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_tunnel_terminations_list_role__ic_parameter_inner.go b/model_vpn_tunnel_terminations_list_role__ic_parameter_inner.go new file mode 100644 index 000000000..8a3ff4a70 --- /dev/null +++ b/model_vpn_tunnel_terminations_list_role__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnTunnelTerminationsListRoleIcParameterInner the model 'VpnTunnelTerminationsListRoleIcParameterInner' +type VpnTunnelTerminationsListRoleIcParameterInner string + +// List of vpn_tunnel_terminations_list_role__ic_parameter_inner +const ( + VPNTUNNELTERMINATIONSLISTROLEICPARAMETERINNER_HUB VpnTunnelTerminationsListRoleIcParameterInner = "hub" + VPNTUNNELTERMINATIONSLISTROLEICPARAMETERINNER_PEER VpnTunnelTerminationsListRoleIcParameterInner = "peer" + VPNTUNNELTERMINATIONSLISTROLEICPARAMETERINNER_SPOKE VpnTunnelTerminationsListRoleIcParameterInner = "spoke" +) + +// All allowed values of VpnTunnelTerminationsListRoleIcParameterInner enum +var AllowedVpnTunnelTerminationsListRoleIcParameterInnerEnumValues = []VpnTunnelTerminationsListRoleIcParameterInner{ + "hub", + "peer", + "spoke", +} + +func (v *VpnTunnelTerminationsListRoleIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnTunnelTerminationsListRoleIcParameterInner(value) + for _, existing := range AllowedVpnTunnelTerminationsListRoleIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnTunnelTerminationsListRoleIcParameterInner", value) +} + +// NewVpnTunnelTerminationsListRoleIcParameterInnerFromValue returns a pointer to a valid VpnTunnelTerminationsListRoleIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnTunnelTerminationsListRoleIcParameterInnerFromValue(v string) (*VpnTunnelTerminationsListRoleIcParameterInner, error) { + ev := VpnTunnelTerminationsListRoleIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnTunnelTerminationsListRoleIcParameterInner: valid values are %v", v, AllowedVpnTunnelTerminationsListRoleIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnTunnelTerminationsListRoleIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnTunnelTerminationsListRoleIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_tunnel_terminations_list_role__ic_parameter_inner value +func (v VpnTunnelTerminationsListRoleIcParameterInner) Ptr() *VpnTunnelTerminationsListRoleIcParameterInner { + return &v +} + +type NullableVpnTunnelTerminationsListRoleIcParameterInner struct { + value *VpnTunnelTerminationsListRoleIcParameterInner + isSet bool +} + +func (v NullableVpnTunnelTerminationsListRoleIcParameterInner) Get() *VpnTunnelTerminationsListRoleIcParameterInner { + return v.value +} + +func (v *NullableVpnTunnelTerminationsListRoleIcParameterInner) Set(val *VpnTunnelTerminationsListRoleIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnTunnelTerminationsListRoleIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnTunnelTerminationsListRoleIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnTunnelTerminationsListRoleIcParameterInner(val *VpnTunnelTerminationsListRoleIcParameterInner) *NullableVpnTunnelTerminationsListRoleIcParameterInner { + return &NullableVpnTunnelTerminationsListRoleIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnTunnelTerminationsListRoleIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnTunnelTerminationsListRoleIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_tunnels_list_encapsulation__ic_parameter_inner.go b/model_vpn_tunnels_list_encapsulation__ic_parameter_inner.go new file mode 100644 index 000000000..82b9c551e --- /dev/null +++ b/model_vpn_tunnels_list_encapsulation__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnTunnelsListEncapsulationIcParameterInner the model 'VpnTunnelsListEncapsulationIcParameterInner' +type VpnTunnelsListEncapsulationIcParameterInner string + +// List of vpn_tunnels_list_encapsulation__ic_parameter_inner +const ( + VPNTUNNELSLISTENCAPSULATIONICPARAMETERINNER_GRE VpnTunnelsListEncapsulationIcParameterInner = "gre" + VPNTUNNELSLISTENCAPSULATIONICPARAMETERINNER_IP_IP VpnTunnelsListEncapsulationIcParameterInner = "ip-ip" + VPNTUNNELSLISTENCAPSULATIONICPARAMETERINNER_IPSEC_TRANSPORT VpnTunnelsListEncapsulationIcParameterInner = "ipsec-transport" + VPNTUNNELSLISTENCAPSULATIONICPARAMETERINNER_IPSEC_TUNNEL VpnTunnelsListEncapsulationIcParameterInner = "ipsec-tunnel" +) + +// All allowed values of VpnTunnelsListEncapsulationIcParameterInner enum +var AllowedVpnTunnelsListEncapsulationIcParameterInnerEnumValues = []VpnTunnelsListEncapsulationIcParameterInner{ + "gre", + "ip-ip", + "ipsec-transport", + "ipsec-tunnel", +} + +func (v *VpnTunnelsListEncapsulationIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnTunnelsListEncapsulationIcParameterInner(value) + for _, existing := range AllowedVpnTunnelsListEncapsulationIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnTunnelsListEncapsulationIcParameterInner", value) +} + +// NewVpnTunnelsListEncapsulationIcParameterInnerFromValue returns a pointer to a valid VpnTunnelsListEncapsulationIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnTunnelsListEncapsulationIcParameterInnerFromValue(v string) (*VpnTunnelsListEncapsulationIcParameterInner, error) { + ev := VpnTunnelsListEncapsulationIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnTunnelsListEncapsulationIcParameterInner: valid values are %v", v, AllowedVpnTunnelsListEncapsulationIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnTunnelsListEncapsulationIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnTunnelsListEncapsulationIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_tunnels_list_encapsulation__ic_parameter_inner value +func (v VpnTunnelsListEncapsulationIcParameterInner) Ptr() *VpnTunnelsListEncapsulationIcParameterInner { + return &v +} + +type NullableVpnTunnelsListEncapsulationIcParameterInner struct { + value *VpnTunnelsListEncapsulationIcParameterInner + isSet bool +} + +func (v NullableVpnTunnelsListEncapsulationIcParameterInner) Get() *VpnTunnelsListEncapsulationIcParameterInner { + return v.value +} + +func (v *NullableVpnTunnelsListEncapsulationIcParameterInner) Set(val *VpnTunnelsListEncapsulationIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnTunnelsListEncapsulationIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnTunnelsListEncapsulationIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnTunnelsListEncapsulationIcParameterInner(val *VpnTunnelsListEncapsulationIcParameterInner) *NullableVpnTunnelsListEncapsulationIcParameterInner { + return &NullableVpnTunnelsListEncapsulationIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnTunnelsListEncapsulationIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnTunnelsListEncapsulationIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_vpn_tunnels_list_status__ic_parameter_inner.go b/model_vpn_tunnels_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..08299cf2a --- /dev/null +++ b/model_vpn_tunnels_list_status__ic_parameter_inner.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// VpnTunnelsListStatusIcParameterInner the model 'VpnTunnelsListStatusIcParameterInner' +type VpnTunnelsListStatusIcParameterInner string + +// List of vpn_tunnels_list_status__ic_parameter_inner +const ( + VPNTUNNELSLISTSTATUSICPARAMETERINNER_ACTIVE VpnTunnelsListStatusIcParameterInner = "active" + VPNTUNNELSLISTSTATUSICPARAMETERINNER_DISABLED VpnTunnelsListStatusIcParameterInner = "disabled" + VPNTUNNELSLISTSTATUSICPARAMETERINNER_PLANNED VpnTunnelsListStatusIcParameterInner = "planned" +) + +// All allowed values of VpnTunnelsListStatusIcParameterInner enum +var AllowedVpnTunnelsListStatusIcParameterInnerEnumValues = []VpnTunnelsListStatusIcParameterInner{ + "active", + "disabled", + "planned", +} + +func (v *VpnTunnelsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := VpnTunnelsListStatusIcParameterInner(value) + for _, existing := range AllowedVpnTunnelsListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid VpnTunnelsListStatusIcParameterInner", value) +} + +// NewVpnTunnelsListStatusIcParameterInnerFromValue returns a pointer to a valid VpnTunnelsListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewVpnTunnelsListStatusIcParameterInnerFromValue(v string) (*VpnTunnelsListStatusIcParameterInner, error) { + ev := VpnTunnelsListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for VpnTunnelsListStatusIcParameterInner: valid values are %v", v, AllowedVpnTunnelsListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v VpnTunnelsListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedVpnTunnelsListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to vpn_tunnels_list_status__ic_parameter_inner value +func (v VpnTunnelsListStatusIcParameterInner) Ptr() *VpnTunnelsListStatusIcParameterInner { + return &v +} + +type NullableVpnTunnelsListStatusIcParameterInner struct { + value *VpnTunnelsListStatusIcParameterInner + isSet bool +} + +func (v NullableVpnTunnelsListStatusIcParameterInner) Get() *VpnTunnelsListStatusIcParameterInner { + return v.value +} + +func (v *NullableVpnTunnelsListStatusIcParameterInner) Set(val *VpnTunnelsListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableVpnTunnelsListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableVpnTunnelsListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableVpnTunnelsListStatusIcParameterInner(val *VpnTunnelsListStatusIcParameterInner) *NullableVpnTunnelsListStatusIcParameterInner { + return &NullableVpnTunnelsListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableVpnTunnelsListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableVpnTunnelsListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_wireless_channel_1.go b/model_wireless_channel_1.go new file mode 100644 index 000000000..d5c0167c5 --- /dev/null +++ b/model_wireless_channel_1.go @@ -0,0 +1,503 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessChannel1 * `2.4g-1-2412-22` - 1 (2412 MHz) * `2.4g-2-2417-22` - 2 (2417 MHz) * `2.4g-3-2422-22` - 3 (2422 MHz) * `2.4g-4-2427-22` - 4 (2427 MHz) * `2.4g-5-2432-22` - 5 (2432 MHz) * `2.4g-6-2437-22` - 6 (2437 MHz) * `2.4g-7-2442-22` - 7 (2442 MHz) * `2.4g-8-2447-22` - 8 (2447 MHz) * `2.4g-9-2452-22` - 9 (2452 MHz) * `2.4g-10-2457-22` - 10 (2457 MHz) * `2.4g-11-2462-22` - 11 (2462 MHz) * `2.4g-12-2467-22` - 12 (2467 MHz) * `2.4g-13-2472-22` - 13 (2472 MHz) * `5g-32-5160-20` - 32 (5160/20 MHz) * `5g-34-5170-40` - 34 (5170/40 MHz) * `5g-36-5180-20` - 36 (5180/20 MHz) * `5g-38-5190-40` - 38 (5190/40 MHz) * `5g-40-5200-20` - 40 (5200/20 MHz) * `5g-42-5210-80` - 42 (5210/80 MHz) * `5g-44-5220-20` - 44 (5220/20 MHz) * `5g-46-5230-40` - 46 (5230/40 MHz) * `5g-48-5240-20` - 48 (5240/20 MHz) * `5g-50-5250-160` - 50 (5250/160 MHz) * `5g-52-5260-20` - 52 (5260/20 MHz) * `5g-54-5270-40` - 54 (5270/40 MHz) * `5g-56-5280-20` - 56 (5280/20 MHz) * `5g-58-5290-80` - 58 (5290/80 MHz) * `5g-60-5300-20` - 60 (5300/20 MHz) * `5g-62-5310-40` - 62 (5310/40 MHz) * `5g-64-5320-20` - 64 (5320/20 MHz) * `5g-100-5500-20` - 100 (5500/20 MHz) * `5g-102-5510-40` - 102 (5510/40 MHz) * `5g-104-5520-20` - 104 (5520/20 MHz) * `5g-106-5530-80` - 106 (5530/80 MHz) * `5g-108-5540-20` - 108 (5540/20 MHz) * `5g-110-5550-40` - 110 (5550/40 MHz) * `5g-112-5560-20` - 112 (5560/20 MHz) * `5g-114-5570-160` - 114 (5570/160 MHz) * `5g-116-5580-20` - 116 (5580/20 MHz) * `5g-118-5590-40` - 118 (5590/40 MHz) * `5g-120-5600-20` - 120 (5600/20 MHz) * `5g-122-5610-80` - 122 (5610/80 MHz) * `5g-124-5620-20` - 124 (5620/20 MHz) * `5g-126-5630-40` - 126 (5630/40 MHz) * `5g-128-5640-20` - 128 (5640/20 MHz) * `5g-132-5660-20` - 132 (5660/20 MHz) * `5g-134-5670-40` - 134 (5670/40 MHz) * `5g-136-5680-20` - 136 (5680/20 MHz) * `5g-138-5690-80` - 138 (5690/80 MHz) * `5g-140-5700-20` - 140 (5700/20 MHz) * `5g-142-5710-40` - 142 (5710/40 MHz) * `5g-144-5720-20` - 144 (5720/20 MHz) * `5g-149-5745-20` - 149 (5745/20 MHz) * `5g-151-5755-40` - 151 (5755/40 MHz) * `5g-153-5765-20` - 153 (5765/20 MHz) * `5g-155-5775-80` - 155 (5775/80 MHz) * `5g-157-5785-20` - 157 (5785/20 MHz) * `5g-159-5795-40` - 159 (5795/40 MHz) * `5g-161-5805-20` - 161 (5805/20 MHz) * `5g-163-5815-160` - 163 (5815/160 MHz) * `5g-165-5825-20` - 165 (5825/20 MHz) * `5g-167-5835-40` - 167 (5835/40 MHz) * `5g-169-5845-20` - 169 (5845/20 MHz) * `5g-171-5855-80` - 171 (5855/80 MHz) * `5g-173-5865-20` - 173 (5865/20 MHz) * `5g-175-5875-40` - 175 (5875/40 MHz) * `5g-177-5885-20` - 177 (5885/20 MHz) * `6g-1-5955-20` - 1 (5955/20 MHz) * `6g-3-5965-40` - 3 (5965/40 MHz) * `6g-5-5975-20` - 5 (5975/20 MHz) * `6g-7-5985-80` - 7 (5985/80 MHz) * `6g-9-5995-20` - 9 (5995/20 MHz) * `6g-11-6005-40` - 11 (6005/40 MHz) * `6g-13-6015-20` - 13 (6015/20 MHz) * `6g-15-6025-160` - 15 (6025/160 MHz) * `6g-17-6035-20` - 17 (6035/20 MHz) * `6g-19-6045-40` - 19 (6045/40 MHz) * `6g-21-6055-20` - 21 (6055/20 MHz) * `6g-23-6065-80` - 23 (6065/80 MHz) * `6g-25-6075-20` - 25 (6075/20 MHz) * `6g-27-6085-40` - 27 (6085/40 MHz) * `6g-29-6095-20` - 29 (6095/20 MHz) * `6g-31-6105-320` - 31 (6105/320 MHz) * `6g-33-6115-20` - 33 (6115/20 MHz) * `6g-35-6125-40` - 35 (6125/40 MHz) * `6g-37-6135-20` - 37 (6135/20 MHz) * `6g-39-6145-80` - 39 (6145/80 MHz) * `6g-41-6155-20` - 41 (6155/20 MHz) * `6g-43-6165-40` - 43 (6165/40 MHz) * `6g-45-6175-20` - 45 (6175/20 MHz) * `6g-47-6185-160` - 47 (6185/160 MHz) * `6g-49-6195-20` - 49 (6195/20 MHz) * `6g-51-6205-40` - 51 (6205/40 MHz) * `6g-53-6215-20` - 53 (6215/20 MHz) * `6g-55-6225-80` - 55 (6225/80 MHz) * `6g-57-6235-20` - 57 (6235/20 MHz) * `6g-59-6245-40` - 59 (6245/40 MHz) * `6g-61-6255-20` - 61 (6255/20 MHz) * `6g-65-6275-20` - 65 (6275/20 MHz) * `6g-67-6285-40` - 67 (6285/40 MHz) * `6g-69-6295-20` - 69 (6295/20 MHz) * `6g-71-6305-80` - 71 (6305/80 MHz) * `6g-73-6315-20` - 73 (6315/20 MHz) * `6g-75-6325-40` - 75 (6325/40 MHz) * `6g-77-6335-20` - 77 (6335/20 MHz) * `6g-79-6345-160` - 79 (6345/160 MHz) * `6g-81-6355-20` - 81 (6355/20 MHz) * `6g-83-6365-40` - 83 (6365/40 MHz) * `6g-85-6375-20` - 85 (6375/20 MHz) * `6g-87-6385-80` - 87 (6385/80 MHz) * `6g-89-6395-20` - 89 (6395/20 MHz) * `6g-91-6405-40` - 91 (6405/40 MHz) * `6g-93-6415-20` - 93 (6415/20 MHz) * `6g-95-6425-320` - 95 (6425/320 MHz) * `6g-97-6435-20` - 97 (6435/20 MHz) * `6g-99-6445-40` - 99 (6445/40 MHz) * `6g-101-6455-20` - 101 (6455/20 MHz) * `6g-103-6465-80` - 103 (6465/80 MHz) * `6g-105-6475-20` - 105 (6475/20 MHz) * `6g-107-6485-40` - 107 (6485/40 MHz) * `6g-109-6495-20` - 109 (6495/20 MHz) * `6g-111-6505-160` - 111 (6505/160 MHz) * `6g-113-6515-20` - 113 (6515/20 MHz) * `6g-115-6525-40` - 115 (6525/40 MHz) * `6g-117-6535-20` - 117 (6535/20 MHz) * `6g-119-6545-80` - 119 (6545/80 MHz) * `6g-121-6555-20` - 121 (6555/20 MHz) * `6g-123-6565-40` - 123 (6565/40 MHz) * `6g-125-6575-20` - 125 (6575/20 MHz) * `6g-129-6595-20` - 129 (6595/20 MHz) * `6g-131-6605-40` - 131 (6605/40 MHz) * `6g-133-6615-20` - 133 (6615/20 MHz) * `6g-135-6625-80` - 135 (6625/80 MHz) * `6g-137-6635-20` - 137 (6635/20 MHz) * `6g-139-6645-40` - 139 (6645/40 MHz) * `6g-141-6655-20` - 141 (6655/20 MHz) * `6g-143-6665-160` - 143 (6665/160 MHz) * `6g-145-6675-20` - 145 (6675/20 MHz) * `6g-147-6685-40` - 147 (6685/40 MHz) * `6g-149-6695-20` - 149 (6695/20 MHz) * `6g-151-6705-80` - 151 (6705/80 MHz) * `6g-153-6715-20` - 153 (6715/20 MHz) * `6g-155-6725-40` - 155 (6725/40 MHz) * `6g-157-6735-20` - 157 (6735/20 MHz) * `6g-159-6745-320` - 159 (6745/320 MHz) * `6g-161-6755-20` - 161 (6755/20 MHz) * `6g-163-6765-40` - 163 (6765/40 MHz) * `6g-165-6775-20` - 165 (6775/20 MHz) * `6g-167-6785-80` - 167 (6785/80 MHz) * `6g-169-6795-20` - 169 (6795/20 MHz) * `6g-171-6805-40` - 171 (6805/40 MHz) * `6g-173-6815-20` - 173 (6815/20 MHz) * `6g-175-6825-160` - 175 (6825/160 MHz) * `6g-177-6835-20` - 177 (6835/20 MHz) * `6g-179-6845-40` - 179 (6845/40 MHz) * `6g-181-6855-20` - 181 (6855/20 MHz) * `6g-183-6865-80` - 183 (6865/80 MHz) * `6g-185-6875-20` - 185 (6875/20 MHz) * `6g-187-6885-40` - 187 (6885/40 MHz) * `6g-189-6895-20` - 189 (6895/20 MHz) * `6g-193-6915-20` - 193 (6915/20 MHz) * `6g-195-6925-40` - 195 (6925/40 MHz) * `6g-197-6935-20` - 197 (6935/20 MHz) * `6g-199-6945-80` - 199 (6945/80 MHz) * `6g-201-6955-20` - 201 (6955/20 MHz) * `6g-203-6965-40` - 203 (6965/40 MHz) * `6g-205-6975-20` - 205 (6975/20 MHz) * `6g-207-6985-160` - 207 (6985/160 MHz) * `6g-209-6995-20` - 209 (6995/20 MHz) * `6g-211-7005-40` - 211 (7005/40 MHz) * `6g-213-7015-20` - 213 (7015/20 MHz) * `6g-215-7025-80` - 215 (7025/80 MHz) * `6g-217-7035-20` - 217 (7035/20 MHz) * `6g-219-7045-40` - 219 (7045/40 MHz) * `6g-221-7055-20` - 221 (7055/20 MHz) * `6g-225-7075-20` - 225 (7075/20 MHz) * `6g-227-7085-40` - 227 (7085/40 MHz) * `6g-229-7095-20` - 229 (7095/20 MHz) * `6g-233-7115-20` - 233 (7115/20 MHz) * `60g-1-58320-2160` - 1 (58.32/2.16 GHz) * `60g-2-60480-2160` - 2 (60.48/2.16 GHz) * `60g-3-62640-2160` - 3 (62.64/2.16 GHz) * `60g-4-64800-2160` - 4 (64.80/2.16 GHz) * `60g-5-66960-2160` - 5 (66.96/2.16 GHz) * `60g-6-69120-2160` - 6 (69.12/2.16 GHz) * `60g-9-59400-4320` - 9 (59.40/4.32 GHz) * `60g-10-61560-4320` - 10 (61.56/4.32 GHz) * `60g-11-63720-4320` - 11 (63.72/4.32 GHz) * `60g-12-65880-4320` - 12 (65.88/4.32 GHz) * `60g-13-68040-4320` - 13 (68.04/4.32 GHz) * `60g-17-60480-6480` - 17 (60.48/6.48 GHz) * `60g-18-62640-6480` - 18 (62.64/6.48 GHz) * `60g-19-64800-6480` - 19 (64.80/6.48 GHz) * `60g-20-66960-6480` - 20 (66.96/6.48 GHz) * `60g-25-61560-6480` - 25 (61.56/8.64 GHz) * `60g-26-63720-6480` - 26 (63.72/8.64 GHz) * `60g-27-65880-6480` - 27 (65.88/8.64 GHz) +type WirelessChannel1 string + +// List of Wireless_channel_1 +const ( + WIRELESSCHANNEL1__2_4G_1_2412_22 WirelessChannel1 = "2.4g-1-2412-22" + WIRELESSCHANNEL1__2_4G_2_2417_22 WirelessChannel1 = "2.4g-2-2417-22" + WIRELESSCHANNEL1__2_4G_3_2422_22 WirelessChannel1 = "2.4g-3-2422-22" + WIRELESSCHANNEL1__2_4G_4_2427_22 WirelessChannel1 = "2.4g-4-2427-22" + WIRELESSCHANNEL1__2_4G_5_2432_22 WirelessChannel1 = "2.4g-5-2432-22" + WIRELESSCHANNEL1__2_4G_6_2437_22 WirelessChannel1 = "2.4g-6-2437-22" + WIRELESSCHANNEL1__2_4G_7_2442_22 WirelessChannel1 = "2.4g-7-2442-22" + WIRELESSCHANNEL1__2_4G_8_2447_22 WirelessChannel1 = "2.4g-8-2447-22" + WIRELESSCHANNEL1__2_4G_9_2452_22 WirelessChannel1 = "2.4g-9-2452-22" + WIRELESSCHANNEL1__2_4G_10_2457_22 WirelessChannel1 = "2.4g-10-2457-22" + WIRELESSCHANNEL1__2_4G_11_2462_22 WirelessChannel1 = "2.4g-11-2462-22" + WIRELESSCHANNEL1__2_4G_12_2467_22 WirelessChannel1 = "2.4g-12-2467-22" + WIRELESSCHANNEL1__2_4G_13_2472_22 WirelessChannel1 = "2.4g-13-2472-22" + WIRELESSCHANNEL1__5G_32_5160_20 WirelessChannel1 = "5g-32-5160-20" + WIRELESSCHANNEL1__5G_34_5170_40 WirelessChannel1 = "5g-34-5170-40" + WIRELESSCHANNEL1__5G_36_5180_20 WirelessChannel1 = "5g-36-5180-20" + WIRELESSCHANNEL1__5G_38_5190_40 WirelessChannel1 = "5g-38-5190-40" + WIRELESSCHANNEL1__5G_40_5200_20 WirelessChannel1 = "5g-40-5200-20" + WIRELESSCHANNEL1__5G_42_5210_80 WirelessChannel1 = "5g-42-5210-80" + WIRELESSCHANNEL1__5G_44_5220_20 WirelessChannel1 = "5g-44-5220-20" + WIRELESSCHANNEL1__5G_46_5230_40 WirelessChannel1 = "5g-46-5230-40" + WIRELESSCHANNEL1__5G_48_5240_20 WirelessChannel1 = "5g-48-5240-20" + WIRELESSCHANNEL1__5G_50_5250_160 WirelessChannel1 = "5g-50-5250-160" + WIRELESSCHANNEL1__5G_52_5260_20 WirelessChannel1 = "5g-52-5260-20" + WIRELESSCHANNEL1__5G_54_5270_40 WirelessChannel1 = "5g-54-5270-40" + WIRELESSCHANNEL1__5G_56_5280_20 WirelessChannel1 = "5g-56-5280-20" + WIRELESSCHANNEL1__5G_58_5290_80 WirelessChannel1 = "5g-58-5290-80" + WIRELESSCHANNEL1__5G_60_5300_20 WirelessChannel1 = "5g-60-5300-20" + WIRELESSCHANNEL1__5G_62_5310_40 WirelessChannel1 = "5g-62-5310-40" + WIRELESSCHANNEL1__5G_64_5320_20 WirelessChannel1 = "5g-64-5320-20" + WIRELESSCHANNEL1__5G_100_5500_20 WirelessChannel1 = "5g-100-5500-20" + WIRELESSCHANNEL1__5G_102_5510_40 WirelessChannel1 = "5g-102-5510-40" + WIRELESSCHANNEL1__5G_104_5520_20 WirelessChannel1 = "5g-104-5520-20" + WIRELESSCHANNEL1__5G_106_5530_80 WirelessChannel1 = "5g-106-5530-80" + WIRELESSCHANNEL1__5G_108_5540_20 WirelessChannel1 = "5g-108-5540-20" + WIRELESSCHANNEL1__5G_110_5550_40 WirelessChannel1 = "5g-110-5550-40" + WIRELESSCHANNEL1__5G_112_5560_20 WirelessChannel1 = "5g-112-5560-20" + WIRELESSCHANNEL1__5G_114_5570_160 WirelessChannel1 = "5g-114-5570-160" + WIRELESSCHANNEL1__5G_116_5580_20 WirelessChannel1 = "5g-116-5580-20" + WIRELESSCHANNEL1__5G_118_5590_40 WirelessChannel1 = "5g-118-5590-40" + WIRELESSCHANNEL1__5G_120_5600_20 WirelessChannel1 = "5g-120-5600-20" + WIRELESSCHANNEL1__5G_122_5610_80 WirelessChannel1 = "5g-122-5610-80" + WIRELESSCHANNEL1__5G_124_5620_20 WirelessChannel1 = "5g-124-5620-20" + WIRELESSCHANNEL1__5G_126_5630_40 WirelessChannel1 = "5g-126-5630-40" + WIRELESSCHANNEL1__5G_128_5640_20 WirelessChannel1 = "5g-128-5640-20" + WIRELESSCHANNEL1__5G_132_5660_20 WirelessChannel1 = "5g-132-5660-20" + WIRELESSCHANNEL1__5G_134_5670_40 WirelessChannel1 = "5g-134-5670-40" + WIRELESSCHANNEL1__5G_136_5680_20 WirelessChannel1 = "5g-136-5680-20" + WIRELESSCHANNEL1__5G_138_5690_80 WirelessChannel1 = "5g-138-5690-80" + WIRELESSCHANNEL1__5G_140_5700_20 WirelessChannel1 = "5g-140-5700-20" + WIRELESSCHANNEL1__5G_142_5710_40 WirelessChannel1 = "5g-142-5710-40" + WIRELESSCHANNEL1__5G_144_5720_20 WirelessChannel1 = "5g-144-5720-20" + WIRELESSCHANNEL1__5G_149_5745_20 WirelessChannel1 = "5g-149-5745-20" + WIRELESSCHANNEL1__5G_151_5755_40 WirelessChannel1 = "5g-151-5755-40" + WIRELESSCHANNEL1__5G_153_5765_20 WirelessChannel1 = "5g-153-5765-20" + WIRELESSCHANNEL1__5G_155_5775_80 WirelessChannel1 = "5g-155-5775-80" + WIRELESSCHANNEL1__5G_157_5785_20 WirelessChannel1 = "5g-157-5785-20" + WIRELESSCHANNEL1__5G_159_5795_40 WirelessChannel1 = "5g-159-5795-40" + WIRELESSCHANNEL1__5G_161_5805_20 WirelessChannel1 = "5g-161-5805-20" + WIRELESSCHANNEL1__5G_163_5815_160 WirelessChannel1 = "5g-163-5815-160" + WIRELESSCHANNEL1__5G_165_5825_20 WirelessChannel1 = "5g-165-5825-20" + WIRELESSCHANNEL1__5G_167_5835_40 WirelessChannel1 = "5g-167-5835-40" + WIRELESSCHANNEL1__5G_169_5845_20 WirelessChannel1 = "5g-169-5845-20" + WIRELESSCHANNEL1__5G_171_5855_80 WirelessChannel1 = "5g-171-5855-80" + WIRELESSCHANNEL1__5G_173_5865_20 WirelessChannel1 = "5g-173-5865-20" + WIRELESSCHANNEL1__5G_175_5875_40 WirelessChannel1 = "5g-175-5875-40" + WIRELESSCHANNEL1__5G_177_5885_20 WirelessChannel1 = "5g-177-5885-20" + WIRELESSCHANNEL1__6G_1_5955_20 WirelessChannel1 = "6g-1-5955-20" + WIRELESSCHANNEL1__6G_3_5965_40 WirelessChannel1 = "6g-3-5965-40" + WIRELESSCHANNEL1__6G_5_5975_20 WirelessChannel1 = "6g-5-5975-20" + WIRELESSCHANNEL1__6G_7_5985_80 WirelessChannel1 = "6g-7-5985-80" + WIRELESSCHANNEL1__6G_9_5995_20 WirelessChannel1 = "6g-9-5995-20" + WIRELESSCHANNEL1__6G_11_6005_40 WirelessChannel1 = "6g-11-6005-40" + WIRELESSCHANNEL1__6G_13_6015_20 WirelessChannel1 = "6g-13-6015-20" + WIRELESSCHANNEL1__6G_15_6025_160 WirelessChannel1 = "6g-15-6025-160" + WIRELESSCHANNEL1__6G_17_6035_20 WirelessChannel1 = "6g-17-6035-20" + WIRELESSCHANNEL1__6G_19_6045_40 WirelessChannel1 = "6g-19-6045-40" + WIRELESSCHANNEL1__6G_21_6055_20 WirelessChannel1 = "6g-21-6055-20" + WIRELESSCHANNEL1__6G_23_6065_80 WirelessChannel1 = "6g-23-6065-80" + WIRELESSCHANNEL1__6G_25_6075_20 WirelessChannel1 = "6g-25-6075-20" + WIRELESSCHANNEL1__6G_27_6085_40 WirelessChannel1 = "6g-27-6085-40" + WIRELESSCHANNEL1__6G_29_6095_20 WirelessChannel1 = "6g-29-6095-20" + WIRELESSCHANNEL1__6G_31_6105_320 WirelessChannel1 = "6g-31-6105-320" + WIRELESSCHANNEL1__6G_33_6115_20 WirelessChannel1 = "6g-33-6115-20" + WIRELESSCHANNEL1__6G_35_6125_40 WirelessChannel1 = "6g-35-6125-40" + WIRELESSCHANNEL1__6G_37_6135_20 WirelessChannel1 = "6g-37-6135-20" + WIRELESSCHANNEL1__6G_39_6145_80 WirelessChannel1 = "6g-39-6145-80" + WIRELESSCHANNEL1__6G_41_6155_20 WirelessChannel1 = "6g-41-6155-20" + WIRELESSCHANNEL1__6G_43_6165_40 WirelessChannel1 = "6g-43-6165-40" + WIRELESSCHANNEL1__6G_45_6175_20 WirelessChannel1 = "6g-45-6175-20" + WIRELESSCHANNEL1__6G_47_6185_160 WirelessChannel1 = "6g-47-6185-160" + WIRELESSCHANNEL1__6G_49_6195_20 WirelessChannel1 = "6g-49-6195-20" + WIRELESSCHANNEL1__6G_51_6205_40 WirelessChannel1 = "6g-51-6205-40" + WIRELESSCHANNEL1__6G_53_6215_20 WirelessChannel1 = "6g-53-6215-20" + WIRELESSCHANNEL1__6G_55_6225_80 WirelessChannel1 = "6g-55-6225-80" + WIRELESSCHANNEL1__6G_57_6235_20 WirelessChannel1 = "6g-57-6235-20" + WIRELESSCHANNEL1__6G_59_6245_40 WirelessChannel1 = "6g-59-6245-40" + WIRELESSCHANNEL1__6G_61_6255_20 WirelessChannel1 = "6g-61-6255-20" + WIRELESSCHANNEL1__6G_65_6275_20 WirelessChannel1 = "6g-65-6275-20" + WIRELESSCHANNEL1__6G_67_6285_40 WirelessChannel1 = "6g-67-6285-40" + WIRELESSCHANNEL1__6G_69_6295_20 WirelessChannel1 = "6g-69-6295-20" + WIRELESSCHANNEL1__6G_71_6305_80 WirelessChannel1 = "6g-71-6305-80" + WIRELESSCHANNEL1__6G_73_6315_20 WirelessChannel1 = "6g-73-6315-20" + WIRELESSCHANNEL1__6G_75_6325_40 WirelessChannel1 = "6g-75-6325-40" + WIRELESSCHANNEL1__6G_77_6335_20 WirelessChannel1 = "6g-77-6335-20" + WIRELESSCHANNEL1__6G_79_6345_160 WirelessChannel1 = "6g-79-6345-160" + WIRELESSCHANNEL1__6G_81_6355_20 WirelessChannel1 = "6g-81-6355-20" + WIRELESSCHANNEL1__6G_83_6365_40 WirelessChannel1 = "6g-83-6365-40" + WIRELESSCHANNEL1__6G_85_6375_20 WirelessChannel1 = "6g-85-6375-20" + WIRELESSCHANNEL1__6G_87_6385_80 WirelessChannel1 = "6g-87-6385-80" + WIRELESSCHANNEL1__6G_89_6395_20 WirelessChannel1 = "6g-89-6395-20" + WIRELESSCHANNEL1__6G_91_6405_40 WirelessChannel1 = "6g-91-6405-40" + WIRELESSCHANNEL1__6G_93_6415_20 WirelessChannel1 = "6g-93-6415-20" + WIRELESSCHANNEL1__6G_95_6425_320 WirelessChannel1 = "6g-95-6425-320" + WIRELESSCHANNEL1__6G_97_6435_20 WirelessChannel1 = "6g-97-6435-20" + WIRELESSCHANNEL1__6G_99_6445_40 WirelessChannel1 = "6g-99-6445-40" + WIRELESSCHANNEL1__6G_101_6455_20 WirelessChannel1 = "6g-101-6455-20" + WIRELESSCHANNEL1__6G_103_6465_80 WirelessChannel1 = "6g-103-6465-80" + WIRELESSCHANNEL1__6G_105_6475_20 WirelessChannel1 = "6g-105-6475-20" + WIRELESSCHANNEL1__6G_107_6485_40 WirelessChannel1 = "6g-107-6485-40" + WIRELESSCHANNEL1__6G_109_6495_20 WirelessChannel1 = "6g-109-6495-20" + WIRELESSCHANNEL1__6G_111_6505_160 WirelessChannel1 = "6g-111-6505-160" + WIRELESSCHANNEL1__6G_113_6515_20 WirelessChannel1 = "6g-113-6515-20" + WIRELESSCHANNEL1__6G_115_6525_40 WirelessChannel1 = "6g-115-6525-40" + WIRELESSCHANNEL1__6G_117_6535_20 WirelessChannel1 = "6g-117-6535-20" + WIRELESSCHANNEL1__6G_119_6545_80 WirelessChannel1 = "6g-119-6545-80" + WIRELESSCHANNEL1__6G_121_6555_20 WirelessChannel1 = "6g-121-6555-20" + WIRELESSCHANNEL1__6G_123_6565_40 WirelessChannel1 = "6g-123-6565-40" + WIRELESSCHANNEL1__6G_125_6575_20 WirelessChannel1 = "6g-125-6575-20" + WIRELESSCHANNEL1__6G_129_6595_20 WirelessChannel1 = "6g-129-6595-20" + WIRELESSCHANNEL1__6G_131_6605_40 WirelessChannel1 = "6g-131-6605-40" + WIRELESSCHANNEL1__6G_133_6615_20 WirelessChannel1 = "6g-133-6615-20" + WIRELESSCHANNEL1__6G_135_6625_80 WirelessChannel1 = "6g-135-6625-80" + WIRELESSCHANNEL1__6G_137_6635_20 WirelessChannel1 = "6g-137-6635-20" + WIRELESSCHANNEL1__6G_139_6645_40 WirelessChannel1 = "6g-139-6645-40" + WIRELESSCHANNEL1__6G_141_6655_20 WirelessChannel1 = "6g-141-6655-20" + WIRELESSCHANNEL1__6G_143_6665_160 WirelessChannel1 = "6g-143-6665-160" + WIRELESSCHANNEL1__6G_145_6675_20 WirelessChannel1 = "6g-145-6675-20" + WIRELESSCHANNEL1__6G_147_6685_40 WirelessChannel1 = "6g-147-6685-40" + WIRELESSCHANNEL1__6G_149_6695_20 WirelessChannel1 = "6g-149-6695-20" + WIRELESSCHANNEL1__6G_151_6705_80 WirelessChannel1 = "6g-151-6705-80" + WIRELESSCHANNEL1__6G_153_6715_20 WirelessChannel1 = "6g-153-6715-20" + WIRELESSCHANNEL1__6G_155_6725_40 WirelessChannel1 = "6g-155-6725-40" + WIRELESSCHANNEL1__6G_157_6735_20 WirelessChannel1 = "6g-157-6735-20" + WIRELESSCHANNEL1__6G_159_6745_320 WirelessChannel1 = "6g-159-6745-320" + WIRELESSCHANNEL1__6G_161_6755_20 WirelessChannel1 = "6g-161-6755-20" + WIRELESSCHANNEL1__6G_163_6765_40 WirelessChannel1 = "6g-163-6765-40" + WIRELESSCHANNEL1__6G_165_6775_20 WirelessChannel1 = "6g-165-6775-20" + WIRELESSCHANNEL1__6G_167_6785_80 WirelessChannel1 = "6g-167-6785-80" + WIRELESSCHANNEL1__6G_169_6795_20 WirelessChannel1 = "6g-169-6795-20" + WIRELESSCHANNEL1__6G_171_6805_40 WirelessChannel1 = "6g-171-6805-40" + WIRELESSCHANNEL1__6G_173_6815_20 WirelessChannel1 = "6g-173-6815-20" + WIRELESSCHANNEL1__6G_175_6825_160 WirelessChannel1 = "6g-175-6825-160" + WIRELESSCHANNEL1__6G_177_6835_20 WirelessChannel1 = "6g-177-6835-20" + WIRELESSCHANNEL1__6G_179_6845_40 WirelessChannel1 = "6g-179-6845-40" + WIRELESSCHANNEL1__6G_181_6855_20 WirelessChannel1 = "6g-181-6855-20" + WIRELESSCHANNEL1__6G_183_6865_80 WirelessChannel1 = "6g-183-6865-80" + WIRELESSCHANNEL1__6G_185_6875_20 WirelessChannel1 = "6g-185-6875-20" + WIRELESSCHANNEL1__6G_187_6885_40 WirelessChannel1 = "6g-187-6885-40" + WIRELESSCHANNEL1__6G_189_6895_20 WirelessChannel1 = "6g-189-6895-20" + WIRELESSCHANNEL1__6G_193_6915_20 WirelessChannel1 = "6g-193-6915-20" + WIRELESSCHANNEL1__6G_195_6925_40 WirelessChannel1 = "6g-195-6925-40" + WIRELESSCHANNEL1__6G_197_6935_20 WirelessChannel1 = "6g-197-6935-20" + WIRELESSCHANNEL1__6G_199_6945_80 WirelessChannel1 = "6g-199-6945-80" + WIRELESSCHANNEL1__6G_201_6955_20 WirelessChannel1 = "6g-201-6955-20" + WIRELESSCHANNEL1__6G_203_6965_40 WirelessChannel1 = "6g-203-6965-40" + WIRELESSCHANNEL1__6G_205_6975_20 WirelessChannel1 = "6g-205-6975-20" + WIRELESSCHANNEL1__6G_207_6985_160 WirelessChannel1 = "6g-207-6985-160" + WIRELESSCHANNEL1__6G_209_6995_20 WirelessChannel1 = "6g-209-6995-20" + WIRELESSCHANNEL1__6G_211_7005_40 WirelessChannel1 = "6g-211-7005-40" + WIRELESSCHANNEL1__6G_213_7015_20 WirelessChannel1 = "6g-213-7015-20" + WIRELESSCHANNEL1__6G_215_7025_80 WirelessChannel1 = "6g-215-7025-80" + WIRELESSCHANNEL1__6G_217_7035_20 WirelessChannel1 = "6g-217-7035-20" + WIRELESSCHANNEL1__6G_219_7045_40 WirelessChannel1 = "6g-219-7045-40" + WIRELESSCHANNEL1__6G_221_7055_20 WirelessChannel1 = "6g-221-7055-20" + WIRELESSCHANNEL1__6G_225_7075_20 WirelessChannel1 = "6g-225-7075-20" + WIRELESSCHANNEL1__6G_227_7085_40 WirelessChannel1 = "6g-227-7085-40" + WIRELESSCHANNEL1__6G_229_7095_20 WirelessChannel1 = "6g-229-7095-20" + WIRELESSCHANNEL1__6G_233_7115_20 WirelessChannel1 = "6g-233-7115-20" + WIRELESSCHANNEL1__60G_1_58320_2160 WirelessChannel1 = "60g-1-58320-2160" + WIRELESSCHANNEL1__60G_2_60480_2160 WirelessChannel1 = "60g-2-60480-2160" + WIRELESSCHANNEL1__60G_3_62640_2160 WirelessChannel1 = "60g-3-62640-2160" + WIRELESSCHANNEL1__60G_4_64800_2160 WirelessChannel1 = "60g-4-64800-2160" + WIRELESSCHANNEL1__60G_5_66960_2160 WirelessChannel1 = "60g-5-66960-2160" + WIRELESSCHANNEL1__60G_6_69120_2160 WirelessChannel1 = "60g-6-69120-2160" + WIRELESSCHANNEL1__60G_9_59400_4320 WirelessChannel1 = "60g-9-59400-4320" + WIRELESSCHANNEL1__60G_10_61560_4320 WirelessChannel1 = "60g-10-61560-4320" + WIRELESSCHANNEL1__60G_11_63720_4320 WirelessChannel1 = "60g-11-63720-4320" + WIRELESSCHANNEL1__60G_12_65880_4320 WirelessChannel1 = "60g-12-65880-4320" + WIRELESSCHANNEL1__60G_13_68040_4320 WirelessChannel1 = "60g-13-68040-4320" + WIRELESSCHANNEL1__60G_17_60480_6480 WirelessChannel1 = "60g-17-60480-6480" + WIRELESSCHANNEL1__60G_18_62640_6480 WirelessChannel1 = "60g-18-62640-6480" + WIRELESSCHANNEL1__60G_19_64800_6480 WirelessChannel1 = "60g-19-64800-6480" + WIRELESSCHANNEL1__60G_20_66960_6480 WirelessChannel1 = "60g-20-66960-6480" + WIRELESSCHANNEL1__60G_25_61560_6480 WirelessChannel1 = "60g-25-61560-6480" + WIRELESSCHANNEL1__60G_26_63720_6480 WirelessChannel1 = "60g-26-63720-6480" + WIRELESSCHANNEL1__60G_27_65880_6480 WirelessChannel1 = "60g-27-65880-6480" + WIRELESSCHANNEL1_EMPTY WirelessChannel1 = "" +) + +// All allowed values of WirelessChannel1 enum +var AllowedWirelessChannel1EnumValues = []WirelessChannel1{ + "2.4g-1-2412-22", + "2.4g-2-2417-22", + "2.4g-3-2422-22", + "2.4g-4-2427-22", + "2.4g-5-2432-22", + "2.4g-6-2437-22", + "2.4g-7-2442-22", + "2.4g-8-2447-22", + "2.4g-9-2452-22", + "2.4g-10-2457-22", + "2.4g-11-2462-22", + "2.4g-12-2467-22", + "2.4g-13-2472-22", + "5g-32-5160-20", + "5g-34-5170-40", + "5g-36-5180-20", + "5g-38-5190-40", + "5g-40-5200-20", + "5g-42-5210-80", + "5g-44-5220-20", + "5g-46-5230-40", + "5g-48-5240-20", + "5g-50-5250-160", + "5g-52-5260-20", + "5g-54-5270-40", + "5g-56-5280-20", + "5g-58-5290-80", + "5g-60-5300-20", + "5g-62-5310-40", + "5g-64-5320-20", + "5g-100-5500-20", + "5g-102-5510-40", + "5g-104-5520-20", + "5g-106-5530-80", + "5g-108-5540-20", + "5g-110-5550-40", + "5g-112-5560-20", + "5g-114-5570-160", + "5g-116-5580-20", + "5g-118-5590-40", + "5g-120-5600-20", + "5g-122-5610-80", + "5g-124-5620-20", + "5g-126-5630-40", + "5g-128-5640-20", + "5g-132-5660-20", + "5g-134-5670-40", + "5g-136-5680-20", + "5g-138-5690-80", + "5g-140-5700-20", + "5g-142-5710-40", + "5g-144-5720-20", + "5g-149-5745-20", + "5g-151-5755-40", + "5g-153-5765-20", + "5g-155-5775-80", + "5g-157-5785-20", + "5g-159-5795-40", + "5g-161-5805-20", + "5g-163-5815-160", + "5g-165-5825-20", + "5g-167-5835-40", + "5g-169-5845-20", + "5g-171-5855-80", + "5g-173-5865-20", + "5g-175-5875-40", + "5g-177-5885-20", + "6g-1-5955-20", + "6g-3-5965-40", + "6g-5-5975-20", + "6g-7-5985-80", + "6g-9-5995-20", + "6g-11-6005-40", + "6g-13-6015-20", + "6g-15-6025-160", + "6g-17-6035-20", + "6g-19-6045-40", + "6g-21-6055-20", + "6g-23-6065-80", + "6g-25-6075-20", + "6g-27-6085-40", + "6g-29-6095-20", + "6g-31-6105-320", + "6g-33-6115-20", + "6g-35-6125-40", + "6g-37-6135-20", + "6g-39-6145-80", + "6g-41-6155-20", + "6g-43-6165-40", + "6g-45-6175-20", + "6g-47-6185-160", + "6g-49-6195-20", + "6g-51-6205-40", + "6g-53-6215-20", + "6g-55-6225-80", + "6g-57-6235-20", + "6g-59-6245-40", + "6g-61-6255-20", + "6g-65-6275-20", + "6g-67-6285-40", + "6g-69-6295-20", + "6g-71-6305-80", + "6g-73-6315-20", + "6g-75-6325-40", + "6g-77-6335-20", + "6g-79-6345-160", + "6g-81-6355-20", + "6g-83-6365-40", + "6g-85-6375-20", + "6g-87-6385-80", + "6g-89-6395-20", + "6g-91-6405-40", + "6g-93-6415-20", + "6g-95-6425-320", + "6g-97-6435-20", + "6g-99-6445-40", + "6g-101-6455-20", + "6g-103-6465-80", + "6g-105-6475-20", + "6g-107-6485-40", + "6g-109-6495-20", + "6g-111-6505-160", + "6g-113-6515-20", + "6g-115-6525-40", + "6g-117-6535-20", + "6g-119-6545-80", + "6g-121-6555-20", + "6g-123-6565-40", + "6g-125-6575-20", + "6g-129-6595-20", + "6g-131-6605-40", + "6g-133-6615-20", + "6g-135-6625-80", + "6g-137-6635-20", + "6g-139-6645-40", + "6g-141-6655-20", + "6g-143-6665-160", + "6g-145-6675-20", + "6g-147-6685-40", + "6g-149-6695-20", + "6g-151-6705-80", + "6g-153-6715-20", + "6g-155-6725-40", + "6g-157-6735-20", + "6g-159-6745-320", + "6g-161-6755-20", + "6g-163-6765-40", + "6g-165-6775-20", + "6g-167-6785-80", + "6g-169-6795-20", + "6g-171-6805-40", + "6g-173-6815-20", + "6g-175-6825-160", + "6g-177-6835-20", + "6g-179-6845-40", + "6g-181-6855-20", + "6g-183-6865-80", + "6g-185-6875-20", + "6g-187-6885-40", + "6g-189-6895-20", + "6g-193-6915-20", + "6g-195-6925-40", + "6g-197-6935-20", + "6g-199-6945-80", + "6g-201-6955-20", + "6g-203-6965-40", + "6g-205-6975-20", + "6g-207-6985-160", + "6g-209-6995-20", + "6g-211-7005-40", + "6g-213-7015-20", + "6g-215-7025-80", + "6g-217-7035-20", + "6g-219-7045-40", + "6g-221-7055-20", + "6g-225-7075-20", + "6g-227-7085-40", + "6g-229-7095-20", + "6g-233-7115-20", + "60g-1-58320-2160", + "60g-2-60480-2160", + "60g-3-62640-2160", + "60g-4-64800-2160", + "60g-5-66960-2160", + "60g-6-69120-2160", + "60g-9-59400-4320", + "60g-10-61560-4320", + "60g-11-63720-4320", + "60g-12-65880-4320", + "60g-13-68040-4320", + "60g-17-60480-6480", + "60g-18-62640-6480", + "60g-19-64800-6480", + "60g-20-66960-6480", + "60g-25-61560-6480", + "60g-26-63720-6480", + "60g-27-65880-6480", + "", +} + +func (v *WirelessChannel1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessChannel1(value) + for _, existing := range AllowedWirelessChannel1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessChannel1", value) +} + +// NewWirelessChannel1FromValue returns a pointer to a valid WirelessChannel1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessChannel1FromValue(v string) (*WirelessChannel1, error) { + ev := WirelessChannel1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessChannel1: valid values are %v", v, AllowedWirelessChannel1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessChannel1) IsValid() bool { + for _, existing := range AllowedWirelessChannel1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Wireless_channel_1 value +func (v WirelessChannel1) Ptr() *WirelessChannel1 { + return &v +} + +type NullableWirelessChannel1 struct { + value *WirelessChannel1 + isSet bool +} + +func (v NullableWirelessChannel1) Get() *WirelessChannel1 { + return v.value +} + +func (v *NullableWirelessChannel1) Set(val *WirelessChannel1) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessChannel1) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessChannel1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessChannel1(val *WirelessChannel1) *NullableWirelessChannel1 { + return &NullableWirelessChannel1{value: val, isSet: true} +} + +func (v NullableWirelessChannel1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessChannel1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_wireless_role_1.go b/model_wireless_role_1.go new file mode 100644 index 000000000..2892f3f54 --- /dev/null +++ b/model_wireless_role_1.go @@ -0,0 +1,113 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessRole1 * `ap` - Access point * `station` - Station +type WirelessRole1 string + +// List of Wireless_role_1 +const ( + WIRELESSROLE1_AP WirelessRole1 = "ap" + WIRELESSROLE1_STATION WirelessRole1 = "station" + WIRELESSROLE1_EMPTY WirelessRole1 = "" +) + +// All allowed values of WirelessRole1 enum +var AllowedWirelessRole1EnumValues = []WirelessRole1{ + "ap", + "station", + "", +} + +func (v *WirelessRole1) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessRole1(value) + for _, existing := range AllowedWirelessRole1EnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessRole1", value) +} + +// NewWirelessRole1FromValue returns a pointer to a valid WirelessRole1 +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessRole1FromValue(v string) (*WirelessRole1, error) { + ev := WirelessRole1(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessRole1: valid values are %v", v, AllowedWirelessRole1EnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessRole1) IsValid() bool { + for _, existing := range AllowedWirelessRole1EnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to Wireless_role_1 value +func (v WirelessRole1) Ptr() *WirelessRole1 { + return &v +} + +type NullableWirelessRole1 struct { + value *WirelessRole1 + isSet bool +} + +func (v NullableWirelessRole1) Get() *WirelessRole1 { + return v.value +} + +func (v *NullableWirelessRole1) Set(val *WirelessRole1) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessRole1) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessRole1) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessRole1(val *WirelessRole1) *NullableWirelessRole1 { + return &NullableWirelessRole1{value: val, isSet: true} +} + +func (v NullableWirelessRole1) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessRole1) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + diff --git a/model_wireless_wireless_lans_list_status__ic_parameter_inner.go b/model_wireless_wireless_lans_list_status__ic_parameter_inner.go new file mode 100644 index 000000000..f697eb4e6 --- /dev/null +++ b/model_wireless_wireless_lans_list_status__ic_parameter_inner.go @@ -0,0 +1,115 @@ +/* +NetBox REST API + +No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + +API version: 4.1.3 (4.1) +*/ + +// Code generated by OpenAPI Generator (https://openapi-generator.tech); DO NOT EDIT. + +package netbox + +import ( + "encoding/json" + "fmt" +) + +// WirelessWirelessLansListStatusIcParameterInner the model 'WirelessWirelessLansListStatusIcParameterInner' +type WirelessWirelessLansListStatusIcParameterInner string + +// List of wireless_wireless_lans_list_status__ic_parameter_inner +const ( + WIRELESSWIRELESSLANSLISTSTATUSICPARAMETERINNER_ACTIVE WirelessWirelessLansListStatusIcParameterInner = "active" + WIRELESSWIRELESSLANSLISTSTATUSICPARAMETERINNER_DEPRECATED WirelessWirelessLansListStatusIcParameterInner = "deprecated" + WIRELESSWIRELESSLANSLISTSTATUSICPARAMETERINNER_DISABLED WirelessWirelessLansListStatusIcParameterInner = "disabled" + WIRELESSWIRELESSLANSLISTSTATUSICPARAMETERINNER_RESERVED WirelessWirelessLansListStatusIcParameterInner = "reserved" +) + +// All allowed values of WirelessWirelessLansListStatusIcParameterInner enum +var AllowedWirelessWirelessLansListStatusIcParameterInnerEnumValues = []WirelessWirelessLansListStatusIcParameterInner{ + "active", + "deprecated", + "disabled", + "reserved", +} + +func (v *WirelessWirelessLansListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + var value string + err := json.Unmarshal(src, &value) + if err != nil { + return err + } + enumTypeValue := WirelessWirelessLansListStatusIcParameterInner(value) + for _, existing := range AllowedWirelessWirelessLansListStatusIcParameterInnerEnumValues { + if existing == enumTypeValue { + *v = enumTypeValue + return nil + } + } + + return fmt.Errorf("%+v is not a valid WirelessWirelessLansListStatusIcParameterInner", value) +} + +// NewWirelessWirelessLansListStatusIcParameterInnerFromValue returns a pointer to a valid WirelessWirelessLansListStatusIcParameterInner +// for the value passed as argument, or an error if the value passed is not allowed by the enum +func NewWirelessWirelessLansListStatusIcParameterInnerFromValue(v string) (*WirelessWirelessLansListStatusIcParameterInner, error) { + ev := WirelessWirelessLansListStatusIcParameterInner(v) + if ev.IsValid() { + return &ev, nil + } else { + return nil, fmt.Errorf("invalid value '%v' for WirelessWirelessLansListStatusIcParameterInner: valid values are %v", v, AllowedWirelessWirelessLansListStatusIcParameterInnerEnumValues) + } +} + +// IsValid return true if the value is valid for the enum, false otherwise +func (v WirelessWirelessLansListStatusIcParameterInner) IsValid() bool { + for _, existing := range AllowedWirelessWirelessLansListStatusIcParameterInnerEnumValues { + if existing == v { + return true + } + } + return false +} + +// Ptr returns reference to wireless_wireless_lans_list_status__ic_parameter_inner value +func (v WirelessWirelessLansListStatusIcParameterInner) Ptr() *WirelessWirelessLansListStatusIcParameterInner { + return &v +} + +type NullableWirelessWirelessLansListStatusIcParameterInner struct { + value *WirelessWirelessLansListStatusIcParameterInner + isSet bool +} + +func (v NullableWirelessWirelessLansListStatusIcParameterInner) Get() *WirelessWirelessLansListStatusIcParameterInner { + return v.value +} + +func (v *NullableWirelessWirelessLansListStatusIcParameterInner) Set(val *WirelessWirelessLansListStatusIcParameterInner) { + v.value = val + v.isSet = true +} + +func (v NullableWirelessWirelessLansListStatusIcParameterInner) IsSet() bool { + return v.isSet +} + +func (v *NullableWirelessWirelessLansListStatusIcParameterInner) Unset() { + v.value = nil + v.isSet = false +} + +func NewNullableWirelessWirelessLansListStatusIcParameterInner(val *WirelessWirelessLansListStatusIcParameterInner) *NullableWirelessWirelessLansListStatusIcParameterInner { + return &NullableWirelessWirelessLansListStatusIcParameterInner{value: val, isSet: true} +} + +func (v NullableWirelessWirelessLansListStatusIcParameterInner) MarshalJSON() ([]byte, error) { + return json.Marshal(v.value) +} + +func (v *NullableWirelessWirelessLansListStatusIcParameterInner) UnmarshalJSON(src []byte) error { + v.isSet = true + return json.Unmarshal(src, &v.value) +} + From 323e79a6c1a1e20c5d9d3d4e9949fc57c220bef4 Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Thu, 10 Oct 2024 15:09:10 +0530 Subject: [PATCH 10/16] remove user_count from group --- api/openapi.yaml | 1 - docs/Group.md | 9 +++++++-- model_group.go | 36 ++++++++++++++++++++++-------------- scripts/fix-spec.py | 1 + 4 files changed, 30 insertions(+), 17 deletions(-) diff --git a/api/openapi.yaml b/api/openapi.yaml index 0405b41b7..5406a563b 100644 --- a/api/openapi.yaml +++ b/api/openapi.yaml @@ -156727,7 +156727,6 @@ components: - id - name - url - - user_count GroupRequest: type: object description: 'Extends the built-in ModelSerializer to enforce calling full_clean() diff --git a/docs/Group.md b/docs/Group.md index 9ca5c3a4b..724a55fa9 100644 --- a/docs/Group.md +++ b/docs/Group.md @@ -11,13 +11,13 @@ Name | Type | Description | Notes **Name** | **string** | | **Description** | Pointer to **string** | | [optional] **Permissions** | Pointer to [**[]ObjectPermission**](ObjectPermission.md) | | [optional] -**UserCount** | **int32** | | [readonly] +**UserCount** | Pointer to **int32** | | [optional] [readonly] ## Methods ### NewGroup -`func NewGroup(id int32, url string, display string, name string, userCount int32, ) *Group` +`func NewGroup(id int32, url string, display string, name string, ) *Group` NewGroup instantiates a new Group 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. SetUserCount sets UserCount field to given value. +### HasUserCount + +`func (o *Group) HasUserCount() bool` + +HasUserCount 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/model_group.go b/model_group.go index 90be05e37..5ec7c39fa 100644 --- a/model_group.go +++ b/model_group.go @@ -27,7 +27,7 @@ type Group struct { Name string `json:"name"` Description *string `json:"description,omitempty"` Permissions []ObjectPermission `json:"permissions,omitempty"` - UserCount int32 `json:"user_count"` + UserCount *int32 `json:"user_count,omitempty"` AdditionalProperties map[string]interface{} } @@ -37,13 +37,12 @@ type _Group Group // 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 NewGroup(id int32, url string, display string, name string, userCount int32) *Group { +func NewGroup(id int32, url string, display string, name string) *Group { this := Group{} this.Id = id this.Url = url this.Display = display this.Name = name - this.UserCount = userCount return &this } @@ -247,28 +246,36 @@ func (o *Group) SetPermissions(v []ObjectPermission) { o.Permissions = v } -// GetUserCount returns the UserCount field value +// GetUserCount returns the UserCount field value if set, zero value otherwise. func (o *Group) GetUserCount() int32 { - if o == nil { + if o == nil || IsNil(o.UserCount) { var ret int32 return ret } - - return o.UserCount + return *o.UserCount } -// GetUserCountOk returns a tuple with the UserCount field value +// GetUserCountOk returns a tuple with the UserCount field value if set, nil otherwise // and a boolean to check if the value has been set. func (o *Group) GetUserCountOk() (*int32, bool) { - if o == nil { + if o == nil || IsNil(o.UserCount) { return nil, false } - return &o.UserCount, true + return o.UserCount, true +} + +// HasUserCount returns a boolean if a field has been set. +func (o *Group) HasUserCount() bool { + if o != nil && !IsNil(o.UserCount) { + return true + } + + return false } -// SetUserCount sets field value +// SetUserCount gets a reference to the given int32 and assigns it to the UserCount field. func (o *Group) SetUserCount(v int32) { - o.UserCount = v + o.UserCount = &v } func (o Group) MarshalJSON() ([]byte, error) { @@ -294,7 +301,9 @@ func (o Group) ToMap() (map[string]interface{}, error) { if !IsNil(o.Permissions) { toSerialize["permissions"] = o.Permissions } - toSerialize["user_count"] = o.UserCount + if !IsNil(o.UserCount) { + toSerialize["user_count"] = o.UserCount + } for key, value := range o.AdditionalProperties { toSerialize[key] = value @@ -312,7 +321,6 @@ func (o *Group) UnmarshalJSON(data []byte) (err error) { "url", "display", "name", - "user_count", } allProperties := make(map[string]interface{}) diff --git a/scripts/fix-spec.py b/scripts/fix-spec.py index cd25c183e..ab0c21c53 100755 --- a/scripts/fix-spec.py +++ b/scripts/fix-spec.py @@ -49,6 +49,7 @@ 'prefix_count', 'vlan_count', 'display_url', + 'user_count', ] schema['required'] = [prop for prop in schema['required'] if prop not in non_required_props] From e585f26d4389312f41c037b969fb3131bead990a Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Thu, 10 Oct 2024 15:13:28 +0530 Subject: [PATCH 11/16] remove version --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 84ac401e8..eb82937d5 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/netbox-community/go-netbox/v4 +module github.com/netbox-community/go-netbox go 1.18 From f8d9632968dc31b9ae3b13ca05957a3e22383638 Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Thu, 10 Oct 2024 15:14:54 +0530 Subject: [PATCH 12/16] fix module path --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index eb82937d5..3e168f7ba 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/netbox-community/go-netbox +module github.com/asama-ai/go-netbox go 1.18 From cbede88bc9c81527d38c4f1507b6e6b1f32353ef Mon Sep 17 00:00:00 2001 From: Anulika21 Date: Tue, 15 Oct 2024 11:56:07 +0530 Subject: [PATCH 13/16] Update model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go --- model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go index e5a571f5c..9a2b5b810 100644 --- a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go +++ b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go @@ -73,7 +73,7 @@ var AllowedVpnIpsecPoliciesListPfsGroupIcParameterInnerEnumValues = []VpnIpsecPo 33, 34, 5, - null, + nil, } func (v *VpnIpsecPoliciesListPfsGroupIcParameterInner) UnmarshalJSON(src []byte) error { From 6c6720cb9e5a7a7e486778d43a644909d8ca92f9 Mon Sep 17 00:00:00 2001 From: Anulika21 Date: Tue, 15 Oct 2024 11:59:06 +0530 Subject: [PATCH 14/16] Update model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go --- model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go index 9a2b5b810..a7a974e9b 100644 --- a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go +++ b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go @@ -44,7 +44,7 @@ const ( VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__33 VpnIpsecPoliciesListPfsGroupIcParameterInner = 33 VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__34 VpnIpsecPoliciesListPfsGroupIcParameterInner = 34 VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__5 VpnIpsecPoliciesListPfsGroupIcParameterInner = 5 - VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__null VpnIpsecPoliciesListPfsGroupIcParameterInner = null + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__null VpnIpsecPoliciesListPfsGroupIcParameterInner = nil ) // All allowed values of VpnIpsecPoliciesListPfsGroupIcParameterInner enum From 5108150774b4b02cfb6d537a65eb002ff80cd181 Mon Sep 17 00:00:00 2001 From: Anulika21 Date: Tue, 15 Oct 2024 13:29:58 +0530 Subject: [PATCH 15/16] Update model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go --- ...l_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go index a7a974e9b..6cafaf4e5 100644 --- a/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go +++ b/model_vpn_ipsec_policies_list_pfs_group__ic_parameter_inner.go @@ -44,7 +44,7 @@ const ( VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__33 VpnIpsecPoliciesListPfsGroupIcParameterInner = 33 VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__34 VpnIpsecPoliciesListPfsGroupIcParameterInner = 34 VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__5 VpnIpsecPoliciesListPfsGroupIcParameterInner = 5 - VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__null VpnIpsecPoliciesListPfsGroupIcParameterInner = nil + VPNIPSECPOLICIESLISTPFSGROUPICPARAMETERINNER__null VpnIpsecPoliciesListPfsGroupIcParameterInner = 0 ) // All allowed values of VpnIpsecPoliciesListPfsGroupIcParameterInner enum @@ -73,7 +73,7 @@ var AllowedVpnIpsecPoliciesListPfsGroupIcParameterInnerEnumValues = []VpnIpsecPo 33, 34, 5, - nil, + 0, } func (v *VpnIpsecPoliciesListPfsGroupIcParameterInner) UnmarshalJSON(src []byte) error { From c7d496136268fd6bf0cc1279ac33f46b8050d9f3 Mon Sep 17 00:00:00 2001 From: Jain Johny Date: Wed, 16 Oct 2024 11:07:53 +0530 Subject: [PATCH 16/16] test versioning to match netbox-community --- go.mod | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go.mod b/go.mod index 3e168f7ba..f3fe87f3f 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/asama-ai/go-netbox +module github.com/asama-ai/go-netbox/v4 go 1.18